Language: JavaScript
Label: safe
CWE: CWE-79 \u2014 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.

Code:
b.getPageLayout(b.getBoundingBoxFromGeometry(b.model.getCells(),!0),ja,1),N=b.getDefaultTranslate(B);this.x0=B.x;this.y0=B.y;b.setScrollbarPositions(g.currentPage.viewState,N.x,N.y);if(N.x!=this.translate.x||N.y!=this.translate.y){this.setTranslate(N.x,N.y);return}}B=b.getPagePadding();N=b.getPageSize();this.translate.x=B.x-(this.x0||0)*N.width;this.translate.y=B.y-(this.y0||0)*N.height}G.apply(this,arguments)};if(!b.isViewer()){var ca=b.sizeDidChange;b.sizeDidChange=function(){if(null!=this.container&&
mxUtils.hasScrollbars(this.container)){this.updateMinimumSize();if(!this.autoTranslate){var B=this.getPageLayout(),N=this.getDefaultTranslate(B),Z=this.view.translate.x,U=this.view.translate.y;if(N.x!=Z||N.y!=U){this.view.x0=B.x;this.view.y0=B.y;this.autoTranslate=!0;this.view.setTranslate(N.x,N.y);this.container.scrollLeft+=Math.round((N.x-Z)*this.view.scale);this.container.scrollTop+=Math.round((N.y-U)*this.view.scale);this.autoTranslate=!1;return}}ca.apply(this,arguments)}else this.fireEvent(new mxEventObject(mxEvent.SIZE,
"bounds",this.getGraphBounds()))}}}var ia=b.view.getBackgroundPane(),ma=b.view.getDrawPane();b.cumulativeZoomFactor=1;var ba=null,S=null,da=null,P=null,V=null,l=function(B){null!=ba&&window.clearTimeout(ba);0<=B&&window.setTimeout(function(){if(!b.isMouseDown||P)ba=window.setTimeout(mxUtils.bind(this,function(){b.isFastZoomEnabled()&&(null!=b.view.backgroundPageShape&&null!=b.view.backgroundPageShape.node&&(mxUtils.setPrefixedStyle(b.view.backgroundPageShape.node.style,"transform-origin",null),mxUtils.setPrefixedStyle(b.view.backgroundPageShape.node.style,