UNPKG

@boldreports/javascript-reporting-controls

Version:

The Bold Reports by Syncfusion controls for JavaScript contains ReportViewer and ReportDesigner HTML5 and JavaScript reporting controls for enterprise web development

1 lines 283 kB
this.ej=this.ej||{},this.ej.maps=function(e,t,i,a,o){"use strict";function n(e,t){return null!==e&&void 0!==e?-1!==e.indexOf("%")?t/100*parseInt(e,10):parseInt(e,10):null}function l(e){var t=e.element.clientWidth,i=e.element.clientHeight,a=(e.element.parentElement.clientHeight,e.element.parentElement.clientWidth,n(e.element.style.width,t)),o=n(e.element.style.height,t);e.availableSize=new Ke(n(e.width,t)||t||a||600,n(e.height,i)||i||o||(e.isDevice?Math.min(window.innerWidth,window.innerHeight):450))}function r(e){e.renderer=new i.SvgRenderer(e.element.id),l(e),e.svgObject=e.renderer.createSvg({id:e.element.id+"_svg",width:e.availableSize.width,height:e.availableSize.height})}function s(e,t,i){var a=i.getBoundingClientRect(),o=i.ownerDocument.defaultView.pageXOffset,n=i.ownerDocument.defaultView.pageYOffset,l=i.ownerDocument.documentElement.clientTop,r=i.ownerDocument.documentElement.clientLeft,s=a.left+o-r,d=a.top+n-l;return new pt(e-s,t-d)}function d(e){return e*(Math.PI/180)}function p(e){return e*(180/Math.PI)}function h(e,i,a,o,n){var l,r,s,h,c,f,b=new Ke(n.mapAreaRect.width,n.mapAreaRect.height),x=n.baseMapBounds.longitude,S=n.baseMapBounds.latitude,O=d(e),_=d(i),M=n.projectionType,C=n.isTileMap?256*Math.pow(2,1):t.isNullOrUndefined(a)?Math.min(b.width,b.height):Math.min(b.width,b.height)*a;if("Normal"===o.geometryType)l=t.isNullOrUndefined(a)?i:Math.abs((i-x.min)*a),r=t.isNullOrUndefined(a)?e:Math.abs((S.max-e)*a);else if("Geographic"===o.geometryType){switch(M){case"Mercator":var L=new Qe(C/2,C/2);l=L.x+i*(C/360);var P=v(Math.sin(d(e)),-.9999,.9999);r=L.y+.5*Math.log((1+P)/(1-P))*(-C/(2*Math.PI));break;case"Winkel3":c=((s=g(_,O)).x+_/(Math.PI/2))/2,h=(s.y+O)/2;break;case"Miller":c=_,h=1.25*Math.log(Math.tan(Math.PI/4+.4*O));break;case"Eckert3":c=2/(f=Math.sqrt(Math.PI*(4+Math.PI)))*_*(1+Math.sqrt(1-4*O*O/(Math.PI*Math.PI))),h=4/f*O;break;case"AitOff":c=(s=g(_,O)).x,h=s.y;break;case"Eckert5":c=_*(1+Math.cos(O))/Math.sqrt(2+Math.PI),h=2*O/Math.sqrt(2+Math.PI);break;case"Equirectangular":c=_,h=O;break;case"Eckert6":f=(1+Math.PI/2)*Math.sin(O);for(var w=1/0,T=0;T<10&&Math.abs(w)>1e-6;T++)O-=w=(O+Math.sin(O)-f)/(1+Math.cos(O));f=Math.sqrt(2+Math.PI),c=_*(1+Math.cos(O))/f,h=2*O/f}l="Mercator"===M?l:y(m(n,p(c)),3),r="Mercator"===M?r:-y(u(n,p(h)),3)}return new Qe(l,r)}function c(e,t,i,a){var o=256*Math.pow(2,t),n=(e.x+180)/360,l=Math.sin(e.y*Math.PI/180),r=.5-Math.log((1+l)/(1-l))/(4*Math.PI),s=e.x,d=e.y;return a&&(s=n*o+.5+i.x,d=r*o+.5+i.y),{x:s,y:d}}function m(e,i){var a=e.baseMapBounds.longitude,o=t.isNullOrUndefined(e.baseSize)?e.mapAreaRect.width:e.mapAreaRect.width+Math.abs(e.baseSize.width-e.mapAreaRect.width)/2;return Math.round(o*(i-a.min)/(a.max-a.min)*100)/100}function u(e,t){var i=e.baseMapBounds.latitude;return Math.round(e.mapAreaRect.height*(t-i.min)/(i.max-i.min)*100)/100}function g(e,t){var i=Math.cos(t),a=f(b(i*Math.cos(e/=2)));return new Qe(2*i*Math.sin(e)*a,Math.sin(t)*a)}function y(e,t){var i=Math.pow(10,t);return Math.round(e*i)/i}function f(e){return e/Math.sin(e)}function b(e){return Math.acos(e)}function v(e,i,a){return t.isNullOrUndefined(i)||(e=Math.max(e,i)),t.isNullOrUndefined(a)||(e=Math.min(e,a)),e}function x(e,i){var a=document.getElementById("mapsmeasuretext");return null===a&&(a=t.createElement("text",{id:"mapsmeasuretext"}),document.body.appendChild(a)),a.innerHTML=e,a.style.position="absolute",a.style.fontSize=i.size,a.style.fontWeight=i.fontWeight,a.style.fontStyle=i.fontStyle,a.style.fontFamily=i.fontFamily,a.style.visibility="hidden",a.style.top="-100",a.style.left="0",a.style.whiteSpace="nowrap",a.style.lineHeight="normal",new Ke(a.clientWidth,a.clientHeight)}function S(e,t,a,o,n){void 0===n&&(n=!1);var l,r,s={id:e.id,x:e.x,y:e.y,fill:a,"font-size":t.size,"font-style":t.fontStyle,"font-family":t.fontFamily,"font-weight":t.fontWeight,"text-anchor":e.anchor,transform:e.transform,opacity:t.opacity,"dominant-baseline":e.baseLine},d="string"==typeof e.text?e.text:n?e.text[e.text.length-1]:e.text[0],p=new i.SvgRenderer(""),h=p.createText(s,d);if(h.style["user-select"]="none",h.style["-moz-user-select"]="none",h.style["-webkit-touch-callout"]="none",h.style["-webkit-user-select"]="none",h.style["-khtml-user-select"]="none",h.style["-ms-user-select"]="none",h.style["-o-user-select"]="none","string"!=typeof e.text&&e.text.length>1)for(var c=1,m=e.text.length;c<m;c++)r=x(e.text[c],t).height,l=p.createTSpan({x:e.x,id:e.id,y:e.y+(n?-c*r:c*r)},n?e.text[e.text.length-(c+1)]:e.text[c]),h.appendChild(l);return o.appendChild(h),h}function O(e,i,a,o,n){for(var l=t.createElement("div",{id:i,styles:"position: absolute;pointer-events: auto;"}),r=e.length;r>0;)l.appendChild(e[0]),r--;for(var s=l.innerHTML,d=Object.keys(a),p=0;p<d.length;p++)"object"==typeof a[d[p]]?s=M(s,"",a,n):"latitude"!==d[p].toLowerCase()&&"longitude"!==d[p].toLowerCase()&&(s=s.replace(new RegExp("{{:"+d[p]+"}}","g"),a[d[p].toString()]));return l.innerHTML=s,l}function _(e,t){return t.format&&!isNaN(Number(e))?t.intl.getNumberFormat({format:t.format,useGrouping:t.useGroupingSeparator})(Number(e)):e}function M(e,t,i,a){for(var o=""===e?t:e,n=""===e?o.split("${"):o.split("{{:"),l=0;l<n.length;l++)if(n[l].indexOf("}}")>-1&&n[l].indexOf(".")>-1||n[l].indexOf("}")>-1&&n[l].search(".")>-1)for(var r=""===e?n[l].split("}"):n[l].split("}}"),s=0;s<r.length;s++)if(r[s].indexOf(".")>-1){var d=P(i,r[s]).toString();o=""===e?o.split("${"+r[s]+"}").join(_(d,a)):o.replace(new RegExp("{{:"+r[s]+"}}","g"),d)}return o}function C(e,i,a,o,n){for(var l=(t.isNullOrUndefined(e.childElementCount)?e[0]:e).outerHTML,r=Object.keys(a),s=0;s<r.length;s++)l=l.replace(new RegExp("{{:"+r[s]+"}}","g"),a[r[s].toString()]);return t.createElement("div",{id:i,innerHTML:l,styles:"position: absolute"})}function L(e,i,a,o,n,l,r){var s,d,p,h,c,m,u=n.size,g=n.borderColor,y=parseFloat(n.borderWidth),f=n.fill,b=n.dashArray,v={color:g,width:y},x=n.opacity;if(c=new it(o,f,y,g,x,b,""),"Circle"===e){var S=(u.width+u.height)/4;h=new nt(o,f,v,x,a.x,a.y,S,b),s=r.renderer.drawCircle(h)}else"Rectangle"===e?(d=a.x-u.width/2,p=a.y-u.height/2,m=new ot(o,f,v,x,new ht(d,p,u.width,u.height),null,null,"",b),s=r.renderer.drawRectangle(m)):"Image"===e?(d=a.x-u.width/2,p=a.y-u.height,t.merge(c,{href:i,height:u.height,width:u.width,x:d,y:p}),s=r.renderer.drawImage(c)):s=V(r,e,c,u,a,l);return s}function P(e,i){if(!t.isNullOrUndefined(e)&&!t.isNullOrUndefined(i)){var a=i.replace(/\[/g,".").replace(/\]/g,"").split(".");if(1===a.length)e=e[a[0]];else for(var o=0;o<a.length&&!t.isNullOrUndefined(e);o++)e=e[a[o]]}return e}function w(e,i){var a=t.isNullOrUndefined(e.colorValuePath)?i[e.colorValuePath]:e.colorValuePath.indexOf(".")>-1?P(i,e.colorValuePath).toString():i[e.colorValuePath];return e.fill=t.isNullOrUndefined(e.colorValuePath)||t.isNullOrUndefined(a)?e.fill:e.colorValuePath.indexOf(".")>-1?P(i,e.colorValuePath).toString():i[e.colorValuePath],e}function T(e,i){if(t.isNullOrUndefined(e.shapeValuePath)||t.isNullOrUndefined(i[e.shapeValuePath])){var a=t.isNullOrUndefined(e.shapeValuePath)?e.shape:e.shapeValuePath.indexOf(".")>-1?P(i,e.shapeValuePath).toString():e.shape;e.shape=a;var o=t.isNullOrUndefined(e.imageUrlValuePath)?e.imageUrl:e.imageUrlValuePath.indexOf(".")>-1?P(i,e.imageUrlValuePath).toString():e.imageUrl;e.imageUrl=o}else{var n=e.shapeValuePath.indexOf(".")>-1?P(i,e.shapeValuePath).toString():i[e.shapeValuePath];e.shape=n,"Image"==i[e.shapeValuePath]&&(e.imageUrl=t.isNullOrUndefined(e.imageUrlValuePath)||t.isNullOrUndefined(i[e.imageUrlValuePath])?e.imageUrl:e.imageUrlValuePath.indexOf(".")>-1?P(i,e.imageUrlValuePath).toString():i[e.imageUrlValuePath])}return e}function I(e,i,a,o,n,l,r,s){var d,p,h,c,m,u,g,y=[],f=[],b=0,v=0,x=e.markerClusterSettings.labelStyle,O=0,_=[],M=e.markerClusterSettings,C=a.renderer.createGroup({id:a.element.id+"_LayerIndex_"+o+"_markerCluster"}),P={cancel:!1,name:Qt,fill:M.fill,height:M.height,width:M.width,imageUrl:M.imageUrl,shape:M.shape,data:void 0,maps:a,cluster:M,border:M.border};if(t.isBlazor()){P.data,P.maps,P.cluster;var w=Je(P,["data","maps","cluster"]);P=w}a.trigger("markerClusterRendering",P,function(M){for(var w=0;w<i.childElementCount;w++)if(_=[],"hidden"!==i.childNodes[w].style.visibility){if(g=i.childNodes[w],d=g.getBoundingClientRect(),!t.isNullOrUndefined(d)){for(var T=w+1;T<i.childElementCount;T++)"hidden"!==i.childNodes[T].style.visibility&&(g=i.childNodes[T],p=g.getBoundingClientRect(),t.isNullOrUndefined(p)||d.left>p.right||d.right<p.left||d.top>p.bottom||d.bottom<p.top||(y.push(p),i.childNodes[T].style.visibility="hidden",_.push(T)));if(b=d.left+d.width/2,v=d.top+d.height,_.push(w),y.length>0){_=_.filter(function(e,t,i){return i.indexOf(e)===t});var I=a.element.getBoundingClientRect();b-=I.left,v-=I.top;var N=a.isTileMap?new Object:pe(a,e,!1),k=a.isTileMap?{x:0,y:0}:0!==a.translatePoint.x?a.translatePoint:N.location,E=parseInt(i.childNodes[w].id.split("_dataIndex_")[1].split("_")[0],10),z=parseInt(i.childNodes[w].id.split("_MarkerIndex_")[1].split("_")[0],10);i.childNodes[w].style.visibility="hidden";var j=e.markerClusterSettings;P.cancel?((u={size:new Ke(j.width,j.height),fill:j.fill,borderColor:j.border.color,borderWidth:j.border.width,opacity:j.opacity,dashArray:j.dashArray}).fill=j.fill,u.size.width=j.width,u.size.height=j.height,u.imageUrl=j.imageUrl,u.shape=j.shape,u.borderColor=j.border.color,u.borderWidth=j.border.width):((u={size:new Ke(j.width,j.height),fill:j.fill,borderColor:j.border.color,borderWidth:j.border.width,opacity:j.opacity,dashArray:j.dashArray}).fill=P.fill,u.size.width=P.width,u.size.height=P.height,u.imageUrl=P.imageUrl,u.shape=P.shape,u.borderColor=P.border.color,u.borderWidth=P.border.width),b=a.isTileMap?b:i.id.indexOf("_Markers_Group")>-1?b:(b+k.x)*a.mapScaleValue,v=a.isTileMap?v:i.id.indexOf("_Markers_Group")>-1?v:(v+k.y)*a.mapScaleValue;var A=a.element.id+"_LayerIndex_"+o+"_MarkerIndex_"+z+"_dataIndex_"+E+"_cluster_"+O,B=a.element.id+"_LayerIndex_"+o+"_MarkerIndex_"+z+"_dataIndex_"+E+"_cluster_"+O+"_datalabel_"+O;O++;var F="Image"===u.shape?u.size.height/2:0,R=L(u.shape,u.imageUrl,{x:0,y:F},A,u,n,a);R.setAttribute("transform","translate( "+b+" "+v+" )"),"Balloon"===P.shape?R.children[0].innerHTML=_.toString():R.innerHTML=_.toString(),h=new tt(B,0,3.75,"middle",(y.length+1).toString(),"",""),(c=S(h,x,x.color,n)).setAttribute("transform","translate( "+b+" "+v+" )"),C.appendChild(c),C.appendChild(R)}}y=[]}l.appendChild(C),a.svgObject.appendChild(l),a.element.appendChild(a.svgObject);for(var U=0;U<C.childElementCount;U++)if("hidden"!==C.childNodes[U].style.visibility&&(g=C.childNodes[U],d=g.getBoundingClientRect(),!(t.isNullOrUndefined(d)||g.id.indexOf("_datalabel_")>-1))){for(var Z=U+1;Z<C.childElementCount;Z++)"hidden"!==C.childNodes[Z].style.visibility&&(m=C.childNodes[Z],p=m.getBoundingClientRect(),t.isNullOrUndefined(p)||m.id.indexOf("_datalabel_")>-1||d.left>p.right||d.right<p.left||d.top>p.bottom||d.bottom<p.top||(f.push(m),f.push(C.childNodes[Z-1]),C.childNodes[Z].style.visibility="hidden",C.childNodes[Z-1].style.visibility="hidden",_.push(Z)));if(f.length>0){g=C.childNodes[U];for(var D=0;D<f.length;D++)"g"===g.tagName?g.childNodes[0].textContent=g.childNodes[0].textContent+","+f[D].textContent:g.textContent=g.textContent+","+f[D].textContent,C.childNodes[U-1].textContent=(+C.childNodes[U-1].textContent+ +f[D+1].textContent).toString(),D++}f=[]}for(;0<C.childNodes.length;)n.insertBefore(C.childNodes[0],n.firstChild);r?l.appendChild(n):(me(a.element.id+"_Secondary_Element").appendChild(n),l.appendChild(n)),document.getElementById(a.element.id+"_LayerIndex_0_markerCluster").remove(),s&&document.getElementById(a.element.id+"_Layer_Collections").appendChild(l)})}function N(e,t,i){var a=e[0].layerIndex,o=e[0].targetClusterIndex,n=e[0].markerIndex,l=e[0].isClusterSame?e[0].data[0].index:e[0].data[e[0].data.length-1].index,r=t.element.id+"_LayerIndex_"+a+"_MarkerIndex_"+n,s=r+"_dataIndex_"+l+"_cluster_"+o,d=ye(s),p=ye(s+"_datalabel_"+o);d.setAttribute("visibility","visible"),p.setAttribute("visibility","visible");for(var h=e[0].data.length,c=0;c<h;c++)ye(r+"_dataIndex_"+e[0].data[c].index).style.visibility="hidden";se(t.element.id+"_LayerIndex_"+a+"_MarkerIndex_"+n+"_markerClusterConnectorLine")}function k(e,t,i,a){var o=e[0].layerIndex,n=e[0].markerIndex,l=e[0].targetClusterIndex,r=e[0].isClusterSame?e[0].data[0].index:e[0].data[e[0].data.length-1].index,s=a?ye:i.querySelector.bind(i),d=a?"":"#",p=t.element.id+"_LayerIndex_"+o+"_MarkerIndex_"+n,h=p+"_dataIndex_"+r+"_cluster_"+l,c=s(d+""+h),m=s(d+""+h+"_datalabel_"+l);c.setAttribute("visibility","hidden"),m.setAttribute("visibility","hidden");var u=t.layers[o].markerSettings[n],g=s(d+""+p+"_dataIndex_"+r),y=u.height,f=u.width,b=+c.getAttribute("transform").split("translate(")[1].trim().split(" ")[0],v=+c.getAttribute("transform").split("translate(")[1].trim().split(" ")[1].split(")")[0].trim(),x=f+5,S=6.28*x,O=0,_=Math.round(S/f);O+=_;for(var M=e[0].data.length,C=Math.round(y/S*100),L=(C=M<_?100/M:C)/100*360,P=M<_?45:0,w=1,T="M "+b+" "+v+" ",I="",N=0;N<M;N++){if(O===N||Math.round(P)>=360){for(P=0,S=6.28*(x=(f+5)*++w),_=Math.round(S/y),C=Math.round(y/S*100);C*_<100;)_++;L=C/100*360,O+=_}var k=b+x*Math.sin(2*Math.PI*P/360),E=v+x*Math.cos(2*Math.PI*P/360);I+=T+"L "+k+" "+E+" ",(g=s(d+""+p+"_dataIndex_"+e[0].data[N].index)).setAttribute("transform","translate( "+k+" "+E+")"),g.style.visibility="visible",P+=L}var z,j=t.layers[o].markerClusterSettings.connectorLineSettings;z={d:I,id:t.element.id+"_LayerIndex_"+o+"_MarkerIndex_"+n+"_dataIndex_"+r+"_markerClusterConnectorLine",stroke:j.color,opacity:j.opacity,"stroke-width":j.width},i=a?s(t.element.id+"_Markers_Group"):i;var A=t.renderer.createGroup({id:t.element.id+"_LayerIndex_"+o+"_MarkerIndex_"+n+"_markerClusterConnectorLine"});A.appendChild(t.renderer.drawPath(z)),i.insertBefore(A,i.querySelector("#"+p+"_dataIndex_0"))}function E(e,t,i,a,o,n,l,r,s,d,p){var h={size:new Ke(e.width,e.height),fill:e.fill,borderColor:e.border.color,borderWidth:e.border.width,opacity:t.opacity,dashArray:t.dashArray},c=L(e.shape,e.imageUrl,{x:0,y:0},l,h,p,d),m=(d.isTileMap?o.x:(o.x+n.x)*s)+r.x,u=(d.isTileMap?o.y:(o.y+n.y)*s)+r.y;c.setAttribute("transform","translate( "+m+" "+u+" )"),j(d.selectedMarkerElementId,d.markerSelectionClass,c,"MarkerselectionMapStyle"),p.appendChild(c);var g=i.length-1===a?"marker":null,y=new Qe(m,u);return t.animationDuration>0&&Le(c,t.animationDelay,t.animationDuration,y,d,g),p}function z(e,t,i,a,o,n,l,r,s,d){if((t=ge(e.template))&&(d.isBlazor?{}:t(a,null,null,d.element.id+"_MarkerTemplate"+o,!1).length)){for(var p=O(t(a,null,null,d.element.id+"_MarkerTemplate"+o,!1),i,a,o,d),h=0;h<p.children.length;h++)p.children[h].style.pointerEvents="none";if(p.style.left=(d.isTileMap?l.x:Math.abs(d.baseMapRectBounds.min.x-l.x)*r)+s.x+"px",p.style.top=(d.isTileMap?l.y:Math.abs(d.baseMapRectBounds.min.y-l.y)*r)+s.y+"px",n.appendChild(p),"GoogleStaticMap"===d.layers[d.baseLayerIndex].layerType){var c=me(d.element.id+"_StaticGoogleMap").getBoundingClientRect(),m=p.getBoundingClientRect();(c.x>m.x||c.x+640<m.x+m.width)&&(c.y>m.y||c.y+c.height<m.y+m.height)&&(p.style.display="none")}}return n}function j(e,i,a,o){if(e)for(var n=0;n<e.length;n++)a.getAttribute("id")===e[n]&&((t.isNullOrUndefined(ye(i.id))||0===n)&&(document.body.appendChild(i),a.id.indexOf("_MarkerIndex_")>-1&&a.childElementCount>0&&a.children[0].setAttribute("class",o)),a.setAttribute("class",o))}function A(e,i,a,o,n,l,r){if(!ye(e)){var s=void 0;s=t.createElement("style",{id:e,innerHTML:"."+i+"{fill:"+a+";opacity:"+o+";stroke-width:"+l+";stroke:"+n+";}"}),r.shapeSelectionClass=s,document.body.appendChild(s)}}function B(e,t){return t&&t.appendChild(e),e}function F(e,t,i){return B(e.renderer.drawCircle(t),i)}function R(e,t,i){return B(e.renderer.drawRectangle(t),i)}function U(e,t,i){return B(e.renderer.drawPath(t),i)}function Z(e,t,i){return B(e.renderer.drawPolygon(t),i)}function D(e,t,i){return B(e.renderer.drawPolyline(t),i)}function H(e,t,i){return B(e.renderer.drawLine(t),i)}function V(e,t,i,a,o,n){var l;switch(t){case"Balloon":l=K(e,i,a,o,n);break;case"Cross":i.d="M "+o.x+" "+(o.y-a.height/2)+" L "+o.x+" "+(o.y+a.height/2)+" M "+(o.x-a.width/2)+" "+o.y+" L "+(o.x+a.width/2)+" "+o.y;break;case"Diamond":i.d="M "+o.x+" "+(o.y-a.height/2)+" L "+(o.x+a.width/2)+" "+o.y+" L "+o.x+" "+(o.y+a.height/2)+" L "+(o.x-a.width/2)+" "+o.y+" Z";break;case"Star":i.d="M "+(o.x+a.width/3)+" "+(o.y-a.height/2)+" L "+(o.x-a.width/2)+" "+(o.y+a.height/6)+" L "+(o.x+a.width/2)+" "+(o.y+a.height/6)+" L "+(o.x-a.width/3)+" "+(o.y-a.height/2)+" L "+o.x+" "+(o.y+a.height/2)+" L "+(o.x+a.width/3)+" "+(o.y-a.height/2)+" Z";break;case"Triangle":i.d="M "+o.x+" "+(o.y-a.height/2)+" L "+(o.x+a.width/2)+" "+(o.y+a.height/2)+" L "+(o.x-a.width/2)+" "+(o.y+a.height/2)+" Z";break;case"HorizontalLine":i.d=" M "+(o.x-a.width/2)+" "+o.y+" L "+(o.x+a.width/2)+" "+o.y;break;case"VerticalLine":i.d="M "+o.x+" "+(o.y-a.height/2)+" L "+o.x+" "+(o.y+a.height/2);break;case"InvertedTriangle":i.d="M "+(o.x-a.width/2)+" "+(o.y-a.height/2)+" L "+(o.x+a.width/2)+" "+(o.y-a.height/2)+" L "+o.x+" "+(o.y+a.height/2)+" Z";break;case"Pentagon":for(var r=void 0,s=void 0,d=0;d<5;d++)r=a.width/2*Math.cos(Math.PI/180*(72*d)),s=a.height/2*Math.sin(Math.PI/180*(72*d)),i.d+=(0==d?"M ":"L ")+(o.x+r)+" "+(o.y+s);i.d+=" Z"}return"Cross"!==t&&"HorizontalLine"!==t&&"VerticalLine"!==t||(i.stroke="transparent"===i.stroke?i.fill:i.stroke),"Balloon"===t?l:e.renderer.drawPath(i)}function G(e,t,i,a,o){return t.d="M "+a.x+" "+(a.y-i.height/2)+" L "+(a.x+i.width/2)+" "+a.y+" L "+a.x+" "+(a.y+i.height/2)+" L "+(a.x-i.width/2)+" "+a.y+" Z",B(e.renderer.drawPath(t),o)}function W(e,t,i,a,o){return t.d="M "+a.x+" "+(a.y-i.height/2)+" L "+(a.x+i.width/2)+" "+(a.y+i.height/2)+" L "+(a.x-i.width/2)+" "+(a.y+i.height/2)+" Z",B(e.renderer.drawPath(t),o)}function q(e,t,i,a,o){return t.d="M "+a.x+" "+(a.y-i.height/2)+" L "+a.x+" "+(a.y+i.height/2)+" M "+(a.x-i.width/2)+" "+a.y+" L "+(a.x+i.width/2)+" "+a.y,B(e.renderer.drawPath(t),o)}function X(e,t,i,a,o){return t.d=" M "+(a.x-i.width/2)+" "+a.y+" L "+(a.x+i.width/2)+" "+a.y,B(e.renderer.drawPath(t),o)}function Y(e,t,i,a,o){return t.d="M "+a.x+" "+(a.y-i.height/2)+" L "+a.x+" "+(a.y+i.height/2),B(e.renderer.drawPath(t),o)}function J(e,t,i,a,o){return t.d="M "+(a.x+i.width/3)+" "+(a.y-i.height/2)+" L "+(a.x-i.width/2)+" "+(a.y+i.height/6)+" L "+(a.x+i.width/2)+" "+(a.y+i.height/6)+" L "+(a.x-i.width/3)+" "+(a.y-i.height/2)+" L "+a.x+" "+(a.y+i.height/2)+" L "+(a.x+i.width/3)+" "+(a.y-i.height/2)+" Z",B(e.renderer.drawPath(t),o)}function K(e,t,i,a,o){var n=i.width,l=i.height;a.x-=n/2,a.y-=l,t.d="M15,0C8.8,0,3.8,5,3.8,11.2C3.8,17.5,9.4,24.4,15,30c5.6-5.6,11.2-12.5,11.2-18.8C26.2,5,21.2,0,15,0z M15,16c-2.8,0-5-2.2-5-5s2.2-5,5-5s5,2.2,5,5S17.8,16,15,16z";var r=e.renderer.drawPath(t),s=i.width/30,d=i.height/30;r.setAttribute("transform","translate("+a.x+", "+a.y+") scale("+s+", "+d+")");var p=e.renderer.createGroup({id:t.id});return B(r,p),B(p,o)}function Q(e,t,i,a){for(var o=e.renderer.createPattern(t,"pattern"),n=0,l=i;n<l.length;n++)B(l[n],o);return B(o,a)}function $(e,t){for(var i,a=[],o=0,n=e;o<n.length;o++){var l=n[o];i={};for(var r=0,s=t;r<s.length;r++){var d=s[r];l[d]&&(i[d]=l[d])}a.push(i)}return a}function ee(e,i,a,o,n){if(!t.isNullOrUndefined(i))for(var l=0;l<e.length;l++){var r=a.indexOf(".")>-1?P(e[l],a):e[l][a],s=te(r,o,i);if((!t.isNullOrUndefined(r)&&isNaN(i[s])?r.toLowerCase():r)===(!t.isNullOrUndefined(i[s])&&isNaN(i[s])?i[s].toLowerCase():i[s]))return l}return null}function te(e,i,a){if(!t.isNullOrUndefined(e)&&!t.isNullOrUndefined(a)&&!t.isNullOrUndefined(i))for(var o="[object Array]"===Object.prototype.toString.call(i)?i:[i],n=0;n<o.length;n++)if((t.isNullOrUndefined(e)?e:e.toLowerCase())===(!t.isNullOrUndefined(a[o[n]])&&isNaN(a[o[n]])?a[o[n]].toLowerCase():a[o[n]]))return o[n];return null}function ie(e,t,i){for(var a=[],o=0;o<e.length;o++){var n=e[o];t<=n.y&&i>=n.y&&a.push(n)}return a}function ae(e,t,i,a,o){var n=(t-e)/100*(100/(o-a)*(i-a))+e;return o===a&&(n=(t-e)/100+e),n}function oe(e,t){if(!e.length)return null;for(var i,a,o,n,l=e.length,r=0,s=0,d=0,p=0;p<=l-1;p++)i=e[p].x,a="Mercator"===t?e[p].y:-e[p].y,p===l-1?(o=e[0].x,n="Mercator"===t?e[0].y:-e[0].y):(o=e[p+1].x,n="Mercator"===t?e[p+1].y:-e[p+1].y),r+=Math.abs(i*n-o*a),s+=Math.abs((i+o)*(i*n-o*a)),d+=Math.abs((a+n)*(i*n-o*a));s*=1/(4*(r*=.5)),d*=1/(4*r);for(var h={x:0,y:0},c={x:0,y:0},m={x:0,y:0},u={x:0,y:0},g={x:0,y:0},y={x:0,y:0},f={x:0,y:0},b={x:0,y:0},v=0,p=0;p<=l-1;p++){var x=e[p];x.y="Mercator"===t?x.y:-x.y,x.y>d?x.x<s&&s-x.x<s-g.x?g={x:x.x,y:x.y}:x.x>s&&(0===y.x||x.x-s<y.x-s)&&(y={x:x.x,y:x.y}):x.x<s&&s-x.x<s-f.x?f={x:x.x,y:x.y}:x.x>s&&(0===b.x||x.x-s<b.x-s)&&(b={x:x.x,y:x.y}),v=y.y-b.y+(y.y-b.y)/4,x.x>s?x.y<d&&d-x.y<d-h.y?h={x:x.x,y:x.y}:x.y>d&&(0===c.y||x.y-d<c.y-d)&&(c={x:x.x,y:x.y}):x.y<d&&d-x.y<d-m.y?m={x:x.x,y:x.y}:x.y>d&&(0===u.y||x.y-d<u.y-d)&&(u={x:x.x,y:x.y})}return{x:s,y:d,rightMin:h,rightMax:c,leftMin:m,leftMax:u,points:e,topMax:b,topMin:f,bottomMax:y,bottomMin:g,height:v}}function ne(e){var i=!1;return"[object Array]"===Object.prototype.toString.call(e)&&Array.prototype.forEach.call(e,function(e,a){t.isNullOrUndefined(e.geometry)||"Path"!==e.geometry.type||(i=!0)}),i}function le(e,t,i){var a=t,o=x(t,i).width;if(o>e)for(var n=t.length-1;n>=0;--n)if(a=t.substring(0,n)+"...",(o=x(a,i).width)<=e||a.length<4)return a.length<4&&(a=" "),a;return a}function re(e,t,i,a){var o,n;switch(t){case"Near":o=e.x;break;case"Center":o="title"===a?e.width/2-i.width/2:e.x+e.width/2-i.width/2;break;case"Far":o="title"===a?e.width-e.y-i.width:e.x+e.width-i.width}return n="title"===a?e.y+i.height/2:e.y+e.height/2+i.height/2,new Qe(o,n)}function se(e){var i=document.getElementById(e);return i?t.remove(i):null}function de(e,t){var i=h(e.minLatOfGivenLocation,e.minLongOfGivenLocation,e.mapLayerPanel.calculateFactor(t),t,e),a=h(e.maxLatOfGivenLocation,e.maxLongOfGivenLocation,e.mapLayerPanel.calculateFactor(t),t,e),o=(i.x+a.x)/2,n=(i.y+a.y)/2;return new Qe(o,n)}function pe(e,i,a){var o,n=e.zoomSettings.zoomFactor,l=e.centerPosition,r=l.latitude,s=l.longitude,d=!t.isNullOrUndefined(e.centerLatOfGivenLocation)&&!t.isNullOrUndefined(e.centerLongOfGivenLocation)&&e.zoomNotApplied;t.isNullOrUndefined(e.mapScaleValue)&&(e.mapScaleValue=n),e.zoomSettings.shouldZoomInitially&&e.zoomSettings.enable&&(e.mapScaleValue=o=n=(e.zoomSettings.shouldZoomInitially||e.enablePersistence)&&1==e.scale?e.scale:t.isNullOrUndefined(e.markerZoomFactor)?1:e.markerZoomFactor,e.mapScaleValue===e.markerZoomFactor||e.enablePersistence||(e.mapScaleValue=n=e.markerZoomFactor),t.isNullOrUndefined(e.markerCenterLatitude)||t.isNullOrUndefined(e.markerCenterLongitude)||(r=e.markerCenterLatitude,s=e.markerCenterLongitude)),d&&(e.mapScaleValue=o=n=e.scaleOfGivenLocation);var p=e.baseMapRectBounds.min,c=e.baseMapRectBounds.max,m=a?1:e.mapScaleValue;t.isNullOrUndefined(e.currentShapeDataLength)&&(e.currentShapeDataLength=t.isNullOrUndefined(i.shapeData.features)?i.shapeData.geometries.length:i.shapeData.features.length);var u,g,y=e.totalRect&&e.legendSettings.visible?e.totalRect:e.mapAreaRect,f=e.availableSize,b=Math.abs(c.x-p.x),v=Math.abs(p.y-c.y),x=a?1:1===e.markerZoomFactor?e.mapScaleValue:n;if(l=e.zoomSettings.shouldZoomInitially&&e.markerZoomedState&&!e.zoomPersistence?e.markerZoomCenterPoint:e.centerPosition,!t.isNullOrUndefined(s)&&!t.isNullOrUndefined(r)||d){var S=((b+Math.abs(e.mapAreaRect.width-b))/2+e.mapAreaRect.x)/x,O=((v+Math.abs(e.mapAreaRect.height-v))/2+e.mapAreaRect.y)/x,_=d?de(e,i):h(r,s,e.mapLayerPanel.calculateFactor(i),i,e);t.isNullOrUndefined(e.previousProjection)||e.previousProjection!==e.projectionType?(u=-_.x+S,g=-_.y+O,o=m):(1!==Math.floor(e.scale)&&e.zoomSettings.shouldZoomInitially||e.zoomNotApplied?(u=-_.x+S,g=-_.y+O):e.zoomSettings.shouldZoomInitially||e.zoomNotApplied?(u=-_.x+S,g=-_.y+O,o=m):(u=e.zoomTranslatePoint.x,g=e.zoomTranslatePoint.y),o=e.mapScaleValue)}else if(t.isNullOrUndefined(e.previousProjection)||e.previousProjection!==e.projectionType){b*=o=parseFloat(Math.min(y.width/b,y.height/v).toFixed(2)),v*=o;var M=0!==p.x&&"layers"===e.translateType?f.width-y.width:0;u=y.x+(-p.x+(y.width/2-b/2))-M,g=y.y+(-p.y+(y.height/2-v/2)),e.previousTranslate=new Qe(u,g)}else if(e.zoomSettings.shouldZoomInitially||1!==e.markerZoomFactor||1!==e.mapScaleValue)if(o=e.mapScaleValue<1?e.mapScaleValue+1:e.mapScaleValue,e.mapScaleValue=e.zoomSettings.enable&&1!==e.mapScaleValue?e.mapScaleValue:1,e.currentShapeDataLength!==(t.isNullOrUndefined(i.shapeData.features)?i.shapeData.geometries.length:i.shapeData.features.length)&&"SubLayer"!==i.type){var C=parseFloat(Math.min(y.height/v,y.width/b).toFixed(2));v*=C,b*=C,g=y.y+(-p.y+(y.height/2-v/2)),o=C,u=y.x+(-p.x+(y.width/2-b/2))}else if(e.availableSize.height!==e.heightBeforeRefresh||e.widthBeforeRefresh!==e.availableSize.width){var L=parseFloat(Math.min(y.width/b,y.height/v).toFixed(2)),P=b;P*=L;var w=v;w*=L;var T=y.x+(-p.x+(y.width/2-P/2)),I=y.y+(-p.y+(y.height/2-w/2)),N=(e.translatePoint.x-e.previousTranslate.x)/e.widthBeforeRefresh,k=(e.translatePoint.y-e.previousTranslate.y)/e.heightBeforeRefresh;u=T+N*e.availableSize.width,g=I+k*e.availableSize.height,e.previousTranslate=new Qe(T,I),e.zoomTranslatePoint.x=u,e.zoomTranslatePoint.y=g}else t.isNullOrUndefined(e.previousProjection)||1!==e.mapScaleValue||e.zoomModule.isDragZoom?(u=e.zoomTranslatePoint.x,g=e.zoomTranslatePoint.y,o=e.scale):(b*=o=parseFloat(Math.min(y.width/b,y.height/v).toFixed(2)),u=y.x+(-p.x+(y.width/2-b/2)),v*=o,g=y.y+(-p.y+(y.height/2-v/2)));else v*=o=parseFloat(Math.min(y.width/b,y.height/v).toFixed(2)),b*=o,g=y.y+(-p.y+(y.height/2-v/2)),u=y.x+(-p.x+(y.width/2-b/2));return t.isNullOrUndefined(e.translatePoint)||(u=e.enablePersistence&&0!=e.translatePoint.x&&!e.zoomNotApplied?e.translatePoint.x:u,g=e.enablePersistence&&0!=e.translatePoint.y&&!e.zoomNotApplied?e.translatePoint.y:g),o=e.enablePersistence?e.mapScaleValue>=1?e.mapScaleValue:1:o,e.widthBeforeRefresh=e.availableSize.width,e.heightBeforeRefresh=e.availableSize.height,{scale:o,location:new Qe(u,g)}}function he(e,i,a){var o,n=e.zoomSettings.zoomFactor,l=e.centerPosition,r=l.latitude,s=l.longitude,d=!t.isNullOrUndefined(e.centerLongOfGivenLocation)&&!t.isNullOrUndefined(e.centerLatOfGivenLocation)&&e.zoomNotApplied;t.isNullOrUndefined(e.previousCenterLatitude)&&t.isNullOrUndefined(e.previousCenterLongitude)?(e.previousCenterLatitude=e.centerPosition.latitude,e.previousCenterLongitude=e.centerPosition.longitude):e.previousCenterLatitude!==e.centerPosition.latitude&&e.previousCenterLongitude!==e.centerPosition.longitude?(e.centerPositionChanged=!0,e.previousCenterLatitude=e.centerPosition.latitude,e.previousCenterLongitude=e.centerPosition.longitude):e.centerPositionChanged=!1,(t.isNullOrUndefined(e.mapScaleValue)||n>e.mapScaleValue)&&(e.isReset&&1===e.mapScaleValue?e.mapScaleValue=e.mapScaleValue:e.mapScaleValue=n),e.mapScaleValue=1!==e.zoomSettings.zoomFactor&&e.zoomSettings.zoomFactor===e.mapScaleValue?e.zoomSettings.zoomFactor:e.zoomSettings.zoomFactor===e.mapScaleValue||e.centerPositionChanged?e.zoomSettings.zoomFactor:e.mapScaleValue,e.zoomSettings.shouldZoomInitially&&(e.mapScaleValue=n=o=(e.enablePersistence||e.zoomSettings.shouldZoomInitially)&&1==e.scale?e.scale:t.isNullOrUndefined(e.markerZoomFactor)?e.mapScaleValue:e.markerZoomFactor,n=e.mapScaleValue,t.isNullOrUndefined(e.markerCenterLatitude)||t.isNullOrUndefined(e.markerCenterLongitude)||(r=e.markerCenterLatitude,s=e.markerCenterLongitude)),d&&(e.mapScaleValue=o=n=e.scaleOfGivenLocation);var p,c,m=a?1:e.mapScaleValue,u=e.mapAreaRect,g=e.baseMapRectBounds.min,y=e.baseMapRectBounds.max,f=a?1:e.mapScaleValue,b=Math.abs(y.x-g.x),v=Math.abs(g.y-y.y);if(!t.isNullOrUndefined(s)&&!t.isNullOrUndefined(r)||d){var x=(v+Math.abs(e.mapAreaRect.height-v))/2/f,S=(b+Math.abs(e.mapAreaRect.width-b))/2/f,O=d?de(e,i):h(r,s,e.mapLayerPanel.calculateFactor(i),i,e);t.isNullOrUndefined(e.zoomTranslatePoint)&&t.isNullOrUndefined(e.previousProjection)||e.zoomNotApplied?(p=-O.x+S+e.mapAreaRect.x/m,c=-O.y+x+e.mapAreaRect.y/m):e.previousProjection!==e.projectionType?(p=-O.x+S,c=-O.y+x):(p=e.zoomTranslatePoint.x,c=e.zoomTranslatePoint.y,n=m),t.isNullOrUndefined(e.translatePoint)||(c=e.enablePersistence&&0!=e.translatePoint.y&&!e.zoomNotApplied?e.translatePoint.y:c,p=e.enablePersistence&&0!=e.translatePoint.x&&!e.zoomNotApplied?e.translatePoint.x:p),o=0!==n?n:1}else{var _=0===e.zoomSettings.zoomFactor?1:e.zoomSettings.zoomFactor;o=_=_>10?10:_;var M=0===e.mapScaleValue?1:e.mapScaleValue>10?10:e.mapScaleValue,S=u.x+(-g.x+(u.width/2-b/2)),x=u.y+(-g.y+(u.height/2-v/2));if(!t.isNullOrUndefined(e.zoomTranslatePoint)||!t.isNullOrUndefined(e.previousProjection))if(e.previousProjection!==e.projectionType){var C=[],L={x:S,y:x};C.push(L);for(var P=1;P<10;P++)L={x:C[P-1].x-(u.width/P-u.width/(P+1))/2,y:C[P-1].y-(u.height/P-u.height/(P+1))/2},C.push(L);S=C[_-1].x,x=C[_-1].y}else S=e.zoomTranslatePoint.x,x=e.zoomTranslatePoint.y,_!==M&&(o=M);t.isNullOrUndefined(e.translatePoint)||(p=e.enablePersistence&&0!=e.translatePoint.x&&!e.zoomNotApplied?e.translatePoint.x:S,c=e.enablePersistence&&0!=e.translatePoint.y&&!e.zoomNotApplied?e.translatePoint.y:x)}return o=e.enablePersistence?0==e.mapScaleValue?1:e.mapScaleValue:o,{scale:a?1:o,location:new Qe(p,c)}}function ce(e){e.tileZoomScale=e.tileZoomLevel=Math.floor(e.availableSize.height/512)+1;var t="GoogleStaticMap"!==e.layers[e.baseLayerIndex].layerType?20:0,i=256*Math.pow(2,e.tileZoomLevel);e.tileTranslatePoint.x=e.availableSize.width/2-i/2,e.tileTranslatePoint.y=e.availableSize.height/2-i/2+t,e.previousTileWidth=e.availableSize.width,e.previousTileHeight=e.availableSize.height}function me(e){return document.getElementById(e)}function ue(e,t){return e.formatFunction=e.intl.getNumberFormat({format:e.format,useGrouping:e.useGroupingSeparator}),e.formatFunction(t)}function ge(e){var i=null;try{document.querySelectorAll(e).length&&(i=t.compile(document.querySelector(e).innerHTML.trim()))}catch(a){i=t.compile(e)}return i}function ye(e){return document.getElementById(e)}function fe(e,t){var i,a=parseInt(e.split("_LayerIndex_")[1].split("_")[0],10),o=parseInt(e.split("_shapeIndex_")[1].split("_")[0],10),n=t.layers[a],l=n.layerData[o].property;return n.dataSource&&(i=n.dataSource[ee(n.dataSource,l,n.shapeDataPath,n.shapePropertyPath,n)]),{shapeData:l,data:i}}function be(e,t,i,a){var o=fe(e,i),n={cancel:!1,name:a,fill:t.fill,opacity:t.opacity,border:t.border,shapeData:o.shapeData,data:o.data,target:e,maps:i};if(i.isBlazor){n.maps,n.shapeData;n=Je(n,["maps","shapeData"])}return i.trigger(a,n),n}function ve(e){return document.getElementsByClassName(e)}function xe(e,t){var i=null;return document.getElementById(t)&&(i=document.getElementById(t).querySelector("#"+e)),i}function Se(e,t,i,a){for(var o,n=a.layers[e].shapeData.features,l=0;l<n.length;l++)if(n[l].properties.name===t){o=a.element.id+"_LayerIndex_"+e+"_shapeIndex_"+l+"_dataIndex_undefined";break}return ye(o)}function Oe(e,i,a){return t.createElement("style",{id:e,innerHTML:"."+i+"{fill:"+a.fill+";opacity:"+a.opacity.toString()+";stroke-width:"+a.border.width.toString()+";stroke:"+a.border.color+";}"})}function _e(e,t,i){ye(e).innerHTML="."+t+"{fill:"+i.fill+";opacity:"+i.opacity.toString()+";stroke-width:"+i.border.width.toString()+";stroke:"+i.border.color+"}"}function Me(e,t,i,a,o){var n={color:e.border.color,width:e.border.width/t.scale},l={opacity:e.opacity,fill:e.fill,border:n,name:oi,target:i.id,cancel:!1,shapeData:a,data:o,maps:t};t.trigger("itemSelection",l,function(e){ye("ShapeselectionMap")?_e("ShapeselectionMap","ShapeselectionMapStyle",l):document.body.appendChild(Oe("ShapeselectionMap","ShapeselectionMapStyle",l))})}function Ce(e){e.removeAttribute("class")}function Le(e,i,a,o,n,l,r){void 0===r&&(r=0);var s=o.x,d=o.y,p=0,h=e.getAttribute("transform")||"";new t.Animation({}).animate(e,{duration:a,delay:i,progress:function(t){t.timeStamp>t.delay&&(p=(t.timeStamp-t.delay)/t.duration,e.setAttribute("transform","translate( "+(s-r*p)+" "+(d-r*p)+" ) scale("+p+")"))},end:function(t){if(e.setAttribute("transform",h),l){var i={cancel:!1,name:ai,element:l,maps:n.isBlazor?null:n};n.trigger(ai,i)}}})}function Pe(e){se(e)}function we(e,i,a,o,n,l,r,d,p){var h=s(a,o,d);t.isNullOrUndefined(h)||(a=h.x,o=h.y);for(var c=document.getElementById(r),m=x(e,{fontFamily:"Segoe UI",size:"8px",fontStyle:"Normal",fontWeight:"Regular"}).width,u=e.split(" "),g=u[0].length,y=1;y<u.length;y++)g<u[y].length&&(g=u[y].length);c||(c=t.createElement("div",{id:r,styles:'background-color: rgb(255, 255, 255) !important; color:black !important; position:absolute;border:1px solid rgb(0, 0, 0); padding-left:5px;font-size:12px; font-family: "Segoe UI"; text-align:center'})),a<n-m?a=a:a>n-m&&a<n-8*g?m=n-a:a>=n-8*g&&(a>m?a-=m:(m=a,a=0));var f=i.split("px");Te(c,e,a,o,f,m,n,d),c.clientHeight+2*parseInt(f[0],10)>l&&(m=a,a=0),Te(c,e,a,o,f,m,n,d),p&&setTimeout(Pe,5e3,r)}function Te(e,t,i,a,o,n,l,r){e.innerHTML=t,e.style.top=-1!==e.id.indexOf("_Legend")?(parseInt(o[0],10)+a).toString()+"px":(2*parseInt(o[0],10)).toString()+"px",e.style.left=i.toString()+"px",e.style.width=n.toString()+"px",e.style.maxWidth=l.toString()+"px",e.style.wordWrap="break-word",r.appendChild(e)}function Ie(e,i,a,o,n){var l=ye(e),r="top:"+a.toString()+"px;left:"+o.toString()+"px;color: #000000; background:#FFFFFF;position:absolute;border:1px solid #707070;font-size:"+n+";border-radius:2px;";l?(l.setAttribute("innerHTML","&nbsp;"+i+"&nbsp;"),l.setAttribute("styles",r)):(l=t.createElement("div",{id:e,innerHTML:"&nbsp;"+i+"&nbsp;",styles:r}),document.body.appendChild(l))}function Ne(e,t,a,o,n){var l=new i.SvgRenderer(""),r=ke(e,a,t,n,o);return l["draw"+r.functionName](r.renderOption)}function ke(e,i,a,o,n){var l,r="Path",s=i.width,d=i.height,p=e.x,h=e.y,c=e.x+-s/2,m=e.y+-d/2;switch(a){case"Circle":case"Bubble":r="Ellipse",t.merge(o,{rx:s/2,ry:d/2,cx:p,cy:h});break;case"VerticalLine":l="M "+p+" "+(h+d/2)+" L "+p+" "+(h+-d/2),t.merge(o,{d:l});break;case"Diamond":l="M "+c+" "+h+" L "+p+" "+(h+-d/2)+" L "+(p+s/2)+" "+h+" L "+p+" "+(h+d/2)+" L "+c+" "+h+" z",t.merge(o,{d:l});break;case"Rectangle":l="M "+c+" "+(h+-d/2)+" L "+(p+s/2)+" "+(h+-d/2)+" L "+(p+s/2)+" "+(h+d/2)+" L "+c+" "+(h+d/2)+" L "+c+" "+(h+-d/2)+" z",t.merge(o,{d:l});break;case"Triangle":l="M "+c+" "+(h+d/2)+" L "+p+" "+(h+-d/2)+" L "+(p+s/2)+" "+(h+d/2)+" L "+c+" "+(h+d/2)+" z",t.merge(o,{d:l});break;case"InvertedTriangle":l="M "+(p+s/2)+" "+(h-d/2)+" L "+p+" "+(h+d/2)+" L "+(p-s/2)+" "+(h-d/2)+" L "+(p+s/2)+" "+(h-d/2)+" z",t.merge(o,{d:l});break;case"Pentagon":for(var u=void 0,g=void 0,y=0;y<=5;y++)u=s/2*Math.cos(Math.PI/180*(72*y)),g=s/2*Math.sin(Math.PI/180*(72*y)),l=0===y?"M "+(p+u)+" "+(h+g)+" ":l.concat("L "+(p+u)+" "+(h+g)+" ");l=l.concat("Z"),t.merge(o,{d:l});break;case"Star":l="M "+(e.x+i.width/3)+" "+(e.y-i.height/2)+" L "+(e.x-i.width/2)+" "+(e.y+i.height/6)+" L "+(e.x+i.width/2)+" "+(e.y+i.height/6)+" L "+(e.x-i.width/3)+" "+(e.y-i.height/2)+" L "+e.x+" "+(e.y+i.height/2)+" L "+(e.x+i.width/3)+" "+(e.y-i.height/2)+" Z",t.merge(o,{d:l});break;case"Cross":l="M "+c+" "+h+" L "+(p+s/2)+" "+h+" M "+p+" "+(h+d/2)+" L "+p+" "+(h+-d/2),t.merge(o,{d:l});break;case"Image":r="Image",t.merge(o,{href:n,height:d,width:s,x:c,y:m})}return{renderOption:o,functionName:r}}function Ee(e,t){var i,a;return t.appendChild(e),i=e.offsetWidth,a=e.offsetHeight,t.removeChild(e),new Ke(i,a)}function ze(e,t,i,a){for(var o,n=0;n<e.childElementCount;n++)if((o=e.childNodes[n]).id.indexOf("_NavigationGroup")>-1)je(o,t,i,a);else{var l=a.layersCollection[t].shapeSettings.border.width;o.setAttribute("stroke-width",(l/i).toString())}}function je(e,t,i,a){for(var o,n=0;n<e.childElementCount;n++)if("path"===(o=e.childNodes[n]).tagName){var l=a.layersCollection[t].navigationLineSettings[parseFloat(o.id.split("_NavigationIndex_")[1].split("_")[0])].width;o.setAttribute("stroke-width",(l/i).toString())}}function Ae(e){for(var t=[],i=e.touches,a=0;a<i.length;a++)t.push({pageX:i[a].pageX,pageY:i[a].pageY});return t}function Be(e,t){var i=Fe(e[0],e[1]);return Fe(t[0],t[1])/i}function Fe(e,t){var i=e.pageX-t.pageX,a=e.pageY-t.pageY;return Math.sqrt(i*i+a*a)}function Re(e,t){var i=t.element.getBoundingClientRect(),a=i.top+document.defaultView.pageXOffset,o=i.left+document.defaultView.pageYOffset;return Array.prototype.slice.call(e).map(function(e){return{x:e.pageX-o,y:e.pageY-a}})}function Ue(e){return{x:e.map(function(e){return e.x}).reduce(Ze)/e.length,y:e.map(function(e){return e.y}).reduce(Ze)/e.length}}function Ze(e,t){return e+t}function De(e,t,i,a,o,n,l){var r=0,s=l.previousPoint,d=l.previousScale,p=o-d,h=new pt(0,0),c=1;if(o===d)return void e.setAttribute("transform","scale( "+o+" ) translate( "+a.x+" "+a.y+" )");var m=function(e,t){return e.x===t.x?null:(t.y-e.y)/(t.x-e.x)}(s,a),u=function(e,t){return null===t?e.x:e.y-t*e.x}(s,m),g=a.x-s.x,y=a.y-s.y;He(e,t,i,function(e){e.timeStamp>e.delay&&(r=(e.timeStamp-e.delay)/e.duration,c=d+r*p,h.x=s.x+r*g/(c/o),h.y=null==m?s.y+r*y:m*h.x+u,e.element.setAttribute("transform","scale( "+c+" ) translate( "+h.x+" "+h.y+" )"),l.translatePoint=h,l.scale=c,l.zoomModule.processTemplate(a.x,a.y,c,l))},function(){l.translatePoint=a,l.scale=o,e.setAttribute("transform","scale( "+o+" ) translate( "+a.x+" "+a.y+" )"),l.zoomModule.processTemplate(a.x,a.y,o,l)})}function He(e,t,i,a,o){var n,l=this,r=null,s=function(t){r||(r=t);var d=t-r;d<i?(a.call(l,{element:e,delay:0,timeStamp:d,duration:i}),window.requestAnimationFrame(s)):(window.cancelAnimationFrame(n),o.call(l,{element:e}),e.setAttribute("style","visibility:visible"))};n=window.requestAnimationFrame(s)}function Ve(e,t,i,a){var o=0,n=e.getAttribute("transform").split(" ");2===n.length&&(n[2]=n[1].split(")")[0],n[1]=n[0].split("(")[1]);var l=new pt(parseInt(n[1],10),parseInt(n[2],10)),r=a.x-l.x,s=a.y-l.y,d=new pt(0,0);He(e,t,i,function(e){e.timeStamp>e.delay&&(o=(e.timeStamp-e.delay)/e.duration,d.x=l.x+o*r,d.y=l.y+o*s,e.element.setAttribute("transform","translate( "+d.x+" "+d.y+" )"))},function(){e.setAttribute("transform","translate( "+a.x+" "+a.y+" )")})}function Ge(e,i){var a=t.isNullOrUndefined(i.shouldZoomPreviousFactor)?null:i.shouldZoomPreviousFactor,o=t.isNullOrUndefined(i.shouldZoomCurrentFactor)?null:i.shouldZoomCurrentFactor;t.isNullOrUndefined(o)?!t.isNullOrUndefined(a)&&t.isNullOrUndefined(o)&&i.shouldZoomPreviousFactor!==e?i.shouldZoomCurrentFactor=e:i.shouldZoomPreviousFactor=e:(i.shouldZoomCurrentFactor=null,i.shouldZoomPreviousFactor=null)}function We(e,t,i,a,o,n,l){var r,s,d,p,c,m,u,g=Math.sin(t*Math.PI/180),y=Math.log((1+g)/(1-g))/2,f=Math.max(Math.min(y,Math.PI),-Math.PI)/2,b=Math.sin(e*Math.PI/180),v=Math.log((1+b)/(1-b))/2,x=Math.max(Math.min(v,Math.PI),-Math.PI)/2;if(l.zoomNotApplied&&!l.isTileMap){var S=Math.abs((l.baseMapBounds.latitude.max-l.baseMapBounds.latitude.min)/(t-e)),O=Math.abs((l.baseMapBounds.longitude.max-l.baseMapBounds.longitude.min)/(a-i));p=Math.min(S,O);h(e,i,1,l.layersCollection[0],l),h(t,a,1,l.layersCollection[0],l)}r=(f-x)/Math.PI;var _=a-i;s=(_<0?_+360:_)/360;return c=Math.log(n/256/r)/Math.LN2,m=Math.log(o/256/s)/Math.LN2,u=l.zoomNotApplied&&!l.isTileMap?p:Math.min(c,m),d=Math.min(u,10),d=l.isTileMap||!l.zoomNotApplied?Math.floor(d):d,l.isTileMap||Ge(d,l),d}function qe(e){var t,i;switch(e.toLowerCase()){case"materialdark":i="#303030";break;case"fabricdark":i="#201F1F";break;case"bootstrapdark":i="#1A1A1A"}switch(e.toLowerCase()){case"materialdark":case"fabricdark":case"bootstrapdark":t={backgroundColor:i,areaBackgroundColor:i,titleFontColor:"#FFFFFF",subTitleFontColor:"#FFFFFF",legendTitleFontColor:"#DADADA",legendTextColor:"#DADADA",dataLabelFontColor:"#DADADA",tooltipFontColor:"#ffffff",tooltipFillColor:"#363F4C",zoomFillColor:"#FFFFFF",labelFontFamily:"Roboto, Noto, Sans-serif"};break;case"highcontrast":t={backgroundColor:"#000000",areaBackgroundColor:"#000000",titleFontColor:"#FFFFFF",subTitleFontColor:"#FFFFFF",legendTitleFontColor:"#FFFFFF",legendTextColor:"#FFFFFF",dataLabelFontColor:"#000000",tooltipFontColor:"#000000",tooltipFillColor:"#ffffff",zoomFillColor:"#FFFFFF",labelFontFamily:"Roboto, Noto, Sans-serif"};break;case"bootstrap4":t={backgroundColor:"#FFFFFF",areaBackgroundColor:"#FFFFFF",titleFontColor:"#212529",subTitleFontColor:"#212529",legendTitleFontColor:"#212529",legendTextColor:"#212529",dataLabelFontColor:"#212529",tooltipFontColor:"#FFFFFF",tooltipFillColor:"#000000",zoomFillColor:"#5B6269",fontFamily:"HelveticaNeue-Medium",titleFontSize:"16px",legendFontSize:"14px",tooltipFillOpacity:1,tooltipTextOpacity:.9,labelFontFamily:"HelveticaNeue-Medium"};break;default:t={backgroundColor:"#FFFFFF",areaBackgroundColor:"#FFFFFF",titleFontColor:"#424242",subTitleFontColor:"#424242",legendTitleFontColor:"#757575",legendTextColor:"#757575",dataLabelFontColor:"#000000",tooltipFontColor:"#ffffff",tooltipFillColor:"#000000",zoomFillColor:"#737373",labelFontFamily:"Roboto, Noto, Sans-serif"}}return t}var Xe,Ye=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function a(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(a.prototype=i.prototype,new a)}}(),Je=function(e,t){var i={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(i[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,a=Object.getOwnPropertySymbols(e);o<a.length;o++)t.indexOf(a[o])<0&&(i[a[o]]=e[a[o]]);return i},Ke=function(){function e(e,t){this.width=e,this.height=t}return e}(),Qe=function(){function e(e,t){this.x=e,this.y=t}return e}(),$e=function(){function e(e,t){this.min=e,this.max=t}return e}(),et=function(){function e(e,t){this.latitude=new $e(e.min,e.max),this.longitude=new $e(t.min,t.max)}return e}(),tt=function(){function e(e,t,i,a,o,n,l){void 0===n&&(n=""),this.transform="",this.baseLine="auto",this.id=e,this.text=o,this.transform=n,this.anchor=a,this.x=t,this.y=i,this.baseLine=l}return e}(),it=function(){function e(e,t,i,a,o,n,l){this.id=e,this.opacity=o,this.fill=t,this.stroke=a,this["stroke-width"]=i,this["stroke-dasharray"]=n,this.d=l}return e}(),at=function(){function e(e,t,i){this.r=e,this.g=t,this.b=i}return e}(),ot=function(e){function t(t,i,a,o,n,l,r,s,d){var p=e.call(this,t,i,a.width,a.color,o,d)||this;return p.y=n.y,p.x=n.x,p.height=n.height,p.width=n.width,p.rx=l||0,p.ry=r||0,p.transform=s||"",p["stroke-dasharray"]=d,p}return Ye(t,e),t}(it),nt=function(e){function t(t,i,a,o,n,l,r,s){var d=e.call(this,t,i,a.width,a.color,o)||this;return d.cy=l,d.cx=n,d.r=r,d["stroke-dasharray"]=s,d}return Ye(t,e),t}(it),lt=function(e){function t(t,i,a,o,n,l,r){void 0===l&&(l=1),void 0===r&&(r="");var s=e.call(this,t,a,o,n,l,r)||this;return s.points=i,s}return Ye(t,e),t}(it),rt=function(e){function t(t,i,a,o,n,l,r){return void 0===l&&(l=1),void 0===r&&(r=""),e.call(this,t,i,a,o,n,l,r)||this}return Ye(t,e),t}(lt),st=function(e){function t(t,i,a,o,n,l,r){void 0===l&&(l=1),void 0===r&&(r="");var s=e.call(this,t,a,o,n,l,r)||this;return s.x1=i.x1,s.y1=i.y1,s.x2=i.x2,s.y2=i.y2,s}return Ye(t,e),t}(it),dt=function(){function e(e,t,i,a){this.x1=e,this.y1=t,this.x2=i,this.y2=a}return e}(),pt=function(){function e(e,t){this.x=e,this.y=t}return e}(),ht=function(){function e(e,t,i,a){this.x=e,this.y=t,this.width=i,this.height=a}return e}(),ct=function(){function e(e,t,i,a,o,n,l,r,s){void 0===n&&(n="userSpaceOnUse"),void 0===l&&(l="userSpaceOnUse"),void 0===r&&(r=""),void 0===s&&(s=""),this.id=e,this.x=t,this.y=i,this.width=a,this.height=o,this.patternUnits=n,this.patternContentUnits=l,this.patternTransform=r,this.href=s}return e}(),mt=function(){function e(e,t,i,a,o){this.dataOptions=e,this.type=t||"GET",this.async=i||!0,this.contentType=a,this.sendData=o}return e}();!function(e){e.mapsTitleFont={size:"14px",fontWeight:"Medium",color:"#424242",fontStyle:"Medium",fontFamily:"Roboto, Noto, Sans-serif"},e.mapsSubTitleFont={size:"13px",fontWeight:"Medium",color:"#424242",fontStyle:"Medium",fontFamily:"Roboto, Noto, Sans-serif"},e.tooltipLabelFont={size:"12px",fontWeight:"Regular",color:"#FFFFFF",fontStyle:"Regular",fontFamily:"Roboto"},e.legendTitleFont={size:"14px",fontWeight:"Regular",color:"#757575",fontStyle:"Regular",fontFamily:"Roboto, Noto, Sans-serif"},e.legendLabelFont={size:"13px",fontWeight:"Medium",color:"#757575",fontStyle:"Medium",fontFamily:"Roboto, Noto, Sans-serif"},e.dataLabelFont={size:"12px",fontWeight:"Medium",color:"#000000",fontStyle:"Medium",fontFamily:"Roboto, Noto, Sans-serif"}}(Xe||(Xe={}));var ut;!function(e){e.mapsTitleFont={size:"14px",fontWeight:"Semibold",color:"#424242",fontStyle:"Semibold",fontFamily:"SegoeUI, Helvetica Neue, Helvetica, Arial, sans-serif"},e.mapsSubTitleFont={size:"13px",fontWeight:"Regular",color:"#424242",fontStyle:"Regular",fontFamily:"SegoeUI, Helvetica Neue, Helvetica, Arial, sans-serif"},e.tooltipLabelFont={size:"12px",fontWeight:"Regular",color:"#FFFFFF",fontStyle:"Regular",fontFamily:"Roboto"},e.legendTitleFont={size:"14px",fontWeight:"Regular",color:"#757575",fontStyle:"Regular",fontFamily:"SegoeUI, Helvetica Neue, Helvetica, Arial, sans-serif"},e.legendLabelFont={size:"13px",fontWeight:"Medium",color:"#757575",fontStyle:"Medium",fontFamily:"SegoeUI, Helvetica Neue, Helvetica, Arial, sans-serif"},e.dataLabelFont={size:"12px",fontWeight:"Medium",color:"#000000",fontStyle:"Medium",fontFamily:"SegoeUI, Helvetica Neue, Helvetica, Arial, sans-serif"}}(ut||(ut={}));var gt;!function(e){e.mapsTitleFont={size:"14px",fontWeight:"Semibold",color:"#424242",fontStyle:"Semibold",fontFamily:"Helvetica Neue, Helvetica, Arial, sans-serif"},e.mapsSubTitleFont={size:"13px",fontWeight:"Regular",color:"#424242",fontStyle:"Regular",fontFamily:"Helvetica Neue, Helvetica, Arial, sans-serif"},e.tooltipLabelFont={size:"12px",fontWeight:"Regular",color:"#FFFFFF",fontStyle:"Regular",fontFamily:"Roboto"},e.legendTitleFont={size:"14px",fontWeight:"Regular",color:"#757575",fontStyle:"Regular",fontFamily:"Helvetica Neue, Helvetica, Arial, sans-serif"},e.legendLabelFont={size:"13px",fontWeight:"Medium",color:"#757575",fontStyle:"Medium",fontFamily:"Helvetica Neue, Helvetica, Arial, sans-serif"},e.dataLabelFont={size:"12px",fontWeight:"Medium",color:"#000000",fontStyle:"Medium",fontFamily:"Helvetica Neue, Helvetica, Arial, sans-serif"}}(gt||(gt={}));var yt;!function(e){e.mapsTitleFont={size:"14px",fontWeight:"Medium",color:"#FFFFFF",fontStyle:"Medium",fontFamily:"Roboto, Noto, Sans-serif"},e.mapsSubTitleFont={size:"13px",fontWeight:"Medium",color:"#FFFFFF",fontStyle:"Medium",fontFamily:"Roboto, Noto, Sans-serif"},e.tooltipLabelFont={size:"12px",fontWeight:"Regular",color:"#000000",fontStyle:"Regular",fontFamily:"Roboto"},e.legendTitleFont={size:"14px",fontWeight:"Regular",color:"#FFFFFF",fontStyle:"Regular",fontFamily:"Roboto, Noto, Sans-serif"},e.legendLabelFont={size:"13px",fontWeight:"Medium",color:"#FFFFFF",fontStyle:"Medium",fontFamily:"Roboto, Noto, Sans-serif"},e.dataLabelFont={size:"12px",fontWeight:"Medium",color:"#000000",fontStyle:"Medium",fontFamily:"Roboto, Noto, Sans-serif"}}(yt||(yt={}));var ft;!function(e){e.mapsTitleFont={fontFamily:"Roboto, Noto, Sans-serif",fontWeight:"Medium",size:"14px",fontStyle:"Medium",color:"#FFFFFF"},e.mapsSubTitleFont={size:"13px",color:"#FFFFFF",fontWeight:"Medium",fontFamily:"Roboto, Noto, Sans-serif",fontStyle:"Medium"},e.tooltipLabelFont={size:"12px",color:"#282727",fontWeight:"Regular",fontFamily:"Roboto",fontStyle:"Regular"},e.legendTitleFont={size:"14px",fontWeight:"Regular",color:"#FFFFFF",fontStyle:"Regular",fontFamily:"Roboto, Noto, Sans-serif"},e.legendLabelFont={size:"13px",fontFamily:"Roboto, Noto, Sans-serif",fontWeight:"Medium",color:"#DADADA",fontStyle:"Medium"}}(ft||(ft={}));var bt=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function a(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(a.prototype=i.prototype,new a)}}(),vt=function(e,t,i,a){var o,n=arguments.length,l=n<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,a);else for(var r=e.length-1;r>=0;r--)(o=e[r])&&(l=(n<3?o(l):n>3?o(t,i,l):o(t,i))||l);return n>3&&l&&Object.defineProperty(t,i,l),l},xt=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return bt(i,e),vt([t.Property("")],i.prototype,"content",void 0),vt([t.Property("0px")],i.prototype,"x",void 0),vt([t.Property("0px")],i.prototype,"y",void 0),vt([t.Property("None")],i.prototype,"verticalAlignment",void 0),vt([t.Property("None")],i.prototype,"horizontalAlignment",void 0),vt([t.Property("-1")],i.prototype,"zIndex",void 0),i}(t.ChildProperty),St=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return bt(i,e),vt([t.Property("Start")],i.prototype,"position",void 0),vt([t.Property("false")],i.prototype,"showArrow",void 0),vt([t.Property(2)],i.prototype,"size",void 0),vt([t.Property("black")],i.prototype,"color",void 0),vt([t.Property(0)],i.prototype,"offSet",void 0),i}(t.ChildProperty),Ot=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return bt(i,e),vt([t.Property("12px")],i.prototype,"size",void 0),vt([t.Property(null)],i.prototype,"color",void 0),vt([t.Property("Roboto, Noto, Sans-serif")],i.prototype,"fontFamily",void 0),vt([t.Property("Medium")],i.prototype,"fontWeight",void 0),vt([t.Property("Medium")],i.prototype,"fontStyle",void 0),vt([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 bt(i,e),vt([t.Property("")],i.prototype,"color",void 0),vt([t.P