text: !function(t){var e={};function i(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,i),o.l=!0,o.exports}i.m=t,i.c=e,i.d=function(t,e,r){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)i.d(r,o,function(e){return t[e]}.bind(null,o));return r},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="_content/Syncfusion.Blazor/scripts/",i(i.s="./bundles/drawings.js")}({"../node_modules/@babel/runtime/helpers/typeof.js":function(t,e){function i(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=i=function(t){return typeof t}:t.exports=i=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(e)}t.exports=i},"./bundles/drawings.js":function(t,e,i){"use strict";i.r(e);var r=i("../node_modules/@babel/runtime/helpers/typeof.js"),o=i.n(r);window.sf=window.sf||{},window.sf.drawings=function(t){var e,i,r,n,s,a,h,d=(e=function(t,i){return(e=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])})(t,i)},function(t,i){function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}),l=function(t,e,i,r){var n,s=arguments.length,a=s<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"===("undefined"==typeof Reflect?"undefined":o()(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,r);else for(var h=t.length-1;h>=0;h--)(n=t[h])&&(a=(s<3?n(a):s>3?n(e,i,a):n(e,i))||a);return s>3&&a&&Object.defineProperty(e,i,a),a},c=function(t){switch(t.type){case"Linear":return g;case"Radial":return m;default:return g}},f=function(t,e,i,r){this.left=t,this.right=e,this.top=i,this.bottom=r},u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return d(e,t),l([sf.base.Property(0)],e.prototype,"left",void 0),l([sf.base.Property(0)],e.prototype,"right",void 0),l([sf.base.Property(0)],e.prototype,"top",void 0),l([sf.base.Property(0)],e.prototype,"bottom",void 0),e}(sf.base.ChildProperty),y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return d(e,t),e.prototype.getClassName=function(){return"Stop"},l([sf.base.Property("")],e.prototype,"color",void 0),l([sf.base.Property(0)],e.prototype,"offset",void 0),l([sf.base.Property(1)],e.prototype,"opacity",void 0),e}(sf.base.ChildProperty),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return d(e,t),l([sf.base.Collection([],y)],e.prototype,"stops",void 0),l([sf.base.Property("None")],e.prototype,"type",void 0),l([sf.base.Property("")],e.prototype,"id",void 0),e}(sf.base.ChildProperty),g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return d(e,t),l([sf.base.Property(0)],e.prototype,"x1",void 0),l([sf.base.Property(0)],e.prototype,"x2",void 0),l([sf.base.Property(0)],e.prototype,"y1",void 0),l([sf.base.Property(0)],e.prototype,"y2",void 0),e}(p),m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return d(e,t),l([sf.base.Property(0)],e.prototype,"cx",void 0),l([sf.base.Property(0)],e.prototype,"cy",void 0),l([sf.base.Property(0)],e.prototype,"fx",void 0),l([sf.base.Property(0)],e.prototype,"fy",void 0),l([sf.base.Property(50)],e.prototype,"r",void 0),e}(p),x=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return d(e,t),l([sf.base.Property("white")],e.prototype,"fill",void 0),l([sf.base.Property("black")],e.prototype,"strokeColor",void 0),l([sf.base.Property("")],e.prototype,"strokeDashArray",void 0),l([sf.base.Property(1)],e.prototype,"strokeWidth",void 0),l([sf.base.Property(1)],e.prototype,"opacity",void 0),l([sf.base.ComplexFactory(c)],e.prototype,"gradient",void 0),e}(sf.base.ChildProperty),v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return d(e,t),l([sf.base.Property("transparent")],e.prototype,"fill",void 0),e}(x),b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return d(e,t),l([sf.base.Property("black")],e.prototype,"color",void 0),l([sf.base.Property("Arial")],e.prototype,"fontFamily",void 0),l([sf.base.Property(12)],e.prototype,"fontSize",void 0),l([sf.base.Property(!1)],e.prototype,"italic",void 0),l([sf.base.Property(!1)],e.prototype,"bold",void 0),l([sf.base.Property("CollapseSpace")],e.prototype,"whiteSpace",void 0),l([sf.base.Property("WrapWithOverflow")],e.prototype,"textWrapping",void 0),l([sf.base.Property("Center")],e.prototype,"textAlign",void 0),l([sf.base.Property("None")],e.prototype,"textDecoration",void 0),l([sf.base.Property("Wrap")],e.prototype,"textOverflow",void 0),l([sf.base.Property("transparent")],e.prototype,"fill",void 0),e}(x);(i=t.RotateTransform||(t.RotateTransform={}))[i.Self=1]="Self",i[i.Parent=2]="Parent",(r=t.ElementAction||(t.ElementAction={}))[r.None=0]="None",r[r.ElementIsPort=2]="ElementIsPort",r[r.ElementIsGroup=4]="ElementIsGroup",(n=t.ConnectorConstraints||(t.ConnectorConstraints={}))[n.None=1]="None",n[n.Select=2]="Select",n[n.Delete=4]="Delete",n[n.Drag=8]="Drag",n[n.DragSourceEnd=16]="DragSourceEnd",n[n.DragTargetEnd=32]="DragTargetEnd",n[n.DragSegmentThumb=64]="DragSegmentThumb",n[n.AllowDrop=128]="AllowDrop",n[n.Bridging=256]="Bridging",n[n.BridgeObstacle=512]="BridgeObstacle",n[n.InheritBridging=1024]="InheritBridging",n[n.PointerEvents=2048]="PointerEvents",n[n.Tooltip=4096]="Tooltip",n[n.InheritTooltip=8192]="InheritTooltip",n[n.Interaction=4218]="Interaction",n[n.ReadOnly=16384]="ReadOnly",n[n.Default=11838]="Default",(s=t.ThumbsConstraints||(t.ThumbsConstraints={}))[s.Rotate=2]="Rotate",s[s.ConnectorSource=4]="ConnectorSource",s[s.ConnectorTarget=8]="ConnectorTarget",s[s.ResizeNorthEast=16]="ResizeNorthEast",s[s.ResizeEast=32]="ResizeEast",s[s.ResizeSouthEast=64]="ResizeSouthEast",s[s.ResizeSouth=128]="ResizeSouth",s[s.ResizeSouthWest=256]="ResizeSouthWest",s[s.ResizeWest=512]="ResizeWest",s[s.ResizeNorthWest=1024]="ResizeNorthWest",s[s.ResizeNorth=2048]="ResizeNorth",s[s.Default=4094]="Default",(a=t.SelectorConstraints||(t.SelectorConstraints={}))[a.None=1]="None",a[a.ConnectorSourceThumb=2]="ConnectorSourceThumb",a[a.ConnectorTargetThumb=4]="ConnectorTargetThumb",a[a.ResizeSouthEast=8]="ResizeSouthEast",a[a.ResizeSouthWest=16]="ResizeSouthWest",a[a.ResizeNorthEast=32]="ResizeNorthEast",a[a.ResizeNorthWest=64]="ResizeNorthWest",a[a.ResizeEast=128]="ResizeEast",a[a.ResizeWest=256]="ResizeWest",a[a.ResizeSouth=512]="ResizeSouth",a[a.ResizeNorth=1024]="ResizeNorth",a[a.Rotate=2048]="Rotate",a[a.UserHandle=4096]="UserHandle",a[a.ToolTip=8192]="ToolTip",a[a.ResizeAll=2046]="ResizeAll",a[a.All=16382]="All",(h=t.NoOfSegments||(t.NoOfSegments={}))[h.Zero=0]="Zero",h[h.One=1]="One",h[h.Two=2]="Two",h[h.Three=3]="Three",h[h.Four=4]="Four",h[h.Five=5]="Five";var w,S=function(){function t(t,e){this.width=t,this.height=e}return t.prototype.clone=function(){return new t(this.width,this.height)},t}(),A=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}();(w=t.MatrixTypes||(t.MatrixTypes={}))[w.Identity=0]="Identity",w[w.Translation=1]="Translation",w[w.Scaling=2]="Scaling",w[w.Unknown=4]="Unknown";var M=function(t,e,i,r,o,n,s){this.m11=t,this.m12=e,this.m21=i,this.m22=r,this.offsetX=o,this.offsetY=n,this.type=s};function k(){return new M(1,0,0,1,0,0,t.MatrixTypes.Identity)}function P(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 z(e,i,r,o){C(e,function(e,i,r){var o=k(),n=Math.sin(e),s=Math.cos(e),a=i*(1-s)+r*n,h=r*(1-s)-i*n;return o.type=t.MatrixTypes.Unknown,T(o,s,n,-n,s,a,h),o}(.017453292519943295*(i%=360),r||0,o||0))}function C(e,i){var r=e.type,o=i.type;if(o!==t.MatrixTypes.Identity){if(r===t.MatrixTypes.Identity)return R(e,i),void(e.type=i.type);if(o===t.MatrixTypes.Translation)return e.offsetX+=i.offsetX,e.offsetY+=i.offsetY,void(r!==t.MatrixTypes.Unknown&&(e.type|=t.MatrixTypes.Translation));if(r!==t.MatrixTypes.Translation){var n=r<<4|o;switch(n){case 34:return e.m11*=i.m11,void(e.m22*=i.m22);case 35:return e.m11*=i.m11,e.m22*=i.m22,e.offsetX=i.offsetX,e.offsetY=i.offsetY,void(e.type=t.MatrixTypes.Translation|t.MatrixTypes.Scaling);case 36:break;default:switch(n){case 50:return e.m11*=i.m11,e.m22*=i.m22,e.offsetX*=i.m11,void(e.offsetY*=i.m22);case 51:return e.m11*=i.m11,e.m22*=i.m22,e.offsetX=i.m11*e.offsetX+i.offsetX,void(e.offsetY=i.m22*e.offsetY+i.offsetY);case 52:break;default:switch(n){case 66:case 67:case 68:break;default:return}}}var s=k();return T(s,e.m11*i.m11+e.m12*i.m21,e.m11*i.m12+e.m12*i.m22,e.m21*i.m11+e.m22*i.m21,e.m21*i.m12+e.m22*i.m22,e.offsetX*i.m11+e.offsetY*i.m21+i.offsetX,e.offsetX*i.m12+e.offsetY*i.m22+i.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),R(e,s),void(e.type=s.type)}var a=e.offsetX,h=e.offsetY;e.offsetX=a*i.m11+h*i.m21+i.offsetX,e.offsetY=a*i.m12+h*i.m22+i.offsetY,o!==t.MatrixTypes.Unknown?e.type=t.MatrixTypes.Translation|t.MatrixTypes.Scaling:e.type=t.MatrixTypes.Unknown}}function T(t,e,i,r,o,n,s){t.m11=e,t.m12=i,t.m21=r,t.m22=o,t.offsetX=n,t.offsetY=s}function R(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 O(t){var e,i=[];if("msie"===sf.base.Browser.info.name||"edge"===sf.base.Browser.info.name)for(var r=0;r<t.childNodes.length;r++)1===(e=t.childNodes[r]).nodeType&&i.push(e);else i=t.children;return i}function B(t){var e="pathTable";if(window[e]||(window[e]={}),t){window.measureElement.style.visibility="visible";var i=O(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 A(r.x,r.y,r.width,r.height);return window.measureElement.style.visibility="hidden",o}return new A(0,0,0,0)}function E(t,e){var i,r,o=[],n=0,s=e||t.content;if("nowrap"!==t.whiteSpace&&"pre"!==t.whiteSpace)if("breakall"===t.breakWord)for(i="",i+=s[0],n=0;n<s.length;n++)if((r=V(i,t))>=t.width&&i.length>0)o[o.length]={text:i,x:0,dy:0,width:r},i="";else{(i+=s[n+1]||"").indexOf("\n")>-1&&(i=i.replace("\n",""));var a=V(i,t);Math.ceil(a)+2>=t.width&&i.length>0&&(o[o.length]={text:i,x:0,dy:0,width:a},i=""),n===s.length-1&&i.length>0&&(o[o.length]={text:i,x:0,dy:0,width:a},i="")}else o=function(t,e){var i,r,o,n,s=[],a="",h=0,d=0,l="nowrap"!==t.whiteSpace,c=(e||t.content).split("\n");for(h=0;h<c.length;h++)for(i="NoWrap"!==t.textWrapping?c[h].split(" "):c,d=0;d<i.length;d++){a+=((0!==d||1===i.length)&&l&&a.length>0?" ":"")+i[d];var f=V(r=a+(i[d+1]||""),t);Math.floor(f)>t.width-2&&a.length>0?(s[s.length]={text:a,x:0,dy:0,width:r===a?f:a===n?o:V(a,t)},a=""):d===i.length-1&&(s[s.length]={text:a,x:0,dy:0,width:f},a=""),n=r,o=f}return s}(t,e);else o[o.length]={text:s,x:0,dy:0,width:V(s,t)};return o}function N(t,e,i,r,o){var n,s,a=new S(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=H(t.style.whiteSpace,t.style.textWrapping),i.content=t.content,i.textWrapping=t.style.textWrapping,i.breakWord=U(t.style.textWrapping),i.textAlign=F(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=E(h,o),t.wrapBounds=s=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),a.width=s.width,t.wrapBounds.width>=r&&"Wrap"!==h.textOverflow&&(a.width=r),a.height=n.length*t.style.fontSize*1.2,a}function W(t,e){var i;return e&&(i=document.getElementById(e)),i?i.querySelector("#"+t):document.getElementById(t)}function D(t,e){var i=sf.base.createElement(t);return _(i,e),i}function _(t,e){for(var i=Object.keys(e),r=0;r<i.length;r++)t.setAttribute(i[r],e[i[r]])}function X(t,e){var i=null,r=W(t+e+"_diagramAdornerLayer");return r&&(i=r.getElementsByClassName("e-adorner-layer"+e)[0]),i}function L(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 S(o,n),window.measureElement.style.visibility="hidden",e}function Y(t){new A;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},s={x:o,y:e},a={x:r,y:i},h={x:o,y:i};return A.toBounds([n,s,a,h])}function I(t,e){var i=k();z(i,e,0,0);var r=P(i,{x:0,y:0}),o=P(i,{x:t.width,y:0}),n=P(i,{x:0,y:t.height}),s=P(i,{x:t.width,y:t.height}),a=Math.min(r.x,o.x,n.x,s.x),h=Math.min(r.y,o.y,n.y,s.y),d=Math.max(r.x,o.x,n.x,s.x),l=Math.max(r.y,o.y,n.y,s.y);return new S(d-a,l-h)}function j(t){var e,i=new A,r=(e=Y(t)).middleLeft,o=e.topCenter,n=e.bottomCenter,s=e.middleRight,a=e.topLeft,h=e.topRight,d=e.bottomLeft,l=e.bottomRight;if(t.corners={topLeft:a,topCenter:o,topRight:h,middleLeft:r,middleRight:s,bottomLeft:d,bottomCenter:n,bottomRight:l},0!==t.rotateAngle||0!==t.parentTransform){var c=k();z(c,t.rotateAngle+t.parentTransform,t.offsetX,t.offsetY),t.corners.topLeft=a=P(c,a),t.corners.topCenter=o=P(c,o),t.corners.topRight=h=P(c,h),t.corners.middleLeft=r=P(c,r),t.corners.middleRight=s=P(c,s),t.corners.bottomLeft=d=P(c,d),t.corners.bottomCenter=n=P(c,n),t.corners.bottomRight=l=P(c,l)}return i=A.toBounds([a,h,d,l]),t.corners.left=i.left,t.corners.right=i.right,t.corners.top=i.top,t.corners.bottom=i.bottom,t.corners.center=i.center,t.corners.width=i.width,t.corners.height=i.height,i}function F(t){var e="";switch(t){case"Center":e="center";break;case"Left":e="left";break;case"Right":e="right"}return e}function U(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 V(t,e){window.measureElement.style.visibility="visible";var i=O(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 H(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 q(t,e,i,r){if(0!==t){var o=k();return z(o,t,e,i),P(o,r)}return r}function Q(t,e){return{x:t.x+e.desiredSize.width*e.pivot.x,y:t.y+e.desiredSize.height*e.pivot.y}}var Z,G,J,K,$=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 S,this.actualSize=new S,this.parentTransform=0,this.preventContainer=!1,this.bounds=new A(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 S(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=j(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 S).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=(Z=function(t,e){return(Z=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])})(t,e)},function(t,e){function i(){this.constructor=t}Z(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),et=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 s="Stretch"===i.horizontalAlignment||"Stretch"===i.verticalAlignment;(this.measureChildren||s||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 a={x:this.desiredBounds.x+this.desiredBounds.width*this.pivot.x,y:this.desiredBounds.y+this.desiredBounds.height*this.pivot.y},h=q(this.rotateAngle,void 0,void 0,a);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 S(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=Q({x:e.x-t.desiredSize.width/2,y:e.y-t.desiredSize.height/2},t);i=q(t.rotateAngle,e.x,e.y,i),i=q(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,s=o+e.width,a=n+e.height,h={x:o,y:n},d={x:s,y:n},l={x:o,y:a},c={x:s,y:a};return h=q(t.rotateAngle,t.offsetX,t.offsetY,h),d=q(t.rotateAngle,t.offsetX,t.offsetY,d),l=q(t.rotateAngle,t.offsetX,t.offsetY,l),c=q(t.rotateAngle,t.offsetX,t.offsetY,c),0!==this.rotateAngle&&(h=q(-this.rotateAngle,void 0,void 0,h),d=q(-this.rotateAngle,void 0,void 0,d),l=q(-this.rotateAngle,void 0,void 0,l),c=q(-this.rotateAngle,void 0,void 0,c)),A.toBounds([h,d,l,c])},e}($),it=(G=function(t,e){return(G=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])})(t,e)},function(t,e){function i(){this.constructor=t}G(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),rt=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 it(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?N(this,this.style,this.content,this.width||t.width):this.desiredSize,void 0===this.width||void 0===this.height?this.desiredSize=new S(e.width,e.height):this.desiredSize=new S(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}($),ot=(J=function(t,e){return(J=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])})(t,e)},function(t,e){function i(){this.constructor=t}J(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),nt=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.measureChildren=void 0,t}return ot(i,e),i.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 s=n[o];if(s instanceof rt){if(!s.canMeasure)break;t.width=t.width||this.maxWidth||this.minWidth,s.measure(t)}else s instanceof rt||s.measure(t);var a=s.desiredSize.clone();0!==s.rotateAngle&&(a=I(a,s.rotateAngle));var h=a.width+s.margin.right,d=a.height+s.margin.bottom,l=new A(s.margin.left,s.margin.top,h,d);if(s.float)if(void 0!==s.getAbsolutePosition(a))continue;s instanceof rt&&!(s instanceof rt&&s.canConsiderBounds)||(void 0===r?r=l:r.uniteRect(l))}if(r){var c,f;c=Math.max(r.left,0),f=Math.max(r.top,0),i=new S(r.width+c,r.height+f)}}return i=e.prototype.validateDesiredSize.call(this,i,t),e.prototype.stretchChildren.call(this,i),this.desiredSize=i,i},i.prototype.arrange=function(i){if(this.outerBounds=new A,this.hasChildren()){var r,o;r=this.offsetY-i.height*this.pivot.y,o=this.offsetX-i.width*this.pivot.x;for(var n=0,s=this.children;n<s.length;n++){var a=s[n];if(0!=(a.transform&t.RotateTransform.Parent)){a.parentTransform=this.parentTransform+this.rotateAngle;var h=a.desiredSize.clone(),d=void 0,l={x:0,y:0},c=o,f=r;if("Point"===a.relativeMode){var u=a.getAbsolutePosition(i);void 0!==u&&(c+=u.x,f+=u.y)}if(l={x:(d="Object"===a.relativeMode?this.alignChildBasedOnParent(a,h,i,c,f):this.alignChildBasedOnaPoint(a,c,f)).x+h.width/2,y:d.y+h.height/2},a.rotateValue){var y={x:this.offsetX+(a.rotateValue.x||0),y:this.offsetY+(a.rotateValue.y||0)},p={x:this.offsetX,y:this.offsetY},g=0|a.rotateValue.angle,m=k();z(m,g,p.x,p.y),l=P(m,y)}e.prototype.findChildOffsetFromCenter.call(this,a,l)}"Stretch"===a.horizontalAlignment||"Stretch"===a.verticalAlignment?a.arrange(i):a instanceof rt&&a.canMeasure?(a.arrange(a.desiredSize),this.outerBounds.uniteRect(a.outerBounds)):a instanceof rt||(a.arrange(a.desiredSize),this.outerBounds.uniteRect(a.outerBounds))}}return this.actualSize=i,this.updateBounds(),this.outerBounds.uniteRect(this.bounds),i},i.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}},i.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}},i}(et),st=(K=function(t,e){return(K=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])})(t,e)},function(t,e){function i(){this.constructor=t}K(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),at=function(t){function e(){var e=t.call(this)||this;return e.imageSource="",e.imageScale="None",e.imageAlign="None",e.stretch="Stretch",e}return st(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=L(this.source,this.contentSize),this.isDirt=!1),void 0!==this.width&&void 0!==this.height?(this.desiredSize=new S(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 S(this.desiredSize.width,this.desiredSize.height),this.updateBounds(),this.actualSize},e}($);function ht(t){var e,i=[],r=dt(t);if(r.length>0)for(var o=0;o<r.length;o++){var n=r[o],s="";switch((s=n[0]).toLowerCase()){case"m":for(e=1;e<n.length;e++)i.push({command:s,x:n[e],y:n[e+1]}),e+=1,"m"===s?s="l":"M"===s&&(s="L");break;case"l":case"t":for(e=1;e<n.length;e++)i.push({command:s,x:n[e],y:n[e+1]}),e+=1;break;case"h":for(e=1;e<n.length;e++)i.push({command:s,x:n[e]});break;case"v":for(e=1;e<n.length;e++)i.push({command:s,y:n[e]});break;case"z":i.push({command:s});break;case"c":for(e=1;e<n.length;e++)i.push({command:s,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:s,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:s,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:s,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 dt(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 lt(t,e,i){var r,o,n,s="",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}],h=[{x:0+i,y:0},{x:0+i,y:0+e},{x:0,y:0+e},{x:0,y:0}],d=0;for(s="M"+a[0].x+" "+a[0].y,n=0;n<a.length;n+=2)s+="L"+(r=a[n+1]).x+" "+r.y,o=a[n+2]||a[0],s+="Q"+h[d].x+" "+h[d].y+" "+o.x+" "+o.y,d++;return s}function ct(t){var e,i,r,o,n,s,a,h,d,l,c=[];for(a=0,h=0,l=0,d=t.length;l<d;++l){var f,u=t[l];f=u.command,"y1"in u&&(o=u.y1),"y2"in u&&(s=u.y2),"x1"in u&&(r=u.x1),"x2"in u&&(n=u.x2),"x"in u&&(a=u.x),"y"in u&&(h=u.y);var y=c[c.length-1];switch(f){case"M":c.push({command:"M",x:a,y:h});break;case"L":c.push({command:"L",x0:e,y0:i,x:a,y:h});break;case"H":c.push({command:"L",x0:e,y0:i,x:a,y:i});break;case"V":c.push({command:"L",x0:e,y0:i,x:e,y:h});break;case"C":c.push({command:"C",x0:e,y0:i,x1:r,y1:o,x2:n,y2:s,x:a,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};c.push({command:"C",x0:e,y0:i,x1:g.x,y1:g.y,x2:n,y2:s,x:a,y:h})}break;case"Q":c.push({command:"Q",x0:e,y0:i,x1:r,y1:o,x:a,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};c.push({command:"Q",x0:e,y0:i,x1:g.x,y1:g.y,x:a,y:h})}break;case"A":var m=u;m.command="A",c.push(m);break;case"Z":case"z":c.push({command:"Z"}),a=e,h=i}e=a,i=h}return c}function ft(t,e,i,r,o,n,s,a){var h,d,l,c,f,u,y,p,g;for(f=0,u=0,p=0,y=t.length;p<y;++p){var m=t[p],x=m.command;"x"in m&&(f=m.x),"y"in m&&(u=m.y),"y1"in m&&(d=m.y1),"y2"in m&&(c=m.y2),"x1"in m&&(h=m.x1),"x2"in m&&(l=m.x2),r?(void 0!==f&&(f=yt(f,e,o,s)),void 0!==u&&(u=yt(u,i,n,a)),void 0!==h&&(h=yt(h,e,o,s)),void 0!==d&&(d=yt(d,i,n,a)),void 0!==l&&(l=yt(l,e,o,s)),void 0!==c&&(c=yt(c,i,n,a))):(void 0!==f&&(f=Number((f+e).toFixed(2))),void 0!==u&&(u=Number((u+i).toFixed(2))),void 0!==h&&(h=Number((h+e).toFixed(2))),void 0!==d&&(d=Number((d+i).toFixed(2))),void 0!==l&&(l=Number((l+e).toFixed(2))),void 0!==c&&(c=Number((c+i).toFixed(2)))),(g=ut(m,x,{x:f,y:u,x1:h,y1:d,x2:l,y2:c,r1:m.r1,r2:m.r2},r,e,i))&&(t[p]=g)}return gt(t)}function ut(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 s=i.r1,a=i.r2;r&&(i.r1=s*=o,i.r2=a*=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 yt(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 pt(t){var e,i,r,o,n,s,a,h,d,l;for(a=0,h=0,l=0,d=t.length;l<d;++l){var c=t[l],f=c.command;if(/[MLHVCSQTA]/.test(f))"x"in c&&(c.x=a=c.x),"y"in c&&(c.y=h=c.y);else{"x1"in c&&(c.x1=r=a+c.x1),"x2"in c&&(c.x2=n=a+c.x2),"y1"in c&&(c.y1=o=h+c.y1),"y2"in c&&(c.y2=s=h+c.y2),"x"in c&&(c.x=a+=c.x),"y"in c&&(c.y=h+=c.y);var u=void 0;switch(f){case"m":case"M":u={command:"M",x:a,y:h};break;case"l":case"L":u={command:"L",x:a,y:h};break;case"h":case"H":u={command:"H",x:a};break;case"v":case"V":u={command:"V",y:h};break;case"c":case"C":u={command:"C",x:a,y:h,x1:r,y1:o,x2:n,y2:s};break;case"s":case"S":u={command:"S",x:a,y:h,x2:n,y2:s};break;case"q":case"Q":u={command:"Q",x:a,y:h,x1:r,y1:o};break;case"t":case"T":u={command:"T",x:a,y:h};break;case"a":case"A":(u={command:"A",x:a,y:h}).r1=c.r1,u.r2=c.r2,u.angle=c.angle,u.largeArc=c.largeArc,u.sweep=c.sweep;break;case"z":case"Z":u={command:"Z"},a=e,h=i,u=t[l]}u&&(t[l]=u)}"M"!==f&&"m"!==f||(e=a,i=h)}return t}function gt(t){var e,i="";for(e=0;e<t.length;e++)i+=0===e?mt(t[e]):" "+mt(t[e]);return i}function mt(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}var xt,vt,bt=(xt=function(t,e){return(xt=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])})(t,e)},function(t,e){function i(){this.constructor=t}xt(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),wt=function(t){function e(){var e=t.call(this)||this;return e.pathData="",e.transformPath=!0,e.absolutePath="",e.canMeasurePath=!1,e.absoluteBounds=new A,e}return bt(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 A(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=B(this.data?this.data:"")),void 0===this.width?this.desiredSize=new S(this.absoluteBounds.width,this.height||this.absoluteBounds.height):void 0===this.height?this.desiredSize=new S(this.width||this.absoluteBounds.width,this.absoluteBounds.height):this.desiredSize=new S(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,s=-e.y,a=[];return i.width===e.width&&i.height===e.height||(n=i.width/Number(e.width?e.width:1),s=i.height/Number(e.height?e.height:1),r=!0),a=pt(a=ht(t)),o=(r||this.isDirt)&&this.transformPath?ft(a,n,s,r,e.x,e.y,0,0):gt(a),r=!1,o},e}($),St=(vt=function(t,e){return(vt=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])})(t,e)},function(t,e){function i(){this.constructor=t}vt(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),At=function(t,e,i,r){var n,s=arguments.length,a=s<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"===("undefined"==typeof Reflect?"undefined":o()(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,r);else for(var h=t.length-1;h>=0;h--)(n=t[h])&&(a=(s<3?n(a):s>3?n(e,i,a):n(e,i))||a);return s>3&&a&&Object.defineProperty(e,i,a),a},Mt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return St(e,t),e.equals=function(t,e){return t===e||!(!t||!e)&&(!t||!e||t.x===e.x&&t.y===e.y)},e.isEmptyPoint=function(t){return!t.x||!t.y},e.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},e.findLength=function(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},e.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},e.distancePoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},e.getLengthFromListOfPoints=function(t){for(var e=0,i=0;i<t.length-1;i++)e+=this.distancePoints(t[i],t[i+1]);return e},e.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},e.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"},e.prototype.getClassName=function(){return"Point"},At([sf.base.Property(0)],e.prototype,"x",void 0),At([sf.base.Property(0)],e.prototype,"y",void 0),e}(sf.base.ChildProperty),kt=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=lt(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=ct(r=ht(i.data));var o=t.getContext(e);o.save(),o.beginPath();var n=i.y+i.height*i.pivotY,s=i.x+i.width*i.pivotX;this.rotateContext(e,i.angle,s,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),s=void 0,a=void 0,h=void 0,d=void 0,l=void 0,c=void 0,f=void 0,u=void 0,y=void 0,p=r;for(f=0,u=0,y=0,o=p.length;y<o;++y){var g=p[y],m=g.command;switch("x1"in g&&(h=g.x1),"x2"in g&&(l=g.x2),"y1"in g&&(d=g.y1),"y2"in g&&(c=g.y2),"x"in g&&(f=g.x),"y"in g&&(u=g.y),m){case"M":n.moveTo(f,u),g.x=f,g.y=u;break;case"L":n.lineTo(f,u),g.x=f,g.y=u;break;case"C":n.bezierCurveTo(h,d,l,c,f,u),g.x=f,g.y=u,g.x1=h,g.y1=d,g.x2=l,g.y2=c;break;case"Q":n.quadraticCurveTo(h,d,f,u),g.x=f,g.y=u,g.x1=h,g.y1=d;break;case"A":var x={x:s,y:a},v=g.r1,b=g.r2,w=g.angle*(Math.PI/180),S=g.largeArc,A=g.sweep,M={x:f,y:u},k={x:Math.cos(w)*(x.x-M.x)/2+Math.sin(w)*(x.y-M.y)/2,y:-Math.sin(w)*(x.x-M.x)/2+Math.cos(w)*(x.y-M.y)/2},P=Math.pow(k.x,2)/Math.pow(v,2)+Math.pow(k.y,2)/Math.pow(b,2);P>1&&(v*=Math.sqrt(P),b*=Math.sqrt(P));var z=Math.pow(b,2)*Math.pow(k.x,2),C=(S===A?-1:1)*Math.sqrt((Math.pow(v,2)*Math.pow(b,2)-Math.pow(v,2)*Math.pow(k.y,2)-z)/(Math.pow(v,2)*Math.pow(k.y,2)+Math.pow(b,2)*Math.pow(k.x,2)));isNaN(C)&&(C=0);var T={x:C*v*k.y/b,y:C*-b*k.x/v},R={x:(x.x+M.x)/2+Math.cos(w)*T.x-Math.sin(w)*T.y,y:(x.y+M.y)/2+Math.sin(w)*T.x+Math.cos(w)*T.y},O=this.a([1,0],[(k.x-T.x)/v,(k.y-T.y)/b]),B=[(k.x-T.x)/v,(k.y-T.y)/b],E=[(-k.x-T.x)/v,(-k.y-T.y)/b],N=this.a(B,E);if(this.r(B,E)<=-1&&(N=Math.PI),this.r(B,E)>=1&&(N=0),g.centp=R,g.xAxisRotation=w,g.rx=v,g.ry=b,g.a1=O,g.ad=N,g.sweep=A,null!=n){var W=v>b?v:b,D=v>b?1:v/b,_=v>b?b/v:1;n.save(),n.translate(R.x,R.y),n.rotate(w),n.scale(D,_),n.arc(0,0,W,O,O+N,!A),n.scale(1/D,1/_),n.rotate(-w),n.translate(-R.x,-R.y),n.restore()}break;case"Z":case"z":n.closePath(),f=s,u=a}s=f,a=u}}},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 s,a=0;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 l=s[a],c=d.x+l.x-h.x,f=d.y+l.dy*a+.8*i.fontSize;if(r.fillText(l.text,c,f),"Underline"===i.textDecoration||"Overline"===i.textDecoration||"LineThrough"===i.textDecoration){var u=c,y=void 0,p=c+r.measureText(l.text).width,g=void 0;switch(i.textDecoration){case"Underline":y=f+2,g=f+2;break;case"Overline":y=d.y+l.dy*a,g=d.y+l.dy*a;break;case"LineThrough":y=(f+d.y+l.dy*a)/2+2,g=(f+d.y+l.dy*a)/2+2}r.beginPath(),r.moveTo(u,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,s){t.beginPath();var a=e.width,h=e.height,d=o,l=n,c=0,f=0;if(t.globalAlpha=s.opacity,s&&"None"!==s.alignment){var u=s.alignment.toLowerCase().substr(1,3),y=s.alignment.toLowerCase().substr(5,3);if("Slice"===s.scale){var p=function(){c=d,f=h*d/a},g=function(){c=a*l/h,f=l};d>l?(p(),l>f&&g()):d===l?a>h?g():p():(g(),d>c&&p());var m=this.getSliceOffset(u,c,d,a),x=this.getSliceOffset(y,f,l,h),v=a-m,b=h-x,w=c-m*(c/a),S=f-x*(f/h),A=D("canvas",{width:o.toString(),height:n.toString()});A.getContext("2d").drawImage(e,m,x,v,b,0,0,w,S),t.drawImage(A,i,r,o,n)}else if("Meet"===s.scale){var M=h/a,k=l/d;c=k>M?d:l/M,f=k>M?d*M:l,i+=this.getMeetOffset(u,c,d),r+=this.getMeetOffset(y,f,l),t.drawImage(e,0,0,a,h,i,r,c,f)}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 s=t.getContext(e);s.save();var a=i.x+i.width*i.pivotX,h=i.y+i.height*i.pivotY,d=new Image;d.src=i.source;var l=s.canvas.id.split("_");l[l.length-1];o?d.onload=function(){n.loadImage(s,i,e,a,h)}:this.loadImage(s,i,e,a,h),s.restore()}},t.prototype.labelAlign=function(t,e,i){var r=new S(e.width,i.length*(1.2*t.fontSize)),o={x:0,y:0},n=t.x,s=t.y,a=.5*t.width,h=.5*t.height;return"left"===t.textAlign?a=0:"center"===t.textAlign?a=e.width>t.width&&("Ellipsis"===t.textOverflow||"Clip"===t.textOverflow)?0:.5*t.width:"right"===t.textAlign&&(a=1*t.width),o.x=n+a+(e?e.x:0),o.y=s+h-r.height/2,o},t}();var Pt=function(){function t(t,e){this.renderer=null,this.isSvgMode=!0,this.diagramId=t,this.element=W(this.diagramId),this.isSvgMode=e,this.renderer=new kt}return t.prototype.renderElement=function(t,e,i,r,o,n,s,a){t instanceof et?this.renderContainer(t,e,i,r,o,n,s,a):t instanceof at?this.renderImageElement(t,e,r,o,s):t instanceof wt?this.renderPathElement(t,e,r,o,s):t instanceof rt?this.renderTextElement(t,e,r,o,s):this.renderRect(t,e,r,o)},t.prototype.renderImageElement=function(t,e,i,r,o){var n,s,a,h,d=this.getBaseAttributes(t,i);if(d.cornerRadius=0,this.renderer.drawRectangle(e,d),"Stretch"===t.stretch)n=t.actualSize.width,s=t.actualSize.height;else{var l=t.contentSize.width,c=t.contentSize.height,f=d.width/l,u=d.height/c,y=void 0;switch(t.stretch){case"Meet":n=l*(y=Math.min(f,u)),s=c*y,d.x+=Math.abs(d.width-n)/2,d.y+=Math.abs(d.height-s)/2;break;case"Slice":f=d.width/l,u=d.height/c,n=l*(y=Math.max(f,u)),s=c*y,a=d.width/n*l,h=d.height/s*c;break;case"None":n=l,s=c}}d.width=n,d.height=s,d.sourceWidth=a,d.sourceHeight=h,d.source=t.source,d.alignment=t.imageAlign,d.scale=t.imageScale,this.renderer.drawImage(e,d,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=H(t.style.whiteSpace,t.style.textWrapping),n.content=t.content,n.breakWord=U(t.style.textWrapping),n.textAlign=F(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,s,a){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 l=d[h];this.renderElement(l,e,i,r,o,!0,s,a)}},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}(),zt=function(){function t(){}return t.prototype.parseDashArray=function(t){return[]},t.prototype.drawRectangle=function(t,e,i,r,o,n,s){var a,h;a=e.id===t.id?e.id+"_container":e.id,h&&!o||(h=document.createElementNS("http://www.w3.org/2000/svg","rect"),t.appendChild(h));var d={id:a,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":s||""};e.class&&(d.class=e.class);s||(d["pointer-events"]="none"),Ct(h,d),this.setSvgStyle(h,e,i)},t.prototype.updateSelectionRegion=function(t,e){var i,r;i=t.parentNode.getElementById(e.id),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),Ct(i,r)},t.prototype.createGElement=function(t,e){return Tt(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 s={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",Ct(o,s),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=[];if(void 0!==e.dashArray)o=(new kt).parseDashArray(e.dashArray);r=e.fill,e.stroke&&t.setAttribute("stroke",e.stroke),void 0!==e.strokeWidth&&null!==e.strokeWidth&&t.setAttribute("stroke-width",e.strokeWidth.toString()),o&&t.setAttribute("stroke-dasharray",o.toString()),r&&t.setAttribute("fill",r)}},t.prototype.svgLabelAlign=function(t,e,i){var r=new S(e.width,i.length*(1.2*t.fontSize)),o={x:0,y:0},n=.5*t.width,s=.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+s-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),Ct(i,n),t.appendChild(i)},t.prototype.drawPath=function(t,e,i,r,o,n){var s=Math.floor(10*Math.random()+1);t.id,s.toString();var a,h,d=[];d=ct(d=ht(e.data)),o&&(a=o.getElementById(e.id+"_groupElement_shadow"))&&a.parentNode.removeChild(a),o&&(h=o.getElementById(e.id)),h&&!r||(h=document.createElementNS("http://www.w3.org/2000/svg","path"),t.appendChild(h)),this.renderPath(h,e,d);var l={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&&(l.class=e.class),Ct(h,l),this.setSvgStyle(h,e,i)},t.prototype.renderPath=function(t,e,i){var r,o,n,s,a,h,d,l,c=i,f="";for(a=0,h=0,l=0,d=c.length;l<d;++l){var u=c[l],y=u.command;switch("x1"in u&&(r=u.x1),"x2"in u&&(n=u.x2),"y1"in u&&(o=u.y1),"y2"in u&&(s=u.y2),"x"in u&&(a=u.x),"y"in u&&(h=u.y),y){case"M":f=f+"M"+a.toString()+","+h.toString()+" ";break;case"L":f=f+"L"+a.toString()+","+h.toString()+" ";break;case"C":f=f+"C"+r.toString()+","+o.toString()+","+n.toString()+","+s.toString()+",",f+=a.toString()+","+h.toString()+" ";break;case"Q":f=f+"Q"+r.toString()+","+o.toString()+","+a.toString()+","+h.toString()+" ";break;case"A":f=f+"A"+u.r1.toString()+","+u.r2.toString()+","+u.angle.toString()+",",f+=u.largeArc.toString()+","+u.sweep+","+a.toString()+","+h.toString()+" ";break;case"Z":case"z":f+="Z "}}t.setAttribute("d",f)},t}();function Ct(t,e){for(var i=Object.keys(e),r=0;r<i.length;r++)t.setAttribute(i[r],e[i[r]])}function Tt(t,e){var i=document.createElementNS("http://www.w3.org/2000/svg",t);return Ct(i,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 et){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),s=(o.x2-o.x1)*(r.y1-o.y1)-(o.y2-o.y1)*(r.x1-o.x1),a=(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=s/n,d=a/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 Bt(t,e,i,r){return{x1:Number(t)||0,y1:Number(e)||0,x2:Number(i)||0,y2:Number(r)||0}}return t.Thickness=f,t.Margin=u,t.Stop=y,t.Gradient=p,t.LinearGradient=g,t.RadialGradient=m,t.ShapeStyle=x,t.StrokeStyle=v,t.TextStyle=b,t.Canvas=nt,t.Container=et,t.DrawingElement=$,t.ImageElement=at,t.PathElement=wt,t.TextElement=rt,t.Matrix=M,t.identityMatrix=k,t.transformPointByMatrix=P,t.transformPointsByMatrix=function(t,e){for(var i=[],r=0,o=e;r<o.length;r++){var n=o[r];i.push(P(t,n))}return i},t.rotateMatrix=z,t.scaleMatrix=function(e,i,r,o,n){void 0===o&&(o=0),void 0===n&&(n=0),C(e,function(e,i,r,o){var n=k();return n.type=r||o?t.MatrixTypes.Scaling|t.MatrixTypes.Translation:t.MatrixTypes.Scaling,T(n,e,0,0,i,r-e*r,o-i*o),n}(i,r,o,n))},t.translateMatrix=function(e,i,r){return e.type&t.MatrixTypes.Identity?(e.type=t.MatrixTypes.Translation,void T(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=C,t.Point=Mt,t.Rect=A,t.Size=S,t.CanvasRenderer=kt,t.refreshDiagramElements=function(t,e,i){for(var r=0;r<e.length;r++)i.renderElement(e[r],t,void 0)},t.DrawingRenderer=Pt,t.SvgRenderer=zt,t.setAttributeSvg=Ct,t.createSvgElement=Tt,t.createSvg=function(t,e,i){var r=document.createElementNS("http://www.w3.org/2000/svg","svg");return Ct(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=Y,t.rotateSize=I,t.getBounds=j,t.textAlignToString=F,t.wordBreakToString=U,t.bBoxText=V,t.middleElement=function(t,e){return(t+e)/2},t.whiteSpaceToString=H,t.rotatePoint=q,t.getOffset=Q,t.findNearestPoint=function(t,e,i){var r;r=Mt.findLength(e,t)>Mt.findLength(i,t)?i:e;var o=Mt.findAngle(e,i),n=Mt.findAngle(r,t),s=Mt.findLength(r,t),a=n+2*(o-n);return{x:r.x+s*Math.cos(a*Math.PI/180),y:r.y+s*Math.sin(a*Math.PI/180)}},t.findElementUnderMouse=function(t,e,i){return Rt(t.wrapper,e,i)},t.findTargetElement=Rt,t.intersect3=Ot,t.intersect2=function(t,e,i,r){var o=Ot(Bt(t.x,t.y,e.x,e.y),Bt(i.x,i.y,r.x,r.y));return o.enabled?o.intersectPt:{x:0,y:0}},t.getLineSegment=Bt,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},s={x:e.bottomRight.x,y:e.bottomRight.y-i},a={x:e.bottomLeft.x,y:e.bottomLeft.y+i};return r.push(o),r.push(n),r.push(s),r.push(a),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 v&&(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 rt&&r.refreshTextElement()},t.scaleElement=function t(e,i,r,o){if(void 0!==e.width&&void 0!==e.height&&(e.width*=i,e.height*=r),e instanceof et){var n=k(),s=o.width||o.actualSize.width,a=o.height||o.actualSize.height;if(void 0!==s&&void 0!==a){var h=o.offsetX-s*o.pivot.x,d=o.offsetY-a*o.pivot.y,l={x:h+s*o.pivot.x,y:d+a*o.pivot.y};l=q(o.rotateAngle,o.offsetX,o.offsetY,l),z(n,-o.rotateAngle,l.x,l.y),z(n,o.rotateAngle,l.x,l.y);for(var c=0,f=e.children;c<f.length;c++){var u=f[c];if(void 0!==u.width&&void 0!==u.height){var y=P(n,{x:u.offsetX,y:u.offsetY});u.offsetX=y.x,u.offsetY=y.y,t(u,i,r,o)}}}}},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,i,r,o,n,s,a){var h={x:0,y:0},d=k();switch(z(d,o,n,s),a.x){case 0:switch(a.y){case 0:h=P(d,{x:t,y:e});break;case.5:h=P(d,{x:t,y:e+r/2});break;case 1:h=P(d,{x:t,y:e+r})}break;case.5:switch(a.y){case 0:h=P(d,{x:t+i/2,y:e});break;case.5:h=P(d,{x:t+i/2,y:e+r/2});break;case 1:h=P(d,{x:t+i/2,y:e+r})}break;case 1:switch(a.y){case 0:h=P(d,{x:t+i,y:e});break;case.5:h=P(d,{x:t+i,y:e+r/2});break;case 1:h=P(d,{x:t+i,y:e+r})}}return{x:h.x,y:h.y}},t.getChildNode=O,t.translatePoints=function(t,e){for(var i=[],r=0,o=e;r<o.length;r++){var n=o[r],s={x:t.offsetX-t.actualSize.width*t.pivot.x+n.x,y:t.offsetY-t.actualSize.height*t.pivot.y+n.y},a=void 0,h=t.rotateAngle+t.parentTransform;h&&z(a=k(),h,t.offsetX,t.offsetY),a&&(s=P(a,s)),i.push(s)}return i},t.measurePath=B,t.measureText=N,t.getDiagramElement=W,t.createHtmlElement=D,t.setAttributeHtml=_,t.getAdornerLayerSvg=X,t.getSelectorElement=function(t,e){var i=null,r=X(t,e);return r&&(i=r.getElementById(t+"_SelectorElement")),i},t.createMeasureElements=function(){if(window.measureElement)window.measureElement.usageCount+=1;else{var t=D("div",{id:"measureElement",style:"visibility:hidden ; height: 0px ; width: 0px; overflow: hidden;"}),e=D("span",{style:"display:inline-block ; line-height: normal"});t.appendChild(e);var i;i=D("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)}},t.measureImage=L,t.processPathData=ht,t.parsePathData=dt,t.getRectanglePath=lt,t.pathSegmentCollection=ct,t.transformPath=ft,t.updatedSegment=ut,t.scalePathData=yt,t.splitArrayCollection=pt,t.getPathString=gt,t.getString=mt,t},sf.drawings=sf.drawings({})}});