code
stringlengths 14
2.05k
| label
int64 0
1
| programming_language
stringclasses 7
values | cwe_id
stringlengths 6
14
| cwe_name
stringlengths 5
98
⌀ | description
stringlengths 36
379
⌀ | url
stringlengths 36
48
⌀ | label_name
stringclasses 2
values |
---|---|---|---|---|---|---|---|
DrawioFile.prototype.saveFile=function(b,e,g,p){};DrawioFile.prototype.getFileUrl=function(){return null};DrawioFile.prototype.getFolderUrl=function(b){return null};DrawioFile.prototype.getPublicUrl=function(b){b(null)};DrawioFile.prototype.isRestricted=function(){return DrawioFile.RESTRICT_EXPORT};DrawioFile.prototype.isModified=function(){return this.modified};DrawioFile.prototype.getShadowModified=function(){return this.shadowModified}; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
Graph.createSvgImage=function(b,e,g,p,y){g=unescape(encodeURIComponent(Graph.svgDoctype+'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="'+b+'px" height="'+e+'px" '+(null!=p&&null!=y?'viewBox="0 0 '+p+" "+y+'" ':"")+'version="1.1">'+g+"</svg>"));return new mxImage("data:image/svg+xml;base64,"+(window.btoa?btoa(g):Base64.encode(g,!0)),b,e)}; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
V=[];null!=P;){var l=P.nextSibling;0>mxUtils.indexOf(this.toolbar.staticElements,P)&&(P.parentNode.removeChild(P),V.push(P));P=l}P=this.toolbar.fontMenu;l=this.toolbar.sizeMenu;if(null==fa)this.toolbar.createTextToolbar();else{for(var B=0;B<fa.length;B++)this.toolbar.container.appendChild(fa[B]);this.toolbar.fontMenu=G;this.toolbar.sizeMenu=ja}O=y.cellEditor.isContentEditing();G=P;ja=l;fa=V}}),ia=y.cellEditor.startEditing;y.cellEditor.startEditing=function(){ia.apply(this,arguments);ca();if(y.cellEditor.isContentEditing()){var P=
!1,V=function(){P||(P=!0,window.setTimeout(function(){var l=y.getSelectedEditingElement();null!=l&&(l=mxUtils.getCurrentStyle(l),null!=l&&null!=p.toolbar&&(p.toolbar.setFontName(Graph.stripQuotes(l.fontFamily)),p.toolbar.setFontSize(parseInt(l.fontSize))));P=!1},0))};mxEvent.addListener(y.cellEditor.textarea,"input",V);mxEvent.addListener(y.cellEditor.textarea,"touchend",V);mxEvent.addListener(y.cellEditor.textarea,"mouseup",V);mxEvent.addListener(y.cellEditor.textarea,"keyup",V);V()}};var ma=y.cellEditor.stopEditing; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
this.previousPageScale=b))};(function(){var b=new mxObjectCodec(new ChangePageSetup,["ui","previousColor","previousImage","previousFormat","previousPageScale"]);b.afterDecode=function(e,g,p){p.previousColor=p.color;p.previousImage=p.image;p.previousFormat=p.format;p.previousPageScale=p.pageScale;null!=p.foldingEnabled&&(p.foldingEnabled=!p.foldingEnabled);return p};mxCodecRegistry.register(b)})(); | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
"arrow",p,"direction",g,"event",y)))}));mxEvent.addListener(p,"mouseleave",mxUtils.bind(this,function(y){mxEvent.isMouseEvent(y)&&this.fireEvent(new mxEventObject("blur","arrow",p,"direction",g,"event",y));this.graph.isMouseDown||this.resetActiveArrow()}));return p};HoverIcons.prototype.resetActiveArrow=function(){null!=this.activeArrow&&(mxUtils.setOpacity(this.activeArrow,this.inactiveOpacity),this.activeArrow=null)}; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
m,u,n,t){m=Math.min(n/2,Math.min(t,parseFloat(mxUtils.getValue(this.style,"size",this.size))));u=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(m,0),new mxPoint(n-m,0),new mxPoint(n,.8*m),new mxPoint(n,t),new mxPoint(0,t),new mxPoint(0,.8*m)],this.isRounded,u,!0);c.end()};mxCellRenderer.registerShape("loopLimit",x);mxUtils.extend(L,mxActor);L.prototype.size=.375;L.prototype.isRoundable=function(){return!0};L.prototype.redrawPath=function(c,
m,u,n,t){m=t*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));u=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(0,0),new mxPoint(n,0),new mxPoint(n,t-m),new mxPoint(n/2,t),new mxPoint(0,t-m)],this.isRounded,u,!0);c.end()};mxCellRenderer.registerShape("offPageConnector",L);mxUtils.extend(Q,mxEllipse);Q.prototype.paintVertexShape=function(c,m,u,n,t){mxEllipse.prototype.paintVertexShape.apply(this,arguments); | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
0;if(19==Z){var qa=l.indexOf("%3C%2Fmxfile%3E)",U)+15;U-=9;if(qa>U){N=l.substring(U,qa);break}}10==ka&&("endobj"==B?Y=null:"obj"==B.substring(B.length-3,B.length)||"xref"==B||"trailer"==B?(Y=[],aa[B.split(" ")[0]]=Y):null!=Y&&Y.push(B),B="")}null==N&&(N=Editor.extractGraphModelFromXref(aa));null!=N&&(N=decodeURIComponent(N.replace(/\\\(/g,"(").replace(/\\\)/g,")")));return N};Editor.extractGraphModelFromXref=function(l){var B=l.trailer,N=null;null!=B&&(B=/.* \/Info (\d+) (\d+) R/g.exec(B.join("\n")),
null!=B&&0<B.length&&(B=l[B[1]],null!=B&&(B=/.* \/Subject (\d+) (\d+) R/g.exec(B.join("\n")),null!=B&&0<B.length&&(l=l[B[1]],null!=l&&(l=l.join("\n"),N=l.substring(1,l.length-1))))));return N};Editor.extractParserError=function(l,B){var N=null;l=null!=l?l.getElementsByTagName("parsererror"):null;null!=l&&0<l.length&&(N=B||mxResources.get("invalidChars"),B=l[0].getElementsByTagName("div"),0<B.length&&(N=mxUtils.getTextContent(B[0])));return null!=N?mxUtils.trim(N):N};Editor.addRetryToError=function(l, | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
Graph.prototype.getCommonStyle=function(E){for(var M={},T=0;T<E.length;T++){var F=this.view.getState(E[T]);null!=F&&this.mergeStyle(F.style,M,0==T)}return M};Graph.prototype.mergeStyle=function(E,M,T){if(null!=E){var F={},K;for(K in E){var R=E[K];null!=R&&(F[K]=!0,null==M[K]&&T?M[K]=R:M[K]!=R&&delete M[K])}for(K in M)F[K]||delete M[K]}};Graph.prototype.getStartEditingCell=function(E,M){M=this.getCellStyle(E);M=parseInt(mxUtils.getValue(M,mxConstants.STYLE_STARTSIZE,0));this.isTable(E)&&(!this.isSwimlane(E)|| | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
(b.text.node.style.opacity=""),Graph.setOpacityForNodes(this.getNodesForCells([b.cell]),e?1:0))})}};Graph.prototype.executeAnimations=function(b,e,g,p){g=null!=g?g:30;p=null!=p?p:30;var y=null,q=0,E=mxUtils.bind(this,function(){if(q==g||this.stoppingCustomActions){window.clearInterval(y);for(var M=0;M<b.length;M++)b[M].stop();null!=e&&e()}else for(M=0;M<b.length;M++)b[M].execute(q,g);q++});y=window.setInterval(E,p);E()}; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
D&&"fold"==C)&&c.lineTo(0,t-ha);else c.lineTo(0,t)};Na.prototype.paintNWInner=function(c,m,u,n,t,C,D,ha,I){if("rounded"==D||"default"==D&&"rounded"==C)c.arcTo(ha-.5*I,ha-.5*I,0,0,0,I,.5*I+ha);else if("invRound"==D||"default"==D&&"invRound"==C)c.arcTo(ha+I,ha+I,0,0,1,I,I+ha);else if("snip"==D||"default"==D&&"snip"==C)c.lineTo(I,.5*I+ha);else if("fold"==D||"default"==D&&"fold"==C)c.lineTo(I+ha,I+ha),c.lineTo(I,I+ha)};Na.prototype.paintTopInner=function(c,m,u,n,t,C,D,ha,I,ua,na){ua||na?!ua&&na?c.lineTo(0,
I):ua&&!na?c.lineTo(I,0):ua?"square"==D||"default"==D&&"square"==C?c.lineTo(I,I):"rounded"==D||"default"==D&&"rounded"==C||"snip"==D||"default"==D&&"snip"==C?c.lineTo(ha+.5*I,I):c.lineTo(ha+I,I):c.lineTo(0,I):c.lineTo(0,0)};Na.prototype.paintNEInner=function(c,m,u,n,t,C,D,ha,I){if("rounded"==D||"default"==D&&"rounded"==C)c.arcTo(ha-.5*I,ha-.5*I,0,0,0,n-ha-.5*I,I);else if("invRound"==D||"default"==D&&"invRound"==C)c.arcTo(ha+I,ha+I,0,0,1,n-ha-I,I);else if("snip"==D||"default"==D&&"snip"==C)c.lineTo(n- | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
Array.prototype.push.apply(U.shape.customProperties,Editor.commonEdgeProperties)),Z(U.shape.customProperties));l=l.getAttribute("customProperties");if(null!=l)try{Z(JSON.parse(l))}catch(aa){}}};var W=StyleFormatPanel.prototype.init;StyleFormatPanel.prototype.init=function(){var l=this.editorUi.getSelectionState();null!=this.defaultColorSchemes&&0<this.defaultColorSchemes.length&&"image"!=l.style.shape&&!l.containsLabel&&0<l.cells.length&&this.container.appendChild(this.addStyles(this.createPanel()));
W.apply(this,arguments);if(Editor.enableCustomProperties){for(var B={},N=l.vertices,Z=l.edges,U=0;U<N.length;U++)this.findCommonProperties(N[U],B,0==U);for(U=0;U<Z.length;U++)this.findCommonProperties(Z[U],B,0==N.length&&0==U);null!=Object.getOwnPropertyNames&&0<Object.getOwnPropertyNames(B).length&&this.container.appendChild(this.addProperties(this.createPanel(),B,l))}};var d=StyleFormatPanel.prototype.addStyleOps;StyleFormatPanel.prototype.addStyleOps=function(l){var B=this.editorUi.getSelectionState(); | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
(pa.charCodeAt(2)<<8)+(pa.charCodeAt(1)<<16)+(pa.charCodeAt(0)<<24)}function ka(pa){return String.fromCharCode(pa>>24&255,pa>>16&255,pa>>8&255,pa&255)}l=l.substring(l.indexOf(",")+1);l=window.atob?atob(l):Base64.decode(l,!0);var qa=0;if(aa(l,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=U&&U();else if(aa(l,4),"IHDR"!=aa(l,4))null!=U&&U();else{aa(l,17);U=l.substring(0,qa);do{var ra=Y(l);if("IDAT"==aa(l,4)){U=l.substring(0,qa-8);"pHYs"==B&&"dpi"==N?(N=Math.round(Z/.0254), | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
arguments));this.originalClose.apply(this.canvas,arguments)};fa.prototype.quadTo=function(c,m,u,n){this.originalQuadTo.apply(this.canvas,arguments);this.lastX=u;this.lastY=n};fa.prototype.curveTo=function(c,m,u,n,t,C){this.originalCurveTo.apply(this.canvas,arguments);this.lastX=t;this.lastY=C};fa.prototype.arcTo=function(c,m,u,n,t,C,D){this.originalArcTo.apply(this.canvas,arguments);this.lastX=C;this.lastY=D};fa.prototype.lineTo=function(c,m){if(null!=this.lastX&&null!=this.lastY){var u=function(na){return"number"=== | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
mxStencilRegistry.loadStencilSet=function(b,e,g,p){var y=mxStencilRegistry.packages[b];if(null!=g&&g||null==y){var q=!1;if(null==y)try{if(p){mxStencilRegistry.loadStencil(b,mxUtils.bind(this,function(E){null!=E&&null!=E.documentElement&&(mxStencilRegistry.packages[b]=E,q=!0,mxStencilRegistry.parseStencilSet(E.documentElement,e,q))}));return}y=mxStencilRegistry.loadStencil(b);mxStencilRegistry.packages[b]=y;q=!0}catch(E){null!=window.console&&console.log("error in loadStencilSet:",b,E)}null!=y&&null!=
y.documentElement&&mxStencilRegistry.parseStencilSet(y.documentElement,e,q)}};mxStencilRegistry.loadStencil=function(b,e){if(null!=e)mxUtils.get(b,mxUtils.bind(this,function(g){e(200<=g.getStatus()&&299>=g.getStatus()?g.getXml():null)}),mxUtils.bind(this,function(g){e(null)}));else return mxUtils.load(b).getXml()};mxStencilRegistry.parseStencilSets=function(b){for(var e=0;e<b.length;e++)mxStencilRegistry.parseStencilSet(mxUtils.parseXml(b[e]).documentElement)}; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
Editor.onMathJaxDone=function(){};var U=Editor.prototype.init;Editor.prototype.init=function(){U.apply(this,arguments);var Y=mxUtils.bind(this,function(ka,qa){null!=this.graph.container&&this.graph.mathEnabled&&Editor.MathJaxRender(this.graph.container)});this.graph.model.addListener(mxEvent.CHANGE,Y);this.graph.addListener(mxEvent.REFRESH,Y)};B=document.getElementsByTagName("script");if(null!=B&&0<B.length){var aa=document.createElement("script");aa.setAttribute("type","text/javascript");aa.setAttribute("src", | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
function(aa){var Y=aa.addTolerance,ka=!0;null!=this.style&&(ka="1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1"));if(null!=aa.handJiggle&&aa.handJiggle.constructor==l&&!this.outline){aa.save();var qa=this.fill,ra=this.stroke;this.stroke=this.fill=null;var pa=this.configurePointerEvents,wa=aa.setStrokeColor;aa.setStrokeColor=function(){};var Ca=aa.setFillColor;aa.setFillColor=function(){};ka||null==qa||(this.configurePointerEvents=function(){});aa.handJiggle.passThrough=!0;Z.apply(this, | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
function(E){if(null!=E){var M=this.getCellGeometry(E);null!=M&&M.relative&&(E=this.model.getParent(E))}null!=E&&this.model.isEdge(E)&&(E=this.model.getParent(E));null!=E&&(E=this.getCompositeParent(E));return E};Graph.prototype.getCompositeParent=function(E){for(;this.isPart(E);){var M=this.model.getParent(E);if(!this.model.isVertex(M))break;E=M}return E};Graph.prototype.filterSelectionCells=function(E){var M=this.getSelectionCells();if(null!=E){for(var T=[],F=0;F<M.length;F++)E(M[F])||T.push(M[F]); | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
{val:"square",dispName:"Square"},{val:"rounded",dispName:"Round"},{val:"snip",dispName:"Snip"},{val:"invRound",dispName:"Inv. Round"},{val:"fold",dispName:"Fold"}]}];Na.prototype.paintVertexShape=function(c,m,u,n,t){c.translate(m,u);this.strictDrawShape(c,0,0,n,t)};Na.prototype.strictDrawShape=function(c,m,u,n,t,C){var D=C&&C.rectStyle?C.rectStyle:mxUtils.getValue(this.style,"rectStyle",this.rectStyle),ha=C&&C.absoluteCornerSize?C.absoluteCornerSize:mxUtils.getValue(this.style,"absoluteCornerSize", | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
eb){eb=PrintDialog.createPrintPreview(Pa,pb,ob,0,gb,tb,hb);eb.pageSelector=!1;eb.mathEnabled=!1;Ba.checked&&(eb.isCellVisible=function(vb){return Pa.isCellSelected(vb)});gb=l.getCurrentFile();null!=gb&&(eb.title=gb.getTitle());var Db=eb.writeHead;eb.writeHead=function(vb){Db.apply(this,arguments);mxClient.IS_GC&&(vb.writeln('<style type="text/css">'),vb.writeln("@media print {"),vb.writeln(".MathJax svg { shape-rendering: crispEdges; }"),vb.writeln("}"),vb.writeln("</style>"));null!=l.editor.fontCss&&
(vb.writeln('<style type="text/css">'),vb.writeln(l.editor.fontCss),vb.writeln("</style>"));for(var zb=Pa.getCustomFonts(),yb=0;yb<zb.length;yb++){var Cb=zb[yb].name,c=zb[yb].url;Graph.isCssFontUrl(c)?vb.writeln('<link rel="stylesheet" href="'+mxUtils.htmlEntities(c)+'" charset="UTF-8" type="text/css">'):(vb.writeln('<style type="text/css">'),vb.writeln('@font-face {\nfont-family: "'+mxUtils.htmlEntities(Cb)+'";\nsrc: url("'+mxUtils.htmlEntities(c)+'");\n}'),vb.writeln("</style>"))}};if("undefined"!== | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
DrawioFile.prototype.reloadFile=function(b,e){try{this.ui.spinner.stop();var g=mxUtils.bind(this,function(){EditorUi.debug("DrawioFile.reloadFile",[this],"hash",this.getHash(),"modified",this.isModified(),"backupPatch",this.backupPatch);this.stats.fileReloaded++;if(""==this.getHash())this.mergeLatestVersion(null!=this.backupPatch?[this.backupPatch]:null,mxUtils.bind(this,function(){this.backupPatch=null;null!=b&&b()}),e);else{var p=this.ui.editor.graph,y=p.getSelectionCells(),q=p.getViewState(),E=
this.ui.currentPage;this.ui.loadFile(this.getHash(),!0,null,mxUtils.bind(this,function(){if(null==this.ui.fileLoadedError){this.ui.restoreViewState(E,q,y);null!=this.backupPatch&&this.patch([this.backupPatch]);var M=this.ui.getCurrentFile();null!=M&&(M.stats=this.stats);null!=b&&b()}}),!0)}});this.isModified()&&null==this.backupPatch?this.ui.confirm(mxResources.get("allChangesLost"),mxUtils.bind(this,function(){this.handleFileSuccess("manual"==DrawioFile.SYNC)}),g,mxResources.get("cancel"),mxResources.get("discardChanges")):
g()}catch(p){null!=e&&e(p)}};DrawioFile.prototype.mergeLatestVersion=function(b,e,g){this.getLatestVersion(mxUtils.bind(this,function(p){this.ui.editor.graph.model.beginUpdate();try{this.ui.replaceFileData(p.getData()),null!=b&&this.patch(b)}finally{this.ui.editor.graph.model.endUpdate()}this.inConflictState=this.invalidChecksum=!1;this.setDescriptor(p.getDescriptor());this.descriptorChanged();null!=e&&e()}),g)}; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
fa,ca)}catch(da){v(da)}};ja.src=O.result};O.onerror=function(G){v(G)}}else v(J)};H.onerror=function(J){v(J)};H.send()};EditorUi.prototype.insertAsPreText=function(d,f,k){var v=this.editor.graph,z=null;v.getModel().beginUpdate();try{z=v.insertVertex(null,null,"<pre>"+d+"</pre>",f,k,1,1,"text;html=1;align=left;verticalAlign=top;"),v.updateCellSize(z,!0)}finally{v.getModel().endUpdate()}return z};EditorUi.prototype.insertTextAt=function(d,f,k,v,z,A,H,J){A=null!=A?A:!0;H=null!=H?H:!0;if(null!=d)if(Graph.fileSupport&& | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
function(l,B,N){if(null!=B){var Z=function(aa){if(null!=aa)if(N)for(var Y=0;Y<aa.length;Y++)B[aa[Y].name]=aa[Y];else for(var ka in B){var qa=!1;for(Y=0;Y<aa.length;Y++)if(aa[Y].name==ka&&aa[Y].type==B[ka].type){qa=!0;break}qa||delete B[ka]}},U=this.editorUi.editor.graph.view.getState(l);null!=U&&null!=U.shape&&(U.shape.commonCustomPropAdded||(U.shape.commonCustomPropAdded=!0,U.shape.customProperties=U.shape.customProperties||[],U.cell.vertex?Array.prototype.push.apply(U.shape.customProperties,Editor.commonVertexProperties):
Array.prototype.push.apply(U.shape.customProperties,Editor.commonEdgeProperties)),Z(U.shape.customProperties));l=l.getAttribute("customProperties");if(null!=l)try{Z(JSON.parse(l))}catch(aa){}}};var W=StyleFormatPanel.prototype.init;StyleFormatPanel.prototype.init=function(){var l=this.editorUi.getSelectionState();null!=this.defaultColorSchemes&&0<this.defaultColorSchemes.length&&"image"!=l.style.shape&&!l.containsLabel&&0<l.cells.length&&this.container.appendChild(this.addStyles(this.createPanel())); | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
mxCylinder);k.prototype.tabWidth=60;k.prototype.tabHeight=20;k.prototype.tabPosition="right";k.prototype.arcSize=.1;k.prototype.paintVertexShape=function(c,m,u,n,t){c.translate(m,u);m=Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,"tabWidth",this.tabWidth))));u=Math.max(0,Math.min(t,parseFloat(mxUtils.getValue(this.style,"tabHeight",this.tabHeight))));var C=mxUtils.getValue(this.style,"tabPosition",this.tabPosition),D=mxUtils.getValue(this.style,"rounded",!1),ha=mxUtils.getValue(this.style,
"absoluteArcSize",!1),I=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));ha||(I*=Math.min(n,t));I=Math.min(I,.5*n,.5*(t-u));m=Math.max(m,I);m=Math.min(n-I,m);D||(I=0);c.begin();"left"==C?(c.moveTo(Math.max(I,0),u),c.lineTo(Math.max(I,0),0),c.lineTo(m,0),c.lineTo(m,u)):(c.moveTo(n-m,u),c.lineTo(n-m,0),c.lineTo(n-Math.max(I,0),0),c.lineTo(n-Math.max(I,0),u));D?(c.moveTo(0,I+u),c.arcTo(I,I,0,0,1,I,u),c.lineTo(n-I,u),c.arcTo(I,I,0,0,1,n,I+u),c.lineTo(n,t-I),c.arcTo(I,I,0,0,1,n-I,t),c.lineTo(I,
t),c.arcTo(I,I,0,0,1,0,t-I)):(c.moveTo(0,u),c.lineTo(n,u),c.lineTo(n,t),c.lineTo(0,t));c.close();c.fillAndStroke();c.setShadow(!1);"triangle"==mxUtils.getValue(this.style,"folderSymbol",null)&&(c.begin(),c.moveTo(n-30,u+20),c.lineTo(n-20,u+10),c.lineTo(n-10,u+20),c.close(),c.stroke())};mxCellRenderer.registerShape("folder",k);k.prototype.getLabelMargins=function(c){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var m=mxUtils.getValue(this.style,"tabHeight",15)*this.scale;if(mxUtils.getValue(this.style, | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
N||Z});0<l.length&&(da=da.concat(l),V=f.getIncomingTreeEdges(ba[P]),ba=ba.concat(V))}else null!=V&&da.push(ba[P])}ba=da;return z.apply(this,arguments)};d.hoverIcons.getStateAt=function(ba,S,da){return p(ba.cell)?null:this.graph.view.getState(this.graph.getCellAt(S,da))};var A=f.duplicateCells;f.duplicateCells=function(ba,S){ba=null!=ba?ba:this.getSelectionCells();for(var da=ba.slice(0),P=0;P<da.length;P++){var V=f.view.getState(da[P]);if(null!=V&&p(V.cell)){var l=f.getIncomingTreeEdges(V.cell);for(V= | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
A,H,J,O,G,ja,fa,ca,ia,ma,ba)};EditorUi.prototype.createImageUrlConverter=function(){EditorUi.logEvent("SHOULD NOT BE CALLED: createImageUrlConverter");return this.editor.createImageUrlConverter()};EditorUi.prototype.convertImages=function(d,f,k,v){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImages");return this.editor.convertImages(d,f,k,v)};EditorUi.prototype.convertImageToDataUri=function(d,f){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImageToDataUri");return this.editor.convertImageToDataUri(d, | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
xa.length;sa<Ma;sa++)xa.push(oa);xa=xa.join(",");wa.setCellStyles(x.dependentProps[Da],xa,wa.getSelectionCells());Q.push(x.dependentProps[Da]);X.push(xa)}if("function"==typeof x.onChange)x.onChange(wa,Ma);pa.editorUi.fireEvent(new mxEventObject("styleChanged","keys",Q,"values",X,"cells",wa.getSelectionCells()))}finally{wa.getModel().endUpdate()}}function U(Da,Ma,x){var L=mxUtils.getOffset(l,!0),Q=mxUtils.getOffset(Da,!0);Ma.style.position="absolute";Ma.style.left=Q.x-L.x+"px";Ma.style.top=Q.y-L.y+ | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
null,[b]),this.setCellStyles(mxConstants.STYLE_FONTSTYLE,null,[b]),this.setCellStyles(mxConstants.STYLE_FONTCOLOR,null,[b]),this.setCellStyles(mxConstants.STYLE_LABEL_BORDERCOLOR,null,[b]),this.setCellStyles(mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,null,[b]))}finally{this.getModel().endUpdate()}return p};Graph.prototype.createParent=function(b,e,g,p,y){b=this.cloneCell(b);for(var q=0;q<g;q++){var E=this.cloneCell(e),M=this.getCellGeometry(E);null!=M&&(M.x+=q*p,M.y+=q*y);b.insert(E)}return b}; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
null==b?(F.style.border="1px solid #c0c0c0",F.style.margin="40px",mxEvent.addListener(document.documentElement,"keydown",q)):(e.style.display="none",g.style.display="none");var K=this;T.getImageFromBundles=function(W){return K.getImageUrl(W)};var R=y.createTemporaryGraph;y.createTemporaryGraph=function(){var W=R.apply(this,arguments);W.getImageFromBundles=function(d){return K.getImageUrl(d)};return W};this.graphConfig.move&&(T.isMoveCellsEvent=function(W){return!0});mxUtils.setPrefixedStyle(F.style, | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
(x=2);return x};var P=mxVertexHandler.prototype.getSelectionBorderBounds;mxVertexHandler.prototype.getSelectionBorderBounds=function(){return P.apply(this,arguments).grow(-this.getSelectionBorderInset())};var V=null,l=mxVertexHandler.prototype.createCustomHandles;mxVertexHandler.prototype.createCustomHandles=function(){null==V&&(V=mxCellRenderer.defaultShapes.tableLine);var x=l.apply(this,arguments);if(this.graph.isTable(this.state.cell)&&this.graph.isCellMovable(this.state.cell)){var L=function(bb,
$a,Ra){for(var db=[],lb=0;lb<bb.length;lb++){var kb=bb[lb];db.push(null==kb?null:new mxPoint((sa+kb.x+$a)*la,(va+kb.y+Ra)*la))}return db},Q=this,X=this.graph,ea=X.model,la=X.view.scale,oa=this.state,xa=this.selectionBorder,sa=this.state.origin.x+X.view.translate.x,va=this.state.origin.y+X.view.translate.y;null==x&&(x=[]);var Fa=X.view.getCellStates(ea.getChildCells(this.state.cell,!0));if(0<Fa.length){var Ua=ea.getChildCells(Fa[0].cell,!0),ab=X.getTableLines(this.state.cell,!1,!0),Na=X.getTableLines(this.state.cell, | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
Graph.prototype.getParentByName=function(x,L,Q){for(;null!=x&&x.nodeName!=L;){if(x==Q)return null;x=x.parentNode}return x};Graph.prototype.getParentByNames=function(x,L,Q){for(;null!=x&&!(0<=mxUtils.indexOf(L,x.nodeName));){if(x==Q)return null;x=x.parentNode}return x};Graph.prototype.selectNode=function(x){var L=null;if(window.getSelection){if(L=window.getSelection(),L.getRangeAt&&L.rangeCount){var Q=document.createRange();Q.selectNode(x);L.removeAllRanges();L.addRange(Q)}}else(L=document.selection)&& | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
EditorUi.prototype.executeLayout=function(b,e,g){var p=this.editor.graph;p.getModel().beginUpdate();try{b()}catch(y){throw y;}finally{this.allowAnimation&&e&&p.isEnabled()?(b=new mxMorphing(p),b.addListener(mxEvent.DONE,mxUtils.bind(this,function(){p.getModel().endUpdate();null!=g&&g()})),b.startAnimation()):(p.getModel().endUpdate(),null!=g&&g())}}; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
"-rev_"+this.ui.hashValue(M):"")+(null!=z?"-latest_"+z:"")+(null!=k?"-latestRev_"+this.ui.hashValue(k.getCurrentRevisionId()):""));EditorUi.logEvent({category:"CHECKSUM-ERROR-SYNC-FILE-"+W,action:y,label:"user_"+R+(null!=this.sync?"-client_"+this.sync.clientId:"-nosync")+"-bytes_"+d+"-patches_"+e.length+"-size_"+this.getSize()})}catch(A){}}),b)}}catch(k){}}; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
null!=B&&0<B.length&&(B=l[B[1]],null!=B&&(B=/.* \/Subject (\d+) (\d+) R/g.exec(B.join("\n")),null!=B&&0<B.length&&(l=l[B[1]],null!=l&&(l=l.join("\n"),N=l.substring(1,l.length-1))))));return N};Editor.extractParserError=function(l,B){var N=null;l=null!=l?l.getElementsByTagName("parsererror"):null;null!=l&&0<l.length&&(N=B||mxResources.get("invalidChars"),B=l[0].getElementsByTagName("div"),0<B.length&&(N=mxUtils.getTextContent(B[0])));return null!=N?mxUtils.trim(N):N};Editor.addRetryToError=function(l,
B){null!=l&&(l=null!=l.error?l.error:l,null==l.retry&&(l.retry=B))};Editor.mermaidToDrawio=function(l,B,N){if("function"===typeof mxMermaidToDrawio)return mxMermaidToDrawio(l,B,N)};Editor.configure=function(l){if(null!=l){Editor.config=l;Editor.configVersion=l.version;l.debug&&(urlParams.test="1");null!=l.defaultFonts&&(Menus.prototype.defaultFonts=l.defaultFonts);null!=l.presetColors&&(ColorDialog.prototype.presetColors=l.presetColors);null!=l.defaultColors&&(ColorDialog.prototype.defaultColors= | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
n,u+t/2);c.end();c.stroke()};mxCellRenderer.registerShape("sortShape",la);mxUtils.extend(oa,mxEllipse);oa.prototype.paintVertexShape=function(c,m,u,n,t){c.begin();c.moveTo(m,u);c.lineTo(m+n,u);c.lineTo(m+n/2,u+t/2);c.close();c.fillAndStroke();c.begin();c.moveTo(m,u+t);c.lineTo(m+n,u+t);c.lineTo(m+n/2,u+t/2);c.close();c.fillAndStroke()};mxCellRenderer.registerShape("collate",oa);mxUtils.extend(xa,mxEllipse);xa.prototype.paintVertexShape=function(c,m,u,n,t){var C=c.state.strokeWidth/2,D=10+2*C,ha=u+
t-D/2;c.begin();c.moveTo(m,u);c.lineTo(m,u+t);c.moveTo(m+C,ha);c.lineTo(m+C+D,ha-D/2);c.moveTo(m+C,ha);c.lineTo(m+C+D,ha+D/2);c.moveTo(m+C,ha);c.lineTo(m+n-C,ha);c.moveTo(m+n,u);c.lineTo(m+n,u+t);c.moveTo(m+n-C,ha);c.lineTo(m+n-D-C,ha-D/2);c.moveTo(m+n-C,ha);c.lineTo(m+n-D-C,ha+D/2);c.end();c.stroke()};mxCellRenderer.registerShape("dimension",xa);mxUtils.extend(sa,mxEllipse);sa.prototype.drawHidden=!0;sa.prototype.paintVertexShape=function(c,m,u,n,t){this.outline||c.setStrokeColor(null);if(null!= | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
["clearWaypoints"],null,l)}1==f.getSelectionCount()&&this.addMenuItems(P,["enterGroup"],null,l);B=d.getSelectionState();null!=B.mergeCell?this.addMenuItem(P,"mergeCells"):(1<B.style.colspan||1<B.style.rowspan)&&this.addMenuItem(P,"unmergeCells")}};this.menus.isShowStyleItems=function(){return"simple"!=Editor.currentTheme&&"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme};this.menus.isShowHistoryItems=function(){return"simple"!=Editor.currentTheme};this.menus.isShowArrangeItems=this.menus.isShowStyleItems; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
function(){var P=this.getCurrentFile(),V=null!=P&&null!=P.getTitle()?P.getTitle():this.defaultFilename;ca!=V&&P==ia&&(f.invalidateDescendantsWithPlaceholders(f.model.getRoot()),f.view.validate());ca=V;ia=P}));var ma=f.labelLinkClicked;f.labelLinkClicked=function(P,V,l){var B=V.getAttribute("href");if(null==B||!f.isCustomLink(B)||!mxEvent.isTouchEvent(l)&&mxEvent.isPopupTrigger(l))ma.apply(this,arguments);else{if(!f.isEnabled()||null!=P&&f.isCellLocked(P.cell))f.customLinkClicked(B),f.getRubberband().reset();
mxEvent.consume(l)}};this.editor.getOrCreateFilename=function(){var P=d.defaultFilename,V=d.getCurrentFile();null!=V&&(P=null!=V.getTitle()?V.getTitle():P);return P};var ba=this.actions.get("print");ba.setEnabled(!mxClient.IS_IOS||!navigator.standalone);ba.visible=ba.isEnabled();if(!this.editor.chromeless||this.editor.editable)this.keyHandler.bindAction(70,!0,"findReplace"),this.keyHandler.bindAction(77,!0,"editGeometry",!0),this.keyHandler.bindAction(75,!0,"tags"),this.keyHandler.bindAction(65,!1, | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
Editor.fastCompress=function(l){return null==l||0==l.length||"undefined"===typeof pako?l:Graph.arrayBufferToString(pako.deflateRaw(l))};Editor.fastDecompress=function(l){return null==l||0==l.length||"undefined"===typeof pako?l:pako.inflateRaw(Graph.stringToArrayBuffer(atob(l)),{to:"string"})};Editor.extractGraphModel=function(l,B,N){if(null!=l&&"undefined"!==typeof pako){var Z=l.ownerDocument.getElementsByTagName("div"),U=[];if(null!=Z&&0<Z.length)for(var aa=0;aa<Z.length;aa++)if("mxgraph"==Z[aa].getAttribute("class")){U.push(Z[aa]); | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
console.log("Error in MathJax.typeset: "+ka.toString())}};window.MathJax=null!=B?B:{options:{skipHtmlTags:{"[+]":["text"]}},loader:{load:["html"==urlParams["math-output"]?"output/chtml":"output/svg","input/tex","input/asciimath","ui/safe"]},startup:{pageReady:function(){for(var Y=0;Y<Editor.mathJaxQueue.length;Y++)Editor.doMathJaxRender(Editor.mathJaxQueue[Y])}}};Editor.MathJaxRender=function(Y){"undefined"!==typeof MathJax&&"function"===typeof MathJax.typeset?Editor.doMathJaxRender(Y):Editor.mathJaxQueue.push(Y)}; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
p);var Ra=Math.tan(mxUtils.toRadians(30)),db=(.5-Ra)/2;mxCellRenderer.registerShape("isoRectangle",E);mxUtils.extend(y,mxConnector);y.prototype.paintEdgeShape=function(c,m){var u=this.createMarker(c,m,!0),n=this.createMarker(c,m,!1);c.setDashed(!1);mxPolyline.prototype.paintEdgeShape.apply(this,arguments);null!=this.isDashed&&c.setDashed(this.isDashed,null!=this.style?1==mxUtils.getValue(this.style,mxConstants.STYLE_FIX_DASH,!1):!1);c.setShadow(!1);c.setStrokeColor(this.fill);mxPolyline.prototype.paintEdgeShape.apply(this,
arguments);c.setStrokeColor(this.stroke);c.setFillColor(this.stroke);c.setDashed(!1);null!=u&&u();null!=n&&n()};mxCellRenderer.registerShape("wire",y);mxUtils.extend(q,mxCylinder);q.prototype.size=6;q.prototype.paintVertexShape=function(c,m,u,n,t){c.setFillColor(this.stroke);var C=Math.max(0,parseFloat(mxUtils.getValue(this.style,"size",this.size))-2)+2*this.strokewidth;c.ellipse(m+.5*(n-C),u+.5*(t-C),C,C);c.fill();c.setFillColor(mxConstants.NONE);c.rect(m,u,n,t);c.fill()};mxCellRenderer.registerShape("waypoint", | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
!0;this.connectionHandler.setCreateTarget(!1);this.connectionHandler.insertBeforeSource=!0;this.connectionHandler.isValidSource=function(S,da){return!1};this.alternateEdgeStyle="vertical";null==p&&this.loadStylesheet();var R=this.graphHandler.getGuideStates;this.graphHandler.getGuideStates=function(){var S=R.apply(this,arguments);if(this.graph.pageVisible){var da=[],P=this.graph.pageFormat,V=this.graph.pageScale,l=P.width*V;P=P.height*V;V=this.graph.view.translate;for(var B=this.graph.view.scale, | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
Graph.prototype.createLayersDialog=function(b,e){var g=document.createElement("div");g.style.position="absolute";for(var p=this.getModel(),y=p.getChildCount(p.root),q=0;q<y;q++)mxUtils.bind(this,function(E){function M(){p.isVisible(E)?(K.setAttribute("src",Editor.visibleImage),mxUtils.setOpacity(F,75)):(K.setAttribute("src",Editor.hiddenImage),mxUtils.setOpacity(F,25))}var T=this.convertValueToString(E)||mxResources.get("background")||"Background",F=document.createElement("div");F.style.overflow= | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
var ErrorDialog=function(b,e,g,p,y,q,E,M,T,F,K){T=null!=T?T:!0;var R=document.createElement("div");R.style.textAlign="center";if(null!=e){var W=document.createElement("div");W.style.padding="0px";W.style.margin="0px";W.style.fontSize="18px";W.style.paddingBottom="16px";W.style.marginBottom="10px";W.style.borderBottom="1px solid #c0c0c0";W.style.color="gray";W.style.whiteSpace="nowrap";W.style.textOverflow="ellipsis";W.style.overflow="hidden";mxUtils.write(W,e);W.setAttribute("title",e);R.appendChild(W)}e=
document.createElement("div");e.style.lineHeight="1.2em";e.style.padding="6px";"string"===typeof g&&(g=g.replace(/\n/g,"<br/>"));e.innerHTML=g;R.appendChild(e);g=document.createElement("div");g.style.marginTop="12px";g.style.textAlign="center";null!=q&&(e=mxUtils.button(mxResources.get("tryAgain"),function(){b.hideDialog();q()}),e.className="geBtn",g.appendChild(e),g.style.textAlign="center");null!=F&&(F=mxUtils.button(F,function(){null!=K&&K()}),F.className="geBtn",g.appendChild(F));var d=mxUtils.button(p,
function(){T&&b.hideDialog();null!=y&&y()});d.className="geBtn";g.appendChild(d);null!=E&&(p=mxUtils.button(E,function(){T&&b.hideDialog();null!=M&&M()}),p.className="geBtn gePrimaryBtn",g.appendChild(p));this.init=function(){d.focus()};R.appendChild(g);this.container=R},PrintDialog=function(b,e){this.create(b,e)}; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
function(x){var L=x.getEvent();return null==x.getState()&&!mxEvent.isMouseEvent(L)||mxEvent.isPopupTrigger(L)&&(null==x.getState()||mxEvent.isControlDown(L)||mxEvent.isShiftDown(L))};var Y=mxGraphHandler.prototype.mouseDown;mxGraphHandler.prototype.mouseDown=function(x,L){Y.apply(this,arguments);mxEvent.isTouchEvent(L.getEvent())&&this.graph.isCellSelected(L.getCell())&&1<this.graph.getSelectionCount()&&(this.delayedSelection=!1)}}else mxPanningHandler.prototype.isPanningTrigger=function(x){var L= | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
(Z=decodeURIComponent(Z)),null!=Z&&0<Z.length)l=mxUtils.parseXml(Z).documentElement;else throw{message:mxResources.get("notADiagramFile")};null==l||B||(U=null,"diagram"==l.nodeName?U=l:"mxfile"==l.nodeName&&(Z=l.getElementsByTagName("diagram"),0<Z.length&&(U=Z[Math.max(0,Math.min(Z.length-1,urlParams.page||0))])),null!=U&&(l=Editor.parseDiagramNode(U,N)));null==l||"mxGraphModel"==l.nodeName||B&&"mxfile"==l.nodeName||(l=null);return l};Editor.parseDiagramNode=function(l,B){var N=mxUtils.trim(mxUtils.getTextContent(l)),
Z=null;0<N.length?(l=Graph.decompress(N,null,B),null!=l&&0<l.length&&(Z=mxUtils.parseXml(l).documentElement)):(l=mxUtils.getChildNodes(l),0<l.length&&(Z=mxUtils.createXmlDocument(),Z.appendChild(Z.importNode(l[0],!0)),Z=Z.documentElement));return Z};Editor.getDiagramNodeXml=function(l){var B=mxUtils.getTextContent(l),N=null;0<B.length?N=Graph.decompress(B):null!=l.firstChild&&(N=mxUtils.getXml(l.firstChild));return N};Editor.extractGraphModelFromPdf=function(l){l=l.substring(l.indexOf(",")+1);l=window.atob&& | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
this.scale=1,this.translate.x=0,this.translate.y=0);e.apply(this,arguments);this.graph.useCssTransforms&&(this.graph.updateCssTransform(),this.scale=this.graph.currentScale,this.translate.x=this.graph.currentTranslate.x,this.translate.y=this.graph.currentTranslate.y)};var g=mxGraph.prototype.getCellsForGroup;Graph.prototype.getCellsForGroup=function(E){E=g.apply(this,arguments);for(var M=[],T=0;T<E.length;T++)this.isTableRow(E[T])||this.isTableCell(E[T])||M.push(E[T]);return M};var p=mxGraph.prototype.getCellsForUngroup; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
0>mxUtils.indexOf(x,la)&&0>mxUtils.indexOf(Q,la))){for(var oa=this.model.getChildCells(la,!0),xa=0,sa=0;sa<oa.length;sa++)0<=mxUtils.indexOf(x,oa[sa])&&xa++;xa==oa.length&&Q.push(la)}Q.push(x[X])}Q=d.apply(this,[Q,L])}finally{this.model.endUpdate()}return Q};Graph.prototype.updateCustomLinks=function(x,L,Q){Q=null!=Q?Q:new Graph;for(var X=0;X<L.length;X++)null!=L[X]&&Q.updateCustomLinksForCell(x,L[X],Q)};Graph.prototype.updateCustomLinksForCell=function(x,L){this.doUpdateCustomLinksForCell(x,L);for(var Q=
this.model.getChildCount(L),X=0;X<Q;X++)this.updateCustomLinksForCell(x,this.model.getChildAt(L,X))};Graph.prototype.doUpdateCustomLinksForCell=function(x,L){};Graph.prototype.getAllConnectionConstraints=function(x,L){if(null!=x){L=mxUtils.getValue(x.style,"points",null);if(null!=L){x=[];try{var Q=JSON.parse(L);for(L=0;L<Q.length;L++){var X=Q[L];x.push(new mxConnectionConstraint(new mxPoint(X[0],X[1]),2<X.length?"0"!=X[2]:!0,null,3<X.length?X[3]:0,4<X.length?X[4]:0))}}catch(la){}return x}if(null!= | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
qa.className="geCommentAction";var ra=document.createElement("a");ra.className="geCommentActionLnk";mxUtils.write(ra,aa);qa.appendChild(ra);mxEvent.addListener(ra,"click",function(pa){Y(pa,ca);pa.preventDefault();mxEvent.consume(pa)});U.appendChild(qa);ka&&(qa.style.display="none")}function P(){function aa(qa){Y.push(ka);if(null!=qa.replies)for(var ra=0;ra<qa.replies.length;ra++)ka=ka.nextSibling,aa(qa.replies[ra])}var Y=[],ka=l;aa(ca);return{pdiv:ka,replies:Y}}function V(aa,Y,ka,qa,ra){function pa(){F(ya); | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
Editor.createRoughCanvas=function(l){var B=rough.canvas({getContext:function(){return l}});B.draw=function(N){var Z=N.sets||[];N=N.options||this.getDefaultOptions();for(var U=0;U<Z.length;U++){var aa=Z[U];switch(aa.type){case "path":null!=N.stroke&&this._drawToContext(l,aa,N);break;case "fillPath":this._drawToContext(l,aa,N);break;case "fillSketch":this.fillSketch(l,aa,N)}}};B.fillSketch=function(N,Z,U){var aa=l.state.strokeColor,Y=l.state.strokeWidth,ka=l.state.strokeAlpha,qa=l.state.dashed,ra=U.fillWeight;
0>ra&&(ra=U.strokeWidth/2);l.setStrokeAlpha(l.state.fillAlpha);l.setStrokeColor(U.fill||"");l.setStrokeWidth(ra);l.setDashed(!1);this._drawToContext(N,Z,U);l.setDashed(qa);l.setStrokeWidth(Y);l.setStrokeColor(aa);l.setStrokeAlpha(ka)};B._drawToContext=function(N,Z,U){N.begin();for(var aa=0;aa<Z.ops.length;aa++){var Y=Z.ops[aa],ka=Y.data;switch(Y.op){case "move":N.moveTo(ka[0],ka[1]);break;case "bcurveTo":N.curveTo(ka[0],ka[1],ka[2],ka[3],ka[4],ka[5]);break;case "lineTo":N.lineTo(ka[0],ka[1])}}N.end(); | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
this.lastY,aa,Y,ka,qa,ra,pa,wa);if(null!=Ca)for(var Ba=0;Ba<Ca.length;Ba+=6)this.curveTo(Ca[Ba],Ca[Ba+1],Ca[Ba+2],Ca[Ba+3],Ca[Ba+4],Ca[Ba+5]);this.lastX=pa;this.lastY=wa}};l.prototype.rect=function(aa,Y,ka,qa){this.passThrough?this.originalRect.apply(this.canvas,arguments):(this.path=[],this.nextShape=this.rc.generator.rectangle(aa,Y,ka,qa,this.getStyle(!0,!0)))};l.prototype.ellipse=function(aa,Y,ka,qa){this.passThrough?this.originalEllipse.apply(this.canvas,arguments):(this.path=[],this.nextShape= | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
["clearWaypoints"],null,l)}1==f.getSelectionCount()&&this.addMenuItems(P,["enterGroup"],null,l);B=d.getSelectionState();null!=B.mergeCell?this.addMenuItem(P,"mergeCells"):(1<B.style.colspan||1<B.style.rowspan)&&this.addMenuItem(P,"unmergeCells")}};this.menus.isShowStyleItems=function(){return"simple"!=Editor.currentTheme&&"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme};this.menus.isShowHistoryItems=function(){return"simple"!=Editor.currentTheme};this.menus.isShowArrangeItems=this.menus.isShowStyleItems; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
"min"==Editor.currentTheme};var R=DiagramFormatPanel.prototype.addOptions;DiagramFormatPanel.prototype.addOptions=function(l){l=R.apply(this,arguments);var B=this.editorUi,N=B.editor.graph;if(N.isEnabled()){var Z=B.getCurrentFile();null!=Z&&Z.isAutosaveOptional()&&l.appendChild(this.createOption(mxResources.get("autosave"),function(){return B.editor.autosave},function(Y){B.editor.setAutosave(Y);B.editor.autosave&&Z.isModified()&&Z.fileChanged()},{install:function(Y){this.listener=function(){Y(B.editor.autosave)};
B.editor.addListener("autosaveChanged",this.listener)},destroy:function(){B.editor.removeListener(this.listener)}}))}if(this.isMathOptionVisible()&&N.isEnabled()&&"undefined"!==typeof MathJax){var U=this.createOption(mxResources.get("mathematicalTypesetting"),function(){return N.mathEnabled},function(Y){B.actions.get("mathematicalTypesetting").funct()},{install:function(Y){this.listener=function(){Y(N.mathEnabled)};B.addListener("mathEnabledChanged",this.listener)},destroy:function(){B.removeListener(this.listener)}});
l.appendChild(U);var aa=B.menus.createHelpLink("https://www.drawio.com/doc/faq/math-typesetting");aa.style.position="relative";aa.style.marginLeft="6px";U.appendChild(aa)}return l};mxCellRenderer.prototype.defaultVertexShape.prototype.customProperties=[{name:"arcSize",dispName:"Arc Size",type:"float",min:0,defVal:mxConstants.LINE_ARCSIZE},{name:"absoluteArcSize",dispName:"Abs. Arc Size",type:"bool",defVal:!1}];mxCellRenderer.defaultShapes.link.prototype.customProperties=[{name:"width",dispName:"Width", | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
Math.min(t,C))};mxCellRenderer.registerShape("umlLifeline",aa);mxUtils.extend(Y,mxShape);Y.prototype.width=60;Y.prototype.height=30;Y.prototype.corner=10;Y.prototype.configurePointerEvents=function(c){var m=mxUtils.getValue(this.style,mxConstants.STYLE_SWIMLANE_FILLCOLOR,mxConstants.NONE);null==this.style||null!=m&&m!=mxConstants.NONE&&0!=this.opacity&&0!=this.fillOpacity||"0"!=mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1")||(c.pointerEvents=!1)};Y.prototype.getLabelMargins=function(c){return new mxRectangle(0,
0,c.width-parseFloat(mxUtils.getValue(this.style,"width",this.width)*this.scale),c.height-parseFloat(mxUtils.getValue(this.style,"height",this.height)*this.scale))};Y.prototype.paintBackground=function(c,m,u,n,t){var C=this.corner,D=Math.min(n,Math.max(C,parseFloat(mxUtils.getValue(this.style,"width",this.width)))),ha=Math.min(t,Math.max(1.5*C,parseFloat(mxUtils.getValue(this.style,"height",this.height)))),I=mxUtils.getValue(this.style,mxConstants.STYLE_SWIMLANE_FILLCOLOR,mxConstants.NONE);I!=mxConstants.NONE&& | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
arguments))};var v=mxSvgCanvas2D.prototype.updateTextNodes;mxSvgCanvas2D.prototype.updateTextNodes=function(l,B,N,Z,U,aa,Y,ka,qa,ra,pa){v.apply(this,arguments);Graph.processFontAttributes(pa)};var z=mxText.prototype.redraw;mxText.prototype.redraw=function(){z.apply(this,arguments);null!=this.node&&"DIV"==this.node.nodeName&&Graph.processFontAttributes(this.node)};Graph.prototype.createTagsDialog=function(l,B,N){function Z(){for(var ya=Y.getSelectionCells(),Oa=[],Qa=0;Qa<ya.length;Qa++)Y.isCellVisible(ya[Qa])&& | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
K.width/e),g.getElementsByTagName("svg")[0].setAttribute("height",K.height/p))}catch(R){}finally{document.body.removeChild(g)}}b=Editor.createSvgDataUri(mxUtils.getXml(q[0]))}}}catch(R){}return b};Graph.stripQuotes=function(b){null!=b&&("'"==b.charAt(0)&&(b=b.substring(1)),"'"==b.charAt(b.length-1)&&(b=b.substring(0,b.length-1)),'"'==b.charAt(0)&&(b=b.substring(1)),'"'==b.charAt(b.length-1)&&(b=b.substring(0,b.length-1)));return b}; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
this.graph.currentTranslate);y.apply(this,arguments);E&&(this.scale=M,this.translate=T)};var q=mxGraph.prototype.updatePageBreaks;mxGraph.prototype.updatePageBreaks=function(E,M,T){var F=this.useCssTransforms,K=this.view.scale,R=this.view.translate;F&&(this.view.scale=1,this.view.translate=new mxPoint(0,0),this.useCssTransforms=!1);q.apply(this,arguments);F&&(this.view.scale=K,this.view.translate=R,this.useCssTransforms=!0)}})();Graph.prototype.isLightboxView=function(){return this.lightbox}; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
null!=d.pages&&null!=d.currentPage?mxUtils.indexOf(d.pages,d.currentPage)+1:1;return P};var fa=f.getGlobalVariable;f.getGlobalVariable=function(P){var V=d.getCurrentFile();return"filename"==P&&null!=V?V.getTitle():"page"==P&&null!=d.currentPage?d.currentPage.getName():"pagenumber"==P?null!=d.currentPage&&null!=d.pages?mxUtils.indexOf(d.pages,d.currentPage)+1:1:"pagecount"==P?null!=d.pages?d.pages.length:1:fa.apply(this,arguments)};var ca=null,ia=null;this.addListener("fileDescriptorChanged",mxUtils.bind(this, | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
c.pointerEvents=!1:mxSwimlane.prototype.configurePointerEvents.apply(this,arguments)};mxCellRenderer.registerShape("table",e);mxUtils.extend(g,e);g.prototype.paintForeground=function(){};mxCellRenderer.registerShape("tableRow",g);mxUtils.extend(p,mxCylinder);p.prototype.size=20;p.prototype.darkOpacity=0;p.prototype.darkOpacity2=0;p.prototype.paintVertexShape=function(c,m,u,n,t){var C=Math.max(0,Math.min(n,Math.min(t,parseFloat(mxUtils.getValue(this.style,"size",this.size))))),D=Math.max(-1,Math.min(1,
parseFloat(mxUtils.getValue(this.style,"darkOpacity",this.darkOpacity)))),ha=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,"darkOpacity2",this.darkOpacity2))));c.translate(m,u);c.begin();c.moveTo(0,0);c.lineTo(n-C,0);c.lineTo(n,C);c.lineTo(n,t);c.lineTo(C,t);c.lineTo(0,t-C);c.lineTo(0,0);c.close();c.end();c.fillAndStroke();this.outline||(c.setShadow(!1),0!=D&&(c.setFillAlpha(Math.abs(D)),c.setFillColor(0>D?"#FFFFFF":"#000000"),c.begin(),c.moveTo(0,0),c.lineTo(n-C,0),c.lineTo(n,C),
c.lineTo(C,C),c.close(),c.fill()),0!=ha&&(c.setFillAlpha(Math.abs(ha)),c.setFillColor(0>ha?"#FFFFFF":"#000000"),c.begin(),c.moveTo(0,0),c.lineTo(C,C),c.lineTo(C,t),c.lineTo(0,t-C),c.close(),c.fill()),c.begin(),c.moveTo(C,t),c.lineTo(C,C),c.lineTo(0,0),c.moveTo(C,C),c.lineTo(n,C),c.end(),c.stroke())};p.prototype.getLabelMargins=function(c){return mxUtils.getValue(this.style,"boundedLbl",!1)?(c=parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale,new mxRectangle(c,c,0,0)):null};mxCellRenderer.registerShape("cube", | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
12],yy:String(R).slice(2),yyyy:R,h:W%12||12,hh:E(W%12||12),H:W,HH:E(W),M:d,MM:E(d),s:f,ss:E(f),l:E(M,3),L:E(99<M?Math.round(M/10):M),t:12>W?"a":"p",tt:12>W?"am":"pm",T:12>W?"A":"P",TT:12>W?"AM":"PM",Z:g?"UTC":(String(b).match(y)||[""]).pop().replace(q,""),o:(0<k?"-":"+")+E(100*Math.floor(Math.abs(k)/60)+Math.abs(k)%60,4),S:["th","st","nd","rd"][3<T%10?0:(10!=T%100-T%10)*T%10]};return e.replace(/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,function(z){return z in v?v[z]:z.slice(1, | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
2,t/3);c.lineTo(n,t/3);c.moveTo(n/2,2*t/3);c.lineTo(0,t);c.moveTo(n/2,2*t/3);c.lineTo(n,t);c.end();c.stroke()};mxCellRenderer.registerShape("umlActor",l);mxUtils.extend(B,mxShape);B.prototype.getLabelMargins=function(c){return new mxRectangle(c.width/6,0,0,0)};B.prototype.paintBackground=function(c,m,u,n,t){c.translate(m,u);c.begin();c.moveTo(0,t/4);c.lineTo(0,3*t/4);c.end();c.stroke();c.begin();c.moveTo(0,t/2);c.lineTo(n/6,t/2);c.end();c.stroke();c.ellipse(n/6,0,5*n/6,t);c.fillAndStroke()};mxCellRenderer.registerShape("umlBoundary", | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
l);B[0].parentNode.appendChild(aa)}}};Editor.prototype.csvToArray=function(l){if(0<l.length){var B="",N=[""],Z=0,U=!0,aa;l=$jscomp.makeIterator(l);for(aa=l.next();!aa.done;aa=l.next())aa=aa.value,'"'===aa?(U&&aa===B&&(N[Z]+=aa),U=!U):","===aa&&U?aa=N[++Z]="":N[Z]+=aa,B=aa;return N}return[]};Editor.prototype.getProxiedUrl=function(l){if((/test\.draw\.io$/.test(window.location.hostname)||/app\.diagrams\.net$/.test(window.location.hostname))&&!this.isCorsEnabledForUrl(l)){var B=/(\.v(dx|sdx?))($|\?)/i.test(l)||
/(\.vs(x|sx?))($|\?)/i.test(l);B=/\.png$/i.test(l)||/\.pdf$/i.test(l)||B;var N="t="+(new Date).getTime();l=PROXY_URL+"?url="+encodeURIComponent(l)+"&"+N+(B?"&base64=1":"")}return l};Editor.prototype.isCorsEnabledForUrl=function(l){if(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||l.substring(0,window.location.origin.length)==window.location.origin)return!0;null!=urlParams.cors&&null==this.corsRegExp&&(this.corsRegExp=new RegExp(decodeURIComponent(urlParams.cors)));return null!=this.corsRegExp&&this.corsRegExp.test(l)|| | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
b,g);this.replaceDefaultColor(e,mxConstants.STYLE_LABEL_BORDERCOLOR,g,b);this.replaceDefaultColor(e,mxConstants.STYLE_SWIMLANE_FILLCOLOR,b,g);this.replaceDefaultColor(e,mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,b,g)}return e};Graph.prototype.replaceDefaultColor=function(b,e,g,p){null!=b&&"default"==b[e]&&null!=g&&(b[e]=this.getDefaultColor(b,e,g,p))};Graph.prototype.getDefaultColor=function(b,e,g,p){e="default"+e.charAt(0).toUpperCase()+e.substring(1);"invert"==b[e]&&(g=p);return g}; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
"px",this.secondDiv.style.width=this.graph.container.clientWidth+"px",this.secondDiv.style.height=Math.max(0,this.height)+"px",this.secondDiv.style.borderWidth=0>=this.height?"1px 0px 0px 0px":"1px 0px 1px 0px"):(this.div.style.backgroundColor="",this.div.style.borderWidth="",this.div.style.borderStyle="",null!=this.secondDiv&&(this.secondDiv.parentNode.removeChild(this.secondDiv),this.secondDiv=null)),L.consume()}};var ka=mxRubberband.prototype.reset;mxRubberband.prototype.reset=function(){null!=
this.secondDiv&&(this.secondDiv.parentNode.removeChild(this.secondDiv),this.secondDiv=null);ka.apply(this,arguments)};var qa=(new Date).getTime(),ra=0,pa=mxEdgeHandler.prototype.updatePreviewState;mxEdgeHandler.prototype.updatePreviewState=function(x,L,Q,X){pa.apply(this,arguments);Q!=this.currentTerminalState?(qa=(new Date).getTime(),ra=0):ra=(new Date).getTime()-qa;this.currentTerminalState=Q};var wa=mxEdgeHandler.prototype.isOutlineConnectEvent;mxEdgeHandler.prototype.isOutlineConnectEvent=function(x){return mxEvent.isShiftDown(x.getEvent())&& | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
document?(q=document.createEvent("HTMLEvents"),q.initEvent("change",!1,!0),e.dispatchEvent(q)):e.fireEvent("onchange")});b=function(q){q=e.value.toLowerCase();for(var E=0,M=0;M<g.length;M++){var T=g[M].extension,F=null;"drawio"!=T&&(F=T,T=".drawio."+T);if(q.substring(q.length-T.length-1)=="."+T||null!=F&&q.substring(q.length-F.length-1)=="."+F){E=M;break}}p.value=E};mxEvent.addListener(e,"change",b);mxEvent.addListener(e,"keyup",b);b();return p}; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
function W(){mxShape.call(this)}function d(c,m,u,n){mxShape.call(this);this.bounds=c;this.fill=m;this.stroke=u;this.strokewidth=null!=n?n:1}function f(){mxActor.call(this)}function k(){mxCylinder.call(this)}function v(){mxCylinder.call(this)}function z(){mxActor.call(this)}function A(){mxActor.call(this)}function H(){mxActor.call(this)}function J(){mxActor.call(this)}function O(){mxActor.call(this)}function G(){mxActor.call(this)}function ja(){mxActor.call(this)}function fa(c,m){this.canvas=c;this.canvas.setLineJoin("round"); | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
v.document.write('<html><img style="max-width:100%;" src="data:'+f+";base64,"+d+'"/></html>')):v.document.write("<html>"+d+"</html>"):v.document.write("<html><pre>"+mxUtils.htmlEntities(d,!1)+"</pre></html>"),v.document.close())};var p=EditorUi.prototype.addChromelessToolbarItems;EditorUi.prototype.isChromelessImageExportEnabled=function(){return"draw.io"!=this.getServiceName()||/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname)};EditorUi.prototype.addChromelessToolbarItems= | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
DrawioFile.prototype.commentsRefreshNeeded=function(){return!0};DrawioFile.prototype.commentsSaveNeeded=function(){return!1};DrawioFile.prototype.getComments=function(b,e){b([])};DrawioFile.prototype.addComment=function(b,e,g){e(Date.now())};DrawioFile.prototype.canReplyToReplies=function(){return!0};DrawioFile.prototype.canComment=function(){return!0};DrawioFile.prototype.newComment=function(b,e){return new DrawioComment(this,null,b,Date.now(),Date.now(),!1,e)};LocalFile=function(b,e,g,p,y,q){DrawioFile.call(this,b,e);this.title=g;this.mode=p?null:App.MODE_DEVICE;this.fileHandle=y;this.desc=q};mxUtils.extend(LocalFile,DrawioFile);LocalFile.prototype.isAutosave=function(){return null!=this.fileHandle&&!this.invalidFileHandle&&DrawioFile.prototype.isAutosave.apply(this,arguments)};LocalFile.prototype.isAutosaveOptional=function(){return null!=this.fileHandle};LocalFile.prototype.getMode=function(){return this.mode};LocalFile.prototype.getTitle=function(){return this.title}; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
x;x=document.createDocumentFragment();for(var X;X=Q.firstChild;)lastNode=x.appendChild(X);L.insertNode(x)}}else(L=document.selection)&&"Control"!=L.type&&L.createRange().pasteHTML(x)};Graph.prototype.createLinkForHint=function(x,L){function Q(ea,la){ea.length>la&&(ea=ea.substring(0,Math.round(la/2))+"..."+ea.substring(ea.length-Math.round(la/4)));return ea}x=null!=x?x:"javascript:void(0);";if(null==L||0==L.length)L=this.isCustomLink(x)?this.getLinkTitle(x):x;var X=document.createElement("a");X.setAttribute("rel", | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
function(){var x=this.getHandlePadding();return new mxPoint(this.bounds.x+this.bounds.width-this.rotationHandleVSpacing+x.x/2,this.bounds.y+this.rotationHandleVSpacing-x.y/2)};mxVertexHandler.prototype.isRecursiveResize=function(x,L){return this.graph.isRecursiveVertexResize(x)&&!mxEvent.isAltDown(L.getEvent())};mxVertexHandler.prototype.isCenteredEvent=function(x,L){return mxEvent.isControlDown(L.getEvent())||mxEvent.isMetaDown(L.getEvent())};var ba=mxVertexHandler.prototype.isRotationHandleVisible; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
d.shortcut):E.apply(this,arguments)};EditorUi.prototype.toggleFormatPanel=function(W){null!=this.formatWindow?this.formatWindow.window.setVisible(null!=W?W:!this.formatWindow.window.isVisible()):b(this)};EditorUi.prototype.isFormatPanelVisible=function(){return null!=this.formatWindow&&this.formatWindow.window.isVisible()||null==this.formatWindow&&0<this.formatWidth};DiagramFormatPanel.prototype.isMathOptionVisible=function(){return!0};var M=EditorUi.prototype.destroy;EditorUi.prototype.destroy=function(){this.destroyWindows(); | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
Editor.extractGraphModelFromPng=function(b){var e=null;try{var g=b.substring(b.indexOf(",")+1),p=window.atob&&!mxClient.IS_SF?atob(g):Base64.decode(g,!0);EditorUi.parsePng(p,mxUtils.bind(this,function(y,q,E){y=p.substring(y+8,y+8+E);"zTXt"==q?(E=y.indexOf(String.fromCharCode(0)),"mxGraphModel"==y.substring(0,E)&&(y=pako.inflateRaw(Graph.stringToArrayBuffer(y.substring(E+2)),{to:"string"}).replace(/\+/g," "),null!=y&&0<y.length&&(e=y))):"tEXt"==q&&(y=y.split(String.fromCharCode(0)),1<y.length&&("mxGraphModel"==
y[0]||"mxfile"==y[0])&&(e=y[1]));if(null!=e||"IDAT"==q)return!0}))}catch(y){}null!=e&&"%"==e.charAt(0)&&(e=decodeURIComponent(e));null!=e&&"%"==e.charAt(0)&&(e=decodeURIComponent(e));return e}; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
"base",ma.prototype.base)));return new mxPoint(u.x+Math.min(u.width,t*u.width+C),u.y+u.height-n)},function(u,n){var t=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"position",ma.prototype.position)));this.state.style.base=Math.round(Math.max(0,Math.min(u.width,n.x-u.x-t*u.width)))},!1)];mxUtils.getValue(c.style,mxConstants.STYLE_ROUNDED,!1)&&m.push(pb(c));return m},internalStorage:function(c){var m=[hb(c,["dx","dy"],function(u){var n=Math.max(0,Math.min(u.width,mxUtils.getValue(this.state.style,
"dx",Aa.prototype.dx))),t=Math.max(0,Math.min(u.height,mxUtils.getValue(this.state.style,"dy",Aa.prototype.dy)));return new mxPoint(u.x+n,u.y+t)},function(u,n){this.state.style.dx=Math.round(Math.max(0,Math.min(u.width,n.x-u.x)));this.state.style.dy=Math.round(Math.max(0,Math.min(u.height,n.y-u.y)))},!1)];mxUtils.getValue(c.style,mxConstants.STYLE_ROUNDED,!1)&&m.push(pb(c));return m},module:function(c){return[hb(c,["jettyWidth","jettyHeight"],function(m){var u=Math.max(0,Math.min(m.width,mxUtils.getValue(this.state.style, | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
Sa,I,Ia),C.paintLeft(c,m,u,n,t,D,Sa,I,Ga),C.lineNWInner(c,m,u,n,t,D,Sa,I,na,Ga,Ha),C.paintLeftInner(c,m,u,n,t,D,Ya,I,na,Ia,Ha),c.close(),c.fillAndStroke());c.begin();C.paintFolds(c,m,u,n,t,D,Sa,Wa,Xa,Ya,I,Ga,Ja,Ia,Ha);c.stroke()};Na.prototype.moveNW=function(c,m,u,n,t,C,D,ha,I){"square"==D||"default"==D&&"square"==C||!I?c.moveTo(0,0):c.moveTo(0,ha)};Na.prototype.moveNE=function(c,m,u,n,t,C,D,ha,I){"square"==D||"default"==D&&"square"==C||!I?c.moveTo(n,0):c.moveTo(n-ha,0)};Na.prototype.moveSE=function(c,
m,u,n,t,C,D,ha,I){"square"==D||"default"==D&&"square"==C||!I?c.moveTo(n,t):c.moveTo(n,t-ha)};Na.prototype.moveSW=function(c,m,u,n,t,C,D,ha,I){"square"==D||"default"==D&&"square"==C||!I?c.moveTo(0,t):c.moveTo(ha,t)};Na.prototype.paintNW=function(c,m,u,n,t,C,D,ha,I){if(I)if("rounded"==D||"default"==D&&"rounded"==C||"invRound"==D||"default"==D&&"invRound"==C){m=0;if("rounded"==D||"default"==D&&"rounded"==C)m=1;c.arcTo(ha,ha,0,0,m,ha,0)}else("snip"==D||"default"==D&&"snip"==C||"fold"==D||"default"==D&& | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
for(var B=0;B<l.length;B++)if(0>mxUtils.indexOf(this.hiddenTags,l[B]))return!1;return!0};Graph.prototype.getCellsForTags=function(l,B,N,Z){var U=[];if(null!=l){B=null!=B?B:this.model.getDescendants(this.model.getRoot());for(var aa=0,Y={},ka=0;ka<l.length;ka++)0<l[ka].length&&(Y[l[ka]]=!0,aa++);for(ka=0;ka<B.length;ka++)if(N&&this.model.getParent(B[ka])==this.model.root||this.model.isVertex(B[ka])||this.model.isEdge(B[ka])){var qa=this.getTagsForCell(B[ka]),ra=!1;if(0<qa.length&&(qa=qa.split(" "),
qa.length>=l.length)){for(var pa=ra=0;pa<qa.length&&ra<aa;pa++)null!=Y[qa[pa]]&&ra++;ra=ra==aa}ra&&(1!=Z||this.isCellVisible(B[ka]))&&U.push(B[ka])}}return U};Graph.prototype.getAllTags=function(){return this.getTagsForCells(this.model.getDescendants(this.model.getRoot()))};Graph.prototype.getCommonTagsForCells=function(l){for(var B=null,N=[],Z=0;Z<l.length;Z++){var U=this.getTagsForCell(l[Z]);N=[];if(0<U.length){U=U.split(" ");for(var aa={},Y=0;Y<U.length;Y++)if(null==B||null!=B[U[Y]])aa[U[Y]]=!0, | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
urlParams.page=M.currentPage;F=null;this.graph.getModel().beginUpdate();try{urlParams.nav=0!=this.graphConfig.nav?"1":"0",this.editor.setGraphXml(this.xmlNode),this.graph.view.scale=this.graphConfig.zoom||1,F=this.setLayersVisible(),this.responsive||(this.graph.border=null!=this.graphConfig.border?this.graphConfig.border:8)}finally{this.graph.getModel().endUpdate()}this.responsive||(this.graph.panningHandler.isForcePanningEvent=function(k){return!mxEvent.isPopupTrigger(k.getEvent())&&"auto"==this.graph.container.style.overflow}, | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
"/pid2/mxPidInstruments.js"];mxStencilRegistry.libraries.pid2misc=[SHAPES_PATH+"/pid2/mxPidMisc.js",STENCIL_PATH+"/pid/misc.xml"];mxStencilRegistry.libraries.pid2valves=[SHAPES_PATH+"/pid2/mxPidValves.js"];mxStencilRegistry.libraries.pidFlowSensors=[STENCIL_PATH+"/pid/flow_sensors.xml"];mxMarker.getPackageForType=function(l){var B=null;null!=l&&0<l.length&&("ER"==l.substring(0,2)?B="mxgraph.er":"sysML"==l.substring(0,5)&&(B="mxgraph.sysml"));return B};var ba=mxMarker.createMarker;mxMarker.createMarker= | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
getTarget:function(){return v.value},focus:function(){v.focus()}}};EditorUi.prototype.createUrlParameters=function(d,f,k,v,z,A,H){H=null!=H?H:[];v&&("https://viewer.diagrams.net"==EditorUi.lightboxHost&&"1"!=urlParams.dev||H.push("lightbox=1"),"auto"!=d&&H.push("target="+d),null!=f&&f!=mxConstants.NONE&&H.push("highlight="+("#"==f.charAt(0)?f.substring(1):f)),null!=z&&0<z.length&&H.push("edit="+encodeURIComponent(z)),A&&H.push("layers=1"),this.editor.graph.foldingEnabled&&H.push("nav=1"));k&&null!= | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
mxUtils.bind(this,function(){k.checked&&(null==f||f.checked)?A.removeAttribute("disabled"):A.setAttribute("disabled","disabled")}));mxUtils.br(d);return{getLink:function(){return k.checked?"blank"===A.value?"_blank":z:null},getEditInput:function(){return k},getEditSelect:function(){return A}}};EditorUi.prototype.addLinkSection=function(d,f){function k(){var J=document.createElement("div");J.style.width="100%";J.style.height="100%";J.style.boxSizing="border-box";null!=A&&A!=mxConstants.NONE?(J.style.border= | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
mxEvent.consume(ba)))}}catch(P){d.handleError(P)}mxEvent.isConsumed(ba)||G.apply(this,arguments)};var ja=f.connectVertex;f.connectVertex=function(ba,S,da,P,V,l,B){var N=f.getIncomingTreeEdges(ba);if(p(ba)){var Z=M(ba),U=Z==mxConstants.DIRECTION_EAST||Z==mxConstants.DIRECTION_WEST,aa=S==mxConstants.DIRECTION_EAST||S==mxConstants.DIRECTION_WEST;return Z==S||0==N.length?K(ba,S):U==aa?F(ba):T(ba,S!=mxConstants.DIRECTION_NORTH&&S!=mxConstants.DIRECTION_WEST)}return ja.apply(this,arguments)};f.getSubtree= | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
var H=y.cellEditor.isStopEditingEvent;y.cellEditor.isStopEditingEvent=function(P){return H.apply(this,arguments)||13==P.keyCode&&(!mxClient.IS_SF&&mxEvent.isControlDown(P)||mxClient.IS_MAC&&mxEvent.isMetaDown(P)||mxClient.IS_SF&&mxEvent.isShiftDown(P))};var J=y.isZoomWheelEvent;y.isZoomWheelEvent=function(){return p.isSpaceDown()||J.apply(this,arguments)};var O=!1,G=null,ja=null,fa=null,ca=mxUtils.bind(this,function(){if(null!=this.toolbar&&O!=y.cellEditor.isContentEditing()){for(var P=this.toolbar.container.firstChild, | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
t-D/2;c.begin();c.moveTo(m,u);c.lineTo(m,u+t);c.moveTo(m+C,ha);c.lineTo(m+C+D,ha-D/2);c.moveTo(m+C,ha);c.lineTo(m+C+D,ha+D/2);c.moveTo(m+C,ha);c.lineTo(m+n-C,ha);c.moveTo(m+n,u);c.lineTo(m+n,u+t);c.moveTo(m+n-C,ha);c.lineTo(m+n-D-C,ha-D/2);c.moveTo(m+n-C,ha);c.lineTo(m+n-D-C,ha+D/2);c.end();c.stroke()};mxCellRenderer.registerShape("dimension",xa);mxUtils.extend(sa,mxEllipse);sa.prototype.drawHidden=!0;sa.prototype.paintVertexShape=function(c,m,u,n,t){this.outline||c.setStrokeColor(null);if(null!=
this.style){var C=c.pointerEvents,D=null!=this.fill&&this.fill!=mxConstants.NONE;"1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1")||D||(c.pointerEvents=!1);var ha="1"==mxUtils.getValue(this.style,"top","1"),I="1"==mxUtils.getValue(this.style,"left","1"),ua="1"==mxUtils.getValue(this.style,"right","1"),na="1"==mxUtils.getValue(this.style,"bottom","1");this.drawHidden||D||this.outline||ha||ua||na||I?(c.rect(m,u,n,t),c.fill(),c.pointerEvents=C,c.setStrokeColor(this.stroke),c.setLineCap("square"),
c.begin(),c.moveTo(m,u),this.outline||ha?c.lineTo(m+n,u):c.moveTo(m+n,u),this.outline||ua?c.lineTo(m+n,u+t):c.moveTo(m+n,u+t),this.outline||na?c.lineTo(m,u+t):c.moveTo(m,u+t),(this.outline||I)&&c.lineTo(m,u),c.end(),c.stroke(),c.setLineCap("flat")):c.setStrokeColor(this.stroke)}};mxCellRenderer.registerShape("partialRectangle",sa);mxUtils.extend(va,mxEllipse);va.prototype.paintVertexShape=function(c,m,u,n,t){mxEllipse.prototype.paintVertexShape.apply(this,arguments);c.setShadow(!1);c.begin();"vertical"== | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
steps:ia.view.gridSteps,color:ia.view.gridColor});Graph.translateDiagram&&(z.diagramLanguage=Graph.diagramLanguage);return{format:f,from:ba,to:S,allPages:da,bg:null!=A?A:mxConstants.NONE,base64:v,embedXml:G,xml:k,filename:null!=d?d:"",extras:JSON.stringify(z),scale:H,border:J,w:fa&&isFinite(fa)?fa:null,h:ca&&isFinite(ca)?ca:null}};EditorUi.prototype.setMode=function(d,f){this.mode=d};EditorUi.prototype.getDiagramId=function(){var d=window.location.hash;null!=d&&0<d.length&&(d=d.substring(1));if(null!= | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
(mxUtils.contains(X.text.boundingBox,Q.x,Q.y)||mxUtils.isAncestorNode(X.text.node,mxEvent.getSource(x)))||(null!=X||this.isCellLocked(this.getDefaultParent()))&&(null==X||this.isCellLocked(X.cell))||!(null!=X||mxClient.IS_SVG&&ea==this.view.getCanvas().ownerSVGElement)||(null==X&&(X=this.view.getState(this.getCellAt(Q.x,Q.y))),L=this.addText(Q.x,Q.y,X))}return L};Graph.prototype.getInsertPoint=function(){var x=this.getGridSize(),L=this.container.scrollLeft/this.view.scale-this.view.translate.x,Q=
this.container.scrollTop/this.view.scale-this.view.translate.y;if(this.pageVisible){var X=this.getPageLayout(),ea=this.getPageSize();L=Math.max(L,X.x*ea.width);Q=Math.max(Q,X.y*ea.height)}return new mxPoint(this.snap(L+x),this.snap(Q+x))};Graph.prototype.getFreeInsertPoint=function(){var x=this.view,L=this.getGraphBounds(),Q=this.getInsertPoint(),X=this.snap(Math.round(Math.max(Q.x,L.x/x.scale-x.translate.x+(0==L.width?2*this.gridSize:0))));x=this.snap(Math.round(Math.max(Q.y,(L.y+L.height)/x.scale- | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
E.style.backgroundPosition=d,E.style.backgroundImage=W,!R||null!=F.background&&F.background!=mxConstants.NONE?E.style.backgroundColor=K:(E.style.backgroundColor=F.diagramBackgroundColor,F.container.style.backgroundColor=""))};mxGraphView.prototype.createSvgGrid=function(E,M){for(M=this.graph.gridSize*this.scale*(null!=M?M:1);M<this.minGridSize;)M*=2;for(var T=this.gridSteps*M,F=[],K=1;K<this.gridSteps;K++){var R=K*M;F.push("M 0 "+R+" L "+T+" "+R+" M "+R+" 0 L "+R+" "+T)}return'<svg width="'+T+'" height="'+
T+'" xmlns="'+mxConstants.NS_SVG+'"><defs><pattern id="grid" width="'+T+'" height="'+T+'" patternUnits="userSpaceOnUse"><path d="'+F.join(" ")+'" fill="none" stroke="'+E+'" opacity="0.2" stroke-width="1"/><path d="M '+T+" 0 L 0 0 0 "+T+'" fill="none" stroke="'+E+'" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(#grid)"/></svg>'};var b=mxGraph.prototype.panGraph;mxGraph.prototype.panGraph=function(E,M){b.apply(this,arguments);if(null!=this.shiftPreview1){var T=this.view.canvas; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
R.x+=e,g||(R.width-=e,null!=R.alternateBounds&&(R.alternateBounds.width-=e)),p.setGeometry(K,R)))}if(M||g){var W=this.getCellGeometry(q);null!=W&&(W=W.clone(),W.width+=e,p.setGeometry(q,W))}null!=this.layoutManager&&this.layoutManager.executeLayout(q)}finally{p.endUpdate()}};function TableLayout(b){mxGraphLayout.call(this,b)}TableLayout.prototype=new mxStackLayout;TableLayout.prototype.constructor=TableLayout;TableLayout.prototype.isHorizontal=function(){return!1}; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
"auto"==ya&&1==xa.length){O.view.validate();var db=new mxHierarchicalLayout(O,"horizontalflow"==ya?mxConstants.DIRECTION_WEST:mxConstants.DIRECTION_NORTH);db.intraCellSpacing=Y;db.parallelEdgeSpacing=aa;db.interRankCellSpacing=ka;db.disableEdgeStyle=!1;this.executeLayout(function(){db.execute(O.getDefaultParent(),sa);O.moveCells(sa,wa,Ca)},!0,ra);ra=null}else if("orgchart"==ya){O.view.validate();var lb=new mxOrgChartLayout(O,2,ka,Y),kb=lb.isVertexIgnored;lb.isVertexIgnored=function(jb){return kb.apply(this,
arguments)||0>mxUtils.indexOf(A,jb)};this.executeLayout(function(){lb.execute(O.getDefaultParent());ab()},!0,ra);ra=null}else if("organic"==ya||"auto"==ya&&sa.length>A.length){O.view.validate();var Pa=new mxFastOrganicLayout(O);Pa.forceConstant=3*Y;Pa.disableEdgeStyle=!1;Pa.resetEdges=!1;var eb=Pa.isVertexIgnored;Pa.isVertexIgnored=function(jb){return eb.apply(this,arguments)||0>mxUtils.indexOf(A,jb)};this.executeLayout(function(){Pa.execute(O.getDefaultParent());ab()},!0,ra);ra=null}}this.hideDialog()}finally{O.model.endUpdate()}null!= | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
mxUtils.write(ia,mxResources.get("timeAgo",[ma],"{1} ago"));ia.setAttribute("title",ca.toLocaleDateString()+" "+ca.toLocaleTimeString())}function F(ca){var ia=document.createElement("img");ia.className="geCommentBusyImg";ia.src=IMAGE_PATH+"/spin.gif";ca.appendChild(ia);ca.busyImg=ia}function K(ca){ca.style.border="1px solid red";ca.removeChild(ca.busyImg)}function R(ca){ca.style.border="";ca.removeChild(ca.busyImg)}function W(ca,ia,ma,ba,S){function da(aa,Y,ka){var qa=document.createElement("li"); | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
this.path.push(this.canvas.format(this.lastY))};l.prototype.lineTo=function(aa,Y){this.passThrough?this.originalLineTo.apply(this.canvas,arguments):(this.addOp(this.lineOp,aa,Y),this.lastX=aa,this.lastY=Y)};l.prototype.moveTo=function(aa,Y){this.passThrough?this.originalMoveTo.apply(this.canvas,arguments):(this.addOp(this.moveOp,aa,Y),this.lastX=aa,this.lastY=Y,this.firstX=aa,this.firstY=Y)};l.prototype.close=function(){this.passThrough?this.originalClose.apply(this.canvas,arguments):this.addOp(this.closeOp)}; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
Uint8Array.from||(Uint8Array.from=function(){var b=Object.prototype.toString,e=function(p){return"function"===typeof p||"[object Function]"===b.call(p)},g=Math.pow(2,53)-1;return function(p){var y=Object(p);if(null==p)throw new TypeError("Array.from requires an array-like object - not null or undefined");var q=1<arguments.length?arguments[1]:void 0,E;if("undefined"!==typeof q){if(!e(q))throw new TypeError("Array.from: when provided, the second argument must be a function");2<arguments.length&&(E= | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
mxUtils.htmlEntities(mxResources.get("error")+(ma&&ma.message?": "+ma.message:""));this.hasError=!0})):A.innerHTML=mxUtils.htmlEntities(mxResources.get("error"))});fa();this.refreshComments=fa;J=mxUtils.bind(this,function(){function ca(da){var P=ma[da.id];if(null!=P)for(T(da,P),P=0;null!=da.replies&&P<da.replies.length;P++)ca(da.replies[P])}if(this.window.isVisible()){for(var ia=A.querySelectorAll(".geCommentDate"),ma={},ba=0;ba<ia.length;ba++){var S=ia[ba];ma[S.getAttribute("data-commentId")]=S}for(ba= | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
R.x+=e,g||(R.width-=e,null!=R.alternateBounds&&(R.alternateBounds.width-=e)),p.setGeometry(K,R)))}if(M||g){var W=this.getCellGeometry(q);null!=W&&(W=W.clone(),W.width+=e,p.setGeometry(q,W))}null!=this.layoutManager&&this.layoutManager.executeLayout(q)}finally{p.endUpdate()}};function TableLayout(b){mxGraphLayout.call(this,b)}TableLayout.prototype=new mxStackLayout;TableLayout.prototype.constructor=TableLayout;TableLayout.prototype.isHorizontal=function(){return!1}; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
.4;A.prototype.redrawPath=function(c,m,u,n,t){m=t*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));c.moveTo(0,m/2);c.quadTo(n/4,1.4*m,n/2,m/2);c.quadTo(3*n/4,m*(1-1.4),n,m/2);c.lineTo(n,t-m/2);c.quadTo(3*n/4,t-1.4*m,n/2,t-m/2);c.quadTo(n/4,t-m*(1-1.4),0,t-m/2);c.lineTo(0,m/2);c.close();c.end()};A.prototype.getLabelBounds=function(c){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var m=mxUtils.getValue(this.style,"size",this.size),u=c.width,n=c.height;if(null==this.direction|| | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
function Action(b,e,g,p,y){mxEventSource.call(this);this.label=b;this.funct=this.createFunction(e);this.enabled=null!=g?g:!0;this.iconCls=p;this.shortcut=y;this.visible=!0}mxUtils.extend(Action,mxEventSource);Action.prototype.createFunction=function(b){return b};Action.prototype.setEnabled=function(b){this.enabled!=b&&(this.enabled=b,this.fireEvent(new mxEventObject("stateChanged")))};Action.prototype.isEnabled=function(){return this.enabled}; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
DrawioFile.prototype.commentsRefreshNeeded=function(){return!0};DrawioFile.prototype.commentsSaveNeeded=function(){return!1};DrawioFile.prototype.getComments=function(b,e){b([])};DrawioFile.prototype.addComment=function(b,e,g){e(Date.now())};DrawioFile.prototype.canReplyToReplies=function(){return!0};DrawioFile.prototype.canComment=function(){return!0};DrawioFile.prototype.newComment=function(b,e){return new DrawioComment(this,null,b,Date.now(),Date.now(),!1,e)};LocalFile=function(b,e,g,p,y,q){DrawioFile.call(this,b,e);this.title=g;this.mode=p?null:App.MODE_DEVICE;this.fileHandle=y;this.desc=q};mxUtils.extend(LocalFile,DrawioFile);LocalFile.prototype.isAutosave=function(){return null!=this.fileHandle&&!this.invalidFileHandle&&DrawioFile.prototype.isAutosave.apply(this,arguments)};LocalFile.prototype.isAutosaveOptional=function(){return null!=this.fileHandle};LocalFile.prototype.getMode=function(){return this.mode};LocalFile.prototype.getTitle=function(){return this.title}; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
k():v(100);mxEvent.consume(B)}));mxEvent.addListener(this.chromelessToolbar,"mouseleave",mxUtils.bind(this,function(B){mxEvent.isTouchEvent(B)||v(30)}));var O=b.getTolerance();b.addMouseListener({startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(B,N){this.startX=N.getGraphX();this.startY=N.getGraphY();this.scrollLeft=b.container.scrollLeft;this.scrollTop=b.container.scrollTop},mouseMove:function(B,N){},mouseUp:function(B,N){mxEvent.isTouchEvent(N.getEvent())&&Math.abs(this.scrollLeft- | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
Graph.prototype.dblClick=function(x,L){this.isEnabled()&&(L=this.insertTextForEvent(x,L),mxGraph.prototype.dblClick.call(this,x,L))};Graph.prototype.insertTextForEvent=function(x,L){var Q=mxUtils.convertPoint(this.container,mxEvent.getClientX(x),mxEvent.getClientY(x));if(null!=x&&!this.model.isVertex(L)){var X=this.model.isEdge(L)?this.view.getState(L):null,ea=mxEvent.getSource(x);this.firstClickState!=X||this.firstClickSource!=ea||null!=X&&null!=X.text&&null!=X.text.node&&null!=X.text.boundingBox&& | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
D||"default"==D&&"square"==C?c.moveTo(I,I):"rounded"==D||"default"==D&&"rounded"==C||"snip"==D||"default"==D&&"snip"==C?c.moveTo(I,ha+.5*I):("invRound"==D||"default"==D&&"invRound"==C||"fold"==D||"default"==D&&"fold"==C)&&c.moveTo(I,ha+I):c.moveTo(0,0)};Na.prototype.lineNWInner=function(c,m,u,n,t,C,D,ha,I,ua,na){ua||na?!ua&&na?c.lineTo(I,0):ua&&!na?c.lineTo(0,I):"square"==D||"default"==D&&"square"==C?c.lineTo(I,I):"rounded"==D||"default"==D&&"rounded"==C||"snip"==D||"default"==D&&"snip"==C?c.lineTo(I,
ha+.5*I):("invRound"==D||"default"==D&&"invRound"==C||"fold"==D||"default"==D&&"fold"==C)&&c.lineTo(I,ha+I):c.lineTo(0,0)};Na.prototype.paintFolds=function(c,m,u,n,t,C,D,ha,I,ua,na,Za,qb,fb,Ga){if("fold"==C||"fold"==D||"fold"==ha||"fold"==I||"fold"==ua)("fold"==D||"default"==D&&"fold"==C)&&Za&&Ga&&(c.moveTo(0,na),c.lineTo(na,na),c.lineTo(na,0)),("fold"==ha||"default"==ha&&"fold"==C)&&Za&&qb&&(c.moveTo(n-na,0),c.lineTo(n-na,na),c.lineTo(n,na)),("fold"==I||"default"==I&&"fold"==C)&&fb&&qb&&(c.moveTo(n- | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
0;F.prototype.paintVertexShape=function(c,m,u,n,t){var C=Math.max(0,Math.min(n,Math.min(t,parseFloat(mxUtils.getValue(this.style,"size",this.size))))),D=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,"darkOpacity",this.darkOpacity))));c.translate(m,u);c.begin();c.moveTo(0,0);c.lineTo(n-C,0);c.lineTo(n,C);c.lineTo(n,t);c.lineTo(0,t);c.lineTo(0,0);c.close();c.end();c.fillAndStroke();this.outline||(c.setShadow(!1),0!=D&&(c.setFillAlpha(Math.abs(D)),c.setFillColor(0>D?"#FFFFFF":"#000000"),
c.begin(),c.moveTo(n-C,0),c.lineTo(n-C,C),c.lineTo(n,C),c.close(),c.fill()),c.begin(),c.moveTo(n-C,0),c.lineTo(n-C,C),c.lineTo(n,C),c.end(),c.stroke())};mxCellRenderer.registerShape("note",F);mxUtils.extend(K,F);mxCellRenderer.registerShape("note2",K);K.prototype.getLabelMargins=function(c){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var m=mxUtils.getValue(this.style,"size",15);return new mxRectangle(0,Math.min(c.height*this.scale,m*this.scale),0,0)}return null};mxUtils.extend(R,mxShape);R.prototype.isoAngle= | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
function Z(){mxShape.call(this)}function U(){mxShape.call(this)}function aa(){mxRectangleShape.call(this)}function Y(){mxShape.call(this)}function ka(){mxShape.call(this)}function qa(){mxShape.call(this)}function ra(){mxShape.call(this)}function pa(){mxShape.call(this)}function wa(){mxCylinder.call(this)}function Ca(){mxCylinder.call(this)}function Ba(){mxRectangleShape.call(this)}function ya(){mxDoubleEllipse.call(this)}function Oa(){mxDoubleEllipse.call(this)}function Qa(){mxArrowConnector.call(this); | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
Editor.prototype.updateGraphComponents;Editor.prototype.updateGraphComponents=function(){p.apply(this,arguments);this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform()};Editor.initMath=function(l,B){if("undefined"===typeof window.MathJax&&!mxClient.IS_IE&&!mxClient.IS_IE11){var N=function(){Z=null;if(0<Editor.mathJaxQueue.length)Editor.doMathJaxRender(Editor.mathJaxQueue.shift());else Editor.onMathJaxDone()};l=null!= | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
x.translate.y+2*this.gridSize)));return new mxPoint(X,x)};Graph.prototype.getCenterInsertPoint=function(x){x=null!=x?x:new mxRectangle;return mxUtils.hasScrollbars(this.container)?new mxPoint(this.snap(Math.round((this.container.scrollLeft+this.container.clientWidth/2)/this.view.scale-this.view.translate.x-x.width/2)),this.snap(Math.round((this.container.scrollTop+this.container.clientHeight/2)/this.view.scale-this.view.translate.y-x.height/2))):new mxPoint(this.snap(Math.round(this.container.clientWidth/
2/this.view.scale-this.view.translate.x-x.width/2)),this.snap(Math.round(this.container.clientHeight/2/this.view.scale-this.view.translate.y-x.height/2)))};Graph.prototype.isMouseInsertPoint=function(){return!1};Graph.prototype.addText=function(x,L,Q){var X=new mxCell;X.value="Text";X.geometry=new mxGeometry(0,0,0,0);X.vertex=!0;if(null!=Q&&this.model.isEdge(Q.cell)){X.style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];";X.geometry.relative=!0;X.connectable=!1;var ea= | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.