Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@syncfusion/ej2-drawings

Package Overview
Dependencies
Maintainers
3
Versions
136
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@syncfusion/ej2-drawings - npm Package Compare versions

Comparing version 18.3.35 to 18.3.47

8

CHANGELOG.md
# Changelog
## [Unreleased]
### Drawings
#### Bug Fixes
- `#261558` – Leader length is now working properly in the firefox browser.
## [Unreleased]

4

dist/ej2-drawings.umd.min.js
/*!
* filename: ej2-drawings.umd.min.js
* version : 18.3.35
* version : 18.3.47
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.

@@ -10,3 +10,3 @@ * Use of this code is subject to the terms of our license.

*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@syncfusion/ej2-base")):"function"==typeof define&&define.amd?define(["exports","@syncfusion/ej2-base"],e):e(t.ej={},t.ej2Base)}(this,function(t,e){"use strict";function i(){return new it(1,0,0,1,0,0,t.MatrixTypes.Identity)}function r(e,i){var r=function(e,i,r){switch(e.type){case t.MatrixTypes.Identity:break;case t.MatrixTypes.Translation:i+=e.offsetX,r+=e.offsetY;break;case t.MatrixTypes.Scaling:i*=e.m11,r*=e.m22;break;case t.MatrixTypes.Translation|t.MatrixTypes.Scaling:i*=e.m11,i+=e.offsetX,r*=e.m22,r+=e.offsetY;break;default:var o=r*e.m21+e.offsetX,n=i*e.m12+e.offsetY;i*=e.m11,i+=o,r*=e.m22,r+=n}return{x:i,y:r}}(e,i.x,i.y);return{x:Math.round(100*r.x)/100,y:Math.round(100*r.y)/100}}function o(e,r,o,s){n(e,function(e,r,o){var n=i(),s=Math.sin(e),h=Math.cos(e),d=r*(1-h)+o*s,c=o*(1-h)-r*s;return n.type=t.MatrixTypes.Unknown,a(n,h,s,-s,h,d,c),n}(.017453292519943295*(r%=360),o||0,s||0))}function n(e,r){var o=e.type,n=r.type;if(n!==t.MatrixTypes.Identity){if(o===t.MatrixTypes.Identity)return s(e,r),void(e.type=r.type);if(n===t.MatrixTypes.Translation)return e.offsetX+=r.offsetX,e.offsetY+=r.offsetY,void(o!==t.MatrixTypes.Unknown&&(e.type|=t.MatrixTypes.Translation));if(o!==t.MatrixTypes.Translation){var h=o<<4|n;switch(h){case 34:return e.m11*=r.m11,void(e.m22*=r.m22);case 35:return e.m11*=r.m11,e.m22*=r.m22,e.offsetX=r.offsetX,e.offsetY=r.offsetY,void(e.type=t.MatrixTypes.Translation|t.MatrixTypes.Scaling);case 36:break;default:switch(h){case 50:return e.m11*=r.m11,e.m22*=r.m22,e.offsetX*=r.m11,void(e.offsetY*=r.m22);case 51:return e.m11*=r.m11,e.m22*=r.m22,e.offsetX=r.m11*e.offsetX+r.offsetX,void(e.offsetY=r.m22*e.offsetY+r.offsetY);case 52:break;default:switch(h){case 66:case 67:case 68:break;default:return}}}var d=i();return a(d,e.m11*r.m11+e.m12*r.m21,e.m11*r.m12+e.m12*r.m22,e.m21*r.m11+e.m22*r.m21,e.m21*r.m12+e.m22*r.m22,e.offsetX*r.m11+e.offsetY*r.m21+r.offsetX,e.offsetX*r.m12+e.offsetY*r.m22+r.offsetY),d.m21||d.m12?d.type=t.MatrixTypes.Unknown:((d.m11&&1!==d.m11||d.m22&&1!==d.m22)&&(d.type=t.MatrixTypes.Scaling),(d.offsetX||d.offsetY)&&(d.type|=t.MatrixTypes.Translation),(d.type&(t.MatrixTypes.Translation|t.MatrixTypes.Scaling))===t.MatrixTypes.Identity&&(d.type=t.MatrixTypes.Identity),d.type=t.MatrixTypes.Scaling|t.MatrixTypes.Translation),s(e,d),void(e.type=d.type)}var c=e.offsetX,l=e.offsetY;e.offsetX=c*r.m11+l*r.m21+r.offsetX,e.offsetY=c*r.m12+l*r.m22+r.offsetY,n!==t.MatrixTypes.Unknown?e.type=t.MatrixTypes.Translation|t.MatrixTypes.Scaling:e.type=t.MatrixTypes.Unknown}}function a(t,e,i,r,o,n,a){t.m11=e,t.m12=i,t.m21=r,t.m22=o,t.offsetX=n,t.offsetY=a}function s(t,e){t.m11=e.m11,t.m12=e.m12,t.m21=e.m21,t.m22=e.m22,t.offsetX=e.offsetX,t.offsetY=e.offsetY,t.type=e.type}function h(t){var i,r=[];if("msie"===e.Browser.info.name||"edge"===e.Browser.info.name)for(var o=0;o<t.childNodes.length;o++)1===(i=t.childNodes[o]).nodeType&&r.push(i);else r=t.children;return r}function d(t){var e="pathTable";if(window[e]||(window[e]={}),t){var i="measureElement";window[i].style.visibility="visible";var r=h(window[i].children[2])[0];r.setAttribute("d",t);var o=void 0;window[e][t]?o=window[e][t]:window[e][t]=o=r.getBBox();var n=new et(o.x,o.y,o.width,o.height);return window[i].style.visibility="hidden",n}return new et(0,0,0,0)}function c(t,e){var i,r,o=[],n=0,a=e||t.content;if("nowrap"!==t.whiteSpace&&"pre"!==t.whiteSpace)if("breakall"===t.breakWord)for(i="",i+=a[0],n=0;n<a.length;n++)if((r=S(i,t))>=t.width&&i.length>0)o[o.length]={text:i,x:0,dy:0,width:r},i="";else{(i+=a[n+1]||"").indexOf("\n")>-1&&(i=i.replace("\n",""));var s=S(i,t);Math.ceil(s)+2>=t.width&&i.length>0&&(o[o.length]={text:i,x:0,dy:0,width:s},i=""),n===a.length-1&&i.length>0&&(o[o.length]={text:i,x:0,dy:0,width:s},i="")}else o=function(t,e){var i,r,o,n,a=[],s="",h=0,d=0,c="nowrap"!==t.whiteSpace,l=(e||t.content).split("\n");for(h=0;h<l.length;h++)for(i="NoWrap"!==t.textWrapping?l[h].split(" "):l,d=0;d<i.length;d++){s+=((0!==d||1===i.length)&&c&&s.length>0?" ":"")+i[d];var u=S(r=s+(i[d+1]||""),t);Math.floor(u)>t.width-2&&s.length>0?(a[a.length]={text:s,x:0,dy:0,width:r===s?u:s===n?o:S(s,t)},s=""):d===i.length-1&&(a[a.length]={text:s,x:0,dy:0,width:u},s=""),n=r,o=u}return a}(t,e);else o[o.length]={text:a,x:0,dy:0,width:S(a,t)};return o}function l(t,e,i,r,o){var n,a,s=new tt(0,0),h=function(t,e){var i={fill:t.style.fill,stroke:t.style.strokeColor,angle:t.rotateAngle+t.parentTransform,pivotX:t.pivot.x,pivotY:t.pivot.y,strokeWidth:t.style.strokeWidth,dashArray:t.style.strokeDashArray,opacity:t.style.opacity,visible:t.visible,id:t.id,width:e||t.actualSize.width,height:t.actualSize.height,x:t.offsetX-t.actualSize.width*t.pivot.x+.5,y:t.offsetY-t.actualSize.height*t.pivot.y+.5};return i.fontSize=t.style.fontSize,i.fontFamily=t.style.fontFamily,i.textOverflow=t.style.textOverflow,i.textDecoration=t.style.textDecoration,i.doWrap=t.doWrap,i.whiteSpace=A(t.style.whiteSpace,t.style.textWrapping),i.content=t.content,i.textWrapping=t.style.textWrapping,i.breakWord=b(t.style.textWrapping),i.textAlign=w(t.style.textAlign),i.color=t.style.color,i.italic=t.style.italic,i.bold=t.style.bold,i.dashArray="",i.strokeWidth=0,i.fill="",i}(t,r);return t.childNodes=n=c(h,o),t.wrapBounds=a=function(t,e){var i,r,o={x:0,width:0},n=0;for(n=0;n<e.length;n++)r=i=e[n].width,i="left"===t.textAlign?0:"center"===t.textAlign?i>t.width&&("Ellipsis"===t.textOverflow||"Clip"===t.textOverflow)?0:-i/2:"right"===t.textAlign?-i:e.length>1?0:-i/2,e[n].dy=1.2*t.fontSize,e[n].x=i,o?(o.x=Math.min(o.x,i),o.width=Math.max(o.width,r)):o={x:i,width:r};return o}(h,n),s.width=a.width,t.wrapBounds.width>=r&&"Wrap"!==h.textOverflow&&(s.width=r),s.height=n.length*t.style.fontSize*1.2,s}function u(t,e){var i;return e&&(i=document.getElementById(e)),i?i.querySelector("#"+t):document.getElementById(t)}function f(t,i){var r=e.createElement(t);return y(r,i),r}function y(t,e){for(var i=Object.keys(e),r=0;r<i.length;r++)t.setAttribute(i[r],e[i[r]])}function p(t,e){var i=null,r=u(t+e+"_diagramAdornerLayer");return r&&(i=r.getElementsByClassName("e-adorner-layer"+e)[0]),i}function g(t,e){var i="measureElement";window[i].style.visibility="visible";var r=window[i].children[1];r.setAttribute("src",t);var o=r.getBoundingClientRect(),n=o.width,a=o.height;return e=new tt(n,a),window[i].style.visibility="hidden",e}function x(t){new et;var e=t.offsetY-t.actualSize.height*t.pivot.y,i=t.offsetY+t.actualSize.height*(1-t.pivot.y),r=t.offsetX-t.actualSize.width*t.pivot.x,o=t.offsetX+t.actualSize.width*(1-t.pivot.x),n={x:r,y:e},a={x:o,y:e},s={x:r,y:i},h={x:o,y:i};return et.toBounds([n,a,s,h])}function m(t,e){var n=i();o(n,e,0,0);var a=r(n,{x:0,y:0}),s=r(n,{x:t.width,y:0}),h=r(n,{x:0,y:t.height}),d=r(n,{x:t.width,y:t.height}),c=Math.min(a.x,s.x,h.x,d.x),l=Math.min(a.y,s.y,h.y,d.y),u=Math.max(a.x,s.x,h.x,d.x),f=Math.max(a.y,s.y,h.y,d.y);return new tt(u-c,f-l)}function v(t){var e,n=new et,a=(e=x(t)).middleLeft,s=e.topCenter,h=e.bottomCenter,d=e.middleRight,c=e.topLeft,l=e.topRight,u=e.bottomLeft,f=e.bottomRight;if(t.corners={topLeft:c,topCenter:s,topRight:l,middleLeft:a,middleRight:d,bottomLeft:u,bottomCenter:h,bottomRight:f},0!==t.rotateAngle||0!==t.parentTransform){var y=i();o(y,t.rotateAngle+t.parentTransform,t.offsetX,t.offsetY),t.corners.topLeft=c=r(y,c),t.corners.topCenter=s=r(y,s),t.corners.topRight=l=r(y,l),t.corners.middleLeft=a=r(y,a),t.corners.middleRight=d=r(y,d),t.corners.bottomLeft=u=r(y,u),t.corners.bottomCenter=h=r(y,h),t.corners.bottomRight=f=r(y,f)}return n=et.toBounds([c,l,u,f]),t.corners.left=n.left,t.corners.right=n.right,t.corners.top=n.top,t.corners.bottom=n.bottom,t.corners.center=n.center,t.corners.width=n.width,t.corners.height=n.height,n}function w(t){var e="";switch(t){case"Center":e="center";break;case"Left":e="left";break;case"Right":e="right"}return e}function b(t){var e="";switch(t){case"Wrap":e="breakall";break;case"NoWrap":e="keepall";break;case"WrapWithOverflow":e="normal";break;case"LineThrough":e="line-through"}return e}function S(t,e){var i="measureElement";window[i].style.visibility="visible";var r=h(window[i].children[2])[1];r.textContent=t,r.setAttribute("style","font-size:"+e.fontSize+"px; font-family:"+e.fontFamily+";font-weight:"+(e.bold?"bold":"normal"));var o=r.getBBox().width;return window[i].style.visibility="hidden",o}function A(t,e){if("NoWrap"===e&&"PreserveAll"===t)return"pre";var i="";switch(t){case"CollapseAll":i="nowrap";break;case"CollapseSpace":i="pre-line";break;case"PreserveAll":i="pre-wrap"}return i}function M(t,e,n,a){if(0!==t){var s=i();return o(s,t,e,n),r(s,a)}return a}function k(t,e){return{x:t.x+e.desiredSize.width*e.pivot.x,y:t.y+e.desiredSize.height*e.pivot.y}}function z(t){var e,i=[],r=P(t);if(r.length>0)for(var o=0;o<r.length;o++){var n=r[o],a="";switch((a=n[0]).toLowerCase()){case"m":for(e=1;e<n.length;e++)i.push({command:a,x:n[e],y:n[e+1]}),e+=1,"m"===a?a="l":"M"===a&&(a="L");break;case"l":case"t":for(e=1;e<n.length;e++)i.push({command:a,x:n[e],y:n[e+1]}),e+=1;break;case"h":for(e=1;e<n.length;e++)i.push({command:a,x:n[e]});break;case"v":for(e=1;e<n.length;e++)i.push({command:a,y:n[e]});break;case"z":i.push({command:a});break;case"c":for(e=1;e<n.length;e++)i.push({command:a,x1:n[e],y1:n[e+1],x2:n[e+2],y2:n[e+3],x:n[e+4],y:n[e+5]}),e+=5;break;case"s":for(e=1;e<n.length;e++)i.push({command:a,x2:n[e],y2:n[e+1],x:n[e+2],y:n[e+3]}),e+=3;break;case"q":for(e=1;e<n.length;e++)i.push({command:a,x1:n[e],y1:n[e+1],x:n[e+2],y:n[e+3]}),e+=3;break;case"a":for(e=1;e<n.length;e++)i.push({command:a,r1:n[e],r2:n[e+1],angle:n[e+2],largeArc:n[e+3],sweep:n[e+4],x:n[e+5],y:n[e+6]}),e+=6}}return i}function P(t){var e=/([a-z]+)|([+-]?(?:\d+\.?\d*|\.\d+))/gi,i=[],r=[],o={};e.lastIndex=0;var n=!1;for(o=e.exec(t);o;)"e"===o[1]?n=!0:o[1]?("zm"===o[1].toLowerCase()?(i.length&&r.push(i),r.push(["Z"]),i=[o[1].substring(1,2)]):(i.length&&r.push(i),i=[o[1]]),n=!1):(i.length||(i=[]),n||i.push(Number(o[2])),n=!1),o=e.exec(t);return i.length&&r.push(i),r}function C(t,e,i){var r,o,n="",a=[{x:0+t,y:0},{x:0+i-t,y:0},{x:0+i,y:0+t},{x:0+i,y:0+e-t},{x:0+i-t,y:0+e},{x:0+t,y:0+e},{x:0,y:0+e-t},{x:0,y:0+t}],s=[{x:0+i,y:0},{x:0+i,y:0+e},{x:0,y:0+e},{x:0,y:0}],h=0;n="M"+a[0].x+" "+a[0].y;var d;for(d=0;d<a.length;d+=2)n+="L"+(r=a[d+1]).x+" "+r.y,o=a[d+2]||a[0],n+="Q"+s[h].x+" "+s[h].y+" "+o.x+" "+o.y,h++;return n}function T(t){var e,i,r,o,n,a,s,h,d,c,l=[];for(s=0,h=0,c=0,d=t.length;c<d;++c){var u=t[c],f="";f=u.command,"y1"in u&&(o=u.y1),"y2"in u&&(a=u.y2),"x1"in u&&(r=u.x1),"x2"in u&&(n=u.x2),"x"in u&&(s=u.x),"y"in u&&(h=u.y);var y=l[l.length-1];switch(f){case"M":l.push({command:"M",x:s,y:h});break;case"L":l.push({command:"L",x0:e,y0:i,x:s,y:h});break;case"H":l.push({command:"L",x0:e,y0:i,x:s,y:i});break;case"V":l.push({command:"L",x0:e,y0:i,x:e,y:h});break;case"C":l.push({command:"C",x0:e,y0:i,x1:r,y1:o,x2:n,y2:a,x:s,y:h});break;case"S":if(y){var p=void 0,g={x:2*e-(p="C"===y.command||"S"===y.command?{x:y.x2,y:y.y2}:{x:e,y:i}).x,y:2*i-p.y};l.push({command:"C",x0:e,y0:i,x1:g.x,y1:g.y,x2:n,y2:a,x:s,y:h})}break;case"Q":l.push({command:"Q",x0:e,y0:i,x1:r,y1:o,x:s,y:h});break;case"T":if(y){p=void 0,g={x:2*e-(p="Q"===y.command?{x:y.x1,y:y.y1}:{x:e,y:i}).x,y:2*i-p.y};l.push({command:"Q",x0:e,y0:i,x1:g.x,y1:g.y,x:s,y:h})}break;case"A":var x=u;x.command="A",l.push(x);break;case"Z":case"z":l.push({command:"Z"}),s=e,h=i}e=s,i=h}return l}function R(t,e,i,r,o,n,a,s){var h,d,c,l,u,f,y,p,g;for(u=0,f=0,p=0,y=t.length;p<y;++p){var x=t[p],m=x.command;"x"in x&&(u=x.x),"y"in x&&(f=x.y),"y1"in x&&(d=x.y1),"y2"in x&&(l=x.y2),"x1"in x&&(h=x.x1),"x2"in x&&(c=x.x2),r?(void 0!==u&&(u=O(u,e,o,a)),void 0!==f&&(f=O(f,i,n,s)),void 0!==h&&(h=O(h,e,o,a)),void 0!==d&&(d=O(d,i,n,s)),void 0!==c&&(c=O(c,e,o,a)),void 0!==l&&(l=O(l,i,n,s))):(void 0!==u&&(u=Number((u+e).toFixed(2))),void 0!==f&&(f=Number((f+i).toFixed(2))),void 0!==h&&(h=Number((h+e).toFixed(2))),void 0!==d&&(d=Number((d+i).toFixed(2))),void 0!==c&&(c=Number((c+e).toFixed(2))),void 0!==l&&(l=Number((l+i).toFixed(2))));(g=B(x,m,{x:u,y:f,x1:h,y1:d,x2:c,y2:l,r1:x.r1,r2:x.r2},r,e,i))&&(t[p]=g)}return E(t)}function B(t,e,i,r,o,n){switch(e){case"M":case"L":t.x=i.x,t.y=i.y;break;case"H":t.x=i.x;break;case"V":t.y=i.y;break;case"C":t.x=i.x,t.y=i.y,t.x1=i.x1,t.y1=i.y1,t.x2=i.x2,t.y2=i.y2;break;case"S":t.x=i.x,t.y=i.y,t.x2=i.x2,t.y2=i.y2;break;case"Q":t.x=i.x,t.y=i.y,t.x1=i.x1,t.y1=i.y1;break;case"T":t.x=i.x,t.y=i.y;break;case"A":var a=i.r1,s=i.r2;r&&(i.r1=a*=o,i.r2=s*=n),t.x=i.x,t.y=i.y,t.r1=i.r1,t.r2=i.r2;break;case"z":case"Z":t={command:"Z"}}return t}function O(t,e,i,r){return t!==i?t=r!==i?t*e-(Number(i)*e-Number(i))+(r-Number(i)):Number(t)*e-(Number(i)*e-Number(i)):r!==i&&(t=r),Number(t.toFixed(2))}function N(t){var e,i,r,o,n,a,s,h,d,c;for(s=0,h=0,c=0,d=t.length;c<d;++c){var l=t[c],u=l.command;if(/[MLHVCSQTA]/.test(u))"x"in l&&(l.x=s=l.x),"y"in l&&(l.y=h=l.y);else{"x1"in l&&(l.x1=r=s+l.x1),"x2"in l&&(l.x2=n=s+l.x2),"y1"in l&&(l.y1=o=h+l.y1),"y2"in l&&(l.y2=a=h+l.y2),"x"in l&&(l.x=s+=l.x),"y"in l&&(l.y=h+=l.y);var f=void 0;switch(u){case"m":case"M":f={command:"M",x:s,y:h};break;case"l":case"L":f={command:"L",x:s,y:h};break;case"h":case"H":f={command:"H",x:s};break;case"v":case"V":f={command:"V",y:h};break;case"c":case"C":f={command:"C",x:s,y:h,x1:r,y1:o,x2:n,y2:a};break;case"s":case"S":f={command:"S",x:s,y:h,x2:n,y2:a};break;case"q":case"Q":f={command:"Q",x:s,y:h,x1:r,y1:o};break;case"t":case"T":f={command:"T",x:s,y:h};break;case"a":case"A":(f={command:"A",x:s,y:h}).r1=l.r1,f.r2=l.r2,f.angle=l.angle,f.largeArc=l.largeArc,f.sweep=l.sweep;break;case"z":case"Z":f={command:"Z"},s=e,h=i,f=t[c]}f&&(t[c]=f)}"M"!==u&&"m"!==u||(e=s,i=h)}return t}function E(t){var e,i="";for(e=0;e<t.length;e++)i+=0===e?W(t[e]):" "+W(t[e]);return i}function W(t){var e="";switch(t.command){case"Z":case"z":e=t.command;break;case"M":case"m":case"L":case"l":e=t.command+" "+t.x+" "+t.y;break;case"C":case"c":e=t.command+" "+t.x1+" "+t.y1+" "+t.x2+" "+t.y2+" "+t.x+" "+t.y;break;case"Q":case"q":e=t.command+" "+t.x1+" "+t.y1+" "+t.x+" "+t.y;break;case"A":case"a":var i=t.command,r=t.angle,o=t.largeArc?"1":"0",n=t.sweep?"1":"0";e=i+" "+t.r1+" "+t.r2+" "+r+" "+o+" "+n+" "+t.x+" "+t.y;break;case"H":case"h":e=t.command+" "+t.x;break;case"V":case"v":e=t.command+" "+t.y;break;case"S":case"s":e=t.command+" "+t.x2+" "+t.y2+" "+t.x+" "+t.y;break;case"T":case"t":e=t.command+" "+t.x+" "+t.y}return e}function D(t,e){for(var i=Object.keys(e),r=0;r<i.length;r++)t.setAttribute(i[r],e[i[r]])}function _(t,e){var i=document.createElementNS("http://www.w3.org/2000/svg",t);return D(i,e),i}function X(t,e,i){for(var r=t.children.length-1;r>=0;r--){var o=t.children[r];if(o&&o.bounds.containsPoint(e,0)){if(o instanceof nt){var n=this.findTargetElement(o,e);if(n)return n}if(o.bounds.containsPoint(e,0))return o}}return t.bounds.containsPoint(e,i)&&"none"!==t.style.fill?t:null}function L(t,e){var i={x:0,y:0},r=t,o=e,n=(o.y2-o.y1)*(r.x2-r.x1)-(o.x2-o.x1)*(r.y2-r.y1),a=(o.x2-o.x1)*(r.y1-o.y1)-(o.y2-o.y1)*(r.x1-o.x1),s=(r.x2-r.x1)*(r.y1-o.y1)-(r.y2-r.y1)*(r.x1-o.x1);if(0===n)return{enabled:!1,intersectPt:i};var h=a/n,d=s/n;return h>=0&&h<=1&&d>=0&&d<=1?(i.x=r.x1+h*(r.x2-r.x1),i.y=r.y1+h*(r.y2-r.y1),{enabled:!0,intersectPt:i}):{enabled:!1,intersectPt:i}}function Y(t,e,i,r){return{x1:Number(t)||0,y1:Number(e)||0,x2:Number(i)||0,y2:Number(r)||0}}function I(t,e,n,a){if(void 0!==t.width&&void 0!==t.height&&(t.width*=e,t.height*=n),t instanceof nt){var s=i(),h=a.width||a.actualSize.width,d=a.height||a.actualSize.height;if(void 0!==h&&void 0!==d){var c=a.offsetX-h*a.pivot.x,l=a.offsetY-d*a.pivot.y,u={x:c+h*a.pivot.x,y:l+d*a.pivot.y};u=M(a.rotateAngle,a.offsetX,a.offsetY,u),o(s,-a.rotateAngle,u.x,u.y),o(s,a.rotateAngle,u.x,u.y);for(var f=0,y=t.children;f<y.length;f++){var p=y[f];if(void 0!==p.width&&void 0!==p.height){var g=r(s,{x:p.offsetX,y:p.offsetY});p.offsetX=g.x,p.offsetY=g.y,I(p,e,n,a)}}}}}var j=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),F=function(t,e,i,r){var o,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(n<3?o(a):n>3?o(e,i,a):o(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a},U=function(t){switch(t.type){case"Linear":return Z;case"Radial":return G;default:return Z}},V=function(){return function(t,e,i,r){this.left=t,this.right=e,this.top=i,this.bottom=r}}(),H=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return j(i,t),F([e.Property(0)],i.prototype,"left",void 0),F([e.Property(0)],i.prototype,"right",void 0),F([e.Property(0)],i.prototype,"top",void 0),F([e.Property(0)],i.prototype,"bottom",void 0),i}(e.ChildProperty),q=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return j(i,t),i.prototype.getClassName=function(){return"Stop"},F([e.Property("")],i.prototype,"color",void 0),F([e.Property(0)],i.prototype,"offset",void 0),F([e.Property(1)],i.prototype,"opacity",void 0),i}(e.ChildProperty),Q=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return j(i,t),F([e.Collection([],q)],i.prototype,"stops",void 0),F([e.Property("None")],i.prototype,"type",void 0),F([e.Property("")],i.prototype,"id",void 0),i}(e.ChildProperty),Z=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return j(i,t),F([e.Property(0)],i.prototype,"x1",void 0),F([e.Property(0)],i.prototype,"x2",void 0),F([e.Property(0)],i.prototype,"y1",void 0),F([e.Property(0)],i.prototype,"y2",void 0),i}(Q),G=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return j(i,t),F([e.Property(0)],i.prototype,"cx",void 0),F([e.Property(0)],i.prototype,"cy",void 0),F([e.Property(0)],i.prototype,"fx",void 0),F([e.Property(0)],i.prototype,"fy",void 0),F([e.Property(50)],i.prototype,"r",void 0),i}(Q),J=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return j(i,t),F([e.Property("white")],i.prototype,"fill",void 0),F([e.Property("black")],i.prototype,"strokeColor",void 0),F([e.Property("")],i.prototype,"strokeDashArray",void 0),F([e.Property(1)],i.prototype,"strokeWidth",void 0),F([e.Property(1)],i.prototype,"opacity",void 0),F([e.ComplexFactory(U)],i.prototype,"gradient",void 0),i}(e.ChildProperty),K=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return j(i,t),F([e.Property("transparent")],i.prototype,"fill",void 0),i}(J),$=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return j(i,t),F([e.Property("black")],i.prototype,"color",void 0),F([e.Property("Arial")],i.prototype,"fontFamily",void 0),F([e.Property(12)],i.prototype,"fontSize",void 0),F([e.Property(!1)],i.prototype,"italic",void 0),F([e.Property(!1)],i.prototype,"bold",void 0),F([e.Property("CollapseSpace")],i.prototype,"whiteSpace",void 0),F([e.Property("WrapWithOverflow")],i.prototype,"textWrapping",void 0),F([e.Property("Center")],i.prototype,"textAlign",void 0),F([e.Property("None")],i.prototype,"textDecoration",void 0),F([e.Property("Wrap")],i.prototype,"textOverflow",void 0),F([e.Property("transparent")],i.prototype,"fill",void 0),i}(J);!function(t){t[t.Self=1]="Self",t[t.Parent=2]="Parent"}(t.RotateTransform||(t.RotateTransform={})),function(t){t[t.None=0]="None",t[t.ElementIsPort=2]="ElementIsPort",t[t.ElementIsGroup=4]="ElementIsGroup"}(t.ElementAction||(t.ElementAction={})),function(t){t[t.None=1]="None",t[t.Select=2]="Select",t[t.Delete=4]="Delete",t[t.Drag=8]="Drag",t[t.DragSourceEnd=16]="DragSourceEnd",t[t.DragTargetEnd=32]="DragTargetEnd",t[t.DragSegmentThumb=64]="DragSegmentThumb",t[t.AllowDrop=128]="AllowDrop",t[t.Bridging=256]="Bridging",t[t.BridgeObstacle=512]="BridgeObstacle",t[t.InheritBridging=1024]="InheritBridging",t[t.PointerEvents=2048]="PointerEvents",t[t.Tooltip=4096]="Tooltip",t[t.InheritTooltip=8192]="InheritTooltip",t[t.Interaction=4218]="Interaction",t[t.ReadOnly=16384]="ReadOnly",t[t.Default=11838]="Default"}(t.ConnectorConstraints||(t.ConnectorConstraints={})),function(t){t[t.Rotate=2]="Rotate",t[t.ConnectorSource=4]="ConnectorSource",t[t.ConnectorTarget=8]="ConnectorTarget",t[t.ResizeNorthEast=16]="ResizeNorthEast",t[t.ResizeEast=32]="ResizeEast",t[t.ResizeSouthEast=64]="ResizeSouthEast",t[t.ResizeSouth=128]="ResizeSouth",t[t.ResizeSouthWest=256]="ResizeSouthWest",t[t.ResizeWest=512]="ResizeWest",t[t.ResizeNorthWest=1024]="ResizeNorthWest",t[t.ResizeNorth=2048]="ResizeNorth",t[t.Default=4094]="Default"}(t.ThumbsConstraints||(t.ThumbsConstraints={})),function(t){t[t.None=1]="None",t[t.ConnectorSourceThumb=2]="ConnectorSourceThumb",t[t.ConnectorTargetThumb=4]="ConnectorTargetThumb",t[t.ResizeSouthEast=8]="ResizeSouthEast",t[t.ResizeSouthWest=16]="ResizeSouthWest",t[t.ResizeNorthEast=32]="ResizeNorthEast",t[t.ResizeNorthWest=64]="ResizeNorthWest",t[t.ResizeEast=128]="ResizeEast",t[t.ResizeWest=256]="ResizeWest",t[t.ResizeSouth=512]="ResizeSouth",t[t.ResizeNorth=1024]="ResizeNorth",t[t.Rotate=2048]="Rotate",t[t.UserHandle=4096]="UserHandle",t[t.ToolTip=8192]="ToolTip",t[t.ResizeAll=2046]="ResizeAll",t[t.All=16382]="All"}(t.SelectorConstraints||(t.SelectorConstraints={})),function(t){t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Three=3]="Three",t[t.Four=4]="Four",t[t.Five=5]="Five"}(t.NoOfSegments||(t.NoOfSegments={}));var tt=function(){function t(t,e){this.width=t,this.height=e}return t.prototype.clone=function(){return new t(this.width,this.height)},t}(),et=function(){function t(t,e,i,r){this.x=Number.MAX_VALUE,this.y=Number.MAX_VALUE,this.width=0,this.height=0,void 0===t||void 0===e?(t=e=Number.MAX_VALUE,i=r=0):(void 0===i&&(i=0),void 0===r&&(r=0)),this.x=t,this.y=e,this.width=i,this.height=r}return Object.defineProperty(t.prototype,"left",{get:function(){return this.x},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return this.x+this.width},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return this.y},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return this.y+this.height},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"topLeft",{get:function(){return{x:this.left,y:this.top}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"topRight",{get:function(){return{x:this.right,y:this.top}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottomLeft",{get:function(){return{x:this.left,y:this.bottom}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottomRight",{get:function(){return{x:this.right,y:this.bottom}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"middleLeft",{get:function(){return{x:this.left,y:this.y+this.height/2}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"middleRight",{get:function(){return{x:this.right,y:this.y+this.height/2}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"topCenter",{get:function(){return{x:this.x+this.width/2,y:this.top}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottomCenter",{get:function(){return{x:this.x+this.width/2,y:this.bottom}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"center",{get:function(){return{x:this.x+this.width/2,y:this.y+this.height/2}},enumerable:!0,configurable:!0}),t.prototype.equals=function(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height},t.prototype.uniteRect=function(t){var e=Math.max(Number.NaN===this.right||this.x===Number.MAX_VALUE?t.right:this.right,t.right),i=Math.max(Number.NaN===this.bottom||this.y===Number.MAX_VALUE?t.bottom:this.bottom,t.bottom);return this.x=Math.min(this.left,t.left),this.y=Math.min(this.top,t.top),this.width=e-this.x,this.height=i-this.y,this},t.prototype.unitePoint=function(t){if(this.x===Number.MAX_VALUE)return this.x=t.x,void(this.y=t.y);var e=Math.min(this.left,t.x),i=Math.min(this.top,t.y),r=Math.max(this.right,t.x),o=Math.max(this.bottom,t.y);this.x=e,this.y=i,this.width=r-this.x,this.height=o-this.y},t.prototype.intersection=function(e){if(this.intersects(e)){var i=Math.max(this.left,e.left),r=Math.max(this.top,e.top);return new t(i,r,Math.min(this.right,e.right)-i,Math.min(this.bottom,e.bottom)-r)}return t.empty},t.prototype.Inflate=function(t){return this.x-=t,this.y-=t,this.width+=2*t,this.height+=2*t,this},t.prototype.intersects=function(t){return!(this.right<t.left||this.left>t.right||this.top>t.bottom||this.bottom<t.top)},t.prototype.containsRect=function(t){return this.left<=t.left&&this.right>=t.right&&this.top<=t.top&&this.bottom>=t.bottom},t.prototype.containsPoint=function(t,e){return void 0===e&&(e=0),this.left-e<=t.x&&this.right+e>=t.x&&this.top-e<=t.y&&this.bottom+e>=t.y},t.prototype.toPoints=function(){var t=[];return t.push(this.topLeft),t.push(this.topRight),t.push(this.bottomLeft),t.push(this.bottomRight),t},t.toBounds=function(e){for(var i=new t,r=0,o=e;r<o.length;r++){var n=o[r];i.unitePoint(n)}return i},t.prototype.scale=function(t,e){this.width*=t,this.height*=e},t.prototype.offset=function(t,e){this.x+=t,this.y+=e},t.empty=new t(Number.MAX_VALUE,Number.MIN_VALUE,0,0),t}();!function(t){t[t.Identity=0]="Identity",t[t.Translation=1]="Translation",t[t.Scaling=2]="Scaling",t[t.Unknown=4]="Unknown"}(t.MatrixTypes||(t.MatrixTypes={}));var it=function(){return function(t,e,i,r,o,n,a){this.m11=t,this.m12=e,this.m21=i,this.m22=r,this.offsetX=o,this.offsetY=n,this.type=a}}(),rt=function(){function e(){this.pivot={x:.5,y:.5},this.rotateValue={x:0,y:0,angle:0},this.isDirt=!0,this.offsetX=0,this.offsetY=0,this.cornerRadius=0,this.minHeight=void 0,this.minWidth=void 0,this.maxWidth=void 0,this.maxHeight=void 0,this.width=void 0,this.height=void 0,this.horizontalAlignment="Auto",this.verticalAlignment="Auto",this.visible=!0,this.rotateAngle=0,this.margin={left:0,right:0,top:0,bottom:0},this.relativeMode="Point",this.transform=t.RotateTransform.Self|t.RotateTransform.Parent,this.style={fill:"white",strokeColor:"black",opacity:1,strokeWidth:1},this.desiredSize=new tt,this.actualSize=new tt,this.parentTransform=0,this.preventContainer=!1,this.bounds=new et(0,0,0,0),this.staticSize=!1,this.isRectElement=!1,this.isCalculateDesiredSize=!0,this.elementActions=t.ElementAction.None,this.position=void 0,this.unitMode=void 0,this.float=!1,this.floatingBounds=void 0}return e.prototype.setOffsetWithRespectToBounds=function(t,e,i){this.unitMode=i,this.position={x:t,y:e}},e.prototype.getAbsolutePosition=function(t){if(void 0!==this.position)return"Absolute"===this.unitMode?this.position:{x:this.position.x*t.width,y:this.position.y*t.height}},Object.defineProperty(e.prototype,"outerBounds",{get:function(){return this.floatingBounds||this.bounds},set:function(t){this.floatingBounds=t},enumerable:!0,configurable:!0}),e.prototype.measure=function(t){var e=void 0!==this.width?this.width:(t.width||0)-this.margin.left-this.margin.right,i=void 0!==this.height?this.height:(t.height||0)-this.margin.top-this.margin.bottom;return this.desiredSize=new tt(e,i),this.isCalculateDesiredSize&&(this.desiredSize=this.validateDesiredSize(this.desiredSize,t)),this.desiredSize},e.prototype.arrange=function(t){return this.actualSize=t,this.updateBounds(),this.actualSize},e.prototype.updateBounds=function(){this.bounds=v(this)},e.prototype.validateDesiredSize=function(t,e){return!this.isRectElement||this.width||this.minWidth||this.maxWidth||(t.width=50),!this.isRectElement||this.height||this.minHeight||this.maxHeight||(t.height=50),(void 0===t||void 0!==this.width&&void 0!==this.height)&&((t=t||new tt).width=void 0===this.width?(e.width||0)-this.margin.left-this.margin.right:this.width,t.height=void 0===this.height?(e.height||0)-this.margin.top-this.margin.bottom:this.height),void 0!==this.minWidth&&(t.width=Math.max(t.width,this.minWidth)),void 0!==this.minHeight&&(t.height=Math.max(t.height,this.minHeight)),void 0!==this.maxWidth&&(t.width=Math.min(t.width,this.maxWidth)),void 0!==this.maxHeight&&(t.height=Math.min(t.height,this.maxHeight)),t},e}(),ot=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),nt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.desiredBounds=void 0,e.measureChildren=!0,e.prevRotateAngle=0,e}return ot(e,t),e.prototype.hasChildren=function(){return void 0!==this.children&&this.children.length>0},e.prototype.measure=function(t){this.desiredBounds=void 0;var i,r,o=void 0;if(this.hasChildren()){for(var n=0;n<this.children.length;n++){"Stretch"!==(i=this.children[n]).horizontalAlignment||t.width||(t.width=i.bounds.width),"Stretch"!==i.verticalAlignment||t.height||(t.height=i.bounds.height);var a="Stretch"===i.horizontalAlignment||"Stretch"===i.verticalAlignment;(this.measureChildren||a||i instanceof e&&void 0!==i.measureChildren)&&i.measure(t),r=this.GetChildrenBounds(i),"Stretch"!==i.horizontalAlignment&&"Stretch"!==i.verticalAlignment?void 0===this.desiredBounds?this.desiredBounds=r:this.desiredBounds.uniteRect(r):!this.actualSize||this.actualSize.width||this.actualSize.height||i.preventContainer||"Stretch"!==i.horizontalAlignment||"Stretch"!==i.verticalAlignment||(void 0===this.desiredBounds?this.desiredBounds=i.bounds:this.desiredBounds.uniteRect(i.bounds))}if(void 0!==this.desiredBounds&&0!==this.rotateAngle){var s={x:this.desiredBounds.x+this.desiredBounds.width*this.pivot.x,y:this.desiredBounds.y+this.desiredBounds.height*this.pivot.y},h=M(this.rotateAngle,void 0,void 0,s);this.desiredBounds.x=h.x-this.desiredBounds.width*this.pivot.x,this.desiredBounds.y=h.y-this.desiredBounds.height*this.pivot.y}this.desiredBounds&&(o=new tt(this.desiredBounds.width,this.desiredBounds.height))}return o=this.validateDesiredSize(o,t),this.stretchChildren(o),this.desiredSize=o,o},e.prototype.arrange=function(t){var i,r=this.desiredBounds;if(r){this.offsetX,this.offsetY;if(this.offsetX=r.x+r.width*this.pivot.x,this.offsetY=r.y+r.height*this.pivot.y,this.hasChildren())for(var o=0;o<this.children.length;o++){var n=!1;"Stretch"===(i=this.children[o]).horizontalAlignment&&(i.offsetX=this.offsetX,i.parentTransform=this.parentTransform+this.rotateAngle,n=!0),"Stretch"===i.verticalAlignment&&(i.offsetY=this.offsetY,i.parentTransform=this.parentTransform+this.rotateAngle,n=!0),(n||this.measureChildren||i instanceof e&&void 0!==i.measureChildren)&&i.arrange(i.desiredSize)}}return this.actualSize=t,this.updateBounds(),this.prevRotateAngle=this.rotateAngle,t},e.prototype.stretchChildren=function(t){if(this.hasChildren())for(var i=0,r=this.children;i<r.length;i++){var o=r[i];"Stretch"!==o.horizontalAlignment&&void 0!==o.desiredSize.width||(o.desiredSize.width=t.width-o.margin.left-o.margin.right),"Stretch"!==o.verticalAlignment&&void 0!==o.desiredSize.height||(o.desiredSize.height=t.height-o.margin.top-o.margin.bottom),o instanceof e&&o.stretchChildren(o.desiredSize)}},e.prototype.findChildOffsetFromCenter=function(t,e){var i=k({x:e.x-t.desiredSize.width/2,y:e.y-t.desiredSize.height/2},t);i=M(t.rotateAngle,e.x,e.y,i),i=M(this.rotateAngle+this.parentTransform,this.offsetX,this.offsetY,i),t.offsetX=i.x,t.offsetY=i.y},e.prototype.GetChildrenBounds=function(t){var e;e=t.desiredSize.clone();t.rotateAngle,this.rotateAngle;var i=t.offsetX,r=t.offsetY,o=i-e.width*t.pivot.x,n=r-e.height*t.pivot.y,a=o+e.width,s=n+e.height,h={x:o,y:n},d={x:a,y:n},c={x:o,y:s},l={x:a,y:s};return h=M(t.rotateAngle,t.offsetX,t.offsetY,h),d=M(t.rotateAngle,t.offsetX,t.offsetY,d),c=M(t.rotateAngle,t.offsetX,t.offsetY,c),l=M(t.rotateAngle,t.offsetX,t.offsetY,l),0!==this.rotateAngle&&(h=M(-this.rotateAngle,void 0,void 0,h),d=M(-this.rotateAngle,void 0,void 0,d),c=M(-this.rotateAngle,void 0,void 0,c),l=M(-this.rotateAngle,void 0,void 0,l)),et.toBounds([h,d,c,l])},e}(rt),at=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),st=function(t){function e(){var e=t.call(this)||this;return e.textContent="",e.canMeasure=!0,e.canConsiderBounds=!0,e.doWrap=!0,e.textNodes=[],e.style={color:"black",fill:"transparent",strokeColor:"black",strokeWidth:1,fontFamily:"Arial",fontSize:12,whiteSpace:"CollapseSpace",textWrapping:"WrapWithOverflow",textAlign:"Center",italic:!1,bold:!1,textDecoration:"None",strokeDashArray:"",opacity:1,textOverflow:"Wrap"},e.style.fill="transparent",e.style.strokeColor="transparent",e}return at(e,t),Object.defineProperty(e.prototype,"content",{get:function(){return this.textContent},set:function(t){this.textContent!==t&&(this.textContent=t,this.isDirt=!0,this.doWrap=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"childNodes",{get:function(){return this.textNodes},set:function(t){this.textNodes=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wrapBounds",{get:function(){return this.textWrapBounds},set:function(t){this.textWrapBounds=t},enumerable:!0,configurable:!0}),e.prototype.refreshTextElement=function(){this.isDirt=!0},e.prototype.measure=function(t){var e;return e=this.isDirt&&this.canMeasure?l(this,this.style,this.content,this.width||t.width):this.desiredSize,void 0===this.width||void 0===this.height?this.desiredSize=new tt(e.width,e.height):this.desiredSize=new tt(this.width,this.height),this.desiredSize=this.validateDesiredSize(this.desiredSize,t),this.desiredSize},e.prototype.arrange=function(t){return(t.width!==this.actualSize.width||t.height!==this.actualSize.height||this.isDirt)&&(this.doWrap=!0),this.actualSize=t,this.updateBounds(),this.isDirt=!1,this.actualSize},e}(rt),ht=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),dt=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.measureChildren=void 0,t}return ht(n,e),n.prototype.measure=function(t){var i=void 0,r=void 0;if(this.hasChildren()){for(var o=0,n=this.children;o<n.length;o++){var a=n[o];if(a instanceof st){if(!a.canMeasure)break;t.width=t.width||this.maxWidth||this.minWidth,a.measure(t)}else a instanceof st||a.measure(t);var s=a.desiredSize.clone();0!==a.rotateAngle&&(s=m(s,a.rotateAngle));var h=s.width+a.margin.right,d=s.height+a.margin.bottom,c=new et(a.margin.left,a.margin.top,h,d);if(a.float){if(void 0!==a.getAbsolutePosition(s))continue}a instanceof st&&!(a instanceof st&&a.canConsiderBounds)||(void 0===r?r=c:r.uniteRect(c))}if(r){var l=0,u=0;l=Math.max(r.left,0),u=Math.max(r.top,0),i=new tt(r.width+l,r.height+u)}}return i=e.prototype.validateDesiredSize.call(this,i,t),e.prototype.stretchChildren.call(this,i),this.desiredSize=i,i},n.prototype.arrange=function(n){if(this.outerBounds=new et,this.hasChildren()){var a=void 0,s=void 0;a=this.offsetY-n.height*this.pivot.y,s=this.offsetX-n.width*this.pivot.x;for(var h=0,d=this.children;h<d.length;h++){var c=d[h];if(0!=(c.transform&t.RotateTransform.Parent)){c.parentTransform=this.parentTransform+this.rotateAngle;var l=c.desiredSize.clone(),u=void 0,f={x:0,y:0},y=s,p=a;if("Point"===c.relativeMode){var g=c.getAbsolutePosition(n);void 0!==g&&(y+=g.x,p+=g.y)}if(u="Object"===c.relativeMode?this.alignChildBasedOnParent(c,l,n,y,p):this.alignChildBasedOnaPoint(c,y,p),f={x:u.x+l.width/2,y:u.y+l.height/2},c.rotateValue){var x={x:this.offsetX+(c.rotateValue.x||0),y:this.offsetY+(c.rotateValue.y||0)},m={x:this.offsetX,y:this.offsetY},v=0|c.rotateValue.angle,w=i();o(w,v,m.x,m.y),f=r(w,x)}e.prototype.findChildOffsetFromCenter.call(this,c,f)}"Stretch"===c.horizontalAlignment||"Stretch"===c.verticalAlignment?c.arrange(n):c instanceof st&&c.canMeasure?(c.arrange(c.desiredSize),this.outerBounds.uniteRect(c.outerBounds)):c instanceof st||(c.arrange(c.desiredSize),this.outerBounds.uniteRect(c.outerBounds))}}return this.actualSize=n,this.updateBounds(),this.outerBounds.uniteRect(this.bounds),n},n.prototype.alignChildBasedOnParent=function(t,e,i,r,o){switch(t.horizontalAlignment){case"Auto":case"Left":r+=t.margin.left;break;case"Right":r+=i.width-e.width-t.margin.right;break;case"Stretch":case"Center":r+=i.width/2-e.width/2}switch(t.verticalAlignment){case"Auto":case"Top":o+=t.margin.top;break;case"Bottom":o+=i.height-e.height-t.margin.bottom;break;case"Stretch":case"Center":o+=i.height/2-e.height/2}return{x:r,y:o}},n.prototype.alignChildBasedOnaPoint=function(t,e,i){switch(e+=t.margin.left-t.margin.right,i+=t.margin.top-t.margin.bottom,t.horizontalAlignment){case"Auto":case"Left":e=e;break;case"Stretch":case"Center":e-=t.desiredSize.width*t.pivot.x;break;case"Right":e-=t.desiredSize.width}switch(t.verticalAlignment){case"Auto":case"Top":i=i;break;case"Stretch":case"Center":i-=t.desiredSize.height*t.pivot.y;break;case"Bottom":i-=t.desiredSize.height}return{x:e,y:i}},n}(nt),ct=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),lt=function(t){function e(){var e=t.call(this)||this;return e.imageSource="",e.imageScale="None",e.imageAlign="None",e.stretch="Stretch",e}return ct(e,t),Object.defineProperty(e.prototype,"source",{get:function(){return this.imageSource},set:function(t){this.imageSource=t,this.isDirt=!0},enumerable:!0,configurable:!0}),e.prototype.measure=function(t){return this.isDirt&&("Stretch"!==this.stretch||void 0===this.width&&void 0===this.height)&&(this.contentSize=g(this.source,this.contentSize),this.isDirt=!1),void 0!==this.width&&void 0!==this.height?(this.desiredSize=new tt(this.width,this.height),this.contentSize=this.desiredSize):this.desiredSize=this.contentSize,this.desiredSize=this.validateDesiredSize(this.desiredSize,t),this.desiredSize},e.prototype.arrange=function(t){return this.actualSize=new tt(this.desiredSize.width,this.desiredSize.height),this.updateBounds(),this.actualSize},e}(rt),ut=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),ft=function(t){function e(){var e=t.call(this)||this;return e.pathData="",e.transformPath=!0,e.absolutePath="",e.canMeasurePath=!1,e.absoluteBounds=new et,e}return ut(e,t),Object.defineProperty(e.prototype,"data",{get:function(){return this.pathData},set:function(t){this.pathData!==t&&(this.pathData=t,this.isDirt=!0)},enumerable:!0,configurable:!0}),e.prototype.measure=function(t){return this.staticSize&&void 0!==this.width&&void 0!==this.height?this.absoluteBounds=new et(this.offsetX-this.width*this.pivot.x,this.offsetY-this.height*this.pivot.y,this.width,this.height):(!this.isDirt||!this.transformPath&&void 0!==this.width&&void 0!==this.height||this.absoluteBounds&&0!==this.absoluteBounds.height)&&!this.canMeasurePath||(this.absoluteBounds=d(this.data?this.data:"")),void 0===this.width?this.desiredSize=new tt(this.absoluteBounds.width,this.height||this.absoluteBounds.height):void 0===this.height?this.desiredSize=new tt(this.width||this.absoluteBounds.width,this.absoluteBounds.height):this.desiredSize=new tt(this.width,this.height),this.desiredSize=this.validateDesiredSize(this.desiredSize,t),this.canMeasurePath=!1,this.desiredSize},e.prototype.arrange=function(t){return(this.isDirt||this.actualSize.width!==t.width||this.actualSize.height!==t.height)&&(this.isDirt=!0,this.absolutePath=this.updatePath(this.data,this.absoluteBounds,t),this.staticSize||(this.points=null)),this.actualSize=this.desiredSize,this.updateBounds(),this.isDirt=!1,this.actualSize},e.prototype.updatePath=function(t,e,i){var r=!1,o="",n=-e.x,a=-e.y,s=[];return i.width===e.width&&i.height===e.height||(n=i.width/Number(e.width?e.width:1),a=i.height/Number(e.height?e.height:1),r=!0),s=z(t),s=N(s),o=(r||this.isDirt)&&this.transformPath?R(s,n,a,r,e.x,e.y,0,0):E(s),r=!1,o},e}(rt),yt=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),pt=function(t,e,i,r){var o,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(n<3?o(a):n>3?o(e,i,a):o(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a},gt=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return yt(i,t),i.equals=function(t,e){return t===e||!(!t||!e)&&(!t||!e||t.x===e.x&&t.y===e.y)},i.isEmptyPoint=function(t){return!t.x||!t.y},i.transform=function(t,e,i){var r={x:0,y:0};return r.x=Math.round(100*(t.x+i*Math.cos(e*Math.PI/180)))/100,r.y=Math.round(100*(t.y+i*Math.sin(e*Math.PI/180)))/100,r},i.findLength=function(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},i.findAngle=function(t,e){var i=Math.atan2(e.y-t.y,e.x-t.x);return i=180*i/Math.PI,(i%=360)<0&&(i+=360),i},i.distancePoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},i.getLengthFromListOfPoints=function(t){for(var e=0,i=0;i<t.length-1;i++)e+=this.distancePoints(t[i],t[i+1]);return e},i.adjustPoint=function(t,e,i,r){var o,n=i?{x:t.x,y:t.y}:{x:e.x,y:e.y};return t.x===e.x?t.y<e.y&&i||t.y>e.y&&!i?n.y+=r:n.y-=r:t.y===e.y?t.x<e.x&&i||t.x>e.x&&!i?n.x+=r:n.x-=r:i?(o=this.findAngle(t,e),n=this.transform(t,o,r)):(o=this.findAngle(e,t),n=this.transform(e,o,r)),n},i.direction=function(t,e){return Math.abs(e.x-t.x)>Math.abs(e.y-t.y)?t.x<e.x?"Right":"Left":t.y<e.y?"Bottom":"Top"},i.prototype.getClassName=function(){return"Point"},pt([e.Property(0)],i.prototype,"x",void 0),pt([e.Property(0)],i.prototype,"y",void 0),i}(e.ChildProperty),xt=function(){function t(){}return t.getContext=function(t){return t.getContext("2d")},t.prototype.setStyle=function(e,i){var r=t.getContext(e);"none"===i.fill&&(i.fill="transparent"),"none"===i.stroke&&(i.stroke="transparent"),r.strokeStyle=i.stroke,r.lineWidth=i.strokeWidth,0===i.strokeWidth&&(r.strokeStyle="transparent"),r.globalAlpha=i.opacity;var o=[];i.dashArray&&(o=this.parseDashArray(i.dashArray)),r.setLineDash(o),r.fillStyle=i.fill},t.prototype.rotateContext=function(e,i,r,o){var n=t.getContext(e);n.translate(r,o),n.rotate(i*Math.PI/180),n.translate(-r,-o)},t.prototype.setFontStyle=function(e,i){var r=t.getContext(e),o="";i.italic&&(o+="italic "),i.bold&&(o+="bold "),o+=i.fontSize+"px ",o+=i.fontFamily,r.font=o},t.prototype.parseDashArray=function(t){for(var e=[],i=-1!==t.indexOf(" ")?" ":",",r=0,o=t.split(i);r<o.length;r++){var n=o[r];e.push(Number(n))}return e},t.prototype.drawRectangle=function(e,i){if(!0===i.visible)if(i.cornerRadius)i.data=C(i.cornerRadius,i.height,i.width),this.drawPath(e,i);else{var r=t.getContext(e);r.save(),r.beginPath();i.cornerRadius;var o=i.x+i.width*i.pivotX,n=i.y+i.height*i.pivotY;this.rotateContext(e,i.angle,o,n),this.setStyle(e,i),r.rect(i.x,i.y,i.width,i.height),r.fillRect(i.x,i.y,i.width,i.height),r.fill(),r.stroke(),r.closePath(),r.restore()}},t.prototype.drawPath=function(e,i){var r=[];r=T(r=z(i.data));var o=t.getContext(e);o.save(),o.beginPath();var n=i.y+i.height*i.pivotY,a=i.x+i.width*i.pivotX;this.rotateContext(e,i.angle,a,n),this.setStyle(e,i),o.translate(i.x,i.y),this.renderPath(e,i,r),o.fill(),o.translate(-i.x,-i.y),o.stroke(),o.restore()},t.prototype.renderPath=function(e,i,r){if(!0===i.visible){var o,n=t.getContext(e),a=void 0,s=void 0,h=void 0,d=void 0,c=void 0,l=void 0,u=void 0,f=void 0,y=void 0,p=r;for(u=0,f=0,y=0,o=p.length;y<o;++y){var g=p[y],x=g.command;switch("x1"in g&&(h=g.x1),"x2"in g&&(c=g.x2),"y1"in g&&(d=g.y1),"y2"in g&&(l=g.y2),"x"in g&&(u=g.x),"y"in g&&(f=g.y),x){case"M":n.moveTo(u,f),g.x=u,g.y=f;break;case"L":n.lineTo(u,f),g.x=u,g.y=f;break;case"C":n.bezierCurveTo(h,d,c,l,u,f),g.x=u,g.y=f,g.x1=h,g.y1=d,g.x2=c,g.y2=l;break;case"Q":n.quadraticCurveTo(h,d,u,f),g.x=u,g.y=f,g.x1=h,g.y1=d;break;case"A":var m=a,v=s,w=g.r1,b=g.r2,S=g.angle*(Math.PI/180),A=g.largeArc,M=g.sweep,k=u,z=f,P={x:Math.cos(S)*(m-k)/2+Math.sin(S)*(v-z)/2,y:-Math.sin(S)*(m-k)/2+Math.cos(S)*(v-z)/2},C=Math.pow(P.x,2)/Math.pow(w,2)+Math.pow(P.y,2)/Math.pow(b,2);C>1&&(w*=Math.sqrt(C),b*=Math.sqrt(C));var T=Math.pow(b,2)*Math.pow(P.x,2),R=(A===M?-1:1)*Math.sqrt((Math.pow(w,2)*Math.pow(b,2)-Math.pow(w,2)*Math.pow(P.y,2)-T)/(Math.pow(w,2)*Math.pow(P.y,2)+Math.pow(b,2)*Math.pow(P.x,2)));isNaN(R)&&(R=0);var B=R*w*P.y/b,O=R*-b*P.x/w,N={x:(m+k)/2+Math.cos(S)*B-Math.sin(S)*O,y:(v+z)/2+Math.sin(S)*B+Math.cos(S)*O},E=this.a([1,0],[(P.x-B)/w,(P.y-O)/b]),W=[(P.x-B)/w,(P.y-O)/b],D=[(-P.x-B)/w,(-P.y-O)/b],_=this.a(W,D);if(this.r(W,D)<=-1&&(_=Math.PI),this.r(W,D)>=1&&(_=0),g.centp=N,g.xAxisRotation=S,g.rx=w,g.ry=b,g.a1=E,g.ad=_,g.sweep=M,null!=n){var X=w>b?w:b,L=w>b?1:w/b,Y=w>b?b/w:1;n.save(),n.translate(N.x,N.y),n.rotate(S),n.scale(L,Y),n.arc(0,0,X,E,E+_,!M),n.scale(1/L,1/Y),n.rotate(-S),n.translate(-N.x,-N.y),n.restore()}break;case"Z":case"z":n.closePath(),u=a,f=s}a=u,s=f}}},t.prototype.drawText=function(e,i){if(i.content&&!0===i.visible){var r=t.getContext(e);r.save(),this.setStyle(e,i);var o=i.x+i.width*i.pivotX,n=i.y+i.height*i.pivotY;this.rotateContext(e,i.angle,o,n),this.setFontStyle(e,i);var a=0,s=[];s=i.childNodes;var h=i.wrapBounds;if(r.fillStyle=i.color,h){var d=this.labelAlign(i,h,s);for(a=0;a<s.length;a++){var c=s[a],l=d.x+c.x-h.x,u=d.y+c.dy*a+.8*i.fontSize;if(r.fillText(c.text,l,u),"Underline"===i.textDecoration||"Overline"===i.textDecoration||"LineThrough"===i.textDecoration){var f=l,y=void 0,p=l+r.measureText(c.text).width,g=void 0;switch(i.textDecoration){case"Underline":y=u+2,g=u+2;break;case"Overline":y=d.y+c.dy*a,g=d.y+c.dy*a;break;case"LineThrough":y=(u+d.y+c.dy*a)/2+2,g=(u+d.y+c.dy*a)/2+2}r.beginPath(),r.moveTo(f,y),r.lineTo(p,g),r.strokeStyle=i.color,r.lineWidth=.08*i.fontSize,r.globalAlpha=i.opacity,r.stroke()}}}r.restore()}},t.prototype.m=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2))},t.prototype.r=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(this.m(t)*this.m(e))},t.prototype.a=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(this.r(t,e))},t.prototype.getMeetOffset=function(t,e,i){var r=Math.max(e,i),o=Math.min(e,i);switch(t){case"min":return 0;case"mid":return(r-o)/2;case"max":return r-o;default:return 0}},t.prototype.getSliceOffset=function(t,e,i,r){switch(t){case"min":return 0;case"mid":return(e-i)/2*r/e;case"max":return(e-i)*r/e;default:return 0}},t.prototype.image=function(t,e,i,r,o,n,a){t.beginPath();var s=e.width,h=e.height,d=o,c=n,l=0,u=0;if(t.globalAlpha=a.opacity,a&&"None"!==a.alignment){var y=a.alignment.toLowerCase().substr(1,3),p=a.alignment.toLowerCase().substr(5,3);if("Slice"===a.scale){var g=function(){l=d,u=h*d/s},x=function(){l=s*c/h,u=c};d>c?(g(),c>u&&x()):d===c?s>h?x():g():(x(),d>l&&g());var m=this.getSliceOffset(y,l,d,s),v=this.getSliceOffset(p,u,c,h),w=s-m,b=h-v,S=l-m*(l/s),A=u-v*(u/h),M=f("canvas",{width:o.toString(),height:n.toString()});M.getContext("2d").drawImage(e,m,v,w,b,0,0,S,A),t.drawImage(M,i,r,o,n)}else if("Meet"===a.scale){var k=h/s,z=c/d;l=z>k?d:c/k,u=z>k?d*k:c,i+=this.getMeetOffset(y,l,d),r+=this.getMeetOffset(p,u,c),t.drawImage(e,0,0,s,h,i,r,l,u)}else t.drawImage(e,i,r,o,n)}else e.complete?t.drawImage(e,i,r,o,n):e.onload=function(){t.drawImage(e,i,r,o,n)};t.closePath()},t.prototype.loadImage=function(t,e,i,r,o){this.rotateContext(i,e.angle,r,o);var n=new Image;n.src=e.source,this.image(t,n,e.x,e.y,e.width,e.height,e)},t.prototype.drawImage=function(e,i,r,o){var n=this;if(i.visible){var a=t.getContext(e);a.save();var s=i.x+i.width*i.pivotX,h=i.y+i.height*i.pivotY,d=new Image;d.src=i.source;var c=a.canvas.id.split("_");c[c.length-1];o?d.onload=function(){n.loadImage(a,i,e,s,h)}:this.loadImage(a,i,e,s,h),a.restore()}},t.prototype.labelAlign=function(t,e,i){var r=new tt(e.width,i.length*(1.2*t.fontSize)),o={x:0,y:0},n=t.x,a=t.y,s=.5*t.width,h=.5*t.height;return"left"===t.textAlign?s=0:"center"===t.textAlign?s=e.width>t.width&&("Ellipsis"===t.textOverflow||"Clip"===t.textOverflow)?0:.5*t.width:"right"===t.textAlign&&(s=1*t.width),o.x=n+s+(e?e.x:0),o.y=a+h-r.height/2,o},t}(),mt=function(){function t(t,e){this.renderer=null,this.isSvgMode=!0,this.diagramId=t,this.element=u(this.diagramId),this.isSvgMode=e,this.renderer=new xt}return t.prototype.renderElement=function(t,e,i,r,o,n,a,s){t instanceof nt?this.renderContainer(t,e,i,r,o,n,a,s):t instanceof lt?this.renderImageElement(t,e,r,o,a):t instanceof ft?this.renderPathElement(t,e,r,o,a):t instanceof st?this.renderTextElement(t,e,r,o,a):this.renderRect(t,e,r,o)},t.prototype.renderImageElement=function(t,e,i,r,o){var n=this.getBaseAttributes(t,i);n.cornerRadius=0,this.renderer.drawRectangle(e,n);var a,s,h,d;if("Stretch"===t.stretch)a=t.actualSize.width,s=t.actualSize.height;else{var c=t.contentSize.width,l=t.contentSize.height,u=n.width/c,f=n.height/l,y=void 0;switch(t.stretch){case"Meet":a=c*(y=Math.min(u,f)),s=l*y,n.x+=Math.abs(n.width-a)/2,n.y+=Math.abs(n.height-s)/2;break;case"Slice":u=n.width/c,f=n.height/l,a=c*(y=Math.max(u,f)),s=l*y,h=n.width/a*c,d=n.height/s*l;break;case"None":a=c,s=l}}n.width=a,n.height=s,n.sourceWidth=h,n.sourceHeight=d,n.source=t.source,n.alignment=t.imageAlign,n.scale=t.imageScale,this.renderer.drawImage(e,n,r,o)},t.prototype.renderPathElement=function(t,e,i,r,o){var n=this.getBaseAttributes(t,i);n.data=t.absolutePath,n.data=t.absolutePath;t.id;this.isSvgMode||(n.x=n.x,n.y=n.y),this.renderer.drawPath(e,n)},t.prototype.renderTextElement=function(t,e,i,r,o){var n=this.getBaseAttributes(t,i);n.cornerRadius=0,n.whiteSpace=A(t.style.whiteSpace,t.style.textWrapping),n.content=t.content,n.breakWord=b(t.style.textWrapping),n.textAlign=w(t.style.textAlign),n.color=t.style.color,n.italic=t.style.italic,n.bold=t.style.bold,n.fontSize=t.style.fontSize,n.fontFamily=t.style.fontFamily,n.textOverflow=t.style.textOverflow,n.textDecoration=t.style.textDecoration,n.doWrap=t.doWrap,n.wrapBounds=t.wrapBounds,n.childNodes=t.childNodes,n.dashArray="",n.strokeWidth=0,n.fill=t.style.fill;t.content?t.content:t.id;this.renderer.drawRectangle(e,n),this.renderer.drawText(e,n)},t.prototype.renderContainer=function(t,e,i,r,o,n,a,s){if(r={tx:0,ty:0,scale:1},this.diagramId&&(o=o),this.renderRect(t,e,r,o),t.hasChildren())for(var h=0,d=t.children;h<d.length;h++){var c=d[h];this.renderElement(c,e,i,r,o,!0,a,s)}},t.prototype.renderRect=function(t,e,i,r){var o=this.getBaseAttributes(t,i);o.cornerRadius=t.cornerRadius||0;t.id;this.renderer.drawRectangle(e,o)},t.prototype.getBaseAttributes=function(t,e){var i={width:t.actualSize.width,height:t.actualSize.height,x:t.offsetX-t.actualSize.width*t.pivot.x+.5,y:t.offsetY-t.actualSize.height*t.pivot.y+.5,fill:t.style.fill,stroke:t.style.strokeColor,angle:t.rotateAngle+t.parentTransform,pivotX:t.pivot.x,pivotY:t.pivot.y,strokeWidth:t.style.strokeWidth,dashArray:t.style.strokeDashArray||"",opacity:t.style.opacity,visible:t.visible,id:t.id,gradient:t.style.gradient};return e&&(i.x+=e.tx,i.y+=e.ty),i},t}(),vt=function(){function t(){}return t.prototype.parseDashArray=function(t){return[]},t.prototype.drawRectangle=function(t,e,i,r,o,n,a){var s;s=e.id===t.id?e.id+"_container":e.id;var h;h&&!o||(h=document.createElementNS("http://www.w3.org/2000/svg","rect"),t.appendChild(h));var d={id:s,x:e.x.toString(),y:e.y.toString(),width:e.width.toString(),height:e.height.toString(),visibility:e.visible?"visible":"hidden",transform:"rotate("+e.angle+","+(e.x+e.width*e.pivotX)+","+(e.y+e.height*e.pivotY)+")",rx:e.cornerRadius||0,ry:e.cornerRadius||0,opacity:e.opacity,"aria-label":a||""};e.class&&(d.class=e.class);a||(d["pointer-events"]="none"),D(h,d),this.setSvgStyle(h,e,i)},t.prototype.updateSelectionRegion=function(t,e){var i;i=t.parentNode.getElementById(e.id);var r;r={id:e.id,x:e.x.toString(),y:e.y.toString(),width:e.width.toString(),height:e.height.toString(),transform:"rotate("+e.angle+","+(e.x+e.width*e.pivotX)+","+(e.y+e.height*e.pivotY)+")",class:"e-diagram-selected-region"},i||(i=document.createElementNS("http://www.w3.org/2000/svg","rect"),t.appendChild(i)),this.setSvgStyle(i,e),D(i,r)},t.prototype.createGElement=function(t,e){return _(t,e)},t.prototype.drawCircle=function(t,e,i,r){var o=document.createElementNS("http://www.w3.org/2000/svg","circle");this.setSvgStyle(o,e);var n=e.class||"";i||(n+=" e-disabled");var a={id:e.id,cx:e.centerX,cy:e.centerY,r:e.radius,visibility:e.visible?"visible":"hidden",class:n,"aria-label":r?r["aria-label"]:""};o.style.display=e.visible?"block":"none",D(o,a),t.appendChild(o)},t.prototype.setSvgStyle=function(t,e,i){if(e.canApplyStyle||void 0===e.canApplyStyle){"none"===e.fill&&(e.fill="transparent"),"none"===e.stroke&&(e.stroke="transparent");var r=[],o=void 0;if(void 0!==e.dashArray){r=(new xt).parseDashArray(e.dashArray)}o=e.fill,e.stroke&&t.setAttribute("stroke",e.stroke),void 0!==e.strokeWidth&&null!==e.strokeWidth&&t.setAttribute("stroke-width",e.strokeWidth.toString()),r&&t.setAttribute("stroke-dasharray",r.toString()),o&&t.setAttribute("fill",o)}},t.prototype.svgLabelAlign=function(t,e,i){var r=new tt(e.width,i.length*(1.2*t.fontSize)),o={x:0,y:0},n=.5*t.width,a=.5*t.height;return"left"===t.textAlign?n=0:"center"===t.textAlign?n=e.width>t.width&&("Ellipsis"===t.textOverflow||"Clip"===t.textOverflow)?0:.5*t.width:"right"===t.textAlign&&(n=1*t.width),o.x=0+n+(e?e.x:0),o.y=1.2+a-r.height/2,o},t.prototype.drawLine=function(t,e){var i=document.createElementNS("http://www.w3.org/2000/svg","line");this.setSvgStyle(i,e);var r=e.x+e.width*e.pivotX,o=e.y+e.height*e.pivotY,n={id:e.id,x1:e.startPoint.x+e.x,y1:e.startPoint.y+e.y,x2:e.endPoint.x+e.x,y2:e.endPoint.y+e.y,stroke:e.stroke,"stroke-width":e.strokeWidth.toString(),opacity:e.opacity.toString(),transform:"rotate("+e.angle+" "+r+" "+o+")",visibility:e.visible?"visible":"hidden"};e.class&&(n.class=e.class),D(i,n),t.appendChild(i)},t.prototype.drawPath=function(t,e,i,r,o,n){var a=Math.floor(10*Math.random()+1);t.id,a.toString();var s=[];s=T(s=z(e.data));var h;o&&(h=o.getElementById(e.id+"_groupElement_shadow"))&&h.parentNode.removeChild(h);var d;o&&(d=o.getElementById(e.id)),d&&!r||(d=document.createElementNS("http://www.w3.org/2000/svg","path"),t.appendChild(d)),this.renderPath(d,e,s);var c={id:e.id,transform:"rotate("+e.angle+","+(e.x+e.width*e.pivotX)+","+(e.y+e.height*e.pivotY)+")translate("+e.x+","+e.y+")",visibility:e.visible?"visible":"hidden",opacity:e.opacity,"aria-label":n||""};e.class&&(c.class=e.class),D(d,c),this.setSvgStyle(d,e,i)},t.prototype.renderPath=function(t,e,i){var r,o,n,a,s,h,d,c,l=i,u="";for(s=0,h=0,c=0,d=l.length;c<d;++c){var f=l[c],y=f.command;switch("x1"in f&&(r=f.x1),"x2"in f&&(n=f.x2),"y1"in f&&(o=f.y1),"y2"in f&&(a=f.y2),"x"in f&&(s=f.x),"y"in f&&(h=f.y),y){case"M":u=u+"M"+s.toString()+","+h.toString()+" ";break;case"L":u=u+"L"+s.toString()+","+h.toString()+" ";break;case"C":u=u+"C"+r.toString()+","+o.toString()+","+n.toString()+","+a.toString()+",",u+=s.toString()+","+h.toString()+" ";break;case"Q":u=u+"Q"+r.toString()+","+o.toString()+","+s.toString()+","+h.toString()+" ";break;case"A":u=u+"A"+f.r1.toString()+","+f.r2.toString()+","+f.angle.toString()+",",u+=f.largeArc.toString()+","+f.sweep+","+s.toString()+","+h.toString()+" ";break;case"Z":case"z":u+="Z "}}t.setAttribute("d",u)},t}();t.Thickness=V,t.Margin=H,t.Stop=q,t.Gradient=Q,t.LinearGradient=Z,t.RadialGradient=G,t.ShapeStyle=J,t.StrokeStyle=K,t.TextStyle=$,t.Canvas=dt,t.Container=nt,t.DrawingElement=rt,t.ImageElement=lt,t.PathElement=ft,t.TextElement=st,t.Matrix=it,t.identityMatrix=i,t.transformPointByMatrix=r,t.transformPointsByMatrix=function(t,e){for(var i=[],o=0,n=e;o<n.length;o++){var a=n[o];i.push(r(t,a))}return i},t.rotateMatrix=o,t.scaleMatrix=function(e,r,o,s,h){void 0===s&&(s=0),void 0===h&&(h=0),n(e,function(e,r,o,n){var s=i();return s.type=o||n?t.MatrixTypes.Scaling|t.MatrixTypes.Translation:t.MatrixTypes.Scaling,a(s,e,0,0,r,o-e*o,n-r*n),s}(r,o,s,h))},t.translateMatrix=function(e,i,r){return e.type&t.MatrixTypes.Identity?(e.type=t.MatrixTypes.Translation,void a(e,1,0,0,1,i,r)):e.type&t.MatrixTypes.Unknown?(e.offsetX+=i,void(e.offsetY+=r)):(e.offsetX+=i,e.offsetY+=r,void(e.type|=t.MatrixTypes.Translation))},t.multiplyMatrix=n,t.Point=gt,t.Rect=et,t.Size=tt,t.CanvasRenderer=xt,t.refreshDiagramElements=function(t,e,i){for(var r=0;r<e.length;r++)i.renderElement(e[r],t,void 0)},t.DrawingRenderer=mt,t.SvgRenderer=vt,t.setAttributeSvg=D,t.createSvgElement=_,t.createSvg=function(t,e,i){var r=document.createElementNS("http://www.w3.org/2000/svg","svg");return D(r,{id:t,width:e,height:i}),r},t.getParentSvg=function(t,e,i){return t&&t.id&&e&&"selector"===e?this.pdfViewer.adornerSvgLayer:i},t.randomId=function(){for(var t,e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",i="",r=0;r<5;r++){if("crypto"in window&&"getRandomValues"in crypto){var o=new Uint16Array(1);t=(window.msCrypto||window.crypto).getRandomValues(o)[0]%(e.length-1)}else t=Math.floor(Math.random()*e.length);0===r&&t<10?r--:i+=e.substring(t,t+1)}return i},t.cornersPointsBeforeRotation=x,t.rotateSize=m,t.getBounds=v,t.textAlignToString=w,t.wordBreakToString=b,t.bBoxText=S,t.middleElement=function(t,e){return(t+e)/2},t.whiteSpaceToString=A,t.rotatePoint=M,t.getOffset=k,t.findNearestPoint=function(t,e,i){var r;r=gt.findLength(e,t)>gt.findLength(i,t)?i:e;var o=gt.findAngle(e,i),n=gt.findAngle(r,t),a=gt.findLength(r,t),s=n+2*(o-n);return{x:r.x+a*Math.cos(s*Math.PI/180),y:r.y+a*Math.sin(s*Math.PI/180)}},t.findElementUnderMouse=function(t,e,i){return X(t.wrapper,e,i)},t.findTargetElement=X,t.intersect3=L,t.intersect2=function(t,e,i,r){var o=L(Y(t.x,t.y,e.x,e.y),Y(i.x,i.y,r.x,r.y));return o.enabled?o.intersectPt:{x:0,y:0}},t.getLineSegment=Y,t.getPoints=function(t,e,i){var r=[];i=i||0;var o={x:e.topLeft.x-i,y:e.topLeft.y},n={x:e.topRight.x+i,y:e.topRight.y},a={x:e.bottomRight.x,y:e.bottomRight.y-i},s={x:e.bottomLeft.x,y:e.bottomLeft.y+i};return r.push(o),r.push(n),r.push(a),r.push(s),r},t.getBezierDirection=function(t,e){return Math.abs(e.x-t.x)>Math.abs(e.y-t.y)?t.x<e.x?"right":"left":t.y<e.y?"bottom":"top"},t.updateStyle=function(t,e){for(var i=e.style,r=e,o=0,n=Object.keys(t);o<n.length;o++)switch(n[o]){case"fill":i.fill=t.fill,i instanceof K&&(i.fill="transparent");break;case"textOverflow":i.textOverflow=t.textOverflow;break;case"opacity":i.opacity=t.opacity;break;case"strokeColor":i.strokeColor=t.strokeColor;break;case"strokeDashArray":i.strokeDashArray=t.strokeDashArray;break;case"strokeWidth":i.strokeWidth=t.strokeWidth;break;case"bold":i.bold=t.bold;break;case"color":i.color=t.color;break;case"textWrapping":i.textWrapping=t.textWrapping;break;case"fontFamily":i.fontFamily=t.fontFamily;break;case"fontSize":i.fontSize=t.fontSize;break;case"italic":i.italic=t.italic;break;case"textAlign":i.textAlign=t.textAlign;break;case"whiteSpace":i.whiteSpace=t.whiteSpace;break;case"textDecoration":i.textDecoration=t.textDecoration}e instanceof st&&r.refreshTextElement()},t.scaleElement=I,t.contains=function(t,e,i){return t.x>=e.x-i&&t.x<=e.x+i&&t.y>=e.y-i&&t.y<=e.y+i},t.getPoint=function(t,e,n,a,s,h,d,c){var l={x:0,y:0},u=i();switch(o(u,s,h,d),c.x){case 0:switch(c.y){case 0:l=r(u,{x:t,y:e});break;case.5:l=r(u,{x:t,y:e+a/2});break;case 1:l=r(u,{x:t,y:e+a})}break;case.5:switch(c.y){case 0:l=r(u,{x:t+n/2,y:e});break;case.5:l=r(u,{x:t+n/2,y:e+a/2});break;case 1:l=r(u,{x:t+n/2,y:e+a})}break;case 1:switch(c.y){case 0:l=r(u,{x:t+n,y:e});break;case.5:l=r(u,{x:t+n,y:e+a/2});break;case 1:l=r(u,{x:t+n,y:e+a})}}return{x:l.x,y:l.y}},t.getChildNode=h,t.translatePoints=function(t,e){for(var n=[],a=0,s=e;a<s.length;a++){var h=s[a],d={x:t.offsetX-t.actualSize.width*t.pivot.x+h.x,y:t.offsetY-t.actualSize.height*t.pivot.y+h.y},c=void 0,l=t.rotateAngle+t.parentTransform;l&&o(c=i(),l,t.offsetX,t.offsetY),c&&(d=r(c,d)),n.push(d)}return n},t.measurePath=d,t.measureText=l,t.getDiagramElement=u,t.createHtmlElement=f,t.setAttributeHtml=y,t.getAdornerLayerSvg=p,t.getSelectorElement=function(t,e){var i=null,r=p(t,e);return r&&(i=r.getElementById(t+"_SelectorElement")),i},t.createMeasureElements=function(){var t="measureElement";if(window[t])window[t].usageCount+=1;else{var e=f("div",{id:"measureElement",style:"visibility:hidden ; height: 0px ; width: 0px; overflow: hidden;"}),i=f("span",{style:"display:inline-block ; line-height: normal"});e.appendChild(i);var r=void 0;r=f("img",{}),e.appendChild(r);var o=document.createElementNS("http://www.w3.org/2000/svg","svg");o.setAttribute("xlink","http://www.w3.org/1999/xlink"),e.appendChild(o);var n=document.createElementNS("http://www.w3.org/2000/svg","path");o.appendChild(n),document.createTextNode("");var a=document.createElementNS("http://www.w3.org/2000/svg","text");a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),o.appendChild(a),window[t]=e,window[t].usageCount=1,document.body.appendChild(e)}},t.measureImage=g,t.processPathData=z,t.parsePathData=P,t.getRectanglePath=C,t.pathSegmentCollection=T,t.transformPath=R,t.updatedSegment=B,t.scalePathData=O,t.splitArrayCollection=N,t.getPathString=E,t.getString=W,Object.defineProperty(t,"__esModule",{value:!0})});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@syncfusion/ej2-base")):"function"==typeof define&&define.amd?define(["exports","@syncfusion/ej2-base"],e):e(t.ej={},t.ej2Base)}(this,function(t,e){"use strict";function i(){return new it(1,0,0,1,0,0,t.MatrixTypes.Identity)}function r(e,i){var r=function(e,i,r){switch(e.type){case t.MatrixTypes.Identity:break;case t.MatrixTypes.Translation:i+=e.offsetX,r+=e.offsetY;break;case t.MatrixTypes.Scaling:i*=e.m11,r*=e.m22;break;case t.MatrixTypes.Translation|t.MatrixTypes.Scaling:i*=e.m11,i+=e.offsetX,r*=e.m22,r+=e.offsetY;break;default:var o=r*e.m21+e.offsetX,n=i*e.m12+e.offsetY;i*=e.m11,i+=o,r*=e.m22,r+=n}return{x:i,y:r}}(e,i.x,i.y);return{x:Math.round(100*r.x)/100,y:Math.round(100*r.y)/100}}function o(e,r,o,s){n(e,function(e,r,o){var n=i(),s=Math.sin(e),h=Math.cos(e),d=r*(1-h)+o*s,c=o*(1-h)-r*s;return n.type=t.MatrixTypes.Unknown,a(n,h,s,-s,h,d,c),n}(.017453292519943295*(r%=360),o||0,s||0))}function n(e,r){var o=e.type,n=r.type;if(n!==t.MatrixTypes.Identity){if(o===t.MatrixTypes.Identity)return s(e,r),void(e.type=r.type);if(n===t.MatrixTypes.Translation)return e.offsetX+=r.offsetX,e.offsetY+=r.offsetY,void(o!==t.MatrixTypes.Unknown&&(e.type|=t.MatrixTypes.Translation));if(o!==t.MatrixTypes.Translation){var h=o<<4|n;switch(h){case 34:return e.m11*=r.m11,void(e.m22*=r.m22);case 35:return e.m11*=r.m11,e.m22*=r.m22,e.offsetX=r.offsetX,e.offsetY=r.offsetY,void(e.type=t.MatrixTypes.Translation|t.MatrixTypes.Scaling);case 36:break;default:switch(h){case 50:return e.m11*=r.m11,e.m22*=r.m22,e.offsetX*=r.m11,void(e.offsetY*=r.m22);case 51:return e.m11*=r.m11,e.m22*=r.m22,e.offsetX=r.m11*e.offsetX+r.offsetX,void(e.offsetY=r.m22*e.offsetY+r.offsetY);case 52:break;default:switch(h){case 66:case 67:case 68:break;default:return}}}var d=i();return a(d,e.m11*r.m11+e.m12*r.m21,e.m11*r.m12+e.m12*r.m22,e.m21*r.m11+e.m22*r.m21,e.m21*r.m12+e.m22*r.m22,e.offsetX*r.m11+e.offsetY*r.m21+r.offsetX,e.offsetX*r.m12+e.offsetY*r.m22+r.offsetY),d.m21||d.m12?d.type=t.MatrixTypes.Unknown:((d.m11&&1!==d.m11||d.m22&&1!==d.m22)&&(d.type=t.MatrixTypes.Scaling),(d.offsetX||d.offsetY)&&(d.type|=t.MatrixTypes.Translation),(d.type&(t.MatrixTypes.Translation|t.MatrixTypes.Scaling))===t.MatrixTypes.Identity&&(d.type=t.MatrixTypes.Identity),d.type=t.MatrixTypes.Scaling|t.MatrixTypes.Translation),s(e,d),void(e.type=d.type)}var c=e.offsetX,l=e.offsetY;e.offsetX=c*r.m11+l*r.m21+r.offsetX,e.offsetY=c*r.m12+l*r.m22+r.offsetY,n!==t.MatrixTypes.Unknown?e.type=t.MatrixTypes.Translation|t.MatrixTypes.Scaling:e.type=t.MatrixTypes.Unknown}}function a(t,e,i,r,o,n,a){t.m11=e,t.m12=i,t.m21=r,t.m22=o,t.offsetX=n,t.offsetY=a}function s(t,e){t.m11=e.m11,t.m12=e.m12,t.m21=e.m21,t.m22=e.m22,t.offsetX=e.offsetX,t.offsetY=e.offsetY,t.type=e.type}function h(t){var i,r=[];if("msie"===e.Browser.info.name||"edge"===e.Browser.info.name)for(var o=0;o<t.childNodes.length;o++)1===(i=t.childNodes[o]).nodeType&&r.push(i);else r=t.children;return r}function d(t){var e="pathTable";if(window[e]||(window[e]={}),t){var i="measureElement";window[i].style.visibility="visible";var r=h(window[i].children[2])[0];r.setAttribute("d",t);var o=void 0;window[e][t]?o=window[e][t]:window[e][t]=o=r.getBBox();var n=new et(o.x,o.y,o.width,o.height);return window[i].style.visibility="hidden",n}return new et(0,0,0,0)}function c(t,e){var i,r,o=[],n=0,a=e||t.content;if("nowrap"!==t.whiteSpace&&"pre"!==t.whiteSpace)if("breakall"===t.breakWord)for(i="",i+=a[0],n=0;n<a.length;n++)if((r=S(i,t))>=t.width&&i.length>0)o[o.length]={text:i,x:0,dy:0,width:r},i="";else{(i+=a[n+1]||"").indexOf("\n")>-1&&(i=i.replace("\n",""));var s=S(i,t);Math.ceil(s)+2>=t.width&&i.length>0&&(o[o.length]={text:i,x:0,dy:0,width:s},i=""),n===a.length-1&&i.length>0&&(o[o.length]={text:i,x:0,dy:0,width:s},i="")}else o=function(t,e){var i,r,o,n,a=[],s="",h=0,d=0,c="nowrap"!==t.whiteSpace,l=(e||t.content).split("\n");for(h=0;h<l.length;h++)for(i="NoWrap"!==t.textWrapping?l[h].split(" "):l,d=0;d<i.length;d++){s+=((0!==d||1===i.length)&&c&&s.length>0?" ":"")+i[d];var u=S(r=s+(i[d+1]||""),t);Math.floor(u)>t.width-2&&s.length>0?(a[a.length]={text:s,x:0,dy:0,width:r===s?u:s===n?o:S(s,t)},s=""):d===i.length-1&&(a[a.length]={text:s,x:0,dy:0,width:u},s=""),n=r,o=u}return a}(t,e);else o[o.length]={text:a,x:0,dy:0,width:S(a,t)};return o}function l(t,e,i,r,o){var n,a,s=new tt(0,0),h=function(t,e){var i={fill:t.style.fill,stroke:t.style.strokeColor,angle:t.rotateAngle+t.parentTransform,pivotX:t.pivot.x,pivotY:t.pivot.y,strokeWidth:t.style.strokeWidth,dashArray:t.style.strokeDashArray,opacity:t.style.opacity,visible:t.visible,id:t.id,width:e||t.actualSize.width,height:t.actualSize.height,x:t.offsetX-t.actualSize.width*t.pivot.x+.5,y:t.offsetY-t.actualSize.height*t.pivot.y+.5};return i.fontSize=t.style.fontSize,i.fontFamily=t.style.fontFamily,i.textOverflow=t.style.textOverflow,i.textDecoration=t.style.textDecoration,i.doWrap=t.doWrap,i.whiteSpace=A(t.style.whiteSpace,t.style.textWrapping),i.content=t.content,i.textWrapping=t.style.textWrapping,i.breakWord=b(t.style.textWrapping),i.textAlign=w(t.style.textAlign),i.color=t.style.color,i.italic=t.style.italic,i.bold=t.style.bold,i.dashArray="",i.strokeWidth=0,i.fill="",i}(t,r);return t.childNodes=n=c(h,o),t.wrapBounds=a=function(t,e){var i,r,o={x:0,width:0},n=0;for(n=0;n<e.length;n++)r=i=e[n].width,i="left"===t.textAlign?0:"center"===t.textAlign?i>t.width&&("Ellipsis"===t.textOverflow||"Clip"===t.textOverflow)?0:-i/2:"right"===t.textAlign?-i:e.length>1?0:-i/2,e[n].dy=1.2*t.fontSize,e[n].x=i,o?(o.x=Math.min(o.x,i),o.width=Math.max(o.width,r)):o={x:i,width:r};return o}(h,n),s.width=a.width,t.wrapBounds.width>=r&&"Wrap"!==h.textOverflow&&(s.width=r),s.height=n.length*t.style.fontSize*1.2,s}function u(t,e){var i;return e&&(i=document.getElementById(e)),i?i.querySelector("#"+t):document.getElementById(t)}function f(t,i){var r=e.createElement(t);return y(r,i),r}function y(t,e){for(var i=Object.keys(e),r=0;r<i.length;r++)t.setAttribute(i[r],e[i[r]])}function p(t,e){var i=null,r=u(t+e+"_diagramAdornerLayer");return r&&(i=r.getElementsByClassName("e-adorner-layer"+e)[0]),i}function g(t,e){var i="measureElement";window[i].style.visibility="visible";var r=window[i].children[1];r.setAttribute("src",t);var o=r.getBoundingClientRect(),n=o.width,a=o.height;return e=new tt(n,a),window[i].style.visibility="hidden",e}function x(t){new et;var e=t.offsetY-t.actualSize.height*t.pivot.y,i=t.offsetY+t.actualSize.height*(1-t.pivot.y),r=t.offsetX-t.actualSize.width*t.pivot.x,o=t.offsetX+t.actualSize.width*(1-t.pivot.x),n={x:r,y:e},a={x:o,y:e},s={x:r,y:i},h={x:o,y:i};return et.toBounds([n,a,s,h])}function m(t,e){var n=i();o(n,e,0,0);var a=r(n,{x:0,y:0}),s=r(n,{x:t.width,y:0}),h=r(n,{x:0,y:t.height}),d=r(n,{x:t.width,y:t.height}),c=Math.min(a.x,s.x,h.x,d.x),l=Math.min(a.y,s.y,h.y,d.y),u=Math.max(a.x,s.x,h.x,d.x),f=Math.max(a.y,s.y,h.y,d.y);return new tt(u-c,f-l)}function v(t){var e,n=new et,a=(e=x(t)).middleLeft,s=e.topCenter,h=e.bottomCenter,d=e.middleRight,c=e.topLeft,l=e.topRight,u=e.bottomLeft,f=e.bottomRight;if(t.corners={topLeft:c,topCenter:s,topRight:l,middleLeft:a,middleRight:d,bottomLeft:u,bottomCenter:h,bottomRight:f},0!==t.rotateAngle||0!==t.parentTransform){var y=i();o(y,t.rotateAngle+t.parentTransform,t.offsetX,t.offsetY),t.corners.topLeft=c=r(y,c),t.corners.topCenter=s=r(y,s),t.corners.topRight=l=r(y,l),t.corners.middleLeft=a=r(y,a),t.corners.middleRight=d=r(y,d),t.corners.bottomLeft=u=r(y,u),t.corners.bottomCenter=h=r(y,h),t.corners.bottomRight=f=r(y,f)}return n=et.toBounds([c,l,u,f]),t.corners.left=n.left,t.corners.right=n.right,t.corners.top=n.top,t.corners.bottom=n.bottom,t.corners.center=n.center,t.corners.width=n.width,t.corners.height=n.height,n}function w(t){var e="";switch(t){case"Center":e="center";break;case"Left":e="left";break;case"Right":e="right"}return e}function b(t){var e="";switch(t){case"Wrap":e="breakall";break;case"NoWrap":e="keepall";break;case"WrapWithOverflow":e="normal";break;case"LineThrough":e="line-through"}return e}function S(t,e){var i="measureElement";window[i].style.visibility="visible";var r=h(window[i].children[2])[1];r.textContent=t,r.setAttribute("style","font-size:"+e.fontSize+"px; font-family:"+e.fontFamily+";font-weight:"+(e.bold?"bold":"normal"));var o=r.getBBox().width;return window[i].style.visibility="hidden",o}function A(t,e){if("NoWrap"===e&&"PreserveAll"===t)return"pre";var i="";switch(t){case"CollapseAll":i="nowrap";break;case"CollapseSpace":i="pre-line";break;case"PreserveAll":i="pre-wrap"}return i}function M(t,e,n,a){if(0!==t){var s=i();return o(s,t,e,n),r(s,a)}return a}function k(t,e){return{x:t.x+e.desiredSize.width*e.pivot.x,y:t.y+e.desiredSize.height*e.pivot.y}}function z(t){var e,i=[],r=P(t);if(r.length>0)for(var o=0;o<r.length;o++){var n=r[o],a="";switch((a=n[0]).toLowerCase()){case"m":for(e=1;e<n.length;e++)i.push({command:a,x:n[e],y:n[e+1]}),e+=1,"m"===a?a="l":"M"===a&&(a="L");break;case"l":case"t":for(e=1;e<n.length;e++)i.push({command:a,x:n[e],y:n[e+1]}),e+=1;break;case"h":for(e=1;e<n.length;e++)i.push({command:a,x:n[e]});break;case"v":for(e=1;e<n.length;e++)i.push({command:a,y:n[e]});break;case"z":i.push({command:a});break;case"c":for(e=1;e<n.length;e++)i.push({command:a,x1:n[e],y1:n[e+1],x2:n[e+2],y2:n[e+3],x:n[e+4],y:n[e+5]}),e+=5;break;case"s":for(e=1;e<n.length;e++)i.push({command:a,x2:n[e],y2:n[e+1],x:n[e+2],y:n[e+3]}),e+=3;break;case"q":for(e=1;e<n.length;e++)i.push({command:a,x1:n[e],y1:n[e+1],x:n[e+2],y:n[e+3]}),e+=3;break;case"a":for(e=1;e<n.length;e++)i.push({command:a,r1:n[e],r2:n[e+1],angle:n[e+2],largeArc:n[e+3],sweep:n[e+4],x:n[e+5],y:n[e+6]}),e+=6}}return i}function P(t){var e=/([a-z]+)|([+-]?(?:\d+\.?\d*|\.\d+))/gi,i=[],r=[],o={};e.lastIndex=0;var n=!1;for(o=e.exec(t);o;)"e"===o[1]?n=!0:o[1]?("zm"===o[1].toLowerCase()?(i.length&&r.push(i),r.push(["Z"]),i=[o[1].substring(1,2)]):(i.length&&r.push(i),i=[o[1]]),n=!1):(i.length||(i=[]),n||i.push(Number(o[2])),n=!1),o=e.exec(t);return i.length&&r.push(i),r}function C(t,e,i){var r,o,n="",a=[{x:0+t,y:0},{x:0+i-t,y:0},{x:0+i,y:0+t},{x:0+i,y:0+e-t},{x:0+i-t,y:0+e},{x:0+t,y:0+e},{x:0,y:0+e-t},{x:0,y:0+t}],s=[{x:0+i,y:0},{x:0+i,y:0+e},{x:0,y:0+e},{x:0,y:0}],h=0;n="M"+a[0].x+" "+a[0].y;var d;for(d=0;d<a.length;d+=2)n+="L"+(r=a[d+1]).x+" "+r.y,o=a[d+2]||a[0],n+="Q"+s[h].x+" "+s[h].y+" "+o.x+" "+o.y,h++;return n}function T(t){var e,i,r,o,n,a,s,h,d,c,l=[];for(s=0,h=0,c=0,d=t.length;c<d;++c){var u=t[c],f="";f=u.command,"y1"in u&&(o=u.y1),"y2"in u&&(a=u.y2),"x1"in u&&(r=u.x1),"x2"in u&&(n=u.x2),"x"in u&&(s=u.x),"y"in u&&(h=u.y);var y=l[l.length-1];switch(f){case"M":l.push({command:"M",x:s,y:h});break;case"L":l.push({command:"L",x0:e,y0:i,x:s,y:h});break;case"H":l.push({command:"L",x0:e,y0:i,x:s,y:i});break;case"V":l.push({command:"L",x0:e,y0:i,x:e,y:h});break;case"C":l.push({command:"C",x0:e,y0:i,x1:r,y1:o,x2:n,y2:a,x:s,y:h});break;case"S":if(y){var p=void 0,g={x:2*e-(p="C"===y.command||"S"===y.command?{x:y.x2,y:y.y2}:{x:e,y:i}).x,y:2*i-p.y};l.push({command:"C",x0:e,y0:i,x1:g.x,y1:g.y,x2:n,y2:a,x:s,y:h})}break;case"Q":l.push({command:"Q",x0:e,y0:i,x1:r,y1:o,x:s,y:h});break;case"T":if(y){p=void 0,g={x:2*e-(p="Q"===y.command?{x:y.x1,y:y.y1}:{x:e,y:i}).x,y:2*i-p.y};l.push({command:"Q",x0:e,y0:i,x1:g.x,y1:g.y,x:s,y:h})}break;case"A":var x=u;x.command="A",l.push(x);break;case"Z":case"z":l.push({command:"Z"}),s=e,h=i}e=s,i=h}return l}function R(t,e,i,r,o,n,a,s){var h,d,c,l,u,f,y,p,g;for(u=0,f=0,p=0,y=t.length;p<y;++p){var x=t[p],m=x.command;"x"in x&&(u=x.x),"y"in x&&(f=x.y),"y1"in x&&(d=x.y1),"y2"in x&&(l=x.y2),"x1"in x&&(h=x.x1),"x2"in x&&(c=x.x2),r?(void 0!==u&&(u=O(u,e,o,a)),void 0!==f&&(f=O(f,i,n,s)),void 0!==h&&(h=O(h,e,o,a)),void 0!==d&&(d=O(d,i,n,s)),void 0!==c&&(c=O(c,e,o,a)),void 0!==l&&(l=O(l,i,n,s))):(void 0!==u&&(u=Number((u+e).toFixed(2))),void 0!==f&&(f=Number((f+i).toFixed(2))),void 0!==h&&(h=Number((h+e).toFixed(2))),void 0!==d&&(d=Number((d+i).toFixed(2))),void 0!==c&&(c=Number((c+e).toFixed(2))),void 0!==l&&(l=Number((l+i).toFixed(2))));(g=B(x,m,{x:u,y:f,x1:h,y1:d,x2:c,y2:l,r1:x.r1,r2:x.r2},r,e,i))&&(t[p]=g)}return E(t)}function B(t,e,i,r,o,n){switch(e){case"M":case"L":t.x=i.x,t.y=i.y;break;case"H":t.x=i.x;break;case"V":t.y=i.y;break;case"C":t.x=i.x,t.y=i.y,t.x1=i.x1,t.y1=i.y1,t.x2=i.x2,t.y2=i.y2;break;case"S":t.x=i.x,t.y=i.y,t.x2=i.x2,t.y2=i.y2;break;case"Q":t.x=i.x,t.y=i.y,t.x1=i.x1,t.y1=i.y1;break;case"T":t.x=i.x,t.y=i.y;break;case"A":var a=i.r1,s=i.r2;r&&(i.r1=a*=o,i.r2=s*=n),t.x=i.x,t.y=i.y,t.r1=i.r1,t.r2=i.r2;break;case"z":case"Z":t={command:"Z"}}return t}function O(t,e,i,r){return t!==i?t=r!==i?t*e-(Number(i)*e-Number(i))+(r-Number(i)):Number(t)*e-(Number(i)*e-Number(i)):r!==i&&(t=r),Number(t.toFixed(2))}function N(t){var e,i,r,o,n,a,s,h,d,c;for(s=0,h=0,c=0,d=t.length;c<d;++c){var l=t[c],u=l.command;if(/[MLHVCSQTA]/.test(u))"x"in l&&(l.x=s=l.x),"y"in l&&(l.y=h=l.y);else{"x1"in l&&(l.x1=r=s+l.x1),"x2"in l&&(l.x2=n=s+l.x2),"y1"in l&&(l.y1=o=h+l.y1),"y2"in l&&(l.y2=a=h+l.y2),"x"in l&&(l.x=s+=l.x),"y"in l&&(l.y=h+=l.y);var f=void 0;switch(u){case"m":case"M":f={command:"M",x:s,y:h};break;case"l":case"L":f={command:"L",x:s,y:h};break;case"h":case"H":f={command:"H",x:s};break;case"v":case"V":f={command:"V",y:h};break;case"c":case"C":f={command:"C",x:s,y:h,x1:r,y1:o,x2:n,y2:a};break;case"s":case"S":f={command:"S",x:s,y:h,x2:n,y2:a};break;case"q":case"Q":f={command:"Q",x:s,y:h,x1:r,y1:o};break;case"t":case"T":f={command:"T",x:s,y:h};break;case"a":case"A":(f={command:"A",x:s,y:h}).r1=l.r1,f.r2=l.r2,f.angle=l.angle,f.largeArc=l.largeArc,f.sweep=l.sweep;break;case"z":case"Z":f={command:"Z"},s=e,h=i,f=t[c]}f&&(t[c]=f)}"M"!==u&&"m"!==u||(e=s,i=h)}return t}function E(t){var e,i="";for(e=0;e<t.length;e++)i+=0===e?W(t[e]):" "+W(t[e]);return i}function W(t){var e="";switch(t.command){case"Z":case"z":e=t.command;break;case"M":case"m":case"L":case"l":e=t.command+" "+t.x+" "+t.y;break;case"C":case"c":e=t.command+" "+t.x1+" "+t.y1+" "+t.x2+" "+t.y2+" "+t.x+" "+t.y;break;case"Q":case"q":e=t.command+" "+t.x1+" "+t.y1+" "+t.x+" "+t.y;break;case"A":case"a":var i=t.command,r=t.angle,o=t.largeArc?"1":"0",n=t.sweep?"1":"0";e=i+" "+t.r1+" "+t.r2+" "+r+" "+o+" "+n+" "+t.x+" "+t.y;break;case"H":case"h":e=t.command+" "+t.x;break;case"V":case"v":e=t.command+" "+t.y;break;case"S":case"s":e=t.command+" "+t.x2+" "+t.y2+" "+t.x+" "+t.y;break;case"T":case"t":e=t.command+" "+t.x+" "+t.y}return e}function D(t,e){for(var i=Object.keys(e),r=0;r<i.length;r++)t.setAttribute(i[r],e[i[r]])}function _(t,e){var i=document.createElementNS("http://www.w3.org/2000/svg",t);return D(i,e),i}function X(t,e,i){for(var r=t.children.length-1;r>=0;r--){var o=t.children[r];if(o&&o.bounds.containsPoint(e,0)){if(o instanceof nt){var n=this.findTargetElement(o,e);if(n)return n}if(o.bounds.containsPoint(e,0))return o}}return t.bounds.containsPoint(e,i)&&"none"!==t.style.fill?t:null}function L(t,e){var i={x:0,y:0},r=t,o=e,n=(o.y2-o.y1)*(r.x2-r.x1)-(o.x2-o.x1)*(r.y2-r.y1),a=(o.x2-o.x1)*(r.y1-o.y1)-(o.y2-o.y1)*(r.x1-o.x1),s=(r.x2-r.x1)*(r.y1-o.y1)-(r.y2-r.y1)*(r.x1-o.x1);if(0===n)return{enabled:!1,intersectPt:i};var h=a/n,d=s/n;return h>=0&&h<=1&&d>=0&&d<=1?(i.x=r.x1+h*(r.x2-r.x1),i.y=r.y1+h*(r.y2-r.y1),{enabled:!0,intersectPt:i}):{enabled:!1,intersectPt:i}}function Y(t,e,i,r){return{x1:Number(t)||0,y1:Number(e)||0,x2:Number(i)||0,y2:Number(r)||0}}function I(t,e,n,a){if(void 0!==t.width&&void 0!==t.height&&(t.width*=e,t.height*=n),t instanceof nt){var s=i(),h=a.width||a.actualSize.width,d=a.height||a.actualSize.height;if(void 0!==h&&void 0!==d){var c=a.offsetX-h*a.pivot.x,l=a.offsetY-d*a.pivot.y,u={x:c+h*a.pivot.x,y:l+d*a.pivot.y};u=M(a.rotateAngle,a.offsetX,a.offsetY,u),o(s,-a.rotateAngle,u.x,u.y),o(s,a.rotateAngle,u.x,u.y);for(var f=0,y=t.children;f<y.length;f++){var p=y[f];if(void 0!==p.width&&void 0!==p.height){var g=r(s,{x:p.offsetX,y:p.offsetY});p.offsetX=g.x,p.offsetY=g.y,I(p,e,n,a)}}}}}var j=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),F=function(t,e,i,r){var o,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(n<3?o(a):n>3?o(e,i,a):o(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a},U=function(t){switch(t.type){case"Linear":return Z;case"Radial":return G;default:return Z}},V=function(){return function(t,e,i,r){this.left=t,this.right=e,this.top=i,this.bottom=r}}(),H=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return j(i,t),F([e.Property(0)],i.prototype,"left",void 0),F([e.Property(0)],i.prototype,"right",void 0),F([e.Property(0)],i.prototype,"top",void 0),F([e.Property(0)],i.prototype,"bottom",void 0),i}(e.ChildProperty),q=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return j(i,t),i.prototype.getClassName=function(){return"Stop"},F([e.Property("")],i.prototype,"color",void 0),F([e.Property(0)],i.prototype,"offset",void 0),F([e.Property(1)],i.prototype,"opacity",void 0),i}(e.ChildProperty),Q=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return j(i,t),F([e.Collection([],q)],i.prototype,"stops",void 0),F([e.Property("None")],i.prototype,"type",void 0),F([e.Property("")],i.prototype,"id",void 0),i}(e.ChildProperty),Z=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return j(i,t),F([e.Property(0)],i.prototype,"x1",void 0),F([e.Property(0)],i.prototype,"x2",void 0),F([e.Property(0)],i.prototype,"y1",void 0),F([e.Property(0)],i.prototype,"y2",void 0),i}(Q),G=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return j(i,t),F([e.Property(0)],i.prototype,"cx",void 0),F([e.Property(0)],i.prototype,"cy",void 0),F([e.Property(0)],i.prototype,"fx",void 0),F([e.Property(0)],i.prototype,"fy",void 0),F([e.Property(50)],i.prototype,"r",void 0),i}(Q),J=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return j(i,t),F([e.Property("white")],i.prototype,"fill",void 0),F([e.Property("black")],i.prototype,"strokeColor",void 0),F([e.Property("")],i.prototype,"strokeDashArray",void 0),F([e.Property(1)],i.prototype,"strokeWidth",void 0),F([e.Property(1)],i.prototype,"opacity",void 0),F([e.ComplexFactory(U)],i.prototype,"gradient",void 0),i}(e.ChildProperty),K=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return j(i,t),F([e.Property("transparent")],i.prototype,"fill",void 0),i}(J),$=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return j(i,t),F([e.Property("black")],i.prototype,"color",void 0),F([e.Property("Arial")],i.prototype,"fontFamily",void 0),F([e.Property(12)],i.prototype,"fontSize",void 0),F([e.Property(!1)],i.prototype,"italic",void 0),F([e.Property(!1)],i.prototype,"bold",void 0),F([e.Property("CollapseSpace")],i.prototype,"whiteSpace",void 0),F([e.Property("WrapWithOverflow")],i.prototype,"textWrapping",void 0),F([e.Property("Center")],i.prototype,"textAlign",void 0),F([e.Property("None")],i.prototype,"textDecoration",void 0),F([e.Property("Wrap")],i.prototype,"textOverflow",void 0),F([e.Property("transparent")],i.prototype,"fill",void 0),i}(J);!function(t){t[t.Self=1]="Self",t[t.Parent=2]="Parent"}(t.RotateTransform||(t.RotateTransform={})),function(t){t[t.None=0]="None",t[t.ElementIsPort=2]="ElementIsPort",t[t.ElementIsGroup=4]="ElementIsGroup"}(t.ElementAction||(t.ElementAction={})),function(t){t[t.None=1]="None",t[t.Select=2]="Select",t[t.Delete=4]="Delete",t[t.Drag=8]="Drag",t[t.DragSourceEnd=16]="DragSourceEnd",t[t.DragTargetEnd=32]="DragTargetEnd",t[t.DragSegmentThumb=64]="DragSegmentThumb",t[t.AllowDrop=128]="AllowDrop",t[t.Bridging=256]="Bridging",t[t.BridgeObstacle=512]="BridgeObstacle",t[t.InheritBridging=1024]="InheritBridging",t[t.PointerEvents=2048]="PointerEvents",t[t.Tooltip=4096]="Tooltip",t[t.InheritTooltip=8192]="InheritTooltip",t[t.Interaction=4218]="Interaction",t[t.ReadOnly=16384]="ReadOnly",t[t.Default=11838]="Default"}(t.ConnectorConstraints||(t.ConnectorConstraints={})),function(t){t[t.Rotate=2]="Rotate",t[t.ConnectorSource=4]="ConnectorSource",t[t.ConnectorTarget=8]="ConnectorTarget",t[t.ResizeNorthEast=16]="ResizeNorthEast",t[t.ResizeEast=32]="ResizeEast",t[t.ResizeSouthEast=64]="ResizeSouthEast",t[t.ResizeSouth=128]="ResizeSouth",t[t.ResizeSouthWest=256]="ResizeSouthWest",t[t.ResizeWest=512]="ResizeWest",t[t.ResizeNorthWest=1024]="ResizeNorthWest",t[t.ResizeNorth=2048]="ResizeNorth",t[t.Default=4094]="Default"}(t.ThumbsConstraints||(t.ThumbsConstraints={})),function(t){t[t.None=1]="None",t[t.ConnectorSourceThumb=2]="ConnectorSourceThumb",t[t.ConnectorTargetThumb=4]="ConnectorTargetThumb",t[t.ResizeSouthEast=8]="ResizeSouthEast",t[t.ResizeSouthWest=16]="ResizeSouthWest",t[t.ResizeNorthEast=32]="ResizeNorthEast",t[t.ResizeNorthWest=64]="ResizeNorthWest",t[t.ResizeEast=128]="ResizeEast",t[t.ResizeWest=256]="ResizeWest",t[t.ResizeSouth=512]="ResizeSouth",t[t.ResizeNorth=1024]="ResizeNorth",t[t.Rotate=2048]="Rotate",t[t.UserHandle=4096]="UserHandle",t[t.ToolTip=8192]="ToolTip",t[t.ResizeAll=2046]="ResizeAll",t[t.All=16382]="All"}(t.SelectorConstraints||(t.SelectorConstraints={})),function(t){t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Three=3]="Three",t[t.Four=4]="Four",t[t.Five=5]="Five"}(t.NoOfSegments||(t.NoOfSegments={}));var tt=function(){function t(t,e){this.width=t,this.height=e}return t.prototype.clone=function(){return new t(this.width,this.height)},t}(),et=function(){function t(t,e,i,r){this.x=Number.MAX_VALUE,this.y=Number.MAX_VALUE,this.width=0,this.height=0,void 0===t||void 0===e?(t=e=Number.MAX_VALUE,i=r=0):(void 0===i&&(i=0),void 0===r&&(r=0)),this.x=t,this.y=e,this.width=i,this.height=r}return Object.defineProperty(t.prototype,"left",{get:function(){return this.x},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return this.x+this.width},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return this.y},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return this.y+this.height},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"topLeft",{get:function(){return{x:this.left,y:this.top}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"topRight",{get:function(){return{x:this.right,y:this.top}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottomLeft",{get:function(){return{x:this.left,y:this.bottom}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottomRight",{get:function(){return{x:this.right,y:this.bottom}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"middleLeft",{get:function(){return{x:this.left,y:this.y+this.height/2}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"middleRight",{get:function(){return{x:this.right,y:this.y+this.height/2}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"topCenter",{get:function(){return{x:this.x+this.width/2,y:this.top}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottomCenter",{get:function(){return{x:this.x+this.width/2,y:this.bottom}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"center",{get:function(){return{x:this.x+this.width/2,y:this.y+this.height/2}},enumerable:!0,configurable:!0}),t.prototype.equals=function(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height},t.prototype.uniteRect=function(t){var e=Math.max(Number.NaN===this.right||this.x===Number.MAX_VALUE?t.right:this.right,t.right),i=Math.max(Number.NaN===this.bottom||this.y===Number.MAX_VALUE?t.bottom:this.bottom,t.bottom);return this.x=Math.min(this.left,t.left),this.y=Math.min(this.top,t.top),this.width=e-this.x,this.height=i-this.y,this},t.prototype.unitePoint=function(t){if(this.x===Number.MAX_VALUE)return this.x=t.x,void(this.y=t.y);var e=Math.min(this.left,t.x),i=Math.min(this.top,t.y),r=Math.max(this.right,t.x),o=Math.max(this.bottom,t.y);this.x=e,this.y=i,this.width=r-this.x,this.height=o-this.y},t.prototype.intersection=function(e){if(this.intersects(e)){var i=Math.max(this.left,e.left),r=Math.max(this.top,e.top);return new t(i,r,Math.min(this.right,e.right)-i,Math.min(this.bottom,e.bottom)-r)}return t.empty},t.prototype.Inflate=function(t){return this.x-=t,this.y-=t,this.width+=2*t,this.height+=2*t,this},t.prototype.intersects=function(t){return!(this.right<t.left||this.left>t.right||this.top>t.bottom||this.bottom<t.top)},t.prototype.containsRect=function(t){return this.left<=t.left&&this.right>=t.right&&this.top<=t.top&&this.bottom>=t.bottom},t.prototype.containsPoint=function(t,e){return void 0===e&&(e=0),this.left-e<=t.x&&this.right+e>=t.x&&this.top-e<=t.y&&this.bottom+e>=t.y},t.prototype.toPoints=function(){var t=[];return t.push(this.topLeft),t.push(this.topRight),t.push(this.bottomLeft),t.push(this.bottomRight),t},t.toBounds=function(e){for(var i=new t,r=0,o=e;r<o.length;r++){var n=o[r];i.unitePoint(n)}return i},t.prototype.scale=function(t,e){this.width*=t,this.height*=e},t.prototype.offset=function(t,e){this.x+=t,this.y+=e},t.empty=new t(Number.MAX_VALUE,Number.MIN_VALUE,0,0),t}();!function(t){t[t.Identity=0]="Identity",t[t.Translation=1]="Translation",t[t.Scaling=2]="Scaling",t[t.Unknown=4]="Unknown"}(t.MatrixTypes||(t.MatrixTypes={}));var it=function(){return function(t,e,i,r,o,n,a){this.m11=t,this.m12=e,this.m21=i,this.m22=r,this.offsetX=o,this.offsetY=n,this.type=a}}(),rt=function(){function e(){this.pivot={x:.5,y:.5},this.rotateValue={x:0,y:0,angle:0},this.isDirt=!0,this.offsetX=0,this.offsetY=0,this.cornerRadius=0,this.minHeight=void 0,this.minWidth=void 0,this.maxWidth=void 0,this.maxHeight=void 0,this.width=void 0,this.height=void 0,this.horizontalAlignment="Auto",this.verticalAlignment="Auto",this.visible=!0,this.rotateAngle=0,this.margin={left:0,right:0,top:0,bottom:0},this.relativeMode="Point",this.transform=t.RotateTransform.Self|t.RotateTransform.Parent,this.style={fill:"white",strokeColor:"black",opacity:1,strokeWidth:1},this.desiredSize=new tt,this.actualSize=new tt,this.parentTransform=0,this.preventContainer=!1,this.bounds=new et(0,0,0,0),this.staticSize=!1,this.isRectElement=!1,this.isCalculateDesiredSize=!0,this.elementActions=t.ElementAction.None,this.position=void 0,this.unitMode=void 0,this.float=!1,this.floatingBounds=void 0}return e.prototype.setOffsetWithRespectToBounds=function(t,e,i){this.unitMode=i,this.position={x:t,y:e}},e.prototype.getAbsolutePosition=function(t){if(void 0!==this.position)return"Absolute"===this.unitMode?this.position:{x:this.position.x*t.width,y:this.position.y*t.height}},Object.defineProperty(e.prototype,"outerBounds",{get:function(){return this.floatingBounds||this.bounds},set:function(t){this.floatingBounds=t},enumerable:!0,configurable:!0}),e.prototype.measure=function(t){var e=void 0!==this.width?this.width:(t.width||0)-this.margin.left-this.margin.right,i=void 0!==this.height?this.height:(t.height||0)-this.margin.top-this.margin.bottom;return this.desiredSize=new tt(e,i),this.isCalculateDesiredSize&&(this.desiredSize=this.validateDesiredSize(this.desiredSize,t)),this.desiredSize},e.prototype.arrange=function(t){return this.actualSize=t,this.updateBounds(),this.actualSize},e.prototype.updateBounds=function(){this.bounds=v(this)},e.prototype.validateDesiredSize=function(t,e){return!this.isRectElement||this.width||this.minWidth||this.maxWidth||(t.width=50),!this.isRectElement||this.height||this.minHeight||this.maxHeight||(t.height=50),(void 0===t||void 0!==this.width&&void 0!==this.height)&&((t=t||new tt).width=void 0===this.width?(e.width||0)-this.margin.left-this.margin.right:this.width,t.height=void 0===this.height?(e.height||0)-this.margin.top-this.margin.bottom:this.height),void 0!==this.minWidth&&(t.width=Math.max(t.width,this.minWidth)),void 0!==this.minHeight&&(t.height=Math.max(t.height,this.minHeight)),void 0!==this.maxWidth&&(t.width=Math.min(t.width,this.maxWidth)),void 0!==this.maxHeight&&(t.height=Math.min(t.height,this.maxHeight)),t},e}(),ot=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),nt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.desiredBounds=void 0,e.measureChildren=!0,e.prevRotateAngle=0,e}return ot(e,t),e.prototype.hasChildren=function(){return void 0!==this.children&&this.children.length>0},e.prototype.measure=function(t){this.desiredBounds=void 0;var i,r,o=void 0;if(this.hasChildren()){for(var n=0;n<this.children.length;n++){"Stretch"!==(i=this.children[n]).horizontalAlignment||t.width||(t.width=i.bounds.width),"Stretch"!==i.verticalAlignment||t.height||(t.height=i.bounds.height);var a="Stretch"===i.horizontalAlignment||"Stretch"===i.verticalAlignment;(this.measureChildren||a||i instanceof e&&void 0!==i.measureChildren)&&i.measure(t),r=this.GetChildrenBounds(i),"Stretch"!==i.horizontalAlignment&&"Stretch"!==i.verticalAlignment?void 0===this.desiredBounds?this.desiredBounds=r:this.desiredBounds.uniteRect(r):!this.actualSize||this.actualSize.width||this.actualSize.height||i.preventContainer||"Stretch"!==i.horizontalAlignment||"Stretch"!==i.verticalAlignment||(void 0===this.desiredBounds?this.desiredBounds=i.bounds:this.desiredBounds.uniteRect(i.bounds))}if(void 0!==this.desiredBounds&&0!==this.rotateAngle){var s={x:this.desiredBounds.x+this.desiredBounds.width*this.pivot.x,y:this.desiredBounds.y+this.desiredBounds.height*this.pivot.y},h=M(this.rotateAngle,void 0,void 0,s);this.desiredBounds.x=h.x-this.desiredBounds.width*this.pivot.x,this.desiredBounds.y=h.y-this.desiredBounds.height*this.pivot.y}this.desiredBounds&&(o=new tt(this.desiredBounds.width,this.desiredBounds.height))}return o=this.validateDesiredSize(o,t),this.stretchChildren(o),this.desiredSize=o,o},e.prototype.arrange=function(t){var i,r=this.desiredBounds;if(r){this.offsetX,this.offsetY;if(this.offsetX=r.x+r.width*this.pivot.x,this.offsetY=r.y+r.height*this.pivot.y,this.hasChildren())for(var o=0;o<this.children.length;o++){var n=!1;"Stretch"===(i=this.children[o]).horizontalAlignment&&(i.offsetX=this.offsetX,i.parentTransform=this.parentTransform+this.rotateAngle,n=!0),"Stretch"===i.verticalAlignment&&(i.offsetY=this.offsetY,i.parentTransform=this.parentTransform+this.rotateAngle,n=!0),(n||this.measureChildren||i instanceof e&&void 0!==i.measureChildren)&&i.arrange(i.desiredSize)}}return this.actualSize=t,this.updateBounds(),this.prevRotateAngle=this.rotateAngle,t},e.prototype.stretchChildren=function(t){if(this.hasChildren())for(var i=0,r=this.children;i<r.length;i++){var o=r[i];"Stretch"!==o.horizontalAlignment&&void 0!==o.desiredSize.width||(o.desiredSize.width=t.width-o.margin.left-o.margin.right),"Stretch"!==o.verticalAlignment&&void 0!==o.desiredSize.height||(o.desiredSize.height=t.height-o.margin.top-o.margin.bottom),o instanceof e&&o.stretchChildren(o.desiredSize)}},e.prototype.findChildOffsetFromCenter=function(t,e){var i=k({x:e.x-t.desiredSize.width/2,y:e.y-t.desiredSize.height/2},t);i=M(t.rotateAngle,e.x,e.y,i),i=M(this.rotateAngle+this.parentTransform,this.offsetX,this.offsetY,i),t.offsetX=i.x,t.offsetY=i.y},e.prototype.GetChildrenBounds=function(t){var e;e=t.desiredSize.clone();t.rotateAngle,this.rotateAngle;var i=t.offsetX,r=t.offsetY,o=i-e.width*t.pivot.x,n=r-e.height*t.pivot.y,a=o+e.width,s=n+e.height,h={x:o,y:n},d={x:a,y:n},c={x:o,y:s},l={x:a,y:s};return h=M(t.rotateAngle,t.offsetX,t.offsetY,h),d=M(t.rotateAngle,t.offsetX,t.offsetY,d),c=M(t.rotateAngle,t.offsetX,t.offsetY,c),l=M(t.rotateAngle,t.offsetX,t.offsetY,l),0!==this.rotateAngle&&(h=M(-this.rotateAngle,void 0,void 0,h),d=M(-this.rotateAngle,void 0,void 0,d),c=M(-this.rotateAngle,void 0,void 0,c),l=M(-this.rotateAngle,void 0,void 0,l)),et.toBounds([h,d,c,l])},e}(rt),at=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),st=function(t){function e(){var e=t.call(this)||this;return e.textContent="",e.canMeasure=!0,e.canConsiderBounds=!0,e.doWrap=!0,e.textNodes=[],e.style={color:"black",fill:"transparent",strokeColor:"black",strokeWidth:1,fontFamily:"Arial",fontSize:12,whiteSpace:"CollapseSpace",textWrapping:"WrapWithOverflow",textAlign:"Center",italic:!1,bold:!1,textDecoration:"None",strokeDashArray:"",opacity:1,textOverflow:"Wrap"},e.style.fill="transparent",e.style.strokeColor="transparent",e}return at(e,t),Object.defineProperty(e.prototype,"content",{get:function(){return this.textContent},set:function(t){this.textContent!==t&&(this.textContent=t,this.isDirt=!0,this.doWrap=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"childNodes",{get:function(){return this.textNodes},set:function(t){this.textNodes=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wrapBounds",{get:function(){return this.textWrapBounds},set:function(t){this.textWrapBounds=t},enumerable:!0,configurable:!0}),e.prototype.refreshTextElement=function(){this.isDirt=!0},e.prototype.measure=function(t){var e;return e=this.isDirt&&this.canMeasure?l(this,this.style,this.content,this.width||t.width):this.desiredSize,void 0===this.width||void 0===this.height?this.desiredSize=new tt(e.width,e.height):this.desiredSize=new tt(this.width,this.height),this.desiredSize=this.validateDesiredSize(this.desiredSize,t),this.desiredSize},e.prototype.arrange=function(t){return(t.width!==this.actualSize.width||t.height!==this.actualSize.height||this.isDirt)&&(this.doWrap=!0),this.actualSize=t,this.updateBounds(),this.isDirt=!1,this.actualSize},e}(rt),ht=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),dt=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.measureChildren=void 0,t}return ht(n,e),n.prototype.measure=function(t){var i=void 0,r=void 0;if(this.hasChildren()){for(var o=0,n=this.children;o<n.length;o++){var a=n[o];if(a instanceof st){if(!a.canMeasure)break;t.width=t.width||this.maxWidth||this.minWidth,a.measure(t)}else a instanceof st||a.measure(t);var s=a.desiredSize.clone();0!==a.rotateAngle&&(s=m(s,a.rotateAngle));var h=s.width+a.margin.right,d=s.height+a.margin.bottom,c=new et(a.margin.left,a.margin.top,h,d);if(a.float){if(void 0!==a.getAbsolutePosition(s))continue}a instanceof st&&!(a instanceof st&&a.canConsiderBounds)||(void 0===r?r=c:r.uniteRect(c))}if(r){var l=0,u=0;l=Math.max(r.left,0),u=Math.max(r.top,0),i=new tt(r.width+l,r.height+u)}}return i=e.prototype.validateDesiredSize.call(this,i,t),e.prototype.stretchChildren.call(this,i),this.desiredSize=i,i},n.prototype.arrange=function(n){if(this.outerBounds=new et,this.hasChildren()){var a=void 0,s=void 0;a=this.offsetY-n.height*this.pivot.y,s=this.offsetX-n.width*this.pivot.x;for(var h=0,d=this.children;h<d.length;h++){var c=d[h];if(0!=(c.transform&t.RotateTransform.Parent)){c.parentTransform=this.parentTransform+this.rotateAngle;var l=c.desiredSize.clone(),u=void 0,f={x:0,y:0},y=s,p=a;if("Point"===c.relativeMode){var g=c.getAbsolutePosition(n);void 0!==g&&(y+=g.x,p+=g.y)}if(u="Object"===c.relativeMode?this.alignChildBasedOnParent(c,l,n,y,p):this.alignChildBasedOnaPoint(c,y,p),f={x:u.x+l.width/2,y:u.y+l.height/2},c.rotateValue){var x={x:this.offsetX+(c.rotateValue.x||0),y:this.offsetY+(c.rotateValue.y||0)},m={x:this.offsetX,y:this.offsetY},v=0|c.rotateValue.angle,w=i();o(w,v,m.x,m.y),f=r(w,x)}e.prototype.findChildOffsetFromCenter.call(this,c,f)}"Stretch"===c.horizontalAlignment||"Stretch"===c.verticalAlignment?c.arrange(n):c instanceof st&&c.canMeasure?(c.arrange(c.desiredSize),this.outerBounds.uniteRect(c.outerBounds)):c instanceof st||(c.arrange(c.desiredSize),this.outerBounds.uniteRect(c.outerBounds))}}return this.actualSize=n,this.updateBounds(),this.outerBounds.uniteRect(this.bounds),n},n.prototype.alignChildBasedOnParent=function(t,e,i,r,o){switch(t.horizontalAlignment){case"Auto":case"Left":r+=t.margin.left;break;case"Right":r+=i.width-e.width-t.margin.right;break;case"Stretch":case"Center":r+=i.width/2-e.width/2}switch(t.verticalAlignment){case"Auto":case"Top":o+=t.margin.top;break;case"Bottom":o+=i.height-e.height-t.margin.bottom;break;case"Stretch":case"Center":o+=i.height/2-e.height/2}return{x:r,y:o}},n.prototype.alignChildBasedOnaPoint=function(t,e,i){switch(e+=t.margin.left-t.margin.right,i+=t.margin.top-t.margin.bottom,t.horizontalAlignment){case"Auto":case"Left":e=e;break;case"Stretch":case"Center":e-=t.desiredSize.width*t.pivot.x;break;case"Right":e-=t.desiredSize.width}switch(t.verticalAlignment){case"Auto":case"Top":i=i;break;case"Stretch":case"Center":i-=t.desiredSize.height*t.pivot.y;break;case"Bottom":i-=t.desiredSize.height}return{x:e,y:i}},n}(nt),ct=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),lt=function(t){function e(){var e=t.call(this)||this;return e.imageSource="",e.imageScale="None",e.imageAlign="None",e.stretch="Stretch",e}return ct(e,t),Object.defineProperty(e.prototype,"source",{get:function(){return this.imageSource},set:function(t){this.imageSource=t,this.isDirt=!0},enumerable:!0,configurable:!0}),e.prototype.measure=function(t){return this.isDirt&&("Stretch"!==this.stretch||void 0===this.width&&void 0===this.height)&&(this.contentSize=g(this.source,this.contentSize),this.isDirt=!1),void 0!==this.width&&void 0!==this.height?(this.desiredSize=new tt(this.width,this.height),this.contentSize=this.desiredSize):this.desiredSize=this.contentSize,this.desiredSize=this.validateDesiredSize(this.desiredSize,t),this.desiredSize},e.prototype.arrange=function(t){return this.actualSize=new tt(this.desiredSize.width,this.desiredSize.height),this.updateBounds(),this.actualSize},e}(rt),ut=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),ft=function(t){function e(){var e=t.call(this)||this;return e.pathData="",e.transformPath=!0,e.absolutePath="",e.canMeasurePath=!1,e.absoluteBounds=new et,e}return ut(e,t),Object.defineProperty(e.prototype,"data",{get:function(){return this.pathData},set:function(t){this.pathData!==t&&(this.pathData=t,this.isDirt=!0)},enumerable:!0,configurable:!0}),e.prototype.measure=function(t){return this.staticSize&&void 0!==this.width&&void 0!==this.height?this.absoluteBounds=new et(this.offsetX-this.width*this.pivot.x,this.offsetY-this.height*this.pivot.y,this.width,this.height):(!this.isDirt||!this.transformPath&&void 0!==this.width&&void 0!==this.height||this.absoluteBounds&&0!==this.absoluteBounds.height)&&!this.canMeasurePath||(this.absoluteBounds=d(this.data?this.data:"")),void 0===this.width?this.desiredSize=new tt(this.absoluteBounds.width,this.height||this.absoluteBounds.height):void 0===this.height?this.desiredSize=new tt(this.width||this.absoluteBounds.width,this.absoluteBounds.height):this.desiredSize=new tt(this.width,this.height),this.desiredSize=this.validateDesiredSize(this.desiredSize,t),this.canMeasurePath=!1,this.desiredSize},e.prototype.arrange=function(t){return(this.isDirt||this.actualSize.width!==t.width||this.actualSize.height!==t.height)&&(this.isDirt=!0,this.absolutePath=this.updatePath(this.data,this.absoluteBounds,t),this.staticSize||(this.points=null)),this.actualSize=this.desiredSize,this.updateBounds(),this.isDirt=!1,this.actualSize},e.prototype.updatePath=function(t,e,i){var r=!1,o="",n=-e.x,a=-e.y,s=[];return i.width===e.width&&i.height===e.height||(n=i.width/Number(e.width?e.width:1),a=i.height/Number(e.height?e.height:1),r=!0),s=z(t),s=N(s),o=(r||this.isDirt)&&this.transformPath?R(s,n,a,r,e.x,e.y,0,0):E(s),r=!1,o},e}(rt),yt=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),pt=function(t,e,i,r){var o,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(n<3?o(a):n>3?o(e,i,a):o(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a},gt=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return yt(i,t),i.equals=function(t,e){return t===e||!(!t||!e)&&(!t||!e||t.x===e.x&&t.y===e.y)},i.isEmptyPoint=function(t){return!t.x||!t.y},i.transform=function(t,e,i){var r={x:0,y:0};return r.x=Math.round(100*(t.x+i*Math.cos(e*Math.PI/180)))/100,r.y=Math.round(100*(t.y+i*Math.sin(e*Math.PI/180)))/100,r},i.findLength=function(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},i.findAngle=function(t,e){var i=Math.atan2(e.y-t.y,e.x-t.x);return i=180*i/Math.PI,(i%=360)<0&&(i+=360),i},i.distancePoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},i.getLengthFromListOfPoints=function(t){for(var e=0,i=0;i<t.length-1;i++)e+=this.distancePoints(t[i],t[i+1]);return e},i.adjustPoint=function(t,e,i,r){var o,n=i?{x:t.x,y:t.y}:{x:e.x,y:e.y};return t.x===e.x?t.y<e.y&&i||t.y>e.y&&!i?n.y+=r:n.y-=r:t.y===e.y?t.x<e.x&&i||t.x>e.x&&!i?n.x+=r:n.x-=r:i?(o=this.findAngle(t,e),n=this.transform(t,o,r)):(o=this.findAngle(e,t),n=this.transform(e,o,r)),n},i.direction=function(t,e){return Math.abs(e.x-t.x)>Math.abs(e.y-t.y)?t.x<e.x?"Right":"Left":t.y<e.y?"Bottom":"Top"},i.prototype.getClassName=function(){return"Point"},pt([e.Property(0)],i.prototype,"x",void 0),pt([e.Property(0)],i.prototype,"y",void 0),i}(e.ChildProperty),xt=function(){function t(){}return t.getContext=function(t){return t.getContext("2d")},t.prototype.setStyle=function(e,i){var r=t.getContext(e);"none"===i.fill&&(i.fill="transparent"),"none"===i.stroke&&(i.stroke="transparent"),r.strokeStyle=i.stroke,r.lineWidth=i.strokeWidth,0===i.strokeWidth&&(r.strokeStyle="transparent"),r.globalAlpha=i.opacity;var o=[];i.dashArray&&(o=this.parseDashArray(i.dashArray)),r.setLineDash(o),r.fillStyle=i.fill},t.prototype.rotateContext=function(e,i,r,o){var n=t.getContext(e);n.translate(r,o),n.rotate(i*Math.PI/180),n.translate(-r,-o)},t.prototype.setFontStyle=function(e,i){var r=t.getContext(e),o="";i.italic&&(o+="italic "),i.bold&&(o+="bold "),o+=i.fontSize+"px ",o+=i.fontFamily,r.font=o},t.prototype.parseDashArray=function(t){for(var e=[],i=-1!==t.indexOf(" ")?" ":",",r=0,o=t.split(i);r<o.length;r++){var n=o[r];e.push(Number(n))}return e},t.prototype.drawRectangle=function(e,i){if(!0===i.visible)if(i.cornerRadius)i.data=C(i.cornerRadius,i.height,i.width),this.drawPath(e,i);else{var r=t.getContext(e);r.save(),r.beginPath();i.cornerRadius;var o=i.x+i.width*i.pivotX,n=i.y+i.height*i.pivotY;this.rotateContext(e,i.angle,o,n),this.setStyle(e,i),r.rect(i.x,i.y,i.width,i.height),r.fillRect(i.x,i.y,i.width,i.height),r.fill(),r.stroke(),r.closePath(),r.restore()}},t.prototype.drawPath=function(e,i){var r=[];r=T(r=z(i.data));var o=t.getContext(e);o.save(),o.beginPath();var n=i.y+i.height*i.pivotY,a=i.x+i.width*i.pivotX;this.rotateContext(e,i.angle,a,n),this.setStyle(e,i),o.translate(i.x,i.y),this.renderPath(e,i,r),o.fill(),o.translate(-i.x,-i.y),o.stroke(),o.restore()},t.prototype.renderPath=function(e,i,r){if(!0===i.visible){var o,n=t.getContext(e),a=void 0,s=void 0,h=void 0,d=void 0,c=void 0,l=void 0,u=void 0,f=void 0,y=void 0,p=r;for(u=0,f=0,y=0,o=p.length;y<o;++y){var g=p[y],x=g.command;switch("x1"in g&&(h=g.x1),"x2"in g&&(c=g.x2),"y1"in g&&(d=g.y1),"y2"in g&&(l=g.y2),"x"in g&&(u=g.x),"y"in g&&(f=g.y),x){case"M":n.moveTo(u,f),g.x=u,g.y=f;break;case"L":n.lineTo(u,f),g.x=u,g.y=f;break;case"C":n.bezierCurveTo(h,d,c,l,u,f),g.x=u,g.y=f,g.x1=h,g.y1=d,g.x2=c,g.y2=l;break;case"Q":n.quadraticCurveTo(h,d,u,f),g.x=u,g.y=f,g.x1=h,g.y1=d;break;case"A":var m=a,v=s,w=g.r1,b=g.r2,S=g.angle*(Math.PI/180),A=g.largeArc,M=g.sweep,k=u,z=f,P={x:Math.cos(S)*(m-k)/2+Math.sin(S)*(v-z)/2,y:-Math.sin(S)*(m-k)/2+Math.cos(S)*(v-z)/2},C=Math.pow(P.x,2)/Math.pow(w,2)+Math.pow(P.y,2)/Math.pow(b,2);C>1&&(w*=Math.sqrt(C),b*=Math.sqrt(C));var T=Math.pow(b,2)*Math.pow(P.x,2),R=(A===M?-1:1)*Math.sqrt((Math.pow(w,2)*Math.pow(b,2)-Math.pow(w,2)*Math.pow(P.y,2)-T)/(Math.pow(w,2)*Math.pow(P.y,2)+Math.pow(b,2)*Math.pow(P.x,2)));isNaN(R)&&(R=0);var B=R*w*P.y/b,O=R*-b*P.x/w,N={x:(m+k)/2+Math.cos(S)*B-Math.sin(S)*O,y:(v+z)/2+Math.sin(S)*B+Math.cos(S)*O},E=this.a([1,0],[(P.x-B)/w,(P.y-O)/b]),W=[(P.x-B)/w,(P.y-O)/b],D=[(-P.x-B)/w,(-P.y-O)/b],_=this.a(W,D);if(this.r(W,D)<=-1&&(_=Math.PI),this.r(W,D)>=1&&(_=0),g.centp=N,g.xAxisRotation=S,g.rx=w,g.ry=b,g.a1=E,g.ad=_,g.sweep=M,null!=n){var X=w>b?w:b,L=w>b?1:w/b,Y=w>b?b/w:1;n.save(),n.translate(N.x,N.y),n.rotate(S),n.scale(L,Y),n.arc(0,0,X,E,E+_,!M),n.scale(1/L,1/Y),n.rotate(-S),n.translate(-N.x,-N.y),n.restore()}break;case"Z":case"z":n.closePath(),u=a,f=s}a=u,s=f}}},t.prototype.drawText=function(e,i){if(i.content&&!0===i.visible){var r=t.getContext(e);r.save(),this.setStyle(e,i);var o=i.x+i.width*i.pivotX,n=i.y+i.height*i.pivotY;this.rotateContext(e,i.angle,o,n),this.setFontStyle(e,i);var a=0,s=[];s=i.childNodes;var h=i.wrapBounds;if(r.fillStyle=i.color,h){var d=this.labelAlign(i,h,s);for(a=0;a<s.length;a++){var c=s[a],l=d.x+c.x-h.x,u=d.y+c.dy*a+.8*i.fontSize;if(r.fillText(c.text,l,u),"Underline"===i.textDecoration||"Overline"===i.textDecoration||"LineThrough"===i.textDecoration){var f=l,y=void 0,p=l+r.measureText(c.text).width,g=void 0;switch(i.textDecoration){case"Underline":y=u+2,g=u+2;break;case"Overline":y=d.y+c.dy*a,g=d.y+c.dy*a;break;case"LineThrough":y=(u+d.y+c.dy*a)/2+2,g=(u+d.y+c.dy*a)/2+2}r.beginPath(),r.moveTo(f,y),r.lineTo(p,g),r.strokeStyle=i.color,r.lineWidth=.08*i.fontSize,r.globalAlpha=i.opacity,r.stroke()}}}r.restore()}},t.prototype.m=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2))},t.prototype.r=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(this.m(t)*this.m(e))},t.prototype.a=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(this.r(t,e))},t.prototype.getMeetOffset=function(t,e,i){var r=Math.max(e,i),o=Math.min(e,i);switch(t){case"min":return 0;case"mid":return(r-o)/2;case"max":return r-o;default:return 0}},t.prototype.getSliceOffset=function(t,e,i,r){switch(t){case"min":return 0;case"mid":return(e-i)/2*r/e;case"max":return(e-i)*r/e;default:return 0}},t.prototype.image=function(t,e,i,r,o,n,a){t.beginPath();var s=e.width,h=e.height,d=o,c=n,l=0,u=0;if(t.globalAlpha=a.opacity,a&&"None"!==a.alignment){var y=a.alignment.toLowerCase().substr(1,3),p=a.alignment.toLowerCase().substr(5,3);if("Slice"===a.scale){var g=function(){l=d,u=h*d/s},x=function(){l=s*c/h,u=c};d>c?(g(),c>u&&x()):d===c?s>h?x():g():(x(),d>l&&g());var m=this.getSliceOffset(y,l,d,s),v=this.getSliceOffset(p,u,c,h),w=s-m,b=h-v,S=l-m*(l/s),A=u-v*(u/h),M=f("canvas",{width:o.toString(),height:n.toString()});M.getContext("2d").drawImage(e,m,v,w,b,0,0,S,A),t.drawImage(M,i,r,o,n)}else if("Meet"===a.scale){var k=h/s,z=c/d;l=z>k?d:c/k,u=z>k?d*k:c,i+=this.getMeetOffset(y,l,d),r+=this.getMeetOffset(p,u,c),t.drawImage(e,0,0,s,h,i,r,l,u)}else t.drawImage(e,i,r,o,n)}else t.drawImage(e,i,r,o,n);t.closePath()},t.prototype.loadImage=function(t,e,i,r,o){this.rotateContext(i,e.angle,r,o);var n=new Image;n.src=e.source,this.image(t,n,e.x,e.y,e.width,e.height,e)},t.prototype.drawImage=function(e,i,r,o){var n=this;if(i.visible){var a=t.getContext(e);a.save();var s=i.x+i.width*i.pivotX,h=i.y+i.height*i.pivotY,d=new Image;d.src=i.source;var c=a.canvas.id.split("_");c[c.length-1];o?d.onload=function(){n.loadImage(a,i,e,s,h)}:this.loadImage(a,i,e,s,h),a.restore()}},t.prototype.labelAlign=function(t,e,i){var r=new tt(e.width,i.length*(1.2*t.fontSize)),o={x:0,y:0},n=t.x,a=t.y,s=.5*t.width,h=.5*t.height;return"left"===t.textAlign?s=0:"center"===t.textAlign?s=e.width>t.width&&("Ellipsis"===t.textOverflow||"Clip"===t.textOverflow)?0:.5*t.width:"right"===t.textAlign&&(s=1*t.width),o.x=n+s+(e?e.x:0),o.y=a+h-r.height/2,o},t}(),mt=function(){function t(t,e){this.renderer=null,this.isSvgMode=!0,this.diagramId=t,this.element=u(this.diagramId),this.isSvgMode=e,this.renderer=new xt}return t.prototype.renderElement=function(t,e,i,r,o,n,a,s){t instanceof nt?this.renderContainer(t,e,i,r,o,n,a,s):t instanceof lt?this.renderImageElement(t,e,r,o,a):t instanceof ft?this.renderPathElement(t,e,r,o,a):t instanceof st?this.renderTextElement(t,e,r,o,a):this.renderRect(t,e,r,o)},t.prototype.renderImageElement=function(t,e,i,r,o){var n=this.getBaseAttributes(t,i);n.cornerRadius=0,this.renderer.drawRectangle(e,n);var a,s,h,d;if("Stretch"===t.stretch)a=t.actualSize.width,s=t.actualSize.height;else{var c=t.contentSize.width,l=t.contentSize.height,u=n.width/c,f=n.height/l,y=void 0;switch(t.stretch){case"Meet":a=c*(y=Math.min(u,f)),s=l*y,n.x+=Math.abs(n.width-a)/2,n.y+=Math.abs(n.height-s)/2;break;case"Slice":u=n.width/c,f=n.height/l,a=c*(y=Math.max(u,f)),s=l*y,h=n.width/a*c,d=n.height/s*l;break;case"None":a=c,s=l}}n.width=a,n.height=s,n.sourceWidth=h,n.sourceHeight=d,n.source=t.source,n.alignment=t.imageAlign,n.scale=t.imageScale,this.renderer.drawImage(e,n,r,o)},t.prototype.renderPathElement=function(t,e,i,r,o){var n=this.getBaseAttributes(t,i);n.data=t.absolutePath,n.data=t.absolutePath;t.id;this.isSvgMode||(n.x=n.x,n.y=n.y),this.renderer.drawPath(e,n)},t.prototype.renderTextElement=function(t,e,i,r,o){var n=this.getBaseAttributes(t,i);n.cornerRadius=0,n.whiteSpace=A(t.style.whiteSpace,t.style.textWrapping),n.content=t.content,n.breakWord=b(t.style.textWrapping),n.textAlign=w(t.style.textAlign),n.color=t.style.color,n.italic=t.style.italic,n.bold=t.style.bold,n.fontSize=t.style.fontSize,n.fontFamily=t.style.fontFamily,n.textOverflow=t.style.textOverflow,n.textDecoration=t.style.textDecoration,n.doWrap=t.doWrap,n.wrapBounds=t.wrapBounds,n.childNodes=t.childNodes,n.dashArray="",n.strokeWidth=0,n.fill=t.style.fill;t.content?t.content:t.id;this.renderer.drawRectangle(e,n),this.renderer.drawText(e,n)},t.prototype.renderContainer=function(t,e,i,r,o,n,a,s){if(r={tx:0,ty:0,scale:1},this.diagramId&&(o=o),this.renderRect(t,e,r,o),t.hasChildren())for(var h=0,d=t.children;h<d.length;h++){var c=d[h];this.renderElement(c,e,i,r,o,!0,a,s)}},t.prototype.renderRect=function(t,e,i,r){var o=this.getBaseAttributes(t,i);o.cornerRadius=t.cornerRadius||0;t.id;this.renderer.drawRectangle(e,o)},t.prototype.getBaseAttributes=function(t,e){var i={width:t.actualSize.width,height:t.actualSize.height,x:t.offsetX-t.actualSize.width*t.pivot.x+.5,y:t.offsetY-t.actualSize.height*t.pivot.y+.5,fill:t.style.fill,stroke:t.style.strokeColor,angle:t.rotateAngle+t.parentTransform,pivotX:t.pivot.x,pivotY:t.pivot.y,strokeWidth:t.style.strokeWidth,dashArray:t.style.strokeDashArray||"",opacity:t.style.opacity,visible:t.visible,id:t.id,gradient:t.style.gradient};return e&&(i.x+=e.tx,i.y+=e.ty),i},t}(),vt=function(){function t(){}return t.prototype.parseDashArray=function(t){return[]},t.prototype.drawRectangle=function(t,e,i,r,o,n,a){var s;s=e.id===t.id?e.id+"_container":e.id;var h;h&&!o||(h=document.createElementNS("http://www.w3.org/2000/svg","rect"),t.appendChild(h));var d={id:s,x:e.x.toString(),y:e.y.toString(),width:e.width.toString(),height:e.height.toString(),visibility:e.visible?"visible":"hidden",transform:"rotate("+e.angle+","+(e.x+e.width*e.pivotX)+","+(e.y+e.height*e.pivotY)+")",rx:e.cornerRadius||0,ry:e.cornerRadius||0,opacity:e.opacity,"aria-label":a||""};e.class&&(d.class=e.class);a||(d["pointer-events"]="none"),D(h,d),this.setSvgStyle(h,e,i)},t.prototype.updateSelectionRegion=function(t,e){var i;i=t.parentNode.getElementById(e.id);var r;r={id:e.id,x:e.x.toString(),y:e.y.toString(),width:e.width.toString(),height:e.height.toString(),transform:"rotate("+e.angle+","+(e.x+e.width*e.pivotX)+","+(e.y+e.height*e.pivotY)+")",class:"e-diagram-selected-region"},i||(i=document.createElementNS("http://www.w3.org/2000/svg","rect"),t.appendChild(i)),this.setSvgStyle(i,e),D(i,r)},t.prototype.createGElement=function(t,e){return _(t,e)},t.prototype.drawCircle=function(t,e,i,r){var o=document.createElementNS("http://www.w3.org/2000/svg","circle");this.setSvgStyle(o,e);var n=e.class||"";i||(n+=" e-disabled");var a={id:e.id,cx:e.centerX,cy:e.centerY,r:e.radius,visibility:e.visible?"visible":"hidden",class:n,"aria-label":r?r["aria-label"]:""};o.style.display=e.visible?"block":"none",D(o,a),t.appendChild(o)},t.prototype.setSvgStyle=function(t,e,i){if(e.canApplyStyle||void 0===e.canApplyStyle){"none"===e.fill&&(e.fill="transparent"),"none"===e.stroke&&(e.stroke="transparent");var r=[],o=void 0;if(void 0!==e.dashArray){r=(new xt).parseDashArray(e.dashArray)}o=e.fill,e.stroke&&t.setAttribute("stroke",e.stroke),void 0!==e.strokeWidth&&null!==e.strokeWidth&&t.setAttribute("stroke-width",e.strokeWidth.toString()),r&&t.setAttribute("stroke-dasharray",r.toString()),o&&t.setAttribute("fill",o)}},t.prototype.svgLabelAlign=function(t,e,i){var r=new tt(e.width,i.length*(1.2*t.fontSize)),o={x:0,y:0},n=.5*t.width,a=.5*t.height;return"left"===t.textAlign?n=0:"center"===t.textAlign?n=e.width>t.width&&("Ellipsis"===t.textOverflow||"Clip"===t.textOverflow)?0:.5*t.width:"right"===t.textAlign&&(n=1*t.width),o.x=0+n+(e?e.x:0),o.y=1.2+a-r.height/2,o},t.prototype.drawLine=function(t,e){var i=document.createElementNS("http://www.w3.org/2000/svg","line");this.setSvgStyle(i,e);var r=e.x+e.width*e.pivotX,o=e.y+e.height*e.pivotY,n={id:e.id,x1:e.startPoint.x+e.x,y1:e.startPoint.y+e.y,x2:e.endPoint.x+e.x,y2:e.endPoint.y+e.y,stroke:e.stroke,"stroke-width":e.strokeWidth.toString(),opacity:e.opacity.toString(),transform:"rotate("+e.angle+" "+r+" "+o+")",visibility:e.visible?"visible":"hidden"};e.class&&(n.class=e.class),D(i,n),t.appendChild(i)},t.prototype.drawPath=function(t,e,i,r,o,n){var a=Math.floor(10*Math.random()+1);t.id,a.toString();var s=[];s=T(s=z(e.data));var h;o&&(h=o.getElementById(e.id+"_groupElement_shadow"))&&h.parentNode.removeChild(h);var d;o&&(d=o.getElementById(e.id)),d&&!r||(d=document.createElementNS("http://www.w3.org/2000/svg","path"),t.appendChild(d)),this.renderPath(d,e,s);var c={id:e.id,transform:"rotate("+e.angle+","+(e.x+e.width*e.pivotX)+","+(e.y+e.height*e.pivotY)+")translate("+e.x+","+e.y+")",visibility:e.visible?"visible":"hidden",opacity:e.opacity,"aria-label":n||""};e.class&&(c.class=e.class),D(d,c),this.setSvgStyle(d,e,i)},t.prototype.renderPath=function(t,e,i){var r,o,n,a,s,h,d,c,l=i,u="";for(s=0,h=0,c=0,d=l.length;c<d;++c){var f=l[c],y=f.command;switch("x1"in f&&(r=f.x1),"x2"in f&&(n=f.x2),"y1"in f&&(o=f.y1),"y2"in f&&(a=f.y2),"x"in f&&(s=f.x),"y"in f&&(h=f.y),y){case"M":u=u+"M"+s.toString()+","+h.toString()+" ";break;case"L":u=u+"L"+s.toString()+","+h.toString()+" ";break;case"C":u=u+"C"+r.toString()+","+o.toString()+","+n.toString()+","+a.toString()+",",u+=s.toString()+","+h.toString()+" ";break;case"Q":u=u+"Q"+r.toString()+","+o.toString()+","+s.toString()+","+h.toString()+" ";break;case"A":u=u+"A"+f.r1.toString()+","+f.r2.toString()+","+f.angle.toString()+",",u+=f.largeArc.toString()+","+f.sweep+","+s.toString()+","+h.toString()+" ";break;case"Z":case"z":u+="Z "}}t.setAttribute("d",u)},t}();t.Thickness=V,t.Margin=H,t.Stop=q,t.Gradient=Q,t.LinearGradient=Z,t.RadialGradient=G,t.ShapeStyle=J,t.StrokeStyle=K,t.TextStyle=$,t.Canvas=dt,t.Container=nt,t.DrawingElement=rt,t.ImageElement=lt,t.PathElement=ft,t.TextElement=st,t.Matrix=it,t.identityMatrix=i,t.transformPointByMatrix=r,t.transformPointsByMatrix=function(t,e){for(var i=[],o=0,n=e;o<n.length;o++){var a=n[o];i.push(r(t,a))}return i},t.rotateMatrix=o,t.scaleMatrix=function(e,r,o,s,h){void 0===s&&(s=0),void 0===h&&(h=0),n(e,function(e,r,o,n){var s=i();return s.type=o||n?t.MatrixTypes.Scaling|t.MatrixTypes.Translation:t.MatrixTypes.Scaling,a(s,e,0,0,r,o-e*o,n-r*n),s}(r,o,s,h))},t.translateMatrix=function(e,i,r){return e.type&t.MatrixTypes.Identity?(e.type=t.MatrixTypes.Translation,void a(e,1,0,0,1,i,r)):e.type&t.MatrixTypes.Unknown?(e.offsetX+=i,void(e.offsetY+=r)):(e.offsetX+=i,e.offsetY+=r,void(e.type|=t.MatrixTypes.Translation))},t.multiplyMatrix=n,t.Point=gt,t.Rect=et,t.Size=tt,t.CanvasRenderer=xt,t.refreshDiagramElements=function(t,e,i){for(var r=0;r<e.length;r++)i.renderElement(e[r],t,void 0)},t.DrawingRenderer=mt,t.SvgRenderer=vt,t.setAttributeSvg=D,t.createSvgElement=_,t.createSvg=function(t,e,i){var r=document.createElementNS("http://www.w3.org/2000/svg","svg");return D(r,{id:t,width:e,height:i}),r},t.getParentSvg=function(t,e,i){return t&&t.id&&e&&"selector"===e?this.pdfViewer.adornerSvgLayer:i},t.randomId=function(){for(var t,e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",i="",r=0;r<5;r++){if("crypto"in window&&"getRandomValues"in crypto){var o=new Uint16Array(1);t=(window.msCrypto||window.crypto).getRandomValues(o)[0]%(e.length-1)}else t=Math.floor(Math.random()*e.length);0===r&&t<10?r--:i+=e.substring(t,t+1)}return i},t.cornersPointsBeforeRotation=x,t.rotateSize=m,t.getBounds=v,t.textAlignToString=w,t.wordBreakToString=b,t.bBoxText=S,t.middleElement=function(t,e){return(t+e)/2},t.whiteSpaceToString=A,t.rotatePoint=M,t.getOffset=k,t.findNearestPoint=function(t,e,i){var r;r=gt.findLength(e,t)>gt.findLength(i,t)?i:e;var o=gt.findAngle(e,i),n=gt.findAngle(r,t),a=gt.findLength(r,t),s=n+2*(o-n);return{x:r.x+a*Math.cos(s*Math.PI/180),y:r.y+a*Math.sin(s*Math.PI/180)}},t.findElementUnderMouse=function(t,e,i){return X(t.wrapper,e,i)},t.findTargetElement=X,t.intersect3=L,t.intersect2=function(t,e,i,r){var o=L(Y(t.x,t.y,e.x,e.y),Y(i.x,i.y,r.x,r.y));return o.enabled?o.intersectPt:{x:0,y:0}},t.getLineSegment=Y,t.getPoints=function(t,e,i){var r=[];i=i||0;var o={x:e.topLeft.x-i,y:e.topLeft.y},n={x:e.topRight.x+i,y:e.topRight.y},a={x:e.bottomRight.x,y:e.bottomRight.y-i},s={x:e.bottomLeft.x,y:e.bottomLeft.y+i};return r.push(o),r.push(n),r.push(a),r.push(s),r},t.getBezierDirection=function(t,e){return Math.abs(e.x-t.x)>Math.abs(e.y-t.y)?t.x<e.x?"right":"left":t.y<e.y?"bottom":"top"},t.updateStyle=function(t,e){for(var i=e.style,r=e,o=0,n=Object.keys(t);o<n.length;o++)switch(n[o]){case"fill":i.fill=t.fill,i instanceof K&&(i.fill="transparent");break;case"textOverflow":i.textOverflow=t.textOverflow;break;case"opacity":i.opacity=t.opacity;break;case"strokeColor":i.strokeColor=t.strokeColor;break;case"strokeDashArray":i.strokeDashArray=t.strokeDashArray;break;case"strokeWidth":i.strokeWidth=t.strokeWidth;break;case"bold":i.bold=t.bold;break;case"color":i.color=t.color;break;case"textWrapping":i.textWrapping=t.textWrapping;break;case"fontFamily":i.fontFamily=t.fontFamily;break;case"fontSize":i.fontSize=t.fontSize;break;case"italic":i.italic=t.italic;break;case"textAlign":i.textAlign=t.textAlign;break;case"whiteSpace":i.whiteSpace=t.whiteSpace;break;case"textDecoration":i.textDecoration=t.textDecoration}e instanceof st&&r.refreshTextElement()},t.scaleElement=I,t.contains=function(t,e,i){return t.x>=e.x-i&&t.x<=e.x+i&&t.y>=e.y-i&&t.y<=e.y+i},t.getPoint=function(t,e,n,a,s,h,d,c){var l={x:0,y:0},u=i();switch(o(u,s,h,d),c.x){case 0:switch(c.y){case 0:l=r(u,{x:t,y:e});break;case.5:l=r(u,{x:t,y:e+a/2});break;case 1:l=r(u,{x:t,y:e+a})}break;case.5:switch(c.y){case 0:l=r(u,{x:t+n/2,y:e});break;case.5:l=r(u,{x:t+n/2,y:e+a/2});break;case 1:l=r(u,{x:t+n/2,y:e+a})}break;case 1:switch(c.y){case 0:l=r(u,{x:t+n,y:e});break;case.5:l=r(u,{x:t+n,y:e+a/2});break;case 1:l=r(u,{x:t+n,y:e+a})}}return{x:l.x,y:l.y}},t.getChildNode=h,t.translatePoints=function(t,e){for(var n=[],a=0,s=e;a<s.length;a++){var h=s[a],d={x:t.offsetX-t.actualSize.width*t.pivot.x+h.x,y:t.offsetY-t.actualSize.height*t.pivot.y+h.y},c=void 0,l=t.rotateAngle+t.parentTransform;l&&o(c=i(),l,t.offsetX,t.offsetY),c&&(d=r(c,d)),n.push(d)}return n},t.measurePath=d,t.measureText=l,t.getDiagramElement=u,t.createHtmlElement=f,t.setAttributeHtml=y,t.getAdornerLayerSvg=p,t.getSelectorElement=function(t,e){var i=null,r=p(t,e);return r&&(i=r.getElementById(t+"_SelectorElement")),i},t.createMeasureElements=function(){var t="measureElement";if(window[t])window[t].usageCount+=1;else{var e=f("div",{id:"measureElement",style:"visibility:hidden ; height: 0px ; width: 0px; overflow: hidden;"}),i=f("span",{style:"display:inline-block ; line-height: normal"});e.appendChild(i);var r=void 0;r=f("img",{}),e.appendChild(r);var o=document.createElementNS("http://www.w3.org/2000/svg","svg");o.setAttribute("xlink","http://www.w3.org/1999/xlink"),e.appendChild(o);var n=document.createElementNS("http://www.w3.org/2000/svg","path");o.appendChild(n),document.createTextNode("");var a=document.createElementNS("http://www.w3.org/2000/svg","text");a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),o.appendChild(a),window[t]=e,window[t].usageCount=1,document.body.appendChild(e)}},t.measureImage=g,t.processPathData=z,t.parsePathData=P,t.getRectanglePath=C,t.pathSegmentCollection=T,t.transformPath=R,t.updatedSegment=B,t.scalePathData=O,t.splitArrayCollection=N,t.getPathString=E,t.getString=W,Object.defineProperty(t,"__esModule",{value:!0})});
//# sourceMappingURL=ej2-drawings.umd.min.js.map
/*!
* filename: ej2-drawings.min.js
* version : 18.3.35
* version : 18.3.47
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.

@@ -10,3 +10,3 @@ * Use of this code is subject to the terms of our license.

*/
this.ej=this.ej||{},this.ej.drawings=function(t,e){"use strict";function i(){return new Pt(1,0,0,1,0,0,t.MatrixTypes.Identity)}function r(t,e){var i=c(t,e.x,e.y);return{x:Math.round(100*i.x)/100,y:Math.round(100*i.y)/100}}function o(t,e){for(var i=[],o=0,n=e;o<n.length;o++){var a=n[o];i.push(r(t,a))}return i}function n(t,e,i,r){l(t,d(.017453292519943295*(e%=360),i||0,r||0))}function a(t,e,i,r,o){void 0===r&&(r=0),void 0===o&&(o=0),l(t,h(e,i,r,o))}function s(e,i,r){return e.type&t.MatrixTypes.Identity?(e.type=t.MatrixTypes.Translation,void u(e,1,0,0,1,i,r)):e.type&t.MatrixTypes.Unknown?(e.offsetX+=i,void(e.offsetY+=r)):(e.offsetX+=i,e.offsetY+=r,void(e.type|=t.MatrixTypes.Translation))}function h(e,r,o,n){var a=i();return a.type=o||n?t.MatrixTypes.Scaling|t.MatrixTypes.Translation:t.MatrixTypes.Scaling,u(a,e,0,0,r,o-e*o,n-r*n),a}function d(e,r,o){var n=i(),a=Math.sin(e),s=Math.cos(e),h=r*(1-s)+o*a,d=o*(1-s)-r*a;return n.type=t.MatrixTypes.Unknown,u(n,s,a,-a,s,h,d),n}function c(e,i,r){switch(e.type){case t.MatrixTypes.Identity:break;case t.MatrixTypes.Translation:i+=e.offsetX,r+=e.offsetY;break;case t.MatrixTypes.Scaling:i*=e.m11,r*=e.m22;break;case t.MatrixTypes.Translation|t.MatrixTypes.Scaling:i*=e.m11,i+=e.offsetX,r*=e.m22,r+=e.offsetY;break;default:var o=r*e.m21+e.offsetX,n=i*e.m12+e.offsetY;i*=e.m11,i+=o,r*=e.m22,r+=n}return{x:i,y:r}}function l(e,r){var o=e.type,n=r.type;if(n!==t.MatrixTypes.Identity){if(o===t.MatrixTypes.Identity)return y(e,r),void(e.type=r.type);if(n===t.MatrixTypes.Translation)return e.offsetX+=r.offsetX,e.offsetY+=r.offsetY,void(o!==t.MatrixTypes.Unknown&&(e.type|=t.MatrixTypes.Translation));if(o!==t.MatrixTypes.Translation){var a=o<<4|n;switch(a){case 34:return e.m11*=r.m11,void(e.m22*=r.m22);case 35:return e.m11*=r.m11,e.m22*=r.m22,e.offsetX=r.offsetX,e.offsetY=r.offsetY,void(e.type=t.MatrixTypes.Translation|t.MatrixTypes.Scaling);case 36:break;default:switch(a){case 50:return e.m11*=r.m11,e.m22*=r.m22,e.offsetX*=r.m11,void(e.offsetY*=r.m22);case 51:return e.m11*=r.m11,e.m22*=r.m22,e.offsetX=r.m11*e.offsetX+r.offsetX,void(e.offsetY=r.m22*e.offsetY+r.offsetY);case 52:break;default:switch(a){case 66:case 67:case 68:break;default:return}}}var s=i();return u(s,e.m11*r.m11+e.m12*r.m21,e.m11*r.m12+e.m12*r.m22,e.m21*r.m11+e.m22*r.m21,e.m21*r.m12+e.m22*r.m22,e.offsetX*r.m11+e.offsetY*r.m21+r.offsetX,e.offsetX*r.m12+e.offsetY*r.m22+r.offsetY),s.m21||s.m12?s.type=t.MatrixTypes.Unknown:((s.m11&&1!==s.m11||s.m22&&1!==s.m22)&&(s.type=t.MatrixTypes.Scaling),(s.offsetX||s.offsetY)&&(s.type|=t.MatrixTypes.Translation),(s.type&(t.MatrixTypes.Translation|t.MatrixTypes.Scaling))===t.MatrixTypes.Identity&&(s.type=t.MatrixTypes.Identity),s.type=t.MatrixTypes.Scaling|t.MatrixTypes.Translation),y(e,s),void(e.type=s.type)}var h=e.offsetX,d=e.offsetY;if(e.offsetX=h*r.m11+d*r.m21+r.offsetX,e.offsetY=h*r.m12+d*r.m22+r.offsetY,n===t.MatrixTypes.Unknown)return void(e.type=t.MatrixTypes.Unknown);e.type=t.MatrixTypes.Translation|t.MatrixTypes.Scaling}}function u(t,e,i,r,o,n,a){t.m11=e,t.m12=i,t.m21=r,t.m22=o,t.offsetX=n,t.offsetY=a}function y(t,e){t.m11=e.m11,t.m12=e.m12,t.m21=e.m21,t.m22=e.m22,t.offsetX=e.offsetX,t.offsetY=e.offsetY,t.type=e.type}function f(t){var i,r=[];if("msie"===e.Browser.info.name||"edge"===e.Browser.info.name)for(var o=0;o<t.childNodes.length;o++)1===(i=t.childNodes[o]).nodeType&&r.push(i);else r=t.children;return r}function p(t,e){for(var o=[],a=0,s=e;a<s.length;a++){var h=s[a],d={x:t.offsetX-t.actualSize.width*t.pivot.x+h.x,y:t.offsetY-t.actualSize.height*t.pivot.y+h.y},c=void 0,l=t.rotateAngle+t.parentTransform;l&&n(c=i(),l,t.offsetX,t.offsetY),c&&(d=r(c,d)),o.push(d)}return o}function g(t){var e="pathTable";if(window[e]||(window[e]={}),t){window.measureElement.style.visibility="visible";var i=f(window.measureElement.children[2])[0];i.setAttribute("d",t);var r=void 0;window[e][t]?r=window[e][t]:window[e][t]=r=i.getBBox();var o=new zt(r.x,r.y,r.width,r.height);return window.measureElement.style.visibility="hidden",o}return new zt(0,0,0,0)}function x(t,e){var i={fill:t.style.fill,stroke:t.style.strokeColor,angle:t.rotateAngle+t.parentTransform,pivotX:t.pivot.x,pivotY:t.pivot.y,strokeWidth:t.style.strokeWidth,dashArray:t.style.strokeDashArray,opacity:t.style.opacity,visible:t.visible,id:t.id,width:e||t.actualSize.width,height:t.actualSize.height,x:t.offsetX-t.actualSize.width*t.pivot.x+.5,y:t.offsetY-t.actualSize.height*t.pivot.y+.5};return i.fontSize=t.style.fontSize,i.fontFamily=t.style.fontFamily,i.textOverflow=t.style.textOverflow,i.textDecoration=t.style.textDecoration,i.doWrap=t.doWrap,i.whiteSpace=X(t.style.whiteSpace,t.style.textWrapping),i.content=t.content,i.textWrapping=t.style.textWrapping,i.breakWord=N(t.style.textWrapping),i.textAlign=E(t.style.textAlign),i.color=t.style.color,i.italic=t.style.italic,i.bold=t.style.bold,i.dashArray="",i.strokeWidth=0,i.fill="",i}function m(t,e){var i,r,o=[],n=0,a=e||t.content;if("nowrap"!==t.whiteSpace&&"pre"!==t.whiteSpace)if("breakall"===t.breakWord)for(i="",i+=a[0],n=0;n<a.length;n++)if((r=W(i,t))>=t.width&&i.length>0)o[o.length]={text:i,x:0,dy:0,width:r},i="";else{(i+=a[n+1]||"").indexOf("\n")>-1&&(i=i.replace("\n",""));var s=W(i,t);Math.ceil(s)+2>=t.width&&i.length>0&&(o[o.length]={text:i,x:0,dy:0,width:s},i=""),n===a.length-1&&i.length>0&&(o[o.length]={text:i,x:0,dy:0,width:s},i="")}else o=v(t,e);else o[o.length]={text:a,x:0,dy:0,width:W(a,t)};return o}function v(t,e){var i,r,o,n,a=[],s="",h=0,d=0,c="nowrap"!==t.whiteSpace,l=(e||t.content).split("\n");for(h=0;h<l.length;h++)for(i="NoWrap"!==t.textWrapping?l[h].split(" "):l,d=0;d<i.length;d++){var u=W(r=(s+=((0!==d||1===i.length)&&c&&s.length>0?" ":"")+i[d])+(i[d+1]||""),t);Math.floor(u)>t.width-2&&s.length>0?(a[a.length]={text:s,x:0,dy:0,width:r===s?u:s===n?o:W(s,t)},s=""):d===i.length-1&&(a[a.length]={text:s,x:0,dy:0,width:u},s=""),n=r,o=u}return a}function w(t,e){var i,r,o={x:0,width:0},n=0;for(n=0;n<e.length;n++)r=i=e[n].width,i="left"===t.textAlign?0:"center"===t.textAlign?i>t.width&&("Ellipsis"===t.textOverflow||"Clip"===t.textOverflow)?0:-i/2:"right"===t.textAlign?-i:e.length>1?0:-i/2,e[n].dy=1.2*t.fontSize,e[n].x=i,o?(o.x=Math.min(o.x,i),o.width=Math.max(o.width,r)):o={x:i,width:r};return o}function b(t,e,i,r,o){var n,a,s=new Mt(0,0),h=x(t,r);return t.childNodes=n=m(h,o),t.wrapBounds=a=w(h,n),s.width=a.width,t.wrapBounds.width>=r&&"Wrap"!==h.textOverflow&&(s.width=r),s.height=n.length*t.style.fontSize*1.2,s}function S(t,e){var i;return e&&(i=document.getElementById(e)),i?i.querySelector("#"+t):document.getElementById(t)}function A(t,i){var r=e.createElement(t);return k(r,i),r}function k(t,e){for(var i=Object.keys(e),r=0;r<i.length;r++)t.setAttribute(i[r],e[i[r]])}function M(t,e){var i=null,r=S(t+e+"_diagramAdornerLayer");return r&&(i=r.getElementsByClassName("e-adorner-layer"+e)[0]),i}function z(t,e){var i=null,r=M(t,e);return r&&(i=r.getElementById(t+"_SelectorElement")),i}function P(){if(window.measureElement)window.measureElement.usageCount+=1;else{var t=A("div",{id:"measureElement",style:"visibility:hidden ; height: 0px ; width: 0px; overflow: hidden;"}),e=A("span",{style:"display:inline-block ; line-height: normal"});t.appendChild(e);var i=void 0;i=A("img",{}),t.appendChild(i);var r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.setAttribute("xlink","http://www.w3.org/1999/xlink"),t.appendChild(r);var o=document.createElementNS("http://www.w3.org/2000/svg","path");r.appendChild(o);document.createTextNode("");var n=document.createElementNS("http://www.w3.org/2000/svg","text");n.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),r.appendChild(n),window.measureElement=t,window.measureElement.usageCount=1,document.body.appendChild(t)}}function C(t,e){window.measureElement.style.visibility="visible";var i=window.measureElement.children[1];i.setAttribute("src",t);var r=i.getBoundingClientRect(),o=r.width,n=r.height;return e=new Mt(o,n),window.measureElement.style.visibility="hidden",e}function T(){for(var t,e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",i="",r=0;r<5;r++){if("crypto"in window&&"getRandomValues"in crypto){var o=new Uint16Array(1);t=(window.msCrypto||window.crypto).getRandomValues(o)[0]%(e.length-1)}else t=Math.floor(Math.random()*e.length);0===r&&t<10?r--:i+=e.substring(t,t+1)}return i}function R(t){new zt;var e=t.offsetY-t.actualSize.height*t.pivot.y,i=t.offsetY+t.actualSize.height*(1-t.pivot.y),r=t.offsetX-t.actualSize.width*t.pivot.x,o=t.offsetX+t.actualSize.width*(1-t.pivot.x),n={x:r,y:e},a={x:o,y:e},s={x:r,y:i},h={x:o,y:i};return zt.toBounds([n,a,s,h])}function B(t,e){var o=i();n(o,e,0,0);var a=r(o,{x:0,y:0}),s=r(o,{x:t.width,y:0}),h=r(o,{x:0,y:t.height}),d=r(o,{x:t.width,y:t.height}),c=Math.min(a.x,s.x,h.x,d.x),l=Math.min(a.y,s.y,h.y,d.y),u=Math.max(a.x,s.x,h.x,d.x),y=Math.max(a.y,s.y,h.y,d.y);return new Mt(u-c,y-l)}function O(t){var e,o=new zt,a=(e=R(t)).middleLeft,s=e.topCenter,h=e.bottomCenter,d=e.middleRight,c=e.topLeft,l=e.topRight,u=e.bottomLeft,y=e.bottomRight;if(t.corners={topLeft:c,topCenter:s,topRight:l,middleLeft:a,middleRight:d,bottomLeft:u,bottomCenter:h,bottomRight:y},0!==t.rotateAngle||0!==t.parentTransform){var f=i();n(f,t.rotateAngle+t.parentTransform,t.offsetX,t.offsetY),t.corners.topLeft=c=r(f,c),t.corners.topCenter=s=r(f,s),t.corners.topRight=l=r(f,l),t.corners.middleLeft=a=r(f,a),t.corners.middleRight=d=r(f,d),t.corners.bottomLeft=u=r(f,u),t.corners.bottomCenter=h=r(f,h),t.corners.bottomRight=y=r(f,y)}return o=zt.toBounds([c,l,u,y]),t.corners.left=o.left,t.corners.right=o.right,t.corners.top=o.top,t.corners.bottom=o.bottom,t.corners.center=o.center,t.corners.width=o.width,t.corners.height=o.height,o}function E(t){var e="";switch(t){case"Center":e="center";break;case"Left":e="left";break;case"Right":e="right"}return e}function N(t){var e="";switch(t){case"Wrap":e="breakall";break;case"NoWrap":e="keepall";break;case"WrapWithOverflow":e="normal";break;case"LineThrough":e="line-through"}return e}function W(t,e){window.measureElement.style.visibility="visible";var i=f(window.measureElement.children[2])[1];i.textContent=t,i.setAttribute("style","font-size:"+e.fontSize+"px; font-family:"+e.fontFamily+";font-weight:"+(e.bold?"bold":"normal"));var r=i.getBBox().width;return window.measureElement.style.visibility="hidden",r}function D(t,e){return(t+e)/2}function X(t,e){if("NoWrap"===e&&"PreserveAll"===t)return"pre";var i="";switch(t){case"CollapseAll":i="nowrap";break;case"CollapseSpace":i="pre-line";break;case"PreserveAll":i="pre-wrap"}return i}function _(t,e,o,a){if(0!==t){var s=i();return n(s,t,e,o),r(s,a)}return a}function L(t,e){return{x:t.x+e.desiredSize.width*e.pivot.x,y:t.y+e.desiredSize.height*e.pivot.y}}function Y(t){var e,i=[],r=I(t);if(r.length>0)for(var o=0;o<r.length;o++){var n=r[o],a="";switch((a=n[0]).toLowerCase()){case"m":for(e=1;e<n.length;e++)i.push({command:a,x:n[e],y:n[e+1]}),e+=1,"m"===a?a="l":"M"===a&&(a="L");break;case"l":case"t":for(e=1;e<n.length;e++)i.push({command:a,x:n[e],y:n[e+1]}),e+=1;break;case"h":for(e=1;e<n.length;e++)i.push({command:a,x:n[e]});break;case"v":for(e=1;e<n.length;e++)i.push({command:a,y:n[e]});break;case"z":i.push({command:a});break;case"c":for(e=1;e<n.length;e++)i.push({command:a,x1:n[e],y1:n[e+1],x2:n[e+2],y2:n[e+3],x:n[e+4],y:n[e+5]}),e+=5;break;case"s":for(e=1;e<n.length;e++)i.push({command:a,x2:n[e],y2:n[e+1],x:n[e+2],y:n[e+3]}),e+=3;break;case"q":for(e=1;e<n.length;e++)i.push({command:a,x1:n[e],y1:n[e+1],x:n[e+2],y:n[e+3]}),e+=3;break;case"a":for(e=1;e<n.length;e++)i.push({command:a,r1:n[e],r2:n[e+1],angle:n[e+2],largeArc:n[e+3],sweep:n[e+4],x:n[e+5],y:n[e+6]}),e+=6}}return i}function I(t){var e=/([a-z]+)|([+-]?(?:\d+\.?\d*|\.\d+))/gi,i=[],r=[],o={};e.lastIndex=0;var n=!1;for(o=e.exec(t);o;)"e"===o[1]?n=!0:o[1]?("zm"===o[1].toLowerCase()?(i.length&&r.push(i),r.push(["Z"]),i=[o[1].substring(1,2)]):(i.length&&r.push(i),i=[o[1]]),n=!1):(i.length||(i=[]),n||i.push(Number(o[2])),n=!1),o=e.exec(t);return i.length&&r.push(i),r}function j(t,e,i){var r,o,n="",a=[{x:0+t,y:0},{x:0+i-t,y:0},{x:0+i,y:0+t},{x:0+i,y:0+e-t},{x:0+i-t,y:0+e},{x:0+t,y:0+e},{x:0,y:0+e-t},{x:0,y:0+t}],s=[{x:0+i,y:0},{x:0+i,y:0+e},{x:0,y:0+e},{x:0,y:0}],h=0;n="M"+a[0].x+" "+a[0].y;var d;for(d=0;d<a.length;d+=2)n+="L"+(r=a[d+1]).x+" "+r.y,o=a[d+2]||a[0],n+="Q"+s[h].x+" "+s[h].y+" "+o.x+" "+o.y,h++;return n}function F(t){var e,i,r,o,n,a,s,h,d,c,l=[];for(s=0,h=0,c=0,d=t.length;c<d;++c){var u=t[c],y="";y=u.command,"y1"in u&&(o=u.y1),"y2"in u&&(a=u.y2),"x1"in u&&(r=u.x1),"x2"in u&&(n=u.x2),"x"in u&&(s=u.x),"y"in u&&(h=u.y);var f=l[l.length-1];switch(y){case"M":l.push({command:"M",x:s,y:h});break;case"L":l.push({command:"L",x0:e,y0:i,x:s,y:h});break;case"H":l.push({command:"L",x0:e,y0:i,x:s,y:i});break;case"V":l.push({command:"L",x0:e,y0:i,x:e,y:h});break;case"C":l.push({command:"C",x0:e,y0:i,x1:r,y1:o,x2:n,y2:a,x:s,y:h});break;case"S":if(f){var p=void 0,g={x:2*e-(p="C"===f.command||"S"===f.command?{x:f.x2,y:f.y2}:{x:e,y:i}).x,y:2*i-p.y};l.push({command:"C",x0:e,y0:i,x1:g.x,y1:g.y,x2:n,y2:a,x:s,y:h})}break;case"Q":l.push({command:"Q",x0:e,y0:i,x1:r,y1:o,x:s,y:h});break;case"T":if(f){var p=void 0,g={x:2*e-(p="Q"===f.command?{x:f.x1,y:f.y1}:{x:e,y:i}).x,y:2*i-p.y};l.push({command:"Q",x0:e,y0:i,x1:g.x,y1:g.y,x:s,y:h})}break;case"A":var x=u;x.command="A",l.push(x);break;case"Z":case"z":l.push({command:"Z"}),s=e,h=i}e=s,i=h}return l}function U(t,e,i,r,o,n,a,s){var h,d,c,l,u,y,f,p,g;for(u=0,y=0,p=0,f=t.length;p<f;++p){var x=t[p],m=x.command;"x"in x&&(u=x.x),"y"in x&&(y=x.y),"y1"in x&&(d=x.y1),"y2"in x&&(l=x.y2),"x1"in x&&(h=x.x1),"x2"in x&&(c=x.x2),r?(void 0!==u&&(u=H(u,e,o,a)),void 0!==y&&(y=H(y,i,n,s)),void 0!==h&&(h=H(h,e,o,a)),void 0!==d&&(d=H(d,i,n,s)),void 0!==c&&(c=H(c,e,o,a)),void 0!==l&&(l=H(l,i,n,s))):(void 0!==u&&(u=Number((u+e).toFixed(2))),void 0!==y&&(y=Number((y+i).toFixed(2))),void 0!==h&&(h=Number((h+e).toFixed(2))),void 0!==d&&(d=Number((d+i).toFixed(2))),void 0!==c&&(c=Number((c+e).toFixed(2))),void 0!==l&&(l=Number((l+i).toFixed(2)))),(g=V(x,m,{x:u,y:y,x1:h,y1:d,x2:c,y2:l,r1:x.r1,r2:x.r2},r,e,i))&&(t[p]=g)}return Q(t)}function V(t,e,i,r,o,n){switch(e){case"M":case"L":t.x=i.x,t.y=i.y;break;case"H":t.x=i.x;break;case"V":t.y=i.y;break;case"C":t.x=i.x,t.y=i.y,t.x1=i.x1,t.y1=i.y1,t.x2=i.x2,t.y2=i.y2;break;case"S":t.x=i.x,t.y=i.y,t.x2=i.x2,t.y2=i.y2;break;case"Q":t.x=i.x,t.y=i.y,t.x1=i.x1,t.y1=i.y1;break;case"T":t.x=i.x,t.y=i.y;break;case"A":var a=i.r1,s=i.r2;r&&(i.r1=a*=o,i.r2=s*=n),t.x=i.x,t.y=i.y,t.r1=i.r1,t.r2=i.r2;break;case"z":case"Z":t={command:"Z"}}return t}function H(t,e,i,r){return t!==i?t=r!==i?t*e-(Number(i)*e-Number(i))+(r-Number(i)):Number(t)*e-(Number(i)*e-Number(i)):r!==i&&(t=r),Number(t.toFixed(2))}function q(t){var e,i,r,o,n,a,s,h,d,c;for(s=0,h=0,c=0,d=t.length;c<d;++c){var l=t[c],u=l.command;if(/[MLHVCSQTA]/.test(u))"x"in l&&(l.x=s=l.x),"y"in l&&(l.y=h=l.y);else{"x1"in l&&(l.x1=r=s+l.x1),"x2"in l&&(l.x2=n=s+l.x2),"y1"in l&&(l.y1=o=h+l.y1),"y2"in l&&(l.y2=a=h+l.y2),"x"in l&&(l.x=s+=l.x),"y"in l&&(l.y=h+=l.y);var y=void 0;switch(u){case"m":case"M":y={command:"M",x:s,y:h};break;case"l":case"L":y={command:"L",x:s,y:h};break;case"h":case"H":y={command:"H",x:s};break;case"v":case"V":y={command:"V",y:h};break;case"c":case"C":y={command:"C",x:s,y:h,x1:r,y1:o,x2:n,y2:a};break;case"s":case"S":y={command:"S",x:s,y:h,x2:n,y2:a};break;case"q":case"Q":y={command:"Q",x:s,y:h,x1:r,y1:o};break;case"t":case"T":y={command:"T",x:s,y:h};break;case"a":case"A":(y={command:"A",x:s,y:h}).r1=l.r1,y.r2=l.r2,y.angle=l.angle,y.largeArc=l.largeArc,y.sweep=l.sweep;break;case"z":case"Z":y={command:"Z"},s=e,h=i,y=t[c]}y&&(t[c]=y)}"M"!==u&&"m"!==u||(e=s,i=h)}return t}function Q(t){var e,i="";for(e=0;e<t.length;e++)i+=0===e?Z(t[e]):" "+Z(t[e]);return i}function Z(t){var e="";switch(t.command){case"Z":case"z":e=t.command;break;case"M":case"m":case"L":case"l":e=t.command+" "+t.x+" "+t.y;break;case"C":case"c":e=t.command+" "+t.x1+" "+t.y1+" "+t.x2+" "+t.y2+" "+t.x+" "+t.y;break;case"Q":case"q":e=t.command+" "+t.x1+" "+t.y1+" "+t.x+" "+t.y;break;case"A":case"a":var i=t.command,r=t.angle,o=t.largeArc?"1":"0",n=t.sweep?"1":"0";e=i+" "+t.r1+" "+t.r2+" "+r+" "+o+" "+n+" "+t.x+" "+t.y;break;case"H":case"h":e=t.command+" "+t.x;break;case"V":case"v":e=t.command+" "+t.y;break;case"S":case"s":e=t.command+" "+t.x2+" "+t.y2+" "+t.x+" "+t.y;break;case"T":case"t":e=t.command+" "+t.x+" "+t.y}return e}function G(t,e,i){for(var r=0;r<e.length;r++)i.renderElement(e[r],t,void 0)}function J(t,e){for(var i=Object.keys(e),r=0;r<i.length;r++)t.setAttribute(i[r],e[i[r]])}function K(t,e){var i=document.createElementNS("http://www.w3.org/2000/svg",t);return J(i,e),i}function $(t,e,i){var r=document.createElementNS("http://www.w3.org/2000/svg","svg");return J(r,{id:t,width:e,height:i}),r}function tt(t,e,i){return t&&t.id&&e&&"selector"===e?this.pdfViewer.adornerSvgLayer:i}function et(t,e,i){var r;r=It.findLength(e,t)>It.findLength(i,t)?i:e;var o=It.findAngle(e,i),n=It.findAngle(r,t),a=It.findLength(r,t),s=n+2*(o-n);return{x:r.x+a*Math.cos(s*Math.PI/180),y:r.y+a*Math.sin(s*Math.PI/180)}}function it(t,e,i){return rt(t.wrapper,e,i)}function rt(t,e,i){for(var r=t.children.length-1;r>=0;r--){var o=t.children[r];if(o&&o.bounds.containsPoint(e,0)){if(o instanceof Rt){var n=this.findTargetElement(o,e);if(n)return n}if(o.bounds.containsPoint(e,0))return o}}return t.bounds.containsPoint(e,i)&&"none"!==t.style.fill?t:null}function ot(t,e){var i={x:0,y:0},r=t,o=e,n=(o.y2-o.y1)*(r.x2-r.x1)-(o.x2-o.x1)*(r.y2-r.y1),a=(o.x2-o.x1)*(r.y1-o.y1)-(o.y2-o.y1)*(r.x1-o.x1),s=(r.x2-r.x1)*(r.y1-o.y1)-(r.y2-r.y1)*(r.x1-o.x1);if(0===n)return{enabled:!1,intersectPt:i};var h=a/n,d=s/n;return h>=0&&h<=1&&d>=0&&d<=1?(i.x=r.x1+h*(r.x2-r.x1),i.y=r.y1+h*(r.y2-r.y1),{enabled:!0,intersectPt:i}):{enabled:!1,intersectPt:i}}function nt(t,e,i,r){var o={x:0,y:0},n=ot(at(t.x,t.y,e.x,e.y),at(i.x,i.y,r.x,r.y));return n.enabled?n.intersectPt:o}function at(t,e,i,r){return{x1:Number(t)||0,y1:Number(e)||0,x2:Number(i)||0,y2:Number(r)||0}}function st(t,e,i){var r=[];i=i||0;var o={x:e.topLeft.x-i,y:e.topLeft.y},n={x:e.topRight.x+i,y:e.topRight.y},a={x:e.bottomRight.x,y:e.bottomRight.y-i},s={x:e.bottomLeft.x,y:e.bottomLeft.y+i};return r.push(o),r.push(n),r.push(a),r.push(s),r}function ht(t,e){return Math.abs(e.x-t.x)>Math.abs(e.y-t.y)?t.x<e.x?"right":"left":t.y<e.y?"bottom":"top"}function dt(t,e){for(var i=e.style,r=e,o=0,n=Object.keys(t);o<n.length;o++)switch(n[o]){case"fill":i.fill=t.fill,i instanceof At&&(i.fill="transparent");break;case"textOverflow":i.textOverflow=t.textOverflow;break;case"opacity":i.opacity=t.opacity;break;case"strokeColor":i.strokeColor=t.strokeColor;break;case"strokeDashArray":i.strokeDashArray=t.strokeDashArray;break;case"strokeWidth":i.strokeWidth=t.strokeWidth;break;case"bold":i.bold=t.bold;break;case"color":i.color=t.color;break;case"textWrapping":i.textWrapping=t.textWrapping;break;case"fontFamily":i.fontFamily=t.fontFamily;break;case"fontSize":i.fontSize=t.fontSize;break;case"italic":i.italic=t.italic;break;case"textAlign":i.textAlign=t.textAlign;break;case"whiteSpace":i.whiteSpace=t.whiteSpace;break;case"textDecoration":i.textDecoration=t.textDecoration}e instanceof Ot&&r.refreshTextElement()}function ct(t,e,o,a){if(void 0!==t.width&&void 0!==t.height&&(t.width*=e,t.height*=o),t instanceof Rt){var s=i(),h=a.width||a.actualSize.width,d=a.height||a.actualSize.height;if(void 0!==h&&void 0!==d){var c=a.offsetX-h*a.pivot.x,l=a.offsetY-d*a.pivot.y,u={x:c+h*a.pivot.x,y:l+d*a.pivot.y};u=_(a.rotateAngle,a.offsetX,a.offsetY,u),n(s,-a.rotateAngle,u.x,u.y),n(s,a.rotateAngle,u.x,u.y);for(var y=0,f=t.children;y<f.length;y++){var p=f[y];if(void 0!==p.width&&void 0!==p.height){var g=r(s,{x:p.offsetX,y:p.offsetY});p.offsetX=g.x,p.offsetY=g.y,ct(p,e,o,a)}}}}}function lt(t,e,i){return t.x>=e.x-i&&t.x<=e.x+i&&t.y>=e.y-i&&t.y<=e.y+i}function ut(t,e,o,a,s,h,d,c){var l={x:0,y:0},u=i();switch(n(u,s,h,d),c.x){case 0:switch(c.y){case 0:l=r(u,{x:t,y:e});break;case.5:l=r(u,{x:t,y:e+a/2});break;case 1:l=r(u,{x:t,y:e+a})}break;case.5:switch(c.y){case 0:l=r(u,{x:t+o/2,y:e});break;case.5:l=r(u,{x:t+o/2,y:e+a/2});break;case 1:l=r(u,{x:t+o/2,y:e+a})}break;case 1:switch(c.y){case 0:l=r(u,{x:t+o,y:e});break;case.5:l=r(u,{x:t+o,y:e+a/2});break;case 1:l=r(u,{x:t+o,y:e+a})}}return{x:l.x,y:l.y}}var yt=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),ft=function(t,e,i,r){var o,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(n<3?o(a):n>3?o(e,i,a):o(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a},pt=function(t){switch(t.type){case"Linear":return wt;case"Radial":return bt;default:return wt}},gt=function(){function t(t,e,i,r){this.left=t,this.right=e,this.top=i,this.bottom=r}return t}(),xt=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return yt(i,t),ft([e.Property(0)],i.prototype,"left",void 0),ft([e.Property(0)],i.prototype,"right",void 0),ft([e.Property(0)],i.prototype,"top",void 0),ft([e.Property(0)],i.prototype,"bottom",void 0),i}(e.ChildProperty),mt=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return yt(i,t),i.prototype.getClassName=function(){return"Stop"},ft([e.Property("")],i.prototype,"color",void 0),ft([e.Property(0)],i.prototype,"offset",void 0),ft([e.Property(1)],i.prototype,"opacity",void 0),i}(e.ChildProperty),vt=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return yt(i,t),ft([e.Collection([],mt)],i.prototype,"stops",void 0),ft([e.Property("None")],i.prototype,"type",void 0),ft([e.Property("")],i.prototype,"id",void 0),i}(e.ChildProperty),wt=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return yt(i,t),ft([e.Property(0)],i.prototype,"x1",void 0),ft([e.Property(0)],i.prototype,"x2",void 0),ft([e.Property(0)],i.prototype,"y1",void 0),ft([e.Property(0)],i.prototype,"y2",void 0),i}(vt),bt=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return yt(i,t),ft([e.Property(0)],i.prototype,"cx",void 0),ft([e.Property(0)],i.prototype,"cy",void 0),ft([e.Property(0)],i.prototype,"fx",void 0),ft([e.Property(0)],i.prototype,"fy",void 0),ft([e.Property(50)],i.prototype,"r",void 0),i}(vt),St=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return yt(i,t),ft([e.Property("white")],i.prototype,"fill",void 0),ft([e.Property("black")],i.prototype,"strokeColor",void 0),ft([e.Property("")],i.prototype,"strokeDashArray",void 0),ft([e.Property(1)],i.prototype,"strokeWidth",void 0),ft([e.Property(1)],i.prototype,"opacity",void 0),ft([e.ComplexFactory(pt)],i.prototype,"gradient",void 0),i}(e.ChildProperty),At=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return yt(i,t),ft([e.Property("transparent")],i.prototype,"fill",void 0),i}(St),kt=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return yt(i,t),ft([e.Property("black")],i.prototype,"color",void 0),ft([e.Property("Arial")],i.prototype,"fontFamily",void 0),ft([e.Property(12)],i.prototype,"fontSize",void 0),ft([e.Property(!1)],i.prototype,"italic",void 0),ft([e.Property(!1)],i.prototype,"bold",void 0),ft([e.Property("CollapseSpace")],i.prototype,"whiteSpace",void 0),ft([e.Property("WrapWithOverflow")],i.prototype,"textWrapping",void 0),ft([e.Property("Center")],i.prototype,"textAlign",void 0),ft([e.Property("None")],i.prototype,"textDecoration",void 0),ft([e.Property("Wrap")],i.prototype,"textOverflow",void 0),ft([e.Property("transparent")],i.prototype,"fill",void 0),i}(St);!function(t){t[t.Self=1]="Self",t[t.Parent=2]="Parent"}(t.RotateTransform||(t.RotateTransform={})),function(t){t[t.None=0]="None",t[t.ElementIsPort=2]="ElementIsPort",t[t.ElementIsGroup=4]="ElementIsGroup"}(t.ElementAction||(t.ElementAction={})),function(t){t[t.None=1]="None",t[t.Select=2]="Select",t[t.Delete=4]="Delete",t[t.Drag=8]="Drag",t[t.DragSourceEnd=16]="DragSourceEnd",t[t.DragTargetEnd=32]="DragTargetEnd",t[t.DragSegmentThumb=64]="DragSegmentThumb",t[t.AllowDrop=128]="AllowDrop",t[t.Bridging=256]="Bridging",t[t.BridgeObstacle=512]="BridgeObstacle",t[t.InheritBridging=1024]="InheritBridging",t[t.PointerEvents=2048]="PointerEvents",t[t.Tooltip=4096]="Tooltip",t[t.InheritTooltip=8192]="InheritTooltip",t[t.Interaction=4218]="Interaction",t[t.ReadOnly=16384]="ReadOnly",t[t.Default=11838]="Default"}(t.ConnectorConstraints||(t.ConnectorConstraints={})),function(t){t[t.Rotate=2]="Rotate",t[t.ConnectorSource=4]="ConnectorSource",t[t.ConnectorTarget=8]="ConnectorTarget",t[t.ResizeNorthEast=16]="ResizeNorthEast",t[t.ResizeEast=32]="ResizeEast",t[t.ResizeSouthEast=64]="ResizeSouthEast",t[t.ResizeSouth=128]="ResizeSouth",t[t.ResizeSouthWest=256]="ResizeSouthWest",t[t.ResizeWest=512]="ResizeWest",t[t.ResizeNorthWest=1024]="ResizeNorthWest",t[t.ResizeNorth=2048]="ResizeNorth",t[t.Default=4094]="Default"}(t.ThumbsConstraints||(t.ThumbsConstraints={})),function(t){t[t.None=1]="None",t[t.ConnectorSourceThumb=2]="ConnectorSourceThumb",t[t.ConnectorTargetThumb=4]="ConnectorTargetThumb",t[t.ResizeSouthEast=8]="ResizeSouthEast",t[t.ResizeSouthWest=16]="ResizeSouthWest",t[t.ResizeNorthEast=32]="ResizeNorthEast",t[t.ResizeNorthWest=64]="ResizeNorthWest",t[t.ResizeEast=128]="ResizeEast",t[t.ResizeWest=256]="ResizeWest",t[t.ResizeSouth=512]="ResizeSouth",t[t.ResizeNorth=1024]="ResizeNorth",t[t.Rotate=2048]="Rotate",t[t.UserHandle=4096]="UserHandle",t[t.ToolTip=8192]="ToolTip",t[t.ResizeAll=2046]="ResizeAll",t[t.All=16382]="All"}(t.SelectorConstraints||(t.SelectorConstraints={})),function(t){t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Three=3]="Three",t[t.Four=4]="Four",t[t.Five=5]="Five"}(t.NoOfSegments||(t.NoOfSegments={}));var Mt=function(){function t(t,e){this.width=t,this.height=e}return t.prototype.clone=function(){return new t(this.width,this.height)},t}(),zt=function(){function t(t,e,i,r){this.x=Number.MAX_VALUE,this.y=Number.MAX_VALUE,this.width=0,this.height=0,void 0===t||void 0===e?(t=e=Number.MAX_VALUE,i=r=0):(void 0===i&&(i=0),void 0===r&&(r=0)),this.x=t,this.y=e,this.width=i,this.height=r}return Object.defineProperty(t.prototype,"left",{get:function(){return this.x},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return this.x+this.width},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return this.y},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return this.y+this.height},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"topLeft",{get:function(){return{x:this.left,y:this.top}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"topRight",{get:function(){return{x:this.right,y:this.top}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottomLeft",{get:function(){return{x:this.left,y:this.bottom}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottomRight",{get:function(){return{x:this.right,y:this.bottom}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"middleLeft",{get:function(){return{x:this.left,y:this.y+this.height/2}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"middleRight",{get:function(){return{x:this.right,y:this.y+this.height/2}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"topCenter",{get:function(){return{x:this.x+this.width/2,y:this.top}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottomCenter",{get:function(){return{x:this.x+this.width/2,y:this.bottom}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"center",{get:function(){return{x:this.x+this.width/2,y:this.y+this.height/2}},enumerable:!0,configurable:!0}),t.prototype.equals=function(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height},t.prototype.uniteRect=function(t){var e=Math.max(Number.NaN===this.right||this.x===Number.MAX_VALUE?t.right:this.right,t.right),i=Math.max(Number.NaN===this.bottom||this.y===Number.MAX_VALUE?t.bottom:this.bottom,t.bottom);return this.x=Math.min(this.left,t.left),this.y=Math.min(this.top,t.top),this.width=e-this.x,this.height=i-this.y,this},t.prototype.unitePoint=function(t){if(this.x===Number.MAX_VALUE)return this.x=t.x,void(this.y=t.y);var e=Math.min(this.left,t.x),i=Math.min(this.top,t.y),r=Math.max(this.right,t.x),o=Math.max(this.bottom,t.y);this.x=e,this.y=i,this.width=r-this.x,this.height=o-this.y},t.prototype.intersection=function(e){if(this.intersects(e)){var i=Math.max(this.left,e.left),r=Math.max(this.top,e.top);return new t(i,r,Math.min(this.right,e.right)-i,Math.min(this.bottom,e.bottom)-r)}return t.empty},t.prototype.Inflate=function(t){return this.x-=t,this.y-=t,this.width+=2*t,this.height+=2*t,this},t.prototype.intersects=function(t){return!(this.right<t.left||this.left>t.right||this.top>t.bottom||this.bottom<t.top)},t.prototype.containsRect=function(t){return this.left<=t.left&&this.right>=t.right&&this.top<=t.top&&this.bottom>=t.bottom},t.prototype.containsPoint=function(t,e){return void 0===e&&(e=0),this.left-e<=t.x&&this.right+e>=t.x&&this.top-e<=t.y&&this.bottom+e>=t.y},t.prototype.toPoints=function(){var t=[];return t.push(this.topLeft),t.push(this.topRight),t.push(this.bottomLeft),t.push(this.bottomRight),t},t.toBounds=function(e){for(var i=new t,r=0,o=e;r<o.length;r++){var n=o[r];i.unitePoint(n)}return i},t.prototype.scale=function(t,e){this.width*=t,this.height*=e},t.prototype.offset=function(t,e){this.x+=t,this.y+=e},t.empty=new t(Number.MAX_VALUE,Number.MIN_VALUE,0,0),t}();!function(t){t[t.Identity=0]="Identity",t[t.Translation=1]="Translation",t[t.Scaling=2]="Scaling",t[t.Unknown=4]="Unknown"}(t.MatrixTypes||(t.MatrixTypes={}));var Pt=function(){function t(t,e,i,r,o,n,a){this.m11=t,this.m12=e,this.m21=i,this.m22=r,this.offsetX=o,this.offsetY=n,this.type=a}return t}(),Ct=function(){function e(){this.pivot={x:.5,y:.5},this.rotateValue={x:0,y:0,angle:0},this.isDirt=!0,this.offsetX=0,this.offsetY=0,this.cornerRadius=0,this.minHeight=void 0,this.minWidth=void 0,this.maxWidth=void 0,this.maxHeight=void 0,this.width=void 0,this.height=void 0,this.horizontalAlignment="Auto",this.verticalAlignment="Auto",this.visible=!0,this.rotateAngle=0,this.margin={left:0,right:0,top:0,bottom:0},this.relativeMode="Point",this.transform=t.RotateTransform.Self|t.RotateTransform.Parent,this.style={fill:"white",strokeColor:"black",opacity:1,strokeWidth:1},this.desiredSize=new Mt,this.actualSize=new Mt,this.parentTransform=0,this.preventContainer=!1,this.bounds=new zt(0,0,0,0),this.staticSize=!1,this.isRectElement=!1,this.isCalculateDesiredSize=!0,this.elementActions=t.ElementAction.None,this.position=void 0,this.unitMode=void 0,this.float=!1,this.floatingBounds=void 0}return e.prototype.setOffsetWithRespectToBounds=function(t,e,i){this.unitMode=i,this.position={x:t,y:e}},e.prototype.getAbsolutePosition=function(t){if(void 0!==this.position)return"Absolute"===this.unitMode?this.position:{x:this.position.x*t.width,y:this.position.y*t.height}},Object.defineProperty(e.prototype,"outerBounds",{get:function(){return this.floatingBounds||this.bounds},set:function(t){this.floatingBounds=t},enumerable:!0,configurable:!0}),e.prototype.measure=function(t){var e=void 0!==this.width?this.width:(t.width||0)-this.margin.left-this.margin.right,i=void 0!==this.height?this.height:(t.height||0)-this.margin.top-this.margin.bottom;return this.desiredSize=new Mt(e,i),this.isCalculateDesiredSize&&(this.desiredSize=this.validateDesiredSize(this.desiredSize,t)),this.desiredSize},e.prototype.arrange=function(t){return this.actualSize=t,this.updateBounds(),this.actualSize},e.prototype.updateBounds=function(){this.bounds=O(this)},e.prototype.validateDesiredSize=function(t,e){return!this.isRectElement||this.width||this.minWidth||this.maxWidth||(t.width=50),!this.isRectElement||this.height||this.minHeight||this.maxHeight||(t.height=50),(void 0===t||void 0!==this.width&&void 0!==this.height)&&((t=t||new Mt).width=void 0===this.width?(e.width||0)-this.margin.left-this.margin.right:this.width,t.height=void 0===this.height?(e.height||0)-this.margin.top-this.margin.bottom:this.height),void 0!==this.minWidth&&(t.width=Math.max(t.width,this.minWidth)),void 0!==this.minHeight&&(t.height=Math.max(t.height,this.minHeight)),void 0!==this.maxWidth&&(t.width=Math.min(t.width,this.maxWidth)),void 0!==this.maxHeight&&(t.height=Math.min(t.height,this.maxHeight)),t},e}(),Tt=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Rt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.desiredBounds=void 0,e.measureChildren=!0,e.prevRotateAngle=0,e}return Tt(e,t),e.prototype.hasChildren=function(){return void 0!==this.children&&this.children.length>0},e.prototype.measure=function(t){this.desiredBounds=void 0;var i,r,o=void 0;if(this.hasChildren()){for(var n=0;n<this.children.length;n++){"Stretch"!==(i=this.children[n]).horizontalAlignment||t.width||(t.width=i.bounds.width),"Stretch"!==i.verticalAlignment||t.height||(t.height=i.bounds.height);var a="Stretch"===i.horizontalAlignment||"Stretch"===i.verticalAlignment;(this.measureChildren||a||i instanceof e&&void 0!==i.measureChildren)&&i.measure(t),r=this.GetChildrenBounds(i),"Stretch"!==i.horizontalAlignment&&"Stretch"!==i.verticalAlignment?void 0===this.desiredBounds?this.desiredBounds=r:this.desiredBounds.uniteRect(r):!this.actualSize||this.actualSize.width||this.actualSize.height||i.preventContainer||"Stretch"!==i.horizontalAlignment||"Stretch"!==i.verticalAlignment||(void 0===this.desiredBounds?this.desiredBounds=i.bounds:this.desiredBounds.uniteRect(i.bounds))}if(void 0!==this.desiredBounds&&0!==this.rotateAngle){var s={x:this.desiredBounds.x+this.desiredBounds.width*this.pivot.x,y:this.desiredBounds.y+this.desiredBounds.height*this.pivot.y},h=_(this.rotateAngle,void 0,void 0,s);this.desiredBounds.x=h.x-this.desiredBounds.width*this.pivot.x,this.desiredBounds.y=h.y-this.desiredBounds.height*this.pivot.y}this.desiredBounds&&(o=new Mt(this.desiredBounds.width,this.desiredBounds.height))}return o=this.validateDesiredSize(o,t),this.stretchChildren(o),this.desiredSize=o,o},e.prototype.arrange=function(t){var i,r=this.desiredBounds;if(r){this.offsetX,this.offsetY;if(this.offsetX=r.x+r.width*this.pivot.x,this.offsetY=r.y+r.height*this.pivot.y,this.hasChildren())for(var o=0;o<this.children.length;o++){var n=!1;"Stretch"===(i=this.children[o]).horizontalAlignment&&(i.offsetX=this.offsetX,i.parentTransform=this.parentTransform+this.rotateAngle,n=!0),"Stretch"===i.verticalAlignment&&(i.offsetY=this.offsetY,i.parentTransform=this.parentTransform+this.rotateAngle,n=!0),(n||this.measureChildren||i instanceof e&&void 0!==i.measureChildren)&&i.arrange(i.desiredSize)}}return this.actualSize=t,this.updateBounds(),this.prevRotateAngle=this.rotateAngle,t},e.prototype.stretchChildren=function(t){if(this.hasChildren())for(var i=0,r=this.children;i<r.length;i++){var o=r[i];"Stretch"!==o.horizontalAlignment&&void 0!==o.desiredSize.width||(o.desiredSize.width=t.width-o.margin.left-o.margin.right),"Stretch"!==o.verticalAlignment&&void 0!==o.desiredSize.height||(o.desiredSize.height=t.height-o.margin.top-o.margin.bottom),o instanceof e&&o.stretchChildren(o.desiredSize)}},e.prototype.findChildOffsetFromCenter=function(t,e){var i=L({x:e.x-t.desiredSize.width/2,y:e.y-t.desiredSize.height/2},t);i=_(t.rotateAngle,e.x,e.y,i),i=_(this.rotateAngle+this.parentTransform,this.offsetX,this.offsetY,i),t.offsetX=i.x,t.offsetY=i.y},e.prototype.GetChildrenBounds=function(t){var e;e=t.desiredSize.clone();t.rotateAngle,this.rotateAngle;var i={x:t.offsetX,y:t.offsetY},r=i.x-e.width*t.pivot.x,o=i.y-e.height*t.pivot.y,n=r+e.width,a=o+e.height,s={x:r,y:o},h={x:n,y:o},d={x:r,y:a},c={x:n,y:a};return s=_(t.rotateAngle,t.offsetX,t.offsetY,s),h=_(t.rotateAngle,t.offsetX,t.offsetY,h),d=_(t.rotateAngle,t.offsetX,t.offsetY,d),c=_(t.rotateAngle,t.offsetX,t.offsetY,c),0!==this.rotateAngle&&(s=_(-this.rotateAngle,void 0,void 0,s),h=_(-this.rotateAngle,void 0,void 0,h),d=_(-this.rotateAngle,void 0,void 0,d),c=_(-this.rotateAngle,void 0,void 0,c)),zt.toBounds([s,h,d,c])},e}(Ct),Bt=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Ot=function(t){function e(){var e=t.call(this)||this;return e.textContent="",e.canMeasure=!0,e.canConsiderBounds=!0,e.doWrap=!0,e.textNodes=[],e.style={color:"black",fill:"transparent",strokeColor:"black",strokeWidth:1,fontFamily:"Arial",fontSize:12,whiteSpace:"CollapseSpace",textWrapping:"WrapWithOverflow",textAlign:"Center",italic:!1,bold:!1,textDecoration:"None",strokeDashArray:"",opacity:1,textOverflow:"Wrap"},e.style.fill="transparent",e.style.strokeColor="transparent",e}return Bt(e,t),Object.defineProperty(e.prototype,"content",{get:function(){return this.textContent},set:function(t){this.textContent!==t&&(this.textContent=t,this.isDirt=!0,this.doWrap=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"childNodes",{get:function(){return this.textNodes},set:function(t){this.textNodes=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wrapBounds",{get:function(){return this.textWrapBounds},set:function(t){this.textWrapBounds=t},enumerable:!0,configurable:!0}),e.prototype.refreshTextElement=function(){this.isDirt=!0},e.prototype.measure=function(t){var e;return e=this.isDirt&&this.canMeasure?b(this,this.style,this.content,this.width||t.width):this.desiredSize,void 0===this.width||void 0===this.height?this.desiredSize=new Mt(e.width,e.height):this.desiredSize=new Mt(this.width,this.height),this.desiredSize=this.validateDesiredSize(this.desiredSize,t),this.desiredSize},e.prototype.arrange=function(t){return(t.width!==this.actualSize.width||t.height!==this.actualSize.height||this.isDirt)&&(this.doWrap=!0),this.actualSize=t,this.updateBounds(),this.isDirt=!1,this.actualSize},e}(Ct),Et=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Nt=function(e){function o(){var t=null!==e&&e.apply(this,arguments)||this;return t.measureChildren=void 0,t}return Et(o,e),o.prototype.measure=function(t){var i=void 0,r=void 0;if(this.hasChildren()){for(var o=0,n=this.children;o<n.length;o++){var a=n[o];if(a instanceof Ot){if(!a.canMeasure)break;t.width=t.width||this.maxWidth||this.minWidth,a.measure(t)}else a instanceof Ot||a.measure(t);var s=a.desiredSize.clone();0!==a.rotateAngle&&(s=B(s,a.rotateAngle));var h=s.width+a.margin.right,d=s.height+a.margin.bottom,c=new zt(a.margin.left,a.margin.top,h,d);a.float&&void 0!==a.getAbsolutePosition(s)||(a instanceof Ot&&!(a instanceof Ot&&a.canConsiderBounds)||(void 0===r?r=c:r.uniteRect(c)))}if(r){var l=0,u=0;l=Math.max(r.left,0),u=Math.max(r.top,0),i=new Mt(r.width+l,r.height+u)}}return i=e.prototype.validateDesiredSize.call(this,i,t),e.prototype.stretchChildren.call(this,i),this.desiredSize=i,i},o.prototype.arrange=function(o){if(this.outerBounds=new zt,this.hasChildren()){var a=void 0,s=void 0;a=this.offsetY-o.height*this.pivot.y,s=this.offsetX-o.width*this.pivot.x;for(var h=0,d=this.children;h<d.length;h++){var c=d[h];if(0!=(c.transform&t.RotateTransform.Parent)){c.parentTransform=this.parentTransform+this.rotateAngle;var l=c.desiredSize.clone(),u=void 0,y={x:0,y:0},f=s,p=a;if("Point"===c.relativeMode){var g=c.getAbsolutePosition(o);void 0!==g&&(f+=g.x,p+=g.y)}if(u="Object"===c.relativeMode?this.alignChildBasedOnParent(c,l,o,f,p):this.alignChildBasedOnaPoint(c,f,p),y={x:u.x+l.width/2,y:u.y+l.height/2},c.rotateValue){var x={x:this.offsetX+(c.rotateValue.x||0),y:this.offsetY+(c.rotateValue.y||0)},m={x:this.offsetX,y:this.offsetY},v=0|c.rotateValue.angle,w=i();n(w,v,m.x,m.y),y=r(w,x)}e.prototype.findChildOffsetFromCenter.call(this,c,y)}"Stretch"===c.horizontalAlignment||"Stretch"===c.verticalAlignment?c.arrange(o):c instanceof Ot&&c.canMeasure?(c.arrange(c.desiredSize),this.outerBounds.uniteRect(c.outerBounds)):c instanceof Ot||(c.arrange(c.desiredSize),this.outerBounds.uniteRect(c.outerBounds))}}return this.actualSize=o,this.updateBounds(),this.outerBounds.uniteRect(this.bounds),o},o.prototype.alignChildBasedOnParent=function(t,e,i,r,o){switch(t.horizontalAlignment){case"Auto":case"Left":r+=t.margin.left;break;case"Right":r+=i.width-e.width-t.margin.right;break;case"Stretch":case"Center":r+=i.width/2-e.width/2}switch(t.verticalAlignment){case"Auto":case"Top":o+=t.margin.top;break;case"Bottom":o+=i.height-e.height-t.margin.bottom;break;case"Stretch":case"Center":o+=i.height/2-e.height/2}return{x:r,y:o}},o.prototype.alignChildBasedOnaPoint=function(t,e,i){switch(e+=t.margin.left-t.margin.right,i+=t.margin.top-t.margin.bottom,t.horizontalAlignment){case"Auto":case"Left":e=e;break;case"Stretch":case"Center":e-=t.desiredSize.width*t.pivot.x;break;case"Right":e-=t.desiredSize.width}switch(t.verticalAlignment){case"Auto":case"Top":i=i;break;case"Stretch":case"Center":i-=t.desiredSize.height*t.pivot.y;break;case"Bottom":i-=t.desiredSize.height}return{x:e,y:i}},o}(Rt),Wt=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Dt=function(t){function e(){var e=t.call(this)||this;return e.imageSource="",e.imageScale="None",e.imageAlign="None",e.stretch="Stretch",e}return Wt(e,t),Object.defineProperty(e.prototype,"source",{get:function(){return this.imageSource},set:function(t){this.imageSource=t,this.isDirt=!0},enumerable:!0,configurable:!0}),e.prototype.measure=function(t){return this.isDirt&&("Stretch"!==this.stretch||void 0===this.width&&void 0===this.height)&&(this.contentSize=C(this.source,this.contentSize),this.isDirt=!1),void 0!==this.width&&void 0!==this.height?(this.desiredSize=new Mt(this.width,this.height),this.contentSize=this.desiredSize):this.desiredSize=this.contentSize,this.desiredSize=this.validateDesiredSize(this.desiredSize,t),this.desiredSize},e.prototype.arrange=function(t){return this.actualSize=new Mt(this.desiredSize.width,this.desiredSize.height),this.updateBounds(),this.actualSize},e}(Ct),Xt=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),_t=function(t){function e(){var e=t.call(this)||this;return e.pathData="",e.transformPath=!0,e.absolutePath="",e.canMeasurePath=!1,e.absoluteBounds=new zt,e}return Xt(e,t),Object.defineProperty(e.prototype,"data",{get:function(){return this.pathData},set:function(t){this.pathData!==t&&(this.pathData=t,this.isDirt=!0)},enumerable:!0,configurable:!0}),e.prototype.measure=function(t){return this.staticSize&&void 0!==this.width&&void 0!==this.height?this.absoluteBounds=new zt(this.offsetX-this.width*this.pivot.x,this.offsetY-this.height*this.pivot.y,this.width,this.height):(!this.isDirt||!this.transformPath&&void 0!==this.width&&void 0!==this.height||this.absoluteBounds&&0!==this.absoluteBounds.height)&&!this.canMeasurePath||(this.absoluteBounds=g(this.data?this.data:"")),void 0===this.width?this.desiredSize=new Mt(this.absoluteBounds.width,this.height||this.absoluteBounds.height):void 0===this.height?this.desiredSize=new Mt(this.width||this.absoluteBounds.width,this.absoluteBounds.height):this.desiredSize=new Mt(this.width,this.height),this.desiredSize=this.validateDesiredSize(this.desiredSize,t),this.canMeasurePath=!1,this.desiredSize},e.prototype.arrange=function(t){return(this.isDirt||this.actualSize.width!==t.width||this.actualSize.height!==t.height)&&(this.isDirt=!0,this.absolutePath=this.updatePath(this.data,this.absoluteBounds,t),this.staticSize||(this.points=null)),this.actualSize=this.desiredSize,this.updateBounds(),this.isDirt=!1,this.actualSize},e.prototype.updatePath=function(t,e,i){var r=!1,o="",n=-e.x,a=-e.y,s=[];return i.width===e.width&&i.height===e.height||(n=i.width/Number(e.width?e.width:1),a=i.height/Number(e.height?e.height:1),r=!0),s=Y(t),s=q(s),o=(r||this.isDirt)&&this.transformPath?U(s,n,a,r,e.x,e.y,0,0):Q(s),r=!1,o},e}(Ct),Lt=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Yt=function(t,e,i,r){var o,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(n<3?o(a):n>3?o(e,i,a):o(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a},It=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Lt(i,t),i.equals=function(t,e){return t===e||!(!t||!e)&&(!t||!e||t.x===e.x&&t.y===e.y)},i.isEmptyPoint=function(t){return!t.x||!t.y},i.transform=function(t,e,i){var r={x:0,y:0};return r.x=Math.round(100*(t.x+i*Math.cos(e*Math.PI/180)))/100,r.y=Math.round(100*(t.y+i*Math.sin(e*Math.PI/180)))/100,r},i.findLength=function(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},i.findAngle=function(t,e){var i=Math.atan2(e.y-t.y,e.x-t.x);return i=180*i/Math.PI,(i%=360)<0&&(i+=360),i},i.distancePoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},i.getLengthFromListOfPoints=function(t){for(var e=0,i=0;i<t.length-1;i++)e+=this.distancePoints(t[i],t[i+1]);return e},i.adjustPoint=function(t,e,i,r){var o,n=i?{x:t.x,y:t.y}:{x:e.x,y:e.y};return t.x===e.x?t.y<e.y&&i||t.y>e.y&&!i?n.y+=r:n.y-=r:t.y===e.y?t.x<e.x&&i||t.x>e.x&&!i?n.x+=r:n.x-=r:i?(o=this.findAngle(t,e),n=this.transform(t,o,r)):(o=this.findAngle(e,t),n=this.transform(e,o,r)),n},i.direction=function(t,e){return Math.abs(e.x-t.x)>Math.abs(e.y-t.y)?t.x<e.x?"Right":"Left":t.y<e.y?"Bottom":"Top"},i.prototype.getClassName=function(){return"Point"},Yt([e.Property(0)],i.prototype,"x",void 0),Yt([e.Property(0)],i.prototype,"y",void 0),i}(e.ChildProperty),jt=function(){function t(){}return t.getContext=function(t){return t.getContext("2d")},t.prototype.setStyle=function(e,i){var r=t.getContext(e);"none"===i.fill&&(i.fill="transparent"),"none"===i.stroke&&(i.stroke="transparent"),r.strokeStyle=i.stroke,r.lineWidth=i.strokeWidth,0===i.strokeWidth&&(r.strokeStyle="transparent"),r.globalAlpha=i.opacity;var o=[];i.dashArray&&(o=this.parseDashArray(i.dashArray)),r.setLineDash(o),r.fillStyle=i.fill},t.prototype.rotateContext=function(e,i,r,o){var n=t.getContext(e);n.translate(r,o),n.rotate(i*Math.PI/180),n.translate(-r,-o)},t.prototype.setFontStyle=function(e,i){var r=t.getContext(e),o="";i.italic&&(o+="italic "),i.bold&&(o+="bold "),o+=i.fontSize+"px ",o+=i.fontFamily,r.font=o},t.prototype.parseDashArray=function(t){for(var e=[],i=-1!==t.indexOf(" ")?" ":",",r=0,o=t.split(i);r<o.length;r++){var n=o[r];e.push(Number(n))}return e},t.prototype.drawRectangle=function(e,i){if(!0===i.visible)if(i.cornerRadius)i.data=j(i.cornerRadius,i.height,i.width),this.drawPath(e,i);else{var r=t.getContext(e);r.save(),r.beginPath();i.cornerRadius;var o=i.x+i.width*i.pivotX,n=i.y+i.height*i.pivotY;this.rotateContext(e,i.angle,o,n),this.setStyle(e,i),r.rect(i.x,i.y,i.width,i.height),r.fillRect(i.x,i.y,i.width,i.height),r.fill(),r.stroke(),r.closePath(),r.restore()}},t.prototype.drawPath=function(e,i){var r=[];r=F(r=Y(i.data));var o=t.getContext(e);o.save(),o.beginPath();var n=i.y+i.height*i.pivotY,a=i.x+i.width*i.pivotX;this.rotateContext(e,i.angle,a,n),this.setStyle(e,i),o.translate(i.x,i.y),this.renderPath(e,i,r),o.fill(),o.translate(-i.x,-i.y),o.stroke(),o.restore()},t.prototype.renderPath=function(e,i,r){if(!0===i.visible){var o,n=t.getContext(e),a=void 0,s=void 0,h=void 0,d=void 0,c=void 0,l=void 0,u=void 0,y=void 0,f=void 0,p=r;for(u=0,y=0,f=0,o=p.length;f<o;++f){var g=p[f],x=g.command;switch("x1"in g&&(h=g.x1),"x2"in g&&(c=g.x2),"y1"in g&&(d=g.y1),"y2"in g&&(l=g.y2),"x"in g&&(u=g.x),"y"in g&&(y=g.y),x){case"M":n.moveTo(u,y),g.x=u,g.y=y;break;case"L":n.lineTo(u,y),g.x=u,g.y=y;break;case"C":n.bezierCurveTo(h,d,c,l,u,y),g.x=u,g.y=y,g.x1=h,g.y1=d,g.x2=c,g.y2=l;break;case"Q":n.quadraticCurveTo(h,d,u,y),g.x=u,g.y=y,g.x1=h,g.y1=d;break;case"A":var m={x:a,y:s},v=g.r1,w=g.r2,b=g.angle*(Math.PI/180),S=g.largeArc,A=g.sweep,k={x:u,y:y},M={x:Math.cos(b)*(m.x-k.x)/2+Math.sin(b)*(m.y-k.y)/2,y:-Math.sin(b)*(m.x-k.x)/2+Math.cos(b)*(m.y-k.y)/2},z=Math.pow(M.x,2)/Math.pow(v,2)+Math.pow(M.y,2)/Math.pow(w,2);z>1&&(v*=Math.sqrt(z),w*=Math.sqrt(z));var P=Math.pow(w,2)*Math.pow(M.x,2),C=(S===A?-1:1)*Math.sqrt((Math.pow(v,2)*Math.pow(w,2)-Math.pow(v,2)*Math.pow(M.y,2)-P)/(Math.pow(v,2)*Math.pow(M.y,2)+Math.pow(w,2)*Math.pow(M.x,2)));isNaN(C)&&(C=0);var T={x:C*v*M.y/w,y:C*-w*M.x/v},R={x:(m.x+k.x)/2+Math.cos(b)*T.x-Math.sin(b)*T.y,y:(m.y+k.y)/2+Math.sin(b)*T.x+Math.cos(b)*T.y},B=this.a([1,0],[(M.x-T.x)/v,(M.y-T.y)/w]),O=[(M.x-T.x)/v,(M.y-T.y)/w],E=[(-M.x-T.x)/v,(-M.y-T.y)/w],N=this.a(O,E);if(this.r(O,E)<=-1&&(N=Math.PI),this.r(O,E)>=1&&(N=0),g.centp=R,g.xAxisRotation=b,g.rx=v,g.ry=w,g.a1=B,g.ad=N,g.sweep=A,null!=n){var W=v>w?v:w,D=v>w?1:v/w,X=v>w?w/v:1;n.save(),n.translate(R.x,R.y),n.rotate(b),n.scale(D,X),n.arc(0,0,W,B,B+N,!A),n.scale(1/D,1/X),n.rotate(-b),n.translate(-R.x,-R.y),n.restore()}break;case"Z":case"z":n.closePath(),u=a,y=s}a=u,s=y}}},t.prototype.drawText=function(e,i){if(i.content&&!0===i.visible){var r=t.getContext(e);r.save(),this.setStyle(e,i);var o=i.x+i.width*i.pivotX,n=i.y+i.height*i.pivotY;this.rotateContext(e,i.angle,o,n),this.setFontStyle(e,i);var a=0,s=[];s=i.childNodes;var h=i.wrapBounds;if(r.fillStyle=i.color,h){var d=this.labelAlign(i,h,s);for(a=0;a<s.length;a++){var c=s[a],l=d.x+c.x-h.x,u=d.y+c.dy*a+.8*i.fontSize;if(r.fillText(c.text,l,u),"Underline"===i.textDecoration||"Overline"===i.textDecoration||"LineThrough"===i.textDecoration){var y=l,f=void 0,p=l+r.measureText(c.text).width,g=void 0;switch(i.textDecoration){case"Underline":f=u+2,g=u+2;break;case"Overline":f=d.y+c.dy*a,g=d.y+c.dy*a;break;case"LineThrough":f=(u+d.y+c.dy*a)/2+2,g=(u+d.y+c.dy*a)/2+2}r.beginPath(),r.moveTo(y,f),r.lineTo(p,g),r.strokeStyle=i.color,r.lineWidth=.08*i.fontSize,r.globalAlpha=i.opacity,r.stroke()}}}r.restore()}},t.prototype.m=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2))},t.prototype.r=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(this.m(t)*this.m(e))},t.prototype.a=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(this.r(t,e))},t.prototype.getMeetOffset=function(t,e,i){var r=Math.max(e,i),o=Math.min(e,i);switch(t){case"min":return 0;case"mid":return(r-o)/2;case"max":return r-o;default:return 0}},t.prototype.getSliceOffset=function(t,e,i,r){switch(t){case"min":return 0;case"mid":return(e-i)/2*r/e;case"max":return(e-i)*r/e;default:return 0}},t.prototype.image=function(t,e,i,r,o,n,a){t.beginPath();var s=e.width,h=e.height,d=o,c=n,l=0,u=0;if(t.globalAlpha=a.opacity,a&&"None"!==a.alignment){var y=a.alignment.toLowerCase().substr(1,3),f=a.alignment.toLowerCase().substr(5,3);if("Slice"===a.scale){var p=function(){l=d,u=h*d/s},g=function(){l=s*c/h,u=c};d>c?(p(),c>u&&g()):d===c?s>h?g():p():(g(),d>l&&p());var x=this.getSliceOffset(y,l,d,s),m=this.getSliceOffset(f,u,c,h),v=s-x,w=h-m,b=l-x*(l/s),S=u-m*(u/h),k=A("canvas",{width:o.toString(),height:n.toString()});k.getContext("2d").drawImage(e,x,m,v,w,0,0,b,S),t.drawImage(k,i,r,o,n)}else if("Meet"===a.scale){var M=h/s,z=c/d;l=z>M?d:c/M,u=z>M?d*M:c,i+=this.getMeetOffset(y,l,d),r+=this.getMeetOffset(f,u,c),t.drawImage(e,0,0,s,h,i,r,l,u)}else t.drawImage(e,i,r,o,n)}else e.complete?t.drawImage(e,i,r,o,n):e.onload=function(){t.drawImage(e,i,r,o,n)};t.closePath()},t.prototype.loadImage=function(t,e,i,r,o){this.rotateContext(i,e.angle,r,o);var n=new Image;n.src=e.source,this.image(t,n,e.x,e.y,e.width,e.height,e)},t.prototype.drawImage=function(e,i,r,o){var n=this;if(i.visible){var a=t.getContext(e);a.save();var s=i.x+i.width*i.pivotX,h=i.y+i.height*i.pivotY,d=new Image;d.src=i.source;var c=a.canvas.id.split("_");c[c.length-1];o?d.onload=function(){n.loadImage(a,i,e,s,h)}:this.loadImage(a,i,e,s,h),a.restore()}},t.prototype.labelAlign=function(t,e,i){var r=new Mt(e.width,i.length*(1.2*t.fontSize)),o={x:0,y:0},n=t.x,a=t.y,s=.5*t.width,h=.5*t.height;return"left"===t.textAlign?s=0:"center"===t.textAlign?s=e.width>t.width&&("Ellipsis"===t.textOverflow||"Clip"===t.textOverflow)?0:.5*t.width:"right"===t.textAlign&&(s=1*t.width),o.x=n+s+(e?e.x:0),o.y=a+h-r.height/2,o},t}(),Ft=function(){function t(t,e){this.renderer=null,this.isSvgMode=!0,this.diagramId=t,this.element=S(this.diagramId),this.isSvgMode=e,this.renderer=new jt}return t.prototype.renderElement=function(t,e,i,r,o,n,a,s){t instanceof Rt?this.renderContainer(t,e,i,r,o,n,a,s):t instanceof Dt?this.renderImageElement(t,e,r,o,a):t instanceof _t?this.renderPathElement(t,e,r,o,a):t instanceof Ot?this.renderTextElement(t,e,r,o,a):this.renderRect(t,e,r,o)},t.prototype.renderImageElement=function(t,e,i,r,o){var n=this.getBaseAttributes(t,i);n.cornerRadius=0,this.renderer.drawRectangle(e,n);var a,s,h,d;if("Stretch"===t.stretch)a=t.actualSize.width,s=t.actualSize.height;else{var c=t.contentSize.width,l=t.contentSize.height,u=n.width/c,y=n.height/l,f=void 0;switch(t.stretch){case"Meet":a=c*(f=Math.min(u,y)),s=l*f,n.x+=Math.abs(n.width-a)/2,n.y+=Math.abs(n.height-s)/2;break;case"Slice":u=n.width/c,y=n.height/l,a=c*(f=Math.max(u,y)),s=l*f,h=n.width/a*c,d=n.height/s*l;break;case"None":a=c,s=l}}n.width=a,n.height=s,n.sourceWidth=h,n.sourceHeight=d,n.source=t.source,n.alignment=t.imageAlign,n.scale=t.imageScale,this.renderer.drawImage(e,n,r,o)},t.prototype.renderPathElement=function(t,e,i,r,o){var n=this.getBaseAttributes(t,i);n.data=t.absolutePath,n.data=t.absolutePath;t.id;this.isSvgMode||(n.x=n.x,n.y=n.y),this.renderer.drawPath(e,n)},t.prototype.renderTextElement=function(t,e,i,r,o){var n=this.getBaseAttributes(t,i);n.cornerRadius=0,n.whiteSpace=X(t.style.whiteSpace,t.style.textWrapping),n.content=t.content,n.breakWord=N(t.style.textWrapping),n.textAlign=E(t.style.textAlign),n.color=t.style.color,n.italic=t.style.italic,n.bold=t.style.bold,n.fontSize=t.style.fontSize,n.fontFamily=t.style.fontFamily,n.textOverflow=t.style.textOverflow,n.textDecoration=t.style.textDecoration,n.doWrap=t.doWrap,n.wrapBounds=t.wrapBounds,n.childNodes=t.childNodes,n.dashArray="",n.strokeWidth=0,n.fill=t.style.fill;t.content?t.content:t.id;this.renderer.drawRectangle(e,n),this.renderer.drawText(e,n)},t.prototype.renderContainer=function(t,e,i,r,o,n,a,s){if(r={tx:0,ty:0,scale:1},this.diagramId&&(o=o),this.renderRect(t,e,r,o),t.hasChildren())for(var h=0,d=t.children;h<d.length;h++){var c=d[h];this.renderElement(c,e,i,r,o,!0,a,s)}},t.prototype.renderRect=function(t,e,i,r){var o=this.getBaseAttributes(t,i);o.cornerRadius=t.cornerRadius||0;t.id;this.renderer.drawRectangle(e,o)},t.prototype.getBaseAttributes=function(t,e){var i={width:t.actualSize.width,height:t.actualSize.height,x:t.offsetX-t.actualSize.width*t.pivot.x+.5,y:t.offsetY-t.actualSize.height*t.pivot.y+.5,fill:t.style.fill,stroke:t.style.strokeColor,angle:t.rotateAngle+t.parentTransform,pivotX:t.pivot.x,pivotY:t.pivot.y,strokeWidth:t.style.strokeWidth,dashArray:t.style.strokeDashArray||"",opacity:t.style.opacity,visible:t.visible,id:t.id,gradient:t.style.gradient};return e&&(i.x+=e.tx,i.y+=e.ty),i},t}(),Ut=function(){function t(){}return t.prototype.parseDashArray=function(t){return[]},t.prototype.drawRectangle=function(t,e,i,r,o,n,a){var s;s=e.id===t.id?e.id+"_container":e.id;var h;h&&!o||(h=document.createElementNS("http://www.w3.org/2000/svg","rect"),t.appendChild(h));var d={id:s,x:e.x.toString(),y:e.y.toString(),width:e.width.toString(),height:e.height.toString(),visibility:e.visible?"visible":"hidden",transform:"rotate("+e.angle+","+(e.x+e.width*e.pivotX)+","+(e.y+e.height*e.pivotY)+")",rx:e.cornerRadius||0,ry:e.cornerRadius||0,opacity:e.opacity,"aria-label":a||""};e.class&&(d.class=e.class);a||(d["pointer-events"]="none"),J(h,d),this.setSvgStyle(h,e,i)},t.prototype.updateSelectionRegion=function(t,e){var i;i=t.parentNode.getElementById(e.id);var r;r={id:e.id,x:e.x.toString(),y:e.y.toString(),width:e.width.toString(),height:e.height.toString(),transform:"rotate("+e.angle+","+(e.x+e.width*e.pivotX)+","+(e.y+e.height*e.pivotY)+")",class:"e-diagram-selected-region"},i||(i=document.createElementNS("http://www.w3.org/2000/svg","rect"),t.appendChild(i)),this.setSvgStyle(i,e),J(i,r)},t.prototype.createGElement=function(t,e){return K(t,e)},t.prototype.drawCircle=function(t,e,i,r){var o=document.createElementNS("http://www.w3.org/2000/svg","circle");this.setSvgStyle(o,e);var n=e.class||"";i||(n+=" e-disabled");var a={id:e.id,cx:e.centerX,cy:e.centerY,r:e.radius,visibility:e.visible?"visible":"hidden",class:n,"aria-label":r?r["aria-label"]:""};o.style.display=e.visible?"block":"none",J(o,a),t.appendChild(o)},t.prototype.setSvgStyle=function(t,e,i){if(e.canApplyStyle||void 0===e.canApplyStyle){"none"===e.fill&&(e.fill="transparent"),"none"===e.stroke&&(e.stroke="transparent");var r=[],o=void 0;void 0!==e.dashArray&&(r=(new jt).parseDashArray(e.dashArray)),o=e.fill,e.stroke&&t.setAttribute("stroke",e.stroke),void 0!==e.strokeWidth&&null!==e.strokeWidth&&t.setAttribute("stroke-width",e.strokeWidth.toString()),r&&t.setAttribute("stroke-dasharray",r.toString()),o&&t.setAttribute("fill",o)}},t.prototype.svgLabelAlign=function(t,e,i){var r=new Mt(e.width,i.length*(1.2*t.fontSize)),o={x:0,y:0},n=.5*t.width,a=.5*t.height;return"left"===t.textAlign?n=0:"center"===t.textAlign?n=e.width>t.width&&("Ellipsis"===t.textOverflow||"Clip"===t.textOverflow)?0:.5*t.width:"right"===t.textAlign&&(n=1*t.width),o.x=0+n+(e?e.x:0),o.y=1.2+a-r.height/2,o},t.prototype.drawLine=function(t,e){var i=document.createElementNS("http://www.w3.org/2000/svg","line");this.setSvgStyle(i,e);var r=e.x+e.width*e.pivotX,o=e.y+e.height*e.pivotY,n={id:e.id,x1:e.startPoint.x+e.x,y1:e.startPoint.y+e.y,x2:e.endPoint.x+e.x,y2:e.endPoint.y+e.y,stroke:e.stroke,"stroke-width":e.strokeWidth.toString(),opacity:e.opacity.toString(),transform:"rotate("+e.angle+" "+r+" "+o+")",visibility:e.visible?"visible":"hidden"};e.class&&(n.class=e.class),J(i,n),t.appendChild(i)},t.prototype.drawPath=function(t,e,i,r,o,n){var a=Math.floor(10*Math.random()+1);t.id,a.toString();var s=[];s=F(s=Y(e.data));var h;o&&(h=o.getElementById(e.id+"_groupElement_shadow"))&&h.parentNode.removeChild(h);var d;o&&(d=o.getElementById(e.id)),d&&!r||(d=document.createElementNS("http://www.w3.org/2000/svg","path"),t.appendChild(d)),this.renderPath(d,e,s);var c={id:e.id,transform:"rotate("+e.angle+","+(e.x+e.width*e.pivotX)+","+(e.y+e.height*e.pivotY)+")translate("+e.x+","+e.y+")",visibility:e.visible?"visible":"hidden",opacity:e.opacity,"aria-label":n||""};e.class&&(c.class=e.class),J(d,c),this.setSvgStyle(d,e,i)},t.prototype.renderPath=function(t,e,i){var r,o,n,a,s,h,d,c,l=i,u="";for(s=0,h=0,c=0,d=l.length;c<d;++c){var y=l[c],f=y.command;switch("x1"in y&&(r=y.x1),"x2"in y&&(n=y.x2),"y1"in y&&(o=y.y1),"y2"in y&&(a=y.y2),"x"in y&&(s=y.x),"y"in y&&(h=y.y),f){case"M":u=u+"M"+s.toString()+","+h.toString()+" ";break;case"L":u=u+"L"+s.toString()+","+h.toString()+" ";break;case"C":u=u+"C"+r.toString()+","+o.toString()+","+n.toString()+","+a.toString()+",",u+=s.toString()+","+h.toString()+" ";break;case"Q":u=u+"Q"+r.toString()+","+o.toString()+","+s.toString()+","+h.toString()+" ";break;case"A":u=u+"A"+y.r1.toString()+","+y.r2.toString()+","+y.angle.toString()+",",u+=y.largeArc.toString()+","+y.sweep+","+s.toString()+","+h.toString()+" ";break;case"Z":case"z":u+="Z "}}t.setAttribute("d",u)},t}();return t.Thickness=gt,t.Margin=xt,t.Stop=mt,t.Gradient=vt,t.LinearGradient=wt,t.RadialGradient=bt,t.ShapeStyle=St,t.StrokeStyle=At,t.TextStyle=kt,t.Canvas=Nt,t.Container=Rt,t.DrawingElement=Ct,t.ImageElement=Dt,t.PathElement=_t,t.TextElement=Ot,t.Matrix=Pt,t.identityMatrix=i,t.transformPointByMatrix=r,t.transformPointsByMatrix=o,t.rotateMatrix=n,t.scaleMatrix=a,t.translateMatrix=s,t.multiplyMatrix=l,t.Point=It,t.Rect=zt,t.Size=Mt,t.CanvasRenderer=jt,t.refreshDiagramElements=G,t.DrawingRenderer=Ft,t.SvgRenderer=Ut,t.setAttributeSvg=J,t.createSvgElement=K,t.createSvg=$,t.getParentSvg=tt,t.randomId=T,t.cornersPointsBeforeRotation=R,t.rotateSize=B,t.getBounds=O,t.textAlignToString=E,t.wordBreakToString=N,t.bBoxText=W,t.middleElement=D,t.whiteSpaceToString=X,t.rotatePoint=_,t.getOffset=L,t.findNearestPoint=et,t.findElementUnderMouse=it,t.findTargetElement=rt,t.intersect3=ot,t.intersect2=nt,t.getLineSegment=at,t.getPoints=st,t.getBezierDirection=ht,t.updateStyle=dt,t.scaleElement=ct,t.contains=lt,t.getPoint=ut,t.getChildNode=f,t.translatePoints=p,t.measurePath=g,t.measureText=b,t.getDiagramElement=S,t.createHtmlElement=A,t.setAttributeHtml=k,t.getAdornerLayerSvg=M,t.getSelectorElement=z,t.createMeasureElements=P,t.measureImage=C,t.processPathData=Y,t.parsePathData=I,t.getRectanglePath=j,t.pathSegmentCollection=F,t.transformPath=U,t.updatedSegment=V,t.scalePathData=H,t.splitArrayCollection=q,t.getPathString=Q,t.getString=Z,t}({},ej.base),this.ejs=ej;
this.ej=this.ej||{},this.ej.drawings=function(t,e){"use strict";function i(){return new Pt(1,0,0,1,0,0,t.MatrixTypes.Identity)}function r(t,e){var i=c(t,e.x,e.y);return{x:Math.round(100*i.x)/100,y:Math.round(100*i.y)/100}}function o(t,e){for(var i=[],o=0,n=e;o<n.length;o++){var a=n[o];i.push(r(t,a))}return i}function n(t,e,i,r){l(t,d(.017453292519943295*(e%=360),i||0,r||0))}function a(t,e,i,r,o){void 0===r&&(r=0),void 0===o&&(o=0),l(t,h(e,i,r,o))}function s(e,i,r){return e.type&t.MatrixTypes.Identity?(e.type=t.MatrixTypes.Translation,void u(e,1,0,0,1,i,r)):e.type&t.MatrixTypes.Unknown?(e.offsetX+=i,void(e.offsetY+=r)):(e.offsetX+=i,e.offsetY+=r,void(e.type|=t.MatrixTypes.Translation))}function h(e,r,o,n){var a=i();return a.type=o||n?t.MatrixTypes.Scaling|t.MatrixTypes.Translation:t.MatrixTypes.Scaling,u(a,e,0,0,r,o-e*o,n-r*n),a}function d(e,r,o){var n=i(),a=Math.sin(e),s=Math.cos(e),h=r*(1-s)+o*a,d=o*(1-s)-r*a;return n.type=t.MatrixTypes.Unknown,u(n,s,a,-a,s,h,d),n}function c(e,i,r){switch(e.type){case t.MatrixTypes.Identity:break;case t.MatrixTypes.Translation:i+=e.offsetX,r+=e.offsetY;break;case t.MatrixTypes.Scaling:i*=e.m11,r*=e.m22;break;case t.MatrixTypes.Translation|t.MatrixTypes.Scaling:i*=e.m11,i+=e.offsetX,r*=e.m22,r+=e.offsetY;break;default:var o=r*e.m21+e.offsetX,n=i*e.m12+e.offsetY;i*=e.m11,i+=o,r*=e.m22,r+=n}return{x:i,y:r}}function l(e,r){var o=e.type,n=r.type;if(n!==t.MatrixTypes.Identity){if(o===t.MatrixTypes.Identity)return y(e,r),void(e.type=r.type);if(n===t.MatrixTypes.Translation)return e.offsetX+=r.offsetX,e.offsetY+=r.offsetY,void(o!==t.MatrixTypes.Unknown&&(e.type|=t.MatrixTypes.Translation));if(o!==t.MatrixTypes.Translation){var a=o<<4|n;switch(a){case 34:return e.m11*=r.m11,void(e.m22*=r.m22);case 35:return e.m11*=r.m11,e.m22*=r.m22,e.offsetX=r.offsetX,e.offsetY=r.offsetY,void(e.type=t.MatrixTypes.Translation|t.MatrixTypes.Scaling);case 36:break;default:switch(a){case 50:return e.m11*=r.m11,e.m22*=r.m22,e.offsetX*=r.m11,void(e.offsetY*=r.m22);case 51:return e.m11*=r.m11,e.m22*=r.m22,e.offsetX=r.m11*e.offsetX+r.offsetX,void(e.offsetY=r.m22*e.offsetY+r.offsetY);case 52:break;default:switch(a){case 66:case 67:case 68:break;default:return}}}var s=i();return u(s,e.m11*r.m11+e.m12*r.m21,e.m11*r.m12+e.m12*r.m22,e.m21*r.m11+e.m22*r.m21,e.m21*r.m12+e.m22*r.m22,e.offsetX*r.m11+e.offsetY*r.m21+r.offsetX,e.offsetX*r.m12+e.offsetY*r.m22+r.offsetY),s.m21||s.m12?s.type=t.MatrixTypes.Unknown:((s.m11&&1!==s.m11||s.m22&&1!==s.m22)&&(s.type=t.MatrixTypes.Scaling),(s.offsetX||s.offsetY)&&(s.type|=t.MatrixTypes.Translation),(s.type&(t.MatrixTypes.Translation|t.MatrixTypes.Scaling))===t.MatrixTypes.Identity&&(s.type=t.MatrixTypes.Identity),s.type=t.MatrixTypes.Scaling|t.MatrixTypes.Translation),y(e,s),void(e.type=s.type)}var h=e.offsetX,d=e.offsetY;if(e.offsetX=h*r.m11+d*r.m21+r.offsetX,e.offsetY=h*r.m12+d*r.m22+r.offsetY,n===t.MatrixTypes.Unknown)return void(e.type=t.MatrixTypes.Unknown);e.type=t.MatrixTypes.Translation|t.MatrixTypes.Scaling}}function u(t,e,i,r,o,n,a){t.m11=e,t.m12=i,t.m21=r,t.m22=o,t.offsetX=n,t.offsetY=a}function y(t,e){t.m11=e.m11,t.m12=e.m12,t.m21=e.m21,t.m22=e.m22,t.offsetX=e.offsetX,t.offsetY=e.offsetY,t.type=e.type}function f(t){var i,r=[];if("msie"===e.Browser.info.name||"edge"===e.Browser.info.name)for(var o=0;o<t.childNodes.length;o++)1===(i=t.childNodes[o]).nodeType&&r.push(i);else r=t.children;return r}function p(t,e){for(var o=[],a=0,s=e;a<s.length;a++){var h=s[a],d={x:t.offsetX-t.actualSize.width*t.pivot.x+h.x,y:t.offsetY-t.actualSize.height*t.pivot.y+h.y},c=void 0,l=t.rotateAngle+t.parentTransform;l&&n(c=i(),l,t.offsetX,t.offsetY),c&&(d=r(c,d)),o.push(d)}return o}function g(t){var e="pathTable";if(window[e]||(window[e]={}),t){window.measureElement.style.visibility="visible";var i=f(window.measureElement.children[2])[0];i.setAttribute("d",t);var r=void 0;window[e][t]?r=window[e][t]:window[e][t]=r=i.getBBox();var o=new zt(r.x,r.y,r.width,r.height);return window.measureElement.style.visibility="hidden",o}return new zt(0,0,0,0)}function x(t,e){var i={fill:t.style.fill,stroke:t.style.strokeColor,angle:t.rotateAngle+t.parentTransform,pivotX:t.pivot.x,pivotY:t.pivot.y,strokeWidth:t.style.strokeWidth,dashArray:t.style.strokeDashArray,opacity:t.style.opacity,visible:t.visible,id:t.id,width:e||t.actualSize.width,height:t.actualSize.height,x:t.offsetX-t.actualSize.width*t.pivot.x+.5,y:t.offsetY-t.actualSize.height*t.pivot.y+.5};return i.fontSize=t.style.fontSize,i.fontFamily=t.style.fontFamily,i.textOverflow=t.style.textOverflow,i.textDecoration=t.style.textDecoration,i.doWrap=t.doWrap,i.whiteSpace=X(t.style.whiteSpace,t.style.textWrapping),i.content=t.content,i.textWrapping=t.style.textWrapping,i.breakWord=N(t.style.textWrapping),i.textAlign=E(t.style.textAlign),i.color=t.style.color,i.italic=t.style.italic,i.bold=t.style.bold,i.dashArray="",i.strokeWidth=0,i.fill="",i}function m(t,e){var i,r,o=[],n=0,a=e||t.content;if("nowrap"!==t.whiteSpace&&"pre"!==t.whiteSpace)if("breakall"===t.breakWord)for(i="",i+=a[0],n=0;n<a.length;n++)if((r=W(i,t))>=t.width&&i.length>0)o[o.length]={text:i,x:0,dy:0,width:r},i="";else{(i+=a[n+1]||"").indexOf("\n")>-1&&(i=i.replace("\n",""));var s=W(i,t);Math.ceil(s)+2>=t.width&&i.length>0&&(o[o.length]={text:i,x:0,dy:0,width:s},i=""),n===a.length-1&&i.length>0&&(o[o.length]={text:i,x:0,dy:0,width:s},i="")}else o=v(t,e);else o[o.length]={text:a,x:0,dy:0,width:W(a,t)};return o}function v(t,e){var i,r,o,n,a=[],s="",h=0,d=0,c="nowrap"!==t.whiteSpace,l=(e||t.content).split("\n");for(h=0;h<l.length;h++)for(i="NoWrap"!==t.textWrapping?l[h].split(" "):l,d=0;d<i.length;d++){var u=W(r=(s+=((0!==d||1===i.length)&&c&&s.length>0?" ":"")+i[d])+(i[d+1]||""),t);Math.floor(u)>t.width-2&&s.length>0?(a[a.length]={text:s,x:0,dy:0,width:r===s?u:s===n?o:W(s,t)},s=""):d===i.length-1&&(a[a.length]={text:s,x:0,dy:0,width:u},s=""),n=r,o=u}return a}function w(t,e){var i,r,o={x:0,width:0},n=0;for(n=0;n<e.length;n++)r=i=e[n].width,i="left"===t.textAlign?0:"center"===t.textAlign?i>t.width&&("Ellipsis"===t.textOverflow||"Clip"===t.textOverflow)?0:-i/2:"right"===t.textAlign?-i:e.length>1?0:-i/2,e[n].dy=1.2*t.fontSize,e[n].x=i,o?(o.x=Math.min(o.x,i),o.width=Math.max(o.width,r)):o={x:i,width:r};return o}function b(t,e,i,r,o){var n,a,s=new Mt(0,0),h=x(t,r);return t.childNodes=n=m(h,o),t.wrapBounds=a=w(h,n),s.width=a.width,t.wrapBounds.width>=r&&"Wrap"!==h.textOverflow&&(s.width=r),s.height=n.length*t.style.fontSize*1.2,s}function S(t,e){var i;return e&&(i=document.getElementById(e)),i?i.querySelector("#"+t):document.getElementById(t)}function A(t,i){var r=e.createElement(t);return k(r,i),r}function k(t,e){for(var i=Object.keys(e),r=0;r<i.length;r++)t.setAttribute(i[r],e[i[r]])}function M(t,e){var i=null,r=S(t+e+"_diagramAdornerLayer");return r&&(i=r.getElementsByClassName("e-adorner-layer"+e)[0]),i}function z(t,e){var i=null,r=M(t,e);return r&&(i=r.getElementById(t+"_SelectorElement")),i}function P(){if(window.measureElement)window.measureElement.usageCount+=1;else{var t=A("div",{id:"measureElement",style:"visibility:hidden ; height: 0px ; width: 0px; overflow: hidden;"}),e=A("span",{style:"display:inline-block ; line-height: normal"});t.appendChild(e);var i=void 0;i=A("img",{}),t.appendChild(i);var r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.setAttribute("xlink","http://www.w3.org/1999/xlink"),t.appendChild(r);var o=document.createElementNS("http://www.w3.org/2000/svg","path");r.appendChild(o);document.createTextNode("");var n=document.createElementNS("http://www.w3.org/2000/svg","text");n.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),r.appendChild(n),window.measureElement=t,window.measureElement.usageCount=1,document.body.appendChild(t)}}function C(t,e){window.measureElement.style.visibility="visible";var i=window.measureElement.children[1];i.setAttribute("src",t);var r=i.getBoundingClientRect(),o=r.width,n=r.height;return e=new Mt(o,n),window.measureElement.style.visibility="hidden",e}function T(){for(var t,e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",i="",r=0;r<5;r++){if("crypto"in window&&"getRandomValues"in crypto){var o=new Uint16Array(1);t=(window.msCrypto||window.crypto).getRandomValues(o)[0]%(e.length-1)}else t=Math.floor(Math.random()*e.length);0===r&&t<10?r--:i+=e.substring(t,t+1)}return i}function R(t){new zt;var e=t.offsetY-t.actualSize.height*t.pivot.y,i=t.offsetY+t.actualSize.height*(1-t.pivot.y),r=t.offsetX-t.actualSize.width*t.pivot.x,o=t.offsetX+t.actualSize.width*(1-t.pivot.x),n={x:r,y:e},a={x:o,y:e},s={x:r,y:i},h={x:o,y:i};return zt.toBounds([n,a,s,h])}function B(t,e){var o=i();n(o,e,0,0);var a=r(o,{x:0,y:0}),s=r(o,{x:t.width,y:0}),h=r(o,{x:0,y:t.height}),d=r(o,{x:t.width,y:t.height}),c=Math.min(a.x,s.x,h.x,d.x),l=Math.min(a.y,s.y,h.y,d.y),u=Math.max(a.x,s.x,h.x,d.x),y=Math.max(a.y,s.y,h.y,d.y);return new Mt(u-c,y-l)}function O(t){var e,o=new zt,a=(e=R(t)).middleLeft,s=e.topCenter,h=e.bottomCenter,d=e.middleRight,c=e.topLeft,l=e.topRight,u=e.bottomLeft,y=e.bottomRight;if(t.corners={topLeft:c,topCenter:s,topRight:l,middleLeft:a,middleRight:d,bottomLeft:u,bottomCenter:h,bottomRight:y},0!==t.rotateAngle||0!==t.parentTransform){var f=i();n(f,t.rotateAngle+t.parentTransform,t.offsetX,t.offsetY),t.corners.topLeft=c=r(f,c),t.corners.topCenter=s=r(f,s),t.corners.topRight=l=r(f,l),t.corners.middleLeft=a=r(f,a),t.corners.middleRight=d=r(f,d),t.corners.bottomLeft=u=r(f,u),t.corners.bottomCenter=h=r(f,h),t.corners.bottomRight=y=r(f,y)}return o=zt.toBounds([c,l,u,y]),t.corners.left=o.left,t.corners.right=o.right,t.corners.top=o.top,t.corners.bottom=o.bottom,t.corners.center=o.center,t.corners.width=o.width,t.corners.height=o.height,o}function E(t){var e="";switch(t){case"Center":e="center";break;case"Left":e="left";break;case"Right":e="right"}return e}function N(t){var e="";switch(t){case"Wrap":e="breakall";break;case"NoWrap":e="keepall";break;case"WrapWithOverflow":e="normal";break;case"LineThrough":e="line-through"}return e}function W(t,e){window.measureElement.style.visibility="visible";var i=f(window.measureElement.children[2])[1];i.textContent=t,i.setAttribute("style","font-size:"+e.fontSize+"px; font-family:"+e.fontFamily+";font-weight:"+(e.bold?"bold":"normal"));var r=i.getBBox().width;return window.measureElement.style.visibility="hidden",r}function D(t,e){return(t+e)/2}function X(t,e){if("NoWrap"===e&&"PreserveAll"===t)return"pre";var i="";switch(t){case"CollapseAll":i="nowrap";break;case"CollapseSpace":i="pre-line";break;case"PreserveAll":i="pre-wrap"}return i}function _(t,e,o,a){if(0!==t){var s=i();return n(s,t,e,o),r(s,a)}return a}function L(t,e){return{x:t.x+e.desiredSize.width*e.pivot.x,y:t.y+e.desiredSize.height*e.pivot.y}}function Y(t){var e,i=[],r=I(t);if(r.length>0)for(var o=0;o<r.length;o++){var n=r[o],a="";switch((a=n[0]).toLowerCase()){case"m":for(e=1;e<n.length;e++)i.push({command:a,x:n[e],y:n[e+1]}),e+=1,"m"===a?a="l":"M"===a&&(a="L");break;case"l":case"t":for(e=1;e<n.length;e++)i.push({command:a,x:n[e],y:n[e+1]}),e+=1;break;case"h":for(e=1;e<n.length;e++)i.push({command:a,x:n[e]});break;case"v":for(e=1;e<n.length;e++)i.push({command:a,y:n[e]});break;case"z":i.push({command:a});break;case"c":for(e=1;e<n.length;e++)i.push({command:a,x1:n[e],y1:n[e+1],x2:n[e+2],y2:n[e+3],x:n[e+4],y:n[e+5]}),e+=5;break;case"s":for(e=1;e<n.length;e++)i.push({command:a,x2:n[e],y2:n[e+1],x:n[e+2],y:n[e+3]}),e+=3;break;case"q":for(e=1;e<n.length;e++)i.push({command:a,x1:n[e],y1:n[e+1],x:n[e+2],y:n[e+3]}),e+=3;break;case"a":for(e=1;e<n.length;e++)i.push({command:a,r1:n[e],r2:n[e+1],angle:n[e+2],largeArc:n[e+3],sweep:n[e+4],x:n[e+5],y:n[e+6]}),e+=6}}return i}function I(t){var e=/([a-z]+)|([+-]?(?:\d+\.?\d*|\.\d+))/gi,i=[],r=[],o={};e.lastIndex=0;var n=!1;for(o=e.exec(t);o;)"e"===o[1]?n=!0:o[1]?("zm"===o[1].toLowerCase()?(i.length&&r.push(i),r.push(["Z"]),i=[o[1].substring(1,2)]):(i.length&&r.push(i),i=[o[1]]),n=!1):(i.length||(i=[]),n||i.push(Number(o[2])),n=!1),o=e.exec(t);return i.length&&r.push(i),r}function j(t,e,i){var r,o,n="",a=[{x:0+t,y:0},{x:0+i-t,y:0},{x:0+i,y:0+t},{x:0+i,y:0+e-t},{x:0+i-t,y:0+e},{x:0+t,y:0+e},{x:0,y:0+e-t},{x:0,y:0+t}],s=[{x:0+i,y:0},{x:0+i,y:0+e},{x:0,y:0+e},{x:0,y:0}],h=0;n="M"+a[0].x+" "+a[0].y;var d;for(d=0;d<a.length;d+=2)n+="L"+(r=a[d+1]).x+" "+r.y,o=a[d+2]||a[0],n+="Q"+s[h].x+" "+s[h].y+" "+o.x+" "+o.y,h++;return n}function F(t){var e,i,r,o,n,a,s,h,d,c,l=[];for(s=0,h=0,c=0,d=t.length;c<d;++c){var u=t[c],y="";y=u.command,"y1"in u&&(o=u.y1),"y2"in u&&(a=u.y2),"x1"in u&&(r=u.x1),"x2"in u&&(n=u.x2),"x"in u&&(s=u.x),"y"in u&&(h=u.y);var f=l[l.length-1];switch(y){case"M":l.push({command:"M",x:s,y:h});break;case"L":l.push({command:"L",x0:e,y0:i,x:s,y:h});break;case"H":l.push({command:"L",x0:e,y0:i,x:s,y:i});break;case"V":l.push({command:"L",x0:e,y0:i,x:e,y:h});break;case"C":l.push({command:"C",x0:e,y0:i,x1:r,y1:o,x2:n,y2:a,x:s,y:h});break;case"S":if(f){var p=void 0,g={x:2*e-(p="C"===f.command||"S"===f.command?{x:f.x2,y:f.y2}:{x:e,y:i}).x,y:2*i-p.y};l.push({command:"C",x0:e,y0:i,x1:g.x,y1:g.y,x2:n,y2:a,x:s,y:h})}break;case"Q":l.push({command:"Q",x0:e,y0:i,x1:r,y1:o,x:s,y:h});break;case"T":if(f){var p=void 0,g={x:2*e-(p="Q"===f.command?{x:f.x1,y:f.y1}:{x:e,y:i}).x,y:2*i-p.y};l.push({command:"Q",x0:e,y0:i,x1:g.x,y1:g.y,x:s,y:h})}break;case"A":var x=u;x.command="A",l.push(x);break;case"Z":case"z":l.push({command:"Z"}),s=e,h=i}e=s,i=h}return l}function U(t,e,i,r,o,n,a,s){var h,d,c,l,u,y,f,p,g;for(u=0,y=0,p=0,f=t.length;p<f;++p){var x=t[p],m=x.command;"x"in x&&(u=x.x),"y"in x&&(y=x.y),"y1"in x&&(d=x.y1),"y2"in x&&(l=x.y2),"x1"in x&&(h=x.x1),"x2"in x&&(c=x.x2),r?(void 0!==u&&(u=H(u,e,o,a)),void 0!==y&&(y=H(y,i,n,s)),void 0!==h&&(h=H(h,e,o,a)),void 0!==d&&(d=H(d,i,n,s)),void 0!==c&&(c=H(c,e,o,a)),void 0!==l&&(l=H(l,i,n,s))):(void 0!==u&&(u=Number((u+e).toFixed(2))),void 0!==y&&(y=Number((y+i).toFixed(2))),void 0!==h&&(h=Number((h+e).toFixed(2))),void 0!==d&&(d=Number((d+i).toFixed(2))),void 0!==c&&(c=Number((c+e).toFixed(2))),void 0!==l&&(l=Number((l+i).toFixed(2)))),(g=V(x,m,{x:u,y:y,x1:h,y1:d,x2:c,y2:l,r1:x.r1,r2:x.r2},r,e,i))&&(t[p]=g)}return Q(t)}function V(t,e,i,r,o,n){switch(e){case"M":case"L":t.x=i.x,t.y=i.y;break;case"H":t.x=i.x;break;case"V":t.y=i.y;break;case"C":t.x=i.x,t.y=i.y,t.x1=i.x1,t.y1=i.y1,t.x2=i.x2,t.y2=i.y2;break;case"S":t.x=i.x,t.y=i.y,t.x2=i.x2,t.y2=i.y2;break;case"Q":t.x=i.x,t.y=i.y,t.x1=i.x1,t.y1=i.y1;break;case"T":t.x=i.x,t.y=i.y;break;case"A":var a=i.r1,s=i.r2;r&&(i.r1=a*=o,i.r2=s*=n),t.x=i.x,t.y=i.y,t.r1=i.r1,t.r2=i.r2;break;case"z":case"Z":t={command:"Z"}}return t}function H(t,e,i,r){return t!==i?t=r!==i?t*e-(Number(i)*e-Number(i))+(r-Number(i)):Number(t)*e-(Number(i)*e-Number(i)):r!==i&&(t=r),Number(t.toFixed(2))}function q(t){var e,i,r,o,n,a,s,h,d,c;for(s=0,h=0,c=0,d=t.length;c<d;++c){var l=t[c],u=l.command;if(/[MLHVCSQTA]/.test(u))"x"in l&&(l.x=s=l.x),"y"in l&&(l.y=h=l.y);else{"x1"in l&&(l.x1=r=s+l.x1),"x2"in l&&(l.x2=n=s+l.x2),"y1"in l&&(l.y1=o=h+l.y1),"y2"in l&&(l.y2=a=h+l.y2),"x"in l&&(l.x=s+=l.x),"y"in l&&(l.y=h+=l.y);var y=void 0;switch(u){case"m":case"M":y={command:"M",x:s,y:h};break;case"l":case"L":y={command:"L",x:s,y:h};break;case"h":case"H":y={command:"H",x:s};break;case"v":case"V":y={command:"V",y:h};break;case"c":case"C":y={command:"C",x:s,y:h,x1:r,y1:o,x2:n,y2:a};break;case"s":case"S":y={command:"S",x:s,y:h,x2:n,y2:a};break;case"q":case"Q":y={command:"Q",x:s,y:h,x1:r,y1:o};break;case"t":case"T":y={command:"T",x:s,y:h};break;case"a":case"A":(y={command:"A",x:s,y:h}).r1=l.r1,y.r2=l.r2,y.angle=l.angle,y.largeArc=l.largeArc,y.sweep=l.sweep;break;case"z":case"Z":y={command:"Z"},s=e,h=i,y=t[c]}y&&(t[c]=y)}"M"!==u&&"m"!==u||(e=s,i=h)}return t}function Q(t){var e,i="";for(e=0;e<t.length;e++)i+=0===e?Z(t[e]):" "+Z(t[e]);return i}function Z(t){var e="";switch(t.command){case"Z":case"z":e=t.command;break;case"M":case"m":case"L":case"l":e=t.command+" "+t.x+" "+t.y;break;case"C":case"c":e=t.command+" "+t.x1+" "+t.y1+" "+t.x2+" "+t.y2+" "+t.x+" "+t.y;break;case"Q":case"q":e=t.command+" "+t.x1+" "+t.y1+" "+t.x+" "+t.y;break;case"A":case"a":var i=t.command,r=t.angle,o=t.largeArc?"1":"0",n=t.sweep?"1":"0";e=i+" "+t.r1+" "+t.r2+" "+r+" "+o+" "+n+" "+t.x+" "+t.y;break;case"H":case"h":e=t.command+" "+t.x;break;case"V":case"v":e=t.command+" "+t.y;break;case"S":case"s":e=t.command+" "+t.x2+" "+t.y2+" "+t.x+" "+t.y;break;case"T":case"t":e=t.command+" "+t.x+" "+t.y}return e}function G(t,e,i){for(var r=0;r<e.length;r++)i.renderElement(e[r],t,void 0)}function J(t,e){for(var i=Object.keys(e),r=0;r<i.length;r++)t.setAttribute(i[r],e[i[r]])}function K(t,e){var i=document.createElementNS("http://www.w3.org/2000/svg",t);return J(i,e),i}function $(t,e,i){var r=document.createElementNS("http://www.w3.org/2000/svg","svg");return J(r,{id:t,width:e,height:i}),r}function tt(t,e,i){return t&&t.id&&e&&"selector"===e?this.pdfViewer.adornerSvgLayer:i}function et(t,e,i){var r;r=It.findLength(e,t)>It.findLength(i,t)?i:e;var o=It.findAngle(e,i),n=It.findAngle(r,t),a=It.findLength(r,t),s=n+2*(o-n);return{x:r.x+a*Math.cos(s*Math.PI/180),y:r.y+a*Math.sin(s*Math.PI/180)}}function it(t,e,i){return rt(t.wrapper,e,i)}function rt(t,e,i){for(var r=t.children.length-1;r>=0;r--){var o=t.children[r];if(o&&o.bounds.containsPoint(e,0)){if(o instanceof Rt){var n=this.findTargetElement(o,e);if(n)return n}if(o.bounds.containsPoint(e,0))return o}}return t.bounds.containsPoint(e,i)&&"none"!==t.style.fill?t:null}function ot(t,e){var i={x:0,y:0},r=t,o=e,n=(o.y2-o.y1)*(r.x2-r.x1)-(o.x2-o.x1)*(r.y2-r.y1),a=(o.x2-o.x1)*(r.y1-o.y1)-(o.y2-o.y1)*(r.x1-o.x1),s=(r.x2-r.x1)*(r.y1-o.y1)-(r.y2-r.y1)*(r.x1-o.x1);if(0===n)return{enabled:!1,intersectPt:i};var h=a/n,d=s/n;return h>=0&&h<=1&&d>=0&&d<=1?(i.x=r.x1+h*(r.x2-r.x1),i.y=r.y1+h*(r.y2-r.y1),{enabled:!0,intersectPt:i}):{enabled:!1,intersectPt:i}}function nt(t,e,i,r){var o={x:0,y:0},n=ot(at(t.x,t.y,e.x,e.y),at(i.x,i.y,r.x,r.y));return n.enabled?n.intersectPt:o}function at(t,e,i,r){return{x1:Number(t)||0,y1:Number(e)||0,x2:Number(i)||0,y2:Number(r)||0}}function st(t,e,i){var r=[];i=i||0;var o={x:e.topLeft.x-i,y:e.topLeft.y},n={x:e.topRight.x+i,y:e.topRight.y},a={x:e.bottomRight.x,y:e.bottomRight.y-i},s={x:e.bottomLeft.x,y:e.bottomLeft.y+i};return r.push(o),r.push(n),r.push(a),r.push(s),r}function ht(t,e){return Math.abs(e.x-t.x)>Math.abs(e.y-t.y)?t.x<e.x?"right":"left":t.y<e.y?"bottom":"top"}function dt(t,e){for(var i=e.style,r=e,o=0,n=Object.keys(t);o<n.length;o++)switch(n[o]){case"fill":i.fill=t.fill,i instanceof At&&(i.fill="transparent");break;case"textOverflow":i.textOverflow=t.textOverflow;break;case"opacity":i.opacity=t.opacity;break;case"strokeColor":i.strokeColor=t.strokeColor;break;case"strokeDashArray":i.strokeDashArray=t.strokeDashArray;break;case"strokeWidth":i.strokeWidth=t.strokeWidth;break;case"bold":i.bold=t.bold;break;case"color":i.color=t.color;break;case"textWrapping":i.textWrapping=t.textWrapping;break;case"fontFamily":i.fontFamily=t.fontFamily;break;case"fontSize":i.fontSize=t.fontSize;break;case"italic":i.italic=t.italic;break;case"textAlign":i.textAlign=t.textAlign;break;case"whiteSpace":i.whiteSpace=t.whiteSpace;break;case"textDecoration":i.textDecoration=t.textDecoration}e instanceof Ot&&r.refreshTextElement()}function ct(t,e,o,a){if(void 0!==t.width&&void 0!==t.height&&(t.width*=e,t.height*=o),t instanceof Rt){var s=i(),h=a.width||a.actualSize.width,d=a.height||a.actualSize.height;if(void 0!==h&&void 0!==d){var c=a.offsetX-h*a.pivot.x,l=a.offsetY-d*a.pivot.y,u={x:c+h*a.pivot.x,y:l+d*a.pivot.y};u=_(a.rotateAngle,a.offsetX,a.offsetY,u),n(s,-a.rotateAngle,u.x,u.y),n(s,a.rotateAngle,u.x,u.y);for(var y=0,f=t.children;y<f.length;y++){var p=f[y];if(void 0!==p.width&&void 0!==p.height){var g=r(s,{x:p.offsetX,y:p.offsetY});p.offsetX=g.x,p.offsetY=g.y,ct(p,e,o,a)}}}}}function lt(t,e,i){return t.x>=e.x-i&&t.x<=e.x+i&&t.y>=e.y-i&&t.y<=e.y+i}function ut(t,e,o,a,s,h,d,c){var l={x:0,y:0},u=i();switch(n(u,s,h,d),c.x){case 0:switch(c.y){case 0:l=r(u,{x:t,y:e});break;case.5:l=r(u,{x:t,y:e+a/2});break;case 1:l=r(u,{x:t,y:e+a})}break;case.5:switch(c.y){case 0:l=r(u,{x:t+o/2,y:e});break;case.5:l=r(u,{x:t+o/2,y:e+a/2});break;case 1:l=r(u,{x:t+o/2,y:e+a})}break;case 1:switch(c.y){case 0:l=r(u,{x:t+o,y:e});break;case.5:l=r(u,{x:t+o,y:e+a/2});break;case 1:l=r(u,{x:t+o,y:e+a})}}return{x:l.x,y:l.y}}var yt=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),ft=function(t,e,i,r){var o,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(n<3?o(a):n>3?o(e,i,a):o(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a},pt=function(t){switch(t.type){case"Linear":return wt;case"Radial":return bt;default:return wt}},gt=function(){function t(t,e,i,r){this.left=t,this.right=e,this.top=i,this.bottom=r}return t}(),xt=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return yt(i,t),ft([e.Property(0)],i.prototype,"left",void 0),ft([e.Property(0)],i.prototype,"right",void 0),ft([e.Property(0)],i.prototype,"top",void 0),ft([e.Property(0)],i.prototype,"bottom",void 0),i}(e.ChildProperty),mt=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return yt(i,t),i.prototype.getClassName=function(){return"Stop"},ft([e.Property("")],i.prototype,"color",void 0),ft([e.Property(0)],i.prototype,"offset",void 0),ft([e.Property(1)],i.prototype,"opacity",void 0),i}(e.ChildProperty),vt=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return yt(i,t),ft([e.Collection([],mt)],i.prototype,"stops",void 0),ft([e.Property("None")],i.prototype,"type",void 0),ft([e.Property("")],i.prototype,"id",void 0),i}(e.ChildProperty),wt=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return yt(i,t),ft([e.Property(0)],i.prototype,"x1",void 0),ft([e.Property(0)],i.prototype,"x2",void 0),ft([e.Property(0)],i.prototype,"y1",void 0),ft([e.Property(0)],i.prototype,"y2",void 0),i}(vt),bt=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return yt(i,t),ft([e.Property(0)],i.prototype,"cx",void 0),ft([e.Property(0)],i.prototype,"cy",void 0),ft([e.Property(0)],i.prototype,"fx",void 0),ft([e.Property(0)],i.prototype,"fy",void 0),ft([e.Property(50)],i.prototype,"r",void 0),i}(vt),St=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return yt(i,t),ft([e.Property("white")],i.prototype,"fill",void 0),ft([e.Property("black")],i.prototype,"strokeColor",void 0),ft([e.Property("")],i.prototype,"strokeDashArray",void 0),ft([e.Property(1)],i.prototype,"strokeWidth",void 0),ft([e.Property(1)],i.prototype,"opacity",void 0),ft([e.ComplexFactory(pt)],i.prototype,"gradient",void 0),i}(e.ChildProperty),At=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return yt(i,t),ft([e.Property("transparent")],i.prototype,"fill",void 0),i}(St),kt=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return yt(i,t),ft([e.Property("black")],i.prototype,"color",void 0),ft([e.Property("Arial")],i.prototype,"fontFamily",void 0),ft([e.Property(12)],i.prototype,"fontSize",void 0),ft([e.Property(!1)],i.prototype,"italic",void 0),ft([e.Property(!1)],i.prototype,"bold",void 0),ft([e.Property("CollapseSpace")],i.prototype,"whiteSpace",void 0),ft([e.Property("WrapWithOverflow")],i.prototype,"textWrapping",void 0),ft([e.Property("Center")],i.prototype,"textAlign",void 0),ft([e.Property("None")],i.prototype,"textDecoration",void 0),ft([e.Property("Wrap")],i.prototype,"textOverflow",void 0),ft([e.Property("transparent")],i.prototype,"fill",void 0),i}(St);!function(t){t[t.Self=1]="Self",t[t.Parent=2]="Parent"}(t.RotateTransform||(t.RotateTransform={})),function(t){t[t.None=0]="None",t[t.ElementIsPort=2]="ElementIsPort",t[t.ElementIsGroup=4]="ElementIsGroup"}(t.ElementAction||(t.ElementAction={})),function(t){t[t.None=1]="None",t[t.Select=2]="Select",t[t.Delete=4]="Delete",t[t.Drag=8]="Drag",t[t.DragSourceEnd=16]="DragSourceEnd",t[t.DragTargetEnd=32]="DragTargetEnd",t[t.DragSegmentThumb=64]="DragSegmentThumb",t[t.AllowDrop=128]="AllowDrop",t[t.Bridging=256]="Bridging",t[t.BridgeObstacle=512]="BridgeObstacle",t[t.InheritBridging=1024]="InheritBridging",t[t.PointerEvents=2048]="PointerEvents",t[t.Tooltip=4096]="Tooltip",t[t.InheritTooltip=8192]="InheritTooltip",t[t.Interaction=4218]="Interaction",t[t.ReadOnly=16384]="ReadOnly",t[t.Default=11838]="Default"}(t.ConnectorConstraints||(t.ConnectorConstraints={})),function(t){t[t.Rotate=2]="Rotate",t[t.ConnectorSource=4]="ConnectorSource",t[t.ConnectorTarget=8]="ConnectorTarget",t[t.ResizeNorthEast=16]="ResizeNorthEast",t[t.ResizeEast=32]="ResizeEast",t[t.ResizeSouthEast=64]="ResizeSouthEast",t[t.ResizeSouth=128]="ResizeSouth",t[t.ResizeSouthWest=256]="ResizeSouthWest",t[t.ResizeWest=512]="ResizeWest",t[t.ResizeNorthWest=1024]="ResizeNorthWest",t[t.ResizeNorth=2048]="ResizeNorth",t[t.Default=4094]="Default"}(t.ThumbsConstraints||(t.ThumbsConstraints={})),function(t){t[t.None=1]="None",t[t.ConnectorSourceThumb=2]="ConnectorSourceThumb",t[t.ConnectorTargetThumb=4]="ConnectorTargetThumb",t[t.ResizeSouthEast=8]="ResizeSouthEast",t[t.ResizeSouthWest=16]="ResizeSouthWest",t[t.ResizeNorthEast=32]="ResizeNorthEast",t[t.ResizeNorthWest=64]="ResizeNorthWest",t[t.ResizeEast=128]="ResizeEast",t[t.ResizeWest=256]="ResizeWest",t[t.ResizeSouth=512]="ResizeSouth",t[t.ResizeNorth=1024]="ResizeNorth",t[t.Rotate=2048]="Rotate",t[t.UserHandle=4096]="UserHandle",t[t.ToolTip=8192]="ToolTip",t[t.ResizeAll=2046]="ResizeAll",t[t.All=16382]="All"}(t.SelectorConstraints||(t.SelectorConstraints={})),function(t){t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Three=3]="Three",t[t.Four=4]="Four",t[t.Five=5]="Five"}(t.NoOfSegments||(t.NoOfSegments={}));var Mt=function(){function t(t,e){this.width=t,this.height=e}return t.prototype.clone=function(){return new t(this.width,this.height)},t}(),zt=function(){function t(t,e,i,r){this.x=Number.MAX_VALUE,this.y=Number.MAX_VALUE,this.width=0,this.height=0,void 0===t||void 0===e?(t=e=Number.MAX_VALUE,i=r=0):(void 0===i&&(i=0),void 0===r&&(r=0)),this.x=t,this.y=e,this.width=i,this.height=r}return Object.defineProperty(t.prototype,"left",{get:function(){return this.x},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return this.x+this.width},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return this.y},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return this.y+this.height},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"topLeft",{get:function(){return{x:this.left,y:this.top}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"topRight",{get:function(){return{x:this.right,y:this.top}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottomLeft",{get:function(){return{x:this.left,y:this.bottom}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottomRight",{get:function(){return{x:this.right,y:this.bottom}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"middleLeft",{get:function(){return{x:this.left,y:this.y+this.height/2}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"middleRight",{get:function(){return{x:this.right,y:this.y+this.height/2}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"topCenter",{get:function(){return{x:this.x+this.width/2,y:this.top}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottomCenter",{get:function(){return{x:this.x+this.width/2,y:this.bottom}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"center",{get:function(){return{x:this.x+this.width/2,y:this.y+this.height/2}},enumerable:!0,configurable:!0}),t.prototype.equals=function(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height},t.prototype.uniteRect=function(t){var e=Math.max(Number.NaN===this.right||this.x===Number.MAX_VALUE?t.right:this.right,t.right),i=Math.max(Number.NaN===this.bottom||this.y===Number.MAX_VALUE?t.bottom:this.bottom,t.bottom);return this.x=Math.min(this.left,t.left),this.y=Math.min(this.top,t.top),this.width=e-this.x,this.height=i-this.y,this},t.prototype.unitePoint=function(t){if(this.x===Number.MAX_VALUE)return this.x=t.x,void(this.y=t.y);var e=Math.min(this.left,t.x),i=Math.min(this.top,t.y),r=Math.max(this.right,t.x),o=Math.max(this.bottom,t.y);this.x=e,this.y=i,this.width=r-this.x,this.height=o-this.y},t.prototype.intersection=function(e){if(this.intersects(e)){var i=Math.max(this.left,e.left),r=Math.max(this.top,e.top);return new t(i,r,Math.min(this.right,e.right)-i,Math.min(this.bottom,e.bottom)-r)}return t.empty},t.prototype.Inflate=function(t){return this.x-=t,this.y-=t,this.width+=2*t,this.height+=2*t,this},t.prototype.intersects=function(t){return!(this.right<t.left||this.left>t.right||this.top>t.bottom||this.bottom<t.top)},t.prototype.containsRect=function(t){return this.left<=t.left&&this.right>=t.right&&this.top<=t.top&&this.bottom>=t.bottom},t.prototype.containsPoint=function(t,e){return void 0===e&&(e=0),this.left-e<=t.x&&this.right+e>=t.x&&this.top-e<=t.y&&this.bottom+e>=t.y},t.prototype.toPoints=function(){var t=[];return t.push(this.topLeft),t.push(this.topRight),t.push(this.bottomLeft),t.push(this.bottomRight),t},t.toBounds=function(e){for(var i=new t,r=0,o=e;r<o.length;r++){var n=o[r];i.unitePoint(n)}return i},t.prototype.scale=function(t,e){this.width*=t,this.height*=e},t.prototype.offset=function(t,e){this.x+=t,this.y+=e},t.empty=new t(Number.MAX_VALUE,Number.MIN_VALUE,0,0),t}();!function(t){t[t.Identity=0]="Identity",t[t.Translation=1]="Translation",t[t.Scaling=2]="Scaling",t[t.Unknown=4]="Unknown"}(t.MatrixTypes||(t.MatrixTypes={}));var Pt=function(){function t(t,e,i,r,o,n,a){this.m11=t,this.m12=e,this.m21=i,this.m22=r,this.offsetX=o,this.offsetY=n,this.type=a}return t}(),Ct=function(){function e(){this.pivot={x:.5,y:.5},this.rotateValue={x:0,y:0,angle:0},this.isDirt=!0,this.offsetX=0,this.offsetY=0,this.cornerRadius=0,this.minHeight=void 0,this.minWidth=void 0,this.maxWidth=void 0,this.maxHeight=void 0,this.width=void 0,this.height=void 0,this.horizontalAlignment="Auto",this.verticalAlignment="Auto",this.visible=!0,this.rotateAngle=0,this.margin={left:0,right:0,top:0,bottom:0},this.relativeMode="Point",this.transform=t.RotateTransform.Self|t.RotateTransform.Parent,this.style={fill:"white",strokeColor:"black",opacity:1,strokeWidth:1},this.desiredSize=new Mt,this.actualSize=new Mt,this.parentTransform=0,this.preventContainer=!1,this.bounds=new zt(0,0,0,0),this.staticSize=!1,this.isRectElement=!1,this.isCalculateDesiredSize=!0,this.elementActions=t.ElementAction.None,this.position=void 0,this.unitMode=void 0,this.float=!1,this.floatingBounds=void 0}return e.prototype.setOffsetWithRespectToBounds=function(t,e,i){this.unitMode=i,this.position={x:t,y:e}},e.prototype.getAbsolutePosition=function(t){if(void 0!==this.position)return"Absolute"===this.unitMode?this.position:{x:this.position.x*t.width,y:this.position.y*t.height}},Object.defineProperty(e.prototype,"outerBounds",{get:function(){return this.floatingBounds||this.bounds},set:function(t){this.floatingBounds=t},enumerable:!0,configurable:!0}),e.prototype.measure=function(t){var e=void 0!==this.width?this.width:(t.width||0)-this.margin.left-this.margin.right,i=void 0!==this.height?this.height:(t.height||0)-this.margin.top-this.margin.bottom;return this.desiredSize=new Mt(e,i),this.isCalculateDesiredSize&&(this.desiredSize=this.validateDesiredSize(this.desiredSize,t)),this.desiredSize},e.prototype.arrange=function(t){return this.actualSize=t,this.updateBounds(),this.actualSize},e.prototype.updateBounds=function(){this.bounds=O(this)},e.prototype.validateDesiredSize=function(t,e){return!this.isRectElement||this.width||this.minWidth||this.maxWidth||(t.width=50),!this.isRectElement||this.height||this.minHeight||this.maxHeight||(t.height=50),(void 0===t||void 0!==this.width&&void 0!==this.height)&&((t=t||new Mt).width=void 0===this.width?(e.width||0)-this.margin.left-this.margin.right:this.width,t.height=void 0===this.height?(e.height||0)-this.margin.top-this.margin.bottom:this.height),void 0!==this.minWidth&&(t.width=Math.max(t.width,this.minWidth)),void 0!==this.minHeight&&(t.height=Math.max(t.height,this.minHeight)),void 0!==this.maxWidth&&(t.width=Math.min(t.width,this.maxWidth)),void 0!==this.maxHeight&&(t.height=Math.min(t.height,this.maxHeight)),t},e}(),Tt=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Rt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.desiredBounds=void 0,e.measureChildren=!0,e.prevRotateAngle=0,e}return Tt(e,t),e.prototype.hasChildren=function(){return void 0!==this.children&&this.children.length>0},e.prototype.measure=function(t){this.desiredBounds=void 0;var i,r,o=void 0;if(this.hasChildren()){for(var n=0;n<this.children.length;n++){"Stretch"!==(i=this.children[n]).horizontalAlignment||t.width||(t.width=i.bounds.width),"Stretch"!==i.verticalAlignment||t.height||(t.height=i.bounds.height);var a="Stretch"===i.horizontalAlignment||"Stretch"===i.verticalAlignment;(this.measureChildren||a||i instanceof e&&void 0!==i.measureChildren)&&i.measure(t),r=this.GetChildrenBounds(i),"Stretch"!==i.horizontalAlignment&&"Stretch"!==i.verticalAlignment?void 0===this.desiredBounds?this.desiredBounds=r:this.desiredBounds.uniteRect(r):!this.actualSize||this.actualSize.width||this.actualSize.height||i.preventContainer||"Stretch"!==i.horizontalAlignment||"Stretch"!==i.verticalAlignment||(void 0===this.desiredBounds?this.desiredBounds=i.bounds:this.desiredBounds.uniteRect(i.bounds))}if(void 0!==this.desiredBounds&&0!==this.rotateAngle){var s={x:this.desiredBounds.x+this.desiredBounds.width*this.pivot.x,y:this.desiredBounds.y+this.desiredBounds.height*this.pivot.y},h=_(this.rotateAngle,void 0,void 0,s);this.desiredBounds.x=h.x-this.desiredBounds.width*this.pivot.x,this.desiredBounds.y=h.y-this.desiredBounds.height*this.pivot.y}this.desiredBounds&&(o=new Mt(this.desiredBounds.width,this.desiredBounds.height))}return o=this.validateDesiredSize(o,t),this.stretchChildren(o),this.desiredSize=o,o},e.prototype.arrange=function(t){var i,r=this.desiredBounds;if(r){this.offsetX,this.offsetY;if(this.offsetX=r.x+r.width*this.pivot.x,this.offsetY=r.y+r.height*this.pivot.y,this.hasChildren())for(var o=0;o<this.children.length;o++){var n=!1;"Stretch"===(i=this.children[o]).horizontalAlignment&&(i.offsetX=this.offsetX,i.parentTransform=this.parentTransform+this.rotateAngle,n=!0),"Stretch"===i.verticalAlignment&&(i.offsetY=this.offsetY,i.parentTransform=this.parentTransform+this.rotateAngle,n=!0),(n||this.measureChildren||i instanceof e&&void 0!==i.measureChildren)&&i.arrange(i.desiredSize)}}return this.actualSize=t,this.updateBounds(),this.prevRotateAngle=this.rotateAngle,t},e.prototype.stretchChildren=function(t){if(this.hasChildren())for(var i=0,r=this.children;i<r.length;i++){var o=r[i];"Stretch"!==o.horizontalAlignment&&void 0!==o.desiredSize.width||(o.desiredSize.width=t.width-o.margin.left-o.margin.right),"Stretch"!==o.verticalAlignment&&void 0!==o.desiredSize.height||(o.desiredSize.height=t.height-o.margin.top-o.margin.bottom),o instanceof e&&o.stretchChildren(o.desiredSize)}},e.prototype.findChildOffsetFromCenter=function(t,e){var i=L({x:e.x-t.desiredSize.width/2,y:e.y-t.desiredSize.height/2},t);i=_(t.rotateAngle,e.x,e.y,i),i=_(this.rotateAngle+this.parentTransform,this.offsetX,this.offsetY,i),t.offsetX=i.x,t.offsetY=i.y},e.prototype.GetChildrenBounds=function(t){var e;e=t.desiredSize.clone();t.rotateAngle,this.rotateAngle;var i={x:t.offsetX,y:t.offsetY},r=i.x-e.width*t.pivot.x,o=i.y-e.height*t.pivot.y,n=r+e.width,a=o+e.height,s={x:r,y:o},h={x:n,y:o},d={x:r,y:a},c={x:n,y:a};return s=_(t.rotateAngle,t.offsetX,t.offsetY,s),h=_(t.rotateAngle,t.offsetX,t.offsetY,h),d=_(t.rotateAngle,t.offsetX,t.offsetY,d),c=_(t.rotateAngle,t.offsetX,t.offsetY,c),0!==this.rotateAngle&&(s=_(-this.rotateAngle,void 0,void 0,s),h=_(-this.rotateAngle,void 0,void 0,h),d=_(-this.rotateAngle,void 0,void 0,d),c=_(-this.rotateAngle,void 0,void 0,c)),zt.toBounds([s,h,d,c])},e}(Ct),Bt=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Ot=function(t){function e(){var e=t.call(this)||this;return e.textContent="",e.canMeasure=!0,e.canConsiderBounds=!0,e.doWrap=!0,e.textNodes=[],e.style={color:"black",fill:"transparent",strokeColor:"black",strokeWidth:1,fontFamily:"Arial",fontSize:12,whiteSpace:"CollapseSpace",textWrapping:"WrapWithOverflow",textAlign:"Center",italic:!1,bold:!1,textDecoration:"None",strokeDashArray:"",opacity:1,textOverflow:"Wrap"},e.style.fill="transparent",e.style.strokeColor="transparent",e}return Bt(e,t),Object.defineProperty(e.prototype,"content",{get:function(){return this.textContent},set:function(t){this.textContent!==t&&(this.textContent=t,this.isDirt=!0,this.doWrap=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"childNodes",{get:function(){return this.textNodes},set:function(t){this.textNodes=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wrapBounds",{get:function(){return this.textWrapBounds},set:function(t){this.textWrapBounds=t},enumerable:!0,configurable:!0}),e.prototype.refreshTextElement=function(){this.isDirt=!0},e.prototype.measure=function(t){var e;return e=this.isDirt&&this.canMeasure?b(this,this.style,this.content,this.width||t.width):this.desiredSize,void 0===this.width||void 0===this.height?this.desiredSize=new Mt(e.width,e.height):this.desiredSize=new Mt(this.width,this.height),this.desiredSize=this.validateDesiredSize(this.desiredSize,t),this.desiredSize},e.prototype.arrange=function(t){return(t.width!==this.actualSize.width||t.height!==this.actualSize.height||this.isDirt)&&(this.doWrap=!0),this.actualSize=t,this.updateBounds(),this.isDirt=!1,this.actualSize},e}(Ct),Et=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Nt=function(e){function o(){var t=null!==e&&e.apply(this,arguments)||this;return t.measureChildren=void 0,t}return Et(o,e),o.prototype.measure=function(t){var i=void 0,r=void 0;if(this.hasChildren()){for(var o=0,n=this.children;o<n.length;o++){var a=n[o];if(a instanceof Ot){if(!a.canMeasure)break;t.width=t.width||this.maxWidth||this.minWidth,a.measure(t)}else a instanceof Ot||a.measure(t);var s=a.desiredSize.clone();0!==a.rotateAngle&&(s=B(s,a.rotateAngle));var h=s.width+a.margin.right,d=s.height+a.margin.bottom,c=new zt(a.margin.left,a.margin.top,h,d);a.float&&void 0!==a.getAbsolutePosition(s)||(a instanceof Ot&&!(a instanceof Ot&&a.canConsiderBounds)||(void 0===r?r=c:r.uniteRect(c)))}if(r){var l=0,u=0;l=Math.max(r.left,0),u=Math.max(r.top,0),i=new Mt(r.width+l,r.height+u)}}return i=e.prototype.validateDesiredSize.call(this,i,t),e.prototype.stretchChildren.call(this,i),this.desiredSize=i,i},o.prototype.arrange=function(o){if(this.outerBounds=new zt,this.hasChildren()){var a=void 0,s=void 0;a=this.offsetY-o.height*this.pivot.y,s=this.offsetX-o.width*this.pivot.x;for(var h=0,d=this.children;h<d.length;h++){var c=d[h];if(0!=(c.transform&t.RotateTransform.Parent)){c.parentTransform=this.parentTransform+this.rotateAngle;var l=c.desiredSize.clone(),u=void 0,y={x:0,y:0},f=s,p=a;if("Point"===c.relativeMode){var g=c.getAbsolutePosition(o);void 0!==g&&(f+=g.x,p+=g.y)}if(u="Object"===c.relativeMode?this.alignChildBasedOnParent(c,l,o,f,p):this.alignChildBasedOnaPoint(c,f,p),y={x:u.x+l.width/2,y:u.y+l.height/2},c.rotateValue){var x={x:this.offsetX+(c.rotateValue.x||0),y:this.offsetY+(c.rotateValue.y||0)},m={x:this.offsetX,y:this.offsetY},v=0|c.rotateValue.angle,w=i();n(w,v,m.x,m.y),y=r(w,x)}e.prototype.findChildOffsetFromCenter.call(this,c,y)}"Stretch"===c.horizontalAlignment||"Stretch"===c.verticalAlignment?c.arrange(o):c instanceof Ot&&c.canMeasure?(c.arrange(c.desiredSize),this.outerBounds.uniteRect(c.outerBounds)):c instanceof Ot||(c.arrange(c.desiredSize),this.outerBounds.uniteRect(c.outerBounds))}}return this.actualSize=o,this.updateBounds(),this.outerBounds.uniteRect(this.bounds),o},o.prototype.alignChildBasedOnParent=function(t,e,i,r,o){switch(t.horizontalAlignment){case"Auto":case"Left":r+=t.margin.left;break;case"Right":r+=i.width-e.width-t.margin.right;break;case"Stretch":case"Center":r+=i.width/2-e.width/2}switch(t.verticalAlignment){case"Auto":case"Top":o+=t.margin.top;break;case"Bottom":o+=i.height-e.height-t.margin.bottom;break;case"Stretch":case"Center":o+=i.height/2-e.height/2}return{x:r,y:o}},o.prototype.alignChildBasedOnaPoint=function(t,e,i){switch(e+=t.margin.left-t.margin.right,i+=t.margin.top-t.margin.bottom,t.horizontalAlignment){case"Auto":case"Left":e=e;break;case"Stretch":case"Center":e-=t.desiredSize.width*t.pivot.x;break;case"Right":e-=t.desiredSize.width}switch(t.verticalAlignment){case"Auto":case"Top":i=i;break;case"Stretch":case"Center":i-=t.desiredSize.height*t.pivot.y;break;case"Bottom":i-=t.desiredSize.height}return{x:e,y:i}},o}(Rt),Wt=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Dt=function(t){function e(){var e=t.call(this)||this;return e.imageSource="",e.imageScale="None",e.imageAlign="None",e.stretch="Stretch",e}return Wt(e,t),Object.defineProperty(e.prototype,"source",{get:function(){return this.imageSource},set:function(t){this.imageSource=t,this.isDirt=!0},enumerable:!0,configurable:!0}),e.prototype.measure=function(t){return this.isDirt&&("Stretch"!==this.stretch||void 0===this.width&&void 0===this.height)&&(this.contentSize=C(this.source,this.contentSize),this.isDirt=!1),void 0!==this.width&&void 0!==this.height?(this.desiredSize=new Mt(this.width,this.height),this.contentSize=this.desiredSize):this.desiredSize=this.contentSize,this.desiredSize=this.validateDesiredSize(this.desiredSize,t),this.desiredSize},e.prototype.arrange=function(t){return this.actualSize=new Mt(this.desiredSize.width,this.desiredSize.height),this.updateBounds(),this.actualSize},e}(Ct),Xt=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),_t=function(t){function e(){var e=t.call(this)||this;return e.pathData="",e.transformPath=!0,e.absolutePath="",e.canMeasurePath=!1,e.absoluteBounds=new zt,e}return Xt(e,t),Object.defineProperty(e.prototype,"data",{get:function(){return this.pathData},set:function(t){this.pathData!==t&&(this.pathData=t,this.isDirt=!0)},enumerable:!0,configurable:!0}),e.prototype.measure=function(t){return this.staticSize&&void 0!==this.width&&void 0!==this.height?this.absoluteBounds=new zt(this.offsetX-this.width*this.pivot.x,this.offsetY-this.height*this.pivot.y,this.width,this.height):(!this.isDirt||!this.transformPath&&void 0!==this.width&&void 0!==this.height||this.absoluteBounds&&0!==this.absoluteBounds.height)&&!this.canMeasurePath||(this.absoluteBounds=g(this.data?this.data:"")),void 0===this.width?this.desiredSize=new Mt(this.absoluteBounds.width,this.height||this.absoluteBounds.height):void 0===this.height?this.desiredSize=new Mt(this.width||this.absoluteBounds.width,this.absoluteBounds.height):this.desiredSize=new Mt(this.width,this.height),this.desiredSize=this.validateDesiredSize(this.desiredSize,t),this.canMeasurePath=!1,this.desiredSize},e.prototype.arrange=function(t){return(this.isDirt||this.actualSize.width!==t.width||this.actualSize.height!==t.height)&&(this.isDirt=!0,this.absolutePath=this.updatePath(this.data,this.absoluteBounds,t),this.staticSize||(this.points=null)),this.actualSize=this.desiredSize,this.updateBounds(),this.isDirt=!1,this.actualSize},e.prototype.updatePath=function(t,e,i){var r=!1,o="",n=-e.x,a=-e.y,s=[];return i.width===e.width&&i.height===e.height||(n=i.width/Number(e.width?e.width:1),a=i.height/Number(e.height?e.height:1),r=!0),s=Y(t),s=q(s),o=(r||this.isDirt)&&this.transformPath?U(s,n,a,r,e.x,e.y,0,0):Q(s),r=!1,o},e}(Ct),Lt=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Yt=function(t,e,i,r){var o,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(n<3?o(a):n>3?o(e,i,a):o(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a},It=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Lt(i,t),i.equals=function(t,e){return t===e||!(!t||!e)&&(!t||!e||t.x===e.x&&t.y===e.y)},i.isEmptyPoint=function(t){return!t.x||!t.y},i.transform=function(t,e,i){var r={x:0,y:0};return r.x=Math.round(100*(t.x+i*Math.cos(e*Math.PI/180)))/100,r.y=Math.round(100*(t.y+i*Math.sin(e*Math.PI/180)))/100,r},i.findLength=function(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},i.findAngle=function(t,e){var i=Math.atan2(e.y-t.y,e.x-t.x);return i=180*i/Math.PI,(i%=360)<0&&(i+=360),i},i.distancePoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},i.getLengthFromListOfPoints=function(t){for(var e=0,i=0;i<t.length-1;i++)e+=this.distancePoints(t[i],t[i+1]);return e},i.adjustPoint=function(t,e,i,r){var o,n=i?{x:t.x,y:t.y}:{x:e.x,y:e.y};return t.x===e.x?t.y<e.y&&i||t.y>e.y&&!i?n.y+=r:n.y-=r:t.y===e.y?t.x<e.x&&i||t.x>e.x&&!i?n.x+=r:n.x-=r:i?(o=this.findAngle(t,e),n=this.transform(t,o,r)):(o=this.findAngle(e,t),n=this.transform(e,o,r)),n},i.direction=function(t,e){return Math.abs(e.x-t.x)>Math.abs(e.y-t.y)?t.x<e.x?"Right":"Left":t.y<e.y?"Bottom":"Top"},i.prototype.getClassName=function(){return"Point"},Yt([e.Property(0)],i.prototype,"x",void 0),Yt([e.Property(0)],i.prototype,"y",void 0),i}(e.ChildProperty),jt=function(){function t(){}return t.getContext=function(t){return t.getContext("2d")},t.prototype.setStyle=function(e,i){var r=t.getContext(e);"none"===i.fill&&(i.fill="transparent"),"none"===i.stroke&&(i.stroke="transparent"),r.strokeStyle=i.stroke,r.lineWidth=i.strokeWidth,0===i.strokeWidth&&(r.strokeStyle="transparent"),r.globalAlpha=i.opacity;var o=[];i.dashArray&&(o=this.parseDashArray(i.dashArray)),r.setLineDash(o),r.fillStyle=i.fill},t.prototype.rotateContext=function(e,i,r,o){var n=t.getContext(e);n.translate(r,o),n.rotate(i*Math.PI/180),n.translate(-r,-o)},t.prototype.setFontStyle=function(e,i){var r=t.getContext(e),o="";i.italic&&(o+="italic "),i.bold&&(o+="bold "),o+=i.fontSize+"px ",o+=i.fontFamily,r.font=o},t.prototype.parseDashArray=function(t){for(var e=[],i=-1!==t.indexOf(" ")?" ":",",r=0,o=t.split(i);r<o.length;r++){var n=o[r];e.push(Number(n))}return e},t.prototype.drawRectangle=function(e,i){if(!0===i.visible)if(i.cornerRadius)i.data=j(i.cornerRadius,i.height,i.width),this.drawPath(e,i);else{var r=t.getContext(e);r.save(),r.beginPath();i.cornerRadius;var o=i.x+i.width*i.pivotX,n=i.y+i.height*i.pivotY;this.rotateContext(e,i.angle,o,n),this.setStyle(e,i),r.rect(i.x,i.y,i.width,i.height),r.fillRect(i.x,i.y,i.width,i.height),r.fill(),r.stroke(),r.closePath(),r.restore()}},t.prototype.drawPath=function(e,i){var r=[];r=F(r=Y(i.data));var o=t.getContext(e);o.save(),o.beginPath();var n=i.y+i.height*i.pivotY,a=i.x+i.width*i.pivotX;this.rotateContext(e,i.angle,a,n),this.setStyle(e,i),o.translate(i.x,i.y),this.renderPath(e,i,r),o.fill(),o.translate(-i.x,-i.y),o.stroke(),o.restore()},t.prototype.renderPath=function(e,i,r){if(!0===i.visible){var o,n=t.getContext(e),a=void 0,s=void 0,h=void 0,d=void 0,c=void 0,l=void 0,u=void 0,y=void 0,f=void 0,p=r;for(u=0,y=0,f=0,o=p.length;f<o;++f){var g=p[f],x=g.command;switch("x1"in g&&(h=g.x1),"x2"in g&&(c=g.x2),"y1"in g&&(d=g.y1),"y2"in g&&(l=g.y2),"x"in g&&(u=g.x),"y"in g&&(y=g.y),x){case"M":n.moveTo(u,y),g.x=u,g.y=y;break;case"L":n.lineTo(u,y),g.x=u,g.y=y;break;case"C":n.bezierCurveTo(h,d,c,l,u,y),g.x=u,g.y=y,g.x1=h,g.y1=d,g.x2=c,g.y2=l;break;case"Q":n.quadraticCurveTo(h,d,u,y),g.x=u,g.y=y,g.x1=h,g.y1=d;break;case"A":var m={x:a,y:s},v=g.r1,w=g.r2,b=g.angle*(Math.PI/180),S=g.largeArc,A=g.sweep,k={x:u,y:y},M={x:Math.cos(b)*(m.x-k.x)/2+Math.sin(b)*(m.y-k.y)/2,y:-Math.sin(b)*(m.x-k.x)/2+Math.cos(b)*(m.y-k.y)/2},z=Math.pow(M.x,2)/Math.pow(v,2)+Math.pow(M.y,2)/Math.pow(w,2);z>1&&(v*=Math.sqrt(z),w*=Math.sqrt(z));var P=Math.pow(w,2)*Math.pow(M.x,2),C=(S===A?-1:1)*Math.sqrt((Math.pow(v,2)*Math.pow(w,2)-Math.pow(v,2)*Math.pow(M.y,2)-P)/(Math.pow(v,2)*Math.pow(M.y,2)+Math.pow(w,2)*Math.pow(M.x,2)));isNaN(C)&&(C=0);var T={x:C*v*M.y/w,y:C*-w*M.x/v},R={x:(m.x+k.x)/2+Math.cos(b)*T.x-Math.sin(b)*T.y,y:(m.y+k.y)/2+Math.sin(b)*T.x+Math.cos(b)*T.y},B=this.a([1,0],[(M.x-T.x)/v,(M.y-T.y)/w]),O=[(M.x-T.x)/v,(M.y-T.y)/w],E=[(-M.x-T.x)/v,(-M.y-T.y)/w],N=this.a(O,E);if(this.r(O,E)<=-1&&(N=Math.PI),this.r(O,E)>=1&&(N=0),g.centp=R,g.xAxisRotation=b,g.rx=v,g.ry=w,g.a1=B,g.ad=N,g.sweep=A,null!=n){var W=v>w?v:w,D=v>w?1:v/w,X=v>w?w/v:1;n.save(),n.translate(R.x,R.y),n.rotate(b),n.scale(D,X),n.arc(0,0,W,B,B+N,!A),n.scale(1/D,1/X),n.rotate(-b),n.translate(-R.x,-R.y),n.restore()}break;case"Z":case"z":n.closePath(),u=a,y=s}a=u,s=y}}},t.prototype.drawText=function(e,i){if(i.content&&!0===i.visible){var r=t.getContext(e);r.save(),this.setStyle(e,i);var o=i.x+i.width*i.pivotX,n=i.y+i.height*i.pivotY;this.rotateContext(e,i.angle,o,n),this.setFontStyle(e,i);var a=0,s=[];s=i.childNodes;var h=i.wrapBounds;if(r.fillStyle=i.color,h){var d=this.labelAlign(i,h,s);for(a=0;a<s.length;a++){var c=s[a],l=d.x+c.x-h.x,u=d.y+c.dy*a+.8*i.fontSize;if(r.fillText(c.text,l,u),"Underline"===i.textDecoration||"Overline"===i.textDecoration||"LineThrough"===i.textDecoration){var y=l,f=void 0,p=l+r.measureText(c.text).width,g=void 0;switch(i.textDecoration){case"Underline":f=u+2,g=u+2;break;case"Overline":f=d.y+c.dy*a,g=d.y+c.dy*a;break;case"LineThrough":f=(u+d.y+c.dy*a)/2+2,g=(u+d.y+c.dy*a)/2+2}r.beginPath(),r.moveTo(y,f),r.lineTo(p,g),r.strokeStyle=i.color,r.lineWidth=.08*i.fontSize,r.globalAlpha=i.opacity,r.stroke()}}}r.restore()}},t.prototype.m=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2))},t.prototype.r=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(this.m(t)*this.m(e))},t.prototype.a=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(this.r(t,e))},t.prototype.getMeetOffset=function(t,e,i){var r=Math.max(e,i),o=Math.min(e,i);switch(t){case"min":return 0;case"mid":return(r-o)/2;case"max":return r-o;default:return 0}},t.prototype.getSliceOffset=function(t,e,i,r){switch(t){case"min":return 0;case"mid":return(e-i)/2*r/e;case"max":return(e-i)*r/e;default:return 0}},t.prototype.image=function(t,e,i,r,o,n,a){t.beginPath();var s=e.width,h=e.height,d=o,c=n,l=0,u=0;if(t.globalAlpha=a.opacity,a&&"None"!==a.alignment){var y=a.alignment.toLowerCase().substr(1,3),f=a.alignment.toLowerCase().substr(5,3);if("Slice"===a.scale){var p=function(){l=d,u=h*d/s},g=function(){l=s*c/h,u=c};d>c?(p(),c>u&&g()):d===c?s>h?g():p():(g(),d>l&&p());var x=this.getSliceOffset(y,l,d,s),m=this.getSliceOffset(f,u,c,h),v=s-x,w=h-m,b=l-x*(l/s),S=u-m*(u/h),k=A("canvas",{width:o.toString(),height:n.toString()});k.getContext("2d").drawImage(e,x,m,v,w,0,0,b,S),t.drawImage(k,i,r,o,n)}else if("Meet"===a.scale){var M=h/s,z=c/d;l=z>M?d:c/M,u=z>M?d*M:c,i+=this.getMeetOffset(y,l,d),r+=this.getMeetOffset(f,u,c),t.drawImage(e,0,0,s,h,i,r,l,u)}else t.drawImage(e,i,r,o,n)}else t.drawImage(e,i,r,o,n);t.closePath()},t.prototype.loadImage=function(t,e,i,r,o){this.rotateContext(i,e.angle,r,o);var n=new Image;n.src=e.source,this.image(t,n,e.x,e.y,e.width,e.height,e)},t.prototype.drawImage=function(e,i,r,o){var n=this;if(i.visible){var a=t.getContext(e);a.save();var s=i.x+i.width*i.pivotX,h=i.y+i.height*i.pivotY,d=new Image;d.src=i.source;var c=a.canvas.id.split("_");c[c.length-1];o?d.onload=function(){n.loadImage(a,i,e,s,h)}:this.loadImage(a,i,e,s,h),a.restore()}},t.prototype.labelAlign=function(t,e,i){var r=new Mt(e.width,i.length*(1.2*t.fontSize)),o={x:0,y:0},n=t.x,a=t.y,s=.5*t.width,h=.5*t.height;return"left"===t.textAlign?s=0:"center"===t.textAlign?s=e.width>t.width&&("Ellipsis"===t.textOverflow||"Clip"===t.textOverflow)?0:.5*t.width:"right"===t.textAlign&&(s=1*t.width),o.x=n+s+(e?e.x:0),o.y=a+h-r.height/2,o},t}(),Ft=function(){function t(t,e){this.renderer=null,this.isSvgMode=!0,this.diagramId=t,this.element=S(this.diagramId),this.isSvgMode=e,this.renderer=new jt}return t.prototype.renderElement=function(t,e,i,r,o,n,a,s){t instanceof Rt?this.renderContainer(t,e,i,r,o,n,a,s):t instanceof Dt?this.renderImageElement(t,e,r,o,a):t instanceof _t?this.renderPathElement(t,e,r,o,a):t instanceof Ot?this.renderTextElement(t,e,r,o,a):this.renderRect(t,e,r,o)},t.prototype.renderImageElement=function(t,e,i,r,o){var n=this.getBaseAttributes(t,i);n.cornerRadius=0,this.renderer.drawRectangle(e,n);var a,s,h,d;if("Stretch"===t.stretch)a=t.actualSize.width,s=t.actualSize.height;else{var c=t.contentSize.width,l=t.contentSize.height,u=n.width/c,y=n.height/l,f=void 0;switch(t.stretch){case"Meet":a=c*(f=Math.min(u,y)),s=l*f,n.x+=Math.abs(n.width-a)/2,n.y+=Math.abs(n.height-s)/2;break;case"Slice":u=n.width/c,y=n.height/l,a=c*(f=Math.max(u,y)),s=l*f,h=n.width/a*c,d=n.height/s*l;break;case"None":a=c,s=l}}n.width=a,n.height=s,n.sourceWidth=h,n.sourceHeight=d,n.source=t.source,n.alignment=t.imageAlign,n.scale=t.imageScale,this.renderer.drawImage(e,n,r,o)},t.prototype.renderPathElement=function(t,e,i,r,o){var n=this.getBaseAttributes(t,i);n.data=t.absolutePath,n.data=t.absolutePath;t.id;this.isSvgMode||(n.x=n.x,n.y=n.y),this.renderer.drawPath(e,n)},t.prototype.renderTextElement=function(t,e,i,r,o){var n=this.getBaseAttributes(t,i);n.cornerRadius=0,n.whiteSpace=X(t.style.whiteSpace,t.style.textWrapping),n.content=t.content,n.breakWord=N(t.style.textWrapping),n.textAlign=E(t.style.textAlign),n.color=t.style.color,n.italic=t.style.italic,n.bold=t.style.bold,n.fontSize=t.style.fontSize,n.fontFamily=t.style.fontFamily,n.textOverflow=t.style.textOverflow,n.textDecoration=t.style.textDecoration,n.doWrap=t.doWrap,n.wrapBounds=t.wrapBounds,n.childNodes=t.childNodes,n.dashArray="",n.strokeWidth=0,n.fill=t.style.fill;t.content?t.content:t.id;this.renderer.drawRectangle(e,n),this.renderer.drawText(e,n)},t.prototype.renderContainer=function(t,e,i,r,o,n,a,s){if(r={tx:0,ty:0,scale:1},this.diagramId&&(o=o),this.renderRect(t,e,r,o),t.hasChildren())for(var h=0,d=t.children;h<d.length;h++){var c=d[h];this.renderElement(c,e,i,r,o,!0,a,s)}},t.prototype.renderRect=function(t,e,i,r){var o=this.getBaseAttributes(t,i);o.cornerRadius=t.cornerRadius||0;t.id;this.renderer.drawRectangle(e,o)},t.prototype.getBaseAttributes=function(t,e){var i={width:t.actualSize.width,height:t.actualSize.height,x:t.offsetX-t.actualSize.width*t.pivot.x+.5,y:t.offsetY-t.actualSize.height*t.pivot.y+.5,fill:t.style.fill,stroke:t.style.strokeColor,angle:t.rotateAngle+t.parentTransform,pivotX:t.pivot.x,pivotY:t.pivot.y,strokeWidth:t.style.strokeWidth,dashArray:t.style.strokeDashArray||"",opacity:t.style.opacity,visible:t.visible,id:t.id,gradient:t.style.gradient};return e&&(i.x+=e.tx,i.y+=e.ty),i},t}(),Ut=function(){function t(){}return t.prototype.parseDashArray=function(t){return[]},t.prototype.drawRectangle=function(t,e,i,r,o,n,a){var s;s=e.id===t.id?e.id+"_container":e.id;var h;h&&!o||(h=document.createElementNS("http://www.w3.org/2000/svg","rect"),t.appendChild(h));var d={id:s,x:e.x.toString(),y:e.y.toString(),width:e.width.toString(),height:e.height.toString(),visibility:e.visible?"visible":"hidden",transform:"rotate("+e.angle+","+(e.x+e.width*e.pivotX)+","+(e.y+e.height*e.pivotY)+")",rx:e.cornerRadius||0,ry:e.cornerRadius||0,opacity:e.opacity,"aria-label":a||""};e.class&&(d.class=e.class);a||(d["pointer-events"]="none"),J(h,d),this.setSvgStyle(h,e,i)},t.prototype.updateSelectionRegion=function(t,e){var i;i=t.parentNode.getElementById(e.id);var r;r={id:e.id,x:e.x.toString(),y:e.y.toString(),width:e.width.toString(),height:e.height.toString(),transform:"rotate("+e.angle+","+(e.x+e.width*e.pivotX)+","+(e.y+e.height*e.pivotY)+")",class:"e-diagram-selected-region"},i||(i=document.createElementNS("http://www.w3.org/2000/svg","rect"),t.appendChild(i)),this.setSvgStyle(i,e),J(i,r)},t.prototype.createGElement=function(t,e){return K(t,e)},t.prototype.drawCircle=function(t,e,i,r){var o=document.createElementNS("http://www.w3.org/2000/svg","circle");this.setSvgStyle(o,e);var n=e.class||"";i||(n+=" e-disabled");var a={id:e.id,cx:e.centerX,cy:e.centerY,r:e.radius,visibility:e.visible?"visible":"hidden",class:n,"aria-label":r?r["aria-label"]:""};o.style.display=e.visible?"block":"none",J(o,a),t.appendChild(o)},t.prototype.setSvgStyle=function(t,e,i){if(e.canApplyStyle||void 0===e.canApplyStyle){"none"===e.fill&&(e.fill="transparent"),"none"===e.stroke&&(e.stroke="transparent");var r=[],o=void 0;void 0!==e.dashArray&&(r=(new jt).parseDashArray(e.dashArray)),o=e.fill,e.stroke&&t.setAttribute("stroke",e.stroke),void 0!==e.strokeWidth&&null!==e.strokeWidth&&t.setAttribute("stroke-width",e.strokeWidth.toString()),r&&t.setAttribute("stroke-dasharray",r.toString()),o&&t.setAttribute("fill",o)}},t.prototype.svgLabelAlign=function(t,e,i){var r=new Mt(e.width,i.length*(1.2*t.fontSize)),o={x:0,y:0},n=.5*t.width,a=.5*t.height;return"left"===t.textAlign?n=0:"center"===t.textAlign?n=e.width>t.width&&("Ellipsis"===t.textOverflow||"Clip"===t.textOverflow)?0:.5*t.width:"right"===t.textAlign&&(n=1*t.width),o.x=0+n+(e?e.x:0),o.y=1.2+a-r.height/2,o},t.prototype.drawLine=function(t,e){var i=document.createElementNS("http://www.w3.org/2000/svg","line");this.setSvgStyle(i,e);var r=e.x+e.width*e.pivotX,o=e.y+e.height*e.pivotY,n={id:e.id,x1:e.startPoint.x+e.x,y1:e.startPoint.y+e.y,x2:e.endPoint.x+e.x,y2:e.endPoint.y+e.y,stroke:e.stroke,"stroke-width":e.strokeWidth.toString(),opacity:e.opacity.toString(),transform:"rotate("+e.angle+" "+r+" "+o+")",visibility:e.visible?"visible":"hidden"};e.class&&(n.class=e.class),J(i,n),t.appendChild(i)},t.prototype.drawPath=function(t,e,i,r,o,n){var a=Math.floor(10*Math.random()+1);t.id,a.toString();var s=[];s=F(s=Y(e.data));var h;o&&(h=o.getElementById(e.id+"_groupElement_shadow"))&&h.parentNode.removeChild(h);var d;o&&(d=o.getElementById(e.id)),d&&!r||(d=document.createElementNS("http://www.w3.org/2000/svg","path"),t.appendChild(d)),this.renderPath(d,e,s);var c={id:e.id,transform:"rotate("+e.angle+","+(e.x+e.width*e.pivotX)+","+(e.y+e.height*e.pivotY)+")translate("+e.x+","+e.y+")",visibility:e.visible?"visible":"hidden",opacity:e.opacity,"aria-label":n||""};e.class&&(c.class=e.class),J(d,c),this.setSvgStyle(d,e,i)},t.prototype.renderPath=function(t,e,i){var r,o,n,a,s,h,d,c,l=i,u="";for(s=0,h=0,c=0,d=l.length;c<d;++c){var y=l[c],f=y.command;switch("x1"in y&&(r=y.x1),"x2"in y&&(n=y.x2),"y1"in y&&(o=y.y1),"y2"in y&&(a=y.y2),"x"in y&&(s=y.x),"y"in y&&(h=y.y),f){case"M":u=u+"M"+s.toString()+","+h.toString()+" ";break;case"L":u=u+"L"+s.toString()+","+h.toString()+" ";break;case"C":u=u+"C"+r.toString()+","+o.toString()+","+n.toString()+","+a.toString()+",",u+=s.toString()+","+h.toString()+" ";break;case"Q":u=u+"Q"+r.toString()+","+o.toString()+","+s.toString()+","+h.toString()+" ";break;case"A":u=u+"A"+y.r1.toString()+","+y.r2.toString()+","+y.angle.toString()+",",u+=y.largeArc.toString()+","+y.sweep+","+s.toString()+","+h.toString()+" ";break;case"Z":case"z":u+="Z "}}t.setAttribute("d",u)},t}();return t.Thickness=gt,t.Margin=xt,t.Stop=mt,t.Gradient=vt,t.LinearGradient=wt,t.RadialGradient=bt,t.ShapeStyle=St,t.StrokeStyle=At,t.TextStyle=kt,t.Canvas=Nt,t.Container=Rt,t.DrawingElement=Ct,t.ImageElement=Dt,t.PathElement=_t,t.TextElement=Ot,t.Matrix=Pt,t.identityMatrix=i,t.transformPointByMatrix=r,t.transformPointsByMatrix=o,t.rotateMatrix=n,t.scaleMatrix=a,t.translateMatrix=s,t.multiplyMatrix=l,t.Point=It,t.Rect=zt,t.Size=Mt,t.CanvasRenderer=jt,t.refreshDiagramElements=G,t.DrawingRenderer=Ft,t.SvgRenderer=Ut,t.setAttributeSvg=J,t.createSvgElement=K,t.createSvg=$,t.getParentSvg=tt,t.randomId=T,t.cornersPointsBeforeRotation=R,t.rotateSize=B,t.getBounds=O,t.textAlignToString=E,t.wordBreakToString=N,t.bBoxText=W,t.middleElement=D,t.whiteSpaceToString=X,t.rotatePoint=_,t.getOffset=L,t.findNearestPoint=et,t.findElementUnderMouse=it,t.findTargetElement=rt,t.intersect3=ot,t.intersect2=nt,t.getLineSegment=at,t.getPoints=st,t.getBezierDirection=ht,t.updateStyle=dt,t.scaleElement=ct,t.contains=lt,t.getPoint=ut,t.getChildNode=f,t.translatePoints=p,t.measurePath=g,t.measureText=b,t.getDiagramElement=S,t.createHtmlElement=A,t.setAttributeHtml=k,t.getAdornerLayerSvg=M,t.getSelectorElement=z,t.createMeasureElements=P,t.measureImage=C,t.processPathData=Y,t.parsePathData=I,t.getRectanglePath=j,t.pathSegmentCollection=F,t.transformPath=U,t.updatedSegment=V,t.scalePathData=H,t.splitArrayCollection=q,t.getPathString=Q,t.getString=Z,t}({},ej.base),this.ejs=ej;
//# sourceMappingURL=ej2-drawings.min.js.map
/*!
* filename: index.d.ts
* version : 18.3.35
* version : 18.3.47
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.

@@ -5,0 +5,0 @@ * Use of this code is subject to the terms of our license.

{
"_from": "@syncfusion/ej2-drawings@*",
"_id": "@syncfusion/ej2-drawings@17.2.48",
"_id": "@syncfusion/ej2-drawings@18.2.44",
"_inBundle": false,
"_integrity": "sha512-VBY6pn/Z6vRFK4Cg6USmrXZg9Ul221mJFzjyJURqp+IaHV+xtdHII/CEaJ3d7UYr56oKRmdGWAjtiG1QBRcfOw==",
"_integrity": "sha512-vooPbvnkoN5Fo79MJdbb5uCFhSQrfVtUxJf1PFcNYFooFS0whObCxgG1/sEj2joiXb+0Oq4T0HAm7nHI17YxgQ==",
"_location": "/@syncfusion/ej2-drawings",

@@ -24,4 +24,4 @@ "_phantomChildren": {},

],
"_resolved": "http://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-drawings/-/ej2-drawings-17.2.48.tgz",
"_shasum": "9ae87b65a2d18a9fe5d639966aca4260199664a6",
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix/@syncfusion/ej2-drawings/-/ej2-drawings-18.2.44.tgz",
"_shasum": "9ccd1c78010b8ad22f9bad657ec71f6cae6155d7",
"_spec": "@syncfusion/ej2-drawings@*",

@@ -37,4 +37,4 @@ "_where": "/jenkins/workspace/automation_release_18.1.0.1-52JLNOGRCDHXRVQM3W564VPLFCPHWUYDYU3I3DVRABSR7F6AIFYQ/packages/included",

"dependencies": {
"@syncfusion/ej2-base": "~18.3.35",
"@syncfusion/ej2-data": "~18.3.35"
"@syncfusion/ej2-base": "~18.3.47",
"@syncfusion/ej2-data": "~18.3.47"
},

@@ -63,4 +63,4 @@ "deprecated": false,

"typings": "index.d.ts",
"version": "18.3.35",
"version": "18.3.47",
"sideEffects": false
}

@@ -405,10 +405,3 @@ import { Size } from './../primitives/size';

else {
if (image.complete) {
ctx.drawImage(image, x, y, width, height);
}
else {
image.onload = function () {
ctx.drawImage(image, x, y, width, height);
};
}
ctx.drawImage(image, x, y, width, height);
}

@@ -415,0 +408,0 @@ ctx.closePath();

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc