Socket
Socket
Sign inDemoInstall

@syncfusion/ej2-svg-base

Package Overview
Dependencies
Maintainers
0
Versions
116
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@syncfusion/ej2-svg-base - npm Package Compare versions

Comparing version 26.2.5 to 26.2.8

hotfix/26.1.35_Vol2.txt

4

dist/ej2-svg-base.min.js
/*!
* filename: ej2-svg-base.min.js
* version : 26.2.5
* version : 26.2.8
* Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.

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

*/
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("SyncfusionBase")):"function"==typeof define&&define.amd?define(["SyncfusionBase"],e):"object"==typeof exports?exports.SyncfusionSvgBase=e(require("SyncfusionBase")):t.SyncfusionSvgBase=e(t.SyncfusionBase)}(self,(t=>(()=>{"use strict";var e={766:e=>{e.exports=t}},i={};function r(t){var o=i[t];if(void 0!==o)return o.exports;var n=i[t]={exports:{}};return e[t](n,n.exports,r),n.exports}r.d=(t,e)=>{for(var i in e)r.o(e,i)&&!r.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};return(()=>{r.r(o),r.d(o,{AreaBounds:()=>A,CanvasRenderer:()=>i,CustomizeOption:()=>u,PathOption:()=>b,Rect:()=>c,Side:()=>y,Size:()=>p,SvgRenderer:()=>e,TextOption:()=>g,TextStyle:()=>P,ToolLocation:()=>O,Tooltip:()=>k,TooltipBorder:()=>T,TooltipLocation:()=>F,calculateShapes:()=>v,drawSymbol:()=>x,findDirection:()=>d,getElement:()=>f,getTooltipThemeColor:()=>n,measureText:()=>l,removeElement:()=>m,textElement:()=>w,withInAreaBounds:()=>h});var t=r(766),e=function(){function e(t){this.svgLink="http://www.w3.org/2000/svg",this.rootId=t}return e.prototype.getOptionValue=function(t,e){return t[e]},e.prototype.createSvg=function(e){return(0,t.isNullOrUndefined)(e.id)&&(e.id=this.rootId+"_svg"),this.svgObj=document.getElementById(e.id),(0,t.isNullOrUndefined)(document.getElementById(e.id))&&(this.svgObj=document.createElementNS(this.svgLink,"svg")),this.svgObj=this.setElementAttributes(e,this.svgObj),this.setSVGSize(e.width,e.height),this.svgObj},e.prototype.setSVGSize=function(e,i){var r=document.getElementById(this.rootId),o=(0,t.isNullOrUndefined)(r)?null:r.getBoundingClientRect();(0,t.isNullOrUndefined)(this.width)||this.width<=0?this.svgObj.setAttribute("width",e?e.toString():o.width.toString()):this.svgObj.setAttribute("width",this.width.toString()),(0,t.isNullOrUndefined)(this.height)||this.height<=0?this.svgObj.setAttribute("height",i?i.toString():"450"):this.svgObj.setAttribute("height",this.height.toString())},e.prototype.drawPath=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"path")),e=this.setElementAttributes(t,e)},e.prototype.drawLine=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"line")),e=this.setElementAttributes(t,e)},e.prototype.drawRectangle=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"rect")),e=this.setElementAttributes(t,e)},e.prototype.drawCircle=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"circle")),e=this.setElementAttributes(t,e)},e.prototype.drawPolyline=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"polyline")),e=this.setElementAttributes(t,e)},e.prototype.drawEllipse=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"ellipse")),e=this.setElementAttributes(t,e)},e.prototype.drawPolygon=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"polygon")),e=this.setElementAttributes(t,e)},e.prototype.drawImage=function(e){var i=document.createElementNS(this.svgLink,"image");return i.setAttributeNS(null,"height",e.height.toString()),i.setAttributeNS(null,"width",e.width.toString()),i.setAttributeNS("http://www.w3.org/1999/xlink","href",e.href),i.setAttributeNS(null,"x",e.x.toString()),i.setAttributeNS(null,"y",e.y.toString()),i.setAttributeNS(null,"id",e.id),i.setAttributeNS(null,"visibility",e.visibility),(0,t.isNullOrUndefined)(this.getOptionValue(e,"clip-path"))||i.setAttributeNS(null,"clip-path",this.getOptionValue(e,"clip-path")),(0,t.isNullOrUndefined)(e.preserveAspectRatio)||i.setAttributeNS(null,"preserveAspectRatio",e.preserveAspectRatio),i},e.prototype.createText=function(e,i){var r=document.createElementNS(this.svgLink,"text");return r=this.setElementAttributes(e,r),(0,t.isNullOrUndefined)(i)||(r.textContent=i),r},e.prototype.createTSpan=function(e,i){var r=document.createElementNS(this.svgLink,"tspan");return r=this.setElementAttributes(e,r),(0,t.isNullOrUndefined)(i)||(r.textContent=i),r},e.prototype.createTitle=function(t){var e=document.createElementNS(this.svgLink,"title");return e.textContent=t,e},e.prototype.createDefs=function(){return document.createElementNS(this.svgLink,"defs")},e.prototype.createClipPath=function(t){var e=document.createElementNS(this.svgLink,"clipPath");return e=this.setElementAttributes(t,e)},e.prototype.createForeignObject=function(t){var e=document.createElementNS(this.svgLink,"foreignObject");return e=this.setElementAttributes(t,e)},e.prototype.createGroup=function(t){var e=document.createElementNS(this.svgLink,"g");return e=this.setElementAttributes(t,e)},e.prototype.createPattern=function(t,e){var i=document.createElementNS(this.svgLink,e);return i=this.setElementAttributes(t,i)},e.prototype.createRadialGradient=function(e,i,r){var o;if((0,t.isNullOrUndefined)(e[0].colorStop))o=e[0].color.toString();else{var n={id:this.rootId+"_"+i+"radialGradient",cx:r.cx+"%",cy:r.cy+"%",r:r.r+"%",fx:r.fx+"%",fy:r.fy+"%"};this.drawGradient("radialGradient",n,e),o="url(#"+this.rootId+"_"+i+"radialGradient)"}return o},e.prototype.createLinearGradient=function(e,i,r){var o;if((0,t.isNullOrUndefined)(e[0].colorStop))o=e[0].color.toString();else{var n={id:this.rootId+"_"+i+"linearGradient",x1:r.x1+"%",y1:r.y1+"%",x2:r.x2+"%",y2:r.y2+"%"};this.drawGradient("linearGradient",n,e),o="url(#"+this.rootId+"_"+i+"linearGradient)"}return o},e.prototype.drawGradient=function(e,i,r){var o=this.createDefs(),n=document.createElementNS(this.svgLink,e);n=this.setElementAttributes(i,n);for(var a=0;a<r.length;a++){var s=document.createElementNS(this.svgLink,"stop");s.setAttribute("offset",r[a].colorStop),s.setAttribute("stop-color",r[a].color),s.setAttribute("stop-opacity",r[a].opacity?r[a].opacity:"1"),(0,t.isNullOrUndefined)(r[a].style)||(s.style.cssText=r[a].style),n.appendChild(s)}return o.appendChild(n),o},e.prototype.drawClipPath=function(t){var e=this.createDefs(),i=this.createClipPath({id:t.id});t.id=t.id+"_Rect";var r=this.drawRectangle(t);return i.appendChild(r),e.appendChild(i),e},e.prototype.drawCircularClipPath=function(t){var e=this.createDefs(),i=this.createClipPath({id:t.id});t.id=t.id+"_Circle";var r=this.drawCircle(t);return i.appendChild(r),e.appendChild(i),e},e.prototype.setElementAttributes=function(t,e){for(var i=Object.keys(t),r=0;r<i.length;r++)"style"===i[r]?e.style.cssText=t[i[r]]:e.setAttribute(i[r],t[i[r]]);return e},e.prototype.createCanvas=function(){return null},e}(),i=function(){function e(t){this.rootId=t}return e.prototype.getOptionValue=function(t,e){return t[e]},e.prototype.createCanvas=function(t){var e=document.createElement("canvas");return e.setAttribute("id",this.rootId+"_canvas"),this.ctx=e.getContext("2d"),this.canvasObj=e,this.setCanvasSize(t.width,t.height),this.canvasObj},e.prototype.setCanvasSize=function(e,i){var r=document.getElementById(this.rootId),o=(0,t.isNullOrUndefined)(r)?null:r.getBoundingClientRect();(0,t.isNullOrUndefined)(this.width)?this.canvasObj.setAttribute("width",e?e.toString():o.width.toString()):this.canvasObj.setAttribute("width",this.width.toString()),(0,t.isNullOrUndefined)(this.height)?this.canvasObj.setAttribute("height",i?i.toString():"450"):this.canvasObj.setAttribute("height",this.height.toString())},e.prototype.setAttributes=function(e){this.ctx.lineWidth=this.getOptionValue(e,"stroke-width");var i=this.getOptionValue(e,"stroke-dasharray");if(!(0,t.isNullOrUndefined)(i)){var r=i.split(",");this.ctx.setLineDash([parseInt(r[0],10),parseInt(r[1],10)])}this.ctx.strokeStyle=this.getOptionValue(e,"stroke")},e.prototype.drawLine=function(t){this.ctx.save(),this.ctx.beginPath(),this.ctx.lineWidth=this.getOptionValue(t,"stroke-width"),this.ctx.strokeStyle=t.stroke,this.ctx.moveTo(t.x1,t.y1),this.ctx.lineTo(t.x2,t.y2),this.ctx.stroke(),this.ctx.restore()},e.prototype.drawRectangle=function(t,e){var i=this.ctx,r=t.rx;return this.ctx.save(),this.ctx.beginPath(),e&&this.ctx.translate(e[0],e[1]),this.ctx.globalAlpha=this.getOptionValue(t,"opacity"),this.setAttributes(t),this.ctx.rect(t.x,t.y,t.width,t.height),null!==r&&r>=0?this.drawCornerRadius(t):("none"===t.fill&&(t.fill="transparent"),this.ctx.fillStyle=t.fill,this.ctx.fillRect(t.x,t.y,t.width,t.height),this.ctx.stroke()),this.ctx.restore(),this.ctx=i,this.canvasObj},e.prototype.drawCornerRadius=function(t){var e=t.rx,i=t.x,r=t.y,o=t.width,n=t.height;"none"===t.fill&&(t.fill="transparent"),this.ctx.fillStyle=t.fill,o<2*e&&(e=o/2),n<2*e&&(e=n/2),this.ctx.beginPath(),this.ctx.moveTo(i+o-e,r),this.ctx.arcTo(i+o,r,i+o,r+n,e),this.ctx.arcTo(i+o,r+n,i,r+n,e),this.ctx.arcTo(i,r+n,i,r,e),this.ctx.arcTo(i,r,i+o,r,e),this.ctx.closePath(),this.ctx.fill(),this.ctx.stroke()},e.prototype.drawPath=function(t,e){var i=t.d.split(" "),r=this.getOptionValue(t,"stroke-width"),o=this.ctx,n=!0;this.ctx.save(),this.ctx.beginPath(),e&&this.ctx.translate(e[0],e[1]),this.ctx.globalAlpha=t.opacity?t.opacity:this.getOptionValue(t,"fill-opacity"),this.setAttributes(t);for(var a=0;a<i.length;a+=3){var s=parseFloat(i[a+1]),l=parseFloat(i[a+2]);switch(i[a]){case"M":t.innerR||t.cx||this.ctx.moveTo(s,l);break;case"L":t.innerR||this.ctx.lineTo(s,l);break;case"Q":var h=parseFloat(i[a+3]),d=parseFloat(i[a+4]);this.ctx.quadraticCurveTo(s,l,h,d),a+=2;break;case"C":var p=parseFloat(i[a+3]),c=parseFloat(i[a+4]),y=parseFloat(i[a+5]),u=parseFloat(i[a+6]);this.ctx.bezierCurveTo(s,l,p,c,y,u),a+=4;break;case"A":t.innerR?n&&(this.ctx.arc(t.x,t.y,t.radius,t.start,t.end,t.counterClockWise),this.ctx.arc(t.x,t.y,t.innerR,t.end,t.start,!t.counterClockWise),n=!1):t.cx?this.ctx.arc(t.cx,t.cy,t.radius,0,2*Math.PI,t.counterClockWise):(this.ctx.moveTo(t.x,t.y),this.ctx.arc(t.x,t.y,t.radius,t.start,t.end,t.counterClockWise),this.ctx.lineTo(t.x,t.y)),a+=5;break;case"z":case"Z":this.ctx.closePath(),a-=2}}return"none"!==t.fill&&void 0!==t.fill&&(this.ctx.fillStyle=t.fill,this.ctx.fill()),r>0&&this.ctx.stroke(),this.ctx.restore(),this.ctx=o,this.canvasObj},e.prototype.createText=function(e,i,r,o,n,a){var s=this.getOptionValue(e,"font-weight");(0,t.isNullOrUndefined)(s)||"regular"!==s.toLowerCase()||(s="normal");var l=this.getOptionValue(e,"font-size"),h=this.getOptionValue(e,"font-family"),d=this.getOptionValue(e,"font-style").toLowerCase()+" "+s+" "+l+" "+h,p=this.getOptionValue(e,"text-anchor"),c=void 0!==e.opacity?e.opacity:1;if("middle"===p&&(p="center"),this.ctx.save(),this.ctx.fillStyle=e.fill,this.ctx.font=d,this.ctx.textAlign=p,this.ctx.globalAlpha=c,e.baseline&&(this.ctx.textBaseline=e.baseline),!a){this.ctx.translate(e.x+0+(r||0),e.y+(o||0)),this.ctx.rotate(e.labelRotation*Math.PI/180)}return this.ctx.fillText(i,a?e.x:0,a?n:0),this.ctx.restore(),this.canvasObj},e.prototype.drawCircle=function(t,e){var i=this.ctx;return this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(t.cx,t.cy,t.r,0,2*Math.PI),this.ctx.fillStyle=t.fill,this.ctx.globalAlpha=t.opacity,this.ctx.fill(),e&&this.ctx.translate(e[0],e[1]),this.setAttributes(t),this.ctx.stroke(),this.ctx.restore(),this.ctx=i,this.canvasObj},e.prototype.drawPolyline=function(t){this.ctx.save(),this.ctx.beginPath();for(var e=t.points.split(" "),i=0;i<e.length-1;i++){var r=e[i].split(","),o=parseFloat(r[0]),n=parseFloat(r[1]);0===i?this.ctx.moveTo(o,n):this.ctx.lineTo(o,n)}this.ctx.lineWidth=this.getOptionValue(t,"stroke-width"),this.ctx.strokeStyle=t.stroke,this.ctx.stroke(),this.ctx.restore()},e.prototype.drawEllipse=function(t,e){var i=this.ctx,r=Math.max(t.rx,t.ry),o=t.rx/r,n=t.ry/r;this.ctx.save(),this.ctx.beginPath(),this.ctx.translate(t.cx,t.cy),e&&this.ctx.translate(e[0],e[1]),this.ctx.save(),this.ctx.scale(o,n),this.ctx.arc(0,0,r,0,2*Math.PI,!1),this.ctx.fillStyle=t.fill,this.ctx.fill(),this.ctx.restore(),this.ctx.lineWidth=this.getOptionValue(t,"stroke-width"),this.ctx.strokeStyle=t.stroke,this.ctx.stroke(),this.ctx.restore(),this.ctx=i},e.prototype.drawImage=function(e){this.ctx.save();var i=new Image;(0,t.isNullOrUndefined)(e.href)||(i.src=e.href,this.ctx.drawImage(i,e.x,e.y,e.width,e.height)),this.ctx.restore()},e.prototype.createLinearGradient=function(e){var i;return(0,t.isNullOrUndefined)(e[0].colorStop)||(i=this.ctx.createLinearGradient(0,0,0,this.canvasObj.height)),this.setGradientValues(e,i)},e.prototype.createRadialGradient=function(e){var i;return(0,t.isNullOrUndefined)(e[0].colorStop)||(i=this.ctx.createRadialGradient(0,0,0,0,0,this.canvasObj.height)),this.setGradientValues(e,i)},e.prototype.setGradientValues=function(e,i){var r;if((0,t.isNullOrUndefined)(e[0].colorStop))r=e[0].color.toString();else{for(var o=0;o<=e.length-1;o++){var n=e[o].color,a=e[o].colorStop.slice(0,-1),s=parseInt(a,10)/100;i.addColorStop(s,n)}r=i.toString()}return r},e.prototype.setElementAttributes=function(t,e){for(var i=Object.keys(t),r=Object.keys(t).map((function(e){return t[e]})),o=0;o<i.length;o++)e.setAttribute(i[o],r[o]);return null},e.prototype.updateCanvasAttributes=function(e){this.setElementAttributes(e,this.canvasObj);var i=this.ctx;if(!(0,t.isNullOrUndefined)(this.dataUrl)){var r=new Image;r.onload=function(){i.drawImage(r,0,0)},r.src=this.dataUrl}},e.prototype.clearRect=function(t){this.ctx.restore(),this.ctx.clearRect(t.x,t.y,t.width,t.height)},e.prototype.createGroup=function(){return null},e.prototype.drawClipPath=function(){return null},e.prototype.drawCircularClipPath=function(){return null},e.prototype.canvasClip=function(t){this.ctx.save(),this.ctx.fillStyle="transparent",this.ctx.rect(t.x,t.y,t.width,t.height),this.ctx.fill(),this.ctx.clip()},e.prototype.canvasRestore=function(){this.ctx.restore()},e.prototype.drawPolygon=function(){return null},e.prototype.createDefs=function(){return null},e.prototype.createClipPath=function(){return null},e.prototype.createSvg=function(){return null},e}();function n(t){var e;switch(t){case"Highcontrast":case"HighContrast":e={tooltipFill:"#ffffff",tooltipBoldLabel:"#000000",tooltipLightLabel:"#000000",tooltipHeaderLine:"#969696",textStyle:{fontFamily:"Segoe UI",color:"#000000",fontWeight:null}};break;case"MaterialDark":case"FabricDark":case"BootstrapDark":e={tooltipFill:"MaterialDark"===t?"#F4F4F4":"FabricDark"===t?"#A19F9D":"#F0F0F0",tooltipBoldLabel:"MaterialDark"===t?"rgba(18, 18, 18, 1)":"FabricDark"===t?"#DADADA":"#1A1A1A",tooltipLightLabel:"MaterialDark"===t?"rgba(18, 18, 18, 1)":"FabricDark"===t?"#DADADA":"#1A1A1A",tooltipHeaderLine:"#9A9A9A",textStyle:"MaterialDark"===t?{fontFamily:"Roboto",color:"rgba(18, 18, 18, 1)",fontWeight:null}:"FabricDark"===t?{fontFamily:"Segoe UI",color:"#DADADA",fontWeight:null}:{fontFamily:"Helvetica",color:"#1A1A1A",fontWeight:null}};break;case"Bootstrap4":e={tooltipFill:"#212529",tooltipBoldLabel:"#F9FAFB",tooltipLightLabel:"#F9FAFB",tooltipHeaderLine:"rgba(255, 255, 255, 0.2)",textStyle:{fontFamily:"Helvetica",color:"#F9FAFB",fontWeight:null}};break;case"Tailwind":e={tooltipFill:"#111827",tooltipBoldLabel:"#F9FAFB",tooltipLightLabel:"#F9FAFB",tooltipHeaderLine:"#6B7280",textStyle:{fontFamily:"Inter",color:"#F9FAFB",fontWeight:null}};break;case"TailwindDark":e={tooltipFill:"#E9ECEF",tooltipBoldLabel:"#1F2937",tooltipLightLabel:"#1F2937",tooltipHeaderLine:"#9CA3AF",textStyle:{fontFamily:"Inter",color:"#1F2937",fontWeight:null}};break;case"Bootstrap5":e={tooltipFill:"#212529",tooltipBoldLabel:"#F9FAFB",tooltipLightLabel:"#F9FAFB",tooltipHeaderLine:"#9CA3AF",textStyle:{fontFamily:"Helvetica",color:"#F9FAFB",fontWeight:null}};break;case"Bootstrap5Dark":e={tooltipFill:"#E9ECEF",tooltipBoldLabel:"#212529",tooltipLightLabel:"#212529",tooltipHeaderLine:"#ADB5BD",textStyle:{fontFamily:"Helvetica",color:"#212529",fontWeight:null}};break;case"Fluent":e={tooltipFill:"#FFFFFF",tooltipBoldLabel:"#323130",tooltipLightLabel:"#323130",tooltipHeaderLine:"#D2D0CE",textStyle:{fontFamily:"Segoe UI",color:"#323130",fontWeight:null}};break;case"FluentDark":e={tooltipFill:"#323130",tooltipBoldLabel:"#F3F2F2",tooltipLightLabel:"#F3F2F1",tooltipHeaderLine:"#3B3A39",textStyle:{fontFamily:"Segoe UI",color:"#F3F2F1",fontWeight:null}};break;case"Fluent2":e={tooltipFill:"#FFFFFF",tooltipBoldLabel:"#242424",tooltipLightLabel:"#242424",tooltipHeaderLine:"#D2D0CE",textStyle:{fontFamily:"Segoe UI",color:"#242424",fontWeight:null}};break;case"Fluent2Dark":e={tooltipFill:"#292929",tooltipBoldLabel:"#FFFFFF",tooltipLightLabel:"#FFFFFF",tooltipHeaderLine:"#3B3A39",textStyle:{fontFamily:"Segoe UI",color:"#FFFFFF",fontWeight:null}};break;case"Material3":e={tooltipFill:"#313033",tooltipBoldLabel:"#F4EFF4",tooltipLightLabel:"#F4EFF4",tooltipHeaderLine:"#F4EFF4",textStyle:{fontFamily:"Roboto",color:"#F4EFF4",fontWeight:null}};break;case"Material3Dark":e={tooltipFill:"#E6E1E5",tooltipBoldLabel:"#313033",tooltipLightLabel:"#313033",tooltipHeaderLine:"#313033",textStyle:{fontFamily:"Roboto",color:"#313033",fontWeight:null}};break;default:e={tooltipFill:"Material"===t?"#000816":"Fabric"===t?"#FFFFFF":"#212529",tooltipBoldLabel:"Material"===t?"rgba(249, 250, 251, 1)":"Fabric"===t?"#333333":"#F9FAFB",tooltipLightLabel:"Material"===t?"rgba(249, 250, 251, 1)":"Fabric"===t?"#333333":"#F9FAFB",tooltipHeaderLine:"Fabric"===t?"#D2D0CE":"#ffffff",textStyle:"Material"===t?{fontFamily:"Roboto",color:"rgba(249, 250, 251, 1)",fontWeight:null}:"Fabric"===t?{fontFamily:"Segoe UI",color:"#333333",fontWeight:null}:{fontFamily:"Helvetica",color:"#F9FAFB",fontWeight:null}}}return e}var a,s=(a=function(t,e){return a=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])},a(t,e)},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});function l(e,i,r){var o=e||"",n=document.getElementById("chartmeasuretext");if(null===n&&(n=(0,t.createElement)("text",{id:"chartmeasuretext"}),document.body.appendChild(n)),"string"==typeof e&&(e.indexOf("<")>-1||e.indexOf(">")>-1)){for(var a=e.split(" "),s=0;s<a.length;s++)-1===a[s].indexOf("<br/>")&&(a[s]=a[s].replace(/[<>]/g,"&"));e=a.join(" ")}n.innerHTML=o.indexOf("<br>")>-1||o.indexOf("<br/>")>-1?o:e,n.style.position="fixed",n.style.fontSize=i.size||r.size,n.style.fontStyle=i.fontStyle||r.fontStyle,n.style.fontFamily=i.fontFamily||r.fontFamily,n.style.visibility="hidden",n.style.top="-100",n.style.left="0",n.style.whiteSpace="nowrap",n.style.lineHeight="normal";var l=n.clientWidth,h=n.clientHeight,d=n.style.fontWeight;return n.style.fontWeight=i.fontWeight||r.fontWeight,new p("bold"===n.style.fontWeight&&"normal"===d?Math.max(l,n.clientWidth):n.clientWidth,"bold"===n.style.fontWeight&&"normal"===d?Math.max(h,n.clientHeight):n.clientHeight)}function h(t,e,i,r,o){return void 0===r&&(r=0),void 0===o&&(o=0),t>=i.x-r&&t<=i.x+i.width+r&&e>=i.y-o&&e<=i.y+i.height+o}function d(t,e,i,r,o,n,a,s,l,h,d){void 0===d&&(d="");var p="",c=i.x,y=i.y,u=i.x+i.width,g=i.y+i.height;return n?(p=(p=p.concat("M "+c+" "+(y+e)+" Q "+c+" "+y+" "+(c+t)+" "+y+" L "+(u-t)+" "+y+" Q "+u+" "+y+" "+u+" "+(y+e))).concat(" L "+u+" "+(g-e)+" Q "+u+" "+g+" "+(u-t)+" "+g),0!==o&&(p="RangeNavigator"===d?r.x-o>u/2?(p=p.concat(" L "+(r.x+o)+" "+g)).concat(" L "+(l+o)+" "+(g+o)+" L "+r.x+" "+g):(p=p.concat(" L "+r.x+" "+g)).concat(" L "+(l-o)+" "+(g+o)+" L "+(r.x-o)+" "+g):(p=p.concat(" L "+(r.x+o)+" "+g)).concat(" L "+l+" "+(g+o)+" L "+(r.x-o)+" "+g)),p=r.x-o>c||0===o?p.concat(" L "+(c+t)+" "+g+" Q "+c+" "+g+" "+c+" "+(g-e)+" z"):p.concat(" L "+c+" "+(g+e)+" z")):a?p=(p=(p=(p=(p=p.concat("M "+c+" "+(y+e)+" Q "+c+" "+y+" "+(c+t)+" "+y+" L "+(r.x-o)+" "+y)).concat(" L "+l+" "+r.y)).concat(" L "+(r.x+o)+" "+y)).concat(" L "+(u-t)+" "+y+" Q "+u+" "+y+" "+u+" "+(y+e))).concat(" L "+u+" "+(g-e)+" Q "+u+" "+g+" "+(u-t)+" "+g+" L "+(c+t)+" "+g+" Q "+c+" "+g+" "+c+" "+(g-e)+" z"):s?(p=(p=p.concat("M "+c+" "+(y+e)+" Q "+c+" "+y+" "+(c+t)+" "+y)).concat(" L "+(u-t)+" "+y+" Q "+u+" "+y+" "+u+" "+("RangeNavigator"===d?0:y+e)+" L "+u+" "+("RangeNavigator"===d?0:r.y-o)),p="RangeNavigator"===d?p.concat(" L "+(u+o)+" 0"):p.concat(" L "+(u+o)+" "+h),p=(p=(p="RangeNavigator"===d?p.concat(" L "+u+" "+(r.y-e)):p.concat(" L "+u+" "+(r.y+o))).concat(" L "+u+" "+(g-e)+" Q "+u+" "+g+" "+(u-t)+" "+g)).concat(" L "+(c+t)+" "+g+" Q "+c+" "+g+" "+c+" "+(g-e)+" z")):(p=p.concat("M "+(c+t)+" "+y+" Q "+c+" "+y+" "+c+" "+("RangeNavigator"===d?0:y+e)+" L "+c+" "+("RangeNavigator"===d?0:r.y-o)),p="RangeNavigator"===d?p.concat(" L "+(c-o)+" 0"):p.concat(" L "+(c-o)+" "+h),p=(p=(p="RangeNavigator"===d?p.concat(" L "+c+" "+(r.y-e)):p.concat(" L "+c+" "+(r.y+o))).concat(" L "+c+" "+(g-e)+" Q "+c+" "+g+" "+(c+t)+" "+g)).concat(" L "+(u-t)+" "+g+" Q "+u+" "+g+" "+u+" "+(g-e)+" L "+u+" "+(y+e)+" Q "+u+" "+y+" "+(u-t)+" "+y+" z")),p}var p=function(t,e){this.width=t,this.height=e},c=function(t,e,i,r){this.x=t,this.y=e,this.width=i,this.height=r},y=function(t,e){this.isRight=e,this.isBottom=t},u=function(t){this.id=t},g=function(t){function e(e,i,r,o,n,a,s,l){void 0===a&&(a="");var h=t.call(this,e)||this;return h.transform="",h.baseLine="auto",h.labelRotation=0,h.x=i,h.y=r,h.anchor=o,h.text=n,h.transform=a,h.baseLine=s,h.labelRotation=l,h}return s(e,t),e}(u);function f(t){return document.getElementById(t)}function m(e){var i=f(e);i&&(0,t.remove)(i)}function x(t,i,r,o,n,a,s){var l=new e(""),h=v(t,r,i,n,o),d=l["draw"+h.functionName](h.renderOption);return d.setAttribute("role",a),d.setAttribute("aria-label",s),d}function v(e,i,r,o,n){var a,s="Path",l=i.width,h=i.height,d=e.x,p=e.y,c=e.x+-l/2,y=e.y+-h/2;switch(r){case"Circle":case"Bubble":s="Ellipse",(0,t.merge)(o,{rx:l/2,ry:h/2,cx:d,cy:p});break;case"Plus":a="M "+c+" "+p+" L "+(d+l/2)+" "+p+" M "+d+" "+(p+h/2)+" L "+d+" "+(p+-h/2),(0,t.merge)(o,{d:a,stroke:o.fill});break;case"Cross":a="M "+c+" "+(p+-h/2)+" L "+(d+l/2)+" "+(p+h/2)+" M "+c+" "+(p+h/2)+" L "+(d+l/2)+" "+(p+-h/2),(0,t.merge)(o,{d:a,stroke:o.fill});break;case"HorizontalLine":a="M "+c+" "+p+" L "+(d+l/2)+" "+p,(0,t.merge)(o,{d:a,stroke:o.fill});break;case"VerticalLine":a="M "+d+" "+(p+h/2)+" L "+d+" "+(p+-h/2),(0,t.merge)(o,{d:a,stroke:o.fill});break;case"Diamond":a="M "+c+" "+p+" L "+d+" "+(p+-h/2)+" L "+(d+l/2)+" "+p+" L "+d+" "+(p+h/2)+" L "+c+" "+p+" z",(0,t.merge)(o,{d:a});break;case"Rectangle":a="M "+c+" "+(p+-h/2)+" L "+(d+l/2)+" "+(p+-h/2)+" L "+(d+l/2)+" "+(p+h/2)+" L "+c+" "+(p+h/2)+" L "+c+" "+(p+-h/2)+" z",(0,t.merge)(o,{d:a});break;case"Triangle":a="M "+c+" "+(p+h/2)+" L "+d+" "+(p+-h/2)+" L "+(d+l/2)+" "+(p+h/2)+" L "+c+" "+(p+h/2)+" z",(0,t.merge)(o,{d:a});break;case"InvertedTriangle":a="M "+(d+l/2)+" "+(p-h/2)+" L "+d+" "+(p+h/2)+" L "+(d-l/2)+" "+(p-h/2)+" L "+(d+l/2)+" "+(p-h/2)+" z",(0,t.merge)(o,{d:a});break;case"Pentagon":for(var u=void 0,g=void 0,f=0;f<=5;f++)u=l/2*Math.cos(Math.PI/180*(72*f)),g=h/2*Math.sin(Math.PI/180*(72*f)),a=0===f?"M "+(d+u)+" "+(p+g)+" ":a.concat("L "+(d+u)+" "+(p+g)+" ");a=a.concat("Z"),(0,t.merge)(o,{d:a});break;case"Image":s="Image",(0,t.merge)(o,{href:n,height:h,width:l,x:c,y})}return{renderOption:o,functionName:s}}var b=function(t){function e(e,i,r,o,n,a,s){var l=t.call(this,e)||this;return l.opacity=n,l.fill=i,l.stroke=o,l["stroke-width"]=r,l["stroke-dasharray"]=a,l.d=s,l}return s(e,t),e}(u);function w(t,i,r,o,n){var a,s=new e("");a={id:t.id,x:t.x,y:t.y,fill:r,"font-size":i.size||n.size,"font-style":i.fontStyle||n.fontStyle,"font-family":i.fontFamily||n.fontFamily,"font-weight":i.fontWeight||n.fontWeight,"text-anchor":t.anchor,transform:t.transform,opacity:i.opacity,"dominant-baseline":t.baseLine};var l="string"==typeof t.text?t.text:t.text[0],h=s.createText(a,l);return o&&o.appendChild(h),h}var F=function(t,e){this.x=t,this.y=e},S=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])},t(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)}}(),L=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},P=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return S(i,e),L([(0,t.Property)(null)],i.prototype,"size",void 0),L([(0,t.Property)("")],i.prototype,"color",void 0),L([(0,t.Property)("Segoe UI")],i.prototype,"fontFamily",void 0),L([(0,t.Property)("Normal")],i.prototype,"fontWeight",void 0),L([(0,t.Property)("Normal")],i.prototype,"fontStyle",void 0),L([(0,t.Property)(1)],i.prototype,"opacity",void 0),i}(t.ChildProperty),T=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return S(i,e),L([(0,t.Property)("")],i.prototype,"color",void 0),L([(0,t.Property)(1)],i.prototype,"width",void 0),L([(0,t.Property)("")],i.prototype,"dashArray",void 0),i}(t.ChildProperty),A=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return S(i,e),L([(0,t.Property)(0)],i.prototype,"x",void 0),L([(0,t.Property)(0)],i.prototype,"y",void 0),L([(0,t.Property)(0)],i.prototype,"width",void 0),L([(0,t.Property)(0)],i.prototype,"height",void 0),i}(t.ChildProperty),O=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return S(i,e),L([(0,t.Property)(0)],i.prototype,"x",void 0),L([(0,t.Property)(0)],i.prototype,"y",void 0),i}(t.ChildProperty),k=function(i){function r(t,e){return i.call(this,t,e)||this}return S(r,i),r.prototype.preRender=function(){this.allowServerDataBinding=!1,this.initPrivateVariable(),this.isCanvas||this.removeSVG(),this.createTooltipElement()},r.prototype.initPrivateVariable=function(){this.renderer=new e(this.element.id),this.themeStyle=n(this.theme),this.formattedText=[],this.padding=5,this.highlightPadding=3,this.areaMargin=10,this.isFirst=!0,this.markerPoint=[]},r.prototype.removeSVG=function(){var e=document.getElementById(this.element.id+"_svg"),i=document.getElementById(this.element.id+"parent_template");this.blazorTemplate&&(0,t.resetBlazorTemplate)(this.element.id+"parent_template_blazorTemplate"),e&&e.parentNode&&(0,t.remove)(e),i&&i.parentNode&&(0,t.remove)(i)},r.prototype.render=function(){if(this.fadeOuted=!1,this.template)this.updateTemplateFn(),this.createTemplate(this.areaBounds,this.location);else{this.renderText(this.isFirst);var e={cancel:!1,name:"tooltipRender",tooltip:this};this.trigger("tooltipRender",e);var i=this.renderTooltipElement(this.areaBounds,this.location);this.drawMarker(i.isBottom,i.isRight,this.markerSize)}this.trigger("loaded",{tooltip:this});var r=document.getElementById("chartmeasuretext");r&&(0,t.remove)(r),this.allowServerDataBinding=!0},r.prototype.createTooltipElement=function(){if(this.textElements=[],!this.template||this.shared){this.enableRTL&&this.element.setAttribute("dir","ltr");var t=this.renderer.createSvg({id:this.element.id+"_svg"});this.element.appendChild(t);var e=document.getElementById(this.element.id+"_group");e||(e=this.renderer.createGroup({id:this.element.id+"_group"})).setAttribute("transform","translate(0,0)"),t.appendChild(e);var i=this.renderer.drawPath({id:this.element.id+"_path","stroke-width":"Fabric"!==this.theme&&"Fluent"!==this.theme&&"Fluent2"!==this.theme||this.border.width?this.border.width:1,fill:this.fill||this.themeStyle.tooltipFill,opacity:("TailwindDark"===this.theme||"Tailwind"===this.theme||"Bootstrap5"===this.theme||"Bootstrap5Dark"===this.theme||this.theme.indexOf("Fluent2")>-1)&&.75===this.opacity?1:this.opacity,stroke:this.border.color||("Fabric"===this.theme||"Fluent"===this.theme||"Fluent2"===this.theme?"#D2D0CE":this.border.color)});e.appendChild(i)}},r.prototype.drawMarker=function(t,e,i){if(this.shapes.length<=0)return null;var r,o=0,n=this.renderer.createGroup({id:this.element.id+"_trackball_group"}),a=f(this.element.id+"_group");if(!a)return null;for(var s=(this.enableRTL?this.elementSize.width-i/2:2*this.marginX+i/2)+(e?this.arrowPadding:0),l=0,h=this.shapes;l<h.length;l++){var d=h[l];if("None"!==d){if(r=new b(this.element.id+"_Trackball_"+o,this.palette[o],1,"#cccccc",1,null),this.markerPoint[o]){var c=0;this.header.indexOf("<br")>-1&&(c=this.header.split(/<br.*?>/g).length+o);var y=this.formattedText&&this.formattedText.length>=2?this.getTooltipTextContent(this.formattedText[1])+", "+this.getTooltipTextContent(this.formattedText[0]):"";n.appendChild(x(new F(s,this.markerPoint[o]-this.padding+(t?this.arrowPadding:c)),d,new p(i,i),"",r,"img",y))}o++}}a.appendChild(n)},r.prototype.renderTooltipElement=function(e,i){var r,o=f(this.element.id),n=new F(0,0),a=new F(0,0),s=f(this.element.id+"_svg"),h=f(this.element.id+"_group"),p=f(this.element.id+"_path"),u=!1,g=!1,m=!1,x=0,v=0;if(!(0,t.isNullOrUndefined)(h)){if(""!==this.header&&(this.elementSize.height+=this.marginY),this.isFixed){var b=this.elementSize.width+2*this.marginX,w=this.elementSize.height+2*this.marginY;r=new c(i.x,i.y,b,w)}else this.content.length>1?(r=this.sharedTooltipLocation(e,this.location.x,this.location.y),u=!0):(r=this.tooltipLocation(e,i,n,a),this.inverted?(x=(g=r.x<i.x+this.clipBounds.x)?0:this.arrowPadding,this.allowHighlight&&(r.x+=g?this.highlightPadding:-2*this.highlightPadding)):(m=!(u=r.y<i.y+this.clipBounds.y),v=u?0:this.arrowPadding));if(""!==this.header){var S=2,L=0,P=this.isWrap?this.wrappedText:this.header;if(this.isWrap&&"string"==typeof P&&(P.indexOf("<")>-1||P.indexOf(">")>-1))S=P.split("<br>").length;this.header.indexOf("<br")>-1&&(L=5*(this.header.split(/<br.*?>/g).length-1));var T=(0,t.extend)({},this.textStyle,null,!0).properties,A=l(this.isWrap?this.wrappedText:this.header,T,this.themeStyle.textStyle).height+this.marginY*S+(m?this.arrowPadding:0)+(this.isWrap?5:L),O="M "+(3*this.marginX+(g||u||m?0:this.arrowPadding))+" "+A+"L "+(r.width+(g||u||m?0:this.arrowPadding)-2*this.marginX)+" "+A,k=this.renderer.drawPath({id:this.element.id+"_header_path","stroke-width":1,fill:null,opacity:"Material3"===this.theme?.2:.8,stroke:this.themeStyle.tooltipHeaderLine,d:O});h.appendChild(k)}var C=this.border.width/2,B=new c(C+x,C+v,r.width-C,r.height-C);if(h.setAttribute("opacity","1"),!this.enableAnimation||this.isFirst||this.crosshair?this.updateDiv(o,r.x,r.y):this.animateTooltipDiv(o,r),s.setAttribute("height",(r.height+this.border.width+(this.inverted?0:this.arrowPadding)+5).toString()),s.setAttribute("width",(r.width+this.border.width+(this.inverted?this.arrowPadding:0)+5).toString()),s.setAttribute("opacity","1"),(0,t.isNullOrUndefined)(this.tooltipPlacement)||(u=this.tooltipPlacement.indexOf("Top")>-1,m=this.tooltipPlacement.indexOf("Bottom")>-1,g=this.tooltipPlacement.indexOf("Left")>-1),p.setAttribute("d",d(this.rx,this.ry,B,n,this.arrowPadding,u,m,g,a.x,a.y,this.controlName)),this.enableShadow&&"Bootstrap4"!==this.theme||this.theme.indexOf("Fluent2")>-1){var E=this.element.id+"_shadow";"Tailwind"===this.theme||"TailwindDark"===this.theme||"Bootstrap5"===this.theme||"Bootstrap5Dark"===this.theme?p.setAttribute("box-shadow","0px 1px 2px rgba(0, 0, 0, 0.06), 0px 1px 3px rgba(0, 0, 0, 0.1)"):p.setAttribute("filter",t.Browser.isIE?"":"url(#"+E+")");var N='<filter id="'+E+'" height="130%"><feGaussianBlur in="SourceAlpha" stdDeviation="3"/>';this.theme.indexOf("Fluent2")>-1?N+='<feOffset dx="-1" dy="3.6" result="offsetblur"/><feComponentTransfer><feFuncA type="linear" slope="0.2"/>':N+='<feOffset dx="3" dy="3" result="offsetblur"/><feComponentTransfer><feFuncA type="linear" slope="0.5"/>',N+='</feComponentTransfer><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge></filter>';var z=this.renderer.createDefs();z.setAttribute("id",this.element.id+"SVG_tooltip_definition"),h.appendChild(z),z.innerHTML=N}var R="Fabric"!==this.theme&&"Fluent"!==this.theme&&"Fluent2"!==this.theme||this.border.color?this.border.color:"#D2D0CE";p.setAttribute("stroke",R),(0,t.isNullOrUndefined)(this.border.dashArray)||p.setAttribute("stroke-dasharray",this.border.dashArray),this.changeText(new F(x,v),m,!g&&!u&&!m),this.revert&&(this.inverted=!this.inverted,this.revert=!1)}return new y(m,!g&&!u&&!m)},r.prototype.changeText=function(t,e,i){var r=document.getElementById(this.element.id+"_text");e&&r.setAttribute("transform","translate(0,"+this.arrowPadding+")"),i&&r.setAttribute("transform","translate("+this.arrowPadding+" 0)")},r.prototype.findFormattedText=function(){this.formattedText=[],""!==this.header.replace(/<b>/g,"").replace(/<\/b>/g,"").trim()&&(this.formattedText=this.formattedText.concat(this.header)),this.formattedText=this.formattedText.concat(this.content)},r.prototype.renderText=function(e){var i,r,o,n,a,s=0,h=0,d=0,c="properties",y=(0,t.extend)({},this.textStyle,null,!0)[c],u=f(this.element.id+"_group"),x="";this.findFormattedText(),this.isWrap=!1;var v="rtl"===document.body.getAttribute("dir")&&!this.enableRTL?"end":"start";this.leftSpace=this.areaBounds.x+this.location.x,this.rightSpace=this.areaBounds.x+this.areaBounds.width-this.leftSpace;var b=this.header.replace(/<b>/g,"").replace(/<\/b>/g,"").trim(),F=this.header.indexOf("<b>")>-1&&this.header.indexOf("</b>")>-1,S=l(this.formattedText[0],y,this.themeStyle.textStyle).width+2*this.marginX+this.arrowPadding,L=this.location.x-S<this.location.x,P=this.areaBounds.x+this.areaBounds.width<this.location.x+S,T=""!==b?this.marginY:0,A=!0,O=!0;this.markerPoint=[];var k,C=this.shapes.length>0?10:0,B=this.shapes.length>0?5:0,E="12px",N="400",z=this.themeStyle.tooltipLightLabel,R=22/parseFloat(E)*parseFloat(y.size),M=[],_=0;e&&!this.isCanvas||(m(this.element.id+"_text"),m(this.element.id+"_header_path"),m(this.element.id+"_trackball_group"),m(this.element.id+"SVG_tooltip_definition")),"Chart"===this.controlName&&parseFloat(E)<parseFloat(y.size)&&(_=parseFloat(y.size)-parseFloat(E));for(var D=new g(this.element.id+"_text",2*this.marginX,_+2*this.marginY+2*this.padding+(2===this.marginY?"RangeNavigator"===this.controlName?5:3:0),v,""),I=w(D,y,y.color||this.themeStyle.tooltipBoldLabel,u,this.themeStyle.textStyle),W=1===this.formattedText.length&&this.formattedText[0].indexOf(" : <b>")>-1,j=""!==this.header,H=j&&F?16:13,U=0,V=this.formattedText.length;U<V;U++)if(o=this.formattedText[U].replace(/<(b|strong)>/g,"<b>").replace(/<\/(b|strong)>/g,"</b>").split(/<br.*?>/g),this.isTextWrap&&this.header!==this.formattedText[U]&&-1===this.formattedText[U].indexOf("<br")&&(k=Math.round(this.leftSpace>this.rightSpace?this.leftSpace/H:this.rightSpace/H),o=this.formattedText[U].match(new RegExp(".{1,"+k+"}","g"))),0===U&&!W&&this.isTextWrap&&(this.leftSpace<S||L)&&(this.rightSpace<S||P)&&(k=Math.round(this.leftSpace>this.rightSpace?this.leftSpace/H:this.rightSpace/H),o=(""!==b?b:this.formattedText[U]).match(new RegExp(".{1,"+k+"}","g")),this.wrappedText=F?"<b>"+o.join("<br>")+"</b>":o.join("<br>"),this.isWrap=o.length>1),""!==o[0]){0===U&&""!==b||this.markerPoint.push((""!==b?this.marginY:0)+D.y+s-(0!==_?_/this.markerSize*(parseFloat(y.size)/this.markerSize):0));for(var G=0,Q=o.length;G<Q;G++){i=o[G].replace(/<b>/g,"<br><b>").replace(/<\/b>/g,"</b><br>").replace(/:/g,this.enableRTL?"<br>‎: <br>":"<br>‎:<br>").split("<br>"),this.enableRTL&&i.length>0&&o[G].match(/:/g)&&(i[0]=i[0].trim(),i.reverse()),d=0,O=!0,s+=R;for(var X=0,Y=i.length;X<Y;X++)if(n=i[X],this.enableRTL&&""!==n&&this.isRTLText(n)&&(n=n.concat("‎")),/\S/.test(n)||""===n||(n=" "),!O&&" "===n||""!==n.replace(/<b>/g,"").replace(/<\/b>/g,"").trim()){d+=" "!==n?4:0,O&&!A?(this.header.indexOf("<br")>-1&&0!==U&&(T+=this.header.split(/<br.*?>/g).length),a={x:2*this.marginX+(C+B),dy:R+(O?T:0),fill:""},T=null):a=A&&O?{x:""===b?2*this.marginX+(C+B):2*this.marginX+(this.isWrap?C+B:0)}:{},O=!1,r=this.renderer.createTSpan(a,""),I.appendChild(r),n.indexOf("<b>")>-1||F&&0===X&&0===U&&(j||this.isWrap)?(N="600",z=this.themeStyle.tooltipBoldLabel,x="font-weight:"+N,y.fontWeight=N,r.setAttribute("fill",this.textStyle.color||z)):(x="600"===N?"font-weight:"+N:"",y.fontWeight=N,r.setAttribute("fill",this.textStyle.color||z)),(n.indexOf("</b>")>-1||F&&X===Y-1&&0===U&&(j||this.isWrap))&&(N="Normal",z=this.themeStyle.tooltipLightLabel),""!==x&&(r.style.fontWeight=x.split("font-weight:")[1],r.style.color=r.getAttribute("fill")),r.style.fontFamily="inherit",r.style.fontStyle="inherit",r.style.fontSize=this.header===this.formattedText[U]?y.size:this.textStyle.size,r.style.fontWeight=this.header===this.formattedText[U]&&-1===(this.header.indexOf("<b>")||this.header.indexOf("</b>"))?this.textStyle.fontWeight||"600":n.indexOf("<b>")>-1||n.indexOf("</b>")>-1?"bold":this.textStyle.fontWeight||y.fontWeight;var q=(0,t.extend)({},this.textStyle,null,!0)[c];q.fontWeight=r.style.fontWeight,A=!1,r.textContent=n=this.getTooltipTextContent(n),d+=l(n,q,this.themeStyle.textStyle).width}d-=4,h=Math.max(h,d),M.push(d)}}this.elementSize=new p(h+(h>0?2*this.marginX:0),s),this.elementSize.width+=C+B;var Z=I.childNodes[0];if(""!==b&&Z&&!this.isWrap){y.fontWeight="600";var J=(this.elementSize.width+2*this.padding)/2-l(b,y,this.themeStyle.textStyle).width/2;Z.setAttribute("x",J.toString())}this.renderContentRTL(I,j,C+B,M)},r.prototype.renderContentRTL=function(e,i,r,o){if(this.enableRTL)for(var n=void 0,a=i?1:0,s=0;s<e.childNodes.length;s++)n=e.childNodes[s],i&&!(s>0)||(0,t.isNullOrUndefined)(n.getAttribute("x"))||(n.setAttribute("x",(this.elementSize.width-(r+o[a])).toString()),a++)},r.prototype.getTooltipTextContent=function(e){var i=e.match(/<[a-zA-Z\/](.|\n)*?>/g);if((0,t.isNullOrUndefined)(i))return e;for(var r=this.isRTLText(e),o=0;o<i.length;o++)this.isValidHTMLElement(i[o].replace("<","").replace("/","").replace(">","").trim())&&(e=e.replace(i[o],r?"‎":""));return e},r.prototype.isValidHTMLElement=function(t){return"[object HTMLUnknownElement]"!==document.createElement(t).toString()},r.prototype.isRTLText=function(t){return/[\u0590-\u07FF\u200F\u202B\u202E\uFB1D-\uFDFD\uFE70-\uFEFC]/.test(t)},r.prototype.createTemplate=function(e,i){var r={cancel:!1,name:"tooltipRender",tooltip:this};this.trigger("tooltipRender",r);var o=document.getElementById(this.element.id);this.isCanvas&&this.removeSVG();var n=o.firstElementChild;if(n&&(0,t.remove)(n),r.cancel)(0,t.remove)(f(this.element.id+"_tooltip"));else{var a=(0,t.createElement)("div",{id:this.element.id+"parent_template"}),s=void 0;if("Chart"===this.controlName&&this.shared)for(var l=0;l<this.data.length;l++){var h=this.templateFn(this.data[l],this.controlInstance,a.id,a.id+"_blazorTemplate","");0===l?s=h:h.length>1?s[l].outerHTML=h[l].outerHTML||h[l].textContent:s[s.length-1].outerHTML+=h[0].outerHTML}else s=this.templateFn(this.data,this.controlInstance,a.id,a.id+"_blazorTemplate","");for(;s&&s.length>0;)(0,t.isBlazor)()||1===s.length?(a.appendChild(s[0]),s=null):a.appendChild(s[0]);o.appendChild(a);var d=this.isCanvas?a:this.element,c=d.getBoundingClientRect();this.padding=0,this.elementSize=new p(c.width,c.height);var y=this.shared?this.sharedTooltipLocation(e,this.location.x,this.location.y):this.tooltipLocation(e,i,new F(0,0),new F(0,0));if(!this.enableAnimation||this.isFirst||this.crosshair?this.updateDiv(d,y.x,y.y):this.animateTooltipDiv(this.element,y),this.blazorTemplate){var u=function(){var t=f(g.element.id).getBoundingClientRect();g.elementSize=new p(t.width,t.height);var r=g.tooltipLocation(e,i,new F(0,0),new F(0,0));g.updateDiv(f(g.element.id),r.x,r.y)},g=this;u.bind(g,e,i),(0,t.updateBlazorTemplate)(this.element.id+"parent_template_blazorTemplate",this.blazorTemplate.name,this.blazorTemplate.parent,void 0,u)}}},r.prototype.sharedTooltipLocation=function(t,e,i){var r=this.elementSize.width+2*this.marginX,o=this.elementSize.height+2*this.marginY,n=new c(e+2*this.padding,i-o-this.padding,r,o);return n.y<t.y&&(n.y+=n.height+2*this.padding),n.y+n.height>t.y+t.height&&(n.y=Math.max(t.y+t.height-(n.height+2*this.padding),t.y)),n.x+n.width>t.x+t.width&&(n.x=t.x+this.location.x-(n.width+4*this.padding)),n.x<t.x&&(n.x=t.x),n},r.prototype.getCurrentPosition=function(t,e,i,r){var o=this.tooltipPlacement,n=this.clipBounds.x,a=this.clipBounds.y,s=this.offset,l=this.elementSize.width+2*this.marginX,h=this.elementSize.height+2*this.marginY,d=new F(e.x,e.y);return"Top"===o||"Bottom"===o?(d=new F(d.x+n-this.elementSize.width/2-this.padding,d.y+a-this.elementSize.height-2*this.padding-this.arrowPadding-s),i.x=r.x=l/2,"Bottom"===o&&(d.y=e.y+a+s),t.x+t.width<d.x+l?(d.x=t.width>l?t.x+t.width-l+6:t.x,i.x=r.x=t.width>l?t.x+e.x-d.x:e.x):t.x>d.x&&(d.x=t.x,i.x=r.x=e.x)):(d=new F(d.x+n+s,d.y+a-this.elementSize.height/2-this.padding),i.y=r.y=h/2,"Left"===o&&(d.x=e.x+n-s-(l+this.arrowPadding)),t.y+t.height<d.y+h?(d.y=t.height>h?t.y+t.height-h+6:t.y,i.y=r.y=t.height>h?t.y+e.y-d.y:e.y):t.y>d.y&&(d.y=t.y,i.y=r.y=e.y)),new c(d.x,d.y,l,h)},r.prototype.tooltipLocation=function(e,i,r,o){if(!(0,t.isNullOrUndefined)(this.tooltipPlacement))return this.getCurrentPosition(e,i,r,o);var n=new F(i.x,i.y),a=this.elementSize.width+2*this.marginX,s=this.elementSize.height+2*this.marginY,l=this.offset,d=this.clipBounds.x,p=this.clipBounds.y,y=e.x,u=e.y;return this.outOfBounds=!1,this.inverted?(n=new F(n.x+d+l,n.y+p-this.elementSize.height/2-this.padding),r.y=o.y=s/2,(n.x+a+this.arrowPadding>y+e.width||this.isNegative)&&(n.x=(i.x>e.width+e.x?e.width:i.x)+d-l-(a+this.arrowPadding)),n.x<y&&(n.x=(i.x<0?0:i.x)+d+l),n.x+a+this.arrowPadding>y+e.width&&(n.x=(i.x>e.width+e.x?e.width:i.x)+d-l-(a+this.arrowPadding)),n.y<=u&&(r.y-=u-n.y,o.y-=u-n.y,n.y=u),n.y+s>=u+e.height&&(r.y+=n.y+s-(u+e.height),o.y+=n.y+s-(u+e.height),n.y-=n.y+s-(u+e.height)),r.y+this.arrowPadding>s-this.ry&&(r.y=s-this.ry-this.arrowPadding,o.y=s),r.y-this.arrowPadding<this.ry&&(r.y=o.y=this.ry+this.arrowPadding),"Chart"===this.controlName&&((n.y+r.y<this.areaMargin+this.arrowPadding||e.y+e.height-(n.y+r.y)<this.areaMargin+this.arrowPadding)&&(this.outOfBounds=!0),h(n.x,n.y,e)&&!this.outOfBounds||(this.inverted=!this.inverted,n=new F(i.x+d-this.padding-this.elementSize.width/2,i.y+p-this.elementSize.height-2*this.padding-l-this.arrowPadding),this.revert=!0,o.x=r.x=a/2,o.y=r.y=0,(n.y<u||this.isNegative)&&(n.y=(i.y<0?0:i.y)+l+p),n.y+this.arrowPadding+s>u+e.height&&(n.y=Math.min(i.y,u+e.height)+p-this.elementSize.height-2*this.padding-l-this.arrowPadding),o.x=a/2,n.x<y&&(o.x-=y-n.x,r.x-=y-n.x,n.x=y),n.x+a>e.width+y&&(r.x+=n.x+a-(e.width+y),o.x+=n.x+a-(e.width+y),n.x-=n.x+a-(e.width+y)),this.arrowPadding+r.x>a-this.rx&&(o.x=a-this.rx-this.arrowPadding,r.x=a-this.rx-this.arrowPadding),r.x-this.arrowPadding<this.rx&&(r.x=o.x=this.rx+this.arrowPadding)))):(n=new F(n.x+d-this.elementSize.width/2-this.padding,n.y+p-this.elementSize.height-2*(this.allowHighlight?this.highlightPadding:this.padding)-this.arrowPadding-l),r.x=o.x=a/2,(n.y<u||this.isNegative)&&"Progressbar"!==this.controlName&&(n.y=(i.y<0?0:i.y)+p+l),n.y+s+this.arrowPadding>u+e.height&&(n.y=Math.min(i.y,u+e.height)+p-this.elementSize.height-2*this.padding-this.arrowPadding-l),(n.x+a>y+e.width&&n.y<u||this.isNegative)&&"Progressbar"!==this.controlName&&(n.y=(i.y<0?0:i.y)+p+l),o.x=a/2,n.x<y&&"Progressbar"!==this.controlName&&(r.x-=y-n.x,o.x-=y-n.x,n.x=y),n.x+a>y+e.width&&"Progressbar"!==this.controlName&&(r.x+=n.x+a-(y+e.width),o.x+=n.x+a-(y+e.width),n.x-=n.x+a-(y+e.width)),n.x<y&&"Progressbar"!==this.controlName&&(r.x-=y-n.x,o.x-=y-n.x,n.x=y),r.x+this.arrowPadding>a-this.rx&&(r.x=a-this.rx-this.arrowPadding,o.x=a-this.rx-this.arrowPadding),r.x-this.arrowPadding<this.rx&&(r.x=o.x=this.rx+this.arrowPadding),"Chart"===this.controlName&&((e.x+e.width-(n.x+r.x)<this.areaMargin+this.arrowPadding||n.x+r.x<this.areaMargin+this.arrowPadding)&&(this.outOfBounds=!0),this.template&&n.y<0&&(n.y=i.y+p+l),h(n.x,n.y,e)&&!this.outOfBounds||(this.inverted=!this.inverted,this.revert=!0,n=new F(i.x+l+d,i.y+p-this.elementSize.height/2-this.padding),o.x=r.x=0,o.y=r.y=s/2,(n.x+this.arrowPadding+a>y+e.width||this.isNegative)&&(n.x=(i.x>y+e.width?e.width:i.x)+d-l-(this.arrowPadding+a)),n.x<y&&(n.x=(i.x<0?0:i.x)+l+d),n.y<=u&&(o.y-=u-n.y,r.y-=u-n.y,n.y=u),n.y+s>=e.height+u&&(r.y+=n.y+s-(e.height+u),o.y+=n.y+s-(e.height+u),n.y-=n.y+s-(e.height+u)),this.arrowPadding+r.y>s-this.ry&&(r.y=s-this.arrowPadding-this.ry,o.y=s),r.y-this.arrowPadding<this.ry&&(r.y=this.arrowPadding+this.ry,o.y=0)))),new c(n.x,n.y,a,s)},r.prototype.animateTooltipDiv=function(e,i){var r,o=this,n=parseFloat(e.style.left),a=parseFloat(e.style.top);new t.Animation({}).animate(e,{duration:0===this.duration&&"Enable"===t.animationMode?300:this.duration,progress:function(s){r=s.timeStamp/s.duration,e.style.animation=null,"Chart"===o.controlName&&o.shared&&!o.enableRTL?(e.style.transition=(0,t.isBlazor)()?"transform 0.3s":"transform 0.1s",e.style.transform="translate("+(n+r*(i.x-n))+"px,"+(a+r*(i.y-a))+"px)",e.style.left="",e.style.top=""):(e.style.left=n+r*(i.x-n)+"px",e.style.top=a+r*(i.y-a)+"px",e.style.transform="RangeNavigator"===o.controlName?e.style.transform:"")},end:function(t){o.updateDiv(e,i.x,i.y),o.trigger("animationComplete",{tooltip:o})}})},r.prototype.updateDiv=function(t,e,i){"Chart"!==this.controlName||!this.shared||this.crosshair||this.enableRTL?(t.style.left=e+"px",t.style.top=i+"px",t.style.transform="RangeNavigator"===this.controlName?t.style.transform:""):(t.style.transform="translate("+e+"px,"+i+"px)",t.style.left="",t.style.top="")},r.prototype.updateTemplateFn=function(){if(this.template)try{"function"!=typeof this.template&&document.querySelectorAll(this.template).length?this.templateFn=(0,t.compile)(document.querySelector(this.template).innerHTML.trim()):this.templateFn=(0,t.compile)(this.template)}catch(e){this.templateFn=(0,t.compile)(this.template)}},r.prototype.fadeOut=function(){var e=this,i=this.isCanvas&&!this.template?f(this.element.id+"_svg"):f(this.element.id),r=f(this.element.id);if(i){var o=i.firstChild;if(o.nodeType!==Node.ELEMENT_NODE&&(o=i.firstElementChild),this.isCanvas&&!this.template&&(o=document.getElementById(this.element.id+"_group")?document.getElementById(this.element.id+"_group"):o),!o)return null;var n=parseFloat(o.getAttribute("opacity"));n=(0,t.isNullOrUndefined)(n)?1:n,new t.Animation({}).animate(o,{duration:200,progress:function(t){e.progressAnimation(o,n,t.timeStamp/t.duration)},end:function(){e.fadeOuted=!0,e.endAnimation(o),r.style.transition=""}})}},r.prototype.progressAnimation=function(t,e,i){t.style.animation="",t.setAttribute("opacity",(e-i).toString())},r.prototype.endAnimation=function(t){t.setAttribute("opacity","0"),this.template&&(t.style.display="none"),this.trigger("animationComplete",{tooltip:this})},r.prototype.getPersistData=function(){return this.addOnPersist([])},r.prototype.getModuleName=function(){return"tooltip"},r.prototype.destroy=function(){i.prototype.destroy.call(this),this.element.classList.remove("e-tooltip")},r.prototype.onPropertyChanged=function(e,i){this.blazorTemplate&&(0,t.resetBlazorTemplate)(this.element.id+"parent_template_blazorTemplate"),this.isFirst=!1,this.render()},L([(0,t.Property)(!1)],r.prototype,"enable",void 0),L([(0,t.Property)(!1)],r.prototype,"shared",void 0),L([(0,t.Property)(!1)],r.prototype,"crosshair",void 0),L([(0,t.Property)(!1)],r.prototype,"enableShadow",void 0),L([(0,t.Property)(null)],r.prototype,"fill",void 0),L([(0,t.Property)("")],r.prototype,"header",void 0),L([(0,t.Property)(.75)],r.prototype,"opacity",void 0),L([(0,t.Complex)({size:"12px",fontWeight:null,color:null,fontStyle:"Normal",fontFamily:null},P)],r.prototype,"textStyle",void 0),L([(0,t.Property)(null)],r.prototype,"template",void 0),L([(0,t.Property)(!0)],r.prototype,"enableAnimation",void 0),L([(0,t.Property)(300)],r.prototype,"duration",void 0),L([(0,t.Property)(!1)],r.prototype,"inverted",void 0),L([(0,t.Property)(!1)],r.prototype,"isNegative",void 0),L([(0,t.Complex)({color:null,width:null},T)],r.prototype,"border",void 0),L([(0,t.Property)([])],r.prototype,"content",void 0),L([(0,t.Property)(10)],r.prototype,"markerSize",void 0),L([(0,t.Complex)({x:0,y:0},O)],r.prototype,"clipBounds",void 0),L([(0,t.Property)([])],r.prototype,"palette",void 0),L([(0,t.Property)([])],r.prototype,"shapes",void 0),L([(0,t.Complex)({x:0,y:0},O)],r.prototype,"location",void 0),L([(0,t.Property)(0)],r.prototype,"offset",void 0),L([(0,t.Property)(4)],r.prototype,"rx",void 0),L([(0,t.Property)(4)],r.prototype,"ry",void 0),L([(0,t.Property)(5)],r.prototype,"marginX",void 0),L([(0,t.Property)(5)],r.prototype,"marginY",void 0),L([(0,t.Property)(7)],r.prototype,"arrowPadding",void 0),L([(0,t.Property)(null)],r.prototype,"data",void 0),L([(0,t.Property)("Material")],r.prototype,"theme",void 0),L([(0,t.Complex)({x:0,y:0,width:0,height:0},A)],r.prototype,"areaBounds",void 0),L([(0,t.Property)(null)],r.prototype,"availableSize",void 0),L([(0,t.Property)()],r.prototype,"blazorTemplate",void 0),L([(0,t.Property)(!1)],r.prototype,"isCanvas",void 0),L([(0,t.Property)(!1)],r.prototype,"isTextWrap",void 0),L([(0,t.Property)(!1)],r.prototype,"isFixed",void 0),L([(0,t.Property)(null)],r.prototype,"tooltipPlacement",void 0),L([(0,t.Property)(null)],r.prototype,"controlInstance",void 0),L([(0,t.Property)("")],r.prototype,"controlName",void 0),L([(0,t.Event)()],r.prototype,"tooltipRender",void 0),L([(0,t.Event)()],r.prototype,"loaded",void 0),L([(0,t.Event)()],r.prototype,"animationComplete",void 0),L([(0,t.Property)(!1)],r.prototype,"enableRTL",void 0),L([(0,t.Property)(!1)],r.prototype,"allowHighlight",void 0),r=L([t.NotifyPropertyChanges],r)}(t.Component)})(),o})()));
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("SyncfusionBase")):"function"==typeof define&&define.amd?define(["SyncfusionBase"],e):"object"==typeof exports?exports.SyncfusionSvgBase=e(require("SyncfusionBase")):t.SyncfusionSvgBase=e(t.SyncfusionBase)}(self,(t=>(()=>{"use strict";var e={766:e=>{e.exports=t}},i={};function r(t){var o=i[t];if(void 0!==o)return o.exports;var n=i[t]={exports:{}};return e[t](n,n.exports,r),n.exports}r.d=(t,e)=>{for(var i in e)r.o(e,i)&&!r.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};return(()=>{r.r(o),r.d(o,{AreaBounds:()=>A,CanvasRenderer:()=>i,CustomizeOption:()=>u,PathOption:()=>b,Rect:()=>c,Side:()=>y,Size:()=>p,SvgRenderer:()=>e,TextOption:()=>g,TextStyle:()=>P,ToolLocation:()=>O,Tooltip:()=>k,TooltipBorder:()=>T,TooltipLocation:()=>F,calculateShapes:()=>v,drawSymbol:()=>x,findDirection:()=>d,getElement:()=>f,getTooltipThemeColor:()=>n,measureText:()=>l,removeElement:()=>m,textElement:()=>w,withInAreaBounds:()=>h});var t=r(766),e=function(){function e(t){this.svgLink="http://www.w3.org/2000/svg",this.rootId=t}return e.prototype.getOptionValue=function(t,e){return t[e]},e.prototype.createSvg=function(e){return(0,t.isNullOrUndefined)(e.id)&&(e.id=this.rootId+"_svg"),this.svgObj=document.getElementById(e.id),(0,t.isNullOrUndefined)(document.getElementById(e.id))&&(this.svgObj=document.createElementNS(this.svgLink,"svg")),this.svgObj=this.setElementAttributes(e,this.svgObj),this.setSVGSize(e.width,e.height),this.svgObj},e.prototype.setSVGSize=function(e,i){var r=document.getElementById(this.rootId),o=(0,t.isNullOrUndefined)(r)?null:r.getBoundingClientRect();(0,t.isNullOrUndefined)(this.width)||this.width<=0?this.svgObj.setAttribute("width",e?e.toString():o.width.toString()):this.svgObj.setAttribute("width",this.width.toString()),(0,t.isNullOrUndefined)(this.height)||this.height<=0?this.svgObj.setAttribute("height",i?i.toString():"450"):this.svgObj.setAttribute("height",this.height.toString())},e.prototype.drawPath=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"path")),e=this.setElementAttributes(t,e)},e.prototype.drawLine=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"line")),e=this.setElementAttributes(t,e)},e.prototype.drawRectangle=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"rect")),e=this.setElementAttributes(t,e)},e.prototype.drawCircle=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"circle")),e=this.setElementAttributes(t,e)},e.prototype.drawPolyline=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"polyline")),e=this.setElementAttributes(t,e)},e.prototype.drawEllipse=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"ellipse")),e=this.setElementAttributes(t,e)},e.prototype.drawPolygon=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"polygon")),e=this.setElementAttributes(t,e)},e.prototype.drawImage=function(e){var i=document.createElementNS(this.svgLink,"image");return i.setAttributeNS(null,"height",e.height.toString()),i.setAttributeNS(null,"width",e.width.toString()),i.setAttributeNS("http://www.w3.org/1999/xlink","href",e.href),i.setAttributeNS(null,"x",e.x.toString()),i.setAttributeNS(null,"y",e.y.toString()),i.setAttributeNS(null,"id",e.id),i.setAttributeNS(null,"visibility",e.visibility),(0,t.isNullOrUndefined)(this.getOptionValue(e,"clip-path"))||i.setAttributeNS(null,"clip-path",this.getOptionValue(e,"clip-path")),(0,t.isNullOrUndefined)(e.preserveAspectRatio)||i.setAttributeNS(null,"preserveAspectRatio",e.preserveAspectRatio),i},e.prototype.createText=function(e,i){var r=document.createElementNS(this.svgLink,"text");return r=this.setElementAttributes(e,r),(0,t.isNullOrUndefined)(i)||(r.textContent=i),r},e.prototype.createTSpan=function(e,i){var r=document.createElementNS(this.svgLink,"tspan");return r=this.setElementAttributes(e,r),(0,t.isNullOrUndefined)(i)||(r.textContent=i),r},e.prototype.createTitle=function(t){var e=document.createElementNS(this.svgLink,"title");return e.textContent=t,e},e.prototype.createDefs=function(){return document.createElementNS(this.svgLink,"defs")},e.prototype.createClipPath=function(t){var e=document.createElementNS(this.svgLink,"clipPath");return e=this.setElementAttributes(t,e)},e.prototype.createForeignObject=function(t){var e=document.createElementNS(this.svgLink,"foreignObject");return e=this.setElementAttributes(t,e)},e.prototype.createGroup=function(t){var e=document.createElementNS(this.svgLink,"g");return e=this.setElementAttributes(t,e)},e.prototype.createPattern=function(t,e){var i=document.createElementNS(this.svgLink,e);return i=this.setElementAttributes(t,i)},e.prototype.createRadialGradient=function(e,i,r){var o;if((0,t.isNullOrUndefined)(e[0].colorStop))o=e[0].color.toString();else{var n={id:this.rootId+"_"+i+"radialGradient",cx:r.cx+"%",cy:r.cy+"%",r:r.r+"%",fx:r.fx+"%",fy:r.fy+"%"};this.drawGradient("radialGradient",n,e),o="url(#"+this.rootId+"_"+i+"radialGradient)"}return o},e.prototype.createLinearGradient=function(e,i,r){var o;if((0,t.isNullOrUndefined)(e[0].colorStop))o=e[0].color.toString();else{var n={id:this.rootId+"_"+i+"linearGradient",x1:r.x1+"%",y1:r.y1+"%",x2:r.x2+"%",y2:r.y2+"%"};this.drawGradient("linearGradient",n,e),o="url(#"+this.rootId+"_"+i+"linearGradient)"}return o},e.prototype.drawGradient=function(e,i,r){var o=this.createDefs(),n=document.createElementNS(this.svgLink,e);n=this.setElementAttributes(i,n);for(var a=0;a<r.length;a++){var s=document.createElementNS(this.svgLink,"stop");s.setAttribute("offset",r[a].colorStop),s.setAttribute("stop-color",r[a].color),s.setAttribute("stop-opacity",r[a].opacity?r[a].opacity:"1"),(0,t.isNullOrUndefined)(r[a].style)||(s.style.cssText=r[a].style),n.appendChild(s)}return o.appendChild(n),o},e.prototype.drawClipPath=function(t){var e=this.createDefs(),i=this.createClipPath({id:t.id});t.id=t.id+"_Rect";var r=this.drawRectangle(t);return i.appendChild(r),e.appendChild(i),e},e.prototype.drawCircularClipPath=function(t){var e=this.createDefs(),i=this.createClipPath({id:t.id});t.id=t.id+"_Circle";var r=this.drawCircle(t);return i.appendChild(r),e.appendChild(i),e},e.prototype.setElementAttributes=function(t,e){for(var i=Object.keys(t),r=0;r<i.length;r++)"style"===i[r]?e.style.cssText=t[i[r]]:e.setAttribute(i[r],t[i[r]]);return e},e.prototype.createCanvas=function(){return null},e}(),i=function(){function e(t){this.rootId=t}return e.prototype.getOptionValue=function(t,e){return t[e]},e.prototype.createCanvas=function(t){var e=document.createElement("canvas");return e.setAttribute("id",this.rootId+"_canvas"),this.ctx=e.getContext("2d"),this.canvasObj=e,this.setCanvasSize(t.width,t.height),this.canvasObj},e.prototype.setCanvasSize=function(e,i){var r=document.getElementById(this.rootId),o=(0,t.isNullOrUndefined)(r)?null:r.getBoundingClientRect();(0,t.isNullOrUndefined)(this.width)?this.canvasObj.setAttribute("width",e?e.toString():o.width.toString()):this.canvasObj.setAttribute("width",this.width.toString()),(0,t.isNullOrUndefined)(this.height)?this.canvasObj.setAttribute("height",i?i.toString():"450"):this.canvasObj.setAttribute("height",this.height.toString())},e.prototype.setAttributes=function(e){this.ctx.lineWidth=this.getOptionValue(e,"stroke-width");var i=this.getOptionValue(e,"stroke-dasharray");if(!(0,t.isNullOrUndefined)(i)){var r=i.split(",");this.ctx.setLineDash([parseInt(r[0],10),parseInt(r[1],10)])}this.ctx.strokeStyle=this.getOptionValue(e,"stroke")},e.prototype.drawLine=function(t){this.ctx.save(),this.ctx.beginPath(),this.ctx.lineWidth=this.getOptionValue(t,"stroke-width"),this.ctx.strokeStyle=t.stroke,this.ctx.moveTo(t.x1,t.y1),this.ctx.lineTo(t.x2,t.y2),this.ctx.stroke(),this.ctx.restore()},e.prototype.drawRectangle=function(t,e){var i=this.ctx,r=t.rx;return this.ctx.save(),this.ctx.beginPath(),e&&this.ctx.translate(e[0],e[1]),this.ctx.globalAlpha=this.getOptionValue(t,"opacity"),this.setAttributes(t),this.ctx.rect(t.x,t.y,t.width,t.height),null!==r&&r>=0?this.drawCornerRadius(t):("none"===t.fill&&(t.fill="transparent"),this.ctx.fillStyle=t.fill,this.ctx.fillRect(t.x,t.y,t.width,t.height),this.ctx.stroke()),this.ctx.restore(),this.ctx=i,this.canvasObj},e.prototype.drawCornerRadius=function(t){var e=t.rx,i=t.x,r=t.y,o=t.width,n=t.height;"none"===t.fill&&(t.fill="transparent"),this.ctx.fillStyle=t.fill,o<2*e&&(e=o/2),n<2*e&&(e=n/2),this.ctx.beginPath(),this.ctx.moveTo(i+o-e,r),this.ctx.arcTo(i+o,r,i+o,r+n,e),this.ctx.arcTo(i+o,r+n,i,r+n,e),this.ctx.arcTo(i,r+n,i,r,e),this.ctx.arcTo(i,r,i+o,r,e),this.ctx.closePath(),this.ctx.fill(),this.ctx.stroke()},e.prototype.drawPath=function(t,e){var i=t.d.split(" "),r=this.getOptionValue(t,"stroke-width"),o=this.ctx,n=!0;this.ctx.save(),this.ctx.beginPath(),e&&this.ctx.translate(e[0],e[1]),this.ctx.globalAlpha=t.opacity?t.opacity:this.getOptionValue(t,"fill-opacity"),this.setAttributes(t);for(var a=0;a<i.length;a+=3){var s=parseFloat(i[a+1]),l=parseFloat(i[a+2]);switch(i[a]){case"M":t.innerR||t.cx||this.ctx.moveTo(s,l);break;case"L":t.innerR||this.ctx.lineTo(s,l);break;case"Q":var h=parseFloat(i[a+3]),d=parseFloat(i[a+4]);this.ctx.quadraticCurveTo(s,l,h,d),a+=2;break;case"C":var p=parseFloat(i[a+3]),c=parseFloat(i[a+4]),y=parseFloat(i[a+5]),u=parseFloat(i[a+6]);this.ctx.bezierCurveTo(s,l,p,c,y,u),a+=4;break;case"A":t.innerR?n&&(this.ctx.arc(t.x,t.y,t.radius,t.start,t.end,t.counterClockWise),this.ctx.arc(t.x,t.y,t.innerR,t.end,t.start,!t.counterClockWise),n=!1):t.cx?this.ctx.arc(t.cx,t.cy,t.radius,0,2*Math.PI,t.counterClockWise):(this.ctx.moveTo(t.x,t.y),this.ctx.arc(t.x,t.y,t.radius,t.start,t.end,t.counterClockWise),this.ctx.lineTo(t.x,t.y)),a+=5;break;case"z":case"Z":this.ctx.closePath(),a-=2}}return"none"!==t.fill&&void 0!==t.fill&&(this.ctx.fillStyle=t.fill,this.ctx.fill()),r>0&&this.ctx.stroke(),this.ctx.restore(),this.ctx=o,this.canvasObj},e.prototype.createText=function(e,i,r,o,n,a){var s=this.getOptionValue(e,"font-weight");(0,t.isNullOrUndefined)(s)||"regular"!==s.toLowerCase()||(s="normal");var l=this.getOptionValue(e,"font-size"),h=this.getOptionValue(e,"font-family"),d=this.getOptionValue(e,"font-style").toLowerCase()+" "+s+" "+l+" "+h,p=this.getOptionValue(e,"text-anchor"),c=void 0!==e.opacity?e.opacity:1;if("middle"===p&&(p="center"),this.ctx.save(),this.ctx.fillStyle=e.fill,this.ctx.font=d,this.ctx.textAlign=p,this.ctx.globalAlpha=c,e.baseline&&(this.ctx.textBaseline=e.baseline),!a){this.ctx.translate(e.x+0+(r||0),e.y+(o||0)),this.ctx.rotate(e.labelRotation*Math.PI/180)}return this.ctx.fillText(i,a?e.x:0,a?n:0),this.ctx.restore(),this.canvasObj},e.prototype.drawCircle=function(t,e){var i=this.ctx;return this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(t.cx,t.cy,t.r,0,2*Math.PI),this.ctx.fillStyle=t.fill,this.ctx.globalAlpha=t.opacity,this.ctx.fill(),e&&this.ctx.translate(e[0],e[1]),this.setAttributes(t),this.ctx.stroke(),this.ctx.restore(),this.ctx=i,this.canvasObj},e.prototype.drawPolyline=function(t){this.ctx.save(),this.ctx.beginPath();for(var e=t.points.split(" "),i=0;i<e.length-1;i++){var r=e[i].split(","),o=parseFloat(r[0]),n=parseFloat(r[1]);0===i?this.ctx.moveTo(o,n):this.ctx.lineTo(o,n)}this.ctx.lineWidth=this.getOptionValue(t,"stroke-width"),this.ctx.strokeStyle=t.stroke,this.ctx.stroke(),this.ctx.restore()},e.prototype.drawEllipse=function(t,e){var i=this.ctx,r=Math.max(t.rx,t.ry),o=t.rx/r,n=t.ry/r;this.ctx.save(),this.ctx.beginPath(),this.ctx.translate(t.cx,t.cy),e&&this.ctx.translate(e[0],e[1]),this.ctx.save(),this.ctx.scale(o,n),this.ctx.arc(0,0,r,0,2*Math.PI,!1),this.ctx.fillStyle=t.fill,this.ctx.fill(),this.ctx.restore(),this.ctx.lineWidth=this.getOptionValue(t,"stroke-width"),this.ctx.strokeStyle=t.stroke,this.ctx.stroke(),this.ctx.restore(),this.ctx=i},e.prototype.drawImage=function(e){this.ctx.save();var i=new Image;(0,t.isNullOrUndefined)(e.href)||(i.src=e.href,this.ctx.drawImage(i,e.x,e.y,e.width,e.height)),this.ctx.restore()},e.prototype.createLinearGradient=function(e){var i;return(0,t.isNullOrUndefined)(e[0].colorStop)||(i=this.ctx.createLinearGradient(0,0,0,this.canvasObj.height)),this.setGradientValues(e,i)},e.prototype.createRadialGradient=function(e){var i;return(0,t.isNullOrUndefined)(e[0].colorStop)||(i=this.ctx.createRadialGradient(0,0,0,0,0,this.canvasObj.height)),this.setGradientValues(e,i)},e.prototype.setGradientValues=function(e,i){var r;if((0,t.isNullOrUndefined)(e[0].colorStop))r=e[0].color.toString();else{for(var o=0;o<=e.length-1;o++){var n=e[o].color,a=e[o].colorStop.slice(0,-1),s=parseInt(a,10)/100;i.addColorStop(s,n)}r=i.toString()}return r},e.prototype.setElementAttributes=function(t,e){for(var i=Object.keys(t),r=Object.keys(t).map((function(e){return t[e]})),o=0;o<i.length;o++)e.setAttribute(i[o],r[o]);return null},e.prototype.updateCanvasAttributes=function(e){this.setElementAttributes(e,this.canvasObj);var i=this.ctx;if(!(0,t.isNullOrUndefined)(this.dataUrl)){var r=new Image;r.onload=function(){i.drawImage(r,0,0)},r.src=this.dataUrl}},e.prototype.clearRect=function(t){this.ctx.restore(),this.ctx.clearRect(t.x,t.y,t.width,t.height)},e.prototype.createGroup=function(){return null},e.prototype.drawClipPath=function(){return null},e.prototype.drawCircularClipPath=function(){return null},e.prototype.canvasClip=function(t){this.ctx.save(),this.ctx.fillStyle="transparent",this.ctx.rect(t.x,t.y,t.width,t.height),this.ctx.fill(),this.ctx.clip()},e.prototype.canvasRestore=function(){this.ctx.restore()},e.prototype.drawPolygon=function(){return null},e.prototype.createDefs=function(){return null},e.prototype.createClipPath=function(){return null},e.prototype.createSvg=function(){return null},e}();function n(t){var e;switch(t){case"Highcontrast":case"HighContrast":e={tooltipFill:"#ffffff",tooltipBoldLabel:"#000000",tooltipLightLabel:"#000000",tooltipHeaderLine:"#969696",textStyle:{fontFamily:"Segoe UI",color:"#000000",fontWeight:null}};break;case"MaterialDark":case"FabricDark":case"BootstrapDark":e={tooltipFill:"MaterialDark"===t?"#F4F4F4":"FabricDark"===t?"#A19F9D":"#F0F0F0",tooltipBoldLabel:"MaterialDark"===t?"rgba(18, 18, 18, 1)":"FabricDark"===t?"#DADADA":"#1A1A1A",tooltipLightLabel:"MaterialDark"===t?"rgba(18, 18, 18, 1)":"FabricDark"===t?"#DADADA":"#1A1A1A",tooltipHeaderLine:"#9A9A9A",textStyle:"MaterialDark"===t?{fontFamily:"Roboto",color:"rgba(18, 18, 18, 1)",fontWeight:null}:"FabricDark"===t?{fontFamily:"Segoe UI",color:"#DADADA",fontWeight:null}:{fontFamily:"Helvetica",color:"#1A1A1A",fontWeight:null}};break;case"Bootstrap4":e={tooltipFill:"#212529",tooltipBoldLabel:"#F9FAFB",tooltipLightLabel:"#F9FAFB",tooltipHeaderLine:"rgba(255, 255, 255, 0.2)",textStyle:{fontFamily:"Helvetica",color:"#F9FAFB",fontWeight:null}};break;case"Tailwind":e={tooltipFill:"#111827",tooltipBoldLabel:"#F9FAFB",tooltipLightLabel:"#F9FAFB",tooltipHeaderLine:"#6B7280",textStyle:{fontFamily:"Inter",color:"#F9FAFB",fontWeight:null}};break;case"TailwindDark":e={tooltipFill:"#E9ECEF",tooltipBoldLabel:"#1F2937",tooltipLightLabel:"#1F2937",tooltipHeaderLine:"#9CA3AF",textStyle:{fontFamily:"Inter",color:"#1F2937",fontWeight:null}};break;case"Bootstrap5":e={tooltipFill:"#212529",tooltipBoldLabel:"#F9FAFB",tooltipLightLabel:"#F9FAFB",tooltipHeaderLine:"#9CA3AF",textStyle:{fontFamily:"Helvetica",color:"#F9FAFB",fontWeight:null}};break;case"Bootstrap5Dark":e={tooltipFill:"#E9ECEF",tooltipBoldLabel:"#212529",tooltipLightLabel:"#212529",tooltipHeaderLine:"#ADB5BD",textStyle:{fontFamily:"Helvetica",color:"#212529",fontWeight:null}};break;case"Fluent":e={tooltipFill:"#FFFFFF",tooltipBoldLabel:"#323130",tooltipLightLabel:"#323130",tooltipHeaderLine:"#D2D0CE",textStyle:{fontFamily:"Segoe UI",color:"#323130",fontWeight:null}};break;case"FluentDark":e={tooltipFill:"#323130",tooltipBoldLabel:"#F3F2F2",tooltipLightLabel:"#F3F2F1",tooltipHeaderLine:"#3B3A39",textStyle:{fontFamily:"Segoe UI",color:"#F3F2F1",fontWeight:null}};break;case"Fluent2":e={tooltipFill:"#FFFFFF",tooltipBoldLabel:"#242424",tooltipLightLabel:"#242424",tooltipHeaderLine:"#D2D0CE",textStyle:{fontFamily:"Segoe UI",color:"#242424",fontWeight:null}};break;case"Fluent2Dark":e={tooltipFill:"#292929",tooltipBoldLabel:"#FFFFFF",tooltipLightLabel:"#FFFFFF",tooltipHeaderLine:"#3B3A39",textStyle:{fontFamily:"Segoe UI",color:"#FFFFFF",fontWeight:null}};break;case"Material3":e={tooltipFill:"#313033",tooltipBoldLabel:"#F4EFF4",tooltipLightLabel:"#F4EFF4",tooltipHeaderLine:"#F4EFF4",textStyle:{fontFamily:"Roboto",color:"#F4EFF4",fontWeight:null}};break;case"Material3Dark":e={tooltipFill:"#E6E1E5",tooltipBoldLabel:"#313033",tooltipLightLabel:"#313033",tooltipHeaderLine:"#313033",textStyle:{fontFamily:"Roboto",color:"#313033",fontWeight:null}};break;default:e={tooltipFill:"Material"===t?"#000816":"Fabric"===t?"#FFFFFF":"#212529",tooltipBoldLabel:"Material"===t?"rgba(249, 250, 251, 1)":"Fabric"===t?"#333333":"#F9FAFB",tooltipLightLabel:"Material"===t?"rgba(249, 250, 251, 1)":"Fabric"===t?"#333333":"#F9FAFB",tooltipHeaderLine:"Fabric"===t?"#D2D0CE":"#ffffff",textStyle:"Material"===t?{fontFamily:"Roboto",color:"rgba(249, 250, 251, 1)",fontWeight:null}:"Fabric"===t?{fontFamily:"Segoe UI",color:"#333333",fontWeight:null}:{fontFamily:"Helvetica",color:"#F9FAFB",fontWeight:null}}}return e}var a,s=(a=function(t,e){return a=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])},a(t,e)},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});function l(e,i,r){var o=e||"",n=document.getElementById("chartmeasuretext");if(null===n&&(n=(0,t.createElement)("text",{id:"chartmeasuretext"}),document.body.appendChild(n)),"string"==typeof e&&(e.indexOf("<")>-1||e.indexOf(">")>-1)){for(var a=e.split(" "),s=0;s<a.length;s++)-1===a[s].indexOf("<br/>")&&(a[s]=a[s].replace(/[<>]/g,"&"));e=a.join(" ")}n.innerHTML=o.indexOf("<br>")>-1||o.indexOf("<br/>")>-1?o:e,n.style.position="fixed",n.style.fontSize=i.size||r.size,n.style.fontStyle=i.fontStyle||r.fontStyle,n.style.fontFamily=i.fontFamily||r.fontFamily,n.style.visibility="hidden",n.style.top="-100",n.style.left="0",n.style.whiteSpace="nowrap",n.style.lineHeight="normal";var l=n.clientWidth,h=n.clientHeight,d=n.style.fontWeight;return n.style.fontWeight=i.fontWeight||r.fontWeight,new p("bold"===n.style.fontWeight&&"normal"===d?Math.max(l,n.clientWidth):n.clientWidth,"bold"===n.style.fontWeight&&"normal"===d?Math.max(h,n.clientHeight):n.clientHeight)}function h(t,e,i,r,o){return void 0===r&&(r=0),void 0===o&&(o=0),t>=i.x-r&&t<=i.x+i.width+r&&e>=i.y-o&&e<=i.y+i.height+o}function d(t,e,i,r,o,n,a,s,l,h,d){void 0===d&&(d="");var p="",c=i.x,y=i.y,u=i.x+i.width,g=i.y+i.height;return n?(p=(p=p.concat("M "+c+" "+(y+e)+" Q "+c+" "+y+" "+(c+t)+" "+y+" L "+(u-t)+" "+y+" Q "+u+" "+y+" "+u+" "+(y+e))).concat(" L "+u+" "+(g-e)+" Q "+u+" "+g+" "+(u-t)+" "+g),0!==o&&(p="RangeNavigator"===d?r.x-o>u/2?(p=p.concat(" L "+(r.x+o)+" "+g)).concat(" L "+(l+o)+" "+(g+o)+" L "+r.x+" "+g):(p=p.concat(" L "+r.x+" "+g)).concat(" L "+(l-o)+" "+(g+o)+" L "+(r.x-o)+" "+g):(p=p.concat(" L "+(r.x+o)+" "+g)).concat(" L "+l+" "+(g+o)+" L "+(r.x-o)+" "+g)),p=r.x-o>c||0===o?p.concat(" L "+(c+t)+" "+g+" Q "+c+" "+g+" "+c+" "+(g-e)+" z"):p.concat(" L "+c+" "+(g+e)+" z")):a?p=(p=(p=(p=(p=p.concat("M "+c+" "+(y+e)+" Q "+c+" "+y+" "+(c+t)+" "+y+" L "+(r.x-o)+" "+y)).concat(" L "+l+" "+r.y)).concat(" L "+(r.x+o)+" "+y)).concat(" L "+(u-t)+" "+y+" Q "+u+" "+y+" "+u+" "+(y+e))).concat(" L "+u+" "+(g-e)+" Q "+u+" "+g+" "+(u-t)+" "+g+" L "+(c+t)+" "+g+" Q "+c+" "+g+" "+c+" "+(g-e)+" z"):s?(p=(p=p.concat("M "+c+" "+(y+e)+" Q "+c+" "+y+" "+(c+t)+" "+y)).concat(" L "+(u-t)+" "+y+" Q "+u+" "+y+" "+u+" "+("RangeNavigator"===d?0:y+e)+" L "+u+" "+("RangeNavigator"===d?0:r.y-o)),p="RangeNavigator"===d?p.concat(" L "+(u+o)+" 0"):p.concat(" L "+(u+o)+" "+h),p=(p=(p="RangeNavigator"===d?p.concat(" L "+u+" "+(r.y-e)):p.concat(" L "+u+" "+(r.y+o))).concat(" L "+u+" "+(g-e)+" Q "+u+" "+g+" "+(u-t)+" "+g)).concat(" L "+(c+t)+" "+g+" Q "+c+" "+g+" "+c+" "+(g-e)+" z")):(p=p.concat("M "+(c+t)+" "+y+" Q "+c+" "+y+" "+c+" "+("RangeNavigator"===d?0:y+e)+" L "+c+" "+("RangeNavigator"===d?0:r.y-o)),p="RangeNavigator"===d?p.concat(" L "+(c-o)+" 0"):p.concat(" L "+(c-o)+" "+h),p=(p=(p="RangeNavigator"===d?p.concat(" L "+c+" "+(r.y-e)):p.concat(" L "+c+" "+(r.y+o))).concat(" L "+c+" "+(g-e)+" Q "+c+" "+g+" "+(c+t)+" "+g)).concat(" L "+(u-t)+" "+g+" Q "+u+" "+g+" "+u+" "+(g-e)+" L "+u+" "+(y+e)+" Q "+u+" "+y+" "+(u-t)+" "+y+" z")),p}var p=function(t,e){this.width=t,this.height=e},c=function(t,e,i,r){this.x=t,this.y=e,this.width=i,this.height=r},y=function(t,e){this.isRight=e,this.isBottom=t},u=function(t){this.id=t},g=function(t){function e(e,i,r,o,n,a,s,l){void 0===a&&(a="");var h=t.call(this,e)||this;return h.transform="",h.baseLine="auto",h.labelRotation=0,h.x=i,h.y=r,h.anchor=o,h.text=n,h.transform=a,h.baseLine=s,h.labelRotation=l,h}return s(e,t),e}(u);function f(t){return document.getElementById(t)}function m(e){var i=f(e);i&&(0,t.remove)(i)}function x(t,i,r,o,n,a,s){var l=new e(""),h=v(t,r,i,n,o),d=l["draw"+h.functionName](h.renderOption);return d.setAttribute("role",a),d.setAttribute("aria-label",s),d}function v(e,i,r,o,n){var a,s="Path",l=i.width,h=i.height,d=e.x,p=e.y,c=e.x+-l/2,y=e.y+-h/2;switch(r){case"Circle":case"Bubble":s="Ellipse",(0,t.merge)(o,{rx:l/2,ry:h/2,cx:d,cy:p});break;case"Plus":a="M "+c+" "+p+" L "+(d+l/2)+" "+p+" M "+d+" "+(p+h/2)+" L "+d+" "+(p+-h/2),(0,t.merge)(o,{d:a,stroke:o.fill});break;case"Cross":a="M "+c+" "+(p+-h/2)+" L "+(d+l/2)+" "+(p+h/2)+" M "+c+" "+(p+h/2)+" L "+(d+l/2)+" "+(p+-h/2),(0,t.merge)(o,{d:a,stroke:o.fill});break;case"HorizontalLine":a="M "+c+" "+p+" L "+(d+l/2)+" "+p,(0,t.merge)(o,{d:a,stroke:o.fill});break;case"VerticalLine":a="M "+d+" "+(p+h/2)+" L "+d+" "+(p+-h/2),(0,t.merge)(o,{d:a,stroke:o.fill});break;case"Diamond":a="M "+c+" "+p+" L "+d+" "+(p+-h/2)+" L "+(d+l/2)+" "+p+" L "+d+" "+(p+h/2)+" L "+c+" "+p+" z",(0,t.merge)(o,{d:a});break;case"Rectangle":a="M "+c+" "+(p+-h/2)+" L "+(d+l/2)+" "+(p+-h/2)+" L "+(d+l/2)+" "+(p+h/2)+" L "+c+" "+(p+h/2)+" L "+c+" "+(p+-h/2)+" z",(0,t.merge)(o,{d:a});break;case"Triangle":a="M "+c+" "+(p+h/2)+" L "+d+" "+(p+-h/2)+" L "+(d+l/2)+" "+(p+h/2)+" L "+c+" "+(p+h/2)+" z",(0,t.merge)(o,{d:a});break;case"InvertedTriangle":a="M "+(d+l/2)+" "+(p-h/2)+" L "+d+" "+(p+h/2)+" L "+(d-l/2)+" "+(p-h/2)+" L "+(d+l/2)+" "+(p-h/2)+" z",(0,t.merge)(o,{d:a});break;case"Pentagon":for(var u=void 0,g=void 0,f=0;f<=5;f++)u=l/2*Math.cos(Math.PI/180*(72*f)),g=h/2*Math.sin(Math.PI/180*(72*f)),a=0===f?"M "+(d+u)+" "+(p+g)+" ":a.concat("L "+(d+u)+" "+(p+g)+" ");a=a.concat("Z"),(0,t.merge)(o,{d:a});break;case"Image":s="Image",(0,t.merge)(o,{href:n,height:h,width:l,x:c,y});break;case"Star":var m=Math.min(l,h)/2,x=m/2,v=Math.PI/5,b="";for(f=0;f<10;f++){var w=f%2==0?m:x;b+=(0===f?"M":"L")+(d+w*Math.cos(f*v-Math.PI/2))+","+(p+w*Math.sin(f*v-Math.PI/2))}b+="Z",(0,t.merge)(o,{d:b})}return{renderOption:o,functionName:s}}var b=function(t){function e(e,i,r,o,n,a,s){var l=t.call(this,e)||this;return l.opacity=n,l.fill=i,l.stroke=o,l["stroke-width"]=r,l["stroke-dasharray"]=a,l.d=s,l}return s(e,t),e}(u);function w(t,i,r,o,n){var a,s=new e("");a={id:t.id,x:t.x,y:t.y,fill:r,"font-size":i.size||n.size,"font-style":i.fontStyle||n.fontStyle,"font-family":i.fontFamily||n.fontFamily,"font-weight":i.fontWeight||n.fontWeight,"text-anchor":t.anchor,transform:t.transform,opacity:i.opacity,"dominant-baseline":t.baseLine};var l="string"==typeof t.text?t.text:t.text[0],h=s.createText(a,l);return o&&o.appendChild(h),h}var F=function(t,e){this.x=t,this.y=e},S=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])},t(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)}}(),L=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},P=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return S(i,e),L([(0,t.Property)(null)],i.prototype,"size",void 0),L([(0,t.Property)("")],i.prototype,"color",void 0),L([(0,t.Property)("Segoe UI")],i.prototype,"fontFamily",void 0),L([(0,t.Property)("Normal")],i.prototype,"fontWeight",void 0),L([(0,t.Property)("Normal")],i.prototype,"fontStyle",void 0),L([(0,t.Property)(1)],i.prototype,"opacity",void 0),i}(t.ChildProperty),T=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return S(i,e),L([(0,t.Property)("")],i.prototype,"color",void 0),L([(0,t.Property)(1)],i.prototype,"width",void 0),L([(0,t.Property)("")],i.prototype,"dashArray",void 0),i}(t.ChildProperty),A=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return S(i,e),L([(0,t.Property)(0)],i.prototype,"x",void 0),L([(0,t.Property)(0)],i.prototype,"y",void 0),L([(0,t.Property)(0)],i.prototype,"width",void 0),L([(0,t.Property)(0)],i.prototype,"height",void 0),i}(t.ChildProperty),O=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return S(i,e),L([(0,t.Property)(0)],i.prototype,"x",void 0),L([(0,t.Property)(0)],i.prototype,"y",void 0),i}(t.ChildProperty),k=function(i){function r(t,e){return i.call(this,t,e)||this}return S(r,i),r.prototype.preRender=function(){this.allowServerDataBinding=!1,this.initPrivateVariable(),this.isCanvas||this.removeSVG(),this.createTooltipElement()},r.prototype.initPrivateVariable=function(){this.renderer=new e(this.element.id),this.themeStyle=n(this.theme),this.formattedText=[],this.padding=5,this.highlightPadding=3,this.areaMargin=10,this.isFirst=!0,this.markerPoint=[]},r.prototype.removeSVG=function(){var e=document.getElementById(this.element.id+"_svg"),i=document.getElementById(this.element.id+"parent_template");this.blazorTemplate&&(0,t.resetBlazorTemplate)(this.element.id+"parent_template_blazorTemplate"),e&&e.parentNode&&(0,t.remove)(e),i&&i.parentNode&&(0,t.remove)(i)},r.prototype.render=function(){if(this.fadeOuted=!1,this.template)this.updateTemplateFn(),this.createTemplate(this.areaBounds,this.location);else{this.renderText(this.isFirst);var e={cancel:!1,name:"tooltipRender",tooltip:this};this.trigger("tooltipRender",e);var i=this.renderTooltipElement(this.areaBounds,this.location);this.drawMarker(i.isBottom,i.isRight,this.markerSize)}this.trigger("loaded",{tooltip:this});var r=document.getElementById("chartmeasuretext");r&&(0,t.remove)(r),this.allowServerDataBinding=!0},r.prototype.createTooltipElement=function(){if(this.textElements=[],!this.template||this.shared){this.enableRTL&&this.element.setAttribute("dir","ltr");var t=this.renderer.createSvg({id:this.element.id+"_svg"});this.element.appendChild(t);var e=document.getElementById(this.element.id+"_group");e||(e=this.renderer.createGroup({id:this.element.id+"_group"})).setAttribute("transform","translate(0,0)"),t.appendChild(e);var i=this.renderer.drawPath({id:this.element.id+"_path","stroke-width":"Fabric"!==this.theme&&"Fluent"!==this.theme&&"Fluent2"!==this.theme||this.border.width?this.border.width:1,fill:this.fill||this.themeStyle.tooltipFill,opacity:("TailwindDark"===this.theme||"Tailwind"===this.theme||"Bootstrap5"===this.theme||"Bootstrap5Dark"===this.theme||this.theme.indexOf("Fluent2")>-1)&&.75===this.opacity?1:this.opacity,stroke:this.border.color||("Fabric"===this.theme||"Fluent"===this.theme||"Fluent2"===this.theme?"#D2D0CE":this.border.color)});e.appendChild(i)}},r.prototype.drawMarker=function(t,e,i){if(this.shapes.length<=0)return null;var r,o=0,n=this.renderer.createGroup({id:this.element.id+"_trackball_group"}),a=f(this.element.id+"_group");if(!a)return null;for(var s=(this.enableRTL?this.elementSize.width-i/2:2*this.marginX+i/2)+(e?this.arrowPadding:0),l=0,h=this.shapes;l<h.length;l++){var d=h[l];if("None"!==d){if(r=new b(this.element.id+"_Trackball_"+o,this.palette[o],1,"#cccccc",1,null),this.markerPoint[o]){var c=0;this.header.indexOf("<br")>-1&&(c=this.header.split(/<br.*?>/g).length+o);var y=this.formattedText&&this.formattedText.length>=2?this.getTooltipTextContent(this.formattedText[1])+", "+this.getTooltipTextContent(this.formattedText[0]):"";n.appendChild(x(new F(s,this.markerPoint[o]-this.padding+(t?this.arrowPadding:c)),d,new p(i,i),"",r,"img",y))}o++}}a.appendChild(n)},r.prototype.renderTooltipElement=function(e,i){var r,o=f(this.element.id),n=new F(0,0),a=new F(0,0),s=f(this.element.id+"_svg"),h=f(this.element.id+"_group"),p=f(this.element.id+"_path"),u=!1,g=!1,m=!1,x=0,v=0;if(!(0,t.isNullOrUndefined)(h)){if(""!==this.header&&(this.elementSize.height+=this.marginY),this.isFixed){var b=this.elementSize.width+2*this.marginX,w=this.elementSize.height+2*this.marginY;r=new c(i.x,i.y,b,w)}else this.content.length>1?(r=this.sharedTooltipLocation(e,this.location.x,this.location.y),u=!0):(r=this.tooltipLocation(e,i,n,a),this.inverted?(x=(g=r.x<i.x+this.clipBounds.x)?0:this.arrowPadding,this.allowHighlight&&(r.x+=g?this.highlightPadding:-2*this.highlightPadding)):(m=!(u=r.y<i.y+this.clipBounds.y),v=u?0:this.arrowPadding));if(""!==this.header){var S=2,L=0,P=this.isWrap?this.wrappedText:this.header;if(this.isWrap&&"string"==typeof P&&(P.indexOf("<")>-1||P.indexOf(">")>-1))S=P.split("<br>").length;this.header.indexOf("<br")>-1&&(L=5*(this.header.split(/<br.*?>/g).length-1));var T=(0,t.extend)({},this.textStyle,null,!0).properties,A=l(this.isWrap?this.wrappedText:this.header,T,this.themeStyle.textStyle).height+this.marginY*S+(m?this.arrowPadding:0)+(this.isWrap?5:L),O="M "+(3*this.marginX+(g||u||m?0:this.arrowPadding))+" "+A+"L "+(r.width+(g||u||m?0:this.arrowPadding)-2*this.marginX)+" "+A,k=this.renderer.drawPath({id:this.element.id+"_header_path","stroke-width":1,fill:null,opacity:"Material3"===this.theme?.2:.8,stroke:this.themeStyle.tooltipHeaderLine,d:O});h.appendChild(k)}var C=this.border.width/2,B=new c(C+x,C+v,r.width-C,r.height-C);if(h.setAttribute("opacity","1"),!this.enableAnimation||this.isFirst||this.crosshair?this.updateDiv(o,r.x,r.y):this.animateTooltipDiv(o,r),s.setAttribute("height",(r.height+this.border.width+(this.inverted?0:this.arrowPadding)+5).toString()),s.setAttribute("width",(r.width+this.border.width+(this.inverted?this.arrowPadding:0)+5).toString()),s.setAttribute("opacity","1"),(0,t.isNullOrUndefined)(this.tooltipPlacement)||(u=this.tooltipPlacement.indexOf("Top")>-1,m=this.tooltipPlacement.indexOf("Bottom")>-1,g=this.tooltipPlacement.indexOf("Left")>-1),p.setAttribute("d",d(this.rx,this.ry,B,n,this.arrowPadding,u,m,g,a.x,a.y,this.controlName)),this.enableShadow&&"Bootstrap4"!==this.theme||this.theme.indexOf("Fluent2")>-1){var E=this.element.id+"_shadow";"Tailwind"===this.theme||"TailwindDark"===this.theme||"Bootstrap5"===this.theme||"Bootstrap5Dark"===this.theme?p.setAttribute("box-shadow","0px 1px 2px rgba(0, 0, 0, 0.06), 0px 1px 3px rgba(0, 0, 0, 0.1)"):p.setAttribute("filter",t.Browser.isIE?"":"url(#"+E+")");var N='<filter id="'+E+'" height="130%"><feGaussianBlur in="SourceAlpha" stdDeviation="3"/>';this.theme.indexOf("Fluent2")>-1?N+='<feOffset dx="-1" dy="3.6" result="offsetblur"/><feComponentTransfer><feFuncA type="linear" slope="0.2"/>':N+='<feOffset dx="3" dy="3" result="offsetblur"/><feComponentTransfer><feFuncA type="linear" slope="0.5"/>',N+='</feComponentTransfer><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge></filter>';var z=this.renderer.createDefs();z.setAttribute("id",this.element.id+"SVG_tooltip_definition"),h.appendChild(z),z.innerHTML=N}var M="Fabric"!==this.theme&&"Fluent"!==this.theme&&"Fluent2"!==this.theme||this.border.color?this.border.color:"#D2D0CE";p.setAttribute("stroke",M),(0,t.isNullOrUndefined)(this.border.dashArray)||p.setAttribute("stroke-dasharray",this.border.dashArray),this.changeText(new F(x,v),m,!g&&!u&&!m),this.revert&&(this.inverted=!this.inverted,this.revert=!1)}return new y(m,!g&&!u&&!m)},r.prototype.changeText=function(t,e,i){var r=document.getElementById(this.element.id+"_text");e&&r.setAttribute("transform","translate(0,"+this.arrowPadding+")"),i&&r.setAttribute("transform","translate("+this.arrowPadding+" 0)")},r.prototype.findFormattedText=function(){this.formattedText=[],""!==this.header.replace(/<b>/g,"").replace(/<\/b>/g,"").trim()&&(this.formattedText=this.formattedText.concat(this.header)),this.formattedText=this.formattedText.concat(this.content)},r.prototype.renderText=function(e){var i,r,o,n,a,s=0,h=0,d=0,c="properties",y=(0,t.extend)({},this.textStyle,null,!0)[c],u=f(this.element.id+"_group"),x="";this.findFormattedText(),this.isWrap=!1;var v="rtl"===document.body.getAttribute("dir")&&!this.enableRTL?"end":"start";this.leftSpace=this.areaBounds.x+this.location.x,this.rightSpace=this.areaBounds.x+this.areaBounds.width-this.leftSpace;var b=this.header.replace(/<b>/g,"").replace(/<\/b>/g,"").trim(),F=this.header.indexOf("<b>")>-1&&this.header.indexOf("</b>")>-1,S=l(this.formattedText[0],y,this.themeStyle.textStyle).width+2*this.marginX+this.arrowPadding,L=this.location.x-S<this.location.x,P=this.areaBounds.x+this.areaBounds.width<this.location.x+S,T=""!==b?this.marginY:0,A=!0,O=!0;this.markerPoint=[];var k,C=this.shapes.length>0?10:0,B=this.shapes.length>0?5:0,E="12px",N="400",z=this.themeStyle.tooltipLightLabel,M=22/parseFloat(E)*parseFloat(y.size),R=[],_=0;e&&!this.isCanvas||(m(this.element.id+"_text"),m(this.element.id+"_header_path"),m(this.element.id+"_trackball_group"),m(this.element.id+"SVG_tooltip_definition")),"Chart"===this.controlName&&parseFloat(E)<parseFloat(y.size)&&(_=parseFloat(y.size)-parseFloat(E));for(var D=new g(this.element.id+"_text",2*this.marginX,_+2*this.marginY+2*this.padding+(2===this.marginY?"RangeNavigator"===this.controlName?5:3:0),v,""),I=w(D,y,y.color||this.themeStyle.tooltipBoldLabel,u,this.themeStyle.textStyle),W=1===this.formattedText.length&&this.formattedText[0].indexOf(" : <b>")>-1,j=""!==this.header,H=j&&F?16:13,U=0,V=this.formattedText.length;U<V;U++)if(o=this.formattedText[U].replace(/<(b|strong)>/g,"<b>").replace(/<\/(b|strong)>/g,"</b>").split(/<br.*?>/g),this.isTextWrap&&this.header!==this.formattedText[U]&&-1===this.formattedText[U].indexOf("<br")&&(k=Math.round(this.leftSpace>this.rightSpace?this.leftSpace/H:this.rightSpace/H),o=this.formattedText[U].match(new RegExp(".{1,"+k+"}","g"))),0===U&&!W&&this.isTextWrap&&(this.leftSpace<S||L)&&(this.rightSpace<S||P)&&(k=Math.round(this.leftSpace>this.rightSpace?this.leftSpace/H:this.rightSpace/H),o=(""!==b?b:this.formattedText[U]).match(new RegExp(".{1,"+k+"}","g")),this.wrappedText=F?"<b>"+o.join("<br>")+"</b>":o.join("<br>"),this.isWrap=o.length>1),""!==o[0]){0===U&&""!==b||this.markerPoint.push((""!==b?this.marginY:0)+D.y+s-(0!==_?_/this.markerSize*(parseFloat(y.size)/this.markerSize):0));for(var G=0,Q=o.length;G<Q;G++){i=o[G].replace(/<b>/g,"<br><b>").replace(/<\/b>/g,"</b><br>").replace(/:/g,this.enableRTL?"<br>‎: <br>":"<br>‎:<br>").split("<br>"),this.enableRTL&&i.length>0&&o[G].match(/:/g)&&(i[0]=i[0].trim(),i.reverse()),d=0,O=!0,s+=M;for(var X=0,Y=i.length;X<Y;X++)if(n=i[X],this.enableRTL&&""!==n&&this.isRTLText(n)&&(n=n.concat("‎")),/\S/.test(n)||""===n||(n=" "),!O&&" "===n||""!==n.replace(/<b>/g,"").replace(/<\/b>/g,"").trim()){d+=" "!==n?4:0,O&&!A?(this.header.indexOf("<br")>-1&&0!==U&&(T+=this.header.split(/<br.*?>/g).length),a={x:2*this.marginX+(C+B),dy:M+(O?T:0),fill:""},T=null):a=A&&O?{x:""===b?2*this.marginX+(C+B):2*this.marginX+(this.isWrap?C+B:0)}:{},O=!1,r=this.renderer.createTSpan(a,""),I.appendChild(r),n.indexOf("<b>")>-1||F&&0===X&&0===U&&(j||this.isWrap)?(N="600",z=this.themeStyle.tooltipBoldLabel,x="font-weight:"+N,y.fontWeight=N,r.setAttribute("fill",this.textStyle.color||z)):(x="600"===N?"font-weight:"+N:"",y.fontWeight=N,r.setAttribute("fill",this.textStyle.color||z)),(n.indexOf("</b>")>-1||F&&X===Y-1&&0===U&&(j||this.isWrap))&&(N="Normal",z=this.themeStyle.tooltipLightLabel),""!==x&&(r.style.fontWeight=x.split("font-weight:")[1],r.style.color=r.getAttribute("fill")),r.style.fontFamily="inherit",r.style.fontStyle="inherit",r.style.fontSize=this.header===this.formattedText[U]?y.size:this.textStyle.size,r.style.fontWeight=this.header===this.formattedText[U]&&-1===(this.header.indexOf("<b>")||this.header.indexOf("</b>"))?this.textStyle.fontWeight||"600":n.indexOf("<b>")>-1||n.indexOf("</b>")>-1?"bold":this.textStyle.fontWeight||y.fontWeight;var q=(0,t.extend)({},this.textStyle,null,!0)[c];q.fontWeight=r.style.fontWeight,A=!1,r.textContent=n=this.getTooltipTextContent(n),d+=l(n,q,this.themeStyle.textStyle).width}d-=4,h=Math.max(h,d),R.push(d)}}this.elementSize=new p(h+(h>0?2*this.marginX:0),s),this.elementSize.width+=C+B;var Z=I.childNodes[0];if(""!==b&&Z&&!this.isWrap){y.fontWeight="600";var J=(this.elementSize.width+2*this.padding)/2-l(b,y,this.themeStyle.textStyle).width/2;Z.setAttribute("x",J.toString())}this.renderContentRTL(I,j,C+B,R)},r.prototype.renderContentRTL=function(e,i,r,o){if(this.enableRTL)for(var n=void 0,a=i?1:0,s=0;s<e.childNodes.length;s++)n=e.childNodes[s],i&&!(s>0)||(0,t.isNullOrUndefined)(n.getAttribute("x"))||(n.setAttribute("x",(this.elementSize.width-(r+o[a])).toString()),a++)},r.prototype.getTooltipTextContent=function(e){var i=e.match(/<[a-zA-Z\/](.|\n)*?>/g);if((0,t.isNullOrUndefined)(i))return e;for(var r=this.isRTLText(e),o=0;o<i.length;o++)this.isValidHTMLElement(i[o].replace("<","").replace("/","").replace(">","").trim())&&(e=e.replace(i[o],r?"‎":""));return e},r.prototype.isValidHTMLElement=function(t){return"[object HTMLUnknownElement]"!==document.createElement(t).toString()},r.prototype.isRTLText=function(t){return/[\u0590-\u07FF\u200F\u202B\u202E\uFB1D-\uFDFD\uFE70-\uFEFC]/.test(t)},r.prototype.createTemplate=function(e,i){var r={cancel:!1,name:"tooltipRender",tooltip:this};this.trigger("tooltipRender",r);var o=document.getElementById(this.element.id);this.isCanvas&&this.removeSVG();var n=o.firstElementChild;if(n&&(0,t.remove)(n),r.cancel)(0,t.remove)(f(this.element.id+"_tooltip"));else{var a=(0,t.createElement)("div",{id:this.element.id+"parent_template"}),s=void 0;if("Chart"===this.controlName&&this.shared)for(var l=0;l<this.data.length;l++){var h=this.templateFn(this.data[l],this.controlInstance,a.id,a.id+"_blazorTemplate","");0===l?s=h:h.length>1?s[l].outerHTML=h[l].outerHTML||h[l].textContent:s[s.length-1].outerHTML+=h[0].outerHTML}else s=this.templateFn(this.data,this.controlInstance,a.id,a.id+"_blazorTemplate","");for(;s&&s.length>0;)(0,t.isBlazor)()||1===s.length?(a.appendChild(s[0]),s=null):a.appendChild(s[0]);o.appendChild(a);var d=this.isCanvas?a:this.element,c=d.getBoundingClientRect();this.padding=0,this.elementSize=new p(c.width,c.height);var y=this.shared?this.sharedTooltipLocation(e,this.location.x,this.location.y):this.tooltipLocation(e,i,new F(0,0),new F(0,0));if(!this.enableAnimation||this.isFirst||this.crosshair?this.updateDiv(d,y.x,y.y):this.animateTooltipDiv(this.element,y),this.blazorTemplate){var u=function(){var t=f(g.element.id).getBoundingClientRect();g.elementSize=new p(t.width,t.height);var r=g.tooltipLocation(e,i,new F(0,0),new F(0,0));g.updateDiv(f(g.element.id),r.x,r.y)},g=this;u.bind(g,e,i),(0,t.updateBlazorTemplate)(this.element.id+"parent_template_blazorTemplate",this.blazorTemplate.name,this.blazorTemplate.parent,void 0,u)}}},r.prototype.sharedTooltipLocation=function(t,e,i){var r=this.elementSize.width+2*this.marginX,o=this.elementSize.height+2*this.marginY,n=new c(e+2*this.padding,i-o-this.padding,r,o);return n.y<t.y&&(n.y+=n.height+2*this.padding),n.y+n.height>t.y+t.height&&(n.y=Math.max(t.y+t.height-(n.height+2*this.padding),t.y)),n.x+n.width>t.x+t.width&&(n.x=t.x+this.location.x-(n.width+4*this.padding)),n.x<t.x&&(n.x=t.x),n},r.prototype.getCurrentPosition=function(t,e,i,r){var o=this.tooltipPlacement,n=this.clipBounds.x,a=this.clipBounds.y,s=this.offset,l=this.elementSize.width+2*this.marginX,h=this.elementSize.height+2*this.marginY,d=new F(e.x,e.y);return"Top"===o||"Bottom"===o?(d=new F(d.x+n-this.elementSize.width/2-this.padding,d.y+a-this.elementSize.height-2*this.padding-this.arrowPadding-s),i.x=r.x=l/2,"Bottom"===o&&(d.y=e.y+a+s),t.x+t.width<d.x+l?(d.x=t.width>l?t.x+t.width-l+6:t.x,i.x=r.x=t.width>l?t.x+e.x-d.x:e.x):t.x>d.x&&(d.x=t.x,i.x=r.x=e.x)):(d=new F(d.x+n+s,d.y+a-this.elementSize.height/2-this.padding),i.y=r.y=h/2,"Left"===o&&(d.x=e.x+n-s-(l+this.arrowPadding)),t.y+t.height<d.y+h?(d.y=t.height>h?t.y+t.height-h+6:t.y,i.y=r.y=t.height>h?t.y+e.y-d.y:e.y):t.y>d.y&&(d.y=t.y,i.y=r.y=e.y)),new c(d.x,d.y,l,h)},r.prototype.tooltipLocation=function(e,i,r,o){if(!(0,t.isNullOrUndefined)(this.tooltipPlacement))return this.getCurrentPosition(e,i,r,o);var n=new F(i.x,i.y),a=this.elementSize.width+2*this.marginX,s=this.elementSize.height+2*this.marginY,l=this.offset,d=this.clipBounds.x,p=this.clipBounds.y,y=e.x,u=e.y;return this.outOfBounds=!1,this.inverted?(n=new F(n.x+d+l,n.y+p-this.elementSize.height/2-this.padding),r.y=o.y=s/2,(n.x+a+this.arrowPadding>y+e.width||this.isNegative)&&(n.x=(i.x>e.width+e.x?e.width:i.x)+d-l-(a+this.arrowPadding)),n.x<y&&(n.x=(i.x<0?0:i.x)+d+l),n.x+a+this.arrowPadding>y+e.width&&(n.x=(i.x>e.width+e.x?e.width:i.x)+d-l-(a+this.arrowPadding)),n.y<=u&&(r.y-=u-n.y,o.y-=u-n.y,n.y=u),n.y+s>=u+e.height&&(r.y+=n.y+s-(u+e.height),o.y+=n.y+s-(u+e.height),n.y-=n.y+s-(u+e.height)),r.y+this.arrowPadding>s-this.ry&&(r.y=s-this.ry-this.arrowPadding,o.y=s),r.y-this.arrowPadding<this.ry&&(r.y=o.y=this.ry+this.arrowPadding),"Chart"===this.controlName&&((n.y+r.y<this.areaMargin+this.arrowPadding||e.y+e.height-(n.y+r.y)<this.areaMargin+this.arrowPadding)&&(this.outOfBounds=!0),h(n.x,n.y,e)&&!this.outOfBounds||(this.inverted=!this.inverted,n=new F(i.x+d-this.padding-this.elementSize.width/2,i.y+p-this.elementSize.height-2*this.padding-l-this.arrowPadding),this.revert=!0,o.x=r.x=a/2,o.y=r.y=0,(n.y<u||this.isNegative)&&(n.y=(i.y<0?0:i.y)+l+p),n.y+this.arrowPadding+s>u+e.height&&(n.y=Math.min(i.y,u+e.height)+p-this.elementSize.height-2*this.padding-l-this.arrowPadding),o.x=a/2,n.x<y&&(o.x-=y-n.x,r.x-=y-n.x,n.x=y),n.x+a>e.width+y&&(r.x+=n.x+a-(e.width+y),o.x+=n.x+a-(e.width+y),n.x-=n.x+a-(e.width+y)),this.arrowPadding+r.x>a-this.rx&&(o.x=a-this.rx-this.arrowPadding,r.x=a-this.rx-this.arrowPadding),r.x-this.arrowPadding<this.rx&&(r.x=o.x=this.rx+this.arrowPadding)))):(n=new F(n.x+d-this.elementSize.width/2-this.padding,n.y+p-this.elementSize.height-2*(this.allowHighlight?this.highlightPadding:this.padding)-this.arrowPadding-l),r.x=o.x=a/2,(n.y<u||this.isNegative)&&"Progressbar"!==this.controlName&&(n.y=(i.y<0?0:i.y)+p+l),n.y+s+this.arrowPadding>u+e.height&&(n.y=Math.min(i.y,u+e.height)+p-this.elementSize.height-2*this.padding-this.arrowPadding-l),(n.x+a>y+e.width&&n.y<u||this.isNegative)&&"Progressbar"!==this.controlName&&(n.y=(i.y<0?0:i.y)+p+l),o.x=a/2,n.x<y&&"Progressbar"!==this.controlName&&(r.x-=y-n.x,o.x-=y-n.x,n.x=y),n.x+a>y+e.width&&"Progressbar"!==this.controlName&&(r.x+=n.x+a-(y+e.width),o.x+=n.x+a-(y+e.width),n.x-=n.x+a-(y+e.width)),n.x<y&&"Progressbar"!==this.controlName&&(r.x-=y-n.x,o.x-=y-n.x,n.x=y),r.x+this.arrowPadding>a-this.rx&&(r.x=a-this.rx-this.arrowPadding,o.x=a-this.rx-this.arrowPadding),r.x-this.arrowPadding<this.rx&&(r.x=o.x=this.rx+this.arrowPadding),"Chart"===this.controlName&&((e.x+e.width-(n.x+r.x)<this.areaMargin+this.arrowPadding||n.x+r.x<this.areaMargin+this.arrowPadding)&&(this.outOfBounds=!0),this.template&&n.y<0&&(n.y=i.y+p+l),h(n.x,n.y,e)&&!this.outOfBounds||(this.inverted=!this.inverted,this.revert=!0,n=new F(i.x+l+d,i.y+p-this.elementSize.height/2-this.padding),o.x=r.x=0,o.y=r.y=s/2,(n.x+this.arrowPadding+a>y+e.width||this.isNegative)&&(n.x=(i.x>y+e.width?e.width:i.x)+d-l-(this.arrowPadding+a)),n.x<y&&(n.x=(i.x<0?0:i.x)+l+d),n.y<=u&&(o.y-=u-n.y,r.y-=u-n.y,n.y=u),n.y+s>=e.height+u&&(r.y+=n.y+s-(e.height+u),o.y+=n.y+s-(e.height+u),n.y-=n.y+s-(e.height+u)),this.arrowPadding+r.y>s-this.ry&&(r.y=s-this.arrowPadding-this.ry,o.y=s),r.y-this.arrowPadding<this.ry&&(r.y=this.arrowPadding+this.ry,o.y=0)))),new c(n.x,n.y,a,s)},r.prototype.animateTooltipDiv=function(e,i){var r,o=this,n=parseFloat(e.style.left),a=parseFloat(e.style.top);new t.Animation({}).animate(e,{duration:0===this.duration&&"Enable"===t.animationMode?300:this.duration,progress:function(s){r=s.timeStamp/s.duration,e.style.animation=null,"Chart"===o.controlName&&o.shared&&!o.enableRTL?(e.style.transition=(0,t.isBlazor)()?"transform 0.3s":"transform 0.1s",e.style.transform="translate("+(n+r*(i.x-n))+"px,"+(a+r*(i.y-a))+"px)",e.style.left="",e.style.top=""):(e.style.left=n+r*(i.x-n)+"px",e.style.top=a+r*(i.y-a)+"px",e.style.transform="RangeNavigator"===o.controlName?e.style.transform:"")},end:function(t){o.updateDiv(e,i.x,i.y),o.trigger("animationComplete",{tooltip:o})}})},r.prototype.updateDiv=function(t,e,i){"Chart"!==this.controlName||!this.shared||this.crosshair||this.enableRTL?(t.style.left=e+"px",t.style.top=i+"px",t.style.transform="RangeNavigator"===this.controlName?t.style.transform:""):(t.style.transform="translate("+e+"px,"+i+"px)",t.style.left="",t.style.top="")},r.prototype.updateTemplateFn=function(){if(this.template)try{"function"!=typeof this.template&&document.querySelectorAll(this.template).length?this.templateFn=(0,t.compile)(document.querySelector(this.template).innerHTML.trim()):this.templateFn=(0,t.compile)(this.template)}catch(e){this.templateFn=(0,t.compile)(this.template)}},r.prototype.fadeOut=function(){var e=this,i=this.isCanvas&&!this.template?f(this.element.id+"_svg"):f(this.element.id),r=f(this.element.id);if(i){var o=i.firstChild;if(o.nodeType!==Node.ELEMENT_NODE&&(o=i.firstElementChild),this.isCanvas&&!this.template&&(o=document.getElementById(this.element.id+"_group")?document.getElementById(this.element.id+"_group"):o),!o)return null;var n=parseFloat(o.getAttribute("opacity"));n=(0,t.isNullOrUndefined)(n)?1:n,new t.Animation({}).animate(o,{duration:200,progress:function(t){e.progressAnimation(o,n,t.timeStamp/t.duration)},end:function(){e.fadeOuted=!0,e.endAnimation(o),r.style.transition=""}})}},r.prototype.progressAnimation=function(t,e,i){t.style.animation="",t.setAttribute("opacity",(e-i).toString())},r.prototype.endAnimation=function(t){t.setAttribute("opacity","0"),this.template&&(t.style.display="none"),this.trigger("animationComplete",{tooltip:this})},r.prototype.getPersistData=function(){return this.addOnPersist([])},r.prototype.getModuleName=function(){return"tooltip"},r.prototype.destroy=function(){i.prototype.destroy.call(this),this.element.classList.remove("e-tooltip")},r.prototype.onPropertyChanged=function(e,i){this.blazorTemplate&&(0,t.resetBlazorTemplate)(this.element.id+"parent_template_blazorTemplate"),this.isFirst=!1,this.render()},L([(0,t.Property)(!1)],r.prototype,"enable",void 0),L([(0,t.Property)(!1)],r.prototype,"shared",void 0),L([(0,t.Property)(!1)],r.prototype,"crosshair",void 0),L([(0,t.Property)(!1)],r.prototype,"enableShadow",void 0),L([(0,t.Property)(null)],r.prototype,"fill",void 0),L([(0,t.Property)("")],r.prototype,"header",void 0),L([(0,t.Property)(.75)],r.prototype,"opacity",void 0),L([(0,t.Complex)({size:"12px",fontWeight:null,color:null,fontStyle:"Normal",fontFamily:null},P)],r.prototype,"textStyle",void 0),L([(0,t.Property)(null)],r.prototype,"template",void 0),L([(0,t.Property)(!0)],r.prototype,"enableAnimation",void 0),L([(0,t.Property)(300)],r.prototype,"duration",void 0),L([(0,t.Property)(!1)],r.prototype,"inverted",void 0),L([(0,t.Property)(!1)],r.prototype,"isNegative",void 0),L([(0,t.Complex)({color:null,width:null},T)],r.prototype,"border",void 0),L([(0,t.Property)([])],r.prototype,"content",void 0),L([(0,t.Property)(10)],r.prototype,"markerSize",void 0),L([(0,t.Complex)({x:0,y:0},O)],r.prototype,"clipBounds",void 0),L([(0,t.Property)([])],r.prototype,"palette",void 0),L([(0,t.Property)([])],r.prototype,"shapes",void 0),L([(0,t.Complex)({x:0,y:0},O)],r.prototype,"location",void 0),L([(0,t.Property)(0)],r.prototype,"offset",void 0),L([(0,t.Property)(4)],r.prototype,"rx",void 0),L([(0,t.Property)(4)],r.prototype,"ry",void 0),L([(0,t.Property)(5)],r.prototype,"marginX",void 0),L([(0,t.Property)(5)],r.prototype,"marginY",void 0),L([(0,t.Property)(7)],r.prototype,"arrowPadding",void 0),L([(0,t.Property)(null)],r.prototype,"data",void 0),L([(0,t.Property)("Material")],r.prototype,"theme",void 0),L([(0,t.Complex)({x:0,y:0,width:0,height:0},A)],r.prototype,"areaBounds",void 0),L([(0,t.Property)(null)],r.prototype,"availableSize",void 0),L([(0,t.Property)()],r.prototype,"blazorTemplate",void 0),L([(0,t.Property)(!1)],r.prototype,"isCanvas",void 0),L([(0,t.Property)(!1)],r.prototype,"isTextWrap",void 0),L([(0,t.Property)(!1)],r.prototype,"isFixed",void 0),L([(0,t.Property)(null)],r.prototype,"tooltipPlacement",void 0),L([(0,t.Property)(null)],r.prototype,"controlInstance",void 0),L([(0,t.Property)("")],r.prototype,"controlName",void 0),L([(0,t.Event)()],r.prototype,"tooltipRender",void 0),L([(0,t.Event)()],r.prototype,"loaded",void 0),L([(0,t.Event)()],r.prototype,"animationComplete",void 0),L([(0,t.Property)(!1)],r.prototype,"enableRTL",void 0),L([(0,t.Property)(!1)],r.prototype,"allowHighlight",void 0),r=L([t.NotifyPropertyChanges],r)}(t.Component)})(),o})()));
/*!
* filename: ej2-svg-base.umd.min.js
* version : 26.2.5
* version : 26.2.8
* Copyright Syncfusion Inc. 2001 - 2023. 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=t||self).ej={},t.ej2Base)}(this,function(t,U){"use strict";e.prototype.getOptionValue=function(t,e){return t[e]},e.prototype.createSvg=function(t){return U.isNullOrUndefined(t.id)&&(t.id=this.rootId+"_svg"),this.svgObj=document.getElementById(t.id),U.isNullOrUndefined(document.getElementById(t.id))&&(this.svgObj=document.createElementNS(this.svgLink,"svg")),this.svgObj=this.setElementAttributes(t,this.svgObj),this.setSVGSize(t.width,t.height),this.svgObj},e.prototype.setSVGSize=function(t,e){var i=document.getElementById(this.rootId),i=U.isNullOrUndefined(i)?null:i.getBoundingClientRect();U.isNullOrUndefined(this.width)||this.width<=0?this.svgObj.setAttribute("width",(t||i.width).toString()):this.svgObj.setAttribute("width",this.width.toString()),U.isNullOrUndefined(this.height)||this.height<=0?this.svgObj.setAttribute("height",e?e.toString():"450"):this.svgObj.setAttribute("height",this.height.toString())},e.prototype.drawPath=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"path")),e=this.setElementAttributes(t,e)},e.prototype.drawLine=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"line")),e=this.setElementAttributes(t,e)},e.prototype.drawRectangle=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"rect")),e=this.setElementAttributes(t,e)},e.prototype.drawCircle=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"circle")),e=this.setElementAttributes(t,e)},e.prototype.drawPolyline=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"polyline")),e=this.setElementAttributes(t,e)},e.prototype.drawEllipse=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"ellipse")),e=this.setElementAttributes(t,e)},e.prototype.drawPolygon=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"polygon")),e=this.setElementAttributes(t,e)},e.prototype.drawImage=function(t){var e=document.createElementNS(this.svgLink,"image");return e.setAttributeNS(null,"height",t.height.toString()),e.setAttributeNS(null,"width",t.width.toString()),e.setAttributeNS("http://www.w3.org/1999/xlink","href",t.href),e.setAttributeNS(null,"x",t.x.toString()),e.setAttributeNS(null,"y",t.y.toString()),e.setAttributeNS(null,"id",t.id),e.setAttributeNS(null,"visibility",t.visibility),U.isNullOrUndefined(this.getOptionValue(t,"clip-path"))||e.setAttributeNS(null,"clip-path",this.getOptionValue(t,"clip-path")),U.isNullOrUndefined(t.preserveAspectRatio)||e.setAttributeNS(null,"preserveAspectRatio",t.preserveAspectRatio),e},e.prototype.createText=function(t,e){var i=document.createElementNS(this.svgLink,"text"),i=this.setElementAttributes(t,i);return U.isNullOrUndefined(e)||(i.textContent=e),i},e.prototype.createTSpan=function(t,e){var i=document.createElementNS(this.svgLink,"tspan"),i=this.setElementAttributes(t,i);return U.isNullOrUndefined(e)||(i.textContent=e),i},e.prototype.createTitle=function(t){var e=document.createElementNS(this.svgLink,"title");return e.textContent=t,e},e.prototype.createDefs=function(){return document.createElementNS(this.svgLink,"defs")},e.prototype.createClipPath=function(t){var e=document.createElementNS(this.svgLink,"clipPath");return this.setElementAttributes(t,e)},e.prototype.createForeignObject=function(t){var e=document.createElementNS(this.svgLink,"foreignObject");return this.setElementAttributes(t,e)},e.prototype.createGroup=function(t){var e=document.createElementNS(this.svgLink,"g");return this.setElementAttributes(t,e)},e.prototype.createPattern=function(t,e){e=document.createElementNS(this.svgLink,e);return this.setElementAttributes(t,e)},e.prototype.createRadialGradient=function(t,e,i){i=U.isNullOrUndefined(t[0].colorStop)?t[0].color.toString():(i={id:this.rootId+"_"+e+"radialGradient",cx:i.cx+"%",cy:i.cy+"%",r:i.r+"%",fx:i.fx+"%",fy:i.fy+"%"},this.drawGradient("radialGradient",i,t),"url(#"+this.rootId+"_"+e+"radialGradient)");return i},e.prototype.createLinearGradient=function(t,e,i){i=U.isNullOrUndefined(t[0].colorStop)?t[0].color.toString():(i={id:this.rootId+"_"+e+"linearGradient",x1:i.x1+"%",y1:i.y1+"%",x2:i.x2+"%",y2:i.y2+"%"},this.drawGradient("linearGradient",i,t),"url(#"+this.rootId+"_"+e+"linearGradient)");return i},e.prototype.drawGradient=function(t,e,i){for(var r=this.createDefs(),o=document.createElementNS(this.svgLink,t),o=this.setElementAttributes(e,o),n=0;n<i.length;n++){var a=document.createElementNS(this.svgLink,"stop");a.setAttribute("offset",i[n].colorStop),a.setAttribute("stop-color",i[n].color),a.setAttribute("stop-opacity",i[n].opacity||"1"),U.isNullOrUndefined(i[n].style)||(a.style.cssText=i[n].style),o.appendChild(a)}return r.appendChild(o),r},e.prototype.drawClipPath=function(t){var e=this.createDefs(),i=this.createClipPath({id:t.id}),t=(t.id=t.id+"_Rect",this.drawRectangle(t));return i.appendChild(t),e.appendChild(i),e},e.prototype.drawCircularClipPath=function(t){var e=this.createDefs(),i=this.createClipPath({id:t.id}),t=(t.id=t.id+"_Circle",this.drawCircle(t));return i.appendChild(t),e.appendChild(i),e},e.prototype.setElementAttributes=function(t,e){for(var i=Object.keys(t),r=0;r<i.length;r++)"style"===i[r]?e.style.cssText=t[i[r]]:e.setAttribute(i[r],t[i[r]]);return e},e.prototype.createCanvas=function(){return null};var h=e;function e(t){this.svgLink="http://www.w3.org/2000/svg",this.rootId=t}i.prototype.getOptionValue=function(t,e){return t[e]},i.prototype.createCanvas=function(t){var e=document.createElement("canvas");return e.setAttribute("id",this.rootId+"_canvas"),this.ctx=e.getContext("2d"),this.canvasObj=e,this.setCanvasSize(t.width,t.height),this.canvasObj},i.prototype.setCanvasSize=function(t,e){var i=document.getElementById(this.rootId),i=U.isNullOrUndefined(i)?null:i.getBoundingClientRect();U.isNullOrUndefined(this.width)?this.canvasObj.setAttribute("width",(t||i.width).toString()):this.canvasObj.setAttribute("width",this.width.toString()),U.isNullOrUndefined(this.height)?this.canvasObj.setAttribute("height",e?e.toString():"450"):this.canvasObj.setAttribute("height",this.height.toString())},i.prototype.setAttributes=function(t){this.ctx.lineWidth=this.getOptionValue(t,"stroke-width");var e=this.getOptionValue(t,"stroke-dasharray");U.isNullOrUndefined(e)||(e=e.split(","),this.ctx.setLineDash([parseInt(e[0],10),parseInt(e[1],10)])),this.ctx.strokeStyle=this.getOptionValue(t,"stroke")},i.prototype.drawLine=function(t){this.ctx.save(),this.ctx.beginPath(),this.ctx.lineWidth=this.getOptionValue(t,"stroke-width"),this.ctx.strokeStyle=t.stroke,this.ctx.moveTo(t.x1,t.y1),this.ctx.lineTo(t.x2,t.y2),this.ctx.stroke(),this.ctx.restore()},i.prototype.drawRectangle=function(t,e){var i=this.ctx,r=t.rx;return this.ctx.save(),this.ctx.beginPath(),e&&this.ctx.translate(e[0],e[1]),this.ctx.globalAlpha=this.getOptionValue(t,"opacity"),this.setAttributes(t),this.ctx.rect(t.x,t.y,t.width,t.height),null!==r&&0<=r?this.drawCornerRadius(t):("none"===t.fill&&(t.fill="transparent"),this.ctx.fillStyle=t.fill,this.ctx.fillRect(t.x,t.y,t.width,t.height),this.ctx.stroke()),this.ctx.restore(),this.ctx=i,this.canvasObj},i.prototype.drawCornerRadius=function(t){var e=t.rx,i=t.x,r=t.y,o=t.width,n=t.height;"none"===t.fill&&(t.fill="transparent"),this.ctx.fillStyle=t.fill,n<2*(e=o<2*e?o/2:e)&&(e=n/2),this.ctx.beginPath(),this.ctx.moveTo(i+o-e,r),this.ctx.arcTo(i+o,r,i+o,r+n,e),this.ctx.arcTo(i+o,r+n,i,r+n,e),this.ctx.arcTo(i,r+n,i,r,e),this.ctx.arcTo(i,r,i+o,r,e),this.ctx.closePath(),this.ctx.fill(),this.ctx.stroke()},i.prototype.drawPath=function(t,e){var i=t.d.split(" "),r=this.getOptionValue(t,"stroke-width"),o=this.ctx,n=!0;this.ctx.save(),this.ctx.beginPath(),e&&this.ctx.translate(e[0],e[1]),this.ctx.globalAlpha=t.opacity||this.getOptionValue(t,"fill-opacity"),this.setAttributes(t);for(var a=0;a<i.length;a+=3){var s=parseFloat(i[a+1]),h=parseFloat(i[a+2]);switch(i[a]){case"M":t.innerR||t.cx||this.ctx.moveTo(s,h);break;case"L":t.innerR||this.ctx.lineTo(s,h);break;case"Q":var l=parseFloat(i[a+3]),d=parseFloat(i[a+4]);this.ctx.quadraticCurveTo(s,h,l,d),a+=2;break;case"C":var l=parseFloat(i[a+3]),d=parseFloat(i[a+4]),p=parseFloat(i[a+5]),c=parseFloat(i[a+6]);this.ctx.bezierCurveTo(s,h,l,d,p,c),a+=4;break;case"A":t.innerR?n&&(this.ctx.arc(t.x,t.y,t.radius,t.start,t.end,t.counterClockWise),this.ctx.arc(t.x,t.y,t.innerR,t.end,t.start,!t.counterClockWise),n=!1):t.cx?this.ctx.arc(t.cx,t.cy,t.radius,0,2*Math.PI,t.counterClockWise):(this.ctx.moveTo(t.x,t.y),this.ctx.arc(t.x,t.y,t.radius,t.start,t.end,t.counterClockWise),this.ctx.lineTo(t.x,t.y)),a+=5;break;case"z":case"Z":this.ctx.closePath(),a-=2}}return"none"!==t.fill&&void 0!==t.fill&&(this.ctx.fillStyle=t.fill,this.ctx.fill()),0<r&&this.ctx.stroke(),this.ctx.restore(),this.ctx=o,this.canvasObj},i.prototype.createText=function(t,e,i,r,o,n){var a=this.getOptionValue(t,"font-weight"),s=(U.isNullOrUndefined(a)||"regular"!==a.toLowerCase()||(a="normal"),this.getOptionValue(t,"font-size")),h=this.getOptionValue(t,"font-family"),a=this.getOptionValue(t,"font-style").toLowerCase()+" "+a+" "+s+" "+h,s=this.getOptionValue(t,"text-anchor"),h=void 0!==t.opacity?t.opacity:1;return"middle"===s&&(s="center"),this.ctx.save(),this.ctx.fillStyle=t.fill,this.ctx.font=a,this.ctx.textAlign=s,this.ctx.globalAlpha=h,t.baseline&&(this.ctx.textBaseline=t.baseline),n||(this.ctx.translate(t.x+0+(i||0),t.y+(r||0)),this.ctx.rotate(t.labelRotation*Math.PI/180)),this.ctx.fillText(e,n?t.x:0,n?o:0),this.ctx.restore(),this.canvasObj},i.prototype.drawCircle=function(t,e){var i=this.ctx;return this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(t.cx,t.cy,t.r,0,2*Math.PI),this.ctx.fillStyle=t.fill,this.ctx.globalAlpha=t.opacity,this.ctx.fill(),e&&this.ctx.translate(e[0],e[1]),this.setAttributes(t),this.ctx.stroke(),this.ctx.restore(),this.ctx=i,this.canvasObj},i.prototype.drawPolyline=function(t){this.ctx.save(),this.ctx.beginPath();for(var e=t.points.split(" "),i=0;i<e.length-1;i++){var r=e[i].split(","),o=parseFloat(r[0]),r=parseFloat(r[1]);0===i?this.ctx.moveTo(o,r):this.ctx.lineTo(o,r)}this.ctx.lineWidth=this.getOptionValue(t,"stroke-width"),this.ctx.strokeStyle=t.stroke,this.ctx.stroke(),this.ctx.restore()},i.prototype.drawEllipse=function(t,e){var i=this.ctx,r=Math.max(t.rx,t.ry),o=t.rx/r,n=t.ry/r;this.ctx.save(),this.ctx.beginPath(),this.ctx.translate(t.cx,t.cy),e&&this.ctx.translate(e[0],e[1]),this.ctx.save(),this.ctx.scale(o,n),this.ctx.arc(0,0,r,0,2*Math.PI,!1),this.ctx.fillStyle=t.fill,this.ctx.fill(),this.ctx.restore(),this.ctx.lineWidth=this.getOptionValue(t,"stroke-width"),this.ctx.strokeStyle=t.stroke,this.ctx.stroke(),this.ctx.restore(),this.ctx=i},i.prototype.drawImage=function(t){this.ctx.save();var e=new Image;U.isNullOrUndefined(t.href)||(e.src=t.href,this.ctx.drawImage(e,t.x,t.y,t.width,t.height)),this.ctx.restore()},i.prototype.createLinearGradient=function(t){var e;return U.isNullOrUndefined(t[0].colorStop)||(e=this.ctx.createLinearGradient(0,0,0,this.canvasObj.height)),this.setGradientValues(t,e)},i.prototype.createRadialGradient=function(t){var e;return U.isNullOrUndefined(t[0].colorStop)||(e=this.ctx.createRadialGradient(0,0,0,0,0,this.canvasObj.height)),this.setGradientValues(t,e)},i.prototype.setGradientValues=function(t,e){var i;if(U.isNullOrUndefined(t[0].colorStop))i=t[0].color.toString();else{for(var r=0;r<=t.length-1;r++){var o=t[r].color,n=t[r].colorStop.slice(0,-1),n=parseInt(n,10)/100;e.addColorStop(n,o)}i=e.toString()}return i},i.prototype.setElementAttributes=function(e,t){for(var i=Object.keys(e),r=Object.keys(e).map(function(t){return e[t]}),o=0;o<i.length;o++)t.setAttribute(i[o],r[o]);return null},i.prototype.updateCanvasAttributes=function(t){this.setElementAttributes(t,this.canvasObj);var e,i=this.ctx;U.isNullOrUndefined(this.dataUrl)||((e=new Image).onload=function(){i.drawImage(e,0,0)},e.src=this.dataUrl)},i.prototype.clearRect=function(t){this.ctx.restore(),this.ctx.clearRect(t.x,t.y,t.width,t.height)},i.prototype.createGroup=function(){return null},i.prototype.drawClipPath=function(){return null},i.prototype.drawCircularClipPath=function(){return null},i.prototype.canvasClip=function(t){this.ctx.save(),this.ctx.fillStyle="transparent",this.ctx.rect(t.x,t.y,t.width,t.height),this.ctx.fill(),this.ctx.clip()},i.prototype.canvasRestore=function(){this.ctx.restore()},i.prototype.drawPolygon=function(){return null},i.prototype.createDefs=function(){return null},i.prototype.createClipPath=function(){return null},i.prototype.createSvg=function(){return null};var C=i;function i(t){this.rootId=t}function r(t){var e;switch(t){case"Highcontrast":case"HighContrast":e={tooltipFill:"#ffffff",tooltipBoldLabel:"#000000",tooltipLightLabel:"#000000",tooltipHeaderLine:"#969696",textStyle:{fontFamily:"Segoe UI",color:"#000000",fontWeight:null}};break;case"MaterialDark":case"FabricDark":case"BootstrapDark":e={tooltipFill:"MaterialDark"===t?"#F4F4F4":"FabricDark"===t?"#A19F9D":"#F0F0F0",tooltipBoldLabel:"MaterialDark"===t?"rgba(18, 18, 18, 1)":"FabricDark"===t?"#DADADA":"#1A1A1A",tooltipLightLabel:"MaterialDark"===t?"rgba(18, 18, 18, 1)":"FabricDark"===t?"#DADADA":"#1A1A1A",tooltipHeaderLine:"#9A9A9A",textStyle:"MaterialDark"===t?{fontFamily:"Roboto",color:"rgba(18, 18, 18, 1)",fontWeight:null}:"FabricDark"===t?{fontFamily:"Segoe UI",color:"#DADADA",fontWeight:null}:{fontFamily:"Helvetica",color:"#1A1A1A",fontWeight:null}};break;case"Bootstrap4":e={tooltipFill:"#212529",tooltipBoldLabel:"#F9FAFB",tooltipLightLabel:"#F9FAFB",tooltipHeaderLine:"rgba(255, 255, 255, 0.2)",textStyle:{fontFamily:"Helvetica",color:"#F9FAFB",fontWeight:null}};break;case"Tailwind":e={tooltipFill:"#111827",tooltipBoldLabel:"#F9FAFB",tooltipLightLabel:"#F9FAFB",tooltipHeaderLine:"#6B7280",textStyle:{fontFamily:"Inter",color:"#F9FAFB",fontWeight:null}};break;case"TailwindDark":e={tooltipFill:"#E9ECEF",tooltipBoldLabel:"#1F2937",tooltipLightLabel:"#1F2937",tooltipHeaderLine:"#9CA3AF",textStyle:{fontFamily:"Inter",color:"#1F2937",fontWeight:null}};break;case"Bootstrap5":e={tooltipFill:"#212529",tooltipBoldLabel:"#F9FAFB",tooltipLightLabel:"#F9FAFB",tooltipHeaderLine:"#9CA3AF",textStyle:{fontFamily:"Helvetica",color:"#F9FAFB",fontWeight:null}};break;case"Bootstrap5Dark":e={tooltipFill:"#E9ECEF",tooltipBoldLabel:"#212529",tooltipLightLabel:"#212529",tooltipHeaderLine:"#ADB5BD",textStyle:{fontFamily:"Helvetica",color:"#212529",fontWeight:null}};break;case"Fluent":e={tooltipFill:"#FFFFFF",tooltipBoldLabel:"#323130",tooltipLightLabel:"#323130",tooltipHeaderLine:"#D2D0CE",textStyle:{fontFamily:"Segoe UI",color:"#323130",fontWeight:null}};break;case"FluentDark":e={tooltipFill:"#323130",tooltipBoldLabel:"#F3F2F2",tooltipLightLabel:"#F3F2F1",tooltipHeaderLine:"#3B3A39",textStyle:{fontFamily:"Segoe UI",color:"#F3F2F1",fontWeight:null}};break;case"Fluent2":e={tooltipFill:"#FFFFFF",tooltipBoldLabel:"#242424",tooltipLightLabel:"#242424",tooltipHeaderLine:"#D2D0CE",textStyle:{fontFamily:"Segoe UI",color:"#242424",fontWeight:null}};break;case"Fluent2Dark":e={tooltipFill:"#292929",tooltipBoldLabel:"#FFFFFF",tooltipLightLabel:"#FFFFFF",tooltipHeaderLine:"#3B3A39",textStyle:{fontFamily:"Segoe UI",color:"#FFFFFF",fontWeight:null}};break;case"Material3":e={tooltipFill:"#313033",tooltipBoldLabel:"#F4EFF4",tooltipLightLabel:"#F4EFF4",tooltipHeaderLine:"#F4EFF4",textStyle:{fontFamily:"Roboto",color:"#F4EFF4",fontWeight:null}};break;case"Material3Dark":e={tooltipFill:"#E6E1E5",tooltipBoldLabel:"#313033",tooltipLightLabel:"#313033",tooltipHeaderLine:"#313033",textStyle:{fontFamily:"Roboto",color:"#313033",fontWeight:null}};break;default:e={tooltipFill:"Material"===t?"#000816":"Fabric"===t?"#FFFFFF":"#212529",tooltipBoldLabel:"Material"===t?"rgba(249, 250, 251, 1)":"Fabric"===t?"#333333":"#F9FAFB",tooltipLightLabel:"Material"===t?"rgba(249, 250, 251, 1)":"Fabric"===t?"#333333":"#F9FAFB",tooltipHeaderLine:"Fabric"===t?"#D2D0CE":"#ffffff",textStyle:"Material"===t?{fontFamily:"Roboto",color:"rgba(249, 250, 251, 1)",fontWeight:null}:"Fabric"===t?{fontFamily:"Segoe UI",color:"#333333",fontWeight:null}:{fontFamily:"Helvetica",color:"#F9FAFB",fontWeight:null}}}return e}o=function(t,e){return(o=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)};var o,n=function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)};function V(t,e,i){var r=t||"",o=document.getElementById("chartmeasuretext");if(null===o&&(o=U.createElement("text",{id:"chartmeasuretext"}),document.body.appendChild(o)),"string"==typeof t&&(-1<t.indexOf("<")||-1<t.indexOf(">"))){for(var n=t.split(" "),a=0;a<n.length;a++)-1===n[a].indexOf("<br/>")&&(n[a]=n[a].replace(/[<>]/g,"&"));t=n.join(" ")}o.innerHTML=-1<r.indexOf("<br>")||-1<r.indexOf("<br/>")?r:t,o.style.position="fixed",o.style.fontSize=e.size||i.size,o.style.fontStyle=e.fontStyle||i.fontStyle,o.style.fontFamily=e.fontFamily||i.fontFamily,o.style.visibility="hidden",o.style.top="-100",o.style.left="0",o.style.whiteSpace="nowrap",o.style.lineHeight="normal";var r=o.clientWidth,t=o.clientHeight,s=o.style.fontWeight;return o.style.fontWeight=e.fontWeight||i.fontWeight,new G("bold"===o.style.fontWeight&&"normal"===s?Math.max(r,o.clientWidth):o.clientWidth,"bold"===o.style.fontWeight&&"normal"===s?Math.max(t,o.clientHeight):o.clientHeight)}function c(t,e,i,r,o){return void 0===o&&(o=0),t>=i.x-(r=void 0===r?0:r)&&t<=i.x+i.width+r&&e>=i.y-o&&e<=i.y+i.height+o}function g(t,e,i,r,o,n,a,s,h,l,d){void 0===d&&(d="");var p="",c=i.x,y=i.y,u=i.x+i.width,i=i.y+i.height;return p=n?(p=(p=p.concat("M "+c+" "+(y+e)+" Q "+c+" "+y+" "+(c+t)+" "+y+" L "+(u-t)+" "+y+" Q "+u+" "+y+" "+u+" "+(y+e))).concat(" L "+u+" "+(i-e)+" Q "+u+" "+i+" "+(u-t)+" "+i),0!==o&&(p="RangeNavigator"===d?r.x-o>u/2?(p=p.concat(" L "+(r.x+o)+" "+i)).concat(" L "+(h+o)+" "+(i+o)+" L "+r.x+" "+i):(p=p.concat(" L "+r.x+" "+i)).concat(" L "+(h-o)+" "+(i+o)+" L "+(r.x-o)+" "+i):(p=p.concat(" L "+(r.x+o)+" "+i)).concat(" L "+h+" "+(i+o)+" L "+(r.x-o)+" "+i)),r.x-o>c||0===o?p.concat(" L "+(c+t)+" "+i+" Q "+c+" "+i+" "+c+" "+(i-e)+" z"):p.concat(" L "+c+" "+(i+e)+" z")):a?(p=(p=(p=(p=p.concat("M "+c+" "+(y+e)+" Q "+c+" "+y+" "+(c+t)+" "+y+" L "+(r.x-o)+" "+y)).concat(" L "+h+" "+r.y)).concat(" L "+(r.x+o)+" "+y)).concat(" L "+(u-t)+" "+y+" Q "+u+" "+y+" "+u+" "+(y+e))).concat(" L "+u+" "+(i-e)+" Q "+u+" "+i+" "+(u-t)+" "+i+" L "+(c+t)+" "+i+" Q "+c+" "+i+" "+c+" "+(i-e)+" z"):s?(p=(p=p.concat("M "+c+" "+(y+e)+" Q "+c+" "+y+" "+(c+t)+" "+y)).concat(" L "+(u-t)+" "+y+" Q "+u+" "+y+" "+u+" "+("RangeNavigator"===d?0:y+e)+" L "+u+" "+("RangeNavigator"===d?0:r.y-o)),p="RangeNavigator"===d?p.concat(" L "+(u+o)+" 0"):p.concat(" L "+(u+o)+" "+l),(p=(p="RangeNavigator"===d?p.concat(" L "+u+" "+(r.y-e)):p.concat(" L "+u+" "+(r.y+o))).concat(" L "+u+" "+(i-e)+" Q "+u+" "+i+" "+(u-t)+" "+i)).concat(" L "+(c+t)+" "+i+" Q "+c+" "+i+" "+c+" "+(i-e)+" z")):(p=p.concat("M "+(c+t)+" "+y+" Q "+c+" "+y+" "+c+" "+("RangeNavigator"===d?0:y+e)+" L "+c+" "+("RangeNavigator"===d?0:r.y-o)),p="RangeNavigator"===d?p.concat(" L "+(c-o)+" 0"):p.concat(" L "+(c-o)+" "+l),(p=(p="RangeNavigator"===d?p.concat(" L "+c+" "+(r.y-e)):p.concat(" L "+c+" "+(r.y+o))).concat(" L "+c+" "+(i-e)+" Q "+c+" "+i+" "+(c+t)+" "+i)).concat(" L "+(u-t)+" "+i+" Q "+u+" "+i+" "+u+" "+(i-e)+" L "+u+" "+(y+e)+" Q "+u+" "+y+" "+(u-t)+" "+y+" z"))}function a(t){this.id=t}var l,G=function(t,e){this.width=t,this.height=e},m=function(t,e,i,r){this.x=t,this.y=e,this.width=i,this.height=r},x=function(t,e){this.isRight=e,this.isBottom=t},Q=(n(s,l=a),s);function s(t,e,i,r,o,n,a,s){void 0===n&&(n="");t=l.call(this,t)||this;return t.transform="",t.baseLine="auto",t.labelRotation=0,t.x=e,t.y=i,t.anchor=r,t.text=o,t.transform=n,t.baseLine=a,t.labelRotation=s,t}function X(t){return document.getElementById(t)}function Y(t){t=X(t);t&&U.remove(t)}function y(t,e,i,r,o,n,a){var s=new h(""),t=d(t,i,e,o,r),i=s["draw"+t.functionName](t.renderOption);return i.setAttribute("role",n),i.setAttribute("aria-label",a),i}function d(t,e,i,r,o){var n,a="Path",s=e.width,h=e.height,l=t.x,d=t.y,p=t.x+-s/2,c=t.y+-h/2;switch(i){case"Circle":case"Bubble":a="Ellipse",U.merge(r,{rx:s/2,ry:h/2,cx:l,cy:d});break;case"Plus":U.merge(r,{d:n="M "+p+" "+d+" L "+(l+s/2)+" "+d+" M "+l+" "+(d+h/2)+" L "+l+" "+(d+-h/2),stroke:r.fill});break;case"Cross":U.merge(r,{d:n="M "+p+" "+(d+-h/2)+" L "+(l+s/2)+" "+(d+h/2)+" M "+p+" "+(d+h/2)+" L "+(l+s/2)+" "+(d+-h/2),stroke:r.fill});break;case"HorizontalLine":U.merge(r,{d:n="M "+p+" "+d+" L "+(l+s/2)+" "+d,stroke:r.fill});break;case"VerticalLine":U.merge(r,{d:n="M "+l+" "+(d+h/2)+" L "+l+" "+(d+-h/2),stroke:r.fill});break;case"Diamond":U.merge(r,{d:n="M "+p+" "+d+" L "+l+" "+(d+-h/2)+" L "+(l+s/2)+" "+d+" L "+l+" "+(d+h/2)+" L "+p+" "+d+" z"});break;case"Rectangle":U.merge(r,{d:n="M "+p+" "+(d+-h/2)+" L "+(l+s/2)+" "+(d+-h/2)+" L "+(l+s/2)+" "+(d+h/2)+" L "+p+" "+(d+h/2)+" L "+p+" "+(d+-h/2)+" z"});break;case"Triangle":U.merge(r,{d:n="M "+p+" "+(d+h/2)+" L "+l+" "+(d+-h/2)+" L "+(l+s/2)+" "+(d+h/2)+" L "+p+" "+(d+h/2)+" z"});break;case"InvertedTriangle":U.merge(r,{d:n="M "+(l+s/2)+" "+(d-h/2)+" L "+l+" "+(d+h/2)+" L "+(l-s/2)+" "+(d-h/2)+" L "+(l+s/2)+" "+(d-h/2)+" z"});break;case"Pentagon":for(var y,u,g=0;g<=5;g++)y=s/2*Math.cos(Math.PI/180*(72*g)),u=h/2*Math.sin(Math.PI/180*(72*g)),n=0===g?"M "+(l+y)+" "+(d+u)+" ":n.concat("L "+(l+y)+" "+(d+u)+" ");n=n.concat("Z"),U.merge(r,{d:n});break;case"Image":a="Image",U.merge(r,{href:o,height:h,width:s,x:p,y:c})}return{renderOption:r,functionName:a}}n(B,E=a);var E,N=B;function B(t,e,i,r,o,n,a){t=E.call(this,t)||this;return t.opacity=o,t.fill=e,t.stroke=r,t["stroke-width"]=i,t["stroke-dasharray"]=n,t.d=a,t}function q(t,e,i,r,o){var n=new h(""),i={id:t.id,x:t.x,y:t.y,fill:i,"font-size":e.size||o.size,"font-style":e.fontStyle||o.fontStyle,"font-family":e.fontFamily||o.fontFamily,"font-weight":e.fontWeight||o.fontWeight,"text-anchor":t.anchor,transform:t.transform,opacity:e.opacity,"dominant-baseline":t.baseLine},o="string"==typeof t.text?t.text:t.text[0],e=n.createText(i,o);return r&&r.appendChild(e),e}var p,u,f=function(t,e){this.x=t,this.y=e},n=(p=function(t,e){return(p=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}p(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),b=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;0<=s;s--)(o=t[s])&&(a=(n<3?o(a):3<n?o(e,i,a):o(e,i))||a);return 3<n&&a&&Object.defineProperty(e,i,a),a},z=(u=U.ChildProperty,n(v,u),b([U.Property(null)],v.prototype,"size",void 0),b([U.Property("")],v.prototype,"color",void 0),b([U.Property("Segoe UI")],v.prototype,"fontFamily",void 0),b([U.Property("Normal")],v.prototype,"fontWeight",void 0),b([U.Property("Normal")],v.prototype,"fontStyle",void 0),b([U.Property(1)],v.prototype,"opacity",void 0),v);function v(){return null!==u&&u.apply(this,arguments)||this}w=U.ChildProperty,n(F,w),b([U.Property("")],F.prototype,"color",void 0),b([U.Property(1)],F.prototype,"width",void 0),b([U.Property("")],F.prototype,"dashArray",void 0);var w,R=F;function F(){return null!==w&&w.apply(this,arguments)||this}S=U.ChildProperty,n(L,S),b([U.Property(0)],L.prototype,"x",void 0),b([U.Property(0)],L.prototype,"y",void 0),b([U.Property(0)],L.prototype,"width",void 0),b([U.Property(0)],L.prototype,"height",void 0);var S,M=L;function L(){return null!==S&&S.apply(this,arguments)||this}P=U.ChildProperty,n(A,P),b([U.Property(0)],A.prototype,"x",void 0),b([U.Property(0)],A.prototype,"y",void 0);var P,T=A;function A(){return null!==P&&P.apply(this,arguments)||this}O=U.Component,n(k,O),k.prototype.preRender=function(){this.allowServerDataBinding=!1,this.initPrivateVariable(),this.isCanvas||this.removeSVG(),this.createTooltipElement()},k.prototype.initPrivateVariable=function(){this.renderer=new h(this.element.id),this.themeStyle=r(this.theme),this.formattedText=[],this.padding=5,this.highlightPadding=3,this.areaMargin=10,this.isFirst=!0,this.markerPoint=[]},k.prototype.removeSVG=function(){var t=document.getElementById(this.element.id+"_svg"),e=document.getElementById(this.element.id+"parent_template");this.blazorTemplate&&U.resetBlazorTemplate(this.element.id+"parent_template_blazorTemplate"),t&&t.parentNode&&U.remove(t),e&&e.parentNode&&U.remove(e)},k.prototype.render=function(){this.fadeOuted=!1,this.template?(this.updateTemplateFn(),this.createTemplate(this.areaBounds,this.location)):(this.renderText(this.isFirst),this.trigger("tooltipRender",{cancel:!1,name:"tooltipRender",tooltip:this}),t=this.renderTooltipElement(this.areaBounds,this.location),this.drawMarker(t.isBottom,t.isRight,this.markerSize)),this.trigger("loaded",{tooltip:this});var t=document.getElementById("chartmeasuretext");t&&U.remove(t),this.allowServerDataBinding=!0},k.prototype.createTooltipElement=function(){var t,e;this.textElements=[],this.template&&!this.shared||(this.enableRTL&&this.element.setAttribute("dir","ltr"),e=this.renderer.createSvg({id:this.element.id+"_svg"}),this.element.appendChild(e),(t=document.getElementById(this.element.id+"_group"))||(t=this.renderer.createGroup({id:this.element.id+"_group"})).setAttribute("transform","translate(0,0)"),e.appendChild(t),e=this.renderer.drawPath({id:this.element.id+"_path","stroke-width":"Fabric"!==this.theme&&"Fluent"!==this.theme&&"Fluent2"!==this.theme||this.border.width?this.border.width:1,fill:this.fill||this.themeStyle.tooltipFill,opacity:("TailwindDark"===this.theme||"Tailwind"===this.theme||"Bootstrap5"===this.theme||"Bootstrap5Dark"===this.theme||-1<this.theme.indexOf("Fluent2"))&&.75===this.opacity?1:this.opacity,stroke:this.border.color||("Fabric"===this.theme||"Fluent"===this.theme||"Fluent2"===this.theme?"#D2D0CE":this.border.color)}),t.appendChild(e))},k.prototype.drawMarker=function(t,e,i){if(this.shapes.length<=0)return null;var r=0,o=this.renderer.createGroup({id:this.element.id+"_trackball_group"}),n=X(this.element.id+"_group");if(!n)return null;for(var a=(this.enableRTL?this.elementSize.width-i/2:2*this.marginX+i/2)+(e?this.arrowPadding:0),s=0,h=this.shapes;s<h.length;s++){var l,d,p,c=h[s];"None"!==c&&(p=new N(this.element.id+"_Trackball_"+r,this.palette[r],1,"#cccccc",1,null),this.markerPoint[r]&&(l=0,-1<this.header.indexOf("<br")&&(l=this.header.split(/<br.*?>/g).length+r),d=this.formattedText&&2<=this.formattedText.length?this.getTooltipTextContent(this.formattedText[1])+", "+this.getTooltipTextContent(this.formattedText[0]):"",o.appendChild(y(new f(a,this.markerPoint[r]-this.padding+(t?this.arrowPadding:l)),c,new G(i,i),"",p,"img",d))),r++)}n.appendChild(o)},k.prototype.renderTooltipElement=function(t,e){var i,r,o=X(this.element.id),n=new f(0,0),a=new f(0,0),s=X(this.element.id+"_svg"),h=X(this.element.id+"_group"),l=X(this.element.id+"_path"),d=!1,p=!1,c=!1,y=0,u=0;return U.isNullOrUndefined(h)||(""!==this.header&&(this.elementSize.height+=this.marginY),this.isFixed?(r=this.elementSize.width+2*this.marginX,i=this.elementSize.height+2*this.marginY,r=new m(e.x,e.y,r,i)):1<this.content.length?(r=this.sharedTooltipLocation(t,this.location.x,this.location.y),d=!0):(r=this.tooltipLocation(t,e,n,a),this.inverted?(y=(p=r.x<e.x+this.clipBounds.x)?0:this.arrowPadding,this.allowHighlight&&(r.x+=p?this.highlightPadding:-2*this.highlightPadding)):(c=!(d=r.y<e.y+this.clipBounds.y),u=d?0:this.arrowPadding)),""!==this.header&&(i=2,t=0,e=this.isWrap?this.wrappedText:this.header,this.isWrap&&"string"==typeof e&&(-1<e.indexOf("<")||-1<e.indexOf(">"))&&(i=e.split("<br>").length),-1<this.header.indexOf("<br")&&(t=5*(this.header.split(/<br.*?>/g).length-1)),e=U.extend({},this.textStyle,null,!0).properties,e=V(this.isWrap?this.wrappedText:this.header,e,this.themeStyle.textStyle).height+this.marginY*i+(c?this.arrowPadding:0)+(this.isWrap?5:t),i="M "+(3*this.marginX+(p||d||c?0:this.arrowPadding))+" "+e+"L "+(r.width+(p||d||c?0:this.arrowPadding)-2*this.marginX)+" "+e,t=this.renderer.drawPath({id:this.element.id+"_header_path","stroke-width":1,fill:null,opacity:"Material3"===this.theme?.2:.8,stroke:this.themeStyle.tooltipHeaderLine,d:i}),h.appendChild(t)),e=this.border.width/2,i=new m(e+y,e+u,r.width-e,r.height-e),h.setAttribute("opacity","1"),!this.enableAnimation||this.isFirst||this.crosshair?this.updateDiv(o,r.x,r.y):this.animateTooltipDiv(o,r),s.setAttribute("height",(r.height+this.border.width+(this.inverted?0:this.arrowPadding)+5).toString()),s.setAttribute("width",(r.width+this.border.width+(this.inverted?this.arrowPadding:0)+5).toString()),s.setAttribute("opacity","1"),U.isNullOrUndefined(this.tooltipPlacement)||(d=-1<this.tooltipPlacement.indexOf("Top"),c=-1<this.tooltipPlacement.indexOf("Bottom"),p=-1<this.tooltipPlacement.indexOf("Left")),l.setAttribute("d",g(this.rx,this.ry,i,n,this.arrowPadding,d,c,p,a.x,a.y,this.controlName)),(this.enableShadow&&"Bootstrap4"!==this.theme||-1<this.theme.indexOf("Fluent2"))&&(t=this.element.id+"_shadow","Tailwind"===this.theme||"TailwindDark"===this.theme||"Bootstrap5"===this.theme||"Bootstrap5Dark"===this.theme?l.setAttribute("box-shadow","0px 1px 2px rgba(0, 0, 0, 0.06), 0px 1px 3px rgba(0, 0, 0, 0.1)"):l.setAttribute("filter",U.Browser.isIE?"":"url(#"+t+")"),e='<filter id="'+t+'" height="130%"><feGaussianBlur in="SourceAlpha" stdDeviation="3"/>',-1<this.theme.indexOf("Fluent2")?e+='<feOffset dx="-1" dy="3.6" result="offsetblur"/><feComponentTransfer><feFuncA type="linear" slope="0.2"/>':e+='<feOffset dx="3" dy="3" result="offsetblur"/><feComponentTransfer><feFuncA type="linear" slope="0.5"/>',e+='</feComponentTransfer><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge></filter>',(o=this.renderer.createDefs()).setAttribute("id",this.element.id+"SVG_tooltip_definition"),h.appendChild(o),o.innerHTML=e),r="Fabric"!==this.theme&&"Fluent"!==this.theme&&"Fluent2"!==this.theme||this.border.color?this.border.color:"#D2D0CE",l.setAttribute("stroke",r),U.isNullOrUndefined(this.border.dashArray)||l.setAttribute("stroke-dasharray",this.border.dashArray),this.changeText(new f(y,u),c,!p&&!d&&!c),this.revert&&(this.inverted=!this.inverted,this.revert=!1)),new x(c,!p&&!d&&!c)},k.prototype.changeText=function(t,e,i){var r=document.getElementById(this.element.id+"_text");e&&r.setAttribute("transform","translate(0,"+this.arrowPadding+")"),i&&r.setAttribute("transform","translate("+this.arrowPadding+" 0)")},k.prototype.findFormattedText=function(){this.formattedText=[],""!==this.header.replace(/<b>/g,"").replace(/<\/b>/g,"").trim()&&(this.formattedText=this.formattedText.concat(this.header)),this.formattedText=this.formattedText.concat(this.content)},k.prototype.renderText=function(t){var e,i,r,o,n=0,a=0,s=0,h="properties",l=U.extend({},this.textStyle,null,!0)[h],M=X(this.element.id+"_group"),d="";this.findFormattedText(),this.isWrap=!1;for(var p,_="rtl"===document.body.getAttribute("dir")&&!this.enableRTL?"end":"start",c=(this.leftSpace=this.areaBounds.x+this.location.x,this.rightSpace=this.areaBounds.x+this.areaBounds.width-this.leftSpace,this.header.replace(/<b>/g,"").replace(/<\/b>/g,"").trim()),y=-1<this.header.indexOf("<b>")&&-1<this.header.indexOf("</b>"),u=V(this.formattedText[0],l,this.themeStyle.textStyle).width+2*this.marginX+this.arrowPadding,D=this.location.x-u<this.location.x,I=this.areaBounds.x+this.areaBounds.width<this.location.x+u,g=""!==c?this.marginY:0,m=!0,x=!0,f=(this.markerPoint=[],0<this.shapes.length?10:0),b=0<this.shapes.length?5:0,v="12px",w="400",F=this.themeStyle.tooltipLightLabel,S=22/parseFloat(v)*parseFloat(l.size),L=[],P=0,T=(t&&!this.isCanvas||(Y(this.element.id+"_text"),Y(this.element.id+"_header_path"),Y(this.element.id+"_trackball_group"),Y(this.element.id+"SVG_tooltip_definition")),"Chart"===this.controlName&&parseFloat(v)<parseFloat(l.size)&&(P=parseFloat(l.size)-parseFloat(v)),new Q(this.element.id+"_text",2*this.marginX,P+2*this.marginY+2*this.padding+(2===this.marginY?"RangeNavigator"===this.controlName?5:3:0),_,"")),A=q(T,l,l.color||this.themeStyle.tooltipBoldLabel,M,this.themeStyle.textStyle),W=1===this.formattedText.length&&-1<this.formattedText[0].indexOf(" : <b>"),O=""!==this.header,k=O&&y?16:13,C=0,j=this.formattedText.length;C<j;C++)if(r=this.formattedText[C].replace(/<(b|strong)>/g,"<b>").replace(/<\/(b|strong)>/g,"</b>").split(/<br.*?>/g),this.isTextWrap&&this.header!==this.formattedText[C]&&-1===this.formattedText[C].indexOf("<br")&&(p=Math.round(this.leftSpace>this.rightSpace?this.leftSpace/k:this.rightSpace/k),r=this.formattedText[C].match(new RegExp(".{1,"+p+"}","g"))),0===C&&!W&&this.isTextWrap&&(this.leftSpace<u||D)&&(this.rightSpace<u||I)&&(p=Math.round(this.leftSpace>this.rightSpace?this.leftSpace/k:this.rightSpace/k),r=(""!==c?c:this.formattedText[C]).match(new RegExp(".{1,"+p+"}","g")),this.wrappedText=y?"<b>"+r.join("<br>")+"</b>":r.join("<br>"),this.isWrap=1<r.length),""!==r[0]){0===C&&""!==c||this.markerPoint.push((""!==c?this.marginY:0)+T.y+n-(0!==P?P/this.markerSize*(parseFloat(l.size)/this.markerSize):0));for(var E=0,H=r.length;E<H;E++){e=r[E].replace(/<b>/g,"<br><b>").replace(/<\/b>/g,"</b><br>").replace(/:/g,this.enableRTL?"<br>‎: <br>":"<br>‎:<br>").split("<br>"),this.enableRTL&&0<e.length&&r[E].match(/:/g)&&(e[0]=e[0].trim(),e.reverse()),x=!(s=0),n+=S;for(var N=0,B=e.length;N<B;N++){var z,R=e[N];this.enableRTL&&""!==R&&this.isRTLText(R)&&(R=R.concat("‎")),/\S/.test(R)||""===R||(R=" "),(x||" "!==R)&&""===R.replace(/<b>/g,"").replace(/<\/b>/g,"").trim()||(s+=" "!==R?4:0,x&&!m?(-1<this.header.indexOf("<br")&&0!==C&&(g+=this.header.split(/<br.*?>/g).length),o={x:2*this.marginX+(f+b),dy:S+(x?g:0),fill:""},g=null):o=m&&x?{x:""===c?2*this.marginX+(f+b):2*this.marginX+(this.isWrap?f+b:0)}:{},x=!1,i=this.renderer.createTSpan(o,""),A.appendChild(i),d=-1<R.indexOf("<b>")||y&&0===N&&0===C&&(O||this.isWrap)?(F=this.themeStyle.tooltipBoldLabel,"font-weight:"+(w="600")):"600"===w?"font-weight:"+w:"",l.fontWeight=w,i.setAttribute("fill",this.textStyle.color||F),(-1<R.indexOf("</b>")||y&&N===B-1&&0===C&&(O||this.isWrap))&&(w="Normal",F=this.themeStyle.tooltipLightLabel),""!==d&&(i.style.fontWeight=d.split("font-weight:")[1],i.style.color=i.getAttribute("fill")),i.style.fontFamily="inherit",i.style.fontStyle="inherit",i.style.fontSize=(this.header===this.formattedText[C]?l:this.textStyle).size,i.style.fontWeight=this.header===this.formattedText[C]&&-1===(this.header.indexOf("<b>")||this.header.indexOf("</b>"))?this.textStyle.fontWeight||"600":-1<R.indexOf("<b>")||-1<R.indexOf("</b>")?"bold":this.textStyle.fontWeight||l.fontWeight,(z=U.extend({},this.textStyle,null,!0)[h]).fontWeight=i.style.fontWeight,m=!1,i.textContent=R=this.getTooltipTextContent(R),s+=V(R,z,this.themeStyle.textStyle).width)}s-=4,a=Math.max(a,s),L.push(s)}}this.elementSize=new G(a+(0<a?2*this.marginX:0),n),this.elementSize.width+=f+b;t=A.childNodes[0];""!==c&&t&&!this.isWrap&&(l.fontWeight="600",v=(this.elementSize.width+2*this.padding)/2-V(c,l,this.themeStyle.textStyle).width/2,t.setAttribute("x",v.toString())),this.renderContentRTL(A,O,f+b,L)},k.prototype.renderContentRTL=function(t,e,i,r){if(this.enableRTL)for(var o=void 0,n=e?1:0,a=0;a<t.childNodes.length;a++)o=t.childNodes[a],e&&!(0<a)||U.isNullOrUndefined(o.getAttribute("x"))||(o.setAttribute("x",(this.elementSize.width-(i+r[n])).toString()),n++)},k.prototype.getTooltipTextContent=function(t){var e=t.match(/<[a-zA-Z\/](.|\n)*?>/g);if(!U.isNullOrUndefined(e))for(var i=this.isRTLText(t),r=0;r<e.length;r++)this.isValidHTMLElement(e[r].replace("<","").replace("/","").replace(">","").trim())&&(t=t.replace(e[r],i?"‎":""));return t},k.prototype.isValidHTMLElement=function(t){return"[object HTMLUnknownElement]"!==document.createElement(t).toString()},k.prototype.isRTLText=function(t){return/[\u0590-\u07FF\u200F\u202B\u202E\uFB1D-\uFDFD\uFE70-\uFEFC]/.test(t)},k.prototype.createTemplate=function(e,i){var t={cancel:!1,name:"tooltipRender",tooltip:this},r=(this.trigger("tooltipRender",t),document.getElementById(this.element.id)),o=(this.isCanvas&&this.removeSVG(),r.firstElementChild);if(o&&U.remove(o),t.cancel)U.remove(X(this.element.id+"_tooltip"));else{var n=U.createElement("div",{id:this.element.id+"parent_template"}),a=void 0;if("Chart"===this.controlName&&this.shared)for(var s=0;s<this.data.length;s++){var h=this.templateFn(this.data[s],this.controlInstance,n.id,n.id+"_blazorTemplate","");0===s?a=h:1<h.length?a[s].outerHTML=h[s].outerHTML||h[s].textContent:a[a.length-1].outerHTML+=h[0].outerHTML}else a=this.templateFn(this.data,this.controlInstance,n.id,n.id+"_blazorTemplate","");for(;a&&0<a.length;)U.isBlazor()||1===a.length?(n.appendChild(a[0]),a=null):n.appendChild(a[0]);r.appendChild(n);var l,o=this.isCanvas?n:this.element,t=o.getBoundingClientRect(),r=(this.padding=0,this.elementSize=new G(t.width,t.height),this.shared?this.sharedTooltipLocation(e,this.location.x,this.location.y):this.tooltipLocation(e,i,new f(0,0),new f(0,0)));!this.enableAnimation||this.isFirst||this.crosshair?this.updateDiv(o,r.x,r.y):this.animateTooltipDiv(this.element,r),this.blazorTemplate&&(l=this,(t=function(){var t=X(l.element.id).getBoundingClientRect(),t=(l.elementSize=new G(t.width,t.height),l.tooltipLocation(e,i,new f(0,0),new f(0,0)));l.updateDiv(X(l.element.id),t.x,t.y)}).bind(l,e,i),U.updateBlazorTemplate(this.element.id+"parent_template_blazorTemplate",this.blazorTemplate.name,this.blazorTemplate.parent,void 0,t))}},k.prototype.sharedTooltipLocation=function(t,e,i){var r=this.elementSize.width+2*this.marginX,o=this.elementSize.height+2*this.marginY,e=new m(e+2*this.padding,i-o-this.padding,r,o);return e.y<t.y&&(e.y+=e.height+2*this.padding),e.y+e.height>t.y+t.height&&(e.y=Math.max(t.y+t.height-(e.height+2*this.padding),t.y)),e.x+e.width>t.x+t.width&&(e.x=t.x+this.location.x-(e.width+4*this.padding)),e.x<t.x&&(e.x=t.x),e},k.prototype.getCurrentPosition=function(t,e,i,r){var o=this.tooltipPlacement,n=this.clipBounds.x,a=this.clipBounds.y,s=this.offset,h=this.elementSize.width+2*this.marginX,l=this.elementSize.height+2*this.marginY,d=new f(e.x,e.y);return"Top"===o||"Bottom"===o?(d=new f(d.x+n-this.elementSize.width/2-this.padding,d.y+a-this.elementSize.height-2*this.padding-this.arrowPadding-s),i.x=r.x=h/2,"Bottom"===o&&(d.y=e.y+a+s),t.x+t.width<d.x+h?(d.x=t.width>h?t.x+t.width-h+6:t.x,i.x=r.x=t.width>h?t.x+e.x-d.x:e.x):t.x>d.x&&(d.x=t.x,i.x=r.x=e.x)):(d=new f(d.x+n+s,d.y+a-this.elementSize.height/2-this.padding),i.y=r.y=l/2,"Left"===o&&(d.x=e.x+n-s-(h+this.arrowPadding)),t.y+t.height<d.y+l?(d.y=t.height>l?t.y+t.height-l+6:t.y,i.y=r.y=t.height>l?t.y+e.y-d.y:e.y):t.y>d.y&&(d.y=t.y,i.y=r.y=e.y)),new m(d.x,d.y,h,l)},k.prototype.tooltipLocation=function(t,e,i,r){var o,n,a,s,h,l,d,p;return U.isNullOrUndefined(this.tooltipPlacement)?(o=new f(e.x,e.y),n=this.elementSize.width+2*this.marginX,a=this.elementSize.height+2*this.marginY,s=this.offset,h=this.clipBounds.x,l=this.clipBounds.y,d=t.x,p=t.y,this.outOfBounds=!1,this.inverted?(o=new f(o.x+h+s,o.y+l-this.elementSize.height/2-this.padding),i.y=r.y=a/2,(o.x+n+this.arrowPadding>d+t.width||this.isNegative)&&(o.x=(e.x>t.width+t.x?t.width:e.x)+h-s-(n+this.arrowPadding)),o.x<d&&(o.x=(e.x<0?0:e.x)+h+s),o.x+n+this.arrowPadding>d+t.width&&(o.x=(e.x>t.width+t.x?t.width:e.x)+h-s-(n+this.arrowPadding)),o.y<=p&&(i.y-=p-o.y,r.y-=p-o.y,o.y=p),o.y+a>=p+t.height&&(i.y+=o.y+a-(p+t.height),r.y+=o.y+a-(p+t.height),o.y-=o.y+a-(p+t.height)),i.y+this.arrowPadding>a-this.ry&&(i.y=a-this.ry-this.arrowPadding,r.y=a),i.y-this.arrowPadding<this.ry&&(i.y=r.y=this.ry+this.arrowPadding),"Chart"===this.controlName&&((o.y+i.y<this.areaMargin+this.arrowPadding||t.y+t.height-(o.y+i.y)<this.areaMargin+this.arrowPadding)&&(this.outOfBounds=!0),c(o.x,o.y,t)&&!this.outOfBounds||(this.inverted=!this.inverted,o=new f(e.x+h-this.padding-this.elementSize.width/2,e.y+l-this.elementSize.height-2*this.padding-s-this.arrowPadding),this.revert=!0,r.x=i.x=n/2,r.y=i.y=0,(o.y<p||this.isNegative)&&(o.y=(e.y<0?0:e.y)+s+l),o.y+this.arrowPadding+a>p+t.height&&(o.y=Math.min(e.y,p+t.height)+l-this.elementSize.height-2*this.padding-s-this.arrowPadding),r.x=n/2,o.x<d&&(r.x-=d-o.x,i.x-=d-o.x,o.x=d),o.x+n>t.width+d&&(i.x+=o.x+n-(t.width+d),r.x+=o.x+n-(t.width+d),o.x-=o.x+n-(t.width+d)),this.arrowPadding+i.x>n-this.rx&&(r.x=n-this.rx-this.arrowPadding,i.x=n-this.rx-this.arrowPadding),i.x-this.arrowPadding<this.rx&&(i.x=r.x=this.rx+this.arrowPadding)))):(o=new f(o.x+h-this.elementSize.width/2-this.padding,o.y+l-this.elementSize.height-2*(this.allowHighlight?this.highlightPadding:this.padding)-this.arrowPadding-s),i.x=r.x=n/2,(o.y<p||this.isNegative)&&"Progressbar"!==this.controlName&&(o.y=(e.y<0?0:e.y)+l+s),o.y+a+this.arrowPadding>p+t.height&&(o.y=Math.min(e.y,p+t.height)+l-this.elementSize.height-2*this.padding-this.arrowPadding-s),(o.x+n>d+t.width&&o.y<p||this.isNegative)&&"Progressbar"!==this.controlName&&(o.y=(e.y<0?0:e.y)+l+s),r.x=n/2,o.x<d&&"Progressbar"!==this.controlName&&(i.x-=d-o.x,r.x-=d-o.x,o.x=d),o.x+n>d+t.width&&"Progressbar"!==this.controlName&&(i.x+=o.x+n-(d+t.width),r.x+=o.x+n-(d+t.width),o.x-=o.x+n-(d+t.width)),o.x<d&&"Progressbar"!==this.controlName&&(i.x-=d-o.x,r.x-=d-o.x,o.x=d),i.x+this.arrowPadding>n-this.rx&&(i.x=n-this.rx-this.arrowPadding,r.x=n-this.rx-this.arrowPadding),i.x-this.arrowPadding<this.rx&&(i.x=r.x=this.rx+this.arrowPadding),"Chart"===this.controlName&&((t.x+t.width-(o.x+i.x)<this.areaMargin+this.arrowPadding||o.x+i.x<this.areaMargin+this.arrowPadding)&&(this.outOfBounds=!0),this.template&&o.y<0&&(o.y=e.y+l+s),c(o.x,o.y,t)&&!this.outOfBounds||(this.inverted=!this.inverted,this.revert=!0,o=new f(e.x+s+h,e.y+l-this.elementSize.height/2-this.padding),r.x=i.x=0,r.y=i.y=a/2,(o.x+this.arrowPadding+n>d+t.width||this.isNegative)&&(o.x=(e.x>d+t.width?t.width:e.x)+h-s-(this.arrowPadding+n)),o.x<d&&(o.x=(e.x<0?0:e.x)+s+h),o.y<=p&&(r.y-=p-o.y,i.y-=p-o.y,o.y=p),o.y+a>=t.height+p&&(i.y+=o.y+a-(t.height+p),r.y+=o.y+a-(t.height+p),o.y-=o.y+a-(t.height+p)),this.arrowPadding+i.y>a-this.ry&&(i.y=a-this.arrowPadding-this.ry,r.y=a),i.y-this.arrowPadding<this.ry&&(i.y=this.arrowPadding+this.ry,r.y=0)))),new m(o.x,o.y,n,a)):this.getCurrentPosition(t,e,i,r)},k.prototype.animateTooltipDiv=function(e,i){var r,o=this,n=parseFloat(e.style.left),a=parseFloat(e.style.top);new U.Animation({}).animate(e,{duration:0===this.duration&&"Enable"===U.animationMode?300:this.duration,progress:function(t){r=t.timeStamp/t.duration,e.style.animation=null,"Chart"===o.controlName&&o.shared&&!o.enableRTL?(e.style.transition=U.isBlazor()?"transform 0.3s":"transform 0.1s",e.style.transform="translate("+(n+r*(i.x-n))+"px,"+(a+r*(i.y-a))+"px)",e.style.left="",e.style.top=""):(e.style.left=n+r*(i.x-n)+"px",e.style.top=a+r*(i.y-a)+"px",e.style.transform="RangeNavigator"===o.controlName?e.style.transform:"")},end:function(t){o.updateDiv(e,i.x,i.y),o.trigger("animationComplete",{tooltip:o})}})},k.prototype.updateDiv=function(t,e,i){"Chart"!==this.controlName||!this.shared||this.crosshair||this.enableRTL?(t.style.left=e+"px",t.style.top=i+"px",t.style.transform="RangeNavigator"===this.controlName?t.style.transform:""):(t.style.transform="translate("+e+"px,"+i+"px)",t.style.left="",t.style.top="")},k.prototype.updateTemplateFn=function(){if(this.template)try{"function"!=typeof this.template&&document.querySelectorAll(this.template).length?this.templateFn=U.compile(document.querySelector(this.template).innerHTML.trim()):this.templateFn=U.compile(this.template)}catch(t){this.templateFn=U.compile(this.template)}},k.prototype.fadeOut=function(){var e=this,t=this.isCanvas&&!this.template?X(this.element.id+"_svg"):X(this.element.id),i=X(this.element.id);if(t){var r=t.firstChild;if(r.nodeType!==Node.ELEMENT_NODE&&(r=t.firstElementChild),!(r=this.isCanvas&&!this.template?document.getElementById(this.element.id+"_group")?document.getElementById(this.element.id+"_group"):r:r))return null;var o=parseFloat(r.getAttribute("opacity")),o=U.isNullOrUndefined(o)?1:o;new U.Animation({}).animate(r,{duration:200,progress:function(t){e.progressAnimation(r,o,t.timeStamp/t.duration)},end:function(){e.fadeOuted=!0,e.endAnimation(r),i.style.transition=""}})}},k.prototype.progressAnimation=function(t,e,i){t.style.animation="",t.setAttribute("opacity",(e-i).toString())},k.prototype.endAnimation=function(t){t.setAttribute("opacity","0"),this.template&&(t.style.display="none"),this.trigger("animationComplete",{tooltip:this})},k.prototype.getPersistData=function(){return this.addOnPersist([])},k.prototype.getModuleName=function(){return"tooltip"},k.prototype.destroy=function(){O.prototype.destroy.call(this),this.element.classList.remove("e-tooltip")},b([U.Property(!(k.prototype.onPropertyChanged=function(t,e){this.blazorTemplate&&U.resetBlazorTemplate(this.element.id+"parent_template_blazorTemplate"),this.isFirst=!1,this.render()}))],k.prototype,"enable",void 0),b([U.Property(!1)],k.prototype,"shared",void 0),b([U.Property(!1)],k.prototype,"crosshair",void 0),b([U.Property(!1)],k.prototype,"enableShadow",void 0),b([U.Property(null)],k.prototype,"fill",void 0),b([U.Property("")],k.prototype,"header",void 0),b([U.Property(.75)],k.prototype,"opacity",void 0),b([U.Complex({size:"12px",fontWeight:null,color:null,fontStyle:"Normal",fontFamily:null},z)],k.prototype,"textStyle",void 0),b([U.Property(null)],k.prototype,"template",void 0),b([U.Property(!0)],k.prototype,"enableAnimation",void 0),b([U.Property(300)],k.prototype,"duration",void 0),b([U.Property(!1)],k.prototype,"inverted",void 0),b([U.Property(!1)],k.prototype,"isNegative",void 0),b([U.Complex({color:null,width:null},R)],k.prototype,"border",void 0),b([U.Property([])],k.prototype,"content",void 0),b([U.Property(10)],k.prototype,"markerSize",void 0),b([U.Complex({x:0,y:0},T)],k.prototype,"clipBounds",void 0),b([U.Property([])],k.prototype,"palette",void 0),b([U.Property([])],k.prototype,"shapes",void 0),b([U.Complex({x:0,y:0},T)],k.prototype,"location",void 0),b([U.Property(0)],k.prototype,"offset",void 0),b([U.Property(4)],k.prototype,"rx",void 0),b([U.Property(4)],k.prototype,"ry",void 0),b([U.Property(5)],k.prototype,"marginX",void 0),b([U.Property(5)],k.prototype,"marginY",void 0),b([U.Property(7)],k.prototype,"arrowPadding",void 0),b([U.Property(null)],k.prototype,"data",void 0),b([U.Property("Material")],k.prototype,"theme",void 0),b([U.Complex({x:0,y:0,width:0,height:0},M)],k.prototype,"areaBounds",void 0),b([U.Property(null)],k.prototype,"availableSize",void 0),b([U.Property()],k.prototype,"blazorTemplate",void 0),b([U.Property(!1)],k.prototype,"isCanvas",void 0),b([U.Property(!1)],k.prototype,"isTextWrap",void 0),b([U.Property(!1)],k.prototype,"isFixed",void 0),b([U.Property(null)],k.prototype,"tooltipPlacement",void 0),b([U.Property(null)],k.prototype,"controlInstance",void 0),b([U.Property("")],k.prototype,"controlName",void 0),b([U.Event()],k.prototype,"tooltipRender",void 0),b([U.Event()],k.prototype,"loaded",void 0),b([U.Event()],k.prototype,"animationComplete",void 0),b([U.Property(!1)],k.prototype,"enableRTL",void 0),b([U.Property(!1)],k.prototype,"allowHighlight",void 0);var O,n=b([U.NotifyPropertyChanges],k);function k(t,e){return O.call(this,t,e)||this}t.AreaBounds=M,t.CanvasRenderer=C,t.CustomizeOption=a,t.PathOption=N,t.Rect=m,t.Side=x,t.Size=G,t.SvgRenderer=h,t.TextOption=Q,t.TextStyle=z,t.ToolLocation=T,t.Tooltip=n,t.TooltipBorder=R,t.TooltipLocation=f,t.calculateShapes=d,t.drawSymbol=y,t.findDirection=g,t.getElement=X,t.getTooltipThemeColor=r,t.measureText=V,t.removeElement=Y,t.textElement=q,t.withInAreaBounds=c,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=t||self).ej={},t.ej2Base)}(this,function(t,U){"use strict";e.prototype.getOptionValue=function(t,e){return t[e]},e.prototype.createSvg=function(t){return U.isNullOrUndefined(t.id)&&(t.id=this.rootId+"_svg"),this.svgObj=document.getElementById(t.id),U.isNullOrUndefined(document.getElementById(t.id))&&(this.svgObj=document.createElementNS(this.svgLink,"svg")),this.svgObj=this.setElementAttributes(t,this.svgObj),this.setSVGSize(t.width,t.height),this.svgObj},e.prototype.setSVGSize=function(t,e){var i=document.getElementById(this.rootId),i=U.isNullOrUndefined(i)?null:i.getBoundingClientRect();U.isNullOrUndefined(this.width)||this.width<=0?this.svgObj.setAttribute("width",(t||i.width).toString()):this.svgObj.setAttribute("width",this.width.toString()),U.isNullOrUndefined(this.height)||this.height<=0?this.svgObj.setAttribute("height",e?e.toString():"450"):this.svgObj.setAttribute("height",this.height.toString())},e.prototype.drawPath=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"path")),e=this.setElementAttributes(t,e)},e.prototype.drawLine=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"line")),e=this.setElementAttributes(t,e)},e.prototype.drawRectangle=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"rect")),e=this.setElementAttributes(t,e)},e.prototype.drawCircle=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"circle")),e=this.setElementAttributes(t,e)},e.prototype.drawPolyline=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"polyline")),e=this.setElementAttributes(t,e)},e.prototype.drawEllipse=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"ellipse")),e=this.setElementAttributes(t,e)},e.prototype.drawPolygon=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"polygon")),e=this.setElementAttributes(t,e)},e.prototype.drawImage=function(t){var e=document.createElementNS(this.svgLink,"image");return e.setAttributeNS(null,"height",t.height.toString()),e.setAttributeNS(null,"width",t.width.toString()),e.setAttributeNS("http://www.w3.org/1999/xlink","href",t.href),e.setAttributeNS(null,"x",t.x.toString()),e.setAttributeNS(null,"y",t.y.toString()),e.setAttributeNS(null,"id",t.id),e.setAttributeNS(null,"visibility",t.visibility),U.isNullOrUndefined(this.getOptionValue(t,"clip-path"))||e.setAttributeNS(null,"clip-path",this.getOptionValue(t,"clip-path")),U.isNullOrUndefined(t.preserveAspectRatio)||e.setAttributeNS(null,"preserveAspectRatio",t.preserveAspectRatio),e},e.prototype.createText=function(t,e){var i=document.createElementNS(this.svgLink,"text"),i=this.setElementAttributes(t,i);return U.isNullOrUndefined(e)||(i.textContent=e),i},e.prototype.createTSpan=function(t,e){var i=document.createElementNS(this.svgLink,"tspan"),i=this.setElementAttributes(t,i);return U.isNullOrUndefined(e)||(i.textContent=e),i},e.prototype.createTitle=function(t){var e=document.createElementNS(this.svgLink,"title");return e.textContent=t,e},e.prototype.createDefs=function(){return document.createElementNS(this.svgLink,"defs")},e.prototype.createClipPath=function(t){var e=document.createElementNS(this.svgLink,"clipPath");return this.setElementAttributes(t,e)},e.prototype.createForeignObject=function(t){var e=document.createElementNS(this.svgLink,"foreignObject");return this.setElementAttributes(t,e)},e.prototype.createGroup=function(t){var e=document.createElementNS(this.svgLink,"g");return this.setElementAttributes(t,e)},e.prototype.createPattern=function(t,e){e=document.createElementNS(this.svgLink,e);return this.setElementAttributes(t,e)},e.prototype.createRadialGradient=function(t,e,i){i=U.isNullOrUndefined(t[0].colorStop)?t[0].color.toString():(i={id:this.rootId+"_"+e+"radialGradient",cx:i.cx+"%",cy:i.cy+"%",r:i.r+"%",fx:i.fx+"%",fy:i.fy+"%"},this.drawGradient("radialGradient",i,t),"url(#"+this.rootId+"_"+e+"radialGradient)");return i},e.prototype.createLinearGradient=function(t,e,i){i=U.isNullOrUndefined(t[0].colorStop)?t[0].color.toString():(i={id:this.rootId+"_"+e+"linearGradient",x1:i.x1+"%",y1:i.y1+"%",x2:i.x2+"%",y2:i.y2+"%"},this.drawGradient("linearGradient",i,t),"url(#"+this.rootId+"_"+e+"linearGradient)");return i},e.prototype.drawGradient=function(t,e,i){for(var r=this.createDefs(),o=document.createElementNS(this.svgLink,t),o=this.setElementAttributes(e,o),n=0;n<i.length;n++){var a=document.createElementNS(this.svgLink,"stop");a.setAttribute("offset",i[n].colorStop),a.setAttribute("stop-color",i[n].color),a.setAttribute("stop-opacity",i[n].opacity||"1"),U.isNullOrUndefined(i[n].style)||(a.style.cssText=i[n].style),o.appendChild(a)}return r.appendChild(o),r},e.prototype.drawClipPath=function(t){var e=this.createDefs(),i=this.createClipPath({id:t.id}),t=(t.id=t.id+"_Rect",this.drawRectangle(t));return i.appendChild(t),e.appendChild(i),e},e.prototype.drawCircularClipPath=function(t){var e=this.createDefs(),i=this.createClipPath({id:t.id}),t=(t.id=t.id+"_Circle",this.drawCircle(t));return i.appendChild(t),e.appendChild(i),e},e.prototype.setElementAttributes=function(t,e){for(var i=Object.keys(t),r=0;r<i.length;r++)"style"===i[r]?e.style.cssText=t[i[r]]:e.setAttribute(i[r],t[i[r]]);return e},e.prototype.createCanvas=function(){return null};var h=e;function e(t){this.svgLink="http://www.w3.org/2000/svg",this.rootId=t}i.prototype.getOptionValue=function(t,e){return t[e]},i.prototype.createCanvas=function(t){var e=document.createElement("canvas");return e.setAttribute("id",this.rootId+"_canvas"),this.ctx=e.getContext("2d"),this.canvasObj=e,this.setCanvasSize(t.width,t.height),this.canvasObj},i.prototype.setCanvasSize=function(t,e){var i=document.getElementById(this.rootId),i=U.isNullOrUndefined(i)?null:i.getBoundingClientRect();U.isNullOrUndefined(this.width)?this.canvasObj.setAttribute("width",(t||i.width).toString()):this.canvasObj.setAttribute("width",this.width.toString()),U.isNullOrUndefined(this.height)?this.canvasObj.setAttribute("height",e?e.toString():"450"):this.canvasObj.setAttribute("height",this.height.toString())},i.prototype.setAttributes=function(t){this.ctx.lineWidth=this.getOptionValue(t,"stroke-width");var e=this.getOptionValue(t,"stroke-dasharray");U.isNullOrUndefined(e)||(e=e.split(","),this.ctx.setLineDash([parseInt(e[0],10),parseInt(e[1],10)])),this.ctx.strokeStyle=this.getOptionValue(t,"stroke")},i.prototype.drawLine=function(t){this.ctx.save(),this.ctx.beginPath(),this.ctx.lineWidth=this.getOptionValue(t,"stroke-width"),this.ctx.strokeStyle=t.stroke,this.ctx.moveTo(t.x1,t.y1),this.ctx.lineTo(t.x2,t.y2),this.ctx.stroke(),this.ctx.restore()},i.prototype.drawRectangle=function(t,e){var i=this.ctx,r=t.rx;return this.ctx.save(),this.ctx.beginPath(),e&&this.ctx.translate(e[0],e[1]),this.ctx.globalAlpha=this.getOptionValue(t,"opacity"),this.setAttributes(t),this.ctx.rect(t.x,t.y,t.width,t.height),null!==r&&0<=r?this.drawCornerRadius(t):("none"===t.fill&&(t.fill="transparent"),this.ctx.fillStyle=t.fill,this.ctx.fillRect(t.x,t.y,t.width,t.height),this.ctx.stroke()),this.ctx.restore(),this.ctx=i,this.canvasObj},i.prototype.drawCornerRadius=function(t){var e=t.rx,i=t.x,r=t.y,o=t.width,n=t.height;"none"===t.fill&&(t.fill="transparent"),this.ctx.fillStyle=t.fill,n<2*(e=o<2*e?o/2:e)&&(e=n/2),this.ctx.beginPath(),this.ctx.moveTo(i+o-e,r),this.ctx.arcTo(i+o,r,i+o,r+n,e),this.ctx.arcTo(i+o,r+n,i,r+n,e),this.ctx.arcTo(i,r+n,i,r,e),this.ctx.arcTo(i,r,i+o,r,e),this.ctx.closePath(),this.ctx.fill(),this.ctx.stroke()},i.prototype.drawPath=function(t,e){var i=t.d.split(" "),r=this.getOptionValue(t,"stroke-width"),o=this.ctx,n=!0;this.ctx.save(),this.ctx.beginPath(),e&&this.ctx.translate(e[0],e[1]),this.ctx.globalAlpha=t.opacity||this.getOptionValue(t,"fill-opacity"),this.setAttributes(t);for(var a=0;a<i.length;a+=3){var s=parseFloat(i[a+1]),h=parseFloat(i[a+2]);switch(i[a]){case"M":t.innerR||t.cx||this.ctx.moveTo(s,h);break;case"L":t.innerR||this.ctx.lineTo(s,h);break;case"Q":var l=parseFloat(i[a+3]),d=parseFloat(i[a+4]);this.ctx.quadraticCurveTo(s,h,l,d),a+=2;break;case"C":var l=parseFloat(i[a+3]),d=parseFloat(i[a+4]),p=parseFloat(i[a+5]),c=parseFloat(i[a+6]);this.ctx.bezierCurveTo(s,h,l,d,p,c),a+=4;break;case"A":t.innerR?n&&(this.ctx.arc(t.x,t.y,t.radius,t.start,t.end,t.counterClockWise),this.ctx.arc(t.x,t.y,t.innerR,t.end,t.start,!t.counterClockWise),n=!1):t.cx?this.ctx.arc(t.cx,t.cy,t.radius,0,2*Math.PI,t.counterClockWise):(this.ctx.moveTo(t.x,t.y),this.ctx.arc(t.x,t.y,t.radius,t.start,t.end,t.counterClockWise),this.ctx.lineTo(t.x,t.y)),a+=5;break;case"z":case"Z":this.ctx.closePath(),a-=2}}return"none"!==t.fill&&void 0!==t.fill&&(this.ctx.fillStyle=t.fill,this.ctx.fill()),0<r&&this.ctx.stroke(),this.ctx.restore(),this.ctx=o,this.canvasObj},i.prototype.createText=function(t,e,i,r,o,n){var a=this.getOptionValue(t,"font-weight"),s=(U.isNullOrUndefined(a)||"regular"!==a.toLowerCase()||(a="normal"),this.getOptionValue(t,"font-size")),h=this.getOptionValue(t,"font-family"),a=this.getOptionValue(t,"font-style").toLowerCase()+" "+a+" "+s+" "+h,s=this.getOptionValue(t,"text-anchor"),h=void 0!==t.opacity?t.opacity:1;return"middle"===s&&(s="center"),this.ctx.save(),this.ctx.fillStyle=t.fill,this.ctx.font=a,this.ctx.textAlign=s,this.ctx.globalAlpha=h,t.baseline&&(this.ctx.textBaseline=t.baseline),n||(this.ctx.translate(t.x+0+(i||0),t.y+(r||0)),this.ctx.rotate(t.labelRotation*Math.PI/180)),this.ctx.fillText(e,n?t.x:0,n?o:0),this.ctx.restore(),this.canvasObj},i.prototype.drawCircle=function(t,e){var i=this.ctx;return this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(t.cx,t.cy,t.r,0,2*Math.PI),this.ctx.fillStyle=t.fill,this.ctx.globalAlpha=t.opacity,this.ctx.fill(),e&&this.ctx.translate(e[0],e[1]),this.setAttributes(t),this.ctx.stroke(),this.ctx.restore(),this.ctx=i,this.canvasObj},i.prototype.drawPolyline=function(t){this.ctx.save(),this.ctx.beginPath();for(var e=t.points.split(" "),i=0;i<e.length-1;i++){var r=e[i].split(","),o=parseFloat(r[0]),r=parseFloat(r[1]);0===i?this.ctx.moveTo(o,r):this.ctx.lineTo(o,r)}this.ctx.lineWidth=this.getOptionValue(t,"stroke-width"),this.ctx.strokeStyle=t.stroke,this.ctx.stroke(),this.ctx.restore()},i.prototype.drawEllipse=function(t,e){var i=this.ctx,r=Math.max(t.rx,t.ry),o=t.rx/r,n=t.ry/r;this.ctx.save(),this.ctx.beginPath(),this.ctx.translate(t.cx,t.cy),e&&this.ctx.translate(e[0],e[1]),this.ctx.save(),this.ctx.scale(o,n),this.ctx.arc(0,0,r,0,2*Math.PI,!1),this.ctx.fillStyle=t.fill,this.ctx.fill(),this.ctx.restore(),this.ctx.lineWidth=this.getOptionValue(t,"stroke-width"),this.ctx.strokeStyle=t.stroke,this.ctx.stroke(),this.ctx.restore(),this.ctx=i},i.prototype.drawImage=function(t){this.ctx.save();var e=new Image;U.isNullOrUndefined(t.href)||(e.src=t.href,this.ctx.drawImage(e,t.x,t.y,t.width,t.height)),this.ctx.restore()},i.prototype.createLinearGradient=function(t){var e;return U.isNullOrUndefined(t[0].colorStop)||(e=this.ctx.createLinearGradient(0,0,0,this.canvasObj.height)),this.setGradientValues(t,e)},i.prototype.createRadialGradient=function(t){var e;return U.isNullOrUndefined(t[0].colorStop)||(e=this.ctx.createRadialGradient(0,0,0,0,0,this.canvasObj.height)),this.setGradientValues(t,e)},i.prototype.setGradientValues=function(t,e){var i;if(U.isNullOrUndefined(t[0].colorStop))i=t[0].color.toString();else{for(var r=0;r<=t.length-1;r++){var o=t[r].color,n=t[r].colorStop.slice(0,-1),n=parseInt(n,10)/100;e.addColorStop(n,o)}i=e.toString()}return i},i.prototype.setElementAttributes=function(e,t){for(var i=Object.keys(e),r=Object.keys(e).map(function(t){return e[t]}),o=0;o<i.length;o++)t.setAttribute(i[o],r[o]);return null},i.prototype.updateCanvasAttributes=function(t){this.setElementAttributes(t,this.canvasObj);var e,i=this.ctx;U.isNullOrUndefined(this.dataUrl)||((e=new Image).onload=function(){i.drawImage(e,0,0)},e.src=this.dataUrl)},i.prototype.clearRect=function(t){this.ctx.restore(),this.ctx.clearRect(t.x,t.y,t.width,t.height)},i.prototype.createGroup=function(){return null},i.prototype.drawClipPath=function(){return null},i.prototype.drawCircularClipPath=function(){return null},i.prototype.canvasClip=function(t){this.ctx.save(),this.ctx.fillStyle="transparent",this.ctx.rect(t.x,t.y,t.width,t.height),this.ctx.fill(),this.ctx.clip()},i.prototype.canvasRestore=function(){this.ctx.restore()},i.prototype.drawPolygon=function(){return null},i.prototype.createDefs=function(){return null},i.prototype.createClipPath=function(){return null},i.prototype.createSvg=function(){return null};var C=i;function i(t){this.rootId=t}function r(t){var e;switch(t){case"Highcontrast":case"HighContrast":e={tooltipFill:"#ffffff",tooltipBoldLabel:"#000000",tooltipLightLabel:"#000000",tooltipHeaderLine:"#969696",textStyle:{fontFamily:"Segoe UI",color:"#000000",fontWeight:null}};break;case"MaterialDark":case"FabricDark":case"BootstrapDark":e={tooltipFill:"MaterialDark"===t?"#F4F4F4":"FabricDark"===t?"#A19F9D":"#F0F0F0",tooltipBoldLabel:"MaterialDark"===t?"rgba(18, 18, 18, 1)":"FabricDark"===t?"#DADADA":"#1A1A1A",tooltipLightLabel:"MaterialDark"===t?"rgba(18, 18, 18, 1)":"FabricDark"===t?"#DADADA":"#1A1A1A",tooltipHeaderLine:"#9A9A9A",textStyle:"MaterialDark"===t?{fontFamily:"Roboto",color:"rgba(18, 18, 18, 1)",fontWeight:null}:"FabricDark"===t?{fontFamily:"Segoe UI",color:"#DADADA",fontWeight:null}:{fontFamily:"Helvetica",color:"#1A1A1A",fontWeight:null}};break;case"Bootstrap4":e={tooltipFill:"#212529",tooltipBoldLabel:"#F9FAFB",tooltipLightLabel:"#F9FAFB",tooltipHeaderLine:"rgba(255, 255, 255, 0.2)",textStyle:{fontFamily:"Helvetica",color:"#F9FAFB",fontWeight:null}};break;case"Tailwind":e={tooltipFill:"#111827",tooltipBoldLabel:"#F9FAFB",tooltipLightLabel:"#F9FAFB",tooltipHeaderLine:"#6B7280",textStyle:{fontFamily:"Inter",color:"#F9FAFB",fontWeight:null}};break;case"TailwindDark":e={tooltipFill:"#E9ECEF",tooltipBoldLabel:"#1F2937",tooltipLightLabel:"#1F2937",tooltipHeaderLine:"#9CA3AF",textStyle:{fontFamily:"Inter",color:"#1F2937",fontWeight:null}};break;case"Bootstrap5":e={tooltipFill:"#212529",tooltipBoldLabel:"#F9FAFB",tooltipLightLabel:"#F9FAFB",tooltipHeaderLine:"#9CA3AF",textStyle:{fontFamily:"Helvetica",color:"#F9FAFB",fontWeight:null}};break;case"Bootstrap5Dark":e={tooltipFill:"#E9ECEF",tooltipBoldLabel:"#212529",tooltipLightLabel:"#212529",tooltipHeaderLine:"#ADB5BD",textStyle:{fontFamily:"Helvetica",color:"#212529",fontWeight:null}};break;case"Fluent":e={tooltipFill:"#FFFFFF",tooltipBoldLabel:"#323130",tooltipLightLabel:"#323130",tooltipHeaderLine:"#D2D0CE",textStyle:{fontFamily:"Segoe UI",color:"#323130",fontWeight:null}};break;case"FluentDark":e={tooltipFill:"#323130",tooltipBoldLabel:"#F3F2F2",tooltipLightLabel:"#F3F2F1",tooltipHeaderLine:"#3B3A39",textStyle:{fontFamily:"Segoe UI",color:"#F3F2F1",fontWeight:null}};break;case"Fluent2":e={tooltipFill:"#FFFFFF",tooltipBoldLabel:"#242424",tooltipLightLabel:"#242424",tooltipHeaderLine:"#D2D0CE",textStyle:{fontFamily:"Segoe UI",color:"#242424",fontWeight:null}};break;case"Fluent2Dark":e={tooltipFill:"#292929",tooltipBoldLabel:"#FFFFFF",tooltipLightLabel:"#FFFFFF",tooltipHeaderLine:"#3B3A39",textStyle:{fontFamily:"Segoe UI",color:"#FFFFFF",fontWeight:null}};break;case"Material3":e={tooltipFill:"#313033",tooltipBoldLabel:"#F4EFF4",tooltipLightLabel:"#F4EFF4",tooltipHeaderLine:"#F4EFF4",textStyle:{fontFamily:"Roboto",color:"#F4EFF4",fontWeight:null}};break;case"Material3Dark":e={tooltipFill:"#E6E1E5",tooltipBoldLabel:"#313033",tooltipLightLabel:"#313033",tooltipHeaderLine:"#313033",textStyle:{fontFamily:"Roboto",color:"#313033",fontWeight:null}};break;default:e={tooltipFill:"Material"===t?"#000816":"Fabric"===t?"#FFFFFF":"#212529",tooltipBoldLabel:"Material"===t?"rgba(249, 250, 251, 1)":"Fabric"===t?"#333333":"#F9FAFB",tooltipLightLabel:"Material"===t?"rgba(249, 250, 251, 1)":"Fabric"===t?"#333333":"#F9FAFB",tooltipHeaderLine:"Fabric"===t?"#D2D0CE":"#ffffff",textStyle:"Material"===t?{fontFamily:"Roboto",color:"rgba(249, 250, 251, 1)",fontWeight:null}:"Fabric"===t?{fontFamily:"Segoe UI",color:"#333333",fontWeight:null}:{fontFamily:"Helvetica",color:"#F9FAFB",fontWeight:null}}}return e}o=function(t,e){return(o=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)};var o,n=function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)};function V(t,e,i){var r=t||"",o=document.getElementById("chartmeasuretext");if(null===o&&(o=U.createElement("text",{id:"chartmeasuretext"}),document.body.appendChild(o)),"string"==typeof t&&(-1<t.indexOf("<")||-1<t.indexOf(">"))){for(var n=t.split(" "),a=0;a<n.length;a++)-1===n[a].indexOf("<br/>")&&(n[a]=n[a].replace(/[<>]/g,"&"));t=n.join(" ")}o.innerHTML=-1<r.indexOf("<br>")||-1<r.indexOf("<br/>")?r:t,o.style.position="fixed",o.style.fontSize=e.size||i.size,o.style.fontStyle=e.fontStyle||i.fontStyle,o.style.fontFamily=e.fontFamily||i.fontFamily,o.style.visibility="hidden",o.style.top="-100",o.style.left="0",o.style.whiteSpace="nowrap",o.style.lineHeight="normal";var r=o.clientWidth,t=o.clientHeight,s=o.style.fontWeight;return o.style.fontWeight=e.fontWeight||i.fontWeight,new G("bold"===o.style.fontWeight&&"normal"===s?Math.max(r,o.clientWidth):o.clientWidth,"bold"===o.style.fontWeight&&"normal"===s?Math.max(t,o.clientHeight):o.clientHeight)}function c(t,e,i,r,o){return void 0===o&&(o=0),t>=i.x-(r=void 0===r?0:r)&&t<=i.x+i.width+r&&e>=i.y-o&&e<=i.y+i.height+o}function g(t,e,i,r,o,n,a,s,h,l,d){void 0===d&&(d="");var p="",c=i.x,y=i.y,u=i.x+i.width,i=i.y+i.height;return p=n?(p=(p=p.concat("M "+c+" "+(y+e)+" Q "+c+" "+y+" "+(c+t)+" "+y+" L "+(u-t)+" "+y+" Q "+u+" "+y+" "+u+" "+(y+e))).concat(" L "+u+" "+(i-e)+" Q "+u+" "+i+" "+(u-t)+" "+i),0!==o&&(p="RangeNavigator"===d?r.x-o>u/2?(p=p.concat(" L "+(r.x+o)+" "+i)).concat(" L "+(h+o)+" "+(i+o)+" L "+r.x+" "+i):(p=p.concat(" L "+r.x+" "+i)).concat(" L "+(h-o)+" "+(i+o)+" L "+(r.x-o)+" "+i):(p=p.concat(" L "+(r.x+o)+" "+i)).concat(" L "+h+" "+(i+o)+" L "+(r.x-o)+" "+i)),r.x-o>c||0===o?p.concat(" L "+(c+t)+" "+i+" Q "+c+" "+i+" "+c+" "+(i-e)+" z"):p.concat(" L "+c+" "+(i+e)+" z")):a?(p=(p=(p=(p=p.concat("M "+c+" "+(y+e)+" Q "+c+" "+y+" "+(c+t)+" "+y+" L "+(r.x-o)+" "+y)).concat(" L "+h+" "+r.y)).concat(" L "+(r.x+o)+" "+y)).concat(" L "+(u-t)+" "+y+" Q "+u+" "+y+" "+u+" "+(y+e))).concat(" L "+u+" "+(i-e)+" Q "+u+" "+i+" "+(u-t)+" "+i+" L "+(c+t)+" "+i+" Q "+c+" "+i+" "+c+" "+(i-e)+" z"):s?(p=(p=p.concat("M "+c+" "+(y+e)+" Q "+c+" "+y+" "+(c+t)+" "+y)).concat(" L "+(u-t)+" "+y+" Q "+u+" "+y+" "+u+" "+("RangeNavigator"===d?0:y+e)+" L "+u+" "+("RangeNavigator"===d?0:r.y-o)),p="RangeNavigator"===d?p.concat(" L "+(u+o)+" 0"):p.concat(" L "+(u+o)+" "+l),(p=(p="RangeNavigator"===d?p.concat(" L "+u+" "+(r.y-e)):p.concat(" L "+u+" "+(r.y+o))).concat(" L "+u+" "+(i-e)+" Q "+u+" "+i+" "+(u-t)+" "+i)).concat(" L "+(c+t)+" "+i+" Q "+c+" "+i+" "+c+" "+(i-e)+" z")):(p=p.concat("M "+(c+t)+" "+y+" Q "+c+" "+y+" "+c+" "+("RangeNavigator"===d?0:y+e)+" L "+c+" "+("RangeNavigator"===d?0:r.y-o)),p="RangeNavigator"===d?p.concat(" L "+(c-o)+" 0"):p.concat(" L "+(c-o)+" "+l),(p=(p="RangeNavigator"===d?p.concat(" L "+c+" "+(r.y-e)):p.concat(" L "+c+" "+(r.y+o))).concat(" L "+c+" "+(i-e)+" Q "+c+" "+i+" "+(c+t)+" "+i)).concat(" L "+(u-t)+" "+i+" Q "+u+" "+i+" "+u+" "+(i-e)+" L "+u+" "+(y+e)+" Q "+u+" "+y+" "+(u-t)+" "+y+" z"))}function a(t){this.id=t}var l,G=function(t,e){this.width=t,this.height=e},m=function(t,e,i,r){this.x=t,this.y=e,this.width=i,this.height=r},x=function(t,e){this.isRight=e,this.isBottom=t},Q=(n(s,l=a),s);function s(t,e,i,r,o,n,a,s){void 0===n&&(n="");t=l.call(this,t)||this;return t.transform="",t.baseLine="auto",t.labelRotation=0,t.x=e,t.y=i,t.anchor=r,t.text=o,t.transform=n,t.baseLine=a,t.labelRotation=s,t}function X(t){return document.getElementById(t)}function Y(t){t=X(t);t&&U.remove(t)}function y(t,e,i,r,o,n,a){var s=new h(""),t=d(t,i,e,o,r),i=s["draw"+t.functionName](t.renderOption);return i.setAttribute("role",n),i.setAttribute("aria-label",a),i}function d(t,e,i,r,o){var n,a="Path",s=e.width,h=e.height,l=t.x,d=t.y,p=t.x+-s/2,c=t.y+-h/2;switch(i){case"Circle":case"Bubble":a="Ellipse",U.merge(r,{rx:s/2,ry:h/2,cx:l,cy:d});break;case"Plus":U.merge(r,{d:n="M "+p+" "+d+" L "+(l+s/2)+" "+d+" M "+l+" "+(d+h/2)+" L "+l+" "+(d+-h/2),stroke:r.fill});break;case"Cross":U.merge(r,{d:n="M "+p+" "+(d+-h/2)+" L "+(l+s/2)+" "+(d+h/2)+" M "+p+" "+(d+h/2)+" L "+(l+s/2)+" "+(d+-h/2),stroke:r.fill});break;case"HorizontalLine":U.merge(r,{d:n="M "+p+" "+d+" L "+(l+s/2)+" "+d,stroke:r.fill});break;case"VerticalLine":U.merge(r,{d:n="M "+l+" "+(d+h/2)+" L "+l+" "+(d+-h/2),stroke:r.fill});break;case"Diamond":U.merge(r,{d:n="M "+p+" "+d+" L "+l+" "+(d+-h/2)+" L "+(l+s/2)+" "+d+" L "+l+" "+(d+h/2)+" L "+p+" "+d+" z"});break;case"Rectangle":U.merge(r,{d:n="M "+p+" "+(d+-h/2)+" L "+(l+s/2)+" "+(d+-h/2)+" L "+(l+s/2)+" "+(d+h/2)+" L "+p+" "+(d+h/2)+" L "+p+" "+(d+-h/2)+" z"});break;case"Triangle":U.merge(r,{d:n="M "+p+" "+(d+h/2)+" L "+l+" "+(d+-h/2)+" L "+(l+s/2)+" "+(d+h/2)+" L "+p+" "+(d+h/2)+" z"});break;case"InvertedTriangle":U.merge(r,{d:n="M "+(l+s/2)+" "+(d-h/2)+" L "+l+" "+(d+h/2)+" L "+(l-s/2)+" "+(d-h/2)+" L "+(l+s/2)+" "+(d-h/2)+" z"});break;case"Pentagon":for(var y,u,g=0;g<=5;g++)y=s/2*Math.cos(Math.PI/180*(72*g)),u=h/2*Math.sin(Math.PI/180*(72*g)),n=0===g?"M "+(l+y)+" "+(d+u)+" ":n.concat("L "+(l+y)+" "+(d+u)+" ");n=n.concat("Z"),U.merge(r,{d:n});break;case"Image":a="Image",U.merge(r,{href:o,height:h,width:s,x:p,y:c});break;case"Star":for(var m=Math.min(s,h)/2,x=m/2,f=Math.PI/5,b="",g=0;g<10;g++){var v=g%2==0?m:x;b+=(0===g?"M":"L")+(l+v*Math.cos(g*f-Math.PI/2))+","+(d+v*Math.sin(g*f-Math.PI/2))}U.merge(r,{d:b+="Z"})}return{renderOption:r,functionName:a}}n(B,E=a);var E,N=B;function B(t,e,i,r,o,n,a){t=E.call(this,t)||this;return t.opacity=o,t.fill=e,t.stroke=r,t["stroke-width"]=i,t["stroke-dasharray"]=n,t.d=a,t}function q(t,e,i,r,o){var n=new h(""),i={id:t.id,x:t.x,y:t.y,fill:i,"font-size":e.size||o.size,"font-style":e.fontStyle||o.fontStyle,"font-family":e.fontFamily||o.fontFamily,"font-weight":e.fontWeight||o.fontWeight,"text-anchor":t.anchor,transform:t.transform,opacity:e.opacity,"dominant-baseline":t.baseLine},o="string"==typeof t.text?t.text:t.text[0],e=n.createText(i,o);return r&&r.appendChild(e),e}var p,u,f=function(t,e){this.x=t,this.y=e},n=(p=function(t,e){return(p=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}p(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),b=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;0<=s;s--)(o=t[s])&&(a=(n<3?o(a):3<n?o(e,i,a):o(e,i))||a);return 3<n&&a&&Object.defineProperty(e,i,a),a},z=(u=U.ChildProperty,n(v,u),b([U.Property(null)],v.prototype,"size",void 0),b([U.Property("")],v.prototype,"color",void 0),b([U.Property("Segoe UI")],v.prototype,"fontFamily",void 0),b([U.Property("Normal")],v.prototype,"fontWeight",void 0),b([U.Property("Normal")],v.prototype,"fontStyle",void 0),b([U.Property(1)],v.prototype,"opacity",void 0),v);function v(){return null!==u&&u.apply(this,arguments)||this}w=U.ChildProperty,n(F,w),b([U.Property("")],F.prototype,"color",void 0),b([U.Property(1)],F.prototype,"width",void 0),b([U.Property("")],F.prototype,"dashArray",void 0);var w,M=F;function F(){return null!==w&&w.apply(this,arguments)||this}S=U.ChildProperty,n(L,S),b([U.Property(0)],L.prototype,"x",void 0),b([U.Property(0)],L.prototype,"y",void 0),b([U.Property(0)],L.prototype,"width",void 0),b([U.Property(0)],L.prototype,"height",void 0);var S,R=L;function L(){return null!==S&&S.apply(this,arguments)||this}P=U.ChildProperty,n(A,P),b([U.Property(0)],A.prototype,"x",void 0),b([U.Property(0)],A.prototype,"y",void 0);var P,T=A;function A(){return null!==P&&P.apply(this,arguments)||this}O=U.Component,n(k,O),k.prototype.preRender=function(){this.allowServerDataBinding=!1,this.initPrivateVariable(),this.isCanvas||this.removeSVG(),this.createTooltipElement()},k.prototype.initPrivateVariable=function(){this.renderer=new h(this.element.id),this.themeStyle=r(this.theme),this.formattedText=[],this.padding=5,this.highlightPadding=3,this.areaMargin=10,this.isFirst=!0,this.markerPoint=[]},k.prototype.removeSVG=function(){var t=document.getElementById(this.element.id+"_svg"),e=document.getElementById(this.element.id+"parent_template");this.blazorTemplate&&U.resetBlazorTemplate(this.element.id+"parent_template_blazorTemplate"),t&&t.parentNode&&U.remove(t),e&&e.parentNode&&U.remove(e)},k.prototype.render=function(){this.fadeOuted=!1,this.template?(this.updateTemplateFn(),this.createTemplate(this.areaBounds,this.location)):(this.renderText(this.isFirst),this.trigger("tooltipRender",{cancel:!1,name:"tooltipRender",tooltip:this}),t=this.renderTooltipElement(this.areaBounds,this.location),this.drawMarker(t.isBottom,t.isRight,this.markerSize)),this.trigger("loaded",{tooltip:this});var t=document.getElementById("chartmeasuretext");t&&U.remove(t),this.allowServerDataBinding=!0},k.prototype.createTooltipElement=function(){var t,e;this.textElements=[],this.template&&!this.shared||(this.enableRTL&&this.element.setAttribute("dir","ltr"),e=this.renderer.createSvg({id:this.element.id+"_svg"}),this.element.appendChild(e),(t=document.getElementById(this.element.id+"_group"))||(t=this.renderer.createGroup({id:this.element.id+"_group"})).setAttribute("transform","translate(0,0)"),e.appendChild(t),e=this.renderer.drawPath({id:this.element.id+"_path","stroke-width":"Fabric"!==this.theme&&"Fluent"!==this.theme&&"Fluent2"!==this.theme||this.border.width?this.border.width:1,fill:this.fill||this.themeStyle.tooltipFill,opacity:("TailwindDark"===this.theme||"Tailwind"===this.theme||"Bootstrap5"===this.theme||"Bootstrap5Dark"===this.theme||-1<this.theme.indexOf("Fluent2"))&&.75===this.opacity?1:this.opacity,stroke:this.border.color||("Fabric"===this.theme||"Fluent"===this.theme||"Fluent2"===this.theme?"#D2D0CE":this.border.color)}),t.appendChild(e))},k.prototype.drawMarker=function(t,e,i){if(this.shapes.length<=0)return null;var r=0,o=this.renderer.createGroup({id:this.element.id+"_trackball_group"}),n=X(this.element.id+"_group");if(!n)return null;for(var a=(this.enableRTL?this.elementSize.width-i/2:2*this.marginX+i/2)+(e?this.arrowPadding:0),s=0,h=this.shapes;s<h.length;s++){var l,d,p,c=h[s];"None"!==c&&(p=new N(this.element.id+"_Trackball_"+r,this.palette[r],1,"#cccccc",1,null),this.markerPoint[r]&&(l=0,-1<this.header.indexOf("<br")&&(l=this.header.split(/<br.*?>/g).length+r),d=this.formattedText&&2<=this.formattedText.length?this.getTooltipTextContent(this.formattedText[1])+", "+this.getTooltipTextContent(this.formattedText[0]):"",o.appendChild(y(new f(a,this.markerPoint[r]-this.padding+(t?this.arrowPadding:l)),c,new G(i,i),"",p,"img",d))),r++)}n.appendChild(o)},k.prototype.renderTooltipElement=function(t,e){var i,r,o=X(this.element.id),n=new f(0,0),a=new f(0,0),s=X(this.element.id+"_svg"),h=X(this.element.id+"_group"),l=X(this.element.id+"_path"),d=!1,p=!1,c=!1,y=0,u=0;return U.isNullOrUndefined(h)||(""!==this.header&&(this.elementSize.height+=this.marginY),this.isFixed?(r=this.elementSize.width+2*this.marginX,i=this.elementSize.height+2*this.marginY,r=new m(e.x,e.y,r,i)):1<this.content.length?(r=this.sharedTooltipLocation(t,this.location.x,this.location.y),d=!0):(r=this.tooltipLocation(t,e,n,a),this.inverted?(y=(p=r.x<e.x+this.clipBounds.x)?0:this.arrowPadding,this.allowHighlight&&(r.x+=p?this.highlightPadding:-2*this.highlightPadding)):(c=!(d=r.y<e.y+this.clipBounds.y),u=d?0:this.arrowPadding)),""!==this.header&&(i=2,t=0,e=this.isWrap?this.wrappedText:this.header,this.isWrap&&"string"==typeof e&&(-1<e.indexOf("<")||-1<e.indexOf(">"))&&(i=e.split("<br>").length),-1<this.header.indexOf("<br")&&(t=5*(this.header.split(/<br.*?>/g).length-1)),e=U.extend({},this.textStyle,null,!0).properties,e=V(this.isWrap?this.wrappedText:this.header,e,this.themeStyle.textStyle).height+this.marginY*i+(c?this.arrowPadding:0)+(this.isWrap?5:t),i="M "+(3*this.marginX+(p||d||c?0:this.arrowPadding))+" "+e+"L "+(r.width+(p||d||c?0:this.arrowPadding)-2*this.marginX)+" "+e,t=this.renderer.drawPath({id:this.element.id+"_header_path","stroke-width":1,fill:null,opacity:"Material3"===this.theme?.2:.8,stroke:this.themeStyle.tooltipHeaderLine,d:i}),h.appendChild(t)),e=this.border.width/2,i=new m(e+y,e+u,r.width-e,r.height-e),h.setAttribute("opacity","1"),!this.enableAnimation||this.isFirst||this.crosshair?this.updateDiv(o,r.x,r.y):this.animateTooltipDiv(o,r),s.setAttribute("height",(r.height+this.border.width+(this.inverted?0:this.arrowPadding)+5).toString()),s.setAttribute("width",(r.width+this.border.width+(this.inverted?this.arrowPadding:0)+5).toString()),s.setAttribute("opacity","1"),U.isNullOrUndefined(this.tooltipPlacement)||(d=-1<this.tooltipPlacement.indexOf("Top"),c=-1<this.tooltipPlacement.indexOf("Bottom"),p=-1<this.tooltipPlacement.indexOf("Left")),l.setAttribute("d",g(this.rx,this.ry,i,n,this.arrowPadding,d,c,p,a.x,a.y,this.controlName)),(this.enableShadow&&"Bootstrap4"!==this.theme||-1<this.theme.indexOf("Fluent2"))&&(t=this.element.id+"_shadow","Tailwind"===this.theme||"TailwindDark"===this.theme||"Bootstrap5"===this.theme||"Bootstrap5Dark"===this.theme?l.setAttribute("box-shadow","0px 1px 2px rgba(0, 0, 0, 0.06), 0px 1px 3px rgba(0, 0, 0, 0.1)"):l.setAttribute("filter",U.Browser.isIE?"":"url(#"+t+")"),e='<filter id="'+t+'" height="130%"><feGaussianBlur in="SourceAlpha" stdDeviation="3"/>',-1<this.theme.indexOf("Fluent2")?e+='<feOffset dx="-1" dy="3.6" result="offsetblur"/><feComponentTransfer><feFuncA type="linear" slope="0.2"/>':e+='<feOffset dx="3" dy="3" result="offsetblur"/><feComponentTransfer><feFuncA type="linear" slope="0.5"/>',e+='</feComponentTransfer><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge></filter>',(o=this.renderer.createDefs()).setAttribute("id",this.element.id+"SVG_tooltip_definition"),h.appendChild(o),o.innerHTML=e),r="Fabric"!==this.theme&&"Fluent"!==this.theme&&"Fluent2"!==this.theme||this.border.color?this.border.color:"#D2D0CE",l.setAttribute("stroke",r),U.isNullOrUndefined(this.border.dashArray)||l.setAttribute("stroke-dasharray",this.border.dashArray),this.changeText(new f(y,u),c,!p&&!d&&!c),this.revert&&(this.inverted=!this.inverted,this.revert=!1)),new x(c,!p&&!d&&!c)},k.prototype.changeText=function(t,e,i){var r=document.getElementById(this.element.id+"_text");e&&r.setAttribute("transform","translate(0,"+this.arrowPadding+")"),i&&r.setAttribute("transform","translate("+this.arrowPadding+" 0)")},k.prototype.findFormattedText=function(){this.formattedText=[],""!==this.header.replace(/<b>/g,"").replace(/<\/b>/g,"").trim()&&(this.formattedText=this.formattedText.concat(this.header)),this.formattedText=this.formattedText.concat(this.content)},k.prototype.renderText=function(t){var e,i,r,o,n=0,a=0,s=0,h="properties",l=U.extend({},this.textStyle,null,!0)[h],R=X(this.element.id+"_group"),d="";this.findFormattedText(),this.isWrap=!1;for(var p,_="rtl"===document.body.getAttribute("dir")&&!this.enableRTL?"end":"start",c=(this.leftSpace=this.areaBounds.x+this.location.x,this.rightSpace=this.areaBounds.x+this.areaBounds.width-this.leftSpace,this.header.replace(/<b>/g,"").replace(/<\/b>/g,"").trim()),y=-1<this.header.indexOf("<b>")&&-1<this.header.indexOf("</b>"),u=V(this.formattedText[0],l,this.themeStyle.textStyle).width+2*this.marginX+this.arrowPadding,D=this.location.x-u<this.location.x,I=this.areaBounds.x+this.areaBounds.width<this.location.x+u,g=""!==c?this.marginY:0,m=!0,x=!0,f=(this.markerPoint=[],0<this.shapes.length?10:0),b=0<this.shapes.length?5:0,v="12px",w="400",F=this.themeStyle.tooltipLightLabel,S=22/parseFloat(v)*parseFloat(l.size),L=[],P=0,T=(t&&!this.isCanvas||(Y(this.element.id+"_text"),Y(this.element.id+"_header_path"),Y(this.element.id+"_trackball_group"),Y(this.element.id+"SVG_tooltip_definition")),"Chart"===this.controlName&&parseFloat(v)<parseFloat(l.size)&&(P=parseFloat(l.size)-parseFloat(v)),new Q(this.element.id+"_text",2*this.marginX,P+2*this.marginY+2*this.padding+(2===this.marginY?"RangeNavigator"===this.controlName?5:3:0),_,"")),A=q(T,l,l.color||this.themeStyle.tooltipBoldLabel,R,this.themeStyle.textStyle),W=1===this.formattedText.length&&-1<this.formattedText[0].indexOf(" : <b>"),O=""!==this.header,k=O&&y?16:13,C=0,j=this.formattedText.length;C<j;C++)if(r=this.formattedText[C].replace(/<(b|strong)>/g,"<b>").replace(/<\/(b|strong)>/g,"</b>").split(/<br.*?>/g),this.isTextWrap&&this.header!==this.formattedText[C]&&-1===this.formattedText[C].indexOf("<br")&&(p=Math.round(this.leftSpace>this.rightSpace?this.leftSpace/k:this.rightSpace/k),r=this.formattedText[C].match(new RegExp(".{1,"+p+"}","g"))),0===C&&!W&&this.isTextWrap&&(this.leftSpace<u||D)&&(this.rightSpace<u||I)&&(p=Math.round(this.leftSpace>this.rightSpace?this.leftSpace/k:this.rightSpace/k),r=(""!==c?c:this.formattedText[C]).match(new RegExp(".{1,"+p+"}","g")),this.wrappedText=y?"<b>"+r.join("<br>")+"</b>":r.join("<br>"),this.isWrap=1<r.length),""!==r[0]){0===C&&""!==c||this.markerPoint.push((""!==c?this.marginY:0)+T.y+n-(0!==P?P/this.markerSize*(parseFloat(l.size)/this.markerSize):0));for(var E=0,H=r.length;E<H;E++){e=r[E].replace(/<b>/g,"<br><b>").replace(/<\/b>/g,"</b><br>").replace(/:/g,this.enableRTL?"<br>‎: <br>":"<br>‎:<br>").split("<br>"),this.enableRTL&&0<e.length&&r[E].match(/:/g)&&(e[0]=e[0].trim(),e.reverse()),x=!(s=0),n+=S;for(var N=0,B=e.length;N<B;N++){var z,M=e[N];this.enableRTL&&""!==M&&this.isRTLText(M)&&(M=M.concat("‎")),/\S/.test(M)||""===M||(M=" "),(x||" "!==M)&&""===M.replace(/<b>/g,"").replace(/<\/b>/g,"").trim()||(s+=" "!==M?4:0,x&&!m?(-1<this.header.indexOf("<br")&&0!==C&&(g+=this.header.split(/<br.*?>/g).length),o={x:2*this.marginX+(f+b),dy:S+(x?g:0),fill:""},g=null):o=m&&x?{x:""===c?2*this.marginX+(f+b):2*this.marginX+(this.isWrap?f+b:0)}:{},x=!1,i=this.renderer.createTSpan(o,""),A.appendChild(i),d=-1<M.indexOf("<b>")||y&&0===N&&0===C&&(O||this.isWrap)?(F=this.themeStyle.tooltipBoldLabel,"font-weight:"+(w="600")):"600"===w?"font-weight:"+w:"",l.fontWeight=w,i.setAttribute("fill",this.textStyle.color||F),(-1<M.indexOf("</b>")||y&&N===B-1&&0===C&&(O||this.isWrap))&&(w="Normal",F=this.themeStyle.tooltipLightLabel),""!==d&&(i.style.fontWeight=d.split("font-weight:")[1],i.style.color=i.getAttribute("fill")),i.style.fontFamily="inherit",i.style.fontStyle="inherit",i.style.fontSize=(this.header===this.formattedText[C]?l:this.textStyle).size,i.style.fontWeight=this.header===this.formattedText[C]&&-1===(this.header.indexOf("<b>")||this.header.indexOf("</b>"))?this.textStyle.fontWeight||"600":-1<M.indexOf("<b>")||-1<M.indexOf("</b>")?"bold":this.textStyle.fontWeight||l.fontWeight,(z=U.extend({},this.textStyle,null,!0)[h]).fontWeight=i.style.fontWeight,m=!1,i.textContent=M=this.getTooltipTextContent(M),s+=V(M,z,this.themeStyle.textStyle).width)}s-=4,a=Math.max(a,s),L.push(s)}}this.elementSize=new G(a+(0<a?2*this.marginX:0),n),this.elementSize.width+=f+b;t=A.childNodes[0];""!==c&&t&&!this.isWrap&&(l.fontWeight="600",v=(this.elementSize.width+2*this.padding)/2-V(c,l,this.themeStyle.textStyle).width/2,t.setAttribute("x",v.toString())),this.renderContentRTL(A,O,f+b,L)},k.prototype.renderContentRTL=function(t,e,i,r){if(this.enableRTL)for(var o=void 0,n=e?1:0,a=0;a<t.childNodes.length;a++)o=t.childNodes[a],e&&!(0<a)||U.isNullOrUndefined(o.getAttribute("x"))||(o.setAttribute("x",(this.elementSize.width-(i+r[n])).toString()),n++)},k.prototype.getTooltipTextContent=function(t){var e=t.match(/<[a-zA-Z\/](.|\n)*?>/g);if(!U.isNullOrUndefined(e))for(var i=this.isRTLText(t),r=0;r<e.length;r++)this.isValidHTMLElement(e[r].replace("<","").replace("/","").replace(">","").trim())&&(t=t.replace(e[r],i?"‎":""));return t},k.prototype.isValidHTMLElement=function(t){return"[object HTMLUnknownElement]"!==document.createElement(t).toString()},k.prototype.isRTLText=function(t){return/[\u0590-\u07FF\u200F\u202B\u202E\uFB1D-\uFDFD\uFE70-\uFEFC]/.test(t)},k.prototype.createTemplate=function(e,i){var t={cancel:!1,name:"tooltipRender",tooltip:this},r=(this.trigger("tooltipRender",t),document.getElementById(this.element.id)),o=(this.isCanvas&&this.removeSVG(),r.firstElementChild);if(o&&U.remove(o),t.cancel)U.remove(X(this.element.id+"_tooltip"));else{var n=U.createElement("div",{id:this.element.id+"parent_template"}),a=void 0;if("Chart"===this.controlName&&this.shared)for(var s=0;s<this.data.length;s++){var h=this.templateFn(this.data[s],this.controlInstance,n.id,n.id+"_blazorTemplate","");0===s?a=h:1<h.length?a[s].outerHTML=h[s].outerHTML||h[s].textContent:a[a.length-1].outerHTML+=h[0].outerHTML}else a=this.templateFn(this.data,this.controlInstance,n.id,n.id+"_blazorTemplate","");for(;a&&0<a.length;)U.isBlazor()||1===a.length?(n.appendChild(a[0]),a=null):n.appendChild(a[0]);r.appendChild(n);var l,o=this.isCanvas?n:this.element,t=o.getBoundingClientRect(),r=(this.padding=0,this.elementSize=new G(t.width,t.height),this.shared?this.sharedTooltipLocation(e,this.location.x,this.location.y):this.tooltipLocation(e,i,new f(0,0),new f(0,0)));!this.enableAnimation||this.isFirst||this.crosshair?this.updateDiv(o,r.x,r.y):this.animateTooltipDiv(this.element,r),this.blazorTemplate&&(l=this,(t=function(){var t=X(l.element.id).getBoundingClientRect(),t=(l.elementSize=new G(t.width,t.height),l.tooltipLocation(e,i,new f(0,0),new f(0,0)));l.updateDiv(X(l.element.id),t.x,t.y)}).bind(l,e,i),U.updateBlazorTemplate(this.element.id+"parent_template_blazorTemplate",this.blazorTemplate.name,this.blazorTemplate.parent,void 0,t))}},k.prototype.sharedTooltipLocation=function(t,e,i){var r=this.elementSize.width+2*this.marginX,o=this.elementSize.height+2*this.marginY,e=new m(e+2*this.padding,i-o-this.padding,r,o);return e.y<t.y&&(e.y+=e.height+2*this.padding),e.y+e.height>t.y+t.height&&(e.y=Math.max(t.y+t.height-(e.height+2*this.padding),t.y)),e.x+e.width>t.x+t.width&&(e.x=t.x+this.location.x-(e.width+4*this.padding)),e.x<t.x&&(e.x=t.x),e},k.prototype.getCurrentPosition=function(t,e,i,r){var o=this.tooltipPlacement,n=this.clipBounds.x,a=this.clipBounds.y,s=this.offset,h=this.elementSize.width+2*this.marginX,l=this.elementSize.height+2*this.marginY,d=new f(e.x,e.y);return"Top"===o||"Bottom"===o?(d=new f(d.x+n-this.elementSize.width/2-this.padding,d.y+a-this.elementSize.height-2*this.padding-this.arrowPadding-s),i.x=r.x=h/2,"Bottom"===o&&(d.y=e.y+a+s),t.x+t.width<d.x+h?(d.x=t.width>h?t.x+t.width-h+6:t.x,i.x=r.x=t.width>h?t.x+e.x-d.x:e.x):t.x>d.x&&(d.x=t.x,i.x=r.x=e.x)):(d=new f(d.x+n+s,d.y+a-this.elementSize.height/2-this.padding),i.y=r.y=l/2,"Left"===o&&(d.x=e.x+n-s-(h+this.arrowPadding)),t.y+t.height<d.y+l?(d.y=t.height>l?t.y+t.height-l+6:t.y,i.y=r.y=t.height>l?t.y+e.y-d.y:e.y):t.y>d.y&&(d.y=t.y,i.y=r.y=e.y)),new m(d.x,d.y,h,l)},k.prototype.tooltipLocation=function(t,e,i,r){var o,n,a,s,h,l,d,p;return U.isNullOrUndefined(this.tooltipPlacement)?(o=new f(e.x,e.y),n=this.elementSize.width+2*this.marginX,a=this.elementSize.height+2*this.marginY,s=this.offset,h=this.clipBounds.x,l=this.clipBounds.y,d=t.x,p=t.y,this.outOfBounds=!1,this.inverted?(o=new f(o.x+h+s,o.y+l-this.elementSize.height/2-this.padding),i.y=r.y=a/2,(o.x+n+this.arrowPadding>d+t.width||this.isNegative)&&(o.x=(e.x>t.width+t.x?t.width:e.x)+h-s-(n+this.arrowPadding)),o.x<d&&(o.x=(e.x<0?0:e.x)+h+s),o.x+n+this.arrowPadding>d+t.width&&(o.x=(e.x>t.width+t.x?t.width:e.x)+h-s-(n+this.arrowPadding)),o.y<=p&&(i.y-=p-o.y,r.y-=p-o.y,o.y=p),o.y+a>=p+t.height&&(i.y+=o.y+a-(p+t.height),r.y+=o.y+a-(p+t.height),o.y-=o.y+a-(p+t.height)),i.y+this.arrowPadding>a-this.ry&&(i.y=a-this.ry-this.arrowPadding,r.y=a),i.y-this.arrowPadding<this.ry&&(i.y=r.y=this.ry+this.arrowPadding),"Chart"===this.controlName&&((o.y+i.y<this.areaMargin+this.arrowPadding||t.y+t.height-(o.y+i.y)<this.areaMargin+this.arrowPadding)&&(this.outOfBounds=!0),c(o.x,o.y,t)&&!this.outOfBounds||(this.inverted=!this.inverted,o=new f(e.x+h-this.padding-this.elementSize.width/2,e.y+l-this.elementSize.height-2*this.padding-s-this.arrowPadding),this.revert=!0,r.x=i.x=n/2,r.y=i.y=0,(o.y<p||this.isNegative)&&(o.y=(e.y<0?0:e.y)+s+l),o.y+this.arrowPadding+a>p+t.height&&(o.y=Math.min(e.y,p+t.height)+l-this.elementSize.height-2*this.padding-s-this.arrowPadding),r.x=n/2,o.x<d&&(r.x-=d-o.x,i.x-=d-o.x,o.x=d),o.x+n>t.width+d&&(i.x+=o.x+n-(t.width+d),r.x+=o.x+n-(t.width+d),o.x-=o.x+n-(t.width+d)),this.arrowPadding+i.x>n-this.rx&&(r.x=n-this.rx-this.arrowPadding,i.x=n-this.rx-this.arrowPadding),i.x-this.arrowPadding<this.rx&&(i.x=r.x=this.rx+this.arrowPadding)))):(o=new f(o.x+h-this.elementSize.width/2-this.padding,o.y+l-this.elementSize.height-2*(this.allowHighlight?this.highlightPadding:this.padding)-this.arrowPadding-s),i.x=r.x=n/2,(o.y<p||this.isNegative)&&"Progressbar"!==this.controlName&&(o.y=(e.y<0?0:e.y)+l+s),o.y+a+this.arrowPadding>p+t.height&&(o.y=Math.min(e.y,p+t.height)+l-this.elementSize.height-2*this.padding-this.arrowPadding-s),(o.x+n>d+t.width&&o.y<p||this.isNegative)&&"Progressbar"!==this.controlName&&(o.y=(e.y<0?0:e.y)+l+s),r.x=n/2,o.x<d&&"Progressbar"!==this.controlName&&(i.x-=d-o.x,r.x-=d-o.x,o.x=d),o.x+n>d+t.width&&"Progressbar"!==this.controlName&&(i.x+=o.x+n-(d+t.width),r.x+=o.x+n-(d+t.width),o.x-=o.x+n-(d+t.width)),o.x<d&&"Progressbar"!==this.controlName&&(i.x-=d-o.x,r.x-=d-o.x,o.x=d),i.x+this.arrowPadding>n-this.rx&&(i.x=n-this.rx-this.arrowPadding,r.x=n-this.rx-this.arrowPadding),i.x-this.arrowPadding<this.rx&&(i.x=r.x=this.rx+this.arrowPadding),"Chart"===this.controlName&&((t.x+t.width-(o.x+i.x)<this.areaMargin+this.arrowPadding||o.x+i.x<this.areaMargin+this.arrowPadding)&&(this.outOfBounds=!0),this.template&&o.y<0&&(o.y=e.y+l+s),c(o.x,o.y,t)&&!this.outOfBounds||(this.inverted=!this.inverted,this.revert=!0,o=new f(e.x+s+h,e.y+l-this.elementSize.height/2-this.padding),r.x=i.x=0,r.y=i.y=a/2,(o.x+this.arrowPadding+n>d+t.width||this.isNegative)&&(o.x=(e.x>d+t.width?t.width:e.x)+h-s-(this.arrowPadding+n)),o.x<d&&(o.x=(e.x<0?0:e.x)+s+h),o.y<=p&&(r.y-=p-o.y,i.y-=p-o.y,o.y=p),o.y+a>=t.height+p&&(i.y+=o.y+a-(t.height+p),r.y+=o.y+a-(t.height+p),o.y-=o.y+a-(t.height+p)),this.arrowPadding+i.y>a-this.ry&&(i.y=a-this.arrowPadding-this.ry,r.y=a),i.y-this.arrowPadding<this.ry&&(i.y=this.arrowPadding+this.ry,r.y=0)))),new m(o.x,o.y,n,a)):this.getCurrentPosition(t,e,i,r)},k.prototype.animateTooltipDiv=function(e,i){var r,o=this,n=parseFloat(e.style.left),a=parseFloat(e.style.top);new U.Animation({}).animate(e,{duration:0===this.duration&&"Enable"===U.animationMode?300:this.duration,progress:function(t){r=t.timeStamp/t.duration,e.style.animation=null,"Chart"===o.controlName&&o.shared&&!o.enableRTL?(e.style.transition=U.isBlazor()?"transform 0.3s":"transform 0.1s",e.style.transform="translate("+(n+r*(i.x-n))+"px,"+(a+r*(i.y-a))+"px)",e.style.left="",e.style.top=""):(e.style.left=n+r*(i.x-n)+"px",e.style.top=a+r*(i.y-a)+"px",e.style.transform="RangeNavigator"===o.controlName?e.style.transform:"")},end:function(t){o.updateDiv(e,i.x,i.y),o.trigger("animationComplete",{tooltip:o})}})},k.prototype.updateDiv=function(t,e,i){"Chart"!==this.controlName||!this.shared||this.crosshair||this.enableRTL?(t.style.left=e+"px",t.style.top=i+"px",t.style.transform="RangeNavigator"===this.controlName?t.style.transform:""):(t.style.transform="translate("+e+"px,"+i+"px)",t.style.left="",t.style.top="")},k.prototype.updateTemplateFn=function(){if(this.template)try{"function"!=typeof this.template&&document.querySelectorAll(this.template).length?this.templateFn=U.compile(document.querySelector(this.template).innerHTML.trim()):this.templateFn=U.compile(this.template)}catch(t){this.templateFn=U.compile(this.template)}},k.prototype.fadeOut=function(){var e=this,t=this.isCanvas&&!this.template?X(this.element.id+"_svg"):X(this.element.id),i=X(this.element.id);if(t){var r=t.firstChild;if(r.nodeType!==Node.ELEMENT_NODE&&(r=t.firstElementChild),!(r=this.isCanvas&&!this.template?document.getElementById(this.element.id+"_group")?document.getElementById(this.element.id+"_group"):r:r))return null;var o=parseFloat(r.getAttribute("opacity")),o=U.isNullOrUndefined(o)?1:o;new U.Animation({}).animate(r,{duration:200,progress:function(t){e.progressAnimation(r,o,t.timeStamp/t.duration)},end:function(){e.fadeOuted=!0,e.endAnimation(r),i.style.transition=""}})}},k.prototype.progressAnimation=function(t,e,i){t.style.animation="",t.setAttribute("opacity",(e-i).toString())},k.prototype.endAnimation=function(t){t.setAttribute("opacity","0"),this.template&&(t.style.display="none"),this.trigger("animationComplete",{tooltip:this})},k.prototype.getPersistData=function(){return this.addOnPersist([])},k.prototype.getModuleName=function(){return"tooltip"},k.prototype.destroy=function(){O.prototype.destroy.call(this),this.element.classList.remove("e-tooltip")},b([U.Property(!(k.prototype.onPropertyChanged=function(t,e){this.blazorTemplate&&U.resetBlazorTemplate(this.element.id+"parent_template_blazorTemplate"),this.isFirst=!1,this.render()}))],k.prototype,"enable",void 0),b([U.Property(!1)],k.prototype,"shared",void 0),b([U.Property(!1)],k.prototype,"crosshair",void 0),b([U.Property(!1)],k.prototype,"enableShadow",void 0),b([U.Property(null)],k.prototype,"fill",void 0),b([U.Property("")],k.prototype,"header",void 0),b([U.Property(.75)],k.prototype,"opacity",void 0),b([U.Complex({size:"12px",fontWeight:null,color:null,fontStyle:"Normal",fontFamily:null},z)],k.prototype,"textStyle",void 0),b([U.Property(null)],k.prototype,"template",void 0),b([U.Property(!0)],k.prototype,"enableAnimation",void 0),b([U.Property(300)],k.prototype,"duration",void 0),b([U.Property(!1)],k.prototype,"inverted",void 0),b([U.Property(!1)],k.prototype,"isNegative",void 0),b([U.Complex({color:null,width:null},M)],k.prototype,"border",void 0),b([U.Property([])],k.prototype,"content",void 0),b([U.Property(10)],k.prototype,"markerSize",void 0),b([U.Complex({x:0,y:0},T)],k.prototype,"clipBounds",void 0),b([U.Property([])],k.prototype,"palette",void 0),b([U.Property([])],k.prototype,"shapes",void 0),b([U.Complex({x:0,y:0},T)],k.prototype,"location",void 0),b([U.Property(0)],k.prototype,"offset",void 0),b([U.Property(4)],k.prototype,"rx",void 0),b([U.Property(4)],k.prototype,"ry",void 0),b([U.Property(5)],k.prototype,"marginX",void 0),b([U.Property(5)],k.prototype,"marginY",void 0),b([U.Property(7)],k.prototype,"arrowPadding",void 0),b([U.Property(null)],k.prototype,"data",void 0),b([U.Property("Material")],k.prototype,"theme",void 0),b([U.Complex({x:0,y:0,width:0,height:0},R)],k.prototype,"areaBounds",void 0),b([U.Property(null)],k.prototype,"availableSize",void 0),b([U.Property()],k.prototype,"blazorTemplate",void 0),b([U.Property(!1)],k.prototype,"isCanvas",void 0),b([U.Property(!1)],k.prototype,"isTextWrap",void 0),b([U.Property(!1)],k.prototype,"isFixed",void 0),b([U.Property(null)],k.prototype,"tooltipPlacement",void 0),b([U.Property(null)],k.prototype,"controlInstance",void 0),b([U.Property("")],k.prototype,"controlName",void 0),b([U.Event()],k.prototype,"tooltipRender",void 0),b([U.Event()],k.prototype,"loaded",void 0),b([U.Event()],k.prototype,"animationComplete",void 0),b([U.Property(!1)],k.prototype,"enableRTL",void 0),b([U.Property(!1)],k.prototype,"allowHighlight",void 0);var O,n=b([U.NotifyPropertyChanges],k);function k(t,e){return O.call(this,t,e)||this}t.AreaBounds=R,t.CanvasRenderer=C,t.CustomizeOption=a,t.PathOption=N,t.Rect=m,t.Side=x,t.Size=G,t.SvgRenderer=h,t.TextOption=Q,t.TextStyle=z,t.ToolLocation=T,t.Tooltip=n,t.TooltipBorder=M,t.TooltipLocation=f,t.calculateShapes=d,t.drawSymbol=y,t.findDirection=g,t.getElement=X,t.getTooltipThemeColor=r,t.measureText=V,t.removeElement=Y,t.textElement=q,t.withInAreaBounds=c,Object.defineProperty(t,"__esModule",{value:!0})});
//# sourceMappingURL=ej2-svg-base.umd.min.js.map
/*!
* filename: ej2-svg-base.min.js
* version : 26.2.5
* version : 26.2.8
* Copyright Syncfusion Inc. 2001 - 2023. 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.svgbase=function(t,e){"use strict";function i(t){var e;switch(t){case"Highcontrast":case"HighContrast":e={tooltipFill:"#ffffff",tooltipBoldLabel:"#000000",tooltipLightLabel:"#000000",tooltipHeaderLine:"#969696",textStyle:{fontFamily:"Segoe UI",color:"#000000",fontWeight:null}};break;case"MaterialDark":case"FabricDark":case"BootstrapDark":e={tooltipFill:"MaterialDark"===t?"#F4F4F4":"FabricDark"===t?"#A19F9D":"#F0F0F0",tooltipBoldLabel:"MaterialDark"===t?"rgba(18, 18, 18, 1)":"FabricDark"===t?"#DADADA":"#1A1A1A",tooltipLightLabel:"MaterialDark"===t?"rgba(18, 18, 18, 1)":"FabricDark"===t?"#DADADA":"#1A1A1A",tooltipHeaderLine:"#9A9A9A",textStyle:"MaterialDark"===t?{fontFamily:"Roboto",color:"rgba(18, 18, 18, 1)",fontWeight:null}:"FabricDark"===t?{fontFamily:"Segoe UI",color:"#DADADA",fontWeight:null}:{fontFamily:"Helvetica",color:"#1A1A1A",fontWeight:null}};break;case"Bootstrap4":e={tooltipFill:"#212529",tooltipBoldLabel:"#F9FAFB",tooltipLightLabel:"#F9FAFB",tooltipHeaderLine:"rgba(255, 255, 255, 0.2)",textStyle:{fontFamily:"Helvetica",color:"#F9FAFB",fontWeight:null}};break;case"Tailwind":e={tooltipFill:"#111827",tooltipBoldLabel:"#F9FAFB",tooltipLightLabel:"#F9FAFB",tooltipHeaderLine:"#6B7280",textStyle:{fontFamily:"Inter",color:"#F9FAFB",fontWeight:null}};break;case"TailwindDark":e={tooltipFill:"#E9ECEF",tooltipBoldLabel:"#1F2937",tooltipLightLabel:"#1F2937",tooltipHeaderLine:"#9CA3AF",textStyle:{fontFamily:"Inter",color:"#1F2937",fontWeight:null}};break;case"Bootstrap5":e={tooltipFill:"#212529",tooltipBoldLabel:"#F9FAFB",tooltipLightLabel:"#F9FAFB",tooltipHeaderLine:"#9CA3AF",textStyle:{fontFamily:"Helvetica",color:"#F9FAFB",fontWeight:null}};break;case"Bootstrap5Dark":e={tooltipFill:"#E9ECEF",tooltipBoldLabel:"#212529",tooltipLightLabel:"#212529",tooltipHeaderLine:"#ADB5BD",textStyle:{fontFamily:"Helvetica",color:"#212529",fontWeight:null}};break;case"Fluent":e={tooltipFill:"#FFFFFF",tooltipBoldLabel:"#323130",tooltipLightLabel:"#323130",tooltipHeaderLine:"#D2D0CE",textStyle:{fontFamily:"Segoe UI",color:"#323130",fontWeight:null}};break;case"FluentDark":e={tooltipFill:"#323130",tooltipBoldLabel:"#F3F2F2",tooltipLightLabel:"#F3F2F1",tooltipHeaderLine:"#3B3A39",textStyle:{fontFamily:"Segoe UI",color:"#F3F2F1",fontWeight:null}};break;case"Fluent2":e={tooltipFill:"#FFFFFF",tooltipBoldLabel:"#242424",tooltipLightLabel:"#242424",tooltipHeaderLine:"#D2D0CE",textStyle:{fontFamily:"Segoe UI",color:"#242424",fontWeight:null}};break;case"Fluent2Dark":e={tooltipFill:"#292929",tooltipBoldLabel:"#FFFFFF",tooltipLightLabel:"#FFFFFF",tooltipHeaderLine:"#3B3A39",textStyle:{fontFamily:"Segoe UI",color:"#FFFFFF",fontWeight:null}};break;case"Material3":e={tooltipFill:"#313033",tooltipBoldLabel:"#F4EFF4",tooltipLightLabel:"#F4EFF4",tooltipHeaderLine:"#F4EFF4",textStyle:{fontFamily:"Roboto",color:"#F4EFF4",fontWeight:null}};break;case"Material3Dark":e={tooltipFill:"#E6E1E5",tooltipBoldLabel:"#313033",tooltipLightLabel:"#313033",tooltipHeaderLine:"#313033",textStyle:{fontFamily:"Roboto",color:"#313033",fontWeight:null}};break;default:e={tooltipFill:"Material"===t?"#000816":"Fabric"===t?"#FFFFFF":"#212529",tooltipBoldLabel:"Material"===t?"rgba(249, 250, 251, 1)":"Fabric"===t?"#333333":"#F9FAFB",tooltipLightLabel:"Material"===t?"rgba(249, 250, 251, 1)":"Fabric"===t?"#333333":"#F9FAFB",tooltipHeaderLine:"Fabric"===t?"#D2D0CE":"#ffffff",textStyle:"Material"===t?{fontFamily:"Roboto",color:"rgba(249, 250, 251, 1)",fontWeight:null}:"Fabric"===t?{fontFamily:"Segoe UI",color:"#333333",fontWeight:null}:{fontFamily:"Helvetica",color:"#F9FAFB",fontWeight:null}}}return e}function r(t,i,r){var o=t||"",n=document.getElementById("chartmeasuretext");if(null===n&&(n=e.createElement("text",{id:"chartmeasuretext"}),document.body.appendChild(n)),"string"==typeof t&&(t.indexOf("<")>-1||t.indexOf(">")>-1)){for(var a=t.split(" "),s=0;s<a.length;s++)-1===a[s].indexOf("<br/>")&&(a[s]=a[s].replace(/[<>]/g,"&"));t=a.join(" ")}n.innerHTML=o.indexOf("<br>")>-1||o.indexOf("<br/>")>-1?o:t,n.style.position="fixed",n.style.fontSize=i.size||r.size,n.style.fontStyle=i.fontStyle||r.fontStyle,n.style.fontFamily=i.fontFamily||r.fontFamily,n.style.visibility="hidden",n.style.top="-100",n.style.left="0",n.style.whiteSpace="nowrap",n.style.lineHeight="normal";var h=n.clientWidth,l=n.clientHeight,d=n.style.fontWeight;return n.style.fontWeight=i.fontWeight||r.fontWeight,new u("bold"===n.style.fontWeight&&"normal"===d?Math.max(h,n.clientWidth):n.clientWidth,"bold"===n.style.fontWeight&&"normal"===d?Math.max(l,n.clientHeight):n.clientHeight)}function o(t,e,i,r,o){return void 0===r&&(r=0),void 0===o&&(o=0),t>=i.x-r&&t<=i.x+i.width+r&&e>=i.y-o&&e<=i.y+i.height+o}function n(t,e,i,r,o,n,a,s,h,l,d){void 0===d&&(d="");var p="",c=i.x,y=i.y,u=i.x+i.width,g=i.y+i.height;return n?(p=(p=p.concat("M "+c+" "+(y+e)+" Q "+c+" "+y+" "+(c+t)+" "+y+" L "+(u-t)+" "+y+" Q "+u+" "+y+" "+u+" "+(y+e))).concat(" L "+u+" "+(g-e)+" Q "+u+" "+g+" "+(u-t)+" "+g),0!==o&&(p="RangeNavigator"===d?r.x-o>u/2?(p=p.concat(" L "+(r.x+o)+" "+g)).concat(" L "+(h+o)+" "+(g+o)+" L "+r.x+" "+g):(p=p.concat(" L "+r.x+" "+g)).concat(" L "+(h-o)+" "+(g+o)+" L "+(r.x-o)+" "+g):(p=p.concat(" L "+(r.x+o)+" "+g)).concat(" L "+h+" "+(g+o)+" L "+(r.x-o)+" "+g)),p=r.x-o>c?p.concat(" L "+(c+t)+" "+g+" Q "+c+" "+g+" "+c+" "+(g-e)+" z"):0===o?p.concat(" L "+(c+t)+" "+g+" Q "+c+" "+g+" "+c+" "+(g-e)+" z"):p.concat(" L "+c+" "+(g+e)+" z")):a?p=(p=(p=(p=(p=p.concat("M "+c+" "+(y+e)+" Q "+c+" "+y+" "+(c+t)+" "+y+" L "+(r.x-o)+" "+y)).concat(" L "+h+" "+r.y)).concat(" L "+(r.x+o)+" "+y)).concat(" L "+(u-t)+" "+y+" Q "+u+" "+y+" "+u+" "+(y+e))).concat(" L "+u+" "+(g-e)+" Q "+u+" "+g+" "+(u-t)+" "+g+" L "+(c+t)+" "+g+" Q "+c+" "+g+" "+c+" "+(g-e)+" z"):s?(p=(p=p.concat("M "+c+" "+(y+e)+" Q "+c+" "+y+" "+(c+t)+" "+y)).concat(" L "+(u-t)+" "+y+" Q "+u+" "+y+" "+u+" "+("RangeNavigator"===d?0:y+e)+" L "+u+" "+("RangeNavigator"===d?0:r.y-o)),p="RangeNavigator"===d?p.concat(" L "+(u+o)+" 0"):p.concat(" L "+(u+o)+" "+l),p=(p=(p="RangeNavigator"===d?p.concat(" L "+u+" "+(r.y-e)):p.concat(" L "+u+" "+(r.y+o))).concat(" L "+u+" "+(g-e)+" Q "+u+" "+g+" "+(u-t)+" "+g)).concat(" L "+(c+t)+" "+g+" Q "+c+" "+g+" "+c+" "+(g-e)+" z")):(p=p.concat("M "+(c+t)+" "+y+" Q "+c+" "+y+" "+c+" "+("RangeNavigator"===d?0:y+e)+" L "+c+" "+("RangeNavigator"===d?0:r.y-o)),p="RangeNavigator"===d?p.concat(" L "+(c-o)+" 0"):p.concat(" L "+(c-o)+" "+l),p=(p=(p="RangeNavigator"===d?p.concat(" L "+c+" "+(r.y-e)):p.concat(" L "+c+" "+(r.y+o))).concat(" L "+c+" "+(g-e)+" Q "+c+" "+g+" "+(c+t)+" "+g)).concat(" L "+(u-t)+" "+g+" Q "+u+" "+g+" "+u+" "+(g-e)+" L "+u+" "+(y+e)+" Q "+u+" "+y+" "+(u-t)+" "+y+" z")),p}function a(t){return document.getElementById(t)}function s(t){var i=a(t);i&&e.remove(i)}function h(t,e,i,r,o,n,a){var s=new p(""),h=l(t,i,e,o,r),d=s["draw"+h.functionName](h.renderOption);return d.setAttribute("role",n),d.setAttribute("aria-label",a),d}function l(t,i,r,o,n){var a,s="Path",h=i.width,l=i.height,d=t.x,p=t.y,c=t.x+-h/2,y=t.y+-l/2;switch(r){case"Circle":case"Bubble":s="Ellipse",e.merge(o,{rx:h/2,ry:l/2,cx:d,cy:p});break;case"Plus":a="M "+c+" "+p+" L "+(d+h/2)+" "+p+" M "+d+" "+(p+l/2)+" L "+d+" "+(p+-l/2),e.merge(o,{d:a,stroke:o.fill});break;case"Cross":a="M "+c+" "+(p+-l/2)+" L "+(d+h/2)+" "+(p+l/2)+" M "+c+" "+(p+l/2)+" L "+(d+h/2)+" "+(p+-l/2),e.merge(o,{d:a,stroke:o.fill});break;case"HorizontalLine":a="M "+c+" "+p+" L "+(d+h/2)+" "+p,e.merge(o,{d:a,stroke:o.fill});break;case"VerticalLine":a="M "+d+" "+(p+l/2)+" L "+d+" "+(p+-l/2),e.merge(o,{d:a,stroke:o.fill});break;case"Diamond":a="M "+c+" "+p+" L "+d+" "+(p+-l/2)+" L "+(d+h/2)+" "+p+" L "+d+" "+(p+l/2)+" L "+c+" "+p+" z",e.merge(o,{d:a});break;case"Rectangle":a="M "+c+" "+(p+-l/2)+" L "+(d+h/2)+" "+(p+-l/2)+" L "+(d+h/2)+" "+(p+l/2)+" L "+c+" "+(p+l/2)+" L "+c+" "+(p+-l/2)+" z",e.merge(o,{d:a});break;case"Triangle":a="M "+c+" "+(p+l/2)+" L "+d+" "+(p+-l/2)+" L "+(d+h/2)+" "+(p+l/2)+" L "+c+" "+(p+l/2)+" z",e.merge(o,{d:a});break;case"InvertedTriangle":a="M "+(d+h/2)+" "+(p-l/2)+" L "+d+" "+(p+l/2)+" L "+(d-h/2)+" "+(p-l/2)+" L "+(d+h/2)+" "+(p-l/2)+" z",e.merge(o,{d:a});break;case"Pentagon":for(var u=void 0,g=void 0,f=0;f<=5;f++)u=h/2*Math.cos(Math.PI/180*(72*f)),g=l/2*Math.sin(Math.PI/180*(72*f)),a=0===f?"M "+(d+u)+" "+(p+g)+" ":a.concat("L "+(d+u)+" "+(p+g)+" ");a=a.concat("Z"),e.merge(o,{d:a});break;case"Image":s="Image",e.merge(o,{href:n,height:l,width:h,x:c,y:y})}return{renderOption:o,functionName:s}}function d(t,e,i,r,o){var n={},a=new p("");n={id:t.id,x:t.x,y:t.y,fill:i,"font-size":e.size||o.size,"font-style":e.fontStyle||o.fontStyle,"font-family":e.fontFamily||o.fontFamily,"font-weight":e.fontWeight||o.fontWeight,"text-anchor":t.anchor,transform:t.transform,opacity:e.opacity,"dominant-baseline":t.baseLine};var s="string"==typeof t.text?t.text:t.text[0],h=a.createText(n,s);return r&&r.appendChild(h),h}var p=function(){function t(t){this.svgLink="http://www.w3.org/2000/svg",this.rootId=t}return t.prototype.getOptionValue=function(t,e){return t[e]},t.prototype.createSvg=function(t){return e.isNullOrUndefined(t.id)&&(t.id=this.rootId+"_svg"),this.svgObj=document.getElementById(t.id),e.isNullOrUndefined(document.getElementById(t.id))&&(this.svgObj=document.createElementNS(this.svgLink,"svg")),this.svgObj=this.setElementAttributes(t,this.svgObj),this.setSVGSize(t.width,t.height),this.svgObj},t.prototype.setSVGSize=function(t,i){var r=document.getElementById(this.rootId),o=e.isNullOrUndefined(r)?null:r.getBoundingClientRect();e.isNullOrUndefined(this.width)||this.width<=0?this.svgObj.setAttribute("width",t?t.toString():o.width.toString()):this.svgObj.setAttribute("width",this.width.toString()),e.isNullOrUndefined(this.height)||this.height<=0?this.svgObj.setAttribute("height",i?i.toString():"450"):this.svgObj.setAttribute("height",this.height.toString())},t.prototype.drawPath=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"path")),e=this.setElementAttributes(t,e)},t.prototype.drawLine=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"line")),e=this.setElementAttributes(t,e)},t.prototype.drawRectangle=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"rect")),e=this.setElementAttributes(t,e)},t.prototype.drawCircle=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"circle")),e=this.setElementAttributes(t,e)},t.prototype.drawPolyline=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"polyline")),e=this.setElementAttributes(t,e)},t.prototype.drawEllipse=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"ellipse")),e=this.setElementAttributes(t,e)},t.prototype.drawPolygon=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"polygon")),e=this.setElementAttributes(t,e)},t.prototype.drawImage=function(t){var i=document.createElementNS(this.svgLink,"image");return i.setAttributeNS(null,"height",t.height.toString()),i.setAttributeNS(null,"width",t.width.toString()),i.setAttributeNS("http://www.w3.org/1999/xlink","href",t.href),i.setAttributeNS(null,"x",t.x.toString()),i.setAttributeNS(null,"y",t.y.toString()),i.setAttributeNS(null,"id",t.id),i.setAttributeNS(null,"visibility",t.visibility),e.isNullOrUndefined(this.getOptionValue(t,"clip-path"))||i.setAttributeNS(null,"clip-path",this.getOptionValue(t,"clip-path")),e.isNullOrUndefined(t.preserveAspectRatio)||i.setAttributeNS(null,"preserveAspectRatio",t.preserveAspectRatio),i},t.prototype.createText=function(t,i){var r=document.createElementNS(this.svgLink,"text");return r=this.setElementAttributes(t,r),e.isNullOrUndefined(i)||(r.textContent=i),r},t.prototype.createTSpan=function(t,i){var r=document.createElementNS(this.svgLink,"tspan");return r=this.setElementAttributes(t,r),e.isNullOrUndefined(i)||(r.textContent=i),r},t.prototype.createTitle=function(t){var e=document.createElementNS(this.svgLink,"title");return e.textContent=t,e},t.prototype.createDefs=function(){return document.createElementNS(this.svgLink,"defs")},t.prototype.createClipPath=function(t){var e=document.createElementNS(this.svgLink,"clipPath");return e=this.setElementAttributes(t,e)},t.prototype.createForeignObject=function(t){var e=document.createElementNS(this.svgLink,"foreignObject");return e=this.setElementAttributes(t,e)},t.prototype.createGroup=function(t){var e=document.createElementNS(this.svgLink,"g");return e=this.setElementAttributes(t,e)},t.prototype.createPattern=function(t,e){var i=document.createElementNS(this.svgLink,e);return i=this.setElementAttributes(t,i)},t.prototype.createRadialGradient=function(t,i,r){var o;if(e.isNullOrUndefined(t[0].colorStop))o=t[0].color.toString();else{var n={id:this.rootId+"_"+i+"radialGradient",cx:r.cx+"%",cy:r.cy+"%",r:r.r+"%",fx:r.fx+"%",fy:r.fy+"%"};this.drawGradient("radialGradient",n,t),o="url(#"+this.rootId+"_"+i+"radialGradient)"}return o},t.prototype.createLinearGradient=function(t,i,r){var o;if(e.isNullOrUndefined(t[0].colorStop))o=t[0].color.toString();else{var n={id:this.rootId+"_"+i+"linearGradient",x1:r.x1+"%",y1:r.y1+"%",x2:r.x2+"%",y2:r.y2+"%"};this.drawGradient("linearGradient",n,t),o="url(#"+this.rootId+"_"+i+"linearGradient)"}return o},t.prototype.drawGradient=function(t,i,r){var o=this.createDefs(),n=document.createElementNS(this.svgLink,t);n=this.setElementAttributes(i,n);for(var a=0;a<r.length;a++){var s=document.createElementNS(this.svgLink,"stop");s.setAttribute("offset",r[a].colorStop),s.setAttribute("stop-color",r[a].color),s.setAttribute("stop-opacity",r[a].opacity?r[a].opacity:"1"),e.isNullOrUndefined(r[a].style)||(s.style.cssText=r[a].style),n.appendChild(s)}return o.appendChild(n),o},t.prototype.drawClipPath=function(t){var e=this.createDefs(),i=this.createClipPath({id:t.id});t.id=t.id+"_Rect";var r=this.drawRectangle(t);return i.appendChild(r),e.appendChild(i),e},t.prototype.drawCircularClipPath=function(t){var e=this.createDefs(),i=this.createClipPath({id:t.id});t.id=t.id+"_Circle";var r=this.drawCircle(t);return i.appendChild(r),e.appendChild(i),e},t.prototype.setElementAttributes=function(t,e){for(var i=Object.keys(t),r=0;r<i.length;r++)"style"===i[r]?e.style.cssText=t[i[r]]:e.setAttribute(i[r],t[i[r]]);return e},t.prototype.createCanvas=function(){return null},t}(),c=function(){function t(t){this.rootId=t}return t.prototype.getOptionValue=function(t,e){return t[e]},t.prototype.createCanvas=function(t){var e=document.createElement("canvas");return e.setAttribute("id",this.rootId+"_canvas"),this.ctx=e.getContext("2d"),this.canvasObj=e,this.setCanvasSize(t.width,t.height),this.canvasObj},t.prototype.setCanvasSize=function(t,i){var r=document.getElementById(this.rootId),o=e.isNullOrUndefined(r)?null:r.getBoundingClientRect();e.isNullOrUndefined(this.width)?this.canvasObj.setAttribute("width",t?t.toString():o.width.toString()):this.canvasObj.setAttribute("width",this.width.toString()),e.isNullOrUndefined(this.height)?this.canvasObj.setAttribute("height",i?i.toString():"450"):this.canvasObj.setAttribute("height",this.height.toString())},t.prototype.setAttributes=function(t){this.ctx.lineWidth=this.getOptionValue(t,"stroke-width");var i=this.getOptionValue(t,"stroke-dasharray");if(!e.isNullOrUndefined(i)){var r=i.split(",");this.ctx.setLineDash([parseInt(r[0],10),parseInt(r[1],10)])}this.ctx.strokeStyle=this.getOptionValue(t,"stroke")},t.prototype.drawLine=function(t){this.ctx.save(),this.ctx.beginPath(),this.ctx.lineWidth=this.getOptionValue(t,"stroke-width"),this.ctx.strokeStyle=t.stroke,this.ctx.moveTo(t.x1,t.y1),this.ctx.lineTo(t.x2,t.y2),this.ctx.stroke(),this.ctx.restore()},t.prototype.drawRectangle=function(t,e){var i=this.ctx,r=t.rx;return this.ctx.save(),this.ctx.beginPath(),e&&this.ctx.translate(e[0],e[1]),this.ctx.globalAlpha=this.getOptionValue(t,"opacity"),this.setAttributes(t),this.ctx.rect(t.x,t.y,t.width,t.height),null!==r&&r>=0?this.drawCornerRadius(t):("none"===t.fill&&(t.fill="transparent"),this.ctx.fillStyle=t.fill,this.ctx.fillRect(t.x,t.y,t.width,t.height),this.ctx.stroke()),this.ctx.restore(),this.ctx=i,this.canvasObj},t.prototype.drawCornerRadius=function(t){var e=t.rx,i=t.x,r=t.y,o=t.width,n=t.height;"none"===t.fill&&(t.fill="transparent"),this.ctx.fillStyle=t.fill,o<2*e&&(e=o/2),n<2*e&&(e=n/2),this.ctx.beginPath(),this.ctx.moveTo(i+o-e,r),this.ctx.arcTo(i+o,r,i+o,r+n,e),this.ctx.arcTo(i+o,r+n,i,r+n,e),this.ctx.arcTo(i,r+n,i,r,e),this.ctx.arcTo(i,r,i+o,r,e),this.ctx.closePath(),this.ctx.fill(),this.ctx.stroke()},t.prototype.drawPath=function(t,e){var i=t.d.split(" "),r=this.getOptionValue(t,"stroke-width"),o=this.ctx,n=!0;this.ctx.save(),this.ctx.beginPath(),e&&this.ctx.translate(e[0],e[1]),this.ctx.globalAlpha=t.opacity?t.opacity:this.getOptionValue(t,"fill-opacity"),this.setAttributes(t);for(var a=0;a<i.length;a+=3){var s=parseFloat(i[a+1]),h=parseFloat(i[a+2]);switch(i[a]){case"M":t.innerR||t.cx||this.ctx.moveTo(s,h);break;case"L":t.innerR||this.ctx.lineTo(s,h);break;case"Q":var l=parseFloat(i[a+3]),d=parseFloat(i[a+4]);this.ctx.quadraticCurveTo(s,h,l,d),a+=2;break;case"C":var p=parseFloat(i[a+3]),c=parseFloat(i[a+4]),y=parseFloat(i[a+5]),u=parseFloat(i[a+6]);this.ctx.bezierCurveTo(s,h,p,c,y,u),a+=4;break;case"A":t.innerR?n&&(this.ctx.arc(t.x,t.y,t.radius,t.start,t.end,t.counterClockWise),this.ctx.arc(t.x,t.y,t.innerR,t.end,t.start,!t.counterClockWise),n=!1):t.cx?this.ctx.arc(t.cx,t.cy,t.radius,0,2*Math.PI,t.counterClockWise):(this.ctx.moveTo(t.x,t.y),this.ctx.arc(t.x,t.y,t.radius,t.start,t.end,t.counterClockWise),this.ctx.lineTo(t.x,t.y)),a+=5;break;case"z":case"Z":this.ctx.closePath(),a-=2}}return"none"!==t.fill&&void 0!==t.fill&&(this.ctx.fillStyle=t.fill,this.ctx.fill()),r>0&&this.ctx.stroke(),this.ctx.restore(),this.ctx=o,this.canvasObj},t.prototype.createText=function(t,i,r,o,n,a){var s=this.getOptionValue(t,"font-weight");e.isNullOrUndefined(s)||"regular"!==s.toLowerCase()||(s="normal");var h=this.getOptionValue(t,"font-size"),l=this.getOptionValue(t,"font-family"),d=this.getOptionValue(t,"font-style").toLowerCase()+" "+s+" "+h+" "+l,p=this.getOptionValue(t,"text-anchor"),c=void 0!==t.opacity?t.opacity:1;if("middle"===p&&(p="center"),this.ctx.save(),this.ctx.fillStyle=t.fill,this.ctx.font=d,this.ctx.textAlign=p,this.ctx.globalAlpha=c,t.baseline&&(this.ctx.textBaseline=t.baseline),!a){this.ctx.translate(t.x+0+(r||0),t.y+(o||0)),this.ctx.rotate(t.labelRotation*Math.PI/180)}return this.ctx.fillText(i,a?t.x:0,a?n:0),this.ctx.restore(),this.canvasObj},t.prototype.drawCircle=function(t,e){var i=this.ctx;return this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(t.cx,t.cy,t.r,0,2*Math.PI),this.ctx.fillStyle=t.fill,this.ctx.globalAlpha=t.opacity,this.ctx.fill(),e&&this.ctx.translate(e[0],e[1]),this.setAttributes(t),this.ctx.stroke(),this.ctx.restore(),this.ctx=i,this.canvasObj},t.prototype.drawPolyline=function(t){this.ctx.save(),this.ctx.beginPath();for(var e=t.points.split(" "),i=0;i<e.length-1;i++){var r=e[i].split(","),o=parseFloat(r[0]),n=parseFloat(r[1]);0===i?this.ctx.moveTo(o,n):this.ctx.lineTo(o,n)}this.ctx.lineWidth=this.getOptionValue(t,"stroke-width"),this.ctx.strokeStyle=t.stroke,this.ctx.stroke(),this.ctx.restore()},t.prototype.drawEllipse=function(t,e){var i=this.ctx,r=Math.max(t.rx,t.ry),o=t.rx/r,n=t.ry/r;this.ctx.save(),this.ctx.beginPath(),this.ctx.translate(t.cx,t.cy),e&&this.ctx.translate(e[0],e[1]),this.ctx.save(),this.ctx.scale(o,n),this.ctx.arc(0,0,r,0,2*Math.PI,!1),this.ctx.fillStyle=t.fill,this.ctx.fill(),this.ctx.restore(),this.ctx.lineWidth=this.getOptionValue(t,"stroke-width"),this.ctx.strokeStyle=t.stroke,this.ctx.stroke(),this.ctx.restore(),this.ctx=i},t.prototype.drawImage=function(t){this.ctx.save();var i=new Image;e.isNullOrUndefined(t.href)||(i.src=t.href,this.ctx.drawImage(i,t.x,t.y,t.width,t.height)),this.ctx.restore()},t.prototype.createLinearGradient=function(t){var i;return e.isNullOrUndefined(t[0].colorStop)||(i=this.ctx.createLinearGradient(0,0,0,this.canvasObj.height)),this.setGradientValues(t,i)},t.prototype.createRadialGradient=function(t){var i;return e.isNullOrUndefined(t[0].colorStop)||(i=this.ctx.createRadialGradient(0,0,0,0,0,this.canvasObj.height)),this.setGradientValues(t,i)},t.prototype.setGradientValues=function(t,i){var r;if(e.isNullOrUndefined(t[0].colorStop))r=t[0].color.toString();else{for(var o=0;o<=t.length-1;o++){var n=t[o].color,a=t[o].colorStop.slice(0,-1),s=parseInt(a,10)/100;i.addColorStop(s,n)}r=i.toString()}return r},t.prototype.setElementAttributes=function(t,e){for(var i=Object.keys(t),r=Object.keys(t).map(function(e){return t[e]}),o=0;o<i.length;o++)e.setAttribute(i[o],r[o]);return null},t.prototype.updateCanvasAttributes=function(t){this.setElementAttributes(t,this.canvasObj);var i=this.ctx;if(!e.isNullOrUndefined(this.dataUrl)){var r=new Image;r.onload=function(){i.drawImage(r,0,0)},r.src=this.dataUrl}},t.prototype.clearRect=function(t){this.ctx.restore(),this.ctx.clearRect(t.x,t.y,t.width,t.height)},t.prototype.createGroup=function(){return null},t.prototype.drawClipPath=function(){return null},t.prototype.drawCircularClipPath=function(){return null},t.prototype.canvasClip=function(t){this.ctx.save(),this.ctx.fillStyle="transparent",this.ctx.rect(t.x,t.y,t.width,t.height),this.ctx.fill(),this.ctx.clip()},t.prototype.canvasRestore=function(){this.ctx.restore()},t.prototype.drawPolygon=function(){return null},t.prototype.createDefs=function(){return null},t.prototype.createClipPath=function(){return null},t.prototype.createSvg=function(){return null},t}(),y=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)}}(),u=function(){function t(t,e){this.width=t,this.height=e}return t}(),g=function(){function t(t,e,i,r){this.x=t,this.y=e,this.width=i,this.height=r}return t}(),f=function(){function t(t,e){this.isRight=e,this.isBottom=t}return t}(),m=function(){function t(t){this.id=t}return t}(),x=function(t){function e(e,i,r,o,n,a,s,h){void 0===a&&(a="");var l=t.call(this,e)||this;return l.transform="",l.baseLine="auto",l.labelRotation=0,l.x=i,l.y=r,l.anchor=o,l.text=n,l.transform=a,l.baseLine=s,l.labelRotation=h,l}return y(e,t),e}(m),v=function(t){function e(e,i,r,o,n,a,s){var h=t.call(this,e)||this;return h.opacity=n,h.fill=i,h.stroke=o,h["stroke-width"]=r,h["stroke-dasharray"]=a,h.d=s,h}return y(e,t),e}(m),b=function(){function t(t,e){this.x=t,this.y=e}return t}(),w=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},S=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return w(i,t),F([e.Property(null)],i.prototype,"size",void 0),F([e.Property("")],i.prototype,"color",void 0),F([e.Property("Segoe UI")],i.prototype,"fontFamily",void 0),F([e.Property("Normal")],i.prototype,"fontWeight",void 0),F([e.Property("Normal")],i.prototype,"fontStyle",void 0),F([e.Property(1)],i.prototype,"opacity",void 0),i}(e.ChildProperty),L=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return w(i,t),F([e.Property("")],i.prototype,"color",void 0),F([e.Property(1)],i.prototype,"width",void 0),F([e.Property("")],i.prototype,"dashArray",void 0),i}(e.ChildProperty),P=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return w(i,t),F([e.Property(0)],i.prototype,"x",void 0),F([e.Property(0)],i.prototype,"y",void 0),F([e.Property(0)],i.prototype,"width",void 0),F([e.Property(0)],i.prototype,"height",void 0),i}(e.ChildProperty),T=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return w(i,t),F([e.Property(0)],i.prototype,"x",void 0),F([e.Property(0)],i.prototype,"y",void 0),i}(e.ChildProperty),A=function(t){function l(e,i){return t.call(this,e,i)||this}return w(l,t),l.prototype.preRender=function(){this.allowServerDataBinding=!1,this.initPrivateVariable(),this.isCanvas||this.removeSVG(),this.createTooltipElement()},l.prototype.initPrivateVariable=function(){this.renderer=new p(this.element.id),this.themeStyle=i(this.theme),this.formattedText=[],this.padding=5,this.highlightPadding=3,this.areaMargin=10,this.isFirst=!0,this.markerPoint=[]},l.prototype.removeSVG=function(){var t=document.getElementById(this.element.id+"_svg"),i=document.getElementById(this.element.id+"parent_template");this.blazorTemplate&&e.resetBlazorTemplate(this.element.id+"parent_template_blazorTemplate"),t&&t.parentNode&&e.remove(t),i&&i.parentNode&&e.remove(i)},l.prototype.render=function(){if(this.fadeOuted=!1,this.template)this.updateTemplateFn(),this.createTemplate(this.areaBounds,this.location);else{this.renderText(this.isFirst);var t={cancel:!1,name:"tooltipRender",tooltip:this};this.trigger("tooltipRender",t);var i=this.renderTooltipElement(this.areaBounds,this.location);this.drawMarker(i.isBottom,i.isRight,this.markerSize)}this.trigger("loaded",{tooltip:this});var r=document.getElementById("chartmeasuretext");r&&e.remove(r),this.allowServerDataBinding=!0},l.prototype.createTooltipElement=function(){if(this.textElements=[],!this.template||this.shared){this.enableRTL&&this.element.setAttribute("dir","ltr");var t=this.renderer.createSvg({id:this.element.id+"_svg"});this.element.appendChild(t);var e=document.getElementById(this.element.id+"_group");e||(e=this.renderer.createGroup({id:this.element.id+"_group"})).setAttribute("transform","translate(0,0)"),t.appendChild(e);var i=this.renderer.drawPath({id:this.element.id+"_path","stroke-width":"Fabric"!==this.theme&&"Fluent"!==this.theme&&"Fluent2"!==this.theme||this.border.width?this.border.width:1,fill:this.fill||this.themeStyle.tooltipFill,opacity:("TailwindDark"===this.theme||"Tailwind"===this.theme||"Bootstrap5"===this.theme||"Bootstrap5Dark"===this.theme||this.theme.indexOf("Fluent2")>-1)&&.75===this.opacity?1:this.opacity,stroke:this.border.color||("Fabric"===this.theme||"Fluent"===this.theme||"Fluent2"===this.theme?"#D2D0CE":this.border.color)});e.appendChild(i)}},l.prototype.drawMarker=function(t,e,i){if(this.shapes.length<=0)return null;var r,o=0,n=this.renderer.createGroup({id:this.element.id+"_trackball_group"}),s=a(this.element.id+"_group");if(!s)return null;for(var l=(this.enableRTL?this.elementSize.width-i/2:2*this.marginX+i/2)+(e?this.arrowPadding:0),d=0,p=this.shapes;d<p.length;d++){var c=p[d];if("None"!==c){if(r=new v(this.element.id+"_Trackball_"+o,this.palette[o],1,"#cccccc",1,null),this.markerPoint[o]){var y=0;this.header.indexOf("<br")>-1&&(y=this.header.split(/<br.*?>/g).length+o);var g=this.formattedText&&this.formattedText.length>=2?this.getTooltipTextContent(this.formattedText[1])+", "+this.getTooltipTextContent(this.formattedText[0]):"";n.appendChild(h(new b(l,this.markerPoint[o]-this.padding+(t?this.arrowPadding:y)),c,new u(i,i),"",r,"img",g))}o++}}s.appendChild(n)},l.prototype.renderTooltipElement=function(t,i){var o,s=a(this.element.id),h=new b(0,0),l=new b(0,0),d=a(this.element.id+"_svg"),p=a(this.element.id+"_group"),c=a(this.element.id+"_path"),y=!1,u=!1,m=!1,x=0,v=0;if(!e.isNullOrUndefined(p)){if(""!==this.header&&(this.elementSize.height+=this.marginY),this.isFixed){var w=this.elementSize.width+2*this.marginX,F=this.elementSize.height+2*this.marginY;o=new g(i.x,i.y,w,F)}else this.content.length>1?(o=this.sharedTooltipLocation(t,this.location.x,this.location.y),y=!0):(o=this.tooltipLocation(t,i,h,l),this.inverted?(x=(u=o.x<i.x+this.clipBounds.x)?0:this.arrowPadding,this.allowHighlight&&(o.x+=u?this.highlightPadding:-2*this.highlightPadding)):(m=!(y=o.y<i.y+this.clipBounds.y),v=y?0:this.arrowPadding));if(""!==this.header){var S=2,L=0,P=this.isWrap?this.wrappedText:this.header;this.isWrap&&"string"==typeof P&&(P.indexOf("<")>-1||P.indexOf(">")>-1)&&(S=P.split("<br>").length),this.header.indexOf("<br")>-1&&(L=5*(this.header.split(/<br.*?>/g).length-1));var T=e.extend({},this.textStyle,null,!0).properties,A=r(this.isWrap?this.wrappedText:this.header,T,this.themeStyle.textStyle).height+this.marginY*S+(m?this.arrowPadding:0)+(this.isWrap?5:L),O="M "+(3*this.marginX+(u||y||m?0:this.arrowPadding))+" "+A+"L "+(o.width+(u||y||m?0:this.arrowPadding)-2*this.marginX)+" "+A,k=this.renderer.drawPath({id:this.element.id+"_header_path","stroke-width":1,fill:null,opacity:"Material3"===this.theme?.2:.8,stroke:this.themeStyle.tooltipHeaderLine,d:O});p.appendChild(k)}var C=this.border.width/2,E=new g(C+x,C+v,o.width-C,o.height-C);if(p.setAttribute("opacity","1"),!this.enableAnimation||this.isFirst||this.crosshair?this.updateDiv(s,o.x,o.y):this.animateTooltipDiv(s,o),d.setAttribute("height",(o.height+this.border.width+(this.inverted?0:this.arrowPadding)+5).toString()),d.setAttribute("width",(o.width+this.border.width+(this.inverted?this.arrowPadding:0)+5).toString()),d.setAttribute("opacity","1"),e.isNullOrUndefined(this.tooltipPlacement)||(y=this.tooltipPlacement.indexOf("Top")>-1,m=this.tooltipPlacement.indexOf("Bottom")>-1,u=this.tooltipPlacement.indexOf("Left")>-1),c.setAttribute("d",n(this.rx,this.ry,E,h,this.arrowPadding,y,m,u,l.x,l.y,this.controlName)),this.enableShadow&&"Bootstrap4"!==this.theme||this.theme.indexOf("Fluent2")>-1){var N=this.element.id+"_shadow";"Tailwind"===this.theme||"TailwindDark"===this.theme||"Bootstrap5"===this.theme||"Bootstrap5Dark"===this.theme?c.setAttribute("box-shadow","0px 1px 2px rgba(0, 0, 0, 0.06), 0px 1px 3px rgba(0, 0, 0, 0.1)"):c.setAttribute("filter",e.Browser.isIE?"":"url(#"+N+")");var B='<filter id="'+N+'" height="130%"><feGaussianBlur in="SourceAlpha" stdDeviation="3"/>';this.theme.indexOf("Fluent2")>-1?B+='<feOffset dx="-1" dy="3.6" result="offsetblur"/><feComponentTransfer><feFuncA type="linear" slope="0.2"/>':B+='<feOffset dx="3" dy="3" result="offsetblur"/><feComponentTransfer><feFuncA type="linear" slope="0.5"/>',B+='</feComponentTransfer><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge></filter>';var z=this.renderer.createDefs();z.setAttribute("id",this.element.id+"SVG_tooltip_definition"),p.appendChild(z),z.innerHTML=B}var R="Fabric"!==this.theme&&"Fluent"!==this.theme&&"Fluent2"!==this.theme||this.border.color?this.border.color:"#D2D0CE";c.setAttribute("stroke",R),e.isNullOrUndefined(this.border.dashArray)||c.setAttribute("stroke-dasharray",this.border.dashArray),this.changeText(new b(x,v),m,!u&&!y&&!m),this.revert&&(this.inverted=!this.inverted,this.revert=!1)}return new f(m,!u&&!y&&!m)},l.prototype.changeText=function(t,e,i){var r=document.getElementById(this.element.id+"_text");e&&r.setAttribute("transform","translate(0,"+this.arrowPadding+")"),i&&r.setAttribute("transform","translate("+this.arrowPadding+" 0)")},l.prototype.findFormattedText=function(){this.formattedText=[],""!==this.header.replace(/<b>/g,"").replace(/<\/b>/g,"").trim()&&(this.formattedText=this.formattedText.concat(this.header)),this.formattedText=this.formattedText.concat(this.content)},l.prototype.renderText=function(t){var i,o,n,h,l,p=0,c=0,y=0,g="properties",f=e.extend({},this.textStyle,null,!0)[g],m=a(this.element.id+"_group"),v="";this.findFormattedText(),this.isWrap=!1;var b="rtl"===document.body.getAttribute("dir")&&!this.enableRTL?"end":"start";this.leftSpace=this.areaBounds.x+this.location.x,this.rightSpace=this.areaBounds.x+this.areaBounds.width-this.leftSpace;var w=this.header.replace(/<b>/g,"").replace(/<\/b>/g,"").trim(),F=this.header.indexOf("<b>")>-1&&this.header.indexOf("</b>")>-1,S=r(this.formattedText[0],f,this.themeStyle.textStyle).width+2*this.marginX+this.arrowPadding,L=this.location.x-S<this.location.x,P=this.areaBounds.x+this.areaBounds.width<this.location.x+S,T=""!==w?this.marginY:0,A=!0,O=!0;this.markerPoint=[];var k,C=this.shapes.length>0?10:0,E=this.shapes.length>0?5:0,N="400",B=this.themeStyle.tooltipLightLabel,z=22/parseFloat("12px")*parseFloat(f.size),R=[],M=0;t&&!this.isCanvas||(s(this.element.id+"_text"),s(this.element.id+"_header_path"),s(this.element.id+"_trackball_group"),s(this.element.id+"SVG_tooltip_definition")),"Chart"===this.controlName&&parseFloat("12px")<parseFloat(f.size)&&(M=parseFloat(f.size)-parseFloat("12px"));for(var D=new x(this.element.id+"_text",2*this.marginX,M+2*this.marginY+2*this.padding+(2===this.marginY?"RangeNavigator"===this.controlName?5:3:0),b,""),_=d(D,f,f.color||this.themeStyle.tooltipBoldLabel,m,this.themeStyle.textStyle),I=1===this.formattedText.length&&this.formattedText[0].indexOf(" : <b>")>-1,W=""!==this.header,j=W&&F?16:13,H=0,U=this.formattedText.length;H<U;H++)if(n=this.formattedText[H].replace(/<(b|strong)>/g,"<b>").replace(/<\/(b|strong)>/g,"</b>").split(/<br.*?>/g),this.isTextWrap&&this.header!==this.formattedText[H]&&-1===this.formattedText[H].indexOf("<br")&&(k=Math.round(this.leftSpace>this.rightSpace?this.leftSpace/j:this.rightSpace/j),n=this.formattedText[H].match(new RegExp(".{1,"+k+"}","g"))),0===H&&!I&&this.isTextWrap&&(this.leftSpace<S||L)&&(this.rightSpace<S||P)&&(k=Math.round(this.leftSpace>this.rightSpace?this.leftSpace/j:this.rightSpace/j),n=(""!==w?w:this.formattedText[H]).match(new RegExp(".{1,"+k+"}","g")),this.wrappedText=F?"<b>"+n.join("<br>")+"</b>":n.join("<br>"),this.isWrap=n.length>1),""!==n[0]){0===H&&""!==w||this.markerPoint.push((""!==w?this.marginY:0)+D.y+p-(0!==M?M/this.markerSize*(parseFloat(f.size)/this.markerSize):0));for(var V=0,G=n.length;V<G;V++){i=n[V].replace(/<b>/g,"<br><b>").replace(/<\/b>/g,"</b><br>").replace(/:/g,this.enableRTL?"<br>‎: <br>":"<br>‎:<br>").split("<br>"),this.enableRTL&&i.length>0&&n[V].match(/:/g)&&(i[0]=i[0].trim(),i.reverse()),y=0,O=!0,p+=z;for(var Q=0,X=i.length;Q<X;Q++)if(h=i[Q],this.enableRTL&&""!==h&&this.isRTLText(h)&&(h=h.concat("‎")),/\S/.test(h)||""===h||(h=" "),!O&&" "===h||""!==h.replace(/<b>/g,"").replace(/<\/b>/g,"").trim()){y+=" "!==h?4:0,O&&!A?(this.header.indexOf("<br")>-1&&0!==H&&(T+=this.header.split(/<br.*?>/g).length),l={x:2*this.marginX+(C+E),dy:z+(O?T:0),fill:""},T=null):l=A&&O?{x:""===w?2*this.marginX+(C+E):2*this.marginX+(this.isWrap?C+E:0)}:{},O=!1,o=this.renderer.createTSpan(l,""),_.appendChild(o),h.indexOf("<b>")>-1||F&&0===Q&&0===H&&(W||this.isWrap)?(N="600",B=this.themeStyle.tooltipBoldLabel,v="font-weight:"+N,f.fontWeight=N,o.setAttribute("fill",this.textStyle.color||B)):(v="600"===N?"font-weight:"+N:"",f.fontWeight=N,o.setAttribute("fill",this.textStyle.color||B)),(h.indexOf("</b>")>-1||F&&Q===X-1&&0===H&&(W||this.isWrap))&&(N="Normal",B=this.themeStyle.tooltipLightLabel),""!==v&&(o.style.fontWeight=v.split("font-weight:")[1],o.style.color=o.getAttribute("fill")),o.style.fontFamily="inherit",o.style.fontStyle="inherit",o.style.fontSize=this.header===this.formattedText[H]?f.size:this.textStyle.size,o.style.fontWeight=this.header===this.formattedText[H]&&-1===(this.header.indexOf("<b>")||this.header.indexOf("</b>"))?this.textStyle.fontWeight||"600":h.indexOf("<b>")>-1||h.indexOf("</b>")>-1?"bold":this.textStyle.fontWeight||f.fontWeight;var Y=e.extend({},this.textStyle,null,!0)[g];Y.fontWeight=o.style.fontWeight,A=!1,o.textContent=h=this.getTooltipTextContent(h),y+=r(h,Y,this.themeStyle.textStyle).width}y-=4,c=Math.max(c,y),R.push(y)}}this.elementSize=new u(c+(c>0?2*this.marginX:0),p),this.elementSize.width+=C+E;var q=_.childNodes[0];if(""!==w&&q&&!this.isWrap){f.fontWeight="600";var Z=(this.elementSize.width+2*this.padding)/2-r(w,f,this.themeStyle.textStyle).width/2;q.setAttribute("x",Z.toString())}this.renderContentRTL(_,W,C+E,R)},l.prototype.renderContentRTL=function(t,i,r,o){if(this.enableRTL)for(var n=void 0,a=i?1:0,s=0;s<t.childNodes.length;s++)n=t.childNodes[s],i&&!(s>0)||e.isNullOrUndefined(n.getAttribute("x"))||(n.setAttribute("x",(this.elementSize.width-(r+o[a])).toString()),a++)},l.prototype.getTooltipTextContent=function(t){var i=t.match(/<[a-zA-Z\/](.|\n)*?>/g);if(e.isNullOrUndefined(i))return t;for(var r=this.isRTLText(t),o=0;o<i.length;o++)this.isValidHTMLElement(i[o].replace("<","").replace("/","").replace(">","").trim())&&(t=t.replace(i[o],r?"‎":""));return t},l.prototype.isValidHTMLElement=function(t){return"[object HTMLUnknownElement]"!==document.createElement(t).toString()},l.prototype.isRTLText=function(t){return/[\u0590-\u07FF\u200F\u202B\u202E\uFB1D-\uFDFD\uFE70-\uFEFC]/.test(t)},l.prototype.createTemplate=function(t,i){var r={cancel:!1,name:"tooltipRender",tooltip:this};this.trigger("tooltipRender",r);var o=document.getElementById(this.element.id);this.isCanvas&&this.removeSVG();var n=o.firstElementChild;if(n&&e.remove(n),r.cancel)e.remove(a(this.element.id+"_tooltip"));else{var s=e.createElement("div",{id:this.element.id+"parent_template"}),h=void 0;if("Chart"===this.controlName&&this.shared)for(var l=0;l<this.data.length;l++){var d=this.templateFn(this.data[l],this.controlInstance,s.id,s.id+"_blazorTemplate","");0===l?h=d:d.length>1?h[l].outerHTML=d[l].outerHTML||d[l].textContent:h[h.length-1].outerHTML+=d[0].outerHTML}else h=this.templateFn(this.data,this.controlInstance,s.id,s.id+"_blazorTemplate","");for(;h&&h.length>0;)e.isBlazor()||1===h.length?(s.appendChild(h[0]),h=null):s.appendChild(h[0]);o.appendChild(s);var p=this.isCanvas?s:this.element,c=p.getBoundingClientRect();this.padding=0,this.elementSize=new u(c.width,c.height);var y=this.shared?this.sharedTooltipLocation(t,this.location.x,this.location.y):this.tooltipLocation(t,i,new b(0,0),new b(0,0));if(!this.enableAnimation||this.isFirst||this.crosshair?this.updateDiv(p,y.x,y.y):this.animateTooltipDiv(this.element,y),this.blazorTemplate){var g=function(){var e=a(f.element.id).getBoundingClientRect();f.elementSize=new u(e.width,e.height);var r=f.tooltipLocation(t,i,new b(0,0),new b(0,0));f.updateDiv(a(f.element.id),r.x,r.y)},f=this;g.bind(f,t,i),e.updateBlazorTemplate(this.element.id+"parent_template_blazorTemplate",this.blazorTemplate.name,this.blazorTemplate.parent,void 0,g)}}},l.prototype.sharedTooltipLocation=function(t,e,i){var r=this.elementSize.width+2*this.marginX,o=this.elementSize.height+2*this.marginY,n=new g(e+2*this.padding,i-o-this.padding,r,o);return n.y<t.y&&(n.y+=n.height+2*this.padding),n.y+n.height>t.y+t.height&&(n.y=Math.max(t.y+t.height-(n.height+2*this.padding),t.y)),n.x+n.width>t.x+t.width&&(n.x=t.x+this.location.x-(n.width+4*this.padding)),n.x<t.x&&(n.x=t.x),n},l.prototype.getCurrentPosition=function(t,e,i,r){var o=this.tooltipPlacement,n=this.clipBounds.x,a=this.clipBounds.y,s=this.offset,h=this.elementSize.width+2*this.marginX,l=this.elementSize.height+2*this.marginY,d=new b(e.x,e.y);return"Top"===o||"Bottom"===o?(d=new b(d.x+n-this.elementSize.width/2-this.padding,d.y+a-this.elementSize.height-2*this.padding-this.arrowPadding-s),i.x=r.x=h/2,"Bottom"===o&&(d.y=e.y+a+s),t.x+t.width<d.x+h?(d.x=t.width>h?t.x+t.width-h+6:t.x,i.x=r.x=t.width>h?t.x+e.x-d.x:e.x):t.x>d.x&&(d.x=t.x,i.x=r.x=e.x)):(d=new b(d.x+n+s,d.y+a-this.elementSize.height/2-this.padding),i.y=r.y=l/2,"Left"===o&&(d.x=e.x+n-s-(h+this.arrowPadding)),t.y+t.height<d.y+l?(d.y=t.height>l?t.y+t.height-l+6:t.y,i.y=r.y=t.height>l?t.y+e.y-d.y:e.y):t.y>d.y&&(d.y=t.y,i.y=r.y=e.y)),new g(d.x,d.y,h,l)},l.prototype.tooltipLocation=function(t,i,r,n){if(!e.isNullOrUndefined(this.tooltipPlacement))return this.getCurrentPosition(t,i,r,n);var a=new b(i.x,i.y),s=this.elementSize.width+2*this.marginX,h=this.elementSize.height+2*this.marginY,l=this.offset,d=this.clipBounds.x,p=this.clipBounds.y,c=t.x,y=t.y;return this.outOfBounds=!1,this.inverted?(a=new b(a.x+d+l,a.y+p-this.elementSize.height/2-this.padding),r.y=n.y=h/2,(a.x+s+this.arrowPadding>c+t.width||this.isNegative)&&(a.x=(i.x>t.width+t.x?t.width:i.x)+d-l-(s+this.arrowPadding)),a.x<c&&(a.x=(i.x<0?0:i.x)+d+l),a.x+s+this.arrowPadding>c+t.width&&(a.x=(i.x>t.width+t.x?t.width:i.x)+d-l-(s+this.arrowPadding)),a.y<=y&&(r.y-=y-a.y,n.y-=y-a.y,a.y=y),a.y+h>=y+t.height&&(r.y+=a.y+h-(y+t.height),n.y+=a.y+h-(y+t.height),a.y-=a.y+h-(y+t.height)),r.y+this.arrowPadding>h-this.ry&&(r.y=h-this.ry-this.arrowPadding,n.y=h),r.y-this.arrowPadding<this.ry&&(r.y=n.y=this.ry+this.arrowPadding),"Chart"===this.controlName&&((a.y+r.y<this.areaMargin+this.arrowPadding||t.y+t.height-(a.y+r.y)<this.areaMargin+this.arrowPadding)&&(this.outOfBounds=!0),o(a.x,a.y,t)&&!this.outOfBounds||(this.inverted=!this.inverted,a=new b(i.x+d-this.padding-this.elementSize.width/2,i.y+p-this.elementSize.height-2*this.padding-l-this.arrowPadding),this.revert=!0,n.x=r.x=s/2,n.y=r.y=0,(a.y<y||this.isNegative)&&(a.y=(i.y<0?0:i.y)+l+p),a.y+this.arrowPadding+h>y+t.height&&(a.y=Math.min(i.y,y+t.height)+p-this.elementSize.height-2*this.padding-l-this.arrowPadding),n.x=s/2,a.x<c&&(n.x-=c-a.x,r.x-=c-a.x,a.x=c),a.x+s>t.width+c&&(r.x+=a.x+s-(t.width+c),n.x+=a.x+s-(t.width+c),a.x-=a.x+s-(t.width+c)),this.arrowPadding+r.x>s-this.rx&&(n.x=s-this.rx-this.arrowPadding,r.x=s-this.rx-this.arrowPadding),r.x-this.arrowPadding<this.rx&&(r.x=n.x=this.rx+this.arrowPadding)))):(a=new b(a.x+d-this.elementSize.width/2-this.padding,a.y+p-this.elementSize.height-2*(this.allowHighlight?this.highlightPadding:this.padding)-this.arrowPadding-l),r.x=n.x=s/2,(a.y<y||this.isNegative)&&"Progressbar"!==this.controlName&&(a.y=(i.y<0?0:i.y)+p+l),a.y+h+this.arrowPadding>y+t.height&&(a.y=Math.min(i.y,y+t.height)+p-this.elementSize.height-2*this.padding-this.arrowPadding-l),(a.x+s>c+t.width&&a.y<y||this.isNegative)&&"Progressbar"!==this.controlName&&(a.y=(i.y<0?0:i.y)+p+l),n.x=s/2,a.x<c&&"Progressbar"!==this.controlName&&(r.x-=c-a.x,n.x-=c-a.x,a.x=c),a.x+s>c+t.width&&"Progressbar"!==this.controlName&&(r.x+=a.x+s-(c+t.width),n.x+=a.x+s-(c+t.width),a.x-=a.x+s-(c+t.width)),a.x<c&&"Progressbar"!==this.controlName&&(r.x-=c-a.x,n.x-=c-a.x,a.x=c),r.x+this.arrowPadding>s-this.rx&&(r.x=s-this.rx-this.arrowPadding,n.x=s-this.rx-this.arrowPadding),r.x-this.arrowPadding<this.rx&&(r.x=n.x=this.rx+this.arrowPadding),"Chart"===this.controlName&&((t.x+t.width-(a.x+r.x)<this.areaMargin+this.arrowPadding||a.x+r.x<this.areaMargin+this.arrowPadding)&&(this.outOfBounds=!0),this.template&&a.y<0&&(a.y=i.y+p+l),o(a.x,a.y,t)&&!this.outOfBounds||(this.inverted=!this.inverted,this.revert=!0,a=new b(i.x+l+d,i.y+p-this.elementSize.height/2-this.padding),n.x=r.x=0,n.y=r.y=h/2,(a.x+this.arrowPadding+s>c+t.width||this.isNegative)&&(a.x=(i.x>c+t.width?t.width:i.x)+d-l-(this.arrowPadding+s)),a.x<c&&(a.x=(i.x<0?0:i.x)+l+d),a.y<=y&&(n.y-=y-a.y,r.y-=y-a.y,a.y=y),a.y+h>=t.height+y&&(r.y+=a.y+h-(t.height+y),n.y+=a.y+h-(t.height+y),a.y-=a.y+h-(t.height+y)),this.arrowPadding+r.y>h-this.ry&&(r.y=h-this.arrowPadding-this.ry,n.y=h),r.y-this.arrowPadding<this.ry&&(r.y=this.arrowPadding+this.ry,n.y=0)))),new g(a.x,a.y,s,h)},l.prototype.animateTooltipDiv=function(t,i){var r,o=this,n=parseFloat(t.style.left),a=parseFloat(t.style.top);new e.Animation({}).animate(t,{duration:0===this.duration&&"Enable"===e.animationMode?300:this.duration,progress:function(s){r=s.timeStamp/s.duration,t.style.animation=null,"Chart"===o.controlName&&o.shared&&!o.enableRTL?(t.style.transition=e.isBlazor()?"transform 0.3s":"transform 0.1s",t.style.transform="translate("+(n+r*(i.x-n))+"px,"+(a+r*(i.y-a))+"px)",t.style.left="",t.style.top=""):(t.style.left=n+r*(i.x-n)+"px",t.style.top=a+r*(i.y-a)+"px",t.style.transform="RangeNavigator"===o.controlName?t.style.transform:"")},end:function(e){o.updateDiv(t,i.x,i.y),o.trigger("animationComplete",{tooltip:o})}})},l.prototype.updateDiv=function(t,e,i){"Chart"!==this.controlName||!this.shared||this.crosshair||this.enableRTL?(t.style.left=e+"px",t.style.top=i+"px",t.style.transform="RangeNavigator"===this.controlName?t.style.transform:""):(t.style.transform="translate("+e+"px,"+i+"px)",t.style.left="",t.style.top="")},l.prototype.updateTemplateFn=function(){if(this.template)try{"function"!=typeof this.template&&document.querySelectorAll(this.template).length?this.templateFn=e.compile(document.querySelector(this.template).innerHTML.trim()):this.templateFn=e.compile(this.template)}catch(t){this.templateFn=e.compile(this.template)}},l.prototype.fadeOut=function(){var t=this,i=a(this.isCanvas&&!this.template?this.element.id+"_svg":this.element.id),r=a(this.element.id);if(i){var o=i.firstChild;if(o.nodeType!==Node.ELEMENT_NODE&&(o=i.firstElementChild),this.isCanvas&&!this.template&&(o=document.getElementById(this.element.id+"_group")?document.getElementById(this.element.id+"_group"):o),!o)return null;var n=parseFloat(o.getAttribute("opacity"));n=e.isNullOrUndefined(n)?1:n,new e.Animation({}).animate(o,{duration:200,progress:function(e){t.progressAnimation(o,n,e.timeStamp/e.duration)},end:function(){t.fadeOuted=!0,t.endAnimation(o),r.style.transition=""}})}},l.prototype.progressAnimation=function(t,e,i){t.style.animation="",t.setAttribute("opacity",(e-i).toString())},l.prototype.endAnimation=function(t){t.setAttribute("opacity","0"),this.template&&(t.style.display="none"),this.trigger("animationComplete",{tooltip:this})},l.prototype.getPersistData=function(){var t=[];return this.addOnPersist(t)},l.prototype.getModuleName=function(){return"tooltip"},l.prototype.destroy=function(){t.prototype.destroy.call(this),this.element.classList.remove("e-tooltip")},l.prototype.onPropertyChanged=function(t,i){this.blazorTemplate&&e.resetBlazorTemplate(this.element.id+"parent_template_blazorTemplate"),this.isFirst=!1,this.render()},F([e.Property(!1)],l.prototype,"enable",void 0),F([e.Property(!1)],l.prototype,"shared",void 0),F([e.Property(!1)],l.prototype,"crosshair",void 0),F([e.Property(!1)],l.prototype,"enableShadow",void 0),F([e.Property(null)],l.prototype,"fill",void 0),F([e.Property("")],l.prototype,"header",void 0),F([e.Property(.75)],l.prototype,"opacity",void 0),F([e.Complex({size:"12px",fontWeight:null,color:null,fontStyle:"Normal",fontFamily:null},S)],l.prototype,"textStyle",void 0),F([e.Property(null)],l.prototype,"template",void 0),F([e.Property(!0)],l.prototype,"enableAnimation",void 0),F([e.Property(300)],l.prototype,"duration",void 0),F([e.Property(!1)],l.prototype,"inverted",void 0),F([e.Property(!1)],l.prototype,"isNegative",void 0),F([e.Complex({color:null,width:null},L)],l.prototype,"border",void 0),F([e.Property([])],l.prototype,"content",void 0),F([e.Property(10)],l.prototype,"markerSize",void 0),F([e.Complex({x:0,y:0},T)],l.prototype,"clipBounds",void 0),F([e.Property([])],l.prototype,"palette",void 0),F([e.Property([])],l.prototype,"shapes",void 0),F([e.Complex({x:0,y:0},T)],l.prototype,"location",void 0),F([e.Property(0)],l.prototype,"offset",void 0),F([e.Property(4)],l.prototype,"rx",void 0),F([e.Property(4)],l.prototype,"ry",void 0),F([e.Property(5)],l.prototype,"marginX",void 0),F([e.Property(5)],l.prototype,"marginY",void 0),F([e.Property(7)],l.prototype,"arrowPadding",void 0),F([e.Property(null)],l.prototype,"data",void 0),F([e.Property("Material")],l.prototype,"theme",void 0),F([e.Complex({x:0,y:0,width:0,height:0},P)],l.prototype,"areaBounds",void 0),F([e.Property(null)],l.prototype,"availableSize",void 0),F([e.Property()],l.prototype,"blazorTemplate",void 0),F([e.Property(!1)],l.prototype,"isCanvas",void 0),F([e.Property(!1)],l.prototype,"isTextWrap",void 0),F([e.Property(!1)],l.prototype,"isFixed",void 0),F([e.Property(null)],l.prototype,"tooltipPlacement",void 0),F([e.Property(null)],l.prototype,"controlInstance",void 0),F([e.Property("")],l.prototype,"controlName",void 0),F([e.Event()],l.prototype,"tooltipRender",void 0),F([e.Event()],l.prototype,"loaded",void 0),F([e.Event()],l.prototype,"animationComplete",void 0),F([e.Property(!1)],l.prototype,"enableRTL",void 0),F([e.Property(!1)],l.prototype,"allowHighlight",void 0),l=F([e.NotifyPropertyChanges],l)}(e.Component);return t.AreaBounds=P,t.CanvasRenderer=c,t.CustomizeOption=m,t.PathOption=v,t.Rect=g,t.Side=f,t.Size=u,t.SvgRenderer=p,t.TextOption=x,t.TextStyle=S,t.ToolLocation=T,t.Tooltip=A,t.TooltipBorder=L,t.TooltipLocation=b,t.calculateShapes=l,t.drawSymbol=h,t.findDirection=n,t.getElement=a,t.getTooltipThemeColor=i,t.measureText=r,t.removeElement=s,t.textElement=d,t.withInAreaBounds=o,t}({},ej.base),this.ejs=ej;
this.ej=this.ej||{},this.ej.svgbase=function(t,e){"use strict";function i(t){var e;switch(t){case"Highcontrast":case"HighContrast":e={tooltipFill:"#ffffff",tooltipBoldLabel:"#000000",tooltipLightLabel:"#000000",tooltipHeaderLine:"#969696",textStyle:{fontFamily:"Segoe UI",color:"#000000",fontWeight:null}};break;case"MaterialDark":case"FabricDark":case"BootstrapDark":e={tooltipFill:"MaterialDark"===t?"#F4F4F4":"FabricDark"===t?"#A19F9D":"#F0F0F0",tooltipBoldLabel:"MaterialDark"===t?"rgba(18, 18, 18, 1)":"FabricDark"===t?"#DADADA":"#1A1A1A",tooltipLightLabel:"MaterialDark"===t?"rgba(18, 18, 18, 1)":"FabricDark"===t?"#DADADA":"#1A1A1A",tooltipHeaderLine:"#9A9A9A",textStyle:"MaterialDark"===t?{fontFamily:"Roboto",color:"rgba(18, 18, 18, 1)",fontWeight:null}:"FabricDark"===t?{fontFamily:"Segoe UI",color:"#DADADA",fontWeight:null}:{fontFamily:"Helvetica",color:"#1A1A1A",fontWeight:null}};break;case"Bootstrap4":e={tooltipFill:"#212529",tooltipBoldLabel:"#F9FAFB",tooltipLightLabel:"#F9FAFB",tooltipHeaderLine:"rgba(255, 255, 255, 0.2)",textStyle:{fontFamily:"Helvetica",color:"#F9FAFB",fontWeight:null}};break;case"Tailwind":e={tooltipFill:"#111827",tooltipBoldLabel:"#F9FAFB",tooltipLightLabel:"#F9FAFB",tooltipHeaderLine:"#6B7280",textStyle:{fontFamily:"Inter",color:"#F9FAFB",fontWeight:null}};break;case"TailwindDark":e={tooltipFill:"#E9ECEF",tooltipBoldLabel:"#1F2937",tooltipLightLabel:"#1F2937",tooltipHeaderLine:"#9CA3AF",textStyle:{fontFamily:"Inter",color:"#1F2937",fontWeight:null}};break;case"Bootstrap5":e={tooltipFill:"#212529",tooltipBoldLabel:"#F9FAFB",tooltipLightLabel:"#F9FAFB",tooltipHeaderLine:"#9CA3AF",textStyle:{fontFamily:"Helvetica",color:"#F9FAFB",fontWeight:null}};break;case"Bootstrap5Dark":e={tooltipFill:"#E9ECEF",tooltipBoldLabel:"#212529",tooltipLightLabel:"#212529",tooltipHeaderLine:"#ADB5BD",textStyle:{fontFamily:"Helvetica",color:"#212529",fontWeight:null}};break;case"Fluent":e={tooltipFill:"#FFFFFF",tooltipBoldLabel:"#323130",tooltipLightLabel:"#323130",tooltipHeaderLine:"#D2D0CE",textStyle:{fontFamily:"Segoe UI",color:"#323130",fontWeight:null}};break;case"FluentDark":e={tooltipFill:"#323130",tooltipBoldLabel:"#F3F2F2",tooltipLightLabel:"#F3F2F1",tooltipHeaderLine:"#3B3A39",textStyle:{fontFamily:"Segoe UI",color:"#F3F2F1",fontWeight:null}};break;case"Fluent2":e={tooltipFill:"#FFFFFF",tooltipBoldLabel:"#242424",tooltipLightLabel:"#242424",tooltipHeaderLine:"#D2D0CE",textStyle:{fontFamily:"Segoe UI",color:"#242424",fontWeight:null}};break;case"Fluent2Dark":e={tooltipFill:"#292929",tooltipBoldLabel:"#FFFFFF",tooltipLightLabel:"#FFFFFF",tooltipHeaderLine:"#3B3A39",textStyle:{fontFamily:"Segoe UI",color:"#FFFFFF",fontWeight:null}};break;case"Material3":e={tooltipFill:"#313033",tooltipBoldLabel:"#F4EFF4",tooltipLightLabel:"#F4EFF4",tooltipHeaderLine:"#F4EFF4",textStyle:{fontFamily:"Roboto",color:"#F4EFF4",fontWeight:null}};break;case"Material3Dark":e={tooltipFill:"#E6E1E5",tooltipBoldLabel:"#313033",tooltipLightLabel:"#313033",tooltipHeaderLine:"#313033",textStyle:{fontFamily:"Roboto",color:"#313033",fontWeight:null}};break;default:e={tooltipFill:"Material"===t?"#000816":"Fabric"===t?"#FFFFFF":"#212529",tooltipBoldLabel:"Material"===t?"rgba(249, 250, 251, 1)":"Fabric"===t?"#333333":"#F9FAFB",tooltipLightLabel:"Material"===t?"rgba(249, 250, 251, 1)":"Fabric"===t?"#333333":"#F9FAFB",tooltipHeaderLine:"Fabric"===t?"#D2D0CE":"#ffffff",textStyle:"Material"===t?{fontFamily:"Roboto",color:"rgba(249, 250, 251, 1)",fontWeight:null}:"Fabric"===t?{fontFamily:"Segoe UI",color:"#333333",fontWeight:null}:{fontFamily:"Helvetica",color:"#F9FAFB",fontWeight:null}}}return e}function r(t,i,r){var o=t||"",n=document.getElementById("chartmeasuretext");if(null===n&&(n=e.createElement("text",{id:"chartmeasuretext"}),document.body.appendChild(n)),"string"==typeof t&&(t.indexOf("<")>-1||t.indexOf(">")>-1)){for(var a=t.split(" "),s=0;s<a.length;s++)-1===a[s].indexOf("<br/>")&&(a[s]=a[s].replace(/[<>]/g,"&"));t=a.join(" ")}n.innerHTML=o.indexOf("<br>")>-1||o.indexOf("<br/>")>-1?o:t,n.style.position="fixed",n.style.fontSize=i.size||r.size,n.style.fontStyle=i.fontStyle||r.fontStyle,n.style.fontFamily=i.fontFamily||r.fontFamily,n.style.visibility="hidden",n.style.top="-100",n.style.left="0",n.style.whiteSpace="nowrap",n.style.lineHeight="normal";var h=n.clientWidth,l=n.clientHeight,d=n.style.fontWeight;return n.style.fontWeight=i.fontWeight||r.fontWeight,new u("bold"===n.style.fontWeight&&"normal"===d?Math.max(h,n.clientWidth):n.clientWidth,"bold"===n.style.fontWeight&&"normal"===d?Math.max(l,n.clientHeight):n.clientHeight)}function o(t,e,i,r,o){return void 0===r&&(r=0),void 0===o&&(o=0),t>=i.x-r&&t<=i.x+i.width+r&&e>=i.y-o&&e<=i.y+i.height+o}function n(t,e,i,r,o,n,a,s,h,l,d){void 0===d&&(d="");var p="",c=i.x,y=i.y,u=i.x+i.width,g=i.y+i.height;return n?(p=(p=p.concat("M "+c+" "+(y+e)+" Q "+c+" "+y+" "+(c+t)+" "+y+" L "+(u-t)+" "+y+" Q "+u+" "+y+" "+u+" "+(y+e))).concat(" L "+u+" "+(g-e)+" Q "+u+" "+g+" "+(u-t)+" "+g),0!==o&&(p="RangeNavigator"===d?r.x-o>u/2?(p=p.concat(" L "+(r.x+o)+" "+g)).concat(" L "+(h+o)+" "+(g+o)+" L "+r.x+" "+g):(p=p.concat(" L "+r.x+" "+g)).concat(" L "+(h-o)+" "+(g+o)+" L "+(r.x-o)+" "+g):(p=p.concat(" L "+(r.x+o)+" "+g)).concat(" L "+h+" "+(g+o)+" L "+(r.x-o)+" "+g)),p=r.x-o>c?p.concat(" L "+(c+t)+" "+g+" Q "+c+" "+g+" "+c+" "+(g-e)+" z"):0===o?p.concat(" L "+(c+t)+" "+g+" Q "+c+" "+g+" "+c+" "+(g-e)+" z"):p.concat(" L "+c+" "+(g+e)+" z")):a?p=(p=(p=(p=(p=p.concat("M "+c+" "+(y+e)+" Q "+c+" "+y+" "+(c+t)+" "+y+" L "+(r.x-o)+" "+y)).concat(" L "+h+" "+r.y)).concat(" L "+(r.x+o)+" "+y)).concat(" L "+(u-t)+" "+y+" Q "+u+" "+y+" "+u+" "+(y+e))).concat(" L "+u+" "+(g-e)+" Q "+u+" "+g+" "+(u-t)+" "+g+" L "+(c+t)+" "+g+" Q "+c+" "+g+" "+c+" "+(g-e)+" z"):s?(p=(p=p.concat("M "+c+" "+(y+e)+" Q "+c+" "+y+" "+(c+t)+" "+y)).concat(" L "+(u-t)+" "+y+" Q "+u+" "+y+" "+u+" "+("RangeNavigator"===d?0:y+e)+" L "+u+" "+("RangeNavigator"===d?0:r.y-o)),p="RangeNavigator"===d?p.concat(" L "+(u+o)+" 0"):p.concat(" L "+(u+o)+" "+l),p=(p=(p="RangeNavigator"===d?p.concat(" L "+u+" "+(r.y-e)):p.concat(" L "+u+" "+(r.y+o))).concat(" L "+u+" "+(g-e)+" Q "+u+" "+g+" "+(u-t)+" "+g)).concat(" L "+(c+t)+" "+g+" Q "+c+" "+g+" "+c+" "+(g-e)+" z")):(p=p.concat("M "+(c+t)+" "+y+" Q "+c+" "+y+" "+c+" "+("RangeNavigator"===d?0:y+e)+" L "+c+" "+("RangeNavigator"===d?0:r.y-o)),p="RangeNavigator"===d?p.concat(" L "+(c-o)+" 0"):p.concat(" L "+(c-o)+" "+l),p=(p=(p="RangeNavigator"===d?p.concat(" L "+c+" "+(r.y-e)):p.concat(" L "+c+" "+(r.y+o))).concat(" L "+c+" "+(g-e)+" Q "+c+" "+g+" "+(c+t)+" "+g)).concat(" L "+(u-t)+" "+g+" Q "+u+" "+g+" "+u+" "+(g-e)+" L "+u+" "+(y+e)+" Q "+u+" "+y+" "+(u-t)+" "+y+" z")),p}function a(t){return document.getElementById(t)}function s(t){var i=a(t);i&&e.remove(i)}function h(t,e,i,r,o,n,a){var s=new p(""),h=l(t,i,e,o,r),d=s["draw"+h.functionName](h.renderOption);return d.setAttribute("role",n),d.setAttribute("aria-label",a),d}function l(t,i,r,o,n){var a,s="Path",h=i.width,l=i.height,d=t.x,p=t.y,c=t.x+-h/2,y=t.y+-l/2;switch(r){case"Circle":case"Bubble":s="Ellipse",e.merge(o,{rx:h/2,ry:l/2,cx:d,cy:p});break;case"Plus":a="M "+c+" "+p+" L "+(d+h/2)+" "+p+" M "+d+" "+(p+l/2)+" L "+d+" "+(p+-l/2),e.merge(o,{d:a,stroke:o.fill});break;case"Cross":a="M "+c+" "+(p+-l/2)+" L "+(d+h/2)+" "+(p+l/2)+" M "+c+" "+(p+l/2)+" L "+(d+h/2)+" "+(p+-l/2),e.merge(o,{d:a,stroke:o.fill});break;case"HorizontalLine":a="M "+c+" "+p+" L "+(d+h/2)+" "+p,e.merge(o,{d:a,stroke:o.fill});break;case"VerticalLine":a="M "+d+" "+(p+l/2)+" L "+d+" "+(p+-l/2),e.merge(o,{d:a,stroke:o.fill});break;case"Diamond":a="M "+c+" "+p+" L "+d+" "+(p+-l/2)+" L "+(d+h/2)+" "+p+" L "+d+" "+(p+l/2)+" L "+c+" "+p+" z",e.merge(o,{d:a});break;case"Rectangle":a="M "+c+" "+(p+-l/2)+" L "+(d+h/2)+" "+(p+-l/2)+" L "+(d+h/2)+" "+(p+l/2)+" L "+c+" "+(p+l/2)+" L "+c+" "+(p+-l/2)+" z",e.merge(o,{d:a});break;case"Triangle":a="M "+c+" "+(p+l/2)+" L "+d+" "+(p+-l/2)+" L "+(d+h/2)+" "+(p+l/2)+" L "+c+" "+(p+l/2)+" z",e.merge(o,{d:a});break;case"InvertedTriangle":a="M "+(d+h/2)+" "+(p-l/2)+" L "+d+" "+(p+l/2)+" L "+(d-h/2)+" "+(p-l/2)+" L "+(d+h/2)+" "+(p-l/2)+" z",e.merge(o,{d:a});break;case"Pentagon":for(var u=void 0,g=void 0,f=0;f<=5;f++)u=h/2*Math.cos(Math.PI/180*(72*f)),g=l/2*Math.sin(Math.PI/180*(72*f)),a=0===f?"M "+(d+u)+" "+(p+g)+" ":a.concat("L "+(d+u)+" "+(p+g)+" ");a=a.concat("Z"),e.merge(o,{d:a});break;case"Image":s="Image",e.merge(o,{href:n,height:l,width:h,x:c,y:y});break;case"Star":for(var m=Math.min(h,l)/2,x=m/2,v=Math.PI/5,b="",f=0;f<10;f++){var w=f%2==0?m:x,F=d+w*Math.cos(f*v-Math.PI/2),S=p+w*Math.sin(f*v-Math.PI/2);b+=(0===f?"M":"L")+F+","+S}b+="Z",e.merge(o,{d:b})}return{renderOption:o,functionName:s}}function d(t,e,i,r,o){var n={},a=new p("");n={id:t.id,x:t.x,y:t.y,fill:i,"font-size":e.size||o.size,"font-style":e.fontStyle||o.fontStyle,"font-family":e.fontFamily||o.fontFamily,"font-weight":e.fontWeight||o.fontWeight,"text-anchor":t.anchor,transform:t.transform,opacity:e.opacity,"dominant-baseline":t.baseLine};var s="string"==typeof t.text?t.text:t.text[0],h=a.createText(n,s);return r&&r.appendChild(h),h}var p=function(){function t(t){this.svgLink="http://www.w3.org/2000/svg",this.rootId=t}return t.prototype.getOptionValue=function(t,e){return t[e]},t.prototype.createSvg=function(t){return e.isNullOrUndefined(t.id)&&(t.id=this.rootId+"_svg"),this.svgObj=document.getElementById(t.id),e.isNullOrUndefined(document.getElementById(t.id))&&(this.svgObj=document.createElementNS(this.svgLink,"svg")),this.svgObj=this.setElementAttributes(t,this.svgObj),this.setSVGSize(t.width,t.height),this.svgObj},t.prototype.setSVGSize=function(t,i){var r=document.getElementById(this.rootId),o=e.isNullOrUndefined(r)?null:r.getBoundingClientRect();e.isNullOrUndefined(this.width)||this.width<=0?this.svgObj.setAttribute("width",t?t.toString():o.width.toString()):this.svgObj.setAttribute("width",this.width.toString()),e.isNullOrUndefined(this.height)||this.height<=0?this.svgObj.setAttribute("height",i?i.toString():"450"):this.svgObj.setAttribute("height",this.height.toString())},t.prototype.drawPath=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"path")),e=this.setElementAttributes(t,e)},t.prototype.drawLine=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"line")),e=this.setElementAttributes(t,e)},t.prototype.drawRectangle=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"rect")),e=this.setElementAttributes(t,e)},t.prototype.drawCircle=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"circle")),e=this.setElementAttributes(t,e)},t.prototype.drawPolyline=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"polyline")),e=this.setElementAttributes(t,e)},t.prototype.drawEllipse=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"ellipse")),e=this.setElementAttributes(t,e)},t.prototype.drawPolygon=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"polygon")),e=this.setElementAttributes(t,e)},t.prototype.drawImage=function(t){var i=document.createElementNS(this.svgLink,"image");return i.setAttributeNS(null,"height",t.height.toString()),i.setAttributeNS(null,"width",t.width.toString()),i.setAttributeNS("http://www.w3.org/1999/xlink","href",t.href),i.setAttributeNS(null,"x",t.x.toString()),i.setAttributeNS(null,"y",t.y.toString()),i.setAttributeNS(null,"id",t.id),i.setAttributeNS(null,"visibility",t.visibility),e.isNullOrUndefined(this.getOptionValue(t,"clip-path"))||i.setAttributeNS(null,"clip-path",this.getOptionValue(t,"clip-path")),e.isNullOrUndefined(t.preserveAspectRatio)||i.setAttributeNS(null,"preserveAspectRatio",t.preserveAspectRatio),i},t.prototype.createText=function(t,i){var r=document.createElementNS(this.svgLink,"text");return r=this.setElementAttributes(t,r),e.isNullOrUndefined(i)||(r.textContent=i),r},t.prototype.createTSpan=function(t,i){var r=document.createElementNS(this.svgLink,"tspan");return r=this.setElementAttributes(t,r),e.isNullOrUndefined(i)||(r.textContent=i),r},t.prototype.createTitle=function(t){var e=document.createElementNS(this.svgLink,"title");return e.textContent=t,e},t.prototype.createDefs=function(){return document.createElementNS(this.svgLink,"defs")},t.prototype.createClipPath=function(t){var e=document.createElementNS(this.svgLink,"clipPath");return e=this.setElementAttributes(t,e)},t.prototype.createForeignObject=function(t){var e=document.createElementNS(this.svgLink,"foreignObject");return e=this.setElementAttributes(t,e)},t.prototype.createGroup=function(t){var e=document.createElementNS(this.svgLink,"g");return e=this.setElementAttributes(t,e)},t.prototype.createPattern=function(t,e){var i=document.createElementNS(this.svgLink,e);return i=this.setElementAttributes(t,i)},t.prototype.createRadialGradient=function(t,i,r){var o;if(e.isNullOrUndefined(t[0].colorStop))o=t[0].color.toString();else{var n={id:this.rootId+"_"+i+"radialGradient",cx:r.cx+"%",cy:r.cy+"%",r:r.r+"%",fx:r.fx+"%",fy:r.fy+"%"};this.drawGradient("radialGradient",n,t),o="url(#"+this.rootId+"_"+i+"radialGradient)"}return o},t.prototype.createLinearGradient=function(t,i,r){var o;if(e.isNullOrUndefined(t[0].colorStop))o=t[0].color.toString();else{var n={id:this.rootId+"_"+i+"linearGradient",x1:r.x1+"%",y1:r.y1+"%",x2:r.x2+"%",y2:r.y2+"%"};this.drawGradient("linearGradient",n,t),o="url(#"+this.rootId+"_"+i+"linearGradient)"}return o},t.prototype.drawGradient=function(t,i,r){var o=this.createDefs(),n=document.createElementNS(this.svgLink,t);n=this.setElementAttributes(i,n);for(var a=0;a<r.length;a++){var s=document.createElementNS(this.svgLink,"stop");s.setAttribute("offset",r[a].colorStop),s.setAttribute("stop-color",r[a].color),s.setAttribute("stop-opacity",r[a].opacity?r[a].opacity:"1"),e.isNullOrUndefined(r[a].style)||(s.style.cssText=r[a].style),n.appendChild(s)}return o.appendChild(n),o},t.prototype.drawClipPath=function(t){var e=this.createDefs(),i=this.createClipPath({id:t.id});t.id=t.id+"_Rect";var r=this.drawRectangle(t);return i.appendChild(r),e.appendChild(i),e},t.prototype.drawCircularClipPath=function(t){var e=this.createDefs(),i=this.createClipPath({id:t.id});t.id=t.id+"_Circle";var r=this.drawCircle(t);return i.appendChild(r),e.appendChild(i),e},t.prototype.setElementAttributes=function(t,e){for(var i=Object.keys(t),r=0;r<i.length;r++)"style"===i[r]?e.style.cssText=t[i[r]]:e.setAttribute(i[r],t[i[r]]);return e},t.prototype.createCanvas=function(){return null},t}(),c=function(){function t(t){this.rootId=t}return t.prototype.getOptionValue=function(t,e){return t[e]},t.prototype.createCanvas=function(t){var e=document.createElement("canvas");return e.setAttribute("id",this.rootId+"_canvas"),this.ctx=e.getContext("2d"),this.canvasObj=e,this.setCanvasSize(t.width,t.height),this.canvasObj},t.prototype.setCanvasSize=function(t,i){var r=document.getElementById(this.rootId),o=e.isNullOrUndefined(r)?null:r.getBoundingClientRect();e.isNullOrUndefined(this.width)?this.canvasObj.setAttribute("width",t?t.toString():o.width.toString()):this.canvasObj.setAttribute("width",this.width.toString()),e.isNullOrUndefined(this.height)?this.canvasObj.setAttribute("height",i?i.toString():"450"):this.canvasObj.setAttribute("height",this.height.toString())},t.prototype.setAttributes=function(t){this.ctx.lineWidth=this.getOptionValue(t,"stroke-width");var i=this.getOptionValue(t,"stroke-dasharray");if(!e.isNullOrUndefined(i)){var r=i.split(",");this.ctx.setLineDash([parseInt(r[0],10),parseInt(r[1],10)])}this.ctx.strokeStyle=this.getOptionValue(t,"stroke")},t.prototype.drawLine=function(t){this.ctx.save(),this.ctx.beginPath(),this.ctx.lineWidth=this.getOptionValue(t,"stroke-width"),this.ctx.strokeStyle=t.stroke,this.ctx.moveTo(t.x1,t.y1),this.ctx.lineTo(t.x2,t.y2),this.ctx.stroke(),this.ctx.restore()},t.prototype.drawRectangle=function(t,e){var i=this.ctx,r=t.rx;return this.ctx.save(),this.ctx.beginPath(),e&&this.ctx.translate(e[0],e[1]),this.ctx.globalAlpha=this.getOptionValue(t,"opacity"),this.setAttributes(t),this.ctx.rect(t.x,t.y,t.width,t.height),null!==r&&r>=0?this.drawCornerRadius(t):("none"===t.fill&&(t.fill="transparent"),this.ctx.fillStyle=t.fill,this.ctx.fillRect(t.x,t.y,t.width,t.height),this.ctx.stroke()),this.ctx.restore(),this.ctx=i,this.canvasObj},t.prototype.drawCornerRadius=function(t){var e=t.rx,i=t.x,r=t.y,o=t.width,n=t.height;"none"===t.fill&&(t.fill="transparent"),this.ctx.fillStyle=t.fill,o<2*e&&(e=o/2),n<2*e&&(e=n/2),this.ctx.beginPath(),this.ctx.moveTo(i+o-e,r),this.ctx.arcTo(i+o,r,i+o,r+n,e),this.ctx.arcTo(i+o,r+n,i,r+n,e),this.ctx.arcTo(i,r+n,i,r,e),this.ctx.arcTo(i,r,i+o,r,e),this.ctx.closePath(),this.ctx.fill(),this.ctx.stroke()},t.prototype.drawPath=function(t,e){var i=t.d.split(" "),r=this.getOptionValue(t,"stroke-width"),o=this.ctx,n=!0;this.ctx.save(),this.ctx.beginPath(),e&&this.ctx.translate(e[0],e[1]),this.ctx.globalAlpha=t.opacity?t.opacity:this.getOptionValue(t,"fill-opacity"),this.setAttributes(t);for(var a=0;a<i.length;a+=3){var s=parseFloat(i[a+1]),h=parseFloat(i[a+2]);switch(i[a]){case"M":t.innerR||t.cx||this.ctx.moveTo(s,h);break;case"L":t.innerR||this.ctx.lineTo(s,h);break;case"Q":var l=parseFloat(i[a+3]),d=parseFloat(i[a+4]);this.ctx.quadraticCurveTo(s,h,l,d),a+=2;break;case"C":var p=parseFloat(i[a+3]),c=parseFloat(i[a+4]),y=parseFloat(i[a+5]),u=parseFloat(i[a+6]);this.ctx.bezierCurveTo(s,h,p,c,y,u),a+=4;break;case"A":t.innerR?n&&(this.ctx.arc(t.x,t.y,t.radius,t.start,t.end,t.counterClockWise),this.ctx.arc(t.x,t.y,t.innerR,t.end,t.start,!t.counterClockWise),n=!1):t.cx?this.ctx.arc(t.cx,t.cy,t.radius,0,2*Math.PI,t.counterClockWise):(this.ctx.moveTo(t.x,t.y),this.ctx.arc(t.x,t.y,t.radius,t.start,t.end,t.counterClockWise),this.ctx.lineTo(t.x,t.y)),a+=5;break;case"z":case"Z":this.ctx.closePath(),a-=2}}return"none"!==t.fill&&void 0!==t.fill&&(this.ctx.fillStyle=t.fill,this.ctx.fill()),r>0&&this.ctx.stroke(),this.ctx.restore(),this.ctx=o,this.canvasObj},t.prototype.createText=function(t,i,r,o,n,a){var s=this.getOptionValue(t,"font-weight");e.isNullOrUndefined(s)||"regular"!==s.toLowerCase()||(s="normal");var h=this.getOptionValue(t,"font-size"),l=this.getOptionValue(t,"font-family"),d=this.getOptionValue(t,"font-style").toLowerCase()+" "+s+" "+h+" "+l,p=this.getOptionValue(t,"text-anchor"),c=void 0!==t.opacity?t.opacity:1;if("middle"===p&&(p="center"),this.ctx.save(),this.ctx.fillStyle=t.fill,this.ctx.font=d,this.ctx.textAlign=p,this.ctx.globalAlpha=c,t.baseline&&(this.ctx.textBaseline=t.baseline),!a){this.ctx.translate(t.x+0+(r||0),t.y+(o||0)),this.ctx.rotate(t.labelRotation*Math.PI/180)}return this.ctx.fillText(i,a?t.x:0,a?n:0),this.ctx.restore(),this.canvasObj},t.prototype.drawCircle=function(t,e){var i=this.ctx;return this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(t.cx,t.cy,t.r,0,2*Math.PI),this.ctx.fillStyle=t.fill,this.ctx.globalAlpha=t.opacity,this.ctx.fill(),e&&this.ctx.translate(e[0],e[1]),this.setAttributes(t),this.ctx.stroke(),this.ctx.restore(),this.ctx=i,this.canvasObj},t.prototype.drawPolyline=function(t){this.ctx.save(),this.ctx.beginPath();for(var e=t.points.split(" "),i=0;i<e.length-1;i++){var r=e[i].split(","),o=parseFloat(r[0]),n=parseFloat(r[1]);0===i?this.ctx.moveTo(o,n):this.ctx.lineTo(o,n)}this.ctx.lineWidth=this.getOptionValue(t,"stroke-width"),this.ctx.strokeStyle=t.stroke,this.ctx.stroke(),this.ctx.restore()},t.prototype.drawEllipse=function(t,e){var i=this.ctx,r=Math.max(t.rx,t.ry),o=t.rx/r,n=t.ry/r;this.ctx.save(),this.ctx.beginPath(),this.ctx.translate(t.cx,t.cy),e&&this.ctx.translate(e[0],e[1]),this.ctx.save(),this.ctx.scale(o,n),this.ctx.arc(0,0,r,0,2*Math.PI,!1),this.ctx.fillStyle=t.fill,this.ctx.fill(),this.ctx.restore(),this.ctx.lineWidth=this.getOptionValue(t,"stroke-width"),this.ctx.strokeStyle=t.stroke,this.ctx.stroke(),this.ctx.restore(),this.ctx=i},t.prototype.drawImage=function(t){this.ctx.save();var i=new Image;e.isNullOrUndefined(t.href)||(i.src=t.href,this.ctx.drawImage(i,t.x,t.y,t.width,t.height)),this.ctx.restore()},t.prototype.createLinearGradient=function(t){var i;return e.isNullOrUndefined(t[0].colorStop)||(i=this.ctx.createLinearGradient(0,0,0,this.canvasObj.height)),this.setGradientValues(t,i)},t.prototype.createRadialGradient=function(t){var i;return e.isNullOrUndefined(t[0].colorStop)||(i=this.ctx.createRadialGradient(0,0,0,0,0,this.canvasObj.height)),this.setGradientValues(t,i)},t.prototype.setGradientValues=function(t,i){var r;if(e.isNullOrUndefined(t[0].colorStop))r=t[0].color.toString();else{for(var o=0;o<=t.length-1;o++){var n=t[o].color,a=t[o].colorStop.slice(0,-1),s=parseInt(a,10)/100;i.addColorStop(s,n)}r=i.toString()}return r},t.prototype.setElementAttributes=function(t,e){for(var i=Object.keys(t),r=Object.keys(t).map(function(e){return t[e]}),o=0;o<i.length;o++)e.setAttribute(i[o],r[o]);return null},t.prototype.updateCanvasAttributes=function(t){this.setElementAttributes(t,this.canvasObj);var i=this.ctx;if(!e.isNullOrUndefined(this.dataUrl)){var r=new Image;r.onload=function(){i.drawImage(r,0,0)},r.src=this.dataUrl}},t.prototype.clearRect=function(t){this.ctx.restore(),this.ctx.clearRect(t.x,t.y,t.width,t.height)},t.prototype.createGroup=function(){return null},t.prototype.drawClipPath=function(){return null},t.prototype.drawCircularClipPath=function(){return null},t.prototype.canvasClip=function(t){this.ctx.save(),this.ctx.fillStyle="transparent",this.ctx.rect(t.x,t.y,t.width,t.height),this.ctx.fill(),this.ctx.clip()},t.prototype.canvasRestore=function(){this.ctx.restore()},t.prototype.drawPolygon=function(){return null},t.prototype.createDefs=function(){return null},t.prototype.createClipPath=function(){return null},t.prototype.createSvg=function(){return null},t}(),y=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)}}(),u=function(){function t(t,e){this.width=t,this.height=e}return t}(),g=function(){function t(t,e,i,r){this.x=t,this.y=e,this.width=i,this.height=r}return t}(),f=function(){function t(t,e){this.isRight=e,this.isBottom=t}return t}(),m=function(){function t(t){this.id=t}return t}(),x=function(t){function e(e,i,r,o,n,a,s,h){void 0===a&&(a="");var l=t.call(this,e)||this;return l.transform="",l.baseLine="auto",l.labelRotation=0,l.x=i,l.y=r,l.anchor=o,l.text=n,l.transform=a,l.baseLine=s,l.labelRotation=h,l}return y(e,t),e}(m),v=function(t){function e(e,i,r,o,n,a,s){var h=t.call(this,e)||this;return h.opacity=n,h.fill=i,h.stroke=o,h["stroke-width"]=r,h["stroke-dasharray"]=a,h.d=s,h}return y(e,t),e}(m),b=function(){function t(t,e){this.x=t,this.y=e}return t}(),w=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},S=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return w(i,t),F([e.Property(null)],i.prototype,"size",void 0),F([e.Property("")],i.prototype,"color",void 0),F([e.Property("Segoe UI")],i.prototype,"fontFamily",void 0),F([e.Property("Normal")],i.prototype,"fontWeight",void 0),F([e.Property("Normal")],i.prototype,"fontStyle",void 0),F([e.Property(1)],i.prototype,"opacity",void 0),i}(e.ChildProperty),L=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return w(i,t),F([e.Property("")],i.prototype,"color",void 0),F([e.Property(1)],i.prototype,"width",void 0),F([e.Property("")],i.prototype,"dashArray",void 0),i}(e.ChildProperty),P=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return w(i,t),F([e.Property(0)],i.prototype,"x",void 0),F([e.Property(0)],i.prototype,"y",void 0),F([e.Property(0)],i.prototype,"width",void 0),F([e.Property(0)],i.prototype,"height",void 0),i}(e.ChildProperty),T=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return w(i,t),F([e.Property(0)],i.prototype,"x",void 0),F([e.Property(0)],i.prototype,"y",void 0),i}(e.ChildProperty),A=function(t){function l(e,i){return t.call(this,e,i)||this}return w(l,t),l.prototype.preRender=function(){this.allowServerDataBinding=!1,this.initPrivateVariable(),this.isCanvas||this.removeSVG(),this.createTooltipElement()},l.prototype.initPrivateVariable=function(){this.renderer=new p(this.element.id),this.themeStyle=i(this.theme),this.formattedText=[],this.padding=5,this.highlightPadding=3,this.areaMargin=10,this.isFirst=!0,this.markerPoint=[]},l.prototype.removeSVG=function(){var t=document.getElementById(this.element.id+"_svg"),i=document.getElementById(this.element.id+"parent_template");this.blazorTemplate&&e.resetBlazorTemplate(this.element.id+"parent_template_blazorTemplate"),t&&t.parentNode&&e.remove(t),i&&i.parentNode&&e.remove(i)},l.prototype.render=function(){if(this.fadeOuted=!1,this.template)this.updateTemplateFn(),this.createTemplate(this.areaBounds,this.location);else{this.renderText(this.isFirst);var t={cancel:!1,name:"tooltipRender",tooltip:this};this.trigger("tooltipRender",t);var i=this.renderTooltipElement(this.areaBounds,this.location);this.drawMarker(i.isBottom,i.isRight,this.markerSize)}this.trigger("loaded",{tooltip:this});var r=document.getElementById("chartmeasuretext");r&&e.remove(r),this.allowServerDataBinding=!0},l.prototype.createTooltipElement=function(){if(this.textElements=[],!this.template||this.shared){this.enableRTL&&this.element.setAttribute("dir","ltr");var t=this.renderer.createSvg({id:this.element.id+"_svg"});this.element.appendChild(t);var e=document.getElementById(this.element.id+"_group");e||(e=this.renderer.createGroup({id:this.element.id+"_group"})).setAttribute("transform","translate(0,0)"),t.appendChild(e);var i=this.renderer.drawPath({id:this.element.id+"_path","stroke-width":"Fabric"!==this.theme&&"Fluent"!==this.theme&&"Fluent2"!==this.theme||this.border.width?this.border.width:1,fill:this.fill||this.themeStyle.tooltipFill,opacity:("TailwindDark"===this.theme||"Tailwind"===this.theme||"Bootstrap5"===this.theme||"Bootstrap5Dark"===this.theme||this.theme.indexOf("Fluent2")>-1)&&.75===this.opacity?1:this.opacity,stroke:this.border.color||("Fabric"===this.theme||"Fluent"===this.theme||"Fluent2"===this.theme?"#D2D0CE":this.border.color)});e.appendChild(i)}},l.prototype.drawMarker=function(t,e,i){if(this.shapes.length<=0)return null;var r,o=0,n=this.renderer.createGroup({id:this.element.id+"_trackball_group"}),s=a(this.element.id+"_group");if(!s)return null;for(var l=(this.enableRTL?this.elementSize.width-i/2:2*this.marginX+i/2)+(e?this.arrowPadding:0),d=0,p=this.shapes;d<p.length;d++){var c=p[d];if("None"!==c){if(r=new v(this.element.id+"_Trackball_"+o,this.palette[o],1,"#cccccc",1,null),this.markerPoint[o]){var y=0;this.header.indexOf("<br")>-1&&(y=this.header.split(/<br.*?>/g).length+o);var g=this.formattedText&&this.formattedText.length>=2?this.getTooltipTextContent(this.formattedText[1])+", "+this.getTooltipTextContent(this.formattedText[0]):"";n.appendChild(h(new b(l,this.markerPoint[o]-this.padding+(t?this.arrowPadding:y)),c,new u(i,i),"",r,"img",g))}o++}}s.appendChild(n)},l.prototype.renderTooltipElement=function(t,i){var o,s=a(this.element.id),h=new b(0,0),l=new b(0,0),d=a(this.element.id+"_svg"),p=a(this.element.id+"_group"),c=a(this.element.id+"_path"),y=!1,u=!1,m=!1,x=0,v=0;if(!e.isNullOrUndefined(p)){if(""!==this.header&&(this.elementSize.height+=this.marginY),this.isFixed){var w=this.elementSize.width+2*this.marginX,F=this.elementSize.height+2*this.marginY;o=new g(i.x,i.y,w,F)}else this.content.length>1?(o=this.sharedTooltipLocation(t,this.location.x,this.location.y),y=!0):(o=this.tooltipLocation(t,i,h,l),this.inverted?(x=(u=o.x<i.x+this.clipBounds.x)?0:this.arrowPadding,this.allowHighlight&&(o.x+=u?this.highlightPadding:-2*this.highlightPadding)):(m=!(y=o.y<i.y+this.clipBounds.y),v=y?0:this.arrowPadding));if(""!==this.header){var S=2,L=0,P=this.isWrap?this.wrappedText:this.header;this.isWrap&&"string"==typeof P&&(P.indexOf("<")>-1||P.indexOf(">")>-1)&&(S=P.split("<br>").length),this.header.indexOf("<br")>-1&&(L=5*(this.header.split(/<br.*?>/g).length-1));var T=e.extend({},this.textStyle,null,!0).properties,A=r(this.isWrap?this.wrappedText:this.header,T,this.themeStyle.textStyle).height+this.marginY*S+(m?this.arrowPadding:0)+(this.isWrap?5:L),O="M "+(3*this.marginX+(u||y||m?0:this.arrowPadding))+" "+A+"L "+(o.width+(u||y||m?0:this.arrowPadding)-2*this.marginX)+" "+A,k=this.renderer.drawPath({id:this.element.id+"_header_path","stroke-width":1,fill:null,opacity:"Material3"===this.theme?.2:.8,stroke:this.themeStyle.tooltipHeaderLine,d:O});p.appendChild(k)}var C=this.border.width/2,E=new g(C+x,C+v,o.width-C,o.height-C);if(p.setAttribute("opacity","1"),!this.enableAnimation||this.isFirst||this.crosshair?this.updateDiv(s,o.x,o.y):this.animateTooltipDiv(s,o),d.setAttribute("height",(o.height+this.border.width+(this.inverted?0:this.arrowPadding)+5).toString()),d.setAttribute("width",(o.width+this.border.width+(this.inverted?this.arrowPadding:0)+5).toString()),d.setAttribute("opacity","1"),e.isNullOrUndefined(this.tooltipPlacement)||(y=this.tooltipPlacement.indexOf("Top")>-1,m=this.tooltipPlacement.indexOf("Bottom")>-1,u=this.tooltipPlacement.indexOf("Left")>-1),c.setAttribute("d",n(this.rx,this.ry,E,h,this.arrowPadding,y,m,u,l.x,l.y,this.controlName)),this.enableShadow&&"Bootstrap4"!==this.theme||this.theme.indexOf("Fluent2")>-1){var N=this.element.id+"_shadow";"Tailwind"===this.theme||"TailwindDark"===this.theme||"Bootstrap5"===this.theme||"Bootstrap5Dark"===this.theme?c.setAttribute("box-shadow","0px 1px 2px rgba(0, 0, 0, 0.06), 0px 1px 3px rgba(0, 0, 0, 0.1)"):c.setAttribute("filter",e.Browser.isIE?"":"url(#"+N+")");var B='<filter id="'+N+'" height="130%"><feGaussianBlur in="SourceAlpha" stdDeviation="3"/>';this.theme.indexOf("Fluent2")>-1?B+='<feOffset dx="-1" dy="3.6" result="offsetblur"/><feComponentTransfer><feFuncA type="linear" slope="0.2"/>':B+='<feOffset dx="3" dy="3" result="offsetblur"/><feComponentTransfer><feFuncA type="linear" slope="0.5"/>',B+='</feComponentTransfer><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge></filter>';var z=this.renderer.createDefs();z.setAttribute("id",this.element.id+"SVG_tooltip_definition"),p.appendChild(z),z.innerHTML=B}var M="Fabric"!==this.theme&&"Fluent"!==this.theme&&"Fluent2"!==this.theme||this.border.color?this.border.color:"#D2D0CE";c.setAttribute("stroke",M),e.isNullOrUndefined(this.border.dashArray)||c.setAttribute("stroke-dasharray",this.border.dashArray),this.changeText(new b(x,v),m,!u&&!y&&!m),this.revert&&(this.inverted=!this.inverted,this.revert=!1)}return new f(m,!u&&!y&&!m)},l.prototype.changeText=function(t,e,i){var r=document.getElementById(this.element.id+"_text");e&&r.setAttribute("transform","translate(0,"+this.arrowPadding+")"),i&&r.setAttribute("transform","translate("+this.arrowPadding+" 0)")},l.prototype.findFormattedText=function(){this.formattedText=[],""!==this.header.replace(/<b>/g,"").replace(/<\/b>/g,"").trim()&&(this.formattedText=this.formattedText.concat(this.header)),this.formattedText=this.formattedText.concat(this.content)},l.prototype.renderText=function(t){var i,o,n,h,l,p=0,c=0,y=0,g="properties",f=e.extend({},this.textStyle,null,!0)[g],m=a(this.element.id+"_group"),v="";this.findFormattedText(),this.isWrap=!1;var b="rtl"===document.body.getAttribute("dir")&&!this.enableRTL?"end":"start";this.leftSpace=this.areaBounds.x+this.location.x,this.rightSpace=this.areaBounds.x+this.areaBounds.width-this.leftSpace;var w=this.header.replace(/<b>/g,"").replace(/<\/b>/g,"").trim(),F=this.header.indexOf("<b>")>-1&&this.header.indexOf("</b>")>-1,S=r(this.formattedText[0],f,this.themeStyle.textStyle).width+2*this.marginX+this.arrowPadding,L=this.location.x-S<this.location.x,P=this.areaBounds.x+this.areaBounds.width<this.location.x+S,T=""!==w?this.marginY:0,A=!0,O=!0;this.markerPoint=[];var k,C=this.shapes.length>0?10:0,E=this.shapes.length>0?5:0,N="400",B=this.themeStyle.tooltipLightLabel,z=22/parseFloat("12px")*parseFloat(f.size),M=[],R=0;t&&!this.isCanvas||(s(this.element.id+"_text"),s(this.element.id+"_header_path"),s(this.element.id+"_trackball_group"),s(this.element.id+"SVG_tooltip_definition")),"Chart"===this.controlName&&parseFloat("12px")<parseFloat(f.size)&&(R=parseFloat(f.size)-parseFloat("12px"));for(var D=new x(this.element.id+"_text",2*this.marginX,R+2*this.marginY+2*this.padding+(2===this.marginY?"RangeNavigator"===this.controlName?5:3:0),b,""),I=d(D,f,f.color||this.themeStyle.tooltipBoldLabel,m,this.themeStyle.textStyle),_=1===this.formattedText.length&&this.formattedText[0].indexOf(" : <b>")>-1,W=""!==this.header,j=W&&F?16:13,H=0,U=this.formattedText.length;H<U;H++)if(n=this.formattedText[H].replace(/<(b|strong)>/g,"<b>").replace(/<\/(b|strong)>/g,"</b>").split(/<br.*?>/g),this.isTextWrap&&this.header!==this.formattedText[H]&&-1===this.formattedText[H].indexOf("<br")&&(k=Math.round(this.leftSpace>this.rightSpace?this.leftSpace/j:this.rightSpace/j),n=this.formattedText[H].match(new RegExp(".{1,"+k+"}","g"))),0===H&&!_&&this.isTextWrap&&(this.leftSpace<S||L)&&(this.rightSpace<S||P)&&(k=Math.round(this.leftSpace>this.rightSpace?this.leftSpace/j:this.rightSpace/j),n=(""!==w?w:this.formattedText[H]).match(new RegExp(".{1,"+k+"}","g")),this.wrappedText=F?"<b>"+n.join("<br>")+"</b>":n.join("<br>"),this.isWrap=n.length>1),""!==n[0]){0===H&&""!==w||this.markerPoint.push((""!==w?this.marginY:0)+D.y+p-(0!==R?R/this.markerSize*(parseFloat(f.size)/this.markerSize):0));for(var V=0,G=n.length;V<G;V++){i=n[V].replace(/<b>/g,"<br><b>").replace(/<\/b>/g,"</b><br>").replace(/:/g,this.enableRTL?"<br>‎: <br>":"<br>‎:<br>").split("<br>"),this.enableRTL&&i.length>0&&n[V].match(/:/g)&&(i[0]=i[0].trim(),i.reverse()),y=0,O=!0,p+=z;for(var Q=0,X=i.length;Q<X;Q++)if(h=i[Q],this.enableRTL&&""!==h&&this.isRTLText(h)&&(h=h.concat("‎")),/\S/.test(h)||""===h||(h=" "),!O&&" "===h||""!==h.replace(/<b>/g,"").replace(/<\/b>/g,"").trim()){y+=" "!==h?4:0,O&&!A?(this.header.indexOf("<br")>-1&&0!==H&&(T+=this.header.split(/<br.*?>/g).length),l={x:2*this.marginX+(C+E),dy:z+(O?T:0),fill:""},T=null):l=A&&O?{x:""===w?2*this.marginX+(C+E):2*this.marginX+(this.isWrap?C+E:0)}:{},O=!1,o=this.renderer.createTSpan(l,""),I.appendChild(o),h.indexOf("<b>")>-1||F&&0===Q&&0===H&&(W||this.isWrap)?(N="600",B=this.themeStyle.tooltipBoldLabel,v="font-weight:"+N,f.fontWeight=N,o.setAttribute("fill",this.textStyle.color||B)):(v="600"===N?"font-weight:"+N:"",f.fontWeight=N,o.setAttribute("fill",this.textStyle.color||B)),(h.indexOf("</b>")>-1||F&&Q===X-1&&0===H&&(W||this.isWrap))&&(N="Normal",B=this.themeStyle.tooltipLightLabel),""!==v&&(o.style.fontWeight=v.split("font-weight:")[1],o.style.color=o.getAttribute("fill")),o.style.fontFamily="inherit",o.style.fontStyle="inherit",o.style.fontSize=this.header===this.formattedText[H]?f.size:this.textStyle.size,o.style.fontWeight=this.header===this.formattedText[H]&&-1===(this.header.indexOf("<b>")||this.header.indexOf("</b>"))?this.textStyle.fontWeight||"600":h.indexOf("<b>")>-1||h.indexOf("</b>")>-1?"bold":this.textStyle.fontWeight||f.fontWeight;var Y=e.extend({},this.textStyle,null,!0)[g];Y.fontWeight=o.style.fontWeight,A=!1,o.textContent=h=this.getTooltipTextContent(h),y+=r(h,Y,this.themeStyle.textStyle).width}y-=4,c=Math.max(c,y),M.push(y)}}this.elementSize=new u(c+(c>0?2*this.marginX:0),p),this.elementSize.width+=C+E;var Z=I.childNodes[0];if(""!==w&&Z&&!this.isWrap){f.fontWeight="600";var q=(this.elementSize.width+2*this.padding)/2-r(w,f,this.themeStyle.textStyle).width/2;Z.setAttribute("x",q.toString())}this.renderContentRTL(I,W,C+E,M)},l.prototype.renderContentRTL=function(t,i,r,o){if(this.enableRTL)for(var n=void 0,a=i?1:0,s=0;s<t.childNodes.length;s++)n=t.childNodes[s],i&&!(s>0)||e.isNullOrUndefined(n.getAttribute("x"))||(n.setAttribute("x",(this.elementSize.width-(r+o[a])).toString()),a++)},l.prototype.getTooltipTextContent=function(t){var i=t.match(/<[a-zA-Z\/](.|\n)*?>/g);if(e.isNullOrUndefined(i))return t;for(var r=this.isRTLText(t),o=0;o<i.length;o++)this.isValidHTMLElement(i[o].replace("<","").replace("/","").replace(">","").trim())&&(t=t.replace(i[o],r?"‎":""));return t},l.prototype.isValidHTMLElement=function(t){return"[object HTMLUnknownElement]"!==document.createElement(t).toString()},l.prototype.isRTLText=function(t){return/[\u0590-\u07FF\u200F\u202B\u202E\uFB1D-\uFDFD\uFE70-\uFEFC]/.test(t)},l.prototype.createTemplate=function(t,i){var r={cancel:!1,name:"tooltipRender",tooltip:this};this.trigger("tooltipRender",r);var o=document.getElementById(this.element.id);this.isCanvas&&this.removeSVG();var n=o.firstElementChild;if(n&&e.remove(n),r.cancel)e.remove(a(this.element.id+"_tooltip"));else{var s=e.createElement("div",{id:this.element.id+"parent_template"}),h=void 0;if("Chart"===this.controlName&&this.shared)for(var l=0;l<this.data.length;l++){var d=this.templateFn(this.data[l],this.controlInstance,s.id,s.id+"_blazorTemplate","");0===l?h=d:d.length>1?h[l].outerHTML=d[l].outerHTML||d[l].textContent:h[h.length-1].outerHTML+=d[0].outerHTML}else h=this.templateFn(this.data,this.controlInstance,s.id,s.id+"_blazorTemplate","");for(;h&&h.length>0;)e.isBlazor()||1===h.length?(s.appendChild(h[0]),h=null):s.appendChild(h[0]);o.appendChild(s);var p=this.isCanvas?s:this.element,c=p.getBoundingClientRect();this.padding=0,this.elementSize=new u(c.width,c.height);var y=this.shared?this.sharedTooltipLocation(t,this.location.x,this.location.y):this.tooltipLocation(t,i,new b(0,0),new b(0,0));if(!this.enableAnimation||this.isFirst||this.crosshair?this.updateDiv(p,y.x,y.y):this.animateTooltipDiv(this.element,y),this.blazorTemplate){var g=function(){var e=a(f.element.id).getBoundingClientRect();f.elementSize=new u(e.width,e.height);var r=f.tooltipLocation(t,i,new b(0,0),new b(0,0));f.updateDiv(a(f.element.id),r.x,r.y)},f=this;g.bind(f,t,i),e.updateBlazorTemplate(this.element.id+"parent_template_blazorTemplate",this.blazorTemplate.name,this.blazorTemplate.parent,void 0,g)}}},l.prototype.sharedTooltipLocation=function(t,e,i){var r=this.elementSize.width+2*this.marginX,o=this.elementSize.height+2*this.marginY,n=new g(e+2*this.padding,i-o-this.padding,r,o);return n.y<t.y&&(n.y+=n.height+2*this.padding),n.y+n.height>t.y+t.height&&(n.y=Math.max(t.y+t.height-(n.height+2*this.padding),t.y)),n.x+n.width>t.x+t.width&&(n.x=t.x+this.location.x-(n.width+4*this.padding)),n.x<t.x&&(n.x=t.x),n},l.prototype.getCurrentPosition=function(t,e,i,r){var o=this.tooltipPlacement,n=this.clipBounds.x,a=this.clipBounds.y,s=this.offset,h=this.elementSize.width+2*this.marginX,l=this.elementSize.height+2*this.marginY,d=new b(e.x,e.y);return"Top"===o||"Bottom"===o?(d=new b(d.x+n-this.elementSize.width/2-this.padding,d.y+a-this.elementSize.height-2*this.padding-this.arrowPadding-s),i.x=r.x=h/2,"Bottom"===o&&(d.y=e.y+a+s),t.x+t.width<d.x+h?(d.x=t.width>h?t.x+t.width-h+6:t.x,i.x=r.x=t.width>h?t.x+e.x-d.x:e.x):t.x>d.x&&(d.x=t.x,i.x=r.x=e.x)):(d=new b(d.x+n+s,d.y+a-this.elementSize.height/2-this.padding),i.y=r.y=l/2,"Left"===o&&(d.x=e.x+n-s-(h+this.arrowPadding)),t.y+t.height<d.y+l?(d.y=t.height>l?t.y+t.height-l+6:t.y,i.y=r.y=t.height>l?t.y+e.y-d.y:e.y):t.y>d.y&&(d.y=t.y,i.y=r.y=e.y)),new g(d.x,d.y,h,l)},l.prototype.tooltipLocation=function(t,i,r,n){if(!e.isNullOrUndefined(this.tooltipPlacement))return this.getCurrentPosition(t,i,r,n);var a=new b(i.x,i.y),s=this.elementSize.width+2*this.marginX,h=this.elementSize.height+2*this.marginY,l=this.offset,d=this.clipBounds.x,p=this.clipBounds.y,c=t.x,y=t.y;return this.outOfBounds=!1,this.inverted?(a=new b(a.x+d+l,a.y+p-this.elementSize.height/2-this.padding),r.y=n.y=h/2,(a.x+s+this.arrowPadding>c+t.width||this.isNegative)&&(a.x=(i.x>t.width+t.x?t.width:i.x)+d-l-(s+this.arrowPadding)),a.x<c&&(a.x=(i.x<0?0:i.x)+d+l),a.x+s+this.arrowPadding>c+t.width&&(a.x=(i.x>t.width+t.x?t.width:i.x)+d-l-(s+this.arrowPadding)),a.y<=y&&(r.y-=y-a.y,n.y-=y-a.y,a.y=y),a.y+h>=y+t.height&&(r.y+=a.y+h-(y+t.height),n.y+=a.y+h-(y+t.height),a.y-=a.y+h-(y+t.height)),r.y+this.arrowPadding>h-this.ry&&(r.y=h-this.ry-this.arrowPadding,n.y=h),r.y-this.arrowPadding<this.ry&&(r.y=n.y=this.ry+this.arrowPadding),"Chart"===this.controlName&&((a.y+r.y<this.areaMargin+this.arrowPadding||t.y+t.height-(a.y+r.y)<this.areaMargin+this.arrowPadding)&&(this.outOfBounds=!0),o(a.x,a.y,t)&&!this.outOfBounds||(this.inverted=!this.inverted,a=new b(i.x+d-this.padding-this.elementSize.width/2,i.y+p-this.elementSize.height-2*this.padding-l-this.arrowPadding),this.revert=!0,n.x=r.x=s/2,n.y=r.y=0,(a.y<y||this.isNegative)&&(a.y=(i.y<0?0:i.y)+l+p),a.y+this.arrowPadding+h>y+t.height&&(a.y=Math.min(i.y,y+t.height)+p-this.elementSize.height-2*this.padding-l-this.arrowPadding),n.x=s/2,a.x<c&&(n.x-=c-a.x,r.x-=c-a.x,a.x=c),a.x+s>t.width+c&&(r.x+=a.x+s-(t.width+c),n.x+=a.x+s-(t.width+c),a.x-=a.x+s-(t.width+c)),this.arrowPadding+r.x>s-this.rx&&(n.x=s-this.rx-this.arrowPadding,r.x=s-this.rx-this.arrowPadding),r.x-this.arrowPadding<this.rx&&(r.x=n.x=this.rx+this.arrowPadding)))):(a=new b(a.x+d-this.elementSize.width/2-this.padding,a.y+p-this.elementSize.height-2*(this.allowHighlight?this.highlightPadding:this.padding)-this.arrowPadding-l),r.x=n.x=s/2,(a.y<y||this.isNegative)&&"Progressbar"!==this.controlName&&(a.y=(i.y<0?0:i.y)+p+l),a.y+h+this.arrowPadding>y+t.height&&(a.y=Math.min(i.y,y+t.height)+p-this.elementSize.height-2*this.padding-this.arrowPadding-l),(a.x+s>c+t.width&&a.y<y||this.isNegative)&&"Progressbar"!==this.controlName&&(a.y=(i.y<0?0:i.y)+p+l),n.x=s/2,a.x<c&&"Progressbar"!==this.controlName&&(r.x-=c-a.x,n.x-=c-a.x,a.x=c),a.x+s>c+t.width&&"Progressbar"!==this.controlName&&(r.x+=a.x+s-(c+t.width),n.x+=a.x+s-(c+t.width),a.x-=a.x+s-(c+t.width)),a.x<c&&"Progressbar"!==this.controlName&&(r.x-=c-a.x,n.x-=c-a.x,a.x=c),r.x+this.arrowPadding>s-this.rx&&(r.x=s-this.rx-this.arrowPadding,n.x=s-this.rx-this.arrowPadding),r.x-this.arrowPadding<this.rx&&(r.x=n.x=this.rx+this.arrowPadding),"Chart"===this.controlName&&((t.x+t.width-(a.x+r.x)<this.areaMargin+this.arrowPadding||a.x+r.x<this.areaMargin+this.arrowPadding)&&(this.outOfBounds=!0),this.template&&a.y<0&&(a.y=i.y+p+l),o(a.x,a.y,t)&&!this.outOfBounds||(this.inverted=!this.inverted,this.revert=!0,a=new b(i.x+l+d,i.y+p-this.elementSize.height/2-this.padding),n.x=r.x=0,n.y=r.y=h/2,(a.x+this.arrowPadding+s>c+t.width||this.isNegative)&&(a.x=(i.x>c+t.width?t.width:i.x)+d-l-(this.arrowPadding+s)),a.x<c&&(a.x=(i.x<0?0:i.x)+l+d),a.y<=y&&(n.y-=y-a.y,r.y-=y-a.y,a.y=y),a.y+h>=t.height+y&&(r.y+=a.y+h-(t.height+y),n.y+=a.y+h-(t.height+y),a.y-=a.y+h-(t.height+y)),this.arrowPadding+r.y>h-this.ry&&(r.y=h-this.arrowPadding-this.ry,n.y=h),r.y-this.arrowPadding<this.ry&&(r.y=this.arrowPadding+this.ry,n.y=0)))),new g(a.x,a.y,s,h)},l.prototype.animateTooltipDiv=function(t,i){var r,o=this,n=parseFloat(t.style.left),a=parseFloat(t.style.top);new e.Animation({}).animate(t,{duration:0===this.duration&&"Enable"===e.animationMode?300:this.duration,progress:function(s){r=s.timeStamp/s.duration,t.style.animation=null,"Chart"===o.controlName&&o.shared&&!o.enableRTL?(t.style.transition=e.isBlazor()?"transform 0.3s":"transform 0.1s",t.style.transform="translate("+(n+r*(i.x-n))+"px,"+(a+r*(i.y-a))+"px)",t.style.left="",t.style.top=""):(t.style.left=n+r*(i.x-n)+"px",t.style.top=a+r*(i.y-a)+"px",t.style.transform="RangeNavigator"===o.controlName?t.style.transform:"")},end:function(e){o.updateDiv(t,i.x,i.y),o.trigger("animationComplete",{tooltip:o})}})},l.prototype.updateDiv=function(t,e,i){"Chart"!==this.controlName||!this.shared||this.crosshair||this.enableRTL?(t.style.left=e+"px",t.style.top=i+"px",t.style.transform="RangeNavigator"===this.controlName?t.style.transform:""):(t.style.transform="translate("+e+"px,"+i+"px)",t.style.left="",t.style.top="")},l.prototype.updateTemplateFn=function(){if(this.template)try{"function"!=typeof this.template&&document.querySelectorAll(this.template).length?this.templateFn=e.compile(document.querySelector(this.template).innerHTML.trim()):this.templateFn=e.compile(this.template)}catch(t){this.templateFn=e.compile(this.template)}},l.prototype.fadeOut=function(){var t=this,i=a(this.isCanvas&&!this.template?this.element.id+"_svg":this.element.id),r=a(this.element.id);if(i){var o=i.firstChild;if(o.nodeType!==Node.ELEMENT_NODE&&(o=i.firstElementChild),this.isCanvas&&!this.template&&(o=document.getElementById(this.element.id+"_group")?document.getElementById(this.element.id+"_group"):o),!o)return null;var n=parseFloat(o.getAttribute("opacity"));n=e.isNullOrUndefined(n)?1:n,new e.Animation({}).animate(o,{duration:200,progress:function(e){t.progressAnimation(o,n,e.timeStamp/e.duration)},end:function(){t.fadeOuted=!0,t.endAnimation(o),r.style.transition=""}})}},l.prototype.progressAnimation=function(t,e,i){t.style.animation="",t.setAttribute("opacity",(e-i).toString())},l.prototype.endAnimation=function(t){t.setAttribute("opacity","0"),this.template&&(t.style.display="none"),this.trigger("animationComplete",{tooltip:this})},l.prototype.getPersistData=function(){var t=[];return this.addOnPersist(t)},l.prototype.getModuleName=function(){return"tooltip"},l.prototype.destroy=function(){t.prototype.destroy.call(this),this.element.classList.remove("e-tooltip")},l.prototype.onPropertyChanged=function(t,i){this.blazorTemplate&&e.resetBlazorTemplate(this.element.id+"parent_template_blazorTemplate"),this.isFirst=!1,this.render()},F([e.Property(!1)],l.prototype,"enable",void 0),F([e.Property(!1)],l.prototype,"shared",void 0),F([e.Property(!1)],l.prototype,"crosshair",void 0),F([e.Property(!1)],l.prototype,"enableShadow",void 0),F([e.Property(null)],l.prototype,"fill",void 0),F([e.Property("")],l.prototype,"header",void 0),F([e.Property(.75)],l.prototype,"opacity",void 0),F([e.Complex({size:"12px",fontWeight:null,color:null,fontStyle:"Normal",fontFamily:null},S)],l.prototype,"textStyle",void 0),F([e.Property(null)],l.prototype,"template",void 0),F([e.Property(!0)],l.prototype,"enableAnimation",void 0),F([e.Property(300)],l.prototype,"duration",void 0),F([e.Property(!1)],l.prototype,"inverted",void 0),F([e.Property(!1)],l.prototype,"isNegative",void 0),F([e.Complex({color:null,width:null},L)],l.prototype,"border",void 0),F([e.Property([])],l.prototype,"content",void 0),F([e.Property(10)],l.prototype,"markerSize",void 0),F([e.Complex({x:0,y:0},T)],l.prototype,"clipBounds",void 0),F([e.Property([])],l.prototype,"palette",void 0),F([e.Property([])],l.prototype,"shapes",void 0),F([e.Complex({x:0,y:0},T)],l.prototype,"location",void 0),F([e.Property(0)],l.prototype,"offset",void 0),F([e.Property(4)],l.prototype,"rx",void 0),F([e.Property(4)],l.prototype,"ry",void 0),F([e.Property(5)],l.prototype,"marginX",void 0),F([e.Property(5)],l.prototype,"marginY",void 0),F([e.Property(7)],l.prototype,"arrowPadding",void 0),F([e.Property(null)],l.prototype,"data",void 0),F([e.Property("Material")],l.prototype,"theme",void 0),F([e.Complex({x:0,y:0,width:0,height:0},P)],l.prototype,"areaBounds",void 0),F([e.Property(null)],l.prototype,"availableSize",void 0),F([e.Property()],l.prototype,"blazorTemplate",void 0),F([e.Property(!1)],l.prototype,"isCanvas",void 0),F([e.Property(!1)],l.prototype,"isTextWrap",void 0),F([e.Property(!1)],l.prototype,"isFixed",void 0),F([e.Property(null)],l.prototype,"tooltipPlacement",void 0),F([e.Property(null)],l.prototype,"controlInstance",void 0),F([e.Property("")],l.prototype,"controlName",void 0),F([e.Event()],l.prototype,"tooltipRender",void 0),F([e.Event()],l.prototype,"loaded",void 0),F([e.Event()],l.prototype,"animationComplete",void 0),F([e.Property(!1)],l.prototype,"enableRTL",void 0),F([e.Property(!1)],l.prototype,"allowHighlight",void 0),l=F([e.NotifyPropertyChanges],l)}(e.Component);return t.AreaBounds=P,t.CanvasRenderer=c,t.CustomizeOption=m,t.PathOption=v,t.Rect=g,t.Side=f,t.Size=u,t.SvgRenderer=p,t.TextOption=x,t.TextStyle=S,t.ToolLocation=T,t.Tooltip=A,t.TooltipBorder=L,t.TooltipLocation=b,t.calculateShapes=l,t.drawSymbol=h,t.findDirection=n,t.getElement=a,t.getTooltipThemeColor=i,t.measureText=r,t.removeElement=s,t.textElement=d,t.withInAreaBounds=o,t}({},ej.base),this.ejs=ej;
//# sourceMappingURL=ej2-svg-base.min.js.map
/*!
* filename: index.d.ts
* version : 26.2.5
* version : 26.2.8
* Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.

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

{
"_from": "@syncfusion/ej2-svg-base@*",
"_id": "@syncfusion/ej2-svg-base@26.1.39",
"_id": "@syncfusion/ej2-svg-base@26.2.5",
"_inBundle": false,
"_integrity": "sha512-CaCxbxH/4H5uQTwyQHxi76dqy2Pm1fcfsFd+1r7M0JgXKFpaVv/fX2PjRnjhzvQeNsx+1iHaJYrrLZu7wt2BFw==",
"_integrity": "sha512-TXmezhGPd0lmNUP5Rus+rrq1y/et56AjX9LXNEusjDEE2syMLU1sq6VBtMK8eXmsTv/MHtzmQv54k/i51i+ulw==",
"_location": "/@syncfusion/ej2-svg-base",

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

],
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-svg-base/-/ej2-svg-base-26.1.39.tgz",
"_shasum": "0b71cab5609a6bbda947d1e80a5b4ce0f18fc32a",
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-svg-base/-/ej2-svg-base-26.2.5.tgz",
"_shasum": "744cedd715aa1de714ee8c6ee1ea5451b24a1895",
"_spec": "@syncfusion/ej2-svg-base@*",

@@ -66,4 +66,4 @@ "_where": "/jenkins/workspace/elease-automation_release_26.1.1/packages/included",

"typings": "index.d.ts",
"version": "26.2.5",
"version": "26.2.8",
"sideEffects": true
}

@@ -13,2 +13,3 @@ /**

* * image - Renders a image
* * star - Renders a star
*/

@@ -38,2 +39,4 @@ export declare type TooltipShape =

'Image' |
/** Render a Star. */
'Star' |
/** Render a None */

@@ -40,0 +43,0 @@ 'None';

@@ -317,2 +317,18 @@ var __extends = (this && this.__extends) || (function () {

break;
case 'Star': {
var cornerPoints = 5;
var outerRadius = Math.min(width, height) / 2;
var innerRadius = outerRadius / 2;
var angle = Math.PI / cornerPoints;
var starPath = '';
for (var i = 0; i < 2 * cornerPoints; i++) {
var radius = (i % 2 === 0) ? outerRadius : innerRadius;
var currentX = locX + radius * Math.cos(i * angle - Math.PI / 2);
var currentY = locY + radius * Math.sin(i * angle - Math.PI / 2);
starPath += (i === 0 ? 'M' : 'L') + currentX + ',' + currentY;
}
starPath += 'Z';
merge(options, { 'd': starPath });
break;
}
}

@@ -319,0 +335,0 @@ return { renderOption: options, functionName: functionName };

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