function nav_page_height(){try{var n=$("#main").height(),t=$(window).height()-$.navbar_height;n>t?($.left_panel.css("min-height",n+"px"),$.root_.css("min-height",n+$.navbar_height+"px")):($.left_panel.css("min-height",t+"px"),$.root_.css("min-height",t+"px"))}catch(i){console.log("Exception in nav_page_height "+i)}}function check_if_mobile_width(){$(window).width()<979?$.root_.addClass("mobile-view-activated"):$.root_.hasClass("mobile-view-activated")&&$.root_.removeClass("mobile-view-activated")}function launchFullscreen(n){$.root_.hasClass("full-screen")?($.root_.removeClass("full-screen"),document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen()):($.root_.addClass("full-screen"),n.requestFullscreen?n.requestFullscreen():n.mozRequestFullScreen?n.mozRequestFullScreen():n.webkitRequestFullscreen?n.webkitRequestFullscreen():n.msRequestFullscreen&&n.msRequestFullscreen())}function runAllForms(){$.fn.slider&&$(".slider").slider();$.fn.select2&&$(".select2").each(function(){var n=$(this),t=n.attr("data-select-width")||"100%";n.select2({allowClear:!0,width:t})});$.fn.mask&&$("[data-mask]").each(function(){var n=$(this),t=n.attr("data-mask")||"error...",i=n.attr("data-mask-placeholder")||"X";n.mask(t,{placeholder:i})});$.fn.autocomplete&&$("[data-autocomplete]").each(function(){var n=$(this),t=n.data("autocomplete")||["The","Quick","Brown","Fox","Jumps","Over","Three","Lazy","Dogs"];n.autocomplete({source:t})});$.fn.datepicker&&$(".datepicker").each(function(){var n=$(this),t=n.attr("data-dateformat")||"dd.mm.yy";n.datepicker({dateFormat:t,prevText:'<i class="fa fa-chevron-left"><\/i>',nextText:'<i class="fa fa-chevron-right"><\/i>'})});$("button[data-loading-text]").on("click",function(){var n=$(this);n.button("loading");setTimeout(function(){n.button("reset")},3e3)})}function runAllCharts(){$.fn.sparkline&&$(".sparkline").each(function(){var n=$(this),t=n.data("sparkline-type")||"bar";if(t=="bar"){var p=n.data("sparkline-bar-color")||n.css("color")||"#0000f0",i=n.data("sparkline-height")||"26px",f=n.data("sparkline-barwidth")||5,w=n.data("sparkline-barspacing")||2,b=n.data("sparkline-negbar-color")||"#A90329",k=n.data("sparkline-barstacked-color")||["#A90329","#0099c6","#98AA56","#da532c","#4490B1","#6E9461","#990099","#B4CAD3"];n.sparkline("html",{type:"bar",barColor:p,type:t,height:i,barWidth:f,barSpacing:w,stackedBarColor:k,negBarColor:b,zeroAxis:"false"})}if(t=="line"){var i=n.data("sparkline-height")||"20px",r=n.data("sparkline-width")||"90px",e=n.data("sparkline-line-color")||n.css("color")||"#0000f0",o=n.data("sparkline-line-width")||1,d=n.data("fill-color")||"#c0d0f0",u=n.data("sparkline-spot-color")||"#f08000",g=n.data("sparkline-minspot-color")||"#ed1c24",nt=n.data("sparkline-maxspot-color")||"#f08000",tt=n.data("sparkline-highlightspot-color")||"#50f050",it=n.data("sparkline-highlightline-color")||"f02020",rt=n.data("sparkline-spotradius")||1.5;thisChartMinYRange=n.data("sparkline-min-y")||"undefined";thisChartMaxYRange=n.data("sparkline-max-y")||"undefined";thisChartMinXRange=n.data("sparkline-min-x")||"undefined";thisChartMaxXRange=n.data("sparkline-max-x")||"undefined";thisMinNormValue=n.data("min-val")||"undefined";thisMaxNormValue=n.data("max-val")||"undefined";thisNormColor=n.data("norm-color")||"#c0c0c0";thisDrawNormalOnTop=n.data("draw-normal")||!1;n.sparkline("html",{type:"line",width:r,height:i,lineWidth:o,lineColor:e,fillColor:d,spotColor:u,minSpotColor:g,maxSpotColor:nt,highlightSpotColor:tt,highlightLineColor:it,spotRadius:rt,chartRangeMin:thisChartMinYRange,chartRangeMax:thisChartMaxYRange,chartRangeMinX:thisChartMinXRange,chartRangeMaxX:thisChartMaxXRange,normalRangeMin:thisMinNormValue,normalRangeMax:thisMaxNormValue,normalRangeColor:thisNormColor,drawNormalOnTop:thisDrawNormalOnTop})}if(t=="pie"){var ut=n.data("sparkline-piecolor")||["#B4CAD3","#4490B1","#98AA56","#da532c","#6E9461","#0099c6","#990099","#717D8A"],s=n.data("sparkline-piesize")||90,ft=n.data("border-color")||"#45494C",et=n.data("sparkline-offset")||0;n.sparkline("html",{type:"pie",width:s,height:s,tooltipFormat:'<span style="color: {{color}}">&#9679;<\/span> ({{percent.1}}%)',sliceColors:ut,offset:0,borderWidth:1,offset:et,borderColor:ft})}if(t=="box"){var ot=n.data("sparkline-width")||"auto",st=n.data("sparkline-height")||"auto",ht=n.data("sparkline-boxraw")||!1,ct=n.data("sparkline-targetval")||"undefined",lt=n.data("sparkline-min")||"undefined",at=n.data("sparkline-max")||"undefined",vt=n.data("sparkline-showoutlier")||!0,yt=n.data("sparkline-outlier-iqr")||1.5,pt=n.data("sparkline-spotradius")||1.5,wt=n.css("color")||"#000000",bt=n.data("fill-color")||"#c0d0f0",kt=n.data("sparkline-whis-color")||"#000000",dt=n.data("sparkline-outline-color")||"#303030",gt=n.data("sparkline-outlinefill-color")||"#f0f0f0",ni=n.data("sparkline-outlinemedian-color")||"#f00000",ti=n.data("sparkline-outlinetarget-color")||"#40a020";n.sparkline("html",{type:"box",width:ot,height:st,raw:ht,target:ct,minValue:lt,maxValue:at,showOutliers:vt,outlierIQR:yt,spotRadius:pt,boxLineColor:wt,boxFillColor:bt,whiskerColor:kt,outlierLineColor:dt,outlierFillColor:gt,medianColor:ni,targetColor:ti})}if(t=="bullet"){var ii=n.data("sparkline-height")||"auto",ri=n.data("sparkline-width")||2,ui=n.data("sparkline-bullet-color")||"#ed1c24",fi=n.data("sparkline-performance-color")||"#3030f0",ei=n.data("sparkline-bulletrange-color")||["#d3dafe","#a8b6ff","#7f94ff"];n.sparkline("html",{type:"bullet",height:ii,targetWidth:ri,targetColor:ui,performanceColor:fi,rangeColors:ei})}if(t=="discrete"){var oi=n.data("sparkline-height")||26,si=n.data("sparkline-width")||50,hi=n.css("color"),ci=n.data("sparkline-line-height")||5,li=n.data("sparkline-threshold")||"undefined",ai=n.data("sparkline-threshold-color")||"#ed1c24";n.sparkline("html",{type:"discrete",width:si,height:oi,lineColor:hi,lineHeight:ci,thresholdValue:li,thresholdColor:ai})}if(t=="tristate"){var vi=n.data("sparkline-height")||26,ar=n.data("sparkline-posbar-color")||"#60f060",yi=n.data("sparkline-negbar-color")||"#f04040",pi=n.data("sparkline-zerobar-color")||"#909090",wi=n.data("sparkline-barwidth")||5,bi=n.data("sparkline-barspacing")||2,ki=n.data("sparkline-zeroaxis")||!1;n.sparkline("html",{type:"tristate",height:vi,posBarColor:h,negBarColor:yi,zeroBarColor:pi,barWidth:wi,barSpacing:bi,zeroAxis:ki})}if(t=="compositebar"){var i=n.data("sparkline-height")||"20px",r=n.data("sparkline-width")||"100%",f=n.data("sparkline-barwidth")||3,o=n.data("sparkline-line-width")||1,e=n.data("sparkline-color-top")||"#ed1c24",h=n.data("sparkline-color-bottom")||"#333333";n.sparkline(n.data("sparkline-bar-val"),{type:"bar",width:r,height:i,barColor:h,barWidth:f});n.sparkline(n.data("sparkline-line-val"),{width:r,height:i,lineColor:e,lineWidth:o,composite:!0,fillColor:!1})}if(t=="compositeline"){var i=n.data("sparkline-height")||"20px",r=n.data("sparkline-width")||"90px",di=n.data("sparkline-bar-val"),gi=n.data("sparkline-bar-val-spots-top")||null,nr=n.data("sparkline-bar-val-spots-bottom")||null,tr=n.data("sparkline-line-width-top")||1,ir=n.data("sparkline-line-width-bottom")||1,rr=n.data("sparkline-color-top")||"#333333",ur=n.data("sparkline-color-bottom")||"#ed1c24",c=n.data("sparkline-spotradius-top")||1.5,fr=n.data("sparkline-spotradius-bottom")||c,u=n.data("sparkline-spot-color")||"#f08000",l=n.data("sparkline-minspot-color-top")||"#ed1c24",a=n.data("sparkline-maxspot-color-top")||"#f08000",er=n.data("sparkline-minspot-color-bottom")||l,or=n.data("sparkline-maxspot-color-bottom")||a,v=n.data("sparkline-highlightspot-color-top")||"#50f050",y=n.data("sparkline-highlightline-color-top")||"#f02020",sr=n.data("sparkline-highlightspot-color-bottom")||v,hr=n.data("sparkline-highlightline-color-bottom")||y,cr=n.data("sparkline-fillcolor-top")||"transparent",lr=n.data("sparkline-fillcolor-bottom")||"transparent";n.sparkline(di,{type:"line",spotRadius:c,spotColor:u,minSpotColor:l,maxSpotColor:a,highlightSpotColor:v,highlightLineColor:y,valueSpots:gi,lineWidth:tr,width:r,height:i,lineColor:rr,fillColor:cr});n.sparkline(n.data("sparkline-line-val"),{type:"line",spotRadius:fr,spotColor:u,minSpotColor:er,maxSpotColor:or,highlightSpotColor:sr,highlightLineColor:hr,valueSpots:nr,lineWidth:ir,width:r,height:i,lineColor:ur,composite:!0,fillColor:lr})}});$.fn.easyPieChart&&$(".easy-pie-chart").each(function(){var n=$(this),i=n.css("color")||n.data("pie-color"),r=n.data("pie-track-color")||"#eeeeee",t=parseInt(n.data("pie-size"))||25;n.easyPieChart({barColor:i,trackColor:r,scaleColor:!1,lineCap:"butt",lineWidth:parseInt(t/8.5),animate:1500,rotate:-90,size:t,onStep:function(n){this.$el.find("span").text(~~n)}})})}function setup_widgets_desktop(){$.fn.jarvisWidgets&&$.enableJarvisWidgets&&$("#widget-grid").jarvisWidgets({grid:"article",widgets:".jarviswidget",localStorage:!0,deleteSettingsKey:"#deletesettingskey-options",settingsKeyLabel:"Reset settings?",deletePositionKey:"#deletepositionkey-options",positionKeyLabel:"Reset position?",sortable:!0,buttonsHidden:!1,toggleButton:!0,toggleClass:"fa fa-minus | fa fa-plus",toggleSpeed:200,onToggle:function(n){$(document).trigger("widget-toggle",[n])},deleteButton:!1,deleteClass:"fa fa-times",deleteSpeed:200,onDelete:function(){},editButton:!0,editPlaceholder:".jarviswidget-editbox",editClass:"fa fa-cog | fa fa-save",editSpeed:200,onEdit:function(){},colorButton:!1,fullscreenButton:!0,fullscreenClass:"glyphicon glyphicon-resize-full | glyphicon glyphicon-resize-small",fullscreenDiff:3,onFullscreen:function(){},customButton:!1,customClass:"folder-10 | next-10",customStart:function(){alert("Hello you, this is a custom button...")},customEnd:function(){alert("bye, till next time...")},buttonOrder:"%refresh% %custom% %edit% %toggle% %fullscreen% %delete%",opacity:1,dragHandle:"> header",placeholderClass:"jarviswidget-placeholder",indicator:!0,indicatorTime:600,ajax:!0,timestampPlaceholder:".jarviswidget-timestamp",timestampFormat:"Last update: %m%/%d%/%y% %h%:%i%:%s%",refreshButton:!0,refreshButtonClass:"fa fa-refresh",labelError:"Sorry but there was a error:",labelUpdated:"Last Update:",labelRefresh:"Refresh",labelDelete:"Delete widget:",afterLoad:function(){},rtl:!1,onChange:function(){},ajaxnav:$.navAsAjax})}function setup_widgets_mobile(){$.enableMobileWidgets&&$.enableJarvisWidgets&&setup_widgets_desktop()}function loadScript(n,t){if(jsArray[n])t&&t();else{jsArray[n]=!0;var r=document.getElementsByTagName("body")[0],i=document.createElement("script");i.type="text/javascript";i.src=n;i.onload=t;r.appendChild(i)}}function checkURL(){var n=location.hash.replace(/^#/,""),t,i;container=$("#content");n?($("nav li.active").removeClass("active"),$('nav li:has(a[href="'+n+'"])').addClass("active"),t=$('nav a[href="'+n+'"]').attr("title"),document.title=t||document.title,loadURL(n+location.search,container)):(i=$('nav > ul > li:first-child > a[href!="#"]'),window.location.hash=i.attr("href"))}function loadURL(n,t){$.ajax({type:"GET",url:n,dataType:"html",cache:!0,beforeSend:function(){t.html('<h1><i class="fa fa-cog fa-spin"><\/i> Loading...<\/h1>');t[0]==$("#content")[0]&&(drawBreadCrumb(),$("html").animate({scrollTop:0},"fast"))},success:function(n){t.css({opacity:"0.0"}).html(n).delay(50).animate({opacity:"1.0"},300)},error:function(){t.html('<h4 style="margin-top:10px; display:block; text-align:left"><i class="fa fa-warning txt-color-orangeDark"><\/i> Error 404! Page not found.<\/h4>')},async:!1})}function drawBreadCrumb(){var n=$("nav li.active > a"),t=n.length;$.bread_crumb.empty();$.bread_crumb.append($("<li>Home<\/li>"));n.each(function(){$.bread_crumb.append($("<li><\/li>").html($.trim($(this).clone().children(".badge").remove().end().text())));--t||(document.title=$.bread_crumb.find("li:last-child").text())})}function pageSetUp(){$.device==="desktop"?($("[rel=tooltip]").tooltip(),$("[rel=popover]").popover(),$("[rel=popover-hover]").popover({trigger:"hover"}),setup_widgets_desktop(),nav_page_height()):($("[rel=popover]").popover(),$("[rel=popover-hover]").popover({trigger:"hover"}),setup_widgets_mobile(),nav_page_height())}function IsNullOrEmpty(n){return n==null||n==""}function _typeof(n){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}var jvm,Donorfy,DonorfyForms,ismobile,ie,jsArray;(function(n){var t={set:{colors:1,values:1,backgroundColor:1,scaleColors:1,normalizeFunction:1,focus:1},get:{selectedRegions:1,selectedMarkers:1,mapObject:1,regionName:1}};n.fn.vectorMap=function(n){var r,i=this.children(".jvectormap-container").data("mapObject");if(n==="addMap")jvm.WorldMap.maps[arguments[1]]=arguments[2];else{if(!(n!=="set"&&n!=="get"||!t[n][arguments[1]]))return r=arguments[1].charAt(0).toUpperCase()+arguments[1].substr(1),i[n+r].apply(i,Array.prototype.slice.call(arguments,2));n=n||{};n.container=this;i=new jvm.WorldMap(n)}return this}})(jQuery),function(n){function i(t){var i=t||window.event,e=[].slice.call(arguments,1),r=0,f=0,u=0;return t=n.event.fix(i),t.type="mousewheel",i.wheelDelta&&(r=i.wheelDelta/120),i.detail&&(r=-i.detail/3),u=r,i.axis!==undefined&&i.axis===i.HORIZONTAL_AXIS&&(u=0,f=-1*r),i.wheelDeltaY!==undefined&&(u=i.wheelDeltaY/120),i.wheelDeltaX!==undefined&&(f=i.wheelDeltaX/-120),e.unshift(t,r,f,u),(n.event.dispatch||n.event.handle).apply(this,e)}var t=["DOMMouseScroll","mousewheel"],r;if(n.event.fixHooks)for(r=t.length;r;)n.event.fixHooks[t[--r]]=n.event.mouseHooks;n.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var n=t.length;n;)this.addEventListener(t[--n],i,!1);else this.onmousewheel=i},teardown:function(){if(this.removeEventListener)for(var n=t.length;n;)this.removeEventListener(t[--n],i,!1);else this.onmousewheel=null}};n.fn.extend({mousewheel:function(n){return n?this.bind("mousewheel",n):this.trigger("mousewheel")},unmousewheel:function(n){return this.unbind("mousewheel",n)}})}(jQuery);jvm={inherits:function(n,t){function i(){}i.prototype=t.prototype;n.prototype=new i;n.prototype.constructor=n;n.parentClass=t},mixin:function(n,t){for(var i in t.prototype)t.prototype.hasOwnProperty(i)&&(n.prototype[i]=t.prototype[i])},min:function(n){var i=Number.MAX_VALUE,t;if(n instanceof Array)for(t=0;t<n.length;t++)n[t]<i&&(i=n[t]);else for(t in n)n[t]<i&&(i=n[t]);return i},max:function(n){var i=Number.MIN_VALUE,t;if(n instanceof Array)for(t=0;t<n.length;t++)n[t]>i&&(i=n[t]);else for(t in n)n[t]>i&&(i=n[t]);return i},keys:function(n){var t=[];for(var i in n)t.push(i);return t},values:function(n){for(var i=[],r,t=0;t<arguments.length;t++){n=arguments[t];for(r in n)i.push(n[r])}return i}};jvm.$=jQuery;jvm.AbstractElement=function(n,t){this.node=this.createElement(n);this.name=n;this.properties={};t&&this.set(t)};jvm.AbstractElement.prototype.set=function(n,t){var i;if(typeof n=="object")for(i in n)this.properties[i]=n[i],this.applyAttr(i,n[i]);else this.properties[n]=t,this.applyAttr(n,t)};jvm.AbstractElement.prototype.get=function(n){return this.properties[n]};jvm.AbstractElement.prototype.applyAttr=function(n,t){this.node.setAttribute(n,t)};jvm.AbstractElement.prototype.remove=function(){jvm.$(this.node).remove()};jvm.AbstractCanvasElement=function(n,t,i){this.container=n;this.setSize(t,i);this.rootElement=new jvm[this.classPrefix+"GroupElement"];this.node.appendChild(this.rootElement.node);this.container.appendChild(this.node)};jvm.AbstractCanvasElement.prototype.add=function(n,t){t=t||this.rootElement;t.add(n);n.canvas=this};jvm.AbstractCanvasElement.prototype.addPath=function(n,t,i){var r=new jvm[this.classPrefix+"PathElement"](n,t);return this.add(r,i),r};jvm.AbstractCanvasElement.prototype.addCircle=function(n,t,i){var r=new jvm[this.classPrefix+"CircleElement"](n,t);return this.add(r,i),r};jvm.AbstractCanvasElement.prototype.addGroup=function(n){var t=new jvm[this.classPrefix+"GroupElement"];return n?n.node.appendChild(t.node):this.node.appendChild(t.node),t.canvas=this,t};jvm.AbstractShapeElement=function(n,t,i){this.style=i||{};this.style.current={};this.isHovered=!1;this.isSelected=!1;this.updateStyle()};jvm.AbstractShapeElement.prototype.setHovered=function(n){this.isHovered!==n&&(this.isHovered=n,this.updateStyle())};jvm.AbstractShapeElement.prototype.setSelected=function(n){this.isSelected!==n&&(this.isSelected=n,this.updateStyle(),jvm.$(this.node).trigger("selected",[n]))};jvm.AbstractShapeElement.prototype.setStyle=function(n,t){var i={};typeof n=="object"?i=n:i[n]=t;jvm.$.extend(this.style.current,i);this.updateStyle()};jvm.AbstractShapeElement.prototype.updateStyle=function(){var n={};jvm.AbstractShapeElement.mergeStyles(n,this.style.initial);jvm.AbstractShapeElement.mergeStyles(n,this.style.current);this.isHovered&&jvm.AbstractShapeElement.mergeStyles(n,this.style.hover);this.isSelected&&(jvm.AbstractShapeElement.mergeStyles(n,this.style.selected),this.isHovered&&jvm.AbstractShapeElement.mergeStyles(n,this.style.selectedHover));this.set(n)};jvm.AbstractShapeElement.mergeStyles=function(n,t){var i;t=t||{};for(i in t)t[i]===null?delete n[i]:n[i]=t[i]};jvm.SVGElement=function(){jvm.SVGElement.parentClass.apply(this,arguments)};jvm.inherits(jvm.SVGElement,jvm.AbstractElement);jvm.SVGElement.svgns="http://www.w3.org/2000/svg";jvm.SVGElement.prototype.createElement=function(n){return document.createElementNS(jvm.SVGElement.svgns,n)};jvm.SVGElement.prototype.addClass=function(n){this.node.setAttribute("class",n)};jvm.SVGElement.prototype.getElementCtr=function(n){return jvm["SVG"+n]};jvm.SVGElement.prototype.getBBox=function(){return this.node.getBBox()};jvm.SVGGroupElement=function(){jvm.SVGGroupElement.parentClass.call(this,"g")};jvm.inherits(jvm.SVGGroupElement,jvm.SVGElement);jvm.SVGGroupElement.prototype.add=function(n){this.node.appendChild(n.node)};jvm.SVGCanvasElement=function(){this.classPrefix="SVG";jvm.SVGCanvasElement.parentClass.call(this,"svg");jvm.AbstractCanvasElement.apply(this,arguments)};jvm.inherits(jvm.SVGCanvasElement,jvm.SVGElement);jvm.mixin(jvm.SVGCanvasElement,jvm.AbstractCanvasElement);jvm.SVGCanvasElement.prototype.setSize=function(n,t){this.width=n;this.height=t;this.node.setAttribute("width",n);this.node.setAttribute("height",t)};jvm.SVGCanvasElement.prototype.applyTransformParams=function(n,t,i){this.scale=n;this.transX=t;this.transY=i;this.rootElement.node.setAttribute("transform","scale("+n+") translate("+t+", "+i+")")};jvm.SVGShapeElement=function(n,t){jvm.SVGShapeElement.parentClass.call(this,n,t);jvm.AbstractShapeElement.apply(this,arguments)};jvm.inherits(jvm.SVGShapeElement,jvm.SVGElement);jvm.mixin(jvm.SVGShapeElement,jvm.AbstractShapeElement);jvm.SVGPathElement=function(n,t){jvm.SVGPathElement.parentClass.call(this,"path",n,t);this.node.setAttribute("fill-rule","evenodd")};jvm.inherits(jvm.SVGPathElement,jvm.SVGShapeElement);jvm.SVGCircleElement=function(n,t){jvm.SVGCircleElement.parentClass.call(this,"circle",n,t)};jvm.inherits(jvm.SVGCircleElement,jvm.SVGShapeElement);jvm.VMLElement=function(){jvm.VMLElement.VMLInitialized||jvm.VMLElement.initializeVML();jvm.VMLElement.parentClass.apply(this,arguments)};jvm.inherits(jvm.VMLElement,jvm.AbstractElement);jvm.VMLElement.VMLInitialized=!1;jvm.VMLElement.initializeVML=function(){try{document.namespaces.rvml||document.namespaces.add("rvml","urn:schemas-microsoft-com:vml");jvm.VMLElement.prototype.createElement=function(n){return document.createElement("<rvml:"+n+' class="rvml">')}}catch(n){jvm.VMLElement.prototype.createElement=function(n){return document.createElement("<"+n+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}document.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)");jvm.VMLElement.VMLInitialized=!0};jvm.VMLElement.prototype.getElementCtr=function(n){return jvm["VML"+n]};jvm.VMLElement.prototype.addClass=function(n){jvm.$(this.node).addClass(n)};jvm.VMLElement.prototype.applyAttr=function(n,t){this.node[n]=t};jvm.VMLElement.prototype.getBBox=function(){var n=jvm.$(this.node);return{x:n.position().left/this.canvas.scale,y:n.position().top/this.canvas.scale,width:n.width()/this.canvas.scale,height:n.height()/this.canvas.scale}};jvm.VMLGroupElement=function(){jvm.VMLGroupElement.parentClass.call(this,"group");this.node.style.left="0px";this.node.style.top="0px";this.node.coordorigin="0 0"};jvm.inherits(jvm.VMLGroupElement,jvm.VMLElement);jvm.VMLGroupElement.prototype.add=function(n){this.node.appendChild(n.node)};jvm.VMLCanvasElement=function(){this.classPrefix="VML";jvm.VMLCanvasElement.parentClass.call(this,"group");jvm.AbstractCanvasElement.apply(this,arguments);this.node.style.position="absolute"};jvm.inherits(jvm.VMLCanvasElement,jvm.VMLElement);jvm.mixin(jvm.VMLCanvasElement,jvm.AbstractCanvasElement);jvm.VMLCanvasElement.prototype.setSize=function(n,t){var r,u,i,f;if(this.width=n,this.height=t,this.node.style.width=n+"px",this.node.style.height=t+"px",this.node.coordsize=n+" "+t,this.node.coordorigin="0 0",this.rootElement){for(r=this.rootElement.node.getElementsByTagName("shape"),i=0,f=r.length;i<f;i++)r[i].coordsize=n+" "+t,r[i].style.width=n+"px",r[i].style.height=t+"px";for(u=this.node.getElementsByTagName("group"),i=0,f=u.length;i<f;i++)u[i].coordsize=n+" "+t,u[i].style.width=n+"px",u[i].style.height=t+"px"}};jvm.VMLCanvasElement.prototype.applyTransformParams=function(n,t,i){this.scale=n;this.transX=t;this.transY=i;this.rootElement.node.coordorigin=this.width-t-this.width/100+","+(this.height-i-this.height/100);this.rootElement.node.coordsize=this.width/n+","+this.height/n};jvm.VMLShapeElement=function(n,t){jvm.VMLShapeElement.parentClass.call(this,n,t);this.fillElement=new jvm.VMLElement("fill");this.strokeElement=new jvm.VMLElement("stroke");this.node.appendChild(this.fillElement.node);this.node.appendChild(this.strokeElement.node);this.node.stroked=!1;jvm.AbstractShapeElement.apply(this,arguments)};jvm.inherits(jvm.VMLShapeElement,jvm.VMLElement);jvm.mixin(jvm.VMLShapeElement,jvm.AbstractShapeElement);jvm.VMLShapeElement.prototype.applyAttr=function(n,t){switch(n){case"fill":this.node.fillcolor=t;break;case"fill-opacity":this.fillElement.node.opacity=Math.round(t*100)+"%";break;case"stroke":this.node.stroked=t==="none"?!1:!0;this.node.strokecolor=t;break;case"stroke-opacity":this.strokeElement.node.opacity=Math.round(t*100)+"%";break;case"stroke-width":this.node.stroked=parseInt(t,10)===0?!1:!0;this.node.strokeweight=t;break;case"d":this.node.path=jvm.VMLPathElement.pathSvgToVml(t);break;default:jvm.VMLShapeElement.parentClass.prototype.applyAttr.apply(this,arguments)}};jvm.VMLPathElement=function(n,t){var i=new jvm.VMLElement("skew");jvm.VMLPathElement.parentClass.call(this,"shape",n,t);this.node.coordorigin="0 0";i.node.on=!0;i.node.matrix="0.01,0,0,0.01,0,0";i.node.offset="0,0";this.node.appendChild(i.node)};jvm.inherits(jvm.VMLPathElement,jvm.VMLShapeElement);jvm.VMLPathElement.prototype.applyAttr=function(n,t){n==="d"?this.node.path=jvm.VMLPathElement.pathSvgToVml(t):jvm.VMLShapeElement.prototype.applyAttr.call(this,n,t)};jvm.VMLPathElement.pathSvgToVml=function(n){var t=0,i=0,r,u;return n=n.replace(/(-?\d+)e(-?\d+)/g,"0"),n.replace(/([MmLlHhVvCcSs])\s*((?:-?\d*(?:\.\d+)?\s*,?\s*)+)/g,function(n,f,e){e=e.replace(/(\d)-/g,"$1,-").replace(/^\s+/g,"").replace(/\s+$/g,"").replace(/\s+/g,",").split(",");e[0]||e.shift();for(var o=0,s=e.length;o<s;o++)e[o]=Math.round(100*e[o]);switch(f){case"m":return t+=e[0],i+=e[1],"t"+e.join(",");case"M":return t=e[0],i=e[1],"m"+e.join(",");case"l":return t+=e[0],i+=e[1],"r"+e.join(",");case"L":return t=e[0],i=e[1],"l"+e.join(",");case"h":return t+=e[0],"r"+e[0]+",0";case"H":return t=e[0],"l"+t+","+i;case"v":return i+=e[0],"r0,"+e[0];case"V":return i=e[0],"l"+t+","+i;case"c":return r=t+e[e.length-4],u=i+e[e.length-3],t+=e[e.length-2],i+=e[e.length-1],"v"+e.join(",");case"C":return r=e[e.length-4],u=e[e.length-3],t=e[e.length-2],i=e[e.length-1],"c"+e.join(",");case"s":return e.unshift(i-u),e.unshift(t-r),r=t+e[e.length-4],u=i+e[e.length-3],t+=e[e.length-2],i+=e[e.length-1],"v"+e.join(",");case"S":return e.unshift(i+i-u),e.unshift(t+t-r),r=e[e.length-4],u=e[e.length-3],t=e[e.length-2],i=e[e.length-1],"c"+e.join(",")}return""}).replace(/z/g,"e")};jvm.VMLCircleElement=function(n,t){jvm.VMLCircleElement.parentClass.call(this,"oval",n,t)};jvm.inherits(jvm.VMLCircleElement,jvm.VMLShapeElement);jvm.VMLCircleElement.prototype.applyAttr=function(n,t){switch(n){case"r":this.node.style.width=t*2+"px";this.node.style.height=t*2+"px";this.applyAttr("cx",this.get("cx")||0);this.applyAttr("cy",this.get("cy")||0);break;case"cx":if(!t)return;this.node.style.left=t-(this.get("r")||0)+"px";break;case"cy":if(!t)return;this.node.style.top=t-(this.get("r")||0)+"px";break;default:jvm.VMLCircleElement.parentClass.prototype.applyAttr.call(this,n,t)}};jvm.VectorCanvas=function(n,t,i){return this.mode=window.SVGAngle?"svg":"vml",this.impl=this.mode=="svg"?new jvm.SVGCanvasElement(n,t,i):new jvm.VMLCanvasElement(n,t,i),this.impl};jvm.SimpleScale=function(n){this.scale=n};jvm.SimpleScale.prototype.getValue=function(n){return n};jvm.OrdinalScale=function(n){this.scale=n};jvm.OrdinalScale.prototype.getValue=function(n){return this.scale[n]};jvm.NumericScale=function(n,t,i,r){this.scale=[];t=t||"linear";n&&this.setScale(n);t&&this.setNormalizeFunction(t);i&&this.setMin(i);r&&this.setMax(r)};jvm.NumericScale.prototype={setMin:function(n){this.clearMinValue=n;this.minValue=typeof this.normalize=="function"?this.normalize(n):n},setMax:function(n){this.clearMaxValue=n;this.maxValue=typeof this.normalize=="function"?this.normalize(n):n},setScale:function(n){for(var t=0;t<n.length;t++)this.scale[t]=[n[t]]},setNormalizeFunction:function(n){n==="polynomial"?this.normalize=function(n){return Math.pow(n,.2)}:n==="linear"?delete this.normalize:this.normalize=n;this.setMin(this.clearMinValue);this.setMax(this.clearMaxValue)},getValue:function(n){var i=[],u=0,r,t=0,f;for(typeof this.normalize=="function"&&(n=this.normalize(n)),t=0;t<this.scale.length-1;t++)r=this.vectorLength(this.vectorSubtract(this.scale[t+1],this.scale[t])),i.push(r),u+=r;for(f=(this.maxValue-this.minValue)/u,t=0;t<i.length;t++)i[t]*=f;for(t=0,n-=this.minValue;n-i[t]>=0;)n-=i[t],t++;return n=t==this.scale.length-1?this.vectorToNum(this.scale[t]):this.vectorToNum(this.vectorAdd(this.scale[t],this.vectorMult(this.vectorSubtract(this.scale[t+1],this.scale[t]),n/i[t]))),n},vectorToNum:function(n){for(var i=0,t=0;t<n.length;t++)i+=Math.round(n[t])*Math.pow(256,n.length-t-1);return i},vectorSubtract:function(n,t){for(var r=[],i=0;i<n.length;i++)r[i]=n[i]-t[i];return r},vectorAdd:function(n,t){for(var r=[],i=0;i<n.length;i++)r[i]=n[i]+t[i];return r},vectorMult:function(n,t){for(var r=[],i=0;i<n.length;i++)r[i]=n[i]*t;return r},vectorLength:function(n){for(var i=0,t=0;t<n.length;t++)i+=n[t]*n[t];return Math.sqrt(i)}};jvm.ColorScale=function(){jvm.ColorScale.parentClass.apply(this,arguments)};jvm.inherits(jvm.ColorScale,jvm.NumericScale);jvm.ColorScale.prototype.setScale=function(n){for(var t=0;t<n.length;t++)this.scale[t]=jvm.ColorScale.rgbToArray(n[t])};jvm.ColorScale.prototype.getValue=function(n){return jvm.ColorScale.numToRgb(jvm.ColorScale.parentClass.prototype.getValue.call(this,n))};jvm.ColorScale.arrayToRgb=function(n){for(var r="#",t,i=0;i<n.length;i++)t=n[i].toString(16),r+=t.length==1?"0"+t:t;return r};jvm.ColorScale.numToRgb=function(n){for(n=n.toString(16);n.length<6;)n="0"+n;return"#"+n};jvm.ColorScale.rgbToArray=function(n){return n=n.substr(1),[parseInt(n.substr(0,2),16),parseInt(n.substr(2,2),16),parseInt(n.substr(4,2),16)]};jvm.DataSeries=function(n,t){var i;n=n||{};n.attribute=n.attribute||"fill";this.elements=t;this.params=n;n.attributes&&this.setAttributes(n.attributes);jvm.$.isArray(n.scale)?(i=n.attribute==="fill"||n.attribute==="stroke"?jvm.ColorScale:jvm.NumericScale,this.scale=new i(n.scale,n.normalizeFunction,n.min,n.max)):this.scale=n.scale?new jvm.OrdinalScale(n.scale):new jvm.SimpleScale(n.scale);this.values=n.values||{};this.setValues(this.values)};jvm.DataSeries.prototype={setAttributes:function(n,t){var r=n,i;if(typeof n=="string")this.elements[n]&&this.elements[n].setStyle(this.params.attribute,t);else for(i in r)this.elements[i]&&this.elements[i].element.setStyle(this.params.attribute,r[i])},setValues:function(n){var r=Number.MIN_VALUE,u=Number.MAX_VALUE,i,t,f={};if(this.scale instanceof jvm.OrdinalScale||this.scale instanceof jvm.SimpleScale)for(t in n)f[t]=n[t]?this.scale.getValue(n[t]):this.elements[t].element.style.initial[this.params.attribute];else{if(!this.params.min||!this.params.max){for(t in n)i=parseFloat(n[t]),i>r&&(r=n[t]),i<u&&(u=i);this.params.min||this.scale.setMin(u);this.params.max||this.scale.setMax(r);this.params.min=u;this.params.max=r}for(t in n)i=parseFloat(n[t]),f[t]=isNaN(i)?this.elements[t].element.style.initial[this.params.attribute]:this.scale.getValue(i)}this.setAttributes(f);jvm.$.extend(this.values,n)},clear:function(){var n,t={};for(n in this.values)this.elements[n]&&(t[n]=this.elements[n].element.style.initial[this.params.attribute]);this.setAttributes(t);this.values={}},setScale:function(n){this.scale.setScale(n);this.values&&this.setValues(this.values)},setNormalizeFunction:function(n){this.scale.setNormalizeFunction(n);this.values&&this.setValues(this.values)}};jvm.Proj={degRad:180/Math.PI,radDeg:Math.PI/180,radius:6381372,sgn:function(n){return n>0?1:n<0?-1:n},mill:function(n,t,i){return{x:this.radius*(t-i)*this.radDeg,y:-this.radius*Math.log(Math.tan((45+.4*n)*this.radDeg))/.8}},mill_inv:function(n,t,i){return{lat:(2.5*Math.atan(Math.exp(.8*t/this.radius))-5*Math.PI/8)*this.degRad,lng:(i*this.radDeg+n/this.radius)*this.degRad}},merc:function(n,t,i){return{x:this.radius*(t-i)*this.radDeg,y:-this.radius*Math.log(Math.tan(Math.PI/4+n*Math.PI/360))}},merc_inv:function(n,t,i){return{lat:(2*Math.atan(Math.exp(t/this.radius))-Math.PI/2)*this.degRad,lng:(i*this.radDeg+n/this.radius)*this.degRad}},aea:function(n,t,i){var s=i*this.radDeg,u=29.5*this.radDeg,h=45.5*this.radDeg,c=n*this.radDeg,l=t*this.radDeg,r=(Math.sin(u)+Math.sin(h))/2,f=Math.cos(u)*Math.cos(u)+2*r*Math.sin(u),e=r*(l-s),o=Math.sqrt(f-2*r*Math.sin(c))/r,a=Math.sqrt(f-2*r*Math.sin(0))/r;return{x:o*Math.sin(e)*this.radius,y:-(a-o*Math.cos(e))*this.radius}},aea_inv:function(n,t,i){var f=n/this.radius,e=t/this.radius,c=i*this.radDeg,u=29.5*this.radDeg,l=45.5*this.radDeg,r=(Math.sin(u)+Math.sin(l))/2,s=Math.cos(u)*Math.cos(u)+2*r*Math.sin(u),o=Math.sqrt(s-2*r*Math.sin(0))/r,h=Math.sqrt(f*f+(o-e)*(o-e)),a=Math.atan(f/(o-e));return{lat:Math.asin((s-h*h*r*r)/(2*r))*this.degRad,lng:(c+a/r)*this.degRad}},lcc:function(n,t,i){var f=i*this.radDeg,e=t*this.radDeg,u=33*this.radDeg,o=45*this.radDeg,c=n*this.radDeg,r=Math.log(Math.cos(u)*(1/Math.cos(o)))/Math.log(Math.tan(Math.PI/4+o/2)*(1/Math.tan(Math.PI/4+u/2))),s=Math.cos(u)*Math.pow(Math.tan(Math.PI/4+u/2),r)/r,h=s*Math.pow(1/Math.tan(Math.PI/4+c/2),r),l=s*Math.pow(1/Math.tan(Math.PI/4+0),r);return{x:h*Math.sin(r*(e-f))*this.radius,y:-(l-h*Math.cos(r*(e-f)))*this.radius}},lcc_inv:function(n,t,i){var f=n/this.radius,e=t/this.radius,c=i*this.radDeg,u=33*this.radDeg,s=45*this.radDeg,r=Math.log(Math.cos(u)*(1/Math.cos(s)))/Math.log(Math.tan(Math.PI/4+s/2)*(1/Math.tan(Math.PI/4+u/2))),h=Math.cos(u)*Math.pow(Math.tan(Math.PI/4+u/2),r)/r,o=h*Math.pow(1/Math.tan(Math.PI/4+0),r),l=this.sgn(r)*Math.sqrt(f*f+(o-e)*(o-e)),a=Math.atan(f/(o-e));return{lat:(2*Math.atan(Math.pow(h/l,1/r))-Math.PI/2)*this.degRad,lng:(c+a/r)*this.degRad}}};jvm.WorldMap=function(n){var i=this,t;if(this.params=jvm.$.extend(!0,{},jvm.WorldMap.defaultParams,n),!jvm.WorldMap.maps[this.params.map])throw new Error("Attempt to use map which was not loaded: "+this.params.map);this.mapData=jvm.WorldMap.maps[this.params.map];this.markers={};this.regions={};this.regionsColors={};this.regionsData={};this.container=jvm.$("<div>").css({width:"100%",height:"100%"}).addClass("jvectormap-container");this.params.container.append(this.container);this.container.data("mapObject",this);this.container.css({position:"relative",overflow:"hidden"});this.defaultWidth=this.mapData.width;this.defaultHeight=this.mapData.height;this.setBackgroundColor(this.params.backgroundColor);this.onResize=function(){i.setSize()};jvm.$(window).resize(this.onResize);for(t in jvm.WorldMap.apiEvents)this.params[t]&&this.container.bind(jvm.WorldMap.apiEvents[t]+".jvectormap",this.params[t]);this.canvas=new jvm.VectorCanvas(this.container[0],this.width,this.height);"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch?this.params.bindTouchEvents&&this.bindContainerTouchEvents():this.bindContainerEvents();this.bindElementEvents();this.createLabel();this.params.zoomButtons&&this.bindZoomButtons();this.createRegions();this.createMarkers(this.params.markers||{});this.setSize();this.params.focusOn&&(typeof this.params.focusOn=="object"?this.setFocus.call(this,this.params.focusOn.scale,this.params.focusOn.x,this.params.focusOn.y):this.setFocus.call(this,this.params.focusOn));this.params.selectedRegions&&this.setSelectedRegions(this.params.selectedRegions);this.params.selectedMarkers&&this.setSelectedMarkers(this.params.selectedMarkers);this.params.series&&this.createSeries()};jvm.WorldMap.prototype={transX:0,transY:0,scale:1,baseTransX:0,baseTransY:0,baseScale:1,width:0,height:0,setBackgroundColor:function(n){this.container.css("background-color",n)},resize:function(){var n=this.baseScale;this.width/this.height>this.defaultWidth/this.defaultHeight?(this.baseScale=this.height/this.defaultHeight,this.baseTransX=Math.abs(this.width-this.defaultWidth*this.baseScale)/(2*this.baseScale)):(this.baseScale=this.width/this.defaultWidth,this.baseTransY=Math.abs(this.height-this.defaultHeight*this.baseScale)/(2*this.baseScale));this.scale*=this.baseScale/n;this.transX*=this.baseScale/n;this.transY*=this.baseScale/n},setSize:function(){this.width=this.container.width();this.height=this.container.height();this.resize();this.canvas.setSize(this.width,this.height);this.applyTransform()},reset:function(){var t,n;for(t in this.series)for(n=0;n<this.series[t].length;n++)this.series[t][n].clear();this.scale=this.baseScale;this.transX=this.baseTransX;this.transY=this.baseTransY;this.applyTransform()},applyTransform:function(){var n,t,i,r;this.defaultWidth*this.scale<=this.width?(n=(this.width-this.defaultWidth*this.scale)/(2*this.scale),i=(this.width-this.defaultWidth*this.scale)/(2*this.scale)):(n=0,i=(this.width-this.defaultWidth*this.scale)/this.scale);this.defaultHeight*this.scale<=this.height?(t=(this.height-this.defaultHeight*this.scale)/(2*this.scale),r=(this.height-this.defaultHeight*this.scale)/(2*this.scale)):(t=0,r=(this.height-this.defaultHeight*this.scale)/this.scale);this.transY>t?this.transY=t:this.transY<r&&(this.transY=r);this.transX>n?this.transX=n:this.transX<i&&(this.transX=i);this.canvas.applyTransformParams(this.scale,this.transX,this.transY);this.markers&&this.repositionMarkers();this.container.trigger("viewportChange",[this.scale/this.baseScale,this.transX,this.transY])},bindContainerEvents:function(){var t=!1,i,r,n=this;this.container.mousemove(function(u){return t&&(n.transX-=(i-u.pageX)/n.scale,n.transY-=(r-u.pageY)/n.scale,n.applyTransform(),i=u.pageX,r=u.pageY),!1}).mousedown(function(n){return t=!0,i=n.pageX,r=n.pageY,!1});jvm.$("body").mouseup(function(){t=!1});this.params.zoomOnScroll&&this.container.mousewheel(function(t,i,r,u){var f=jvm.$(n.container).offset(),e=t.pageX-f.left,o=t.pageY-f.top,s=Math.pow(1.3,u);n.label.hide();n.setScale(n.scale*s,e,o);t.preventDefault()})},bindContainerTouchEvents:function(){var u,f,n=this,e,o,t,i,r,s=function(s){var h=s.originalEvent.touches,c,l,a,v;s.type=="touchstart"&&(r=0);h.length==1?(r==1&&(a=n.transX,v=n.transY,n.transX-=(e-h[0].pageX)/n.scale,n.transY-=(o-h[0].pageY)/n.scale,n.applyTransform(),n.label.hide(),(a!=n.transX||v!=n.transY)&&s.preventDefault()),e=h[0].pageX,o=h[0].pageY):h.length==2&&(r==2?(l=Math.sqrt(Math.pow(h[0].pageX-h[1].pageX,2)+Math.pow(h[0].pageY-h[1].pageY,2))/f,n.setScale(u*l,t,i),n.label.hide(),s.preventDefault()):(c=jvm.$(n.container).offset(),t=h[0].pageX>h[1].pageX?h[1].pageX+(h[0].pageX-h[1].pageX)/2:h[0].pageX+(h[1].pageX-h[0].pageX)/2,i=h[0].pageY>h[1].pageY?h[1].pageY+(h[0].pageY-h[1].pageY)/2:h[0].pageY+(h[1].pageY-h[0].pageY)/2,t-=c.left,i-=c.top,u=n.scale,f=Math.sqrt(Math.pow(h[0].pageX-h[1].pageX,2)+Math.pow(h[0].pageY-h[1].pageY,2))));r=h.length};jvm.$(this.container).bind("touchstart",s);jvm.$(this.container).bind("touchmove",s)},bindElementEvents:function(){var n=this,t;this.container.mousemove(function(){t=!0});this.container.delegate("[class~='jvectormap-element']","mouseover mouseout",function(t){var h=this,o=jvm.$(this).attr("class").baseVal?jvm.$(this).attr("class").baseVal:jvm.$(this).attr("class"),r=o.indexOf("jvectormap-region")===-1?"marker":"region",i=r=="region"?jvm.$(this).attr("data-code"):jvm.$(this).attr("data-index"),u=r=="region"?n.regions[i].element:n.markers[i].element,s=r=="region"?n.mapData.paths[i].name:n.markers[i].config.name||"",f=jvm.$.Event(r+"LabelShow.jvectormap"),e=jvm.$.Event(r+"Over.jvectormap");t.type=="mouseover"?(n.container.trigger(e,[i]),e.isDefaultPrevented()||u.setHovered(!0),n.label.text(s),n.container.trigger(f,[n.label,i]),f.isDefaultPrevented()||(n.label.show(),n.labelWidth=n.label.width(),n.labelHeight=n.label.height())):(u.setHovered(!1),n.label.hide(),n.container.trigger(r+"Out.jvectormap",[i]))});this.container.delegate("[class~='jvectormap-element']","mousedown",function(){t=!1});this.container.delegate("[class~='jvectormap-element']","mouseup",function(){var o=this,e=jvm.$(this).attr("class").baseVal?jvm.$(this).attr("class").baseVal:jvm.$(this).attr("class"),i=e.indexOf("jvectormap-region")===-1?"marker":"region",r=i=="region"?jvm.$(this).attr("data-code"):jvm.$(this).attr("data-index"),u=jvm.$.Event(i+"Click.jvectormap"),f=i=="region"?n.regions[r].element:n.markers[r].element;t||(n.container.trigger(u,[r]),(i==="region"&&n.params.regionsSelectable||i==="marker"&&n.params.markersSelectable)&&(u.isDefaultPrevented()||(n.params[i+"sSelectableOne"]&&n.clearSelected(i+"s"),f.setSelected(!f.isSelected))))})},bindZoomButtons:function(){var n=this;jvm.$("<div/>").addClass("jvectormap-zoomin").html("<i class='fa fa-plus'><\/i>").appendTo(this.container);jvm.$("<div/>").addClass("jvectormap-zoomout").html("<i class='fa fa-minus'><\/i>").appendTo(this.container);this.container.find(".jvectormap-zoomin").click(function(){n.setScale(n.scale*n.params.zoomStep,n.width/2,n.height/2)});this.container.find(".jvectormap-zoomout").click(function(){n.setScale(n.scale/n.params.zoomStep,n.width/2,n.height/2)})},createLabel:function(){$(".jvectormap-label").length&&$(".jvectormap-label").remove();var n=this;this.label=jvm.$("<div/>").addClass("jvectormap-label").appendTo(jvm.$("body"));this.container.mousemove(function(t){var i=t.pageX-15-n.labelWidth,r=t.pageY-15-n.labelHeight;i<5&&(i=t.pageX+15);r<5&&(r=t.pageY+15);n.label.is(":visible")&&n.label.css({left:i,top:r})})},setScale:function(n,t,i,r){var u,f=jvm.$.Event("zoom.jvectormap");n>this.params.zoomMax*this.baseScale?n=this.params.zoomMax*this.baseScale:n<this.params.zoomMin*this.baseScale&&(n=this.params.zoomMin*this.baseScale);typeof t!="undefined"&&typeof i!="undefined"&&(u=n/this.scale,r?(this.transX=t+this.defaultWidth*(this.width/(this.defaultWidth*n))/2,this.transY=i+this.defaultHeight*(this.height/(this.defaultHeight*n))/2):(this.transX-=(u-1)/n*t,this.transY-=(u-1)/n*i));this.scale=n;this.applyTransform();this.container.trigger(f,[n/this.baseScale])},setFocus:function(n,t,i){var r,u,o,e,f;if(jvm.$.isArray(n)||this.regions[n]){for(e=jvm.$.isArray(n)?n:[n],f=0;f<e.length;f++)this.regions[e[f]]&&(u=this.regions[e[f]].element.getBBox(),u&&(typeof r=="undefined"?r=u:(o={x:Math.min(r.x,u.x),y:Math.min(r.y,u.y),width:Math.max(r.x+r.width,u.x+u.width)-Math.min(r.x,u.x),height:Math.max(r.y+r.height,u.y+u.height)-Math.min(r.y,u.y)},r=o)));this.setScale(Math.min(this.width/r.width,this.height/r.height),-(r.x+r.width/2),-(r.y+r.height/2),!0)}else n*=this.baseScale,this.setScale(n,-t*this.defaultWidth,-i*this.defaultHeight,!0)},getSelected:function(n){var t,i=[];for(t in this[n])this[n][t].element.isSelected&&i.push(t);return i},getSelectedRegions:function(){return this.getSelected("regions")},getSelectedMarkers:function(){return this.getSelected("markers")},setSelected:function(n,t){var i;if(typeof t!="object"&&(t=[t]),jvm.$.isArray(t))for(i=0;i<t.length;i++)this[n][t[i]].element.setSelected(!0);else for(i in t)this[n][i].element.setSelected(!!t[i])},setSelectedRegions:function(n){this.setSelected("regions",n)},setSelectedMarkers:function(n){this.setSelected("markers",n)},clearSelected:function(n){for(var i={},r=this.getSelected(n),t=0;t<r.length;t++)i[r[t]]=!1;this.setSelected(n,i)},clearSelectedRegions:function(){this.clearSelected("regions")},clearSelectedMarkers:function(){this.clearSelected("markers")},getMapObject:function(){return this},getRegionName:function(n){return this.mapData.paths[n].name},createRegions:function(){var n,t,i=this;for(n in this.mapData.paths)t=this.canvas.addPath({d:this.mapData.paths[n].path,"data-code":n},jvm.$.extend(!0,{},this.params.regionStyle)),jvm.$(t.node).bind("selected",function(n,t){i.container.trigger("regionSelected.jvectormap",[jvm.$(this).attr("data-code"),t,i.getSelectedRegions()])}),t.addClass("jvectormap-region jvectormap-element"),this.regions[n]={element:t,config:this.mapData.paths[n]}},createMarkers:function(n){var t,i,r,u,f,e=this;if(this.markersGroup=this.markersGroup||this.canvas.addGroup(),jvm.$.isArray(n))for(f=n.slice(),n={},t=0;t<f.length;t++)n[t]=f[t];for(t in n)u=n[t]instanceof Array?{latLng:n[t]}:n[t],r=this.getMarkerPosition(u),r!==!1&&(i=this.canvas.addCircle({"data-index":t,cx:r.x,cy:r.y},jvm.$.extend(!0,{},this.params.markerStyle,{initial:u.style||{}}),this.markersGroup),i.addClass("jvectormap-marker jvectormap-element"),jvm.$(i.node).bind("selected",function(n,t){e.container.trigger("markerSelected.jvectormap",[jvm.$(this).attr("data-index"),t,e.getSelectedMarkers()])}),this.markers[t]&&this.removeMarkers([t]),this.markers[t]={element:i,config:u})},repositionMarkers:function(){var t,n;for(t in this.markers)n=this.getMarkerPosition(this.markers[t].config),n!==!1&&this.markers[t].element.setStyle({cx:n.x,cy:n.y})},getMarkerPosition:function(n){return jvm.WorldMap.maps[this.params.map].projection?this.latLngToPoint.apply(this,n.latLng||[0,0]):{x:n.coords[0]*this.scale+this.transX*this.scale,y:n.coords[1]*this.scale+this.transY*this.scale}},addMarker:function(n,t,i){var f={},e=[],u,r,i=i||[];for(f[n]=t,r=0;r<i.length;r++)u={},u[n]=i[r],e.push(u);this.addMarkers(f,e)},addMarkers:function(n,t){var i;for(t=t||[],this.createMarkers(n),i=0;i<t.length;i++)this.series.markers[i].setValues(t[i]||{})},removeMarkers:function(n){for(var t=0;t<n.length;t++)this.markers[n[t]].element.remove(),delete this.markers[n[t]]},removeAllMarkers:function(){var n,t=[];for(n in this.markers)t.push(n);this.removeMarkers(t)},latLngToPoint:function(n,t){var i,f=jvm.WorldMap.maps[this.params.map].projection,e=f.centralMeridian,o=this.width-this.baseTransX*2*this.baseScale,s=this.height-this.baseTransY*2*this.baseScale,r,u,h=this.scale/this.baseScale;return t<-180+e&&(t+=360),i=jvm.Proj[f.type](n,t,e),r=this.getInsetForPoint(i.x,i.y),r?(u=r.bbox,i.x=(i.x-u[0].x)/(u[1].x-u[0].x)*r.width*this.scale,i.y=(i.y-u[0].y)/(u[1].y-u[0].y)*r.height*this.scale,{x:i.x+this.transX*this.scale+r.left*this.scale,y:i.y+this.transY*this.scale+r.top*this.scale}):!1},pointToLatLng:function(n,t){for(var o=jvm.WorldMap.maps[this.params.map].projection,h=o.centralMeridian,s=jvm.WorldMap.maps[this.params.map].insets,r,i,u,f,e=0;e<s.length;e++)if(r=s[e],i=r.bbox,u=n-(this.transX*this.scale+r.left*this.scale),f=t-(this.transY*this.scale+r.top*this.scale),u=u/(r.width*this.scale)*(i[1].x-i[0].x)+i[0].x,f=f/(r.height*this.scale)*(i[1].y-i[0].y)+i[0].y,u>i[0].x&&u<i[1].x&&f>i[0].y&&f<i[1].y)return jvm.Proj[o.type+"_inv"](u,-f,h);return!1},getInsetForPoint:function(n,t){for(var u=jvm.WorldMap.maps[this.params.map].insets,r,i=0;i<u.length;i++)if(r=u[i].bbox,n>r[0].x&&n<r[1].x&&t>r[0].y&&t<r[1].y)return u[i]},createSeries:function(){var n,t;this.series={markers:[],regions:[]};for(t in this.params.series)for(n=0;n<this.params.series[t].length;n++)this.series[t][n]=new jvm.DataSeries(this.params.series[t][n],this[t])},remove:function(){this.label.remove();this.container.remove();jvm.$(window).unbind("resize",this.onResize)}};jvm.WorldMap.maps={};jvm.WorldMap.defaultParams={map:"world_mill_en",backgroundColor:"#505050",zoomButtons:!0,zoomOnScroll:!0,zoomMax:8,zoomMin:1,zoomStep:1.6,regionsSelectable:!1,markersSelectable:!1,bindTouchEvents:!0,regionStyle:{initial:{fill:"white","fill-opacity":1,stroke:"none","stroke-width":0,"stroke-opacity":1},hover:{"fill-opacity":.8},selected:{fill:"yellow"},selectedHover:{}},markerStyle:{initial:{fill:"grey",stroke:"#505050","fill-opacity":1,"stroke-width":1,"stroke-opacity":1,r:5},hover:{stroke:"black","stroke-width":2},selected:{fill:"blue"},selectedHover:{}}};jvm.WorldMap.apiEvents={onRegionLabelShow:"regionLabelShow",onRegionOver:"regionOver",onRegionOut:"regionOut",onRegionClick:"regionClick",onRegionSelected:"regionSelected",onMarkerLabelShow:"markerLabelShow",onMarkerOver:"markerOver",onMarkerOut:"markerOut",onMarkerClick:"markerClick",onMarkerSelected:"markerSelected",onViewportChange:"viewportChange"};$.fn.vectorMap("addMap","world_mill_en",{insets:[{width:900,top:0,height:440.70631074413308,bbox:[{y:-12671671.123330014,x:-20004297.151525836},{y:6930392.02513512,x:20026572.394749384}],left:0}],paths:{BD:{path:"M652.71,228.85l-0.04,1.38l-0.46,-0.21l-0.42,0.3l0.05,0.65l-0.17,-1.37l-0.48,-1.26l-1.08,-1.6l-0.23,-0.13l-2.31,-0.11l-0.31,0.36l0.21,0.98l-0.6,1.11l-0.8,-0.4l-0.37,0.09l-0.23,0.3l-0.54,-0.21l-0.78,-0.19l-0.38,-2.04l-0.83,-1.89l0.4,-1.5l-0.16,-0.35l-1.24,-0.57l0.36,-0.62l1.5,-0.95l0.02,-0.49l-1.62,-1.26l0.64,-1.31l1.7,1.0l0.12,0.04l0.96,0.11l0.19,1.62l0.25,0.26l2.38,0.37l2.32,-0.04l1.06,0.33l-0.92,1.79l-0.97,0.13l-0.23,0.16l-0.77,1.51l0.05,0.35l1.37,1.37l0.5,-0.14l0.35,-1.46l0.24,-0.0l1.24,3.92Z",name:"Bangladesh"},BE:{path:"M429.28,143.95l1.76,0.25l0.13,-0.01l2.16,-0.64l1.46,1.34l1.26,0.71l-0.23,1.8l-0.44,0.08l-0.24,0.25l-0.2,1.36l-1.8,-1.22l-0.23,-0.05l-1.14,0.23l-1.62,-1.43l-1.15,-1.31l-0.21,-0.1l-0.95,-0.04l-0.21,-0.68l1.66,-0.54Z",name:"Belgium"},BF:{path:"M413.48,260.21l-1.22,-0.46l-0.13,-0.02l-1.17,0.1l-0.15,0.06l-0.73,0.53l-0.87,-0.41l-0.39,-0.75l-0.13,-0.13l-0.98,-0.48l-0.14,-1.2l0.63,-0.99l0.05,-0.18l-0.05,-0.73l1.9,-2.01l0.08,-0.14l0.35,-1.65l0.49,-0.44l1.05,0.3l0.21,-0.02l1.05,-0.52l0.13,-0.13l0.3,-0.58l1.87,-1.1l0.11,-0.1l0.43,-0.72l2.23,-1.01l1.21,-0.32l0.51,0.4l0.19,0.06l1.25,-0.01l-0.14,0.89l0.01,0.13l0.34,1.16l0.06,0.11l1.35,1.59l0.07,1.13l0.24,0.28l2.64,0.53l-0.05,1.39l-0.42,0.59l-1.11,0.21l-0.22,0.17l-0.46,0.99l-0.69,0.23l-2.12,-0.05l-1.14,-0.2l-0.19,0.03l-0.72,0.36l-1.07,-0.17l-4.35,0.12l-0.29,0.29l-0.06,1.44l0.25,1.45Z",name:"Burkina Faso"},BG:{path:"M477.63,166.84l0.51,0.9l0.33,0.14l0.9,-0.21l1.91,0.47l3.68,0.16l0.17,-0.05l1.2,-0.75l2.78,-0.67l1.72,1.05l1.02,0.24l-0.97,0.97l-0.91,2.17l0.0,0.24l0.56,1.19l-1.58,-0.3l-0.16,0.01l-2.55,0.95l-0.2,0.28l-0.02,1.23l-1.92,0.24l-1.68,-0.99l-0.27,-0.02l-1.94,0.8l-1.52,-0.07l-0.15,-1.72l-0.12,-0.21l-0.99,-0.76l0.18,-0.18l0.02,-0.39l-0.17,-0.22l0.33,-0.75l0.91,-0.91l0.01,-0.42l-1.16,-1.25l-0.18,-0.89l0.24,-0.27Z",name:"Bulgaria"},BA:{path:"M468.39,164.66l0.16,0.04l0.43,-0.0l-0.43,0.93l0.06,0.34l1.08,1.06l-0.28,1.09l-0.5,0.13l-0.47,0.28l-0.86,0.74l-0.1,0.16l-0.28,1.29l-1.81,-0.94l-0.9,-1.22l-1.0,-0.73l-1.1,-1.1l-0.55,-0.96l-1.11,-1.3l0.3,-0.75l0.59,0.46l0.42,-0.04l0.46,-0.54l1.0,-0.06l2.11,0.5l1.72,-0.03l1.06,0.64Z",name:"Bosnia and Herzegovina"},BN:{path:"M707.34,273.57l0.76,-0.72l1.59,-1.03l-0.18,1.93l-0.9,-0.06l-0.28,0.14l-0.31,0.51l-0.68,-0.78Z",name:"Brunei"},BO:{path:"M263.83,340.79l-0.23,-0.12l-2.86,-0.11l-0.28,0.17l-0.77,1.67l-1.17,-1.51l-0.18,-0.11l-3.28,-0.64l-0.28,0.1l-2.02,2.3l-1.43,0.29l-0.91,-3.35l-1.31,-2.88l0.75,-2.41l-0.09,-0.32l-1.23,-1.03l-0.31,-1.76l-0.05,-0.12l-1.12,-1.6l1.49,-2.62l0.01,-0.28l-1.0,-2.0l0.48,-0.72l0.02,-0.29l-0.37,-0.78l0.87,-1.13l0.06,-0.18l0.05,-2.17l0.12,-1.71l0.5,-0.8l0.01,-0.3l-1.9,-3.58l1.3,0.15l1.34,-0.05l0.23,-0.12l0.51,-0.7l2.12,-0.99l1.31,-0.93l2.81,-0.37l-0.21,1.51l0.01,0.13l0.29,0.91l-0.19,1.64l0.11,0.27l2.72,2.27l0.15,0.07l2.71,0.41l0.92,0.88l0.12,0.07l1.64,0.49l1.0,0.71l0.18,0.06l1.5,-0.02l1.24,0.64l0.1,1.31l0.05,0.14l0.44,0.68l0.02,0.73l-0.44,0.03l-0.27,0.39l0.96,2.99l0.28,0.21l4.43,0.1l-0.28,1.12l0.0,0.15l0.27,1.02l0.15,0.19l1.27,0.67l0.52,1.42l-0.42,1.91l-0.66,1.1l-0.04,0.2l0.21,1.3l-0.19,0.13l-0.01,-0.27l-0.15,-0.24l-2.33,-1.33l-0.14,-0.04l-2.38,-0.03l-4.36,0.76l-0.21,0.16l-1.2,2.29l-0.03,0.13l-0.06,1.37l-0.79,2.53l-0.05,-0.08Z",name:"Bolivia"},JP:{path:"M781.17,166.78l1.8,0.67l0.28,-0.04l1.38,-1.01l0.43,2.67l-3.44,0.77l-0.18,0.12l-2.04,2.79l-3.71,-1.94l-0.42,0.15l-1.29,3.11l-2.32,0.04l-0.3,-2.63l1.12,-2.1l2.51,-0.16l0.28,-0.25l0.73,-4.22l0.58,-1.9l2.59,2.84l2.0,1.1ZM773.66,187.36l-0.92,2.24l-0.01,0.2l0.4,1.3l-1.18,1.81l-3.06,1.28l-4.35,0.17l-0.19,0.08l-3.4,3.06l-1.36,-0.87l-0.1,-1.95l-0.34,-0.28l-4.35,0.62l-2.99,1.33l-2.87,0.05l-0.28,0.2l0.09,0.33l2.37,1.93l-1.57,4.44l-1.35,0.97l-0.9,-0.79l0.57,-2.32l-0.15,-0.34l-1.5,-0.77l-0.81,-1.53l2.04,-0.75l0.14,-0.1l1.28,-1.72l2.47,-1.43l1.84,-1.92l4.83,-0.82l2.62,0.57l0.33,-0.16l2.45,-4.77l1.38,1.14l0.38,0.0l5.1,-4.02l0.09,-0.11l1.57,-3.57l0.02,-0.16l-0.42,-3.22l0.94,-1.67l2.27,-0.47l1.26,3.82l-0.07,2.23l-2.26,2.86l-0.06,0.19l0.04,2.93ZM757.85,196.18l0.22,0.66l-1.11,1.33l-0.8,-0.7l-0.33,-0.04l-1.28,0.65l-0.14,0.15l-0.54,1.34l-1.17,-0.57l0.02,-1.03l1.2,-1.45l1.24,0.28l0.29,-0.1l0.9,-1.03l1.51,0.5Z",name:"Japan"},BI:{path:"M494.7,295.83l-0.14,-2.71l-0.04,-0.13l-0.34,-0.62l0.93,0.12l0.3,-0.16l0.67,-1.25l0.9,0.11l0.11,0.76l0.08,0.16l0.46,0.48l0.02,0.56l-0.55,0.48l-0.96,1.29l-0.82,0.82l-0.61,0.07Z",name:"Burundi"},BJ:{path:"M427.4,268.94l-1.58,0.22l-0.52,-1.45l0.11,-5.73l-0.08,-0.21l-0.43,-0.44l-0.09,-1.13l-0.09,-0.19l-1.52,-1.52l0.24,-1.01l0.7,-0.23l0.18,-0.16l0.45,-0.97l1.07,-0.21l0.19,-0.12l0.53,-0.73l0.73,-0.65l0.68,-0.0l1.69,1.3l-0.08,0.67l0.02,0.14l0.52,1.38l-0.44,0.9l-0.01,0.24l0.2,0.52l-1.1,1.42l-0.76,0.76l-0.08,0.13l-0.47,1.59l0.05,1.69l-0.13,3.79Z",name:"Benin"},BT:{path:"M650.38,213.78l0.88,0.75l-0.13,1.24l-1.77,0.07l-2.1,-0.18l-1.57,0.4l-2.02,-0.91l-0.02,-0.24l1.54,-1.87l1.18,-0.6l1.67,0.59l1.32,0.08l1.01,0.67Z",name:"Bhutan"},JM:{path:"M226.67,238.37l1.64,0.23l1.2,0.56l0.11,0.19l-1.25,0.03l-0.14,0.04l-0.65,0.37l-1.24,-0.37l-1.17,-0.77l0.11,-0.22l0.86,-0.15l0.52,0.08Z",name:"Jamaica"},BW:{path:"M484.91,331.96l0.53,0.52l0.82,1.53l2.83,2.86l0.14,0.08l0.85,0.22l0.03,0.81l0.74,1.66l0.21,0.17l1.87,0.39l1.17,0.87l-3.13,1.71l-2.3,2.01l-0.07,0.1l-0.82,1.74l-0.66,0.88l-1.24,0.19l-0.24,0.2l-0.65,1.98l-1.4,0.55l-1.9,-0.12l-1.2,-0.74l-1.06,-0.32l-0.22,0.02l-1.22,0.62l-0.14,0.14l-0.58,1.21l-1.16,0.79l-1.18,1.13l-1.5,0.23l-0.4,-0.68l0.22,-1.53l-0.04,-0.19l-1.48,-2.54l-0.11,-0.11l-0.53,-0.31l-0.0,-7.25l2.18,-0.08l0.29,-0.3l0.07,-9.0l1.63,-0.08l3.69,-0.86l0.84,0.93l0.38,0.05l1.53,-0.97l0.79,-0.03l1.3,-0.53l0.23,0.1l0.92,1.96Z",name:"Botswana"},BR:{path:"M259.49,274.87l1.42,0.25l1.97,0.62l0.28,-0.05l0.67,-0.55l1.76,-0.38l2.8,-0.94l0.12,-0.08l0.92,-0.96l0.05,-0.33l-0.15,-0.32l0.73,-0.06l0.36,0.35l-0.27,0.93l0.17,0.36l0.76,0.34l0.44,0.9l-0.58,0.73l-0.06,0.13l-0.4,2.13l0.03,0.19l0.62,1.22l0.17,1.11l0.11,0.19l1.54,1.18l0.15,0.06l1.23,0.12l0.29,-0.15l0.2,-0.36l0.71,-0.11l1.13,-0.44l0.79,-0.63l1.25,0.19l0.65,-0.08l1.32,0.2l0.32,-0.18l0.23,-0.51l-0.05,-0.31l-0.31,-0.37l0.11,-0.31l0.75,0.17l0.13,0.0l1.1,-0.24l1.34,0.5l1.08,0.51l0.33,-0.05l0.67,-0.58l0.27,0.05l0.28,0.57l0.31,0.17l1.2,-0.18l0.17,-0.08l1.03,-1.05l0.76,-1.82l1.39,-2.16l0.49,-0.07l0.52,1.17l1.4,4.37l0.2,0.2l1.14,0.35l0.05,1.39l-1.8,1.97l0.01,0.42l0.78,0.75l0.18,0.08l4.16,0.37l0.08,2.25l0.5,0.22l1.78,-1.54l2.98,0.85l4.07,1.5l1.07,1.28l-0.37,1.23l0.36,0.38l2.83,-0.75l4.8,1.3l3.75,-0.09l3.6,2.02l3.27,2.84l1.93,0.72l2.13,0.11l0.76,0.66l1.22,4.56l-0.96,4.03l-1.22,1.58l-3.52,3.51l-1.63,2.91l-1.75,2.09l-0.5,0.04l-0.26,0.19l-0.72,1.99l0.18,4.76l-0.95,5.56l-0.74,0.96l-0.06,0.15l-0.43,3.39l-2.49,3.34l-0.06,0.13l-0.4,2.56l-1.9,1.07l-0.13,0.16l-0.51,1.38l-2.59,0.0l-3.94,1.01l-1.82,1.19l-2.85,0.81l-3.01,2.17l-2.12,2.65l-0.06,0.13l-0.36,2.0l0.01,0.13l0.4,1.42l-0.45,2.63l-0.53,1.23l-1.76,1.53l-2.76,4.79l-2.16,2.15l-1.69,1.29l-0.09,0.12l-1.12,2.6l-1.3,1.26l-0.45,-1.02l0.99,-1.18l0.01,-0.37l-1.5,-1.95l-1.98,-1.54l-2.58,-1.77l-0.2,-0.05l-0.81,0.07l-2.42,-2.05l-0.25,-0.07l-0.77,0.14l2.75,-3.07l2.8,-2.61l1.67,-1.09l2.11,-1.49l0.13,-0.24l0.05,-2.15l-0.07,-0.2l-1.26,-1.54l-0.35,-0.09l-0.64,0.27l0.3,-0.95l0.34,-1.57l0.01,-1.52l-0.16,-0.26l-0.9,-0.48l-0.27,-0.01l-0.86,0.39l-0.65,-0.08l-0.23,-0.8l-0.23,-2.39l-0.04,-0.12l-0.47,-0.79l-0.14,-0.12l-1.69,-0.71l-0.25,0.01l-0.93,0.47l-2.29,-0.44l0.15,-3.3l-0.03,-0.15l-0.62,-1.22l0.57,-0.39l0.13,-0.3l-0.22,-1.37l0.67,-1.13l0.44,-2.04l-0.01,-0.17l-0.59,-1.61l-0.14,-0.16l-1.25,-0.66l-0.22,-0.82l0.35,-1.41l-0.28,-0.37l-4.59,-0.1l-0.78,-2.41l0.34,-0.02l0.28,-0.31l-0.03,-1.1l-0.05,-0.16l-0.45,-0.68l-0.1,-1.4l-0.16,-0.24l-1.45,-0.76l-0.14,-0.03l-1.48,0.02l-1.04,-0.73l-1.62,-0.48l-0.93,-0.9l-0.16,-0.08l-2.72,-0.41l-2.53,-2.12l0.18,-1.54l-0.01,-0.13l-0.29,-0.91l0.26,-1.83l-0.34,-0.34l-3.28,0.43l-0.14,0.05l-1.3,0.93l-2.16,1.01l-0.12,0.09l-0.47,0.65l-1.12,0.05l-1.84,-0.21l-0.12,0.01l-1.33,0.41l-0.82,-0.21l0.16,-3.6l-0.48,-0.26l-1.97,1.43l-1.96,-0.06l-0.86,-1.23l-0.22,-0.13l-1.23,-0.11l0.34,-0.69l-0.05,-0.33l-1.36,-1.5l-0.92,-2.0l0.45,-0.32l0.13,-0.25l-0.0,-0.87l1.34,-0.64l0.17,-0.32l-0.23,-1.23l0.56,-0.77l0.05,-0.13l0.16,-1.03l2.7,-1.61l2.01,-0.47l0.16,-0.09l0.24,-0.27l2.11,0.11l0.31,-0.25l1.13,-6.87l0.06,-1.12l-0.4,-1.53l-0.1,-0.15l-1.0,-0.82l0.01,-1.45l1.08,-0.32l0.39,0.2l0.44,-0.24l0.08,-0.96l-0.25,-0.32l-1.22,-0.22l-0.02,-1.01l4.57,0.05l0.22,-0.09l0.6,-0.63l0.44,0.5l0.47,1.42l0.45,0.16l0.27,-0.18l1.21,1.16l0.23,0.08l1.95,-0.16l0.23,-0.14l0.43,-0.67l1.76,-0.55l1.05,-0.42l0.18,-0.2l0.25,-0.92l1.65,-0.66l0.18,-0.35l-0.14,-0.53l-0.26,-0.22l-1.91,-0.19l-0.29,-1.33l0.1,-1.64l-0.15,-0.28l-0.44,-0.25Z",name:"Brazil"},BS:{path:"M227.51,216.69l0.3,0.18l-0.24,1.07l0.03,-1.04l-0.09,-0.21ZM226.5,224.03l-0.13,0.03l-0.54,-1.3l-0.09,-0.12l-0.78,-0.64l0.4,-1.26l0.33,0.05l0.79,2.0l0.01,1.24ZM225.76,216.5l-2.16,0.34l-0.07,-0.41l0.85,-0.16l1.36,0.07l0.02,0.16Z",name:"The Bahamas"},BY:{path:"M480.08,135.28l2.09,0.02l0.13,-0.03l2.72,-1.3l0.16,-0.19l0.55,-1.83l1.94,-1.06l0.15,-0.31l-0.2,-1.33l1.33,-0.52l2.58,-1.3l2.39,0.8l0.3,0.75l0.37,0.17l1.22,-0.39l2.18,0.75l0.2,1.36l-0.48,0.85l0.01,0.32l1.57,2.26l0.92,0.6l-0.1,0.41l0.19,0.35l1.61,0.57l0.48,0.6l-0.64,0.49l-1.91,-0.11l-0.18,0.05l-0.48,0.32l-0.1,0.39l0.57,1.1l0.51,1.78l-1.79,0.17l-0.18,0.08l-0.77,0.73l-0.09,0.19l-0.13,1.31l-0.75,-0.22l-2.11,0.15l-0.56,-0.66l-0.39,-0.06l-0.8,0.49l-0.79,-0.4l-0.13,-0.03l-1.94,-0.07l-2.76,-0.79l-2.58,-0.27l-1.98,0.07l-0.15,0.05l-1.31,0.86l-0.8,0.09l-0.04,-1.16l-0.03,-0.12l-0.63,-1.28l1.22,-0.56l0.17,-0.27l0.01,-1.35l-0.04,-0.15l-0.66,-1.24l-0.08,-1.12Z",name:"Belarus"},BZ:{path:"M198.03,239.7l0.28,0.19l0.43,-0.1l0.82,-1.42l0.0,0.07l0.29,0.29l0.16,0.0l-0.02,0.35l-0.39,1.08l0.02,0.25l0.16,0.29l-0.23,0.8l0.04,0.24l0.09,0.14l-0.25,1.12l-0.38,0.53l-0.33,0.06l-0.21,0.15l-0.41,0.74l-0.25,0.0l0.17,-2.58l0.01,-2.2Z",name:"Belize"},RU:{path:"M688.57,38.85l0.63,2.39l0.44,0.19l2.22,-1.23l7.18,0.07l5.54,2.49l1.85,1.77l-0.55,2.34l-2.64,1.42l-6.57,2.76l-1.95,1.5l0.12,0.53l3.09,0.68l3.69,1.23l0.21,-0.01l1.98,-0.81l1.16,2.84l0.5,0.08l1.03,-1.18l3.86,-0.74l7.79,0.78l0.56,2.05l0.27,0.22l10.47,0.71l0.32,-0.29l0.13,-3.34l4.98,0.8l3.96,-0.02l3.88,2.43l1.06,2.79l-1.38,1.83l0.01,0.38l3.15,3.64l0.1,0.08l3.94,1.86l0.4,-0.14l2.28,-4.56l3.75,1.94l0.22,0.02l4.18,-1.22l4.76,1.4l0.26,-0.04l1.74,-1.23l3.98,0.63l0.32,-0.41l-1.71,-4.1l3.0,-1.86l22.39,3.04l2.06,2.67l0.1,0.08l6.55,3.51l0.17,0.03l10.08,-0.86l4.86,0.73l1.91,1.72l-0.29,3.13l0.18,0.31l3.08,1.26l0.19,0.01l3.32,-0.9l4.37,-0.11l4.78,0.87l4.61,-0.48l4.26,3.82l0.32,0.05l3.1,-1.4l0.12,-0.45l-1.91,-2.67l0.92,-1.64l7.78,1.22l5.22,-0.26l7.12,2.1l9.6,5.22l6.4,4.15l-0.2,2.44l0.14,0.28l1.69,1.04l0.45,-0.31l-0.51,-2.66l6.31,0.58l4.52,3.61l-2.1,1.52l-4.02,0.42l-0.27,0.29l-0.06,3.83l-0.81,0.67l-2.14,-0.11l-1.91,-1.39l-3.19,-1.13l-0.51,-1.63l-0.21,-0.2l-2.54,-0.67l-0.13,-0.0l-2.69,0.5l-1.12,-1.19l0.48,-1.36l-0.38,-0.39l-3.0,0.98l-0.17,0.44l1.02,1.76l-1.27,1.55l-3.09,1.71l-3.15,-0.29l-0.3,0.18l0.07,0.34l2.22,2.1l1.47,3.22l1.15,1.09l0.25,1.41l-0.48,0.76l-4.47,-0.81l-0.17,0.02l-6.97,2.9l-2.2,0.44l-0.11,0.05l-3.83,2.68l-3.63,2.32l-0.1,0.11l-0.76,1.4l-3.3,-2.4l-0.3,-0.03l-6.31,2.85l-0.99,-1.21l-0.4,-0.06l-2.32,1.54l-3.23,-0.49l-0.33,0.2l-0.79,2.39l-2.97,3.51l-0.07,0.21l0.09,1.47l0.22,0.27l2.62,0.74l-0.3,4.7l-2.06,0.12l-0.26,0.2l-1.07,2.94l0.04,0.27l0.83,1.19l-4.03,1.63l-0.18,0.21l-0.83,3.72l-3.55,0.79l-0.23,0.23l-0.73,3.32l-3.22,2.76l-0.76,-1.88l-1.07,-4.88l-1.39,-7.59l1.17,-4.76l2.05,-2.08l0.09,-0.19l0.11,-1.46l3.67,-0.77l0.15,-0.08l4.47,-4.61l4.29,-3.82l4.48,-3.01l0.11,-0.14l2.01,-5.43l-0.31,-0.4l-3.04,0.33l-0.24,0.17l-1.47,3.11l-5.98,3.94l-1.91,-4.36l-0.33,-0.17l-6.46,1.3l-0.15,0.08l-6.27,6.33l-0.01,0.41l1.7,1.87l-5.04,0.87l-3.51,0.34l0.16,-2.32l-0.26,-0.32l-3.89,-0.56l-0.19,0.04l-3.02,1.77l-7.63,-0.63l-8.24,1.1l-0.16,0.07l-8.11,7.09l-9.6,8.31l0.16,0.52l3.79,0.42l1.16,2.03l0.17,0.14l2.43,0.76l0.31,-0.08l1.5,-1.61l2.49,0.2l3.46,3.6l0.08,2.67l-1.91,3.26l-0.04,0.14l-0.21,3.91l-1.11,5.09l-3.73,4.55l-0.87,2.21l-6.73,7.14l-1.59,1.77l-3.23,1.72l-1.38,0.03l-1.48,-1.39l-0.37,-0.03l-3.36,2.22l-0.11,0.14l-0.16,0.42l-0.01,-1.09l1.0,-0.06l0.28,-0.27l0.36,-3.6l-0.61,-2.51l1.85,-0.94l2.94,0.53l0.32,-0.15l1.71,-3.1l0.84,-3.38l0.97,-1.18l1.32,-2.88l-0.34,-0.42l-4.14,0.95l-2.18,1.25l-3.51,-0.0l-0.95,-2.81l-0.1,-0.14l-2.97,-2.3l-0.11,-0.05l-4.19,-1.0l-0.89,-3.08l-0.87,-2.03l-0.95,-1.46l-1.54,-3.37l-0.12,-0.14l-2.27,-1.28l-3.83,-1.02l-3.37,0.1l-3.11,0.61l-0.13,0.06l-2.07,1.69l0.04,0.49l1.23,0.72l0.03,1.53l-1.34,1.05l-2.26,3.51l-0.05,0.17l0.02,1.27l-3.25,1.9l-2.87,-1.17l-0.14,-0.02l-2.86,0.26l-1.22,-1.02l-0.12,-0.06l-1.5,-0.35l-0.23,0.04l-3.62,2.27l-3.24,0.53l-2.28,0.79l-3.08,-0.51l-2.24,0.03l-1.49,-1.61l-2.45,-1.57l-0.11,-0.04l-2.6,-0.43l-3.17,0.43l-2.31,0.59l-3.31,-1.28l-0.45,-2.31l-0.21,-0.23l-2.94,-0.85l-2.26,-0.39l-2.77,-1.36l-0.37,0.09l-2.59,3.45l-0.03,0.32l0.91,1.74l-2.15,2.01l-3.47,-0.79l-2.44,-0.12l-1.59,-1.46l-0.2,-0.08l-2.55,-0.05l-2.12,-0.98l-0.24,-0.01l-3.85,1.57l-4.74,2.79l-2.59,0.55l-0.79,0.21l-1.21,-1.81l-0.29,-0.13l-3.05,0.41l-0.96,-1.25l-0.14,-0.1l-1.65,-0.6l-1.15,-1.82l-0.13,-0.12l-1.38,-0.6l-0.19,-0.02l-3.49,0.82l-3.35,-1.85l-0.38,0.08l-1.08,1.4l-5.36,-8.17l-3.02,-2.52l0.72,-0.85l0.01,-0.38l-0.37,-0.08l-6.22,3.21l-1.98,0.16l0.17,-1.51l-0.2,-0.31l-3.22,-1.17l-0.19,-0.0l-2.3,0.74l-0.72,-3.27l-0.24,-0.23l-4.5,-0.75l-0.21,0.04l-2.2,1.42l-6.21,1.27l-0.11,0.05l-1.16,0.81l-9.3,1.19l-0.18,0.09l-1.15,1.17l-0.02,0.39l1.56,2.01l-2.02,0.74l-0.16,0.42l0.35,0.68l-2.18,1.49l0.02,0.51l3.83,2.16l-0.45,1.13l-3.31,-0.13l-0.25,0.12l-0.57,0.77l-2.97,-1.59l-0.15,-0.04l-3.97,0.07l-0.13,0.03l-2.53,1.32l-2.84,-1.28l-5.52,-2.3l-0.12,-0.02l-3.91,0.09l-0.16,0.05l-5.17,3.6l-0.13,0.21l-0.25,1.89l-2.17,-1.6l-0.44,0.1l-2.0,3.59l0.06,0.37l0.55,0.5l-1.32,2.23l0.04,0.36l2.13,2.17l0.23,0.09l1.7,-0.08l1.42,1.89l-0.23,1.5l0.19,0.32l0.94,0.38l-0.89,1.44l-2.3,0.49l-0.17,0.11l-2.49,3.2l0.0,0.37l2.2,2.81l-0.23,1.93l0.06,0.22l2.56,3.32l-1.27,1.02l-0.4,0.66l-0.8,-0.15l-1.65,-1.75l-0.18,-0.09l-0.66,-0.09l-1.45,-0.64l-0.72,-1.16l-0.18,-0.13l-2.34,-0.63l-0.17,0.0l-1.32,0.41l-0.31,-0.4l-0.12,-0.09l-3.49,-1.48l-3.67,-0.49l-2.1,-0.52l-0.3,0.1l-0.12,0.14l-2.96,-2.4l-2.89,-1.19l-1.69,-1.42l1.27,-0.35l0.16,-0.1l2.08,-2.61l-0.04,-0.41l-1.02,-0.9l3.21,-1.12l0.2,-0.31l-0.07,-0.69l-0.37,-0.26l-1.86,0.42l0.05,-0.86l1.11,-0.76l2.35,-0.23l0.25,-0.19l0.39,-1.07l0.0,-0.19l-0.51,-1.64l0.95,-1.58l0.04,-0.16l-0.03,-0.95l-0.22,-0.28l-3.69,-1.06l-1.43,0.02l-1.45,-1.44l-0.29,-0.08l-1.83,0.49l-2.88,-1.04l0.04,-0.42l-0.04,-0.18l-0.89,-1.43l-0.23,-0.14l-1.77,-0.14l-0.13,-0.66l0.52,-0.56l0.01,-0.4l-1.6,-1.9l-0.27,-0.1l-2.55,0.32l-0.71,-0.16l-0.3,0.1l-0.53,0.63l-0.58,-0.08l-0.56,-1.97l-0.48,-0.94l0.17,-0.11l1.92,0.11l0.2,-0.06l0.97,-0.74l0.05,-0.42l-0.72,-0.91l-0.13,-0.1l-1.43,-0.51l0.09,-0.36l-0.13,-0.33l-0.97,-0.59l-1.43,-2.06l0.44,-0.77l0.04,-0.19l-0.25,-1.64l-0.2,-0.24l-2.45,-0.84l-0.19,-0.0l-1.05,0.34l-0.25,-0.62l-0.18,-0.17l-2.5,-0.84l-0.74,-1.93l-0.21,-1.7l-0.13,-0.21l-0.92,-0.63l0.83,-0.89l0.07,-0.27l-0.71,-3.26l1.69,-2.01l0.03,-0.34l-0.24,-0.41l2.63,-1.9l-0.01,-0.49l-2.31,-1.57l5.08,-4.61l2.33,-2.24l1.01,-2.08l-0.09,-0.37l-3.52,-2.56l0.94,-2.38l-0.04,-0.29l-2.14,-2.86l1.61,-3.35l-0.01,-0.29l-2.81,-4.58l2.19,-3.04l-0.06,-0.42l-3.7,-2.76l0.32,-2.67l1.87,-0.38l4.26,-1.77l2.46,-1.47l3.96,2.58l0.12,0.05l6.81,1.04l9.37,4.87l1.81,1.92l0.15,2.55l-2.61,2.06l-3.95,1.07l-11.1,-3.15l-0.17,0.0l-1.84,0.53l-0.1,0.53l3.97,2.97l0.15,1.77l0.16,4.14l0.19,0.27l3.21,1.22l1.94,1.03l0.44,-0.22l0.32,-1.94l-0.07,-0.25l-1.32,-1.52l1.25,-1.2l5.87,2.45l0.24,-0.01l2.11,-0.98l0.13,-0.42l-1.55,-2.75l5.52,-3.84l2.13,0.22l2.28,1.42l0.43,-0.12l1.46,-2.87l-0.04,-0.33l-1.97,-2.37l1.14,-2.38l-0.02,-0.3l-1.42,-2.07l6.15,1.22l1.14,1.92l-2.74,0.46l-0.25,0.3l0.02,2.36l0.12,0.24l1.97,1.44l0.25,0.05l3.87,-0.91l0.22,-0.23l0.58,-2.55l5.09,-1.98l8.67,-3.69l1.22,0.14l-2.06,2.2l0.18,0.5l3.11,0.45l0.23,-0.07l1.71,-1.41l4.59,-0.12l0.12,-0.03l3.53,-1.72l2.7,2.48l0.42,-0.01l2.85,-2.88l-0.0,-0.43l-2.42,-2.35l1.0,-1.13l7.2,1.31l3.42,1.36l9.06,4.97l0.39,-0.08l1.67,-2.27l-0.04,-0.4l-2.46,-2.23l-0.06,-0.82l-0.26,-0.27l-2.64,-0.38l0.69,-1.76l0.0,-0.22l-1.32,-3.47l-0.07,-1.27l4.52,-4.09l0.08,-0.11l1.6,-4.18l1.67,-0.84l6.33,1.2l0.46,2.31l-2.31,3.67l0.05,0.38l1.49,1.41l0.77,3.04l-0.56,6.05l0.09,0.24l2.62,2.54l-0.99,2.65l-4.87,5.96l0.17,0.48l2.86,0.61l0.31,-0.13l0.94,-1.42l2.67,-1.04l0.18,-0.19l0.64,-2.01l2.11,-1.98l0.05,-0.37l-1.38,-2.32l1.11,-2.74l-0.24,-0.41l-2.53,-0.33l-0.53,-2.16l1.96,-4.42l-0.05,-0.32l-3.03,-3.48l4.21,-2.94l0.12,-0.3l-0.52,-3.04l0.72,-0.06l1.18,2.35l-0.97,4.39l0.2,0.35l2.68,0.84l0.37,-0.38l-1.05,-3.07l3.89,-1.71l5.05,-0.24l4.55,2.62l0.36,-0.05l0.05,-0.36l-2.19,-3.84l-0.23,-4.78l4.07,-0.92l5.98,0.21l5.47,-0.64l0.2,-0.48l-1.88,-2.37l2.65,-2.99l2.75,-0.13l0.12,-0.03l4.82,-2.48l6.56,-0.67l0.23,-0.14l0.76,-1.27l6.33,-0.46l1.97,1.11l0.28,0.01l5.55,-2.71l4.53,0.08l0.29,-0.21l0.67,-2.18l2.29,-2.15l5.75,-2.13l3.48,1.4l-2.7,1.03l-0.19,0.31l0.26,0.26l5.47,0.78ZM871.83,65.73l0.25,-0.15l1.99,0.01l3.3,1.2l-0.08,0.22l-2.41,1.03l-5.73,0.49l-0.31,-1.0l2.99,-1.8ZM797.64,48.44l-2.22,1.51l-3.85,-0.43l-4.35,-1.85l0.42,-1.13l4.42,0.72l5.59,1.17ZM783.82,46.06l-1.71,3.25l-9.05,-0.14l-4.11,1.15l-4.64,-3.04l1.21,-3.13l3.11,-0.91l6.53,0.22l8.66,2.59ZM780.37,145.71l2.28,5.23l-3.09,-0.89l-0.37,0.19l-1.54,4.65l0.04,0.27l2.38,3.17l-0.05,1.4l-1.41,-1.41l-0.46,0.04l-1.23,1.81l-0.33,-1.86l0.28,-3.1l-0.28,-3.41l0.58,-2.46l0.11,-4.39l-0.03,-0.13l-1.44,-3.2l0.21,-4.39l2.19,-1.49l0.09,-0.41l-0.81,-1.3l0.48,-0.21l0.56,1.94l0.86,3.23l-0.05,3.36l1.03,3.35ZM780.16,57.18l-3.4,0.03l-5.06,-0.53l1.97,-1.59l2.95,-0.42l3.35,1.75l0.18,0.77ZM683.84,31.18l-13.29,1.97l4.16,-6.56l1.88,-0.58l1.77,0.34l6.08,3.02l-0.6,1.8ZM670.94,28.02l-5.18,0.65l-6.89,-1.58l-4.03,-2.07l-1.88,-3.98l-0.18,-0.16l-2.8,-0.93l5.91,-3.62l5.25,-1.29l4.73,2.88l5.63,5.44l-0.57,4.66ZM564.37,68.98l-0.85,0.23l-7.93,-0.57l-0.6,-1.84l-0.21,-0.2l-4.34,-1.18l-0.3,-2.08l2.34,-0.92l0.19,-0.29l-0.08,-2.43l4.85,-4.0l-0.12,-0.52l-1.68,-0.43l5.47,-3.94l0.11,-0.33l-0.6,-2.02l5.36,-2.55l8.22,-3.27l8.29,-0.96l4.34,-1.94l4.67,-0.65l1.45,1.72l-1.43,1.37l-8.8,2.52l-7.65,2.42l-7.92,4.84l-3.73,4.75l-3.92,4.58l-0.07,0.23l0.51,3.88l0.11,0.2l4.32,3.39ZM548.86,18.57l-3.28,0.75l-2.25,0.44l-0.22,0.19l-0.3,0.81l-2.67,0.86l-2.27,-1.14l1.2,-1.51l-0.23,-0.49l-3.14,-0.1l2.48,-0.54l3.55,-0.07l0.44,1.36l0.49,0.12l1.4,-1.35l2.2,-0.9l3.13,1.08l-0.54,0.49ZM477.5,133.25l-4.21,0.05l-2.69,-0.34l0.39,-1.03l3.24,-1.06l2.51,0.58l0.85,0.43l-0.2,0.71l-0.0,0.15l0.12,0.52Z",name:"Russia"},RW:{path:"M497.03,288.12l0.78,1.11l-0.12,1.19l-0.49,0.21l-1.25,-0.15l-0.3,0.16l-0.67,1.24l-1.01,-0.13l0.16,-0.92l0.22,-0.12l0.15,-0.24l0.09,-1.37l0.49,-0.48l0.42,0.18l0.25,-0.01l1.26,-0.65Z",name:"Rwanda"},RS:{path:"M469.75,168.65l0.21,-0.21l0.36,-1.44l-0.08,-0.29l-1.06,-1.03l0.54,-1.16l-0.28,-0.43l-0.26,0.0l0.55,-0.67l-0.01,-0.39l-0.77,-0.86l-0.45,-0.89l1.56,-0.67l1.39,0.12l1.22,1.1l0.26,0.91l0.16,0.19l1.38,0.66l0.17,1.12l0.14,0.21l1.46,0.9l0.35,-0.03l0.62,-0.54l0.09,0.06l-0.28,0.25l-0.03,0.42l0.29,0.34l-0.44,0.5l-0.07,0.26l0.22,1.12l0.07,0.14l1.02,1.1l-0.81,0.84l-0.42,0.96l0.04,0.3l0.12,0.15l-0.15,0.16l-1.04,0.04l-0.39,0.08l0.33,-0.81l-0.29,-0.41l-0.21,0.01l-0.39,-0.45l-0.13,-0.09l-0.32,-0.11l-0.27,-0.4l-0.14,-0.11l-0.4,-0.16l-0.31,-0.37l-0.34,-0.09l-0.45,0.17l-0.18,0.18l-0.29,0.84l-0.96,-0.65l-0.81,-0.33l-0.32,-0.37l-0.22,-0.18Z",name:"Republic of Serbia"},LT:{path:"M478.13,133.31l-0.14,-0.63l0.25,-0.88l-0.15,-0.35l-1.17,-0.58l-2.43,-0.57l-0.45,-2.51l2.58,-0.97l4.14,0.22l2.3,-0.32l0.26,0.54l0.22,0.17l1.26,0.22l2.25,1.6l0.19,1.23l-1.87,1.01l-0.14,0.18l-0.54,1.83l-2.54,1.21l-2.18,-0.02l-0.52,-0.91l-0.18,-0.14l-1.11,-0.32Z",name:"Lithuania"},LU:{path:"M435.95,147.99l0.33,0.49l-0.11,1.07l-0.39,0.04l-0.29,-0.15l0.21,-1.4l0.25,-0.05Z",name:"Luxembourg"},LR:{path:"M401.37,273.67l-0.32,0.01l-2.48,-1.15l-2.24,-1.89l-2.14,-1.38l-1.47,-1.42l0.44,-0.59l0.05,-0.13l0.12,-0.65l1.07,-1.3l1.08,-1.09l0.52,-0.07l0.43,-0.18l0.84,1.24l-0.15,0.89l0.07,0.25l0.49,0.54l0.22,0.1l0.71,0.01l0.27,-0.16l0.42,-0.83l0.19,0.02l-0.06,0.52l0.23,1.12l-0.5,1.03l0.06,0.35l0.73,0.69l0.14,0.08l0.71,0.15l0.92,0.91l0.06,0.76l-0.17,0.22l-0.06,0.15l-0.17,1.8Z",name:"Liberia"},RO:{path:"M477.94,155.19l1.02,-0.64l1.49,0.33l1.52,0.01l1.09,0.73l0.32,0.01l0.81,-0.46l1.8,-0.3l0.18,-0.1l0.54,-0.64l0.86,0.0l0.64,0.26l0.71,0.87l0.8,1.35l1.39,1.81l0.07,1.25l-0.26,1.3l0.01,0.15l0.45,1.42l0.15,0.18l1.12,0.57l0.25,0.01l1.05,-0.45l0.86,0.4l0.03,0.43l-0.92,0.51l-0.63,-0.24l-0.4,0.22l-0.64,3.41l-1.12,-0.24l-1.78,-1.09l-0.23,-0.04l-2.95,0.71l-1.25,0.77l-3.55,-0.16l-1.89,-0.47l-0.14,-0.0l-0.75,0.17l-0.61,-1.07l-0.3,-0.36l0.36,-0.32l-0.04,-0.48l-0.62,-0.38l-0.36,0.03l-0.62,0.54l-1.15,-0.71l-0.18,-1.14l-0.17,-0.22l-1.4,-0.67l-0.24,-0.86l-0.09,-0.14l-0.96,-0.87l1.49,-0.44l0.16,-0.11l1.51,-2.14l1.15,-2.09l1.44,-0.63Z",name:"Romania"},GW:{path:"M383.03,256.73l-1.12,-0.88l-0.14,-0.06l-0.94,-0.15l-0.43,-0.54l0.01,-0.27l-0.13,-0.26l-0.68,-0.48l-0.05,-0.16l0.99,-0.31l0.77,0.08l0.15,-0.02l0.61,-0.26l4.25,0.1l-0.02,0.44l-0.19,0.18l-0.08,0.29l0.17,0.66l-0.17,0.14l-0.44,0.0l-0.16,0.05l-0.57,0.37l-0.66,-0.04l-0.24,0.1l-0.92,1.03Z",name:"Guinea Bissau"},GT:{path:"M195.13,249.89l-1.05,-0.35l-1.5,-0.04l-1.06,-0.47l-1.19,-0.93l0.04,-0.53l0.27,-0.55l-0.03,-0.31l-0.24,-0.32l1.02,-1.77l3.04,-0.01l0.3,-0.28l0.06,-0.88l-0.19,-0.3l-0.3,-0.11l-0.23,-0.45l-0.11,-0.12l-0.9,-0.58l-0.35,-0.33l0.37,-0.0l0.3,-0.3l0.0,-1.15l4.05,0.02l-0.02,1.74l-0.2,2.89l0.3,0.32l0.67,-0.0l0.75,0.42l0.4,-0.11l-0.62,0.53l-1.17,0.7l-0.13,0.16l-0.18,0.49l0.0,0.21l0.14,0.34l-0.35,0.44l-0.49,0.13l-0.2,0.41l0.03,0.06l-0.27,0.16l-0.86,0.64l-0.12,0.22ZM199.35,245.38l0.07,-0.13l0.05,0.02l-0.13,0.11Z",name:"Guatemala"},GR:{path:"M487.2,174.55l-0.64,1.54l-0.43,0.24l-1.41,-0.08l-1.28,-0.28l-0.14,0.0l-3.03,0.77l-0.13,0.51l1.39,1.34l-0.78,0.29l-1.2,0.0l-1.23,-1.42l-0.47,0.02l-0.47,0.65l-0.04,0.27l0.56,1.76l0.06,0.11l1.02,1.12l-0.66,0.45l-0.04,0.46l1.39,1.35l1.15,0.79l0.02,1.06l-1.91,-0.63l-0.36,0.42l0.56,1.12l-1.2,0.23l-0.22,0.4l0.8,2.14l-1.15,0.02l-1.89,-1.15l-0.89,-2.19l-0.43,-1.91l-0.05,-0.11l-0.98,-1.35l-1.24,-1.62l-0.13,-0.63l1.07,-1.32l0.06,-0.14l0.13,-0.81l0.68,-0.36l0.16,-0.25l0.03,-0.54l1.4,-0.23l0.12,-0.05l0.87,-0.6l1.26,0.05l0.25,-0.11l0.34,-0.43l0.33,-0.07l1.81,0.08l0.13,-0.02l1.87,-0.77l1.64,0.97l0.19,0.04l2.28,-0.28l0.26,-0.29l0.02,-0.95l0.56,0.36ZM480.44,192.0l1.05,0.74l0.01,0.0l-1.26,-0.23l0.2,-0.51ZM481.76,192.79l1.86,-0.15l1.53,0.17l-0.02,0.19l0.34,0.3l-2.28,0.15l0.01,-0.13l-0.25,-0.31l-1.19,-0.22ZM485.65,193.28l0.65,-0.16l-0.05,0.12l-0.6,0.04Z",name:"Greece"},GQ:{path:"M444.81,282.04l-0.21,-0.17l0.74,-2.4l3.56,0.05l0.02,2.42l-3.34,-0.02l-0.76,0.13Z",name:"Equatorial Guinea"},GY:{path:"M271.34,264.25l1.43,0.81l1.44,1.53l0.06,1.19l0.28,0.28l0.84,0.05l2.13,1.92l-0.34,1.93l-1.37,0.59l-0.17,0.34l0.12,0.51l-0.43,1.21l0.03,0.26l1.11,1.82l0.26,0.14l0.56,0.0l0.32,1.29l1.25,1.78l-0.08,0.01l-1.34,-0.21l-0.24,0.06l-0.78,0.64l-1.06,0.41l-0.76,0.1l-0.22,0.15l-0.18,0.32l-0.95,-0.1l-1.38,-1.05l-0.19,-1.13l-0.6,-1.18l0.37,-1.96l0.65,-0.83l0.03,-0.32l-0.57,-1.17l-0.15,-0.14l-0.62,-0.27l0.25,-0.85l-0.08,-0.3l-0.58,-0.58l-0.24,-0.09l-1.15,0.1l-1.41,-1.58l0.48,-0.49l0.09,-0.22l-0.04,-0.92l1.31,-0.34l0.73,-0.52l0.04,-0.44l-0.75,-0.82l0.16,-0.66l1.74,-1.3Z",name:"Guyana"},GE:{path:"M525.41,174.19l0.26,-0.88l-0.0,-0.17l-0.63,-2.06l-0.1,-0.15l-1.45,-1.12l-0.11,-0.05l-1.31,-0.33l-0.66,-0.69l1.97,0.48l3.65,0.49l3.3,1.41l0.39,0.5l0.33,0.1l1.43,-0.45l2.14,0.58l0.7,1.14l0.13,0.12l1.06,0.47l-0.18,0.11l-0.08,0.43l1.08,1.41l-0.06,0.06l-1.16,-0.15l-1.82,-0.84l-0.31,0.04l-0.55,0.44l-3.29,0.44l-2.32,-1.41l-0.17,-0.04l-2.25,0.12Z",name:"Georgia"},GB:{path:"M412.82,118.6l-2.31,3.4l-0.0,0.33l0.31,0.13l2.52,-0.49l2.34,0.02l-0.56,2.51l-2.22,3.13l0.22,0.47l2.43,0.21l2.35,4.35l0.17,0.14l1.58,0.51l1.49,3.78l0.73,1.37l0.2,0.15l2.76,0.59l-0.25,1.75l-1.18,0.91l-0.08,0.39l0.87,1.49l-1.96,1.51l-3.31,-0.02l-4.15,0.88l-1.07,-0.59l-0.35,0.04l-1.55,1.44l-2.17,-0.35l-0.22,0.05l-1.61,1.15l-0.78,-0.38l3.31,-3.12l2.18,-0.7l0.21,-0.31l-0.26,-0.27l-3.78,-0.54l-0.48,-0.9l2.3,-0.92l0.13,-0.46l-1.29,-1.71l0.39,-1.83l3.46,0.29l0.32,-0.24l0.37,-1.99l-0.06,-0.24l-1.71,-2.17l-0.18,-0.11l-2.91,-0.58l-0.43,-0.68l0.82,-1.4l-0.03,-0.35l-0.82,-0.97l-0.46,0.01l-0.85,1.05l-0.11,-2.6l-0.05,-0.16l-1.19,-1.7l0.86,-3.53l1.81,-2.75l1.88,0.26l2.38,-0.24ZM406.39,132.84l-1.09,1.92l-1.65,-0.62l-1.26,0.02l0.41,-1.46l0.0,-0.16l-0.42,-1.51l1.62,-0.11l2.39,1.92Z",name:"United Kingdom"},GA:{path:"M448.76,294.47l-2.38,-2.34l-1.63,-2.04l-1.46,-2.48l0.06,-0.66l0.54,-0.81l0.61,-1.82l0.46,-1.69l0.63,-0.11l3.62,0.03l0.3,-0.3l-0.02,-2.75l0.88,-0.12l1.47,0.32l0.13,0.0l1.39,-0.3l-0.13,0.87l0.03,0.19l0.7,1.29l0.3,0.16l1.74,-0.19l0.36,0.29l-1.01,2.7l0.05,0.29l1.13,1.42l0.25,1.82l-0.3,1.56l-0.64,0.99l-1.93,-0.09l-1.26,-1.13l-0.5,0.17l-0.16,0.91l-1.48,0.27l-0.12,0.05l-0.86,0.63l-0.08,0.39l0.81,1.42l-1.48,1.08Z",name:"Gabon"},GN:{path:"M399.83,265.31l-0.69,-0.06l-0.3,0.16l-0.43,0.85l-0.39,-0.01l-0.3,-0.33l0.14,-0.87l-0.05,-0.22l-1.05,-1.54l-0.37,-0.11l-0.61,0.27l-0.84,0.12l0.02,-0.54l-0.04,-0.17l-0.35,-0.57l0.07,-0.63l-0.03,-0.17l-0.57,-1.11l-0.7,-0.9l-0.24,-0.12l-2.0,-0.0l-0.19,0.07l-0.51,0.42l-0.6,0.05l-0.21,0.11l-0.43,0.55l-0.3,0.7l-1.04,0.86l-0.91,-1.24l-1.0,-1.02l-0.69,-0.37l-0.52,-0.42l-0.3,-1.11l-0.37,-0.56l-0.1,-0.1l-0.4,-0.23l0.77,-0.85l0.62,0.04l0.18,-0.05l0.58,-0.38l0.46,-0.0l0.19,-0.07l0.39,-0.34l0.1,-0.3l-0.17,-0.67l0.15,-0.14l0.09,-0.2l0.03,-0.57l0.87,0.02l1.76,0.6l0.13,0.01l0.55,-0.06l0.22,-0.13l0.08,-0.12l1.18,0.17l0.17,-0.02l0.09,0.56l0.3,0.25l0.4,-0.0l0.14,-0.03l0.56,-0.29l0.23,0.05l0.63,0.59l0.15,0.07l1.07,0.2l0.24,-0.06l0.65,-0.52l0.77,-0.32l0.55,-0.32l0.3,0.04l0.44,0.45l0.34,0.74l0.84,0.87l-0.35,0.45l-0.06,0.15l-0.1,0.82l0.42,0.31l0.35,-0.16l0.05,0.04l-0.1,0.59l0.09,0.27l0.42,0.4l-0.06,0.02l-0.18,0.21l-0.2,0.86l0.03,0.21l0.56,1.02l0.52,1.71l-0.65,0.21l-0.15,0.12l-0.24,0.35l-0.03,0.28l0.16,0.41l-0.1,0.76l-0.12,0.0Z",name:"Guinea"},GM:{path:"M379.18,251.48l0.15,-0.55l2.51,-0.07l0.21,-0.09l0.48,-0.52l0.58,-0.03l0.91,0.58l0.16,0.05l0.78,0.01l0.14,-0.03l0.59,-0.31l0.16,0.24l-0.71,0.38l-0.94,-0.04l-1.02,-0.51l-0.3,0.01l-0.86,0.55l-0.37,0.02l-0.14,0.04l-0.53,0.31l-1.81,-0.04Z",name:"Gambia"},GL:{path:"M304.13,6.6l8.19,-3.63l8.72,0.28l0.19,-0.06l3.12,-2.28l8.75,-0.61l19.94,0.8l14.93,4.75l-3.92,2.01l-9.52,0.27l-13.48,0.6l-0.27,0.2l0.09,0.33l1.26,1.09l0.22,0.07l8.81,-0.67l7.49,2.07l0.19,-0.01l4.68,-1.78l1.76,1.84l-2.59,3.26l-0.01,0.36l0.34,0.11l6.35,-2.2l12.09,-2.32l7.31,1.14l1.17,2.13l-9.9,4.05l-1.43,1.32l-7.91,0.98l-0.26,0.31l0.29,0.29l5.25,0.25l-2.63,3.72l-2.02,3.61l-0.04,0.15l0.08,6.05l0.07,0.19l2.61,3.0l-3.4,0.2l-4.12,1.66l-0.04,0.54l4.5,2.67l0.53,3.9l-2.39,0.42l-0.19,0.48l2.91,3.83l-5.0,0.32l-0.27,0.22l0.12,0.33l2.69,1.84l-0.65,1.35l-3.36,0.71l-3.46,0.01l-0.21,0.51l3.05,3.15l0.02,1.53l-4.54,-1.79l-0.32,0.06l-1.29,1.26l0.11,0.5l3.33,1.15l3.17,2.74l0.85,3.29l-4.0,0.78l-1.83,-1.66l-3.1,-2.64l-0.36,-0.02l-0.13,0.33l0.8,2.92l-2.76,2.26l-0.09,0.33l0.28,0.2l6.59,0.19l2.47,0.18l-5.86,3.38l-6.76,3.43l-7.26,1.48l-2.73,0.02l-0.16,0.05l-2.67,1.72l-3.44,4.42l-5.28,2.86l-1.73,0.18l-3.33,1.01l-3.59,0.96l-0.15,0.1l-2.15,2.52l-0.07,0.19l-0.03,2.76l-1.21,2.49l-4.03,3.1l-0.1,0.33l0.98,2.94l-2.31,6.57l-3.21,0.21l-3.6,-3.0l-0.19,-0.07l-4.9,-0.02l-2.29,-1.97l-1.69,-3.78l-4.31,-4.86l-1.23,-2.52l-0.34,-3.58l-0.08,-0.17l-3.35,-3.67l0.85,-2.92l-0.09,-0.31l-1.5,-1.34l2.33,-4.7l3.67,-1.57l0.15,-0.13l1.02,-1.93l0.52,-3.47l-0.44,-0.31l-2.85,1.57l-1.33,0.64l-2.12,0.59l-2.81,-1.32l-0.15,-2.79l0.88,-2.17l2.09,-0.06l5.07,1.2l0.34,-0.17l-0.11,-0.37l-4.3,-2.9l-2.24,-1.58l-0.25,-0.05l-2.38,0.62l-1.7,-0.93l2.62,-4.1l-0.03,-0.36l-1.51,-1.75l-1.97,-3.3l-3.01,-5.21l-0.1,-0.11l-3.04,-1.85l0.03,-1.94l-0.18,-0.28l-6.82,-3.01l-5.35,-0.38l-6.69,0.21l-6.03,0.37l-2.81,-1.59l-3.84,-2.9l5.94,-1.5l5.01,-0.28l0.28,-0.29l-0.26,-0.31l-10.68,-1.38l-5.38,-2.1l0.27,-1.68l9.3,-2.6l9.18,-2.68l0.19,-0.16l0.97,-2.05l-0.18,-0.42l-6.29,-1.91l1.81,-1.9l8.58,-4.05l3.6,-0.63l0.23,-0.4l-0.92,-2.37l5.59,-1.5l7.66,-0.95l7.58,-0.05l2.65,1.84l0.31,0.02l6.52,-3.29l5.85,2.24l3.55,0.49l5.17,1.95l0.38,-0.16l-0.13,-0.39l-5.77,-3.16l0.29,-2.26Z",name:"Greenland"},KW:{path:"M540.87,207.81l0.41,0.94l-0.18,0.51l0.0,0.21l0.65,1.66l-1.15,0.05l-0.54,-1.12l-0.24,-0.17l-1.73,-0.2l1.44,-2.06l1.33,0.18Z",name:"Kuwait"},GH:{path:"M423.16,269.88l-3.58,1.34l-1.41,0.87l-2.13,0.69l-1.91,-0.61l0.09,-0.75l-0.03,-0.17l-1.04,-2.07l0.62,-2.7l1.04,-2.08l0.03,-0.19l-1.0,-5.46l0.05,-1.12l4.04,-0.11l1.08,0.18l0.18,-0.03l0.72,-0.36l0.75,0.13l-0.11,0.48l0.06,0.26l0.98,1.22l-0.0,1.77l0.24,1.99l0.05,0.13l0.55,0.81l-0.52,2.14l0.19,1.37l0.69,1.66l0.38,0.62Z",name:"Ghana"},OM:{path:"M568.16,231.0l-0.08,0.1l-0.84,1.61l-0.93,-0.11l-0.27,0.11l-0.58,0.73l-0.4,1.32l-0.01,0.14l0.29,1.61l-0.07,0.09l-1.0,-0.01l-0.16,0.04l-1.56,0.97l-0.14,0.2l-0.23,1.17l-0.41,0.4l-1.44,-0.02l-0.17,0.05l-0.98,0.65l-0.13,0.25l0.01,0.87l-0.97,0.57l-1.27,-0.22l-0.19,0.03l-1.63,0.84l-0.88,0.11l-2.55,-5.57l7.2,-2.49l0.19,-0.19l1.67,-5.23l-0.03,-0.25l-1.1,-1.78l0.05,-0.89l0.68,-1.03l0.05,-0.16l0.01,-0.89l0.96,-0.44l0.07,-0.5l-0.32,-0.26l0.16,-1.31l0.85,-0.01l1.03,1.67l0.09,0.09l1.4,0.96l0.11,0.05l1.82,0.34l1.37,0.45l1.75,2.32l0.13,0.1l0.7,0.26l-0.0,0.3l-1.25,2.19l-1.01,0.8ZM561.88,218.47l-0.01,0.02l-0.15,-0.29l0.3,-0.38l-0.14,0.65Z",name:"Oman"},_3:{path:"M543.2,261.06l-1.07,1.46l-1.65,1.99l-1.91,0.01l-8.08,-2.95l-0.89,-0.84l-0.9,-1.19l-0.81,-1.23l0.44,-0.73l0.76,-1.12l0.49,0.28l0.52,1.05l1.13,1.06l0.2,0.08l1.24,0.01l2.42,-0.65l2.77,-0.31l2.17,-0.78l1.31,-0.19l0.84,-0.43l1.03,-0.06l-0.01,4.54Z",name:"Somaliland"},_2:{path:"M384.23,230.37l0.07,-0.06l0.28,-0.89l0.99,-1.13l0.07,-0.13l0.8,-3.54l3.4,-2.8l0.09,-0.13l0.76,-2.17l0.07,5.5l-2.07,0.21l-0.24,0.17l-0.61,1.36l-0.02,0.16l0.43,3.46l-4.01,-0.01ZM391.82,218.2l0.07,-0.06l0.75,-1.93l1.86,-0.25l0.94,0.34l1.14,0.0l0.18,-0.06l0.73,-0.56l1.41,-0.08l-0.0,2.72l-7.08,-0.12Z",name:"Western Sahara"},_1:{path:"M472.71,172.84l-0.07,-0.43l-0.16,-0.22l-0.53,-0.27l-0.38,-0.58l0.3,-0.43l0.51,-0.19l0.18,-0.18l0.3,-0.87l0.12,-0.04l0.22,0.26l0.12,0.09l0.38,0.15l0.28,0.41l0.15,0.12l0.34,0.12l0.43,0.5l0.15,0.07l-0.12,0.3l-0.27,0.32l-0.03,0.18l-0.31,0.06l-1.48,0.47l-0.15,0.17Z",name:"Kosovo"},_0:{path:"M503.54,192.92l0.09,-0.17l0.41,0.01l-0.08,0.01l-0.42,0.15ZM504.23,192.76l1.02,0.02l0.4,-0.13l-0.09,0.29l0.03,0.08l-0.35,0.16l-0.24,-0.04l-0.06,-0.1l-0.18,-0.17l-0.19,-0.08l-0.33,-0.02Z",name:"Northern Cyprus"},JO:{path:"M510.26,200.93l0.28,-0.57l2.53,1.0l0.27,-0.02l4.57,-2.77l0.84,2.84l-0.28,0.25l-4.95,1.37l-0.14,0.49l2.24,2.48l-0.5,0.28l-0.13,0.14l-0.35,0.78l-1.76,0.35l-0.2,0.14l-0.57,0.94l-0.94,0.73l-2.45,-0.38l-0.03,-0.12l1.23,-4.32l-0.04,-1.1l0.34,-0.75l0.03,-0.12l0.0,-1.63Z",name:"Jordan"},HR:{path:"M455.49,162.73l1.53,0.09l0.24,-0.1l0.29,-0.34l0.64,0.38l0.14,0.04l0.98,0.06l0.32,-0.3l-0.01,-0.66l0.67,-0.25l0.19,-0.22l0.21,-1.11l1.72,-0.72l0.65,0.32l1.94,1.37l2.07,0.6l0.22,-0.02l0.67,-0.33l0.47,0.94l0.67,0.76l-0.63,0.77l-0.91,-0.55l-0.16,-0.04l-1.69,0.04l-2.2,-0.51l-1.17,0.07l-0.21,0.11l-0.36,0.42l-0.67,-0.53l-0.46,0.12l-0.52,1.29l0.05,0.31l1.21,1.42l0.58,0.99l1.15,1.14l0.95,0.68l0.92,1.23l0.1,0.09l1.75,0.91l-1.87,-0.89l-1.5,-1.11l-2.23,-0.88l-1.77,-1.9l0.12,-0.06l0.1,-0.47l-1.07,-1.22l-0.04,-0.94l-0.21,-0.27l-1.61,-0.49l-0.35,0.14l-0.53,0.93l-0.41,-0.57l0.04,-0.73Z",name:"Croatia"},HT:{path:"M237.82,234.68l1.35,0.1l1.95,0.37l0.18,1.15l-0.16,0.83l-0.51,0.37l-0.06,0.44l0.57,0.68l-0.02,0.22l-1.31,-0.35l-1.26,0.17l-1.49,-0.18l-0.15,0.02l-1.03,0.43l-1.02,-0.61l0.09,-0.36l2.04,0.32l1.9,0.21l0.19,-0.05l0.9,-0.58l0.05,-0.47l-1.05,-1.03l0.02,-0.86l-0.23,-0.3l-1.13,-0.29l0.18,-0.23Z",name:"Haiti"},HU:{path:"M461.96,157.92l0.68,-1.66l-0.03,-0.29l-0.15,-0.22l0.84,-0.0l0.3,-0.26l0.12,-0.84l0.88,0.57l0.98,0.38l0.16,0.01l2.1,-0.39l0.23,-0.21l0.14,-0.45l0.88,-0.1l1.06,-0.43l0.13,0.1l0.28,0.04l1.18,-0.4l0.14,-0.1l0.52,-0.67l0.63,-0.15l2.6,0.95l0.26,-0.03l0.38,-0.23l1.12,0.7l0.1,0.49l-1.31,0.57l-0.14,0.13l-1.18,2.14l-1.44,2.04l-1.85,0.55l-1.51,-0.13l-0.14,0.02l-1.92,0.82l-0.85,0.42l-1.91,-0.55l-1.83,-1.31l-0.74,-0.37l-0.44,-0.97l-0.26,-0.18Z",name:"Hungary"},HN:{path:"M202.48,251.87l-0.33,-0.62l-0.18,-0.14l-0.5,-0.15l0.13,-0.76l-0.11,-0.28l-0.34,-0.28l-0.6,-0.23l-0.18,-0.01l-0.81,0.22l-0.16,-0.24l-0.72,-0.39l-0.51,-0.48l-0.12,-0.07l-0.31,-0.09l0.24,-0.3l0.04,-0.3l-0.16,-0.4l0.1,-0.28l1.14,-0.69l1.0,-0.86l0.09,0.04l0.3,-0.05l0.47,-0.39l0.49,-0.03l0.14,0.13l0.29,0.06l0.31,-0.1l1.16,0.22l1.24,-0.08l0.81,-0.28l0.29,-0.25l0.63,0.1l0.69,0.18l0.65,-0.06l0.49,-0.2l1.04,0.32l0.38,0.06l0.7,0.44l0.71,0.56l0.92,0.41l0.1,0.11l-0.11,-0.01l-0.23,0.09l-0.3,0.3l-0.76,0.29l-0.58,0.0l-0.15,0.04l-0.45,0.26l-0.31,-0.07l-0.37,-0.34l-0.28,-0.07l-0.26,0.07l-0.18,0.15l-0.23,0.43l-0.04,-0.0l-0.33,0.28l-0.03,0.4l-0.76,0.61l-0.45,0.3l-0.15,0.16l-0.51,-0.36l-0.41,0.06l-0.45,0.56l-0.41,-0.01l-0.59,0.06l-0.27,0.31l0.04,0.96l-0.07,0.0l-0.25,0.16l-0.24,0.45l-0.42,0.06Z",name:"Honduras"},PR:{path:"M254.95,238.31l1.15,0.21l0.2,0.23l-0.36,0.36l-1.76,-0.01l-1.2,0.07l-0.09,-0.69l0.17,-0.18l1.89,0.01Z",name:"Puerto Rico"},PS:{path:"M509.66,201.06l-0.0,1.44l-0.29,0.63l-0.59,0.19l0.02,-0.11l0.52,-0.31l-0.02,-0.53l-0.41,-0.2l0.36,-1.28l0.41,0.17Z",name:"West Bank"},PT:{path:"M398.65,173.6l0.75,-0.63l0.7,-0.3l0.51,1.2l0.28,0.18l1.48,-0.0l0.2,-0.08l0.33,-0.3l1.16,0.08l0.52,1.11l-0.95,0.66l-0.13,0.24l-0.03,2.2l-0.33,0.35l-0.08,0.18l-0.08,1.17l-0.86,0.19l-0.2,0.44l0.93,1.64l-0.64,1.79l0.07,0.31l0.72,0.72l-0.24,0.56l-0.9,1.05l-0.07,0.26l0.17,0.77l-0.73,0.54l-1.18,-0.36l-0.16,-0.0l-0.85,0.21l0.31,-1.81l-0.23,-1.87l-0.23,-0.25l-0.99,-0.24l-0.49,-0.91l0.18,-1.72l0.93,-0.99l0.08,-0.16l0.17,-1.17l0.52,-1.76l-0.04,-1.36l-0.51,-1.14l-0.09,-0.8Z",name:"Portugal"},PY:{path:"M264.33,341.43l0.93,-2.96l0.07,-1.42l1.1,-2.1l4.19,-0.73l2.22,0.04l2.12,1.21l0.07,0.76l0.7,1.38l-0.16,3.48l0.24,0.31l2.64,0.5l0.19,-0.03l0.9,-0.45l1.47,0.62l0.38,0.64l0.23,2.35l0.3,1.07l0.25,0.21l0.93,0.12l0.16,-0.02l0.8,-0.37l0.61,0.33l-0.0,1.25l-0.33,1.53l-0.5,1.57l-0.39,2.26l-2.14,1.94l-1.85,0.4l-2.74,-0.4l-2.13,-0.62l2.26,-3.75l0.03,-0.24l-0.36,-1.18l-0.17,-0.19l-2.55,-1.03l-3.04,-1.95l-2.07,-0.43l-4.4,-4.12Z",name:"Paraguay"},PA:{path:"M213.65,263.79l0.18,-0.43l0.02,-0.18l-0.06,-0.28l0.23,-0.18l-0.01,-0.48l-0.4,-0.29l-0.01,-0.62l0.57,-0.13l0.68,0.69l-0.04,0.39l0.26,0.33l1.0,0.11l0.27,-0.1l0.49,0.44l0.24,0.07l1.34,-0.22l1.04,-0.62l1.49,-0.5l0.86,-0.73l0.99,0.11l0.18,0.28l1.35,0.08l1.02,0.4l0.78,0.72l0.71,0.53l-0.1,0.12l-0.05,0.3l0.53,1.34l-0.28,0.44l-0.6,-0.13l-0.36,0.22l-0.2,0.76l-0.41,-0.36l-0.44,-1.12l0.49,-0.53l-0.14,-0.49l-0.51,-0.14l-0.41,-0.72l-0.11,-0.11l-1.25,-0.7l-0.19,-0.04l-1.1,0.16l-0.22,0.15l-0.47,0.81l-0.9,0.56l-0.49,0.08l-0.22,0.17l-0.25,0.52l0.05,0.32l0.93,1.07l-0.41,0.21l-0.29,0.3l-0.81,0.09l-0.36,-1.26l-0.53,-0.1l-0.21,0.28l-0.5,-0.09l-0.44,-0.88l-0.22,-0.16l-0.99,-0.16l-0.61,-0.28l-0.13,-0.03l-1.0,0.0Z",name:"Panama"},PG:{path:"M808.4,298.6l0.62,0.46l1.19,1.56l1.04,0.77l-0.18,0.37l-0.42,0.15l-0.92,-0.82l-1.05,-1.53l-0.27,-0.96ZM804.09,296.06l-0.3,0.26l-0.36,-1.11l-0.66,-1.06l-2.55,-1.89l-1.42,-0.59l0.17,-0.15l1.16,0.6l0.85,0.55l1.01,0.58l0.97,1.02l0.9,0.76l0.24,1.03ZM796.71,297.99l0.15,0.82l0.34,0.24l1.43,-0.19l0.19,-0.11l0.68,-0.82l1.36,-0.87l0.13,-0.31l-0.21,-1.13l1.04,-0.03l0.3,0.25l-0.04,1.17l-0.74,1.34l-1.17,0.18l-0.22,0.15l-0.35,0.62l-2.51,1.13l-1.21,-0.0l-1.99,-0.71l-1.19,-0.58l0.07,-0.28l1.98,0.32l1.46,-0.2l0.24,-0.21l0.25,-0.79ZM789.24,303.52l0.11,0.15l2.19,1.62l1.6,2.62l0.27,0.14l1.09,-0.06l-0.07,0.77l0.23,0.32l1.23,0.27l-0.14,0.09l0.05,0.53l2.39,0.95l-0.11,0.28l-1.33,0.14l-0.51,-0.55l-0.18,-0.09l-4.59,-0.65l-1.87,-1.55l-1.38,-1.35l-1.28,-2.17l-0.16,-0.13l-3.27,-1.1l-0.19,0.0l-2.12,0.72l-1.58,0.85l-0.15,0.31l0.28,1.63l-1.65,0.73l-1.37,-0.4l-2.3,-0.09l-0.08,-15.65l3.95,1.57l4.58,1.42l1.67,1.25l1.32,1.19l0.36,1.39l0.19,0.21l4.06,1.51l0.39,0.85l-1.9,0.22l-0.25,0.39l0.55,1.68Z",name:"Papua New Guinea"},PE:{path:"M246.44,329.21l-0.63,1.25l-1.05,0.54l-2.25,-1.33l-0.19,-0.93l-0.16,-0.21l-4.95,-2.58l-4.46,-2.79l-1.87,-1.52l-0.94,-1.91l0.33,-0.6l-0.01,-0.31l-2.11,-3.33l-2.46,-4.66l-2.36,-5.02l-1.04,-1.18l-0.77,-1.81l-0.08,-0.11l-1.95,-1.64l-1.54,-0.88l0.61,-0.85l0.02,-0.31l-1.15,-2.27l0.69,-1.56l1.59,-1.26l0.12,0.42l-0.56,0.47l-0.11,0.25l0.07,0.92l0.36,0.27l0.97,-0.19l0.85,0.23l0.99,1.19l0.41,0.05l1.42,-1.03l0.11,-0.16l0.46,-1.64l1.45,-2.06l2.92,-0.96l0.11,-0.07l2.73,-2.62l0.84,-1.72l0.02,-0.18l-0.3,-1.65l0.28,-0.1l1.49,1.06l0.77,1.14l0.1,0.09l1.08,0.6l1.43,2.55l0.21,0.15l1.86,0.31l0.18,-0.03l1.25,-0.6l0.77,0.37l0.17,0.03l1.4,-0.2l1.57,0.96l-1.45,2.29l0.23,0.46l0.63,0.05l0.66,0.7l-1.51,-0.08l-0.24,0.1l-0.27,0.31l-1.96,0.46l-2.95,1.74l-0.14,0.21l-0.17,1.1l-0.6,0.82l-0.05,0.23l0.21,1.13l-1.31,0.63l-0.17,0.27l0.0,0.91l-0.53,0.37l-0.1,0.37l1.04,2.27l1.31,1.46l-0.44,0.9l0.24,0.43l1.52,0.13l0.87,1.23l0.24,0.13l2.21,0.07l0.18,-0.06l1.55,-1.13l-0.14,3.22l0.23,0.3l1.14,0.29l0.16,-0.0l1.18,-0.36l1.97,3.71l-0.45,0.71l-0.04,0.14l-0.12,1.8l-0.05,2.07l-0.92,1.2l-0.03,0.31l0.38,0.8l-0.48,0.72l-0.02,0.3l1.01,2.02l-1.5,2.64Z",name:"Peru"},PK:{path:"M609.08,187.76l1.66,1.21l0.71,2.11l0.2,0.19l3.62,1.01l-1.98,1.95l-2.65,0.4l-3.75,-0.68l-0.26,0.08l-1.23,1.22l-0.07,0.31l0.89,2.46l0.88,1.92l0.1,0.12l1.67,1.14l-1.8,1.35l-0.12,0.25l0.04,1.85l-2.35,2.67l-1.59,2.79l-2.5,2.72l-2.76,-0.2l-0.24,0.09l-2.76,2.83l0.04,0.45l1.54,1.13l0.27,1.94l0.09,0.17l1.34,1.29l0.4,1.83l-5.14,-0.01l-0.22,0.09l-1.53,1.63l-1.52,-0.56l-0.76,-1.88l-1.93,-2.03l-0.25,-0.09l-4.6,0.5l-4.05,0.05l-3.1,0.33l0.77,-2.53l3.48,-1.33l0.19,-0.33l-0.21,-1.24l-0.19,-0.23l-1.01,-0.37l-0.06,-2.18l-0.17,-0.26l-2.32,-1.16l-0.96,-1.57l-0.56,-0.65l3.16,1.05l0.14,0.01l2.45,-0.4l1.44,0.33l0.3,-0.1l0.4,-0.47l1.58,0.22l0.14,-0.01l3.25,-1.14l0.2,-0.27l0.08,-2.23l1.23,-1.38l1.73,0.0l0.28,-0.2l0.22,-0.61l1.68,-0.32l0.86,0.24l0.27,-0.05l0.98,-0.78l0.11,-0.26l-0.13,-1.57l0.96,-1.52l1.51,-0.67l0.14,-0.41l-0.74,-1.4l1.86,0.07l0.26,-0.13l0.69,-1.01l0.05,-0.2l-0.09,-0.94l1.14,-1.09l0.09,-0.28l-0.29,-1.41l-0.51,-1.07l1.23,-1.05l2.6,-0.58l2.86,-0.33l1.33,-0.54l1.3,-0.29Z",name:"Pakistan"},PH:{path:"M737.11,263.82l0.25,1.66l0.14,1.34l-0.54,1.46l-0.64,-1.79l-0.5,-0.1l-1.17,1.28l-0.05,0.32l0.74,1.71l-0.49,0.81l-2.6,-1.28l-0.61,-1.57l0.68,-1.07l-0.07,-0.4l-1.59,-1.19l-0.42,0.06l-0.69,0.91l-1.01,-0.08l-0.21,0.06l-1.58,1.2l-0.17,-0.3l0.87,-1.88l1.48,-0.66l1.18,-0.81l0.71,0.92l0.34,0.1l1.9,-0.69l0.18,-0.18l0.34,-0.94l1.57,-0.06l0.29,-0.32l-0.1,-1.38l1.41,0.83l0.36,2.06ZM734.94,254.42l0.56,2.24l-1.41,-0.49l-0.4,0.3l0.07,0.94l0.51,1.3l-0.54,0.26l-0.08,-1.34l-0.25,-0.28l-0.56,-0.1l-0.23,-0.91l1.03,0.14l0.34,-0.31l-0.03,-0.96l-0.06,-0.18l-1.14,-1.44l1.62,0.04l0.57,0.78ZM724.68,238.33l1.48,0.71l0.33,-0.04l0.44,-0.38l0.05,0.13l-0.37,0.97l0.01,0.23l0.81,1.75l-0.59,1.92l-1.37,0.79l-0.14,0.2l-0.39,2.07l0.01,0.14l0.56,2.04l0.23,0.21l1.33,0.28l0.14,-0.0l1.0,-0.27l2.82,1.28l-0.2,1.16l0.12,0.29l0.66,0.5l-0.13,0.56l-1.54,-0.99l-0.89,-1.29l-0.49,0.0l-0.44,0.65l-1.34,-1.28l-0.26,-0.08l-2.18,0.36l-0.96,-0.44l0.09,-0.72l0.69,-0.57l-0.01,-0.47l-0.75,-0.59l-0.47,0.14l-0.15,0.43l-0.86,-1.02l-0.34,-1.02l-0.07,-1.74l0.49,0.41l0.49,-0.21l0.26,-3.99l0.73,-2.1l1.23,0.0ZM731.12,258.92l-0.82,0.75l-0.83,1.64l-0.52,0.5l-1.17,-1.33l0.36,-0.47l0.62,-0.7l0.07,-0.15l0.24,-1.35l0.73,-0.08l-0.31,1.29l0.16,0.34l0.37,-0.09l1.21,-1.6l-0.12,1.24ZM726.66,255.58l0.85,0.45l0.14,0.03l1.28,-0.0l-0.03,0.62l-1.04,0.96l-1.15,0.55l-0.05,-0.71l0.17,-1.26l-0.01,-0.13l-0.16,-0.51ZM724.92,252.06l-0.45,1.5l-0.7,-0.83l-0.95,-1.43l1.44,0.06l0.67,0.7ZM717.48,261.28l-1.87,1.35l0.21,-0.3l1.81,-1.57l1.5,-1.75l0.97,-1.84l0.23,1.08l-1.56,1.33l-1.29,1.7Z",name:"Philippines"},PL:{path:"M458.8,144.25l-0.96,-1.98l0.18,-1.06l-0.01,-0.15l-0.62,-1.8l-0.82,-1.11l0.56,-0.73l0.05,-0.28l-0.51,-1.51l1.48,-0.87l3.88,-1.58l3.06,-1.14l2.23,0.52l0.15,0.66l0.29,0.23l2.4,0.04l3.11,0.39l4.56,-0.05l1.12,0.32l0.51,0.89l0.1,1.45l0.03,0.12l0.66,1.23l-0.01,1.08l-1.33,0.61l-0.14,0.41l0.74,1.5l0.07,1.53l1.22,2.79l-0.19,0.66l-1.09,0.33l-0.14,0.09l-2.27,2.72l-0.04,0.31l0.35,0.8l-2.22,-1.16l-0.21,-0.02l-1.72,0.44l-1.1,-0.31l-0.21,0.02l-1.3,0.61l-1.11,-1.02l-0.32,-0.05l-0.81,0.35l-1.15,-1.61l-0.21,-0.12l-1.65,-0.17l-0.19,-0.82l-0.23,-0.23l-1.72,-0.37l-0.34,0.17l-0.25,0.56l-0.88,-0.44l0.12,-0.69l-0.25,-0.35l-1.78,-0.27l-1.08,-0.97Z",name:"Poland"},ZM:{path:"M502.81,308.32l1.09,1.04l0.58,1.94l-0.39,0.66l-0.5,2.05l-0.0,0.14l0.45,1.95l-0.69,0.77l-0.06,0.11l-0.76,2.37l0.15,0.36l0.62,0.31l-6.85,1.9l-0.22,0.33l0.2,1.54l-1.62,0.3l-0.12,0.05l-1.43,1.02l-0.11,0.15l-0.25,0.73l-0.73,0.17l-0.14,0.08l-2.18,2.12l-1.33,1.6l-0.65,0.05l-0.83,-0.29l-2.75,-0.28l-0.24,-0.1l-0.15,-0.27l-0.99,-0.58l-0.12,-0.04l-1.73,-0.14l-1.88,0.54l-1.5,-1.48l-1.61,-2.01l0.11,-7.73l4.92,0.03l0.29,-0.37l-0.19,-0.79l0.34,-0.86l0.0,-0.21l-0.41,-1.11l0.26,-1.14l-0.01,-0.16l-0.12,-0.36l0.18,0.01l0.1,0.56l0.31,0.25l1.14,-0.06l1.44,0.21l0.76,1.05l0.19,0.12l2.01,0.35l0.19,-0.03l1.24,-0.65l0.44,1.03l0.22,0.18l1.81,0.34l0.85,0.99l1.02,1.39l0.24,0.12l1.92,0.02l0.3,-0.32l-0.21,-2.74l-0.47,-0.23l-0.53,0.36l-1.58,-0.89l-0.51,-0.34l0.29,-2.36l0.44,-2.99l-0.03,-0.18l-0.5,-0.99l0.61,-1.38l0.53,-0.24l3.26,-0.41l0.89,0.23l1.01,0.62l1.04,0.44l1.6,0.43l1.35,0.72Z",name:"Zambia"},EE:{path:"M482.19,120.88l0.23,-1.68l-0.43,-0.31l-0.75,0.37l-1.34,-1.1l-0.18,-1.75l2.92,-0.95l3.07,-0.53l2.66,0.6l2.48,-0.1l0.18,0.31l-1.65,1.96l-0.06,0.26l0.71,3.25l-0.88,0.94l-1.85,-0.01l-2.08,-1.3l-1.14,-0.47l-0.2,-0.01l-1.69,0.51Z",name:"Estonia"},EG:{path:"M508.07,208.8l-0.66,1.06l-0.53,2.03l-0.64,1.32l-0.32,0.26l-1.74,-1.85l-1.77,-3.86l-0.48,-0.09l-0.26,0.25l-0.07,0.32l1.04,2.88l1.55,2.76l1.89,4.18l0.94,1.48l0.83,1.54l2.08,2.73l-0.3,0.28l-0.1,0.23l0.08,1.72l0.11,0.22l2.91,2.37l-28.78,0.0l0.0,-19.06l-0.73,-2.2l0.61,-1.59l0.0,-0.2l-0.34,-1.04l0.73,-1.08l3.13,-0.04l2.36,0.72l2.48,0.81l1.15,0.43l0.23,-0.01l1.93,-0.87l1.02,-0.78l2.08,-0.21l1.59,0.31l0.62,1.24l0.52,0.03l0.46,-0.71l1.86,0.59l1.95,0.16l0.17,-0.04l0.92,-0.52l1.48,4.24Z",name:"Egypt"},ZA:{path:"M467.06,373.27l-0.13,-0.29l0.01,-1.58l-0.02,-0.12l-0.71,-1.64l0.59,-0.37l0.14,-0.26l-0.07,-2.13l-0.05,-0.15l-1.63,-2.58l-1.25,-2.31l-1.71,-3.37l0.88,-0.98l0.7,0.52l0.39,1.08l0.23,0.19l1.1,0.19l1.55,0.51l0.14,0.01l1.35,-0.2l0.11,-0.04l2.24,-1.39l0.14,-0.25l0.0,-9.4l0.16,0.09l1.39,2.38l-0.22,1.53l0.04,0.19l0.56,0.94l0.3,0.14l1.79,-0.27l0.16,-0.08l1.23,-1.18l1.17,-0.79l0.1,-0.12l0.57,-1.19l1.02,-0.52l0.9,0.28l1.16,0.73l0.14,0.05l2.04,0.13l0.13,-0.02l1.6,-0.62l0.18,-0.19l0.63,-1.93l1.18,-0.19l0.19,-0.12l0.78,-1.05l0.81,-1.71l2.18,-1.91l3.44,-1.88l0.89,0.02l1.17,0.43l0.21,-0.0l0.76,-0.29l1.07,0.21l1.15,3.55l0.63,1.82l-0.44,2.9l0.1,0.52l-0.74,-0.29l-0.18,-0.01l-0.72,0.19l-0.21,0.2l-0.22,0.74l-0.66,0.97l-0.05,0.18l0.02,0.93l0.09,0.21l1.49,1.46l0.27,0.08l1.47,-0.29l0.22,-0.18l0.43,-1.01l1.29,0.02l-0.51,1.63l-0.29,2.2l-0.59,1.12l-2.2,1.78l-1.06,1.39l-0.72,1.44l-1.39,1.93l-2.81,2.84l-1.75,1.65l-1.85,1.24l-2.55,1.06l-1.23,0.14l-0.24,0.18l-0.22,0.54l-1.27,-0.35l-0.2,0.01l-1.15,0.5l-2.62,-0.52l-0.12,0.0l-1.46,0.33l-0.98,-0.14l-0.16,0.02l-2.55,1.1l-2.11,0.44l-1.59,1.07l-0.93,0.06l-0.97,-0.92l-0.19,-0.08l-0.72,-0.04l-1.0,-1.16l-0.25,0.05ZM493.72,359.24l-1.12,-0.86l-0.31,-0.03l-1.23,0.59l-1.36,1.07l-1.39,1.78l0.01,0.38l1.88,2.11l0.31,0.09l0.9,-0.27l0.18,-0.15l0.4,-0.77l1.28,-0.39l0.18,-0.16l0.42,-0.88l0.76,-1.32l-0.05,-0.37l-0.87,-0.82Z",name:"South Africa"},EC:{path:"M220.2,293.48l1.25,-1.76l0.02,-0.31l-0.54,-1.09l-0.5,-0.06l-0.78,0.94l-1.03,-0.75l0.33,-0.46l0.05,-0.23l-0.38,-2.04l0.66,-0.28l0.17,-0.19l0.45,-1.52l0.93,-1.58l0.04,-0.2l-0.13,-0.78l1.19,-0.47l1.57,-0.91l2.35,1.34l0.17,0.04l0.28,-0.02l0.52,0.91l0.21,0.15l2.12,0.35l0.2,-0.03l0.55,-0.31l1.08,0.73l0.97,0.54l0.31,1.67l-0.71,1.49l-2.64,2.54l-2.95,0.97l-0.15,0.11l-1.53,2.18l-0.49,1.68l-1.1,0.8l-0.87,-1.05l-0.15,-0.1l-1.01,-0.27l-0.13,-0.0l-0.7,0.14l-0.03,-0.43l0.6,-0.5l0.1,-0.31l-0.26,-0.91Z",name:"Ecuador"},AL:{path:"M470.27,171.7l0.38,0.19l0.45,-0.18l0.4,0.61l0.11,0.1l0.46,0.24l0.13,0.87l-0.3,0.95l-0.0,0.17l0.36,1.28l0.12,0.17l0.9,0.63l-0.03,0.44l-0.67,0.35l-0.16,0.22l-0.14,0.88l-0.96,1.18l-0.06,-0.03l-0.04,-0.48l-0.12,-0.22l-1.28,-0.92l-0.19,-1.25l0.2,-1.96l0.33,-0.89l-0.06,-0.3l-0.36,-0.41l-0.13,-0.75l0.66,-0.9Z",name:"Albania"},AO:{path:"M461.62,299.93l0.55,1.67l0.73,1.54l1.56,2.18l0.28,0.12l1.66,-0.2l0.81,-0.34l1.28,0.33l0.33,-0.14l0.39,-0.67l0.56,-1.3l1.37,-0.09l0.27,-0.21l0.07,-0.23l0.67,-0.01l-0.13,0.53l0.29,0.37l2.74,-0.02l0.04,1.29l0.03,0.13l0.46,0.87l-0.35,1.52l0.18,1.55l0.07,0.16l0.75,0.85l-0.13,2.89l0.41,0.29l0.56,-0.21l1.11,0.05l1.5,-0.37l0.9,0.12l0.18,0.53l-0.27,1.15l0.01,0.17l0.4,1.08l-0.33,0.85l-0.01,0.18l0.12,0.51l-4.83,-0.03l-0.3,0.3l-0.12,8.13l0.07,0.19l1.69,2.1l1.27,1.25l-4.03,0.92l-5.93,-0.36l-1.66,-1.19l-0.18,-0.06l-10.15,0.11l-0.34,0.13l-1.35,-1.05l-0.17,-0.06l-1.62,-0.08l-1.6,0.45l-0.88,0.36l-0.17,-1.2l0.34,-2.19l0.85,-2.32l0.14,-1.13l0.79,-2.24l0.57,-1.0l1.42,-1.64l0.82,-1.15l0.05,-0.13l0.26,-1.88l-0.13,-1.51l-0.07,-0.16l-0.72,-0.87l-1.23,-2.91l0.09,-0.37l0.73,-0.95l0.05,-0.27l-1.27,-4.12l-1.19,-1.54l0.1,-0.2l0.86,-0.28l0.78,0.03l0.83,-0.29l7.12,0.03ZM451.81,298.94l-0.17,0.07l-0.5,-1.42l0.85,-0.92l0.53,-0.29l0.48,0.44l-0.56,0.32l-0.1,0.1l-0.41,0.65l-0.05,0.14l-0.07,0.91Z",name:"Angola"},KZ:{path:"M598.42,172.08l-1.37,0.54l-3.3,2.09l-0.11,0.12l-1.01,1.97l-0.56,0.01l-0.6,-1.24l-0.26,-0.17l-2.95,-0.09l-0.46,-2.22l-0.29,-0.24l-0.91,-0.02l0.17,-2.72l-0.12,-0.26l-3.0,-2.22l-0.2,-0.06l-4.29,0.24l-2.8,0.42l-2.36,-2.7l-6.4,-3.65l-0.23,-0.03l-6.45,1.83l-0.22,0.29l0.1,10.94l-0.84,0.1l-1.65,-2.21l-0.11,-0.09l-1.69,-0.84l-0.2,-0.02l-2.84,0.63l-0.14,0.07l-0.71,0.64l-0.02,-0.11l0.57,-1.17l0.0,-0.26l-0.48,-1.05l-0.17,-0.16l-2.78,-0.99l-1.08,-2.62l-0.13,-0.15l-1.24,-0.7l-0.04,-0.48l2.07,0.25l0.34,-0.29l0.09,-2.03l1.84,-0.44l2.12,0.45l0.36,-0.25l0.45,-3.04l-0.45,-2.06l-0.31,-0.23l-2.44,0.15l-2.07,-0.75l-0.23,0.01l-2.88,1.38l-2.21,0.62l-0.96,-0.38l0.22,-1.39l-0.06,-0.23l-1.6,-2.12l-0.25,-0.12l-1.72,0.08l-1.87,-1.91l1.33,-2.24l-0.06,-0.38l-0.55,-0.5l1.72,-3.08l2.3,1.7l0.48,-0.2l0.29,-2.26l4.99,-3.48l3.76,-0.08l5.46,2.27l2.96,1.33l0.26,-0.01l2.59,-1.36l3.82,-0.06l3.13,1.67l0.38,-0.09l0.63,-0.85l3.36,0.14l0.29,-0.19l0.63,-1.57l-0.13,-0.37l-3.64,-2.05l2.0,-1.36l0.1,-0.38l-0.32,-0.62l2.09,-0.76l0.13,-0.47l-1.65,-2.13l0.89,-0.91l9.27,-1.18l0.13,-0.05l1.17,-0.82l6.2,-1.27l2.26,-1.43l4.19,0.7l0.74,3.39l0.38,0.22l2.52,-0.81l2.9,1.06l-0.18,1.63l0.32,0.33l2.52,-0.23l5.0,-2.58l0.03,0.39l3.16,2.62l5.57,8.48l0.49,0.02l1.18,-1.53l3.22,1.78l0.21,0.03l3.5,-0.83l1.21,0.52l1.16,1.82l0.15,0.12l1.67,0.61l1.01,1.32l0.28,0.11l3.04,-0.41l1.1,1.64l-1.68,1.89l-1.97,0.28l-0.26,0.29l-0.12,3.09l-1.2,1.23l-4.81,-1.01l-0.35,0.2l-1.77,5.51l-1.14,0.62l-4.92,1.23l-0.2,0.41l2.14,5.06l-1.45,0.67l-0.17,0.31l0.15,1.28l-1.05,-0.3l-1.21,-1.04l-0.17,-0.07l-3.73,-0.32l-4.15,-0.08l-0.92,0.31l-3.46,-1.24l-0.22,0.01l-1.42,0.63l-0.17,0.21l-0.32,1.49l-3.82,-0.97l-0.15,0.0l-1.65,0.43l-0.2,0.17l-0.51,1.21Z",name:"Kazakhstan"},ET:{path:"M516.0,247.63l1.21,0.92l0.3,0.04l1.3,-0.53l0.46,0.41l0.19,0.08l1.65,0.03l2.05,0.96l0.67,0.88l1.07,0.79l1.0,1.45l0.7,0.68l-0.72,0.92l-0.85,1.19l-0.04,0.25l0.19,0.67l0.04,0.74l0.29,0.28l1.4,0.04l0.55,-0.15l0.23,0.19l-0.41,0.67l0.01,0.32l0.92,1.39l0.93,1.23l0.99,0.94l0.1,0.06l8.19,2.99l1.51,0.01l-6.51,6.95l-3.14,0.11l-0.18,0.06l-2.15,1.71l-1.51,0.04l-0.22,0.1l-0.6,0.69l-1.46,-0.0l-0.93,-0.78l-0.32,-0.04l-2.29,1.05l-0.12,0.1l-0.64,0.9l-1.44,-0.17l-0.51,-0.26l-0.17,-0.03l-0.56,0.07l-0.68,-0.02l-3.1,-2.08l-0.17,-0.05l-1.62,0.0l-0.68,-0.65l0.0,-1.28l-0.21,-0.29l-1.19,-0.38l-1.42,-2.63l-0.13,-0.12l-1.05,-0.53l-0.46,-1.0l-1.27,-1.23l-0.17,-0.08l-1.08,-0.13l0.53,-0.9l1.17,-0.05l0.26,-0.17l0.37,-0.77l0.03,-0.14l-0.03,-2.23l0.7,-2.49l1.08,-0.65l0.14,-0.19l0.24,-1.0l1.03,-1.85l1.47,-1.22l0.09,-0.12l1.02,-2.51l0.36,-1.96l2.62,0.48l0.33,-0.18l0.63,-1.55Z",name:"Ethiopia"},ZW:{path:"M498.95,341.2l-1.16,-0.23l-0.16,0.01l-0.74,0.28l-1.11,-0.41l-1.02,-0.04l-1.52,-1.13l-0.12,-0.05l-1.79,-0.37l-0.65,-1.46l-0.01,-0.86l-0.22,-0.29l-0.99,-0.26l-2.74,-2.77l-0.77,-1.46l-0.52,-0.5l-0.72,-1.54l2.24,0.23l0.78,0.28l0.12,0.02l0.85,-0.06l0.21,-0.11l1.38,-1.66l2.11,-2.05l0.81,-0.18l0.22,-0.2l0.27,-0.8l1.29,-0.93l1.53,-0.28l0.11,0.66l0.3,0.25l2.02,-0.05l1.04,0.48l0.5,0.59l0.18,0.1l1.13,0.18l1.11,0.7l0.01,3.06l-0.49,1.82l-0.11,1.94l0.03,0.16l0.35,0.68l-0.24,1.3l-0.27,0.17l-0.12,0.15l-0.64,1.83l-2.49,2.8Z",name:"Zimbabwe"},ES:{path:"M398.67,172.8l0.09,-1.45l-0.06,-0.2l-0.82,-1.05l3.16,-1.96l3.01,0.54l3.33,-0.02l2.64,0.52l2.14,-0.15l3.9,0.1l0.91,1.08l0.14,0.09l4.61,1.38l0.26,-0.04l0.77,-0.55l2.66,1.29l0.17,0.03l2.59,-0.35l0.1,1.28l-2.2,1.85l-3.13,0.62l-0.23,0.23l-0.21,0.92l-1.54,1.68l-0.97,2.4l0.02,0.26l0.85,1.46l-1.27,1.14l-0.09,0.14l-0.5,1.73l-1.73,0.53l-0.15,0.1l-1.68,2.1l-3.03,0.04l-2.38,-0.05l-0.17,0.05l-1.57,1.01l-0.9,1.01l-0.96,-0.19l-0.82,-0.86l-0.69,-1.6l-0.22,-0.18l-2.14,-0.41l-0.13,-0.62l0.83,-0.97l0.39,-0.86l-0.06,-0.33l-0.73,-0.73l0.63,-1.74l-0.02,-0.25l-0.8,-1.41l0.69,-0.15l0.23,-0.27l0.09,-1.29l0.33,-0.36l0.08,-0.2l0.03,-2.16l1.03,-0.72l0.1,-0.37l-0.7,-1.5l-0.25,-0.17l-1.46,-0.11l-0.22,0.07l-0.34,0.3l-1.17,0.0l-0.55,-1.29l-0.39,-0.16l-1.02,0.44l-0.45,0.36Z",name:"Spain"},ER:{path:"M527.15,253.05l-0.77,-0.74l-1.01,-1.47l-1.14,-0.86l-0.62,-0.84l-0.11,-0.09l-2.18,-1.02l-0.12,-0.03l-1.61,-0.03l-0.52,-0.46l-0.31,-0.05l-1.31,0.54l-1.38,-1.06l-0.46,0.12l-0.69,1.68l-2.49,-0.46l-0.2,-0.76l1.06,-3.69l0.24,-1.65l0.66,-0.66l1.76,-0.4l0.16,-0.1l0.97,-1.13l1.24,2.55l0.68,2.34l0.09,0.14l1.4,1.27l3.39,2.4l1.37,1.43l2.14,2.34l0.94,0.6l-0.32,0.26l-0.85,-0.17Z",name:"Eritrea"},ME:{path:"M469.05,172.9l-0.57,-0.8l-0.1,-0.09l-0.82,-0.46l0.16,-0.33l0.35,-1.57l0.72,-0.62l0.27,-0.16l0.48,0.38l0.35,0.4l0.12,0.08l0.79,0.32l0.66,0.43l-0.43,0.62l-0.28,0.11l-0.07,-0.25l-0.53,-0.1l-1.09,1.49l-0.05,0.23l0.06,0.32Z",name:"Montenegro"},MD:{path:"M488.2,153.75l0.14,-0.11l1.49,-0.28l1.75,0.95l1.06,0.14l0.92,0.7l-0.15,0.9l0.15,0.31l0.8,0.46l0.33,1.2l0.09,0.14l0.72,0.66l-0.11,0.28l0.1,0.33l-0.06,0.02l-1.25,-0.08l-0.17,-0.29l-0.39,-0.12l-0.52,0.25l-0.16,0.36l0.13,0.42l-0.6,0.88l-0.43,1.03l-0.22,0.12l-0.32,-1.0l0.25,-1.34l-0.08,-1.38l-0.06,-0.17l-1.43,-1.87l-0.81,-1.36l-0.78,-0.95l-0.12,-0.09l-0.29,-0.12Z",name:"Moldova"},MG:{path:"M544.77,316.45l0.64,1.04l0.6,1.62l0.4,3.04l0.63,1.21l-0.22,1.07l-0.15,0.26l-0.59,-1.05l-0.52,-0.01l-0.47,0.76l-0.04,0.23l0.46,1.84l-0.19,0.92l-0.61,0.53l-0.1,0.21l-0.16,2.15l-0.97,2.98l-1.24,3.59l-1.55,4.97l-0.96,3.67l-1.08,2.93l-1.94,0.61l-2.05,1.06l-3.2,-1.53l-0.62,-1.26l-0.18,-2.39l-0.87,-2.07l-0.22,-1.8l0.4,-1.69l1.01,-0.4l0.19,-0.28l0.01,-0.79l1.15,-1.91l0.04,-0.11l0.23,-1.66l-0.03,-0.17l-0.57,-1.21l-0.46,-1.58l-0.19,-2.25l0.82,-1.36l0.33,-1.51l1.11,-0.1l1.4,-0.53l0.9,-0.45l1.03,-0.03l0.21,-0.09l1.41,-1.45l2.12,-1.65l0.75,-1.29l0.03,-0.24l-0.17,-0.56l0.53,0.15l0.32,-0.1l1.38,-1.77l0.06,-0.18l0.04,-1.44l0.54,-0.74l0.62,0.77Z",name:"Madagascar"},MA:{path:"M378.66,230.13l0.07,-0.75l0.93,-0.72l0.82,-1.37l0.04,-0.21l-0.14,-0.8l0.8,-1.74l1.33,-1.61l0.79,-0.4l0.14,-0.15l0.66,-1.55l0.08,-1.46l0.83,-1.52l1.6,-0.94l0.11,-0.11l1.56,-2.71l1.2,-0.99l2.24,-0.29l0.17,-0.08l1.95,-1.83l1.3,-0.77l2.09,-2.28l0.07,-0.26l-0.61,-3.34l0.92,-2.3l0.33,-1.44l1.52,-1.79l2.48,-1.27l1.86,-1.16l0.1,-0.11l1.67,-2.93l0.72,-1.59l1.54,0.01l1.43,1.14l0.21,0.06l2.33,-0.19l2.55,0.62l0.97,0.03l0.83,1.6l0.15,1.71l0.86,2.96l0.09,0.14l0.5,0.45l-0.31,0.73l-3.11,0.44l-0.16,0.07l-1.07,0.97l-1.36,0.23l-0.25,0.28l-0.1,1.85l-2.74,1.02l-0.14,0.11l-0.9,1.3l-1.93,0.69l-2.56,0.44l-4.04,2.01l-0.17,0.27l0.02,2.91l-0.08,0.0l-0.3,0.31l0.05,1.15l-1.25,0.07l-0.16,0.06l-0.73,0.55l-0.98,0.0l-0.85,-0.33l-0.15,-0.02l-2.11,0.29l-0.24,0.19l-0.76,1.95l-0.63,0.16l-0.21,0.19l-1.15,3.29l-3.42,2.81l-0.1,0.17l-0.81,3.57l-0.98,1.12l-0.3,0.85l-5.13,0.19Z",name:"Morocco"},UZ:{path:"M587.83,186.48l0.06,-1.46l-0.19,-0.29l-3.31,-1.24l-2.57,-1.4l-1.63,-1.38l-2.79,-1.98l-1.2,-2.98l-0.12,-0.14l-0.84,-0.54l-0.18,-0.05l-2.61,0.13l-0.76,-0.48l-0.25,-2.25l-0.17,-0.24l-3.37,-1.6l-0.32,0.04l-2.08,1.73l-2.11,1.02l-0.16,0.35l0.31,1.14l-2.14,0.03l-0.09,-10.68l6.1,-1.74l6.25,3.57l2.36,2.72l0.27,0.1l2.92,-0.44l4.17,-0.23l2.78,2.06l-0.18,2.87l0.29,0.32l0.98,0.02l0.46,2.22l0.28,0.24l3.0,0.09l0.61,1.25l0.28,0.17l0.93,-0.02l0.26,-0.16l1.06,-2.06l3.21,-2.03l1.3,-0.5l0.19,0.08l-1.75,1.62l0.05,0.48l1.85,1.12l0.27,0.02l1.65,-0.69l2.4,1.27l-2.69,1.79l-1.79,-0.27l-0.89,0.06l-0.22,-0.52l0.48,-1.26l-0.34,-0.4l-3.35,0.69l-0.22,0.18l-0.78,1.87l-1.07,1.47l-1.93,-0.13l-0.29,0.16l-0.65,1.29l0.16,0.42l1.69,0.64l0.48,1.91l-1.25,2.6l-1.64,-0.53l-1.18,-0.03Z",name:"Uzbekistan"},MM:{path:"M670.1,233.39l-1.46,1.11l-1.68,0.11l-0.26,0.19l-1.1,2.7l-0.95,0.42l-0.14,0.42l1.21,2.27l1.61,1.92l0.94,1.55l-0.82,1.99l-0.77,0.42l-0.13,0.39l0.64,1.35l1.62,1.97l0.26,1.32l-0.04,1.15l0.02,0.13l0.92,2.18l-1.3,2.23l-0.79,1.69l-0.1,-0.77l0.74,-1.87l-0.02,-0.26l-0.8,-1.42l0.2,-2.68l-0.06,-0.2l-0.98,-1.27l-0.8,-2.98l-0.45,-3.22l-1.11,-2.22l-0.45,-0.1l-1.64,1.28l-2.74,1.76l-1.26,-0.2l-1.27,-0.49l0.79,-2.93l0.0,-0.14l-0.52,-2.42l-1.93,-2.97l0.26,-0.8l-0.22,-0.39l-1.37,-0.31l-1.65,-1.98l-0.12,-1.5l0.41,0.19l0.42,-0.26l0.05,-1.7l1.08,-0.54l0.16,-0.34l-0.24,-1.0l0.5,-0.79l0.05,-0.15l0.08,-2.35l1.58,0.49l0.36,-0.15l1.12,-2.19l0.15,-1.34l1.35,-2.18l0.04,-0.17l-0.07,-1.35l2.97,-1.71l1.67,0.45l0.38,-0.33l-0.18,-1.46l0.7,-0.4l0.15,-0.32l-0.13,-0.72l0.94,-0.13l0.74,1.41l0.11,0.12l0.95,0.56l0.07,1.89l-0.09,2.08l-2.28,2.15l-0.09,0.19l-0.3,3.15l0.35,0.32l2.37,-0.39l0.53,2.17l0.2,0.21l1.3,0.42l-0.63,1.9l0.14,0.36l1.86,0.99l1.1,0.49l0.24,0.0l1.45,-0.6l0.04,0.51l-2.01,1.6l-0.56,0.96l-1.34,0.56Z",name:"Myanmar"},ML:{path:"M390.79,248.2l0.67,-0.37l0.14,-0.18l0.36,-1.31l0.51,-0.04l1.68,0.69l0.21,0.0l1.34,-0.48l0.89,0.16l0.3,-0.13l0.29,-0.44l9.89,-0.04l0.29,-0.21l0.56,-1.8l-0.11,-0.33l-0.33,-0.24l-2.37,-22.1l3.41,-0.04l8.37,5.73l8.38,5.68l0.56,1.15l0.14,0.14l1.56,0.75l0.99,0.36l0.03,1.45l0.33,0.29l2.45,-0.22l0.01,5.52l-1.3,1.64l-0.06,0.15l-0.18,1.37l-1.99,0.36l-3.4,0.22l-0.19,0.09l-0.85,0.83l-1.48,0.09l-1.49,0.01l-0.54,-0.43l-0.26,-0.05l-1.38,0.36l-2.39,1.08l-0.13,0.12l-0.44,0.73l-1.88,1.11l-0.11,0.12l-0.3,0.57l-0.86,0.42l-1.1,-0.31l-0.28,0.07l-0.69,0.62l-0.09,0.16l-0.35,1.66l-1.93,2.04l-0.08,0.23l0.05,0.76l-0.63,0.99l-0.04,0.19l0.14,1.23l-0.81,0.29l-0.32,0.17l-0.27,-0.75l-0.39,-0.18l-0.65,0.26l-0.36,-0.04l-0.29,0.14l-0.37,0.6l-1.69,-0.02l-0.63,-0.34l-0.32,0.02l-0.12,0.09l-0.47,-0.45l0.1,-0.6l-0.09,-0.27l-0.31,-0.3l-0.33,-0.05l-0.05,0.02l0.02,-0.21l0.46,-0.59l-0.02,-0.39l-0.99,-1.02l-0.34,-0.74l-0.56,-0.56l-0.17,-0.09l-0.5,-0.07l-0.19,0.04l-0.58,0.35l-0.79,0.33l-0.65,0.51l-0.85,-0.16l-0.63,-0.59l-0.14,-0.07l-0.41,-0.08l-0.2,0.03l-0.59,0.31l-0.07,0.0l-0.1,-0.63l0.11,-0.85l-0.21,-0.98l-0.11,-0.17l-0.86,-0.66l-0.45,-1.34l-0.1,-1.36Z",name:"Mali"},MN:{path:"M641.06,150.59l2.41,-0.53l4.76,-2.8l3.67,-1.49l2.06,0.96l0.12,0.03l2.5,0.05l1.59,1.45l0.19,0.08l2.47,0.12l3.59,0.81l0.27,-0.07l2.43,-2.28l0.06,-0.36l-0.93,-1.77l2.33,-3.1l2.66,1.3l2.26,0.39l2.75,0.8l0.44,2.3l0.19,0.22l3.56,1.38l0.18,0.01l2.35,-0.6l3.1,-0.42l2.4,0.41l2.37,1.52l1.49,1.63l0.23,0.1l2.29,-0.03l3.13,0.52l0.15,-0.01l2.28,-0.79l3.27,-0.53l0.11,-0.04l3.56,-2.23l1.31,0.31l1.26,1.05l0.22,0.07l2.45,-0.22l-0.98,1.96l-1.77,3.21l-0.01,0.28l0.64,1.31l0.35,0.16l1.35,-0.38l2.4,0.48l0.22,-0.04l1.78,-1.09l1.82,0.92l2.11,2.07l-0.17,0.68l-1.79,-0.31l-3.74,0.45l-1.85,0.96l-1.78,2.01l-3.74,1.18l-2.46,1.61l-2.45,-0.6l-1.42,-0.28l-0.31,0.13l-1.31,1.99l0.0,0.33l0.78,1.15l0.3,0.74l-1.58,0.93l-1.75,1.59l-2.83,1.03l-3.77,0.12l-4.05,1.05l-2.81,1.54l-0.95,-0.8l-0.19,-0.07l-2.96,0.0l-3.64,-1.8l-2.55,-0.48l-3.38,0.41l-5.13,-0.67l-2.66,0.06l-1.35,-1.65l-1.12,-2.78l-0.21,-0.18l-1.5,-0.33l-2.98,-1.89l-0.12,-0.04l-3.37,-0.43l-2.84,-0.51l-0.75,-1.13l0.93,-3.54l-0.04,-0.24l-1.73,-2.55l-0.15,-0.12l-3.52,-1.18l-1.99,-1.61l-0.54,-1.85Z",name:"Mongolia"},MK:{path:"M472.73,173.87l0.08,0.01l0.32,-0.25l0.08,-0.44l1.29,-0.41l1.37,-0.28l1.03,-0.04l1.06,0.82l0.14,1.59l-0.22,0.04l-0.17,0.11l-0.32,0.4l-1.2,-0.05l-0.18,0.05l-0.9,0.61l-1.45,0.23l-0.85,-0.59l-0.3,-1.09l0.22,-0.71Z",name:"Macedonia"},MW:{path:"M507.18,313.84l-0.67,1.85l-0.01,0.16l0.7,3.31l0.31,0.24l0.75,-0.03l0.78,0.71l0.99,1.75l0.2,3.03l-0.91,0.45l-0.14,0.15l-0.59,1.38l-1.24,-1.21l-0.17,-1.62l0.49,-1.12l0.02,-0.16l-0.15,-1.03l-0.13,-0.21l-0.99,-0.65l-0.26,-0.03l-0.53,0.18l-1.31,-1.12l-1.15,-0.59l0.66,-2.06l0.75,-0.84l0.07,-0.27l-0.47,-2.04l0.48,-1.94l0.4,-0.65l0.03,-0.24l-0.64,-2.15l-0.08,-0.13l-0.44,-0.42l1.34,0.26l1.25,1.73l0.67,3.3Z",name:"Malawi"},MR:{path:"M390.54,247.66l-1.48,-1.58l-1.51,-1.88l-0.12,-0.09l-1.64,-0.67l-1.17,-0.74l-0.17,-0.05l-1.4,0.03l-0.12,0.03l-1.14,0.52l-1.15,-0.21l-0.26,0.08l-0.44,0.43l-0.11,-0.72l0.68,-1.29l0.31,-2.43l-0.28,-2.63l-0.29,-1.27l0.24,-1.24l-0.03,-0.2l-0.65,-1.24l-1.19,-1.05l0.32,-0.51l9.64,0.02l0.3,-0.34l-0.46,-3.71l0.51,-1.12l2.17,-0.22l0.27,-0.3l-0.08,-6.5l7.91,0.13l0.31,-0.3l0.01,-3.5l8.17,5.63l-2.89,0.04l-0.29,0.33l2.42,22.56l0.12,0.21l0.26,0.19l-0.43,1.38l-9.83,0.04l-0.25,0.13l-0.27,0.41l-0.77,-0.14l-0.15,0.01l-1.3,0.47l-1.64,-0.67l-0.14,-0.02l-0.79,0.06l-0.27,0.22l-0.39,1.39l-0.53,0.29Z",name:"Mauritania"},UG:{path:"M500.74,287.17l-2.84,-0.02l-0.92,0.32l-1.37,0.71l-0.29,-0.12l0.02,-1.6l0.54,-0.89l0.04,-0.13l0.14,-1.96l0.49,-1.09l0.91,-1.24l0.97,-0.68l0.8,-0.89l-0.13,-0.49l-0.79,-0.27l0.13,-2.55l0.78,-0.52l1.45,0.51l0.18,0.01l1.97,-0.57l1.72,0.01l0.18,-0.06l1.29,-0.97l0.98,1.44l0.29,1.24l1.05,2.75l-0.84,1.68l-1.94,2.66l-0.06,0.18l0.02,2.36l-4.8,0.18Z",name:"Uganda"},MY:{path:"M717.6,273.52l-1.51,0.7l-2.13,-0.41l-2.88,-0.0l-0.29,0.21l-0.84,2.77l-0.9,0.82l-0.08,0.12l-1.23,3.34l-1.81,0.47l-2.29,-0.68l-0.14,-0.01l-1.2,0.22l-0.14,0.07l-1.36,1.18l-1.47,-0.17l-0.12,0.01l-1.46,0.46l-1.51,-1.25l-0.24,-0.97l1.26,0.59l0.2,0.02l1.93,-0.47l0.22,-0.22l0.47,-1.98l0.9,-0.4l2.97,-0.54l0.17,-0.09l1.8,-1.98l1.02,-1.32l0.9,1.03l0.48,-0.04l0.43,-0.7l1.02,0.07l0.32,-0.27l0.25,-2.72l1.84,-1.67l1.23,-1.89l0.73,-0.01l1.12,1.11l0.1,0.99l0.18,0.24l1.66,0.71l1.85,0.67l-0.09,0.51l-1.45,0.11l-0.26,0.4l0.35,0.97ZM673.78,269.53l0.17,1.14l0.35,0.25l1.65,-0.3l0.18,-0.11l0.68,-0.86l0.31,0.13l1.41,1.45l0.99,1.59l0.13,1.57l-0.26,1.09l0.0,0.15l0.24,0.84l0.18,1.46l0.11,0.2l0.82,0.64l0.92,2.08l-0.03,0.52l-1.4,0.13l-2.29,-1.79l-2.86,-1.92l-0.27,-1.16l-0.07,-0.13l-1.39,-1.61l-0.33,-1.99l-0.05,-0.12l-0.84,-1.27l0.26,-1.72l-0.03,-0.18l-0.45,-0.87l0.13,-0.13l1.71,0.92Z",name:"Malaysia"},MX:{path:"M133.41,213.83l0.61,0.09l0.27,-0.09l0.93,-1.01l0.08,-0.18l0.09,-1.22l-0.09,-0.23l-1.93,-1.94l-1.46,-0.77l-2.96,-5.62l-0.86,-2.1l2.44,-0.18l2.68,-0.25l-0.03,0.08l0.17,0.4l3.79,1.35l5.81,1.97l6.96,-0.02l0.3,-0.3l0.0,-0.84l3.91,0.0l0.87,0.93l1.27,0.87l1.44,1.17l0.79,1.37l0.62,1.49l0.12,0.14l1.35,0.85l2.08,0.82l0.35,-0.1l1.49,-2.04l1.81,-0.05l1.63,1.01l1.21,1.8l0.86,1.58l1.47,1.55l0.53,1.82l0.73,1.32l0.14,0.13l1.98,0.84l1.78,0.59l0.61,-0.03l-0.78,1.89l-0.45,1.96l-0.19,3.58l-0.24,1.27l0.01,0.14l0.43,1.43l0.78,1.31l0.49,1.98l0.06,0.12l1.63,1.9l0.61,1.51l0.98,1.28l0.16,0.11l2.58,0.67l0.98,1.02l0.31,0.08l2.17,-0.71l1.91,-0.26l1.87,-0.47l1.67,-0.49l1.59,-1.06l0.11,-0.14l0.6,-1.52l0.22,-2.21l0.35,-0.62l1.58,-0.64l2.59,-0.59l2.18,0.09l1.43,-0.2l0.39,0.36l-0.07,1.02l-1.28,1.48l-0.65,1.68l0.07,0.32l0.33,0.32l-0.79,2.49l-0.28,-0.3l-0.24,-0.09l-1.0,0.08l-0.24,0.15l-0.74,1.28l-0.19,-0.13l-0.28,-0.03l-0.3,0.12l-0.19,0.29l0.0,0.06l-4.34,-0.02l-0.3,0.3l-0.0,1.16l-0.83,0.0l-0.28,0.19l0.08,0.33l0.93,0.86l0.9,0.58l0.24,0.48l0.16,0.15l0.2,0.08l-0.03,0.38l-2.94,0.01l-0.26,0.15l-1.21,2.09l0.02,0.33l0.25,0.33l-0.21,0.44l-0.04,0.22l-2.42,-2.35l-1.36,-0.87l-2.04,-0.67l-0.13,-0.01l-1.4,0.19l-2.07,0.98l-1.14,0.23l-1.72,-0.66l-1.85,-0.48l-2.31,-1.16l-1.92,-0.38l-2.79,-1.18l-2.04,-1.2l-0.6,-0.66l-0.19,-0.1l-1.37,-0.15l-2.45,-0.78l-1.07,-1.18l-2.63,-1.44l-1.2,-1.56l-0.44,-0.93l0.5,-0.15l0.2,-0.39l-0.2,-0.58l0.46,-0.55l0.07,-0.19l0.01,-0.91l-0.06,-0.18l-0.81,-1.13l-0.25,-1.08l-0.86,-1.36l-2.21,-2.63l-2.53,-2.09l-1.2,-1.63l-0.11,-0.09l-2.08,-1.06l-0.34,-0.48l0.35,-1.53l-0.16,-0.34l-1.24,-0.61l-1.39,-1.23l-0.6,-1.81l-0.24,-0.2l-1.25,-0.2l-1.38,-1.35l-1.11,-1.25l-0.1,-0.76l-0.05,-0.13l-1.33,-2.04l-0.85,-2.02l0.04,-0.99l-0.14,-0.27l-1.81,-1.1l-0.2,-0.04l-0.74,0.11l-1.34,-0.72l-0.42,0.16l-0.4,1.12l-0.0,0.19l0.41,1.3l0.24,2.04l0.06,0.15l0.88,1.16l1.84,1.86l0.4,0.61l0.12,0.1l0.27,0.14l0.29,0.82l0.31,0.2l0.2,-0.02l0.43,1.51l0.09,0.14l0.72,0.65l0.51,0.91l1.58,1.4l0.8,2.42l0.77,1.23l0.66,1.19l0.13,1.34l0.28,0.27l1.08,0.08l0.92,1.1l0.83,1.08l-0.03,0.24l-0.88,0.81l-0.13,-0.0l-0.59,-1.42l-0.07,-0.11l-1.67,-1.53l-1.81,-1.28l-1.15,-0.61l0.07,-1.85l-0.38,-1.45l-0.12,-0.17l-2.91,-2.03l-0.39,0.04l-0.11,0.11l-0.42,-0.46l-0.11,-0.08l-1.49,-0.63l-1.09,-1.16Z",name:"Mexico"},VU:{path:"M839.92,325.66l0.78,0.73l-0.18,0.07l-0.6,-0.8ZM839.13,322.74l0.27,1.36l-0.13,-0.06l-0.21,-0.02l-0.29,0.08l-0.22,-0.43l-0.03,-1.32l0.61,0.4Z",name:"Vanuatu"},FR:{path:"M444.58,172.63l-0.68,1.92l-0.72,-0.38l-0.51,-1.79l0.43,-0.95l1.15,-0.83l0.33,2.04ZM429.71,147.03l1.77,1.57l0.26,0.07l1.16,-0.23l2.12,1.44l0.56,0.28l0.16,0.03l0.61,-0.06l1.09,0.78l0.13,0.05l3.18,0.53l-1.09,1.94l-0.3,2.16l-0.48,0.38l-1.0,-0.26l-0.37,0.32l0.07,0.66l-1.73,1.68l-0.09,0.21l-0.04,1.42l0.41,0.29l0.96,-0.4l0.67,1.07l-0.09,0.78l0.04,0.19l0.61,0.97l-0.71,0.78l-0.07,0.28l0.65,2.39l0.21,0.21l1.09,0.31l-0.2,0.95l-2.08,1.58l-4.81,-0.8l-0.13,0.01l-3.65,0.99l-0.22,0.24l-0.25,1.6l-2.59,0.35l-2.74,-1.33l-0.31,0.03l-0.79,0.57l-4.38,-1.31l-0.79,-0.94l1.16,-1.64l0.05,-0.15l0.48,-6.17l-0.06,-0.21l-2.58,-3.3l-1.89,-1.65l-0.11,-0.06l-3.64,-1.17l-0.2,-1.88l2.92,-0.63l4.14,0.82l0.35,-0.36l-0.65,-3.0l1.77,1.05l0.27,0.02l5.83,-2.54l0.17,-0.19l0.71,-2.54l1.75,-0.53l0.27,0.88l0.27,0.21l1.04,0.05l1.08,1.23ZM289.1,278.45l-0.85,0.84l-0.88,0.13l-0.25,-0.51l-0.21,-0.16l-0.56,-0.1l-0.25,0.07l-0.63,0.55l-0.62,-0.29l0.5,-0.88l0.21,-1.11l0.42,-1.05l-0.03,-0.28l-0.93,-1.42l-0.18,-1.54l1.13,-1.87l2.42,0.78l2.55,2.04l0.33,0.81l-1.4,2.16l-0.77,1.84Z",name:"France"},FI:{path:"M492.26,76.42l-0.38,3.12l0.12,0.28l3.6,2.69l-2.14,2.96l-0.01,0.33l2.83,4.61l-1.61,3.36l0.03,0.31l2.15,2.87l-0.96,2.44l0.1,0.35l3.51,2.55l-0.81,1.72l-2.28,2.19l-5.28,4.79l-4.51,0.31l-4.39,1.37l-3.87,0.75l-1.34,-1.89l-0.11,-0.09l-2.23,-1.14l0.53,-3.54l-0.01,-0.14l-1.17,-3.37l1.12,-2.13l2.23,-2.44l5.69,-4.33l1.65,-0.84l0.16,-0.31l-0.26,-1.73l-0.15,-0.22l-3.4,-1.91l-0.77,-1.47l-0.07,-6.45l-0.12,-0.24l-3.91,-2.94l-3.0,-1.92l0.97,-0.76l2.6,2.17l0.21,0.07l3.2,-0.21l2.63,1.03l0.3,-0.05l2.39,-1.94l0.09,-0.13l1.18,-3.12l3.63,-1.42l2.87,1.59l-0.98,2.87Z",name:"Finland"},FJ:{path:"M869.98,327.07l-1.31,0.44l-0.14,-0.41l0.96,-0.41l0.85,-0.17l1.43,-0.78l-0.16,0.65l-1.64,0.67ZM867.58,329.12l0.54,0.47l-0.31,1.0l-1.32,0.3l-1.13,-0.26l-0.17,-0.78l0.72,-0.66l0.98,0.27l0.25,-0.04l0.43,-0.29Z",name:"Fiji"},FK:{path:"M268.15,427.89l2.6,-1.73l1.98,0.77l0.31,-0.05l1.32,-1.17l1.58,1.18l-0.54,0.84l-3.1,0.92l-1.0,-1.04l-0.39,-0.04l-1.9,1.35l-0.86,-1.04Z",name:"Falkland Islands"},NI:{path:"M202.1,252.6l0.23,-0.0l0.12,-0.11l0.68,-0.09l0.22,-0.15l0.23,-0.43l0.2,-0.01l0.28,-0.31l-0.04,-0.97l0.29,-0.03l0.5,0.02l0.25,-0.11l0.37,-0.46l0.51,0.35l0.4,-0.06l0.23,-0.28l0.45,-0.29l0.87,-0.7l0.11,-0.21l0.02,-0.26l0.23,-0.12l0.25,-0.48l0.29,0.27l0.14,0.07l0.5,0.12l0.22,-0.03l0.48,-0.28l0.66,-0.02l0.87,-0.33l0.36,-0.32l0.21,0.01l-0.11,0.48l0.0,0.14l0.22,0.8l-0.54,0.85l-0.27,1.03l-0.09,1.18l0.14,0.72l0.05,0.95l-0.24,0.15l-0.13,0.19l-0.23,1.09l0.0,0.14l0.14,0.53l-0.42,0.53l-0.06,0.24l0.12,0.69l0.08,0.15l0.18,0.19l-0.26,0.23l-0.49,-0.11l-0.35,-0.44l-0.16,-0.1l-0.79,-0.21l-0.23,0.03l-0.45,0.26l-1.51,-0.62l-0.31,0.05l-0.17,0.15l-1.81,-1.62l-0.6,-0.9l-1.04,-0.79l-0.77,-0.71Z",name:"Nicaragua"},NL:{path:"M436.22,136.65l1.82,0.08l0.36,0.89l-0.6,2.96l-0.53,1.06l-1.32,0.0l-0.3,0.34l0.35,2.89l-0.83,-0.47l-1.56,-1.43l-0.29,-0.07l-2.26,0.67l-1.02,-0.15l0.68,-0.48l0.1,-0.12l2.14,-4.84l3.25,-1.35Z",name:"Netherlands"},NO:{path:"M491.45,67.31l7.06,3.0l-2.52,0.94l-0.11,0.49l2.43,2.49l-3.82,1.59l-1.48,0.3l0.89,-2.61l-0.14,-0.36l-3.21,-1.78l-0.25,-0.02l-3.89,1.52l-0.17,0.17l-1.2,3.17l-2.19,1.78l-2.53,-0.99l-0.13,-0.02l-3.15,0.21l-2.69,-2.25l-0.38,-0.01l-1.43,1.11l-1.47,0.17l-0.26,0.26l-0.33,2.57l-4.42,-0.65l-0.33,0.22l-0.6,2.19l-2.17,-0.01l-0.27,0.16l-4.15,7.68l-3.88,5.76l-0.0,0.33l0.81,1.23l-0.7,1.27l-2.3,-0.06l-0.28,0.18l-1.63,3.72l-0.02,0.13l0.15,5.17l0.07,0.18l1.51,1.84l-0.79,4.24l-2.04,2.5l-0.92,1.75l-1.39,-1.88l-0.44,-0.05l-4.89,4.21l-3.16,0.81l-3.24,-1.74l-0.86,-3.82l-0.78,-8.6l2.18,-2.36l6.56,-3.28l5.0,-4.16l4.63,-5.74l5.99,-8.09l4.17,-3.23l6.84,-5.49l5.39,-1.92l4.06,0.24l0.23,-0.09l3.72,-3.67l4.51,0.19l4.4,-0.89ZM484.58,19.95l4.42,1.82l-3.25,2.68l-7.14,0.65l-7.16,-0.91l-0.39,-1.37l-0.28,-0.22l-3.48,-0.1l-2.25,-2.15l7.09,-1.48l3.55,1.36l0.28,-0.03l2.42,-1.66l6.18,1.41ZM481.99,33.92l-4.73,1.85l-3.76,-1.06l1.27,-1.02l0.04,-0.43l-1.18,-1.35l4.46,-0.94l0.89,1.83l0.17,0.15l2.83,0.96ZM466.5,23.95l7.64,3.87l-5.63,1.94l-0.19,0.19l-1.35,3.88l-2.08,0.96l-0.16,0.19l-1.14,4.18l-2.71,0.18l-4.94,-2.95l1.95,-1.63l-0.08,-0.51l-3.7,-1.54l-4.79,-4.54l-1.78,-4.01l6.29,-1.88l1.25,1.81l0.25,0.13l3.57,-0.08l0.26,-0.17l0.87,-1.79l3.41,-0.18l3.08,1.94Z",name:"Norway"},NA:{path:"M461.88,357.98l-1.61,-1.77l-0.94,-1.9l-0.54,-2.58l-0.62,-1.95l-0.83,-4.05l-0.06,-3.13l-0.33,-1.5l-0.07,-0.14l-0.95,-1.06l-1.27,-2.12l-1.3,-3.1l-0.59,-1.71l-1.98,-2.46l-0.13,-1.67l0.99,-0.4l1.44,-0.42l1.48,0.07l1.42,1.11l0.31,0.03l0.32,-0.15l9.99,-0.11l1.66,1.18l0.16,0.06l6.06,0.37l4.69,-1.06l2.01,-0.57l1.5,0.14l0.63,0.37l-1.0,0.41l-0.7,0.01l-0.16,0.05l-1.38,0.88l-0.79,-0.88l-0.29,-0.09l-3.83,0.9l-1.84,0.08l-0.29,0.3l-0.07,8.99l-2.18,0.08l-0.29,0.3l-0.0,17.47l-2.04,1.27l-1.21,0.18l-1.51,-0.49l-0.99,-0.18l-0.36,-1.0l-0.1,-0.14l-0.99,-0.74l-0.4,0.04l-0.98,1.09Z",name:"Namibia"},NC:{path:"M835.87,338.68l2.06,1.63l1.01,0.94l-0.49,0.32l-1.21,-0.62l-1.76,-1.16l-1.58,-1.36l-1.61,-1.79l-0.16,-0.41l0.54,0.02l1.32,0.83l1.08,0.87l0.79,0.73Z",name:"New Caledonia"},NE:{path:"M426.67,254.17l0.03,-1.04l-0.24,-0.3l-2.66,-0.53l-0.06,-1.0l-0.07,-0.17l-1.37,-1.62l-0.3,-1.04l0.15,-0.94l1.37,-0.09l0.19,-0.09l0.85,-0.83l3.34,-0.22l2.22,-0.41l0.24,-0.26l0.2,-1.5l1.32,-1.65l0.07,-0.19l-0.01,-5.74l3.4,-1.13l7.24,-5.12l8.46,-4.95l3.76,1.08l1.35,1.39l0.36,0.05l1.39,-0.77l0.55,3.66l0.12,0.2l0.82,0.6l0.03,0.69l0.1,0.21l0.87,0.74l-0.47,0.99l-0.96,5.26l-0.13,3.25l-3.08,2.34l-0.1,0.15l-1.08,3.37l0.08,0.31l0.94,0.86l-0.01,1.51l0.29,0.3l1.25,0.05l-0.14,0.66l-0.51,0.11l-0.24,0.26l-0.06,0.57l-0.04,0.0l-1.59,-2.62l-0.21,-0.14l-0.59,-0.1l-0.23,0.05l-1.83,1.33l-1.79,-0.68l-1.42,-0.17l-0.17,0.03l-0.65,0.32l-1.39,-0.07l-0.19,0.06l-1.4,1.03l-1.12,0.05l-2.97,-1.29l-0.26,0.01l-1.12,0.59l-1.08,-0.04l-0.85,-0.88l-0.11,-0.07l-2.51,-0.95l-0.14,-0.02l-2.69,0.3l-0.16,0.07l-0.65,0.55l-0.1,0.16l-0.34,1.41l-0.69,0.98l-0.05,0.15l-0.13,1.72l-1.47,-1.13l-0.18,-0.06l-0.9,0.01l-0.2,0.08l-0.32,0.28Z",name:"Niger"},NG:{path:"M442.0,272.7l-2.4,0.83l-0.88,-0.12l-0.19,0.04l-0.89,0.52l-1.78,-0.05l-1.23,-1.44l-0.88,-1.87l-1.77,-1.66l-0.21,-0.08l-3.78,0.03l0.13,-3.75l-0.06,-1.58l0.44,-1.47l0.74,-0.75l1.21,-1.56l0.04,-0.29l-0.22,-0.56l0.44,-0.9l0.01,-0.24l-0.54,-1.44l0.26,-2.97l0.72,-1.06l0.33,-1.37l0.51,-0.43l2.53,-0.28l2.38,0.9l0.89,0.91l0.2,0.09l1.28,0.04l0.15,-0.03l1.06,-0.56l2.9,1.26l0.13,0.02l1.28,-0.06l0.16,-0.06l1.39,-1.02l1.36,0.07l0.15,-0.03l0.64,-0.32l1.22,0.13l1.9,0.73l0.28,-0.04l1.86,-1.35l0.33,0.06l1.62,2.67l0.29,0.14l0.32,-0.04l0.73,0.74l-0.19,0.37l-0.12,0.74l-2.03,1.89l-0.07,0.11l-0.66,1.62l-0.35,1.28l-0.48,0.51l-0.07,0.12l-0.48,1.67l-1.26,0.98l-0.1,0.15l-0.38,1.24l-0.58,1.07l-0.2,0.91l-1.43,0.7l-1.26,-0.93l-0.19,-0.06l-0.95,0.04l-0.2,0.09l-1.41,1.39l-0.61,0.02l-0.26,0.17l-1.19,2.42l-0.61,1.67Z",name:"Nigeria"},NZ:{path:"M857.9,379.62l1.85,3.1l0.33,0.14l0.22,-0.28l0.04,-1.41l0.57,0.4l0.35,2.06l0.17,0.22l2.02,0.94l1.78,0.26l0.22,-0.06l1.31,-1.01l0.84,0.22l-0.53,2.27l-0.67,1.5l-1.71,-0.05l-0.25,0.12l-0.67,0.89l-0.05,0.23l0.21,1.15l-0.31,0.46l-2.15,3.57l-1.6,0.99l-0.28,-0.51l-0.15,-0.13l-0.72,-0.3l1.27,-2.15l0.01,-0.29l-0.82,-1.63l-0.15,-0.14l-2.5,-1.09l0.05,-0.69l1.67,-0.94l0.15,-0.21l0.42,-2.24l-0.11,-1.95l-0.03,-0.12l-0.97,-1.85l0.05,-0.41l-0.09,-0.25l-1.18,-1.17l-1.94,-2.49l-0.86,-1.64l0.38,-0.09l1.24,1.43l0.12,0.08l1.81,0.68l0.67,2.39ZM853.93,393.55l0.57,1.24l0.44,0.12l1.51,-1.03l0.52,0.91l0.0,1.09l-0.88,1.31l-1.62,2.2l-1.26,1.2l-0.05,0.38l0.64,1.02l-1.4,0.03l-0.14,0.04l-2.14,1.16l-0.14,0.17l-0.67,2.0l-1.38,3.06l-3.07,2.19l-2.12,-0.06l-1.55,-0.99l-0.14,-0.05l-2.53,-0.2l-0.31,-0.84l1.25,-2.15l3.07,-2.97l1.62,-0.59l1.81,-1.17l2.18,-1.63l1.55,-1.65l1.08,-2.18l0.9,-0.72l0.11,-0.17l0.35,-1.56l1.37,-1.07l0.4,0.91Z",name:"New Zealand"},NP:{path:"M641.26,213.53l-0.14,0.95l0.32,1.64l-0.21,0.78l-1.83,0.04l-2.98,-0.62l-1.86,-0.25l-1.37,-1.3l-0.18,-0.08l-3.38,-0.34l-3.21,-1.49l-2.38,-1.34l-2.16,-0.92l0.84,-2.2l1.51,-1.18l0.89,-0.57l1.83,0.77l2.5,1.76l1.39,0.41l0.78,1.21l0.17,0.13l1.91,0.53l2.0,1.17l2.92,0.66l2.63,0.24Z",name:"Nepal"},CI:{path:"M413.53,272.08l-0.83,0.02l-1.79,-0.49l-1.64,0.03l-3.04,0.46l-1.73,0.72l-2.4,0.89l-0.12,-0.02l0.16,-1.7l0.19,-0.25l0.06,-0.2l-0.08,-0.99l-0.09,-0.19l-1.06,-1.05l-0.15,-0.08l-0.71,-0.15l-0.51,-0.48l0.45,-0.92l0.02,-0.19l-0.24,-1.16l0.07,-0.43l0.14,-0.0l0.3,-0.26l0.15,-1.1l-0.02,-0.15l-0.13,-0.34l0.09,-0.13l0.83,-0.27l0.19,-0.37l-0.62,-2.02l-0.55,-1.0l0.14,-0.59l0.35,-0.14l0.24,-0.16l0.53,0.29l0.14,0.04l1.93,0.02l0.26,-0.14l0.36,-0.58l0.39,0.01l0.43,-0.17l0.28,0.79l0.43,0.16l0.56,-0.31l0.89,-0.32l0.92,0.45l0.39,0.75l0.14,0.13l1.13,0.53l0.3,-0.03l0.81,-0.59l1.02,-0.08l1.49,0.57l0.62,3.33l-1.03,2.09l-0.65,2.84l0.02,0.2l1.05,2.08l-0.07,0.64Z",name:"Ivory Coast"},CH:{path:"M444.71,156.27l0.05,0.3l-0.34,0.69l0.13,0.4l1.13,0.58l1.07,0.1l-0.12,0.81l-0.87,0.42l-1.75,-0.37l-0.34,0.18l-0.47,1.1l-0.86,0.07l-0.33,-0.38l-0.41,-0.04l-1.34,1.01l-1.02,0.13l-0.93,-0.58l-0.82,-1.32l-0.37,-0.12l-0.77,0.32l0.02,-0.84l1.74,-1.69l0.09,-0.25l-0.04,-0.38l0.73,0.19l0.26,-0.06l0.6,-0.48l2.02,0.02l0.24,-0.12l0.38,-0.51l2.31,0.84Z",name:"Switzerland"},CO:{path:"M232.24,284.95l-0.94,-0.52l-1.22,-0.82l-0.31,-0.01l-0.62,0.35l-1.88,-0.31l-0.54,-0.95l-0.29,-0.15l-0.37,0.03l-2.34,-1.33l-0.15,-0.35l0.57,-0.11l0.24,-0.32l-0.1,-1.15l0.46,-0.71l1.11,-0.15l0.21,-0.13l1.05,-1.57l0.95,-1.31l-0.08,-0.43l-0.73,-0.47l0.4,-1.24l0.01,-0.16l-0.53,-2.15l0.44,-0.54l0.06,-0.24l-0.4,-2.13l-0.06,-0.13l-0.93,-1.22l0.21,-0.8l0.52,0.12l0.32,-0.13l0.47,-0.75l0.03,-0.27l-0.52,-1.32l0.09,-0.11l1.14,0.07l0.22,-0.08l1.82,-1.71l0.96,-0.25l0.22,-0.28l0.02,-0.81l0.43,-2.01l1.28,-1.04l1.48,-0.05l0.27,-0.19l0.12,-0.31l1.73,0.19l0.2,-0.05l1.96,-1.28l0.97,-0.56l1.16,-1.16l0.64,0.11l0.43,0.44l-0.31,0.55l-1.49,0.39l-0.19,0.16l-0.6,1.2l-0.97,0.74l-0.73,0.94l-0.06,0.13l-0.3,1.76l-0.68,1.44l0.23,0.43l1.1,0.14l0.27,0.97l0.08,0.13l0.49,0.49l0.17,0.85l-0.27,0.86l-0.01,0.14l0.09,0.53l0.2,0.23l0.52,0.18l0.54,0.79l0.27,0.13l3.18,-0.24l1.31,0.29l1.7,2.08l0.31,0.1l0.96,-0.26l1.75,0.13l1.41,-0.27l0.56,0.27l-0.36,1.07l-0.54,0.81l-0.05,0.13l-0.2,1.8l0.51,1.79l0.07,0.12l0.65,0.68l0.05,0.32l-1.16,1.14l0.05,0.47l0.86,0.52l0.6,0.79l0.31,1.01l-0.7,-0.81l-0.44,-0.01l-0.74,0.77l-4.75,-0.05l-0.3,0.31l0.03,1.57l0.25,0.29l1.2,0.21l-0.02,0.24l-0.1,-0.05l-0.22,-0.02l-1.41,0.41l-0.22,0.29l-0.01,1.82l0.11,0.23l1.04,0.85l0.35,1.3l-0.06,1.02l-1.02,6.26l-0.84,-0.89l-0.19,-0.09l-0.25,-0.02l1.35,-2.13l-0.1,-0.42l-1.92,-1.17l-0.2,-0.04l-1.41,0.2l-0.82,-0.39l-0.26,0.0l-1.29,0.62l-1.63,-0.27l-1.4,-2.5l-0.12,-0.12l-1.1,-0.61l-0.83,-1.2l-1.67,-1.19l-0.27,-0.04l-0.54,0.19Z",name:"Colombia"},CN:{path:"M740.32,148.94l0.22,0.21l4.3,1.03l2.84,2.2l0.99,2.92l0.28,0.2l3.8,0.0l0.15,-0.04l2.13,-1.24l3.5,-0.8l-1.05,2.29l-0.95,1.13l-0.06,0.12l-0.85,3.41l-1.56,2.81l-2.83,-0.51l-0.19,0.03l-2.15,1.09l-0.15,0.34l0.65,2.59l-0.33,3.3l-1.03,0.07l-0.28,0.3l0.01,0.75l-1.09,-1.2l-0.48,0.05l-0.94,1.6l-3.76,1.26l-0.2,0.36l0.29,1.19l-1.67,-0.08l-1.11,-0.88l-0.42,0.05l-1.69,2.08l-2.71,1.57l-2.04,1.88l-3.42,0.84l-0.11,0.05l-1.8,1.34l-1.54,0.46l0.52,-0.53l0.06,-0.33l-0.44,-0.96l1.84,-1.84l0.02,-0.41l-1.32,-1.56l-0.36,-0.08l-2.23,1.08l-2.83,2.06l-1.52,1.85l-2.32,0.13l-0.2,0.09l-1.28,1.37l-0.03,0.37l1.32,1.97l0.18,0.13l1.83,0.43l0.07,1.08l0.18,0.26l1.98,0.84l0.3,-0.03l2.66,-1.96l2.06,1.04l0.12,0.03l1.4,0.07l0.27,1.0l-3.24,0.73l-0.17,0.11l-1.13,1.5l-2.38,1.4l-0.1,0.1l-1.29,1.99l0.1,0.42l2.6,1.5l0.97,2.72l1.52,2.56l1.66,2.08l-0.03,1.76l-1.4,0.67l-0.15,0.38l0.6,1.47l0.13,0.15l1.29,0.75l-0.35,2.0l-0.58,1.96l-1.22,0.21l-0.2,0.14l-1.83,2.93l-2.02,3.51l-2.29,3.13l-3.4,2.42l-3.42,2.18l-2.75,0.3l-0.15,0.06l-1.32,1.01l-0.68,-0.67l-0.41,-0.01l-1.37,1.27l-3.42,1.28l-2.62,0.4l-0.24,0.21l-0.8,2.57l-0.95,0.11l-0.53,-1.54l0.52,-0.89l-0.19,-0.44l-3.36,-0.84l-0.17,0.01l-1.09,0.4l-2.36,-0.64l-1.0,-0.9l0.35,-1.34l-0.23,-0.37l-2.22,-0.47l-1.15,-0.94l-0.36,-0.02l-2.08,1.37l-2.35,0.29l-1.98,-0.01l-0.13,0.03l-1.32,0.63l-1.28,0.38l-0.21,0.33l0.33,2.65l-0.78,-0.04l-0.14,-0.39l-0.07,-1.04l-0.41,-0.26l-1.72,0.71l-0.96,-0.43l-1.63,-0.86l0.65,-1.95l-0.19,-0.38l-1.43,-0.46l-0.56,-2.27l-0.34,-0.22l-2.26,0.38l0.25,-2.65l2.29,-2.15l0.09,-0.2l0.1,-2.21l-0.07,-2.09l-0.15,-0.25l-1.02,-0.6l-0.8,-1.52l-0.31,-0.16l-1.42,0.2l-2.16,-0.32l0.55,-0.74l0.01,-0.35l-1.17,-1.7l-0.41,-0.08l-1.67,1.07l-1.97,-0.63l-0.25,0.03l-2.89,1.73l-2.26,1.99l-1.82,0.3l-1.0,-0.66l-0.15,-0.05l-1.28,-0.06l-1.75,-0.61l-0.24,0.02l-1.35,0.69l-0.1,0.08l-1.2,1.45l-0.14,-1.41l-0.4,-0.25l-1.46,0.55l-2.83,-0.26l-2.77,-0.61l-1.99,-1.17l-1.91,-0.54l-0.78,-1.21l-0.17,-0.13l-1.36,-0.38l-2.54,-1.79l-2.01,-0.84l-0.28,0.02l-0.89,0.56l-3.31,-1.83l-2.35,-1.67l-0.57,-2.49l1.34,0.28l0.36,-0.28l0.08,-1.42l-0.05,-0.19l-0.93,-1.34l0.24,-2.18l-0.07,-0.22l-2.69,-3.32l-0.15,-0.1l-3.97,-1.11l-0.69,-2.05l-0.11,-0.15l-1.79,-1.3l-0.39,-0.73l-0.36,-1.57l0.08,-1.09l-0.18,-0.3l-1.52,-0.66l-0.22,-0.01l-0.51,0.18l-0.52,-2.21l0.59,-0.55l0.06,-0.35l-0.22,-0.44l2.12,-1.24l1.63,-0.55l2.58,0.39l0.31,-0.16l0.87,-1.75l3.05,-0.34l0.21,-0.12l0.84,-1.12l3.87,-1.59l0.15,-0.14l0.35,-0.68l0.03,-0.17l-0.17,-1.51l1.52,-0.7l0.15,-0.39l-2.12,-5.0l4.62,-1.15l1.35,-0.72l0.14,-0.17l1.72,-5.37l4.7,0.99l0.28,-0.08l1.39,-1.43l0.08,-0.2l0.11,-2.95l1.83,-0.26l0.18,-0.1l1.85,-2.08l0.61,-0.17l0.57,1.97l0.1,0.15l2.2,1.75l3.48,1.17l1.59,2.36l-0.93,3.53l0.04,0.24l0.9,1.35l0.2,0.13l2.98,0.53l3.32,0.43l2.97,1.89l1.49,0.35l1.08,2.67l1.52,1.88l0.24,0.11l2.74,-0.07l5.15,0.67l3.36,-0.41l2.39,0.43l3.67,1.81l0.13,0.03l2.92,-0.0l1.02,0.86l0.34,0.03l2.88,-1.59l3.98,-1.03l3.81,-0.13l3.02,-1.12l1.77,-1.61l1.73,-1.01l0.13,-0.37l-0.41,-1.01l-0.72,-1.07l1.09,-1.66l1.21,0.24l2.57,0.63l0.24,-0.04l2.46,-1.62l3.78,-1.19l0.13,-0.09l1.8,-2.03l1.66,-0.84l3.54,-0.41l1.93,0.35l0.34,-0.22l0.27,-1.12l-0.08,-0.29l-2.27,-2.22l-2.08,-1.07l-0.29,0.01l-1.82,1.12l-2.36,-0.47l-0.14,0.01l-1.18,0.34l-0.46,-0.94l1.69,-3.08l1.1,-2.21l2.75,1.12l0.26,-0.02l3.53,-2.06l0.15,-0.26l-0.02,-1.35l2.18,-3.39l1.35,-1.04l0.12,-0.24l-0.03,-1.85l-0.15,-0.25l-1.0,-0.58l1.68,-1.37l3.01,-0.59l3.25,-0.09l3.67,0.99l2.08,1.18l1.51,3.3l0.95,1.45l0.85,1.99l0.92,3.19ZM697.0,237.37l-1.95,1.12l-1.74,-0.68l-0.06,-1.9l1.08,-1.03l2.62,-0.7l1.23,0.05l0.37,0.65l-1.01,1.08l-0.54,1.4Z",name:"China"},CM:{path:"M453.76,278.92l-0.26,-0.11l-0.18,-0.02l-1.42,0.31l-1.56,-0.33l-1.17,0.16l-3.7,-0.05l0.3,-1.63l-0.04,-0.21l-0.98,-1.66l-0.15,-0.13l-1.03,-0.38l-0.46,-1.01l-0.13,-0.14l-0.48,-0.27l0.02,-0.46l0.62,-1.72l1.1,-2.25l0.54,-0.02l0.2,-0.09l1.41,-1.39l0.73,-0.03l1.32,0.97l0.31,0.03l1.72,-0.85l0.16,-0.2l0.22,-1.0l0.57,-1.03l0.36,-1.18l1.26,-0.98l0.1,-0.15l0.49,-1.7l0.48,-0.51l0.07,-0.13l0.35,-1.3l0.63,-1.54l2.06,-1.92l0.09,-0.17l0.12,-0.79l0.24,-0.41l-0.04,-0.36l-0.89,-0.91l0.04,-0.45l0.28,-0.06l0.85,1.39l0.16,1.59l-0.09,1.66l0.04,0.17l1.09,1.84l-0.86,-0.02l-0.72,0.17l-1.07,-0.24l-0.34,0.17l-0.54,1.19l0.06,0.34l1.48,1.47l1.06,0.44l0.32,0.94l0.73,1.6l-0.32,0.57l-1.23,2.49l-0.54,0.41l-0.12,0.21l-0.19,1.95l0.24,1.08l-0.18,0.67l0.07,0.28l1.13,1.25l0.24,0.93l0.92,1.29l1.1,0.8l0.1,1.01l0.26,0.73l-0.12,0.93l-1.65,-0.49l-2.02,-0.66l-3.19,-0.11Z",name:"Cameroon"},CL:{path:"M246.8,429.1l-1.14,0.78l-2.25,1.21l-0.16,0.23l-0.37,2.94l-0.75,0.06l-2.72,-1.07l-2.83,-2.34l-3.06,-1.9l-0.71,-1.92l0.67,-1.84l-0.02,-0.25l-1.22,-2.13l-0.31,-5.41l1.02,-2.95l2.59,-2.4l-0.13,-0.51l-3.32,-0.8l2.06,-2.4l0.07,-0.15l0.79,-4.77l2.44,0.95l0.4,-0.22l1.31,-6.31l-0.16,-0.33l-1.68,-0.8l-0.42,0.21l-0.72,3.47l-1.01,-0.27l0.74,-4.06l0.85,-5.46l1.12,-1.96l0.03,-0.22l-0.71,-2.82l-0.19,-2.94l0.76,-0.07l0.26,-0.2l1.53,-4.62l1.73,-4.52l1.07,-4.2l-0.56,-4.2l0.73,-2.2l0.01,-0.12l-0.29,-3.3l1.46,-3.34l0.45,-5.19l0.8,-5.52l0.78,-5.89l-0.18,-4.33l-0.49,-3.47l1.1,-0.56l0.13,-0.13l0.44,-0.88l0.9,1.29l0.32,1.8l0.1,0.18l1.16,0.97l-0.73,2.33l0.01,0.21l1.33,2.91l0.97,3.6l0.35,0.22l1.57,-0.31l0.16,0.34l-0.79,2.51l-2.61,1.25l-0.17,0.28l0.08,4.36l-0.48,0.79l0.01,0.33l0.6,0.84l-1.62,1.55l-1.67,2.6l-0.89,2.47l-0.02,0.13l0.23,2.56l-1.5,2.76l-0.03,0.21l1.15,4.8l0.11,0.17l0.54,0.42l-0.01,2.37l-1.4,2.7l-0.03,0.15l0.06,2.25l-1.8,1.78l-0.09,0.21l0.02,2.73l0.71,2.63l-1.33,0.94l-0.12,0.17l-0.67,2.64l-0.59,3.03l0.4,3.55l-0.84,0.51l-0.14,0.31l0.58,3.5l0.08,0.16l0.96,0.99l-0.7,1.08l0.11,0.43l1.04,0.55l0.19,0.8l-0.89,0.48l-0.16,0.31l0.26,1.77l-0.89,4.06l-1.31,2.67l-0.03,0.19l0.28,1.53l-0.73,1.88l-1.85,1.37l-0.12,0.26l0.22,3.46l0.06,0.16l0.88,1.19l0.28,0.12l1.32,-0.17l-0.04,2.13l0.04,0.15l1.04,1.95l0.24,0.16l5.94,0.44ZM248.79,430.71l0.0,7.41l0.3,0.3l2.67,0.0l1.01,0.06l-0.54,0.91l-1.99,1.01l-1.13,-0.1l-1.42,-0.27l-1.87,-1.06l-2.57,-0.49l-3.09,-1.9l-2.52,-1.83l-2.65,-2.93l0.93,0.32l3.54,2.29l3.32,1.23l0.34,-0.09l1.29,-1.57l0.83,-2.32l2.11,-1.28l1.43,0.32Z",name:"Chile"},CA:{path:"M280.14,145.66l-1.66,2.88l0.06,0.37l0.37,0.03l1.5,-1.01l1.17,0.49l-0.64,0.83l0.13,0.46l2.22,0.89l0.28,-0.03l1.02,-0.7l2.09,0.83l-0.69,2.1l0.37,0.38l1.43,-0.45l0.27,1.43l0.74,1.88l-0.95,2.5l-0.88,0.09l-1.34,-0.48l0.49,-2.34l-0.14,-0.32l-0.7,-0.4l-0.36,0.04l-2.81,2.66l-0.63,-0.05l1.2,-1.01l-0.1,-0.52l-2.4,-0.77l-2.79,0.18l-4.65,-0.09l-0.22,-0.54l1.37,-0.99l0.01,-0.48l-0.82,-0.65l1.91,-1.79l2.57,-5.17l1.49,-1.81l2.04,-1.07l0.63,0.08l-0.27,0.51l-1.33,2.07ZM193.92,74.85l-0.01,4.24l0.19,0.28l0.33,-0.07l3.14,-3.22l2.65,2.5l-0.71,3.04l0.06,0.26l2.42,2.88l0.46,0.0l2.66,-3.14l1.83,-3.74l0.03,-0.12l0.13,-4.53l3.23,0.31l3.63,0.64l3.18,2.08l0.13,1.91l-1.79,2.22l-0.0,0.37l1.69,2.2l-0.28,1.8l-4.74,2.84l-3.33,0.62l-2.5,-1.21l-0.41,0.17l-0.73,2.05l-2.39,3.44l-0.74,1.78l-2.78,2.61l-3.48,0.26l-0.17,0.07l-1.98,1.68l-0.1,0.21l-0.15,2.33l-2.68,0.45l-0.17,0.09l-3.1,3.2l-2.75,4.38l-0.99,3.06l-0.14,4.31l0.25,0.31l3.5,0.58l1.07,3.24l1.18,2.76l0.34,0.18l3.43,-0.69l4.55,1.52l2.45,1.32l1.76,1.65l0.12,0.07l3.11,0.96l2.63,1.46l0.13,0.04l4.12,0.2l2.41,0.3l-0.36,2.81l0.8,3.51l1.81,3.78l0.08,0.1l3.73,3.17l0.34,0.03l1.93,-1.08l0.13,-0.15l1.35,-3.44l0.01,-0.18l-1.31,-5.38l-0.08,-0.14l-1.46,-1.5l3.68,-1.51l2.84,-2.46l1.45,-2.55l0.04,-0.17l-0.2,-2.39l-0.04,-0.12l-1.7,-3.07l-2.9,-2.64l2.79,-3.66l0.05,-0.27l-1.08,-3.38l-0.8,-5.75l1.45,-0.75l4.18,1.03l2.6,0.38l0.18,-0.03l1.93,-0.95l2.18,1.23l3.01,2.18l0.73,1.42l0.25,0.16l4.18,0.27l-0.06,2.95l0.83,4.7l0.22,0.24l2.19,0.55l1.75,2.08l0.38,0.07l3.63,-2.03l0.11,-0.11l2.38,-4.06l1.36,-1.43l1.76,3.01l3.26,4.68l2.68,4.19l-0.94,2.09l0.12,0.38l3.31,1.98l2.23,1.98l0.13,0.07l3.94,0.89l1.48,1.02l0.96,2.82l0.22,0.2l1.85,0.43l0.88,1.13l0.17,3.53l-1.68,1.16l-1.76,1.14l-4.08,1.17l-0.11,0.06l-3.08,2.65l-4.11,0.52l-5.35,-0.69l-3.76,-0.02l-2.62,0.23l-0.2,0.1l-2.05,2.29l-3.13,1.41l-0.11,0.08l-3.6,4.24l-2.87,2.92l-0.05,0.36l0.33,0.14l2.13,-0.52l0.15,-0.08l3.98,-4.15l5.16,-2.63l3.58,-0.31l1.82,1.3l-2.09,1.91l-0.09,0.29l0.8,3.46l0.82,2.37l0.15,0.17l3.25,1.56l0.16,0.03l4.14,-0.45l0.21,-0.12l2.03,-2.86l0.11,1.46l0.13,0.22l1.26,0.88l-2.7,1.78l-5.51,1.83l-2.52,1.26l-2.75,2.16l-1.52,-0.18l-0.08,-2.16l4.19,-2.47l0.14,-0.34l-0.3,-0.22l-4.01,0.1l-2.66,0.36l-1.45,-1.56l0.0,-4.16l-0.11,-0.23l-1.11,-0.91l-0.28,-0.05l-1.5,0.48l-0.7,-0.7l-0.45,0.02l-1.91,2.39l-0.8,2.5l-0.82,1.31l-0.95,0.43l-0.77,0.15l-0.23,0.2l-0.18,0.56l-8.2,0.02l-0.13,0.03l-1.19,0.61l-2.95,2.45l-0.78,1.13l-4.6,0.01l-0.12,0.02l-1.13,0.48l-0.13,0.44l0.37,0.55l0.2,0.82l-0.01,0.09l-3.1,1.42l-2.63,0.5l-2.84,1.57l-0.47,0.0l-0.72,-0.4l-0.18,-0.27l0.03,-0.15l0.52,-1.0l1.2,-1.71l0.73,-1.8l0.02,-0.17l-1.03,-5.47l-0.15,-0.21l-2.35,-1.32l0.16,-0.29l-0.05,-0.35l-0.37,-0.38l-0.22,-0.09l-0.56,0.0l-0.35,-0.34l-0.11,-0.65l-0.46,-0.2l-0.39,0.26l-0.2,-0.03l-0.11,-0.33l-0.48,-0.25l-0.21,-0.71l-0.15,-0.18l-3.97,-2.07l-4.8,-2.39l-0.25,-0.01l-2.19,0.89l-0.72,0.03l-3.04,-0.82l-0.14,-0.0l-1.94,0.4l-2.4,-0.98l-2.56,-0.51l-1.7,-0.19l-0.62,-0.44l-0.42,-1.67l-0.3,-0.23l-0.85,0.02l-0.29,0.3l-0.01,0.95l-69.26,-0.01l-4.77,-3.14l-1.78,-1.41l-4.51,-1.38l-1.3,-2.73l0.34,-1.96l-0.17,-0.33l-3.06,-1.37l-0.41,-2.58l-0.11,-0.18l-2.92,-2.4l-0.05,-1.53l1.32,-1.59l0.07,-0.2l-0.07,-2.21l-0.16,-0.26l-4.19,-2.22l-2.52,-4.02l-1.56,-2.6l-0.08,-0.09l-2.28,-1.64l-1.65,-1.48l-1.31,-1.89l-0.38,-0.1l-2.51,1.21l-2.28,1.92l-2.03,-2.22l-1.85,-1.71l-2.44,-1.04l-2.28,-0.12l0.03,-37.72l4.27,0.98l4.0,2.13l2.61,0.4l0.24,-0.07l2.17,-1.81l2.92,-1.33l3.63,0.53l0.18,-0.03l3.72,-1.94l3.89,-1.06l1.6,1.72l0.37,0.06l1.87,-1.04l0.14,-0.19l0.48,-1.83l1.37,0.38l4.18,3.96l0.41,0.0l2.89,-2.62l0.28,2.79l0.37,0.26l3.08,-0.73l0.17,-0.12l0.85,-1.16l2.81,0.24l3.83,1.86l5.86,1.61l3.46,0.75l2.44,-0.26l2.89,1.89l-3.12,1.89l-0.14,0.31l0.24,0.24l4.53,0.92l6.84,-0.5l2.04,-0.71l2.54,2.44l0.39,0.02l2.72,-2.16l-0.01,-0.48l-2.26,-1.61l1.27,-1.16l2.94,-0.19l1.94,-0.42l1.89,0.97l2.49,2.32l0.24,0.08l2.71,-0.33l4.35,1.9l0.17,0.02l3.86,-0.67l3.62,0.1l0.31,-0.33l-0.26,-2.44l1.9,-0.65l3.58,1.36l-0.01,3.84l0.23,0.29l0.34,-0.17l1.51,-3.23l1.81,0.1l0.31,-0.22l1.13,-4.37l-0.08,-0.29l-2.68,-2.73l-2.83,-1.76l0.19,-4.73l2.77,-3.15l3.06,0.69l2.44,1.97l3.24,4.88l-2.05,2.02l0.15,0.51l4.41,0.85ZM265.85,150.7l-0.84,0.04l-3.15,-0.99l-1.77,-1.17l0.19,-0.06l3.17,0.79l2.39,1.27l0.01,0.12ZM249.41,3.71l6.68,0.49l5.34,0.79l4.34,1.6l-0.08,1.24l-5.91,2.56l-6.03,1.21l-2.36,1.38l-0.14,0.34l0.29,0.22l4.37,-0.02l-4.96,3.01l-4.06,1.64l-0.11,0.08l-4.21,4.62l-5.07,0.92l-0.12,0.05l-1.53,1.1l-7.5,0.59l-0.28,0.28l0.24,0.31l2.67,0.54l-1.04,0.6l-0.09,0.44l1.89,2.49l-2.11,1.66l-3.83,1.52l-0.15,0.13l-1.14,2.01l-3.41,1.55l-0.16,0.36l0.35,1.19l0.3,0.22l3.98,-0.19l0.03,0.78l-6.42,2.99l-6.44,-1.41l-7.41,0.79l-3.72,-0.62l-4.48,-0.26l-0.25,-2.0l4.37,-1.13l0.21,-0.38l-1.14,-3.55l1.13,-0.28l6.61,2.29l0.35,-0.12l-0.04,-0.37l-3.41,-3.45l-0.14,-0.08l-3.57,-0.92l1.62,-1.7l4.36,-1.3l0.2,-0.18l0.71,-1.94l-0.12,-0.36l-3.45,-2.15l-0.88,-2.43l6.36,0.23l1.94,0.61l0.23,-0.02l3.91,-2.1l0.15,-0.32l-0.26,-0.24l-5.69,-0.67l-8.69,0.37l-4.3,-1.92l-2.12,-2.39l-2.82,-1.68l-0.44,-1.65l3.41,-1.06l2.93,-0.2l4.91,-0.99l3.69,-2.28l2.93,0.31l2.64,1.68l0.42,-0.1l1.84,-3.23l3.17,-0.96l4.45,-0.69l7.56,-0.26l1.26,0.64l0.18,0.03l7.2,-1.06l10.81,0.8ZM203.94,57.59l0.01,0.32l1.97,2.97l0.51,-0.01l2.26,-3.75l6.05,-1.89l4.08,4.72l-0.36,2.95l0.38,0.33l4.95,-1.36l0.11,-0.05l2.23,-1.77l5.37,2.31l3.32,2.14l0.3,1.89l0.36,0.25l4.48,-1.01l2.49,2.8l0.14,0.09l5.99,1.78l2.09,1.74l2.18,3.83l-4.29,1.91l-0.01,0.54l5.9,2.83l3.95,0.94l3.54,3.84l0.2,0.1l3.58,0.25l-0.67,2.51l-4.18,4.54l-2.84,-1.61l-3.91,-3.95l-0.26,-0.09l-3.24,0.52l-0.25,0.26l-0.32,2.37l0.1,0.26l2.63,2.38l3.42,1.89l0.96,1.0l1.57,3.8l-0.74,2.43l-2.85,-0.96l-6.26,-3.15l-0.38,0.09l0.04,0.39l3.54,3.4l2.55,2.31l0.23,0.78l-6.26,-1.43l-5.33,-2.25l-2.73,-1.73l0.67,-0.86l-0.09,-0.45l-7.38,-4.01l-0.44,0.27l0.03,0.89l-6.85,0.61l-1.8,-1.17l1.43,-2.6l4.56,-0.07l5.15,-0.52l0.23,-0.45l-0.76,-1.34l0.8,-1.89l3.21,-4.06l0.05,-0.29l-0.72,-1.95l-0.97,-1.47l-0.11,-0.1l-3.84,-2.1l-4.53,-1.33l1.09,-0.75l0.05,-0.45l-2.65,-2.75l-0.18,-0.09l-2.12,-0.24l-1.91,-1.47l-0.39,0.02l-1.27,1.25l-4.4,0.56l-9.06,-0.99l-5.28,-1.31l-4.01,-0.67l-1.72,-1.31l2.32,-1.85l0.1,-0.33l-0.28,-0.2l-3.3,-0.02l-0.74,-4.36l1.86,-4.09l2.46,-1.88l5.74,-1.15l-1.5,2.55ZM261.28,159.28l0.19,0.14l1.82,0.42l1.66,-0.05l-0.66,0.68l-0.75,0.16l-3.0,-1.25l-0.46,-0.77l0.51,-0.52l0.68,1.19ZM230.87,84.48l-2.48,0.19l-0.52,-1.74l0.96,-2.17l2.03,-0.53l1.71,1.04l0.02,1.6l-0.22,0.46l-1.5,1.16ZM229.52,58.19l0.14,0.82l-4.99,-0.22l-2.73,0.63l-0.59,-0.23l-2.61,-2.4l0.08,-1.38l0.94,-0.25l5.61,0.51l4.14,2.54ZM222.12,105.0l-0.79,1.63l-0.75,-0.22l-0.52,-0.91l0.04,-0.09l0.84,-1.01l0.74,0.06l0.44,0.55ZM183.77,38.22l2.72,1.65l0.16,0.04l4.83,-0.01l1.92,1.52l-0.51,1.75l0.18,0.36l2.84,1.14l1.56,1.19l0.16,0.06l3.37,0.22l3.65,0.42l4.07,-1.1l5.05,-0.43l3.96,0.35l2.53,1.8l0.48,1.79l-1.37,1.16l-3.6,1.03l-3.22,-0.59l-7.17,0.76l-5.1,0.09l-4.0,-0.6l-6.48,-1.56l-0.81,-2.57l-0.3,-2.49l-0.1,-0.19l-2.51,-2.25l-0.16,-0.07l-5.12,-0.63l-2.61,-1.45l0.75,-1.71l4.88,0.32ZM207.46,91.26l0.42,1.62l0.42,0.19l1.12,-0.55l1.35,0.99l2.74,1.39l2.73,1.2l0.2,1.74l0.35,0.26l1.72,-0.29l1.31,0.97l-1.72,0.96l-3.68,-0.9l-1.34,-1.71l-0.43,-0.04l-2.46,2.1l-3.23,1.85l-0.74,-1.98l-0.31,-0.19l-2.47,0.28l1.49,-1.34l0.1,-0.19l0.32,-3.15l0.79,-3.45l1.34,0.25ZM215.59,102.66l-2.73,2.0l-1.49,-0.08l-0.37,-0.7l1.61,-1.56l3.0,0.03l-0.02,0.3ZM202.79,24.07l0.11,0.12l2.54,1.53l-3.01,1.47l-4.55,4.07l-4.3,0.38l-5.07,-0.68l-2.51,-2.09l0.03,-1.72l1.86,-1.4l0.1,-0.34l-0.29,-0.2l-4.49,0.04l-2.63,-1.79l-1.45,-2.36l1.61,-2.38l1.65,-1.69l2.47,-0.4l0.19,-0.48l-0.72,-0.89l5.1,-0.26l3.1,3.05l0.13,0.07l4.21,1.25l3.99,1.06l1.92,3.65ZM187.5,59.3l-0.15,0.1l-2.59,3.4l-2.5,-0.15l-1.47,-3.92l0.04,-2.24l1.22,-1.92l2.34,-1.26l5.11,0.17l4.28,1.06l-3.36,3.86l-2.9,0.9ZM186.19,48.8l-1.15,1.63l-3.42,-0.35l-2.68,-1.15l1.11,-1.88l3.34,-1.27l2.01,1.63l0.79,1.38ZM185.78,35.41l-0.95,0.13l-4.48,-0.33l-0.4,-0.91l4.5,0.07l1.45,0.82l-0.1,0.21ZM180.76,32.56l-3.43,1.03l-1.85,-1.14l-1.01,-1.92l-0.16,-1.87l2.87,0.2l1.39,0.35l2.75,1.75l-0.55,1.6ZM181.03,76.32l-1.21,1.2l-3.19,-1.26l-0.18,-0.01l-1.92,0.45l-2.88,-1.67l1.84,-1.16l1.6,-1.77l2.45,1.17l1.45,0.77l2.05,2.28ZM169.72,54.76l2.83,0.97l0.14,0.01l4.25,-0.58l0.47,1.01l-2.19,2.16l0.07,0.48l3.61,1.95l-0.41,3.84l-3.87,1.68l-2.23,-0.36l-1.73,-1.75l-6.07,-3.53l0.03,-1.01l4.79,0.55l0.3,-0.16l-0.04,-0.34l-2.55,-2.89l2.59,-2.05ZM174.44,40.56l1.49,1.87l0.07,2.48l-1.07,3.52l-3.87,0.48l-2.41,-0.72l0.05,-2.72l-0.33,-0.3l-3.79,0.36l-0.13,-3.31l2.36,0.14l0.15,-0.03l3.7,-1.74l3.44,0.29l0.31,-0.22l0.03,-0.12ZM170.14,31.5l0.75,1.74l-3.52,-0.52l-4.19,-1.77l-4.65,-0.17l1.65,-1.11l-0.05,-0.52l-2.86,-1.26l-0.13,-1.58l4.52,0.7l6.66,1.99l1.84,2.5ZM134.64,58.08l-1.08,1.93l0.34,0.44l5.44,-1.41l3.37,2.32l0.37,-0.02l2.66,-2.28l2.03,1.38l2.01,4.53l0.53,0.04l1.26,-1.93l0.03,-0.27l-1.67,-4.55l1.82,-0.58l2.36,0.73l2.69,1.84l1.53,4.46l0.77,3.24l0.15,0.19l4.22,2.26l4.32,2.04l-0.21,1.51l-3.87,0.34l-0.19,0.5l1.45,1.54l-0.65,1.23l-4.3,-0.65l-4.4,-1.19l-2.97,0.28l-4.67,1.48l-6.31,0.65l-4.27,0.39l-1.26,-1.91l-0.15,-0.12l-3.42,-1.2l-0.16,-0.01l-2.05,0.45l-2.66,-3.02l1.2,-0.34l3.82,-0.76l3.58,0.19l3.27,-0.78l0.23,-0.29l-0.24,-0.29l-4.84,-1.06l-5.42,0.35l-3.4,-0.09l-0.97,-1.22l5.39,-1.7l0.21,-0.33l-0.3,-0.25l-3.82,0.06l-3.95,-1.1l1.88,-3.13l1.68,-1.81l6.54,-2.84l2.11,0.77ZM158.85,56.58l-1.82,2.62l-3.38,-2.9l0.49,-0.39l3.17,-0.18l1.54,0.86ZM149.71,42.7l1.0,1.87l0.37,0.14l2.17,-0.83l2.33,0.2l0.38,2.16l-1.38,2.17l-8.33,0.76l-6.34,2.15l-3.51,0.1l-0.22,-1.13l4.98,-2.12l0.17,-0.34l-0.31,-0.23l-11.27,0.6l-3.04,-0.78l3.14,-4.57l2.2,-1.35l6.87,1.7l4.4,3.0l0.14,0.05l4.37,0.39l0.27,-0.48l-3.41,-4.68l1.96,-1.62l2.28,0.53l0.79,2.32ZM145.44,29.83l-2.18,0.77l-3.79,-0.0l0.02,-0.31l2.34,-1.5l1.2,0.23l2.42,0.83ZM144.83,34.5l-4.44,1.46l-3.18,-1.48l1.6,-1.36l3.51,-0.53l3.1,0.75l-0.6,1.16ZM119.02,65.87l-6.17,2.07l-1.19,-1.82l-0.13,-0.11l-5.48,-2.32l0.92,-1.7l1.73,-3.44l2.16,-3.15l-0.02,-0.36l-2.09,-2.56l7.84,-0.71l3.59,1.02l6.32,0.27l2.35,1.37l2.25,1.71l-2.68,1.04l-6.21,3.41l-3.1,3.28l-0.08,0.21l0.0,1.81ZM129.66,35.4l-0.3,3.55l-1.77,1.67l-2.34,0.27l-4.62,2.2l-3.89,0.76l-2.83,-0.93l3.85,-3.52l5.04,-3.36l3.75,0.07l3.11,-0.7ZM111.24,152.74l-0.82,0.29l-3.92,-1.39l-0.7,-1.06l-0.12,-0.1l-2.15,-1.09l-0.41,-0.84l-0.2,-0.16l-2.44,-0.56l-0.84,-1.56l0.1,-0.36l2.34,0.64l1.53,0.5l2.28,0.34l0.78,1.04l1.24,1.55l0.09,0.08l2.42,1.3l0.81,1.39ZM88.54,134.82l0.14,0.02l2.0,-0.23l-0.67,3.48l0.06,0.24l1.78,2.22l-0.24,-0.0l-1.4,-1.42l-0.91,-1.53l-1.26,-1.08l-0.42,-1.35l0.09,-0.66l0.82,0.31Z",name:"Canada"},CG:{path:"M453.66,296.61l-0.9,-0.82l-0.35,-0.04l-0.83,0.48l-0.77,0.83l-1.65,-2.13l1.66,-1.2l0.08,-0.39l-0.81,-1.43l0.59,-0.43l1.62,-0.29l0.24,-0.24l0.1,-0.58l0.94,0.84l0.19,0.08l2.21,0.11l0.27,-0.14l0.81,-1.29l0.32,-1.76l-0.27,-1.96l-0.06,-0.15l-1.08,-1.35l1.02,-2.74l-0.09,-0.34l-0.62,-0.5l-0.22,-0.06l-1.66,0.18l-0.55,-1.03l0.12,-0.73l2.85,0.09l1.98,0.65l2.0,0.59l0.38,-0.25l0.17,-1.3l1.26,-2.24l1.34,-1.19l1.54,0.38l1.35,0.12l-0.11,1.15l-0.74,1.34l-0.5,1.61l-0.31,2.22l0.12,1.41l-0.4,0.9l-0.06,0.88l-0.24,0.67l-1.57,1.15l-1.24,1.41l-1.09,2.43l-0.03,0.13l0.08,1.95l-0.55,0.69l-1.46,1.23l-1.32,1.41l-0.61,-0.29l-0.13,-0.57l-0.29,-0.23l-1.36,-0.02l-0.23,0.1l-0.72,0.81l-0.41,-0.16Z",name:"Republic of the Congo"},CF:{path:"M459.41,266.56l1.9,-0.17l0.22,-0.12l0.36,-0.5l0.14,0.02l0.55,0.51l0.29,0.07l3.15,-0.96l0.12,-0.07l1.05,-0.97l1.29,-0.87l0.12,-0.33l-0.17,-0.61l0.38,-0.12l2.36,0.15l0.15,-0.03l2.36,-1.17l0.12,-0.1l1.78,-2.72l1.18,-0.96l1.23,-0.34l0.21,0.79l0.07,0.13l1.37,1.5l0.01,0.86l-0.39,1.0l-0.01,0.17l0.16,0.78l0.1,0.17l0.91,0.76l1.89,1.09l1.24,0.92l0.02,0.67l0.12,0.23l1.67,1.3l0.99,1.03l0.61,1.46l0.14,0.15l1.79,0.95l0.2,0.4l-0.44,0.14l-1.54,-0.06l-1.98,-0.26l-0.93,0.22l-0.19,0.14l-0.3,0.48l-0.57,0.05l-0.91,-0.49l-0.26,-0.01l-2.7,1.21l-1.04,-0.23l-0.21,0.03l-0.34,0.19l-0.12,0.13l-0.64,1.3l-1.67,-0.43l-1.77,-0.24l-1.58,-0.91l-2.06,-0.85l-0.27,0.02l-1.42,0.88l-0.97,1.27l-0.06,0.14l-0.19,1.46l-1.3,-0.11l-1.67,-0.42l-0.27,0.07l-1.55,1.41l-0.99,1.76l-0.14,-1.18l-0.13,-0.22l-1.1,-0.78l-0.86,-1.2l-0.2,-0.84l-0.07,-0.13l-1.07,-1.19l0.16,-0.59l0.0,-0.15l-0.24,-1.01l0.18,-1.77l0.5,-0.38l0.09,-0.11l1.18,-2.4Z",name:"Central African Republic"},CD:{path:"M497.85,276.25l-0.14,2.77l0.2,0.3l0.57,0.19l-0.47,0.52l-1.0,0.71l-0.96,1.31l-0.56,1.22l-0.16,2.04l-0.54,0.89l-0.04,0.15l-0.02,1.76l-0.63,0.61l-0.09,0.2l-0.08,1.33l-0.2,0.11l-0.15,0.21l-0.23,1.37l0.03,0.2l0.6,1.08l0.16,2.96l0.44,2.29l-0.24,1.25l0.01,0.15l0.5,1.46l0.07,0.12l1.41,1.37l1.09,2.56l-0.51,-0.11l-3.45,0.45l-0.67,0.3l-0.15,0.15l-0.71,1.61l0.01,0.26l0.52,1.03l-0.43,2.9l-0.31,2.55l0.13,0.29l0.7,0.46l1.75,0.99l0.31,-0.01l0.26,-0.17l0.15,1.9l-1.44,-0.02l-0.94,-1.28l-0.94,-1.1l-0.17,-0.1l-1.76,-0.33l-0.5,-1.18l-0.42,-0.15l-1.44,0.75l-1.79,-0.32l-0.77,-1.05l-0.2,-0.12l-1.59,-0.23l-0.97,0.04l-0.1,-0.53l-0.27,-0.25l-0.86,-0.06l-1.13,-0.15l-1.62,0.37l-1.04,-0.06l-0.32,0.09l0.11,-2.56l-0.08,-0.21l-0.77,-0.87l-0.17,-1.41l0.36,-1.47l-0.03,-0.21l-0.48,-0.91l-0.04,-1.52l-0.3,-0.29l-2.65,0.02l0.13,-0.53l-0.29,-0.37l-1.28,0.01l-0.28,0.21l-0.07,0.24l-1.35,0.09l-0.26,0.18l-0.62,1.45l-0.25,0.42l-1.17,-0.3l-0.19,0.01l-0.79,0.34l-1.44,0.18l-1.41,-1.96l-0.7,-1.47l-0.61,-1.86l-0.28,-0.21l-7.39,-0.03l-0.92,0.3l-0.78,-0.03l-0.78,0.25l-0.11,-0.25l0.35,-0.15l0.18,-0.26l0.07,-1.02l0.33,-0.52l0.72,-0.42l0.52,0.2l0.33,-0.08l0.76,-0.86l0.99,0.02l0.11,0.48l0.16,0.2l0.94,0.44l0.35,-0.07l1.46,-1.56l1.44,-1.21l0.68,-0.85l0.06,-0.2l-0.08,-1.99l1.04,-2.33l1.1,-1.23l1.62,-1.19l0.11,-0.14l0.29,-0.8l0.08,-0.94l0.38,-0.82l0.03,-0.16l-0.13,-1.38l0.3,-2.16l0.47,-1.51l0.73,-1.31l0.04,-0.12l0.15,-1.51l0.21,-1.66l0.89,-1.16l1.16,-0.7l1.9,0.79l1.69,0.95l1.81,0.24l1.85,0.48l0.35,-0.16l0.71,-1.43l0.16,-0.09l1.03,0.23l0.19,-0.02l2.65,-1.19l0.86,0.46l0.17,0.03l0.81,-0.08l0.23,-0.14l0.31,-0.5l0.75,-0.17l1.83,0.26l1.64,0.06l0.72,-0.21l1.39,1.9l0.16,0.11l1.12,0.3l0.24,-0.04l0.58,-0.36l1.05,0.15l0.15,-0.02l1.15,-0.44l0.47,0.84l0.08,0.09l2.08,1.57Z",name:"Democratic Republic of the Congo"},CZ:{path:"M463.29,152.22l-0.88,-0.47l-0.18,-0.03l-1.08,0.15l-1.86,-0.94l-0.21,-0.02l-0.88,0.24l-0.13,0.07l-1.25,1.17l-1.63,-0.91l-1.38,-1.36l-1.22,-0.75l-0.24,-1.24l-0.33,-0.75l1.53,-0.6l0.98,-0.84l1.74,-0.62l0.11,-0.07l0.47,-0.47l0.46,0.27l0.24,0.03l0.96,-0.3l1.06,0.95l0.15,0.07l1.57,0.24l-0.1,0.6l0.16,0.32l1.36,0.68l0.41,-0.15l0.28,-0.62l1.29,0.28l0.19,0.84l0.26,0.23l1.73,0.18l0.74,1.02l-0.17,0.0l-0.25,0.13l-0.32,0.49l-0.46,0.11l-0.22,0.23l-0.13,0.57l-0.32,0.1l-0.2,0.22l-0.03,0.14l-0.65,0.25l-1.05,-0.05l-0.28,0.17l-0.22,0.43Z",name:"Czech Republic"},CY:{path:"M505.03,193.75l-1.51,0.68l-1.0,-0.3l-0.32,-0.63l0.69,-0.06l0.41,0.13l0.19,-0.0l0.62,-0.22l0.31,0.02l0.06,0.22l0.49,0.17l0.06,-0.01Z",name:"Cyprus"},CR:{path:"M213.0,263.84l-0.98,-0.4l-0.3,-0.31l0.16,-0.24l0.05,-0.21l-0.09,-0.56l-0.1,-0.18l-0.76,-0.65l-0.99,-0.5l-0.74,-0.28l-0.13,-0.58l-0.12,-0.18l-0.66,-0.45l-0.34,-0.0l-0.13,0.31l0.13,0.59l-0.17,0.21l-0.34,-0.42l-0.14,-0.1l-0.7,-0.22l-0.23,-0.34l0.01,-0.62l0.31,-0.74l-0.14,-0.38l-0.3,-0.15l0.47,-0.4l1.48,0.6l0.26,-0.02l0.47,-0.27l0.58,0.15l0.35,0.44l0.17,0.11l0.74,0.17l0.27,-0.07l0.3,-0.27l0.52,1.09l0.97,1.02l0.77,0.71l-0.41,0.1l-0.23,0.3l0.01,1.02l0.12,0.24l0.2,0.14l-0.07,0.05l-0.11,0.3l0.08,0.37l-0.23,0.63Z",name:"Costa Rica"},CU:{path:"M215.01,226.09l2.08,0.18l1.94,0.03l2.24,0.86l0.95,0.92l0.25,0.08l2.22,-0.28l0.79,0.55l3.68,2.81l0.19,0.06l0.77,-0.03l1.18,0.42l-0.12,0.47l0.27,0.37l1.78,0.1l1.59,0.9l-0.11,0.22l-1.5,0.3l-1.64,0.13l-1.75,-0.2l-2.69,0.19l1.0,-0.86l-0.03,-0.48l-1.02,-0.68l-0.13,-0.05l-1.52,-0.16l-0.74,-0.64l-0.57,-1.42l-0.3,-0.19l-1.36,0.1l-2.23,-0.67l-0.71,-0.52l-0.14,-0.06l-3.2,-0.4l-0.42,-0.25l0.56,-0.39l0.12,-0.33l-0.27,-0.22l-2.46,-0.13l-0.2,0.06l-1.72,1.31l-0.94,0.03l-0.25,0.15l-0.29,0.53l-1.04,0.24l-0.29,-0.07l0.7,-0.43l0.1,-0.11l0.5,-0.87l1.04,-0.54l1.23,-0.49l1.86,-0.25l0.62,-0.28Z",name:"Cuba"},SZ:{path:"M500.95,353.41l-0.41,0.97l-1.16,0.23l-1.29,-1.26l-0.02,-0.71l0.63,-0.93l0.23,-0.7l0.47,-0.12l1.04,0.4l0.32,1.05l0.2,1.08Z",name:"Swaziland"},SY:{path:"M510.84,199.83l0.09,-0.11l0.07,-0.2l-0.04,-1.08l0.56,-1.4l1.3,-1.01l0.1,-0.34l-0.41,-1.11l-0.24,-0.19l-0.89,-0.11l-0.2,-1.84l0.55,-1.05l1.3,-1.22l0.09,-0.19l0.09,-1.09l0.39,0.27l0.25,0.04l2.66,-0.77l1.35,0.52l2.06,-0.01l2.93,-1.08l1.35,0.04l2.14,-0.34l-0.83,1.16l-1.31,0.68l-0.16,0.3l0.23,2.03l-0.9,3.25l-5.43,2.87l-4.79,2.91l-2.32,-0.92Z",name:"Syria"},KG:{path:"M599.04,172.15l0.38,-0.9l1.43,-0.37l4.04,1.02l0.37,-0.23l0.36,-1.64l1.17,-0.52l3.45,1.24l0.2,-0.0l0.86,-0.31l4.09,0.08l3.61,0.31l1.18,1.02l0.11,0.06l1.19,0.34l-0.13,0.26l-3.84,1.58l-0.13,0.1l-0.81,1.08l-3.08,0.34l-0.24,0.16l-0.85,1.7l-2.43,-0.37l-0.14,0.01l-1.79,0.61l-2.39,1.4l-0.12,0.39l0.25,0.49l-0.48,0.45l-4.57,0.43l-3.04,-0.94l-2.45,0.18l0.14,-1.02l2.42,0.44l0.27,-0.08l0.81,-0.81l1.76,0.27l0.21,-0.05l3.21,-2.14l-0.03,-0.51l-2.97,-1.57l-0.26,-0.01l-1.64,0.69l-1.38,-0.84l1.81,-1.67l-0.09,-0.5l-0.46,-0.18Z",name:"Kyrgyzstan"},KE:{path:"M523.3,287.04l0.06,0.17l1.29,1.8l-1.46,0.84l-0.11,0.11l-0.55,0.93l-0.81,0.16l-0.24,0.24l-0.34,1.69l-0.81,1.06l-0.46,1.58l-0.76,0.63l-3.3,-2.3l-0.16,-1.32l-0.15,-0.23l-9.35,-5.28l-0.02,-2.4l1.92,-2.63l0.91,-1.83l0.01,-0.24l-1.09,-2.86l-0.29,-1.24l-1.09,-1.63l2.93,-2.85l0.92,0.3l0.0,1.19l0.09,0.22l0.86,0.83l0.21,0.08l1.65,0.0l3.09,2.08l0.16,0.05l0.79,0.03l0.54,-0.06l0.58,0.28l1.67,0.2l0.28,-0.12l0.69,-0.98l2.04,-0.94l0.86,0.73l0.19,0.07l1.1,0.0l-1.82,2.36l-0.06,0.18l0.03,9.12Z",name:"Kenya"},SS:{path:"M505.7,261.39l0.02,1.64l-0.27,0.55l-1.15,0.05l-0.24,0.15l-0.85,1.44l0.22,0.45l1.44,0.17l1.15,1.12l0.42,0.95l0.14,0.15l1.06,0.54l1.33,2.45l-3.06,2.98l-1.44,1.08l-1.75,0.01l-1.92,0.56l-1.5,-0.53l-0.27,0.03l-0.85,0.57l-1.98,-1.5l-0.56,-1.02l-0.37,-0.13l-1.32,0.5l-1.08,-0.15l-0.2,0.04l-0.56,0.35l-0.9,-0.24l-1.44,-1.97l-0.39,-0.77l-0.13,-0.13l-1.78,-0.94l-0.65,-1.5l-1.08,-1.12l-1.57,-1.22l-0.02,-0.68l-0.12,-0.23l-1.37,-1.02l-1.17,-0.68l0.2,-0.08l0.86,-0.48l0.14,-0.18l0.63,-2.22l0.6,-1.02l1.47,-0.28l0.35,0.56l1.29,1.48l0.14,0.09l0.69,0.22l0.22,-0.02l0.83,-0.4l1.58,0.08l0.26,0.39l0.25,0.13l2.49,0.0l0.3,-0.25l0.06,-0.35l1.13,-0.42l0.18,-0.18l0.22,-0.63l0.68,-0.38l1.95,1.37l0.23,0.05l1.29,-0.26l0.19,-0.12l1.23,-1.8l1.36,-1.37l0.08,-0.25l-0.21,-1.52l-0.06,-0.15l-0.25,-0.3l0.94,-0.08l0.26,-0.21l0.1,-0.32l0.6,0.09l-0.25,1.67l0.3,1.83l0.11,0.19l1.22,0.94l0.25,0.73l-0.04,1.2l0.26,0.31l0.09,0.01Z",name:"South Sudan"},SR:{path:"M278.1,270.26l2.71,0.45l0.31,-0.14l0.19,-0.32l1.82,-0.16l2.25,0.56l-1.09,1.81l-0.04,0.19l0.2,1.72l0.05,0.13l0.9,1.35l-0.39,0.99l-0.21,1.09l-0.48,0.8l-1.2,-0.44l-0.17,-0.01l-1.12,0.24l-0.95,-0.21l-0.35,0.2l-0.25,0.73l0.05,0.29l0.3,0.35l-0.06,0.13l-1.01,-0.15l-1.42,-2.03l-0.32,-1.36l-0.29,-0.23l-0.63,-0.0l-0.95,-1.56l0.41,-1.16l0.01,-0.17l-0.08,-0.35l1.29,-0.56l0.18,-0.22l0.35,-1.97Z",name:"Suriname"},KH:{path:"M680.28,257.89l-0.93,-1.2l-1.24,-2.56l-0.56,-2.9l1.45,-1.92l3.07,-0.46l2.26,0.35l2.03,0.98l0.38,-0.11l1.0,-1.55l1.86,0.79l0.52,1.51l-0.28,2.82l-4.05,1.88l-0.12,0.45l0.79,1.1l-2.2,0.17l-2.08,0.98l-1.89,-0.33Z",name:"Cambodia"},SV:{path:"M197.02,248.89l0.18,-0.05l0.59,0.17l0.55,0.51l0.64,0.35l0.06,0.22l0.37,0.21l1.01,-0.28l0.38,0.13l0.16,0.13l-0.14,0.81l-0.18,0.38l-1.22,-0.03l-0.84,-0.23l-1.11,-0.52l-1.31,-0.15l-0.49,-0.38l0.02,-0.08l0.76,-0.57l0.46,-0.27l0.11,-0.35Z",name:"El Salvador"},SK:{path:"M468.01,150.02l0.05,0.07l0.36,0.1l0.85,-0.37l1.12,1.02l0.33,0.05l1.38,-0.65l1.07,0.3l0.16,0.0l1.69,-0.43l1.95,1.02l-0.51,0.64l-0.45,1.2l-0.32,0.2l-2.55,-0.93l-0.17,-0.01l-0.82,0.2l-0.17,0.11l-0.53,0.68l-0.94,0.32l-0.14,-0.11l-0.29,-0.04l-1.18,0.48l-0.95,0.09l-0.26,0.21l-0.15,0.47l-1.84,0.34l-0.82,-0.31l-1.14,-0.73l-0.2,-0.89l0.42,-0.84l0.91,0.05l0.12,-0.02l0.86,-0.33l0.18,-0.21l0.03,-0.13l0.32,-0.1l0.2,-0.22l0.12,-0.55l0.39,-0.1l0.18,-0.13l0.3,-0.45l0.43,-0.0Z",name:"Slovakia"},KR:{path:"M737.31,185.72l0.84,0.08l0.27,-0.12l0.89,-1.2l1.63,-0.13l1.1,-0.2l0.21,-0.16l0.12,-0.24l1.86,2.95l0.59,1.79l0.02,3.17l-0.84,1.38l-2.23,0.55l-1.95,1.14l-1.91,0.21l-0.22,-1.21l0.45,-2.07l-0.01,-0.17l-0.99,-2.67l1.54,-0.4l0.17,-0.46l-1.55,-2.24Z",name:"South Korea"},SI:{path:"M455.77,159.59l1.79,0.21l0.18,-0.04l1.2,-0.68l2.12,-0.08l0.21,-0.1l0.38,-0.42l0.1,0.01l0.28,0.62l-1.71,0.71l-0.18,0.22l-0.21,1.1l-0.71,0.26l-0.2,0.28l0.01,0.55l-0.59,-0.04l-0.79,-0.47l-0.38,0.06l-0.36,0.41l-0.84,-0.05l0.05,-0.15l-0.56,-1.24l0.21,-1.17Z",name:"Slovenia"},KP:{path:"M747.76,172.02l-0.23,-0.04l-0.26,0.08l-1.09,1.02l-0.78,1.06l-0.06,0.19l0.09,1.95l-1.12,0.57l-0.53,0.58l-0.88,0.82l-1.69,0.51l-1.09,0.79l-0.12,0.22l-0.07,1.17l-0.22,0.25l0.09,0.47l0.96,0.46l1.22,1.1l-0.19,0.37l-0.91,0.16l-1.75,0.14l-0.22,0.12l-0.87,1.18l-0.95,-0.09l-0.3,0.18l-0.97,-0.44l-0.39,0.13l-0.25,0.44l-0.29,0.09l-0.03,-0.2l-0.18,-0.23l-0.62,-0.25l-0.43,-0.29l0.52,-0.97l0.52,-0.3l0.13,-0.38l-0.18,-0.42l0.59,-1.47l0.01,-0.21l-0.16,-0.48l-0.22,-0.2l-1.41,-0.31l-0.82,-0.55l1.74,-1.62l2.73,-1.58l1.62,-1.96l0.96,0.76l0.17,0.06l2.17,0.11l0.31,-0.37l-0.32,-1.31l3.61,-1.21l0.16,-0.13l0.79,-1.34l1.25,1.38Z",name:"North Korea"},SO:{path:"M543.8,256.48l0.61,-0.05l1.14,-0.37l1.31,-0.25l0.12,-0.05l1.11,-0.81l0.57,-0.0l0.03,0.39l-0.23,1.49l0.01,1.25l-0.52,0.92l-0.7,2.71l-1.19,2.79l-1.54,3.2l-2.13,3.66l-2.12,2.79l-2.92,3.39l-2.47,2.0l-3.76,2.5l-2.33,1.9l-2.77,3.06l-0.61,1.35l-0.28,0.29l-1.22,-1.69l-0.03,-8.92l2.12,-2.76l0.59,-0.68l1.47,-0.04l0.18,-0.06l2.15,-1.71l3.16,-0.11l0.21,-0.09l7.08,-7.55l1.76,-2.12l1.14,-1.57l0.06,-0.18l0.01,-4.67Z",name:"Somalia"},SN:{path:"M379.28,250.34l-0.95,-1.82l-0.09,-0.1l-0.83,-0.6l0.62,-0.28l0.13,-0.11l1.21,-1.8l0.6,-1.31l0.71,-0.68l1.09,0.2l0.18,-0.02l1.17,-0.53l1.25,-0.03l1.17,0.73l1.59,0.65l1.47,1.83l1.59,1.7l0.12,1.56l0.49,1.46l0.1,0.14l0.85,0.65l0.18,0.82l-0.08,0.57l-0.13,0.05l-1.29,-0.19l-0.29,0.13l-0.11,0.16l-0.35,0.04l-1.83,-0.61l-5.84,-0.13l-0.12,0.02l-0.6,0.26l-0.87,-0.06l-1.01,0.32l-0.26,-1.26l1.9,0.04l0.16,-0.04l0.54,-0.32l0.37,-0.02l0.15,-0.05l0.78,-0.5l0.92,0.46l0.12,0.03l1.09,0.04l0.15,-0.03l1.08,-0.57l0.11,-0.44l-0.51,-0.74l-0.39,-0.1l-0.76,0.39l-0.62,-0.01l-0.92,-0.58l-0.18,-0.05l-0.79,0.04l-0.2,0.09l-0.48,0.51l-2.41,0.06Z",name:"Senegal"},SL:{path:"M392.19,267.53l-0.44,-0.12l-1.73,-0.97l-1.24,-1.28l-0.4,-0.84l-0.27,-1.65l1.21,-1.0l0.09,-0.12l0.27,-0.66l0.32,-0.41l0.56,-0.05l0.16,-0.07l0.5,-0.41l1.75,0.0l0.59,0.77l0.49,0.96l-0.07,0.64l0.04,0.19l0.36,0.58l-0.03,0.84l0.24,0.2l-0.64,0.65l-1.13,1.37l-0.06,0.14l-0.12,0.66l-0.43,0.58Z",name:"Sierra Leone"},SB:{path:"M826.74,311.51l0.23,0.29l-0.95,-0.01l-0.39,-0.63l0.65,0.27l0.45,0.09ZM825.01,308.52l-1.18,-1.39l-0.37,-1.06l0.24,0.0l0.82,1.84l0.49,0.6ZM823.21,309.42l-0.44,0.03l-1.43,-0.24l-0.32,-0.24l0.08,-0.5l1.29,0.31l0.72,0.47l0.11,0.18ZM817.9,303.81l2.59,1.44l0.3,0.41l-1.21,-0.66l-1.34,-0.89l-0.34,-0.3ZM813.77,302.4l0.48,0.34l0.1,0.08l-0.33,-0.17l-0.25,-0.25Z",name:"Solomon Islands"},SA:{path:"M528.24,243.1l-0.2,-0.69l-0.07,-0.12l-0.69,-0.71l-0.18,-0.94l-0.12,-0.19l-1.24,-0.89l-1.28,-2.09l-0.7,-2.08l-0.07,-0.11l-1.73,-1.79l-0.11,-0.07l-1.03,-0.39l-1.57,-2.36l-0.27,-1.72l0.1,-1.53l-0.03,-0.15l-1.44,-2.93l-1.25,-1.13l-1.34,-0.56l-0.72,-1.33l0.11,-0.49l-0.02,-0.2l-0.7,-1.38l-0.08,-0.1l-0.68,-0.56l-0.97,-1.98l-2.8,-4.03l-0.25,-0.13l-0.85,0.01l0.29,-1.11l0.12,-0.97l0.23,-0.81l2.52,0.39l0.23,-0.06l1.08,-0.84l0.6,-0.95l1.78,-0.35l0.22,-0.17l0.37,-0.83l0.74,-0.42l0.08,-0.46l-2.17,-2.4l4.55,-1.26l0.12,-0.06l0.36,-0.32l2.83,0.71l3.67,1.91l7.04,5.5l0.17,0.06l4.64,0.22l2.06,0.24l0.55,1.15l0.28,0.17l1.56,-0.06l0.9,2.15l0.14,0.15l1.14,0.57l0.39,0.85l0.11,0.13l1.59,1.06l0.12,0.91l-0.23,0.83l0.01,0.18l0.32,0.9l0.07,0.11l0.68,0.7l0.33,0.86l0.37,0.65l0.09,0.1l0.76,0.53l0.25,0.04l0.45,-0.12l0.35,0.75l0.1,0.63l0.96,2.68l0.23,0.19l7.53,1.33l0.27,-0.09l0.24,-0.26l0.87,1.41l-1.58,4.96l-7.34,2.54l-7.28,1.02l-2.34,1.17l-0.12,0.1l-1.74,2.63l-0.86,0.32l-0.49,-0.68l-0.28,-0.12l-0.92,0.12l-2.32,-0.25l-0.41,-0.23l-0.15,-0.04l-2.89,0.06l-0.63,0.2l-0.91,-0.59l-0.43,0.11l-0.66,1.27l-0.03,0.21l0.21,0.89l-0.6,0.45Z",name:"Saudi Arabia"},SE:{path:"M476.42,90.44l-0.15,0.1l-2.43,2.86l-0.07,0.24l0.36,2.31l-3.84,3.1l-4.83,3.38l-0.11,0.15l-1.82,5.45l0.03,0.26l1.78,2.68l2.27,1.99l-2.13,3.88l-2.49,0.82l-0.2,0.24l-0.95,6.05l-1.32,3.09l-2.82,-0.32l-0.3,0.16l-1.34,2.64l-2.48,0.14l-0.76,-3.15l-2.09,-4.04l-1.85,-5.01l1.03,-1.98l2.06,-2.53l0.06,-0.13l0.83,-4.45l-0.06,-0.25l-1.54,-1.86l-0.15,-5.0l1.52,-3.48l2.28,0.06l0.27,-0.16l0.87,-1.59l-0.01,-0.31l-0.8,-1.21l3.79,-5.63l4.07,-7.54l2.23,0.01l0.29,-0.22l0.59,-2.15l4.46,0.66l0.34,-0.26l0.34,-2.64l1.21,-0.14l3.24,2.08l3.78,2.85l0.06,6.37l0.03,0.14l0.67,1.29l-3.95,1.07Z",name:"Sweden"},SD:{path:"M505.98,259.75l-0.31,-0.9l-0.1,-0.14l-1.2,-0.93l-0.27,-1.66l0.29,-1.83l-0.25,-0.34l-1.16,-0.17l-0.33,0.21l-0.11,0.37l-1.3,0.11l-0.21,0.49l0.55,0.68l0.18,1.29l-1.31,1.33l-1.18,1.72l-1.04,0.21l-2.0,-1.4l-0.32,-0.02l-0.95,0.52l-0.14,0.16l-0.21,0.6l-1.16,0.43l-0.19,0.23l-0.04,0.27l-2.08,0.0l-0.25,-0.39l-0.24,-0.13l-1.81,-0.09l-0.14,0.03l-0.8,0.38l-0.49,-0.16l-1.22,-1.39l-0.42,-0.67l-0.31,-0.14l-1.81,0.35l-0.2,0.14l-0.72,1.24l-0.61,2.14l-0.73,0.4l-0.62,0.22l-0.83,-0.68l-0.12,-0.6l0.38,-0.97l0.01,-1.14l-0.08,-0.2l-1.39,-1.53l-0.25,-0.97l0.03,-0.57l-0.11,-0.25l-0.81,-0.66l-0.03,-1.34l-0.04,-0.14l-0.52,-0.98l-0.31,-0.15l-0.42,0.07l0.12,-0.44l0.63,-1.03l0.03,-0.23l-0.24,-0.88l0.69,-0.66l0.02,-0.41l-0.4,-0.46l0.58,-1.39l1.04,-1.71l1.97,0.16l0.32,-0.3l-0.12,-10.24l0.02,-0.8l2.59,-0.01l0.3,-0.3l0.0,-4.92l29.19,0.0l0.68,2.17l-0.4,0.35l-0.1,0.27l0.36,2.69l0.93,3.15l0.12,0.16l2.05,1.4l-0.99,1.15l-1.75,0.4l-0.15,0.08l-0.79,0.79l-0.08,0.17l-0.24,1.69l-1.07,3.75l-0.0,0.16l0.25,0.96l-0.38,2.1l-0.98,2.41l-1.52,1.3l-1.07,1.94l-0.25,0.99l-1.08,0.64l-0.13,0.18l-0.46,1.65Z",name:"Sudan"},DO:{path:"M241.7,234.97l0.15,-0.22l1.73,0.01l1.43,0.64l0.15,0.03l0.45,-0.04l0.36,0.74l0.28,0.17l1.02,-0.04l-0.04,0.43l0.27,0.33l1.03,0.09l0.91,0.7l-0.57,0.64l-0.99,-0.47l-0.16,-0.03l-1.11,0.11l-0.79,-0.12l-0.26,0.09l-0.38,0.4l-0.66,0.11l-0.28,-0.45l-0.38,-0.12l-0.83,0.37l-0.14,0.13l-0.85,1.49l-0.27,-0.17l-0.1,-0.58l0.05,-0.67l-0.07,-0.21l-0.44,-0.53l0.35,-0.25l0.12,-0.19l0.19,-1.0l-0.2,-1.4Z",name:"Dominican Republic"},DJ:{path:"M528.78,253.36l0.34,0.45l-0.06,0.76l-1.26,0.54l-0.05,0.53l0.82,0.53l-0.57,0.83l-0.3,-0.25l-0.27,-0.05l-0.56,0.17l-1.07,-0.03l-0.04,-0.56l-0.16,-0.56l0.76,-1.07l0.76,-0.97l0.89,0.18l0.25,-0.06l0.51,-0.42Z",name:"Djibouti"},DK:{path:"M452.4,129.07l-1.27,2.39l-2.25,-1.69l-0.26,-1.08l3.15,-1.0l0.63,1.39ZM447.87,126.25l-0.35,0.76l-0.47,-0.24l-0.38,0.09l-1.8,2.53l-0.03,0.29l0.56,1.4l-1.22,0.4l-1.68,-0.41l-0.92,-1.76l-0.07,-3.47l0.38,-0.88l0.62,-0.93l2.07,-0.21l0.19,-0.1l0.84,-0.95l1.5,-0.76l-0.06,1.26l-0.7,1.1l-0.03,0.25l0.3,1.0l0.18,0.19l1.06,0.42Z",name:"Denmark"},DE:{path:"M445.51,131.69l0.03,0.94l0.21,0.28l2.32,0.74l-0.02,1.0l0.37,0.3l2.55,-0.65l1.36,-0.89l2.63,1.27l1.09,1.01l0.51,1.51l-0.6,0.78l-0.0,0.36l0.88,1.17l0.58,1.68l-0.18,1.08l0.03,0.18l0.87,1.81l-0.66,0.2l-0.55,-0.32l-0.36,0.05l-0.58,0.58l-1.73,0.62l-0.99,0.84l-1.77,0.7l-0.16,0.4l0.42,0.94l0.26,1.34l0.14,0.2l1.25,0.76l1.22,1.2l-0.71,1.2l-0.81,0.37l-0.17,0.32l0.34,1.99l-0.04,0.09l-0.47,-0.39l-0.17,-0.07l-1.2,-0.1l-1.85,0.57l-2.15,-0.13l-0.29,0.18l-0.21,0.5l-0.96,-0.67l-0.24,-0.05l-0.67,0.16l-2.6,-0.94l-0.34,0.1l-0.42,0.57l-1.64,-0.02l0.26,-1.88l1.24,-2.15l-0.21,-0.45l-3.54,-0.58l-0.98,-0.71l0.12,-1.26l-0.05,-0.2l-0.44,-0.64l0.27,-2.18l-0.38,-3.14l1.17,-0.0l0.27,-0.17l0.63,-1.26l0.65,-3.17l-0.02,-0.17l-0.41,-1.0l0.32,-0.47l1.77,-0.16l0.37,0.6l0.47,0.06l1.7,-1.69l0.06,-0.33l-0.55,-1.24l-0.09,-1.51l1.5,0.36l0.16,-0.01l1.22,-0.4Z",name:"Germany"},YE:{path:"M553.53,242.65l-1.51,0.58l-0.17,0.16l-0.48,1.14l-0.07,0.79l-2.31,1.0l-3.98,1.19l-2.28,1.8l-0.97,0.12l-0.7,-0.14l-0.23,0.05l-1.42,1.03l-1.51,0.47l-2.07,0.13l-0.68,0.15l-0.17,0.1l-0.49,0.6l-0.57,0.16l-0.18,0.13l-0.3,0.49l-1.06,-0.05l-0.13,0.02l-0.73,0.32l-1.48,-0.11l-0.55,-1.26l0.07,-1.32l-0.04,-0.16l-0.39,-0.72l-0.48,-1.85l-0.52,-0.79l0.08,-0.02l0.22,-0.36l-0.23,-1.05l0.24,-0.39l0.04,-0.19l-0.09,-0.95l0.96,-0.72l0.11,-0.31l-0.23,-0.98l0.46,-0.88l0.75,0.49l0.26,0.03l0.63,-0.22l2.76,-0.06l0.5,0.25l2.42,0.26l0.85,-0.11l0.52,0.71l0.35,0.1l1.17,-0.43l0.15,-0.12l1.75,-2.64l2.22,-1.11l6.95,-0.96l2.55,5.58Z",name:"Yemen"},AT:{path:"M463.17,154.15l-0.14,0.99l-1.15,0.01l-0.24,0.47l0.39,0.56l-0.75,1.84l-0.36,0.4l-2.06,0.07l-0.14,0.04l-1.18,0.67l-1.96,-0.23l-3.43,-0.78l-0.5,-0.97l-0.33,-0.16l-2.47,0.55l-0.2,0.16l-0.18,0.37l-1.27,-0.38l-1.28,-0.09l-0.81,-0.41l0.25,-0.51l0.03,-0.18l-0.05,-0.28l0.35,-0.08l1.16,0.81l0.45,-0.13l0.27,-0.64l2.0,0.12l1.84,-0.57l1.05,0.09l0.71,0.59l0.47,-0.11l0.23,-0.54l0.02,-0.17l-0.32,-1.85l0.69,-0.31l0.13,-0.12l0.73,-1.23l1.61,0.89l0.35,-0.04l1.35,-1.27l0.7,-0.19l1.84,0.93l0.18,0.03l1.08,-0.15l0.81,0.43l-0.07,0.15l-0.02,0.2l0.24,1.06Z",name:"Austria"},DZ:{path:"M450.58,224.94l-8.31,4.86l-7.23,5.12l-3.46,1.13l-2.42,0.22l-0.02,-1.33l-0.2,-0.28l-1.15,-0.42l-1.45,-0.69l-0.55,-1.13l-0.1,-0.12l-8.45,-5.72l-17.72,-12.17l0.03,-0.38l-0.02,-3.21l3.84,-1.91l2.46,-0.41l2.1,-0.75l0.14,-0.11l0.9,-1.3l2.84,-1.06l0.19,-0.27l0.09,-1.81l1.21,-0.2l0.15,-0.07l1.06,-0.96l3.19,-0.46l0.23,-0.18l0.46,-1.08l-0.08,-0.34l-0.6,-0.54l-0.83,-2.85l-0.18,-1.8l-0.82,-1.57l2.13,-1.37l2.65,-0.49l0.13,-0.05l1.55,-1.15l2.34,-0.85l4.2,-0.51l4.07,-0.23l1.21,0.41l0.23,-0.01l2.3,-1.11l2.52,-0.02l0.94,0.62l0.2,0.05l1.25,-0.13l-0.36,1.03l-0.01,0.14l0.39,2.66l-0.56,2.2l-1.49,1.52l-0.08,0.24l0.22,2.12l0.11,0.2l1.94,1.58l0.02,0.54l0.12,0.23l1.45,1.06l1.04,4.85l0.81,2.42l0.13,1.19l-0.43,2.17l0.17,1.28l-0.31,1.53l0.2,1.56l-0.9,1.02l-0.01,0.38l1.43,1.88l0.09,1.06l0.04,0.13l0.89,1.48l0.37,0.12l1.03,-0.43l1.79,1.12l0.89,1.34Z",name:"Algeria"},US:{path:"M892.64,99.05l1.16,0.57l0.21,0.02l1.45,-0.38l1.92,0.99l2.17,0.47l-1.65,0.72l-1.75,-0.79l-0.93,-0.7l-0.21,-0.06l-2.11,0.22l-0.35,-0.2l0.09,-0.87ZM183.29,150.37l0.39,1.54l0.12,0.17l0.78,0.55l0.14,0.05l1.74,0.2l2.52,0.5l2.4,0.98l0.17,0.02l1.96,-0.4l3.01,0.81l0.91,-0.02l2.22,-0.88l4.67,2.33l3.86,2.01l0.21,0.71l0.15,0.18l0.33,0.17l-0.02,0.05l0.23,0.43l0.67,0.1l0.21,-0.05l0.1,-0.07l0.05,0.29l0.09,0.16l0.5,0.5l0.21,0.09l0.56,0.0l0.13,0.13l-0.2,0.36l0.12,0.41l2.49,1.39l0.99,5.24l-0.69,1.68l-1.16,1.64l-0.6,1.18l-0.06,0.31l0.04,0.22l0.28,0.43l0.11,0.1l0.85,0.47l0.15,0.04l0.63,0.0l0.14,-0.04l2.87,-1.58l2.6,-0.49l3.28,-1.5l0.17,-0.23l0.04,-0.43l-0.23,-0.93l-0.24,-0.39l0.74,-0.32l4.7,-0.01l0.25,-0.13l0.77,-1.15l2.9,-2.41l1.04,-0.52l8.35,-0.02l0.28,-0.21l0.2,-0.6l0.7,-0.14l1.06,-0.48l0.13,-0.11l0.92,-1.49l0.75,-2.39l1.67,-2.08l0.59,0.6l0.3,0.07l1.52,-0.49l0.88,0.72l-0.0,4.14l0.08,0.2l1.6,1.72l0.31,0.72l-2.42,1.35l-2.55,1.05l-2.64,0.9l-0.14,0.11l-1.33,1.81l-0.44,0.7l-0.05,0.15l-0.03,1.6l0.03,0.14l0.83,1.59l0.24,0.16l0.78,0.06l-1.15,0.33l-1.25,-0.04l-1.83,0.52l-2.51,0.29l-2.17,0.88l-0.17,0.36l0.33,0.22l3.55,-0.54l0.15,0.11l-2.87,0.73l-1.19,0.0l-0.16,-0.33l-0.36,0.06l-0.76,0.82l0.17,0.5l0.42,0.08l-0.45,1.75l-1.4,1.74l-0.04,-0.17l-0.21,-0.22l-0.48,-0.13l-0.77,-0.69l-0.36,-0.03l-0.12,0.34l0.52,1.58l0.09,0.14l0.52,0.43l0.03,0.87l-0.74,1.05l-0.39,0.63l0.05,-0.12l-0.08,-0.34l-1.19,-1.03l-0.28,-2.31l-0.26,-0.26l-0.32,0.19l-0.48,1.27l-0.01,0.19l0.39,1.33l-1.14,-0.31l-0.36,0.18l0.14,0.38l1.57,0.85l0.1,2.58l0.22,0.28l0.55,0.15l0.21,0.81l0.33,2.72l-1.46,1.94l-2.5,0.81l-0.12,0.07l-1.58,1.58l-1.15,0.17l-0.15,0.06l-1.27,1.03l-0.09,0.13l-0.32,0.85l-2.71,1.79l-1.45,1.37l-1.18,1.64l-0.05,0.12l-0.39,1.96l0.0,0.13l0.44,1.91l0.85,2.37l1.1,1.91l0.03,1.2l1.16,3.07l-0.08,1.74l-0.1,0.99l-0.57,1.48l-0.54,0.24l-0.97,-0.26l-0.34,-1.02l-0.12,-0.16l-0.89,-0.58l-2.44,-4.28l-0.34,-0.94l0.49,-1.71l-0.02,-0.21l-0.7,-1.5l-2.0,-2.35l-0.11,-0.08l-0.98,-0.42l-0.25,0.01l-2.42,1.19l-0.26,-0.08l-1.26,-1.29l-1.57,-0.68l-0.16,-0.02l-2.79,0.34l-2.18,-0.3l-1.98,0.19l-1.12,0.45l-0.14,0.44l0.4,0.65l-0.04,1.02l0.09,0.22l0.29,0.3l-0.06,0.05l-0.77,-0.33l-0.26,0.01l-0.87,0.48l-1.64,-0.08l-1.79,-1.39l-0.23,-0.06l-2.11,0.33l-1.75,-0.61l-0.14,-0.01l-1.61,0.2l-2.11,0.64l-0.11,0.06l-2.25,1.99l-2.53,1.21l-1.43,1.38l-0.58,1.22l-0.03,0.12l-0.03,1.86l0.13,1.32l0.3,0.62l-0.46,0.04l-1.71,-0.57l-1.85,-0.79l-0.63,-1.14l-0.54,-1.85l-0.07,-0.12l-1.45,-1.51l-0.86,-1.58l-1.26,-1.87l-0.09,-0.09l-1.76,-1.09l-0.17,-0.04l-2.05,0.05l-0.23,0.12l-1.44,1.97l-1.84,-0.72l-1.19,-0.76l-0.6,-1.45l-0.9,-1.52l-1.49,-1.21l-1.27,-0.87l-0.89,-0.96l-0.22,-0.1l-4.34,-0.0l-0.3,0.3l-0.0,0.84l-6.62,0.02l-5.66,-1.93l-3.48,-1.24l0.11,-0.25l-0.3,-0.42l-3.18,0.3l-2.6,0.2l-0.35,-1.19l-0.08,-0.13l-1.62,-1.61l-0.13,-0.08l-1.02,-0.29l-0.22,-0.66l-0.25,-0.2l-1.31,-0.13l-0.82,-0.7l-0.16,-0.07l-2.25,-0.27l-0.48,-0.34l-0.28,-1.44l-0.07,-0.14l-2.41,-2.84l-2.03,-3.89l0.08,-0.58l-0.1,-0.27l-1.08,-0.94l-1.87,-2.36l-0.33,-2.31l-0.07,-0.15l-1.24,-1.5l0.52,-2.4l-0.09,-2.57l-0.78,-2.3l0.96,-2.83l0.61,-5.66l-0.46,-4.26l-0.79,-2.71l-0.68,-1.4l0.13,-0.26l3.24,0.97l1.28,2.88l0.52,0.06l0.62,-0.84l0.06,-0.22l-0.4,-2.61l-0.74,-2.29l68.9,-0.0l0.3,-0.3l0.01,-0.95l0.32,-0.01ZM32.5,67.43l1.75,1.99l0.41,0.04l1.02,-0.81l3.79,0.25l-0.1,0.72l0.24,0.34l3.83,0.77l2.6,-0.44l5.21,1.41l4.84,0.43l1.9,0.57l0.15,0.01l3.25,-0.71l3.72,1.32l2.52,0.58l-0.03,38.14l0.29,0.3l2.41,0.11l2.34,1.0l1.7,1.59l2.22,2.42l0.42,0.03l2.41,-2.04l2.25,-1.08l1.23,1.76l1.71,1.53l2.24,1.62l1.54,2.56l2.56,4.09l0.11,0.11l4.1,2.17l0.06,1.93l-1.12,1.35l-1.22,-1.14l-2.08,-1.05l-0.68,-2.94l-0.09,-0.16l-3.18,-2.84l-1.32,-3.35l-0.25,-0.19l-2.43,-0.24l-3.93,-0.09l-2.85,-1.02l-5.24,-3.85l-6.77,-2.04l-3.52,0.3l-4.84,-1.7l-2.96,-1.6l-0.23,-0.02l-2.78,0.8l-0.21,0.35l0.46,2.31l-1.11,0.19l-2.9,0.78l-2.24,1.26l-2.42,0.68l-0.29,-1.79l1.07,-3.49l2.54,-1.11l0.12,-0.45l-0.69,-0.96l-0.41,-0.07l-3.19,2.12l-1.76,2.54l-3.57,2.62l-0.03,0.46l1.63,1.59l-2.14,2.38l-2.64,1.49l-2.49,1.09l-0.16,0.17l-0.58,1.48l-3.8,1.79l-0.14,0.14l-0.75,1.57l-2.75,1.41l-1.62,-0.25l-0.16,0.02l-2.35,0.98l-2.54,1.19l-2.06,1.15l-4.05,0.93l-0.1,-0.15l2.45,-1.45l2.49,-1.1l2.61,-1.88l3.03,-0.39l0.19,-0.1l1.2,-1.41l3.43,-2.11l0.61,-0.75l1.81,-1.24l0.13,-0.2l0.42,-2.7l1.24,-2.12l-0.03,-0.35l-0.34,-0.09l-2.73,1.05l-0.67,-0.53l-0.39,0.02l-1.13,1.11l-1.43,-1.62l-0.49,0.06l-0.41,0.8l-0.67,-1.31l-0.42,-0.12l-2.43,1.43l-1.18,-0.0l-0.18,-1.86l0.43,-1.3l-0.09,-0.33l-1.61,-1.33l-0.26,-0.06l-3.11,0.68l-2.0,-1.66l-1.61,-0.85l-0.01,-1.97l-0.11,-0.23l-1.76,-1.48l0.86,-1.96l2.01,-2.13l0.88,-1.94l1.79,-0.25l1.65,0.6l0.31,-0.06l1.91,-1.8l1.67,0.31l0.22,-0.04l1.91,-1.23l0.13,-0.33l-0.47,-1.82l-0.15,-0.19l-1.0,-0.52l1.51,-1.27l0.09,-0.34l-0.29,-0.19l-1.62,0.06l-2.66,0.88l-0.13,0.09l-0.62,0.72l-1.77,-0.8l-0.16,-0.02l-3.48,0.44l-3.5,-0.92l-1.06,-1.61l-2.78,-2.09l3.07,-1.51l5.52,-2.01l1.65,0.0l-0.28,1.73l0.31,0.35l5.29,-0.16l0.23,-0.49l-2.03,-2.59l-0.1,-0.08l-3.03,-1.58l-1.79,-2.12l-2.4,-1.83l-3.18,-1.27l1.13,-1.84l4.28,-0.14l0.15,-0.05l3.16,-2.0l0.13,-0.17l0.57,-2.07l2.43,-2.02l2.42,-0.52l4.67,-1.98l2.22,0.29l0.2,-0.04l3.74,-2.37l3.57,0.91ZM37.66,123.49l-2.31,1.26l-1.04,-0.75l-0.31,-1.35l2.06,-1.16l1.24,-0.51l1.48,0.22l0.76,0.81l-1.89,1.49ZM30.89,233.84l1.2,0.57l0.35,0.3l0.48,0.69l-1.6,0.86l-0.3,0.31l-0.24,-0.14l0.05,-0.54l-0.02,-0.15l-0.36,-0.83l0.05,-0.12l0.39,-0.38l0.07,-0.31l-0.09,-0.27ZM29.06,231.89l0.5,0.14l0.31,0.19l-0.46,0.1l-0.34,-0.43ZM25.02,230.13l0.2,-0.11l0.4,0.47l-0.43,-0.05l-0.17,-0.31ZM21.29,228.68l0.1,-0.07l0.22,0.02l0.02,0.21l-0.02,0.02l-0.32,-0.18ZM6.0,113.33l-1.19,0.45l-1.5,-0.64l-0.94,-0.63l1.76,-0.46l1.71,0.29l0.16,0.98Z",name:"United States of America"},LV:{path:"M473.99,127.16l0.07,-2.15l1.15,-2.11l2.05,-1.07l1.84,2.48l0.25,0.12l2.01,-0.07l0.29,-0.25l0.45,-2.58l1.85,-0.56l0.98,0.4l2.13,1.33l0.16,0.05l1.97,0.01l1.02,0.7l0.21,1.67l0.71,1.84l-2.44,1.23l-1.36,0.53l-2.28,-1.62l-0.12,-0.05l-1.18,-0.2l-0.28,-0.6l-0.31,-0.17l-2.43,0.35l-4.17,-0.23l-0.12,0.02l-2.45,0.93Z",name:"Latvia"},UY:{path:"M276.9,363.17l1.3,-0.23l2.4,2.04l0.22,0.07l0.82,-0.07l2.48,1.7l1.93,1.5l1.28,1.67l-0.95,1.14l-0.04,0.31l0.63,1.45l-0.96,1.57l-2.65,1.47l-1.73,-0.53l-0.15,-0.01l-1.25,0.28l-2.22,-1.16l-0.16,-0.03l-1.56,0.08l-1.33,-1.36l0.17,-1.58l0.48,-0.55l0.07,-0.2l-0.02,-2.74l0.66,-2.8l0.57,-2.02Z",name:"Uruguay"},LB:{path:"M510.44,198.11l-0.48,0.03l-0.26,0.17l-0.15,0.32l-0.21,-0.0l0.72,-1.85l1.19,-1.9l0.74,0.09l0.27,0.73l-1.19,0.93l-0.09,0.13l-0.54,1.36Z",name:"Lebanon"},LA:{path:"M684.87,248.8l0.61,-0.86l0.05,-0.16l0.11,-2.17l-0.08,-0.22l-1.96,-2.16l-0.15,-2.44l-0.08,-0.18l-1.9,-2.1l-0.19,-0.1l-1.89,-0.18l-0.29,0.15l-0.42,0.76l-1.21,0.06l-0.67,-0.41l-0.31,-0.0l-2.2,1.29l-0.05,-1.77l0.61,-2.7l-0.27,-0.37l-1.44,-0.1l-0.12,-1.31l-0.12,-0.21l-0.87,-0.65l0.38,-0.68l1.76,-1.41l0.08,0.22l0.27,0.2l1.33,0.07l0.31,-0.34l-0.35,-2.75l0.85,-0.25l1.32,1.88l1.11,2.36l0.27,0.17l2.89,0.02l0.78,1.82l-1.32,0.56l-0.12,0.09l-0.72,0.93l0.1,0.45l2.93,1.52l3.62,5.27l1.88,1.78l0.58,1.67l-0.38,2.11l-1.87,-0.79l-0.37,0.11l-0.99,1.54l-1.51,-0.73Z",name:"Laos"},TW:{path:"M725.6,222.5l-1.5,4.22l-0.82,1.65l-1.01,-1.7l-0.26,-1.8l1.4,-2.48l1.8,-1.81l0.76,0.53l-0.38,1.39Z",name:"Taiwan"},TT:{path:"M266.35,259.46l0.41,-0.39l0.09,-0.23l-0.04,-0.75l1.14,-0.26l0.2,0.03l-0.07,1.37l-1.73,0.23Z",name:"Trinidad and Tobago"},TR:{path:"M513.25,175.38l3.63,1.17l0.14,0.01l2.88,-0.45l2.11,0.26l0.18,-0.03l2.9,-1.53l2.51,-0.13l2.25,1.37l0.36,0.88l-0.23,1.36l0.19,0.33l1.81,0.72l0.61,0.53l-1.31,0.64l-0.16,0.34l0.76,3.24l-0.44,0.8l0.01,0.3l1.19,2.02l-0.71,0.29l-0.74,-0.62l-0.15,-0.07l-2.91,-0.37l-0.15,0.02l-1.04,0.43l-2.78,0.44l-1.44,-0.03l-2.83,1.06l-1.95,0.01l-1.28,-0.52l-0.2,-0.01l-2.62,0.76l-0.7,-0.48l-0.47,0.22l-0.13,1.49l-1.01,0.94l-0.58,-0.82l0.79,-0.9l0.04,-0.34l-0.31,-0.15l-1.46,0.23l-2.03,-0.64l-0.3,0.07l-1.65,1.58l-3.58,0.3l-1.94,-1.47l-0.17,-0.06l-2.7,-0.1l-0.28,0.17l-0.51,1.06l-1.47,0.29l-2.32,-1.46l-0.17,-0.05l-2.55,0.05l-1.4,-2.7l-1.72,-1.54l1.11,-2.06l-0.07,-0.37l-1.35,-1.19l2.47,-2.51l3.74,-0.11l0.26,-0.17l0.96,-2.07l4.56,0.38l0.19,-0.05l2.97,-1.92l2.84,-0.83l4.03,-0.06l4.31,2.08ZM488.85,176.8l-1.81,1.38l-0.57,-1.01l0.02,-0.36l0.45,-0.25l0.13,-0.15l0.78,-1.87l-0.11,-0.37l-0.72,-0.47l1.91,-0.71l1.89,0.35l0.25,0.97l0.17,0.2l1.87,0.83l-0.19,0.31l-2.82,0.16l-0.18,0.07l-1.06,0.91Z",name:"Turkey"},LK:{path:"M625.44,266.07l-0.35,2.4l-0.9,0.61l-1.91,0.5l-1.04,-1.75l-0.43,-3.5l1.0,-3.6l1.34,1.09l1.13,1.72l1.16,2.52Z",name:"Sri Lanka"},TN:{path:"M444.91,206.18l-0.99,-4.57l-0.12,-0.18l-1.43,-1.04l-0.02,-0.53l-0.11,-0.22l-1.95,-1.59l-0.19,-1.85l1.44,-1.47l0.08,-0.14l0.59,-2.34l-0.38,-2.77l0.44,-1.28l2.52,-1.08l1.41,0.28l-0.06,1.2l0.43,0.28l1.81,-0.9l0.02,0.06l-1.14,1.28l-0.08,0.2l-0.02,1.32l0.11,0.24l0.74,0.6l-0.29,2.18l-1.56,1.35l-0.09,0.32l0.48,1.54l0.28,0.21l1.11,0.04l0.55,1.17l0.15,0.14l0.76,0.35l-0.12,1.79l-1.1,0.72l-0.8,0.91l-1.68,1.04l-0.13,0.32l0.25,1.08l-0.18,0.96l-0.74,0.39Z",name:"Tunisia"},TL:{path:"M734.21,307.22l0.17,-0.34l1.99,-0.52l1.72,-0.08l0.78,-0.3l0.29,0.1l-0.43,0.32l-2.57,1.09l-1.71,0.59l-0.05,-0.49l-0.19,-0.36Z",name:"East Timor"},TM:{path:"M553.16,173.51l-0.12,1.0l-0.26,-0.65l0.38,-0.34ZM553.54,173.16l0.13,-0.12l0.43,-0.09l-0.56,0.21ZM555.68,172.6l0.65,-0.14l1.53,0.76l1.71,2.29l0.27,0.12l1.27,-0.14l2.81,-0.04l0.29,-0.38l-0.35,-1.27l1.98,-0.97l1.96,-1.63l3.05,1.44l0.25,2.23l0.14,0.22l0.96,0.61l0.18,0.05l2.61,-0.13l0.68,0.44l1.2,2.97l0.1,0.13l2.85,2.03l1.67,1.41l2.66,1.45l3.13,1.17l-0.05,1.23l-0.36,-0.04l-1.12,-0.73l-0.44,0.14l-0.34,0.89l-1.96,0.52l-0.22,0.23l-0.47,2.17l-1.26,0.78l-1.93,0.42l-0.21,0.18l-0.46,1.14l-1.64,0.33l-2.3,-0.97l-0.2,-2.23l-0.28,-0.27l-1.76,-0.1l-2.78,-2.48l-0.15,-0.07l-1.95,-0.31l-2.82,-1.48l-1.78,-0.27l-0.18,0.03l-1.03,0.51l-1.6,-0.08l-0.22,0.08l-1.72,1.6l-1.83,0.46l-0.39,-1.7l0.36,-3.0l-0.16,-0.3l-1.73,-0.88l0.57,-1.77l-0.25,-0.39l-1.33,-0.14l0.41,-1.85l2.05,0.63l0.21,-0.01l2.2,-0.95l0.09,-0.49l-1.78,-1.75l-0.69,-1.66l-0.07,-0.03Z",name:"Turkmenistan"},TJ:{path:"M597.99,178.71l-0.23,0.23l-2.57,-0.47l-0.35,0.25l-0.24,1.7l0.32,0.34l2.66,-0.22l3.15,0.95l4.47,-0.42l0.58,2.45l0.39,0.21l0.71,-0.25l1.22,0.53l-0.06,1.01l0.29,1.28l-2.19,-0.0l-1.71,-0.21l-0.23,0.07l-1.51,1.25l-1.05,0.27l-0.77,0.51l-0.71,-0.67l0.22,-2.28l-0.24,-0.32l-0.43,-0.08l0.17,-0.57l-0.16,-0.36l-1.36,-0.66l-0.34,0.05l-1.08,1.01l-0.09,0.15l-0.25,1.09l-0.24,0.26l-1.36,-0.05l-0.27,0.14l-0.65,1.06l-0.58,-0.39l-0.3,-0.02l-1.68,0.86l-0.36,-0.16l1.28,-2.65l0.02,-0.2l-0.54,-2.17l-0.18,-0.21l-1.53,-0.58l0.41,-0.82l1.89,0.13l0.26,-0.12l1.19,-1.63l0.77,-1.82l2.66,-0.55l-0.33,0.87l0.01,0.23l0.36,0.82l0.3,0.18l0.23,-0.02Z",name:"Tajikistan"},LS:{path:"M493.32,359.69l0.69,0.65l-0.65,1.12l-0.38,0.8l-1.27,0.39l-0.18,0.15l-0.4,0.77l-0.59,0.18l-1.59,-1.78l1.16,-1.5l1.3,-1.02l0.97,-0.46l0.94,0.72Z",name:"Lesotho"},TH:{path:"M677.42,253.68l-1.7,-0.88l-0.14,-0.03l-1.77,0.04l0.3,-1.64l-0.3,-0.35l-2.21,0.01l-0.3,0.28l-0.2,2.76l-2.15,5.9l-0.02,0.13l0.17,1.83l0.28,0.27l1.45,0.07l0.93,2.1l0.44,2.15l0.08,0.15l1.4,1.44l0.16,0.09l1.43,0.27l1.04,1.05l-0.58,0.73l-1.24,0.22l-0.15,-0.99l-0.15,-0.22l-2.04,-1.1l-0.36,0.06l-0.23,0.23l-0.72,-0.71l-0.41,-1.18l-0.06,-0.11l-1.33,-1.42l-1.22,-1.2l-0.5,0.13l-0.15,0.54l-0.14,-0.41l0.26,-1.48l0.73,-2.38l1.2,-2.57l1.37,-2.35l0.02,-0.27l-0.95,-2.26l0.03,-1.19l-0.29,-1.42l-0.06,-0.13l-1.65,-2.0l-0.46,-0.99l0.62,-0.34l0.13,-0.15l0.92,-2.23l-0.02,-0.27l-1.05,-1.74l-1.57,-1.86l-1.04,-1.96l0.76,-0.34l0.16,-0.16l1.07,-2.63l1.58,-0.1l0.16,-0.06l1.43,-1.11l1.24,-0.52l0.84,0.62l0.13,1.43l0.28,0.27l1.34,0.09l-0.54,2.39l0.05,2.39l0.45,0.25l2.48,-1.45l0.6,0.36l0.17,0.04l1.47,-0.07l0.25,-0.15l0.41,-0.73l1.58,0.15l1.76,1.93l0.15,2.44l0.08,0.18l1.94,2.15l-0.1,1.96l-0.66,0.93l-2.25,-0.34l-3.24,0.49l-0.19,0.12l-1.6,2.12l-0.06,0.24l0.48,2.46Z",name:"Thailand"},TF:{path:"M593.76,417.73l1.38,0.84l2.15,0.37l0.04,0.31l-0.59,1.24l-3.36,0.19l-0.05,-1.38l0.43,-1.56Z",name:"French Southern and Antarctic Lands"},TG:{path:"M425.23,269.29l-1.49,0.4l-0.43,-0.68l-0.64,-1.54l-0.18,-1.16l0.54,-2.21l-0.04,-0.24l-0.59,-0.86l-0.23,-1.9l0.0,-1.82l-0.07,-0.19l-0.95,-1.19l0.1,-0.41l1.58,0.04l-0.23,0.97l0.08,0.28l1.55,1.55l0.09,1.13l0.08,0.19l0.42,0.43l-0.11,5.66l0.52,1.53Z",name:"Togo"},TD:{path:"M457.57,252.46l0.23,-1.08l-0.28,-0.36l-1.32,-0.05l0.0,-1.35l-0.1,-0.22l-0.9,-0.82l0.99,-3.1l3.12,-2.37l0.12,-0.23l0.13,-3.33l0.95,-5.2l0.53,-1.09l-0.07,-0.36l-0.94,-0.81l-0.03,-0.7l-0.12,-0.23l-0.84,-0.61l-0.57,-3.76l2.21,-1.26l19.67,9.88l0.12,9.74l-1.83,-0.15l-0.28,0.14l-1.14,1.89l-0.68,1.62l0.05,0.31l0.33,0.38l-0.61,0.58l-0.08,0.3l0.25,0.93l-0.58,0.95l-0.29,1.01l0.34,0.37l0.67,-0.11l0.39,0.73l0.03,1.4l0.11,0.23l0.8,0.65l-0.01,0.24l-1.38,0.37l-0.11,0.06l-1.27,1.03l-1.83,2.76l-2.21,1.1l-2.34,-0.15l-0.82,0.25l-0.2,0.37l0.19,0.68l-1.16,0.79l-1.01,0.94l-2.92,0.89l-0.5,-0.46l-0.17,-0.08l-0.41,-0.05l-0.28,0.12l-0.38,0.54l-1.36,0.12l0.1,-0.18l0.01,-0.27l-0.78,-1.72l-0.35,-1.03l-0.17,-0.18l-1.03,-0.41l-1.29,-1.28l0.36,-0.78l0.9,0.2l0.14,-0.0l0.67,-0.17l1.36,0.02l0.26,-0.45l-1.32,-2.22l0.09,-1.64l-0.17,-1.68l-0.04,-0.13l-0.93,-1.53Z",name:"Chad"},LY:{path:"M457.99,226.38l-1.57,0.87l-1.25,-1.28l-0.13,-0.08l-3.85,-1.11l-1.04,-1.57l-0.09,-0.09l-1.98,-1.23l-0.27,-0.02l-0.93,0.39l-0.72,-1.2l-0.09,-1.07l-0.06,-0.16l-1.33,-1.75l0.83,-0.94l0.07,-0.24l-0.21,-1.64l0.31,-1.43l-0.17,-1.29l0.43,-2.26l-0.15,-1.33l-0.73,-2.18l0.99,-0.52l0.16,-0.21l0.22,-1.16l-0.22,-1.06l1.54,-0.95l0.81,-0.92l1.19,-0.78l0.14,-0.23l0.12,-1.76l2.57,0.84l0.16,0.01l0.99,-0.23l2.01,0.45l3.19,1.2l1.12,2.36l0.2,0.16l2.24,0.53l3.5,1.14l2.65,1.36l0.29,-0.01l1.22,-0.71l1.27,-1.32l0.07,-0.29l-0.55,-2.0l0.69,-1.19l1.7,-1.23l1.61,-0.35l3.2,0.54l0.78,1.14l0.24,0.13l0.85,0.01l0.84,0.47l2.35,0.31l0.42,0.63l-0.79,1.16l-0.04,0.26l0.35,1.08l-0.61,1.6l-0.0,0.2l0.73,2.16l0.0,24.24l-2.58,0.01l-0.3,0.29l-0.02,0.62l-19.55,-9.83l-0.28,0.01l-2.53,1.44Z",name:"Libya"},AE:{path:"M550.59,223.8l0.12,0.08l1.92,-0.41l3.54,0.15l0.23,-0.09l1.71,-1.79l1.86,-1.7l1.31,-1.36l0.26,0.5l0.28,1.72l-0.93,0.01l-0.3,0.26l-0.21,1.73l0.11,0.27l0.08,0.06l-0.7,0.32l-0.17,0.27l-0.01,0.99l-0.68,1.02l-0.05,0.15l-0.06,0.96l-0.32,0.36l-7.19,-1.27l-0.79,-2.22Z",name:"United Arab Emirates"},VE:{path:"M240.66,256.5l0.65,0.91l-0.03,1.13l-1.05,1.39l-0.03,0.31l0.95,2.0l0.32,0.17l1.08,-0.16l0.24,-0.21l0.56,-1.83l-0.06,-0.29l-0.71,-0.81l-0.1,-1.58l2.9,-0.96l0.19,-0.37l-0.29,-1.02l0.45,-0.41l0.72,1.43l0.26,0.16l1.65,0.04l1.46,1.27l0.08,0.72l0.3,0.27l2.28,0.02l2.55,-0.25l1.34,1.06l0.14,0.06l1.92,0.31l0.2,-0.03l1.4,-0.79l0.15,-0.25l0.02,-0.36l2.82,-0.14l1.17,-0.01l-0.41,0.14l-0.14,0.46l0.86,1.19l0.22,0.12l1.93,0.18l1.73,1.13l0.37,1.9l0.31,0.24l1.21,-0.05l0.52,0.32l-1.63,1.21l-0.11,0.17l-0.22,0.92l0.07,0.27l0.63,0.69l-0.31,0.24l-1.48,0.39l-0.22,0.3l0.04,1.03l-0.59,0.6l-0.01,0.41l1.67,1.87l0.23,0.48l-0.72,0.76l-2.71,0.91l-1.78,0.39l-0.13,0.06l-0.6,0.49l-1.84,-0.58l-1.89,-0.33l-0.18,0.03l-0.47,0.23l-0.02,0.53l0.96,0.56l-0.08,1.58l0.35,1.58l0.26,0.23l1.91,0.19l0.02,0.07l-1.54,0.62l-0.18,0.2l-0.25,0.92l-0.88,0.35l-1.85,0.58l-0.16,0.13l-0.4,0.64l-1.66,0.14l-1.22,-1.18l-0.79,-2.52l-0.67,-0.88l-0.66,-0.43l0.99,-0.98l0.09,-0.26l-0.09,-0.56l-0.08,-0.16l-0.66,-0.69l-0.47,-1.54l0.18,-1.67l0.55,-0.85l0.45,-1.35l-0.15,-0.36l-0.89,-0.43l-0.19,-0.02l-1.39,0.28l-1.76,-0.13l-0.92,0.23l-1.64,-2.01l-0.17,-0.1l-1.54,-0.33l-3.05,0.23l-0.5,-0.73l-0.15,-0.12l-0.45,-0.15l-0.05,-0.28l0.28,-0.86l0.01,-0.15l-0.2,-1.01l-0.08,-0.15l-0.5,-0.5l-0.3,-1.08l-0.25,-0.22l-0.89,-0.12l0.54,-1.18l0.29,-1.73l0.66,-0.85l0.94,-0.7l0.09,-0.11l0.3,-0.6Z",name:"Venezuela"},AF:{path:"M574.42,192.1l2.24,0.95l0.18,0.02l1.89,-0.38l0.22,-0.18l0.46,-1.14l1.82,-0.4l1.5,-0.91l0.14,-0.19l0.46,-2.12l1.93,-0.51l0.2,-0.18l0.26,-0.68l0.87,0.57l0.13,0.05l0.79,0.09l1.35,0.02l1.83,0.59l0.75,0.34l0.26,-0.01l1.66,-0.85l0.7,0.46l0.42,-0.09l0.72,-1.17l1.32,0.05l0.23,-0.1l0.39,-0.43l0.07,-0.14l0.24,-1.08l0.86,-0.81l0.94,0.46l-0.2,0.64l0.23,0.38l0.49,0.09l-0.21,2.15l0.09,0.25l0.99,0.94l0.38,0.03l0.83,-0.57l1.06,-0.27l0.12,-0.06l1.46,-1.21l1.63,0.2l2.4,0.0l0.17,0.32l-1.12,0.25l-1.23,0.52l-2.86,0.33l-2.69,0.6l-0.13,0.06l-1.46,1.25l-0.07,0.36l0.58,1.18l0.25,1.21l-1.13,1.08l-0.09,0.25l0.09,0.98l-0.53,0.79l-2.22,-0.08l-0.28,0.44l0.83,1.57l-1.3,0.58l-0.13,0.11l-1.06,1.69l-0.05,0.18l0.13,1.51l-0.73,0.58l-0.78,-0.22l-0.14,-0.01l-1.91,0.36l-0.23,0.19l-0.2,0.57l-1.65,-0.0l-0.22,0.1l-1.4,1.56l-0.08,0.19l-0.08,2.13l-2.99,1.05l-1.67,-0.23l-0.27,0.1l-0.39,0.46l-1.43,-0.31l-2.43,0.4l-3.69,-1.23l1.96,-2.15l0.08,-0.24l-0.21,-1.78l-0.23,-0.26l-1.69,-0.42l-0.19,-1.62l-0.77,-2.08l0.98,-1.41l-0.14,-0.45l-0.82,-0.31l0.6,-1.79l0.93,-3.21Z",name:"Afghanistan"},IQ:{path:"M534.42,190.89l0.13,0.14l1.5,0.78l0.15,1.34l-1.13,0.87l-0.11,0.16l-0.58,2.2l0.04,0.24l1.73,2.67l0.12,0.1l2.99,1.49l1.18,1.94l-0.39,1.89l0.29,0.36l0.5,-0.0l0.02,1.17l0.08,0.2l0.83,0.86l-2.36,-0.29l-0.29,0.13l-1.74,2.49l-4.4,-0.21l-7.03,-5.49l-3.73,-1.94l-2.92,-0.74l-0.89,-3.0l5.33,-2.81l0.15,-0.19l0.95,-3.43l-0.2,-2.0l1.19,-0.61l0.11,-0.09l1.23,-1.73l0.92,-0.38l2.75,0.35l0.81,0.68l0.31,0.05l0.94,-0.38l1.5,3.17Z",name:"Iraq"},IS:{path:"M384.26,87.96l-0.51,2.35l0.08,0.28l2.61,2.58l-2.99,2.83l-7.16,2.72l-2.08,0.7l-9.51,-1.71l1.89,-1.36l-0.07,-0.53l-4.4,-1.59l3.33,-0.59l0.25,-0.32l-0.11,-1.2l-0.25,-0.27l-4.82,-0.88l1.38,-2.2l3.54,-0.57l3.8,2.74l0.33,0.01l3.68,-2.18l3.02,1.12l0.25,-0.02l4.01,-2.18l3.72,0.27Z",name:"Iceland"},IR:{path:"M556.2,187.5l2.05,-0.52l0.13,-0.07l1.69,-1.57l1.55,0.08l0.15,-0.03l1.02,-0.5l1.64,0.25l2.82,1.48l1.91,0.3l2.8,2.49l0.18,0.08l1.61,0.09l0.19,2.09l-1.0,3.47l-0.69,2.04l0.18,0.38l0.73,0.28l-0.85,1.22l-0.04,0.28l0.81,2.19l0.19,1.72l0.23,0.26l1.69,0.42l0.17,1.43l-2.18,2.39l-0.01,0.4l1.22,1.42l1.0,1.62l0.12,0.11l2.23,1.11l0.06,2.2l0.2,0.27l1.03,0.38l0.14,0.83l-3.38,1.3l-0.18,0.19l-0.87,2.85l-4.44,-0.76l-2.75,-0.62l-2.64,-0.32l-1.01,-3.11l-0.17,-0.19l-1.2,-0.48l-0.18,-0.01l-1.99,0.51l-2.42,1.25l-2.89,-0.84l-2.48,-2.03l-2.41,-0.79l-1.61,-2.47l-1.84,-3.63l-0.36,-0.15l-1.22,0.4l-1.48,-0.84l-0.37,0.06l-0.72,0.82l-1.08,-1.12l-0.02,-1.35l-0.3,-0.29l-0.43,0.0l0.34,-1.64l-0.04,-0.22l-1.29,-2.11l-0.12,-0.11l-3.0,-1.49l-1.62,-2.49l0.52,-1.98l1.18,-0.92l0.11,-0.27l-0.19,-1.66l-0.16,-0.23l-1.55,-0.81l-1.58,-3.33l-1.3,-2.2l0.41,-0.75l0.03,-0.21l-0.73,-3.12l1.2,-0.59l0.35,0.9l1.26,1.35l0.15,0.09l1.81,0.39l0.91,-0.09l0.15,-0.06l2.9,-2.13l0.7,-0.16l0.48,0.56l-0.75,1.26l0.05,0.37l1.56,1.53l0.28,0.08l0.37,-0.09l0.7,1.89l0.21,0.19l2.31,0.59l1.69,1.4l0.15,0.07l3.66,0.49l3.91,-0.76l0.23,-0.19l0.19,-0.52Z",name:"Iran"},AM:{path:"M530.51,176.08l2.91,-0.39l0.41,0.63l0.11,0.1l0.66,0.36l-0.32,0.47l0.07,0.41l1.1,0.84l-0.53,0.7l0.06,0.42l1.06,0.8l1.01,0.44l0.04,1.56l-0.44,0.04l-0.88,-1.46l0.01,-0.37l-0.3,-0.31l-0.98,0.01l-0.65,-0.69l-0.26,-0.09l-0.38,0.06l-0.97,-0.82l-1.64,-0.65l0.2,-1.2l-0.02,-0.16l-0.28,-0.69Z",name:"Armenia"},IT:{path:"M451.68,158.58l0.2,0.16l3.3,0.75l-0.22,1.26l0.02,0.18l0.35,0.78l-1.4,-0.32l-0.21,0.03l-2.04,1.1l-0.16,0.29l0.13,1.47l-0.29,0.82l0.02,0.24l0.82,1.57l0.1,0.11l2.28,1.5l1.29,2.53l2.79,2.43l0.2,0.07l1.83,-0.02l0.31,0.34l-0.46,0.39l0.06,0.5l4.06,1.97l2.06,1.49l0.17,0.36l-0.24,0.53l-1.08,-1.07l-0.15,-0.08l-2.18,-0.49l-0.33,0.15l-1.05,1.91l0.11,0.4l1.63,0.98l-0.22,1.12l-0.84,0.14l-0.22,0.15l-1.27,2.38l-0.54,0.12l0.01,-0.47l0.48,-1.46l0.5,-0.58l0.03,-0.35l-0.97,-1.69l-0.76,-1.48l-0.17,-0.15l-0.94,-0.33l-0.68,-1.18l-0.16,-0.13l-1.53,-0.52l-1.03,-1.14l-0.19,-0.1l-1.78,-0.19l-1.88,-1.3l-2.27,-1.94l-1.64,-1.68l-0.76,-2.94l-0.21,-0.21l-1.22,-0.35l-2.01,-1.0l-0.24,-0.01l-1.15,0.42l-0.11,0.07l-1.38,1.36l-0.5,0.11l0.19,-0.87l-0.21,-0.35l-1.19,-0.34l-0.56,-2.06l0.76,-0.82l0.03,-0.36l-0.68,-1.08l0.04,-0.31l0.68,0.42l0.19,0.04l1.21,-0.15l0.14,-0.06l1.18,-0.89l0.25,0.29l0.25,0.1l1.19,-0.1l0.25,-0.18l0.45,-1.04l1.61,0.34l0.19,-0.02l1.1,-0.53l0.17,-0.22l0.15,-0.95l1.19,0.35l0.35,-0.16l0.23,-0.47l2.11,-0.47l0.45,0.89ZM459.35,184.63l-0.71,1.81l0.0,0.23l0.33,0.79l-0.37,1.03l-1.6,-0.91l-1.33,-0.34l-3.24,-1.36l0.23,-0.99l2.73,0.24l3.95,-0.5ZM443.95,175.91l1.26,1.77l-0.31,3.47l-0.82,-0.13l-0.26,0.08l-0.83,0.79l-0.64,-0.52l-0.1,-3.42l-0.44,-1.34l0.91,0.1l0.21,-0.06l1.01,-0.74Z",name:"Italy"},VN:{path:"M690.8,230.21l-2.86,1.93l-2.09,2.46l-0.06,0.11l-0.55,1.8l0.04,0.26l4.26,6.1l2.31,1.63l1.46,1.97l1.12,4.62l-0.32,4.3l-1.97,1.57l-2.85,1.62l-2.09,2.14l-2.83,2.13l-0.67,-1.19l0.65,-1.58l-0.09,-0.35l-1.47,-1.14l1.67,-0.79l2.57,-0.18l0.22,-0.47l-0.89,-1.24l3.88,-1.8l0.17,-0.24l0.31,-3.05l-0.01,-0.13l-0.56,-1.63l0.44,-2.48l-0.01,-0.15l-0.63,-1.81l-0.08,-0.12l-1.87,-1.77l-3.64,-5.3l-0.11,-0.1l-2.68,-1.39l0.45,-0.59l1.53,-0.65l0.16,-0.39l-0.97,-2.27l-0.27,-0.18l-2.89,-0.02l-1.04,-2.21l-1.28,-1.83l0.96,-0.46l1.97,0.01l2.43,-0.3l0.13,-0.05l1.95,-1.29l1.04,0.85l0.13,0.06l1.98,0.42l-0.32,1.21l0.09,0.3l1.19,1.07l0.12,0.07l1.88,0.51Z",name:"Vietnam"},AR:{path:"M258.11,341.34l1.4,1.81l0.51,-0.06l0.89,-1.94l2.51,0.1l0.36,0.49l4.6,4.31l0.15,0.08l1.99,0.39l3.01,1.93l2.5,1.01l0.28,0.91l-2.4,3.97l0.17,0.44l2.57,0.74l2.81,0.41l2.09,-0.44l0.14,-0.07l2.27,-2.06l0.09,-0.17l0.38,-2.2l0.88,-0.36l1.05,1.29l-0.04,1.88l-1.98,1.4l-1.72,1.13l-2.84,2.65l-3.34,3.73l-0.07,0.12l-0.63,2.22l-0.67,2.85l0.02,2.73l-0.47,0.54l-0.07,0.17l-0.36,3.28l0.12,0.27l3.03,2.32l-0.31,1.78l0.11,0.29l1.44,1.15l-0.11,1.17l-2.32,3.57l-3.59,1.51l-4.95,0.6l-2.72,-0.29l-0.32,0.38l0.5,1.67l-0.49,2.13l0.01,0.16l0.4,1.29l-1.27,0.88l-2.41,0.39l-2.33,-1.05l-0.31,0.04l-0.97,0.78l-0.11,0.27l0.35,2.98l0.16,0.23l1.69,0.91l0.31,-0.02l1.08,-0.75l0.46,0.96l-2.1,0.88l-2.01,1.89l-0.09,0.18l-0.36,3.05l-0.51,1.42l-2.16,0.01l-0.19,0.07l-1.96,1.59l-0.1,0.15l-0.72,2.34l0.08,0.31l2.46,2.31l0.13,0.07l2.09,0.56l-0.74,2.45l-2.86,1.75l-0.12,0.14l-1.59,3.71l-2.2,1.24l-0.1,0.09l-1.03,1.54l-0.04,0.23l0.81,3.45l0.06,0.13l1.13,1.32l-2.59,-0.57l-5.89,-0.44l-0.92,-1.73l0.05,-2.4l-0.34,-0.3l-1.49,0.19l-0.72,-0.98l-0.2,-3.21l1.79,-1.33l0.1,-0.13l0.79,-2.04l0.02,-0.16l-0.27,-1.52l1.31,-2.69l0.91,-4.15l-0.23,-1.72l0.91,-0.49l0.15,-0.33l-0.27,-1.16l-0.15,-0.2l-0.87,-0.46l0.65,-1.01l-0.04,-0.37l-1.06,-1.09l-0.54,-3.2l0.83,-0.51l0.14,-0.29l-0.42,-3.6l0.58,-2.98l0.64,-2.5l1.41,-1.0l0.12,-0.32l-0.75,-2.8l-0.01,-2.48l1.81,-1.78l0.09,-0.22l-0.06,-2.3l1.39,-2.69l0.03,-0.14l0.01,-2.58l-0.11,-0.24l-0.57,-0.45l-1.1,-4.59l1.49,-2.73l0.04,-0.17l-0.23,-2.59l0.86,-2.38l1.6,-2.48l1.74,-1.65l0.04,-0.39l-0.64,-0.89l0.42,-0.7l0.04,-0.16l-0.08,-4.26l2.55,-1.23l0.16,-0.18l0.86,-2.75l-0.01,-0.22l-0.22,-0.48l1.84,-2.1l3.0,0.59ZM256.77,438.98l-2.1,0.15l-1.18,-1.14l-0.19,-0.08l-1.53,-0.09l-2.38,-0.0l-0.0,-6.28l0.4,0.65l1.25,2.55l0.11,0.12l3.26,2.07l3.19,0.8l-0.82,1.26Z",name:"Argentina"},AU:{path:"M705.55,353.06l0.09,0.09l0.37,0.05l0.13,-0.35l-0.57,-1.69l0.48,0.3l0.71,0.99l0.34,0.11l0.2,-0.29l-0.04,-1.37l-0.04,-0.14l-1.22,-2.07l-0.28,-0.9l-0.51,-0.69l0.24,-1.33l0.52,-0.7l0.34,-1.32l0.01,-0.13l-0.25,-1.44l0.51,-0.94l0.1,1.03l0.23,0.26l0.32,-0.14l1.01,-1.72l1.94,-0.84l1.27,-1.14l1.84,-0.92l1.0,-0.18l0.6,0.28l0.26,-0.0l1.94,-0.96l1.48,-0.28l0.19,-0.13l0.32,-0.49l0.51,-0.18l1.42,0.05l2.63,-0.76l0.11,-0.06l1.36,-1.15l0.08,-0.1l0.61,-1.33l1.42,-1.27l0.1,-0.19l0.11,-1.03l0.06,-1.32l1.39,-1.74l0.85,1.79l0.4,0.14l1.07,-0.51l0.11,-0.45l-0.77,-1.05l0.53,-0.84l0.86,0.43l0.43,-0.22l0.29,-1.85l1.29,-1.19l0.6,-0.98l1.16,-0.4l0.2,-0.27l0.02,-0.34l0.74,0.2l0.38,-0.27l0.03,-0.44l1.98,-0.61l1.7,1.08l1.36,1.48l0.22,0.1l1.55,0.02l1.57,0.24l0.33,-0.4l-0.48,-1.27l1.09,-1.86l1.06,-0.63l0.1,-0.42l-0.28,-0.46l0.93,-1.24l1.36,-0.8l1.16,0.27l0.14,0.0l2.1,-0.48l0.23,-0.3l-0.05,-1.3l-0.18,-0.26l-1.08,-0.49l0.44,-0.12l1.52,0.58l1.39,1.06l2.11,0.65l0.19,-0.0l0.59,-0.21l1.44,0.72l0.27,0.0l1.37,-0.68l0.84,0.2l0.26,-0.06l0.37,-0.3l0.82,0.89l-0.56,1.14l-0.84,0.91l-0.75,0.07l-0.26,0.38l0.26,0.9l-0.67,1.15l-0.88,1.24l-0.05,0.25l0.18,0.72l0.12,0.17l1.99,1.42l1.96,0.84l1.25,0.86l1.8,1.51l0.19,0.07l0.63,-0.0l1.15,0.58l0.34,0.7l0.17,0.15l2.39,0.88l0.24,-0.02l1.65,-0.88l0.14,-0.16l0.49,-1.37l0.52,-1.19l0.31,-1.39l0.75,-2.02l0.01,-0.19l-0.33,-1.16l0.16,-0.67l0.0,-0.13l-0.28,-1.41l0.3,-1.78l0.42,-0.45l0.05,-0.33l-0.33,-0.73l0.56,-1.25l0.48,-1.39l0.07,-0.69l0.58,-0.59l0.48,0.84l0.17,1.53l0.17,0.24l0.47,0.23l0.09,0.9l0.05,0.14l0.87,1.23l0.17,1.33l-0.09,0.89l0.03,0.15l0.9,2.0l0.43,0.13l1.38,-0.83l0.71,0.92l1.06,0.88l-0.22,0.96l0.0,0.14l0.53,2.2l0.38,1.3l0.15,0.18l0.52,0.26l0.62,2.01l-0.23,1.27l0.02,0.18l0.81,1.76l0.14,0.14l2.69,1.35l3.21,2.21l-0.2,0.4l0.04,0.34l1.39,1.6l0.95,2.78l0.43,0.16l0.79,-0.46l0.85,0.96l0.39,0.05l0.22,-0.15l0.36,2.33l0.09,0.18l1.78,1.63l1.16,1.01l1.9,2.1l0.67,2.05l0.06,1.47l-0.17,1.64l0.03,0.17l1.16,2.22l-0.14,2.28l-0.43,1.24l-0.68,2.44l0.04,1.63l-0.48,1.92l-1.06,2.43l-1.79,1.32l-0.1,0.12l-0.91,2.15l-0.82,1.37l-0.76,2.47l-0.98,1.46l-0.63,2.14l-0.33,2.02l0.1,0.82l-1.21,0.85l-2.71,0.1l-0.13,0.03l-2.31,1.19l-1.21,1.17l-1.34,1.11l-1.89,-1.18l-1.33,-0.46l0.32,-1.24l-0.4,-0.35l-1.46,0.61l-2.06,1.98l-1.99,-0.73l-1.43,-0.46l-1.45,-0.22l-2.32,-0.81l-1.51,-1.67l-0.45,-2.11l-0.6,-1.5l-0.07,-0.11l-1.23,-1.16l-0.16,-0.08l-1.96,-0.28l0.59,-0.99l0.03,-0.24l-0.61,-2.1l-0.54,-0.08l-1.16,1.85l-1.23,0.29l0.73,-0.88l0.06,-0.12l0.37,-1.57l0.93,-1.33l0.05,-0.2l-0.2,-2.07l-0.53,-0.17l-2.01,2.35l-1.52,0.94l-0.12,0.14l-0.82,1.93l-1.5,-0.9l0.07,-1.32l-0.06,-0.2l-1.57,-2.04l-1.15,-0.92l0.3,-0.41l-0.1,-0.44l-3.21,-1.69l-0.13,-0.03l-1.69,-0.08l-2.35,-1.31l-0.16,-0.04l-4.55,0.27l-3.24,0.99l-2.8,0.91l-2.33,-0.18l-0.17,0.03l-2.63,1.41l-2.14,0.64l-0.2,0.19l-0.47,1.42l-0.8,0.99l-1.99,0.06l-1.55,0.24l-2.27,-0.5l-1.79,0.3l-1.71,0.13l-0.19,0.09l-1.38,1.39l-0.58,-0.1l-0.21,0.04l-1.26,0.8l-1.13,0.85l-1.72,-0.1l-1.6,-0.0l-2.58,-1.76l-1.21,-0.49l0.04,-1.19l1.04,-0.32l0.16,-0.12l0.42,-0.64l0.05,-0.19l-0.09,-0.97l0.3,-2.0l-0.28,-1.64l-1.34,-2.84l-0.39,-1.49l0.1,-1.51l-0.04,-0.17l-0.96,-1.72l-0.06,-0.73l-0.09,-0.19l-1.04,-1.01l-0.3,-2.02l-0.05,-0.12l-1.23,-1.83ZM784.95,393.35l2.39,1.01l0.2,0.01l3.26,-0.96l1.19,0.16l0.16,3.19l-0.78,0.95l-0.07,0.16l-0.19,1.83l-0.43,-0.41l-0.44,0.03l-1.61,1.96l-0.4,-0.12l-1.38,-0.09l-1.43,-2.42l-0.37,-2.03l-1.4,-2.53l0.04,-0.94l1.27,0.2Z",name:"Australia"},IL:{path:"M509.04,199.22l0.71,0.0l0.27,-0.17l0.15,-0.33l0.19,-0.01l0.02,0.73l-0.27,0.34l0.02,0.08l-0.32,0.62l-0.65,-0.27l-0.41,0.19l-0.52,1.85l0.16,0.35l0.14,0.07l-0.17,0.1l-0.14,0.21l-0.11,0.73l0.39,0.33l0.81,-0.26l0.03,0.64l-0.97,3.43l-1.28,-3.67l0.62,-0.78l-0.03,-0.41l0.58,-1.16l0.5,-2.07l0.27,-0.54Z",name:"Israel"},IN:{path:"M615.84,192.58l2.4,2.97l-0.24,2.17l0.05,0.2l0.94,1.35l-0.06,0.97l-1.46,-0.3l-0.35,0.36l0.7,3.06l0.12,0.18l2.46,1.75l3.11,1.72l-1.23,0.96l-0.1,0.13l-0.97,2.55l0.16,0.38l2.41,1.02l2.37,1.33l3.27,1.52l3.43,0.37l1.37,1.3l0.17,0.08l1.92,0.25l3.0,0.62l2.15,-0.04l0.28,-0.22l0.29,-1.06l0.0,-0.13l-0.32,-1.66l0.16,-0.94l1.0,-0.37l0.23,2.28l0.18,0.24l2.28,1.02l0.2,0.02l1.52,-0.41l2.06,0.18l2.08,-0.08l0.29,-0.27l0.18,-1.66l-0.1,-0.26l-0.53,-0.44l1.38,-0.23l0.15,-0.07l2.26,-2.0l2.75,-1.65l1.97,0.63l0.25,-0.03l1.54,-0.99l0.89,1.28l-0.72,0.97l0.2,0.48l2.49,0.37l0.11,0.61l-0.69,0.39l-0.15,0.3l0.15,1.22l-1.36,-0.37l-0.23,0.03l-3.24,1.86l-0.15,0.28l0.07,1.44l-1.33,2.16l-0.04,0.13l-0.12,1.24l-0.98,1.91l-1.72,-0.53l-0.39,0.28l-0.09,2.66l-0.52,0.83l-0.04,0.23l0.21,0.89l-0.71,0.36l-1.21,-3.85l-0.29,-0.21l-0.69,0.01l-0.29,0.23l-0.28,1.17l-0.84,-0.84l0.6,-1.17l0.97,-0.13l0.23,-0.16l1.15,-2.25l-0.18,-0.42l-1.54,-0.47l-2.3,0.04l-2.13,-0.33l-0.19,-1.63l-0.26,-0.26l-1.13,-0.13l-1.93,-1.13l-0.42,0.13l-0.88,1.82l0.08,0.37l1.47,1.15l-1.21,0.77l-0.1,0.1l-0.56,0.97l0.13,0.42l1.31,0.61l-0.36,1.35l0.01,0.2l0.85,1.95l0.37,2.05l-0.26,0.68l-1.55,-0.02l-3.09,0.54l-0.25,0.32l0.13,1.84l-1.21,1.4l-3.64,1.79l-2.79,3.04l-1.86,1.61l-2.48,1.68l-0.13,0.25l-0.0,1.0l-1.07,0.55l-2.21,0.9l-1.13,0.13l-0.25,0.19l-0.75,1.96l-0.02,0.15l0.52,3.31l0.13,2.03l-1.03,2.35l-0.03,0.12l-0.01,4.03l-1.02,0.1l-0.23,0.15l-1.14,1.93l0.04,0.36l0.44,0.48l-1.83,0.57l-0.18,0.15l-0.81,1.65l-0.74,0.53l-2.14,-2.12l-1.14,-3.47l-0.96,-2.57l-0.9,-1.26l-1.3,-2.38l-0.61,-3.14l-0.44,-1.62l-2.29,-3.56l-1.03,-4.94l-0.74,-3.29l0.01,-3.12l-0.49,-2.51l-0.41,-0.22l-3.56,1.53l-1.59,-0.28l-2.96,-2.87l0.94,-0.74l0.06,-0.41l-0.74,-1.03l-2.73,-2.1l1.35,-1.43l5.38,0.01l0.29,-0.36l-0.5,-2.29l-0.09,-0.15l-1.33,-1.28l-0.27,-1.96l-0.12,-0.2l-1.36,-1.0l2.42,-2.48l2.77,0.2l0.24,-0.1l2.62,-2.85l1.59,-2.8l2.41,-2.74l0.07,-0.2l-0.04,-1.82l2.01,-1.51l-0.01,-0.49l-1.95,-1.33l-0.83,-1.81l-0.82,-2.27l0.98,-0.97l3.64,0.66l2.89,-0.42l0.17,-0.08l2.18,-2.15Z",name:"India"},TZ:{path:"M505.77,287.58l0.36,0.23l8.95,5.03l0.15,1.3l0.13,0.21l3.4,2.37l-1.07,2.88l-0.02,0.14l0.15,1.42l0.15,0.23l1.47,0.84l0.05,0.42l-0.66,1.44l-0.02,0.18l0.13,0.72l-0.16,1.16l0.03,0.19l0.87,1.57l1.03,2.48l0.12,0.14l0.53,0.32l-1.59,1.18l-2.64,0.95l-1.45,-0.04l-0.2,0.07l-0.81,0.69l-1.64,0.06l-0.68,0.3l-2.9,-0.69l-1.71,0.17l-0.65,-3.18l-0.05,-0.12l-1.35,-1.88l-0.19,-0.12l-2.41,-0.46l-1.38,-0.74l-1.63,-0.44l-0.96,-0.41l-0.95,-0.58l-1.31,-3.09l-1.47,-1.46l-0.45,-1.31l0.24,-1.34l-0.39,-1.99l0.71,-0.08l0.18,-0.09l0.91,-0.91l0.98,-1.31l0.59,-0.5l0.11,-0.24l-0.02,-0.81l-0.08,-0.2l-0.47,-0.5l-0.1,-0.67l0.51,-0.23l0.18,-0.25l0.14,-1.47l-0.05,-0.2l-0.76,-1.09l0.45,-0.15l2.71,0.03l5.01,-0.19Z",name:"Tanzania"},AZ:{path:"M539.36,175.66l0.16,0.09l1.11,0.2l0.32,-0.15l0.4,-0.71l1.22,-0.99l1.11,1.33l1.26,2.09l0.22,0.14l1.06,0.13l0.28,0.29l-1.46,0.17l-0.26,0.24l-0.43,2.26l-0.39,0.92l-0.85,0.63l-0.12,0.25l0.06,1.2l-0.22,0.05l-1.28,-1.25l0.74,-1.25l-0.03,-0.35l-0.74,-0.86l-0.3,-0.1l-1.05,0.27l-2.49,1.82l-0.04,-1.46l-0.18,-0.27l-1.09,-0.47l-0.8,-0.6l0.53,-0.7l-0.06,-0.42l-1.11,-0.84l0.34,-0.51l-0.11,-0.43l-0.89,-0.48l-0.33,-0.49l0.25,-0.2l1.78,0.81l1.35,0.18l0.25,-0.09l0.34,-0.35l0.02,-0.39l-1.04,-1.36l0.28,-0.18l0.49,0.07l1.65,1.74ZM533.53,180.16l0.63,0.67l0.22,0.09l0.8,-0.0l0.04,0.31l0.66,1.09l-0.94,-0.21l-1.16,-1.24l-0.25,-0.71Z",name:"Azerbaijan"},IE:{path:"M405.17,135.35l0.36,2.16l-1.78,2.84l-4.28,1.91l-3.02,-0.43l1.81,-3.13l0.02,-0.26l-1.23,-3.26l3.24,-2.56l1.54,-1.32l0.37,1.33l-0.49,1.77l0.3,0.38l1.49,-0.05l1.68,0.63Z",name:"Ireland"},ID:{path:"M756.56,287.86l0.69,4.02l0.15,0.21l2.59,1.5l0.39,-0.07l2.05,-2.61l2.75,-1.45l2.09,-0.0l2.08,0.85l1.85,0.89l2.52,0.46l0.08,15.44l-1.72,-1.6l-0.15,-0.07l-2.54,-0.51l-0.29,0.1l-0.53,0.62l-2.53,0.06l0.78,-1.51l1.48,-0.66l0.17,-0.34l-0.65,-2.74l-1.23,-2.19l-0.14,-0.13l-4.85,-2.13l-2.09,-0.23l-3.7,-2.28l-0.41,0.1l-0.67,1.11l-0.63,0.14l-0.41,-0.67l-0.01,-1.01l-0.14,-0.25l-1.39,-0.89l2.05,-0.69l1.73,0.05l0.29,-0.39l-0.21,-0.66l-0.29,-0.21l-3.5,-0.0l-0.9,-1.36l-0.19,-0.13l-2.14,-0.44l-0.65,-0.76l2.86,-0.51l1.28,-0.79l3.75,0.96l0.32,0.76ZM758.01,300.37l-0.79,1.04l-0.14,-1.07l0.4,-0.81l0.29,-0.47l0.24,0.31l-0.0,1.0ZM747.45,292.9l0.48,1.02l-1.45,-0.69l-2.09,-0.21l-1.45,0.16l-1.28,-0.07l0.35,-0.81l2.86,-0.1l2.58,0.68ZM741.15,285.69l-0.16,-0.25l-0.72,-3.08l0.47,-1.86l0.35,-0.38l0.1,0.73l0.25,0.26l1.28,0.19l0.18,0.78l-0.11,1.8l-0.96,-0.18l-0.35,0.22l-0.38,1.52l0.05,0.24ZM741.19,285.75l0.76,0.97l-0.11,0.05l-0.65,-1.02ZM739.18,293.52l-0.61,0.54l-1.44,-0.38l-0.25,-0.55l1.93,-0.09l0.36,0.48ZM728.4,295.87l-0.27,-0.07l-2.26,0.89l-0.37,-0.41l0.27,-0.8l-0.09,-0.33l-1.68,-1.37l0.17,-2.29l-0.42,-0.3l-1.67,0.76l-0.17,0.29l0.21,2.92l0.09,3.34l-1.22,0.28l-0.78,-0.54l0.65,-2.1l0.01,-0.14l-0.39,-2.42l-0.29,-0.25l-0.86,-0.02l-0.63,-1.4l0.99,-1.61l0.35,-1.97l1.24,-3.73l0.49,-0.96l1.95,-1.7l1.86,0.69l3.16,0.35l2.92,-0.1l0.17,-0.06l2.24,-1.65l0.11,0.14l-1.8,2.22l-1.72,0.44l-2.41,-0.48l-4.21,0.13l-2.19,0.36l-0.25,0.24l-0.36,1.9l0.08,0.27l2.24,2.23l0.4,0.02l1.29,-1.08l3.19,-0.58l-0.19,0.06l-1.04,1.4l-2.13,0.94l-0.12,0.45l2.26,3.06l-0.37,0.69l0.03,0.32l1.51,1.95ZM728.48,295.97l0.59,0.76l-0.02,1.37l-1.0,0.55l-0.64,-0.58l1.09,-1.84l-0.02,-0.26ZM728.64,286.95l0.79,-0.14l-0.07,0.39l-0.72,-0.24ZM732.38,310.1l-1.89,0.49l-0.06,-0.06l0.17,-0.64l1.0,-1.42l2.14,-0.87l0.1,0.2l0.04,0.58l-1.49,1.72ZM728.26,305.71l-0.17,0.63l-3.53,0.67l-3.02,-0.28l-0.0,-0.42l1.66,-0.44l1.47,0.71l0.16,0.03l1.75,-0.21l1.69,-0.69ZM722.98,310.33l-0.74,0.03l-2.52,-1.35l1.42,-0.3l1.19,0.7l0.72,0.63l-0.06,0.28ZM716.24,305.63l0.66,0.49l0.22,0.06l1.35,-0.18l0.31,0.53l-4.18,0.77l-0.8,-0.01l0.51,-0.86l1.2,-0.02l0.24,-0.12l0.49,-0.65ZM715.84,280.21l0.09,0.34l2.25,1.86l-2.25,0.22l-0.24,0.17l-0.84,1.71l-0.03,0.15l0.1,2.11l-2.27,1.62l-0.13,0.24l-0.06,2.46l-0.74,2.92l-0.02,-0.05l-0.39,-0.16l-2.62,1.04l-0.86,-1.33l-0.23,-0.14l-1.71,-0.14l-1.19,-0.76l-0.25,-0.03l-2.78,0.84l-0.79,-1.05l-0.26,-0.12l-1.61,0.13l-1.8,-0.25l-0.36,-3.13l-0.15,-0.23l-1.18,-0.65l-1.13,-2.02l-0.33,-2.1l0.27,-2.19l1.05,-1.17l0.28,1.12l0.1,0.16l1.71,1.41l0.28,0.05l1.55,-0.49l1.54,0.17l0.23,-0.07l1.4,-1.21l1.05,-0.19l2.3,0.68l0.16,0.0l2.04,-0.53l0.21,-0.19l1.26,-3.41l0.91,-0.82l0.09,-0.14l0.8,-2.64l2.63,0.0l1.71,0.33l-1.19,1.89l0.02,0.34l1.74,2.24l-0.37,1.0ZM692.67,302.0l0.26,0.19l4.8,0.25l0.28,-0.16l0.44,-0.83l4.29,1.12l0.85,1.52l0.23,0.15l3.71,0.45l2.37,1.15l-2.06,0.69l-2.77,-1.0l-2.25,0.07l-2.57,-0.18l-2.31,-0.45l-2.94,-0.97l-1.84,-0.25l-0.13,0.01l-0.97,0.29l-4.34,-0.98l-0.38,-0.94l-0.25,-0.19l-1.76,-0.14l1.31,-1.84l2.81,0.14l1.97,0.96l0.95,0.19l0.28,0.74ZM685.63,299.27l-2.36,0.04l-2.07,-2.05l-3.17,-2.02l-1.06,-1.5l-1.88,-2.02l-1.22,-1.85l-1.9,-3.49l-2.2,-2.11l-0.71,-2.08l-0.94,-1.99l-0.1,-0.12l-2.21,-1.54l-1.35,-2.17l-1.86,-1.39l-2.53,-2.68l-0.14,-0.81l1.22,0.08l3.76,0.47l2.16,2.4l1.94,1.7l1.37,1.04l2.35,2.67l0.22,0.1l2.44,0.04l1.99,1.62l1.42,2.06l0.09,0.09l1.67,1.0l-0.88,1.8l0.11,0.39l1.44,0.87l0.13,0.04l0.68,0.05l0.41,1.62l0.87,1.4l0.22,0.14l1.71,0.21l1.06,1.38l-0.61,3.04l-0.09,3.6Z",name:"Indonesia"},UA:{path:"M500.54,141.42l0.9,0.13l0.27,-0.11l0.52,-0.62l0.68,0.13l2.43,-0.3l1.32,1.57l-0.45,0.48l-0.07,0.26l0.21,1.03l0.27,0.24l1.85,0.15l0.76,1.22l-0.05,0.55l0.2,0.31l3.18,1.15l0.18,0.01l1.75,-0.47l1.42,1.41l0.22,0.09l1.42,-0.03l3.44,0.99l0.02,0.65l-0.97,1.62l-0.03,0.24l0.52,1.67l-0.29,0.79l-2.24,0.22l-0.14,0.05l-1.29,0.89l-0.13,0.23l-0.07,1.16l-1.75,0.22l-0.12,0.04l-1.6,0.98l-2.27,0.16l-0.12,0.04l-2.16,1.17l-0.16,0.29l0.15,1.94l0.14,0.23l1.23,0.75l0.18,0.04l2.06,-0.15l-0.22,0.51l-2.67,0.54l-3.27,1.72l-1.0,-0.45l0.45,-1.19l-0.19,-0.39l-2.34,-0.78l0.15,-0.2l2.32,-1.0l0.09,-0.49l-0.73,-0.72l-0.15,-0.08l-3.69,-0.75l-0.14,-0.96l-0.35,-0.25l-2.32,0.39l-0.21,0.15l-0.91,1.7l-1.77,2.1l-0.93,-0.44l-0.24,-0.0l-1.05,0.45l-0.48,-0.25l0.13,-0.07l0.14,-0.15l0.43,-1.04l0.67,-0.97l0.04,-0.26l-0.1,-0.31l0.04,-0.02l0.11,0.19l0.24,0.15l1.48,0.09l0.78,-0.25l0.07,-0.53l-0.27,-0.19l0.09,-0.25l-0.08,-0.33l-0.81,-0.74l-0.34,-1.24l-0.14,-0.18l-0.73,-0.42l0.15,-0.87l-0.11,-0.29l-1.13,-0.86l-0.15,-0.06l-0.97,-0.11l-1.79,-0.97l-0.2,-0.03l-1.66,0.32l-0.13,0.06l-0.52,0.41l-0.95,-0.0l-0.23,0.11l-0.56,0.66l-1.74,0.29l-0.79,0.43l-1.01,-0.68l-0.16,-0.05l-1.57,-0.01l-1.52,-0.35l-0.23,0.04l-0.71,0.45l-0.09,-0.43l-0.13,-0.19l-1.18,-0.74l0.38,-1.02l0.53,-0.64l0.35,0.12l0.37,-0.41l-0.57,-1.29l2.1,-2.5l1.16,-0.36l0.2,-0.2l0.27,-0.92l-0.01,-0.2l-1.1,-2.52l0.79,-0.09l0.13,-0.05l1.3,-0.86l1.83,-0.07l2.48,0.26l2.84,0.8l1.91,0.06l0.88,0.45l0.29,-0.01l0.72,-0.44l0.49,0.58l0.25,0.11l2.2,-0.16l0.94,0.3l0.39,-0.26l0.15,-1.57l0.61,-0.59l2.01,-0.19Z",name:"Ukraine"},QA:{path:"M548.47,221.47l-0.15,-1.72l0.59,-1.23l0.38,-0.16l0.54,0.6l0.04,1.4l-0.47,1.37l-0.41,0.11l-0.53,-0.37Z",name:"Qatar"},MZ:{path:"M507.71,314.14l1.65,-0.18l2.96,0.7l0.2,-0.02l0.6,-0.29l1.68,-0.06l0.18,-0.07l0.8,-0.69l1.5,0.02l2.74,-0.98l1.74,-1.27l0.25,0.7l-0.1,2.47l0.31,2.27l0.1,3.97l0.42,1.24l-0.7,1.71l-0.94,1.73l-1.52,1.52l-5.06,2.21l-2.88,2.8l-1.01,0.51l-1.72,1.81l-0.99,0.58l-0.15,0.23l-0.21,1.86l0.04,0.19l1.17,1.95l0.47,1.47l0.03,0.74l0.39,0.28l0.05,-0.01l-0.06,2.13l-0.39,1.19l0.1,0.33l0.42,0.32l-0.28,0.83l-0.95,0.86l-2.03,0.88l-3.08,1.49l-1.1,0.99l-0.09,0.28l0.21,1.13l0.21,0.23l0.38,0.11l-0.14,0.89l-1.39,-0.02l-0.17,-0.94l-0.38,-1.23l-0.2,-0.89l0.44,-2.91l-0.01,-0.14l-0.65,-1.88l-1.15,-3.55l2.52,-2.85l0.68,-1.89l0.29,-0.18l0.14,-0.2l0.28,-1.53l-0.03,-0.19l-0.36,-0.7l0.1,-1.83l0.49,-1.84l-0.01,-3.26l-0.14,-0.25l-1.3,-0.83l-0.11,-0.04l-1.08,-0.17l-0.47,-0.55l-0.1,-0.08l-1.16,-0.54l-0.13,-0.03l-1.83,0.04l-0.32,-2.25l7.19,-1.99l1.32,1.12l0.29,0.06l0.55,-0.19l0.75,0.49l0.11,0.81l-0.49,1.11l-0.02,0.15l0.19,1.81l0.09,0.18l1.63,1.59l0.48,-0.1l0.72,-1.68l0.99,-0.49l0.17,-0.29l-0.21,-3.29l-0.04,-0.13l-1.11,-1.92l-0.9,-0.82l-0.21,-0.08l-0.62,0.03l-0.63,-2.98l0.61,-1.67Z",name:"Mozambique"}},height:440.70631074413308,projection:{type:"mill",centralMeridian:11.5},width:900});Donorfy={Address_ToggleFinderDisplay:function(n){var r=$("#CheckBox"+n).is(":checked"),t=$("#AddressLinkDiv"+n),i=$("#AddressEntryDiv"+n),u=$("#AddressLinkFindDiv"+n),f=$("#AddressLinkProfileDiv"+n);r?(t.show(),u.show(),f.hide(),i.hide()):(t.hide(),i.show(),$("#ID"+n).val(""))},CommsPreferenceEnableEdit:function(n){var f="EditCommPrefForm"+n,t,i,r,u;Donorfy.UI_MakeFormActive(f);t="EditBtnCommPrefForm"+n;$("#"+t).toggleClass("hidden");i="SaveBtnCommPrefForm"+n;$("#"+i).toggleClass("hidden");r="CancelBtnCommPrefForm"+n;$("#"+r).toggleClass("hidden");u="UpdateDetails"+n;$("#"+u).toggleClass("hidden")},CommsPreferenceReadOnly:function(n){var f="EditCommPrefForm"+n,t,i,r,u;Donorfy.UI_MakeFormReadOnly(f);t="EditBtnCommPrefForm"+n;$("#"+t).toggleClass("hidden").prop("disabled","");i="SaveBtnCommPrefForm"+n;$("#"+i).toggleClass("hidden");r="CancelBtnCommPrefForm"+n;$("#"+r).toggleClass("hidden");u="UpdateDetails"+n;$("#"+u).toggleClass("hidden")},Constituent_AddLinked:function(n){var t=$("#Form"+n),r=$(t).find("#AddConsTitle").val(),u=$(t).find("#AddConsLastName").val(),f=$(t).find("#AddConsFirstName").val(),e=$(t).find("#AddConsDayOfBirth").val(),o=$(t).find("#AddConsMonthOfBirth").val(),s=$(t).find("#AddConsYearOfBirth").val(),h=$(t).find("#AddConsGender").val(),c=$(t).find("#LinkedConstituentList"),i=$(t).find("#LoadingLinkedConstituentList");i!=null&&i.removeClass("hidden");Donorfy.UI_ShowHide("AddLinkedConstituent");$.ajax({url:"/Constituent/AddLinkedConstituent?id="+n+"&title="+r+"&lastName="+u+"&firstName="+f+"&dayOfBirth="+e+"&monthOfBirth="+o+"&yearOfBirth="+s+"&gender="+h,type:"post",success:function(){Donorfy.AJAX_GetHTMLContentForEntity(n,"Constituent","Constituent","GetLinkedConstituentList",c,i);$(t).find("#AddConsLastName").val("");$(t).find("#AddConsTitle").val("");$(t).find("#AddConsFirstName").val("");$(t).find("#AddConsDayOfBirth").val("");$(t).find("#AddConsMonthOfBirth").val("");$(t).find("#AddConsYearOfBirth").val("");$(t).find("#AddConsGender").val("")},error:function(n,t,i){alert("Error:"+i)}})},Constituent_RemoveMajorGivingProfile:function(n){var i=$("#removeGivingProfileErrDiv"+n),r=$("#removeGivingProfileMsg"+n),t=$("#removeGivingProfileBtn"+n);t.button("loading");$.ajax({url:"/Constituent/RemoveMajorGivingProfile?id="+n,type:"post",success:function(n){n.ErrorMessage!=""&&(i.show(),r.text(n.ErrorMessage),t.button("reset"));n.IsSuccess&&Donorfy.AJAX_HandleResponse_RedirectToURL(n.ReloadUrl)},error:function(n,t,i){alert("Error:"+i)}})},Constituent_RemoveLinked:function(n,t){var u=$("#RemoveLinked"+t),i,r;u.button("loading");i=$("#Form"+n);r=$(i).find("#LinkedConstituentList");$.ajax({url:"/Constituent/RemoveLinkedConstituent?fromId="+n+"&toId="+t,type:"post",success:function(){Donorfy.AJAX_GetHTMLContentForEntity(n,"Constituent","Constituent","GetLinkedConstituentList",r)},error:function(n,t,i){alert("Error:"+i)}})},User_UpdateGettingStartedListItem:function(n){$.ajax({url:"/Home/UpdateGettingStartedItem?id="+n,type:"post",success:function(n){$("#getting-started-grid").html(n)},error:function(n,t,i){alert("Error:"+i)}})},User_ShowHideGuides:function(){var n=$("#GuidesAreVisible").val();return Donorfy.UI_ShowHide("ContainerDivGuide"),n==="Yes"?($("#ShowHideGuideMenuOption").html($("#ShowHideGuideMenuOption").html().replace("Hide","Show")),$("#GuidesAreVisible").val("No"),$("#MenuItemGuideIcon").addClass("fa-angle-down").removeClass("fa-angle-up"),$.ajax({url:"/Home/HideGuide?setting=all&value=all",type:"post",success:function(){},error:function(n,t,i){console.log("UI_ShowHideGuides Error:"+i)}})):($("#ShowHideGuideMenuOption").html($("#ShowHideGuideMenuOption").html().replace("Show","Hide")),$("#GuidesAreVisible").val("Yes"),$("#MenuItemGuideIcon").removeClass("fa-angle-down").addClass("fa-angle-up"),$.ajax({url:"/Home/ShowGuide",type:"post",success:function(){},error:function(n,t,i){console.log("UI_ShowHideGuides Error:"+i)}})),!1},Helper_GetGuid:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){var t=Math.random()*16|0,i=n=="x"?t:t&3|8;return i.toString(16)})},AJAX_GetEntityDetails:function(n,t,i,r,u,f,e){f==="undefined"&&(f="html");var o=$("#"+u);t!==undefined&&t!=="undefined"&&t!==""&&r!==undefined&&r!=="undefined"&&r!==""&&$.ajax({url:"/"+t+"/"+i+r+"?id="+n,type:"post",success:function(n){n.ErrorMessage!=""&&(f=="html"?o.html(n.ErrorMessage):o.val(n.ErrorMessage));n.IsSuccess&&(f=="html"?o.html(n.ConfirmMessage):o.val(n.ConfirmMessage));typeof e=="function"&&e(n)},error:function(n,t,i){i==""&&(f=="html"?o.html("No response from system"):o.val("No response from system"));f=="html"?o.html("Error:"+i):o.val("Error:"+i)}})},AJAX_PerformManageFunction:function(n,t,i,r,u){$("#Form"+t+" #ManageFunction").val(n);Donorfy.AJAX_PerformOperation(t,i,r,u)},ShowPleaseWaitFormMessage:function(n){var t=$("#Form"+n);$(t).find("#pleaseWaitMsg").removeClass("hidden");$(t).find("#pleaseWaitHide").addClass("hidden")},HideFormMessages:function(n){$("#ErrMsgDiv"+n).hide();$("#ConfirmMsgDiv"+n).hide();$(".confirm-message-div").hide();$(".confirm-message-div").hide()},ShowFormMessage:function(n,t){t.ErrorMessage!==""&&(Donorfy.DisplayErrorMessage(t,n),$("[id="+action+id+"]").button("reset"));t.ConfirmMessage!==""&&Donorfy.DisplayConfirmMessage(t)},ShowStandardFormButtons:function(n){$("#StdBtns"+n).show();$("[id^='Conf'][id$='Btns'"+n+"]").hide()},AJAX_PostForm:function(n,t,i,r){var f=$("#Form"+t),u;if(Donorfy.HideFormMessages(t),Donorfy.ShowPleaseWaitFormMessage(t),typeof CKEDITOR!="undefined")for(u in CKEDITOR.instances)CKEDITOR.instances.hasOwnProperty(u)&&CKEDITOR.instances[u].updateElement();$(n).button("loading");$.ajax({url:i,type:"post",data:f.serialize(),success:function(i){Donorfy.ShowFormMessage(t,i);i.IsSuccess&&r?r(i):(Donorfy.ShowStandardFormButtons(t),$(n).button("reset"))},error:function(i,r,u){var f={ErrorMessage:"Error:"+u,ErrorMessageDivId:"",ConfirmMessage:""};Donorfy.ShowFormMessage(t,f);Donorfy.ShowStandardFormButtons(t);$(n).button("reset")}})},AJAX_PerformOperation:function(n,t,i,r,u,f){var o=$("#Form"+n),e;if(typeof CKEDITOR!="undefined")for(e in CKEDITOR.instances)CKEDITOR.instances.hasOwnProperty(e)&&CKEDITOR.instances[e].updateElement();Donorfy.AJAX_PerformOperationForInputs(n,o,o.serialize(),t,i,r,u,f)},AJAX_PerformOperationForInputs:function(n,t,i,r,u,f,e,o){Donorfy.HideFormMessages(n);$(t).find("#pleaseWaitMsg").removeClass("hidden");$(t).find("#pleaseWaitHide").addClass("hidden");var s=$("#"+f+n);$("[id="+f+n+"]").button("loading");$("[id="+u+f+n+"]").button("loading");$.ajax({url:"/"+r+"/"+u+f,type:"post",data:i,success:function(i){if($(t).find("#pleaseWaitMsg").addClass("hidden"),$(t).find("#pleaseWaitHide").removeClass("hidden"),i.ErrorMessage!==""&&(Donorfy.DisplayErrorMessage(i,n),$("#StdBtns"+n).show(),$("[id^='Conf'][id$='Btns"+n+"']").hide(),$("[id="+f+n+"]").button("reset"),$("[id="+u+f+n+"]").button("reset"),i.ContainerToClose!==""&&Donorfy.UI_ShowHide(i.ContainerToClose)),i.IsSuccess){if(i.ReloadClosePopUp&&Donorfy.AJAX_HandleResponse_ClosePopUp(),i.ReloadResetPushdown)if(Donorfy.AJAX_HandleResponse_ResetPushdown(),i.Reload)t=$("#Form"+e),n=e;else{Donorfy.DisplayConfirmMessage(i,n);i.RefreshUserTasks&&Donorfy.RefreshTaskUI();window.pushdownCallback&&window.pushdownCallback(i);return}if(i.Reload){if(i.ResetUnsavedChanges==="yes")try{$("#"+i.ResetUnsavedChangesContainer)[0].reset()}catch(h){}if(i.ReloadUrl==="")i.ReloadController!==""&&(r=i.ReloadController),Donorfy.AJAX_HandleResponse_UpdateUI(n,t,r,s,i.ConfirmMessage,i,o),i.ReloadTarget2!==""&&i.ReloadTarget2!=="null"&&(i.ReloadTarget=i.ReloadTarget2,Donorfy.AJAX_HandleResponse_UpdateUI(n,t,r,s,i.ConfirmMessage,i)),i.RefreshUserTasks&&Donorfy.RefreshTaskUI();else{try{$(t)[0].reset()}catch(h){}Donorfy.SaveConfirmMessage(i.ConfirmMessage,i.ConfirmMessageDivId,n);Donorfy.AJAX_HandleResponse_RedirectToURL(i.ReloadUrl)}}i.Reload||(Donorfy.DisplayConfirmMessage(i,n),$("[id="+f+n+"]").button("reset"),$("[id="+u+f+n+"]").button("reset"),i.RefreshUserTasks&&Donorfy.RefreshTaskUI(),typeof o=="function"&&o(i));i.ContainerToClose!==""&&Donorfy.UI_ShowHide(i.ContainerToClose);i.RefreshHeaderStats&&Donorfy.AJAX_RefreshPageHeaderStats(i.HeaderStatsRefreshId,i.HeaderStatsRefreshController,i.HeaderStatsRefreshAction)}},error:function(t,i,r){r===""&&(r="No response from system");Donorfy.DisplayErrorMessageText("ErrMsgDiv"+n,r);s.button("reset")}})},AJAX_RefreshPageHeaderStats:function(n,t,i){if(i==="TriggerHeaderRefresh")$(document).trigger("refresh-header-stats");else{var r="/"+t+"/"+i+"?id="+n;$.ajax({url:r,type:"GET",cache:!1,datatype:"html",success:function(n){$("#PageHeaderStatsDiv").replaceWith(n)}})}},AJAX_HandleResponse_UpdateUI:function(n,t,i,r,u,f,e){var o="/"+i+"/"+f.ReloadMethod,s;f.ReloadParam1Name!=""&&f.ReloadParam1Name!="null"&&(o=o+"?"+f.ReloadParam1Name+"="+f.ReloadParam1Value);f.ReloadParam2Name!=""&&f.ReloadParam2Name!="null"&&(o=o+"&"+f.ReloadParam2Name+"="+f.ReloadParam2Value);f.ReloadParam3Name!=""&&f.ReloadParam3Name!="null"&&(o=o+"&"+f.ReloadParam3Name+"="+f.ReloadParam3Value);f.ReloadParam4Name!=""&&f.ReloadParam4Name!="null"&&(o=o+"&"+f.ReloadParam4Name+"="+f.ReloadParam4Value);f.ReloadParam5Name!=""&&f.ReloadParam5Name!="null"&&(o=o+"&"+f.ReloadParam5Name+"="+f.ReloadParam5Value);f.ReloadTarget!=""&&f.ReloadTarget!="null"&&(t=$("#"+f.ReloadTarget));s=!1;f.ReloadReplace&&(s=!0);$.ajax({url:o,type:"GET",cache:!1,datatype:"html",success:function(i){s?t.replaceWith(i):t.html(i);i.ConfirmMessage=u;Donorfy.DisplayConfirmMessage(f,n);r.button("reset");typeof e=="function"&&e(f)}})},AJAX_HandleResponse_RedirectToURL:function(n){window.location.href=n},AJAX_HandleResponse_OpenInNewTab:function(n){window.open(n)},AJAX_HandleResponse_ClosePopUp:function(){var t=$("#Popup-Form"),n;t.modal("hide");n=$("#Popup-Target");n.html("")},AJAX_HandleResponse_ResetPushdown:function(){var n=$("#MainPushdownTarget");n.addClass("hidden");n.html('<img src="/images/Spinner1.gif"/>');$("#content").removeClass("hidden");$("#PageHeaderDiv").removeClass("hidden")},AJAX_GetHTMLContent:function(n){var u=$("#Form"+n),t=$("#Target"+n);t.attr("id")==null&&(t=$("#Target"),t.show());$(u).find("#pleaseWaitMsg").removeClass("hidden");$(u).find("#pleaseWaitHide").addClass("hidden");var f=u.serialize(),i=$("#Controller"+n).val(),r=$("#Action"+n).val(),e="/"+i+"/"+r;i!==undefined&&i!=="undefined"&&i!==""&&r!==undefined&&r!=="undefined"&&r!==""&&$.ajax({url:e,type:"get",cache:!1,data:f,datatype:"html",success:function(n){t.show();t.html(n);nav_page_height()},error:function(t,i,r){Donorfy.DisplayErrorMessageText("ErrMsgDiv"+n,"Error:"+r)}})},AJAX_GetActionConfirmation:function(n,t,i,r){var u=$("#Form"+n),f,e;($(u).find("#pleaseWaitMsg").removeClass("hidden"),$(u).find("#pleaseWaitHide").addClass("hidden"),$("[id="+r+n+"]").button("loading"),$("[id="+i+r+n+"]").button("loading"),f=u.serialize(),e="/"+t+"/"+i+r,t!==undefined&&t!=="undefined"&&t!=="")&&r!==undefined&&r!=="undefined"&&r!==""&&$.ajax({url:e,type:"get",cache:!1,data:f,datatype:"html",success:function(t){var u=$("#ConfirmActionDiv"+n),f;u.removeClass("hidden");f=$("#PreviewActionDiv"+n);f.addClass("hidden");u.html(t);$("[id="+r+n+"]").button("reset");$("[id="+i+r+n+"]").button("reset");nav_page_height()},error:function(t,i,r){Donorfy.DisplayErrorMessageText("ErrMsgDiv"+n,"Error:"+r)}})},AJAX_ResetActionConfirmation:function(n){var t=$("#Form"+n),r=$("#ConfirmActionDiv"+n),i;r.addClass("hidden");i=$("#PreviewActionDiv"+n);i.removeClass("hidden");$(t).find("#pleaseWaitMsg").addClass("hidden");$(t).find("#pleaseWaitHide").removeClass("hidden");$("#ResetButton"+n).button("reset")},AJAX_GetHTMLContentForEntity:function(n,t,i,r,u,f,e){var o="id="+n+"&entityType="+t;Donorfy.AJAX_GetHTMLContentForTarget(i,r,o,u,f,e)},AJAX_PostWithCallback:function(n,t,i,r,u,f,e){u!=null&&u.removeClass("hidden");e||(e="html");var o="/"+n+"/"+t+"?"+i;$.ajax({url:o,type:"post",cache:!1,data:r,contentType:"application/json",dataType:e,success:function(n){u!=null&&u.addClass("hidden");typeof f=="function"&&f(n)},error:function(n,t,i){console.log("Error:"+i);u!=null&&u.addClass("hidden")}})},AJAX_GetHTMLContentForTarget:function(n,t,i,r,u,f){u!=null&&u.removeClass("hidden");var e="/"+n+"/"+t+"?"+i;$.ajax({url:e,type:"get",cache:!1,datatype:"html",success:function(n){r.show();r.html(n);u!=null&&u.addClass("hidden");nav_page_height();f&&f(n)},error:function(n,t,i){console.log("Error:"+i);u!=null&&u.addClass("hidden")}})},AJAX_ReplaceContentForEntity:function(n,t,i,r,u,f){var e="id="+n+"&entityType="+t;Donorfy.AJAX_ReplaceContentForTarget(i,r,e,u,f)},AJAX_ReplaceContentForTarget:function(n,t,i,r,u,f){u!=null&&u.removeClass("hidden");var e="/"+n+"/"+t+"?"+i;$.ajax({url:e,type:"get",cache:!1,datatype:"html",success:function(n){r.show();r.replaceWith(n);u!=null&&u.addClass("hidden");nav_page_height();f&&f(n)},error:function(n,t,i){console.log("Error:"+i);u!=null&&u.addClass("hidden")}})},AJAX_Undo:function(n,t,i,r){var f=$("#"+r+n),u;f.button("loading");u=$("#FieldSet"+n);$.ajax({url:"/"+i+"/"+r,type:"post",data:{id:n,entityType:t},success:function(n){u.html(n)},error:function(){Donorfy.DisplayErrorMessageText("ErrMsgDiv"+n,"Error:"+data.ErrorMessage)}})},AJAX_SaveConfigSetting:function(n,t,i,r){$.ajax({url:"/"+n+"/"+t+"?setting="+i+"&value="+r,type:"post",success:function(){},error:function(){}})},Ajax_GetJsonData:function(n,t,i,r,u,f,e,o,s,h,c,l,a,v,y){var p=r+"="+u;f&&(p=p+"&"+f+"="+encodeURIComponent(e));o&&(p=p+"&"+o+"="+encodeURIComponent(s));h&&(p=p+"&"+h+"="+encodeURIComponent(c));l&&(p=p+"&"+l+"="+encodeURIComponent(a));v&&(p=p+"&"+v+"="+encodeURIComponent(y));$.ajax({url:"/"+n+"/"+t+"?"+p,type:"GET",cache:!1,success:function(n){typeof i=="function"&&i(n)},error:function(n,t,i){i===""&&(i="No response from system");console.log("Error:"+i)}})},Grid_Function:function(n){n()},Grid_DisplayForm:function(n,t,i,r,u,f,e,o,s,h,c,l,a,v,y){var k="",d,g,w,b,p;u=="00000000-0000-0000-0000-000000000000"?(g=$("#"+n),d=g.find("tr:first")):d=$(n).closest("tr");k="Target"+u;w=$("tr[id="+k+"]");w.is(":visible")?w.hide():(b="TargetRowDiv"+u,w.length?(w.show(),w.removeClass("hidden")):d.after("<tr id="+k+'><td colspan="99"><div id='+b+' ><img src="/images/Spinner1.gif"/><\/div><\/td><\/tr>'),p=r+"="+u,f!=""&&(p=p+"&"+f+"="+e),o!=""&&(p=p+"&"+o+"="+s),h!=""&&(p=p+"&"+h+"="+c),l!=""&&(p=p+"&"+l+"="+a),v!=""&&(p=p+"&"+v+"="+y),$.ajax({url:"/"+t+"/"+i+"?"+p,type:"get",datatype:"html",cache:!1,success:function(n){$("#"+b).html(n)},error:function(n,t,i){$("#"+b).text("Error:"+i)}}))},Grid_DisplayDetails:function(n,t,i,r,u,f,e,o,s,h,c){var y=$("#GridDetailContainer"+n),a=$("#GridDetailContainerLoading"+n),v=$("#GridDetailContainerDetail"+n),p=$("#GridContainer"+n),l;v.addClass("hidden");y.removeClass("hidden");a.removeClass("hidden");l=r+"="+u;f!=""&&(l=l+"&"+f+"="+e);o!=""&&(l=l+"&"+o+"="+s);h!=""&&(l=l+"&"+h+"="+c);l=l+"&popup=true";$.ajax({url:"/"+t+"/"+i+"?"+l,type:"GET",cache:!1,datatype:"html",success:function(n){v.removeClass("hidden");v.html(n);a.addClass("hidden")},error:function(n,t,i){i==""&&(i="No response from system");a.addClass("hidden");y.addClass("hidden");p.removeClass("hidden");alert("Error:"+i)}})},Tag_PerformOperation:function(n,t,i,r,u,f,e){var o="/Tags/Tag_Operation";o=o+"?"+t+"="+n;o=o+"&tagTypeId="+i;o=o+"&operation="+u;o=o+"&startDate="+f;o=o+"&endDate="+e;o=o+"&tagEntityType="+r;$.ajax({url:o,type:"post",datatype:"html",success:function(){},error:function(n,t,i){alert("Error:"+i)}})},List_CopyToReference:function(n){var i=$("#syncSuccessDiv"+n),r=$("#syncErrorDiv"+n),u=$("#syncError"+n),f="AreYouSureCopyToRef"+n,t="copyBtn"+n;$("#"+t).button("loading");$.ajax({url:"/List/CopyListToReferenceDatabase?id="+n,type:"post",success:function(n){Donorfy.UI_ShowHide(f);n.ErrorMessage!==""&&($("#"+t).button("reset"),r.show(),u.text(n.ErrorMessage));n.IsSuccess&&(i.show(),$("#"+t).button("reset"))},error:function(n,t,i){alert("Error:"+i)}})},List_PreviewUpdate:function(n,t,i,r,u){var e="Form"+n,a=$("#"+e).find("#GridId").val(),v="Grid"+a+"xGrid",f=$("#"+v).DataTable(),o="",s;try{o=f.fnSettings().aaSorting[0][0]}catch(y){}s="";try{s=f.fnSettings().aaSorting[0][1]}catch(y){}var h="",l=0,c=[];try{$.each(f.fnSettings().aoColumns,function(n){if(f.fnSettings().aoColumns[n].bVisible===!0){var t=f.fnSettings().aoColumns[n].sName;t!==""&&(c=c.concat(t),l===o&&(h=t))}l++})}catch(y){}o===0&&(h="EntityId");$("#"+e).find("#SelectedFields").val(c);$("#"+e).find("#SortBy").val(h);$("#"+e).find("#SortDirection").val(s);Donorfy.AJAX_PerformOperation(n,t,i,r,u)},Template_AddTemplate:function(n,t,i,r,u){var h,c,f,a,e,s,o,l;return r===undefined&&(r=","),u===undefined&&(u="."),typeof n=="object"?(h=n,c=n.siblings("input[type='hidden'][id$='TemplateId']")):(h=$("#"+n+"Template"),c=$("#"+i+n+"TemplateId")),f=c.val(),a=parseInt(f)+1,c.val(a),e=h.clone(),s=e.attr("id"),s=i+s.replace("Template",f),e.attr("id",s),e.removeClass("hidden"),e.find(":input").each(function(){var n,t;s=this.id.replace("%S",f);this.id=s;s=this.name.replace("%S",f);$(this).attr("data-fieldIndex",f).attr("data-prefix",i);this.name=s;n=$(this)[0].getAttributeNode("onchange");n&&(n.value=n.value.replace(new RegExp("%S","g"),f));t=$(this)[0].getAttributeNode("onclick");t&&(t.value=t.value.replace(new RegExp("%S","g"),f))}),e.find("a").each(function(){s=this.id.replace("%S",f);this.id=s;s=this.name.replace("%S",f);$(this).attr("data-fieldIndex",f).attr("data-prefix",i);this.name=s;var n=$(this)[0].getAttributeNode("onclick");n&&(n.value=n.value.replace(new RegExp("%S","g"),f))}),e.find("label").each(function(){s=this.id.replace("%S",f);this.id=s;var n=this.htmlFor.replace("%S",f);this.htmlFor=n}),e.find("div").each(function(){s=this.id.replace("%S",f);this.id=s}),o=h.attr("id"),e.find("[id="+o+"DeleteBtn"+f+"]").attr("data-fieldIndex",f).attr("data-prefix",i),e.find("[id="+o+"EditBtn"+f+"]").attr("data-fieldIndex",f).attr("data-prefix",i),e.find("[id="+o+"CancelBtn"+f+"]").attr("data-fieldIndex",f).attr("data-prefix",i),e.find("[id="+o+"ShowDetails]").attr("id",o+"ShowDetails"+f),e.find("[id="+o+"HideDetails]").attr("id",o+"HideDetails"+f),e.find("[id="+o+"Details]").attr("id",i+o+"Details"+f),e.find("[id="+o+"Display]").attr("id",i+o+"Display"+f),e.find("[id="+o+"Edit]").attr("id",i+o+"Edit"+f),l=e.find("[id="+o+"ShowHideLink]"),l.attr("id",o+"ShowHideLink"+f),l.attr("href",'javascript:Donorfy.Template_ShowTemplateDetails("'+i+'","'+o+'","'+f+'")'),e.find("[data-initselect2]").select2(),typeof t=="object"?t.append(e):$("#"+t).append(e),$(".datepicker",e).removeClass("hasDatepicker").datepicker(),$("[data-autonumeric]").autoNumeric("init",{aSep:r,aDec:u}),n==="InstructionDetails"&&Donorfy.UI_InstructionDetailsInitialise(e,f),e},UI_InstructionDetailsInitialise:function(n,t){n.find("#StartDate").each(function(){this.id="StartDate"+t});n.find("#StartOption").each(function(){this.id="StartOption"+t;$("#StartOption"+t).change(function(){$(this).val()=="NextCollectionDay"?$("#StartDate"+t).addClass("hidden"):$("#StartDate"+t).removeClass("hidden")})});n.find("#EndDate").each(function(){this.id="EndDate"+t});n.find("#EndOption").each(function(){this.id="EndOption"+t;$("#EndOption"+t).change(function(){$(this).val()=="NextCollectionDay"?$("#EndDate"+t).addClass("hidden"):$("#EndDate"+t).removeClass("hidden")})})},Template_DeleteTemplate:function(n,t){var r="",u="",i,f;n!=null&&(u=$(n).data("fieldindex"),r=$(n).data("prefix"));i=$("#"+r+t+u);i.addClass("hidden");f=i.find("[id=TemplateStatus]");f.val("deleted")},Template_ToggleDisplayEdit:function(n,t,i,r){var u=i,f=r;n!=null&&(f=$(n).data("fieldindex"),u=$(n).data("prefix"));$("#"+u+t+f).find("#SoftCreditsDisplay").hasClass("hidden")==!0?($("#"+u+t+f).find("#SoftCreditsDisplay").removeClass("hidden"),$("#"+u+t+f).find("#SoftCreditsEdit").addClass("hidden")):($("#"+u+t+f).find("#SoftCreditsDisplay").addClass("hidden"),$("#"+u+t+f).find("#SoftCreditsEdit").removeClass("hidden"));u!=="00000000000000000000000000000000"&&($("#"+u+t+f).find("#"+u+"SoftCreditsDisplay"+f).hasClass("hidden")==!0?($("#"+u+t+f).find("#"+u+"SoftCreditsDisplay"+f).removeClass("hidden"),$("#"+u+t+f).find("#"+u+"SoftCreditsEdit"+f).addClass("hidden")):($("#"+u+t+f).find("#"+u+"SoftCreditsDisplay"+f).addClass("hidden"),$("#"+u+t+f).find("#"+u+"SoftCreditsEdit"+f).removeClass("hidden")))},Template_UpdateDisplayFields:function(n,t){var r=$(n).data("fieldindex"),i=$(n).data("prefix");$("#"+i+t+r).find("#SoftCreditsEdit").find("input").each(function(){var n=this.id+"Label",t;n=n.replace(".","").replace("[","").replace("]","");t=$("#"+n);t.text(this.value)});i!=="00000000000000000000000000000000"&&$("#"+i+t+r).find("#"+i+"SoftCreditsEdit"+r).find("input").each(function(){var n=this.id+"Label",t;n=n.replace(".","").replace("[","").replace("]","");t=$("#"+n);t.text(this.value)});Donorfy.Template_ToggleDisplayEdit(null,t,i,r)},Template_ShowTemplateDetails:function(n,t,i){$("#"+n+t+"Details"+i).hasClass("hidden")==!0?$("#"+n+t+"Details"+i).removeClass("hidden"):$("#"+n+t+"Details"+i).addClass("hidden");Donorfy.UI_ShowHide(n+t+"ShowDetails"+i);Donorfy.UI_ShowHide(n+t+"HideDetails"+i)},TimeLine_DisplayDetails:function(n,t,i,r){var f=$("#Target"+n);if(f.is(":visible"))f.hide();else{f.removeClass("hidden");f.show();f.html('<img src="/images/Spinner1.gif"/>');var e=$("#Controller"+n).val(),o=$("#Action"+n).val(),u="/"+e+"/"+o;u=u+"?id="+n;u=u+"&param1="+t;u=u+"&param2="+i;u=u+"&param3="+r;$.ajax({url:u,type:"get",cache:!1,datatype:"html",success:function(n){f.removeClass("hidden");f.show();f.html(n);nav_page_height()},error:function(n,t,i){alert("Error:"+i)}})}},TimeLineBrowser:function(n,t){Donorfy.UI_DisplayPopUp("Constituent","GetTimeLineDetails","id",n,"param1","TimelineBrowse","param2",t,"","")},TimeLine_Add:function(n,t,i,r,u,f,e,o,s,h){var l=$("#timeline_add"),c;l.removeClass("hidden");c=i+"="+r;u!=""&&(c=c+"&"+u+"="+f);e!=""&&(c=c+"&"+e+"="+o);s!=""&&(c=c+"&"+s+"="+h);$.ajax({url:"/"+n+"/"+t+"?"+c,type:"GET",cache:!1,datatype:"html",success:function(n){l.show();l.html(n)},error:function(n,t,i){i==""&&(i="No response from system");alert("Error:"+i)}})},TimeLine_Display:function(n,t,i,r,u,f,e,o,s,h){var c=$("#"+i),l,a;c.show();s==="Summary"||s===undefined?($("#timeline_filter").removeClass("hidden"),$("#timelinefieldfilter").html("")):s!="MailChimpSummary"&&$("#timeline_filter").addClass("hidden");$("#TimeUpdating").removeClass("hidden");l="GetTimeLine";a="/"+n+"/"+l+"?id="+t+"&dateFilter="+r+"&fromDate="+u+"&toDate="+f+"&filterstr="+e+"&callBack="+o+"&displayType="+s+"&refreshTarget="+h;$.ajax({url:a,type:"get",cache:!1,datatype:"html",success:function(l){c.show();$("#TimeUpdating").addClass("hidden");r==="DateInitialLoad2"?c.append(l):s==="MailChimpSummary"?Donorfy.TimeLine_MergeTimeLines(l):(c.html(l),n==="Constituent"&&r!=="DateInitialLoad1"&&(s===undefined||s==="Summary")&&Donorfy.TimeLine_Display(n,t,i,r,u,f,e,o,"MailChimpSummary",h));nav_page_height();r==="DateInitialLoad1"&&Donorfy.TimeLine_Display(n,t,i,"DateInitialLoad2",u,f,e,o,s,h);n==="Constituent"&&r==="DateInitialLoad2"&&Donorfy.TimeLine_Display(n,t,i,"MailChimpSummary",u,f,e,o,"MailChimpSummary",h)},error:function(n,t,i){c.text("Error:"+i)}})},TimeLine_MergeTimeLines:function(n){try{if($("body").append(n),$("#mergeItems ul li").length<1){$("#mergeItems").remove();return}if($("#TimeLineMain ul li").length<1){$("#mergeItems ul:first li").each(function(n,t){$("#TimeLineMain ul:first").append(t)});$("#mergeItems").remove();return}$("#mergeItems ul:first li").each(function(n,t){var i=null,r=null,u=$(t).data("tldate");$("#TimeLineMain ul:first li").each(function(n,t){r===null&&(r=$(t));var f=$(t).data("tldate");f>u&&(i=$(t))});i===null?$(t).insertBefore($(r)).fadeIn("fast"):$(t).insertAfter($(i)).fadeIn("fast")});$("#mergeItems").remove()}catch(t){console.log("Exception in TimeLine_MergeTimeLines "+t)}},TimeLine_GetDetails:function(n,t,i,r,u,f){var o=$("#"+i),s=$("#"+r),h=$("#"+u),e=$("#"+f);$.ajax({url:"/Constituent/TimeLineGetDetails?id="+n+"&timeLineType="+t,type:"post",success:function(n){n.ErrorMessage!=""&&target.html(n.ErrorMessage);n.IsSuccess&&(o.text(n.ReloadParam1Value),s.text(n.ReloadParam2Value),h.val(n.ReloadParam3Value),e.attr("href","/Constituent/Index?Id="+n.ReloadParam3Value+"&EntityType=Constituent"),e.html(n.ReloadParam3Name))},error:function(n,t,i){i==""&&target.html("No response from system");target.html("Error:"+i)}})},RecurringTransaction_Toggle:function(n,t){Donorfy.UI_ShowHide("ShowFormDetails"+n);Donorfy.UI_ShowHide("HideFormDetails"+n);Donorfy.UI_ShowHide("BasicRow"+n);Donorfy.UI_ShowHide("DetailsRow"+n);Donorfy.UI_ShowHide("CommentsRow"+n);Donorfy.UI_ShowHide("AcknowledgementRow"+n);Donorfy.UI_ShowHide("AckText"+n);$("#AckDate"+n).length&&Donorfy.UI_ShowHide("AckDate"+n);Donorfy.UI_ShowHide("InstructionsRow"+n);Donorfy.UI_ShowHide("AllocationsRow"+n);var i="false",r="Advanced";$("#BasicRow"+n).is(":visible")&&(i="true",r="Basic");Donorfy.AJAX_SaveConfigSetting("Home","SaveConfigSetting","UISettings.UseSimpleRPIForm",i);$("#"+t+" #DisplayMode").val(r)},RecurringTransaction_ToggleDetails:function(n){$("#RecurringTransaction_More"+n).hasClass("hidden")==!0?$("#RecurringTransaction_More"+n).removeClass("hidden"):$("#RecurringTransaction_More"+n).addClass("hidden");Donorfy.UI_ShowHide("ShowRecurringTransactionDetails"+n);Donorfy.UI_ShowHide("HideRecurringTransactionDetails"+n)},RecurringTransaction_ChangeInvoiceTo:function(n){window.FindConstituent("id","Donorfy.RecurringTransaction_ChangeInvoiceToCallBack",n)},RecurringTransaction_UpdateStatus:function(n){window.FindConstituent("id","Donorfy.RecurringTransaction_ChangeInvoiceToCallBack",n)},RecurringTransaction_ChangeInvoiceToCallBack:function(n){var t=$("#Find-Constituent-ParentForm-Id").val();Donorfy.AJAX_GetEntityDetails(n,"Constituent","","GetDetails",t+" #RecurringInstructionInvoiceToDisplay","val");$("#"+t+" #FK_ConstituentInvoiceToId").val(n);$("#Find-Constituent").modal("hide")},Transaction_SoftCreditUpdateFromPercentage:function(n){var t=n.id.replace("PercentageStr","Amount"),f=$(n).data("prefix"),i=0,r,u;$(".soft-credit-amount").each(function(){var n=$(this).autoNumeric("get");i+=isNaN(n)?0:n});$("#"+t).hasClass("changed")||(r=$(n).val().replace("%",""),u=parseFloat(i*(r/100)).toFixed(2),$("#"+t).val(u))},Transaction_AddSoftCreditCallBack:function(n){var t=$("#Find-Constituent-UpdateId").val(),i=$("#"+t+"SoftCreditsTemplateId").val(),r;Donorfy.Template_AddTemplate("SoftCredits","SoftCreditContainer"+t,t);Donorfy.AJAX_GetEntityDetails(n,"Constituent","","GetDetails","softCreditLink"+i,"html");r=$("#SoftCreditsFK_ConstituentId"+i);r.val(n);r=$("#softCreditLink"+i);r.attr("href","/Constituent/Index?Id="+n+'&EntityType=Constituent"');Donorfy.Template_ToggleDisplayEdit(null,"SoftCredits",t,i);$("#Find-Constituent").modal("hide")},Transaction_AddSoftCredit:function(n,t){window.FindConstituent(n,"Donorfy.Transaction_AddSoftCreditCallBack",null,t)},Transaction_swapForms:function(n,t){Donorfy.UI_ShowHide("ShowFormDetails"+n);Donorfy.UI_ShowHide("HideFormDetails"+n);Donorfy.UI_ShowHide("Transaction_SimpleForm"+n);Donorfy.UI_ShowHide("Payment_Basic"+n);Donorfy.UI_ShowHide("Allocation_Basic"+n);var i="false",r="Advanced";$("#Transaction_SimpleForm"+n).is(":visible")&&(i="true",r="Basic");Donorfy.AJAX_SaveConfigSetting("Home","SaveConfigSetting","UISettings.UseSimpleTransactionForm",i);$("#"+t+" #DisplayMode").val(r)},Transaction_showPaymentDetails:function(n){$("#Payment_More"+n).hasClass("hidden")==!0?$("#Payment_More"+n).removeClass("hidden"):$("#Payment_More"+n).addClass("hidden");Donorfy.UI_ShowHide("Transaction_showPaymentDetails"+n);Donorfy.UI_ShowHide("HidePaymentDetails"+n)},TransactionAllocation_AddLinkCallBack:function(n,t,i){var r=$("#LinksTemplateId").val();Donorfy.Template_AddTemplate("Links","TransactionAllocationLinksContainer",i);Donorfy.TimeLine_GetDetails(n,t,"TimeLineDate"+r,"TimeLineDescription"+r,"timeFK_ConstituentId"+r,"timeLineLink"+r);Donorfy.Template_ToggleDisplayEdit(r,"Links");Donorfy.AJAX_HandleResponse_ClosePopUp()},Membership_AddMembershipCallBack:function(n){var i=$("#Find-Constituent-UpdateId").val(),t=$("#Find-Constituent-ParentForm-Id").val(),r=$("#"+i);r.val(n);$("#Find-Constituent").modal("hide");var u="TargetmembershipsAddFormDiv"+t,f="TargetmembershipsAddPleaseWaitForm"+t,e="id="+n+"&param1=MembershipAdd&param2="+n+"&param3=Add&pushDown=true";Donorfy.AJAX_GetHTMLContentForTarget("Constituent","GetTimeLineDetails",e,$("#"+u),$("#"+f))},Membership_AddMembership:function(n,t){window.FindConstituent(n,"Donorfy.Membership_AddMembershipCallBack",t,null)},LinkConstituent_LinkConstituentCallBack:function(n){var t=$("#Find-Constituent-ParentForm-Id").val(),i;$("#"+t).find("#FK_LinkedConstituentId").val(n);i="linkedConstituentDescription"+t;Donorfy.AJAX_GetEntityDetails(n,"Constituent","","GetDetails",i,"html",function(){var n=$("#"+i),t=n.attr("class"),r=n.attr("id"),u=n.attr("style"),f=n.text();n.replaceWith('<span class="'+t+'" id="'+r+'" style="'+u+'">'+f+"<\/span>")});$("#"+t).find("#showLinkedConstituentContainer").removeClass("hidden");$("#"+t).find("#hideLinkedConstituentContainer").addClass("hidden");$("#Find-Constituent").modal("hide")},LinkConstituent_AddLink:function(n,t,i){window.FindConstituent(n,"Donorfy.LinkConstituent_LinkConstituentCallBack",t,i)},LinkConstituent_ClearLink:function(n){var t="linkedConstituentDescription"+n;$("#"+t).html("");$("#"+n).find("#FK_LinkedConstituentId").val("");$("#"+n).find("#showLinkedConstituentContainer").addClass("hidden");$("#"+n).find("#hideLinkedConstituentContainer").removeClass("hidden")},LinkBeneficiaryConstituent_LinkConstituentCallBack:function(n){var t=$("#Find-Constituent-ParentForm-Id").val(),i;$("#"+t).find("#FK_BeneficiaryConstituentId").val(n);i="BeneficiaryConstituentDescription"+t;Donorfy.AJAX_GetEntityDetails(n,"Constituent","","GetDetails",i,"html",function(){var n=$("#"+i),t=n.attr("class"),r=n.attr("id"),u=n.attr("style"),f=n.text();n.replaceWith('<span class="'+t+'" id="'+r+'" style="'+u+'">'+f+"<\/span>")});$("#"+t).find("#showBeneficiaryConstituentContainer").removeClass("hidden");$("#"+t).find("#hideBeneficiaryConstituentContainer").addClass("hidden");$("#Find-Constituent").modal("hide")},LinkBeneficiaryConstituent_AddLink:function(n,t,i){window.FindConstituent(n,"Donorfy.LinkBeneficiaryConstituent_LinkConstituentCallBack",t,i)},LinkBeneficiaryConstituent_ClearLink:function(n){var t="BeneficiaryConstituentDescription"+n;$("#"+t).html("");$("#"+n).find("#FK_BeneficiaryConstituentId").val("");$("#"+n).find("#showBeneficiaryConstituentContainer").addClass("hidden");$("#"+n).find("#hideBeneficiaryConstituentContainer").removeClass("hidden")},Search_toggleFacets:function(n,t){Donorfy.UI_ShowHide(t);$("#"+n).removeClass("col-md-9");$("#"+n).addClass("col-md-12");$("#"+t).is(":visible")&&($("#"+n).removeClass("col-md-12"),$("#"+n).addClass("col-md-9"))},Search_RefreshSearchFromFilters:function(n,t,i){var r;$("#ApplyFilter"+n).button("loading");var f=$("#SortOrderFld"+n).val(),e=$("#User1"+n).val(),o=$("#GridLayout"+n).val(),u=$("#CurrentUserOnly"+n).val();if(u=="undefined"&&(u="false"),r=Donorfy.Search_GetSelectedFilters(i),r!==null)try{r=String(r).replace("&","%26")}catch(s){}$.ajax({url:"/Search/RefreshSearchFromFilters?entityType="+t+"&entityId="+e+"&selectedFilterValues="+r+"&gridLayout="+o+"&gridId="+n+"&sortOrder="+f+"&currentUserOnly="+u,type:"GET",cache:!1,datatype:"html",success:function(t){$("#ApplyFilter"+n).button("reset");$("#searchResultsList"+n).html(t)},error:function(){$("#ApplyFilter"+n).button("reset")}})},Search_ClearFilters:function(n,t){var r;$("#ClearFilter"+n).button("loading");var u=$("#SortOrderFld"+n).val(),f=$("#User1"+n).val(),e=$("#GridLayout"+n).val(),i=$("#CurrentUserOnly"+n).val();i=="undefined"&&(i="false");r="";$.ajax({url:"/Search/RefreshSearchFromFilters?entityType="+t+"&entityId="+f+"&selectedFilterValues="+r+"&gridLayout="+e+"&gridId="+n+"&sortOrder="+u+"&currentUserOnly="+i,type:"GET",cache:!1,datatype:"html",success:function(t){$("#ClearFilter"+n).button("reset");$("#searchResultsList"+n).html(t)},error:function(){$("#ClearFilter"+n).button("reset")}})},Search_GetSelectedFilters:function(n){return $("#"+n+" select option:selected").map(function(){return this.value}).get()},Search_RefreshSearchFromFacets:function(n){var i,r;$("#SearchBtn"+n).button("loading");var u=$("#SortOrderFld"+n).val(),f=$("#GridLayout"+n).val(),e=$("#SelectSearchSubEntity"+n).val(),o=$("#SelectSearchEntity"+n).val(),s=$("#SearchFld"+n).val(),t=$("#CurrentUserOnly"+n).val();t=="undefined"&&(t="false");i=Donorfy.GetSelectedFacets(n);r=encodeURIComponent(Donorfy.GetFilterForQueryString(i));$.ajax({url:"/Search/RefreshSearch?searchFor="+s+"&entityType="+o+"&selectedEntityTypes="+e+"&currentUserOnly="+t+"&selectedFacetValues="+r.toString()+"&dateValues=&numericValues=&gridLayout="+f+"&gridId="+n+"&sortOrder="+u,type:"GET",cache:!1,datatype:"html",success:function(t){$("#SearchBtn"+n).button("reset");$("#searchResultsList"+n).html(t)},error:function(){$("#SearchBtn"+n).button("reset")}})},Search_GetFacetStateValues:function(n){if(!n)return[];var t=[],i=Donorfy.Search_GetFacetState();return n==="Prospect"&&(t=["EntityStatus:Active"]),n==="Document"&&(t=["DocumentDownloaded:No","DocumentType:Merged Document"]),$.each(i,function(i,r){return r.type===n.replace(" ","")?(t=r.values,!1):!0}),t},Search_GetFacetState:function(){var n=window.localStorage.getItem("SearchFacetsState");return n?JSON.parse(n):{}},Search_SaveFacetState:function(n,t){var i=Donorfy.Search_GetFacetState(),r={type:n.replace(" ",""),values:Donorfy.GetSelectedFacets(t)};i[n]=r;window.localStorage.setItem("SearchFacetsState",JSON.stringify(i))},Search_LoadFacetByDependency:function(n,t,i,r,u){$.ajax({url:"/Search/GetFacetByDependency?searchType="+n+"&field="+t+"&dependencyField="+i+"&dependencyValue="+r.toString(),type:"GET",cache:!1,datatype:"json",success:function(n){var i,r;n.IsSuccess&&(u?(i=$("."+t+ + "-select-valueslist select.facet-select"),i.select2("destroy"),i.empty(),$.each(n.Data.ItemList,function(n,t){var r=$("<option>",{value:t.Value}).text(t.Text);r.appendTo(i)}),i.select2()):(r=$("."+t+"-select-valueslist"),r.empty(),$.each(n.Data.ItemList,function(n,t){var i=$("<div>").addClass("facet-checkbox").appendTo(r);$("<input>",{type:"checkbox",id:t.Value}).appendTo(i);i.append("&nbsp;");$("<label>").text(t.Text).appendTo(i)})))},error:function(n,t,i){i===""&&(i="No response from system");console.log("Error:"+i)}})},Search_RefreshFacets:function(n,t,i,r){var u=Donorfy.Search_GetFacetStateValues(n),f=encodeURIComponent(Donorfy.GetFilterForQueryString(u)),e="entity="+n+"&entitySubType="+t+"&gridId="+i+"&facetFilters="+f.toString();Donorfy.AJAX_GetHTMLContentForTarget("Search","GetFacets",e,$("#facetList").parent(),null,function(){$("#FieldList"+i+" select.facet-select").select2();Donorfy.Search_GetInitialFacetState(n,i);Donorfy.Search_SaveFacetState(n,i);$(document).trigger("facets-refreshed");r&&$(document).trigger("facet-selection-changed",[i])})},Search_GetInitialFacetState:function(n,t){var i=Donorfy.Search_GetFacetStateValues(n);return $.each(i,function(n,i){var h,c,u,f,l;if(i)try{var e=$.isArray(i),o=e?i[0].substring(0,i[0].indexOf(":")):i.substring(0,i.indexOf(":")),r=$("#FieldList"+t+" ."+o+"-select-valueslist"),s=r.find(".facet-value input[name='"+o+"']");s.length>0?(h=i.substring(i.indexOf(":")+1,i.length),s.val(h)):(r.find("select.facet-select").removeClass("facet-select").addClass("temp-select-changes"),e?r.find("select.temp-select-changes").val(i).trigger("change"):(c=i.replace(/[!"#$ %&'()*+,.\/:;<=>?@[\\\]^`{|}~]/g,"\\$&"),u=$("#"+c),u.length>0?u.prop("checked",!0):(f=r.find("select.temp-select-changes"),f.val(i).trigger("change"),l=i.length>0,f.closest("div").find(".select2-container .select2-choice abbr").toggle(l))),r.find("select.temp-select-changes").addClass("facet-select").removeClass("temp-select-changes"))}catch(a){console.log("Search_GetInitialFacetState:"+a)}}),Donorfy.GetFilterForQueryString(i).toString()},GetFilterForQueryString:function(n){if(n==null)return null;return n.map(function(n){return $.isArray(n)?n.map(function(n){return n.replace(",","")}):n.replace(",","")})},Search_GetResults:function(n){var t,i,r,u;if($("#SearchBtn"+n).button("loading"),$("#SearchInProgressFlag"+n).val("yes"),$("#SearchFld"+n).val().startsWith("#")){Donorfy.AJAX_HandleResponse_RedirectToURL("/Search/All?param="+encodeURIComponent($("#SearchFld"+n).val()));return}var o=encodeURIComponent($("#SearchFld"+n).val()),s=$("#SortOrderFld"+n).val(),h=$("#GridLayout"+n).val(),f=$("#SelectCallBackFunction"+n).val();f=="undefined"&&(f="");t=$("#HideFacets"+n).val();t=="undefined"&&(t="false");i=$("#CurrentUserOnly"+n).val();i=="undefined"&&(i="false");r=$("#ShowPaging"+n).val();r=="undefined"&&(r="true");u=$("#ShowRowsPerPage"+n).val();u=="undefined"&&(u="true");var c=$("#SelectSearchEntity"+n).val(),l="/Search/Search?searchFor="+o+"&entityType="+c+"&selectedEntityTypes=&gridLayout="+h+"&selectCallBack="+f+"&hideFacets="+t+"&currentUserOnly="+i+"&showPaging="+r+"&showRowsPerPage="+u+"&gridId="+n+"&sortOrder="+s,e=$("#resultsContainer"+n);$.ajax({url:l,type:"get",cache:!1,datatype:"html",success:function(t){$("#SearchBtn"+n).button("reset");$("#SearchInProgressFlag"+n).val("");e.show();e.html(t)},error:function(){$("#SearchBtn"+n).button("reset");$("#SearchInProgressFlag"+n).val("");alert(data.ErrorMessage);window.errorMessageDiv.text("Error:"+data.ErrorMessage)}})},UI_WebwidgetUpdateCode:function(n){$("#HTML"+n.ReloadParam1Value).val(n.Data);$("#CopyGenerateWebWidget"+n.ReloadParam1Value).removeClass("hidden")},UI_PreviewForm:function(n){return window.open(n,"_blank"),!1},UI_ShowCopyForm:function(n){var t="formCopyDiv"+n,i="formCopyDescription"+n,r="formCopyError"+n;return $("#"+i).val(""),$("#"+r).html("").hide(),Donorfy.UI_ShowHide(t),!1},UI_CopyForm:function(n,t,i){var e="formCopyDescription"+n,r="formCopyError"+n,u="FormCopyBtn"+n,o="formCopyDiv"+n,f=$("#"+e).val();return f===""?($("#"+r).css("display","block").removeClass("hidden").html("A description must be entered for the copied form"),!1):($("#"+t).show(),$("#"+i).html("Please Wait.."),$("#"+u).button("loading"),$.ajax({url:"/Form/FormCopy?id="+n+"&description="+encodeURIComponent(f),type:"post",success:function(n){$("#"+u).button("reset");n.ErrorMessage!==""&&$("#"+r).css("display","block").removeClass("hidden").html(n.ErrorMessage);n.IsSuccess&&($("#"+t).html(n.ConfirmMessage),Donorfy.UI_ShowHide(o))},error:function(n,t,i){i===""?$("#"+r).css("display","block").removeClass("hidden").html("No response from system"):$("#"+r).css("display","block").removeClass("hidden").html("Error:"+i);$("#"+u).button("reset")}}),!1)},UI_GenerateFormTrackingCodes:function(n){$("#trackingFormError"+n).html("").hide();$("#iframeTrackingCodeExampleDiv"+n).hide();$("#buttonTrackingCodeExampleDiv"+n).hide();let r="",u="",f="",s="",i="",h=$("#HostPageUrl"+n).val();try{r=$("#UtmSourceSelectId"+n).select2("data").text;i="utm_source="+encodeURIComponent(r)}catch(l){}try{u=$("#UtmMediumSelectId"+n).select2("data").text;i+="&utm_medium="+encodeURIComponent(u)}catch(l){}try{f=$("#UtmContentSelectId"+n).select2("data").text;i+="&utm_content="+encodeURIComponent(f)}catch(l){}try{s=$("#CampaignId"+n).select2("data").text;i+="&utm_campaign="+encodeURIComponent(s)}catch(l){}let t="";if(r===""&&(t=t+"UTM Source"),u===""&&(t!==""&&(t=t+", "),t=t+"UTM Medium"),$("#displayAsStandAloneHiddenFieldId"+n).val().toLowerCase()==="false"&&h===""&&(t!==""&&(t=t+", "),t=t+"URL for the page on your website which will host this form"),t!=="")return t=t+" must be entered",$("#trackingFormError"+n).css("display","block").removeClass("hidden").html(t),!1;let e=$("#btnTrackingCodeExampleTemplate"+n).val(),o=$("#iframeTrackingCodeExampleTemplate"+n).val(),c=$("#linkTrackingCodeExampleTemplate"+n).val();return e=e.replace("##TrackingCodes##",i),o=o.replace("##TrackingCodes##",i),$("#iframeTrackingCodeExample"+n).val(o),$("#buttonTrackingCodeExample"+n).val(e),$("#standaloneLinkTrackingCodeExample"+n).val(c+"?"+i),$("#hostpageTrackingCodeExample"+n).val(h+"?"+i),$("#iframeTrackingCodeExampleDiv"+n).show(),$("#buttonTrackingCodeExampleDiv"+n).hide(),$("#displayAsStandAloneHiddenFieldId"+n).val().toLowerCase()==="true"&&($("#iframeTrackingCodeExampleDiv"+n).hide(),$("#buttonTrackingCodeExampleDiv"+n).show()),$.ajax({url:"/Form/SaveFormTrackingCodes?utmSource="+encodeURIComponent(r)+"&utmMedium="+encodeURIComponent(u)+"&utmContent="+encodeURIComponent(f),type:"post",success:function(){},error:function(){}}),!1},UI_ClearFormTrackingCodes:function(n){$("#trackingFormError"+n).html("").hide();try{$("#UtmSourceSelectId"+n).select2("val","");$("#UtmMediumSelectId"+n).select2("val","");$("#UtmContentSelectId"+n).select2("val","");$("#iframeTrackingCodeExampleDiv"+n).hide();$("#buttonTrackingCodeExampleDiv"+n).hide()}catch(t){}return!1},UI_UpdateDisplayStandalone:function(n){let t="displayAsStandAloneSliderId"+n,f="displayAsStandAloneHiddenFieldId"+n,i="iframeCodeExampleDiv"+n,r="buttonCodeExampleDiv"+n,u="HostPageUrlDiv"+n;Donorfy.UI_ToggleSwitch(f,t);$("#"+t).is(":checked")?($("#"+i).hide(),$("#"+r).show(),$("#"+u).hide()):($("#"+i).show(),$("#"+r).hide(),$("#"+u).show())},UI_AddElementToForm:function(n,t,i,r,u,f,e){var s,h,l,a,c,v,y,w;try{u===undefined&&(u=",");f===undefined&&(f=".");var p="Count"+r+"FormElementsTemplateId",b=$("#"+t+"Template"),o=$("#"+p).val(),k=parseInt(o)+1;$("#"+p).val(k);s=b.clone();h=s.attr("id");h=r+h.replace("Template",o).replace(t,"FormElements");s.attr("id",h);l=Donorfy.Helper_GetGuid();s.attr("data-id",l);s.removeClass("hidden");s.find("#CampaignFormElementId").val(l);s.find("#ElementOrder").val(o);s.find("#TemplateStatus").val("new");s.find(":input").each(function(){h=this.id.replace("%S",o);this.id=h;h=this.name.replace("%S",o);$(this).attr("data-fieldIndex",o).attr("data-prefix",r);this.name=h;var n=$(this)[0].getAttributeNode("onchange");n&&(n.value=n.value.replace(new RegExp("%S","g"),o))});s.find("a").each(function(){h=this.id.replace("%S",o);this.id=h;h=this.name.replace("%S",o);this.name=h});s.find("label").each(function(){if(h=this.id,h!=="undefined"){h=this.id.replace("%S",o);this.id=h;var n=this.htmlFor.replace("%S",o);this.htmlFor=n}});s.find("div").each(function(){h=this.id;h!=="undefined"&&h!==""&&(h=this.id.replace("%S",o),this.id=h)});s.find("[id="+t+"DeleteBtn"+o+"]").attr("data-fieldIndex",o).attr("data-prefix",r);s.find("[id="+t+"EditBtn"+o+"]").attr("data-fieldIndex",o).attr("data-prefix",r);s.find("[id="+t+"CancelBtn"+o+"]").attr("data-fieldIndex",o).attr("data-prefix",r);s.find("[id="+t+"ShowDetails]").attr("id",t+"ShowDetails"+o);s.find("[id="+t+"HideDetails]").attr("id",t+"HideDetails"+o);s.find("[id="+t+"Details]").attr("id",r+t+"Details"+o);s.find("[id="+t+"Display]").attr("id",r+t+"Display"+o);s.find("[id="+t+"Edit]").attr("id",r+t+"Edit"+o);a=s.find("[id="+t+"ShowHideLink]");a.attr("id",t+"ShowHideLink"+o);a.attr("href",'javascript:Donorfy.UI_ShowHideToggleLinkUpdateCaption("'+t+"ShowHideLink"+o+'","elementDetailsDivId'+o+'","Show Details","Hide Details")');s.find("[data-initselect2]").select2();s.find("[id=AddBtnId]").val($(n).attr("id"));$("#"+i).append(s);$(".datepicker",s).removeClass("hasDatepicker").datepicker();$("[data-autonumeric]").autoNumeric("init",{aSep:u,aDec:f});Donorfy.UI_FormElementUpdateSequence($("#formElements").data("output",$("#FormElementsSequenceList")));s.find("[data-initckeditor]").length>0&&(c=Donorfy.Helper_GetGuid(),s.find("[data-initckeditor]").attr("id",c),v=CKEDITOR.instances[c],v&&v.destroy(!0),CKEDITOR.replace(c,{customConfig:"/Scripts/ckeditor/basicdonorfyconfig.js",startupFocus:!1}));e==="True"&&$(n).prop("disabled",!0);y=$(n).attr("data-excludegroup");y!=="NoGroup"&&(w=$(n).attr("data-container"),$("#"+w).find("[data-excludegroup='"+y+"']").prop("disabled",!0));t==="DonationElement"&&Donorfy.UI_DonationDisplaySettingsInitialise(o,r,"DonationSuggestedAmounts","DonationAskIfOneOffOrRecurring","DonationConnectedConstituentNone");t==="Membership"&&Donorfy.UI_MembershipProductSettingsInitialise(s,o)}catch(d){console.log("Exception "+d)}return!1},UI_MembershipProductSettingsInitialise:function(n,t){n.find("[data-productdetails]").each(function(){this.href=this.href.replace("%S",t)});n.find("[data-pricingOptions]").each(function(){var t=$(this).data("pricingoptions"),i=n.find("[data-pricingOptions="+t+"]").attr("id"),r=n.find("[data-fixedPriceDiv="+t+"]"),u=n.find("[data-optionPriceDiv="+t+"]");$("#"+i+" :radio").change(function(){var n=$("#"+i+" input[type='radio']:checked").val();n==="MembershipProductPriceChoiceOf"?($(r).addClass("hidden"),$(u).removeClass("hidden")):($(r).removeClass("hidden"),$(u).addClass("hidden"))})})},UI_DonationDisplaySettingsInitialise:function(n,t,i,r,u){const c="DonationFrequencyOption"+t+n,f="donationAnyFrequencyContainer"+t+n;var e="donationSuggestedAmountsContainer"+t+n,l="DonationAmountOption"+t+n,a="donationConnectedConstituentOptionLocalId"+t+n,o="donationFixedAmountContainer"+t+n,s="donationAnyAmountContainer"+t+n,h="donationPaymentMethodFrequency"+t+n;Donorfy.UI_FormsDonationSetUpGiftOptions(i,e,o,s,h);Donorfy.UI_FormsDonationSetUpFrequencyOptions(r,f);Donorfy.UI_FormsDonationSetUpConnectedConstituentOptions(u,n,t);$("#"+c).select2().on("select2-selecting",function(n){Donorfy.UI_FormsDonationSetUpFrequencyOptions(n.val,f)});$("#"+l).select2().on("select2-selecting",function(n){Donorfy.UI_FormsDonationSetUpGiftOptions(n.val,e,o,s,h)});$("#"+a).select2().on("select2-selecting",function(i){Donorfy.UI_FormsDonationSetUpConnectedConstituentOptions(i.val,n,t)})},UI_FormDonationShowDonationComments:function(n,t,i,r,u){Donorfy.UI_Checkbox_StoreValue(n,t,r,u)},UI_FormDonationClearConnectedConstituent:function(n,t,i,r){return $("#"+n).show(),$("#"+t).hide(""),$("#"+i).html(""),$("#"+i).hide(""),$("#"+r).val(""),!1},UI_FormDonationSetConnectedConstituentDetails:function(n,t,i,r,u){$("#"+t).hide();$("#"+i).show();$("#"+u).val(n);Donorfy.AJAX_GetHTMLContentForEntity(n,"Constituent","Constituent","GetProfile",$("#"+r))},UI_FormsDonationSetUpConnectedConstituentOptions:function(n,t,i){var r="donationConnectedConstituentSelectedContainer"+i+t,u="donationConnectedConstituentFromListContainer"+i+t;$("#"+r).hide();$("#"+u).hide();n==="DonationConnectedConstituentSelected"&&$("#"+r).show();n==="DonationConnectedConstituentFromList"&&$("#"+u).show()},UI_DonationAmountsDisplay:function(n,t,i,r,u){const f=n.target.getAttribute("data-value");n.target.checked?$("#"+f).removeClass("hidden"):$("#"+f).addClass("hidden");Donorfy.UI_Checkbox_StoreValue(n,t,r,u)},UI_SetDonationAmountDefault:function(n,t,i,r,u){var f="",e="";i.indexOf("DonationSuggestedAmount1IsDefault")>0&&(f=i.replace("Amount1","Amount2"),$("#"+f).prop("checked",!1),f=i.replace("Amount1","Amount3"),$("#"+f).prop("checked",!1),e=i.replace("Amount1","Amount2").replace("checkboxId","id"),$("#"+e).val("No"),e=i.replace("Amount1","Amount3").replace("checkboxId","id"),$("#"+e).val("No"));i.indexOf("DonationSuggestedAmount2IsDefault")>0&&(f=i.replace("Amount2","Amount1"),$("#"+f).prop("checked",!1),f=i.replace("Amount2","Amount3"),$("#"+f).prop("checked",!1),e=i.replace("Amount2","Amount1").replace("checkboxId","id"),$("#"+e).val("No"),e=i.replace("Amount2","Amount3").replace("checkboxId","id"),$("#"+e).val("No"));i.indexOf("DonationSuggestedAmount3IsDefault")>0&&(f=i.replace("Amount3","Amount1"),$("#"+f).prop("checked",!1),f=i.replace("Amount3","Amount2"),$("#"+f).prop("checked",!1),e=i.replace("Amount3","Amount1").replace("checkboxId","id"),$("#"+e).val("No"),e=i.replace("Amount3","Amount2").replace("checkboxId","id"),$("#"+e).val("No"));i.indexOf("DonationSuggestedRecurringAmount1IsDefault")>0&&(f=i.replace("Amount1","Amount2"),$("#"+f).prop("checked",!1),f=i.replace("Amount1","Amount3"),$("#"+f).prop("checked",!1),e=i.replace("Amount1","Amount2").replace("checkboxId","id"),$("#"+e).val("No"),e=i.replace("Amount1","Amount3").replace("checkboxId","id"),$("#"+e).val("No"));i.indexOf("DonationSuggestedRecurringAmount2IsDefault")>0&&(f=i.replace("Amount2","Amount1"),$("#"+f).prop("checked",!1),f=i.replace("Amount2","Amount3"),$("#"+f).prop("checked",!1),e=i.replace("Amount2","Amount1").replace("checkboxId","id"),$("#"+e).val("No"),e=i.replace("Amount2","Amount3").replace("checkboxId","id"),$("#"+e).val("No"));i.indexOf("DonationSuggestedRecurringAmount3IsDefault")>0&&(f=i.replace("Amount3","Amount1"),$("#"+f).prop("checked",!1),f=i.replace("Amount3","Amount2"),$("#"+f).prop("checked",!1),e=i.replace("Amount3","Amount1").replace("checkboxId","id"),$("#"+e).val("No"),e=i.replace("Amount3","Amount2").replace("checkboxId","id"),$("#"+e).val("No"));i.indexOf("DonationAnnualSuggestedRecurringAmount1IsDefault")>0&&(f=i.replace("Amount1","Amount2"),$("#"+f).prop("checked",!1),f=i.replace("Amount1","Amount3"),$("#"+f).prop("checked",!1),e=i.replace("Amount1","Amount2").replace("checkboxId","id"),$("#"+e).val("No"),e=i.replace("Amount1","Amount3").replace("checkboxId","id"),$("#"+e).val("No"));i.indexOf("DonationAnnualSuggestedRecurringAmount2IsDefault")>0&&(f=i.replace("Amount2","Amount1"),$("#"+f).prop("checked",!1),f=i.replace("Amount2","Amount3"),$("#"+f).prop("checked",!1),e=i.replace("Amount2","Amount1").replace("checkboxId","id"),$("#"+e).val("No"),e=i.replace("Amount2","Amount3").replace("checkboxId","id"),$("#"+e).val("No"));i.indexOf("DonationAnnualSuggestedRecurringAmount3IsDefault")>0&&(f=i.replace("Amount3","Amount1"),$("#"+f).prop("checked",!1),f=i.replace("Amount3","Amount2"),$("#"+f).prop("checked",!1),e=i.replace("Amount3","Amount1").replace("checkboxId","id"),$("#"+e).val("No"),e=i.replace("Amount3","Amount2").replace("checkboxId","id"),$("#"+e).val("No"));Donorfy.UI_Checkbox_StoreValue(n,t,r,u)},UI_SetDonationFrequencyDefault:function(n,t,i){var r="",u=n.target.getAttribute("data-custom"),f=n.target.getAttribute("data-value");i.indexOf("Frequency1")>0&&(r=i.replace("Frequency1","Frequency2"),$("#"+r).prop("checked",!1),r=i.replace("Frequency1","Frequency3"),$("#"+r).prop("checked",!1),r=i.replace("Frequency1","Frequency4"),$("#"+r).prop("checked",!1),r=i.replace("Frequency1","Frequency5"),$("#"+r).prop("checked",!1),r=i.replace("Frequency1","Frequency6"),$("#"+r).prop("checked",!1),r=i.replace("Frequency1","Frequency7"),$("#"+r).prop("checked",!1));i.indexOf("Frequency2")>0&&(r=i.replace("Frequency2","Frequency1"),$("#"+r).prop("checked",!1),r=i.replace("Frequency2","Frequency3"),$("#"+r).prop("checked",!1),r=i.replace("Frequency2","Frequency4"),$("#"+r).prop("checked",!1),r=i.replace("Frequency2","Frequency5"),$("#"+r).prop("checked",!1),r=i.replace("Frequency2","Frequency6"),$("#"+r).prop("checked",!1),r=i.replace("Frequency2","Frequency7"));i.indexOf("Frequency3")>0&&(r=i.replace("Frequency3","Frequency1"),$("#"+r).prop("checked",!1),r=i.replace("Frequency3","Frequency2"),$("#"+r).prop("checked",!1),r=i.replace("Frequency3","Frequency4"),$("#"+r).prop("checked",!1),r=i.replace("Frequency3","Frequency5"),$("#"+r).prop("checked",!1),r=i.replace("Frequency3","Frequency6"),$("#"+r).prop("checked",!1),r=i.replace("Frequency3","Frequency7"),$("#"+r).prop("checked",!1));i.indexOf("Frequency4")>0&&(r=i.replace("Frequency4","Frequency1"),$("#"+r).prop("checked",!1),r=i.replace("Frequency4","Frequency2"),$("#"+r).prop("checked",!1),r=i.replace("Frequency4","Frequency3"),$("#"+r).prop("checked",!1),r=i.replace("Frequency4","Frequency5"),$("#"+r).prop("checked",!1),r=i.replace("Frequency4","Frequency6"),$("#"+r).prop("checked",!1),r=i.replace("Frequency4","Frequency7"),$("#"+r).prop("checked",!1));i.indexOf("Frequency5")>0&&(r=i.replace("Frequency5","Frequency1"),$("#"+r).prop("checked",!1),r=i.replace("Frequency5","Frequency2"),$("#"+r).prop("checked",!1),r=i.replace("Frequency5","Frequency3"),$("#"+r).prop("checked",!1),r=i.replace("Frequency5","Frequency4"),$("#"+r).prop("checked",!1),r=i.replace("Frequency5","Frequency6"),$("#"+r).prop("checked",!1),r=i.replace("Frequency5","Frequency7"),$("#"+r).prop("checked",!1));i.indexOf("Frequency6")>0&&(r=i.replace("Frequency6","Frequency1"),$("#"+r).prop("checked",!1),r=i.replace("Frequency6","Frequency2"),$("#"+r).prop("checked",!1),r=i.replace("Frequency6","Frequency3"),$("#"+r).prop("checked",!1),r=i.replace("Frequency6","Frequency4"),$("#"+r).prop("checked",!1),r=i.replace("Frequency6","Frequency5"),$("#"+r).prop("checked",!1),r=i.replace("Frequency6","Frequency7"),$("#"+r).prop("checked",!1));i.indexOf("Frequency7")>0&&(r=i.replace("Frequency7","Frequency1"),$("#"+r).prop("checked",!1),r=i.replace("Frequency7","Frequency2"),$("#"+r).prop("checked",!1),r=i.replace("Frequency7","Frequency3"),$("#"+r).prop("checked",!1),r=i.replace("Frequency7","Frequency4"),$("#"+r).prop("checked",!1),r=i.replace("Frequency7","Frequency5"),$("#"+r).prop("checked",!1),r=i.replace("Frequency7","Frequency6"),$("#"+r).prop("checked",!1));n.target.checked?$("#"+u).val(f):$("#"+u).val("")},UI_FormDonationShowGiftAidOptions:function(n,t,i,r,u){Donorfy.UI_Checkbox_StoreValue(n,t,r,u)},UI_FormsDonationSetUpGiftOptions:function(n,t,i,r,u){$("#"+t).hide();$("#"+i).hide();$("#"+r).hide();$("#"+u).hide();n==="DonationSuggestedAmounts"&&$("#"+t).show();n==="DonationFixedAmount"&&($("#"+i).show(),$("#"+u).show());n==="DonationAnyAmount"&&($("#"+r).show(),$("#"+u).show())},UI_FormsDonationSetUpFrequencyOptions:function(n,t){$("#"+t).hide();n==="DonationAskIfOneOffOrRecurring"&&$("#"+t).show()},UI_DeleteElementFromForm:function(n,t){var f="",e="",r,o,i,u,s;return(n!=null&&(e=$(n).data("fieldindex"),f=$(n).data("prefix")),r=$("#"+f+t+e),r.addClass("hidden"),o=r.find("[id=TemplateStatus]"),o.val("deleted"),i=r.find("[id=AddBtnId]").val(),i===undefined||i==="")?!1:(u=$("#"+i).attr("data-excludegroup"),u!=="NoGroup"&&(s=$("#"+i).attr("data-container"),$("#"+s).find("[data-excludegroup='"+u+"']").prop("disabled",!1)),$("#"+i).prop("disabled",!1),!1)},UI_FormElementUpdateSequence:function(n){var i=n.length?n:$(n.target),t=i.data("output");t!==undefined&&t!==null&&window.JSON&&t.val(window.JSON.stringify(i.nestable("serialize")))},UI_FormSubmitButtonSetSize:function(n,t){let i="ExampleButton"+n;if($("#"+i).removeClass("btn-sm").removeClass("btn-lg").removeClass("padding-7").css({width:"",height:""}),t==="custom"){let t=$("#SubmitButtonCustomHeight"+n).val(),r=$("#SubmitButtonCustomWidth"+n).val();$("#"+i).css({width:r,height:t})}else $("#"+i).addClass(t);let r="SubmitButtonSizeHiddenFieldId"+n;return $("#"+r).val(t),!1},UI_Set_IframeExampleCode:function(n,t){var i=$("#formUrlHeightInput"+t).val(),r=$("#formUrlWidthInput"+t).val(),u=n.replace("{height}",i).replace("{width}",r);$("#iframeCodeExample"+t).val(u)},UI_FormsFormatResult:function(n,t){if(!n.id||(t.append(n.text),n.text===""))return n.text;$('<span class="btn btn-xs trackingCodeInfo" data-toggle="tooltip" data-placement="bottom" title="Delete"><i class="fa fa-times"><\/i><\/span>').appendTo(t).mouseup(function(n){n.stopPropagation()}).click(function(i){i.preventDefault();Donorfy.UI_FormsDeleteTrackingCodeFromResults(n,t)})},UI_FormsFormatSelection:function(n,t){t.append($('<span class="selected-TrackingCodeState" data-toggle="tooltip" data-placement="bottom" title="Delete"><\/span>').text(n.text));$('<span class="btn btn-xs trackingCodeInfo" data-toggle="tooltip" data-placement="bottom" title="Delete"><i class="fa fa-times"><\/i><\/span>').appendTo(t).mousedown(function(n){n.stopPropagation()}).click(function(i){i.preventDefault();Donorfy.UI_FormsDeleteTrackingCodeFromSelection(n,t)})},UI_FormsDeleteTrackingCodeFromResults:function(n,t){Donorfy.AJAX_PostWithCallback("Form","DeleteTrackingCode","trackingCodeId="+n.id,null,null,null);$("#"+n.additionalInfo).select2("val")===n.id&&$("#"+n.additionalInfo).select2("val","");$(t).parent().html("")},UI_FormsDeleteTrackingCodeFromSelection:function(n){Donorfy.AJAX_PostWithCallback("Form","DeleteTrackingCode","trackingCodeId="+n.id,null,null,null);$("#"+n.additionalInfo).select2("val","")},UI_HideSelectedGuideContent:function(n,t,i){Donorfy.AJAX_SaveConfigSetting("Home","HideGuide",n,t);$("#"+i).addClass("hidden");$("div").find("[data-guideLocalId='"+i+"']").addClass("hidden");n==="all"&&$("div").find("[data-guidecontent]").addClass("hidden")},UI_UpdateGuideContent:function(n,t){return Donorfy.UI_ShowHide(t),Donorfy.AJAX_PerformOperation(n,"Home","","UpdateGuideContent",""),!1},UI_ToggleUserDataServiceIpRestrictionDisplay:function(n){return $("#DataServiceIpRestriction"+n).toggleClass("hidden"),$("#DataServiceIpRestriction"+n).hasClass("hidden")===!0?$("#accessDataServiceField"+n).val("false"):$("#accessDataServiceField"+n).val("true"),!1},UI_CopyToClipboard:function(n){try{var i=document.getElementById(n),t=document.createElement("textarea");t.style="position: absolute; left: -1000px; top: -1000px";t.value=i.value;document.body.appendChild(t);t.select();document.execCommand("copy");document.body.removeChild(t)}catch(r){console.log("exception in UI_CopyToClipboard "+r)}return!1},UI_DisplayMap:function(n,t,i){var r=new window.google.maps.LatLng(i,t),u={zoom:15,center:new window.google.maps.LatLng(i,t)},f=new window.google.maps.Map(document.getElementById(n),u),e=new window.google.maps.Marker({position:r,map:f})},UI_GetGeoLocationAndMap:function(n,t,i,r){if(r.trim()!==""){var f=new window.google.maps.Geocoder,e={zoom:15,center:new window.google.maps.LatLng(-34.397,150.644)},u=new window.google.maps.Map(document.getElementById(i),e);f.geocode({address:r},function(r,f){if(f===window.google.maps.GeocoderStatus.OK){u.setCenter(r[0].geometry.location);var e=new window.google.maps.Marker({map:u,position:r[0].geometry.location});Donorfy.UI_UpdateConstituentLocation(n,t,r[0].geometry.location.lng(),r[0].geometry.location.lat())}else $("#"+i).addClass("hidden")})}},UI_DisplayMapFromAzure:function(n,t,i,r){var f=parseFloat(t),e=parseFloat(i),o=$("#"+n).width(),s=$("#"+n).height(),u=new atlas.Map(n,{center:[f,e],zoom:15,authOptions:{authType:"subscriptionKey",subscriptionKey:r},style:"road_shaded_relief"});u.events.add("ready",function(){var n=new atlas.source.DataSource,t,i;u.sources.add(n);t=new atlas.Shape(new atlas.data.Point([f,e]));n.add([t]);u.layers.add(new atlas.layer.SymbolLayer(n,null));i=new atlas.control.ZoomControl;u.controls.add(i,{position:"bottom-left"});u.resize(s,o)})},UI_GetGeoLocationAndMapFromAzure:function(n,t,i,r,u){if(r.trim()!==""){var f="https://atlas.microsoft.com/search/address/json?subscription-key={subscription-key}&api-version=1&query={query}".replace("{query}",encodeURIComponent(r)).replace("{subscription-key}",u);fetch(f).then(function(n){return n.json()}).then(function(r){if(r&&r.results&&r.results.length>0){var f=r.results;$("#"+i).removeClass("hidden");Donorfy.UI_DisplayMapFromAzure(i,f[0].position.lon,f[0].position.lat,u);Donorfy.UI_UpdateConstituentLocation(n,t,f[0].position.lon,f[0].position.lat)}else $("#"+i).addClass("hidden")})}},UI_UpdateConstituentLocation:function(n,t,i,r){let u=new Intl.NumberFormat(currentCulture);$.ajax({url:"/Constituent/UpdateConstituentLocation",data:{contactDetailsId:n,longitude:u.format(i),latitude:u.format(r),contactDetailsDateChanged:t},type:"post",success:function(){},error:function(){}})},UI_FormInitialiseExtraYesNoFieldDisplay:function(n,t,i){let r=$(n).find(":selected").val();r==="DoNotUse"&&($("#"+t).hide(),$("#"+i).hide());r==="UseThisValue"&&($("#"+t).hide(),$("#"+i).show());r==="AskQuestionChooseFromList"&&($("#"+t).show(),$("#"+i).hide())},UI_FormInitialiseExtraFieldDisplay:function(n,t,i){let r=$(n).find(":selected").val();r==="DoNotUse"&&($("#"+t).hide(),$("#"+i).hide());r==="UseThisValue"&&($("#"+t).hide(),$("#"+i).show().attr("placeholder","Enter the value"));r==="AskQuestionFreeTextAnswer"&&($("#"+t).show(),$("#"+i).hide());r==="AskQuestionChooseFromList"&&($("#"+t).show(),$("#"+i).show().attr("placeholder","Enter the list of answers separated by commas"))},UI_FormShowHideQuestionPrompt:function(n,t){let i=$(n).find(":selected").val();i==="AskYesNoQuestion"?$("#"+t).show():$("#"+t).hide()},UI_FormUpdateExtraFieldDisplay:function(n,t,i,r,u,f,e){var c="ExtraFieldsTargetPleaseWait_"+i+"_"+u,s="ExtraFieldsTarget_"+i+"_"+u,o,h;$("#"+s).hide();o="";o=e!==""&&e!=="undefined"?e:$(n).find(":selected").val();h="formId="+i+"&lookUpTypeId="+o+"&formElementId="+t+"&formElementType="+r+"&prefix="+f;Donorfy.AJAX_GetHTMLContentForTarget("Form","GetFormExtraFields",h,$("#"+s),$("#"+c))},UI_FormCopyUrlToClipboard:function(n,t,i){let r=$("#"+n).val()+$("#"+t).val();return $("#"+i).val(r),Donorfy.UI_CopyToClipboard(i),!1},UI_FormSetUpPreview:function(n,t){let i=$("#"+n).val()+$("#"+t).val()+"?p=yes";return Donorfy.UI_PreviewForm(i),!1},UI_MakeFormReadOnly:function(n){$("#"+n).find(":input").prop("disabled","disabled");$("#"+n).find(".viewenable").prop("disabled","")},UI_MakeFormActive:function(n){$("#"+n).find(":input").prop("disabled","")},UI_ToggleDivs:function(n,t){n.toggle();t.toggle()},UI_CloseAccordion:function(n){$("#"+n).accordion({active:!1}).click()},UI_DisplayInMainPushdown:function(n,t,i,r,u,f,e,o,s,h,c,l,a,v){var p=$("#MainPushdownTarget"),y;p.removeClass("hidden");p.html('<img src="/images/Spinner1.gif"/>');$("#content").addClass("hidden");$("#PageHeaderDiv").addClass("hidden");$("#ConfirmMsgDivMainForm").addClass("hidden");$("#ErrMsgDiv").addClass("hidden");y=i+"="+r;u!==""&&(y=y+"&"+u+"="+f);e!==""&&(y=y+"&"+e+"="+o);s!==""&&(y=y+"&"+s+"="+h);c!==""&&(y=y+"&"+c+"="+l);a!==""&&(y=y+"&"+a+"="+v);y=y+"&popup=false&pushDown=true";$.ajax({url:"/"+n+"/"+t+"?"+y,type:"GET",cache:!1,datatype:"html",success:function(n){p.show();p.html(n)},error:function(n,t,i){i===""&&(i="No response from system");alert("Error:"+i);$("#MainPushdownTarget").addClass("hidden");$("#content").removeClass("hidden");$("#PageHeaderDiv").removeClass("hidden")}})},UI_DisplaySwapConstituentMainPanel:function(n,t,i,r,u,f,e,o,s,h,c,l,a,v){var p,y;window.SavedContent=$("#ConstituentMainPanel").html();p=$("#ConstituentMainPanel");p.removeClass("hidden");p.html('<img src="/images/Spinner1.gif"/>');y=i+"="+r;u!==""&&(y=y+"&"+u+"="+f);e!==""&&(y=y+"&"+e+"="+o);s!==""&&(y=y+"&"+s+"="+h);c!==""&&(y=y+"&"+c+"="+l);a!==""&&(y=y+"&"+a+"="+v);y=y+"&popup=false&pushDown=true";$.ajax({url:"/"+n+"/"+t+"?"+y,type:"GET",cache:!1,datatype:"html",success:function(n){p.html(n)},error:function(n,t,i){i===""&&(i="No response from system");alert("Error:"+i);$("#ConstituentMainPanel").html(window.SavedContent)}})},UI_DisplayPopUp:function(n,t,i,r,u,f,e,o,s,h){var a,v,l,c;$("#PopUpDialog").addClass("modal-dialog").css("max-width","700px").css("margin-top","").css("margin-left","");a=$("#Popup-Target");a.html("").css("height","");v=$("#Popup-Form");v.modal("show");l=$("#popupLoading");l.is(":visible")||l.show();i==null&&(i="Id");i===""&&(i="Id");u==null&&(u="");e==null&&(e="");s==null&&(s="");c=i+"="+r;u!==""&&(c=c+"&"+u+"="+f);e!==""&&(c=c+"&"+e+"="+o);s!==""&&(c=c+"&"+s+"="+h);c=c+"&popup=true";$.ajax({url:"/"+n+"/"+t+"?"+c,type:"GET",cache:!1,datatype:"html",success:function(n){a.html(n);l.hide()},error:function(n,t,i){i==""&&(i="No response from system");l.hide();alert("Error:"+i)}})},UI_DisplayPopUpMaxSize:function(n,t,i,r,u,f,e,o,s,h,c,l,a){var b=600,w=1e3,p,k,y,v;try{b=$(window.top).height()-150}catch(d){}try{w=$(window.top).width()-150}catch(d){}$("#PopUpDialog").addClass("modal-dialog").css("max-width","700px").css("margin-top","").css("margin-left","");p=$("#Popup-Target");p.html("").css("height","");k=$("#Popup-Form");k.modal("show");y=$("#popupLoading");y.is(":visible")||y.show();i==null&&(i="Id");i===""&&(i="Id");u==null&&(u="");e==null&&(e="");s==null&&(s="");c==null&&(c="");v=i+"="+r;u!==""&&(v=v+"&"+u+"="+encodeURIComponent(f));e!==""&&(v=v+"&"+e+"="+encodeURIComponent(o));s!==""&&(v=v+"&"+s+"="+encodeURIComponent(h));c!==""&&(v=v+"&"+c+"="+encodeURIComponent(l));v=v+"&popup=true&viewPortWidth="+w;$.ajax({url:"/"+n+"/"+t+"?"+v,type:"GET",cache:!1,datatype:"html",success:function(n){$("#PopUpDialog").css("max-width","").css("margin-top","100px").css("margin-left","100px").css("width",w+"px");a||p.css("height",b+"px");p.html(n);y.hide()},error:function(n,t,i){i==""&&(i="No response from system");y.hide();alert("Error:"+i)}})},UI_DownloadFile:function(n,t,i){n&&n.preventDefault();i?window.open(t):window.location.href=t},UI_RemoveMarkUpFromInput:function(n){var t="(?:[^\"'>]|\"[^\"]*\"|'[^']*')*",r=new RegExp("<(?:!--(?:(?:-*[^->])*--+|-?)|script\\b"+t+">[\\s\\S]*?<\/script\\s*|style\\b"+t+">[\\s\\S]*?<\/style\\s*|/?[a-z]"+t+")>","gi"),i;do i=n,n=n.replace(r,"");while(n!==i);return n.replace(/</g,"&lt;")},UI_Checkbox_StoreValue:function(n,t,i,r,u){n.preventDefault();var f="unknown";f=n.target.checked?i:r;t.val(f);typeof u=="function"&&u(f)},UI_BtnSet_StoreValue:function(n,t,i,r,u,f){n.preventDefault();t.val(i);var e="btn-success";return i=="No"&&(e="btn-danger"),r.removeClass("btn-primary"),r.addClass(e),r.css("color","white"),r.css("border-color","yellow"),u.removeClass("btn-danger"),u.removeClass("btn-success"),u.addClass("btn-default"),u.css("color","grey"),u.css("border-color","grey"),typeof f=="function"&&f(i),!1},UI_ThreeBtnSet_StoreValue:function(n,t,i,r,u,f){var e,o,s;n.preventDefault();t.val(i);r.removeClass("btn-default");r.addClass("btn-primary");r.css("border-color","yellow");r.css("border-width","1px");u.removeClass("btn-primary");u.addClass("btn-default");u.css("border-color","grey");u.css("border-width","1px");f.removeClass("btn-primary");f.addClass("btn-default");f.css("border-color","grey");f.css("border-width","1px");e=r.attr("id")+"Icon";$("#"+e).addClass("fa fa-check pull-left");o=u.attr("id")+"Icon";$("#"+o).removeClass("fa fa-check pull-left");s=f.attr("id")+"Icon";$("#"+s).removeClass("fa fa-check pull-left")},UI_UpdateFieldFromThis:function(n,t){$("#"+t).hasClass("changed")||$("#"+t).val($("#"+n).val())},UI_MarkFieldAsChanged:function(n){var t=$("#"+n),i=$.trim($("#"+n).val());i.length>0?t.addClass("changed"):t.removeClass("changed")},UI_ShowHide:function(n){var t,i;$("[id*="+n+"]").toggleClass("hidden");$(event).length>0&&(t=$($(event)[0].target),t.prop("tagName")==="I"&&t.hasClass("fa")||(t=t.find("i.fa")),(t.hasClass("fa-angle-down")||t.hasClass("fa-angle-up"))&&t.toggleClass("fa-angle-down").toggleClass("fa-angle-up"));i=$("#"+n+"hidden");i.length>0&&($("#"+n).is(":visible")?i.val("true"):i.val("false"),i.addClass("hidden"))},UI_ShowHideToggleUpdateCaption:function(n,t,i,r){var f,u;$("[id*="+t+"]").toggleClass("hidden");f=$("#"+t);f.is(":visible")?$(n).html(i):$(n).html(r);u=$("#"+t+"hidden");f.is(":visible")?u.val("true"):u.val("false");u.addClass("hidden")},UI_ShowHideToggleLinkUpdateCaption:function(n,t,i,r){var f,u;$("[id*="+t+"]").toggleClass("hidden");f=$("#"+t);f.is(":visible")?$("#"+n).text(r):$("#"+n).text(i);u=$("#"+t+"hidden");f.is(":visible")?u.val("true"):u.val("false");u.addClass("hidden")},UI_MenuShowHide:function(n,t,i,r,u,f=null){n.preventDefault();var e=$("#Target"+i),o=$("#Loading"+i);if($(t).removeClass(),e.is(":visible")){e.toggleClass("hidden");$(t).addClass("fa fa-plus-square-o");n.stopPropagation();return}if(!e.is(":empty")){e.toggleClass("hidden");$(t).addClass("fa fa-minus-square-o");o.addClass("hidden");n.stopPropagation();return}o.toggleClass("hidden");$.ajax({url:"/"+r+"/"+u,type:"GET",cache:!1,datatype:"html",success:function(n){e.toggleClass("hidden");e.html(n);$(t).addClass("fa fa-minus-square-o");f&&e.ready(f);o.toggleClass("hidden")},error:function(n,t,i){i==""&&(i="No response from system");o.toggleClass("hidden");alert("Error:"+i)}});n.stopPropagation()},UI_InLineMenuClick:function(n,t,i,r,u,f,e,o,s,h){if(n.preventDefault(),$("#left-menu li").removeClass("active"),$(t).parent().toggleClass("active"),t.hasAttribute("data-navurl")&&t.getAttribute("data-navurl")!=null){if(window.location.pathname.includes(t.getAttribute("data-navurl")))return;window.history.replaceState("","",t.getAttribute("data-navurl"))}else window.location.pathname!=="/"&&window.history.pushState("","","/");t.hasAttribute("data-pagetitle")?t.getAttribute("data-pagetitle")!=null&&(document.title=t.getAttribute("data-pagetitle")):document.title="Donorfy";s?Donorfy.AJAX_ReplaceContentForEntity(i,r,u,f,e,o):Donorfy.AJAX_GetHTMLContentForEntity(i,r,u,f,e,o,h)},UI_CommsPref_FormatContactDetails:function(n){var t=n.element;return'<i class="fa '+$(t).data("icon")+'"><\/i> &nbsp'+n.text},UI_ShowRelatedGroup:function(n){$("[id*=SubGroup] ").hide();$("#"+n).show()},UI_SelectList_AssignSelected:function(n,t){$("#"+n+" selected").removeClass("selected");$("#"+n+" option").filter(function(){return $(this).text()==t}).prop("selected",!0)},UI_EqualHeight:function(n){var t=0;n.each(function(){var n=$(this).height();n>t&&(t=n)});n.height(t)},UI_HandleManageDisplay:function(n,t){$("#StdBtns"+n).addClass("hidden");$("#Upgrade"+n).addClass("hidden");$("#Pause"+n).addClass("hidden");$("#Cancel"+n).addClass("hidden");$("#Delete"+n).addClass("hidden");$("#DeleteItem"+n).addClass("hidden");$("#Reassign"+n).addClass("hidden");$("#SendDocument"+n).addClass("hidden");$("#Relodge"+n).addClass("hidden");$("#Notify"+n).addClass("hidden");$("#ChangeCollectionMethod"+n).addClass("hidden");t==="Reset"&&$("#StdBtns"+n).removeClass("hidden");t==="Upgrade"&&$("#Upgrade"+n).removeClass("hidden");t==="Pause"&&$("#Pause"+n).removeClass("hidden");t==="Cancel"&&$("#Cancel"+n).removeClass("hidden");t==="Delete"&&$("#Delete"+n).removeClass("hidden");t==="DeleteItem"&&$("#DeleteItem"+n).removeClass("hidden");t==="Reassign"&&$("#Reassign"+n).removeClass("hidden");t==="SendDocument"&&$("#SendDocument"+n).removeClass("hidden");t==="Relodge"&&$("#Relodge"+n).removeClass("hidden");t==="Notify"&&$("#Notify"+n).removeClass("hidden");t==="ChangeCollectionMethod"&&$("#ChangeCollectionMethod"+n).removeClass("hidden")},UI_DisplayConfirmAction:function(n,t,i,r,u,f,e,o){var s=function(){$("#Form"+f).removeClass("animated fadeOutUp hidden")};$.SmartMessageBox({title:"<i class='fa fa-question-circle txt-color-orangeDark'>&nbsp<\/i>Please Confirm",content:n,buttons:"[No][Yes]"},function(n){n=="Yes"?(r=="True"&&$("#Form"+f).addClass("animated fadeOutUp"),typeof e=="function"?e(f,t,i):Donorfy.AJAX_PerformOperation(f,t,"",i,null,s)):typeof o=="function"&&o()})},UI_PrintGrid:function(n,t){var o="Grid"+t+"xGrid",i=$("#"+o).DataTable(),r="Form"+n,s=i.fnSettings().aaSorting[0][0],h=i.fnSettings().aaSorting[0][1],f="",c=$("#FacetSearchString"+t).val(),e=0,u=[];$.each(i.fnSettings().aoColumns,function(n){if(i.fnSettings().aoColumns[n].bVisible===!0){var t=i.fnSettings().aoColumns[n].sName;t!==""&&(u=u.concat(t),e===s&&(f=t))}e++});$("#"+r).find("#SelectedFields").val(u);$("#"+r).find("#SortBy").val(f);$("#"+r).find("#SortDirection").val(h);$("#"+r).find("#ExportFacetsSelected").val(c);Donorfy.AJAX_PerformOperation(n,"Action","","AddListPrintAction")},UI_ExportGrid:function(n,t){var h="Grid"+t+"xGrid",i=$("#"+h).DataTable(),r="Form"+n,f=0,e="asc",u=[],o="",s=0,c=$("#FacetSearchString"+t).val();try{f=i.fnSettings().aaSorting[0][0];e=i.fnSettings().aaSorting[0][1];$.each(i.fnSettings().aoColumns,function(n){if(i.fnSettings().aoColumns[n].bVisible===!0){var t=i.fnSettings().aoColumns[n].sName;t!==""&&(u=u.concat(t),s===f&&(o=t))}s++})}catch(l){}$("#"+r).find("#SelectedFields").val(u);$("#"+r).find("#SortBy").val(o);$("#"+r).find("#SortDirection").val(e);$("#"+r).find("#ExportFacetsSelected").val(c);Donorfy.AJAX_PerformOperation(n,"Action","","AddListDownloadAction")},UI_SignOut:function(){$.ajax({url:"/Account/LogOff",type:"post",success:function(n){localStorage.setItem("DonorfySessionEnd",JSON.stringify(!0));localStorage.removeItem("DonorfySessionEnd");Donorfy.AJAX_HandleResponse_RedirectToURL(n.ReloadUrl)},error:function(){Donorfy.AJAX_HandleResponse_RedirectToURL("/Home/Error")}})},UI_ToggleSwitch:function(n,t,i,r){var f=$("#"+t),u=$("#"+n);r?f.is(":checked")?u.val("false"):u.val("true"):f.is(":checked")?u.val("true"):u.val("false");i!==undefined&&i!=="undefined"&&i!==""&&(f.is(":checked")?$("#"+i).show():$("#"+i).hide())},UI_CheckForSessionTimeOut:function(){$.ajax({url:"/Services/Status",type:"get",success:function(n){n.IsSuccess===!1&&(localStorage.setItem("DonorfySessionTimeOut",JSON.stringify(!0)),localStorage.removeItem("DonorfySessionTimeOut"),Donorfy.AJAX_HandleResponse_RedirectToURL("/Account/SessionTimeOut"))},error:function(){console.log("UI_CheckForSessionTimeOut error")}})},UI_CheckForSessionEndNotification:function(n){n.key==="DonorfySessionTimeOut"&&Donorfy.AJAX_HandleResponse_RedirectToURL("/Account/SessionTimeOut");n.key==="DonorfySessionEnd"&&Donorfy.AJAX_HandleResponse_RedirectToURL("/Account/LogOffConfirmed")},UI_CompleteTask:function(n){$.ajax({url:"/Users/CompleteTask?id="+n,type:"POST",success:function(n){Donorfy.UpdateTaskUI(n)},error:function(){}})},RefreshTaskUI:function(){$.ajax({url:"/Users/GetTaskCounts",type:"GET",success:function(n){Donorfy.UpdateTaskUI(n)},error:function(){}})},UpdateTaskUI:function(n){n.IsSuccess&&(Donorfy.UpdateTaskBadge("tasks-badge",n),Donorfy.UpdateTaskBadge("tasks-profile-badge",n),$("#OverdueTasksCount").text(n.OverdueTasksCount),$("#TodayTasksCount").text(n.TodayTasksCount),$("#UpcomingTasksCount").text(n.UpcomingTasksCount),Donorfy.RefreshTaskList())},UpdateTaskBadge:function(n,t){$("#"+n).text(t.BadgeCount);t.BadgeCount>0?($("#"+n).show(),$("#"+n).removeClassPrefix("bg-color-"),t.OverdueTasksCount>0?$("#"+n).addClass("bg-color-red"):$("#"+n).addClass("bg-color-orange")):$("#"+n).hide()},LoadTaskList:function(n){$.ajax({url:"/Users/TaskList?type="+n,dataType:"html",type:"GET",beforeSend:function(){$(".task-list").html("<h1><i class='fa fa-cog fa-spin'><\/i> Loading...<\/h1>")},success:function(n){$(".task-list").css({opacity:"0.0"}).html(n).delay(50).animate({opacity:"1.0"},300);$.trim($("#reminder-footer-text").val()).length?($(".reminder-footer-caption").text($("#reminder-footer-text").val()),$(".reminder-footer-caption").show()):$(".reminder-footer-caption").hide()},error:function(){$(".task-list").html("<h4><i class='fa fa-warning txt-color-orangeDark'><\/i> Error 404! Page not found.<\/h4>")},async:!1})},RefreshTaskList:function(){var n=$(".reminders-box .active > input").val();Donorfy.LoadTaskList(n);typeof UpdateTaskBadge=="function"&&window.UpdateTaskBadge.call()},ShowTaskList:function(){$("#reminders-box").is(":visible")?$("#reminders-box").fadeOut(150):($("#reminders-box").fadeIn(150),setTimeout(function(){$.trim($("#task-list").html()).length||Donorfy.RefreshTaskList()},500))},TaskList_Add:function(n,t,i,r,u,f,e,o,s,h,c,l,a,v){Donorfy.GetAddContainer(n,t,i,r,u,f,e,o,s,h,c,l,a,v,"task_add")},GetAddContainer:function(n,t,i,r,u,f,e,o,s,h,c,l,a,v,y){var w=$("#"+y),p;w.removeClass("hidden");p=i+"="+r;u!=""&&(p=p+"&"+u+"="+f);e!=""&&(p=p+"&"+e+"="+o);s!=""&&(p=p+"&"+s+"="+h);c!=""&&(p=p+"&"+c+"="+l);a!=""&&(p=p+"&"+a+"="+v);$.ajax({url:"/"+n+"/"+t+"?"+p,type:"GET",cache:!1,datatype:"html",success:function(n){w.show();w.html(n)},error:function(n,t,i){i==""&&(i="No response from system");alert("Error:"+i)}})},SaveConfirmMessage:function(n,t,i){if(n!==""&&Modernizr.localstorage){var r={ConfirmMessage:n,ConfirmMessageDivId:t,Entered:(new Date).getTime(),Id:i};localStorage.setItem("Donorfy_ConfirmMessage",JSON.stringify(r))}},LoadConfirmMessage:function(){var t,n,i;Modernizr.localstorage&&(t=localStorage.getItem("Donorfy_ConfirmMessage"),t&&(n=JSON.parse(t),i=(new Date).getTime()-n.Entered,i/1e3<60&&Donorfy.DisplayConfirmMessage(n,n.Id),localStorage.removeItem("Donorfy_ConfirmMessage")))},DisplayConfirmMessageText:function(n,t){var i={ConfirmMessageDivId:n,ConfirmMessage:t};Donorfy.DisplayConfirmMessage(i,null)},DisplayConfirmMessage:function(n,t){var i,r;n&&n.ConfirmMessage&&n.ConfirmMessage!==""&&(i=Donorfy.GetMessageDiv(n,t,!0),i!=null&&i.length!==0)&&(r=Donorfy.GetMessageElement(i,t,!0),r!=null&&r.length!==0)&&(i.show(),i.removeClass("hidden"),r.html(n.ConfirmMessage))},DisplayErrorMessageText:function(n,t){var i={ErrorMessageDivId:n,ErrorMessage:t};Donorfy.DisplayErrorMessage(i,null)},DisplayErrorMessage:function(n,t){var i,r;n&&n.ErrorMessage&&n.ErrorMessage!==""&&(i=Donorfy.GetMessageDiv(n,t,!1),i.length!==0)&&(r=Donorfy.GetMessageElement(i,t,!1),r.length!==0)&&(i.show(),i.removeClass("hidden"),r.html(n.ErrorMessage))},GetMessageDiv:function(n,t,i){var r,f=i?n.ConfirmMessageDivId:n.ErrorMessageDivId,u;return f&&(r=$("#"+f),r.length>0)?r:(u=i?"ConfirmMsgDiv":"ErrMsgDiv",t&&(r=$("#"+u+t),r.length>0))?r:$("#"+u+"MainForm")},GetMessageElement:function(n,t,i){var f,r,u;return n.length===0?$([]):(f=i?"confirm-message":"error-message",r=n.find("."+f),r.length>0)?r:(u=i?"ConfirmMsg":"ErrMsg",t&&(r=n.find("#"+u+t),r.length>0))?r:n.find("#"+u)},GetSelectedFacets:function(n){var t=[],i=$("#FieldList"+n+" > div.col:not(.hidden)");return i.find(".facet-checkbox input:checked").each(function(n,i){$(i).attr("id")&&t.push($(i).attr("id"))}),i.find("select.facet-select").each(function(n,i){$(i).val()&&t.push($(i).val())}),i.find(".facet-value input").each(function(n,i){if($(i).val()){var r=$(i).attr("name")+":"+$(i).val().replace("&","§");t.push(r)}}),t},LoadRecentItems:function(){$.ajax({url:"/Users/RecentItems",type:"get",cache:!1,datatype:"html",success:function(n){$("#RecentItems").replaceWith(n)},error:function(n,t,i){alert("Error:"+i)}})},UI_SwapStatusButton:function(n,t){var i="no"+t,r="yes"+t;return $(n).addClass("hidden"),$(n).data("status")==="yes"?($("#"+t).val("false"),$("#"+i).removeClass("hidden")):($("#"+t).val("true"),$("#"+r).removeClass("hidden")),!1},UI_FocusCheckbox:function(n){$("#"+n).css("padding","1px");$("#"+n).css("padding-left","5px");$("#"+n).css("border-color","#5D98CC");$("#"+n).css("border-width","1px");$("#"+n).css("border-style","solid")},UI_BlurCheckbox:function(n){$("#"+n).css("border-style","none")},UI_SwapThreeStateButton:function(n,t){var i="No"+t,r="Yes"+t,u="Unknown"+t;return $(n).addClass("hidden"),$(n).data("status")==="Yes"&&($("#"+t).val("No"),$("#"+i).removeClass("hidden")),$(n).data("status")==="No"&&($("#"+t).val("Unknown"),$("#"+u).removeClass("hidden")),$(n).data("status")==="Unknown"&&($("#"+t).val("Yes"),$("#"+r).removeClass("hidden")),!1},ResetToDefaults:function(){return window.localStorage.clear(),!0},ListUsers_PerformOperation:function(n,t,i){var r="/List/ShowMenuListUser_Operation";r=r+"?listDefinitionId="+n;r=r+"&operation="+i;r=r+"&userId="+t;$.ajax({url:r,type:"post",datatype:"html",success:function(){},error:function(n,t,i){Donorfy.DisplayErrorMessageText(null,"Error:"+i)}})},Standard_DataTable:function(n,t){var i=parseInt(localStorage.getItem("GlobalGridLength")),r;return Number.isInteger(i)||(i=15),r=$.extend({},{aLengthMenu:[[15,30,90,150],[15,30,90,150]],sDom:"fip r<'dt-top-row'l>r<'dt-wrapper't>ip",sPaginationType:"bootstrap_full",iDisplayLength:i,bStateSave:!0,oLanguage:{sSearch:"Search:"},fnStateSave:function(n,t){localStorage.setItem("GlobalGridLength",t.iLength);delete t.iLength}},t),n.dataTable(r)},FormatNumber:function(n){return n>=1e3?(n/1e3).toFixed(0)+"k":n}};DonorfyForms={Mode:"Live",Country:"GB",Currency:"gbp",StripeStatementText:"",StripePublicKey:"",PayPalClientId:"",PayPalStatementText:"",FormId:"",Stripe:null,Elements:null,PayPal:null,StripePaymentRequest:null,StripePaymentRequestButton:null,reCaptchaSiteKey:null,recaptchaTokenId:null,gclMinAmount:1,stripeMinAmount:.3,localeCode:null,decimalSeparator:".",isDonationForm:!1,isMembershipForm:!1,DonationHowGiveErrorText:"Please choose how you want to give",ReCaptchaUrlSuffix:"",DF_SyncControlHeights:function(n){var t=0;$("#"+n).find("[data-heightsync]").each(function(){$(this).height()>t&&(t=$(this).height())});$("#"+n).find("[data-heightsync]").each(function(){$(this).height(t)})},DF_SetUpPayPal:function(){var i,n,t;if(DonorfyForms.PayPalClientId===undefined||DonorfyForms.PayPalClientId===""||DonorfyForms.PayPalClientId==="none"){$("#paypal-button-container").html("");return}if(i=$("#"+DonorfyForms.FormId).find('input[data-main-emailAddress="yes"]').val(),n=$("#"+DonorfyForms.FormId).find('input[data-amount="yes"]').val(),n===undefined||n===""||n==="none"){$("#PayPalContainer").addClass("hidden");return}if(n===0){$("#PayPalContainer").addClass("hidden");return}t=DonorfyForms.Currency.toUpperCase();$("#PayPalContainer").removeClass("hidden");$("#otherPaymentMethodId").removeClass("hidden");$("#paypal-button-container").html("");DonorfyForms.PayPal=paypal.Buttons({createOrder:function(i,r){return jQuery("#"+DonorfyForms.FormId).valid()?r.order.create({purchase_units:[{amount:{value:n,currency_code:t},soft_descriptorstring:DonorfyForms.PayPalStatementText,description:DonorfyForms.PayPalStatementText}]}):!1},onApprove:function(n,t){return t.order.capture().then(function(n){$("#"+DonorfyForms.FormId).find('input[data-method="yes"]').val("PayPal");$("#"+DonorfyForms.FormId).find("#ExternalPaymentReference").val(n.id);DonorfyForms.DF_PostForm("yes")})}}).render("#paypal-button-container")},DF_SetUpStripe:function(){var n,t;if(DonorfyForms.StripePublicKey===undefined||DonorfyForms.StripePublicKey===""||DonorfyForms.StripePublicKey==="none"){$("#StripeCardDetails").html("");return}if(n=$("#"+DonorfyForms.FormId).find('input[data-amount="yes"]').val(),n===undefined||n===""||n==="none"){$("#StripeCardDetails").addClass("hidden");$("#payment-request-button").length&&(document.getElementById("payment-request-button").style.display="none");return}if(n=Math.round(n*100),n===0){$("#StripeCardDetails").addClass("hidden");$("#payment-request-button").length&&(document.getElementById("payment-request-button").style.display="none");return}if($("#StripeCardDetails").removeClass("hidden"),DonorfyForms.Stripe===null&&(DonorfyForms.Stripe=Stripe(DonorfyForms.StripePublicKey),DonorfyForms.Elements=DonorfyForms.Stripe.elements(),window.cardNumber=DonorfyForms.Elements.create("cardNumber"),window.cardNumber.mount("#card-number"),window.cardExpiry=DonorfyForms.Elements.create("cardExpiry"),cardExpiry.mount("#card-expiry"),window.cardCvc=DonorfyForms.Elements.create("cardCvc"),cardCvc.mount("#card-cvc")),$("#payment-request-button").length)try{DonorfyForms.StripePaymentRequest===null?(DonorfyForms.StripePaymentRequest=DonorfyForms.Stripe.paymentRequest({country:DonorfyForms.Country,currency:DonorfyForms.Currency,total:{label:DonorfyForms.StripeStatementText,amount:n},requestPayerName:!0,requestPayerEmail:!0}),DonorfyForms.StripePaymentRequestButton=DonorfyForms.Elements.create("paymentRequestButton",{paymentRequest:DonorfyForms.StripePaymentRequest})):DonorfyForms.StripePaymentRequest.update({total:{label:DonorfyForms.StripeStatementText,amount:n}});DonorfyForms.StripePaymentRequest.canMakePayment().then(function(n){n?(DonorfyForms.StripePaymentRequestButton.mount("#payment-request-button"),$("#otherPaymentMethodId").removeClass("hidden")):document.getElementById("payment-request-button").style.display="none"});DonorfyForms.StripePaymentRequest.on("paymentmethod",function(n){DonorfyForms.DF_ValidateStripeApplePayRequest(n)});document.getElementById("payment-request-button").style.display="none";t=$("#"+DonorfyForms.FormId).find('input[data-frequency="yes"]').val();t==="DonationStripeOneOff"&&(document.getElementById("payment-request-button").style.display="")}catch(i){console.log("DF_SetUpStripe "+i)}},DF_PostForm:function(n){var t="formContainer"+DonorfyForms.FormId,i=$("#"+DonorfyForms.FormId).find("#TenantCode").val();n==="yes"?($("#"+t).find("[data-submitPleaseWait]").removeClass("hidden"),DonorfyForms.DF_ResetErrorMessage(),DonorfyForms.DF_DisableSubmitButton(),grecaptcha.ready(()=>{grecaptcha.execute(DonorfyForms.reCaptchaSiteKey,{action:i+"_"+DonorfyForms.ReCaptchaUrlSuffix+"_PostForm"}).then(function(n){$("#"+DonorfyForms.recaptchaTokenId).val(n);document.getElementById(DonorfyForms.FormId).submit()})})):(DonorfyForms.DF_EnableSubmitButton(),DonorfyForms.DF_DisplayErrorMessage())},DF_AddStyleAttribute:function(n,t){typeof n.attr("style")==typeof undefined?n.attr("style",t):n.attr("style",n.attr("style")+"; "+t)},DF_ResetErrorMessage:function(){var n="formContainer"+DonorfyForms.FormId;$("#"+n).find("[data-SubmitErrors]").html("");$("#"+n).find("[data-SubmitErrorContainer]").hide()},DF_ValidateForm:function(){var f,u,e;DonorfyForms.DF_ResetErrorMessage();$("#"+DonorfyForms.FormId+" [id=AmountError]").addClass("hidden");$("#"+DonorfyForms.FormId+" [id=FreqError]").addClass("hidden");$("#"+DonorfyForms.FormId+" [id=MinimumAmountError]").addClass("hidden");var t="no",i=!1,n="",r=DonorfyForms.DF_ValidateDonation(0);return DonorfyForms.isDonationForm&&(n=$("#"+DonorfyForms.FormId).find('input[data-method="yes"]').val(),(n===undefined||n==="")&&(n=$("#"+DonorfyForms.FormId).find('input[data-frequency="yes"]').val(),n.startsWith("DonationGoCardless")&&(n="GoCardless"),n.startsWith("DonationStripe")&&(n="Stripe")),n===undefined||n==="")?(DonorfyForms.DF_DisplayErrorMessage(DonorfyForms.DonationHowGiveErrorText,"yes"),!1):(DonorfyForms.isMembershipForm&&(n=$("#"+DonorfyForms.FormId).find('input[data-method="yes"]').val()),n.startsWith("Stripe"))?(u=!1,r=DonorfyForms.DF_ValidateDonation(DonorfyForms.stripeMinAmount),r&&(u=DonorfyForms.DF_ValidateStripeRequest()),r&&u&&(t="yes",i=!0),DonorfyForms.DF_PostForm(t),i):n.startsWith("GoCardless")?(f=!1,r=DonorfyForms.DF_ValidateDonation(DonorfyForms.gclMinAmount),r&&(f=DonorfyForms.DF_ValidateGCLRequest()),r&&f&&(t="yes",i=!0),DonorfyForms.DF_PostForm(t),i):n.startsWith("ApplePay")?(u=!1,r=DonorfyForms.DF_ValidateDonation(DonorfyForms.stripeMinAmount),r&&(u=DonorfyForms.DF_ValidateStripeRequest()),r&&u&&(t="yes",i=!0),DonorfyForms.DF_PostForm(t),i):n.startsWith("PayPal")?(t="yes",i=!0,DonorfyForms.DF_PostForm(t),i):(e=jQuery("#"+DonorfyForms.FormId).valid(),e&&r&&(t="yes",i=!0),DonorfyForms.DF_PostForm(t),i)},DF_ValidateGCLRequest:function(){if(jQuery("#"+DonorfyForms.FormId).valid())try{DonorfyForms.DF_DisableSubmitButton();jQuery.ajax({dataType:"json",url:DonorfyForms.DF_GetGoCardlessBaseServiceUrl()+"DirectDebitSetUp",data:DonorfyForms.DF_GetGCLPostData(),method:"POST",type:"POST"}).done(function(n){return n.OK?($("#GoCardlessSetUpLink").val(n.RedirectUrl),$("#"+DonorfyForms.FormId).find('input[data-method="yes"]').val("GoCardless"),DonorfyForms.DF_PostForm("yes"),!0):(DonorfyForms.DF_DisplayErrorMessage(n.Errors,"yes"),DonorfyForms.DF_PostForm("no"),!1)}).fail(function(n){return DonorfyForms.DF_DisplayErrorMessage(DonorfyForms.DF_GetErrorArray(n)),DonorfyForms.DF_PostForm("no"),!1})}catch(n){return console.log("ValidateGCL Requestexception "+n),DonorfyForms.DF_PostForm("no"),!1}else return DonorfyForms.DF_PostForm("no"),!1},DF_GetGCLPostData:function(){var n=$("#"+DonorfyForms.FormId).find('input[data-amount="yes"]').val();return{title:$("#"+DonorfyForms.FormId).find('input[data-title="yes"]').length>0?$("#"+DonorfyForms.FormId).find('input[data-title="yes"]').val():"",firstName:$("#"+DonorfyForms.FormId).find('input[data-firstname="yes"]').length>0?$("#"+DonorfyForms.FormId).find('input[data-firstname="yes"]').val():"",lastName:$("#"+DonorfyForms.FormId).find('input[data-lastname="yes"]').length>0?$("#"+DonorfyForms.FormId).find('input[data-lastname="yes"]').val():"",email:$("#"+DonorfyForms.FormId).find('input[data-main-emailAddress="yes"]').val(),address1:$("#"+DonorfyForms.FormId).find('input[data-address1="yes"]').length>0?$("#"+DonorfyForms.FormId).find('input[data-address1="yes"]').val():"",address2:$("#"+DonorfyForms.FormId).find('input[data-address2="yes"]').length>0?$("#"+DonorfyForms.FormId).find('input[data-address2="yes"]').val():"",town:$("#"+DonorfyForms.FormId).find('input[data-addressTown="yes"]').length>0?$("#"+DonorfyForms.FormId).find('input[data-addressTown="yes"]').val():"",county:$("#"+DonorfyForms.FormId).find('input[data-addressCounty="yes"]').length>0?$("#"+DonorfyForms.FormId).find('input[data-addressCounty="yes"]').val():"",postCode:$("#"+DonorfyForms.FormId).find('input[data-addressPostCode="yes"]').length>0?$("#"+DonorfyForms.FormId).find('input[data-addressPostCode="yes"]').val():"",amount:n,tenantCode:$("#"+DonorfyForms.FormId).find("#TenantCode").val(),widgetId:$("#"+DonorfyForms.FormId).find("#ParentFormId").val(),paymentSchedule:"Monthly",FormRenderId:$("#"+DonorfyForms.FormId).find("#FormRenderId").val()}},DF_ValidateDonation:function(n){$("#"+DonorfyForms.FormId+" [id=AmountError]").addClass("hidden");$("#"+DonorfyForms.FormId+" [id=FreqError]").addClass("hidden");$("#"+DonorfyForms.FormId+" [id=MinimumAmountError]").addClass("hidden");var i=!0,t=$("#"+DonorfyForms.FormId).find('input[data-amount="yes"]').val();return t===undefined?!0:($("#"+DonorfyForms.FormId).find('input[data-amount="yes"]').length&&(t===undefined||t===""||t==="0"?($("#"+DonorfyForms.FormId+" [id=AmountError]").removeClass("hidden"),$("#"+DonorfyForms.FormId).find("#ErrorContainer").css("display","none"),i=!1):n!==0&&t<n&&($("#"+DonorfyForms.FormId+" [id=MinimumAmountError]").removeClass("hidden"),$("#"+DonorfyForms.FormId+" [id=MinimumAmountError]").text("Minimum amount is "+new Intl.NumberFormat(DonorfyForms.localeCode,{style:"currency",currency:DonorfyForms.Currency}).format(n)),$("#"+DonorfyForms.FormId).find("#ErrorContainer").css("display","none"),i=!1)),$("#"+DonorfyForms.FormId).find('input[data-frequency="yes"]').length&&$("#"+DonorfyForms.FormId).find('input[data-frequency="yes"]').val()===""&&($("#"+DonorfyForms.FormId+" [id=FreqError]").removeClass("hidden"),i=!1),i)},DF_ValidateStripeApplePayRequest:function(n){var r,u,t,f,e;if(jQuery("#"+DonorfyForms.FormId).valid()){var o=$("#"+DonorfyForms.FormId).find("#TenantCode").val(),s=$("#"+DonorfyForms.FormId).find('input[data-main-emailAddress="yes"]').val(),h=encodeURIComponent(s),i=!1;$("#"+DonorfyForms.FormId).find('input[data-frequency="yes"]').val()==="DonationStripeRecurringMonthly"&&(i=!0);r=$("#"+DonorfyForms.FormId).find("#IsMembershipForm").val();r==="yes"&&(i=!0);u=$("#"+DonorfyForms.FormId).find("#ParentFormId").val();t=$("#"+DonorfyForms.FormId).find('input[data-amount="yes"]').val();t=t*100;f="formContainer"+DonorfyForms.FormId;e=$("#"+DonorfyForms.FormId).find("#TenantCode").val();try{grecaptcha.ready(function(){grecaptcha.execute(DonorfyForms.reCaptchaSiteKey,{action:e+"_"+DonorfyForms.ReCaptchaUrlSuffix+"_ValidateStripeApplePayRequest"}).then(function(r){DonorfyForms.DF_DisableSubmitButton();jQuery.ajax({dataType:"json",url:DonorfyForms.DF_GetStripeBaseServiceUrl()+"P1?id="+u+"&code="+o+"&amount="+t+"&email="+h+"&rec="+i+"&token="+r,method:"POST",type:"POST"}).done(function(t){t.OK&&($("#"+f).find("[data-submitbtn]").attr("data-secret",t.RequestData),DonorfyForms.Stripe.confirmCardPayment(t.RequestData,{payment_method:n.paymentMethod.id},{handleActions:!1}).then(function(i){if(i.error)return jQuery("#"+DonorfyForms.FormId).valid(),DonorfyForms.DF_DisplayErrorMessage(i.error.message,"yes"),DonorfyForms.DF_PostForm("no"),n.complete("fail"),!1;if($("#"+DonorfyForms.FormId).find("#StripePaymentIntentId").val(i.paymentIntent.id),DonorfyForms.DF_PostForm("yes"),n.complete("success"),i.paymentIntent.status==="requires_action")DonorfyForms.Stripe.confirmCardPayment(t.RequestData).then(function(n){return n.error?(jQuery("#"+DonorfyForms.FormId).valid(),DonorfyForms.DF_DisplayErrorMessage(i.error.message,"yes"),DonorfyForms.DF_PostForm("no"),!1):($("#"+DonorfyForms.FormId).find("#StripePaymentIntentId").val(n.paymentIntent.id),$("#"+DonorfyForms.FormId).find('input[data-method="yes"]').val("ApplePay"),DonorfyForms.DF_PostForm("yes"),!0)});else return $("#"+DonorfyForms.FormId).find("#StripePaymentIntentId").val(result.paymentIntent.id),DonorfyForms.DF_PostForm("yes"),!0;return!0}))}).fail(function(n){return console.log("DF_ValidateStripeApplePayRequest jqXHR "+n),DonorfyForms.DF_DisplayErrorMessage(DonorfyForms.DF_GetErrorArray(n)),DonorfyForms.DF_PostForm("no"),!1})})})}catch(c){return console.log("Exception in DF_ValidateStripeApplePayRequest "+c),DonorfyForms.DF_PostForm("no"),!1}}else return DonorfyForms.DF_PostForm("no"),!1},DF_ValidateStripeRequest:function(){var r,u,t;if(jQuery("#"+DonorfyForms.FormId).valid()){var f=$("#"+DonorfyForms.FormId).find("#TenantCode").val(),i=$("#"+DonorfyForms.FormId).find('input[data-main-emailAddress="yes"]').val(),e=encodeURIComponent(i),n=!1;$("#"+DonorfyForms.FormId).find('input[data-frequency="yes"]').val()==="DonationStripeRecurringMonthly"&&(n=!0);r=$("#"+DonorfyForms.FormId).find("#IsMembershipForm").val();r==="yes"&&(n=!0);u=$("#"+DonorfyForms.FormId).find("#ParentFormId").val();t=$("#"+DonorfyForms.FormId).find('input[data-amount="yes"]').val();t=Math.round(t*100);var o=$("#"+DonorfyForms.FormId).find('input[data-firstname="yes"]').length>0?$("#"+DonorfyForms.FormId).find('input[data-firstname="yes"]').val():"",s=$("#"+DonorfyForms.FormId).find('input[data-lastname="yes"]').length>0?$("#"+DonorfyForms.FormId).find('input[data-lastname="yes"]').val():"",h=$("#"+DonorfyForms.FormId).find('input[data-addressTown="yes"]').length>0?$("#"+DonorfyForms.FormId).find('input[data-addressTown="yes"]').val():"",c=$("#"+DonorfyForms.FormId).find('input[data-address2="yes"]').length>0?$("#"+DonorfyForms.FormId).find('input[data-address2="yes"]').val():"",l=$("#"+DonorfyForms.FormId).find('input[data-address1="yes"]').length>0?$("#"+DonorfyForms.FormId).find('input[data-address1="yes"]').val():"",a=$("#"+DonorfyForms.FormId).find('input[data-addressPostCode="yes"]').length>0?$("#"+DonorfyForms.FormId).find('input[data-addressPostCode="yes"]').val():"",v=$("#"+DonorfyForms.FormId).find('input[data-addressCounty="yes"]').length>0?$("#"+DonorfyForms.FormId).find('input[data-addressCounty="yes"]').val():"",y="formContainer"+DonorfyForms.FormId,p=$("#"+DonorfyForms.FormId).find("#TenantCode").val();try{grecaptcha.ready(function(){grecaptcha.execute(DonorfyForms.reCaptchaSiteKey,{action:p+"_"+DonorfyForms.ReCaptchaUrlSuffix+"_ValidateStripeRequest"}).then(function(r){DonorfyForms.DF_DisableSubmitButton();jQuery.ajax({dataType:"json",url:DonorfyForms.DF_GetStripeBaseServiceUrl()+"P1?id="+u+"&code="+f+"&amount="+t+"&email="+e+"&rec="+n+"&token="+r,method:"POST",type:"POST"}).done(function(t){t.OK&&($("#"+y).find("[data-submitbtn]").attr("data-secret",t.RequestData),DonorfyForms.Stripe.handleCardPayment(t.RequestData,cardNumber,{save_payment_method:n,receipt_email:i,payment_method_data:{billing_details:{name:o+" "+s,email:i,address:{city:h,line1:l,line2:c,postal_code:a,state:v}}}}).then(function(n){return n.error?(jQuery("#"+DonorfyForms.FormId).valid(),DonorfyForms.DF_DisplayErrorMessage(n.error.message,"yes"),DonorfyForms.DF_PostForm("no"),!1):($("#"+DonorfyForms.FormId).find("#StripePaymentIntentId").val(n.paymentIntent.id),$("#"+DonorfyForms.FormId).find('input[data-method="yes"]').val("Stripe"),DonorfyForms.DF_PostForm("yes"),!0)}))}).fail(function(n){return console.log("ProcessStripeRequest jqXHR "+n),DonorfyForms.DF_DisplayErrorMessage(DonorfyForms.DF_GetErrorArray(n)),DonorfyForms.DF_PostForm("no"),!1})})})}catch(w){return console.log("Exception in ProcessStripeRequest "+w),DonorfyForms.DF_PostForm("no"),!1}}else return DonorfyForms.DF_PostForm("no"),!1},DF_EnableSubmitButton:function(){var n="formContainer"+DonorfyForms.FormId;$("#"+n).find("[data-submitbtn]").removeAttr("disabled");$("#"+n).find("[data-submitbtn]").button("reset");$("#"+n).find("[data-submitPleaseWait]").hide()},DF_DisableSubmitButton:function(){var n="formContainer"+DonorfyForms.FormId;$("#"+n).find("[data-submitbtn]").button("loading");$("#"+n).find("[data-submitbtn]").attr("disabled","disabled");$("#"+n).find("[data-submitPleaseWait]").show()},DF_SuspendSubmitButton:function(){var n="formContainer"+DonorfyForms.FormId;$("#"+n).find("[data-submitbtn]").attr("disabled","disabled")},DF_DisplayErrorMessage:function(n,t){var i="formContainer"+DonorfyForms.FormId;n!==undefined&&($("#"+i).find("[data-submitPleaseWait]").hide(),$("#"+i).find("[data-SubmitErrorContainer]").show(),t==="yes"&&$("#"+ +i).find("[data-submitErrors]").html()!=undefined&&(n=$("#"+ +i).find("[data-submitErrors]").html()+n),$("#"+i).find("[data-submitErrors]").html(n))},DF_GetDateFormatString:function(){try{const n=(new Intl.DateTimeFormat).formatToParts(new Date);return n.map(n=>{switch(n.type){case"day":return"DD";case"month":return"MM";case"year":return"YYYY";default:return n.value}}).join("")}catch(n){console.log("DonorfyForms.DF_GetDateFormatString "+n)}return""},DF_GetLocale:function(){try{return window.navigator.languages?window.navigator.languages[0]:window.navigator.userLanguage||window.navigator.language}catch(n){console.log("DonorfyForms.DF_GetLocale "+n)}return""},DF_GetErrorArray:function(n){var t=[],i,r;if(n.responseText===undefined)return t.push("Undefined error occurred"),t;if(i=JSON.parse(n.responseText),i.ModelState)for(r in i.ModelState)t.push(i.ModelState[r]);else i.Message?t.push(i.Message):t.push("An unexpected error occurred.");return t},DF_GetStripeBaseServiceUrl:function(){return DonorfyForms.Mode===undefined||DonorfyForms.Mode===""||DonorfyForms.Mode==="Live"?"https://api.donorfy.com/api/stripe/":DonorfyForms.Mode==="Local"?"https://localhost:44321/api/stripe/":DonorfyForms.Mode==="Demo"?"https://demoapi.donorfy.com/api/stripe/":void 0},DF_GetGoCardlessBaseServiceUrl:function(){return DonorfyForms.Mode===undefined||DonorfyForms.Mode===""||DonorfyForms.Mode==="Live"?"https://api.donorfy.com/api/gocardless2/":DonorfyForms.Mode==="Local"?"https://localhost:44321/api/gocardless2/":DonorfyForms.Mode==="Demo"?"https://demoapi.donorfy.com/api/gocardless2/":void 0},DF_FormatAmountWithCurrency:function(n){let u=new Intl.NumberFormat(DonorfyForms.localeCode,{style:"currency",currencyDisplay:"narrowSymbol",currency:DonorfyForms.Currency,minimumFractionDigits:2,maximumFractionDigits:2}),t=u.formatToParts(n),i=!1,r="";return t.forEach(n=>{n.type==="fraction"&&(i=n.value==="00")}),t.forEach(n=>{let t=n.value;switch(n.type){case"fraction":case"decimal":t=i?"":n.value}r+=t}),r}};const DonorfyCharts={CreateBarChart:function(n,t,i,r,u){let e=n=>{let t=($(window).height()-$(n).closest(".widget-body").offset().top)*.9;t<250&&(t=250);n.style.height=t+"px";n.style.width="100%"},f;try{n&&(window.removeEventListener("resize",()=>{e(t),n.resize()}),n.dispose());let o=[];$.each(i.datasets,function(n,t){let i={data:t.data,type:"bar",stack:"category",name:t.label,color:t.backgroundColor};o.push(i)});let h={type:"category",data:i.labels,splitLine:{show:!0},axisLabel:{interval:0}};u.series=o;u.xAxis=h;e(t);f=echarts.init(t);DonorfyCharts.CreateAndSetStandardOptions(f,r,u);let s=()=>{e(t),f.resize()};window.addEventListener("resize",s);$(t).on("remove",()=>{DonorfyCharts.Dispose(f),window.removeEventListener("resize",s)})}catch(o){console.log("Exception in CreateBarChart "+o)}return f},CreateAndSetStandardOptions:(n,t,i)=>{let r={toolbox:{show:!0,itemSize:20,showTitle:!1,feature:{saveAsImage:{name:t,icon:"path://M144 480C64.5 480 0 415.5 0 336c0-62.8 40.2-116.2 96.2-135.9c-.1-2.7-.2-5.4-.2-8.1c0-88.4 71.6-160 160-160c59.3 0 111 32.2 138.7 80.2C409.9 102 428.3 96 448 96c53 0 96 43 96 96c0 12.2-2.3 23.8-6.4 34.6C596 238.4 640 290.1 640 352c0 70.7-57.3 128-128 128H144zm79-167l80 80c9.4 9.4 24.6 9.4 33.9 0l80-80c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-39 39V184c0-13.3-10.7-24-24-24s-24 10.7-24 24V318.1l-39-39c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9z",iconStyle:{color:"Black",borderWidth:0}}}},grid:{containLabel:!0}};$.extend(r,i);n.setOption(r,!0)},Dispose:n=>{if(n){let t=echarts.getInstanceByDom(n);t&&t.dispose()}}};if($.throttle_delay=350,$.menu_speed=235,$.navbar_height=49,$.root_=$("body"),$.left_panel=$("#left-panel"),$.shortcut_dropdown=$("#shortcut"),$.bread_crumb=$("#ribbon ol.breadcrumb"),$.device=null,$.navAsAjax=!1,$.enableJarvisWidgets=!0,$.enableMobileWidgets=!1,ismobile=/iphone|ipad|ipod|android|blackberry|mini|windows\sce|palm/i.test(navigator.userAgent.toLowerCase()),ismobile?($.root_.addClass("mobile-detected"),$.device="mobile"):($.root_.addClass("desktop-detected"),$.device="desktop"),$(document).ready(function(){function t(){window.location=$.loginURL}function n(){$.shortcut_dropdown.animate({height:"hide"},300,"easeOutCirc");$.root_.removeClass("shortcut-on")}function i(){$.shortcut_dropdown.animate({height:"show"},200,"easeOutCirc");$.root_.addClass("shortcut-on")}$("[rel=tooltip]").length&&$("[rel=tooltip]").tooltip();nav_page_height();null||$("nav ul").each(function(){$(this).data("animate","yes")&&$(this).jarvismenu({accordion:!0,speed:$.menu_speed,closedSign:'<em class="fa fa-expand-o"><\/em>',openedSign:'<em class="fa fa-collapse-o"><\/em>'})});$(".minifyme").click(function(n){$("body").toggleClass("minified");$(this).effect("highlight",{},500);n.preventDefault()});$("#hide-menu >:first-child > a").click(function(n){$("body").toggleClass("hidden-menu");n.preventDefault()});$("#show-shortcut").click(function(t){$.shortcut_dropdown.is(":visible")?n():i();t.preventDefault()});$("#search-mobile").click(function(){$.root_.addClass("search-mobile")});$("#cancel-search-js").click(function(){$.root_.removeClass("search-mobile")});$("#task-reminders").click(function(n){var t=$(this);t.next(".reminders-box").is(":visible")?(t.next(".reminders-box").fadeOut(150),t.removeClass("active")):(t.next(".reminders-box").fadeIn(150),t.addClass("active"),setTimeout(function(){$.trim($(".task-list").html()).length||Donorfy.RefreshTaskList()},500));n.preventDefault()});$('div.reminders-box input[name="tasksButton"]').change(function(){var n=$(this).val();Donorfy.LoadTaskList(n)});$(document).mouseup(function(n){$(".reminders-box").is(n.target)||$(".reminders-box").has(n.target).length!==0||($(".reminders-box").fadeOut(150),$(".reminders-box").prev().removeClass("active"))});$("button[data-loading-text]").on("click",function(){var n=$(this);n.button("loading");setTimeout(function(){n.button("reset")},3e3)});$("#refresh").click(function(n){$.SmartMessageBox({title:"<i class='fa fa-refresh' style='color:green'><\/i> Clear Local Storage",content:"Would you like to RESET all your saved widgets and clear LocalStorage?",buttons:"[No][Yes]"},function(n){n=="Yes"&&localStorage&&(localStorage.clear(),location.reload())});n.preventDefault()});$("#logout a").click(function(n){var i=$(this);$.loginURL=i.attr("href");$.logoutMSG=i.data("logout-msg");$.SmartMessageBox({title:"<i class='fa fa-sign-out txt-color-orangeDark'><\/i> Logout <span class='txt-color-orangeDark'><strong>"+$("#show-shortcut").text()+"<\/strong><\/span> ?",content:$.logoutMSG||"You can improve your security further after logging out by closing this opened browser",buttons:"[No][Yes]"},function(n){n=="Yes"&&($.root_.addClass("animated fadeOutUp"),setTimeout(t,1e3))});n.preventDefault()});$.shortcut_dropdown.find("a").click(function(t){t.preventDefault();window.location=$(this).attr("href");setTimeout(n,300)});$(document).mouseup(function(t){try{$.shortcut_dropdown.is(t.target)||$.shortcut_dropdown.has(t.target).length!==0||n()}catch(t){console.log("Ex 123"+t)}})}),function(n,t,i){function l(){h=t[f](function(){r.each(function(){var i=n(this),r=i.width(),u=i.height(),t=n.data(this,e);(r!==t.w||u!==t.h)&&i.trigger(s,[t.w=r,t.h=u])});l()},u[c])}var r=n([]),u=n.resize=n.extend(n.resize,{}),h,f="setTimeout",s="resize",e=s+"-special-event",c="delay",o="throttleWindow";u[c]=n.throttle_delay;u[o]=!0;n.event.special[s]={setup:function(){if(!u[o]&&this[f])return!1;var t=n(this);r=r.add(t);n.data(this,e,{w:t.width(),h:t.height()});r.length===1&&l()},teardown:function(){if(!u[o]&&this[f])return!1;var t=n(this);r=r.not(t);t.removeData(e);r.length||clearTimeout(h)},add:function(t){function s(t,u,f){var o=n(this),s=n.data(this,e);s.w=u!==i?u:o.width();s.h=f!==i?f:o.height();r.apply(this,arguments)}if(!u[o]&&this[f])return!1;var r;if(n.isFunction(t))return r=t,s;r=t.handler;t.handler=s}}}(jQuery,this),$("#main").resize(function(){nav_page_height();check_if_mobile_width()}),$("nav").resize(function(){nav_page_height()}),ie=function(){for(var i,n=3,t=document.createElement("div"),r=t.getElementsByTagName("i");t.innerHTML="<!--[if gt IE "+ ++n+"]><i><\/i><![endif]-->",r[0];);return n>4?n:i}(),$.fn.extend({jarvismenu:function(n){var t=$.extend({accordion:"true",speed:200,closedSign:"[+]",openedSign:"[-]"},n),i=$(this);i.find("li").each(function(){$(this).find("ul").length!=0&&($(this).find("a:first").append("<b class='collapse-sign'>"+t.closedSign+"<\/b>"),$(this).find("a:first").attr("href")=="#"&&$(this).find("a:first").click(function(){return!1}))});i.find("li.active").each(function(){$(this).parents("ul").slideDown(t.speed);$(this).parents("ul").parent("li").find("b:first").html(t.openedSign);$(this).parents("ul").parent("li").addClass("open")});i.find("li a").click(function(){$(this).parent().find("ul").length!=0&&(t.accordion&&($(this).parent().find("ul").is(":visible")||(parents=$(this).parent().parents("ul"),visible=i.find("ul:visible"),visible.each(function(n){var i=!0;parents.each(function(t){if(parents[t]==visible[n])return i=!1,!1});i&&$(this).parent().find("ul")!=visible[n]&&$(visible[n]).slideUp(t.speed,function(){$(this).parent("li").find("b:first").html(t.closedSign);$(this).parent("li").removeClass("open")})}))),$(this).parent().find("ul:first").is(":visible")&&!$(this).parent().find("ul:first").hasClass("active")?$(this).parent().find("ul:first").slideUp(t.speed,function(){$(this).parent("li").removeClass("open");$(this).parent("li").find("b:first").delay(t.speed).html(t.closedSign)}):$(this).parent().find("ul:first").slideDown(t.speed,function(){$(this).parent("li").addClass("open");$(this).parent("li").find("b:first").delay(t.speed).html(t.openedSign)}))})}}),jQuery.fn.doesExist=function(){return jQuery(this).length>0},jsArray={},$.navAsAjax){$("nav").length&&checkURL();$(document).on("click",'nav a[href!="#"]',function(n){n.preventDefault();var t=$(n.currentTarget);t.parent().hasClass("active")||t.attr("target")||($.root_.hasClass("mobile-view-activated")?($.root_.removeClass("hidden-menu"),window.setTimeout(function(){window.location.search?window.location.href=window.location.href.replace(window.location.search,"").replace(window.location.hash,"")+"#"+t.attr("href"):window.location.hash=t.attr("href")},150)):window.location.search?window.location.href=window.location.href.replace(window.location.search,"").replace(window.location.hash,"")+"#"+t.attr("href"):window.location.hash=t.attr("href"))});$(document).on("click",'nav a[target="_blank"]',function(n){n.preventDefault();var t=$(n.currentTarget);window.open(t.attr("href"))});$(document).on("click",'nav a[target="_top"]',function(n){n.preventDefault();var t=$(n.currentTarget);window.location=t.attr("href")});$(document).on("click",'nav a[href="#"]',function(n){n.preventDefault()});$(window).on("hashchange",function(){checkURL()})}$("body").on("click",function(n){$('[rel="popover"]').each(function(){$(this).is(n.target)||$(this).has(n.target).length!==0||$(".popover").has(n.target).length!==0||$(this).popover("hide")})});!function(n){"use strict";n.matchMedia=n.matchMedia||function(n){var u,i=n.documentElement,f=i.firstElementChild||i.firstChild,r=n.createElement("body"),t=n.createElement("div");return t.id="mq-test-1",t.style.cssText="position:absolute;top:-100em",r.style.background="none",r.appendChild(t),function(n){return t.innerHTML='&shy;<style media="'+n+'"> #mq-test-1 { width: 42px; }<\/style>',i.insertBefore(r,f),u=42===t.offsetWidth,i.removeChild(r),{matches:u,media:n}}}(n.document)}(this),function(n){"use strict";function p(){y(!0)}var t={};n.respond=t;t.update=function(){};var f=[],tt=function(){var t=!1;try{t=new n.XMLHttpRequest}catch(i){t=new n.ActiveXObject("Microsoft.XMLHTTP")}return function(){return t}}(),w=function(n,t){var i=tt();i&&(i.open("GET",n,!0),i.onreadystatechange=function(){4!==i.readyState||200!==i.status&&304!==i.status||t(i.responseText)},4!==i.readyState&&i.send(null))};if(t.ajax=w,t.queue=f,t.regex={media:/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi,keyframes:/@(?:\-(?:o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}]*\{[^\}\{]*\})+[^\}]*\}/gi,urls:/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,findStyles:/@media *([^\{]+)\{([\S\s]+?)$/,only:/(only\s+)?([a-zA-Z]+)\s?/,minw:/\([\s]*min\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/,maxw:/\([\s]*max\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/},t.mediaQueriesSupported=n.matchMedia&&null!==n.matchMedia("only all")&&n.matchMedia("only all").matches,!t.mediaQueriesSupported){var c,b,l,i=n.document,r=i.documentElement,e=[],o=[],u=[],a={},k=30,s=i.getElementsByTagName("head")[0]||r,it=i.getElementsByTagName("base")[0],h=s.getElementsByTagName("link"),v=function(){var u,t=i.createElement("div"),n=i.body,o=r.style.fontSize,e=n&&n.style.fontSize,f=!1;return t.style.cssText="position:absolute;font-size:1em;width:1em",n||(n=f=i.createElement("body"),n.style.background="none"),r.style.fontSize="100%",n.style.fontSize="100%",n.appendChild(t),f&&r.insertBefore(n,r.firstChild),u=t.offsetWidth,f?r.removeChild(n):n.removeChild(t),r.style.fontSize=o,e&&(n.style.fontSize=e),u=l=parseFloat(u)},y=function(t){var rt="clientWidth",ut=r[rt],ft="CSS1Compat"===i.compatMode&&ut||i.body[rt]||ut,p={},ct=h[h.length-1],et=(new Date).getTime(),tt,g,nt,f,it;if(t&&c&&k>et-c)return n.clearTimeout(b),b=n.setTimeout(y,k),void 0;c=et;for(tt in e)if(e.hasOwnProperty(tt)){var a=e[tt],w=a.minw,d=a.maxw,ot=null===w,st=null===d,ht="em";w&&(w=parseFloat(w)*(w.indexOf(ht)>-1?l||v():1));d&&(d=parseFloat(d)*(d.indexOf(ht)>-1?l||v():1));a.hasquery&&(ot&&st||!(ot||ft>=w)||!(st||d>=ft))||(p[a.media]||(p[a.media]=[]),p[a.media].push(o[a.rules]))}for(g in u)u.hasOwnProperty(g)&&u[g]&&u[g].parentNode===s&&s.removeChild(u[g]);u.length=0;for(nt in p)p.hasOwnProperty(nt)&&(f=i.createElement("style"),it=p[nt].join("\n"),f.type="text/css",f.media=nt,s.insertBefore(f,ct.nextSibling),f.styleSheet?f.styleSheet.cssText=it:f.appendChild(i.createTextNode(it)),u.push(f))},d=function(n,i,r){var h=n.replace(t.regex.keyframes,"").match(t.regex.media),c=h&&h.length||0,l,a,f,v,u,p,w,s;for(i=i.substring(0,i.lastIndexOf("/")),l=function(n){return n.replace(t.regex.urls,"$1"+i+"$2$3")},a=!c&&r,i.length&&(i+="/"),a&&(c=1),f=0;c>f;f++)for(a?(v=r,o.push(l(n))):(v=h[f].match(t.regex.findStyles)&&RegExp.$1,o.push(RegExp.$2&&l(RegExp.$2))),p=v.split(","),w=p.length,s=0;w>s;s++)u=p[s],e.push({media:u.split("(")[0].match(t.regex.only)&&RegExp.$2||"all",rules:o.length-1,hasquery:u.indexOf("(")>-1,minw:u.match(t.regex.minw)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:u.match(t.regex.maxw)&&parseFloat(RegExp.$1)+(RegExp.$2||"")});y()},g=function(){if(f.length){var t=f.shift();w(t.href,function(i){d(i,t.href,t.media);a[t.href]=!0;n.setTimeout(function(){g()},0)})}},nt=function(){for(var r=0;r<h.length;r++){var i=h[r],t=i.href,u=i.media,e=i.rel&&"stylesheet"===i.rel.toLowerCase();t&&e&&!a[t]&&(i.styleSheet&&i.styleSheet.rawCssText?(d(i.styleSheet.rawCssText,t,u),a[t]=!0):(!/^([a-zA-Z:]*\/\/)/.test(t)&&!it||t.replace(RegExp.$1,"").split("/")[0]===n.location.host)&&("//"===t.substring(0,2)&&(t=n.location.protocol+t),f.push({href:t,media:u})))}g()};nt();t.update=nt;t.getEmValue=v;n.addEventListener?n.addEventListener("resize",p,!1):n.attachEvent&&n.attachEvent("onresize",p)}}(this),function(n,t){typeof exports=="object"&&typeof module!="undefined"?module.exports=t():typeof define=="function"&&define.amd?define(t):(n=typeof globalThis!="undefined"?globalThis:n||self,n.introJs=t())}(this,function(){"use strict";function pt(n){"@babel/helpers - typeof";return pt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},pt(n)}function ls(n,t){var r={};for(var i in n)r[i]=n[i];for(i in t)r[i]=t[i];return r}function r(n,t,i){if(n)for(var r=0,u=n.length;r<u;r++)t(n[r],r);typeof i=="function"&&i()}function du(n,t){return t={exports:{}},n(t,t.exports),t.exports}function ie(n,t){return RegExp(n,t)}function c(n,t){var i,u;n instanceof SVGElement?(i=n.getAttribute("class")||"",i.match(t)||n.setAttribute("class","".concat(i," ").concat(t))):n.classList!==undefined?(u=t.split(" "),r(u,function(t){n.classList.add(t)})):n.className.match(t)||(n.className+=" ".concat(t))}function uu(n,t){var i="";return n.currentStyle?i=n.currentStyle[t]:document.defaultView&&document.defaultView.getComputedStyle&&(i=document.defaultView.getComputedStyle(n,null).getPropertyValue(t)),i&&i.toLowerCase?i.toLowerCase():i}function pl(n){var i=n.element,t;c(i,"introjs-showElement");t=uu(i,"position");t!=="absolute"&&t!=="relative"&&t!=="sticky"&&t!=="fixed"&&c(i,"introjs-relativePosition")}function wl(n){var t=window.getComputedStyle(n),r=t.position==="absolute",i;if(t.position==="fixed")return document.body;for(i=n;i=i.parentElement;)if((t=window.getComputedStyle(i),!r||t.position!=="static")&&/(auto|scroll)/.test(t.overflow+t.overflowY+t.overflowX))return i;return document.body}function ge(n){var i=n.element,t;this._options.scrollToElement&&(t=wl(i),t!==document.body)&&(t.scrollTop=i.offsetTop-t.offsetTop)}function fu(){if(window.innerWidth!==undefined)return{width:window.innerWidth,height:window.innerHeight};var n=document.documentElement;return{width:n.clientWidth,height:n.clientHeight}}function bl(n){var t=n.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom+80<=window.innerHeight&&t.right<=window.innerWidth}function no(n,t,i){var f=t.element,r,u,e;n!=="off"&&this._options.scrollToElement&&(r=n==="tooltip"?i.getBoundingClientRect():f.getBoundingClientRect(),bl(f)||(u=fu().height,e=r.bottom-(r.bottom-r.top),e<0||f.clientHeight>u?window.scrollBy(0,r.top-(u/2-r.height/2)-this._options.scrollPadding):window.scrollBy(0,r.top-(u/2-r.height/2)+this._options.scrollPadding)))}function fi(n){n.setAttribute("role","button");n.tabIndex=0}function at(n,t){var r=document.body,u=document.documentElement,s=window.pageYOffset||u.scrollTop||r.scrollTop,h=window.pageXOffset||u.scrollLeft||r.scrollLeft;t=t||r;var i=n.getBoundingClientRect(),f=t.getBoundingClientRect(),e=uu(t,"position"),o={width:i.width,height:i.height};return t.tagName.toLowerCase()!=="body"&&e==="relative"||e==="sticky"?Object.assign(o,{top:i.top-f.top,left:i.left-f.left}):Object.assign(o,{top:i.top+s,left:i.left+h})}function eu(n){var t=n.parentNode;return!t||t.nodeName==="HTML"?!1:uu(n,"position")==="fixed"?!0:eu(t)}function ou(n,t){if(n instanceof SVGElement){var i=n.getAttribute("class")||"";n.setAttribute("class",i.replace(t,"").replace(/^\s+|\s+$/g,""))}else n.className=n.className.replace(t,"").replace(/^\s+|\s+$/g,"")}function w(n,t){var i="",r;if(n.style.cssText&&(i+=n.style.cssText),typeof t=="string")i+=t;else for(r in t)i+="".concat(r,":").concat(t[r],";");n.style.cssText=i}function a(n){if(n){if(!this._introItems[this._currentStep])return;var r=this._introItems[this._currentStep],i=at(r.element,this._targetElement),t=this._options.helperElementPadding;eu(r.element)?c(n,"introjs-fixedTooltip"):ou(n,"introjs-fixedTooltip");r.position==="floating"&&(t=0);w(n,{width:"".concat(i.width+t,"px"),height:"".concat(i.height+t,"px"),top:"".concat(i.top-t/2,"px"),left:"".concat(i.left-t/2,"px")})}}function gi(n,t,i,r,u){return n.left+t+i.width>r.width?(u.style.left="".concat(r.width-i.width-n.left,"px"),!1):(u.style.left="".concat(t,"px"),!0)}function nr(n,t,i,r){return n.left+n.width-t-i.width<0?(r.style.left="".concat(-n.left,"px"),!1):(r.style.right="".concat(t,"px"),!0)}function tt(n,t){n.includes(t)&&n.splice(n.indexOf(t),1)}function sv(n,t,i,r){var o=i.width,f=t/2,e=Math.min(o,window.screen.width),u=["-left-aligned","-middle-aligned","-right-aligned"];return e-n<t&&tt(u,"-left-aligned"),(n<f||e-n<f)&&tt(u,"-middle-aligned"),n<t&&tt(u,"-right-aligned"),u.length?u.includes(r)?r:u[0]:"-middle-aligned"}function hv(n,t,i){var r=this._options.positionPrecedence.slice(),e=fu(),s=at(t).height+10,o=at(t).width+20,u=n.getBoundingClientRect(),f="floating",h;return u.bottom+s>e.height&&tt(r,"bottom"),u.top-s<0&&tt(r,"top"),u.right+o>e.width&&tt(r,"right"),u.left-o<0&&tt(r,"left"),h=function(n){var t=n.indexOf("-");return t!==-1?n.substr(t):""}(i||""),i&&(i=i.split("-")[0]),r.length&&(f=r.includes(i)?i:r[0]),["top","bottom"].includes(f)&&(f+=sv(u.left,o,e,h)),f}function tr(n,t,i,r){var v="",a,f,u,o,s,h,l,e;if(r=r||!1,t.style.top=null,t.style.right=null,t.style.bottom=null,t.style.left=null,t.style.marginLeft=null,t.style.marginTop=null,i.style.display="inherit",this._introItems[this._currentStep]){a=this._introItems[this._currentStep];v=typeof a.tooltipClass=="string"?a.tooltipClass:this._options.tooltipClass;t.className=["introjs-tooltip",v].filter(Boolean).join(" ");t.setAttribute("role","dialog");s=this._introItems[this._currentStep].position;s!=="floating"&&this._options.autoPosition&&(s=hv.call(this,n,t,s));u=at(n);f=at(t);o=fu();c(t,"introjs-".concat(s));switch(s){case"top-right-aligned":i.className="introjs-arrow bottom-right";l=0;nr(u,l,f,t);t.style.bottom="".concat(u.height+20,"px");break;case"top-middle-aligned":i.className="introjs-arrow bottom-middle";e=u.width/2-f.width/2;r&&(e+=5);nr(u,e,f,t)&&(t.style.right=null,gi(u,e,f,o,t));t.style.bottom="".concat(u.height+20,"px");break;case"top-left-aligned":case"top":i.className="introjs-arrow bottom";h=r?0:15;gi(u,h,f,o,t);t.style.bottom="".concat(u.height+20,"px");break;case"right":t.style.left="".concat(u.width+20,"px");u.top+f.height>o.height?(i.className="introjs-arrow left-bottom",t.style.top="-".concat(f.height-u.height-20,"px")):i.className="introjs-arrow left";break;case"left":r||this._options.showStepNumbers!==!0||(t.style.top="15px");u.top+f.height>o.height?(t.style.top="-".concat(f.height-u.height-20,"px"),i.className="introjs-arrow right-bottom"):i.className="introjs-arrow right";t.style.right="".concat(u.width+20,"px");break;case"floating":i.style.display="none";t.style.left="50%";t.style.top="50%";t.style.marginLeft="-".concat(f.width/2,"px");t.style.marginTop="-".concat(f.height/2,"px");break;case"bottom-right-aligned":i.className="introjs-arrow top-right";l=0;nr(u,l,f,t);t.style.top="".concat(u.height+20,"px");break;case"bottom-middle-aligned":i.className="introjs-arrow top-middle";e=u.width/2-f.width/2;r&&(e+=5);nr(u,e,f,t)&&(t.style.right=null,gi(u,e,f,o,t));t.style.top="".concat(u.height+20,"px");break;default:i.className="introjs-arrow top";h=0;gi(u,h,f,o,t);t.style.top="".concat(u.height+20,"px")}}}function lo(){var n=document.querySelectorAll(".introjs-showElement");r(n,function(n){ou(n,/introjs-[a-zA-Z]+/g)})}function n(n,t){var r=document.createElement(n),f,i,u;t=t||{};f=/^(?:role|data-|aria-)/;for(i in t)u=t[i],i==="style"?w(r,u):i.match(f)?r.setAttribute(i,u):r[i]=u;return r}function ao(n,t,i){if(i){var r=t.style.opacity||"1";w(t,{opacity:"0"});window.setTimeout(function(){w(t,{opacity:r})},10)}n.appendChild(t)}function ir(){var n=parseInt(this._currentStep+1,10);return n/this._introItems.length*100}function cv(){var t=document.querySelector(".introjs-disableInteraction");t===null&&(t=n("div",{className:"introjs-disableInteraction"}),this._targetElement.appendChild(t));a.call(this,t)}function vo(t){var at=this,b,lt,h,k,d;typeof this._introChangeCallback!="undefined"&&this._introChangeCallback.call(this,t.element);var i=this,g=document.querySelector(".introjs-helperLayer"),e=document.querySelector(".introjs-tooltipReferenceLayer"),y="introjs-helperLayer",u,f,s;if(typeof t.highlightClass=="string"&&(y+=" ".concat(t.highlightClass)),typeof this._options.highlightClass=="string"&&(y+=" ".concat(this._options.highlightClass)),g!==null){var et=e.querySelector(".introjs-helperNumberLayer"),ot=e.querySelector(".introjs-tooltiptext"),vt=e.querySelector(".introjs-tooltip-title"),yt=e.querySelector(".introjs-arrow"),l=e.querySelector(".introjs-tooltip");s=e.querySelector(".introjs-skipbutton");f=e.querySelector(".introjs-prevbutton");u=e.querySelector(".introjs-nextbutton");g.className=y;l.style.opacity=0;l.style.display="none";ge.call(i,t);a.call(i,g);a.call(i,e);lo();i._lastShowElementTimer&&window.clearTimeout(i._lastShowElementTimer);i._lastShowElementTimer=window.setTimeout(function(){et!==null&&(et.innerHTML="".concat(t.step," of ").concat(at._introItems.length));ot.innerHTML=t.intro;vt.innerHTML=t.title;l.style.display="block";tr.call(i,t.element,l,yt);i._options.showBullets&&(e.querySelector(".introjs-bullets li > a.active").className="",e.querySelector('.introjs-bullets li > a[data-stepnumber="'.concat(t.step,'"]')).className="active");e.querySelector(".introjs-progress .introjs-progressbar").style.cssText="width:".concat(ir.call(i),"%;");e.querySelector(".introjs-progress .introjs-progressbar").setAttribute("aria-valuenow",ir.call(i));l.style.opacity=1;typeof u!="undefined"&&u!==null&&/introjs-donebutton/gi.test(u.className)?u.focus():typeof u!="undefined"&&u!==null&&u.focus();no.call(i,t.scrollTo,t,ot)},350)}else{var nt=n("div",{className:y}),tt=n("div",{className:"introjs-tooltipReferenceLayer"}),st=n("div",{className:"introjs-arrow"}),o=n("div",{className:"introjs-tooltip"}),ht=n("div",{className:"introjs-tooltiptext"}),rt=n("div",{className:"introjs-tooltip-header"}),ct=n("h1",{className:"introjs-tooltip-title"}),ft=n("div",{className:"introjs-bullets"}),p=n("div"),v=n("div");w(nt,{"box-shadow":"0 0 1px 2px rgba(33, 33, 33, 0.8), rgba(33, 33, 33, ".concat(i._options.overlayOpacity.toString(),") 0 0 0 5000px")});ge.call(i,t);a.call(i,nt);a.call(i,tt);ao(this._targetElement,nt,!0);ao(this._targetElement,tt);ht.innerHTML=t.intro;ct.innerHTML=t.title;this._options.showBullets===!1&&(ft.style.display="none");b=n("ul");b.setAttribute("role","tablist");lt=function(){i.goToStep(this.getAttribute("data-stepnumber"))};r(this._introItems,function(i,r){var e=i.step,f=n("li"),u=n("a");f.setAttribute("role","presentation");u.setAttribute("role","tab");u.onclick=lt;r===t.step-1&&(u.className="active");fi(u);u.innerHTML="&nbsp;";u.setAttribute("data-stepnumber",e);f.appendChild(u);b.appendChild(f)});ft.appendChild(b);p.className="introjs-progress";this._options.showProgress===!1&&(p.style.display="none");h=n("div",{className:"introjs-progressbar"});this._options.progressBarAdditionalClass&&(h.className+=" "+this._options.progressBarAdditionalClass);h.setAttribute("role","progress");h.setAttribute("aria-valuemin",0);h.setAttribute("aria-valuemax",100);h.setAttribute("aria-valuenow",ir.call(this));h.style.cssText="width:".concat(ir.call(this),"%;");p.appendChild(h);v.className="introjs-tooltipbuttons";this._options.showButtons===!1&&(v.style.display="none");rt.appendChild(ct);o.appendChild(rt);o.appendChild(ht);o.appendChild(ft);o.appendChild(p);k=n("div");this._options.showStepNumbers===!0&&(k.className="introjs-helperNumberLayer",k.innerHTML="".concat(t.step," of ").concat(this._introItems.length),o.appendChild(k));o.appendChild(st);tt.appendChild(o);u=n("a");u.onclick=function(){i._introItems.length-1!==i._currentStep?it.call(i):/introjs-donebutton/gi.test(u.className)&&(typeof i._introCompleteCallback=="function"&&i._introCompleteCallback.call(i),ut.call(i,i._targetElement))};fi(u);u.innerHTML=this._options.nextLabel;f=n("a");f.onclick=function(){i._currentStep!==0&&rr.call(i)};fi(f);f.innerHTML=this._options.prevLabel;s=n("a",{className:"introjs-skipbutton"});fi(s);s.innerHTML=this._options.skipLabel;s.onclick=function(){i._introItems.length-1===i._currentStep&&typeof i._introCompleteCallback=="function"&&i._introCompleteCallback.call(i);typeof i._introSkipCallback=="function"&&i._introSkipCallback.call(i);ut.call(i,i._targetElement)};rt.appendChild(s);this._introItems.length>1&&v.appendChild(f);v.appendChild(u);o.appendChild(v);tr.call(i,t.element,o,st);no.call(this,t.scrollTo,t,o)}d=i._targetElement.querySelector(".introjs-disableInteraction");d&&d.parentNode.removeChild(d);t.disableInteraction&&cv.call(i);this._currentStep===0&&this._introItems.length>1?(typeof u!="undefined"&&u!==null&&(u.className="".concat(this._options.buttonClass," introjs-nextbutton"),u.innerHTML=this._options.nextLabel),this._options.hidePrev===!0?(typeof f!="undefined"&&f!==null&&(f.className="".concat(this._options.buttonClass," introjs-prevbutton introjs-hidden")),typeof u!="undefined"&&u!==null&&c(u,"introjs-fullbutton")):typeof f!="undefined"&&f!==null&&(f.className="".concat(this._options.buttonClass," introjs-prevbutton introjs-disabled"))):this._introItems.length-1===this._currentStep||this._introItems.length===1?(typeof f!="undefined"&&f!==null&&(f.className="".concat(this._options.buttonClass," introjs-prevbutton")),this._options.hideNext===!0?(typeof u!="undefined"&&u!==null&&(u.className="".concat(this._options.buttonClass," introjs-nextbutton introjs-hidden")),typeof f!="undefined"&&f!==null&&c(f,"introjs-fullbutton")):typeof u!="undefined"&&u!==null&&(this._options.nextToDone===!0?(u.innerHTML=this._options.doneLabel,c(u,"".concat(this._options.buttonClass," introjs-nextbutton introjs-donebutton"))):u.className="".concat(this._options.buttonClass," introjs-nextbutton introjs-disabled"))):(typeof f!="undefined"&&f!==null&&(f.className="".concat(this._options.buttonClass," introjs-prevbutton")),typeof u!="undefined"&&u!==null&&(u.className="".concat(this._options.buttonClass," introjs-nextbutton"),u.innerHTML=this._options.nextLabel));typeof f!="undefined"&&f!==null&&f.setAttribute("role","button");typeof u!="undefined"&&u!==null&&u.setAttribute("role","button");typeof s!="undefined"&&s!==null&&s.setAttribute("role","button");typeof u!="undefined"&&u!==null&&u.focus();pl(t);typeof this._introAfterChangeCallback!="undefined"&&this._introAfterChangeCallback.call(this,t.element)}function lv(n){this._currentStep=n-2;typeof this._introItems!="undefined"&&it.call(this)}function av(n){this._currentStepNumber=n;typeof this._introItems!="undefined"&&it.call(this)}function it(){var t=this,n,i;if(this._direction="forward",typeof this._currentStepNumber!="undefined"&&r(this._introItems,function(n,i){var r=n.step;r===t._currentStepNumber&&(t._currentStep=i-1,t._currentStepNumber=undefined)}),typeof this._currentStep=="undefined"?this._currentStep=0:++this._currentStep,n=this._introItems[this._currentStep],i=!0,typeof this._introBeforeChangeCallback!="undefined"&&(i=this._introBeforeChangeCallback.call(this,n&&n.element)),i===!1)return--this._currentStep,!1;if(this._introItems.length<=this._currentStep){typeof this._introCompleteCallback=="function"&&this._introCompleteCallback.call(this);ut.call(this,this._targetElement);return}vo.call(this,n)}function rr(){if(this._direction="backward",this._currentStep===0)return!1;--this._currentStep;var n=this._introItems[this._currentStep],t=!0;if(typeof this._introBeforeChangeCallback!="undefined"&&(t=this._introBeforeChangeCallback.call(this,n&&n.element)),t===!1)return++this._currentStep,!1;vo.call(this,n)}function vv(){return this._currentStep}function yo(n){var t=n.code===undefined?n.which:n.code,i;t===null&&(t=n.charCode===null?n.keyCode:n.charCode);(t==="Escape"||t===27)&&this._options.exitOnEsc===!0?ut.call(this,this._targetElement):t==="ArrowLeft"||t===37?rr.call(this):t==="ArrowRight"||t===39?it.call(this):(t==="Enter"||t==="NumpadEnter"||t===13)&&(i=n.target||n.srcElement,i&&i.className.match("introjs-prevbutton")?rr.call(this):i&&i.className.match("introjs-skipbutton")?(this._introItems.length-1===this._currentStep&&typeof this._introCompleteCallback=="function"&&this._introCompleteCallback.call(this),ut.call(this,this._targetElement)):i&&i.getAttribute("data-stepnumber")?i.click():it.call(this),n.preventDefault?n.preventDefault():n.returnValue=!1)}function yu(n){var i,t;if(n===null||pt(n)!=="object"||typeof n.nodeType!="undefined")return n;i={};for(t in n)i[t]=typeof jQuery!="undefined"&&n[t]instanceof window.jQuery?n[t]:yu(n[t]);return i}function vt(n){var t=document.querySelector(".introjs-hints");return t?t.querySelectorAll(n):[]}function pu(n){var t=vt('.introjs-hint[data-step="'.concat(n,'"]'))[0];wu.call(this);t&&c(t,"introjs-hidehint");typeof this._hintCloseCallback!="undefined"&&this._hintCloseCallback.call(this,n)}function yv(){var n=this,t=vt(".introjs-hint");r(t,function(t){pu.call(n,t.getAttribute("data-step"))})}function pv(){var t=this,n=vt(".introjs-hint");n&&n.length?r(n,function(n){po.call(t,n.getAttribute("data-step"))}):go.call(this,this._targetElement)}function po(n){var t=vt('.introjs-hint[data-step="'.concat(n,'"]'))[0];t&&ou(t,/introjs-hidehint/g)}function wv(){var n=this,t=vt(".introjs-hint");r(t,function(t){wo.call(n,t.getAttribute("data-step"))})}function wo(n){var t=vt('.introjs-hint[data-step="'.concat(n,'"]'))[0];t&&t.parentNode.removeChild(t)}function bv(){var u=this,f=this,t=document.querySelector(".introjs-hints"),i;t===null&&(t=n("div",{className:"introjs-hints"}));i=function(n){return function(t){var i=t?t:window.event;i.stopPropagation&&i.stopPropagation();i.cancelBubble!==null&&(i.cancelBubble=!0);ko.call(f,n)}};r(this._introItems,function(r,f){var e,o,s;document.querySelector('.introjs-hint[data-step="'.concat(f,'"]'))||(e=n("a",{className:"introjs-hint"}),fi(e),e.onclick=i(f),r.hintAnimation||c(e,"introjs-hint-no-anim"),eu(r.element)&&c(e,"introjs-fixedhint"),o=n("div",{className:"introjs-hint-dot"}),s=n("div",{className:"introjs-hint-pulse"}),e.appendChild(o),e.appendChild(s),e.setAttribute("data-step",f),r.targetElement=r.element,r.element=e,bo.call(u,r.hintPosition,e,r.targetElement),t.appendChild(e))});document.body.appendChild(t);typeof this._hintsAddedCallback!="undefined"&&this._hintsAddedCallback.call(this)}function bo(n,t,i){var u=t.style,r=at.call(this,i),f=20,e=20;switch(n){default:case"top-left":u.left="".concat(r.left,"px");u.top="".concat(r.top,"px");break;case"top-right":u.left="".concat(r.left+r.width-f,"px");u.top="".concat(r.top,"px");break;case"bottom-left":u.left="".concat(r.left,"px");u.top="".concat(r.top+r.height-e,"px");break;case"bottom-right":u.left="".concat(r.left+r.width-f,"px");u.top="".concat(r.top+r.height-e,"px");break;case"middle-left":u.left="".concat(r.left,"px");u.top="".concat(r.top+(r.height-e)/2,"px");break;case"middle-right":u.left="".concat(r.left+r.width-f,"px");u.top="".concat(r.top+(r.height-e)/2,"px");break;case"middle-middle":u.left="".concat(r.left+(r.width-f)/2,"px");u.top="".concat(r.top+(r.height-e)/2,"px");break;case"bottom-middle":u.left="".concat(r.left+(r.width-f)/2,"px");u.top="".concat(r.top+r.height-e,"px");break;case"top-middle":u.left="".concat(r.left+(r.width-f)/2,"px");u.top="".concat(r.top,"px")}}function ko(t){var f=document.querySelector('.introjs-hint[data-step="'.concat(t,'"]')),h=this._introItems[t],c,s,i;if(typeof this._hintClickCallback!="undefined"&&this._hintClickCallback.call(this,f,h,t),c=wu.call(this),parseInt(c,10)!==t){var r=n("div",{className:"introjs-tooltip"}),e=n("div"),o=n("div"),u=n("div");r.onclick=function(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0};e.className="introjs-tooltiptext";s=n("p");s.innerHTML=h.hint;i=n("a");i.className=this._options.buttonClass;i.setAttribute("role","button");i.innerHTML=this._options.hintButtonLabel;i.onclick=pu.bind(this,t);e.appendChild(s);e.appendChild(i);o.className="introjs-arrow";r.appendChild(o);r.appendChild(e);this._currentStep=f.getAttribute("data-step");u.className="introjs-tooltipReferenceLayer introjs-hintReference";u.setAttribute("data-step",f.getAttribute("data-step"));a.call(this,u);u.appendChild(r);document.body.appendChild(u);tr.call(this,f,r,o,!0)}}function wu(){var n=document.querySelector(".introjs-hintReference"),t;if(n)return t=n.getAttribute("data-step"),n.parentNode.removeChild(n),t}function go(n){var t=this,i;if(this._introItems=[],this._options.hints)r(this._options.hints,function(n){var i=yu(n);typeof i.element=="string"&&(i.element=document.querySelector(i.element));i.hintPosition=i.hintPosition||t._options.hintPosition;i.hintAnimation=i.hintAnimation||t._options.hintAnimation;i.element!==null&&t._introItems.push(i)});else{if(i=n.querySelectorAll("*[data-hint]"),!i||!i.length)return!1;r(i,function(n){var i=n.getAttribute("data-hintanimation");i=i?i==="true":t._options.hintAnimation;t._introItems.push({element:n,hint:n.getAttribute("data-hint"),hintPosition:n.getAttribute("data-hintposition")||t._options.hintPosition,hintAnimation:i,tooltipClass:n.getAttribute("data-tooltipclass"),position:n.getAttribute("data-position")||t._options.tooltipPosition})})}bv.call(this);ft.on(document,"click",wu,this,!1);ft.on(window,"resize",ns,this,!0)}function ns(){var n=this;r(this._introItems,function(t){var i=t.targetElement,r=t.hintPosition,u=t.element;typeof i!="undefined"&&bo.call(n,r,u,i)})}function os(t){var i=this,s=t.querySelectorAll("*[data-intro]"),u=[],c,f,e,h,o;if(this._options.steps)r(this._options.steps,function(t){var r=yu(t),f;r.step=u.length+1;r.title=r.title||"";typeof r.element=="string"&&(r.element=document.querySelector(r.element));(typeof r.element=="undefined"||r.element===null)&&(f=document.querySelector(".introjsFloatingElement"),f===null&&(f=n("div",{className:"introjsFloatingElement"}),document.body.appendChild(f)),r.element=f,r.position="floating");r.position=r.position||i._options.tooltipPosition;r.scrollTo=r.scrollTo||i._options.scrollTo;typeof r.disableInteraction=="undefined"&&(r.disableInteraction=i._options.disableInteraction);r.element!==null&&u.push(r)});else{if(c=s.length,c<1)return[];r(s,function(n){if((!i._options.group||n.getAttribute("data-intro-group")===i._options.group)&&n.style.display!=="none"){var t=parseInt(n.getAttribute("data-step"),10);f=n.hasAttribute("data-disable-interaction")?!!n.getAttribute("data-disable-interaction"):i._options.disableInteraction;t>0&&(u[t-1]={element:n,title:n.getAttribute("data-title")||"",intro:n.getAttribute("data-intro"),step:parseInt(n.getAttribute("data-step"),10),tooltipClass:n.getAttribute("data-tooltipclass"),highlightClass:n.getAttribute("data-highlightclass"),position:n.getAttribute("data-position")||i._options.tooltipPosition,scrollTo:n.getAttribute("data-scrollto")||i._options.scrollTo,disableInteraction:f})}});e=0;r(s,function(n){if((!i._options.group||n.getAttribute("data-intro-group")===i._options.group)&&n.getAttribute("data-step")===null){for(;;)if(typeof u[e]=="undefined")break;else e++;f=n.hasAttribute("data-disable-interaction")?!!n.getAttribute("data-disable-interaction"):i._options.disableInteraction;u[e]={element:n,title:n.getAttribute("data-title")||"",intro:n.getAttribute("data-intro"),step:e+1,tooltipClass:n.getAttribute("data-tooltipclass"),highlightClass:n.getAttribute("data-highlightclass"),position:n.getAttribute("data-position")||i._options.tooltipPosition,scrollTo:n.getAttribute("data-scrollto")||i._options.scrollTo,disableInteraction:f}}})}for(h=[],o=0;o<u.length;o++)u[o]&&h.push(u[o]);return u=h,u.sort(function(n,t){return n.step-t.step}),u}function ss(n){if(a.call(this,document.querySelector(".introjs-helperLayer")),a.call(this,document.querySelector(".introjs-tooltipReferenceLayer")),a.call(this,document.querySelector(".introjs-disableInteraction")),n&&(this._introItems=os.call(this,this._targetElement)),this._currentStep!==undefined&&this._currentStep!==null){var t=document.querySelector(".introjs-arrow"),i=document.querySelector(".introjs-tooltip");tr.call(this,this._introItems[this._currentStep].element,i,t)}return ns.call(this),this}function hs(){ss.call(this)}function ei(n,t){if(n&&n.parentElement){var i=n.parentElement;t?(w(n,{opacity:"0"}),window.setTimeout(function(){i.removeChild(n)},500)):i.removeChild(n)}}function ut(n,t){var u=!0,i,f,e,o,s;(this._introBeforeExitCallback!==undefined&&(u=this._introBeforeExitCallback.call(this)),t||u!==!1)&&(i=n.querySelectorAll(".introjs-overlay"),i&&i.length&&r(i,function(n){return ei(n)}),f=n.querySelector(".introjs-helperLayer"),ei(f,!0),e=n.querySelector(".introjs-tooltipReferenceLayer"),ei(e),o=n.querySelector(".introjs-disableInteraction"),ei(o),s=document.querySelector(".introjsFloatingElement"),ei(s),lo(),ft.off(window,"keydown",yo,this,!0),ft.off(window,"resize",hs,this,!0),this._introExitCallback!==undefined&&this._introExitCallback.call(this),this._currentStep=undefined)}function oy(t){var r=this,i=n("div",{className:"introjs-overlay"});return w(i,{top:0,bottom:0,left:0,right:0,position:"fixed"}),t.appendChild(i),this._options.exitOnOverlayClick===!0&&(w(i,{cursor:"pointer"}),i.onclick=function(){ut.call(r,t)}),!0}function sy(n){var t=os.call(this,n);if(t.length===0)return!1;if(this._introItems=t,oy.call(this,n)){if(it.call(this),this._options.keyboardNavigation)ft.on(window,"keydown",yo,this,!0);ft.on(window,"resize",hs,this,!0)}return!1}function oi(n){this._targetElement=n;this._introItems=[];this._options={nextLabel:"Next",prevLabel:"Back",skipLabel:"×",doneLabel:"Done",hidePrev:!1,hideNext:!1,nextToDone:!0,tooltipPosition:"bottom",tooltipClass:"",group:"",highlightClass:"",exitOnEsc:!0,exitOnOverlayClick:!0,showStepNumbers:!1,keyboardNavigation:!0,showButtons:!0,showBullets:!0,showProgress:!1,scrollToElement:!0,scrollTo:"element",scrollPadding:30,overlayOpacity:.5,autoPosition:!0,positionPrecedence:["bottom","top","right","left"],disableInteraction:!1,helperElementPadding:10,hintPosition:"top-middle",hintButtonLabel:"Got it",hintAnimation:!0,buttonClass:"introjs-button",progressBarAdditionalClass:!1}}var ur=function(){var n={};return function(t){var i=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"introjs-stamp";return n[i]=n[i]||0,t[i]===undefined&&(t[i]=n[i]++),t[i]}}(),ft=function(){function n(){var n="introjs_event";this._id=function(n,t,i,r){return t+ur(i)+(r?"_".concat(ur(r)):"")};this.on=function(t,i,r,u,f){var o=this._id.apply(this,arguments),e=function(n){return r.call(u||t,n||window.event)};"addEventListener"in t?t.addEventListener(i,e,f):"attachEvent"in t&&t.attachEvent("on".concat(i),e);t[n]=t[n]||{};t[n][o]=e};this.off=function(t,i,r,u,f){var o=this._id.apply(this,arguments),e=t[n]&&t[n][o];e&&("removeEventListener"in t?t.removeEventListener(i,e,f):"detachEvent"in t&&t.detachEvent("on".concat(i),e),t[n][o]=null)}}return new n}(),ku=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},si=function(n){return n&&n.Math==Math&&n},i=si(typeof globalThis=="object"&&globalThis)||si(typeof window=="object"&&window)||si(typeof self=="object"&&self)||si(typeof ku=="object"&&ku)||function(){return this}()||Function("return this")(),t=function(n){try{return!!n()}catch(t){return!0}},k=!t(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),gu={}.propertyIsEnumerable,nf=Object.getOwnPropertyDescriptor,as=nf&&!gu.call({1:2},1),vs=as?function(n){var t=nf(this,n);return!!t&&t.enumerable}:gu,tf={f:vs},fr=function(n,t){return{enumerable:!(n&1),configurable:!(n&2),writable:!(n&4),value:t}},ys={}.toString,v=function(n){return ys.call(n).slice(8,-1)},ps="".split,hi=t(function(){return!Object("z").propertyIsEnumerable(0)})?function(n){return v(n)=="String"?ps.call(n,""):Object(n)}:Object,y=function(n){if(n==undefined)throw TypeError("Can't call method on "+n);return n},wt=function(n){return hi(y(n))},f=function(n){return typeof n=="object"?n!==null:typeof n=="function"},er=function(n,t){if(!f(n))return n;var i,r;if(t&&typeof(i=n.toString)=="function"&&!f(r=i.call(n))||typeof(i=n.valueOf)=="function"&&!f(r=i.call(n))||!t&&typeof(i=n.toString)=="function"&&!f(r=i.call(n)))return r;throw TypeError("Can't convert object to primitive value");},d=function(n){return Object(y(n))},ws={}.hasOwnProperty,o=Object.hasOwn||function(n,t){return ws.call(d(n),t)},or=i.document,bs=f(or)&&f(or.createElement),rf=function(n){return bs?or.createElement(n):{}},uf=!k&&!t(function(){return Object.defineProperty(rf("div"),"a",{get:function(){return 7}}).a!=7}),ff=Object.getOwnPropertyDescriptor,ks=k?ff:function(n,t){if(n=wt(n),t=er(t,!0),uf)try{return ff(n,t)}catch(i){}if(o(n,t))return fr(!tf.f.call(n,t),n[t])},ef={f:ks},e=function(n){if(!f(n))throw TypeError(String(n)+" is not an object");return n},of=Object.defineProperty,ds=k?of:function(n,t,i){if(e(n),t=er(t,!0),e(i),uf)try{return of(n,t,i)}catch(r){}if("get"in i||"set"in i)throw TypeError("Accessors not supported");return"value"in i&&(n[t]=i.value),n},bt={f:ds},et=k?function(n,t,i){return bt.f(n,t,fr(1,i))}:function(n,t,i){return n[t]=i,n},sr=function(n,t){try{et(i,n,t)}catch(r){i[n]=t}return t},sf="__core-js_shared__",gs=i[sf]||sr(sf,{}),p=gs,nh=Function.toString,nt,ot,pe,nu,oo,so,cs,yt;typeof p.inspectSource!="function"&&(p.inspectSource=function(n){return nh.call(n)});var hf=p.inspectSource,cf=i.WeakMap,th=typeof cf=="function"&&/native code/.test(hf(cf)),hr=du(function(n){(n.exports=function(n,t){return p[n]||(p[n]=t!==undefined?t:{})})("versions",[]).push({version:"3.14.0",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),ih=0,rh=Math.random(),lf=function(n){return"Symbol("+String(n===undefined?"":n)+")_"+(++ih+rh).toString(36)},af=hr("keys"),vf=function(n){return af[n]||(af[n]=lf(n))},cr={},yf="Object already initialized",uh=i.WeakMap,ci,kt,li,fh=function(n){return li(n)?kt(n):ci(n,{})},eh=function(n){return function(t){var i;if(!f(t)||(i=kt(t)).type!==n)throw TypeError("Incompatible receiver, "+n+" required");return i}};if(th||p.state){var g=p.state||(p.state=new uh),oh=g.get,pf=g.has,sh=g.set;ci=function(n,t){if(pf.call(g,n))throw new TypeError(yf);return t.facade=n,sh.call(g,n,t),t};kt=function(n){return oh.call(g,n)||{}};li=function(n){return pf.call(g,n)}}else nt=vf("state"),cr[nt]=!0,ci=function(n,t){if(o(n,nt))throw new TypeError(yf);return t.facade=n,et(n,nt,t),t},kt=function(n){return o(n,nt)?n[nt]:{}},li=function(n){return o(n,nt)};var wf={set:ci,get:kt,has:li,enforce:fh,getterFor:eh},dt=du(function(n){var t=wf.get,r=wf.enforce,u=String(String).split("String");(n.exports=function(n,t,f,e){var c=e?!!e.unsafe:!1,s=e?!!e.enumerable:!1,l=e?!!e.noTargetGet:!1,h;if(typeof f=="function"&&(typeof t!="string"||o(f,"name")||et(f,"name",t),h=r(f),h.source||(h.source=u.join(typeof t=="string"?t:""))),n===i){s?n[t]=f:sr(t,f);return}c?!l&&n[t]&&(s=!0):delete n[t];s?n[t]=f:et(n,t,f)})(Function.prototype,"toString",function(){return typeof this=="function"&&t(this).source||hf(this)})}),lr=i,bf=function(n){return typeof n=="function"?n:undefined},ar=function(n,t){return arguments.length<2?bf(lr[n])||bf(i[n]):lr[n]&&lr[n][t]||i[n]&&i[n][t]},hh=Math.ceil,ch=Math.floor,gt=function(n){return isNaN(n=+n)?0:(n>0?ch:hh)(n)},lh=Math.min,l=function(n){return n>0?lh(gt(n),9007199254740991):0},ah=Math.max,vh=Math.min,ai=function(n,t){var i=gt(n);return i<0?ah(i+t,0):vh(i,t)},kf=function(n){return function(t,i,r){var f=wt(t),e=l(f.length),u=ai(r,e),o;if(n&&i!=i){while(e>u)if(o=f[u++],o!=o)return!0}else for(;e>u;u++)if((n||u in f)&&f[u]===i)return n||u||0;return!n&&-1}},df={includes:kf(!0),indexOf:kf(!1)},yh=df.indexOf,gf=function(n,t){var u=wt(n),f=0,r=[];for(var i in u)!o(cr,i)&&o(u,i)&&r.push(i);while(t.length>f)o(u,i=t[f++])&&(~yh(r,i)||r.push(i));return r},vi=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ph=vi.concat("length","prototype"),wh=Object.getOwnPropertyNames||function(n){return gf(n,ph)},bh={f:wh},kh=Object.getOwnPropertySymbols,ne={f:kh},dh=ar("Reflect","ownKeys")||function(n){var t=bh.f(e(n)),i=ne.f;return i?t.concat(i(n)):t},gh=function(n,t){for(var i,u=dh(t),f=bt.f,e=ef.f,r=0;r<u.length;r++)i=u[r],o(n,i)||f(n,i,e(t,i))},nc=/#|\.prototype\./,ni=function(n,i){var r=ic[tc(n)];return r==uc?!0:r==rc?!1:typeof i=="function"?t(i):!!i},tc=ni.normalize=function(n){return String(n).replace(nc,".").toLowerCase()},ic=ni.data={},rc=ni.NATIVE="N",uc=ni.POLYFILL="P",fc=ni,ec=ef.f,s=function(n,t){var o=n.target,h=n.global,c=n.stat,l,f,r,u,e,s;if(f=h?i:c?i[o]||sr(o,{}):(i[o]||{}).prototype,f)for(r in t){if(e=t[r],n.noTargetGet?(s=ec(f,r),u=s&&s.value):u=f[r],l=fc(h?r:o+(c?".":"#")+r,n.forced),!l&&u!==undefined){if(typeof e==typeof u)continue;gh(e,u)}(n.sham||u&&u.sham)&&et(e,"sham",!0);dt(f,r,e,n)}},te=function(){var t=e(this),n="";return t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.dotAll&&(n+="s"),t.unicode&&(n+="u"),t.sticky&&(n+="y"),n};var oc=t(function(){var n=ie("a","y");return n.lastIndex=2,n.exec("abcd")!=null}),sc=t(function(){var n=ie("^r","gy");return n.lastIndex=2,n.exec("str")!=null}),vr={UNSUPPORTED_Y:oc,BROKEN_CARET:sc},yi=RegExp.prototype.exec,hc=hr("native-string-replace",String.prototype.replace),re=yi,yr=function(){var n=/a/,t=/b*/g;return yi.call(n,"a"),yi.call(t,"a"),n.lastIndex!==0||t.lastIndex!==0}(),ue=vr.UNSUPPORTED_Y||vr.BROKEN_CARET,pr=/()??/.exec("")[1]!==undefined,cc=yr||pr||ue;cc&&(re=function(n){var i=this,c,f,t,u,s=ue&&i.sticky,r=te.call(i),e=i.source,h=0,o=n;return s&&(r=r.replace("y",""),r.indexOf("g")===-1&&(r+="g"),o=String(n).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&n[i.lastIndex-1]!=="\n")&&(e="(?: "+e+")",o=" "+o,h++),f=new RegExp("^(?:"+e+")",r)),pr&&(f=new RegExp("^"+e+"$(?!\\s)",r)),yr&&(c=i.lastIndex),t=yi.call(s?f:i,o),s?t?(t.input=t.input.slice(h),t[0]=t[0].slice(h),t.index=i.lastIndex,i.lastIndex+=t[0].length):i.lastIndex=0:yr&&t&&(i.lastIndex=i.global?t.index+t[0].length:c),pr&&t&&t.length>1&&hc.call(t[0],f,function(){for(u=1;u<arguments.length-2;u++)arguments[u]===undefined&&(t[u]=undefined)}),t});ot=re;s({target:"RegExp",proto:!0,forced:/./.exec!==ot},{exec:ot});var st=ar("navigator","userAgent")||"",fe=i.process,ee=fe&&fe.versions,oe=ee&&ee.v8,h,pi;oe?(h=oe.split("."),pi=h[0]<4?1:h[0]+h[1]):st&&(h=st.match(/Edge\/(\d+)/),(!h||h[1]>=74)&&(h=st.match(/Chrome\/(\d+)/),h&&(pi=h[1])));var ht=pi&&+pi,wr=!!Object.getOwnPropertySymbols&&!t(function(){var n=Symbol();return!String(n)||!(Object(n)instanceof Symbol)||!Symbol.sham&&ht&&ht<41}),lc=wr&&!Symbol.sham&&typeof Symbol.iterator=="symbol",ti=hr("wks"),ii=i.Symbol,ac=lc?ii:ii&&ii.withoutSetter||lf,u=function(n){return o(ti,n)&&(wr||typeof ti[n]=="string")||(ti[n]=wr&&o(ii,n)?ii[n]:ac("Symbol."+n)),ti[n]},vc=u("species"),br=RegExp.prototype,yc=!t(function(){var n=/./;return n.exec=function(){var n=[];return n.groups={a:"7"},n},"".replace(n,"$<a>")!=="7"}),se=function(){return"a".replace(/./,"$0")==="$0"}(),he=u("replace"),ce=function(){return/./[he]?/./[he]("a","$0")==="":!1}(),pc=!t(function(){var t=/(?:)/,i=t.exec,n;return t.exec=function(){return i.apply(this,arguments)},n="ab".split(t),n.length!==2||n[0]!=="a"||n[1]!=="b"}),kr=function(n,i,r,f){var e=u(n),o=!t(function(){var t={};return t[e]=function(){return 7},""[n](t)!=7}),c=o&&!t(function(){var i=!1,t=/a/;return n==="split"&&(t={},t.constructor={},t.constructor[vc]=function(){return t},t.flags="",t[e]=/./[e]),t.exec=function(){return i=!0,null},t[e](""),!i});if(!o||!c||n==="replace"&&!(yc&&se&&!ce)||n==="split"&&!pc){var l=/./[e],s=r(e,""[n],function(n,t,i,r,u){var f=t.exec;return f===ot||f===br.exec?o&&!u?{done:!0,value:l.call(t,i,r)}:{done:!0,value:n.call(i,t,r)}:{done:!1}},{REPLACE_KEEPS_$0:se,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:ce}),a=s[0],h=s[1];dt(String.prototype,n,a);dt(br,e,i==2?function(n,t){return h.call(n,this,t)}:function(n){return h.call(n,this)})}f&&et(br[e],"sham",!0)},le=function(n){return function(t,i){var u=String(y(t)),r=gt(i),o=u.length,f,e;return r<0||r>=o?n?"":undefined:(f=u.charCodeAt(r),f<55296||f>56319||r+1===o||(e=u.charCodeAt(r+1))<56320||e>57343?n?u.charAt(r):f:n?u.slice(r,r+2):(f-55296<<10)+(e-56320)+65536)}},wc={codeAt:le(!1),charAt:le(!0)},bc=wc.charAt,dr=function(n,t,i){return t+(i?bc(n,t).length:1)},ri=function(n,t){var r=n.exec,i;if(typeof r=="function"){if(i=r.call(n,t),typeof i!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return i}if(v(n)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return ot.call(n,t)};kr("match",1,function(n,t,i){return[function(t){var i=y(this),r=t==undefined?undefined:t[n];return r!==undefined?r.call(t,i):new RegExp(t)[n](String(i))},function(n){var h=i(t,n,this),r,u,c,o,f,a,s;if(h.done)return h.value;if(r=e(n),u=String(this),!r.global)return ri(r,u);for(c=r.unicode,r.lastIndex=0,o=[],f=0;(a=ri(r,u))!==null;)s=String(a[0]),o[f]=s,s===""&&(r.lastIndex=dr(u,l(r.lastIndex),c)),f++;return f===0?null:o}]});var ui=Array.isArray||function(n){return v(n)=="Array"},wi=function(n,t,i){var r=er(t);r in n?bt.f(n,r,fr(0,i)):n[r]=i},kc=u("species"),gr=function(n,t){var i;return ui(n)&&(i=n.constructor,typeof i=="function"&&(i===Array||ui(i.prototype))?i=undefined:f(i)&&(i=i[kc],i===null&&(i=undefined))),new(i===undefined?Array:i)(t===0?0:t)},dc=u("species"),bi=function(n){return ht>=51||!t(function(){var t=[],i=t.constructor={};return i[dc]=function(){return{foo:1}},t[n](Boolean).foo!==1})},ae=u("isConcatSpreadable"),ve=9007199254740991,ye="Maximum allowed index exceeded",gc=ht>=51||!t(function(){var n=[];return n[ae]=!1,n.concat()[0]!==n}),nl=bi("concat"),tl=function(n){if(!f(n))return!1;var t=n[ae];return t!==undefined?!!t:ui(n)},il=!gc||!nl;s({target:"Array",proto:!0,forced:il},{concat:function(){for(var e=d(this),u=gr(e,0),n=0,r,f,t,i=-1,o=arguments.length;i<o;i++)if(t=i===-1?e:arguments[i],tl(t)){if(f=l(t.length),n+f>ve)throw TypeError(ye);for(r=0;r<f;r++,n++)r in t&&wi(u,n,t[r])}else{if(n>=ve)throw TypeError(ye);wi(u,n++,t)}return u.length=n,u}});pe=u("toStringTag");nu={};nu[pe]="z";var tu=String(nu)==="[object z]",rl=u("toStringTag"),ul=v(function(){return arguments}())=="Arguments",fl=function(n,t){try{return n[t]}catch(i){}},el=tu?v:function(n){var t,i,r;return n===undefined?"Undefined":n===null?"Null":typeof(i=fl(t=Object(n),rl))=="string"?i:ul?v(t):(r=v(t))=="Object"&&typeof t.callee=="function"?"Arguments":r},ol=tu?{}.toString:function(){return"[object "+el(this)+"]"};tu||dt(Object.prototype,"toString",ol,{unsafe:!0});var iu="toString",we=RegExp.prototype,be=we[iu],sl=t(function(){return be.call({source:"a",flags:"b"})!="/a/b"}),hl=be.name!=iu;(sl||hl)&&dt(RegExp.prototype,iu,function(){var n=e(this),i=String(n.source),t=n.flags,r=String(t===undefined&&n instanceof RegExp&&!("flags"in we)?te.call(n):t);return"/"+i+"/"+r},{unsafe:!0});var cl=u("match"),ke=function(n){var t;return f(n)&&((t=n[cl])!==undefined?!!t:v(n)=="RegExp")},ru=function(n){if(typeof n!="function")throw TypeError(String(n)+" is not a function");return n},ll=u("species"),al=function(n,t){var i=e(n).constructor,r;return i===undefined||(r=e(i)[ll])==undefined?t:ru(r)},ct=vr.UNSUPPORTED_Y,vl=[].push,yl=Math.min,de=4294967295;kr("split",2,function(n,t,i){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(n,i){var u=String(y(this)),e=i===undefined?de:i>>>0;if(e===0)return[];if(n===undefined)return[u];if(!ke(n))return t.call(u,n,e);for(var r=[],l=(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")+(n.sticky?"y":""),o=0,s=new RegExp(n.source,l+"g"),f,h,c;f=ot.call(s,u);){if(h=s.lastIndex,h>o&&(r.push(u.slice(o,f.index)),f.length>1&&f.index<u.length&&vl.apply(r,f.slice(1)),c=f[0].length,o=h,r.length>=e))break;s.lastIndex===f.index&&s.lastIndex++}return o===u.length?(c||!s.test(""))&&r.push(""):r.push(u.slice(o)),r.length>e?r.slice(0,e):r}:"0".split(undefined,0).length?function(n,i){return n===undefined&&i===0?[]:t.call(this,n,i)}:t,[function(t,i){var u=y(this),f=t==undefined?undefined:t[n];return f!==undefined?f.call(t,u,i):r.call(String(u),t,i)},function(n,u){var w=i(r,n,this,u,r!==t),v,b,y;if(w.done)return w.value;var h=e(n),f=String(this),k=al(h,RegExp),d=h.unicode,g=(h.ignoreCase?"i":"")+(h.multiline?"m":"")+(h.unicode?"u":"")+(ct?"g":"y"),c=new k(ct?"^(?:"+h.source+")":h,g),p=u===undefined?de:u>>>0;if(p===0)return[];if(f.length===0)return ri(c,f)===null?[f]:[];for(var a=0,o=0,s=[];o<f.length;)if(c.lastIndex=ct?0:o,v=ri(c,ct?f.slice(o):f),v===null||(b=yl(l(c.lastIndex+(ct?o:0)),f.length))===a)o=dr(f,o,d);else{if(s.push(f.slice(a,o)),s.length===p)return s;for(y=1;y<=v.length-1;y++)if(s.push(v[y]),s.length===p)return s;o=a=b}return s.push(f.slice(a)),s}]},ct);var ki=Object.keys||function(n){return gf(n,vi)},lt=Object.assign,to=Object.defineProperty,io=!lt||t(function(){if(k&&lt({b:1},lt(to({},"a",{enumerable:!0,get:function(){to(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var n={},t={},i=Symbol(),r="abcdefghijklmnopqrst";return n[i]=7,r.split("").forEach(function(n){t[n]=n}),lt({},n)[i]!=7||ki(lt({},t)).join("")!=r})?function(n){for(var r=d(n),s=arguments.length,u=1,f=ne.f,h=tf.f;s>u;)for(var t=hi(arguments[u++]),e=f?ki(t).concat(f(t)):ki(t),c=e.length,o=0,i;c>o;)i=e[o++],(!k||h.call(t,i))&&(r[i]=t[i]);return r}:lt;s({target:"Object",stat:!0,forced:Object.assign!==io},{assign:io});var kl=Math.floor,dl="".replace,gl=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,na=/\$([$&'`]|\d{1,2})/g,ta=function(n,t,i,r,u,f){var s=i+n.length,e=r.length,o=na;return u!==undefined&&(u=d(u),o=gl),dl.call(f,o,function(f,o){var l,h,c;switch(o.charAt(0)){case"$":return"$";case"&":return n;case"`":return t.slice(0,i);case"'":return t.slice(s);case"<":l=u[o.slice(1,-1)];break;default:if(h=+o,h===0)return f;if(h>e)return(c=kl(h/10),c===0)?f:c<=e?r[c-1]===undefined?o.charAt(1):r[c-1]+o.charAt(1):f;l=r[h-1]}return l===undefined?"":l})},ia=Math.max,ra=Math.min,ua=function(n){return n===undefined?n:String(n)};kr("replace",2,function(n,t,i,r){var u=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,f=r.REPLACE_KEEPS_$0,o=u?"$":"$0";return[function(i,r){var u=y(this),f=i==undefined?undefined:i[n];return f!==undefined?f.call(i,u,r):t.call(String(u),i,r)},function(n,r){var k,d,ft,y,s,et,g,a,p,w,b,it,rt;if((!u&&f||typeof r=="string"&&r.indexOf(o)===-1)&&(k=i(t,n,this,r),k.done))return k.value;var c=e(n),h=String(this),ut=typeof r=="function";for(ut||(r=String(r)),d=c.global,d&&(ft=c.unicode,c.lastIndex=0),y=[];;){if(s=ri(c,h),s===null)break;if(y.push(s),!d)break;et=String(s[0]);et===""&&(c.lastIndex=dr(h,l(c.lastIndex),ft))}for(g="",a=0,p=0;p<y.length;p++){s=y[p];var nt=String(s[0]),v=ia(ra(gt(s.index),h.length),0),tt=[];for(w=1;w<s.length;w++)tt.push(ua(s[w]));b=s.groups;ut?(it=[nt].concat(tt,v,h),b!==undefined&&it.push(b),rt=String(r.apply(undefined,it))):rt=ta(nt,h,v,tt,b,r);v>=a&&(g+=h.slice(a,v)+rt,a=v+nt.length)}return g+h.slice(a)}]});var fa=k?Object.defineProperties:function(n,t){e(n);for(var i=ki(t),f=i.length,r=0,u;f>r;)bt.f(n,u=i[r++],t[u]);return n},ea=ar("document","documentElement"),ro=">",uo="<",su="prototype",hu="script",fo=vf("IE_PROTO"),cu=function(){},eo=function(n){return uo+hu+ro+n+uo+"/"+hu+ro},oa=function(n){n.write(eo(""));n.close();var t=n.parentWindow.Object;return n=null,t},sa=function(){var t=rf("iframe"),i="java"+hu+":",n;return t.style.display="none",ea.appendChild(t),t.src=String(i),n=t.contentWindow.document,n.open(),n.write(eo("document.F=Object")),n.close(),n.F},lu,di=function(){try{lu=document.domain&&new ActiveXObject("htmlfile")}catch(t){}di=lu?oa(lu):sa();for(var n=vi.length;n--;)delete di[su][vi[n]];return di()};cr[fo]=!0;var ha=Object.create||function(n,t){var i;return n!==null?(cu[su]=e(n),i=new cu,cu[su]=null,i[fo]=n):i=di(),t===undefined?i:fa(i,t)},au=u("unscopables"),vu=Array.prototype;vu[au]==undefined&&bt.f(vu,au,{configurable:!0,value:ha(null)});oo=function(n){vu[au][n]=!0};so=df.includes;s({target:"Array",proto:!0},{includes:function(n){return so(this,n,arguments.length>1?arguments[1]:undefined)}});oo("includes");var ca=bi("slice"),la=u("species"),aa=[].slice,va=Math.max;s({target:"Array",proto:!0,forced:!ca},{slice:function(n,t){var r=wt(this),s=l(r.length),u=ai(n,s),h=ai(t===undefined?s:t,s),i,e,o;if(ui(r)&&(i=r.constructor,typeof i=="function"&&(i===Array||ui(i.prototype))?i=undefined:f(i)&&(i=i[la],i===null&&(i=undefined)),i===Array||i===undefined))return aa.call(r,u,h);for(e=new(i===undefined?Array:i)(va(h-u,0)),o=0;u<h;u++,o++)u in r&&wi(e,o,r[u]);return e.length=o,e}});var ya=function(n){if(ke(n))throw TypeError("The method doesn't accept regular expressions");return n},pa=u("match"),wa=function(n){var t=/./;try{"/./"[n](t)}catch(i){try{return t[pa]=!1,"/./"[n](t)}catch(r){}}return!1};s({target:"String",proto:!0,forced:!wa("includes")},{includes:function(n){return!!~String(y(this)).indexOf(ya(n),arguments.length>1?arguments[1]:undefined)}});var ho=function(n,i){var r=[][n];return!!r&&t(function(){r.call(null,i||function(){throw 1;},1)})},ba=[].join,ka=hi!=Object,da=ho("join",",");s({target:"Array",proto:!0,forced:ka||!da},{join:function(n){return ba.call(wt(this),n===undefined?",":n)}});var ga=function(n,t,i){if(ru(n),t===undefined)return n;switch(i){case 0:return function(){return n.call(t)};case 1:return function(i){return n.call(t,i)};case 2:return function(i,r){return n.call(t,i,r)};case 3:return function(i,r,u){return n.call(t,i,r,u)}}return function(){return n.apply(t,arguments)}},co=[].push,b=function(n){var t=n==1,u=n==2,f=n==3,i=n==4,r=n==6,e=n==7,o=n==5||r;return function(s,h,c,a){for(var k=d(s),w=hi(k),tt=ga(h,c,3),g=l(w.length),v=0,nt=a||gr,p=t?nt(s,g):u||e?nt(s,0):undefined,y,b;g>v;v++)if((o||v in w)&&(y=w[v],b=tt(y,v,k),n))if(t)p[v]=b;else if(b)switch(n){case 3:return!0;case 5:return y;case 6:return v;case 2:co.call(p,y)}else switch(n){case 4:return!1;case 7:co.call(p,y)}return r?-1:f||i?i:p}},nv={forEach:b(0),map:b(1),filter:b(2),some:b(3),every:b(4),find:b(5),findIndex:b(6),filterOut:b(7)},tv=nv.filter,iv=bi("filter");s({target:"Array",proto:!0,forced:!iv},{filter:function(n){return tv(this,n,arguments.length>1?arguments[1]:undefined)}});var rv=bi("splice"),uv=Math.max,fv=Math.min,ev=9007199254740991,ov="Maximum allowed length exceeded";s({target:"Array",proto:!0,forced:!rv},{splice:function(n,t){var r=d(this),e=l(r.length),s=ai(n,e),a=arguments.length,f,u,c,i,o,h;if(a===0?f=u=0:a===1?(f=0,u=e-s):(f=a-2,u=fv(uv(gt(t),0),e-s)),e+f-u>ev)throw TypeError(ov);for(c=gr(r,u),i=0;i<u;i++)o=s+i,o in r&&wi(c,i,r[o]);if(c.length=u,f<u){for(i=s;i<e-u;i++)o=i+u,h=i+f,o in r?r[h]=r[o]:delete r[h];for(i=e;i>e-u+f;i--)delete r[i-1]}else if(f>u)for(i=e-u;i>s;i--)o=i+u-1,h=i+f-1,o in r?r[h]=r[o]:delete r[h];for(i=0;i<f;i++)r[i+s]=arguments[i+2];return r.length=e-u+f,c}});var kv=Math.floor,bu=function(n,t){var i=n.length,r=kv(i/2);return i<8?dv(n,t):gv(bu(n.slice(0,r),t),bu(n.slice(r),t),t)},dv=function(n,t){for(var f=n.length,r=1,u,i;r<f;){for(i=r,u=n[r];i&&t(n[i-1],u)>0;)n[i]=n[--i];i!==r++&&(n[i]=u)}return n},gv=function(n,t,i){for(var f=n.length,o=t.length,r=0,u=0,e=[];r<f||u<o;)r<f&&u<o?e.push(i(n[r],t[u])<=0?n[r++]:t[u++]):e.push(r<f?n[r++]:t[u++]);return e},ny=bu,ts=st.match(/firefox\/(\d+)/i),is=!!ts&&+ts[1],ty=/MSIE|Trident/.test(st),rs=st.match(/AppleWebKit\/(\d+)\./),us=!!rs&&+rs[1],rt=[],fs=rt.sort,iy=t(function(){rt.sort(undefined)}),ry=t(function(){rt.sort(null)}),uy=ho("sort"),es=!t(function(){if(ht)return ht<70;if(!is||!(is>3)){if(ty)return!0;if(us)return us<603;for(var r="",i,u,n,t=65;t<76;t++){i=String.fromCharCode(t);switch(t){case 66:case 69:case 70:case 72:u=3;break;case 68:case 71:u=4;break;default:u=2}for(n=0;n<47;n++)rt.push({k:i+n,v:u})}for(rt.sort(function(n,t){return t.v-n.v}),n=0;n<rt.length;n++)i=rt[n].k.charAt(0),r.charAt(r.length-1)!==i&&(r+=i);return r!=="DGBEFHACIJK"}}),fy=iy||!ry||!uy||!es,ey=function(n){return function(t,i){return i===undefined?-1:t===undefined?1:n!==undefined?+n(t,i)||0:String(t)>String(i)?1:-1}};return s({target:"Array",proto:!0,forced:fy},{sort:function(n){var i,r,u,f,t;if(n!==undefined&&ru(n),i=d(this),es)return n===undefined?fs.call(i):fs.call(i,n);for(r=[],u=l(i.length),t=0;t<u;t++)t in i&&r.push(i[t]);for(r=ny(r,ey(n)),f=r.length,t=0;t<f;)i[t]=r[t++];while(t<u)delete i[t++];return i}}),cs="4.0.0",yt=function yt(n){var t,i;if(pt(n)==="object")t=new oi(n);else if(typeof n=="string")if(i=document.querySelector(n),i)t=new oi(i);else throw new Error("There is no element with given selector.");else t=new oi(document.body);return yt.instances[ur(t,"introjs-instance")]=t,t},yt.version=cs,yt.instances={},yt.fn=oi.prototype={clone:function(){return new oi(this)},setOption:function(n,t){return this._options[n]=t,this},setOptions:function(n){return this._options=ls(this._options,n),this},start:function(){return sy.call(this,this._targetElement),this},goToStep:function(n){return lv.call(this,n),this},addStep:function(n){return this._options.steps||(this._options.steps=[]),this._options.steps.push(n),this},addSteps:function(n){if(n.length){for(var t=0;t<n.length;t++)this.addStep(n[t]);return this}},goToStepNumber:function(n){return av.call(this,n),this},nextStep:function(){return it.call(this),this},previousStep:function(){return rr.call(this),this},currentStep:function(){return vv.call(this)},exit:function(n){return ut.call(this,this._targetElement,n),this},refresh:function(n){return ss.call(this,n),this},onbeforechange:function(n){if(typeof n=="function")this._introBeforeChangeCallback=n;else throw new Error("Provided callback for onbeforechange was not a function");return this},onchange:function(n){if(typeof n=="function")this._introChangeCallback=n;else throw new Error("Provided callback for onchange was not a function.");return this},onafterchange:function(n){if(typeof n=="function")this._introAfterChangeCallback=n;else throw new Error("Provided callback for onafterchange was not a function");return this},oncomplete:function(n){if(typeof n=="function")this._introCompleteCallback=n;else throw new Error("Provided callback for oncomplete was not a function.");return this},onhintsadded:function(n){if(typeof n=="function")this._hintsAddedCallback=n;else throw new Error("Provided callback for onhintsadded was not a function.");return this},onhintclick:function(n){if(typeof n=="function")this._hintClickCallback=n;else throw new Error("Provided callback for onhintclick was not a function.");return this},onhintclose:function(n){if(typeof n=="function")this._hintCloseCallback=n;else throw new Error("Provided callback for onhintclose was not a function.");return this},onexit:function(n){if(typeof n=="function")this._introExitCallback=n;else throw new Error("Provided callback for onexit was not a function.");return this},onskip:function(n){if(typeof n=="function")this._introSkipCallback=n;else throw new Error("Provided callback for onskip was not a function.");return this},onbeforeexit:function(n){if(typeof n=="function")this._introBeforeExitCallback=n;else throw new Error("Provided callback for onbeforeexit was not a function.");return this},addHints:function(){return go.call(this,this._targetElement),this},hideHint:function(n){return pu.call(this,n),this},hideHints:function(){return yv.call(this),this},showHint:function(n){return po.call(this,n),this},showHints:function(){return pv.call(this),this},removeHints:function(){return wv.call(this),this},removeHint:function(n){return wo().call(this,n),this},showHintDialog:function(n){return ko.call(this,n),this}},yt}),function(n,t,i,r){function f(t,i){this.obj=n(t);this.o=n.extend({},n.fn[u].defaults,i);this.objId=this.obj.attr("id");this.pwCtrls=".jarviswidget-ctrls";this.widget=this.obj.find(this.o.widgets);this.toggleClass=this.o.toggleClass.split("|");this.editClass=this.o.editClass.split("|");this.fullscreenClass=this.o.fullscreenClass.split("|");this.customClass=this.o.customClass.split("|");this.init()}var u="jarvisWidgets";f.prototype={_settings:function(){var n=this;storage=!!function(){var t,n=+new Date;try{return localStorage.setItem(n,n),t=localStorage.getItem(n)==n,localStorage.removeItem(n),t}catch(i){}}()&&localStorage;storage&&n.o.localStorage&&(n.o.ajaxnav===!0?(widget_url=location.hash.replace(/^#/,""),keySettings="Plugin_settings_"+widget_url+"_"+n.objId,getKeySettings=localStorage.getItem(keySettings),keyPosition="Plugin_position_"+widget_url+"_"+n.objId,getKeyPosition=localStorage.getItem(keyPosition)):(keySettings="jarvisWidgets_settings_"+location.pathname+"_"+n.objId,getKeySettings=localStorage.getItem(keySettings),keyPosition="jarvisWidgets_position_"+location.pathname+"_"+n.objId,getKeyPosition=localStorage.getItem(keyPosition)));clickEvent="ontouchstart"in t||t.DocumentTouch&&i instanceof DocumentTouch?"touchstart":"click"},_runLoaderWidget:function(n){var t=this;t.o.indicator===!0&&n.parents(t.o.widgets).find(".jarviswidget-loader").stop(!0,!0).fadeIn(100).delay(t.o.indicatorTime).fadeOut(100)},_getPastTimestamp:function(n){var o=this,t=new Date(n),i,r,u,f,e;return i=t.getMonth()+1,r=t.getDate(),tsYear=t.getFullYear(),u=t.getHours(),f=t.getMinutes(),e=t.getUTCSeconds(),i<10&&(i="0"+i),r<10&&(r="0"+r),u<10&&(u="0"+u),f<10&&(f="0"+f),e<10&&(e="0"+e),o.o.timestampFormat.replace(/%d%/g,r).replace(/%m%/g,i).replace(/%y%/g,tsYear).replace(/%h%/g,u).replace(/%i%/g,f).replace(/%s%/g,e)},_loadAjaxFile:function(t,i,r){var u=this;t.find(".widget-body").load(i,function(i,r,f){if($this=n(this),r=="error"&&$this.html('<h4 class="alert alert-danger">'+u.o.labelError+"<b> "+f.status+" "+f.statusText+"<\/b><\/h4>"),r=="success"){var e=t.find(u.o.timestampPlaceholder);e.length&&e.html(u._getPastTimestamp(new Date));typeof u.o.afterLoad=="function"&&u.o.afterLoad.call(this,t)}});u._runLoaderWidget(r)},_saveSettingsWidget:function(){var t=this,r,i;t._settings();storage&&t.o.localStorage&&(r=[],t.obj.find(t.o.widgets).each(function(){var t={};t.id=n(this).attr("id");t.style=n(this).attr("data-widget-attstyle");t.title=n(this).children("header").children("h2").text();t.hidden=n(this).is(":hidden")?1:0;t.collapsed=n(this).hasClass("jarviswidget-collapsed")?1:0;r.push(t)}),i=JSON.stringify({widget:r}),getKeySettings!=i&&localStorage.setItem(keySettings,i));typeof t.o.onSave=="function"&&t.o.onSave.call(this,null,i)},_savePositionWidget:function(){var t=this,r,i;t._settings();storage&&t.o.localStorage&&(r=[],t.obj.find(t.o.grid+".sortable-grid").each(function(){var i=[],u;n(this).children(t.o.widgets).each(function(){var t={};t.id=n(this).attr("id");i.push(t)});u={section:i};r.push(u)}),i=JSON.stringify({grid:r}),getKeyPosition!=i&&localStorage.setItem(keyPosition,i,null));typeof t.o.onSave=="function"&&t.o.onSave.call(this,i)},init:function(){var t=this,e,s,h,u,i,f,o;if(t._settings(),n("#"+t.objId).length||alert("It looks like your using a class instead of an ID, dont do that!"),t.o.rtl===!0&&n("body").addClass("rtl"),n(t.o.grid).each(function(){n(this).find(t.o.widgets).length&&n(this).addClass("sortable-grid")}),storage&&t.o.localStorage&&getKeyPosition){e=JSON.parse(getKeyPosition);for(i in e.grid){s=t.obj.find(t.o.grid+".sortable-grid").eq(i);for(h in e.grid[i].section)s.append(n("#"+e.grid[i].section[h].id))}}if(storage&&t.o.localStorage&&getKeySettings){u=JSON.parse(getKeySettings);for(i in u.widget)f=n("#"+u.widget[i].id),u.widget[i].style&&f.removeClassPrefix("jarviswidget-color-").addClass(u.widget[i].style).attr("data-widget-attstyle",""+u.widget[i].style+""),u.widget[i].hidden==1?f.hide(1):f.show(1).removeAttr("data-widget-hidden"),u.widget[i].collapsed==1&&f.addClass("jarviswidget-collapsed").children("div").hide(1),f.children("header").children("h2").text()!=u.widget[i].title&&f.children("header").children("h2").text(u.widget[i].title)}t.widget.each(function(){var i=n(this),u=n(this).children("header"),e,o,s,h,c,a,f,l,v;u.parent().attr("role")||(i.data("widget-hidden")===!0&&i.hide(),i.data("widget-collapsed")===!0&&i.addClass("jarviswidget-collapsed").children("div").hide(),e=t.o.customButton===!0&&i.data("widget-custombutton")===r&&t.customClass[0].length!=0?'<a href="javascript:void(0);" class="button-icon jarviswidget-custom-btn"><i class="'+t.customClass[0]+'"><\/i><\/a>':"",o=t.o.deleteButton===!0&&i.data("widget-deletebutton")===r?'<a href="javascript:void(0);" class="button-icon jarviswidget-delete-btn" rel="tooltip" title="Delete" data-placement="bottom"><i class="'+t.o.deleteClass+'"><\/i><\/a>':"",s=t.o.editButton===!0&&i.data("widget-editbutton")===r?'<a href="javascript:void(0);" class="button-icon jarviswidget-edit-btn" rel="tooltip" title="Edit Title" data-placement="bottom"><i class="'+t.editClass[0]+'"><\/i><\/a>':"",h=t.o.fullscreenButton===!0&&i.data("widget-fullscreenbutton")===r?'<a href="javascript:void(0);" class="button-icon jarviswidget-fullscreen-btn" rel="tooltip" title="Fullscreen" data-placement="bottom"><i class="'+t.fullscreenClass[0]+'"><\/i><\/a>':"",t.o.colorButton===!0&&i.data("widget-colorbutton")===r?(c='<a data-toggle="dropdown" class="dropdown-toggle color-box selector" href="javascript:void(0);"><\/a><ul class="dropdown-menu arrow-box-up-right color-select pull-right"><li><span class="bg-color-green" data-widget-setstyle="jarviswidget-color-green" rel="tooltip" data-placement="left" data-original-title="Green Grass"><\/span><\/li><li><span class="bg-color-greenDark" data-widget-setstyle="jarviswidget-color-greenDark" rel="tooltip" data-placement="top" data-original-title="Dark Green"><\/span><\/li><li><span class="bg-color-greenLight" data-widget-setstyle="jarviswidget-color-greenLight" rel="tooltip" data-placement="top" data-original-title="Light Green"><\/span><\/li><li><span class="bg-color-purple" data-widget-setstyle="jarviswidget-color-purple" rel="tooltip" data-placement="top" data-original-title="Purple"><\/span><\/li><li><span class="bg-color-magenta" data-widget-setstyle="jarviswidget-color-magenta" rel="tooltip" data-placement="top" data-original-title="Magenta"><\/span><\/li><li><span class="bg-color-pink" data-widget-setstyle="jarviswidget-color-pink" rel="tooltip" data-placement="right" data-original-title="Pink"><\/span><\/li><li><span class="bg-color-pinkDark" data-widget-setstyle="jarviswidget-color-pinkDark" rel="tooltip" data-placement="left" data-original-title="Fade Pink"><\/span><\/li><li><span class="bg-color-blueLight" data-widget-setstyle="jarviswidget-color-blueLight" rel="tooltip" data-placement="top" data-original-title="Light Blue"><\/span><\/li><li><span class="bg-color-teal" data-widget-setstyle="jarviswidget-color-teal" rel="tooltip" data-placement="top" data-original-title="Teal"><\/span><\/li><li><span class="bg-color-blue" data-widget-setstyle="jarviswidget-color-blue" rel="tooltip" data-placement="top" data-original-title="Ocean Blue"><\/span><\/li><li><span class="bg-color-blueDark" data-widget-setstyle="jarviswidget-color-blueDark" rel="tooltip" data-placement="top" data-original-title="Night Sky"><\/span><\/li><li><span class="bg-color-darken" data-widget-setstyle="jarviswidget-color-darken" rel="tooltip" data-placement="right" data-original-title="Night"><\/span><\/li><li><span class="bg-color-yellow" data-widget-setstyle="jarviswidget-color-yellow" rel="tooltip" data-placement="left" data-original-title="Day Light"><\/span><\/li><li><span class="bg-color-orange" data-widget-setstyle="jarviswidget-color-orange" rel="tooltip" data-placement="bottom" data-original-title="Orange"><\/span><\/li><li><span class="bg-color-orangeDark" data-widget-setstyle="jarviswidget-color-orangeDark" rel="tooltip" data-placement="bottom" data-original-title="Dark Orange"><\/span><\/li><li><span class="bg-color-red" data-widget-setstyle="jarviswidget-color-red" rel="tooltip" data-placement="bottom" data-original-title="Red Rose"><\/span><\/li><li><span class="bg-color-redLight" data-widget-setstyle="jarviswidget-color-redLight" rel="tooltip" data-placement="bottom" data-original-title="Light Red"><\/span><\/li><li><span class="bg-color-white" data-widget-setstyle="jarviswidget-color-white" rel="tooltip" data-placement="right" data-original-title="Purity"><\/span><\/li><li><a href="javascript:void(0);" class="jarviswidget-remove-colors" data-widget-setstyle="" rel="tooltip" data-placement="bottom" data-original-title="Reset widget color to default">Remove<\/a><\/li><\/ul>',u.prepend('<div class="widget-toolbar">'+c+"<\/div>")):c="",t.o.toggleButton===!0&&i.data("widget-togglebutton")===r?(a=i.data("widget-collapsed")===!0||i.hasClass("jarviswidget-collapsed")?t.toggleClass[1]:t.toggleClass[0],f='<a href="#" class="button-icon jarviswidget-toggle-btn" rel="tooltip" title="Collapse" data-placement="bottom"><i class="'+a+'"><\/i><\/a>'):f="",l=t.o.refreshButton===!0&&i.data("widget-refreshbutton")!=!1&&i.data("widget-load")?'<a href="#" class="button-icon jarviswidget-refresh-btn" data-loading-text="&nbsp;&nbsp;Loading...&nbsp;" rel="tooltip" title="Refresh" data-placement="bottom"><i class="'+t.o.refreshButtonClass+'"><\/i><\/a>':"",v=t.o.buttonOrder.replace(/%refresh%/g,l).replace(/%delete%/g,o).replace(/%custom%/g,e).replace(/%fullscreen%/g,h).replace(/%edit%/g,s).replace(/%toggle%/g,f),(l!=""||o!=""||e!=""||h!=""||s!=""||f!="")&&u.prepend('<div class="jarviswidget-ctrls">'+v+"<\/div>"),t.o.sortable===!0&&i.data("widget-sortable")===r&&i.addClass("jarviswidget-sortable"),i.find(t.o.editPlaceholder).length&&i.find(t.o.editPlaceholder).find("input").val(n.trim(u.children("h2").text())),u.append('<span class="jarviswidget-loader"><i class="fa fa-refresh fa-spin"><\/i><\/span>'),i.attr("role","widget").children("div").attr("role","content").prev("header").attr("role","heading").children("div").attr("role","menu"))});t.o.buttonsHidden===!0&&n(t.o.pwCtrls).hide();n(".jarviswidget header [rel=tooltip]").tooltip();t.obj.find("[data-widget-load]").each(function(){var i=n(this),r=i.children(),u=i.data("widget-load"),f=i.data("widget-refresh")*1e3,e=i.children();i.find(".jarviswidget-ajax-placeholder").length||(i.children("widget-body").append('<div class="jarviswidget-ajax-placeholder">'+t.o.loadingLabel+"<\/div>"),i.data("widget-refresh")>0?(t._loadAjaxFile(i,u,r),setInterval(function(){t._loadAjaxFile(i,u,r)},f)):t._loadAjaxFile(i,u,r))});t.o.sortable===!0&&jQuery.ui&&(o=t.obj.find(".sortable-grid").not("[data-widget-excludegrid]"),o.sortable({items:o.find(".jarviswidget-sortable"),connectWith:o,placeholder:t.o.placeholderClass,cursor:"move",revert:!0,opacity:t.o.opacity,delay:200,cancel:".button-icon, #jarviswidget-fullscreen-mode > div",zIndex:1e4,handle:t.o.dragHandle,forcePlaceholderSize:!0,forceHelperSize:!0,update:function(n,i){t._runLoaderWidget(i.item.children());t._savePositionWidget();typeof t.o.onChange=="function"&&t.o.onChange.call(this,i.item)}}));t.o.buttonsHidden===!0&&t.widget.children("header").hover(function(){n(this).children(t.o.pwCtrls).stop(!0,!0).fadeTo(100,1)},function(){n(this).children(t.o.pwCtrls).stop(!0,!0).fadeTo(100,0)});t._clickEvents();n(t.o.deleteSettingsKey).on(clickEvent,this,function(n){if(storage&&t.o.localStorage){var i=confirm(t.o.settingsKeyLabel);i&&localStorage.removeItem(keySettings)}n.preventDefault()});n(t.o.deletePositionKey).on(clickEvent,this,function(n){if(storage&&t.o.localStorage){var i=confirm(t.o.positionKeyLabel);i&&localStorage.removeItem(keyPosition)}n.preventDefault()});storage&&t.o.localStorage&&((getKeySettings===null||getKeySettings.length<1)&&t._saveSettingsWidget(),(getKeyPosition===null||getKeyPosition.length<1)&&t._savePositionWidget())},_clickEvents:function(){function r(){if(n("#jarviswidget-fullscreen-mode").length){var r=n(t).height(),u=n("#jarviswidget-fullscreen-mode").find(i.o.widgets).children("header").height();n("#jarviswidget-fullscreen-mode").find(i.o.widgets).children("div").height(r-u-15)}}var i=this;i._settings();i.widget.on(clickEvent,".jarviswidget-toggle-btn",function(t){var r=n(this),u=r.parents(i.o.widgets);i._runLoaderWidget(r);u.hasClass("jarviswidget-collapsed")?r.children().removeClass(i.toggleClass[1]).addClass(i.toggleClass[0]).parents(i.o.widgets).removeClass("jarviswidget-collapsed").children("[role=content]").slideDown(i.o.toggleSpeed,function(){i._saveSettingsWidget()}):r.children().removeClass(i.toggleClass[0]).addClass(i.toggleClass[1]).parents(i.o.widgets).addClass("jarviswidget-collapsed").children("[role=content]").slideUp(i.o.toggleSpeed,function(){i._saveSettingsWidget()});typeof i.o.onToggle=="function"&&i.o.onToggle.call(this,u);t.preventDefault()});i.widget.on(clickEvent,".jarviswidget-fullscreen-btn",function(t){var u=n(this).parents(i.o.widgets),f=u.children("div");i._runLoaderWidget(n(this));n("#jarviswidget-fullscreen-mode").length?(n(".nooverflow").removeClass("nooverflow"),u.unwrap("<div>").children("div").removeAttr("style").end().find(".jarviswidget-fullscreen-btn").children().removeClass(i.fullscreenClass[1]).addClass(i.fullscreenClass[0]).parents(i.pwCtrls).children("a").show(),f.hasClass("jarviswidget-visible")&&f.hide().removeClass("jarviswidget-visible"),n(this).trigger("fullscreen",[!1])):(n("body").addClass("nooverflow"),u.wrap('<div id="jarviswidget-fullscreen-mode"/>').parent().find(".jarviswidget-fullscreen-btn").children().removeClass(i.fullscreenClass[0]).addClass(i.fullscreenClass[1]).parents(i.pwCtrls).children("a:not(.jarviswidget-fullscreen-btn)").hide(),f.is(":hidden")&&f.show().addClass("jarviswidget-visible"),n(this).trigger("fullscreen",[!0]));r();typeof i.o.onFullscreen=="function"&&i.o.onFullscreen.call(this,u);t.preventDefault()});n(t).resize(function(){r()});i.widget.on(clickEvent,".jarviswidget-edit-btn",function(t){var r=n(this).parents(i.o.widgets);i._runLoaderWidget(n(this));r.find(i.o.editPlaceholder).is(":visible")?n(this).children().removeClass(i.editClass[1]).addClass(i.editClass[0]).parents(i.o.widgets).find(i.o.editPlaceholder).slideUp(i.o.editSpeed,function(){i._saveSettingsWidget()}):n(this).children().removeClass(i.editClass[0]).addClass(i.editClass[1]).parents(i.o.widgets).find(i.o.editPlaceholder).slideDown(i.o.editSpeed);typeof i.o.onEdit=="function"&&i.o.onEdit.call(this,r);t.preventDefault()});n(i.o.editPlaceholder).find("input").keyup(function(){n(this).parents(i.o.widgets).children("header").children("h2").text(n(this).val())});i.widget.on(clickEvent,"[data-widget-setstyle]",function(t){var r=n(this).data("widget-setstyle"),u="";n(this).parents(i.o.editPlaceholder).find("[data-widget-setstyle]").each(function(){u+=n(this).data("widget-setstyle")+" "});n(this).parents(i.o.widgets).attr("data-widget-attstyle",""+r+"").removeClassPrefix("jarviswidget-color-").addClass(r);i._runLoaderWidget(n(this));i._saveSettingsWidget();t.preventDefault()});i.widget.on(clickEvent,".jarviswidget-custom-btn",function(t){var r=n(this).parents(i.o.widgets);i._runLoaderWidget(n(this));n(this).children("."+i.customClass[0]).length?(n(this).children().removeClass(i.customClass[0]).addClass(i.customClass[1]),typeof i.o.customStart=="function"&&i.o.customStart.call(this,r)):(n(this).children().removeClass(i.customClass[1]).addClass(i.customClass[0]),typeof i.o.customEnd=="function"&&i.o.customEnd.call(this,r));i._saveSettingsWidget();t.preventDefault()});i.widget.on(clickEvent,".jarviswidget-delete-btn",function(t){var r=n(this).parents(i.o.widgets),u=r.attr("id"),f=r.children("header").children("h2").text();n.SmartMessageBox({title:"<i class='fa fa-times' style='color:#ed1c24'><\/i> "+i.o.labelDelete+' "'+f+'"',content:"Warning: This action cannot be undone",buttons:"[No][Yes]"},function(t){t=="Yes"&&(i._runLoaderWidget(n(this)),n("#"+u).fadeOut(i.o.deleteSpeed,function(){n(this).remove();typeof i.o.onDelete=="function"&&i.o.onDelete.call(this,r)}))});t.preventDefault()});i.widget.on(clickEvent,".jarviswidget-refresh-btn",function(t){var r=n(this).parents(i.o.widgets),e=r.data("widget-load"),u=r.children(),f=n(this);f.button("loading");u.addClass("widget-body-ajax-loading");setTimeout(function(){f.button("reset");u.removeClass("widget-body-ajax-loading");i._loadAjaxFile(r,e,u)},1e3);t.preventDefault()})},destroy:function(){var n=this;n.widget.off("click",n._clickEvents());n.obj.removeData(u)}};n.fn[u]=function(t){return this.each(function(){var r=n(this),i=r.data(u),e=typeof t=="object"&&t;i||r.data(u,i=new f(this,e));typeof t=="string"&&i[t]()})};n.fn[u].defaults={grid:"section",widgets:".jarviswidget",localStorage:!0,deleteSettingsKey:"",settingsKeyLabel:"Reset settings?",deletePositionKey:"",positionKeyLabel:"Reset position?",sortable:!0,buttonsHidden:!1,toggleButton:!0,toggleClass:"min-10 | plus-10",toggleSpeed:200,onToggle:function(){},deleteButton:!0,deleteClass:"trashcan-10",deleteSpeed:200,onDelete:function(){},editButton:!0,editPlaceholder:".jarviswidget-editbox",editClass:"pencil-10 | delete-10",editSpeed:200,onEdit:function(){},colorButton:!0,fullscreenButton:!0,fullscreenClass:"fullscreen-10 | normalscreen-10",fullscreenDiff:3,onFullscreen:function(){},customButton:!0,customClass:"",customStart:function(){},customEnd:function(){},buttonOrder:"%refresh% %delete% %custom% %edit% %fullscreen% %toggle%",opacity:1,dragHandle:"> header",placeholderClass:"jarviswidget-placeholder",indicator:!0,indicatorTime:600,ajax:!0,loadingLabel:"loading...",timestampPlaceholder:".jarviswidget-timestamp",timestampFormat:"Last update: %m%/%d%/%y% %h%:%i%:%s%",refreshButton:!0,refreshButtonClass:"refresh-10",labelError:"Sorry but there was a error:",labelUpdated:"Last Update:",labelRefresh:"Refresh",labelDelete:"Delete widget:",afterLoad:function(){},rtl:!1,onChange:function(){},onSave:function(){},ajaxnav:!0};n.fn.removeClassPrefix=function(t){return this.each(function(i,r){var u=r.className.split(" ").map(function(n){return n.indexOf(t)===0?"":n});r.className=n.trim(u.join(" "))}),this}}(jQuery,window,document),function(n){typeof define=="function"&&define.amd?define(["jquery"],n):n(jQuery)}(function(n){"use strict";var o={},d,t,r,f,s,u,c,g,nt,l,at,tt,it,rt,e,ut,ft,h,a,et,ot,st,v,y,p,ht,ct,lt,w,b,k,i,vt=0;d=function(){return{common:{type:"line",lineColor:"#00f",fillColor:"#cdf",defaultPixelsPerValue:3,width:"auto",height:"auto",composite:!1,tagValuesAttribute:"values",tagOptionsPrefix:"spark",enableTagOptions:!1,enableHighlight:!0,highlightLighten:1.4,tooltipSkipNull:!0,tooltipPrefix:"",tooltipSuffix:"",disableHiddenCheck:!1,numberFormatter:!1,numberDigitGroupCount:3,numberDigitGroupSep:",",numberDecimalMark:".",disableTooltips:!1,disableInteraction:!1},line:{spotColor:"#f80",highlightSpotColor:"#5f5",highlightLineColor:"#f22",spotRadius:1.5,minSpotColor:"#f80",maxSpotColor:"#f80",lineWidth:1,normalRangeMin:undefined,normalRangeMax:undefined,normalRangeColor:"#ccc",drawNormalOnTop:!1,chartRangeMin:undefined,chartRangeMax:undefined,chartRangeMinX:undefined,chartRangeMaxX:undefined,tooltipFormat:new r('<span style="color: {{color}}">&#9679;<\/span> {{prefix}}{{y}}{{suffix}}')},bar:{barColor:"#3366cc",negBarColor:"#f44",stackedBarColor:["#3366cc","#dc3912","#ff9900","#109618","#66aa00","#dd4477","#0099c6","#990099"],zeroColor:undefined,nullColor:undefined,zeroAxis:!0,barWidth:4,barSpacing:1,chartRangeMax:undefined,chartRangeMin:undefined,chartRangeClip:!1,colorMap:undefined,tooltipFormat:new r('<span style="color: {{color}}">&#9679;<\/span> {{prefix}}{{value}}{{suffix}}')},tristate:{barWidth:4,barSpacing:1,posBarColor:"#6f6",negBarColor:"#f44",zeroBarColor:"#999",colorMap:{},tooltipFormat:new r('<span style="color: {{color}}">&#9679;<\/span> {{value:map}}'),tooltipValueLookups:{map:{"-1":"Loss",0:"Draw",1:"Win"}}},discrete:{lineHeight:"auto",thresholdColor:undefined,thresholdValue:0,chartRangeMax:undefined,chartRangeMin:undefined,chartRangeClip:!1,tooltipFormat:new r("{{prefix}}{{value}}{{suffix}}")},bullet:{targetColor:"#f33",targetWidth:3,performanceColor:"#33f",rangeColors:["#d3dafe","#a8b6ff","#7f94ff"],base:undefined,tooltipFormat:new r("{{fieldkey:fields}} - {{value}}"),tooltipValueLookups:{fields:{r:"Range",p:"Performance",t:"Target"}}},pie:{offset:0,sliceColors:["#3366cc","#dc3912","#ff9900","#109618","#66aa00","#dd4477","#0099c6","#990099"],borderWidth:0,borderColor:"#000",tooltipFormat:new r('<span style="color: {{color}}">&#9679;<\/span> {{value}} ({{percent.1}}%)')},box:{raw:!1,boxLineColor:"#000",boxFillColor:"#cdf",whiskerColor:"#000",outlierLineColor:"#333",outlierFillColor:"#fff",medianColor:"#f00",showOutliers:!0,outlierIQR:1.5,spotRadius:1.5,target:undefined,targetColor:"#4a2",chartRangeMax:undefined,chartRangeMin:undefined,tooltipFormat:new r("{{field:fields}}: {{value}}"),tooltipFormatFieldlistKey:"field",tooltipValueLookups:{fields:{lq:"Lower Quartile",med:"Median",uq:"Upper Quartile",lo:"Left Outlier",ro:"Right Outlier",lw:"Left Whisker",rw:"Right Whisker"}}}}};ht='.jqstooltip { position: absolute;left: 0px;top: 0px;visibility: hidden;background: rgb(0, 0, 0) transparent;background-color: rgba(0,0,0,0.6);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000);-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000)";color: white;font: 10px arial, san serif;text-align: left;white-space: nowrap;padding: 5px;border: 1px solid white;z-index: 10000;}.jqsfield { color: white;font: 10px arial, san serif;text-align: left;}';t=function(){var t,i;return t=function(){this.init.apply(this,arguments)},arguments.length>1?(arguments[0]?(t.prototype=n.extend(new arguments[0],arguments[arguments.length-1]),t._super=arguments[0].prototype):t.prototype=arguments[arguments.length-1],arguments.length>2&&(i=Array.prototype.slice.call(arguments,1,-1),i.unshift(t.prototype),n.extend.apply(n,i))):t.prototype=arguments[0],t.prototype.cls=t,t};n.SPFormatClass=r=t({fre:/\{\{([\w.]+?)(:(.+?))?\}\}/g,precre:/(\w+)\.(\d+)/,init:function(n,t){this.format=n;this.fclass=t},render:function(n,t,i){var s=this,h=n,f,e,u,r,o;return this.format.replace(this.fre,function(){var n;return e=arguments[1],u=arguments[3],f=s.precre.exec(e),f?(o=f[2],e=f[1]):o=!1,r=h[e],r===undefined?"":u&&t&&t[u]?(n=t[u],n.get?t[u].get(r)||r:t[u][r]||r):(nt(r)&&(r=i.get("numberFormatter")?i.get("numberFormatter")(r):rt(r,o,i.get("numberDigitGroupCount"),i.get("numberDigitGroupSep"),i.get("numberDecimalMark"))),r)})}});n.spformat=function(n,t){return new r(n,t)};f=function(n,t,i){return n<t?t:n>i?i:n};s=function(n,t){var i;return t===2?(i=Math.floor(n.length/2),n.length%2?n[i]:(n[i-1]+n[i])/2):n.length%2?(i=(n.length*t+t)/4,i%1?(n[Math.floor(i)]+n[Math.floor(i)-1])/2:n[i-1]):(i=(n.length*t+2)/4,i%1?(n[Math.floor(i)]+n[Math.floor(i)-1])/2:n[i-1])};u=function(n){var t;switch(n){case"undefined":n=undefined;break;case"null":n=null;break;case"true":n=!0;break;case"false":n=!1;break;default:t=parseFloat(n);n==t&&(n=t)}return n};c=function(n){for(var i=[],t=n.length;t--;)i[t]=u(n[t]);return i};g=function(n,t){for(var u=[],i=0,r=n.length;i<r;i++)n[i]!==t&&u.push(n[i]);return u};nt=function(n){return!isNaN(parseFloat(n))&&isFinite(n)};rt=function(t,i,r,u,f){var e,o;for(t=(i===!1?parseFloat(t).toString():t.toFixed(i)).split(""),e=(e=n.inArray(".",t))<0?t.length:e,e<t.length&&(t[e]=f),o=e-r;o>0;o-=r)t.splice(o,0,u);return t.join("")};l=function(n,t,i){for(var r=t.length;r--;)if((!i||t[r]!==null)&&t[r]!==n)return!1;return!0};at=function(n){for(var i=0,t=n.length;t--;)i+=typeof n[t]=="number"?n[t]:0;return i};it=function(t){return n.isArray(t)?t:[t]};tt=function(n){var t;document.createStyleSheet?document.createStyleSheet().cssText=n:(t=document.createElement("style"),t.type="text/css",document.getElementsByTagName("head")[0].appendChild(t),t[typeof document.body.style.WebkitAppearance=="string"?"innerText":"innerHTML"]=n)};n.fn.simpledraw=function(t,i,r,u){var f,e;if(r&&(f=this.data("_jqs_vcanvas")))return f;if(t===undefined&&(t=n(this).innerWidth()),i===undefined&&(i=n(this).innerHeight()),n.fn.sparkline.hasCanvas)f=new b(t,i,this,u);else{if(!n.fn.sparkline.hasVML)return!1;f=new k(t,i,this)}return e=n(this).data("_jqs_mhandler"),e&&e.registerCanvas(f),f};n.fn.cleardraw=function(){var n=this.data("_jqs_vcanvas");n&&n.reset()};n.RangeMapClass=e=t({init:function(n){var i,t,r=[];for(i in n)n.hasOwnProperty(i)&&typeof i=="string"&&i.indexOf(":")>-1&&(t=i.split(":"),t[0]=t[0].length===0?-Infinity:parseFloat(t[0]),t[1]=t[1].length===0?Infinity:parseFloat(t[1]),t[2]=n[i],r.push(t));this.map=n;this.rangelist=r||!1},get:function(n){var i=this.rangelist,r,t,u;if((u=this.map[n])!==undefined)return u;if(i)for(r=i.length;r--;)if(t=i[r],t[0]<=n&&t[1]>=n)return t[2];return undefined}});n.range_map=function(n){return new e(n)};ut=t({init:function(t,i){var r=n(t);this.$el=r;this.options=i;this.currentPageX=0;this.currentPageY=0;this.el=t;this.splist=[];this.tooltip=null;this.over=!1;this.displayTooltips=!i.get("disableTooltips");this.highlightEnabled=!i.get("disableHighlight")},registerSparkline:function(n){this.splist.push(n);this.over&&this.updateDisplay()},registerCanvas:function(t){var i=n(t.canvas);this.canvas=t;this.$canvas=i;i.mouseenter(n.proxy(this.mouseenter,this));i.mouseleave(n.proxy(this.mouseleave,this));i.click(n.proxy(this.mouseclick,this))},reset:function(n){this.splist=[];this.tooltip&&n&&(this.tooltip.remove(),this.tooltip=undefined)},mouseclick:function(t){var i=n.Event("sparklineClick");i.originalEvent=t;i.sparklines=this.splist;this.$el.trigger(i)},mouseenter:function(t){n(document.body).unbind("mousemove.jqs");n(document.body).bind("mousemove.jqs",n.proxy(this.mousemove,this));this.over=!0;this.currentPageX=t.pageX;this.currentPageY=t.pageY;this.currentEl=t.target;!this.tooltip&&this.displayTooltips&&(this.tooltip=new ft(this.options),this.tooltip.updatePosition(t.pageX,t.pageY));this.updateDisplay()},mouseleave:function(){n(document.body).unbind("mousemove.jqs");var i=this.splist,f=i.length,r=!1,u,t;for(this.over=!1,this.currentEl=null,this.tooltip&&(this.tooltip.remove(),this.tooltip=null),t=0;t<f;t++)u=i[t],u.clearRegionHighlight()&&(r=!0);r&&this.canvas.render()},mousemove:function(n){this.currentPageX=n.pageX;this.currentPageY=n.pageY;this.currentEl=n.target;this.tooltip&&this.tooltip.updatePosition(n.pageX,n.pageY);this.updateDisplay()},updateDisplay:function(){var r=this.splist,o=r.length,s=!1,h=this.$canvas.offset(),c=this.currentPageX-h.left,l=this.currentPageY-h.top,u,i,t,f,e;if(this.over){for(t=0;t<o;t++)i=r[t],f=i.setRegionHighlight(this.currentEl,c,l),f&&(s=!0);if(s){if(e=n.Event("sparklineRegionChange"),e.sparklines=this.splist,this.$el.trigger(e),this.tooltip){for(u="",t=0;t<o;t++)i=r[t],u+=i.getCurrentRegionTooltip();this.tooltip.setContent(u)}this.disableHighlight||this.canvas.render()}f===null&&this.mouseleave()}}});ft=t({sizeStyle:"position: static !important;display: block !important;visibility: hidden !important;float: left !important;",init:function(t){var r=t.get("tooltipClassname","jqstooltip"),u=this.sizeStyle,i;this.container=t.get("tooltipContainer")||document.body;this.tooltipOffsetX=t.get("tooltipOffsetX",10);this.tooltipOffsetY=t.get("tooltipOffsetY",12);n("#jqssizetip").remove();n("#jqstooltip").remove();this.sizetip=n("<div/>",{id:"jqssizetip",style:u,"class":r});this.tooltip=n("<div/>",{id:"jqstooltip","class":r}).appendTo(this.container);i=this.tooltip.offset();this.offsetLeft=i.left;this.offsetTop=i.top;this.hidden=!0;n(window).unbind("resize.jqs scroll.jqs");n(window).bind("resize.jqs scroll.jqs",n.proxy(this.updateWindowDims,this));this.updateWindowDims()},updateWindowDims:function(){this.scrollTop=n(window).scrollTop();this.scrollLeft=n(window).scrollLeft();this.scrollRight=this.scrollLeft+n(window).width();this.updatePosition()},getSize:function(n){this.sizetip.html(n).appendTo(this.container);this.width=this.sizetip.width()+1;this.height=this.sizetip.height();this.sizetip.remove()},setContent:function(n){if(!n){this.tooltip.css("visibility","hidden");this.hidden=!0;return}this.getSize(n);this.tooltip.html(n).css({width:this.width,height:this.height,visibility:"visible"});this.hidden&&(this.hidden=!1,this.updatePosition())},updatePosition:function(n,t){if(n===undefined){if(this.mousex===undefined)return;n=this.mousex-this.offsetLeft;t=this.mousey-this.offsetTop}else this.mousex=n-=this.offsetLeft,this.mousey=t-=this.offsetTop;this.height&&this.width&&!this.hidden&&(t-=this.height+this.tooltipOffsetY,n+=this.tooltipOffsetX,t<this.scrollTop&&(t=this.scrollTop),n<this.scrollLeft?n=this.scrollLeft:n+this.width>this.scrollRight&&(n=this.scrollRight-this.width),this.tooltip.css({left:n,top:t}))},remove:function(){this.tooltip.remove();this.sizetip.remove();this.sizetip=this.tooltip=undefined;n(window).unbind("resize.jqs scroll.jqs")}});ct=function(){tt(ht)};n(ct);i=[];n.fn.sparkline=function(t,r){return this.each(function(){var u=new n.fn.sparkline.options(this,r),o=n(this),e,f;if(e=function(){var e,c,s,r,i,h,f;if(t==="html"||t===undefined?(f=this.getAttribute(u.get("tagValuesAttribute")),(f===undefined||f===null)&&(f=o.html()),e=f.replace(/(^\s*<!--)|(-->\s*$)|\s+/g,"").split(",")):e=t,c=u.get("width")==="auto"?e.length*u.get("defaultPixelsPerValue"):u.get("width"),u.get("height")==="auto"?u.get("composite")&&n.data(this,"_jqs_vcanvas")||(r=document.createElement("span"),r.innerHTML="a",o.html(r),s=n(r).innerHeight()||n(r).height(),n(r).remove(),r=null):s=u.get("height"),u.get("disableInteraction")?i=!1:(i=n.data(this,"_jqs_mhandler"),i?u.get("composite")||i.reset():(i=new ut(this,u),n.data(this,"_jqs_mhandler",i))),u.get("composite")&&!n.data(this,"_jqs_vcanvas")){n.data(this,"_jqs_errnotify")||(alert("Attempted to attach a composite sparkline to an element with no existing sparkline"),n.data(this,"_jqs_errnotify",!0));return}h=new n.fn.sparkline[u.get("type")](this,e,u,c,s);h.render();i&&i.registerSparkline(h)},n(this).html()&&!u.get("disableHiddenCheck")&&n(this).is(":hidden")||n.fn.jquery<"1.3.0"&&n(this).parents().is(":hidden")||!n(this).parents("body").length){if(!u.get("composite")&&n.data(this,"_jqs_pending"))for(f=i.length;f;f--)i[f-1][0]==this&&i.splice(f-1,1);i.push([this,e]);n.data(this,"_jqs_pending",!0)}else e.call(this)})};n.fn.sparkline.defaults=d();n.sparkline_display_visible=function(){for(var r,u=[],t=0,f=i.length;t<f;t++)r=i[t][0],n(r).is(":visible")&&!n(r).parents().is(":hidden")?(i[t][1].call(r),n.data(i[t][0],"_jqs_pending",!1),u.push(t)):!n(r).closest("html").length&&!n.data(r,"_jqs_pending")&&(n.data(i[t][0],"_jqs_pending",!1),u.push(t));for(t=u.length;t;t--)i.splice(u[t-1],1)};n.fn.sparkline.options=t({init:function(t,i){var e,r,u,f;this.userOptions=i=i||{};this.tag=t;this.tagValCache={};r=n.fn.sparkline.defaults;u=r.common;this.tagOptionsPrefix=i.enableTagOptions&&(i.tagOptionsPrefix||u.tagOptionsPrefix);f=this.getTagSetting("type");e=f===o?r[i.type||u.type]:r[f];this.mergedOptions=n.extend({},u,e,i)},getTagSetting:function(n){var r=this.tagOptionsPrefix,t,i,f,e;if(r===!1||r===undefined)return o;if(this.tagValCache.hasOwnProperty(n))t=this.tagValCache.key;else{if(t=this.tag.getAttribute(r+n),t===undefined||t===null)t=o;else if(t.substr(0,1)==="[")for(t=t.substr(1,t.length-2).split(","),i=t.length;i--;)t[i]=u(t[i].replace(/(^\s*)|(\s*$)/g,""));else if(t.substr(0,1)==="{")for(f=t.substr(1,t.length-2).split(","),t={},i=f.length;i--;)e=f[i].split(":",2),t[e[0].replace(/(^\s*)|(\s*$)/g,"")]=u(e[1].replace(/(^\s*)|(\s*$)/g,""));else t=u(t);this.tagValCache.key=t}return t},get:function(n,t){var i=this.getTagSetting(n),r;return i!==o?i:(r=this.mergedOptions[n])===undefined?t:r}});n.fn.sparkline._base=t({disabled:!1,init:function(t,i,r,u,f){this.el=t;this.$el=n(t);this.values=i;this.options=r;this.width=u;this.height=f;this.currentRegion=undefined},initTarget:function(){var n=!this.options.get("disableInteraction");(this.target=this.$el.simpledraw(this.width,this.height,this.options.get("composite"),n))?(this.canvasWidth=this.target.pixelWidth,this.canvasHeight=this.target.pixelHeight):this.disabled=!0},render:function(){return this.disabled?(this.el.innerHTML="",!1):!0},getRegion:function(){},setRegionHighlight:function(n,t,i){var u=this.currentRegion,f=!this.options.get("disableHighlight"),r;return t>this.canvasWidth||i>this.canvasHeight||t<0||i<0?null:(r=this.getRegion(n,t,i),u!==r?(u!==undefined&&f&&this.removeHighlight(),this.currentRegion=r,r!==undefined&&f&&this.renderHighlight(),!0):!1)},clearRegionHighlight:function(){return this.currentRegion!==undefined?(this.removeHighlight(),this.currentRegion=undefined,!0):!1},renderHighlight:function(){this.changeHighlight(!0)},removeHighlight:function(){this.changeHighlight(!1)},changeHighlight:function(){},getCurrentRegionTooltip:function(){var i=this.options,v="",s=[],t,e,y,p,w,u,h,c,l,b,a,o,k,f;if(this.currentRegion===undefined)return"";if(t=this.getCurrentRegionFields(),a=i.get("tooltipFormatter"),a)return a(this,i,t);if(i.get("tooltipChartTitle")&&(v+='<div class="jqs jqstitle">'+i.get("tooltipChartTitle")+"<\/div>\n"),e=this.options.get("tooltipFormat"),!e)return"";if(n.isArray(e)||(e=[e]),n.isArray(t)||(t=[t]),h=this.options.get("tooltipFormatFieldlist"),c=this.options.get("tooltipFormatFieldlistKey"),h&&c){for(l=[],u=t.length;u--;)b=t[u][c],(f=n.inArray(b,h))!=-1&&(l[f]=t[u]);t=l}for(y=e.length,k=t.length,u=0;u<y;u++)for(o=e[u],typeof o=="string"&&(o=new r(o)),p=o.fclass||"jqsfield",f=0;f<k;f++)t[f].isNull&&i.get("tooltipSkipNull")||(n.extend(t[f],{prefix:i.get("tooltipPrefix"),suffix:i.get("tooltipSuffix")}),w=o.render(t[f],i.get("tooltipValueLookups"),i),s.push('<div class="'+p+'">'+w+"<\/div>"));return s.length?v+s.join("\n"):""},getCurrentRegionFields:function(){},calcHighlightColor:function(n,t){var e=t.get("highlightColor"),o=t.get("highlightLighten"),r,s,u,i;if(e)return e;if(o&&(r=/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i.exec(n)||/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(n),r)){for(u=[],s=n.length===4?16:1,i=0;i<3;i++)u[i]=f(Math.round(parseInt(r[i+1],16)*s*o),0,255);return"rgb("+u.join(",")+")"}return n}});h={changeHighlight:function(t){var r=this.currentRegion,f=this.target,u=this.regionShapes[r],i;u&&(i=this.renderRegion(r,t),n.isArray(i)||n.isArray(u)?(f.replaceWithShapes(u,i),this.regionShapes[r]=n.map(i,function(n){return n.id})):(f.replaceWithShape(u,i),this.regionShapes[r]=i.id))},render:function(){var e=this.values,o=this.target,u=this.regionShapes,t,f,i,r;if(this.cls._super.render.call(this)){for(i=e.length;i--;)if(t=this.renderRegion(i),t)if(n.isArray(t)){for(f=[],r=t.length;r--;)t[r].append(),f.push(t[r].id);u[i]=f}else t.append(),u[i]=t.id;else u[i]=null;o.render()}}};n.fn.sparkline.line=a=t(n.fn.sparkline._base,{type:"line",init:function(n,t,i,r,u){a._super.init.call(this,n,t,i,r,u);this.vertices=[];this.regionMap=[];this.xvalues=[];this.yvalues=[];this.yminmax=[];this.hightlightSpotId=null;this.lastShapeId=null;this.initTarget()},getRegion:function(n,t){for(var r=this.regionMap,i=r.length;i--;)if(r[i]!==null&&t>=r[i][0]&&t<=r[i][1])return r[i][2];return undefined},getCurrentRegionFields:function(){var n=this.currentRegion;return{isNull:this.yvalues[n]===null,x:this.xvalues[n],y:this.yvalues[n],color:this.options.get("lineColor"),fillColor:this.options.get("fillColor"),offset:n}},renderHighlight:function(){var s=this.currentRegion,t=this.target,n=this.vertices[s],i=this.options,f=i.get("spotRadius"),e=i.get("highlightSpotColor"),o=i.get("highlightLineColor"),r,u;n&&(f&&e&&(r=t.drawCircle(n[0],n[1],f,undefined,e),this.highlightSpotId=r.id,t.insertAfterShape(this.lastShapeId,r)),o&&(u=t.drawLine(n[0],this.canvasTop,n[0],this.canvasTop+this.canvasHeight,o),this.highlightLineId=u.id,t.insertAfterShape(this.lastShapeId,u)))},removeHighlight:function(){var n=this.target;this.highlightSpotId&&(n.removeShapeId(this.highlightSpotId),this.highlightSpotId=null);this.highlightLineId&&(n.removeShapeId(this.highlightLineId),this.highlightLineId=null)},scanValues:function(){for(var t=this.values,h=t.length,i=this.xvalues,f=this.yvalues,r=this.yminmax,u,o,s,e,n=0;n<h;n++)u=t[n],o=typeof t[n]=="string",s=typeof t[n]=="object"&&t[n]instanceof Array,e=o&&t[n].split(":"),o&&e.length===2?(i.push(Number(e[0])),f.push(Number(e[1])),r.push(Number(e[1]))):s?(i.push(u[0]),f.push(u[1]),r.push(u[1])):(i.push(n),t[n]===null||t[n]==="null"?f.push(null):(f.push(Number(u)),r.push(Number(u))));this.options.get("xvalues")&&(i=this.options.get("xvalues"));this.maxy=this.maxyorg=Math.max.apply(Math,r);this.miny=this.minyorg=Math.min.apply(Math,r);this.maxx=Math.max.apply(Math,i);this.minx=Math.min.apply(Math,i);this.xvalues=i;this.yvalues=f;this.yminmax=r},processRangeOptions:function(){var n=this.options,t=n.get("normalRangeMin"),i=n.get("normalRangeMax");t!==undefined&&(t<this.miny&&(this.miny=t),i>this.maxy&&(this.maxy=i));n.get("chartRangeMin")!==undefined&&(n.get("chartRangeClip")||n.get("chartRangeMin")<this.miny)&&(this.miny=n.get("chartRangeMin"));n.get("chartRangeMax")!==undefined&&(n.get("chartRangeClip")||n.get("chartRangeMax")>this.maxy)&&(this.maxy=n.get("chartRangeMax"));n.get("chartRangeMinX")!==undefined&&(n.get("chartRangeClipX")||n.get("chartRangeMinX")<this.minx)&&(this.minx=n.get("chartRangeMinX"));n.get("chartRangeMaxX")!==undefined&&(n.get("chartRangeClipX")||n.get("chartRangeMaxX")>this.maxx)&&(this.maxx=n.get("chartRangeMaxX"))},drawNormalRange:function(n,t,i,r,u){var e=this.options.get("normalRangeMin"),f=this.options.get("normalRangeMax"),o=t+Math.round(i-i*((f-this.miny)/u)),s=Math.round(i*(f-e)/u);this.target.drawRect(n,o,r,s,undefined,this.options.get("normalRangeColor")).append()},render:function(){var t=this.options,l=this.target,s=this.canvasWidth,f=this.canvasHeight,ct=this.vertices,r=t.get("spotRadius"),vt=this.regionMap,p,v,w,h,c,ot,u,it,k,b,lt,g,at,st,rt,ut,ft,et,d,nt,tt,ht,y,o,i;if(a._super.render.call(this)&&(this.scanValues(),this.processRangeOptions(),y=this.xvalues,o=this.yvalues,this.yminmax.length&&!(this.yvalues.length<2))){for(h=c=0,p=this.maxx-this.minx==0?1:this.maxx-this.minx,v=this.maxy-this.miny==0?1:this.maxy-this.miny,w=this.yvalues.length-1,r&&(s<r*4||f<r*4)&&(r=0),r&&(tt=t.get("highlightSpotColor")&&!t.get("disableInteraction"),(tt||t.get("minSpotColor")||t.get("spotColor")&&o[w]===this.miny)&&(f-=Math.ceil(r)),(tt||t.get("maxSpotColor")||t.get("spotColor")&&o[w]===this.maxy)&&(f-=Math.ceil(r),h+=Math.ceil(r)),(tt||(t.get("minSpotColor")||t.get("maxSpotColor"))&&(o[0]===this.miny||o[0]===this.maxy))&&(c+=Math.ceil(r),s-=Math.ceil(r)),(tt||t.get("spotColor")||t.get("minSpotColor")||t.get("maxSpotColor")&&(o[w]===this.miny||o[w]===this.maxy))&&(s-=Math.ceil(r))),f--,t.get("normalRangeMin")!==undefined&&!t.get("drawNormalOnTop")&&this.drawNormalRange(c,h,f,s,v),u=[],it=[u],st=rt=null,ut=o.length,i=0;i<ut;i++)k=y[i],lt=y[i+1],b=o[i],g=c+Math.round((k-this.minx)*(s/p)),at=i<ut-1?c+Math.round((lt-this.minx)*(s/p)):s,rt=g+(at-g)/2,vt[i]=[st||0,rt,i],st=rt,b===null?i&&(o[i-1]!==null&&(u=[],it.push(u)),ct.push(null)):(b<this.miny&&(b=this.miny),b>this.maxy&&(b=this.maxy),u.length||u.push([g,h+f]),ot=[g,h+Math.round(f-f*((b-this.miny)/v))],u.push(ot),ct.push(ot));for(ft=[],et=[],d=it.length,i=0;i<d;i++)u=it[i],u.length&&(t.get("fillColor")&&(u.push([u[u.length-1][0],h+f]),et.push(u.slice(0)),u.pop()),u.length>2&&(u[0]=[u[0][0],u[1][1]]),ft.push(u));for(d=et.length,i=0;i<d;i++)l.drawShape(et[i],t.get("fillColor"),t.get("fillColor")).append();for(t.get("normalRangeMin")!==undefined&&t.get("drawNormalOnTop")&&this.drawNormalRange(c,h,f,s,v),d=ft.length,i=0;i<d;i++)l.drawShape(ft[i],t.get("lineColor"),undefined,t.get("lineWidth")).append();if(r&&t.get("valueSpots"))for(nt=t.get("valueSpots"),nt.get===undefined&&(nt=new e(nt)),i=0;i<ut;i++)ht=nt.get(o[i]),ht&&l.drawCircle(c+Math.round((y[i]-this.minx)*(s/p)),h+Math.round(f-f*((o[i]-this.miny)/v)),r,undefined,ht).append();r&&t.get("spotColor")&&o[w]!==null&&l.drawCircle(c+Math.round((y[y.length-1]-this.minx)*(s/p)),h+Math.round(f-f*((o[w]-this.miny)/v)),r,undefined,t.get("spotColor")).append();this.maxy!==this.minyorg&&(r&&t.get("minSpotColor")&&(k=y[n.inArray(this.minyorg,o)],l.drawCircle(c+Math.round((k-this.minx)*(s/p)),h+Math.round(f-f*((this.minyorg-this.miny)/v)),r,undefined,t.get("minSpotColor")).append()),r&&t.get("maxSpotColor")&&(k=y[n.inArray(this.maxyorg,o)],l.drawCircle(c+Math.round((k-this.minx)*(s/p)),h+Math.round(f-f*((this.maxyorg-this.miny)/v)),r,undefined,t.get("maxSpotColor")).append()));this.lastShapeId=l.getLastShapeId();this.canvasTop=h;l.render()}}});n.fn.sparkline.bar=et=t(n.fn.sparkline._base,h,{type:"bar",init:function(t,i,r,o,s){var st=parseInt(r.get("barWidth"),10),ht=parseInt(r.get("barSpacing"),10),bt=r.get("chartRangeMin"),kt=r.get("chartRangeMax"),ct=r.get("chartRangeClip"),d=Infinity,b=-Infinity,lt,at,vt,nt,p,l,tt,yt,it,rt,a,v,pt,wt,y,ut,k,dt,gt,h,w,ni,ft,ot;for(et._super.init.call(this,t,i,r,o,s),l=0,tt=i.length;l<tt;l++)h=i[l],lt=typeof h=="string"&&h.indexOf(":")>-1,(lt||n.isArray(h))&&(y=!0,lt&&(h=i[l]=c(h.split(":"))),h=g(h,null),at=Math.min.apply(Math,h),vt=Math.max.apply(Math,h),at<d&&(d=at),vt>b&&(b=vt));for(this.stacked=y,this.regionShapes={},this.barWidth=st,this.barSpacing=ht,this.totalBarWidth=st+ht,this.width=o=i.length*st+(i.length-1)*ht,this.initTarget(),ct&&(pt=bt===undefined?-Infinity:bt,wt=kt===undefined?Infinity:kt),p=[],nt=y?[]:p,ft=[],ot=[],l=0,tt=i.length;l<tt;l++)if(y)for(ut=i[l],i[l]=gt=[],ft[l]=0,nt[l]=ot[l]=0,k=0,dt=ut.length;k<dt;k++)h=gt[k]=ct?f(ut[k],pt,wt):ut[k],h!==null&&(h>0&&(ft[l]+=h),d<0&&b>0?h<0?ot[l]+=Math.abs(h):nt[l]+=h:nt[l]+=Math.abs(h-(h<0?b:d)),p.push(h));else h=ct?f(i[l],pt,wt):i[l],h=i[l]=u(h),h!==null&&p.push(h);this.max=v=Math.max.apply(Math,p);this.min=a=Math.min.apply(Math,p);this.stackMax=b=y?Math.max.apply(Math,ft):v;this.stackMin=d=y?Math.min.apply(Math,p):a;r.get("chartRangeMin")!==undefined&&(r.get("chartRangeClip")||r.get("chartRangeMin")<a)&&(a=r.get("chartRangeMin"));r.get("chartRangeMax")!==undefined&&(r.get("chartRangeClip")||r.get("chartRangeMax")>v)&&(v=r.get("chartRangeMax"));this.zeroAxis=it=r.get("zeroAxis",!0);rt=a<=0&&v>=0&&it?0:it==0?a:a>0?a:v;this.xaxisOffset=rt;yt=y?Math.max.apply(Math,nt)+Math.max.apply(Math,ot):v-a;this.canvasHeightEf=it&&a<0?this.canvasHeight-2:this.canvasHeight-1;a<rt?(ni=y&&v>=0?b:v,w=(ni-rt)/yt*this.canvasHeight,w!==Math.ceil(w)&&(this.canvasHeightEf-=2,w=Math.ceil(w))):w=this.canvasHeight;this.yoffset=w;n.isArray(r.get("colorMap"))?(this.colorMapByIndex=r.get("colorMap"),this.colorMapByValue=null):(this.colorMapByIndex=null,this.colorMapByValue=r.get("colorMap"),this.colorMapByValue&&this.colorMapByValue.get===undefined&&(this.colorMapByValue=new e(this.colorMapByValue)));this.range=yt},getRegion:function(n,t){var i=Math.floor(t/this.totalBarWidth);return i<0||i>=this.values.length?undefined:i},getCurrentRegionFields:function(){for(var i=this.currentRegion,r=it(this.values[i]),u=[],n,t=r.length;t--;)n=r[t],u.push({isNull:n===null,value:n,color:this.calcColor(t,n,i),offset:i});return u},calcColor:function(t,i,r){var e=this.colorMapByIndex,o=this.colorMapByValue,f=this.options,u,s;return u=this.stacked?f.get("stackedBarColor"):i<0?f.get("negBarColor"):f.get("barColor"),i===0&&f.get("zeroColor")!==undefined&&(u=f.get("zeroColor")),o&&(s=o.get(i))?u=s:e&&e.length>r&&(u=e[r]),n.isArray(u)?u[t%u.length]:u},renderRegion:function(t,i){var r=this.values[t],o=this.options,s=this.xaxisOffset,v=[],p=this.range,tt=this.stacked,w=this.target,b=t*this.totalBarWidth,it=this.canvasHeightEf,f=this.yoffset,h,c,u,k,y,a,d,e,g,nt;if(r=n.isArray(r)?r:[r],d=r.length,e=r[0],k=l(null,r),nt=l(s,r,!0),k)return o.get("nullColor")?(u=i?o.get("nullColor"):this.calcHighlightColor(o.get("nullColor"),o),h=f>0?f-1:f,w.drawRect(b,h,this.barWidth-1,0,u,u)):undefined;for(y=f,a=0;a<d;a++){if(e=r[a],tt&&e===s){if(!nt||g)continue;g=!0}c=p>0?Math.floor(it*(Math.abs(e-s)/p))+1:1;e<s||e===s&&f===0?(h=y,y+=c):(h=f-c,f-=c);u=this.calcColor(a,e,t);i&&(u=this.calcHighlightColor(u,o));v.push(w.drawRect(b,h,this.barWidth-1,c-1,u,u))}return v.length===1?v[0]:v}});n.fn.sparkline.tristate=ot=t(n.fn.sparkline._base,h,{type:"tristate",init:function(t,i,r,u,f){var o=parseInt(r.get("barWidth"),10),s=parseInt(r.get("barSpacing"),10);ot._super.init.call(this,t,i,r,u,f);this.regionShapes={};this.barWidth=o;this.barSpacing=s;this.totalBarWidth=o+s;this.values=n.map(i,Number);this.width=u=i.length*o+(i.length-1)*s;n.isArray(r.get("colorMap"))?(this.colorMapByIndex=r.get("colorMap"),this.colorMapByValue=null):(this.colorMapByIndex=null,this.colorMapByValue=r.get("colorMap"),this.colorMapByValue&&this.colorMapByValue.get===undefined&&(this.colorMapByValue=new e(this.colorMapByValue)));this.initTarget()},getRegion:function(n,t){return Math.floor(t/this.totalBarWidth)},getCurrentRegionFields:function(){var n=this.currentRegion;return{isNull:this.values[n]===undefined,value:this.values[n],color:this.calcColor(this.values[n],n),offset:n}},calcColor:function(n,t){var u=this.values,i=this.options,r=this.colorMapByIndex,f=this.colorMapByValue,e,o;return e=f&&(o=f.get(n))?o:r&&r.length>t?r[t]:u[t]<0?i.get("negBarColor"):u[t]>0?i.get("posBarColor"):i.get("zeroBarColor"),e},renderRegion:function(n,t){var e=this.values,c=this.options,o=this.target,s,u,r,h,f,i;if(s=o.pixelHeight,r=Math.round(s/2),h=n*this.totalBarWidth,e[n]<0?(f=r,u=r-1):e[n]>0?(f=0,u=r-1):(f=r-1,u=2),i=this.calcColor(e[n],n),i!==null)return t&&(i=this.calcHighlightColor(i,c)),o.drawRect(h,f,this.barWidth-1,u-1,i,i)}});n.fn.sparkline.discrete=st=t(n.fn.sparkline._base,h,{type:"discrete",init:function(t,i,r,u,f){st._super.init.call(this,t,i,r,u,f);this.regionShapes={};this.values=i=n.map(i,Number);this.min=Math.min.apply(Math,i);this.max=Math.max.apply(Math,i);this.range=this.max-this.min;this.width=u=r.get("width")==="auto"?i.length*2:this.width;this.interval=Math.floor(u/i.length);this.itemWidth=u/i.length;r.get("chartRangeMin")!==undefined&&(r.get("chartRangeClip")||r.get("chartRangeMin")<this.min)&&(this.min=r.get("chartRangeMin"));r.get("chartRangeMax")!==undefined&&(r.get("chartRangeClip")||r.get("chartRangeMax")>this.max)&&(this.max=r.get("chartRangeMax"));this.initTarget();this.target&&(this.lineHeight=r.get("lineHeight")==="auto"?Math.round(this.canvasHeight*.3):r.get("lineHeight"))},getRegion:function(n,t){return Math.floor(t/this.itemWidth)},getCurrentRegionFields:function(){var n=this.currentRegion;return{isNull:this.values[n]===undefined,value:this.values[n],offset:n}},renderRegion:function(n,t){var l=this.values,i=this.options,s=this.min,a=this.max,v=this.range,y=this.interval,p=this.target,w=this.canvasHeight,h=this.lineHeight,c=w-h,u,e,r,o;return e=f(l[n],s,a),o=n*y,u=Math.round(c-c*((e-s)/v)),r=i.get("thresholdColor")&&e<i.get("thresholdValue")?i.get("thresholdColor"):i.get("lineColor"),t&&(r=this.calcHighlightColor(r,i)),p.drawLine(o,u,o,u+h,r)}});n.fn.sparkline.bullet=v=t(n.fn.sparkline._base,{type:"bullet",init:function(n,t,i,r,u){var e,o,f;v._super.init.call(this,n,t,i,r,u);this.values=t=c(t);f=t.slice();f[0]=f[0]===null?f[2]:f[0];f[1]=t[1]===null?f[2]:f[1];e=Math.min.apply(Math,t);o=Math.max.apply(Math,t);e=i.get("base")===undefined?e<0?e:0:i.get("base");this.min=e;this.max=o;this.range=o-e;this.shapes={};this.valueShapes={};this.regiondata={};this.width=r=i.get("width")==="auto"?"4.0em":r;this.target=this.$el.simpledraw(r,u,i.get("composite"));t.length||(this.disabled=!0);this.initTarget()},getRegion:function(n,t,i){var r=this.target.getShapeAt(n,t,i);return r!==undefined&&this.shapes[r]!==undefined?this.shapes[r]:undefined},getCurrentRegionFields:function(){var n=this.currentRegion;return{fieldkey:n.substr(0,1),value:this.values[n.substr(1)],region:n}},changeHighlight:function(n){var i=this.currentRegion,r=this.valueShapes[i],t;delete this.shapes[r];switch(i.substr(0,1)){case"r":t=this.renderRange(i.substr(1),n);break;case"p":t=this.renderPerformance(n);break;case"t":t=this.renderTarget(n)}this.valueShapes[i]=t.id;this.shapes[t.id]=i;this.target.replaceWithShape(r,t)},renderRange:function(n,t){var r=this.values[n],u=Math.round(this.canvasWidth*((r-this.min)/this.range)),i=this.options.get("rangeColors")[n-2];return t&&(i=this.calcHighlightColor(i,this.options)),this.target.drawRect(0,0,u-1,this.canvasHeight-1,i,i)},renderPerformance:function(n){var i=this.values[1],r=Math.round(this.canvasWidth*((i-this.min)/this.range)),t=this.options.get("performanceColor");return n&&(t=this.calcHighlightColor(t,this.options)),this.target.drawRect(0,Math.round(this.canvasHeight*.3),r-1,Math.round(this.canvasHeight*.4)-1,t,t)},renderTarget:function(n){var r=this.values[0],u=Math.round(this.canvasWidth*((r-this.min)/this.range)-this.options.get("targetWidth")/2),i=Math.round(this.canvasHeight*.1),f=this.canvasHeight-i*2,t=this.options.get("targetColor");return n&&(t=this.calcHighlightColor(t,this.options)),this.target.drawRect(u,i,this.options.get("targetWidth")-1,f-1,t,t)},render:function(){var i=this.values.length,r=this.target,t,n;if(v._super.render.call(this)){for(t=2;t<i;t++)n=this.renderRange(t).append(),this.shapes[n.id]="r"+t,this.valueShapes["r"+t]=n.id;this.values[1]!==null&&(n=this.renderPerformance().append(),this.shapes[n.id]="p1",this.valueShapes.p1=n.id);this.values[0]!==null&&(n=this.renderTarget().append(),this.shapes[n.id]="t0",this.valueShapes.t0=n.id);r.render()}}});n.fn.sparkline.pie=y=t(n.fn.sparkline._base,{type:"pie",init:function(t,i,r,u,f){var o=0,e;if(y._super.init.call(this,t,i,r,u,f),this.shapes={},this.valueShapes={},this.values=i=n.map(i,Number),r.get("width")==="auto"&&(this.width=this.height),i.length>0)for(e=i.length;e--;)o+=i[e];this.total=o;this.initTarget();this.radius=Math.floor(Math.min(this.canvasWidth,this.canvasHeight)/2)},getRegion:function(n,t,i){var r=this.target.getShapeAt(n,t,i);return r!==undefined&&this.shapes[r]!==undefined?this.shapes[r]:undefined},getCurrentRegionFields:function(){var n=this.currentRegion;return{isNull:this.values[n]===undefined,value:this.values[n],percent:this.values[n]/this.total*100,color:this.options.get("sliceColors")[n%this.options.get("sliceColors").length],offset:n}},changeHighlight:function(n){var t=this.currentRegion,i=this.renderSlice(t,n),r=this.valueShapes[t];delete this.shapes[r];this.target.replaceWithShape(r,i);this.valueShapes[t]=i.id;this.shapes[i.id]=t},renderSlice:function(n,t){for(var v=this.target,r=this.options,o=this.radius,y=r.get("borderWidth"),s=r.get("offset"),p=2*Math.PI,h=this.values,c=this.total,u=s?2*Math.PI*(s/360):0,l,f,e,a=h.length,i=0;i<a;i++){if(l=u,f=u,c>0&&(f=u+p*(h[i]/c)),n===i)return e=r.get("sliceColors")[i%r.get("sliceColors").length],t&&(e=this.calcHighlightColor(e,r)),v.drawPieSlice(o,o,o-y,l,f,undefined,e);u=f}},render:function(){var u=this.target,f=this.values,e=this.options,t=this.radius,i=e.get("borderWidth"),r,n;if(y._super.render.call(this)){for(i&&u.drawCircle(t,t,Math.floor(t-i/2),e.get("borderColor"),undefined,i).append(),n=f.length;n--;)f[n]&&(r=this.renderSlice(n).append(),this.valueShapes[n]=r.id,this.shapes[r.id]=n);u.render()}}});n.fn.sparkline.box=p=t(n.fn.sparkline._base,{type:"box",init:function(t,i,r,u,f){p._super.init.call(this,t,i,r,u,f);this.values=n.map(i,Number);this.width=r.get("width")==="auto"?"4.0em":u;this.initTarget();this.values.length||(this.disabled=1)},getRegion:function(){return 1},getCurrentRegionFields:function(){var n=[{field:"lq",value:this.quartiles[0]},{field:"med",value:this.quartiles[1]},{field:"uq",value:this.quartiles[2]}];return this.loutlier!==undefined&&n.push({field:"lo",value:this.loutlier}),this.routlier!==undefined&&n.push({field:"ro",value:this.routlier}),this.lwhisker!==undefined&&n.push({field:"lw",value:this.lwhisker}),this.rwhisker!==undefined&&n.push({field:"rw",value:this.rwhisker}),n},render:function(){var e=this.target,t=this.values,k=t.length,n=this.options,d=this.canvasWidth,i=this.canvasHeight,u=n.get("chartRangeMin")===undefined?Math.min.apply(Math,t):n.get("chartRangeMin"),nt=n.get("chartRangeMax")===undefined?Math.max.apply(Math,t):n.get("chartRangeMax"),f=0,o,y,g,c,v,l,h,w,a,b,r;if(p._super.render.call(this)){if(n.get("raw"))n.get("showOutliers")&&t.length>5?(y=t[0],o=t[1],c=t[2],v=t[3],l=t[4],h=t[5],w=t[6]):(o=t[0],c=t[1],v=t[2],l=t[3],h=t[4]);else if(t.sort(function(n,t){return n-t}),c=s(t,1),v=s(t,2),l=s(t,3),g=l-c,n.get("showOutliers")){for(o=h=undefined,a=0;a<k;a++)o===undefined&&t[a]>c-g*n.get("outlierIQR")&&(o=t[a]),t[a]<l+g*n.get("outlierIQR")&&(h=t[a]);y=t[0];w=t[k-1]}else o=t[0],h=t[k-1];this.quartiles=[c,v,l];this.lwhisker=o;this.rwhisker=h;this.loutlier=y;this.routlier=w;r=d/(nt-u+1);n.get("showOutliers")&&(f=Math.ceil(n.get("spotRadius")),d-=2*Math.ceil(n.get("spotRadius")),r=d/(nt-u+1),y<o&&e.drawCircle((y-u)*r+f,i/2,n.get("spotRadius"),n.get("outlierLineColor"),n.get("outlierFillColor")).append(),w>h&&e.drawCircle((w-u)*r+f,i/2,n.get("spotRadius"),n.get("outlierLineColor"),n.get("outlierFillColor")).append());e.drawRect(Math.round((c-u)*r+f),Math.round(i*.1),Math.round((l-c)*r),Math.round(i*.8),n.get("boxLineColor"),n.get("boxFillColor")).append();e.drawLine(Math.round((o-u)*r+f),Math.round(i/2),Math.round((c-u)*r+f),Math.round(i/2),n.get("lineColor")).append();e.drawLine(Math.round((o-u)*r+f),Math.round(i/4),Math.round((o-u)*r+f),Math.round(i-i/4),n.get("whiskerColor")).append();e.drawLine(Math.round((h-u)*r+f),Math.round(i/2),Math.round((l-u)*r+f),Math.round(i/2),n.get("lineColor")).append();e.drawLine(Math.round((h-u)*r+f),Math.round(i/4),Math.round((h-u)*r+f),Math.round(i-i/4),n.get("whiskerColor")).append();e.drawLine(Math.round((v-u)*r+f),Math.round(i*.1),Math.round((v-u)*r+f),Math.round(i*.9),n.get("medianColor")).append();n.get("target")&&(b=Math.ceil(n.get("spotRadius")),e.drawLine(Math.round((n.get("target")-u)*r+f),Math.round(i/2-b),Math.round((n.get("target")-u)*r+f),Math.round(i/2+b),n.get("targetColor")).append(),e.drawLine(Math.round((n.get("target")-u)*r+f-b),Math.round(i/2),Math.round((n.get("target")-u)*r+f+b),Math.round(i/2),n.get("targetColor")).append());e.render()}}}),function(){document.namespaces&&!document.namespaces.v?(n.fn.sparkline.hasVML=!0,document.namespaces.add("v","urn:schemas-microsoft-com:vml","#default#VML")):n.fn.sparkline.hasVML=!1;var t=document.createElement("canvas");n.fn.sparkline.hasCanvas=!!t.getContext&&!!t.getContext("2d")}();lt=t({init:function(n,t,i,r){this.target=n;this.id=t;this.type=i;this.args=r},append:function(){return this.target.appendShape(this),this}});w=t({_pxregex:/(\d+)(px)?\s*$/i,init:function(t,i,r){t&&(this.width=t,this.height=i,this.target=r,this.lastShapeId=null,r[0]&&(r=r[0]),n.data(r,"_jqs_vcanvas",this))},drawLine:function(n,t,i,r,u,f){return this.drawShape([[n,t],[i,r]],u,f)},drawShape:function(n,t,i,r){return this._genShape("Shape",[n,t,i,r])},drawCircle:function(n,t,i,r,u,f){return this._genShape("Circle",[n,t,i,r,u,f])},drawPieSlice:function(n,t,i,r,u,f,e){return this._genShape("PieSlice",[n,t,i,r,u,f,e])},drawRect:function(n,t,i,r,u,f){return this._genShape("Rect",[n,t,i,r,u,f])},getElement:function(){return this.canvas},getLastShapeId:function(){return this.lastShapeId},reset:function(){alert("reset not implemented")},_insert:function(t,i){n(i).html(t)},_calculatePixelDims:function(t,i,r){var u;u=this._pxregex.exec(i);this.pixelHeight=u?u[1]:n(r).height();u=this._pxregex.exec(t);this.pixelWidth=u?u[1]:n(r).width()},_genShape:function(n,t){var i=vt++;return t.unshift(i),new lt(this,i,n,t)},appendShape:function(){alert("appendShape not implemented")},replaceWithShape:function(){alert("replaceWithShape not implemented")},insertAfterShape:function(){alert("insertAfterShape not implemented")},removeShapeId:function(){alert("removeShapeId not implemented")},getShapeAt:function(){alert("getShapeAt not implemented")},render:function(){alert("render not implemented")}});b=t(w,{init:function(t,i,r,u){b._super.init.call(this,t,i,r);this.canvas=document.createElement("canvas");r[0]&&(r=r[0]);n.data(r,"_jqs_vcanvas",this);n(this.canvas).css({display:"inline-block",width:t,height:i,verticalAlign:"top"});this._insert(this.canvas,r);this._calculatePixelDims(t,i,this.canvas);this.canvas.width=this.pixelWidth;this.canvas.height=this.pixelHeight;this.interact=u;this.shapes={};this.shapeseq=[];this.currentTargetShapeId=undefined;n(this.canvas).css({width:this.pixelWidth,height:this.pixelHeight})},_getContext:function(n,t,i){var r=this.canvas.getContext("2d");return n!==undefined&&(r.strokeStyle=n),r.lineWidth=i===undefined?1:i,t!==undefined&&(r.fillStyle=t),r},reset:function(){var n=this._getContext();n.clearRect(0,0,this.pixelWidth,this.pixelHeight);this.shapes={};this.shapeseq=[];this.currentTargetShapeId=undefined},_drawShape:function(n,t,i,r,u){var f=this._getContext(i,r,u),e,o;for(f.beginPath(),f.moveTo(t[0][0]+.5,t[0][1]+.5),e=1,o=t.length;e<o;e++)f.lineTo(t[e][0]+.5,t[e][1]+.5);i!==undefined&&f.stroke();r!==undefined&&f.fill();this.targetX!==undefined&&this.targetY!==undefined&&f.isPointInPath(this.targetX,this.targetY)&&(this.currentTargetShapeId=n)},_drawCircle:function(n,t,i,r,u,f,e){var o=this._getContext(u,f,e);o.beginPath();o.arc(t,i,r,0,2*Math.PI,!1);this.targetX!==undefined&&this.targetY!==undefined&&o.isPointInPath(this.targetX,this.targetY)&&(this.currentTargetShapeId=n);u!==undefined&&o.stroke();f!==undefined&&o.fill()},_drawPieSlice:function(n,t,i,r,u,f,e,o){var s=this._getContext(e,o);s.beginPath();s.moveTo(t,i);s.arc(t,i,r,u,f,!1);s.lineTo(t,i);s.closePath();e!==undefined&&s.stroke();o&&s.fill();this.targetX!==undefined&&this.targetY!==undefined&&s.isPointInPath(this.targetX,this.targetY)&&(this.currentTargetShapeId=n)},_drawRect:function(n,t,i,r,u,f,e){return this._drawShape(n,[[t,i],[t+r,i],[t+r,i+u],[t,i+u],[t,i]],f,e)},appendShape:function(n){return this.shapes[n.id]=n,this.shapeseq.push(n.id),this.lastShapeId=n.id,n.id},replaceWithShape:function(n,t){var r=this.shapeseq,i;for(this.shapes[t.id]=t,i=r.length;i--;)r[i]==n&&(r[i]=t.id);delete this.shapes[n]},replaceWithShapes:function(n,t){for(var r=this.shapeseq,f={},u,e,i=n.length;i--;)f[n[i]]=!0;for(i=r.length;i--;)u=r[i],f[u]&&(r.splice(i,1),delete this.shapes[u],e=i);for(i=t.length;i--;)r.splice(e,0,t[i].id),this.shapes[t[i].id]=t[i]},insertAfterShape:function(n,t){for(var r=this.shapeseq,i=r.length;i--;)if(r[i]===n){r.splice(i+1,0,t.id);this.shapes[t.id]=t;return}},removeShapeId:function(n){for(var i=this.shapeseq,t=i.length;t--;)if(i[t]===n){i.splice(t,1);break}delete this.shapes[n]},getShapeAt:function(n,t,i){return this.targetX=t,this.targetY=i,this.render(),this.currentTargetShapeId},render:function(){var i=this.shapeseq,u=this.shapes,f=i.length,e=this._getContext(),r,t,n;for(e.clearRect(0,0,this.pixelWidth,this.pixelHeight),n=0;n<f;n++)r=i[n],t=u[r],this["_draw"+t.type].apply(this,t.args);this.interact||(this.shapes={},this.shapeseq=[])}});k=t(w,{init:function(t,i,r){var u;k._super.init.call(this,t,i,r);r[0]&&(r=r[0]);n.data(r,"_jqs_vcanvas",this);this.canvas=document.createElement("span");n(this.canvas).css({display:"inline-block",position:"relative",overflow:"hidden",width:t,height:i,margin:"0px",padding:"0px",verticalAlign:"top"});this._insert(this.canvas,r);this._calculatePixelDims(t,i,this.canvas);this.canvas.width=this.pixelWidth;this.canvas.height=this.pixelHeight;u='<v:group coordorigin="0 0" coordsize="'+this.pixelWidth+" "+this.pixelHeight+'" style="position:absolute;top:0;left:0;width:'+this.pixelWidth+"px;height="+this.pixelHeight+'px;"><\/v:group>';this.canvas.insertAdjacentHTML("beforeEnd",u);this.group=n(this.canvas).children()[0];this.rendered=!1;this.prerender=""},_drawShape:function(n,t,i,r,u){for(var f=[],o,s,h,c,l,e=0,a=t.length;e<a;e++)f[e]=""+t[e][0]+","+t[e][1];return o=f.splice(0,1),u=u===undefined?1:u,s=i===undefined?' stroked="false" ':' strokeWeight="'+u+'px" strokeColor="'+i+'" ',h=r===undefined?' filled="false"':' fillColor="'+r+'" filled="true" ',c=f[0]===f[f.length-1]?"x ":"",l='<v:shape coordorigin="0 0" coordsize="'+this.pixelWidth+" "+this.pixelHeight+'"  id="jqsshape'+n+'" '+s+h+' style="position:absolute;left:0px;top:0px;height:'+this.pixelHeight+"px;width:"+this.pixelWidth+'px;padding:0px;margin:0px;"  path="m '+o+" l "+f.join(", ")+" "+c+'e"> <\/v:shape>',l},_drawCircle:function(n,t,i,r,u,f,e){var o,s,h;return t-=r,i-=r,o=u===undefined?' stroked="false" ':' strokeWeight="'+e+'px" strokeColor="'+u+'" ',s=f===undefined?' filled="false"':' fillColor="'+f+'" filled="true" ',h='<v:oval  id="jqsshape'+n+'" '+o+s+' style="position:absolute;top:'+i+"px; left:"+t+"px; width:"+r*2+"px; height:"+r*2+'px"><\/v:oval>',h},_drawPieSlice:function(n,t,i,r,u,f,e,o){var a,s,h,c,l,v,y,p;if(u===f)return"";if(f-u==2*Math.PI&&(u=0,f=2*Math.PI),s=t+Math.round(Math.cos(u)*r),h=i+Math.round(Math.sin(u)*r),c=t+Math.round(Math.cos(f)*r),l=i+Math.round(Math.sin(f)*r),s===c&&h===l){if(f-u<Math.PI)return"";s=c=t+r;h=l=i}return s===c&&h===l&&f-u<Math.PI?"":(a=[t-r,i-r,t+r,i+r,s,h,c,l],v=e===undefined?' stroked="false" ':' strokeWeight="1px" strokeColor="'+e+'" ',y=o===undefined?' filled="false"':' fillColor="'+o+'" filled="true" ',p='<v:shape coordorigin="0 0" coordsize="'+this.pixelWidth+" "+this.pixelHeight+'"  id="jqsshape'+n+'" '+v+y+' style="position:absolute;left:0px;top:0px;height:'+this.pixelHeight+"px;width:"+this.pixelWidth+'px;padding:0px;margin:0px;"  path="m '+t+","+i+" wa "+a.join(", ")+' x e"> <\/v:shape>',p)},_drawRect:function(n,t,i,r,u,f,e){return this._drawShape(n,[[t,i],[t,i+u],[t+r,i+u],[t+r,i],[t,i]],f,e)},reset:function(){this.group.innerHTML=""},appendShape:function(n){var t=this["_draw"+n.type].apply(this,n.args);return this.rendered?this.group.insertAdjacentHTML("beforeEnd",t):this.prerender+=t,this.lastShapeId=n.id,n.id},replaceWithShape:function(t,i){var r=n("#jqsshape"+t),u=this["_draw"+i.type].apply(this,i.args);r[0].outerHTML=u},replaceWithShapes:function(t,i){for(var f=n("#jqsshape"+t[0]),u="",e=i.length,r=0;r<e;r++)u+=this["_draw"+i[r].type].apply(this,i[r].args);for(f[0].outerHTML=u,r=1;r<t.length;r++)n("#jqsshape"+t[r]).remove()},insertAfterShape:function(t,i){var r=n("#jqsshape"+t),u=this["_draw"+i.type].apply(this,i.args);r[0].insertAdjacentHTML("afterEnd",u)},removeShapeId:function(t){var i=n("#jqsshape"+t);this.group.removeChild(i[0])},getShapeAt:function(n){return n.id.substr(8)},render:function(){this.rendered||(this.group.innerHTML=this.prerender,this.rendered=!0)}})});!function(n){"undefined"==typeof n.fn.each2&&n.extend(n.fn,{each2:function(t){for(var i=n([0]),r=-1,u=this.length;++r<u&&(i.context=i[0]=this[r])&&t.call(i[0],r,i)!==!1;);return this}})}(jQuery),function(n,t){"use strict";function h(n){var i,t,u,r;if(!n||n.length<1)return n;for(i="",t=0,u=n.length;u>t;t++)r=n.charAt(t),i+=kt[r]||r;return i}function f(n,t){for(var i=0,r=t.length;r>i;i+=1)if(u(n,t[i]))return i;return-1}function st(){var t=n(bt),i;return t.appendTo("body"),i={width:t.width()-t[0].clientWidth,height:t.height()-t[0].clientHeight},t.remove(),i}function u(n,i){return n===i?!0:n===t||i===t?!1:null===n||null===i?!1:n.constructor===String?n+""==i+"":i.constructor===String?i+""==n+"":!1}function v(t,i){var r,u,f;if(null===t||t.length<1)return[];for(r=t.split(i),u=0,f=r.length;f>u;u+=1)r[u]=n.trim(r[u]);return r}function d(n){return n.outerWidth(!1)-n.width()}function g(i){var r="keyup-change-value";i.on("keydown",function(){n.data(i,r)===t&&n.data(i,r,i.val())});i.on("keyup",function(){var u=n.data(i,r);u!==t&&i.val()!==u&&(n.removeData(i,r),i.trigger("keyup-change"))})}function ht(i){i.on("mousemove",function(i){var r=k;(r===t||r.x!==i.pageX||r.y!==i.pageY)&&n(i.target).trigger("mousemove-filtered",i)})}function nt(n,i,r){r=r||t;var u;return function(){var t=arguments;window.clearTimeout(u);u=window.setTimeout(function(){i.apply(r,t)},n)}}function ct(n){var t,i=!1;return function(){return i===!1&&(t=n(),i=!0),t}}function lt(n,t){var i=nt(n,function(n){t.trigger("scroll-debounced",n)});t.on("scroll",function(n){f(n.target,t.get())>=0&&i(n)})}function at(n){n[0]!==document.activeElement&&window.setTimeout(function(){var i,t=n[0],r=n.val().length;n.focus();n.is(":visible")&&t===document.activeElement&&(t.setSelectionRange?t.setSelectionRange(r,r):t.createTextRange&&(i=t.createTextRange(),i.collapse(!1),i.select()))},0)}function vt(t){var i,r,u;return t=n(t)[0],i=0,r=0,"selectionStart"in t?(i=t.selectionStart,r=t.selectionEnd-i):"selection"in document&&(t.focus(),u=document.selection.createRange(),r=document.selection.createRange().text.length,u.moveStart("character",-t.value.length),i=u.text.length-r),{offset:i,length:r}}function r(n){n.preventDefault();n.stopPropagation()}function yt(n){n.preventDefault();n.stopImmediatePropagation()}function pt(t){if(!s){var i=t[0].currentStyle||window.getComputedStyle(t[0],null);s=n(document.createElement("div")).css({position:"absolute",left:"-10000px",top:"-10000px",display:"none",fontSize:i.fontSize,fontFamily:i.fontFamily,fontStyle:i.fontStyle,fontWeight:i.fontWeight,letterSpacing:i.letterSpacing,textTransform:i.textTransform,whiteSpace:"nowrap"});s.attr("class","select2-sizer");n("body").append(s)}return s.text(t.val()),s.width()}function c(t,i,r){var u,f,e=[];u=t.attr("class");u&&(u=""+u,n(u.split(" ")).each2(function(){0===this.indexOf("select2-")&&e.push(this)}));u=i.attr("class");u&&(u=""+u,n(u.split(" ")).each2(function(){0!==this.indexOf("select2-")&&(f=r(this),f&&e.push(f))}));t.attr("class",e.join(" "))}function tt(n,t,i,r){var u=h(n.toUpperCase()).indexOf(h(t.toUpperCase())),f=t.length;return 0>u?(i.push(r(n)),void 0):(i.push(r(n.substring(0,u))),i.push("<span class='select2-match'>"),i.push(r(n.substring(u,u+f))),i.push("<\/span>"),i.push(r(n.substring(u+f,n.length))),void 0)}function it(n){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return String(n).replace(/[&<>"'\/\\]/g,function(n){return t[n]})}function rt(i){var f,u=null,e=i.quietMillis||100,o=i.url,r=this;return function(s){window.clearTimeout(f);f=window.setTimeout(function(){var e=i.data,f=o,c=i.transport||n.fn.select2.ajaxDefaults.transport,l={type:i.type||"GET",cache:i.cache||!1,jsonpCallback:i.jsonpCallback||t,dataType:i.dataType||"json"},h=n.extend({},n.fn.select2.ajaxDefaults.params,l);e=e?e.call(r,s.term,s.page,s.context):null;f="function"==typeof f?f.call(r,s.term,s.page,s.context):f;u&&u.abort();i.params&&(n.isFunction(i.params)?n.extend(h,i.params.call(r)):n.extend(h,i.params));n.extend(h,{url:f,dataType:i.dataType,data:e,success:function(n){var t=i.results(n,s.page);s.callback(t)}});u=c.call(r,h)},e)}}function ut(t){var e,u,i=t,r=function(n){return""+n.text},f;return n.isArray(i)&&(u=i,i={results:u}),n.isFunction(i)===!1&&(u=i,i=function(){return u}),f=i(),f.text&&(r=f.text,n.isFunction(r)||(e=f.text,r=function(n){return n[e]})),function(t){var u,f=t.term,e={results:[]};return""===f?(t.callback(i()),void 0):(u=function(i,e){var o,s;if(i=i[0],i.children){o={};for(s in i)i.hasOwnProperty(s)&&(o[s]=i[s]);o.children=[];n(i.children).each2(function(n,t){u(t,o.children)});(o.children.length||t.matcher(f,r(o),i))&&e.push(o)}else t.matcher(f,r(i),i)&&e.push(i)},n(i().results).each2(function(n,t){u(t,e.results)}),t.callback(e),void 0)}}function ft(i){var r=n.isFunction(i);return function(u){var f=u.term,e={results:[]};n(r?i():i).each(function(){var n=this.text!==t,i=n?this.text:this;(""===f||u.matcher(f,i))&&e.results.push(n?this:{id:this,text:this})});u.callback(e)}}function o(t,i){if(n.isFunction(t))return!0;if(!t)return!1;throw new Error(i+" must be a function or a falsy value");}function e(t){return n.isFunction(t)?t():t}function et(t){var i=0;return n.each(t,function(n,t){t.children?i+=et(t.children):i++}),i}function wt(n,i,r,f){var e,s,o,h,c,a=n,l=!1;if(!f.createSearchChoice||!f.tokenSeparators||f.tokenSeparators.length<1)return t;for(;;){for(s=-1,o=0,h=f.tokenSeparators.length;h>o&&(c=f.tokenSeparators[o],s=n.indexOf(c),!(s>=0));o++);if(0>s)break;if(e=n.substring(0,s),n=n.substring(s+c.length),e.length>0&&(e=f.createSearchChoice.call(this,e,i),e!==t&&null!==e&&f.id(e)!==t&&null!==f.id(e))){for(l=!1,o=0,h=i.length;h>o;o++)if(u(f.id(e),f.id(i[o]))){l=!0;break}l||r(e)}}if(a!==n)return n}function y(t,i){var r=function(){};return r.prototype=new t,r.prototype.constructor=r,r.prototype.parent=t.prototype,r.prototype=n.extend(r.prototype,i),r}if(window.Select2===t){var l,p,w,a,s,ot,b,k={x:0,y:0},i={TAB:9,ENTER:13,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40,SHIFT:16,CTRL:17,ALT:18,PAGE_UP:33,PAGE_DOWN:34,HOME:36,END:35,BACKSPACE:8,DELETE:46,isArrow:function(n){switch(n=n.which?n.which:n){case i.LEFT:case i.RIGHT:case i.UP:case i.DOWN:return!0}return!1},isControl:function(n){var t=n.which;switch(t){case i.SHIFT:case i.CTRL:case i.ALT:return!0}return n.metaKey?!0:!1},isFunctionKey:function(n){return n=n.which?n.which:n,n>=112&&123>=n}},bt="<div class='select2-measure-scrollbar'><\/div>",kt={"Ⓐ":"A","Ａ":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","Ｂ":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","Ｃ":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","Ｄ":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","Ǳ":"DZ","Ǆ":"DZ","ǲ":"Dz","ǅ":"Dz","Ⓔ":"E","Ｅ":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","Ｆ":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","Ｇ":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","Ｈ":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","Ｉ":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","Ｊ":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","Ｋ":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","Ｌ":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","Ǉ":"LJ","ǈ":"Lj","Ⓜ":"M","Ｍ":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","Ｎ":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","Ǌ":"NJ","ǋ":"Nj","Ⓞ":"O","Ｏ":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","Ｐ":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Ｑ":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","Ｒ":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","Ｓ":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","Ｔ":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","Ｕ":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","Ｖ":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","Ｗ":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","Ｘ":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Ｙ":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Ｚ":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","ａ":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","ｂ":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","ｃ":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","ｄ":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","ǳ":"dz","ǆ":"dz","ⓔ":"e","ｅ":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","ｆ":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","ｇ":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","ｈ":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","ｉ":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","ｊ":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","ｋ":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","ｌ":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","ǉ":"lj","ⓜ":"m","ｍ":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","ｎ":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ŉ":"n","ꞑ":"n","ꞥ":"n","ǌ":"nj","ⓞ":"o","ｏ":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","ｐ":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","ｑ":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","ｒ":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","ｓ":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","ｔ":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","ｕ":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","ｖ":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","ｗ":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","ｘ":"x","ẋ":"x","ẍ":"x","ⓨ":"y","ｙ":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","ｚ":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z"};ot=n(document);a=function(){var n=1;return function(){return n++}}();ot.on("mousemove",function(n){k.x=n.pageX;k.y=n.pageY});l=y(Object,{bind:function(n){var t=this;return function(){n.apply(t,arguments)}},init:function(i){var u,f,o=".select2-results",s,h;this.opts=i=this.prepareOpts(i);this.id=i.id;i.element.data("select2")!==t&&null!==i.element.data("select2")&&i.element.data("select2").destroy();this.container=this.createContainer();this.containerId="s2id_"+(i.element.attr("id")||"autogen"+a());this.containerSelector="#"+this.containerId.replace(/([;&,\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1");this.container.attr("id",this.containerId);this.body=ct(function(){return i.element.closest("body")});c(this.container,this.opts.element,this.opts.adaptContainerCssClass);this.container.attr("style",i.element.attr("style"));this.container.css(e(i.containerCss));this.container.addClass(e(i.containerCssClass));this.elementTabIndex=this.opts.element.attr("tabindex");this.opts.element.data("select2",this).attr("tabindex","-1").before(this.container).on("click.select2",r);this.container.data("select2",this);this.dropdown=this.container.find(".select2-drop");c(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass);this.dropdown.addClass(e(i.dropdownCssClass));this.dropdown.data("select2",this);this.dropdown.on("click",r);this.results=u=this.container.find(o);this.search=f=this.container.find("input.select2-input");this.queryCount=0;this.resultsPage=0;this.context=null;this.initContainer();this.container.on("click",r);ht(this.results);this.dropdown.on("mousemove-filtered touchstart touchmove touchend",o,this.bind(this.highlightUnderEvent));lt(80,this.results);this.dropdown.on("scroll-debounced",o,this.bind(this.loadMoreIfNeeded));n(this.container).on("change",".select2-input",function(n){n.stopPropagation()});n(this.dropdown).on("change",".select2-input",function(n){n.stopPropagation()});n.fn.mousewheel&&u.mousewheel(function(n,t,i,f){var e=u.scrollTop();f>0&&0>=e-f?(u.scrollTop(0),r(n)):0>f&&u.get(0).scrollHeight-u.scrollTop()+f<=u.height()&&(u.scrollTop(u.get(0).scrollHeight-u.height()),r(n))});g(f);f.on("keyup-change input paste",this.bind(this.updateResults));f.on("focus",function(){f.addClass("select2-focused")});f.on("blur",function(){f.removeClass("select2-focused")});this.dropdown.on("mouseup",o,this.bind(function(t){n(t.target).closest(".select2-result-selectable").length>0&&(this.highlightUnderEvent(t),this.selectHighlighted(t))}));this.dropdown.on("click mouseup mousedown",function(n){n.stopPropagation()});n.isFunction(this.opts.initSelection)&&(this.initSelection(),this.monitorSource());null!==i.maximumInputLength&&this.search.attr("maxlength",i.maximumInputLength);s=i.element.prop("disabled");s===t&&(s=!1);this.enable(!s);h=i.element.prop("readonly");h===t&&(h=!1);this.readonly(h);b=b||st();this.autofocus=i.element.prop("autofocus");i.element.prop("autofocus",!1);this.autofocus&&this.focus();this.nextSearchTerm=t},destroy:function(){var n=this.opts.element,i=n.data("select2");this.close();this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null);i!==t&&(i.container.remove(),i.dropdown.remove(),n.removeClass("select2-offscreen").removeData("select2").off(".select2").prop("autofocus",this.autofocus||!1),this.elementTabIndex?n.attr({tabindex:this.elementTabIndex}):n.removeAttr("tabindex"),n.show())},optionToData:function(n){return n.is("option")?{id:n.prop("value"),text:n.text(),element:n.get(),css:n.attr("class"),disabled:n.prop("disabled"),locked:u(n.attr("locked"),"locked")||u(n.data("locked"),!0)}:n.is("optgroup")?{text:n.attr("label"),children:[],element:n.get(),css:n.attr("class")}:void 0},prepareOpts:function(i){var e,o,s,r,f=this;if(e=i.element,"select"===e.get(0).tagName.toLowerCase()&&(this.select=o=i.element),o&&n.each(["id","multiple","ajax","query","createSearchChoice","initSelection","data","tags"],function(){if(this in i)throw new Error("Option '"+this+"' is not allowed for Select2 when attached to a <select> element.");}),i=n.extend({},{populateResults:function(r,u,e){var o,s=this.opts.id;o=function(r,u,h){var v,k,l,d,p,w,c,a,y,b;for(r=i.sortResults(r,u,e),v=0,k=r.length;k>v;v+=1)l=r[v],p=l.disabled===!0,d=!p&&s(l)!==t,w=l.children&&l.children.length>0,c=n("<li><\/li>"),c.addClass("select2-results-dept-"+h),c.addClass("select2-result"),c.addClass(d?"select2-result-selectable":"select2-result-unselectable"),p&&c.addClass("select2-disabled"),w&&c.addClass("select2-result-with-children"),c.addClass(f.opts.formatResultCssClass(l)),a=n(document.createElement("div")),a.addClass("select2-result-label"),b=i.formatResult(l,a,e,f.opts.escapeMarkup),b!==t&&a.html(b),c.append(a),w&&(y=n("<ul><\/ul>"),y.addClass("select2-result-sub"),o(l.children,y,h+1),c.append(y)),c.data("select2-data",l),u.append(c)};o(u,r,0)}},n.fn.select2.defaults,i),"function"!=typeof i.id&&(s=i.id,i.id=function(n){return n[s]}),n.isArray(i.element.data("select2Tags"))){if("tags"in i)throw"tags specified as both an attribute 'data-select2-tags' and in options of Select2 "+i.element.attr("id");i.tags=i.element.data("select2Tags")}if(o?(i.query=this.bind(function(n){var i,r,u,o={results:[],more:!1},s=n.term;u=function(t,i){var r;t.is("option")?n.matcher(s,t.text(),t)&&i.push(f.optionToData(t)):t.is("optgroup")&&(r=f.optionToData(t),t.children().each2(function(n,t){u(t,r.children)}),r.children.length>0&&i.push(r))};i=e.children();this.getPlaceholder()!==t&&i.length>0&&(r=this.getPlaceholderOption(),r&&(i=i.not(r)));i.each2(function(n,t){u(t,o.results)});n.callback(o)}),i.id=function(n){return n.id},i.formatResultCssClass=function(n){return n.css}):"query"in i||("ajax"in i?(r=i.element.data("ajax-url"),r&&r.length>0&&(i.ajax.url=r),i.query=rt.call(i.element,i.ajax)):"data"in i?i.query=ut(i.data):"tags"in i&&(i.query=ft(i.tags),i.createSearchChoice===t&&(i.createSearchChoice=function(t){return{id:n.trim(t),text:n.trim(t)}}),i.initSelection===t&&(i.initSelection=function(t,r){var f=[];n(v(t.val(),i.separator)).each(function(){var r={id:this,text:this},t=i.tags;n.isFunction(t)&&(t=t());n(t).each(function(){if(u(this.id,r.id))return(r=this,!1)});f.push(r)});r(f)}))),"function"!=typeof i.query)throw"query function not defined for Select2 "+i.element.attr("id");return i},monitorSource:function(){var i,r,n=this.opts.element;n.on("change.select2",this.bind(function(){this.opts.element.data("select2-change-triggered")!==!0&&this.initSelection()}));i=this.bind(function(){var r=n.prop("disabled"),i;r===t&&(r=!1);this.enable(!r);i=n.prop("readonly");i===t&&(i=!1);this.readonly(i);c(this.container,this.opts.element,this.opts.adaptContainerCssClass);this.container.addClass(e(this.opts.containerCssClass));c(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass);this.dropdown.addClass(e(this.opts.dropdownCssClass))});n.on("propertychange.select2",i);this.mutationCallback===t&&(this.mutationCallback=function(n){n.forEach(i)});r=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;r!==t&&(this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),this.propertyObserver=new r(this.mutationCallback),this.propertyObserver.observe(n.get(0),{attributes:!0,subtree:!1}))},triggerSelect:function(t){var i=n.Event("select2-selecting",{val:this.id(t),object:t});return this.opts.element.trigger(i),!i.isDefaultPrevented()},triggerChange:function(t){t=t||{};t=n.extend({},t,{type:"change",val:this.val()});this.opts.element.data("select2-change-triggered",!0);this.opts.element.trigger(t);this.opts.element.data("select2-change-triggered",!1);this.opts.element.click();this.opts.blurOnChange&&this.opts.element.blur()},isInterfaceEnabled:function(){return this.enabledInterface===!0},enableInterface:function(){var n=this._enabled&&!this._readonly,t=!n;return n===this.enabledInterface?!1:(this.container.toggleClass("select2-container-disabled",t),this.close(),this.enabledInterface=n,!0)},enable:function(n){n===t&&(n=!0);this._enabled!==n&&(this._enabled=n,this.opts.element.prop("disabled",!n),this.enableInterface())},disable:function(){this.enable(!1)},readonly:function(n){return n===t&&(n=!1),this._readonly===n?!1:(this._readonly=n,this.opts.element.prop("readonly",n),this.enableInterface(),!0)},opened:function(){return this.container.hasClass("select2-dropdown-open")},positionDropdown:function(){var a,h,v,r,y,t=this.dropdown,u=this.container.offset(),p=this.container.outerHeight(!1),o=this.container.outerWidth(!1),w=t.outerHeight(!1),s=n(window),g=s.width(),k=s.height(),c=s.scrollLeft()+g,nt=s.scrollTop()+k,l=u.top+p,f=u.left,tt=nt>=l+w,it=u.top-w>=this.body().scrollTop(),i=t.outerWidth(!1),d=c>=f+i,rt=t.hasClass("select2-drop-above");rt?(h=!0,!it&&tt&&(v=!0,h=!1)):(h=!1,!tt&&it&&(v=!0,h=!0));v&&(t.hide(),u=this.container.offset(),p=this.container.outerHeight(!1),o=this.container.outerWidth(!1),w=t.outerHeight(!1),c=s.scrollLeft()+g,nt=s.scrollTop()+k,l=u.top+p,f=u.left,i=t.outerWidth(!1),d=c>=f+i,t.show());this.opts.dropdownAutoWidth?(y=n(".select2-results",t)[0],t.addClass("select2-drop-auto-width"),t.css("width",""),i=t.outerWidth(!1)+(y.scrollHeight===y.clientHeight?0:b.width),i>o?o=i:i=o,d=c>=f+i):this.container.removeClass("select2-drop-auto-width");"static"!==this.body().css("position")&&(a=this.body().offset(),l-=a.top,f-=a.left);d||(f=u.left+o-i);r={left:f,width:o};h?(r.bottom=k-u.top,r.top="auto",this.container.addClass("select2-drop-above"),t.addClass("select2-drop-above")):(r.top=l,r.bottom="auto",this.container.removeClass("select2-drop-above"),t.removeClass("select2-drop-above"));r=n.extend(r,e(this.opts.dropdownCss));t.css(r)},shouldOpen:function(){var t;return this.opened()?!1:this._enabled===!1||this._readonly===!0?!1:(t=n.Event("select2-opening"),this.opts.element.trigger(t),!t.isDefaultPrevented())},clearDropdownAlignmentPreference:function(){this.container.removeClass("select2-drop-above");this.dropdown.removeClass("select2-drop-above")},open:function(){return this.shouldOpen()?(this.opening(),!0):!1},opening:function(){var t,i=this.containerId,u="scroll."+i,f="resize."+i,e="orientationchange."+i,r;this.container.addClass("select2-dropdown-open").addClass("select2-container-active");this.clearDropdownAlignmentPreference();this.dropdown[0]!==this.body().children().last()[0]&&this.dropdown.detach().appendTo(this.body());t=n("#select2-drop-mask");0==t.length&&(t=n(document.createElement("div")),t.attr("id","select2-drop-mask").attr("class","select2-drop-mask"),t.hide(),t.appendTo(this.body()),t.on("mousedown touchstart click",function(t){var i,r=n("#select2-drop");r.length>0&&(i=r.data("select2"),i.opts.selectOnBlur&&i.selectHighlighted({noFocus:!0}),i.close({focus:!0}),t.preventDefault(),t.stopPropagation())}));this.dropdown.prev()[0]!==t[0]&&this.dropdown.before(t);n("#select2-drop").removeAttr("id");this.dropdown.attr("id","select2-drop");t.show();this.positionDropdown();this.dropdown.show();this.positionDropdown();this.dropdown.addClass("select2-drop-active");r=this;this.container.parents().add(window).each(function(){n(this).on(f+" "+u+" "+e,function(){r.positionDropdown()})})},close:function(){if(this.opened()){var t=this.containerId,i="scroll."+t,r="resize."+t,u="orientationchange."+t;this.container.parents().add(window).each(function(){n(this).off(i).off(r).off(u)});this.clearDropdownAlignmentPreference();n("#select2-drop-mask").hide();this.dropdown.removeAttr("id");this.dropdown.hide();this.container.removeClass("select2-dropdown-open").removeClass("select2-container-active");this.results.empty();this.clearSearch();this.search.removeClass("select2-active");this.opts.element.trigger(n.Event("select2-close"))}},externalSearch:function(n){this.open();this.search.val(n);this.updateResults(!1)},clearSearch:function(){},getMaximumSelectionSize:function(){return e(this.opts.maximumSelectionSize)},ensureHighlightVisible:function(){var e,i,r,u,o,s,f,t=this.results;if(i=this.highlight(),!(0>i)){if(0==i)return t.scrollTop(0),void 0;e=this.findHighlightableChoices().find(".select2-result-label");r=n(e[i]);u=r.offset().top+r.outerHeight(!0);i===e.length-1&&(f=t.find("li.select2-more-results"),f.length>0&&(u=f.offset().top+f.outerHeight(!0)));o=t.offset().top+t.outerHeight(!0);u>o&&t.scrollTop(t.scrollTop()+(u-o));s=r.offset().top-t.offset().top;0>s&&"none"!=r.css("display")&&t.scrollTop(t.scrollTop()+s)}},findHighlightableChoices:function(){return this.results.find(".select2-result-selectable:not(.select2-disabled, .select2-selected)")},moveHighlight:function(t){for(var r,u=this.findHighlightableChoices(),i=this.highlight();i>-1&&i<u.length;)if(i+=t,r=n(u[i]),r.hasClass("select2-result-selectable")&&!r.hasClass("select2-disabled")&&!r.hasClass("select2-selected")){this.highlight(i);break}},highlight:function(t){var u,r,i=this.findHighlightableChoices();return 0===arguments.length?f(i.filter(".select2-highlighted")[0],i.get()):(t>=i.length&&(t=i.length-1),0>t&&(t=0),this.removeHighlight(),u=n(i[t]),u.addClass("select2-highlighted"),this.ensureHighlightVisible(),r=u.data("select2-data"),r&&this.opts.element.trigger({type:"select2-highlight",val:this.id(r),choice:r}),void 0)},removeHighlight:function(){this.results.find(".select2-highlighted").removeClass("select2-highlighted")},countSelectableResults:function(){return this.findHighlightableChoices().length},highlightUnderEvent:function(t){var i=n(t.target).closest(".select2-result-selectable"),r;i.length>0&&!i.is(".select2-highlighted")?(r=this.findHighlightableChoices(),this.highlight(r.index(i))):0==i.length&&this.removeHighlight()},loadMoreIfNeeded:function(){var u,t=this.results,i=t.find("li.select2-more-results"),r=this.resultsPage+1,n=this,f=this.search.val(),e=this.context;0!==i.length&&(u=i.offset().top-t.offset().top-t.height(),u<=this.opts.loadMorePadding&&(i.addClass("select2-active"),this.opts.query({element:this.opts.element,term:f,page:r,context:e,matcher:this.opts.matcher,callback:this.bind(function(u){n.opened()&&(n.opts.populateResults.call(this,t,u.results,{term:f,page:r,context:e}),n.postprocessResults(u,!1,!1),u.more===!0?(i.detach().appendTo(t).text(n.opts.formatLoadMore(r+1)),window.setTimeout(function(){n.loadMoreIfNeeded()},10)):i.remove(),n.positionDropdown(),n.resultsPage=r,n.context=u.context,this.opts.element.trigger({type:"select2-loaded",items:u}))})})))},tokenize:function(){},updateResults:function(i){function v(){f.removeClass("select2-active");e.positionDropdown()}function s(n){c.html(n);v()}var a,h,y,f=this.search,c=this.results,r=this.opts,e=this,p=f.val(),w=n.data(this.container,"select2-last-term"),l;if((i===!0||!w||!u(p,w))&&(n.data(this.container,"select2-last-term",p),i===!0||this.showSearchInput!==!1&&this.opened())){if(y=++this.queryCount,l=this.getMaximumSelectionSize(),l>=1&&(a=this.data(),n.isArray(a)&&a.length>=l&&o(r.formatSelectionTooBig,"formatSelectionTooBig")))return s("<li class='select2-selection-limit'>"+r.formatSelectionTooBig(l)+"<\/li>"),void 0;if(f.val().length<r.minimumInputLength)return o(r.formatInputTooShort,"formatInputTooShort")?s("<li class='select2-no-results'>"+r.formatInputTooShort(f.val(),r.minimumInputLength)+"<\/li>"):s(""),i&&this.showSearch&&this.showSearch(!0),void 0;if(r.maximumInputLength&&f.val().length>r.maximumInputLength)return o(r.formatInputTooLong,"formatInputTooLong")?s("<li class='select2-no-results'>"+r.formatInputTooLong(f.val(),r.maximumInputLength)+"<\/li>"):s(""),void 0;r.formatSearching&&0===this.findHighlightableChoices().length&&s("<li class='select2-searching'>"+r.formatSearching()+"<\/li>");f.addClass("select2-active");this.removeHighlight();h=this.tokenize();h!=t&&null!=h&&f.val(h);this.resultsPage=1;r.query({element:r.element,term:f.val(),page:this.resultsPage,context:null,matcher:r.matcher,callback:this.bind(function(h){var l;if(y==this.queryCount){if(!this.opened())return this.search.removeClass("select2-active"),void 0;if(this.context=h.context===t?null:h.context,this.opts.createSearchChoice&&""!==f.val()&&(l=this.opts.createSearchChoice.call(e,f.val(),h.results),l!==t&&null!==l&&e.id(l)!==t&&null!==e.id(l)&&0===n(h.results).filter(function(){return u(e.id(this),e.id(l))}).length&&h.results.unshift(l)),0===h.results.length&&o(r.formatNoMatches,"formatNoMatches"))return s("<li class='select2-no-results'>"+r.formatNoMatches(f.val())+"<\/li>"),void 0;c.empty();e.opts.populateResults.call(this,c,h.results,{term:f.val(),page:this.resultsPage,context:null});h.more===!0&&o(r.formatLoadMore,"formatLoadMore")&&(c.append("<li class='select2-more-results'>"+e.opts.escapeMarkup(r.formatLoadMore(this.resultsPage))+"<\/li>"),window.setTimeout(function(){e.loadMoreIfNeeded()},10));this.postprocessResults(h,i);v();this.opts.element.trigger({type:"select2-loaded",items:h})}})})}},cancel:function(){this.close()},blur:function(){this.opts.selectOnBlur&&this.selectHighlighted({noFocus:!0});this.close();this.container.removeClass("select2-container-active");this.search[0]===document.activeElement&&this.search.blur();this.clearSearch();this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus")},focusSearch:function(){at(this.search)},selectHighlighted:function(n){var i=this.highlight(),r=this.results.find(".select2-highlighted"),t=r.closest(".select2-result").data("select2-data");t?(this.highlight(i),this.onSelect(t,n)):n&&n.noFocus&&this.close()},getPlaceholder:function(){var n;return this.opts.element.attr("placeholder")||this.opts.element.attr("data-placeholder")||this.opts.element.data("placeholder")||this.opts.placeholder||((n=this.getPlaceholderOption())!==t?n.text():t)},getPlaceholderOption:function(){if(this.select){var n=this.select.children("option").first();if(this.opts.placeholderOption!==t)return"first"===this.opts.placeholderOption&&n||"function"==typeof this.opts.placeholderOption&&this.opts.placeholderOption(this.select);if(""===n.text()&&""===n.val())return n}},initContainerWidth:function(){function r(){var i,f,r,u,e,o;if("off"===this.opts.width)return null;if("element"===this.opts.width)return 0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px";if("copy"===this.opts.width||"resolve"===this.opts.width){if(i=this.opts.element.attr("style"),i!==t)for(f=i.split(";"),u=0,e=f.length;e>u;u+=1)if(o=f[u].replace(/\s/g,""),r=o.match(/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i),null!==r&&r.length>=1)return r[1];return"resolve"===this.opts.width?(i=this.opts.element.css("width"),i.indexOf("%")>0?i:0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px"):null}return n.isFunction(this.opts.width)?this.opts.width():this.opts.width}var i=r.call(this);null!==i&&this.container.css("width",i)}});p=y(l,{createContainer:function(){return n(document.createElement("div")).attr({"class":"select2-container"}).html("<a href='javascript:void(0)' onclick='return false;' class='select2-choice' tabindex='-1'>   <span class='select2-chosen'>&nbsp;<\/span><abbr class='select2-search-choice-close'><\/abbr>   <span class='select2-arrow'><b><\/b><\/span><\/a><input class='select2-focusser select2-offscreen' type='text'/><div class='select2-drop select2-display-none'>   <div class='select2-search'>       <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input'/>   <\/div>   <ul class='select2-results'>   <\/ul><\/div>")},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.focusser.prop("disabled",!this.isInterfaceEnabled())},opening:function(){var i,r,u;this.opts.minimumResultsForSearch>=0&&this.showSearch(!0);this.parent.opening.apply(this,arguments);this.showSearchInput!==!1&&this.search.val(this.focusser.val());this.search.focus();i=this.search.get(0);i.createTextRange?(r=i.createTextRange(),r.collapse(!1),r.select()):i.setSelectionRange&&(u=this.search.val().length,i.setSelectionRange(u,u));""===this.search.val()&&this.nextSearchTerm!=t&&(this.search.val(this.nextSearchTerm),this.search.select());this.focusser.prop("disabled",!0).val("");this.updateResults(!0);this.opts.element.trigger(n.Event("select2-open"))},close:function(n){this.opened()&&(this.parent.close.apply(this,arguments),n=n||{focus:!0},this.focusser.removeAttr("disabled"),n.focus&&this.focusser.focus())},focus:function(){this.opened()?this.close():(this.focusser.removeAttr("disabled"),this.focusser.focus())},isFocused:function(){return this.container.hasClass("select2-container-active")},cancel:function(){this.parent.cancel.apply(this,arguments);this.focusser.removeAttr("disabled");this.focusser.focus()},destroy:function(){n("label[for='"+this.focusser.attr("id")+"']").attr("for",this.opts.element.attr("id"));this.parent.destroy.apply(this,arguments)},initContainer:function(){var t,u=this.container,f=this.dropdown;this.opts.minimumResultsForSearch<0?this.showSearch(!1):this.showSearch(!0);this.selection=t=u.find(".select2-choice");this.focusser=u.find(".select2-focusser");this.focusser.attr("id","s2id_autogen"+a());n("label[for='"+this.opts.element.attr("id")+"']").attr("for",this.focusser.attr("id"));this.focusser.attr("tabindex",this.elementTabIndex);this.search.on("keydown",this.bind(function(n){if(this.isInterfaceEnabled()){if(n.which===i.PAGE_UP||n.which===i.PAGE_DOWN)return r(n),void 0;switch(n.which){case i.UP:case i.DOWN:return this.moveHighlight(n.which===i.UP?-1:1),r(n),void 0;case i.ENTER:return this.selectHighlighted(),r(n),void 0;case i.TAB:return this.selectHighlighted({noFocus:!0}),void 0;case i.ESC:return this.cancel(n),r(n),void 0}}}));this.search.on("blur",this.bind(function(){document.activeElement===this.body().get(0)&&window.setTimeout(this.bind(function(){this.search.focus()}),0)}));this.focusser.on("keydown",this.bind(function(n){if(this.isInterfaceEnabled()&&n.which!==i.TAB&&!i.isControl(n)&&!i.isFunctionKey(n)&&n.which!==i.ESC)return this.opts.openOnEnter===!1&&n.which===i.ENTER?(r(n),void 0):n.which==i.DOWN||n.which==i.UP||n.which==i.ENTER&&this.opts.openOnEnter?n.altKey||n.ctrlKey||n.shiftKey||n.metaKey?void 0:(this.open(),r(n),void 0):n.which==i.DELETE||n.which==i.BACKSPACE?(this.opts.allowClear&&this.clear(),r(n),void 0):void 0}));g(this.focusser);this.focusser.on("keyup-change input",this.bind(function(n){if(this.opts.minimumResultsForSearch>=0){if(n.stopPropagation(),this.opened())return;this.open()}}));t.on("mousedown","abbr",this.bind(function(n){this.isInterfaceEnabled()&&(this.clear(),yt(n),this.close(),this.selection.focus())}));t.on("mousedown",this.bind(function(t){this.container.hasClass("select2-container-active")||this.opts.element.trigger(n.Event("select2-focus"));this.opened()?this.close():this.isInterfaceEnabled()&&this.open();r(t)}));f.on("mousedown",this.bind(function(){this.search.focus()}));t.on("focus",this.bind(function(n){r(n)}));this.focusser.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(n.Event("select2-focus"));this.container.addClass("select2-container-active")})).on("blur",this.bind(function(){this.opened()||(this.container.removeClass("select2-container-active"),this.opts.element.trigger(n.Event("select2-blur")))}));this.search.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(n.Event("select2-focus"));this.container.addClass("select2-container-active")}));this.initContainerWidth();this.opts.element.addClass("select2-offscreen");this.setPlaceholder()},clear:function(t){var i=this.selection.data("select2-data"),r,u;if(i){if(r=n.Event("select2-clearing"),this.opts.element.trigger(r),r.isDefaultPrevented())return;u=this.getPlaceholderOption();this.opts.element.val(u?u.val():"");this.selection.find(".select2-chosen").empty();this.selection.removeData("select2-data");this.setPlaceholder();t!==!1&&(this.opts.element.trigger({type:"select2-removed",val:this.id(i),choice:i}),this.triggerChange({removed:i}))}},initSelection:function(){if(this.isPlaceholderOptionSelected())this.updateSelection(null),this.close(),this.setPlaceholder();else{var n=this;this.opts.initSelection.call(null,this.opts.element,function(i){i!==t&&null!==i&&(n.updateSelection(i),n.close(),n.setPlaceholder())})}},isPlaceholderOptionSelected:function(){var n;return this.getPlaceholder()?(n=this.getPlaceholderOption())!==t&&n.prop("selected")||""===this.opts.element.val()||this.opts.element.val()===t||null===this.opts.element.val():!1},prepareOpts:function(){var t=this.parent.prepareOpts.apply(this,arguments),i=this;return"select"===t.element.get(0).tagName.toLowerCase()?t.initSelection=function(n,t){var r=n.find("option").filter(function(){return this.selected});t(i.optionToData(r))}:"data"in t&&(t.initSelection=t.initSelection||function(i,r){var e=i.val(),f=null;t.query({matcher:function(n,i,r){var o=u(e,t.id(r));return o&&(f=r),o},callback:n.isFunction(r)?function(){r(f)}:n.noop})}),t},getPlaceholder:function(){return this.select&&this.getPlaceholderOption()===t?t:this.parent.getPlaceholder.apply(this,arguments)},setPlaceholder:function(){var n=this.getPlaceholder();if(this.isPlaceholderOptionSelected()&&n!==t){if(this.select&&this.getPlaceholderOption()===t)return;this.selection.find(".select2-chosen").html(this.opts.escapeMarkup(n));this.selection.addClass("select2-default");this.container.removeClass("select2-allowclear")}},postprocessResults:function(n,t,i){var r=0,e=this,f;(this.findHighlightableChoices().each2(function(n,t){if(u(e.id(t.data("select2-data")),e.opts.element.val()))return(r=n,!1)}),i!==!1&&(t===!0&&r>=0?this.highlight(r):this.highlight(0)),t===!0)&&(f=this.opts.minimumResultsForSearch,f>=0&&this.showSearch(et(n.results)>=f))},showSearch:function(t){this.showSearchInput!==t&&(this.showSearchInput=t,this.dropdown.find(".select2-search").toggleClass("select2-search-hidden",!t),this.dropdown.find(".select2-search").toggleClass("select2-offscreen",!t),n(this.dropdown,this.container).toggleClass("select2-with-searchbox",t))},onSelect:function(n,t){if(this.triggerSelect(n)){var i=this.opts.element.val(),r=this.data();this.opts.element.val(this.id(n));this.updateSelection(n);this.opts.element.trigger({type:"select2-selected",val:this.id(n),choice:n});this.nextSearchTerm=this.opts.nextSearchTerm(n,this.search.val());this.close();t&&t.noFocus||this.focusser.focus();u(i,this.id(n))||this.triggerChange({added:n,removed:r})}},updateSelection:function(n){var r,u,i=this.selection.find(".select2-chosen");this.selection.data("select2-data",n);i.empty();null!==n&&(r=this.opts.formatSelection(n,i,this.opts.escapeMarkup));r!==t&&i.append(r);u=this.opts.formatSelectionCssClass(n,i);u!==t&&i.addClass(u);this.selection.removeClass("select2-default");this.opts.allowClear&&this.getPlaceholder()!==t&&this.container.addClass("select2-allowclear")},val:function(){var i,r=!1,u=null,n=this,f=this.data();if(0===arguments.length)return this.opts.element.val();if(i=arguments[0],arguments.length>1&&(r=arguments[1]),this.select)this.select.val(i).find("option").filter(function(){return this.selected}).each2(function(t,i){return u=n.optionToData(i),!1}),this.updateSelection(u),this.setPlaceholder(),r&&this.triggerChange({added:u,removed:f});else{if(!i&&0!==i)return this.clear(r),void 0;if(this.opts.initSelection===t)throw new Error("cannot call val() if initSelection() is not defined");this.opts.element.val(i);this.opts.initSelection(this.opts.element,function(t){n.opts.element.val(t?n.id(t):"");n.updateSelection(t);n.setPlaceholder();r&&n.triggerChange({added:t,removed:f})})}},clearSearch:function(){this.search.val("");this.focusser.val("")},data:function(n){var i,r=!1;return 0===arguments.length?(i=this.selection.data("select2-data"),i==t&&(i=null),i):(arguments.length>1&&(r=arguments[1]),n?(i=this.data(),this.opts.element.val(n?this.id(n):""),this.updateSelection(n),r&&this.triggerChange({added:n,removed:i})):this.clear(r),void 0)}});w=y(l,{createContainer:function(){return n(document.createElement("div")).attr({"class":"select2-container select2-container-multi"}).html("<ul class='select2-choices'>  <li class='select2-search-field'>    <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input'>  <\/li><\/ul><div class='select2-drop select2-drop-multi select2-display-none'>   <ul class='select2-results'>   <\/ul><\/div>")},prepareOpts:function(){var t=this.parent.prepareOpts.apply(this,arguments),i=this;return"select"===t.element.get(0).tagName.toLowerCase()?t.initSelection=function(n,t){var r=[];n.find("option").filter(function(){return this.selected}).each2(function(n,t){r.push(i.optionToData(t))});t(r)}:"data"in t&&(t.initSelection=t.initSelection||function(i,r){var e=v(i.val(),t.separator),f=[];t.query({matcher:function(i,r,o){var s=n.grep(e,function(n){return u(n,t.id(o))}).length;return s&&f.push(o),s},callback:n.isFunction(r)?function(){for(var h,n,s,o=[],i=0;i<e.length;i++)for(h=e[i],n=0;n<f.length;n++)if(s=f[n],u(h,t.id(s))){o.push(s);f.splice(n,1);break}r(o)}:n.noop})}),t},selectChoice:function(n){var t=this.container.find(".select2-search-choice-focus");t.length&&n&&n[0]==t[0]||(t.length&&this.opts.element.trigger("choice-deselected",t),t.removeClass("select2-search-choice-focus"),n&&n.length&&(this.close(),n.addClass("select2-search-choice-focus"),this.opts.element.trigger("choice-selected",n)))},destroy:function(){n("label[for='"+this.search.attr("id")+"']").attr("for",this.opts.element.attr("id"));this.parent.destroy.apply(this,arguments)},initContainer:function(){var t,u=".select2-choices",f;this.searchContainer=this.container.find(".select2-search-field");this.selection=t=this.container.find(u);f=this;this.selection.on("click",".select2-search-choice:not(.select2-locked)",function(){f.search[0].focus();f.selectChoice(n(this))});this.search.attr("id","s2id_autogen"+a());n("label[for='"+this.opts.element.attr("id")+"']").attr("for",this.search.attr("id"));this.search.on("input paste",this.bind(function(){this.isInterfaceEnabled()&&(this.opened()||this.open())}));this.search.attr("tabindex",this.elementTabIndex);this.keydowns=0;this.search.on("keydown",this.bind(function(n){var u;if(this.isInterfaceEnabled()){++this.keydowns;var f=t.find(".select2-search-choice-focus"),o=f.prev(".select2-search-choice:not(.select2-locked)"),e=f.next(".select2-search-choice:not(.select2-locked)"),s=vt(this.search);if(f.length&&(n.which==i.LEFT||n.which==i.RIGHT||n.which==i.BACKSPACE||n.which==i.DELETE||n.which==i.ENTER))return u=f,n.which==i.LEFT&&o.length?u=o:n.which==i.RIGHT?u=e.length?e:null:n.which===i.BACKSPACE?(this.unselect(f.first()),this.search.width(10),u=o.length?o:e):n.which==i.DELETE?(this.unselect(f.first()),this.search.width(10),u=e.length?e:null):n.which==i.ENTER&&(u=null),this.selectChoice(u),r(n),u&&u.length||this.open(),void 0;if((n.which===i.BACKSPACE&&1==this.keydowns||n.which==i.LEFT)&&0==s.offset&&!s.length)return this.selectChoice(t.find(".select2-search-choice:not(.select2-locked)").last()),r(n),void 0;if(this.selectChoice(null),this.opened())switch(n.which){case i.UP:case i.DOWN:return this.moveHighlight(n.which===i.UP?-1:1),r(n),void 0;case i.ENTER:return this.selectHighlighted(),r(n),void 0;case i.TAB:return this.selectHighlighted({noFocus:!0}),this.close(),void 0;case i.ESC:return this.cancel(n),r(n),void 0}if(n.which!==i.TAB&&!i.isControl(n)&&!i.isFunctionKey(n)&&n.which!==i.BACKSPACE&&n.which!==i.ESC){if(n.which===i.ENTER){if(this.opts.openOnEnter===!1)return;if(n.altKey||n.ctrlKey||n.shiftKey||n.metaKey)return}this.open();(n.which===i.PAGE_UP||n.which===i.PAGE_DOWN)&&r(n);n.which===i.ENTER&&r(n)}}}));this.search.on("keyup",this.bind(function(){this.keydowns=0;this.resizeSearch()}));this.search.on("blur",this.bind(function(t){this.container.removeClass("select2-container-active");this.search.removeClass("select2-focused");this.selectChoice(null);this.opened()||this.clearSearch();t.stopImmediatePropagation();this.opts.element.trigger(n.Event("select2-blur"))}));this.container.on("click",u,this.bind(function(t){this.isInterfaceEnabled()&&(n(t.target).closest(".select2-search-choice").length>0||(this.selectChoice(null),this.clearPlaceholder(),this.container.hasClass("select2-container-active")||this.opts.element.trigger(n.Event("select2-focus")),this.open(),this.focusSearch(),t.preventDefault()))}));this.container.on("focus",u,this.bind(function(){this.isInterfaceEnabled()&&(this.container.hasClass("select2-container-active")||this.opts.element.trigger(n.Event("select2-focus")),this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"),this.clearPlaceholder())}));this.initContainerWidth();this.opts.element.addClass("select2-offscreen");this.clearSearch()},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.search.prop("disabled",!this.isInterfaceEnabled())},initSelection:function(){if(""===this.opts.element.val()&&""===this.opts.element.text()&&(this.updateSelection([]),this.close(),this.clearSearch()),this.select||""!==this.opts.element.val()){var n=this;this.opts.initSelection.call(null,this.opts.element,function(i){i!==t&&null!==i&&(n.updateSelection(i),n.close(),n.clearSearch())})}},clearSearch:function(){var n=this.getPlaceholder(),i=this.getMaxSearchWidth();n!==t&&0===this.getVal().length&&this.search.hasClass("select2-focused")===!1?(this.search.val(n).addClass("select2-default"),this.search.width(i>0?i:this.container.css("width"))):this.search.val("").width(10)},clearPlaceholder:function(){this.search.hasClass("select2-default")&&this.search.val("").removeClass("select2-default")},opening:function(){this.clearPlaceholder();this.resizeSearch();this.parent.opening.apply(this,arguments);this.focusSearch();this.updateResults(!0);this.search.focus();this.opts.element.trigger(n.Event("select2-open"))},close:function(){this.opened()&&this.parent.close.apply(this,arguments)},focus:function(){this.close();this.search.focus()},isFocused:function(){return this.search.hasClass("select2-focused")},updateSelection:function(t){var r=[],u=[],i=this;n(t).each(function(){f(i.id(this),r)<0&&(r.push(i.id(this)),u.push(this))});t=u;this.selection.find(".select2-search-choice").remove();n(t).each(function(){i.addSelectedChoice(this)});i.postprocessResults()},tokenize:function(){var n=this.search.val();n=this.opts.tokenizer.call(this,n,this.data(),this.bind(this.onSelect),this.opts);null!=n&&n!=t&&(this.search.val(n),n.length>0&&this.open())},onSelect:function(n,t){this.triggerSelect(n)&&(this.addSelectedChoice(n),this.opts.element.trigger({type:"selected",val:this.id(n),choice:n}),(this.select||!this.opts.closeOnSelect)&&this.postprocessResults(n,!1,this.opts.closeOnSelect===!0),this.opts.closeOnSelect?(this.close(),this.search.width(10)):this.countSelectableResults()>0?(this.search.width(10),this.resizeSearch(),this.getMaximumSelectionSize()>0&&this.val().length>=this.getMaximumSelectionSize()&&this.updateResults(!0),this.positionDropdown()):(this.close(),this.search.width(10)),this.triggerChange({added:n}),t&&t.noFocus||this.focusSearch())},cancel:function(){this.close();this.focusSearch()},addSelectedChoice:function(i){var f,e,o=!i.locked,h=n("<li class='select2-search-choice'>    <div><\/div>    <a href='#' onclick='return false;' class='select2-search-choice-close' tabindex='-1'><\/a><\/li>"),c=n("<li class='select2-search-choice select2-locked'><div><\/div><\/li>"),u=o?h:c,l=this.id(i),s=this.getVal();f=this.opts.formatSelection(i,u.find("div"),this.opts.escapeMarkup);f!=t&&u.find("div").replaceWith("<div>"+f+"<\/div>");e=this.opts.formatSelectionCssClass(i,u.find("div"));e!=t&&u.addClass(e);o&&u.find(".select2-search-choice-close").on("mousedown",r).on("click dblclick",this.bind(function(t){this.isInterfaceEnabled()&&(n(t.target).closest(".select2-search-choice").fadeOut("fast",this.bind(function(){this.unselect(n(t.target));this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus");this.close();this.focusSearch()})).dequeue(),r(t))})).on("focus",this.bind(function(){this.isInterfaceEnabled()&&(this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"))}));u.data("select2-data",i);u.insertBefore(this.searchContainer);s.push(l);this.setVal(s)},unselect:function(t){var i,e,u=this.getVal(),r;if(t=t.closest(".select2-search-choice"),0===t.length)throw"Invalid argument: "+t+". Must be .select2-search-choice";if(i=t.data("select2-data")){for(;(e=f(this.id(i),u))>=0;)u.splice(e,1),this.setVal(u),this.select&&this.postprocessResults();r=n.Event("select2-removing");r.val=this.id(i);r.choice=i;this.opts.element.trigger(r);r.isDefaultPrevented()||(t.remove(),this.opts.element.trigger({type:"select2-removed",val:this.id(i),choice:i}),this.triggerChange({removed:i}))}},postprocessResults:function(n,t,i){var e=this.getVal(),u=this.results.find(".select2-result"),s=this.results.find(".select2-result-with-children"),r=this;u.each2(function(n,t){var i=r.id(t.data("select2-data"));f(i,e)>=0&&(t.addClass("select2-selected"),t.find(".select2-result-selectable").addClass("select2-selected"))});s.each2(function(n,t){t.is(".select2-result-selectable")||0!==t.find(".select2-result-selectable:not(.select2-selected)").length||t.addClass("select2-selected")});-1==this.highlight()&&i!==!1&&r.highlight(0);!this.opts.createSearchChoice&&!u.filter(".select2-result:not(.select2-selected)").length>0&&(!n||n&&!n.more&&0===this.results.find(".select2-no-results").length)&&o(r.opts.formatNoMatches,"formatNoMatches")&&this.results.append("<li class='select2-no-results'>"+r.opts.formatNoMatches(r.search.val())+"<\/li>")},getMaxSearchWidth:function(){return this.selection.width()-d(this.search)},resizeSearch:function(){var i,u,t,f,n,r=d(this.search);i=pt(this.search)+10;u=this.search.offset().left;t=this.selection.width();f=this.selection.offset().left;n=t-(u-f)-r;i>n&&(n=t-r);40>n&&(n=t-r);0>=n&&(n=i);this.search.width(Math.floor(n))},getVal:function(){var n;return this.select?(n=this.select.val(),null===n?[]:n):(n=this.opts.element.val(),v(n,this.opts.separator))},setVal:function(t){var i;this.select?this.select.val(t):(i=[],n(t).each(function(){f(this,i)<0&&i.push(this)}),this.opts.element.val(0===i.length?"":i.join(this.opts.separator)))},buildChangeDetails:function(n,t){for(var r,t=t.slice(0),n=n.slice(0),i=0;i<t.length;i++)for(r=0;r<n.length;r++)u(this.opts.id(t[i]),this.opts.id(n[r]))&&(t.splice(i,1),i>0&&i--,n.splice(r,1),r--);return{added:t,removed:n}},val:function(i,r){var f,u=this;if(0===arguments.length)return this.getVal();if(f=this.data(),f.length||(f=[]),!i&&0!==i)return this.opts.element.val(""),this.updateSelection([]),this.clearSearch(),r&&this.triggerChange({added:this.data(),removed:f}),void 0;if(this.setVal(i),this.select)this.opts.initSelection(this.select,this.bind(this.updateSelection)),r&&this.triggerChange(this.buildChangeDetails(f,this.data()));else{if(this.opts.initSelection===t)throw new Error("val() cannot be called if initSelection() is not defined");this.opts.initSelection(this.opts.element,function(t){var i=n.map(t,u.id);u.setVal(i);u.updateSelection(t);u.clearSearch();r&&u.triggerChange(u.buildChangeDetails(f,u.data()))})}this.clearSearch()},onSortStart:function(){if(this.select)throw new Error("Sorting of elements is not supported when attached to <select>. Attach to <input type='hidden'/> instead.");this.search.width(0);this.searchContainer.hide()},onSortEnd:function(){var t=[],i=this;this.searchContainer.show();this.searchContainer.appendTo(this.searchContainer.parent());this.resizeSearch();this.selection.find(".select2-search-choice").each(function(){t.push(i.opts.id(n(this).data("select2-data")))});this.setVal(t);this.triggerChange()},data:function(t,i){var r,u,f=this;return 0===arguments.length?this.selection.find(".select2-search-choice").map(function(){return n(this).data("select2-data")}).get():(u=this.data(),t||(t=[]),r=n.map(t,function(n){return f.opts.id(n)}),this.setVal(r),this.updateSelection(t),this.clearSearch(),i&&this.triggerChange(this.buildChangeDetails(u,this.data())),void 0)}});n.fn.select2=function(){var r,u,e,o,s,i=Array.prototype.slice.call(arguments,0),c=["val","destroy","opened","open","close","focus","isFocused","container","dropdown","onSortStart","onSortEnd","enable","disable","readonly","positionDropdown","data","search"],l=["opened","isFocused","container","dropdown"],a=["val","data"],h={search:"externalSearch"};return this.each(function(){if(0===i.length||"object"==typeof i[0])r=0===i.length?{}:n.extend({},i[0]),r.element=n(this),"select"===r.element.get(0).tagName.toLowerCase()?s=r.element.prop("multiple"):(s=r.multiple||!1,"tags"in r&&(r.multiple=s=!0)),u=s?new w:new p,u.init(r);else{if("string"!=typeof i[0])throw"Invalid arguments to select2 plugin: "+i;if(f(i[0],c)<0)throw"Unknown method: "+i[0];if(o=t,u=n(this).data("select2"),u===t)return;if(e=i[0],"container"===e?o=u.container:"dropdown"===e?o=u.dropdown:(h[e]&&(e=h[e]),o=u[e].apply(u,i.slice(1))),f(i[0],l)>=0||f(i[0],a)&&1==i.length)return!1}}),o===t?this:o};n.fn.select2.defaults={width:"copy",loadMorePadding:0,closeOnSelect:!0,openOnEnter:!0,containerCss:{},dropdownCss:{},containerCssClass:"",dropdownCssClass:"",formatResult:function(n,t,i,r){var u=[];return tt(n.text,i.term,u,r),u.join("")},formatSelection:function(n,i,r){return n?r(n.text):t},sortResults:function(n){return n},formatResultCssClass:function(){return t},formatSelectionCssClass:function(){return t},formatNoMatches:function(){return"No matches found"},formatInputTooShort:function(n,t){var i=t-n.length;return"Please enter "+i+" more character"+(1==i?"":"s")},formatInputTooLong:function(n,t){var i=n.length-t;return"Please delete "+i+" character"+(1==i?"":"s")},formatSelectionTooBig:function(n){return"You can only select "+n+" item"+(1==n?"":"s")},formatLoadMore:function(){return"Loading more results..."},formatSearching:function(){return"Searching..."},minimumResultsForSearch:0,minimumInputLength:0,maximumInputLength:null,maximumSelectionSize:0,id:function(n){return n.id},matcher:function(n,t){return h(""+t).toUpperCase().indexOf(h(""+n).toUpperCase())>=0},separator:",",tokenSeparators:[],tokenizer:wt,escapeMarkup:it,blurOnChange:!1,selectOnBlur:!1,adaptContainerCssClass:function(n){return n},adaptDropdownCssClass:function(){return null},nextSearchTerm:function(){return t}};n.fn.select2.ajaxDefaults={transport:n.ajax,params:{type:"GET",cache:!1,dataType:"json"}};window.Select2={query:{ajax:rt,local:ut,tags:ft},util:{debounce:nt,markMatch:tt,escapeMarkup:it,stripDiacritics:h},"class":{abstract:l,single:p,multi:w}}}}(jQuery),function(n){"use strict";function k(n){var t={},i;return n.selectionStart===undefined?(n.focus(),i=document.selection.createRange(),t.length=i.text.length,i.moveStart("character",-n.value.length),t.end=i.text.length,t.start=t.end-t.length):(t.start=n.selectionStart,t.end=n.selectionEnd,t.length=t.end-t.start),t}function u(n,t,i){if(n.selectionStart===undefined){n.focus();var r=n.createTextRange();r.collapse(!0);r.moveEnd("character",i);r.moveStart("character",t);r.select()}else n.selectionStart=t,n.selectionEnd=i}function d(t,i){n.each(i,function(n,r){typeof r=="function"?i[n]=r(t,i,n):typeof t.autoNumeric[r]=="function"&&(i[n]=t.autoNumeric[r](t,i,n))})}function e(n,t){typeof n[t]=="string"&&(n[t]*=1)}function v(n,t){var i,r,f,o,u,s;return d(n,t),t.oEvent=null,t.tagList=["B","CAPTION","CITE","CODE","DD","DEL","DIV","DFN","DT","EM","H1","H2","H3","H4","H5","H6","INS","KDB","LABEL","LI","OUTPUT","P","Q","S","SAMPLE","SPAN","STRONG","TD","TH","U","VAR"],i=t.vMax.toString().split("."),r=!t.vMin&&t.vMin!==0?[]:t.vMin.toString().split("."),e(t,"vMax"),e(t,"vMin"),e(t,"mDec"),t.mDec=t.mRound==="CHF"?"2":t.mDec,t.allowLeading=!0,t.aNeg=t.vMin<0?"-":"",i[0]=i[0].replace("-",""),r[0]=r[0].replace("-",""),t.mInt=Math.max(i[0].length,r[0].length,1),t.mDec===null&&(f=0,o=0,i[1]&&(f=i[1].length),r[1]&&(o=r[1].length),t.mDec=Math.max(f,o)),t.altDec===null&&t.mDec>0&&(t.aDec==="."&&t.aSep!==","?t.altDec=",":t.aDec===","&&t.aSep!=="."&&(t.altDec=".")),u=t.aNeg?"([-\\"+t.aNeg+"]?)":"(-?)",t.aNegRegAutoStrip=u,t.skipFirstAutoStrip=new RegExp(u+"[^-"+(t.aNeg?"\\"+t.aNeg:"")+"\\"+t.aDec+"\\d].*?(\\d|\\"+t.aDec+"\\d)"),t.skipLastAutoStrip=new RegExp("(\\d\\"+t.aDec+"?)[^\\"+t.aDec+"\\d]\\D*$"),s="-"+t.aNum+"\\"+t.aDec,t.allowedAutoStrip=new RegExp("[^"+s+"]","gi"),t.numRegAutoStrip=new RegExp(u+"(?:\\"+t.aDec+"?(\\d+\\"+t.aDec+"\\d+)|(\\d*(?:\\"+t.aDec+"\\d*)?))"),t}function t(n,t,i){var u,r,e,f;if(t.aSign)while(n.indexOf(t.aSign)>-1)n=n.replace(t.aSign,"");return n=n.replace(t.skipFirstAutoStrip,"$1$2"),n=n.replace(t.skipLastAutoStrip,"$1"),n=n.replace(t.allowedAutoStrip,""),t.altDec&&(n=n.replace(t.altDec,t.aDec)),u=n.match(t.numRegAutoStrip),n=u?[u[1],u[2],u[3]].join(""):"",(t.lZero==="allow"||t.lZero==="keep")&&i!=="strip"&&(r=[],e="",r=n.split(t.aDec),r[0].indexOf("-")!==-1&&(e="-",r[0]=r[0].replace("-","")),r[0].length>t.mInt&&r[0].charAt(0)==="0"&&(r[0]=r[0].slice(1)),n=e+r.join(t.aDec)),(i&&t.lZero==="deny"||i&&t.lZero==="allow"&&t.allowLeading===!1)&&(f="^"+t.aNegRegAutoStrip+"0*(\\d"+(i==="leading"?")":"|$)"),f=new RegExp(f),n=n.replace(f,"$1$2")),n}function f(n,t,i){return t=t.split(","),i==="set"||i==="focusout"?(n=n.replace("-",""),n=t[0]+n+t[1]):(i==="get"||i==="focusin"||i==="pageLoad")&&n.charAt(0)===t[0]&&(n=n.replace(t[0],"-"),n=n.replace(t[1],"")),n}function y(n,t,i){if(t&&i){var r=n.split(t);r[1]&&r[1].length>i&&(i>0?(r[1]=r[1].substring(0,i),n=r.join(t)):n=r[0])}return n}function s(n,t,i){return t&&t!=="."&&(n=n.replace(t,".")),i&&i!=="-"&&(n=n.replace(i,"-")),n.match(/\d/)||(n+="0"),n}function p(n,t){var r,i;return n&&(r=+n,r<1e-6&&r>-1?(n=+n,n<1e-6&&n>0&&(n=(n+10).toString(),n=n.substring(1)),n<0&&n>-1&&(n=(n-10).toString(),n="-"+n.substring(2)),n=n.toString()):(i=n.split("."),i[1]!==undefined&&(+i[1]==0?n=i[0]:(i[1]=i[1].replace(/0*$/,""),n=i.join("."))))),t.lZero==="keep"?n:n.replace(/^0*(\d)/,"$1")}function w(n,t,i){return i&&i!=="-"&&(n=n.replace("-",i)),t&&t!=="."&&(n=n.replace(".",t)),n}function h(i,r){i=t(i,r);i=y(i,r.aDec,r.mDec);i=s(i,r.aDec,r.aNeg);var u=+i;return r.oEvent==="set"&&(u<r.vMin||u>r.vMax)&&n.error("The value ("+u+") from the 'set' method falls outside of the vMin / vMax range"),u>=r.vMin&&u<=r.vMax}function o(n,t,i){return n===""||n===t.aNeg?t.wEmpty==="zero"?n+"0":t.wEmpty==="sign"||i?n+t.aSign:n:null}function c(n,i){var h,s,e,r,u,c;if(n=t(n,i),h=n.replace(",","."),s=o(n,i,!0),s!==null)return s;if(e="",e=i.dGroup===2?/(\d)((\d)(\d{2}?)+)$/:i.dGroup===4?/(\d)((\d{4}?)+)$/:/(\d)((\d{3}?)+)$/,r=n.split(i.aDec),i.altDec&&r.length===1&&(r=n.split(i.altDec)),u=r[0],i.aSep)while(e.test(u))u=u.replace(e,"$1"+i.aSep+"$2");return i.mDec!==0&&r.length>1?(r[1].length>i.mDec&&(r[1]=r[1].substring(0,i.mDec)),n=u+i.aDec+r[1]):n=u,i.aSign&&(c=n.indexOf(i.aNeg)!==-1,n=n.replace(i.aNeg,""),n=i.pSign==="p"?i.aSign+n:n+i.aSign,c&&(n=i.aNeg+n)),i.oEvent==="set"&&h<0&&i.nBracket!==null&&(n=f(n,i.nBracket,i.oEvent)),n}function l(n,t){var v;n=n===""?"0":n.toString();e(t,"mDec");t.mRound==="CHF"&&(n=(Math.round(n*20)/20).toString());var i="",r=0,f="",s=typeof t.aPad=="boolean"||t.aPad===null?t.aPad?t.mDec:0:+t.aPad,p=function(n){var t=s===0?/(\.(?:\d*[1-9])?)0*$/:s===1?/(\.\d(?:\d*[1-9])?)0*$/:new RegExp("(\\.\\d{"+s+"}(?:\\d*[1-9])?)0*$");return n=n.replace(t,"$1"),s===0&&(n=n.replace(/\.$/,"")),n};n.charAt(0)==="-"&&(f="-",n=n.replace("-",""));n.match(/^\d/)||(n="0"+n);f==="-"&&+n==0&&(f="");(+n>0&&t.lZero!=="keep"||n.length>0&&t.lZero==="allow")&&(n=n.replace(/^0*(\d)/,"$1"));var a=n.lastIndexOf("."),w=a===-1?n.length-1:a,h=n.length-1-w;if(h<=t.mDec){if(i=n,h<s)for(a===-1&&(i+="."),v="000000";h<s;)v=v.substring(0,s-h),i+=v,h+=v.length;else h>s?i=p(i):h===0&&s===0&&(i=i.replace(/\.$/,""));if(t.mRound!=="CHF")return+i==0?i:f+i;t.mRound==="CHF"&&(a=i.lastIndexOf("."),n=i)}var c=a+t.mDec,o=+n.charAt(c+1),u=n.substring(0,c+1).split(""),y=n.charAt(c)==="."?n.charAt(c-1)%2:n.charAt(c)%2,l=!0;if(y=y===0&&n.substring(c+2,n.length)>0?1:0,o>4&&t.mRound==="S"||o>4&&t.mRound==="A"&&f===""||o>5&&t.mRound==="A"&&f==="-"||o>5&&t.mRound==="s"||o>5&&t.mRound==="a"&&f===""||o>4&&t.mRound==="a"&&f==="-"||o>5&&t.mRound==="B"||o===5&&t.mRound==="B"&&y===1||o>0&&t.mRound==="C"&&f===""||o>0&&t.mRound==="F"&&f==="-"||o>0&&t.mRound==="U"||t.mRound==="CHF")for(r=u.length-1;r>=0;r-=1)if(u[r]!=="."){if(t.mRound==="CHF"&&u[r]<=2&&l){u[r]=0;l=!1;break}if(t.mRound==="CHF"&&u[r]<=7&&l){u[r]=5;l=!1;break}if(t.mRound==="CHF"&&l?(u[r]=10,l=!1):u[r]=+u[r]+1,u[r]<10)break;r>0&&(u[r]="0")}return u=u.slice(0,c+1),i=p(u.join("")),+i==0?i:f+i}function b(t,i){this.settings=i;this.that=t;this.$that=n(t);this.formatted=!1;this.settingsClone=v(this.$that,this.settings);this.value=t.value}function r(t){return typeof t=="string"&&(t=t.replace(/\[/g,"\\[").replace(/\]/g,"\\]"),t="#"+t.replace(/(:|\.)/g,"\\$1")),n(t)}function i(n,t,i){var r=n.data("autoNumeric"),u;return r||(r={},n.data("autoNumeric",r)),u=r.holder,(u===undefined&&t||i)&&(u=new b(n.get(0),t),r.holder=u),u}b.prototype={init:function(n){this.value=this.that.value;this.settingsClone=v(this.$that,this.settings);this.ctrlKey=n.ctrlKey;this.cmdKey=n.metaKey;this.shiftKey=n.shiftKey;this.selection=k(this.that);(n.type==="keydown"||n.type==="keyup")&&(this.kdCode=n.keyCode);this.which=n.which;this.processed=!1;this.formatted=!1},setSelection:function(n,t,i){n=Math.max(n,0);t=Math.min(t,this.that.value.length);this.selection={start:n,end:t,length:t-n};(i===undefined||i)&&u(this.that,n,t)},setPosition:function(n,t){this.setSelection(n,n,t)},getBeforeAfter:function(){var n=this.value,t=n.substring(0,this.selection.start),i=n.substring(this.selection.end,n.length);return[t,i]},getBeforeAfterStriped:function(){var n=this.getBeforeAfter();return n[0]=t(n[0],this.settingsClone),n[1]=t(n[1],this.settingsClone),n},normalizeParts:function(n,i){var r=this.settingsClone,e,u,f;return i=t(i,r),e=i.match(/^\d/)?!0:"leading",n=t(n,r,e),(n===""||n===r.aNeg)&&r.lZero==="deny"&&i>""&&(i=i.replace(/^0*(\d)/,"$1")),u=n+i,r.aDec&&(f=u.match(new RegExp("^"+r.aNegRegAutoStrip+"\\"+r.aDec)),f&&(n=n.replace(f[1],f[1]+"0"),u=n+i)),r.wEmpty==="zero"&&(u===r.aNeg||u==="")&&(n+="0"),[n,i]},setValueParts:function(n,t){var r=this.settingsClone,f=this.normalizeParts(n,t),i=f.join(""),u=f[0].length;return h(i,r)?(i=y(i,r.aDec,r.mDec),u>i.length&&(u=i.length),this.value=i,this.setPosition(u,!1),!0):!1},signPosition:function(){var n=this.settingsClone,u=n.aSign,i=this.that,t,f,r;return u?(t=u.length,n.pSign==="p")?(f=n.aNeg&&i.value&&i.value.charAt(0)===n.aNeg,f?[1,t+1]:[0,t]):(r=i.value.length,[r-t,r]):[1e3,-1]},expandSelectionOnSign:function(n){var t=this.signPosition(),i=this.selection;i.start<t[1]&&i.end>t[0]&&((i.start<t[0]||i.end>t[1])&&this.value.substring(Math.max(i.start,t[0]),Math.min(i.end,t[1])).match(/^\s*$/)?i.start<t[0]?this.setSelection(i.start,t[0],n):this.setSelection(t[1],i.end,n):this.setSelection(Math.min(i.start,t[0]),Math.max(i.end,t[1]),n))},checkPaste:function(){if(this.valuePartsBeforePaste!==undefined){var n=this.getBeforeAfter(),i=this.valuePartsBeforePaste;delete this.valuePartsBeforePaste;n[0]=n[0].substr(0,i[0].length)+t(n[0].substr(i[0].length),this.settingsClone);this.setValueParts(n[0],n[1])||(this.value=i.join(""),this.setPosition(i[0].length,!1))}},skipAllways:function(n){var t=this.kdCode,e=this.which,i=this.ctrlKey,r=this.cmdKey,s=this.shiftKey;if((i||r)&&n.type==="keyup"&&this.valuePartsBeforePaste!==undefined||s&&t===45)return this.checkPaste(),!1;if(t>=112&&t<=123||t>=91&&t<=93||t>=9&&t<=31||t<8&&(e===0||e===t)||t===144||t===145||t===45||(i||r)&&t===65)return!0;if((i||r)&&(t===67||t===86||t===88))return n.type==="keydown"&&this.expandSelectionOnSign(),(t===86||t===45)&&(n.type==="keydown"||n.type==="keypress"?this.valuePartsBeforePaste===undefined&&(this.valuePartsBeforePaste=this.getBeforeAfter()):this.checkPaste()),n.type==="keydown"||n.type==="keypress"||t===67;if(i||r)return!0;if(t===37||t===39){var f=this.settingsClone.aSep,u=this.selection.start,o=this.that.value;return n.type==="keydown"&&f&&!this.shiftKey&&(t===37&&o.charAt(u-2)===f?this.setPosition(u-1):t===39&&o.charAt(u+1)===f&&this.setPosition(u+1)),!0}return t>=34&&t<=40?!0:!1},processAllways:function(){var n;return this.kdCode===8||this.kdCode===46?(this.selection.length?(this.expandSelectionOnSign(!1),n=this.getBeforeAfterStriped(),this.setValueParts(n[0],n[1])):(n=this.getBeforeAfterStriped(),this.kdCode===8?n[0]=n[0].substring(0,n[0].length-1):n[1]=n[1].substring(1,n[1].length),this.setValueParts(n[0],n[1])),!0):!1},processKeypress:function(){var n=this.settingsClone,r=String.fromCharCode(this.which),u=this.getBeforeAfterStriped(),t=u[0],i=u[1];return r===n.aDec||n.altDec&&r===n.altDec||(r==="."||r===",")&&this.kdCode===110?!n.mDec||!n.aDec?!0:n.aNeg&&i.indexOf(n.aNeg)>-1?!0:t.indexOf(n.aDec)>-1?!0:i.indexOf(n.aDec)>0?!0:(i.indexOf(n.aDec)===0&&(i=i.substr(1)),this.setValueParts(t+n.aDec,i),!0):r==="-"||r==="+"?n.aNeg?(t===""&&i.indexOf(n.aNeg)>-1&&(t=n.aNeg,i=i.substring(1,i.length)),t=t.charAt(0)===n.aNeg?t.substring(1,t.length):r==="-"?n.aNeg+t:t,this.setValueParts(t,i),!0):!0:r>="0"&&r<="9"?(n.aNeg&&t===""&&i.indexOf(n.aNeg)>-1&&(t=n.aNeg,i=i.substring(1,i.length)),n.vMax<=0&&n.vMin<n.vMax&&this.value.indexOf(n.aNeg)===-1&&r!=="0"&&(t=n.aNeg+t),this.setValueParts(t+r,i),!0):!0},formatQuick:function(){var n=this.settingsClone,t=this.getBeforeAfterStriped(),o=this.value,f,s,i,r,e,u,l,h;if((n.aSep===""||n.aSep!==""&&o.indexOf(n.aSep)===-1)&&(n.aSign===""||n.aSign!==""&&o.indexOf(n.aSign)===-1)&&(f=[],s="",f=o.split(n.aDec),f[0].indexOf("-")>-1&&(s="-",f[0]=f[0].replace("-",""),t[0]=t[0].replace("-","")),f[0].length>n.mInt&&t[0].charAt(0)==="0"&&(t[0]=t[0].slice(1)),t[0]=s+t[0]),i=c(this.value,this.settingsClone),r=i.length,i){for(e=t[0].split(""),u=0,u;u<e.length;u+=1)e[u].match("\\d")||(e[u]="\\"+e[u]);l=new RegExp("^.*?"+e.join(".*?"));h=i.match(l);h?(r=h[0].length,(r===0&&i.charAt(0)!==n.aNeg||r===1&&i.charAt(0)===n.aNeg)&&n.aSign&&n.pSign==="p"&&(r=this.settingsClone.aSign.length+(i.charAt(0)==="-"?1:0))):n.aSign&&n.pSign==="s"&&(r-=n.aSign.length)}this.that.value=i;this.setPosition(r);this.formatted=!0}};var a={init:function(r){return this.each(function(){var e=n(this),a=e.data("autoNumeric"),b=e.data(),p,v,y;if(typeof a!="object"){if(p={aNum:"0123456789",aSep:",",dGroup:"3",aDec:".",altDec:null,aSign:"",pSign:"p",vMax:"9999999999999.99",vMin:"0.00",mDec:null,mRound:"S",aPad:!0,nBracket:null,wEmpty:"empty",lZero:"allow",aForm:!0,onSomeEvent:function(){}},a=n.extend({},p,b,r),a.aDec===a.aSep)return n.error("autoNumeric will not function properly when the decimal character aDec: '"+a.aDec+"' and thousand separator aSep: '"+a.aSep+"' are the same character"),this;e.data("autoNumeric",a)}else return this;if(a.runOnce=!1,v=i(e,a),n.inArray(e.prop("tagName"),a.tagList)===-1&&e.prop("tagName")!=="INPUT")return n.error("The <"+e.prop("tagName")+"> is not supported by autoNumeric()"),this;if(a.runOnce===!1&&a.aForm&&(e.is("input[type=text], input[type=hidden], input[type=tel], input:not([type])")&&(y=!0,e[0].value===""&&a.wEmpty==="empty"&&(e[0].value="",y=!1),e[0].value===""&&a.wEmpty==="sign"&&(e[0].value=a.aSign,y=!1),y&&e.autoNumeric("set",e.val())),n.inArray(e.prop("tagName"),a.tagList)!==-1&&e.text()!==""&&e.autoNumeric("set",e.text())),a.runOnce=!0,e.is("input[type=text], input[type=hidden], input[type=tel], input:not([type])")){e.on("keydown.autoNumeric",function(t){return(v=i(e),v.settings.aDec===v.settings.aSep)?(n.error("autoNumeric will not function properly when the decimal character aDec: '"+v.settings.aDec+"' and thousand separator aSep: '"+v.settings.aSep+"' are the same character"),this):v.that.readOnly?(v.processed=!0,!0):(v.init(t),v.settings.oEvent="keydown",v.skipAllways(t))?(v.processed=!0,!0):v.processAllways()?(v.processed=!0,v.formatQuick(),t.preventDefault(),!1):(v.formatted=!1,!0)});e.on("keypress.autoNumeric",function(n){var t=i(e),r=t.processed;if(t.init(n),t.settings.oEvent="keypress",t.skipAllways(n))return!0;if(r)return n.preventDefault(),!1;if(t.processAllways()||t.processKeypress())return t.formatQuick(),n.preventDefault(),!1;t.formatted=!1});e.on("keyup.autoNumeric",function(n){var t=i(e),r;if((t.init(n),t.settings.oEvent="keyup",r=t.skipAllways(n),t.kdCode=0,delete t.valuePartsBeforePaste,e[0].value===t.settings.aSign&&(t.settings.pSign==="s"?u(this,0,0):u(this,t.settings.aSign.length,t.settings.aSign.length)),r)||this.value==="")return!0;t.formatted||t.formatQuick()});e.on("focusin.autoNumeric",function(){var n=i(e),r,t;n.settingsClone.oEvent="focusin";n.settingsClone.nBracket!==null&&(r=e.val(),e.val(f(r,n.settingsClone.nBracket,n.settingsClone.oEvent)));n.inVal=e.val();t=o(n.inVal,n.settingsClone,!0);t!==null&&(e.val(t),n.settings.pSign==="s"?u(this,0,0):u(this,n.settings.aSign.length,n.settings.aSign.length))});e.on("focusout.autoNumeric",function(){var a=i(e),n=a.settingsClone,r=e.val(),y=r,v,u;a.settingsClone.oEvent="focusout";v="";n.lZero==="allow"&&(n.allowLeading=!1,v="leading");r!==""&&(r=t(r,n,v),o(r,n)===null&&h(r,n,e[0])?(r=s(r,n.aDec,n.aNeg),r=l(r,n),r=w(r,n.aDec,n.aNeg)):r="");u=o(r,n,!1);u===null&&(u=c(r,n));u!==y&&e.val(u);u!==a.inVal&&(e.change(),delete a.inVal);n.nBracket!==null&&e.autoNumeric("get")<0&&(a.settingsClone.oEvent="focusout",e.val(f(e.val(),n.nBracket,n.oEvent)))})}})},destroy:function(){return n(this).each(function(){var t=n(this);t.off(".autoNumeric");t.removeData("autoNumeric")})},update:function(t){return n(this).each(function(){var f=r(n(this)),u=f.data("autoNumeric"),e;return typeof u!="object"?(n.error("You must initialize autoNumeric('init', {options}) prior to calling the 'update' method"),this):(e=f.autoNumeric("get"),u=n.extend(u,t),i(f,u,!0),u.aDec===u.aSep)?(n.error("autoNumeric will not function properly when the decimal character aDec: '"+u.aDec+"' and thousand separator aSep: '"+u.aSep+"' are the same character"),this):(f.data("autoNumeric",u),f.val()!==""||f.text()!=="")?f.autoNumeric("set",e):void 0})},set:function(i){return n(this).each(function(){var o=r(n(this)),e=o.data("autoNumeric"),u=i.toString(),s=i.toString();return typeof e!="object"?(n.error("You must initialize autoNumeric('init', {options}) prior to calling the 'set' method"),this):(s!==o.attr("value")&&o.prop("tagName")==="INPUT"&&e.runOnce===!1&&(u=e.nBracket!==null?f(o.val(),e.nBracket,"pageLoad"):u,u=t(u,e)),(s===o.attr("value")||s===o.text())&&e.runOnce===!1&&(u=u.replace(",",".")),!n.isNumeric(+u))?"":(u=p(u,e),e.oEvent="set",u.toString(),u!==""&&(u=l(u,e)),u=w(u,e.aDec,e.aNeg),h(u,e)||(u=l("",e)),u=c(u,e),o.is("input[type=text], input[type=hidden], input[type=tel], input:not([type])"))?o.val(u):n.inArray(o.prop("tagName"),e.tagList)!==-1?o.text(u):(n.error("The <"+o.prop("tagName")+"> is not supported by autoNumeric()"),!1)})},get:function(){var e=r(n(this)),i=e.data("autoNumeric"),u;if(typeof i!="object")return n.error("You must initialize autoNumeric('init', {options}) prior to calling the 'get' method"),this;if(i.oEvent="get",u="",e.is("input[type=text], input[type=hidden], input[type=tel], input:not([type])"))u=e.eq(0).val();else if(n.inArray(e.prop("tagName"),i.tagList)!==-1)u=e.eq(0).text();else return n.error("The <"+e.prop("tagName")+"> is not supported by autoNumeric()"),!1;return u===""&&i.wEmpty==="empty"||u===i.aSign&&(i.wEmpty==="sign"||i.wEmpty==="empty")?"":(i.nBracket!==null&&u!==""&&(u=f(u,i.nBracket,i.oEvent)),(i.runOnce||i.aForm===!1)&&(u=t(u,i)),u=s(u,i.aDec,i.aNeg),+u==0&&i.lZero!=="keep"&&(u="0"),i.lZero==="keep")?u:p(u,i)},getString:function(){var f=!1,o=r(n(this)),s=o.serialize(),u=s.split("&"),i=0,t,e;for(i;i<u.length;i+=1)t=u[i].split("="),e=n('*[name="'+decodeURIComponent(t[0])+'"]').data("autoNumeric"),typeof e=="object"&&t[1]!==null&&n('*[name="'+decodeURIComponent(t[0])+'"]').data("autoNumeric")!==undefined&&(t[1]=n('input[name="'+decodeURIComponent(t[0])+'"]').autoNumeric("get"),u[i]=t.join("="),f=!0);return f===!0?u.join("&"):(n.error("You must initialize autoNumeric('init', {options}) prior to calling the 'getString' method"),this)},getArray:function(){var t=!1,u=r(n(this)),i=u.serializeArray();return(n.each(i,function(i,r){var u=n('*[name="'+decodeURIComponent(r.name)+'"]').data("autoNumeric");typeof u=="object"&&(r.value!==""&&n('*[name="'+decodeURIComponent(r.name)+'"]').data("autoNumeric")!==undefined&&(r.value=n('input[name="'+decodeURIComponent(r.name)+'"]').autoNumeric("get").toString()),t=!0)}),t===!0)?i:(n.error("You must initialize autoNumeric('init', {options}) prior to calling the 'getArray' method"),this)},getSettings:function(){var t=r(n(this));return t.eq(0).data("autoNumeric")}};n.fn.autoNumeric=function(t){if(a[t])return a[t].apply(this,Array.prototype.slice.call(arguments,1));if(typeof t=="object"||!t)return a.init.apply(this,arguments);n.error('Method "'+t+'" is not supported by autoNumeric()')}}(jQuery),function(){var n,i,u,f,e,o,t,s,r=[].slice,h={}.hasOwnProperty,c=function(n,t){function r(){this.constructor=n}for(var i in t)h.call(t,i)&&(n[i]=t[i]);return r.prototype=t.prototype,n.prototype=new r,n.__super__=t.prototype,n};t=function(){};i=function(){function n(){}return n.prototype.addEventListener=n.prototype.on,n.prototype.on=function(n,t){return this._callbacks=this._callbacks||{},this._callbacks[n]||(this._callbacks[n]=[]),this._callbacks[n].push(t),this},n.prototype.emit=function(){var i,u,t,f,n,e;if(f=arguments[0],i=2<=arguments.length?r.call(arguments,1):[],this._callbacks=this._callbacks||{},t=this._callbacks[f])for(n=0,e=t.length;e>n;n++)u=t[n],u.apply(this,i);return this},n.prototype.removeListener=n.prototype.off,n.prototype.removeAllListeners=n.prototype.off,n.prototype.removeEventListener=n.prototype.off,n.prototype.off=function(n,t){var f,i,r,u,e;if(!this._callbacks||0===arguments.length)return this._callbacks={},this;if(i=this._callbacks[n],!i)return this;if(1===arguments.length)return delete this._callbacks[n],this;for(r=u=0,e=i.length;e>u;r=++u)if(f=i[r],f===t){i.splice(r,1);break}return this},n}();n=function(n){function u(n,t){var r,i,e;if(this.element=n,this.version=u.version,this.defaultOptions.previewTemplate=this.defaultOptions.previewTemplate.replace(/\n*/g,""),this.clickableElements=[],this.listeners=[],this.files=[],"string"==typeof this.element&&(this.element=document.querySelector(this.element)),!this.element||null==this.element.nodeType)throw new Error("Invalid dropzone element.");if(this.element.dropzone)throw new Error("Dropzone already attached.");if(u.instances.push(this),this.element.dropzone=this,r=null!=(e=u.optionsForElement(this.element))?e:{},this.options=f({},this.defaultOptions,r,null!=t?t:{}),this.options.forceFallback||!u.isBrowserSupported())return this.options.fallback.call(this);if(null==this.options.url&&(this.options.url=this.element.getAttribute("action")),!this.options.url)throw new Error("No URL provided.");if(this.options.acceptedFiles&&this.options.acceptedMimeTypes)throw new Error("You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated.");this.options.acceptedMimeTypes&&(this.options.acceptedFiles=this.options.acceptedMimeTypes,delete this.options.acceptedMimeTypes);this.options.method=this.options.method.toUpperCase();(i=this.getExistingFallback())&&i.parentNode&&i.parentNode.removeChild(i);this.options.previewsContainer!==!1&&(this.previewsContainer=this.options.previewsContainer?u.getElement(this.options.previewsContainer,"previewsContainer"):this.element);this.options.clickable&&(this.clickableElements=this.options.clickable===!0?[this.element]:u.getElements(this.options.clickable,"clickable"));this.init()}var f,e;return c(u,n),u.prototype.Emitter=i,u.prototype.events=["drop","dragstart","dragend","dragenter","dragover","dragleave","addedfile","addedfiles","removedfile","thumbnail","error","errormultiple","processing","processingmultiple","uploadprogress","totaluploadprogress","sending","sendingmultiple","success","successmultiple","canceled","canceledmultiple","complete","completemultiple","reset","maxfilesexceeded","maxfilesreached","queuecomplete"],u.prototype.defaultOptions={url:null,method:"post",withCredentials:!1,parallelUploads:2,uploadMultiple:!1,maxFilesize:256,paramName:"file",createImageThumbnails:!0,maxThumbnailFilesize:10,thumbnailWidth:120,thumbnailHeight:120,filesizeBase:1e3,maxFiles:null,params:{},clickable:!0,ignoreHiddenFiles:!0,acceptedFiles:null,acceptedMimeTypes:null,autoProcessQueue:!0,autoQueue:!0,addRemoveLinks:!1,previewsContainer:null,hiddenInputContainer:"body",capture:null,dictDefaultMessage:"Drop files here to upload",dictFallbackMessage:"Your browser does not support drag'n'drop file uploads.",dictFallbackText:"Please use the fallback form below to upload your files like in the olden days.",dictFileTooBig:"File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",dictInvalidFileType:"You can't upload files of this type.",dictResponseError:"Server responded with {{statusCode}} code.",dictCancelUpload:"Cancel upload",dictCancelUploadConfirmation:"Are you sure you want to cancel this upload?",dictRemoveFile:"Remove file",dictRemoveFileConfirmation:null,dictMaxFilesExceeded:"You can not upload any more files.",accept:function(n,t){return t()},init:function(){return t},forceFallback:!1,fallback:function(){var i,t,n,r,e,f;for(this.element.className=""+this.element.className+" dz-browser-not-supported",f=this.element.getElementsByTagName("div"),r=0,e=f.length;e>r;r++)i=f[r],/(^| )dz-message($| )/.test(i.className)&&(t=i,i.className="dz-message");return t||(t=u.createElement('<div class="dz-message"><span><\/span><\/div>'),this.element.appendChild(t)),n=t.getElementsByTagName("span")[0],n&&(null!=n.textContent?n.textContent=this.options.dictFallbackMessage:null!=n.innerText&&(n.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(n){var t,i,r;return t={srcX:0,srcY:0,srcWidth:n.width,srcHeight:n.height},i=n.width/n.height,t.optWidth=this.options.thumbnailWidth,t.optHeight=this.options.thumbnailHeight,null==t.optWidth&&null==t.optHeight?(t.optWidth=t.srcWidth,t.optHeight=t.srcHeight):null==t.optWidth?t.optWidth=i*t.optHeight:null==t.optHeight&&(t.optHeight=1/i*t.optWidth),r=t.optWidth/t.optHeight,n.height<t.optHeight||n.width<t.optWidth?(t.trgHeight=t.srcHeight,t.trgWidth=t.srcWidth):i>r?(t.srcHeight=n.height,t.srcWidth=t.srcHeight*r):(t.srcWidth=n.width,t.srcHeight=t.srcWidth/r),t.srcX=(n.width-t.srcWidth)/2,t.srcY=(n.height-t.srcHeight)/2,t},drop:function(){return this.element.classList.remove("dz-drag-hover")},dragstart:t,dragend:function(){return this.element.classList.remove("dz-drag-hover")},dragenter:function(){return this.element.classList.add("dz-drag-hover")},dragover:function(){return this.element.classList.add("dz-drag-hover")},dragleave:function(){return this.element.classList.remove("dz-drag-hover")},paste:t,reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(n){var t,c,l,i,r,f,a,v,y,e,o,s,h;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer){for(n.previewElement=u.createElement(this.options.previewTemplate.trim()),n.previewTemplate=n.previewElement,this.previewsContainer.appendChild(n.previewElement),e=n.previewElement.querySelectorAll("[data-dz-name]"),i=0,a=e.length;a>i;i++)t=e[i],t.textContent=n.name;for(o=n.previewElement.querySelectorAll("[data-dz-size]"),r=0,v=o.length;v>r;r++)t=o[r],t.innerHTML=this.filesize(n.size);for(this.options.addRemoveLinks&&(n._removeLink=u.createElement('<a class="dz-remove" href="javascript:undefined;" data-dz-remove>'+this.options.dictRemoveFile+"<\/a>"),n.previewElement.appendChild(n._removeLink)),c=function(t){return function(i){return i.preventDefault(),i.stopPropagation(),n.status===u.UPLOADING?u.confirm(t.options.dictCancelUploadConfirmation,function(){return t.removeFile(n)}):t.options.dictRemoveFileConfirmation?u.confirm(t.options.dictRemoveFileConfirmation,function(){return t.removeFile(n)}):t.removeFile(n)}}(this),s=n.previewElement.querySelectorAll("[data-dz-remove]"),h=[],f=0,y=s.length;y>f;f++)l=s[f],h.push(l.addEventListener("click",c));return h}},removedfile:function(n){var t;return n.previewElement&&null!=(t=n.previewElement)&&t.parentNode.removeChild(n.previewElement),this._updateMaxFilesReachedClass()},thumbnail:function(n,t){var r,i,f,u;if(n.previewElement){for(n.previewElement.classList.remove("dz-file-preview"),u=n.previewElement.querySelectorAll("[data-dz-thumbnail]"),i=0,f=u.length;f>i;i++)r=u[i],r.alt=n.name,r.src=t;return setTimeout(function(){return function(){return n.previewElement.classList.add("dz-image-preview")}}(this),1)}},error:function(n,t){var f,i,e,r,u;if(n.previewElement){for(n.previewElement.classList.add("dz-error"),"String"!=typeof t&&t.error&&(t=t.error),r=n.previewElement.querySelectorAll("[data-dz-errormessage]"),u=[],i=0,e=r.length;e>i;i++)f=r[i],u.push(f.textContent=t);return u}},errormultiple:t,processing:function(n){if(n.previewElement&&(n.previewElement.classList.add("dz-processing"),n._removeLink))return n._removeLink.textContent=this.options.dictCancelUpload},processingmultiple:t,uploadprogress:function(n,t){var i,r,e,u,f;if(n.previewElement){for(u=n.previewElement.querySelectorAll("[data-dz-uploadprogress]"),f=[],r=0,e=u.length;e>r;r++)i=u[r],f.push("PROGRESS"===i.nodeName?i.value=t:i.style.width=""+t+"%");return f}},totaluploadprogress:t,sending:t,sendingmultiple:t,success:function(n){if(n.previewElement)return n.previewElement.classList.add("dz-success")},successmultiple:t,canceled:function(n){return this.emit("error",n,"Upload canceled.")},canceledmultiple:t,complete:function(n){return n._removeLink&&(n._removeLink.textContent=this.options.dictRemoveFile),n.previewElement?n.previewElement.classList.add("dz-complete"):void 0},completemultiple:t,maxfilesexceeded:t,maxfilesreached:t,queuecomplete:t,addedfiles:t,previewTemplate:'<div class="dz-preview dz-file-preview">\n  <div class="dz-image"><img data-dz-thumbnail /><\/div>\n  <div class="dz-details">\n    <div class="dz-size"><span data-dz-size><\/span><\/div>\n    <div class="dz-filename"><span data-dz-name><\/span><\/div>\n  <\/div>\n  <div class="dz-progress"><span class="dz-upload" data-dz-uploadprogress><\/span><\/div>\n  <div class="dz-error-message"><span data-dz-errormessage><\/span><\/div>\n  <div class="dz-success-mark">\n    <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">\n      <title>Check<\/title>\n      <defs><\/defs>\n      <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">\n        <path d="M23.5,31.8431458 L17.5852419,25.9283877 C16.0248253,24.3679711 13.4910294,24.366835 11.9289322,25.9289322 C10.3700136,27.4878508 10.3665912,30.0234455 11.9283877,31.5852419 L20.4147581,40.0716123 C20.5133999,40.1702541 20.6159315,40.2626649 20.7218615,40.3488435 C22.2835669,41.8725651 24.794234,41.8626202 26.3461564,40.3106978 L43.3106978,23.3461564 C44.8771021,21.7797521 44.8758057,19.2483887 43.3137085,17.6862915 C41.7547899,16.1273729 39.2176035,16.1255422 37.6538436,17.6893022 L23.5,31.8431458 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" id="Oval-2" stroke-opacity="0.198794158" stroke="#747474" fill-opacity="0.816519475" fill="#FFFFFF" sketch:type="MSShapeGroup"><\/path>\n      <\/g>\n    <\/svg>\n  <\/div>\n  <div class="dz-error-mark">\n    <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">\n      <title>Error<\/title>\n      <defs><\/defs>\n      <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">\n        <g id="Check-+-Oval-2" sketch:type="MSLayerGroup" stroke="#747474" stroke-opacity="0.198794158" fill="#FFFFFF" fill-opacity="0.816519475">\n          <path d="M32.6568542,29 L38.3106978,23.3461564 C39.8771021,21.7797521 39.8758057,19.2483887 38.3137085,17.6862915 C36.7547899,16.1273729 34.2176035,16.1255422 32.6538436,17.6893022 L27,23.3431458 L21.3461564,17.6893022 C19.7823965,16.1255422 17.2452101,16.1273729 15.6862915,17.6862915 C14.1241943,19.2483887 14.1228979,21.7797521 15.6893022,23.3461564 L21.3431458,29 L15.6893022,34.6538436 C14.1228979,36.2202479 14.1241943,38.7516113 15.6862915,40.3137085 C17.2452101,41.8726271 19.7823965,41.8744578 21.3461564,40.3106978 L27,34.6568542 L32.6538436,40.3106978 C34.2176035,41.8744578 36.7547899,41.8726271 38.3137085,40.3137085 C39.8758057,38.7516113 39.8771021,36.2202479 38.3106978,34.6538436 L32.6568542,29 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" id="Oval-2" sketch:type="MSShapeGroup"><\/path>\n        <\/g>\n      <\/g>\n    <\/svg>\n  <\/div>\n<\/div>'},f=function(){var t,i,u,f,e,n,o;for(f=arguments[0],u=2<=arguments.length?r.call(arguments,1):[],n=0,o=u.length;o>n;n++){i=u[n];for(t in i)e=i[t],f[t]=e}return f},u.prototype.getAcceptedFiles=function(){var t,n,u,i,r;for(i=this.files,r=[],n=0,u=i.length;u>n;n++)t=i[n],t.accepted&&r.push(t);return r},u.prototype.getRejectedFiles=function(){var t,n,u,i,r;for(i=this.files,r=[],n=0,u=i.length;u>n;n++)t=i[n],t.accepted||r.push(t);return r},u.prototype.getFilesWithStatus=function(n){var i,t,f,r,u;for(r=this.files,u=[],t=0,f=r.length;f>t;t++)i=r[t],i.status===n&&u.push(i);return u},u.prototype.getQueuedFiles=function(){return this.getFilesWithStatus(u.QUEUED)},u.prototype.getUploadingFiles=function(){return this.getFilesWithStatus(u.UPLOADING)},u.prototype.getAddedFiles=function(){return this.getFilesWithStatus(u.ADDED)},u.prototype.getActiveFiles=function(){var n,t,f,i,r;for(i=this.files,r=[],t=0,f=i.length;f>t;t++)n=i[t],(n.status===u.UPLOADING||n.status===u.QUEUED)&&r.push(n);return r},u.prototype.init=function(){var i,n,f,t,e,o,r;for("form"===this.element.tagName&&this.element.setAttribute("enctype","multipart/form-data"),this.element.classList.contains("dropzone")&&!this.element.querySelector(".dz-message")&&this.element.appendChild(u.createElement('<div class="dz-default dz-message"><span>'+this.options.dictDefaultMessage+"<\/span><\/div>")),this.clickableElements.length&&(f=function(n){return function(){return n.hiddenFileInput&&n.hiddenFileInput.parentNode.removeChild(n.hiddenFileInput),n.hiddenFileInput=document.createElement("input"),n.hiddenFileInput.setAttribute("type","file"),(null==n.options.maxFiles||n.options.maxFiles>1)&&n.hiddenFileInput.setAttribute("multiple","multiple"),n.hiddenFileInput.className="dz-hidden-input",null!=n.options.acceptedFiles&&n.hiddenFileInput.setAttribute("accept",n.options.acceptedFiles),null!=n.options.capture&&n.hiddenFileInput.setAttribute("capture",n.options.capture),n.hiddenFileInput.style.visibility="hidden",n.hiddenFileInput.style.position="absolute",n.hiddenFileInput.style.top="0",n.hiddenFileInput.style.left="0",n.hiddenFileInput.style.height="0",n.hiddenFileInput.style.width="0",document.querySelector(n.options.hiddenInputContainer).appendChild(n.hiddenFileInput),n.hiddenFileInput.addEventListener("change",function(){var r,t,i,u;if(t=n.hiddenFileInput.files,t.length)for(i=0,u=t.length;u>i;i++)r=t[i],n.addFile(r);return n.emit("addedfiles",t),f()})}}(this))(),this.URL=null!=(o=window.URL)?o:window.webkitURL,r=this.events,t=0,e=r.length;e>t;t++)i=r[t],this.on(i,this.options[i]);return this.on("uploadprogress",function(n){return function(){return n.updateTotalUploadProgress()}}(this)),this.on("removedfile",function(n){return function(){return n.updateTotalUploadProgress()}}(this)),this.on("canceled",function(n){return function(t){return n.emit("complete",t)}}(this)),this.on("complete",function(n){return function(){if(0===n.getAddedFiles().length&&0===n.getUploadingFiles().length&&0===n.getQueuedFiles().length)return setTimeout(function(){return n.emit("queuecomplete")},0)}}(this)),n=function(n){return n.stopPropagation(),n.preventDefault?n.preventDefault():n.returnValue=!1},this.listeners=[{element:this.element,events:{dragstart:function(n){return function(t){return n.emit("dragstart",t)}}(this),dragenter:function(t){return function(i){return n(i),t.emit("dragenter",i)}}(this),dragover:function(t){return function(i){var r;try{r=i.dataTransfer.effectAllowed}catch(u){}return i.dataTransfer.dropEffect="move"===r||"linkMove"===r?"move":"copy",n(i),t.emit("dragover",i)}}(this),dragleave:function(n){return function(t){return n.emit("dragleave",t)}}(this),drop:function(t){return function(i){return n(i),t.drop(i)}}(this),dragend:function(n){return function(t){return n.emit("dragend",t)}}(this)}}],this.clickableElements.forEach(function(n){return function(t){return n.listeners.push({element:t,events:{click:function(i){return(t!==n.element||i.target===n.element||u.elementInside(i.target,n.element.querySelector(".dz-message")))&&n.hiddenFileInput.click(),!0}}})}}(this)),this.enable(),this.options.init.call(this)},u.prototype.destroy=function(){var n;return this.disable(),this.removeAllFiles(!0),(null!=(n=this.hiddenFileInput)?n.parentNode:void 0)&&(this.hiddenFileInput.parentNode.removeChild(this.hiddenFileInput),this.hiddenFileInput=null),delete this.element.dropzone,u.instances.splice(u.instances.indexOf(this),1)},u.prototype.updateTotalUploadProgress=function(){var e,r,n,t,u,i,o,f;if(t=0,n=0,e=this.getActiveFiles(),e.length){for(f=this.getActiveFiles(),i=0,o=f.length;o>i;i++)r=f[i],t+=r.upload.bytesSent,n+=r.upload.total;u=100*t/n}else u=100;return this.emit("totaluploadprogress",u,n,t)},u.prototype._getParamName=function(n){return"function"==typeof this.options.paramName?this.options.paramName(n):""+this.options.paramName+(this.options.uploadMultiple?"["+n+"]":"")},u.prototype.getFallbackForm=function(){var r,i,n,t;return(r=this.getExistingFallback())?r:(n='<div class="dz-fallback">',this.options.dictFallbackText&&(n+="<p>"+this.options.dictFallbackText+"<\/p>"),n+='<input type="file" name="'+this._getParamName(0)+'" '+(this.options.uploadMultiple?'multiple="multiple"':void 0)+' /><input type="submit" value="Upload!"><\/div>',i=u.createElement(n),"FORM"!==this.element.tagName?(t=u.createElement('<form action="'+this.options.url+'" enctype="multipart/form-data" method="'+this.options.method+'"><\/form>'),t.appendChild(i)):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),null!=t?t:i)},u.prototype.getExistingFallback=function(){var i,r,u,n,f,t;for(r=function(n){for(var i,t=0,r=n.length;r>t;t++)if(i=n[t],/(^| )fallback($| )/.test(i.className))return i},t=["div","form"],n=0,f=t.length;f>n;n++)if(u=t[n],i=r(this.element.getElementsByTagName(u)))return i},u.prototype.setupEventListeners=function(){var t,i,f,n,e,r,u;for(r=this.listeners,u=[],n=0,e=r.length;e>n;n++)t=r[n],u.push(function(){var n,r;n=t.events;r=[];for(i in n)f=n[i],r.push(t.element.addEventListener(i,f,!1));return r}());return u},u.prototype.removeEventListeners=function(){var t,i,f,n,e,r,u;for(r=this.listeners,u=[],n=0,e=r.length;e>n;n++)t=r[n],u.push(function(){var n,r;n=t.events;r=[];for(i in n)f=n[i],r.push(t.element.removeEventListener(i,f,!1));return r}());return u},u.prototype.disable=function(){var r,n,u,t,i;for(this.clickableElements.forEach(function(n){return n.classList.remove("dz-clickable")}),this.removeEventListeners(),t=this.files,i=[],n=0,u=t.length;u>n;n++)r=t[n],i.push(this.cancelUpload(r));return i},u.prototype.enable=function(){return this.clickableElements.forEach(function(n){return n.classList.add("dz-clickable")}),this.setupEventListeners()},u.prototype.filesize=function(n){var e,t,i,r,o,u,f,s;if(i=0,r="b",n>0){for(u=["TB","GB","MB","KB","b"],t=f=0,s=u.length;s>f;t=++f)if(o=u[t],e=Math.pow(this.options.filesizeBase,4-t)/10,n>=e){i=n/Math.pow(this.options.filesizeBase,4-t);r=o;break}i=Math.round(10*i)/10}return"<strong>"+i+"<\/strong> "+r},u.prototype._updateMaxFilesReachedClass=function(){return null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")},u.prototype.drop=function(n){var i,t;n.dataTransfer&&(this.emit("drop",n),i=n.dataTransfer.files,this.emit("addedfiles",i),i.length&&(t=n.dataTransfer.items,t&&t.length&&null!=t[0].webkitGetAsEntry?this._addFilesFromItems(t):this.handleFiles(i)))},u.prototype.paste=function(n){var t,i;if(null!=(null!=n&&null!=(i=n.clipboardData)?i.items:void 0))return this.emit("paste",n),t=n.clipboardData.items,t.length?this._addFilesFromItems(t):void 0},u.prototype.handleFiles=function(n){var r,t,u,i;for(i=[],t=0,u=n.length;u>t;t++)r=n[t],i.push(this.addFile(r));return i},u.prototype._addFilesFromItems=function(n){var i,t,r,f,u;for(u=[],r=0,f=n.length;f>r;r++)t=n[r],u.push(null!=t.webkitGetAsEntry&&(i=t.webkitGetAsEntry())?i.isFile?this.addFile(t.getAsFile()):i.isDirectory?this._addFilesFromDirectory(i,i.name):void 0:null!=t.getAsFile?null==t.kind||"file"===t.kind?this.addFile(t.getAsFile()):void 0:void 0);return u},u.prototype._addFilesFromDirectory=function(n,t){var i,r;return i=n.createReader(),r=function(n){return function(i){for(var r,u=0,f=i.length;f>u;u++)r=i[u],r.isFile?r.file(function(i){if(!n.options.ignoreHiddenFiles||"."!==i.name.substring(0,1))return(i.fullPath=""+t+"/"+i.name,n.addFile(i))}):r.isDirectory&&n._addFilesFromDirectory(r,""+t+"/"+r.name)}}(this),i.readEntries(r,function(n){if("undefined"!=typeof console&&null!==console&&"function"==typeof console.log)return console.log(n)})},u.prototype.accept=function(n,t){return n.size>1048576*this.options.maxFilesize?t(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(n.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):u.isValidFile(n,this.options.acceptedFiles)?null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(t(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",n)):this.options.accept.call(this,n,t):t(this.options.dictInvalidFileType)},u.prototype.addFile=function(n){return n.upload={progress:0,total:n.size,bytesSent:0},this.files.push(n),n.status=u.ADDED,this.emit("addedfile",n),this._enqueueThumbnail(n),this.accept(n,function(t){return function(i){return i?(n.accepted=!1,t._errorProcessing([n],i)):(n.accepted=!0,t.options.autoQueue&&t.enqueueFile(n)),t._updateMaxFilesReachedClass()}}(this))},u.prototype.enqueueFiles=function(n){for(var i,t=0,r=n.length;r>t;t++)i=n[t],this.enqueueFile(i);return null},u.prototype.enqueueFile=function(n){if(n.status!==u.ADDED||n.accepted!==!0)throw new Error("This file can't be queued because it has already been processed or was rejected.");return n.status=u.QUEUED,this.options.autoProcessQueue?setTimeout(function(n){return function(){return n.processQueue()}}(this),0):void 0},u.prototype._thumbnailQueue=[],u.prototype._processingThumbnail=!1,u.prototype._enqueueThumbnail=function(n){if(this.options.createImageThumbnails&&n.type.match(/image.*/)&&n.size<=1048576*this.options.maxThumbnailFilesize)return(this._thumbnailQueue.push(n),setTimeout(function(n){return function(){return n._processThumbnailQueue()}}(this),0))},u.prototype._processThumbnailQueue=function(){if(!this._processingThumbnail&&0!==this._thumbnailQueue.length)return(this._processingThumbnail=!0,this.createThumbnail(this._thumbnailQueue.shift(),function(n){return function(){return n._processingThumbnail=!1,n._processThumbnailQueue()}}(this)))},u.prototype.removeFile=function(n){return n.status===u.UPLOADING&&this.cancelUpload(n),this.files=s(this.files,n),this.emit("removedfile",n),0===this.files.length?this.emit("reset"):void 0},u.prototype.removeAllFiles=function(n){var i,t,f,r;for(null==n&&(n=!1),r=this.files.slice(),t=0,f=r.length;f>t;t++)i=r[t],(i.status!==u.UPLOADING||n)&&this.removeFile(i);return null},u.prototype.createThumbnail=function(n,t){var i;return i=new FileReader,i.onload=function(r){return function(){return"image/svg+xml"===n.type?(r.emit("thumbnail",n,i.result),void(null!=t&&t())):r.createThumbnailFromUrl(n,i.result,t)}}(this),i.readAsDataURL(n)},u.prototype.createThumbnailFromUrl=function(n,t,i,r){var u;return u=document.createElement("img"),r&&(u.crossOrigin=r),u.onload=function(t){return function(){var f,e,r,s,h,c,l,a;return n.width=u.width,n.height=u.height,r=t.options.resize.call(t,n),null==r.trgWidth&&(r.trgWidth=r.optWidth),null==r.trgHeight&&(r.trgHeight=r.optHeight),f=document.createElement("canvas"),e=f.getContext("2d"),f.width=r.trgWidth,f.height=r.trgHeight,o(e,u,null!=(h=r.srcX)?h:0,null!=(c=r.srcY)?c:0,r.srcWidth,r.srcHeight,null!=(l=r.trgX)?l:0,null!=(a=r.trgY)?a:0,r.trgWidth,r.trgHeight),s=f.toDataURL("image/png"),t.emit("thumbnail",n,s),null!=i?i():void 0}}(this),null!=i&&(u.onerror=i),u.src=t},u.prototype.processQueue=function(){var r,t,i,n;if(t=this.options.parallelUploads,i=this.getUploadingFiles().length,r=i,!(i>=t)&&(n=this.getQueuedFiles(),n.length>0)){if(this.options.uploadMultiple)return this.processFiles(n.slice(0,t-i));for(;t>r;){if(!n.length)return;this.processFile(n.shift());r++}}},u.prototype.processFile=function(n){return this.processFiles([n])},u.prototype.processFiles=function(n){for(var t,i=0,r=n.length;r>i;i++)t=n[i],t.processing=!0,t.status=u.UPLOADING,this.emit("processing",t);return this.options.uploadMultiple&&this.emit("processingmultiple",n),this.uploadFiles(n)},u.prototype._getFilesWithXhr=function(n){var t;return function(){var i,f,r,u;for(r=this.files,u=[],i=0,f=r.length;f>i;i++)t=r[i],t.xhr===n&&u.push(t);return u}.call(this)},u.prototype.cancelUpload=function(n){var i,t,r,f,e,o,s;if(n.status===u.UPLOADING){for(t=this._getFilesWithXhr(n.xhr),r=0,e=t.length;e>r;r++)i=t[r],i.status=u.CANCELED;for(n.xhr.abort(),f=0,o=t.length;o>f;f++)i=t[f],this.emit("canceled",i);this.options.uploadMultiple&&this.emit("canceledmultiple",t)}else((s=n.status)===u.ADDED||s===u.QUEUED)&&(n.status=u.CANCELED,this.emit("canceled",n),this.options.uploadMultiple&&this.emit("canceledmultiple",[n]));if(this.options.autoProcessQueue)return this.processQueue()},e=function(){var t,n;return n=arguments[0],t=2<=arguments.length?r.call(arguments,1):[],"function"==typeof n?n.apply(this,t):n},u.prototype.uploadFile=function(n){return this.uploadFiles([n])},u.prototype.uploadFiles=function(n){var i,r,b,k,d,a,h,o,g,nt,tt,ot,it,st,s,rt,ht,ct,t,v,y,p,w,lt,at,vt,yt,c,pt,ut,ft,et,wt,l;for(t=new XMLHttpRequest,v=0,lt=n.length;lt>v;v++)i=n[v],i.xhr=t;ot=e(this.options.method,n);ht=e(this.options.url,n);t.open(ot,ht,!0);t.withCredentials=!!this.options.withCredentials;s=null;b=function(r){return function(){var u,e,f;for(f=[],u=0,e=n.length;e>u;u++)i=n[u],f.push(r._errorProcessing(n,s||r.options.dictResponseError.replace("{{statusCode}}",t.status),t));return f}}(this);rt=function(t){return function(r){var s,u,f,e,o,c,l,a,h;if(null!=r)for(u=100*r.loaded/r.total,f=0,c=n.length;c>f;f++)i=n[f],i.upload={progress:u,total:r.total,bytesSent:r.loaded};else{for(s=!0,u=100,e=0,l=n.length;l>e;e++)i=n[e],(100!==i.upload.progress||i.upload.bytesSent!==i.upload.total)&&(s=!1),i.upload.progress=u,i.upload.bytesSent=i.upload.total;if(s)return}for(h=[],o=0,a=n.length;a>o;o++)i=n[o],h.push(t.emit("uploadprogress",i,u,i.upload.bytesSent));return h}}(this);t.onload=function(i){return function(r){var f;if(n[0].status!==u.CANCELED&&4===t.readyState){if(s=t.responseText,t.getResponseHeader("content-type")&&~t.getResponseHeader("content-type").indexOf("application/json"))try{s=JSON.parse(s)}catch(e){r=e;s="Invalid JSON response from server."}return rt(),200<=(f=t.status)&&300>f?i._finished(n,s,r):b()}}}(this);t.onerror=function(){return function(){if(n[0].status!==u.CANCELED)return b()}}(this);st=null!=(pt=t.upload)?pt:t;st.onprogress=rt;a={Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"};this.options.headers&&f(a,this.options.headers);for(k in a)d=a[k],d&&t.setRequestHeader(k,d);if(r=new FormData,this.options.params){ut=this.options.params;for(tt in ut)ct=ut[tt],r.append(tt,ct)}for(y=0,at=n.length;at>y;y++)i=n[y],this.emit("sending",i,t,r);if(this.options.uploadMultiple&&this.emit("sendingmultiple",n,t,r),"FORM"===this.element.tagName)for(ft=this.element.querySelectorAll("input, textarea, select, button"),p=0,vt=ft.length;vt>p;p++)if(o=ft[p],g=o.getAttribute("name"),nt=o.getAttribute("type"),"SELECT"===o.tagName&&o.hasAttribute("multiple"))for(et=o.options,w=0,yt=et.length;yt>w;w++)it=et[w],it.selected&&r.append(g,it.value);else(!nt||"checkbox"!==(wt=nt.toLowerCase())&&"radio"!==wt||o.checked)&&r.append(g,o.value);for(h=c=0,l=n.length-1;l>=0?l>=c:c>=l;h=l>=0?++c:--c)r.append(this._getParamName(h),n[h],n[h].name);return this.submitRequest(t,r,n)},u.prototype.submitRequest=function(n,t){return n.send(t)},u.prototype._finished=function(n,t,i){for(var r,f=0,e=n.length;e>f;f++)r=n[f],r.status=u.SUCCESS,this.emit("success",r,t,i),this.emit("complete",r);return this.options.uploadMultiple&&(this.emit("successmultiple",n,t,i),this.emit("completemultiple",n)),this.options.autoProcessQueue?this.processQueue():void 0},u.prototype._errorProcessing=function(n,t,i){for(var r,f=0,e=n.length;e>f;f++)r=n[f],r.status=u.ERROR,this.emit("error",r,t,i),this.emit("complete",r);return this.options.uploadMultiple&&(this.emit("errormultiple",n,t,i),this.emit("completemultiple",n)),this.options.autoProcessQueue?this.processQueue():void 0},u}(i);n.version="4.2.0";n.options={};n.optionsForElement=function(t){if(t.getAttribute("id"))return n.options[u(t.getAttribute("id"))]};n.instances=[];n.forElement=function(n){if("string"==typeof n&&(n=document.querySelector(n)),null==(null!=n?n.dropzone:void 0))throw new Error("No Dropzone found for given element. This is probably because you're trying to access it before Dropzone had the time to initialize. Use the `init` option to setup any additional observers on your Dropzone.");return n.dropzone};n.autoDiscover=!0;n.discover=function(){var r,u,t,i,e,f;for(document.querySelectorAll?t=document.querySelectorAll(".dropzone"):(t=[],r=function(n){var r,i,f,u;for(u=[],i=0,f=n.length;f>i;i++)r=n[i],u.push(/(^| )dropzone($| )/.test(r.className)?t.push(r):void 0);return u},r(document.getElementsByTagName("div")),r(document.getElementsByTagName("form"))),f=[],i=0,e=t.length;e>i;i++)u=t[i],f.push(n.optionsForElement(u)!==!1?new n(u):void 0);return f};n.blacklistedBrowsers=[/opera.*Macintosh.*version\/12/i];n.isBrowserSupported=function(){var t,u,i,f,r;if(t=!0,window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if("classList"in document.createElement("a"))for(r=n.blacklistedBrowsers,i=0,f=r.length;f>i;i++)u=r[i],u.test(navigator.userAgent)&&(t=!1);else t=!1;else t=!1;return t};s=function(n,t){var r,i,f,u;for(u=[],i=0,f=n.length;f>i;i++)r=n[i],r!==t&&u.push(r);return u};u=function(n){return n.replace(/[\-_](\w)/g,function(n){return n.charAt(1).toUpperCase()})};n.createElement=function(n){var t;return t=document.createElement("div"),t.innerHTML=n,t.childNodes[0]};n.elementInside=function(n,t){if(n===t)return!0;for(;n=n.parentNode;)if(n===t)return!0;return!1};n.getElement=function(n,t){var i;if("string"==typeof n?i=document.querySelector(n):null!=n.nodeType&&(i=n),null==i)throw new Error("Invalid `"+t+"` option provided. Please provide a CSS selector or a plain HTML element.");return i};n.getElements=function(n,t){var h,r,i,u,f,o,s,e;if(n instanceof Array){i=[];try{for(u=0,o=n.length;o>u;u++)r=n[u],i.push(this.getElement(r,t))}catch(c){h=c;i=null}}else if("string"==typeof n)for(i=[],e=document.querySelectorAll(n),f=0,s=e.length;s>f;f++)r=e[f],i.push(r);else null!=n.nodeType&&(i=[n]);if(null==i||!i.length)throw new Error("Invalid `"+t+"` option provided. Please provide a CSS selector, a plain HTML element or a list of those.");return i};n.confirm=function(n,t,i){return window.confirm(n)?t():null!=i?i():void 0};n.isValidFile=function(n,t){var f,u,i,r,e;if(!t)return!0;for(t=t.split(","),u=n.type,f=u.replace(/\/.*$/,""),r=0,e=t.length;e>r;r++)if(i=t[r],i=i.trim(),"."===i.charAt(0)){if(-1!==n.name.toLowerCase().indexOf(i.toLowerCase(),n.name.length-i.length))return!0}else if(/\/\*$/.test(i)){if(f===i.replace(/\/.*$/,""))return!0}else if(u===i)return!0;return!1};"undefined"!=typeof jQuery&&null!==jQuery&&(jQuery.fn.dropzone=function(t){return this.each(function(){return new n(this,t)})});"undefined"!=typeof module&&null!==module?module.exports=n:window.Dropzone=n;n.ADDED="added";n.QUEUED="queued";n.ACCEPTED=n.QUEUED;n.UPLOADING="uploading";n.PROCESSING=n.UPLOADING;n.CANCELED="canceled";n.ERROR="error";n.SUCCESS="success";e=function(n){var s,r,f,h,e,i,c,t,o,u;for(c=n.naturalWidth,i=n.naturalHeight,r=document.createElement("canvas"),r.width=1,r.height=i,f=r.getContext("2d"),f.drawImage(n,0,0),h=f.getImageData(0,0,1,i).data,u=0,e=i,t=i;t>u;)s=h[4*(t-1)+3],0===s?e=t:u=t,t=e+u>>1;return o=t/i,0===o?1:o};o=function(n,t,i,r,u,f,o,s,h,c){var l;return l=e(t),n.drawImage(t,i,r,u,f,o,s,h,c/l)};f=function(n,t){var f,i,e,r,o,u,c,s,h;if(e=!1,h=!0,i=n.document,s=i.documentElement,f=i.addEventListener?"addEventListener":"attachEvent",c=i.addEventListener?"removeEventListener":"detachEvent",u=i.addEventListener?"":"on",r=function(f){if("readystatechange"!==f.type||"complete"===i.readyState)return(("load"===f.type?n:i)[c](u+f.type,r,!1),!e&&(e=!0)?t.call(n,f.type||f):void 0)},o=function(){var n;try{s.doScroll("left")}catch(t){return n=t,void setTimeout(o,50)}return r("poll")},"complete"!==i.readyState){if(i.createEventObject&&s.doScroll){try{h=!n.frameElement}catch(l){}h&&o()}return i[f](u+"DOMContentLoaded",r,!1),i[f](u+"readystatechange",r,!1),n[f](u+"load",r,!1)}};n._autoDiscoverFunction=function(){if(n.autoDiscover)return n.discover()};f(window,n._autoDiscoverFunction)}.call(this);!function(n){"use strict";var t=function(t,i){this.options=n.extend({},n.fn.editableform.defaults,i);this.$div=n(t);this.options.scope||(this.options.scope=this)};t.prototype={constructor:t,initInput:function(){this.input=this.options.input;this.value=this.input.str2value(this.options.value);this.input.prerender()},initTemplate:function(){this.$form=n(n.fn.editableform.template)},initButtons:function(){var t=this.$form.find(".editable-buttons");t.append(n.fn.editableform.buttons);"bottom"===this.options.showbuttons&&t.addClass("editable-buttons-bottom")},render:function(){this.$loading=n(n.fn.editableform.loading);this.$div.empty().append(this.$loading);this.initTemplate();this.options.showbuttons?this.initButtons():this.$form.find(".editable-buttons").remove();this.showLoading();this.isSaving=!1;this.$div.triggerHandler("rendering");this.initInput();this.$form.find("div.editable-input").append(this.input.$tpl);this.$div.append(this.$form);n.when(this.input.render()).then(n.proxy(function(){if(this.options.showbuttons||this.input.autosubmit(),this.$form.find(".editable-cancel").click(n.proxy(this.cancel,this)),this.input.error)this.error(this.input.error),this.$form.find(".editable-submit").attr("disabled",!0),this.input.$input.attr("disabled",!0),this.$form.submit(function(n){n.preventDefault()});else{this.error(!1);this.input.$input.removeAttr("disabled");this.$form.find(".editable-submit").removeAttr("disabled");var t=null===this.value||void 0===this.value||""===this.value?this.options.defaultValue:this.value;this.input.value2input(t);this.$form.submit(n.proxy(this.submit,this))}this.$div.triggerHandler("rendered");this.showForm();this.input.postrender&&this.input.postrender()},this))},cancel:function(){this.$div.triggerHandler("cancel")},showLoading:function(){var n,t;this.$form?(n=this.$form.outerWidth(),t=this.$form.outerHeight(),n&&this.$loading.width(n),t&&this.$loading.height(t),this.$form.hide()):(n=this.$loading.parent().width(),n&&this.$loading.width(n));this.$loading.show()},showForm:function(n){this.$loading.hide();this.$form.show();n!==!1&&this.input.activate();this.$div.triggerHandler("show")},error:function(t){var i,u=this.$form.find(".control-group"),f=this.$form.find(".editable-error-block"),r;if(t===!1)u.removeClass(n.fn.editableform.errorGroupClass),f.removeClass(n.fn.editableform.errorBlockClass).empty().hide();else{if(t){for(i=t.split("\n"),r=0;r<i.length;r++)i[r]=n("<div>").text(i[r]).html();t=i.join("<br>")}u.addClass(n.fn.editableform.errorGroupClass);f.addClass(n.fn.editableform.errorBlockClass).html(t).show()}},submit:function(t){var u,i,r;if(t.stopPropagation(),t.preventDefault(),i=this.input.input2value(),u=this.validate(i))return this.error(u),this.showForm(),void 0;if(!this.options.savenochange&&this.input.value2str(i)==this.input.value2str(this.value))return this.$div.triggerHandler("nochange"),void 0;r=this.input.value2submit(i);this.isSaving=!0;n.when(this.save(r)).done(n.proxy(function(n){this.isSaving=!1;var t="function"==typeof this.options.success?this.options.success.call(this.options.scope,n,i):null;return t===!1?(this.error(!1),this.showForm(!1),void 0):"string"==typeof t?(this.error(t),this.showForm(),void 0):(t&&"object"==typeof t&&t.hasOwnProperty("newValue")&&(i=t.newValue),this.error(!1),this.value=i,this.$div.triggerHandler("save",{newValue:i,submitValue:r,response:n}),void 0)},this)).fail(n.proxy(function(n){this.isSaving=!1;var t;t="function"==typeof this.options.error?this.options.error.call(this.options.scope,n,i):"string"==typeof n?n:n.responseText||n.statusText||"Unknown error!";this.error(t);this.showForm()},this))},save:function(t){this.options.pk=n.fn.editableutils.tryParseJson(this.options.pk,!0);var i,r="function"==typeof this.options.pk?this.options.pk.call(this.options.scope):this.options.pk,u=!!("function"==typeof this.options.url||this.options.url&&("always"===this.options.send||"auto"===this.options.send&&null!==r&&void 0!==r));if(u)return(this.showLoading(),i={name:this.options.name||"",value:t,pk:r},"function"==typeof this.options.params?i=this.options.params.call(this.options.scope,i):(this.options.params=n.fn.editableutils.tryParseJson(this.options.params,!0),n.extend(i,this.options.params)),"function"==typeof this.options.url?this.options.url.call(this.options.scope,i):n.ajax(n.extend({url:this.options.url,data:i,type:"POST"},this.options.ajaxOptions)))},validate:function(n){return void 0===n&&(n=this.value),"function"==typeof this.options.validate?this.options.validate.call(this.options.scope,n):void 0},option:function(n,t){n in this.options&&(this.options[n]=t);"value"===n&&this.setValue(t)},setValue:function(n,t){this.value=t?this.input.str2value(n):n;this.$form&&this.$form.is(":visible")&&this.input.value2input(this.value)}};n.fn.editableform=function(i){var r=arguments;return this.each(function(){var f=n(this),u=f.data("editableform"),e="object"==typeof i&&i;u||f.data("editableform",u=new t(this,e));"string"==typeof i&&u[i].apply(u,Array.prototype.slice.call(r,1))})};n.fn.editableform.Constructor=t;n.fn.editableform.defaults={type:"text",url:null,params:null,name:null,pk:null,value:null,defaultValue:null,send:"auto",validate:null,success:null,error:null,ajaxOptions:null,showbuttons:!0,scope:null,savenochange:!1};n.fn.editableform.template='<form class="form-inline editableform"><div class="control-group"><div><div class="editable-input"><\/div><div class="editable-buttons"><\/div><\/div><div class="editable-error-block"><\/div><\/div><\/form>';n.fn.editableform.loading='<div class="editableform-loading"><\/div>';n.fn.editableform.buttons='<button type="submit" class="editable-submit">ok<\/button><button type="button" class="editable-cancel">cancel<\/button>';n.fn.editableform.errorGroupClass=null;n.fn.editableform.errorBlockClass="editable-error";n.fn.editableform.engine="jquery"}(window.jQuery),function(n){"use strict";n.fn.editableutils={inherit:function(n,t){var i=function(){};i.prototype=t.prototype;n.prototype=new i;n.prototype.constructor=n;n.superclass=t.prototype},setCursorPosition:function(n,t){if(n.setSelectionRange)n.setSelectionRange(t,t);else if(n.createTextRange){var i=n.createTextRange();i.collapse(!0);i.moveEnd("character",t);i.moveStart("character",t);i.select()}},tryParseJson:function(n,t){if("string"==typeof n&&n.length&&n.match(/^[\{\[].*[\}\]]$/))if(t)try{n=new Function("return "+n)()}catch(i){}finally{return n}else n=new Function("return "+n)();return n},sliceObj:function(t,i,r){var u,o,f={},e;if(!n.isArray(i)||!i.length)return f;for(e=0;e<i.length;e++)u=i[e],t.hasOwnProperty(u)&&(f[u]=t[u]),r!==!0&&(o=u.toLowerCase(),t.hasOwnProperty(o)&&(f[u]=t[o]));return f},getConfigData:function(t){var i={};return n.each(t.data(),function(n,t){("object"!=typeof t||t&&"object"==typeof t&&(t.constructor===Object||t.constructor===Array))&&(i[n]=t)}),i},objectKeys:function(n){if(Object.keys)return Object.keys(n);if(n!==Object(n))throw new TypeError("Object.keys called on a non-object");var t,i=[];for(t in n)Object.prototype.hasOwnProperty.call(n,t)&&i.push(t);return i},escape:function(t){return n("<div>").text(t).html()},itemsByValue:function(t,i,r){var f;if(!i||null===t)return[];"function"!=typeof r&&(f=r||"value",r=function(n){return n[f]});var e=n.isArray(t),u=[],o=this;return n.each(i,function(i,f){if(f.children)u=u.concat(o.itemsByValue(t,f.children,r));else if(e)n.grep(t,function(n){return n==(f&&"object"==typeof f?r(f):f)}).length&&u.push(f);else{var s=f&&"object"==typeof f?r(f):f;t==s&&u.push(f)}}),u},createInput:function(t){var r,u,f,i=t.type;return"date"===i&&("inline"===t.mode?n.fn.editabletypes.datefield?i="datefield":n.fn.editabletypes.dateuifield&&(i="dateuifield"):n.fn.editabletypes.date?i="date":n.fn.editabletypes.dateui&&(i="dateui"),"date"!==i||n.fn.editabletypes.date||(i="combodate")),"datetime"===i&&"inline"===t.mode&&(i="datetimefield"),"wysihtml5"!==i||n.fn.editabletypes[i]||(i="textarea"),"function"==typeof n.fn.editabletypes[i]?(r=n.fn.editabletypes[i],u=this.sliceObj(t,this.objectKeys(r.defaults)),f=new r(u)):(n.error("Unknown type: "+i),!1)},supportsTransitions:function(){var u=document.body||document.documentElement,i=u.style,n="transition",r=["Moz","Webkit","Khtml","O","ms"],t;if("string"==typeof i[n])return!0;for(n=n.charAt(0).toUpperCase()+n.substr(1),t=0;t<r.length;t++)if("string"==typeof i[r[t]+n])return!0;return!1}}}(window.jQuery),function(n){"use strict";var t=function(n,t){this.init(n,t)},i=function(n,t){this.init(n,t)};t.prototype={containerName:null,containerDataName:null,innerCss:null,containerClass:"editable-container editable-popup",defaults:{},init:function(i,r){this.$element=n(i);this.options=n.extend({},n.fn.editableContainer.defaults,r);this.splitOptions();this.formOptions.scope=this.$element[0];this.initContainer();this.delayedHide=!1;this.$element.on("destroyed",n.proxy(function(){this.destroy()},this));n(document).data("editable-handlers-attached")||(n(document).on("keyup.editable",function(t){27===t.which&&n(".editable-open").editableContainer("hide")}),n(document).on("click.editable",function(i){var r,u=n(i.target),f=[".editable-container",".ui-datepicker-header",".datepicker",".modal-backdrop",".bootstrap-wysihtml5-insert-image-modal",".bootstrap-wysihtml5-insert-link-modal"];if(n.contains(document.documentElement,i.target)&&!u.is(document)){for(r=0;r<f.length;r++)if(u.is(f[r])||u.parents(f[r]).length)return;t.prototype.closeOthers(i.target)}}),n(document).data("editable-handlers-attached",!0))},splitOptions:function(){if(this.containerOptions={},this.formOptions={},!n.fn[this.containerName])throw new Error(this.containerName+" not found. Have you included corresponding js file?");for(var t in this.options)t in this.defaults?this.containerOptions[t]=this.options[t]:this.formOptions[t]=this.options[t]},tip:function(){return this.container()?this.container().$tip:null},container:function(){var n;return this.containerDataName&&(n=this.$element.data(this.containerDataName))?n:n=this.$element.data(this.containerName)},call:function(){this.$element[this.containerName].apply(this.$element,arguments)},initContainer:function(){this.call(this.containerOptions)},renderForm:function(){this.$form.editableform(this.formOptions).on({save:n.proxy(this.save,this),nochange:n.proxy(function(){this.hide("nochange")},this),cancel:n.proxy(function(){this.hide("cancel")},this),show:n.proxy(function(){this.delayedHide?(this.hide(this.delayedHide.reason),this.delayedHide=!1):this.setPosition()},this),rendering:n.proxy(this.setPosition,this),resize:n.proxy(this.setPosition,this),rendered:n.proxy(function(){this.$element.triggerHandler("shown",n(this.options.scope).data("editable"))},this)}).editableform("render")},show:function(t){this.$element.addClass("editable-open");t!==!1&&this.closeOthers(this.$element[0]);this.innerShow();this.tip().addClass(this.containerClass);this.$form;this.$form=n("<div>");this.tip().is(this.innerCss)?this.tip().append(this.$form):this.tip().find(this.innerCss).append(this.$form);this.renderForm()},hide:function(n){if(this.tip()&&this.tip().is(":visible")&&this.$element.hasClass("editable-open")){if(this.$form.data("editableform").isSaving)return this.delayedHide={reason:n},void 0;this.delayedHide=!1;this.$element.removeClass("editable-open");this.innerHide();this.$element.triggerHandler("hidden",n||"manual")}},innerShow:function(){},innerHide:function(){},toggle:function(n){this.container()&&this.tip()&&this.tip().is(":visible")?this.hide():this.show(n)},setPosition:function(){},save:function(n,t){this.$element.triggerHandler("save",t);this.hide("save")},option:function(n,t){this.options[n]=t;n in this.containerOptions?(this.containerOptions[n]=t,this.setContainerOption(n,t)):(this.formOptions[n]=t,this.$form&&this.$form.editableform("option",n,t))},setContainerOption:function(n,t){this.call("option",n,t)},destroy:function(){this.hide();this.innerDestroy();this.$element.off("destroyed");this.$element.removeData("editableContainer")},innerDestroy:function(){},closeOthers:function(t){n(".editable-open").each(function(i,r){if(r!==t&&!n(r).find(t).length){var u=n(r),f=u.data("editableContainer");f&&("cancel"===f.options.onblur?u.data("editableContainer").hide("onblur"):"submit"===f.options.onblur&&u.data("editableContainer").tip().find("form").submit())}})},activate:function(){this.tip&&this.tip().is(":visible")&&this.$form&&this.$form.data("editableform").input.activate()}};n.fn.editableContainer=function(r){var u=arguments;return this.each(function(){var e=n(this),o="editableContainer",f=e.data(o),s="object"==typeof r&&r,h="inline"===s.mode?i:t;f||e.data(o,f=new h(this,s));"string"==typeof r&&f[r].apply(f,Array.prototype.slice.call(u,1))})};n.fn.editableContainer.Popup=t;n.fn.editableContainer.Inline=i;n.fn.editableContainer.defaults={value:null,placement:"top",autohide:!0,onblur:"cancel",anim:!1,mode:"popup"};jQuery.event.special.destroyed={remove:function(n){n.handler&&n.handler()}}}(window.jQuery),function(n){"use strict";n.extend(n.fn.editableContainer.Inline.prototype,n.fn.editableContainer.Popup.prototype,{containerName:"editableform",innerCss:".editable-inline",containerClass:"editable-container editable-inline",initContainer:function(){this.$tip=n("<span><\/span>");this.options.anim||(this.options.anim=0)},splitOptions:function(){this.containerOptions={};this.formOptions=this.options},tip:function(){return this.$tip},innerShow:function(){this.$element.hide();this.tip().insertAfter(this.$element).show()},innerHide:function(){this.$tip.hide(this.options.anim,n.proxy(function(){this.$element.show();this.innerDestroy()},this))},innerDestroy:function(){this.tip()&&this.tip().empty().remove()}})}(window.jQuery),function(n){"use strict";var t=function(t,i){this.$element=n(t);this.options=n.extend({},n.fn.editable.defaults,i,n.fn.editableutils.getConfigData(this.$element));this.options.selector?this.initLive():this.init();this.options.highlight&&!n.fn.editableutils.supportsTransitions()&&(this.options.highlight=!1)};t.prototype={constructor:t,init:function(){var t,i=!1;if(this.options.name=this.options.name||this.$element.attr("id"),this.options.scope=this.$element[0],this.input=n.fn.editableutils.createInput(this.options),this.input){switch(void 0===this.options.value||null===this.options.value?(this.value=this.input.html2value(n.trim(this.$element.html())),i=!0):(this.options.value=n.fn.editableutils.tryParseJson(this.options.value,!0),this.value="string"==typeof this.options.value?this.input.str2value(this.options.value):this.options.value),this.$element.addClass("editable"),"textarea"===this.input.type&&this.$element.addClass("editable-pre-wrapped"),"manual"!==this.options.toggle?(this.$element.addClass("editable-click"),this.$element.on(this.options.toggle+".editable",n.proxy(function(n){if(this.options.disabled||n.preventDefault(),"mouseenter"===this.options.toggle)this.show();else{var t="click"!==this.options.toggle;this.toggle(t)}},this))):this.$element.attr("tabindex",-1),"function"==typeof this.options.display&&(this.options.autotext="always"),this.options.autotext){case"always":t=!0;break;case"auto":t=!n.trim(this.$element.text()).length&&null!==this.value&&void 0!==this.value&&!i;break;default:t=!1}n.when(t?this.render():!0).then(n.proxy(function(){this.options.disabled?this.disable():this.enable();this.$element.triggerHandler("init",this)},this))}},initLive:function(){var t=this.options.selector;this.options.selector=!1;this.options.autotext="never";this.$element.on(this.options.toggle+".editable",t,n.proxy(function(t){var i=n(t.target);i.data("editable")||(i.hasClass(this.options.emptyclass)&&i.empty(),i.editable(this.options).trigger(t))},this))},render:function(n){if(this.options.display!==!1)return this.input.value2htmlFinal?this.input.value2html(this.value,this.$element[0],this.options.display,n):"function"==typeof this.options.display?this.options.display.call(this.$element[0],this.value,n):this.input.value2html(this.value,this.$element[0])},enable:function(){this.options.disabled=!1;this.$element.removeClass("editable-disabled");this.handleEmpty(this.isEmpty);"manual"!==this.options.toggle&&"-1"===this.$element.attr("tabindex")&&this.$element.removeAttr("tabindex")},disable:function(){this.options.disabled=!0;this.hide();this.$element.addClass("editable-disabled");this.handleEmpty(this.isEmpty);this.$element.attr("tabindex",-1)},toggleDisabled:function(){this.options.disabled?this.enable():this.disable()},option:function(t,i){return t&&"object"==typeof t?(n.each(t,n.proxy(function(t,i){this.option(n.trim(t),i)},this)),void 0):(this.options[t]=i,"disabled"===t?i?this.disable():this.enable():("value"===t&&this.setValue(i),this.container&&this.container.option(t,i),this.input.option&&this.input.option(t,i),void 0))},handleEmpty:function(t){this.options.display!==!1&&(this.isEmpty=void 0!==t?t:"function"==typeof this.input.isEmpty?this.input.isEmpty(this.$element):""===n.trim(this.$element.html()),this.options.disabled?this.isEmpty&&(this.$element.empty(),this.options.emptyclass&&this.$element.removeClass(this.options.emptyclass)):this.isEmpty?(this.$element.html(this.options.emptytext),this.options.emptyclass&&this.$element.addClass(this.options.emptyclass)):this.options.emptyclass&&this.$element.removeClass(this.options.emptyclass))},show:function(t){if(!this.options.disabled){if(this.container){if(this.container.tip().is(":visible"))return}else{var i=n.extend({},this.options,{value:this.value,input:this.input});this.$element.editableContainer(i);this.$element.on("save.internal",n.proxy(this.save,this));this.container=this.$element.data("editableContainer")}this.container.show(t)}},hide:function(){this.container&&this.container.hide()},toggle:function(n){this.container&&this.container.tip().is(":visible")?this.hide():this.show(n)},save:function(n,t){var i,r,u;this.options.unsavedclass&&(i=!1,i=i||"function"==typeof this.options.url,i=i||this.options.display===!1,i=i||void 0!==t.response,i=i||this.options.savenochange&&this.input.value2str(this.value)!==this.input.value2str(t.newValue),i?this.$element.removeClass(this.options.unsavedclass):this.$element.addClass(this.options.unsavedclass));this.options.highlight&&(r=this.$element,u=r.css("background-color"),r.css("background-color",this.options.highlight),setTimeout(function(){"transparent"===u&&(u="");r.css("background-color",u);r.addClass("editable-bg-transition");setTimeout(function(){r.removeClass("editable-bg-transition")},1700)},10));this.setValue(t.newValue,!1,t.response)},validate:function(){if("function"==typeof this.options.validate)return this.options.validate.call(this,this.value)},setValue:function(t,i,r){this.value=i?this.input.str2value(t):t;this.container&&this.container.option("value",this.value);n.when(this.render(r)).then(n.proxy(function(){this.handleEmpty()},this))},activate:function(){this.container&&this.container.activate()},destroy:function(){this.disable();this.container&&this.container.destroy();this.input.destroy();"manual"!==this.options.toggle&&(this.$element.removeClass("editable-click"),this.$element.off(this.options.toggle+".editable"));this.$element.off("save.internal");this.$element.removeClass("editable editable-open editable-disabled");this.$element.removeData("editable")}};n.fn.editable=function(i){var u={},h=arguments,f="editable";switch(i){case"validate":return this.each(function(){var i,r=n(this),t=r.data(f);t&&(i=t.validate())&&(u[t.options.name]=i)}),u;case"getValue":return 2===arguments.length&&arguments[1]===!0?u=this.eq(0).data(f).value:this.each(function(){var i=n(this),t=i.data(f);t&&void 0!==t.value&&null!==t.value&&(u[t.options.name]=t.input.value2submit(t.value))}),u;case"submit":var e,r=arguments[1]||{},o=this,s=this.editable("validate");return n.isEmptyObject(s)?(e=this.editable("getValue"),r.data&&n.extend(e,r.data),n.ajax(n.extend({url:r.url,data:e,type:"POST"},r.ajaxOptions)).success(function(n){"function"==typeof r.success&&r.success.call(o,n,r)}).error(function(){"function"==typeof r.error&&r.error.apply(o,arguments)})):"function"==typeof r.error&&r.error.call(o,s),this}return this.each(function(){var e=n(this),r=e.data(f),u="object"==typeof i&&i;return u&&u.selector?(r=new t(this,u),void 0):(r||e.data(f,r=new t(this,u)),"string"==typeof i&&r[i].apply(r,Array.prototype.slice.call(h,1)),void 0)})};n.fn.editable.defaults={type:"text",disabled:!1,toggle:"click",emptytext:"Empty",autotext:"auto",value:null,display:null,emptyclass:"editable-empty",unsavedclass:"editable-unsaved",selector:null,highlight:"#FFFF80"}}(window.jQuery),function(n){"use strict";n.fn.editabletypes={};var t=function(){};t.prototype={init:function(t,i,r){this.type=t;this.options=n.extend({},r,i)},prerender:function(){this.$tpl=n(this.options.tpl);this.$input=this.$tpl;this.$clear=null;this.error=null},render:function(){},value2html:function(t,i){n(i)[this.options.escape?"text":"html"](n.trim(t))},html2value:function(t){return n("<div>").html(t).text()},value2str:function(n){return n},str2value:function(n){return n},value2submit:function(n){return n},value2input:function(n){this.$input.val(n)},input2value:function(){return this.$input.val()},activate:function(){this.$input.is(":visible")&&this.$input.focus()},clear:function(){this.$input.val(null)},escape:function(t){return n("<div>").text(t).html()},autosubmit:function(){},destroy:function(){},setClass:function(){this.options.inputclass&&this.$input.addClass(this.options.inputclass)},setAttr:function(n){void 0!==this.options[n]&&null!==this.options[n]&&this.$input.attr(n,this.options[n])},option:function(n,t){this.options[n]=t}};t.defaults={tpl:"",inputclass:null,escape:!0,scope:null,showbuttons:!0};n.extend(n.fn.editabletypes,{abstractinput:t})}(window.jQuery),function(n){"use strict";var t=function(){};n.fn.editableutils.inherit(t,n.fn.editabletypes.abstractinput);n.extend(t.prototype,{render:function(){var t=n.Deferred();return this.error=null,this.onSourceReady(function(){this.renderList();t.resolve()},function(){this.error=this.options.sourceError;t.resolve()}),t.promise()},html2value:function(){return null},value2html:function(t,i,r,u){var f=n.Deferred(),e=function(){"function"==typeof r?r.call(i,t,this.sourceData,u):this.value2htmlFinal(t,i);f.resolve()};return null===t?e.call(this):this.onSourceReady(e,function(){f.resolve()}),f.promise()},onSourceReady:function(t,i){var u,r,f,e;if(n.isFunction(this.options.source)?(u=this.options.source.call(this.options.scope),this.sourceData=null):u=this.options.source,this.options.sourceCache&&n.isArray(this.sourceData))return t.call(this),void 0;try{u=n.fn.editableutils.tryParseJson(u,!1)}catch(o){return i.call(this),void 0}if("string"==typeof u){if(this.options.sourceCache){if(f=u,n(document).data(f)||n(document).data(f,{}),r=n(document).data(f),r.loading===!1&&r.sourceData)return this.sourceData=r.sourceData,this.doPrepend(),t.call(this),void 0;if(r.loading===!0)return r.callbacks.push(n.proxy(function(){this.sourceData=r.sourceData;this.doPrepend();t.call(this)},this)),r.err_callbacks.push(n.proxy(i,this)),void 0;r.loading=!0;r.callbacks=[];r.err_callbacks=[]}e=n.extend({url:u,type:"get",cache:!1,dataType:"json",success:n.proxy(function(u){r&&(r.loading=!1);this.sourceData=this.makeArray(u);n.isArray(this.sourceData)?(r&&(r.sourceData=this.sourceData,n.each(r.callbacks,function(){this.call()})),this.doPrepend(),t.call(this)):(i.call(this),r&&n.each(r.err_callbacks,function(){this.call()}))},this),error:n.proxy(function(){i.call(this);r&&(r.loading=!1,n.each(r.err_callbacks,function(){this.call()}))},this)},this.options.sourceOptions);n.ajax(e)}else this.sourceData=this.makeArray(u),n.isArray(this.sourceData)?(this.doPrepend(),t.call(this)):i.call(this)},doPrepend:function(){null!==this.options.prepend&&void 0!==this.options.prepend&&(n.isArray(this.prependData)||(n.isFunction(this.options.prepend)&&(this.options.prepend=this.options.prepend.call(this.options.scope)),this.options.prepend=n.fn.editableutils.tryParseJson(this.options.prepend,!0),"string"==typeof this.options.prepend&&(this.options.prepend={"":this.options.prepend}),this.prependData=this.makeArray(this.options.prepend)),n.isArray(this.prependData)&&n.isArray(this.sourceData)&&(this.sourceData=this.prependData.concat(this.sourceData)))},renderList:function(){},value2htmlFinal:function(){},makeArray:function(t){var u,e,i,o,r=[],f;if(!t||"string"==typeof t)return null;if(n.isArray(t))for(o=function(n,t){return e={value:n,text:t},u++>=2?!1:void 0},f=0;f<t.length;f++)i=t[f],"object"==typeof i?(u=0,n.each(i,o),1===u?r.push(e):u>1&&(i.children&&(i.children=this.makeArray(i.children)),r.push(i))):r.push({value:i,text:i});else n.each(t,function(n,t){r.push({value:n,text:t})});return r},option:function(n,t){this.options[n]=t;"source"===n&&(this.sourceData=null);"prepend"===n&&(this.prependData=null)}});t.defaults=n.extend({},n.fn.editabletypes.abstractinput.defaults,{source:null,prepend:!1,sourceError:"Error when loading list",sourceCache:!0,sourceOptions:null});n.fn.editabletypes.list=t}(window.jQuery),function(n){"use strict";var t=function(n){this.init("text",n,t.defaults)};n.fn.editableutils.inherit(t,n.fn.editabletypes.abstractinput);n.extend(t.prototype,{render:function(){this.renderClear();this.setClass();this.setAttr("placeholder")},activate:function(){this.$input.is(":visible")&&(this.$input.focus(),n.fn.editableutils.setCursorPosition(this.$input.get(0),this.$input.val().length),this.toggleClear&&this.toggleClear())},renderClear:function(){this.options.clear&&(this.$clear=n('<span class="editable-clear-x"><\/span>'),this.$input.after(this.$clear).css("padding-right",24).keyup(n.proxy(function(t){if(!~n.inArray(t.keyCode,[40,38,9,13,27])){clearTimeout(this.t);var i=this;this.t=setTimeout(function(){i.toggleClear(t)},100)}},this)).parent().css("position","relative"),this.$clear.click(n.proxy(this.clear,this)))},postrender:function(){},toggleClear:function(){if(this.$clear){var n=this.$input.val().length,t=this.$clear.is(":visible");n&&!t&&this.$clear.show();!n&&t&&this.$clear.hide()}},clear:function(){this.$clear.hide();this.$input.val("").focus()}});t.defaults=n.extend({},n.fn.editabletypes.abstractinput.defaults,{tpl:'<input type="text">',placeholder:null,clear:!0});n.fn.editabletypes.text=t}(window.jQuery),function(n){"use strict";var t=function(n){this.init("textarea",n,t.defaults)};n.fn.editableutils.inherit(t,n.fn.editabletypes.abstractinput);n.extend(t.prototype,{render:function(){this.setClass();this.setAttr("placeholder");this.setAttr("rows");this.$input.keydown(function(t){t.ctrlKey&&13===t.which&&n(this).closest("form").submit()})},activate:function(){n.fn.editabletypes.text.prototype.activate.call(this)}});t.defaults=n.extend({},n.fn.editabletypes.abstractinput.defaults,{tpl:"<textarea><\/textarea>",inputclass:"input-large",placeholder:null,rows:7});n.fn.editabletypes.textarea=t}(window.jQuery),function(n){"use strict";var t=function(n){this.init("select",n,t.defaults)};n.fn.editableutils.inherit(t,n.fn.editabletypes.list);n.extend(t.prototype,{renderList:function(){this.$input.empty();var t=function(i,r){var f,u;if(n.isArray(r))for(u=0;u<r.length;u++)f={},r[u].children?(f.label=r[u].text,i.append(t(n("<optgroup>",f),r[u].children))):(f.value=r[u].value,r[u].disabled&&(f.disabled=!0),i.append(n("<option>",f).text(r[u].text)));return i};t(this.$input,this.sourceData);this.setClass();this.$input.on("keydown.editable",function(t){13===t.which&&n(this).closest("form").submit()})},value2htmlFinal:function(t,i){var r="",u=n.fn.editableutils.itemsByValue(t,this.sourceData);u.length&&(r=u[0].text);n.fn.editabletypes.abstractinput.prototype.value2html.call(this,r,i)},autosubmit:function(){this.$input.off("keydown.editable").on("change.editable",function(){n(this).closest("form").submit()})}});t.defaults=n.extend({},n.fn.editabletypes.list.defaults,{tpl:"<select><\/select>"});n.fn.editabletypes.select=t}(window.jQuery),function(n){"use strict";var t=function(n){this.init("checklist",n,t.defaults)};n.fn.editableutils.inherit(t,n.fn.editabletypes.list);n.extend(t.prototype,{renderList:function(){var i,t;if(this.$tpl.empty(),n.isArray(this.sourceData)){for(t=0;t<this.sourceData.length;t++)i=n("<label>").append(n("<input>",{type:"checkbox",value:this.sourceData[t].value})).append(n("<span>").text(" "+this.sourceData[t].text)),n("<div>").append(i).appendTo(this.$tpl);this.$input=this.$tpl.find('input[type="checkbox"]');this.setClass()}},value2str:function(t){return n.isArray(t)?t.sort().join(n.trim(this.options.separator)):""},str2value:function(t){var r,i=null;return"string"==typeof t&&t.length?(r=new RegExp("\\s*"+n.trim(this.options.separator)+"\\s*"),i=t.split(r)):i=n.isArray(t)?t:[t],i},value2input:function(t){this.$input.prop("checked",!1);n.isArray(t)&&t.length&&this.$input.each(function(i,r){var u=n(r);n.each(t,function(n,t){u.val()==t&&u.prop("checked",!0)})})},input2value:function(){var t=[];return this.$input.filter(":checked").each(function(i,r){t.push(n(r).val())}),t},value2htmlFinal:function(t,i){var r=[],u=n.fn.editableutils.itemsByValue(t,this.sourceData),f=this.options.escape;u.length?(n.each(u,function(t,i){var u=f?n.fn.editableutils.escape(i.text):i.text;r.push(u)}),n(i).html(r.join("<br>"))):n(i).empty()},activate:function(){this.$input.first().focus()},autosubmit:function(){this.$input.on("keydown",function(t){13===t.which&&n(this).closest("form").submit()})}});t.defaults=n.extend({},n.fn.editabletypes.list.defaults,{tpl:'<div class="editable-checklist"><\/div>',inputclass:null,separator:","});n.fn.editabletypes.checklist=t}(window.jQuery),function(n){"use strict";var t=function(n){this.init("password",n,t.defaults)};n.fn.editableutils.inherit(t,n.fn.editabletypes.text);n.extend(t.prototype,{value2html:function(t,i){t?n(i).text("[hidden]"):n(i).empty()},html2value:function(){return null}});t.defaults=n.extend({},n.fn.editabletypes.text.defaults,{tpl:'<input type="password">'});n.fn.editabletypes.password=t}(window.jQuery),function(n){"use strict";var t=function(n){this.init("email",n,t.defaults)};n.fn.editableutils.inherit(t,n.fn.editabletypes.text);t.defaults=n.extend({},n.fn.editabletypes.text.defaults,{tpl:'<input type="email">'});n.fn.editabletypes.email=t}(window.jQuery),function(n){"use strict";var t=function(n){this.init("url",n,t.defaults)};n.fn.editableutils.inherit(t,n.fn.editabletypes.text);t.defaults=n.extend({},n.fn.editabletypes.text.defaults,{tpl:'<input type="url">'});n.fn.editabletypes.url=t}(window.jQuery),function(n){"use strict";var t=function(n){this.init("tel",n,t.defaults)};n.fn.editableutils.inherit(t,n.fn.editabletypes.text);t.defaults=n.extend({},n.fn.editabletypes.text.defaults,{tpl:'<input type="tel">'});n.fn.editabletypes.tel=t}(window.jQuery),function(n){"use strict";var t=function(n){this.init("number",n,t.defaults)};n.fn.editableutils.inherit(t,n.fn.editabletypes.text);n.extend(t.prototype,{render:function(){t.superclass.render.call(this);this.setAttr("min");this.setAttr("max");this.setAttr("step")},postrender:function(){this.$clear&&this.$clear.css({right:24})}});t.defaults=n.extend({},n.fn.editabletypes.text.defaults,{tpl:'<input type="number">',inputclass:"input-mini",min:null,max:null,step:null});n.fn.editabletypes.number=t}(window.jQuery),function(n){"use strict";var t=function(n){this.init("range",n,t.defaults)};n.fn.editableutils.inherit(t,n.fn.editabletypes.number);n.extend(t.prototype,{render:function(){this.$input=this.$tpl.filter("input");this.setClass();this.setAttr("min");this.setAttr("max");this.setAttr("step");this.$input.on("input",function(){n(this).siblings("output").text(n(this).val())})},activate:function(){this.$input.focus()}});t.defaults=n.extend({},n.fn.editabletypes.number.defaults,{tpl:'<input type="range"><output style="width: 30px; display: inline-block"><\/output>',inputclass:"input-medium"});n.fn.editabletypes.range=t}(window.jQuery),function(n){"use strict";var t=function(n){this.init("time",n,t.defaults)};n.fn.editableutils.inherit(t,n.fn.editabletypes.abstractinput);n.extend(t.prototype,{render:function(){this.setClass()}});t.defaults=n.extend({},n.fn.editabletypes.abstractinput.defaults,{tpl:'<input type="time">'});n.fn.editabletypes.time=t}(window.jQuery),function(n){"use strict";var t=function(i){var r,u;(this.init("select2",i,t.defaults),i.select2=i.select2||{},this.sourceData=null,i.placeholder&&(i.select2.placeholder=i.placeholder),!i.select2.tags&&i.source)&&(r=i.source,n.isFunction(i.source)&&(r=i.source.call(i.scope)),"string"==typeof r?(i.select2.ajax=i.select2.ajax||{},i.select2.ajax.data||(i.select2.ajax.data=function(n){return{query:n}}),i.select2.ajax.results||(i.select2.ajax.results=function(n){return{results:n}}),i.select2.ajax.url=r):(this.sourceData=this.convertSource(r),i.select2.data=this.sourceData));(this.options.select2=n.extend({},t.defaults.select2,i.select2),this.isMultiple=this.options.select2.tags||this.options.select2.multiple,this.isRemote="ajax"in this.options.select2,this.idFunc=this.options.select2.id,"function"!=typeof this.idFunc)&&(u=this.idFunc||"id",this.idFunc=function(n){return n[u]});this.formatSelection=this.options.select2.formatSelection;"function"!=typeof this.formatSelection&&(this.formatSelection=function(n){return n.text})};n.fn.editableutils.inherit(t,n.fn.editabletypes.abstractinput);n.extend(t.prototype,{render:function(){this.setClass();this.isRemote&&this.$input.on("select2-loaded",n.proxy(function(n){this.sourceData=n.items.results},this));this.isMultiple&&this.$input.on("change",function(){n(this).closest("form").parent().triggerHandler("resize")})},value2html:function(i,r){var f,u="",e=this;this.options.select2.tags?f=i:this.sourceData&&(f=n.fn.editableutils.itemsByValue(i,this.sourceData,this.idFunc));n.isArray(f)?(u=[],n.each(f,function(n,t){u.push(t&&"object"==typeof t?e.formatSelection(t):t)})):f&&(u=e.formatSelection(f));u=n.isArray(u)?u.join(this.options.viewseparator):u;t.superclass.value2html.call(this,u,r)},html2value:function(n){return this.options.select2.tags?this.str2value(n,this.options.viewseparator):null},value2input:function(t){var i,r,u;(this.$input.data("select2")?this.$input.val(t).trigger("change",!0):(this.$input.val(t),this.$input.select2(this.options.select2)),!this.isRemote||this.isMultiple||this.options.select2.initSelection)||(i=this.options.select2.id,r=this.options.select2.formatSelection,i||r||(u={id:t,text:n(this.options.scope).text()},this.$input.select2("data",u)))},input2value:function(){return this.$input.select2("val")},str2value:function(t,i){if("string"!=typeof t||!this.isMultiple)return t;i=i||this.options.select2.separator||n.fn.select2.defaults.separator;var r,u,f;if(null===t||t.length<1)return null;for(r=t.split(i),u=0,f=r.length;f>u;u+=1)r[u]=n.trim(r[u]);return r},autosubmit:function(){this.$input.on("change",function(t,i){i||n(this).closest("form").submit()})},convertSource:function(t){if(n.isArray(t)&&t.length&&void 0!==t[0].value)for(var i=0;i<t.length;i++)void 0!==t[i].value&&(t[i].id=t[i].value,delete t[i].value);return t},destroy:function(){this.$input.data("select2")&&this.$input.select2("destroy")}});t.defaults=n.extend({},n.fn.editabletypes.abstractinput.defaults,{tpl:'<input type="hidden">',select2:null,placeholder:null,source:null,viewseparator:", "});n.fn.editabletypes.select2=t}(window.jQuery),function(n){var t=function(t,i){return this.$element=n(t),this.$element.is("input")?(this.options=n.extend({},n.fn.combodate.defaults,i,this.$element.data()),this.init(),void 0):(n.error("Combodate should be applied to INPUT element"),void 0)};t.prototype={constructor:t,init:function(){this.map={day:["D","date"],month:["M","month"],year:["Y","year"],hour:["[Hh]","hours"],minute:["m","minutes"],second:["s","seconds"],ampm:["[Aa]",""]};this.$widget=n('<span class="combodate"><\/span>').html(this.getTemplate());this.initCombos();this.$widget.on("change","select",n.proxy(function(){this.$element.val(this.getValue())},this));this.$widget.find("select").css("width","auto");this.$element.hide().after(this.$widget);this.setValue(this.$element.val()||this.options.value)},getTemplate:function(){var t=this.options.template;return n.each(this.map,function(n,i){i=i[0];var r=new RegExp(i+"+"),u=i.length>1?i.substring(1,2):i;t=t.replace(r,"{"+u+"}")}),t=t.replace(/ /g,"&nbsp;"),n.each(this.map,function(n,i){i=i[0];var r=i.length>1?i.substring(1,2):i;t=t.replace("{"+r+"}",'<select class="'+n+'"><\/select>')}),t},initCombos:function(){var t=this;n.each(this.map,function(n){var i,r,u=t.$widget.find("."+n);u.length&&(t["$"+n]=u,i="fill"+n.charAt(0).toUpperCase()+n.slice(1),r=t[i](),t["$"+n].html(t.renderItems(r)))})},initItems:function(n){var t,r=[],i;return"name"===this.options.firstItem?(t=moment.relativeTime||moment.langData()._relativeTime,i="function"==typeof t[n]?t[n](1,!0,n,!1):t[n],i=i.split(" ").reverse()[0],r.push(["",i])):"empty"===this.options.firstItem&&r.push(["",""]),r},renderItems:function(n){for(var i=[],t=0;t<n.length;t++)i.push('<option value="'+n[t][0]+'">'+n[t][1]+"<\/option>");return i.join("\n")},fillDay:function(){for(var t,i=this.initItems("d"),r=-1!==this.options.template.indexOf("DD"),n=1;31>=n;n++)t=r?this.leadZero(n):n,i.push([n,t]);return i},fillMonth:function(){for(var t,i=this.initItems("M"),r=-1!==this.options.template.indexOf("MMMM"),u=-1!==this.options.template.indexOf("MMM"),f=-1!==this.options.template.indexOf("MM"),n=0;11>=n;n++)t=r?moment().date(1).month(n).format("MMMM"):u?moment().date(1).month(n).format("MMM"):f?this.leadZero(n+1):n+1,i.push([n,t]);return i},fillYear:function(){for(var t,i=[],r=-1!==this.options.template.indexOf("YYYY"),n=this.options.maxYear;n>=this.options.minYear;n--)t=r?n:(n+"").substring(2),i[this.options.yearDescending?"push":"unshift"]([n,t]);return this.initItems("y").concat(i)},fillHour:function(){for(var t,i=this.initItems("h"),r=-1!==this.options.template.indexOf("h"),u=(-1!==this.options.template.indexOf("H"),-1!==this.options.template.toLowerCase().indexOf("hh")),f=r?1:0,e=r?12:23,n=f;e>=n;n++)t=u?this.leadZero(n):n,i.push([n,t]);return i},fillMinute:function(){for(var t,i=this.initItems("m"),r=-1!==this.options.template.indexOf("mm"),n=0;59>=n;n+=this.options.minuteStep)t=r?this.leadZero(n):n,i.push([n,t]);return i},fillSecond:function(){for(var t,i=this.initItems("s"),r=-1!==this.options.template.indexOf("ss"),n=0;59>=n;n+=this.options.secondStep)t=r?this.leadZero(n):n,i.push([n,t]);return i},fillAmpm:function(){var n=-1!==this.options.template.indexOf("a");return-1!==this.options.template.indexOf("A"),[["am",n?"am":"AM"],["pm",n?"pm":"PM"]]},getValue:function(t){var r,i={},u=this,f=!1;return n.each(this.map,function(n){if("ampm"!==n){var t="day"===n?1:0;return i[n]=u["$"+n]?parseInt(u["$"+n].val(),10):t,isNaN(i[n])?(f=!0,!1):void 0}}),f?"":(this.$ampm&&(i.hour=12===i.hour?"am"===this.$ampm.val()?0:12:"am"===this.$ampm.val()?i.hour:i.hour+12),r=moment([i.year,i.month,i.day,i.hour,i.minute,i.second]),this.highlight(r),t=void 0===t?this.options.format:t,null===t?r.isValid()?r:null:r.isValid()?r.format(t):"")},setValue:function(t){function f(t,i){var r={};return t.children("option").each(function(t,u){var f,e=n(u).attr("value");""!==e&&(f=Math.abs(e-i),("undefined"==typeof r.distance||f<r.distance)&&(r={value:e,distance:f}))}),r.value}if(t){var u="string"==typeof t?moment(t,this.options.format):moment(t),r=this,i={};u.isValid()&&(n.each(this.map,function(n,t){"ampm"!==n&&(i[n]=u[t[1]]())}),this.$ampm&&(i.hour>=12?(i.ampm="pm",i.hour>12&&(i.hour-=12)):(i.ampm="am",0===i.hour&&(i.hour=12))),n.each(i,function(n,t){r["$"+n]&&("minute"===n&&r.options.minuteStep>1&&r.options.roundTime&&(t=f(r["$"+n],t)),"second"===n&&r.options.secondStep>1&&r.options.roundTime&&(t=f(r["$"+n],t)),r["$"+n].val(t))}),this.$element.val(u.format(this.options.format)))}},highlight:function(n){n.isValid()?this.options.errorClass?this.$widget.removeClass(this.options.errorClass):this.$widget.find("select").css("border-color",this.borderColor):this.options.errorClass?this.$widget.addClass(this.options.errorClass):(this.borderColor||(this.borderColor=this.$widget.find("select").css("border-color")),this.$widget.find("select").css("border-color","red"))},leadZero:function(n){return 9>=n?"0"+n:n},destroy:function(){this.$widget.remove();this.$element.removeData("combodate").show()}};n.fn.combodate=function(i){var r,u=Array.apply(null,arguments);return u.shift(),"getValue"===i&&this.length&&(r=this.eq(0).data("combodate"))?r.getValue.apply(r,u):this.each(function(){var f=n(this),r=f.data("combodate"),e="object"==typeof i&&i;r||f.data("combodate",r=new t(this,e));"string"==typeof i&&"function"==typeof r[i]&&r[i].apply(r,u)})};n.fn.combodate.defaults={format:"DD-MM-YYYY HH:mm",template:"D / MMM / YYYY   H : mm",value:null,minYear:1970,maxYear:2015,yearDescending:!0,minuteStep:5,secondStep:1,firstItem:"empty",errorClass:null,roundTime:!0}}(window.jQuery),function(n){"use strict";var t=function(i){this.init("combodate",i,t.defaults);this.options.viewformat||(this.options.viewformat=this.options.format);i.combodate=n.fn.editableutils.tryParseJson(i.combodate,!0);this.options.combodate=n.extend({},t.defaults.combodate,i.combodate,{format:this.options.format,template:this.options.template})};n.fn.editableutils.inherit(t,n.fn.editabletypes.abstractinput);n.extend(t.prototype,{render:function(){this.$input.combodate(this.options.combodate);"bs3"===n.fn.editableform.engine&&this.$input.siblings().find("select").addClass("form-control");this.options.inputclass&&this.$input.siblings().find("select").addClass(this.options.inputclass)},value2html:function(n,i){var r=n?n.format(this.options.viewformat):"";t.superclass.value2html.call(this,r,i)},html2value:function(n){return n?moment(n,this.options.viewformat):null},value2str:function(n){return n?n.format(this.options.format):""},str2value:function(n){return n?moment(n,this.options.format):null},value2submit:function(n){return this.value2str(n)},value2input:function(n){this.$input.combodate("setValue",n)},input2value:function(){return this.$input.combodate("getValue",null)},activate:function(){this.$input.siblings(".combodate").find("select").eq(0).focus()},autosubmit:function(){}});t.defaults=n.extend({},n.fn.editabletypes.abstractinput.defaults,{tpl:'<input type="text">',inputclass:null,format:"YYYY-MM-DD",viewformat:null,template:"D / MMM / YYYY",combodate:null});n.fn.editabletypes.combodate=t}(window.jQuery),function(n){"use strict";var t=n.fn.editableform.Constructor.prototype.initInput;n.extend(n.fn.editableform.Constructor.prototype,{initTemplate:function(){this.$form=n(n.fn.editableform.template);this.$form.find(".control-group").addClass("form-group");this.$form.find(".editable-error-block").addClass("help-block")},initInput:function(){t.apply(this);var u=null===this.input.options.inputclass||this.input.options.inputclass===!1,i="input-sm",e="text,select,textarea,password,email,url,tel,number,range,time,typeaheadjs".split(",");~n.inArray(this.input.type,e)&&(this.input.$input.addClass("form-control"),u&&(this.input.options.inputclass=i,this.input.$input.addClass(i)));for(var o=this.$form.find(".editable-buttons"),f=u?[i]:this.input.options.inputclass.split(" "),r=0;r<f.length;r++)"input-lg"===f[r].toLowerCase()&&o.find("button").removeClass("btn-sm").addClass("btn-lg")}});n.fn.editableform.buttons='<button type="submit" class="btn btn-primary btn-sm editable-submit"><i class="glyphicon glyphicon-ok"><\/i><\/button><button type="button" class="btn btn-default btn-sm editable-cancel"><i class="glyphicon glyphicon-remove"><\/i><\/button>';n.fn.editableform.errorGroupClass="has-error";n.fn.editableform.errorBlockClass=null;n.fn.editableform.engine="bs3"}(window.jQuery),function(n){"use strict";n.extend(n.fn.editableContainer.Popup.prototype,{containerName:"popover",containerDataName:"bs.popover",innerCss:".popover-content",defaults:n.fn.popover.Constructor.DEFAULTS,initContainer:function(){n.extend(this.containerOptions,{trigger:"manual",selector:!1,content:" ",template:this.defaults.template});var t;this.$element.data("template")&&(t=this.$element.data("template"),this.$element.removeData("template"));this.call(this.containerOptions);t&&this.$element.data("template",t)},innerShow:function(){this.call("show")},innerHide:function(){this.call("hide")},innerDestroy:function(){this.call("destroy")},setContainerOption:function(n,t){this.container().options[n]=t},setPosition:function(){!function(){var n=this.tip(),t="function"==typeof this.options.placement?this.options.placement.call(this,n[0],this.$element[0]):this.options.placement,i=this.getPosition(),r=n[0].offsetWidth,u=n[0].offsetHeight,f=this.getCalculatedOffset(t,i,r,u);this.applyPlacement(f,t)}.call(this.container())}})}(window.jQuery),function(n){function r(){return new Date(Date.UTC.apply(Date,arguments))}function s(t,i){var u,f=n(t).data(),e={},o=new RegExp("^"+i.toLowerCase()+"([A-Z])"),i=new RegExp("^"+i.toLowerCase());for(var r in f)i.test(r)&&(u=r.replace(o,function(n,t){return t.toLowerCase()}),e[u]=f[r]);return e}function h(t){var u={},r;if(i[t]||(t=t.split("-")[0],i[t]))return r=i[t],n.each(l,function(n,t){t in r&&(u[t]=r[t])}),u}var u=function(i,r){this._process_options(r);this.element=n(i);this.isInline=!1;this.isInput=this.element.is("input");this.component=this.element.is(".date")?this.element.find(".add-on, .btn"):!1;this.hasInput=this.component&&this.element.find("input").length;this.component&&0===this.component.length&&(this.component=!1);this.picker=n(t.template);this._buildEvents();this._attachEvents();this.isInline?this.picker.addClass("datepicker-inline").appendTo(this.element):this.picker.addClass("datepicker-dropdown dropdown-menu");this.o.rtl&&(this.picker.addClass("datepicker-rtl"),this.picker.find(".prev i, .next i").toggleClass("icon-arrow-left icon-arrow-right"));this.viewMode=this.o.startView;this.o.calendarWeeks&&this.picker.find("tfoot th.today").attr("colspan",function(n,t){return parseInt(t)+1});this._allow_update=!1;this.setStartDate(this.o.startDate);this.setEndDate(this.o.endDate);this.setDaysOfWeekDisabled(this.o.daysOfWeekDisabled);this.fillDow();this.fillMonths();this._allow_update=!0;this.update();this.showMode();this.isInline&&this.show()},f,i,t;u.prototype={constructor:u,_process_options:function(r){var u,f,o;this._o=n.extend({},this._o,r);u=this.o=n.extend({},this._o);f=u.language;switch(i[f]||(f=f.split("-")[0],i[f]||(f=e.language)),u.language=f,u.startView){case 2:case"decade":u.startView=2;break;case 1:case"year":u.startView=1;break;default:u.startView=0}switch(u.minViewMode){case 1:case"months":u.minViewMode=1;break;case 2:case"years":u.minViewMode=2;break;default:u.minViewMode=0}u.startView=Math.max(u.startView,u.minViewMode);u.weekStart%=7;u.weekEnd=(u.weekStart+6)%7;o=t.parseFormat(u.format);u.startDate!==-1/0&&(u.startDate=t.parseDate(u.startDate,o,u.language));1/0!==u.endDate&&(u.endDate=t.parseDate(u.endDate,o,u.language));u.daysOfWeekDisabled=u.daysOfWeekDisabled||[];n.isArray(u.daysOfWeekDisabled)||(u.daysOfWeekDisabled=u.daysOfWeekDisabled.split(/[,\s]*/));u.daysOfWeekDisabled=n.map(u.daysOfWeekDisabled,function(n){return parseInt(n,10)})},_events:[],_secondaryEvents:[],_applyEvents:function(n){for(var i,r,t=0;t<n.length;t++)i=n[t][0],r=n[t][1],i.on(r)},_unapplyEvents:function(n){for(var i,r,t=0;t<n.length;t++)i=n[t][0],r=n[t][1],i.off(r)},_buildEvents:function(){this.isInput?this._events=[[this.element,{focus:n.proxy(this.show,this),keyup:n.proxy(this.update,this),keydown:n.proxy(this.keydown,this)}]]:this.component&&this.hasInput?this._events=[[this.element.find("input"),{focus:n.proxy(this.show,this),keyup:n.proxy(this.update,this),keydown:n.proxy(this.keydown,this)}],[this.component,{click:n.proxy(this.show,this)}]]:this.element.is("div")?this.isInline=!0:this._events=[[this.element,{click:n.proxy(this.show,this)}]];this._secondaryEvents=[[this.picker,{click:n.proxy(this.click,this)}],[n(window),{resize:n.proxy(this.place,this)}],[n(document),{mousedown:n.proxy(function(n){this.element.is(n.target)||this.element.find(n.target).size()||this.picker.is(n.target)||this.picker.find(n.target).size()||this.hide()},this)}]]},_attachEvents:function(){this._detachEvents();this._applyEvents(this._events)},_detachEvents:function(){this._unapplyEvents(this._events)},_attachSecondaryEvents:function(){this._detachSecondaryEvents();this._applyEvents(this._secondaryEvents)},_detachSecondaryEvents:function(){this._unapplyEvents(this._secondaryEvents)},_trigger:function(i,r){var u=r||this.date,f=new Date(u.getTime()+6e4*u.getTimezoneOffset());this.element.trigger({type:i,date:f,format:n.proxy(function(n){var i=n||this.o.format;return t.formatDate(u,i,this.o.language)},this)})},show:function(n){this.isInline||this.picker.appendTo("body");this.picker.show();this.height=this.component?this.component.outerHeight():this.element.outerHeight();this.place();this._attachSecondaryEvents();n&&n.preventDefault();this._trigger("show")},hide:function(){this.isInline||this.picker.is(":visible")&&(this.picker.hide().detach(),this._detachSecondaryEvents(),this.viewMode=this.o.startView,this.showMode(),this.o.forceParse&&(this.isInput&&this.element.val()||this.hasInput&&this.element.find("input").val())&&this.setValue(),this._trigger("hide"))},remove:function(){this.hide();this._detachEvents();this._detachSecondaryEvents();this.picker.remove();delete this.element.data().datepicker;this.isInput||delete this.element.data().date},getDate:function(){var n=this.getUTCDate();return new Date(n.getTime()+6e4*n.getTimezoneOffset())},getUTCDate:function(){return this.date},setDate:function(n){this.setUTCDate(new Date(n.getTime()-6e4*n.getTimezoneOffset()))},setUTCDate:function(n){this.date=n;this.setValue()},setValue:function(){var n=this.getFormattedDate();this.isInput?this.element.val(n):this.component&&this.element.find("input").val(n)},getFormattedDate:function(n){return void 0===n&&(n=this.o.format),t.formatDate(this.date,n,this.o.language)},setStartDate:function(n){this._process_options({startDate:n});this.update();this.updateNavArrows()},setEndDate:function(n){this._process_options({endDate:n});this.update();this.updateNavArrows()},setDaysOfWeekDisabled:function(n){this._process_options({daysOfWeekDisabled:n});this.update();this.updateNavArrows()},place:function(){if(!this.isInline){var i=parseInt(this.element.parents().filter(function(){return"auto"!=n(this).css("z-index")}).first().css("z-index"))+10,t=this.component?this.component.parent().offset():this.element.offset(),r=this.component?this.component.outerHeight(!0):this.element.outerHeight(!0);this.picker.css({top:t.top+r,left:t.left,zIndex:i})}},_allow_update:!0,update:function(){if(this._allow_update){var n,i=!1;arguments&&arguments.length&&("string"==typeof arguments[0]||arguments[0]instanceof Date)?(n=arguments[0],i=!0):(n=this.isInput?this.element.val():this.element.data("date")||this.element.find("input").val(),delete this.element.data().date);this.date=t.parseDate(n,this.o.format,this.o.language);i&&this.setValue();this.viewDate=this.date<this.o.startDate?new Date(this.o.startDate):this.date>this.o.endDate?new Date(this.o.endDate):new Date(this.date);this.fill()}},fillDow:function(){var r=this.o.weekStart,n="<tr>",t;for(this.o.calendarWeeks&&(t='<th class="cw">&nbsp;<\/th>',n+=t,this.picker.find(".datepicker-days thead tr:first-child").prepend(t));r<this.o.weekStart+7;)n+='<th class="dow">'+i[this.o.language].daysMin[r++%7]+"<\/th>";n+="<\/tr>";this.picker.find(".datepicker-days thead").append(n)},fillMonths:function(){for(var n="",t=0;12>t;)n+='<span class="month">'+i[this.o.language].monthsShort[t++]+"<\/span>";this.picker.find(".datepicker-months td").html(n)},setRange:function(t){t&&t.length?this.range=n.map(t,function(n){return n.valueOf()}):delete this.range;this.fill()},getClassNames:function(t){var i=[],r=this.viewDate.getUTCFullYear(),f=this.viewDate.getUTCMonth(),e=this.date.valueOf(),u=new Date;return t.getUTCFullYear()<r||t.getUTCFullYear()==r&&t.getUTCMonth()<f?i.push("old"):(t.getUTCFullYear()>r||t.getUTCFullYear()==r&&t.getUTCMonth()>f)&&i.push("new"),this.o.todayHighlight&&t.getUTCFullYear()==u.getFullYear()&&t.getUTCMonth()==u.getMonth()&&t.getUTCDate()==u.getDate()&&i.push("today"),e&&t.valueOf()==e&&i.push("active"),(t.valueOf()<this.o.startDate||t.valueOf()>this.o.endDate||-1!==n.inArray(t.getUTCDay(),this.o.daysOfWeekDisabled))&&i.push("disabled"),this.range&&(t>this.range[0]&&t<this.range[this.range.length-1]&&i.push("range"),-1!=n.inArray(t.valueOf(),this.range)&&i.push("selected")),i},fill:function(){var v,k=new Date(this.viewDate),u=k.getUTCFullYear(),d=k.getUTCMonth(),y=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,it=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,p=1/0!==this.o.endDate?this.o.endDate.getUTCFullYear():1/0,rt=1/0!==this.o.endDate?this.o.endDate.getUTCMonth():1/0,f,w,h,s,o,e,a,c,tt,l;for(this.date&&this.date.valueOf(),this.picker.find(".datepicker-days thead th.datepicker-switch").text(i[this.o.language].months[d]+" "+u),this.picker.find("tfoot th.today").text(i[this.o.language].today).toggle(this.o.todayBtn!==!1),this.picker.find("tfoot th.clear").text(i[this.o.language].clear).toggle(this.o.clearBtn!==!1),this.updateNavArrows(),this.fillMonths(),f=r(u,d-1,28,0,0,0,0),w=t.getDaysInMonth(f.getUTCFullYear(),f.getUTCMonth()),f.setUTCDate(w),f.setUTCDate(w-(f.getUTCDay()-this.o.weekStart+7)%7),h=new Date(f),h.setUTCDate(h.getUTCDate()+42),h=h.valueOf(),o=[];f.valueOf()<h;){if(f.getUTCDay()==this.o.weekStart&&(o.push("<tr>"),this.o.calendarWeeks)){var g=new Date(+f+864e5*((this.o.weekStart-f.getUTCDay()-7)%7)),nt=new Date(+g+864e5*((11-g.getUTCDay())%7)),b=new Date(+(b=r(nt.getUTCFullYear(),0,1))+864e5*((11-b.getUTCDay())%7)),ut=(nt-b)/6048e5+1;o.push('<td class="cw">'+ut+"<\/td>")}s=this.getClassNames(f);s.push("day");e=this.o.beforeShowDay(f);void 0===e?e={}:"boolean"==typeof e?e={enabled:e}:"string"==typeof e&&(e={classes:e});e.enabled===!1&&s.push("disabled");e.classes&&(s=s.concat(e.classes.split(/\s+/)));e.tooltip&&(v=e.tooltip);s=n.unique(s);o.push('<td class="'+s.join(" ")+'"'+(v?' title="'+v+'"':"")+">"+f.getUTCDate()+"<\/td>");f.getUTCDay()==this.o.weekEnd&&o.push("<\/tr>");f.setUTCDate(f.getUTCDate()+1)}for(this.picker.find(".datepicker-days tbody").empty().append(o.join("")),a=this.date&&this.date.getUTCFullYear(),c=this.picker.find(".datepicker-months").find("th:eq(1)").text(u).end().find("span").removeClass("active"),a&&a==u&&c.eq(this.date.getUTCMonth()).addClass("active"),(y>u||u>p)&&c.addClass("disabled"),u==y&&c.slice(0,it).addClass("disabled"),u==p&&c.slice(rt+1).addClass("disabled"),o="",u=10*parseInt(u/10,10),tt=this.picker.find(".datepicker-years").find("th:eq(1)").text(u+"-"+(u+9)).end().find("td"),u-=1,l=-1;11>l;l++)o+='<span class="year'+(-1==l?" old":10==l?" new":"")+(a==u?" active":"")+(y>u||u>p?" disabled":"")+'">'+u+"<\/span>",u+=1;tt.html(o)},updateNavArrows:function(){if(this._allow_update){var t=new Date(this.viewDate),n=t.getUTCFullYear(),i=t.getUTCMonth();switch(this.viewMode){case 0:this.o.startDate!==-1/0&&n<=this.o.startDate.getUTCFullYear()&&i<=this.o.startDate.getUTCMonth()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"});1/0!==this.o.endDate&&n>=this.o.endDate.getUTCFullYear()&&i>=this.o.endDate.getUTCMonth()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"});break;case 1:case 2:this.o.startDate!==-1/0&&n<=this.o.startDate.getUTCFullYear()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"});1/0!==this.o.endDate&&n>=this.o.endDate.getUTCFullYear()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"})}}},click:function(i){var u,h,e,l,s;if(i.preventDefault(),u=n(i.target).closest("span, td, th"),1==u.length)switch(u[0].nodeName.toLowerCase()){case"th":switch(u[0].className){case"datepicker-switch":this.showMode(1);break;case"prev":case"next":h=t.modes[this.viewMode].navStep*("prev"==u[0].className?-1:1);switch(this.viewMode){case 0:this.viewDate=this.moveMonth(this.viewDate,h);break;case 1:case 2:this.viewDate=this.moveYear(this.viewDate,h)}this.fill();break;case"today":e=new Date;e=r(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0);this.showMode(-2);l="linked"==this.o.todayBtn?null:"view";this._setDate(e,l);break;case"clear":this.isInput?s=this.element:this.component&&(s=this.element.find("input"));s&&s.val("").change();this._trigger("changeDate");this.update();this.o.autoclose&&this.hide()}break;case"span":if(!u.is(".disabled")){if(this.viewDate.setUTCDate(1),u.is(".month")){var c=1,f=u.parent().find("span").index(u),o=this.viewDate.getUTCFullYear();this.viewDate.setUTCMonth(f);this._trigger("changeMonth",this.viewDate);1===this.o.minViewMode&&this._setDate(r(o,f,c,0,0,0,0))}else{var o=parseInt(u.text(),10)||0,c=1,f=0;this.viewDate.setUTCFullYear(o);this._trigger("changeYear",this.viewDate);2===this.o.minViewMode&&this._setDate(r(o,f,c,0,0,0,0))}this.showMode(-1);this.fill()}break;case"td":if(u.is(".day")&&!u.is(".disabled")){var c=parseInt(u.text(),10)||1,o=this.viewDate.getUTCFullYear(),f=this.viewDate.getUTCMonth();u.is(".old")?0===f?(f=11,o-=1):f-=1:u.is(".new")&&(11==f?(f=0,o+=1):f+=1);this._setDate(r(o,f,c,0,0,0,0))}}},_setDate:function(n,t){t&&"date"!=t||(this.date=new Date(n));t&&"view"!=t||(this.viewDate=new Date(n));this.fill();this.setValue();this._trigger("changeDate");var i;this.isInput?i=this.element:this.component&&(i=this.element.find("input"));i&&(i.change(),!this.o.autoclose||t&&"date"!=t||this.hide())},moveMonth:function(n,t){var f;if(!t)return n;var r,u,i=new Date(n.valueOf()),e=i.getUTCDate(),o=i.getUTCMonth(),s=Math.abs(t);if(t=t>0?1:-1,1==s)u=-1==t?function(){return i.getUTCMonth()==o}:function(){return i.getUTCMonth()!=r},r=o+t,i.setUTCMonth(r),(0>r||r>11)&&(r=(r+12)%12);else{for(f=0;s>f;f++)i=this.moveMonth(i,t);r=i.getUTCMonth();i.setUTCDate(e);u=function(){return r!=i.getUTCMonth()}}for(;u();)i.setUTCDate(--e),i.setUTCMonth(r);return i},moveYear:function(n,t){return this.moveMonth(n,12*t)},dateWithinRange:function(n){return n>=this.o.startDate&&n<=this.o.endDate},keydown:function(n){var t,i,r,u,f;if(this.picker.is(":not(:visible)"))return 27==n.keyCode&&this.show(),void 0;u=!1;switch(n.keyCode){case 27:this.hide();n.preventDefault();break;case 37:case 39:if(!this.o.keyboardNavigation)break;t=37==n.keyCode?-1:1;n.ctrlKey?(i=this.moveYear(this.date,t),r=this.moveYear(this.viewDate,t)):n.shiftKey?(i=this.moveMonth(this.date,t),r=this.moveMonth(this.viewDate,t)):(i=new Date(this.date),i.setUTCDate(this.date.getUTCDate()+t),r=new Date(this.viewDate),r.setUTCDate(this.viewDate.getUTCDate()+t));this.dateWithinRange(i)&&(this.date=i,this.viewDate=r,this.setValue(),this.update(),n.preventDefault(),u=!0);break;case 38:case 40:if(!this.o.keyboardNavigation)break;t=38==n.keyCode?-1:1;n.ctrlKey?(i=this.moveYear(this.date,t),r=this.moveYear(this.viewDate,t)):n.shiftKey?(i=this.moveMonth(this.date,t),r=this.moveMonth(this.viewDate,t)):(i=new Date(this.date),i.setUTCDate(this.date.getUTCDate()+7*t),r=new Date(this.viewDate),r.setUTCDate(this.viewDate.getUTCDate()+7*t));this.dateWithinRange(i)&&(this.date=i,this.viewDate=r,this.setValue(),this.update(),n.preventDefault(),u=!0);break;case 13:this.hide();n.preventDefault();break;case 9:this.hide()}u&&(this._trigger("changeDate"),this.isInput?f=this.element:this.component&&(f=this.element.find("input")),f&&f.change())},showMode:function(n){n&&(this.viewMode=Math.max(this.o.minViewMode,Math.min(2,this.viewMode+n)));this.picker.find(">div").hide().filter(".datepicker-"+t.modes[this.viewMode].clsName).css("display","block");this.updateNavArrows()}};f=function(t,i){this.element=n(t);this.inputs=n.map(i.inputs,function(n){return n.jquery?n[0]:n});delete i.inputs;n(this.inputs).datepicker(i).bind("changeDate",n.proxy(this.dateUpdated,this));this.pickers=n.map(this.inputs,function(t){return n(t).data("datepicker")});this.updateDates()};f.prototype={updateDates:function(){this.dates=n.map(this.pickers,function(n){return n.date});this.updateRanges()},updateRanges:function(){var t=n.map(this.dates,function(n){return n.valueOf()});n.each(this.pickers,function(n,i){i.setRange(t)})},dateUpdated:function(t){var u=n(t.target).data("datepicker"),r=u.getUTCDate(),i=n.inArray(t.target,this.inputs),f=this.inputs.length;if(-1!=i){if(r<this.dates[i])for(;i>=0&&r<this.dates[i];)this.pickers[i--].setUTCDate(r);else if(r>this.dates[i])for(;f>i&&r>this.dates[i];)this.pickers[i++].setUTCDate(r);this.updateDates()}},remove:function(){n.map(this.pickers,function(n){n.remove()});delete this.element.data().datepicker}};var c=n.fn.datepicker,o=n.fn.datepicker=function(t){var r=Array.apply(null,arguments),i;return r.shift(),this.each(function(){var c=n(this),o=c.data("datepicker"),a="object"==typeof t&&t,y;if(!o){var v=s(this,"date"),p=n.extend({},e,v,a),w=h(p.language),l=n.extend({},e,w,v,a);c.is(".input-daterange")||l.inputs?(y={inputs:l.inputs||c.find("input").toArray()},c.data("datepicker",o=new f(this,n.extend(l,y)))):c.data("datepicker",o=new u(this,l))}if("string"==typeof t&&"function"==typeof o[t]&&(i=o[t].apply(o,r),void 0!==i))return!1}),void 0!==i?i:this},e=n.fn.datepicker.defaults={autoclose:!1,beforeShowDay:n.noop,calendarWeeks:!1,clearBtn:!1,daysOfWeekDisabled:[],endDate:1/0,forceParse:!0,format:"mm/dd/yyyy",keyboardNavigation:!0,language:"en",minViewMode:0,rtl:!1,startDate:-1/0,startView:0,todayBtn:!1,todayHighlight:!1,weekStart:0},l=n.fn.datepicker.locale_opts=["format","rtl","weekStart"];n.fn.datepicker.Constructor=u;i=n.fn.datepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa","Su"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear"}};t={modes:[{clsName:"days",navFnc:"Month",navStep:1},{clsName:"months",navFnc:"FullYear",navStep:1},{clsName:"years",navFnc:"FullYear",navStep:10}],isLeapYear:function(n){return 0==n%4&&0!=n%100||0==n%400},getDaysInMonth:function(n,i){return[31,t.isLeapYear(n)?29:28,31,30,31,30,31,31,30,31,30,31][i]},validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\[\u3400-\u9fff-`{-~\t\n\r]+/g,parseFormat:function(n){var t=n.replace(this.validParts,"\0").split("\0"),i=n.match(this.validParts);if(!t||!t.length||!i||0===i.length)throw new Error("Invalid date format.");return{separators:t,parts:i}},parseDate:function(f,e,o){var a,v,d,h,l,g,p,s;if(f instanceof Date)return f;if("string"==typeof e&&(e=t.parseFormat(e)),/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/.test(f)){for(d=/([\-+]\d+)([dmwy])/,h=f.match(/([\-+]\d+)([dmwy])/g),f=new Date,s=0;s<h.length;s++)switch(a=d.exec(h[s]),v=parseInt(a[1]),a[2]){case"d":f.setUTCDate(f.getUTCDate()+v);break;case"m":f=u.prototype.moveMonth.call(u.prototype,f,v);break;case"w":f.setUTCDate(f.getUTCDate()+7*v);break;case"y":f=u.prototype.moveYear.call(u.prototype,f,v)}return r(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate(),0,0,0)}var y,w,a,h=f&&f.match(this.nonpunctuation)||[],f=new Date,b={},k=["yyyy","yy","M","MM","m","mm","d","dd"],c={yyyy:function(n,t){return n.setUTCFullYear(t)},yy:function(n,t){return n.setUTCFullYear(2e3+t)},m:function(n,t){for(t-=1;0>t;)t+=12;for(t%=12,n.setUTCMonth(t);n.getUTCMonth()!=t;)n.setUTCDate(n.getUTCDate()-1);return n},d:function(n,t){return n.setUTCDate(t)}};if(c.M=c.MM=c.mm=c.m,c.dd=c.d,f=r(f.getFullYear(),f.getMonth(),f.getDate(),0,0,0),l=e.parts.slice(),h.length!=l.length&&(l=n(l).filter(function(t,i){return-1!==n.inArray(i,k)}).toArray()),h.length==l.length){for(s=0,g=l.length;g>s;s++){if(y=parseInt(h[s],10),a=l[s],isNaN(y))switch(a){case"MM":w=n(i[o].months).filter(function(){var n=this.slice(0,h[s].length),t=h[s].slice(0,n.length);return n==t});y=n.inArray(w[0],i[o].months)+1;break;case"M":w=n(i[o].monthsShort).filter(function(){var n=this.slice(0,h[s].length),t=h[s].slice(0,n.length);return n==t});y=n.inArray(w[0],i[o].monthsShort)+1}b[a]=y}for(s=0;s<k.length;s++)p=k[s],p in b&&!isNaN(b[p])&&c[p](f,b[p])}return f},formatDate:function(r,u,f){var e;"string"==typeof u&&(u=t.parseFormat(u));e={d:r.getUTCDate(),D:i[f].daysShort[r.getUTCDay()],DD:i[f].days[r.getUTCDay()],m:r.getUTCMonth()+1,M:i[f].monthsShort[r.getUTCMonth()],MM:i[f].months[r.getUTCMonth()],yy:r.getUTCFullYear().toString().substring(2),yyyy:r.getUTCFullYear()};e.dd=(e.d<10?"0":"")+e.d;e.mm=(e.m<10?"0":"")+e.m;for(var r=[],s=n.extend([],u.separators),o=0,h=u.parts.length;h>=o;o++)s.length&&r.push(s.shift()),r.push(e[u.parts[o]]);return r.join("")},headTemplate:'<thead><tr><th class="prev"><i class="icon-arrow-left"/><\/th><th colspan="5" class="datepicker-switch"><\/th><th class="next"><i class="icon-arrow-right"/><\/th><\/tr><\/thead>',contTemplate:'<tbody><tr><td colspan="7"><\/td><\/tr><\/tbody>',footTemplate:'<tfoot><tr><th colspan="7" class="today"><\/th><\/tr><tr><th colspan="7" class="clear"><\/th><\/tr><\/tfoot>'};t.template='<div class="datepicker"><div class="datepicker-days"><table class=" table-condensed">'+t.headTemplate+"<tbody><\/tbody>"+t.footTemplate+'<\/table><\/div><div class="datepicker-months"><table class="table-condensed">'+t.headTemplate+t.contTemplate+t.footTemplate+'<\/table><\/div><div class="datepicker-years"><table class="table-condensed">'+t.headTemplate+t.contTemplate+t.footTemplate+"<\/table><\/div><\/div>";n.fn.datepicker.DPGlobal=t;n.fn.datepicker.noConflict=function(){return n.fn.datepicker=c,this};n(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',function(t){var i=n(this);i.data("datepicker")||(t.preventDefault(),o.call(i,"show"))});n(function(){o.call(n('[data-provide="datepicker-inline"]'))})}(window.jQuery),function(n){"use strict";n.fn.bdatepicker=n.fn.datepicker.noConflict();n.fn.datepicker||(n.fn.datepicker=n.fn.bdatepicker);var t=function(n){this.init("date",n,t.defaults);this.initPicker(n,t.defaults)};n.fn.editableutils.inherit(t,n.fn.editabletypes.abstractinput);n.extend(t.prototype,{initPicker:function(t,i){this.options.viewformat||(this.options.viewformat=this.options.format);t.datepicker=n.fn.editableutils.tryParseJson(t.datepicker,!0);this.options.datepicker=n.extend({},i.datepicker,t.datepicker,{format:this.options.viewformat});this.options.datepicker.language=this.options.datepicker.language||"en";this.dpg=n.fn.bdatepicker.DPGlobal;this.parsedFormat=this.dpg.parseFormat(this.options.format);this.parsedViewFormat=this.dpg.parseFormat(this.options.viewformat)},render:function(){this.$input.bdatepicker(this.options.datepicker);this.options.clear&&(this.$clear=n('<a href="#"><\/a>').html(this.options.clear).click(n.proxy(function(n){n.preventDefault();n.stopPropagation();this.clear()},this)),this.$tpl.parent().append(n('<div class="editable-clear">').append(this.$clear)))},value2html:function(n,i){var r=n?this.dpg.formatDate(n,this.parsedViewFormat,this.options.datepicker.language):"";t.superclass.value2html.call(this,r,i)},html2value:function(n){return this.parseDate(n,this.parsedViewFormat)},value2str:function(n){return n?this.dpg.formatDate(n,this.parsedFormat,this.options.datepicker.language):""},str2value:function(n){return this.parseDate(n,this.parsedFormat)},value2submit:function(n){return this.value2str(n)},value2input:function(n){this.$input.bdatepicker("update",n)},input2value:function(){return this.$input.data("datepicker").date},activate:function(){},clear:function(){this.$input.data("datepicker").date=null;this.$input.find(".active").removeClass("active");this.options.showbuttons||this.$input.closest("form").submit()},autosubmit:function(){this.$input.on("mouseup",".day",function(t){if(!n(t.currentTarget).is(".old")&&!n(t.currentTarget).is(".new")){var i=n(this).closest("form");setTimeout(function(){i.submit()},200)}})},parseDate:function(n,t){var r,i=null;return n&&(i=this.dpg.parseDate(n,t,this.options.datepicker.language),"string"==typeof n&&(r=this.dpg.formatDate(i,t,this.options.datepicker.language),n!==r&&(i=null))),i}});t.defaults=n.extend({},n.fn.editabletypes.abstractinput.defaults,{tpl:'<div class="editable-date well"><\/div>',inputclass:null,format:"yyyy-mm-dd",viewformat:null,datepicker:{weekStart:0,startView:0,minViewMode:0,autoclose:!1},clear:"&times; clear"});n.fn.editabletypes.date=t}(window.jQuery),function(n){"use strict";var t=function(n){this.init("datefield",n,t.defaults);this.initPicker(n,t.defaults)};n.fn.editableutils.inherit(t,n.fn.editabletypes.date);n.extend(t.prototype,{render:function(){this.$input=this.$tpl.find("input");this.setClass();this.setAttr("placeholder");this.$tpl.bdatepicker(this.options.datepicker);this.$input.off("focus keydown");this.$input.keyup(n.proxy(function(){this.$tpl.removeData("date");this.$tpl.bdatepicker("update")},this))},value2input:function(n){this.$input.val(n?this.dpg.formatDate(n,this.parsedViewFormat,this.options.datepicker.language):"");this.$tpl.bdatepicker("update")},input2value:function(){return this.html2value(this.$input.val())},activate:function(){n.fn.editabletypes.text.prototype.activate.call(this)},autosubmit:function(){}});t.defaults=n.extend({},n.fn.editabletypes.date.defaults,{tpl:'<div class="input-append date"><input type="text"/><span class="add-on"><i class="icon-th"><\/i><\/span><\/div>',inputclass:"input-small",datepicker:{weekStart:0,startView:0,minViewMode:0,autoclose:!0}});n.fn.editabletypes.datefield=t}(window.jQuery),function(n){"use strict";var t=function(n){this.init("datetime",n,t.defaults);this.initPicker(n,t.defaults)};n.fn.editableutils.inherit(t,n.fn.editabletypes.abstractinput);n.extend(t.prototype,{initPicker:function(t,i){this.options.viewformat||(this.options.viewformat=this.options.format);t.datetimepicker=n.fn.editableutils.tryParseJson(t.datetimepicker,!0);this.options.datetimepicker=n.extend({},i.datetimepicker,t.datetimepicker,{format:this.options.viewformat});this.options.datetimepicker.language=this.options.datetimepicker.language||"en";this.dpg=n.fn.datetimepicker.DPGlobal;this.parsedFormat=this.dpg.parseFormat(this.options.format,this.options.formatType);this.parsedViewFormat=this.dpg.parseFormat(this.options.viewformat,this.options.formatType)},render:function(){this.$input.datetimepicker(this.options.datetimepicker);this.$input.on("changeMode",function(){var t=n(this).closest("form").parent();setTimeout(function(){t.triggerHandler("resize")},0)});this.options.clear&&(this.$clear=n('<a href="#"><\/a>').html(this.options.clear).click(n.proxy(function(n){n.preventDefault();n.stopPropagation();this.clear()},this)),this.$tpl.parent().append(n('<div class="editable-clear">').append(this.$clear)))},value2html:function(n,i){var r=n?this.dpg.formatDate(this.toUTC(n),this.parsedViewFormat,this.options.datetimepicker.language,this.options.formatType):"";return i?(t.superclass.value2html.call(this,r,i),void 0):r},html2value:function(n){var t=this.parseDate(n,this.parsedViewFormat);return t?this.fromUTC(t):null},value2str:function(n){return n?this.dpg.formatDate(this.toUTC(n),this.parsedFormat,this.options.datetimepicker.language,this.options.formatType):""},str2value:function(n){var t=this.parseDate(n,this.parsedFormat);return t?this.fromUTC(t):null},value2submit:function(n){return this.value2str(n)},value2input:function(n){n&&this.$input.data("datetimepicker").setDate(n)},input2value:function(){var n=this.$input.data("datetimepicker");return n.date?n.getDate():null},activate:function(){},clear:function(){this.$input.data("datetimepicker").date=null;this.$input.find(".active").removeClass("active");this.options.showbuttons||this.$input.closest("form").submit()},autosubmit:function(){this.$input.on("mouseup",".minute",function(){var t=n(this).closest("form");setTimeout(function(){t.submit()},200)})},toUTC:function(n){return n?new Date(n.valueOf()-6e4*n.getTimezoneOffset()):n},fromUTC:function(n){return n?new Date(n.valueOf()+6e4*n.getTimezoneOffset()):n},parseDate:function(n,t){var r,i=null;return n&&(i=this.dpg.parseDate(n,t,this.options.datetimepicker.language,this.options.formatType),"string"==typeof n&&(r=this.dpg.formatDate(i,t,this.options.datetimepicker.language,this.options.formatType),n!==r&&(i=null))),i}});t.defaults=n.extend({},n.fn.editabletypes.abstractinput.defaults,{tpl:'<div class="editable-date well"><\/div>',inputclass:null,format:"yyyy-mm-dd hh:ii",formatType:"standard",viewformat:null,datetimepicker:{todayHighlight:!1,autoclose:!1},clear:"&times; clear"});n.fn.editabletypes.datetime=t}(window.jQuery),function(n){"use strict";var t=function(n){this.init("datetimefield",n,t.defaults);this.initPicker(n,t.defaults)};n.fn.editableutils.inherit(t,n.fn.editabletypes.datetime);n.extend(t.prototype,{render:function(){this.$input=this.$tpl.find("input");this.setClass();this.setAttr("placeholder");this.$tpl.datetimepicker(this.options.datetimepicker);this.$input.off("focus keydown");this.$input.keyup(n.proxy(function(){this.$tpl.removeData("date");this.$tpl.datetimepicker("update")},this))},value2input:function(n){this.$input.val(this.value2html(n));this.$tpl.datetimepicker("update")},input2value:function(){return this.html2value(this.$input.val())},activate:function(){n.fn.editabletypes.text.prototype.activate.call(this)},autosubmit:function(){}});t.defaults=n.extend({},n.fn.editabletypes.datetime.defaults,{tpl:'<div class="input-append date"><input type="text"/><span class="add-on"><i class="icon-th"><\/i><\/span><\/div>',inputclass:"input-medium",datetimepicker:{todayHighlight:!1,autoclose:!0}});n.fn.editabletypes.datetimefield=t}(window.jQuery),function(n){function r(){var n=document.createElement("input"),t="onpaste";return n.setAttribute(t,""),"function"==typeof n[t]?"paste":"input"}var t,u=r()+".mask",i=navigator.userAgent,f=/iphone/i.test(i),e=/android/i.test(i);n.mask={definitions:{9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"},dataName:"rawMaskFn",placeholder:"_"};n.fn.extend({caret:function(n,t){var i;if(0!==this.length&&!this.is(":hidden"))return"number"==typeof n?(t="number"==typeof t?t:n,this.each(function(){this.setSelectionRange?this.setSelectionRange(n,t):this.createTextRange&&(i=this.createTextRange(),i.collapse(!0),i.moveEnd("character",t),i.moveStart("character",n),i.select())})):(this[0].setSelectionRange?(n=this[0].selectionStart,t=this[0].selectionEnd):document.selection&&document.selection.createRange&&(i=document.selection.createRange(),n=0-i.duplicate().moveStart("character",-1e5),t=n+i.text.length),{begin:n,end:t})},unmask:function(){return this.trigger("unmask")},mask:function(i,r){var a,l,o,h,c,s;return!i&&this.length>0?(a=n(this[0]),a.data(n.mask.dataName)()):(r=n.extend({placeholder:n.mask.placeholder,completed:null},r),l=n.mask.definitions,o=[],h=s=i.length,c=null,n.each(i.split(""),function(n,t){"?"==t?(s--,h=n):l[t]?(o.push(RegExp(l[t])),null===c&&(c=o.length-1)):o.push(null)}),this.trigger("unmask").each(function(){function y(n){for(;s>++n&&!o[n];);return n}function g(n){for(;--n>=0&&!o[n];);return n}function d(n,t){var u,i;if(!(0>n)){for(u=n,i=y(t);s>u;u++)if(o[u]){if(!(s>i&&o[u].test(v[i])))break;v[u]=v[i];v[i]=r.placeholder;i=y(i)}p();a.caret(Math.max(c,n))}}function nt(n){for(var u,f,t=n,i=r.placeholder;s>t;t++)if(o[t]){if(u=y(t),f=v[t],v[t]=i,!(s>u&&o[u].test(f)))break;i=f}}function tt(n){var u,i,t,r=n.which;8===r||46===r||f&&127===r?(u=a.caret(),i=u.begin,t=u.end,0==t-i&&(i=46!==r?g(i):t=y(i-1),t=46===r?y(t):t),b(i,t),d(i,t-1),n.preventDefault()):27==r&&(a.val(k),a.caret(0,w()),n.preventDefault())}function it(t){var u,h,f,c=t.which,i=a.caret();t.ctrlKey||t.altKey||t.metaKey||32>c||c&&(0!=i.end-i.begin&&(b(i.begin,i.end),d(i.begin,i.end-1)),u=y(i.begin-1),s>u&&(h=String.fromCharCode(c),o[u].test(h)&&(nt(u),v[u]=h,p(),f=y(u),e?setTimeout(n.proxy(n.fn.caret,a,f),0):a.caret(f),r.completed&&f>=s&&r.completed.call(a))),t.preventDefault())}function b(n,t){for(var i=n;t>i&&s>i;i++)o[i]&&(v[i]=r.placeholder)}function p(){a.val(v.join(""))}function w(n){var t,f,i=a.val(),u=-1;for(t=0,pos=0;s>t;t++)if(o[t]){for(v[t]=r.placeholder;pos++<i.length;)if(f=i.charAt(pos-1),o[t].test(f)){v[t]=f;u=t;break}if(pos>i.length)break}else v[t]===i.charAt(pos)&&t!==h&&(pos++,u=t);return n?p():h>u+1?(a.val(""),b(0,s)):(p(),a.val(a.val().substring(0,u+1))),h?t:c}var a=n(this),v=n.map(i.split(""),function(n){if("?"!=n)return l[n]?r.placeholder:n}),k=a.val();a.data(n.mask.dataName,function(){return n.map(v,function(n,t){return o[t]&&n!=r.placeholder?n:null}).join("")});a.attr("readonly")||a.one("unmask",function(){a.unbind(".mask").removeData(n.mask.dataName)}).bind("focus.mask",function(){clearTimeout(t);var n;k=a.val();n=w();t=setTimeout(function(){p();n==i.length?a.caret(0,n):a.caret(n)},10)}).bind("blur.mask",function(){w();a.val()!=k&&a.change()}).bind("keydown.mask",tt).bind("keypress.mask",it).bind(u,function(){setTimeout(function(){var n=w(!0);a.caret(n);r.completed&&n==a.val().length&&r.completed.call(a)},0)});w()}))}})}(jQuery),function(n,t){function vt(t){n.extend(!0,g,t)}function wi(u,f,e){function ri(n){l?(st(),kt(),ti(),v(n)):ui()}function ui(){ur=f.theme?"ui":"fc";u.addClass("fc");f.isRTL&&u.addClass("fc-rtl");f.theme&&u.addClass("ui-widget");l=n("<div class='fc-content' style='position:relative'/>").prependTo(u);w=new bi(s,f);(ut=w.render())&&u.prepend(ut);wt(f.defaultView);n(window).resize(dt);yt()||vt()}function vt(){setTimeout(function(){!o.start&&yt()&&v()},0)}function fi(){n(window).unbind("resize",dt);w.destroy();l.remove();u.removeClass("fc fc-rtl ui-widget")}function d(){return rt.offsetWidth!==0}function yt(){return n("body")[0].offsetWidth!==0}function wt(t){if(!o||t!=o.name){y++;it();var i=o,r;i?((i.beforeHide||ni)(),b(l,l.height()),i.element.hide()):b(l,1);l.css("overflow","hidden");(o=et[t])?o.element.show():o=et[t]=new h[t](r=ot=n("<div class='fc-view fc-view-"+t+"' style='position:absolute'/>").appendTo(l),s);i&&w.deactivateButton(i.name);w.activateButton(t);v();l.css("overflow","");i&&b(l,1);r||(o.afterShow||ni)();y--}}function v(n){if(d()){y++;it();lt===t&&st();var i=!1;!o.start||n||a<o.start||a>=o.end?(o.render(a,n||0),ht(!0),i=!0):o.sizeDirty?(o.clearEvents(),ht(),i=!0):o.eventsDirty&&(o.clearEvents(),i=!0);o.sizeDirty=!1;o.eventsDirty=!1;ei(i);ct=u.outerWidth();w.updateTitle(o.title);n=new Date;n>=o.start&&n<o.end?w.disableButton("today"):w.enableButton("today");y--;o.trigger("viewDisplay",rt)}}function bt(){kt();d()&&(st(),ht(),it(),o.clearEvents(),o.renderEvents(at),o.sizeDirty=!1)}function kt(){n.each(et,function(n,t){t.sizeDirty=!0})}function st(){lt=f.contentHeight?f.contentHeight:f.height?f.height-(ut?ut.height():0)-p(l):Math.round(l.width()/Math.max(f.aspectRatio,.5))}function ht(n){y++;o.setHeight(lt,n);ot&&(ot.css("position","relative"),ot=null);o.setWidth(l.width(),n);y--}function dt(){if(!y)if(o.start){var n=++ii;setTimeout(function(){n==ii&&!y&&d()&&ct!=(ct=u.outerWidth())&&(y++,bt(),o.trigger("windowResize",rt),y--)},200)}else vt()}function ei(n){!f.lazyFetching||ir(o.visStart,o.visEnd)?gt():n&&g()}function gt(){rr(o.visStart,o.visEnd)}function oi(n){at=n;g()}function si(n){g(n)}function g(n){ti();d()&&(o.clearEvents(),o.renderEvents(at,n),o.eventsDirty=!1)}function ti(){n.each(et,function(n,t){t.eventsDirty=!0})}function hi(n,i,r){o.select(n,i,r===t?!0:r)}function it(){o&&o.unselect()}function ci(){v(-1)}function li(){v(1)}function ai(){nt(a,-1);v()}function vi(){nt(a,1);v()}function yi(){a=new Date;v()}function pi(n,t,r){n instanceof Date?a=i(n):pt(a,n,t,r);v()}function wi(n,i,u){n!==t&&nt(a,n);i!==t&&tt(a,i);u!==t&&r(a,u);v()}function di(){return i(a)}function gi(){return o}function nr(n,i){if(i===t)return f[n];(n=="height"||n=="contentHeight"||n=="aspectRatio")&&(f[n]=i,bt())}function tr(n,t){if(f[n])return f[n].apply(t||rt,Array.prototype.slice.call(arguments,2))}var s=this;s.options=f;s.render=ri;s.destroy=fi;s.refetchEvents=gt;s.reportEvents=oi;s.reportEventChange=si;s.rerenderEvents=g;s.changeView=wt;s.select=hi;s.unselect=it;s.prev=ci;s.next=li;s.prevYear=ai;s.nextYear=vi;s.today=yi;s.gotoDate=pi;s.incrementDate=wi;s.formatDate=function(n,t){return c(n,t,f)};s.formatDates=function(n,t,i){return ft(n,t,i,f)};s.getDate=di;s.getView=gi;s.option=nr;s.trigger=tr;ki.call(s,f,e);var ir=s.isFetchNeeded,rr=s.fetchEvents,rt=u[0],w,ut,l,ur,o,et={},ct,lt,ot,ii=0,y=0,a=new Date,at=[],k;pt(a,f.year,f.month,f.date);f.droppable&&n(document).bind("dragstart",function(t,i){var u=t.target,e=n(u),r;e.parents(".fc").length||(r=f.dropAccept,(n.isFunction(r)?r.call(u,e):e.is(r))&&(k=u,o.dragStart(k,t,i)))}).bind("dragstop",function(n,t){k&&(o.dragStop(k,n,t),k=null)})}function bi(t,i){function o(){return r=i.theme?"ui":"fc",i.header?u=n("<table class='fc-header' style='width:100%'/>").append(n("<tr/>").append(e("left")).append(e("center")).append(e("right"))):void 0}function s(){u.remove()}function e(u){var f=n("<td class='fc-header-"+u+"'/>");return(u=i.header[u])&&n.each(u.split(" "),function(u){u>0&&f.append("<span class='fc-header-space'/>");var e;n.each(this.split(","),function(u,o){var c,l,s;o=="title"?(f.append("<span class='fc-header-title'><h2>&nbsp;<\/h2><\/span>"),e&&e.addClass(r+"-corner-right"),e=null):(t[o]?c=t[o]:h[o]&&(c=function(){s.removeClass(r+"-state-hover");t.changeView(o)}),c&&(u=i.theme?ht(i.buttonIcons,o):null,l=ht(i.buttonText,o),s=n("<span class='fc-button fc-button-"+o+" "+r+"-state-default'><span class='fc-button-inner'><span class='fc-button-content'>"+(u?"<span class='fc-icon-wrap'><span class='ui-icon ui-icon-"+u+"'/><\/span>":l)+"<\/span><span class='fc-button-effect'><span><\/span><\/span><\/span><\/span>"),s&&(s.click(function(){s.hasClass(r+"-state-disabled")||c()}).mousedown(function(){s.not("."+r+"-state-active").not("."+r+"-state-disabled").addClass(r+"-state-down")}).mouseup(function(){s.removeClass(r+"-state-down")}).hover(function(){s.not("."+r+"-state-active").not("."+r+"-state-disabled").addClass(r+"-state-hover")},function(){s.removeClass(r+"-state-hover").removeClass(r+"-state-down")}).appendTo(f),e||s.addClass(r+"-corner-left"),e=s)))});e&&e.addClass(r+"-corner-right")}),f}function c(n){u.find("h2").html(n)}function l(n){u.find("span.fc-button-"+n).addClass(r+"-state-active")}function a(n){u.find("span.fc-button-"+n).removeClass(r+"-state-active")}function v(n){u.find("span.fc-button-"+n).addClass(r+"-state-disabled")}function y(n){u.find("span.fc-button-"+n).removeClass(r+"-state-disabled")}var f=this,u,r;f.render=o;f.destroy=s;f.updateTitle=c;f.activateButton=l;f.deactivateButton=a;f.disableButton=v;f.enableButton=y;u=n([])}function ki(r,u){function ot(n,t){return!h||n<h||t>a}function st(n,t){h=n;a=t;e=[];n=++p;v=t=s.length;for(var i=0;i<t;i++)b(s[i],n)}function b(n,t){k(n,function(i){if(t==p){if(i){for(var r=0;r<i.length;r++)i[r].source=n,c(i[r]);e=e.concat(i)}v--;v||l(e)}})}function k(t,u){for(var s=f.sourceFetchers,o,e=0;e<s.length;e++){if(o=s[e](t,h,a,u),o===!0)return;if(typeof o=="object"){k(o,u);return}}if(e=t.events)n.isFunction(e)?(nt(),e(i(h),i(a),function(n){u(n);tt()})):n.isArray(e)?u(e):u();else if(t.url){var c=t.success,l=t.error,v=t.complete;e=n.extend({},t.data||{});s=w(t.startParam,r.startParam);o=w(t.endParam,r.endParam);s&&(e[s]=Math.round(+h/1e3));o&&(e[o]=Math.round(+a/1e3));nt();n.ajax(n.extend({},vi,t,{data:e,success:function(t){t=t||[];var i=d(c,this,arguments);n.isArray(i)&&(t=i);u(t)},error:function(){d(l,this,arguments);u()},complete:function(){d(v,this,arguments);tt()}}))}else u()}function ht(n){(n=g(n))&&(v++,b(n,p))}function g(t){return n.isFunction(t)||n.isArray(t)?t={events:t}:typeof t=="string"&&(t={url:t}),typeof t=="object"?(pt(t),s.push(t),t):void 0}function ct(t){s=n.grep(s,function(n){return!it(n,t)});e=n.grep(e,function(n){return!it(n.source,t)});l(e)}function lt(n){for(var f=e.length,t,r=wt().defaultEventEnd,o=n.start-n._start,u=n.end?n.end-(n._end||r(n)):0,i=0;i<f;i++)t=e[i],t._id==n._id&&t!=n&&(t.start=new Date(+t.start+o),t.end=n.end?t.end?new Date(+t.end+u):new Date(+r(t)+u):null,t.title=n.title,t.url=n.url,t.allDay=n.allDay,t.className=n.className,t.editable=n.editable,t.color=n.color,t.backgroudColor=n.backgroudColor,t.borderColor=n.borderColor,t.textColor=n.textColor,c(t));c(n);l(e)}function at(n,t){c(n);n.source||(t&&(y.events.push(n),n.source=y),e.push(n));l(e)}function vt(t){var r,i;if(t)for(n.isFunction(t)||(r=t+"",t=function(n){return n._id==r}),e=n.grep(e,t,!0),i=0;i<s.length;i++)n.isArray(s[i].events)&&(s[i].events=n.grep(s[i].events,t,!0));else for(e=[],i=0;i<s.length;i++)n.isArray(s[i].events)&&(s[i].events=[]);l(e)}function yt(t){return n.isFunction(t)?n.grep(e,t):t?(t+="",n.grep(e,function(n){return n._id==t})):e}function nt(){et++||ft("loading",null,!0)}function tt(){--et||ft("loading",null,!1)}function c(n){var u=n.source||{},f=w(u.ignoreTimezone,r.ignoreTimezone);n._id=n._id||(n.id===t?"_fc"+yi++:n.id+"");n.date&&(n.start||(n.start=n.date),delete n.date);n._start=i(n.start=rt(n.start,f));n.end=rt(n.end,f);n.end&&n.end<=n.start&&(n.end=null);n._end=n.end?i(n.end):null;n.allDay===t&&(n.allDay=w(u.allDayDefault,r.allDayDefault));n.className?typeof n.className=="string"&&(n.className=n.className.split(/\s+/)):n.className=[]}function pt(n){n.className?typeof n.className=="string"&&(n.className=n.className.split(/\s+/)):n.className=[];for(var i=f.sourceNormalizers,t=0;t<i.length;t++)i[t](n)}function it(n,t){return n&&t&&ut(n)==ut(t)}function ut(n){return(typeof n=="object"?n.events||n.url:"")||n}var o=this;o.isFetchNeeded=ot;o.fetchEvents=st;o.addEventSource=ht;o.removeEventSource=ct;o.updateEvent=lt;o.renderEvent=at;o.removeEvents=vt;o.clientEvents=yt;o.normalizeEvent=c;var ft=o.trigger,wt=o.getView,l=o.reportEvents,y={events:[]},s=[y],h,a,p=0,v=0,et=0,e=[];for(o=0;o<u.length;o++)g(u[o])}function nt(n,t,i){return n.setFullYear(n.getFullYear()+t),i||s(n),n}function tt(n,t,r){if(+n){t=n.getMonth()+t;var u=i(n);for(u.setDate(1),u.setMonth(t),n.setMonth(t),r||s(n);n.getMonth()!=u.getMonth();)n.setDate(n.getDate()+(n<u?1:-1))}return n}function r(n,t,r){if(+n){t=n.getDate()+t;var u=i(n);u.setHours(9);u.setDate(t);n.setDate(t);r||s(n);it(n,u)}return n}function it(n,t){if(+n)for(;n.getDate()!=t.getDate();)n.setTime(+n+(n<t?1:-1)*wr)}function u(n,t){return n.setMinutes(n.getMinutes()+t),n}function s(n){return n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0),n}function i(n,t){return t?s(new Date(+n)):new Date(+n)}function yt(){var t=0,n;do n=new Date(1970,t++,1);while(n.getHours());return n}function o(n,t,i){for(t=t||1;!n.getDay()||i&&n.getDay()==1||!i&&n.getDay()==6;)r(n,t);return n}function e(n,t){return Math.round((i(n,!0)-i(t,!0))/pi)}function pt(n,i,r,u){i!==t&&i!=n.getFullYear()&&(n.setDate(1),n.setMonth(0),n.setFullYear(i));r!==t&&r!=n.getMonth()&&(n.setDate(1),n.setMonth(r));u!==t&&n.setDate(u)}function rt(n,i){return typeof n=="object"?n:typeof n=="number"?new Date(n*1e3):typeof n=="string"?n.match(/^\d+(\.\d+)?$/)?new Date(parseFloat(n)*1e3):(i===t&&(i=!0),wt(n,i)||(n?new Date(n):null)):null}function wt(n,t){if(n=n.match(/^([0-9]{4})(-([0-9]{2})(-([0-9]{2})([T ]([0-9]{2}):([0-9]{2})(:([0-9]{2})(\.([0-9]+))?)?(Z|(([-+])([0-9]{2})(:?([0-9]{2}))?))?)?)?)?$/),!n)return null;var i=new Date(n[1],0,1);return t||!n[13]?(t=new Date(n[1],0,1,9,0),n[3]&&(i.setMonth(n[3]-1),t.setMonth(n[3]-1)),n[5]&&(i.setDate(n[5]),t.setDate(n[5])),it(i,t),n[7]&&i.setHours(n[7]),n[8]&&i.setMinutes(n[8]),n[10]&&i.setSeconds(n[10]),n[12]&&i.setMilliseconds(Number("0."+n[12])*1e3),it(i,t)):(i.setUTCFullYear(n[1],n[3]?n[3]-1:0,n[5]||1),i.setUTCHours(n[7]||0,n[8]||0,n[10]||0,n[12]?Number("0."+n[12])*1e3:0),n[14]&&(t=Number(n[16])*60+(n[18]?Number(n[18]):0),t*=n[15]=="-"?1:-1,i=new Date(+i+t*6e4))),i}function ut(n){if(typeof n=="number")return n*60;if(typeof n=="object")return n.getHours()*60+n.getMinutes();if(n=n.match(/(\d+)(?::(\d+))?\s*(\w+)?/)){var t=parseInt(n[1],10);return n[3]&&(t%=12,n[3].toLowerCase().charAt(0)=="p"&&(t+=12)),t*60+(n[2]?parseInt(n[2],10):0)}}function c(n,t,i){return ft(n,null,t,i)}function ft(n,t,i,r){r=r||g;for(var o=n,l=t,h=i.length,e,u,a,s="",f=0;f<h;f++)if(e=i.charAt(f),e=="'"){for(u=f+1;u<h;u++)if(i.charAt(u)=="'"){o&&(s+=u==f+1?"'":i.substring(f+1,u),f=u);break}}else if(e=="("){for(u=f+1;u<h;u++)if(i.charAt(u)==")"){f=c(o,i.substring(f+1,u),r);parseInt(f.replace(/\D/,""),10)&&(s+=f);f=u;break}}else if(e=="["){for(u=f+1;u<h;u++)if(i.charAt(u)=="]"){e=i.substring(f+1,u);f=c(o,e,r);f!=c(l,e,r)&&(s+=f);f=u;break}}else if(e=="{")o=t,l=n;else if(e=="}")o=n,l=t;else{for(u=h;u>f;u--)if(a=kr[i.substring(f,u)]){o&&(s+=a(o,r));f=u-1;break}u==f&&o&&(s+=e)}return s}function v(n){return n.end?di(n.end,n.allDay):r(i(n.start),1)}function di(n,t){return n=i(n),t||n.getHours()||n.getMinutes()?r(n,1):s(n)}function gi(n,t){return(t.msLength-n.msLength)*100+(n.event.start-t.event.start)}function bt(n,t){return n.end>t.start&&n.start<t.end}function et(n,t,r,u){for(var l=[],a=n.length,s,f,e,h,c,o=0;o<a;o++)s=n[o],f=s.start,e=t[o],e>r&&f<u&&(f<r?(f=i(r),h=!1):(f=f,h=!0),e>u?(e=i(u),c=!1):(e=e,c=!0),l.push({event:s,start:f,end:e,isStart:h,isEnd:c,msLength:e-f}));return l.sort(gi)}function ot(n){for(var i=[],o=n.length,u,t,e,f,r=0;r<o;r++){for(u=n[r],t=0;;){if(e=!1,i[t])for(f=0;f<i[t].length;f++)if(bt(i[t][f],u)){e=!0;break}if(e)t++;else break}i[t]?i[t].push(u):i[t]=[u]}return i}function kt(i,r,u){i.unbind("mouseover").mouseover(function(i){for(var e=i.target,f;e!=this;)f=e,e=e.parentNode;(e=f._fci)!==t&&(f._fci=t,f=r[e],u(f.event,f.element,f),n(i.target).trigger(i));i.stopPropagation()})}function y(t,i,r){for(var u=0,f;u<t.length;u++)f=n(t[u]),f.width(Math.max(0,i-st(f,r)))}function dt(t,i,r){for(var u=0,f;u<t.length;u++)f=n(t[u]),f.height(Math.max(0,i-p(f,r)))}function st(n,t){return nr(n)+ir(n)+(t?tr(n):0)}function nr(t){return(parseFloat(n.css(t[0],"paddingLeft",!0))||0)+(parseFloat(n.css(t[0],"paddingRight",!0))||0)}function tr(t){return(parseFloat(n.css(t[0],"marginLeft",!0))||0)+(parseFloat(n.css(t[0],"marginRight",!0))||0)}function ir(t){return(parseFloat(n.css(t[0],"borderLeftWidth",!0))||0)+(parseFloat(n.css(t[0],"borderRightWidth",!0))||0)}function p(n,t){return rr(n)+ur(n)+(t?gt(n):0)}function rr(t){return(parseFloat(n.css(t[0],"paddingTop",!0))||0)+(parseFloat(n.css(t[0],"paddingBottom",!0))||0)}function gt(t){return(parseFloat(n.css(t[0],"marginTop",!0))||0)+(parseFloat(n.css(t[0],"marginBottom",!0))||0)}function ur(t){return(parseFloat(n.css(t[0],"borderTopWidth",!0))||0)+(parseFloat(n.css(t[0],"borderBottomWidth",!0))||0)}function b(n,t){t=typeof t=="number"?t+"px":t;n.each(function(n,i){i.style.cssText+=";min-height:"+t+";_height:"+t})}function ni(){}function ti(n,t){return n-t}function ii(n){return Math.max.apply(Math,n)}function l(n){return(n<10?"0":"")+n}function ht(n,i){if(n[i]!==t)return n[i];i=i.split(/(?=[A-Z])/);for(var r=i.length-1,u;r>=0;r--)if(u=n[i[r].toLowerCase()],u!==t)return u;return n[""]}function a(n){return n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#039;").replace(/"/g,"&quot;").replace(/\n/g,"<br />")}function ri(n){return n.id+"/"+n.className+"/"+n.style.cssText.replace(/(^|;)\s*(top|left|width|height)\s*:[^;]*/ig,"")}function ct(n){n.attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return!1})}function k(n){n.children().removeClass("fc-first fc-last").filter(":first-child").addClass("fc-first").end().filter(":last-child").addClass("fc-last")}function lt(n,t){n.each(function(n,i){i.className=i.className.replace(/^fc-\w*/,"fc-"+pr[t.getDay()])})}function ui(n,t){var r=n.source||{},i=n.color,u=r.color,f=t("eventColor"),e=n.backgroundColor||i||r.backgroundColor||u||t("eventBackgroundColor")||f;return i=n.borderColor||i||r.borderColor||u||t("eventBorderColor")||f,n=n.textColor||r.textColor||t("eventTextColor"),t=[],e&&t.push("background-color:"+e),i&&t.push("border-color:"+i),n&&t.push("color:"+n),t.join(";")}function d(t,i,r){if(n.isFunction(t)&&(t=[t]),t){for(var f,u=0;u<t.length;u++)f=t[u].apply(i,r)||f;return f}}function w(){for(var n=0;n<arguments.length;n++)if(arguments[n]!==t)return arguments[n]}function fr(n,t){function e(n,t){t&&(tt(n,t),n.setDate(1));n=i(n,!0);n.setDate(1);t=tt(i(n),1);var l=i(n),e=i(t),c=f("firstDay"),a=f("weekends")?0:1;a&&(o(l),o(e,-1,!0));r(l,-((l.getDay()-Math.max(c,a)+7)%7));r(e,(7-e.getDay()+Math.max(c,a))%7);c=Math.round((e-l)/(pi*7));f("weekMode")=="fixed"&&(r(e,(6-c)*7),c=6);u.title=h(n,f("titleFormat"));u.start=n;u.end=t;u.visStart=l;u.visEnd=e;s(6,c,a?5:7,!0)}var u=this;u.render=e;at.call(u,n,t,"month");var f=u.opt,s=u.renderBasic,h=t.formatDate}function er(n,t){function e(n,t){t&&r(n,t*7);n=r(i(n),-((n.getDay()-f("firstDay")+7)%7));t=r(i(n),7);var e=i(n),c=i(t),l=f("weekends");l||(o(e),o(c,-1,!0));u.title=h(e,r(i(c),-1),f("titleFormat"));u.start=n;u.end=t;u.visStart=e;u.visEnd=c;s(1,1,l?7:5,!1)}var u=this;u.render=e;at.call(u,n,t,"basicWeek");var f=u.opt,s=u.renderBasic,h=t.formatDates}function or(n,t){function e(n,t){t&&(r(n,t),f("weekends")||o(n,t<0?-1:1));u.title=h(n,f("titleFormat"));u.start=u.visStart=i(n,!0);u.end=u.visEnd=r(i(u.start),1);s(1,1,1,!1)}var u=this;u.render=e;at.call(u,n,t,"basicDay");var f=u.opt,s=u.renderBasic,h=t.formatDate}function at(t,u,f){function vi(n,t,i,r){c=t;h=i;yi();(t=!it)?pi(n,r):lr();wi(t)}function yi(){(ri=l("isRTL"))?(v=-1,w=h-1):(v=1,w=0);ui=l("firstDay");fi=l("weekends")?0:1;nt=l("theme")?"ui":"fc";oi=l("columnFormat")}function pi(i,r){for(var e=nt+"-widget-header",o=nt+"-widget-content",u="<table class='fc-border-separate' style='width:100%' cellspacing='0'><thead><tr>",f=0;f<h;f++)u+="<th class='fc- "+e+"'/>";for(u+="<\/tr><\/thead><tbody>",f=0;f<i;f++){for(u+="<tr class='fc-week"+f+"'>",e=0;e<h;e++)u+="<td class='fc- "+o+" fc-day"+(f*h+e)+"'><div>"+(r?"<div class='fc-day-number'/>":"")+"<div class='fc-day-content'><div style='position:relative'>&nbsp;<\/div><\/div><\/div><\/td>";u+="<\/tr>"}u+="<\/tbody><\/table>";i=n(u).appendTo(t);d=i.find("thead");tt=d.find("th");it=i.find("tbody");a=it.find("tr");g=it.find("td");gt=g.filter(":first-child");ni=a.eq(0).find("div.fc-day-content div");k(d.add(d.find("tr")));k(a);a.eq(0).addClass("fc-first");vt(g);ti=n("<div style='position:absolute;z-index:8;top:0;left:0'/>").appendTo(t)}function wi(t){var f=t||c==1,e=o.start.getMonth(),h=s(new Date),i,r,u;f&&tt.each(function(t,u){i=n(u);r=et(t);i.html(yr(r,oi));lt(i,r)});g.each(function(t,u){i=n(u);r=et(t);r.getMonth()==e?i.removeClass("fc-other-month"):i.addClass("fc-other-month");+r==+h?i.addClass(nt+"-state-highlight fc-today"):i.removeClass(nt+"-state-highlight fc-today");i.find("div.fc-day-number").text(r.getDate());f&&lt(i,r)});a.each(function(t,i){u=n(i);t<c?(u.show(),t==c-1?u.addClass("fc-last"):u.removeClass("fc-last")):u.hide()})}function bi(t){ii=t;t=ii-d.height();var i,r,u;l("weekMode")=="variable"?i=r=Math.floor(t/(c==1?2:6)):(i=Math.floor(t/c),r=t-i*(c-1));gt.each(function(t,f){t<c&&(u=n(f),b(u.find("> div"),(t==c-1?r:i)-p(u)))})}function ki(n){ht=n;ft.clear();at=Math.floor(ht/h);y(tt.slice(0,-1),at)}function vt(n){n.click(di).mousedown(vr)}function di(n){if(!l("selectable")){var t=parseInt(this.className.match(/fc\-day(\d+)/)[1]);t=et(t);ot("dayClick",this,t,!0,n)}}function yt(n,t,u){var a,s,f,l,y;for(u&&rt.build(),u=i(o.visStart),a=r(i(u),h),s=0;s<c;s++)f=new Date(Math.max(u,n)),l=new Date(Math.min(a,t)),f<l&&(ri?(y=e(l,u)*v+w+1,f=e(f,u)*v+w+1):(y=e(f,u),f=e(l,u)),vt(pt(s,y,s,f-1))),r(u,7),r(a,7)}function pt(n,i,r,u){return n=rt.rect(n,i,r,u,t),ar(n,t)}function gi(n){return i(n)}function nr(n,t){yt(n,r(i(t),1),!0)}function tr(){st()}function ir(n,t,i){var r=wt(n);ot("dayClick",g[r.row*h+r.col],n,t,i)}function rr(n,t){ut.start(function(n){st();n&&pt(n.row,n.col,n.row,n.col)},t)}function ur(n,t,i){var r=ut.stop();st();r&&(r=bt(r),ot("drop",n,r,!0,t,i))}function fr(n){return i(n.start)}function er(n){return ft.left(n)}function or(n){return ft.right(n)}function wt(n){return{row:Math.floor(e(n,o.visStart)/7),col:dt(n.getDay())}}function bt(n){return kt(n.row,n.col)}function kt(n,t){return r(i(o.visStart),n*7+t*v+w)}function et(n){return kt(Math.floor(n/h),n%h)}function dt(n){return(n-Math.max(ui,fi)+h)%h*v+w}function hr(n){return a.eq(n)}function cr(){return{left:0,right:ht}}var o=this;o.renderBasic=vi;o.setHeight=bi;o.setWidth=ki;o.renderDayOverlay=yt;o.defaultSelectionEnd=gi;o.renderSelection=nr;o.clearSelection=tr;o.reportDayClick=ir;o.dragStart=rr;o.dragStop=ur;o.defaultEventEnd=fr;o.getHoverListener=function(){return ut};o.colContentLeft=er;o.colContentRight=or;o.dayOfWeekCol=dt;o.dateCell=wt;o.cellDate=bt;o.cellIsAllDay=function(){return!0};o.allDayRow=hr;o.allDayBounds=cr;o.getRowCnt=function(){return c};o.getColCnt=function(){return h};o.getColWidth=function(){return at};o.getDaySegmentContainer=function(){return ti};ei.call(o,t,u,f);hi.call(o);si.call(o);sr.call(o);var l=o.opt,ot=o.trigger,lr=o.clearEvents,ar=o.renderOverlay,st=o.clearOverlays,vr=o.daySelectionMousedown,yr=u.formatDate,d,tt,it,a,g,gt,ni,ti,ht,ii,at,c,h,rt,ut,ft,ri,v,w,ui,fi,nt,oi;ct(t.addClass("fc-grid"));rt=new ci(function(t,i){var f,r,u;tt.each(function(t,e){f=n(e);r=f.offset().left;t&&(u[1]=r);u=[r];i[t]=u});u[1]=r+f.outerWidth();a.each(function(i,e){i<c&&(f=n(e),r=f.offset().top,i&&(u[1]=r),u=[r],t[i]=u)});u[1]=r+f.outerHeight()});ut=new li(rt);ft=new ai(function(n){return ni.eq(n)})}function sr(){function s(n,t){p(n);ft(f(n),t)}function h(){w();nt().empty()}function f(u){var w=rt(),e=ut(),c=i(t.visStart),p,o,l,f,a,s,h,y;for(e=r(i(c),e),p=n.map(u,v),y=[],o=0;o<w;o++){for(l=ot(et(u,p,c,e)),f=0;f<l.length;f++)for(a=l[f],s=0;s<a.length;s++)h=a[s],h.row=o,h.level=f,y.push(h);r(c,7);r(e,7)}return y}function c(n,t,i){a(n)&&l(n,t);i.isEnd&&y(n)&&st(n,t,i);b(n,t)}function l(n,t){var s=tt(),f;t.draggable({zIndex:9,delay:50,opacity:u("dragOpacity"),revertDuration:u("dragRevertDuration"),start:function(h,c){e("eventDragStart",t,n,h,c);d(n,t);s.start(function(e,s,h,c){t.draggable("option","revert",!e||!h&&!c);o();e?(f=h*7+c*(u("isRTL")?-1:1),it(r(i(n.start),f),r(v(n),f))):f=0},h,"drag")},stop:function(i,r){s.stop();o();e("eventDragStop",t,n,i,r);f?g(this,n,f,0,n.allDay,i,r):(t.css("filter",""),k(n,t))}})}var t=this;t.renderEvents=s;t.compileDaySegs=f;t.clearEvents=h;t.bindDaySeg=c;oi.call(t);var u=t.opt,e=t.trigger,a=t.isEventDraggable,y=t.isEventResizable,p=t.reportEvents,w=t.reportEventClear,b=t.eventElementHandlers,k=t.showEvents,d=t.hideEvents,g=t.eventDrop,nt=t.getDaySegmentContainer,tt=t.getHoverListener,it=t.renderDayOverlay,o=t.clearOverlays,rt=t.getRowCnt,ut=t.getColCnt,ft=t.renderDaySegs,st=t.resizableDayEvent}function hr(n,t){function e(n,t){t&&r(n,t*7);n=r(i(n),-((n.getDay()-f("firstDay")+7)%7));t=r(i(n),7);var e=i(n),c=i(t),l=f("weekends");l||(o(e),o(c,-1,!0));u.title=h(e,r(i(c),-1),f("titleFormat"));u.start=n;u.end=t;u.visStart=e;u.visEnd=c;s(l?7:5)}var u=this;u.render=e;fi.call(u,n,t,"agendaWeek");var f=u.opt,s=u.renderAgenda,h=t.formatDates}function cr(n,t){function e(n,t){t&&(r(n,t),f("weekends")||o(n,t<0?-1:1));t=i(n,!0);var e=r(i(t),1);u.title=h(n,f("titleFormat"));u.start=u.visStart=t;u.end=u.visEnd=e;s(1)}var u=this;u.render=e;fi.call(u,n,t,"agendaDay");var f=u.opt,s=u.renderAgenda,h=t.formatDate}function fi(f,o,h){function uu(n){a=n;fu();st?uf():eu();ou()}function fu(){gt=l("theme")?"ui":"fc";tu=l("weekends")?0:1;nu=l("firstDay");(iu=l("isRTL"))?(g=-1,nt=a-1):(g=1,nt=0);et=ut(l("minTime"));yi=ut(l("maxTime"));ru=l("columnFormat")}function eu(){for(var e=gt+"-widget-header",s=gt+"-widget-content",o,c,h,y=l("slotMinutes")%15==0,t="<table style='width:100%' class='fc-agenda-days fc-border-separate' cellspacing='0'><thead><tr><th class='fc-agenda-axis "+e+"'>&nbsp;<\/th>",r=0;r<a;r++)t+="<th class='fc- fc-col"+r+" "+e+"'/>";for(t+="<th class='fc-agenda-gutter "+e+"'>&nbsp;<\/th><\/tr><\/thead><tbody><tr><th class='fc-agenda-axis "+e+"'>&nbsp;<\/th>",r=0;r<a;r++)t+="<td class='fc- fc-col"+r+" "+s+"'><div><div class='fc-day-content'><div style='position:relative'>&nbsp;<\/div><\/div><\/div><\/td>";for(t+="<td class='fc-agenda-gutter "+s+"'>&nbsp;<\/td><\/tr><\/tbody><\/table>",st=n(t).appendTo(f),wt=st.find("thead"),ri=wt.find("th").slice(1,-1),bt=st.find("tbody"),tt=bt.find("td").slice(0,-1),yr=tt.find("div.fc-day-content div"),di=tt.eq(0),pr=di.find("> div"),k(wt.add(wt.find("tr"))),k(bt.add(bt.find("tr"))),ht=wt.find("th:first"),at=st.find(".fc-agenda-gutter"),d=n("<div style='position:absolute;z-index:2;left:0;width:100%'/>").appendTo(f),l("allDaySlot")?(gi=n("<div style='position:absolute;z-index:8;top:0;left:0'/>").appendTo(d),t="<table style='width:100%' class='fc-agenda-allday' cellspacing='0'><tr><th class='"+e+" fc-agenda-axis'>"+l("allDayText")+"<\/th><td><div class='fc-day-content'><div style='position:relative'/><\/div><\/td><th class='"+e+" fc-agenda-gutter'>&nbsp;<\/th><\/tr><\/table>",ui=n(t).appendTo(d),fi=ui.find("tr"),rr(fi.find("td")),ht=ht.add(ui.find("th:first")),at=at.add(ui.find("th.fc-agenda-gutter")),d.append("<div class='fc-agenda-divider "+e+"'><div class='fc-agenda-divider-inner'/><\/div>")):gi=n([]),v=n("<div style='position:absolute;width:100%;overflow-x:hidden;overflow-y:auto'/>").appendTo(d),b=n("<div style='position:relative;width:100%;overflow:hidden'/>").appendTo(v),wr=n("<div style='position:absolute;z-index:8;top:0;left:0'/>").appendTo(b),t="<table class='fc-agenda-slots' style='width:100%' cellspacing='0'><tbody>",o=yt(),c=u(i(o),yi),u(o,et),r=tr=0;o<c;r++)h=o.getMinutes(),t+="<tr class='fc-slot"+r+" "+(h?"fc-minor":"")+"'><th class='fc-agenda-axis "+e+"'>"+(!y||!h?vr(o,l("axisFormat")):"&nbsp;")+"<\/th><td class='"+s+"'><div style='position:relative'>&nbsp;<\/div><\/td><\/tr>",u(o,l("slotMinutes")),tr++;t+="<\/tbody><\/table>";it=n(t).appendTo(b);br=it.find("div:first");pi(it.find("td"));ht=ht.add(it.find("th:first"))}function ou(){for(var r,t,i,u=s(new Date),n=0;n<a;n++)i=wi(n),r=ri.eq(n),r.html(vr(i,ru)),t=tt.eq(n),+i==+u?t.addClass(gt+"-state-highlight fc-today"):t.removeClass(gt+"-state-highlight fc-today"),lt(r.add(t),i)}function su(n,i){n===t&&(n=dr);dr=n;ir={};var r=bt.position().top,u=v.position().top;n=Math.min(n-r,it.height()+u+1);pr.height(n-p(di));d.css("top",r);v.height(n-u-1);kt=br.height()+1;i&&cu()}function hu(t){kr=t;vi.clear();rt=0;y(ht.width("").each(function(t,i){rt=Math.max(rt,n(i).outerWidth())}),rt);t=v[0].clientWidth;(nr=v.width()-t)?(y(at,nr),at.show().prev().removeClass("fc-last")):at.hide().prev().addClass("fc-last");oi=Math.floor((t-rt)/a);y(ri.slice(0,-1),oi)}function cu(){function n(){v.scrollTop(u)}var t=yt(),r=i(t),u;r.setHours(l("firstHour"));u=ot(t,r)+1;n();setTimeout(n,0)}function lu(){gr=v.scrollTop()}function au(){v.scrollTop(gr)}function rr(n){n.click(ur).mousedown(of)}function pi(n){n.click(ur).mousedown(nf)}function ur(n){var u;if(!l("selectable")){var r=Math.min(a-1,Math.floor((n.pageX-st.offset().left-rt)/oi)),i=wi(r),t=this.parentNode.className.match(/fc-slot(\d+)/);t?(t=parseInt(t[1])*l("slotMinutes"),u=Math.floor(t/60),i.setHours(u),i.setMinutes(t%60+et),ii("dayClick",tt[r],i,!1,n)):ii("dayClick",tt[r],i,!0,n)}}function fr(n,t,r){r&&ft.build();var u=i(c.visStart);iu?(r=e(t,u)*g+nt+1,n=e(n,u)*g+nt+1):(r=e(n,u),n=e(t,u));r=Math.max(0,r);n=Math.min(a,n);r<n&&rr(er(0,r,0,n-1))}function er(n,t,i,r){return n=ft.rect(n,t,i,r,d),ar(n,d)}function or(n,t){for(var f,o,u,e=i(c.visStart),h=r(i(e),1),s=0;s<a;s++)f=new Date(Math.max(e,n)),o=new Date(Math.min(h,t)),f<o&&(u=s*g+nt,u=ft.rect(0,u,0,u,b),f=ot(e,f),o=ot(e,o),u.top=f,u.height=o-f,pi(ar(u,b))),r(e,1),r(h,1)}function vu(n){return vi.left(n)}function yu(n){return vi.right(n)}function pu(n){return{row:Math.floor(e(n,c.visStart)/7),col:bi(n.getDay())}}function pt(n){var t=wi(n.col);return n=n.row,l("allDaySlot")&&n--,n>=0&&u(t,et+n*l("slotMinutes")),t}function wi(n){return r(i(c.visStart),n*g+nt)}function ni(n){return l("allDaySlot")&&!n.row}function bi(n){return(n-Math.max(nu,tu)+a)%a*g+nt}function ot(n,r){if(n=i(n,!0),r<u(i(n),et))return 0;if(r>=u(i(n),yi))return it.height();n=l("slotMinutes");r=r.getHours()*60+r.getMinutes()-et;var f=Math.floor(r/n),e=ir[f];return e===t&&(e=ir[f]=it.find("tr:eq("+f+") td div")[0].offsetTop),Math.max(0,Math.round(e-1+kt*(r%n/n)))}function wu(){return{left:rt,right:kr-nr}}function bu(){return fi}function ku(n){var t=i(n.start);return n.allDay?t:u(t,l("defaultEventMinutes"))}function du(n,t){return t?i(n):u(i(n),l("slotMinutes"))}function gu(n,t,u){u?l("allDaySlot")&&fr(n,r(i(t),1),!0):sr(n,t)}function sr(t,i){var f=l("selectHelper"),r,u,o;ft.build();f?(r=e(t,c.visStart)*g+nt,r>=0&&r<a&&(r=ft.rect(0,r,0,r,b),u=ot(t,t),o=ot(t,i),o>u&&(r.top=u,r.height=o-u,r.left+=2,r.width-=5,n.isFunction(f)?(t=f(t,i))&&(r.position="absolute",r.zIndex=8,w=n(t).css(r).appendTo(b)):(r.isStart=!0,r.isEnd=!0,w=n(sf({title:"",start:t,end:i,className:["fc-select-helper"],editable:!1},r)),w.css("opacity",l("dragOpacity"))),w&&(pi(w),b.append(w),y(w,r.width,!0),dt(w,r.height,!0))))):or(t,i)}function hr(){ki();w&&(w.remove(),w=null)}function nf(t){if(t.which==1&&l("selectable")){ef(t);var r;vt.start(function(n,t){hr();n&&n.col==t.col&&!ni(n)?(t=pt(t),n=pt(n),r=[t,u(i(t),l("slotMinutes")),n,u(i(n),l("slotMinutes"))].sort(ti),sr(r[0],r[3])):r=null},t);n(document).one("mouseup",function(n){vt.stop();r&&(+r[0]==+r[1]&&cr(r[0],!1,n),ff(r[0],r[3],!1,n))})}}function cr(n,t,i){ii("dayClick",tt[bi(n.getDay())],n,t,i)}function tf(n,t){vt.start(function(n){if(ki(),n)if(ni(n))er(n.row,n.col,n.row,n.col);else{n=pt(n);var t=u(i(n),l("defaultEventMinutes"));or(n,t)}},t)}function rf(n,t,i){var r=vt.stop();ki();r&&ii("drop",n,pt(r),ni(r),t,i)}var c=this;c.renderAgenda=uu;c.setWidth=hu;c.setHeight=su;c.beforeHide=lu;c.afterShow=au;c.defaultEventEnd=ku;c.timePosition=ot;c.dayOfWeekCol=bi;c.dateCell=pu;c.cellDate=pt;c.cellIsAllDay=ni;c.allDayRow=bu;c.allDayBounds=wu;c.getHoverListener=function(){return vt};c.colContentLeft=vu;c.colContentRight=yu;c.getDaySegmentContainer=function(){return gi};c.getSlotSegmentContainer=function(){return wr};c.getMinMinute=function(){return et};c.getMaxMinute=function(){return yi};c.getBodyContent=function(){return b};c.getRowCnt=function(){return 1};c.getColCnt=function(){return a};c.getColWidth=function(){return oi};c.getSlotHeight=function(){return kt};c.defaultSelectionEnd=du;c.renderDayOverlay=fr;c.renderSelection=gu;c.clearSelection=hr;c.reportDayClick=cr;c.dragStart=tf;c.dragStop=rf;ei.call(c,f,o,h);hi.call(c);si.call(c);lr.call(c);var l=c.opt,ii=c.trigger,uf=c.clearEvents,ar=c.renderOverlay,ki=c.clearOverlays,ff=c.reportSelection,ef=c.unselect,of=c.daySelectionMousedown,sf=c.slotSegHtml,vr=o.formatDate,st,wt,ri,bt,tt,yr,di,pr,d,gi,ui,fi,v,b,wr,it,br,ht,at,w,kr,dr,rt,oi,nr,kt,gr,a,tr,ft,vt,vi,ir={},gt,nu,tu,iu,g,nt,et,yi,ru;ct(f.addClass("fc-agenda"));ft=new ci(function(t,i){function o(n){return Math.max(h,Math.min(c,n))}var u,r,f;ri.each(function(t,e){u=n(e);r=u.offset().left;t&&(f[1]=r);f=[r];i[t]=f});f[1]=r+u.outerWidth();l("allDaySlot")&&(u=fi,r=u.offset().top,t[0]=[r,r+u.outerHeight()]);for(var s=b.offset().top,h=v.offset().top,c=h+v.outerHeight(),e=0;e<tr;e++)t.push([o(s+kt*e),o(s+kt*(e+1))])});vt=new li(ft);vi=new ai(function(n){return yr.eq(n)})}function lr(){function vt(n,t){ei(n);for(var f=n.length,r=[],u=[],i=0;i<f;i++)n[i].allDay?r.push(n[i]):u.push(n[i]);e("allDaySlot")&&(yi(d(r),t),hi());bt(pt(u),t)}function yt(){si();ci().empty();it().empty()}function d(t){t=ot(et(t,n.map(t,v),f.visStart,f.visEnd));for(var s=t.length,e,r,u,o=[],i=0;i<s;i++)for(e=t[i],r=0;r<e.length;r++)u=e[r],u.row=0,u.level=i,o.push(u);return o}function pt(t){for(var w=l(),y=ut(),b=li(),a=u(i(f.visStart),y),k=n.map(t,wt),s,e,v,h,c,p=[],o=0;o<w;o++){for(s=ot(et(t,k,a,u(i(a),b-y))),ar(s),e=0;e<s.length;e++)for(v=s[e],h=0;h<v.length;h++)c=v[h],c.col=o,c.level=e,p.push(c);r(a,1,!0)}return p}function wt(n){return n.end?i(n.end):u(i(n.start),e("defaultEventMinutes"))}function bt(i,r){var s,k=i.length,u,h,ut,ot,y,v,w,et,a,f="",d,c,b={},ht={},tt=it(),rt;for(s=l(),(d=e("isRTL"))?(c=-1,rt=s-1):(c=1,rt=0),s=0;s<k;s++)u=i[s],h=u.event,ut=ft(u.start,u.start),ot=ft(u.start,u.end),y=u.col,v=u.level,w=u.forward||0,et=ai(y*c+rt),a=vi(y*c+rt)-et,a=Math.min(a-6,a*.95),y=v?a/(v+w+1):w?(a/(w+1)-6)*2:a,v=et+a/(v+w+1)*v*c+(d?a-y:0),u.top=ut,u.left=v,u.outerWidth=y,u.outerHeight=ot-ut,f+=g(h,u);for(tt[0].innerHTML=f,d=tt.children(),s=0;s<k;s++)u=i[s],h=u.event,f=n(d[s]),c=o("eventRender",h,h,f),c===!1?f.remove():(c&&c!==!0&&(f.remove(),f=n(c).css({position:"absolute",top:u.top,left:u.left}).appendTo(tt)),u.element=f,h._id===r?nt(h,f,u):f[0]._fci=s,bi(h,f));for(kt(tt,i,nt),s=0;s<k;s++)u=i[s],(f=u.element)&&(h=b[r=u.key=ri(f[0])],u.vsides=h===t?b[r]=p(f,!0):h,h=ht[r],u.hsides=h===t?ht[r]=st(f,!0):h,r=f.find("div.fc-event-content"),r.length&&(u.contentTop=r[0].offsetTop));for(s=0;s<k;s++)u=i[s],(f=u.element)&&(f[0].style.width=Math.max(0,u.outerWidth-u.hsides)+"px",b=Math.max(0,u.outerHeight-u.vsides),f[0].style.height=b+"px",h=u.event,u.contentTop!==t&&b-u.contentTop<10&&(f.find("div.fc-event-time").text(di(h.start,e("timeFormat"))+" - "+h.title),f.find("div.fc-event-title").remove()),o("eventAfterRender",h,h,f))}function g(n,t){var r="<",f=n.url,u=ui(n,e),o=u?" style='"+u+"'":"",i=["fc-event","fc-event-skin","fc-event-vert"];return h(n)&&i.push("fc-event-draggable"),t.isStart&&i.push("fc-corner-top"),t.isEnd&&i.push("fc-corner-bottom"),i=i.concat(n.className),n.source&&(i=i.concat(n.source.className||[])),r+=f?"a href='"+a(n.url)+"'":"div",r+=" class='"+i.join(" ")+"' style='position:absolute;z-index:8;top:"+t.top+"px;left:"+t.left+"px;"+u+"'><div class='fc-event-inner fc-event-skin'"+o+"><div class='fc-event-head fc-event-skin'"+o+"><div class='fc-event-time'>"+a(k(n.start,n.end,e("timeFormat")))+"<\/div><\/div><div class='fc-event-content'><div class='fc-event-title'>"+a(n.title)+"<\/div><\/div><div class='fc-event-bg'><\/div><\/div>",t.isEnd&&c(n)&&(r+="<div class='ui-resizable-handle ui-resizable-s'>=<\/div>"),r+("<\/"+(f?"a":"div")+">")}function gt(n,t,i){h(n)&&ni(n,t,i.isStart);i.isEnd&&c(n)&&pi(n,t,i);tt(n,t)}function nt(n,t,i){var r=t.find("div.fc-event-time");h(n)&&ti(n,t,r);i.isEnd&&c(n)&&ii(n,t,r);tt(n,t)}function ni(n,t,u){function l(){h||(t.width(a).height("").draggable("option","grid",null),h=!0)}var a,f,h=!0,c,g=e("isRTL")?-1:1,p=rt(),k=ht(),d=y(),nt=ut();t.draggable({zIndex:9,opacity:e("dragOpacity","month"),revertDuration:e("dragRevertDuration"),start:function(y,w){o("eventDragStart",t,n,y,w);b(n,t);a=t.width();p.start(function(o,a,y,p){s();o?(f=!1,c=p*g,o.row?u?h&&(t.width(k-10),dt(t,d*Math.round((n.end?(n.end-n.start)/br:e("defaultEventMinutes"))/e("slotMinutes"))),t.draggable("option","grid",[k,1]),h=!1):f=!0:(lt(r(i(n.start),c),r(v(n),c)),l()),f=f||h&&!c):(l(),f=!0);t.draggable("option","revert",f)},y,"drag")},stop:function(i,r){if(p.stop(),s(),o("eventDragStop",t,n,i,r),f)l(),t.css("filter",""),w(n,t);else{var u=0;h||(u=Math.round((t.offset().top-wi().offset().top)/d)*e("slotMinutes")+nt-(n.start.getHours()*60+n.start.getMinutes()));ct(this,n,c,u,h,i,r)}}})}function ti(n,t,f){function nt(t){var o=u(i(n.start),t),r;n.end&&(r=u(i(n.end),t));f.text(k(o,r,e("timeFormat")))}function tt(){h&&(f.css("display",""),t.draggable("option","grid",[ut,g]),h=!1)}var p,h=!1,a,c,d,ft=e("isRTL")?-1:1,it=rt(),et=l(),ut=ht(),g=y();t.draggable({zIndex:9,scroll:!1,grid:[ut,g],axis:et==1?"y":!1,opacity:e("dragOpacity"),revertDuration:e("dragRevertDuration"),start:function(u,l){o("eventDragStart",t,n,u,l);b(n,t);p=t.position();c=d=0;it.start(function(u,o,c,l){t.draggable("option","revert",!u);s();u&&(a=l*ft,e("allDaySlot")&&!u.row?(h||(h=!0,f.hide(),t.draggable("option","grid",null)),lt(r(i(n.start),a),r(v(n),a))):tt())},u,"drag")},drag:function(n,t){c=Math.round((t.position.top-p.top)/g)*e("slotMinutes");c!=d&&(h||nt(c),d=c)},stop:function(i,r){var u=it.stop();s();o("eventDragStop",t,n,i,r);u&&(a||c||h)?ct(this,n,a,h?0:c,h,i,r):(tt(),t.css("filter",""),t.css(p),nt(0),w(n,t))}})}function ii(n,t,i){var r,f,s=y();t.resizable({handles:{s:"div.ui-resizable-s"},grid:s,start:function(i,u){r=f=0;b(n,t);t.css("z-index",9);o("eventResizeStart",this,n,i,u)},resize:function(o,h){r=Math.round((Math.max(s,t.height())-h.originalSize.height)/s);r!=f&&(i.text(k(n.start,!r&&!n.end?null:u(fi(n),e("slotMinutes")*r),e("timeFormat"))),f=r)},stop:function(i,u){o("eventResizeStop",this,n,i,u);r?ki(this,n,0,e("slotMinutes")*r,i,u):(t.css("z-index",8),w(n,t))}})}var f=this;f.renderEvents=vt;f.compileDaySegs=d;f.clearEvents=yt;f.slotSegHtml=g;f.bindDaySeg=gt;oi.call(f);var e=f.opt,o=f.trigger,h=f.isEventDraggable,c=f.isEventResizable,fi=f.eventEnd,ei=f.reportEvents,si=f.reportEventClear,tt=f.eventElementHandlers,hi=f.setHeight,ci=f.getDaySegmentContainer,it=f.getSlotSegmentContainer,rt=f.getHoverListener,li=f.getMaxMinute,ut=f.getMinMinute,ft=f.timePosition,ai=f.colContentLeft,vi=f.colContentRight,yi=f.renderDaySegs,pi=f.resizableDayEvent,l=f.getColCnt,ht=f.getColWidth,y=f.getSlotHeight,wi=f.getBodyContent,bi=f.reportEventElement,w=f.showEvents,b=f.hideEvents,ct=f.eventDrop,ki=f.eventResize,lt=f.renderDayOverlay,s=f.clearOverlays,at=f.calendar,di=at.formatDate,k=at.formatDates}function ar(n){for(var i,r,f,e,u,t=n.length-1;t>0;t--)for(f=n[t],i=0;i<f.length;i++)for(e=f[i],r=0;r<n[t-1].length;r++)u=n[t-1][r],bt(e,u)&&(u.forward=Math.max(u.forward||0,(e.forward||0)+1))}function ei(n,f,e){function l(n,t){return(n=v[n],typeof n=="object")?ht(n,t||e):n}function h(n,t){return f.trigger.apply(f,[n,t||o].concat(Array.prototype.slice.call(arguments,2),[o]))}function tt(n){return y(n)&&!l("disableDragging")}function it(n){return y(n)&&!l("disableResizing")}function y(n){return w(n.editable,(n.source||{}).editable,l("editable"))}function rt(n){s={};for(var r=n.length,t,i=0;i<r;i++)t=n[i],s[t._id]?s[t._id].push(t):s[t._id]=[t]}function p(n){return n.end?i(n.end):at(n)}function ut(n,t){nt.push(t);c[n._id]?c[n._id].push(t):c[n._id]=[t]}function ft(){nt=[];c={}}function et(n,t){t.click(function(i){if(!t.hasClass("ui-draggable-dragging")&&!t.hasClass("ui-resizable-resizing"))return h("eventClick",this,n,i)}).hover(function(t){h("eventMouseover",this,n,t)},function(t){h("eventMouseout",this,n,t)})}function ot(n,t){b(n,t,"show")}function st(n,t){b(n,t,"hide")}function b(n,t,i){n=c[n._id];for(var u=n.length,r=0;r<u;r++)t&&n[r][0]==t[0]||n[r][i]()}function ct(n,t,i,r,u,f,e){var c=t.allDay,o=t._id;k(s[o],i,r,u);h("eventDrop",n,t,i,r,u,function(){k(s[o],-i,-r,c);a(o)},f,e);a(o)}function lt(n,t,i,r,u,f){var e=t._id;d(s[e],i,r);h("eventResize",n,t,i,r,function(){d(s[e],-i,-r);a(e)},u,f);a(e)}function k(n,i,f,e){f=f||0;for(var o,h=n.length,s=0;s<h;s++)o=n[s],e!==t&&(o.allDay=e),u(r(o.start,i,!0),f),o.end&&(o.end=u(r(o.end,i,!0),f)),g(o,v)}function d(n,t,i){i=i||0;for(var f,o=n.length,e=0;e<o;e++)f=n[e],f.end=u(r(p(f),t,!0),i),g(f,v)}var o=this;o.element=n;o.calendar=f;o.name=e;o.opt=l;o.trigger=h;o.isEventDraggable=tt;o.isEventResizable=it;o.reportEvents=rt;o.eventEnd=p;o.reportEventElement=ut;o.reportEventClear=ft;o.eventElementHandlers=et;o.showEvents=ot;o.hideEvents=st;o.eventDrop=ct;o.eventResize=lt;var at=o.defaultEventEnd,g=f.normalizeEvent,a=f.reportEventChange,s={},nt=[],c={},v=f.options}function oi(){function rt(n,t){var i=nt(),a=s(),d=k(),o=0,f,r,g=n.length,u,e;for(i[0].innerHTML=h(n),c(n,i.children()),ft(n),et(n,i,t),l(n),v(n),y(n),t=p(),i=0;i<a;i++){for(f=[],r=0;r<d;r++)f[r]=0;for(;o<g&&(u=n[o]).row==i;){for(r=ii(f.slice(u.startCol,u.endCol)),u.top=r,r+=u.outerHeight,e=u.startCol;e<u.endCol;e++)f[e]=r;o++}t[i].height(ii(f))}b(n,w(t))}function ut(t,i,r){var u=n("<div/>"),f=nt(),o=t.length,e;for(u[0].innerHTML=h(t),u=u.children(),f.append(u),c(t,u),l(t),v(t),y(t),b(t,w(p())),u=[],f=0;f<o;f++)(e=t[f].element)&&(t[f].row===i&&e.css("top",r),u.push(e[0]));return n(u)}function h(n){var p=f("isRTL"),u,k=n.length,t,i,l,r;u=dt();var w=u.left,b=u.right,s,h,c,y,v,e="";for(u=0;u<k;u++)t=n[u],i=t.event,r=["fc-event","fc-event-skin","fc-event-hori"],ht(i)&&r.push("fc-event-draggable"),p?(t.isStart&&r.push("fc-corner-right"),t.isEnd&&r.push("fc-corner-left"),s=o(t.end.getDay()-1),h=o(t.start.getDay()),c=t.isEnd?d(s):w,y=t.isStart?g(h):b):(t.isStart&&r.push("fc-corner-left"),t.isEnd&&r.push("fc-corner-right"),s=o(t.start.getDay()),h=o(t.end.getDay()-1),c=t.isStart?d(s):w,y=t.isEnd?g(h):b),r=r.concat(i.className),i.source&&(r=r.concat(i.source.className||[])),l=i.url,v=ui(i,f),e+=l?"<a href='"+a(l)+"'":"<div",e+=" class='"+r.join(" ")+"' style='position:absolute;z-index:8;left:"+c+"px;"+v+"'><div class='fc-event-inner fc-event-skin'"+(v?" style='"+v+"'":"")+">",!i.allDay&&t.isStart&&(e+="<span class='fc-event-time'>"+a(fi(i.start,i.end,f("timeFormat")))+"<\/span>"),e+="<span class='fc-event-title'>"+a(i.title)+"<\/span><\/div>",t.isEnd&&lt(i)&&(e+="<div class='ui-resizable-handle ui-resizable-"+(p?"w":"e")+"'>&nbsp;&nbsp;&nbsp;<\/div>"),e+="<\/"+(l?"a":"div")+">",t.left=c,t.outerWidth=y-c,t.startCol=s,t.endCol=h+1;return e}function c(t,i){for(var s=t.length,o,r,u,f=0;f<s;f++)o=t[f],r=o.event,u=n(i[f]),r=e("eventRender",r,r,u),r===!1?u.remove():(r&&r!==!0&&(r=n(r).css({position:"absolute",left:o.left}),u.replaceWith(r),u=r),o.element=u)}function ft(n){for(var u=n.length,i,r,t=0;t<u;t++)i=n[t],(r=i.element)&&vt(i.event,r)}function et(n,t,i){for(var o=n.length,u,f,e,r=0;r<o;r++)u=n[r],(f=u.element)&&(e=u.event,e._id===i?tt(e,f,u):f[0]._fci=r);kt(t,n,tt)}function l(n){for(var s=n.length,r,f,e,u,o={},i=0;i<s;i++)r=n[i],(f=r.element)&&(e=r.key=ri(f[0]),u=o[e],u===t&&(u=o[e]=st(f,!0)),r.hsides=u)}function v(n){for(var u=n.length,i,r,t=0;t<u;t++)i=n[t],(r=i.element)&&(r[0].style.width=Math.max(0,i.outerWidth-i.hsides)+"px")}function y(n){for(var s=n.length,r,f,e,u,o={},i=0;i<s;i++)r=n[i],(f=r.element)&&(e=r.key,u=o[e],u===t&&(u=o[e]=gt(f)),r.outerHeight=f[0].offsetHeight+u)}function p(){for(var i=s(),t=[],n=0;n<i;n++)t[n]=bt(n).find("td:first div.fc-day-content > div");return t}function w(n){for(var r=n.length,i=[],t=0;t<r;t++)i[t]=n[t][0].offsetTop;return i}function b(n,t){for(var f=n.length,i,u,r=0;r<f;r++)i=n[r],(u=i.element)&&(u[0].style.top=t[i.row]+(i.top||0)+"px",i=i.event,e("eventAfterRender",i,i,u))}function ot(t,o,h){var c=f("isRTL"),l=c?"w":"e",v=o.find("div.ui-resizable-"+l),a=!1;ct(o);o.mousedown(function(n){n.preventDefault()}).click(function(n){a&&(n.preventDefault(),n.stopImmediatePropagation())});v.mousedown(function(f){function nt(i){e("eventResizeStop",this,t,i);n("body").css("cursor","");w.stop();it();y&&wt(this,t,y,0,i);setTimeout(function(){a=!1},0)}if(f.which==1){a=!0;var w=u.getHoverListener(),tt=s(),rt=k(),b=c?-1:1,d=c?rt-1:0,ft=o.css("top"),y,v,g=n.extend({},t),p=ni(t.start);oi();n("body").css("cursor",l+"-resize").one("mouseup",nt);e("eventResizeStart",this,t,f);w.start(function(n,u){if(n){var f=Math.max(p.row,n.row);n=n.col;tt==1&&(f=0);f==p.row&&(n=c?Math.min(p.col,n):Math.max(p.col,n));y=f*7+n*b+d-(u.row*7+u.col*b+d);u=r(at(t),y,!0);y?(g.end=u,f=v,v=ut(ti([g]),h.row,ft),v.find("*").css("cursor",l+"-resize"),f&&f.remove(),pt(t)):v&&(yt(t),v.remove(),v=null);it();ei(t.start,r(i(u),1))}},f)}})}var u=this;u.renderDaySegs=rt;u.resizableDayEvent=ot;var f=u.opt,e=u.trigger,ht=u.isEventDraggable,lt=u.isEventResizable,at=u.eventEnd,vt=u.reportEventElement,yt=u.showEvents,pt=u.hideEvents,wt=u.eventResize,s=u.getRowCnt,k=u.getColCnt,bt=u.allDayRow,dt=u.allDayBounds,d=u.colContentLeft,g=u.colContentRight,o=u.dayOfWeekCol,ni=u.dateCell,ti=u.compileDaySegs,nt=u.getDaySegmentContainer,tt=u.bindDaySeg,fi=u.calendar.formatDates,ei=u.renderDayOverlay,it=u.clearOverlays,oi=u.clearSelection}function si(){function h(n,t,r){i();t||(t=l(n,r));o(n,t,r);u(n,t,r)}function i(n){f&&(f=!1,s(),e("unselect",null,n))}function u(n,t,i,r){f=!0;e("select",null,n,t,i,r)}function c(f){var h=t.cellDate,l=t.cellIsAllDay,c=t.getHoverListener(),a=t.reportDayClick,e;if(f.which==1&&r("selectable")){i(f);c.start(function(n,t){s();n&&l(n)?(e=[h(t),h(n)].sort(ti),o(e[0],e[1],!0)):e=null},f);n(document).one("mouseup",function(n){c.stop();e&&(+e[0]==+e[1]&&a(e[0],!0,n),u(e[0],e[1],!0,n))})}}var t=this;t.select=h;t.unselect=i;t.reportSelection=u;t.daySelectionMousedown=c;var r=t.opt,e=t.trigger,l=t.defaultSelectionEnd,o=t.renderSelection,s=t.clearSelection,f=!1;r("selectable")&&r("unselectAuto")&&n(document).mousedown(function(t){var u=r("unselectCancel");u&&n(t.target).parents(u).length||i(t)})}function hi(){function u(r,u){var f=i.shift();return f||(f=n("<div class='fc-cell-overlay' style='position:absolute;z-index:3'/>")),f[0].parentNode!=u[0]&&f.appendTo(u),t.push(f.css(r).show()),f}function f(){for(var n;n=t.shift();)i.push(n.hide().unbind())}var r=this,t,i;r.renderOverlay=u;r.clearOverlays=f;t=[];i=[]}function ci(n){var r=this,t,i;r.build=function(){t=[];i=[];n(t,i)};r.cell=function(n,r){for(var o=t.length,s=i.length,f=-1,e=-1,u=0;u<o;u++)if(r>=t[u][0]&&r<t[u][1]){f=u;break}for(u=0;u<s;u++)if(n>=i[u][0]&&n<i[u][1]){e=u;break}return f>=0&&e>=0?{row:f,col:e}:null};r.rect=function(n,r,u,f,e){return e=e.offset(),{top:t[n][0]-e.top,left:i[r][0]-e.left,width:i[f][1]-i[r][0],height:t[u][1]-t[n][0]}}}function li(t){function u(n){vr(n);n=t.cell(n.pageX,n.pageY);(!n!=!r||n&&(n.row!=r.row||n.col!=r.col))&&(n?(i||(i=n),e(n,i,n.row-i.row,n.col-i.col)):e(n,i),r=n)}var o=this,f,e,i,r;o.start=function(o,s,h){e=o;i=r=null;t.build();u(s);f=h||"mousemove";n(document).bind(f,u)};o.stop=function(){return n(document).unbind(f,u),r}}function vr(n){n.pageX===t&&(n.pageX=n.originalEvent.pageX,n.pageY=n.originalEvent.pageY)}function ai(n){function e(t){return f[t]=f[t]||n(t)}var i=this,f={},r={},u={};i.left=function(n){return r[n]=r[n]===t?e(n).position().left:r[n]};i.right=function(n){return u[n]=u[n]===t?i.left(n)+e(n).width():u[n]};i.clear=function(){f={};r={};u={}}}var g={defaultView:"month",aspectRatio:1.35,header:{left:"title",center:"",right:"today prev,next"},weekends:!0,allDayDefault:!0,ignoreTimezone:!0,lazyFetching:!0,startParam:"start",endParam:"end",titleFormat:{month:"MMMM yyyy",week:"MMM d[ yyyy]{ '&#8212;'[ MMM] d yyyy}",day:"dddd, MMM d, yyyy"},columnFormat:{month:"ddd",week:"ddd M/d",day:"dddd M/d"},timeFormat:{"":"h(:mm)t"},isRTL:!1,firstDay:0,monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],buttonText:{prev:"&nbsp;&#9668;&nbsp;",next:"&nbsp;&#9658;&nbsp;",prevYear:"&nbsp;&lt;&lt;&nbsp;",nextYear:"&nbsp;&gt;&gt;&nbsp;",today:"today",month:"month",week:"week",day:"day"},theme:!1,buttonIcons:{prev:"circle-triangle-w",next:"circle-triangle-e"},unselectAuto:!0,dropAccept:"*"},yr={header:{left:"next,prev today",center:"",right:"title"},buttonText:{prev:"&nbsp;&#9658;&nbsp;",next:"&nbsp;&#9668;&nbsp;",prevYear:"&nbsp;&gt;&gt;&nbsp;",nextYear:"&nbsp;&lt;&lt;&nbsp;"},buttonIcons:{prev:"circle-triangle-e",next:"circle-triangle-w"}},f=n.fullCalendar={version:"1.5.4"},h=f.views={},vi,yi;n.fn.fullCalendar=function(i){var f,r,u;return typeof i=="string"?(f=Array.prototype.slice.call(arguments,1),this.each(function(){var u=n.data(this,"fullCalendar");u&&n.isFunction(u[i])&&(u=u[i].apply(u,f),r===t&&(r=u),i=="destroy"&&n.removeData(this,"fullCalendar"))}),r!==t)?r:this:(u=i.eventSources||[],delete i.eventSources,i.events&&(u.push(i.events),delete i.events),i=n.extend(!0,{},g,i.isRTL||i.isRTL===t&&g.isRTL?yr:{},i),this.each(function(t,r){t=n(r);r=new wi(t,i,u);t.data("fullCalendar",r);r.render()}),this)};f.sourceNormalizers=[];f.sourceFetchers=[];vi={dataType:"json",cache:!1};yi=1;f.addDays=r;f.cloneDate=i;f.parseDate=rt;f.parseISO8601=wt;f.parseTime=ut;f.formatDate=c;f.formatDates=ft;var pr=["sun","mon","tue","wed","thu","fri","sat"],pi=864e5,wr=36e5,br=6e4,kr={s:function(n){return n.getSeconds()},ss:function(n){return l(n.getSeconds())},m:function(n){return n.getMinutes()},mm:function(n){return l(n.getMinutes())},h:function(n){return n.getHours()%12||12},hh:function(n){return l(n.getHours()%12||12)},H:function(n){return n.getHours()},HH:function(n){return l(n.getHours())},d:function(n){return n.getDate()},dd:function(n){return l(n.getDate())},ddd:function(n,t){return t.dayNamesShort[n.getDay()]},dddd:function(n,t){return t.dayNames[n.getDay()]},M:function(n){return n.getMonth()+1},MM:function(n){return l(n.getMonth()+1)},MMM:function(n,t){return t.monthNamesShort[n.getMonth()]},MMMM:function(n,t){return t.monthNames[n.getMonth()]},yy:function(n){return(n.getFullYear()+"").substring(2)},yyyy:function(n){return n.getFullYear()},t:function(n){return n.getHours()<12?"a":"p"},tt:function(n){return n.getHours()<12?"am":"pm"},T:function(n){return n.getHours()<12?"A":"P"},TT:function(n){return n.getHours()<12?"AM":"PM"},u:function(n){return c(n,"yyyy-MM-dd'T'HH:mm:ss'Z'")},S:function(n){return(n=n.getDate(),n>10&&n<20)?"th":["st","nd","rd"][n%10-1]||"th"}};f.applyAll=d;h.month=fr;h.basicWeek=er;h.basicDay=or;vt({weekMode:"fixed"});h.agendaWeek=hr;h.agendaDay=cr;vt({allDaySlot:!0,allDayText:"all-day",firstHour:6,slotMinutes:30,defaultEventMinutes:120,axisFormat:"h(:mm)tt",timeFormat:{agenda:"h:mm{ - h:mm}"},dragOpacity:{agenda:.5},minTime:0,maxTime:24})}(jQuery),function(n){n.fn.areYouSure=function(t){var i=n.extend({message:"You have unsaved changes!",dirtyClass:"dirty",change:null,silent:!1,addRemoveFieldsMarksDirty:!1,fieldEvents:"change keyup propertychange input",fieldSelector:":input:not(input[type=submit]):not(input[type=button])"},t),f=function(t){if(t.hasClass("ays-ignore")||t.hasClass("aysIgnore")||t.attr("data-ays-ignore")||t.attr("name")===undefined)return null;if(t.is(":disabled"))return"ays-disabled";var i,r=t.attr("type");t.is("select")&&(r="select");switch(r){case"checkbox":case"radio":i=t.is(":checked");break;case"select":i="";t.find("option").each(function(){var t=n(this);t.is(":selected")&&(i+=t.val())});break;default:i=t.val()}return i},e=function(n){n.data("ays-orig",f(n))},u=function(t){var o=function(n){var t=n.data("ays-orig");return undefined===t?!1:f(n)!=t},u=n(this).is("form")?n(this):n(this).parents("form"),s,e;if(o(n(t.target))){r(u,!0);return}if($fields=u.find(i.fieldSelector),i.addRemoveFieldsMarksDirty&&(s=u.data("ays-orig-field-count"),s!=$fields.length)){r(u,!0);return}e=!1;$fields.each(function(){var t=n(this);if(o(t))return e=!0,!1});r(u,e)},o=function(t){var f=t.find(i.fieldSelector);n(f).each(function(){e(n(this))});n(f).unbind(i.fieldEvents,u);n(f).bind(i.fieldEvents,u);t.data("ays-orig-field-count",n(f).length);r(t,!1)},r=function(n,t){var r=t!=n.hasClass(i.dirtyClass);n.toggleClass(i.dirtyClass,t);r&&(i.change&&i.change.call(n,n),t&&n.trigger("dirty.areYouSure",[n]),t||n.trigger("clean.areYouSure",[n]),n.trigger("change.areYouSure",[n]))},s=function(){var t=n(this),r=t.find(i.fieldSelector);n(r).each(function(){var t=n(this);t.data("ays-orig")||(e(t),t.bind(i.fieldEvents,u))});t.trigger("checkform.areYouSure")},h=function(){o(n(this))};return i.silent||window.aysUnloadSet||(window.aysUnloadSet=!0,n(window).bind("beforeunload",function(){if($dirtyForms=n("form").filter("."+i.dirtyClass),$dirtyForms.length!=0){if(navigator.userAgent.toLowerCase().match(/msie|chrome/)){if(window.aysHasPrompted)return;window.aysHasPrompted=!0;window.setTimeout(function(){window.aysHasPrompted=!1},900)}return i.message}})),this.each(function(){if(n(this).is("form")){var t=n(this);t.submit(function(){t.removeClass(i.dirtyClass)});t.bind("reset",function(){r(t,!1)});t.bind("rescan.areYouSure",s);t.bind("reinitialize.areYouSure",h);t.bind("checkform.areYouSure",u);o(t)}})}}(jQuery);!function(n){var t=function(t,i){var r,u;this.element=n(t);this.picker=n('<div class="slider"><div class="slider-track"><div class="slider-selection"><\/div><div class="slider-handle"><\/div><div class="slider-handle"><\/div><\/div><div class="tooltip"><div class="tooltip-arrow"><\/div><div class="tooltip-inner"><\/div><\/div><\/div>').insertBefore(this.element).prepend(this.element);this.id=this.element.data("slider-id")||i.id;this.id&&(this.picker[0].id=this.id);typeof Modernizr!="undefined"&&Modernizr.touch&&(this.touchCapable=!0);r=this.element.data("slider-tooltip")||i.tooltip;this.tooltip=this.picker.find(".tooltip");this.tooltipInner=this.tooltip.find("div.tooltip-inner");this.orientation=this.element.data("slider-orientation")||i.orientation;switch(this.orientation){case"vertical":this.picker.addClass("slider-vertical");this.stylePos="top";this.mousePos="pageY";this.sizePos="offsetHeight";this.tooltip.addClass("right")[0].style.left="100%";break;default:this.picker.addClass("slider-horizontal").css("width",this.element.outerWidth());this.orientation="horizontal";this.stylePos="left";this.mousePos="pageX";this.sizePos="offsetWidth";this.tooltip.addClass("top")[0].style.top=-this.tooltip.outerHeight()-14+"px"}this.min=this.element.data("slider-min")||i.min;this.max=this.element.data("slider-max")||i.max;this.step=this.element.data("slider-step")||i.step;this.value=this.element.data("slider-value")||i.value;this.value[1]&&(this.range=!0);this.selection=this.element.data("slider-selection")||i.selection;this.selectionEl=this.picker.find(".slider-selection");this.selection==="none"&&this.selectionEl.addClass("hide");this.selectionElStyle=this.selectionEl[0].style;this.handle1=this.picker.find(".slider-handle:first");this.handle1Stype=this.handle1[0].style;this.handle2=this.picker.find(".slider-handle:last");this.handle2Stype=this.handle2[0].style;u=this.element.data("slider-handle")||i.handle;switch(u){case"round":this.handle1.addClass("round");this.handle2.addClass("round");break;case"triangle":this.handle1.addClass("triangle");this.handle2.addClass("triangle")}if(this.range?(this.value[0]=Math.max(this.min,Math.min(this.max,this.value[0])),this.value[1]=Math.max(this.min,Math.min(this.max,this.value[1]))):(this.value=[Math.max(this.min,Math.min(this.max,this.value))],this.handle2.addClass("hide"),this.value[1]=this.selection=="after"?this.max:this.min),this.diff=this.max-this.min,this.percentage=[(this.value[0]-this.min)*100/this.diff,(this.value[1]-this.min)*100/this.diff,this.step*100/this.diff],this.offset=this.picker.offset(),this.size=this.picker[0][this.sizePos],this.formater=i.formater,this.layout(),this.touchCapable)this.picker.on({touchstart:n.proxy(this.mousedown,this)});else this.picker.on({mousedown:n.proxy(this.mousedown,this)});if(r==="show")this.picker.on({mouseenter:n.proxy(this.showTooltip,this),mouseleave:n.proxy(this.hideTooltip,this)});else this.tooltip.addClass("hide")};t.prototype={constructor:t,over:!1,inDrag:!1,showTooltip:function(){this.tooltip.addClass("in");this.over=!0},hideTooltip:function(){this.inDrag===!1&&this.tooltip.removeClass("in");this.over=!1},layout:function(){this.handle1Stype[this.stylePos]=this.percentage[0]+"%";this.handle2Stype[this.stylePos]=this.percentage[1]+"%";this.orientation=="vertical"?(this.selectionElStyle.top=Math.min(this.percentage[0],this.percentage[1])+"%",this.selectionElStyle.height=Math.abs(this.percentage[0]-this.percentage[1])+"%"):(this.selectionElStyle.left=Math.min(this.percentage[0],this.percentage[1])+"%",this.selectionElStyle.width=Math.abs(this.percentage[0]-this.percentage[1])+"%");this.range?(this.tooltipInner.text(this.formater(this.value[0])+" : "+this.formater(this.value[1])),this.tooltip[0].style[this.stylePos]=this.size*(this.percentage[0]+(this.percentage[1]-this.percentage[0])/2)/100-(this.orientation==="vertical"?this.tooltip.outerHeight()/2:this.tooltip.outerWidth()/2)+"px"):(this.tooltipInner.text(this.formater(this.value[0])),this.tooltip[0].style[this.stylePos]=this.size*this.percentage[0]/100-(this.orientation==="vertical"?this.tooltip.outerHeight()/2:this.tooltip.outerWidth()/2)+"px")},mousedown:function(t){var i,u,f,r;if(this.touchCapable&&t.type==="touchstart"&&(t=t.originalEvent),this.offset=this.picker.offset(),this.size=this.picker[0][this.sizePos],i=this.getPercentage(t),this.range?(u=Math.abs(this.percentage[0]-i),f=Math.abs(this.percentage[1]-i),this.dragged=u<f?0:1):this.dragged=0,this.percentage[this.dragged]=i,this.layout(),this.touchCapable)n(document).on({touchmove:n.proxy(this.mousemove,this),touchend:n.proxy(this.mouseup,this)});else n(document).on({mousemove:n.proxy(this.mousemove,this),mouseup:n.proxy(this.mouseup,this)});return this.inDrag=!0,r=this.calculateValue(),this.element.trigger({type:"slideStart",value:r}).trigger({type:"slide",value:r}),!1},mousemove:function(n){var t,i;return this.touchCapable&&n.type==="touchmove"&&(n=n.originalEvent),t=this.getPercentage(n),this.range&&(this.dragged===0&&this.percentage[1]<t?(this.percentage[0]=this.percentage[1],this.dragged=1):this.dragged===1&&this.percentage[0]>t&&(this.percentage[1]=this.percentage[0],this.dragged=0)),this.percentage[this.dragged]=t,this.layout(),i=this.calculateValue(),this.element.trigger({type:"slide",value:i}).data("value",i).prop("value",i),!1},mouseup:function(){this.touchCapable?n(document).off({touchmove:this.mousemove,touchend:this.mouseup}):n(document).off({mousemove:this.mousemove,mouseup:this.mouseup});this.inDrag=!1;this.over==!1&&this.hideTooltip();this.element;var t=this.calculateValue();return this.element.trigger({type:"slideStop",value:t}).data("value",t).prop("value",t),!1},calculateValue:function(){var n;return this.range?(n=[this.min+Math.round(this.diff*this.percentage[0]/100/this.step)*this.step,this.min+Math.round(this.diff*this.percentage[1]/100/this.step)*this.step],this.value=n):(n=this.min+Math.round(this.diff*this.percentage[0]/100/this.step)*this.step,this.value=[n,this.value[1]]),n},getPercentage:function(n){this.touchCapable&&(n=n.touches[0]);var t=(n[this.mousePos]-this.offset[this.stylePos])*100/this.size;return t=Math.round(t/this.percentage[2])*this.percentage[2],Math.max(0,Math.min(100,t))},getValue:function(){return this.range?this.value:this.value[0]},setValue:function(n){this.value=n;this.range?(this.value[0]=Math.max(this.min,Math.min(this.max,this.value[0])),this.value[1]=Math.max(this.min,Math.min(this.max,this.value[1]))):(this.value=[Math.max(this.min,Math.min(this.max,this.value))],this.handle2.addClass("hide"),this.value[1]=this.selection=="after"?this.max:this.min);this.diff=this.max-this.min;this.percentage=[(this.value[0]-this.min)*100/this.diff,(this.value[1]-this.min)*100/this.diff,this.step*100/this.diff];this.layout()}};n.fn.slider=function(i,r){return this.each(function(){var f=n(this),u=f.data("slider"),e=typeof i=="object"&&i;u||f.data("slider",u=new t(this,n.extend({},n.fn.slider.defaults,e)));typeof i=="string"&&u[i](r)})};n.fn.slider.defaults={min:0,max:10,step:1,orientation:"horizontal",value:5,selection:"before",tooltip:"show",handle:"round",formater:function(n){return n}};n.fn.slider.Constructor=t}(window.jQuery),function(n,t){function o(){r.addEventListener?(i.ignore(r,"DOMContentLoaded",o),f=!0,i.ready()):r.readyState==="complete"&&(i.ignore(r,"onreadystatechange",o),f=!0,i.ready())}function c(){r.readyState==="complete"?(f=!0,i.ready()):(r.addEventListener?i.listen(r,"DOMContentLoaded",o):i.listen(r,"onreadystatechange",o),i.listen(n,"load",o))}function s(t){if(i.blockRequests&&i.waitingRequest){i.requestQueue=[t];return}if(t.block&&(i.blockRequests=!0),t.queue&&i.waitingRequest){i.requestQueue.push(t);return}if(i.waitingRequest=!0,t.cache&&i.requestCache[t.url]){function r(){t.callback(i.requestCache[t.url].response)}n.setImmediate?n.setImmediate(r):n.setTimeout(r,1);return}t.post?h(t):a(t)}function l(n){i.waitingRequest=!1;n.block&&(i.blockRequests=!1);n.response.Items.length===1&&n.response.Items[0].Error!==t?n.error(n.response.Items[0].Description):n.success(n.response.Items,n.response);n.cache&&(i.requestCache[n.url]=n);n.position&&(i.scriptRequests[n.position-1]=null);i.requestQueue.length&&s(i.requestQueue.shift())}function a(n){navigator.appName=="Microsoft Internet Explorer"?y(n):v(n)}function v(n){var t=new i.XMLHttpRequest;n.url.length>i.limit?(n.post=!0,h(n)):(t.onreadystatechange=function(){t.readyState==4&&t.status==200&&n.callback(i.parseJSON(t.responseText))},n.credentials&&(t.withCredentials=n.credentials),t.onerror=n.serviceError,t.ontimeout=n.timeoutError,t.open("GET",n.url,!0),t.send())}function y(n){var t=i.create("script",{type:"text/javascript",async:"async"}),u=r.getElementsByTagName("head")[0];n.position=i.scriptRequests.push(n);t.src=n.url+"&callback=pca.scriptRequests["+(n.position-1)+"].callback";t.onload=t.onreadystatechange=function(){this.readyState&&this.readyState!=="loaded"&&this.readyState!=="complete"||(t.onload=t.onreadystatechange=null,u&&t.parentNode&&u.removeChild(t))};t.src.length>i.limit?(n.post=!0,h(n)):u.insertBefore(t,u.firstChild)}function h(n){navigator.appName=="Microsoft Internet Explorer"?w(n):p(n)}function p(n){var t=new i.XMLHttpRequest;t.onreadystatechange=function(){t.readyState==4&&t.status==200&&n.callback(i.parseJSON(t.responseText))};n.credentials&&(t.withCredentials=n.credentials);t.onerror=n.serviceError;t.ontimeout=n.timeoutError;t.open("POST",n.destination,!0);t.setRequestHeader("Content-Type","application/x-www-form-urlencoded");t.send(n.query)}function w(n){function e(n,t){var i=r.createElement("input");i.name=n;i.value=t;u.appendChild(i)}var u=r.createElement("form"),t=r.createElement("iframe"),s=!1,o,f;u.method="POST";u.action=i.protocol+"//"+i.host+"/"+n.service+"/json.ws";for(o in n.data)e(o,n.data[o]);e("CallbackVariable","window.name");e("CallbackWithScriptTags","true");t.onload=function(){s?(n.callback({Items:i.parseJSON(t.contentWindow.name)}),r.body.removeChild(t)):(s=!0,t.contentWindow.location="about:blank")};t.style.display="none";r.body.appendChild(t);f=t.contentDocument||t.contentWindow.document;f.body?f.body.appendChild(u):f.appendChild(u);u.submit()}function u(t){return t==n||t==r||t==r.body}var i=n.pca=n.pca||{},r=n.document,f,e;i.protocol=(n.location||r.location).protocol=="https:"?"https:":"http:";i.host="services.postcodeanywhere.co.uk";i.endpoint="json3ex.ws";i.limit=2e3;i.synonyms=[{r:/\bN(?=\s)/,w:"NORTH"},{r:/\b(?:NE|NORTHEAST)(?=\s)/,w:"NORTH EAST"},{r:/\b(?:NW|NORTHWEST)(?=\s)/,w:"NORTH WEST"},{r:/\bS(?=\s)/,w:"SOUTH"},{r:/\b(?:SE|SOUTHEAST)(?=\s)/,w:"SOUTH EAST"},{r:/\b(?:SW|SOUTHWEST)(?=\s)/,w:"SOUTH WEST"},{r:/\bE(?=\s)/,w:"EAST"},{r:/\bW(?=\s)/,w:"WEST"},{r:/\bST(?=\s)/,w:"SAINT"}];i.diacritics=[{r:/[ÀÁÂÃ]/gi,w:"A"},{r:/Å/gi,w:"AA"},{r:/[ÆæÄ]/gi,w:"AE"},{r:/Ç/gi,w:"C"},{r:/Ð/gi,w:"DJ"},{r:/[ÈÉÊË]/gi,w:"E"},{r:/[ÌÍÏ]/gi,w:"I"},{r:/Ñ/gi,w:"N"},{r:/[ÒÓÔÕ]/gi,w:"O"},{r:/[ŒØÖ]/gi,w:"OE"},{r:/Š/gi,w:"SH"},{r:/ß/gi,w:"SS"},{r:/[ÙÚÛ]/gi,w:"U"},{r:/Ü/gi,w:"UE"},{r:/[ŸÝ]/gi,w:"ZH"},{r:/-/gi,w:" "},{r:/[.,]/gi,w:""}];i.hypertext=[{r:/&/g,w:"&amp;"},{r:/"/g,w:"&quot;"},{r:/'/g,w:"&#39;"},{r:/</g,w:"&lt;"},{r:/>/g,w:"&gt;"}];i.requestQueue=[];i.requestCache={};i.scriptRequests=[];i.waitingRequest=!1;i.blockRequests=!1;i.styleFixes=[];i.agent=navigator&&navigator.userAgent||"";i.galaxyFix=/Safari\/534.30/.test(i.agent)&&/GT-I8190|GT-I9100|GT-I9305|GT-P3110/.test(i.agent);i.container=null;i.XMLHttpRequest=n.XMLHttpRequest;f=!1;e=[];i.fuzzyMatch=!0;i.fuzzyTags=["*"];i.ready=function(n){var i,t;if(f){if(e.length)for(i=e,e=[],t=0;t<i.length;t++)i[t]();n&&n()}else typeof n=="function"&&e.push(n)};i.Eventable=function(n){var t=n||this;return t.listeners={},t.listen=function(n,i){t.listeners[n]=t.listeners[n]||[];t.listeners[n].push(i)},t.ignore=function(n,i){if(t.listeners[n])for(var r=0;r<t.listeners[n].length;r++)if(t.listeners[n][r]===i){t.listeners[n].splice(r,1);break}},t.fire=function(n,i){var r,f,u;if(t.listeners[n])for(r=0;r<t.listeners[n].length;r++){for(f=[i],u=2;u<arguments.length;u++)f.push(arguments[u]);t.listeners[n][r].apply(t,f)}},t};i.Request=function(n,t,r,u){var f=new i.Eventable(this),e;f.service=n||"";f.data=t||{};f.success=r||function(){};f.error=u||function(){};f.response=null;f.cache=!!f.data.$cache;f.queue=!!f.data.$queue;f.block=!!f.data.$block;f.post=!!f.data.$post;f.credentials=!!f.data.$credentials;f.destination=~f.service.indexOf("//")?f.service:i.protocol+"//"+i.host+"/"+f.service+"/"+i.endpoint;f.query="";for(e in f.data)f.query+=(f.query?"&":"")+e+"="+encodeURIComponent(f.data[e]);f.url=f.destination+"?"+f.query;f.callback=function(n){f.response=n;l(f)};f.serviceError=function(n){f.error(n&&n.currentTarget&&n.currentTarget.statusText?"Webservice request error: "+n.currentTarget.statusText:"Webservice request failed.")};f.timeoutError=function(){f.error("Webservice request timed out.")};f.process=function(){i.process(f)}};i.process=function(n){s(n)};i.fetch=function(n,t,r,u){s(new i.Request(n,t,r,u))};i.clearBlockingRequests=function(){i.waitingRequest=!1;i.blockRequests=!1};i.loadScript=function(n,t,u){var f=i.create("script",{type:"text/javascript"}),e=(u||r).getElementsByTagName("head")[0];f.onload=f.onreadystatechange=function(){this.readyState&&this.readyState!=="loaded"&&this.readyState!=="complete"||(f.onload=f.onreadystatechange=null,(t||function(){})())};f.src=(~n.indexOf("/")?"":i.protocol+"//"+i.host+"/js/")+n;e.insertBefore(f,e.firstChild)};i.loadStyle=function(n,t,u){var f=i.create("link",{type:"text/css",rel:"stylesheet"}),e=(u||r).getElementsByTagName("head")[0];f.onload=f.onreadystatechange=function(){this.readyState&&this.readyState!=="loaded"&&this.readyState!=="complete"||(f.onload=f.onreadystatechange=null,(t||function(){})())};f.href=(~n.indexOf("/")?"":i.protocol+"//"+i.host+"/css/")+n;e.insertBefore(f,e.firstChild)};i.Item=function(n,t){var r=new i.Eventable(this),u="pcaselected";return r.data=n,r.format=t,r.html=i.formatLine(n,t),r.title=n.title||i.removeHtml(r.html),r.tag=i.formatTag(n.tag||r.html),r.element=i.create("div",{className:"pcaitem",innerHTML:r.html,title:r.title}),r.visible=!0,r.highlight=function(){return i.addClass(r.element,u),r.fire("highlight"),r},r.lowlight=function(){return i.removeClass(r.element,u),r.fire("lowlight"),r},r.mouseover=function(){r.fire("mouseover")},r.mouseout=function(){r.fire("mouseout")},r.mousedown=function(){r.fire("mousedown")},r.mouseup=function(){r.fire("mouseup");i.galaxyFix&&r.select()},r.click=function(){(r.fire("click"),i.galaxyFix)||r.select()},r.select=function(){return r.fire("select",r.data),r},r.hide=function(){return r.visible=!1,r.element.style.display="none",r.fire("hide"),r},r.show=function(){return r.visible=!0,r.element.style.display="",r.fire("show"),r},i.listen(r.element,"mouseover",r.mouseover),i.listen(r.element,"mouseout",r.mouseout),i.listen(r.element,"mousedown",r.mousedown),i.listen(r.element,"mouseup",r.mouseup),i.listen(r.element,"click",r.click),r};i.Collection=function(){var n=new i.Eventable(this);return n.items=[],n.highlighted=-1,n.count=0,n.firstItem=null,n.lastItem=null,n.firstVisibleItem=null,n.lastVisibleItem=null,n.add=function(t,r,u){function o(t){var f=new i.Item(t,r);return f.listen("mouseover",function(){n.highlight(f)}),f.listen("select",function(t){n.fire("select",t);u(t)}),n.items.push(f),e.push(f),f}var e=[],f;if(u=u||function(){},t.length)for(f=0;f<t.length;f++)o(t[f]);else o(t);return n.count+=t.length,n.firstVisibleItem=n.firstItem=n.items[0],n.lastVisibleItem=n.lastItem=n.items[n.items.length-1],n.fire("add",e),n},n.sort=function(t){return n.items.sort(function(n,i){return t?n.data[t]>i.data[t]?1:-1:n.tag>i.tag?1:-1}),n.fire("sort"),n},n.reverse=function(){return n.items.reverse(),n.fire("reverse"),n},n.filter=function(t){var r=i.formatTag(t),u=n.count;return n.count=0,n.firstVisibleItem=null,n.lastVisibleItem=null,n.all(function(t){~t.tag.indexOf(r)?(t.show(),n.count++,n.firstVisibleItem=n.firstVisibleItem||t,n.lastVisibleItem=t):t.hide()}),u!=n.count&&n.fire("filter"),n},n.match=function(t){var u=i.formatTag(t),r=[];return n.all(function(n){~n.tag.indexOf(u)&&r.push(n)}),r},n.clear=function(){return n.items=[],n.count=0,n.highlighted=-1,n.firstItem=null,n.lastItem=null,n.firstVisibleItem=null,n.lastVisibleItem=null,n.fire("clear"),n},n.all=function(t){for(var i=0;i<n.items.length;i++)if(t(n.items[i],i)===!1)break;return n},n.highlight=function(t){return~n.highlighted&&n.items[n.highlighted].lowlight(),n.highlighted=n.index(t),~n.highlighted&&n.items[n.highlighted].highlight(),n.fire("highlight",t),n},n.index=function(t){for(var i=0;i<n.items.length;i++)if(n.items[i]==t)return i;return-1},n.first=function(t){for(var i=0;i<n.items.length;i++)if(t?t(n.items[i]):n.items[i].visible)return n.items[i];return null},n.last=function(t){for(var i=n.items.length-1;i>=0;i--)if(t?t(n.items[i]):n.items[i].visible)return n.items[i];return null},n.next=function(t){for(var i=n.highlighted+1;i<n.items.length;i++)if(t?t(n.items[i]):n.items[i].visible)return n.items[i];return n.first()},n.previous=function(t){for(var i=n.highlighted-1;i>=0;i--)if(t?t(n.items[i]):n.items[i].visible)return n.items[i];return n.last()},n.visibleItems=function(){var t=[];return n.all(function(n){n.visible&&t.push(n)}),t},n};i.List=function(t){function u(n,t,u){var f=new i.Item(n,t);return f.listen("mouseover",function(){r.collection.highlight(f);f.highlight()}),r.collection.listen("highlight",f.lowlight),f.listen("select",function(n){r.collection.fire("select",n);u(n)}),f}var r=new i.Eventable(this);return r.options=t||{},r.element=i.create("div",{className:"pca pcalist"}),r.collection=new i.Collection,r.visible=!0,r.scroll={held:!1,moved:!1,origin:0,position:0,x:0,y:0,dx:0,dy:0},r.highlightedItem=null,r.headerItem=null,r.footerItem=null,r.firstItem=null,r.lastItem=null,r.firstItemClass="pcafirstitem",r.lastItemClass="pcalastitem",r.options.minItems=r.options.minItems||0,r.options.maxItems=r.options.maxItems||10,r.options.allowTab=r.options.allowTab||!1,r.show=function(){return r.visible=!0,r.element.style.display="",r.fire("show"),r.resize(),r},r.hide=function(){return r.visible=!1,r.element.style.display="none",r.fire("hide"),r},r.draw=function(){return r.destroy(),r.headerItem&&r.element.appendChild(r.headerItem.element),r.collection.all(function(n){r.element.appendChild(n.element)}),r.footerItem&&r.element.appendChild(r.footerItem.element),r.resize(),r.fire("draw"),r},r.markItems=function(){r.firstItem&&i.removeClass(r.firstItem.element,r.firstItemClass);r.lastItem&&i.removeClass(r.lastItem.element,r.lastItemClass);r.collection.count&&(r.firstItem=r.headerItem||r.collection.firstVisibleItem,r.lastItem=r.footerItem||r.collection.lastVisibleItem,i.addClass(r.firstItem.element,r.firstItemClass),i.addClass(r.lastItem.element,r.lastItemClass))},r.add=function(n,t,i){return r.collection.add(n,t,i),r.draw(),r},r.destroy=function(){while(r.element.childNodes&&r.element.childNodes.length)r.element.removeChild(r.element.childNodes[0]);return r},r.clear=function(){return r.collection.clear(),r.destroy(),r.fire("clear"),r},r.setScroll=function(n){return r.element.scrollTop=n,r.fire("scroll"),r},r.enableTouch=function(){function t(t){t=t||n.event;r.scroll.held=!0;r.scroll.moved=!1;r.scroll.origin=parseInt(r.scrollTop);r.scroll.y=parseInt(t.touches[0].pageY)}function u(){r.scroll.held=!1}function f(){r.scroll.held=!1}function e(t){r.scroll.held&&(t=t||n.event,i.smash(t),r.scroll.dy=r.scroll.y-parseInt(t.touches[0].pageY),r.scroll.position=r.scroll.origin+r.scroll.dy,r.setScroll(r.scroll.position),r.scroll.moved=!0)}return i.listen(r.element,"touchstart",t),i.listen(r.element,"touchmove",e),i.listen(r.element,"touchend",u),i.listen(r.element,"touchcancel",f),r},r.move=function(n){return n&&(r.collection.highlight(n),(n==r.headerItem||n==r.footerItem)&&n.highlight(),r.scrollToItem(n)),r},r.next=function(){return r.move(r.nextItem())},r.previous=function(){return r.move(r.previousItem())},r.first=function(){return r.move(r.firstItem)},r.last=function(){return r.move(r.lastItem)},r.nextItem=function(){return r.highlightedItem?r.highlightedItem==r.collection.lastVisibleItem&&(r.footerItem||r.headerItem)?r.footerItem||r.headerItem:r.footerItem&&r.headerItem&&r.highlightedItem==r.footerItem?r.headerItem:r.collection.next():r.firstItem},r.previousItem=function(){return r.highlightedItem?r.highlightedItem==r.collection.firstVisibleItem&&(r.footerItem||r.headerItem)?r.headerItem||r.footerItem:r.footerItem&&r.headerItem&&r.highlightedItem==r.headerItem?r.footerItem:r.collection.previous():r.lastItem},r.currentItem=function(){return r.highlightedItem},r.selectable=function(){return r.visible&&!!r.currentItem()},r.select=function(){return r.selectable()&&r.currentItem().select(),r},r.navigate=function(n){switch(n){case 40:return r.next(),!0;case 38:return r.previous(),!0;case 13:if(r.selectable())return r.select(),!0;case 9:if(r.options.allowTab)return r.next(),!0}return!1},r.scrollToItem=function(n){return r.scroll.position=r.element.scrollTop,n.element.offsetTop<r.scroll.position?(r.scroll.position=n.element.offsetTop,r.setScroll(r.scroll.position)):n.element.offsetTop+n.element.offsetHeight>r.scroll.position+r.element.offsetHeight&&(r.scroll.position=n.element.offsetTop+n.element.offsetHeight-r.element.offsetHeight,r.setScroll(r.scroll.position)),r},r.filter=function(n){var t=r.collection.count;return r.collection.filter(n),r.markItems(),t!=r.collection.count&&r.fire("filter",n),r},r.getHeight=function(){for(var n=r.collection.visibleItems(),e=r.headerItem?i.getSize(r.headerItem.element).height:0,o=r.footerItem?i.getSize(r.footerItem.element).height:0,u=0,f=0,t=0;t<n.length&&t<r.options.maxItems;t++)u=i.getSize(n[t].element).height,f+=u;return n.length<r.options.minItems&&(f+=(u+1)*(r.options.minItems-n.length)),f+e+o},r.resize=function(){var n=r.getHeight();n>0&&(r.element.style.height=n+"px")},r.setHeaderItem=function(n,t,f){return r.headerItem=u(n,t,f),i.addClass(r.footerItem.element,"pcaheaderitem"),r.markItems(),r},r.setFooterItem=function(n,t,f){return r.footerItem=u(n,t,f),i.addClass(r.footerItem.element,"pcafooteritem"),r.markItems(),r},r.collection.listen("highlight",function(n){r.highlightedItem=n}),r.collection.listen("add",function(n){r.markItems();r.fire("add",n)}),r.options.name&&(i.setAttributes(r.element,{id:r.options.name,role:"listbox","aria-activedescendant":""}),r.collection.listen("add",function(n){function u(n){n.listen("highlight",function(){i.setAttributes(r.element,{"aria-activedescendant":n.id})})}for(var t=0;t<n.length;t++)u(n[t]);r.collection.all(function(n,t){n.element.id=n.id=r.options.name+"_item"+t;i.setAttributes(n.element,{role:"option"})})})),r};i.AutoComplete=function(t,f){function o(){e.checkHide()}function s(){e.resize()}var e=new i.Eventable(this);return e.options=f||{},e.options.force=e.options.force||!1,e.options.allowTab=e.options.allowTab||!1,e.options.onlyDown=e.options.onlyDown||!1,e.element=i.create("div",{className:"pcaautocomplete pcatext"}),e.anchors=[],e.list=new i.List(e.options),e.fieldListeners=[],e.field=null,e.positionField=null,e.visible=!0,e.hover=!1,e.focused=!1,e.upwards=!1,e.controlDown=!1,e.disabled=!1,e.fixedWidth=!1,e.emptyMessage=e.options.emptyMessage||"",e.skipFilter=!1,e.stealth=!1,e.header={element:i.create("div",{className:"pcaheader"}),headerText:i.create("div",{className:"pcamessage"}),init:function(){this.hide()},setContent:function(n){return n=n||"",typeof n=="string"?this.element.innerHTML=n:this.element.appendChild(n),e.fire("header"),this},setText:function(n){return n=n||"",this.element.appendChild(this.headerText),typeof n=="string"?(i.clear(this.headerText),this.headerText.appendChild(i.create("span",{className:"pcamessageicon"})),this.headerText.appendChild(i.create("span",{innerHTML:n}))):this.headerText.appendChild(n),e.fire("header"),this},clear:function(){return this.setContent(),e.fire("header"),this},show:function(){return this.element.style.display="",e.fire("header"),this},hide:function(){return this.element.style.display="none",e.fire("header"),this}},e.footer={element:i.create("div",{className:"pcafooter"}),init:function(){this.hide()},setContent:function(n){return n=n||"",typeof n=="string"?this.element.innerHTML=n:this.element.appendChild(n),e.fire("footer"),this},show:function(){return this.element.style.display="",e.fire("footer"),this},hide:function(){return this.element.style.display="none",e.fire("footer"),this}},e.load=function(){if(t.length&&t.constructor==Array)for(var u=0;u<t.length;u++)e.attach(i.getElement(t[u]));else e.attach(i.getElement(t));return i.listen(e.element,"mouseover",function(){e.hover=!0}),i.listen(e.element,"mouseout",function(){e.hover=!1}),i.listen(r,"click",o),i.listen(n,"resize",s),(r.documentMode&&r.documentMode<=7||/\bMSIE (7|6)/.test(i.agent))&&e.setWidth(280),r.documentMode&&r.documentMode<=5&&(i.applyStyleFixes(".pca .pcafooter",{fontSize:"0pt"}),i.applyStyleFixes(".pca .pcaflag",{fontSize:"0pt"})),e},e.attach=function(n){function t(n,t,r){i.listen(n,t,r);e.fieldListeners.push({field:n,event:t,action:r})}function u(n){function s(){o.appendChild(e.element);e.focus(n)}var u=i.create("table",{className:"pca pcaanchor",cellPadding:0,cellSpacing:0}),f=[u.insertRow(0).insertCell(0),u.insertRow(1).insertCell(0)],o=i.create("div",{className:"pcachain"});if(!n||!n.tagName){i.append(e.element);return}n.parentNode.insertBefore(u,n);f[0].appendChild(n);f[1].appendChild(o);e.anchors.push(u);i.inputField(n)&&(t(n,"keyup",e.keyup),t(n,"keydown",e.keydown),t(n,"focus",s),t(n,"blur",e.blur),t(n,"keypress",e.keypress),t(n,"paste",e.paste),typeof r.activeElement!="unknown"&&n==r.activeElement&&s());t(n,"click",function(){e.click(n)});t(n,"dblclick",function(){e.dblclick(n)});t(n,"change",function(){e.change(n)})}function f(n){function u(){e.focus(n)}(i.append(e.element),n&&n.tagName)&&(i.inputField(n)&&(t(n,"keyup",e.keyup),t(n,"keydown",e.keydown),t(n,"focus",u),t(n,"blur",e.blur),t(n,"keypress",e.keypress),t(n,"paste",e.paste),typeof r.activeElement!="unknown"&&n==r.activeElement&&u()),t(n,"click",function(){e.click(n)}),t(n,"dblclick",function(){e.dblclick(n)}),t(n,"change",function(){e.change(n)}))}e.options.force?u(n):f(n)},e.position=function(t){var f=i.getPosition(t),a=i.getSize(t),y=i.getTopOffsetParent(t),h=i.getParentScroll(t),c=i.getSize(e.element),p=i.getSize(n),o=i.getScroll(n),s=!u(y),w=f.top+c.height-(s?0:o.top)<p.height,b=f.top-(s?0:o.top)>c.height,v,l;return e.upwards=!w&&b&&!e.options.onlyDown,e.upwards?e.options.force?e.element.style.top=-(c.height+a.height+2)+"px":(e.element.style.top=f.top-h.top-c.height+(s?o.top:0)+"px",e.element.style.left=f.left-h.left+(s?o.left:0)+"px"):e.options.force?e.element.style.top="auto":(e.element.style.top=f.top-h.top+a.height+1+(s?o.top:0)+"px",e.element.style.left=f.left-h.left+(s?o.left:0)+"px"),e.options.left&&(e.element.style.left=parseInt(e.element.style.left)+parseInt(e.options.left)+"px"),e.options.top&&(e.element.style.top=parseInt(e.element.style.top)+parseInt(e.options.top)+"px"),v=parseInt(i.getStyle(e.element,"borderLeftWidth"))+parseInt(i.getStyle(e.element,"borderRightWidth"))||0,l=Math.max(i.getSize(t).width-v,0),e.fixedWidth||(e.element.style.minWidth=l+"px"),(r.documentMode&&r.documentMode<=7||/\bMSIE (7|6)/.test(i.agent))&&(e.setWidth(Math.max(l,280)),e.element.style.left=(parseInt(e.element.style.left)||0)-2+"px",e.element.style.top=(parseInt(e.element.style.top)||0)-2+"px"),e.positionField=t,e.fire("move"),e},e.reposition=function(){return e.positionField&&e.position(e.positionField),e},e.prompt=function(n,t){if(typeof t=="number"){if(t==0?n=" "+n:t>=n.length?(n=n+" ",t++):(n=n.substring(0,t)+"  "+n.substring(t,n.length),t++),i.setValue(e.field,n),e.field.setSelectionRange)e.field.focus(),e.field.setSelectionRange(t,t);else if(e.field.createTextRange){var r=e.field.createTextRange();r.move("character",t);r.select()}}else i.setValue(e.field,n);return e},e.show=function(){return e.disabled||e.stealth||(e.visible=!0,e.element.style.display="",e.list.collection.count?(e.options.emptyMessage&&e.header.clear().hide(),e.list.show()):(e.options.emptyMessage&&e.header.setText(e.options.emptyMessage).show(),e.list.hide()),e.setScroll(0),e.reposition(),e.fire("show")),e},e.showAll=function(){e.list.filter("");e.show()},e.hide=function(){return e.visible=!1,e.element.style.display="none",e.fire("hide"),e},e.focus=function(n){e.field=n;e.focused=!0;e.show();e.position(n);e.fire("focus")},e.blur=function(){e.focused=!1;e.checkHide();e.fire("blur")},e.checkHide=function(){return!e.visible||e.focused||e.hover||e.hide(),e},e.handleKey=function(n,t){n==27?(e.hide(),e.fire("escape")):n==17?e.controlDown=!1:n==8||n==46?(e.filter(),e.fire("delete")):n!=0&&n<=46&&n!=32?e.visible&&e.list.navigate(n)?t&&i.smash(t):(n==38||n==40)&&e.filter():e.visible&&e.filter();e.fire("keyup",n)},e.keydown=function(t){t=t||n.event;var r=t.which||t.keyCode;r==17&&(e.controlDown=!0);r==9&&e.options.allowTab&&i.smash(t)},e.keyup=function(t){t=t||n.event;var i=t.which||t.keyCode;e.handleKey(i,t)},e.keypress=function(t){var r=n.event?n.event.keyCode:t.which;e.visible&&r==13&&e.list.selectable()&&i.smash(t)},e.paste=function(){n.setTimeout(function(){e.filter();e.fire("paste")},0)},e.click=function(n){e.fire("click",n)},e.dblclick=function(n){e.fire("dblclick",n)},e.change=function(n){e.fire("change",n)},e.resize=function(){e.visible&&e.reposition()},e.add=function(n,t,i){return e.list.add(n,t,i),e},e.clear=function(){return e.list.clear(),e},e.setScroll=function(n){return e.list.setScroll(n),e},e.setWidth=function(n){return typeof n=="number"?(n=Math.max(n,220),e.element.style.width=n+"px",r.documentMode&&r.documentMode<=5&&(n-=2),e.list.element.style.width=n+"px"):(e.element.style.width=n,e.list.element.style.width=n),e.fixedWidth=n!="auto",e.element.style.minWidth=0,e},e.setHeight=function(n){return e.list.element.style.height=typeof n=="number"?n+"px":n,e},e.filter=function(n){return n=n||i.getValue(e.field),e.skipFilter?e.list.collection.match(n).length<e.list.collection.count&&e.list.fire("filter"):(e.list.filter(n,e.skipFilter),n&&!e.list.collection.count&&!e.skipFilter&&!e.options.emptyMessage?e.hide():e.show()),e.fire("filter",n),e},e.disable=function(){return e.disabled=!0,e},e.enable=function(){return e.disabled=!1,e},e.destroy=function(){i.remove(e.element);i.ignore(r,"click",o);i.ignore(n,"resize",s);for(var t=0;t<e.fieldListeners.length;t++)i.ignore(e.fieldListeners[t].field,e.fieldListeners[t].event,e.fieldListeners[t].action)},e.element.appendChild(e.header.element),e.element.appendChild(e.list.element),e.element.appendChild(e.footer.element),e.header.init(),e.footer.init(),t&&e.load(t),e.options.width&&e.setWidth(e.options.width),e.options.height&&e.setHeight(e.options.height),e.options.className&&i.addClass(e.element,e.options.className),e.field||e.hide(),e};i.Modal=function(n){function u(n){return n=n||{},n.type=n.type||"text",n}var t=new i.Eventable(this);return t.options=n||{},t.element=i.create("div",{className:"pcamodal"}),t.border=i.create("div",{className:"pcaborder"}),t.frame=i.create("div",{className:"pcaframe"}),t.content=i.create("div",{className:"pcacontent pcatext"}),t.mask=i.create("div",{className:"pcafullscreen pcamask"}),t.form=[],t.header={element:i.create("div",{className:"pcaheader"}),headerText:i.create("div",{className:"pcatitle"},t.options.titleStyle||""),init:function(){this.setText(t.options.title||"")},setContent:function(n){return n=n||"",typeof n=="string"?this.element.innerHTML=n:this.element.appendChild(n),t.fire("header"),this},setText:function(n){return n=n||"",this.element.appendChild(this.headerText),typeof n=="string"?this.headerText.innerHTML=n:this.headerText.appendChild(n),t.fire("header"),this},show:function(){return this.element.style.display="",t.fire("header"),this},hide:function(){return this.element.style.display="none",t.fire("header"),this}},t.footer={element:i.create("div",{className:"pcafooter"}),setContent:function(n){return n=n||"",typeof n=="string"?this.element.innerHTML=n:this.element.appendChild(n),t.fire("footer"),this},show:function(){return this.element.style.display="",t.fire("header"),this},hide:function(){return this.element.style.display="none",t.fire("header"),this}},t.setTitle=function(n){t.header.setText(n).show()},t.setContent=function(n){return typeof n=="string"?t.content.innerHTML=n:t.content.appendChild(n),t.fire("change"),t},t.addField=function(n,r){r=u(r);var e=i.create("div",{className:"pcainputrow"}),f=i.create(r.tag||"input",r),o=i.create("label",{htmlFor:f.id||"",innerHTML:n||""});return e.appendChild(o),e.appendChild(f),t.setContent(e),t.form.push({label:n,element:f}),f},t.addHalfFields=function(n,r,f){r=u(r);f=u(f);var o=i.create("div",{className:"pcainputrow"}),e=i.create(r.tag||"input",r),s=i.create(f.tag||"input",f),h=i.create("label",{htmlFor:e.id||"",innerHTML:n||""});return i.addClass(e,"pcahalf"),i.addClass(s,"pcahalf"),o.appendChild(h),o.appendChild(e),o.appendChild(s),t.setContent(o),t.form.push({label:"First "+n,element:e}),t.form.push({label:"Second "+n,element:s}),[e,s]},t.addButton=function(n,u,f){function o(){for(var r={},n=0;n<t.form.length;n++)r[t.form[n].label]=i.getValue(t.form[n].element);u(r)}var e=i.create("input",{type:"button",value:n,className:"pcabutton"});return u=u||function(){},!f||r.documentMode&&r.documentMode<=7||(e.style.cssFloat="right"),i.listen(e,"click",o),t.footer.setContent(e),e},t.centre=function(){var n=i.getSize(t.element);return t.element.style.marginTop=-(n.height/2)+"px",t.element.style.marginLeft=-(n.width/2)+"px",t},t.show=function(){return r.documentMode&&r.documentMode<=5||/\bMSIE 6/.test(i.agent)||(t.element.style.display="",t.mask.style.display="",t.centre(),t.fire("show")),t},t.hide=function(){return t.element.style.display="none",t.mask.style.display="none",t.fire("hide"),t},t.clear=function(){while(t.content.childNodes.length)t.content.removeChild(t.content.childNodes[0]);while(t.footer.element.childNodes.length)t.footer.element.removeChild(t.footer.element.childNodes[0]);return t.form=[],t.fire("clear"),t},i.listen(t.mask,"click",t.hide),t.element.appendChild(t.border),t.element.appendChild(t.frame),t.frame.appendChild(t.header.element),t.frame.appendChild(t.content),t.frame.appendChild(t.footer.element),t.header.init(),i.append(t.mask),i.append(t.element),t.hide(),t};i.Tooltip=function(t,r){var f=new i.Eventable(this);return f.element=i.create("div",{className:"pcatooltip"}),f.background=i.create("div",{className:"pcabackground"}),f.message=i.create("div",{className:"pcamessage",innerText:r}),f.show=function(){return f.element.style.display="",f.position(),f.fire("show"),f},f.hide=function(){return f.element.style.display="none",f.fire("hide"),f},f.setMessage=function(n){i.setValue(f.message,n)},f.position=function(){var h=i.getPosition(t),a=i.getSize(t),v=i.getTopOffsetParent(t),o=i.getSize(f.message),c=i.getSize(n),s=i.getScroll(n),l=!u(v),r=h.top-o.height-5+(l?s.top:0),e=h.left+a.width/2-o.width/2+(l?s.left:0);r=Math.min(r,c.height+s.top-o.height);r=Math.max(r,0);e=Math.min(e,c.width+s.left-o.width);e=Math.max(e,0);f.element.style.top=r+"px";f.element.style.left=e+"px"},(t=i.getElement(t))&&(i.listen(t,"mouseover",f.show),i.listen(t,"mouseout",f.hide)),f.element.appendChild(f.background),f.element.appendChild(f.message),f.setMessage(r),i.append(f.element),f.hide(),f};i.formatLine=function(n,t){function i(t,i){var r=(typeof n[t]=="function"?n[t]():n[t])||"";return i==="!"?r.toUpperCase():r}return t=t.replace(/\{([^\}]*\{(\w+)([^\}\w])?\}[^\}]*)\}/g,function(n,t,r,u){var f=i(r,u);return f?t.replace(/\{(\w+)([^\}\w])?\}/g,f):""}),t.replace(/\{(\w+)([^\}\w])?\}/g,function(n,t,r){return i(t,r)})};i.formatTag=function(n){return n?i.replaceList(i.replaceList(i.removeHtml(n.toUpperCase()),i.diacritics),i.synonyms):""};i.formatTagWords=function(n){return i.formatTag(n).split(" ")};i.formatCamel=function(n,t){function i(n,i,r){return i+t+r}return t=t||" ",n=n.replace(/([a-z])([A-Z0-9])/g,i),n=n.replace(/([0-9])([A-Z])/g,i),n.replace(/([A-Z])([A-Z][a-z])/g,i)};i.replaceList=function(n,t){for(var i=0;i<t.length;i++)n=n.toString().replace(t[i].r,t[i].w);return n};i.removeHtml=function(n){return n.replace(/<(?:.|\s)*?>+/g,"")};i.escapeHtml=function(n){return i.replaceList(n,i.hypertext)};i.validId=function(n){return/[a-z0-9-_:\.\[\]]+/gi.exec(n)};i.trimSpaces=function(n){return n.replace(/^\s+|\s(?=\s)|\s$/g,"")};i.tidy=function(n,t){t=t.replace("\\","\\\\");var i=new RegExp("^"+t+"+|"+t+"(?="+t+")|"+t+"$","gi");return n.replace(i,"")};i.getText=function(n){return/[a-zA-Z][a-zA-Z\s]+[a-zA-Z]/.exec(n)};i.getNumber=function(n){return/\d+/.exec(n)};i.parseJSON=function(text){return text&&/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))?typeof JSON!="undefined"?JSON.parse(text):eval(text):{}};i.parseJSONDate=function(n){return new Date(parseInt(i.getNumber(n)))};i.containsWord=function(n,t){var i=new RegExp("\\b"+t+"\\b","gi");return i.test(n)};i.removeWord=function(n,t){var i=new RegExp("\\s?\\b"+t+"\\b","gi");return n.replace(i,"")};i.merge=function(n,t){for(var i in n)t[i]||(t[i]=n[i]);return t};i.getElement=function(n,t){var u,f;if(!n)return null;if(typeof n.nodeType=="number")return n;if(typeof n=="string"){if(t=i.getElement(t)||r,u=t.getElementById?t.getElementById(n):null,u)return u;if(f=t.getElementsByName?t.getElementsByName(n):null,f.length)return f[0]}return i.fuzzyMatch?i.getElementByRegex(n,t):null};i.getElementByRegex=function(n,t){var u,o,f,e;if(typeof n=="string")try{n=new RegExp(n)}catch(s){return null}if(n&&typeof n=="object"&&n.constructor==RegExp)for(t=i.getElement(t)||r,u=0;u<i.fuzzyTags.length;u++)for(o=t.getElementsByTagName(i.fuzzyTags[u]),f=0;f<o.length;f++)if(e=o[f],e.id&&n.test(e.id))return e;return null};i.getValue=function(n){var u,t,f;if(n=i.getElement(n)){if(n.tagName=="INPUT"||n.tagName=="TEXTAREA"){if(n.type=="checkbox")return n.checked;if(n.type=="radio"){for(u=r.getElementsByName(n.name),t=0;t<u.length;t++)if(u[t].checked)return u[t].value}else return n.value}if(n.tagName=="SELECT")return n.selectedIndex<0?"":(f=n.options[n.selectedIndex],f.value||f.text||"");if(n.tagName=="DIV"||n.tagName=="SPAN"||n.tagName=="TD"||n.tagName=="LABEL")return n.innerHTML}return""};i.setValue=function(n,t){var f,e,s,o,u;if((t||t=="")&&(n=i.getElement(n)))if(f=t.toString(),e=i.formatTag(f),n.tagName=="INPUT")if(n.type=="checkbox")n.checked=typeof t=="boolean"&&t||e=="TRUE";else if(n.type=="radio"){for(s=r.getElementsByName(n.name),o=0;o<s.length;o++)if(i.formatTag(s[o].value)==e){s[o].checked=!0;return}}else n.value=i.tidy(f.replace(/\\n|\n/gi,", "),", ");else if(n.tagName=="TEXTAREA")n.value=f.replace(/\\n|\n/gi,"\n");else if(n.tagName=="SELECT"){for(u=0;u<n.options.length;u++)if(i.formatTag(n.options[u].value)==e||i.formatTag(n.options[u].text)==e){n.selectedIndex=u;return}}else(n.tagName=="DIV"||n.tagName=="SPAN"||n.tagName=="TD"||n.tagName=="LABEL")&&(n.innerHTML=f.replace(/\\n|\n/gi,"<br/>"))};i.inputField=function(n){return(n=i.getElement(n))?n.tagName&&(n.tagName=="INPUT"||n.tagName=="TEXTAREA")&&n.type&&(n.type=="text"||n.type=="search"||n.type=="email"||n.type=="textarea"):!1};i.selectList=function(n){return(n=i.getElement(n))?n.tagName&&n.tagName=="SELECT":!1};i.getSelectedItem=function(n){return(n=i.getElement(n))&&n.tagName=="SELECT"&&n.selectedIndex>=0?n.options[n.selectedIndex]:null};i.checkBox=function(n){return(n=i.getElement(n))?n.tagName&&n.tagName=="INPUT"&&n.type&&n.type=="checkbox":!1};i.clear=function(n){i.setValue(n,"")};i.getPosition=function(t){var e={left:0,top:0},r,f;if(t=i.getElement(t)){if(!t.tagName)return e;if(typeof t.getBoundingClientRect!="undefined"){var o=t.getBoundingClientRect(),s=!u(i.getTopOffsetParent(t)),h=i.getScroll(n),c=i.getParentScroll(t);return{left:o.left+c.left+(s?0:h.left),top:o.top+c.top+(s?0:h.top)}}r=0;f=0;do r+=t.offsetLeft,f+=t.offsetTop;while(t=t.offsetParent);return{left:r,top:f}}return e};i.getScroll=function(n){return{left:parseInt(n.scrollX||n.scrollLeft,10)||(u(n)?parseInt(r.documentElement.scrollLeft)||0:0),top:parseInt(n.scrollY||n.scrollTop,10)||(u(n)?parseInt(r.documentElement.scrollTop)||0:0)}};i.getSize=function(n){return{height:n.offsetHeight||n.innerHeight||(u(n)?r.documentElement.clientHeight||r.body.clientHeight:0),width:n.offsetWidth||n.innerWidth||(u(n)?r.documentElement.clientWidth||r.body.clientWidth:0)}};i.getParentScroll=function(n){var f={left:0,top:0},t,r;if(n=i.getElement(n)){if(!n.tagName||!(n=n.parentNode))return f;t=0;r=0;do{if(u(n))break;t+=parseInt(n.scrollLeft)||0;r+=parseInt(n.scrollTop)||0}while(n=n.parentNode);return{left:t,top:r}}return f};i.getTopOffsetParent=function(n){while(n.offsetParent)if(n=n.offsetParent,i.getStyle(n,"position")=="fixed")break;return n};i.getStyle=function(t,i){return((n.getComputedStyle?n.getComputedStyle(t):t.currentStyle)||{})[i]||""};i.addClass=function(n,t){(n=i.getElement(n))&&(i.containsWord(n.className||"",t)||(n.className+=(n.className?" ":"")+t))};i.removeClass=function(n,t){(n=i.getElement(n))&&(n.className=i.removeWord(n.className,t))};i.setAttribute=function(n,t,r){(n=i.getElement(n))&&n.setAttribute(t,r)};i.setAttributes=function(n,t){if(n=i.getElement(n))for(var r in t)n.setAttribute(r,t[r])};i.applyStyleFixes=function(n,t){for(var o,f,e,s,h,u=0;u<r.styleSheets.length;u++){o=r.styleSheets[u];f=[];try{f=o.rules||o.cssRules||[]}catch(c){}for(e=0;e<f.length;e++)if(s=f[e],s.selectorText.toLowerCase()==n)for(h in t)s.style[h]=t[h]}i.styleFixes.push({selectorText:n,fixes:t})};i.reapplyStyleFixes=function(){var t=i.styleFixes,n;for(i.styleFixes=[],n=0;n<t.length;n++)i.applyStyleFixes(t[n].selectorText,t[n].fixes)};i.createStyleSheet=function(n){r.createStyleSheet?r.createStyleSheet().cssText=n:r.head.appendChild(i.create("style",{type:"text/css",innerHTML:n}))};i.create=function(n,t,i){var u=r.createElement(n);for(var f in t||{})u[f]=t[f];return i&&(u.style.cssText=i),u};i.append=function(n){i.container||(i.container=i.create("div",{className:"pca"}),r.body.appendChild(i.container));i.container.appendChild(n)};i.remove=function(n){n&&n.parentNode&&n.parentNode==i.container&&i.container.removeChild(n)};i.listen=function(t,i,r,u){n.addEventListener?t.addEventListener(i,r,u):t.attachEvent("on"+i,r)};i.fire=function(n,t){if(r.createEvent){var i=r.createEvent("HTMLEvents");return i.initEvent(t,!0,!0),!n.dispatchEvent(i)}return n.fireEvent("on"+t,r.createEventObject())};i.ignore=function(t,i,r){n.removeEventListener?t.removeEventListener(i,r):t.detachEvent("on"+i,r)};i.smash=function(t){var i=t||n.event;i.stopPropagation?i.stopPropagation():i.cancelBubble=!0;i.preventDefault?i.preventDefault():i.returnValue=!1};i.debug=function(n){typeof console!="undefined"&&console.debug&&console.debug(n)};c()}(window),function(){var n=window.pca=window.pca||{};n.countries=[{iso2:"AF",iso3:"AFG",name:"Afghanistan",name_fr:"Afghanistan",flag:1},{iso2:"AX",iso3:"ALA",name:"Åland Islands",name_fr:"Åland(les Îles)",flag:220},{iso2:"AL",iso3:"ALB",name:"Albania",name_fr:"Albanie",alternates:["Shqipëria"],flag:2},{iso2:"DZ",iso3:"DZA",name:"Algeria",name_fr:"Algérie",flag:3},{iso2:"AS",iso3:"ASM",name:"American Samoa",name_fr:"Samoa américaines",flag:4},{iso2:"AD",iso3:"AND",name:"Andorra",name_fr:"Andorre",flag:5},{iso2:"AO",iso3:"AGO",name:"Angola",name_fr:"Angola",flag:6},{iso2:"AI",iso3:"AIA",name:"Anguilla",name_fr:"Anguilla",flag:7},{iso2:"AQ",iso3:"ATA",name:"Antarctica",name_fr:"Antarctique",flag:0},{iso2:"AG",iso3:"ATG",name:"Antigua and Barbuda",name_fr:"Antigua-et-Barbuda",flag:8},{iso2:"AR",iso3:"ARG",name:"Argentina",name_fr:"Argentine",flag:9},{iso2:"AM",iso3:"ARM",name:"Armenia",name_fr:"Arménie",flag:10},{iso2:"AW",iso3:"ABW",name:"Aruba",name_fr:"Aruba",flag:11},{iso2:"AU",iso3:"AUS",name:"Australia",name_fr:"Australie",flag:12},{iso2:"AT",iso3:"AUT",name:"Austria",name_fr:"Autriche",alternates:["Österreich"],flag:13},{iso2:"AZ",iso3:"AZE",name:"Azerbaijan",name_fr:"Azerbaïdjan",flag:14},{iso2:"BS",iso3:"BHS",name:"Bahamas",name_fr:"Bahamas",flag:15},{iso2:"BH",iso3:"BHR",name:"Bahrain",name_fr:"Bahreïn",flag:16},{iso2:"BD",iso3:"BGD",name:"Bangladesh",name_fr:"Bangladesh",flag:17},{iso2:"BB",iso3:"BRB",name:"Barbados",name_fr:"Barbade",flag:18},{iso2:"BY",iso3:"BLR",name:"Belarus",name_fr:"Bélarus",flag:19},{iso2:"BE",iso3:"BEL",name:"Belgium",name_fr:"Belgique",alternates:["België"],flag:20},{iso2:"BZ",iso3:"BLZ",name:"Belize",name_fr:"Belize",flag:21},{iso2:"BJ",iso3:"BEN",name:"Benin",name_fr:"Bénin",flag:22},{iso2:"BM",iso3:"BMU",name:"Bermuda",name_fr:"Bermudes",flag:23},{iso2:"BT",iso3:"BTN",name:"Bhutan",name_fr:"Bhoutan",flag:24},{iso2:"BO",iso3:"BOL",name:"Bolivia, Plurinational State of",name_fr:"Bolivie, l'État plurinational de la",flag:25},{iso2:"BQ",iso3:"BES",name:"Bonaire, Sint Eustatius and Saba",name_fr:"Bonaire, Saint-Eustache et Saba",flag:0},{iso2:"BA",iso3:"BIH",name:"Bosnia and Herzegovina",name_fr:"Bosnie-Herzégovine",alternates:["Bosna i Hercegovina"],flag:26},{iso2:"BW",iso3:"BWA",name:"Botswana",name_fr:"Botswana",flag:27},{iso2:"BV",iso3:"BVT",name:"Bouvet Island",name_fr:"Bouvet (l'Île)",flag:0},{iso2:"BR",iso3:"BRA",name:"Brazil",name_fr:"Brésil",alternates:["Brasil"],flag:28},{iso2:"IO",iso3:"IOT",name:"British Indian Ocean Territory",name_fr:"Indien (le Territoire britannique de l'océan)",flag:29},{iso2:"BN",iso3:"BRN",name:"Brunei Darussalam",name_fr:"Brunei",flag:0},{iso2:"BG",iso3:"BGR",name:"Bulgaria",name_fr:"Bulgarie",flag:31},{iso2:"BF",iso3:"BFA",name:"Burkina Faso",name_fr:"Burkina Faso",flag:32},{iso2:"BI",iso3:"BDI",name:"Burundi",name_fr:"Burundi",flag:34},{iso2:"CV",iso3:"CPV",name:"Cabo Verde",name_fr:"Cabo Verde",flag:38},{iso2:"KH",iso3:"KHM",name:"Cambodia",name_fr:"Cambodge",flag:35},{iso2:"CM",iso3:"CMR",name:"Cameroon",name_fr:"Cameroun",flag:36},{iso2:"CA",iso3:"CAN",name:"Canada",name_fr:"Canada",flag:37},{iso2:"KY",iso3:"CYM",name:"Cayman Islands",name_fr:"Caïmans (les Îles)",flag:39},{iso2:"CF",iso3:"CAF",name:"Central African Republic",name_fr:"République centrafricaine",flag:40},{iso2:"TD",iso3:"TCD",name:"Chad",name_fr:"Tchad",flag:41},{iso2:"CL",iso3:"CHL",name:"Chile",name_fr:"Chili",flag:42},{iso2:"CN",iso3:"CHN",name:"China",name_fr:"Chine",flag:43},{iso2:"CX",iso3:"CXR",name:"Christmas Island",name_fr:"Christmas (l'Île)",flag:0},{iso2:"CC",iso3:"CCK",name:"Cocos (Keeling) Islands",name_fr:"Cocos (les Îles)/ Keeling (les Îles)",flag:0},{iso2:"CO",iso3:"COL",name:"Colombia",name_fr:"Colombie",flag:44},{iso2:"KM",iso3:"COM",name:"Comoros",name_fr:"Comores",flag:45},{iso2:"CG",iso3:"COG",name:"Congo",name_fr:"Congo",flag:0},{iso2:"CD",iso3:"COD",name:"Congo (the Democratic Republic of the)",name_fr:"Congo (la République démocratique du)",flag:46},{iso2:"CK",iso3:"COK",name:"Cook Islands",name_fr:"Cook (les Îles)",flag:47},{iso2:"CR",iso3:"CRI",name:"Costa Rica",name_fr:"Costa Rica",flag:48},{iso2:"CI",iso3:"CIV",name:"Côte d'Ivoire",name_fr:"Côte d'Ivoire",flag:49},{iso2:"HR",iso3:"HRV",name:"Croatia",name_fr:"Croatie",alternates:["Hrvatska"],flag:50},{iso2:"CU",iso3:"CUB",name:"Cuba",name_fr:"Cuba",flag:51},{iso2:"CW",iso3:"CUW",name:"Curaçao",name_fr:"Curaçao",flag:0},{iso2:"CY",iso3:"CYP",name:"Cyprus",name_fr:"Chypre",flag:52},{iso2:"CZ",iso3:"CZE",name:"Czech Republic",name_fr:"tchèque (la République)",alternates:["Ceská republika"],flag:53},{iso2:"DK",iso3:"DNK",name:"Denmark",name_fr:"Danemark",flag:54},{iso2:"DJ",iso3:"DJI",name:"Djibouti",name_fr:"Djibouti",flag:55},{iso2:"DM",iso3:"DMA",name:"Dominica",name_fr:"Dominique",flag:56},{iso2:"DO",iso3:"DOM",name:"Dominican Republic",name_fr:"dominicaine (la République)",flag:57},{iso2:"EC",iso3:"ECU",name:"Ecuador",name_fr:"Équateur",flag:61},{iso2:"EG",iso3:"EGY",name:"Egypt",name_fr:"Égypte",flag:58},{iso2:"SV",iso3:"SLV",name:"El Salvador",name_fr:"Salvador",flag:59},{iso2:"GQ",iso3:"GNQ",name:"Equatorial Guinea",name_fr:"Guinée équatoriale",flag:62},{iso2:"ER",iso3:"ERI",name:"Eritrea",name_fr:"Érythrée",flag:63},{iso2:"EE",iso3:"EST",name:"Estonia",name_fr:"Estonie",alternates:["Eesti"],flag:64},{iso2:"ET",iso3:"ETH",name:"Ethiopia",name_fr:"Éthiopie",flag:65},{iso2:"FK",iso3:"FLK",name:"Falkland Islands [Malvinas]",name_fr:"Falkland (les Îles)/Malouines (les Îles)",flag:66},{iso2:"FO",iso3:"FRO",name:"Faroe Islands",name_fr:"Féroé (les Îles)",flag:67},{iso2:"FJ",iso3:"FJI",name:"Fiji",name_fr:"Fidji",flag:68},{iso2:"FI",iso3:"FIN",name:"Finland",name_fr:"Finlande",alternates:["Suomi"],flag:69},{iso2:"FR",iso3:"FRA",name:"France",name_fr:"France",flag:70},{iso2:"GF",iso3:"GUF",name:"French Guiana",name_fr:"Guyane française ",flag:0},{iso2:"PF",iso3:"PYF",name:"French Polynesia",name_fr:"Polynésie française",flag:71},{iso2:"TF",iso3:"ATF",name:"French Southern Territories",name_fr:"Terres australes françaises",flag:0},{iso2:"GA",iso3:"GAB",name:"Gabon",name_fr:"Gabon",flag:72},{iso2:"GM",iso3:"GMB",name:"Gambia",name_fr:"Gambie",flag:73},{iso2:"GE",iso3:"GEO",name:"Georgia",name_fr:"Géorgie",flag:74},{iso2:"DE",iso3:"DEU",name:"Germany",name_fr:"Allemagne",alternates:["Deutschland"],flag:75},{iso2:"GH",iso3:"GHA",name:"Ghana",name_fr:"Ghana",flag:76},{iso2:"GI",iso3:"GIB",name:"Gibraltar",name_fr:"Gibraltar",flag:77},{iso2:"GR",iso3:"GRC",name:"Greece",name_fr:"Grèce",alternates:["Hellas"],flag:79},{iso2:"GL",iso3:"GRL",name:"Greenland",name_fr:"Groenland",flag:80},{iso2:"GD",iso3:"GRD",name:"Grenada",name_fr:"Grenade",flag:81},{iso2:"GP",iso3:"GLP",name:"Guadeloupe",name_fr:"Guadeloupe",flag:0},{iso2:"GU",iso3:"GUM",name:"Guam",name_fr:"Guam",flag:82},{iso2:"GT",iso3:"GTM",name:"Guatemala",name_fr:"Guatemala",flag:83},{iso2:"GG",iso3:"GGY",name:"Guernsey",name_fr:"Guernesey",flag:84},{iso2:"GN",iso3:"GIN",name:"Guinea",name_fr:"Guinée",flag:85},{iso2:"GW",iso3:"GNB",name:"Guinea-Bissau",name_fr:"Guinée-Bissau",flag:86},{iso2:"GY",iso3:"GUY",name:"Guyana",name_fr:"Guyana",flag:87},{iso2:"HT",iso3:"HTI",name:"Haiti",name_fr:"Haïti",flag:88},{iso2:"HM",iso3:"HMD",name:"Heard Island and McDonald Islands",name_fr:"Heard-et-Îles MacDonald (l'Île)",flag:0},{iso2:"VA",iso3:"VAT",name:"Holy See [Vatican City State]",name_fr:"Saint-Siège [État de la Cité du Vatican]",flag:0},{iso2:"HN",iso3:"HND",name:"Honduras",name_fr:"Honduras",flag:89},{iso2:"HK",iso3:"HKG",name:"Hong Kong",name_fr:"Hong Kong",flag:90},{iso2:"HU",iso3:"HUN",name:"Hungary",name_fr:"Hongrie",alternates:["Magyarország"],flag:91},{iso2:"IS",iso3:"ISL",name:"Iceland",name_fr:"Islande",alternates:["Ísland"],flag:92},{iso2:"IN",iso3:"IND",name:"India",name_fr:"Inde",flag:93},{iso2:"ID",iso3:"IDN",name:"Indonesia",name_fr:"Indonésie",flag:94},{iso2:"IR",iso3:"IRN",name:"Iran (the Islamic Republic of)",name_fr:"Iran (République Islamique d')",flag:95},{iso2:"IQ",iso3:"IRQ",name:"Iraq",name_fr:"Iraq",flag:96},{iso2:"IE",iso3:"IRL",name:"Ireland",name_fr:"Irlande",flag:97},{iso2:"IM",iso3:"IMN",name:"Isle of Man",name_fr:"Île de Man",flag:98},{iso2:"IL",iso3:"ISR",name:"Israel",name_fr:"Israël",flag:99},{iso2:"IT",iso3:"ITA",name:"Italy",name_fr:"Italie",alternates:["Italia"],flag:100},{iso2:"JM",iso3:"JAM",name:"Jamaica",name_fr:"Jamaïque",flag:101},{iso2:"JP",iso3:"JPN",name:"Japan",name_fr:"Japon",flag:102},{iso2:"JE",iso3:"JEY",name:"Jersey",name_fr:"Jersey",flag:103},{iso2:"JO",iso3:"JOR",name:"Jordan",name_fr:"Jordanie",flag:104},{iso2:"KZ",iso3:"KAZ",name:"Kazakhstan",name_fr:"Kazakhstan",flag:105},{iso2:"KE",iso3:"KEN",name:"Kenya",name_fr:"Kenya",flag:106},{iso2:"KI",iso3:"KIR",name:"Kiribati",name_fr:"Kiribati",flag:107},{iso2:"KP",iso3:"PRK",name:"Korea (the Democratic People's Republic of)",name_fr:"Corée (la République populaire démocratique de )",flag:149},{iso2:"KR",iso3:"KOR",name:"Korea (the Republic of)",name_fr:"Corée (la République de)",flag:185},{iso2:"KW",iso3:"KWT",name:"Kuwait",name_fr:"Koweït",flag:108},{iso2:"KG",iso3:"KGZ",name:"Kyrgyzstan",name_fr:"Kirghizistan",flag:109},{iso2:"LA",iso3:"LAO",name:"Lao People's Democratic Republic",name_fr:"Lao, République démocratique populaire",flag:0},{iso2:"LV",iso3:"LVA",name:"Latvia",name_fr:"Lettonie",flag:110},{iso2:"LB",iso3:"LBN",name:"Lebanon",name_fr:"Liban",flag:111},{iso2:"LS",iso3:"LSO",name:"Lesotho",name_fr:"Lesotho",flag:112},{iso2:"LR",iso3:"LBR",name:"Liberia",name_fr:"Libéria",flag:113},{iso2:"LY",iso3:"LBY",name:"Libya",name_fr:"Libye",flag:114},{iso2:"LI",iso3:"LIE",name:"Liechtenstein",name_fr:"Liechtenstein",flag:115},{iso2:"LT",iso3:"LTU",name:"Lithuania",name_fr:"Lituanie",alternates:["Lietuva"],flag:116},{iso2:"LU",iso3:"LUX",name:"Luxembourg",name_fr:"Luxembourg",flag:117},{iso2:"MO",iso3:"MAC",name:"Macao",name_fr:"Macao",flag:118},{iso2:"MK",iso3:"MKD",name:"Macedonia (the former Yugoslav Republic of)",name_fr:"Macédoine (l'ex-République yougoslave de)",alternates:["Poraneshna Jugoslovenska Republika Makedonija"],flag:119},{iso2:"MG",iso3:"MDG",name:"Madagascar",name_fr:"Madagascar",flag:120},{iso2:"MW",iso3:"MWI",name:"Malawi",name_fr:"Malawi",flag:121},{iso2:"MY",iso3:"MYS",name:"Malaysia",name_fr:"Malaisie",flag:122},{iso2:"MV",iso3:"MDV",name:"Maldives",name_fr:"Maldives",flag:123},{iso2:"ML",iso3:"MLI",name:"Mali",name_fr:"Mali",flag:124},{iso2:"MT",iso3:"MLT",name:"Malta",name_fr:"Malte",flag:125},{iso2:"MH",iso3:"MHL",name:"Marshall Islands",name_fr:"Marshall (Îles)",flag:126},{iso2:"MQ",iso3:"MTQ",name:"Martinique",name_fr:"Martinique",flag:127},{iso2:"MR",iso3:"MRT",name:"Mauritania",name_fr:"Mauritanie",flag:128},{iso2:"MU",iso3:"MUS",name:"Mauritius",name_fr:"Maurice",flag:129},{iso2:"YT",iso3:"MYT",name:"Mayotte",name_fr:"Mayotte",flag:0},{iso2:"MX",iso3:"MEX",name:"Mexico",name_fr:"Mexique",flag:130},{iso2:"FM",iso3:"FSM",name:"Micronesia (the Federated States of)",name_fr:"Micronésie, États fédérés de",flag:131},{iso2:"MD",iso3:"MDA",name:"Moldova (the Republic of)",name_fr:"Moldova , République de",flag:132},{iso2:"MC",iso3:"MCO",name:"Monaco",name_fr:"Monaco",flag:133},{iso2:"MN",iso3:"MNG",name:"Mongolia",name_fr:"Mongolie",flag:134},{iso2:"ME",iso3:"MNE",name:"Montenegro",name_fr:"Monténégro",alternates:["Crna Gora"],flag:0},{iso2:"MS",iso3:"MSR",name:"Montserrat",name_fr:"Montserrat",flag:135},{iso2:"MA",iso3:"MAR",name:"Morocco",name_fr:"Maroc",flag:136},{iso2:"MZ",iso3:"MOZ",name:"Mozambique",name_fr:"Mozambique",flag:137},{iso2:"MM",iso3:"MMR",name:"Myanmar",name_fr:"Myanmar",flag:33},{iso2:"NA",iso3:"NAM",name:"Namibia",name_fr:"Namibie",flag:138},{iso2:"NR",iso3:"NRU",name:"Nauru",name_fr:"Nauru",flag:139},{iso2:"NP",iso3:"NPL",name:"Nepal",name_fr:"Népal",flag:140},{iso2:"NL",iso3:"NLD",name:"Netherlands",name_fr:"Pays-Bas",alternates:["Holland"],flag:141},{iso2:"NC",iso3:"NCL",name:"New Caledonia",name_fr:"Nouvelle-Calédonie",flag:0},{iso2:"NZ",iso3:"NZL",name:"New Zealand",name_fr:"Nouvelle-Zélande",flag:142},{iso2:"NI",iso3:"NIC",name:"Nicaragua",name_fr:"Nicaragua",flag:143},{iso2:"NE",iso3:"NER",name:"Niger",name_fr:"Niger",flag:144},{iso2:"NG",iso3:"NGA",name:"Nigeria",name_fr:"Nigéria",flag:145},{iso2:"NU",iso3:"NIU",name:"Niue",name_fr:"Niue",flag:146},{iso2:"NF",iso3:"NFK",name:"Norfolk Island",name_fr:"Norfolk (l'Île)",flag:147},{iso2:"MP",iso3:"MNP",name:"Northern Mariana Islands",name_fr:"Mariannes du Nord (les Îles)",flag:148},{iso2:"NO",iso3:"NOR",name:"Norway",name_fr:"Norvège",flag:150},{iso2:"OM",iso3:"OMN",name:"Oman",name_fr:"Oman",flag:151},{iso2:"PK",iso3:"PAK",name:"Pakistan",name_fr:"Pakistan",flag:152},{iso2:"PW",iso3:"PLW",name:"Palau",name_fr:"Palaos",flag:153},{iso2:"PS",iso3:"PSE",name:"Palestine, State of",name_fr:"Palestine, État de",flag:0},{iso2:"PA",iso3:"PAN",name:"Panama",name_fr:"Panama",flag:154},{iso2:"PG",iso3:"PNG",name:"Papua New Guinea",name_fr:"Papouasie-Nouvelle-Guinée",flag:155},{iso2:"PY",iso3:"PRY",name:"Paraguay",name_fr:"Paraguay",flag:156},{iso2:"PE",iso3:"PER",name:"Peru",name_fr:"Pérou",flag:157},{iso2:"PH",iso3:"PHL",name:"Philippines",name_fr:"Philippines",flag:158},{iso2:"PN",iso3:"PCN",name:"Pitcairn",name_fr:"Pitcairn",flag:0},{iso2:"PL",iso3:"POL",name:"Poland",name_fr:"Pologne",alternates:["Polska"],flag:159},{iso2:"PT",iso3:"PRT",name:"Portugal",name_fr:"Portugal",flag:160},{iso2:"PR",iso3:"PRI",name:"Puerto Rico",name_fr:"Porto Rico",flag:161},{iso2:"QA",iso3:"QAT",name:"Qatar",name_fr:"Qatar",flag:162},{iso2:"RE",iso3:"REU",name:"Réunion",name_fr:"Réunion",flag:0},{iso2:"RO",iso3:"ROU",name:"Romania",name_fr:"Roumanie",alternates:["România"],flag:163},{iso2:"RU",iso3:"RUS",name:"Russian Federation",name_fr:"Russie (la Fédération de)",alternates:["Rossiya"],flag:164},{iso2:"RW",iso3:"RWA",name:"Rwanda",name_fr:"Rwanda",flag:165},{iso2:"BL",iso3:"BLM",name:"Saint Barthélemy",name_fr:"Saint-Barthélemy",flag:0},{iso2:"SH",iso3:"SHN",name:"Saint Helena, Ascension and Tristan da Cunha",name_fr:"Sainte-Hélène, Ascension et Tristan da Cunha",flag:166},{iso2:"KN",iso3:"KNA",name:"Saint Kitts and Nevis",name_fr:"Saint-Kitts-et-Nevis",flag:167},{iso2:"LC",iso3:"LCA",name:"Saint Lucia",name_fr:"Sainte-Lucie",flag:168},{iso2:"MF",iso3:"MAF",name:"Saint Martin (French part)",name_fr:"Saint-Martin (partie française)",flag:0},{iso2:"PM",iso3:"SPM",name:"Saint Pierre and Miquelon",name_fr:"Saint-Pierre-et-Miquelon",flag:169},{iso2:"VC",iso3:"VCT",name:"Saint Vincent and the Grenadines",name_fr:"Saint-Vincent-et-les-Grenadines",flag:170},{iso2:"WS",iso3:"WSM",name:"Samoa",name_fr:"Samoa",flag:171},{iso2:"SM",iso3:"SMR",name:"San Marino",name_fr:"Saint-Marin",flag:172},{iso2:"ST",iso3:"STP",name:"Sao Tome and Principe",name_fr:"Sao Tomé-et-Principe",flag:173},{iso2:"SA",iso3:"SAU",name:"Saudi Arabia",name_fr:"Arabie saoudite",flag:174},{iso2:"SN",iso3:"SEN",name:"Senegal",name_fr:"Sénégal",flag:175},{iso2:"RS",iso3:"SRB",name:"Serbia",name_fr:"Serbie",alternates:["Srbija"],flag:0},{iso2:"SC",iso3:"SYC",name:"Seychelles",name_fr:"Seychelles",flag:176},{iso2:"SL",iso3:"SLE",name:"Sierra Leone",name_fr:"Sierra Leone",flag:177},{iso2:"SG",iso3:"SGP",name:"Singapore",name_fr:"Singapour",flag:178},{iso2:"SX",iso3:"SXM",name:"Sint Maarten (Dutch part)",name_fr:"Saint-Martin (partie néerlandaise)",flag:0},{iso2:"SK",iso3:"SVK",name:"Slovakia",name_fr:"Slovaquie",alternates:["Slovenská republika"],flag:179},{iso2:"SI",iso3:"SVN",name:"Slovenia",name_fr:"Slovénie",alternates:["Slovenija"],flag:180},{iso2:"SB",iso3:"SLB",name:"Solomon Islands",name_fr:"Salomon (Îles)",flag:181},{iso2:"SO",iso3:"SOM",name:"Somalia",name_fr:"Somalie",flag:182},{iso2:"ZA",iso3:"ZAF",name:"South Africa",name_fr:"Afrique du Sud",flag:183},{iso2:"GS",iso3:"SGS",name:"South Georgia and the South Sandwich Islands",name_fr:"Géorgie du Sud-et-les Îles Sandwich du Sud",flag:184},{iso2:"SS",iso3:"SSD",name:"South Sudan ",name_fr:"Soudan du Sud",flag:0},{iso2:"ES",iso3:"ESP",name:"Spain",name_fr:"Espagne",alternates:["España"],flag:186},{iso2:"LK",iso3:"LKA",name:"Sri Lanka",name_fr:"Sri Lanka",flag:187},{iso2:"SD",iso3:"SDN",name:"Sudan",name_fr:"Soudan",flag:188},{iso2:"SR",iso3:"SUR",name:"Suriname",name_fr:"Suriname",flag:189},{iso2:"SJ",iso3:"SJM",name:"Svalbard and Jan Mayen",name_fr:"Svalbard et l'Île Jan Mayen",flag:190},{iso2:"SZ",iso3:"SWZ",name:"Swaziland",name_fr:"Swaziland",flag:191},{iso2:"SE",iso3:"SWE",name:"Sweden",name_fr:"Suède",alternates:["Sverige"],flag:192},{iso2:"CH",iso3:"CHE",name:"Switzerland",name_fr:"Suisse",alternates:["Schweiz"],flag:193},{iso2:"SY",iso3:"SYR",name:"Syrian Arab Republic",name_fr:"République arabe syrienne",flag:0},{iso2:"TW",iso3:"TWN",name:"Taiwan (Province of China)",name_fr:"Taïwan (Province de Chine)",flag:194},{iso2:"TJ",iso3:"TJK",name:"Tajikistan",name_fr:"Tadjikistan",flag:195},{iso2:"TZ",iso3:"TZA",name:"Tanzania, United Republic of",name_fr:"Tanzanie, République-Unie de",flag:196},{iso2:"TH",iso3:"THA",name:"Thailand",name_fr:"Thaïlande",flag:197},{iso2:"TL",iso3:"TLS",name:"Timor-Leste",name_fr:"Timor-Leste",flag:0},{iso2:"TG",iso3:"TGO",name:"Togo",name_fr:"Togo",flag:198},{iso2:"TK",iso3:"TKL",name:"Tokelau",name_fr:"Tokelau",flag:0},{iso2:"TO",iso3:"TON",name:"Tonga",name_fr:"Tonga",flag:199},{iso2:"TT",iso3:"TTO",name:"Trinidad and Tobago",name_fr:"Trinité-et-Tobago",flag:200},{iso2:"TN",iso3:"TUN",name:"Tunisia",name_fr:"Tunisie",flag:201},{iso2:"TR",iso3:"TUR",name:"Turkey",name_fr:"Turquie",alternates:["Türkiye"],flag:202},{iso2:"TM",iso3:"TKM",name:"Turkmenistan",name_fr:"Turkménistan",flag:203},{iso2:"TC",iso3:"TCA",name:"Turks and Caicos Islands",name_fr:"Turks-et-Caïcos (les Îles)",flag:204},{iso2:"TV",iso3:"TUV",name:"Tuvalu",name_fr:"Tuvalu",flag:205},{iso2:"UG",iso3:"UGA",name:"Uganda",name_fr:"Ouganda",flag:206},{iso2:"UA",iso3:"UKR",name:"Ukraine",name_fr:"Ukraine",alternates:["Ukraina"],flag:207},{iso2:"AE",iso3:"ARE",name:"United Arab Emirates",name_fr:"Émirats arabes unis",alternates:["UAE"],flag:208},{iso2:"GB",iso3:"GBR",name:"United Kingdom",name_fr:"Royaume-Uni",alternates:["Britain","England","Great Britain","Northern Ireland","Scotland","UK","Wales"],flag:78},{iso2:"US",iso3:"USA",name:"United States",name_fr:"États-Unis",alternates:["America","United States of America"],flag:210},{iso2:"UM",iso3:"UMI",name:"United States Minor Outlying Islands",name_fr:"Îles mineures éloignées des États-Unis",flag:0},{iso2:"UY",iso3:"URY",name:"Uruguay",name_fr:"Uruguay",flag:209},{iso2:"UZ",iso3:"UZB",name:"Uzbekistan",name_fr:"Ouzbékistan",flag:211},{iso2:"VU",iso3:"VUT",name:"Vanuatu",name_fr:"Vanuatu",flag:212},{iso2:"VE",iso3:"VEN",name:"Venezuela, Bolivarian Republic of ",name_fr:"Venezuela, République bolivarienne du ",flag:213},{iso2:"VN",iso3:"VNM",name:"Viet Nam",name_fr:"Viet Nam",flag:214},{iso2:"VG",iso3:"VGB",name:"Virgin Islands (British)",name_fr:"Vierges britanniques (les Îles)",flag:30},{iso2:"VI",iso3:"VIR",name:"Virgin Islands (U.S.)",name_fr:"Vierges des États-Unis (les Îles)",flag:215},{iso2:"WF",iso3:"WLF",name:"Wallis and Futuna",name_fr:"Wallis-et-Futuna ",flag:216},{iso2:"EH",iso3:"ESH",name:"Western Sahara",name_fr:"Sahara occidental*",flag:0},{iso2:"YE",iso3:"YEM",name:"Yemen",name_fr:"Yémen",flag:217},{iso2:"ZM",iso3:"ZMB",name:"Zambia",name_fr:"Zambie",flag:218},{iso2:"ZW",iso3:"ZWE",name:"Zimbabwe",name_fr:"Zimbabwe",flag:219}];n.countryNameType={NAME:0,ISO2:1,ISO3:2};n.CountryList=function(t,i){var r=new n.Eventable(this);r.fields=t||[];r.options=i||{};r.options.defaultCode=r.options.defaultCode||"";r.options.value=r.options.value||"";r.options.codesList=r.options.codesList||"";r.options.fillOthers=r.options.fillOthers||!1;r.options.list=r.options.list||{};r.options.populate=typeof r.options.populate=="boolean"?r.options.populate:!0;r.options.prepopulate=typeof r.options.prepopulate=="boolean"?r.options.prepopulate:!0;r.options.language=r.options.language||"en";r.options.nameType=r.options.nameType||n.countryNameType.NAME;r.options.valueType=r.options.valueType||n.countryNameType.NAME;r.options.fallbackCode=r.options.fallbackCode||"GBR";r.autocomplete=new n.AutoComplete(r.fields,r.options.list);r.country=null;r.textChanged=!1;r.nameProperty=r.options.language=="fr"?"name_fr":"name";r.template="<div class='pcaflag'><\/div><div class='pcaflaglabel'>{"+r.nameProperty+"}<\/div>";r.load=function(){function c(n){r.change(n);r.fire("select",n)}function l(t){if(n.selectList(t)){var i=n.getSelectedItem(t);r.change(r.find(i.value)||r.find(i.text))}else r.setCountry(n.getValue(t));r.textChanged=!1}var o,t,f,s,i,u,h,e;if(n.addClass(r.autocomplete.element,"pcacountrylist"),r.options.codesList){for(o=r.options.codesList.replace(/\s/g,"").split(","),t=[],r.autocomplete.clear(),f=0;f<o.length;f++)for(s=o[f].toString().toUpperCase(),i=0;i<n.countries.length;i++)if(n.countries[i].iso2==s||n.countries[i].iso3==s){t.push(n.countries[i]);break}if(r.options.fillOthers)for(u=0;u<n.countries.length;u++){for(h=!1,e=0;e<t.length;e++)n.countries[u].iso3==t[e].iso3&&(h=!0);h||t.push(n.countries[u])}r.autocomplete.clear().add(t,r.template,c)}else r.autocomplete.clear().add(n.countries,r.template,c);r.autocomplete.list.collection.all(function(t){r.setFlagPosition(t.element.firstChild,t.data.flag);t.tag+=" "+n.formatTag(t.data.iso3+(t.data.alternates?" "+t.data.alternates.join(" "):""))});r.autocomplete.listen("focus",function(){r.autocomplete.showAll()});r.autocomplete.listen("change",function(n){r.autocomplete.visible?r.textChanged=!0:l(n)});r.autocomplete.listen("hide",function(){r.textChanged&&l(r.autocomplete.field)});r.options.value&&(r.country=r.find(r.options.value));!r.country&&r.options.defaultCode&&(r.country=r.find(r.options.defaultCode));r.country=r.country||(r.options.codesList?r.first():r.find(r.options.fallbackCode))||r.first()||r.find(r.options.fallbackCode);r.fire("load")};r.getName=function(t){switch(r.options.nameType){case n.countryNameType.NAME:return(t||r.country)[r.nameProperty];case n.countryNameType.ISO2:return(t||r.country).iso2;case n.countryNameType.ISO3:return(t||r.country).iso3}return(t||r.country)[r.nameProperty]};r.getValue=function(t){switch(r.options.valueType){case n.countryNameType.NAME:return(t||r.country)[r.nameProperty];case n.countryNameType.ISO2:return(t||r.country).iso2;case n.countryNameType.ISO3:return(t||r.country).iso3}return(t||r.country).iso3};r.populate=function(){var u,f,i,t,e;if(r.options.populate){for(u=r.getName(),f=r.getValue(),i=0;i<r.fields.length;i++)t=n.getElement(r.fields[i]),e=n.getValue(t),n.setValue(t,n.selectList(t)?f:u),r.options.prepopulate&&e!=n.getValue(t)&&n.fire(t,"change");r.fire("populate")}};r.find=function(n){function t(t){if(t.data.alternates)for(var i=0;i<t.data.alternates.length;i++)if(t.data.alternates[i].toUpperCase()==n)return!0;return!1}return n=n.toString().toUpperCase(),(r.autocomplete.list.collection.first(function(i){return i.data.iso2.toUpperCase()==n||i.data.iso3.toUpperCase()==n||i.data.name.toUpperCase()==n||i.data.name_fr.toUpperCase()==n||t(i)})||{}).data};r.first=function(){return r.autocomplete.list.collection.first().data};r.change=function(n){n&&(r.country=n,r.populate(),r.textChanged=!1,r.fire("change",r.country))};r.setFlagPosition=function(n,t){n.style.backgroundPosition="-1px -"+(t*16+2)+"px"};r.flag=function(){function i(n){r.setFlagPosition(t,n.flag)}var t=n.create("div",{className:"pcaflag"});return i(r.country),r.listen("change",i),t};r.setCountry=function(n){return r.change(r.find(n)),r};r.setCountryByIP=function(t){function i(n){n.length&&n[0].Iso3&&r.setCountry(n[0].Iso3)}t&&n.fetch("Extras/Web/Ip2Country/v1.10",{Key:t},i)};r.load()}}(),function(){var n=window.pca=window.pca||{};n.fieldMode={DEFAULT:3,NONE:0,SEARCH:1,POPULATE:2,PRESERVE:4,COUNTRY:8};n.filteringMode={EVERYTHING:"Everything",POSTCODES:"PostalCodes",PLACES:"Places",COMPANIES:"Companies",RESIDENTIAL:"Residential"};n.orderingMode={DEFAULT:"UserLocation",LOCATION:"UserLocation",NONE:""};n.messages={en:{DIDYOUMEAN:"Did you mean:",NORESULTS:"No results found",KEEPTYPING:"Keep typing your address to display more results",RETRIEVEERROR:"Sorry, we could not retrieve this address",SERVICEERROR:"Service Error:",COUNTRYSELECT:"Change Country",NOLOCATION:"Sorry, we could not get your location",NOCOUNTRY:"Sorry, we could not find this country",MANUALENTRY:"I cannot find my address. Let me type it in",RESULTCOUNT:"<b>{count}<\/b> matching results"},cy:{DIDYOUMEAN:"A oeddech yn meddwl:",NORESULTS:"Dim canlyniadau ar ganlyniadau",KEEPTYPING:"Cadwch teipio eich cyfeiriad i arddangos mwy o ganlyniadau",RETRIEVEERROR:"Mae'n ddrwg gennym, ni allem adfer y cyfeiriad hwn",SERVICEERROR:"Gwall gwasanaeth:",COUNTRYSELECT:"Dewiswch gwlad",NOLOCATION:"Mae'n ddrwg gennym, nid oeddem yn gallu cael eich lleoliad",NOCOUNTRY:"Mae'n ddrwg gennym, ni allem ddod o hyd y wlad hon",MANUALENTRY:"Ni allaf ddod o hyd i fy nghyfeiriad. Gadewch i mi deipio mewn",RESULTCOUNT:"<b>{count}<\/b> Canlyniadau paru"},fr:{DIDYOUMEAN:"Vouliez-vous dire:",NORESULTS:"Aucun résultat n'a été trouvé",KEEPTYPING:"Continuer à taper votre adresse pour afficher plus de résultats",RETRIEVEERROR:"Désolé , nous ne pouvions pas récupérer cette adresse",SERVICEERROR:"Erreur de service:",COUNTRYSELECT:"Changer de pays",NOLOCATION:"Désolé, nous n'avons pas pu obtenir votre emplacement",NOCOUNTRY:"Désolé, nous n'avons pas trouvé ce pays",MANUALENTRY:"Je ne peux pas trouver mon adresse. Permettez-moi de taper dans",RESULTCOUNT:"<b>{count}<\/b> résultats correspondants"},de:{DIDYOUMEAN:"Meinten Sie:",NORESULTS:"Keine Adressen gefunden",KEEPTYPING:"Halten Sie Ihre Adresse eingeben, um weitere Ergebnisse anzuzeigen",RETRIEVEERROR:"Leider haben wir diese Adresse nicht abrufen",SERVICEERROR:"Service-Fehler:",COUNTRYSELECT:"Land wechseln",NOLOCATION:"Leider konnten wir nicht bekommen, Ihren Standort",NOCOUNTRY:"Leider konnten wir nicht finden, dieses Land",MANUALENTRY:"Ich kann meine Adresse nicht finden. Lassen Sie mich geben Sie es in",RESULTCOUNT:"<b>{count}<\/b> passenden Ergebnisse"}};n.exampleAddress={Id:"GBR|PR|52509479|0|0|0",DomesticId:"52509479",Language:"ENG",LanguageAlternatives:"ENG",Department:"",Company:"Postcode Anywhere (Europe) Ltd",SubBuilding:"",BuildingNumber:"",BuildingName:"Waterside",SecondaryStreet:"",Street:"Basin Road",Block:"",Neighbourhood:"",District:"",City:"Worcester",Line1:"Waterside",Line2:"Basin Road",Line3:"",Line4:"",Line5:"",AdminAreaName:"Worcester",AdminAreaCode:"47UE",Province:"Worcestershire",ProvinceName:"Worcestershire",ProvinceCode:"",PostalCode:"WR5 3DA",CountryName:"United Kingdom",CountryIso2:"GB",CountryIso3:"GBR",CountryIsoNumber:826,SortingNumber1:"94142",SortingNumber2:"",Barcode:"(WR53DA1PX)",Label:"Postcode Anywhere (Europe) Ltd\nWaterside\nBasin Road\n\nWorcester\nWR5 3DA\nUnited Kingdom",Type:"Commercial",DataLevel:"Premise",Field1:"",Field2:"",Field3:"",Field4:"",Field5:"",Field6:"",Field7:"",Field8:"",Field9:"",Field10:"",Field11:"",Field12:"",Field13:"",Field14:"",Field15:"",Field16:"",Field17:"",Field18:"",Field19:"",Field20:""};n.templates={AUTOCOMPLETE:"{HighlightedText}{<span class='pcadescription'>{Description}<\/span>}"};n.Address=function(t,i){function u(){r.lastActionTimer!=null&&(window.clearTimeout(r.lastActionTimer),r.lastActionTimer=null)}function f(){r.reset();r.message(n.messages[r.language].NORESULTS,{clickToDisable:r.options.manualEntry,error:!0,clearList:!0});r.fire("noresults")}function e(t){r.message(n.formatLine({count:t},n.messages[r.language].RESULTCOUNT))}var r=new n.Eventable(this);r.fields=t||[];r.options=i||{};r.key=r.options.key||"";r.options.name=r.options.name||"";r.options.source=r.options.source||"";r.options.populate=typeof r.options.populate=="boolean"?r.options.populate:!0;r.options.onlyInputs=typeof r.options.onlyInputs=="boolean"?r.options.onlyInputs:!1;r.options.autoSearch=typeof r.options.autoSearch=="boolean"?r.options.autoSearch:!1;r.options.preselect=typeof r.options.preselect=="boolean"?r.options.preselect:!0;r.options.minSearch=r.options.minSearch||1;r.options.minItems=r.options.minItems||1;r.options.maxItems=r.options.maxItems||7;r.options.advancedFields=r.options.advancedFields||[];r.options.manualEntry=typeof r.options.manualEntry=="boolean"?r.options.manualEntry:!1;r.options.manualEntryItem=typeof r.options.manualEntryItem=="boolean"?r.options.manualEntryItem:!1;r.options.disableTime=r.options.disableTime||6e4;r.options.suppressAutocomplete=typeof r.options.suppressAutocomplete=="boolean"?r.options.suppressAutocomplete:!0;r.options.setCountryByIP=typeof r.options.setCountryByIP=="boolean"?r.options.setCountryByIP:!1;r.options.brand=r.options.brand||"PostcodeAnywhere"||"PostcodeAnywhere";r.options.product=r.options.product||"Capture+";r.options.provider=r.options.provider||"CapturePlus"||"CapturePlus";r.options.culture=r.options.culture||"en-GB";r.options.prompt=typeof r.options.prompt=="boolean"?r.options.prompt:!1;r.options.promptDelay=r.options.promptDelay||0;r.options.inlineMessages=typeof r.options.inlineMessages=="boolean"?r.options.inlineMessages:!1;r.options.setCursor=typeof r.options.setCursor=="boolean"?r.options.setCursor:!1;r.options.matchCount=typeof r.options.matchCount=="boolean"?r.options.matchCount:!1;r.options.languagePreference=r.options.languagePreference||"";r.options.filteringMode=r.options.filteringMode||n.filteringMode.EVERYTHING;r.options.orderingMode=r.options.orderingMode||n.orderingMode.DEFAULT;r.options.countries=r.options.countries||{};r.options.countries.defaultCode=r.options.countries.defaultCode||"";r.options.countries.value=r.options.countries.value||"";r.options.countries.prepopulate=typeof r.options.countries.prepopulate=="boolean"?r.options.countries.prepopulate:!0;r.options.list=r.options.list||{};r.options.list.name=r.options.name?r.options.name+"_results":"";r.options.list.maxItems=r.options.list.maxItems||r.options.maxItems;r.options.list.minItems=r.options.list.minItems||r.options.minItems;r.options.countries.list=r.options.countries.list||n.merge(r.options.list,{});r.options.countries.list.name=r.options.name?r.options.name+"_countries":"";r.options.bar=r.options.bar||{};r.options.bar.visible=typeof r.options.bar.visible=="boolean"?r.options.bar.visible:!0;r.options.bar.showCountry=typeof r.options.bar.showCountry=="boolean"?r.options.bar.showCountry:!0;r.options.bar.showLogo=typeof r.options.bar.showLogo=="boolean"?r.options.bar.showLogo:!0;r.options.bar.logoLink=typeof r.options.bar.logoLink=="boolean"?r.options.bar.logoLink:!1;r.options.bar.logoClass=r.options.bar.logoClass||"pcalogo"||"pcalogo";r.options.bar.logoUrl=r.options.bar.logoUrl||"http://www.postcodeanywhere.co.uk/address-capture-software"||"http://www.postcodeanywhere.co.uk/address-capture-software";r.options.search=r.options.search||{};r.country=r.options.countries.defaultCode;r.advancedFields=r.options.advancedFields;r.initialSearch=!1;r.searchContext=null;r.lastActionTimer=null;r.notifcationTimer=null;r.storedSearch=null;r.geolocation=null;r.loaded=!1;r.language="en";r.filteringMode=r.options.filteringMode;r.orderingMode=r.options.orderingMode;r.autocomplete=null;r.countrylist=null;r.messageBox=null;r.load=function(){for(var t,l,f,w,e,b,a,u,v,y,s,h,p=[],o=[],c=0;c<r.fields.length;c++)t=r.fields[c],t.mode=typeof t.mode=="number"?t.mode:n.fieldMode.DEFAULT,t.mode&n.fieldMode.COUNTRY?(o.push(t.element),/CountryIso2/.test(t.field)&&(r.options.countries.nameType=r.options.countries.nameType||n.countryNameType.ISO2,r.options.countries.valueType=r.options.countries.valueType||n.countryNameType.ISO2),/CountryIso3/.test(t.field)&&(r.options.countries.nameType=r.options.countries.nameType||n.countryNameType.ISO3,r.options.countries.valueType=r.options.countries.valueType||n.countryNameType.ISO3)):t.mode&n.fieldMode.SEARCH&&(p.push(t.element),r.options.suppressAutocomplete&&(l=n.getElement(t.element),l&&(l.autocomplete="pca"))),t.field=r.checkFormat(t.field);r.detectLanguage();r.autocomplete=new n.AutoComplete(p,r.options.list);r.autocomplete.skipFilter=!0;r.autocomplete.listen("keyup",function(n){r.countrylist.autocomplete.visible?r.countrylist.autocomplete.handleKey(n):r.autocomplete.controlDown&&n==40?r.switchToCountrySelect():(n==0||n==8||n==32||n>36)&&r.searchFromField()});r.autocomplete.listen("paste",function(){r.newSearch();r.searchFromField()});r.autocomplete.listen("focus",r.focus);r.autocomplete.listen("blur",r.blur);r.autocomplete.listen("show",function(){r.fire("show")});r.autocomplete.listen("hide",function(){r.fire("hide")});r.autocomplete.listen("dblclick",r.searchFromField);r.autocomplete.list.listen("filter",function(){r.search(n.getValue(r.autocomplete.field))});r.autocomplete.listen("delete",r.newSearch);!r.options.countries.value&&o.length&&(r.options.countries.value=n.getValue(o[0]));r.options.countries.language=r.language;r.countrylist=new n.CountryList(o,r.options.countries);r.countrylist.autocomplete.options.emptyMessage=n.messages[r.language].NOCOUNTRY;r.country=r.countrylist.country.iso3;r.countrylist.listen("change",function(n){r.country=n&&n.iso3?n.iso3:r.options.countries.defaultCode;r.fire("country",n)});r.countrylist.listen("select",r.switchToSearchMode);r.countrylist.autocomplete.listen("filter",function(){r.options.preselect&&r.countrylist.autocomplete.list.first()});r.countrylist.autocomplete.listen("show",function(){r.fire("show")});r.countrylist.autocomplete.listen("hide",function(){r.autocomplete.enable();r.storedSearch!=null&&n.setValue(r.autocomplete.field,r.storedSearch);r.storedSearch=null;r.fire("hide")});r.countrylist.autocomplete.list.collection.count==1&&(r.options.bar.showCountry=!1);f=n.create("div",{className:"pcaflagbutton"});w=r.countrylist.flag();f.appendChild(w);r.autocomplete.footer.setContent(r.options.bar.showCountry?f:"");n.listen(f,"click",r.switchToCountrySelect);e=n.create("div",{className:"pcaflagbutton"});b=r.countrylist.flag();e.appendChild(b);r.countrylist.autocomplete.footer.setContent(r.options.bar.showCountry?e:"");n.listen(e,"click",r.switchToSearchMode);a=n.create("div",{className:"pcamessage pcadisableselect",innerHTML:n.messages[r.language].COUNTRYSELECT});r.autocomplete.footer.setContent(r.options.bar.showCountry?a:"");u=n.create("a",{href:r.options.bar.logoUrl,target:"_blank"});v=n.create("div",{className:r.options.bar.logoClass+" pcalogo"+r.language});r.options.bar.logoLink?u.appendChild(v):u=v;r.autocomplete.footer.setContent(u);r.showFooterLogo=function(){u.style.display=r.options.bar.showLogo?"":"none"};r.showFooterMessage=function(){u.style.display=r.options.bar.showCountry?"none":r.options.bar.showLogo?"":"none"};r.options.bar.visible?(r.autocomplete.footer.show(),r.showFooterMessage()):r.autocomplete.hide();y=n.create("div",{className:"pcamessage pcadisableselect",innerHTML:n.messages[r.language].COUNTRYSELECT});r.countrylist.autocomplete.footer.setContent(r.options.bar.showCountry?y:"");r.options.bar.visible&&r.countrylist.autocomplete.footer.show();r.options.manualEntryItem&&r.addManualEntryItem();r.options.setCountryByIP&&r.setCountryByIP();i.name&&(s=i.list.name,h=i.countries.list.name,n.setAttributes(a,{id:s+"_label"}),n.setAttributes(f,{id:s+"_button",role:"button","aria-labelledby":s+"_label"}),n.setAttributes(y,{id:h+"_label"}),n.setAttributes(e,{id:h+"_button",role:"button","aria-labelledby":h+"_label"}));r.messageBox=n.create("div",{className:"pcatext pcanotification"});n.append(r.messageBox,n.container);r.loaded=!0;r.fire("load")};r.searchFromField=function(){var t=n.getValue(r.autocomplete.field);t&&!r.autocomplete.disabled&&!r.initialSearch&&t.length>=r.options.minSearch&&(r.initialSearch=!0,r.search(t))};r.search=function(t){function o(t,i){t.length?r.display(t,n.templates.AUTOCOMPLETE,i):f()}var e,i,u;return r.searchContext&&(~t.indexOf(r.searchContext.search)?t=t.replace(r.searchContext.search,r.searchContext.text):r.searchContext=null),e=r.searchContext?r.searchContext.id||"":"",i={searchTerm:t,lastId:e,options:r.options.search},r.fire("search",i),i.searchTerm&&(u={Key:r.key,Country:r.country,SearchTerm:i.searchTerm,LanguagePreference:r.language,LastId:i.lastId,SearchFor:r.filteringMode,OrderBy:r.orderingMode,$block:!0,$cache:!0},i.options.maxSuggestions&&(u.MaxSuggestions=i.options.maxSuggestions),i.options.maxResults&&(u.MaxResults=i.options.maxResults),n.fetch(r.options.provider+"/Interactive/Find/v2.10",u,o,r.error)),r};r.searchByLocation=function(t,i){function s(n){n&&n.coords?(t=n.coords.latitude,i=n.coords.longitude,e=n.coords.accuracy,r.geolocation=n.coords,r.fire("location",r.geolocation),o()):u()}function u(){r.message(n.messages[r.language].NOLOCATION,!0);r.fire("location")}function o(){function u(t,i){t.length?r.display(t,n.templates.AUTOCOMPLETE,i):f()}n.fetch(r.options.provider+"/Interactive/FindByPosition/v2.00",{Key:r.key,Latitude:t,Longitude:i,LocationAccuracy:e,LanguagePreference:r.language,$block:!0,$cache:!0},u,r.error)}var e=0;return(t||t==0)&&(i||i==0)?o():navigator.geolocation?navigator.geolocation.getCurrentPosition(s,u,{enableHighAccuracy:!0}):u(),r};r.retrieve=function(t){function e(n){n.length?r.populate(n):f(n)}function f(t){r.message(n.messages[r.language].RETRIEVEERROR,{clickToDisable:r.options.manualEntry,error:!0,clearList:!0});r.error(t)}for(var u={Key:r.key,Id:t,Source:r.options.source,$cache:!0},i=0;i<r.advancedFields.length;i++)u["field"+(i+1)+"format"]=r.advancedFields[i];n.fetch(r.options.provider+"/Interactive/RetrieveFormatted/v2.10",u,e,f)};r.error=function(t){if(r.fire("error",t),n.clearBlockingRequests(),!r.listeners.error)if(typeof console!="undefined"&&typeof console.error!="undefined")console.error(n.messages[r.language].SERVICEERROR+" "+t);else throw n.messages[r.language].SERVICEERROR+" "+t;};r.display=function(t,i,f){if(r.autocomplete.header.hide(),r.highlight(t),r.fire("results",t,f),r.autocomplete.clear().add(t,i,r.select).show(),r.showFooterLogo(),r.autocomplete.list.collection.all(function(t){t.data&&t.data.Next&&t.data.Next=="Find"&&n.addClass(t.element,"pcaexpandable")}),r.options.preselect&&r.autocomplete.list.first(),r.options.prompt){function t(){r.message(n.messages[r.language].KEEPTYPING)}u();r.options.promptDelay?r.lastActionTimer=window.setTimeout(t,r.options.promptDelay):t()}return r.options.matchCount&&f&&f.ContainerCount&&e(f.ContainerCount),r.fire("display",t,f),r};r.message=function(t,i){if(i=i||{},i.notificationTimeout=i.notificationTimeout||3e3,i.inline=i.inline||r.options.inlineMessages,u(),i.inline)r.autocomplete.show(),i.clickToDisable?r.autocomplete.header.clear().setContent(n.create("div",{className:"pcamessage",innerHTML:t,onclick:r.manualEntry},"cursor:pointer;")).show():r.autocomplete.header.clear().setText(t).show(),r.reposition();else{r.messageBox.innerHTML=t;n.addClass(r.messageBox,"pcavisible");n.removeClass(r.messageBox,"pcaerror");i.error&&n.addClass(r.messageBox,"pcaerror");r.notifcationTimer&&window.clearTimeout(r.notifcationTimer);n.removeClass(r.messageBox,"pcafade");r.notifcationTimer=window.setTimeout(function(){n.addClass(r.messageBox,"pcafade");window.setTimeout(function(){n.removeClass(r.messageBox,"pcavisible")},500)},i.notificationTimeout);var f=n.getPosition(r.autocomplete.field),e=n.getSize(r.autocomplete.field),o=n.getSize(r.messageBox);r.messageBox.style.top=(r.autocomplete.upwards?f.top+e.height+8:f.top-o.height-8)+"px";r.messageBox.style.left=f.left+"px"}return i.clearList&&r.autocomplete.clear().list.hide(),r};r.setCursorText=function(n,t){return r.autocomplete.prompt(n,t),r};r.select=function(t){function i(){var i=n.getValue(r.autocomplete.field);r.options.setCursor?(i=n.removeHtml(t.Text).replace("...",""),r.setCursorText(i,t.Cursor>=0?t.Cursor:null)):(n.setValue(r.autocomplete.field,i+" "),r.autocomplete.field.focus());r.searchContext={id:t.Id,text:t.Text,search:i};r.search(i)}return r.fire("select",t),t.Next=="Retrieve"?r.retrieve(t.Id):i(),r};r.highlight=function(n,t,i){var f,r,o,e,u;for(t=t||"<b>",i=i||"<\/b>",f=0;f<n.length;f++)if(r=n[f],r.HighlightedText=r.title=r.tag=r.Text,r.Highlight)for(o=r.Highlight.split(","),e=o.length-1;e>=0;e--)u=o[e].split("-"),r.HighlightedText=r.HighlightedText.substring(0,parseInt(u[0]))+t+r.HighlightedText.substring(parseInt(u[0]),parseInt(u[1]))+i+r.HighlightedText.substring(parseInt(u[1]),r.HighlightedText.length)};r.populate=function(t){var u=t[0],e,f,l,o,v,a,s,h,i,c,y;if(r.options.languagePreference)for(e=0;e<t.length;e++)if(t[e].Language==r.options.languagePreference.toUpperCase()){u=t[e];break}for(r.options.countries.prepopulate&&r.countrylist.populate(),f={Line1:null,Line2:null,Line3:null,Line4:null,Line5:null,Street:null,Building:null,Company:null},l=0,o=0;o<r.fields.length;o++)for(v in f)~r.fields[o].field.indexOf(v)&&(f[v]=r.fields[o]);for(a=1;a<=5;a++)f["Line"+a]&&l++;for(f.Building&&f.Street&&l++,s=1;s<=5;s++)u["FormattedLine"+s]=r.getAddressLine(u,s,l,!f.Company);for(r.fire("prepopulate",u,t),h=0;h<r.fields.length&&r.options.populate;h++)(i=r.fields[h],i.mode&n.fieldMode.POPULATE)&&(!r.options.onlyInputs||n.inputField(i.element)||n.selectList(i.element)||n.checkBox(i.element))&&(i.mode&n.fieldMode.PRESERVE&&n.getValue(i.element)&&r.autocomplete.field!=n.getElement(i.element)||(c=r.fields[h].field.replace(/(Formatted)?Line/g,"FormattedLine"),y=/[\{\}]/.test(c)||c==""?n.formatLine(u,c):u[c],n.setValue(i.element,y)));return r.hide(),r.newSearch(),r.fire("populate",u,t),r};r.getAddressLine=function(n,t,i,r){var u,f="",o,s,e;if(r=r&&!!n.Company,r){if(t==1&&i>1)return n.Company;t==1&&i==1?f=n.Company:(t--,i--)}for(u=n.Line1?n.Line2?n.Line3?n.Line4?n.Line5?5:4:3:2:1:0,o=i>=u?t:Math.floor(1+(u/i+(i-(t-1))/i)*(t-1)),s=Math.floor(u/i+(i-t)/i),e=0;e<s;e++)f+=(f?", ":"")+(n["Line"+(e+o)]||"");return f};r.switchToCountrySelect=function(){r.countrylist.autocomplete.position(r.autocomplete.field);r.countrylist.autocomplete.field=r.autocomplete.field;r.countrylist.autocomplete.focused=!0;r.countrylist.autocomplete.enable().showAll();r.countrylist.autocomplete.list.first();r.autocomplete.disable().hide();r.storedSearch=n.getValue(r.autocomplete.field);n.clear(r.autocomplete.field);r.autocomplete.field.focus()};r.switchToSearchMode=function(){var n=r.storedSearch!=null;r.countrylist.autocomplete.hide();r.autocomplete.enable();n&&(r.newSearch(),r.autocomplete.field.focus(),r.searchFromField())};r.setCountry=function(n){return r.countrylist.setCountry(n),r};r.setCountryByIP=function(){return r.countrylist.setCountryByIP(r.key),r};r.detectLanguage=function(){var t=r.options.culture||(window&&window.navigator?window.navigator.language||window.navigator.browserLanguage:"")||"";r.language=t&&t.length>1?t.substring(0,2).toLowerCase():"en";n.messages[r.language]||(r.language="en")};r.setCulture=function(n){r.options.culture=n;r.reload()};r.setWidth=function(n){r.autocomplete.setWidth(n);r.countrylist.autocomplete.setWidth(n)};r.setHeight=function(n){r.autocomplete.setHeight(n);r.countrylist.autocomplete.setHeight(n)};r.clear=function(){for(var t=0;t<r.fields.length;t++)n.setValue(r.fields[t].element,"");return r.fire("clear"),r};r.reset=function(){return r.options.bar.visible?(r.autocomplete.list.clear().hide(),r.autocomplete.header.hide(),r.showFooterMessage(),r.autocomplete.reposition()):(r.autocomplete.hide(),r.autocomplete.footer.hide()),u(),r.newSearch(),r};r.newSearch=function(){r.initialSearch=!1;r.searchContext=null};r.focus=function(){r.reset();r.options.autoSearch&&r.searchFromField();r.fire("focus")};r.blur=function(){u();r.countrylist.autocomplete.field=null;r.countrylist.autocomplete.focused=!1;r.countrylist.autocomplete.checkHide();r.fire("blur")};r.hide=function(){u();r.autocomplete.hide();r.countrylist.autocomplete.hide();r.fire("hide")};r.visible=function(){return r.autocomplete.visible||r.countrylist.autocomplete.visible};r.reposition=function(){r.autocomplete.reposition();r.countrylist.autocomplete.reposition()};r.disable=function(){return r.autocomplete.disabled=!0,r.countrylist.autocomplete.disabled=!0,r};r.enable=function(){return r.autocomplete.disabled=!1,r.countrylist.autocomplete.disabled=!1,r};r.destroy=function(){return r.autocomplete&&r.autocomplete.destroy(),r.countrylist&&r.countrylist.autocomplete.destroy(),r};r.reload=function(){r.destroy();r.load()};r.manualEntry=function(){return window&&window.setTimeout&&r.options.disableTime&&(r.autocomplete.field.focus(),r.destroy(),window.setTimeout(r.load,r.options.disableTime),r.fire("manual")),r};r.addManualEntryItem=function(t){t=t||n.messages[r.language].MANUALENTRY;r.autocomplete.list.setFooterItem({text:t},"<u>{text}<\/u>",r.manualEntry)};r.bound=function(i){if(i=n.getElement(i))for(var u=0;u<r.fields.length;u++)if(i==n.getElement(t[u].element))return!0;return!1};r.checkFormat=function(t){function i(t){for(var i in n.exampleAddress)if(i==t)return!0;return!1}return t.replace(/\{(\w+)([^\}\w])?\}/g,function(n,t){return i(t)?n:(r.advancedFields.push(n),"{Field"+r.advancedFields.length+"}")})};n.ready(r.load)}}(),function(n,t){"use strict";n.Calendario=function(t,i){this.$el=n(i);this._init(t)};n.Calendario.defaults={weeks:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekabbrs:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthabbrs:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],displayWeekAbbr:!1,displayMonthAbbr:!1,startIn:1,onDayClick:function(){return!1},onShowAllClick:function(){return!1}};n.Calendario.prototype={_init:function(t){this.options=n.extend(!0,{},n.Calendario.defaults,t);this.today=new Date;this.month=isNaN(this.options.month)||this.options.month==null?this.today.getMonth():this.options.month-1;this.year=isNaN(this.options.year)||this.options.year==null?this.today.getFullYear():this.options.year;this.caldata=this.options.caldata||{};this._generateTemplate();this._initEvents()},_initEvents:function(){var t=this;this.$el.on("click.calendario","div.fc-row > div",function(){var i=n(this),r=i.index(),f=i.children("div"),u={day:i.children("span.fc-date").text(),month:t.month+1,monthname:t.options.displayMonthAbbr?t.options.monthabbrs[t.month]:t.options.months[t.month],year:t.year,weekday:r+t.options.startIn,weekdayname:t.options.weeks[r+t.options.startIn]};if(u.day)t.options.onDayClick(i,f,u)});this.$el.on("click.calendario","div.fc-row > div .fc-showall",function(i){var r=n(this),u=r.parent(),f=u.index(),e={day:u.children("span.fc-date").text(),month:t.month+1,monthname:t.options.displayMonthAbbr?t.options.monthabbrs[t.month]:t.options.months[t.month],year:t.year,weekday:f+t.options.startIn,weekdayname:t.options.weeks[f+t.options.startIn]};if(e.day)t.options.onShowAllClick(r,e);i.preventDefault()})},_generateTemplate:function(t){var r=this._getHead(),u=this._getBody(),i;switch(this.rowTotal){case 4:i="fc-four-rows";break;case 5:i="fc-five-rows";break;case 6:i="fc-six-rows"}this.$cal=n('<div class="fc-calendar '+i+'">').append(r,u);this.$el.find("div.fc-calendar").remove().end().append(this.$cal);t&&t.call()},_getHead:function(){for(var t,r,n='<div class="fc-head">',i=0;i<=6;i++)t=i+this.options.startIn,r=t>6?t-7:t,n+="<div>",n+=this.options.displayWeekAbbr?this.options.weekabbrs[r]:this.options.weeks[r],n+="<\/div>";return n+"<\/div>"},_getBody:function(){var a=new Date(this.year,this.month+1,0),h=a.getDate(),v=new Date(this.year,this.month,1),i,n,r,t,l,s,f;for(this.startingDay=v.getDay(),i='<div class="fc-body"><div class="fc-row">',n=1,r=0;r<7;r++){for(t=0;t<=6;t++){var e=this.startingDay-this.options.startIn,y=e<0?6+e+1:e,o="",c=this.month===this.today.getMonth()&&this.year===this.today.getFullYear()&&n===this.today.getDate(),u="";n<=h&&(r>0||t>=y)?(o+='<span class="fc-date">'+n+'<\/span><a href="#" class="fc-showall">Show All<\/a><span class="fc-weekday">'+this.options.weekabbrs[t+this.options.startIn>6?t+this.options.startIn-7:t+this.options.startIn]+"<\/span>",l=(this.month+1<10?"0"+(this.month+1):this.month+1)+"-"+(n<10?"0"+n:n)+"-"+this.year,s=this.caldata[l],s&&(u=s),u!==""&&(o+="<div>"+u+"<\/div>"),++n):c=!1;f=c?"fc-today ":"";u!==""&&(f+="fc-content");i+=f!==""?'<div class="'+f+'">':"<div>";i+=o;i+="<\/div>"}if(n>h){this.rowTotal=r+1;break}else i+='<\/div><div class="fc-row">'}return i+"<\/div><\/div>"},_isValidDate:function(n){n=n.replace(/-/gi,"");var t=parseInt(n.substring(0,2),10),i=parseInt(n.substring(2,4),10),r=parseInt(n.substring(4,8),10);return t<1||t>12?!1:i<1||i>31||(t==4||t==6||t==9||t==11)&&i>30||t==2&&(r%400==0||r%4==0)&&r%100!=0&&i>29||t==2&&r%100==0&&i>29?!1:{day:i,month:t,year:r}},_move:function(n,t,i){t==="previous"?n==="month"?(this.year=this.month>0?this.year:--this.year,this.month=this.month>0?--this.month:11):n==="year"&&(this.year=--this.year):t==="next"&&(n==="month"?(this.year=this.month<11?this.year:++this.year,this.month=this.month<11?++this.month:0):n==="year"&&(this.year=++this.year));this._generateTemplate(i)},getYear:function(){return this.year},getMonth:function(){return this.month+1},getMonthName:function(){return this.options.displayMonthAbbr?this.options.monthabbrs[this.month]:this.options.months[this.month]},getCell:function(n){var t=Math.floor((n+this.startingDay-this.options.startIn)/7),i=n+this.startingDay-this.options.startIn-t*7-1;return this.$cal.find("div.fc-body").children("div.fc-row").eq(t).children("div").eq(i).children("div")},setData:function(t){t=t||{};n.extend(this.caldata,t);this._generateTemplate()},gotoNow:function(n){this.month=this.today.getMonth();this.year=this.today.getFullYear();this._generateTemplate(n)},goto:function(n,t,i){this.month=n;this.year=t;this._generateTemplate(i)},gotoPreviousMonth:function(n){this._move("month","previous",n)},gotoPreviousYear:function(n){this._move("year","previous",n)},gotoNextMonth:function(n){this._move("month","next",n)},gotoNextYear:function(n){this._move("year","next",n)}};var i=function(n){t.console&&t.console.error(n)};n.fn.calendario=function(t){var r=n.data(this,"calendario"),u;return typeof t=="string"?(u=Array.prototype.slice.call(arguments,1),this.each(function(){if(!r){i("cannot call methods on calendario prior to initialization; attempted to call method '"+t+"'");return}if(!n.isFunction(r[t])||t.charAt(0)==="_"){i("no such method '"+t+"' for calendario instance");return}r[t].apply(r,u)})):this.each(function(){r?r._init():r=n.data(this,"calendario",new n.Calendario(t,this))}),r}}(jQuery,window),function(n,t,i,r){function c(i,r){this.w=n(t);this.el=n(i);this.options=n.extend({},h,r);this.init()}var u="ontouchstart"in t,f=function(){var n=i.createElement("div"),r=i.documentElement,u;return("pointerEvents"in n.style)?(n.style.pointerEvents="auto",n.style.pointerEvents="x",r.appendChild(n),u=t.getComputedStyle&&t.getComputedStyle(n,"").pointerEvents==="auto",r.removeChild(n),!!u):!1}(),e=u?"touchstart":"mousedown",o=u?"touchmove":"mousemove",s=u?"touchend":"mouseup",h;eCancel=u?"touchcancel":"mouseup";h={listNodeName:"ol",itemNodeName:"li",rootClass:"dd",listClass:"dd-list",itemClass:"dd-item",dragClass:"dd-dragel",handleClass:"dd-handle",collapsedClass:"dd-collapsed",placeClass:"dd-placeholder",noDragClass:"dd-nodrag",emptyClass:"dd-empty",expandBtnHTML:'<button data-action="expand" type="button">Expand<\/button>',collapseBtnHTML:'<button data-action="collapse" type="button">Collapse<\/button>',group:0,maxDepth:5,threshold:20};c.prototype={init:function(){var i=this;i.reset();i.el.data("nestable-group",this.options.group);i.placeEl=n('<div class="'+i.options.placeClass+'"/>');n.each(this.el.find(i.options.itemNodeName),function(t,r){i.setParent(n(r))});i.el.on("click","button",function(t){if(!i.dragEl&&(u||t.button===0)){var r=n(t.currentTarget),f=r.data("action"),e=r.parent(i.options.itemNodeName);f==="collapse"&&i.collapseItem(e);f==="expand"&&i.expandItem(e)}});var f=function(t){var r=n(t.target);if(!r.hasClass(i.options.handleClass)){if(r.closest("."+i.options.noDragClass).length)return;r=r.closest("."+i.options.handleClass)}r.length&&!i.dragEl&&(u||t.button===0)&&(!u||t.touches.length===1)&&(t.preventDefault(),i.dragStart(u?t.touches[0]:t))},h=function(n){i.dragEl&&(n.preventDefault(),i.dragMove(u?n.touches[0]:n))},r=function(n){i.dragEl&&(n.preventDefault(),i.dragStop(u?n.touches[0]:n))};if(u)i.el[0].addEventListener(e,f,!1),t.addEventListener(o,h,!1),t.addEventListener(s,r,!1),t.addEventListener(eCancel,r,!1);else{i.el.on(e,f);i.w.on(o,h);i.w.on(s,r)}},serialize:function(){var t=this;return step=function(i,r){var u=[],f=i.children(t.options.itemNodeName);return f.each(function(){var i=n(this),f=n.extend({},i.data()),e=i.children(t.options.listNodeName);e.length&&(f.children=step(e,r+1));u.push(f)}),u},step(t.el.find(t.options.listNodeName).first(),0)},serialise:function(){return this.serialize()},reset:function(){this.mouse={offsetX:0,offsetY:0,startX:0,startY:0,lastX:0,lastY:0,nowX:0,nowY:0,distX:0,distY:0,dirAx:0,dirX:0,dirY:0,lastDirX:0,lastDirY:0,distAxX:0,distAxY:0};this.moving=!1;this.dragEl=null;this.dragRootEl=null;this.dragDepth=0;this.hasNewRoot=!1;this.pointEl=null},expandItem:function(n){n.removeClass(this.options.collapsedClass);n.children('[data-action="expand"]').hide();n.children('[data-action="collapse"]').show();n.children(this.options.listNodeName).show()},collapseItem:function(n){var t=n.children(this.options.listNodeName);t.length&&(n.addClass(this.options.collapsedClass),n.children('[data-action="collapse"]').hide(),n.children('[data-action="expand"]').show(),n.children(this.options.listNodeName).hide())},expandAll:function(){var t=this;t.el.find(t.options.itemNodeName).each(function(){t.expandItem(n(this))})},collapseAll:function(){var t=this;t.el.find(t.options.itemNodeName).each(function(){t.collapseItem(n(this))})},setParent:function(t){t.children(this.options.listNodeName).length&&(t.prepend(n(this.options.expandBtnHTML)),t.prepend(n(this.options.collapseBtnHTML)));t.children('[data-action="expand"]').hide()},unsetParent:function(n){n.removeClass(this.options.collapsedClass);n.children("[data-action]").remove();n.children(this.options.listNodeName).remove()},dragStart:function(t){var u=this.mouse,o=n(t.target),f=o.closest(this.options.itemNodeName),e,s,h;for(this.placeEl.css("height",f.height()),u.offsetX=t.offsetX!==r?t.offsetX:t.pageX-o.offset().left,u.offsetY=t.offsetY!==r?t.offsetY:t.pageY-o.offset().top,u.startX=u.lastX=t.pageX,u.startY=u.lastY=t.pageY,this.dragRootEl=this.el,this.dragEl=n(i.createElement(this.options.listNodeName)).addClass(this.options.listClass+" "+this.options.dragClass),this.dragEl.css("width",f.width()),f.after(this.placeEl),f[0].parentNode.removeChild(f[0]),f.appendTo(this.dragEl),n(i.body).append(this.dragEl),this.dragEl.css({left:t.pageX-u.offsetX,top:t.pageY-u.offsetY}),h=this.dragEl.find(this.options.itemNodeName),e=0;e<h.length;e++)s=n(h[e]).parents(this.options.listNodeName).length,s>this.dragDepth&&(this.dragDepth=s)},dragStop:function(){var n=this.dragEl.children(this.options.itemNodeName).first();n[0].parentNode.removeChild(n[0]);this.placeEl.replaceWith(n);this.dragEl.remove();this.el.trigger("change");this.hasNewRoot&&this.dragRootEl.trigger("change");this.reset()},dragMove:function(r){var o,h,s,p,c,e=this.options,u=this.mouse,l,a,v,y,w;if(this.dragEl.css({left:r.pageX-u.offsetX,top:r.pageY-u.offsetY}),u.lastX=u.nowX,u.lastY=u.nowY,u.nowX=r.pageX,u.nowY=r.pageY,u.distX=u.nowX-u.lastX,u.distY=u.nowY-u.lastY,u.lastDirX=u.dirX,u.lastDirY=u.dirY,u.dirX=u.distX===0?0:u.distX>0?1:-1,u.dirY=u.distY===0?0:u.distY>0?1:-1,l=Math.abs(u.distX)>Math.abs(u.distY)?1:0,!u.moving){u.dirAx=l;u.moving=!0;return}if(u.dirAx!==l?(u.distAxX=0,u.distAxY=0):(u.distAxX+=Math.abs(u.distX),u.dirX!==0&&u.dirX!==u.lastDirX&&(u.distAxX=0),u.distAxY+=Math.abs(u.distY),u.dirY!==0&&u.dirY!==u.lastDirY&&(u.distAxY=0)),u.dirAx=l,u.dirAx&&u.distAxX>=e.threshold&&(u.distAxX=0,s=this.placeEl.prev(e.itemNodeName),u.distX>0&&s.length&&!s.hasClass(e.collapsedClass)&&(o=s.find(e.listNodeName).last(),c=this.placeEl.parents(e.listNodeName).length,c+this.dragDepth<=e.maxDepth&&(o.length?(o=s.children(e.listNodeName).last(),o.append(this.placeEl)):(o=n("<"+e.listNodeName+"/>").addClass(e.listClass),o.append(this.placeEl),s.append(o),this.setParent(s)))),u.distX<0&&(p=this.placeEl.next(e.itemNodeName),p.length||(h=this.placeEl.parent(),this.placeEl.closest(e.itemNodeName).after(this.placeEl),h.children().length||this.unsetParent(h.parent())))),a=!1,f||(this.dragEl[0].style.visibility="hidden"),this.pointEl=n(i.elementFromPoint(r.pageX-i.body.scrollLeft,r.pageY-(t.pageYOffset||i.documentElement.scrollTop))),f||(this.dragEl[0].style.visibility="visible"),this.pointEl.hasClass(e.handleClass)&&(this.pointEl=this.pointEl.parent(e.itemNodeName)),this.pointEl.hasClass(e.emptyClass))a=!0;else if(!this.pointEl.length||!this.pointEl.hasClass(e.itemClass))return;if(v=this.pointEl.closest("."+e.rootClass),y=this.dragRootEl.data("nestable-id")!==v.data("nestable-id"),!u.dirAx||y||a){if(y&&e.group!==v.data("nestable-group"))return;if(c=this.dragDepth-1+this.pointEl.parents(e.listNodeName).length,c>e.maxDepth)return;w=r.pageY<this.pointEl.offset().top+this.pointEl.height()/2;h=this.placeEl.parent();a?(o=n(i.createElement(e.listNodeName)).addClass(e.listClass),o.append(this.placeEl),this.pointEl.replaceWith(o)):w?this.pointEl.before(this.placeEl):this.pointEl.after(this.placeEl);h.children().length||this.unsetParent(h.parent());this.dragRootEl.find(e.itemNodeName).length||this.dragRootEl.append('<div class="'+e.emptyClass+'"/>');y&&(this.dragRootEl=v,this.hasNewRoot=this.el[0]!==this.dragRootEl[0])}}};n.fn.nestable=function(t){var i=this,r=this;return i.each(function(){var i=n(this).data("nestable");i?typeof t=="string"&&typeof i[t]=="function"&&(r=i[t]()):(n(this).data("nestable",new c(this,t)),n(this).data("nestable-id",(new Date).getTime()))}),r||i}}(window.jQuery||window.Zepto,window,document);!function(n){n.fn.wheelColorPicker=function(){var f=this,u,i,r;return 0<arguments.length?u="string"==typeof(i=[].shift.apply(arguments))?i.charAt(0).toUpperCase()+i.slice(1):i:(i=void 0,u=void 0),r=arguments,this.each(function(){var e=n(this).data("jQWCP.instance"),s,o;if((null==e||null==e)&&(s={},"object"==typeof i&&(s=i),e=new t.ColorPicker(this,s),n(this).data("jQWCP.instance",e)),void 0!==i&&"object"!=typeof i)if("function"==typeof e[i]){if((o=e[i].apply(e,r))!==e)return f=o,!1}else if("function"==typeof e["set"+u]&&0<r.length){if((o=e["set"+u].apply(e,r))!==e)return f=o,!1}else if("function"==typeof e["get"+u]){if((o=e["get"+u].apply(e,r))!==e)return f=o,!1}else if(void 0!==e.options[i]&&0<r.length)e.options[i]=r[0];else{if(void 0!==e.options[i])return f=e.options[i],!1;n.error("Method/option named "+i+" does not exist on jQuery.wheelColorPicker")}}),f};var t=n.fn.wheelColorPicker;t.defaults={format:"hex",preview:!1,live:!0,userinput:!0,validate:!0,autoResize:!0,autoFormat:!0,preserveWheel:null,cssClass:"",layout:"popup",animDuration:200,quality:1,sliders:null,rounding:2,mobile:!0,mobileWidth:480,hideKeyboard:!1,htmlOptions:!0,snap:!1,snapTolerance:.05};t.BUG_RELATIVE_PAGE_ORIGIN=!1;t.ORIGIN={left:0,top:0};t.colorToStr=function(n,t){var i="",r,u,f,e;switch(t){case"css":i="#";case"hex":1==(r=Math.round(255*n.r).toString(16)).length&&(r="0"+r);1==(u=Math.round(255*n.g).toString(16)).length&&(u="0"+u);1==(f=Math.round(255*n.b).toString(16)).length&&(f="0"+f);i+=r+u+f;break;case"cssa":i="#";case"hexa":1==(r=Math.round(255*n.r).toString(16)).length&&(r="0"+r);1==(u=Math.round(255*n.g).toString(16)).length&&(u="0"+u);1==(f=Math.round(255*n.b).toString(16)).length&&(f="0"+f);e=Math.round(255*n.a).toString(16);1==e.length&&(e="0"+e);i+=r+u+f+e;break;case"rgb":i="rgb("+Math.round(255*n.r)+","+Math.round(255*n.g)+","+Math.round(255*n.b)+")";break;case"rgb%":i="rgb("+100*n.r+"%,"+100*n.g+"%,"+100*n.b+"%)";break;case"rgba":i="rgba("+Math.round(255*n.r)+","+Math.round(255*n.g)+","+Math.round(255*n.b)+","+n.a+")";break;case"rgba%":i="rgba("+100*n.r+"%,"+100*n.g+"%,"+100*n.b+"%,"+100*n.a+"%)";break;case"hsv":i="hsv("+360*n.h+","+n.s+","+n.v+")";break;case"hsv%":i="hsv("+100*n.h+"%,"+100*n.s+"%,"+100*n.v+"%)";break;case"hsva":i="hsva("+360*n.h+","+n.s+","+n.v+","+n.a+")";break;case"hsva%":i="hsva("+100*n.h+"%,"+100*n.s+"%,"+100*n.v+"%,"+100*n.a+"%)";break;case"hsb":i="hsb("+n.h+","+n.s+","+n.v+")";break;case"hsb%":i="hsb("+100*n.h+"%,"+100*n.s+"%,"+100*n.v+"%)";break;case"hsba":i="hsba("+n.h+","+n.s+","+n.v+","+n.a+")";break;case"hsba%":i="hsba("+100*n.h+"%,"+100*n.s+"%,"+100*n.v+"%,"+100*n.a+"%)"}return i};t.strToColor=function(n){var i,r,t={a:1};if(null!=n.match(/^#[0-9a-f]{3}$/i)||n.match(/^#[0-9a-f]{4}$/i)){if(isNaN(t.r=parseInt(n.substr(1,1),16)/15)||isNaN(t.g=parseInt(n.substr(2,1),16)/15)||isNaN(t.b=parseInt(n.substr(3,1),16)/15)||5==n.length&&isNaN(t.a=parseInt(n.substr(4,1),16)/15))return!1}else if(null!=n.match(/^[0-9a-f]{3}$/i)||null!=n.match(/^[0-9a-f]{4}$/i)){if(isNaN(t.r=parseInt(n.substr(0,1),16)/15)||isNaN(t.g=parseInt(n.substr(1,1),16)/15)||isNaN(t.b=parseInt(n.substr(2,1),16)/15)||4==n.length&&isNaN(t.a=parseInt(n.substr(3,1),16)/15))return!1}else if(null!=n.match(/^#[0-9a-f]{6}$/i)||null!=n.match(/^#[0-9a-f]{8}$/i)){if(isNaN(t.r=parseInt(n.substr(1,2),16)/255)||isNaN(t.g=parseInt(n.substr(3,2),16)/255)||isNaN(t.b=parseInt(n.substr(5,2),16)/255)||9==n.length&&isNaN(t.a=parseInt(n.substr(7,2),16)/255))return!1}else if(null!=n.match(/^[0-9a-f]{6}$/i)||null!=n.match(/^[0-9a-f]{8}$/i)){if(isNaN(t.r=parseInt(n.substr(0,2),16)/255)||isNaN(t.g=parseInt(n.substr(2,2),16)/255)||isNaN(t.b=parseInt(n.substr(4,2),16)/255)||8==n.length&&isNaN(t.a=parseInt(n.substr(6,2),16)/255))return!1}else if(null!=n.match(/^rgba\s*\(\s*([0-9\.]+%|[01]?\.?[0-9]*)\s*,\s*([0-9\.]+%|[01]?\.?[0-9]*)\s*,\s*([0-9\.]+%|[01]?\.?[0-9]*)\s*,\s*([0-9\.]+%|[01]?\.?[0-9]*)\s*\)$/i)||null!=n.match(/^rgb\s*\(\s*([0-9\.]+%|[01]?\.?[0-9]*)\s*,\s*([0-9\.]+%|[01]?\.?[0-9]*)\s*,\s*([0-9\.]+%|[01]?\.?[0-9]*)\s*\)$/i)){if(r=null!=n.match(/a/i),"%"==(i=n.substring(n.indexOf("(")+1,n.indexOf(","))).charAt(i.length-1)){if(isNaN(t.r=parseFloat(i)/100))return!1}else if(isNaN(t.r=parseInt(i)/255))return!1;if("%"==(i=n.substring(n.indexOf(",")+1,n.indexOf(",",n.indexOf(",")+1))).charAt(i.length-1)){if(isNaN(t.g=parseFloat(i)/100))return!1}else if(isNaN(t.g=parseInt(i)/255))return!1;if("%"==(i=r?n.substring(n.indexOf(",",n.indexOf(",")+1)+1,n.lastIndexOf(",")):n.substring(n.lastIndexOf(",")+1,n.lastIndexOf(")"))).charAt(i.length-1)){if(isNaN(t.b=parseFloat(i)/100))return!1}else if(isNaN(t.b=parseInt(i)/255))return!1;if(r)if("%"==(i=n.substring(n.lastIndexOf(",")+1,n.lastIndexOf(")"))).charAt(i.length-1)){if(isNaN(t.a=parseFloat(i)/100))return!1}else if(isNaN(t.a=parseFloat(i)))return!1}else{if(null==n.match(/^hsva\s*\(\s*([0-9\.]+%|[01]?\.?[0-9]*)\s*,\s*([0-9\.]+%|[01]?\.?[0-9]*)\s*,\s*([0-9\.]+%|[01]?\.?[0-9]*)\s*,\s*([0-9\.]+%|[01]?\.?[0-9]*)\s*\)$/i)&&null==n.match(/^hsv\s*\(\s*([0-9\.]+%|[01]?\.?[0-9]*)\s*,\s*([0-9\.]+%|[01]?\.?[0-9]*)\s*,\s*([0-9\.]+%|[01]?\.?[0-9]*)\s*\)$/i)&&null==n.match(/^hsba\s*\(\s*([0-9\.]+%|[01]?\.?[0-9]*)\s*,\s*([0-9\.]+%|[01]?\.?[0-9]*)\s*,\s*([0-9\.]+%|[01]?\.?[0-9]*)\s*,\s*([0-9\.]+%|[01]?\.?[0-9]*)\s*\)$/i)&&null==n.match(/^hsb\s*\(\s*([0-9\.]+%|[01]?\.?[0-9]*)\s*,\s*([0-9\.]+%|[01]?\.?[0-9]*)\s*,\s*([0-9\.]+%|[01]?\.?[0-9]*)\s*\)$/i))return!1;if(r=null!=n.match(/a/i),"%"==(i=n.substring(n.indexOf("(")+1,n.indexOf(","))).charAt(i.length-1)){if(isNaN(t.h=parseFloat(i)/100))return!1}else if(isNaN(t.h=parseFloat(i)/360))return!1;if("%"==(i=n.substring(n.indexOf(",")+1,n.indexOf(",",n.indexOf(",")+1))).charAt(i.length-1)){if(isNaN(t.s=parseFloat(i)/100))return!1}else if(isNaN(t.s=parseFloat(i)))return!1;if("%"==(i=r?n.substring(n.indexOf(",",n.indexOf(",")+1)+1,n.lastIndexOf(",")):n.substring(n.lastIndexOf(",")+1,n.lastIndexOf(")"))).charAt(i.length-1)){if(isNaN(t.v=parseFloat(i)/100))return!1}else if(isNaN(t.v=parseFloat(i)))return!1;if(r)if("%"==(i=n.substring(n.lastIndexOf(",")+1,n.lastIndexOf(")"))).charAt(i.length-1)){if(isNaN(t.a=parseFloat(i)/100))return!1}else if(isNaN(t.a=parseFloat(i)))return!1}return t};t.hsvToRgb=function(n,t,i){var r=n<=1/6||5/6<=n?1:n<1/3?1-6*(n-1/6):4/6<n?6*(n-4/6):0,u=1/6<=n&&n<=.5?1:n<1/6?6*n:n<4/6?1-6*(n-.5):0,f=.5<=n&&n<=5/6?1:2/6<n&&n<.5?6*(n-2/6):5/6<n?1-6*(n-5/6):0;return{r:(r+(1-r)*(1-t))*i,g:(u+(1-u)*(1-t))*i,b:(f+(1-f)*(1-t))*i}};t.rgbToHsv=function(n,t,i){var f,r=Math.max(n,t,i),u=r-Math.min(n,t,i);return f=0==u?0:n==r?(6+(t-i)/u)%6:t==r?2+(i-n)/u:i==r?4+(n-t)/u:0,{h:f/=6,s:0!=r?u/r:0,v:r}};t.ColorPicker=function(i,r){this.input=i;this.color={h:0,s:0,v:1,r:1,g:1,b:1,a:1};this.setValue(this.input.value);this.options=n.extend(!0,{},t.defaults);this.setOptions(r);null==this.options.sliders&&(this.options.sliders="wvp"+(0<=this.options.format.indexOf("a")?"a":""));this.init()};t.ColorPicker.widget=null;t.ColorPicker.overlay=null;t.ColorPicker.init=function(){var i,r;1!=t.ColorPicker.init.hasInit&&(t.ColorPicker.init.hasInit=!0,i=n('<div class="jQWCP-overlay" style="display: none;"><\/div>'),i.on("click",t.Handler.overlay_click),t.ColorPicker.overlay=i.get(0),n("body").append(i),r=t.ColorPicker.getWheelDataUrl(200),n("head").append('<style type="text/css">.jQWCP-wWheel {background-image: url('+r+");}<\/style>"),n("html").on("mouseup.wheelColorPicker",t.Handler.html_mouseup),n("html").on("touchend.wheelColorPicker",t.Handler.html_mouseup),n("html").on("mousemove.wheelColorPicker",t.Handler.html_mousemove),n("html").on("touchmove.wheelColorPicker",t.Handler.html_mousemove),n(window).on("resize.wheelColorPicker",t.Handler.window_resize))};t.ColorPicker.createWidget=function(){var i=n("<div class='jQWCP-wWidget'><div class='jQWCP-wWheel'><div class='jQWCP-wWheelOverlay'><\/div><span class='jQWCP-wWheelCursor'><\/span><\/div><div class='jQWCP-wHue jQWCP-slider-wrapper'><canvas class='jQWCP-wHueSlider jQWCP-slider' width='1' height='50' title='Hue'><\/canvas><span class='jQWCP-wHueCursor jQWCP-scursor'><\/span><\/div><div class='jQWCP-wSat jQWCP-slider-wrapper'><canvas class='jQWCP-wSatSlider jQWCP-slider' width='1' height='50' title='Saturation'><\/canvas><span class='jQWCP-wSatCursor jQWCP-scursor'><\/span><\/div><div class='jQWCP-wVal jQWCP-slider-wrapper'><canvas class='jQWCP-wValSlider jQWCP-slider' width='1' height='50' title='Value'><\/canvas><span class='jQWCP-wValCursor jQWCP-scursor'><\/span><\/div><div class='jQWCP-wRed jQWCP-slider-wrapper'><canvas class='jQWCP-wRedSlider jQWCP-slider' width='1' height='50' title='Red'><\/canvas><span class='jQWCP-wRedCursor jQWCP-scursor'><\/span><\/div><div class='jQWCP-wGreen jQWCP-slider-wrapper'><canvas class='jQWCP-wGreenSlider jQWCP-slider' width='1' height='50' title='Green'><\/canvas><span class='jQWCP-wGreenCursor jQWCP-scursor'><\/span><\/div><div class='jQWCP-wBlue jQWCP-slider-wrapper'><canvas class='jQWCP-wBlueSlider jQWCP-slider' width='1' height='50' title='Blue'><\/canvas><span class='jQWCP-wBlueCursor jQWCP-scursor'><\/span><\/div><div class='jQWCP-wAlpha jQWCP-slider-wrapper'><canvas class='jQWCP-wAlphaSlider jQWCP-slider' width='1' height='50' title='Alpha'><\/canvas><span class='jQWCP-wAlphaCursor jQWCP-scursor'><\/span><\/div><div class='jQWCP-wPreview'><canvas class='jQWCP-wPreviewBox' width='1' height='1' title='Selected Color'><\/canvas><\/div><\/div>");return i.find(".jQWCP-wWheel, .jQWCP-slider-wrapper, .jQWCP-scursor, .jQWCP-slider").attr("unselectable","on").css("-moz-user-select","none").css("-webkit-user-select","none").css("user-select","none").css("-webkit-touch-callout","none"),i.on("contextmenu.wheelColorPicker",function(){return!1}),i.on("mousedown.wheelColorPicker",".jQWCP-wWheel",t.Handler.wheel_mousedown),i.on("touchstart.wheelColorPicker",".jQWCP-wWheel",t.Handler.wheel_mousedown),i.on("mousedown.wheelColorPicker",".jQWCP-wWheelCursor",t.Handler.wheelCursor_mousedown),i.on("touchstart.wheelColorPicker",".jQWCP-wWheelCursor",t.Handler.wheelCursor_mousedown),i.on("mousedown.wheelColorPicker",".jQWCP-slider",t.Handler.slider_mousedown),i.on("touchstart.wheelColorPicker",".jQWCP-slider",t.Handler.slider_mousedown),i.on("mousedown.wheelColorPicker",".jQWCP-scursor",t.Handler.sliderCursor_mousedown),i.on("touchstart.wheelColorPicker",".jQWCP-scursor",t.Handler.sliderCursor_mousedown),i.get(0)};t.ColorPicker.getWheelDataUrl=function(n){var e=n/2,r=e,f=document.createElement("canvas"),o,u,i,s;for(f.width=n,f.height=n,o=f.getContext("2d"),u=0;u<n;u++)for(i=0;i<n;i++)if(s=Math.sqrt(Math.pow(i-r,2)+Math.pow(u-r,2)),!(2+e<s)){var t=((i-r==0?u<r?90:270:Math.atan((r-u)/(i-r))/Math.PI*180)+(i<r?180:0)+360)%360,h=s/e,c=(Math.abs(360+t)+60)%360<120?1:240<t?(120-Math.abs(t-360))/60:t<120?(120-t)/60:0,l=Math.abs(t-120)<60?1:Math.abs(t-120)<120?(120-Math.abs(t-120))/60:0,a=Math.abs(t-240)<60?1:Math.abs(t-240)<120?(120-Math.abs(t-240))/60:0,v=Math.round(255*(c+(1-c)*(1-h))),y=Math.round(255*(l+(1-l)*(1-h))),p=Math.round(255*(a+(1-a)*(1-h)));o.fillStyle="rgb("+v+","+y+","+p+")";o.fillRect(i,u,1,1)}return f.toDataURL()};t.ColorPicker.prototype.options=null;t.ColorPicker.prototype.input=null;t.ColorPicker.prototype.widget=null;t.ColorPicker.prototype.color=null;t.ColorPicker.prototype.lastValue=null;t.ColorPicker.prototype.setOptions=function(i){var r,u;if(i=n.extend(!0,{},i),this.options.htmlOptions)for(r in t.defaults)this.input.hasAttribute("data-wcp-"+r)&&void 0===i[r]&&(i[r]=this.input.getAttribute("data-wcp-"+r),"true"==i[r]?i[r]=!0:"false"==i[r]&&(i[r]=!1));for(r in i)void 0!==this.options[r]&&(u=r.charAt(0).toUpperCase()+r.slice(1),"function"==typeof this["set"+u]?this["set"+u](i[r]):this.options[r]=i[r]);return this};t.ColorPicker.prototype.init=function(){if(t.ColorPicker.init(),1!=this.hasInit){this.hasInit=!0;var r=n(this.input),i=null;"block"==this.options.layout?(this.widget=t.ColorPicker.createWidget(),(i=n(this.widget)).data("jQWCP.instance",this),i.insertAfter(this.input),"inline"==r.css("display")?i.css("display","inline-block"):i.css("display",r.css("display")),i.append(this.input),r.hide(),null!=r.attr("tabindex")?i.attr("tabindex",r.attr("tabindex")):i.attr("tabindex",0),this.refreshWidget(),this.redrawSliders(!0),this.updateSliders(),i.on("focus.wheelColorPicker",t.Handler.widget_focus_block),i.on("blur.wheelColorPicker",t.Handler.widget_blur_block)):(null==t.ColorPicker.widget&&(t.ColorPicker.widget=t.ColorPicker.createWidget(),(i=n(t.ColorPicker.widget)).hide(),n("body").append(i),i.on("mousedown.wheelColorPicker",t.Handler.widget_mousedown_popup)),this.widget=t.ColorPicker.widget,r.on("focus.wheelColorPicker",t.Handler.input_focus_popup),r.on("blur.wheelColorPicker",t.Handler.input_blur_popup));r.on("keyup.wheelColorPicker",t.Handler.input_keyup);r.on("change.wheelColorPicker",t.Handler.input_change);"object"==typeof this.options.color?(this.setColor(this.options.color),this.options.color=void 0):"string"==typeof this.options.color&&(this.setValue(this.options.color),this.options.color=void 0);this.options.userinput?r.removeAttr("readonly"):r.attr("readonly",!0)}};t.ColorPicker.prototype.destroy=function(){var i=n(this.widget),t=n(this.input),r,u;"block"==this.options.layout&&(r=n(n("body").data("jQWCP.activeControl")),r.length&&(u=r.closest(".jQWCP-wWidget"),i.is(u)&&n("body").data("jQWCP.activeControl",null)),i.before(this.input),i.remove(),t.show());t.off("focus.wheelColorPicker");t.off("blur.wheelColorPicker");t.off("keyup.wheelColorPicker");t.off("change.wheelColorPicker");t.data("jQWCP.instance",null)};t.ColorPicker.prototype.refreshWidget=function(){var t=n(this.widget),r=this.options,s=!1,h,i,c,e,o,f,u,l,a;for(h in t.attr("class","jQWCP-wWidget"),"block"==r.layout&&t.addClass("jQWCP-block"),t.addClass(r.cssClass),window.innerWidth<=r.mobileWidth&&"block"!=r.layout&&r.mobile&&(s=!0,t.addClass("jQWCP-mobile")),t.find(".jQWCP-wWheel, .jQWCP-slider-wrapper, .jQWCP-wPreview").hide().addClass("hidden"),r.sliders){i=null;switch(this.options.sliders[h]){case"w":i=t.find(".jQWCP-wWheel");break;case"h":i=t.find(".jQWCP-wHue");break;case"s":i=t.find(".jQWCP-wSat");break;case"v":i=t.find(".jQWCP-wVal");break;case"r":i=t.find(".jQWCP-wRed");break;case"g":i=t.find(".jQWCP-wGreen");break;case"b":i=t.find(".jQWCP-wBlue");break;case"a":i=t.find(".jQWCP-wAlpha");break;case"p":i=t.find(".jQWCP-wPreview")}null!=i&&(i.appendTo(this.widget),i.show().removeClass("hidden"))}return c=50*r.quality,t.find(".jQWCP-slider").attr("height",c),e=t.find(".jQWCP-wWheel, .jQWCP-slider-wrapper, .jQWCP-wPreview").not(".hidden"),r.autoResize&&!s?(o=0,e.css({width:"",height:""}),e.each(function(t,i){var r=n(i);o+=parseFloat(r.css("margin-left").replace("px",""))+parseFloat(r.css("margin-right").replace("px",""))+r.outerWidth()}),t.css({width:o+"px"})):(t.css({width:""}),f=t.find(".jQWCP-wWheel").not(".hidden"),u=t.find(".jQWCP-slider-wrapper, .jQWCP-wPreview").not(".hidden"),l=(f.css({height:t.height()+"px",width:t.height()}),0<f.length)?t.width()-f.outerWidth()-parseFloat(f.css("margin-left").replace("px",""))-parseFloat(f.css("margin-right").replace("px","")):t.width(),0<u.length&&(a=parseFloat(u.css("margin-left").replace("px",""))+parseFloat(u.css("margin-right").replace("px","")),u.css({height:t.height()+"px",width:(l-(u.length-1)*a)/u.length+"px"}))),this};t.ColorPicker.prototype.redrawSliders=function(t){var r,et,v,ot,a,y,st,p,w,ht,b,k,ct,d,g,lt,nt,e,at,u,tt,it,vt,f,rt,ut;if(null==this.widget||(r=n(this.widget),"string"==typeof t&&(t=arguments[1]),this!=r.data("jQWCP.instance")))return this;var yt=this.options,c=this.color,i=50*yt.quality,pt=1,o=0,s=0,h=0,ft=0,wt=0,l=1;return(yt.live&&(pt=c.a,o=Math.round(255*c.r),s=Math.round(255*c.g),h=Math.round(255*c.b),ft=c.h,wt=c.s,l=c.v),et=r.find(".jQWCP-wPreviewBox"),et.hasClass("hidden")||(v=et.get(0).getContext("2d"),v.fillStyle="rgba("+o+","+s+","+h+","+pt+")",v.clearRect(0,0,1,1),v.fillRect(0,0,1,1)),!this.options.live&&!t)?this:(ot=r.find(".jQWCP-wAlphaSlider"),(!ot.hasClass("hidden")||t)&&(a=ot.get(0).getContext("2d"),y=a.createLinearGradient(0,0,0,i),y.addColorStop(0,"rgba("+o+","+s+","+h+",1)"),y.addColorStop(1,"rgba("+o+","+s+","+h+",0)"),a.fillStyle=y,a.clearRect(0,0,1,i),a.fillRect(0,0,1,i)),st=r.find(".jQWCP-wRedSlider"),(!st.hasClass("hidden")||t)&&(p=st.get(0).getContext("2d"),w=p.createLinearGradient(0,0,0,i),w.addColorStop(0,"rgb(255,"+s+","+h+")"),w.addColorStop(1,"rgb(0,"+s+","+h+")"),p.fillStyle=w,p.fillRect(0,0,1,i)),ht=r.find(".jQWCP-wGreenSlider"),(!ht.hasClass("hidden")||t)&&(b=ht.get(0).getContext("2d"),k=b.createLinearGradient(0,0,0,i),k.addColorStop(0,"rgb("+o+",255,"+h+")"),k.addColorStop(1,"rgb("+o+",0,"+h+")"),b.fillStyle=k,b.fillRect(0,0,1,i)),ct=r.find(".jQWCP-wBlueSlider"),(!ct.hasClass("hidden")||t)&&(d=ct.get(0).getContext("2d"),g=d.createLinearGradient(0,0,0,i),g.addColorStop(0,"rgb("+o+","+s+",255)"),g.addColorStop(1,"rgb("+o+","+s+",0)"),d.fillStyle=g,d.fillRect(0,0,1,i)),lt=r.find(".jQWCP-wHueSlider"),(!lt.hasClass("hidden")||t)&&(nt=lt.get(0).getContext("2d"),e=nt.createLinearGradient(0,0,0,i),e.addColorStop(0,"#f00"),e.addColorStop(.166666667,"#ff0"),e.addColorStop(.333333333,"#0f0"),e.addColorStop(.5,"#0ff"),e.addColorStop(.666666667,"#00f"),e.addColorStop(.833333333,"#f0f"),e.addColorStop(1,"#f00"),nt.fillStyle=e,nt.fillRect(0,0,1,i)),at=r.find(".jQWCP-wSatSlider"),(!at.hasClass("hidden")||t)&&(u=n.fn.wheelColorPicker.hsvToRgb(ft,1,l),u.r=Math.round(255*u.r),u.g=Math.round(255*u.g),u.b=Math.round(255*u.b),tt=at.get(0).getContext("2d"),it=tt.createLinearGradient(0,0,0,i),it.addColorStop(0,"rgb("+u.r+","+u.g+","+u.b+")"),it.addColorStop(1,"rgb("+Math.round(255*l)+","+Math.round(255*l)+","+Math.round(255*l)+")"),tt.fillStyle=it,tt.fillRect(0,0,1,i)),vt=r.find(".jQWCP-wValSlider"),(!vt.hasClass("hidden")||t)&&(f=n.fn.wheelColorPicker.hsvToRgb(ft,wt,1),f.r=Math.round(255*f.r),f.g=Math.round(255*f.g),f.b=Math.round(255*f.b),rt=vt.get(0).getContext("2d"),ut=rt.createLinearGradient(0,0,0,i),ut.addColorStop(0,"rgb("+f.r+","+f.g+","+f.b+")"),ut.addColorStop(1,"#000"),rt.fillStyle=ut,rt.fillRect(0,0,1,i)),this)};t.ColorPicker.prototype.updateSliders=function(){var t,i,r,u,f,e,o,s,h,c;if(null==this.widget||(t=n(this.widget),i=this.color,this!=t.data("jQWCP.instance")))return this;if(r=t.find(".jQWCP-wWheel"),!r.hasClass("hidden")){var l=t.find(".jQWCP-wWheelCursor"),a=t.find(".jQWCP-wWheelOverlay"),v=Math.cos(2*Math.PI*i.h)*i.s,y=Math.sin(2*Math.PI*i.h)*i.s,p=r.width()/2,w=r.height()/2;l.css("left",p+v*r.width()/2+"px");l.css("top",w-y*r.height()/2+"px");1==this.options.preserveWheel||null==this.options.preserveWheel&&0==this.options.live?a.css("opacity",0):a.css("opacity",1-(i.v<.2?.2:i.v))}return u=t.find(".jQWCP-wHueSlider"),u.hasClass("hidden")||t.find(".jQWCP-wHueCursor").css("top",i.h*u.height()+"px"),f=t.find(".jQWCP-wSatSlider"),f.hasClass("hidden")||t.find(".jQWCP-wSatCursor").css("top",(1-i.s)*f.height()+"px"),e=t.find(".jQWCP-wValSlider"),e.hasClass("hidden")||t.find(".jQWCP-wValCursor").css("top",(1-i.v)*e.height()+"px"),o=t.find(".jQWCP-wRedSlider"),o.hasClass("hidden")||t.find(".jQWCP-wRedCursor").css("top",(1-i.r)*o.height()+"px"),s=t.find(".jQWCP-wGreenSlider"),s.hasClass("hidden")||t.find(".jQWCP-wGreenCursor").css("top",(1-i.g)*s.height()+"px"),h=t.find(".jQWCP-wBlueSlider"),h.hasClass("hidden")||t.find(".jQWCP-wBlueCursor").css("top",(1-i.b)*h.height()+"px"),c=t.find(".jQWCP-wAlphaSlider"),c.hasClass("hidden")||t.find(".jQWCP-wAlphaCursor").css("top",(1-i.a)*c.height()+"px"),this};t.ColorPicker.prototype.updateSelection=function(){return this.redrawSliders(),this.updateSliders(),this};t.ColorPicker.prototype.updateInput=function(){if(null==this.widget)return this;var i=n(this.input);this.input.value!=this.getValue()&&(i.attr("value",this.getValue()),this.input.value=this.getValue());i.trigger("colorchange");this.options.preview&&(i.css("background",t.colorToStr(this.color,"rgba")),.5<this.color.v?i.css("color","black"):i.css("color","white"))};t.ColorPicker.prototype.updateActiveControl=function(i){var r=n(n("body").data("jQWCP.activeControl")),o,f,s,h,u;if(0!=r.length)if(n(this.input),o=this.options,f=this.color,i.originalEvent.touches&&0<i.originalEvent.touches.length&&(i.pageX=i.originalEvent.touches[0].pageX,i.pageY=i.originalEvent.touches[0].pageY),r.hasClass("jQWCP-wWheel")){var l=r.find(".jQWCP-wWheelCursor"),c=(r.find(".jQWCP-wWheelOverlay"),(i.pageX-r.offset().left-r.width()/2)/(r.width()/2)),e=-(i.pageY-r.offset().top-r.height()/2)/(r.height()/2);t.BUG_RELATIVE_PAGE_ORIGIN&&(c=(i.pageX-(r.get(0).getBoundingClientRect().left-t.ORIGIN.left)-r.width()/2)/(r.width()/2),e=-(i.pageY-(r.get(0).getBoundingClientRect().top-t.ORIGIN.top)-r.height()/2)/(r.height()/2));s=Math.sqrt(Math.pow(c,2)+Math.pow(e,2));1<s&&(s=1);o.snap&&s<o.snapTolerance&&(s=0);h=0==c&&0==e?0:Math.atan(e/c)/(2*Math.PI);c<0&&0==e&&(h=.5);h<0&&(h+=.5);e<0&&(h+=.5);this.setHsv(h,s,f.v)}else r.hasClass("jQWCP-slider-wrapper")&&(l=r.find(".jQWCP-scursor"),e=(i.pageY-r.offset().top)/r.height(),t.BUG_RELATIVE_PAGE_ORIGIN&&(e=(i.pageY-(r.get(0).getBoundingClientRect().top-t.ORIGIN.top))/r.height()),u=e<0?0:1<e?1:e,o.snap&&u<o.snapTolerance?u=0:o.snap&&u>1-o.snapTolerance&&(u=1),o.snap&&u>.5-o.snapTolerance&&u<.5+o.snapTolerance&&(u=.5),l.css("top",u*r.height()+"px"),r.hasClass("jQWCP-wRed")&&this.setRgb(1-u,f.g,f.b),r.hasClass("jQWCP-wGreen")&&this.setRgb(f.r,1-u,f.b),r.hasClass("jQWCP-wBlue")&&this.setRgb(f.r,f.g,1-u),r.hasClass("jQWCP-wHue")&&this.setHsv(u,f.s,f.v),r.hasClass("jQWCP-wSat")&&this.setHsv(f.h,1-u,f.v),r.hasClass("jQWCP-wVal")&&this.setHsv(f.h,f.s,1-u),r.hasClass("jQWCP-wAlpha")&&this.setAlpha(1-u))};t.ColorPicker.prototype.getColor=function(){return this.color};t.ColorPicker.prototype.getValue=function(n){var i=this.options;return null==n&&(n=i.format),0<=i.rounding&&(this.color.a=Math.round(this.color.a*Math.pow(10,i.rounding))/Math.pow(10,i.rounding)),t.colorToStr(this.color,n)};t.ColorPicker.prototype.setValue=function(n,i){var r=t.strToColor(n);return r?this.setColor(r,i):this};t.ColorPicker.prototype.setColor=function(n,t){return"string"==typeof n?this.setValue(n,t):null!=n.r?this.setRgba(n.r,n.g,n.b,n.a,t):null!=n.h?this.setHsva(n.h,n.s,n.v,n.a,t):null!=n.a?this.setAlpha(n.a,t):this};t.ColorPicker.prototype.setRgba=function(n,i,r,u,f){var e,o;return void 0===f&&(f=!0),e=this.color,e.r=n,e.g=i,e.b=r,null!=u&&(e.a=u),o=t.rgbToHsv(n,i,r),e.h=o.h,e.s=o.s,e.v=o.v,this.updateSliders(),this.redrawSliders(),f&&this.updateInput(),this};t.ColorPicker.prototype.setRgb=function(n,t,i,r){return this.setRgba(n,t,i,null,r)};t.ColorPicker.prototype.setHsva=function(n,i,r,u,f){var e,o;return void 0===f&&(f=!0),e=this.color,e.h=n,e.s=i,e.v=r,null!=u&&(e.a=u),o=t.hsvToRgb(n,i,r),e.r=o.r,e.g=o.g,e.b=o.b,this.updateSliders(),this.redrawSliders(),f&&this.updateInput(),this};t.ColorPicker.prototype.setHsv=function(n,t,i,r){return this.setHsva(n,t,i,null,r)};t.ColorPicker.prototype.setAlpha=function(n,t){return void 0===t&&(t=!0),this.color.a=n,this.updateSliders(),this.redrawSliders(),t&&this.updateInput(),this};t.ColorPicker.prototype.show=function(){var r=this.input,f=n(r),i=n(this.widget),e=this.options,o,u;"popup"==e.layout&&(i.data("jQWCP.instance",this),i.stop(!0,!0),i.css({top:r.getBoundingClientRect().top-t.ORIGIN.top+f.outerHeight()+"px",left:r.getBoundingClientRect().left-t.ORIGIN.left+"px"}),this.refreshWidget(),this.redrawSliders(),this.lastValue=r.value,i.fadeIn(e.animDuration),this.updateSliders(),e.hideKeyboard&&(f.blur(),n(t.ColorPicker.overlay).show()),i.hasClass("jQWCP-mobile"))&&(o=n("html").scrollTop(),u=r.getBoundingClientRect().top-t.ORIGIN.top,u<o?n("html").animate({scrollTop:u}):u+f.outerHeight()>o+window.innerHeight-i.outerHeight()&&n("html").animate({scrollTop:u+f.outerHeight()-window.innerHeight+i.outerHeight()}))};t.ColorPicker.prototype.hide=function(){var i=n(this.widget);this==i.data("jQWCP.instance")&&(i.fadeOut(this.options.animDuration),n(t.ColorPicker.overlay).hide())};t.Handler={};t.Handler.input_focus_popup=function(){var t=n(this).data("jQWCP.instance");t.show();null==n(this).attr("readonly")&&(n(this).attr("readonly",!0),setTimeout(function(){n(t.input).removeAttr("readonly")}),null!=navigator.userAgent.match(/Android .* Firefox/)&&setTimeout(function(){n(t.input).attr("readonly",!0);n(t.input).one("blur",function(){n(t.input).removeAttr("readonly")})}))};t.Handler.input_blur_popup=function(){var t=n(this).data("jQWCP.instance");t.options.hideKeyboard||(t.hide(),t.lastValue!=this.value&&n(this).trigger("change"))};t.Handler.input_keyup=function(){var r=n(this).data("jQWCP.instance"),i=t.strToColor(this.value);i&&r.setColor(i,!1)};t.Handler.input_change=function(){var i=n(this).data("jQWCP.instance"),r=t.strToColor(this.value);i.options.autoFormat&&r?i.setColor(r,!0):i.options.validate&&!r&&""!=this.value&&(this.value=i.getValue())};t.Handler.widget_focus_block=function(){var t=n(this).data("jQWCP.instance"),i=n(t.input);t.lastValue=t.input.value;i.triggerHandler("focus")};t.Handler.widget_mousedown_popup=function(t){var e,i,r,f,u;if(t.preventDefault(),e=n(this).data("jQWCP.instance"),i=n(e.input),r=(i.off("focus.wheelColorPicker"),i.off("blur.wheelColorPicker"),null!=i.data("events"))?i.data("events").blur:void 0,f={blur:[]},null!=r)for(u=0;u<r.length;u++)f.blur.push(r[u]);i.data("jQWCP.suspendedEvents",f)};t.Handler.widget_blur_block=function(){var t=n(this).data("jQWCP.instance"),i=n(t.input);t.lastValue!=t.input.value&&i.trigger("change");i.triggerHandler("blur")};t.Handler.wheelCursor_mousedown=function(t){t.preventDefault();var i=n(this),r=i.closest(".jQWCP-wWidget").data("jQWCP.instance"),u=n(r.input);n("body").data("jQWCP.activeControl",i.parent().get(0));u.trigger("sliderdown")};t.Handler.wheel_mousedown=function(t){t.preventDefault();var i=n(this),r=i.closest(".jQWCP-wWidget").data("jQWCP.instance"),u=n(r.input);n("body").data("jQWCP.activeControl",i.get(0));u.trigger("sliderdown");r.updateActiveControl(t)};t.Handler.slider_mousedown=function(t){t.preventDefault();var i=n(this),r=i.closest(".jQWCP-wWidget").data("jQWCP.instance"),u=n(r.input);n("body").data("jQWCP.activeControl",i.parent().get(0));u.trigger("sliderdown");r.updateActiveControl(t)};t.Handler.sliderCursor_mousedown=function(t){t.preventDefault();var i=n(this),r=i.closest(".jQWCP-wWidget").data("jQWCP.instance"),u=n(r.input);n("body").data("jQWCP.activeControl",i.parent().get(0));u.trigger("sliderdown")};t.Handler.html_mouseup=function(i){var o=n(n("body").data("jQWCP.activeControl")),f,r,s,e,u;if(0!=o.length){if(f=o.closest(".jQWCP-wWidget").data("jQWCP.instance"),r=n(f.input),"popup"==f.options.layout&&(f.options.hideKeyboard||r.trigger("focus.jQWCP_DONT_TRIGGER_EVENTS"),r.on("focus.wheelColorPicker",t.Handler.input_focus_popup),r.on("blur.wheelColorPicker",t.Handler.input_blur_popup),s=r.data("jQWCP.suspendedEvents"),null!=s))for(e=s.blur,u=0;u<e.length;u++)r.on("blur"+(""==e[u].namespace?"":"."+e[u].namespace),e[u].handler);0!=o.length&&("touchend"!=i.type&&f.updateActiveControl(i),n("body").data("jQWCP.activeControl",null),r.trigger("sliderup"))}};t.Handler.html_mousemove=function(t){var r=n(n("body").data("jQWCP.activeControl")),i,u;if(0!=r.length)return t.preventDefault(),i=r.closest(".jQWCP-wWidget").data("jQWCP.instance"),u=n(i.input),i.updateActiveControl(t),u.trigger("slidermove"),!1};t.Handler.window_resize=function(){n("body .jQWCP-wWidget.jQWCP-block").each(function(){var t=n(this).data("jQWCP.instance");t.refreshWidget();t.redrawSliders()})};t.Handler.overlay_click=function(){var i,r;null!=t.ColorPicker.widget&&(i=n(t.ColorPicker.widget).data("jQWCP.instance"),null!=i&&(r=n(i.input),i.lastValue!=i.input.value&&r.trigger("change"),i.hide()))};n(document).ready(function(){n("[data-wheelcolorpicker]").wheelColorPicker({htmlOptions:!0})});null!=n.browser&&n.browser.mozilla&&(n.fn.wheelColorPicker.defaults.quality=.2);n(document).ready(function(){n("body").append('<div id="jQWCP-PageOrigin" style="position: absolute; top: 0; left: 0; height: 0; width: 0;"><\/div>');var i=document.getElementById("jQWCP-PageOrigin").getBoundingClientRect();t.ORIGIN=i;n(window).on("scroll.jQWCP_RelativePageOriginBugFix",function(){var n=document.getElementById("jQWCP-PageOrigin").getBoundingClientRect();0==(t.ORIGIN=n).left&&0==n.top||(t.BUG_RELATIVE_PAGE_ORIGIN=!0)})})}(jQuery);!function(n){var i={filename:"table.csv",appendTo:"body",separator:",",newline:"\n",quoteFields:!0,trimContent:!0,excludeColumns:"",excludeRows:""},t={};n.fn.table2csv=function(r,u){var e,o,h,c,l,a,f,s;if("object"===_typeof(r)?(u=r,r="download"):void 0===r&&(r="download"),"string"!=typeof r)throw new Error('"action" argument must be a string');if(void 0!==u&&"object"!==_typeof(u))throw new Error('"options" argument must be an object');if(t=n.extend({},i,u),e=this.filter("table"),e.length<=0)throw new Error("table2csv must be called on a <table> element");if(1<e.length)throw new Error("converting multiple table elements at once is not supported yet");s=(o="",h=e.find("tr").not(t.excludeRows),c=h.first().find("td,th").filter(":visible").not(t.excludeColumns).length,h.each(function(i,r){n(r).find("td,th").filter(":visible").not(t.excludeColumns).each(function(i,r){var u=n(r),f=t.trimContent?n.trim(u.text()):u.text();o+=t.quoteFields?'"'+f.replace(/"/g,'""')+'"':f;o+=i!==c-1?t.separator:t.newline})}),o);switch(r){case"download":l=t.filename;a=s;(f=document.createElement("a")).setAttribute("href","data:text/csv;charset=utf-8,﻿"+encodeURIComponent(a));f.setAttribute("download",l);f.style.display="none";document.body.appendChild(f);f.click();document.body.removeChild(f);break;case"output":n(t.appendTo).append(n("<pre>").text(s));break;case"return":return s;default:throw new Error('"action" argument must be one of the supported action strings');}return this}}(jQuery),function(n,t){typeof exports=="object"&&typeof module!="undefined"?module.exports=t():typeof define=="function"&&define.amd?define(t):n.moment=t()}(this,function(){"use strict";function i(){return ru.apply(null,arguments)}function eo(n){ru=n}function ui(n){return Object.prototype.toString.call(n)==="[object Array]"}function fi(n){return n instanceof Date||Object.prototype.toString.call(n)==="[object Date]"}function oo(n,t){for(var r=[],i=0;i<n.length;++i)r.push(t(n[i],i));return r}function ft(n,t){return Object.prototype.hasOwnProperty.call(n,t)}function ei(n,t){for(var i in t)ft(t,i)&&(n[i]=t[i]);return ft(t,"toString")&&(n.toString=t.toString),ft(t,"valueOf")&&(n.valueOf=t.valueOf),n}function kt(n,t,i,r){return sf(n,t,i,r,!0).utc()}function so(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function e(n){return n._pf==null&&(n._pf=so()),n._pf}function uu(n){if(n._isValid==null){var t=e(n);n._isValid=!isNaN(n._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated;n._strict&&(n._isValid=n._isValid&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===undefined)}return n._isValid}function fu(n){var t=kt(NaN);return n!=null?ei(e(t),n):e(t).userInvalidated=!0,t}function gi(n,t){var u,i,r;if(typeof t._isAMomentObject!="undefined"&&(n._isAMomentObject=t._isAMomentObject),typeof t._i!="undefined"&&(n._i=t._i),typeof t._f!="undefined"&&(n._f=t._f),typeof t._l!="undefined"&&(n._l=t._l),typeof t._strict!="undefined"&&(n._strict=t._strict),typeof t._tzm!="undefined"&&(n._tzm=t._tzm),typeof t._isUTC!="undefined"&&(n._isUTC=t._isUTC),typeof t._offset!="undefined"&&(n._offset=t._offset),typeof t._pf!="undefined"&&(n._pf=e(t)),typeof t._locale!="undefined"&&(n._locale=t._locale),di.length>0)for(u in di)i=di[u],r=t[i],typeof r!="undefined"&&(n[i]=r);return n}function dt(n){gi(this,n);this._d=new Date(n._d!=null?n._d.getTime():NaN);nr===!1&&(nr=!0,i.updateOffset(this),nr=!1)}function tt(n){return n instanceof dt||n!=null&&n._isAMomentObject!=null}function v(n){return n<0?Math.ceil(n):Math.floor(n)}function s(n){var t=+n,i=0;return t!==0&&isFinite(t)&&(i=v(t)),i}function eu(n,t,i){for(var f=Math.min(n.length,t.length),e=Math.abs(n.length-t.length),u=0,r=0;r<f;r++)(i&&n[r]!==t[r]||!i&&s(n[r])!==s(t[r]))&&u++;return u+e}function ou(){}function su(n){return n?n.toLowerCase().replace("_","-"):n}function ho(n){for(var r=0,i,t,f,u;r<n.length;){for(u=su(n[r]).split("-"),i=u.length,t=su(n[r+1]),t=t?t.split("-"):null;i>0;){if(f=hu(u.slice(0,i).join("-")),f)return f;if(t&&t.length>=i&&eu(u,t,!0)>=i-1)break;i--}r++}return null}function hu(n){var t=null;if(!et[n]&&typeof module!="undefined"&&module&&module.exports)try{t=oi._abbr;require("./locale/"+n);gt(t)}catch(i){}return et[n]}function gt(n,t){var i;return n&&(i=typeof t=="undefined"?ot(n):cu(n,t),i&&(oi=i)),oi._abbr}function cu(n,t){return t!==null?(t.abbr=n,et[n]=et[n]||new ou,et[n].set(t),gt(n),et[n]):(delete et[n],null)}function ot(n){var t;if(n&&n._locale&&n._locale._abbr&&(n=n._locale._abbr),!n)return oi;if(!ui(n)){if(t=hu(n),t)return t;n=[n]}return ho(n)}function l(n,t){var i=n.toLowerCase();ni[i]=ni[i+"s"]=ni[t]=n}function p(n){return typeof n=="string"?ni[n]||ni[n.toLowerCase()]:undefined}function lu(n){var r={},t;for(var i in n)ft(n,i)&&(t=p(i),t&&(r[t]=n[i]));return r}function pt(n,t){return function(r){return r!=null?(au(this,n,r),i.updateOffset(this,t),this):si(this,n)}}function si(n,t){return n._d["get"+(n._isUTC?"UTC":"")+t]()}function au(n,t,i){return n._d["set"+(n._isUTC?"UTC":"")+t](i)}function vu(n,t){var i;if(typeof n=="object")for(i in n)this.set(i,n[i]);else if(n=p(n),typeof this[n]=="function")return this[n](t);return this}function tr(n,t,i){var r=""+Math.abs(n),u=t-r.length,f=n>=0;return(f?i?"+":"":"-")+Math.pow(10,Math.max(0,u)).toString().substr(1)+r}function r(n,t,i,r){var u=r;typeof r=="string"&&(u=function(){return this[r]()});n&&(wt[n]=u);t&&(wt[t[0]]=function(){return tr(u.apply(this,arguments),t[1],t[2])});i&&(wt[i]=function(){return this.localeData().ordinal(u.apply(this,arguments),n)})}function co(n){return n.match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}function lo(n){for(var i=n.match(yu),t=0,r=i.length;t<r;t++)i[t]=wt[i[t]]?wt[i[t]]:co(i[t]);return function(u){var f="";for(t=0;t<r;t++)f+=i[t]instanceof Function?i[t].call(u,n):i[t];return f}}function rr(n,t){return n.isValid()?(t=pu(t,n.localeData()),ir[t]=ir[t]||lo(t),ir[t](n)):n.localeData().invalidDate()}function pu(n,t){function r(n){return t.longDateFormat(n)||n}var i=5;for(hi.lastIndex=0;i>=0&&hi.test(n);)n=n.replace(hi,r),hi.lastIndex=0,i-=1;return n}function ao(n){return typeof n=="function"&&Object.prototype.toString.call(n)==="[object Function]"}function t(n,t,i){er[n]=ao(t)?t:function(n){return n&&i?i:t}}function vo(n,t){return ft(er,n)?er[n](t._strict,t._locale):new RegExp(yo(n))}function yo(n){return n.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(n,t,i,r,u){return t||i||r||u}).replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function c(n,t){var i,r=t;for(typeof n=="string"&&(n=[n]),typeof t=="number"&&(r=function(n,i){i[t]=s(n)}),i=0;i<n.length;i++)or[n[i]]=r}function ii(n,t){c(n,function(n,i,r,u){r._w=r._w||{};t(n,r._w,r,u)})}function po(n,t,i){t!=null&&ft(or,n)&&or[n](t,i._a,i,n)}function sr(n,t){return new Date(Date.UTC(n,t+1,0)).getUTCDate()}function wo(n){return this._months[n.month()]}function bo(n){return this._monthsShort[n.month()]}function ko(n,t,i){var r,u,f;for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++)if((u=kt([2e3,r]),i&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(u,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(u,"").replace(".","")+"$","i")),i||this._monthsParse[r]||(f="^"+this.months(u,"")+"|^"+this.monthsShort(u,""),this._monthsParse[r]=new RegExp(f.replace(".",""),"i")),i&&t==="MMMM"&&this._longMonthsParse[r].test(n))||i&&t==="MMM"&&this._shortMonthsParse[r].test(n)||!i&&this._monthsParse[r].test(n))return r}function gu(n,t){var i;return typeof t=="string"&&(t=n.localeData().monthsParse(t),typeof t!="number")?n:(i=Math.min(n.date(),sr(n.year(),t)),n._d["set"+(n._isUTC?"UTC":"")+"Month"](t,i),n)}function nf(n){return n!=null?(gu(this,n),i.updateOffset(this,!0),this):si(this,"Month")}function go(){return sr(this.year(),this.month())}function hr(n){var i,t=n._a;return t&&e(n).overflow===-2&&(i=t[g]<0||t[g]>11?g:t[k]<1||t[k]>sr(t[b],t[g])?k:t[a]<0||t[a]>24||t[a]===24&&(t[st]!==0||t[ht]!==0||t[ct]!==0)?a:t[st]<0||t[st]>59?st:t[ht]<0||t[ht]>59?ht:t[ct]<0||t[ct]>999?ct:-1,e(n)._overflowDayOfYear&&(i<b||i>k)&&(i=k),e(n).overflow=i),n}function tf(n){i.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+n)}function w(n,t){var i=!0;return ei(function(){return i&&(tf(n+"\n"+(new Error).stack),i=!1),t.apply(this,arguments)},t)}function ns(n,t){cr[n]||(tf(t),cr[n]=!0)}function rf(n){var t,i,r=n._i,u=ts.exec(r);if(u){for(e(n).iso=!0,t=0,i=lr.length;t<i;t++)if(lr[t][1].exec(r)){n._f=lr[t][0];break}for(t=0,i=ar.length;t<i;t++)if(ar[t][1].exec(r)){n._f+=(u[6]||" ")+ar[t][0];break}r.match(yi)&&(n._f+="Z");wr(n)}else n._isValid=!1}function rs(n){var t=is.exec(n._i);if(t!==null){n._d=new Date(+t[1]);return}rf(n);n._isValid===!1&&(delete n._isValid,i.createFromInputFallback(n))}function us(n,t,i,r,u,f,e){var o=new Date(n,t,i,r,u,f,e);return n<1970&&o.setFullYear(n),o}function vr(n){var t=new Date(Date.UTC.apply(null,arguments));return n<1970&&t.setUTCFullYear(n),t}function uf(n){return ff(n)?366:365}function ff(n){return n%4==0&&n%100!=0||n%400==0}function fs(){return ff(this.year())}function lt(n,t,i){var f=i-t,r=i-n.day(),u;return r>f&&(r-=7),r<f-7&&(r+=7),u=o(n).add(r,"d"),{week:Math.ceil(u.dayOfYear()/7),year:u.year()}}function es(n){return lt(n,this._week.dow,this._week.doy).week}function os(){return this._week.dow}function ss(){return this._week.doy}function hs(n){var t=this.localeData().week(this);return n==null?t:this.add((n-t)*7,"d")}function cs(n){var t=lt(this,1,4).week;return n==null?t:this.add((n-t)*7,"d")}function ls(n,t,i,r,u){var o=6+u-r,s=vr(n,0,1+o),e=s.getUTCDay(),f;return e<u&&(e+=7),i=i!=null?1*i:u,f=1+o+7*(t-1)-e+i,{year:f>0?n:n-1,dayOfYear:f>0?f:uf(n-1)+f}}function as(n){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return n==null?t:this.add(n-t,"d")}function bt(n,t,i){return n!=null?n:t!=null?t:i}function vs(n){var t=new Date;return n._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function pr(n){var t,i,r=[],u,f;if(!n._d){for(u=vs(n),n._w&&n._a[k]==null&&n._a[g]==null&&ys(n),n._dayOfYear&&(f=bt(n._a[b],u[b]),n._dayOfYear>uf(f)&&(e(n)._overflowDayOfYear=!0),i=vr(f,0,n._dayOfYear),n._a[g]=i.getUTCMonth(),n._a[k]=i.getUTCDate()),t=0;t<3&&n._a[t]==null;++t)n._a[t]=r[t]=u[t];for(;t<7;t++)n._a[t]=r[t]=n._a[t]==null?t===2?1:0:n._a[t];n._a[a]===24&&n._a[st]===0&&n._a[ht]===0&&n._a[ct]===0&&(n._nextDay=!0,n._a[a]=0);n._d=(n._useUTC?vr:us).apply(null,r);n._tzm!=null&&n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm);n._nextDay&&(n._a[a]=24)}}function ys(n){var t,e,u,r,i,f,s;t=n._w;t.GG!=null||t.W!=null||t.E!=null?(i=1,f=4,e=bt(t.GG,n._a[b],lt(o(),1,4).year),u=bt(t.W,1),r=bt(t.E,1)):(i=n._locale._week.dow,f=n._locale._week.doy,e=bt(t.gg,n._a[b],lt(o(),i,f).year),u=bt(t.w,1),t.d!=null?(r=t.d,r<i&&++u):r=t.e!=null?t.e+i:i);s=ls(e,u,r,f,i);n._a[b]=s.year;n._dayOfYear=s.dayOfYear}function wr(n){if(n._f===i.ISO_8601){rf(n);return}n._a=[];e(n).empty=!0;for(var t=""+n._i,r,u,s,c=t.length,h=0,o=pu(n._f,n._locale).match(yu)||[],f=0;f<o.length;f++)u=o[f],r=(t.match(vo(u,n))||[])[0],r&&(s=t.substr(0,t.indexOf(r)),s.length>0&&e(n).unusedInput.push(s),t=t.slice(t.indexOf(r)+r.length),h+=r.length),wt[u]?(r?e(n).empty=!1:e(n).unusedTokens.push(u),po(u,r,n)):n._strict&&!r&&e(n).unusedTokens.push(u);e(n).charsLeftOver=c-h;t.length>0&&e(n).unusedInput.push(t);e(n).bigHour===!0&&n._a[a]<=12&&n._a[a]>0&&(e(n).bigHour=undefined);n._a[a]=ps(n._locale,n._a[a],n._meridiem);pr(n);hr(n)}function ps(n,t,i){var r;return i==null?t:n.meridiemHour!=null?n.meridiemHour(t,i):n.isPM!=null?(r=n.isPM(i),r&&t<12&&(t+=12),r||t!==12||(t=0),t):t}function ws(n){var t,f,u,r,i;if(n._f.length===0){e(n).invalidFormat=!0;n._d=new Date(NaN);return}for(r=0;r<n._f.length;r++)(i=0,t=gi({},n),n._useUTC!=null&&(t._useUTC=n._useUTC),t._f=n._f[r],wr(t),uu(t))&&(i+=e(t).charsLeftOver,i+=e(t).unusedTokens.length*10,e(t).score=i,(u==null||i<u)&&(u=i,f=t));ei(n,f||t)}function bs(n){if(!n._d){var t=lu(n._i);n._a=[t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond];pr(n)}}function ks(n){var t=new dt(hr(of(n)));return t._nextDay&&(t.add(1,"d"),t._nextDay=undefined),t}function of(n){var t=n._i,i=n._f;return(n._locale=n._locale||ot(n._l),t===null||i===undefined&&t==="")?fu({nullInput:!0}):(typeof t=="string"&&(n._i=t=n._locale.preparse(t)),tt(t))?new dt(hr(t)):(ui(i)?ws(n):i?wr(n):fi(t)?n._d=t:ds(n),n)}function ds(n){var t=n._i;t===undefined?n._d=new Date:fi(t)?n._d=new Date(+t):typeof t=="string"?rs(n):ui(t)?(n._a=oo(t.slice(0),function(n){return parseInt(n,10)}),pr(n)):typeof t=="object"?bs(n):typeof t=="number"?n._d=new Date(t):i.createFromInputFallback(n)}function sf(n,t,i,r,u){var f={};return typeof i=="boolean"&&(r=i,i=undefined),f._isAMomentObject=!0,f._useUTC=f._isUTC=u,f._l=i,f._i=n,f._f=t,f._strict=r,ks(f)}function o(n,t,i,r){return sf(n,t,i,r,!1)}function lf(n,t){var r,i;if(t.length===1&&ui(t[0])&&(t=t[0]),!t.length)return o();for(r=t[0],i=1;i<t.length;++i)(!t[i].isValid()||t[i][n](r))&&(r=t[i]);return r}function gs(){var n=[].slice.call(arguments,0);return lf("isBefore",n)}function nh(){var n=[].slice.call(arguments,0);return lf("isAfter",n)}function pi(n){var t=lu(n),i=t.year||0,r=t.quarter||0,u=t.month||0,f=t.week||0,e=t.day||0,o=t.hour||0,s=t.minute||0,h=t.second||0,c=t.millisecond||0;this._milliseconds=+c+h*1e3+s*6e4+o*36e5;this._days=+e+f*7;this._months=+u+r*3+i*12;this._data={};this._locale=ot();this._bubble()}function br(n){return n instanceof pi}function af(n,t){r(n,0,0,function(){var n=this.utcOffset(),i="+";return n<0&&(n=-n,i="-"),i+tr(~~(n/60),2)+t+tr(~~n%60,2)})}function kr(n){var i=(n||"").match(yi)||[],u=i[i.length-1]||[],t=(u+"").match(vf)||["-",0,0],r=+(t[1]*60)+s(t[2]);return t[0]==="+"?r:-r}function dr(n,t){var r,u;return t._isUTC?(r=t.clone(),u=(tt(n)||fi(n)?+n:+o(n))-+r,r._d.setTime(+r._d+u),i.updateOffset(r,!1),r):o(n).local()}function gr(n){return-Math.round(n._d.getTimezoneOffset()/15)*15}function th(n,t){var r=this._offset||0,u;return n!=null?(typeof n=="string"&&(n=kr(n)),Math.abs(n)<16&&(n=n*60),!this._isUTC&&t&&(u=gr(this)),this._offset=n,this._isUTC=!0,u!=null&&this.add(u,"m"),r!==n&&(!t||this._changeInProgress?df(this,it(n-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?r:gr(this)}function ih(n,t){return n!=null?(typeof n!="string"&&(n=-n),this.utcOffset(n,t),this):-this.utcOffset()}function rh(n){return this.utcOffset(0,n)}function uh(n){return this._isUTC&&(this.utcOffset(0,n),this._isUTC=!1,n&&this.subtract(gr(this),"m")),this}function fh(){return this._tzm?this.utcOffset(this._tzm):typeof this._i=="string"&&this.utcOffset(kr(this._i)),this}function eh(n){return n=n?o(n).utcOffset():0,(this.utcOffset()-n)%60==0}function oh(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function sh(){var n,t;return typeof this._isDSTShifted!="undefined"?this._isDSTShifted:(n={},gi(n,this),n=of(n),n._a?(t=n._isUTC?kt(n._a):o(n._a),this._isDSTShifted=this.isValid()&&eu(n._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted)}function hh(){return!this._isUTC}function ch(){return this._isUTC}function yf(){return this._isUTC&&this._offset===0}function it(n,t){var i=n,r=null,u,f,e;return br(n)?i={ms:n._milliseconds,d:n._days,M:n._months}:typeof n=="number"?(i={},t?i[t]=n:i.milliseconds=n):(r=pf.exec(n))?(u=r[1]==="-"?-1:1,i={y:0,d:s(r[k])*u,h:s(r[a])*u,m:s(r[st])*u,s:s(r[ht])*u,ms:s(r[ct])*u}):(r=wf.exec(n))?(u=r[1]==="-"?-1:1,i={y:at(r[2],u),M:at(r[3],u),d:at(r[4],u),h:at(r[5],u),m:at(r[6],u),s:at(r[7],u),w:at(r[8],u)}):i==null?i={}:typeof i=="object"&&("from"in i||"to"in i)&&(e=lh(o(i.from),o(i.to)),i={},i.ms=e.milliseconds,i.M=e.months),f=new pi(i),br(n)&&ft(n,"_locale")&&(f._locale=n._locale),f}function at(n,t){var i=n&&parseFloat(n.replace(",","."));return(isNaN(i)?0:i)*t}function bf(n,t){var i={milliseconds:0,months:0};return i.months=t.month()-n.month()+(t.year()-n.year())*12,n.clone().add(i.months,"M").isAfter(t)&&--i.months,i.milliseconds=+t-+n.clone().add(i.months,"M"),i}function lh(n,t){var i;return t=dr(t,n),n.isBefore(t)?i=bf(n,t):(i=bf(t,n),i.milliseconds=-i.milliseconds,i.months=-i.months),i}function kf(n,t){return function(i,r){var u,f;return r===null||isNaN(+r)||(ns(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period)."),f=i,i=r,r=f),i=typeof i=="string"?+i:i,u=it(i,r),df(this,u,n),this}}function df(n,t,r,u){var o=t._milliseconds,f=t._days,e=t._months;u=u==null?!0:u;o&&n._d.setTime(+n._d+o*r);f&&au(n,"Date",si(n,"Date")+f*r);e&&gu(n,si(n,"Month")+e*r);u&&i.updateOffset(n,f||e)}function ah(n,t){var r=n||o(),f=dr(r,this).startOf("day"),i=this.diff(f,"days",!0),u=i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse";return this.format(t&&t[u]||this.localeData().calendar(u,this,o(r)))}function vh(){return new dt(this)}function yh(n,t){var i;return t=p(typeof t!="undefined"?t:"millisecond"),t==="millisecond"?(n=tt(n)?n:o(n),+this>+n):(i=tt(n)?+n:+o(n),i<+this.clone().startOf(t))}function ph(n,t){var i;return t=p(typeof t!="undefined"?t:"millisecond"),t==="millisecond"?(n=tt(n)?n:o(n),+this<+n):(i=tt(n)?+n:+o(n),+this.clone().endOf(t)<i)}function wh(n,t,i){return this.isAfter(n,i)&&this.isBefore(t,i)}function bh(n,t){var i;return t=p(t||"millisecond"),t==="millisecond"?(n=tt(n)?n:o(n),+this==+n):(i=+o(n),+this.clone().startOf(t)<=i&&i<=+this.clone().endOf(t))}function kh(n,t,i){var f=dr(n,this),e=(f.utcOffset()-this.utcOffset())*6e4,u,r;return t=p(t),t==="year"||t==="month"||t==="quarter"?(r=dh(this,f),t==="quarter"?r=r/3:t==="year"&&(r=r/12)):(u=this-f,r=t==="second"?u/1e3:t==="minute"?u/6e4:t==="hour"?u/36e5:t==="day"?(u-e)/864e5:t==="week"?(u-e)/6048e5:u),i?r:v(r)}function dh(n,t){var r=(t.year()-n.year())*12+(t.month()-n.month()),i=n.clone().add(r,"months"),u,f;return t-i<0?(u=n.clone().add(r-1,"months"),f=(t-i)/(i-u)):(u=n.clone().add(r+1,"months"),f=(t-i)/(u-i)),-(r+f)}function gh(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function te(){var n=this.clone().utc();return 0<n.year()&&n.year()<=9999?"function"==typeof Date.prototype.toISOString?this.toDate().toISOString():rr(n,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):rr(n,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function nc(n){var t=rr(this,n||i.defaultFormat);return this.localeData().postformat(t)}function tc(n,t){return this.isValid()?it({to:this,from:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ic(n){return this.from(o(),n)}function rc(n,t){return this.isValid()?it({from:this,to:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function uc(n){return this.to(o(),n)}function ie(n){var t;return n===undefined?this._locale._abbr:(t=ot(n),t!=null&&(this._locale=t),this)}function re(){return this._locale}function fc(n){n=p(n);switch(n){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return n==="week"&&this.weekday(0),n==="isoWeek"&&this.isoWeekday(1),n==="quarter"&&this.month(Math.floor(this.month()/3)*3),this}function ec(n){return(n=p(n),n===undefined||n==="millisecond")?this:this.startOf(n).add(1,n==="isoWeek"?"week":n).subtract(1,"ms")}function oc(){return+this._d-(this._offset||0)*6e4}function sc(){return Math.floor(+this/1e3)}function hc(){return this._offset?new Date(+this):this._d}function cc(){var n=this;return[n.year(),n.month(),n.date(),n.hour(),n.minute(),n.second(),n.millisecond()]}function lc(){var n=this;return{years:n.year(),months:n.month(),date:n.date(),hours:n.hours(),minutes:n.minutes(),seconds:n.seconds(),milliseconds:n.milliseconds()}}function ac(){return uu(this)}function vc(){return ei({},e(this))}function yc(){return e(this).overflow}function wi(n,t){r(0,[n,n.length],0,t)}function ue(n,t,i){return lt(o([n,11,31+t-i]),t,i).week}function pc(n){var t=lt(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return n==null?t:this.add(n-t,"y")}function wc(n){var t=lt(this,1,4).year;return n==null?t:this.add(n-t,"y")}function bc(){return ue(this.year(),1,4)}function kc(){var n=this.localeData()._week;return ue(this.year(),n.dow,n.doy)}function dc(n){return n==null?Math.ceil((this.month()+1)/3):this.month((n-1)*3+this.month()%3)}function gc(n,t){return typeof n!="string"?n:isNaN(n)?(n=t.weekdaysParse(n),typeof n=="number")?n:null:parseInt(n,10)}function nl(n){return this._weekdays[n.day()]}function tl(n){return this._weekdaysShort[n.day()]}function il(n){return this._weekdaysMin[n.day()]}function rl(n){var t,i,r;for(this._weekdaysParse=this._weekdaysParse||[],t=0;t<7;t++)if(this._weekdaysParse[t]||(i=o([2e3,1]).day(t),r="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[t]=new RegExp(r.replace(".",""),"i")),this._weekdaysParse[t].test(n))return t}function ul(n){var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return n!=null?(n=gc(n,this.localeData()),this.add(n-t,"d")):t}function fl(n){var t=(this.day()+7-this.localeData()._week.dow)%7;return n==null?t:this.add(n-t,"d")}function el(n){return n==null?this.day()||7:this.day(this.day()%7?n:n-7)}function se(n,t){r(n,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function he(n,t){return t._meridiemParse}function ol(n){return(n+"").toLowerCase().charAt(0)==="p"}function sl(n,t,i){return n>11?i?"pm":"PM":i?"am":"AM"}function hl(n,t){t[ct]=s(("0."+n)*1e3)}function cl(){return this._isUTC?"UTC":""}function ll(){return this._isUTC?"Coordinated Universal Time":""}function al(n){return o(n*1e3)}function vl(){return o.apply(null,arguments).parseZone()}function yl(n,t,i){var r=this._calendar[n];return typeof r=="function"?r.call(t,i):r}function pl(n){var t=this._longDateFormat[n],i=this._longDateFormat[n.toUpperCase()];return t||!i?t:(this._longDateFormat[n]=i.replace(/MMMM|MM|DD|dddd/g,function(n){return n.slice(1)}),this._longDateFormat[n])}function wl(){return this._invalidDate}function bl(n){return this._ordinal.replace("%d",n)}function no(n){return n}function kl(n,t,i,r){var u=this._relativeTime[i];return typeof u=="function"?u(n,t,i,r):u.replace(/%d/i,n)}function dl(n,t){var i=this._relativeTime[n>0?"future":"past"];return typeof i=="function"?i(t):i.replace(/%s/i,t)}function gl(n){var t;for(var i in n)t=n[i],typeof t=="function"?this[i]=t:this["_"+i]=t;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}function io(n,t,i,r){var u=ot(),f=kt().set(r,t);return u[i](f,n)}function ri(n,t,i,r,u){if(typeof n=="number"&&(t=n,n=undefined),n=n||"",t!=null)return io(n,t,i,u);for(var e=[],f=0;f<r;f++)e[f]=io(n,f,i,u);return e}function na(n,t){return ri(n,t,"months",12,"month")}function ta(n,t){return ri(n,t,"monthsShort",12,"month")}function ia(n,t){return ri(n,t,"weekdays",7,"day")}function ra(n,t){return ri(n,t,"weekdaysShort",7,"day")}function ua(n,t){return ri(n,t,"weekdaysMin",7,"day")}function fa(){var n=this._data;return this._milliseconds=d(this._milliseconds),this._days=d(this._days),this._months=d(this._months),n.milliseconds=d(n.milliseconds),n.seconds=d(n.seconds),n.minutes=d(n.minutes),n.hours=d(n.hours),n.months=d(n.months),n.years=d(n.years),this}function ro(n,t,i,r){var u=it(t,i);return n._milliseconds+=r*u._milliseconds,n._days+=r*u._days,n._months+=r*u._months,n._bubble()}function ea(n,t){return ro(this,n,t,1)}function oa(n,t){return ro(this,n,t,-1)}function uo(n){return n<0?Math.floor(n):Math.ceil(n)}function sa(){var r=this._milliseconds,n=this._days,t=this._months,i=this._data,u,f,e,s,o;return r>=0&&n>=0&&t>=0||r<=0&&n<=0&&t<=0||(r+=uo(iu(t)+n)*864e5,n=0,t=0),i.milliseconds=r%1e3,u=v(r/1e3),i.seconds=u%60,f=v(u/60),i.minutes=f%60,e=v(f/60),i.hours=e%24,n+=v(e/24),o=v(fo(n)),t+=o,n-=uo(iu(o)),s=v(t/12),t%=12,i.days=n,i.months=t,i.years=s,this}function fo(n){return n*4800/146097}function iu(n){return n*146097/4800}function ha(n){var t,r,i=this._milliseconds;if(n=p(n),n==="month"||n==="year")return t=this._days+i/864e5,r=this._months+fo(t),n==="month"?r:r/12;t=this._days+Math.round(iu(this._months));switch(n){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return t*24+i/36e5;case"minute":return t*1440+i/6e4;case"second":return t*86400+i/1e3;case"millisecond":return Math.floor(t*864e5)+i;default:throw new Error("Unknown unit "+n);}}function ca(){return this._milliseconds+this._days*864e5+this._months%12*2592e6+s(this._months/12)*31536e6}function ut(n){return function(){return this.as(n)}}function da(n){return n=p(n),this[n+"s"]()}function vt(n){return function(){return this._data[n]}}function ev(){return v(this.days()/7)}function ov(n,t,i,r,u){return u.relativeTime(t||1,!!i,n,r)}function sv(n,t,i){var r=it(n).abs(),h=yt(r.as("s")),f=yt(r.as("m")),e=yt(r.as("h")),o=yt(r.as("d")),s=yt(r.as("M")),c=yt(r.as("y")),u=h<nt.s&&["s",h]||f===1&&["m"]||f<nt.m&&["mm",f]||e===1&&["h"]||e<nt.h&&["hh",e]||o===1&&["d"]||o<nt.d&&["dd",o]||s===1&&["M"]||s<nt.M&&["MM",s]||c===1&&["y"]||["yy",c];return u[2]=t,u[3]=+n>0,u[4]=i,ov.apply(null,u)}function hv(n,t){return nt[n]===undefined?!1:t===undefined?nt[n]:(nt[n]=t,!0)}function cv(n){var t=this.localeData(),i=sv(this,!n,t);return n&&(i=t.pastFuture(+this,i)),t.postformat(i)}function ki(){var t=bi(this._milliseconds)/1e3,a=bi(this._days),i=bi(this._months),n,e,o;n=v(t/60);e=v(n/60);t%=60;n%=60;o=v(i/12);i%=12;var s=o,h=i,c=a,r=e,u=n,f=t,l=this.asSeconds();return l?(l<0?"-":"")+"P"+(s?s+"Y":"")+(h?h+"M":"")+(c?c+"D":"")+(r||u||f?"T":"")+(r?r+"H":"")+(u?u+"M":"")+(f?f+"S":""):"P0D"}var ru,di=i.momentProperties=[],nr=!1,et={},oi,ni={},yu=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,hi=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ir={},wt={},wu=/\d/,y=/\d\d/,bu=/\d{3}/,ur=/\d{4}/,ci=/[+-]?\d{6}/,h=/\d\d?/,li=/\d{1,3}/,fr=/\d{1,4}/,ai=/[+-]?\d{1,6}/,vi=/[+-]?\d+/,yi=/Z|[+-]\d\d:?\d\d/gi,ti=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,er={},or={},b=0,g=1,k=2,a=3,st=4,ht=5,ct=6,ku,du,cr,yr,ef,hf,cf,vf,pf,wf,gf,ne,nu,tu,fe,ee,oe,ce,le,ae,ve,rt,ye,n,pe,we,be,ke,de,ge,to,u,d,yt,nt,bi,f;r("M",["MM",2],"Mo",function(){return this.month()+1});r("MMM",0,0,function(n){return this.localeData().monthsShort(this,n)});r("MMMM",0,0,function(n){return this.localeData().months(this,n)});l("month","M");t("M",h);t("MM",h,y);t("MMM",ti);t("MMMM",ti);c(["M","MM"],function(n,t){t[g]=s(n)-1});c(["MMM","MMMM"],function(n,t,i,r){var u=i._locale.monthsParse(n,r,i._strict);u!=null?t[g]=u:e(i).invalidMonth=n});ku="January_February_March_April_May_June_July_August_September_October_November_December".split("_");du="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");cr={};i.suppressDeprecationWarnings=!1;var ts=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,lr=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],ar=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],is=/^\/?Date\((\-?\d+)/i;for(i.createFromInputFallback=w("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(n){n._d=new Date(n._i+(n._useUTC?" UTC":""))}),r(0,["YY",2],0,function(){return this.year()%100}),r(0,["YYYY",4],0,"year"),r(0,["YYYYY",5],0,"year"),r(0,["YYYYYY",6,!0],0,"year"),l("year","y"),t("Y",vi),t("YY",h,y),t("YYYY",fr,ur),t("YYYYY",ai,ci),t("YYYYYY",ai,ci),c(["YYYYY","YYYYYY"],b),c("YYYY",function(n,t){t[b]=n.length===2?i.parseTwoDigitYear(n):s(n)}),c("YY",function(n,t){t[b]=i.parseTwoDigitYear(n)}),i.parseTwoDigitYear=function(n){return s(n)+(s(n)>68?1900:2e3)},yr=pt("FullYear",!1),r("w",["ww",2],"wo","week"),r("W",["WW",2],"Wo","isoWeek"),l("week","w"),l("isoWeek","W"),t("w",h),t("ww",h,y),t("W",h),t("WW",h,y),ii(["w","ww","W","WW"],function(n,t,i,r){t[r.substr(0,1)]=s(n)}),ef={dow:0,doy:6},r("DDD",["DDDD",3],"DDDo","dayOfYear"),l("dayOfYear","DDD"),t("DDD",li),t("DDDD",bu),c(["DDD","DDDD"],function(n,t,i){i._dayOfYear=s(n)}),i.ISO_8601=function(){},hf=w("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(){var n=o.apply(null,arguments);return n<this?this:n}),cf=w("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(){var n=o.apply(null,arguments);return n>this?this:n}),af("Z",":"),af("ZZ",""),t("Z",yi),t("ZZ",yi),c(["Z","ZZ"],function(n,t,i){i._useUTC=!0;i._tzm=kr(n)}),vf=/([\+\-]|\d\d)/gi,i.updateOffset=function(){},pf=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,wf=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/,it.fn=pi.prototype,gf=kf(1,"add"),ne=kf(-1,"subtract"),i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",nu=w("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(n){return n===undefined?this.localeData():this.locale(n)}),r(0,["gg",2],0,function(){return this.weekYear()%100}),r(0,["GG",2],0,function(){return this.isoWeekYear()%100}),wi("gggg","weekYear"),wi("ggggg","weekYear"),wi("GGGG","isoWeekYear"),wi("GGGGG","isoWeekYear"),l("weekYear","gg"),l("isoWeekYear","GG"),t("G",vi),t("g",vi),t("GG",h,y),t("gg",h,y),t("GGGG",fr,ur),t("gggg",fr,ur),t("GGGGG",ai,ci),t("ggggg",ai,ci),ii(["gggg","ggggg","GGGG","GGGGG"],function(n,t,i,r){t[r.substr(0,2)]=s(n)}),ii(["gg","GG"],function(n,t,r,u){t[u]=i.parseTwoDigitYear(n)}),r("Q",0,0,"quarter"),l("quarter","Q"),t("Q",wu),c("Q",function(n,t){t[g]=(s(n)-1)*3}),r("D",["DD",2],"Do","date"),l("date","D"),t("D",h),t("DD",h,y),t("Do",function(n,t){return n?t._ordinalParse:t._ordinalParseLenient}),c(["D","DD"],k),c("Do",function(n,t){t[k]=s(n.match(h)[0],10)}),tu=pt("Date",!0),r("d",0,"do","day"),r("dd",0,0,function(n){return this.localeData().weekdaysMin(this,n)}),r("ddd",0,0,function(n){return this.localeData().weekdaysShort(this,n)}),r("dddd",0,0,function(n){return this.localeData().weekdays(this,n)}),r("e",0,0,"weekday"),r("E",0,0,"isoWeekday"),l("day","d"),l("weekday","e"),l("isoWeekday","E"),t("d",h),t("e",h),t("E",h),t("dd",ti),t("ddd",ti),t("dddd",ti),ii(["dd","ddd","dddd"],function(n,t,i){var r=i._locale.weekdaysParse(n);r!=null?t.d=r:e(i).invalidWeekday=n}),ii(["d","e","E"],function(n,t,i,r){t[r]=s(n)}),fe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ee="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),oe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),r("H",["HH",2],0,"hour"),r("h",["hh",2],0,function(){return this.hours()%12||12}),se("a",!0),se("A",!1),l("hour","h"),t("a",he),t("A",he),t("H",h),t("h",h),t("HH",h,y),t("hh",h,y),c(["H","HH"],a),c(["a","A"],function(n,t,i){i._isPm=i._locale.isPM(n);i._meridiem=n}),c(["h","hh"],function(n,t,i){t[a]=s(n);e(i).bigHour=!0}),ce=/[ap]\.?m?\.?/i,le=pt("Hours",!0),r("m",["mm",2],0,"minute"),l("minute","m"),t("m",h),t("mm",h,y),c(["m","mm"],st),ae=pt("Minutes",!1),r("s",["ss",2],0,"second"),l("second","s"),t("s",h),t("ss",h,y),c(["s","ss"],ht),ve=pt("Seconds",!1),r("S",0,0,function(){return~~(this.millisecond()/100)}),r(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),r(0,["SSS",3],0,"millisecond"),r(0,["SSSS",4],0,function(){return this.millisecond()*10}),r(0,["SSSSS",5],0,function(){return this.millisecond()*100}),r(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),r(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),r(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),r(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),l("millisecond","ms"),t("S",li,wu),t("SS",li,y),t("SSS",li,bu),rt="SSSS";rt.length<=9;rt+="S")t(rt,/\d+/);for(rt="S";rt.length<=9;rt+="S")c(rt,hl);ye=pt("Milliseconds",!1);r("z",0,0,"zoneAbbr");r("zz",0,0,"zoneName");n=dt.prototype;n.add=gf;n.calendar=ah;n.clone=vh;n.diff=kh;n.endOf=ec;n.format=nc;n.from=tc;n.fromNow=ic;n.to=rc;n.toNow=uc;n.get=vu;n.invalidAt=yc;n.isAfter=yh;n.isBefore=ph;n.isBetween=wh;n.isSame=bh;n.isValid=ac;n.lang=nu;n.locale=ie;n.localeData=re;n.max=cf;n.min=hf;n.parsingFlags=vc;n.set=vu;n.startOf=fc;n.subtract=ne;n.toArray=cc;n.toObject=lc;n.toDate=hc;n.toISOString=te;n.toJSON=te;n.toString=gh;n.unix=sc;n.valueOf=oc;n.year=yr;n.isLeapYear=fs;n.weekYear=pc;n.isoWeekYear=wc;n.quarter=n.quarters=dc;n.month=nf;n.daysInMonth=go;n.week=n.weeks=hs;n.isoWeek=n.isoWeeks=cs;n.weeksInYear=kc;n.isoWeeksInYear=bc;n.date=tu;n.day=n.days=ul;n.weekday=fl;n.isoWeekday=el;n.dayOfYear=as;n.hour=n.hours=le;n.minute=n.minutes=ae;n.second=n.seconds=ve;n.millisecond=n.milliseconds=ye;n.utcOffset=th;n.utc=rh;n.local=uh;n.parseZone=fh;n.hasAlignedHourOffset=eh;n.isDST=oh;n.isDSTShifted=sh;n.isLocal=hh;n.isUtcOffset=ch;n.isUtc=yf;n.isUTC=yf;n.zoneAbbr=cl;n.zoneName=ll;n.dates=w("dates accessor is deprecated. Use date instead.",tu);n.months=w("months accessor is deprecated. Use month instead",nf);n.years=w("years accessor is deprecated. Use year instead",yr);n.zone=w("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",ih);pe=n;we={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};be={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};ke="Invalid date";de="%d";ge=/\d{1,2}/;to={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};u=ou.prototype;u._calendar=we;u.calendar=yl;u._longDateFormat=be;u.longDateFormat=pl;u._invalidDate=ke;u.invalidDate=wl;u._ordinal=de;u.ordinal=bl;u._ordinalParse=ge;u.preparse=no;u.postformat=no;u._relativeTime=to;u.relativeTime=kl;u.pastFuture=dl;u.set=gl;u.months=wo;u._months=ku;u.monthsShort=bo;u._monthsShort=du;u.monthsParse=ko;u.week=es;u._week=ef;u.firstDayOfYear=ss;u.firstDayOfWeek=os;u.weekdays=nl;u._weekdays=fe;u.weekdaysMin=il;u._weekdaysMin=oe;u.weekdaysShort=tl;u._weekdaysShort=ee;u.weekdaysParse=rl;u.isPM=ol;u._meridiemParse=ce;u.meridiem=sl;gt("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(n){var t=n%10,i=s(n%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return n+i}});i.lang=w("moment.lang is deprecated. Use moment.locale instead.",gt);i.langData=w("moment.langData is deprecated. Use moment.localeData instead.",ot);d=Math.abs;var la=ut("ms"),aa=ut("s"),va=ut("m"),ya=ut("h"),pa=ut("d"),wa=ut("w"),ba=ut("M"),ka=ut("y");var ga=vt("milliseconds"),nv=vt("seconds"),tv=vt("minutes"),iv=vt("hours"),rv=vt("days"),uv=vt("months"),fv=vt("years");return yt=Math.round,nt={s:45,m:45,h:22,d:26,M:11},bi=Math.abs,f=pi.prototype,f.abs=fa,f.add=ea,f.subtract=oa,f.as=ha,f.asMilliseconds=la,f.asSeconds=aa,f.asMinutes=va,f.asHours=ya,f.asDays=pa,f.asWeeks=wa,f.asMonths=ba,f.asYears=ka,f.valueOf=ca,f._bubble=sa,f.get=da,f.milliseconds=ga,f.seconds=nv,f.minutes=tv,f.hours=iv,f.days=rv,f.weeks=ev,f.months=uv,f.years=fv,f.humanize=cv,f.toISOString=ki,f.toString=ki,f.toJSON=ki,f.locale=ie,f.localeData=re,f.toIsoString=w("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ki),f.lang=nu,r("X",0,0,"unix"),r("x",0,0,"valueOf"),t("x",vi),t("X",/[+-]?\d+(\.\d{1,3})?/),c("X",function(n,t,i){i._d=new Date(parseFloat(n,10)*1e3)}),c("x",function(n,t,i){i._d=new Date(s(n))}),i.version="2.10.6",eo(o),i.fn=pe,i.min=gs,i.max=nh,i.utc=kt,i.unix=al,i.months=na,i.isDate=fi,i.locale=gt,i.invalid=fu,i.duration=it,i.isMoment=tt,i.weekdays=ia,i.parseZone=vl,i.localeData=ot,i.isDuration=br,i.monthsShort=ta,i.weekdaysMin=ua,i.defineLocale=cu,i.weekdaysShort=ra,i.normalizeUnits=p,i.relativeTimeThreshold=hv,i});!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((n="undefined"!=typeof globalThis?globalThis:n||self).echarts={})}(this,function(n){"use strict";function i(n,t){function i(){this.constructor=n}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");yct(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}function yoi(n){for(var t in df)n[t]&&(df[t]=n[t])}function bct(){return yru++}function ytt(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];"undefined"!=typeof console&&console.error.apply(console,t)}function y(n){var i,u,t,f,e,r;if(null==n||"object"!=typeof n)return n;if(i=n,u=av.call(n),"[object Array]"===u){if(!pv(n))for(i=[],t=0,f=n.length;t<f;t++)i[t]=y(n[t])}else if(woi[u]){if(!pv(n))if(e=n.constructor,e.from)i=e.from(n);else for(i=new e(n.length),t=0,f=n.length;t<f;t++)i[t]=n[t]}else if(!poi[u]&&!pv(n)&&!vv(n))for(r in i={},n)n.hasOwnProperty(r)&&r!==wct&&(i[r]=y(n[r]));return i}function k(n,t,i){var r,f,e;if(!v(t)||!v(n))return i?y(t):n;for(r in t)t.hasOwnProperty(r)&&r!==wct&&(f=n[r],e=t[r],!v(e)||!v(f)||u(e)||u(f)||vv(e)||vv(f)||dct(e)||dct(f)||pv(e)||pv(f)?!i&&r in n||(n[r]=y(t[r])):k(f,e,i));return n}function ptt(n,t){for(var i=n[0],r=1,u=n.length;r<u;r++)i=k(i,n[r],t);return i}function r(n,t){if(Object.assign)Object.assign(n,t);else for(var i in t)t.hasOwnProperty(i)&&i!==wct&&(n[i]=t[i]);return n}function a(n,t,i){for(var r,f=et(t),u=0;u<f.length;u++)r=f[u],(i?null!=t[r]:null==n[r])&&(n[r]=t[r]);return n}function tt(n,t){if(n){if(n.indexOf)return n.indexOf(t);for(var i=0,r=n.length;i<r;i++)if(n[i]===t)return i}return-1}function kct(n,t){function u(){}var i=n.prototype;for(var r in u.prototype=t.prototype,n.prototype=new u,i)i.hasOwnProperty(r)&&(n.prototype[r]=i[r]);n.prototype.constructor=n;n.superClass=t}function fi(n,t,i){var f,u,r;if(n="prototype"in n?n.prototype:n,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(f=Object.getOwnPropertyNames(t),u=0;u<f.length;u++)r=f[u],"constructor"!==r&&(i?null!=t[r]:null==n[r])&&(n[r]=t[r]);else a(n,t,i)}function ir(n){return!!n&&"string"!=typeof n&&"number"==typeof n.length}function t(n,t,i){var r,f,u;if(n&&t)if(n.forEach&&n.forEach===lru)n.forEach(t,i);else if(n.length===+n.length)for(r=0,f=n.length;r<f;r++)t.call(i,n[r],r,n);else for(u in n)n.hasOwnProperty(u)&&t.call(i,n[u],u,n)}function f(n,t,i){if(!n)return[];if(!t)return btt(n);if(n.map&&n.map===vru)return n.map(t,i);for(var u=[],r=0,f=n.length;r<f;r++)u.push(t.call(i,n[r],r,n));return u}function du(n,t,i,r){if(n&&t){for(var u=0,f=n.length;u<f;u++)i=t.call(r,i,n[u],u,n);return i}}function yt(n,t,i){if(!n)return[];if(!t)return btt(n);if(n.filter&&n.filter===aru)return n.filter(t,i);for(var u=[],r=0,f=n.length;r<f;r++)t.call(i,n[r],r,n)&&u.push(n[r]);return u}function doi(n,t,i){if(n&&t)for(var r=0,u=n.length;r<u;r++)if(t.call(i,n[r],r,n))return n[r]}function et(n){var t,i;if(!n)return[];if(Object.keys)return Object.keys(n);t=[];for(i in n)n.hasOwnProperty(i)&&t.push(i);return t}function w(n){for(var i=[],t=1;t<arguments.length;t++)i[t-1]=arguments[t];return function(){return n.apply(this,i.concat(pct.call(arguments)))}}function u(n){return Array.isArray?Array.isArray(n):"[object Array]"===av.call(n)}function l(n){return"function"==typeof n}function o(n){return"string"==typeof n}function wtt(n){return"[object String]"===av.call(n)}function ht(n){return"number"==typeof n}function v(n){var t=typeof n;return"function"===t||!!n&&"object"===t}function dct(n){return!!poi[av.call(n)]}function uu(n){return!!woi[av.call(n)]}function vv(n){return"object"==typeof n&&"number"==typeof n.nodeType&&"object"==typeof n.ownerDocument}function eb(n){return null!=n.colorStops}function goi(n){return null!=n.image}function nsi(n){return"[object RegExp]"===av.call(n)}function yv(n){return n!=n}function yi(){for(var i,r,n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];for(i=0,r=n.length;i<r;i++)if(null!=n[i])return n[i]}function d(n,t){return null!=n?n:t}function gf(n,t,i){return null!=n?n:null!=t?t:i}function btt(n){for(var i=[],t=1;t<arguments.length;t++)i[t-1]=arguments[t];return pct.apply(n,i)}function ktt(n){if("number"==typeof n)return[n,n,n,n];var t=n.length;return 2===t?[n[0],n[1],n[0],n[1]]:3===t?[n[0],n[1],n[2],n[1]]:n}function sr(n,t){if(!n)throw new Error(t);}function gu(n){return null==n?null:"function"==typeof n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function ob(n){n[gct]=!0}function pv(n){return n[gct]}function c(n){return new isi(n)}function sb(n,t){for(var u,r=new n.constructor(n.length+t.length),i=0;i<n.length;i++)r[i]=n[i];for(u=n.length,i=0;i<t.length;i++)r[i+u]=t[i];return r}function hb(n,t){var i,u;return Object.create?i=Object.create(n):(u=function(){},u.prototype=n,i=new u),t&&r(i,t),i}function nlt(n){var t=n.style;t.webkitUserSelect="none";t.userSelect="none";t.webkitTapHighlightColor="rgba(0,0,0,0)";t["-webkit-touch-callout"]="none"}function h(n,t){return n.hasOwnProperty(t)}function ei(){}function gs(n,t){return null==n&&(n=0),null==t&&(t=0),[n,t]}function hr(n,t){return n[0]=t[0],n[1]=t[1],n}function be(n){return[n[0],n[1]]}function usi(n,t,i){return n[0]=t,n[1]=i,n}function tlt(n,t,i){return n[0]=t[0]+i[0],n[1]=t[1]+i[1],n}function dtt(n,t,i,r){return n[0]=t[0]+i[0]*r,n[1]=t[1]+i[1]*r,n}function nh(n,t,i){return n[0]=t[0]-i[0],n[1]=t[1]-i[1],n}function cb(n){return Math.sqrt(ilt(n))}function ilt(n){return n[0]*n[0]+n[1]*n[1]}function lb(n,t,i){return n[0]=t[0]*i,n[1]=t[1]*i,n}function pc(n,t){var i=cb(t);return 0===i?(n[0]=0,n[1]=0):(n[0]=t[0]/i,n[1]=t[1]/i),n}function gtt(n,t){return Math.sqrt((n[0]-t[0])*(n[0]-t[0])+(n[1]-t[1])*(n[1]-t[1]))}function osi(n,t){return(n[0]-t[0])*(n[0]-t[0])+(n[1]-t[1])*(n[1]-t[1])}function ab(n,t,i,r){return n[0]=t[0]+r*(i[0]-t[0]),n[1]=t[1]+r*(i[1]-t[1]),n}function nr(n,t,i){var r=t[0],u=t[1];return n[0]=i[0]*r+i[2]*u+i[4],n[1]=i[1]*r+i[3]*u+i[5],n}function ts(n,t,i){return n[0]=Math.min(t[0],i[0]),n[1]=Math.min(t[1],i[1]),n}function is(n,t,i){return n[0]=Math.max(t[0],i[0]),n[1]=Math.max(t[1],i[1]),n}function rlt(n,t,i,r,u,f){var s=r+"-"+u,l=n.length,a,v,e,c;if(f.hasOwnProperty(s))return f[s];if(1===t)return a=Math.round(Math.log((1<<l)-1&~u)/kru),n[i][a];for(v=r|1<<i,e=i+1;r&1<<e;)e++;for(var h=0,o=0,y=0;o<l;o++)c=1<<o,c&u||(h+=(y%2?-1:1)*n[i][o]*rlt(n,t-1,e,v,u|c,f),y++);return f[s]=h,h}function ssi(n,t){var f=[[n[0],n[1],1,0,0,0,-t[0]*n[0],-t[0]*n[1]],[0,0,0,n[0],n[1],1,-t[1]*n[0],-t[1]*n[1]],[n[2],n[3],1,0,0,0,-t[2]*n[2],-t[2]*n[3]],[0,0,0,n[2],n[3],1,-t[3]*n[2],-t[3]*n[3]],[n[4],n[5],1,0,0,0,-t[4]*n[4],-t[4]*n[5]],[0,0,0,n[4],n[5],1,-t[5]*n[4],-t[5]*n[5]],[n[6],n[7],1,0,0,0,-t[6]*n[6],-t[6]*n[7]],[0,0,0,n[6],n[7],1,-t[7]*n[6],-t[7]*n[7]]],e={},o=rlt(f,8,0,0,0,e),i,u,r;if(0!==o){for(i=[],u=0;u<8;u++)for(r=0;r<8;r++)null==i[r]&&(i[r]=0),i[r]+=((u+r)%2?-1:1)*rlt(f,7,0===u?1:0,1<<u,1<<r,e)/o*t[u];return function(n,t,r){var u=t*i[6]+r*i[7]+1;n[0]=(t*i[0]+r*i[1]+i[2])/u;n[1]=(t*i[3]+r*i[4]+i[5])/u}}}function flt(n,t,i,r,u){if(t.getBoundingClientRect&&ft.domSupported&&!hsi(t)){var f=t[ult]||(t[ult]={}),o=function(n,t){var i=t.markers;if(i)return i;i=t.markers=[];for(var f=["left","right"],e=["top","bottom"],r=0;r<4;r++){var u=document.createElement("div"),o=r%2,s=(r>>1)%2;u.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",f[o]+":0",e[s]+":0",f[1-o]+":auto",e[1-s]+":auto",""].join("!important;");n.appendChild(u);i.push(u)}return i}(t,f),e=function(n,t,i){for(var s=i?"invTrans":"trans",h=t[s],f=t.srcCoords,u=[],e=[],o=!0,r=0;r<4;r++){var c=n[r].getBoundingClientRect(),l=2*r,a=c.left,v=c.top;u.push(a,v);o=o&&f&&a===f[l]&&v===f[l+1];e.push(n[r].offsetLeft,n[r].offsetTop)}return o&&h?h:(t.srcCoords=u,t[s]=i?ssi(e,u):ssi(u,e))}(o,f,u);if(e)return e(n,i,r),!0}return!1}function hsi(n){return"CANVAS"===n.nodeName.toUpperCase()}function wr(n){return null==n?"":(n+"").replace(csi,function(n,t){return lsi[t]})}function olt(n,t,i,r){return i=i||{},r?asi(n,t,i):gru&&null!=t.layerX&&t.layerX!==t.offsetX?(i.zrX=t.layerX,i.zrY=t.layerY):null!=t.offsetX?(i.zrX=t.offsetX,i.zrY=t.offsetY):asi(n,t,i),i}function asi(n,t,i){var r,u,f;if(ft.domSupported&&n.getBoundingClientRect){if(r=t.clientX,u=t.clientY,hsi(n))return f=n.getBoundingClientRect(),i.zrX=r-f.left,void(i.zrY=u-f.top);if(flt(elt,n,r,u))return i.zrX=elt[0],void(i.zrY=elt[1])}i.zrX=i.zrY=0}function slt(n){return n||window.event}function tf(n,t,i){var u,f,e,r;return null!=(t=slt(t)).zrX?t:(u=t.type,u&&u.indexOf("touch")>=0?(f="touchend"!==u?t.targetTouches[0]:t.changedTouches[0],f&&olt(n,f,t,i)):(olt(n,t,t,i),e=function(n){var r=n.wheelDelta,i,t;return r?r:(i=n.deltaX,t=n.deltaY,null==i||null==t)?r:3*(0!==t?Math.abs(t):Math.abs(i))*(t>0?-1:t<0?1:i>0?-1:1)}(t),t.zrDelta=e?e/120:-(t.detail||0)/3),r=t.button,null==t.which&&void 0!==r&&dru.test(t.type)&&(t.which=1&r?1:2&r?3:4&r?2:0),t)}function hlt(n,t,i,r){n.addEventListener(t,i,r)}function vsi(n){return 2===n.which||3===n.which}function psi(n){var t=n[1][0]-n[0][0],i=n[1][1]-n[0][1];return Math.sqrt(t*t+i*i)}function nuu(){return[1,0,0,1,0,0]}function vb(n){return n[0]=1,n[1]=0,n[2]=0,n[3]=1,n[4]=0,n[5]=0,n}function iit(n,t){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4],n[5]=t[5],n}function ge(n,t,i){var r=t[0]*i[0]+t[2]*i[1],u=t[1]*i[0]+t[3]*i[1],f=t[0]*i[2]+t[2]*i[3],e=t[1]*i[2]+t[3]*i[3],o=t[0]*i[4]+t[2]*i[5]+t[4],s=t[1]*i[4]+t[3]*i[5]+t[5];return n[0]=r,n[1]=u,n[2]=f,n[3]=e,n[4]=o,n[5]=s,n}function ne(n,t,i){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4]+i[0],n[5]=t[5]+i[1],n}function th(n,t,i){var f=t[0],e=t[2],o=t[4],s=t[1],h=t[3],c=t[5],r=Math.sin(i),u=Math.cos(i);return n[0]=f*u+s*r,n[1]=-f*r+s*u,n[2]=e*u+h*r,n[3]=-e*r+u*h,n[4]=u*o+r*c,n[5]=u*c-r*o,n}function rit(n,t,i){var r=i[0],u=i[1];return n[0]=t[0]*r,n[1]=t[1]*u,n[2]=t[2]*r,n[3]=t[3]*u,n[4]=t[4]*r,n[5]=t[5]*u,n}function wc(n,t){var r=t[0],u=t[2],o=t[4],f=t[1],e=t[3],s=t[5],i=r*e-f*u;return i?(i=1/i,n[0]=e*i,n[1]=-f*i,n[2]=-u*i,n[3]=r*i,n[4]=(u*s-e*o)*i,n[5]=(f*o-r*s)*i,n):null}function wsi(n){var t=[1,0,0,1,0,0];return iit(t,n),t}function iuu(){de(this.event)}function fuu(n,t,i){var u,o;if(n[n.rectHover?"rectContain":"contain"](t,i)){for(var r=n,f=void 0,e=!1;r;){if(r.ignoreClip&&(e=!0),!e){if(u=r.getClipPath(),u&&!u.contain(t,i))return!1;r.silent&&(f=!0)}o=r.__hostTarget;r=o||r.parent}return!f||bsi}return!1}function dsi(n,t,i,r,u){for(var f,o,e=n.length-1;e>=0;e--)if(f=n[e],o=void 0,f!==u&&!f.ignore&&(o=fuu(f,i,r))&&(!t.topTarget&&(t.topTarget=f),o!==bsi)){t.target=f;break}}function gsi(n,t,i){var r=n.painter;return t<0||t>r.getWidth()||i<0||i>r.getHeight()}function nhi(n,t,i,r){var u=t+1;if(u===i)return 1;if(r(n[u++],n[t])<0){for(;u<i&&r(n[u],n[u-1])<0;)u++;!function(n,t,i){for(i--;t<i;){var r=n[t];n[t++]=n[i];n[i--]=r}}(n,t,u)}else for(;u<i&&r(n[u],n[u-1])>=0;)u++;return u-t}function thi(n,t,i,r,u){var e;for(r===t&&r++;r<i;r++){for(var o,h=n[r],f=t,s=r;f<s;)u(h,n[o=f+s>>>1])<0?s=o:f=o+1;e=r-f;switch(e){case 3:n[f+3]=n[f+2];case 2:n[f+2]=n[f+1];case 1:n[f+1]=n[f];break;default:for(;e>0;)n[f+e]=n[f+e-1],e--}n[f]=h}}function llt(n,t,i,r,u,f){var o=0,s=0,e=1,c,h;if(f(n,t[i+u])>0){for(s=r-u;e<s&&f(n,t[i+u+e])>0;)o=e,(e=1+(e<<1))<=0&&(e=s);e>s&&(e=s);o+=u;e+=u}else{for(s=u+1;e<s&&f(n,t[i+u-e])<=0;)o=e,(e=1+(e<<1))<=0&&(e=s);e>s&&(e=s);c=o;o=u-e;e=u-c}for(o++;o<e;)h=o+(e-o>>>1),f(n,t[i+h])>0?o=h+1:e=h;return e}function alt(n,t,i,r,u,f){var o=0,s=0,e=1,c,h;if(f(n,t[i+u])<0){for(s=u+1;e<s&&f(n,t[i+u-e])<0;)o=e,(e=1+(e<<1))<=0&&(e=s);e>s&&(e=s);c=o;o=u-e;e=u-c}else{for(s=r-u;e<s&&f(n,t[i+u+e])>=0;)o=e,(e=1+(e<<1))<=0&&(e=s);e>s&&(e=s);o+=u;e+=u}for(o++;o<e;)h=o+(e-o>>>1),f(n,t[i+h])<0?e=h:o=h+1;return e}function euu(n,t){function o(o){var c=f[o],s=r[o],l=f[o+1],h=r[o+1],a;r[o]=s+h;o===u-3&&(f[o+1]=f[o+2],r[o+1]=r[o+2]);u--;a=alt(n[l],n,c,s,0,t);c+=a;0!=(s-=a)&&0!==(h=llt(n[c+s-1],n,l,h,h-1,t))&&(s<=h?function(r,u,f,o){for(var s=0,a,v,y,p,s=0;s<u;s++)i[s]=n[r+s];var c=0,l=f,h=r;if(n[h++]=n[l++],0==--o){for(s=0;s<u;s++)n[h+s]=i[c+s];return}if(1===u){for(s=0;s<o;s++)n[h+s]=n[l+s];return void(n[h+o]=i[c])}for(p=e;;){a=0;v=0;y=!1;do if(t(n[l],i[c])<0){if(n[h++]=n[l++],v++,a=0,0==--o){y=!0;break}}else if(n[h++]=i[c++],a++,v=0,1==--u){y=!0;break}while((a|v)<p);if(y)break;do{if(0!==(a=alt(n[l],i,c,u,0,t))){for(s=0;s<a;s++)n[h+s]=i[c+s];if(h+=a,c+=a,(u-=a)<=1){y=!0;break}}if(n[h++]=n[l++],0==--o){y=!0;break}if(0!==(v=llt(i[c],n,l,o,0,t))){for(s=0;s<v;s++)n[h+s]=n[l+s];if(h+=v,l+=v,0==(o-=v)){y=!0;break}}if(n[h++]=i[c++],1==--u){y=!0;break}p--}while(a>=7||v>=7);if(y)break;p<0&&(p=0);p+=2}if((e=p)<1&&(e=1),1===u){for(s=0;s<o;s++)n[h+s]=n[l+s];n[h+o]=i[c]}else{if(0===u)throw new Error;for(s=0;s<u;s++)n[h+s]=i[c+s]}}(c,s,l,h):function(r,u,f,o){for(var s=0,b,s=0;s<o;s++)i[s]=n[f+s];var v=r+u-1,w=o-1,h=f+o-1,c=0,y=0;if(n[h--]=n[v--],0==--u){for(c=h-(o-1),s=0;s<o;s++)n[c+s]=i[s];return}if(1===o){for(y=(h-=u)+1,c=(v-=u)+1,s=u-1;s>=0;s--)n[y+s]=n[c+s];return void(n[h]=i[w])}for(b=e;;){var l=0,a=0,p=!1;do if(t(i[w],n[v])<0){if(n[h--]=n[v--],l++,a=0,0==--u){p=!0;break}}else if(n[h--]=i[w--],a++,l=0,1==--o){p=!0;break}while((l|a)<b);if(p)break;do{if(0!=(l=u-alt(i[w],n,r,u,u-1,t))){for(u-=l,y=(h-=l)+1,c=(v-=l)+1,s=l-1;s>=0;s--)n[y+s]=n[c+s];if(0===u){p=!0;break}}if(n[h--]=i[w--],1==--o){p=!0;break}if(0!=(a=o-llt(n[v],i,0,o,o-1,t))){for(o-=a,y=(h-=a)+1,c=(w-=a)+1,s=0;s<a;s++)n[y+s]=i[c+s];if(o<=1){p=!0;break}}if(n[h--]=n[v--],0==--u){p=!0;break}b--}while(l>=7||a>=7);if(p)break;b<0&&(b=0);b+=2}if((e=b)<1&&(e=1),1===o){for(y=(h-=u)+1,c=(v-=u)+1,s=u-1;s>=0;s--)n[y+s]=n[c+s];n[h]=i[w]}else{if(0===o)throw new Error;for(c=h-(o-1),s=0;s<o;s++)n[c+s]=i[s]}}(c,s,l,h))}var f,r,e=7,u=0,i;return n.length,i=[],f=[],r=[],{mergeRuns:function(){for(;u>1;){var n=u-2;if(n>=1&&r[n-1]<=r[n]+r[n+1]||n>=2&&r[n-2]<=r[n]+r[n-1])r[n-1]<r[n+1]&&n--;else if(r[n]>r[n+1])break;o(n)}},forceMergeRuns:function(){for(;u>1;){var n=u-2;n>0&&r[n-1]<r[n+1]&&n--;o(n)}},pushRun:function(n,t){f[u]=n;r[u]=t;u+=1}}}function eit(n,t,i,r){var f,u,o,s,e;if(i||(i=0),r||(r=n.length),f=r-i,!(f<2))if(u=0,f<32)thi(n,i,r,i+(u=nhi(n,i,r,t)),t);else{o=euu(n,t);s=function(n){for(var t=0;n>=32;)t|=1&n,n>>=1;return n+t}(f);do(u=nhi(n,i,r,t))<s&&(e=f,e>s&&(e=s),thi(n,i,i+e,i+u,t),u=e),o.pushRun(i,u),o.mergeRuns(),f-=u,i+=u;while(0!==f);o.forceMergeRuns()}}function ylt(){vlt||(vlt=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function ihi(n,t){return n.zlevel===t.zlevel?n.z===t.z?n.z2-t.z2:n.z-t.z:n.zlevel-t.zlevel}function rh(n){return n>-1e-8&&n<rhi}function ehi(n){return n>rhi||n<-1e-8}function pi(n,t,i,r,u){var f=1-u;return f*f*(f*n+3*u*t)+u*u*(u*r+3*f*i)}function ohi(n,t,i,r,u){var f=1-u;return 3*(((t-n)*f+2*(i-t)*u)*f+(r-i)*u*u)}function hit(n,t,i,r,u,f){var s=r+3*(t-i)-n,e=3*(i-2*t+n),v=3*(t-n),tt=n-u,h=e*e-3*s*v,a=e*v-9*s*tt,rt=v*v-3*e*tt,c=0,y,b,l;if(rh(h)&&rh(a))rh(e)?f[0]=0:(o=-v/e)>=0&&o<=1&&(f[c++]=o);else if(y=a*a-4*h*rt,rh(y))b=a/h,l=-b/2,(o=-e/s+b)>=0&&o<=1&&(f[c++]=o),l>=0&&l<=1&&(f[c++]=l);else if(y>0){var it=ih(y),p=h*e+1.5*s*(-a+it),w=h*e+1.5*s*(-a-it);(o=(-e-((p=p<0?-oit(-p,sit):oit(p,sit))+(w=w<0?-oit(-w,sit):oit(w,sit))))/(3*s))>=0&&o<=1&&(f[c++]=o)}else{var ut=(2*h*e-3*s*a)/(2*ih(h*h*h)),k=Math.acos(ut)/3,d=ih(h),g=Math.cos(k),o=(-e-2*d*g)/(3*s),nt=(l=(-e+d*(g+fhi*Math.sin(k)))/(3*s),(-e+d*(g-fhi*Math.sin(k)))/(3*s));o>=0&&o<=1&&(f[c++]=o);l>=0&&l<=1&&(f[c++]=l);nt>=0&&nt<=1&&(f[c++]=nt)}return c}function shi(n,t,i,r,u){var f=6*i-12*t+6*n,o=9*t+3*r-3*n-9*i,a=3*t-3*n,s=0,h,e,l,c;return rh(o)?ehi(f)&&(e=-a/f)>=0&&e<=1&&(u[s++]=e):(h=f*f-4*o*a,rh(h)?u[0]=-f/(2*o):h>0&&(l=ih(h),c=(-f-l)/(2*o),(e=(-f+l)/(2*o))>=0&&e<=1&&(u[s++]=e),c>=0&&c<=1&&(u[s++]=c))),s}function uh(n,t,i,r,u,f){var e=(t-n)*u+n,o=(i-t)*u+t,h=(r-i)*u+i,s=(o-e)*u+e,c=(h-o)*u+o,l=(c-s)*u+s;f[0]=n;f[1]=e;f[2]=s;f[3]=l;f[4]=l;f[5]=c;f[6]=h;f[7]=r}function hhi(n,t,i,r,u,f,e,o,s,h,c){var a,y,p,w,k,b=.005,l=1/0,v,d;for(no[0]=s,no[1]=h,v=0;v<1;v+=.05)rf[0]=pi(n,i,u,e,v),rf[1]=pi(t,r,f,o,v),(w=ns(no,rf))<l&&(a=v,l=w);for(l=1/0,d=0;d<32&&!(b<uhi);d++)y=a-b,p=a+b,rf[0]=pi(n,i,u,e,y),rf[1]=pi(t,r,f,o,y),w=ns(rf,no),y>=0&&w<l?(a=y,l=w):(kv[0]=pi(n,i,u,e,p),kv[1]=pi(t,r,f,o,p),k=ns(kv,no),p<=1&&k<l?(a=p,l=k):b*=.5);return c&&(c[0]=pi(n,i,u,e,a),c[1]=pi(t,r,f,o,a)),ih(l)}function suu(n,t,i,r,u,f,e,o,s){for(var c=n,l=t,a=0,k=1/s,h=1;h<=s;h++){var v=h*k,y=pi(n,i,u,e,v),p=pi(t,r,f,o,v),w=y-c,b=p-l;a+=Math.sqrt(w*w+b*b);c=y;l=p}return a}function tr(n,t,i,r){var u=1-r;return u*(u*n+2*r*t)+r*r*i}function wlt(n,t,i,r){return 2*((1-r)*(t-n)+r*(i-t))}function chi(n,t,i){var r=n+i-2*t;return 0===r?.5:(n-t)/r}function kb(n,t,i,r,u){var f=(t-n)*r+n,e=(i-t)*r+t,o=(e-f)*r+f;u[0]=n;u[1]=f;u[2]=o;u[3]=o;u[4]=e;u[5]=i}function lhi(n,t,i,r,u,f,e,o,s){var c,p=.005,h=1/0,l,w,a,v,y,b;for(no[0]=e,no[1]=o,l=0;l<1;l+=.05)rf[0]=tr(n,i,u,l),rf[1]=tr(t,r,f,l),(y=ns(no,rf))<h&&(c=l,h=y);for(h=1/0,w=0;w<32&&!(p<uhi);w++)a=c-p,v=c+p,rf[0]=tr(n,i,u,a),rf[1]=tr(t,r,f,a),y=ns(rf,no),a>=0&&y<h?(c=a,h=y):(kv[0]=tr(n,i,u,v),kv[1]=tr(t,r,f,v),b=ns(kv,no),v<=1&&b<h?(c=v,h=b):p*=.5);return s&&(s[0]=tr(n,i,u,c),s[1]=tr(t,r,f,c)),ih(h)}function huu(n,t,i,r,u,f,e){for(var s=n,h=t,c=0,w=1/e,o=1;o<=e;o++){var l=o*w,a=tr(n,i,u,l),v=tr(t,r,f,l),y=a-s,p=v-h;c+=Math.sqrt(y*y+p*p);s=a;h=v}return c}function blt(n){var r=n&&ahi.exec(n),i;if(r){var t=r[1].split(","),u=+gu(t[0]),f=+gu(t[1]),e=+gu(t[2]),o=+gu(t[3]);return isNaN(u+f+e+o)?void 0:(i=[],function(n){return n<=0?0:n>=1?1:hit(0,u,e,1,n,i)&&pi(0,f,o,1,i[0])})}}function te(n){return(n=Math.round(n))<0?0:n>255?255:n}function gb(n){return n<0?0:n>1?1:n}function klt(n){var t=n;return t.length&&"%"===t.charAt(t.length-1)?te(parseFloat(t)/100*255):te(parseInt(t,10))}function nl(n){var t=n;return t.length&&"%"===t.charAt(t.length-1)?gb(parseFloat(t)/100):gb(parseFloat(t))}function dlt(n,t,i){return i<0?i+=1:i>1&&(i-=1),6*i<1?n+(t-n)*i*6:2*i<1?t:3*i<2?n+(t-n)*(2/3-i)*6:n}function fh(n,t,i){return n+(t-n)*i}function uf(n,t,i,r,u){return n[0]=t,n[1]=i,n[2]=r,n[3]=u,n}function glt(n,t){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n}function dv(n,t){nk&&glt(nk,t);nk=nat.put(n,nk||t.slice())}function br(n,t){var o,r,u,f,e,s;if(n){if(t=t||[],o=nat.get(n),o)return glt(t,o);if(r=(n+="").replace(/ /g,"").toLowerCase(),r in yhi)return glt(t,yhi[r]),dv(n,t),t;if(f=r.length,"#"===r.charAt(0))return 4===f||5===f?(u=parseInt(r.slice(1,4),16))>=0&&u<=4095?(uf(t,(3840&u)>>4|(3840&u)>>8,240&u|(240&u)>>4,15&u|(15&u)<<4,5===f?parseInt(r.slice(4),16)/15:1),dv(n,t),t):void uf(t,0,0,0,1):7===f||9===f?(u=parseInt(r.slice(1,7),16))>=0&&u<=16777215?(uf(t,(16711680&u)>>16,(65280&u)>>8,255&u,9===f?parseInt(r.slice(7),16)/255:1),dv(n,t),t):void uf(t,0,0,0,1):void 0;if(e=r.indexOf("("),s=r.indexOf(")"),-1!==e&&s+1===f){var c=r.substr(0,e),i=r.substr(e+1,s-(e+1)).split(","),h=1;switch(c){case"rgba":if(4!==i.length)return 3===i.length?uf(t,+i[0],+i[1],+i[2],1):uf(t,0,0,0,1);h=nl(i.pop());case"rgb":return i.length>=3?(uf(t,klt(i[0]),klt(i[1]),klt(i[2]),3===i.length?h:nl(i[3])),dv(n,t),t):void uf(t,0,0,0,1);case"hsla":return 4!==i.length?void uf(t,0,0,0,1):(i[3]=nl(i[3]),tat(i,t),dv(n,t),t);case"hsl":return 3!==i.length?void uf(t,0,0,0,1):(tat(i,t),dv(n,t),t);default:return}}uf(t,0,0,0,1)}}function tat(n,t){var u=(parseFloat(n[0])%360+360)%360/360,f=nl(n[1]),i=nl(n[2]),r=i<=.5?i*(f+1):i+f-i*f,e=2*i-r;return uf(t=t||[],te(255*dlt(e,r,u+1/3)),te(255*dlt(e,r,u)),te(255*dlt(e,r,u-1/3)),1),4===n.length&&(t[3]=n[3]),t}function cit(n,t){var i=br(n),r;if(i){for(r=0;r<3;r++)i[r]=t<0?i[r]*(1-t)|0:(255-i[r])*t+i[r]|0,i[r]>255?i[r]=255:i[r]<0&&(i[r]=0);return ie(i,4===i.length?"rgba":"rgb")}}function tk(n,t,i){if(t&&t.length&&n>=0&&n<=1){i=i||[];var e=n*(t.length-1),o=Math.floor(e),s=Math.ceil(e),r=t[o],u=t[s],f=e-o;return i[0]=te(fh(r[0],u[0],f)),i[1]=te(fh(r[1],u[1],f)),i[2]=te(fh(r[2],u[2],f)),i[3]=gb(fh(r[3],u[3],f)),i}}function iat(n,t,i){if(t&&t.length&&n>=0&&n<=1){var r=n*(t.length-1),o=Math.floor(r),s=Math.ceil(r),u=br(t[o]),f=br(t[s]),e=r-o,h=ie([te(fh(u[0],f[0],e)),te(fh(u[1],f[1],e)),te(fh(u[2],f[2],e)),gb(fh(u[3],f[3],e))],"rgba");return i?{color:h,leftIndex:o,rightIndex:s,value:r}:h}}function gv(n,t,i,r){var u=br(n);if(n)return u=function(n){var h;if(n){var i,s,u=n[0]/255,f=n[1]/255,e=n[2]/255,o=Math.min(u,f,e),t=Math.max(u,f,e),r=t-o,c=(t+o)/2;if(0===r)i=0,s=0;else{s=c<.5?r/(t+o):r/(2-t-o);var l=((t-u)/6+r/2)/r,a=((t-f)/6+r/2)/r,v=((t-e)/6+r/2)/r;u===t?i=v-a:f===t?i=1/3+l-v:e===t&&(i=2/3+a-l);i<0&&(i+=1);i>1&&(i-=1)}return h=[360*i,s,c],null!=n[3]&&h.push(n[3]),h}}(u),null!=t&&(u[0]=function(n){return(n=Math.round(n))<0?0:n>360?360:n}(t)),null!=i&&(u[1]=nl(i)),null!=r&&(u[2]=nl(r)),ie(tat(u),"rgba")}function ik(n,t){var i=br(n);if(i&&null!=t)return i[3]=gb(t),ie(i,"rgba")}function ie(n,t){if(n&&n.length){var i=n[0]+","+n[1]+","+n[2];return"rgba"!==t&&"hsva"!==t&&"hsla"!==t||(i+=","+n[3]),t+"("+i+")"}}function rk(n,t){var i=br(n);return i?(.299*i[0]+.587*i[1]+.114*i[2])*i[3]/255+(1-i[3])*t:0}function fk(n){var i,t;return n&&"transparent"!==n?"string"==typeof n&&n.indexOf("rgba")>-1&&(t=br(n),t&&(n="rgb("+t[0]+","+t[1]+","+t[2]+")",i=t[3])):n="none",{color:n,opacity:null==i?1:i}}function eh(n){return n<khi&&n>-.0001}function lit(n){return uk(1e3*n)/1e3}function rat(n){return uk(1e4*n)/1e4}function ghi(n){return n&&!!n.image}function uat(n){return ghi(n)||function(n){return n&&!!n.svgElement}(n)}function nci(n){return"linear"===n.type}function tci(n){return"radial"===n.type}function ici(n){return n&&("linear"===n.type||"radial"===n.type)}function ait(n){return"url(#"+n+")"}function rci(n){var t=n.getGlobalScale(),i=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(i)/Math.log(10)),1)}function uci(n){var i=n.x||0,r=n.y||0,u=(n.rotation||0)*wv,f=d(n.scaleX,1),e=d(n.scaleY,1),o=n.skewX||0,s=n.skewY||0,t=[];return(i||r)&&t.push("translate("+i+"px,"+r+"px)"),u&&t.push("rotate("+u+")"),1===f&&1===e||t.push("scale("+f+","+e+")"),(o||s)&&t.push("skew("+uk(o*wv)+"deg, "+uk(s*wv)+"deg)"),t.join(" ")}function rs(n,t,i){return(t-n)*i+n}function fat(n,t,i,r){for(var f=t.length,u=0;u<f;u++)n[u]=rs(t[u],i[u],r);return n}function yit(n,t,i,r){for(var f=t.length,u=0;u<f;u++)n[u]=t[u]+i[u]*r;return n}function eci(n,t,i,r){for(var f,e=t.length,o=e&&t[0].length,u=0;u<e;u++)for(n[u]||(n[u]=[]),f=0;f<o;f++)n[u][f]=t[u][f]+i[u][f]*r;return n}function auu(n,t){for(var i=n.length,r=t.length,u=i>r?t:n,f=Math.min(i,r),e=u[f-1]||{color:[0,0,0,0],offset:0},o=f;o<Math.max(i,r);o++)u.push({offset:e.offset,color:e.color.slice()})}function vuu(n,t,i){var u=n,f=t,s,o,r,h,e;if(u.push&&f.push){if(s=u.length,o=f.length,s!==o)if(s>o)u.length=o;else for(r=s;r<o;r++)u.push(1===i?f[r]:vit.call(f[r]));for(h=u[0]&&u[0].length,r=0;r<u.length;r++)if(1===i)isNaN(u[r])&&(u[r]=f[r]);else for(e=0;e<h;e++)isNaN(u[r][e])&&(u[r][e]=f[r][e])}}function ek(n){var r,i,t;if(ir(n)){if(r=n.length,ir(n[0])){for(i=[],t=0;t<r;t++)i.push(vit.call(n[t]));return i}return vit.call(n)}return n}function pit(n){return n[0]=Math.floor(n[0])||0,n[1]=Math.floor(n[1])||0,n[2]=Math.floor(n[2])||0,n[3]=null==n[3]?1:n[3],"rgba("+n.join(",")+")"}function oci(n){return 4===n||5===n}function wit(n){return 1===n||2===n}function ny(){return(new Date).getTime()}function hat(n){var t=n.pointerType;return"pen"===t||"touch"===t}function cat(n){n&&(n.zrByTouch=!0)}function lci(n,t){for(var i=t,r=!1;i&&9!==i.nodeType&&!(r=i.domBelongToZr||i!==t&&i===n.painterRoot);)i=i.parentNode;return r}function kuu(n,i){var r=i.domHandlers;ft.pointerEventsSupported?t(sat.pointer,function(t){kit(i,t,function(i){r[t].call(n,i)})}):(ft.touchEventsSupported&&t(sat.touch,function(t){kit(i,t,function(u){r[t].call(n,u),function(n){n.touching=!0;null!=n.touchTimer&&(clearTimeout(n.touchTimer),n.touchTimer=null);n.touchTimer=setTimeout(function(){n.touching=!1;n.touchTimer=null},700)}(i)})}),t(sat.mouse,function(t){kit(i,t,function(u){u=slt(u);i.touching||r[t].call(n,u)})}))}function duu(n,i){function r(t){kit(i,t,function(r){r=slt(r);lci(n,r.target)||(r=function(n,t){return tf(n.dom,new aci(n,t),!0)}(n,r),i.domHandlers[t].call(n,r))},{capture:!0})}ft.pointerEventsSupported?t(buu,r):ft.touchEventsSupported||t(wuu,r)}function kit(n,t,i,r){n.mounted[t]=i;n.listenerOpts[t]=r;hlt(n.domTarget,t,i,r)}function lat(n){var r,u,f,e,i=n.mounted;for(var t in i)i.hasOwnProperty(t)&&(r=n.domTarget,u=t,f=i[t],e=n.listenerOpts[t],r.removeEventListener(u,f,e));n.mounted={}}function tl(n){return n>nfu||n<-5e-5}function wci(n,t){for(var r,i=0;i<to.length;i++)r=to[i],n[r]=t[r]}function cu(n,t){var r=wat[t=t||ds],i;return r||(r=wat[t]=new db(500)),i=r.get(n),null==i&&(i=df.measureText(n,t).width,r.put(n,i)),i}function bci(n,t,i,r){var u=cu(n,t),f=git(t),e=hk(0,u,i),o=iy(0,f,r);return new nt(e,o,u,f)}function sk(n,t,i,r){var f=((n||"")+"").split("\n"),e,u,o;if(1===f.length)return bci(f[0],t,i,r);for(e=new nt(0,0,0,0),u=0;u<f.length;u++)o=bci(f[u],t,i,r),0===u?e.copy(o):e.union(o);return e}function hk(n,t,i){return"right"===i?n-=t:"center"===i&&(n-=t/2),n}function iy(n,t,i){return"middle"===i?n-=t/2:"bottom"===i&&(n-=t),n}function git(n){return cu("国",n)}function re(n,t){return"string"==typeof n?n.lastIndexOf("%")>=0?parseFloat(n)/100*t:parseFloat(n):n}function nrt(n,t,i){var l=t.position||"inside",r=null!=t.distance?t.distance:5,h=i.height,s=i.width,c=h/2,u=i.x,f=i.y,e="left",o="top";if(l instanceof Array)u+=re(l[0],i.width),f+=re(l[1],i.height),e=null,o=null;else switch(l){case"left":u-=r;f+=c;e="right";o="middle";break;case"right":u+=r+s;f+=c;o="middle";break;case"top":u+=s/2;f-=r;e="center";o="bottom";break;case"bottom":u+=s/2;f+=h+r;e="center";break;case"inside":u+=s/2;f+=c;e="center";o="middle";break;case"insideLeft":u+=r;f+=c;o="middle";break;case"insideRight":u+=s-r;f+=c;e="right";o="middle";break;case"insideTop":u+=s/2;f+=r;e="center";break;case"insideBottom":u+=s/2;f+=h-r;e="center";o="bottom";break;case"insideTopLeft":u+=r;f+=r;break;case"insideTopRight":u+=s-r;f+=r;e="right";break;case"insideBottomLeft":u+=r;f+=h-r;o="bottom";break;case"insideBottomRight":u+=s-r;f+=h-r;e="right";o="bottom"}return(n=n||{}).x=u,n.y=f,n.align=e,n.verticalAlign=o,n}function dat(n,t,i,r,u){var f=[],h,o;kci(n,"",n,t,i=i||{},r,f,u);var c=f.length,l=!1,e=i.done,s=i.aborted,a=function(){l=!0;--c<=0&&(l?e&&e():s&&s())},v=function(){--c<=0&&(l?e&&e():s&&s())};for(c||e&&e(),f.length>0&&i.during&&f[0].during(function(n,t){i.during(t)}),h=0;h<f.length;h++)o=f[h],a&&o.done(a),v&&o.aborted(v),i.force&&o.duration(i.duration),o.start(i.easing);return f}function gat(n,t,i){for(var r=0;r<i;r++)n[r]=t[r]}function rfu(n,t,i){var e,s,r;if(ir(t[i]))if(ir(n[i])||(n[i]=[]),uu(t[i]))e=t[i].length,n[i].length!==e&&(n[i]=new t[i].constructor(e),gat(n[i],t[i],e));else{var u=t[i],f=n[i],o=u.length;if(ir(u[0]))for(s=u[0].length,r=0;r<o;r++)f[r]?gat(f[r],u[r],s):f[r]=Array.prototype.slice.call(u[r]);else gat(f,u,o);f.length=u.length}else n[i]=t[i]}function kci(n,t,i,r,u,f,e,o){for(var s,a,y,c,ut,nt=et(r),it=u.duration,ft=u.delay,rt=u.additive,w=u.setToFinal,ot=!v(f),p=n.animators,h=[],d=0;d<nt.length;d++)if(s=nt[d],a=r[s],null!=a&&null!=i[s]&&(ot||f[s]))if(!v(a)||ir(a)||eb(a))h.push(s);else{if(t){o||(i[s]=a,n.updateDuringAnimation(t));continue}kci(n,s,i[s],a,u,f&&f[s],e,o)}else o||(i[s]=a,n.updateDuringAnimation(t),h.push(s));if(y=h.length,!rt&&y)for(c=0;c<p.length;c++)(l=p[c]).targetName===t&&l.stopTracks(h)&&(ut=tt(p,l),p.splice(ut,1));if(u.force||(h=yt(h,function(n){return t=r[n],u=i[n],!(t===u||ir(t)&&ir(u)&&function(n,t){var r=n.length,i;if(r!==t.length)return!1;for(i=0;i<r;i++)if(n[i]!==t[i])return!1;return!0}(t,u));var t,u}),y=h.length),y>0||u.force&&!e.length){var l,b=void 0,g=void 0,k=void 0;if(o)for(g={},w&&(b={}),c=0;c<y;c++)g[s=h[c]]=i[s],w?b[s]=r[s]:i[s]=r[s];else if(w)for(k={},c=0;c<y;c++)k[s=h[c]]=ek(i[s]),rfu(i,r,s);(l=new eat(i,!1,!1,rt?yt(p,function(n){return n.targetName===t}):null)).targetName=t;u.scope&&(l.scope=u.scope);w&&b&&l.whenWithKeys(0,b,h);k&&l.whenWithKeys(0,k,h);l.whenWithKeys(null==it?500:it,o?g:r,h).delay(ft||0);n.addAnimator(l,t);e.push(l)}}function nvt(n,t){var i=new ufu(bct(),n,t);return rl[i.id]=i,i}function dci(n,t){irt[n]=t}function pt(n,t,i,r){var f=t[0],o=t[1],u=i[0],e=i[1],s=o-f,h=e-u;if(0===s)return 0===h?u:(u+e)/2;if(r)if(s>0){if(n<=f)return u;if(n>=o)return e}else{if(n>=f)return u;if(n<=o)return e}else{if(n===f)return u;if(n===o)return e}return(n-f)/s*h+u}function e(n,t){switch(n){case"center":case"middle":n="50%";break;case"left":case"top":n="0%";break;case"right":case"bottom":n="100%"}return o(n)?(i=n,i.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(n)/100*t:parseFloat(n):null==n?NaN:+n;var i}function ri(n,t,i){return null==t&&(t=10),t=Math.min(Math.max(0,t),20),n=(+n).toFixed(t),i?n:+n}function lu(n){return n.sort(function(n,t){return n-t}),n}function ue(n){if(n=+n,isNaN(n))return 0;if(n>1e-14)for(var t=1,i=0;i<15;i++,t*=10)if(Math.round(n*t)/t===n)return i;return tli(n)}function tli(n){var t=n.toString().toLowerCase(),i=t.indexOf("e"),u=i>0?+t.slice(i+1):0,f=i>0?i:t.length,r=t.indexOf("."),e=r<0?0:f-1-r;return Math.max(0,e-u)}function tvt(n,t){var i=Math.log,r=Math.LN10,f=Math.floor(i(n[1]-n[0])/r),e=Math.round(i(Math.abs(t[1]-t[0]))/r),u=Math.min(Math.max(-f+e,0),20);return isFinite(u)?u:20}function ili(n,t){var s=du(n,function(n,t){return n+(isNaN(t)?0:t)},0);if(0===s)return[];for(var e=Math.pow(10,t),h=f(n,function(n){return(isNaN(n)?0:n)/s*e*100}),a=100*e,r=f(h,function(n){return Math.floor(n)}),c=du(r,function(n,t){return n+t},0),u=f(h,function(n,t){return n-r[t]});c<a;){for(var l=Number.NEGATIVE_INFINITY,o=null,i=0,v=u.length;i<v;++i)u[i]>l&&(l=u[i],o=i);++r[o];u[o]=0;++c}return f(r,function(n){return n/e})}function ffu(n,t){var i=Math.max(ue(n),ue(t)),r=n+t;return i>20?r:ri(r,i)}function ivt(n){var t=2*Math.PI;return(n%t+t)%t}function ck(n){return n>-.0001&&n<nli}function au(n){var t,i;return n instanceof Date?n:o(n)?(t=rli.exec(n),!t)?new Date(NaN):t[8]?(i=+t[4]||0,"Z"!==t[8].toUpperCase()&&(i-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,i,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))):new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0):null==n?new Date(NaN):new Date(Math.round(n))}function uli(n){return Math.pow(10,urt(n))}function urt(n){if(0===n)return 0;var t=Math.floor(Math.log(n)/Math.LN10);return n/Math.pow(10,t)>=10&&t++,t}function rvt(n,t){var r=urt(n),u=Math.pow(10,r),i=n/u;return n=(t?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*u,r>=-20?+n.toFixed(r<0?-r:0):n}function frt(n,t){var u=(n.length-1)*t+1,i=Math.floor(u),r=+n[i-1],f=u-i;return f?r+f*(n[i]-r):r}function uvt(n){function o(n,t,i){return n.interval[i]<t.interval[i]||n.interval[i]===t.interval[i]&&(n.close[i]-t.close[i]==(i?-1:1)||!i&&o(n,t,1))}n.sort(function(n,t){return o(n,t,0)?-1:1});for(var f=-1/0,e=1,i=0;i<n.length;){for(var r=n[i].interval,u=n[i].close,t=0;t<2;t++)r[t]<=f&&(r[t]=f,u[t]=t?1:1-e),f=r[t],e=u[t];r[0]===r[1]&&u[0]*u[1]!=1?n.splice(i,1):i++}return n}function io(n){var t=parseFloat(n);return t==n&&(0!==t||!o(n)||n.indexOf("x")<=0)?t:NaN}function fvt(n){return!isNaN(io(n))}function fli(){return Math.round(9*Math.random())}function eli(n,t){return 0===t?n:eli(t,n%t)}function oli(n,t){return null==n?t:null==t?n:n*t/eli(n,t)}function sli(){0}function vt(n){throw new Error(n);}function hli(n,t,i){return(t-n)*i+n}function kt(n){return n instanceof Array?n:null==n?[]:[n]}function ul(n,t,i){var u,f,r;if(n)for(n[t]=n[t]||{},n.emphasis=n.emphasis||{},n.emphasis[t]=n.emphasis[t]||{},u=0,f=i.length;u<f;u++)r=i[u],!n.emphasis[t].hasOwnProperty(r)&&n[t].hasOwnProperty(r)&&(n.emphasis[t][r]=n[t][r])}function uy(n){return!v(n)||u(n)||n instanceof Date?n:n.value}function efu(n){return v(n)&&!(n instanceof Array)}function cli(n,i,r){var o="normalMerge"===r,s="replaceMerge"===r,l="replaceAll"===r,h,e,u,f;return n=n||[],i=(i||[]).slice(),h=c(),t(i,function(n,t){v(n)||(i[t]=null)}),f=function(n,t,i){var f=[],u,r;if("replaceAll"===i)return f;for(u=0;u<n.length;u++)r=n[u],r&&null!=r.id&&t.set(r.id,u),f.push({existing:"replaceMerge"===i||ak(r)?null:r,newOption:null,keyInfo:null,brandNew:null});return f}(n,h,r),(o||s)&&function(n,i,r,u){t(u,function(t,f){var s,e,o;t&&null!=t.id&&(s=lk(t.id),e=r.get(s),null!=e&&(o=n[e],sr(!o.newOption,'Duplicated option on id "'+s+'".'),o.newOption=t,o.existing=i[e],u[f]=null))})}(f,n,h,i),o&&function(n,i){t(i,function(t,r){var u,f;if(t&&null!=t.name)for(u=0;u<n.length;u++)if(f=n[u].existing,!n[u].newOption&&f&&(null==f.id||null==t.id)&&!ak(t)&&!ak(f)&&lli("name",f,t))return n[u].newOption=t,void(i[r]=null)})}(f,i),o||s?function(n,i,r){t(i,function(t){if(t){for(var i,u=0;(i=n[u])&&(i.newOption||ak(i.existing)||i.existing&&null!=t.id&&!lli("id",t,i.existing));)u++;i?(i.newOption=t,i.brandNew=r):n.push({newOption:t,brandNew:r,existing:null,keyInfo:null});u++}})}(f,i,s):l&&function(n,i){t(i,function(t){n.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}(f,i),e=f,u=c(),t(e,function(n){var t=n.existing;t&&u.set(t.id,n)}),t(e,function(n){var t=n.newOption;sr(!t||null==t.id||!u.get(t.id)||u.get(t.id)===n,"id duplicates: "+(t&&t.id));t&&null!=t.id&&u.set(t.id,n);!n.keyInfo&&(n.keyInfo={})}),t(e,function(n,t){var f=n.existing,r=n.newOption,i=n.keyInfo,e;if(v(r)){if(i.name=null!=r.name?lk(r.name):f?f.name:evt+t,f)i.id=lk(f.id);else if(null!=r.id)i.id=lk(r.id);else{e=0;do i.id="\0"+i.name+"\0"+e++;while(u.get(i.id))}u.set(i.id,n)}}),f}function lli(n,t,i){var r=ai(t[n],null),u=ai(i[n],null);return null!=r&&null!=u&&r===u}function lk(n){return ai(n,"")}function ai(n,t){return null==n?t:o(n)?n:ht(n)||wtt(n)?n+"":t}function hvt(n){var t=n.name;return!(!t||!t.indexOf(evt))}function ak(n){return n&&null!=n.id&&0===lk(n.id).indexOf(ovt)}function fl(n,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?u(t.dataIndex)?f(t.dataIndex,function(t){return n.indexOfRawIndex(t)}):n.indexOfRawIndex(t.dataIndex):null!=t.name?u(t.name)?f(t.name,function(t){return n.indexOfName(t)}):n.indexOfName(t.name):void 0}function ct(){var n="__ec_inner_"+ali++;return function(t){return t[n]||(t[n]={})}}function vk(n,t,i){var r=cvt(t,i),o=r.mainTypeSpecified,e=r.queryOptionMap,u=r.others,f=i?i.defaultMainType:null;return!o&&f&&e.set(f,{}),e.each(function(t,r){var e=yk(n,r,t,{useDefault:f===r,enableAll:!i||null==i.enableAll||i.enableAll,enableNone:!i||null==i.enableNone||i.enableNone});u[r+"Models"]=e.models;u[r+"Model"]=e.models[0]}),u}function cvt(n,i){var r,u;o(n)?(u={},u[n+"Index"]=0,r=u):r=n;var f=c(),s={},e=!1;return t(r,function(n,t){if("dataIndex"!==t&&"dataIndexInside"!==t){var u=t.match(/^(\w+)(Index|Id|Name)$/)||[],r=u[1],o=(u[2]||"").toLowerCase();!r||!o||i&&i.includeMainTypes&&tt(i.includeMainTypes,r)<0||(e=e||!!r,(f.get(r)||f.set(r,{}))[o]=n)}else s[t]=n}),{mainTypeSpecified:e,queryOptionMap:f,others:s}}function yk(n,t,i,r){var s;r=r||oi;var f=i.index,e=i.id,o=i.name,u={models:null,specified:null!=f||null!=e||null!=o};return u.specified?"none"===f||!1===f?(sr(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),u.models=[],u):("all"===f&&(sr(r.enableAll,'`"all"` is not a valid value on index option.'),f=e=o=null),u.models=n.queryComponents({mainType:t,index:f,id:e,name:o}),u):(s=void 0,u.models=r.useDefault&&(s=n.getComponent(t))?[s]:[],u)}function yli(n,t,i){n.setAttribute?n.setAttribute(t,i):n[t]=i}function lvt(n,i){var r=c(),u=[];return t(n,function(n){var t=i(n);(r.get(t)||(u.push(t),r.set(t,[]))).push(n)}),{keys:u,buckets:r}}function pli(n,t,i,r,u){var l=null==t||"auto"===t,c;if(null==r)return r;if(ht(r))return ri(y=hli(i||0,r,u),l?Math.max(ue(i||0),ue(r)):t);if(o(r))return u<1?i:r;for(var s=[],e=i,h=r,p=Math.max(e?e.length:0,h.length),f=0;f<p;++f)if(c=n.getDimensionInfo(f),c&&"ordinal"===c.type)s[f]=(u<1&&e?e:h)[f];else{var a=e&&e[f]?e[f]:0,v=h[f],y=hli(a,v,u);s[f]=ri(y,l?Math.max(ue(a),ue(v)):t)}return s}function ro(n){var t={main:"",sub:""},i;return n&&(i=n.split("."),t.main=i[0]||"",t.sub=i[1]||""),t}function vvt(n){n.$constructor=n;n.extend=function(n){var t,f,u=this;return l(f=u)&&/^class\s/.test(Function.prototype.toString.call(f))?t=function(n){function t(){return n.apply(this,arguments)||this}return i(t,n),t}(u):(t=function(){(n.$constructor||u).apply(this,arguments)},kct(t,this)),r(t.prototype,n),t[avt]=!0,t.extend=this.extend,t.superCall=ofu,t.superApply=sfu,t.superClass=u,t}}function wli(n,t){n.extend=t.extend}function ofu(n,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return this.superClass.prototype[t].apply(n,r)}function sfu(n,t,i){return this.superClass.prototype[t].apply(n,i)}function ert(n){var i={};n.registerClass=function(n){var u,r=n.type||n.prototype.type,t,f;return r&&(sr(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(u=r),'componentType "'+u+'" illegal'),n.prototype.type=r,t=ro(r),t.sub?t.sub!==oh&&(f=function(n){var t=i[n.main];return t&&t[oh]||((t=i[n.main]={})[oh]=!0),t}(t),f[t.sub]=n):i[t.main]=n),n};n.getClass=function(n,t,r){var u=i[n];if(u&&u[oh]&&(u=t?u[t]:null),r&&!u)throw new Error(t?"Component "+n+"."+(t||"")+" is used but not imported.":n+".type should be specified.");return u};n.getClassesByMainType=function(n){var f=ro(n),u=[],r=i[f.main];return r&&r[oh]?t(r,function(n,t){t!==oh&&u.push(n)}):u.push(r),u};n.hasClass=function(n){var t=ro(n);return!!i[t.main]};n.getAllClassMainTypes=function(){var n=[];return t(i,function(t,i){n.push(i)}),n};n.hasSubTypes=function(n){var r=ro(n),t=i[r.main];return t&&t[oh]}}function el(n,t){for(var i=0;i<n.length;i++)n[i][1]||(n[i][1]=n[i][0]);return t=t||!1,function(i,r,u){for(var e,s,o={},f=0;f<n.length;f++)e=n[f][1],r&&tt(r,e)>=0||u&&tt(u,e)<0||(s=i.getShallow(e,t),null!=s&&(o[n[f][0]]=s));return o}}function lfu(n){if("string"==typeof n){var t=yvt.get(n);return t&&t.image}return n}function pvt(n,t,i,r,u){if(n){if("string"==typeof n){if(t&&t.__zrImageSrc===n||!i)return t;var f=yvt.get(n),e={hostEl:i,cb:r,cbPayload:u};return f?!ort(t=f.image)&&f.pending.push(e):((t=df.loadImage(n,kli,kli)).__zrImageSrc=n,yvt.put(n,t.__cachedImgObj={image:t,pending:[e]})),t}return n}return t}function kli(){var i=this.__cachedImgObj,n,t,r;for(this.onload=this.onerror=this.__cachedImgObj=null,n=0;n<i.pending.length;n++)t=i.pending[n],r=t.cb,r&&r(this,t.cbPayload),t.hostEl.dirty();i.pending.length=0}function ort(n){return n&&n.width&&n.height}function dli(n,t,i,r,u){var f,e,o;if(!t)return"";for(f=(n+"").split("\n"),u=gli(t,i,r,u),e=0,o=f.length;e<o;e++)f[e]=nai(f[e],u);return f.join("\n")}function gli(n,t,i,u){var f=r({},u=u||{}),c,s,e,h,o;for(f.font=t,i=d(i,"..."),f.maxIterations=d(u.maxIterations,2),c=f.minChar=d(u.minChar,0),f.cnCharWidth=cu("国",t),s=f.ascCharWidth=cu("a",t),f.placeholder=d(u.placeholder,""),e=n=Math.max(0,n-1),h=0;h<c&&e>=s;h++)e-=s;return o=cu(i,t),o>e&&(i="",o=0),e=n-o,f.ellipsis=i,f.ellipsisWidth=o,f.contentWidth=e,f.containerWidth=n,f}function nai(n,t){var f=t.containerWidth,e=t.font,u=t.contentWidth,i,r,o;if(!f)return"";if(i=cu(n,e),i<=f)return n;for(r=0;;r++){if(i<=u||r>=t.maxIterations){n+=t.ellipsis;break}o=0===r?afu(n,u,t.ascCharWidth,t.cnCharWidth):i>0?Math.floor(n.length*u/i):0;i=cu(n=n.substr(0,o),e)}return""===n&&(n=t.placeholder),n}function afu(n,t,i,r){for(var f,e=0,u=0,o=n.length;u<o&&e<t;u++)f=n.charCodeAt(u),e+=0<=f&&f<=127?i:r;return u}function wvt(n,t,i,r,u){var s,y,k=""===t,e=u&&i.rich[u]||{},h=n.lines,d=e.font||i.font,g=!1,a,p,w,v,o,c,f,l,b;for(r?(a=e.padding,p=a?a[1]+a[3]:0,null!=e.width&&"auto"!==e.width?(w=re(e.width,r.width)+p,h.length>0&&w+r.accumWidth>r.width&&(s=t.split("\n"),g=!0),r.accumWidth=w):(v=rai(t,d,r.width,r.breakAll,r.accumWidth),r.accumWidth=v.accumWidth+p,y=v.linesWidths,s=v.lines)):s=t.split("\n"),o=0;o<s.length;o++)c=s[o],f=new vfu,(f.styleName=u,f.text=c,f.isLineHolder=!c&&!k,f.width="number"==typeof e.width?e.width:y?y[o]:cu(c,d),o||g)?h.push(new tai([f])):(l=(h[h.length-1]||(h[0]=new tai)).tokens,b=l.length,1===b&&l[0].isLineHolder?l[0]=f:(c||!b||k)&&l.push(f))}function pfu(n){return!function(n){var t=n.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}(n)||!!iai[n]}function rai(n,t,i,r,u){for(var c,l,v,h=[],a=[],e="",f="",s=0,o=0,y=0;y<n.length;y++)c=n.charAt(y),"\n"!==c?(l=cu(c,t),v=!r&&!pfu(c),(h.length?o+l>i:u+o+l>i)?o?(e||f)&&(v?(e||(e=f,f="",o=s=0),h.push(e),a.push(o-s),f+=c,e="",o=s+=l):(f&&(e+=f,f="",s=0),h.push(e),a.push(o),e=c,o=l)):v?(h.push(f),a.push(s),f=c,s=l):(h.push(c),a.push(l)):(o+=l,v?(f+=c,s+=l):(f&&(e+=f,f="",s=0),e+=c))):(f&&(e+=f,o+=s),h.push(e),a.push(o),e="",f="",s=0,o=0);return h.length||e||(e=n,f="",s=0),f&&(e+=f),e&&(h.push(e),a.push(o)),1===h.length&&(o+=u),{accumWidth:o,lines:h,linesWidths:a}}function vrt(n,t,i){if(0!==n.length){for(var r=n[0],u=r[0],f=r[0],e=r[1],o=r[1],s=1;s<n.length;s++)r=n[s],u=fu(u,r[0]),f=eu(f,r[0]),e=fu(e,r[1]),o=eu(o,r[1]);t[0]=u;t[1]=e;i[0]=f;i[1]=o}}function fai(n,t,i,r,u,f){u[0]=fu(n,i);u[1]=fu(t,r);f[0]=eu(n,i);f[1]=eu(t,r)}function bfu(n,t,i,r,u,f,e,o,s,h){var y=shi,p=pi,l=y(n,i,u,e,tyt),c,a,v;for(s[0]=1/0,s[1]=1/0,h[0]=-1/0,h[1]=-1/0,c=0;c<l;c++)a=p(n,i,u,e,tyt[c]),s[0]=fu(a,s[0]),h[0]=eu(a,h[0]);for(l=y(t,r,f,o,iyt),c=0;c<l;c++)v=p(t,r,f,o,iyt[c]),s[1]=fu(v,s[1]),h[1]=eu(v,h[1]);s[0]=fu(n,s[0]);h[0]=eu(n,h[0]);s[0]=fu(e,s[0]);h[0]=eu(e,h[0]);s[1]=fu(t,s[1]);h[1]=eu(t,h[1]);s[1]=fu(o,s[1]);h[1]=eu(o,h[1])}function kfu(n,t,i,r,u,f,e,o){var s=chi,h=tr,a=eu(fu(s(n,i,u),1),0),v=eu(fu(s(t,r,f),1),0),c=h(n,i,u,a),l=h(t,r,f,v);e[0]=fu(n,u,c);e[1]=fu(t,f,l);o[0]=eu(n,u,c);o[1]=eu(t,f,l)}function dfu(n,t,i,r,u,f,e,o,s){var c=ts,l=is,a=Math.abs(u-f),v,h;if(a%sl<.0001&&a>.0001)return o[0]=n-i,o[1]=t-r,s[0]=n+i,void(s[1]=t+r);for((crt[0]=nyt(u)*i+n,crt[1]=gvt(u)*r+t,lrt[0]=nyt(f)*i+n,lrt[1]=gvt(f)*r+t,c(o,crt,lrt),l(s,crt,lrt),(u%=sl)<0&&(u+=sl),(f%=sl)<0&&(f+=sl),u>f&&!e?f+=sl:u<f&&e&&(u+=sl),e)&&(v=f,f=u,u=v),h=0;h<f;h+=Math.PI/2)h>u&&(art[0]=nyt(h)*i+n,art[1]=gvt(h)*r+t,c(o,art,o),l(s,art,s))}function oyt(n){return Math.round(n/fyt*1e8)/1e8%2*fyt}function eai(n,t){var i=oyt(n[0]),u,r;i<0&&(i+=hh);u=i-n[0];r=n[1];r+=u;!t&&r-i>=hh?r=i+hh:t&&i-r>=hh?r=i-hh:!t&&i>r?r=i+(hh-oyt(i-r)):t&&i<r&&(r=i-(hh-oyt(r-i)));n[0]=i;n[1]=r}function ch(n,t,i,r,u,f,e){var o,s,h;return 0===u?!1:(o=u,s=0,e>t+o&&e>r+o||e<t-o&&e<r-o||f>n+o&&f>i+o||f<n-o&&f<i-o)?!1:n===i?Math.abs(f-n)<=o/2:(h=(s=(t-r)/(n-i))*f-e+(n*r-i*t)/(n-i),h*h/(s*s+1)<=o/2*o/2)}function gfu(n,t,i,r,u,f,e,o,s,h,c){if(0===s)return!1;var l=s;return!(c>t+l&&c>r+l&&c>f+l&&c>o+l||c<t-l&&c<r-l&&c<f-l&&c<o-l||h>n+l&&h>i+l&&h>u+l&&h>e+l||h<n-l&&h<i-l&&h<u-l&&h<e-l)&&hhi(n,t,i,r,u,f,e,o,h,c,null)<=l/2}function oai(n,t,i,r,u,f,e,o,s){if(0===e)return!1;var h=e;return!(s>t+h&&s>r+h&&s>f+h||s<t-h&&s<r-h&&s<f-h||o>n+h&&o>i+h&&o>u+h||o<n-h&&o<i-h&&o<u-h)&&lhi(n,t,i,r,u,f,o,s,null)<=h/2}function ee(n){return(n%=syt)<0&&(n+=syt),n}function neu(n,t,i,r,u,f,e,o,s){var c,l,a,h;return 0===e?!1:(c=e,o-=n,s-=t,l=Math.sqrt(o*o+s*s),l-c>i||l+c<i)?!1:Math.abs(r-u)%fy<.0001?!0:(f?(a=r,r=ee(u),u=ee(a)):(r=ee(r),u=ee(u)),r>u&&(u+=fy),h=Math.atan2(s,o),h<0&&(h+=fy),h>=r&&h<=u||h+fy>=r&&h+fy<=u)}function es(n,t,i,r,u,f){var e,o,s;return f>t&&f>r||f<t&&f<r?0:r===t?0:(e=(f-t)/(r-t),o=r<t?1:-1,1!==e&&0!==e||(o=r<t?.5:-.5),s=e*(i-n)+n,s===u?1/0:s>u?o:0)}function teu(n,t,i,r,u,f,e,o,s,h){var y,p,l,c;if(h>t&&h>r&&h>f&&h>o||h<t&&h<r&&h<f&&h<o||(p=hit(t,r,f,o,h,kr),0===p))return 0;for(var k=0,a=-1,v=void 0,w=void 0,b=0;b<p;b++)l=kr[b],c=0===l||1===l?.5:1,pi(n,i,u,e,l)<s||(a<0&&(a=shi(t,r,f,o,of),of[1]<of[0]&&a>1&&(y=void 0,y=of[0],of[0]=of[1],of[1]=y),v=pi(t,r,f,o,of[0]),a>1&&(w=pi(t,r,f,o,of[1]))),k+=2===a?l<of[0]?v<t?c:-c:l<of[1]?w<v?c:-c:o<w?c:-c:l<of[0]?v<t?c:-c:o<v?c:-c);return k}function ieu(n,t,i,r,u,f,e,o){var l,c,s;if(o>t&&o>r&&o>f||o<t&&o<r&&o<f||(l=function(n,t,i,r,u){var o=n-2*t+i,e=2*(t-n),a=n-r,s=0,h,f,l,c;return rh(o)?ehi(e)&&(f=-a/e)>=0&&f<=1&&(u[s++]=f):(h=e*e-4*o*a,rh(h)?(f=-e/(2*o))>=0&&f<=1&&(u[s++]=f):h>0&&(l=ih(h),c=(-e-l)/(2*o),(f=(-e+l)/(2*o))>=0&&f<=1&&(u[s++]=f),c>=0&&c<=1&&(u[s++]=c))),s}(t,r,f,o,kr),0===l))return 0;if(c=chi(t,r,f),c>=0&&c<=1){for(var a=0,v=tr(t,r,f,c),h=0;h<l;h++)s=0===kr[h]||1===kr[h]?.5:1,tr(n,i,u,kr[h])<e||(a+=kr[h]<c?v<t?s:-s:f<v?s:-s);return a}return s=0===kr[0]||1===kr[0]?.5:1,tr(n,i,u,kr[0])<e?0:f<t?s:-s}function reu(n,t,i,r,u,f,e,o){var l,a,h,p,v,c,y,s;if((o-=t)>i||o<-i||(l=Math.sqrt(i*i-o*o),kr[0]=-l,kr[1]=l,a=Math.abs(r-u),a<.0001))return 0;if(a>=vl-.0001)return r=0,u=vl,h=f?1:-1,e>=kr[0]+n&&e<=kr[1]+n?h:0;for(r>u&&(p=r,r=u,u=p),r<0&&(r+=vl,u+=vl),v=0,c=0;c<2;c++)y=kr[c],y+n>e&&(s=Math.atan2(o,y),h=f?1:-1,s<0&&(s=vl+s),(s>=r&&s<=u||s+vl>=r&&s+vl<=u)&&(s>Math.PI/2&&s<1.5*Math.PI&&(h=-h),v+=h));return v}function sai(n,t,i,r,u){for(var d,g,tt,it,a,v,rt,ut,e=n.data,ft=n.len(),l=0,s=0,o=0,c=0,h=0,f=0;f<ft;){d=e[f++];g=1===f;switch(d===lh.M&&f>1&&(i||(l+=es(s,o,c,h,r,u))),g&&(c=s=e[f],h=o=e[f+1]),d){case lh.M:s=c=e[f++];o=h=e[f++];break;case lh.L:if(i){if(ch(s,o,e[f],e[f+1],t,r,u))return!0}else l+=es(s,o,e[f],e[f+1],r,u)||0;s=e[f++];o=e[f++];break;case lh.C:if(i){if(gfu(s,o,e[f++],e[f++],e[f++],e[f++],e[f],e[f+1],t,r,u))return!0}else l+=teu(s,o,e[f++],e[f++],e[f++],e[f++],e[f],e[f+1],r,u)||0;s=e[f++];o=e[f++];break;case lh.Q:if(i){if(oai(s,o,e[f++],e[f++],e[f],e[f+1],t,r,u))return!0}else l+=ieu(s,o,e[f++],e[f++],e[f],e[f+1],r,u)||0;s=e[f++];o=e[f++];break;case lh.A:var p=e[f++],b=e[f++],nt=e[f++],w=e[f++],y=e[f++],k=e[f++];if(f+=1,tt=!!(1-e[f++]),a=Math.cos(y)*nt+p,v=Math.sin(y)*w+b,g?(c=a,h=v):l+=es(s,o,a,v,r,u),it=(r-p)*w/nt+p,i){if(neu(p,b,w,y,y+k,tt,t,it,u))return!0}else l+=reu(p,b,w,y,y+k,tt,it,u);s=Math.cos(y+k)*nt+p;o=Math.sin(y+k)*w+b;break;case lh.R:if(c=s=e[f++],h=o=e[f++],a=c+e[f++],v=h+e[f++],i){if(ch(c,h,a,h,t,r,u)||ch(a,h,a,v,t,r,u)||ch(a,v,c,v,t,r,u)||ch(c,v,c,h,t,r,u))return!0}else l+=es(a,h,a,v,r,u),l+=es(c,v,c,h,r,u);break;case lh.Z:if(i){if(ch(s,o,c,h,t,r,u))return!0}else l+=es(s,o,c,h,r,u);s=c;o=h}}return i||(rt=o,ut=h,Math.abs(rt-ut)<.0001)||(l+=es(s,o,c,h,r,u)||0),0!==l}function hai(n,t,i){var r;if(t){var u=t.x1,e=t.x2,f=t.y1,o=t.y2;return n.x1=u,n.x2=e,n.y1=f,n.y2=o,r=i&&i.lineWidth,r?(yl(2*u)===yl(2*e)&&(n.x1=n.x2=pl(u,r,!0)),yl(2*f)===yl(2*o)&&(n.y1=n.y2=pl(f,r,!0)),n):n}}function cai(n,t,i){var r;if(t){var u=t.x,f=t.y,e=t.width,o=t.height;return n.x=u,n.y=f,n.width=e,n.height=o,r=i&&i.lineWidth,r?(n.x=pl(u,r,!0),n.y=pl(f,r,!0),n.width=Math.max(pl(u+e,r,!1)-n.x,0===e?0:1),n.height=Math.max(pl(f+o,r,!1)-n.y,0===o?0:1),n):n}}function pl(n,t,i){if(!t)return n;var r=yl(2*n);return(r+yl(t))%2==0?r/2:(r+(i?1:-1))/2}function vai(n){return"string"!=typeof n||-1===n.indexOf("px")&&-1===n.indexOf("rem")&&-1===n.indexOf("em")?isNaN(+n)?"12px":n+"px":n}function yai(n,t){for(var r,u,i=0;i<aai.length;i++)r=aai[i],u=t[r],null!=u&&(n[r]=u)}function pai(n){return null!=n.fontSize||n.fontFamily||n.fontWeight}function wai(n){var t,i;n&&(n.font=st.makeFont(n),t=n.align,"middle"===t&&(t="center"),n.align=null==t||leu[t]?t:"left",i=n.verticalAlign,"center"===i&&(i="middle"),n.verticalAlign=null==i||aeu[i]?i:"top",n.padding&&(n.padding=ktt(n.padding)))}function bai(n,t){return null==n||t<=0||"transparent"===n||"none"===n?null:n.image||n.colorStops?"#000":n}function kai(n){return null==n||"none"===n?null:n.image||n.colorStops?"#000":n}function dai(n,t,i){return"right"===t?n-i[1]:"center"===t?n+i[3]/2-i[1]/2:n+i[3]}function gai(n){var t=n.text;return null!=t&&(t+=""),t}function cyt(n){return!!(n.backgroundColor||n.lineHeight||n.borderWidth&&n.borderColor)}function oy(n){return null!=n&&"none"!==n}function rvi(n){var t,i;return o(n)?(t=vyt.get(n),t||(t=cit(n,-.1),vyt.put(n,t)),t):eb(n)?(i=r({},n),i.colorStops=f(n.colorStops,function(n){return{offset:n.offset,color:cit(n.color,-.1)}}),i):n}function brt(n,t,i){n.onHoverStateChange&&(n.hoverState||0)!==i&&n.onHoverStateChange(t);n.hoverState=i}function uvi(n){brt(n,"emphasis",2)}function fvi(n){2===n.hoverState&&brt(n,"normal",0)}function yyt(n){brt(n,"blur",1)}function evi(n){1===n.hoverState&&brt(n,"normal",0)}function yeu(n){n.selected=!0}function peu(n){n.selected=!1}function ovi(n,t,i){t(n,i)}function os(n,t,i){ovi(n,t,i);n.isGroup&&n.traverse(function(n){ovi(n,t,i)})}function krt(n,t){switch(t){case"emphasis":n.hoverState=2;break;case"normal":n.hoverState=0;break;case"blur":n.hoverState=1;break;case"select":n.selected=!0}}function pyt(n,t){var i=this.states[n];if(this.style){if("emphasis"===n)return function(n,t,i,u){var l=i&&tt(i,"select")>=0,e=!1,f,c;if(n instanceof ut){var o=ivi(n),s=l&&o.selectFill||o.normalFill,h=l&&o.selectStroke||o.normalStroke;(oy(s)||oy(h))&&(f=(u=u||{}).style||{},"inherit"===f.fill?(e=!0,u=r({},u),(f=r({},f)).fill=s):!oy(f.fill)&&oy(s)?(e=!0,u=r({},u),(f=r({},f)).fill=rvi(s)):!oy(f.stroke)&&oy(h)&&(e||(u=r({},u),f=r({},f)),f.stroke=rvi(h)),u.style=f)}return u&&null==u.z2&&(e||(u=r({},u)),c=n.z2EmphasisLift,u.z2=n.z2+(null!=c?c:veu)),u}(this,0,t,i);if("blur"===n)return function(n,t,i){var f=tt(n.currentStates,t)>=0,e=n.style.opacity,o=f?null:function(n,t,i,r){for(var e,s,f,h=n.style,o={},u=0;u<t.length;u++)e=t[u],s=h[e],o[e]=null==s?r&&r[e]:s;for(u=0;u<n.animators.length;u++)f=n.animators[u],f.__fromStateTransition&&f.__fromStateTransition.indexOf(i)<0&&"style"===f.targetName&&f.saveTo(o,t);return o}(n,["opacity"],t,{opacity:1}),u=(i=i||{}).style||{};return null==u.opacity&&(i=r({},i),u=r({opacity:f?e:.1*o.opacity},u),i.style=u),i}(this,n,i);if("select"===n)return function(n,t,i){if(i&&null==i.z2){i=r({},i);var u=n.z2SelectLift;i.z2=n.z2+(null!=u?u:9)}return i}(this,0,i)}return i}function bl(n){n.stateProxy=pyt;var t=n.getTextContent(),i=n.getTextGuideLine();t&&(t.stateProxy=pyt);i&&(i.stateProxy=pyt)}function svi(n,t){vvi(n,t)||n.__highByOuter||os(n,uvi)}function hvi(n,t){vvi(n,t)||n.__highByOuter||os(n,fvi)}function ss(n,t){n.__highByOuter|=1<<(t||0);os(n,uvi)}function hs(n,t){(n.__highByOuter&=~(1<<(t||0)))||os(n,fvi)}function cvi(n){os(n,yyt)}function wyt(n){os(n,evi)}function lvi(n){os(n,yeu)}function avi(n){os(n,peu)}function vvi(n,t){return n.__highDownSilentOnTouch&&t.zrByTouch}function yvi(n){var i=n.getModel(),r=[],u=[];i.eachComponent(function(t,i){var e=ayt(i),f="series"===t,o=f?n.getViewOfSeriesModel(i):n.getViewOfComponentModel(i);f||u.push(o);e.isBlured&&(o.group.traverse(function(n){evi(n)}),f&&r.push(i));e.isBlured=!1});t(u,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(r,!1,i)})}function byt(n,t,i,r){function s(n,t){for(var r,i=0;i<t.length;i++)r=n.getItemGraphicEl(t[i]),r&&wyt(r)}var f=r.getModel(),e,u,o;(i=i||"coordinateSystem",null!=n&&t&&"none"!==t)&&(e=f.getSeriesByIndex(n),u=e.coordinateSystem,u&&u.master&&(u=u.master),o=[],f.eachSeries(function(n){var c=e===n,f=n.coordinateSystem,l,h;if(f&&f.master&&(f=f.master),!("series"===i&&!c||"coordinateSystem"===i&&!(f&&u?f===u:c)||"series"===t&&c)){if(r.getViewOfSeriesModel(n).group.traverse(function(n){n.__highByOuter&&c&&"self"===t||yyt(n)}),ir(t))s(n.getData(),t);else if(v(t))for(l=et(t),h=0;h<l.length;h++)s(n.getData(l[h]),t[l[h]]);o.push(n);ayt(n).isBlured=!0}}),f.eachComponent(function(n,t){if("series"!==n){var i=r.getViewOfComponentModel(t);i&&i.toggleBlurSeries&&i.toggleBlurSeries(o,!0,f)}}))}function kyt(n,t,i){var r,u;null!=n&&null!=t&&(r=i.getModel().getComponent(n,t),r&&(ayt(r).isBlured=!0,u=i.getViewOfComponentModel(r),u&&u.focusBlurEnabled&&u.group.traverse(function(n){yyt(n)})))}function dyt(n,t,i,r){var o,u,s,f,e;if(null==n||"series"===n||null==t||null==i||(o=r.getModel().getComponent(n,t),!o)||(u=r.getViewOfComponentModel(o),!u||!u.findHighDownDispatchers))return{focusSelf:!1,dispatchers:null};for(f=u.findHighDownDispatchers(i),e=0;e<f.length;e++)if("self"===b(f[e]).focus){s=!0;break}return{focusSelf:s,dispatchers:f}}function pvi(n){t(n.getAllData(),function(t){var i=t.data,r=t.type;i.eachItemGraphicEl(function(t,i){n.isSelected(i,r)?lvi(t):avi(t)})})}function weu(n){var i=[];return n.eachSeries(function(n){t(n.getAllData(),function(t){var r,u,f;t.data;r=t.type;u=n.getSelectedDataIndices();u.length>0&&(f={dataIndex:u,seriesIndex:n.seriesIndex},null!=r&&(f.dataType=r),i.push(f))})}),i}function ah(n,t,i){kl(n,!0);os(n,bl);gyt(n,t,i)}function ui(n,t,i,r){r?function(n){kl(n,!1)}(n):ah(n,t,i)}function gyt(n,t,i){var r=b(n);null!=t?(r.focus=t,r.blurScope=i):r.focus&&(r.focus=null)}function rr(n,t,i,r){var u,f,e;for(i=i||"itemStyle",u=0;u<npt.length;u++)f=npt[u],e=t.getModel([f,i]),n.ensureState(f).style=r?r(e):e[wvi[i]]()}function kl(n,t){var r=!1===t,i=n;n.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=n.highDownSilentOnTouch);r&&!i.__highDownDispatcher||(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!r)}function dk(n){return!(!n||!n.__highDownDispatcher)}function tpt(n){var t=n.type;return t===bk||t===wrt||t===kk}function bvi(n){var t=n.type;return t===wl||t===prt}function dvi(n,t){var e;if(t){for(var l,o,s,u,i=n.data,v=n.len(),y=sy.M,p=sy.C,w=sy.L,b=sy.R,k=sy.A,d=sy.Q,r=0,f=0;r<v;){switch(l=i[r++],f=r,o=0,l){case y:case w:o=1;break;case p:o=3;break;case d:o=2;break;case k:var g=t[4],nt=t[5],h=kvi(t[0]*t[0]+t[1]*t[1]),c=kvi(t[2]*t[2]+t[3]*t[3]),a=keu(-t[1]/c,t[0]/h);i[r]*=h;i[r++]+=g;i[r]*=c;i[r++]+=nt;i[r++]*=h;i[r++]*=c;i[r++]+=a;i[r++]+=a;f=r+=2;break;case b:u[0]=i[r++];u[1]=i[r++];nr(u,u,t);i[f++]=u[0];i[f++]=u[1];u[0]+=i[r++];u[1]+=i[r++];nr(u,u,t);i[f++]=u[0];i[f++]=u[1]}for(s=0;s<o;s++)e=beu[s],e[0]=i[r++],e[1]=i[r++],nr(e,e,t),i[f++]=e[0],i[f++]=e[1]}n.increaseVersion()}}function gvi(n){return Math.sqrt(n[0]*n[0]+n[1]*n[1])}function rpt(n,t){return(n[0]*t[0]+n[1]*t[1])/(gvi(n)*gvi(t))}function nyi(n,t){return(n[0]*t[1]<n[1]*t[0]?-1:1)*Math.acos(rpt(n,t))}function tyi(n,t,i,r,u,f,e,o,s,h,c){var v=s*(gk/180),l=grt(v)*(n-i)/2+drt(v)*(t-r)/2,a=-1*drt(v)*(n-i)/2+grt(v)*(t-r)/2,b=l*l/(e*e)+a*a/(o*o),nt;b>1&&(e*=ipt(b),o*=ipt(b));var g=(u===f?-1:1)*ipt((e*e*o*o-e*e*a*a-o*o*l*l)/(e*e*a*a+o*o*l*l))||0,p=g*e*a/o,w=g*-o*l/e,tt=(n+i)/2+grt(v)*p-drt(v)*w,it=(t+r)/2+drt(v)*p+grt(v)*w,rt=nyi([1,0],[(l-p)/e,(a-w)/o]),k=[(l-p)/e,(a-w)/o],d=[(-1*l-p)/e,(-1*a-w)/o],y=nyi(k,d);(rpt(k,d)<=-1&&(y=gk),rpt(k,d)>=1&&(y=0),y<0)&&(nt=Math.round(y/gk*1e6)/1e6,y=2*gk+nt%2*gk);c.addData(h,tt,it,e,o,rt,y,v,f)}function ryi(n){return null!=n.setData}function uyi(n,t){var i=function(n){var e=new fe,w,i;if(!n)return e;var y,r=0,u=0,it=r,rt=u,o=fe.CMD,ut=n.match(deu);if(!ut)return e;for(w=0;w<ut.length;w++){for(var ft=ut[w],p=ft.charAt(0),f=void 0,t=ft.match(geu)||[],et=t.length,b=0;b<et;b++)t[b]=parseFloat(t[b]);for(i=0;i<et;){var s=void 0,h=void 0,k=void 0,d=void 0,g=void 0,nt=void 0,tt=void 0,a=r,v=u,c=void 0,l=void 0;switch(p){case"l":r+=t[i++];u+=t[i++];f=o.L;e.addData(f,r,u);break;case"L":r=t[i++];u=t[i++];f=o.L;e.addData(f,r,u);break;case"m":r+=t[i++];u+=t[i++];f=o.M;e.addData(f,r,u);it=r;rt=u;p="l";break;case"M":r=t[i++];u=t[i++];f=o.M;e.addData(f,r,u);it=r;rt=u;p="L";break;case"h":r+=t[i++];f=o.L;e.addData(f,r,u);break;case"H":r=t[i++];f=o.L;e.addData(f,r,u);break;case"v":u+=t[i++];f=o.L;e.addData(f,r,u);break;case"V":u=t[i++];f=o.L;e.addData(f,r,u);break;case"C":f=o.C;e.addData(f,t[i++],t[i++],t[i++],t[i++],t[i++],t[i++]);r=t[i-2];u=t[i-1];break;case"c":f=o.C;e.addData(f,t[i++]+r,t[i++]+u,t[i++]+r,t[i++]+u,t[i++]+r,t[i++]+u);r+=t[i-2];u+=t[i-1];break;case"S":s=r;h=u;c=e.len();l=e.data;y===o.C&&(s+=r-l[c-4],h+=u-l[c-3]);f=o.C;a=t[i++];v=t[i++];r=t[i++];u=t[i++];e.addData(f,s,h,a,v,r,u);break;case"s":s=r;h=u;c=e.len();l=e.data;y===o.C&&(s+=r-l[c-4],h+=u-l[c-3]);f=o.C;a=r+t[i++];v=u+t[i++];r+=t[i++];u+=t[i++];e.addData(f,s,h,a,v,r,u);break;case"Q":a=t[i++];v=t[i++];r=t[i++];u=t[i++];f=o.Q;e.addData(f,a,v,r,u);break;case"q":a=t[i++]+r;v=t[i++]+u;r+=t[i++];u+=t[i++];f=o.Q;e.addData(f,a,v,r,u);break;case"T":s=r;h=u;c=e.len();l=e.data;y===o.Q&&(s+=r-l[c-4],h+=u-l[c-3]);r=t[i++];u=t[i++];f=o.Q;e.addData(f,s,h,r,u);break;case"t":s=r;h=u;c=e.len();l=e.data;y===o.Q&&(s+=r-l[c-4],h+=u-l[c-3]);r+=t[i++];u+=t[i++];f=o.Q;e.addData(f,s,h,r,u);break;case"A":k=t[i++];d=t[i++];g=t[i++];nt=t[i++];tt=t[i++];tyi(a=r,v=u,r=t[i++],u=t[i++],nt,tt,k,d,g,f=o.A,e);break;case"a":k=t[i++];d=t[i++];g=t[i++];nt=t[i++];tt=t[i++];tyi(a=r,v=u,r+=t[i++],u+=t[i++],nt,tt,k,d,g,f=o.A,e)}}"z"!==p&&"Z"!==p||(f=o.Z,e.addData(f),r=it,u=rt);y=f}return e.toStatic(),e}(n),u=r({},t);return u.buildPath=function(n){if(ryi(n))n.setData(i.data),(t=n.getContext())&&n.rebuildPath(t,1);else{var t=n;i.rebuildPath(t,1)}},u.applyTransform=function(n){dvi(i,n);this.dirtyShape()},u}function fyi(n,t){return new iyi(uyi(n,t))}function upt(n,t){t=t||{};var i=new ut;return n.shape&&i.setShape(n.shape),i.setStyle(n.style),t.bakeTransform?dvi(i.path,n.getComputedTransform()):t.toLocal?i.setLocalTransform(n.getComputedTransform()):i.copyTransform(n),i.buildPath=n.buildPath,i.applyTransform=i.applyTransform,i.z=n.z,i.z2=n.z2,i.zlevel=n.zlevel,i}function nut(n,t,i,r,u,f,e){var p=n-i,w=t-r,it=(e?f:-f)/nd(p*p+w*w),b=it*w,k=-it*p,d=n+b,g=t+k,nt=i+b,tt=r+k,rt=(d+nt)/2,ut=(g+tt)/2,s=nt-d,o=tt-g,c=s*s+o*o,l=u-f,h=d*tt-nt*g,a=(o<0?-1:1)*nd(td(0,l*l*c-h*h)),v=(h*o-s*a)/c,y=(-h*s-o*a)/c,ft=(h*o+s*a)/c,et=(-h*s+o*a)/c,ot=v-rt,st=y-ut,ht=ft-rt,ct=et-ut;return ot*ot+st*st>ht*ht+ct*ct&&(v=ft,y=et),{cx:v,cy:y,x0:-b,y0:-k,x1:v*(u/l-1),y1:y*(u/l-1)}}function tou(n,t){var g,s=td(t.r,0),f=td(t.r0||0,0),dt=s>0,gt,c,l,yt,ut,a;if((dt||f>0)&&((dt||(s=f,f=0),f>s)&&(gt=s,s=f,f=gt),c=t.startAngle,l=t.endAngle,!isNaN(c)&&!isNaN(l))){var e=t.cx,o=t.cy,h=!!t.clockwise,b=hyi(l-c),ni=b>fpt&&b%fpt;if(ni>oe&&(b=ni),s>oe)if(b>fpt-oe)n.moveTo(e+s*cy(c),o+s*dl(c)),n.arc(e,o,s,c,l,!h),f>oe&&(n.moveTo(e+f*cy(l),o+f*dl(l)),n.arc(e,o,f,l,c,h));else{var ht=void 0,ct=void 0,lt=void 0,at=void 0,ti=void 0,ii=void 0,ri=void 0,ui=void 0,ft=void 0,et=void 0,p=void 0,w=void 0,nt=void 0,tt=void 0,ot=void 0,st=void 0,k=s*cy(c),d=s*dl(c),it=f*cy(l),rt=f*dl(l),vt=b>oe;if(vt&&(yt=t.cornerRadius,yt&&(g=function(n){var i,t;if(u(n)){if(t=n.length,!t)return n;i=1===t?[n[0],n[0],0,0]:2===t?[n[0],n[0],n[1],n[1]]:3===t?n.concat(n[2]):n}else i=[n,n,n,n];return i}(yt),ht=g[0],ct=g[1],lt=g[2],at=g[3]),ut=hyi(s-f)/2,(ti=oo(ut,lt),ii=oo(ut,at),ri=oo(ut,ht),ui=oo(ut,ct),p=ft=td(ti,ii),w=et=td(ri,ui),(ft>oe||et>oe)&&(nt=s*cy(l),tt=s*dl(l),ot=f*cy(c),st=f*dl(c),b<syi))&&(a=function(n,t,i,r,u,f,e,o){var h=i-n,c=r-t,l=e-u,a=o-f,s=a*h-l*c;if(!(s*s<oe))return[n+(s=(l*(t-f)-a*(n-u))/s)*h,t+s*c]}(k,d,ot,st,nt,tt,it,rt),a))){var pt=k-a[0],wt=d-a[1],bt=nt-a[0],kt=tt-a[1],fi=1/dl(nou((pt*bt+wt*kt)/(nd(pt*pt+wt*wt)*nd(bt*bt+kt*kt)))/2),ei=nd(a[0]*a[0]+a[1]*a[1]);p=oo(ft,(s-ei)/(fi+1));w=oo(et,(f-ei)/(fi-1))}if(vt)if(p>oe){var v=oo(lt,p),y=oo(at,p),i=nut(ot,st,k,d,s,v,h),r=nut(nt,tt,it,rt,s,y,h);n.moveTo(e+i.cx+i.x0,o+i.cy+i.y0);p<ft&&v===y?n.arc(e+i.cx,o+i.cy,p,cr(i.y0,i.x0),cr(r.y0,r.x0),!h):(v>0&&n.arc(e+i.cx,o+i.cy,v,cr(i.y0,i.x0),cr(i.y1,i.x1),!h),n.arc(e,o,s,cr(i.cy+i.y1,i.cx+i.x1),cr(r.cy+r.y1,r.cx+r.x1),!h),y>0&&n.arc(e+r.cx,o+r.cy,y,cr(r.y1,r.x1),cr(r.y0,r.x0),!h))}else n.moveTo(e+k,o+d),n.arc(e,o,s,c,l,!h);else n.moveTo(e+k,o+d);f>oe&&vt?w>oe?(v=oo(ht,w),i=nut(it,rt,nt,tt,f,-(y=oo(ct,w)),h),r=nut(k,d,ot,st,f,-v,h),n.lineTo(e+i.cx+i.x0,o+i.cy+i.y0),w<et&&v===y?n.arc(e+i.cx,o+i.cy,w,cr(i.y0,i.x0),cr(r.y0,r.x0),!h):(y>0&&n.arc(e+i.cx,o+i.cy,y,cr(i.y0,i.x0),cr(i.y1,i.x1),!h),n.arc(e,o,f,cr(i.cy+i.y1,i.cx+i.x1),cr(r.cy+r.y1,r.cx+r.x1),h),v>0&&n.arc(e+r.cx,o+r.cy,v,cr(r.y1,r.x1),cr(r.y0,r.x0),!h))):(n.lineTo(e+it,o+rt),n.arc(e,o,f,l,c,h)):n.lineTo(e+it,o+rt)}else n.moveTo(e,o);n.closePath()}}function ayi(n,t,i){var o=t.smooth,r=t.points,e,f,u,l;if(r&&r.length>=2){if(o)for(e=function(n,t,i,r){var v,y,f,e,s=[],l=[],k=[],d=[],u,o,a,h,c;if(r){for(f=[1/0,1/0],e=[-1/0,-1/0],u=0,o=n.length;u<o;u++)ts(f,f,n[u]),is(e,e,n[u]);ts(f,f,r[0]);is(e,e,r[1])}for(u=0,o=n.length;u<o;u++){if(a=n[u],i)v=n[u?u-1:o-1],y=n[(u+1)%o];else{if(0===u||u===o-1){s.push(be(n[u]));continue}v=n[u-1];y=n[u+1]}nh(l,y,v);lb(l,l,t);var p=gtt(a,v),w=gtt(a,y),b=p+w;0!==b&&(p/=b,w/=b);lb(k,l,-p);lb(d,l,w);h=tlt([],a,k);c=tlt([],a,d);r&&(is(h,h,f),ts(h,h,e),is(c,c,f),ts(c,c,e));s.push(h);s.push(c)}return i&&s.push(s.shift()),s}(r,o,i,t.smoothConstraint),n.moveTo(r[0][0],r[0][1]),f=r.length,u=0;u<(i?f:f-1);u++){var s=e[2*u],h=e[2*u+1],c=r[(u+1)%f];n.bezierCurveTo(s[0],s[1],h[0],h[1],c[0],c[1])}else for(n.moveTo(r[0][0],r[0][1]),u=1,l=r.length;u<l;u++)n.lineTo(r[u][0],r[u][1]);i&&n.closePath()}}function wyi(n,t,i){var r=n.cpx2,u=n.cpy2;return null!=r||null!=u?[(i?ohi:pi)(n.x1,n.cpx1,n.cpx2,n.x2,t),(i?ohi:pi)(n.y1,n.cpy1,n.cpy2,n.y2,t)]:[(i?wlt:tr)(n.x1,n.cpx1,n.x2,t),(i?wlt:tr)(n.y1,n.cpy1,n.y2,t)]}function vy(n,t,i,r,u){var f,c,s;if(t&&t.ecModel&&(c=t.ecModel.getUpdatePayload(),f=c&&c.animation),s="update"===n,t&&t.isAnimationEnabled()){var e=void 0,h=void 0,o=void 0;return r?(e=d(r.duration,200),h=d(r.easing,"cubicOut"),o=0):(e=t.getShallow(s?"animationDurationUpdate":"animationDuration"),h=t.getShallow(s?"animationEasingUpdate":"animationEasing"),o=t.getShallow(s?"animationDelayUpdate":"animationDelay")),f&&(null!=f.duration&&(e=f.duration),null!=f.easing&&(h=f.easing),null!=f.delay&&(o=f.delay)),l(o)&&(o=o(i,u)),l(e)&&(e=e(i)),{duration:e||0,delay:o,easing:h}}return null}function opt(n,t,i,r,u,f,e){var a,h=!1,s,o,c;l(u)?(e=f,f=u,u=null):v(u)&&(f=u.cb,e=u.during,h=u.isFrom,a=u.removeOpt,u=u.dataIndex);s="leave"===n;s||t.stopAnimation("leave");o=vy(n,r,u,s?a||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,u):null);o&&o.duration>0?(c={duration:o.duration,delay:o.delay||0,easing:o.easing,done:f,force:!!f||!!e,setToFinal:!s,scope:n,during:e},h?t.animateFrom(i,c):t.animateTo(i,c)):(t.stopAnimation(),!h&&t.attr(i),e&&e(1),f&&f())}function lt(n,t,i,r,u,f){opt("update",n,t,i,r,u,f)}function ii(n,t,i,r,u,f){opt("enter",n,t,i,r,u,f)}function yy(n){if(!n.__zr)return!0;for(var t=0;t<n.animators.length;t++)if("leave"===n.animators[t].scope)return!0;return!1}function vh(n,t,i,r,u,f){yy(n)||opt("leave",n,t,i,r,u,f)}function npi(n,t,i,r){n.removeTextContent();n.removeTextGuideLine();vh(n,{style:{opacity:0}},t,i,r)}function id(n,t,i){function r(){n.parent&&n.parent.remove(n)}n.isGroup?n.traverse(function(n){n.isGroup||npi(n,t,i,r)}):npi(n,t,i,r)}function se(n){gyi(n).oldStyle=n.style}function tpi(n){return ut.extend(n)}function rpi(n,t){return ipi(n,t)}function sf(n,t){spt[n]=t}function out(n){if(spt.hasOwnProperty(n))return spt[n]}function rd(n,t,i,r){var u=fyi(n,t);return i&&("center"===r&&(i=upi(i,u.getBoundingRect())),cpt(u,i)),u}function hpt(n,t,i){var r=new wi({style:{image:n,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(n){if("center"===i){var u={width:n.width,height:n.height};r.setStyle(upi(t,u))}}});return r}function upi(n,t){var r,u=t.width/t.height,i=n.height*u;return r=i<=n.width?n.height:(i=n.width)/u,{x:n.x+n.width/2-i/2,y:n.y+n.height/2-r/2,width:i,height:r}}function cpt(n,t){if(n.applyTransform){var i=n.getBoundingRect().calculateTransform(t);n.applyTransform(i)}}function py(n,t){return hai(n,n,{lineWidth:t}),n}function yh(n,t){for(var i=vb([]);n&&n!==t;)ge(i,n.getLocalTransform(),i),n=n.parent;return i}function he(n,t,i){return t&&!ir(t)&&(t=us.getLocalTransform(t)),i&&(t=wc([],t)),nr([],n,t)}function sut(n,t,i){var u=0===t[4]||0===t[5]||0===t[0]?1:Math.abs(2*t[4]/t[0]),f=0===t[4]||0===t[5]||0===t[2]?1:Math.abs(2*t[4]/t[2]),r=["left"===n?-u:"right"===n?u:0,"top"===n?-f:"bottom"===n?f:0];return r=he(r,t,i),Math.abs(r[0])>Math.abs(r[1])?r[0]>0?"right":"left":r[1]>0?"bottom":"top"}function fpi(n){return!n.isGroup}function fd(n,t,i){function f(n){var t={x:n.x,y:n.y,rotation:n.rotation};return function(n){return null!=n.shape}(n)&&(t.shape=r({},n.shape)),t}if(n&&t){var u,e=(u={},n.traverse(function(n){fpi(n)&&n.anid&&(u[n.anid]=n)}),u);t.traverse(function(n){var t,r;fpi(n)&&n.anid&&(t=e[n.anid],t&&(r=f(n),n.attr(f(t)),lt(n,r,i,b(n).dataIndex)))})}}function lpt(n,t){return f(n,function(n){var i=n[0],r;return i=fut(i,t.x),i=eut(i,t.x+t.width),r=n[1],r=fut(r,t.y),[i,r=eut(r,t.y+t.height)]})}function epi(n,t){var i=fut(n.x,t.x),u=eut(n.x+n.width,t.x+t.width),r=fut(n.y,t.y),f=eut(n.y+n.height,t.y+t.height);if(u>=i&&f>=r)return{x:i,y:r,width:u-i,height:f-r}}function wy(n,t,i){var u=r({rectHover:!0},t),f=u.style={strokeNoScale:!0};if(i=i||{x:-1,y:-1,width:2,height:2},n)return 0===n.indexOf("image://")?(f.image=n.slice(8),a(f,i),new wi(u)):rd(n.replace("path://",""),u,i,"center")}function ed(n,t,i,r,u){for(var o,f=0,e=u[u.length-1];f<u.length;f++){if(o=u[f],opi(n,t,i,r,o[0],o[1],e[0],e[1]))return!0;e=o}}function opi(n,t,i,r,u,f,e,o){var c,l=i-n,a=r-t,v=e-u,y=o-f,s=apt(v,y,l,a),h;if((c=s)<=1e-6&&c>=-1e-6)return!1;var p=n-u,w=t-f,b=apt(p,w,l,a)/s;return b<0||b>1?!1:(h=apt(p,w,v,y)/s,!(h<0||h>1))}function apt(n,t,i,r){return n*r-i*t}function by(n){var f=n.itemTooltipOption,c=n.componentModel,e=n.itemName,v=o(f)?{formatter:f}:f,s=c.mainType,l=c.componentIndex,i={componentType:s,name:e,$vars:["name"]},r,u;i[s+"Index"]=l;r=n.formatterParamsExtra;r&&t(et(r),function(n){h(i,n)||(i[n]=r[n],i.$vars.push(n))});u=b(n.el);u.componentMainType=s;u.componentIndex=l;u.tooltipConfig={name:e,option:a({content:e,formatterParams:i},v)}}function spi(n,t){var i;n.isGroup&&(i=t(n));i||n.traverse(t)}function ph(n,t){if(n)if(u(n))for(var i=0;i<n.length;i++)spi(n[i],t);else spi(n,t)}function hpi(n,t){for(var f,i=0;i<dr.length;i++){var u=dr[i],e=t[u],r=n.ensureState(u);r.style=r.style||{};r.style.text=e}f=n.currentStates.slice();n.clearStates(!0);n.setStyle({text:t.normal});n.useStates(f,!0)}function vpt(n,t,i){var r,u=n.labelFetcher,o=n.labelDataIndex,c=n.labelDimIndex,a=t.normal,s,f,e,h;for(u&&(r=u.getFormattedLabel(o,"normal",null,c,a&&a.get("formatter"),null!=i?{interpolatedValue:i}:null)),null==r&&(r=l(n.defaultText)?n.defaultText(o,n,i):n.defaultText),s={normal:r},f=0;f<dr.length;f++)e=dr[f],h=t[e],s[e]=d(u?u.getFormattedLabel(o,e,null,c,h&&h.get("formatter")):null,r);return s}function or(n,t,i,r){var u,o,s,l,v;i=i||od;for(var e=n instanceof st,y=!1,f=0;f<wk.length;f++)if((o=t[wk[f]])&&o.getShallow("show")){y=!0;break}if(u=e?n:n.getTextContent(),y){e||(u||(u=new st,n.setTextContent(u)),n.stateProxy&&(u.stateProxy=n.stateProxy));var p=vpt(i,t),h=t.normal,a=!!h.getShallow("show"),c=gt(h,r&&r.normal,i,!1,!e);for(c.text=p.normal,e||n.setTextConfig(hut(h,i,!1)),f=0;f<dr.length;f++)s=dr[f],(o=t[s])&&(l=u.ensureState(s),v=!!d(o.getShallow("show"),a),(v!==a&&(l.ignore=!v),l.style=gt(o,r&&r[s],i,!0,!e),l.style.text=p[s],e)||(n.ensureState(s).textConfig=hut(o,i,!0)));u.silent=!!h.getShallow("silent");null!=u.style.x&&(c.x=u.style.x);null!=u.style.y&&(c.y=u.style.y);u.ignore=!a;u.useStyle(c);u.dirty();i.enableTextSetter&&(ra(u).setLabelText=function(n){var r=vpt(i,t,n);hpi(u,r)})}else u&&(u.ignore=!0);n.dirty()}function bi(n,t){var r,i,u;for(t=t||"label",r={normal:n.getModel(t)},i=0;i<dr.length;i++)u=dr[i],r[u]=n.getModel([u,t]);return r}function gt(n,t,i,u,f){var e={};return function(n,t,i,r,u){var e,a,s,h;i=i||od;var f,c=t.ecModel,l=c&&c.option.textStyle,o=function(n){for(var t,r,u,i;n&&n!==n.ecModel;){if(r=(n.option||od).rich,r)for(t=t||{},u=et(r),i=0;i<u.length;i++)t[u[i]]=1;n=n.parentModel}return t}(t);if(o)for(e in f={},o)o.hasOwnProperty(e)&&(a=t.getModel(["rich",e]),vpi(f[e]={},a,l,i,r,u,!1,!0));f&&(n.rich=f);s=t.get("overflow");s&&(n.overflow=s);h=t.get("minMargin");null!=h&&(n.margin=h);vpi(n,t,l,i,r,u,!0,!1)}(e,n,i,u,f),t&&r(e,t),e}function hut(n,t,i){t=t||{};var u,r={},f=n.getShallow("rotate"),e=d(n.getShallow("distance"),i?null:5),o=n.getShallow("offset");return"outside"===(u=n.getShallow("position")||(i?null:"inside"))&&(u=t.defaultOutsidePosition||"top"),null!=u&&(r.position=u),null!=o&&(r.offset=o),null!=f&&(f*=Math.PI/180,r.rotation=f),null!=e&&(r.distance=e),r.outsideFill="inherit"===n.get("color")?t.inheritColor||null:"auto",r}function vpi(n,t,i,r,u,f,e,o){var p,w,b,s,h,k,v,g;i=!u&&i||od;var a=r&&r.inheritColor,c=t.getShallow("color"),l=t.getShallow("textBorderColor"),y=d(t.getShallow("opacity"),i.opacity);for("inherit"!==c&&"auto"!==c||(c=a||null),"inherit"!==l&&"auto"!==l||(l=a||null),f||(c=c||i.color,l=l||i.textBorderColor),null!=c&&(n.fill=c),null!=l&&(n.stroke=l),p=d(t.getShallow("textBorderWidth"),i.textBorderWidth),null!=p&&(n.lineWidth=p),w=d(t.getShallow("textBorderType"),i.textBorderType),null!=w&&(n.lineDash=w),b=d(t.getShallow("textBorderDashOffset"),i.textBorderDashOffset),null!=b&&(n.lineDashOffset=b),u||null!=y||o||(y=r&&r.defaultOpacity),null!=y&&(n.opacity=y),u||f||null==n.fill&&r.inheritColor&&(n.fill=r.inheritColor),s=0;s<cpi.length;s++)h=cpi[s],null!=(v=d(t.getShallow(h),i[h]))&&(n[h]=v);for(s=0;s<lpi.length;s++)h=lpi[s],null!=(v=t.getShallow(h))&&(n[h]=v);if(null==n.verticalAlign&&(k=t.getShallow("baseline"),null!=k&&(n.verticalAlign=k)),!e||!r.disableBox){for(s=0;s<api.length;s++)h=api[s],null!=(v=t.getShallow(h))&&(n[h]=v);g=t.getShallow("borderType");null!=g&&(n.borderDash=g);"auto"!==n.backgroundColor&&"inherit"!==n.backgroundColor||!a||(n.backgroundColor=a);"auto"!==n.borderColor&&"inherit"!==n.borderColor||!a||(n.borderColor=a)}}function ypi(n,t){var i=t&&t.getModel("textStyle");return gu([n.fontStyle||i&&i.getShallow("fontStyle")||"",n.fontWeight||i&&i.getShallow("fontWeight")||"",(n.fontSize||i&&i.getShallow("fontSize")||12)+"px",n.fontFamily||i&&i.getShallow("fontFamily")||"sans-serif"].join(" "))}function ppi(n,t,i,r){var u,f;n&&(u=ra(n),u.prevValue=u.value,u.value=i,f=t.normal,u.valueAnimation=f.get("valueAnimation"),u.valueAnimation&&(u.precision=f.get("precision"),u.defaultInterpolatedText=r,u.statesModels=t))}function wpi(n,t,i,r,u){var f=ra(n);if(f.valueAnimation&&f.prevValue!==f.value){var e=f.defaultInterpolatedText,o=d(f.interpolatedValue,f.prevValue),s=f.value;n.percent=0;(null==f.prevValue?ii:lt)(n,{percent:1},r,t,null,function(r){var h=pli(i,f.precision,o,s,r),c;f.interpolatedValue=1===r?null:h;c=vpt({labelDataIndex:t,labelFetcher:u,defaultText:e?e(h):h+""},f.statesModels,h);hpi(n,c)})}}function dy(n){return[n||"",dpi++].join("_")}function wh(n,t){return k(k({},n,!0),t,!0)}function gpt(n,t){n=n.toUpperCase();dpt[n]=new at(t);aut[n]=t}function nwt(n){return dpt[n]}function nu(n,t){return"0000".substr(0,t-(n+="").length)+n}function gy(n){switch(n){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return n}}function lou(n){return n===gy(n)}function cd(n,t,i,r){var u=au(n),h=u[iwt(i)](),f=u[np(i)]()+1,p=Math.floor((f-1)/3)+1,c=u[yut(i)](),o=u["get"+(i?"UTC":"")+"Day"](),s=u[ld(i)](),l=(s-1)%12+1,a=u[put(i)](),v=u[wut(i)](),y=u[but(i)](),e=(r instanceof at?r:nwt(r||gpi)||dpt[lut]).getModel("time"),w=e.get("month"),b=e.get("monthAbbr"),k=e.get("dayOfWeek"),d=e.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,h+"").replace(/{yy}/g,nu(h%100+"",2)).replace(/{Q}/g,p+"").replace(/{MMMM}/g,w[f-1]).replace(/{MMM}/g,b[f-1]).replace(/{MM}/g,nu(f,2)).replace(/{M}/g,f+"").replace(/{dd}/g,nu(c,2)).replace(/{d}/g,c+"").replace(/{eeee}/g,k[o]).replace(/{ee}/g,d[o]).replace(/{e}/g,o+"").replace(/{HH}/g,nu(s,2)).replace(/{H}/g,s+"").replace(/{hh}/g,nu(l+"",2)).replace(/{h}/g,l+"").replace(/{mm}/g,nu(a,2)).replace(/{m}/g,a+"").replace(/{ss}/g,nu(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,nu(y,3)).replace(/{S}/g,y+"")}function ewi(n,t){var i=au(n),s=i[np(t)]()+1,h=i[yut(t)](),c=i[ld(t)](),l=i[put(t)](),a=i[wut(t)](),r=0===i[but(t)](),u=r&&0===a,f=u&&0===l,e=f&&0===c,o=e&&1===h;return o&&1===s?"year":o?"month":e?"day":f?"hour":u?"minute":r?"second":"millisecond"}function owi(n,t,i){var r=ht(n)?au(n):n;switch(t=t||ewi(n,i)){case"year":return r[iwt(i)]();case"half-year":return r[np(i)]()>=6?1:0;case"quarter":return Math.floor((r[np(i)]()+1)/4);case"month":return r[np(i)]();case"day":return r[yut(i)]();case"half-day":return r[ld(i)]()/24;case"hour":return r[ld(i)]();case"minute":return r[put(i)]();case"second":return r[wut(i)]();case"millisecond":return r[but(i)]()}}function iwt(n){return n?"getUTCFullYear":"getFullYear"}function np(n){return n?"getUTCMonth":"getMonth"}function yut(n){return n?"getUTCDate":"getDate"}function ld(n){return n?"getUTCHours":"getHours"}function put(n){return n?"getUTCMinutes":"getMinutes"}function wut(n){return n?"getUTCSeconds":"getSeconds"}function but(n){return n?"getUTCMilliseconds":"getMilliseconds"}function aou(n){return n?"setUTCFullYear":"setFullYear"}function swi(n){return n?"setUTCMonth":"setMonth"}function hwi(n){return n?"setUTCDate":"setDate"}function cwi(n){return n?"setUTCHours":"setHours"}function lwi(n){return n?"setUTCMinutes":"setMinutes"}function awi(n){return n?"setUTCSeconds":"setSeconds"}function vwi(n){return n?"setUTCMilliseconds":"setMilliseconds"}function rwt(n){if(!fvt(n))return o(n)?n:"-";var t=(n+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function uwt(n,t){return n=(n||"").toLowerCase().replace(/-(.)/g,function(n,t){return t.toUpperCase()}),t&&n&&(n=n.charAt(0).toUpperCase()+n.slice(1)),n}function fwt(n,t,i){function f(n){return n&&gu(n)?n:"-"}function e(n){return!(null==n||isNaN(n)||!isFinite(n))}var o="time"===t,s=n instanceof Date,r,u;if(o||s){if(r=o?au(n):n,!isNaN(+r))return cd(r,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",i);if(s)return"-"}return"ordinal"===t?wtt(n)?f(n):ht(n)&&e(n)?n+"":"-":(u=io(n),e(u)?rwt(u):wtt(n)?f(n):"boolean"==typeof n?n+"":"-")}function owt(n,t,i){var s,e,o,h,r,f,c;if(u(t)||(t=[t]),s=t.length,!s)return"";for(e=t[0].$vars||[],o=0;o<e.length;o++)h=ewt[o],n=n.replace(kut(h),kut(h,0));for(r=0;r<s;r++)for(f=0;f<e.length;f++)c=t[r][e[f]],n=n.replace(kut(ewt[f],r),i?wr(c):c);return n}function ywi(n,t){var i=o(n)?{color:n,extraCssText:t}:n||{},r=i.color,f=i.type,u;return t=i.extraCssText,u=i.renderMode||"html",r?"html"===u?"subItem"===f?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+wr(r)+";"+(t||"")+'"><\/span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+wr(r)+";"+(t||"")+'"><\/span>':{renderMode:u,content:"{"+(i.markerId||"markerX")+"|}  ",style:"subItem"===f?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:""}function ua(n,t){return t=t||"transparent",o(n)?n:v(n)&&n.colorStops&&(n.colorStops[0]||{}).color||t}function dut(n,t){if("_blank"===t||"blank"===t){var i=window.open();i.opener=null;i.location.href=n}else window.open(n,t)}function swt(n,t,i,r,u){var e=0,o=0,f;null==r&&(r=1/0);null==u&&(u=1/0);f=0;t.eachChild(function(s,h){var a,v,c=s.getBoundingRect(),w=t.childAt(h+1),l=w&&w.getBoundingRect(),y,p;"horizontal"===n?(y=c.width+(l?-l.x+c.x:0),(a=e+y)>r||s.newline?(e=0,a=y,o+=f+i,f=c.height):f=Math.max(f,c.height)):(p=c.height+(l?-l.y+c.y:0),(v=o+p)>u||s.newline?(e+=f+i,o=0,v=p,f=c.width):f=Math.max(f,c.width));s.newline||(s.x=e,s.y=o,s.markRedraw(),"horizontal"===n?e=a+i:o=v+i)})}function ci(n,t,i){var p;i=bh(i||0);var f=t.width,o=t.height,s=e(n.left,f),h=e(n.top,o),v=e(n.right,f),y=e(n.bottom,o),r=e(n.width,f),u=e(n.height,o),c=i[2]+i[0],l=i[1]+i[3],a=n.aspect;switch(isNaN(r)&&(r=f-v-l-s),isNaN(u)&&(u=o-y-c-h),null!=a&&(isNaN(r)&&isNaN(u)&&(a>f/o?r=.8*f:u=.8*o),isNaN(r)&&(r=a*u),isNaN(u)&&(u=r/a)),isNaN(s)&&(s=f-v-r-l),isNaN(h)&&(h=o-y-u-c),n.left||n.right){case"center":s=f/2-r/2-i[3];break;case"right":s=f-r-l}switch(n.top||n.bottom){case"middle":case"center":h=o/2-u/2-i[0];break;case"bottom":h=o-u-c}return s=s||0,h=h||0,isNaN(r)&&(r=f-l-s-(v||0)),isNaN(u)&&(u=o-c-h-(y||0)),p=new nt(s+i[3],h+i[0],r,u),p.margin=i,p}function nft(n,t,i,r,u,f){var e,o=!u||!u.hv||u.hv[0],s=!u||!u.hv||u.hv[1],h=u&&u.boundingMode||"all",c;if((f=f||n).x=n.x,f.y=n.y,!o&&!s)return!1;"raw"===h?e="group"===n.type?new nt(0,0,+t.width||0,+t.height||0):n.getBoundingRect():(e=n.getBoundingRect(),n.needLocalTransform())&&(c=n.getLocalTransform(),(e=e.clone()).applyTransform(c));var l=ci(a({width:e.width,height:e.height},t),i,r),v=o?l.x-e.x:0,y=s?l.y-e.y:0;return"raw"===h?(f.x=v,f.y=y):(f.x+=v,f.y+=y),f===n&&n.markRedraw(),!0}function ad(n){var t=n.layoutMode||n.constructor.layoutMode;return v(t)?t:t?{type:t}:null}function dh(n,t,i){function h(i,u){var s={},l=0,o={},a=0,c,h;if(gut(i,function(t){o[t]=n[t]}),gut(i,function(n){e(t,n)&&(s[n]=o[n]=t[n]);f(s,n)&&l++;f(o,n)&&a++}),r[u])return f(t,i[1])?o[i[2]]=null:f(t,i[2])&&(o[i[1]]=null),o;if(2!==a&&l){if(l>=2)return s;for(c=0;c<i.length;c++)if(h=i[c],!e(s,h)&&e(n,h)){s[h]=n[h];break}return s}return o}function e(n,t){return n.hasOwnProperty(t)}function f(n,t){return null!=n[t]&&"auto"!==n[t]}function c(n,t,i){gut(n,function(n){t[n]=i[n]})}var r=i&&i.ignoreSize,o,s;u(r)||(r=[r,r]);o=h(fa[0],0);s=h(fa[1],1);c(fa[0],n,o);c(fa[1],n,s)}function tp(n){return wwi({},n)}function wwi(n,t){return t&&n&&gut(pwi,function(i){t.hasOwnProperty(i)&&(n[i]=t[i])}),n}function tbi(n,i,r){function f(n,t,i){for(var r=0;r<i;r++)n.push(t+r)}function p(n){var t=n.dimsDef;return t?t.length:1}var u={},c=lwt(i),e;if(!c||!n)return u;var o,l,h=[],s=[],w=i.ecModel,a=nbi(w).datasetMap,y=c.uid+"_"+r.seriesLayoutBy;return t(n=n.slice(),function(t,i){var r=v(t)?t:n[i]={name:t};"ordinal"===r.type&&null==o&&(o=i,l=p(r));u[r.name]=[]}),e=a.get(y)||a.set(y,{categoryWayDim:l,valueWayDim:0}),t(n,function(n,t){var c=n.name,i=p(n),r;null==o?(r=e.valueWayDim,f(u[c],r,i),f(s,r,i),e.valueWayDim+=i):o===t?(f(u[c],0,i),f(h,0,i)):(r=e.categoryWayDim,f(u[c],r,i),f(s,r,i),e.categoryWayDim+=i)}),h.length&&(u.itemName=h),s.length&&(u.seriesName=s),u}function cwt(n,i,r){var u={},f,e,s,o,h;return lwt(n)?(e=i.sourceFormat,s=i.dimensionsDefine,e!==cf&&e!==so||t(s,function(n,t){"name"===(v(n)?n.name:n)&&(f=t)}),o=function(){function l(n){return null!=n.v&&null!=n.n}for(var o,h,n={},u={},c=[],t=0,a=Math.min(5,r);t<a;t++){if(o=rbi(i.data,e,i.seriesLayoutBy,s,i.startIndex,t),c.push(o),h=o===ce,h&&null==n.v&&t!==f&&(n.v=t),(null==n.n||n.n===n.v||!h&&c[n.n]===ce)&&(n.n=t),l(n)&&c[n.n]!==ce)return n;h||(o===gwi&&null==u.v&&t!==f&&(u.v=t),null!=u.n&&u.n!==u.v||(u.n=t))}return l(n)?n:l(u)?u:null}(),o&&(u.value=[o.v],h=null!=f?f:o.n,u.itemName=[h],u.seriesName=[h]),u):u}function lwt(n){if(!n.get("data",!0))return yk(n.ecModel,"dataset",{index:n.get("datasetIndex",!0),id:n.get("datasetId",!0)},oi).models[0]}function ibi(n,t){return rbi(n.data,n.sourceFormat,n.seriesLayoutBy,n.dimensionsDefine,n.startIndex,t)}function rbi(n,t,i,r,f,e){function y(n){var t=o(n);return null!=n&&isFinite(n)&&""!==n?t?gwi:ce:t&&"-"!==n?tft:void 0}var h,l,w,a,p,c,s,b,k,d,g,nt;if(uu(n))return ce;if(r&&(a=r[e],v(a)?(l=a.name,w=a.type):o(a)&&(l=a)),null!=w)return"ordinal"===w?tft:ce;if(t===lr){if(p=n,i===rp){for(c=p[e],s=0;s<(c||[]).length&&s<5;s++)if(null!=(h=y(c[f+s])))return h}else for(s=0;s<p.length&&s<5;s++)if(b=p[f+s],b&&null!=(h=y(b[e])))return h}else if(t===cf){if(k=n,!l)return ce;for(s=0;s<k.length&&s<5;s++)if((g=k[s])&&null!=(h=y(g[l])))return h}else if(t===so){if(!l||!(c=n[l])||uu(c))return ce;for(s=0;s<c.length&&s<5;s++)if(null!=(h=y(c[s])))return h}else if(t===hf)for(d=n,s=0;s<d.length&&s<5;s++){if(nt=uy(g=d[s]),!u(nt))return ce;if(null!=(h=y(nt[e])))return h}return ce}function ywt(n,t,i,r){var u=kt(n.get(["aria","decal","decals"]));return ebi(n,you,u,null,t,i,r)}function ebi(n,t,i,r,u,f,e){var s=t(f=f||n),l=s.paletteIdx||0,h=s.paletteNameMap=s.paletteNameMap||{},o,c;return h.hasOwnProperty(u)?h[u]:(o=null!=e&&r?function(n,t){for(var r=n.length,i=0;i<r;i++)if(n[i].length>t)return n[i];return n[r-1]}(r,e):i,(o=o||i)&&o.length?(c=o[l],u&&(h[u]=c),s.paletteIdx=(l+1)%o.length,c):void 0)}function obi(n,i,r){var f,e;return u(i)?(f=c(),t(i,function(n){null!=n&&null!=ai(n,null)&&f.set(n,!0)}),yt(r,function(t){return t&&f.get(t[n])})):(e=ai(i,null),yt(r,function(t){return t&&null!=e&&t[n]===e}))}function sbi(n,t){return t.hasOwnProperty("subType")?yt(n,function(n){return n&&n.subType===t.subType}):n}function hbi(n){var i=c();return n&&t(kt(n.replaceMerge),function(n){i.set(n,!0)}),{replaceMergeMainTypeMap:i}}function kou(n,i,r){var f={width:i,height:r,aspectratio:i/r},u=!0;return t(n,function(n,t){var i=t.match(wou),r,e;i&&i[1]&&i[2]&&(r=i[1],e=i[2].toLowerCase(),function(n,t,i){return"min"===i?n>=t:"max"===i?n<=t:n===t}(f[e],n,r)||(u=!1))}),u}function bwt(n){var f=n&&n.itemStyle,u,e;if(f)for(u=0,e=lbi.length;u<e;u++){var t=lbi[u],i=f.normal,r=f.emphasis;i&&i[t]&&(n[t]=n[t]||{},n[t].normal?k(n[t].normal,i[t]):n[t].normal=i[t],i[t]=null);r&&r[t]&&(n[t]=n[t]||{},n[t].emphasis?k(n[t].emphasis,r[t]):n[t].emphasis=r[t],r[t]=null)}}function ar(n,t,i){if(n&&n[t]&&(n[t].normal||n[t].emphasis)){var u=n[t].normal,r=n[t].emphasis;u&&(i?(n[t].normal=n[t].emphasis=null,a(n[t],u)):n[t]=u);r&&(n.emphasis=n.emphasis||{},n.emphasis[t]=r,r.focus&&(n.emphasis.focus=r.focus),r.blurScope&&(n.emphasis.blurScope=r.blurScope))}}function pd(n){ar(n,"itemStyle");ar(n,"lineStyle");ar(n,"areaStyle");ar(n,"label");ar(n,"labelLine");ar(n,"upperLabel");ar(n,"edgeLabel")}function li(n,t){var u=yd(n)&&n[t],f=yd(u)&&u.textStyle,i,e,r;if(f)for(i=0,e=svt.length;i<e;i++)r=svt[i],f.hasOwnProperty(r)&&(u[r]=f[r])}function lf(n){n&&(pd(n),li(n,"label"),n.emphasis&&li(n.emphasis,"label"))}function cs(n){return u(n)?n:n?[n]:[]}function abi(n){return(u(n)?n[0]:n)||{}}function dou(n,i){le(cs(n.series),function(n){yd(n)&&function(n){var r,f,h,e,s,i,c,o;if(yd(n)){if(bwt(n),pd(n),li(n,"label"),li(n,"upperLabel"),li(n,"edgeLabel"),n.emphasis&&(li(n.emphasis,"label"),li(n.emphasis,"upperLabel"),li(n.emphasis,"edgeLabel")),r=n.markPoint,r&&(bwt(r),lf(r)),f=n.markLine,f&&(bwt(f),lf(f)),h=n.markArea,h&&lf(h),e=n.data,"graph"===n.type){if(e=e||n.nodes,s=n.links||n.edges,s&&!uu(s))for(i=0;i<s.length;i++)lf(s[i]);t(n.categories,function(n){pd(n)})}if(e&&!uu(e))for(i=0;i<e.length;i++)lf(e[i]);if((r=n.markPoint)&&r.data)for(c=r.data,i=0;i<c.length;i++)lf(c[i]);if((f=n.markLine)&&f.data)for(o=f.data,i=0;i<o.length;i++)u(o[i])?(lf(o[i][0]),lf(o[i][1])):lf(o[i]);"gauge"===n.type?(li(n,"axisLabel"),li(n,"title"),li(n,"detail")):"treemap"===n.type?(ar(n.breadcrumb,"itemStyle"),t(n.levels,function(n){pd(n)})):"tree"===n.type&&pd(n.leaves)}}(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];i&&r.push("valueAxis","categoryAxis","logAxis","timeAxis");le(r,function(t){le(cs(n[t]),function(n){n&&(li(n,"axisLabel"),li(n.axisPointer,"label"))})});le(cs(n.parallel),function(n){var t=n&&n.parallelAxisDefault;li(t,"axisLabel");li(t&&t.axisPointer,"label")});le(cs(n.calendar),function(n){ar(n,"itemStyle");li(n,"dayLabel");li(n,"monthLabel");li(n,"yearLabel")});le(cs(n.radar),function(n){li(n,"name");n.name&&null==n.axisName&&(n.axisName=n.name,delete n.name);null!=n.nameGap&&null==n.axisNameGap&&(n.axisNameGap=n.nameGap,delete n.nameGap)});le(cs(n.geo),function(n){yd(n)&&(lf(n),le(cs(n.regions),function(n){lf(n)}))});le(cs(n.timeline),function(n){lf(n);ar(n,"label");ar(n,"itemStyle");ar(n,"controlStyle",!0);var i=n.data;u(i)&&t(i,function(n){v(n)&&(ar(n,"label"),ar(n,"itemStyle"))})});le(cs(n.toolbox),function(n){ar(n,"iconStyle");le(n.feature,function(n){ar(n,"iconStyle")})});li(abi(n.axisPointer),"label");li(abi(n.tooltip).axisPointer,"label")}function vbi(n){n&&t(gou,function(t){t[0]in n&&!(t[1]in n)&&(n[t[1]]=n[t[0]])})}function wd(n){var i=n&&n.itemStyle,t,r,u;if(i)for(t=0;t<kwt.length;t++)r=kwt[t][1],u=kwt[t][0],null!=i[r]&&(i[u]=i[r])}function ybi(n){n&&"edge"===n.alignTo&&null!=n.margin&&null==n.edgeDistance&&(n.edgeDistance=n.margin)}function pbi(n){n&&n.downplay&&!n.blur&&(n.blur=n.downplay)}function wbi(n,t){if(n)for(var i=0;i<n.length;i++)t(n[i]),n[i]&&wbi(n[i].children,t)}function bbi(n,i){dou(n,i);n.series=kt(n.series);t(n.series,function(n){var r,t,u,i,f;if(v(n)){if(r=n.type,"line"===r)null!=n.clipOverflow&&(n.clip=n.clipOverflow);else if("pie"===r||"gauge"===r){if(null!=n.clockWise&&(n.clockwise=n.clockWise),ybi(n.label),(i=n.data)&&!uu(i))for(t=0;t<i.length;t++)ybi(i[t]);null!=n.hoverOffset&&(n.emphasis=n.emphasis||{},(n.emphasis.scaleSize=null)&&(n.emphasis.scaleSize=n.hoverOffset))}else if("gauge"===r)u=function(n,t){for(var u=t.split(","),i=n,r=0;r<u.length&&null!=(i=i&&i[u[r]]);r++);return i}(n,"pointer.color"),null!=u&&function(n,t,i,r){for(var o,e=t.split(","),u=n,f=0;f<e.length-1;f++)null==u[o=e[f]]&&(u[o]={}),u=u[o];(r||null==u[e[f]])&&(u[e[f]]=i)}(n,"itemStyle.color",u);else if("bar"===r){if(wd(n),wd(n.backgroundStyle),wd(n.emphasis),(i=n.data)&&!uu(i))for(t=0;t<i.length;t++)"object"==typeof i[t]&&(wd(i[t]),wd(i[t]&&i[t].emphasis))}else"sunburst"===r?(f=n.highlightPolicy,f&&(n.emphasis=n.emphasis||{},n.emphasis.focus||(n.emphasis.focus=f)),pbi(n),wbi(n.data,pbi)):"graph"===r||"sankey"===r?function(n){n&&null!=n.focusNodeAdjacency&&(n.emphasis=n.emphasis||{},null==n.emphasis.focus&&(n.emphasis.focus="adjacency"))}(n):"map"===r&&(n.mapType&&!n.map&&(n.map=n.mapType),n.mapLocation&&a(n,n.mapLocation));null!=n.hoverAnimation&&(n.emphasis=n.emphasis||{},n.emphasis&&null==n.emphasis.scale&&(n.emphasis.scale=n.hoverAnimation));vbi(n)}});n.dataRange&&(n.visualMap=n.dataRange);t(nsu,function(i){var r=n[i];r&&(u(r)||(r=[r]),t(r,function(n){vbi(n)}))})}function tsu(n){t(n,function(t,i){var f=[],o=[NaN,NaN],s=[t.stackResultDimension,t.stackedOverDimension],u=t.data,e=t.isStackedByIndex,r=t.seriesModel.get("stackStrategy")||"samesign";u.modify(s,function(s,h,c){var b,y,a=u.get(t.stackedDimension,c),w,p,v,l;if(isNaN(a))return o;for(e?y=u.getRawIndex(c):b=u.get(t.stackedByDimension,c),w=NaN,p=i-1;p>=0;p--)if(v=n[p],(e||(y=v.data.rawIndexOf(v.stackedByDimension,b)),y>=0)&&(l=v.data.getByRawIndex(v.stackResultDimension,y),"all"===r||"positive"===r&&l>0||"negative"===r&&l<0||"samesign"===r&&a>=0&&l>0||"samesign"===r&&a<=0&&l<0)){a=ffu(a,l);w=l;break}return f[0]=a,f[1]=w,f})})}function dwt(n){return n instanceof bd}function gwt(n,i,r){r=r||gbi(n);var e=i.seriesLayoutBy,f=function(n,i,r,f,e){var c,s,h,l;return n?(i===lr?(h=n,"auto"===f||null==f?tki(function(n){null!=n&&"-"!==n&&(o(n)?null==s&&(s=1):s=0)},r,h,10):s=ht(f)?f:f?1:0,e||1!==s||(e=[],tki(function(n,t){e[t]=null!=n?n+"":""},r,h,1/0)),c=e?e.length:r===rp?h.length:h[0]?h[0].length:null):i===cf?e||(e=function(n){for(var t,i=0;i<n.length&&!(t=n[i++]););if(t)return et(t)}(n)):i===so?e||(e=[],t(n,function(n,t){e.push(t)})):i===hf&&(l=uy(n[0]),c=u(l)&&l.length||1),{startIndex:s,dimensionsDefine:nki(e),dimensionsDetectedCount:c}):{dimensionsDefine:nki(e),startIndex:s,dimensionsDetectedCount:c}}(n,r,e,i.sourceHeader,i.dimensions);return new bd({data:n,sourceFormat:r,seriesLayoutBy:e,dimensionsDefine:f.dimensionsDefine,startIndex:f.startIndex,dimensionsDetectedCount:f.dimensionsDetectedCount,metaRawOption:y(i)})}function nbt(n){return new bd({data:n,sourceFormat:uu(n)?gh:hf})}function gbi(n){var t=dwi,i,e,r,f;if(uu(n))t=gh;else if(u(n)){for(0===n.length&&(t=lr),i=0,e=n.length;i<e;i++)if(r=n[i],null!=r){if(u(r)){t=lr;break}if(v(r)){t=cf;break}}}else if(v(n))for(f in n)if(h(n,f)&&ir(n[f])){t=so;break}return t}function nki(n){if(n){var t=c();return f(n,function(n){var i={name:(n=v(n)?n:{name:n}).name,displayName:n.displayName,type:n.type},r;return null==i.name?i:(i.name+="",null==i.displayName&&(i.displayName=i.name),r=t.get(i.name),r?i.name+="-"+r.count++:t.set(i.name,{count:1}),i)})}}function tki(n,t,i,r){var u,f;if(t===rp)for(u=0;u<i.length&&u<r;u++)n(i[u]?i[u][0]:null,u);else for(f=i[0]||[],u=0;u<f.length&&u<r;u++)n(f[u],u)}function iki(n){var t=n.sourceFormat;return t===cf||t===so}function fki(n,t){return isu[ibt(n,t)]}function oki(n,t){return eki[ibt(n,t)]}function hki(n){return ski[n]}function ibt(n,t){return n===lr?n+"_"+t:n}function sp(n,t,i){var r,u,f,e,s,o;if(n&&(r=n.getRawDataItem(t),null!=r))return(u=n.getStore(),f=u.getSource().sourceFormat,null!=i)?(e=n.getDimensionIndex(i),s=u.getDimensionProperty(e),hki(f)(r,e,s)):(o=r,f===hf&&(o=uy(r)),o)}function lki(n){var t,i;return v(n)?n.type&&(i=n):t=n,{text:t,frag:i}}function kd(n){return new aki(n)}function nc(n,t){var i=t&&t.type;return"ordinal"===i?n:("time"!==i||ht(n)||null==n||"-"===n||(n=+au(n)),null==n||""===n?NaN:+n)}function yki(n){return vki.get(n)}function fsu(n,t){return"eq"===n||"ne"===n?new usu("eq"===n,t):h(pki,n)?new rsu(n,t):null}function esu(n){var i=n.sourceFormat,t;return fbt(i)||(t="",vt(t)),n.data}function osu(n){var f=n.sourceFormat,u=n.data,o;if(fbt(f)||(o="",vt(o)),f===lr){for(var i=[],t=0,e=u.length;t<e;t++)i.push(u[t].slice());return i}if(f===cf){for(i=[],t=0,e=u.length;t<e;t++)i.push(r({},u[t]));return i}}function ssu(n,t,i){if(null!=i)return ht(i)||!isNaN(i)&&!h(t,i)?n[i]:h(t,i)?t[i]:void 0}function hsu(n){return y(n)}function csu(n,i){var u="",o,r,e,c;return i.length||vt(u),v(n)||vt(u),o=n.type,r=ubt.get(o),r||vt(u),e=f(i,function(n){return function(n,i){var r=new bki,e=n.data,o=r.sourceFormat=n.sourceFormat,c=n.startIndex,f,a,y,p,w;n.seriesLayoutBy!==ho&&vt("");var u=[],l={},v=n.dimensionsDefine;if(v)t(v,function(n,t){var i=n.name,r={index:t,name:i,displayName:n.displayName},f;(u.push(r),null!=i)&&(f="",h(l,i)&&vt(f),l[i]=r)});else for(f=0;f<n.dimensionsDetectedCount;f++)u.push({index:f});return a=fki(o,ho),i.__isBuiltIn&&(r.getRawDataItem=function(n){return a(e,c,u,n)},r.getRawData=s(esu,null,n)),r.cloneRawData=s(osu,null,n),y=oki(o,ho),r.count=s(y,null,e,c,u),p=hki(o),r.retrieveValue=function(n,t){var i=a(e,c,u,n);return w(i,t)},w=r.retrieveValueFromItem=function(n,t){if(null!=n){var i=u[t];return i?p(n,t,i.name):void 0}},r.getDimensionInfo=s(ssu,null,u,l),r.cloneAllDimensionInfo=s(hsu,null,u),r}(n,r)}),c=kt(r.transform({upstream:e[0],upstreamList:e,config:y(n.config)})),f(c,function(n,t){var f,e="",r,u;return v(n)||vt(e),n.data||vt(e),fbt(gbi(n.data))||vt(e),r=i[0],r&&0===t&&!n.dimensions?(u=r.startIndex,u&&(n.data=r.data.slice(0,u).concat(n.data)),f={seriesLayoutBy:ho,sourceHeader:u,dimensions:r.metaRawOption.dimensions}):f={seriesLayoutBy:ho,sourceHeader:0,dimensions:n.dimensions},gwt(n.data,f,null)})}function fbt(n){return n===lr||n===cf}function dd(n){return n>65535?lsu:asu}function ndi(n,t,i,r,u){var h=gki[i||"float"],e,o,s,f;if(u){if(e=n[t],o=e&&e.length,o!==r){for(s=new h(r),f=0;f<o;f++)s[f]=e[f];n[t]=s}}else n[t]=new h(r)}function tdi(n){n.option.transform&&ob(n.option.transform)}function sft(n){return"series"===n.mainType}function idi(n){throw new Error(n);}function rdi(n,t){var i=n.color||"#6e7079",r=n.fontSize||12,u=n.fontWeight||"400",f=n.color||"#464646",e=n.fontSize||14,o=n.fontWeight||"900";return"html"===t?{nameStyle:"font-size:"+wr(r+"")+"px;color:"+wr(i)+";font-weight:"+wr(u+""),valueStyle:"font-size:"+wr(e+"")+"px;color:"+wr(f)+";font-weight:"+wr(o+"")}:{nameStyle:{fontSize:r,fill:i,fontWeight:u},valueStyle:{fontSize:e,fill:f,fontWeight:o}}}function ki(n,t){return t.type=n,t}function hbt(n){return"section"===n.type}function edi(n){return hbt(n)?vsu:ysu}function odi(n){if(hbt(n)){var i=0,r=n.blocks.length,u=r>1||r>0&&!n.noHeader;return t(n.blocks,function(n){var t=odi(n);t>=i&&(i=t+ +(u&&(!t||hbt(n)&&!n.noHeader)))}),i}return 0}function vsu(n,i,f,e){var a,b=i.noHeader,c=(a=odi(i),{html:udi[a],richText:fdi[a]}),v=[],o=i.blocks||[],s,y,k,l,p,w;return(sr(!o||u(o)),o=o||[],s=n.orderMode,i.sortBlocks&&s&&(o=o.slice(),y={valueAsc:"asc",valueDesc:"desc"},h(y,s)?(k=new wki(y[s],null),o.sort(function(n,t){return k.evaluate(n.sortParam,t.sortParam)})):"seriesDesc"===s&&o.reverse()),t(o,function(t,u){var f=i.valueFormatter,o=edi(t)(f?r(r({},n),{valueFormatter:f}):n,t,u>0?c.html:0,e);null!=o&&v.push(o)}),l="richText"===n.renderMode?v.join(c.richText):cbt(v.join(""),b?f:c.html),b)?l:(p=fwt(i.header,"ordinal",n.useUTC),w=rdi(e,n.renderMode).nameStyle,"richText"===n.renderMode?hdi(n,p,w)+c.richText+l:cbt('<div style="'+w+";"+sbt+';">'+wr(p)+"<\/div>"+l,f))}function ysu(n,t,i,r){var h=n.renderMode,e=t.noName,s=t.noValue,o=!t.markerType,g=t.name,l=n.useUTC,nt=t.valueFormatter||n.valueFormatter||function(n){return f(n=u(n)?n:[n],function(n,t){return fwt(n,u(c)?c[t]:c,l)})};if(!e||!s){var a=o?"":n.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",h),v=e?"":fwt(g,"ordinal",l),c=t.valueType,y=s?[]:nt(t.value),p=!o||!e,w=!o&&e,b=rdi(r,h),k=b.nameStyle,d=b.valueStyle;return"richText"===h?(o?"":a)+(e?"":hdi(n,v,k))+(s?"":function(n,t,i,r,f){var e=[f],o=r?10:20;return i&&e.push({padding:[0,0,0,o],align:"right"}),n.markupStyleCreator.wrapRichTextStyle(u(t)?t.join("  "):t,e)}(n,y,p,w,d)):cbt((o?"":a)+(e?"":function(n,t,i){return'<span style="'+i+";"+(t?"margin-left:2px":"")+'">'+wr(n)+"<\/span>"}(v,!o,k))+(s?"":function(n,t,i,r){var e=i?"10px":"20px",o=t?"float:right;margin-left:"+e:"";return n=u(n)?n:[n],'<span style="'+o+";"+r+'">'+f(n,function(n){return wr(n)}).join("&nbsp;&nbsp;")+"<\/span>"}(y,p,w,d)),i)}}function sdi(n,t,i,r,u,f){if(n)return edi(n)({useUTC:u,renderMode:i,orderMode:r,markupStyleCreator:t,valueFormatter:n.valueFormatter},n,0,f)}function cbt(n,t){return'<div style="'+("margin: "+t+"px 0 0")+";"+sbt+';">'+n+'<div style="clear:both"><\/div><\/div>'}function hdi(n,t,i){return n.markupStyleCreator.wrapRichTextStyle(t,i)}function cdi(n,t){return ua(n.getData().getItemVisual(t,"style")[n.visualDrawType])}function ldi(n,t){var i=n.get("padding");return null!=i?i:"richText"===t?[8,10]:10}function adi(n){var e,l,v,o,i=n.series,r=n.dataIndex,y=n.multipleSeries,s=i.getData(),h=s.mapDimensionsAll("defaultedTooltip"),a=h.length,c=i.getRawValue(r),p=u(c),w=cdi(i,r),f,b;a>1||p&&!a?(f=function(n,i,r,u,f){function c(n,t){var i=e.getDimensionInfo(t);i&&!1!==i.otherDims.tooltip&&(l?h.push(ki("nameValue",{markerType:"subItem",markerColor:f,name:i.displayName,value:n,valueType:i.type})):(o.push(n),s.push(i.type)))}var e=i.getData(),l=du(n,function(n,t,i){var r=e.getDimensionInfo(i);return n||r&&!1!==r.tooltip&&null!=r.displayName},!1),o=[],s=[],h=[];return u.length?t(u,function(n){c(sp(e,r,n),n)}):t(n,c),{inlineValues:o,inlineValueTypes:s,blocks:h}}(c,i,r,h,w),e=f.inlineValues,l=f.inlineValueTypes,v=f.blocks,o=f.inlineValues[0]):a?(b=s.getDimensionInfo(h[0]),o=e=sp(s,r,h[0]),l=b.type):o=e=p?c[0]:c;var k=hvt(i),d=k&&i.name||"",nt=s.getName(r),g=y?d:nt;return ki("section",{header:d,noHeader:y||!k,sortParam:o,blocks:[ki("nameValue",{markerType:"item",markerColor:w,name:g,noName:!gu(g),value:e,valueType:l})].concat(v||[])})}function cft(n,t){return n.getName(t)||n.getId(t)}function vdi(n){var i=n.name;hvt(n)||(n.name=function(n){var i=n.getRawData(),u=i.mapDimensionsAll("seriesName"),r=[];return t(u,function(n){var t=i.getDimensionInfo(n);t.displayName&&r.push(t.displayName)}),r.join(" ")}(n)||i)}function psu(n){return n.model.getRawData().count()}function wsu(n){var t=n.model;return t.setData(t.getRawData().cloneShallow()),bsu}function bsu(n,t){t.outputData&&n.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function ydi(n,i){t(sb(n.CHANGABLE_METHODS,n.DOWNSAMPLE_METHODS),function(t){n.wrapMethod(t,w(ksu,i))})}function ksu(n,t){var i=lbt(n);return i&&i.setOutputEnd((t||this).count()),t}function lbt(n){var r=(n.ecModel||{}).scheduler,u=r&&r.getPipeline(n.uid),t,i;if(u)return t=u.currentTask,t&&(i=t.agentStubMap,i&&(t=i.get(n.uid))),t}function hp(){var n=ct();return function(t){var i=n(t),r=t.pipelineContext,u=!!i.large,f=!!i.progressiveRender,e=i.large=!(!r||!r.large),o=i.progressiveRender=!(!r||!r.progressiveRender);return!(u===e&&f===o)&&"reset"}}function wdi(n,t,i){n&&dk(n)&&("emphasis"===t?ss:hs)(n,i)}function bdi(n,i,r){var u=fl(n,i),f=i&&null!=i.highlightKey?function(n){var t=tvi[n];return null==t&&nvi<=32&&(t=tvi[n]=nvi++),t}(i.highlightKey):null;null!=u?t(kt(u),function(t){wdi(n.getItemGraphicEl(t),r,f)}):n.eachItemGraphicEl(function(n){wdi(n,r,f)})}function gsu(n){return dsu(n.model)}function nhu(n){var u=n.model,e=n.ecModel,o=n.api,t=n.payload,s=u.pipelineContext.progressiveRender,f=n.view,i=t&&pdi(t).updateMethod,r=s?"incrementalPrepareRender":i&&f[i]?i:"render";return"render"!==r&&f[r](u,e,o,t),thu[r]}function aft(n,t,i){function s(){a=(new Date).getTime();r=null;n.apply(h,c||[])}var e,o,h,c,u,l=0,a=0,r=null,f;return t=t||0,f=function(){for(var v,y,f=[],n=0;n<arguments.length;n++)f[n]=arguments[n];e=(new Date).getTime();h=this;c=f;v=u||t;y=u||i;u=null;o=e-(y?l:a)-v;clearTimeout(r);y?r=setTimeout(s,v):o>=0?s():r=setTimeout(s,-o);l=e},f.clear=function(){r&&(clearTimeout(r),r=null)},f.debounceNextCall=function(n){u=n},f}function cp(n,t,i,r){var u=n[t],f,e;if(u){if(f=u[lft]||u,e=u[ddi],u[kdi]!==i||e!==r){if(null==i||!r)return n[t]=f;(u=n[t]=aft(f,i,"debounce"===r))[lft]=f;u[ddi]=r;u[kdi]=i}return u}}function ng(n,t){var i=n[t];i&&i[lft]&&(i.clear&&i.clear(),n[t]=i[lft])}function tgi(n,t){var i=n.visualStyleMapper||ngi[t];return i||(console.warn("Unknown style type '"+t+"'."),ngi.itemStyle)}function igi(n,t){var i=n.visualDrawType||ihu[t];return i||(console.warn("Unknown style type '"+t+"'."),"fill")}function ehu(n){n.overallReset(n.ecModel,n.api,n.payload)}function ohu(n){return n.overallProgress&&shu}function shu(){this.agent.dirty();this.getDownstream().dirty()}function hhu(){this.agent&&this.agent.dirty()}function chu(n){return n.plan?n.plan(n.model,n.ecModel,n.api,n.payload):null}function lhu(n){n.useClearVisual&&n.data.clearAllVisual();var t=n.resetDefines=kt(n.reset(n.model,n.ecModel,n.api,n.payload));return t.length>1?f(t,function(n,t){return fgi(t)}):ugi}function fgi(n){return function(t,i){var f=i.data,r=i.resetDefines[n],u;if(r&&r.dataEach)for(u=t.start;u<t.end;u++)r.dataEach(f,u);else r&&r.progress&&r.progress(t,f)}}function ahu(n){return n.data.count()}function vhu(n){yft=null;try{n(lp,abt)}catch(n){}return yft}function egi(n,t){for(var i in t.prototype)n[i]=ei}function ybt(n,t,i){switch(i){case"color":return n.getItemVisual(t,"style")[n.getVisual("drawType")];case"opacity":return n.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return n.getItemVisual(t,i)}}function ig(n,t){switch(t){case"color":return n.getVisual("style")[n.getVisual("drawType")];case"opacity":return n.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return n.getVisual(t)}}function agi(n,t,i,r){switch(i){case"color":n.ensureUniqueItemVisual(t,"style")[n.getVisual("drawType")]=r;n.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":n.ensureUniqueItemVisual(t,"style").opacity=r;break;case"symbol":case"symbolSize":case"liftZ":n.setItemVisual(t,i,r)}}function vgi(n,i){function u(t,i){var r=[];return t.eachComponent({mainType:"series",subType:n,query:i},function(n){r.push(n.seriesIndex)}),r}t([[n+"ToggleSelect","toggleSelect"],[n+"Select","select"],[n+"UnSelect","unselect"]],function(n){i(n[0],function(t,i,f){t=r({},t);f.dispatchAction(r(t,{type:n[1],seriesIndex:u(i,t)}))})})}function ap(n,t,i,f,e){var s=n+t;i.isSilent(s)||f.eachComponent({mainType:"series",subType:"pie"},function(n){for(var t,f,a=n.seriesIndex,h=n.option.selectedMap,l=e.selected,c=0;c<l.length;c++)l[c].seriesIndex===a&&(t=n.getData(),f=fl(t,e.fromActionPayload),i.trigger(s,{type:s,seriesId:n.id,name:u(f)?t.getName(f[0]):t.getName(f),selected:o(h)?h:r({},h)}))})}function ea(n,t,i){for(var r;n&&(!t(n)||(r=n,!i));)n=n.__hostTarget||n.parent;return r}function fcu(n,t){if("image"!==this.type){var i=this.style;this.__isEmptyBrush?(i.stroke=n,i.fill=t||"#fff",i.lineWidth=2):"line"===this.shape.symbolType?i.stroke=n:i.fill=n;this.markRedraw()}}function si(n,t,i,r,u,f,e){var o,s=0===n.indexOf("empty");return s&&(n=n.substr(5,1).toLowerCase()+n.substr(6)),(o=0===n.indexOf("image://")?hpt(n.slice(8),new nt(t,i,r,u),e?"center":"cover"):0===n.indexOf("path://")?rd(n.slice(7),{},new nt(t,i,r,u),e?"center":"cover"):new ygi({shape:{symbolType:n,x:t,y:i,width:r,height:u}})).__isEmptyBrush=s,o.setColor=fcu,f&&o.setColor(f),o}function vp(n){return u(n)||(n=[+n,+n]),[n[0]||0,n[1]||0]}function oa(n,t){if(null!=n)return u(n)||(n=[n,n]),[e(n[0],t[0])||0,e(d(n[1],n[0]),t[1])||0]}function sa(n){return isFinite(n)}function pbt(n,t,i){for(var f="radial"===t.type?function(n,t,i){var e=i.width,o=i.height,s=Math.min(e,o),r=null==t.x?.5:t.x,u=null==t.y?.5:t.y,f=null==t.r?.5:t.r;return t.global||(r=r*e+i.x,u=u*o+i.y,f*=s),r=sa(r)?r:.5,u=sa(u)?u:.5,f=f>=0&&sa(f)?f:.5,n.createRadialGradient(r,u,0,r,u,f)}(n,t,i):function(n,t,i){var r=null==t.x?0:t.x,u=null==t.x2?1:t.x2,f=null==t.y?0:t.y,e=null==t.y2?0:t.y2;return t.global||(r=r*i.width+i.x,u=u*i.width+i.x,f=f*i.height+i.y,e=e*i.height+i.y),r=sa(r)?r:0,u=sa(u)?u:1,f=sa(f)?f:0,e=sa(e)?e:0,n.createLinearGradient(r,f,u,e)}(n,t,i),u=t.colorStops,r=0;r<u.length;r++)f.addColorStop(u[r].offset,u[r].color);return f}function bft(n){return parseInt(n,10)}function yp(n,t,i){var r=["width","height"][t],f=["clientWidth","clientHeight"][t],e=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t],u;return null!=i[r]&&"auto"!==i[r]?parseFloat(i[r]):(u=document.defaultView.getComputedStyle(n),(n[f]||bft(u[r])||bft(n.style[r]))-(bft(u[e])||0)-(bft(u[o])||0)|0)}function wbt(n){var t,r,i=n.style,o=i.lineDash&&i.lineWidth>0&&(t=i.lineDash,r=i.lineWidth,t&&"solid"!==t&&r>0?"dashed"===t?[4*r,2*r]:"dotted"===t?[r]:ht(t)?[t]:u(t)?t:null:null),s=i.lineDashOffset,e;return o&&(e=i.strokeNoScale&&n.getLineScale?n.getLineScale():1,e&&1!==e&&(o=f(o,function(n){return n/e}),s/=e)),[o,s]}function kft(n){var t=n.stroke;return!(null==t||"none"===t||!(n.lineWidth>0))}function wgi(n){return"string"==typeof n&&"none"!==n}function dft(n){var t=n.fill;return null!=t&&"none"!==t}function bgi(n,t){if(null!=t.fillOpacity&&1!==t.fillOpacity){var i=n.globalAlpha;n.globalAlpha=t.fillOpacity*t.opacity;n.fill();n.globalAlpha=i}else n.fill()}function kgi(n,t){if(null!=t.strokeOpacity&&1!==t.strokeOpacity){var i=n.globalAlpha;n.globalAlpha=t.strokeOpacity*t.opacity;n.stroke();n.globalAlpha=i}else n.stroke()}function bbt(n,t,i){var f=pvt(t.image,t.__image,i),r,u;if(ort(f))return r=n.createPattern(f,t.repeat||"repeat"),"function"==typeof DOMMatrix&&r&&r.setTransform&&(u=new DOMMatrix,u.translateSelf(t.x||0,t.y||0),u.rotateSelf(0,0,(t.rotation||0)*wv),u.scaleSelf(t.scaleX||1,t.scaleY||1),r.setTransform(u)),r}function dgi(n,t,i,r,u){var f=!1,s,o,e;if(!r&&t===(i=i||{}))return!1;for((r||t.opacity!==i.opacity)&&(su(n,u),f=!0,s=Math.max(Math.min(t.opacity,1),0),n.globalAlpha=isNaN(s)?ol.opacity:s),(r||t.blend!==i.blend)&&(f||(su(n,u),f=!0),n.globalCompositeOperation=t.blend||ol.blend),o=0;o<kbt.length;o++)e=kbt[o],(r||t[e]!==i[e])&&(f||(su(n,u),f=!0),n[e]=n.dpr*(t[e]||0));return(r||t.shadowColor!==i.shadowColor)&&(f||(su(n,u),f=!0),n.shadowColor=t.shadowColor||ol.shadowColor),f}function ggi(n,t,i,r,u){var f=rg(t,u.inHover),o=r?null:i&&rg(i,u.inHover)||{},e,c,h,l,s;if(f===o)return!1;for(e=dgi(n,f,o,r,u),((r||f.fill!==o.fill)&&(e||(su(n,u),e=!0),wgi(f.fill)&&(n.fillStyle=f.fill)),(r||f.stroke!==o.stroke)&&(e||(su(n,u),e=!0),wgi(f.stroke)&&(n.strokeStyle=f.stroke)),(r||f.opacity!==o.opacity)&&(e||(su(n,u),e=!0),n.globalAlpha=null==f.opacity?1:f.opacity),t.hasStroke())&&(c=f.lineWidth/(f.strokeNoScale&&t.getLineScale?t.getLineScale():1),n.lineWidth!==c&&(e||(su(n,u),e=!0),n.lineWidth=c)),h=0;h<dbt.length;h++)l=dbt[h],s=l[0],(r||f[s]!==o[s])&&(e||(su(n,u),e=!0),n[s]=f[s]||l[1]);return e}function nni(n,t){var r=t.transform,i=n.dpr||1;r?n.setTransform(i*r[0],i*r[1],i*r[2],i*r[3],i*r[4],i*r[5]):n.setTransform(i,0,0,i,0,0)}function su(n,t){t.batchFill&&n.fill();t.batchStroke&&n.stroke();t.batchFill="";t.batchStroke=""}function rg(n,t){return t&&n.__hoverStyle||n.style}function gbt(n,t){ha(n,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function ha(n,t,i,r){var v=t.transform,o,f,e,s,h;if(!t.shouldBePainted(i.viewWidth,i.viewHeight,!1,!1))return t.__dirty&=-2,void(t.__isRendered=!1);var c=t.__clipPaths,l=i.prevElClipPaths,a=!1,u=!1;(l&&!function(n,t){if(n===t||!n&&!t)return!1;if(!n||!t||n.length!==t.length)return!0;for(var i=0;i<n.length;i++)if(n[i]!==t[i])return!0;return!1}(c,l)||(l&&l.length&&(su(n,i),n.restore(),u=a=!0,i.prevElClipPaths=null,i.allClipped=!1,i.prevEl=null),c&&c.length&&(su(n,i),n.save(),function(n,t,i){for(var r,u=!1,f=0;f<n.length;f++)r=n[f],u=u||r.isZeroArea(),nni(t,r),t.beginPath(),r.buildPath(t,r.shape),t.clip();i.allClipped=u}(c,n,i),a=!0),i.prevElClipPaths=c),i.allClipped)?t.__isRendered=!1:(t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush(),o=i.prevEl,o||(u=a=!0),s=t instanceof ut&&t.autoBatch&&function(n){var t=dft(n),i=kft(n);return!(n.lineDash||!(+t^+i)||t&&"string"!=typeof n.fill||i&&"string"!=typeof n.stroke||n.strokePercent<1||n.strokeOpacity<1||n.fillOpacity<1)}(t.style),a||(f=v,e=o.transform,f&&e?f[0]!==e[0]||f[1]!==e[1]||f[2]!==e[2]||f[3]!==e[3]||f[4]!==e[4]||f[5]!==e[5]:f||e)?(su(n,i),nni(n,t)):s||su(n,i),h=rg(t,i.inHover),t instanceof ut?(1!==i.lastDrawType&&(u=!0,i.lastDrawType=1),ggi(n,t,o,u,i),s&&(i.batchFill||i.batchStroke)||n.beginPath(),function(n,t,i,r){var nt,e=kft(i),o=dft(i),tt=i.strokePercent,a=tt<1,it=!t.path,u,f,l,ft,d,g;if((!t.silent||a)&&it&&t.createPathProxy(),u=t.path||pgi,f=t.__dirty,!r){var h=i.fill,c=i.stroke,v=o&&!!h.colorStops,y=e&&!!c.colorStops,rt=o&&!!h.image,ut=e&&!!c.image,p=void 0,w=void 0,s=void 0,b=void 0,k=void 0;(v||y)&&(k=t.getBoundingRect());v&&(p=f?pbt(n,h,k):t.__canvasFillGradient,t.__canvasFillGradient=p);y&&(w=f?pbt(n,c,k):t.__canvasStrokeGradient,t.__canvasStrokeGradient=w);rt&&(s=f||!t.__canvasFillPattern?bbt(n,h,t):t.__canvasFillPattern,t.__canvasFillPattern=s);ut&&(b=f||!t.__canvasStrokePattern?bbt(n,c,t):t.__canvasStrokePattern,t.__canvasStrokePattern=s);v?n.fillStyle=p:rt&&(s?n.fillStyle=s:o=!1);y?n.strokeStyle=w:ut&&(b?n.strokeStyle=b:e=!1)}d=t.getGlobalScale();u.setScale(d[0],d[1],t.segmentIgnoreThreshold);n.setLineDash&&i.lineDash&&(l=(nt=wbt(t))[0],ft=nt[1]);g=!0;(it||4&f)&&(u.setDPR(n.dpr),a?u.setContext(null):(u.setContext(n),g=!1),u.reset(),t.buildPath(u,t.shape,r),u.toStatic(),t.pathUpdated());g&&u.rebuildPath(n,a?tt:1);l&&(n.setLineDash(l),n.lineDashOffset=ft);r||(i.strokeFirst?(e&&kgi(n,i),o&&bgi(n,i)):(o&&bgi(n,i),e&&kgi(n,i)));l&&n.setLineDash([])}(n,t,h,s),s&&(i.batchFill=h.fill||"",i.batchStroke=h.stroke||"")):t instanceof ey?(3!==i.lastDrawType&&(u=!0,i.lastDrawType=3),ggi(n,t,o,u,i),function(n,t,i){var e,r=i.text,u,f;(null!=r&&(r+=""),r)&&(n.font=i.font||ds,n.textAlign=i.textAlign,n.textBaseline=i.textBaseline,u=void 0,f=void 0,n.setLineDash&&i.lineDash&&(u=(e=wbt(t))[0],f=e[1]),u&&(n.setLineDash(u),n.lineDashOffset=f),i.strokeFirst?(kft(i)&&n.strokeText(r,i.x,i.y),dft(i)&&n.fillText(r,i.x,i.y)):(dft(i)&&n.fillText(r,i.x,i.y),kft(i)&&n.strokeText(r,i.x,i.y)),u&&n.setLineDash([]))}(n,t,h)):t instanceof wi?(2!==i.lastDrawType&&(u=!0,i.lastDrawType=2),function(n,t,i,r,u){dgi(n,rg(t,u.inHover),i&&rg(i,u.inHover),r,u)}(n,t,o,u,i),function(n,t,i){var f=t.__image=pvt(i.image,t.__image,t,t.onload),e,o,l,a;if(f&&ort(f)){var s=i.x||0,h=i.y||0,r=t.getWidth(),u=t.getHeight(),c=f.width/f.height;(null==r&&null!=u?r=u*c:null==u&&null!=r?u=r/c:null==r&&null==u&&(r=f.width,u=f.height),i.sWidth&&i.sHeight)?(e=i.sx||0,o=i.sy||0,n.drawImage(f,e,o,i.sWidth,i.sHeight,s,h,r,u)):i.sx&&i.sy?(l=r-(e=i.sx),a=u-(o=i.sy),n.drawImage(f,e,o,l,a,s,h,r,u)):n.drawImage(f,s,h,r,u)}}(n,t,h)):t.getTemporalDisplayables&&(4!==i.lastDrawType&&(u=!0,i.lastDrawType=4),function(n,t,i){var h=t.getDisplayables(),c=t.getTemporalDisplayables(),u,o,f,e,s,r;for(n.save(),f={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:i.viewWidth,viewHeight:i.viewHeight,inHover:i.inHover},u=t.getCursor(),o=h.length;u<o;u++)(r=h[u]).beforeBrush&&r.beforeBrush(),r.innerBeforeBrush(),ha(n,r,f,u===o-1),r.innerAfterBrush(),r.afterBrush&&r.afterBrush(),f.prevEl=r;for(e=0,s=c.length;e<s;e++)(r=c[e]).beforeBrush&&r.beforeBrush(),r.innerBeforeBrush(),ha(n,r,f,e===s-1),r.innerAfterBrush(),r.afterBrush&&r.afterBrush(),f.prevEl=r;t.clearTemporalDisplayables();t.notClear=!0;n.restore()}(n,t,i)),s&&r&&su(n,i),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),i.prevEl=t,t.__dirty=0,t.__isRendered=!0)}function pp(n,t){var h,i,e;if("none"===n)return null;var s=t.getDevicePixelRatio(),c=t.getZr(),r="svg"===c.painter.type;return(n.dirty&&nkt.delete(n),h=nkt.get(n),h)?h:(i=a(n,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512}),"none"===i.backgroundColor&&(i.backgroundColor=null),e={repeat:"repeat"},function(n){for(var h,p,w,nt=[s],b=!0,k=0;k<ini.length;++k){if(h=i[ini[k]],null!=h&&!u(h)&&!o(h)&&!ht(h)&&"boolean"!=typeof h){b=!1;break}nt.push(h)}b&&(w=nt.join(",")+(r?"-svg":""),p=tni.get(w),p&&(r?n.svgElement=p:n.image=p));var a,e=uni(i.dashArrayX),l=function(n){var i,t;return!n||"object"==typeof n&&0===n.length?[0,0]:ht(n)?(i=Math.ceil(n),[i,i]):(t=f(n,function(n){return Math.ceil(n)}),n.length%2?t.concat(t):t)}(i.dashArrayY),v=rni(i.symbol),d=(it=e,f(it,function(n){return fni(n)})),tt=fni(l),t=!r&&df.createCanvas(),g=r&&{tag:"g",attrs:{},key:"dcl",children:[]},y=function(){for(var r,f,t=1,n=0,u=d.length;n<u;++n)t=oli(t,d[n]);for(r=1,n=0,u=v.length;n<u;++n)r=oli(r,v[n].length);return t*=r,f=tt*d.length*v.length,{width:Math.max(1,Math.min(t,i.maxTileWidth)),height:Math.max(1,Math.min(f,i.maxTileHeight))}}(),it;t&&(t.width=y.width*s,t.height=y.height*s,a=t.getContext("2d")),function(){function st(n,t,u,f,e){var o=r?1:s,l=si(e,n*o,t*o,u*o,f*o,i.color,i.symbolKeepAspect),h;r?(h=c.painter.renderOneToVNode(l),h&&g.children.push(h)):gbt(a,l)}var h,n,b;for(a&&(a.clearRect(0,0,t.width,t.height),i.backgroundColor&&(a.fillStyle=i.backgroundColor,a.fillRect(0,0,t.width,t.height))),h=0,n=0;n<l.length;++n)h+=l[n];if(!(h<=0))for(var p=-tt,f=0,k=0,u=0;p<y.height;){if(f%2==0){for(var d=k/2%v.length,w=0,o=0,nt=0;w<2*y.width;){for(b=0,n=0;n<e[u].length;++n)b+=e[u][n];if(b<=0)break;if(o%2==0){var it=.5*(1-i.symbolSize),rt=w+e[u][o]*it,ut=p+l[f]*it,ft=e[u][o]*i.symbolSize,et=l[f]*i.symbolSize,ot=nt/2%v[d].length;st(rt,ut,ft,et,v[d][ot])}w+=e[u][o];++nt;++o===e[u].length&&(o=0)}++u===e.length&&(u=0)}p+=l[f];++k;++f===l.length&&(f=0)}}();b&&tni.put(w,t||g);n.image=t;n.svgElement=g;n.svgWidth=y.width;n.svgHeight=y.height}(e),e.rotation=i.rotation,e.scaleX=e.scaleY=r?1:1/s,nkt.set(n,e),n.dirty=!1,e)}function rni(n){var r,t,i;if(!n||0===n.length)return[["rect"]];if(o(n))return[[n]];for(r=!0,t=0;t<n.length;++t)if(!o(n[t])){r=!1;break}if(r)return rni([n]);for(i=[],t=0;t<n.length;++t)o(n[t])?i.push([n[t]]):i.push(n[t]);return i}function uni(n){var u,t,r,i;if(!n||0===n.length)return[[0,0]];if(ht(n))return[[i=Math.ceil(n),i]];for(u=!0,t=0;t<n.length;++t)if(!ht(n[t])){u=!1;break}if(u)return uni([n]);for(r=[],t=0;t<n.length;++t)ht(n[t])?(i=Math.ceil(n[t]),r.push([i,i])):(i=f(n[t],function(n){return Math.ceil(n)})).length%2==1?r.push(i.concat(i)):r.push(i);return r}function fni(n){for(var t=0,i=0;i<n.length;++i)t+=n[i];return n.length%2==1?2*t:t}function eni(n){return tkt[n]}function hni(n){return function(){for(var i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];if(!this.isDisposed())return lni(this,n,i);yu(this.id)}}function cni(n){return function(){for(var i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];return lni(this,n,i)}}function lni(n,t,i){return i[0]=i[0]&&i[0].toLowerCase(),nf.prototype[t].apply(n,i)}function yu(){0}function gni(n){fet[n]=!1}function wkt(n){return ca[function(n,t){return n.getAttribute?n.getAttribute(t):n[t]}(n,pkt)]}function bkt(n,t){dni[n]=t}function kkt(n){tt(vkt,n)<0&&vkt.push(n)}function dkt(n,t){ndt(akt,n,t,2e3)}function ttr(n){eet("afterinit",n)}function itr(n){eet("afterupdate",n)}function eet(n,t){af.on(n,t)}function ae(n,t,i){l(t)&&(i=t,t="");var r=v(n)?n.type:[n,n={event:t}][0];n.event=(n.event||r).toLowerCase();t=n.event;og[t]||(sr(sni.test(r)&&sni.test(t)),ret[r]||(ret[r]={action:i,actionInfo:n}),og[t]=r)}function rtr(n,t){up.register(n,t)}function utr(n,t){ndt(uet,n,t,1e3,"layout")}function ic(n,t){ndt(uet,n,t,3e3,"visual")}function ndt(n,t,i,r,u){if((l(t)||v(t))&&(i=t,t=r),!(tt(gkt,i)>=0)){gkt.push(i);var f=rgi.wrapStageHandler(i,u);f.__prio=t;f.__raw=i;n.push(f)}}function tdt(n,t){ykt[n]=t}function ftr(n,t,i){var r=eni("registerMap");r&&r(n,t,i)}function it(n){u(n)?t(n,function(n){it(n)}):tt(rdt,n)>=0||(rdt.push(n),l(n)&&(n={install:n}),n.install(etr))}function sg(n){return null==n?0:n.length||1}function otr(n){return n}function udt(n,t){return n.hasOwnProperty(t)||(n[t]=[]),n[t]}function oet(n){return"category"===n?"ordinal":"time"===n?"time":"float"}function ctr(n){return n instanceof htr}function ltr(n){for(var r,u,i=c(),t=0;t<(n||[]).length;t++)r=n[t],u=v(r)?r.name:r,null!=u&&null==i.get(u)&&i.set(u,t);return i}function atr(n){var t=scu(n);return t.dimNameMap||(t.dimNameMap=ltr(n.dimensionsDefine))}function vtr(n){return n>30}function bp(n,i){function l(n){var f=k[n],o;if(f<0){var r=w[n],i=v(r)?r:{name:r},t=new set,u=i.name;return null!=u&&null!=ut.get(u)&&(t.name=t.displayName=u),null!=i.type&&(t.type=i.type),null!=i.displayName&&(t.displayName=i.displayName),o=e.length,k[n]=o,t.storeDimIndex=n,e.push(t),t}return e[f]}function ft(n,t,i){null!=kwi.get(t)?n.otherDims[t]=i:(n.coordDim=t,n.coordDimIndex=i,it.set(t,!0))}function ot(n){null==n.name&&(n.name=n.coordDim)}var h,et,p,u;dwt(n)||(n=nbt(n));var tt=(i=i||{}).coordDimensions||[],w=i.dimensionsDefine||n.dimensionsDefine||[],it=c(),e=[],f=function(n,i,r,u){var f=Math.max(n.dimensionsDetectedCount||1,i.length,r.length,u||0);return t(i,function(n){var t;v(n)&&(t=n.dimsDef)&&(f=Math.max(f,t.length))}),f}(n,tt,w,i.dimensionsCount),d=i.canOmitUnusedDimensions&&vtr(f),rt=w===n.dimensionsDefine,ut=rt?atr(n):ltr(w),g=i.encodeDefine;!g&&i.encodeDefaulter&&(g=i.encodeDefaulter(n,f));for(var b=c(g),k=new kki(f),s=0;s<k.length;s++)k[s]=-1;if(!d)for(s=0;s<f;s++)l(s);b.each(function(n,i){var r=kt(n).slice(),u;1===r.length&&!o(r[0])&&r[0]<0?b.set(i,!1):(u=b.set(i,[]),t(r,function(n,t){var r=o(n)?ut.get(n):n;null!=r&&r<f&&(u[t]=r,ft(l(r),i,t))}))});h=0;t(tt,function(n){var s,e,c,i,p,u,y;if(o(n)?(s=n,i={}):(s=(i=n).name,p=i.ordinalMeta,i.ordinalMeta=null,(i=r({},i)).ordinalMeta=p,e=i.dimsDef,c=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null),u=b.get(s),!1!==u){if(!(u=kt(u)).length)for(y=0;y<(e&&e.length||1);y++){for(;h<f&&null!=l(h).coordDim;)h++;h<f&&u.push(h++)}t(u,function(n,t){var r=l(n),u;(rt&&null!=i.type&&(r.type=i.type),ft(a(r,i),s,t),null==r.name&&e)&&(u=e[t],v(u)||(u={name:u}),r.name=r.displayName=u.name,r.defaultTooltip=u.defaultTooltip);c&&a(r.otherDims,c)})}});var nt=i.generateCoord,y=i.generateCoordCount,st=null!=y;if(y=nt?y||1:0,et=nt||"value",d)t(e,function(n){ot(n)}),e.sort(function(n,t){return n.storeDimIndex-t.storeDimIndex});else for(p=0;p<f;p++)u=l(p),null==u.coordDim&&(u.coordDim=vcu(et,it,st),u.coordDimIndex=0,(!nt||y<=0)&&(u.isExtraCoord=!0),y--),ot(u),null!=u.type||ibi(n,p)!==tft&&(!u.isExtraCoord||null==u.otherDims.itemName&&null==u.otherDims.seriesName)||(u.type="ordinal");return function(n){for(var r=c(),t=0;t<n.length;t++){var f=n[t],u=f.name,i=r.get(u)||0;i>0&&(f.name=u+(i-1));i++;r.set(u,i)}}(e),new htr({source:n,dimensions:e,fullDimensionCount:f,dimensionOmitted:d})}function vcu(n,t,i){if(i||t.hasKey(n)){for(var r=0;t.hasKey(n+r);)r++;n+=r}return t.set(n,!0),n}function kp(n){return"category"===n.get("type")}function btr(n,i,r){var u,s,c,l=(r=r||{}).byIndex,b=r.stackedCoordDimension,e,f,a,h,k,y,p;if(function(n){return!ctr(n.schema)}(i)?u=i:(s=i.schema,u=s.dimensions,c=i.store),k=!(!n||!n.get("stack")),t(u,function(n,t){o(n)&&(u[t]=n={name:n});k&&!n.isExtraCoord&&(l||e||!n.ordinalMeta||(e=n),f||"ordinal"===n.type||"time"===n.type||b&&b!==n.coordDim||(f=n))}),!f||l||e||(l=!0),f){a="__\0ecstackresult_"+n.id;h="__\0ecstackedover_"+n.id;e&&(e.createInvertedIndices=!0);var d=f.coordDim,v=f.type,w=0;t(u,function(n){n.coordDim===d&&w++});y={name:a,coordDim:d,coordDimIndex:w,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:u.length};p={name:h,coordDim:h,coordDimIndex:w+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:u.length+1};s?(c&&(y.storeDimIndex=c.ensureCalculationDimension(h,v),p.storeDimIndex=c.ensureCalculationDimension(a,v)),s.appendCalculationDimension(y),s.appendCalculationDimension(p)):(u.push(y),u.push(p))}return{stackedDimension:f&&f.name,stackedByDimension:e&&e.name,isStackedByIndex:l,stackedOverDimension:h,stackResultDimension:a}}function as(n,t){return!!t&&t===n.getCalculationInfo("stackedDimension")}function odt(n,t){return as(n,t)?n.getCalculationInfo("stackResultDimension"):t}function lo(n,i,r){var o,c,e,k;r=r||{};c=i.getSourceManager();e=!1;n?(e=!0,o=nbt(n)):e=(o=c.getSource()).sourceFormat===hf;var v=function(n){var i=n.get("coordinateSystem"),t=new ptr(i),r=wtr[i];if(r)return r(n,t,t.axisMap,t.categoryAxisMap),t}(i),y=function(n,t){var i,u=n.get("coordinateSystem"),r=up.get(u);return t&&t.coordSysDims&&(i=f(t.coordSysDims,function(n){var i={name:n},r=t.axisMap.get(n),u;return r&&(u=r.get("type"),i.type=oet(u)),i})),i||(i=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),i}(i,v),a=r.useEncodeDefaulter,d=l(a)?a:a?w(tbi,y,i):null,s=bp(o,{coordDimensions:y,generateCoord:r.generateCoord,encodeDefine:i.getEncode(),encodeDefaulter:d,canOmitUnusedDimensions:!e}),p=function(n,i,r){var u,f;return r&&t(n,function(n,t){var o=n.coordDim,e=r.categoryAxisMap.get(o);e&&(null==u&&(u=t),n.ordinalMeta=e.getOrdinalMeta(),i&&(n.createInvertedIndices=!0));null!=n.otherDims.itemName&&(f=!0)}),f||null==u||(n[u].otherDims.itemName=0),u}(s.dimensions,r.createInvertedIndices,v),b=e?null:c.getSharedDataStore(s),g=btr(i,{schema:s,store:b}),h=new yr(s,i);return h.setCalculationInfo(g),k=null!=p&&function(n){if(n.sourceFormat===hf){var t=function(n){for(var t=0;t<n.length&&null==n[t];)t++;return n[t]}(n.data||[]);return!u(uy(t))}}(o)?function(n,t,i,r){return r===p?i:this.defaultDimValueGetter(n,t,i,r)}:null,h.hasItemOption=!1,h.initData(e?o:b,null,k),h}function ycu(n){return v(n)&&null!=n.value?n.value:n+""}function sdt(n){return"interval"===n.type||"log"===n.type}function pcu(n,t,i,r){var f={},o=n[1]-n[0],u=f.interval=rvt(o/t,!0),e;return null!=i&&u<i&&(u=f.interval=i),null!=r&&u>r&&(u=f.interval=r),e=f.intervalPrecision=dtr(u),function(n,t){isFinite(n[0])||(n[0]=t[0]);!isFinite(n[1])&&(n[1]=t[1]);gtr(n,0,t);gtr(n,1,t);n[0]>n[1]&&(n[0]=n[1])}(f.niceTickExtent=[ri(Math.ceil(n[0]/u)*u,e),ri(Math.floor(n[1]/u)*u,e)],n),f}function hdt(n){var i=Math.pow(10,urt(n)),t=n/i;return t?2===t?t=3:3===t?t=5:t*=2:t=1,ri(t*i)}function dtr(n){return ue(n)+2}function gtr(n,t,i){n[t]=Math.max(Math.min(n[t],i[1]),i[0])}function vet(n,t){return n>=t[0]&&n<=t[1]}function yet(n,t){return t[1]===t[0]?.5:(n-t[0])/(t[1]-t[0])}function pet(n,t){return n*(t[1]-t[0])+t[0]}function vo(n){return u(n)?cdt?new Float32Array(n):n:new nir(n)}function ldt(n){return n.get("stack")||wet+n.seriesIndex}function adt(n){return n.dim+n.index}function tir(n,t){var i=[];return t.eachSeriesByType(n,function(n){eir(n)&&i.push(n)}),i}function iir(n){var r=function(n){var i={},s,e,r,u,f,o;t(n,function(n){var t=n.coordinateSystem.getBaseAxis(),e;if("time"===t.type||"value"===t.type)for(var r=n.getData(),u=t.dim+"_"+t.index,s=r.getDimensionIndex(r.mapDimension(t.dim)),o=r.getStore(),f=0,h=o.count();f<h;++f)e=o.get(s,f),i[u]?i[u].push(e):i[u]=[e]});s={};for(e in i)if(i.hasOwnProperty(e)&&(r=i[e],r)){for(r.sort(function(n,t){return n-t}),u=null,f=1;f<r.length;++f)o=r[f]-r[f-1],o>0&&(u=null===u?o:Math.min(u,o));s[e]=u}return s}(n),i=[];return t(n,function(n){var u,t=n.coordinateSystem.getBaseAxis(),f=t.getExtent(),c;if("category"===t.type)u=t.getBandWidth();else if("value"===t.type||"time"===t.type){var l=t.dim+"_"+t.index,o=r[l],s=Math.abs(f[1]-f[0]),h=t.scale.getExtent(),a=Math.abs(h[1]-h[0]);u=o?s/a*o:s}else c=n.getData(),u=Math.abs(f[1]-f[0])/c.count();var v=e(n.get("barWidth"),u),y=e(n.get("barMaxWidth"),u),p=e(n.get("barMinWidth")||(oir(n)?.5:1),u),w=n.get("barGap"),b=n.get("barCategoryGap");i.push({bandWidth:u,barWidth:v,barMaxWidth:y,barMinWidth:p,barGap:w,barCategoryGap:b,axisKey:adt(t),stackId:ldt(n)})}),rir(i)}function rir(n){var r={},i;return t(n,function(n){var c=n.axisKey,l=n.bandWidth,i=r[c]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},u=i.stacks,t,f,e,o,s,h;r[c]=i;t=n.stackId;u[t]||i.autoWidthCount++;u[t]=u[t]||{width:0,maxWidth:0};f=n.barWidth;f&&!u[t].width&&(u[t].width=f,f=Math.min(i.remainedWidth,f),i.remainedWidth-=f);e=n.barMaxWidth;e&&(u[t].maxWidth=e);o=n.barMinWidth;o&&(u[t].minWidth=o);s=n.barGap;null!=s&&(i.gap=s);h=n.barCategoryGap;null!=h&&(i.categoryGap=h)}),i={},t(r,function(n,r){var p,a,c,v;i[r]={};var h=n.stacks,y=n.bandWidth,l=n.categoryGap;null==l&&(p=et(h).length,l=Math.max(35-4*p,15)+"%");var w=e(l,y),f=e(n.gap,1),s=n.remainedWidth,o=n.autoWidthCount,u=(s-w)/(o+(o-1)*f);u=Math.max(u,0);t(h,function(n){var i=n.maxWidth,r=n.minWidth,t;n.width?(t=n.width,i&&(t=Math.min(t,i)),r&&(t=Math.max(t,r)),n.width=t,s-=t+f*t,o--):(t=u,i&&i<t&&(t=Math.min(i,s)),r&&r>t&&(t=r),t!==u&&(n.width=t,s-=t+f*t,o--))});u=(s-w)/(o+(o-1)*f);u=Math.max(u,0);c=0;t(h,function(n){n.width||(n.width=u);a=n;c+=n.width*(1+f)});a&&(c-=a.width*f);v=-c/2;t(h,function(n,t){i[r][t]=i[r][t]||{bandWidth:y,offset:v,width:n.width};v+=n.width*(1+f)})}),i}function uir(n,i){var r=tir(n,i),u=iir(r);t(r,function(n){var i=n.getData(),r=n.coordinateSystem.getBaseAxis(),f=ldt(n),t=u[adt(r)][f],e=t.offset,o=t.width;i.setLayout({bandWidth:t.bandWidth,offset:e,size:o})})}function fir(n){return{seriesType:n,plan:hp(),reset:function(n){if(eir(n)){var t=n.getData(),i=n.coordinateSystem,s=i.getBaseAxis(),f=i.getOtherAxis(s),h=t.getDimensionIndex(t.mapDimension(f.dim)),v=t.getDimensionIndex(t.mapDimension(s.dim)),y=n.get("showBackground",!0),p=t.mapDimension(f.dim),c=t.getCalculationInfo("stackResultDimension"),e=as(t,p)&&!!t.getCalculationInfo("stackedOnSeries"),r=f.isHorizontal(),w=function(n,t){return t.toGlobalCoord(t.dataToCoord("log"===t.type?1:0))}(0,f),u=oir(n),o=n.get("barMinHeight")||0,b=c&&t.getDimensionIndex(c),l=t.getLayout("size"),a=t.getLayout("offset");return{progress:function(n,t){for(var d,f,ft=n.count,it=u&&vo(3*ft),g=u&&y&&vo(3*ft),ht=u&&vo(ft),rt=i.master.getRect(),ct=r?rt.width:rt.height,et=t.getStore(),s=0;null!=(f=n.next());){var ot=et.get(e?b:h,f),ut=et.get(v,f),k=w,st=void 0;e&&(st=+ot-et.get(h,f));var nt=void 0,tt=void 0,c=void 0,p=void 0;r?(d=i.dataToPoint([ot,ut]),e&&(k=i.dataToPoint([st,ut])[0]),nt=k,tt=d[1]+a,c=d[0]-k,p=l,Math.abs(c)<o&&(c=(c<0?-1:1)*o)):(d=i.dataToPoint([ut,ot]),e&&(k=i.dataToPoint([ut,st])[1]),nt=d[0]+a,tt=k,c=l,p=d[1]-k,Math.abs(p)<o&&(p=(p<=0?-1:1)*o));u?(it[s]=nt,it[s+1]=tt,it[s+2]=r?c:p,g&&(g[s]=r?rt.x:nt,g[s+1]=r?tt:rt.y,g[s+2]=ct),ht[f]=f):t.setItemLayout(f,{x:nt,y:tt,width:c,height:p});s+=3}u&&t.setLayout({largePoints:it,largeDataIndices:ht,largeBackgroundPoints:g,valueAxisHorizontal:r})}}}}}}function eir(n){return n.coordinateSystem&&"cartesian2d"===n.coordinateSystem.type}function oir(n){return n.pipelineContext&&n.pipelineContext.large}function wcu(n){return(n/=sd)>16?16:n>7.5?7:n>3.5?4:n>1.5?2:1}function bcu(n){return(n/=2592e6)>6?6:n>3?3:n>2?2:1}function kcu(n){return(n/=iwi)>12?12:n>6?6:n>3.5?4:n>2?2:1}function sir(n,t){return(n/=t?twi:nwi)>30?30:n>20?20:n>15?15:n>10?10:n>5?5:n>2?2:1}function dcu(n){return rvt(n,!0)}function gcu(n,t,i){var r=new Date(n);switch(gy(t)){case"year":case"month":r[swi(i)](0);case"day":r[hwi(i)](1);case"hour":r[cwi(i)](0);case"minute":r[lwi(i)](0);case"second":r[awi(i)](0);r[vwi(i)](0)}return r.getTime()}function det(n,t){return nlu(n,ue(t))}function lir(n,t,i){var r=n.rawExtentInfo;return r||(r=new rlu(n,t,i),n.rawExtentInfo=r,r)}function get(n,t){return null==t?null:yv(t)?NaN:n.parse(t)}function air(n,i){var l=n.type,r=lir(n,i,n.getExtent()).calculate(),o,u,c,s;n.setBlank(r.isBlank);var f=r.min,e=r.max,h=i.ecModel;return h&&"time"===l&&(o=tir("bar",h),u=!1,(t(o,function(n){u=u||n.getBaseAxis()===i.axis}),u)&&(c=iir(o),s=function(n,i,r,u){var s=r.axis.getExtent(),a=s[1]-s[0],o=function(n,t,i){if(n&&t){var r=n[adt(t)];return null!=r&&null!=i?r[ldt(i)]:r}}(u,r.axis),f,e;if(void 0===o)return{min:n,max:i};f=1/0;t(o,function(n){f=Math.min(n.offset,f)});e=-1/0;t(o,function(n){e=Math.max(n.offset+n.width,e)});f=Math.abs(f);e=Math.abs(e);var h=f+e,c=i-n,l=c/(1-(f+e)/a)-c;return i+=l*(e/h),n-=l*(f/h),{min:n,max:i}}(f,e,i,c),f=s.min,e=s.max)),{extent:[f,e],fixMin:r.minFixed,fixMax:r.maxFixed}}function la(n,t){var i=t,r=air(n,i),u=r.extent,s=i.get("splitNumber");n instanceof vdt&&(n.base=i.get("logBase"));var f=n.type,e=i.get("interval"),o="interval"===f||"time"===f;n.setExtent(u[0],u[1]);n.calcNiceExtent({splitNumber:s,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:o?i.get("minInterval"):null,maxInterval:o?i.get("maxInterval"):null});null!=e&&n.setInterval&&n.setInterval(e)}function pg(n,t){if(t=t||n.get("type"))switch(t){case"category":return new ag({ordinalMeta:n.getOrdinalMeta?n.getOrdinalMeta():n.getCategories(),extent:[1/0,-1/0]});case"time":return new bet({locale:n.ecModel.getLocaleModel(),useUTC:n.ecModel.get("useUTC")});default:return new(ve.getClass(t)||ao)}}function wg(n){var i,r,t=n.getLabelModel().get("formatter"),u="category"===n.type?n.scale.getExtent()[0]:null;return"time"===n.scale.type?(r=t,function(t,i){return n.scale.getFormattedLabel(t,i,r)}):o(t)?function(t){return function(i){var r=n.scale.getLabel(i);return t.replace("{value}",null!=r?r:"")}}(t):l(t)?(i=t,function(t,r){return null!=u&&(r=t.value-u),i(ydt(n,t),r,null!=t.level?{level:t.level}:null)}):function(t){return n.scale.getLabel(t)}}function ydt(n,t){return"category"===n.type?n.scale.getLabel(t):t.value}function elu(n,t){var i=t*Math.PI/180,r=n.width,u=n.height,f=r*Math.abs(Math.cos(i))+Math.abs(u*Math.sin(i)),e=r*Math.abs(Math.sin(i))+Math.abs(u*Math.cos(i));return new nt(n.x,n.y,f,e)}function pdt(n){var t=n.get("interval");return null==t?"auto":t}function vir(n){return"category"===n.type&&0===pdt(n.getLabelModel())}function not(n,i){var r={};return t(n.mapDimensionsAll(i),function(t){r[odt(n,t)]=!0}),et(r)}function yir(n,t){return Math.abs(n-t)<1e-8}function aa(n,t,i){var o=0,r=n[0],f,e,u;if(!r)return!1;for(f=1;f<n.length;f++)e=n[f],o+=es(r[0],r[1],e[0],e[1],t,i),r=e;return u=n[0],yir(r[0],u[0])&&yir(r[1],u[1])||(o+=es(r[0],r[1],u[0],u[1],t,i)),0!==o}function wdt(n,t){for(var i=0;i<n.length;i++)nr(n[i],n[i],t)}function wir(n,t,i,r){for(var u,f=0;f<n.length;f++)u=n[f],r&&(u=r.project(u)),u&&isFinite(u[0])&&isFinite(u[1])&&(ts(t,t,u),is(i,i,u))}function nrr(n,t,i){for(var r=0;r<n.length;r++)n[r]=trr(n[r],t[r],i)}function trr(n,t,i){for(var r,u,e=[],o=t[0],s=t[1],f=0;f<n.length;f+=2)r=n.charCodeAt(f)-64,u=n.charCodeAt(f+1)-64,r=r>>1^-(1&r),u=u>>1^-(1&u),o=r+=o,s=u+=s,e.push([r/i,u/i]);return e}function bdt(n,i){return f(yt((n=function(n){if(!n.UTF8Encoding)return n;var r=n,i=r.UTF8Scale;return null==i&&(i=1024),t(r.features,function(n){var r=n.geometry,u=r.encodeOffsets,f=r.coordinates;if(u)switch(r.type){case"LineString":r.coordinates=trr(f,u,i);break;case"Polygon":case"MultiLineString":nrr(f,u,i);break;case"MultiPolygon":t(f,function(n,t){return nrr(n,u[t],i)})}}),r.UTF8Encoding=!1,r}(n)).features,function(n){return n.geometry&&n.properties&&n.geometry.coordinates.length>0}),function(n){var f=n.properties,r=n.geometry,u=[],e,o;switch(r.type){case"Polygon":e=r.coordinates;u.push(new kir(e[0],e.slice(1)));break;case"MultiPolygon":t(r.coordinates,function(n){n[0]&&u.push(new kir(n[0],n.slice(1)))});break;case"LineString":u.push(new dir([r.coordinates]));break;case"MultiLineString":u.push(new dir(r.coordinates))}return o=new gir(f[i||"name"],u,f.cp),o.properties=f,o})}function plu(n){return"category"===n.type?function(n){var t=n.getLabelModel(),i=irr(n,t);return!t.get("show")||n.scale.isBlank()?{labels:[],labelCategoryInterval:i.labelCategoryInterval}:i}(n):function(n){var t=n.scale.getTicks(),i=wg(n);return{labels:f(t,function(t,r){return{level:t.level,formattedLabel:i(t,r),rawLabel:n.scale.getLabel(t),tickValue:t.value}})}}(n)}function wlu(n,t){return"category"===n.type?function(n,t){var r,u,o=rrr(n,"ticks"),i=pdt(t),s=urr(o,i),e;return s?s:(t.get("show")&&!n.scale.isBlank()||(r=[]),l(i)?r=orr(n,i,!0):"auto"===i?(e=irr(n,n.getLabelModel()),u=e.labelCategoryInterval,r=f(e.labels,function(n){return n.tickValue})):r=err(n,u=i,!0),frr(o,i,{ticks:r,tickCategoryInterval:u}))}(n,t):{ticks:f(n.scale.getTicks(),function(n){return n.value})}}function irr(n,t){var r,u,f=rrr(n,"labels"),i=pdt(t),e=urr(f,i);return e||(l(i)?r=orr(n,i):(u="auto"===i?function(n){var t=bg(n).autoInterval;return null!=t?t:bg(n).autoInterval=n.calculateCategoryInterval()}(n):i,r=err(n,u)),frr(f,i,{labels:r,labelCategoryInterval:u}))}function rrr(n,t){return bg(n)[t]||(bg(n)[t]=[])}function urr(n,t){for(var i=0;i<n.length;i++)if(n[i].key===t)return n[i].value}function frr(n,t,i){return n.push({key:t,value:i}),i}function err(n,t,i){function s(n){var t={value:n};c.push(i?n:{formattedLabel:a(t),rawLabel:o.getLabel(t),tickValue:n})}var a=wg(n),o=n.scale,r=o.getExtent(),h=n.getLabelModel(),c=[],u=Math.max((t||0)+1,1),f=r[0],v=o.count(),e;0!==f&&u>1&&v/u>2&&(f=Math.round(Math.ceil(f/u)*u));var l=vir(n),y=h.get("showMinLabel")||l,p=h.get("showMaxLabel")||l;for(y&&f!==r[0]&&s(r[0]),e=f;e<=r[1];e+=u)s(e);return p&&e-u!==r[1]&&s(r[1]),c}function orr(n,i,r){var u=n.scale,e=wg(n),f=[];return t(u.getTicks(),function(n){var t=u.getLabel(n),o=n.value;i(n.value,t)&&f.push(r?o:{formattedLabel:e(n),rawLabel:t,tickValue:o})}),f}function srr(n,t){var i=(n[1]-n[0])/t/2;n[0]+=i;n[1]-=i}function klu(n,t,i,r,u){var f=i.width,e=i.height;switch(n){case"top":r.set(i.x+f/2,i.y-t);u.set(0,-1);break;case"bottom":r.set(i.x+f/2,i.y+e+t);u.set(0,1);break;case"left":r.set(i.x-t,i.y+e/2);u.set(-1,0);break;case"right":r.set(i.x+f+t,i.y+e/2);u.set(1,0)}}function dlu(n,t,i,r,u,f,e,o,s){var p,h;e-=n;o-=t;var c=Math.sqrt(e*e+o*o),k=(e/=c)*i+n,d=(o/=c)*i+t;if(Math.abs(r-u)%kg<.0001||(f?(p=r,r=ee(u),u=ee(p)):(r=ee(r),u=ee(u)),r>u&&(u+=kg),h=Math.atan2(o,e),h<0&&(h+=kg),h>=r&&h<=u||h+kg>=r&&h+kg<=u))return s[0]=k,s[1]=d,c-i;var l=i*Math.cos(r)+n,a=i*Math.sin(r)+t,v=i*Math.cos(u)+n,y=i*Math.sin(u)+t,w=(l-e)*(l-e)+(a-o)*(a-o),b=(v-e)*(v-e)+(y-o)*(y-o);return w<b?(s[0]=l,s[1]=a,Math.sqrt(w)):(s[0]=v,s[1]=y,Math.sqrt(b))}function tot(n,t,i,r,u,f,e,o){var y=u-n,p=f-t,h=i-n,c=r-t,l=Math.sqrt(h*h+c*c),s=(y*(h/=l)+p*(c/=l))/l,a,v;return o&&(s=Math.min(Math.max(s,0),1)),s*=l,a=e[0]=n+s*h,v=e[1]=t+s*c,Math.sqrt((a-u)*(a-u)+(v-f)*(v-f))}function hrr(n,t,i,r,u,f,e){i<0&&(n+=i,i=-i);r<0&&(t+=r,r=-r);var h=n+i,c=t+r,o=e[0]=Math.min(Math.max(u,n),h),s=e[1]=Math.min(Math.max(f,t),c);return Math.sqrt((o-u)*(o-u)+(s-f)*(s-f))}function glu(n,t,i){var r=hrr(t.x,t.y,t.width,t.height,n.x,n.y,yf);return i.set(yf[0],yf[1]),r}function nau(n,t,i){for(var nt,o,tt,d,g,f=0,e=0,s=0,h=0,y=1/0,u=t.data,c=n.x,l=n.y,r=0;r<u.length;){nt=u[r++];1===r&&(s=f=u[r],h=e=u[r+1]);o=y;switch(nt){case va.M:f=s=u[r++];e=h=u[r++];break;case va.L:o=tot(f,e,u[r],u[r+1],c,l,yf,!0);f=u[r++];e=u[r++];break;case va.C:o=hhi(f,e,u[r++],u[r++],u[r++],u[r++],u[r],u[r+1],c,l,yf);f=u[r++];e=u[r++];break;case va.Q:o=lhi(f,e,u[r++],u[r++],u[r],u[r+1],c,l,yf);f=u[r++];e=u[r++];break;case va.A:var v=u[r++],w=u[r++],b=u[r++],p=u[r++],a=u[r++],k=u[r++];r+=1;tt=!!(1-u[r++]);d=Math.cos(a)*b+v;g=Math.sin(a)*p+w;r<=1&&(s=d,h=g);o=dlu(v,w,p,a,a+k,tt,(c-v)*p/b+v,l,yf);f=Math.cos(a+k)*b+v;e=Math.sin(a+k)*p+w;break;case va.R:o=hrr(s=f=u[r++],h=e=u[r++],u[r++],u[r++],c,l,yf);break;case va.Z:o=tot(f,e,s,h,c,l,yf,!0);f=s;e=h}o<y&&(y=o,i.set(yf[0],yf[1]))}return y}function crr(n,t){var o,r,e,v,s;if(n&&(o=n.getTextGuideLine(),r=n.getTextContent(),r&&o)){var h=n.textGuideLineConfig||{},i=[[0,0],[0,0],[0,0]],c=h.candidates||blu,l=r.getBoundingRect().clone();l.applyTransform(r.getComputedTransform());var a=1/0,u=h.anchor,f=n.getComputedTransform(),y=f&&wc([],f),p=t.get("length2")||0;for(u&&hi.copy(u),e=0;e<c.length;e++)klu(c[e],0,l,pe,yo),g.scaleAndAdd(ti,pe,yo,p),ti.transform(y),v=n.getBoundingRect(),s=u?u.distance(ti):n instanceof ut?nau(ti,n.path,hi):glu(ti,v,hi),s<a&&(a=s,ti.transform(f),hi.transform(f),hi.toArray(i[0]),ti.toArray(i[1]),pe.toArray(i[2]));lrr(i,t.get("minTurnAngle"));o.setShape({points:i})}}function lrr(n,t){var r,u,f,e,i;if(t<=180&&t>0&&(t=t/180*Math.PI,pe.fromArray(n[0]),ti.fromArray(n[1]),hi.fromArray(n[2]),g.sub(yo,pe,ti),g.sub(po,hi,ti),r=yo.len(),u=po.len(),!(r<.001||u<.001)&&(yo.scale(1/r),po.scale(1/u),f=yo.dot(po),Math.cos(t)<f))){if(e=tot(ti.x,ti.y,hi.x,hi.y,pe.x,pe.y,dg,!1),pr.fromArray(dg),pr.scaleAndAdd(po,e/Math.tan(Math.PI-t)),i=hi.x!==ti.x?(pr.x-ti.x)/(hi.x-ti.x):(pr.y-ti.y)/(hi.y-ti.y),isNaN(i))return;i<0?g.copy(pr,ti):i>1&&g.copy(pr,hi);pr.toArray(n[1])}}function tau(n,t,i){var u,f,s,e,o,r;if(i<=180&&i>0&&(i=i/180*Math.PI,pe.fromArray(n[0]),ti.fromArray(n[1]),hi.fromArray(n[2]),g.sub(yo,ti,pe),g.sub(po,hi,ti),u=yo.len(),f=po.len(),!(u<.001||f<.001)&&(yo.scale(1/u),po.scale(1/f),yo.dot(t)<Math.cos(i)))){if(s=tot(ti.x,ti.y,hi.x,hi.y,pe.x,pe.y,dg,!1),pr.fromArray(dg),e=Math.PI/2,o=e+Math.acos(po.dot(t))-i,o>=e)g.copy(pr,hi);else{if(pr.scaleAndAdd(po,s/Math.tan(Math.PI/2-o)),r=hi.x!==ti.x?(pr.x-ti.x)/(hi.x-ti.x):(pr.y-ti.y)/(hi.y-ti.y),isNaN(r))return;r<0?g.copy(pr,ti):r>1&&g.copy(pr,hi)}pr.toArray(n[1])}}function arr(n,t,i,r){var o="normal"===i,f=o?n:n.ensureState(i),u,e;f.ignore=t;u=r.get("smooth");u&&!0===u&&(u=.3);f.shape=f.shape||{};u>0&&(f.shape.smooth=u);e=r.getModel("lineStyle").getLineStyle();o?n.useStyle(e):f.style=e}function iau(n,t){var s=t.smooth,i=t.points,e,o,f;if(i)if(n.moveTo(i[0][0],i[0][1]),s>0&&i.length>=3){if(e=ke(i[0],i[1]),o=ke(i[1],i[2]),!e||!o)return n.lineTo(i[1][0],i[1][1]),void n.lineTo(i[2][0],i[2][1]);var h=Math.min(e,o)*s,r=ab([],i[1],i[0],h/e),u=ab([],i[1],i[2],h/o),c=ab([],r,u,.5);n.bezierCurveTo(r[0],r[1],r[0],r[1],c[0],c[1]);n.bezierCurveTo(u[0],u[1],u[0],u[1],i[2][0],i[2][1])}else for(f=1;f<i.length;f++)n.lineTo(i[f][0],i[f][1])}function ddt(n,t,i){var r=n.getTextGuideLine(),f=n.getTextContent(),y,c,p;if(f){for(var l=t.normal,v=l.get("show"),e=f.ignore,o=0;o<wk.length;o++){var u=wk[o],s=t[u],h="normal"===u;if(s){if(y=s.get("show"),(h?e:d(f.states[u]&&f.states[u].ignore,e))||!d(y,v)){c=h?r:r&&r.states[u];c&&(c.ignore=!0);continue}r||(r=new er,n.setTextGuideLine(r),h||!e&&v||arr(r,!0,"normal",t.normal),n.stateProxy&&(r.stateProxy=n.stateProxy));arr(r,!1,u,s)}}r&&(a(r.style,i),r.style.fill=null,p=l.get("showAbove"),(n.textGuideLineConfig=n.textGuideLineConfig||{}).showAbove=p||!1,r.buildPath=iau)}else r&&n.removeTextGuideLine()}function gdt(n,t){var r,i,u;for(t=t||"labelLine",r={normal:n.getModel(t)},i=0;i<dr.length;i++)u=dr[i],r[u]=n.getModel([u,t]);return r}function vrr(n){for(var t,c,o=[],u=0;u<n.length;u++)if(t=n[u],!t.defaultAttr.ignore){var f=t.label,i=f.getComputedTransform(),s=f.getBoundingRect(),h=!i||i[1]<1e-5&&i[2]<1e-5,e=f.style.margin||0,r=s.clone();r.applyTransform(i);r.x-=e/2;r.y-=e/2;r.width+=e;r.height+=e;c=h?new uut(s,i):null;o.push({label:f,labelLine:t.labelLine,rect:r,localRect:s,obb:c,priority:t.priority,defaultAttr:t.defaultAttr,layoutOption:t.computedLayoutOption,axisAligned:h,transform:i})}return o}function yrr(n,t,i,r,u,f){function k(){o=g.rect[t]-r;s=u-b.rect[t]-b.rect[i]}function nt(n,t,i){var r,u;n<0&&(r=Math.min(t,-n),r>0?(h(r*i,0,e),u=r+n,u<0&&a(-u*i,1)):a(-n*i,1))}function h(i,r,u){var f,e;for(0!==i&&(v=!0),f=r;f<u;f++)e=n[f],e.rect[t]+=i,e.label[t]+=i}function a(r,u){for(var c,l,a,o=[],s=0,f=1;f<e;f++)c=n[f-1].rect,l=Math.max(n[f].rect[t]-c[t]-c[i],0),o.push(l),s+=l;if(s)if(a=Math.min(Math.abs(r)/s,u),r>0)for(f=0;f<e-1;f++)h(o[f]*a,0,f+1);else for(f=e-1;f>0;f--)h(-(o[f-1]*a),f,e)}function tt(n){var r=n<0?-1:1,i,t;for(n=Math.abs(n),i=Math.ceil(n/(e-1)),t=0;t<e-1;t++)if(r>0?h(i,0,t+1):h(-i,e-t-1,e),(n-=i)<=0)return}var e=n.length,w,c,o,s,g,b;if(!(e<2)){n.sort(function(n,i){return n.rect[t]-i.rect[t]});for(var l,d=0,v=!1,y=0,p=0;p<e;p++)w=n[p],c=w.rect,(l=c[t]-d)<0&&(c[t]-=l,w.label[t]-=l,v=!0),y+=Math.max(-l,0),d=c[t]+c[i];return y>0&&f&&h(-y/e,0,e),g=n[0],b=n[e-1],k(),o<0&&a(-o,.8),s<0&&a(s,.8),k(),nt(o,s,1),nt(s,o,-1),k(),o<0&&tt(-o),s<0&&tt(s),v}}function prr(n,t,i,r){return yrr(n,"y","height",t,i,r)}function wrr(n){function c(n){if(!n.ignore){var t=n.ensureState("emphasis");null==t.ignore&&(t.ignore=!1)}n.ignore=!0}var e=[],r,u,i;for(n.sort(function(n,t){return t.priority-n.priority}),r=new nt(0,0,0,0),u=0;u<n.length;u++){var t=n[u],a=t.axisAligned,v=t.localRect,y=t.transform,l=t.label,f=t.labelLine;r.copy(t.rect);r.width-=.1;r.height-=.1;r.x+=.05;r.y+=.05;for(var o=t.obb,s=!1,h=0;h<e.length;h++)if(i=e[h],r.intersect(i.rect)){if(a&&i.axisAligned){s=!0;break}if(i.obb||(i.obb=new uut(i.localRect,i.transform)),o||(o=new uut(v,y)),o.intersect(i.obb)){s=!0;break}}s?(c(l),f&&c(f)):(l.attr("ignore",t.defaultAttr.ignore),f&&f.attr("ignore",t.defaultAttr.labelGuideIgnore),e.push(t))}}function rau(n){if(n){for(var i=[],t=0;t<n.length;t++)i.push(n[t].slice());return i}}function uau(n,t){var i=n.label,r=t&&t.getTextGuideLine();return{dataIndex:n.dataIndex,dataType:n.dataType,seriesIndex:n.seriesModel.seriesIndex,text:n.label.style.text,rect:n.hostRect,labelRect:n.rect,align:i.style.align,verticalAlign:i.style.verticalAlign,labelLinePoints:rau(r&&r.shape.points)}}function iot(n,t,i){for(var u,r=0;r<i.length;r++)u=i[r],null!=t[u]&&(n[u]=t[u])}function cau(n,t,i,r){var u=null==t.opacity?1:t.opacity,o,c,s,f,e,l;if(i instanceof wi)n("opacity",u);else if(function(n){var t=n.fill;return null!=t&&t!==gg}(t)?(o=fk(t.fill),n("fill",o.color),c=null!=t.fillOpacity?t.fillOpacity*o.opacity*u:o.opacity*u,(r||c<1)&&n("fill-opacity",c)):n("fill",gg),function(n){var t=n.stroke;return null!=t&&t!==gg}(t)){s=fk(t.stroke);n("stroke",s.color);var a=t.strokeNoScale?i.getLineScale():1,v=a?(t.lineWidth||0)/a:0,y=null!=t.strokeOpacity?t.strokeOpacity*s.opacity*u:s.opacity*u,p=t.strokeFirst;if((r||1!==v)&&n("stroke-width",v),(r||p)&&n("paint-order",p?"stroke":"fill"),(r||y<1)&&n("stroke-opacity",y),t.lineDash){var w=wbt(i),b=w[0],h=w[1];b&&(h=sau(h||0),n("stroke-dasharray",b.join(",")),(h||r)&&n("stroke-dashoffset",h))}else r&&n("stroke-dasharray",gg);for(f=0;f<ugt.length;f++)e=ugt[f],(r||t[e]!==yrt[e])&&(l=t[e]||yrt[e],l&&n(hau[f],l))}else r&&n("stroke",gg)}function grr(n){return document.createElementNS(fgt,n)}function di(n,t,i,r,u){return{tag:n,attrs:i||{},children:r,text:u,key:t}}function ogt(n,t){var i=(t=t||{}).newline?"\n":"";return function n(t){var u=t.children,r=t.tag,o=t.attrs,e=t.text;return function(n,t){var f=[],r,i,u;if(t)for(r in t)i=t[r],u=r,!1!==i&&(!0!==i&&null!=i&&(u+='="'+i+'"'),f.push(u));return"<"+n+" "+f.join(" ")+">"}(r,o)+("style"!==r?wr(e):e||"")+(u?""+i+f(u,function(t){return n(t)}).join(i)+i:"")+("<\/"+r+">")}(n)}function sgt(n){return{zrId:n,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function nur(n,t,i,r){return di("svg","root",{width:n,height:t,xmlns:fgt,"xmlns:xlink":egt,version:"1.1",baseProfile:"full",viewBox:!!r&&"0 0 "+n+" "+t},i)}function lau(n,t,i){var f=r({},n.shape),u;return r(f,t),n.buildPath(i,f),u=new drr,u.reset(rci(n)),i.rebuildPath(u,1),u.generateStr(),u.getStr()}function aau(n,t){var i=t.originX,r=t.originY;(i||r)&&(n[fc]=i+"px "+r+"px")}function iur(n,t){var i=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[i]=n,i}function rur(n){return o(n)?hgt[n]?"cubic-bezier("+hgt[n]+")":blt(n)?n:"":""}function uot(n,i,u,f){function g(t){function d(n,t,i){for(var u,c,r,f,l=n.getTracks(),p=n.getMaxTime(),h=0;h<l.length;h++)if(u=l[h],u.needsAnimate()&&(c=u.keyframes,r=u.propName,i&&(r=i(r)),r))for(f=0;f<c.length;f++){var e=c[f],s=Math.round(e.time/p*100)+"%",v=rur(e.easing),y=e.rawValue;(o(y)||ht(y))&&(t[s]=t[s]||{},t[s][r]=e.rawValue,v&&(t[s][a]=v))}}for(var v,g,l,nt,tt,st,ct,y,it,rt,p,ut,ft,lt,s,c,k=t[1],ot=k.length,w={},b={},e={},a="animation-timing-function",h=0;h<ot;h++)(it=(y=k[h]).targetName)?"shape"===it&&d(y,b):!f&&d(y,w);for(s in w)v={},wci(v,n),r(v,w[s]),g=uci(v),l=w[s][a],e[s]=g?{transform:g}:{},aau(e[s],v),l&&(e[s][a]=l);nt=!0;for(s in b){if(e[s]=e[s]||{},tt=!c,l=b[s][a],tt&&(c=new fe),st=c.len(),c.reset(),e[s].d=lau(n,b[s],c),ct=c.len(),!tt&&st!==ct){nt=!1;break}l&&(e[s][a]=l)}if(!nt)for(s in e)delete e[s].d;if(!f)for(h=0;h<ot;h++)"style"===(it=(y=k[h]).targetName)&&d(y,e,function(n){return tur[n]});for(p=et(e),ut=!0,h=1;h<p.length;h++){if(ft=p[h-1],lt=p[h],e[ft][fc]!==e[lt][fc]){ut=!1;break}rt=e[ft][fc]}if(ut&&rt){for(s in e)e[s][fc]&&delete e[s][fc];i[fc]=rt}if(yt(p,function(n){return et(e[n]).length>0}).length)return iur(e,u)+" "+t[0]+" both"}var w=n.animators,y=w.length,a=[],s,e,v,l,d,p;if(n instanceof tut){if(s=function(n,i,r){var f,e,s=n.shape.paths,u={},o;if(t(s,function(n){var i=sgt(r.zrId),o,t,v,y,s;i.animation=!0;uot(n,{},i,!0);var h=i.cssAnims,c=i.cssNodes,l=et(h),a=l.length;if(a){o=h[e=l[a-1]];for(t in o)v=o[t],u[t]=u[t]||{d:""},u[t].d+=v.d||"";for(y in c)s=c[y].animation,s.indexOf(e)>=0&&(f=s)}}),f)return i.d=!1,o=iur(u,r),f.replace(e,o)}(n,i,u),s)a.push(s);else if(!y)return}else if(!y)return;for(e={},v=0;v<y;v++){var h=w[v],c=[h.getMaxTime()/1e3+"s"],b=rur(h.getClip().easing),k=h.getDelay();b?c.push(b):c.push("linear");k&&c.push(k/1e3+"s");h.getLoop()&&c.push("infinite");l=c.join(" ");e[l]=e[l]||[l,[]];e[l][1].push(h)}for(d in e)(s=g(e[d]))&&a.push(s);a.length&&(p=u.zrId+"-cls-"+u.cssClassIdx++,u.cssNodes["."+p]={animation:a.join(",")},i.class=p)}function uur(n){return n&&o(n.src)}function fur(n){return n&&l(n.toDataURL)}function cgt(n,t,i,r){cau(function(u,f){var e="fill"===u||"stroke"===u;e&&ici(f)?vur(t,n,u,r):e&&uat(f)?yur(i,n,u,r):n[u]=f},t,i,!1),function(n,t,i){var u=n.style;if(function(n){return n&&(n.shadowBlur||n.shadowOffsetX||n.shadowOffsetY)}(u)){var o=function(n){var t=n.style,i=n.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),i[0],i[1]].join(",")}(n),s=i.shadowCache,r=s[o];if(!r){var h=n.getGlobalScale(),f=h[0],e=h[1];if(!f||!e)return;var a=u.shadowOffsetX||0,v=u.shadowOffsetY||0,c=u.shadowBlur,l=fk(u.shadowColor),y=l.opacity,p=l.color,w=c/2/f+" "+c/2/e;r=i.zrId+"-s"+i.shadowIdx++;i.defs[r]=di("filter",r,{id:r,x:"-100%",y:"-100%",width:"300%",height:"300%"},[di("feDropShadow","",{dx:a/f,dy:v/e,stdDeviation:w,"flood-color":p,"flood-opacity":y})]);s[o]=r}t.filter=ait(r)}}(i,n,r)}function eur(n){return eh(n[0]-1)&&eh(n[1])&&eh(n[2])&&eh(n[3]-1)}function lgt(n,t,i){if(t&&(!function(n){return eh(n[4])&&eh(n[5])}(t)||!eur(t))){var r=i?10:1e4;n.transform=eur(t)?"translate("+gp(t[4]*r)/r+" "+gp(t[5]*r)/r+")":function(n){return"matrix("+lit(n[0])+","+lit(n[1])+","+lit(n[2])+","+lit(n[3])+","+rat(n[4])+","+rat(n[5])+")"}(t)}}function our(n,t,i){for(var u=n.points,f=[],r=0;r<u.length;r++)f.push(gp(u[r][0]*i)/i),f.push(gp(u[r][1]*i)/i);t.points=f.join(" ")}function sur(n){return!n.smooth}function lur(n,t){var y=n.style,s=n.shape,e=cur[n.type],r={},p=t.animation,h="path",o=n.style.strokePercent,c=t.compress&&rci(n)||4,l,f,v;if(!e||t.willUpdate||e[1]&&!e[1](s)||p&&function(n){for(var i=n.animators,t=0;t<i.length;t++)if("shape"===i[t].targetName)return!0;return!1}(n)||o<1){l=!n.path||n.shapeChanged();n.path||n.createPathProxy();f=n.path;l&&(f.beginPath(),n.buildPath(f,n.shape),n.pathUpdated());var a=f.getVersion(),u=n,i=u.__svgPathBuilder;u.__svgPathVersion===a&&i&&o===u.__svgPathStrokePercent||(i||(i=u.__svgPathBuilder=new drr),i.reset(c),f.rebuildPath(i,o),i.generateStr(),u.__svgPathVersion=a,u.__svgPathStrokePercent=o);r.d=i.getStr()}else h=n.type,v=Math.pow(10,c),e[0](s,r,v);return lgt(r,n.transform),cgt(r,y,n,t),t.animation&&uot(n,r,t),di(h,n.id+"",r)}function aur(n,t){return n instanceof ut?lur(n,t):n instanceof wi?function(n,t){var r=n.style,i=r.image;if(i&&!o(i)&&(uur(i)?i=i.src:fur(i)&&(i=i.toDataURL())),i){var f=r.x||0,e=r.y||0,u={href:i,width:r.width,height:r.height};return f&&(u.x=f),e&&(u.y=e),lgt(u,n.transform),cgt(u,r,n,t),t.animation&&uot(n,u,t),di("image",n.id+"",u)}}(n,t):n instanceof ey?function(n,t){var i=n.style,u=i.text,a,e;if(null!=u&&(u+=""),u&&!isNaN(i.x)&&!isNaN(i.y)){var s=i.font||ds,h=i.x||0,c=function(n,t,i){return"top"===i?n+=t/2:"bottom"===i&&(n-=t/2),n}(i.y||0,git(s),i.textBaseline),r={"dominant-baseline":"central","text-anchor":dhi[i.textAlign]||i.textAlign};if(pai(i)){var f="",o=i.fontStyle,l=vai(i.fontSize);if(!parseFloat(l))return;a=i.fontFamily||aoi;e=i.fontWeight;f+="font-size:"+l+";font-family:"+a+";";o&&"normal"!==o&&(f+="font-style:"+o+";");e&&"normal"!==e&&(f+="font-weight:"+e+";");r.style=f}else r.style="font: "+s;return u.match(/\s/)&&(r["xml:space"]="preserve"),h&&(r.x=h),c&&(r.y=c),lgt(r,n.transform),cgt(r,i,n,t),t.animation&&uot(n,r,t),di("text",n.id+"",r,void 0,u)}}(n,t):void 0}function vur(n,t,i,r){var s,u=n[i],f={gradientUnits:u.global?"userSpaceOnUse":"objectBoundingBox"};if(nci(u))s="linearGradient",f.x1=u.x,f.y1=u.y,f.x2=u.x2,f.y2=u.y2;else{if(!tci(u))return void 0;s="radialGradient";f.cx=d(u.x,.5);f.cy=d(u.y,.5);f.r=d(u.r,.5)}for(var h=u.colorStops,c=[],o=0,w=h.length;o<w;++o){var b=100*rat(h[o].offset)+"%",a=fk(h[o].color),k=a.color,v=a.opacity,l={offset:b};l["stop-color"]=k;v<1&&(l["stop-opacity"]=v);c.push(di("stop",o+"",l))}var y=ogt(di(s,"",f,c)),p=r.gradientCache,e=p[y];e||(e=r.zrId+"-g"+r.gradientIdx++,p[y]=e,f.id=e,r.defs[e]=di(s,e,f,c));t[i]=ait(e)}function yur(n,t,i,r){var c,f=n.style[i],b=n.getBoundingRect(),u={},k=f.repeat,it="no-repeat"===k,rt="repeat-x"===k,ut="repeat-y"===k,d,g,a,v,p,nt;if(ghi(f)){var e=f.imageWidth,s=f.imageHeight,w=void 0,l=f.image;(o(l)?w=l:uur(l)?w=l.src:fur(l)&&(w=l.toDataURL()),"undefined"==typeof Image)?(d="Image width/height must been given explictly in svg-ssr renderer.",sr(e,d),sr(s,d)):(null==e||null==s)&&(g=function(n,t){if(n){var u=n.elm,i=e||t.width,r=s||t.height;"pattern"===n.tag&&(rt?(r=1,i/=b.width):ut&&(i=1,r/=b.height));n.attrs.width=i;n.attrs.height=r;u&&(u.setAttribute("width",i),u.setAttribute("height",r))}},a=pvt(w,null,n,function(n){it||g(tt,n);g(c,n)}),a&&a.width&&a.height&&(e=e||a.width,s=s||a.height));c=di("image","img",{href:w,width:e,height:s});u.width=e;u.height=s}else f.svgElement&&(c=y(f.svgElement),u.width=f.svgWidth,u.height=f.svgHeight);if(c){it?v=p=1:rt?(p=1,v=u.width/b.width):ut?(v=1,p=u.height/b.height):u.patternUnits="userSpaceOnUse";null==v||isNaN(v)||(u.width=v);null==p||isNaN(p)||(u.height=p);nt=uci(f);nt&&(u.patternTransform=nt);var tt=di("pattern","",u,[c]),ft=ogt(tt),et=r.patternCache,h=et[ft];h||(h=r.zrId+"-p"+r.patternIdx++,et[ft]=h,u.id=h,tt=r.defs[h]=di("pattern",h,u,[c]));t[i]=ait(h)}}function vau(n,t,i){var u=i.clipPathCache,e=i.defs,r=u[n.id],f;r||(f={id:r=i.zrId+"-c"+i.clipPathIdx++},u[n.id]=r,e[r]=di("clipPath",r,f,[lur(n,i)]));t["clip-path"]=ait(r)}function pur(n){return document.createTextNode(n)}function nw(n,t,i){n.insertBefore(t,i)}function wur(n,t){n.removeChild(t)}function bur(n,t){n.appendChild(t)}function kur(n){return n.parentNode}function dur(n){return n.nextSibling}function vgt(n,t){n.textContent=t}function ygt(n){return void 0===n}function wo(n){return void 0!==n}function yau(n,t,i){for(var f,u={},r=t;r<=i;++r)f=n[r].key,void 0!==f&&(u[f]=r);return u}function nn(n,t){var i=n.key===t.key;return n.tag===t.tag&&i}function fot(n){var t,i=n.children,e=n.tag,r,f;if(wo(e))if(r=n.elm=grr(e),pgt(gur,n),u(i))for(t=0;t<i.length;++t)f=i[t],null!=f&&bur(r,fot(f));else wo(n.text)&&!v(n.text)&&bur(r,pur(n.text));else n.elm=pur(n.text);return n.elm}function nfr(n,t,i,r,u){for(;r<=u;++r){var f=i[r];null!=f&&nw(n,fot(f),t)}}function eot(n,t,i,r){for(;i<=r;++i){var u=t[i];null!=u&&(wo(u.tag)?wur(kur(u.elm),u.elm):wur(n,u.elm))}}function pgt(n,t){var i,u=t.elm,e=n&&n.attrs||{},f=t.attrs||{},r;if(e!==f){for(i in f)r=f[i],e[i]!==r&&(!0===r?u.setAttribute(i,""):!1===r?u.removeAttribute(i):120!==i.charCodeAt(0)?u.setAttribute(i,r):"xmlns:xlink"===i||"xmlns"===i?u.setAttributeNS("http://www.w3.org/2000/xmlns/",i,r):58===i.charCodeAt(3)?u.setAttributeNS("http://www.w3.org/XML/1998/namespace",i,r):58===i.charCodeAt(5)?u.setAttributeNS(egt,i,r):u.setAttribute(i,r));for(i in e)i in f||u.removeAttribute(i)}}function tw(n,t){var r=t.elm=n.elm,i=n.children,u=t.children;n!==t&&(pgt(n,t),ygt(t.text)?wo(i)&&wo(u)?i!==u&&function(n,t,i){for(var l,a,v,s=0,c=0,e=t.length-1,u=t[0],f=t[e],o=i.length-1,r=i[0],h=i[o];s<=e&&c<=o;)null==u?u=t[++s]:null==f?f=t[--e]:null==r?r=i[++c]:null==h?h=i[--o]:nn(u,r)?(tw(u,r),u=t[++s],r=i[++c]):nn(f,h)?(tw(f,h),f=t[--e],h=i[--o]):nn(u,h)?(tw(u,h),nw(n,u.elm,dur(f.elm)),u=t[++s],h=i[--o]):nn(f,r)?(tw(f,r),nw(n,f.elm,u.elm),f=t[--e],r=i[++c]):(ygt(l)&&(l=yau(t,s,e)),ygt(a=l[r.key])||(v=t[a]).tag!==r.tag?nw(n,fot(r),u.elm):(tw(v,r),t[a]=void 0,nw(n,v.elm,u.elm)),r=i[++c]);(s<=e||c<=o)&&(s>e?nfr(n,null==i[o+1]?null:i[o+1].elm,i,c,o):eot(n,t,s,e))}(r,i,u):wo(u)?(wo(n.text)&&vgt(r,""),nfr(r,null,u,0,u.length-1)):wo(i)?eot(r,i,0,i.length-1):wo(n.text)&&vgt(r,""):n.text!==t.text&&(wo(i)&&eot(r,i,0,i.length-1),vgt(r,t.text)))}function rfr(){return function(){0}}function ufr(n,t,i){var u=df.createCanvas(),f=t.getWidth(),e=t.getHeight(),r=u.style;return r&&(r.position="absolute",r.left="0",r.top="0",r.width=f+"px",r.height=e+"px",u.setAttribute("data-zr-dom-id",n)),u.width=f*i,u.height=e*i,u}function iw(n,t){var i=n.mapDimensionsAll("defaultedLabel"),e=i.length,u,f,r;if(1===e)return u=sp(n,t,i[0]),null!=u?u+"":null;if(e){for(f=[],r=0;r<i.length;r++)f.push(sp(n,t,i[r]));return f.join(" ")}}function efr(n,t){var e=n.mapDimensionsAll("defaultedLabel"),r,i,f;if(!u(t))return t+"";for(r=[],i=0;i<e.length;i++)f=n.getDimensionIndex(e[i]),f>=0&&r.push(t[f]);return r.join(" ")}function bau(n,t){this.parent.drift(n,t)}function bgt(n,t,i,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r.isIgnore&&r.isIgnore(i))&&!(r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&"none"!==n.getItemVisual(i,"symbol")}function ofr(n){return null==n||v(n)||(n={isIgnore:n}),n||{}}function sfr(n){var t=n.hostModel,i=t.getModel("emphasis");return{emphasisItemStyle:i.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:i.get("focus"),blurScope:i.get("blurScope"),emphasisDisabled:i.get("disabled"),hoverScale:i.get("scale"),labelStatesModels:bi(t),cursorStyle:t.get("cursor")}}function hfr(n,t,i){var o=n.getBaseAxis(),s=n.getOtherAxis(o),l=function(n,t){var i=0,r=n.scale.getExtent();return"start"===t?i=r[0]:"end"===t?i=r[1]:ht(t)&&!isNaN(t)?i=t:r[0]>0?i=r[0]:r[1]<0&&(i=r[1]),i}(s,i),h=o.dim,u=s.dim,a=t.mapDimension(u),v=t.mapDimension(h),y="x"===u||"radius"===u?1:0,r=f(n.dimensions,function(n){return t.mapDimension(n)}),e=!1,c=t.getCalculationInfo("stackResultDimension");return as(t,r[0])&&(e=!0,r[0]=c),as(t,r[1])&&(e=!0,r[1]=c),{dataDimsForPoint:r,valueStart:l,valueAxisDim:u,baseAxisDim:h,stacked:!!e,valueDim:a,baseDim:v,baseDataOffset:y,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function cfr(n,t,i,r){var u=NaN,e,f;return n.stacked&&(u=i.get(i.getCalculationInfo("stackedOverDimension"),r)),isNaN(u)&&(u=n.valueStart),e=n.baseDataOffset,f=[],f[e]=i.get(n.baseDim,r),f[1-e]=u,t.dataToPoint(f)}function pa(n,t){return isNaN(n)||isNaN(t)}function kgt(n,t,i,r,u,f,e,o,s){for(var g,nt,ht,ct,v,a,h,c,ft,et,ot,pt,wt,l=i,tt=0;tt<r;tt++){if(h=t[2*l],c=t[2*l+1],l>=u||l<0)break;if(pa(h,c)){if(s){l+=f;continue}break}if(l===i)n[f>0?"moveTo":"lineTo"](h,c),ht=h,ct=c;else{if(ft=h-g,et=c-nt,ft*ft+et*et<.5){l+=f;continue}if(e>0){for(var it=l+f,y=t[2*it],p=t[2*it+1];y===h&&p===c&&tt<r;)tt++,l+=f,y=t[2*(it+=f)],p=t[2*it+1],ft=(h=t[2*l])-g,et=(c=t[2*l+1])-nt;if(ot=tt+1,s)for(;pa(y,p)&&ot<r;)ot++,y=t[2*(it+=f)],p=t[2*it+1];var st=.5,rt=0,ut=0,w=void 0,b=void 0;if(ot>=r||pa(y,p))v=h,a=c;else{rt=y-g;ut=p-nt;var lt=h-g,at=y-h,vt=c-nt,yt=p-c,k=void 0,d=void 0;"x"===o?(pt=rt>0?1:-1,v=h-pt*(k=Math.abs(lt))*e,a=c,w=h+pt*(d=Math.abs(at))*e,b=c):"y"===o?(wt=ut>0?1:-1,v=h,a=c-wt*(k=Math.abs(vt))*e,w=h,b=c+wt*(d=Math.abs(yt))*e):(k=Math.sqrt(lt*lt+vt*vt),v=h-rt*e*(1-(st=(d=Math.sqrt(at*at+yt*yt))/(d+k))),a=c-ut*e*(1-st),b=c+ut*e*st,w=vs(w=h+rt*e*st,ys(y,h)),b=vs(b,ys(p,c)),w=ys(w,vs(y,h)),a=c-(ut=(b=ys(b,vs(p,c)))-c)*k/d,v=vs(v=h-(rt=w-h)*k/d,ys(g,h)),a=vs(a,ys(nt,c)),w=h+(rt=h-(v=ys(v,vs(g,h))))*d/k,b=c+(ut=c-(a=ys(a,vs(nt,c))))*d/k)}n.bezierCurveTo(ht,ct,v,a,h,c);ht=w;ct=b}else n.lineTo(h,c)}g=h;nt=c;l+=f}return tt}function vfr(n,t,i,r,u){var s=n.getArea(),o=s.x,a=s.y,e=s.width,h=s.height,c=i.get(["lineStyle","width"])||2,f,p;if(o-=c/2,a-=c/2,e+=c,h+=c,o=Math.floor(o),e=Math.round(e),f=new ot({shape:{x:o,y:a,width:e,height:h}}),t){var v=n.getBaseAxis(),w=v.isHorizontal(),y=v.inverse;w?(y&&(f.shape.x+=e),f.shape.width=0):(y||(f.shape.y+=h),f.shape.height=0);p=l(u)?function(n){u(n,f)}:null;ii(f,{shape:{width:e,height:h,x:o,y:a}},i,null,r,p)}return f}function yfr(n,t,i){var r=n.getArea(),f=ri(r.r0,1),e=ri(r.r,1),u=new ur({shape:{cx:ri(n.cx,1),cy:ri(n.cy,1),r0:f,r:e,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});return t&&("angle"===n.getBaseAxis().dim?u.shape.endAngle=r.startAngle:u.shape.r=f,ii(u,{shape:{endAngle:r.endAngle,r:e}},i)),u}function sot(n,t,i,r,u){return n?"polar"===n.type?yfr(n,t,i):"cartesian2d"===n.type?vfr(n,t,i,r,u):null:null}function wa(n,t){return n.type===t}function pfr(n,t){if(n.length===t.length){for(var i=0;i<n.length;i++)if(n[i]!==t[i])return;return!0}}function wfr(n){for(var t,i,r=1/0,u=1/0,f=-1/0,e=-1/0,o=0;o<n.length;)t=n[o++],i=n[o++],isNaN(t)||(r=Math.min(t,r),f=Math.max(t,f)),isNaN(i)||(u=Math.min(i,u),e=Math.max(i,e));return[[r,u],[f,e]]}function bfr(n,t){var i=wfr(n),r=i[0],u=i[1],f=wfr(t),e=f[0],o=f[1];return Math.max(Math.abs(r[0]-e[0]),Math.abs(r[1]-e[1]),Math.abs(u[0]-o[0]),Math.abs(u[1]-o[1]))}function kfr(n){return ht(n)?n:n?.5:0}function ec(n,t,i,r){var l=t.getBaseAxis(),u="x"===l.dim||"radius"===l.dim?0:1,s=[],f=0,e=[],o=[],h=[],a=[],v,c;if(r){for(f=0;f<n.length;f+=2)isNaN(n[f])||isNaN(n[f+1])||a.push(n[f],n[f+1]);n=a}for(f=0;f<n.length-2;f+=2)switch(h[0]=n[f+2],h[1]=n[f+3],o[0]=n[f],o[1]=n[f+1],s.push(o[0],o[1]),i){case"end":e[u]=h[u];e[1-u]=o[1-u];s.push(e[0],e[1]);break;case"middle":v=(o[u]+h[u])/2;c=[];e[u]=c[u]=v;e[1-u]=o[1-u];c[1-u]=h[1-u];s.push(e[0],e[1]);s.push(c[0],c[1]);break;default:e[u]=o[u];e[1-u]=h[1-u];s.push(e[0],e[1])}return s.push(n[f++],n[f++]),s}function gau(n,i,r){var c=n.getVisual("visualMeta"),s,a,l,p,u,h,y;if(c&&c.length&&n.count()&&"cartesian2d"===i.type){for(l=c.length-1;l>=0;l--)if(p=n.getDimensionInfo(c[l].dimension),"x"===(s=p&&p.coordDim)||"y"===s){a=c[l];break}if(a){var b=i.getAxis(s),e=f(a.stops,function(n){return{coord:b.toGlobalCoord(b.dataToCoord(n.value)),color:n.color}}),v=e.length,o=a.outerColors.slice();if(v&&e[0].coord>e[v-1].coord&&(e.reverse(),o.reverse()),u=function(n,t){function f(n,t,i){var r=n.coord;return{coord:i,color:iat((i-r)/(t.coord-r),[n.color,t.color])}}for(var i,s,r,e,u=[],h=n.length,o=0;o<h;o++)if(i=n[o],s=i.coord,s<0)r=i;else{if(s>t){e?u.push(f(e,i,t)):r&&u.push(f(r,i,0),f(r,i,t));break}r&&(u.push(f(r,i,0)),r=null);u.push(i);e=i}return u}(e,"x"===s?r.getWidth():r.getHeight()),h=u.length,!h&&v)return e[0].coord<0?o[1]?o[1]:e[v-1].color:o[0]?o[0]:e[0].color;var w=u[0].coord-10,k=u[h-1].coord+10,d=k-w;return d<.001?"transparent":(t(u,function(n){n.offset=(n.coord-w)/d}),u.push({offset:h?u[h-1].offset:.5,color:o[1]||"transparent"}),u.unshift({offset:h?u[0].offset:.5,color:o[0]||"transparent"}),y=new ay(0,0,0,0,u,!0),y[s]=w,y[s+"2"]=k,y)}}}function nvu(n,i,r){var e=n.get("showAllSymbol"),o="auto"===e,u,s,f;if((!e||o)&&(u=r.getAxesByScale("ordinal")[0],u&&(!o||!function(n,t){var u=n.getExtent(),i=Math.abs(u[1]-u[0])/n.scale.count();isNaN(i)&&(i=0);for(var f=t.count(),e=Math.max(1,Math.round(f/5)),r=0;r<f;r+=e)if(1.5*rw.getSymbolSize(t,r)[n.isHorizontal()?1:0]>i)return!1;return!0}(u,i))))return s=i.mapDimension(u.dim),f={},t(u.getViewLabels(),function(n){var t=u.scale.getRawOrdinalNumber(n.tickValue);f[t]=1}),function(n){return!f.hasOwnProperty(i.get(s,n))}}function dfr(n,t){return[n[2*t],n[2*t+1]]}function gfr(n){if(n.get(["endLabel","show"]))return!0;for(var t=0;t<dr.length;t++)if(n.get([dr[t],"endLabel","show"]))return!0;return!1}function dgt(n,t,i,r){var u,f;if(wa(t,"cartesian2d")){var h=r.getModel("endLabel"),c=h.get("valueAnimation"),l=r.getData(),e={lastFrameIndex:0},o=gfr(r)?function(i,r){n._endLabelOnDuring(i,r,l,e,c,h,t)}:null,a=t.getBaseAxis().isHorizontal(),s=vfr(t,i,r,function(){var t=n._endLabel;t&&i&&null!=e.originalX&&t.attr({x:e.originalX,y:e.originalY})},o);return r.get("clip",!0)||(u=s.shape,f=Math.max(u.width,u.height),a?(u.y-=f,u.height+=2*f):(u.x-=f,u.width+=2*f)),o&&o(1,s),s}return yfr(t,i,r)}function rn(n,t){return{seriesType:n,plan:hp(),reset:function(n){var i=n.getData(),u=n.coordinateSystem,l=n.pipelineContext,e=t||l.large;if(u){var r=f(u.dimensions,function(n){return i.mapDimension(n)}).slice(0,2),o=r.length,h=i.getCalculationInfo("stackResultDimension");as(i,r[0])&&(r[0]=h);as(i,r[1])&&(r[1]=h);var s=i.getStore(),c=i.getDimensionIndex(r[0]),a=i.getDimensionIndex(r[1]);return o&&{progress:function(n,t){for(var r,y,p=n.end-n.start,f=e&&vo(p*o),h=[],l=[],i=n.start,v=0;i<n.end;i++)r=void 0,1===o?(y=s.get(c,i),r=u.dataToPoint(y,null,l)):(h[0]=s.get(c,i),h[1]=s.get(a,i),r=u.dataToPoint(h,null,l)),e?(f[v++]=r[0],f[v++]=r[1]):t.setItemLayout(i,r.slice());e&&t.setLayout("points",f)}}}}}}function rer(n){return{seriesType:n,reset:function(n,t,i){var u=n.getData(),r=n.get("sampling"),s=n.coordinateSystem,h=u.count(),f;if(h>10&&"cartesian2d"===s.type&&r){var c=s.getBaseAxis(),a=s.getOtherAxis(c),v=c.getExtent(),y=i.getDevicePixelRatio(),p=Math.abs(v[1]-v[0])*(y||1),e=Math.round(h/p);isFinite(e)&&e>1&&("lttb"===r&&n.setData(u.lttbDownSample(u.mapDimension(a.dim),1/e)),f=void 0,o(r)?f=ter[r]:l(r)&&(f=r),f&&n.setData(u.downSample(u.mapDimension(a.dim),1/e,f,ier)))}}}}function cot(n,t,i){return t*Math.sin(n)*(i?-1:1)}function lot(n,t,i){return t*Math.cos(n)*(i?1:-1)}function ba(n,t,i){var r=n.get("borderRadius"),e;return null==r?i?{cornerRadius:0}:null:(u(r)||(r=[r,r,r,r]),e=Math.abs(t.r||0-t.r0||0),{cornerRadius:f(r,function(n){return re(n,e)})})}function eer(n,t,i,r,u,f,e,o){var s,h;f?(h={x:r.x,width:r.width},s={y:r.y,height:r.height}):(h={y:r.y,height:r.height},s={x:r.x,width:r.width});o||(e?lt:ii)(i,{shape:s},t,u,null);(e?lt:ii)(i,{shape:h},t?n.baseAxis.model:null,u)}function oer(n,t){for(var i=0;i<t.length;i++)if(!isFinite(n[t[i]]))return!0;return!1}function her(n){return function(n){var t=n?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+t;default:return n}}}(n)}function cer(n,i,f,e,o,s,h,c){var y=i.getItemVisual(f,"style"),l,d,p,w,b,k,a,v;c?s.get("roundCap")||(l=n.shape,r(l,ba(e.getModel("itemStyle"),l,!0)),n.setShape(l)):(d=e.get(["itemStyle","borderRadius"])||0,n.setShape("r",d));n.useStyle(y);p=e.getShallow("cursor");p&&n.attr("cursor",p);w=c?h?o.r>=o.r0?"endArc":"startArc":o.endAngle>=o.startAngle?"endAngle":"startAngle":h?o.height>=0?"bottom":"top":o.width>=0?"right":"left";b=bi(e);or(n,b,{labelFetcher:s,labelDataIndex:f,defaultText:iw(s.getData(),f),inheritColor:y.fill,defaultOpacity:y.opacity,defaultOutsidePosition:w});k=n.getTextContent();c&&k&&(a=e.get(["label","position"]),n.textConfig.inside="middle"===a||null,function(n,t,i,r){var e;if(ht(r))n.setTextConfig({rotation:r});else if(u(t))n.setTextConfig({rotation:0});else{var o,f=n.shape,s=f.clockwise?f.startAngle:f.endAngle,h=f.clockwise?f.endAngle:f.startAngle,l=(s+h)/2,c=i(t);switch(c){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":o=l;break;case"startAngle":case"insideStartAngle":o=s;break;case"endAngle":case"insideEndAngle":o=h;break;default:return void n.setTextConfig({rotation:0})}e=1.5*Math.PI-o;"middle"===c&&e>Math.PI/2&&e<1.5*Math.PI&&(e-=Math.PI);n.setTextConfig({rotation:e})}}(n,"outside"===a?w:a,her(h),e.get(["label","rotate"])));ppi(k,b,s.getRawValue(f),function(n){return efr(i,n)});v=e.getModel(["emphasis"]);ui(n,v.get("focus"),v.get("blurScope"),v.get("disabled"));rr(n,e),function(n){return null!=n.startAngle&&null!=n.endAngle&&n.startAngle===n.endAngle}(o)&&(n.style.fill="none",n.style.stroke="none",t(n.states,function(n){n.style&&(n.style.fill=n.style.stroke="none")}))}function aer(n,t,i,r){var e=n.getData(),o=e.getLayout("valueAxisHorizontal")?1:0,s=e.getLayout("largeDataIndices"),h=e.getLayout("size"),l=n.getModel("backgroundStyle"),c=e.getLayout("largeBackgroundPoints"),f,u;c&&(f=new tnt({shape:{points:c},incremental:!!r,silent:!0,z2:0}),f.baseDimIdx=o,f.largeDataIndices=s,f.barWidth=h,f.useStyle(l.getItemStyle()),t.add(f),i&&i.push(f));u=new tnt({shape:{points:e.getLayout("largePoints")},incremental:!!r,ignoreCoarsePointer:!0,z2:1});u.baseDimIdx=o;u.largeDataIndices=s;u.barWidth=h;t.add(u);u.useStyle(e.getVisual("style"));b(u).seriesIndex=n.seriesIndex;n.get("silent")||(u.on("mousedown",int),u.on("mousemove",int));i&&i.push(u)}function ver(n,t,i){var u,r,f;return wa(i,"cartesian2d")?(u=t,r=i.getArea(),{x:n?u.x:r.x,y:n?r.y:u.y,width:n?u.width:r.width,height:n?r.height:u.height}):(f=t,{cx:(r=i.getArea()).cx,cy:r.cy,r0:n?r.r0:f.r0,r:n?r.r:f.r,startAngle:n?f.startAngle:0,endAngle:n?f.endAngle:2*Math.PI})}function yer(n,t){return ci(n.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function per(n,t){var f=yer(n,t),i=n.get("center"),r=n.get("radius"),h;u(r)||(r=[0,r]);var o,s,c=e(f.width,t.getWidth()),l=e(f.height,t.getHeight()),a=Math.min(c,l),y=e(r[0],a/2),p=e(r[1],a/2),v=n.coordinateSystem;return v?(h=v.dataToPoint(i),o=h[0]||0,s=h[1]||0):(u(i)||(i=[i,i]),o=e(i[0],c)+f.x,s=e(i[1],l)+f.y),{cx:o,cy:s,r0:y,r:p}}function evu(n,t,i){t.eachSeriesByType(n,function(n){var t=n.getData(),u=t.mapDimension("value"),tt=yer(n,i),s=per(n,i),b=s.cx,k=s.cy,h=s.r,y=s.r0,c=-n.get("startAngle")*rnt,f=n.get("minAngle")*rnt,e=0,v;t.each(u,function(n){isNaN(n)||e++});var d=t.getSum(u),l=Math.PI/(d||e)*2,p=n.get("clockwise"),w=n.get("roseType"),it=n.get("stillShowZeroSum"),g=t.getDataExtent(u);g[0]=0;var a=un,nt=0,r=c,o=p?1:-1;(t.setLayout({viewRect:tt,r:h}),t.each(u,function(n,i){var u,s;isNaN(n)?t.setItemLayout(i,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:p,cx:b,cy:k,r0:y,r:w?NaN:h}):((u="area"!==w?0===d&&it?l:n*l:un/e)<f?(u=f,a-=f):nt+=n,s=r+o*u,t.setItemLayout(i,{angle:u,startAngle:r,endAngle:s,clockwise:p,cx:b,cy:k,r0:y,r:w?pt(n,g,[y,h]):h}),r=s)}),a<un&&e)&&(a<=.001?(v=un/e,t.each(u,function(n,i){if(!isNaN(n)){var r=t.getItemLayout(i);r.angle=v;r.startAngle=c+o*i*v;r.endAngle=c+o*(i+1)*v}})):(l=a/nt,r=c,t.each(u,function(n,i){if(!isNaN(n)){var u=t.getItemLayout(i),e=u.angle===f?f:n*l;u.startAngle=r;u.endAngle=r+o*e;r+=o*e}})))})}function fn(n){return{seriesType:n,reset:function(n,t){var i=t.findComponents({mainType:"legend"}),r;i&&i.length&&(r=n.getData(),r.filterSelf(function(n){for(var u=r.getName(n),t=0;t<i.length;t++)if(!i[t].isSelected(u))return!1;return!0}))}}}function ber(n,t,i,r,u,f,e,o,s,h){function v(n){for(var o=n.rB,l=o*o,e=0;e<n.list.length;e++){var f=n.list[e],s=Math.abs(f.label.y-i),h=r+f.len,a=h*h,v=Math.sqrt((1-Math.abs(s*s/l))*a),c=t+(v+f.len2)*u,y=c-f.label.x;ker(f,f.targetTextWidth-y*u,!0);f.label.x=c}}var l,c,a;if(!(n.length<2)){for(l=n.length,c=0;c<l;c++)"outer"===n[c].position&&"labelLine"===n[c].labelAlignTo&&(a=n[c].label.x-h,n[c].linePoints[1][0]+=a,n[c].label.x=h);prr(n,s,s+e)&&function(n){for(var l={list:[],maxY:0},a={list:[],maxY:0},e=0;e<n.length;e++)if("none"===n[e].labelAlignTo){var f=n[e],o=f.label.y>i?a:l,s=Math.abs(f.label.y-i);if(s>=o.maxY){var c=f.label.x-t-f.len2*u,h=r+f.len,y=Math.abs(c)<h?Math.sqrt(s*s/(1-c*c/h/h)):h;o.rB=y;o.maxY=s}o.list.push(f)}v(l);v(a)}(n)}}function ker(n,t,i){var v,y,f,p,h,w;if(void 0===i&&(i=!1),null==n.labelStyleWidth){var r=n.label,e=r.style,u=n.rect,c=e.backgroundColor,o=e.padding,s=o?o[1]+o[3]:0,l=e.overflow,a=u.width+(c?0:s);(t<a||i)&&(v=u.height,l&&l.match("break")?(r.setStyle("backgroundColor",null),r.setStyle("width",t-s),y=r.getBoundingRect(),r.setStyle("width",Math.ceil(y.width)),r.setStyle("backgroundColor",c)):(f=t-s,p=t<a?f:i?f>n.unconstrainedWidth?null:f:null,r.setStyle("width",p)),h=r.getBoundingRect(),u.width=h.width,w=(r.style.margin||0)+2.1,u.height=h.height+w,u.y-=(u.height-v)/2)}}function unt(n){return"center"===n.position}function ovu(n){function c(n){n.ignore=!0}var y,p,f=n.getData(),s=[],k=!1,nt=(n.get("minShowLabelAngle")||0)*wer,h=f.getLayout("viewRect"),w=f.getLayout("r"),o=h.width,b=h.x,tt=h.y,it=h.height,l,v,u;for(f.each(function(n){var ot=f.getItemGraphicEl(n),i=ot.shape,r=ot.getTextContent(),st=ot.getTextGuideLine(),kt=f.getItemModel(n),d=kt.getModel("label"),h=d.get("position")||kt.get(["emphasis","label","position"]),dt=d.get("distanceToLabelLine"),gt=d.get("alignTo"),ni=e(d.get("edgeDistance"),o),ei=d.get("bleedMargin"),ct=kt.getModel("labelLine"),rt=ct.get("length"),ut,a,pt,wt,v,bt,it,ii;if(rt=e(rt,o),ut=ct.get("length2"),ut=e(ut,o),Math.abs(i.endAngle-i.startAngle)<nt)return t(r.states,c),r.ignore=!0,void(st&&(t(st.states,c),st.ignore=!0));if(function(n){if(!n.ignore)return!0;for(var t in n.states)if(!1===n.states[t].ignore)return!0;return!1}(r)){var lt,at,ri,vt,yt=(i.startAngle+i.endAngle)/2,u=Math.cos(yt),l=Math.sin(yt);if(y=i.cx,p=i.cy,a="inside"===h||"inner"===h,"center"===h)lt=i.cx,at=i.cy,vt="center";else{if(pt=(a?(i.r+i.r0)/2*u:i.r*u)+y,wt=(a?(i.r+i.r0)/2*l:i.r*l)+p,lt=pt+3*u,at=wt+3*l,!a){var ui=pt+u*(rt+w-i.r),ti=wt+l*(rt+w-i.r),fi=ui+(u<0?-1:1)*ut;lt="edge"===gt?u<0?b+ni:b+o-ni:fi+(u<0?-dt:dt);at=ti;ri=[[pt,wt],[ui,ti],[fi,ti]]}vt=a?"center":"edge"===gt?u>0?"right":"left":u>0?"left":"right"}var ft=Math.PI,tt=0,et=d.get("rotate");ht(et)?tt=et*(ft/180):"center"===h?tt=0:"radial"===et||!0===et?tt=u<0?-yt+ft:-yt:"tangential"===et&&"outside"!==h&&"outer"!==h&&(v=Math.atan2(u,l),v<0&&(v=2*ft+v),l>0&&(v=ft+v),tt=v-ft);(k=!!tt,r.x=lt,r.y=at,r.rotation=tt,r.setStyle({verticalAlign:"middle"}),a)?(r.setStyle({align:vt}),bt=r.states.select,bt&&(bt.x+=r.x,bt.y+=r.y)):(it=r.getBoundingRect().clone(),it.applyTransform(r.getComputedTransform()),ii=(r.style.margin||0)+2.1,it.y-=ii/2,it.height+=ii,s.push({label:r,labelLine:st,position:h,len:rt,len2:ut,minTurnAngle:ct.get("minTurnAngle"),maxSurfaceAngle:ct.get("maxSurfaceAngle"),surfaceNormal:new g(u,l),linePoints:ri,textAlign:vt,labelDistance:dt,labelAlignTo:gt,edgeDistance:ni,bleedMargin:ei,rect:it,unconstrainedWidth:it.width,labelStyleWidth:r.style.width}));ot.setTextConfig({inside:a})}}),!k&&n.get("avoidLabelOverlap")&&function(n,t,i,r,u,f,e,o){for(var h,l,y,s,w=[],b=[],a=Number.MAX_VALUE,v=-Number.MAX_VALUE,c=0;c<n.length;c++)h=n[c].label,unt(n[c])||(h.x<t?(a=Math.min(a,h.x),w.push(n[c])):(v=Math.max(v,h.x),b.push(n[c])));for(c=0;c<n.length;c++)if(!unt(s=n[c])&&s.linePoints){if(null!=s.labelStyleWidth)continue;h=s.label;l=s.linePoints;y=void 0;y="edge"===s.labelAlignTo?h.x<t?l[2][0]-s.labelDistance-e-s.edgeDistance:e+u-s.edgeDistance-l[2][0]-s.labelDistance:"labelLine"===s.labelAlignTo?h.x<t?a-e-s.bleedMargin:e+u-v-s.bleedMargin:h.x<t?h.x-e-s.bleedMargin:e+u-h.x-s.bleedMargin;s.targetTextWidth=y;ker(s,y)}for(ber(b,t,i,r,1,0,f,0,o,v),ber(w,t,i,r,-1,0,f,0,o,a),c=0;c<n.length;c++)if(!unt(s=n[c])&&s.linePoints){h=s.label;l=s.linePoints;var d="edge"===s.labelAlignTo,p=h.style.padding,g=p?p[1]+p[3]:0,nt=h.style.backgroundColor?0:g,k=s.rect.width+nt,tt=l[1][0]-l[2][0];d?l[2][0]=h.x<t?e+s.edgeDistance+k+s.labelDistance:e+u-s.edgeDistance-k-s.labelDistance:(l[2][0]=h.x<t?h.x+s.labelDistance:h.x-s.labelDistance,l[1][0]=l[2][0]+tt);l[1][1]=l[2][1]=h.y}}(s,y,p,w,o,it,b,tt),l=0;l<s.length;l++){var r=s[l],i=r.label,a=r.labelLine,d=isNaN(i.x)||isNaN(i.y);i&&(i.setStyle({align:r.textAlign}),d&&(t(i.states,c),i.ignore=!0),v=i.states.select,v&&(v.x+=i.x,v.y+=i.y));a&&(u=r.linePoints,d||!u?(t(a.states,c),a.ignore=!0):(lrr(u,r.minTurnAngle),tau(u,r.surfaceNormal,r.maxSurfaceAngle),a.setShape({points:u}),i.__hostTarget.textGuideLineConfig={anchor:new g(u[0][0],u[0][1])}))}}function ew(n,t,i){t=u(t)&&{coordDimensions:t}||r({encodeDefine:n.getEncode()},t);var f=n.getSource(),o=bp(f,t).dimensions,e=new yr(o,n);return e.initData(f,i),e}function ow(n,r,u,f){t(bvu,function(t,e){var o=k(k({},tor[e],!0),f,!0),s=function(n){function t(){var t=null!==n&&n.apply(this,arguments)||this;return t.type=r+"Axis."+e,t}return i(t,n),t.prototype.mergeDefaultAndTheme=function(n,t){var i=ad(this),r=i?tp(n):{};k(n,t.getTheme().get(e+"Axis"));k(n,this.getDefaultOption());n.type=ior(n);i&&dh(n,r,i)},t.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=aet.createByAxisModel(this))},t.prototype.getCategories=function(n){var t=this.option;if("category"===t.type)return n?t.data:this.__ordinalMeta.categories},t.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},t.type=r+"Axis."+e,t.defaultOption=o,t}(u);n.registerComponentModel(s)});n.registerSubTypeDefaulter(r+"Axis",ior)}function ior(n){return n.type||(n.data?"category":"value")}function uor(n){return"interval"===n.type||"time"===n.type}function ont(n,t,i){var p,y;i=i||{};var w=n.coordinateSystem,l=t.axis,r={},o=l.getAxesOnZeroOf()[0],a=l.position,v=o?"onZero":a,h=l.dim,f=w.getRect(),e=[f.x,f.x+f.width,f.y,f.y+f.height],s={left:0,right:1,top:0,bottom:1,onZero:2},c=t.get("offset")||0,u="x"===h?[e[2]-c,e[3]+c]:[e[0]-c,e[1]+c];return o&&(p=o.toGlobalCoord(o.dataToCoord(0)),u[s.onZero]=Math.max(Math.min(p,u[1]),u[0])),r.position=["y"===h?u[s[v]]:e[0],"x"===h?u[s[v]]:e[3]],r.rotation=Math.PI/2*("x"===h?0:1),r.labelDirection=r.tickDirection=r.nameDirection={top:-1,bottom:1,left:-1,right:1}[a],r.labelOffset=o?u[s[a]]-u[s.onZero]:0,t.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),yi(i.labelInside,t.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection),y=t.get(["axisLabel","rotate"]),r.labelRotate="top"===v?-y:y,r.z2=1,r}function sor(n){return"cartesian2d"===n.get("coordinateSystem")}function hor(n){var i={xAxisModel:null,yAxisModel:null};return t(i,function(t,r){var u=r.replace(/Model$/,""),f=n.getReferringComponents(u,oi).models[0];i[r]=f}),i}function cor(n,t,i){var s=ao.prototype,a=s.getTicks.call(i),k=s.getTicks.call(i,!0),e=a.length-1,d=s.getInterval.call(i),v=air(n,t),r=v.extent,h=v.fixMin,c=v.fixMax,y,p,l,w,b;"log"===n.type&&(y=yot(n.base),r=[yot(r[0])/y,yot(r[1])/y]);n.setExtent(r[0],r[1]);n.calcNiceExtent({splitNumber:e,fixMin:h,fixMax:c});p=s.getExtent.call(n);h&&(r[0]=p[0]);c&&(r[1]=p[1]);var u=s.getInterval.call(n),o=r[0],f=r[1];if(h&&c)u=(f-o)/e;else if(h)for(f=r[0]+u*e;f<r[1]&&isFinite(f)&&isFinite(r[1]);)u=hdt(u),f=r[0]+u*e;else if(c)for(o=r[1]-u*e;o>r[0]&&isFinite(o)&&isFinite(r[0]);)u=hdt(u),o=r[1]-u*e;else n.getTicks().length-1>e&&(u=hdt(u)),l=u*e,(o=ri((f=Math.ceil(r[1]/u)*u)-l))<0&&r[0]>=0?(o=0,f=ri(l)):f>0&&r[1]<=0&&(f=0,o=-ri(l));w=(a[0].value-k[0].value)/d;b=(a[e].value-k[e].value)/d;s.setExtent.call(n,o+u*w,f+u*b);s.setInterval.call(n,u);(w||b)&&s.setNiceExtent.call(n,o+u,f-u)}function snt(n,t){return n.getCoordSysModel()===t}function aor(n,t,i,r){function h(n){return n.dim+"_"+n.index}var e;i.getAxesOnZeroOf=function(){return f?[f]:[]};var f,u=n[t],s=i.model,c=s.get(["axisLine","onZero"]),o=s.get(["axisLine","onZeroAxisIndex"]);if(c){if(null!=o)vor(u[o])&&(f=u[o]);else for(e in u)if(u.hasOwnProperty(e)&&vor(u[e])&&!r[h(u[e])]){f=u[e];break}f&&(r[h(f)]=!0)}}function vor(n){return n&&"category"!==n.type&&"time"!==n.type&&function(n){var t=n.scale.getExtent(),i=t[0],r=t[1];return!(i>0&&r>0||i<0&&r<0)}(n)}function pf(n){n&&(n.ignore=!0)}function por(n,t){var r=n&&n.getBoundingRect().clone(),u=t&&t.getBoundingRect().clone(),i;if(r&&u)return i=vb([]),th(i,i,-n.rotation),r.applyTransform(ge([],i,n.getLocalTransform())),u.applyTransform(ge([],i,t.getLocalTransform())),r.intersect(u)}function wor(n){return"middle"===n||"center"===n}function bor(n,t,i,r,u){for(var h,o,c=[],f=[],e=[],s=0;s<n.length;s++)h=n[s].coord,f[0]=h,f[1]=0,e[0]=h,e[1]=i,t&&(nr(f,f,t),nr(e,e,t)),o=new vi({shape:{x1:f[0],y1:f[1],x2:e[0],y2:e[1]},style:r,z2:2,autoBatch:!0,silent:!0}),py(o.shape,o.style.lineWidth),o.anid=u+"_"+n[s].tickValue,c.push(o);return c}function kvu(n,i){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(n,i,r){var f=i.getComponent("tooltip"),u=i.getComponent("axisPointer"),e=u.get("link",!0)||[],o=[];t(r.getCoordinateSystems(),function(r){function l(f,h,c){var l=c.model.getModel("axisPointer",u),d=l.get("show"),p,b;if(d&&("auto"!==d||f||lnt(l))){null==h&&(h=l.get("triggerTooltip"));l=f?function(n,i,r,u,f,e){var h=i.getModel("axisPointer"),o={},s,c,l;return t(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(n){o[n]=y(h.get(n))}),o.snap="category"!==n.type&&!!e,"cross"===h.get("type")&&(o.type="line"),s=o.label||(o.label={}),(null==s.show&&(s.show=!1),"cross"===f)&&(c=h.get(["label","show"]),(s.show=null==c||c,e)||(l=o.lineStyle=h.get("crossStyle"),l&&a(s,l.textStyle))),n.model.getModel("axisPointer",new at(o,r,u))}(c,s,u,i,f,h):l;var g=l.get("snap"),tt=l.get("triggerEmphasis"),w=on(c.model),nt=h||g||"category"===c.type,k=n.axesInfo[w]={key:w,axis:c,coordSys:r,axisPointerModel:l,triggerTooltip:h,triggerEmphasis:tt,involveSeries:nt,snap:g,useHandle:lnt(l),seriesModels:[],linkGroup:null};v[w]=k;n.seriesInvolved=n.seriesInvolved||nt;p=function(n,t){for(var r,u=t.model,f=t.dim,i=0;i<n.length;i++)if(r=n[i]||{},hnt(r[f+"AxisId"],u.id)||hnt(r[f+"AxisIndex"],u.componentIndex)||hnt(r[f+"AxisName"],u.name))return i}(e,c);null!=p&&(b=o[p]||(o[p]={axesInfo:{}}),b.axesInfo[w]=k,b.mapper=e[p].mapper,k.linkGroup=b)}}var h,v,s;if(r.axisPointerEnabled&&(h=on(r.model),v=n.coordSysAxesInfo[h]={},n.coordSysMap[h]=r,s=r.model.getModel("tooltip",f),t(r.getAxes(),w(l,!1,null)),r.getTooltipAxes&&f&&s.get("show"))){var p="axis"===s.get("trigger"),c="cross"===s.get(["axisPointer","type"]),b=r.getTooltipAxes(s.get(["axisPointer","axis"]));(p||c)&&t(b.baseAxes,w(l,!c||"cross",p));c&&t(b.otherAxes,w(l,"cross",!1))}})}(r,n,i),r.seriesInvolved&&function(n,i){i.eachSeries(function(i){var r=i.coordinateSystem,u=i.get(["tooltip","trigger"],!0),f=i.get(["tooltip","show"],!0);r&&"none"!==u&&!1!==u&&"item"!==u&&!1!==f&&!1!==i.get(["axisPointer","show"],!0)&&t(n.coordSysAxesInfo[on(r.model)],function(n){var t=n.axis;r.getAxis(t.dim)===t&&(n.seriesModels.push(i),null==n.seriesDataCount&&(n.seriesDataCount=0),n.seriesDataCount+=i.getData().count())})})}(r,n),r}function hnt(n,t){return"all"===n||u(n)&&tt(n,t)>=0||n===t}function dvu(n){var r=cnt(n),e,i;if(r){var u=r.axisPointerModel,o=r.axis.scale,f=u.option,s=u.get("status"),t=u.get("value");null!=t&&(t=o.parse(t));e=lnt(u);null==s&&(f.status=e?"show":"hide");i=o.getExtent().slice();i[0]>i[1]&&i.reverse();(null==t||t>i[1])&&(t=i[1]);t<i[0]&&(t=i[0]);f.value=t;e&&(f.status=r.axis.scale.isBlank()?"hide":"show")}}function cnt(n){var t=(n.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[on(n)]}function lnt(n){return!!n.get(["handle","show"])}function on(n){return n.type+"||"+n.id}function dor(n,t,i,r){var s=i.axis,f,d,l,ut,p;if(!s.scale.isBlank()){var nt=i.getModel("splitArea"),tt=nt.getModel("areaStyle"),o=tt.get("color"),w=r.coordinateSystem.getRect(),e=s.getTicksCoords({tickModel:nt,clamp:!0});if(e.length){var k=o.length,it=ant(n).splitAreaColors,rt=c(),h=0;if(it)for(f=0;f<e.length;f++)if(d=it.get(e[f].tickValue),null!=d){h=(d+(k-1)*f)%k;break}for(l=s.toGlobalCoord(e[0].coord),ut=tt.getAreaStyle(),o=u(o)?o:[o],f=1;f<e.length;f++){var ft=s.toGlobalCoord(e[f].coord),v=void 0,y=void 0,b=void 0,g=void 0;s.isHorizontal()?(v=l,y=w.y,b=ft-v,g=w.height,l=v+b):(v=w.x,y=l,b=w.width,l=y+(g=ft-y));p=e[f-1].tickValue;null!=p&&rt.set(p,h);t.add(new ot({anid:null!=p?"area_"+p:null,shape:{x:v,y:y,width:b,height:g},style:a({fill:o[h]},ut),autoBatch:!0,silent:!0}));h=(h+1)%k}ant(n).splitAreaColors=rt}}}function gor(n){ant(n).splitAreaColors=null}function rsr(n){n.registerComponentView(ryu);n.registerComponentModel(pvu);n.registerCoordinateSystem("cartesian2d",lor);ow(n,"x",fnt,isr);ow(n,"y",fnt,isr);n.registerComponentView(tsr);n.registerComponentView(iyu);n.registerPreprocessor(function(n){n.xAxis&&n.yAxis&&!n.grid&&(n.grid={})})}function uyu(n){n.eachSeriesByType("radar",function(n){var u=n.getData(),i=[],r=n.coordinateSystem,f;r&&(f=r.getIndicatorAxes(),t(f,function(n,t){u.each(u.mapDimension(f[t].dim),function(n,u){i[u]=i[u]||[];var f=r.dataToPoint(n,t);i[u][t]=usr(f)?f:fsr(r)})}),u.each(function(n){var t=doi(i[n],function(n){return usr(n)})||fsr(r);i[n].push(t.slice());u.setItemLayout(n,i[n])}))})}function usr(n){return!isNaN(n[0])&&!isNaN(n[1])}function fsr(n){return[n.cx,n.cy]}function fyu(n){var i=n.polar,r;i&&(u(i)||(i=[i]),r=[],t(i,function(t){t.indicator?(t.type&&!t.shape&&(t.shape=t.type),n.radar=n.radar||[],u(n.radar)||(n.radar=[n.radar]),n.radar.push(t)):r.push(t)}),n.polar=r);t(n.series,function(n){n&&"radar"===n.type&&n.polarIndex&&(n.radarIndex=n.polarIndex)})}function pot(n,t){return a({show:t},n)}function vyu(n){n.registerCoordinateSystem("radar",ayu);n.registerComponentModel(syu);n.registerComponentView(cyu);n.registerVisual({seriesType:"radar",reset:function(n){var t=n.getData();t.each(function(n){t.setItemVisual(n,"legendIcon","roundRect")});t.setVisual("legendIcon","roundRect")}})}function esr(n,t){return!!ynt(n)[t]}function ynt(n){return n[vnt]||(n[vnt]={})}function pnt(n,t,i,r,u){n.pointerChecker&&n.pointerChecker(r,u.originX,u.originY)&&(de(r.event),osr(n,t,i,r,u))}function osr(n,t,i,r,u){u.isAvailableBehavior=s(wot,null,i,r);n.trigger(t,u)}function wot(n,t,i){var r=i[n];return!n||r&&(!o(r)||t.event[r+"Key"])}function wnt(n,t,i){var r=n.target;r.x+=t;r.y+=i;r.dirty()}function bnt(n,t,i,r){var u=n.target,o=n.zoomLimit,f=n.zoom=n.zoom||1,s,h,e;(f*=t,o)&&(s=o.min||0,h=o.max||1/0,f=Math.max(Math.min(h,f),s));e=f/n.zoom;n.zoom=f;u.x-=(i-u.x)*(e-1);u.y-=(r-u.y)*(e-1);u.scaleX*=e;u.scaleY*=e;u.dirty()}function bot(n,t,i){var r=t.getComponentByElement(n.topTarget),u=r&&r.coordinateSystem;return r&&r!==i&&!ssr.hasOwnProperty(r.mainType)&&u&&u.model!==i}function hsr(n){o(n)&&(n=(new DOMParser).parseFromString(n,"text/xml"));var t=n;for(9===t.nodeType&&(t=t.firstChild);"svg"!==t.nodeName.toLowerCase()||1!==t.nodeType;)t=t.nextSibling;return t}function vsr(n,t){"userSpaceOnUse"===n.getAttribute("gradientUnits")&&(t.global=!0)}function ysr(n,t){for(var r,f,u,e,i=n.firstChild;i;)1===i.nodeType&&"stop"===i.nodeName.toLocaleLowerCase()&&(r=i.getAttribute("offset"),f=void 0,f=r&&r.indexOf("%")>0?parseInt(r,10)/100:r?parseFloat(r):0,u={},gsr(i,u,u),e=u.stopColor||i.getAttribute("stop-color")||"#000000",t.colorStops.push({offset:f,color:e})),i=i.nextSibling}function wf(n,t){n&&n.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),a(t.__inheritedStyle,n.__inheritedStyle))}function psr(n){for(var u,f,i=got(n),r=[],t=0;t<i.length;t+=2)u=parseFloat(i[t]),f=parseFloat(i[t+1]),r.push([u,f]);return r}function wu(n,i,r,u,e){var s=i,o=s.__inheritedStyle=s.__inheritedStyle||{},h={};1===n.nodeType&&(function(n,t){var e=n.getAttribute("transform"),u,i,f;if(e){for(e=e.replace(/,/g," "),u=[],i=null,e.replace(pyu,function(n,t,i){return u.push(t,i),""}),f=u.length-1;f>0;f-=2){var o=u[f],s=u[f-1],r=got(o);switch(i=i||[1,0,0,1,0,0],s){case"translate":ne(i,i,[parseFloat(r[0]),parseFloat(r[1]||"0")]);break;case"scale":rit(i,i,[parseFloat(r[0]),parseFloat(r[1]||r[0])]);break;case"rotate":th(i,i,-parseFloat(r[0])*dnt);break;case"skewX":ge(i,[1,0,Math.tan(parseFloat(r[0])*dnt),1,0,0],i);break;case"skewY":ge(i,[1,Math.tan(parseFloat(r[0])*dnt),0,1,0,0],i);break;case"matrix":i[0]=parseFloat(r[0]);i[1]=parseFloat(r[1]);i[2]=parseFloat(r[2]);i[3]=parseFloat(r[3]);i[4]=parseFloat(r[4]);i[5]=parseFloat(r[5])}}t.setLocalTransform(i)}}(n,i),gsr(n,o,h),u||function(n,t,i){for(var u,f,r=0;r<csr.length;r++)u=csr[r],null!=(f=n.getAttribute(u))&&(t[kot[u]]=f);for(r=0;r<lsr.length;r++)u=lsr[r],null!=(f=n.getAttribute(u))&&(i[dot[u]]=f)}(n,o,h));s.style=s.style||{};null!=o.fill&&(s.style.fill=bsr(s,"fill",o.fill,r));null!=o.stroke&&(s.style.stroke=bsr(s,"stroke",o.stroke,r));t(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(n){null!=o[n]&&(s.style[n]=parseFloat(o[n]))});t(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(n){null!=o[n]&&(s.style[n]=o[n])});e&&(s.__selfStyle=h);o.lineDash&&(s.style.lineDash=f(got(o.lineDash),function(n){return parseFloat(n)}));"hidden"!==o.visibility&&"collapse"!==o.visibility||(s.invisible=!0);"none"===o.display&&(s.ignore=!0)}function bsr(n,t,i,r){var u=i&&i.match(wsr),f;if(!u)return"none"===i&&(i=null),i;f=gu(u[1]);r.push([n,t,f])}function got(n){return n.match(ksr)||[]}function gsr(n,t,i){var u,o=n.getAttribute("style"),r,f,e;if(o)for(dsr.lastIndex=0;null!=(u=dsr.exec(o));)r=u[1],f=h(kot,r)?kot[r]:null,f&&(t[f]=u[2]),e=h(dot,r)?dot[r]:null,e&&(i[e]=u[2])}function nhr(n,t){var r=t.width/n.width,u=t.height/n.height,i=Math.min(r,u);return{scale:i,x:-(n.x+n.width/2)*i+(t.x+t.width/2),y:-(n.y+n.height/2)*i+(t.y+t.height/2)}}function dyu(n){for(var i,r,t=0;t<n.length;t++)r=n[t].getBoundingRect(),(i=i||r.clone()).union(r);return i}function tst(n){var t=n.getItemStyle(),i=n.get("areaColor");return null!=i&&(t.fill=i),t}function fhr(n){var t=n.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}function ehr(n,t,i,r){var s=r.getModel("itemStyle"),h=r.getModel(["emphasis","itemStyle"]),c=r.getModel(["blur","itemStyle"]),l=r.getModel(["select","itemStyle"]),u=tst(s),a=tst(h),v=tst(l),y=tst(c),f=n.data,e,o;f&&(e=f.getItemVisual(i,"style"),o=f.getItemVisual(i,"decal"),n.isVisualEncodedByVisualMap&&e.fill&&(u.fill=e.fill),o&&(u.decal=pp(o,n.api)));t.setStyle(u);t.style.strokeNoScale=!0;t.ensureState("emphasis").style=a;t.ensureState("select").style=v;t.ensureState("blur").style=y;bl(t)}function ohr(n,t,i,r,u,f,e){var o=n.data,l=n.isGeo,p=o&&isNaN(o.get(o.mapDimension("value"),f)),a=o&&o.getItemLayout(f),v,c,y,h,s;l||p||a&&a.showLabel?(v=l?i:f,c=void 0,(!o||f>=0)&&(c=u),y=e?{normal:{align:"center",verticalAlign:"middle"}}:null,or(t,bi(r),{labelFetcher:c,labelDataIndex:v,defaultText:i},y),h=t.getTextContent(),h&&(uhr(h).ignore=h.ignore,t.textConfig&&e)&&(s=t.getBoundingRect().clone(),t.textConfig.layoutRect=s,t.textConfig.position=[(e[0]-s.x)/s.width*100+"%",(e[1]-s.y)/s.height*100+"%"]),t.disableLabelAnimation=!0):(t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null)}function shr(n,t,i,r,u,f){n.data?n.data.setItemGraphicEl(f,t):b(t).eventData={componentType:"geo",componentIndex:u.componentIndex,geoIndex:u.componentIndex,name:i,region:r&&r.option||{}}}function hhr(n,t,i,r,u){n.data||by({el:t,componentModel:u,itemName:i,itemTooltipOption:r.get("tooltip")})}function chr(n,t,i,r,u){t.highDownSilentOnTouch=!!u.get("selectedMode");var f=r.getModel("emphasis"),e=f.get("focus");return ui(t,e,f.get("blurScope"),f.get("disabled")),n.isGeo&&function(n,t,i){var r=b(n);r.componentMainType=t.mainType;r.componentIndex=t.componentIndex;r.componentHighDownName=i}(t,u,i),e}function lhr(n,i,r){function o(){u=[]}function s(){u.length&&(e.push(u),u=[])}var u,e=[],f=i({polygonStart:o,polygonEnd:s,lineStart:o,lineEnd:s,point:function(n,t){isFinite(n)&&isFinite(t)&&u.push([n,t])},sphere:function(){}});return!r&&f.polygonStart(),t(n,function(n){f.lineStart();for(var t=0;t<n.length;t++)f.point(n[t][0],n[t][1]);f.lineEnd()}),!r&&f.polygonEnd(),e}function upu(n){var i={};n.eachSeriesByType("map",function(n){var t=n.getHostGeoModel(),r=t?"o"+t.id:"i"+n.getMapType();(i[r]=i[r]||[]).push(n)});t(i,function(n){for(var u,e,r,o=(u=f(n,function(n){return n.getData()}),e=n[0].get("mapValueCalculation"),r={},t(u,function(n){n.each(n.mapDimension("value"),function(t,i){var u="ec-"+n.getName(i);r[u]=r[u]||[];isNaN(t)||r[u].push(t)})}),u[0].map(u[0].mapDimension("value"),function(n,t){for(var f="ec-"+u[0].getName(t),o=0,s=1/0,h=-1/0,c=r[f].length,i=0;i<c;i++)s=Math.min(s,r[f][i]),h=Math.max(h,r[f][i]),o+=r[f][i];return 0===c?NaN:"min"===e?s:"max"===e?h:"average"===e?o/c:o})),i=0;i<n.length;i++)n[i].originalData=n[i].getData();for(i=0;i<n.length;i++)n[i].seriesGroup=n,n[i].needsDrawMap=0===i&&!n[i].getHostGeoModel(),n[i].setData(o.cloneShallow()),n[i].mainSeries=n[0]})}function fpu(n){var i={};n.eachSeriesByType("map",function(r){var e=r.getMapType(),f,u;r.getHostGeoModel()||i[e]||(f={},t(r.seriesGroup,function(t){var r=t.coordinateSystem,i=t.originalData;t.get("showLegendSymbol")&&n.getComponent("legend")&&i.each(i.mapDimension("value"),function(n,t){var u=i.getName(t),o=r.getRegion(u),e,s;o&&!isNaN(n)&&(e=f[u]||0,s=r.dataToPoint(o.getCenter()),f[u]=e+1,i.setItemLayout(t,{point:s,offset:e}))})}),u=r.getData(),u.each(function(n){var i=u.getName(n),t=u.getItemLayout(n)||{};t.showLabel=!f[i];u.setItemLayout(n,t)}),i[e]=!0)})}function yhr(n){var t=n.seriesModel;return t?t.coordinateSystem:null}function whr(n){var i=n.geoModel,t=n.seriesModel;return i?i.coordinateSystem:t?t.coordinateSystem||(t.getReferringComponents("geo",oi).models[0]||{}).coordinateSystem:null}function bhr(n,t){var v=n.get("boundingCoords"),r,u,y,s,d;if(null!=v)if(r=v[0],u=v[1],isFinite(r[0])&&isFinite(r[1])&&isFinite(u[0])&&isFinite(u[1])){if(y=this.projection,y){var p=r[0],c=r[1],o=u[0],l=u[1];r=[1/0,1/0];u=[-1/0,-1/0];s=function(n,t,i,f){for(var o,s,h=i-n,c=f-t,e=0;e<=100;e++)o=e/100,s=y.project([n+h*o,t+c*o]),ts(r,r,s),is(u,u,s)};s(p,c,o,c);s(o,c,o,l);s(o,l,p,l);s(p,l,o,c)}this.setBoundingRect(r[0],r[1],u[0]-r[0],u[1]-r[1])}else 0;var h,f,i,g=this.getBoundingRect(),w=n.get("layoutCenter"),nt=n.get("layoutSize"),b=t.getWidth(),k=t.getHeight(),a=g.width/g.height*this.aspectScale,tt=!1;(w&&nt&&(h=[e(w[0],b),e(w[1],k)],f=e(nt,Math.min(b,k)),isNaN(h[0])||isNaN(h[1])||isNaN(f)||(tt=!0)),tt)?(i={},a>1?(i.width=f,i.height=f/a):(i.height=f,i.width=f*a),i.y=h[1]-i.height/2,i.x=h[0]-i.width/2):(d=n.getBoxLayoutParams(),d.aspect=a,i=ci(d,{width:b,height:k}));this.setViewRect(i.x,i.y,i.width,i.height);this.setCenter(n.get("center"),t);this.setZoom(n.get("zoom"))}function dhr(n,t){return n.pointToProjected?n.pointToProjected(t):n.pointToData(t)}function fti(n,t,i,r){var e=n.getZoom(),o=n.getCenter(),u=t.zoom,f=n.projectedToPoint?n.projectedToPoint(o):n.dataToPoint(o),s,h,c,l;return(null!=t.dx&&null!=t.dy&&(f[0]-=t.dx,f[1]-=t.dy,n.setCenter(dhr(n,f),r)),null!=u)&&(i&&(s=i.min||0,h=i.max||1/0,u=Math.max(Math.min(e*u,h),s)/e),n.scaleX*=u,n.scaleY*=u,c=(t.originX-n.x)*(u-1),l=(t.originY-n.y)*(u-1),n.x-=c,n.y-=l,n.updateTransform(),n.setCenter(dhr(n,f),r),n.setZoom(u*e)),{center:n.getCenter(),zoom:n.getZoom()}}function hpu(n,t,i){gyu(n,t,i)}function ncr(n){function i(i,r){r.update="geo:updateSelectStatus";n.registerAction(r,function(n,r){var u={},f=[];return r.eachComponent({mainType:"geo",query:n},function(r){r[i](n.name);t(r.coordinateSystem.regions,function(n){u[n.name]=r.isSelected(n.name)||!1});var e=[];t(u,function(n,t){u[t]&&e.push(t)});f.push({geoIndex:r.componentIndex,name:e})}),{selected:u,allSelected:f,name:n.name}})}n.registerCoordinateSystem("geo",khr);n.registerComponentModel(spu);n.registerComponentView(ghr);n.registerImpl("registerMap",hpu);n.registerImpl("getMap",function(n){return npu(n)});i("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"});i("select",{type:"geoSelect",event:"geoselected"});i("unSelect",{type:"geoUnSelect",event:"geounselected"});n.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(n,i,r){var u=n.componentType||"series";i.eachComponent({mainType:u,query:n},function(i){var e=i.coordinateSystem,f;"geo"===e.type&&(f=fti(e,n,i.get("scaleLimit"),r),i.setCenter&&i.setCenter(f.center),i.setZoom&&i.setZoom(f.zoom),"series"===u&&t(i.seriesGroup,function(n){n.setCenter(f.center);n.setZoom(f.zoom)}))})})}function cpu(n,t){var r=n.isExpand?n.children:[],f=n.parentNode.children,i=n.hierNode.i?f[n.hierNode.i-1]:null,u;r.length?(!function(n){for(var r=n.children,u=r.length,i=0,f=0,t;--u>=0;)t=r[u],t.hierNode.prelim+=i,t.hierNode.modifier+=i,f+=t.hierNode.change,i+=t.hierNode.shift+f}(n),u=(r[0].hierNode.prelim+r[r.length-1].hierNode.prelim)/2,i?(n.hierNode.prelim=i.hierNode.prelim+t(n,i),n.hierNode.modifier=n.hierNode.prelim-u):n.hierNode.prelim=u):i&&(n.hierNode.prelim=i.hierNode.prelim+t(n,i));n.parentNode.hierNode.defaultAncestor=function(n,t,i,r){var s;if(t){for(var e=n,u=n,o=u.parentNode.children[0],f=t,c=e.hierNode.modifier,h=u.hierNode.modifier,a=o.hierNode.modifier,l=f.hierNode.modifier;f=eti(f),u=oti(u),f&&u;)e=eti(e),o=oti(o),e.hierNode.ancestor=n,s=f.hierNode.prelim+l-u.hierNode.prelim-h+r(f,u),s>0&&(vpu(apu(f,n,i),n,s),h+=s,c+=s),l+=f.hierNode.modifier,h+=u.hierNode.modifier,c+=e.hierNode.modifier,a+=o.hierNode.modifier;f&&!eti(e)&&(e.hierNode.thread=f,e.hierNode.modifier+=l-c);u&&!oti(o)&&(o.hierNode.thread=u,o.hierNode.modifier+=h-a,i=n)}return i}(n,i,n.parentNode.hierNode.defaultAncestor||f[0],t)}function lpu(n){var t=n.hierNode.prelim+n.parentNode.hierNode.modifier;n.setLayout({x:t},!0);n.hierNode.modifier+=n.parentNode.hierNode.modifier}function tcr(n){return arguments.length?n:ypu}function cn(n,t){return n-=Math.PI/2,{x:t*Math.cos(n),y:t*Math.sin(n)}}function eti(n){var t=n.children;return t.length&&n.isExpand?t[t.length-1]:n.hierNode.thread}function oti(n){var t=n.children;return t.length&&n.isExpand?t[0]:n.hierNode.thread}function apu(n,t,i){return n.hierNode.ancestor.parentNode===t.parentNode?n.hierNode.ancestor:i}function vpu(n,t,i){var r=i/(t.hierNode.i-n.hierNode.i);t.hierNode.change-=r;t.hierNode.shift+=i;t.hierNode.modifier+=i;t.hierNode.prelim+=i;n.hierNode.change+=r}function ypu(n,t){return n.parentNode===t.parentNode?1:2}function icr(n,t){var i=n.getItemLayout(t);return i&&!isNaN(i.x)&&!isNaN(i.y)}function rcr(n,t,i,r,u){var ot=!i,f=n.tree.getNodeByDataIndex(t),g=f.getModel(),st=f.getVisual("style").fill,nt=!1===f.isExpand&&0!==f.children.length?st:"#fff",p=n.tree.root,tt=f.parentNode===p?f:f.parentNode||f,c=n.getItemGraphicEl(tt.dataIndex),it=tt.getLayout(),w=c?{x:c.__oldX,y:c.__oldY,rawX:c.__radialOldRawX,rawY:c.__radialOldRawY}:it,e=f.getLayout(),k,v,y,d;if(ot?((i=new rw(n,t,null,{symbolInnerColor:nt,useNameLabel:!0})).x=w.x,i.y=w.y):i.updateData(n,t,null,{symbolInnerColor:nt,useNameLabel:!0}),i.__radialOldRawX=i.__radialRawX,i.__radialOldRawY=i.__radialRawY,i.__radialRawX=e.rawX,i.__radialRawY=e.rawY,r.add(i),n.setItemGraphicEl(t,i),i.__oldX=i.x,i.__oldY=i.y,lt(i,{x:e.x,y:e.y},u),k=i.getSymbolPath(),"radial"===u.get("layout")){var h=p.children[0],s=h.getLayout(),rt=h.children.length,o=void 0,l=void 0;e.x===s.x&&!0===f.isExpand&&h.children.length?(v={x:(h.children[0].getLayout().x+h.children[rt-1].getLayout().x)/2,y:(h.children[0].getLayout().y+h.children[rt-1].getLayout().y)/2},(o=Math.atan2(v.y-s.y,v.x-s.x))<0&&(o=2*Math.PI+o),(l=v.x<s.x)&&(o-=Math.PI)):((o=Math.atan2(e.y-s.y,e.x-s.x))<0&&(o=2*Math.PI+o),0===f.children.length||0!==f.children.length&&!1===f.isExpand?(l=e.x<s.x)&&(o-=Math.PI):(l=e.x>s.x)||(o-=Math.PI));var ht=l?"left":"right",ut=g.getModel("label"),ft=ut.get("rotate"),ct=ft*(Math.PI/180),et=k.getTextContent();et&&(k.setTextConfig({position:ut.get("position")||ht,rotation:null==ft?-o:ct,origin:"center"}),et.setStyle("verticalAlign","middle"))}y=g.get(["emphasis","focus"]);d="relative"===y?sb(f.getAncestorsIndices(),f.getDescendantIndices()):"ancestor"===y?f.getAncestorsIndices():"descendant"===y?f.getDescendantIndices():null;d&&(b(i).focus=d),function(n,t,i,r,u,f,e,o){var p=t.getModel(),h=n.get("edgeShape"),c=n.get("layout"),l=n.getOrient(),w=n.get(["lineStyle","curveness"]),d=n.get("edgeForkPosition"),g=p.getModel("lineStyle").getLineStyle(),s=r.__edge,y;if("curve"===h)t.parentNode&&t.parentNode!==i&&(s||(s=r.__edge=new na({shape:sti(c,l,w,u,u)})),lt(s,{shape:sti(c,l,w,f,e)},n));else if("polyline"===h)if("orthogonal"===c){if(t!==i&&t.children&&0!==t.children.length&&!0===t.isExpand){for(var b=t.children,k=[],v=0;v<b.length;v++)y=b[v].getLayout(),k.push([y.x,y.y]);s||(s=r.__edge=new wpu({shape:{parentPoint:[e.x,e.y],childPoints:[[e.x,e.y]],orient:l,forkPosition:d}}));lt(s,{shape:{parentPoint:[e.x,e.y],childPoints:k}},n)}}else 0;s&&("polyline"!==h||t.isExpand)&&(s.useStyle(a({strokeNoScale:!0,fill:null},g)),rr(s,p,"lineStyle"),bl(s),o.add(s))}(u,f,p,i,w,it,e,r);i.__edge&&(i.onHoverStateChange=function(t){if("blur"!==t){var r=f.parentNode&&n.getItemGraphicEl(f.parentNode.dataIndex);r&&1===r.hoverState||krt(i.__edge,t)}})}function ucr(n,t,i,r,u){var s=fcr(t.tree.root,n),o=s.source,f=s.sourceLayout,h=t.getItemGraphicEl(n.dataIndex);if(h){var l=t.getItemGraphicEl(o.dataIndex).__edge,e=h.__edge||(!1===o.isExpand||1===o.children.length?l:void 0),c=r.get("edgeShape"),a=r.get("layout"),v=r.get("orient"),y=r.get(["lineStyle","curveness"]);e&&("curve"===c?vh(e,{shape:sti(a,v,y,f,f),style:{opacity:0}},r,{cb:function(){i.remove(e)},removeOpt:u}):"polyline"===c&&"orthogonal"===r.get("layout")&&vh(e,{shape:{parentPoint:[f.x,f.y],childPoints:[[f.x,f.y]]},style:{opacity:0}},r,{cb:function(){i.remove(e)},removeOpt:u}))}}function fcr(n,t){for(var r,i=t.parentNode===n?t:t.parentNode||t;null==(r=i.getLayout());)i=i.parentNode===n?i:i.parentNode||i;return{source:i,sourceLayout:r}}function ecr(n,t,i,r,u){var e=n.tree.getNodeByDataIndex(t),o=fcr(n.tree.root,e).sourceLayout,f={duration:u.get("animationDurationUpdate"),easing:u.get("animationEasingUpdate")};vh(i,{x:o.x+1,y:o.y+1},u,{cb:function(){r.remove(i);n.setItemGraphicEl(t,null)},removeOpt:f});i.fadeOut(null,n.hostModel,{fadeLabel:!0,animation:f});e.children.forEach(function(t){ucr(t,n,r,u,f)});ucr(e,n,r,u,f)}function sti(n,t,i,r,u){var h,c,l,a,o,s,f,e;if("radial"===n){o=r.rawX;f=r.rawY;s=u.rawX;e=u.rawY;var v=cn(o,f),y=cn(o,f+(e-f)*i),p=cn(s,e+(f-e)*i),w=cn(s,e);return{x1:v.x||0,y1:v.y||0,x2:w.x||0,y2:w.y||0,cpx1:y.x||0,cpy1:y.y||0,cpx2:p.x||0,cpy2:p.y||0}}return o=r.x,f=r.y,s=u.x,e=u.y,"LR"!==t&&"RL"!==t||(h=o+(s-o)*i,c=f,l=s+(o-s)*i,a=e),"TB"!==t&&"BT"!==t||(h=o,c=f+(e-f)*i,l=s,a=e+(f-e)*i),{x1:o,y1:f,x2:s,y2:e,cpx1:h,cpy1:c,cpx2:l,cpy2:a}}function ocr(n){var i=n.mainData,r=n.datas;r||(r={main:i},n.datasAttr={main:"data"});n.datas=n.mainData=null;scr(i,r,n);t(r,function(r){t(i.TRANSFERABLE_METHODS,function(t){r.wrapMethod(t,w(kpu,n))})});i.wrapMethod("cloneShallow",w(gpu,n));t(i.CHANGABLE_METHODS,function(t){i.wrapMethod(t,w(dpu,n))});sr(r[i.dataType]===i)}function kpu(n,t){var i,u;return bu(u=this).mainData===u?(i=r({},bu(this).datas),i[this.dataType]=t,scr(t,i,n)):hti(t,this.dataType,bu(this).mainData,n),t}function dpu(n,t){return n.struct&&n.struct.update(),t}function gpu(n,i){return t(bu(i).datas,function(t,r){t!==i&&hti(t.cloneShallow(),r,i,n)}),i}function nwu(n){var t=bu(this).mainData;return null==n||null==t?t:bu(t).datas[n]}function twu(){var n=bu(this).mainData;return null==n?[{data:n}]:f(et(bu(n).datas),function(t){return{type:t,data:bu(n).datas[t]}})}function scr(n,i,r){bu(n).datas={};t(i,function(t,i){hti(t,i,n,r)})}function hti(n,t,i,r){bu(i).datas[t]=n;bu(n).mainData=i;n.dataType=t;r.struct&&(n[r.structAttr]=r.struct,r.struct[r.datasAttr[t]]=n);n.getLinkedData=nwu;n.getLinkedDataAll=twu}function ln(n,t,i){var u,r,f;if(n&&tt(t,n.type)>=0){if(u=i.getData().tree.root,r=n.targetNode,o(r)&&(r=u.getNodeById(r)),r&&u.contains(r))return{node:r};if(f=n.targetNodeId,null!=f&&(r=u.getNodeById(f)))return{node:r}}}function ccr(n){for(var t=[];n;)(n=n.parentNode)&&t.push(n);return t.reverse()}function cti(n,t){return tt(ccr(n),t)>=0}function rst(n,t){for(var r,i=[];n;)r=n.dataIndex,i.push({name:n.name,dataIndex:r,value:t.getRawValue(r)}),n=n.parentNode;return i.reverse(),i}function an(n,t){for(var i,r,u,f=[n];i=f.pop();)if((t(i),i.isExpand)&&(r=i.children,r.length))for(u=r.length-1;u>=0;u--)f.push(r[u])}function iwu(n,t){n.eachSeriesByType("tree",function(n){!function(n,t){var a=function(n,t){return ci(n.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}(n,t),w,i,s;n.layoutInfo=a;var k=n.get("layout"),h=0,c=0,p=null;if("radial"===k?(h=2*Math.PI,c=Math.min(a.height,a.width)/2,p=tcr(function(n,t){return(n.parentNode===t.parentNode?1:2)/n.depth})):(h=a.width,c=a.height,p=tcr()),w=n.getData().tree.root,i=w.children[0],i){!function(n){var u=n,f,i,e,t,r;for(u.hierNode={defaultAncestor:null,ancestor:u,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null},e=[u];f=e.pop();)if(i=f.children,f.isExpand&&i.length)for(t=i.length-1;t>=0;t--)r=i[t],r.hierNode={defaultAncestor:null,ancestor:r,prelim:0,modifier:0,change:0,shift:0,i:t,thread:null},e.push(r)}(w),function(n,t,i){for(var r,u,f,e=[n],o=[];r=e.pop();)if((o.push(r),r.isExpand)&&(u=r.children,u.length))for(f=0;f<u.length;f++)e.push(u[f]);for(;r=o.pop();)t(r,i)}(i,cpu,p);w.hierNode.modifier=-i.hierNode.prelim;an(i,lpu);var v=i,r=i,y=i;an(i,function(n){var t=n.getLayout().x;t<v.getLayout().x&&(v=n);t>r.getLayout().x&&(r=n);n.depth>y.depth&&(y=n)});var b=v===r?1:p(v,r)/2,l=b-v.getLayout().x,u=0,f=0,e=0,o=0;"radial"===k?(u=h/(r.getLayout().x+b+l),f=c/(y.depth-1||1),an(i,function(n){e=(n.getLayout().x+l)*u;o=(n.depth-1)*f;var t=cn(e,o);n.setLayout({x:t.x,y:t.y,rawX:e,rawY:o},!0)})):(s=n.getOrient(),"RL"===s||"LR"===s?(f=c/(r.getLayout().x+b+l),u=h/(y.depth-1||1),an(i,function(n){o=(n.getLayout().x+l)*f;e="LR"===s?(n.depth-1)*u:h-(n.depth-1)*u;n.setLayout({x:e,y:o},!0)})):"TB"!==s&&"BT"!==s||(u=h/(r.getLayout().x+b+l),f=c/(y.depth-1||1),an(i,function(n){e=(n.getLayout().x+l)*u;o="TB"===s?(n.depth-1)*f:c-(n.depth-1)*f;n.setLayout({x:e,y:o},!0)})))}}(n,t)})}function rwu(n){n.eachSeriesByType("tree",function(n){var t=n.getData();t.tree.eachNode(function(n){var i=n.getModel().getModel("itemStyle").getItemStyle();r(t.ensureUniqueItemVisual(n.dataIndex,"style"),i)})})}function acr(n){var t=n.getData().tree,i={};t.eachNode(function(t){for(var u,r=t;r&&r.depth>1;)r=r.parentNode;u=ywt(n.ecModel,r.name||r.dataIndex+"",i);t.setVisual("decal",u)})}function ycr(n){var r=0,i;t(n.children,function(n){ycr(n);var t=n.value;u(t)&&(t=t[0]);r+=t});i=n.value;u(i)&&(i=i[0]);(null==i||isNaN(i))&&(i=r);i<0&&(i=0);u(n.value)?n.value[0]=i:n.value=i}function uwu(n,t,i,r,u,f){var e=[[u?n:n-5,t],[n+i,t],[n+i,t+r],[u?n:n-5,t+r]];return!f&&e.splice(2,0,[n+i+5,t+r/2]),!u&&e.push([n,t+r/2]),e}function fwu(n,t,i){b(n).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:i&&i.dataIndex,name:i&&i.name},treePathInfo:i&&rst(i,t)}}function yti(n,t){var r=n.visual,i=[];v(r)?vn(r,function(n){i.push(n)}):null!=r&&i.push(r);t||1!==i.length||{color:1,symbol:1}.hasOwnProperty(n.type)||(i[1]=i[0]);nlr(n,i)}function fst(n){return{applyVisual:function(t,i,r){var u=this.mapValueToVisual(t);r("color",n(i("color"),u))},_normalizedToVisual:pti([0,1])}}function gcr(n){var t=this.option.visual;return t[Math.round(pt(n,[0,1],[0,t.length-1],!0))]||{}}function yn(n){return function(t,i,r){r(n,this.mapValueToVisual(t))}}function pn(n){var t=this.option.visual;return t[this.option.loop&&n!==vti?n%t.length:n]}function iv(){return this.option.visual[0]}function pti(n){return{linear:function(t){return pt(t,n,this.option.visual,!0)},category:pn,piecewise:function(t,i){var r=wti.call(this,i);return null==r&&(r=pt(t,n,this.option.visual,!0)),r},fixed:iv}}function wti(n){var i=this.option,r=i.pieceList,t;if(i.hasSpecialVisual&&(t=r[gi.findPieceIndex(n,r)],t&&t.visual))return t.visual[this.type]}function nlr(n,t){return n.visual=t,"color"===n.type&&(n.parsedVisual=f(t,function(n){var t=br(n);return t||[0,0,0,1]})),t}function est(n,t,i){return n?t<=i:t<i}function rlr(n,i,u,f){var h=n.getModel(),o=n.getLayout(),w=n.hostTree.data,e,p;if(o&&!o.invisible&&o.isInView){var c,l=h.getModel("itemStyle"),s=function(n,i,u){var f=r({},i),e=u.designatedVisualItemStyle;return t(["color","colorAlpha","colorSaturation"],function(t){e[t]=i[t];var r=n.get(t);e[t]=null;null!=r&&(f[t]=r)}),f}(l,i,f),a=w.ensureUniqueItemVisual(n.dataIndex,"style"),v=l.get("borderColor"),y=l.get("borderColorSaturation");null!=y&&(v=function(n,t){return null!=t?gv(t,null,null,n):null}(y,c=ulr(s)));a.stroke=v;e=n.viewChildren;e&&e.length?(p=function(n,t,i,r,u,f){var s,h,e,a;if(f&&f.length&&(s=dti(t,"color")||null!=u.color&&"none"!==u.color&&(dti(t,"colorAlpha")||dti(t,"colorSaturation")),s)){var c=t.get("visualMin"),l=t.get("visualMax"),o=i.dataExtent.slice();return null!=c&&c<o[0]&&(o[0]=c),null!=l&&l>o[1]&&(o[1]=l),h=t.get("colorMappingBy"),e={type:s.name,dataExtent:o,visual:s.range},"color"!==e.type||"index"!==h&&"id"!==h?e.mappingMethod="linear":(e.mappingMethod="category",e.loop=!0),a=new gi(e),bti(a).drColorMappingBy=h,a}}(0,h,o,0,s,e),t(e,function(n,t){if(n.depth>=u.length||n===u[n.depth]){var i=function(n,t,i,u,f,e){var o=r({},t);if(f){var s=f.type,h="color"===s&&bti(f).drColorMappingBy,c="index"===h?u:"id"===h?e.mapIdToIndex(i.getId()):i.getValue(n.get("visualDimension"));o[s]=f.mapValueToVisual(c)}return o}(h,s,n,t,p,f);rlr(n,i,u,f)}})):(c=ulr(s),a.fill=c)}}function ulr(n){var t=kti(n,"color"),i,r;if(t)return i=kti(n,"colorAlpha"),r=kti(n,"colorSaturation"),r&&(t=gv(t,null,null,r)),i&&(t=ik(t,i)),t}function kti(n,t){var i=n[t];if(null!=i&&"none"!==i)return i}function dti(n,t){var i=n.get(t);return u(i)&&i.length?{name:t,range:i}:null}function olr(n,t,i,r){var o,s,y,b,e,f,v,d,g,nt;if(!n.isRemoved()){y=n.getLayout();o=y.width;s=y.height;var h=n.getModel(),p=h.get(elr),c=h.get(hwu)/2,tt=clr(h),it=Math.max(p,tt),w=p-c,rt=it-c;if(n.setLayout({borderWidth:p,upperHeight:it,upperLabelHeight:tt},!0),b=(o=wn(o-2*w,0))*(s=wn(s-w-rt,0)),e=function(n,t,i,r,u,f){var e=n.children||[],s=r.sort,c,o,h,l,a;if("asc"!==s&&"desc"!==s&&(s=null),c=null!=r.leafDepth&&r.leafDepth<=f,u&&!c)return n.viewChildren=[];if(e=yt(e,function(n){return!n.isRemoved()}),function(n,t){t&&n.sort(function(n,i){var r="asc"===t?n.getValue()-i.getValue():i.getValue()-n.getValue();return 0===r?"asc"===t?n.dataIndex-i.dataIndex:i.dataIndex-n.dataIndex:r})}(e,s),o=function(n,t,i){for(var r,f,e=0,u=0,o=t.length;u<o;u++)e+=t[u].getValue();return f=n.get("visualDimension"),t&&t.length?"value"===f&&i?(r=[t[t.length-1].getValue(),t[0].getValue()],"asc"===i&&r.reverse()):(r=[1/0,-1/0],gti(t,function(n){var t=n.getValue(f);t<r[0]&&(r[0]=t);t>r[1]&&(r[1]=t)})):r=[NaN,NaN],{sum:e,dataExtent:r}}(t,e,s),0===o.sum)return n.viewChildren=[];if(o.sum=function(n,t,i,r,u){var s;if(!r)return i;for(var h=n.get("visibleMin"),f=u.length,o=f,e=f-1;e>=0;e--)s=u["asc"===r?f-e-1:e].getValue(),s/i*t<h&&(o=e,i-=s);return"asc"===r?u.splice(0,f-o):u.splice(o,f-o),i}(t,i,o.sum,s,e),0===o.sum)return n.viewChildren=[];for(h=0,l=e.length;h<l;h++)a=e[h].getValue()/o.sum*i,e[h].setLayout({area:a});return c&&(e.length&&n.setLayout({isLeafRoot:!0},!0),e.length=0),n.viewChildren=e,n.setLayout({dataExtent:o.dataExtent},!0),e}(n,h,b,t,i,r),e.length){var l={x:w,y:rt,width:o,height:s},a=ost(o,s),k=1/0,u=[];for(u.area=0,f=0,v=e.length;f<v;)d=e[f],u.push(d),u.area+=d.getLayout().area,g=vwu(u,a,t.squareRatio),g<=k?(f++,k=g):(u.area-=u.pop().getLayout().area,slr(u,a,l,c,!1),a=ost(l.width,l.height),u.length=u.area=0,k=1/0);for((u.length&&slr(u,a,l,c,!0),i)||(nt=h.get("childrenVisibleMin"),null!=nt&&b<nt&&(i=!0)),f=0,v=e.length;f<v;f++)olr(e[f],t,i,r+1)}}}function vwu(n,t,i){for(var u,s,f=0,e=1/0,o=0,r=void 0,h=n.length;o<h;o++)(r=n[o].getLayout().area)&&(r<e&&(e=r),r>f&&(f=r));return u=n.area*n.area,s=t*t*i,u?wn(s*f/u,u/(s*e)):1/0}function slr(n,t,i,r,u){var o=t===i.width?0:1,f=1-o,s=["x","y"],h=["width","height"],a=i[s[o]],e=t?n.area/t:0,c,v;for((u||e>i[h[f]])&&(e=i[h[f]]),c=0,v=n.length;c<v;c++){var y=n[c],l={},p=e?y.getLayout().area/e:0,k=l[h[f]]=wn(e-2*r,0),w=i[s[o]]+i[h[o]]-a,b=c===v-1||w<p?w:p,d=l[h[o]]=wn(b-2*r,0);l[s[f]]=i[s[f]]+ost(r,k/2);l[s[o]]=a+ost(r,d/2);a+=b;y.setLayout(l,!0)}i[s[f]]+=e;i[h[f]]-=e}function hlr(n,t,i,r,u){var f=n.getLayout(),e=i[u],o=e&&e===n,s;e&&!o||u===i.length&&n!==r||(n.setLayout({isInView:!0,invisible:!o&&!t.intersect(f),isAboveViewRoot:o},!0),s=new nt(t.x-f.x,t.y-f.y,t.width,t.height),gti(n.viewChildren||[],function(n){hlr(n,s,i,r,u+1)}))}function clr(n){return n.get(cwu)?n.get(lwu):0}function ywu(n){var t=n.findComponents({mainType:"legend"});t&&t.length&&n.eachSeriesByType("graph",function(n){var i=n.getCategoriesData(),r=n.getGraph().data,u=i.mapArray(i.getName);r.filterSelf(function(n){var i=r.getItemModel(n).getShallow("category"),f;if(null!=i)for(ht(i)&&(i=u[i]),f=0;f<t.length;f++)if(!t[f].isSelected(i))return!1;return!0})})}function pwu(n){var t={};n.eachSeriesByType("graph",function(n){var i=n.getCategoriesData(),u=n.getData(),f={};i.each(function(r){var c=i.getName(r),s,e,o,u,h;for(f["ec-"+c]=r,s=i.getItemModel(r),e=s.getModel("itemStyle").getItemStyle(),e.fill||(e.fill=n.getColorFromPalette(c,t)),i.setItemVisual(r,"style",e),o=["symbol","symbolSize","symbolKeepAspect"],u=0;u<o.length;u++)h=s.getShallow(o[u],!0),null!=h&&i.setItemVisual(r,o[u],h)});i.count()&&u.each(function(n){var t=u.getItemModel(n).getShallow("category"),h,s,e;if(null!=t)for(o(t)&&(t=f["ec-"+t]),h=i.getItemVisual(t,"style"),r(u.ensureUniqueItemVisual(n,"style"),h),s=["symbol","symbolSize","symbolKeepAspect"],e=0;e<s.length;e++)u.setItemVisual(n,s[e],i.getItemVisual(t,s[e]))})})}function sst(n){return n instanceof Array||(n=[n,n]),n}function wwu(n){n.eachSeriesByType("graph",function(n){var f=n.getGraph(),t=n.getEdgeData(),i=sst(n.get("edgeSymbol")),u=sst(n.get("edgeSymbolSize"));t.setVisual("fromSymbol",i&&i[0]);t.setVisual("toSymbol",i&&i[1]);t.setVisual("fromSymbolSize",u&&u[0]);t.setVisual("toSymbolSize",u&&u[1]);t.setVisual("style",n.getModel("lineStyle").getLineStyle());t.each(function(n){var h=t.getItemModel(n),i=f.getEdgeByIndex(n),e=sst(h.getShallow("symbol",!0)),o=sst(h.getShallow("symbolSize",!0)),c=h.getModel("lineStyle").getLineStyle(),s=t.ensureUniqueItemVisual(n,"style"),u;switch(r(s,c),s.stroke){case"source":u=i.node1.getVisual("style");s.stroke=u&&u.fill;break;case"target":u=i.node2.getVisual("style");s.stroke=u&&u.fill}e[0]&&i.setVisual("fromSymbol",e[0]);e[1]&&i.setVisual("toSymbol",e[1]);o[0]&&i.setVisual("fromSymbolSize",o[0]);o[1]&&i.setVisual("toSymbolSize",o[1])})})}function iii(n,t,i,r){var l=hst(t),y=u(l),o,s,h,a;if(!l||(o=function(n,t){var i=bn(n.node1,n.node2,t);return t.__edgeMap[i]}(n,t),!o))return null;for(s=-1,h=0;h<o.length;h++)if(o[h]===i){s=h;break}a=function(n,t){return tii(bn(n.node1,n.node2,t),t)+tii(bn(n.node2,n.node1,t),t)}(n,t);llr(t,a);n.lineStyle=n.lineStyle||{};var p=bn(n.node1,n.node2,t),v=t.__curvenessList,f=y||a%2?0:1;if(o.isForward)return v[f+s];var w=alr(p),c=tii(w,t),e=v[s+c+f];return r?y?l&&0===l[0]?(c+f)%2?e:-e:((c%2?0:1)+f)%2?e:-e:(c+f)%2?e:-e:v[s+c+f]}function vlr(n){var i=n.coordinateSystem,t;i&&"view"!==i.type||(t=n.getGraph(),t.eachNode(function(n){var t=n.getModel();n.setLayout([+t.get("x"),+t.get("y")])}),rii(t,n))}function rii(n,t){n.eachEdge(function(n,i){var f=gf(n.getModel().get(["lineStyle","curveness"]),-iii(n,t,i,!0),0),r=be(n.node1.getLayout()),u=be(n.node2.getLayout()),e=[r,u];+f&&e.push([(r[0]+u[0])/2-(r[1]-u[1])*f,(r[1]+u[1])/2-(u[0]-r[0])*f]);n.setLayout(e)})}function bwu(n){n.eachSeriesByType("graph",function(n){var s=n.get("layout"),f=n.coordinateSystem,i,u,r,o;if(f&&"view"!==f.type){for(i=n.getData(),u=[],t(f.dimensions,function(n){u=u.concat(i.mapDimensionsAll(n))}),r=0;r<i.count();r++){for(var h=[],c=!1,e=0;e<u.length;e++)o=i.get(u[e],r),isNaN(o)||(c=!0),h.push(o);c?i.setItemLayout(r,f.dataToPoint(h)):i.setItemLayout(r,[NaN,NaN])}rii(i.graph,n)}else s&&"none"!==s||vlr(n)})}function kn(n){var t=n.coordinateSystem,i,r;return"view"!==t.type?1:(i=n.option.nodeScaleRatio,r=t.scaleX,((t.getZoom()-1)*i+1)/r)}function dn(n){var t=n.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}function fii(n,t,i,r){var s=n.coordinateSystem;if(!s||"view"===s.type){var u=s.getBoundingRect(),h=n.getData(),c=h.graph,f=u.width/2+u.x,e=u.height/2+u.y,l=Math.min(u.width,u.height)/2,a=h.count();if(h.setLayout({cx:f,cy:e}),a){if(i){var v=s.pointToData(r),y=v[0],p=v[1],o=[y-f,p-e];pc(o,o);lb(o,o,l);i.setLayout([f+o[0],e+o[1]],!0);plr(i,n.get(["circular","rotateLabel"]),f,e)}ylr[t](n,c,h,l,f,e,a);c.eachEdge(function(t,i){var s,r=gf(t.getModel().get(["lineStyle","curveness"]),iii(t,n,i),0),u=be(t.node1.getLayout()),o=be(t.node2.getLayout()),h=(u[0]+o[0])/2,c=(u[1]+o[1])/2;+r&&(s=[f*(r*=3)+h*(1-r),e*r+c*(1-r)]);t.setLayout([u,o,s])})}}}function plr(n,t,i,u){var l=n.getGraphicEl(),a,e,o,f,s,h,c;l&&(a=n.getModel().get(["label","rotate"])||0,e=l.getSymbolPath(),t?(o=n.getLayout(),f=Math.atan2(o[1]-u,o[0]-i),f<0&&(f=2*Math.PI+f),s=o[0]<i,s&&(f-=Math.PI),h=s?"left":"right",e.setTextConfig({rotation:-f,position:h,origin:"center"}),c=e.ensureState("emphasis"),r(c.textConfig||(c.textConfig={}),{position:h})):e.setTextConfig({rotation:a*=Math.PI/180}))}function kwu(n){n.eachSeriesByType("graph",function(n){"circular"===n.get("layout")&&fii(n,"symbolSize")})}function dwu(n){n.eachSeriesByType("graph",function(n){var h=n.coordinateSystem;if(!h||"view"===h.type)if("force"===n.get("layout")){var c=n.preservedPoints||{},i=n.getGraph(),t=i.data,y=i.edgeData,f=n.getModel("force"),l=f.get("initLayout");n.preservedPoints?t.each(function(n){var i=t.getId(n);t.setItemLayout(n,c[i]||[NaN,NaN])}):l&&"none"!==l?"circular"===l&&fii(n,"value"):vlr(n);var p=t.getDataExtent("value"),w=y.getDataExtent("value"),e=f.get("repulsion"),o=f.get("edgeLength"),a=u(e)?e:[e,e],r=u(o)?o:[o,o];r=[r[1],r[0]];var v=t.mapArray("value",function(n,i){var r=t.getItemLayout(i),u=pt(n,p,a);return isNaN(u)&&(u=(a[0]+a[1])/2),{w:u,rep:u,fixed:t.getItemModel(i).get("fixed"),p:!r||isNaN(r[0])||isNaN(r[1])?null:r}}),b=y.mapArray("value",function(t,u){var f=i.getEdgeByIndex(u),e=pt(t,w,r),o,s;return isNaN(e)&&(e=(r[0]+r[1])/2),o=f.getModel(),s=gf(f.getModel().get(["lineStyle","curveness"]),-iii(f,n,u,!0),0),{n1:v[f.node1.dataIndex],n2:v[f.node2.dataIndex],d:e,curveness:s,ignoreForceLayout:o.get("ignoreForceLayout")}}),k=h.getBoundingRect(),s=function(n,t,i){for(var f,c,l,a,u,r=n,e=t,o=i.rect,v=o.width,y=o.height,s=[o.x+v/2,o.y+y/2],p=null==i.gravity?.1:i.gravity,h=0;h<r.length;h++)f=r[h],f.p||(f.p=gs(v*(Math.random()-.5)+s[0],y*(Math.random()-.5)+s[1])),f.pp=be(f.p),f.edges=null;return a=null==i.friction?.6:i.friction,u=a,{warmUp:function(){u=.8*a},setFixed:function(n){r[n].fixed=!0},setUnfixed:function(n){r[n].fixed=!1},beforeStep:function(n){c=n},afterStep:function(n){l=n},step:function(n){var v,f,a,y,b,o,k,d,h,g;c&&c(r,e);for(var i=[],w=r.length,t=0;t<e.length;t++)v=e[t],v.ignoreForceLayout||(f=v.n1,nh(i,(o=v.n2).p,f.p),a=cb(i)-v.d,y=o.w/(f.w+o.w),isNaN(y)&&(y=0),pc(i,i),!f.fixed&&rv(f.p,f.p,i,y*a*u),!o.fixed&&rv(o.p,o.p,i,-(1-y)*a*u));for(t=0;t<w;t++)(h=r[t]).fixed||(nh(i,s,h.p),rv(h.p,h.p,i,p*u));for(t=0;t<w;t++)for(f=r[t],b=t+1;b<w;b++)nh(i,(o=r[b]).p,f.p),0===(a=cb(i))&&(usi(i,Math.random()-.5,Math.random()-.5),a=1),k=(f.rep+o.rep)/a/a,f.fixed||rv(f.pp,f.pp,i,k),o.fixed||rv(o.pp,o.pp,i,-k);for(d=[],t=0;t<w;t++)(h=r[t]).fixed||(nh(d,h.p,h.pp),rv(h.p,h.p,d,u),hr(h.pp,h.p));g=(u*=.992)<.01;l&&l(r,e,g);n&&n(g)}}}(v,b,{rect:k,gravity:f.get("gravity"),friction:f.get("friction")});s.beforeStep(function(n){for(var t=0,r=n.length;t<r;t++)n[t].fixed&&hr(n[t].p,i.getNodeByIndex(t).getLayout())});s.afterStep(function(n,r){for(var u=0,h=n.length;u<h;u++)n[u].fixed||i.getNodeByIndex(u).setLayout(n[u].p),c[t.getId(u)]=n[u].p;for(u=0,h=r.length;u<h;u++){var e=r[u],l=i.getEdgeByIndex(u),o=e.n1.p,s=e.n2.p,f=l.getLayout();(f=f?f.slice():[])[0]=f[0]||[];f[1]=f[1]||[];hr(f[0],o);hr(f[1],s);+e.curveness&&(f[2]=[(o[0]+s[0])/2-(o[1]-s[1])*e.curveness,(o[1]+s[1])/2-(s[0]-o[0])*e.curveness]);l.setLayout(f)}});n.forceLayout=s;n.preservedPoints=c;s.step()}else n.forceLayout=null})}function gwu(n,t){var i=[];return n.eachSeriesByType("graph",function(n){var h=n.get("coordinateSystem"),s,f;if(!h||"view"===h){var c=n.getData(),u=[],e=[];vrt(c.mapArray(function(n){var t=c.getItemModel(n);return[+t.get("x"),+t.get("y")]}),u,e);e[0]-u[0]==0&&(e[0]+=1,u[0]-=1);e[1]-u[1]==0&&(e[1]+=1,u[1]-=1);s=(e[0]-u[0])/(e[1]-u[1]);f=function(n,t,i){return ci(r(n.getBoxLayoutParams(),{aspect:i}),{width:t.getWidth(),height:t.getHeight()})}(n,t,s);isNaN(s)&&(u=[f.x,f.y],e=[f.x+f.width,f.y+f.height]);var l=e[0]-u[0],a=e[1]-u[1],v=f.width,y=f.height,o=n.coordinateSystem=new hw;o.zoomLimit=n.get("scaleLimit");o.setBoundingRect(u[0],u[1],l,a);o.setViewRect(f.x,f.y,v,y);o.setCenter(n.get("center"),t);o.setZoom(n.get("zoom"));i.push(o)}}),i}function oii(n){return isNaN(+n.cpx1)||isNaN(+n.cpy1)}function dlr(n){return"_"+n+"Type"}function glr(n,t,i){var r=t.getItemVisual(i,n);if(!r||"none"===r)return r;var f=t.getItemVisual(i,n+"Size"),e=t.getItemVisual(i,n+"Rotate"),o=t.getItemVisual(i,n+"Offset"),s=t.getItemVisual(i,n+"KeepAspect"),u=vp(f);return r+u+oa(o||0,u)+(e||"")+(s||"")}function nar(n,t,i){var u=t.getItemVisual(i,n);if(u&&"none"!==u){var s=t.getItemVisual(i,n+"Size"),f=t.getItemVisual(i,n+"Rotate"),h=t.getItemVisual(i,n+"Offset"),c=t.getItemVisual(i,n+"KeepAspect"),r=vp(s),o=oa(h||0,r),e=si(u,-r[0]/2+o[0],-r[1]/2+o[1],r[0],r[1],null,c);return e.__specifiedRotation=null==f||isNaN(f)?void 0:+f*Math.PI/180||0,e.name=n,e}}function sii(n,t){n.x1=t[0][0];n.y1=t[0][1];n.x2=t[1][0];n.y2=t[1][1];n.percent=1;var i=t[2];i?(n.cpx1=i[0],n.cpy1=i[1]):(n.cpx1=NaN,n.cpy1=NaN)}function tar(n){var t=n.hostModel,i=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:i.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:i.get("disabled"),blurScope:i.get("blurScope"),focus:i.get("focus"),labelStatesModels:bi(t)}}function iar(n){return isNaN(n[0])||isNaN(n[1])}function hii(n){return n&&!iar(n[0])&&!iar(n[1])}function uar(n,t,i){for(var l,a,h,v,r,u=n[0],f=n[1],e=n[2],y=1/0,c=i*i,o=.1,s=.1;s<=.9;s+=.1)cii[0]=cw(u[0],f[0],e[0],s),cii[1]=cw(u[1],f[1],e[1],s),(h=rar(vii(cii,t)-c))<y&&(y=h,r=s);for(l=0;l<32;l++){if(a=r+o,lii[0]=cw(u[0],f[0],e[0],r),lii[1]=cw(u[1],f[1],e[1],r),aii[0]=cw(u[0],f[0],e[0],a),aii[1]=cw(u[1],f[1],e[1],a),h=vii(lii,t)-c,rar(h)<.01)break;v=vii(aii,t)-c;o/=2;h<0?v>=0?r+=o:r-=o:v>=0?r-=o:r+=o}return r}function yii(n,t){var r=[],e=kb,i=[[],[],[]],u=[[],[]],f=[];t/=2;n.eachEdge(function(n){var o=n.getLayout(),l=n.getVisual("fromSymbol"),a=n.getVisual("toSymbol"),s,h,c;o.__original||(o.__original=[be(o[0]),be(o[1])],o[2]&&o.__original.push(be(o[2])));s=o.__original;null!=o[2]?((hr(i[0],s[0]),hr(i[1],s[2]),hr(i[2],s[1]),l&&"none"!==l)&&(h=dn(n.node1),c=uar(i,s[0],h*t),e(i[0][0],i[1][0],i[2][0],c,r),i[0][0]=r[3],i[1][0]=r[4],e(i[0][1],i[1][1],i[2][1],c,r),i[0][1]=r[3],i[1][1]=r[4]),a&&"none"!==a&&(h=dn(n.node2),c=uar(i,s[1],h*t),e(i[0][0],i[1][0],i[2][0],c,r),i[1][0]=r[1],i[2][0]=r[2],e(i[0][1],i[1][1],i[2][1],c,r),i[1][1]=r[1],i[2][1]=r[2]),hr(o[0],i[0]),hr(o[1],i[2]),hr(o[2],i[1])):((hr(u[0],s[0]),hr(u[1],s[1]),nh(f,u[1],u[0]),pc(f,f),l&&"none"!==l)&&(h=dn(n.node1),dtt(u[0],u[0],f,h*t)),a&&"none"!==a&&(h=dn(n.node2),dtt(u[1],u[1],f,-h*t)),hr(o[0],u[0]),hr(o[1],u[1]))})}function far(n){return"view"===n.type}function lw(n){return"_EC_"+n}function sar(n,t){return{getValue:function(i){var r=this[n][t];return r.getStore().get(r.getDimensionIndex(i||"value"),this.dataIndex)},setVisual:function(i,r){this.dataIndex>=0&&this[n][t].setItemVisual(this.dataIndex,i,r)},getVisual:function(i){return this[n][t].getItemVisual(this.dataIndex,i)},setLayout:function(i,r){this.dataIndex>=0&&this[n][t].setItemLayout(this.dataIndex,i,r)},getLayout:function(){return this[n][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[n][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[n][t].getRawIndex(this.dataIndex)}}}function har(n,t,i,r,u){for(var o,h,a,c,k,l,e=new nbu(r),f=0;f<n.length;f++)e.addNode(yi(n[f].id,n[f].name,f),f);var v=[],y=[],p=0;for(f=0;f<t.length;f++){var s=t[f],w=s.source,b=s.target;e.addEdge(w,b,p)&&(y.push(s),v.push(yi(ai(s.id,null),w+" > "+b)),p++)}return h=i.get("coordinateSystem"),"cartesian2d"===h||"polar"===h?o=lo(n,i):(a=up.get(h),c=a&&a.dimensions||[],tt(c,"value")<0&&c.concat(["value"]),k=bp(n,{coordDimensions:c,encodeDefine:i.getEncode()}).dimensions,(o=new yr(k,i)).initData(n)),l=new yr(["value"],i),l.initData(y,v),u&&u(o,l),ocr({mainData:o,struct:e,structAttr:"graph",datas:{node:o,edge:l},datasAttr:{node:"data",edge:"edgeData"}}),e.update(),e}function yst(n,t){var i=null==n?"":n+"";return t&&(o(t)?i=t.replace("{value}",i):l(t)&&(i=t(n))),i}function lbu(n,t){n.eachSeriesByType("funnel",function(n){var i=n.getData(),rt=i.mapDimension("value"),w=n.get("sort"),b=function(n,t){return ci(n.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}(n,t),c=n.get("orient"),f=b.width,o=b.height,a=function(n,t){for(var f=n.mapDimension("value"),i=n.mapArray(f,function(n){return n}),r=[],e="ascending"===t,u=0,o=n.count();u<o;u++)r[u]=u;return l(t)?r.sort(t):"none"!==t&&r.sort(function(n,t){return e?i[n]-i[t]:i[t]-i[n]}),r}(i,w),s=b.x,h=b.y,ut="horizontal"===c?[e(n.get("minSize"),o),e(n.get("maxSize"),o)]:[e(n.get("minSize"),f),e(n.get("maxSize"),f)],ft=i.getDataExtent(rt),k=n.get("min"),d=n.get("max"),y,r,tt,it,u;null==k&&(k=Math.min(ft[0],0));null==d&&(d=ft[1]);var et=n.get("funnelAlign"),v=n.get("gap"),g=(("horizontal"===c?f:o)-v*(i.count()-1))/i.count(),nt=function(n,t){var e,r,u,l;if("horizontal"===c){e=pt(i.get(rt,n)||0,[k,d],ut,!0);r=void 0;switch(et){case"top":r=h;break;case"center":r=h+(o-e)/2;break;case"bottom":r=h+(o-e)}return[[t,r],[t,r+e]]}l=pt(i.get(rt,n)||0,[k,d],ut,!0);switch(et){case"left":u=s;break;case"center":u=s+(f-l)/2;break;case"right":u=s+f-l}return[[u,t],[u+l,t]]};for("ascending"===w&&(g=-g,v=-v,"horizontal"===c?s+=f:h+=o,a=a.reverse()),y=0;y<a.length;y++){var p=a[y],ot=a[y+1],st=i.getItemModel(p);"horizontal"===c?(r=st.get(["itemStyle","width"]),null==r?r=g:(r=e(r,f),"ascending"===w&&(r=-r)),tt=nt(p,s),it=nt(ot,s+r),s+=r+v,i.setItemLayout(p,{points:tt.concat(it.slice().reverse())})):(u=st.get(["itemStyle","height"]),null==u?u=g:(u=e(u,o),"ascending"===w&&(u=-u)),tt=nt(p,h),it=nt(ot,h+u),h+=u+v,i.setItemLayout(p,{points:tt.concat(it.slice().reverse())}))}!function(n){var t=n.hostModel.get("orient");n.each(function(i){var u,s,h,v,y=n.getItemModel(i),o=y.getModel("label").get("position"),b=y.getModel("labelLine"),p=n.getItemLayout(i),r=p.points,w="inner"===o||"inside"===o||"center"===o||"insideLeft"===o||"insideRight"===o;if(w)"insideLeft"===o?(s=(r[0][0]+r[3][0])/2+5,h=(r[0][1]+r[3][1])/2,u="left"):"insideRight"===o?(s=(r[1][0]+r[2][0])/2-5,h=(r[1][1]+r[2][1])/2,u="right"):(s=(r[0][0]+r[1][0]+r[2][0]+r[3][0])/4,h=(r[0][1]+r[1][1]+r[2][1]+r[3][1])/4,u="center"),v=[[s,h],[s,h]];else{var f=void 0,e=void 0,l=void 0,a=void 0,c=b.get("length");"left"===o?(f=(r[3][0]+r[0][0])/2,e=(r[3][1]+r[0][1])/2,s=(l=f-c)-5,u="right"):"right"===o?(f=(r[1][0]+r[2][0])/2,e=(r[1][1]+r[2][1])/2,s=(l=f+c)+5,u="left"):"top"===o?(f=(r[3][0]+r[0][0])/2,h=(a=(e=(r[3][1]+r[0][1])/2)-c)-5,u="center"):"bottom"===o?(f=(r[1][0]+r[2][0])/2,h=(a=(e=(r[1][1]+r[2][1])/2)+c)+5,u="center"):"rightTop"===o?(f="horizontal"===t?r[3][0]:r[1][0],e="horizontal"===t?r[3][1]:r[1][1],"horizontal"===t?(h=(a=e-c)-5,u="center"):(s=(l=f+c)+5,u="top")):"rightBottom"===o?(f=r[2][0],e=r[2][1],"horizontal"===t?(h=(a=e+c)+5,u="center"):(s=(l=f+c)+5,u="bottom")):"leftTop"===o?(f=r[0][0],e="horizontal"===t?r[0][1]:r[1][1],"horizontal"===t?(h=(a=e-c)-5,u="center"):(s=(l=f-c)-5,u="right")):"leftBottom"===o?(f="horizontal"===t?r[1][0]:r[3][0],e="horizontal"===t?r[1][1]:r[2][1],"horizontal"===t?(h=(a=e+c)+5,u="center"):(s=(l=f-c)-5,u="right")):(f=(r[1][0]+r[2][0])/2,e=(r[1][1]+r[2][1])/2,"horizontal"===t?(h=(a=e+c)+5,u="center"):(s=(l=f+c)+5,u="left"));"horizontal"===t?s=l=f:h=a=e;v=[[f,e],[l,a]]}p.label={linePoints:v,x:s,y:h,verticalAlign:"middle",textAlign:u,inside:w}})}(i)})}function lar(n,t,i,r){for(var u,e,s,o=[],f=0;f<i.length;f++)e=i[f],s=n.get(n.mapDimension(e),t),u=s,("category"===r.getAxis(e).type?null==u:null==u||isNaN(u))||o.push(r.dataToPoint(s,e));return o}function aar(n,t,i,r,u){var e=lar(n,i,r,u),f=new er({shape:{points:e},z2:10});return t.add(f),n.setItemGraphicEl(i,f),f}function yar(n){var t=n.get("smooth",!0);return!0===t&&(t=.3),yv(t=io(t))&&(t=0),{smooth:t}}function pii(n,t,i,r){n.useStyle(t.getItemVisual(i,"style"));n.style.fill=null;n.setShape("smooth",r.smooth);var f=t.getItemModel(i),u=f.getModel("emphasis");rr(n,f,"lineStyle");ui(n,u.get("focus"),u.get("blurScope"),u.get("disabled"))}function abu(n){var r=n.ecModel.getComponent("parallel",n.get("parallelIndex")),i;if(r)return i={},t(r.dimensions,function(n){var t=+n.replace("dim","");i[n]=t}),i}function vbu(n){!function(n){if(!n.parallel){var i=!1;t(n.series,function(n){n&&"parallel"===n.type&&(i=!0)});i&&(n.parallel=[{}])}}(n),function(n){var i=kt(n.parallelAxis);t(i,function(t){if(v(t)){var r=t.parallelIndex||0,i=kt(n.parallel)[r];i&&i.parallelAxisDefault&&k(t,i.parallelAxisDefault,!1)}})}(n)}function wii(n,t){var i=n._model;return i.get("axisExpandable")&&i.get("axisExpandTriggerOn")===t}function fv(n,t,i,r,u,f){var c,o,s,e,l,h;return n=n||0,c=i[1]-i[0],(null!=u&&(u=aw(u,[0,c])),null!=f&&(f=Math.max(f,null!=u?u:0)),"all"===r)&&(o=Math.abs(t[1]-t[0]),o=aw(o,[0,c]),u=f=aw(o,[u,f]),r=0),t[0]=aw(t[0],i),t[1]=aw(t[1],i),s=bii(t,r),t[r]+=n,l=u||0,h=i.slice(),s.sign<0?h[0]+=l:h[1]-=l,t[r]=aw(t[r],h),e=bii(t,r),null!=u&&(e.sign!==s.sign||e.span<u)&&(t[1-r]=t[r]+s.sign*u),e=bii(t,r),null!=f&&e.span>f&&(t[1-r]=t[r]+e.sign*f),t}function bii(n,t){var i=n[t]-n[1-t];return{span:Math.abs(i),sign:i>0?-1:i<0?1:t?-1:1}}function aw(n,t){return Math.min(null!=t[1]?t[1]:1/0,Math.max(null!=t[0]?t[0]:-1/0,n))}function pst(n,t){return tvr(ivr(n,t[0]),t[1])}function bbu(n,t){var i=t.layoutLength/(t.axisCount-1);return{position:i*n,axisNameAvailableWidth:i,axisLabelShow:!0}}function kbu(n,t){var r,u,h=t.layoutLength,f=t.axisExpandWidth,c=t.axisCount,i=t.axisCollapseWidth,e=t.winInnerIndices,o=i,s=!1;return n<e[0]?(r=n*i,u=i):n<=e[1]?(r=t.axisExpandWindow0Pos+n*f-t.axisExpandWindow[0],o=f,s=!0):(r=h-(c-1-n)*i,u=i),{position:r,axisNameAvailableWidth:o,axisLabelShow:s,nameTruncateMaxWidth:u}}function svr(n,t){var i=ntt[t.brushType].createCover(n,t);return i.__brushOption=t,lvr(i,t),n.group.add(i),i}function hvr(n,t){var i=nri(t);return i.endCreating&&(i.endCreating(n,t),lvr(t,t.__brushOption)),t}function cvr(n,t){var i=t.__brushOption;nri(t).updateCoverShape(n,t,i.range,i)}function lvr(n,t){var i=t.z;null==i&&(i=1e4);n.traverse(function(n){n.z=i;n.z2=i})}function gii(n,t){nri(t).updateCommon(n,t);cvr(n,t)}function nri(n){return ntt[n.__brushOption.brushType]}function tri(n,i,r){var u,f=n._panels,e;return f?(e=n._transform,t(f,function(n){n.isTargetByCursor(i,r,e)&&(u=n)}),u):ev}function avr(n,t){var r=n._panels,i;return r?(i=t.__brushOption.panelId,null!=i?r[i]:ev):ev}function iri(n){var i=n._covers,r=i.length;return t(i,function(t){n.group.remove(t)},n),i.length=0,!!r}function ov(n,t){var i=f(n._covers,function(n){var t=n.__brushOption,i=y(t.range);return{brushType:t.brushType,panelId:t.panelId,range:i}});n.trigger("brush",{areas:i,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function vvr(n){var t=n.length-1;return t<0&&(t=0),[n[0],n[t]]}function yvr(n,i,r,u){var f=new p;return f.add(new ot({name:"main",style:uri(r),silent:!0,draggable:!0,cursor:"move",drift:w(bvr,n,i,f,["n","s","w","e"]),ondragend:w(ov,i,{isEnd:!0})})),t(u,function(t){f.add(new ot({name:t.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:w(bvr,n,i,f,t),ondragend:w(ov,i,{isEnd:!0})}))}),f}function pvr(n,t,i,r){var f=r.brushStyle.lineWidth||0,u=vw(f,6),s=i[0][0],h=i[1][0],e=s-f/2,o=h-f/2,a=i[0][1],v=i[1][1],c=a-u+f/2,l=v-u+f/2,y=a-s,p=v-h,w=y+f,b=p+f;ps(n,t,"main",s,h,y,p);r.transformable&&(ps(n,t,"w",e,o,u,b),ps(n,t,"e",c,o,u,b),ps(n,t,"n",e,o,w,u),ps(n,t,"s",e,l,w,u),ps(n,t,"nw",e,o,u,u),ps(n,t,"ne",c,o,u,u),ps(n,t,"sw",e,l,u,u),ps(n,t,"se",c,l,u,u))}function rri(n,i){var u=i.__brushOption,r=u.transformable,f=i.childAt(0);f.useStyle(uri(u));f.attr({silent:!r,cursor:r?"move":"default"});t([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(t){var u=i.childOfName(t.join("")),f=1===t.length?fri(n,t[0]):function(n,t){var i=[fri(n,t[0]),fri(n,t[1])];return("e"===i[0]||"w"===i[0])&&i.reverse(),i.join("")}(n,t);u&&u.attr({silent:!r,invisible:!r,cursor:r?nku[f]+"-resize":null})})}function ps(n,t,i,r,u,f,e){var o=t.childOfName(i);o&&o.setShape(function(n){var t=gn(n[0][0],n[1][0]),i=gn(n[0][1],n[1][1]),r=vw(n[0][0],n[1][0]),u=vw(n[0][1],n[1][1]);return{x:t,y:i,width:r-t,height:u-i}}(eri(n,t,[[r,u],[r+f,u+e]])))}function uri(n){return a({strokeNoScale:!0},n.brushStyle)}function wvr(n,t,i,r){var u=[gn(n,i),gn(t,r)],f=[vw(n,i),vw(t,r)];return[[u[0],f[0]],[u[1],f[1]]]}function fri(n,t){var i=sut({w:"left",e:"right",n:"top",s:"bottom"}[t],function(n){return yh(n.group)}(n));return{left:"w",right:"e",top:"n",bottom:"s"}[i]}function bvr(n,i,r,u,f,e){var s=r.__brushOption,o=n.toRectRange(s.range),h=kvr(i,f,e);t(u,function(n){var t=gbu[n];o[t[0]][t[1]]+=h[t[0]]});s.range=n.fromRectRange(wvr(o[0][0],o[1][0],o[0][1],o[1][1]));gii(i,r);ov(i,{isEnd:!1})}function iku(n,i,r,u){var e=i.__brushOption.range,f=kvr(n,r,u);t(e,function(n){n[0]+=f[0];n[1]+=f[1]});gii(n,i);ov(n,{isEnd:!1})}function kvr(n,t,i){var r=n.group,u=r.transformCoordToLocal(t,i),f=r.transformCoordToLocal(0,0);return[u[0]-f[0],u[1]-f[1]]}function eri(n,t,i){var r=avr(n,t);return r&&r!==ev?r.clipPath(i,n._transform):y(i)}function ori(n){var t=n.event;t.preventDefault&&t.preventDefault()}function sri(n,t,i){return n.childOfName("main").contain(t,i)}function dvr(n,t,i,r){var s,u=n._creatingCover,f=n._creatingPanel,o=n._brushOption,e,h;return(n._track.push(i.slice()),function(n){var t=n._track;if(!t.length)return!1;var i=t[t.length-1],r=t[0],u=i[0]-r[0],f=i[1]-r[1];return dbu(u*u+f*f,.5)>6}(n)||u)?(f&&!u&&("single"===o.brushMode&&iri(n),e=y(o),e.brushType=gvr(e.brushType,f),e.panelId=f===ev?null:f.panelId,u=n._creatingCover=svr(n,e),n._covers.push(u)),u&&(h=ntt[gvr(n._brushType,f)],u.__brushOption.range=h.getCreatingRange(eri(n,u,n._track)),r&&(hvr(n,u),h.updateCommon(n,u)),cvr(n,u),s={isEnd:r})):r&&"single"===o.brushMode&&o.removeOnClick&&tri(n,t,i)&&iri(n)&&(s={isEnd:r,removeOnClick:!0}),s}function gvr(n,t){return"auto"===n?t.defaultBrushType:n}function tyr(n,t){if(n._dragging){ori(t);var r=t.offsetX,u=t.offsetY,f=n.group.transformCoordToLocal(r,u),i=dvr(n,t,f,!0);n._dragging=!1;n._track=[];n._creatingCover=null;i&&ov(n,i)}}function iyr(n){return{createCover:function(t,i){return yvr({toRectRange:function(t){var i=[t,[0,100]];return n&&i.reverse(),i},fromRectRange:function(t){return t[n]}},t,i,[[["w"],["e"]],[["n"],["s"]]][n])},getCreatingRange:function(t){var i=vvr(t);return[gn(i[0][n],i[1][n]),vw(i[0][n],i[1][n])]},updateCoverShape:function(t,i,r,u){var f,e=avr(t,i),o,s;e!==ev&&e.getLinearBrushOtherExtent?f=e.getLinearBrushOtherExtent(n):(o=t._zr,f=[0,[o.getWidth(),o.getHeight()][1-n]]);s=[r,f];n&&s.reverse();pvr(t,i,s,u)},updateCommon:rri,contain:sri}}function ryr(n){return n=hri(n),function(t){return lpt(t,n)}}function uyr(n,t){return n=hri(n),function(i){var r=null!=t?t:i,f=r?n.width:n.height,u=r?n.x:n.y;return[u,u+(f||0)]}}function fyr(n,t,i){var r=hri(n);return function(n,u){return r.contain(u[0],u[1])&&!bot(n,t,i)}}function hri(n){return nt.create(n)}function eyr(n){n.registerComponentView(kar);n.registerComponentModel(gar);n.registerCoordinateSystem("parallel",fvr);n.registerPreprocessor(vbu);n.registerComponentModel(wst);n.registerComponentView(uku);ow(n,"parallel",wst,eku),function(n){n.registerAction(fku,function(n,t){t.eachComponent({mainType:"parallelAxis",query:n},function(t){t.axis.model.setActiveIntervals(n.intervals)})});n.registerAction("parallelAxisExpand",function(n,t){t.eachComponent({mainType:"parallel",query:n},function(t){t.setAxisExpand(n)})})}(n)}function oyr(n,t,i){switch(n.fill){case"source":n.fill=i.node1.getVisual("color");n.decal=i.node1.getVisual("style").decal;break;case"target":n.fill=i.node2.getVisual("color");n.decal=i.node2.getVisual("style").decal;break;case"gradient":var r=i.node1.getVisual("color"),u=i.node2.getVisual("color");o(r)&&o(u)&&(n.fill=new ay(0,0,+("horizontal"===t),+("vertical"===t),[{color:r,offset:0},{color:u,offset:1}]))}}function cku(n,i){n.eachSeriesByType("sankey",function(n){var e=n.get("nodeWidth"),o=n.get("nodeGap"),r=function(n,t){return ci(n.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}(n,i);n.layoutInfo=r;var s=r.width,h=r.height,f=n.getGraph(),u=f.nodes,c=f.edges;!function(n){t(n,function(n){var t=hc(n.outEdges,bst),i=hc(n.inEdges,bst),r=n.getValue()||0,u=Math.max(t,i,r);n.setLayout({value:u},!0)})}(u),function(n,i,r,u,f,e,o,s,h){(function(n,i,r,u,f,e,o){for(var l,w,b,nt,k,d,it,v=[],g=[],c=[],y=[],p=0,s=0;s<i.length;s++)v[s]=1;for(s=0;s<n.length;s++)g[s]=n[s].inEdges.length,0===g[s]&&c.push(n[s]);for(l=-1;c.length;){for(w=0;w<c.length;w++){var h=c[w],a=h.hostGraph.data.getRawDataItem(h.dataIndex),tt=null!=a.depth&&a.depth>=0;for(tt&&a.depth>l&&(l=a.depth),h.setLayout({depth:tt?a.depth:p},!0),"vertical"===e?h.setLayout({dy:r},!0):h.setLayout({dx:r},!0),b=0;b<h.outEdges.length;b++)nt=h.outEdges[b],v[i.indexOf(nt)]=0,k=nt.node2,0==--g[n.indexOf(k)]&&y.indexOf(k)<0&&y.push(k)}++p;c=y;y=[]}for(s=0;s<v.length;s++)if(1===v[s])throw new Error("Sankey is a DAG, the original data has cycle!");d=l>p-1?l:p-1;o&&"left"!==o&&function(n,i,r,u){var o,s,h,c;if("right"===i){for(var f=[],e=n,l=0;e.length;){for(o=0;o<e.length;o++)for(s=e[o],s.setLayout({skNodeHeight:l},!0),h=0;h<s.inEdges.length;h++)c=s.inEdges[h],f.indexOf(c.node1)<0&&f.push(c.node1);e=f;f=[];++l}t(n,function(n){hyr(n)||n.setLayout({depth:Math.max(0,u-n.getLayout().skNodeHeight)},!0)})}else"justify"===i&&function(n,i){t(n,function(n){hyr(n)||n.outEdges.length||n.setLayout({depth:i},!0)})}(n,u)}(n,o,0,d);it="vertical"===e?(f-r)/d:(u-r)/d;!function(n,i,r){t(n,function(n){var t=n.getLayout().depth*i;"vertical"===r?n.setLayout({y:t},!0):n.setLayout({x:t},!0)})}(n,it,e)})(n,i,r,f,e,s,h),function(n,i,r,u,f,e,o){var s=function(n,i){var u=[],f="vertical"===i?"y":"x",r=lvt(n,function(n){return n.getLayout()[f]});return r.keys.sort(function(n,t){return n-t}),t(r.keys,function(n){u.push(r.buckets.get(n))}),u}(n,o),h;for(function(n,i,r,u,f,e){var o=1/0;t(n,function(n){var h=n.length,i=0,s;t(n,function(n){i+=n.getLayout().value});s="vertical"===e?(u-(h-1)*f)/i:(r-(h-1)*f)/i;s<o&&(o=s)});t(n,function(n){t(n,function(n,t){var i=n.getLayout().value*o;"vertical"===e?(n.setLayout({x:t},!0),n.setLayout({dx:i},!0)):(n.setLayout({y:t},!0),n.setLayout({dy:i},!0))})});t(i,function(n){var t=+n.getValue()*o;n.setLayout({dy:t},!0)})}(s,i,r,u,f,o),cri(s,f,r,u,o),h=1;e>0;e--)lku(s,h*=.99,o),cri(s,f,r,u,o),wku(s,h,o),cri(s,f,r,u,o)}(n,i,e,f,u,o,s),function(n,i){var r="vertical"===i?"x":"y";t(n,function(n){n.outEdges.sort(function(n,t){return n.node2.getLayout()[r]-t.node2.getLayout()[r]});n.inEdges.sort(function(n,t){return n.node1.getLayout()[r]-t.node1.getLayout()[r]})});t(n,function(n){var i=0,r=0;t(n.outEdges,function(n){n.setLayout({sy:i},!0);i+=n.getLayout().dy});t(n.inEdges,function(n){n.setLayout({ty:r},!0);r+=n.getLayout().dy})})}(n,s)}(u,c,e,o,s,h,0!==yt(u,function(n){return 0===n.getLayout().value}).length?0:n.get("layoutIterations"),n.get("orient"),n.get("nodeAlign"))})}function hyr(n){var t=n.hostGraph.data.getRawDataItem(n.dataIndex);return null!=t.depth&&t.depth>=0}function cri(n,i,r,u,f){var e="vertical"===f?"x":"y";t(n,function(n){var o,t,h;n.sort(function(n,t){return n.getLayout()[e]-t.getLayout()[e]});for(var c=0,l=n.length,a="vertical"===f?"dx":"dy",s=0;s<l;s++)(h=c-(t=n[s]).getLayout()[e])>0&&(o=t.getLayout()[e]+h,"vertical"===f?t.setLayout({x:o},!0):t.setLayout({y:o},!0)),c=t.getLayout()[e]+t.getLayout()[a]+i;if((h=c-i-("vertical"===f?u:r))>0)for(o=t.getLayout()[e]-h,"vertical"===f?t.setLayout({x:o},!0):t.setLayout({y:o},!0),c=o,s=l-2;s>=0;--s)(h=(t=n[s]).getLayout()[e]+t.getLayout()[a]+i-c)>0&&(o=t.getLayout()[e]-h,"vertical"===f?t.setLayout({x:o},!0):t.setLayout({y:o},!0)),c=t.getLayout()[e]})}function lku(n,i,r){t(n.slice().reverse(),function(n){t(n,function(n){var t,u,f,e;n.outEdges.length&&(t=hc(n.outEdges,aku,r)/hc(n.outEdges,bst),isNaN(t)&&(u=n.outEdges.length,t=u?hc(n.outEdges,vku,r)/u:0),"vertical"===r?(f=n.getLayout().x+(t-sc(n,r))*i,n.setLayout({x:f},!0)):(e=n.getLayout().y+(t-sc(n,r))*i,n.setLayout({y:e},!0)))})})}function aku(n,t){return sc(n.node2,t)*n.getValue()}function vku(n,t){return sc(n.node2,t)}function yku(n,t){return sc(n.node1,t)*n.getValue()}function pku(n,t){return sc(n.node1,t)}function sc(n,t){return"vertical"===t?n.getLayout().x+n.getLayout().dx/2:n.getLayout().y+n.getLayout().dy/2}function bst(n){return n.getValue()}function hc(n,t,i){for(var r,u=0,e=n.length,f=-1;++f<e;)r=+t(n[f],i),isNaN(r)||(u+=r);return u}function wku(n,i,r){t(n,function(n){t(n,function(n){var t,u,f,e;n.inEdges.length&&(t=hc(n.inEdges,yku,r)/hc(n.inEdges,bst),isNaN(t)&&(u=n.inEdges.length,t=u?hc(n.inEdges,pku,r)/u:0),"vertical"===r?(f=n.getLayout().x+(t-sc(n,r))*i,n.setLayout({x:f},!0)):(e=n.getLayout().y+(t-sc(n,r))*i,n.setLayout({y:e},!0)))})})}function bku(n){n.eachSeriesByType("sankey",function(n){var f=n.getGraph(),u=f.nodes,e=f.edges,i,r;u.length&&(i=1/0,r=-1/0,t(u,function(n){var t=n.getLayout().value;t<i&&(i=t);t>r&&(r=t)}),t(u,function(t){var f=new gi({type:"color",mappingMethod:"linear",dataExtent:[i,r],visual:n.get("color")}).mapValueToVisual(t.getLayout().value),u=t.getModel().get(["itemStyle","color"]);null!=u?(t.setVisual("color",u),t.setVisual("style",{fill:u})):(t.setVisual("color",f),t.setVisual("style",{fill:f}))}));e.length&&t(e,function(n){var t=n.getModel().get("lineStyle");n.setVisual("style",t)})})}function cyr(n,t,i,r,u){var f=n.ends,e=new gku({shape:{points:u?ndu(f,r,n):f}});return lyr(n,e,t,i,u),e}function lyr(n,t,i,r,u){var o=i.hostModel,e,f;ky[u?"initProps":"updateProps"](t,{shape:{points:n.ends}},o,r);t.useStyle(i.getItemVisual(r,"style"));t.style.strokeNoScale=!0;t.z2=100;e=i.getItemModel(r);f=e.getModel("emphasis");rr(t,e);ui(t,f.get("focus"),f.get("blurScope"),f.get("disabled"))}function ndu(n,t,i){return f(n,function(n){return(n=n.slice())[t]=i.initBaseline,n})}function tdu(n){var t=function(n){var t=[],i=[];return n.eachSeriesByType("boxplot",function(n){var u=n.getBaseAxis(),r=tt(i,u);r<0&&(r=i.length,i[r]=u,t[r]={axis:u,seriesModels:[]});t[r].seriesModels.push(n)}),t}(n);yw(t,function(n){var t=n.seriesModels;t.length&&(!function(n){var t,f=n.axis,i=n.seriesModels,o=i.length,y=n.boxWidthList=[],p=n.boxOffsetList=[],s=[],r,h;"category"===f.type?t=f.getBandWidth():(r=0,yw(i,function(n){r=Math.max(r,n.getData().count())}),h=f.getExtent(),t=Math.abs(h[1]-h[0])/r);yw(i,function(n){var i=n.get("boxWidth");u(i)||(i=[i,i]);s.push([e(i[0],t)||0,e(i[1],t)||0])});var c=.8*t-2,a=c/o*.3,l=(c-a*(o-1))/o,v=l/2-c/2;yw(i,function(n,t){p.push(v);v+=a+l;y.push(Math.min(Math.max(l,s[t][0]),s[t][1]))})}(n),yw(t,function(t,i){!function(n,t,i){function h(n,i,r){var f,s=e.get(i,r),o=[];return o[u]=n,o[l]=s,isNaN(n)||isNaN(s)?f=[NaN,NaN]:(f=nt.dataToPoint(o))[u]+=t,f}function g(n,t,i){var r=t.slice(),f=t.slice();r[u]+=c;f[u]-=c;i?n.push(r,f):n.push(f,r)}function a(n,t){var i=t.slice(),r=t.slice();i[u]-=c;r[u]+=c;n.push(i,r)}var nt=n.coordinateSystem,e=n.getData(),c=i/2,u="horizontal"===n.get("layout")?0:1,l=1-u,v=["x","y"],y=e.mapDimension(v[u]),o=e.mapDimensionsAll(v[l]),r;if(null!=y&&!(o.length<5))for(r=0;r<e.count();r++){var s=e.get(y,r),p=h(s,o[2],r),w=h(s,o[0],r),b=h(s,o[1],r),k=h(s,o[3],r),d=h(s,o[4],r),f=[];g(f,b,!1);g(f,k,!0);f.push(w,b,d,k);a(f,w);a(f,d);a(f,p);e.setItemLayout(r,{initBaseline:p[l],ends:f})}}(t,n.boxOffsetList[i],n.boxWidthList[i])}))})}function vri(n,t,i){var r=n.ends;return new edu({shape:{points:i?odu(r,n):r},z2:100})}function ayr(n,t){for(var r=!0,i=0;i<t.ends.length;i++)if(n.contain(t.ends[i][0],t.ends[i][1])){r=!1;break}return r}function yri(n,t,i,r){var u=t.getItemModel(i);n.useStyle(t.getItemVisual(i,"style"));n.style.strokeNoScale=!0;n.__simpleBox=r;rr(n,u)}function odu(n,t){return f(n,function(n){return(n=n.slice())[1]=t.initBaseline,n})}function yyr(n,t,i,r){var e=n.getData().getLayout("largePoints"),f=new kst({shape:{points:e},__sign:1,ignoreCoarsePointer:!0}),u,o;t.add(f);u=new kst({shape:{points:e},__sign:-1,ignoreCoarsePointer:!0});t.add(u);o=new kst({shape:{points:e},__sign:0,ignoreCoarsePointer:!0});t.add(o);pri(1,f,n);pri(-1,u,n);pri(0,o,n);r&&(f.incremental=!0,u.incremental=!0);i&&i.push(f,u)}function pri(n,t,i){var r=i.get(["itemStyle",n>0?"borderColor":"borderColor0"])||i.get(["itemStyle",n>0?"color":"color0"]),u;0===n&&(r=i.get(["itemStyle","borderColorDoji"]));u=i.getModel("itemStyle").getItemStyle(rdu);t.useStyle(u);t.style.fill=null;t.style.stroke=r}function sdu(n){n&&u(n.series)&&t(n.series,function(n){v(n)&&"k"===n.type&&(n.type="candlestick")})}function pyr(n,t,i,r,u,f){return i>r?-1:i<r?1:f?0:t>0?n.get(u,t-1)<=r?1:-1:1}function wyr(n,t){var i=t.rippleEffectColor||t.color;n.eachChild(function(n){n.attr({z:t.z,zlevel:t.zlevel,style:{stroke:"stroke"===t.brushType?i:null,fill:"fill"===t.brushType?i:null}})})}function gyr(n){var t=n.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(n.data=f(t,function(n){var t={coords:[n[0].coord,n[1].coord]};return n[0].name&&(t.fromName=n[0].name),n[1].name&&(t.toName=n[1].name),ptt([t,n[0],n[1]])}))}function dst(n){return n instanceof Array||(n=[n,n]),n}function rpr(n){var t=n.dimensions;return"lng"===t[0]&&"lat"===t[1]}function fpr(n,t,i,f){var s=n.getItemLayout(t),h=i.get("symbolRepeat"),p=i.get("symbolClip"),w=i.get("symbolPosition")||"start",l=(i.get("symbolRotate")||0)*Math.PI/180||0,a=i.get("symbolPatternSize")||2,v=i.isAnimationEnabled(),o={dataIndex:t,layout:s,itemModel:i,symbolType:n.getItemVisual(t,"symbol")||"circle",style:n.getItemVisual(t,"style"),symbolClip:p,symbolRepeat:h,symbolRepeatDirection:i.get("symbolRepeatDirection"),symbolPatternSize:a,rotation:l,animationModel:v?i:null,hoverScale:v&&i.get(["emphasis","scale"]),z2:i.getShallow("z",!0)||0},c,y;return!function(n,t,i,r,f){var h,c=r.valueDim,e=n.get("symbolBoundingData"),o=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),l=o.toGlobalCoord(o.dataToCoord(0)),a=1-+(i[c.wh]<=0),s;u(e)?(s=[kri(o,e[0])-l,kri(o,e[1])-l],s[1]<s[0]&&s.reverse(),h=s[a]):h=null!=e?kri(o,e)-l:t?r.coordSysExtent[c.index][a]-l:i[c.wh];f.boundingLength=h;t&&(f.repeatCutLength=i[c.wh]);f.pxSign=h>0?1:-1}(i,h,s,f,o),function(n,t,i,r,f,o,s,h,c,l){var a,y=c.valueDim,p=c.categoryDim,w=Math.abs(i[p.wh]),v=n.getItemVisual(t,"symbolSize"),b;a=u(v)?v.slice():null==v?["100%","100%"]:[v,v];a[p.index]=e(a[p.index],w);a[y.index]=e(a[y.index],r?w:Math.abs(o));l.symbolSize=a;b=l.symbolScale=[a[0]/h,a[1]/h];b[y.index]*=(c.isHorizontal?-1:1)*s}(n,t,s,h,0,o.boundingLength,o.pxSign,a,f,o),function(n,t,i,r,u){var f=n.get(ogu)||0;f&&(bri.attr({scaleX:t[0],scaleY:t[1],rotation:i}),bri.updateTransform(),f/=bri.getLineScale(),f*=t[r.valueDim.index]);u.valueLineWidth=f||0}(i,o.symbolScale,l,f,o),c=o.symbolSize,y=oa(i.get("symbolOffset"),c),function(n,t,i,u,f,o,s,h,c,l,a,v){var p=a.categoryDim,y=a.valueDim,ot=v.pxSign,nt=Math.max(t[y.index]+h,0),st=nt,ut,k,ft,et,g;if(u){var ht=Math.abs(c),w=yi(n.get("symbolMargin"),"15%")+"",tt=!1;w.lastIndexOf("!")===w.length-1&&(tt=!0,w=w.slice(0,w.length-1));var d=e(w,t[y.index]),it=Math.max(nt+2*d,0),rt=tt?0:2*d,ct=fvt(u),b=ct?u:wpr((ht+rt)/it);it=nt+2*(d=(ht-b*nt)/2/(tt?b:Math.max(b-1,1)));rt=tt?0:2*d;ct||"fixed"===u||(b=l?wpr((Math.abs(l)+rt)/it):0);st=b*it-rt;v.repeatTimes=b;v.symbolMargin=d}ut=ot*(st/2);k=v.pathPosition=[];k[p.index]=i[p.wh]/2;k[y.index]="start"===s?ut:"end"===s?c-ut:c/2;o&&(k[0]+=o[0],k[1]+=o[1]);ft=v.bundlePosition=[];ft[p.index]=i[p.xy];ft[y.index]=i[y.xy];et=v.barRectShape=r({},i);et[y.wh]=ot*Math.max(Math.abs(i[y.wh]),Math.abs(k[y.index]+ut));et[p.wh]=i[p.wh];g=v.clipShape={};g[p.xy]=-i[p.xy];g[p.wh]=a.ecSize[p.wh];g[y.xy]=0;g[y.wh]=i[y.wh]}(i,c,s,h,0,y,w,o.valueLineWidth,o.boundingLength,o.repeatCutLength,f,o),o}function kri(n,t){return n.toGlobalCoord(n.dataToCoord(n.scale.parse(t)))}function epr(n){var t=n.symbolPatternSize,i=si(n.symbolType,-t/2,-t/2,t,t);return i.attr({culling:!0}),"image"!==i.type&&i.setStyle({strokeNoScale:!0}),i}function opr(n,t,i,r){function l(n){var t=h.slice(),r=i.pxSign,u=n;return("start"===i.symbolRepeatDirection?r>0:r<0)&&(u=f-1-n),t[c.index]=y*(u-f/2+.5)+h[c.index],{x:t[0],y:t[1],scaleX:i.symbolScale[0],scaleY:i.symbolScale[1],rotation:i.rotation}}var s=n.__pictorialBundle,a=i.symbolSize,v=i.valueLineWidth,h=i.pathPosition,c=t.valueDim,f=i.repeatTimes||0,u=0,y=a[t.valueDim.index]+v+2*i.symbolMargin,o,e;for(dri(n,function(n){n.__pictorialAnimationIndex=u;n.__pictorialRepeatTimes=f;u<f?pw(n,null,l(u),i,r):pw(n,null,{scaleX:0,scaleY:0},i,r,function(){s.remove(n)});u++});u<f;u++)o=epr(i),o.__pictorialAnimationIndex=u,o.__pictorialRepeatTimes=f,s.add(o),e=l(u),pw(o,{x:e.x,y:e.y,scaleX:0,scaleY:0},{scaleX:e.scaleX,scaleY:e.scaleY,rotation:e.rotation},i,r)}function spr(n,t,i,r){var f=n.__pictorialBundle,u=n.__pictorialMainPath;u?pw(u,null,{x:i.pathPosition[0],y:i.pathPosition[1],scaleX:i.symbolScale[0],scaleY:i.symbolScale[1],rotation:i.rotation},i,r):(u=n.__pictorialMainPath=epr(i),f.add(u),pw(u,{x:i.pathPosition[0],y:i.pathPosition[1],scaleX:0,scaleY:0,rotation:i.rotation},{scaleX:i.symbolScale[0],scaleY:i.symbolScale[1]},i,r))}function hpr(n,t,i){var f=r({},t.barRectShape),u=n.__pictorialBarRect;u?pw(u,null,{shape:f},t,i):((u=n.__pictorialBarRect=new ot({z2:2,shape:f,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}})).disableMorphing=!0,n.add(u))}function cpr(n,t,i,u){var s;if(i.symbolClip){var f=n.__pictorialClipPath,e=r({},i.clipShape),o=t.valueDim,h=i.animationModel,c=i.dataIndex;f?lt(f,{shape:e},h,c):(e[o.wh]=0,f=new ot({shape:e}),n.__pictorialBundle.setClipPath(f),n.__pictorialClipPath=f,s={},s[o.wh]=i.clipShape[o.wh],ky[u?"updateProps":"initProps"](f,{shape:s},h,c))}}function lpr(n,t){var i=n.getItemModel(t);return i.getAnimationDelayParams=hgu,i.isAnimationEnabled=cgu,i}function hgu(n){return{index:n.__pictorialAnimationIndex,count:n.__pictorialRepeatTimes}}function cgu(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function apr(n,t,i,r){var u=new p,f=new p;return u.add(f),u.__pictorialBundle=f,f.x=i.bundlePosition[0],f.y=i.bundlePosition[1],i.symbolRepeat?opr(u,t,i):spr(u,0,i),hpr(u,i,r),cpr(u,t,i,r),u.__pictorialShapeStr=ypr(n,i),u.__pictorialSymbolMeta=i,u}function vpr(n,i,r,u){var e=u.__pictorialBarRect,f;e&&e.removeTextContent();f=[];dri(u,function(n){f.push(n)});u.__pictorialMainPath&&f.push(u.__pictorialMainPath);u.__pictorialClipPath&&(r=null);t(f,function(n){vh(n,{scaleX:0,scaleY:0},r,i,function(){u.parent&&u.parent.remove(u)})});n.setItemGraphicEl(i,null)}function ypr(n,t){return[n.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function dri(n,i,r){t(n.__pictorialBundle.children(),function(t){t!==n.__pictorialBarRect&&i.call(r,t)})}function pw(n,t,i,r,u,f){t&&n.attr(t);r.symbolClip&&!u?i&&n.attr(i):i&&ky[u?"updateProps":"initProps"](n,i,r.animationModel,r.dataIndex,f)}function ppr(n,t,i){var e=i.dataIndex,u=i.itemModel,f=u.getModel("emphasis"),h=f.getModel("itemStyle").getItemStyle(),c=u.getModel(["blur","itemStyle"]).getItemStyle(),l=u.getModel(["select","itemStyle"]).getItemStyle(),o=u.getShallow("cursor"),a=f.get("focus"),v=f.get("blurScope"),y=f.get("scale"),s;dri(n,function(n){var t,u;n instanceof wi?(t=n.style,n.useStyle(r({image:t.image,x:t.x,y:t.y,width:t.width,height:t.height},i.style))):n.useStyle(i.style);u=n.ensureState("emphasis");u.style=h;y&&(u.scaleX=1.1*n.scaleX,u.scaleY=1.1*n.scaleY);n.ensureState("blur").style=c;n.ensureState("select").style=l;o&&(n.cursor=o);n.z2=i.z2});s=t.valueDim.posDesc[+(i.boundingLength>0)];or(n.__pictorialBarRect,bi(u),{labelFetcher:t.seriesModel,labelDataIndex:e,defaultText:iw(t.seriesModel.getData(),e),inheritColor:i.style.fill,defaultOpacity:i.style.opacity,defaultOutsidePosition:s});ui(n,a,v,f.get("disabled"))}function wpr(n){var t=Math.round(n);return Math.abs(n-t)<.0001?t:Math.ceil(n)}function ygu(n){n.eachSeriesByType("themeRiver",function(n){var r=n.getData(),f=n.coordinateSystem,u={},i=f.getRect(),t,o;u.rect=i;t=n.get("boundaryGap");o=f.getAxis();(u.boundaryGap=t,"horizontal"===o.orient)?(t[0]=e(t[0],i.height),t[1]=e(t[1],i.height),bpr(r,n,i.height-t[0]-t[1])):(t[0]=e(t[0],i.width),t[1]=e(t[1],i.width),bpr(r,n,i.width-t[0]-t[1]));r.setLayout("layoutInfo",u)})}function bpr(n,t,i){var u;if(n.count())for(var s,l=t.coordinateSystem,o=t.getLayerSeries(),a=n.mapDimension("single"),v=n.mapDimension("value"),e=f(o,function(t){return f(t.indices,function(t){var i=l.dataToPoint(n.get(a,t));return i[1]=n.get(v,t),i})}),c=function(n){for(var i,f,r,u,c,l=n.length,e=n[0].length,o=[],s=[],t=0,h=0;h<e;++h){for(i=0,f=0;f<l;++f)i+=n[f][h][1];i>t&&(t=i);o.push(i)}for(r=0;r<e;++r)s[r]=(t-o[r])/2;for(t=0,u=0;u<e;++u)c=o[u]+s[u],c>t&&(t=c);return{y0:s,max:t}}(e),y=c.y0,h=i/c.max,p=o.length,w=o[0].indices.length,r=0;r<w;++r)for(s=y[r]*h,n.setItemLayout(o[0].indices[r],{layerIndex:0,x:e[0][r][0],y0:s,y:e[0][r][1]*h}),u=1;u<p;++u)s+=e[u-1][r][1]*h,n.setItemLayout(o[u].indices[r],{layerIndex:u,x:e[u][r][0],y0:s,y:e[u][r][1]*h})}function gpr(n){var r=0,i;t(n.children,function(n){gpr(n);var t=n.value;u(t)&&(t=t[0]);r+=t});i=n.value;u(i)&&(i=i[0]);(null==i||isNaN(i))&&(i=r);i<0&&(i=0);u(n.value)?n.value[0]=i:n.value=i}function bgu(n,i,r){i.eachSeriesByType(n,function(n){var f=n.get("center"),o=n.get("radius"),l;u(o)||(o=[0,o]);u(f)||(f=[f,f]);var p=r.getWidth(),w=r.getHeight(),h=Math.min(p,w),b=e(f[0],p),k=e(f[1],w),s=e(o[0],h/2),ft=e(o[1],h/2),c=-n.get("startAngle")*nui,d=n.get("minAngle")*nui,g=n.getData().tree.root,i=n.getViewRoot(),et=i.depth,nt=n.get("sort");null!=nt&&nwr(i,nt);l=0;t(i.children,function(n){isNaN(n.getValue())||l++});var tt=i.getValue(),it=Math.PI/(tt||l)*2,a=i.depth>0,ot=i.height-(a?-1:1),v=(ft-s)/(ot||1),y=n.get("clockwise"),st=n.get("stillShowZeroSum"),ht=y?1:-1,rt=function(i,r){var f,nt,u,w;if(i){if(f=r,i!==g){nt=i.getValue();u=0===tt&&st?it:nt*it;u<d&&(u=d);f=r+ht*u;var ut=i.depth-et-(a?-1:1),ft=s+v*ut,ot=s+v*(ut+1),o=n.getLevelModel(i);if(o){var c=o.get("r0",!0),l=o.get("r",!0),p=o.get("radius",!0);null!=p&&(c=p[0],l=p[1]);null!=c&&(ft=e(c,h/2));null!=l&&(ot=e(l,h/2))}i.setLayout({angle:u,startAngle:r,endAngle:f,clockwise:y,cx:b,cy:k,r0:ft,r:ot})}return i.children&&i.children.length&&(w=0,t(i.children,function(n){w+=rt(n,r+w)})),f-r}};if(a){var ct=s,lt=s+v,ut=2*Math.PI;g.setLayout({angle:ut,startAngle:c,endAngle:c+ut,clockwise:y,cx:b,cy:k,r0:ct,r:lt})}rt(i,c)})}function nwr(n,i){var r=n.children||[];n.children=function(n,t){var i,r;return l(t)?(i=f(n,function(n,t){var i=n.getValue();return{params:{depth:n.depth,height:n.height,dataIndex:n.dataIndex,getValue:function(){return i}},index:t}}),i.sort(function(n,i){return t(n.params,i.params)}),f(i,function(t){return n[t.index]})):(r="asc"===t,n.sort(function(n,t){var i=(n.getValue()-t.getValue())*(r?1:-1);return 0===i?(n.dataIndex-t.dataIndex)*(r?-1:1):i}))}(r,i);r.length&&t(n.children,function(n){nwr(n,i)})}function kgu(n){var t={};n.eachSeriesByType("sunburst",function(n){var i=n.getData(),u=i.tree;u.eachNode(function(f){var e=f.getModel().getModel("itemStyle").getItemStyle();e.fill||(e.fill=function(n,i,r){for(var f,u=n;u&&u.depth>1;)u=u.parentNode;return f=i.getColorFromPalette(u.name||u.dataIndex+"",t),n.depth>1&&o(f)&&(f=cit(f,(n.depth-1)/(r-1)*.5)),f}(f,n,u.root.height));r(i.ensureUniqueItemVisual(f.dataIndex,"style"),e)})})}function nnu(n,t){return t=t||[0,0],f(["x","y"],function(i,r){var u=this.getAxis(i),f=t[r],e=n[r]/2;return"category"===u.type?u.getBandWidth():Math.abs(u.dataToCoord(f-e)-u.dataToCoord(f+e))},this)}function tnu(n,t){return t=t||[0,0],f([0,1],function(i){var f=t[i],e=n[i]/2,r=[],u=[];return r[i]=f-e,u[i]=f+e,r[1-i]=u[1-i]=t[1-i],Math.abs(this.dataToPoint(r)[i]-this.dataToPoint(u)[i])},this)}function inu(n,t){var i=this.getAxis(),r=t instanceof Array?t[0]:t,u=(n instanceof Array?n[0]:n)/2;return"category"===i.type?i.getBandWidth():Math.abs(i.dataToCoord(r-u)-i.dataToCoord(r+u))}function rnu(n,t){return t=t||[0,0],f(["Radius","Angle"],function(i,r){var u=this["get"+i+"Axis"](),e=t[r],o=n[r]/2,f="category"===u.type?u.getBandWidth():Math.abs(u.dataToCoord(e-o)-u.dataToCoord(e+o));return"Angle"===i&&(f=f*Math.PI/180),f},this)}function iwr(n,t,i,r){return n&&(n.legacy||!1!==n.legacy&&!i&&!r&&"tspan"!==t&&("text"===t||h(n,"text")))}function rwr(n,i,r){var e,s,f,u=n,o;return"text"===i?f=u:(f={},h(u,"text")&&(f.text=u.text),h(u,"rich")&&(f.rich=u.rich),h(u,"textFill")&&(f.fill=u.textFill),h(u,"textStroke")&&(f.stroke=u.textStroke),h(u,"fontFamily")&&(f.fontFamily=u.fontFamily),h(u,"fontSize")&&(f.fontSize=u.fontSize),h(u,"fontStyle")&&(f.fontStyle=u.fontStyle),h(u,"fontWeight")&&(f.fontWeight=u.fontWeight),s={type:"text",style:f,silent:!0},e={},o=h(u,"textPosition"),r?e.position=o?u.textPosition:"inside":o&&(e.position=u.textPosition),h(u,"textPosition")&&(e.position=u.textPosition),h(u,"textOffset")&&(e.offset=u.textOffset),h(u,"textRotation")&&(e.rotation=u.textRotation),h(u,"textDistance")&&(e.distance=u.textDistance)),uwr(f,n),t(f.rich,function(n){uwr(n,n)}),{textConfig:e,textContent:s}}function uwr(n,t){t&&(t.font=t.textFont||t.font,h(t,"textStrokeWidth")&&(n.lineWidth=t.textStrokeWidth),h(t,"textAlign")&&(n.align=t.textAlign),h(t,"textVerticalAlign")&&(n.verticalAlign=t.textVerticalAlign),h(t,"textLineHeight")&&(n.lineHeight=t.textLineHeight),h(t,"textWidth")&&(n.width=t.textWidth),h(t,"textHeight")&&(n.height=t.textHeight),h(t,"textBackgroundColor")&&(n.backgroundColor=t.textBackgroundColor),h(t,"textPadding")&&(n.padding=t.textPadding),h(t,"textBorderColor")&&(n.borderColor=t.textBorderColor),h(t,"textBorderWidth")&&(n.borderWidth=t.textBorderWidth),h(t,"textBorderRadius")&&(n.borderRadius=t.textBorderRadius),h(t,"textBoxShadowColor")&&(n.shadowColor=t.textBoxShadowColor),h(t,"textBoxShadowBlur")&&(n.shadowBlur=t.textBoxShadowBlur),h(t,"textBoxShadowOffsetX")&&(n.shadowOffsetX=t.textBoxShadowOffsetX),h(t,"textBoxShadowOffsetY")&&(n.shadowOffsetY=t.textBoxShadowOffsetY))}function fwr(n,i,r){var u=n,e,o,f;return u.textPosition=u.textPosition||r.position||"inside",null!=r.offset&&(u.textOffset=r.offset),null!=r.rotation&&(u.textRotation=r.rotation),null!=r.distance&&(u.textDistance=r.distance),e=u.textPosition.indexOf("inside")>=0,o=n.fill||"#000",ewr(u,i),f=null==u.textFill,e?f&&(u.textFill=r.insideFill||"#fff",!u.textStroke&&r.insideStroke&&(u.textStroke=r.insideStroke),!u.textStroke&&(u.textStroke=o),null==u.textStrokeWidth&&(u.textStrokeWidth=2)):(f&&(u.textFill=n.fill||r.outsideFill||"#000"),!u.textStroke&&r.outsideStroke&&(u.textStroke=r.outsideStroke)),u.text=i.text,u.rich=i.rich,t(i.rich,function(n){ewr(n,n)}),u}function ewr(n,t){t&&(h(t,"fill")&&(n.textFill=t.fill),h(t,"stroke")&&(n.textStroke=t.fill),h(t,"lineWidth")&&(n.textStrokeWidth=t.lineWidth),h(t,"font")&&(n.font=t.font),h(t,"fontStyle")&&(n.fontStyle=t.fontStyle),h(t,"fontWeight")&&(n.fontWeight=t.fontWeight),h(t,"fontSize")&&(n.fontSize=t.fontSize),h(t,"fontFamily")&&(n.fontFamily=t.fontFamily),h(t,"align")&&(n.textAlign=t.align),h(t,"verticalAlign")&&(n.textVerticalAlign=t.verticalAlign),h(t,"lineHeight")&&(n.textLineHeight=t.lineHeight),h(t,"width")&&(n.textWidth=t.width),h(t,"height")&&(n.textHeight=t.height),h(t,"backgroundColor")&&(n.textBackgroundColor=t.backgroundColor),h(t,"padding")&&(n.textPadding=t.padding),h(t,"borderColor")&&(n.textBorderColor=t.borderColor),h(t,"borderWidth")&&(n.textBorderWidth=t.borderWidth),h(t,"borderRadius")&&(n.textBorderRadius=t.borderRadius),h(t,"shadowColor")&&(n.textBoxShadowColor=t.shadowColor),h(t,"shadowBlur")&&(n.textBoxShadowBlur=t.shadowBlur),h(t,"shadowOffsetX")&&(n.textBoxShadowOffsetX=t.shadowOffsetX),h(t,"shadowOffsetY")&&(n.textBoxShadowOffsetY=t.shadowOffsetY),h(t,"textShadowColor")&&(n.textShadowColor=t.textShadowColor),h(t,"textShadowBlur")&&(n.textShadowBlur=t.textShadowBlur),h(t,"textShadowOffsetX")&&(n.textShadowOffsetX=t.textShadowOffsetX),h(t,"textShadowOffsetY")&&(n.textShadowOffsetY=t.textShadowOffsetY))}function tui(n,t,i,u,f){var h=n+"Animation",e=vy(n,u,f)||{},o=ww(t).userDuring;return e.duration>0&&(e.during=o?s(unu,{el:t,userDuring:o}):null,e.setToFinal=!0,e.scope=n),r(e,i[h]),e}function nht(n,i,u,f){var a=(f=f||{}).dataIndex,v=f.isInit,p=f.clearStyle,y=u.isAnimationEnabled(),w=ww(n),c=i.style,e,o,s,l;w.userDuring=i.during;e={};o={},(function(n,t,i){for(var u,r=0;r<swr.length;r++){var e=swr[r],o=owr[e],f=t[e];f&&(i[o[0]]=f[0],i[o[1]]=f[1])}for(r=0;r<to.length;r++)u=to[r],null!=t[u]&&(i[u]=t[u])}(0,i,o),awr("shape",i,o),awr("extra",i,o),!v&&y&&(function(n,t,i){for(var r,o,f=t.transition,e=sv(f)?to:kt(f||[]),u=0;u<e.length;u++)r=e[u],"style"!==r&&"shape"!==r&&"extra"!==r&&(o=n[r],i[r]=o)}(n,i,e),lwr("shape",n,i,e),lwr("extra",n,i,e),function(n,t,i,r){var f,s,e,c,l,u,h,a,v,y,o;if(i&&(s=n.style,s))if(e=i.transition,c=t.transition,e&&!sv(e))for(l=kt(e),f||(f=r.style={}),u=0;u<l.length;u++)h=s[o=l[u]],f[o]=h;else if(n.getAnimationStyleProps&&(sv(c)||sv(e)||tt(c,"style")>=0)&&(a=n.getAnimationStyleProps(),v=a?a.style:null,v))for(f||(f=r.style={}),y=et(i),u=0;u<y.length;u++)v[o=y[u]]&&(h=s[o],f[o]=h)}(n,i,c,e)),o.style=c,function(n,t,i){var u=t.style,f,r,e;if(!n.isGroup&&u){if(i)for(n.useStyle({}),f=n.animators,r=0;r<f.length;r++)e=f[r],"style"===e.targetName&&e.changeTarget(n.style);n.setStyle(u)}t&&(t.style=null,t&&n.attr(t),t.style=u)}(n,o,p),function(n,t){h(t,"silent")&&(n.silent=t.silent);h(t,"ignore")&&(n.ignore=t.ignore);n instanceof ef&&h(t,"invisible")&&(n.invisible=t.invisible);n instanceof ut&&h(t,"autoBatch")&&(n.autoBatch=t.autoBatch)}(n,i),y)&&(v?(s={},t(gst,function(n){var t=n?i[n]:i;t&&t.enterFrom&&(n&&(s[n]=s[n]||{}),r(n?s[n]:s,t.enterFrom))}),l=tui("enter",n,i,u,a),l.duration>0&&n.animateFrom(s,l)):!function(n,t,i,r,u){if(u){var f=tui("update",n,t,r,i);f.duration>0&&n.animateFrom(u,f)}}(n,i,a||0,u,e));hwr(n,i);c?n.dirty():n.markRedraw()}function hwr(n,t){for(var i,e,u=ww(n).leaveToProps,f=0;f<gst.length;f++)i=gst[f],e=i?t[i]:t,e&&e.leaveTo&&(u||(u=ww(n).leaveToProps={}),i&&(u[i]=u[i]||{}),r(i?u[i]:u,e.leaveTo))}function tht(n,t,i,r){var u,f,e;n&&(u=n.parent,f=ww(n).leaveToProps,f?(e=tui("update",n,t,i,0),e.done=function(){u.remove(n);r&&r()},n.animateTo(f,e)):(u.remove(n),r&&r()))}function sv(n){return"all"===n}function unu(){var n=this,t=n.el,r,i;t&&(r=ww(t).userDuring,i=n.userDuring,r===i?(we.el=t,i(cwr)):n.el=n.userDuring=null)}function lwr(n,t,i,u){var l=i[n],e,o,a,c,v,f,s,y,h;if(l&&(o=t[n],o))if(a=i.transition,c=l.transition,c)if(!e&&(e=u[n]={}),sv(c))r(e,o);else for(v=kt(c),f=0;f<v.length;f++)s=o[h=v[f]],e[h]=s;else if(sv(a)||tt(a,n)>=0)for(e||(e=u[n]={}),y=et(o),f=0;f<y.length;f++)s=o[h=y[f]],fnu(l[h],s)&&(e[h]=s)}function awr(n,t,i){var r=t[n],f;if(r)for(var o=i[n]={},e=et(r),u=0;u<e.length;u++)f=e[u],o[f]=ek(r[f])}function fnu(n,t){return ir(n)?n!==t:null!=n&&isFinite(n)}function ywr(n){n.stopAnimation("keyframe");n.attr(iui(n))}function iht(n,i,r){var o,f,s,e;r.isAnimationEnabled()&&i&&(u(i)?t(i,function(t){iht(n,t,r)}):(o=i.keyframes,f=i.duration,r&&null==f&&(s=vy("enter",r,0),f=s&&s.duration),o&&f&&(e=iui(n),t(gst,function(r){if(!r||n[r]){var u;o.sort(function(n,t){return n.percent-t.percent});t(o,function(o){var c=n.animators,l=r?o[r]:o,s,h,a;if(l&&(s=et(l),r||(s=yt(s,function(n){return tt(vwr,n)<0})),s.length)){for(u||((u=n.animate(r,i.loop,!0)).scope="keyframe"),h=0;h<c.length;h++)c[h]!==u&&c[h].targetName===u.targetName&&c[h].stopTracks(s);r&&(e[r]=e[r]||{});a=r?e[r]:e;t(s,function(t){a[t]=((r?n[r]:n)||{})[t]});u.whenWithKeys(f*o.percent,l,s,o.easing)}});u&&u.delay(i.delay||0).duration(f).start(i.easing)}}))))}function oui(n){return n instanceof ut}function sui(n){return n instanceof ef}function hui(n){var t,r=n.type,u,e;if("path"===r){var i=n.shape,o=null!=i.width&&null!=i.height?{x:i.x||0,y:i.y||0,width:i.width,height:i.height}:null,f=tbr(i);t=rd(f,null,o,i.layout||"center");ws(t).customPathData=f}else if("image"===r)t=new wi({}),ws(t).customImagePath=n.style.image;else if("text"===r)t=new st({});else if("group"===r)t=new p;else{if("compoundPath"===r)throw new Error('"compoundPath" is not supported yet.');u=out(r);u||(e="",vt(e));t=new u}return ws(t).customGraphicType=r,t.name=n.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function cui(n,t,i,r,u,f,e){var a,o,s,c,l;ywr(t);a=u&&u.normal.cfg;a&&t.setTextConfig(a);r&&null==r.transition&&(r.transition=enu);o=r&&r.style;o&&("text"===t.type&&(s=o,h(s,"textFill")&&(s.fill=s.textFill),h(s,"textStroke")&&(s.stroke=s.textStroke)),c=void 0,l=oui(t)?o.decal:null,n&&l&&(l.dirty=!0,c=pp(l,n)),o.__decalPattern=c);sui(t)&&o&&(c=o.__decalPattern)&&(o.decal=c);nht(t,r,f,{dataIndex:i,isInit:e,clearStyle:!0});iht(t,r.keyframeAnimation,f)}function wwr(n,t,i,r,u){var f=t.isGroup?null:t,s=u&&u[n].cfg,e,o;f&&(e=f.ensureState(n),!1===r?(o=f.getState(n),o&&(o.style=null)):e.style=r||null,s&&(e.textConfig=s),bl(f))}function snu(n,t,i){var r=i===cc,u=r?t:rht(t,i),f=u?u.z2:null;null!=f&&((r?n:n.ensureState(i)).z2=f||0)}function bwr(n,t,i,r){function s(n){return n===u?l||(l=t.getItemModel(n)):t.getItemModel(n)}function g(n,i){return t.hasItemOption?n===u?v[i]||(v[i]=s(n).getModel(fui[i])):s(n).getModel(fui[i]):b[i]}function nt(n,i){return t.hasItemOption?n===u?y[i]||(y[i]=s(n).getModel(eui[i])):s(n).getModel(eui[i]):k[i]}function tt(n,t){for(var i in t)h(t,i)&&(n[i]=t[i])}function it(n,t){n&&(n.textFill&&(t.textFill=n.textFill),n.textPosition&&(t.textPosition=n.textPosition))}var w=n.get("renderItem"),f=n.coordinateSystem,c={},e;f&&(c=f.prepareCustoms?f.prepareCustoms(f):onu[f.type](f));for(var u,l,rt=a({getWidth:r.getWidth,getHeight:r.getHeight,getZr:r.getZr,getDevicePixelRatio:r.getDevicePixelRatio,value:function(n,i){return null==i&&(i=u),t.getStore().get(t.getDimensionIndex(n||0),i)},style:function(i,r){var v;null==r&&(r=u);var e=t.getItemVisual(r,"style"),s=e&&e.fill,c=e&&e.opacity,f=g(r,cc).getItemStyle();null!=s&&(f.fill=s);null!=c&&(f.opacity=c);var l={inheritColor:o(s)?s:"#000"},h=nt(r,cc),a=gt(h,null,l,!1,!0);return a.text=h.getShallow("show")?d(n.getFormattedLabel(r,cc),iw(t,r)):null,v=hut(h,l,!1),it(i,f),f=fwr(f,a,v),i&&tt(f,i),f.legacy=!0,f},ordinalRawValue:function(n,i){var r,f,e,o;return(null==i&&(i=u),n=n||0,r=t.getDimensionInfo(n),!r)?(f=t.getDimensionIndex(n),f>=0?t.getStore().get(f,i):void 0):(e=t.get(r.name,i),o=r&&r.ordinalMeta,o?o.categories[e]:e)},styleEmphasis:function(i,r){var s;null==r&&(r=u);var f=g(r,bs).getItemStyle(),e=nt(r,bs),o=gt(e,null,null,!0,!0);return o.text=e.getShallow("show")?gf(n.getFormattedLabel(r,bs),n.getFormattedLabel(r,cc),iw(t,r)):null,s=hut(e,null,!0),it(i,f),f=fwr(f,o,s),i&&tt(f,i),f.legacy=!0,f},visual:function(n,i){if(null==i&&(i=u),h(twr,n)){var r=t.getItemVisual(i,"style");return r?r[twr[n]]:null}if(h(dgu,n))return t.getItemVisual(i,n)},barLayout:function(n){if("cartesian2d"===f.type)return function(n){var u=[],f=n.axis,e="axis0",o,t,s,r,i;if("category"===f.type){for(o=f.getBandWidth(),t=0;t<n.count;t++)u.push(a({bandWidth:o,axisKey:e,stackId:wet+t},n));for(s=rir(u),r=[],t=0;t<n.count;t++)i=s[e][wet+t],i.offsetCenter=i.offset+i.width/2,r.push(i);return r}}(a({axis:f.getBaseAxis()},n))},currentSeriesIndices:function(){return i.getCurrentSeriesIndices()},font:function(n){return ypi(n,i)}},c.api||{}),ut={context:{},seriesId:n.id,seriesName:n.name,seriesIndex:n.seriesIndex,coordSys:c.coordSys,dataInsideLength:t.count(),encode:hnu(n.getData())},v={},y={},b={},k={},p=0;p<lc.length;p++)e=lc[p],b[e]=n.getModel(fui[e]),k[e]=n.getModel(eui[e]);return function(n,i){return u=n,l=null,v={},y={},w&&w(a({dataIndexInside:n,dataIndex:t.getRawIndex(n),actionType:i?i.type:null},ut),rt)}}function hnu(n){var i={};return t(n.dimensions,function(t){var r=n.getDimensionInfo(t),u;r.isExtraCoord||(u=r.coordDim,(i[u]=i[u]||[])[r.coordDimIndex]=n.getDimensionIndex(t))}),i}function lui(n,t,i,r,u,f,e){if(r){var o=aui(n,t,i,r,u,f);return o&&e.setItemGraphicEl(i,o),o&&ui(o,r.focus,r.blurScope,r.emphasisDisabled),o}f.remove(t)}function aui(n,t,i,r,u,f){var v=-1,y=t,o,s,l,e,a,c,p;for(t&&kwr(t,r,u)&&(v=tt(f.childrenRef(),t),t=null),l=!t,e=t,e?e.clearStates():(e=hui(r),y&&(o=y,(s=e).copyTransform(o),sui(s)&&sui(o)&&(s.setStyle(o.style),s.z=o.z,s.z2=o.z2,s.zlevel=o.zlevel,s.invisible=o.invisible,s.ignore=o.ignore,oui(s)&&oui(o)&&s.setShape(o.shape)))),!1===r.morph?e.disableMorphing=!0:e.disableMorphing&&(e.disableMorphing=!1),bf.normal.cfg=bf.normal.conOpt=bf.emphasis.cfg=bf.emphasis.conOpt=bf.blur.cfg=bf.blur.conOpt=bf.select.cfg=bf.select.conOpt=null,bf.isLegacy=!1,function(n,t,i,r,u,f){var e,c,h,s,l;if(!n.isGroup){dwr(i,null,f);dwr(i,bs,f);var o=f.normal.conOpt,a=f.emphasis.conOpt,v=f.blur.conOpt,y=f.select.conOpt;if(null!=o||null!=a||null!=y||null!=v)if(e=n.getTextContent(),!1===o)e&&n.removeTextContent();else{for(o=f.normal.conOpt=o||{type:"text"},e?e.clearStates():(e=hui(o),n.setTextContent(e)),cui(null,e,t,o,null,r,u),c=o&&o.style,h=0;h<lc.length;h++)s=lc[h],s!==cc&&(l=f[s].conOpt,wwr(s,e,0,vui(o,l,s),null));c?e.dirty():e.markRedraw()}}}(e,i,r,u,l,bf),function(n,t,i,r,u){var e=i.clipPath,f;!1===e?n&&n.getClipPath()&&n.removeClipPath():e&&(f=n.getClipPath(),f&&kwr(f,e,r)&&(f=null),f||(f=hui(e),n.setClipPath(f)),cui(null,f,t,e,null,r,u))}(e,i,r,u,l),cui(n,e,i,r,bf,u,l),h(r,"info")&&(ws(e).info=r.info),a=0;a<lc.length;a++)c=lc[a],c!==cc&&(p=rht(r,c),wwr(c,e,0,vui(r,p,c),bf));return function(n,t,i){var f,u;if(!n.isGroup){var r=n,e=i.currentZ,o=i.currentZLevel;for(r.z=e,r.zlevel=o,f=t.z2,null!=f&&(r.z2=f||0),u=0;u<lc.length;u++)snu(r,t,lc[u])}}(e,r,u),"group"===r.type&&function(n,t,i,r,u){var o=r.children,l=o?o.length:0,a=r.$mergeChildren,v="byName"===a||r.diffChildrenByName,y=!1===a,s,f,e,c,h,p;if(l||v||y){if(v)return s={api:n,oldChildren:t.children()||[],newChildren:o||[],dataIndex:i,seriesModel:u,group:t},void new co(s.oldChildren,s.newChildren,gwr,gwr,s).add(nbr).update(nbr).remove(lnu).execute();for(y&&t.removeAll(),f=0;f<l;f++)e=o[f],c=t.childAt(f),e?(null==e.ignore&&(e.ignore=!1),aui(n,c,i,e,u,t)):c.ignore=!0;for(h=t.childCount()-1;h>=f;h--)p=t.childAt(h),cnu(t,p,u)}}(n,e,i,r,u),v>=0?f.replaceAt(e,v):f.add(e),e}function kwr(n,t,i){var u,f=ws(n),r=t.type,e=t.shape,o=t.style;return i.isUniversalTransitionEnabled()||null!=r&&r!==f.customGraphicType||"path"===r&&(u=e)&&(h(u,"pathData")||h(u,"d"))&&tbr(e)!==f.customPathData||"image"===r&&h(o,"image")&&o.image!==f.customImagePath}function dwr(n,t,i){var e=t?rht(n,t):n,o=t?vui(n,e,bs):n.style,l=n.type,f=e?e.textConfig:null,s=n.textContent,r=s?t?rht(s,t):s:null,u,h,c;o&&(i.isLegacy||iwr(o,l,!!f,!!r))&&(i.isLegacy=!0,u=rwr(o,l,!t),!f&&u.textConfig&&(f=u.textConfig),!r&&u.textContent&&(r=u.textContent));!t&&r&&(h=r,h.type||(h.type="text"));c=t?i[t]:i.normal;c.cfg=f;c.conOpt=r}function rht(n,t){return t?n?n[t]:null:n}function vui(n,t,i){var r=t&&t.style;return null==r&&i===bs&&n&&(r=n.styleEmphasis),r}function cnu(n,t,i){t&&tht(t,ws(n).option,i)}function gwr(n,t){var i=n&&n.name;return null!=i?i:"e\0\0"+t}function nbr(n,t){var i=this.context,r=null!=n?i.newChildren[n]:null,u=null!=t?i.oldChildren[t]:null;aui(i.api,u,i.dataIndex,r,i.seriesModel,i.group)}function lnu(n){var i=this.context,t=i.oldChildren[n];t&&tht(t,ws(t).option,i.seriesModel)}function tbr(n){return n&&(n.pathData||n.d)}function rbr(n,t,i,r){ubr(hv(i).lastProp,r)||(hv(i).lastProp=r,t?lt(i,r,n):(i.stopAnimation(),i.attr(r)))}function ubr(n,i){if(v(n)&&v(i)){var r=!0;return t(i,function(t,i){r=r&&ubr(n[i],t)}),!!r}return n===i}function fbr(n,t){n[t.get(["label","show"])?"show":"hide"]()}function wui(n){return{x:n.x||0,y:n.y||0,rotation:n.rotation||0}}function ebr(n,t,i){var r=t.get("z"),u=t.get("zlevel");n&&n.traverse(function(n){"group"!==n.type&&(null!=r&&(n.z=r),null!=u&&(n.zlevel=u),n.silent=i)})}function bui(n){var t,i=n.get("type"),r=n.getModel(i+"Style");return"line"===i?(t=r.getLineStyle()).fill=null:"shadow"===i&&((t=r.getAreaStyle()).stroke=null),t}function obr(n,t,i,r,u){var a=sbr(i.get("value"),t.axis,t.ecModel,i.get("seriesDataIndices"),{precision:i.get(["label","precision"]),formatter:i.get(["label","formatter"])}),e=i.getModel("label"),o=bh(e.get("padding")||0),v=e.getFont(),y=sk(a,v),f=u.position,h=y.width+o[1]+o[3],c=y.height+o[0]+o[2],p=u.align,l,s;"right"===p&&(f[0]-=h);"center"===p&&(f[0]-=h/2);l=u.verticalAlign;"bottom"===l&&(f[1]-=c);"middle"===l&&(f[1]-=c/2),function(n,t,i,r){var u=r.getWidth(),f=r.getHeight();n[0]=Math.min(n[0]+t,u)-t;n[1]=Math.min(n[1]+i,f)-i;n[0]=Math.max(n[0],0);n[1]=Math.max(n[1],0)}(f,h,c,r);s=e.get("backgroundColor");s&&"auto"!==s||(s=t.get(["axisLine","lineStyle","color"]));n.label={x:f[0],y:f[1],style:gt(e,{text:a,font:v,fill:e.getTextColor(),padding:o,backgroundColor:s}),z2:10}}function sbr(n,i,r,u,f){var s,e,h;return n=i.scale.parse(n),s=i.scale.getLabel({value:n},{precision:f.precision}),e=f.formatter,e&&(h={value:ydt(i,{value:n}),axisDimension:i.dim,axisIndex:i.index,seriesData:[]},t(u,function(n){var t=r.getSeriesByIndex(n.seriesIndex),u=n.dataIndexInside,i=t&&t.getDataParams(u);i&&h.seriesData.push(i)}),o(e)?s=e.replace("{value}",s):l(e)&&(s=e(h))),s}function kui(n,t,i){var r=[1,0,0,1,0,0];return th(r,r,i.rotation),ne(r,r,i.position),he([n.dataToCoord(t),(i.labelOffset||0)+(i.labelDirection||1)*(i.labelMargin||0)],r)}function hbr(n,t,i,r,u,f){var e=ru.innerTextLayout(i.rotation,0,i.labelDirection);i.labelMargin=u.get(["label","margin"]);obr(t,r,u,f,{position:kui(r.axis,n,i),align:e.textAlign,verticalAlign:e.textVerticalAlign})}function dui(n,t,i){return{x1:n[i=i||0],y1:n[1-i],x2:t[i],y2:t[1-i]}}function cbr(n,t,i){return{x:n[i=i||0],y:n[1-i],width:t[i],height:t[1-i]}}function lbr(n,t,i,r,u,f){return{cx:n,cy:t,r0:i,r:r,startAngle:u,endAngle:f,clockwise:!0}}function vbr(n,t){var i={};return i[t.dim+"AxisIndex"]=t.index,n.getCartesian(i)}function pbr(n){return"x"===n.dim?0:1}function wbr(n,t,i){if(!ft.node){var r=t.getZr();ks(r).records||(ks(r).records={}),function(n,t){function i(i,r){n.on(i,function(i){var u=function(n){var t={showTip:[],hideTip:[]},i=function(r){var u=t[r.type];u?u.push(r):(r.dispatchAction=i,n.dispatchAction(r))};return{dispatchAction:i,pendings:t}}(t);vnu(ks(n).records,function(n){n&&r(n,i,u.dispatchAction)}),function(n,t){var i,r=n.showTip.length,u=n.hideTip.length;r?i=n.showTip[r-1]:u&&(i=n.hideTip[u-1]);i&&(i.dispatchAction=null,t.dispatchAction(i))}(u.pendings,t)})}ks(n).initialized||(ks(n).initialized=!0,i("click",w(bbr,"click")),i("mousemove",w(bbr,"mousemove")),i("globalout",ynu))}(r,t);(ks(r).records[n]||(ks(r).records[n]={})).handler=i}}function ynu(n,t,i){n.handler("leave",null,i)}function bbr(n,t,i,r){t.handler(n,i,r)}function gui(n,t){if(!ft.node){var i=t.getZr();(ks(i).records||{})[n]&&(ks(i).records[n]=null)}}function dbr(n,t){var s,h=[],a=n.seriesIndex,i,r,c,e,o;if(null==a||!(s=t.getSeriesByIndex(a)))return{point:[]};if(i=s.getData(),r=fl(i,n),null==r||r<0||u(r))return{point:[]};if(c=i.getItemGraphicEl(r),e=s.coordinateSystem,s.getTooltipPosition)h=s.getTooltipPosition(r)||[];else if(e&&e.dataToPoint)if(n.isStacked){var v=e.getBaseAxis(),y=e.getOtherAxis(v).dim,w=v.dim,p="x"===y||"radius"===y?1:0,b=i.mapDimension(w),l=[];l[p]=i.get(b,r);l[1-p]=i.get(i.getCalculationInfo("stackResultDimension"),r);h=e.dataToPoint(l)||[]}else h=e.dataToPoint(i.getValues(f(e.dimensions,function(n){return i.mapDimension(n)}),r))||[];else c&&(o=c.getBoundingRect().clone(),o.applyTransform(c.transform),h=[o.x+o.width/2,o.y+o.height/2]);return{point:h,el:c}}function pnu(n,i,r){var b=n.currTrigger,u=[n.x,n.y],c=n,k=n.dispatchAction||s(r.dispatchAction,r),f=i.getComponent("axisPointer").coordSysAxesInfo,l;if(f){uht(u)&&(u=dbr({seriesIndex:c.seriesIndex,dataIndex:c.dataIndex},i).point);var a=uht(u),v=c.axesInfo,e=f.axesInfo,d="leave"===b||uht(u),o={},h={},y={list:[],map:{}},p={showPointer:w(wnu,h),showTooltip:w(bnu,y)};return t(f.coordSysMap,function(n,i){var r=a||n.containPoint(u);t(f.coordSysAxesInfo[i],function(n){var f=n.axis,i=function(n,t){for(var r,i=0;i<(n||[]).length;i++)if(r=n[i],t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}(v,n),t;!d&&r&&(!v||i)&&(t=i&&i.value,null!=t||a||(t=f.pointToData(u)),null!=t&&gbr(n,t,p,!1,o))})}),l={},t(e,function(n,i){var r=n.linkGroup;r&&!h[i]&&t(r.axesInfo,function(t,i){var f=h[i],u;t!==n&&f&&(u=f.value,r.mapper&&(u=n.axis.scale.parse(r.mapper(u,nkr(t),nkr(n)))),l[n.key]=u)})}),t(l,function(n,t){gbr(e[t],n,p,!0,o)}),function(n,i,r){var u=r.axesInfo=[];t(i,function(t,i){var r=t.axisPointerModel.option,f=n[i];f?(!t.useHandle&&(r.status="show"),r.value=f.value,r.seriesDataIndices=(f.payloadBatch||[]).slice()):!t.useHandle&&(r.status="hide");"show"===r.status&&u.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:r.value})})}(h,e,o),function(n,t,i,r){if(uht(t)||!n.list.length)return void r({type:"hideTip"});var u=((n.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:i.tooltipOption,position:i.position,dataIndexInside:u.dataIndexInside,dataIndex:u.dataIndex,seriesIndex:u.seriesIndex,dataByCoordSys:n.list})}(y,u,n,k),function(n,i,r){var o=r.getZr(),s="axisPointerLastHighlights",h=nfi(o)[s]||{},e=nfi(o)[s]={},u,f;t(n,function(n){var i=n.axisPointerModel.option;"show"===i.status&&n.triggerEmphasis&&t(i.seriesDataIndices,function(n){var t=n.seriesIndex+" | "+n.dataIndex;e[t]=n})});u=[];f=[];t(h,function(n,t){e[t]||f.push(n)});t(e,function(n,t){h[t]||u.push(n)});f.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:f});u.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:u})}(e,0,r),o}}function gbr(n,i,u,f,e){var s=n.axis;if(!s.scale.isBlank()&&s.containData(i))if(n.involveSeries){var h=function(n,i){var r=i.axis,s=r.dim,e=n,u=[],f=Number.MAX_VALUE,o=-1;return t(i.seriesModels,function(i){var h,c,v=i.getData().mapDimensionsAll(s),y,l,a;if(i.getAxisTooltipData)y=i.getAxisTooltipData(v,n,r),c=y.dataIndices,h=y.nestestValue;else{if(!(c=i.getData().indicesOfNearest(v[0],n,"category"===r.type?.5:null)).length)return;h=i.getData().get(v[0],c[0])}null!=h&&isFinite(h)&&(l=n-h,a=Math.abs(l),a<=f&&((a<f||l>=0&&o<0)&&(f=a,o=l,e=h,u.length=0),t(c,function(n){u.push({seriesIndex:i.seriesIndex,dataIndexInside:n,dataIndex:i.getData().getRawIndex(n)})})))}),{payloadBatch:u,snapToValue:e}}(i,n),c=h.payloadBatch,o=h.snapToValue;c[0]&&null==e.seriesIndex&&r(e,c[0]);!f&&n.snap&&s.containData(o)&&null!=o&&(i=o);u.showPointer(n,i,c);u.showTooltip(n,h,o)}else u.showPointer(n,i)}function wnu(n,t,i,r){n[t.key]={value:i,payloadBatch:r}}function bnu(n,t,i,r){var o=i.payloadBatch,s=t.axis,e=s.model,h=t.axisPointerModel;if(t.triggerTooltip&&o.length){var u=t.coordSys.model,c=on(u),f=n.map[c];f||(f=n.map[c]={coordSysId:u.id,coordSysIndex:u.componentIndex,coordSysType:u.type,coordSysMainType:u.mainType,dataByAxis:[]},n.list.push(f));f.dataByAxis.push({axisDim:s.dim,axisIndex:e.componentIndex,axisType:e.type,axisId:e.id,value:r,valueLabelOpt:{precision:h.get(["label","precision"]),formatter:h.get(["label","formatter"])},seriesDataIndices:o.slice()})}}function nkr(n){var i=n.axis.model,t={},r=t.axisDim=n.axis.dim;return t.axisIndex=t[r+"AxisIndex"]=i.componentIndex,t.axisName=t[r+"AxisName"]=i.name,t.axisId=t[r+"AxisId"]=i.id,t}function uht(n){return!n||null==n[0]||isNaN(n[0])||null==n[1]||isNaN(n[1])}function ttt(n){ka.registerAxisPointerClass("CartesianAxisPointer",abr);n.registerComponentModel(anu);n.registerComponentView(kbr);n.registerPreprocessor(function(n){if(n){n.axisPointer&&0!==n.axisPointer.length||(n.axisPointer={});var t=n.axisPointer.link;t&&!u(t)&&(n.axisPointer.link=[t])}});n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,function(n,t){n.getComponent("axisPointer").coordSysAxesInfo=kvu(n,t)});n.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},pnu)}function rkr(n){var t=n.seriesModel,i=n.polarModel;return i&&i.coordinateSystem||t&&t.coordinateSystem}function itf(n){var f=this,i=f.getAngleAxis(),u=f.getRadiusAxis(),r,e;(i.scale.setExtent(1/0,-1/0),u.scale.setExtent(1/0,-1/0),n.eachSeries(function(n){if(n.coordinateSystem===f){var r=n.getData();t(not(r,"radius"),function(n){u.scale.unionExtentFromData(r,n)});t(not(r,"angle"),function(n){i.scale.unionExtentFromData(r,n)})}}),la(i.scale,i.model),la(u.scale,u.model),"category"!==i.type||i.onBand)||(r=i.getExtent(),e=360/i.scale.count(),i.inverse?r[1]+=e:r[1]-=e,i.setExtent(r[0],r[1]))}function ukr(n,t){if(n.type=t.get("type"),n.scale=pg(t),n.onBand=t.get("boundaryGap")&&"category"===n.type,n.inverse=t.get("inverse"),function(n){return"angleAxis"===n.mainType}(t)){n.inverse=n.inverse!==t.get("clockwise");var i=t.get("startAngle");n.setExtent(i,i+(n.inverse?-360:360))}t.axis=n;n.model=t}function eht(n,t,i){t[1]>t[0]&&(t=t.slice().reverse());var r=n.coordToPoint([t[0],i]),u=n.coordToPoint([t[1],i]);return{x1:r[0],y1:r[1],x2:u[0],y2:u[1]}}function oht(n){return n.getRadiusAxis().inverse?0:1}function okr(n){var t=n[0],i=n[n.length-1];t&&i&&Math.abs(Math.abs(t.coord-i.coord)-360)<.0001&&n.pop()}function skr(n){return n.get("stack")||"__ec_stack_"+n.seriesIndex}function hkr(n,t){return t.dim+n.model.componentIndex}function htf(n,i){var r={},u=function(n){var r={},i;return t(n,function(n){var p=n.getData(),h=n.coordinateSystem,o=h.getBaseAxis(),c=hkr(h,o),l=o.getExtent(),s="category"===o.type?o.getBandWidth():Math.abs(l[1]-l[0])/p.count(),t=r[c]||{bandWidth:s,remainedWidth:s,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},u=t.stacks,i;r[c]=t;i=skr(n);u[i]||t.autoWidthCount++;u[i]=u[i]||{width:0,maxWidth:0};var f=e(n.get("barWidth"),s),a=e(n.get("barMaxWidth"),s),v=n.get("barGap"),y=n.get("barCategoryGap");f&&!u[i].width&&(f=Math.min(t.remainedWidth,f),u[i].width=f,t.remainedWidth-=f);a&&(u[i].maxWidth=a);null!=v&&(t.gap=v);null!=y&&(t.categoryGap=y)}),i={},t(r,function(n,r){var l,h,a;i[r]={};var c=n.stacks,y=n.bandWidth,v=e(n.categoryGap,y),f=e(n.gap,1),s=n.remainedWidth,o=n.autoWidthCount,u=(s-v)/(o+(o-1)*f);u=Math.max(u,0);t(c,function(n){var t=n.maxWidth;t&&t<u&&(t=Math.min(t,s),n.width&&(t=Math.min(t,n.width)),s-=t,n.width=t,o--)});u=(s-v)/(o+(o-1)*f);u=Math.max(u,0);h=0;t(c,function(n){n.width||(n.width=u);l=n;h+=n.width*(1+f)});l&&(h-=l.width*f);a=-h/2;t(c,function(n,t){i[r][t]=i[r][t]||{offset:a,width:n.width};a+=n.width*(1+f)})}),i}(yt(i.getSeriesByType(n),function(n){return!i.isSeriesFiltered(n)&&n.coordinateSystem&&"polar"===n.coordinateSystem.type}));i.eachSeriesByType(n,function(n){var a,et,v,ot;if("polar"===n.coordinateSystem.type){var i=n.getData(),w=n.coordinateSystem,e=w.getBaseAxis(),st=hkr(w,e),t=skr(n),nt=u[st][t],tt=nt.offset,it=nt.width,o=w.getOtherAxis(e),ht=n.coordinateSystem.cx,ct=n.coordinateSystem.cy,rt=n.get("barMinHeight")||0,ut=n.get("barMinAngle")||0;r[t]=r[t]||[];for(var ft=i.mapDimension(o.dim),lt=i.mapDimension(e.dim),b=as(i,ft),at="radius"!==e.dim||!n.get("roundCap",!0),s=o.dataToCoord(0),h=0,vt=i.count();h<vt;h++){var k=i.get(ft,h),f=i.get(lt,h),d=k>=0?"p":"n",c=s;b&&(r[t][f]||(r[t][f]={p:s,n:s}),c=r[t][f][d]);var g=void 0,y=void 0,p=void 0,l=void 0;"radius"===o.dim?(a=o.dataToCoord(k)-s,et=e.dataToCoord(f),Math.abs(a)<rt&&(a=(a<0?-1:1)*rt),g=c,y=c+a,l=(p=et-tt)-it,b&&(r[t][f][d]=y)):(v=o.dataToCoord(k,at)-s,ot=e.dataToCoord(f),Math.abs(v)<ut&&(v=(v<0?-1:1)*ut),y=(g=ot+tt)+it,p=c,l=c+v,b&&(r[t][f][d]=l));i.setItemLayout(h,{cx:ht,cy:ct,r0:g,r:y,startAngle:-p*Math.PI/180,endAngle:-l*Math.PI/180,clockwise:p>=l})}}})}function ufi(n,t){var f;t=t||{};var c=n.coordinateSystem,s=n.axis,i={},e=s.position,o=s.orient,r=c.getRect(),u=[r.x,r.x+r.width,r.y,r.y+r.height],h={horizontal:{top:u[2],bottom:u[3]},vertical:{left:u[0],right:u[1]}};return i.position=["vertical"===o?h.vertical[e]:u[0],"horizontal"===o?h.horizontal[e]:u[3]],i.rotation=Math.PI/2*{horizontal:0,vertical:1}[o],i.labelDirection=i.tickDirection=i.nameDirection={top:-1,bottom:1,right:1,left:-1}[e],n.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),yi(t.labelInside,n.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection),f=t.rotate,null==f&&(f=n.get(["axisLabel","rotate"])),i.labelRotation="top"===e?-f:f,i.z2=1,i}function lkr(n){var t=n.seriesModel,i=n.singleAxisModel;return i&&i.coordinateSystem||t&&t.coordinateSystem}function hht(n){return n.isHorizontal()?0:1}function ffi(n,t){var i=n.getRect();return[i[akr[t]],i[akr[t]]+i[gtf[t]]]}function pkr(n,t){var i,r=n.cellSize,e;1===(i=u(r)?r:n.cellSize=[r,r]).length&&(i[1]=i[0]);e=f([0,1],function(n){return function(n,t){return null!=n[fa[t][0]]||null!=n[fa[t][1]]&&null!=n[fa[t][2]]}(t,n)&&(i[n]="auto"),null!=i[n]&&"auto"!==i[n]});dh(n,t,{type:"box",ignoreSize:e})}function wkr(n){var t=n.calendarModel,i=n.seriesModel;return t?t.coordinateSystem:i?i.coordinateSystem:null}function bkr(n,i){var r;return t(i,function(t){null!=n[t]&&"auto"!==n[t]&&(r=!0)}),r}function cht(n,t,i){var f,u,r;if(i&&(!n[i]&&t[i]&&(n[i]={}),n=n[i],t=t[i]),n&&t)for(f=i?ofi:kkr,u=0;u<f.length;u++)r=f[u],null==n[r]&&null!=t[r]&&(n[r]=t[r])}function sfi(n){var i=h(dkr,n)?dkr[n]:out(n),t=new i({});return kf(t).type=n,t}function gkr(n,t,i,r){var u=sfi(i);return t.add(u),r.set(n,u),kf(u).id=n,kf(u).isNew=!0,u}function lht(n,t,i,r){n&&n.parent&&("group"===n.type&&n.traverse(function(n){lht(n,t,i,r)}),tht(n,t,r),i.removeKey(kf(n).id))}function ndr(n,i,r,u){n.isGroup||t([["cursor",ef.prototype.cursor],["zlevel",u||0],["z",r||0],["z2",0]],function(t){var r=t[0];h(i,r)?n[r]=d(i[r],t[1]):null==n[r]&&(n[r]=t[1])});t(et(i),function(t){if(0===t.indexOf("on")){var r=i[t];n[t]=l(r)?r:null}});h(i,"draggable")&&(n.draggable=i.draggable);null!=i.name&&(n.name=i.name);null!=i.id&&(n.id=i.id)}function ac(n){return n+"Axis"}function eif(n,t){function o(n){!u.get(n.uid)&&function(n){var t=!1;return n.eachTargetAxis(function(n,i){var u=r.get(n);u&&u[i]&&(t=!0)}),t}(n)&&(e(n),i=!0)}function e(n){u.set(n.uid,!0);f.push(n);n.eachTargetAxis(function(n,t){(r.get(n)||r.set(n,[]))[t]=!0})}var i,r=c(),f=[],u=c();n.eachComponent({mainType:"dataZoom",query:t},function(n){u.get(n.uid)||e(n)});do i=!1,n.eachComponent("dataZoom",o);while(i);return f}function idr(n){var i=n.ecModel,t={infoList:[],infoMap:c()};return n.eachTargetAxis(function(n,r){var e=i.getComponent(ac(n),r),f,o,u;e&&(f=e.getCoordSysModel(),f&&(o=f.uid,u=t.infoMap.get(o),u||(u={model:f,axisModels:[]},t.infoList.push(u),t.infoMap.set(o,u)),u.axisModels.push(e)))}),t}function rdr(n){var i={};return t(["start","end","startValue","endValue","throttle"],function(t){n.hasOwnProperty(t)&&(i[t]=n[t])}),i}function lfi(n){fdr||(fdr=!0,n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,cif),function(n){n.registerAction("dataZoom",function(n,i){t(eif(i,n),function(t){t.setRawRange({start:n.start,end:n.end,startValue:n.startValue,endValue:n.endValue})})})}(n),n.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function lif(n){n.registerComponentModel(oif);n.registerComponentView(sif);lfi(n)}function dw(n,t){afi[n]=t}function edr(n){return afi[n]}function sdr(n,t){var i=bh(t.get("padding")),r=t.getItemStyle(["color","opacity"]);return r.fill=t.get("backgroundColor"),n=new ot({shape:{x:n.x-i[3],y:n.y-i[0],width:n.width+i[1]+i[3],height:n.height+i[0]+i[2],r:t.get("borderRadius")},style:r,silent:!0,z2:-1})}function vht(n){return n.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function wif(n,i){var u=n.split(new RegExp("\n*"+itt+"\n*","g")),r={series:[]};return t(u,function(n,t){if(function(n){if(n.slice(0,n.indexOf("\n")).indexOf(gw)>=0)return!0}(n)){var u=function(n){for(var r,t,u=n.split(/\n+/g),o=[],e=f(vht(u.shift()).split(yht),function(n){return{name:n,data:[]}}),i=0;i<u.length;i++)for(r=vht(u[i]).split(yht),o.push(r.shift()),t=0;t<r.length;t++)e[t]&&(e[t].data[i]=r[t]);return{series:e,categories:o}}(n),e=i[t],o=e.axisDim+"Axis";e&&(r[o]=r[o]||[],r[o][e.axisIndex]={data:u.categories},r.series=r.series.concat(u.series))}else u=function(n){for(var o,f,e=n.split(/\n+/g),c=vht(e.shift()),i=[],t=0;t<e.length;t++)if(o=vht(e[t]),o){var r=o.split(yht),s="",u=void 0,h=!1;for(isNaN(r[0])?(h=!0,s=r[0],r=r.slice(1),i[t]={name:s,value:[]},u=i[t].value):u=i[t]=[],f=0;f<r.length;f++)u.push(+r[f]);1===u.length&&(h?i[t].value=u[0]:i[t]=u[0])}return{name:c,data:i}}(n),r.series.push(u)}),r}function bif(n,t){return f(n,function(n,i){var r=t&&t[i],f;return v(r)&&!u(r)?(v(n)&&!u(n)||(n={value:n}),f=null!=r.name&&null==n.name,n=a(n,r),f&&delete n.name,n):n})}function pfi(n){var t=yfi(n);return t.snapshots||(t.snapshots=[{}]),t.snapshots}function wfi(n){return n[0]>n[1]&&n.reverse(),n}function ydr(n,t){return vk(n,t,{includeMainTypes:vdr})}function bdr(n,t,i,r){var u=i.getAxis(["x","y"][n]),o=wfi(f([0,1],function(n){return t?u.coordToData(u.toLocalCoord(r[n]),!0):u.toGlobalCoord(u.dataToCoord(r[n]))})),e=[];return e[n]=o,e[1-n]=[NaN,NaN],{values:o,xyMinMax:e}}function kdr(n,t,i,r){return[t[0]-r[n]*i[0],t[1]-r[n]*i[1]]}function ddr(n){return n?[n[0][1]-n[0][0],n[1][1]-n[1][0]]:[NaN,NaN]}function tei(n){var t={xAxisIndex:n.get("xAxisIndex",!0),yAxisIndex:n.get("yAxisIndex",!0),xAxisId:n.get("xAxisId",!0),yAxisId:n.get("yAxisId",!0)};return null==t.xAxisIndex&&null==t.xAxisId&&(t.xAxisIndex="all"),null==t.yAxisIndex&&null==t.yAxisId&&(t.yAxisIndex="all"),t}function ngr(n){var t=n.get("confine");return null!=t?!!t:"richText"===n.get("renderMode")}function tgr(n){if(ft.domSupported)for(var i=document.documentElement.style,t=0,r=n.length;t<r;t++)if(n[t]in i)return n[t]}function igr(n,t){if(!n)return t;t=uwt(t,!0);var i=n.indexOf(t);return(n=-1===i?t:"-"+n.slice(0,i)+"-"+t).toLowerCase()}function rgr(n,t,i){var r=n.toFixed(0)+"px",u=t.toFixed(0)+"px",f,e;return ft.transformSupported?(f=ft.transform3dSupported,e="translate"+(f?"3d":"")+"("+r+","+u+(f?",0":"")+")",i?"top:0;left:0;"+rei+":"+e+";":[["top",0],["left",0],[iei,e]]):i?"top:"+u+";left:"+r+";":[["top",u],["left",r]]}function rrf(n,i,r){var u=[],f=n.get("transitionDuration"),e=n.get("backgroundColor"),s=n.get("shadowBlur"),h=n.get("shadowColor"),c=n.get("shadowOffsetX"),l=n.get("shadowOffsetY"),a=n.getModel("textStyle"),o=ldi(n,"html"),v=c+"px "+l+"px "+s+"px "+h;return u.push("box-shadow:"+v),i&&f&&u.push(function(n,t){var r="cubic-bezier(0.23,1,0.32,1)",i=" "+n/2+"s "+r,u="opacity"+i+",visibility"+i;return t||(i=" "+n+"s "+r,u+=ft.transformSupported?","+rei+i:",left"+i+",top"+i),trf+":"+u}(f,r)),e&&u.push("background-color:"+e),t(["width","color","radius"],function(t){var i="border-"+t,f=uwt(i),r=n.get(f);null!=r&&u.push(i+":"+r+("color"===t?"":"px"))}),u.push(function(n){var i=[],r=n.get("fontSize"),u=n.getTextColor();u&&i.push("color:"+u);i.push("font:"+n.getFont());r&&i.push("line-height:"+Math.round(3*r/2)+"px");var f=n.get("textShadowColor"),e=n.get("textShadowBlur")||0,o=n.get("textShadowOffsetX")||0,s=n.get("textShadowOffsetY")||0;return f&&e&&i.push("text-shadow:"+o+"px "+s+"px "+e+"px "+f),t(["decoration","align"],function(t){var r=n.get(t);r&&i.push("text-"+t+":"+r)}),i.join(";")}(a)),null!=o&&u.push("padding:"+bh(o).join("px ")+"px"),u.join(";")+";"}function ugr(n,t,i,r,u){var f=t&&t.painter,o,e;i?(o=f&&f.getViewportRoot(),o&&function(n,t,i,r,u){flt(nit,t,r,u,!0)&&flt(n,i,nit[0],nit[1])}(n,o,document.body,r,u)):(n[0]=r,n[1]=u,e=f&&f.getViewportRootOffset(),e&&(n[0]+=e.offsetLeft,n[1]+=e.offsetTop));n[2]=n[0]/t.getWidth();n[3]=n[1]/t.getHeight()}function vc(n){return Math.max(0,n)}function ogr(n){var t=vc(n.shadowBlur||0),i=vc(n.shadowOffsetX||0),r=vc(n.shadowOffsetY||0);return{left:vc(t-i),right:vc(t+i),top:vc(t-r),bottom:vc(t+r)}}function sgr(n,t,i,r){n[0]=i;n[1]=r;n[2]=n[0]/t.getWidth();n[3]=n[1]/t.getHeight()}function rtt(n,t,i){var u,f=t.ecModel,e,r;for(i?(u=new at(i,f,f),u=new at(t.option,u,f)):u=t,e=n.length-1;e>=0;e--)r=n[e],r&&(r instanceof at&&(r=r.get("tooltip",!0)),o(r)&&(r={formatter:r}),r&&(u=new at(r,u,f)));return u}function lgr(n,t){return n.dispatchAction||s(t.dispatchAction,t)}function agr(n){return"center"===n||"middle"===n}function urf(n,i){var o=kt(n?n.brush:[]),e,r;if(o.length){e=[];t(o,function(n){var t=n.hasOwnProperty("toolbox")?n.toolbox:[];t instanceof Array&&(e=e.concat(t))});r=n&&n.toolbox;u(r)&&(r=r[0]);r||(r={feature:{}},n.toolbox=[r]);var s=r.feature||(r.feature={}),h=s.brush||(s.brush={}),f=h.type||(h.type=[]);f.push.apply(f,e),function(n){var i={};t(n,function(n){i[n]=1});n.length=0;t(i,function(t,i){n.push(i)})}(f);i&&!f.length&&f.push.apply(f,vgr)}}function ygr(n){if(n)for(var t in n)if(n.hasOwnProperty(t))return!0}function fei(n,t,i){var r={};return uei(t,function(t){var u,f=r[t]=((u=function(){}).prototype.__hidden=u.prototype,new u);uei(n[t],function(n,r){if(gi.isValidType(r)){var u={type:r,visual:n};i&&i(u,t);f[r]=new gi(u);"opacity"===r&&((u=y(u)).type="colorAlpha",f.__hidden.__alphaForOpacity=new gi(u))}})}),r}function pgr(n,i,r){var u;t(r,function(n){i.hasOwnProperty(n)&&ygr(i[n])&&(u=!0)});u&&t(r,function(t){i.hasOwnProperty(t)&&ygr(i[t])?n[t]=y(i[t]):delete n[t]})}function wgr(n){var t=["x","y"],i=["width","height"];return{point:function(t,i,r){if(t){var u=r.range;return utt(t[n],u)}},rect:function(r,u,f){if(r){var o=f.range,e=[r[t[n]],r[t[n]]+r[i[n]]];return e[1]<e[0]&&e.reverse(),utt(e[0],o)||utt(e[1],o)||utt(o[0],e)||utt(o[1],e)}}}}function utt(n,t){return t[0]<=n&&n<=t[1]}function kgr(n){n.eachComponent({mainType:"brush"},function(t){(t.brushTargetManager=new pht(t.option,n)).setInputRanges(t.areas,n)})}function frf(n,i,r){var e,o,s=[];n.eachComponent({mainType:"brush"},function(n){r&&"takeGlobalCursor"===r.type&&n.setBrushOption("brush"===r.key?r.brushOption:{brushType:!1})});kgr(n);n.eachComponent({mainType:"brush"},function(i,r){function c(n){return"all"===v||!!k[n]}function w(n){return!!n.length}var b={brushId:i.id,brushIndex:r,brushName:i.name,areas:y(i.areas),selected:[]},g,nt;s.push(b);var l=i.option,v=l.brushLink,k=[],p=[],d=[],h=!1;r||(e=l.throttleType,o=l.throttleDelay);g=f(i.areas,function(n){var i=ggr[n.brushType],t=a({boundingRect:i?i(n):void 0},n);return t.selectors=function(n){var i=n.brushType,t={point:function(r){return eei[i].point(r,t,n)},rect:function(r){return eei[i].rect(r,t,n)}};return t}(t),t});nt=fei(i.option,bgr,function(n){n.mappingMethod="fixed"});u(v)&&t(v,function(n){k[n]=1});n.eachSeries(function(r,f){var e=d[f]=[];"parallel"===r.subType?function(n,t){var i=n.coordinateSystem;h=h||i.hasAxisBrushed();c(t)&&i.eachActiveState(n.getData(),function(n,t){"active"===n&&(p[t]=1)})}(r,f):function(r,f,e){if(r.brushSelector&&!function(n,t){var i=n.option.seriesIndex;return null!=i&&"all"!==i&&(u(i)?tt(i,t)<0:t!==i)}(i,f)&&(t(g,function(t){i.brushTargetManager.controlSeries(t,r,n)&&e.push(t);h=h||w(e)}),c(f)&&w(e))){var o=r.getData();o.each(function(n){dgr(r,e,o,n)&&(p[n]=1)})}}(r,f,e)});n.eachSeries(function(n,i){var u={seriesId:n.id,seriesIndex:i,seriesName:n.name,dataIndex:[]};b.selected.push(u);var f=d[i],r=n.getData(),e=c(i)?function(n){return p[n]?(u.dataIndex.push(r.getRawIndex(n)),"inBrush"):"outOfBrush"}:function(t){return dgr(n,f,r,t)?(u.dataIndex.push(r.getRawIndex(t)),"inBrush"):"outOfBrush"};(c(i)?h:w(f))&&function(n,i,r,u,f,e){function c(n){return ybt(r,o,n)}function l(n,t){agi(r,o,n,t)}function h(n,t){var h,v;if(o=null==e?n:t,h=r.getRawDataItem(o),!h||!1!==h.visualMap)for(var y=u.call(f,n),p=i[y],w=s[y],a=0,b=w.length;a<b;a++)v=w[a],p[v]&&p[v].applyVisual(n,c,l)}var o,s={};t(n,function(n){var t=gi.prepareVisualTypes(i[n]);s[n]=t});null==e?r.each(h):r.each([e],h)}(bgr,nt,r,e)})}),function(n,t,i,r,u){var f,e;u&&((f=n.getZr(),f[sei])||(f[oei]||(f[oei]=erf),e=cp(f,oei,i,t),e(n,r)))}(i,e,o,s,r)}function erf(n,t){if(!n.isDisposed()){var i=n.getZr();i[sei]=!0;n.dispatchAction({type:"brushSelect",batch:t});i[sei]=!1}}function dgr(n,t,i,r){for(var f,u=0,e=t.length;u<e;u++)if(f=t[u],n.brushSelector(r,i,f.selectors,f))return!0}function nnr(n){return new nt(n[0][0],n[1][0],n[0][1]-n[0][0],n[1][1]-n[1][0])}function rnr(n,t){return k({brushType:n.brushType,brushMode:n.brushMode,transformable:n.transformable,brushStyle:new at(n.brushStyle).getItemStyle(),removeOnClick:n.removeOnClick,z:n.z},t,!0)}function onr(n,t,i,r,u,f){var s=t.get("color"),h,e,o,c;return u?(u.setColor(s),i.add(u),f&&f.onUpdate(u)):((u=si(n.get("symbol"),-1,-1,2,2,s)).setStyle("strokeNoScale",!0),i.add(u),f&&f.onCreate(u)),h=t.getItemStyle(["color"]),u.setStyle(h),r=k({rectHover:!0,z2:100},r,!0),e=vp(n.get("symbolSize")),r.scaleX=e[0]/2,r.scaleY=e[1]/2,o=oa(n.get("symbolOffset"),e),o&&(r.x=(r.x||0)+o[0],r.y=(r.y||0)+o[1]),c=n.get("symbolRotate"),r.rotation=(c||0)*Math.PI/180||0,u.attr(r),u.updateTransform(),u}function snr(n,t,i,r,u,f){var o,e,s;n.dragging||(o=u.getModel("checkpointStyle"),e=r.dataToCoord(u.getData().get("value",i)),f||!o.get("animation",!0)?(n.attr({x:e,y:0}),t&&t.attr({shape:{x2:e}})):(s={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)},n.stopAnimation(null,!0),n.animateTo({x:e,y:0},s),t&&t.animateTo({shape:{x2:e}},s)))}function yrf(n){var i=n&&n.timeline;u(i)||(i=i?[i]:[]);t(i,function(n){n&&function(n){var r=n.type,f={number:"value",time:"time"},i;f[r]&&(n.axisType=f[r],delete n.type);(hnr(n),cv(n,"controlPosition"))&&(i=n.controlStyle||(n.controlStyle={}),cv(i,"position")||(i.position=n.controlPosition),"none"!==i.position||cv(i,"show")||(i.show=!1,delete i.position),delete n.controlPosition);t(n.data||[],function(n){v(n)&&!u(n)&&(!cv(n,"value")&&cv(n,"name")&&(n.value=n.name),hnr(n))})}(n)})}function hnr(n){var u=n.itemStyle||(n.itemStyle={}),r=u.emphasis||(u.emphasis={}),i=n.label||n.label||{},f=i.normal||(i.normal={}),e={normal:1,emphasis:1};t(i,function(n,t){e[t]||cv(f,t)||(f[t]=n)});r.label&&!cv(i,"emphasis")&&(i.emphasis=r.label,delete r.label)}function cv(n,t){return n.hasOwnProperty(t)}function cei(n,t){if(!n)return!1;for(var r=u(n)?n:[n],i=0;i<r.length;i++)if(r[i]&&r[i][t])return!0;return!1}function wht(n){ul(n,"label",["show"])}function lei(n){return!(isNaN(parseFloat(n.x))&&isNaN(parseFloat(n.y)))}function bht(n,t,i,r,u,f){var e=[],h=as(t,r)?t.getCalculationInfo("stackResultDimension"):r,l=aei(t,h,n),o=t.indicesOfNearest(h,l)[0],c,s;return e[u]=t.get(i,o),e[f]=t.get(h,o),c=t.get(r,o),s=ue(t.get(r,o)),(s=Math.min(s,20))>=0&&(e[f]=+e[f].toFixed(s)),[e,c]}function ett(n,t){var i,o,r;if(t){var e=n.getData(),s=n.coordinateSystem,f=s&&s.dimensions;if(!function(n){return!isNaN(parseFloat(n.x))&&!isNaN(parseFloat(n.y))}(t)&&!u(t.coord)&&u(f))if(i=lnr(t,e,s,n),(t=y(t)).type&&kht[t.type]&&i.baseAxis&&i.valueAxis){var c=tt(f,i.baseAxis.dim),l=tt(f,i.valueAxis.dim),h=kht[t.type](e,i.baseDataDim,i.valueDataDim,c,l);t.coord=h[0];t.value=h[1]}else t.coord=[null!=t.xAxis?t.xAxis:t.radiusAxis,null!=t.yAxis?t.yAxis:t.angleAxis];if(null!=t.coord&&u(f))for(o=t.coord,r=0;r<2;r++)kht[o[r]]&&(o[r]=aei(e,e.mapDimension(f[r]),o[r]));else t.coord=[];return t}}function lnr(n,t,i,r){var u={};return null!=n.valueIndex||null!=n.valueDim?(u.valueDataDim=null!=n.valueIndex?t.getDimension(n.valueIndex):n.valueDim,u.valueAxis=i.getAxis(function(n,t){var i=n.getData().getDimensionInfo(t);return i&&i.coordDim}(r,u.valueDataDim)),u.baseAxis=i.getOtherAxis(u.valueAxis),u.baseDataDim=t.mapDimension(u.baseAxis.dim)):(u.baseAxis=r.getBaseAxis(),u.valueAxis=i.getOtherAxis(u.baseAxis),u.baseDataDim=t.mapDimension(u.baseAxis.dim),u.valueDataDim=t.mapDimension(u.valueAxis.dim)),u}function ott(n,t){return!(n&&n.containData&&t.coord&&!lei(t))||n.containData(t.coord)}function anr(n,t){return n?function(n,i,r,u){return nc(u<2?n.coord&&n.coord[u]:n.value,t[u])}:function(n,i,r,u){return nc(n.value,t[u])}}function aei(n,t,i){if("average"===i){var r=0,u=0;return n.each(t,function(n){isNaN(n)||(r+=n,u++)}),r/u}return"median"===i?n.getMedian(t):n.getDataExtent(t)["max"===i?1:0]}function vnr(n,t,i){var r=t.coordinateSystem;n.each(function(u){var f,h=n.getItemModel(u),o=e(h.get("x"),i.getWidth()),s=e(h.get("y"),i.getHeight()),c,l;isNaN(o)||isNaN(s)?t.getMarkerPosition?f=t.getMarkerPosition(n.getValues(n.dimensions,u)):r&&(c=n.get(r.dimensions[0],u),l=n.get(r.dimensions[1],u),f=r.dataToPoint([c,l])):f=[o,s];isNaN(o)||(f[0]=o);isNaN(s)||(f[1]=s);n.setItemLayout(u,f)})}function tct(n){return!isNaN(n)&&!isFinite(n)}function ynr(n,t,i,r){var u=1-n,f=r.dimensions[n];return tct(t[u])&&tct(i[u])&&t[n]===i[n]&&r.getAxis(f).containData(t[n])}function krf(n,t){if("cartesian2d"===n.type){var i=t[0].coord,r=t[1].coord;if(i&&r&&(ynr(1,i,r,n)||ynr(0,i,r,n)))return!0}return ott(n,t[0])&&ott(n,t[1])}function vei(n,t,i,r,u){var f,o=r.coordinateSystem,v=n.getItemModel(t),h=e(v.get("x"),u.getWidth()),c=e(v.get("y"),u.getHeight()),l,a;if(isNaN(h)||isNaN(c)){if(r.getMarkerPosition)f=r.getMarkerPosition(n.getValues(n.dimensions,t));else{var s=o.dimensions,y=n.get(s[0],t),p=n.get(s[1],t);f=o.dataToPoint([y,p])}wa(o,"cartesian2d")&&(l=o.getAxis("x"),a=o.getAxis("y"),s=o.dimensions,tct(n.get(s[0],t))?f[0]=l.toGlobalCoord(l.getExtent()[i?0:1]):tct(n.get(s[1],t))&&(f[1]=a.toGlobalCoord(a.getExtent()[i?0:1])));isNaN(h)||(f[0]=h);isNaN(c)||(f[1]=c)}else f=[h,c];n.setItemLayout(t,f)}function rct(n){return!isNaN(n)&&!isFinite(n)}function pnr(n,t,i){var r=1-n;return rct(t[r])&&rct(i[r])}function tuf(n,t){var i=t.coord[0],r=t.coord[1],u={coord:i,x:t.x0,y:t.y0},f={coord:r,x:t.x1,y:t.y1};return wa(n,"cartesian2d")?!(!i||!r||!pnr(1,i,r)&&!pnr(0,i,r))||function(n,t,i){return!(n&&n.containZone&&t.coord&&i.coord&&!lei(t)&&!lei(i))||n.containZone(t.coord,i.coord)}(n,u,f):ott(n,u)||ott(n,f)}function wnr(n,t,i,r,u){var f,o=r.coordinateSystem,w=n.getItemModel(t),c=e(w.get(i[0]),u.getWidth()),l=e(w.get(i[1]),u.getHeight()),y;if(isNaN(c)||isNaN(l)){if(r.getMarkerPosition){var s=n.getValues(["x0","y0"],t),h=n.getValues(["x1","y1"],t),a=o.clampData(s),v=o.clampData(h),p=[];p[0]="x0"===i[0]?a[0]>v[0]?h[0]:s[0]:a[0]>v[0]?s[0]:h[0];p[1]="y0"===i[1]?a[1]>v[1]?h[1]:s[1]:a[1]>v[1]?s[1]:h[1];f=r.getMarkerPosition(p,i,!0)}else y=[d=n.get(i[0],t),g=n.get(i[1],t)],o.clampData&&o.clampData(y,y),f=o.dataToPoint(y,!0);if(wa(o,"cartesian2d")){var b=o.getAxis("x"),k=o.getAxis("y"),d=n.get(i[0],t),g=n.get(i[1],t);rct(d)?f[0]=b.toGlobalCoord(b.getExtent()["x0"===i[0]?0:1]):rct(g)&&(f[1]=k.toGlobalCoord(k.getExtent()["y0"===i[1]?0:1]))}isNaN(c)||(f[0]=c);isNaN(l)||(f[1]=l)}else f=[c,l];return f}function dnr(n,t,i,r){bei(n,t,i,r);i.dispatchAction({type:"legendToggleSelect",name:null!=n?n:t});wei(n,t,i,r)}function gnr(n){for(var t,r=n.getZr().storage.getDisplayList(),i=0,u=r.length;i<u&&!(t=r[i].states.emphasis);)i++;return t&&t.hoverLayer}function wei(n,t,i,r){gnr(i)||i.dispatchAction({type:"highlight",seriesName:n,name:t,excludeSeriesId:r})}function bei(n,t,i,r){gnr(i)||i.dispatchAction({type:"downplay",seriesName:n,name:t,excludeSeriesId:r})}function ruf(n){var t=n.findComponents({mainType:"legend"});t&&t.length&&n.filterSeries(function(n){for(var i=0;i<t.length;i++)if(!t[i].isSelected(n.name))return!1;return!0})}function stt(n,i,r){var f,u={},e="toggleSelected"===n;return r.eachComponent("legend",function(r){e&&null!=f?r[f?"select":"unSelect"](i.name):"allSelect"===n||"inverseSelect"===n?r[n]():(r[n](i.name),f=r.isSelected(i.name));t(r.getData(),function(n){var t=n.get("name"),i;"\n"!==t&&""!==t&&(i=r.isSelected(t),u[t]=u.hasOwnProperty(t)?u[t]&&i:i)})}),"allSelect"===n||"inverseSelect"===n?{selected:u}:{name:i.name,selected:u}}function ntu(n){n.registerComponentModel(yei);n.registerComponentView(knr);n.registerProcessor(n.PRIORITY.PROCESSOR.SERIES_FILTER,ruf);n.registerSubTypeDefaulter("legend",function(){return"plain"}),function(n){n.registerAction("legendToggleSelect","legendselectchanged",w(stt,"toggleSelected"));n.registerAction("legendAllSelect","legendselectall",w(stt,"allSelect"));n.registerAction("legendInverseSelect","legendinverseselect",w(stt,"inverseSelect"));n.registerAction("legendSelect","legendselected",w(stt,"select"));n.registerAction("legendUnSelect","legendunselected",w(stt,"unSelect"))}(n)}function itu(n,t,i){var r=[1,1];r[n.getOrient().index]=0;dh(t,i,{type:"box",ignoreSize:!!r})}function fuf(n){it(ntu);n.registerComponentModel(ttu);n.registerComponentView(uuf),function(n){n.registerAction("legendScroll","legendscroll",function(n,t){var i=n.scrollDataIndex;null!=i&&t.eachComponent({mainType:"legend",subType:"scroll",query:n},function(n){n.setScrollDataIndex(i)})})}(n)}function euf(n,t,i){fct(n).coordSysRecordMap.each(function(n){var r=n.dataZoomInfoMap.get(t.uid);r&&(r.getRange=i)})}function ftu(n,t){if(t){n.removeKey(t.model.uid);var i=t.controller;i&&i.dispose()}}function ouf(n,t){n.isDisposed()||n.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function suf(n,t,i,r){return n.coordinateSystem.containPoint([i,r])}function huf(n){n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,function(n,i){var u=fct(i),r=u.coordSysRecordMap||(u.coordSysRecordMap=c());r.each(function(n){n.dataZoomInfoMap=null});n.eachComponent({mainType:"dataZoom",subType:"inside"},function(n){t(idr(n).infoList,function(u){var f=u.model.uid,e=r.get(f)||r.set(f,function(n,i){var r={model:i,containsPoint:w(suf,i),dispatchAction:w(ouf,n),dataZoomInfoMap:null,controller:null},u=r.controller=new sw(n.getZr());return t(["pan","zoom","scrollMove"],function(n){u.on(n,function(t){var i=[];r.dataZoomInfoMap.each(function(u){if(t.isAvailableBehavior(u.model.option)){var e=(u.getRange||{})[n],f=e&&e(u.dzReferCoordSysInfo,r.model.mainType,r.controller,t);!u.model.get("disabled",!0)&&f&&i.push({dataZoomId:u.model.id,start:f[0],end:f[1]})}});i.length&&r.dispatchAction(i)})}),r}(i,u.model));(e.dataZoomInfoMap||(e.dataZoomInfoMap=c())).set(n.uid,{dzReferCoordSysInfo:u,model:n,getRange:null})})});r.each(function(n){var i,e=n.controller,t=n.dataZoomInfoMap,u,f;t&&(u=t.keys()[0],null!=u&&(i=t.get(u)));i?(f=function(n){var t,r="type_",u={type_true:2,type_move:1,type_false:0,type_undefined:-1},i=!0;return n.each(function(n){var f=n.model,e=!f.get("disabled",!0)&&(!f.get("zoomLock",!0)||"move");u[r+e]>u[r+t]&&(t=e);i=i&&f.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}(t),e.enable(f.controlType,f.opt),e.setPointerChecker(n.containsPoint),cp(n,"dispatchAction",i.model.get("throttle",!0),"fixRate")):ftu(r,n)})})}function otu(n){return function(t,i,r,u){var e=this.range,f=e.slice(),o=t.axisModels[0];if(o)return fv(n(f,o,t,i,r,u),f,[0,100],"all"),this.range=f,e[0]!==f[0]||e[1]!==f[1]?f:void 0}}function stu(n){lfi(n);n.registerComponentModel(utu);n.registerComponentView(etu);huf(n)}function ctu(n){return"vertical"===n?"ns-resize":"ew-resize"}function ltu(n){n.registerComponentModel(cuf);n.registerComponentView(vuf);lfi(n)}function wtu(n,t,i){if(i[0]===i[1])return i.slice();for(var e=(i[1]-i[0])/200,r=i[0],u=[],f=0;f<=200&&r<i[1];f++)u.push(r),r+=e;return u.push(i[1]),u}function btu(n,t,i){var f=n.option,o=f.align,u,e;if(null!=o&&"auto"!==o)return o;for(var l={width:t.getWidth(),height:t.getHeight()},s="horizontal"===f.orient?1:0,h=noi[s],a=[0,null,10],c={},r=0;r<3;r++)c[noi[1-s][r]]=a[r],c[h[r]]=2===r?i[0]:f[h[r]];return u=[["x","width",3],["y","height",0]][s],e=ci(c,l,f.padding),h[(e.margin[u[2]]||0)+e[u[0]]+.5*e[u[1]]<.5*l[u[1]]?0:1]}function hct(n,i){return t(n||[],function(n){null!=n.dataIndex&&(n.dataIndexInside=n.dataIndex,n.dataIndex=null);n.highlightKey="visualMap"+(i?i.componentIndex:"")}),n}function dtu(n,t,i,r){return new fr({shape:{points:n},draggable:!!i,cursor:t,drift:i,onmousemove:function(n){de(n.event)},ondragend:r})}function gtu(n){var t=n.get("hoverLinkOnHandle");return!!(null==t?n.get("realtime"):t)}function niu(n){return"vertical"===n?"ns-resize":"ew-resize"}function uff(n,t,i,r){function l(n){return u[n]}function a(n,t){u[n]=t}for(var e,o,s=t.targetVisuals[r],h=gi.prepareVisualTypes(s),u={color:ig(n.getData(),"color")},f=0,c=h.length;f<c;f++)e=h[f],o=s["opacity"===e?"__alphaForOpacity":e],o&&o.applyVisual(i,l,a);return u.color}function fff(n){var t=n&&n.visualMap;u(t)||(t=t?[t]:[]);ioi(t,function(n){if(n){tb(n,"splitList")&&!tb(n,"pieces")&&(n.pieces=n.splitList,delete n.splitList);var t=n.pieces;t&&u(t)&&ioi(t,function(n){v(n)&&(tb(n,"start")&&!tb(n,"min")&&(n.min=n.start),tb(n,"end")&&!tb(n,"max")&&(n.max=n.end))})}})}function tb(n,t){return n&&n.hasOwnProperty&&n.hasOwnProperty(t)}function tiu(n){roi||(roi=!0,n.registerSubTypeDefaulter("visualMap",function(n){return n.categories||(n.pieces?n.pieces.length>0:n.splitNumber>0)&&!n.calculable?"piecewise":"continuous"}),n.registerAction(tff,iff),t(rff,function(t){n.registerVisual(n.PRIORITY.VISUAL.COMPONENT,t)}),n.registerPreprocessor(fff))}function iiu(n){n.registerComponentModel(duf);n.registerComponentView(nff);tiu(n)}function fiu(n,t){var i=n.inverse;("vertical"===n.orient?!i:i)&&t.reverse()}function oiu(n){n.registerComponentModel(riu);n.registerComponentView(eiu);tiu(n)}function sff(n,i){function u(n,i){if(!o(n))return n;var r=n;return t(i,function(n,t){r=r.replace(new RegExp("\\{\\s*"+t+"\\s*\\}","g"),n)}),r}var f=n.getModel("aria"),e;f.get("enabled")&&(e=y(eff),k(e.label,n.getLocaleModel().get("aria"),!1),k(f.option,e,!1),function(){if(f.getModel("decal").get("show")){var t=c();n.eachSeries(function(n){if(!n.isColorBySeries()){var i=t.get(n.type);i||(i={},t.set(n.type,i));siu(n).scope=i}});n.eachRawSeries(function(t){function h(n,t){var i=n?r(r({},t),n):t;return i.dirty=!0,i}var i,f,e,s;if(!n.isSeriesFiltered(t))if(l(t.enableAriaDecal))t.enableAriaDecal();else if(i=t.getData(),t.isColorBySeries())f=ywt(t.ecModel,t.name,off,n.getSeriesCount()),e=i.getVisual("decal"),i.setVisual("decal",h(e,f));else{var u=t.getRawData(),o={},c=siu(t).scope;i.each(function(n){var t=i.getRawIndex(n);o[t]=n});s=u.count();u.each(function(n){var r=o[n],f=u.getName(n)||n+"",e=ywt(t.ecModel,f,c,s),l=i.getItemVisual(r,"decal");i.setItemVisual(r,"decal",h(l,e))})}})}}(),function(){var v=n.getLocaleModel().get("aria"),t=f.getModel("label"),o,h,c;if(t.option=a(t.option,v),t.get("enabled")){if(o=i.getZr().dom,t.get("description"))return void o.setAttribute("aria-label",t.get("description"));var e,r=n.getSeriesCount(),s=t.get(["data","maxCount"])||10,y=t.get(["series","maxCount"])||10,p=Math.min(r,y);if(!(r<1)){h=function(){var t=n.get("title");return t&&t.length&&(t=t[0]),t&&t.text}();e=h?u(t.get(["general","withTitle"]),{title:h}):t.get(["general","withoutTitle"]);c=[];e+=u(r>1?t.get(["series","multiple","prefix"]):t.get(["series","single","prefix"]),{seriesCount:r});n.eachSeries(function(i,f){var e,l,o,w;if(f<p){e=void 0;l=i.get("name")?"withName":"withoutName";e=u(e=r>1?t.get(["series","multiple",l]):t.get(["series","single",l]),{seriesId:i.seriesIndex,seriesName:i.get("name"),seriesType:(w=i.subType,n.getLocaleModel().get(["series","typeNames"])[w]||"自定义图")});o=i.getData();e+=o.count()>s?u(t.get(["data","partialData"]),{displayCnt:s}):t.get(["data","allData"]);for(var a=t.get(["data","separator","middle"]),b=t.get(["data","separator","end"]),v=[],h=0;h<o.count();h++)if(h<s){var y=o.getName(h),k=o.getValues(h),d=t.get(["data",y?"withName":"withoutName"]);v.push(u(d,{name:y,value:k.join(a)}))}e+=v.join(a)+b;c.push(e)}});var l=t.getModel(["series","multiple","separator"]),w=l.get("middle"),b=l.get("end");e+=c.join(w)+b;o.setAttribute("aria-label",e)}}}())}function hff(n){if(n&&n.aria){var i=n.aria;null!=i.show&&(i.enabled=i.show);i.label=i.label||{};t(["description","general","series","data"],function(n){null!=i[n]&&(i.label[n]=i[n])})}}function uoi(n,t){var i,r;return!0===n||!1===n?(i=new lff,i.value=n,i):(r="",liu(n)||vt(r),n.and?ciu("and",n,t):n.or?ciu("or",n,t):n.not?function(n,t){var r=n.not,u="",i;return liu(r)||vt(u),i=new yff,i.child=uoi(r,t),i.child||vt(u),i}(n,t):function(n,t){for(var i,r,o="",p=t.prepareGetValue(n),u=[],s=et(n),c=n.parser,f=c?yki(c):null,e=0;e<s.length;e++)if(i=s[e],"parser"!==i&&!t.valueGetterAttrMap.get(i)){var l=h(hiu,i)?hiu[i]:i,a=n[i],v=f?f(a):a,y=fsu(l,v)||"reg"===l&&new cff(v);y||vt(o);u.push(y)}return u.length||vt(o),r=new pff,r.valueGetterParam=p,r.valueParser=f,r.getValue=t.getValue,r.subCondList=u,r}(n,t))}function ciu(n,t,i){var e=t[n],o="",r;return u(e)||vt(o),e.length||vt(o),r="and"===n?new aff:new vff,r.children=f(e,function(n){return uoi(n,i)}),r.children.length||vt(o),r}function liu(n){return v(n)&&!ir(n)}function ib(n,t){return Math.abs(n-t)<1e-5}function foi(n){function g(n,t){f&&f.length>2&&d.push(f);f=[n,t]}function c(n,t,i,r){ib(n,i)&&ib(t,r)||f.push(n,t,i,r,i,r)}function et(n,t,i,r,u,e){var b=Math.abs(t-n),o=4*Math.tan(b/4)/3,s=t<n?-1:1,h=Math.cos(n),c=Math.sin(n),l=Math.cos(t),a=Math.sin(t),k=h*u+i,d=c*e+r,v=l*u+i,y=a*e+r,p=u*o*s,w=e*o*s;f.push(k-p*c,d+w*h,v+p*a,y-w*l,v,y)}for(var p,nt,b,k,l,f,r,e,v,y,i=n.data,ft=n.len(),d=[],o=0,s=0,h=0,u=0,t=0;t<ft;){p=i[t++];nt=1===t;switch(nt&&(h=o=i[t],u=s=i[t+1],p!==go.L&&p!==go.C&&p!==go.Q||(f=[h,u])),p){case go.M:o=h=i[t++];s=u=i[t++];g(h,u);break;case go.L:c(o,s,r=i[t++],e=i[t++]);o=r;s=e;break;case go.C:f.push(i[t++],i[t++],i[t++],i[t++],o=i[t++],s=i[t++]);break;case go.Q:r=i[t++];e=i[t++];v=i[t++];y=i[t++];f.push(o+2/3*(r-o),s+2/3*(e-s),v+2/3*(r-v),y+2/3*(e-y),v,y);o=v;s=y;break;case go.A:var tt=i[t++],it=i[t++],rt=i[t++],ut=i[t++],w=i[t++],a=i[t++]+w;for(t+=1,b=!i[t++],r=Math.cos(w)*rt+tt,e=Math.sin(w)*ut+it,nt?g(h=r,u=e):c(o,s,r,e),o=Math.cos(a)*rt+tt,s=Math.sin(a)*ut+it,k=(b?-1:1)*Math.PI/2,l=w;b?l>a:l<a;l+=k)et(l,b?Math.max(l+k,a):Math.min(l+k,a),tt,it,rt,ut);break;case go.R:h=o=i[t++];u=s=i[t++];r=h+i[t++];e=u+i[t++];g(r,u);c(r,u,r,e);c(r,e,h,e);c(h,e,h,u);c(h,u,r,u);break;case go.Z:f&&c(o,s,h,u);o=h;s=u}}return f&&f.length>2&&d.push(f),d}function eoi(n,t,i,r,u,f,e,o,s,h){var p,w,c,l;if(ib(n,i)&&ib(t,r)&&ib(u,e)&&ib(f,o))s.push(e,o);else{var nt=2/h,y=nt*nt,a=e-n,v=o-t,tt=Math.sqrt(a*a+v*v);a/=tt;v/=tt;var b=i-n,k=r-t,d=u-e,g=f-o,it=b*b+k*k,rt=d*d+g*g;it<y&&rt<y?s.push(e,o):(p=a*b+v*k,w=-a*d-v*g,it-p*p<y&&p>=0&&rt-w*w<y&&w>=0?s.push(e,o):(c=[],l=[],uh(n,i,u,e,.5,c),uh(t,r,f,o,.5,l),eoi(c[0],l[0],c[1],l[1],c[2],l[2],c[3],l[3],s,h),eoi(c[4],l[4],c[5],l[5],c[6],l[6],c[7],l[7],s,h)))}}function aiu(n,t,i){var s=n[t],h=n[1-t],c=Math.abs(s/h),u=Math.ceil(Math.sqrt(c*i)),f=Math.floor(i/u),e,r,o;for(0===f&&(f=1,u=i),e=[],r=0;r<u;r++)e.push(f);if(o=i-u*f,o>0)for(r=0;r<o;r++)e[r%u]+=1;return e}function viu(n,t,i){for(var s,f,r,e=n.r0,y=n.r,o=n.startAngle,w=n.endAngle,v=Math.abs(w-o),p=v*y,h=y-e,c=p>Math.abs(h),l=aiu([p,h],c?0:1,t),a=(c?v:h)/l.length,u=0;u<l.length;u++)for(s=(c?h:v)/l[u],f=0;f<l[u];f++)r={},c?(r.startAngle=o+a*u,r.endAngle=o+a*(u+1),r.r0=e+s*f,r.r=e+s*(f+1)):(r.startAngle=o+s*f,r.endAngle=o+s*(f+1),r.r0=e+a*u,r.r=e+a*(u+1)),r.clockwise=n.clockwise,r.cx=n.cx,r.cy=n.cy,i.push(r)}function yiu(n,t,i,r){return n*r-i*t}function nef(n,t,i,r,u,f,e,o){var h=i-n,c=r-t,l=e-u,a=o-f,v=yiu(l,a,h,c),s;return Math.abs(v)<1e-6?null:(s=yiu(n-u,t-f,l,a)/v,s<0||s>1?null:new g(s*h+n,s*c+t))}function tef(n,t,i){var r=new g,u;return g.sub(r,i,t),r.normalize(),u=new g,g.sub(u,n,t),u.dot(r)}function rb(n,t){var i=n[n.length-1];i&&i[0]===t[0]&&i[1]===t[1]||n.push(t)}function piu(n){var c=n.points,t=[],f=[];vrt(c,t,f);var u=new nt(t[0],t[1],f[0]-t[0],f[1]-t[1]),e=u.width,o=u.height,s=u.x,h=u.y,i=new g,r=new g;return e>o?(i.x=r.x=s+e/2,i.y=h,r.y=h+o):(i.y=r.y=h+o/2,i.x=s,r.x=s+e),function(n,t,i){for(var u,f,p,o=n.length,e=[],r=0;r<o;r++){var v=n[r],y=n[(r+1)%o],c=nef(v[0],v[1],y[0],y[1],t.x,t.y,i.x,i.y);c&&e.push({projPt:tef(c,t,i),pt:c,idx:r})}if(e.length<2)return[{points:n},{points:n}];e.sort(function(n,t){return n.projPt-t.projPt});u=e[0];f=e[e.length-1];f.idx<u.idx&&(p=u,u=f,f=p);var l=[u.pt.x,u.pt.y],a=[f.pt.x,f.pt.y],s=[l],h=[a];for(r=u.idx+1;r<=f.idx;r++)rb(s,n[r].slice());for(rb(s,a),rb(s,l),r=f.idx+1;r<=u.idx+o;r++)rb(h,n[r%o].slice());return rb(h,l),rb(h,a),[{points:s},{points:h}]}(c,i,r)}function cct(n,t,i,r){if(1===i)r.push(t);else{var u=Math.floor(i/2),f=n(t);cct(n,f[0],u,r);cct(n,f[1],i-u,r)}return r}function ief(n,t){t.setStyle(n.style);t.z=n.z;t.z2=n.z2;t.zlevel=n.zlevel}function ref(n,t){var e,u=[],o=n.shape,i,v,y,c,p,l,w,a;switch(n.type){case"rect":!function(n,t,i){for(var s,o,r,h=n.width,c=n.height,u=h>c,e=aiu([h,c],u?0:1,t),l=u?"width":"height",a=u?"height":"width",y=u?"x":"y",p=u?"y":"x",v=n[l]/e.length,f=0;f<e.length;f++)for(s=n[a]/e[f],o=0;o<e[f];o++)r={},r[y]=f*v,r[p]=o*s,r[l]=v,r[a]=s,r.x+=n.x,r.y+=n.y,i.push(r)}(o,t,u);e=ot;break;case"sector":viu(o,t,u);e=ur;break;case"circle":viu({r0:0,r:o.r,startAngle:0,endAngle:2*Math.PI,cx:o.cx,cy:o.cy},t,u);e=ur;break;default:var r=n.getComputedTransform(),b=r?Math.sqrt(Math.max(r[0]*r[0]+r[1]*r[1],r[2]*r[2]+r[3]*r[3])):1,h=f(function(n,t){var s=foi(n),h=[],u,r;for(t=t||1,u=0;u<s.length;u++){var i=s[u],f=[],e=i[0],o=i[1];for(f.push(e,o),r=2;r<i.length;){var a=i[r++],v=i[r++],y=i[r++],p=i[r++],c=i[r++],l=i[r++];eoi(e,o,a,v,y,p,c,l,f,t);e=c;o=l}h.push(f)}return h}(n.getUpdatedPathProxy(),b),function(n){return function(n){for(var i=[],t=0;t<n.length;)i.push([n[t++],n[t++]]);return i}(n)}),s=h.length;if(0===s)cct(piu,{points:h[0]},t,u);else if(s===t)for(i=0;i<s;i++)u.push({points:h[i]});else for(v=0,y=f(h,function(n){var t=[],i=[],r;return vrt(n,t,i),r=(i[1]-t[1])*(i[0]-t[0]),v+=r,{poly:n,area:r}}),y.sort(function(n,t){return t.area-n.area}),c=t,i=0;i<s;i++){if(p=y[i],c<=0)break;l=i===s-1?c:Math.ceil(p.area/v*t);l<0||(cct(piu,{points:p.poly},l,u),c-=l)}e=fr}if(!e)return function(n,t){for(var i=[],r=0;r<t;r++)i.push(upt(n));return i}(n,t);for(w=[],i=0;i<u.length;i++)a=new e,a.setShape(u[i]),ief(n,a),w.push(a);return w}function uef(n,t){var e=n.length,o=t.length,h,c,k;if(e===o)return[n,t];for(var u=[],f=[],i=e<o?n:t,d=Math.min(e,o),g=Math.abs(o-e)/6,it=(d-2)/6,rt=Math.ceil(g/it)+1,s=[i[0],i[1]],l=g,r=2;r<d;){var a=i[r-2],v=i[r-1],y=i[r++],p=i[r++],w=i[r++],b=i[r++],nt=i[r++],tt=i[r++];if(l<=0)s.push(y,p,w,b,nt,tt);else{for(h=Math.min(l,rt-1)+1,c=1;c<=h;c++)k=c/h,uh(a,y,w,nt,k,u),uh(v,p,b,tt,k,f),a=u[3],v=f[3],s.push(u[1],f[1],u[2],f[2],a,v),y=u[5],p=f[5],w=u[6],b=f[6];l-=h-1}}return i===n?[s,t]:[n,s]}function wiu(n,t){for(var u=n.length,f=n[u-2],e=n[u-1],i=[],r=0;r<t.length;)i[r++]=f,i[r++]=e;return i}function biu(n){for(var t=0,f=0,e=0,o=n.length,i=0,r=o-2;i<o;r=i,i+=2){var s=n[r],h=n[r+1],c=n[i],l=n[i+1],u=s*l-c*h;t+=u;f+=(s+c)*u;e+=(h+l)*u}return 0===t?[n[0]||0,n[1]||0]:[f/t/3,e/t/3,t]}function fef(n,t,i,r){for(var y=(n.length-2)/6,o=1/0,s=0,h=n.length,p=h-2,f=0;f<y;f++){for(var c=6*f,e=0,u=0;u<h;u+=2){var l=0===u?c:(c+u-2)%p+2,w=n[l]-i[0],b=n[l+1]-i[1],a=t[u]-r[0]-w,v=t[u+1]-r[1]-b;e+=a*a+v*v}e<o&&(o=e,s=f)}return s}function eef(n){for(var i=[],r=n.length,t=0;t<r;t+=2)i[t]=n[r-t-2],i[t+1]=n[r-t-1];return i}function lct(n){return n.__isCombineMorphing}function act(n,t,i){var r=ooi+t,o=n[r]||n[t];n[r]||(n[r]=n[t]);var u=i.replace,f=i.after,e=i.before;n[t]=function(){var t,n=arguments;return e&&e.apply(this,n),t=u?u.apply(this,n):o.apply(this,n),f&&f.apply(this,n),t}}function ltt(n,t){var i=ooi+t;n[i]&&(n[t]=n[i],n[i]=null)}function kiu(n,t){for(var i,r,f,e,u=0;u<n.length;u++)for(i=n[u],r=0;r<i.length;)f=i[r],e=i[r+1],i[r++]=t[0]*f+t[2]*e+t[4],i[r++]=t[1]*f+t[3]*e+t[5]}function diu(n,t){var h=n.getUpdatedPathProxy(),c=t.getUpdatedPathProxy(),u=function(n,t){for(var o,s,h,c=[],l=[],u=0;u<Math.max(n.length,t.length);u++){var i=n[u],r=t[u],f=void 0,e=void 0;i?r?(s=f=(o=uef(i,r))[0],h=e=o[1]):(e=wiu(h||i,i),f=i):(f=wiu(s||r,r),e=r);c.push(f);l.push(e)}return[c,l]}(foi(h),foi(c)),f=u[0],e=u[1],o=n.getComputedTransform(),s=t.getComputedTransform(),r,i;o&&kiu(f,o);s&&kiu(e,s);act(t,"updateTransform",{replace:function(){this.transform=null}});t.transform=null;r=function(n,t,i,r){for(var w,d,et,l,nt,tt,v,h,b=[],a=0;a<n.length;a++){var f=n[a],c=t[a],e=biu(f),o=biu(c);null==w&&(w=e[2]<0!=o[2]<0);var s=[],y=[],it=0,rt=1/0,p=[],ut=f.length;w&&(f=eef(f));for(var k=6*fef(f,c,e,o),ft=ut-2,u=0;u<ft;u+=2)d=(k+u)%ft+2,s[u+2]=f[d]-e[0],s[u+3]=f[d+1]-e[1];if(s[0]=f[k]-e[0],s[1]=f[k+1]-e[1],i>0)for(et=r/i,l=-r/2;l<=r/2;l+=et){var ot=Math.sin(l),st=Math.cos(l),g=0;for(u=0;u<f.length;u+=2){var vt=s[u],yt=s[u+1],ht=c[u]-o[0],ct=c[u+1]-o[1],lt=ht*st-ct*ot,at=ht*ot+ct*st;p[u]=lt;p[u+1]=at;nt=lt-vt;tt=at-yt;g+=nt*nt+tt*tt}if(g<rt)for(rt=g,it=l,v=0;v<p.length;v++)y[v]=p[v]}else for(h=0;h<ut;h+=2)y[h]=c[h]-o[0],y[h+1]=c[h+1]-o[1];b.push({from:s,to:y,fromCp:e,toCp:o,rotation:-it})}return b}(f,e,10,Math.PI);i=[];act(t,"buildPath",{replace:function(n){for(var u,s,h,f=t.__morphT,w=1-f,a=[],v=0;v<r.length;v++){var e=r[v],o=e.from,b=e.to,k=e.rotation*f,ut=e.fromCp,ft=e.toCp,d=Math.sin(k),g=Math.cos(k);for(ab(a,ut,ft,f),u=0;u<o.length;u+=2){var et=o[u],ot=o[u+1],nt=et*w+(y=b[u])*f,tt=ot*w+(p=b[u+1])*f;i[u]=nt*g-tt*d+a[0];i[u+1]=nt*d+tt*g+a[1]}for(s=i[0],h=i[1],n.moveTo(s,h),u=2;u<o.length;){var y=i[u++],p=i[u++],it=i[u++],rt=i[u++],c=i[u++],l=i[u++];s===y&&h===p&&it===c&&rt===l?n.lineTo(c,l):n.bezierCurveTo(y,p,it,rt,c,l);s=c;h=l}}}})}function soi(n,t,i){if(!n||!t)return t;var r=i.done,u=i.during;return diu(n,t),t.__morphT=0,t.animateTo({__morphT:1},a({during:function(n){t.dirtyShape();u&&u(n)},done:function(){ltt(t,"buildPath");ltt(t,"updateTransform");t.__morphT=-1;t.createPathProxy();t.dirtyShape();r&&r()}},i)),t}function oef(n,t,i,r,u,f){var c,h,e,o,s;for(n=u===i?0:Math.round(32767*(n-i)/(u-i)),t=f===r?0:Math.round(32767*(t-r)/(f-r)),h=0,e=32768;e>0;e/=2)o=0,s=0,(n&e)>0&&(o=1),(t&e)>0&&(s=1),h+=e*e*(3*o^s),0===s&&(1===o&&(n=e-1-n,t=e-1-t),c=n,n=t,t=c);return h}function vct(n){var t=1/0,i=1/0,r=-1/0,u=-1/0,e=f(n,function(n){var f=n.getBoundingRect(),e=n.getComputedTransform(),o=f.x+f.width/2+(e?e[4]:0),s=f.y+f.height/2+(e?e[5]:0);return t=Math.min(o,t),i=Math.min(s,i),r=Math.max(o,r),u=Math.max(s,u),[o,s]});return f(e,function(f,e){return{cp:f,z:oef(f[0],f[1],t,i,r,u),path:n[e]}}).sort(function(n,t){return n.z-t.z}).map(function(n){return n.path})}function giu(n){return ref(n.path,n.count)}function nru(n){return u(n[0])}function tru(n,t){for(var e,u,f,o,h,r=[],s=n.length,i=0;i<s;i++)r.push({one:n[i],many:[]});for(i=0;i<t.length;i++)for(e=t[i].length,u=void 0,u=0;u<e;u++)r[u%s].many.push(t[i][u]);for(f=0,i=s-1;i>=0;i--)if(!r[i].many.length){if(o=r[f].many,o.length<=1){if(!f)return r;f=0}e=o.length;h=Math.ceil(e/2);r[i].many=o.slice(h,e);r[f].many=o.slice(0,h);f++}return r}function hoi(n,t,i,r,u,f){function b(n,t,r,u,e){var s=n.many,y=n.one,p,l,v;if(1!==s.length||e)for(var w=a({dividePath:iru[i],individualDelay:o&&function(n){return o(n+r,u)}},h),k=t?function(n,t,i){function y(n){for(var t=0;t<r.length;t++)r[t].addSelfToZr(n)}function p(){t.__isCombineMorphing=!1;t.__morphT=-1;t.childrenRef=null;ltt(t,"addSelfToZr");ltt(t,"removeSelfFromZr")}var f=[],o,r,v,c,e,w,b,k;if(!function n(t){for(var i,r=0;r<t.length;r++)i=t[r],lct(i)?n(i.childrenRef()):i instanceof ut&&f.push(i)}(n),o=f.length,!o)return{fromIndividuals:[],toIndividuals:[],count:0};if(r=(i.dividePath||giu)({path:t,count:o}),r.length!==o)return console.error("Invalid morphing: unmatched splitted path"),{fromIndividuals:[],toIndividuals:[],count:0};f=vct(f);r=vct(r);for(var s=i.done,l=i.during,h=i.individualDelay,d=new us,u=0;u<o;u++)v=f[u],c=r[u],c.parent=t,c.copyTransform(d),h||diu(v,c);if(t.__isCombineMorphing=!0,t.childrenRef=function(){return r},act(t,"addSelfToZr",{after:function(n){y(n)}}),act(t,"removeSelfFromZr",{after:function(n){for(var t=0;t<r.length;t++)r[t].removeSelfFromZr(n)}}),e=r.length,h)for(w=e,b=function(){0==--w&&(p(),s&&s())},u=0;u<e;u++)k=h?a({delay:(i.delay||0)+h(u,e,f[u],r[u]),done:b},i):i,soi(f[u],r[u],k);else t.__morphT=0,t.animateTo({__morphT:1},a({during:function(n){for(var u,i=0;i<e;i++)u=r[i],u.__morphT=t.__morphT,u.dirtyShape();l&&l(n)},done:function(){p();for(var t=0;t<n.length;t++)ltt(n[t],"updateTransform");s&&s()}},i));return t.__zr&&y(t.__zr),{fromIndividuals:f,toIndividuals:r,count:e}}(s,y,w):function(n,t,i){var f=t.length,u=[],l=i.dividePath||giu,e,s,r,h,o,c;if(lct(n)){if(!function n(t){for(var i,r=0;r<t.length;r++)i=t[r],lct(i)?n(i.childrenRef()):i instanceof ut&&u.push(i)}(n.childrenRef()),e=u.length,e<f)for(s=0,r=e;r<f;r++)u.push(upt(u[s++%e]));u.length=f}else{for(u=l({path:n,count:f}),h=n.getComputedTransform(),r=0;r<u.length;r++)u[r].setLocalTransform(h);if(u.length!==f)return console.error("Invalid morphing: unmatched splitted path"),{fromIndividuals:[],toIndividuals:[],count:0}}for(u=vct(u),t=vct(t),o=i.individualDelay,r=0;r<f;r++)c=o?a({delay:(i.delay||0)+o(r,f,u[r],t[r])},i):i,soi(u[r],t[r],c);return{fromIndividuals:u,toIndividuals:t,count:t.length}}(y,s,w),d=k.fromIndividuals,nt=k.toIndividuals,g=d.length,c=0;c<g;c++)p=o?a({delay:o(c,g)},h):h,f(d[c],nt[c],t?s[c]:n.one,t?n.one:s[c],p);else l=t?s[0]:y,v=t?y:s[0],lct(l)?b({many:[l],one:v},!0,r,u,!0):(soi(l,v,p=o?a({delay:o(r,u)},h):h),f(l,v,l,v,p))}var l,s,v,o,h,p;if(n.length&&t.length&&(l=vy("update",r,u),l&&l.duration>0)){o=r.getModel("universalTransition").get("delay");h=Object.assign({setToFinal:!0},l);nru(n)&&(s=n,v=t);nru(t)&&(s=t,v=n);for(var y=s?s===n:n.length>t.length,c=s?tru(v,s):tru(y?t:n,[y?n:t]),w=0,e=0;e<c.length;e++)w+=c[e].many.length;for(p=0,e=0;e<c.length;e++)b(c[e],y,p,w),p+=c[e].many.length}}function lv(n){var i,t,r;if(!n)return[];if(u(n)){for(i=[],t=0;t<n.length;t++)i.push(lv(n[t]));return i}return r=[],n.traverse(function(n){n instanceof ut&&!n.disableMorphing&&!n.invisible&&!n.ignore&&r.push(n)}),r}function uru(n){var i=[];return t(n,function(n){var t=n.data;if(!(t.count()>1e4))for(var u=t.getIndices(),f=function(n){for(var r,i=n.dimensions,t=0;t<i.length;t++)if(r=n.getDimensionInfo(i[t]),r&&0===r.otherDims.itemGroupId)return i[t]}(t),r=0;r<u.length;r++)i.push({dataGroupId:n.dataGroupId,data:t,dim:n.dim||f,divide:n.divide,dataIndex:r})}),i}function coi(n,t,i){n.traverse(function(n){n instanceof ut&&ii(n,{style:{opacity:0}},t,{dataIndex:i,isFrom:!0})})}function loi(n){if(n.parent){var t=n.getComputedTransform();n.setLocalTransform(t);n.parent.remove(n)}}function ub(n){n.stopAnimation();n.isGroup&&n.traverse(function(n){n.stopAnimation()})}function sef(n,t,i){var r=vy("update",i,t);r&&n.traverse(function(n){if(n instanceof ef){var t=function(n){return gyi(n).oldStyle}(n);t&&n.animateFrom({style:t},r)}})}function fru(n,i,u){function l(n,t,i,u,f){(i||n)&&t.animateFrom({style:i&&i!==n?r(r({},i.style),n.style):n.style},f)}function p(n){for(var t=0;t<n.length;t++)if(n[t].dim)return n[t].dim}function k(n,t){return function(i){var r=i.data,u=i.dataIndex,o,e;if(t)return r.getId(u);var c=i.dataGroupId,s=n?w||b:b||w,f=s&&r.getDimensionInfo(s),h=f&&f.ordinalMeta;return f?(o=r.get(f.name,u),h&&h.categories[o]||o+""):(e=r.getRawDataItem(u),e&&e.groupId?e.groupId+"":c||r.getId(u))}}function d(n,t){var c=o[t],u=e[n],f=u.data.hostModel,i=c.data.getItemGraphicEl(c.dataIndex),r=u.data.getItemGraphicEl(u.dataIndex);i!==r?i&&h[i.id]||r&&(ub(r),i?(ub(i),loi(i),s=!0,hoi(lv(i),lv(r),u.divide,f,n,l)):coi(r,f,n)):r&&sef(r,u.dataIndex,f)}var o=uru(n),e=uru(i),w=p(o),b=p(e),s=!1,a=function(n,t){var f=n.length,i,r,u;if(f!==t.length)return!1;for(i=0;i<f;i++)if(r=n[i],u=t[i],r.data.getId(r.dataIndex)!==u.data.getId(u.dataIndex))return!1;return!0}(o,e),h={},c,v,y;if(!a)for(c=0;c<e.length;c++)v=e[c],y=v.data.getItemGraphicEl(v.dataIndex),y&&(h[y.id]=!0);new co(o,e,k(!0,a),k(!1,a),null,"multiple").update(d).updateManyToOne(function(n,i){var u=e[n],a=u.data,v=a.hostModel,r=a.getItemGraphicEl(u.dataIndex),c=yt(f(i,function(n){return o[n].data.getItemGraphicEl(o[n].dataIndex)}),function(n){return n&&n!==r&&!h[n.id]});r&&(ub(r),c.length?(t(c,function(n){ub(n);loi(n)}),s=!0,hoi(lv(c),lv(r),u.divide,v,n,l)):coi(r,v,u.dataIndex))}).updateOneToMany(function(n,i){var c=o[i],r=c.data.getItemGraphicEl(c.dataIndex),u,a;r&&h[r.id]||(u=yt(f(n,function(n){return e[n].data.getItemGraphicEl(e[n].dataIndex)}),function(n){return n&&n!==r}),a=e[n[0]].data.hostModel,u.length&&(t(u,function(n){return ub(n)}),r?(ub(r),loi(r),s=!0,hoi(lv(r),lv(u),c.divide,a,n[0],l)):t(u,function(t){return coi(t,a,n[0])})))}).updateManyToMany(function(n,t){new co(t,n,function(n){return o[n].data.getId(o[n].dataIndex)},function(n){return e[n].data.getId(e[n].dataIndex)}).update(function(i,r){d(n[i],t[r])}).execute()}).execute();s&&t(i,function(n){var t=n.data.hostModel,r=t&&u.getViewOfSeriesModel(t),i=vy("update",t,0);r&&t.isAnimationEnabled()&&i&&i.duration>0&&r.group.traverse(function(n){n instanceof ut&&!n.animators.length&&n.animateFrom({style:{opacity:0}},i)})})}function eru(n){var t=n.getModel("universalTransition").get("seriesKey");return t||n.id}function oru(n){return u(n)?n.sort().join(","):n}function yc(n){if(n.hostModel)return n.hostModel.getModel("universalTransition").get("divideShape")}function sru(n,t){for(var i=0;i<n.length;i++)if(null!=t.seriesIndex&&t.seriesIndex===n[i].seriesIndex||null!=t.seriesId&&t.seriesId===n[i].id)return i}var yct=function(n,t){return yct=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},yct(n,t)},hru=function(){this.firefox=!1;this.ie=!1;this.edge=!1;this.newEdge=!1;this.weChat=!1},ft=new function(){this.browser=new hru;this.node=!1;this.wxa=!1;this.worker=!1;this.svgSupported=!1;this.touchEventsSupported=!1;this.pointerEventsSupported=!1;this.domSupported=!1;this.transformSupported=!1;this.transform3dSupported=!1;this.hasGlobalWindow="undefined"!=typeof window},koi,s,gct,wv,rsi,fsi,esi,ke,ns,ult,nit,csi,lsi,de,ysi,tit,vlt,ahi,nat,nk,phi,whi,bhi,uk,khi,dhi,fci,vit,aci,ff,bit,wat,p,gci,nli,rrt,rli,evt,ovt,svt,ali,oi,vli,oh,avt,bli,srt,iai,tyt,iyt,fe,syt,fy,yl,vyt,npt,wvi,eyi,vu,oyi,hy,cyi,ur,lyi,gl,vyi,fr,yyi,er,gr,pyi,na,byi,ly,ipi,ou,ud,ky,od,ra,dpi,bh,ewt,kut,kh,bwi,rt,hwt,pwt,rft,fp,ep,op,kbi,dbi,bd,tbt,eki,uft,ski,cki,fft,aki,rbt,vki,bki,ubt,oft,obt,sbt,udi,fdi,hft,ls,gd,bt,ni,ugi,yft,lp,abt,ygi,pgi,kbt,dbt,af,tkt,wp,fkt,net,tc,ekt,okt,skt,ug,fg,ani,vni,hkt,yni,tet,pni,wni,vf,bni,ckt,lkt,eg,iet,kni,ntr,gkt,idt,rdt,etr,co,str,ptr,wtr,ve,ktr,aet,ag,uc,ao,cdt,nir,wet,bet,vg,pir,kdt,pu,yf,dg,pr,fgt,egt,hgt,fc,tur,gp,hur,agt,cur,gur,tfr,ifr,rw,uw,vs,ys,ner,ter,ier,fw,ler,tnt,int,un,rnt,wer,der,ger,ror,vot,eor,oor,yot,lor,vnt,sw,knt,ssr,wsr,ksr,thr,ihr,nv,iti,ahr,vhr,rti,hw,ghr,bu,hcr,ist,lcr,lti,vcr,pcr,tlr,bti,ilr,uii,cst,ylr,rv,klr,lst,ast,vst,ear,car,par,war,bar,kar,dar,gar,nvr,fvr,wst,nyr,ntt,syr,lri,ari,yw,vyr,kst,wri,npr,tpr,ipr,nui,we,cwr,iui,vwr,pwr,abr,ybr,kbr,nfi,tkr,fht,rfi,ikr,fkr,ekr,vkr,ykr,ofi,kkr,hfi,tdr,aht,bw,ku,afi,odr,itt,gw,yht,ldr,vfi,yfi,adr,vdr,pht,kfi,gdr,iei,fgr,egr,hgr,cgr,vgr,uei,eei,ggr,tnr,inr,ftt,bo,cnr,kht,dht,ght,ttu,utu,fct,etu,ect,oct,gei,noi,ioi,roi,riu,uiu,eiu,ooi,iru,rru;"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(ft.wxa=!0,ft.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?ft.worker=!0:"undefined"==typeof navigator?(ft.node=!0,ft.svgSupported=!0):function(n,t){var i=t.browser,f=n.match(/Firefox\/([\d.]+)/),e=n.match(/MSIE\s([\d.]+)/)||n.match(/Trident\/.+?rv:(([\d.]+))/),u=n.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(n),r;f&&(i.firefox=!0,i.version=f[1]);e&&(i.ie=!0,i.version=e[1]);u&&(i.edge=!0,i.version=u[1],i.newEdge=+u[1].split(".")[0]>18);o&&(i.weChat=!0);t.svgSupported="undefined"!=typeof SVGRect;t.touchEventsSupported="ontouchstart"in window&&!i.ie&&!i.edge;t.pointerEventsSupported="onpointerdown"in window&&(i.edge||i.ie&&+i.version>=11);t.domSupported="undefined"!=typeof document;r=document.documentElement.style;t.transform3dSupported=(i.ie&&"transition"in r||i.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in r)&&!("OTransition"in r);t.transformSupported=t.transform3dSupported||i.ie&&+i.version>=9}(navigator.userAgent,ft);var aoi="sans-serif",ds="12px "+aoi,fb,voi,cru=function(n){var i={},t,r,u;if("undefined"==typeof JSON)return i;for(t=0;t<n.length;t++)r=String.fromCharCode(t+32),u=(n.charCodeAt(t)-20)/100,i[r]=u;return i}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),df={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(n,t){var r,i,e;if(fb||(r=df.createCanvas(),fb=r&&r.getContext("2d")),fb)return voi!==t&&(voi=fb.font=t||ds),fb.measureText(n);n=n||"";var o=/(\d+)px/.exec(t=t||ds),u=o&&+o[1]||12,f=0;if(t.indexOf("mono")>=0)f=u*n.length;else for(i=0;i<n.length;i++)e=cru[n[i]],f+=null==e?u:e*u;return{width:f}},loadImage:function(n,t,i){var r=new Image;return r.onload=t,r.onerror=i,r.src=n,r}};var poi=du(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(n,t){return n["[object "+t+"]"]=!0,n},{}),woi=du(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(n,t){return n["[object "+t+"Array]"]=!0,n},{}),av=Object.prototype.toString,att=Array.prototype,lru=att.forEach,aru=att.filter,pct=att.slice,vru=att.map,boi=function(){}.constructor,vtt=boi?boi.prototype:null,wct="__proto__",yru=2311;koi=df.createCanvas;s=vtt&&l(vtt.bind)?vtt.call.bind(vtt.bind):function(n,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return function(){return n.apply(t,r.concat(pct.call(arguments)))}};gct="__ec_primitive__";var pru=function(){function n(){this.data={}}return n.prototype.delete=function(n){var t=this.has(n);return t&&delete this.data[n],t},n.prototype.has=function(n){return this.data.hasOwnProperty(n)},n.prototype.get=function(n){return this.data[n]},n.prototype.set=function(n,t){return this.data[n]=t,this},n.prototype.keys=function(){return et(this.data)},n.prototype.forEach=function(n){var t=this.data;for(var i in t)t.hasOwnProperty(i)&&n(t[i],i)},n}(),tsi="function"==typeof Map,isi=function(){function n(i){function f(n,t){e?r.set(n,t):r.set(t,n)}var e=u(i),r;this.data=tsi?new Map:new pru;r=this;i instanceof n?i.each(f):i&&t(i,f)}return n.prototype.hasKey=function(n){return this.data.has(n)},n.prototype.get=function(n){return this.data.get(n)},n.prototype.set=function(n,t){return this.data.set(n,t),t},n.prototype.each=function(n,t){this.data.forEach(function(i,r){n.call(t,i,r)})},n.prototype.keys=function(){var n=this.data.keys();return tsi?Array.from(n):n},n.prototype.removeKey=function(n){this.data.delete(n)},n}();wv=180/Math.PI;rsi=Object.freeze({__proto__:null,guid:bct,logError:ytt,clone:y,merge:k,mergeAll:ptt,extend:r,defaults:a,createCanvas:koi,indexOf:tt,inherits:kct,mixin:fi,isArrayLike:ir,each:t,map:f,reduce:du,filter:yt,find:doi,keys:et,bind:s,curry:w,isArray:u,isFunction:l,isString:o,isStringSafe:wtt,isNumber:ht,isObject:v,isBuiltInObject:dct,isTypedArray:uu,isDom:vv,isGradientObject:eb,isImagePatternObject:goi,isRegExp:nsi,eqNaN:yv,retrieve:yi,retrieve2:d,retrieve3:gf,slice:btt,normalizeCssArray:ktt,assert:sr,trim:gu,setAsPrimitive:ob,isPrimitive:pv,HashMap:isi,createHashMap:c,concatArray:sb,createObject:hb,disableUserSelect:nlt,hasOwn:h,noop:ei,RADIAN_TO_DEGREE:wv});fsi=cb;esi=ilt;ke=gtt;ns=osi;var wru=Object.freeze({__proto__:null,create:gs,copy:hr,clone:be,set:usi,add:tlt,scaleAndAdd:dtt,sub:nh,len:cb,length:fsi,lenSquare:ilt,lengthSquare:esi,mul:function(n,t,i){return n[0]=t[0]*i[0],n[1]=t[1]*i[1],n},div:function(n,t,i){return n[0]=t[0]/i[0],n[1]=t[1]/i[1],n},dot:function(n,t){return n[0]*t[0]+n[1]*t[1]},scale:lb,normalize:pc,distance:gtt,dist:ke,distanceSquare:osi,distSquare:ns,negate:function(n,t){return n[0]=-t[0],n[1]=-t[1],n},lerp:ab,applyTransform:nr,min:ts,max:is}),bv=function(n,t){this.target=n;this.topTarget=t&&t.topTarget},bru=function(){function n(n){this.handler=n;n.on("mousedown",this._dragStart,this);n.on("mousemove",this._drag,this);n.on("mouseup",this._dragEnd,this)}return n.prototype._dragStart=function(n){for(var t=n.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=n.offsetX,this._y=n.offsetY,this.handler.dispatchToElement(new bv(t,n),"dragstart",n.event))},n.prototype._drag=function(n){var i=this._draggingTarget,t,r;if(i){var u=n.offsetX,f=n.offsetY,e=u-this._x,o=f-this._y;this._x=u;this._y=f;i.drift(e,o,n);this.handler.dispatchToElement(new bv(i,n),"drag",n.event);t=this.handler.findHover(u,f,i).target;r=this._dropTarget;this._dropTarget=t;i!==t&&(r&&t!==r&&this.handler.dispatchToElement(new bv(r,n),"dragleave",n.event),t&&t!==r&&this.handler.dispatchToElement(new bv(t,n),"dragenter",n.event))}},n.prototype._dragEnd=function(n){var t=this._draggingTarget;t&&(t.dragging=!1);this.handler.dispatchToElement(new bv(t,n),"dragend",n.event);this._dropTarget&&this.handler.dispatchToElement(new bv(this._dropTarget,n),"drop",n.event);this._draggingTarget=null;this._dropTarget=null},n}(),nf=function(){function n(n){n&&(this._$eventProcessor=n)}return n.prototype.on=function(n,t,i,r){var u,f,e;if(this._$handlers||(this._$handlers={}),u=this._$handlers,"function"==typeof t&&(r=i,i=t,t=null),!i||!n)return this;for(f=this._$eventProcessor,null!=t&&f&&f.normalizeQuery&&(t=f.normalizeQuery(t)),u[n]||(u[n]=[]),e=0;e<u[n].length;e++)if(u[n][e].h===i)return this;var o={h:i,query:t,ctx:r||this,callAtLast:i.zrEventfulCallAtLast},s=u[n].length-1,h=u[n][s];return h&&h.callAtLast?u[n].splice(s,0,o):u[n].push(o),this},n.prototype.isSilent=function(n){var t=this._$handlers;return!t||!t[n]||!t[n].length},n.prototype.off=function(n,t){var i=this._$handlers;if(!i)return this;if(!n)return this._$handlers={},this;if(t){if(i[n]){for(var u=[],r=0,f=i[n].length;r<f;r++)i[n][r].h!==t&&u.push(i[n][r]);i[n]=u}i[n]&&0===i[n].length&&delete i[n]}else delete i[n];return this},n.prototype.trigger=function(n){for(var f,r,t,i=[],u=1;u<arguments.length;u++)i[u-1]=arguments[u];if(!this._$handlers)return this;if(f=this._$handlers[n],r=this._$eventProcessor,f)for(var o=i.length,s=f.length,e=0;e<s;e++)if(t=f[e],!r||!r.filter||null==t.query||r.filter(n,t.query))switch(o){case 0:t.h.call(t.ctx);break;case 1:t.h.call(t.ctx,i[0]);break;case 2:t.h.call(t.ctx,i[0],i[1]);break;default:t.h.apply(t.ctx,i)}return r&&r.afterTrigger&&r.afterTrigger(n),this},n.prototype.triggerWithContext=function(n){for(var f,i,r,t=[],u=1;u<arguments.length;u++)t[u-1]=arguments[u];if(!this._$handlers)return this;if(f=this._$handlers[n],i=this._$eventProcessor,f)for(var o=t.length,e=t[o-1],h=f.length,s=0;s<h;s++)if(r=f[s],!i||!i.filter||null==r.query||i.filter(n,r.query))switch(o){case 0:r.h.call(e);break;case 1:r.h.call(e,t[0]);break;case 2:r.h.call(e,t[0],t[1]);break;default:r.h.apply(e,t.slice(1,o-1))}return i&&i.afterTrigger&&i.afterTrigger(n),this},n}(),kru=Math.log(2);ult="___zrEVENTSAVED";nit=[];csi=/([&<>"'])/g;lsi={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};var dru=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,elt=[],gru=ft.browser.firefox&&+ft.browser.version.split(".")[0]<39;de=function(n){n.preventDefault();n.stopPropagation();n.cancelBubble=!0};ysi=function(){function n(){this._track=[]}return n.prototype.recognize=function(n,t,i){return this._doTrack(n,t,i),this._recognize(n)},n.prototype.clear=function(){return this._track.length=0,this},n.prototype._doTrack=function(n,t,i){var r=n.touches,e,o;if(r){for(var u={points:[],touches:[],target:t,event:n},f=0,s=r.length;f<s;f++)e=r[f],o=olt(i,e,{}),u.points.push([o.zrX,o.zrY]),u.touches.push(e);this._track.push(u)}},n.prototype._recognize=function(n){var t,i;for(t in tit)if(tit.hasOwnProperty(t)&&(i=tit[t](this._track,n),i))return i},n}();tit={pinch:function(n,t){var e=n.length,r,i,u,f,o;if(e&&(i=(n[e-1]||{}).points,u=(n[e-2]||{}).points||i,u&&u.length>1&&i&&i.length>1))return f=psi(i)/psi(u),isFinite(f)||(f=1),t.pinchScale=f,o=[((r=i)[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2],t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:n[0].target,event:t}}};var tuu=Object.freeze({__proto__:null,create:nuu,identity:vb,copy:iit,mul:ge,translate:ne,rotate:th,scale:rit,invert:wc,clone:wsi}),g=function(){function n(n,t){this.x=n||0;this.y=t||0}return n.prototype.copy=function(n){return this.x=n.x,this.y=n.y,this},n.prototype.clone=function(){return new n(this.x,this.y)},n.prototype.set=function(n,t){return this.x=n,this.y=t,this},n.prototype.equal=function(n){return n.x===this.x&&n.y===this.y},n.prototype.add=function(n){return this.x+=n.x,this.y+=n.y,this},n.prototype.scale=function(n){this.x*=n;this.y*=n},n.prototype.scaleAndAdd=function(n,t){this.x+=n.x*t;this.y+=n.y*t},n.prototype.sub=function(n){return this.x-=n.x,this.y-=n.y,this},n.prototype.dot=function(n){return this.x*n.x+this.y*n.y},n.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},n.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},n.prototype.normalize=function(){var n=this.len();return this.x/=n,this.y/=n,this},n.prototype.distance=function(n){var t=this.x-n.x,i=this.y-n.y;return Math.sqrt(t*t+i*i)},n.prototype.distanceSquare=function(n){var t=this.x-n.x,i=this.y-n.y;return t*t+i*i},n.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},n.prototype.transform=function(n){if(n){var t=this.x,i=this.y;return this.x=n[0]*t+n[2]*i+n[4],this.y=n[1]*t+n[3]*i+n[5],this}},n.prototype.toArray=function(n){return n[0]=this.x,n[1]=this.y,n},n.prototype.fromArray=function(n){this.x=n[0];this.y=n[1]},n.set=function(n,t,i){n.x=t;n.y=i},n.copy=function(n,t){n.x=t.x;n.y=t.y},n.len=function(n){return Math.sqrt(n.x*n.x+n.y*n.y)},n.lenSquare=function(n){return n.x*n.x+n.y*n.y},n.dot=function(n,t){return n.x*t.x+n.y*t.y},n.add=function(n,t,i){n.x=t.x+i.x;n.y=t.y+i.y},n.sub=function(n,t,i){n.x=t.x-i.x;n.y=t.y-i.y},n.scale=function(n,t,i){n.x=t.x*i;n.y=t.y*i},n.scaleAndAdd=function(n,t,i,r){n.x=t.x+i.x*r;n.y=t.y+i.y*r},n.lerp=function(n,t,i,r){var u=1-r;n.x=u*t.x+r*i.x;n.y=u*t.y+r*i.y},n}(),uit=Math.min,fit=Math.max,bc=new g,kc=new g,dc=new g,gc=new g,yb=new g,pb=new g,nt=function(){function n(n,t,i,r){i<0&&(n+=i,i=-i);r<0&&(t+=r,r=-r);this.x=n;this.y=t;this.width=i;this.height=r}return n.prototype.union=function(n){var t=uit(n.x,this.x),i=uit(n.y,this.y);this.width=isFinite(this.x)&&isFinite(this.width)?fit(n.x+n.width,this.x+this.width)-t:n.width;this.height=isFinite(this.y)&&isFinite(this.height)?fit(n.y+n.height,this.y+this.height)-i:n.height;this.x=t;this.y=i},n.prototype.applyTransform=function(t){n.applyTransform(this,this,t)},n.prototype.calculateTransform=function(n){var i=this,r=n.width/i.width,u=n.height/i.height,t=[1,0,0,1,0,0];return ne(t,t,[-i.x,-i.y]),rit(t,t,[r,u]),ne(t,t,[n.x,n.y]),t},n.prototype.intersect=function(t,i){if(!t)return!1;t instanceof n||(t=n.create(t));var r=this,l=r.x,a=r.x+r.width,v=r.y,y=r.y+r.height,p=t.x,w=t.x+t.width,b=t.y,k=t.y+t.height,d=!(a<p||w<l||y<b||k<v);if(i){var h=1/0,c=0,f=Math.abs(a-p),e=Math.abs(w-l),o=Math.abs(y-b),s=Math.abs(k-v),u=Math.min(f,e),nt=Math.min(o,s);a<p||w<l?u>c&&(c=u,f<e?g.set(pb,-f,0):g.set(pb,e,0)):u<h&&(h=u,f<e?g.set(yb,f,0):g.set(yb,-e,0));y<b||k<v?nt>c&&(c=nt,o<s?g.set(pb,0,-o):g.set(pb,0,s)):u<h&&(h=u,o<s?g.set(yb,0,o):g.set(yb,0,-s))}return i&&g.copy(i,d?yb:pb),d},n.prototype.contain=function(n,t){var i=this;return n>=i.x&&n<=i.x+i.width&&t>=i.y&&t<=i.y+i.height},n.prototype.clone=function(){return new n(this.x,this.y,this.width,this.height)},n.prototype.copy=function(t){n.copy(this,t)},n.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},n.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},n.prototype.isZero=function(){return 0===this.width||0===this.height},n.create=function(t){return new n(t.x,t.y,t.width,t.height)},n.copy=function(n,t){n.x=t.x;n.y=t.y;n.width=t.width;n.height=t.height},n.applyTransform=function(t,i,r){var e,o;if(r){if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var u=r[0],f=r[3],s=r[4],h=r[5];return t.x=i.x*u+s,t.y=i.y*f+h,t.width=i.width*u,t.height=i.height*f,t.width<0&&(t.x+=t.width,t.width=-t.width),void(t.height<0&&(t.y+=t.height,t.height=-t.height))}bc.x=dc.x=i.x;bc.y=gc.y=i.y;kc.x=gc.x=i.x+i.width;kc.y=dc.y=i.y+i.height;bc.transform(r);gc.transform(r);kc.transform(r);dc.transform(r);t.x=uit(bc.x,kc.x,dc.x,gc.x);t.y=uit(bc.y,kc.y,dc.y,gc.y);e=fit(bc.x,kc.x,dc.x,gc.x);o=fit(bc.y,kc.y,dc.y,gc.y);t.width=e-t.x;t.height=o-t.y}else t!==i&&n.copy(t,i)},n}(),bsi="silent";var ruu=function(n){function t(){var t=null!==n&&n.apply(this,arguments)||this;return t.handler=null,t}return i(t,n),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(nf),wb=function(n,t){this.x=n;this.y=t},uuu=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],clt=new nt(0,0,0,0),ksi=function(n){function r(t,i,r,u,f){var e=n.call(this)||this;return e._hovered=new wb(0,0),e.storage=t,e.painter=i,e.painterRoot=u,e._pointerSize=f,r=r||new ruu,e.proxy=null,e.setHandlerProxy(r),e._draggingMgr=new bru(e),e}return i(r,n),r.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose();n&&(t(uuu,function(t){n.on&&n.on(t,this[t],this)},this),n.handler=this);this.proxy=n},r.prototype.mousemove=function(n){var u=n.zrX,f=n.zrY,s=gsi(this,u,f),i=this._hovered,t=i.target;t&&!t.__zr&&(t=(i=this.findHover(i.x,i.y)).target);var e=this._hovered=s?new wb(u,f):this.findHover(u,f),r=e.target,o=this.proxy;o.setCursor&&o.setCursor(r?r.cursor:"default");t&&r!==t&&this.dispatchToElement(i,"mouseout",n);this.dispatchToElement(e,"mousemove",n);r&&r!==t&&this.dispatchToElement(e,"mouseover",n)},r.prototype.mouseout=function(n){var t=n.zrEventControl;"only_globalout"!==t&&this.dispatchToElement(this._hovered,"mouseout",n);"no_globalout"!==t&&this.trigger("globalout",{type:"globalout",event:n})},r.prototype.resize=function(){this._hovered=new wb(0,0)},r.prototype.dispatch=function(n,t){var i=this[n];i&&i.call(this,t)},r.prototype.dispose=function(){this.proxy.dispose();this.storage=null;this.proxy=null;this.painter=null},r.prototype.setCursorStyle=function(n){var t=this.proxy;t.setCursor&&t.setCursor(n)},r.prototype.dispatchToElement=function(n,t,i){var r=(n=n||{}).target,f,u;if(!r||!r.silent){for(f="on"+t,u=function(n,t,i){return{type:n,event:i,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:i.zrX,offsetY:i.zrY,gestureEvent:i.gestureEvent,pinchX:i.pinchX,pinchY:i.pinchY,pinchScale:i.pinchScale,wheelDelta:i.zrDelta,zrByTouch:i.zrByTouch,which:i.which,stop:iuu}}(t,n,i);r&&(r[f]&&(u.cancelBubble=!!r[f].call(r,u)),r.trigger(t,u),r=r.__hostTarget?r.__hostTarget:r.parent,!u.cancelBubble););u.cancelBubble||(this.trigger(t,u),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(n){"function"==typeof n[f]&&n[f].call(n,u);n.trigger&&n.trigger(t,u)}))}},r.prototype.findHover=function(n,t,i){var o=this.storage.getDisplayList(),u=new wb(n,t),r,f;if(dsi(o,u,n,t,i),this._pointerSize&&!u.target){for(var s=[],h=this._pointerSize,c=h/2,a=new nt(n-c,t-c,h,h),l=o.length-1;l>=0;l--)r=o[l],r===i||r.ignore||r.ignoreCoarsePointer||r.parent&&r.parent.ignoreCoarsePointer||(clt.copy(r.getBoundingRect()),r.transform&&clt.applyTransform(r.transform),clt.intersect(a)&&s.push(r));if(s.length)for(var v=Math.PI/12,y=2*Math.PI,e=0;e<c;e+=4)for(f=0;f<y;f+=v)if(dsi(s,u,n+e*Math.cos(f),t+e*Math.sin(f),i),u.target)return u}return u},r.prototype.processGesture=function(n,t){var r,i,u,f;this._gestureMgr||(this._gestureMgr=new ysi);r=this._gestureMgr;"start"===t&&r.clear();i=r.recognize(n,this.findHover(n.zrX,n.zrY,null).target,this.proxy.dom);("end"===t&&r.clear(),i)&&(u=i.type,n.gestureEvent=u,f=new wb,f.target=i.target,this.dispatchToElement(f,u,i.event))},r}(nf);t(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(n){ksi.prototype[n]=function(t){var r,i,u=t.zrX,f=t.zrY,e=gsi(this,u,f);if("mouseup"===n&&e||(i=(r=this.findHover(u,f)).target),"mousedown"===n)this._downEl=i,this._downPoint=[t.zrX,t.zrY],this._upEl=i;else if("mouseup"===n)this._upEl=i;else if("click"===n){if(this._downEl!==this._upEl||!this._downPoint||ke(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(r,n,t)}});vlt=!1;var ouu=function(){function n(){this._roots=[];this._displayList=[];this._displayListLen=0;this.displayableSortFunc=ihi}return n.prototype.traverse=function(n,t){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(n,t)},n.prototype.getDisplayList=function(n,t){t=t||!1;var i=this._displayList;return!n&&i.length||this.updateDisplayList(t),i},n.prototype.updateDisplayList=function(n){this._displayListLen=0;for(var i=this._roots,r=this._displayList,t=0,u=i.length;t<u;t++)this._updateAndAddDisplayable(i[t],null,n);r.length=this._displayListLen;eit(r,ihi)},n.prototype._updateAndAddDisplayable=function(n,t,i){var e,u,o,s,f,h,r,c,l,a;if(!n.ignore||i){if(n.beforeUpdate(),n.update(),n.afterUpdate(),e=n.getClipPath(),n.ignoreClip)t=null;else if(e)for(t=t?t.slice():[],u=e,o=n;u;)u.parent=o,u.updateTransform(),t.push(u),o=u,u=u.getClipPath();if(n.childrenRef){for(s=n.childrenRef(),f=0;f<s.length;f++)h=s[f],n.__dirty&&(h.__dirty|=1),this._updateAndAddDisplayable(h,t,i);n.__dirty=0}else r=n,t&&t.length?r.__clipPaths=t:r.__clipPaths&&r.__clipPaths.length>0&&(r.__clipPaths=[]),isNaN(r.z)&&(ylt(),r.z=0),isNaN(r.z2)&&(ylt(),r.z2=0),isNaN(r.zlevel)&&(ylt(),r.zlevel=0),this._displayList[this._displayListLen++]=r;c=n.getDecalElement&&n.getDecalElement();c&&this._updateAndAddDisplayable(c,t,i);l=n.getTextGuideLine();l&&this._updateAndAddDisplayable(l,t,i);a=n.getTextContent();a&&this._updateAndAddDisplayable(a,t,i)}},n.prototype.addRoot=function(n){n.__zr&&n.__zr.storage===this||this._roots.push(n)},n.prototype.delRoot=function(n){var t,r,i;if(n instanceof Array)for(t=0,r=n.length;t<r;t++)this.delRoot(n[t]);else i=tt(this._roots,n),i>=0&&this._roots.splice(i,1)},n.prototype.delAllRoots=function(){this._roots=[];this._displayList=[];this._displayListLen=0},n.prototype.getRoots=function(){return this._roots},n.prototype.dispose=function(){this._displayList=null;this._roots=null},n}(),plt=ft.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(n){return setTimeout(n,16)},bb={linear:function(n){return n},quadraticIn:function(n){return n*n},quadraticOut:function(n){return n*(2-n)},quadraticInOut:function(n){return(n*=2)<1?.5*n*n:-.5*(--n*(n-2)-1)},cubicIn:function(n){return n*n*n},cubicOut:function(n){return--n*n*n+1},cubicInOut:function(n){return(n*=2)<1?.5*n*n*n:.5*((n-=2)*n*n+2)},quarticIn:function(n){return n*n*n*n},quarticOut:function(n){return 1- --n*n*n*n},quarticInOut:function(n){return(n*=2)<1?.5*n*n*n*n:-.5*((n-=2)*n*n*n-2)},quinticIn:function(n){return n*n*n*n*n},quinticOut:function(n){return--n*n*n*n*n+1},quinticInOut:function(n){return(n*=2)<1?.5*n*n*n*n*n:.5*((n-=2)*n*n*n*n+2)},sinusoidalIn:function(n){return 1-Math.cos(n*Math.PI/2)},sinusoidalOut:function(n){return Math.sin(n*Math.PI/2)},sinusoidalInOut:function(n){return.5*(1-Math.cos(Math.PI*n))},exponentialIn:function(n){return 0===n?0:Math.pow(1024,n-1)},exponentialOut:function(n){return 1===n?1:1-Math.pow(2,-10*n)},exponentialInOut:function(n){return 0===n?0:1===n?1:(n*=2)<1?.5*Math.pow(1024,n-1):.5*(2-Math.pow(2,-10*(n-1)))},circularIn:function(n){return 1-Math.sqrt(1-n*n)},circularOut:function(n){return Math.sqrt(1- --n*n)},circularInOut:function(n){return(n*=2)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1)},elasticIn:function(n){var i,t=.1;return 0===n?0:1===n?1:(!t||t<1?(t=1,i=.1):i=.4*Math.asin(1/t)/(2*Math.PI),-t*Math.pow(2,10*(n-=1))*Math.sin((n-i)*2*Math.PI/.4))},elasticOut:function(n){var i,t=.1;return 0===n?0:1===n?1:(!t||t<1?(t=1,i=.1):i=.4*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*n)*Math.sin((n-i)*2*Math.PI/.4)+1)},elasticInOut:function(n){var i,t=.1,r=.4;return 0===n?0:1===n?1:(!t||t<1?(t=1,i=.1):i=r*Math.asin(1/t)/(2*Math.PI),(n*=2)<1?t*Math.pow(2,10*(n-=1))*Math.sin((n-i)*2*Math.PI/r)*-.5:t*Math.pow(2,-10*(n-=1))*Math.sin((n-i)*2*Math.PI/r)*.5+1)},backIn:function(n){var t=1.70158;return n*n*((t+1)*n-t)},backOut:function(n){var t=1.70158;return--n*n*((t+1)*n+t)+1},backInOut:function(n){var t=2.5949095;return(n*=2)<1?n*n*((t+1)*n-t)*.5:.5*((n-=2)*n*((t+1)*n+t)+2)},bounceIn:function(n){return 1-bb.bounceOut(1-n)},bounceOut:function(n){return n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375},bounceInOut:function(n){return n<.5?.5*bb.bounceIn(2*n):.5*bb.bounceOut(2*n-1)+.5}},oit=Math.pow,ih=Math.sqrt,rhi=1e-8,uhi=.0001,fhi=ih(3),sit=1/3,no=gs(),rf=gs(),kv=gs();ahi=/cubic-bezier\(([0-9,\.e ]+)\)/;var cuu=function(){function n(n){this._inited=!1;this._startTime=0;this._pausedTime=0;this._paused=!1;this._life=n.life||1e3;this._delay=n.delay||0;this.loop=n.loop||!1;this.onframe=n.onframe||ei;this.ondestroy=n.ondestroy||ei;this.onrestart=n.onrestart||ei;n.easing&&this.setEasing(n.easing)}return n.prototype.step=function(n,t){var r,e,o;if(this._inited||(this._startTime=n+this._delay,this._inited=!0),!this._paused){var u=this._life,f=n-this._startTime-this._pausedTime,i=f/u;if(i<0&&(i=0),i=Math.min(i,1),r=this.easingFunc,e=r?r(i):i,this.onframe(e),1===i){if(!this.loop)return!0;o=f%u;this._startTime=n-o;this._pausedTime=0;this.onrestart()}return!1}this._pausedTime+=t},n.prototype.pause=function(){this._paused=!0},n.prototype.resume=function(){this._paused=!1},n.prototype.setEasing=function(n){this.easing=n;this.easingFunc=l(n)?n:bb[n]||blt(n)},n}(),vhi=function(n){this.value=n},luu=function(){function n(){this._len=0}return n.prototype.insert=function(n){var t=new vhi(n);return this.insertEntry(t),t},n.prototype.insertEntry=function(n){this.head?(this.tail.next=n,n.prev=this.tail,n.next=null,this.tail=n):this.head=this.tail=n;this._len++},n.prototype.remove=function(n){var t=n.prev,i=n.next;t?t.next=i:this.head=i;i?i.prev=t:this.tail=t;n.next=n.prev=null;this._len--},n.prototype.len=function(){return this._len},n.prototype.clear=function(){this.head=this.tail=null;this._len=0},n}(),db=function(){function n(n){this._list=new luu;this._maxSize=10;this._map={};this._maxSize=n}return n.prototype.put=function(n,t){var u=this._list,f=this._map,o=null,e,i,r;return null==f[n]&&(e=u.len(),i=this._lastRemovedEntry,e>=this._maxSize&&e>0&&(r=u.head,u.remove(r),delete f[r.key],o=r.value,this._lastRemovedEntry=r),i?i.value=t:i=new vhi(t),i.key=n,u.insertEntry(i),f[n]=i),o},n.prototype.get=function(n){var t=this._map[n],i=this._list;if(null!=t)return t!==i.tail&&(i.remove(t),i.insertEntry(t)),t.value},n.prototype.clear=function(){this._list.clear();this._map={}},n.prototype.len=function(){return this._list.len()},n}(),yhi={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};nat=new db(20);nk=null;phi=tk;whi=iat;bhi=Object.freeze({__proto__:null,parse:br,lift:cit,toHex:function(n){var t=br(n);if(t)return(16777216+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)},fastLerp:tk,fastMapToColor:phi,lerp:iat,mapToColor:whi,modifyHSL:gv,modifyAlpha:ik,stringify:ie,lum:rk,random:function(){return ie([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}});uk=Math.round;khi=.0001;dhi={left:"start",right:"end",center:"middle",middle:"middle"};fci=ft.hasGlobalWindow&&l(window.btoa)?function(n){return window.btoa(unescape(encodeURIComponent(n)))}:"undefined"!=typeof Buffer?function(n){return Buffer.from(n).toString("base64")}:function(){return null};vit=Array.prototype.slice;var ok=[0,0,0,0],yuu=function(){function n(n){this.keyframes=[];this.discrete=!1;this._invalid=!1;this._needsSort=!1;this._lastFr=0;this._lastFrP=0;this.propName=n}return n.prototype.isFinished=function(){return this._finished},n.prototype.setFinished=function(){this._finished=!0;this._additiveTrack&&this._additiveTrack.setFinished()},n.prototype.needsAnimate=function(){return this.keyframes.length>=1},n.prototype.getAdditiveTrack=function(){return this._additiveTrack},n.prototype.addKeyframe=function(n,t,i){var h,a,v,e;this._needsSort=!0;var y=this.keyframes,p=y.length,c=!1,u=6,s=t;return ir(t)?(h=function(n){return ir(n&&n[0])?2:1}(t),u=h,(1!==h||ht(t[0]))&&(2!==h||ht(t[0][0]))||(c=!0)):ht(t)&&!yv(t)?u=0:o(t)?isNaN(+t)?(a=br(t),a&&(s=a,u=3)):u=0:eb(t)&&(v=r({},s),v.colorStops=f(t.colorStops,function(n){return{offset:n.offset,color:br(n.color)}}),nci(t)?u=4:tci(t)&&(u=5),s=v),0===p?this.valType=u:u===this.valType&&6!==u||(c=!0),this.discrete=this.discrete||c,e={time:n,value:s,rawValue:t,percent:0},i&&(e.easing=i,e.easingFunc=l(i)?i:bb[i]||blt(i)),y.push(e),e},n.prototype.prepare=function(n,t){var r=this.keyframes,f;this._needsSort&&r.sort(function(n,t){return n.time-t.time});for(var u=this.valType,e=r.length,l=r[e-1],s=this.discrete,a=wit(u),v=oci(u),i=0;i<e;i++){var o=r[i],h=o.value,c=l.value;o.percent=o.time/n;s||(a&&i!==e-1?vuu(h,c,u):v&&auu(h.colorStops,c.colorStops))}if(!s&&5!==u&&t&&this.needsAnimate()&&t.needsAnimate()&&u===t.valType&&!t._finished)for(this._additiveTrack=t,f=r[0].value,i=0;i<e;i++)0===u?r[i].additiveValue=r[i].value-f:3===u?r[i].additiveValue=yit([],r[i].value,f,-1):wit(u)&&(r[i].additiveValue=1===u?yit([],r[i].value,f,-1):eci([],r[i].value,f,-1))},n.prototype.step=function(n,t){var k,r,h,d;if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i,e,u,y=null!=this._additiveTrack,o=y?"additiveValue":"value",l=this.valType,a=this.keyframes,p=a.length,s=this.propName,b=3===l,g=this._lastFr,w=Math.min;if(1===p)e=u=a[0];else{if(t<0)i=0;else if(t<this._lastFrP){for(i=w(g+1,p-1);i>=0&&!(a[i].percent<=t);i--);i=w(i,p-2)}else{for(i=g;i<p&&!(a[i].percent>t);i++);i=w(i-1,p-2)}u=a[i+1];e=a[i]}if(e&&u){if(this._lastFr=i,this._lastFrP=t,k=u.percent-e.percent,r=0===k?1:w((t-e.percent)/k,1),u.easingFunc&&(r=u.easingFunc(r)),h=y?this._additiveValue:b?ok:n[s],!wit(l)&&!b||h||(h=this._additiveValue=[]),this.discrete)n[s]=r<1?e.rawValue:u.rawValue;else if(wit(l))1===l?fat(h,e[o],u[o],r):function(n,t,i,r){for(var f,e=t.length,o=e&&t[0].length,u=0;u<e;u++)for(n[u]||(n[u]=[]),f=0;f<o;f++)n[u][f]=rs(t[u][f],i[u][f],r)}(h,e[o],u[o],r);else if(oci(l)){var v=e[o],c=u[o],nt=4===l;n[s]={type:nt?"linear":"radial",x:rs(v.x,c.x,r),y:rs(v.y,c.y,r),colorStops:f(v.colorStops,function(n,t){var i=c.colorStops[t];return{offset:rs(n.offset,i.offset,r),color:pit(fat([],n.color,i.color,r))}}),global:c.global};nt?(n[s].x2=rs(v.x2,c.x2,r),n[s].y2=rs(v.y2,c.y2,r)):n[s].r=rs(v.r,c.r,r)}else b?(fat(h,e[o],u[o],r),y||(n[s]=pit(h))):(d=rs(e[o],u[o],r),y?this._additiveValue=d:n[s]=d);y&&this._addToTarget(n)}}},n.prototype._addToTarget=function(n){var i=this.valType,t=this.propName,r=this._additiveValue;0===i?n[t]=n[t]+r:3===i?(br(n[t],ok),yit(ok,ok,r,1),n[t]=pit(ok)):1===i?yit(n[t],n[t],r,1):2===i&&eci(n[t],n[t],r,1)},n}(),eat=function(){function n(n,t,i,r){this._tracks={};this._trackKeys=[];this._maxTime=0;this._started=0;this._clip=null;this._target=n;this._loop=t;t&&r?ytt("Can' use additive animation on looped animation."):(this._additiveAnimators=r,this._allowDiscrete=i)}return n.prototype.getMaxTime=function(){return this._maxTime},n.prototype.getDelay=function(){return this._delay},n.prototype.getLoop=function(){return this._loop},n.prototype.getTarget=function(){return this._target},n.prototype.changeTarget=function(n){this._target=n},n.prototype.when=function(n,t,i){return this.whenWithKeys(n,t,et(t),i)},n.prototype.whenWithKeys=function(n,t,i,r){for(var u,e,f,s,c,l,h=this._tracks,o=0;o<i.length;o++){if(u=i[o],e=h[u],!e){if(e=h[u]=new yuu(u),f=void 0,s=this._getAdditiveTrack(u),s?(c=s.keyframes,l=c[c.length-1],f=l&&l.value,3===s.valType&&f&&(f=pit(f))):f=this._target[u],null==f)continue;n>0&&e.addKeyframe(0,ek(f),r);this._trackKeys.push(u)}e.addKeyframe(n,ek(t[u]),r)}return this._maxTime=Math.max(this._maxTime,n),this},n.prototype.pause=function(){this._clip.pause();this._paused=!0},n.prototype.resume=function(){this._clip.resume();this._paused=!1},n.prototype.isPaused=function(){return!!this._paused},n.prototype.duration=function(n){return this._maxTime=n,this._force=!0,this},n.prototype._doneCallback=function(){var n,i,t;if(this._setTracksFinished(),this._clip=null,n=this._doneCbs,n)for(i=n.length,t=0;t<i;t++)n[t].call(this)},n.prototype._abortedCallback=function(){var i,n,t;if(this._setTracksFinished(),i=this.animation,n=this._abortedCbs,i&&i.removeClip(this._clip),this._clip=null,n)for(t=0;t<n.length;t++)n[t].call(this)},n.prototype._setTracksFinished=function(){for(var i=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)i[t[n]].setFinished()},n.prototype._getAdditiveTrack=function(n){var u,i=this._additiveAnimators,t,r;if(i)for(t=0;t<i.length;t++)r=i[t].getTrack(n),r&&(u=r);return u},n.prototype.start=function(n){var e,u;if(!(this._started>0)){this._started=1;for(var t=this,r=[],o=this._maxTime||0,f=0;f<this._trackKeys.length;f++){var s=this._trackKeys[f],i=this._tracks[s],c=this._getAdditiveTrack(s),h=i.keyframes,l=h.length;(i.prepare(o,c),i.needsAnimate())&&(!this._allowDiscrete&&i.discrete?(e=h[l-1],e&&(t._target[i.propName]=e.rawValue),i.setFinished()):r.push(i))}return r.length||this._force?(u=new cuu({life:o,loop:this._loop,delay:this._delay||0,onframe:function(n){var u,e,i,f;if(t._started=2,u=t._additiveAnimators,u){for(e=!1,i=0;i<u.length;i++)if(u[i]._clip){e=!0;break}e||(t._additiveAnimators=null)}for(i=0;i<r.length;i++)r[i].step(t._target,n);if(f=t._onframeCbs,f)for(i=0;i<f.length;i++)f[i](t._target,n)},ondestroy:function(){t._doneCallback()}}),this._clip=u,this.animation&&this.animation.addClip(u),n&&u.setEasing(n)):this._doneCallback(),this}},n.prototype.stop=function(n){if(this._clip){var t=this._clip;n&&t.onframe(1);this._abortedCallback()}},n.prototype.delay=function(n){return this._delay=n,this},n.prototype.during=function(n){return n&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(n)),this},n.prototype.done=function(n){return n&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(n)),this},n.prototype.aborted=function(n){return n&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(n)),this},n.prototype.getClip=function(){return this._clip},n.prototype.getTrack=function(n){return this._tracks[n]},n.prototype.getTracks=function(){var n=this;return f(this._trackKeys,function(t){return n._tracks[t]})},n.prototype.stopTracks=function(n,t){var r,u;if(!n.length||!this._clip)return!0;for(var f=this._tracks,e=this._trackKeys,i=0;i<n.length;i++)r=f[n[i]],r&&!r.isFinished()&&(t?r.step(this._target,1):1===this._started&&r.step(this._target,0),r.setFinished());for(u=!0,i=0;i<e.length;i++)if(!f[e[i]].isFinished()){u=!1;break}return u&&this._abortedCallback(),u},n.prototype.saveTo=function(n,t,i){var r,f,u,e,o;if(n)for(t=t||this._trackKeys,r=0;r<t.length;r++)f=t[r],u=this._tracks[f],u&&!u.isFinished()&&(e=u.keyframes,o=e[i?0:e.length-1],o&&(n[f]=ek(o.rawValue)))},n.prototype.__changeFinalValue=function(n,t){var r,u,i,f,e;for(t=t||et(n),r=0;r<t.length;r++)u=t[r],i=this._tracks[u],i&&(f=i.keyframes,f.length>1&&(e=f.pop(),i.addKeyframe(e.time,n[u]),i.prepare(this._maxTime,i.getAdditiveTrack())))},n}();var sci,hci,puu=function(n){function t(t){var i=n.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,t=t||{},i.stage=t.stage||{},i}return i(t,n),t.prototype.addClip=function(n){n.animation&&this.removeClip(n);this._head?(this._tail.next=n,n.prev=this._tail,n.next=null,this._tail=n):this._head=this._tail=n;n.animation=this},t.prototype.addAnimator=function(n){n.animation=this;var t=n.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(n){if(n.animation){var t=n.prev,i=n.next;t?t.next=i:this._head=i;i?i.prev=t:this._tail=t;n.next=n.prev=n.animation=null}},t.prototype.removeAnimator=function(n){var t=n.getClip();t&&this.removeClip(t);n.animation=null},t.prototype.update=function(n){for(var r,i=ny()-this._pausedTime,u=i-this._time,t=this._head;t;)r=t.next,t.step(i,u)?(t.ondestroy(),this.removeClip(t),t=r):t=r;this._time=i;n||(this.trigger("frame",u),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var n=this;this._running=!0;plt(function t(){n._running&&(plt(t),!n._paused&&n.update())})},t.prototype.start=function(){this._running||(this._time=ny(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=ny(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=ny()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var t,n=this._head;n;)t=n.next,n.prev=n.next=n.animation=null,n=t;this._head=this._tail=null},t.prototype.isFinished=function(){return null==this._head},t.prototype.animate=function(n,t){t=t||{};this.start();var i=new eat(n,t.loop);return this.addAnimator(i),i},t}(nf),oat=ft.domSupported,sat=(hci={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:sci=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:f(sci,function(n){var t=n.replace("mouse","pointer");return hci.hasOwnProperty(t)?t:n})}),wuu=["mousemove","mouseup"],buu=["pointermove","pointerup"],cci=!1;aci=function(n,t){this.stopPropagation=ei;this.stopImmediatePropagation=ei;this.preventDefault=ei;this.type=t.type;this.target=this.currentTarget=n.dom;this.pointerType=t.pointerType;this.clientX=t.clientX;this.clientY=t.clientY};ff={mousedown:function(n){n=tf(this.dom,n);this.__mayPointerCapture=[n.zrX,n.zrY];this.trigger("mousedown",n)},mousemove:function(n){n=tf(this.dom,n);var t=this.__mayPointerCapture;t&&(n.zrX!==t[0]||n.zrY!==t[1])&&this.__togglePointerCapture(!0);this.trigger("mousemove",n)},mouseup:function(n){n=tf(this.dom,n);this.__togglePointerCapture(!1);this.trigger("mouseup",n)},mouseout:function(n){lci(this,(n=tf(this.dom,n)).toElement||n.relatedTarget)||(this.__pointerCapturing&&(n.zrEventControl="no_globalout"),this.trigger("mouseout",n))},wheel:function(n){cci=!0;n=tf(this.dom,n);this.trigger("mousewheel",n)},mousewheel:function(n){cci||(n=tf(this.dom,n),this.trigger("mousewheel",n))},touchstart:function(n){cat(n=tf(this.dom,n));this.__lastTouchMoment=new Date;this.handler.processGesture(n,"start");ff.mousemove.call(this,n);ff.mousedown.call(this,n)},touchmove:function(n){cat(n=tf(this.dom,n));this.handler.processGesture(n,"change");ff.mousemove.call(this,n)},touchend:function(n){cat(n=tf(this.dom,n));this.handler.processGesture(n,"end");ff.mouseup.call(this,n);+new Date-+this.__lastTouchMoment<300&&ff.click.call(this,n)},pointerdown:function(n){ff.mousedown.call(this,n)},pointermove:function(n){hat(n)||ff.mousemove.call(this,n)},pointerup:function(n){ff.mouseup.call(this,n)},pointerout:function(n){hat(n)||ff.mouseout.call(this,n)}};t(["click","dblclick","contextmenu"],function(n){ff[n]=function(t){t=tf(this.dom,t);this.trigger(n,t)}});bit={pointermove:function(n){hat(n)||bit.mousemove.call(this,n)},pointerup:function(n){bit.mouseup.call(this,n)},mousemove:function(n){this.trigger("mousemove",n)},mouseup:function(n){var t=this.__pointerCapturing;this.__togglePointerCapture(!1);this.trigger("mouseup",n);t&&(n.zrEventControl="only_globalout",this.trigger("mouseout",n))}};var vci=function(n,t){this.mounted={};this.listenerOpts={};this.touching=!1;this.domTarget=n;this.domHandlers=t},guu=function(n){function t(t,i){var r=n.call(this)||this;return r.__pointerCapturing=!1,r.dom=t,r.painterRoot=i,r._localHandlerScope=new vci(t,ff),oat&&(r._globalHandlerScope=new vci(document,bit)),kuu(r,r._localHandlerScope),r}return i(t,n),t.prototype.dispose=function(){lat(this._localHandlerScope);oat&&lat(this._globalHandlerScope)},t.prototype.setCursor=function(n){this.dom.style&&(this.dom.style.cursor=n||"default")},t.prototype.__togglePointerCapture=function(n){if(this.__mayPointerCapture=null,oat&&+this.__pointerCapturing^+n){this.__pointerCapturing=n;var t=this._globalHandlerScope;n?duu(this,t):lat(t)}},t}(nf),yci=1;ft.hasGlobalWindow&&(yci=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var dit=yci,aat="#333",vat="#ccc",pci=vb,nfu=5e-5;var il=[],ty=[],yat=[1,0,0,1,0,0],pat=Math.abs,us=function(){function n(){}return n.prototype.getLocalTransform=function(t){return n.getLocalTransform(this,t)},n.prototype.setPosition=function(n){this.x=n[0];this.y=n[1]},n.prototype.setScale=function(n){this.scaleX=n[0];this.scaleY=n[1]},n.prototype.setSkew=function(n){this.skewX=n[0];this.skewY=n[1]},n.prototype.setOrigin=function(n){this.originX=n[0];this.originY=n[1]},n.prototype.needLocalTransform=function(){return tl(this.rotation)||tl(this.x)||tl(this.y)||tl(this.scaleX-1)||tl(this.scaleY-1)||tl(this.skewX)||tl(this.skewY)},n.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,i=this.needLocalTransform(),n=this.transform;i||t?(n=n||[1,0,0,1,0,0],i?this.getLocalTransform(n):pci(n),t&&(i?ge(n,t,n):iit(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(pci(n),this.invTransform=null)},n.prototype._resolveGlobalScaleRatio=function(n){var t=this.globalScaleRatio;if(null!=t&&1!==t){this.getGlobalScale(il);var i=il[0]<0?-1:1,r=il[1]<0?-1:1,u=((il[0]-i)*t+i)/il[0]||0,f=((il[1]-r)*t+r)/il[1]||0;n[0]*=u;n[1]*=u;n[2]*=f;n[3]*=f}this.invTransform=this.invTransform||[1,0,0,1,0,0];wc(this.invTransform,n)},n.prototype.getComputedTransform=function(){for(var n=this,t=[];n;)t.push(n),n=n.parent;for(;n=t.pop();)n.updateTransform();return this.transform},n.prototype.setLocalTransform=function(n){if(n){var t=n[0]*n[0]+n[1]*n[1],i=n[2]*n[2]+n[3]*n[3],r=Math.atan2(n[1],n[0]),u=Math.PI/2+r-Math.atan2(n[3],n[2]);i=Math.sqrt(i)*Math.cos(u);t=Math.sqrt(t);this.skewX=u;this.skewY=0;this.rotation=-r;this.x=+n[4];this.y=+n[5];this.scaleX=t;this.scaleY=i;this.originX=0;this.originY=0}},n.prototype.decomposeTransform=function(){var t,n,i,r;this.transform&&(t=this.parent,n=this.transform,t&&t.transform&&(ge(ty,t.invTransform,n),n=ty),i=this.originX,r=this.originY,(i||r)&&(yat[4]=i,yat[5]=r,ge(ty,n,yat),ty[4]-=i,ty[5]-=r,n=ty),this.setLocalTransform(n))},n.prototype.getGlobalScale=function(n){var t=this.transform;return n=n||[],t?(n[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),n[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(n[0]=-n[0]),t[3]<0&&(n[1]=-n[1]),n):(n[0]=1,n[1]=1,n)},n.prototype.transformCoordToLocal=function(n,t){var i=[n,t],r=this.invTransform;return r&&nr(i,i,r),i},n.prototype.transformCoordToGlobal=function(n,t){var i=[n,t],r=this.transform;return r&&nr(i,i,r),i},n.prototype.getLineScale=function(){var n=this.transform;return n&&pat(n[0]-1)>1e-10&&pat(n[3]-1)>1e-10?Math.sqrt(pat(n[0]*n[3]-n[2]*n[1])):1},n.prototype.copyTransform=function(n){wci(this,n)},n.getLocalTransform=function(n,t){var e,o;t=t||[];var u=n.originX||0,f=n.originY||0,i=n.scaleX,r=n.scaleY,s=n.anchorX,h=n.anchorY,c=n.rotation||0,v=n.x,y=n.y,l=n.skewX?Math.tan(n.skewX):0,a=n.skewY?Math.tan(-n.skewY):0;return u||f||s||h?(e=u+s,o=f+h,t[4]=-e*i-l*o*r,t[5]=-o*r-a*e*i):t[4]=t[5]=0,t[0]=i,t[3]=r,t[1]=a*i,t[2]=l*r,c&&th(t,t,c),t[4]+=u+v,t[5]+=f+y,t},n.initDefaultProps=function(){var t=n.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1;t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),n}(),to=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];wat={};var bat="__zr_normal__",kat=to.concat(["ignore"]),tfu=du(to,function(n,t){return n[t]=!0,n},{ignore:!1}),ry={},ifu=new nt(0,0,0,0),trt=function(){function n(n){this.id=bct();this.animators=[];this.currentStates=[];this.states={};this._init(n)}return n.prototype._init=function(n){this.attr(n)},n.prototype.drift=function(n,t){switch(this.draggable){case"horizontal":t=0;break;case"vertical":n=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]);i[4]+=n;i[5]+=t;this.decomposeTransform();this.markRedraw()},n.prototype.beforeUpdate=function(){},n.prototype.afterUpdate=function(){},n.prototype.update=function(){this.updateTransform();this.__dirty&&this.updateInnerText()},n.prototype.updateInnerText=function(n){var o=this._textContent,w,u,h,l,a,s;if(o&&(!o.ignore||n)){this.textConfig||(this.textConfig={});var t=this.textConfig,c=t.local,i=o.innerTransformable,y=void 0,p=void 0,b=!1;i.parent=c?this:null;w=!1;(i.copyTransform(o),null!=t.position)&&(u=ifu,t.layoutRect?u.copy(t.layoutRect):u.copy(this.getBoundingRect()),c||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(ry,t,u):nrt(ry,t,u),i.x=ry.x,i.y=ry.y,y=ry.align,p=ry.verticalAlign,h=t.origin,h&&null!=t.rotation&&(l=void 0,a=void 0,"center"===h?(l=.5*u.width,a=.5*u.height):(l=re(h[0],u.width),a=re(h[1],u.height)),w=!0,i.originX=-i.x+l+(c?0:u.x),i.originY=-i.y+a+(c?0:u.y)));null!=t.rotation&&(i.rotation=t.rotation);s=t.offset;s&&(i.x+=s[0],i.y+=s[1],w||(i.originX=-s[0],i.originY=-s[1]));var k=null==t.inside?"string"==typeof t.position&&t.position.indexOf("inside")>=0:t.inside,f=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),r=void 0,e=void 0,v=void 0;k&&this.canBeInsideText()?(r=t.insideFill,e=t.insideStroke,null!=r&&"auto"!==r||(r=this.getInsideTextFill()),null!=e&&"auto"!==e||(e=this.getInsideTextStroke(r),v=!0)):(r=t.outsideFill,e=t.outsideStroke,null!=r&&"auto"!==r||(r=this.getOutsideFill()),null!=e&&"auto"!==e||(e=this.getOutsideStroke(r),v=!0));(r=r||"#000")===f.fill&&e===f.stroke&&v===f.autoStroke&&y===f.align&&p===f.verticalAlign||(b=!0,f.fill=r,f.stroke=e,f.autoStroke=v,f.align=y,f.verticalAlign=p,o.setDefaultTextStyle(f));o.__dirty|=1;b&&o.dirtyStyle(!0)}},n.prototype.canBeInsideText=function(){return!0},n.prototype.getInsideTextFill=function(){return"#fff"},n.prototype.getInsideTextStroke=function(){return"#000"},n.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?vat:aat},n.prototype.getOutsideStroke=function(){var i=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof i&&br(i);n||(n=[255,255,255,1]);for(var r=n[3],u=this.__zr.isDarkMode(),t=0;t<3;t++)n[t]=n[t]*r+(u?0:255)*(1-r);return n[3]=1,ie(n,"rgba")},n.prototype.traverse=function(){},n.prototype.attrKV=function(n,t){"textConfig"===n?this.setTextConfig(t):"textContent"===n?this.setTextContent(t):"clipPath"===n?this.setClipPath(t):"extra"===n?(this.extra=this.extra||{},r(this.extra,t)):this[n]=t},n.prototype.hide=function(){this.ignore=!0;this.markRedraw()},n.prototype.show=function(){this.ignore=!1;this.markRedraw()},n.prototype.attr=function(n,t){var r,i,u;if("string"==typeof n)this.attrKV(n,t);else if(v(n))for(r=et(n),i=0;i<r.length;i++)u=r[i],this.attrKV(u,n[u]);return this.markRedraw(),this},n.prototype.saveCurrentToNormalState=function(n){var r,i,t,u,f,e;for(this._innerSaveToNormal(n),r=this._normalState,i=0;i<this.animators.length;i++)t=this.animators[i],u=t.__fromStateTransition,t.getLoop()||u&&u!==bat||(f=t.targetName,e=f?r[f]:r,t.saveTo(e))},n.prototype._innerSaveToNormal=function(n){var t=this._normalState;t||(t=this._normalState={});n.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig);this._savePrimaryToNormal(n,t,kat)},n.prototype._savePrimaryToNormal=function(n,t,i){for(var r,u=0;u<i.length;u++)r=i[u],null==n[r]||r in t||(t[r]=this[r])},n.prototype.hasState=function(){return this.currentStates.length>0},n.prototype.getState=function(n){return this.states[n]},n.prototype.ensureState=function(n){var t=this.states;return t[n]||(t[n]={}),t[n]},n.prototype.clearStates=function(n){this.useState(bat,!1,n)},n.prototype.useState=function(n,t,i,r){var f=n===bat,s,o,u,e,h,c;if((this.hasState()||!f)&&(s=this.currentStates,o=this.stateTransition,!(tt(s,n)>=0)||!t&&1!==s.length)){if(this.stateProxy&&!f&&(u=this.stateProxy(n)),u||(u=this.states&&this.states[n]),u||f)return f||this.saveCurrentToNormalState(u),e=!!(u&&u.hoverLayer||r),e&&this._toggleHoverLayerFlag(!0),this._applyStateObj(n,u,this._normalState,t,!i&&!this.__inHover&&o&&o.duration>0,o),h=this._textContent,c=this._textGuide,h&&h.useState(n,t,i,e),c&&c.useState(n,t,i,e),f?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(n):this.currentStates=[n],this._updateAnimationTargets(),this.markRedraw(),!e&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),u;ytt("State "+n+" not exists.")}},n.prototype.useStates=function(n,t,i){var r,c,u,l,f,a,o,v,y;if(n.length){var s=[],p=this.currentStates,e=n.length,h=e===p.length;if(h)for(r=0;r<e;r++)if(n[r]!==p[r]){h=!1;break}if(h)return;for(r=0;r<e;r++)c=n[r],u=void 0,this.stateProxy&&(u=this.stateProxy(c,n)),u||(u=this.states[c]),u&&s.push(u);l=s[e-1];f=!!(l&&l.hoverLayer||i);f&&this._toggleHoverLayerFlag(!0);a=this._mergeStates(s);o=this.stateTransition;this.saveCurrentToNormalState(a);this._applyStateObj(n.join(","),a,this._normalState,!1,!t&&!this.__inHover&&o&&o.duration>0,o);v=this._textContent;y=this._textGuide;v&&v.useStates(n,t,f);y&&y.useStates(n,t,f);this._updateAnimationTargets();this.currentStates=n.slice();this.markRedraw();!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}else this.clearStates()},n.prototype._updateAnimationTargets=function(){for(var t,n=0;n<this.animators.length;n++)t=this.animators[n],t.targetName&&t.changeTarget(this[t.targetName])},n.prototype.removeState=function(n){var i=tt(this.currentStates,n),t;i>=0&&(t=this.currentStates.slice(),t.splice(i,1),this.useStates(t))},n.prototype.replaceState=function(n,t,i){var r=this.currentStates.slice(),u=tt(r,n),f=tt(r,t)>=0;u>=0?f?r.splice(u,1):r[u]=t:i&&!f&&r.push(t);this.useStates(r)},n.prototype.toggleState=function(n,t){t?this.useState(n,!0):this.removeState(n)},n.prototype._mergeStates=function(n){for(var t,f,i={},u=0;u<n.length;u++)f=n[u],r(i,f),f.textConfig&&r(t=t||{},f.textConfig);return t&&(i.textConfig=t),i},n.prototype._applyStateObj=function(n,t,i,u,f,e){var y=!(t&&u),o,a,h,v;t&&t.textConfig?(this.textConfig=r({},u?this.textConfig:i.textConfig),r(this.textConfig,t.textConfig)):y&&i.textConfig&&(this.textConfig=i.textConfig);for(var c={},l=!1,s=0;s<kat.length;s++)o=kat[s],a=f&&tfu[o],t&&null!=t[o]?a?(l=!0,c[o]=t[o]):this[o]=t[o]:y&&null!=i[o]&&(a?(l=!0,c[o]=i[o]):this[o]=i[o]);if(!f)for(s=0;s<this.animators.length;s++)h=this.animators[s],v=h.targetName,h.getLoop()||h.__changeFinalValue(v?(t||i)[v]:t||i);l&&this._transitionState(n,c,e)},n.prototype._attachComponent=function(n){if((!n.__zr||n.__hostTarget)&&n!==this){var t=this.__zr;t&&n.addSelfToZr(t);n.__zr=t;n.__hostTarget=this}},n.prototype._detachComponent=function(n){n.__zr&&n.removeSelfFromZr(n.__zr);n.__zr=null;n.__hostTarget=null},n.prototype.getClipPath=function(){return this._clipPath},n.prototype.setClipPath=function(n){this._clipPath&&this._clipPath!==n&&this.removeClipPath();this._attachComponent(n);this._clipPath=n;this.markRedraw()},n.prototype.removeClipPath=function(){var n=this._clipPath;n&&(this._detachComponent(n),this._clipPath=null,this.markRedraw())},n.prototype.getTextContent=function(){return this._textContent},n.prototype.setTextContent=function(n){var t=this._textContent;t!==n&&(t&&t!==n&&this.removeTextContent(),n.innerTransformable=new us,this._attachComponent(n),this._textContent=n,this.markRedraw())},n.prototype.setTextConfig=function(n){this.textConfig||(this.textConfig={});r(this.textConfig,n);this.markRedraw()},n.prototype.removeTextConfig=function(){this.textConfig=null;this.markRedraw()},n.prototype.removeTextContent=function(){var n=this._textContent;n&&(n.innerTransformable=null,this._detachComponent(n),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},n.prototype.getTextGuideLine=function(){return this._textGuide},n.prototype.setTextGuideLine=function(n){this._textGuide&&this._textGuide!==n&&this.removeTextGuideLine();this._attachComponent(n);this._textGuide=n;this.markRedraw()},n.prototype.removeTextGuideLine=function(){var n=this._textGuide;n&&(this._detachComponent(n),this._textGuide=null,this.markRedraw())},n.prototype.markRedraw=function(){this.__dirty|=1;var n=this.__zr;n&&(this.__inHover?n.refreshHover():n.refresh());this.__hostTarget&&this.__hostTarget.markRedraw()},n.prototype.dirty=function(){this.markRedraw()},n.prototype._toggleHoverLayerFlag=function(n){this.__inHover=n;var t=this._textContent,i=this._textGuide;t&&(t.__inHover=n);i&&(i.__inHover=n)},n.prototype.addSelfToZr=function(n){var t,i;if(this.__zr!==n){if(this.__zr=n,t=this.animators,t)for(i=0;i<t.length;i++)n.animation.addAnimator(t[i]);this._clipPath&&this._clipPath.addSelfToZr(n);this._textContent&&this._textContent.addSelfToZr(n);this._textGuide&&this._textGuide.addSelfToZr(n)}},n.prototype.removeSelfFromZr=function(n){var t,i;if(this.__zr){if(this.__zr=null,t=this.animators,t)for(i=0;i<t.length;i++)n.animation.removeAnimator(t[i]);this._clipPath&&this._clipPath.removeSelfFromZr(n);this._textContent&&this._textContent.removeSelfFromZr(n);this._textGuide&&this._textGuide.removeSelfFromZr(n)}},n.prototype.animate=function(n,t,i){var u=n?this[n]:this,r=new eat(u,t,i);return n&&(r.targetName=n),this.addAnimator(r,n),r},n.prototype.addAnimator=function(n,t){var i=this.__zr,r=this;n.during(function(){r.updateDuringAnimation(t)}).done(function(){var t=r.animators,i=tt(t,n);i>=0&&t.splice(i,1)});this.animators.push(n);i&&i.animation.addAnimator(n);i&&i.wakeUp()},n.prototype.updateDuringAnimation=function(){this.markRedraw()},n.prototype.stopAnimation=function(n,t){for(var i,u=this.animators,e=u.length,f=[],r=0;r<e;r++)i=u[r],n&&n!==i.scope?f.push(i):i.stop(t);return this.animators=f,this},n.prototype.animateTo=function(n,t,i){dat(this,n,t,i)},n.prototype.animateFrom=function(n,t,i){dat(this,n,t,i,!0)},n.prototype._transitionState=function(n,t,i,r){for(var f=dat(this,t,i,r),u=0;u<f.length;u++)f[u].__fromStateTransition=n},n.prototype.getBoundingRect=function(){return null},n.prototype.getPaintRect=function(){return null},n.initDefaultProps=function(){function i(n,i,r,u){function f(n,t){Object.defineProperty(t,0,{get:function(){return n[r]},set:function(t){n[r]=t}});Object.defineProperty(t,1,{get:function(){return n[u]},set:function(t){n[u]=t}})}Object.defineProperty(t,n,{get:function(){return this[i]||f(this,this[i]=[]),this[i]},set:function(n){this[r]=n[0];this[u]=n[1];this[i]=n;f(this,n)}})}var t=n.prototype;t.type="element";t.name="";t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1;t.__dirty=1;Object.defineProperty&&(i("position","_legacyPos","x","y"),i("scale","_legacyScale","scaleX","scaleY"),i("origin","_legacyOrigin","originX","originY"))}(),n}();fi(trt,nf);fi(trt,us);p=function(n){function t(t){var i=n.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(t),i}return i(t,n),t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(n){return this._children[n]},t.prototype.childOfName=function(n){for(var i=this._children,t=0;t<i.length;t++)if(i[t].name===n)return i[t]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(n){return n&&n!==this&&n.parent!==this&&(this._children.push(n),this._doAdd(n)),this},t.prototype.addBefore=function(n,t){if(n&&n!==this&&n.parent!==this&&t&&t.parent===this){var i=this._children,r=i.indexOf(t);r>=0&&(i.splice(r,0,n),this._doAdd(n))}return this},t.prototype.replace=function(n,t){var i=tt(this._children,n);return i>=0&&this.replaceAt(t,i),this},t.prototype.replaceAt=function(n,t){var u=this._children,i=u[t],r;return n&&n!==this&&n.parent!==this&&n!==i&&(u[t]=n,i.parent=null,r=this.__zr,r&&i.removeSelfFromZr(r),this._doAdd(n)),this},t.prototype._doAdd=function(n){n.parent&&n.parent.remove(n);n.parent=this;var t=this.__zr;t&&t!==n.__zr&&n.addSelfToZr(t);t&&t.refresh()},t.prototype.remove=function(n){var t=this.__zr,i=this._children,r=tt(i,n);return r<0||(i.splice(r,1),n.parent=null,t&&n.removeSelfFromZr(t),t&&t.refresh()),this},t.prototype.removeAll=function(){for(var i,n=this._children,r=this.__zr,t=0;t<n.length;t++)i=n[t],r&&i.removeSelfFromZr(r),i.parent=null;return n.length=0,this},t.prototype.eachChild=function(n,t){for(var u,r=this._children,i=0;i<r.length;i++)u=r[i],n.call(t,u,i);return this},t.prototype.traverse=function(n,t){for(var r,u,i=0;i<this._children.length;i++)r=this._children[i],u=n.call(t,r),r.isGroup&&!u&&r.traverse(n,t);return this},t.prototype.addSelfToZr=function(t){n.prototype.addSelfToZr.call(this,t);for(var i=0;i<this._children.length;i++)this._children[i].addSelfToZr(t)},t.prototype.removeSelfFromZr=function(t){n.prototype.removeSelfFromZr.call(this,t);for(var i=0;i<this._children.length;i++)this._children[i].removeSelfFromZr(t)},t.prototype.getBoundingRect=function(n){for(var i,u,e,r=new nt(0,0,0,0),o=n||this._children,s=[],t=null,f=0;f<o.length;f++)i=o[f],i.ignore||i.invisible||(u=i.getBoundingRect(),e=i.getLocalTransform(s),e?(nt.applyTransform(r,u,e),(t=t||r.clone()).union(r)):(t=t||u.clone()).union(u));return t||r},t}(trt);p.prototype.type="group";var irt={},rl={},ufu=function(){function n(n,t,i){var c=this,u,f,r,e,s,h,o;this._sleepAfterStill=10;this._stillFrameAccum=0;this._needsRefresh=!0;this._needsRefreshHover=!0;this._darkMode=!1;i=i||{};this.dom=t;this.id=n;u=new ouu;f=i.renderer||"canvas";irt[f]||(f=et(irt)[0]);i.useDirtyRect=null!=i.useDirtyRect&&i.useDirtyRect;r=new irt[f](t,u,i,n);e=i.ssr||r.ssrOnly;this.storage=u;this.painter=r;h=ft.node||ft.worker||e?null:new guu(r.getViewportRoot(),r.root);o=i.useCoarsePointer;(null==o||"auto"===o?ft.touchEventsSupported:!!o)&&(s=d(i.pointerSize,44));this.handler=new ksi(u,r,h,r.root,s);this.animation=new puu({stage:{update:e?null:function(){return c._flush(!0)}}});e||this.animation.start()}return n.prototype.add=function(n){n&&(this.storage.addRoot(n),n.addSelfToZr(this),this.refresh())},n.prototype.remove=function(n){n&&(this.storage.delRoot(n),n.removeSelfFromZr(this),this.refresh())},n.prototype.configLayer=function(n,t){this.painter.configLayer&&this.painter.configLayer(n,t);this.refresh()},n.prototype.setBackgroundColor=function(n){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(n);this.refresh();this._backgroundColor=n;this._darkMode=function(n){if(!n)return!1;if("string"==typeof n)return rk(n,1)<.4;if(n.colorStops){for(var i=n.colorStops,r=0,u=i.length,t=0;t<u;t++)r+=rk(i[t].color,1);return(r/=u)<.4}return!1}(n)},n.prototype.getBackgroundColor=function(){return this._backgroundColor},n.prototype.setDarkMode=function(n){this._darkMode=n},n.prototype.isDarkMode=function(){return this._darkMode},n.prototype.refreshImmediately=function(n){n||this.animation.update(!0);this._needsRefresh=!1;this.painter.refresh();this._needsRefresh=!1},n.prototype.refresh=function(){this._needsRefresh=!0;this.animation.start()},n.prototype.flush=function(){this._flush(!1)},n.prototype._flush=function(n){var t,r=ny(),i;this._needsRefresh&&(t=!0,this.refreshImmediately(n));this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());i=ny();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-r})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},n.prototype.setSleepAfterStill=function(n){this._sleepAfterStill=n},n.prototype.wakeUp=function(){this.animation.start();this._stillFrameAccum=0},n.prototype.refreshHover=function(){this._needsRefreshHover=!0},n.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1;this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},n.prototype.resize=function(n){n=n||{};this.painter.resize(n.width,n.height);this.handler.resize()},n.prototype.clearAnimation=function(){this.animation.clear()},n.prototype.getWidth=function(){return this.painter.getWidth()},n.prototype.getHeight=function(){return this.painter.getHeight()},n.prototype.setCursorStyle=function(n){this.handler.setCursorStyle(n)},n.prototype.findHover=function(n,t){return this.handler.findHover(n,t)},n.prototype.on=function(n,t,i){return this.handler.on(n,t,i),this},n.prototype.off=function(n,t){this.handler.off(n,t)},n.prototype.trigger=function(n,t){this.handler.trigger(n,t)},n.prototype.clear=function(){for(var t=this.storage.getRoots(),n=0;n<t.length;n++)t[n]instanceof p&&t[n].removeSelfFromZr(this);this.storage.delAllRoots();this.painter.clear()},n.prototype.dispose=function(){var n;this.animation.stop();this.clear();this.storage.dispose();this.painter.dispose();this.handler.dispose();this.animation=this.storage=this.painter=this.handler=null;n=this.id;delete rl[n]},n}();gci=Object.freeze({__proto__:null,init:nvt,dispose:function(n){n.dispose()},disposeAll:function(){for(var n in rl)rl.hasOwnProperty(n)&&rl[n].dispose();rl={}},getInstance:function(n){return rl[n]},registerPainter:dci,version:"5.4.4"});nli=.0001;rrt=9007199254740991;rli=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;"undefined"!=typeof console&&console.warn&&console.log;evt="series\0";ovt="\0_ec_\0";svt=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];ali=fli();oi={useDefault:!0,enableAll:!1,enableNone:!1};vli={useDefault:!1,enableAll:!0,enableNone:!0};oh="___EC__COMPONENT__CONTAINER___";avt="___EC__EXTENDED_CLASS___";bli=Math.round(10*Math.random());var hfu=el([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),cfu=function(){function n(){}return n.prototype.getAreaStyle=function(n,t){return hfu(this,n,t)},n}(),yvt=new db(50);srt=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;var vfu=function(){},tai=function(n){this.tokens=[];n&&(this.tokens=n)},yfu=function(){this.width=0;this.height=0;this.contentWidth=0;this.contentHeight=0;this.outerWidth=0;this.outerHeight=0;this.lines=[]};iai=du(",&?/;] ".split(""),function(n,t){return n[t]=!0,n},{});var bvt="__zr_style_"+Math.round(10*Math.random()),ol={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},hrt={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ol[bvt]=!0;var uai=["z","z2","invisible"],wfu=["invisible"],ef=function(n){function t(t){return n.call(this,t)||this}var u;return i(t,n),t.prototype._init=function(t){for(var i,u=et(t),r=0;r<u.length;r++)i=u[r],"style"===i?this.useStyle(t[i]):n.prototype.attrKV.call(this,i,t[i]);this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(n,t,i,r){var e=this.transform,f,u;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&function(n,t,i){return kvt.copy(n.getBoundingRect()),n.transform&&kvt.applyTransform(n.transform),dvt.width=t,dvt.height=i,!kvt.intersect(dvt)}(this,n,t)||e&&!e[0]&&!e[3])return!1;if(i&&this.__clipPaths)for(f=0;f<this.__clipPaths.length;++f)if(this.__clipPaths[f].isZeroArea())return!1;if(r&&this.parent)for(u=this.parent;u;){if(u.ignore)return!1;u=u.parent}return!0},t.prototype.contain=function(n,t){return this.rectContain(n,t)},t.prototype.traverse=function(n,t){n.call(t,this)},t.prototype.rectContain=function(n,t){var i=this.transformCoordToLocal(n,t);return this.getBoundingRect().contain(i[0],i[1])},t.prototype.getPaintRect=function(){var n=this._paintRect,i;if(!this._paintRect||this.__dirty){var e=this.transform,o=this.getBoundingRect(),r=this.style,t=r.shadowBlur||0,u=r.shadowOffsetX||0,f=r.shadowOffsetY||0;n=this._paintRect||(this._paintRect=new nt(0,0,0,0));e?nt.applyTransform(n,o,e):n.copy(o);(t||u||f)&&(n.width+=2*t+Math.abs(u),n.height+=2*t+Math.abs(f),n.x=Math.min(n.x,n.x+u-t),n.y=Math.min(n.y,n.y+f-t));i=this.dirtyRectTolerance;n.isZero()||(n.x=Math.floor(n.x-i),n.y=Math.floor(n.y-i),n.width=Math.ceil(n.width+1+2*i),n.height=Math.ceil(n.height+1+2*i))}return n},t.prototype.setPrevPaintRect=function(n){n?(this._prevPaintRect=this._prevPaintRect||new nt(0,0,0,0),this._prevPaintRect.copy(n)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(n){return this.animate("style",n)},t.prototype.updateDuringAnimation=function(n){"style"===n?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(t,i){"style"!==t?n.prototype.attrKV.call(this,t,i):this.style?this.setStyle(i):this.useStyle(i)},t.prototype.setStyle=function(n,t){return"string"==typeof n?this.style[n]=t:r(this.style,n),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(n){n||this.markRedraw();this.__dirty|=2;this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(2&this.__dirty)},t.prototype.styleUpdated=function(){this.__dirty&=-3},t.prototype.createStyle=function(n){return hb(ol,n)},t.prototype.useStyle=function(n){n[bvt]||(n=this.createStyle(n));this.__inHover?this.__hoverStyle=n:this.style=n;this.dirtyStyle()},t.prototype.isStyleObject=function(n){return n[bvt]},t.prototype._innerSaveToNormal=function(t){n.prototype._innerSaveToNormal.call(this,t);var i=this._normalState;t.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style));this._savePrimaryToNormal(t,i,uai)},t.prototype._applyStateObj=function(t,i,r,u,f,e){var s,c,l,a,h,v,o,y;if(n.prototype._applyStateObj.call(this,t,i,r,u,f,e),c=!(i&&u),i&&i.style?f?u?s=i.style:(s=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(s,i.style)):(s=this._mergeStyle(this.createStyle(),u?this.style:r.style),this._mergeStyle(s,i.style)):c&&(s=r.style),s)if(f){if(l=this.style,this.style=this.createStyle(c?{}:l),c)for(a=et(l),h=0;h<a.length;h++)(o=a[h])in s&&(s[o]=s[o],this.style[o]=l[o]);for(v=et(s),h=0;h<v.length;h++)o=v[h],this.style[o]=this.style[o];this._transitionState(t,{style:s},e,this.getAnimationStyleProps())}else this.useStyle(s);for(y=this.__inHover?wfu:uai,h=0;h<y.length;h++)o=y[h],i&&null!=i[o]?this[o]=i[o]:c&&null!=r[o]&&(this[o]=r[o])},t.prototype._mergeStates=function(t){for(var i,f,u=n.prototype._mergeStates.call(this,t),r=0;r<t.length;r++)f=t[r],f.style&&(i=i||{},this._mergeStyle(i,f.style));return i&&(u.style=i),u},t.prototype._mergeStyle=function(n,t){return r(n,t),n},t.prototype.getAnimationStyleProps=function(){return hrt},t.initDefaultProps=((u=t.prototype).type="displayable",u.invisible=!1,u.z=0,u.z2=0,u.zlevel=0,u.culling=!1,u.cursor="pointer",u.rectHover=!1,u.incremental=!1,u._rect=null,u.dirtyRectTolerance=0,void(u.__dirty=3)),t}(trt),kvt=new nt(0,0,0,0),dvt=new nt(0,0,0,0),fu=Math.min,eu=Math.max,gvt=Math.sin,nyt=Math.cos,sl=2*Math.PI,crt=gs(),lrt=gs(),art=gs();tyt=[];iyt=[];var dt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},hl=[],cl=[],uo=[],sh=[],fo=[],eo=[],ryt=Math.min,uyt=Math.max,ll=Math.cos,al=Math.sin,fs=Math.abs,fyt=Math.PI,hh=2*fyt,eyt="undefined"!=typeof Float32Array,pk=[];fe=function(){function n(n){this.dpr=1;this._xi=0;this._yi=0;this._x0=0;this._y0=0;this._len=0;n&&(this._saveData=!1);this._saveData&&(this.data=[])}return n.prototype.increaseVersion=function(){this._version++},n.prototype.getVersion=function(){return this._version},n.prototype.setScale=function(n,t,i){(i=i||0)>0&&(this._ux=fs(i/dit/n)||0,this._uy=fs(i/dit/t)||0)},n.prototype.setDPR=function(n){this.dpr=n},n.prototype.setContext=function(n){this._ctx=n},n.prototype.getContext=function(){return this._ctx},n.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},n.prototype.reset=function(){this._saveData&&(this._len=0);this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0);this._version++},n.prototype.moveTo=function(n,t){return this._drawPendingPt(),this.addData(dt.M,n,t),this._ctx&&this._ctx.moveTo(n,t),this._x0=n,this._y0=t,this._xi=n,this._yi=t,this},n.prototype.lineTo=function(n,t){var i=fs(n-this._xi),r=fs(t-this._yi),f=i>this._ux||r>this._uy,u;return(this.addData(dt.L,n,t),this._ctx&&f&&this._ctx.lineTo(n,t),f)?(this._xi=n,this._yi=t,this._pendingPtDist=0):(u=i*i+r*r,u>this._pendingPtDist&&(this._pendingPtX=n,this._pendingPtY=t,this._pendingPtDist=u)),this},n.prototype.bezierCurveTo=function(n,t,i,r,u,f){return this._drawPendingPt(),this.addData(dt.C,n,t,i,r,u,f),this._ctx&&this._ctx.bezierCurveTo(n,t,i,r,u,f),this._xi=u,this._yi=f,this},n.prototype.quadraticCurveTo=function(n,t,i,r){return this._drawPendingPt(),this.addData(dt.Q,n,t,i,r),this._ctx&&this._ctx.quadraticCurveTo(n,t,i,r),this._xi=i,this._yi=r,this},n.prototype.arc=function(n,t,i,r,u,f){this._drawPendingPt();pk[0]=r;pk[1]=u;eai(pk,f);r=pk[0];var e=(u=pk[1])-r;return this.addData(dt.A,n,t,i,i,r,e,0,f?0:1),this._ctx&&this._ctx.arc(n,t,i,r,u,f),this._xi=ll(u)*i+n,this._yi=al(u)*i+t,this},n.prototype.arcTo=function(n,t,i,r,u){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(n,t,i,r,u),this},n.prototype.rect=function(n,t,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(n,t,i,r),this.addData(dt.R,n,t,i,r),this},n.prototype.closePath=function(){this._drawPendingPt();this.addData(dt.Z);var n=this._ctx,t=this._x0,i=this._y0;return n&&n.closePath(),this._xi=t,this._yi=i,this},n.prototype.fill=function(n){n&&n.fill();this.toStatic()},n.prototype.stroke=function(n){n&&n.stroke();this.toStatic()},n.prototype.len=function(){return this._len},n.prototype.setData=function(n){var i=n.length,t;for(this.data&&this.data.length===i||!eyt||(this.data=new Float32Array(i)),t=0;t<i;t++)this.data[t]=n[t];this._len=i},n.prototype.appendPath=function(n){var u,i;n instanceof Array||(n=[n]);for(var f=n.length,e=0,r=this._len,t=0;t<f;t++)e+=n[t].len();for(eyt&&this.data instanceof Float32Array&&(this.data=new Float32Array(r+e)),t=0;t<f;t++)for(u=n[t].data,i=0;i<u.length;i++)this.data[r++]=u[i];this._len=r},n.prototype.addData=function(){var n,t;if(this._saveData)for(n=this.data,this._len+arguments.length>n.length&&(this._expandData(),n=this.data),t=0;t<arguments.length;t++)n[this._len++]=arguments[t]},n.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},n.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],n=0;n<this._len;n++)t[n]=this.data[n];this.data=t}},n.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var n=this.data;n instanceof Array&&(n.length=this._len,eyt&&this._len>11&&(this.data=new Float32Array(n)))}},n.prototype.getBoundingRect=function(){var v,o,y;uo[0]=uo[1]=fo[0]=fo[1]=Number.MAX_VALUE;sh[0]=sh[1]=eo[0]=eo[1]=-Number.MAX_VALUE;for(var t=this.data,i=0,r=0,u=0,f=0,n=0;n<this._len;){v=t[n++];o=1===n;switch(o&&(u=i=t[n],f=r=t[n+1]),v){case dt.M:i=u=t[n++];r=f=t[n++];fo[0]=u;fo[1]=f;eo[0]=u;eo[1]=f;break;case dt.L:fai(i,r,t[n],t[n+1],fo,eo);i=t[n++];r=t[n++];break;case dt.C:bfu(i,r,t[n++],t[n++],t[n++],t[n++],t[n],t[n+1],fo,eo);i=t[n++];r=t[n++];break;case dt.Q:kfu(i,r,t[n++],t[n++],t[n],t[n+1],fo,eo);i=t[n++];r=t[n++];break;case dt.A:var s=t[n++],h=t[n++],c=t[n++],l=t[n++],e=t[n++],a=t[n++]+e;n+=1;y=!t[n++];o&&(u=ll(e)*c+s,f=al(e)*l+h);dfu(s,h,c,l,e,a,y,fo,eo);i=ll(a)*c+s;r=al(a)*l+h;break;case dt.R:fai(u=i=t[n++],f=r=t[n++],u+t[n++],f+t[n++],fo,eo);break;case dt.Z:i=u;r=f}ts(uo,uo,fo);is(sh,sh,eo)}return 0===n&&(uo[0]=uo[1]=sh[0]=sh[1]=0),new nt(uo[0],uo[1],sh[0]-uo[0],sh[1]-uo[1])},n.prototype._calculateLength=function(){var t=this.data,w=this._len,ft=this._ux,et=this._uy,i=0,r=0,o=0,s=0,b,a,u,f,e,h;this._pathSegLen||(this._pathSegLen=[]);for(var ot=this._pathSegLen,l=0,st=0,n=0;n<w;){b=t[n++];a=1===n;a&&(o=i=t[n],s=r=t[n+1]);u=-1;switch(b){case dt.M:i=o=t[n++];r=s=t[n++];break;case dt.L:f=t[n++];e=(c=t[n++])-r;(fs(h=f-i)>ft||fs(e)>et||n===w-1)&&(u=Math.sqrt(h*h+e*e),i=f,r=c);break;case dt.C:var k=t[n++],d=t[n++],c=(f=t[n++],t[n++]),g=t[n++],nt=t[n++];u=suu(i,r,k,d,f,c,g,nt,10);i=g;r=nt;break;case dt.Q:u=huu(i,r,k=t[n++],d=t[n++],f=t[n++],c=t[n++],10);i=f;r=c;break;case dt.A:var tt=t[n++],it=t[n++],v=t[n++],y=t[n++],p=t[n++],rt=t[n++],ut=rt+p;n+=1;t[n++];a&&(o=ll(p)*v+tt,s=al(p)*y+it);u=uyt(v,y)*ryt(hh,Math.abs(rt));i=ll(ut)*v+tt;r=al(ut)*y+it;break;case dt.R:o=i=t[n++];s=r=t[n++];u=2*t[n++]+2*t[n++];break;case dt.Z:h=o-i;e=s-r;u=Math.sqrt(h*h+e*e);i=o;r=s}u>=0&&(ot[st++]=u,l+=u)}return this._pathLen=l,l},n.prototype.rebuildPath=function(n,t){var w,b,e,o,h,c,v,l,bt,kt,r=this.data,ii=this._ux,ri=this._uy,ui=this._len,y=t<1,u=0,k=0,ut=0,i,at,vt,st,ht,s,yt,p,rt,a,f;if(!y||(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,l=t*this._pathLen))n:for(i=0;i<ui;){at=r[i++];vt=1===i;switch(vt&&(w=e=r[i],b=o=r[i+1]),at!==dt.L&&ut>0&&(n.lineTo(bt,kt),ut=0),at){case dt.M:w=e=r[i++];b=o=r[i++];n.moveTo(e,o);break;case dt.L:if(h=r[i++],c=r[i++],st=fs(h-e),ht=fs(c-o),st>ii||ht>ri){if(y){if(u+(f=v[k++])>l){s=(l-u)/f;n.lineTo(e*(1-s)+h*s,o*(1-s)+c*s);break n}u+=f}n.lineTo(h,c);e=h;o=c;ut=0}else yt=st*st+ht*ht,yt>ut&&(bt=h,kt=c,ut=yt);break;case dt.C:var ft=r[i++],et=r[i++],d=r[i++],g=r[i++],pt=r[i++],wt=r[i++];if(y){if(u+(f=v[k++])>l){uh(e,ft,d,pt,s=(l-u)/f,hl);uh(o,et,g,wt,s,cl);n.bezierCurveTo(hl[1],cl[1],hl[2],cl[2],hl[3],cl[3]);break n}u+=f}n.bezierCurveTo(ft,et,d,g,pt,wt);e=pt;o=wt;break;case dt.Q:if(ft=r[i++],et=r[i++],d=r[i++],g=r[i++],y){if(u+(f=v[k++])>l){kb(e,ft,d,s=(l-u)/f,hl);kb(o,et,g,s,cl);n.quadraticCurveTo(hl[1],cl[1],hl[2],cl[2]);break n}u+=f}n.quadraticCurveTo(ft,et,d,g);e=d;o=g;break;case dt.A:var ct=r[i++],lt=r[i++],nt=r[i++],tt=r[i++],it=r[i++],gt=r[i++],fi=r[i++],ni=!r[i++],ei=nt>tt?nt:tt,oi=fs(nt-tt)>.001,ot=it+gt,ti=!1;if(y&&(u+(f=v[k++])>l&&(ot=it+gt*(l-u)/f,ti=!0),u+=f),oi&&n.ellipse?n.ellipse(ct,lt,nt,tt,fi,it,ot,ni):n.arc(ct,lt,ei,it,ot,ni),ti)break n;vt&&(w=ll(it)*nt+ct,b=al(it)*tt+lt);e=ll(ot)*nt+ct;o=al(ot)*tt+lt;break;case dt.R:if(w=e=r[i],b=o=r[i+1],h=r[i++],c=r[i++],p=r[i++],rt=r[i++],y){if(u+(f=v[k++])>l){a=l-u;n.moveTo(h,c);n.lineTo(h+ryt(a,p),c);(a-=p)>0&&n.lineTo(h+p,c+ryt(a,rt));(a-=rt)>0&&n.lineTo(h+uyt(p-a,0),c+rt);(a-=p)>0&&n.lineTo(h,c+uyt(rt-a,0));break n}u+=f}n.rect(h,c,p,rt);break;case dt.Z:if(y){if(u+(f=v[k++])>l){s=(l-u)/f;n.lineTo(e*(1-s)+w*s,o*(1-s)+b*s);break n}u+=f}n.closePath();e=w;o=b}}},n.prototype.clone=function(){var t=new n,i=this.data;return t.data=i.slice?i.slice():Array.prototype.slice.call(i),t._len=this._len,t},n.CMD=dt,n.initDefaultProps=function(){var t=n.prototype;t._saveData=!0;t._ux=0;t._uy=0;t._pendingPtDist=0;t._version=0}(),n}();syt=2*Math.PI;fy=2*Math.PI;var lh=fe.CMD,vl=2*Math.PI,kr=[-1,-1,-1],of=[-1,-1];var yrt=a({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ol),ueu={style:a({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},hrt.style)},hyt=to.concat(["invisible","culling","z","z2","zlevel","parent"]),ut=function(n){function t(t){return n.call(this,t)||this}var u;return i(t,n),t.prototype.update=function(){var o=this,i,r,u,f,e;if(n.prototype.update.call(this),i=this.style,i.decal){r=this._decalEl=this._decalEl||new t;r.buildPath===t.prototype.buildPath&&(r.buildPath=function(n){o.buildPath(n,o.shape)});r.silent=!0;u=r.style;for(f in i)u[f]!==i[f]&&(u[f]=i[f]);for(u.fill=i.fill?i.decal:null,u.decal=null,u.shadowColor=null,i.strokeFirst&&(u.stroke=null),e=0;e<hyt.length;++e)r[hyt[e]]=this[hyt[e]];r.__dirty|=1}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var o=et(t),e,f,i,u;for(this.shape=this.getDefaultShape(),e=this.getDefaultStyle(),e&&this.useStyle(e),f=0;f<o.length;f++)i=o[f],u=t[i],"style"===i?this.style?r(this.style,u):this.useStyle(u):"shape"===i?r(this.shape,u):n.prototype.attrKV.call(this,i,u);this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var n=this.style.fill,t;if("none"!==n){if(o(n))return t=rk(n,0),t>.5?aat:t>.2?"#eee":vat;if(n)return vat}return aat},t.prototype.getInsideTextStroke=function(n){var i=this.style.fill,t;if(o(i)&&(t=this.__zr,!(!t||!t.isDarkMode())==rk(n,0)<.4))return i},t.prototype.buildPath=function(){},t.prototype.pathUpdated=function(){this.__dirty&=-5},t.prototype.getUpdatedPathProxy=function(n){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,n),this.path},t.prototype.createPathProxy=function(){this.path=new fe(!1)},t.prototype.hasStroke=function(){var n=this.style,t=n.stroke;return!(null==t||"none"===t||!(n.lineWidth>0))},t.prototype.hasFill=function(){var n=this.style.fill;return null!=n&&"none"!==n},t.prototype.getBoundingRect=function(){var i=this._rect,o=this.style,s=!i,f,u,n,r,t,e;return(s&&(f=!1,this.path||(f=!0,this.createPathProxy()),u=this.path,(f||4&this.__dirty)&&(u.beginPath(),this.buildPath(u,this.shape,!1),this.pathUpdated()),i=u.getBoundingRect()),this._rect=i,this.hasStroke()&&this.path&&this.path.len()>0)?(n=this._rectStroke||(this._rectStroke=i.clone()),(this.__dirty||s)&&(n.copy(i),r=o.strokeNoScale?this.getLineScale():1,t=o.lineWidth,this.hasFill()||(e=this.strokeContainThreshold,t=Math.max(t,null==e?4:e)),r>1e-10&&(n.width+=t/r,n.height+=t/r,n.x-=t/r/2,n.y-=t/r/2)),n):i},t.prototype.contain=function(n,t){var f=this.transformCoordToLocal(n,t),o=this.getBoundingRect(),e=this.style,r,i,u;if(n=f[0],t=f[1],o.contain(n,t)){if(r=this.path,this.hasStroke()&&(i=e.lineWidth,u=e.strokeNoScale?this.getLineScale():1,u>1e-10&&(this.hasFill()||(i=Math.max(i,this.strokeContainThreshold)),function(n,t,i,r){return sai(n,t,!0,i,r)}(r,i/u,n,t))))return!0;if(this.hasFill())return function(n,t,i){return sai(n,0,!1,t,i)}(r,n,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=4;this._rect&&(this._rect=null);this._decalEl&&this._decalEl.dirtyShape();this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle();this.dirtyShape()},t.prototype.animateShape=function(n){return this.animate("shape",n)},t.prototype.updateDuringAnimation=function(n){"style"===n?this.dirtyStyle():"shape"===n?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,i){"shape"===t?this.setShape(i):n.prototype.attrKV.call(this,t,i)},t.prototype.setShape=function(n,t){var i=this.shape;return i||(i=this.shape={}),"string"==typeof n?i[n]=t:r(i,n),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(4&this.__dirty)},t.prototype.createStyle=function(n){return hb(yrt,n)},t.prototype._innerSaveToNormal=function(t){n.prototype._innerSaveToNormal.call(this,t);var i=this._normalState;t.shape&&!i.shape&&(i.shape=r({},this.shape))},t.prototype._applyStateObj=function(t,i,u,f,e,o){var s,l,h;if(n.prototype._applyStateObj.call(this,t,i,u,f,e,o),l=!(i&&f),i&&i.shape?e?f?s=i.shape:(s=r({},u.shape),r(s,i.shape)):(s=r({},f?this.shape:u.shape),r(s,i.shape)):l&&(s=u.shape),s)if(e){this.shape=r({},this.shape);for(var a={},v=et(s),c=0;c<v.length;c++)h=v[c],"object"==typeof s[h]?this.shape[h]=s[h]:a[h]=s[h];this._transitionState(t,{shape:a},o)}else this.shape=s,this.dirtyShape()},t.prototype._mergeStates=function(t){for(var i,f,u=n.prototype._mergeStates.call(this,t),r=0;r<t.length;r++)f=t[r],f.shape&&(i=i||{},this._mergeStyle(i,f.shape));return i&&(u.shape=i),u},t.prototype.getAnimationStyleProps=function(){return ueu},t.prototype.isZeroArea=function(){return!1},t.extend=function(n){var u=function(t){function r(i){var r=t.call(this,i)||this;return n.init&&n.init.call(r,i),r}return i(r,t),r.prototype.getDefaultStyle=function(){return y(n.style)},r.prototype.getDefaultShape=function(){return y(n.shape)},r}(t);for(var r in n)"function"==typeof n[r]&&(u.prototype[r]=n[r]);return u},t.initDefaultProps=((u=t.prototype).type="path",u.strokeContainThreshold=5,u.segmentIgnoreThreshold=0,u.subPixelOptimize=!1,u.autoBatch=!1,void(u.__dirty=7)),t}(ef),feu=a({strokeFirst:!0,font:ds,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},yrt),ey=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return i(t,n),t.prototype.hasStroke=function(){var n=this.style,t=n.stroke;return null!=t&&"none"!==t&&n.lineWidth>0},t.prototype.hasFill=function(){var n=this.style.fill;return null!=n&&"none"!==n},t.prototype.createStyle=function(n){return hb(feu,n)},t.prototype.setBoundingRect=function(n){this._rect=n},t.prototype.getBoundingRect=function(){var t=this.style,i,n,r;return this._rect||(i=t.text,null!=i?i+="":i="",n=sk(i,t.font,t.textAlign,t.textBaseline),(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke())&&(r=t.lineWidth,n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r),this._rect=n),this._rect},t.initDefaultProps=void(t.prototype.dirtyRectTolerance=10),t}(ef);ey.prototype.type="tspan";var eeu=a({x:0,y:0},ol),oeu={style:a({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},hrt.style)},wi=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return i(t,n),t.prototype.createStyle=function(n){return hb(eeu,n)},t.prototype._getSize=function(n){var i=this.style,e=i[n],r,t,u,f;return null!=e?e:(t=(r=i.image)&&"string"!=typeof r&&r.width&&r.height?i.image:this.__image,!t)?0:(u="width"===n?"height":"width",f=i[u],null==f?t[n]:t[n]/t[u]*f)},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return oeu},t.prototype.getBoundingRect=function(){var n=this.style;return this._rect||(this._rect=new nt(n.x||0,n.y||0,this.getWidth(),this.getHeight())),this._rect},t}(ef);wi.prototype.type="image";yl=Math.round;var seu=function(){this.x=0;this.y=0;this.width=0;this.height=0},heu={},ot=function(n){function t(t){return n.call(this,t)||this}return i(t,n),t.prototype.getDefaultShape=function(){return new seu},t.prototype.buildPath=function(n,t){var r,u,f,e,i;this.subPixelOptimize?(i=cai(heu,t,this.style),r=i.x,u=i.y,f=i.width,e=i.height,i.r=t.r,t=i):(r=t.x,u=t.y,f=t.width,e=t.height);t.r?function(n,t){var i,r,u,f,l,h=t.x,c=t.y,o=t.width,s=t.height,e=t.r;o<0&&(h+=o,o=-o);s<0&&(c+=s,s=-s);"number"==typeof e?i=r=u=f=e:e instanceof Array?1===e.length?i=r=u=f=e[0]:2===e.length?(i=u=e[0],r=f=e[1]):3===e.length?(i=e[0],r=f=e[1],u=e[2]):(i=e[0],r=e[1],u=e[2],f=e[3]):i=r=u=f=0;i+r>o&&(i*=o/(l=i+r),r*=o/l);u+f>o&&(u*=o/(l=u+f),f*=o/l);r+u>s&&(r*=s/(l=r+u),u*=s/l);i+f>s&&(i*=s/(l=i+f),f*=s/l);n.moveTo(h+i,c);n.lineTo(h+o-r,c);0!==r&&n.arc(h+o-r,c+r,r,-Math.PI/2,0);n.lineTo(h+o,c+s-u);0!==u&&n.arc(h+o-u,c+s-u,u,0,Math.PI/2);n.lineTo(h+f,c+s);0!==f&&n.arc(h+f,c+s-f,f,Math.PI/2,Math.PI);n.lineTo(h,c+i);0!==i&&n.arc(h+i,c+i,i,Math.PI,1.5*Math.PI)}(n,t):n.rect(r,u,f,e)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(ut);ot.prototype.type="rect";var lai={fill:"#000"},ceu={style:a({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},hrt.style)},st=function(n){function u(t){var i=n.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=lai,i.attr(t),i}return i(u,n),u.prototype.childrenRef=function(){return this._children},u.prototype.update=function(){var i,t;for(n.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts(),i=0;i<this._children.length;i++)t=this._children[i],t.zlevel=this.zlevel,t.z=this.z,t.z2=this.z2,t.culling=this.culling,t.cursor=this.cursor,t.invisible=this.invisible},u.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):n.prototype.updateTransform.call(this)},u.prototype.getLocalTransform=function(t){var i=this.innerTransformable;return i?i.getLocalTransform(t):n.prototype.getLocalTransform.call(this,t)},u.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),n.prototype.getComputedTransform.call(this)},u.prototype._updateSubTexts=function(){var n;this._childCursor=0;wai(n=this.style);t(n.rich,wai);this.style.rich?this._updateRichTexts():this._updatePlainTexts();this._children.length=this._childCursor;this.styleUpdated()},u.prototype.addSelfToZr=function(t){n.prototype.addSelfToZr.call(this,t);for(var i=0;i<this._children.length;i++)this._children[i].__zr=t},u.prototype.removeSelfFromZr=function(t){n.prototype.removeSelfFromZr.call(this,t);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},u.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var n=new nt(0,0,0,0),u=this._children,o=[],t=null,i=0;i<u.length;i++){var f=u[i],r=f.getBoundingRect(),e=f.getLocalTransform(o);e?(n.copy(r),n.applyTransform(e),(t=t||n.clone()).union(n)):(t=t||r.clone()).union(r)}this._rect=t||n}return this._rect},u.prototype.setDefaultTextStyle=function(n){this._defaultStyle=n||lai},u.prototype.setTextContent=function(){0},u.prototype._mergeStyle=function(n,t){if(!t)return n;var u=t.rich,i=n.rich||u&&{};return r(n,t),u&&i?(this._mergeRich(i,u),n.rich=i):i&&(n.rich=i),n},u.prototype._mergeRich=function(n,t){for(var i,f=et(t),u=0;u<f.length;u++)i=f[u],n[i]=n[i]||{},r(n[i],t[i])},u.prototype.getAnimationStyleProps=function(){return ceu},u.prototype._getOrCreateChild=function(n){var t=this._children[this._childCursor];return t&&t instanceof n||(t=new n),this._children[this._childCursor++]=t,t.__zr=this.__zr,t.parent=this,t},u.prototype._updatePlainTexts=function(){var n=this.style,ft=n.font||ds,r=n.padding,i=function(n,t){var p,w,u,v,e,h;null!=n&&(n+="");var i,o=t.overflow,f=t.padding,c=t.font,b="truncate"===o,y=git(c),l=d(t.lineHeight,y),k=!!t.backgroundColor,g="truncate"===t.lineOverflow,r=t.width,a=(i=null==r||"break"!==o&&"breakAll"!==o?n?n.split("\n"):[]:n?rai(n,t.font,r,"breakAll"===o,0).lines:[]).length*l,s=d(t.height,a);if(a>s&&g&&(p=Math.floor(s/l),i=i.slice(0,p)),n&&b&&null!=r)for(w=gli(r,c,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),u=0;u<i.length;u++)i[u]=nai(i[u],w);for(v=s,e=0,u=0;u<i.length;u++)e=Math.max(cu(i[u],c),e);return null==r&&(r=e),h=e,f&&(v+=f[0]+f[2],h+=f[1]+f[3],r+=f[1]+f[3]),k&&(h=r),{lines:i,height:s,outerWidth:h,outerHeight:v,lineHeight:l,calculatedLineHeight:y,contentWidth:e,contentHeight:a,width:r}}(gai(n),n),l=cyt(n),et=!!n.backgroundColor,a=i.outerHeight,v=i.outerWidth,ot=i.contentWidth,y=i.lines,p=i.lineHeight,u=this._defaultStyle,h=n.x||0,w=n.y||0,e=n.align||u.align||"left",o=n.verticalAlign||u.verticalAlign||"top",b=h,f=iy(w,i.contentHeight,o),k,g,s,t;(l||r)&&(k=hk(h,v,e),g=iy(w,a,o),l&&this._renderBackground(n,n,k,g,v,a));f+=p/2;r&&(b=dai(h,e,r),"top"===o?f+=r[0]:"bottom"===o&&(f-=r[2]));for(var tt=0,it=!1,st=kai("fill"in n?n.fill:(it=!0,u.fill)),rt=bai("stroke"in n?n.stroke:et||u.autoStroke&&!it?null:(tt=2,u.stroke)),ht=n.textShadowBlur>0,ct=null!=n.width&&("truncate"===n.overflow||"break"===n.overflow||"breakAll"===n.overflow),ut=i.calculatedLineHeight,c=0;c<y.length;c++)s=this._getOrCreateChild(ey),t=s.createStyle(),s.useStyle(t),t.text=y[c],t.x=b,t.y=f,e&&(t.textAlign=e),t.textBaseline="middle",t.opacity=n.opacity,t.strokeFirst=!0,ht&&(t.shadowBlur=n.textShadowBlur||0,t.shadowColor=n.textShadowColor||"transparent",t.shadowOffsetX=n.textShadowOffsetX||0,t.shadowOffsetY=n.textShadowOffsetY||0),t.stroke=rt,t.fill=st,rt&&(t.lineWidth=n.lineWidth||tt,t.lineDash=n.lineDash,t.lineDashOffset=n.lineDashOffset||0),t.font=ft,yai(t,n),f+=p,ct&&s.setBoundingRect(new nt(hk(t.x,n.width,t.textAlign),iy(t.y,ut,t.textBaseline),ot,ut))},u.prototype._updateRichTexts=function(){var n=this.style,u=function(n,t){function ct(n,t,i){n.width=t;n.lineHeight=i;g+=i;nt=Math.max(nt,t)}var r=new yfu,ft,f,h,e,st,ht,c,w,i,lt;if(null!=n&&(n+=""),!n)return r;for(var b,l=t.width,rt=t.height,k=t.overflow,ut="break"!==k&&"breakAll"!==k||null==l?null:{width:l,accumWidth:0,breakAll:"breakAll"===k},a=srt.lastIndex=0;null!=(b=srt.exec(n));)ft=b.index,ft>a&&wvt(r,n.substring(a,ft),t,ut),wvt(r,b[2],t,ut,b[1]),a=srt.lastIndex;a<n.length&&wvt(r,n.substring(a,n.length),t,ut);var et=[],g=0,nt=0,v=t.padding,at="truncate"===k,vt="truncate"===t.lineOverflow;n:for(f=0;f<r.lines.length;f++){for(var o=r.lines[f],tt=0,it=0,y=0;y<o.tokens.length;y++){var u=(i=o.tokens[y]).styleName&&t.rich[i.styleName]||{},s=i.textPadding=u.padding,ot=s?s[1]+s[3]:0,p=i.font=u.font||t.font;if(i.contentHeight=git(p),h=d(u.height,i.contentHeight),i.innerHeight=h,s&&(h+=s[0]+s[2]),i.height=h,i.lineHeight=gf(u.lineHeight,t.lineHeight,h),i.align=u&&u.align||t.align,i.verticalAlign=u&&u.verticalAlign||"middle",vt&&null!=rt&&g+i.lineHeight>rt){y>0?(o.tokens=o.tokens.slice(0,y),ct(o,it,tt),r.lines=r.lines.slice(0,f+1)):r.lines=r.lines.slice(0,f);break n}e=u.width;st=null==e||"auto"===e;"string"==typeof e&&"%"===e.charAt(e.length-1)?(i.percentWidth=e,et.push(i),i.contentWidth=cu(i.text,p)):(st&&(ht=u.backgroundColor,c=ht&&ht.image,c&&ort(c=lfu(c))&&(i.width=Math.max(i.width,c.width*h/c.height))),w=at&&null!=l?l-it:null,null!=w&&w<i.width?!st||w<ot?(i.text="",i.width=i.contentWidth=0):(i.text=dli(i.text,w-ot,p,t.ellipsis,{minChar:t.truncateMinChar}),i.width=i.contentWidth=cu(i.text,p)):i.contentWidth=cu(i.text,p));i.width+=ot;it+=i.width;u&&(tt=Math.max(tt,i.lineHeight))}ct(o,it,tt)}for(r.outerWidth=r.width=d(l,nt),r.outerHeight=r.height=d(rt,g),r.contentHeight=g,r.contentWidth=nt,v&&(r.outerWidth+=v[1]+v[3],r.outerHeight+=v[0]+v[2]),f=0;f<et.length;f++)lt=(i=et[f]).percentWidth,i.width=parseInt(lt,10)/100*r.width;return r}(gai(n),n),b=u.width,k=u.outerWidth,g=u.outerHeight,a=n.padding,ut=n.x||0,ft=n.y||0,nt=this._defaultStyle,et=n.align||nt.align,ot=n.verticalAlign||nt.verticalAlign,tt=hk(ut,k,et),it=iy(ft,g,ot),e=tt,f=it,v,o,s;for(a&&(e+=a[3],f+=a[0]),v=e+b,cyt(n)&&this._renderBackground(n,n,tt,it,k,g),o=!!n.backgroundColor,s=0;s<u.lines.length;s++){for(var y=u.lines[s],h=y.tokens,rt=h.length,c=y.lineHeight,p=y.width,i=0,r=e,w=v,l=rt-1,t=void 0;i<rt&&(!(t=h[i]).align||"left"===t.align);)this._placeToken(t,n,c,f,r,"left",o),p-=t.width,r+=t.width,i++;for(;l>=0&&"right"===(t=h[l]).align;)this._placeToken(t,n,c,f,w,"right",o),p-=t.width,w-=t.width,l--;for(r+=(b-(r-e)-(v-w)-p)/2;i<=l;)t=h[i],this._placeToken(t,n,c,f,r+t.width/2,"center",o),r+=t.width,i++;f+=c}},u.prototype._placeToken=function(n,t,i,r,u,f,e){var s=t.rich[n.styleName]||{},a,h,w,c,l,o,y,p;s.text=n.text;a=n.verticalAlign;h=r+i/2;"top"===a?h=r+n.height/2:"bottom"===a&&(h=r+i-n.height/2);!n.isLineHolder&&cyt(s)&&this._renderBackground(s,t,"right"===f?u-n.width:"center"===f?u-n.width/2:u,h-n.height/2,n.width,n.height);w=!!s.backgroundColor;c=n.textPadding;c&&(u=dai(u,f,c),h-=n.height/2-c[0]-n.innerHeight/2);l=this._getOrCreateChild(ey);o=l.createStyle();l.useStyle(o);var v=this._defaultStyle,b=!1,k=0,g=kai("fill"in s?s.fill:"fill"in t?t.fill:(b=!0,v.fill)),tt=bai("stroke"in s?s.stroke:"stroke"in t?t.stroke:w||e||v.autoStroke&&!b?null:(k=2,v.stroke)),it=s.textShadowBlur>0||t.textShadowBlur>0;o.text=n.text;o.x=u;o.y=h;it&&(o.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,o.shadowColor=s.textShadowColor||t.textShadowColor||"transparent",o.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,o.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0);o.textAlign=f;o.textBaseline="middle";o.font=n.font||ds;o.opacity=gf(s.opacity,t.opacity,1);yai(o,s);tt&&(o.lineWidth=gf(s.lineWidth,t.lineWidth,k),o.lineDash=d(s.lineDash,t.lineDash),o.lineDashOffset=t.lineDashOffset||0,o.stroke=tt);g&&(o.fill=g);y=n.contentWidth;p=n.contentHeight;l.setBoundingRect(new nt(hk(o.x,y,o.textAlign),iy(o.y,p,o.textBaseline),y,p))},u.prototype._renderBackground=function(n,t,i,r,u,f){var e,a,o,l=n.backgroundColor,v=n.borderWidth,y=n.borderColor,p=l&&l.image,w=l&&!p,b=n.borderRadius,k=this,s,h,c;(w||n.lineHeight||v&&y)&&((e=this._getOrCreateChild(ot)).useStyle(e.createStyle()),e.style.fill=null,s=e.shape,s.x=i,s.y=r,s.width=u,s.height=f,s.r=b,e.dirtyShape());w?((o=e.style).fill=l||null,o.fillOpacity=d(n.fillOpacity,1)):p&&((a=this._getOrCreateChild(wi)).onload=function(){k.dirtyStyle()},h=a.style,h.image=l.image,h.x=i,h.y=r,h.width=u,h.height=f);v&&y&&((o=e.style).lineWidth=v,o.stroke=y,o.strokeOpacity=d(n.strokeOpacity,1),o.lineDash=n.borderDash,o.lineDashOffset=n.borderDashOffset||0,e.strokeContainThreshold=0,e.hasFill()&&e.hasStroke()&&(o.strokeFirst=!0,o.lineWidth*=2));c=(e||a).style;c.shadowBlur=n.shadowBlur||0;c.shadowColor=n.shadowColor||"transparent";c.shadowOffsetX=n.shadowOffsetX||0;c.shadowOffsetY=n.shadowOffsetY||0;c.opacity=gf(n.opacity,t.opacity,1)},u.makeFont=function(n){var t="";return pai(n)&&(t=[n.fontStyle,n.fontWeight,vai(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),t&&gu(t)||n.textFont||n.font},u}(ef),leu={left:!0,right:1,center:1},aeu={top:1,bottom:1,middle:1},aai=["fontStyle","fontWeight","fontSize","fontFamily"];var b=ct(),lyt=function(n,t,i,r){if(r){var u=b(r);u.dataIndex=i;u.dataType=t;u.seriesIndex=n;"group"===r.type&&r.traverse(function(r){var u=b(r);u.seriesIndex=n;u.dataIndex=i;u.dataType=t})}},nvi=1,tvi={},ivi=ct(),ayt=ct(),dr=["emphasis","blur","select"],wk=["normal","emphasis","blur","select"],veu=10,wl="highlight",prt="downplay",bk="select",wrt="unselect",kk="toggleSelect";vyt=new db(100);npt=["emphasis","blur","select"];wvi={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};var sy=fe.CMD,beu=[[],[],[]],kvi=Math.sqrt,keu=Math.atan2;var ipt=Math.sqrt,drt=Math.sin,grt=Math.cos,gk=Math.PI;var deu=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,geu=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,iyi=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return i(t,n),t.prototype.applyTransform=function(){},t}(ut);eyi=function(){this.cx=0;this.cy=0;this.r=0};vu=function(n){function t(t){return n.call(this,t)||this}return i(t,n),t.prototype.getDefaultShape=function(){return new eyi},t.prototype.buildPath=function(n,t){n.moveTo(t.cx+t.r,t.cy);n.arc(t.cx,t.cy,t.r,0,2*Math.PI)},t}(ut);vu.prototype.type="circle";oyi=function(){this.cx=0;this.cy=0;this.rx=0;this.ry=0};hy=function(n){function t(t){return n.call(this,t)||this}return i(t,n),t.prototype.getDefaultShape=function(){return new oyi},t.prototype.buildPath=function(n,t){var s=.5522848,i=t.cx,r=t.cy,u=t.rx,f=t.ry,e=u*s,o=f*s;n.moveTo(i-u,r);n.bezierCurveTo(i-u,r-o,i-e,r-f,i,r-f);n.bezierCurveTo(i+e,r-f,i+u,r-o,i+u,r);n.bezierCurveTo(i+u,r+o,i+e,r+f,i,r+f);n.bezierCurveTo(i-e,r+f,i-u,r+o,i-u,r);n.closePath()},t}(ut);hy.prototype.type="ellipse";var syi=Math.PI,fpt=2*syi,dl=Math.sin,cy=Math.cos,nou=Math.acos,cr=Math.atan2,hyi=Math.abs,nd=Math.sqrt,td=Math.max,oo=Math.min,oe=.0001;cyi=function(){this.cx=0;this.cy=0;this.r0=0;this.r=0;this.startAngle=0;this.endAngle=2*Math.PI;this.clockwise=!0;this.cornerRadius=0};ur=function(n){function t(t){return n.call(this,t)||this}return i(t,n),t.prototype.getDefaultShape=function(){return new cyi},t.prototype.buildPath=function(n,t){tou(n,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(ut);ur.prototype.type="sector";lyi=function(){this.cx=0;this.cy=0;this.r=0;this.r0=0};gl=function(n){function t(t){return n.call(this,t)||this}return i(t,n),t.prototype.getDefaultShape=function(){return new lyi},t.prototype.buildPath=function(n,t){var i=t.cx,r=t.cy,u=2*Math.PI;n.moveTo(i+t.r,r);n.arc(i,r,t.r,0,u,!1);n.moveTo(i+t.r0,r);n.arc(i,r,t.r0,0,u,!0)},t}(ut);gl.prototype.type="ring";vyi=function(){this.points=null;this.smooth=0;this.smoothConstraint=null};fr=function(n){function t(t){return n.call(this,t)||this}return i(t,n),t.prototype.getDefaultShape=function(){return new vyi},t.prototype.buildPath=function(n,t){ayi(n,t,!0)},t}(ut);fr.prototype.type="polygon";yyi=function(){this.points=null;this.percent=1;this.smooth=0;this.smoothConstraint=null};er=function(n){function t(t){return n.call(this,t)||this}return i(t,n),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new yyi},t.prototype.buildPath=function(n,t){ayi(n,t,!1)},t}(ut);er.prototype.type="polyline";var iou={},rou=function(){this.x1=0;this.y1=0;this.x2=0;this.y2=0;this.percent=1},vi=function(n){function t(t){return n.call(this,t)||this}return i(t,n),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new rou},t.prototype.buildPath=function(n,t){var e,o,r,u,f,i;this.subPixelOptimize?(f=hai(iou,t,this.style),e=f.x1,o=f.y1,r=f.x2,u=f.y2):(e=t.x1,o=t.y1,r=t.x2,u=t.y2);i=t.percent;0!==i&&(n.moveTo(e,o),i<1&&(r=e*(1-i)+r*i,u=o*(1-i)+u*i),n.lineTo(r,u))},t.prototype.pointAt=function(n){var t=this.shape;return[t.x1*(1-n)+t.x2*n,t.y1*(1-n)+t.y2*n]},t}(ut);vi.prototype.type="line";gr=[];pyi=function(){this.x1=0;this.y1=0;this.x2=0;this.y2=0;this.cpx1=0;this.cpy1=0;this.percent=1};na=function(n){function t(t){return n.call(this,t)||this}return i(t,n),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new pyi},t.prototype.buildPath=function(n,t){var h=t.x1,c=t.y1,r=t.x2,u=t.y2,f=t.cpx1,e=t.cpy1,o=t.cpx2,s=t.cpy2,i=t.percent;0!==i&&(n.moveTo(h,c),null==o||null==s?(i<1&&(kb(h,f,r,i,gr),f=gr[1],r=gr[2],kb(c,e,u,i,gr),e=gr[1],u=gr[2]),n.quadraticCurveTo(f,e,r,u)):(i<1&&(uh(h,f,o,r,i,gr),f=gr[1],o=gr[2],r=gr[3],uh(c,e,s,u,i,gr),e=gr[1],s=gr[2],u=gr[3]),n.bezierCurveTo(f,e,o,s,r,u)))},t.prototype.pointAt=function(n){return wyi(this.shape,n,!1)},t.prototype.tangentAt=function(n){var t=wyi(this.shape,n,!0);return pc(t,t)},t}(ut);na.prototype.type="bezier-curve";byi=function(){this.cx=0;this.cy=0;this.r=0;this.startAngle=0;this.endAngle=2*Math.PI;this.clockwise=!0};ly=function(n){function t(t){return n.call(this,t)||this}return i(t,n),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new byi},t.prototype.buildPath=function(n,t){var u=t.cx,f=t.cy,i=Math.max(t.r,0),r=t.startAngle,e=t.endAngle,o=t.clockwise,s=Math.cos(r),h=Math.sin(r);n.moveTo(s*i+u,h*i+f);n.arc(u,f,i,r,e,!o)},t}(ut);ly.prototype.type="arc";var tut=function(n){function t(){var t=null!==n&&n.apply(this,arguments)||this;return t.type="compound",t}return i(t,n),t.prototype._updatePathDirty=function(){for(var i=this.shape.paths,n=this.shapeChanged(),t=0;t<i.length;t++)n=n||i[t].shapeChanged();n&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],i=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(i[0],i[1],t[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(n,t){for(var r=t.paths||[],i=0;i<r.length;i++)r[i].buildPath(n,r[i].shape,!0)},t.prototype.afterBrush=function(){for(var t=this.shape.paths||[],n=0;n<t.length;n++)t[n].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),ut.prototype.getBoundingRect.call(this)},t}(ut),kyi=function(){function n(n){this.colorStops=n||[]}return n.prototype.addColorStop=function(n,t){this.colorStops.push({offset:n,color:t})},n}(),ay=function(n){function t(t,i,r,u,f,e){var o=n.call(this,f)||this;return o.x=null==t?0:t,o.y=null==i?0:i,o.x2=null==r?1:r,o.y2=null==u?0:u,o.type="linear",o.global=e||!1,o}return i(t,n),t}(kyi),ept=function(n){function t(t,i,r,u,f){var e=n.call(this,u)||this;return e.x=null==t?.5:t,e.y=null==i?.5:i,e.r=null==r?.5:r,e.type="radial",e.global=f||!1,e}return i(t,n),t}(kyi),ta=[0,0],ia=[0,0],iut=new g,rut=new g,uut=function(){function n(n,t){this._corners=[];this._axes=[];this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new g;for(i=0;i<2;i++)this._axes[i]=new g;n&&this.fromBoundingRect(n,t)}return n.prototype.fromBoundingRect=function(n,t){var i=this._corners,u=this._axes,f=n.x,e=n.y,o=f+n.width,s=e+n.height,r;if(i[0].set(f,e),i[1].set(o,e),i[2].set(o,s),i[3].set(f,s),t)for(r=0;r<4;r++)i[r].transform(t);for(g.sub(u[0],i[1],i[0]),g.sub(u[1],i[3],i[0]),u[0].normalize(),u[1].normalize(),r=0;r<2;r++)this._origin[r]=u[r].dot(i[0])},n.prototype.intersect=function(n,t){var r=!0,i=!t;return iut.set(1/0,1/0),rut.set(0,0),!this._intersectCheckOneSide(this,n,iut,rut,i,1)&&(r=!1,i)||!this._intersectCheckOneSide(n,this,iut,rut,i,-1)&&(r=!1,i)||i||g.copy(t,r?iut:rut),r},n.prototype._intersectCheckOneSide=function(n,t,i,r,u,f){for(var h,e,o,c=!0,s=0;s<2;s++)if(h=this._axes[s],this._getProjMinMaxOnAxis(s,n._corners,ta),this._getProjMinMaxOnAxis(s,t._corners,ia),ta[1]<ia[0]||ta[0]>ia[1]){if(c=!1,u)return c;e=Math.abs(ia[0]-ta[1]);o=Math.abs(ta[0]-ia[1]);Math.min(e,o)>r.len()&&(e<o?g.scale(r,h,-e*f):g.scale(r,h,o*f))}else i&&(e=Math.abs(ia[0]-ta[1]),o=Math.abs(ta[0]-ia[1]),Math.min(e,o)<i.len()&&(e<o?g.scale(i,h,e*f):g.scale(i,h,-o*f)));return c},n.prototype._getProjMinMaxOnAxis=function(n,t,i){for(var e,o=this._axes[n],s=this._origin,h=t[0].dot(o)+s[n],r=h,u=h,f=1;f<t.length;f++)e=t[f].dot(o)+s[n],r=Math.min(e,r),u=Math.max(e,u);i[0]=r;i[1]=u},n}(),uou=[],dyi=function(n){function t(){var t=null!==n&&n.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return i(t,n),t.prototype.traverse=function(n,t){n.call(t,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[];this._temporaryDisplayables=[];this._cursor=0;this.markRedraw();this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(n,t){t?this._temporaryDisplayables.push(n):this._displayables.push(n);this.markRedraw()},t.prototype.addDisplayables=function(n,t){t=t||!1;for(var i=0;i<n.length;i++)this.addDisplayable(n[i],t)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(n){for(var t=this._cursor;t<this._displayables.length;t++)n&&n(this._displayables[t]);for(t=0;t<this._temporaryDisplayables.length;t++)n&&n(this._temporaryDisplayables[t])},t.prototype.update=function(){var n,t;for(this.updateTransform(),n=this._cursor;n<this._displayables.length;n++)(t=this._displayables[n]).parent=this,t.update(),t.parent=null;for(n=0;n<this._temporaryDisplayables.length;n++)(t=this._temporaryDisplayables[n]).parent=this,t.update(),t.parent=null},t.prototype.getBoundingRect=function(){var i,n,t,r;if(!this._rect){for(i=new nt(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++)t=this._displayables[n],r=t.getBoundingRect().clone(),t.needLocalTransform()&&r.applyTransform(t.getLocalTransform(uou)),i.union(r);this._rect=i}return this._rect},t.prototype.contain=function(n,t){var r=this.transformCoordToLocal(n,t),i;if(this.getBoundingRect().contain(r[0],r[1]))for(i=0;i<this._displayables.length;i++)if(this._displayables[i].contain(n,t))return!0;return!1},t}(ef),gyi=ct();var fut=Math.max,eut=Math.min,spt={};ipi=function(n,t){var r=uyi(n,t);return function(n){function t(t){var i=n.call(this,t)||this;return i.applyTransform=r.applyTransform,i.buildPath=r.buildPath,i}return i(t,n),t}(iyi)};ou=function(n,t){for(var f,i,u=[],e=n.length,r=0;r<e;r++)f=n[r],u.push(f.getUpdatedPathProxy(!0));return i=new ut(t),i.createPathProxy(),i.buildPath=function(n){if(ryi(n)){n.appendPath(u);var t=n.getContext();t&&n.rebuildPath(t,1)}},i};ud=pl;sf("circle",vu);sf("ellipse",hy);sf("sector",ur);sf("ring",gl);sf("polygon",fr);sf("polyline",er);sf("rect",ot);sf("line",vi);sf("bezierCurve",na);sf("arc",ly);ky=Object.freeze({__proto__:null,updateProps:lt,initProps:ii,removeElement:vh,removeElementWithFadeOut:id,isElementRemoved:yy,extendShape:tpi,extendPath:rpi,registerShape:sf,getShapeClass:out,makePath:rd,makeImage:hpt,mergePath:ou,resizePath:cpt,subPixelOptimizeLine:py,subPixelOptimizeRect:function(n){return cai(n.shape,n.shape,n.style),n},subPixelOptimize:ud,getTransform:yh,applyTransform:he,transformDirection:sut,groupTransition:fd,clipPointsByRect:lpt,clipRectByRect:epi,createIcon:wy,linePolygonIntersect:ed,lineLineIntersect:opi,setTooltipConfig:by,traverseElements:ph,Group:p,Image:wi,Text:st,Circle:vu,Ellipse:hy,Sector:ur,Ring:gl,Polygon:fr,Polyline:er,Rect:ot,Line:vi,BezierCurve:na,Arc:ly,IncrementalDisplayable:dyi,CompoundPath:tut,LinearGradient:ay,RadialGradient:ept,BoundingRect:nt,OrientedBoundingRect:uut,Point:g,Path:ut});od={};var cpi=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],lpi=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],api=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];ra=ct();var ypt,ppt,fou=["textStyle","color"],wpt=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],bpt=new st,eou=function(){function n(){}return n.prototype.getTextColor=function(n){var t=this.ecModel;return this.getShallow("color")||(!n&&t?t.get(fou):null)},n.prototype.getFont=function(){return ypi({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},n.prototype.getTextRect=function(n){for(var i={text:n,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},t=0;t<wpt.length;t++)i[wpt[t]]=this.getShallow(wpt[t]);return bpt.useStyle(i),bpt.update(),bpt.getBoundingRect()},n}(),bpi=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],oou=el(bpi),sou=function(){function n(){}return n.prototype.getLineStyle=function(n){return oou(this,n)},n}(),kpi=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],hou=el(kpi),cou=function(){function n(){}return n.prototype.getItemStyle=function(n,t){return hou(this,n,t)},n}(),at=function(){function n(n,t,i){this.parentModel=t;this.ecModel=i;this.option=n}return n.prototype.init=function(){for(var t=[],n=3;n<arguments.length;n++)t[n-3]=arguments[n]},n.prototype.mergeOption=function(n){k(this.option,n,!0)},n.prototype.get=function(n,t){return null==n?this.option:this._doGet(this.parsePath(n),!t&&this.parentModel)},n.prototype.getShallow=function(n,t){var i=this.option,r=null==i?i:i[n],u;return null!=r||t||(u=this.parentModel,u&&(r=u.getShallow(n))),r},n.prototype.getModel=function(t,i){var r=null!=t,u=r?this.parsePath(t):null;return new n(r?this._doGet(u):this.option,i=i||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(u)),this.ecModel)},n.prototype.isEmpty=function(){return null==this.option},n.prototype.restoreData=function(){},n.prototype.clone=function(){return new this.constructor(y(this.option))},n.prototype.parsePath=function(n){return"string"==typeof n?n.split("."):n},n.prototype.resolveParentPath=function(n){return n},n.prototype.isAnimationEnabled=function(){if(!ft.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},n.prototype._doGet=function(n,t){var i=this.option,r;if(!n)return i;for(r=0;r<n.length&&(!n[r]||null!=(i=i&&"object"==typeof i?i[n[r]]:null));r++);return null==i&&t&&(i=t._doGet(this.resolveParentPath(n),t.parentModel)),i},n}();vvt(at);ypt=at;ppt=["__\0is_clz",bli++].join("_");ypt.prototype[ppt]=!0;ypt.isInstance=function(n){return!(!n||!n[ppt])};fi(at,sou);fi(at,cou);fi(at,cfu);fi(at,eou);dpi=Math.round(10*Math.random());var cut="ZH",kpt="EN",lut=kpt,aut={},dpt={},gpi=ft.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase().indexOf(cut)>-1?cut:lut;gpt(kpt,{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}});gpt(cut,{time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表，"},series:{single:{prefix:"",withName:"图表类型是{seriesType}，表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType}，",withoutName:"第{seriesId}个系列是一个{seriesType}，",separator:{middle:"；",end:"。"}}},data:{allData:"其数据是——",partialData:"其中，前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:"，",end:""}}}});var nwi=1e3,twi=6e4,iwi=36e5,sd=864e5,rwi=31536e6,hd={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},vut="{yyyy}-{MM}-{dd}",uwi={year:"{yyyy}",month:"{yyyy}-{MM}",day:vut,hour:vut+" "+hd.hour,minute:vut+" "+hd.minute,second:vut+" "+hd.second,millisecond:hd.none},twt=["year","month","day","hour","minute","second","millisecond"],fwi=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];bh=ktt;ewt=["a","b","c","d","e","f","g"];kut=function(n,t){return"{"+n+(null==t?"":t)+"}"};var gut=t,pwi=["left","right","top","bottom","width","height"],fa=[["width","left","right"],["height","top","bottom"]];kh=swt;w(swt,"vertical");w(swt,"horizontal");bwi=ct();rt=function(n){function t(t,i,r){var u=n.call(this,t,i,r)||this;return u.uid=dy("ec_cpt_model"),u}return i(t,n),t.prototype.init=function(n,t,i){this.mergeDefaultAndTheme(n,i)},t.prototype.mergeDefaultAndTheme=function(n,t){var i=ad(this),r=i?tp(n):{};k(n,t.getTheme().get(this.mainType));k(n,this.getDefaultOption());i&&dh(n,r,i)},t.prototype.mergeOption=function(n){k(this.option,n,!0);var t=ad(this);t&&dh(this.option,n,t)},t.prototype.optionUpdated=function(){},t.prototype.getDefaultOption=function(){var f=this.constructor,t,i,n,e,r,u;if(!function(n){return!(!n||!n[avt])}(f))return f.defaultOption;if(t=bwi(this),!t.defaultOption){for(i=[],n=f;n;)e=n.prototype.defaultOption,e&&i.push(e),n=n.superClass;for(r={},u=i.length-1;u>=0;u--)r=k(r,i[u],!0);t.defaultOption=r}return t.defaultOption},t.prototype.getReferringComponents=function(n,t){var i=n+"Index",r=n+"Id";return yk(this.ecModel,n,{index:this.get(i,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){var n=this;return{left:n.get("left"),top:n.get("top"),right:n.get("right"),bottom:n.get("bottom"),width:n.get("width"),height:n.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(n){this.option.zlevel=n},t.protoInitialize=function(){var n=t.prototype;n.type="component";n.id="";n.name="";n.mainType="";n.subType="";n.componentIndex=0}(),t}(at);wli(rt,at);ert(rt),function(n){var t={};n.registerSubTypeDefaulter=function(n,i){var r=ro(n);t[r.main]=i};n.determineSubType=function(i,r){var u=r.type,f;return u||(f=ro(i).main,n.hasSubTypes(i)&&t[f]&&(u=t[f](r))),u}}(rt),function(n,i){function r(n,t){return n[t]||(n[t]={predecessor:[],successor:[]}),n[t]}n.topologicalTravel=function(n,u,f,e){function y(n){h[n].entryCount--;0===h[n].entryCount&&c.push(n)}function p(n){o[n]=!0;y(n)}if(n.length){var l=function(n){var u={},f=[];return t(n,function(e){var o=r(u,e),s=function(n,i){var r=[];return t(n,function(n){tt(i,n)>=0&&r.push(n)}),r}(o.originalDeps=i(e),n);o.entryCount=s.length;0===o.entryCount&&f.push(e);t(s,function(n){tt(o.predecessor,n)<0&&o.predecessor.push(n);var t=r(u,n);tt(t.successor,n)<0&&t.successor.push(e)})}),{graph:u,noEntryList:f}}(u),h=l.graph,c=l.noEntryList,o={};for(t(n,function(n){o[n]=!0});c.length;){var s=c.pop(),a=h[s],v=!!o[s];v&&(f.call(e,s,a.originalDeps.slice()),delete o[s]);t(a.successor,v?p:y)}t(o,function(){throw new Error("");})}}}(rt,function(n){var i=[];return t(rt.getClassesByMainType(n),function(n){i=i.concat(n.dependencies||n.prototype.dependencies||[])}),i=f(i,function(n){return ro(n).main}),"dataset"!==n&&tt(i,"dataset")<=0&&i.unshift("dataset"),i});hwt="";"undefined"!=typeof navigator&&(hwt=navigator.platform||"");var ip="rgba(0, 0, 0, 0.2)",vou={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:ip,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:ip,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:ip,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:ip,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:ip,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:ip,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:hwt.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},kwi=c(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),hf="original",lr="arrayRows",cf="objectRows",so="keyedColumns",gh="typedArray",dwi="unknown",ho="column",rp="row",tft=1,gwi=2,ce=3,nbi=ct();var awt=c(),ift,vd,ubi,fbi=ct(),you=ct(),vwt=function(){function n(){}return n.prototype.getColorFromPalette=function(n,t,i){var r=kt(this.get("color",!0)),u=this.get("colorLayer",!0);return ebi(this,fbi,r,u,n,t,i)},n.prototype.clearColorPalette=function(){!function(n,t){t(n).paletteIdx=0;t(n).paletteNameMap={}}(this,fbi)},n}();pwt="\0_ec_inner";rft=function(n){function u(){return null!==n&&n.apply(this,arguments)||this}return i(u,n),u.prototype.init=function(n,t,i,r,u,f){r=r||{};this.option=null;this._theme=new at(r);this._locale=new at(u);this._optionManager=f},u.prototype.setOption=function(n,t,i){var r=hbi(t);this._optionManager.setOption(n,i,r);this._resetOption(null,r)},u.prototype.resetOption=function(n,t){return this._resetOption(n,hbi(t))},u.prototype._resetOption=function(n,i){var r=!1,u=this._optionManager,f,e,o;return n&&"recreate"!==n||(f=u.mountOption("recreate"===n),this.option&&"recreate"!==n?(this.restoreData(),this._mergeOption(f,i)):ubi(this,f),r=!0),("timeline"!==n&&"media"!==n||this.restoreData(),n&&"recreate"!==n&&"timeline"!==n)||(e=u.getTimelineOption(this),e&&(r=!0,this._mergeOption(e,i))),n&&"recreate"!==n&&"media"!==n||(o=u.getMediaOption(this),o.length&&t(o,function(n){r=!0;this._mergeOption(n,i)},this)),r},u.prototype.mergeOption=function(n){this._mergeOption(n,null)},u.prototype._mergeOption=function(n,i){var u=this.option,e=this._componentsMap,h=this._componentsCount,o=[],s=c(),f=i&&i.replaceMergeMainTypeMap;nbi(this).datasetMap=c();t(n,function(n,t){null!=n&&(rt.hasClass(t)?t&&(o.push(t),s.set(t,!0)):u[t]=null==u[t]?y(n):k(u[t],n,!0))});f&&f.each(function(n,t){rt.hasClass(t)&&!s.get(t)&&(o.push(t),s.set(t,!0))});rt.topologicalTravel(o,rt.getAllClassMainTypes(),function(i){var p=function(n,t,i){var u=awt.get(t),r;return u?(r=u(n),r?i.concat(r):i):i}(this,i,kt(n[i])),c=e.get(i),w=c?f&&f.get(i)?"replaceMerge":"normalMerge":"replaceAll",l=cli(c,p,w);(function(n,i,r){t(n,function(n){var t=n.newOption;v(t)&&(n.keyInfo.mainType=i,n.keyInfo.subType=function(n,t,i,r){return t.type?t.type:i?i.subType:r.determineSubType(n,t)}(i,t,n.existing,r))})})(l,i,rt);u[i]=null;e.set(i,null);h.set(i,0);var a,o=[],s=[],y=0;t(l,function(n,t){var u=n.existing,f=n.newOption,c,e,h;if(f){if(c="series"===i,e=rt.getClass(i,n.keyInfo.subType,!c),!e)return;if("tooltip"===i){if(a)return void 0;a=!0}u&&u.constructor===e?(u.name=n.keyInfo.name,u.mergeOption(f,this),u.optionUpdated(f,!1)):(h=r({componentIndex:t},n.keyInfo),r(u=new e(f,this,this,h),h),n.brandNew&&(u.__requireNewView=!0),u.init(f,this,this),u.optionUpdated(null,!0))}else u&&(u.mergeOption({},this),u.optionUpdated({},!1));u?(o.push(u.option),s.push(u),y++):(o.push(void 0),s.push(void 0))},this);u[i]=o;e.set(i,s);h.set(i,y);"series"===i&&ift(this)},this);this._seriesIndices||ift(this)},u.prototype.getOption=function(){var n=y(this.option);return t(n,function(t,i){if(rt.hasClass(i)){for(var r=kt(t),f=r.length,e=!1,u=f-1;u>=0;u--)r[u]&&!ak(r[u])?e=!0:(r[u]=null,!e&&f--);r.length=f;n[i]=r}}),delete n[pwt],n},u.prototype.getTheme=function(){return this._theme},u.prototype.getLocaleModel=function(){return this._locale},u.prototype.setUpdatePayload=function(n){this._payload=n},u.prototype.getUpdatePayload=function(){return this._payload},u.prototype.getComponent=function(n,t){var i=this._componentsMap.get(n),u,r;if(i){if(u=i[t||0],u)return u;if(null==t)for(r=0;r<i.length;r++)if(i[r])return i[r]}},u.prototype.queryComponents=function(n){var u=n.mainType;if(!u)return[];var r,f=n.index,e=n.id,o=n.name,i=this._componentsMap.get(u);return i&&i.length?(null!=f?(r=[],t(kt(f),function(n){i[n]&&r.push(i[n])})):r=null!=e?obi("id",e,i):null!=o?obi("name",o,i):yt(i,function(n){return!!n}),sbi(r,n)):[]},u.prototype.findComponents=function(n){var t,r,u,f,e,s=n.query,i=n.mainType,o=(r=i+"Index",u=i+"Id",f=i+"Name",!(t=s)||null==t[r]&&null==t[u]&&null==t[f]?null:{mainType:i,index:t[r],id:t[u],name:t[f]}),h=o?this.queryComponents(o):yt(this._componentsMap.get(i),function(n){return!!n});return e=sbi(h,n),n.filter?yt(e,n.filter):e},u.prototype.eachComponent=function(n,t,i){var e=this._componentsMap,s,h,r,u,f;if(l(n))s=t,h=n,e.each(function(n,t){for(var r,i=0;n&&i<n.length;i++)r=n[i],r&&h.call(s,t,r,r.componentIndex)});else for(r=o(n)?e.get(n):v(n)?this.findComponents(n):null,u=0;r&&u<r.length;u++)f=r[u],f&&t.call(i,f,f.componentIndex)},u.prototype.getSeriesByName=function(n){var t=ai(n,null);return yt(this._componentsMap.get("series"),function(n){return!!n&&null!=t&&n.name===t})},u.prototype.getSeriesByIndex=function(n){return this._componentsMap.get("series")[n]},u.prototype.getSeriesByType=function(n){return yt(this._componentsMap.get("series"),function(t){return!!t&&t.subType===n})},u.prototype.getSeries=function(){return yt(this._componentsMap.get("series"),function(n){return!!n})},u.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},u.prototype.eachSeries=function(n,i){vd(this);t(this._seriesIndices,function(t){var r=this._componentsMap.get("series")[t];n.call(i,r,t)},this)},u.prototype.eachRawSeries=function(n,i){t(this._componentsMap.get("series"),function(t){t&&n.call(i,t,t.componentIndex)})},u.prototype.eachSeriesByType=function(n,i,r){vd(this);t(this._seriesIndices,function(t){var u=this._componentsMap.get("series")[t];u.subType===n&&i.call(r,u,t)},this)},u.prototype.eachRawSeriesByType=function(n,i,r){return t(this.getSeriesByType(n),i,r)},u.prototype.isSeriesFiltered=function(n){return vd(this),null==this._seriesIndicesMap.get(n.componentIndex)},u.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},u.prototype.filterSeries=function(n,i){vd(this);var r=[];t(this._seriesIndices,function(t){var u=this._componentsMap.get("series")[t];n.call(i,u,t)&&r.push(t)},this);this._seriesIndices=r;this._seriesIndicesMap=c(r)},u.prototype.restoreData=function(n){ift(this);var i=this._componentsMap,r=[];i.each(function(n,t){rt.hasClass(t)&&r.push(t)});rt.topologicalTravel(r,rt.getAllClassMainTypes(),function(r){t(i.get(r),function(t){!t||"series"===r&&function(n,t){if(t){var i=t.seriesIndex,r=t.seriesId,u=t.seriesName;return null!=i&&n.componentIndex!==i||null!=r&&n.id!==r||null!=u&&n.name!==u}}(t,n)||t.restoreData()})})},u.internalField=(ift=function(n){var i=n._seriesIndices=[];t(n._componentsMap.get("series"),function(n){n&&i.push(n.componentIndex)});n._seriesIndicesMap=c(i)},vd=function(){},void(ubi=function(n,i){n.option={};n.option[pwt]=1;n._componentsMap=c({series:[]});n._componentsCount=c();var r=i.aria;v(r)&&null==r.enabled&&(r.enabled=!0),function(n,i){var r=n.color&&!n.colorLayer;t(i,function(t,i){"colorLayer"===i&&r||rt.hasClass(i)||("object"==typeof t?n[i]=n[i]?k(n[i],t,!1):y(t):null==n[i]&&(n[i]=t))})}(i,n._theme.option);k(i,vou,!1);n._mergeOption(i,null)})),u}(at);fi(rft,vwt);var pou=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],cbi=function(n){t(pou,function(t){this[t]=s(n[t],n)},this)},wwt={},up=function(){function n(){this._coordinateSystems=[]}return n.prototype.create=function(n,i){var r=[];t(wwt,function(t){var u=t.create(n,i);r=r.concat(u||[])});this._coordinateSystems=r},n.prototype.update=function(n,i){t(this._coordinateSystems,function(t){t.update&&t.update(n,i)})},n.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},n.register=function(n,t){wwt[n]=t},n.get=function(n){return wwt[n]},n}(),wou=/^(min|max)?(.+)$/,bou=function(){function n(n){this._timelineOptions=[];this._mediaList=[];this._currentMediaIndices=[];this._api=n}return n.prototype.setOption=function(n,i){n&&(t(kt(n.series),function(n){n&&n.data&&uu(n.data)&&ob(n.data)}),t(kt(n.dataset),function(n){n&&n.source&&uu(n.source)&&ob(n.source)}));n=y(n);var f=this._optionBackup,r=function(n,i,r){function c(n){t(i,function(t){t(n,r)})}var o,f,s=[],e=n.baseOption,l=n.timeline,h=n.options,a=n.media,v=!!n.media,y=!!(h||l||e&&e.timeline);return e?(f=e).timeline||(f.timeline=l):((y||v)&&(n.options=n.media=null),f=n),v&&u(a)&&t(a,function(n){n&&n.option&&(n.query?s.push(n):o||(o=n))}),c(f),t(h,function(n){return c(n)}),t(s,function(n){return c(n.option)}),{baseOption:f,timelineOptions:h||[],mediaDefault:o,mediaList:s}}(n,i,!f);this._newBaseOption=r.baseOption;f?(r.timelineOptions.length&&(f.timelineOptions=r.timelineOptions),r.mediaList.length&&(f.mediaList=r.mediaList),r.mediaDefault&&(f.mediaDefault=r.mediaDefault)):this._optionBackup=r},n.prototype.mountOption=function(n){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],y(n?t.baseOption:this._newBaseOption)},n.prototype.getTimelineOption=function(n){var i,r=this._timelineOptions,t;return r.length&&(t=n.getComponent("timeline"),t&&(i=y(r[t.getCurrentIndex()]))),i},n.prototype.getMediaOption=function(){var e,o,h=this._api.getWidth(),c=this._api.getHeight(),i=this._mediaList,r=this._mediaDefault,n=[],u=[],t,s;if(!i.length&&!r)return u;for(t=0,s=i.length;t<s;t++)kou(i[t].query,h,c)&&n.push(t);return!n.length&&r&&(n=[-1]),n.length&&(e=n,o=this._currentMediaIndices,e.join(",")!==o.join(","))&&(u=f(n,function(n){return y(-1===n?r.option:i[n].option)})),this._currentMediaIndices=n,u},n}();var le=t,yd=v,lbi=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];var gou=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],nsu=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],kwt=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];bd=function(n){var i,t,r;if(this.data=n.data||(n.sourceFormat===so?{}:[]),this.sourceFormat=n.sourceFormat||dwi,this.seriesLayoutBy=n.seriesLayoutBy||ho,this.startIndex=n.startIndex||0,this.dimensionsDetectedCount=n.dimensionsDetectedCount,this.metaRawOption=n.metaRawOption,i=this.dimensionsDefine=n.dimensionsDefine,i)for(t=0;t<i.length;t++)r=i[t],null==r.type&&ibi(this,t)===tft&&(r.type="ordinal")};var rki=function(){function n(n,t){var i=dwt(n)?n:nbt(n),r;this._source=i;r=this._data=i.data;i.sourceFormat===gh&&(this._offset=0,this._dimSize=t,this._data=r);dbi(this,r,i)}return n.prototype.getSource=function(){return this._source},n.prototype.count=function(){return 0},n.prototype.getItem=function(){},n.prototype.appendData=function(){},n.prototype.clean=function(){},n.protoInitialize=function(){var t=n.prototype;t.pure=!1;t.persistent=!0}(),n.internalField=function(){function i(n){for(var t=0;t<n.length;t++)this._data.push(n[t])}var n;dbi=function(n,t,i){var o=i.sourceFormat,h=i.seriesLayoutBy,c=i.startIndex,l=i.dimensionsDefine,y=kbi[ibt(o,h)],a,v;(r(n,y),o===gh)?(n.getItem=u,n.count=e,n.fillStorage=f):(a=fki(o,h),n.getItem=s(a,null,t,c,l),v=oki(o,h),n.count=s(v,null,t,c,l))};var u=function(n,t){n-=this._offset;t=t||[];for(var u=this._data,r=this._dimSize,f=r*n,i=0;i<r;i++)t[i]=u[f+i];return t},f=function(n,t,i,r){for(var f,l=this._data,c=this._dimSize,e=0;e<c;e++){for(var u=r[e],s=null==u[0]?1/0:u[0],h=null==u[1]?-1/0:u[1],a=t-n,v=i[e],o=0;o<a;o++)f=l[o*c+e],v[n+o]=f,f<s&&(s=f),f>h&&(h=f);u[0]=s;u[1]=h}},e=function(){return this._data?this._data.length/this._dimSize:0};(n={})[lr+"_"+ho]={pure:!0,appendData:i};n[lr+"_"+rp]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".');}};n[cf]={pure:!0,appendData:i};n[so]={pure:!0,appendData:function(n){var i=this._data;t(n,function(n,t){for(var u=i[t]||(i[t]=[]),r=0;r<(n||[]).length;r++)u.push(n[r])})}};n[hf]={appendData:i};n[gh]={persistent:!1,pure:!0,appendData:function(n){this._data=n},clean:function(){this._offset+=this.count();this._data=null}};kbi=n}(),n}(),uki=function(n,t,i,r){return n[r]},isu=((fp={})[lr+"_"+ho]=function(n,t,i,r){return n[r+t]},fp[lr+"_"+rp]=function(n,t,i,r,u){var e;r+=t;for(var o=u||[],s=n,f=0;f<s.length;f++)e=s[f],o[f]=e?e[r]:null;return o},fp[cf]=uki,fp[so]=function(n,t,i,r,u){for(var s,o,e=u||[],f=0;f<i.length;f++)s=i[f].name,o=n[s],e[f]=o?o[r]:null;return e},fp[hf]=uki,fp);tbt=function(n){return n.length};eki=((ep={})[lr+"_"+ho]=function(n,t){return Math.max(0,n.length-t)},ep[lr+"_"+rp]=function(n,t){var i=n[0];return i?Math.max(0,i.length-t):0},ep[cf]=tbt,ep[so]=function(n,t,i){var u=i[0].name,r=n[u];return r?r.length:0},ep[hf]=tbt,ep);uft=function(n,t){return n[t]};ski=((op={})[lr]=uft,op[cf]=function(n,t,i){return n[i]},op[so]=uft,op[hf]=function(n,t){var i=uy(n);return i instanceof Array?i[t]:i},op[gh]=uft,op);cki=/\{@(.+?)\}/g;fft=function(){function n(){}return n.prototype.getDataParams=function(n,t){var i=this.getData(t),o=this.getRawValue(n,t),s=i.getRawIndex(n),h=i.getName(n),c=i.getRawDataItem(n),r=i.getItemVisual(n,"style"),l=r&&r[i.getItemVisual(n,"drawType")||"fill"],a=r&&r.stroke,e=this.mainType,f="series"===e,u=i.userOutput&&i.userOutput.get();return{componentType:e,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:f?this.subType:null,seriesIndex:this.seriesIndex,seriesId:f?this.id:null,seriesName:f?this.name:null,name:h,dataIndex:s,data:c,dataType:t,value:o,color:l,borderColor:a,dimensionNames:u?u.fullDimensions:null,encode:u?u.encode:null,$vars:["seriesName","name","value"]}},n.prototype.getFormattedLabel=function(n,t,i,r,f,e){t=t||"normal";var h=this.getData(i),s=this.getDataParams(n,i);return(e&&(s.value=e.interpolatedValue),null!=r&&u(s.value)&&(s.value=s.value[r]),f)||(f=h.getItemModel(n).get("normal"===t?["label","formatter"]:[t,"label","formatter"])),l(f)?(s.status=t,s.dimensionIndex=r,f(s)):o(f)?owt(f,s).replace(cki,function(t,i){var s=i.length,r=i,f,o;return"["===r.charAt(0)&&"]"===r.charAt(s-1)&&(r=+r.slice(1,s-1)),f=sp(h,n,r),e&&u(e.interpolatedValue)&&(o=h.getDimensionIndex(r),o>=0&&(f=e.interpolatedValue[o])),null!=f?f+"":""}):void 0},n.prototype.getRawValue=function(n,t){return sp(this.getData(t),n)},n.prototype.formatTooltip=function(){},n}();aki=function(){function n(n){n=n||{};this._reset=n.reset;this._plan=n.plan;this._count=n.count;this._onDirty=n.onDirty;this._dirty=!0}return n.prototype.perform=function(n){function y(n){return!(n>=1)&&(n=1),n}var h,r=this._upstream,c=n&&n.skip,l,a,o,t,i,s,p;this._dirty&&r&&(l=this.context,l.data=l.outputData=r.context.outputData);this.__pipeline&&(this.__pipeline.currentTask=this);this._plan&&!c&&(h=this._plan(this.context));var v,w=y(this._modBy),b=this._modDataCount||0,f=y(n&&n.modBy),e=n&&n.modDataCount||0;if(w===f&&b===e||(h="reset"),(this._dirty||"reset"===h)&&(this._dirty=!1,v=this._doReset(c)),this._modBy=f,this._modDataCount=e,a=n&&n.step,this._dueEnd=r?r._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){if(o=this._dueIndex,t=Math.min(null!=a?this._dueIndex+a:1/0,this._dueEnd),!c&&(v||o<t))if(i=this._progress,u(i))for(s=0;s<i.length;s++)this._doProgress(i[s],o,t,f,e);else this._doProgress(i,o,t,f,e);this._dueIndex=t;p=null!=this._settedOutputEnd?this._settedOutputEnd:t;this._outputDueEnd=p}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},n.prototype.dirty=function(){this._dirty=!0;this._onDirty&&this._onDirty(this.context)},n.prototype._doProgress=function(n,t,i,r,u){rbt.reset(t,i,r,u);this._callingProgress=n;this._callingProgress({start:t,end:i,count:i-t,next:rbt.next},this.context)},n.prototype._doReset=function(n){var t,r,i;return this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!n&&this._reset&&((t=this._reset(this.context))&&t.progress&&(r=t.forceFirstProgress,t=t.progress),u(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null,i=this._downstream,i&&i.dirty(),r},n.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},n.prototype.pipe=function(n){(this._downstream!==n||this._dirty)&&(this._downstream=n,n._upstream=this,n.dirty())},n.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},n.prototype.getUpstream=function(){return this._upstream},n.prototype.getDownstream=function(){return this._downstream},n.prototype.setOutputEnd=function(n){this._outputDueEnd=this._settedOutputEnd=n},n}();rbt=function(){function e(){return n<r?n++:null}function o(){var f=n%u*t+Math.ceil(n/u),e=n>=r?null:f<i?f:n;return n++,e}var r,n,t,i,u,f={reset:function(s,h,c,l){n=s;r=h;t=c;i=l;u=Math.ceil(i/t);f.next=t>1&&i>0?o:e}};return f}();vki=c({number:function(n){return parseFloat(n)},time:function(n){return+au(n)},trim:function(n){return o(n)?gu(n):n}});var pki={lt:function(n,t){return n<t},lte:function(n,t){return n<=t},gt:function(n,t){return n>t},gte:function(n,t){return n>=t}},rsu=function(){function n(n,t){if(!ht(t))vt("");this._opFn=pki[n];this._rvalFloat=io(t)}return n.prototype.evaluate=function(n){return ht(n)?this._opFn(n,this._rvalFloat):this._opFn(io(n),this._rvalFloat)},n}(),wki=function(){function n(n,t){var i="desc"===n;this._resultLT=i?1:-1;null==t&&(t=i?"min":"max");this._incomparable="min"===t?-1/0:1/0}return n.prototype.evaluate=function(n,t){var i=ht(n)?n:io(n),r=ht(t)?t:io(t),e=isNaN(i),s=isNaN(r),u,f;return(e&&(i=this._incomparable),s&&(r=this._incomparable),e&&s)&&(u=o(n),f=o(t),u&&(i=f?n:0),f&&(r=u?t:0)),i<r?this._resultLT:i>r?-this._resultLT:0},n}(),usu=function(){function n(n,t){this._rval=t;this._isEQ=n;this._rvalTypeof=typeof t;this._rvalFloat=io(t)}return n.prototype.evaluate=function(n){var t=n===this._rval,i;return t||(i=typeof n,i===this._rvalTypeof||"number"!==i&&"number"!==this._rvalTypeof||(t=io(n)===this._rvalFloat)),this._isEQ?t:!t},n}();bki=function(){function n(){}return n.prototype.getRawData=function(){throw new Error("not supported");},n.prototype.getRawDataItem=function(){throw new Error("not supported");},n.prototype.cloneRawData=function(){},n.prototype.getDimensionInfo=function(){},n.prototype.cloneAllDimensionInfo=function(){},n.prototype.count=function(){},n.prototype.retrieveValue=function(){},n.prototype.retrieveValueFromItem=function(){},n.prototype.convertValue=function(n,t){return nc(n,t)},n}();ubt=c();var ebt,eft="undefined",lsu=typeof Uint32Array===eft?Array:Uint32Array,asu=typeof Uint16Array===eft?Array:Uint16Array,kki=typeof Int32Array===eft?Array:Int32Array,dki=typeof Float64Array===eft?Array:Float64Array,gki={float:dki,int:kki,ordinal:Array,number:Array,time:dki};oft=function(){function n(){this._chunks=[];this._rawExtent=[];this._extent=[];this._count=0;this._rawCount=0;this._calcDimNameToIdx=c()}return n.prototype.initData=function(n,t,i){this._provider=n;this._chunks=[];this._indices=null;this.getRawIndex=this._getRawIdxIdentity;var r=n.getSource(),u=this.defaultDimValueGetter=ebt[r.sourceFormat];this._dimValueGetter=i||u;this._rawExtent=[];iki(r);this._dimensions=f(t,function(n){return{type:n.type,property:n.property}});this._initDataFromProvider(0,n.count())},n.prototype.getProvider=function(){return this._provider},n.prototype.getSource=function(){return this._provider.getSource()},n.prototype.ensureCalculationDimension=function(n,t){var u=this._calcDimNameToIdx,r=this._dimensions,i=u.get(n);if(null!=i){if(r[i].type===t)return i}else i=r.length;return r[i]={type:t},u.set(n,i),this._chunks[i]=new gki[t||"float"](this._rawCount),this._rawExtent[i]=[1/0,-1/0],i},n.prototype.collectOrdinalMeta=function(n,t){var e=this._chunks[n],u=this._dimensions[n],o=this._rawExtent,s=u.ordinalOffset||0,h=e.length,i,r,f;for(0===s&&(o[n]=[1/0,-1/0]),i=o[n],r=s;r<h;r++)f=e[r]=t.parseAndCollect(e[r]),isNaN(f)||(i[0]=Math.min(f,i[0]),i[1]=Math.max(f,i[1]));u.ordinalMeta=t;u.ordinalOffset=h;u.type="ordinal"},n.prototype.getOrdinalMeta=function(n){return this._dimensions[n].ordinalMeta},n.prototype.getDimensionProperty=function(n){var t=this._dimensions[n];return t&&t.property},n.prototype.appendData=function(n){var r=this._provider,i=this.count(),t;return r.appendData(n),t=r.count(),r.persistent||(t+=i),i<t&&this._initDataFromProvider(i,t,!0),[i,t]},n.prototype.appendValues=function(n,t){for(var y,u,c,i,l,r,f,a=this._chunks,h=this._dimensions,v=h.length,p=this._rawExtent,e=this.count(),o=e+Math.max(n.length,t||0),s=0;s<v;s++)ndi(a,s,(l=h[s]).type,o,!0);for(y=[],u=e;u<o;u++)for(c=u-e,i=0;i<v;i++)l=h[i],r=ebt.arrayRows.call(this,n[c]||y,l.property,c,i),a[i][u]=r,f=p[i],r<f[0]&&(f[0]=r),r>f[1]&&(f[1]=r);return this._rawCount=this._count=o,{start:e,end:o}},n.prototype._initDataFromProvider=function(n,t,i){for(var p,l,o,r,w,s,h,u=this._provider,a=this._chunks,v=this._dimensions,y=v.length,c=this._rawExtent,b=f(v,function(n){return n.property}),e=0;e<y;e++)p=v[e],c[e]||(c[e]=[1/0,-1/0]),ndi(a,e,p.type,t,i);if(u.fillStorage)u.fillStorage(n,t,a,c);else for(l=[],o=n;o<t;o++)for(l=u.getItem(o,l),r=0;r<y;r++)w=a[r],s=this._dimValueGetter(l,b[r],o,r),w[o]=s,h=c[r],s<h[0]&&(h[0]=s),s>h[1]&&(h[1]=s);!u.persistent&&u.clean&&u.clean();this._rawCount=this._count=t;this._extent=[]},n.prototype.count=function(){return this._count},n.prototype.get=function(n,t){if(!(t>=0&&t<this._count))return NaN;var i=this._chunks[n];return i?i[this.getRawIndex(t)]:NaN},n.prototype.getValues=function(n,t){var u=[],r=[],i,f;if(null==t)for(t=n,n=[],i=0;i<this._dimensions.length;i++)r.push(i);else r=n;for(i=0,f=r.length;i<f;i++)u.push(this.get(r[i],t));return u},n.prototype.getByRawIndex=function(n,t){if(!(t>=0&&t<this._rawCount))return NaN;var i=this._chunks[n];return i?i[t]:NaN},n.prototype.getSum=function(n){var r=0,t,u,i;if(this._chunks[n])for(t=0,u=this.count();t<u;t++)i=this.get(n,t),isNaN(i)||(r+=i);return r},n.prototype.getMedian=function(n){var r=[],i,t;return this.each([n],function(n){isNaN(n)||r.push(n)}),i=r.sort(function(n,t){return n-t}),t=this.count(),0===t?0:t%2==1?i[(t-1)/2]:(i[t/2]+i[t/2-1])/2},n.prototype.indexOfRawIndex=function(n){var i,r,u,f,t;if(n>=this._rawCount||n<0)return-1;if(!this._indices||(i=this._indices,r=i[n],null!=r&&r<this._count&&r===n))return n;for(u=0,f=this._count-1;u<=f;)if(t=(u+f)/2|0,i[t]<n)u=t+1;else{if(!(i[t]>n))return t;f=t-1}return-1},n.prototype.indicesOfNearest=function(n,t,i){var c=this._chunks[n],f=[],r,u;if(!c)return f;null==i&&(i=1/0);for(var o=1/0,s=-1,h=0,e=0,l=this.count();e<l;e++)r=t-c[this.getRawIndex(e)],u=Math.abs(r),u<=i&&((u<o||u===o&&r>=0&&s<0)&&(o=u,s=r,h=0),r===s&&(f[h++]=e));return f.length=h,f},n.prototype.getIndices=function(){var t,r=this._indices,i,u,n;if(r)if(i=r.constructor,u=this._count,i===Array)for(t=new i(u),n=0;n<u;n++)t[n]=r[n];else t=new i(r.buffer,0,u);else for(t=new(i=dd(this._rawCount))(this.count()),n=0;n<t.length;n++)t[n]=n;return t},n.prototype.filter=function(n,t){var f,e,u;if(!this._count)return this;for(var i=this.clone(),o=i.count(),l=new(dd(i._rawCount))(o),s=[],h=n.length,c=0,v=n[0],a=i._chunks,r=0;r<o;r++){if(f=void 0,e=i.getRawIndex(r),0===h)f=t(r);else if(1===h)f=t(a[v][e],r);else{for(u=0;u<h;u++)s[u]=a[n[u]][e];s[u]=r;f=t.apply(null,s)}f&&(l[c++]=e)}return c<o&&(i._indices=l),i._count=c,i._extent=[],i._updateGetRawIdx(),i},n.prototype.selectRange=function(n){var i=this.clone(),w=i._count,u,f,h,a,t,r,v,c,g,y,p;if(!w||(u=et(n),f=u.length,!f))return this;var l=i.count(),o=new(dd(i._rawCount))(l),e=0,nt=u[0],b=n[nt][0],k=n[nt][1],s=i._chunks,d=!1;if(!i._indices)if(h=0,1===f){for(a=s[u[0]],t=0;t<w;t++)((r=a[t])>=b&&r<=k||isNaN(r))&&(o[e++]=h),h++;d=!0}else if(2===f){a=s[u[0]];var tt=s[u[1]],it=n[u[1]][0],rt=n[u[1]][1];for(t=0;t<w;t++)r=a[t],v=tt[t],(r>=b&&r<=k||isNaN(r))&&(v>=it&&v<=rt||isNaN(v))&&(o[e++]=h),h++;d=!0}if(!d)if(1===f)for(t=0;t<l;t++)c=i.getRawIndex(t),((r=s[u[0]][c])>=b&&r<=k||isNaN(r))&&(o[e++]=c);else for(t=0;t<l;t++){for(g=!0,y=(c=i.getRawIndex(t),0);y<f;y++)p=u[y],((r=s[p][c])<n[p][0]||r>n[p][1])&&(g=!1);g&&(o[e++]=i.getRawIndex(t))}return e<l&&(i._indices=o),i._count=e,i._extent=[],i._updateGetRawIdx(),i},n.prototype.map=function(n,t){var i=this.clone(n);return this._updateDims(i,n,t),i},n.prototype.modify=function(n,t){this._updateDims(this,n,t)},n.prototype._updateDims=function(n,t,i){for(var f,c,e,u,l=n._chunks,a=[],v=t.length,b=n.count(),h=[],y=n._rawExtent,r=0;r<t.length;r++)y[t[r]]=[1/0,-1/0];for(f=0;f<b;f++){for(c=n.getRawIndex(f),e=0;e<v;e++)h[e]=l[t[e]][c];if(h[v]=f,u=i&&i.apply(null,h),null!=u)for("object"!=typeof u&&(a[0]=u,u=a),r=0;r<u.length;r++){var p=t[r],o=u[r],s=y[p],w=l[p];w&&(w[c]=o);o<s[0]&&(s[0]=o);o>s[1]&&(s[1]=o)}}},n.prototype.lttbDownSample=function(n,t){var y,nt,u,o=this.clone([n],!0),p=o._chunks[n],f=this.count(),s=0,h=Math.floor(1/t),w=this.getRawIndex(0),c=new(dd(this._rawCount))(Math.min(2*(Math.ceil(f/h)+2),f)),i,e,l,a,v;for(c[s++]=w,i=1;i<f-1;i+=h){for(var b=Math.min(i+h,f-1),k=Math.min(i+2*h,f),ut=(k+b)/2,d=0,r=b;r<k;r++)e=p[v=this.getRawIndex(r)],isNaN(e)||(d+=e);d/=k-b;var g=i,tt=Math.min(i+h,f),it=i-1,rt=p[w];for(y=-1,u=g,l=-1,a=0,r=g;r<tt;r++)e=p[v=this.getRawIndex(r)],isNaN(e)?(a++,l<0&&(l=v)):(nt=Math.abs((it-ut)*(e-rt)-(it-r)*(d-rt)))>y&&(y=nt,u=v);a>0&&a<tt-g&&(c[s++]=Math.min(l,u),u=Math.max(l,u));c[s++]=u;w=u}return c[s++]=this.getRawIndex(f-1),o._count=s,o._indices=c,o.getRawIndex=this._getRawIdx,o},n.prototype.downSample=function(n,t,i,r){for(var h,w,u,a,f=this.clone([n],!0),b=f._chunks,c=[],e=Math.floor(1/t),v=b[n],s=this.count(),l=f._rawExtent[n]=[1/0,-1/0],y=new(dd(this._rawCount))(Math.ceil(s/e)),p=0,o=0;o<s;o+=e){for(e>s-o&&(e=s-o,c.length=e),h=0;h<e;h++)w=this.getRawIndex(o+h),c[h]=v[w];u=i(c);a=this.getRawIndex(Math.min(o+r(c,u)||0,s-1));v[a]=u;u<l[0]&&(l[0]=u);u>l[1]&&(l[1]=u);y[p++]=a}return f._count=p,f._indices=y,f._updateGetRawIdx(),f},n.prototype.each=function(n,t){var u,r,e;if(this._count)for(var o=n.length,f=this._chunks,i=0,s=this.count();i<s;i++){u=this.getRawIndex(i);switch(o){case 0:t(i);break;case 1:t(f[n[0]][u],i);break;case 2:t(f[n[0]][u],f[n[1]][u],i);break;default:for(r=0,e=[];r<o;r++)e[r]=f[n[r]][u];e[r]=i;t.apply(null,e)}}},n.prototype.getDataExtent=function(n){var e=this._chunks[n],o=[1/0,-1/0],t,s,i;if(!e)return o;if(s=this.count(),!this._indices)return this._rawExtent[n].slice();if(t=this._extent[n])return t.slice();for(var r=(t=o)[0],u=t[1],f=0;f<s;f++)i=e[this.getRawIndex(f)],i<r&&(r=i),i>u&&(u=i);return t=[r,u],this._extent[n]=t,t},n.prototype.getRawDataItem=function(n){var i=this.getRawIndex(n);if(this._provider.persistent)return this._provider.getItem(i);for(var r=[],u=this._chunks,t=0;t<u.length;t++)r.push(u[t][i]);return r},n.prototype.clone=function(t,i){var f,o,u=new n,e=this._chunks,s=t&&du(t,function(n,t){return n[t]=!0,n},{}),r;if(s)for(r=0;r<e.length;r++)u._chunks[r]=s[r]?(f=e[r],o=void 0,(o=f.constructor)===Array?f.slice():new o(f)):e[r];else u._chunks=e;return this._copyCommonProps(u),i||(u._indices=this._cloneIndices()),u._updateGetRawIdx(),u},n.prototype._copyCommonProps=function(n){n._count=this._count;n._rawCount=this._rawCount;n._provider=this._provider;n._dimensions=this._dimensions;n._extent=y(this._extent);n._rawExtent=y(this._rawExtent)},n.prototype._cloneIndices=function(){var i,n,r,t;if(this._indices){if(i=this._indices.constructor,n=void 0,i===Array)for(r=this._indices.length,n=new i(r),t=0;t<r;t++)n[t]=this._indices[t];else n=new i(this._indices);return n}return null},n.prototype._getRawIdxIdentity=function(n){return n},n.prototype._getRawIdx=function(n){return n<this._count&&n>=0?this._indices[n]:-1},n.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},n.internalField=function(){function n(n,t,i,r){return nc(n[r],this._dimensions[r])}ebt={arrayRows:n,objectRows:function(n,t,i,r){return nc(n[t],this._dimensions[r])},keyedColumns:n,original:function(n,t,i,r){var u=n&&(null==n.value?n:n.value);return nc(u instanceof Array?u[r]:u,this._dimensions[r])},typedArray:function(n,t,i,r){return n[r]}}}(),n}();obt=function(){function n(n){this._sourceList=[];this._storeList=[];this._upstreamSignList=[];this._versionSignBase=0;this._dirty=!0;this._sourceHost=n}return n.prototype.dirty=function(){this._setLocalSource([],[]);this._storeList=[];this._dirty=!0},n.prototype._setLocalSource=function(n,t){this._sourceList=n;this._upstreamSignList=t;this._versionSignBase++;this._versionSignBase>9e10&&(this._versionSignBase=0)},n.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},n.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},n.prototype._createSource=function(){var u,p,c;this._setLocalSource([],[]);var i,n,f=this._sourceHost,e=this._getUpstreamSourceManagers(),l=!!e.length;if(sft(f)){var w=f,o=void 0,s=void 0,r=void 0;l?(u=e[0],u.prepareSource(),o=(r=u.getSource()).data,s=r.sourceFormat,n=[u._getVersionSign()]):(s=uu(o=w.get("data",!0))?gh:hf,n=[]);var h=this._getSourceMetaRawOption()||{},t=r&&r.metaRawOption||{},a=d(h.seriesLayoutBy,t.seriesLayoutBy)||null,v=d(h.sourceHeader,t.sourceHeader),y=d(h.dimensions,t.dimensions);i=a!==t.seriesLayoutBy||!!v!=!!t.sourceHeader||y?[gwt(o,{seriesLayoutBy:a,sourceHeader:v,dimensions:y},s)]:[]}else p=f,l?(c=this._applyTransform(e),i=c.sourceList,n=c.upstreamSignList):(i=[gwt(p.get("source",!0),this._getSourceMetaRawOption(),null)],n=[]);this._setLocalSource(i,n)},n.prototype._applyTransform=function(n){var f,e=this._sourceHost,s=e.get("transform",!0),r=e.get("fromTransformResult",!0),h,i,u,o;return null!=r&&(h="",1!==n.length&&idi(h)),u=[],o=[],t(n,function(n){n.prepareSource();var t=n.getSource(r||0);null==r||t||idi("");u.push(t);o.push(n._getVersionSign())}),s?f=function(n,t){var u=kt(n),f=u.length,i,r;for(f||vt(""),i=0,r=f;i<r;i++)t=csu(u[i],t),i!==r-1&&(t.length=Math.max(t.length,1));return t}(s,u,e.componentIndex):null!=r&&(f=[(i=u[0],new bd({data:i.data,sourceFormat:i.sourceFormat,seriesLayoutBy:i.seriesLayoutBy,dimensionsDefine:y(i.dimensionsDefine),startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount}))]),{sourceList:f,upstreamSignList:o}},n.prototype._isDirty=function(){var t,n,i;if(this._dirty)return!0;for(t=this._getUpstreamSourceManagers(),n=0;n<t.length;n++)if(i=t[n],i._isDirty()||this._upstreamSignList[n]!==i._getVersionSign())return!0},n.prototype.getSource=function(n){var t,i;return(n=n||0,t=this._sourceList[n],!t)?(i=this._getUpstreamSourceManagers(),i[0]&&i[0].getSource(n)):t},n.prototype.getSharedDataStore=function(n){var t=n.makeStoreSchema();return this._innerGetDataStore(t.dimensions,n.source,t.hash)},n.prototype._innerGetDataStore=function(n,t,i){var e=this._storeList,u=e[0],r,f;return u||(u=e[0]={}),r=u[i],r||(f=this._getUpstreamSourceManagers()[0],sft(this._sourceHost)&&f?r=f._innerGetDataStore(n,t,i):(r=new oft).initData(new rki(t,n.length),n),u[i]=r),r},n.prototype._getUpstreamSourceManagers=function(){var n=this._sourceHost,t;return sft(n)?(t=lwt(n),t?[t.getSourceManager()]:[]):f(function(n){return n.get("transform",!0)||n.get("fromTransformResult",!0)?yk(n.ecModel,"dataset",{index:n.get("fromDatasetIndex",!0),id:n.get("fromDatasetId",!0)},oi).models:[]}(n),function(n){return n.getSourceManager()})},n.prototype._getSourceMetaRawOption=function(){var i,r,u,n=this._sourceHost,t;return sft(n)?(i=n.get("seriesLayoutBy",!0),r=n.get("sourceHeader",!0),u=n.get("dimensions",!0)):this._getUpstreamSourceManagers().length||(t=n,i=t.get("seriesLayoutBy",!0),r=t.get("sourceHeader",!0),u=t.get("dimensions",!0)),{seriesLayoutBy:i,sourceHeader:r,dimensions:u}},n}();sbt="line-height:1";udi=[0,10,20,30];fdi=["","\n","\n\n","\n\n\n"];hft=function(){function n(){this.richTextStyles={};this._nextStyleNameId=fli()}return n.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},n.prototype.makeTooltipMarker=function(n,t,i){var u="richText"===i?this._generateStyleName():null,r=ywi({color:t,type:n,renderMode:i,markerId:u});return o(r)?r:(this.richTextStyles[u]=r.style,r.content)},n.prototype.wrapRichTextStyle=function(n,i){var f={},e;return u(i)?t(i,function(n){return r(f,n)}):r(f,i),e=this._generateStyleName(),this.richTextStyles[e]=f,"{"+e+"|"+n+"}"},n}();ls=ct();gd="__universalTransitionEnabled";bt=function(n){function t(){var t=null!==n&&n.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return i(t,n),t.prototype.init=function(n,t,i){this.seriesIndex=this.componentIndex;this.dataTask=kd({count:psu,reset:wsu});this.dataTask.context={model:this};this.mergeDefaultAndTheme(n,i);(ls(this).sourceManager=new obt(this)).prepareSource();var r=this.getInitialData(n,i);ydi(r,this);this.dataTask.context.data=r;ls(this).dataBeforeProcessed=r;vdi(this);this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(n,t){var i=ad(this),u=i?tp(n):{},r=this.subType;rt.hasClass(r)&&(r+="Series");k(n,t.getTheme().get(this.subType));k(n,this.getDefaultOption());ul(n,"label",["show"]);this.fillDataTextStyle(n.data);i&&dh(n,u,i)},t.prototype.mergeOption=function(n,t){var r,u,i;n=k(this.option,n,!0);this.fillDataTextStyle(n.data);r=ad(this);r&&dh(this.option,n,r);u=ls(this).sourceManager;u.dirty();u.prepareSource();i=this.getInitialData(n,t);ydi(i,this);this.dataTask.dirty();this.dataTask.context.data=i;ls(this).dataBeforeProcessed=i;vdi(this);this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(n){if(n&&!uu(n))for(var i=["show"],t=0;t<n.length;t++)n[t]&&n[t].label&&ul(n[t],"label",i)},t.prototype.getInitialData=function(){},t.prototype.appendData=function(n){this.getRawData().appendData(n.data)},t.prototype.getData=function(n){var i=lbt(this),t;return i?(t=i.context.data,null==n?t:t.getLinkedData(n)):ls(this).data},t.prototype.getAllData=function(){var n=this.getData();return n&&n.getLinkedDataAll?n.getLinkedDataAll():[{data:n}]},t.prototype.setData=function(n){var t=lbt(this),i;t&&(i=t.context,i.outputData=n,t!==this.dataTask&&(i.data=n));ls(this).data=n},t.prototype.getEncode=function(){var n=this.get("encode",!0);if(n)return c(n)},t.prototype.getSourceManager=function(){return ls(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return ls(this).dataBeforeProcessed},t.prototype.getColorBy=function(){return this.get("colorBy")||"series"},t.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},t.prototype.getBaseAxis=function(){var n=this.coordinateSystem;return n&&n.getBaseAxis&&n.getBaseAxis()},t.prototype.formatTooltip=function(n,t){return adi({series:this,dataIndex:n,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var t=this.ecModel,n;return ft.node&&(!t||!t.ssr)?!1:(n=this.getShallow("animation"),n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n)},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(n,t,i){var u=this.ecModel,r=vwt.prototype.getColorFromPalette.call(this,n,t,i);return r||(r=u.getColorFromPalette(n,t,i)),r},t.prototype.coordDimToDataDim=function(n){return this.getRawData().mapDimensionsAll(n)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(n,t){this._innerSelect(this.getData(t),n)},t.prototype.unselect=function(n,t){var r=this.option.selectedMap,f,e,i,u;if(r){if(f=this.option.selectedMode,e=this.getData(t),"series"===f||"all"===r)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(i=0;i<n.length;i++)u=cft(e,n[i]),r[u]=!1,this._selectedDataIndicesMap[u]=-1}},t.prototype.toggleSelect=function(n,t){for(var r=[],i=0;i<n.length;i++)r[0]=n[i],this.isSelected(n[i],t)?this.unselect(r,t):this.select(r,t)},t.prototype.getSelectedDataIndices=function(){var t;if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var i=this._selectedDataIndicesMap,r=et(i),u=[],n=0;n<r.length;n++)t=i[r[n]],t>=0&&u.push(t);return u},t.prototype.isSelected=function(n,t){var i=this.option.selectedMap,r;return i?(r=this.getData(t),("all"===i||i[cft(r,n)])&&!r.getItemModel(n).get(["select","disabled"])):!1},t.prototype.isUniversalTransitionEnabled=function(){if(this[gd])return!0;var n=this.option.universalTransition;return!!n&&(!0===n||n&&n.enabled)},t.prototype._innerSelect=function(n,t){var h,c,i=this.option,r=i.selectedMode,e=t.length,l,f,o,s,u;if(r&&e)if("series"===r)i.selectedMap="all";else if("multiple"===r)for(v(i.selectedMap)||(i.selectedMap={}),l=i.selectedMap,f=0;f<e;f++)o=t[f],l[u=cft(n,o)]=!0,this._selectedDataIndicesMap[u]=n.getRawIndex(o);else("single"===r||!0===r)&&(s=t[e-1],u=cft(n,s),i.selectedMap=((h={})[u]=!0,h),this._selectedDataIndicesMap=((c={})[u]=n.getRawIndex(s),c))},t.prototype._initSelectedMapFromData=function(n){if(!this.option.selectedMap){var t=[];n.hasItemOption&&n.each(function(i){var r=n.getRawDataItem(i);r&&r.selected&&t.push(i)});t.length>0&&this._innerSelect(n,t)}},t.registerClass=function(n){return rt.registerClass(n)},t.protoInitialize=function(){var n=t.prototype;n.type="series.__base__";n.seriesIndex=0;n.ignoreStyleOnData=!1;n.hasSymbolVisual=!1;n.defaultSymbol="circle";n.visualStyleAccessPath="itemStyle";n.visualDrawType="fill"}(),t}(rt);fi(bt,fft);fi(bt,vwt);wli(bt,rt);ni=function(){function n(){this.group=new p;this.uid=dy("viewComponent")}return n.prototype.init=function(){},n.prototype.render=function(){},n.prototype.dispose=function(){},n.prototype.updateView=function(){},n.prototype.updateLayout=function(){},n.prototype.updateVisual=function(){},n.prototype.toggleBlurSeries=function(){},n.prototype.eachRendered=function(n){var t=this.group;t&&t.traverse(n)},n}();vvt(ni);ert(ni);var pdi=ct(),dsu=hp(),wt=function(){function n(){this.group=new p;this.uid=dy("viewChart");this.renderTask=kd({plan:gsu,reset:nhu});this.renderTask.context={view:this}}return n.prototype.init=function(){},n.prototype.render=function(){0},n.prototype.highlight=function(n,t,i,r){var u=n.getData(r&&r.dataType);u&&bdi(u,r,"emphasis")},n.prototype.downplay=function(n,t,i,r){var u=n.getData(r&&r.dataType);u&&bdi(u,r,"normal")},n.prototype.remove=function(){this.group.removeAll()},n.prototype.dispose=function(){},n.prototype.updateView=function(n,t,i,r){this.render(n,t,i,r)},n.prototype.updateLayout=function(n,t,i,r){this.render(n,t,i,r)},n.prototype.updateVisual=function(n,t,i,r){this.render(n,t,i,r)},n.prototype.eachRendered=function(n){ph(this.group,n)},n.markUpdateMethod=function(n,t){pdi(n).updateMethod=t},n.protoInitialize=void(n.prototype.type="chart"),n}();vvt(wt);ert(wt);var thu={incrementalPrepareRender:{progress:function(n,t){t.view.incrementalRender(n,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(n,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},lft="\0__throttleOriginMethod",kdi="\0__throttleRate",ddi="\0__throttleType";var gdi=ct(),ngi={itemStyle:el(kpi,!0),lineStyle:el(bpi,!0)},ihu={lineStyle:"stroke",itemStyle:"fill"};var rhu={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,t){var f=n.getData(),o=n.visualStyleAccessPath||"itemStyle",c=n.getModel(o),i=tgi(n,o)(c),s=c.getShallow("decal"),e;s&&(f.setVisual("decal",s),s.dirty=!0);var u=igi(n,o),a=i[u],h=l(a)?a:null,v="auto"===i.fill||"auto"===i.stroke;return(!i[u]||h||v)&&(e=n.getColorFromPalette(n.name,null,t.getSeriesCount()),i[u]||(i[u]=e,f.setVisual("colorFromPalette",!0)),i.fill="auto"===i.fill||l(i.fill)?e:i.fill,i.stroke="auto"===i.stroke||l(i.stroke)?e:i.stroke),(f.setVisual("style",i),f.setVisual("drawType",u),!t.isSeriesFiltered(n)&&h)?(f.setVisual("colorFromPalette",!1),{dataEach:function(t,f){var o=n.getDataParams(f),e=r({},i);e[u]=h(o);t.setItemVisual(f,"style",e)}}):void 0}},tg=new at,uhu={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,t){if(!n.ignoreStyleOnData&&!t.isSeriesFiltered(n)){var u=n.getData(),i=n.visualStyleAccessPath||"itemStyle",f=tgi(n,i),e=u.getVisual("drawType");return{dataEach:u.hasItemOption?function(n,t){var u=n.getRawDataItem(t),o;u&&u[i]&&(tg.option=u[i],o=f(tg),r(n.ensureUniqueItemVisual(t,"style"),o),tg.option.decal&&(n.setItemVisual(t,"decal",tg.option.decal),tg.option.decal.dirty=!0),e in o&&n.setItemVisual(t,"colorFromPalette",!1))}:null}}}},fhu={performRawSeries:!0,overallReset:function(n){var t=c();n.eachSeries(function(n){var u=n.getColorBy(),r,i;n.isColorBySeries()||(r=n.type+"-"+u,i=t.get(r),i||(i={},t.set(r,i)),gdi(n).scope=i)});n.eachSeries(function(t){if(!t.isColorBySeries()&&!n.isSeriesFiltered(t)){var r=t.getRawData(),u={},i=t.getData(),f=gdi(t).scope,e=t.visualStyleAccessPath||"itemStyle",o=igi(t,e);i.each(function(n){var t=i.getRawIndex(n);u[t]=n});r.each(function(n){var e=u[n];if(i.getItemVisual(e,"colorFromPalette")){var s=i.ensureUniqueItemVisual(e,"style"),h=r.getName(n)||n+"",c=r.count();s[o]=t.getColorFromPalette(h,f,c)}})}})}},vft=Math.PI,rgi=function(){function n(n,t,i,r){this._stageTaskMap=c();this.ecInstance=n;this.api=t;i=this._dataProcessorHandlers=i.slice();r=this._visualHandlers=r.slice();this._allHandlers=i.concat(r)}return n.prototype.restoreData=function(n,t){n.restoreData(t);this._stageTaskMap.each(function(n){var t=n.overallTask;t&&t.dirty()})},n.prototype.getPerformArgs=function(n,t){if(n.__pipeline){var i=this._pipelineMap.get(n.__pipeline.id),r=i.context,f=!t&&i.progressiveEnabled&&(!r||r.progressiveRender)&&n.__idxInPipeline>i.blockIndex?i.step:null,u=r&&r.modDataCount;return{step:f,modBy:null!=u?Math.ceil(u/f):null,modDataCount:u}}},n.prototype.getPipeline=function(n){return this._pipelineMap.get(n)},n.prototype.updateStreamModes=function(n,t){var i=this._pipelineMap.get(n.uid),r=n.getData().count(),u=i.progressiveEnabled&&t.incrementalPrepareRender&&r>=i.threshold,f=n.get("large")&&r>=n.get("largeThreshold"),e="mod"===n.get("progressiveChunkMode")?r:null;n.pipelineContext=i.context={progressiveRender:u,modDataCount:e,large:f}},n.prototype.restorePipelines=function(n){var t=this,i=t._pipelineMap=c();n.eachSeries(function(n){var r=n.getProgressive(),u=n.uid;i.set(u,{id:u,head:null,tail:null,threshold:n.getProgressiveThreshold(),progressiveEnabled:r&&!(n.preventIncremental&&n.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0});t._pipe(n,n.dataTask)})},n.prototype.prepareStageTasks=function(){var n=this._stageTaskMap,i=this.api.getModel(),r=this.api;t(this._allHandlers,function(t){var u=n.get(t.uid)||n.set(t.uid,{});sr(!(t.reset&&t.overallReset),"");t.reset&&this._createSeriesStageTask(t,u,i,r);t.overallReset&&this._createOverallStageTask(t,u,i,r)},this)},n.prototype.prepareView=function(n,t,i,r){var u=n.renderTask,f=u.context;f.model=t;f.ecModel=i;f.api=r;u.__block=!n.incrementalPrepareRender;this._pipe(t,u)},n.prototype.performDataProcessorTasks=function(n,t){this._performStageTasks(this._dataProcessorHandlers,n,t,{block:!0})},n.prototype.performVisualTasks=function(n,t,i){this._performStageTasks(this._visualHandlers,n,t,i)},n.prototype._performStageTasks=function(n,i,r,u){function o(n,t){return n.setDirty&&(!n.dirtyMap||n.dirtyMap.get(t.__pipeline.id))}u=u||{};var e=!1,f=this;t(n,function(n){var a,s,h;if(!u.visualType||u.visualType===n.visualType){var c=f._stageTaskMap.get(n.uid),l=c.seriesTaskMap,t=c.overallTask;t?(s=t.agentStubMap,s.each(function(n){o(u,n)&&(n.dirty(),a=!0)}),a&&t.dirty(),f.updatePayload(t,r),h=f.getPerformArgs(t,u.block),s.each(function(n){n.perform(h)}),t.perform(h)&&(e=!0)):l&&l.each(function(t){o(u,t)&&t.dirty();var s=f.getPerformArgs(t,u.block);s.skip=!n.performRawSeries&&i.isSeriesFiltered(t.context.model);f.updatePayload(t,r);t.perform(s)&&(e=!0)})}});this.unfinished=e||this.unfinished},n.prototype.performSeriesTasks=function(n){var t;n.eachSeries(function(n){t=n.dataTask.perform()||t});this.unfinished=t||this.unfinished},n.prototype.plan=function(){this._pipelineMap.each(function(n){var t=n.tail;do{if(t.__block){n.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},n.prototype.updatePayload=function(n,t){"remain"!==t&&(n.context.payload=t)},n.prototype._createSeriesStageTask=function(n,t,i,r){function u(t){var u=t.uid,o=h.set(u,e&&e.get(u)||kd({plan:chu,reset:lhu,count:ahu}));o.context={model:t,ecModel:i,api:r,useClearVisual:n.isVisual&&!n.isLayout,plan:n.plan,reset:n.reset,scheduler:f};f._pipe(t,o)}var f=this,e=t.seriesTaskMap,h=t.seriesTaskMap=c(),o=n.seriesType,s=n.getTargetSeries;n.createOnAllSeries?i.eachRawSeries(u):o?i.eachRawSeriesByType(o,u):s&&s(i,r).each(u)},n.prototype._createOverallStageTask=function(n,i,r,u){function o(n){var i=n.uid,t=y.set(i,h&&h.get(i)||(v=!0,kd({reset:ohu,onDirty:hhu})));t.context={model:n,overallProgress:e};t.agent=f;t.__block=e;s._pipe(n,t)}var s=this,f=i.overallTask=i.overallTask||kd({reset:ehu});f.context={ecModel:r,api:u,overallReset:n.overallReset,scheduler:s};var h=f.agentStubMap,y=f.agentStubMap=c(),l=n.seriesType,a=n.getTargetSeries,e=!0,v=!1;sr(!n.createOnAllSeries,"");l?r.eachRawSeriesByType(l,o):a?a(r,u).each(o):(e=!1,t(r.getSeries(),o));v&&f.dirty()},n.prototype._pipe=function(n,t){var r=n.uid,i=this._pipelineMap.get(r);i.head||(i.head=t);i.tail&&i.tail.pipe(t);i.tail=t;t.__idxInPipeline=i.count++;t.__pipeline=i},n.wrapStageHandler=function(n,t){return l(n)&&(n={overallReset:n,seriesType:vhu(n)}),n.uid=dy("stageHandler"),t&&(n.visualType=t),n},n}();ugi=fgi(0);lp={};abt={};egi(lp,rft);egi(abt,cbi);lp.eachSeriesByType=lp.eachRawSeriesByType=function(n){yft=n};lp.eachComponent=function(n){"series"===n.mainType&&n.subType&&(yft=n.subType)};var ogi=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],yhu={color:ogi,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],ogi]},tu="#B9B8CE",sgi="#100C2A",pft=function(){return{axisLine:{lineStyle:{color:tu}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},hgi=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],cgi={darkMode:!0,color:hgi,backgroundColor:sgi,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:tu}},textStyle:{color:tu},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:tu}},dataZoom:{borderColor:"#71708A",textStyle:{color:tu},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:tu}},timeline:{lineStyle:{color:tu},label:{color:tu},controlStyle:{color:tu,borderColor:tu}},calendar:{itemStyle:{color:sgi},dayLabel:{color:tu},monthLabel:{color:tu},yearLabel:{color:tu}},timeAxis:pft(),logAxis:pft(),valueAxis:pft(),categoryAxis:pft(),line:{symbol:"circle"},graph:{color:hgi},gauge:{title:{color:tu},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:tu},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};cgi.categoryAxis.splitLine.show=!1;var phu=function(){function n(){}return n.prototype.normalizeQuery=function(n){var i={},f={},e={},r,u,s;return o(n)?(r=ro(n),i.mainType=r.main||null,i.subType=r.sub||null):(u=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1},t(n,function(n,t){for(var h,c,l,r=!1,o=0;o<u.length;o++)h=u[o],c=t.lastIndexOf(h),c>0&&c===t.length-h.length&&(l=t.slice(0,c),"data"!==l&&(i.mainType=l,i[h.toLowerCase()]=n,r=!0));s.hasOwnProperty(t)&&(f[t]=n,r=!0);r||(e[t]=n)})),{cptQuery:i,dataQuery:f,otherQuery:e}},n.prototype.filter=function(n,t){function i(n,t,i,r){return null==n[i]||t[r||i]===n[i]}var f=this.eventInfo,u,o;if(!f)return!0;var h=f.targetEl,e=f.packedEvent,r=f.model,s=f.view;return!r||!s?!0:(u=t.cptQuery,o=t.dataQuery,i(u,r,"mainType")&&i(u,r,"subType")&&i(u,r,"index","componentIndex")&&i(u,r,"name")&&i(u,r,"id")&&i(o,e,"name")&&i(o,e,"dataIndex")&&i(o,e,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(n,t.otherQuery,h,e)))},n.prototype.afterTrigger=function(){this.eventInfo=null},n}(),vbt=["symbol","symbolSize","symbolRotate","symbolOffset"],lgi=vbt.concat(["symbolKeepAspect"]),whu={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,t){var h=n.getData(),u,f,s;if(n.legendIcon&&h.setVisual("legendIcon",n.legendIcon),n.hasSymbolVisual){for(var i={},e={},c=!1,o=0;o<vbt.length;o++)u=vbt[o],f=n.get(u),l(f)?(c=!0,e[u]=f):i[u]=f;if(i.symbol=i.symbol||n.defaultSymbol,h.setVisual(r({legendIcon:n.legendIcon||i.symbol,symbolKeepAspect:n.get("symbolKeepAspect")},i)),!t.isSeriesFiltered(n))return s=et(e),{dataEach:c?function(t,i){for(var u,f=n.getRawValue(i),o=n.getDataParams(i),r=0;r<s.length;r++)u=s[r],t.setItemVisual(i,u,e[u](f,o))}:null}}}},bhu={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,t){if(n.hasSymbolVisual&&!t.isSeriesFiltered(n))return{dataEach:n.getData().hasItemOption?function(n,t){for(var r,u,f=n.getItemModel(t),i=0;i<lgi.length;i++)r=lgi[i],u=f.getShallow(r,!0),null!=u&&n.setItemVisual(t,r,u)}:null}}};var khu=Math.round(9*Math.random()),dhu="function"==typeof Object.defineProperty,ghu=function(){function n(){this._id="__ec_inner_"+khu++}return n.prototype.get=function(n){return this._guard(n)[this._id]},n.prototype.set=function(n,t){var i=this._guard(n);return dhu?Object.defineProperty(i,this._id,{value:t,enumerable:!1,configurable:!0}):i[this._id]=t,this},n.prototype.delete=function(n){return!!this.has(n)&&(delete this._guard(n)[this._id],!0)},n.prototype.has=function(n){return!!this._guard(n)[this._id]},n.prototype._guard=function(n){if(n!==Object(n))throw TypeError("Value of WeakMap is not a non-null object.");return n},n}(),ncu=ut.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(n,t){var i=t.cx,r=t.cy,f=t.width/2,u=t.height/2;n.moveTo(i,r-u);n.lineTo(i+f,r+u);n.lineTo(i-f,r+u);n.closePath()}}),tcu=ut.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(n,t){var i=t.cx,r=t.cy,u=t.width/2,f=t.height/2;n.moveTo(i,r-f);n.lineTo(i+u,r);n.lineTo(i,r+f);n.lineTo(i-u,r);n.closePath()}}),icu=ut.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(n,t){var r=t.x,o=t.y,c=t.width/5*3,l=Math.max(c,t.height),i=c/2,u=i*i/(l-i),f=o-l+i+u,e=Math.asin(u/i),s=Math.cos(e)*i,a=Math.sin(e),v=Math.cos(e),h=.6*i,y=.7*i;n.moveTo(r-s,f+u);n.arc(r,f,i,Math.PI-e,2*Math.PI+e);n.bezierCurveTo(r+s-a*h,f+u+v*h,r,o-y,r,o);n.bezierCurveTo(r,o-y,r-s+a*h,f+u+v*h,r-s,f+u);n.closePath()}}),rcu=ut.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(n,t){var u=t.height,e=t.width,i=t.x,r=t.y,f=e/3*2;n.moveTo(i,r);n.lineTo(i+f,r+u);n.lineTo(i,r+u/4*3);n.lineTo(i-f,r+u);n.lineTo(i,r);n.closePath()}}),ucu={line:function(n,t,i,r,u){u.x1=n;u.y1=t+r/2;u.x2=n+i;u.y2=t+r/2},rect:function(n,t,i,r,u){u.x=n;u.y=t;u.width=i;u.height=r},roundRect:function(n,t,i,r,u){u.x=n;u.y=t;u.width=i;u.height=r;u.r=Math.min(i,r)/4},square:function(n,t,i,r,u){var f=Math.min(i,r);u.x=n;u.y=t;u.width=f;u.height=f},circle:function(n,t,i,r,u){u.cx=n+i/2;u.cy=t+r/2;u.r=Math.min(i,r)/2},diamond:function(n,t,i,r,u){u.cx=n+i/2;u.cy=t+r/2;u.width=i;u.height=r},pin:function(n,t,i,r,u){u.x=n+i/2;u.y=t+r/2;u.width=i;u.height=r},arrow:function(n,t,i,r,u){u.x=n+i/2;u.y=t+r/2;u.width=i;u.height=r},triangle:function(n,t,i,r,u){u.cx=n+i/2;u.cy=t+r/2;u.width=i;u.height=r}},wft={};t({line:vi,rect:ot,roundRect:ot,square:ot,circle:vu,diamond:tcu,pin:icu,arrow:rcu,triangle:ncu},function(n,t){wft[t]=new n});ygi=ut.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(n,t,i){var r=nrt(n,t,i),u=this.shape;return u&&"pin"===u.symbolType&&"inside"===t.position&&(r.y=i.y+.4*i.height),r},buildPath:function(n,t,i){var u=t.symbolType,r;"none"!==u&&(r=wft[u],r||(r=wft[u="rect"]),ucu[u](t.x,t.y,t.width,t.height,r.shape),r.buildPath(n,r.shape,i))}});pgi=new fe(!0);kbt=["shadowBlur","shadowOffsetX","shadowOffsetY"];dbt=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];var nkt=new ghu,tni=new db(100),ini=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];af=new nf;tkt={};var ikt=2e3,gft=4500,oni={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:ikt,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:gft,ARIA:6e3,DECAL:7e3}},vr="__flagInMainProcess",hu="__pendingUpdate",rkt="__needsUpdateStatus",sni=/^[a-zA-Z0-9_]+$/,ukt="__connectUpdateStatus";ckt=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return i(t,n),t}(nf);lkt=ckt.prototype;lkt.on=cni("on");lkt.off=cni("off");eg=function(n){function e(t,i,r){function h(n,t){return n.__prio-t.__prio}var u=n.call(this,new phu)||this,e;u._chartsViews=[];u._chartsMap={};u._componentsViews=[];u._componentsMap={};u._pendingActions=[];r=r||{};o(i)&&(i=dni[i]);u._dom=t;var f=u._zr=nvt(t,{renderer:r.renderer||"canvas",devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:d(r.useDirtyRect,!1),useCoarsePointer:d(r.useCoarsePointer,"auto"),pointerSize:r.pointerSize});return u._ssr=r.ssr,u._throttledZrFlush=aft(s(f.flush,f),17),(i=y(i))&&bbi(i,!0),u._theme=i,u._locale=function(n){if(o(n)){var t=aut[n.toUpperCase()]||{};return n===cut||n===kpt?y(t):k(y(t),y(aut[lut]),!1)}return k(y(n),y(aut[lut]),!1)}(r.locale||gpi),u._coordSysMgr=new up,e=u._api=pni(u),eit(uet,h),eit(akt,h),u._scheduler=new rgi(u,e,akt,uet),u._messageCenter=new ckt,u._initEvents(),u.resize=s(u.resize,u),f.animation.on("frame",u._onframe,u),ani(f,u),vni(f,u),ob(u),u}return i(e,n),e.prototype._onframe=function(){var n,i,u;if(!this._disposed)if(bni(this),n=this._scheduler,this[hu]){i=this[hu].silent;this[vr]=!0;try{wp(this);tc.update.call(this,null,this[hu].updateParams)}catch(n){throw this[vr]=!1,this[hu]=null,n;}this._zr.flush();this[vr]=!1;this[hu]=null;ug.call(this,i);fg.call(this,i)}else if(n.unfinished){var r=1,t=this._model,f=this._api;n.unfinished=!1;do u=+new Date,n.performSeriesTasks(t),n.performDataProcessorTasks(t),okt(this,t),n.performVisualTasks(t),tet(this,this._model,f,"remain",{}),r-=+new Date-u;while(r>0&&n.unfinished);n.unfinished||this._zr.flush()}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(n,t,i){var r,e,o,f;if(!this[vr])if(this._disposed)yu(this.id);else{if(v(t)&&(i=t.lazyUpdate,r=t.silent,e=t.replaceMerge,o=t.transition,t=t.notMerge),this[vr]=!0,!this._model||t){var s=new bou(this._api),h=this._theme,u=this._model=new rft;u.scheduler=this._scheduler;u.ssr=this._ssr;u.init(null,null,null,h,this._locale,s)}if(this._model.setOption(n,{replaceMerge:e},vkt),f={seriesTransition:o,optionChanged:!0},i)this[hu]={silent:r,updateParams:f},this[vr]=!1,this.getZr().wakeUp();else{try{wp(this);tc.update.call(this,null,f)}catch(n){throw this[hu]=null,this[vr]=!1,n;}this._ssr||this._zr.flush();this[hu]=null;this[vr]=!1;ug.call(this,r);fg.call(this,r)}}},e.prototype.setTheme=function(){sli()},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||ft.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(n){return this.renderToCanvas(n)},e.prototype.renderToCanvas=function(n){n=n||{};var t=this._zr.painter;return t.getRenderedCanvas({backgroundColor:n.backgroundColor||this._model.get("backgroundColor"),pixelRatio:n.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(n){n=n||{};var t=this._zr.painter;return t.renderToString({useViewBox:n.useViewBox})},e.prototype.getSvgDataURL=function(){if(ft.svgSupported){var n=this._zr;return t(n.storage.getDisplayList(),function(n){n.stopAnimation(null,!0)}),n.painter.toDataURL()}},e.prototype.getDataURL=function(n){var r;if(!this._disposed){var u=(n=n||{}).excludeComponents,f=this._model,i=[],e=this;return t(u,function(n){f.eachComponent({mainType:n},function(n){var t=e._componentsMap[n.__viewId];t.group.ignore||(i.push(t),t.group.ignore=!0)})}),r="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(n).toDataURL("image/"+(n&&n.type||"png")),t(i,function(n){n.group.ignore=!1}),r}yu(this.id)},e.prototype.getConnectedDataURL=function(n){var c;if(!this._disposed){var e="svg"===n.type,l=this.group,a=Math.min,v=Math.max,p=1/0;if(fet[l]){var u=p,f=p,o=-1/0,s=-1/0,h=[],r=n&&n.pixelRatio||this.getDevicePixelRatio();t(ca,function(t){if(t.group===l){var r=e?t.getZr().painter.getSvgDom().innerHTML:t.renderToCanvas(y(n)),i=t.getDom().getBoundingClientRect();u=a(i.left,u);f=a(i.top,f);o=v(i.right,o);s=v(i.bottom,s);h.push({dom:r,left:i.left,top:i.top})}});var w=(o*=r)-(u*=r),b=(s*=r)-(f*=r),k=df.createCanvas(),i=nvt(k,{renderer:e?"svg":"canvas"});return(i.resize({width:w,height:b}),e)?(c="",t(h,function(n){var t=n.left-u,i=n.top-f;c+='<g transform="translate('+t+","+i+')">'+n.dom+"<\/g>"}),i.painter.getSvgRoot().innerHTML=c,n.connectedBackgroundColor&&i.painter.setBackgroundColor(n.connectedBackgroundColor),i.refreshImmediately(),i.painter.toDataURL()):(n.connectedBackgroundColor&&i.add(new ot({shape:{x:0,y:0,width:w,height:b},style:{fill:n.connectedBackgroundColor}})),t(h,function(n){var t=new wi({style:{x:n.left*r-u,y:n.top*r-f,image:n.dom}});i.add(t)}),i.refreshImmediately(),k.toDataURL("image/"+(n&&n.type||"png")))}return this.getDataURL(n)}yu(this.id)},e.prototype.convertToPixel=function(n,t){return ekt(this,"convertToPixel",n,t)},e.prototype.convertFromPixel=function(n,t){return ekt(this,"convertFromPixel",n,t)},e.prototype.containPixel=function(n,i){var r;if(!this._disposed)return t(vk(this._model,n),function(n,u){u.indexOf("Models")>=0&&t(n,function(n){var f=n.coordinateSystem,t;f&&f.containPoint?r=r||!!f.containPoint(i):"seriesModels"===u?(t=this._chartsMap[n.__viewId],t&&t.containPoint&&(r=r||t.containPoint(i,n))):0},this)},this),!!r;yu(this.id)},e.prototype.getVisual=function(n,t){var i=vk(this._model,n,{defaultMainType:"series"}),f=i.seriesModel,r=f.getData(),u=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?r.indexOfRawIndex(i.dataIndex):null;return null!=u?ybt(r,u,t):ig(r,t)},e.prototype.getViewOfComponentModel=function(n){return this._componentsMap[n.__viewId]},e.prototype.getViewOfSeriesModel=function(n){return this._chartsMap[n.__viewId]},e.prototype._initEvents=function(){var u,i,f,n=this;t(kni,function(t){var i=function(i){var u,h=n.getModel(),o=i.target,l="globalout"===t,f,s,e,c;(l?u={}:o&&ea(o,function(n){var t=b(n),i;return t&&null!=t.dataIndex?(i=t.dataModel||h.getSeriesByIndex(t.seriesIndex),u=i&&i.getDataParams(t.dataIndex,t.dataType,o)||{},!0):t.eventData?(u=r({},t.eventData),!0):void 0},!0),u)&&(f=u.componentType,s=u.componentIndex,"markLine"!==f&&"markPoint"!==f&&"markArea"!==f||(f="series",s=u.seriesIndex),e=f&&null!=s&&h.getComponent(f,s),c=e&&n["series"===e.mainType?"_chartsMap":"_componentsMap"][e.__viewId],u.event=i,u.type=t,n._$eventProcessor.eventInfo={targetEl:o,packedEvent:u,model:e,view:c},n.trigger(t,u))};i.zrEventfulCallAtLast=!0;n._zr.on(t,i,n)});t(og,function(t,i){n._messageCenter.on(i,function(n){this.trigger(i,n)},n)});t(["selectchanged"],function(t){n._messageCenter.on(t,function(n){this.trigger(t,n)},n)});u=this._messageCenter;i=this;f=this._api;u.on("selectchanged",function(n){var t=f.getModel();n.isFromClick?(ap("map","selectchanged",i,t,n),ap("pie","selectchanged",i,t,n)):"select"===n.fromAction?(ap("map","selected",i,t,n),ap("pie","selected",i,t,n)):"unselect"===n.fromAction&&(ap("map","unselected",i,t,n),ap("pie","unselected",i,t,n))})},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?yu(this.id):this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)yu(this.id);else{this._disposed=!0;this.getDom()&&yli(this.getDom(),pkt,"");var n=this,i=n._api,r=n._model;t(n._componentsViews,function(n){n.dispose(r,i)});t(n._chartsViews,function(n){n.dispose(r,i)});n._zr.dispose();n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null;delete ca[n.id]}},e.prototype.resize=function(n){var i,u,t;if(!this[vr])if(this._disposed)yu(this.id);else if(this._zr.resize(n),i=this._model,this._loadingFX&&this._loadingFX.resize(),i){u=i.resetOption("media");t=n&&n.silent;this[hu]&&(null==t&&(t=this[hu].silent),u=!0,this[hu]=null);this[vr]=!0;try{u&&wp(this);tc.update.call(this,{type:"resize",animation:r({duration:0},n&&n.animation)})}catch(n){throw this[vr]=!1,n;}this[vr]=!1;ug.call(this,t);fg.call(this,t)}},e.prototype.showLoading=function(n,t){if(this._disposed)yu(this.id);else if(v(n)&&(t=n,n=""),n=n||"default",this.hideLoading(),ykt[n]){var i=ykt[n](this._api,t),r=this._zr;this._loadingFX=i;r.add(i)}},e.prototype.hideLoading=function(){this._disposed?yu(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(n){var t=r({},n);return t.type=og[n.type],t},e.prototype.dispatchAction=function(n,t){var i,r;this._disposed?yu(this.id):(v(t)||(t={silent:!!t}),ret[n.type]&&this._model)&&(this[vr]?this._pendingActions.push(n):(i=t.silent,skt.call(this,n,i),r=t.flush,r?this._zr.flush():!1!==r&&ft.browser.weChat&&this._throttledZrFlush(),ug.call(this,i),fg.call(this,i)))},e.prototype.updateLabelLayout=function(){af.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(n){if(this._disposed)yu(this.id);else{var t=n.seriesIndex,i=this.getModel().getSeriesByIndex(t);i.appendData(n);this._scheduler.unfinished=!0;this.getZr().wakeUp()}},e.internalField=function(){function n(n){n.clearColorPalette();n.eachSeries(function(n){n.clearColorPalette()})}function e(n){for(var i,t=[],u=n.currentStates,r=0;r<u.length;r++)i=u[r],"emphasis"!==i&&"blur"!==i&&"select"!==i&&t.push(i);n.selected&&n.states.select&&t.push("select");2===n.hoverState&&n.states.emphasis?t.push("emphasis"):1===n.hoverState&&n.states.blur&&t.push("blur");n.useStates(t)}function o(n,t){if(!n.preventAutoZ){var i=n.get("z")||0,r=n.get("zlevel")||0;t.eachRendered(function(n){return s(n,i,r,-1/0),!0})}}function s(n,t,i,r){var u=n.getTextContent(),f=n.getTextGuideLine(),o,e,h;if(n.isGroup)for(o=n.childrenRef(),e=0;e<o.length;e++)r=Math.max(s(o[e],t,i,r),r);else n.z=t,n.zlevel=i,r=Math.max(n.z2,r);return(u&&(u.z=t,u.zlevel=i,isFinite(r)&&(u.z2=r+2)),f)&&(h=n.textGuideLineConfig,f.z=t,f.zlevel=i,isFinite(r)&&(f.z2=r+(h&&h.showAbove?1:-1))),r}function h(n,t){t.eachRendered(function(n){if(!yy(n)){var t=n.getTextContent(),i=n.getTextGuideLine();n.stateTransition&&(n.stateTransition=null);t&&t.stateTransition&&(t.stateTransition=null);i&&i.stateTransition&&(i.stateTransition=null);n.hasState()?(n.prevStates=n.currentStates,n.clearStates()):n.prevStates&&(n.prevStates=null)}})}function l(n,t){var i=n.getModel("stateAnimation"),f=n.isAnimationEnabled(),u=i.get("duration"),r=u>0?{duration:u,delay:i.get("delay"),easing:i.get("easing")}:null;t.eachRendered(function(n){var t,i,u;if(n.states&&n.states.emphasis){if(yy(n))return;(n instanceof ut&&function(n){var i=ivi(n),t;i.normalFill=n.style.fill;i.normalStroke=n.style.stroke;t=n.states.select||{};i.selectFill=t.style&&t.style.fill||null;i.selectStroke=t.style&&t.style.stroke||null}(n),n.__dirty)&&(t=n.prevStates,t&&n.useStates(t));f&&(n.stateTransition=r,i=n.getTextContent(),u=n.getTextGuideLine(),i&&(i.stateTransition=r),u&&(u.stateTransition=r));n.__dirty&&e(n)}})}wp=function(n){var t=n._scheduler;t.restorePipelines(n._model);t.prepareStageTasks();fkt(n,!0);fkt(n,!1);t.plan()};fkt=function(n,t){function h(n){var a=n.__requireNewView,r,i,h,l;n.__requireNewView=!1;r="_ec_"+n.id+"_"+n.type;i=!a&&e[r];i||(h=ro(n.type),l=t?ni.getClass(h.main,h.sub):wt.getClass(h.sub),(i=new l).init(f,o),e[r]=i,u.push(i),s.add(i.group));n.__viewId=i.__id=r;i.__alive=!0;i.__model=n;i.group.__ecComponentInfo={mainType:n.mainType,index:n.componentIndex};!t&&c.prepareView(i,n,f,o)}for(var i,f=n._model,c=n._scheduler,u=t?n._componentsViews:n._chartsViews,e=t?n._componentsMap:n._chartsMap,s=n._zr,o=n._api,r=0;r<u.length;r++)u[r].__alive=!1;for(t?f.eachComponent(function(n,t){"series"!==n&&h(t)}):f.eachSeries(h),r=0;r<u.length;)i=u[r],i.__alive?r++:(!t&&i.renderTask.dispose(),s.remove(i.group),i.dispose(f,o),u.splice(r,1),e[i.__id]===i&&delete e[i.__id],i.__id=i.group.__ecComponentInfo=null)};net=function(n,i,r,f,e){function v(t){t&&t.__alive&&t[i]&&t[i](t.__model,o,n._api,r)}var o=n._model,h,l,s,a;(o.setUpdatePayload(r),f)?(h={},h[f+"Id"]=r[f+"Id"],h[f+"Index"]=r[f+"Index"],h[f+"Name"]=r[f+"Name"],l={mainType:f,query:h},e&&(l.subType=e),a=r.excludeSeriesId,null!=a&&(s=c(),t(kt(a),function(n){var t=ai(n,null);null!=t&&s.set(t,!0)})),o&&o.eachComponent(l,function(i){if(!(s&&null!=s.get(i.id)))if(bvi(r))if(i instanceof bt)r.type!==wl||r.notBlur||i.get(["emphasis","disabled"])||function(n,t,i){var c=n.seriesIndex,e=n.getData(t.dataType),r,f,l,o,s,h,a;if(e){if(r=fl(e,t),r=(u(r)?r[0]:r)||0,f=e.getItemGraphicEl(r),!f)for(l=e.count(),o=0;!f&&o<l;)f=e.getItemGraphicEl(o++);f?(s=b(f),byt(c,s.focus,s.blurScope,i)):(h=n.get(["emphasis","focus"]),a=n.get(["emphasis","blurScope"]),null!=h&&byt(c,h,a,i))}}(i,r,n._api);else{var f=dyt(i.mainType,i.componentIndex,r.name,n._api),o=f.focusSelf,e=f.dispatchers;r.type===wl&&o&&!r.notBlur&&kyt(i.mainType,i.componentIndex,n._api);e&&t(e,function(n){r.type===wl?ss(n):hs(n)})}else tpt(r)&&i instanceof bt&&(!function(n,t){if(tpt(t)){var r=t.dataType,i=fl(n.getData(r),t);u(i)||(i=[i]);n[t.type===kk?"toggleSelect":t.type===bk?"select":"unselect"](i,r)}}(i,r,n._api),pvi(i),vf(n))},n),o&&o.eachComponent(l,function(t){s&&null!=s.get(t.id)||v(n["series"===f?"_chartsMap":"_componentsMap"][t.__viewId])},n)):t([].concat(n._componentsViews).concat(n._chartsViews),v)};tc={prepareAndUpdate:function(n){wp(this);tc.update.call(this,n,{optionChanged:null!=n.newOption})},update:function(t,i){var r=this._model,u=this._api,o=this._zr,s=this._coordSysMgr,f=this._scheduler,h,e;r&&(r.setUpdatePayload(t),f.restoreData(r,t),f.performSeriesTasks(r),s.create(r,u),f.performDataProcessorTasks(r,t),okt(this,r),s.update(r,u),n(r),f.performVisualTasks(r,t),hkt(this,r,u,t,i),h=r.get("backgroundColor")||"transparent",e=r.get("darkMode"),o.setBackgroundColor(h),null!=e&&"auto"!==e&&o.setDarkMode(e),af.trigger("afterupdate",r,u))},updateTransform:function(t){var e=this,i=this._model,u=this._api,f,r;i&&(i.setUpdatePayload(t),f=[],i.eachComponent(function(n,r){var o,s;"series"!==n&&(o=e.getViewOfComponentModel(r),o&&o.__alive&&(o.updateTransform?(s=o.updateTransform(r,i,u,t),s&&s.update&&f.push(o)):f.push(o)))}),r=c(),i.eachSeries(function(n){var o=e._chartsMap[n.__viewId],f;o.updateTransform?(f=o.updateTransform(n,i,u,t),f&&f.update&&r.set(n.uid,1)):r.set(n.uid,1)}),n(i),this._scheduler.performVisualTasks(i,t,{setDirty:!0,dirtyMap:r}),tet(this,i,u,t,{},r),af.trigger("afterupdate",i,u))},updateView:function(t){var i=this._model;i&&(i.setUpdatePayload(t),wt.markUpdateMethod(t,"updateView"),n(i),this._scheduler.performVisualTasks(i,t,{setDirty:!0}),hkt(this,i,this._api,t,{}),af.trigger("afterupdate",i,this._api))},updateVisual:function(t){var r=this,i=this._model;i&&(i.setUpdatePayload(t),i.eachSeries(function(n){n.getData().clearAllVisual()}),wt.markUpdateMethod(t,"updateVisual"),n(i),this._scheduler.performVisualTasks(i,t,{visualType:"visual",setDirty:!0}),i.eachComponent(function(n,u){if("series"!==n){var f=r.getViewOfComponentModel(u);f&&f.__alive&&f.updateVisual(u,i,r._api,t)}}),i.eachSeries(function(n){r._chartsMap[n.__viewId].updateVisual(n,i,r._api,t)}),af.trigger("afterupdate",i,this._api))},updateLayout:function(n){tc.update.call(this,n)}};ekt=function(n,t,i,r){var f;if(n._disposed)yu(n.id);else{for(var e,o=n._model,s=n._coordSysMgr.getCoordinateSystems(),h=vk(o,i),u=0;u<s.length;u++)if(f=s[u],f[t]&&null!=(e=f[t](o,h,r)))return e;0}};okt=function(n,t){var i=n._chartsMap,r=n._scheduler;t.eachSeries(function(n){r.updateStreamModes(n,i[n.__viewId])})};skt=function(n,i){var u=this,tt=this.getModel(),d=n.type,g=n.escapeConnect,nt=ret[d],h=nt.actionInfo,c=(h.update||"update").split(":"),o=c.pop(),s=null!=c[0]&&ro(c[0]),l,v,b,k;this[vr]=!0;l=[n];v=!1;n.batch&&(v=!0,l=f(n.batch,function(t){return(t=a(r({},t),n)).batch=null,t}));var e,y=[],p=tpt(n),w=bvi(n);if(w&&yvi(this._api),t(l,function(t){if((e=(e=nt.action(t,u._model,u._api))||r({},t)).type=h.event||e.type,y.push(e),w){var i=cvt(n),f=i.queryOptionMap,c=i.mainTypeSpecified?f.keys()[0]:"series";net(u,o,t,c);vf(u)}else p?(net(u,o,t,"series"),vf(u)):s&&net(u,o,t,s.main,s.sub)}),"none"!==o&&!w&&!p&&!s)try{this[hu]?(wp(this),tc.update.call(this,n),this[hu]=null):tc[o].call(this,n)}catch(n){throw this[vr]=!1,n;}(e=v?{type:h.event||d,escapeConnect:g,batch:y}:y[0],this[vr]=!1,i)||(b=this._messageCenter,(b.trigger(e.type,e),p)&&(k={type:"selectchanged",escapeConnect:g,selected:weu(tt),isFromClick:n.isFromClick||!1,fromAction:n.type,fromActionPayload:n},b.trigger(k.type,k)))};ug=function(n){for(var i,t=this._pendingActions;t.length;)i=t.shift(),skt.call(this,i,n)};fg=function(n){n||this.trigger("updated")};ani=function(n,t){n.on("rendered",function(i){t.trigger("rendered",i);!n.animation.isFinished()||t[hu]||t._scheduler.unfinished||t._pendingActions.length||t.trigger("finished")})};vni=function(n,i){n.on("mouseover",function(n){var r=ea(n.target,dk);r&&(!function(n,i,r){var u=b(n),f=dyt(u.componentMainType,u.componentIndex,u.componentHighDownName,r),e=f.dispatchers,o=f.focusSelf;e?(o&&kyt(u.componentMainType,u.componentIndex,r),t(e,function(n){return svi(n,i)})):(byt(u.seriesIndex,u.focus,u.blurScope,r),"self"===u.focus&&kyt(u.componentMainType,u.componentIndex,r),svi(n,i))}(r,n,i._api),vf(i))}).on("mouseout",function(n){var r=ea(n.target,dk);r&&(!function(n,i,r){yvi(r);var u=b(n),f=dyt(u.componentMainType,u.componentIndex,u.componentHighDownName,r).dispatchers;f?t(f,function(n){return hvi(n,i)}):hvi(n,i)}(r,n,i._api),vf(i))}).on("click",function(n){var r=ea(n.target,function(n){return null!=b(n).dataIndex},!0),u,t;r&&(u=r.selected?"unselect":"select",t=b(r),i._api.dispatchAction({type:u,dataType:t.dataType,dataIndexInside:t.dataIndex,seriesIndex:t.seriesIndex,isFromClick:!0}))})};hkt=function(n,i,r,u,f){!function(n){var e=[],o=[],u=!1,i,r,f;(n.eachComponent(function(n,t){var r=t.get("zlevel")||0,f=t.get("z")||0,i=t.getZLevelKey();u=u||!!i;("series"===n?o:e).push({zlevel:r,z:f,idx:t.componentIndex,type:n,key:i})}),u)&&(f=e.concat(o),eit(f,function(n,t){return n.zlevel===t.zlevel?n.z-t.z:n.zlevel-t.zlevel}),t(f,function(t){var e=n.getComponent(t.type,t.idx),u=t.zlevel,f=t.key;null!=i&&(u=Math.max(i,u));f?(u===i&&f!==r&&u++,r=f):r&&(u===i&&u++,r="");i=u;e.setZLevel(u)}))}(i);yni(n,i,r,u,f);t(n._chartsViews,function(n){n.__alive=!1});tet(n,i,r,u,f);t(n._chartsViews,function(n){n.__alive||n.remove(i,r)})};yni=function(n,i,r,u,f,e){t(e||n._componentsViews,function(n){var t=n.__model;h(t,n);n.render(t,i,r,u);o(t,n);l(t,n)})};tet=function(n,t,i,u,f,e){var s=n._scheduler,c;f=r(f||{},{updatedSeries:t.getSeries()});af.trigger("series:beforeupdate",t,i,f);c=!1;t.eachSeries(function(t){var i=n._chartsMap[t.__viewId],r;i.__alive=!0;r=i.renderTask;s.updatePayload(r,u);h(t,i);e&&e.get(t.uid)&&r.dirty();r.perform(s.getPerformArgs(r))&&(c=!0);i.group.silent=!!t.get("silent"),function(n,t){var i=n.get("blendMode")||null;t.eachRendered(function(n){n.isGroup||(n.style.blend=i)})}(t,i);pvi(t)});s.unfinished=c||s.unfinished;af.trigger("series:layoutlabels",t,i,f);af.trigger("series:transition",t,i,f);t.eachSeries(function(t){var i=n._chartsMap[t.__viewId];o(t,i);l(t,i)}),function(n,t){var r=n._zr,u=r.storage,i=0;u.traverse(function(n){n.isGroup||i++});i>t.get("hoverLayerThreshold")&&!ft.node&&!ft.worker&&t.eachSeries(function(t){if(!t.preventUsingHoverLayer){var i=n._chartsMap[t.__viewId];i.__alive&&i.eachRendered(function(n){n.states.emphasis&&(n.states.emphasis.hoverLayer=!0)})}})}(n,t);af.trigger("series:afterupdate",t,i,f)};vf=function(n){n[rkt]=!0;n.getZr().wakeUp()};bni=function(n){n[rkt]&&(n.getZr().storage.traverse(function(n){yy(n)||e(n)}),n[rkt]=!1)};pni=function(n){return new(function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return i(r,t),r.prototype.getCoordinateSystems=function(){return n._coordSysMgr.getCoordinateSystems()},r.prototype.getComponentByElement=function(t){for(;t;){var i=t.__ecComponentInfo;if(null!=i)return n._model.getComponent(i.mainType,i.index);t=t.parent}},r.prototype.enterEmphasis=function(t,i){ss(t,i);vf(n)},r.prototype.leaveEmphasis=function(t,i){hs(t,i);vf(n)},r.prototype.enterBlur=function(t){cvi(t);vf(n)},r.prototype.leaveBlur=function(t){wyt(t);vf(n)},r.prototype.enterSelect=function(t){lvi(t);vf(n)},r.prototype.leaveSelect=function(t){avi(t);vf(n)},r.prototype.getModel=function(){return n.getModel()},r.prototype.getViewOfComponentModel=function(t){return n.getViewOfComponentModel(t)},r.prototype.getViewOfSeriesModel=function(t){return n.getViewOfSeriesModel(t)},r}(cbi))(n)};wni=function(n){function i(n,t){for(var i=0;i<n.length;i++)n[i][ukt]=t}t(og,function(r,u){n._messageCenter.on(u,function(r){if(fet[n.group]&&0!==n[ukt]){if(r&&r.escapeConnect)return;var f=n.makeActionFromEvent(r),u=[];t(ca,function(t){t!==n&&t.group===n.group&&u.push(t)});i(u,0);t(u,function(n){1!==n[ukt]&&n.dispatchAction(f)});i(u,2)}})})}}(),e}(nf);iet=eg.prototype;iet.on=hni("on");iet.off=hni("off");iet.one=function(n,t,i){var r=this;sli();this.on.call(this,n,function i(){for(var f=[],u=0;u<arguments.length;u++)f[u]=arguments[u];t&&t.apply&&t.apply(this,f);r.off(n,i)},i)};kni=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var ret={},og={},akt=[],vkt=[],uet=[],dni={},ykt={},ca={},fet={},ecu=+new Date-0,ocu=+new Date-0,pkt="_echarts_instance_";ntr=gni;gkt=[];idt=function(n){var t=(n=y(n)).type,u="",i,r;t||vt(u);i=t.split(":");2!==i.length&&vt(u);r=!1;"echarts"===i[0]&&(t=i[1],r=!0);n.__isBuiltIn=r;ubt.set(t,n)};ic(ikt,rhu);ic(gft,uhu);ic(gft,fhu);ic(ikt,whu);ic(gft,bhu);ic(7e3,function(n,t){n.eachRawSeries(function(i){var r,u;n.isSeriesFiltered(i)||(r=i.getData(),r.hasItemVisual()&&r.each(function(n){var i=r.getItemVisual(n,"decal");i&&(r.ensureUniqueItemVisual(n,"style").decal=pp(i,t))}),u=r.getVisual("decal"),u&&(r.getVisual("style").decal=pp(u,t)))})});kkt(bbi);dkt(900,function(n){var t=c();n.eachSeries(function(n){var f=n.get("stack");if(f){var r=t.get(f)||t.set(f,[]),i=n.getData(),u={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:n};if(!u.stackedDimension||!u.isStackedByIndex&&!u.stackedByDimension)return;r.length&&i.setCalculationInfo("stackedOnSeries",r[r.length-1].seriesModel);r.push(u)}});t.each(tsu)});tdt("default",function(n,t){var i,u,r,f,e;return a(t=t||{},{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0}),i=new p,u=new ot({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4}),i.add(u),f=new st({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),e=new ot({style:{fill:"none"},textContent:f,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001}),i.add(e),t.showSpinner&&((r=new ly({shape:{startAngle:-vft/2,endAngle:-vft/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*vft/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*vft/2}).delay(300).start("circularInOut"),i.add(r)),i.resize=function(){var i=f.getBoundingRect().width,o=t.showSpinner?t.spinnerRadius:0,s=(n.getWidth()-2*o-(t.showSpinner&&i?10:0)-i)/2-(t.showSpinner&&i?0:5+i/2)+(t.showSpinner?0:i/2)+(i?0:o),h=n.getHeight()/2;t.showSpinner&&r.setShape({cx:s,cy:h});e.setShape({x:s-o,y:h-o,width:2*o,height:2*o});u.setShape({x:0,y:0,width:n.getWidth(),height:n.getHeight()})},i.resize(),i});ae({type:wl,event:wl,update:wl},ei);ae({type:prt,event:prt,update:prt},ei);ae({type:bk,event:bk,update:bk},ei);ae({type:wrt,event:wrt,update:wrt},ei);ae({type:kk,event:kk,update:kk},ei);bkt("light",yhu);bkt("dark",cgi);rdt=[];etr={registerPreprocessor:kkt,registerProcessor:dkt,registerPostInit:ttr,registerPostUpdate:itr,registerUpdateLifecycle:eet,registerAction:ae,registerCoordinateSystem:rtr,registerLayout:utr,registerVisual:ic,registerTransform:idt,registerLoading:tdt,registerMap:ftr,registerImpl:function(n,t){tkt[n]=t},PRIORITY:oni,ComponentModel:rt,ComponentView:ni,SeriesModel:bt,ChartView:wt,registerComponentModel:function(n){rt.registerClass(n)},registerComponentView:function(n){ni.registerClass(n)},registerSeriesModel:function(n){bt.registerClass(n)},registerChartView:function(n){wt.registerClass(n)},registerSubTypeDefaulter:function(n,t){rt.registerSubTypeDefaulter(n,t)},registerPainter:function(n,t){dci(n,t)}};co=function(){function n(n,t,i,r,u,f){this._old=n;this._new=t;this._oldKeyGetter=i||otr;this._newKeyGetter=r||otr;this.context=u;this._diffModeMultiple="multiple"===f}return n.prototype.add=function(n){return this._add=n,this},n.prototype.update=function(n){return this._update=n,this},n.prototype.updateManyToOne=function(n){return this._updateManyToOne=n,this},n.prototype.updateOneToMany=function(n){return this._updateOneToMany=n,this},n.prototype.updateManyToMany=function(n){return this._updateManyToMany=n,this},n.prototype.remove=function(n){return this._remove=n,this},n.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},n.prototype._executeOneToOne=function(){var r=this._old,f=this._new,t={},e=new Array(r.length),o=new Array(f.length),n,h;for(this._initIndexMap(r,null,e,"_oldKeyGetter"),this._initIndexMap(f,t,o,"_newKeyGetter"),n=0;n<r.length;n++){var u=e[n],i=t[u],s=sg(i);s>1?(h=i.shift(),1===i.length&&(t[u]=i[0]),this._update&&this._update(h,n)):1===s?(t[u]=null,this._update&&this._update(i,n)):this._remove&&this._remove(n)}this._performRestAdd(o,t)},n.prototype._executeMultiple=function(){var l=this._old,a=this._new,h={},n={},s=[],c=[],f,o;for(this._initIndexMap(l,h,s,"_oldKeyGetter"),this._initIndexMap(a,n,c,"_newKeyGetter"),f=0;f<s.length;f++){var i=s[f],t=h[i],u=n[i],r=sg(t),e=sg(u);if(r>1&&1===e)this._updateManyToOne&&this._updateManyToOne(u,t),n[i]=null;else if(1===r&&e>1)this._updateOneToMany&&this._updateOneToMany(u,t),n[i]=null;else if(1===r&&1===e)this._update&&this._update(u,t),n[i]=null;else if(r>1&&e>1)this._updateManyToMany&&this._updateManyToMany(u,t),n[i]=null;else if(r>1)for(o=0;o<r;o++)this._remove&&this._remove(t[o]);else this._remove&&this._remove(t)}this._performRestAdd(c,n)},n.prototype._performRestAdd=function(n,t){for(var r,i=0;i<n.length;i++){var e=n[i],u=t[e],f=sg(u);if(f>1)for(r=0;r<f;r++)this._add&&this._add(u[r]);else 1===f&&this._add&&this._add(u);t[e]=null}},n.prototype._initIndexMap=function(n,t,i,r){for(var f,e,s,o=this._diffModeMultiple,u=0;u<n.length;u++)f="_ec_"+this[r](n[u],u),(o||(i[u]=f),t)&&(e=t[f],s=sg(e),0===s?(t[f]=u,o&&i.push(f)):1===s?t[f]=[e,u]:e.push(u))},n}();str=function(){function n(n,t){this._encode=n;this._schema=t}return n.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},n.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},n}();var set=function(n){this.otherDims={};null!=n&&r(this,n)},scu=ct(),hcu={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},htr=function(){function n(n){this.dimensions=n.dimensions;this._dimOmitted=n.dimensionOmitted;this.source=n.source;this._fullDimCount=n.fullDimensionCount;this._updateDimOmitted(n.dimensionOmitted)}return n.prototype.isDimensionOmitted=function(){return this._dimOmitted},n.prototype._updateDimOmitted=function(n){this._dimOmitted=n;n&&(this._dimNameMap||(this._dimNameMap=atr(this.source)))},n.prototype.getSourceDimensionIndex=function(n){return d(this._dimNameMap.get(n),-1)},n.prototype.getSourceDimension=function(n){var t=this.source.dimensionsDefine;if(t)return t[n]},n.prototype.makeStoreSchema=function(){for(var e,s,h=this._fullDimCount,o=iki(this.source),a=!vtr(h),t="",c=[],r=0,l=0;r<h;r++){var i=void 0,u=void 0,f=void 0,n=this.dimensions[l];n&&n.storeDimIndex===r?(i=o?n.name:null,u=n.type,f=n.ordinalMeta,l++):(e=this.getSourceDimension(r),e&&(i=o?e.name:null,u=e.type));c.push({property:i,type:u,ordinalMeta:f});!o||null==i||n&&n.isCalculationCoord||(t+=a?i.replace(/\`/g,"`1").replace(/\$/g,"`2"):i);t+="$";t+=hcu[u]||"f";f&&(t+=f.uid);t+="$"}return s=this.source,{dimensions:c,hash:[s.seriesLayoutBy,s.startIndex,t].join("$$")}},n.prototype.makeOutputDimensionNames=function(){for(var i,n,r,u=[],t=0,f=0;t<this._fullDimCount;t++)i=void 0,n=this.dimensions[f],n&&n.storeDimIndex===t?(n.isCalculationCoord||(i=n.name),f++):(r=this.getSourceDimension(t),r&&(i=r.name)),u.push(i);return u},n.prototype.appendCalculationDimension=function(n){this.dimensions.push(n);n.isCalculationCoord=!0;this._fullDimCount++;this._updateDimOmitted(!0)},n}();var ytr,het,hg,cg,fdt,cet,edt,lg=v,rc=f,ccu="undefined"==typeof Int32Array?Array:Int32Array,lcu=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],acu=["_approximateExtent"],yr=function(){function n(n,i){var u,h,v,w;this.type="list";this._dimOmitted=!1;this._nameList=[];this._idList=[];this._visual={};this._layout={};this._itemVisuals=[];this._itemLayouts=[];this._graphicEls=[];this._approximateExtent={};this._calculationInfo={};this.hasItemOption=!1;this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"];this.CHANGABLE_METHODS=["filterSelf","selectRange"];this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];h=!1;ctr(n)?(u=n.dimensions,this._dimOmitted=n.isDimensionOmitted(),this._schema=n):(h=!0,u=n);u=u||["x","y"];for(var l={},a=[],y={},p=!1,b={},f=0;f<u.length;f++){var e=u[f],r=o(e)?new set({name:e}):e instanceof set?e:new set(e),s=r.name;r.type=r.type||"float";r.coordDim||(r.coordDim=s,r.coordDimIndex=0);v=r.otherDims=r.otherDims||{};a.push(s);l[s]=r;null!=b[s]&&(p=!0);r.createInvertedIndices&&(y[s]=[]);0===v.itemName&&(this._nameDimIdx=f);0===v.itemId&&(this._idDimIdx=f);h&&(r.storeDimIndex=f)}(this.dimensions=a,this._dimInfos=l,this._initGetDimensionInfo(p),this.hostModel=i,this._invertedIndicesMap=y,this._dimOmitted)&&(w=this._dimIdxToName=c(),t(a,function(n){w.set(l[n].storeDimIndex,n)}))}return n.prototype.getDimension=function(n){var t=this._recognizeDimIndex(n),i,r;return null==t?n:(t=n,!this._dimOmitted)?this.dimensions[t]:(i=this._dimIdxToName.get(t),null!=i)?i:(r=this._schema.getSourceDimension(t),r?r.name:void 0)},n.prototype.getDimensionIndex=function(n){var i=this._recognizeDimIndex(n),t;return null!=i?i:null==n?-1:(t=this._getDimInfo(n),t?t.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(n):-1)},n.prototype._recognizeDimIndex=function(n){if(ht(n)||null!=n&&!isNaN(n)&&!this._getDimInfo(n)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(n)<0))return+n},n.prototype._getStoreDimIndex=function(n){return this.getDimensionIndex(n)},n.prototype.getDimensionInfo=function(n){return this._getDimInfo(this.getDimension(n))},n.prototype._initGetDimensionInfo=function(n){var t=this._dimInfos;this._getDimInfo=n?function(n){if(t.hasOwnProperty(n))return t[n]}:function(n){return t[n]}},n.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},n.prototype.mapDimension=function(n,t){var r=this._dimSummary,i;return null==t?r.encodeFirstDimNotExtra[n]:(i=r.encode[n],i?i[t]:null)},n.prototype.mapDimensionsAll=function(n){return(this._dimSummary.encode[n]||[]).slice()},n.prototype.getStore=function(){return this._store},n.prototype.initData=function(n,i,r){var u,h=this,e,o,s;(n instanceof oft&&(u=n),u)||(e=this.dimensions,o=dwt(n)||ir(n)?new rki(n,e.length):n,u=new oft,s=rc(e,function(n){return{type:h._dimInfos[n].type,property:n}}),u.initData(o,s,r));this._store=u;this._nameList=(i||[]).slice();this._idList=[];this._nameRepeatCount={};this._doInit(0,u.count());this._dimSummary=function(n,i){var u={},r=u.encode={},v=c(),s=[],e=[],y={},o,a,h,l;return t(n.dimensions,function(t){var o,i=n.getDimensionInfo(t),u=i.coordDim,f;u&&(f=i.coordDimIndex,udt(r,u)[f]=t,i.isExtraCoord||(v.set(u,1),"ordinal"!==(o=i.type)&&"time"!==o&&(s[0]=t),udt(y,u)[f]=n.getDimensionIndex(i.name)),i.defaultTooltip&&e.push(t));kwi.each(function(n,t){var f=udt(r,t),u=i.otherDims[t];null!=u&&!1!==u&&(f[u]=i.name)})}),o=[],a={},v.each(function(n,t){var i=r[t];a[t]=i[0];o=o.concat(i)}),u.dataDimsOnCoord=o,u.dataDimIndicesOnCoord=f(o,function(t){return n.getDimensionInfo(t).storeDimIndex}),u.encodeFirstDimNotExtra=a,h=r.label,h&&h.length&&(s=h.slice()),l=r.tooltip,l&&l.length?e=l.slice():e.length||(e=s.slice()),r.defaultedLabel=s,r.defaultedTooltip=e,u.userOutput=new str(y,i),u}(this,this._schema);this.userOutput=this._dimSummary.userOutput},n.prototype.appendData=function(n){var t=this._store.appendData(n);this._doInit(t[0],t[1])},n.prototype.appendValues=function(n,t){var r=this._store.appendValues(n,t.length),u=r.start,e=r.end,o=this._shouldMakeIdFromName(),i,f;if(this._updateOrdinalMeta(),t)for(i=u;i<e;i++)f=i-u,this._nameList[i]=t[f],o&&edt(this,i)},n.prototype._updateOrdinalMeta=function(){for(var n,r=this._store,i=this.dimensions,t=0;t<i.length;t++)n=this._dimInfos[i[t]],n.ordinalMeta&&r.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)},n.prototype._shouldMakeIdFromName=function(){var n=this._store.getProvider();return null==this._idDimIdx&&n.getSource().sourceFormat!==gh&&!n.fillStorage},n.prototype._doInit=function(n,t){var u,f,e,h,i,r,o,s;if(!(n>=t)){if(u=this._store.getProvider(),this._updateOrdinalMeta(),f=this._nameList,e=this._idList,u.getSource().sourceFormat===hf&&!u.pure)for(h=[],i=n;i<t;i++)r=u.getItem(i,h),(!this.hasItemOption&&efu(r)&&(this.hasItemOption=!0),r)&&(o=r.name,null==f[i]&&null!=o&&(f[i]=ai(o,null)),s=r.id,null==e[i]&&null!=s&&(e[i]=ai(s,null)));if(this._shouldMakeIdFromName())for(i=n;i<t;i++)edt(this,i);ytr(this)}},n.prototype.getApproximateExtent=function(n){return this._approximateExtent[n]||this._store.getDataExtent(this._getStoreDimIndex(n))},n.prototype.setApproximateExtent=function(n,t){t=this.getDimension(t);this._approximateExtent[t]=n.slice()},n.prototype.getCalculationInfo=function(n){return this._calculationInfo[n]},n.prototype.setCalculationInfo=function(n,t){lg(n)?r(this._calculationInfo,n):this._calculationInfo[n]=t},n.prototype.getName=function(n){var i=this.getRawIndex(n),t=this._nameList[i];return null==t&&null!=this._nameDimIdx&&(t=hg(this,this._nameDimIdx,i)),null==t&&(t=""),t},n.prototype._getCategory=function(n,t){var i=this._store.get(n,t),r=this._store.getOrdinalMeta(n);return r?r.categories[i]:i},n.prototype.getId=function(n){return het(this,this.getRawIndex(n))},n.prototype.count=function(){return this._store.count()},n.prototype.get=function(n,t){var r=this._store,i=this._dimInfos[n];if(i)return r.get(i.storeDimIndex,t)},n.prototype.getByRawIndex=function(n,t){var r=this._store,i=this._dimInfos[n];if(i)return r.getByRawIndex(i.storeDimIndex,t)},n.prototype.getIndices=function(){return this._store.getIndices()},n.prototype.getDataExtent=function(n){return this._store.getDataExtent(this._getStoreDimIndex(n))},n.prototype.getSum=function(n){return this._store.getSum(this._getStoreDimIndex(n))},n.prototype.getMedian=function(n){return this._store.getMedian(this._getStoreDimIndex(n))},n.prototype.getValues=function(n,t){var r=this,i=this._store;return u(n)?i.getValues(rc(n,function(n){return r._getStoreDimIndex(n)}),t):i.getValues(n)},n.prototype.hasValue=function(n){for(var i=this._dimSummary.dataDimIndicesOnCoord,t=0,r=i.length;t<r;t++)if(isNaN(this._store.get(i[t],n)))return!1;return!0},n.prototype.indexOfName=function(n){for(var t=0,i=this._store.count();t<i;t++)if(this.getName(t)===n)return t;return-1},n.prototype.getRawIndex=function(n){return this._store.getRawIndex(n)},n.prototype.indexOfRawIndex=function(n){return this._store.indexOfRawIndex(n)},n.prototype.rawIndexOf=function(n,t){var r=n&&this._invertedIndicesMap[n],i=r[t];return null==i||isNaN(i)?-1:i},n.prototype.indicesOfNearest=function(n,t,i){return this._store.indicesOfNearest(this._getStoreDimIndex(n),t,i)},n.prototype.each=function(n,t,i){l(n)&&(i=t,t=n,n=[]);var r=i||this,u=rc(cg(n),this._getStoreDimIndex,this);this._store.each(u,r?s(t,r):t)},n.prototype.filterSelf=function(n,t,i){l(n)&&(i=t,t=n,n=[]);var r=i||this,u=rc(cg(n),this._getStoreDimIndex,this);return this._store=this._store.filter(u,r?s(t,r):t),this},n.prototype.selectRange=function(n){var r=this,i={};return t(et(n),function(t){var u=r._getStoreDimIndex(t);i[u]=n[t]}),this._store=this._store.selectRange(i),this},n.prototype.mapArray=function(n,t,i){l(n)&&(i=t,t=n,n=[]);i=i||this;var r=[];return this.each(n,function(){r.push(t&&t.apply(this,arguments))},i),r},n.prototype.map=function(n,t,i,r){var u=i||r||this,e=rc(cg(n),this._getStoreDimIndex,this),f=cet(this);return f._store=this._store.map(e,u?s(t,u):t),f},n.prototype.modify=function(n,t,i,r){var u=i||r||this,f=rc(cg(n),this._getStoreDimIndex,this);this._store.modify(f,u?s(t,u):t)},n.prototype.downSample=function(n,t,i,r){var u=cet(this);return u._store=this._store.downSample(this._getStoreDimIndex(n),t,i,r),u},n.prototype.lttbDownSample=function(n,t){var i=cet(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(n),t),i},n.prototype.getRawDataItem=function(n){return this._store.getRawDataItem(n)},n.prototype.getItemModel=function(n){var t=this.hostModel,i=this.getRawDataItem(n);return new at(i,t,t&&t.ecModel)},n.prototype.diff=function(n){var t=this;return new co(n?n.getStore().getIndices():[],this.getStore().getIndices(),function(t){return het(n,t)},function(n){return het(t,n)})},n.prototype.getVisual=function(n){var t=this._visual;return t&&t[n]},n.prototype.setVisual=function(n,t){this._visual=this._visual||{};lg(n)?r(this._visual,n):this._visual[n]=t},n.prototype.getItemVisual=function(n,t){var i=this._itemVisuals[n],r=i&&i[t];return null==r?this.getVisual(t):r},n.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},n.prototype.ensureUniqueItemVisual=function(n,t){var e=this._itemVisuals,f=e[n],i;return f||(f=e[n]={}),i=f[t],null==i&&(u(i=this.getVisual(t))?i=i.slice():lg(i)&&(i=r({},i)),f[t]=i),i},n.prototype.setItemVisual=function(n,t,i){var u=this._itemVisuals[n]||{};this._itemVisuals[n]=u;lg(t)?r(u,t):u[t]=i},n.prototype.clearAllVisual=function(){this._visual={};this._itemVisuals=[]},n.prototype.setLayout=function(n,t){lg(n)?r(this._layout,n):this._layout[n]=t},n.prototype.getLayout=function(n){return this._layout[n]},n.prototype.getItemLayout=function(n){return this._itemLayouts[n]},n.prototype.setItemLayout=function(n,t,i){this._itemLayouts[n]=i?r(this._itemLayouts[n]||{},t):t},n.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},n.prototype.setItemGraphicEl=function(n,t){var i=this.hostModel&&this.hostModel.seriesIndex;lyt(i,this.dataType,n,t);this._graphicEls[n]=t},n.prototype.getItemGraphicEl=function(n){return this._graphicEls[n]},n.prototype.eachItemGraphicEl=function(n,i){t(this._graphicEls,function(t,r){t&&n&&n.call(i,t,r)})},n.prototype.cloneShallow=function(t){return t||(t=new n(this._schema?this._schema:rc(this.dimensions,this._getDimInfo,this),this.hostModel)),fdt(t,this),t._store=this._store,t},n.prototype.wrapMethod=function(n,t){var i=this[n];l(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(n),this[n]=function(){var n=i.apply(this,arguments);return t.apply(this,[n].concat(btt(arguments)))})},n.internalField=(ytr=function(n){var i=n._invertedIndicesMap;t(i,function(t,r){var f=n._dimInfos[r],e=f.ordinalMeta,o=n._store,u;if(e){for(t=i[r]=new ccu(e.categories.length),u=0;u<t.length;u++)t[u]=-1;for(u=0;u<o.count();u++)t[o.get(f.storeDimIndex,u)]=u}})},hg=function(n,t,i){return ai(n._getCategory(t,i),null)},het=function(n,t){var i=n._idList[t];return null==i&&null!=n._idDimIdx&&(i=hg(n,n._idDimIdx,t)),null==i&&(i="e\0\0"+t),i},cg=function(n){return u(n)||(n=null!=n?[n]:[]),n},cet=function(t){var i=new n(t._schema?t._schema:rc(t.dimensions,t._getDimInfo,t),t.hostModel);return fdt(i,t),i},fdt=function(n,i){t(lcu.concat(i.__wrappedMethods||[]),function(t){i.hasOwnProperty(t)&&(n[t]=i[t])});n.__wrappedMethods=i.__wrappedMethods;t(acu,function(t){n[t]=y(i[t])});n._calculationInfo=r({},i._calculationInfo)},void(edt=function(n,t){var o=n._nameList,u=n._idList,s=n._nameDimIdx,h=n._idDimIdx,i=o[t],r=u[t],f,e;(null==i&&null!=s&&(o[t]=i=hg(n,s,t)),null==r&&null!=h&&(u[t]=r=hg(n,h,t)),null==r&&null!=i)&&(f=n._nameRepeatCount,e=f[i]=(f[i]||0)+1,r=i,e>1&&(r+="__ec__"+e),u[t]=r)})),n}();ptr=function(n){this.coordSysDims=[];this.axisMap=c();this.categoryAxisMap=c();this.coordSysName=n};wtr={cartesian2d:function(n,t,i,r){var u=n.getReferringComponents("xAxis",oi).models[0],f=n.getReferringComponents("yAxis",oi).models[0];t.coordSysDims=["x","y"];i.set("x",u);i.set("y",f);kp(u)&&(r.set("x",u),t.firstCategoryDimIndex=0);kp(f)&&(r.set("y",f),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},singleAxis:function(n,t,i,r){var u=n.getReferringComponents("singleAxis",oi).models[0];t.coordSysDims=["single"];i.set("single",u);kp(u)&&(r.set("single",u),t.firstCategoryDimIndex=0)},polar:function(n,t,i,r){var e=n.getReferringComponents("polar",oi).models[0],u=e.findAxisModel("radiusAxis"),f=e.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"];i.set("radius",u);i.set("angle",f);kp(u)&&(r.set("radius",u),t.firstCategoryDimIndex=0);kp(f)&&(r.set("angle",f),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},geo:function(n,t){t.coordSysDims=["lng","lat"]},parallel:function(n,i,r,u){var f=n.ecModel,e=f.getComponent("parallel",n.get("parallelIndex")),o=i.coordSysDims=e.dimensions.slice();t(e.parallelAxisIndex,function(n,t){var e=f.getComponent("parallelAxis",n),s=o[t];r.set(s,e);kp(e)&&(u.set(s,e),null==i.firstCategoryDimIndex&&(i.firstCategoryDimIndex=t))})}};ve=function(){function n(n){this._setting=n||{};this._extent=[1/0,-1/0]}return n.prototype.getSetting=function(n){return this._setting[n]},n.prototype.unionExtent=function(n){var t=this._extent;n[0]<t[0]&&(t[0]=n[0]);n[1]>t[1]&&(t[1]=n[1])},n.prototype.unionExtentFromData=function(n,t){this.unionExtent(n.getApproximateExtent(t))},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.setExtent=function(n,t){var i=this._extent;isNaN(n)||(i[0]=n);isNaN(t)||(i[1]=t)},n.prototype.isInExtentRange=function(n){return this._extent[0]<=n&&this._extent[1]>=n},n.prototype.isBlank=function(){return this._isBlank},n.prototype.setBlank=function(n){this._isBlank=n},n}();ert(ve);ktr=0;aet=function(){function n(n){this.categories=n.categories||[];this._needCollect=n.needCollect;this._deduplication=n.deduplication;this.uid=++ktr}return n.createByAxisModel=function(t){var i=t.option,r=i.data,u=r&&f(r,ycu);return new n({categories:u,needCollect:!u,deduplication:!1!==i.dedplication})},n.prototype.getOrdinal=function(n){return this._getOrCreateMap().get(n)},n.prototype.parseAndCollect=function(n){var t,i=this._needCollect,r;return!o(n)&&!i?n:i&&!this._deduplication?(t=this.categories.length,this.categories[t]=n,t):(r=this._getOrCreateMap(),null==(t=r.get(n))&&(i?(t=this.categories.length,this.categories[t]=n,r.set(n,t)):t=NaN),t)},n.prototype._getOrCreateMap=function(){return this._map||(this._map=c(this.categories))},n}();ag=function(n){function t(t){var r=n.call(this,t)||this,i;return r.type="ordinal",i=r.getSetting("ordinalMeta"),i||(i=new aet({})),u(i)&&(i=new aet({categories:f(i,function(n){return v(n)?n.value:n})})),r._ordinalMeta=i,r._extent=r.getSetting("extent")||[0,i.categories.length-1],r}return i(t,n),t.prototype.parse=function(n){return null==n?NaN:o(n)?this._ordinalMeta.getOrdinal(n):Math.round(n)},t.prototype.contain=function(n){return vet(n=this.parse(n),this._extent)&&null!=this._ordinalMeta.categories[n]},t.prototype.normalize=function(n){return yet(n=this._getTickNumber(this.parse(n)),this._extent)},t.prototype.scale=function(n){return n=Math.round(pet(n,this._extent)),this.getRawOrdinalNumber(n)},t.prototype.getTicks=function(){for(var t=[],i=this._extent,n=i[0];n<=i[1];)t.push({value:n}),n++;return t},t.prototype.getMinorTicks=function(){},t.prototype.setSortInfo=function(n){var u,i;if(null!=n){for(var f=n.ordinalNumbers,e=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],t=0,o=this._ordinalMeta.categories.length,s=Math.min(o,f.length);t<s;++t)u=f[t],e[t]=u,r[u]=t;for(i=0;t<o;++t){for(;null!=r[i];)i++;e.push(i);r[i]=t}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},t.prototype._getTickNumber=function(n){var t=this._ticksByOrdinalNumber;return t&&n>=0&&n<t.length?t[n]:n},t.prototype.getRawOrdinalNumber=function(n){var t=this._ordinalNumbersByTick;return t&&n>=0&&n<t.length?t[n]:n},t.prototype.getLabel=function(n){if(!this.isBlank()){var i=this.getRawOrdinalNumber(n.value),t=this._ordinalMeta.categories[i];return null==t?"":t+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(n,t){this.unionExtent(n.getApproximateExtent(t))},t.prototype.isInExtentRange=function(n){return n=this._getTickNumber(n),this._extent[0]<=n&&this._extent[1]>=n},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(ve);ve.registerClass(ag);uc=ri;ao=function(n){function t(){var t=null!==n&&n.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return i(t,n),t.prototype.parse=function(n){return n},t.prototype.contain=function(n){return vet(n,this._extent)},t.prototype.normalize=function(n){return yet(n,this._extent)},t.prototype.scale=function(n){return pet(n,this._extent)},t.prototype.setExtent=function(n,t){var i=this._extent;isNaN(n)||(i[0]=parseFloat(n));isNaN(t)||(i[1]=parseFloat(t))},t.prototype.unionExtent=function(n){var t=this._extent;n[0]<t[0]&&(t[0]=n[0]);n[1]>t[1]&&(t[1]=n[1]);this.setExtent(t[0],t[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(n){this._interval=n;this._niceExtent=this._extent.slice();this._intervalPrecision=dtr(n)},t.prototype.getTicks=function(n){var u=this._interval,f=this._extent,i=this._niceExtent,e=this._intervalPrecision,t=[],r,o;if(!u)return t;for(f[0]<i[0]&&(n?t.push({value:uc(i[0]-u,e)}):t.push({value:f[0]})),r=i[0];r<=i[1]&&(t.push({value:r}),(r=uc(r+u,e))!==t[t.length-1].value);)if(t.length>1e4)return[];return o=t.length?t[t.length-1].value:i[1],f[1]>o&&(n?t.push({value:uc(o+u,e)}):t.push({value:f[1]})),t},t.prototype.getMinorTicks=function(n){for(var i,r=this.getTicks(!0),f=[],e=this.getExtent(),t=1;t<r.length;t++){for(var h=r[t],o=r[t-1],u=0,s=[],c=(h.value-o.value)/n;u<n-1;)i=uc(o.value+(u+1)*c),i>e[0]&&i<e[1]&&s.push(i),u++;f.push(s)}return f},t.prototype.getLabel=function(n,t){if(null==n)return"";var i=t&&t.precision;return null==i?i=ue(n.value)||0:"auto"===i&&(i=this._intervalPrecision),rwt(uc(n.value,i,!0))},t.prototype.calcNiceTicks=function(n,t,i){var r,u,f;n=n||5;r=this._extent;u=r[1]-r[0];isFinite(u)&&(u<0&&(u=-u,r.reverse()),f=pcu(r,n,t,i),this._intervalPrecision=f.intervalPrecision,this._interval=f.interval,this._niceExtent=f.niceTickExtent)},t.prototype.calcNiceExtent=function(n){var t=this._extent,r,u,i;t[0]===t[1]&&(0!==t[0]?(r=Math.abs(t[0]),n.fixMax||(t[1]+=r/2),t[0]-=r/2):t[1]=1);u=t[1]-t[0];isFinite(u)||(t[0]=0,t[1]=1);this.calcNiceTicks(n.splitNumber,n.minInterval,n.maxInterval);i=this._interval;n.fixMin||(t[0]=uc(Math.floor(t[0]/i)*i));n.fixMax||(t[1]=uc(Math.ceil(t[1]/i)*i))},t.prototype.setNiceExtent=function(n,t){this._niceExtent=[n,t]},t.type="interval",t}(ve);ve.registerClass(ao);cdt="undefined"!=typeof Float32Array;nir=cdt?Float32Array:Array;wet="__ec_stack_";bet=function(n){function t(t){var i=n.call(this,t)||this;return i.type="time",i}return i(t,n),t.prototype.getLabel=function(n){var t=this.getSetting("useUTC");return cd(n.value,uwi[function(n){switch(n){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(gy(this._minLevelUnit))]||uwi.second,t,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(n,t,i){var f=this.getSetting("useUTC");return function(n,t,i,f,e){var s=null,c,h,v,y,p;if(o(i))s=i;else if(l(i))s=i(n.value,t,{level:n.level});else{if(c=r({},hd),n.level>0)for(h=0;h<twt.length;++h)c[twt[h]]="{primary|"+c[twt[h]]+"}";if(v=i?!1===i.inherit?i:a(i,c):c,y=ewi(n.value,e),v[y])s=v[y];else if(v.inherit){for(h=fwi.indexOf(y)-1;h>=0;--h)if(v[y]){s=v[y];break}s=s||c.none}u(s)&&(p=null==n.level?0:n.level>=0?n.level:s.length+n.level,s=s[p=Math.min(p,s.length-1)])}return cd(new Date(n.value),s,e,f)}(n,t,i,this.getSetting("locale"),f)},t.prototype.getTicks=function(){var u=this._interval,t=this._extent,n=[],i,r;return u?(n.push({value:t[0],level:0}),i=this.getSetting("useUTC"),r=function(n,t,i,r){function tt(n,t,i,u,f,e,o){for(var h=new Date(t),s=t,c=h[u]();s<i&&s<=r[1];)o.push({value:s}),c+=n,h[f](c),s=h.getTime();o.push({value:s,notAdd:!0})}function it(n,u,f){var c=[],y=!u.length,e,l,a;if(!function(n,t,i,r){var l=au(t),a=au(i),u=function(n){return owi(l,n,r)===owi(a,n,r)},f=function(){return u("year")},e=function(){return f()&&u("month")},o=function(){return e()&&u("day")},s=function(){return o()&&u("hour")},h=function(){return s()&&u("minute")},c=function(){return h()&&u("second")},v=function(){return c()&&u("millisecond")};switch(n){case"year":return f();case"month":return e();case"day":return o();case"hour":return s();case"minute":return h();case"second":return c();case"millisecond":return v()}}(gy(n),r[0],r[1],i)){for(y&&(u=[{value:gcu(new Date(r[0]),n,i)},{value:r[1]}]),e=0;e<u.length-1;e++)if(l=u[e].value,a=u[e+1].value,l!==a){var o=void 0,s=void 0,h=void 0,v=!1;switch(n){case"year":o=Math.max(1,Math.round(t/sd/365));s=iwt(i);h=aou(i);break;case"half-year":case"quarter":case"month":o=bcu(t);s=np(i);h=swi(i);break;case"week":case"half-week":case"day":o=wcu(t);s=yut(i);h=hwi(i);v=!0;break;case"half-day":case"quarter-day":case"hour":o=kcu(t);s=ld(i);h=cwi(i);break;case"minute":o=sir(t,!0);s=put(i);h=lwi(i);break;case"second":o=sir(t,!1);s=wut(i);h=awi(i);break;case"millisecond":o=dcu(t);s=but(i);h=vwi(i)}tt(o,l,a,s,h,v,c);"year"===n&&f.length>1&&0===e&&f.unshift({value:f[0].value-o})}for(e=0;e<c.length;e++)f.push(c[e]);return c}}for(var g,p,s,a,v,b,y,k,o=fwi,nt=0,c=[],e=[],l=0,d=0,u=0;u<o.length&&nt++<1e4;++u)if(g=gy(o[u]),lou(o[u])&&(it(o[u],c[c.length-1]||[],e),g!==(o[u+1]?gy(o[u+1]):null))){if(e.length){for(d=l,e.sort(function(n,t){return n.value-t.value}),p=[],s=0;s<e.length;++s)a=e[s].value,0!==s&&e[s-1].value===a||(p.push(e[s]),a>=r[0]&&a<=r[1]&&l++);if(v=(r[1]-r[0])/t,l>1.5*v&&d>v/1.5)break;if(c.push(p),l>v||n===o[u])break}e=[]}0;var w=yt(f(c,function(n){return yt(n,function(n){return n.value>=r[0]&&n.value<=r[1]&&!n.notAdd})}),function(n){return n.length>0}),h=[],rt=w.length-1;for(u=0;u<w.length;++u)for(b=w[u],y=0;y<b.length;++y)h.push({value:b[y].value,level:rt-u});for(h.sort(function(n,t){return n.value-t.value}),k=[],u=0;u<h.length;++u)0!==u&&h[u].value===h[u-1].value||k.push(h[u]);return k}(this._minLevelUnit,this._approxInterval,i,t),(n=n.concat(r)).push({value:t[1],level:0}),n):n},t.prototype.calcNiceExtent=function(n){var t=this._extent,i;(t[0]===t[1]&&(t[0]-=sd,t[1]+=sd),t[1]===-1/0&&t[0]===1/0)&&(i=new Date,t[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),t[0]=t[1]-sd);this.calcNiceTicks(n.splitNumber,n.minInterval,n.maxInterval)},t.prototype.calcNiceTicks=function(n,t,i){var r,e,u,f;n=n||10;r=this._extent;e=r[1]-r[0];this._approxInterval=e/n;null!=t&&this._approxInterval<t&&(this._approxInterval=t);null!=i&&this._approxInterval>i&&(this._approxInterval=i);u=vg.length;f=Math.min(function(n,t,i,r){for(;i<r;){var u=i+r>>>1;n[u][1]<t?i=u+1:r=u}return i}(vg,this._approxInterval,0,u),u-1);this._interval=vg[f][1];this._minLevelUnit=vg[Math.max(f-1,0)][0]},t.prototype.parse=function(n){return ht(n)?n:+au(n)},t.prototype.contain=function(n){return vet(this.parse(n),this._extent)},t.prototype.normalize=function(n){return yet(this.parse(n),this._extent)},t.prototype.scale=function(n){return pet(n,this._extent)},t.type="time",t}(ao);vg=[["second",nwi],["minute",twi],["hour",iwi],["quarter-day",216e5],["half-day",432e5],["day",10368e4],["half-week",3024e5],["week",6048e5],["month",26784e5],["quarter",8208e6],["half-year",rwi/2],["year",rwi]];ve.registerClass(bet);var hir=ve.prototype,yg=ao.prototype,nlu=ri,tlu=Math.floor,ilu=Math.ceil,ket=Math.pow,ye=Math.log,vdt=function(n){function t(){var t=null!==n&&n.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new ao,t._interval=0,t}return i(t,n),t.prototype.getTicks=function(n){var r=this._originalScale,t=this._extent,i=r.getExtent();return f(yg.getTicks.call(this,n),function(n){var u=n.value,r=ri(ket(this.base,u));return r=u===t[0]&&this._fixMin?det(r,i[0]):r,{value:r=u===t[1]&&this._fixMax?det(r,i[1]):r}},this)},t.prototype.setExtent=function(n,t){var i=ye(this.base);n=ye(Math.max(0,n))/i;t=ye(Math.max(0,t))/i;yg.setExtent.call(this,n,t)},t.prototype.getExtent=function(){var i=this.base,n=hir.getExtent.call(this),t;return n[0]=ket(i,n[0]),n[1]=ket(i,n[1]),t=this._originalScale.getExtent(),this._fixMin&&(n[0]=det(n[0],t[0])),this._fixMax&&(n[1]=det(n[1],t[1])),n},t.prototype.unionExtent=function(n){this._originalScale.unionExtent(n);var t=this.base;n[0]=ye(n[0])/ye(t);n[1]=ye(n[1])/ye(t);hir.unionExtent.call(this,n)},t.prototype.unionExtentFromData=function(n,t){this.unionExtent(n.getApproximateExtent(t))},t.prototype.calcNiceTicks=function(n){var i,r,t,u;if(n=n||10,i=this._extent,r=i[1]-i[0],!(r===1/0||r<=0)){for(t=uli(r),n/r*t<=.5&&(t*=10);!isNaN(t)&&Math.abs(t)<1&&Math.abs(t)>0;)t*=10;u=[ri(ilu(i[0]/t)*t),ri(tlu(i[1]/t)*t)];this._interval=t;this._niceExtent=u}},t.prototype.calcNiceExtent=function(n){yg.calcNiceExtent.call(this,n);this._fixMin=n.fixMin;this._fixMax=n.fixMax},t.prototype.parse=function(n){return n},t.prototype.contain=function(n){return vet(n=ye(n)/ye(this.base),this._extent)},t.prototype.normalize=function(n){return yet(n=ye(n)/ye(this.base),this._extent)},t.prototype.scale=function(n){return n=pet(n,this._extent),ket(this.base,n)},t.type="log",t}(ve),cir=vdt.prototype;cir.getMinorTicks=yg.getMinorTicks;cir.getLabel=yg.getLabel;ve.registerClass(vdt);var rlu=function(){function n(n,t,i){this._prepareParams(n,t,i)}return n.prototype._prepareParams=function(n,t,i){var s,r,f,e,o;i[1]<i[0]&&(i=[NaN,NaN]);this._dataMin=i[0];this._dataMax=i[1];s=this._isOrdinal="ordinal"===n.type;this._needCrossZero="interval"===n.type&&t.getNeedCrossZero&&t.getNeedCrossZero();r=this._modelMinRaw=t.get("min",!0);l(r)?this._modelMinNum=get(n,r({min:i[0],max:i[1]})):"dataMin"!==r&&(this._modelMinNum=get(n,r));f=this._modelMaxRaw=t.get("max",!0);(l(f)?this._modelMaxNum=get(n,f({min:i[0],max:i[1]})):"dataMax"!==f&&(this._modelMaxNum=get(n,f)),s)?this._axisDataLen=t.getCategories().length:(e=t.get("boundaryGap"),o=u(e)?e:[e||0,e||0],this._boundaryGapInner="boolean"==typeof o[0]||"boolean"==typeof o[1]?[0,0]:[re(o[0],1),re(o[1],1)])},n.prototype.calculate=function(){var i=this._isOrdinal,r=this._dataMin,f=this._dataMax,u=this._axisDataLen,c=this._boundaryGapInner,l=i?null:f-r||Math.abs(r),n="dataMin"===this._modelMinRaw?r:this._modelMinNum,t="dataMax"===this._modelMaxRaw?f:this._modelMaxNum,e=null!=n,o=null!=t,a,s,h;return null==n&&(n=i?u?0:NaN:r-c[0]*l),null==t&&(t=i?u?u-1:NaN:f+c[1]*l),(null==n||!isFinite(n))&&(n=NaN),(null==t||!isFinite(t))&&(t=NaN),a=yv(n)||yv(t)||i&&!u,this._needCrossZero&&(n>0&&t>0&&!e&&(n=0),n<0&&t<0&&!o&&(t=0)),s=this._determinedMin,h=this._determinedMax,null!=s&&(n=s,e=!0),null!=h&&(t=h,o=!0),{min:n,max:t,minFixed:e,maxFixed:o,isBlank:a}},n.prototype.modifyDataMinMax=function(n,t){this[flu[n]]=t},n.prototype.setDeterminedMinMax=function(n,t){var i=ulu[n];this[i]=t},n.prototype.freeze=function(){this.frozen=!0},n}(),ulu={min:"_determinedMin",max:"_determinedMax"},flu={min:"_dataMin",max:"_dataMax"};var dp=function(){function n(){}return n.prototype.getNeedCrossZero=function(){return!this.option.scale},n.prototype.getCoordSysModel=function(){},n}(),olu={isDimensionStacked:as,enableDataStack:btr,getStackedDimension:odt},slu=Object.freeze({__proto__:null,createList:function(n){return lo(null,n)},getLayoutRect:ci,dataStack:olu,createScale:function(n,t){var r=t,i;return t instanceof at||(r=new at(t)),i=pg(r),i.setExtent(n[0],n[1]),la(i,r),i},mixinAxisModelCommonMethods:function(n){fi(n,dp)},getECData:b,createTextStyle:function(n,t){return gt(n,null,null,"normal"!==(t=t||{}).state)},createDimensions:function(n,t){return bp(n,t).dimensions},createSymbol:si,enableHoverEmphasis:ah});pir=[];var bir=function(){function n(n){this.name=n}return n.prototype.setCenter=function(n){this._center=n},n.prototype.getCenter=function(){var n=this._center;return n||(n=this._center=this.calcCenter()),n},n}(),kir=function(n,t){this.type="polygon";this.exterior=n;this.interiors=t},dir=function(n){this.type="linestring";this.points=n},gir=function(n){function r(t,i,r){var u=n.call(this,t)||this;return u.type="geoJSON",u.geometries=i,u._center=r&&[r[0],r[1]],u}return i(r,n),r.prototype.calcCenter=function(){for(var n,t,r=this.geometries,u=0,i=0;i<r.length;i++){var f=r[i],e=f.exterior,o=e&&e.length;o>u&&(t=f,u=o)}return t?function(n){for(var t=0,h=0,c=0,r=n.length,u=n[r-1][0],f=n[r-1][1],i=0;i<r;i++){var e=n[i][0],o=n[i][1],s=u*o-e*f;t+=s;h+=(u+e)*s;c+=(f+o)*s;u=e;f=o}return t?[h/t/3,c/t/3,t]:[n[0][0]||0,n[0][1]||0]}(t.exterior):(n=this.getBoundingRect(),[n.x+n.width/2,n.y+n.height/2])},r.prototype.getBoundingRect=function(n){var u=this._rect,i,r;return u&&!n?u:(i=[1/0,1/0],r=[-1/0,-1/0],t(this.geometries,function(u){"polygon"===u.type?wir(u.exterior,i,r,n):t(u.points,function(t){wir(t,i,r,n)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(r[0])&&isFinite(r[1])||(i[0]=i[1]=r[0]=r[1]=0),u=new nt(i[0],i[1],r[0]-i[0],r[1]-i[1]),n||(this._rect=u),u)},r.prototype.contain=function(n){var s=this.getBoundingRect(),f=this.geometries,t,e,i,o,r,u;if(!s.contain(n[0],n[1]))return!1;n:for(t=0,e=f.length;t<e;t++)if(i=f[t],"polygon"===i.type&&(o=i.exterior,r=i.interiors,aa(o,n[0],n[1]))){for(u=0;u<(r?r.length:0);u++)if(aa(r[u],n[0],n[1]))continue n;return!0}return!1},r.prototype.transformTo=function(n,i,r,u){var f=this.getBoundingRect(),h=f.width/f.height,e;r?u||(u=r/h):r=h*u;for(var c=new nt(n,i,r,u),o=f.calculateTransform(c),l=this.geometries,s=0;s<l.length;s++)e=l[s],"polygon"===e.type?(wdt(e.exterior,o),t(e.interiors,function(n){wdt(n,o)})):t(e.points,function(n){wdt(n,o)});(f=this._rect).copy(c);this._center=[f.x+f.width/2,f.y+f.height/2]},r.prototype.cloneShallow=function(n){null==n&&(n=this.name);var t=new r(n,this.geometries,this._center);return t._rect=this._rect,t.transformTo=null,t},r}(bir),hlu=function(n){function t(t,i){var r=n.call(this,t)||this;return r.type="geoSVG",r._elOnlyForCalculate=i,r}return i(t,n),t.prototype.calcCenter=function(){for(var u=this._elOnlyForCalculate,i=u.getBoundingRect(),r=[i.x+i.width/2,i.y+i.height/2],n=vb(pir),t=u;t&&!t.isGeoSVGGraphicRoot;)ge(n,t.getLocalTransform(),n),t=t.parent;return wc(n,n),nr(r,r,n),r},t}(bir);var clu=Object.freeze({__proto__:null,linearMap:pt,round:ri,asc:lu,getPrecision:ue,getPrecisionSafe:tli,getPixelPrecision:tvt,getPercentWithPrecision:function(n,t,i){return n[t]&&ili(n,i)[t]||0},MAX_SAFE_INTEGER:rrt,remRadian:ivt,isRadianAroundZero:ck,parseDate:au,quantity:uli,quantityExponent:urt,nice:rvt,quantile:frt,reformIntervals:uvt,isNumeric:fvt,numericToNumber:io}),llu=Object.freeze({__proto__:null,parse:au,format:cd}),alu=Object.freeze({__proto__:null,extendShape:tpi,extendPath:rpi,makePath:rd,makeImage:hpt,mergePath:ou,resizePath:cpt,createIcon:wy,updateProps:lt,initProps:ii,getTransform:yh,clipPointsByRect:lpt,clipRectByRect:epi,registerShape:sf,getShapeClass:out,Group:p,Image:wi,Text:st,Circle:vu,Ellipse:hy,Sector:ur,Ring:gl,Polygon:fr,Polyline:er,Rect:ot,Line:vi,BezierCurve:na,Arc:ly,IncrementalDisplayable:dyi,CompoundPath:tut,LinearGradient:ay,RadialGradient:ept,BoundingRect:nt}),vlu=Object.freeze({__proto__:null,addCommas:rwt,toCamelCase:uwt,normalizeCssArray:bh,encodeHTML:wr,formatTpl:owt,getTooltipMarker:ywi,formatTime:function(n,t,i){"week"!==n&&"month"!==n&&"quarter"!==n&&"half-year"!==n&&"year"!==n||(n="MM-dd\nyyyy");var r=au(t),u=i?"getUTC":"get",f=r[u+"FullYear"](),e=r[u+"Month"]()+1,o=r[u+"Date"](),s=r[u+"Hours"](),h=r[u+"Minutes"](),c=r[u+"Seconds"](),l=r[u+"Milliseconds"]();return n.replace("MM",nu(e,2)).replace("M",e).replace("yyyy",f).replace("yy",nu(f%100+"",2)).replace("dd",nu(o,2)).replace("d",o).replace("hh",nu(s,2)).replace("h",s).replace("mm",nu(h,2)).replace("m",h).replace("ss",nu(c,2)).replace("s",c).replace("SSS",nu(l,3))},capitalFirst:function(n){return n?n.charAt(0).toUpperCase()+n.substr(1):n},truncateText:dli,getTextRect:function(n,t,i,r,u,f,e,o){return new st({style:{text:n,font:t,align:i,verticalAlign:r,padding:u,rich:f,overflow:e?"truncate":null,lineHeight:o}}).getBoundingRect()}}),ylu=Object.freeze({__proto__:null,map:f,each:t,indexOf:tt,inherits:kct,reduce:du,filter:yt,bind:s,curry:w,isArray:u,isString:o,isObject:v,isFunction:l,extend:r,defaults:a,clone:y,merge:k}),bg=ct();kdt=[0,1];pu=function(){function n(n,t,i){this.onBand=!1;this.inverse=!1;this.dim=n;this.scale=t;this._extent=i||[0,0]}return n.prototype.contain=function(n){var t=this._extent,i=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return n>=i&&n<=r},n.prototype.containData=function(n){return this.scale.contain(n)},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.getPixelPrecision=function(n){return tvt(n||this.scale.getExtent(),this._extent)},n.prototype.setExtent=function(n,t){var i=this._extent;i[0]=n;i[1]=t},n.prototype.dataToCoord=function(n,t){var i=this._extent,r=this.scale;return n=r.normalize(n),this.onBand&&"ordinal"===r.type&&srr(i=i.slice(),r.count()),pt(n,kdt,i,t)},n.prototype.coordToData=function(n,t){var i=this._extent,r=this.scale,u;return this.onBand&&"ordinal"===r.type&&srr(i=i.slice(),r.count()),u=pt(n,i,kdt,t),this.scale.scale(u)},n.prototype.pointToData=function(){},n.prototype.getTicksCoords=function(n){var i=(n=n||{}).tickModel||this.getTickModel(),r=f(wlu(this,i).ticks,function(n){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(n):n),tickValue:n}},this);return function(n,i,r,u){function s(n,t){return n=ri(n),t=ri(t),a?n>t:n<t}var e=i.length,o,c,f,l,h,a;n.onBand&&!r&&e&&(f=n.getExtent(),1===e?(i[0].coord=f[0],o=i[1]={coord:f[1]}):(l=i[e-1].tickValue-i[0].tickValue,h=(i[e-1].coord-i[0].coord)/l,t(i,function(n){n.coord-=h/2}),c=1+n.scale.getExtent()[1]-i[e-1].tickValue,o={coord:i[e-1].coord+h*c},i.push(o)),a=f[0]>f[1],s(i[0].coord,f[0])&&(u?i[0].coord=f[0]:i.shift()),u&&s(f[0],i[0].coord)&&i.unshift({coord:f[0]}),s(f[1],o.coord)&&(u?o.coord=f[1]:i.pop()),u&&s(o.coord,f[1])&&i.push({coord:f[1]}))}(this,r,i.get("alignWithLabel"),n.clamp),r},n.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var n=this.model.getModel("minorTick").get("splitNumber");return n>0&&n<100||(n=5),f(this.scale.getMinorTicks(n),function(n){return f(n,function(n){return{coord:this.dataToCoord(n),tickValue:n}},this)},this)},n.prototype.getViewLabels=function(){return plu(this).labels},n.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},n.prototype.getTickModel=function(){return this.model.getModel("axisTick")},n.prototype.getBandWidth=function(){var t=this._extent,i=this.scale.getExtent(),n=i[1]-i[0]+(this.onBand?1:0),r;return 0===n&&(n=1),r=Math.abs(t[1]-t[0]),Math.abs(r)/n},n.prototype.calculateCategoryInterval=function(){return function(n){var c=function(n){var t=n.getLabelModel();return{axisRotate:n.getRotate?n.getRotate():n.isHorizontal&&!n.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}(n),nt=wg(n),p=(c.axisRotate-c.labelRotate)/180*Math.PI,w=n.scale,u=w.getExtent(),f=w.count(),l,k,d,y,e,o;if(u[1]-u[0]<1)return 0;l=1;f>40&&(l=Math.max(1,Math.floor(f/40)));for(var i=u[0],b=n.dataToCoord(i+1)-n.dataToCoord(i),tt=Math.abs(b*Math.cos(p)),it=Math.abs(b*Math.sin(p)),a=0,v=0;i<=u[1];i+=l)y=sk(nt({value:i}),c.font,"center","top"),k=1.3*y.width,d=1.3*y.height,a=Math.max(a,k,7),v=Math.max(v,d,7);e=a/tt;o=v/it;isNaN(e)&&(e=1/0);isNaN(o)&&(o=1/0);var r=Math.max(0,Math.floor(Math.min(e,o))),t=bg(n.model),s=n.getExtent(),h=t.lastAutoInterval,g=t.lastTickCount;return null!=h&&null!=g&&Math.abs(h-r)<=1&&Math.abs(g-f)<=1&&h>r&&t.axisExtent0===s[0]&&t.axisExtent1===s[1]?r=h:(t.lastTickCount=f,t.lastAutoInterval=r,t.axisExtent0=s[0],t.axisExtent1=s[1]),r}(this)},n}();var kg=2*Math.PI,va=fe.CMD,blu=["top","right","bottom","left"];yf=[];var pe=new g,ti=new g,hi=new g,yo=new g,po=new g;dg=[];pr=new g;var brr=["align","verticalAlign","width","height","fontSize"],iu=new us,ngt=ct(),fau=ct();var rot=["x","y","rotation"],eau=function(){function n(){this._labelList=[];this._chartViewList=[]}return n.prototype.clearLabels=function(){this._labelList=[];this._chartViewList=[]},n.prototype._addLabel=function(n,t,i,r,u){var e=r.style,l=r.__hostTarget.textConfig||{},h=r.getComputedTransform(),c=r.getBoundingRect().plain(),f,o,a,s;nt.applyTransform(c,c,h);h?iu.setLocalTransform(h):(iu.x=iu.y=iu.rotation=iu.originX=iu.originY=0,iu.scaleX=iu.scaleY=1);iu.rotation=ee(iu.rotation);o=r.__hostTarget;o&&(f=o.getBoundingRect().plain(),a=o.getComputedTransform(),nt.applyTransform(f,f,a));s=f&&o.getTextGuideLine();this._labelList.push({label:r,labelLine:s,seriesModel:i,dataIndex:n,dataType:t,layoutOption:u,computedLayoutOption:null,rect:c,hostRect:f,priority:f?f.width*f.height:0,defaultAttr:{ignore:r.ignore,labelGuideIgnore:s&&s.ignore,x:iu.x,y:iu.y,scaleX:iu.scaleX,scaleY:iu.scaleY,rotation:iu.rotation,style:{x:e.x,y:e.y,align:e.align,verticalAlign:e.verticalAlign,width:e.width,height:e.height,fontSize:e.fontSize},cursor:r.cursor,attachedPos:l.position,attachedRot:l.rotation}})},n.prototype.addLabelsOfSeries=function(n){var r=this,i,t;this._chartViewList.push(n);i=n.__model;t=i.get("labelLayout");(l(t)||et(t).length)&&n.group.traverse(function(n){if(n.ignore)return!0;var u=n.getTextContent(),f=b(n);u&&!u.disableLabelLayout&&r._addLabel(f.dataIndex,f.dataType,i,u,t)})},n.prototype.updateLayoutConfig=function(n){function b(n,t){return function(){crr(n,t)}}for(var a,o,v,h,s,y,p=n.getWidth(),w=n.getHeight(),c=0;c<this._labelList.length;c++){var r=this._labelList[c],i=r.label,f=i.__hostTarget,u=r.defaultAttr,t=void 0;for(t=(t=l(r.layoutOption)?r.layoutOption(uau(r,f)):r.layoutOption)||{},r.computedLayoutOption=t,a=Math.PI/180,f&&f.setTextConfig({local:!1,position:null!=t.x||null!=t.y?null:u.attachedPos,rotation:null!=t.rotate?t.rotate*a:u.attachedRot,offset:[t.dx||0,t.dy||0]}),o=!1,(null!=t.x?(i.x=e(t.x,p),i.setStyle("x",0),o=!0):(i.x=u.x,i.setStyle("x",u.style.x)),null!=t.y?(i.y=e(t.y,w),i.setStyle("y",0),o=!0):(i.y=u.y,i.setStyle("y",u.style.y)),t.labelLinePoints)&&(v=f.getTextGuideLine(),v&&(v.setShape({points:t.labelLinePoints}),o=!1)),ngt(i).needsUpdateLabelLine=o,i.rotation=null!=t.rotate?t.rotate*a:u.rotation,i.scaleX=u.scaleX,i.scaleY=u.scaleY,h=0;h<brr.length;h++)s=brr[h],i.setStyle(s,null!=t[s]?t[s]:u.style[s]);if(t.draggable){if(i.draggable=!0,i.cursor="move",f){y=r.seriesModel;null!=r.dataIndex&&(y=r.seriesModel.getData(r.dataType).getItemModel(r.dataIndex));i.on("drag",b(f,y.getModel("labelLine")))}}else i.off("drag"),i.cursor=u.cursor}},n.prototype.layout=function(n){var i,r=n.getWidth(),u=n.getHeight(),t=vrr(this._labelList),f=yt(t,function(n){return"shiftX"===n.layoutOption.moveOverlap}),e=yt(t,function(n){return"shiftY"===n.layoutOption.moveOverlap});yrr(f,"x","width",0,r,i);prr(e,0,u);wrr(yt(t,function(n){return n.layoutOption.hideOverlap}))},n.prototype.processLabelsOverall=function(){var n=this;t(this._chartViewList,function(t){var i=t.__model,r=t.ignoreLabelLineUpdate,u=i.isAnimationEnabled();t.group.traverse(function(t){if(t.ignore&&!t.forceLabelAnimation)return!0;var f=!r,e=t.getTextContent();!f&&e&&(f=ngt(e).needsUpdateLabelLine);f&&n._updateLabelLine(t,i);u&&n._animateLabels(t,i)})})},n.prototype._updateLabelLine=function(n,t){var c=n.getTextContent(),u=b(n),i=u.dataIndex,s,h;if(c&&null!=i){var r=t.getData(u.dataType),f=r.getItemModel(i),e={},o=r.getItemVisual(i,"style");o&&(s=r.getVisual("drawType"),e.stroke=o[s]);h=f.getModel("labelLine");ddt(n,gdt(f),e);crr(n,h)}},n.prototype._animateLabels=function(n,t){var i=n.getTextContent(),r=n.getTextGuideLine(),o,v,c,l,u,s;if(i&&(n.forceLabelAnimation||!i.ignore&&!i.invisible&&!n.disableLabelAnimation&&!yy(n))){var f=(u=ngt(i)).oldLayout,a=b(n),h=a.dataIndex,e={x:i.x,y:i.y,rotation:i.rotation},y=t.getData(a.dataType);f?(i.attr(f),o=n.prevStates,o&&(tt(o,"select")>=0&&i.attr(u.oldLayoutSelect),tt(o,"emphasis")>=0&&i.attr(u.oldLayoutEmphasis)),lt(i,e,t,h)):(i.attr(e),ra(i).valueAnimation)||(v=d(i.style.opacity,1),i.style.opacity=0,ii(i,{style:{opacity:v}},t,h));(u.oldLayout=e,i.states.select)&&(c=u.oldLayoutSelect={},iot(c,e,rot),iot(c,i.states.select,rot));i.states.emphasis&&(l=u.oldLayoutEmphasis={},iot(l,e,rot),iot(l,i.states.emphasis,rot));wpi(i,h,y,t,t)}!r||r.ignore||r.invisible||(f=(u=fau(r)).oldLayout,s={points:r.shape.points},f?(r.attr({shape:f}),lt(r,{shape:s},t)):(r.setShape(s),r.style.strokePercent=0,ii(r,{style:{strokePercent:1}},t)),u.oldLayout=s)},n}(),tgt=ct(),igt=Math.sin,rgt=Math.cos,krr=Math.PI,ya=2*Math.PI,oau=180/krr,drr=function(){function n(){}return n.prototype.reset=function(n){this._start=!0;this._d=[];this._str="";this._p=Math.pow(10,n||4)},n.prototype.moveTo=function(n,t){this._add("M",n,t)},n.prototype.lineTo=function(n,t){this._add("L",n,t)},n.prototype.bezierCurveTo=function(n,t,i,r,u,f){this._add("C",n,t,i,r,u,f)},n.prototype.quadraticCurveTo=function(n,t,i,r){this._add("Q",n,t,i,r)},n.prototype.arc=function(n,t,i,r,u,f){this.ellipse(n,t,i,i,0,r,u,f)},n.prototype.ellipse=function(n,t,i,r,u,f,e,o){var s=e-f,h=!o,p=Math.abs(s),w=eh(p-ya)||(h?s>=ya:-s>=ya),g=s>0?s%ya:s%ya+ya,b=!1,l,a,c,v,y,k,d;b=!!w||!eh(p)&&g>=krr==!!h;l=n+i*rgt(f);a=t+r*igt(f);this._start&&this._add("M",l,a);c=Math.round(u*oau);w?(v=1/this._p,y=(h?1:-1)*(ya-v),this._add("A",i,r,c,1,+h,n+i*rgt(f+y),t+r*igt(f+y)),v>.01&&this._add("A",i,r,c,0,+h,l,a)):(k=n+i*rgt(e),d=t+r*igt(e),this._add("A",i,r,c,+b,+h,k,d))},n.prototype.rect=function(n,t,i,r){this._add("M",n,t);this._add("l",i,0);this._add("l",0,r);this._add("l",-i,0);this._add("Z")},n.prototype.closePath=function(){this._d.length>0&&this._add("Z")},n.prototype._add=function(n){for(var i,r=[],u=this._p,t=1;t<arguments.length;t++){if(i=arguments[t],isNaN(i))return void(this._invalid=!0);r.push(Math.round(i*u)/u)}this._d.push(n+r.join(" "));this._start="Z"===n},n.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join("");this._d=[]},n.prototype.getStr=function(){return this._str},n}(),gg="none",sau=Math.round,ugt=["lineCap","miterLimit","lineJoin"],hau=f(ugt,function(n){return"stroke-"+n.toLowerCase()});fgt="http://www.w3.org/2000/svg";egt="http://www.w3.org/1999/xlink";hgt={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"};fc="transform-origin";tur={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};gp=Math.round;cur={circle:[(hur=["cx","cy","r"],agt=f(hur,function(n){return"string"==typeof n?[n,n]:n}),function(n,t,i){for(var u,f,r=0;r<agt.length;r++)u=agt[r],f=n[u[0]],null!=f&&(t[u[1]]=gp(f*i)/i)})],polyline:[our,sur],polygon:[our,sur]};gur=di("","");tfr=0;ifr=function(){function n(n,t,i){var u,f;(this.type="svg",this.refreshHover=rfr("refreshHover"),this.configLayer=rfr("configLayer"),this.storage=t,this._opts=i=r({},i),this.root=n,this._id="zr"+tfr++,this._oldVNode=nur(i.width,i.height),n&&!i.ssr)&&(u=this._viewport=document.createElement("div"),u.style.cssText="position:relative;overflow:hidden",f=this._svgDom=this._oldVNode.elm=grr("svg"),pgt(null,this._oldVNode),u.appendChild(f),n.appendChild(u));this.resize(i.width,i.height)}return n.prototype.getType=function(){return this.type},n.prototype.getViewportRoot=function(){return this._viewport},n.prototype.getViewportRootOffset=function(){var n=this.getViewportRoot();if(n)return{offsetLeft:n.offsetLeft||0,offsetTop:n.offsetTop||0}},n.prototype.getSvgDom=function(){return this._svgDom},n.prototype.refresh=function(){if(this.root){var n=this.renderToVNode({willUpdate:!0});n.attrs.style="position:absolute;left:0;top:0;user-select:none",function(n,t){if(nn(n,t))tw(n,t);else{var r=n.elm,i=kur(r);fot(t);null!==i&&(nw(i,t.elm,dur(r)),eot(i,[n],0,0))}}(this._oldVNode,n);this._oldVNode=n}},n.prototype.renderOneToVNode=function(n){return aur(n,sgt(this._id))},n.prototype.renderToVNode=function(n){var i,u,r,e,o,c;n=n||{};var l=this.storage.getDisplayList(!0),s=this._width,h=this._height,t=sgt(this._id);return t.animation=n.animation,t.willUpdate=n.willUpdate,t.compress=n.compress,i=[],u=this._bgVNode=function(n,t,i,r){var u;if(i&&"none"!==i)if(u=di("rect","bg",{width:n,height:t,x:"0",y:"0",id:"0"}),ici(i))vur({fill:i},u.attrs,"fill",r);else if(uat(i))yur({style:{fill:i},dirty:ei,getBoundingRect:function(){return{width:n,height:t}}},u.attrs,"fill",r);else{var f=fk(i),o=f.color,e=f.opacity;u.attrs.fill=o;e<1&&(u.attrs["fill-opacity"]=e)}return u}(s,h,this._backgroundColor,t),u&&i.push(u),r=n.compress?null:this._mainVNode=di("g","main",{},[]),this._paintList(l,t,r?r.children:i),r&&i.push(r),e=f(et(t.defs),function(n){return t.defs[n]}),(e.length&&i.push(di("defs","defs",{},e)),n.animation)&&(o=function(n,t,i){var r=(i=i||{}).newline?"\n":"",u=" {"+r,e=r+"}",o=f(et(n),function(t){return t+u+f(et(n[t]),function(i){return i+":"+n[t][i]+";"}).join(r)+e}).join(r),s=f(et(t),function(n){return"@keyframes "+n+u+f(et(t[n]),function(i){return i+u+f(et(t[n][i]),function(r){var u=t[n][i][r];return"d"===r&&(u='path("'+u+'")'),r+":"+u+";"}).join(r)+e}).join(r)+e}).join(r);return o||s?["<![CDATA[",o,s,"]\]>"].join(r):""}(t.cssNodes,t.cssAnims,{newline:!0}),o&&(c=di("style","stl",{},[],o),i.push(c))),nur(s,h,i,n.useViewBox)},n.prototype.renderToString=function(n){return n=n||{},ogt(this.renderToVNode({animation:d(n.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:d(n.useViewBox,!0)}),{newline:!0})},n.prototype.setBackgroundColor=function(n){this._backgroundColor=n},n.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},n.prototype._paintList=function(n,t,i){for(var o,l,s,a,h,v,u,e,k=n.length,y=[],p=0,d=0,c=0;c<k;c++)if(o=n[c],!o.invisible){for(var f=o.__clipPaths,w=f&&f.length||0,b=e&&e.length||0,r=void 0,r=Math.max(w-1,b-1);r>=0&&(!f||!e||f[r]!==e[r]);r--);for(l=b-1;l>r;l--)u=y[--p-1];for(s=r+1;s<w;s++)a={},vau(f[s],a,t),h=di("g","clip-g-"+d++,a,[]),(u?u.children:i).push(h),y[p++]=h,u=h;e=f;v=aur(o,t);v&&(u?u.children:i).push(v)}},n.prototype.resize=function(n,t){var r=this._opts,e=this.root,i=this._viewport,o,u,f;(null!=n&&(r.width=n),null!=t&&(r.height=t),e&&i&&(i.style.display="none",n=yp(e,0,r),t=yp(e,1,r),i.style.display=""),this._width!==n||this._height!==t)&&((this._width=n,this._height=t,i)&&(o=i.style,o.width=n+"px",o.height=t+"px"),uat(this._backgroundColor)?this.refresh():(u=this._svgDom,u&&(u.setAttribute("width",n),u.setAttribute("height",t)),f=this._bgVNode&&this._bgVNode.elm,f&&(f.setAttribute("width",n),f.setAttribute("height",t))))},n.prototype.getWidth=function(){return this._width},n.prototype.getHeight=function(){return this._height},n.prototype.dispose=function(){this.root&&(this.root.innerHTML="");this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},n.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null);this._oldVNode=null},n.prototype.toDataURL=function(n){var t=this.renderToString(),i="data:image/svg+xml;";return n?(t=fci(t))&&i+"base64,"+t:i+"charset=UTF-8,"+encodeURIComponent(t)},n}();var wgt=function(n){function r(t,i,r){var f,u=n.call(this)||this,e;return u.motionBlur=!1,u.lastFrameAlpha=.7,u.dpr=1,u.virtual=!1,u.config={},u.incremental=!1,u.zlevel=0,u.maxRepaintRectCount=5,u.__dirty=!0,u.__firstTimePaint=!0,u.__used=!1,u.__drawIndex=0,u.__startIndex=0,u.__endIndex=0,u.__prevStartIndex=null,u.__prevEndIndex=null,r=r||dit,"string"==typeof t?f=ufr(t,i,r):v(t)&&(t=(f=t).id),u.id=t,u.dom=f,e=f.style,e&&(nlt(f),f.onselectstart=function(){return!1},e.padding="0",e.margin="0",e.borderWidth="0"),u.painter=i,u.dpr=r,u}return i(r,n),r.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},r.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex;this.__prevEndIndex=this.__endIndex},r.prototype.initContext=function(){this.ctx=this.dom.getContext("2d");this.ctx.dpr=this.dpr},r.prototype.setUnpainted=function(){this.__firstTimePaint=!0},r.prototype.createBackBuffer=function(){var n=this.dpr;this.domBack=ufr("back-"+this.id,this.painter,n);this.ctxBack=this.domBack.getContext("2d");1!==n&&this.ctxBack.scale(n,n)},r.prototype.createRepaintRects=function(n,t,i,r){function v(n){var t,f;if(n.isFinite()&&!n.isZero())if(0===u.length)(r=new nt(0,0,0,0)).copy(n),u.push(r);else{for(var r,e=!1,o=1/0,s=0,i=0;i<u.length;++i){if(t=u[i],t.intersect(n)){f=new nt(0,0,0,0);f.copy(t);f.union(n);u[i]=f;e=!0;break}if(h){c.copy(n);c.union(t);var a=n.width*n.height,v=t.width*t.height,l=c.width*c.height-a-v;l<o&&(o=l,s=i)}}(h&&(u[s].union(n),e=!0),e)||((r=new nt(0,0,0,0)).copy(n),u.push(r));h||(h=u.length>=p)}}var f,s,y,e,l,o;if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var a,u=[],p=this.maxRepaintRectCount,h=!1,c=new nt(0,0,0,0);for(f=this.__startIndex;f<this.__endIndex;++f)(e=n[f])&&(s=e.shouldBePainted(i,r,!0,!0),(l=e.__isRendered&&(1&e.__dirty||!s)?e.getPrevPaintRect():null)&&v(l),y=s&&(1&e.__dirty||!e.__isRendered)?e.getPaintRect():null,y&&v(y));for(f=this.__prevStartIndex;f<this.__prevEndIndex;++f)s=(e=t[f]).shouldBePainted(i,r,!0,!0),e&&(!s||!e.__zr)&&e.__isRendered&&(l=e.getPrevPaintRect())&&v(l);do for(a=!1,f=0;f<u.length;)if(u[f].isZero())u.splice(f,1);else{for(o=f+1;o<u.length;)u[f].intersect(u[o])?(a=!0,u[f].union(u[o]),u.splice(o,1)):o++;f++}while(a);return this._paintRects=u,u},r.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},r.prototype.resize=function(n,t){var i=this.dpr,r=this.dom,u=r.style,f=this.domBack;u&&(u.width=n+"px",u.height=t+"px");r.width=n*i;r.height=t*i;f&&(f.width=n*i,f.height=t*i,1!==i&&this.ctxBack.scale(i,i))},r.prototype.clear=function(n,i,r){function a(n,t,r,e){if(u.clearRect(n,t,r,e),i&&"transparent"!==i){var s=void 0;eb(i)?(s=(i.global||i.__width===r&&i.__height===e)&&i.__canvasGradient||pbt(u,i,{x:0,y:0,width:r,height:e}),i.__canvasGradient=s,i.__width=r,i.__height=e):goi(i)&&(i.scaleX=i.scaleX||f,i.scaleY=i.scaleY||f,s=bbt(u,i,{dirty:function(){c.setUnpainted();c.__painter.refresh()}}));u.save();u.fillStyle=s||i;u.fillRect(n,t,r,e);u.restore()}o&&(u.save(),u.globalAlpha=v,u.drawImage(l,n,t,r,e),u.restore())}var e=this.dom,u=this.ctx,s=e.width,h=e.height,l;i=i||this.clearColor;var o=this.motionBlur&&!n,v=this.lastFrameAlpha,f=this.dpr,c=this;o&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(e,0,0,s/f,h/f));l=this.domBack;!r||o?a(0,0,s,h):r.length&&t(r,function(n){a(n.x*f,n.y*f,n.width*f,n.height*f)})},r}(nf),ffr=1e5,tn=314159,oot=.01,pau=function(){function n(n,t,i){var e,h,c,f,l;if(this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas",e=!n.nodeName||"CANVAS"===n.nodeName.toUpperCase(),this._opts=i=r({},i||{}),this.dpr=i.devicePixelRatio||dit,this._singleCanvas=e,this.root=n,n.style&&(nlt(n),n.innerHTML=""),this.storage=t,h=this._zlevelList,this._prevDisplayList=[],c=this._layers,e){var u=n,o=u.width,s=u.height;null!=i.width&&(o=i.width);null!=i.height&&(s=i.height);this.dpr=i.devicePixelRatio||1;u.width=o*this.dpr;u.height=s*this.dpr;this._width=o;this._height=s;f=new wgt(u,this,this.dpr);f.__builtin__=!0;f.initContext();c[314159]=f;f.zlevel=tn;h.push(tn);this._domRoot=n}else this._width=yp(n,0,i),this._height=yp(n,1,i),l=this._domRoot=function(n,t){var i=document.createElement("div");return i.style.cssText=["position:relative","width:"+n+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",i}(this._width,this._height),n.appendChild(l)}return n.prototype.getType=function(){return"canvas"},n.prototype.isSingleCanvas=function(){return this._singleCanvas},n.prototype.getViewportRoot=function(){return this._domRoot},n.prototype.getViewportRootOffset=function(){var n=this.getViewportRoot();if(n)return{offsetLeft:n.offsetLeft||0,offsetTop:n.offsetTop||0}},n.prototype.refresh=function(n){var r=this.storage.getDisplayList(!0),o=this._prevDisplayList,u=this._zlevelList,t,f,i,e;for(this._redrawId=Math.random(),this._paintList(r,o,n,this._redrawId),t=0;t<u.length;t++)f=u[t],i=this._layers[f],!i.__builtin__&&i.refresh&&(e=0===t?this._backgroundColor:null,i.refresh(e));return this._opts.useDirtyRect&&(this._prevDisplayList=r.slice()),this},n.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},n.prototype._paintHoverList=function(n){var u=n.length,t=this._hoverlayer,i,e,r,f;if(t&&t.clear(),u){for(e={inHover:!0,viewWidth:this._width,viewHeight:this._height},r=0;r<u;r++)f=n[r],f.__inHover&&(t||(t=this._hoverlayer=this.getLayer(ffr)),i||(i=t.ctx).save(),ha(i,f,e,r===u-1));i&&i.restore()}},n.prototype.getHoverLayer=function(){return this.getLayer(ffr)},n.prototype.paintOne=function(n,t){gbt(n,t)},n.prototype._paintList=function(n,t,i,r){var f;if(this._redrawId===r){i=i||!1;this._updateLayerStatus(n);var u=this._doPaintList(n,t,i),e=u.finished,o=u.needsRefreshHover;(this._needsManuallyCompositing&&this._compositeManually(),o&&this._paintHoverList(n),e)?this.eachLayer(function(n){n.afterBrush&&n.afterBrush()}):(f=this,plt(function(){f._paintList(n,t,i,r)}))}},n.prototype._compositeManually=function(){var n=this.getLayer(tn).ctx,t=this._domRoot.width,i=this._domRoot.height;n.clearRect(0,0,t,i);this.eachBuiltinLayer(function(r){r.virtual&&n.drawImage(r.dom,0,0,t,i)})},n.prototype._doPaintList=function(n,i,r){for(var l,u,e=this,o=[],c=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++)l=this._zlevelList[s],u=this._layers[l],u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||r)&&o.push(u);for(var a=!0,v=!1,y=function(t){var h,u=o[t],s=u.ctx,l=c&&u.createRepaintRects(n,i,f._width,f._height),p=r?u.__startIndex:u.__drawIndex,g=!r&&u.incremental&&Date.now,tt=g&&Date.now(),nt=u.zlevel===f._zlevelList[0]?f._backgroundColor:null,k,d,w,b,y;if(u.__startIndex===u.__endIndex?u.clear(!1,nt,l):p===u.__startIndex&&(k=n[p],k.incremental&&k.notClear&&!r||u.clear(!1,nt,l)),-1===p&&(console.error("For some unknown reason. drawIndex is -1"),p=u.__startIndex),d=function(t){var r={inHover:!1,allClipped:!1,prevEl:null,viewWidth:e._width,viewHeight:e._height},i;for(h=p;h<u.__endIndex;h++)if(i=n[h],(i.__inHover&&(v=!0),e._doPaintEl(i,u,c,t,r,h===u.__endIndex-1),g)&&Date.now()-tt>15)break;r.prevElClipPaths&&s.restore()},l)if(0===l.length)h=u.__endIndex;else for(w=f.dpr,b=0;b<l.length;++b)y=l[b],s.save(),s.beginPath(),s.rect(y.x*w,y.y*w,y.width*w,y.height*w),s.clip(),d(y),s.restore();else s.save(),d(),s.restore();u.__drawIndex=h;u.__drawIndex<u.__endIndex&&(a=!1)},f=this,h=0;h<o.length;h++)y(h);return ft.wxa&&t(this._layers,function(n){n&&n.ctx&&n.ctx.draw&&n.ctx.draw()}),{finished:a,needsRefreshHover:v}},n.prototype._doPaintEl=function(n,t,i,r,u,f){var o=t.ctx,e;i?(e=n.getPaintRect(),(!r||e&&e.intersect(r))&&(ha(o,n,u,f),n.setPrevPaintRect(e))):ha(o,n,u,f)},n.prototype.getLayer=function(n,t){this._singleCanvas&&!this._needsManuallyCompositing&&(n=tn);var i=this._layers[n];return i||((i=new wgt("zr_"+n,this,this.dpr)).zlevel=n,i.__builtin__=!0,this._layerConfig[n]?k(i,this._layerConfig[n],!0):this._layerConfig[n-oot]&&k(i,this._layerConfig[n-oot],!0),t&&(i.virtual=t),this.insertLayer(n,i),i.initContext()),i},n.prototype.insertLayer=function(n,t){var f=this._layers,r=this._zlevelList,s=r.length,u=this._domRoot,e=null,i=-1,o;if(!f[n]&&function(n){return!!n&&(!!n.__builtin__||"function"==typeof n.resize&&"function"==typeof n.refresh)}(t)){if(s>0&&n>r[0]){for(i=0;i<s-1&&!(r[i]<n&&r[i+1]>n);i++);e=f[r[i]]}(r.splice(i+1,0,n),f[n]=t,t.virtual)||(e?(o=e.dom,o.nextSibling?u.insertBefore(t.dom,o.nextSibling):u.appendChild(t.dom)):u.firstChild?u.insertBefore(t.dom,u.firstChild):u.appendChild(t.dom));t.__painter=this}},n.prototype.eachLayer=function(n,t){for(var u,r=this._zlevelList,i=0;i<r.length;i++)u=r[i],n.call(t,this._layers[u],u)},n.prototype.eachBuiltinLayer=function(n,t){for(var u,f,r=this._zlevelList,i=0;i<r.length;i++)u=r[i],f=this._layers[u],f.__builtin__&&n.call(t,f,u)},n.prototype.eachOtherLayer=function(n,t){for(var u,f,r=this._zlevelList,i=0;i<r.length;i++)u=r[i],f=this._layers[u],f.__builtin__||n.call(t,f,u)},n.prototype.getLayers=function(){return this._layers},n.prototype._updateLayerStatus=function(n){function s(n){r&&(r.__endIndex!==n&&(r.__dirty=!0),r.__endIndex=n)}var e,h,i,r,o,u,f,t;if(this.eachBuiltinLayer(function(n){n.__dirty=n.__used=!1}),this._singleCanvas)for(e=1;e<n.length;e++)if((u=n[e]).zlevel!==n[e-1].zlevel||u.incremental){this._needsManuallyCompositing=!0;break}for(r=null,o=0,i=0;i<n.length;i++)f=(u=n[i]).zlevel,t=void 0,h!==f&&(h=f,o=0),u.incremental?((t=this.getLayer(f+.001,this._needsManuallyCompositing)).incremental=!0,o=1):t=this.getLayer(f+(o>0?oot:0),this._needsManuallyCompositing),t.__builtin__||ytt("ZLevel "+f+" has been used by unkown layer "+t.id),t!==r&&(t.__used=!0,t.__startIndex!==i&&(t.__dirty=!0),t.__startIndex=i,t.__drawIndex=t.incremental?-1:i,s(i),r=t),1&u.__dirty&&!u.__inHover&&(t.__dirty=!0,t.incremental&&t.__drawIndex<0&&(t.__drawIndex=i));s(i);this.eachBuiltinLayer(function(n){!n.__used&&n.getElementCount()>0&&(n.__dirty=!0,n.__startIndex=n.__endIndex=n.__drawIndex=0);n.__dirty&&n.__drawIndex<0&&(n.__drawIndex=n.__startIndex)})},n.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},n.prototype._clearLayer=function(n){n.clear()},n.prototype.setBackgroundColor=function(n){this._backgroundColor=n;t(this._layers,function(n){n.setUnpainted()})},n.prototype.configLayer=function(n,t){var i,r,u;if(t)for(i=this._layerConfig,i[n]?k(i[n],t,!0):i[n]=t,r=0;r<this._zlevelList.length;r++)u=this._zlevelList[r],(u===n||u===n+oot)&&k(this._layers[u],i[n],!0)},n.prototype.delLayer=function(n){var i=this._layers,r=this._zlevelList,t=i[n];t&&(t.dom.parentNode.removeChild(t.dom),delete i[n],r.splice(tt(r,n),1))},n.prototype.resize=function(n,t){var i,r,u,f;if(this._domRoot.style){if(i=this._domRoot,i.style.display="none",r=this._opts,u=this.root,null!=n&&(r.width=n),null!=t&&(r.height=t),n=yp(u,0,r),t=yp(u,1,r),i.style.display="",this._width!==n||t!==this._height){for(f in i.style.width=n+"px",i.style.height=t+"px",this._layers)this._layers.hasOwnProperty(f)&&this._layers[f].resize(n,t);this.refresh(!0)}this._width=n;this._height=t}else{if(null==n||null==t)return;this._width=n;this._height=t;this.getLayer(tn).resize(n,t)}return this},n.prototype.clearLayer=function(n){var t=this._layers[n];t&&t.clear()},n.prototype.dispose=function(){this.root.innerHTML="";this.root=this.storage=this._domRoot=this._layers=null},n.prototype.getRenderedCanvas=function(n){var t,i,u,f,s;if(n=n||{},this._singleCanvas&&!this._compositeManually)return this._layers[314159].dom;if(t=new wgt("image",this,n.pixelRatio||this.dpr),t.initContext(),t.clear(!1,n.backgroundColor||this._backgroundColor),i=t.ctx,n.pixelRatio<=this.dpr)this.refresh(),u=t.dom.width,f=t.dom.height,this.eachLayer(function(n){n.__builtin__?i.drawImage(n.dom,0,0,u,f):n.renderToCanvas&&(i.save(),n.renderToCanvas(i),i.restore())});else for(var h={inHover:!1,viewWidth:this._width,viewHeight:this._height},e=this.storage.getDisplayList(!0),r=0,o=e.length;r<o;r++)s=e[r],ha(i,s,h,r===o-1);return t.dom},n.prototype.getWidth=function(){return this._width},n.prototype.getHeight=function(){return this._height},n}(),wau=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i.hasSymbolVisual=!0,i}return i(t,n),t.prototype.getInitialData=function(){return lo(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(n){var r=new p,u=si("line",0,n.itemHeight/2,n.itemWidth,0,n.lineStyle.stroke,!1),o;r.add(u);u.setStyle(n.lineStyle);var f=this.getData().getVisual("symbol"),s=this.getData().getVisual("symbolRotate"),e="none"===f?"circle":f,i=.8*n.itemHeight,t=si(e,(n.itemWidth-i)/2,(n.itemHeight-i)/2,i,i,n.itemStyle.fill);return r.add(t),t.setStyle(n.itemStyle),o="inherit"===n.iconRotate?s:n.iconRotate||0,t.rotation=o*Math.PI/180,t.setOrigin([n.itemWidth/2,n.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),r},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(bt);rw=function(n){function t(t,i,r,u){var f=n.call(this)||this;return f.updateData(t,i,r,u),f}return i(t,n),t.prototype._createSymbol=function(n,t,i,r,u){this.removeAll();var f=si(n,-1,-1,2,2,null,u);f.attr({z2:100,culling:!0,scaleX:r[0]/2,scaleY:r[1]/2});f.drift=bau;this._symbolType=n;this.add(f)},t.prototype.stopSymbolAnimation=function(n){this.childAt(0).stopAnimation(null,n)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){ss(this.childAt(0))},t.prototype.downplay=function(){hs(this.childAt(0))},t.prototype.setZ=function(n,t){var i=this.childAt(0);i.zlevel=n;i.z=t},t.prototype.setDraggable=function(n,t){var i=this.childAt(0);i.draggable=n;i.cursor=!t&&n?"move":i.cursor},t.prototype.updateData=function(n,i,r,u){var a,e,f;this.silent=!1;var h=n.getItemVisual(i,"symbol")||"circle",c=n.hostModel,o=t.getSymbolSize(n,i),l=h!==this._symbolType,s=u&&u.disableAnimation;l?(a=n.getItemVisual(i,"symbolKeepAspect"),this._createSymbol(h,n,i,o,a)):((f=this.childAt(0)).silent=!1,e={scaleX:o[0]/2,scaleY:o[1]/2},s?f.attr(e):lt(f,e,c,i),se(f));(this._updateCommon(n,i,o,r,u),l)&&(f=this.childAt(0),s||(e={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}},f.scaleX=f.scaleY=0,f.style.opacity=0,ii(f,e,c,i)));s&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(n,t,i,u,f){var w,b,k,d,g,nt,tt,o,a,e=this.childAt(0),ot=n.hostModel,s,h,ft,v,c,it,l,rt,y,et,p,ut;(u&&(w=u.emphasisItemStyle,b=u.blurItemStyle,k=u.selectItemStyle,d=u.focus,g=u.blurScope,tt=u.labelStatesModels,o=u.hoverScale,a=u.cursorStyle,nt=u.emphasisDisabled),!u||n.hasItemOption)&&(s=u&&u.itemModel?u.itemModel:n.getItemModel(t),h=s.getModel("emphasis"),w=h.getModel("itemStyle").getItemStyle(),k=s.getModel(["select","itemStyle"]).getItemStyle(),b=s.getModel(["blur","itemStyle"]).getItemStyle(),d=h.get("focus"),g=h.get("blurScope"),nt=h.get("disabled"),tt=bi(s),o=h.getShallow("scale"),a=s.getShallow("cursor"));ft=n.getItemVisual(t,"symbolRotate");e.attr("rotation",(ft||0)*Math.PI/180||0);v=oa(n.getItemVisual(t,"symbolOffset"),i);v&&(e.x=v[0],e.y=v[1]);a&&e.attr("cursor",a);c=n.getItemVisual(t,"style");it=c.fill;e instanceof wi?(l=e.style,e.useStyle(r({image:l.image,x:l.x,y:l.y,width:l.width,height:l.height},c))):(e.__isEmptyBrush?e.useStyle(r({},c)):e.useStyle(c),e.style.decal=null,e.setColor(it,f&&f.symbolInnerColor),e.style.strokeNoScale=!0);rt=n.getItemVisual(t,"liftZ");y=this._z2;null!=rt?null==y&&(this._z2=e.z2,e.z2+=rt):null!=y&&(e.z2=y,this._z2=null);et=f&&f.useNameLabel;or(e,tt,{labelFetcher:ot,labelDataIndex:t,defaultText:function(t){return et?n.getName(t):iw(n,t)},inheritColor:it,defaultOpacity:c.opacity});this._sizeX=i[0]/2;this._sizeY=i[1]/2;p=e.ensureState("emphasis");p.style=w;e.ensureState("select").style=k;e.ensureState("blur").style=b;ut=null==o||!0===o?Math.max(1.1,3/this._sizeY):isFinite(o)&&o>0?+o:1;p.scaleX=this._sizeX*ut;p.scaleY=this._sizeY*ut;this.setSymbolScale(1);ui(this,d,g,nt)},t.prototype.setSymbolScale=function(n){this.scaleX=this.scaleY=n},t.prototype.fadeOut=function(n,t,i){var r=this.childAt(0),f=b(this).dataIndex,e=i&&i.animation,u;(this.silent=r.silent=!0,i&&i.fadeLabel)?(u=r.getTextContent(),u&&vh(u,{style:{opacity:0}},t,{dataIndex:f,removeOpt:e,cb:function(){r.removeTextContent()}})):r.removeTextContent();vh(r,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:f,cb:n,removeOpt:e})},t.getSymbolSize=function(n,t){return vp(n.getItemVisual(t,"symbolSize"))},t}(p);uw=function(){function n(n){this.group=new p;this._SymbolCtor=n||rw}return n.prototype.updateData=function(n,t){this._progressiveEls=null;t=ofr(t);var i=this.group,o=n.hostModel,r=this._data,s=this._SymbolCtor,h=t.disableAnimation,u=sfr(n),f={disableAnimation:h},e=t.getSymbolPoint||function(t){return n.getItemLayout(t)};r||i.removeAll();n.diff(r).add(function(r){var h=e(r),o;bgt(n,h,r,t)&&(o=new s(n,r,u,f),o.setPosition(h),n.setItemGraphicEl(r,o),i.add(o))}).update(function(c,l){var a=r.getItemGraphicEl(l),v=e(c),w,y,p;bgt(n,v,c,t)?(w=n.getItemVisual(c,"symbol")||"circle",y=a&&a.getSymbolType&&a.getSymbolType(),!a||y&&y!==w?(i.remove(a),(a=new s(n,c,u,f)).setPosition(v)):(a.updateData(n,c,u,f),p={x:v[0],y:v[1]},h?a.attr(p):lt(a,p,o)),i.add(a),n.setItemGraphicEl(c,a)):i.remove(a)}).remove(function(n){var t=r.getItemGraphicEl(n);t&&t.fadeOut(function(){i.remove(t)},o)}).execute();this._getSymbolPoint=e;this._data=n},n.prototype.updateLayout=function(){var t=this,n=this._data;n&&n.eachItemGraphicEl(function(n,i){var r=t._getSymbolPoint(i);n.setPosition(r);n.markRedraw()})},n.prototype.incrementalPrepareUpdate=function(n){this._seriesScope=sfr(n);this._data=null;this.group.removeAll()},n.prototype.incrementalUpdate=function(n,t,i){function e(n){n.isGroup||(n.incremental=!0,n.ensureState("emphasis").hoverLayer=!0)}var r,f,u;for(this._progressiveEls=[],i=ofr(i),r=n.start;r<n.end;r++)f=t.getItemLayout(r),bgt(t,f,r,i)&&(u=new this._SymbolCtor(t,r,this._seriesScope),u.traverse(e),u.setPosition(f),this.group.add(u),t.setItemGraphicEl(r,u),this._progressiveEls.push(u))},n.prototype.eachRendered=function(n){ph(this._progressiveEls||this.group,n)},n.prototype.remove=function(n){var i=this.group,t=this._data;t&&n?t.eachItemGraphicEl(function(n){n.fadeOut(function(){i.remove(n)},t.hostModel)}):i.removeAll()},n}();vs=Math.min;ys=Math.max;var lfr=function(){this.smooth=0;this.smoothConstraint=!0},kau=function(n){function t(t){var i=n.call(this,t)||this;return i.type="ec-polyline",i}return i(t,n),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new lfr},t.prototype.buildPath=function(n,t){var u=t.points,r=0,i=u.length/2;if(t.connectNulls){for(;i>0&&pa(u[2*i-2],u[2*i-1]);i--);for(;r<i&&pa(u[2*r],u[2*r+1]);r++);}for(;r<i;)r+=kgt(n,u,r,i,i,1,t.smooth,t.smoothMonotone,t.connectNulls)+1},t.prototype.getPointOn=function(n,t){var h,d,y,c;this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var u,f,i=this.path.data,p=fe.CMD,s="x"===t,w=[],r=0;r<i.length;){var e=void 0,o=void 0,b=void 0,k=void 0,l=void 0,a=void 0,v=void 0;switch(i[r++]){case p.M:u=i[r++];f=i[r++];break;case p.L:if(e=i[r++],o=i[r++],(v=s?(n-u)/(e-u):(n-f)/(o-f))<=1&&v>=0)return h=s?(o-f)*v+f:(e-u)*v+u,s?[n,h]:[h,n];u=e;f=o;break;case p.C:if(e=i[r++],o=i[r++],b=i[r++],k=i[r++],l=i[r++],a=i[r++],d=s?hit(u,e,b,l,n,w):hit(f,o,k,a,n,w),d>0)for(y=0;y<d;y++)if(c=w[y],c<=1&&c>=0)return h=s?pi(f,o,k,a,c):pi(u,e,b,l,c),s?[n,h]:[h,n];u=l;f=a}}},t}(ut),dau=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return i(t,n),t}(lfr),afr=function(n){function t(t){var i=n.call(this,t)||this;return i.type="ec-polygon",i}return i(t,n),t.prototype.getDefaultShape=function(){return new dau},t.prototype.buildPath=function(n,t){var u=t.points,o=t.stackedOnPoints,r=0,i=u.length/2,e=t.smoothMonotone,f;if(t.connectNulls){for(;i>0&&pa(u[2*i-2],u[2*i-1]);i--);for(;r<i&&pa(u[2*r],u[2*r+1]);r++);}for(;r<i;)f=kgt(n,u,r,i,i,1,t.smooth,e,t.connectNulls),kgt(n,o,r+f-1,f,i,-1,t.stackedOnSmooth,e,t.connectNulls),r+=f+1,n.closePath()},t}(ut);ner=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return i(t,n),t.prototype.init=function(){var t=new p,n=new uw;this.group.add(n.group);this._symbolDraw=n;this._lineGroup=t},t.prototype.render=function(n,t,i){var pt=this,r=n.coordinateSystem,ht=this.group,f=n.getData(),wt=n.getModel("lineStyle"),d=n.getModel("areaStyle"),e=f.getLayout("points")||[],p="polar"===r.type,bt=this._coordSys,g=this._symbolDraw,o=this._polyline,u=this._polygon,v=this._lineGroup,ct=!t.ssr&&n.isAnimationEnabled(),w=!d.isEmpty(),nt=d.get("origin"),kt=hfr(r,f,nt),s=w&&function(n,t,i){var f;if(!i.valueDim)return[];for(var e=t.count(),u=vo(2*e),r=0;r<e;r++)f=cfr(i,n,t,r),u[2*r]=f[0],u[2*r+1]=f[1];return u}(r,f,kt),k=n.get("showSymbol"),l=n.get("connectNulls"),lt=k&&!p&&nvu(n,f,r),tt=this._data,h,c,y,it,ut,ft,et,ot,st;tt&&tt.eachItemGraphicEl(function(n,t){n.__temp&&(ht.remove(n),tt.setItemGraphicEl(t,null))});k||g.remove();ht.add(v);c=!p&&n.get("step");r&&r.getArea&&n.get("clip",!0)&&(null!=(h=r.getArea()).width?(h.x-=.1,h.y-=.1,h.width+=.2,h.height+=.2):h.r0&&(h.r0-=.5,h.r+=.5));this._clipShapeForSymbol=h;y=gau(f,r,i)||f.getVisual("style")[f.getVisual("drawType")];o&&bt.type===r.type&&c===this._step?(w&&!u?u=this._newPolygon(e,s):u&&!w&&(v.remove(u),u=this._polygon=null),p||this._initOrUpdateEndLabel(n,r,ua(y)),it=v.getClipPath(),it?ii(it,{shape:dgt(this,r,!1,n).shape},n):v.setClipPath(dgt(this,r,!0,n)),k&&g.updateData(f,{isIgnore:lt,clipShape:h,disableAnimation:!0,getSymbolPoint:function(n){return[e[2*n],e[2*n+1]]}}),pfr(this._stackedOnPoints,s)&&pfr(this._points,e)||(ct?this._doUpdateAnimation(f,s,r,i,c,nt,l):(c&&(e=ec(e,r,c,l),s&&(s=ec(s,r,c,l))),o.setShape({points:e}),u&&u.setShape({points:e,stackedOnPoints:s})))):(k&&g.updateData(f,{isIgnore:lt,clipShape:h,disableAnimation:!0,getSymbolPoint:function(n){return[e[2*n],e[2*n+1]]}}),ct&&this._initSymbolLabelAnimation(f,r,h),c&&(e=ec(e,r,c,l),s&&(s=ec(s,r,c,l))),o=this._newPolyline(e),w?u=this._newPolygon(e,s):u&&(v.remove(u),u=this._polygon=null),p||this._initOrUpdateEndLabel(n,r,ua(y)),v.setClipPath(dgt(this,r,!0,n)));var rt=n.getModel("emphasis"),at=rt.get("focus"),vt=rt.get("blurScope"),yt=rt.get("disabled");(o.useStyle(a(wt.getLineStyle(),{fill:"none",stroke:y,lineJoin:"bevel"})),rr(o,n,"lineStyle"),o.style.lineWidth>0&&"bolder"===n.get(["emphasis","lineStyle","width"]))&&(o.getState("emphasis").style.lineWidth=+o.style.lineWidth+1);b(o).seriesIndex=n.seriesIndex;ui(o,at,vt,yt);ut=kfr(n.get("smooth"));ft=n.get("smoothMonotone");(o.setShape({smooth:ut,smoothMonotone:ft,connectNulls:l}),u)&&(et=f.getCalculationInfo("stackedOnSeries"),ot=0,u.useStyle(a(d.getAreaStyle(),{fill:y,opacity:.7,lineJoin:"bevel",decal:f.getVisual("style").decal})),et&&(ot=kfr(et.get("smooth"))),u.setShape({smooth:ut,stackedOnSmooth:ot,smoothMonotone:ft,connectNulls:l}),rr(u,n,"areaStyle"),b(u).seriesIndex=n.seriesIndex,ui(u,at,vt,yt));st=function(n){pt._changePolyState(n)};f.eachItemGraphicEl(function(n){n&&(n.onHoverStateChange=st)});this._polyline.onHoverStateChange=st;this._data=f;this._coordSys=r;this._stackedOnPoints=s;this._points=e;this._step=c;this._valueOrigin=nt;n.get("triggerLineEvent")&&(this.packEventData(n,o),u&&this.packEventData(n,u))},t.prototype.packEventData=function(n,t){b(t).eventData={componentType:"series",componentSubType:"line",componentIndex:n.componentIndex,seriesIndex:n.seriesIndex,seriesName:n.name,seriesType:"line"}},t.prototype.highlight=function(n,t,i,r){var e=n.getData(),f=fl(e,r),c,u,s,h,l,a,o;if(this._changePolyState("emphasis"),!(f instanceof Array)&&null!=f&&f>=0){if(c=e.getLayout("points"),u=e.getItemGraphicEl(f),!u){if(s=c[2*f],h=c[2*f+1],isNaN(s)||isNaN(h))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(s,h))return;l=n.get("zlevel")||0;a=n.get("z")||0;(u=new rw(e,f)).x=s;u.y=h;u.setZ(l,a);o=u.getSymbolPath().getTextContent();o&&(o.zlevel=l,o.z=a,o.z2=this._polyline.z2+1);u.__temp=!0;e.setItemGraphicEl(f,u);u.stopSymbolAnimation(!0);this.group.add(u)}u.highlight()}else wt.prototype.highlight.call(this,n,t,i,r)},t.prototype.downplay=function(n,t,i,r){var e=n.getData(),f=fl(e,r),u;(this._changePolyState("normal"),null!=f&&f>=0)?(u=e.getItemGraphicEl(f),u&&(u.__temp?(e.setItemGraphicEl(f,null),this.group.remove(u)):u.downplay())):wt.prototype.downplay.call(this,n,t,i,r)},t.prototype._changePolyState=function(n){var t=this._polygon;krt(this._polyline,n);t&&krt(t,n)},t.prototype._newPolyline=function(n){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new kau({shape:{points:n},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(n,t){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new afr({shape:{points:n,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(n,t,i){var f,e,o=t.getBaseAxis(),c=o.inverse,s,u,r,h;"cartesian2d"===t.type?(f=o.isHorizontal(),e=!1):"polar"===t.type&&(f="angle"===o.dim,e=!0);s=n.hostModel;u=s.get("animationDuration");l(u)&&(u=u(null));r=s.get("animationDelay")||0;h=l(r)?r(null):r;n.eachItemGraphicEl(function(n,o){var w=n,p,k,a,b;if(w){var tt=[n.x,n.y],s=void 0,v=void 0,y=void 0;i&&(e?(p=i,k=t.pointToCoord(tt),f?(s=p.startAngle,v=p.endAngle,y=-k[1]/180*Math.PI):(s=p.r0,v=p.r,y=k[0])):(a=i,f?(s=a.x,v=a.x+a.width,y=n.x):(s=a.y+a.height,v=a.y,y=n.y)));b=v===s?0:(y-s)/(v-s);c&&(b=1-b);var d=l(r)?r(o):u*b+h,g=w.getSymbolPath(),nt=g.getTextContent();w.attr({scaleX:0,scaleY:0});w.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:d});nt&&nt.animateFrom({style:{opacity:0}},{duration:300,delay:d});g.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(n,t,i){var s=n.getModel("endLabel"),f,e;if(gfr(n)){var u=n.getData(),r=this._polyline,o=u.getLayout("points");if(!o)return r.removeTextContent(),void(this._endLabel=null);f=this._endLabel;f||((f=this._endLabel=new st({z2:200})).ignoreClip=!0,r.setTextContent(this._endLabel),r.disableLabelAnimation=!0);e=function(n){for(var i,r,t=n.length/2;t>0&&(i=n[2*t-2],r=n[2*t-1],isNaN(i)||isNaN(r));t--);return t-1}(o);e>=0&&(or(r,bi(n,"endLabel"),{inheritColor:i,labelFetcher:n,labelDataIndex:e,defaultText:function(n,t,i){return null!=i?efr(u,i):iw(u,n)},enableTextSetter:!0},function(n,t){var i=t.getBaseAxis(),r=i.isHorizontal(),u=i.inverse,f=r?u?"right":"left":"center",e=r?"middle":u?"top":"bottom";return{normal:{align:n.get("align")||f,verticalAlign:n.get("verticalAlign")||e}}}(s,t)),r.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(n,t,i,r,u,f,e){var h=this._endLabel,ot=this._polyline,o,ft,et,k,d;if(h){n<1&&null==r.originalX&&(r.originalX=h.x,r.originalY=h.y);var y=i.getLayout("points"),l=i.hostModel,st=l.get("connectNulls"),ht=f.get("precision"),g=f.get("distance")||0,nt=e.getBaseAxis(),a=nt.isHorizontal(),p=nt.inverse,c=t.shape,tt=p?a?c.x:c.y+c.height:a?c.x+c.width:c.y,w=(a?g:0)*(p?-1:1),b=(a?0:-g)*(p?-1:1),it=a?"x":"y",rt=function(n,t,i){for(var f,r,h=n.length/2,e="x"===i?0:1,o=0,s=-1,u=0;u<h;u++)if(r=n[2*u+e],!isNaN(r)&&!isNaN(n[2*u+1-e]))if(0!==u){if(f<=t&&r>=t||f>=t&&r<=t){s=u;break}o=u;f=r}else f=r;return{range:[o,s],t:(t-f)/(r-f)}}(y,tt,it),s=rt.range,ut=s[1]-s[0],v=void 0;ut>=1?(ut>1&&!st?(o=dfr(y,s[0]),h.attr({x:o[0]+w,y:o[1]+b}),u&&(v=l.getRawValue(s[0]))):((o=ot.getPointOn(tt,it))&&h.attr({x:o[0]+w,y:o[1]+b}),ft=l.getRawValue(s[0]),et=l.getRawValue(s[1]),u&&(v=pli(i,ht,ft,et,rt.t))),r.lastFrameIndex=s[0]):(k=1===n||r.lastFrameIndex>0?s[0]:0,o=dfr(y,k),u&&(v=l.getRawValue(k)),h.attr({x:o[0]+w,y:o[1]+b}));u&&(d=ra(h),"function"==typeof d.setLabelText&&d.setLabelText(v))}},t.prototype._doUpdateAnimation=function(n,t,i,r,u,f,e){var o=this._polyline,s=this._polygon,d=n.hostModel,h=function(n,t,i,r,u,f,e){for(var rt,st=function(n,t){var i=[];return t.diff(n).add(function(n){i.push({cmd:"+",idx:n})}).update(function(n,t){i.push({cmd:"=",idx:t,idx1:n})}).remove(function(n){i.push({cmd:"-",idx:n})}).execute(),i}(n,t),a=[],w=[],b=[],k=[],ht=[],v=[],d=[],ct=hfr(u,t,e),lt=n.getLayout("points")||[],g=t.getLayout("points")||[],s=0;s<st.length;s++){var l=st[s],at=!0,y=void 0,o=void 0;switch(l.cmd){case"=":y=2*l.idx;o=2*l.idx1;var tt=lt[y],it=lt[y+1],vt=g[o],yt=g[o+1];(isNaN(tt)||isNaN(it))&&(tt=vt,it=yt);a.push(tt,it);w.push(vt,yt);b.push(i[y],i[y+1]);k.push(r[o],r[o+1]);d.push(t.getRawIndex(l.idx1));break;case"+":var p=l.idx,pt=ct.dataDimsForPoint,wt=u.dataToPoint([t.get(pt[0],p),t.get(pt[1],p)]);o=2*p;a.push(wt[0],wt[1]);w.push(g[o],g[o+1]);rt=cfr(ct,u,t,p);b.push(rt[0],rt[1]);k.push(r[o],r[o+1]);d.push(t.getRawIndex(p));break;case"-":at=!1}at&&(ht.push(l),v.push(v.length))}v.sort(function(n,t){return d[n]-d[t]});var nt=a.length,ut=vo(nt),ft=vo(nt),et=vo(nt),ot=vo(nt),bt=[];for(s=0;s<v.length;s++){var kt=v[s],h=2*s,c=2*kt;ut[h]=a[c];ut[h+1]=a[c+1];ft[h]=w[c];ft[h+1]=w[c+1];et[h]=b[c];et[h+1]=b[c+1];ot[h]=k[c];ot[h+1]=k[c+1];bt[s]=ht[kt]}return{current:ut,next:ft,stackedOnCurrent:et,stackedOnNext:ot,status:bt}}(this._data,n,this._stackedOnPoints,t,this._coordSys,0,this._valueOrigin),c=h.current,p=h.stackedOnCurrent,l=h.next,v=h.stackedOnNext,w,k;if(u&&(c=ec(h.current,i,u,e),p=ec(h.stackedOnCurrent,i,u,e),l=ec(h.next,i,u,e),v=ec(h.stackedOnNext,i,u,e)),bfr(c,l)>3e3||s&&bfr(p,v)>3e3)return o.stopAnimation(),o.setShape({points:l}),void(s&&(s.stopAnimation(),s.setShape({points:l,stackedOnPoints:v})));o.shape.__points=h.current;o.shape.points=c;w={shape:{points:l}};h.current!==c&&(w.shape.__points=h.next);o.stopAnimation();lt(o,w,d);s&&(s.setShape({points:c,stackedOnPoints:p}),s.stopAnimation(),lt(s,{shape:{stackedOnPoints:v}},d),o.shape.points!==s.shape.points&&(s.shape.points=o.shape.points));for(var y=[],b=h.status,a=0;a<b.length;a++)"="===b[a].cmd&&(k=n.getItemGraphicEl(b[a].idx1),k&&y.push({el:k,ptIdx:a}));o.animators&&o.animators.length&&o.animators[0].during(function(){var i,n,t,r;for(s&&s.dirtyShape(),i=o.shape.__points,n=0;n<y.length;n++)t=y[n].el,r=2*y[n].ptIdx,t.x=i[r],t.y=i[r+1],t.markRedraw()})},t.prototype.remove=function(){var t=this.group,n=this._data;this._lineGroup.removeAll();this._symbolDraw.remove(!0);n&&n.eachItemGraphicEl(function(i,r){i.__temp&&(t.remove(i),n.setItemGraphicEl(r,null))});this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(wt);ter={average:function(n){for(var r=0,i=0,t=0;t<n.length;t++)isNaN(n[t])||(r+=n[t],i++);return 0===i?NaN:r/i},sum:function(n){for(var i=0,t=0;t<n.length;t++)i+=n[t]||0;return i},max:function(n){for(var t=-1/0,i=0;i<n.length;i++)n[i]>t&&(t=n[i]);return isFinite(t)?t:NaN},min:function(n){for(var t=1/0,i=0;i<n.length;i++)n[i]<t&&(t=n[i]);return isFinite(t)?t:NaN},nearest:function(n){return n[0]}};ier=function(n){return Math.round(n.length/2)};fw=function(n){function r(){var t=null!==n&&n.apply(this,arguments)||this;return t.type=r.type,t}return i(r,n),r.prototype.getInitialData=function(){return lo(null,this,{useEncodeDefaulter:!0})},r.prototype.getMarkerPosition=function(n,i,r){var u=this.coordinateSystem,e,f;if(u&&u.clampData){if(e=u.clampData(n),f=u.dataToPoint(e),r)t(u.getAxes(),function(n,t){var l,h;if("category"===n.type&&null!=i){var r=n.getTicksCoords(),c=e[t],a="x1"===i[t]||"y1"===i[t];if(a&&(c+=1),r.length<2)return;if(2===r.length)return void(f[t]=n.toGlobalCoord(n.getExtent()[a?1:0]));for(var s=void 0,o=void 0,v=1,u=0;u<r.length;u++){if(l=r[u].coord,h=u===r.length-1?r[u-1].tickValue+v:r[u].tickValue,h===c){o=l;break}if(h<c)s=l;else if(null!=s&&h>c){o=(l+s)/2;break}1===u&&(v=h-r[0].tickValue)}null==o&&(s?s&&(o=r[r.length-1].coord):o=r[0].coord);f[t]=n.toGlobalCoord(o)}});else{var o=this.getData(),s=o.getLayout("offset"),h=o.getLayout("size"),c=u.getBaseAxis().isHorizontal()?0:1;f[c]+=s+h/2}return f}return[NaN,NaN]},r.type="series.__base_bar__",r.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},r}(bt);bt.registerClass(fw);var tvu=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i}return i(t,n),t.prototype.getInitialData=function(){return lo(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},t.prototype.getProgressiveThreshold=function(){var n=this.get("progressiveThreshold"),t=this.get("largeThreshold");return t>n&&(n=t),n},t.prototype.brushSelector=function(n,t,i){return i.rect(t.getItemLayout(n))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=wh(fw.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(fw),ivu=function(){this.cx=0;this.cy=0;this.r0=0;this.r=0;this.startAngle=0;this.endAngle=2*Math.PI;this.clockwise=!0},hot=function(n){function t(t){var i=n.call(this,t)||this;return i.type="sausage",i}return i(t,n),t.prototype.getDefaultShape=function(){return new ivu},t.prototype.buildPath=function(n,t){var u=t.cx,f=t.cy,e=Math.max(t.r0||0,0),s=Math.max(t.r,0),l=.5*(s-e),h=e+l,i=t.startAngle,r=t.endAngle,o=t.clockwise,c=2*Math.PI,y=o?r-i<c:i-r<c;y||(i=r-(o?c:-c));var a=Math.cos(i),v=Math.sin(i),p=Math.cos(r),w=Math.sin(r);y?(n.moveTo(a*e+u,v*e+f),n.arc(a*h+u,v*h+f,l,-Math.PI+i,i,!o)):n.moveTo(a*s+u,v*s+f);n.arc(u,f,s,i,r,!o);n.arc(p*h+u,w*h+f,l,r-2*Math.PI,r-Math.PI,!o);0!==e&&n.arc(u,f,e,r,i,o)},t}(ut);var ggt=Math.max,nnt=Math.min,rvu=function(n){function t(){var i=n.call(this)||this;return i.type=t.type,i._isFirstFrame=!0,i}return i(t,n),t.prototype.render=function(n,t,i,r){this._model=n;this._removeOnRenderedListener(i);this._updateDrawMode(n);var u=n.get("coordinateSystem");("cartesian2d"===u||"polar"===u)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(n,t,i):this._renderNormal(n,t,i,r))},t.prototype.incrementalPrepareRender=function(n){this._clear();this._updateDrawMode(n);this._updateLargeClip(n)},t.prototype.incrementalRender=function(n,t){this._progressiveEls=[];this._incrementalRenderLarge(n,t)},t.prototype.eachRendered=function(n){ph(this._progressiveEls||this.group,n)},t.prototype._updateDrawMode=function(n){var t=n.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(n,t,i,r){function ut(n){var i=aot[u.type](f,n),t=function(n,t,i){var r="polar"===n.type?ur:ot;return new r({shape:ver(t,i,n),silent:!0,z2:0})}(u,e,i);return t.useStyle(d.getItemStyle()),"cartesian2d"===u.type?t.setShape("r",a):t.setShape("cornerRadius",a),c[n]=t,t}var e,s=this.group,f=n.getData(),w=this._data,u=n.coordinateSystem,l=u.getBaseAxis(),h,o,b,k,v,y;"cartesian2d"===u.type?e=l.isHorizontal():"polar"===u.type&&(e="angle"===l.dim);h=n.isAnimationEnabled()?n:null;o=function(n,t){var r=n.get("realtimeSort",!0),i=t.getBaseAxis();return r&&"category"===i.type&&"cartesian2d"===t.type?{baseAxis:i,otherAxis:t.getOtherAxis(i)}:void 0}(n,u);o&&this._enableRealtimeSort(o,f,i);b=n.get("clip",!0)||o;k=function(n,t){var i=n.getArea&&n.getArea(),u,r;return wa(n,"cartesian2d")&&(u=n.getBaseAxis(),"category"===u.type&&u.onBand||(r=t.getLayout("bandWidth"),u.isHorizontal()?(i.x-=r,i.width+=2*r):(i.y-=r,i.height+=2*r))),i}(u,f);s.removeClipPath();var g=n.get("roundCap",!0),nt=n.get("showBackground",!0),d=n.getModel("backgroundStyle"),a=d.get("borderRadius")||0,c=[],tt=this._backgroundEls,it=r&&r.isInitSort,rt=r&&"changeAxisOrder"===r.type;for(f.diff(w).add(function(t){var a=f.getItemModel(t),r=aot[u.type](f,t,a),c,i;(nt&&ut(t),f.hasValue(t)&&ser[u.type](r))&&(c=!1,b&&(c=uer[u.type](k,r)),i=fer[u.type](n,f,t,r,e,h,l.model,!1,g),o&&(i.forceLabelAnimation=!0),cer(i,f,t,a,r,n,e,"polar"===u.type),it?i.attr({shape:r}):o?eer(o,h,i,r,t,e,!1,!1):ii(i,{shape:r},n,t),f.setItemGraphicEl(t,i),s.add(i),i.ignore=c)}).update(function(t,i){var ot=f.getItemModel(t),v=aot[u.type](f,t,ot),y,st,r,ft,et,p;nt&&(y=void 0,0===tt.length?y=ut(i):((y=tt[i]).useStyle(d.getItemStyle()),"cartesian2d"===u.type?y.setShape("r",a):y.setShape("cornerRadius",a),c[t]=y),st=aot[u.type](f,t),lt(y,{shape:ver(e,st,u)},h,t));r=w.getItemGraphicEl(i);f.hasValue(t)&&ser[u.type](v)?(ft=!1,(b&&(ft=uer[u.type](k,v))&&s.remove(r),r?se(r):r=fer[u.type](n,f,t,v,e,h,l.model,!!r,g),o&&(r.forceLabelAnimation=!0),rt)?(et=r.getTextContent(),et&&(p=ra(et),null!=p.prevValue&&(p.prevValue=p.value))):cer(r,f,t,ot,v,n,e,"polar"===u.type),it?r.attr({shape:v}):o?eer(o,h,r,v,t,e,!0,rt):lt(r,{shape:v},n,t,null),f.setItemGraphicEl(t,r),r.ignore=ft,s.add(r)):s.remove(r)}).remove(function(t){var i=w.getItemGraphicEl(t);i&&id(i,n,t)}).execute(),v=this._backgroundGroup||(this._backgroundGroup=new p),v.removeAll(),y=0;y<c.length;++y)v.add(c[y]);s.add(v);this._backgroundEls=c;this._data=f},t.prototype._renderLarge=function(n){this._clear();aer(n,this.group);this._updateLargeClip(n)},t.prototype._incrementalRenderLarge=function(n,t){this._removeBackground();aer(t,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(n){var t=n.get("clip",!0)&&sot(n.coordinateSystem,!1,n),i=this.group;t?i.setClipPath(t):i.removeClipPath()},t.prototype._enableRealtimeSort=function(n,t,i){var f=this,r,u;t.count()&&(r=n.baseAxis,this._isFirstFrame?(this._dispatchInitSort(t,n,i),this._isFirstFrame=!1):(u=function(n){var u=t.getItemGraphicEl(n),i=u&&u.shape;return i&&Math.abs(r.isHorizontal()?i.height:i.width)||0},this._onRendered=function(){f._updateSortWithinSameData(t,u,r,i)},i.getZr().on("rendered",this._onRendered)))},t.prototype._dataSort=function(n,t,i){var r=[];return n.each(n.mapDimension(t.dim),function(n,t){var u=i(t);u=null==u?NaN:u;r.push({dataIndex:t,mappedValue:u,ordinalNumber:n})}),r.sort(function(n,t){return t.mappedValue-n.mappedValue}),{ordinalNumbers:f(r,function(n){return n.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(n,t,i){for(var u,f,e=i.scale,s=n.mapDimension(i.dim),o=Number.MAX_VALUE,r=0,h=e.getOrdinalMeta().categories.length;r<h;++r){if(u=n.rawIndexOf(s,e.getRawOrdinalNumber(r)),f=u<0?Number.MIN_VALUE:t(n.indexOfRawIndex(u)),f>o)return!0;o=f}return!1},t.prototype._isOrderDifferentInView=function(n,t){for(var r=t.scale,u=r.getExtent(),i=Math.max(0,u[0]),f=Math.min(u[1],r.getOrdinalMeta().categories.length-1);i<=f;++i)if(n.ordinalNumbers[i]!==r.getRawOrdinalNumber(i))return!0},t.prototype._updateSortWithinSameData=function(n,t,i,r){if(this._isOrderChangedWithinSameData(n,t,i)){var u=this._dataSort(n,i,t);this._isOrderDifferentInView(u,i)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:u}))}},t.prototype._dispatchInitSort=function(n,t,i){var r=t.baseAxis,u=this._dataSort(n,r,function(i){return n.get(n.mapDimension(t.otherAxis.dim),i)});i.dispatchAction({type:"changeAxisOrder",componentType:r.dim+"Axis",isInitSort:!0,axisId:r.index,sortInfo:u})},t.prototype.remove=function(n,t){this._clear(this._model);this._removeOnRenderedListener(t)},t.prototype.dispose=function(n,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(n){this._onRendered&&(n.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(n){var i=this.group,t=this._data;n&&n.isAnimationEnabled()&&t&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],t.eachItemGraphicEl(function(t){id(t,n,b(t).dataIndex)})):i.removeAll();this._data=null;this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup);this._backgroundGroup=null},t.type="bar",t}(wt),uer={cartesian2d:function(n,t){var s=t.width<0?-1:1,h=t.height<0?-1:1;s<0&&(t.x+=t.width,t.width=-t.width);h<0&&(t.y+=t.height,t.height=-t.height);var c=n.x+n.width,l=n.y+n.height,i=ggt(t.x,n.x),u=nnt(t.x+t.width,c),r=ggt(t.y,n.y),f=nnt(t.y+t.height,l),e=u<i,o=f<r;return t.x=e&&i>c?u:i,t.y=o&&r>l?f:r,t.width=e?0:u-i,t.height=o?0:f-r,s<0&&(t.x+=t.width,t.width=-t.width),h<0&&(t.y+=t.height,t.height=-t.height),e||o},polar:function(n,t){var f=t.r0<=t.r?1:-1,i,r,u,e;return f<0&&(i=t.r,t.r=t.r0,t.r0=i),r=nnt(t.r,n.r),u=ggt(t.r0,n.r0),t.r=r,t.r0=u,e=r-u<0,f<0&&(i=t.r,t.r=t.r0,t.r0=i),e}},fer={cartesian2d:function(n,t,i,u,f,e){var o=new ot({shape:r({},u),z2:1});return(o.__dataIndex=i,o.name="item",e)&&(o.shape[f?"height":"width"]=0),o},polar:function(n,t,i,r,u,f,e,o,s){var a=!u&&s?hot:ur,h=new a({shape:r,z2:1}),v,y,p,c,l;return h.name="item",p=her(u),(h.calculateTextPosition=(v=p,y=({isRoundCap:a===hot}||{}).isRoundCap,function(n,t,i){var tt=t.position;if(!tt||tt instanceof Array)return nrt(n,t,i);var it=v(tt),r=null!=t.distance?t.distance:5,g=this.shape,f=g.cx,e=g.cy,k=g.r,nt=g.r0,o=(k+nt)/2,u=g.startAngle,b=g.endAngle,s=(u+b)/2,d=y?Math.abs(k-nt)/2:0,h=Math.cos,c=Math.sin,l=f+k*h(u),a=e+k*c(u),p="left",w="top";switch(it){case"startArc":l=f+(nt-r)*h(s);a=e+(nt-r)*c(s);p="center";w="top";break;case"insideStartArc":l=f+(nt+r)*h(s);a=e+(nt+r)*c(s);p="center";w="bottom";break;case"startAngle":l=f+o*h(u)+cot(u,r+d,!1);a=e+o*c(u)+lot(u,r+d,!1);p="right";w="middle";break;case"insideStartAngle":l=f+o*h(u)+cot(u,-r+d,!1);a=e+o*c(u)+lot(u,-r+d,!1);p="left";w="middle";break;case"middle":l=f+o*h(s);a=e+o*c(s);p="center";w="middle";break;case"endArc":l=f+(k+r)*h(s);a=e+(k+r)*c(s);p="center";w="bottom";break;case"insideEndArc":l=f+(k-r)*h(s);a=e+(k-r)*c(s);p="center";w="top";break;case"endAngle":l=f+o*h(b)+cot(b,r+d,!0);a=e+o*c(b)+lot(b,r+d,!0);p="left";w="middle";break;case"insideEndAngle":l=f+o*h(b)+cot(b,-r+d,!0);a=e+o*c(b)+lot(b,-r+d,!0);p="right";w="middle";break;default:return nrt(n,t,i)}return(n=n||{}).x=l,n.y=a,n.align=p,n.verticalAlign=w,n}),f)&&(c=u?"r":"endAngle",l={},h.shape[c]=u?r.r0:r.startAngle,l[c]=r[c],(o?lt:ii)(h,{shape:l},f)),h}};var uvu=["x","y","width","height"],fvu=["cx","cy","r","startAngle","endAngle"],ser={cartesian2d:function(n){return!oer(n,uvu)},polar:function(n){return!oer(n,fvu)}},aot={cartesian2d:function(n,t,i){var r=n.getItemLayout(t),u=i?function(n,t){var i=n.get(["itemStyle","borderColor"]);if(!i||"none"===i)return 0;var r=n.get(["itemStyle","borderWidth"])||0,u=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),f=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,u,f)}(i,r):0,f=r.width>0?1:-1,e=r.height>0?1:-1;return{x:r.x+f*u/2,y:r.y+e*u/2,width:r.width-f*u,height:r.height-e*u}},polar:function(n,t){var i=n.getItemLayout(t);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};ler=function(){};tnt=function(n){function t(t){var i=n.call(this,t)||this;return i.type="largeBar",i}return i(t,n),t.prototype.getDefaultShape=function(){return new ler},t.prototype.buildPath=function(n,t){for(var r=t.points,e=this.baseDimIdx,o=1-this.baseDimIdx,u=[],f=[],s=this.barWidth,i=0;i<r.length;i+=3)f[e]=s,f[o]=r[i+2],u[e]=r[i+e],u[o]=r[i+o],n.rect(u[0],u[1],f[0],f[1])},t}(ut);int=aft(function(n){var t=function(n,t,i){for(var h,e=n.baseDimIdx,r=1-e,o=n.shape.points,c=n.largeDataIndices,f=[],u=[],l=n.barWidth,s=0,a=o.length/3;s<a;s++)if(h=3*s,u[e]=l,u[r]=o[h+2],f[e]=o[h+e],f[r]=o[h+r],u[r]<0&&(f[r]+=u[r],u[r]=-u[r]),t>=f[0]&&t<=f[0]+u[0]&&i>=f[1]&&i<=f[1]+u[1])return c[s];return-1}(this,n.offsetX,n.offsetY);b(this).dataIndex=t>=0?t:null},30,!1);un=2*Math.PI;rnt=Math.PI/180;wer=Math.PI/180;der=function(n){function t(t,i,r){var u=n.call(this)||this,f;return u.z2=2,f=new st,u.setTextContent(f),u.updateData(t,i,r,!0),u}return i(t,n),t.prototype.updateData=function(n,t,i,u){var f=this,o=n.hostModel,s=n.getItemModel(t),h=s.getModel("emphasis"),e=n.getItemLayout(t),c=r(ba(s.getModel("itemStyle"),e,!0),e),y,v,k;if(isNaN(c.startAngle))f.setShape(c);else{u?(f.setShape(c),y=o.getShallow("animationType"),o.ecModel.ssr?(ii(f,{scaleX:0,scaleY:0},o,{dataIndex:t,isFrom:!0}),f.originX=c.cx,f.originY=c.cy):"scale"===y?(f.shape.r=e.r0,ii(f,{shape:{r:e.r}},o,t)):null!=i?(f.setShape({startAngle:i,endAngle:i}),ii(f,{shape:{startAngle:e.startAngle,endAngle:e.endAngle}},o,t)):(f.shape.endAngle=e.startAngle,lt(f,{shape:{endAngle:e.endAngle}},o,t))):(se(f),lt(f,{shape:c},o,t));f.useStyle(n.getItemVisual(t,"style"));rr(f,s);var p=(e.startAngle+e.endAngle)/2,w=o.get("selectedOffset"),l=Math.cos(p)*w,a=Math.sin(p)*w,b=s.getShallow("cursor");b&&f.attr("cursor",b);this._updateLabel(o,n,t);f.ensureState("emphasis").shape=r({r:e.r+(h.get("scale")&&h.get("scaleSize")||0)},ba(h.getModel("itemStyle"),e));r(f.ensureState("select"),{x:l,y:a,shape:ba(s.getModel(["select","itemStyle"]),e)});r(f.ensureState("blur"),{shape:ba(s.getModel(["blur","itemStyle"]),e)});v=f.getTextGuideLine();k=f.getTextContent();v&&r(v.ensureState("select"),{x:l,y:a});r(k.ensureState("select"),{x:l,y:a});ui(this,h.get("focus"),h.get("blurScope"),h.get("disabled"))}},t.prototype._updateLabel=function(n,t,i){var r=this,e=t.getItemModel(i),l=e.getModel("labelLine"),u=t.getItemVisual(i,"style"),s=u&&u.fill,h=u&&u.opacity,c,o,f;or(r,bi(e),{labelFetcher:t.hostModel,labelDataIndex:i,inheritColor:s,defaultOpacity:h,defaultText:n.getFormattedLabel(i,"normal")||t.getName(i)});c=r.getTextContent();r.setTextConfig({position:null,rotation:null});c.attr({z2:10});o=n.get(["label","position"]);"outside"!==o&&"outer"!==o?r.removeTextGuideLine():(f=this.getTextGuideLine(),f||(f=new er,this.setTextGuideLine(f)),ddt(this,gdt(e),{stroke:s,opacity:gf(l.get(["lineStyle","opacity"]),h,1)}))},t}(ur);ger=function(n){function t(){var t=null!==n&&n.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return i(t,n),t.prototype.render=function(n,t,i){var h,r=n.getData(),f=this._data,e=this.group,u,o,s;if(!f&&r.count()>0){for(u=r.getItemLayout(0),o=1;isNaN(u&&u.startAngle)&&o<r.count();++o)u=r.getItemLayout(o);u&&(h=u.startAngle)}(this._emptyCircleSector&&e.remove(this._emptyCircleSector),0===r.count()&&n.get("showEmptyCircle"))&&(s=new ur({shape:per(n,i)}),s.useStyle(n.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=s,e.add(s));r.diff(f).add(function(n){var t=new der(r,n,h);r.setItemGraphicEl(n,t);e.add(t)}).update(function(n,t){var i=f.getItemGraphicEl(t);i.updateData(r,n,h);i.off("click");e.add(i);r.setItemGraphicEl(n,i)}).remove(function(t){id(f.getItemGraphicEl(t),n,t)}).execute();ovu(n);"expansion"!==n.get("animationTypeUpdate")&&(this._data=r)},t.prototype.dispose=function(){},t.prototype.containPoint=function(n,t){var i=t.getData().getItemLayout(0);if(i){var r=n[0]-i.cx,u=n[1]-i.cy,f=Math.sqrt(r*r+u*u);return f<=i.r&&f>=i.r0}},t.type="pie",t}(wt);var en=function(){function n(n,t){this._getDataWithEncodedVisual=n;this._getRawData=t}return n.prototype.getAllNames=function(){var n=this._getRawData();return n.mapArray(n.getName)},n.prototype.containName=function(n){return this._getRawData().indexOfName(n)>=0},n.prototype.indexOfName=function(n){return this._getDataWithEncodedVisual().indexOfName(n)},n.prototype.getItemVisual=function(n,t){return this._getDataWithEncodedVisual().getItemVisual(n,t)},n}(),svu=ct(),hvu=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return i(t,n),t.prototype.init=function(t){n.prototype.init.apply(this,arguments);this.legendVisualProvider=new en(s(this.getData,this),s(this.getRawData,this));this._defaultLabelLine(t)},t.prototype.mergeOption=function(){n.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return ew(this,{coordDimensions:["value"],encodeDefaulter:w(cwt,this)})},t.prototype.getDataParams=function(t){var i=this.getData(),e=svu(i),u=e.seats,f,r;return u||(f=[],i.each(i.mapDimension("value"),function(n){f.push(n)}),u=e.seats=ili(f,i.hostModel.get("percentPrecision"))),r=n.prototype.getDataParams.call(this,t),r.percent=u[t]||0,r.$vars.push("percent"),r},t.prototype._defaultLabelLine=function(n){ul(n,"labelLine",["show"]);var t=n.labelLine,i=n.emphasis.labelLine;t.show=t.show&&n.label.show;i.show=i.show&&n.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(bt),cvu=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i.hasSymbolVisual=!0,i}return i(t,n),t.prototype.getInitialData=function(){return lo(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var n=this.option.progressive;return null==n?this.option.large?5e3:this.get("progressive"):n},t.prototype.getProgressiveThreshold=function(){var n=this.option.progressiveThreshold;return null==n?this.option.large?1e4:this.get("progressiveThreshold"):n},t.prototype.brushSelector=function(n,t,i){return i.point(t.getItemLayout(n))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(bt),lvu=function(){},avu=function(n){function t(t){var i=n.call(this,t)||this;return i._off=0,i.hoverDataIdx=-1,i}return i(t,n),t.prototype.getDefaultShape=function(){return new lvu},t.prototype.reset=function(){this.notClear=!1;this._off=0},t.prototype.buildPath=function(n,t){var i,o=t.points,r=t.size,s=this.symbolProxy,u=s.shape,h=n.getContext?n.getContext():n,l=h&&r[0]<4,c=this.softClipShape,f,e;if(l)this._ctx=h;else{for(this._ctx=null,i=this._off;i<o.length;)f=o[i++],e=o[i++],isNaN(f)||isNaN(e)||c&&!c.contain(f,e)||(u.x=f-r[0]/2,u.y=e-r[1]/2,u.width=r[0],u.height=r[1],s.buildPath(n,u,!0));this.incremental&&(this._off=i,this.notClear=!0)}},t.prototype.afterBrush=function(){var n,f=this.shape,u=f.points,t=f.size,e=this._ctx,o=this.softClipShape,i,r;if(e){for(n=this._off;n<u.length;)i=u[n++],r=u[n++],isNaN(i)||isNaN(r)||o&&!o.contain(i,r)||e.fillRect(i-t[0]/2,r-t[1]/2,t[0],t[1]);this.incremental&&(this._off=n,this.notClear=!0)}},t.prototype.findDataIndex=function(n,t){for(var u=this.shape,r=u.points,f=u.size,e=Math.max(f[0],4),o=Math.max(f[1],4),i=r.length/2-1;i>=0;i--){var s=2*i,h=r[s]-e/2,c=r[s+1]-o/2;if(n>=h&&t>=c&&n<=h+e&&t<=c+o)return i}return-1},t.prototype.contain=function(n,t){var i=this.transformCoordToLocal(n,t),r=this.getBoundingRect();return n=i[0],t=i[1],r.contain(n,t)?(this.hoverDataIdx=this.findDataIndex(n,t))>=0:(this.hoverDataIdx=-1,!1)},t.prototype.getBoundingRect=function(){var i=this._rect,o,s;if(!i){for(var h=this.shape,r=h.points,c=h.size,l=c[0],a=c[1],n=1/0,t=1/0,u=-1/0,f=-1/0,e=0;e<r.length;)o=r[e++],s=r[e++],n=Math.min(o,n),u=Math.max(o,u),t=Math.min(s,t),f=Math.max(s,f);i=this._rect=new nt(n-l/2,t-a/2,u-n+l,f-t+a)}return i},t}(ut),vvu=function(){function n(){this.group=new p}return n.prototype.updateData=function(n,t){this._clear();var i=this._create();i.setShape({points:n.getLayout("points")});this._setCommon(i,n,t)},n.prototype.updateLayout=function(n){var t=n.getLayout("points");this.group.eachChild(function(n){if(null!=n.startIndex){var i=2*(n.endIndex-n.startIndex),r=8*n.startIndex;t=new Float32Array(t.buffer,r,i)}n.setShape("points",t);n.reset()})},n.prototype.incrementalPrepareUpdate=function(){this._clear()},n.prototype.incrementalUpdate=function(n,t,i){var u=this._newAdded[0],o=t.getLayout("points"),f=u&&u.shape.points,s,e,r;f&&f.length<2e4?(s=f.length,e=new Float32Array(s+o.length),e.set(f),e.set(o,s),u.endIndex=n.end,u.setShape({points:e})):(this._newAdded=[],r=this._create(),r.startIndex=n.start,r.endIndex=n.end,r.incremental=!0,r.setShape({points:o}),this._setCommon(r,t,i))},n.prototype.eachRendered=function(n){this._newAdded[0]&&n(this._newAdded[0])},n.prototype._create=function(){var n=new avu({cursor:"default"});return n.ignoreCoarsePointer=!0,this.group.add(n),this._newAdded.push(n),n},n.prototype._setCommon=function(n,t,i){var o=t.hostModel,r,s,f,e,u;i=i||{};r=t.getVisual("symbolSize");n.setShape("size",r instanceof Array?r:[r,r]);n.softClipShape=i.clipShape||null;n.symbolProxy=si(t.getVisual("symbol"),0,0,0,0);n.setColor=n.symbolProxy.setColor;s=n.shape.size[0]<4;n.useStyle(o.getModel("itemStyle").getItemStyle(s?["color","shadowBlur","shadowColor"]:["color"]));f=t.getVisual("style");e=f&&f.fill;e&&n.setColor(e);u=b(n);u.seriesIndex=o.seriesIndex;n.on("mousemove",function(){u.dataIndex=null;var t=n.hoverDataIdx;t>=0&&(u.dataIndex=t+(n.startIndex||0))})},n.prototype.remove=function(){this._clear()},n.prototype._clear=function(){this._newAdded=[];this.group.removeAll()},n}(),yvu=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i}return i(t,n),t.prototype.render=function(n){var t=n.getData();this._updateSymbolDraw(t,n).updateData(t,{clipShape:this._getClipShape(n)});this._finished=!0},t.prototype.incrementalPrepareRender=function(n){var t=n.getData();this._updateSymbolDraw(t,n).incrementalPrepareUpdate(t);this._finished=!1},t.prototype.incrementalRender=function(n,t){this._symbolDraw.incrementalUpdate(n,t.getData(),{clipShape:this._getClipShape(t)});this._finished=n.end===t.getData().count()},t.prototype.updateTransform=function(n,t,i){var r=n.getData(),u;if(this.group.dirty(),!this._finished||r.count()>1e4)return{update:!0};u=rn("").reset(n,t,i);u.progress&&u.progress({start:0,end:r.count(),count:r.count()},r);this._symbolDraw.updateLayout(r)},t.prototype.eachRendered=function(n){this._symbolDraw&&this._symbolDraw.eachRendered(n)},t.prototype._getClipShape=function(n){var t=n.coordinateSystem,i=t&&t.getArea&&t.getArea();return n.get("clip",!0)?i:null},t.prototype._updateSymbolDraw=function(n,t){var i=this._symbolDraw,r=t.pipelineContext.large;return i&&r===this._isLargeDraw||(i&&i.remove(),i=this._symbolDraw=r?new vvu:new uw,this._isLargeDraw=r,this.group.removeAll()),this.group.add(i.group),i},t.prototype.remove=function(){this._symbolDraw&&this._symbolDraw.remove(!0);this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(wt),pvu=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return i(t,n),t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(rt),fnt=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return i(t,n),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",oi).models[0]},t.type="cartesian2dAxis",t}(rt);fi(fnt,dp);var nor={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},wvu=k({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},nor),ent=k({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},nor),tor={category:wvu,value:ent,time:k({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},ent),log:a({logBase:10},ent)},bvu={value:1,category:1,time:1,log:1};ror=function(){function n(n){this.type="cartesian";this._dimList=[];this._axes={};this.name=n||""}return n.prototype.getAxis=function(n){return this._axes[n]},n.prototype.getAxes=function(){return f(this._dimList,function(n){return this._axes[n]},this)},n.prototype.getAxesByScale=function(n){return n=n.toLowerCase(),yt(this.getAxes(),function(t){return t.scale.type===n})},n.prototype.addAxis=function(n){var t=n.dim;this._axes[t]=n;this._dimList.push(t)},n}();vot=["x","y"];eor=function(n){function t(){var t=null!==n&&n.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=vot,t}return i(t,n),t.prototype.calcAffineTransform=function(){var r,u;if(this._transform=this._invTransform=null,r=this.getAxis("x").scale,u=this.getAxis("y").scale,uor(r)&&uor(u)){var n=r.getExtent(),t=u.getExtent(),i=this.dataToPoint([n[0],t[0]]),f=this.dataToPoint([n[1],t[1]]),e=n[1]-n[0],o=t[1]-t[0];if(e&&o){var s=(f[0]-i[0])/e,h=(f[1]-i[1])/o,c=i[0]-n[0]*s,l=i[1]-t[0]*h,a=this._transform=[s,0,0,h,c,l];this._invTransform=wc([],a)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(n){var t=this.getAxis("x"),i=this.getAxis("y");return t.contain(t.toLocalCoord(n[0]))&&i.contain(i.toLocalCoord(n[1]))},t.prototype.containData=function(n){return this.getAxis("x").containData(n[0])&&this.getAxis("y").containData(n[1])},t.prototype.containZone=function(n,t){var i=this.dataToPoint(n),r=this.dataToPoint(t),u=this.getArea(),f=new nt(i[0],i[1],r[0]-i[0],r[1]-i[1]);return u.intersect(f)},t.prototype.dataToPoint=function(n,t,i){var r,u,f,e;return(i=i||[],r=n[0],u=n[1],this._transform&&null!=r&&isFinite(r)&&null!=u&&isFinite(u))?nr(i,n,this._transform):(f=this.getAxis("x"),e=this.getAxis("y"),i[0]=f.toGlobalCoord(f.dataToCoord(r,t)),i[1]=e.toGlobalCoord(e.dataToCoord(u,t)),i)},t.prototype.clampData=function(n,t){var u=this.getAxis("x").scale,f=this.getAxis("y").scale,i=u.getExtent(),r=f.getExtent(),e=u.parse(n[0]),o=f.parse(n[1]);return(t=t||[])[0]=Math.min(Math.max(Math.min(i[0],i[1]),e),Math.max(i[0],i[1])),t[1]=Math.min(Math.max(Math.min(r[0],r[1]),o),Math.max(r[0],r[1])),t},t.prototype.pointToData=function(n,t){var i=[],r,u;return this._invTransform?nr(i,n,this._invTransform):(r=this.getAxis("x"),u=this.getAxis("y"),i[0]=r.coordToData(r.toLocalCoord(n[0]),t),i[1]=u.coordToData(u.toLocalCoord(n[1]),t),i)},t.prototype.getOtherAxis=function(n){return this.getAxis("x"===n.dim?"y":"x")},t.prototype.getArea=function(){var n=this.getAxis("x").getGlobalExtent(),t=this.getAxis("y").getGlobalExtent(),i=Math.min(n[0],n[1]),r=Math.min(t[0],t[1]),u=Math.max(n[0],n[1])-i,f=Math.max(t[0],t[1])-r;return new nt(i,r,u,f)},t}(ror);oor=function(n){function t(t,i,r,u,f){var e=n.call(this,t,i,r)||this;return e.index=0,e.type=u||"value",e.position=f||"bottom",e}return i(t,n),t.prototype.isHorizontal=function(){var n=this.position;return"top"===n||"bottom"===n},t.prototype.getGlobalExtent=function(n){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),n&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(n,t){return this.coordToData(this.toLocalCoord(n["x"===this.dim?0:1]),t)},t.prototype.setCategorySortInfo=function(n){if("category"!==this.type)return!1;this.model.option.categorySortInfo=n;this.scale.setSortInfo(n)},t}(pu);yot=Math.log;lor=function(){function n(n,t,i){this.type="grid";this._coordsMap={};this._coordsList=[];this._axesMap={};this._axesList=[];this.axisPointerEnabled=!0;this.dimensions=vot;this._initCartesian(n,t,i);this.model=n}return n.prototype.getRect=function(){return this._rect},n.prototype.update=function(n,i){function f(n){var i,s=et(n),h=s.length,r,u;if(h){for(r=[],u=h-1;u>=0;u--){var f=n[+s[u]],e=f.model,o=f.scale;sdt(o)&&e.get("alignTicks")&&null==e.get("interval")?r.push(f):(la(o,e),sdt(o)&&(i=f))}r.length&&(i||la((i=r.pop()).scale,i.model),t(r,function(n){cor(n.scale,n.model,i.scale)}))}}var r=this._axesMap,u;this._updateScale(n,this.model);f(r.x);f(r.y);u={};t(r.x,function(n){aor(r,"y",n,u)});t(r.y,function(n){aor(r,"x",n,u)});this.resize(this.model,i)},n.prototype.resize=function(n,i,r){function e(){t(f,function(n){var t=n.isHorizontal(),i=t?[0,u.width]:[0,u.height],r=n.inverse?1:0;n.setExtent(i[r],i[1-r]),function(n,t){var i=n.getExtent(),r=i[0]+i[1];n.toGlobalCoord="x"===n.dim?function(n){return n+t}:function(n){return r-n+t};n.toLocalCoord="x"===n.dim?function(n){return n-t}:function(n){return r-n+t}}(n,t?u.x:u.y)})}var o=n.getBoxLayoutParams(),s=!r&&n.get("containLabel"),u=ci(o,{width:i.getWidth(),height:i.getHeight()}),f;this._rect=u;f=this._axesList;e();s&&(t(f,function(n){var t,r,i;n.model.get(["axisLabel","inside"])||(t=function(n){var l=n.model,i=n.scale,f,r,o,t,c,e;if(l.get(["axisLabel","show"])&&!i.isBlank()){o=i.getExtent();r=i instanceof ag?i.count():(f=i.getTicks()).length;var u,s=n.getLabelModel(),a=wg(n),h=1;for(r>40&&(h=Math.ceil(r/40)),t=0;t<r;t+=h)c=a(f?f[t]:{value:o[0]+t},t),e=elu(s.getTextRect(c),s.get("rotate")||0),u?u.union(e):u=e;return u}}(n),t&&(r=n.isHorizontal()?"height":"width",i=n.model.get(["axisLabel","margin"]),u[r]-=t[r]+i,"top"===n.position?u.y+=t.height+i:"left"===n.position&&(u.x+=t.width+i)))}),e());t(this._coordsList,function(n){n.calcAffineTransform()})},n.prototype.getAxis=function(n,t){var i=this._axesMap[n];if(null!=i)return i[t||0]},n.prototype.getAxes=function(){return this._axesList.slice()},n.prototype.getCartesian=function(n,t){var u,i,r;if(null!=n&&null!=t)return u="x"+n+"y"+t,this._coordsMap[u];for(v(n)&&(t=n.yAxisIndex,n=n.xAxisIndex),i=0,r=this._coordsList;i<r.length;i++)if(r[i].getAxis("x").index===n||r[i].getAxis("y").index===t)return r[i]},n.prototype.getCartesians=function(){return this._coordsList.slice()},n.prototype.convertToPixel=function(n,t,i){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.dataToPoint(i):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(i)):null},n.prototype.convertFromPixel=function(n,t,i){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.pointToData(i):r.axis?r.axis.coordToData(r.axis.toLocalCoord(i)):null},n.prototype._findConvertTarget=function(n){var i,f,t=n.seriesModel,r=n.xAxisModel||t&&t.getReferringComponents("xAxis",oi).models[0],u=n.yAxisModel||t&&t.getReferringComponents("yAxis",oi).models[0],e=n.gridModel,o=this._coordsList;return t?tt(o,i=t.coordinateSystem)<0&&(i=null):r&&u?i=this.getCartesian(r.componentIndex,u.componentIndex):r?f=this.getAxis("x",r.componentIndex):u?f=this.getAxis("y",u.componentIndex):e&&e.coordinateSystem===this&&(i=this._coordsList[0]),{cartesian:i,axis:f}},n.prototype.containPoint=function(n){var t=this._coordsList[0];if(t)return t.containPoint(n)},n.prototype._initCartesian=function(n,i){function s(t){return function(i,u){var h,s,c;snt(i,n)&&(h=i.get("position"),"x"===t?"top"!==h&&"bottom"!==h&&(h=f.bottom?"top":"bottom"):"left"!==h&&"right"!==h&&(h=f.left?"right":"left"),f[h]=!0,s=new oor(t,pg(i),[0,0],i.get("type"),h),c="category"===s.type,s.onBand=c&&i.get("boundaryGap"),s.inverse=i.get("inverse"),i.axis=s,s.model=i,s.grid=o,s.index=u,o._axesList.push(s),r[t][u]=s,e[t]++)}}var u=this,o=this,f={left:!1,right:!1,top:!1,bottom:!1},r={x:{},y:{}},e={x:0,y:0};if(i.eachComponent("xAxis",s("x"),this),i.eachComponent("yAxis",s("y"),this),!e.x||!e.y)return this._axesMap={},void(this._axesList=[]);this._axesMap=r;t(r.x,function(i,f){t(r.y,function(t,r){var o="x"+f+"y"+r,e=new eor(o);e.master=u;e.model=n;u._coordsMap[o]=e;u._coordsList.push(e);e.addAxis(i);e.addAxis(t)})})},n.prototype._updateScale=function(n,i){function r(n,i){t(not(n,i.dim),function(t){i.scale.unionExtentFromData(n,t)})}t(this._axesList,function(n){if(n.scale.setExtent(1/0,-1/0),"category"===n.type){var t=n.model.get("categorySortInfo");n.scale.setSortInfo(t)}});n.eachSeries(function(n){if(sor(n)){var t=hor(n),u=t.xAxisModel,f=t.yAxisModel;if(!snt(u,i)||!snt(f,i))return;var e=this.getCartesian(u.componentIndex,f.componentIndex),o=n.getData(),s=e.getAxis("x"),h=e.getAxis("y");r(o,s);r(o,h)}},this)},n.prototype.getTooltipAxes=function(n){var i=[],r=[];return t(this.getCartesians(),function(t){var u=null!=n&&"auto"!==n?t.getAxis(n):t.getBaseAxis(),f=t.getOtherAxis(u);tt(i,u)<0&&i.push(u);tt(r,f)<0&&r.push(f)}),{baseAxes:i,otherAxes:r}},n.create=function(t,i){var r=[];return t.eachComponent("grid",function(u,f){var e=new n(u,t,i);e.name="grid_"+f;e.resize(u,i,!0);u.coordinateSystem=e;r.push(e)}),t.eachSeries(function(n){var r;if(sor(n)){var t=hor(n),i=t.xAxisModel,u=t.yAxisModel,f=i.getCoordSysModel();r=f.coordinateSystem;n.coordinateSystem=r.getCartesian(i.componentIndex,u.componentIndex)}}),r},n.dimensions=vot,n}();var oc=Math.PI,ru=function(){function n(n,t){this.group=new p;this.opt=t;this.axisModel=n;a(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var i=new p({x:t.position[0],y:t.position[1],rotation:t.rotation});i.updateTransform();this._transformGroup=i}return n.prototype.hasBuilder=function(n){return!!yor[n]},n.prototype.add=function(n){yor[n](this.opt,this.axisModel,this.group,this._transformGroup)},n.prototype.getGroup=function(){return this.group},n.innerTextLayout=function(n,t,i){var u,f,r=ivt(t-n);return ck(r)?(f=i>0?"top":"bottom",u="center"):ck(r-oc)?(f=i>0?"bottom":"top",u="center"):(f="middle",u=r>0&&r<oc?i>0?"right":"left":i>0?"left":"right"),{rotation:r,textAlign:u,textVerticalAlign:f}},n.makeAxisEventDataBase=function(n){var t={componentType:n.mainType,componentIndex:n.componentIndex};return t[n.mainType+"Index"]=n.componentIndex,t},n.isLabelSilent=function(n){var t=n.get("tooltip");return n.get("silent")||!(n.get("triggerEvent")||t&&t.show)},n}(),yor={axisLine:function(n,i,u,f){var a=i.get(["axisLine","show"]),y,l,h,c;if("auto"===a&&n.handleAutoShown&&(a=n.handleAutoShown("axisLine")),a){var p=i.axis.getExtent(),v=f.transform,e=[p[0],0],s=[p[1],0],d=e[0]>s[0];if(v&&(nr(e,e,v),nr(s,s,v)),y=r({lineCap:"round"},i.getModel(["axisLine","lineStyle"]).getLineStyle()),l=new vi({shape:{x1:e[0],y1:e[1],x2:s[0],y2:s[1]},style:y,strokeContainThreshold:n.strokeContainThreshold||5,silent:!0,z2:1}),py(l.shape,l.style.lineWidth),l.anid="line",u.add(l),h=i.get(["axisLine","symbol"]),null!=h){c=i.get(["axisLine","symbolSize"]);o(h)&&(h=[h,h]);(o(c)||ht(c))&&(c=[c,c]);var w=oa(i.get(["axisLine","symbolOffset"])||0,c),b=c[0],k=c[1];t([{rotate:n.rotation+Math.PI/2,offset:w[0],r:0},{rotate:n.rotation-Math.PI/2,offset:w[1],r:Math.sqrt((e[0]-s[0])*(e[0]-s[0])+(e[1]-s[1])*(e[1]-s[1]))}],function(t,i){if("none"!==h[i]&&null!=h[i]){var r=si(h[i],-b/2,-k/2,b,k,y.stroke,!0),f=t.r+t.offset,o=d?s:e;r.attr({rotation:t.rotate,x:o[0]+f*Math.cos(n.rotation),y:o[1]-f*Math.sin(n.rotation),silent:!0,z2:11});u.add(r)}})}}},axisTickLabel:function(n,i,r,u){var o=function(n,t,i,r){var s=i.axis,u=i.getModel("axisTick"),f=u.get("show");if("auto"===f&&r.handleAutoShown&&(f=r.handleAutoShown("axisTick")),f&&!s.scale.isBlank()){for(var h=u.getModel("lineStyle"),c=r.tickDirection*u.get("length"),e=bor(s.getTicksCoords(),t.transform,c,a(h.getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])}),"ticks"),o=0;o<e.length;o++)n.add(e[o]);return e}}(r,u,i,n),e=function(n,i,r,u){var f=r.axis,c=yi(u.axisLabelShow,r.get(["axisLabel","show"]));if(c&&!f.scale.isBlank()){var e=r.getModel("axisLabel"),a=e.get("margin"),y=f.getViewLabels(),p=(yi(u.labelRotate,e.get("rotate"))||0)*oc/180,o=ru.innerTextLayout(u.rotation,p,u.labelDirection),s=r.getCategories&&r.getCategories(!0),h=[],w=ru.isLabelSilent(r),k=r.get("triggerEvent");return t(y,function(t,c){var y="ordinal"===f.scale.type?f.scale.getRawOrdinalNumber(t.tickValue):t.tickValue,rt=t.formattedLabel,it=t.rawLabel,d=e,nt,g;s&&s[y]&&(nt=s[y],v(nt)&&nt.textStyle&&(d=new at(nt.textStyle,e,r.ecModel)));var tt=d.getTextColor()||r.get(["axisLine","lineStyle","color"]),ut=f.dataToCoord(y),p=new st({x:ut,y:u.labelOffset+u.labelDirection*a,rotation:o.rotation,silent:w,z2:10+(t.level||0),style:gt(d,{text:rt,align:d.getShallow("align",!0)||o.textAlign,verticalAlign:d.getShallow("verticalAlign",!0)||d.getShallow("baseline",!0)||o.textVerticalAlign,fill:l(tt)?tt("category"===f.type?it:"value"===f.type?y+"":y,c):tt})});(p.anid="label_"+y,k)&&(g=ru.makeAxisEventDataBase(r),g.targetType="axisLabel",g.value=it,g.tickIndex=c,"category"===f.type&&(g.dataIndex=y),b(p).eventData=g);i.add(p);p.updateTransform();h.push(p);n.add(p);p.decomposeTransform()}),h}}(r,u,i,n);(function(n,t,i){var r,u;if(!vir(n.axis)){r=n.get(["axisLabel","showMinLabel"]);u=n.get(["axisLabel","showMaxLabel"]);t=t||[];i=i||[];var f=t[0],o=t[1],e=t[t.length-1],s=t[t.length-2],h=i[0],l=i[1],c=i[i.length-1],a=i[i.length-2];!1===r?(pf(f),pf(h)):por(f,o)&&(r?(pf(o),pf(l)):(pf(f),pf(h)));!1===u?(pf(e),pf(c)):por(s,e)&&(u?(pf(s),pf(a)):(pf(e),pf(c)))}}(i,e,o),function(n,t,i,r){var h=i.axis,o=i.getModel("minorTick"),u,s,e;if(o.get("show")&&!h.scale.isBlank()&&(u=h.getMinorTicksCoords(),u.length))for(var c=o.getModel("lineStyle"),l=r*o.get("length"),v=a(c.getLineStyle(),a(i.getModel("axisTick").getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])})),f=0;f<u.length;f++)for(s=bor(u[f],t.transform,l,v,"minorticks_"+f),e=0;e<s.length;e++)n.add(s[e])}(r,u,i,n.tickDirection),i.get(["axisLabel","hideOverlap"]))&&wrr(vrr(f(e,function(n){return{label:n,priority:n.z2,defaultAttr:{ignore:n.ignore}}})))},axisName:function(n,t,i,r){var h=yi(n.axisName,t.get("name")),a;if(h){var e,o,c=t.get("nameLocation"),y=n.nameDirection,l=t.getModel("nameTextStyle"),v=t.get("nameGap")||0,f=t.axis.getExtent(),p=f[0]>f[1]?-1:1,w=["start"===c?f[0]-p*v:"end"===c?f[1]+p*v:(f[0]+f[1])/2,wor(c)?n.labelOffset+y*v:0],s=t.get("nameRotate");null!=s&&(s=s*oc/180);wor(c)?e=ru.innerTextLayout(n.rotation,null!=s?s:n.rotation,y):(e=function(n,t,i,r){var f,e,u=ivt(i-n),s=r[0]>r[1],o="start"===t&&!s||"start"!==t&&s;return ck(u-oc/2)?(e=o?"bottom":"top",f="center"):ck(u-1.5*oc)?(e=o?"top":"bottom",f="center"):(e="middle",f=u<1.5*oc&&u>oc/2?o?"left":"right":o?"right":"left"),{rotation:u,textAlign:f,textVerticalAlign:e}}(n.rotation,c,s||0,f),null!=(o=n.axisNameAvailableWidth)&&(o=Math.abs(o/Math.sin(e.rotation)),!isFinite(o)&&(o=null)));var d=l.getFont(),k=t.get("nameTruncate",!0)||{},g=k.ellipsis,nt=yi(n.nameTruncateMaxWidth,k.maxWidth,o),u=new st({x:w[0],y:w[1],rotation:e.rotation,silent:ru.isLabelSilent(t),style:gt(l,{text:h,font:d,overflow:"truncate",width:nt,ellipsis:g,fill:l.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:l.get("align")||e.textAlign,verticalAlign:l.get("verticalAlign")||e.textVerticalAlign}),z2:1});(by({el:u,componentModel:t,itemName:h}),u.__fullText=h,u.anid="name",t.get("triggerEvent"))&&(a=ru.makeAxisEventDataBase(t),a.targetType="axisName",a.name=h,b(u).eventData=a);r.add(u);u.updateTransform();i.add(u);u.decomposeTransform()}}};var kor={},ka=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i}return i(t,n),t.prototype.render=function(t,i,r){this.axisPointerClass&&dvu(t);n.prototype.render.apply(this,arguments);this._doUpdateAxisPointerClass(t,r,!0)},t.prototype.updateAxisPointer=function(n,t,i){this._doUpdateAxisPointerClass(n,i,!1)},t.prototype.remove=function(n,t){var i=this._axisPointer;i&&i.remove(t)},t.prototype.dispose=function(t,i){this._disposeAxisPointer(i);n.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(n,i,r){var f=t.getAxisPointerClass(this.axisPointerClass),u;f&&(u=function(n){var t=cnt(n);return t&&t.axisPointerModel}(n),u?(this._axisPointer||(this._axisPointer=new f)).render(n,u,i,r):this._disposeAxisPointer(i))},t.prototype._disposeAxisPointer=function(n){this._axisPointer&&this._axisPointer.dispose(n);this._axisPointer=null},t.registerAxisPointerClass=function(n,t){kor[n]=t},t.getAxisPointerClass=function(n){return n&&kor[n]},t.type="axis",t}(ni),ant=ct();var gvu=["axisLine","axisTickLabel","axisName"],nyu=["splitArea","splitLine","minorSplitLine"],nsr=function(n){function u(){var t=null!==n&&n.apply(this,arguments)||this;return t.type=u.type,t.axisPointerClass="CartesianAxisPointer",t}return i(u,n),u.prototype.render=function(i,u,f,e){var h;if(this.group.removeAll(),h=this._axisGroup,this._axisGroup=new p,this.group.add(this._axisGroup),i.get("show")){var o=i.getCoordSysModel(),c=ont(o,i),s=new ru(i,r({handleAutoShown:function(){for(var t=o.coordinateSystem.getCartesians(),n=0;n<t.length;n++)if(sdt(t[n].getOtherAxis(i.axis).scale))return!0;return!1}},c));t(gvu,s.add,s);this._axisGroup.add(s.getGroup());t(nyu,function(n){i.get([n,"show"])&&tyu[n](this,this._axisGroup,i,o)},this);e&&"changeAxisOrder"===e.type&&e.isInitSort||fd(h,this._axisGroup,i);n.prototype.render.call(this,i,u,f,e)}},u.prototype.remove=function(){gor(this)},u.type="cartesianAxis",u}(ka),tyu={splitLine:function(n,t,i,r){var l=i.axis,c;if(!l.scale.isBlank()){var y=i.getModel("splitLine"),p=y.getModel("lineStyle"),f=p.get("color");f=u(f)?f:[f];for(var e=r.coordinateSystem.getRect(),k=l.isHorizontal(),d=0,v=l.getTicksCoords({tickModel:y}),o=[],s=[],w=p.getLineStyle(),h=0;h<v.length;h++){c=l.toGlobalCoord(v[h].coord);k?(o[0]=c,o[1]=e.y,s[0]=c,s[1]=e.y+e.height):(o[0]=e.x,o[1]=c,s[0]=e.x+e.width,s[1]=c);var g=d++%f.length,nt=v[h].tickValue,b=new vi({anid:null!=nt?"line_"+v[h].tickValue:null,autoBatch:!0,shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:a({stroke:f[g]},w),silent:!0});py(b.shape,w.lineWidth);t.add(b)}}},minorSplitLine:function(n,t,i,r){var l=i.axis,y=i.getModel("minorSplitLine").getModel("lineStyle"),u=r.coordinateSystem.getRect(),p=l.isHorizontal(),o=l.getMinorTicksCoords(),h,c,a;if(o.length)for(var f=[],e=[],v=y.getLineStyle(),s=0;s<o.length;s++)for(h=0;h<o[s].length;h++)c=l.toGlobalCoord(o[s][h].coord),p?(f[0]=c,f[1]=u.y,e[0]=c,e[1]=u.y+u.height):(f[0]=u.x,f[1]=c,e[0]=u.x+u.width,e[1]=c),a=new vi({anid:"minor_line_"+o[s][h].tickValue,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:e[0],y2:e[1]},style:v,silent:!0}),py(a.shape,v.lineWidth),t.add(a)},splitArea:function(n,t,i,r){dor(n,t,i,r)}},tsr=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i}return i(t,n),t.type="xAxis",t}(nsr),iyu=function(n){function t(){var t=null!==n&&n.apply(this,arguments)||this;return t.type=tsr.type,t}return i(t,n),t.type="yAxis",t}(nsr),ryu=function(n){function t(){var t=null!==n&&n.apply(this,arguments)||this;return t.type="grid",t}return i(t,n),t.prototype.render=function(n){this.group.removeAll();n.get("show")&&this.group.add(new ot({shape:n.coordinateSystem.getRect(),style:a({fill:n.get("backgroundColor")},n.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(ni),isr={offset:0};var eyu=function(n){function u(){var t=null!==n&&n.apply(this,arguments)||this;return t.type=u.type,t}return i(u,n),u.prototype.render=function(n){function c(n,t){var i=n.getItemVisual(t,"symbol")||"circle";if("none"!==i){var r=vp(n.getItemVisual(t,"symbolSize")),u=si(i,-1,-1,2,2),f=n.getItemVisual(t,"symbolRotate")||0;return u.attr({style:{strokeNoScale:!0},z2:100,scaleX:r[0]/2,scaleY:r[1]/2,rotation:f*Math.PI/180||0}),u}}function s(t,i,r,u,f,e){var o,s;for(r.removeAll(),o=0;o<i.length-1;o++)s=c(u,f),s&&(s.__dimIdx=o,t[o]?(s.setPosition(t[o]),ky[e?"initProps":"updateProps"](s,{x:i[o][0],y:i[o][1]},n,f)):s.setPosition(i[o]),r.add(s))}function h(n){return f(n,function(){return[e.cx,e.cy]})}var e=n.coordinateSystem,o=this.group,i=n.getData(),u=this._data;i.diff(u).add(function(t){var r=i.getItemLayout(t),u,o;if(r){var e=new fr,f=new er,c={shape:{points:r}};e.shape.points=h(r);f.shape.points=h(r);ii(e,c,n,t);ii(f,c,n,t);u=new p;o=new p;u.add(f);u.add(e);u.add(o);s(f.shape.points,r,o,i,t,!0);i.setItemGraphicEl(t,u)}}).update(function(t,r){var f=u.getItemGraphicEl(r),o=f.childAt(0),h=f.childAt(1),c=f.childAt(2),e={shape:{points:i.getItemLayout(t)}};e.shape.points&&(s(o.shape.points,e.shape.points,c,i,t,!1),se(h),se(o),lt(o,e,n),lt(h,e,n),i.setItemGraphicEl(t,f))}).remove(function(n){o.remove(u.getItemGraphicEl(n))}).execute();i.eachItemGraphicEl(function(n,u){var f=i.getItemModel(u),p=n.childAt(0),h=n.childAt(1),b=n.childAt(2),e=i.getItemVisual(u,"style"),c=e.fill,l,v,s,w;o.add(n);p.useStyle(a(f.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:c}));rr(p,f,"lineStyle");rr(h,f,"areaStyle");l=f.getModel("areaStyle");v=l.isEmpty()&&l.parentModel.isEmpty();h.ignore=v;t(["emphasis","select","blur"],function(n){var t=f.getModel([n,"areaStyle"]),i=t.isEmpty()&&t.parentModel.isEmpty();h.ensureState(n).ignore=i&&v});h.useStyle(a(l.getAreaStyle(),{fill:c,opacity:.7,decal:e.decal}));s=f.getModel("emphasis");w=s.getModel("itemStyle").getItemStyle();b.eachChild(function(n){var t,o;n instanceof wi?(t=n.style,n.useStyle(r({image:t.image,x:t.x,y:t.y,width:t.width,height:t.height},e))):(n.useStyle(e),n.setColor(c),n.style.strokeNoScale=!0);n.ensureState("emphasis").style=y(w);o=i.getStore().get(i.getDimensionIndex(n.__dimIdx),u);(null==o||isNaN(o))&&(o="");or(n,bi(f),{labelFetcher:i.hostModel,labelDataIndex:u,labelDimIndex:n.__dimIdx,defaultText:o,inheritColor:c,defaultOpacity:e.opacity})});ui(n,s.get("focus"),s.get("blurScope"),s.get("disabled"))});this._data=i},u.prototype.remove=function(){this.group.removeAll();this._data=null},u.type="radar",u}(wt),oyu=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i.hasSymbolVisual=!0,i}return i(t,n),t.prototype.init=function(){n.prototype.init.apply(this,arguments);this.legendVisualProvider=new en(s(this.getData,this),s(this.getRawData,this))},t.prototype.getInitialData=function(){return ew(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(n){var t=this.getData(),r=this.coordinateSystem.getIndicatorAxes(),i=this.getData().getName(n),u=""===i?this.name:i,e=cdi(this,n);return ki("section",{header:u,sortBlocks:!0,blocks:f(r,function(i){var r=t.get(t.mapDimension(i.dim),n);return ki("nameValue",{markerType:"subItem",markerColor:e,name:i.name,value:r,sortParam:r})})})},t.prototype.getTooltipPosition=function(n){var e;if(null!=n)for(var u=this.getData(),i=this.coordinateSystem,r=u.getValues(f(i.dimensions,function(n){return u.mapDimension(n)}),n),t=0,o=r.length;t<o;t++)if(!isNaN(r[t]))return e=i.getIndicatorAxes(),i.coordToPoint(e[t].dataToCoord(r[t]),t)},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t}(bt),sn=tor.value;var syu=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i}return i(t,n),t.prototype.optionUpdated=function(){var i=this.get("boundaryGap"),r=this.get("splitNumber"),u=this.get("scale"),e=this.get("axisLine"),s=this.get("axisTick"),h=this.get("axisLabel"),t=this.get("axisName"),c=this.get(["axisName","show"]),n=this.get(["axisName","formatter"]),v=this.get("axisNameGap"),p=this.get("triggerEvent"),w=f(this.get("indicator")||[],function(f){var d,w,g,b;return null!=f.max&&f.max>0&&!f.min?f.min=0:null!=f.min&&f.min<0&&!f.max&&(f.max=0),d=t,null!=f.color&&(d=a({color:f.color},t)),w=k(y(f),{boundaryGap:i,splitNumber:r,scale:u,axisLine:e,axisTick:s,axisLabel:h,name:f.text,showName:c,nameLocation:"end",nameGap:v,nameTextStyle:d,triggerEvent:p},!1),o(n)?(g=w.name,w.name=n.replace("{value}",null!=g?g:"")):l(n)&&(w.name=n(w.name,w)),b=new at(w,null,this.ecModel),fi(b,dp.prototype),b.mainType="radar",b.componentIndex=this.componentIndex,b},this);this._indicatorModels=w},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:k({lineStyle:{color:"#bbb"}},sn.axisLine),axisLabel:pot(sn.axisLabel,!1),axisTick:pot(sn.axisTick,!1),splitLine:pot(sn.splitLine,!0),splitArea:pot(sn.splitArea,!0),indicator:[]},t}(rt),hyu=["axisLine","axisTickLabel","axisName"],cyu=function(n){function r(){var t=null!==n&&n.apply(this,arguments)||this;return t.type=r.type,t}return i(r,n),r.prototype.render=function(n){this.group.removeAll();this._buildAxes(n);this._buildSplitLineAndArea(n)},r.prototype._buildAxes=function(n){var i=n.coordinateSystem;t(f(i.getIndicatorAxes(),function(n){var t=n.model.get("showName")?n.name:"";return new ru(n.model,{axisName:t,position:[i.cx,i.cy],rotation:n.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}),function(n){t(hyu,n.add,n);this.group.add(n.getGroup())},this)},r.prototype._buildSplitLineAndArea=function(n){function b(n,t,i){var r=i%t.length;return n[r]=n[r]||[],r}var h=n.coordinateSystem,c=h.getIndicatorAxes(),y,ot,p,r,w,st,ht;if(c.length){var ct=n.get("shape"),g=n.getModel("splitLine"),nt=n.getModel("splitArea"),tt=g.getModel("lineStyle"),it=nt.getModel("areaStyle"),rt=g.get("show"),ut=nt.get("show"),k=tt.get("color"),d=it.get("color"),l=u(k)?k:[k],v=u(d)?d:[d],e=[],o=[];if("circle"===ct)for(var s=c[0].getTicksCoords(),ft=h.cx,et=h.cy,i=0;i<s.length;i++)rt&&e[b(e,l,i)].push(new vu({shape:{cx:ft,cy:et,r:s[i].coord}})),ut&&i<s.length-1&&o[b(o,v,i)].push(new gl({shape:{cx:ft,cy:et,r0:s[i].coord,r:s[i+1].coord}}));else for(ot=f(c,function(n,t){var i=n.getTicksCoords();return y=null==y?i.length-1:Math.min(i.length-1,y),f(i,function(n){return h.coordToPoint(n.coord,t)})}),p=[],i=0;i<=y;i++){for(r=[],w=0;w<c.length;w++)r.push(ot[w][i]);(r[0]&&r.push(r[0].slice()),rt)&&e[b(e,l,i)].push(new er({shape:{points:r}}));ut&&p&&o[b(o,v,i-1)].push(new fr({shape:{points:r.concat(p)}}));p=r.slice().reverse()}st=tt.getLineStyle();ht=it.getAreaStyle();t(o,function(n,t){this.group.add(ou(n,{style:a({stroke:"none",fill:v[t%v.length]},ht),silent:!0}))},this);t(e,function(n,t){this.group.add(ou(n,{style:a({fill:"none",stroke:l[t%l.length]},st),silent:!0}))},this)}},r.type="radar",r}(ni),lyu=function(n){function t(t,i,r){var u=n.call(this,t,i,r)||this;return u.type="value",u.angle=0,u.name="",u}return i(t,n),t}(pu),ayu=function(){function n(n,t,i){this.dimensions=[];this._model=n;this._indicatorAxes=f(n.getIndicatorModels(),function(n,t){var r="indicator_"+t,i=new lyu(r,new ao);return i.name=n.get("name"),i.model=n,n.axis=i,this.dimensions.push(r),i},this);this.resize(n,i)}return n.prototype.getIndicatorAxes=function(){return this._indicatorAxes},n.prototype.dataToPoint=function(n,t){var i=this._indicatorAxes[t];return this.coordToPoint(i.dataToCoord(n),t)},n.prototype.coordToPoint=function(n,t){var i=this._indicatorAxes[t].angle;return[this.cx+n*Math.cos(i),this.cy-n*Math.sin(i)]},n.prototype.pointToData=function(n){var t=n[0]-this.cx,i=n[1]-this.cy,u=Math.sqrt(t*t+i*i),e,o;t/=u;i/=u;for(var f,c=Math.atan2(-i,t),s=1/0,h=-1,r=0;r<this._indicatorAxes.length;r++)e=this._indicatorAxes[r],o=Math.abs(c-e.angle),o<s&&(f=e,h=r,s=o);return[h,+(f&&f.coordToData(u))]},n.prototype.resize=function(n,i){var u=n.get("center"),f=i.getWidth(),s=i.getHeight(),h=Math.min(f,s)/2,r;this.cx=e(u[0],f);this.cy=e(u[1],s);this.startAngle=n.get("startAngle")*Math.PI/180;r=n.get("radius");(o(r)||ht(r))&&(r=[0,r]);this.r0=e(r[0],h);this.r=e(r[1],h);t(this._indicatorAxes,function(n,t){n.setExtent(this.r0,this.r);var i=this.startAngle+t*Math.PI*2/this._indicatorAxes.length;i=Math.atan2(Math.sin(i),Math.cos(i));n.angle=i},this)},n.prototype.update=function(n){var r=this._indicatorAxes,u=this._model,f,i;t(r,function(n){n.scale.setExtent(1/0,-1/0)});n.eachSeriesByType("radar",function(i){if("radar"===i.get("coordinateSystem")&&n.getComponent("radar",i.get("radarIndex"))===u){var f=i.getData();t(r,function(n){n.scale.unionExtentFromData(f,f.mapDimension(n.dim))})}},this);f=u.get("splitNumber");i=new ao;i.setExtent(0,f);i.setInterval(1);t(r,function(n){cor(n.scale,n.model,i)})},n.prototype.convertToPixel=function(){return console.warn("Not implemented."),null},n.prototype.convertFromPixel=function(){return console.warn("Not implemented."),null},n.prototype.containPoint=function(){return console.warn("Not implemented."),!1},n.create=function(t,i){var r=[];return t.eachComponent("radar",function(u){var f=new n(u,t,i);r.push(f);u.coordinateSystem=f}),t.eachSeriesByType("radar",function(n){"radar"===n.get("coordinateSystem")&&(n.coordinateSystem=r[n.get("radarIndex")||0])}),r},n.dimensions=[],n}();vnt="\0_ec_interaction_mutex";ae({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},ei);sw=function(n){function t(t){var i=n.call(this)||this;i._zr=t;var r=s(i._mousedownHandler,i),u=s(i._mousemoveHandler,i),f=s(i._mouseupHandler,i),e=s(i._mousewheelHandler,i),o=s(i._pinchHandler,i);return i.enable=function(n,i){this.disable();this._opt=a(y(i)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0});null==n&&(n=!0);!0!==n&&"move"!==n&&"pan"!==n||(t.on("mousedown",r),t.on("mousemove",u),t.on("mouseup",f));!0!==n&&"scale"!==n&&"zoom"!==n||(t.on("mousewheel",e),t.on("pinch",o))},i.disable=function(){t.off("mousedown",r);t.off("mousemove",u);t.off("mouseup",f);t.off("mousewheel",e);t.off("pinch",o)},i}return i(t,n),t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(n){this.pointerChecker=n},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(n){var t,i,r;if(!vsi(n)){for(t=n.target;t;){if(t.draggable)return;t=t.__hostTarget||t.parent}i=n.offsetX;r=n.offsetY;this.pointerChecker&&this.pointerChecker(n,i,r)&&(this._x=i,this._y=r,this._dragging=!0)}},t.prototype._mousemoveHandler=function(n){if(this._dragging&&wot("moveOnMouseMove",n,this._opt)&&"pinch"!==n.gestureEvent&&!esr(this._zr,"globalPan")){var t=n.offsetX,i=n.offsetY,r=this._x,u=this._y,f=t-r,e=i-u;this._x=t;this._y=i;this._opt.preventDefaultMouseMove&&de(n.event);osr(this,"pan","moveOnMouseMove",n,{dx:f,dy:e,oldX:r,oldY:u,newX:t,newY:i,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(n){vsi(n)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(n){var u=wot("zoomOnMouseWheel",n,this._opt),f=wot("moveOnMouseWheel",n,this._opt),t=n.wheelDelta,e=Math.abs(t),o=n.offsetX,s=n.offsetY,i,r;0!==t&&(u||f)&&(u&&(i=e>3?1.4:e>1?1.2:1.1,pnt(this,"zoom","zoomOnMouseWheel",n,{scale:t>0?i:1/i,originX:o,originY:s,isAvailableBehavior:null})),f&&(r=Math.abs(t),pnt(this,"scrollMove","moveOnMouseWheel",n,{scrollDelta:(t>0?1:-1)*(r>3?.4:r>1?.15:.05),originX:o,originY:s,isAvailableBehavior:null})))},t.prototype._pinchHandler=function(n){esr(this._zr,"globalPan")||pnt(this,"zoom",null,n,{scale:n.pinchScale>1?1.1:1/1.1,originX:n.pinchX,originY:n.pinchY,isAvailableBehavior:null})},t}(nf);ssr={axisPointer:1,tooltip:1,brush:1};var kot={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},csr=et(kot),dot={"alignment-baseline":"textBaseline","stop-color":"stopColor"},lsr=et(dot),yyu=function(){function n(){this._defs={};this._root=null}return n.prototype.parse=function(n,t){var f,i,c,s,h,e,o;t=t||{};f=hsr(n);this._defsUsePending=[];i=new p;this._root=i;var l=[],a=f.getAttribute("viewBox")||"",r=parseFloat(f.getAttribute("width")||t.width),u=parseFloat(f.getAttribute("height")||t.height);for(isNaN(r)&&(r=null),isNaN(u)&&(u=null),wu(f,i,null,!0,!1),h=f.firstChild;h;)this._parseNode(h,i,l,null,!1,!1),h=h.nextSibling;return(function(n,t){for(var r,i=0;i<t.length;i++)r=t[i],r[0].style[r[1]]=n[r[2]]}(this._defs,this._defsUsePending),this._defsUsePending=[],a)&&(e=got(a),e.length>=4&&(c={x:parseFloat(e[0]||0),y:parseFloat(e[1]||0),width:parseFloat(e[2]),height:parseFloat(e[3])})),c&&null!=r&&null!=u&&(s=nhr(c,{x:0,y:0,width:r,height:u}),!t.ignoreViewBox)&&(o=i,(i=new p).add(o),o.scaleX=o.scaleY=s.scale,o.x=s.x,o.y=s.y),t.ignoreRootClip||null==r||null==u||i.setClipPath(new ot({shape:{x:0,y:0,width:r,height:u}})),{root:i,width:r,height:u,viewBoxRect:c,viewBoxTransform:s,named:l}},n.prototype._parseNode=function(n,t,i,r,u,f){var o,e=n.nodeName.toLowerCase(),p=r,c,l,a,v,w,y,s;if(("defs"===e&&(u=!0),"text"===e&&(f=!0),"defs"===e||"switch"===e)?o=t:(u||(c=knt[e],c&&h(knt,e)&&(o=c.call(this,n,t),l=n.getAttribute("name"),l?(a={name:l,namedFrom:null,svgNodeTagLower:e,el:o},i.push(a),"g"===e&&(p=a)):r&&i.push({name:r.name,namedFrom:r,svgNodeTagLower:e,el:o}),t.add(o))),v=asr[e],v&&h(asr,e)&&(w=v.call(this,n),y=n.getAttribute("id"),y&&(this._defs[y]=w))),o&&o.isGroup)for(s=n.firstChild;s;)1===s.nodeType?this._parseNode(s,o,i,p,u,f):3===s.nodeType&&f&&this._parseText(s,o),s=s.nextSibling},n.prototype._parseText=function(n,t){var r=new ey({style:{text:n.textContent},silent:!0,x:this._textX||0,y:this._textY||0}),i,u,f,e;return wf(t,r),wu(n,r,this._defsUsePending,!1,!1),function(n,t){var o=t.__selfStyle,i,r,f,u,e;o&&(i=o.textBaseline,r=i,i&&"auto"!==i?"baseline"===i?r="alphabetic":"before-edge"===i||"text-before-edge"===i?r="top":"after-edge"===i||"text-after-edge"===i?r="bottom":"central"!==i&&"mathematical"!==i||(r="middle"):r="alphabetic",n.style.textBaseline=r);f=t.__inheritedStyle;f&&(u=f.textAlign,e=u,u&&("middle"===u&&(e="center"),n.style.textAlign=e))}(r,t),i=r.style,u=i.fontSize,u&&u<9&&(i.fontSize=9,r.scaleX*=u/9,r.scaleY*=u/9),f=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" "),i.font=f,e=r.getBoundingRect(),this._textX+=e.width,t.add(r),r},n.internalField=void(knt={g:function(n,t){var i=new p;return wf(t,i),wu(n,i,this._defsUsePending,!1,!1),i},rect:function(n,t){var i=new ot;return wf(t,i),wu(n,i,this._defsUsePending,!1,!1),i.setShape({x:parseFloat(n.getAttribute("x")||"0"),y:parseFloat(n.getAttribute("y")||"0"),width:parseFloat(n.getAttribute("width")||"0"),height:parseFloat(n.getAttribute("height")||"0")}),i.silent=!0,i},circle:function(n,t){var i=new vu;return wf(t,i),wu(n,i,this._defsUsePending,!1,!1),i.setShape({cx:parseFloat(n.getAttribute("cx")||"0"),cy:parseFloat(n.getAttribute("cy")||"0"),r:parseFloat(n.getAttribute("r")||"0")}),i.silent=!0,i},line:function(n,t){var i=new vi;return wf(t,i),wu(n,i,this._defsUsePending,!1,!1),i.setShape({x1:parseFloat(n.getAttribute("x1")||"0"),y1:parseFloat(n.getAttribute("y1")||"0"),x2:parseFloat(n.getAttribute("x2")||"0"),y2:parseFloat(n.getAttribute("y2")||"0")}),i.silent=!0,i},ellipse:function(n,t){var i=new hy;return wf(t,i),wu(n,i,this._defsUsePending,!1,!1),i.setShape({cx:parseFloat(n.getAttribute("cx")||"0"),cy:parseFloat(n.getAttribute("cy")||"0"),rx:parseFloat(n.getAttribute("rx")||"0"),ry:parseFloat(n.getAttribute("ry")||"0")}),i.silent=!0,i},polygon:function(n,t){var r,u=n.getAttribute("points"),i;return u&&(r=psr(u)),i=new fr({shape:{points:r||[]},silent:!0}),wf(t,i),wu(n,i,this._defsUsePending,!1,!1),i},polyline:function(n,t){var r,u=n.getAttribute("points"),i;return u&&(r=psr(u)),i=new er({shape:{points:r||[]},silent:!0}),wf(t,i),wu(n,i,this._defsUsePending,!1,!1),i},image:function(n,t){var i=new wi;return wf(t,i),wu(n,i,this._defsUsePending,!1,!1),i.setStyle({image:n.getAttribute("xlink:href")||n.getAttribute("href"),x:+n.getAttribute("x"),y:+n.getAttribute("y"),width:+n.getAttribute("width"),height:+n.getAttribute("height")}),i.silent=!0,i},text:function(n,t){var r=n.getAttribute("x")||"0",u=n.getAttribute("y")||"0",f=n.getAttribute("dx")||"0",e=n.getAttribute("dy")||"0",i;return this._textX=parseFloat(r)+parseFloat(f),this._textY=parseFloat(u)+parseFloat(e),i=new p,wf(t,i),wu(n,i,this._defsUsePending,!1,!0),i},tspan:function(n,t){var r=n.getAttribute("x"),u=n.getAttribute("y");null!=r&&(this._textX=parseFloat(r));null!=u&&(this._textY=parseFloat(u));var f=n.getAttribute("dx")||"0",e=n.getAttribute("dy")||"0",i=new p;return wf(t,i),wu(n,i,this._defsUsePending,!1,!0),this._textX+=parseFloat(f),this._textY+=parseFloat(e),i},path:function(n,t){var i=fyi(n.getAttribute("d")||"");return wf(t,i),wu(n,i,this._defsUsePending,!1,!1),i.silent=!0,i}}),n}(),asr={lineargradient:function(n){var i=parseInt(n.getAttribute("x1")||"0",10),r=parseInt(n.getAttribute("y1")||"0",10),u=parseInt(n.getAttribute("x2")||"10",10),f=parseInt(n.getAttribute("y2")||"0",10),t=new ay(i,r,u,f);return vsr(n,t),ysr(n,t),t},radialgradient:function(n){var i=parseInt(n.getAttribute("cx")||"0",10),r=parseInt(n.getAttribute("cy")||"0",10),u=parseInt(n.getAttribute("r")||"0",10),t=new ept(i,r,u);return vsr(n,t),ysr(n,t),t}};wsr=/^url\(\s*#(.*?)\)/;ksr=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;var pyu=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,dnt=Math.PI/180,dsr=/([^\s:;]+)\s*:\s*([^:;]+)/g;thr=c(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]);ihr=function(){function n(n,t){this.type="geoSVG";this._usedGraphicMap=c();this._freedGraphics=[];this._mapName=n;this._parsedXML=hsr(t)}return n.prototype.load=function(){var n=this._firstGraphic;if(!n){n=this._firstGraphic=this._buildGraphic(this._parsedXML);this._freedGraphics.push(n);this._boundingRect=this._firstGraphic.boundingRect.clone();var i=function(n){var i=[],r=c();return t(n,function(n){if(null==n.namedFrom){var t=new hlu(n.name,n.el);i.push(t);r.set(n.name,t)}}),{regions:i,regionsMap:r}}(n.named),r=i.regions,u=i.regionsMap;this._regions=r;this._regionsMap=u}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},n.prototype._buildGraphic=function(n){var e,r,y,w,o,h,a,v;try{sr(null!=(r=(e=n&&(y=n,w={ignoreViewBox:!0,ignoreRootClip:!0},(new yyu).parse(y,w))||{}).root))}catch(n){throw new Error("Invalid svg format\n"+n.message);}o=new p;o.add(r);o.isGeoSVGGraphicRoot=!0;var b=e.width,k=e.height,i=e.viewBoxRect,s=this._boundingRect;if(!s){var u=void 0,f=void 0,c=void 0,l=void 0;(null!=b?(u=0,c=b):i&&(u=i.x,c=i.width),null!=k?(f=0,l=k):i&&(f=i.y,l=i.height),null==u||null==f)&&(h=r.getBoundingRect(),null==u&&(u=h.x,c=h.width),null==f&&(f=h.y,l=h.height));s=this._boundingRect=new nt(u,f,c,l)}return i&&(a=nhr(i,s),r.scaleX=r.scaleY=a.scale,r.x=a.x,r.y=a.y),o.setClipPath(new ot({shape:s.plain()})),v=[],t(e.named,function(n){var t;null!=thr.get(n.svgNodeTagLower)&&(v.push(n),(t=n.el).silent=!1,t.isGroup&&t.traverse(function(n){n.silent=!1}))}),{root:o,boundingRect:s,named:v}},n.prototype.useGraphic=function(n){var i=this._usedGraphicMap,t=i.get(n);return t||(t=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),i.set(n,t),t)},n.prototype.freeGraphic=function(n){var t=this._usedGraphicMap,i=t.get(n);i&&(t.removeKey(n),this._freedGraphics.push(i))},n}();for(var gnt=[126,25],rhr="南海诸岛",da=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],ga=0;ga<da.length;ga++)for(nv=0;nv<da[ga].length;nv++)da[ga][nv][0]/=10.5,da[ga][nv][1]/=-14,da[ga][nv][0]+=gnt[0],da[ga][nv][1]+=gnt[1];var wyu={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]},byu=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]],kyu=function(){function n(n,t,i){var r;this.type="geoJSON";this._parsedMap=c();this._mapName=n;this._specialAreas=i;this._geoJSON=o(r=t)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}return n.prototype.load=function(n,i){var r,u,f,e;return i=i||"name",r=this._parsedMap.get(i),r||(u=this._parseToRegions(i),r=this._parsedMap.set(i,{regions:u,boundingRect:dyu(u)})),f=c(),e=[],t(r.regions,function(t){var i=t.name;n&&h(n,i)&&(t=t.cloneShallow(i=n[i]));e.push(t);f.set(i,t)}),{regions:e,boundingRect:r.boundingRect||new nt(0,0,0,0),regionsMap:f}},n.prototype._parseToRegions=function(n){var i,r=this._mapName,u=this._geoJSON;try{i=u?bdt(u,n):[]}catch(n){throw new Error("Invalid geoJson format\n"+n.message);}return function(n,t){if("china"===n){for(var i=0;i<t.length;i++)if(t[i].name===rhr)return;t.push(new gir(rhr,f(da,function(n){return{type:"polygon",exterior:n}}),gnt))}}(r,i),t(i,function(n){var i=n.name,t;!function(n,t){var i,r;"china"===n&&(i=wyu[t.name],i&&(r=t.getCenter(),r[0]+=i[0]/10.5,r[1]+=-i[1]/14,t.setCenter(r)))}(r,n),function(n,t){"china"===n&&"台湾"===t.name&&t.geometries.push({type:"polygon",exterior:byu[0]})}(r,n);t=this._specialAreas&&this._specialAreas[i];t&&n.transformTo(t.left,t.top,t.width,t.height)},this),i},n.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},n}();var hn=c(),gyu=function(n,t,i){var r,u;t.svg?(r=new ihr(n,t.svg),hn.set(n,r)):(u=t.geoJson||t.geoJSON,u&&!t.features?i=t.specialAreas:u=t,r=new kyu(n,u,i),hn.set(n,r))},nst=function(n){return hn.get(n)},npu=function(n){var t=hn.get(n);return t&&"geoJSON"===t.type&&t.getMapForUser()},nti=function(n,t,i){var r=hn.get(n);if(r)return r.load(t,i)},tti=["rect","circle","line","ellipse","polygon","polyline","path"],tpu=c(tti),ipu=c(tti.concat(["g"])),rpu=c(tti.concat(["g"])),uhr=ct();iti=function(){function n(n){var t=new p;this.uid=dy("ec_map_draw");this._controller=new sw(n.getZr());this._controllerHost={target:t};this.group=t;t.add(this._regionsGroup=new p);t.add(this._svgGroup=new p)}return n.prototype.draw=function(n,t,i,r,u){var c="geo"===n.mainType,f=n.getData&&n.getData(),v,h;c&&t.eachComponent({mainType:"series",subType:"map"},function(t){f||t.getHostGeoModel()!==n||(f=t.getData())});var s=n.coordinateSystem,l=this._regionsGroup,e=this.group,a=s.getTransformInfo(),y=a.raw,o=a.roam;!l.childAt(0)||u?(e.x=o.x,e.y=o.y,e.scaleX=o.scaleX,e.scaleY=o.scaleY,e.dirty()):lt(e,o,n);v=f&&f.getVisual("visualMeta")&&f.getVisual("visualMeta").length>0;h={api:i,geo:s,mapOrGeoModel:n,data:f,isVisualEncodedByVisualMap:v,isGeo:c,transformInfoRaw:y};"geoJSON"===s.resourceType?this._buildGeoJSON(h):"geoSVG"===s.resourceType&&this._buildSVG(h);this._updateController(n,t,i);this._updateMapSelectHandler(n,l,i,r)},n.prototype._buildGeoJSON=function(n){function l(n,t){return t&&(n=t(n)),n&&[n[0]*f.scaleX+f.x,n[1]*f.scaleY+f.y]}function v(n){for(var r,f=[],e=!u&&i&&i.project,t=0;t<n.length;++t)r=l(n[t],e),r&&f.push(r);return f}function a(n){return{shape:{points:v(n)}}}var o=this._regionsGroupByName=c(),s=c(),h=this._regionsGroup,f=n.transformInfoRaw,r=n.mapOrGeoModel,e=n.data,i=n.geo.projection,u=i&&i.stream;h.removeAll();t(n.geo.regions,function(f){function nt(i,u){if(i.length){var f=new tut({culling:!0,segmentIgnoreThreshold:1,shape:{paths:i}});y.add(f);ehr(n,f,v,w);ohr(n,f,c,w,r,v,g);u&&(fhr(f),t(f.states,fhr))}}var c=f.name,y=o.get(c),d=s.get(c)||{},v=d.dataIdx,w=d.regionModel,b,k,g;y||(y=o.set(c,new p),h.add(y),v=e?e.indexOfName(c):null,w=n.isGeo?r.getRegionModel(c):e?e.getItemModel(v):null,s.set(c,{dataIdx:v,regionModel:w}));b=[];k=[];t(f.geometries,function(n){var i,r;"polygon"===n.type?(i=[n.exterior].concat(n.interiors||[]),u&&(i=lhr(i,u)),t(i,function(n){b.push(new fr(a(n)))})):(r=n.points,u&&(r=lhr(r,u,!0)),t(r,function(n){k.push(new er(a(n)))}))});g=l(f.getCenter(),i&&i.project);nt(b);nt(k,!0)});o.each(function(t,i){var f=s.get(i),e=f.dataIdx,u=f.regionModel;shr(n,t,i,u,r,e);hhr(n,t,i,u,r);chr(n,t,i,u,r)},this)},n.prototype._buildSVG=function(n){var f=n.geo.map,i=n.transformInfoRaw,r,u;this._svgGroup.x=i.x;this._svgGroup.y=i.y;this._svgGroup.scaleX=i.scaleX;this._svgGroup.scaleY=i.scaleY;this._svgResourceChanged(f)&&(this._freeSVG(),this._useSVG(f));r=this._svgDispatcherMap=c();u=!1;t(this._svgGraphicRecord.named,function(t){var f=t.name,e=n.mapOrGeoModel,c=n.data,s=t.svgNodeTagLower,i=t.el,h=c?c.indexOfName(f):null,o=e.getRegionModel(f);(null!=tpu.get(s)&&i instanceof ef&&ehr(n,i,h,o),i instanceof ef&&(i.culling=!0),i.z2EmphasisLift=0,t.namedFrom)||(null!=rpu.get(s)&&ohr(n,i,f,o,e,h,null),shr(n,i,f,o,e,h),hhr(n,i,f,o,e),null!=ipu.get(s)&&("self"===chr(n,i,f,o,e)&&(u=!0),(r.get(f)||r.set(f,[])).push(i)))},this);this._enableBlurEntireSVG(u,n)},n.prototype._enableBlurEntireSVG=function(n,t){if(n&&t.isGeo){var i=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle().opacity;this._svgGraphicRecord.root.traverse(function(n){if(!n.isGroup){bl(n);var t=n.ensureState("blur").style||{};null==t.opacity&&null!=i&&(t.opacity=i);n.ensureState("emphasis")}})}},n.prototype.remove=function(){this._regionsGroup.removeAll();this._regionsGroupByName=null;this._svgGroup.removeAll();this._freeSVG();this._controller.dispose();this._controllerHost=null},n.prototype.findHighDownDispatchers=function(n,t){var i,r,u;if(null==n)return[];if(i=t.coordinateSystem,"geoJSON"===i.resourceType){if(r=this._regionsGroupByName,r)return u=r.get(n),u?[u]:[]}else if("geoSVG"===i.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(n)||[]},n.prototype._svgResourceChanged=function(n){return this._svgMapName!==n},n.prototype._useSVG=function(n){var t=nst(n),i;t&&"geoSVG"===t.type&&(i=t.useGraphic(this.uid),this._svgGroup.add(i.root),this._svgGraphicRecord=i,this._svgMapName=n)},n.prototype._freeSVG=function(){var t=this._svgMapName,n;null!=t&&(n=nst(t),n&&"geoSVG"===n.type&&n.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null)},n.prototype._updateController=function(n,t,i){function s(){var t={type:"geoRoam",componentType:e};return t[e+"Id"]=n.id,t}var o=n.coordinateSystem,u=this._controller,f=this._controllerHost,e;f.zoomLimit=n.get("scaleLimit");f.zoom=o.getZoom();u.enable(n.get("roam")||!1);e=n.mainType;u.off("pan").on("pan",function(n){this._mouseDownFlag=!1;wnt(f,n.dx,n.dy);i.dispatchAction(r(s(),{dx:n.dx,dy:n.dy,animation:{duration:0}}))},this);u.off("zoom").on("zoom",function(n){this._mouseDownFlag=!1;bnt(f,n.scale,n.originX,n.originY);i.dispatchAction(r(s(),{zoom:n.scale,originX:n.originX,originY:n.originY,animation:{duration:0}}))},this);u.setPointerChecker(function(t,r,u){return o.containPoint([r,u])&&!bot(t,i,n)})},n.prototype.resetForLabelLayout=function(){this.group.traverse(function(n){var t=n.getTextContent();t&&(t.ignore=uhr(t).ignore)})},n.prototype._updateMapSelectHandler=function(n,t){var i=this;t.off("mousedown");t.off("click");n.get("selectedMode")&&(t.on("mousedown",function(){i._mouseDownFlag=!0}),t.on("click",function(){i._mouseDownFlag&&(i._mouseDownFlag=!1)}))},n}();ahr=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i}return i(t,n),t.prototype.render=function(n,t,i,r){var f,u;r&&"mapToggleSelect"===r.type&&r.from===this.uid||(f=this.group,(f.removeAll(),n.getHostGeoModel())||((this._mapDraw&&r&&"geoRoam"===r.type&&this._mapDraw.resetForLabelLayout(),r&&"geoRoam"===r.type&&"series"===r.componentType&&r.seriesId===n.id)?(u=this._mapDraw)&&f.add(u.group):n.needsDrawMap?(u=this._mapDraw||new iti(i),f.add(u.group),u.draw(n,t,i,this,r),this._mapDraw=u):(this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null),n.get("showLegendSymbol")&&t.getComponent("legend")&&this._renderSymbols(n,t,i)))},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove();this._mapDraw=null;this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove();this._mapDraw=null},t.prototype._renderSymbols=function(n){var t=n.originalData,i=this.group;t.each(t.mapDimension("value"),function(r,u){var f;if(!isNaN(r)&&(f=t.getItemLayout(u),f&&f.point)){var s=f.point,o=f.offset,e=new vu({style:{fill:n.getData().getVisual("style").fill},shape:{cx:s[0]+9*o,cy:s[1],r:3},silent:!0,z2:8+(o?0:11)});if(!o){var h=n.mainSeries.getData(),c=t.getName(u),l=h.indexOfName(c),a=t.getItemModel(u),v=a.getModel("label"),y=h.getItemGraphicEl(l);or(e,bi(a),{labelFetcher:{getFormattedLabel:function(t,i){return n.getFormattedLabel(l,i)}},defaultText:c});e.disableLabelAnimation=!0;v.get("position")||e.setTextConfig({position:"bottom"});y.onHoverStateChange=function(n){krt(e,n)}}i.add(e)}})},t.type="map",t}(wt);vhr=function(n){function r(){var t=null!==n&&n.apply(this,arguments)||this;return t.type=r.type,t.needsDrawMap=!1,t.seriesGroup=[],t.getTooltipPosition=function(n){if(null!=n){var r=this.getData().getName(n),t=this.coordinateSystem,i=t.getRegion(r);return i&&t.dataToPoint(i.getCenter())}},t}return i(r,n),r.prototype.getInitialData=function(){for(var f,n=ew(this,{coordDimensions:["value"],encodeDefaulter:w(cwt,this)}),r=c(),u=[],i=0,e=n.count();i<e;i++)f=n.getName(i),r.set(f,!0);return t(nti(this.getMapType(),this.option.nameMap,this.option.nameProperty).regions,function(n){var t=n.name;r.get(t)||u.push(t)}),n.appendValues([],u),n},r.prototype.getHostGeoModel=function(){var n=this.option.geoIndex;return null!=n?this.ecModel.getComponent("geo",n):null},r.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},r.prototype.getRawValue=function(n){var t=this.getData();return t.get(t.mapDimension("value"),n)},r.prototype.getRegionModel=function(n){var t=this.getData();return t.getItemModel(t.indexOfName(n))},r.prototype.formatTooltip=function(n){for(var e,o,u=this.getData(),s=this.getRawValue(n),f=u.getName(n),i=this.seriesGroup,r=[],t=0;t<i.length;t++)e=i[t].originalData.indexOfName(f),o=u.mapDimension("value"),isNaN(i[t].originalData.get(o,e))||r.push(i[t].name);return ki("section",{header:r.join(", "),noHeader:!r.length,blocks:[ki("nameValue",{name:f,value:s})]})},r.prototype.setZoom=function(n){this.option.zoom=n},r.prototype.setCenter=function(n){this.option.center=n},r.prototype.getLegendIcon=function(n){var i=n.icon||"roundRect",t=si(i,0,0,n.itemWidth,n.itemHeight,n.itemStyle.fill);return t.setStyle(n.itemStyle),t.style.stroke="none",i.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t},r.type="series.map",r.dependencies=["geo"],r.layoutMode="box",r.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},r}(bt);rti=nr;hw=function(n){function t(t){var i=n.call(this)||this;return i.type="view",i.dimensions=["x","y"],i._roamTransformable=new us,i._rawTransformable=new us,i.name=t,i}return i(t,n),t.prototype.setBoundingRect=function(n,t,i,r){return this._rect=new nt(n,t,i,r),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(n,t,i,r){this._transformTo(n,t,i,r);this._viewRect=new nt(n,t,i,r)},t.prototype._transformTo=function(n,t,i,r){var e=this.getBoundingRect(),u=this._rawTransformable,f;u.transform=e.calculateTransform(new nt(n,t,i,r));f=u.parent;u.parent=null;u.decomposeTransform();u.parent=f;this._updateTransform()},t.prototype.setCenter=function(n,t){n&&(this._center=[e(n[0],t.getWidth()),e(n[1],t.getHeight())],this._updateCenterAndZoom())},t.prototype.setZoom=function(n){n=n||1;var t=this.zoomLimit;t&&(null!=t.max&&(n=Math.min(t.max,n)),null!=t.min&&(n=Math.max(t.min,n)));this._zoom=n;this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var n=this.getBoundingRect();return[n.x+n.width/2,n.y+n.height/2]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var r=this._rawTransformable.getLocalTransform(),n=this._roamTransformable,i=this.getDefaultCenter(),t=this.getCenter(),u=this.getZoom();t=nr([],t,r);i=nr([],i,r);n.originX=t[0];n.originY=t[1];n.x=i[0]-t[0];n.y=i[1]-t[1];n.scaleX=n.scaleY=u;this._updateTransform()},t.prototype._updateTransform=function(){var t=this._roamTransformable,n=this._rawTransformable;n.parent=t;t.updateTransform();n.updateTransform();iit(this.transform||(this.transform=[]),n.transform||[1,0,0,1,0,0]);this._rawTransform=n.getLocalTransform();this.invTransform=this.invTransform||[];wc(this.invTransform,this.transform);this.decomposeTransform()},t.prototype.getTransformInfo=function(){var t=this._rawTransformable,i=this._roamTransformable,n=new us;return n.transform=i.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var n=this.getBoundingRect().clone();return n.applyTransform(this.transform),n},t.prototype.dataToPoint=function(n,t,i){var r=t?this._rawTransform:this.transform;return i=i||[],r?rti(i,n,r):hr(i,n)},t.prototype.pointToData=function(n){var t=this.invTransform;return t?rti([],n,t):[n[0],n[1]]},t.prototype.convertToPixel=function(n,t,i){var r=yhr(t);return r===this?r.dataToPoint(i):null},t.prototype.convertFromPixel=function(n,t,i){var r=yhr(t);return r===this?r.pointToData(i):null},t.prototype.containPoint=function(n){return this.getViewRectAfterRoam().contain(n[0],n[1])},t.dimensions=["x","y"],t}(us);var epu={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},phr=["lng","lat"],uti=function(n){function t(t,i,r){var u=n.call(this,t)||this,s,l;u.dimensions=phr;u.type="geo";u._nameCoordMap=c();u.map=i;var f,e=r.projection,o=nti(i,r.nameMap,r.nameProperty),h=nst(i),a=(u.resourceType=h?h.type:null,u.regions=o.regions),v=epu[h.type];if(u._regionsMap=o.regionsMap,u.regions=o.regions,u.projection=e,e)for(s=0;s<a.length;s++)l=a[s].getBoundingRect(e),(f=f||l.clone()).union(l);else f=o.boundingRect;return u.setBoundingRect(f.x,f.y,f.width,f.height),u.aspectScale=e?1:d(r.aspectScale,v.aspectScale),u._invertLongitute=!e&&v.invertLongitute,u}return i(t,n),t.prototype._transformTo=function(n,t,i,r){var f=this.getBoundingRect(),e=this._invertLongitute,u,o;f=f.clone();e&&(f.y=-f.y-f.height);u=this._rawTransformable;u.transform=f.calculateTransform(new nt(n,t,i,r));o=u.parent;u.parent=null;u.decomposeTransform();u.parent=o;e&&(u.scaleY=-u.scaleY);this._updateTransform()},t.prototype.getRegion=function(n){return this._regionsMap.get(n)},t.prototype.getRegionByCoord=function(n){for(var r,i=this.regions,t=0;t<i.length;t++)if(r=i[t],"geoJSON"===r.type&&r.contain(n))return i[t]},t.prototype.addGeoCoord=function(n,t){this._nameCoordMap.set(n,t)},t.prototype.getGeoCoord=function(n){var t=this._regionsMap.get(n);return this._nameCoordMap.get(n)||t&&t.getCenter()},t.prototype.dataToPoint=function(n,t,i){if(o(n)&&(n=this.getGeoCoord(n)),n){var r=this.projection;return r&&(n=r.project(n)),n&&this.projectedToPoint(n,t,i)}},t.prototype.pointToData=function(n){var t=this.projection;return t&&(n=t.unproject(n)),n&&this.pointToProjected(n)},t.prototype.pointToProjected=function(t){return n.prototype.pointToData.call(this,t)},t.prototype.projectedToPoint=function(t,i,r){return n.prototype.dataToPoint.call(this,t,i,r)},t.prototype.convertToPixel=function(n,t,i){var r=whr(t);return r===this?r.dataToPoint(i):null},t.prototype.convertFromPixel=function(n,t,i){var r=whr(t);return r===this?r.pointToData(i):null},t}(hw);fi(uti,hw);var opu=function(){function n(){this.dimensions=phr}return n.prototype.create=function(n,i){function o(n){return{nameProperty:n.get("nameProperty"),aspectScale:n.get("aspectScale"),projection:n.get("projection")}}var e=[],u;return n.eachComponent("geo",function(n,t){var f=n.get("map"),u=new uti(f+t,f,r({nameMap:n.get("nameMap")},o(n)));u.zoomLimit=n.get("scaleLimit");e.push(u);n.coordinateSystem=u;u.model=n;u.resize=bhr;u.resize(n,i)}),n.eachSeries(function(n){if("geo"===n.get("coordinateSystem")){var t=n.get("geoIndex")||0;n.coordinateSystem=e[t]}}),u={},n.eachSeriesByType("map",function(n){if(!n.getHostGeoModel()){var t=n.getMapType();u[t]=u[t]||[];u[t].push(n)}}),t(u,function(n,u){var h=f(n,function(n){return n.get("nameMap")}),s=new uti(u,u,r({nameMap:ptt(h)},o(n[0])));s.zoomLimit=yi.apply(null,f(n,function(n){return n.get("scaleLimit")}));e.push(s);s.resize=bhr;s.resize(n[0],i);t(n,function(n){n.coordinateSystem=s,function(n,i){t(i.get("geoCoord"),function(t,i){n.addGeoCoord(i,t)})}(s,n)})}),e},n.prototype.getFilledRegions=function(n,i,r,u){for(var f=(n||[]).slice(),o=c(),e=0;e<f.length;e++)o.set(f[e].name,f[e]);return t(nti(i,r,u).regions,function(n){var t=n.name;o.get(t)||f.push({name:t})}),f},n}(),khr=new opu,spu=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i}return i(t,n),t.prototype.init=function(n,t,i){var u=nst(n.map),r;u&&"geoJSON"===u.type&&(r=n.itemStyle=n.itemStyle||{},"color"in r||(r.color="#eee"));this.mergeDefaultAndTheme(n,i);ul(n,"label",["show"])},t.prototype.optionUpdated=function(){var i=this,n=this.option,t;n.regions=khr.getFilledRegions(n.regions,n.map,n.nameMap,n.nameProperty);t={};this._optionModelMap=du(n.regions||[],function(n,r){var u=r.name;return u&&(n.set(u,new at(r,i,i.ecModel)),r.selected&&(t[u]=!0)),n},c());n.selectedMap||(n.selectedMap=t)},t.prototype.getRegionModel=function(n){return this._optionModelMap.get(n)||new at(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(n,t){var r=this.getRegionModel(n),i="normal"===t?r.get(["label","formatter"]):r.get(["emphasis","label","formatter"]),u={name:n};return l(i)?(u.status=t,i(u)):o(i)?i.replace("{a}",null!=n?n:""):void 0},t.prototype.setZoom=function(n){this.option.zoom=n},t.prototype.setCenter=function(n){this.option.center=n},t.prototype.select=function(n){var t=this.option,i=t.selectedMode;i&&("multiple"!==i&&(t.selectedMap=null),(t.selectedMap||(t.selectedMap={}))[n]=!0)},t.prototype.unSelect=function(n){var t=this.option.selectedMap;t&&(t[n]=!1)},t.prototype.toggleSelected=function(n){this[this.isSelected(n)?"unSelect":"select"](n)},t.prototype.isSelected=function(n){var t=this.option.selectedMap;return!(!t||!t[n])},t.type="geo",t.layoutMode="box",t.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},t}(rt);ghr=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i.focusBlurEnabled=!0,i}return i(t,n),t.prototype.init=function(n,t){this._api=t},t.prototype.render=function(n,t,i,r){if(this._model=n,!n.get("show"))return this._mapDraw&&this._mapDraw.remove(),void(this._mapDraw=null);this._mapDraw||(this._mapDraw=new iti(i));var u=this._mapDraw;u.draw(n,t,i,this,r);u.group.on("click",this._handleRegionClick,this);u.group.silent=n.get("silent");this.group.add(u.group);this.updateSelectStatus(n,t,i)},t.prototype._handleRegionClick=function(n){var t;ea(n.target,function(n){return null!=(t=b(n).eventData)},!0);t&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:t.name})},t.prototype.updateSelectStatus=function(n,t,i){var r=this;this._mapDraw.group.traverse(function(n){var t=b(n).eventData;if(t)return r._model.isSelected(t.name)?i.enterSelect(n):i.leaveSelect(n),!0})},t.prototype.findHighDownDispatchers=function(n){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(n,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(ni);var ppu=function(){this.parentPoint=[];this.childPoints=[]},wpu=function(n){function t(t){return n.call(this,t)||this}return i(t,n),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new ppu},t.prototype.buildPath=function(n,t){var o=t.childPoints,a=o.length,u=t.parentPoint,f=o[0],s=o[a-1],c,l;if(1===a)return n.moveTo(u[0],u[1]),void n.lineTo(f[0],f[1]);var v=t.orient,r="TB"===v||"BT"===v?0:1,h=1-r,y=e(t.forkPosition,1),i=[];for(i[r]=u[r],i[h]=u[h]+(s[h]-u[h])*y,n.moveTo(u[0],u[1]),n.lineTo(i[0],i[1]),n.moveTo(f[0],f[1]),i[r]=f[r],n.lineTo(i[0],i[1]),i[r]=s[r],n.lineTo(i[0],i[1]),n.lineTo(s[0],s[1]),c=1;c<a-1;c++)l=o[c],n.moveTo(l[0],l[1]),i[r]=l[r],n.lineTo(i[0],i[1])},t}(ut),bpu=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i._mainGroup=new p,i}return i(t,n),t.prototype.init=function(n,t){this._controller=new sw(t.getZr());this._controllerHost={target:this.group};this.group.add(this._mainGroup)},t.prototype.render=function(n,t,i){var u=n.getData(),f=n.layoutInfo,r=this._mainGroup,e;"radial"===n.get("layout")?(r.x=f.x+f.width/2,r.y=f.y+f.height/2):(r.x=f.x,r.y=f.y);this._updateViewCoordSys(n,i);this._updateController(n,t,i);e=this._data;u.diff(e).add(function(t){icr(u,t)&&rcr(u,t,null,r,n)}).update(function(t,i){var f=e.getItemGraphicEl(i);icr(u,t)?rcr(u,t,f,r,n):f&&ecr(e,i,f,r,n)}).remove(function(t){var i=e.getItemGraphicEl(t);i&&ecr(e,t,i,r,n)}).execute();this._nodeScaleRatio=n.get("nodeScaleRatio");this._updateNodeAndLinkScale(n);!0===n.get("expandAndCollapse")&&u.eachItemGraphicEl(function(t,r){t.off("click").on("click",function(){i.dispatchAction({type:"treeExpandAndCollapse",seriesId:n.id,dataIndex:r})})});this._data=u},t.prototype._updateViewCoordSys=function(n,t){var o=n.getData(),s=[],i,r,f,e,u;o.each(function(n){var t=o.getItemLayout(n);!t||isNaN(t.x)||isNaN(t.y)||s.push([+t.x,+t.y])});i=[];r=[];vrt(s,i,r);f=this._min;e=this._max;r[0]-i[0]==0&&(i[0]=f?f[0]:i[0]-1,r[0]=e?e[0]:r[0]+1);r[1]-i[1]==0&&(i[1]=f?f[1]:i[1]-1,r[1]=e?e[1]:r[1]+1);u=n.coordinateSystem=new hw;u.zoomLimit=n.get("scaleLimit");u.setBoundingRect(i[0],i[1],r[0]-i[0],r[1]-i[1]);u.setCenter(n.get("center"),t);u.setZoom(n.get("zoom"));this.group.attr({x:u.x,y:u.y,scaleX:u.scaleX,scaleY:u.scaleY});this._min=i;this._max=r},t.prototype._updateController=function(n,t,i){var e=this,u=this._controller,r=this._controllerHost,f=this.group;u.setPointerChecker(function(t,r,u){var e=f.getBoundingRect();return e.applyTransform(f.transform),e.contain(r,u)&&!bot(t,i,n)});u.enable(n.get("roam"));r.zoomLimit=n.get("scaleLimit");r.zoom=n.coordinateSystem.getZoom();u.off("pan").off("zoom").on("pan",function(t){wnt(r,t.dx,t.dy);i.dispatchAction({seriesId:n.id,type:"treeRoam",dx:t.dx,dy:t.dy})}).on("zoom",function(t){bnt(r,t.scale,t.originX,t.originY);i.dispatchAction({seriesId:n.id,type:"treeRoam",zoom:t.scale,originX:t.originX,originY:t.originY});e._updateNodeAndLinkScale(n);i.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(n){var t=n.getData(),i=this._getNodeGlobalScale(n);t.eachItemGraphicEl(function(n){n.setSymbolScale(i)})},t.prototype._getNodeGlobalScale=function(n){var t=n.coordinateSystem,i,r;return"view"!==t.type?1:(i=this._nodeScaleRatio,r=t.scaleX||1,((t.getZoom()-1)*i+1)/r)},t.prototype.dispose=function(){this._controller&&this._controller.dispose();this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll();this._data=null},t.type="tree",t}(wt);bu=ct();hcr=function(){function n(n,t){this.depth=0;this.height=0;this.dataIndex=-1;this.children=[];this.viewChildren=[];this.isExpand=!1;this.name=n||"";this.hostTree=t}return n.prototype.isRemoved=function(){return this.dataIndex<0},n.prototype.eachNode=function(n,t,i){var e,u,f,r;for(l(n)&&(i=t,t=n,n=null),o(n=n||{})&&(n={order:n}),u=n.order||"preorder",f=this[n.attr||"children"],"preorder"===u&&(e=t.call(i,this)),r=0;!e&&r<f.length;r++)f[r].eachNode(n,t,i);"postorder"===u&&t.call(i,this)},n.prototype.updateDepthAndHeight=function(n){var r=0,t,i;for(this.depth=n,t=0;t<this.children.length;t++)i=this.children[t],i.updateDepthAndHeight(n+1),i.height>r&&(r=i.height);this.height=r+1},n.prototype.getNodeById=function(n){var i;if(this.getId()===n)return this;for(var t=0,r=this.children,u=r.length;t<u;t++)if(i=r[t].getNodeById(n),i)return i},n.prototype.contains=function(n){var i;if(n===this)return!0;for(var t=0,r=this.children,u=r.length;t<u;t++)if(i=r[t].contains(n),i)return i},n.prototype.getAncestors=function(n){for(var i=[],t=n?this:this.parentNode;t;)i.push(t),t=t.parentNode;return i.reverse(),i},n.prototype.getAncestorsIndices=function(){for(var t=[],n=this;n;)t.push(n.dataIndex),n=n.parentNode;return t.reverse(),t},n.prototype.getDescendantIndices=function(){var n=[];return this.eachNode(function(t){n.push(t.dataIndex)}),n},n.prototype.getValue=function(n){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(n||"value"),this.dataIndex)},n.prototype.setLayout=function(n,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,n,t)},n.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},n.prototype.getModel=function(n){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(n)},n.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},n.prototype.setVisual=function(n,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,n,t)},n.prototype.getVisual=function(n){return this.hostTree.data.getItemVisual(this.dataIndex,n)},n.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},n.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},n.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,n=0;n<t.length;++n)if(t[n]===this)return n;return-1}return-1},n.prototype.isAncestorOf=function(n){for(var t=n.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},n.prototype.isDescendantOf=function(n){return n!==this&&n.isAncestorOf(this)},n}();ist=function(){function n(n){this.type="tree";this._nodes=[];this.hostModel=n}return n.prototype.eachNode=function(n,t,i){this.root.eachNode(n,t,i)},n.prototype.getNodeByDataIndex=function(n){var t=this.data.getRawIndex(n);return this._nodes[t]},n.prototype.getNodeById=function(n){return this.root.getNodeById(n)},n.prototype.update=function(){for(var r=this.data,t=this._nodes,n=0,i=t.length;n<i;n++)t[n].dataIndex=-1;for(n=0,i=r.count();n<i;n++)t[r.getRawIndex(n)].dataIndex=n},n.prototype.clearLayouts=function(){this.data.clearItemLayouts()},n.createTree=function(t,i,r){var f=new n(i),o=[],s=1,h,e;return!function n(t,i){var c=t.value,r,e,h;if(s=Math.max(s,u(c)?c.length:1),o.push(t),r=new hcr(ai(t.name,""),f),i?function(n,t){var i=t.children;n.parentNode!==t&&(i.push(n),n.parentNode=t)}(r,i):f.root=r,f._nodes.push(r),e=t.children,e)for(h=0;h<e.length;h++)n(e[h],r)}(t),f.root.updateDepthAndHeight(0),h=bp(o,{coordDimensions:["value"],dimensionsCount:s}).dimensions,e=new yr(h,i),e.initData(o),r&&r(e),ocr({mainData:e,struct:f,structAttr:"tree"}),f.update(),f},n}();lcr=function(n){function t(){var t=null!==n&&n.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return i(t,n),t.prototype.getInitialData=function(n){var u={name:n.name,children:n.data},f=n.leaves||{},e=new at(f,this,this.ecModel),t=ist.createTree(u,this,function(n){n.wrapMethod("getItemModel",function(n,i){var r=t.getNodeByDataIndex(i);return r&&r.children.length&&r.isExpand||(n.parentModel=e),n})}),i=0,r;return t.eachNode("preorder",function(n){n.depth>i&&(i=n.depth)}),r=n.expandAndCollapse&&n.initialTreeDepth>=0?n.initialTreeDepth:i,t.root.eachNode("preorder",function(n){var t=n.hostTree.data.getRawDataItem(n.dataIndex);n.isExpand=t&&null!=t.collapsed?!t.collapsed:n.depth<=r}),t.data},t.prototype.getOrient=function(){var n=this.get("orient");return"horizontal"===n?n="LR":"vertical"===n&&(n="TB"),n},t.prototype.setZoom=function(n){this.option.zoom=n},t.prototype.setCenter=function(n){this.option.center=n},t.prototype.formatTooltip=function(n){for(var u=this.getData().tree,f=u.root.children[0],t=u.getNodeByDataIndex(n),i=t.getValue(),r=t.name;t&&t!==f;)r=t.parentNode.name+"."+r,t=t.parentNode;return ki("nameValue",{name:r,value:i,noValue:isNaN(i)||null==i})},t.prototype.getDataParams=function(t){var i=n.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(t);return i.treeAncestors=rst(r,this),i.collapsed=!r.isExpand,i},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(bt);lti=["treemapZoomToNode","treemapRender","treemapMove"];vcr=function(n){function u(){var t=null!==n&&n.apply(this,arguments)||this;return t.type=u.type,t.preventUsingHoverLayer=!0,t}return i(u,n),u.prototype.getInitialData=function(n,i){var e={name:n.name,children:n.data},s,u;ycr(e);var r=n.levels||[],h=this.designatedVisualItemStyle={},o=new at({itemStyle:h},this,i);return r=n.levels=function(n,i){var u,f,e=kt(i.get("color")),o=kt(i.get(["aria","decal","decals"])),r;if(e)return n=n||[],t(n,function(n){var t=new at(n),i=t.get("color"),r=t.get("decal");(t.get(["itemStyle","color"])||i&&"none"!==i)&&(u=!0);(t.get(["itemStyle","decal"])||r&&"none"!==r)&&(f=!0)}),r=n[0]||(n[0]={}),u||(r.color=e.slice()),!f&&o&&(r.decal=o.slice()),n}(r,i),s=f(r||[],function(n){return new at(n,o,i)},this),u=ist.createTree(e,this,function(n){n.wrapMethod("getItemModel",function(n,t){var i=u.getNodeByDataIndex(t),r=i?s[i.depth]:null;return n.parentModel=r||o,n})}),u.data},u.prototype.optionUpdated=function(){this.resetViewRoot()},u.prototype.formatTooltip=function(n){var t=this.getData(),i=this.getRawValue(n);return ki("nameValue",{name:t.getName(n),value:i})},u.prototype.getDataParams=function(t){var i=n.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(t);return i.treeAncestors=rst(r,this),i.treePathInfo=i.treeAncestors,i},u.prototype.setLayoutInfo=function(n){this.layoutInfo=this.layoutInfo||{};r(this.layoutInfo,n)},u.prototype.mapIdToIndex=function(n){var t=this._idIndexMap,i;return t||(t=this._idIndexMap=c(),this._idIndexMapCount=0),i=t.get(n),null==i&&t.set(n,i=this._idIndexMapCount++),i},u.prototype.getViewRoot=function(){return this._viewRoot},u.prototype.resetViewRoot=function(n){n?this._viewRoot=n:n=this._viewRoot;var t=this.getRawData().tree.root;n&&(n===t||t.contains(n))||(this._viewRoot=t)},u.prototype.enableAriaDecal=function(){acr(this)},u.type="series.treemap",u.layoutMode="box",u.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},u}(bt);pcr=function(){function n(n){this.group=new p;n.add(this.group)}return n.prototype.render=function(n,t,i,r){var u=n.getModel("breadcrumb"),e=this.group;if(e.removeAll(),u.get("show")&&i){var o=u.getModel("itemStyle"),s=u.getModel("emphasis"),h=o.getModel("textStyle"),c=s.getModel(["itemStyle","textStyle"]),f={pos:{left:u.get("left"),right:u.get("right"),top:u.get("top"),bottom:u.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:u.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(i,f,h);this._renderContent(n,f,o,s,h,c,r);nft(e,f.pos,f.box)}},n.prototype._prepare=function(n,t,i){for(var r=n;r;r=r.parentNode){var u=ai(r.getModel().get("name"),""),e=i.getTextRect(u),f=Math.max(e.width+16,t.emptyItemWidth);t.totalWidth+=f+8;t.renderList.push({node:r,text:u,width:f})}},n.prototype._renderContent=function(n,t,i,r,u,f,o){for(var h,s,nt,c,v,y,p,b,k,d,ut=0,ft=t.emptyItemWidth,ht=n.get(["breadcrumb","height"]),ct=(s=t.pos,nt=t.box,v=nt.width,y=nt.height,p=e(s.left,v),b=e(s.top,y),k=e(s.right,v),d=e(s.bottom,y),(isNaN(p)||isNaN(parseFloat(s.left)))&&(p=0),(isNaN(k)||isNaN(parseFloat(s.right)))&&(k=v),(isNaN(b)||isNaN(parseFloat(s.top)))&&(b=0),(isNaN(d)||isNaN(parseFloat(s.bottom)))&&(d=y),c=bh(c||0),{width:Math.max(k-p-c[1]-c[3],0),height:Math.max(d-b-c[0]-c[2],0)}),et=t.totalWidth,tt=t.renderList,lt=r.getModel("itemStyle").getItemStyle(),l=tt.length-1;l>=0;l--){var it=tt[l],ot=it.node,g=it.width,rt=it.text;et>ct.width&&(et-=g-ft,g=ft,rt=null);h=new fr({shape:{points:uwu(ut,0,g,ht,l===tt.length-1,0===l)},style:a(i.getItemStyle(),{lineJoin:"bevel"}),textContent:new st({style:gt(u,{text:rt})}),textConfig:{position:"inside"},z2:1e5,onclick:w(o,ot)});h.disableLabelAnimation=!0;h.getTextContent().ensureState("emphasis").style=gt(f,{text:rt});h.ensureState("emphasis").style=lt;ui(h,r.get("focus"),r.get("blurScope"),r.get("disabled"));this.group.add(h);fwu(h,n,ot);ut+=g+8}},n.prototype.remove=function(){this.group.removeAll()},n}();var ewu=function(){function n(){this._storage=[];this._elExistsMap={}}return n.prototype.add=function(n,t,i,r,u){return!this._elExistsMap[n.id]&&(this._elExistsMap[n.id]=!0,this._storage.push({el:n,target:t,duration:i,delay:r,easing:u}),!0)},n.prototype.finished=function(n){return this._finishedCallback=n,this},n.prototype.start=function(){for(var n,t=this,u=this._storage.length,r=function(){--u<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},i=0,f=this._storage.length;i<f;i++)n=this._storage[i],n.el.animateTo(n.target,{duration:n.duration,delay:n.delay,easing:n.easing,setToFinal:!0,done:r,aborted:r});return this},n}(),ati=p,wcr=ot,bcr="label",kcr="upperLabel",tv=el([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),dcr=function(n){var t=tv(n);return t.stroke=t.fill=t.lineWidth=null,t},ust=ct(),owu=function(n){function u(){var t=null!==n&&n.apply(this,arguments)||this;return t.type=u.type,t._state="ready",t._storage={nodeGroup:[],background:[],content:[]},t}return i(u,n),u.prototype.render=function(n,t,i,r){if(!(tt(t.findComponents({mainType:"series",subType:"treemap",query:r}),n)<0)){this.seriesModel=n;this.api=i;this.ecModel=t;var f=ln(r,["treemapZoomToNode","treemapRootToNode"],n),u=r&&r.type,c=n.layoutInfo,l=!this._oldTree,e=this._storage,o="treemapRootToNode"===u&&f&&e?{rootNodeGroup:e.nodeGroup[f.node.getRawIndex()],direction:r.direction}:null,s=this._giveContainerGroup(c),a=n.get("animation"),h=this._doRender(s,n,o);!a||l||u&&"treemapZoomToNode"!==u&&"treemapRootToNode"!==u?h.renderFinally():this._doAnimation(s,h,n,o);this._resetController(i);this._renderBreadcrumb(n,i,f)}},u.prototype._giveContainerGroup=function(n){var t=this._containerGroup;return t||(t=this._containerGroup=new ati,this._initEvents(t),this.group.add(t)),t.x=n.x,t.y=n.y,t},u.prototype._doRender=function(n,i,u){function a(n,t,f,e){return function(n,t,i,u,f,e,o,s,h,c){function ni(t,i,r){var s=b(i),u,f,e,a;if(s.dataIndex=o.dataIndex,s.seriesIndex=n.seriesIndex,i.setShape({x:0,y:0,width:k,height:g,r:vt}),nt)bt(i);else{i.invisible=!1;var h=o.getVisual("style"),c=h.stroke,l=dcr(rt);l.fill=c;u=tv(ut);u.fill=ut.get("borderColor");f=tv(ft);f.fill=ft.get("borderColor");e=tv(et);(e.fill=et.get("borderColor"),r)?(a=k-2*w,kt(i,c,h.opacity,{x:w,y:0,width:a,height:gt})):i.removeTextContent();i.setStyle(l);i.ensureState("emphasis").style=u;i.ensureState("blur").style=f;i.ensureState("select").style=e;bl(i)}t.add(i)}function ti(t,i){var f=b(i),e,s;if(f.dataIndex=o.dataIndex,f.seriesIndex=n.seriesIndex,e=Math.max(k-2*w,0),s=Math.max(g-2*w,0),i.culling=!0,i.setShape({x:w,y:w,width:e,height:s,r:vt}),nt)bt(i);else{i.invisible=!1;var r=o.getVisual("style"),h=r.fill,u=dcr(rt);u.fill=h;u.decal=r.decal;var c=tv(ut),l=tv(ft),a=tv(et);kt(i,h,r.opacity,null);i.setStyle(u);i.ensureState("emphasis").style=c;i.ensureState("blur").style=l;i.ensureState("select").style=a;bl(i)}t.add(i)}function bt(n){n.invisible||e.push(n)}function kt(t,i,r,u){var c=y.getModel(u?kcr:bcr),l=ai(y.get("name"),null),v=c.getShallow("show"),f,e,s,h;or(t,bi(y,u?kcr:bcr),{defaultText:v?l:null,inheritColor:i,defaultOpacity:r,labelFetcher:n,labelDataIndex:o.dataIndex});f=t.getTextContent();f&&(e=f.style,s=ktt(e.padding||0),u&&(t.setTextConfig({layoutRect:u}),f.disableLabelLayout=!0),f.beforeUpdate=function(){var n=Math.max((u?u.width:t.shape.width)-s[1]-s[3],0),i=Math.max((u?u.height:t.shape.height)-s[0]-s[2],0);e.width===n&&e.height===i||f.setStyle({width:n,height:i})},e.truncateMinChar=2,e.lineOverflow="truncate",dt(e,u,a),h=f.getState("emphasis"),dt(h?h.style:null,u,a))}function dt(t,i,r){var u=t?t.text:null,f;!i&&r.isLeafRoot&&null!=u&&(f=n.get("drillDownIcon",!0),t.text=f?f+" "+u:u)}function ct(n,r,u,e){var o=null!=it&&i[n][it],s=f[n];return o?(i[n][it]=null,ii(s,o)):nt||((o=new r)instanceof ef&&(o.z2=function(n,t){return 100*n+t}(u,e)),ri(s,o)),t[n][tt]=o}function ii(n,t){var i=n[tt]={};t instanceof ati?(i.oldX=t.x,i.oldY=t.y):i.oldShape=r({},t.shape)}function ri(n,t){var i=n[tt]={},s=o.parentNode,h=t instanceof p;if(s&&(!u||"drillDown"===u.direction)){var c=0,e=0,r=f.background[s.getRawIndex()];!u&&r&&r.oldShape&&(c=r.oldShape.width,e=r.oldShape.height);h?(i.oldX=0,i.oldY=e):i.oldShape={x:c,y:e,width:0,height:0}}i.fadein=!h}var v,ht;if(o){var a=o.getLayout(),d=n.getData(),y=o.getModel();if(d.setItemGraphicEl(o.dataIndex,null),a&&a.isInView){var k=a.width,g=a.height,w=a.borderWidth,nt=a.invisible,tt=o.getRawIndex(),it=s&&s.getRawIndex(),lt=o.viewChildren,gt=a.upperHeight,at=lt&&lt.length,rt=y.getModel("itemStyle"),ut=y.getModel(["emphasis","itemStyle"]),ft=y.getModel(["blur","itemStyle"]),et=y.getModel(["select","itemStyle"]),vt=rt.get("borderRadius")||0,l=ct("nodeGroup",ati);if(l){if(h.add(l),l.x=a.x||0,l.y=a.y||0,l.markRedraw(),ust(l).nodeWidth=k,ust(l).nodeHeight=g,a.isAboveViewRoot)return l;v=ct("background",wcr,c,20);v&&ni(l,v,at&&a.upperLabelHeight);var ot=y.getModel("emphasis"),st=ot.get("focus"),yt=ot.get("blurScope"),pt=ot.get("disabled"),wt="ancestor"===st?o.getAncestorsIndices():"descendant"===st?o.getDescendantIndices():st;return at?(dk(l)&&kl(l,!1),v&&(kl(v,!pt),d.setItemGraphicEl(o.dataIndex,v),gyt(v,wt,yt))):(ht=ct("content",wcr,c,30),ht&&ti(l,ht),v.disableMorphing=!0,v&&dk(v)&&kl(v,!1),kl(l,!pt),d.setItemGraphicEl(o.dataIndex,l),gyt(l,wt,yt)),l}}}}(i,h,c,u,s,l,n,t,f,e)}var e=i.getData().tree,f=this._oldTree,s={nodeGroup:[],background:[],content:[]},h={nodeGroup:[],background:[],content:[]},c=this._storage,l=[],o;return!function n(i,r,u,f,e){function s(n){return n.getId()}function o(t,o){var s=null!=t?i[t]:null,h=null!=o?r[o]:null,c=a(s,h,u,e);c&&n(s&&s.viewChildren||[],h&&h.viewChildren||[],c,f,e+1)}f?(r=i,t(i,function(n,t){n.isRemoved()||o(t,t)})):new co(r,i,s,s).add(o).update(o).remove(w(o,null)).execute()}(e.root?[e.root]:[],f&&f.root?[f.root]:[],n,e===f||!f,0),o=function(n){var i={nodeGroup:[],background:[],content:[]};return n&&t(n,function(n,r){var u=i[r];t(n,function(n){n&&(u.push(n),ust(n).willDelete=!0)})}),i}(c),this._oldTree=e,this._storage=h,{lastsForAnimation:s,willDeleteEls:o,renderFinally:function(){t(o,function(n){t(n,function(n){n.parent&&n.parent.remove(n)})});t(l,function(n){n.invisible=!0;n.dirty()})}}},u.prototype._doAnimation=function(n,i,u,f){var o=u.get("animationDurationUpdate"),h=u.get("animationEasing"),c=(l(o)?0:o)||0,a=(l(h)?null:h)||"cubicOut",e=new ewu;t(i.willDeleteEls,function(n,i){t(n,function(n){var r,s,t,u,o;n.invisible||(s=n.parent,t=ust(s),f&&"drillDown"===f.direction?r=s===f.rootNodeGroup?{shape:{x:0,y:0,width:t.nodeWidth,height:t.nodeHeight},style:{opacity:0}}:{style:{opacity:0}}:(u=0,o=0,t.willDelete||(u=t.nodeWidth/2,o=t.nodeHeight/2),r="nodeGroup"===i?{x:u,y:o,style:{opacity:0}}:{shape:{x:u,y:o,width:0,height:0},style:{opacity:0}}),r&&e.add(n,r,c,0,a))})});t(this._storage,function(n,u){t(n,function(n,t){var f=i.lastsForAnimation[u][t],o={};f&&(n instanceof p?null!=f.oldX&&(o.x=n.x,o.y=n.y,n.x=f.oldX,n.y=f.oldY):(f.oldShape&&(o.shape=r({},n.shape),n.setShape(f.oldShape)),f.fadein?(n.setStyle("opacity",0),o.style={opacity:1}):1!==n.style.opacity&&(o.style={opacity:1})),e.add(n,o,c,0,a))})},this);this._state="animating";e.finished(s(function(){this._state="ready";i.renderFinally()},this)).start()},u.prototype._resetController=function(n){var t=this._controller,i;t||((t=this._controller=new sw(n.getZr())).enable(this.seriesModel.get("roam")),t.on("pan",s(this._onPan,this)),t.on("zoom",s(this._onZoom,this)));i=new nt(0,0,n.getWidth(),n.getHeight());t.setPointerChecker(function(n,t,r){return i.contain(t,r)})},u.prototype._clearController=function(){var n=this._controller;n&&(n.dispose(),n=null)},u.prototype._onPan=function(n){var i,t;if("animating"!==this._state&&(Math.abs(n.dx)>3||Math.abs(n.dy)>3)){if(i=this.seriesModel.getData().tree.root,!i)return;if(t=i.getLayout(),!t)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:t.x+n.dx,y:t.y+n.dy,width:t.width,height:t.height}})}},u.prototype._onZoom=function(n){var f=n.originX,e=n.originY,u,i;if("animating"!==this._state){if(u=this.seriesModel.getData().tree.root,!u)return;if(i=u.getLayout(),!i)return;var r=new nt(i.x,i.y,i.width,i.height),o=this.seriesModel.layoutInfo,t=[1,0,0,1,0,0];ne(t,t,[-(f-=o.x),-(e-=o.y)]);rit(t,t,[n.scale,n.scale]);ne(t,t,[f,e]);r.applyTransform(t);this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:r.x,y:r.y,width:r.width,height:r.height}})}},u.prototype._initEvents=function(n){var t=this;n.on("click",function(n){var r,i,u;if("ready"===t._state&&(r=t.seriesModel.get("nodeClick",!0),r&&(i=t.findTarget(n.offsetX,n.offsetY),i)))if(u=i.node,u.getLayout().isLeafRoot)t._rootToNode(i);else if("zoomToNode"===r)t._zoomToNode(i);else if("link"===r){var f=u.hostTree.data.getItemModel(u.dataIndex),e=f.get("link",!0),o=f.get("target",!0)||"blank";e&&dut(e,o)}},this)},u.prototype._renderBreadcrumb=function(n,t,i){var r=this;i||(i=null!=n.get("leafDepth",!0)?{node:n.getViewRoot()}:this.findTarget(t.getWidth()/2,t.getHeight()/2))||(i={node:n.getData().tree.root});(this._breadcrumb||(this._breadcrumb=new pcr(this.group))).render(n,t,i.node,function(t){"animating"!==r._state&&(cti(n.getViewRoot(),t)?r._rootToNode({node:t}):r._zoomToNode({node:t}))})},u.prototype.remove=function(){this._clearController();this._containerGroup&&this._containerGroup.removeAll();this._storage={nodeGroup:[],background:[],content:[]};this._state="ready";this._breadcrumb&&this._breadcrumb.remove()},u.prototype.dispose=function(){this._clearController()},u.prototype._zoomToNode=function(n){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:n.node})},u.prototype._rootToNode=function(n){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:n.node})},u.prototype.findTarget=function(n,t){var i;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},function(r){var e=this._storage.background[r.getRawIndex()],u,f;if(e){if(u=e.transformCoordToLocal(n,t),f=e.shape,!(f.x<=u[0]&&u[0]<=f.x+f.width&&f.y<=u[1]&&u[1]<=f.y+f.height))return!1;i={node:r,offsetX:u[0],offsetY:u[1]}}},this),i},u.type="treemap",u}(wt),vn=t,swu=v,vti=-1,gi=function(){function n(i){var f=i.mappingMethod,o=i.type,r=this.option=y(i),e;this.type=o;this.mappingMethod=f;this._normalizeData=tlr[f];e=n.visualHandlers[o];this.applyVisual=e.applyVisual;this.getColorMapper=e.getColorMapper;this._normalizedToVisual=e._normalizedToVisual[f];"piecewise"===f?(yti(r),function(n){var i=n.pieceList;n.hasSpecialVisual=!1;t(i,function(t,i){t.originIndex=i;null!=t.visual&&(n.hasSpecialVisual=!0)})}(r)):"category"===f?r.categories?function(n){var r=n.categories,e=n.categoryMap={},t=n.visual,f,i;for((vn(r,function(n,t){e[n]=t}),u(t))||(f=[],v(t)?vn(t,function(n,t){var i=e[t];f[null!=i?i:vti]=n}):f[-1]=t,t=nlr(n,f)),i=r.length-1;i>=0;i--)null==t[i]&&(delete e[r[i]],r.pop())}(r):yti(r,!0):(sr("linear"!==f||r.dataExtent),yti(r))}return n.prototype.mapValueToVisual=function(n){var t=this._normalizeData(n);return this._normalizedToVisual(t,n)},n.prototype.getNormalizer=function(){return s(this._normalizeData,this)},n.listVisualTypes=function(){return et(n.visualHandlers)},n.isValidType=function(t){return n.visualHandlers.hasOwnProperty(t)},n.eachVisual=function(n,i,r){v(n)?t(n,i,r):i.call(r,n)},n.mapVisual=function(t,i,r){var e,f=u(t)?[]:v(t)?{}:(e=!0,null);return n.eachVisual(t,function(n,t){var u=i.call(r,n,t);e?f=u:f[t]=u}),f},n.retrieveVisuals=function(t){var i,r={};return t&&vn(n.visualHandlers,function(n,u){t.hasOwnProperty(u)&&(r[u]=t[u],i=!0)}),i?r:null},n.prepareVisualTypes=function(n){if(u(n))n=n.slice();else{if(!swu(n))return[];var t=[];vn(n,function(n,i){t.push(i)});n=t}return n.sort(function(n,t){return"color"===t&&"color"!==n&&0===n.indexOf("color")?1:-1}),n},n.dependsOn=function(n,t){return"color"===t?!(!n||0!==n.indexOf(t)):n===t},n.findPieceIndex=function(n,t,i){function h(t,i){var r=Math.abs(t-n);r<l&&(l=r,c=i)}for(var f,c,l=1/0,r=0,s=t.length;r<s;r++)if(f=t[r].value,null!=f){if(f===n||o(f)&&f===n+"")return r;i&&h(f,r)}for(r=0,s=t.length;r<s;r++){var a=t[r],u=a.interval,e=a.close;if(u){if(u[0]===-1/0){if(est(e[1],n,u[1]))return r}else if(u[1]===1/0){if(est(e[0],u[0],n))return r}else if(est(e[0],u[0],n)&&est(e[1],n,u[1]))return r;i&&h(u[0],r);i&&h(u[1],r)}}if(i)return n===1/0?t.length-1:n===-1/0?0:c},n.visualHandlers={color:{applyVisual:yn("color"),getColorMapper:function(){var n=this.option;return s("category"===n.mappingMethod?function(n,t){return!t&&(n=this._normalizeData(n)),pn.call(this,n)}:function(t,i,r){var u=!!r;return!i&&(t=this._normalizeData(t)),r=tk(t,n.parsedVisual,r),u?r:ie(r,"rgba")},this)},_normalizedToVisual:{linear:function(n){return ie(tk(n,this.option.parsedVisual),"rgba")},category:pn,piecewise:function(n,t){var i=wti.call(this,t);return null==i&&(i=ie(tk(n,this.option.parsedVisual),"rgba")),i},fixed:iv}},colorHue:fst(function(n,t){return gv(n,t)}),colorSaturation:fst(function(n,t){return gv(n,null,t)}),colorLightness:fst(function(n,t){return gv(n,null,null,t)}),colorAlpha:fst(function(n,t){return ik(n,t)}),decal:{applyVisual:yn("decal"),_normalizedToVisual:{linear:null,category:pn,piecewise:null,fixed:null}},opacity:{applyVisual:yn("opacity"),_normalizedToVisual:pti([0,1])},liftZ:{applyVisual:yn("liftZ"),_normalizedToVisual:{linear:iv,category:iv,piecewise:iv,fixed:iv}},symbol:{applyVisual:function(n,t,i){i("symbol",this.mapValueToVisual(n))},_normalizedToVisual:{linear:gcr,category:pn,piecewise:function(n,t){var i=wti.call(this,t);return null==i&&(i=gcr.call(this,n)),i},fixed:iv}},symbolSize:{applyVisual:yn("symbolSize"),_normalizedToVisual:pti([0,1])}},n}();tlr={linear:function(n){return pt(n,this.option.dataExtent,[0,1],!0)},piecewise:function(n){var t=this.option.pieceList,i=gi.findPieceIndex(n,t,!0);if(null!=i)return pt(i,[0,t.length-1],[0,1],!0)},category:function(n){var t=this.option.categories?this.option.categoryMap[n]:n;return null==t?vti:t},fixed:ei};bti=ct();ilr={seriesType:"treemap",reset:function(n){var t=n.getData().tree.root;t.isRemoved()||rlr(t,{},n.getViewRoot().getAncestors(),n)}};var wn=Math.max,ost=Math.min,flr=yi,gti=t,elr=["itemStyle","borderWidth"],hwu=["itemStyle","gapWidth"],cwu=["upperLabel","show"],lwu=["upperLabel","height"],awu={seriesType:"treemap",reset:function(n,t,i,u){var w=i.getWidth(),b=i.getHeight(),c=n.option,o=ci(n.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()}),k=c.size||[],d=e(flr(o.width,k[0]),w),g=e(flr(o.height,k[1]),b),l=u&&u.type,tt=ln(u,["treemapZoomToNode","treemapRootToNode"],n),a="treemapRender"===l||"treemapMove"===l?u.rootRect:null,f=n.getViewRoot(),y=ccr(f),h,s,it,v,p;"treemapMove"!==l&&(h="treemapZoomToNode"===l?function(n,t,i,r,u){var h,e=(t||{}).node,y=[r,u],o,f,l,a,s,v;if(!e||e===i)return y;for(o=r*u,f=o*n.option.zoomToNodeRatio;h=e.parentNode;){for(var p=0,w=h.children,c=0,b=w.length;c<b;c++)p+=w[c].getValue();if(l=e.getValue(),0===l)return y;f*=p/l;a=h.getModel();s=a.get(elr);(f+=4*s*s+(3*s+Math.max(s,clr(a)))*Math.pow(f,.5))>rrt&&(f=rrt);e=h}return f<o&&(f=o),v=Math.pow(f/o,.5),[r*v,u*v]}(n,tt,f,d,g):a?[a.width,a.height]:[d,g],s=c.sort,s&&"asc"!==s&&"desc"!==s&&(s="desc"),it={squareRatio:c.squareRatio,sort:s,leafDepth:c.leafDepth},f.hostTree.clearLayouts(),v={x:0,y:0,width:h[0],height:h[1],area:h[0]*h[1]},f.setLayout(v),olr(f,it,!1,0),v=f.getLayout(),gti(y,function(n,t){var i=(y[t+1]||f).getValue();n.setLayout(r({dataExtent:[i,i],borderWidth:0,upperHeight:0},v))}));p=n.getData().tree.root;p.setLayout(function(n,t,i){var s,e,f,r,u,o;if(t)return{x:t.x,y:t.y};if((s={x:0,y:0},!i)||(e=i.node,f=e.getLayout(),!f))return s;for(r=[f.width/2,f.height/2],u=e;u;)o=u.getLayout(),r[0]+=o.x,r[1]+=o.y,u=u.parentNode;return{x:n.width/2-r[0],y:n.height/2-r[1]}}(o,a,tt),!0);n.setLayoutInfo(o);hlr(p,new nt(-o.x,-o.y,w,b),y,f,0)}};var nii="-->",hst=function(n){return n.get("autoCurveness")||null},llr=function(n,t){var f=hst(n),r=20,e=[],o,i;if(ht(f))r=f;else if(u(f))return void(n.__curvenessList=f);for(t>r&&(r=t),o=r%2?r+2:r+3,e=[],i=0;i<o;i++)e.push((i%2?i+1:i)/10*(i%2?-1:1));n.__curvenessList=e},bn=function(n,t,i){var r=[n.id,n.dataIndex].join("."),u=[t.id,t.dataIndex].join(".");return[i.uid,r,u].join(nii)},alr=function(n){var t=n.split(nii);return[t[0],t[2],t[1]].join(nii)},tii=function(n,t){var i=t.__edgeMap;return i[n]?i[n].length:0};uii=Math.PI;cst=[];ylr={value:function(n,t,i,r,u,f,e){var o=0,s=i.getSum("value"),h=2*Math.PI/(s||e);t.eachNode(function(n){var i=n.getValue("value"),t=h*(s?i:1)/2;o+=t;n.setLayout([r*Math.cos(o)+u,r*Math.sin(o)+f]);o+=t})},symbolSize:function(n,t,i,r,u,f,e){var s=0,h,c,o;cst.length=e;h=kn(n);t.eachNode(function(n){var t=dn(n),i;isNaN(t)&&(t=2);t<0&&(t=0);t*=h;i=Math.asin(t/2/r);isNaN(i)&&(i=uii/2);cst[n.dataIndex]=i;s+=2*i});c=(2*uii-s)/e/2;o=0;t.eachNode(function(n){var t=c+cst[n.dataIndex];o+=t;(!n.getLayout()||!n.getLayout().fixed)&&n.setLayout([r*Math.cos(o)+u,r*Math.sin(o)+f]);o+=t})}};rv=dtt;var wlr=vi.prototype,eii=na.prototype,blr=function(){this.x1=0;this.y1=0;this.x2=0;this.y2=0;this.percent=1};!function(n){function t(){return null!==n&&n.apply(this,arguments)||this}i(t,n)}(blr);klr=function(n){function t(t){var i=n.call(this,t)||this;return i.type="ec-line",i}return i(t,n),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new blr},t.prototype.buildPath=function(n,t){oii(t)?wlr.buildPath.call(this,n,t):eii.buildPath.call(this,n,t)},t.prototype.pointAt=function(n){return oii(this.shape)?wlr.pointAt.call(this,n):eii.pointAt.call(this,n)},t.prototype.tangentAt=function(n){var t=this.shape,i=oii(t)?[t.x2-t.x1,t.y2-t.y1]:eii.tangentAt.call(this,n);return pc(i,i)},t}(ut);lst=["fromSymbol","toSymbol"];ast=function(n){function r(t,i,r){var u=n.call(this)||this;return u._createLine(t,i,r),u}return i(r,n),r.prototype._createLine=function(n,i,r){var f=n.hostModel,u=function(n){var t=new klr({name:"line",subPixelOptimize:!0});return sii(t.shape,n),t}(n.getItemLayout(i));u.shape.percent=0;ii(u,{shape:{percent:1}},f,i);this.add(u);t(lst,function(t){var r=nar(t,n,i);this.add(r);this[dlr(t)]=glr(t,n,i)},this);this._updateCommonStl(n,i,r)},r.prototype.updateData=function(n,i,r){var f=n.hostModel,e=this.childOfName("line"),o=n.getItemLayout(i),u={shape:{}};sii(u.shape,o);lt(e,u,f,i);t(lst,function(t){var r=glr(t,n,i),u=dlr(t),f;this[u]!==r&&(this.remove(this.childOfName(t)),f=nar(t,n,i),this.add(f));this[u]=r},this);this._updateCommonStl(n,i,r)},r.prototype.getLinePath=function(){return this.childAt(0)},r.prototype._updateCommonStl=function(n,i,r){var p=n.hostModel,e=this.childOfName("line"),w=r&&r.emphasisLineStyle,b=r&&r.blurLineStyle,k=r&&r.selectLineStyle,a=r&&r.labelStatesModels,d=r&&r.emphasisDisabled,g=r&&r.focus,nt=r&&r.blurScope,s,h,c,v,l,f,y,o;(!r||n.hasItemOption)&&(s=n.getItemModel(i),h=s.getModel("emphasis"),w=h.getModel("lineStyle").getLineStyle(),b=s.getModel(["blur","lineStyle"]).getLineStyle(),k=s.getModel(["select","lineStyle"]).getLineStyle(),d=h.get("disabled"),g=h.get("focus"),nt=h.get("blurScope"),a=bi(s));c=n.getItemVisual(i,"style");v=c.stroke;e.useStyle(c);e.style.fill=null;e.style.strokeNoScale=!0;e.ensureState("emphasis").style=w;e.ensureState("blur").style=b;e.ensureState("select").style=k;t(lst,function(n){var t=this.childOfName(n),i,u,f;if(t){for(t.setColor(v),t.style.opacity=c.opacity,i=0;i<dr.length;i++)if(u=dr[i],f=e.getState(u),f){var r=f.style||{},o=t.ensureState(u),s=o.style||(o.style={});null!=r.stroke&&(s[t.__isEmptyBrush?"stroke":"fill"]=r.stroke);null!=r.opacity&&(s.opacity=r.opacity)}t.markRedraw()}},this);l=p.getRawValue(i);or(this,a,{labelDataIndex:i,labelFetcher:{getFormattedLabel:function(t,i){return p.getFormattedLabel(t,i,n.dataType)}},inheritColor:v||"#000",defaultOpacity:c.opacity,defaultText:(null==l?n.getName(i):isFinite(l)?ri(l):l)+""});f=this.getTextContent();f&&(y=a.normal,f.__align=f.style.align,f.__verticalAlign=f.style.verticalAlign,f.__position=y.get("position")||"middle",o=y.get("distance"),u(o)||(o=[o,o]),f.__labelDistance=o);this.setTextConfig({position:null,local:!0,inside:!1});ui(this,g,nt,d)},r.prototype.highlight=function(){ss(this)},r.prototype.downplay=function(){hs(this)},r.prototype.updateLayout=function(n,t){this.setLinePoints(n.getItemLayout(t))},r.prototype.setLinePoints=function(n){var t=this.childOfName("line");sii(t.shape,n);t.dirty()},r.prototype.beforeUpdate=function(){function it(n,t){var u=n.__specifiedRotation,i;null==u?(i=r.tangentAt(t),n.attr("rotation",(1===t?-1:1)*Math.PI/2-Math.atan2(i[1],i[0]))):n.attr("rotation",u)}var w=this,u=w.childOfName("fromSymbol"),f=w.childOfName("toSymbol"),n=w.getTextContent(),e,c,r,p,d,i;if(u||f||n&&!n.ignore){for(e=1,c=this.parent;c;)c.scaleX&&(e/=c.scaleX),c=c.parent;if(r=w.childOfName("line"),this.__dirty||r.__dirty){var b=r.shape.percent,o=r.pointAt(0),s=r.pointAt(b),t=nh([],s,o);if(pc(t,t),u&&(u.setPosition(o),it(u,0),u.scaleX=u.scaleY=e*b,u.markRedraw()),f&&(f.setPosition(s),it(f,1),f.scaleX=f.scaleY=e*b,f.markRedraw()),n&&!n.ignore){n.x=n.y=0;n.originX=n.originY=0;var l=void 0,a=void 0,g=n.__labelDistance,v=g[0]*e,k=g[1]*e,nt=b/2,h=r.tangentAt(nt),y=[h[1],-h[0]],tt=r.pointAt(nt);y[1]>0&&(y[0]=-y[0],y[1]=-y[1]);p=h[0]<0?-1:1;"start"!==n.__position&&"end"!==n.__position&&(d=-Math.atan2(h[1],h[0]),s[0]<o[0]&&(d=Math.PI+d),n.rotation=d);i=void 0;switch(n.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":i=-k;a="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":i=k;a="top";break;default:i=0;a="middle"}switch(n.__position){case"end":n.x=t[0]*v+s[0];n.y=t[1]*k+s[1];l=t[0]>.8?"left":t[0]<-.8?"right":"center";a=t[1]>.8?"top":t[1]<-.8?"bottom":"middle";break;case"start":n.x=-t[0]*v+o[0];n.y=-t[1]*k+o[1];l=t[0]>.8?"right":t[0]<-.8?"left":"center";a=t[1]>.8?"bottom":t[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":n.x=v*p+o[0];n.y=o[1]+i;l=h[0]<0?"right":"left";n.originX=-v*p;n.originY=-i;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":n.x=tt[0];n.y=tt[1]+i;l="center";n.originY=-i;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":n.x=-v*p+s[0];n.y=s[1]+i;l=h[0]>=0?"right":"left";n.originX=v*p;n.originY=-i}n.scaleX=n.scaleY=e;n.setStyle({verticalAlign:n.__verticalAlign||a,align:n.__align||l})}}}},r}(p);vst=function(){function n(n){this.group=new p;this._LineCtor=n||ast}return n.prototype.updateData=function(n){var u=this,r;this._progressiveEls=null;var i=this,f=i.group,t=i._lineData;i._lineData=n;t||f.removeAll();r=tar(n);n.diff(t).add(function(t){u._doAdd(n,t,r)}).update(function(i,f){u._doUpdate(t,n,f,i,r)}).remove(function(n){f.remove(t.getItemGraphicEl(n))}).execute()},n.prototype.updateLayout=function(){var n=this._lineData;n&&n.eachItemGraphicEl(function(t,i){t.updateLayout(n,i)},this)},n.prototype.incrementalPrepareUpdate=function(n){this._seriesScope=tar(n);this._lineData=null;this.group.removeAll()},n.prototype.incrementalUpdate=function(n,t){function u(n){n.isGroup||function(n){return n.animators&&n.animators.length>0}(n)||(n.incremental=!0,n.ensureState("emphasis").hoverLayer=!0)}var i,r;for(this._progressiveEls=[],i=n.start;i<n.end;i++)hii(t.getItemLayout(i))&&(r=new this._LineCtor(t,i,this._seriesScope),r.traverse(u),this.group.add(r),t.setItemGraphicEl(i,r),this._progressiveEls.push(r))},n.prototype.remove=function(){this.group.removeAll()},n.prototype.eachRendered=function(n){ph(this._progressiveEls||this.group,n)},n.prototype._doAdd=function(n,t,i){if(hii(n.getItemLayout(t))){var r=new this._LineCtor(n,t,i);n.setItemGraphicEl(t,r);this.group.add(r)}},n.prototype._doUpdate=function(n,t,i,r,u){var f=n.getItemGraphicEl(i);hii(t.getItemLayout(r))?(f?f.updateData(t,r,u):f=new this._LineCtor(t,r,u),t.setItemGraphicEl(r,f),this.group.add(f)):this.group.remove(f)},n}();var cii=[],lii=[],aii=[],cw=tr,vii=ns,rar=Math.abs;ear=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i}return i(t,n),t.prototype.init=function(n,t){var r=new uw,u=new vst,i=this.group;this._controller=new sw(t.getZr());this._controllerHost={target:i};i.add(r.group);i.add(u.group);this._symbolDraw=r;this._lineDraw=u;this._firstRender=!0},t.prototype.render=function(n,t,i){var e=this,f=n.coordinateSystem,o,r,c,u,s,l;this._model=n;var a=this._symbolDraw,v=this._lineDraw,h=this.group;far(f)&&(o={x:f.x,y:f.y,scaleX:f.scaleX,scaleY:f.scaleY},this._firstRender?h.attr(o):lt(h,o,n));yii(n.getGraph(),kn(n));r=n.getData();a.updateData(r);c=n.getEdgeData();v.updateData(c);this._updateNodeAndLinkScale();this._updateController(n,t,i);clearTimeout(this._layoutTimeout);u=n.forceLayout;s=n.get(["force","layoutAnimation"]);u&&this._startForceLayoutIteration(u,s);l=n.get("layout");r.graph.eachNode(function(t){var f=t.dataIndex,i=t.getGraphicEl(),o=t.getModel(),h;i&&(i.off("drag").off("dragend"),h=o.get("draggable"),h&&i.on("drag",function(o){switch(l){case"force":u.warmUp();!e._layouting&&e._startForceLayoutIteration(u,s);u.setFixed(f);r.setItemLayout(f,[i.x,i.y]);break;case"circular":r.setItemLayout(f,[i.x,i.y]);t.setLayout({fixed:!0},!0);fii(n,"symbolSize",t,[o.offsetX,o.offsetY]);e.updateLayout(n);break;default:r.setItemLayout(f,[i.x,i.y]);rii(n.getGraph(),n);e.updateLayout(n)}}).on("dragend",function(){u&&u.setUnfixed(f)}),i.setDraggable(h,!!o.get("cursor")),"adjacency"===o.get(["emphasis","focus"])&&(b(i).focus=t.getAdjacentDataIndices()))});r.graph.eachEdge(function(n){var t=n.getGraphicEl(),i=n.getModel().get(["emphasis","focus"]);t&&"adjacency"===i&&(b(t).focus={edge:[n.dataIndex],node:[n.node1.dataIndex,n.node2.dataIndex]})});var y="circular"===n.get("layout")&&n.get(["circular","rotateLabel"]),p=r.getLayout("cx"),w=r.getLayout("cy");r.graph.eachNode(function(n){plr(n,y,p,w)});this._firstRender=!1},t.prototype.dispose=function(){this._controller&&this._controller.dispose();this._controllerHost=null},t.prototype._startForceLayoutIteration=function(n,t){var i=this;!function r(){n.step(function(n){i.updateLayout(i._model);(i._layouting=!n)&&(t?i._layoutTimeout=setTimeout(r,16):r())})}()},t.prototype._updateController=function(n,t,i){var f=this,r=this._controller,u=this._controllerHost,e=this.group;r.setPointerChecker(function(t,r,u){var f=e.getBoundingRect();return f.applyTransform(e.transform),f.contain(r,u)&&!bot(t,i,n)});far(n.coordinateSystem)?(r.enable(n.get("roam")),u.zoomLimit=n.get("scaleLimit"),u.zoom=n.coordinateSystem.getZoom(),r.off("pan").off("zoom").on("pan",function(t){wnt(u,t.dx,t.dy);i.dispatchAction({seriesId:n.id,type:"graphRoam",dx:t.dx,dy:t.dy})}).on("zoom",function(t){bnt(u,t.scale,t.originX,t.originY);i.dispatchAction({seriesId:n.id,type:"graphRoam",zoom:t.scale,originX:t.originX,originY:t.originY});f._updateNodeAndLinkScale();yii(n.getGraph(),kn(n));f._lineDraw.updateLayout();i.updateLabelLayout()})):r.disable()},t.prototype._updateNodeAndLinkScale=function(){var n=this._model,t=n.getData(),i=kn(n);t.eachItemGraphicEl(function(n){n&&n.setSymbolScale(i)})},t.prototype.updateLayout=function(n){yii(n.getGraph(),kn(n));this._symbolDraw.updateLayout();this._lineDraw.updateLayout()},t.prototype.remove=function(){this._symbolDraw&&this._symbolDraw.remove();this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(wt);var nbu=function(){function n(n){this.type="graph";this.nodes=[];this.edges=[];this._nodesMap={};this._edgesMap={};this._directed=n||!1}return n.prototype.isDirected=function(){return this._directed},n.prototype.addNode=function(n,t){var r,i;return n=null==n?""+t:""+n,r=this._nodesMap,r[lw(n)]?void 0:(i=new uv(n,t),i.hostGraph=this,this.nodes.push(i),r[lw(n)]=i,i)},n.prototype.getNodeByIndex=function(n){var t=this.data.getRawIndex(n);return this.nodes[t]},n.prototype.getNodeById=function(n){return this._nodesMap[lw(n)]},n.prototype.addEdge=function(n,t,i){var u=this._nodesMap,e=this._edgesMap,f,r;if(ht(n)&&(n=this.nodes[n]),ht(t)&&(t=this.nodes[t]),n instanceof uv||(n=u[lw(n)]),t instanceof uv||(t=u[lw(t)]),n&&t)return f=n.id+"-"+t.id,r=new oar(n,t,i),r.hostGraph=this,this._directed&&(n.outEdges.push(r),t.inEdges.push(r)),n.edges.push(r),n!==t&&t.edges.push(r),this.edges.push(r),e[f]=r,r},n.prototype.getEdgeByIndex=function(n){var t=this.edgeData.getRawIndex(n);return this.edges[t]},n.prototype.getEdge=function(n,t){n instanceof uv&&(n=n.id);t instanceof uv&&(t=t.id);var i=this._edgesMap;return this._directed?i[n+"-"+t]:i[n+"-"+t]||i[t+"-"+n]},n.prototype.eachNode=function(n,t){for(var r=this.nodes,u=r.length,i=0;i<u;i++)r[i].dataIndex>=0&&n.call(t,r[i],i)},n.prototype.eachEdge=function(n,t){for(var r=this.edges,u=r.length,i=0;i<u;i++)r[i].dataIndex>=0&&r[i].node1.dataIndex>=0&&r[i].node2.dataIndex>=0&&n.call(t,r[i],i)},n.prototype.breadthFirstTraverse=function(n,t,i,r){var c,u,e,o,h,s,f;if(t instanceof uv||(t=this._nodesMap[lw(t)]),t){for(c="out"===i?"outEdges":"in"===i?"inEdges":"edges",u=0;u<this.nodes.length;u++)this.nodes[u].__visited=!1;if(!n.call(r,t,null))for(e=[t];e.length;)for(o=e.shift(),h=o[c],u=0;u<h.length;u++)if(s=h[u],f=s.node1===o?s.node2:s.node1,!f.__visited){if(n.call(r,f,o))return;e.push(f);f.__visited=!0}}},n.prototype.update=function(){for(var f=this.data,i=this.edgeData,u=this.nodes,r=this.edges,n=0,t=u.length;n<t;n++)u[n].dataIndex=-1;for(n=0,t=f.count();n<t;n++)u[f.getRawIndex(n)].dataIndex=n;for(i.filterSelf(function(n){var t=r[i.getRawIndex(n)];return t.node1.dataIndex>=0&&t.node2.dataIndex>=0}),n=0,t=r.length;n<t;n++)r[n].dataIndex=-1;for(n=0,t=i.count();n<t;n++)r[i.getRawIndex(n)].dataIndex=n},n.prototype.clone=function(){for(var i,r=new n(this._directed),u=this.nodes,f=this.edges,t=0;t<u.length;t++)r.addNode(u[t].id,u[t].dataIndex);for(t=0;t<f.length;t++)i=f[t],r.addEdge(i.node1.id,i.node2.id,i.dataIndex);return r},n}(),uv=function(){function n(n,t){this.inEdges=[];this.outEdges=[];this.edges=[];this.dataIndex=-1;this.id=null==n?"":n;this.dataIndex=null==t?-1:t}return n.prototype.degree=function(){return this.edges.length},n.prototype.inDegree=function(){return this.inEdges.length},n.prototype.outDegree=function(){return this.outEdges.length},n.prototype.getModel=function(n){if(!(this.dataIndex<0))return this.hostGraph.data.getItemModel(this.dataIndex).getModel(n)},n.prototype.getAdjacentDataIndices=function(){for(var n,t={edge:[],node:[]},i=0;i<this.edges.length;i++)n=this.edges[i],n.dataIndex<0||(t.edge.push(n.dataIndex),t.node.push(n.node1.dataIndex,n.node2.dataIndex));return t},n.prototype.getTrajectoryDataIndices=function(){for(var i,r,n,u,f=c(),e=c(),o=0;o<this.edges.length;o++)if(i=this.edges[o],!(i.dataIndex<0)){f.set(i.dataIndex,!0);for(var s=[i.node1],h=[i.node2],t=0;t<s.length;)for(r=s[t],t++,e.set(r.dataIndex,!0),n=0;n<r.inEdges.length;n++)f.set(r.inEdges[n].dataIndex,!0),s.push(r.inEdges[n].node1);for(t=0;t<h.length;)for(u=h[t],t++,e.set(u.dataIndex,!0),n=0;n<u.outEdges.length;n++)f.set(u.outEdges[n].dataIndex,!0),h.push(u.outEdges[n].node2)}return{edge:f.keys(),node:e.keys()}},n}(),oar=function(){function n(n,t,i){this.dataIndex=-1;this.node1=n;this.node2=t;this.dataIndex=null==i?-1:i}return n.prototype.getModel=function(n){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(n)},n.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},n.prototype.getTrajectoryDataIndices=function(){var u=c(),f=c(),i,n,r;u.set(this.dataIndex,!0);for(var e=[this.node1],o=[this.node2],t=0;t<e.length;)for(i=e[t],t++,f.set(i.dataIndex,!0),n=0;n<i.inEdges.length;n++)u.set(i.inEdges[n].dataIndex,!0),e.push(i.inEdges[n].node1);for(t=0;t<o.length;)for(r=o[t],t++,f.set(r.dataIndex,!0),n=0;n<r.outEdges.length;n++)u.set(r.outEdges[n].dataIndex,!0),o.push(r.outEdges[n].node2);return{edge:u.keys(),node:f.keys()}},n}();fi(uv,sar("hostGraph","data"));fi(oar,sar("hostGraph","edgeData"));var tbu=function(n){function u(){var t=null!==n&&n.apply(this,arguments)||this;return t.type=u.type,t.hasSymbolVisual=!0,t}return i(u,n),u.prototype.init=function(t){function i(){return r._categoriesData}n.prototype.init.apply(this,arguments);var r=this;this.legendVisualProvider=new en(i,i);this.fillDataTextStyle(t.edges||t.links);this._updateCategoriesData()},u.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments);this.fillDataTextStyle(t.edges||t.links);this._updateCategoriesData()},u.prototype.mergeDefaultAndTheme=function(t){n.prototype.mergeDefaultAndTheme.apply(this,arguments);ul(t,"edgeLabel",["show"])},u.prototype.getInitialData=function(n){var i,u=n.edges||n.links||[],f=n.data||n.nodes||[],e=this,r;if(f&&u)return hst(i=this)&&(i.__curvenessList=[],i.__edgeMap={},llr(i)),r=har(f,u,this,!0,function(n,t){function u(n,t){var u=r.call(this,n,t);return u.resolveParentPath=i,u}function i(n){if(n&&("label"===n[0]||"label"===n[1])){var t=n.slice();return"label"===n[0]?t[0]="edgeLabel":"label"===n[1]&&(t[1]="edgeLabel"),t}return n}n.wrapMethod("getItemModel",function(n){var t=e._categoriesModels[n.getShallow("category")];return t&&(t.parentModel=n.parentModel,n.parentModel=t),n});var r=at.prototype.getModel;t.wrapMethod("getItemModel",function(n){return n.resolveParentPath=i,n.getModel=u,n})}),t(r.edges,function(n){!function(n,t,i,r){if(hst(i)){var u=bn(n,t,i),f=i.__edgeMap,e=f[alr(u)];f[u]&&!e?f[u].isForward=!0:e&&f[u]&&(e.isForward=!0,f[u].isForward=!1);f[u]=f[u]||[];f[u].push(r)}}(n.node1,n.node2,this,n.dataIndex)},this),r.data},u.prototype.getGraph=function(){return this.getData().graph},u.prototype.getEdgeData=function(){return this.getGraph().edgeData},u.prototype.getCategoriesData=function(){return this._categoriesData},u.prototype.formatTooltip=function(n,t,i){if("edge"===i){var r=this.getData(),f=this.getDataParams(n,i),e=r.graph.getEdgeByIndex(n),o=r.getName(e.node1.dataIndex),s=r.getName(e.node2.dataIndex),u=[];return null!=o&&u.push(o),null!=s&&u.push(s),ki("nameValue",{name:u.join(" > "),value:f.value,noValue:null==f.value})}return adi({series:this,dataIndex:n,multipleSeries:t})},u.prototype._updateCategoriesData=function(){var t=f(this.option.categories||[],function(n){return null!=n.value?n:r({value:0},n)}),n=new yr(["value"],this);n.initData(t);this._categoriesData=n;this._categoriesModels=n.mapArray(function(t){return n.getItemModel(t)})},u.prototype.setZoom=function(n){this.option.zoom=n},u.prototype.setCenter=function(n){this.option.center=n},u.prototype.isAnimationEnabled=function(){return n.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},u.type="series.graph",u.dependencies=["grid","polar","geo","singleAxis","calendar"],u.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},u}(bt),ibu={type:"graphRoam",event:"graphRoam",update:"none"},rbu=function(){this.angle=0;this.width=10;this.r=10;this.x=0;this.y=0},ubu=function(n){function t(t){var i=n.call(this,t)||this;return i.type="pointer",i}return i(t,n),t.prototype.getDefaultShape=function(){return new rbu},t.prototype.buildPath=function(n,t){var u=Math.cos,f=Math.sin,e=t.r,i=t.width,r=t.angle,o=t.x-u(r)*i*(i>=e/3?1:2),s=t.y-f(r)*i*(i>=e/3?1:2);r=t.angle-Math.PI/2;n.moveTo(o,s);n.lineTo(t.x+u(r)*i,t.y+f(r)*i);n.lineTo(t.x+u(t.angle)*e,t.y+f(t.angle)*e);n.lineTo(t.x-u(r)*i,t.y-f(r)*i);n.lineTo(o,s)},t}(ut);var fbu=function(n){function u(){var t=null!==n&&n.apply(this,arguments)||this;return t.type=u.type,t}return i(u,n),u.prototype.render=function(n,t,i){this.group.removeAll();var r=n.get(["axisLine","lineStyle","color"]),u=function(n,t){var i=n.get("center"),r=t.getWidth(),u=t.getHeight(),f=Math.min(r,u);return{cx:e(i[0],t.getWidth()),cy:e(i[1],t.getHeight()),r:e(n.get("radius"),f/2)}}(n,i);this._renderMain(n,t,i,r,u);this._data=n.getData()},u.prototype.dispose=function(){},u.prototype._renderMain=function(n,i,r,u,f){var k=this.group,s=n.get("clockwise"),e=-n.get("startAngle")/180*Math.PI,o=-n.get("endAngle")/180*Math.PI,a=n.getModel("axisLine"),d=a.get("roundCap")?hot:ur,g=a.get("show"),w=a.getModel("lineStyle"),v=w.get("width"),y=[e,o],c,l;eai(y,!s);for(var nt=(o=y[1])-(e=y[0]),b=e,p=[],h=0;g&&h<u.length;h++)c=new d({shape:{startAngle:b,endAngle:o=e+nt*Math.min(Math.max(u[h][0],0),1),cx:f.cx,cy:f.cy,clockwise:s,r0:f.r-v,r:f.r},silent:!0}),c.setStyle({fill:u[h][1]}),c.setStyle(w.getLineStyle(["color","width"])),p.push(c),b=o;p.reverse();t(p,function(n){return k.add(n)});l=function(n){if(n<=0)return u[0][1];for(var t=0;t<u.length;t++)if(u[t][0]>=n&&(0===t?0:u[t-1][0])<n)return u[t][1];return u[t-1][1]};this._renderTicks(n,i,r,l,f,e,o,s,v);this._renderTitleAndDetail(n,i,r,l,f);this._renderAnchor(n,f);this._renderPointer(n,i,r,l,f,e,o,s,v)},u.prototype._renderTicks=function(n,t,i,r,u,f,o,s,h){for(var ct,ft,vt,a,v,tt=this.group,d=u.cx,g=u.cy,l=u.r,yt=+n.get("min"),ii=+n.get("max"),it=n.getModel("splitLine"),nt=n.getModel("axisTick"),b=n.getModel("axisLabel"),p=n.get("splitNumber"),et=nt.get("splitNumber"),rt=e(it.get("length"),l),pt=e(nt.get("length"),l),y=f,wt=(o-f)/p,bt=wt/et,kt=it.getModel("lineStyle").getLineStyle(),dt=nt.getModel("lineStyle").getLineStyle(),ot=it.get("distance"),w=0;w<=p;w++){if((a=Math.cos(y),v=Math.sin(y),it.get("show"))&&(ct=new vi({shape:{x1:a*(l-(c=ot?ot+h:h))+d,y1:v*(l-c)+g,x2:a*(l-rt-c)+d,y2:v*(l-rt-c)+g},style:kt,silent:!0}),"auto"===kt.stroke&&ct.setStyle({stroke:r(w/p)}),tt.add(ct)),b.get("show")){var c=b.get("distance")+ot,ni=yst(ri(w/p*(ii-yt)+yt),b.get("formatter")),ti=r(w/p),lt=a*(l-rt-c)+d,at=v*(l-rt-c)+g,ut=b.get("rotate"),k=0;"radial"===ut?(k=-y+2*Math.PI)>Math.PI/2&&(k+=Math.PI):"tangential"===ut?k=-y-Math.PI/2:ht(ut)&&(k=ut*Math.PI/180);0===k?tt.add(new st({style:gt(b,{text:ni,x:lt,y:at,verticalAlign:v<-.8?"top":v>.8?"bottom":"middle",align:a<-.4?"left":a>.4?"right":"center"},{inheritColor:ti}),silent:!0})):tt.add(new st({style:gt(b,{text:ni,x:lt,y:at,verticalAlign:"middle",align:"center"},{inheritColor:ti}),silent:!0,originX:lt,originY:at,rotation:k}))}if(nt.get("show")&&w!==p){for(c=(c=nt.get("distance"))?c+h:h,ft=0;ft<=et;ft++)a=Math.cos(y),v=Math.sin(y),vt=new vi({shape:{x1:a*(l-c)+d,y1:v*(l-c)+g,x2:a*(l-pt-c)+d,y2:v*(l-pt-c)+g},silent:!0,style:dt}),"auto"===dt.stroke&&vt.setStyle({stroke:r((w+ft/et)/p)}),tt.add(vt),y+=bt;y-=bt}else y+=wt}},u.prototype._renderPointer=function(n,t,i,u,f,o,s,h,c){function tt(t,i){var r,u=l.getItemModel(t).getModel("pointer"),o=e(u.get("width"),f.r),s=e(u.get("length"),f.r),h=n.get(["pointer","icon"]),c=u.get("offsetCenter"),a=e(c[0],f.r),v=e(c[1],f.r),y=u.get("keepAspect");return(r=h?si(h,a-o/2,v-s,o,s,null,y):new ubu({shape:{angle:-Math.PI/2,width:o,r:s,x:a,y:v}})).rotation=-(i+Math.PI/2),r.x=f.cx,r.y=f.cy,r}function it(n,t){var e=a.get("roundCap")?hot:ur,i=a.get("overlap"),r=i?a.get("width"):c/l.count(),s=i?f.r-r:f.r-(n+1)*r,v=i?f.r:f.r-n*r,u=new e({shape:{startAngle:o,endAngle:t,cx:f.cx,cy:f.cy,clockwise:h,r0:s,r:v}});return i&&(u.z2=g-l.get(d,n)%g),u}var p=this.group,nt=this._data,rt=this._progressEls,w=[],b=n.get(["pointer","show"]),a=n.getModel("progress"),k=a.get("show"),l=n.getData(),d=l.mapDimension("value"),ut=+n.get("min"),g=+n.get("max"),y=[ut,g],v=[o,s];(k||b)&&(l.diff(nt).add(function(t){var u=l.get(d,t),r,i,f;b&&(r=tt(t,o),ii(r,{rotation:-((isNaN(+u)?v[0]:pt(u,y,v,!0))+Math.PI/2)},n),p.add(r),l.setItemGraphicEl(t,r));k&&(i=it(t,o),f=a.get("clip"),ii(i,{shape:{endAngle:pt(u,y,v,f)}},n),p.add(i),lyt(n.seriesIndex,l.dataType,t,i),w[t]=i)}).update(function(t,i){var f=l.get(d,t);if(b){var e=nt.getItemGraphicEl(i),s=e?e.rotation:o,r=tt(t,s);r.rotation=s;lt(r,{rotation:-((isNaN(+f)?v[0]:pt(f,y,v,!0))+Math.PI/2)},n);p.add(r);l.setItemGraphicEl(t,r)}if(k){var h=rt[i],u=it(t,h?h.shape.endAngle:o),c=a.get("clip");lt(u,{shape:{endAngle:pt(f,y,v,c)}},n);p.add(u);lyt(n.seriesIndex,l.dataType,t,u);w[t]=u}}).execute(),l.each(function(n){var e=l.getItemModel(n),o=e.getModel("emphasis"),h=o.get("focus"),c=o.get("blurScope"),a=o.get("disabled"),i,f;if(b){var t=l.getItemGraphicEl(n),s=l.getItemVisual(n,"style"),v=s.fill;t instanceof wi?(i=t.style,t.useStyle(r({image:i.image,x:i.x,y:i.y,width:i.width,height:i.height},s))):(t.useStyle(s),"pointer"!==t.type&&t.setColor(v));t.setStyle(e.getModel(["pointer","itemStyle"]).getItemStyle());"auto"===t.style.fill&&t.setStyle("fill",u(pt(l.get(d,n),y,[0,1],!0)));t.z2EmphasisLift=0;rr(t,e);ui(t,h,c,a)}k&&(f=w[n],f.useStyle(l.getItemVisual(n,"style")),f.setStyle(e.getModel(["progress","itemStyle"]).getItemStyle()),f.z2EmphasisLift=0,rr(f,e),ui(f,h,c,a))}),this._progressEls=w)},u.prototype._renderAnchor=function(n,t){var i=n.getModel("anchor");if(i.get("show")){var r=i.get("size"),o=i.get("icon"),f=i.get("offsetCenter"),s=i.get("keepAspect"),u=si(o,t.cx-r/2+e(f[0],t.r),t.cy-r/2+e(f[1],t.r),r,r,null,s);u.z2=i.get("showAbove")?1:0;u.setStyle(i.getModel("itemStyle").getItemStyle());this.group.add(u)}},u.prototype._renderTitleAndDetail=function(n,t,i,r,u){var h=this,f=n.getData(),a=f.mapDimension("value"),v=+n.get("min"),y=+n.get("max"),c=new p,o=[],s=[],w=n.isAnimationEnabled(),l=n.get(["pointer","showAbove"]);f.diff(this._data).add(function(n){o[n]=new st({silent:!0});s[n]=new st({silent:!0})}).update(function(n,t){o[n]=h._titleEls[t];s[n]=h._detailEls[t]}).execute();f.each(function(t){var nt=f.getItemModel(t),b=f.get(a,t),k=new p,tt=r(pt(b,[v,y],[0,1],!0)),d=nt.getModel("title"),i;if(d.get("show")){var it=d.get("offsetCenter"),et=u.cx+e(it[0],u.r),ot=u.cy+e(it[1],u.r);(h=o[t]).attr({z2:l?0:2,style:gt(d,{x:et,y:ot,text:f.getName(t),align:"center",verticalAlign:"middle"},{inheritColor:tt})});k.add(h)}if(i=nt.getModel("detail"),i.get("show")){var rt=i.get("offsetCenter"),st=u.cx+e(rt[0],u.r),ht=u.cy+e(rt[1],u.r),ut=e(i.get("width"),u.r),ft=e(i.get("height"),u.r),ct=n.get(["progress","show"])?f.getItemVisual(t,"style").fill:tt,h=s[t],g=i.get("formatter");h.attr({z2:l?0:2,style:gt(i,{x:st,y:ht,text:yst(b,g),width:isNaN(ut)?null:ut,height:isNaN(ft)?null:ft,align:"center",verticalAlign:"middle"},{inheritColor:ct})});ppi(h,{normal:i},b,function(n){return yst(n,g)});w&&wpi(h,t,f,n,{getFormattedLabel:function(n,t,i,r,u,f){return yst(f?f.interpolatedValue:b,g)}});k.add(h)}c.add(k)});this.group.add(c);this._titleEls=o;this._detailEls=s},u.type="gauge",u}(wt),ebu=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i.visualStyleAccessPath="itemStyle",i}return i(t,n),t.prototype.getInitialData=function(){return ew(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(bt),obu=["itemStyle","opacity"],sbu=function(n){function t(t,i){var r=n.call(this)||this,u=r,f=new er,e=new st;return u.setTextContent(e),r.setTextGuideLine(f),r.updateData(t,i,!0),r}return i(t,n),t.prototype.updateData=function(n,t,i){var r=this,o=n.hostModel,f=n.getItemModel(t),s=n.getItemLayout(t),e=f.getModel("emphasis"),u=f.get(obu);u=null==u?1:u;i||se(r);r.useStyle(n.getItemVisual(t,"style"));r.style.lineJoin="round";i?(r.setShape({points:s.points}),r.style.opacity=0,ii(r,{style:{opacity:u}},o,t)):lt(r,{style:{opacity:u},shape:{points:s.points}},o,t);rr(r,f);this._updateLabel(n,t);ui(this,e.get("focus"),e.get("blurScope"),e.get("disabled"))},t.prototype._updateLabel=function(n,t){var u=this,h=this.getTextGuideLine(),f=u.getTextContent(),c=n.hostModel,o=n.getItemModel(t),i=n.getItemLayout(t).label,s=n.getItemVisual(t,"style"),e=s.fill,r;or(f,bi(o),{labelFetcher:n.hostModel,labelDataIndex:t,defaultOpacity:s.opacity,defaultText:n.getName(t)},{normal:{align:i.textAlign,verticalAlign:i.verticalAlign}});u.setTextConfig({local:!0,inside:!!i.inside,insideStroke:e,outsideFill:e});r=i.linePoints;h.setShape({points:r});u.textGuideLineConfig={anchor:r?new g(r[0][0],r[0][1]):null};lt(f,{style:{x:i.x,y:i.y}},c,t);f.attr({rotation:i.rotation,originX:i.x,originY:i.y,z2:10});ddt(u,gdt(o),{stroke:e})},t}(fr),hbu=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i.ignoreLabelLineUpdate=!0,i}return i(t,n),t.prototype.render=function(n){var t=n.getData(),i=this._data,r=this.group;t.diff(i).add(function(n){var i=new sbu(t,n);t.setItemGraphicEl(n,i);r.add(i)}).update(function(n,u){var f=i.getItemGraphicEl(u);f.updateData(t,n);r.add(f);t.setItemGraphicEl(n,f)}).remove(function(t){id(i.getItemGraphicEl(t),n,t)}).execute();this._data=t},t.prototype.remove=function(){this.group.removeAll();this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(wt),cbu=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i}return i(t,n),t.prototype.init=function(t){n.prototype.init.apply(this,arguments);this.legendVisualProvider=new en(s(this.getData,this),s(this.getRawData,this));this._defaultLabelLine(t)},t.prototype.getInitialData=function(){return ew(this,{coordDimensions:["value"],encodeDefaulter:w(cwt,this)})},t.prototype._defaultLabelLine=function(n){ul(n,"labelLine",["show"]);var t=n.labelLine,i=n.emphasis.labelLine;t.show=t.show&&n.label.show;i.show=i.show&&n.emphasis.label.show},t.prototype.getDataParams=function(t){var i=this.getData(),r=n.prototype.getDataParams.call(this,t),u=i.mapDimension("value"),f=i.getSum(u);return r.percent=f?+(i.get(u,t)/f*100).toFixed(2):0,r.$vars.push("percent"),r},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(bt);car=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i._dataGroup=new p,i._initialized=!1,i}return i(t,n),t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(n){var o;this._progressiveEls=null;var i=this._dataGroup,t=n.getData(),u=this._data,r=n.coordinateSystem,f=r.dimensions,e=yar(n);(t.diff(u).add(function(n){pii(aar(t,i,n,f,r),t,n,e)}).update(function(i,o){var s=u.getItemGraphicEl(o),h=lar(t,i,f,r);t.setItemGraphicEl(i,s);lt(s,{shape:{points:h}},n,i);se(s);pii(s,t,i,e)}).remove(function(n){var t=u.getItemGraphicEl(n);i.remove(t)}).execute(),this._initialized)||(this._initialized=!0,o=function(n,t,i){var f=n.model,r=n.getRect(),u=new ot({shape:{x:r.x,y:r.y,width:r.width,height:r.height}}),e="horizontal"===f.get("layout")?"width":"height";return u.setShape(e,0),ii(u,{shape:{width:r.width,height:r.height}},t,i),u}(r,n,function(){setTimeout(function(){i.removeClipPath()})}),i.setClipPath(o));this._data=t},t.prototype.incrementalPrepareRender=function(){this._initialized=!0;this._data=null;this._dataGroup.removeAll()},t.prototype.incrementalRender=function(n,t){for(var r,u=t.getData(),f=t.coordinateSystem,e=f.dimensions,o=yar(t),s=this._progressiveEls=[],i=n.start;i<n.end;i++)r=aar(u,this._dataGroup,i,e,f),r.incremental=!0,pii(r,u,i,o),s.push(r)},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll();this._data=null},t.type="parallel",t}(wt);par=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i.visualStyleAccessPath="lineStyle",i.visualDrawType="stroke",i}return i(t,n),t.prototype.getInitialData=function(){return lo(null,this,{useEncodeDefaulter:s(abu,null,this)})},t.prototype.getRawIndicesByActiveState=function(n){var r=this.coordinateSystem,t=this.getData(),i=[];return r.eachActiveState(t,function(r,u){n===r&&i.push(t.getRawIndex(u))}),i},t.type="series.parallel",t.dependencies=["parallel"],t.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},t}(bt);war=["lineStyle","opacity"];bar={seriesType:"parallel",reset:function(n){var t=n.coordinateSystem,i={normal:n.get(["lineStyle","opacity"]),active:n.get("activeOpacity"),inactive:n.get("inactiveOpacity")};return{progress:function(n,r){t.eachActiveState(r,function(n,t){var f=i[n],u;"normal"===n&&r.hasItemOption&&(u=r.getItemModel(t).get(war,!0),null!=u&&(f=u));r.ensureUniqueItemVisual(t,"style").opacity=f},n.start,n.end)}}}};kar=function(n){function u(){var t=null!==n&&n.apply(this,arguments)||this;return t.type=u.type,t}return i(u,n),u.prototype.render=function(n,i,r){this._model=n;this._api=r;this._handlers||(this._handlers={},t(dar,function(n,t){r.getZr().on(t,this._handlers[t]=s(n,this))},this));cp(this,"_throttledDispatchExpand",n.get("axisExpandRate"),"fixRate")},u.prototype.dispose=function(n,i){ng(this,"_throttledDispatchExpand");t(this._handlers,function(n,t){i.getZr().off(t,n)});this._handlers=null},u.prototype._throttledDispatchExpand=function(n){this._dispatchExpand(n)},u.prototype._dispatchExpand=function(n){n&&this._api.dispatchAction(r({type:"parallelAxisExpand"},n))},u.type="parallel",u}(ni);dar={mousedown:function(n){wii(this,"click")&&(this._mouseDownPoint=[n.offsetX,n.offsetY])},mouseup:function(n){var t=this._mouseDownPoint,i,r;if(wii(this,"click")&&t){if(i=[n.offsetX,n.offsetY],Math.pow(t[0]-i[0],2)+Math.pow(t[1]-i[1],2)>5)return;r=this._model.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]);"none"!==r.behavior&&this._dispatchExpand({axisExpandWindow:r.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(n){if(!this._mouseDownPoint&&wii(this,"mousemove")){var i=this._model,r=i.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]),t=r.behavior;"jump"===t&&this._throttledDispatchExpand.debounceNextCall(i.get("axisExpandDebounce"));this._throttledDispatchExpand("none"===t?null:{axisExpandWindow:r.axisExpandWindow,animation:"jump"===t?null:{duration:0}})}}};gar=function(n){function r(){var t=null!==n&&n.apply(this,arguments)||this;return t.type=r.type,t}return i(r,n),r.prototype.init=function(){n.prototype.init.apply(this,arguments);this.mergeOption({})},r.prototype.mergeOption=function(n){var t=this.option;n&&k(t,n,!0);this._initDimensions()},r.prototype.contains=function(n,t){var i=n.get("parallelIndex");return null!=i&&t.getComponent("parallel",i)===this},r.prototype.setAxisExpand=function(n){t(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(t){n.hasOwnProperty(t)&&(this.option[t]=n[t])},this)},r.prototype._initDimensions=function(){var n=this.dimensions=[],i=this.parallelAxisIndex=[];t(yt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(n){return(n.get("parallelIndex")||0)===this.componentIndex},this),function(t){n.push("dim"+t.get("dim"));i.push(t.componentIndex)})},r.type="parallel",r.dependencies=["parallelAxis"],r.layoutMode="box",r.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},r}(rt);nvr=function(n){function t(t,i,r,u,f){var e=n.call(this,t,i,r)||this;return e.type=u||"value",e.axisIndex=f,e}return i(t,n),t.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},t}(pu);var kii=t,tvr=Math.min,ivr=Math.max,rvr=Math.floor,ybu=Math.ceil,uvr=ri,pbu=Math.PI,wbu=function(){function n(n,t,i){this.type="parallel";this._axesMap=c();this._axesLayout={};this.dimensions=n.dimensions;this._model=n;this._init(n,t,i)}return n.prototype._init=function(n,t){var i=n.dimensions,r=n.parallelAxisIndex;kii(i,function(n,i){var e=r[i],u=t.getComponent("parallelAxis",e),f=this._axesMap.set(n,new nvr(n,pg(u),[0,0],u.get("type"),e)),o="category"===f.type;f.onBand=o&&u.get("boundaryGap");f.inverse=u.get("inverse");u.axis=f;f.model=u;f.coordinateSystem=u.coordinateSystem=this},this)},n.prototype.update=function(n){this._updateAxesFromSeries(this._model,n)},n.prototype.containPoint=function(n){var t=this._makeLayoutInfo(),i=t.axisBase,r=t.layoutBase,u=t.pixelDimIndex,f=n[1-u],e=n[u];return f>=i&&f<=i+t.axisLength&&e>=r&&e<=r+t.layoutLength},n.prototype.getModel=function(){return this._model},n.prototype._updateAxesFromSeries=function(n,t){t.eachSeries(function(i){if(n.contains(i,t)){var r=i.getData();kii(this.dimensions,function(n){var t=this._axesMap.get(n);t.scale.unionExtentFromData(r,r.mapDimension(n));la(t.scale,t.model)},this)}},this)},n.prototype.resize=function(n,t){this._rect=ci(n.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()});this._layoutAxes()},n.prototype.getRect=function(){return this._rect},n.prototype._makeLayoutInfo=function(){var i,r=this._model,o=this._rect,l=["x","y"],a=["width","height"],v=r.get("layout"),f="horizontal"===v?0:1,s=o[a[f]],c=[0,s],u=this.dimensions.length,t=pst(r.get("axisExpandWidth"),c),h=pst(r.get("axisExpandCount")||0,[0,u]),w=r.get("axisExpandable")&&u>3&&u>h&&h>1&&t>0&&s>0,n=r.get("axisExpandWindow"),e,y,p;return n?(i=pst(n[1]-n[0],c),n[1]=n[0]+i):(i=pst(t*(h-1),c),(n=[t*(r.get("axisExpandCenter")||rvr(u/2))-i/2])[1]=n[0]+i),e=(s-i)/(u-h),e<3&&(e=0),y=[rvr(uvr(n[0]/t,1))+1,ybu(uvr(n[1]/t,1))-1],p=e/t*n[0],{layout:v,pixelDimIndex:f,layoutBase:o[l[f]],layoutLength:s,axisBase:o[l[1-f]],axisLength:o[a[1-f]],axisExpandable:w,axisExpandWidth:t,axisCollapseWidth:e,axisExpandWindow:n,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:p}},n.prototype._layoutAxes=function(){var i=this._rect,r=this._axesMap,u=this.dimensions,n=this._makeLayoutInfo(),t=n.layout;r.each(function(t){var i=[0,n.axisLength],r=t.inverse?1:0;t.setExtent(i[r],i[1-r])});kii(u,function(r,u){var f=(n.axisExpandable?kbu:bbu)(u,n),o={horizontal:{x:f.position,y:n.axisLength},vertical:{x:0,y:f.position}},c={horizontal:pbu/2,vertical:0},s=[o[t].x+i.x,o[t].y+i.y],h=c[t],e=[1,0,0,1,0,0];th(e,e,h);ne(e,e,s);this._axesLayout[r]={position:s,rotation:h,transform:e,axisNameAvailableWidth:f.axisNameAvailableWidth,axisLabelShow:f.axisLabelShow,nameTruncateMaxWidth:f.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},n.prototype.getAxis=function(n){return this._axesMap.get(n)},n.prototype.dataToPoint=function(n,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(n),t)},n.prototype.eachActiveState=function(n,i,r,u){var l,f,e;null==r&&(r=0);null==u&&(u=n.count());var a=this._axesMap,s=this.dimensions,h=[],c=[];for(t(s,function(t){h.push(n.mapDimension(t));c.push(a.get(t).model)}),l=this.hasAxisBrushed(),f=r;f<u;f++){if(e=void 0,l){e="active";for(var v=n.getValues(h,f),o=0,y=s.length;o<y;o++)if("inactive"===c[o].getActiveState(v[o])){e="inactive";break}}else e="normal";i(e,f)}},n.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,r=this._axesMap,i=!1,n=0,u=t.length;n<u;n++)"normal"!==r.get(t[n]).model.getActiveState()&&(i=!0);return i},n.prototype.axisCoordToPoint=function(n,t){return he([n,0],this._axesLayout[t].transform)},n.prototype.getAxisLayout=function(n){return y(this._axesLayout[n])},n.prototype.getSlidedAxisExpandWindow=function(n){var i=this._makeLayoutInfo(),a=i.pixelDimIndex,t=i.axisExpandWindow.slice(),e=t[1]-t[0],c=[0,i.axisExpandWidth*(i.axisCount-1)],o;if(!this.containPoint(n))return{behavior:"none",axisExpandWindow:t};var r,u=n[a]-i.layoutBase-i.axisExpandWindow0Pos,s="slide",h=i.axisCollapseWidth,f=this._model.get("axisExpandSlideTriggerArea"),l=null!=f[0];return h?(l&&h&&u<e*f[0]?(s="jump",r=u-e*f[2]):l&&h&&u>e*(1-f[0])?(s="jump",r=u-e*(1-f[2])):(r=u-e*f[1])>=0&&(r=u-e*(1-f[1]))<=0&&(r=0),(r*=i.axisExpandWidth/h)?fv(r,t,c,"all"):s="none"):(o=t[1]-t[0],(t=[ivr(0,c[1]*u/o-o/2)])[1]=tvr(c[1],t[0]+o),t[0]=t[1]-o),{axisExpandWindow:t,behavior:s}},n}();fvr={create:function(n,t){var i=[];return n.eachComponent("parallel",function(r,u){var f=new wbu(r,n,t);f.name="parallel_"+u;f.resize(r,t);r.coordinateSystem=f;f.model=r;i.push(f)}),n.eachSeries(function(n){if("parallel"===n.get("coordinateSystem")){var t=n.getReferringComponents("parallel",oi).models[0];n.coordinateSystem=t.coordinateSystem}}),i}};wst=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i.activeIntervals=[],i}return i(t,n),t.prototype.getAreaSelectStyle=function(){return el([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(n){var i=this.activeIntervals=y(n),t;if(i)for(t=i.length-1;t>=0;t--)lu(i[t])},t.prototype.getActiveState=function(n){var t=this.activeIntervals,r,i,u;if(!t.length)return"normal";if(null==n||isNaN(+n))return"inactive";if(1===t.length){if(r=t[0],r[0]<=n&&n<=r[1])return"active"}else for(i=0,u=t.length;i<u;i++)if(t[i][0]<=n&&n<=t[i][1])return"active";return"inactive"},t}(rt);fi(wst,dp);var ev=!0,gn=Math.min,vw=Math.max,dbu=Math.pow,evr="globalPan",gbu={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},nku={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},ovr={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},tku=0,dii=function(n){function r(i){var r=n.call(this)||this;return r._track=[],r._covers=[],r._handlers={},r._zr=i,r.group=new p,r._uid="brushController_"+tku++,t(nyr,function(n,t){this._handlers[t]=s(n,this)},r),r}return i(r,n),r.prototype.enableBrush=function(n){return this._brushType&&this._doDisableBrush(),n.brushType&&this._doEnableBrush(n),this},r.prototype._doEnableBrush=function(n){var i=this._zr;this._enableGlobalPan||function(n,t,i){ynt(n)[t]=i}(i,evr,this._uid);t(this._handlers,function(n,t){i.on(t,n)});this._brushType=n.brushType;this._brushOption=k(y(ovr),n,!0)},r.prototype._doDisableBrush=function(){var n=this._zr;!function(n,t,i){var r=ynt(n);r[t]===i&&(r[t]=null)}(n,evr,this._uid);t(this._handlers,function(t,i){n.off(i,t)});this._brushType=this._brushOption=null},r.prototype.setPanels=function(n){if(n&&n.length){var i=this._panels={};t(n,function(n){i[n.panelId]=y(n)})}else this._panels=null;return this},r.prototype.mount=function(n){n=n||{};this._enableGlobalPan=n.enableGlobalPan;var t=this.group;return this._zr.add(t),t.attr({x:n.x||0,y:n.y||0,rotation:n.rotation||0,scaleX:n.scaleX||1,scaleY:n.scaleY||1}),this._transform=t.getLocalTransform(),this},r.prototype.updateCovers=function(n){function e(n,t){return(null!=n.id?n.id:"\0-brush-index-"+t)+"-"+n.brushType}function o(f,e){var o=n[f],s;null!=e&&t[e]===u?r[f]=t[e]:(s=r[f]=null!=e?(t[e].__brushOption=o,t[e]):hvr(i,svr(i,o)),gii(i,s))}n=f(n,function(n){return k(y(ovr),n,!0)});var t=this._covers,r=this._covers=[],i=this,u=this._creatingCover;return new co(t,n,function(n,t){return e(n.__brushOption,t)},e).add(o).update(o).remove(function(n){t[n]!==u&&i.group.remove(t[n])}).execute(),this},r.prototype.unmount=function(){return this.enableBrush(!1),iri(this),this._zr.remove(this.group),this},r.prototype.dispose=function(){this.unmount();this.off()},r}(nf);nyr={mousedown:function(n){if(this._dragging)tyr(this,n);else if(!n.target||!n.target.draggable){ori(n);var t=this.group.transformCoordToLocal(n.offsetX,n.offsetY);this._creatingCover=null;(this._creatingPanel=tri(this,n,t))&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(n){var r=n.offsetX,u=n.offsetY,i=this.group.transformCoordToLocal(r,u),t;(function(n,t,i){var r,e;if(n._brushType&&!function(n,t,i){var r=n._zr;return t<0||t>r.getWidth()||i<0||i>r.getHeight()}(n,t.offsetX,t.offsetY)){var o=n._zr,f=n._covers,u=tri(n,t,i);if(!n._dragging)for(r=0;r<f.length;r++)if(e=f[r].__brushOption,u&&(u===ev||e.panelId===u.panelId)&&ntt[e.brushType].contain(f[r],i[0],i[1]))return;u&&o.setCursorStyle("crosshair")}}(this,n,i),this._dragging)&&(ori(n),t=dvr(this,n,i,!1),t&&ov(this,t))},mouseup:function(n){tyr(this,n)}};ntt={lineX:iyr(0),lineY:iyr(1),rect:{createCover:function(n,t){function i(n){return n}return yvr({toRectRange:i,fromRectRange:i},n,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(n){var t=vvr(n);return wvr(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(n,t,i,r){pvr(n,t,i,r)},updateCommon:rri,contain:sri},polygon:{createCover:function(n,t){var i=new p;return i.add(new er({name:"main",style:uri(t),silent:!0})),i},getCreatingRange:function(n){return n},endCreating:function(n,t){t.remove(t.childAt(0));t.add(new fr({name:"main",draggable:!0,drift:w(iku,n,t),ondragend:w(ov,n,{isEnd:!0})}))},updateCoverShape:function(n,t,i){t.childAt(0).setShape({points:eri(n,t,i)})},updateCommon:rri,contain:sri}};var rku=["axisLine","axisTickLabel","axisName"],uku=function(n){function u(){var t=null!==n&&n.apply(this,arguments)||this;return t.type=u.type,t}return i(u,n),u.prototype.init=function(t,i){n.prototype.init.apply(this,arguments);(this._brushController=new dii(i.getZr())).on("brush",s(this._onBrush,this))},u.prototype.render=function(n,i,u,f){var o;if(!function(n,t,i){return i&&"axisAreaSelect"===i.type&&t.findComponents({mainType:"parallelAxis",query:i})[0]===n}(n,i,f)&&(this.axisModel=n,this.api=u,this.group.removeAll(),o=this._axisGroup,this._axisGroup=new p,this.group.add(this._axisGroup),n.get("show"))){var s=function(n,t){return t.getComponent("parallel",n.get("parallelIndex"))}(n,i),a=s.coordinateSystem,h=n.getAreaSelectStyle(),c=h.width,v=n.axis.dim,l=r({strokeContainThreshold:c},a.getAxisLayout(v)),e=new ru(n,l);t(rku,e.add,e);this._axisGroup.add(e.getGroup());this._refreshBrushController(l,h,n,s,c,u);fd(o,this._axisGroup,n)}},u.prototype._refreshBrushController=function(n,t,i,r,u,e){var s=i.axis.getExtent(),h=s[1]-s[0],c=Math.min(30,.1*Math.abs(h)),o=nt.create({x:s[0],y:-u/2,width:h,height:u});o.x-=c;o.width+=2*c;this._brushController.mount({enableGlobalPan:!0,rotation:n.rotation,x:n.position[0],y:n.position[1]}).setPanels([{panelId:"pl",clipPath:ryr(o),isTargetByCursor:fyr(o,e,r),getLinearBrushOtherExtent:uyr(o,0)}]).enableBrush({brushType:"lineX",brushStyle:t,removeOnClick:!0}).updateCovers(function(n){var t=n.axis;return f(n.activeIntervals,function(n){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(n[0],!0),t.dataToCoord(n[1],!0)]}})}(i))},u.prototype._onBrush=function(n){var r=n.areas,t=this.axisModel,i=t.axis,u=f(r,function(n){return[i.coordToData(n.range[0],!0),i.coordToData(n.range[1],!0)]});(!t.option.realtime===n.isEnd||n.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:t.id,intervals:u})},u.prototype.dispose=function(){this._brushController.dispose()},u.type="parallelAxis",u}(ni),fku={type:"axisAreaSelect",event:"axisAreaSelected"},eku={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};var oku=function(){this.x1=0;this.y1=0;this.x2=0;this.y2=0;this.cpx1=0;this.cpy1=0;this.cpx2=0;this.cpy2=0;this.extent=0},sku=function(n){function t(t){return n.call(this,t)||this}return i(t,n),t.prototype.getDefaultShape=function(){return new oku},t.prototype.buildPath=function(n,t){var i=t.extent;n.moveTo(t.x1,t.y1);n.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2);"vertical"===t.orient?(n.lineTo(t.x2+i,t.y2),n.bezierCurveTo(t.cpx2+i,t.cpy2,t.cpx1+i,t.cpy1,t.x1+i,t.y1)):(n.lineTo(t.x2,t.y2+i),n.bezierCurveTo(t.cpx2,t.cpy2+i,t.cpx1,t.cpy1+i,t.x1,t.y1+i));n.closePath()},t.prototype.highlight=function(){ss(this)},t.prototype.downplay=function(){hs(this)},t}(ut),hku=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i._focusAdjacencyDisabled=!1,i}return i(t,n),t.prototype.render=function(n,t,i){var h=this,c=n.getGraph(),r=this.group,e=n.layoutInfo,u=e.width,f=e.height,o=n.getData(),l=n.getData("edge"),s=n.get("orient");this._model=n;r.removeAll();r.x=e.x;r.y=e.y;c.eachEdge(function(t){var i=new sku,ut=b(i),ht,tt,it,rt;ut.dataIndex=t.dataIndex;ut.seriesIndex=n.seriesIndex;ut.dataType="edge";var o,h,a,p,ft,et,ot,st,v=t.getModel(),ct=v.getModel("lineStyle"),e=ct.get("curveness"),c=t.node1.getLayout(),lt=t.node1.getModel(),w=lt.get("localX"),k=lt.get("localY"),d=t.node2.getLayout(),at=t.node2.getModel(),g=at.get("localX"),nt=at.get("localY"),y=t.getLayout();i.shape.extent=Math.max(1,y.dy);i.shape.orient=s;"vertical"===s?(o=(null!=w?w*u:c.x)+y.sy,h=(null!=k?k*f:c.y)+c.dy,a=(null!=g?g*u:d.x)+y.ty,ft=o,et=h*(1-e)+(p=null!=nt?nt*f:d.y)*e,ot=a,st=h*e+p*(1-e)):(o=(null!=w?w*u:c.x)+c.dx,h=(null!=k?k*f:c.y)+y.sy,ft=o*(1-e)+(a=null!=g?g*u:d.x)*e,et=h,ot=o*e+a*(1-e),st=p=(null!=nt?nt*f:d.y)+y.ty);i.setShape({x1:o,y1:h,x2:a,y2:p,cpx1:ft,cpy1:et,cpx2:ot,cpy2:st});i.useStyle(ct.getItemStyle());oyr(i.style,s,t);ht=""+v.get("value");tt=bi(v,"edgeLabel");or(i,tt,{labelFetcher:{getFormattedLabel:function(t,i,r,u,f,e){return n.getFormattedLabel(t,i,"edge",u,gf(f,tt.normal&&tt.normal.get("formatter"),ht),e)}},labelDataIndex:t.dataIndex,defaultText:ht});i.setTextConfig({position:"inside"});it=v.getModel("emphasis");rr(i,v,"lineStyle",function(n){var i=n.getItemStyle();return oyr(i,s,t),i});r.add(i);l.setItemGraphicEl(t.dataIndex,i);rt=it.get("focus");ui(i,"adjacency"===rt?t.getAdjacentDataIndices():"trajectory"===rt?t.getTrajectoryDataIndices():rt,it.get("blurScope"),it.get("disabled"))});c.eachNode(function(t){var s=t.getLayout(),e=t.getModel(),l=e.get("localX"),a=e.get("localY"),c=e.getModel("emphasis"),i=new ot({shape:{x:null!=l?l*u:s.x,y:null!=a?a*f:s.y,width:s.dx,height:s.dy},style:e.getModel("itemStyle").getItemStyle(),z2:10}),h;or(i,bi(e),{labelFetcher:{getFormattedLabel:function(t,i){return n.getFormattedLabel(t,i,"node")}},labelDataIndex:t.dataIndex,defaultText:t.id});i.disableLabelAnimation=!0;i.setStyle("fill",t.getVisual("color"));i.setStyle("decal",t.getVisual("style").decal);rr(i,e);r.add(i);o.setItemGraphicEl(t.dataIndex,i);b(i).dataType="node";h=c.get("focus");ui(i,"adjacency"===h?t.getAdjacentDataIndices():"trajectory"===h?t.getTrajectoryDataIndices():h,c.get("blurScope"),c.get("disabled"))});o.eachItemGraphicEl(function(t,r){o.getItemModel(r).get("draggable")&&(t.drift=function(t,e){h._focusAdjacencyDisabled=!0;this.shape.x+=t;this.shape.y+=e;this.dirty();i.dispatchAction({type:"dragNode",seriesId:n.id,dataIndex:o.getRawIndex(r),localX:this.shape.x/u,localY:this.shape.y/f})},t.ondragend=function(){h._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move")});!this._data&&n.isAnimationEnabled()&&r.setClipPath(function(n,t,i){var r=new ot({shape:{x:n.x-10,y:n.y-10,width:0,height:n.height+20}});return ii(r,{shape:{width:n.width+20}},t,i),r}(r.getBoundingRect(),n,function(){r.removeClipPath()}));this._data=n.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(wt);syr=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i}return i(t,n),t.prototype.getInitialData=function(n,t){var u=n.edges||n.links,f=n.data||n.nodes,r=n.levels,e,i,o;for(this.levelModels=[],e=this.levelModels,i=0;i<r.length;i++)null!=r[i].depth&&r[i].depth>=0&&(e[r[i].depth]=new at(r[i],this,t));if(f&&u)return o=har(f,u,this,!0,function(n,t){n.wrapMethod("getItemModel",function(n,t){var r=n.parentModel,u=r.getData().getItemLayout(t),f,i;return u&&(f=u.depth,i=r.levelModels[f],i&&(n.parentModel=i)),n});t.wrapMethod("getItemModel",function(n,t){var r=n.parentModel,u=r.getGraph().getEdgeByIndex(t).node1.getLayout(),f,i;return u&&(f=u.depth,i=r.levelModels[f],i&&(n.parentModel=i)),n})}),o.data},t.prototype.setNodePosition=function(n,t){var i=(this.option.data||this.option.nodes)[n];i.localX=t[0];i.localY=t[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(n,t,i){function f(n){return isNaN(n)||null==n}var r,u;if("edge"===i){var e=this.getDataParams(n,i),o=e.data,s=e.value;return ki("nameValue",{name:o.source+" -- "+o.target,value:s,noValue:f(s)})}return r=this.getGraph().getNodeByIndex(n).getLayout().value,u=this.getDataParams(n,i).data.name,ki("nameValue",{name:null!=u?u+"":null,value:r,noValue:f(r)})},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(t,i){var r=n.prototype.getDataParams.call(this,t,i),u;return null==r.value&&"node"===i&&(u=this.getGraph().getNodeByIndex(t).getLayout().value,r.value=u),r},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(bt);lri=function(){function n(){}return n.prototype.getInitialData=function(n,i){var e,o,s=i.getComponent("xAxis",this.get("xAxisIndex")),h=i.getComponent("yAxis",this.get("yAxisIndex")),b=s.get("type"),k=h.get("type"),c,l,a;"category"===b?(n.layout="horizontal",e=s.getOrdinalMeta(),o=!0):"category"===k?(n.layout="vertical",e=h.getOrdinalMeta(),o=!0):n.layout=n.layout||"horizontal";var v=["x","y"],f="horizontal"===n.layout?0:1,d=this._baseAxisDim=v[f],g=v[1-f],y=[s,h],nt=y[f].get("type"),tt=y[1-f].get("type"),p=n.data;return p&&o&&(c=[],t(p,function(n,t){var i;u(n)?(i=n.slice(),n.unshift(t)):u(n.value)?((i=r({},n)).value=i.value.slice(),n.value.unshift(t)):i=n;c.push(i)}),n.data=c),l=this.defaultValueDimensions,a=[{name:d,type:oet(nt),ordinalMeta:e,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:g,type:oet(tt),dimsDef:l.slice()}],ew(this,{coordDimensions:a,dimensionsCount:l.length+1,encodeDefaulter:w(tbi,a,this)})},n.prototype.getBaseAxis=function(){var n=this._baseAxisDim;return this.ecModel.getComponent(n+"Axis",this.get(n+"AxisIndex")).axis},n}();ari=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],i.visualDrawType="stroke",i}return i(t,n),t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(bt);fi(ari,lri,!0);var kku=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i}return i(t,n),t.prototype.render=function(n){var t=n.getData(),i=this.group,r=this._data,u;this._data||i.removeAll();u="horizontal"===n.get("layout")?1:0;t.diff(r).add(function(n){if(t.hasValue(n)){var r=cyr(t.getItemLayout(n),t,n,u,!0);t.setItemGraphicEl(n,r);i.add(r)}}).update(function(n,f){var e=r.getItemGraphicEl(f),o;t.hasValue(n)?(o=t.getItemLayout(n),e?(se(e),lyr(o,e,t,n)):e=cyr(o,t,n,u),i.add(e),t.setItemGraphicEl(n,e)):i.remove(e)}).remove(function(n){var t=r.getItemGraphicEl(n);t&&i.remove(t)}).execute();this._data=t},t.prototype.remove=function(){var t=this.group,n=this._data;this._data=null;n&&n.eachItemGraphicEl(function(n){n&&t.remove(n)})},t.type="boxplot",t}(wt),dku=function(){},gku=function(n){function t(t){var i=n.call(this,t)||this;return i.type="boxplotBoxPath",i}return i(t,n),t.prototype.getDefaultShape=function(){return new dku},t.prototype.buildPath=function(n,t){var r=t.points,i=0;for(n.moveTo(r[i][0],r[i][1]),i++;i<4;i++)n.lineTo(r[i][0],r[i][1]);for(n.closePath();i<r.length;i++)n.moveTo(r[i][0],r[i][1]),i++,n.lineTo(r[i][0],r[i][1])},t}(ut);yw=t;var idu={type:"echarts:boxplot",transform:function(n){var i=n.upstream,r,t;return i.sourceFormat!==lr&&(r="",vt(r)),t=function(n,t){for(var e,s,nt,a=[],v=[],u=(t=t||{}).boundIQR,y="none"===u||0===u,r=0;r<n.length;r++){var i=lu(n[r].slice()),h=frt(i,.25),tt=frt(i,.5),c=frt(i,.75),p=i[0],w=i[i.length-1],b=(null==u?1.5:u)*(c-h),k=y?p:Math.max(p,h-b),d=y?w:Math.min(w,c+b),f=t.itemNameFormatter,g=l(f)?f({value:r}):o(f)?f.replace("{value}",r+""):r+"";for(a.push([g,k,h,tt,c,d]),e=0;e<i.length;e++)s=i[e],(s<k||s>d)&&(nt=[g,s],v.push(nt))}return{boxData:a,outliers:v}}(i.getRawData(),n.config),[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:t.boxData},{data:t.outliers}]}},rdu=["color","borderColor"],udu=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i}return i(t,n),t.prototype.render=function(n){this.group.removeClipPath();this._progressiveEls=null;this._updateDrawMode(n);this._isLargeDraw?this._renderLarge(n):this._renderNormal(n)},t.prototype.incrementalPrepareRender=function(n){this._clear();this._updateDrawMode(n)},t.prototype.incrementalRender=function(n,t){this._progressiveEls=[];this._isLargeDraw?this._incrementalRenderLarge(n,t):this._incrementalRenderNormal(n,t)},t.prototype.eachRendered=function(n){ph(this._progressiveEls||this.group,n)},t.prototype._updateDrawMode=function(n){var t=n.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(n){var t=n.getData(),r=this._data,i=this.group,u=t.getLayout("isSimpleBox"),f=n.get("clip",!0),e=n.coordinateSystem,o=e.getArea&&e.getArea();this._data||i.removeAll();t.diff(r).add(function(r){var s,e;if(t.hasValue(r)){if(s=t.getItemLayout(r),f&&ayr(o,s))return;e=vri(s,r,!0);ii(e,{shape:{points:s.ends}},n,r);yri(e,t,r,u);i.add(e);t.setItemGraphicEl(r,e)}}).update(function(e,s){var h=r.getItemGraphicEl(s),c;t.hasValue(e)?(c=t.getItemLayout(e),f&&ayr(o,c)?i.remove(h):(h?(lt(h,{shape:{points:c.ends}},n,e),se(h)):h=vri(c),yri(h,t,e,u),i.add(h),t.setItemGraphicEl(e,h))):i.remove(h)}).remove(function(n){var t=r.getItemGraphicEl(n);t&&i.remove(t)}).execute();this._data=t},t.prototype._renderLarge=function(n){this._clear();yyr(n,this.group);var t=n.get("clip",!0)?sot(n.coordinateSystem,!1,n):null;t?this.group.setClipPath(t):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(n,t){for(var u,i,r=t.getData(),f=r.getLayout("isSimpleBox");null!=(u=n.next());)i=vri(r.getItemLayout(u)),yri(i,r,u,f),i.incremental=!0,this.group.add(i),this._progressiveEls.push(i)},t.prototype._incrementalRenderLarge=function(n,t){yyr(t,this.group,this._progressiveEls,!0)},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this.group.removeAll();this._data=null},t.type="candlestick",t}(wt),fdu=function(){},edu=function(n){function t(t){var i=n.call(this,t)||this;return i.type="normalCandlestickBox",i}return i(t,n),t.prototype.getDefaultShape=function(){return new fdu},t.prototype.buildPath=function(n,t){var i=t.points;this.__simpleBox?(n.moveTo(i[4][0],i[4][1]),n.lineTo(i[6][0],i[6][1])):(n.moveTo(i[0][0],i[0][1]),n.lineTo(i[1][0],i[1][1]),n.lineTo(i[2][0],i[2][1]),n.lineTo(i[3][0],i[3][1]),n.closePath(),n.moveTo(i[4][0],i[4][1]),n.lineTo(i[5][0],i[5][1]),n.moveTo(i[6][0],i[6][1]),n.lineTo(i[7][0],i[7][1]))},t}(ut);vyr=function(){};kst=function(n){function t(t){var i=n.call(this,t)||this;return i.type="largeCandlestickBox",i}return i(t,n),t.prototype.getDefaultShape=function(){return new vyr},t.prototype.buildPath=function(n,t){for(var u,r=t.points,i=0;i<r.length;)this.__sign===r[i++]?(u=r[i++],n.moveTo(u,r[i++]),n.lineTo(u,r[i++])):i+=3},t}(ut);wri=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],i}return i(t,n),t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(n,t,i){var r=t.getItemLayout(n);return r&&i.rect(r.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(bt);fi(wri,lri,!0);var hdu=["itemStyle","borderColor"],cdu=["itemStyle","borderColor0"],ldu=["itemStyle","borderColorDoji"],adu=["itemStyle","color"],vdu=["itemStyle","color0"],ydu={seriesType:"candlestick",plan:hp(),performRawSeries:!0,reset:function(n,t){function i(n,t){return t.get(n>0?adu:vdu)}function u(n,t){return t.get(0===n?ldu:n>0?hdu:cdu)}if(!t.isSeriesFiltered(n))return!n.pipelineContext.large&&{progress:function(n,t){for(var f;null!=(f=n.next());){var o=t.getItemModel(f),s=t.getItemLayout(f).sign,e=o.getItemStyle();e.fill=i(s,o);e.stroke=u(s,o)||e.fill;r(t.ensureUniqueItemVisual(f,"style"),e)}}}}},pdu={seriesType:"candlestick",plan:hp(),reset:function(n){var o=n.coordinateSystem,t=n.getData(),i=function(n,t){var r,u=n.getBaseAxis(),i="category"===u.type?u.getBandWidth():(r=u.getExtent(),Math.abs(r[1]-r[0])/t.count()),o=e(d(n.get("barMaxWidth"),i),i),s=e(d(n.get("barMinWidth"),1),i),f=n.get("barWidth");return null!=f?e(f,i):Math.max(Math.min(i/2,o),s)}(n,t),h=["x","y"],s=t.getDimensionIndex(t.mapDimension(h[0])),r=f(t.mapDimensionsAll(h[1]),t.getDimensionIndex,t),c=r[0],u=r[1],l=r[2],a=r[3];if(t.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),!(s<0||r.length<4))return{progress:n.pipelineContext.large?function(t,i){for(var r,f,e=vo(4*t.count),h=0,y=[],p=[],v=i.getStore(),d=!!n.get(["itemStyle","borderColorDoji"]);null!=(f=t.next());){var w=v.get(s,f),g=v.get(c,f),nt=v.get(u,f),b=v.get(l,f),k=v.get(a,f);isNaN(w)||isNaN(b)||isNaN(k)?(e[h++]=NaN,h+=3):(e[h++]=pyr(v,f,g,nt,u,d),y[0]=w,y[1]=b,r=o.dataToPoint(y,null,p),e[h++]=r?r[0]:NaN,e[h++]=r?r[1]:NaN,y[1]=k,r=o.dataToPoint(y,null,p),e[h++]=r?r[1]:NaN)}i.setLayout("largePoints",e)}:function(n,t){function e(n,t){var i=[];return i[0]=t,i[1]=n,isNaN(t)||isNaN(n)?[NaN,NaN]:o.dataToPoint(i)}function tt(n,t,r){var u=t.slice(),f=t.slice();u[0]=ud(u[0]+i/2,1,!1);f[0]=ud(f[0]-i/2,1,!0);r?n.push(u,f):n.push(f,u)}function et(n,t,r){var u=e(n,r),f=e(t,r);return u[0]-=i/2,f[0]-=i/2,{x:u[0],y:u[1],width:i,height:f[1]-u[1]}}function w(n){return n[0]=ud(n[0],1),n}for(var r,f=t.getStore(),nt;null!=(r=n.next());){var h=f.get(s,r),v=f.get(c,r),y=f.get(u,r),d=f.get(l,r),g=f.get(a,r),it=Math.min(v,y),rt=Math.max(v,y),b=e(it,h),k=e(rt,h),ut=e(d,h),ft=e(g,h),p=[];tt(p,k,0);tt(p,b,1);p.push(w(ft),w(k),w(ut),w(b));nt=!!t.getItemModel(r).get(["itemStyle","borderColorDoji"]);t.setItemLayout(r,{sign:pyr(f,r,v,y,u,nt),initBaseline:v>y?k[1]:b[1],ends:p,brushRect:et(d,g,h)})}}}}};var wdu=function(n){function t(t,i){var r=n.call(this)||this,u=new rw(t,i),f=new p;return r.add(u),r.add(f),r.updateData(t,i),r}return i(t,n),t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(n){for(var t,r,e=n.symbolType,o=n.color,u=n.rippleNumber,f=this.childAt(1),i=0;i<u;i++)t=si(e,-1,-1,2,2,o),t.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5}),r=-i/u*n.period+n.effectOffset,t.animate("",!0).when(n.period,{scaleX:n.rippleScale/2,scaleY:n.rippleScale/2}).delay(r).start(),t.animateStyle(!0).when(n.period,{opacity:0}).delay(r).start(),f.add(t);wyr(f,n)},t.prototype.updateEffectAnimation=function(n){for(var i,u=this._effectCfg,f=this.childAt(1),r=["symbolType","period","rippleScale","rippleNumber"],t=0;t<r.length;t++)if(i=r[t],u[i]!==n[i])return this.stopEffectAnimation(),void this.startEffectAnimation(n);wyr(f,n)},t.prototype.highlight=function(){ss(this)},t.prototype.downplay=function(){hs(this)},t.prototype.getSymbolType=function(){var n=this.childAt(0);return n&&n.getSymbolType()},t.prototype.updateData=function(n,t){var s=this,e=n.hostModel,f,a,i;this.childAt(0).updateData(n,t);var u=this.childAt(1),r=n.getItemModel(t),v=n.getItemVisual(t,"symbol"),h=vp(n.getItemVisual(t,"symbolSize")),c=n.getItemVisual(t,"style"),l=c&&c.fill,o=r.getModel("emphasis");u.setScale(h);u.traverse(function(n){n.setStyle("fill",l)});f=oa(n.getItemVisual(t,"symbolOffset"),h);f&&(u.x=f[0],u.y=f[1]);a=n.getItemVisual(t,"symbolRotate");u.rotation=(a||0)*Math.PI/180||0;i={};i.showEffectOn=e.get("showEffectOn");i.rippleScale=r.get(["rippleEffect","scale"]);i.brushType=r.get(["rippleEffect","brushType"]);i.period=1e3*r.get(["rippleEffect","period"]);i.effectOffset=t/n.count();i.z=e.getShallow("z")||0;i.zlevel=e.getShallow("zlevel")||0;i.symbolType=v;i.color=l;i.rippleEffectColor=r.get(["rippleEffect","color"]);i.rippleNumber=r.get(["rippleEffect","number"]);"render"===i.showEffectOn?(this._effectCfg?this.updateEffectAnimation(i):this.startEffectAnimation(i),this._effectCfg=i):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(n){"emphasis"===n?"render"!==i.showEffectOn&&s.startEffectAnimation(i):"normal"===n&&"render"!==i.showEffectOn&&s.stopEffectAnimation()});this._effectCfg=i;ui(this,o.get("focus"),o.get("blurScope"),o.get("disabled"))},t.prototype.fadeOut=function(n){n&&n()},t}(p),bdu=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i}return i(t,n),t.prototype.init=function(){this._symbolDraw=new uw(wdu)},t.prototype.render=function(n){var i=n.getData(),t=this._symbolDraw;t.updateData(i,{clipShape:this._getClipShape(n)});this.group.add(t.group)},t.prototype._getClipShape=function(n){var t=n.coordinateSystem,i=t&&t.getArea&&t.getArea();return n.get("clip",!0)?i:null},t.prototype.updateTransform=function(n,t,i){var r=n.getData(),u;this.group.dirty();u=rn("").reset(n,t,i);u.progress&&u.progress({start:0,end:r.count(),count:r.count()},r);this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(n){var t=n.coordinateSystem;t&&t.getRoamTransform&&(this.group.transform=wsi(t.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(wt),kdu=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i.hasSymbolVisual=!0,i}return i(t,n),t.prototype.getInitialData=function(){return lo(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(n,t,i){return i.point(t.getItemLayout(n))},t.type="series.effectScatter",t.dependencies=["grid","polar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},t}(bt),byr=function(n){function t(t,i,r){var u=n.call(this)||this;return u.add(u.createLine(t,i,r)),u._updateEffectSymbol(t,i),u}return i(t,n),t.prototype.createLine=function(n,t,i){return new ast(n,t,i)},t.prototype._updateEffectSymbol=function(n,t){var f=n.getItemModel(t).getModel("effect"),r=f.get("symbolSize"),e=f.get("symbol");u(r)||(r=[r,r]);var s=n.getItemVisual(t,"style"),o=f.get("color")||s&&s.stroke,i=this.childAt(1);this._symbolType!==e&&(this.remove(i),(i=si(e,-.5,-.5,1,1,o)).z2=100,i.culling=!0,this.add(i));i&&(i.setStyle("shadowColor",o),i.setStyle(f.getItemStyle(["color"])),i.scaleX=r[0],i.scaleY=r[1],i.setColor(o),this._symbolType=e,this._symbolScale=r,this._updateEffectAnimation(n,f,t))},t.prototype._updateEffectAnimation=function(n,t,i){var r=this.childAt(1),f;if(r){var c=n.getItemLayout(i),u=1e3*t.get("period"),e=t.get("loop"),o=t.get("roundTrip"),h=t.get("constantSpeed"),s=yi(t.get("delay"),function(t){return t/n.count()*u/3});(r.ignore=!0,this._updateAnimationPoints(r,c),h>0&&(u=this._getLineLength(r)/h*1e3),u!==this._period||e!==this._loop||o!==this._roundTrip)&&(r.stopAnimation(),f=void 0,f=l(s)?s(i):s,r.__t>0&&(f=-u*r.__t),this._animateSymbol(r,u,f,e,o));this._period=u;this._loop=e;this._roundTrip=o}},t.prototype._animateSymbol=function(n,t,i,r,u){if(t>0){n.__t=0;var f=this,e=n.animate("",r).when(u?2*t:t,{__t:u?2:1}).delay(i).during(function(){f._updateSymbolPosition(n)});r||e.done(function(){f.remove(n)});e.start()}},t.prototype._getLineLength=function(n){return ke(n.__p1,n.__cp1)+ke(n.__cp1,n.__p2)},t.prototype._updateAnimationPoints=function(n,t){n.__p1=t[0];n.__p2=t[1];n.__cp1=t[2]||[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]},t.prototype.updateData=function(n,t,i){this.childAt(0).updateData(n,t,i);this._updateEffectSymbol(n,t)},t.prototype._updateSymbolPosition=function(n){var i=n.__p1,u=n.__p2,f=n.__cp1,r=n.__t<1?n.__t:2-n.__t,t=[n.x,n.y],e=t.slice(),s=tr,o=wlt,h,c;t[0]=s(i[0],f[0],u[0],r);t[1]=s(i[1],f[1],u[1],r);h=n.__t<1?o(i[0],f[0],u[0],r):o(u[0],f[0],i[0],1-r);c=n.__t<1?o(i[1],f[1],u[1],r):o(u[1],f[1],i[1],1-r);n.rotation=-Math.atan2(c,h)-Math.PI/2;"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==n.__lastT&&n.__lastT<n.__t?(n.scaleY=1.05*ke(e,t),1===r&&(t[0]=e[0]+(t[0]-e[0])/2,t[1]=e[1]+(t[1]-e[1])/2)):n.scaleY=1===n.__lastT?2*ke(i,t):this._symbolScale[1]);n.__lastT=n.__t;n.ignore=!1;n.x=t[0];n.y=t[1]},t.prototype.updateLayout=function(n,t){this.childAt(0).updateLayout(n,t);var i=n.getItemModel(t).getModel("effect");this._updateEffectAnimation(n,i,t)},t}(p),kyr=function(n){function t(t,i,r){var u=n.call(this)||this;return u._createPolyline(t,i,r),u}return i(t,n),t.prototype._createPolyline=function(n,t,i){var r=n.getItemLayout(t),u=new er({shape:{points:r}});this.add(u);this._updateCommonStl(n,t,i)},t.prototype.updateData=function(n,t,i){var r=n.hostModel;lt(this.childAt(0),{shape:{points:n.getItemLayout(t)}},r,t);this._updateCommonStl(n,t,i)},t.prototype._updateCommonStl=function(n,t,i){var u=this.childAt(0),h=n.getItemModel(t),f=i&&i.emphasisLineStyle,e=i&&i.focus,o=i&&i.blurScope,s=i&&i.emphasisDisabled,r;(!i||n.hasItemOption)&&(r=h.getModel("emphasis"),f=r.getModel("lineStyle").getLineStyle(),s=r.get("disabled"),e=r.get("focus"),o=r.get("blurScope"));u.useStyle(n.getItemVisual(t,"style"));u.style.fill=null;u.style.strokeNoScale=!0;u.ensureState("emphasis").style=f;ui(this,e,o,s)},t.prototype.updateLayout=function(n,t){this.childAt(0).setShape("points",n.getItemLayout(t))},t}(p),ddu=function(n){function t(){var t=null!==n&&n.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return i(t,n),t.prototype.createLine=function(n,t,i){return new kyr(n,t,i)},t.prototype._updateAnimationPoints=function(n,t){var f,e;this._points=t;for(var u=[0],r=0,i=1;i<t.length;i++)f=t[i-1],e=t[i],r+=ke(f,e),u.push(r);if(0!==r){for(i=0;i<u.length;i++)u[i]/=r;this._offsets=u;this._length=r}else this._length=0},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(n){var f=n.__t<1?n.__t:2-n.__t,s=this._points,i=this._offsets,e=s.length,t,h,c,l;if(i){if(h=this._lastFrame,f<this._lastFramePercent){for(t=Math.min(h+1,e-1);t>=0&&!(i[t]<=f);t--);t=Math.min(t,e-2)}else{for(t=h;t<e&&!(i[t]>f);t++);t=Math.min(t-1,e-2)}var o=(f-i[t])/(i[t+1]-i[t]),r=s[t],u=s[t+1];n.x=r[0]*(1-o)+o*u[0];n.y=r[1]*(1-o)+o*u[1];c=n.__t<1?u[0]-r[0]:r[0]-u[0];l=n.__t<1?u[1]-r[1]:r[1]-u[1];n.rotation=-Math.atan2(l,c)-Math.PI/2;this._lastFrame=t;this._lastFramePercent=f;n.ignore=!1}},t}(byr),gdu=function(){this.polyline=!1;this.curveness=0;this.segs=[]},ngu=function(n){function t(t){var i=n.call(this,t)||this;return i._off=0,i.hoverDataIdx=-1,i}return i(t,n),t.prototype.reset=function(){this.notClear=!1;this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new gdu},t.prototype.buildPath=function(n,t){var i,r=t.segs,e=t.curveness,o,s,l,a;if(t.polyline){for(i=this._off;i<r.length;)if(o=r[i++],o>0)for(n.moveTo(r[i++],r[i++]),s=1;s<o;s++)n.lineTo(r[i++],r[i++])}else for(i=this._off;i<r.length;){var h=r[i++],c=r[i++],u=r[i++],f=r[i++];(n.moveTo(h,c),e>0)?(l=(h+u)/2-(c-f)*e,a=(c+f)/2-(u-h)*e,n.quadraticCurveTo(l,a,u,f)):n.lineTo(u,f)}this.incremental&&(this._off=i,this.notClear=!0)},t.prototype.findDataIndex=function(n,t){var h=this.shape,r=h.segs,c=h.curveness,l=this.style.lineWidth,u,i,a,o,s;if(h.polyline)for(u=0,i=0;i<r.length;){if(a=r[i++],a>0)for(var f=r[i++],e=r[i++],v=1;v<a;v++)if(ch(f,e,o=r[i++],s=r[i++],l,n,t))return u;u++}else for(u=0,i=0;i<r.length;){if(f=r[i++],e=r[i++],o=r[i++],s=r[i++],c>0){if(oai(f,e,(f+o)/2-(e-s)*c,(e+s)/2-(o-f)*c,o,s,l,n,t))return u}else if(ch(f,e,o,s,l,n,t))return u;u++}return-1},t.prototype.contain=function(n,t){var i=this.transformCoordToLocal(n,t),r=this.getBoundingRect();return n=i[0],t=i[1],r.contain(n,t)?(this.hoverDataIdx=this.findDataIndex(n,t))>=0:(this.hoverDataIdx=-1,!1)},t.prototype.getBoundingRect=function(){var n=this._rect,o,s;if(!n){for(var t=this.shape.segs,i=1/0,r=1/0,u=-1/0,f=-1/0,e=0;e<t.length;)o=t[e++],s=t[e++],i=Math.min(o,i),u=Math.max(o,u),r=Math.min(s,r),f=Math.max(s,f);n=this._rect=new nt(i,r,u,f)}return n},t}(ut),tgu=function(){function n(){this.group=new p}return n.prototype.updateData=function(n){this._clear();var t=this._create();t.setShape({segs:n.getLayout("linesPoints")});this._setCommon(t,n)},n.prototype.incrementalPrepareUpdate=function(){this.group.removeAll();this._clear()},n.prototype.incrementalUpdate=function(n,t){var f=this._newAdded[0],e=t.getLayout("linesPoints"),r=f&&f.shape.segs,o,u,i;r&&r.length<2e4?(o=r.length,u=new Float32Array(o+e.length),u.set(r),u.set(e,o),f.setShape({segs:u})):(this._newAdded=[],i=this._create(),i.incremental=!0,i.setShape({segs:e}),this._setCommon(i,t),i.__startIndex=n.start)},n.prototype.remove=function(){this._clear()},n.prototype.eachRendered=function(n){this._newAdded[0]&&n(this._newAdded[0])},n.prototype._create=function(){var n=new ngu({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(n),this.group.add(n),n},n.prototype._setCommon=function(n,t){var i=t.hostModel,r,u;n.setShape({polyline:i.get("polyline"),curveness:i.get(["lineStyle","curveness"])});n.useStyle(i.getModel("lineStyle").getLineStyle());n.style.strokeNoScale=!0;r=t.getVisual("style");r&&r.stroke&&n.setStyle("stroke",r.stroke);n.setStyle("fill",null);u=b(n);u.seriesIndex=i.seriesIndex;n.on("mousemove",function(){u.dataIndex=null;var t=n.hoverDataIdx;t>0&&(u.dataIndex=t+n.__startIndex)})},n.prototype._clear=function(){this._newAdded=[];this.group.removeAll()},n}(),dyr={seriesType:"lines",plan:hp(),reset:function(n){var t=n.coordinateSystem,i,r;if(t)return i=n.get("polyline"),r=n.pipelineContext.large,{progress:function(u,f){var h=[],s,w,b,e,a,c,l,v,k,o,y,p;if(r){if(s=void 0,w=u.end-u.start,i){for(b=0,e=u.start;e<u.end;e++)b+=n.getLineCoordsCount(e);s=new Float32Array(w+2*b)}else s=new Float32Array(4*w);for(a=0,c=[],e=u.start;e<u.end;e++)for(l=n.getLineCoords(e,h),i&&(s[a++]=l),v=0;v<l;v++)c=t.dataToPoint(h[v],!1,c),s[a++]=c[0],s[a++]=c[1];f.setLayout("linesPoints",s)}else for(e=u.start;e<u.end;e++){if(k=f.getItemModel(e),o=(l=n.getLineCoords(e,h),[]),i)for(y=0;y<l;y++)o.push(t.dataToPoint(h[y]));else o[0]=t.dataToPoint(h[0]),o[1]=t.dataToPoint(h[1]),p=k.get(["lineStyle","curveness"]),+p&&(o[2]=[(o[0][0]+o[1][0])/2-(o[0][1]-o[1][1])*p,(o[0][1]+o[1][1])/2-(o[1][0]-o[0][0])*p]);f.setItemLayout(e,o)}}}}},igu=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i}return i(t,n),t.prototype.render=function(n,t,i){var o=n.getData(),h=this._updateLineDraw(o,n),u=n.get("zlevel"),s=n.get(["effect","trailLength"]),r=i.getZr(),f="svg"===r.painter.getType(),e;f||r.painter.getLayer(u).clear(!0);null==this._lastZlevel||f||r.configLayer(this._lastZlevel,{motionBlur:!1});this._showEffect(n)&&s>0&&(f||r.configLayer(u,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(s/10+.9,1),0)}));h.updateData(o);e=n.get("clip",!0)&&sot(n.coordinateSystem,!1,n);e?this.group.setClipPath(e):this.group.removeClipPath();this._lastZlevel=u;this._finished=!0},t.prototype.incrementalPrepareRender=function(n,t,i){var r=n.getData();this._updateLineDraw(r,n).incrementalPrepareUpdate(r);this._clearLayer(i);this._finished=!1},t.prototype.incrementalRender=function(n,t){this._lineDraw.incrementalUpdate(n,t.getData());this._finished=n.end===t.getData().count()},t.prototype.eachRendered=function(n){this._lineDraw&&this._lineDraw.eachRendered(n)},t.prototype.updateTransform=function(n,t,i){var r=n.getData(),f=n.pipelineContext,u;if(!this._finished||f.large||f.progressiveRender)return{update:!0};u=dyr.reset(n,t,i);u.progress&&u.progress({start:0,end:r.count(),count:r.count()},r);this._lineDraw.updateLayout();this._clearLayer(i)},t.prototype._updateLineDraw=function(n,t){var i=this._lineDraw,r=this._showEffect(t),u=!!t.get("polyline"),f=t.pipelineContext.large;return i&&r===this._hasEffet&&u===this._isPolyline&&f===this._isLargeDraw||(i&&i.remove(),i=this._lineDraw=f?new tgu:new vst(u?r?ddu:kyr:r?byr:ast),this._hasEffet=r,this._isPolyline=u,this._isLargeDraw=f),this.group.add(i.group),i},t.prototype._showEffect=function(n){return!!n.get(["effect","show"])},t.prototype._clearLayer=function(n){var t=n.getZr();"svg"===t.painter.getType()||null==this._lastZlevel||t.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(n,t){this._lineDraw&&this._lineDraw.remove();this._lineDraw=null;this._clearLayer(t)},t.prototype.dispose=function(n,t){this.remove(n,t)},t.type="lines",t}(wt),rgu="undefined"==typeof Uint32Array?Array:Uint32Array,ugu="undefined"==typeof Float64Array?Array:Float64Array;npr=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i.visualStyleAccessPath="lineStyle",i.visualDrawType="stroke",i}return i(t,n),t.prototype.init=function(t){t.data=t.data||[];gyr(t);var i=this._processFlatCoordsArray(t.data);this._flatCoords=i.flatCoords;this._flatCoordsOffset=i.flatCoordsOffset;i.flatCoords&&(t.data=new Float32Array(i.count));n.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(t){if(gyr(t),t.data){var i=this._processFlatCoordsArray(t.data);this._flatCoords=i.flatCoords;this._flatCoordsOffset=i.flatCoordsOffset;i.flatCoords&&(t.data=new Float32Array(i.count))}n.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(n){var t=this._processFlatCoordsArray(n.data);t.flatCoords&&(this._flatCoords?(this._flatCoords=sb(this._flatCoords,t.flatCoords),this._flatCoordsOffset=sb(this._flatCoordsOffset,t.flatCoordsOffset)):(this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset),n.data=new Float32Array(t.count));this.getRawData().appendData(n.data)},t.prototype._getCoordsFromItemModel=function(n){var t=this.getData().getItemModel(n);return t.option instanceof Array?t.option:t.getShallow("coords")},t.prototype.getLineCoordsCount=function(n){return this._flatCoordsOffset?this._flatCoordsOffset[2*n+1]:this._getCoordsFromItemModel(n).length},t.prototype.getLineCoords=function(n,t){var r;if(this._flatCoordsOffset){for(var u=this._flatCoordsOffset[2*n],f=this._flatCoordsOffset[2*n+1],i=0;i<f;i++)t[i]=t[i]||[],t[i][0]=this._flatCoords[u+2*i],t[i][1]=this._flatCoords[u+2*i+1];return f}for(r=this._getCoordsFromItemModel(n),i=0;i<r.length;i++)t[i]=t[i]||[],t[i][0]=r[i][0],t[i][1]=r[i][1];return r.length},t.prototype._processFlatCoordsArray=function(n){var h=0,o,s,l,a;if(this._flatCoords&&(h=this._flatCoords.length),ht(n[0])){for(var i=n.length,r=new rgu(i),u=new ugu(i),f=0,e=0,c=0,t=0;t<i;)for(c++,o=n[t++],r[e++]=f+h,r[e++]=o,s=0;s<o;s++)l=n[t++],a=n[t++],u[f++]=l,u[f++]=a;return{flatCoordsOffset:new Uint32Array(r.buffer,0,e),flatCoords:u,count:c}}return{flatCoordsOffset:null,flatCoords:null,count:n.length}},t.prototype.getInitialData=function(n){var t=new yr(["value"],this);return t.hasItemOption=!1,t.initData(n.data,[],function(n,i,r,u){if(n instanceof Array)return NaN;t.hasItemOption=!0;var f=n.value;if(null!=f)return f instanceof Array?f[u]:f}),t},t.prototype.formatTooltip=function(n){var t=this.getData().getItemModel(n),r=t.get("name");if(r)return r;var u=t.get("fromName"),f=t.get("toName"),i=[];return null!=u&&i.push(u),null!=f&&i.push(f),ki("nameValue",{name:i.join(" > ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var n=this.option.progressive;return null==n?this.option.large?1e4:this.get("progressive"):n},t.prototype.getProgressiveThreshold=function(){var n=this.option.progressiveThreshold;return null==n?this.option.large?2e4:this.get("progressiveThreshold"):n},t.prototype.getZLevelKey=function(){var n=this.getModel("effect"),t=n.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:n.get("show")&&t>0?t+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(bt);tpr={seriesType:"lines",reset:function(n){var i=dst(n.get("symbol")),r=dst(n.get("symbolSize")),t=n.getData();return t.setVisual("fromSymbol",i&&i[0]),t.setVisual("toSymbol",i&&i[1]),t.setVisual("fromSymbolSize",r&&r[0]),t.setVisual("toSymbolSize",r&&r[1]),{dataEach:t.hasItemOption?function(n,t){var u=n.getItemModel(t),i=dst(u.getShallow("symbol",!0)),r=dst(u.getShallow("symbolSize",!0));i[0]&&n.setItemVisual(t,"fromSymbol",i[0]);i[1]&&n.setItemVisual(t,"toSymbol",i[1]);r[0]&&n.setItemVisual(t,"fromSymbolSize",r[0]);r[1]&&n.setItemVisual(t,"toSymbolSize",r[1])}:null}}};ipr=function(){function n(){this.blurSize=30;this.pointSize=20;this.maxOpacity=1;this.minOpacity=0;this._gradientPixels={inRange:null,outOfRange:null};var n=df.createCanvas();this.canvas=n}return n.prototype.update=function(n,t,i,r,u,f){var k=this._getBrush(),d=this._getGradient(u,"inRange"),g=this._getGradient(u,"outOfRange"),p=this.pointSize+this.blurSize,e=this.canvas,a=e.getContext("2d"),nt=n.length,v,c,l;for(e.width=t,e.height=i,v=0;v<nt;++v){var y=n[v],tt=y[0],it=y[1],o=r(y[2]);a.globalAlpha=o;a.drawImage(k,tt-p,it-p)}if(!e.width||!e.height)return e;for(var w=a.getImageData(0,0,e.width,e.height),h=w.data,s=0,rt=h.length,b=this.minOpacity,ut=this.maxOpacity-b;s<rt;)o=h[s+3]/256,c=4*Math.floor(255*o),o>0?(l=f(o)?d:g,o>0&&(o=o*ut+b),h[s++]=l[c],h[s++]=l[c+1],h[s++]=l[c+2],h[s++]=l[c+3]*o*256):s+=4;return a.putImageData(w,0,0),e},n.prototype._getBrush=function(){var i=this._brushCanvas||(this._brushCanvas=df.createCanvas()),r=this.pointSize+this.blurSize,t=2*r,n;return i.width=t,i.height=t,n=i.getContext("2d"),n.clearRect(0,0,t,t),n.shadowOffsetX=t,n.shadowBlur=this.blurSize,n.shadowColor="#000",n.beginPath(),n.arc(-r,r,this.pointSize,0,2*Math.PI,!0),n.closePath(),n.fill(),i},n.prototype._getGradient=function(n,t){for(var e=this._gradientPixels,i=e[t]||(e[t]=new Uint8ClampedArray(1024)),r=[0,0,0,0],u=0,f=0;f<256;f++)n[t](f/255,!0,r),i[u++]=r[0],i[u++]=r[1],i[u++]=r[2],i[u++]=r[3];return i},n}();var fgu=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i}return i(t,n),t.prototype.render=function(n,t,i){var u,r;t.eachComponent("visualMap",function(t){t.eachTargetSeries(function(i){i===n&&(u=t)})});this._progressiveEls=null;this.group.removeAll();r=n.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(n,i,0,n.getData().count()):rpr(r)&&this._renderOnGeo(r,n,u,i)},t.prototype.incrementalPrepareRender=function(){this.group.removeAll()},t.prototype.incrementalRender=function(n,t,i,r){var u=t.coordinateSystem;u&&(rpr(u)?this.render(t,i,r):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(t,r,n.start,n.end,!0)))},t.prototype.eachRendered=function(n){ph(this._progressiveEls||this.group,n)},t.prototype._renderOnCartesianAndCalendar=function(n,t,i,r,u){var w,b,k,d,h=n.coordinateSystem,g=wa(h,"cartesian2d"),nt,tt,e,y,l,a,rt,s,v,p,ut;g&&(nt=h.getAxis("x"),tt=h.getAxis("y"),w=nt.getBandWidth()+.5,b=tt.getBandWidth()+.5,k=nt.scale.getExtent(),d=tt.scale.getExtent());for(var yt=this.group,f=n.getData(),ft=n.getModel(["emphasis","itemStyle"]).getItemStyle(),et=n.getModel(["blur","itemStyle"]).getItemStyle(),st=n.getModel(["select","itemStyle"]).getItemStyle(),ht=n.get(["itemStyle","borderRadius"]),ct=bi(n),it=n.getModel("emphasis"),lt=it.get("focus"),at=it.get("blurScope"),vt=it.get("disabled"),c=g?[f.mapDimension("x"),f.mapDimension("y"),f.mapDimension("value")]:[f.mapDimension("time"),f.mapDimension("value")],o=i;o<r;o++){if(e=void 0,y=f.getItemVisual(o,"style"),g){if(l=f.get(c[0],o),a=f.get(c[1],o),isNaN(f.get(c[2],o))||isNaN(l)||isNaN(a)||l<k[0]||l>k[1]||a<d[0]||a>d[1])continue;rt=h.dataToPoint([l,a]);e=new ot({shape:{x:rt[0]-w/2,y:rt[1]-b/2,width:w,height:b},style:y})}else{if(isNaN(f.get(c[1],o)))continue;e=new ot({z2:1,shape:h.dataToRect([f.get(c[0],o)]).contentShape,style:y})}f.hasItemOption&&(s=f.getItemModel(o),v=s.getModel("emphasis"),ft=v.getModel("itemStyle").getItemStyle(),et=s.getModel(["blur","itemStyle"]).getItemStyle(),st=s.getModel(["select","itemStyle"]).getItemStyle(),ht=s.get(["itemStyle","borderRadius"]),lt=v.get("focus"),at=v.get("blurScope"),vt=v.get("disabled"),ct=bi(s));e.shape.r=ht;p=n.getRawValue(o);ut="-";p&&null!=p[2]&&(ut=p[2]+"");or(e,ct,{labelFetcher:n,labelDataIndex:o,defaultOpacity:y.opacity,defaultText:ut});e.ensureState("emphasis").style=ft;e.ensureState("blur").style=et;e.ensureState("select").style=st;ui(e,lt,at,vt);e.incremental=u;u&&(e.states.emphasis.hoverLayer=!0);yt.add(e);f.setItemGraphicEl(o,e);this._progressiveEls&&this._progressiveEls.push(e)}},t.prototype._renderOnGeo=function(n,t,i,r){var c=i.targetVisuals.inRange,w=i.targetVisuals.outOfRange,o=t.getData(),e=this._hmLayer||this._hmLayer||new ipr,u,l,p;e.blurSize=t.get("blurSize");e.pointSize=t.get("pointSize");e.minOpacity=t.get("minOpacity");e.maxOpacity=t.get("maxOpacity");u=n.getViewRect().clone();l=n.getRoamTransform();u.applyTransform(l);var s=Math.max(u.x,0),h=Math.max(u.y,0),b=Math.min(u.width+u.x,r.getWidth()),k=Math.min(u.height+u.y,r.getHeight()),a=b-s,v=k-h,d=[o.mapDimension("lng"),o.mapDimension("lat"),o.mapDimension("value")],g=o.mapArray(d,function(t,i,r){var u=n.dataToPoint([t,i]);return u[0]-=s,u[1]-=h,u.push(r),u}),y=i.getExtent(),nt="visualMap.continuous"===i.type?function(n,t){var i=n[1]-n[0];return t=[(t[0]-n[0])/i,(t[1]-n[0])/i],function(n){return n>=t[0]&&n<=t[1]}}(y,i.option.range):function(n,t,i){var e=n[1]-n[0],u=(t=f(t,function(t){return{interval:[(t.interval[0]-n[0])/e,(t.interval[1]-n[0])/e]}})).length,r=0;return function(n){for(var e,f=r;f<u;f++)if((e=t[f].interval)[0]<=n&&n<=e[1]){r=f;break}if(f===u)for(f=r-1;f>=0;f--)if((e=t[f].interval)[0]<=n&&n<=e[1]){r=f;break}return f>=0&&f<u&&i[f]}}(y,i.getPieceList(),i.option.selected);e.update(g,a,v,c.color.getNormalizer(),{inRange:c.color.getColorMapper(),outOfRange:w.color.getColorMapper()},nt);p=new wi({style:{width:a,height:v,x:s,y:h,image:e.canvas},silent:!0});this.group.add(p)},t.type="heatmap",t}(wt),egu=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i}return i(t,n),t.prototype.getInitialData=function(){return lo(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var n=up.get(this.get("coordinateSystem"));if(n&&n.dimensions)return"lng"===n.dimensions[0]&&"lat"===n.dimensions[1]},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(bt),ogu=["itemStyle","borderWidth"],upr=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],bri=new vu,sgu=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i}return i(t,n),t.prototype.render=function(n,t,i){var e=this.group,r=n.getData(),o=this._data,s=n.coordinateSystem,h=s.getBaseAxis().isHorizontal(),f=s.master.getRect(),u={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:n,coordSys:s,coordSysExtent:[[f.x,f.x+f.width],[f.y,f.y+f.height]],isHorizontal:h,valueDim:upr[+h],categoryDim:upr[1-+h]};return r.diff(o).add(function(n){if(r.hasValue(n)){var f=lpr(r,n),i=fpr(r,n,f,u),t=apr(r,u,i);r.setItemGraphicEl(n,t);e.add(t);ppr(t,u,i)}}).update(function(n,t){var i=o.getItemGraphicEl(t);if(r.hasValue(n)){var s=lpr(r,n),f=fpr(r,n,s,u),h=ypr(r,f);i&&h!==i.__pictorialShapeStr&&(e.remove(i),r.setItemGraphicEl(n,null),i=null);i?function(n,t,i){var r=i.animationModel,u=i.dataIndex,f=n.__pictorialBundle;lt(f,{x:i.bundlePosition[0],y:i.bundlePosition[1]},r,u);i.symbolRepeat?opr(n,t,i,!0):spr(n,t,i,!0);hpr(n,i,!0);cpr(n,t,i,!0)}(i,u,f):i=apr(r,u,f,!0);r.setItemGraphicEl(n,i);i.__pictorialSymbolMeta=f;e.add(i);ppr(i,u,f)}else e.remove(i)}).remove(function(n){var t=o.getItemGraphicEl(n);t&&vpr(o,n,t.__pictorialSymbolMeta.animationModel,t)}).execute(),this._data=r,this.group},t.prototype.remove=function(n){var i=this.group,t=this._data;n.get("animation")?t&&t.eachItemGraphicEl(function(i){vpr(t,b(i).dataIndex,n,i)}):i.removeAll()},t.type="pictorialBar",t}(wt);var lgu=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i.hasSymbolVisual=!0,i.defaultSymbol="roundRect",i}return i(t,n),t.prototype.getInitialData=function(t){return t.stack=null,n.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=wh(fw.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(fw),agu=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i._layers=[],i}return i(t,n),t.prototype.render=function(n){function o(n){return n.name}function f(f,e,o){var nt=c._layers,h,v;if("remove"!==f){for(var y,s,w=[],b=[],l=u[e].indices,a=0;a<l.length;a++){var k=t.getItemLayout(l[a]),tt=k.x,it=k.y0,rt=k.y;w.push(tt,it);b.push(tt,it+rt);y=t.getItemVisual(l[a],"style")}var d=t.getItemLayout(l[0]),ut=n.getModel("label").get("margin"),g=n.getModel("emphasis");"add"===f?(h=r[e]=new p,s=new afr({shape:{points:w,stackedOnPoints:b,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),h.add(s),i.add(h),n.isAnimationEnabled()&&s.setClipPath(function(n,t,i){var r=new ot({shape:{x:n.x-10,y:n.y-10,width:0,height:n.height+20}});return ii(r,{shape:{x:n.x-50,width:n.width+100,height:n.height+20}},t,i),r}(s.getBoundingRect(),n,function(){s.removeClipPath()}))):(h=nt[o],s=h.childAt(0),i.add(h),r[e]=h,lt(s,{shape:{points:w,stackedOnPoints:b}},n),se(s));or(s,bi(n),{labelDataIndex:l[a-1],defaultText:t.getName(l[a-1]),inheritColor:y.fill},{normal:{verticalAlign:"middle"}});s.setTextConfig({position:null,local:!0});v=s.getTextContent();v&&(v.x=d.x-ut,v.y=d.y0+d.y/2);s.useStyle(y);t.setItemGraphicEl(e,s);rr(s,n);ui(s,g.get("focus"),g.get("blurScope"),g.get("disabled"))}else i.remove(nt[e])}var t=n.getData(),c=this,i=this.group,u=n.getLayerSeries(),e=t.getLayout("layoutInfo"),l=e.rect,a=e.boundaryGap,h,r;i.x=0;i.y=l.y+a[0];h=new co(this._layersSeries||[],u,o,o);r=[];h.add(s(f,this,"add")).update(s(f,this,"update")).remove(s(f,this,"remove")).execute();this._layersSeries=u;this._layers=r},t.type="themeRiver",t}(wt),vgu=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i}return i(t,n),t.prototype.init=function(){n.prototype.init.apply(this,arguments);this.legendVisualProvider=new en(s(this.getData,this),s(this.getRawData,this))},t.prototype.fixData=function(n){var e=n.length,i={},h=lvt(n,function(n){return i.hasOwnProperty(n[0]+"")||(i[n[0]+""]=-1),n[2]}),u=[],o,t,s,f,r;for(h.buckets.each(function(n,t){u.push({name:t,dataList:n})}),o=u.length,t=0;t<o;++t){for(s=u[t].name,f=0;f<u[t].dataList.length;++f)r=u[t].dataList[f][0]+"",i[r]=t;for(r in i)i.hasOwnProperty(r)&&i[r]!==t&&(i[r]=t,n[e]=[r,0,s],e++)}return n},t.prototype.getInitialData=function(n){for(var e,r,o=this.getReferringComponents("singleAxis",oi).models[0].get("type"),s=yt(n.data,function(n){return void 0!==n[2]}),t=this.fixData(s||[]),h=[],u=this.nameMap=c(),f=0,i=0;i<t.length;++i)h.push(t[i][2]),u.get(t[i][2])||(u.set(t[i][2],f),f++);return e=bp(t,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:oet(o)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,r=new yr(e,this),r.initData(t),r},t.prototype.getLayerSeries=function(){for(var n=this.getData(),f=n.count(),i=[],t=0;t<f;++t)i[t]=t;var r=n.mapDimension("single"),e=lvt(i,function(t){return n.get("name",t)}),u=[];return e.buckets.each(function(t,i){t.sort(function(t,i){return n.get(r,t)-n.get(r,i)});u.push({name:i,indices:t})}),u},t.prototype.getAxisTooltipData=function(n,t){var e,o;u(n)||(n=n?[n]:[]);for(var s,a=this.getData(),r=this.getLayerSeries(),h=[],v=r.length,i=0;i<v;++i){for(var c=Number.MAX_VALUE,l=-1,y=r[i].indices.length,f=0;f<y;++f)e=a.get(n[0],r[i].indices[f]),o=Math.abs(e-t),o<=c&&(s=e,c=o,l=r[i].indices[f]);h.push(l)}return{dataIndices:h,nestestValue:s}},t.prototype.formatTooltip=function(n){var t=this.getData();return ki("nameValue",{name:t.getName(n),value:t.get(t.mapDimension("value"),n)})},t.type="series.themeRiver",t.dependencies=["singleAxis"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},t}(bt);var kpr=function(n){function u(t,i,r,u){var f=n.call(this)||this,e;return f.z2=2,f.textConfig={inside:!0},b(f).seriesIndex=i.seriesIndex,e=new st({z2:4,silent:t.getModel().get(["label","silent"])}),f.setTextContent(e),f.updateData(!0,t,i,r,u),f}return i(u,n),u.prototype.updateData=function(n,i,u,f,e){var o,c,y,w,p,l;this.node=i;i.piece=this;u=u||this._seriesModel;f=f||this._ecModel;o=this;b(o).dataIndex=i.dataIndex;var h=i.getModel(),a=h.getModel("emphasis"),v=i.getLayout(),s=r({},v);s.label=null;c=i.getVisual("style");c.lineJoin="bevel";y=i.getVisual("decal");y&&(c.decal=pp(y,e));w=ba(h.getModel("itemStyle"),s,!0);r(s,w);t(dr,function(n){var i=o.ensureState(n),r=h.getModel([n,"itemStyle"]),t;i.style=r.getItemStyle();t=ba(r,s);t&&(i.shape=t)});n?(o.setShape(s),o.shape.r=v.r0,ii(o,{shape:{r:v.r}},u,i.dataIndex)):(lt(o,{shape:s},u),se(o));o.useStyle(c);this._updateLabel(u);p=h.getShallow("cursor");p&&o.attr("cursor",p);this._seriesModel=u||this._seriesModel;this._ecModel=f||this._ecModel;l=a.get("focus");ui(this,"ancestor"===l?i.getAncestorsIndices():"descendant"===l?i.getDescendantIndices():l,a.get("blurScope"),a.get("disabled"))},u.prototype._updateLabel=function(n){function u(n,t){var i=n.get(t);return null==i?o.get(t):i}var l=this,e=this.node.getModel(),o=e.getModel("label"),i=this.node.getLayout(),h=i.endAngle-i.startAngle,r=(i.startAngle+i.endAngle)/2,a=Math.cos(r),v=Math.sin(r),s=this,f=s.getTextContent(),y=this.node.dataIndex,c=o.get("minAngle")/180*Math.PI,p=o.get("show")&&!(null!=c&&Math.abs(h)<c);f.ignore=!p;t(wk,function(t){var p="normal"===t?e.getModel("label"):e.getModel([t,"label"]),d="normal"===t,w=d?f:f.ensureState(t),g=n.getFormattedLabel(y,t),tt,nt,o,k,c;d&&(g=g||l.node.name);w.style=gt(p,{},null,"normal"!==t,!0);g&&(w.style.text=g);tt=p.get("show");null==tt||d||(w.ignore=!tt);var b,it=u(p,"position"),rt=d?s:s.states[t],ut=rt.style.fill;rt.textConfig={outsideFill:"inherit"===p.get("color")?ut:null,inside:"outside"!==it};nt=u(p,"distance")||0;o=u(p,"align");"outside"===it?(b=i.r+nt,o=r>Math.PI/2?"right":"left"):o&&"center"!==o?"left"===o?(b=i.r0+nt,r>Math.PI/2&&(o="right")):"right"===o&&(b=i.r-nt,r>Math.PI/2&&(o="left")):(b=h===2*Math.PI&&0===i.r0?0:(i.r+i.r0)/2,o="center");w.style.align=o;w.style.verticalAlign=u(p,"verticalAlign")||"middle";w.x=b*a+i.cx;w.y=b*v+i.cy;k=u(p,"rotate");c=0;"radial"===k?(c=ee(-r))>Math.PI/2&&c<1.5*Math.PI&&(c+=Math.PI):"tangential"===k?(c=Math.PI/2-r)>Math.PI/2?c-=Math.PI:c<-Math.PI/2&&(c+=Math.PI):ht(k)&&(c=k*Math.PI/180);w.rotation=ee(c)});f.dirtyStyle()},u}(ur),gri="sunburstRootToNode",dpr="sunburstHighlight",pgu=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i}return i(t,n),t.prototype.render=function(n,t,i){var r=this,h;this.seriesModel=n;this.api=i;this.ecModel=t;var f=n.getData(),e=f.tree.root,s=n.getViewRoot(),u=this.group,c=n.get("renderLabelForZeroData"),o=[];s.eachNode(function(n){o.push(n)});h=this._oldChildren||[];!function(r,o){function h(n){return n.getId()}function s(s,h){!function(r,o){if(c||!r||r.getValue()||(r=null),r!==e&&o!==e)if(o&&o.piece)r?(o.piece.updateData(!1,r,n,t,i),f.setItemGraphicEl(r.dataIndex,o.piece)):function(n){n&&n.piece&&(u.remove(n.piece),n.piece=null)}(o);else if(r){var s=new kpr(r,n,t,i);u.add(s);f.setItemGraphicEl(r.dataIndex,s)}}(null==s?null:r[s],null==h?null:o[h])}(0!==r.length||0!==o.length)&&new co(o,r,h,h).add(s).update(s).remove(w(s,null)).execute()}(o,h),function(f,e){e.depth>0?(r.virtualPiece?r.virtualPiece.updateData(!1,f,n,t,i):(r.virtualPiece=new kpr(f,n,t,i),u.add(r.virtualPiece)),e.piece.off("click"),r.virtualPiece.on("click",function(){r._rootToNode(e.parentNode)})):r.virtualPiece&&(u.remove(r.virtualPiece),r.virtualPiece=null)}(e,s);this._initEvents();this._oldChildren=o},t.prototype._initEvents=function(){var n=this;this.group.off("click");this.group.on("click",function(t){var i=!1;n.seriesModel.getViewRoot().eachNode(function(r){var u,f,e;!i&&r.piece&&r.piece===t.target&&(u=r.getModel().get("nodeClick"),"rootToNode"===u?n._rootToNode(r):"link"===u&&(f=r.getModel(),e=f.get("link"),e&&dut(e,f.get("target",!0)||"_blank")),i=!0)})})},t.prototype._rootToNode=function(n){n!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:gri,from:this.uid,seriesId:this.seriesModel.id,targetNode:n})},t.prototype.containPoint=function(n,t){var i=t.getData().getItemLayout(0);if(i){var r=n[0]-i.cx,u=n[1]-i.cy,f=Math.sqrt(r*r+u*u);return f<=i.r&&f>=i.r0}},t.type="sunburst",t}(wt),wgu=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i.ignoreStyleOnData=!0,i}return i(t,n),t.prototype.getInitialData=function(n,t){var r={name:n.name,children:n.data},u,i;return gpr(r),u=this._levelModels=f(n.levels||[],function(n){return new at(n,this,t)},this),i=ist.createTree(r,this,function(n){n.wrapMethod("getItemModel",function(n,t){var f=i.getNodeByDataIndex(t),r=u[f.depth];return r&&(n.parentModel=r),n})}),i.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(t){var i=n.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(t);return i.treePathInfo=rst(r,this),i},t.prototype.getLevelModel=function(n){return this._levelModels&&this._levelModels[n.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(n){n?this._viewRoot=n:n=this._viewRoot;var t=this.getRawData().tree.root;n&&(n===t||t.contains(n))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){acr(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(bt);nui=Math.PI/180;var twr={color:"fill",borderColor:"stroke"},dgu={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},ws=ct(),ggu=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i}return i(t,n),t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0);this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(){return lo(null,this)},t.prototype.getDataParams=function(t,i,r){var u=n.prototype.getDataParams.call(this,t,i);return r&&(u.info=ws(r).info),u},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(bt);var owr={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},swr=et(owr),gst=(du(to,function(n,t){return n[t]=1,n},{}),to.join(", "),["","style","shape","extra"]),ww=ct();we={};cwr={setTransform:function(n,t){return we.el[n]=t,this},getTransform:function(n){return we.el[n]},setShape:function(n,t){var i=we.el;return(i.shape||(i.shape={}))[n]=t,i.dirtyShape&&i.dirtyShape(),this},getShape:function(n){var t=we.el.shape;if(t)return t[n]},setStyle:function(n,t){var i=we.el,r=i.style;return r&&(r[n]=t,i.dirtyStyle&&i.dirtyStyle()),this},getStyle:function(n){var t=we.el.style;if(t)return t[n]},setExtra:function(n,t){return(we.el.extra||(we.el.extra={}))[n]=t,this},getExtra:function(n){var t=we.el.extra;if(t)return t[n]}};iui=ct();vwr=["percent","easing","shape","style","extra"];var bs="emphasis",cc="normal",rui="blur",uui="select",lc=[cc,bs,rui,uui],fui={normal:["itemStyle"],emphasis:[bs,"itemStyle"],blur:[rui,"itemStyle"],select:[uui,"itemStyle"]},eui={normal:["label"],emphasis:[bs,"label"],blur:[rui,"label"],select:[uui,"label"]},enu=["x","y"],bf={normal:{},emphasis:{},blur:{},select:{}},onu={cartesian2d:function(n){var t=n.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return n.dataToPoint(t)},size:s(nnu,n)}}},geo:function(n){var t=n.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:n.getZoom()},api:{coord:function(t){return n.dataToPoint(t)},size:s(tnu,n)}}},single:function(n){var t=n.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return n.dataToPoint(t)},size:s(inu,n)}}},polar:function(n){var i=n.getRadiusAxis(),r=n.getAngleAxis(),t=i.getExtent();return t[0]>t[1]&&t.reverse(),{coordSys:{type:"polar",cx:n.cx,cy:n.cy,r:t[1],r0:t[0]},api:{coord:function(t){var u=i.dataToRadius(t[0]),f=r.dataToAngle(t[1]),e=n.coordToPoint([u,f]);return e.push(u,f*Math.PI/180),e},size:s(rnu,n)}}},calendar:function(n){var t=n.getRect(),i=n.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:n.getCellWidth(),cellHeight:n.getCellHeight(),rangeInfo:{start:i.start,end:i.end,weeks:i.weeks,dayCount:i.allDay}},api:{coord:function(t,i){return n.dataToPoint(t,i)}}}}};pwr=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i}return i(t,n),t.prototype.render=function(n,t,i,r){var o;this._progressiveEls=null;var e=this._data,u=n.getData(),f=this.group,s=bwr(n,u,t,i);e||f.removeAll();u.diff(e).add(function(t){lui(i,null,t,s(t,r),n,f,u)}).remove(function(t){var i=e.getItemGraphicEl(t);i&&tht(i,ws(i).option,n)}).update(function(t,o){var h=e.getItemGraphicEl(o);lui(i,h,t,s(t,r),n,f,u)}).execute();o=n.get("clip",!0)?sot(n.coordinateSystem,!1,n):null;o?f.setClipPath(o):f.removeClipPath();this._data=u},t.prototype.incrementalPrepareRender=function(){this.group.removeAll();this._data=null},t.prototype.incrementalRender=function(n,t,i,r,u){function c(n){n.isGroup||(n.incremental=!0,n.ensureState("emphasis").hoverLayer=!0)}for(var e,o=t.getData(),s=bwr(t,o,i,r),h=this._progressiveEls=[],f=n.start;f<n.end;f++)e=lui(null,null,f,s(f,u),t,this.group,o),e&&(e.traverse(c),h.push(e))},t.prototype.eachRendered=function(n){ph(this._progressiveEls||this.group,n)},t.prototype.filterForExposedEvent=function(n,t,i){var r=t.element;if(null==r||i.name===r)return!0;for(;(i=i.__hostTarget||i.parent)&&i!==this.group;)if(i.name===r)return!0;return!1},t.type="custom",t}(wt);var hv=ct(),ibr=y,yui=s,pui=function(){function n(){this._dragging=!1;this.animationThreshold=15}return n.prototype.render=function(n,t,i,r){var o=t.get("value"),s=t.get("status"),u,e,f,h,l,c;if(this._axisModel=n,this._axisPointerModel=t,this._api=i,r||this._lastValue!==o||this._lastStatus!==s){if(this._lastValue=o,this._lastStatus=s,u=this._group,e=this._handle,!s||"hide"===s)return u&&u.hide(),void(e&&e.hide());u&&u.show();e&&e.show();f={};this.makeElOption(f,o,n,t,i);h=f.graphicKey;h!==this._lastGraphicKey&&this.clear(i);this._lastGraphicKey=h;l=this._moveAnimation=this.determineAnimation(n,t);u?(c=w(rbr,t,l),this.updatePointerEl(u,f,c),this.updateLabelEl(u,f,c,t)):(u=this._group=new p,this.createPointerEl(u,f,n,t),this.createLabelEl(u,f,n,t),i.getZr().add(u));ebr(u,t,!0);this._renderHandle(o)}},n.prototype.remove=function(n){this.clear(n)},n.prototype.dispose=function(n){this.clear(n)},n.prototype.determineAnimation=function(n,t){var i=t.get("animation"),r=n.axis,e="category"===r.type,o=t.get("snap"),u,s,f;return!o&&!e?!1:"auto"===i||null==i?(u=this.animationThreshold,e&&r.getBandWidth()>u)?!0:o?(s=cnt(n).seriesDataCount,f=r.getExtent(),Math.abs(f[0]-f[1])/s>u):!1:!0===i},n.prototype.makeElOption=function(){},n.prototype.createPointerEl=function(n,t){var i=t.pointer,r;i&&(r=hv(n).pointerEl=new ky[i.type](ibr(t.pointer)),n.add(r))},n.prototype.createLabelEl=function(n,t,i,r){if(t.label){var u=hv(n).labelEl=new st(ibr(t.label));n.add(u);fbr(u,r)}},n.prototype.updatePointerEl=function(n,t,i){var r=hv(n).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),i(r,{shape:t.pointer.shape}))},n.prototype.updateLabelEl=function(n,t,i,r){var u=hv(n).labelEl;u&&(u.setStyle(t.label.style),i(u,{x:t.label.x,y:t.label.y}),fbr(u,r))},n.prototype._renderHandle=function(n){var i;if(!this._dragging&&this.updateHandleTransform){var e,f=this._axisPointerModel,o=this._api.getZr(),t=this._handle,r=f.getModel("handle"),s=f.get("status");if(!r.get("show")||!s||"hide"===s)return t&&o.remove(t),void(this._handle=null);this._handle||(e=!0,t=this._handle=wy(r.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(n){de(n.event)},onmousedown:yui(this._onHandleDragMove,this,0,0),drift:yui(this._onHandleDragMove,this),ondragend:yui(this._onHandleDragEnd,this)}),o.add(t));ebr(t,f,!1);t.setStyle(r.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));i=r.get("size");u(i)||(i=[i,i]);t.scaleX=i[0]/2;t.scaleY=i[1]/2;cp(this,"_doDispatchAxisPointer",r.get("throttle")||0,"fixRate");this._moveHandleToValue(n,e)}},n.prototype._moveHandleToValue=function(n,t){rbr(this._axisPointerModel,!t&&this._moveAnimation,this._handle,wui(this.getHandleTransform(n,this._axisModel,this._axisPointerModel)))},n.prototype._onHandleDragMove=function(n,t){var i=this._handle,r;i&&(this._dragging=!0,r=this.updateHandleTransform(wui(i),[n,t],this._axisModel,this._axisPointerModel),this._payloadInfo=r,i.stopAnimation(),i.attr(wui(r)),hv(i).lastProp=null,this._doDispatchAxisPointer())},n.prototype._doDispatchAxisPointer=function(){if(this._handle){var n=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:n.cursorPoint[0],y:n.cursorPoint[1],tooltipOption:n.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},n.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var n=this._axisPointerModel.get("value");this._moveHandleToValue(n);this._api.dispatchAction({type:"hideTip"})}},n.prototype.clear=function(n){this._lastValue=null;this._lastStatus=null;var t=n.getZr(),i=this._group,r=this._handle;t&&i&&(this._lastGraphicKey=null,i&&t.remove(i),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null);ng(this,"_doDispatchAxisPointer")},n.prototype.doClear=function(){},n.prototype.buildLabel=function(n,t,i){return{x:n[i=i||0],y:n[1-i],width:t[i],height:t[1-i]}},n}();abr=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return i(t,n),t.prototype.makeElOption=function(n,t,i,r,u){var f=i.axis,s=f.grid,o=r.get("type"),c=vbr(s,f).getOtherAxis(f).getGlobalExtent(),l=f.toGlobalCoord(f.dataToCoord(t,!0)),h,e;o&&"none"!==o&&(h=bui(r),e=ybr[o](f,l,c),e.style=h,n.graphicKey=e.type,n.pointer=e);hbr(t,n,ont(s.model,i),i,r,u)},t.prototype.getHandleTransform=function(n,t,i){var r=ont(t.axis.grid.model,t,{labelInside:!1}),u;return r.labelMargin=i.get(["handle","margin"]),u=kui(t.axis,n,r),{x:u[0],y:u[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(n,t,i){var f=i.axis,c=f.grid,s=f.getGlobalExtent(!0),h=vbr(c,f).getOtherAxis(f).getGlobalExtent(),r="x"===f.dim?0:1,u=[n.x,n.y],e,o;return u[r]+=t[r],u[r]=Math.min(s[1],u[r]),u[r]=Math.max(s[0],u[r]),e=(h[1]+h[0])/2,o=[e,e],o[r]=u[r],{x:u[0],y:u[1],rotation:n.rotation,cursorPoint:o,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][r]}},t}(pui);ybr={line:function(n,t,i){return{type:"Line",subPixelOptimize:!0,shape:dui([t,i[0]],[t,i[1]],pbr(n))}},shadow:function(n,t,i){var r=Math.max(1,n.getBandWidth()),u=i[1]-i[0];return{type:"Rect",shape:cbr([t-r/2,i[0]],[r,u],pbr(n))}}};var anu=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i}return i(t,n),t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(rt),ks=ct(),vnu=t;kbr=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i}return i(t,n),t.prototype.render=function(n,t,i){var r=t.getComponent("tooltip"),u=n.get("triggerOn")||r&&r.get("triggerOn")||"mousemove|click";wbr("axisPointer",i,function(n,t,i){"none"!==u&&("leave"===n||u.indexOf(n)>=0)&&i({type:"updateAxisPointer",currTrigger:n,x:t&&t.offsetX,y:t&&t.offsetY})})},t.prototype.remove=function(n,t){gui("axisPointer",t)},t.prototype.dispose=function(n,t){gui("axisPointer",t)},t.type="axisPointer",t}(ni);nfi=ct();var knu=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return i(t,n),t.prototype.makeElOption=function(n,t,i,r,u){var f=i.axis,h,e,c;"angle"===f.dim&&(this.animationThreshold=Math.PI/18);var o=f.polar,l=o.getOtherAxis(f).getExtent(),a=f.dataToCoord(t),s=r.get("type");s&&"none"!==s&&(h=bui(r),e=dnu[s](f,o,a,l),e.style=h,n.graphicKey=e.type,n.pointer=e);c=function(n,t,i,r,u){var y=t.axis,p=y.dataToCoord(n),o=r.getAngleAxis().getExtent()[0],f,h,c,w,e,b,l,s,a,v;return o=o/180*Math.PI,w=r.getRadiusAxis().getExtent(),"radius"===y.dim?(e=[1,0,0,1,0,0],th(e,e,o),ne(e,e,[r.cx,r.cy]),f=he([p,-u],e),b=t.getModel("axisLabel").get("rotate")||0,l=ru.innerTextLayout(o,b*Math.PI/180,-1),h=l.textAlign,c=l.textVerticalAlign):(s=w[1],f=r.coordToPoint([s+u,p]),a=r.cx,v=r.cy,h=Math.abs(f[0]-a)/s<.3?"center":f[0]>a?"left":"right",c=Math.abs(f[1]-v)/s<.3?"middle":f[1]>v?"top":"bottom"),{position:f,align:h,verticalAlign:c}}(t,i,0,o,r.get(["label","margin"]));obr(n,i,r,u,c)},t}(pui),dnu={line:function(n,t,i,r){return"angle"===n.dim?{type:"Line",shape:dui(t.coordToPoint([r[0],i]),t.coordToPoint([r[1],i]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:i}}},shadow:function(n,t,i,r){var u=Math.max(1,n.getBandWidth()),f=Math.PI/180;return"angle"===n.dim?{type:"Sector",shape:lbr(t.cx,t.cy,r[0],r[1],(-i-u/2)*f,(u/2-i)*f)}:{type:"Sector",shape:lbr(t.cx,t.cy,i-u/2,i+u/2,0,2*Math.PI)}}},gnu=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i}return i(t,n),t.prototype.findAxisModel=function(n){var t;return this.ecModel.eachComponent(n,function(n){n.getCoordSysModel()===this&&(t=n)},this),t},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(rt),tfi=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return i(t,n),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",oi).models[0]},t.type="polarAxis",t}(rt);fi(tfi,dp);var ntf=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i}return i(t,n),t.type="angleAxis",t}(tfi),ttf=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i}return i(t,n),t.type="radiusAxis",t}(tfi),ifi=function(n){function t(t,i){return n.call(this,"radius",t,i)||this}return i(t,n),t.prototype.pointToData=function(n,t){return this.polar.pointToData(n,t)["radius"===this.dim?0:1]},t}(pu);ifi.prototype.dataToRadius=pu.prototype.dataToCoord;ifi.prototype.radiusToData=pu.prototype.coordToData;tkr=ct();fht=function(n){function t(t,i){return n.call(this,"angle",t,i||[0,360])||this}return i(t,n),t.prototype.pointToData=function(n,t){return this.polar.pointToData(n,t)["radius"===this.dim?0:1]},t.prototype.calculateCategoryInterval=function(){var n=this,c=n.getLabelModel(),o=n.scale,f=o.getExtent(),s=o.count();if(f[1]-f[0]<1)return 0;var i=f[0],l=n.dataToCoord(i+1)-n.dataToCoord(i),a=Math.abs(l),v=sk(null==i?"":i+"",c.getFont(),"center","top"),e=Math.max(v.height,7)/a;isNaN(e)&&(e=1/0);var t=Math.max(0,Math.floor(e)),r=tkr(n.model),u=r.lastAutoInterval,h=r.lastTickCount;return null!=u&&null!=h&&Math.abs(u-t)<=1&&Math.abs(h-s)<=1&&u>t?t=u:(r.lastTickCount=s,r.lastAutoInterval=t),t},t}(pu);fht.prototype.dataToAngle=pu.prototype.dataToCoord;fht.prototype.angleToData=pu.prototype.coordToData;rfi=["radius","angle"];ikr=function(){function n(n){this.dimensions=rfi;this.type="polar";this.cx=0;this.cy=0;this._radiusAxis=new ifi;this._angleAxis=new fht;this.axisPointerEnabled=!0;this.name=n||"";this._radiusAxis.polar=this._angleAxis.polar=this}return n.prototype.containPoint=function(n){var t=this.pointToCoord(n);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},n.prototype.containData=function(n){return this._radiusAxis.containData(n[0])&&this._angleAxis.containData(n[1])},n.prototype.getAxis=function(n){return this["_"+n+"Axis"]},n.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},n.prototype.getAxesByScale=function(n){var t=[],i=this._angleAxis,r=this._radiusAxis;return i.scale.type===n&&t.push(i),r.scale.type===n&&t.push(r),t},n.prototype.getAngleAxis=function(){return this._angleAxis},n.prototype.getRadiusAxis=function(){return this._radiusAxis},n.prototype.getOtherAxis=function(n){var t=this._angleAxis;return n===t?this._radiusAxis:t},n.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},n.prototype.getTooltipAxes=function(n){var t=null!=n&&"auto"!==n?this.getAxis(n):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},n.prototype.dataToPoint=function(n,t){return this.coordToPoint([this._radiusAxis.dataToRadius(n[0],t),this._angleAxis.dataToAngle(n[1],t)])},n.prototype.pointToData=function(n,t){var i=this.pointToCoord(n);return[this._radiusAxis.radiusToData(i[0],t),this._angleAxis.angleToData(i[1],t)]},n.prototype.pointToCoord=function(n){var i=n[0]-this.cx,r=n[1]-this.cy,s=this.getAngleAxis(),u=s.getExtent(),f=Math.min(u[0],u[1]),o=Math.max(u[0],u[1]),e,t,h;for(s.inverse?f=o-360:o=f+360,e=Math.sqrt(i*i+r*r),i/=e,r/=e,t=Math.atan2(-r,i)/Math.PI*180,h=t<f?1:-1;t<f||t>o;)t+=360*h;return[e,t]},n.prototype.coordToPoint=function(n){var t=n[0],i=n[1]/180*Math.PI;return[Math.cos(i)*t+this.cx,-Math.sin(i)*t+this.cy]},n.prototype.getArea=function(){var r=this.getAngleAxis(),n=this.getRadiusAxis().getExtent().slice(),t,i;return n[0]>n[1]&&n.reverse(),t=r.getExtent(),i=Math.PI/180,{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-t[0]*i,endAngle:-t[1]*i,clockwise:r.inverse,contain:function(n,t){var i=n-this.cx,r=t-this.cy,u=i*i+r*r-.0001,f=this.r,e=this.r0;return u<=f*f&&u>=e*e}}},n.prototype.convertToPixel=function(n,t,i){return rkr(t)===this?this.dataToPoint(i):null},n.prototype.convertFromPixel=function(n,t,i){return rkr(t)===this?this.pointToData(i):null},n}();fkr={dimensions:rfi,create:function(n,t){var i=[];return n.eachComponent("polar",function(n,r){var f=new ikr(r+"");f.update=itf;var o=f.getRadiusAxis(),s=f.getAngleAxis(),h=n.findAxisModel("radiusAxis"),c=n.findAxisModel("angleAxis");ukr(o,h);ukr(s,c),function(n,t,i){var s=t.get("center"),h=i.getWidth(),c=i.getHeight(),f;n.cx=e(s[0],h);n.cy=e(s[1],c);var o=n.getRadiusAxis(),l=Math.min(h,c)/2,r=t.get("radius");null==r?r=[0,"100%"]:u(r)||(r=[0,r]);f=[e(r[0],l),e(r[1],l)];o.inverse?o.setExtent(f[1],f[0]):o.setExtent(f[0],f[1])}(f,n,t);i.push(f);n.coordinateSystem=f;f.model=n}),n.eachSeries(function(n){if("polar"===n.get("coordinateSystem")){var t=n.getReferringComponents("polar",oi).models[0];n.coordinateSystem=t.coordinateSystem}}),i}};ekr=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];var rtf=function(n){function r(){var t=null!==n&&n.apply(this,arguments)||this;return t.type=r.type,t.axisPointerClass="PolarAxisPointer",t}return i(r,n),r.prototype.render=function(n){if(this.group.removeAll(),n.get("show")){var i=n.axis,r=i.polar,o=r.getRadiusAxis().getExtent(),u=i.getTicksCoords(),s=i.getMinorTicksCoords(),e=f(i.getViewLabels(),function(n){n=y(n);var t=i.scale,r="ordinal"===t.type?t.getRawOrdinalNumber(n.tickValue):n.tickValue;return n.coord=i.dataToCoord(r),n});okr(e);okr(u);t(ekr,function(t){!n.get([t,"show"])||i.scale.isBlank()&&"axisLine"!==t||utf[t](this.group,n,r,u,s,o,e)},this)}},r.type="angleAxis",r}(ka),utf={axisLine:function(n,t,i,r,u,f){var o,s=t.getModel(["axisLine","lineStyle"]),e=oht(i),h=e?0:1;(o=0===f[h]?new vu({shape:{cx:i.cx,cy:i.cy,r:f[e]},style:s.getLineStyle(),z2:1,silent:!0}):new gl({shape:{cx:i.cx,cy:i.cy,r:f[e],r0:f[h]},style:s.getLineStyle(),z2:1,silent:!0})).style.fill=null;n.add(o)},axisTick:function(n,t,i,r,u,e){var o=t.getModel("axisTick"),h=(o.get("inside")?-1:1)*o.get("length"),s=e[oht(i)],c=f(r,function(n){return new vi({shape:eht(i,[s,s+h],n.coord)})});n.add(ou(c,{style:a(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(n,t,i,r,u,f){var o;if(u.length){for(var s=t.getModel("axisTick"),h=t.getModel("minorTick"),v=(s.get("inside")?-1:1)*h.get("length"),c=f[oht(i)],l=[],e=0;e<u.length;e++)for(o=0;o<u[e].length;o++)l.push(new vi({shape:eht(i,[c,c+v],u[e][o].coord)}));n.add(ou(l,{style:a(h.getModel("lineStyle").getLineStyle(),a(s.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(n,i,r,u,f,e,o){var h=i.getCategories(!0),s=i.getModel("axisLabel"),c=s.get("margin"),l=i.get("triggerEvent");t(o,function(t){var a=s,w=t.tickValue,y=e[oht(r)],u=r.coordToPoint([y+c,t.coord]),k=r.cx,d=r.cy,g=Math.abs(u[0]-k)/y<.3?"center":u[0]>k?"left":"right",nt=Math.abs(u[1]-d)/y<.3?"middle":u[1]>d?"top":"bottom",f,p,o;h&&h[w]&&(f=h[w],v(f)&&f.textStyle&&(a=new at(f.textStyle,s,s.ecModel)));p=new st({silent:ru.isLabelSilent(i),style:gt(a,{x:u[0],y:u[1],fill:a.getTextColor()||i.get(["axisLine","lineStyle","color"]),text:t.formattedLabel,align:g,verticalAlign:nt})});(n.add(p),l)&&(o=ru.makeAxisEventDataBase(i),o.targetType="axisLabel",o.value=t.rawLabel,b(p).eventData=o)},this)},splitLine:function(n,t,i,r,u,f){var c=t.getModel("splitLine").getModel("lineStyle"),o=c.get("color"),l=0,s,e,h;for(o=o instanceof Array?o:[o],s=[],e=0;e<r.length;e++)h=l++%o.length,s[h]=s[h]||[],s[h].push(new vi({shape:eht(i,f,r[e].coord)}));for(e=0;e<s.length;e++)n.add(ou(s[e],{style:a({stroke:o[e%o.length]},c.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(n,t,i,r,u,f){var o;if(u.length){for(var h=t.getModel("minorSplitLine").getModel("lineStyle"),s=[],e=0;e<u.length;e++)for(o=0;o<u[e].length;o++)s.push(new vi({shape:eht(i,f,u[e][o].coord)}));n.add(ou(s,{style:h.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(n,t,i,r,u,f){var l,h;if(r.length){var v=t.getModel("splitArea").getModel("areaStyle"),o=v.get("color"),w=0;o=o instanceof Array?o:[o];for(var s=[],c=Math.PI/180,y=-r[0].coord*c,b=Math.min(f[0],f[1]),k=Math.max(f[0],f[1]),d=t.get("clockwise"),e=1,p=r.length;e<=p;e++)l=e===p?r[0].coord:r[e].coord,h=w++%o.length,s[h]=s[h]||[],s[h].push(new ur({shape:{cx:i.cx,cy:i.cy,r0:b,r:k,startAngle:y,endAngle:-l*c,clockwise:d},silent:!0})),y=-l*c;for(e=0;e<s.length;e++)n.add(ou(s[e],{style:a({fill:o[e%o.length]},v.getAreaStyle()),silent:!0}))}}},ftf=["axisLine","axisTickLabel","axisName"],etf=["splitLine","splitArea","minorSplitLine"],otf=function(n){function r(){var t=null!==n&&n.apply(this,arguments)||this;return t.type=r.type,t.axisPointerClass="PolarAxisPointer",t}return i(r,n),r.prototype.render=function(n){var e,r;if(this.group.removeAll(),n.get("show")){e=this._axisGroup;r=this._axisGroup=new p;this.group.add(r);var i=n.axis,u=i.polar,s=u.getAngleAxis(),h=i.getTicksCoords(),c=i.getMinorTicksCoords(),o=s.getExtent()[0],l=i.getExtent(),a=function(n,t,i){return{position:[n.cx,n.cy],rotation:i/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}(u,n,o),f=new ru(n,a);t(ftf,f.add,f);r.add(f.getGroup());fd(e,r,n);t(etf,function(t){n.get([t,"show"])&&!i.scale.isBlank()&&stf[t](this.group,n,u,o,l,h,c)},this)}},r.type="radiusAxis",r}(ka),stf={splitLine:function(n,t,i,r,u,f){var c=t.getModel("splitLine").getModel("lineStyle"),o=c.get("color"),l=0,s,e,h;for(o=o instanceof Array?o:[o],s=[],e=0;e<f.length;e++)h=l++%o.length,s[h]=s[h]||[],s[h].push(new vu({shape:{cx:i.cx,cy:i.cy,r:Math.max(f[e].coord,0)}}));for(e=0;e<s.length;e++)n.add(ou(s[e],{style:a({stroke:o[e%o.length],fill:null},c.getLineStyle()),silent:!0}))},minorSplitLine:function(n,t,i,r,u,f,e){var s;if(e.length){for(var c=t.getModel("minorSplitLine").getModel("lineStyle"),h=[],o=0;o<e.length;o++)for(s=0;s<e[o].length;s++)h.push(new vu({shape:{cx:i.cx,cy:i.cy,r:e[o][s].coord}}));n.add(ou(h,{style:a({fill:null},c.getLineStyle()),silent:!0}))}},splitArea:function(n,t,i,r,u,f){var h;if(f.length){var c=t.getModel("splitArea").getModel("areaStyle"),o=c.get("color"),v=0;o=o instanceof Array?o:[o];for(var s=[],l=f[0].coord,e=1;e<f.length;e++)h=v++%o.length,s[h]=s[h]||[],s[h].push(new ur({shape:{cx:i.cx,cy:i.cy,r0:l,r:f[e].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),l=f[e].coord;for(e=0;e<s.length;e++)n.add(ou(s[e],{style:a({fill:o[e%o.length]},c.getAreaStyle()),silent:!0}))}}};var ctf={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},ltf={splitNumber:5},atf=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i}return i(t,n),t.type="polar",t}(ni);var vtf=["axisLine","axisTickLabel","axisName"],ytf=["splitArea","splitLine"],ptf=function(n){function r(){var t=null!==n&&n.apply(this,arguments)||this;return t.type=r.type,t.axisPointerClass="SingleAxisPointer",t}return i(r,n),r.prototype.render=function(i,r,u,f){var o=this.group,s,h,e;o.removeAll();s=this._axisGroup;this._axisGroup=new p;h=ufi(i);e=new ru(i,h);t(vtf,e.add,e);o.add(this._axisGroup);o.add(e.getGroup());t(ytf,function(n){i.get([n,"show"])&&wtf[n](this,this.group,this._axisGroup,i)},this);fd(s,this._axisGroup,i);n.prototype.render.call(this,i,r,u,f)},r.prototype.remove=function(){gor(this)},r.type="singleAxis",r}(ka),wtf={splitLine:function(n,t,i,r){var l=r.axis,c,p,v,k;if(!l.scale.isBlank()){var w=r.getModel("splitLine"),y=w.getModel("lineStyle"),f=y.get("color");f=f instanceof Array?f:[f];for(var d=y.get("width"),e=r.coordinateSystem.getRect(),g=l.isHorizontal(),h=[],nt=0,b=l.getTicksCoords({tickModel:w}),o=[],s=[],u=0;u<b.length;++u)c=l.toGlobalCoord(b[u].coord),g?(o[0]=c,o[1]=e.y,s[0]=c,s[1]=e.y+e.height):(o[0]=e.x,o[1]=c,s[0]=e.x+e.width,s[1]=c),p=new vi({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},silent:!0}),py(p.shape,d),v=nt++%f.length,h[v]=h[v]||[],h[v].push(p);for(k=y.getLineStyle(["color"]),u=0;u<h.length;++u)t.add(ou(h[u],{style:a({stroke:f[u%f.length]},k),silent:!0}))}},splitArea:function(n,t,i,r){dor(n,i,r,r)}},sht=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i}return i(t,n),t.prototype.getCoordSysModel=function(){return this},t.type="singleAxis",t.layoutMode="box",t.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},t}(rt);fi(sht,dp.prototype);var btf=function(n){function t(t,i,r,u,f){var e=n.call(this,t,i,r)||this;return e.type=u||"value",e.position=f||"bottom",e}return i(t,n),t.prototype.isHorizontal=function(){var n=this.position;return"top"===n||"bottom"===n},t.prototype.pointToData=function(n){return this.coordinateSystem.pointToData(n)[0]},t}(pu),ckr=["single"],ktf=function(){function n(n,t,i){this.type="single";this.dimension="single";this.dimensions=ckr;this.axisPointerEnabled=!0;this.model=n;this._init(n,t,i)}return n.prototype._init=function(n){var i=this.dimension,t=new btf(i,pg(n),[0,0],n.get("type"),n.get("position")),r="category"===t.type;t.onBand=r&&n.get("boundaryGap");t.inverse=n.get("inverse");t.orient=n.get("orient");n.axis=t;t.model=n;t.coordinateSystem=this;this._axis=t},n.prototype.update=function(n){n.eachSeries(function(n){if(n.coordinateSystem===this){var i=n.getData();t(i.mapDimensionsAll(this.dimension),function(n){this._axis.scale.unionExtentFromData(i,n)},this);la(this._axis.scale,this._axis.model)}},this)},n.prototype.resize=function(n,t){this._rect=ci({left:n.get("left"),top:n.get("top"),right:n.get("right"),bottom:n.get("bottom"),width:n.get("width"),height:n.get("height")},{width:t.getWidth(),height:t.getHeight()});this._adjustAxis()},n.prototype.getRect=function(){return this._rect},n.prototype._adjustAxis=function(){var n=this._rect,t=this._axis,i=t.isHorizontal(),r=i?[0,n.width]:[0,n.height],u=t.inverse?1:0;t.setExtent(r[u],r[1-u]);this._updateAxisTransform(t,i?n.x:n.y)},n.prototype._updateAxisTransform=function(n,t){var i=n.getExtent(),r=i[0]+i[1],u=n.isHorizontal();n.toGlobalCoord=u?function(n){return n+t}:function(n){return r-n+t};n.toLocalCoord=u?function(n){return n-t}:function(n){return r-n+t}},n.prototype.getAxis=function(){return this._axis},n.prototype.getBaseAxis=function(){return this._axis},n.prototype.getAxes=function(){return[this._axis]},n.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},n.prototype.containPoint=function(n){var t=this.getRect(),i=this.getAxis();return"horizontal"===i.orient?i.contain(i.toLocalCoord(n[0]))&&n[1]>=t.y&&n[1]<=t.y+t.height:i.contain(i.toLocalCoord(n[1]))&&n[0]>=t.y&&n[0]<=t.y+t.height},n.prototype.pointToData=function(n){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(n["horizontal"===t.orient?0:1]))]},n.prototype.dataToPoint=function(n){var i=this.getAxis(),t=this.getRect(),r=[],u="horizontal"===i.orient?0:1;return n instanceof Array&&(n=n[0]),r[u]=i.toGlobalCoord(i.dataToCoord(+n)),r[1-u]=0===u?t.y+t.height/2:t.x+t.width/2,r},n.prototype.convertToPixel=function(n,t,i){return lkr(t)===this?this.dataToPoint(i):null},n.prototype.convertFromPixel=function(n,t,i){return lkr(t)===this?this.pointToData(i):null},n}();var dtf={create:function(n,t){var i=[];return n.eachComponent("singleAxis",function(r,u){var f=new ktf(r,n,t);f.name="single_"+u;f.resize(r,t);r.coordinateSystem=f;i.push(f)}),n.eachSeries(function(n){if("singleAxis"===n.get("coordinateSystem")){var t=n.getReferringComponents("singleAxis",oi).models[0];n.coordinateSystem=t&&t.coordinateSystem}}),i},dimensions:ckr},akr=["x","y"],gtf=["width","height"],nif=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return i(t,n),t.prototype.makeElOption=function(n,t,i,r,u){var e=i.axis,s=e.coordinateSystem,c=ffi(s,1-hht(e)),l=s.dataToPoint(t)[0],o=r.get("type"),h,f;o&&"none"!==o&&(h=bui(r),f=tif[o](e,l,c),f.style=h,n.graphicKey=f.type,n.pointer=f);hbr(t,n,ufi(i),i,r,u)},t.prototype.getHandleTransform=function(n,t,i){var r=ufi(t,{labelInside:!1}),u;return r.labelMargin=i.get(["handle","margin"]),u=kui(t.axis,n,r),{x:u[0],y:u[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(n,t,i){var f=i.axis,e=f.coordinateSystem,r=hht(f),o=ffi(e,r),u=[n.x,n.y];u[r]+=t[r];u[r]=Math.min(o[1],u[r]);u[r]=Math.max(o[0],u[r]);var s=ffi(e,1-r),h=(s[1]+s[0])/2,c=[h,h];return c[r]=u[r],{x:u[0],y:u[1],rotation:n.rotation,cursorPoint:c,tooltipOption:{verticalAlign:"middle"}}},t}(pui),tif={line:function(n,t,i){return{type:"Line",subPixelOptimize:!0,shape:dui([t,i[0]],[t,i[1]],hht(n))}},shadow:function(n,t,i){var r=n.getBandWidth(),u=i[1]-i[0];return{type:"Rect",shape:cbr([t-r/2,i[0]],[r,u],hht(n))}}};vkr=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i}return i(t,n),t.type="single",t}(ni);ykr=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i}return i(t,n),t.prototype.init=function(t){var i=tp(t);n.prototype.init.apply(this,arguments);pkr(t,i)},t.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments);pkr(this.option,t)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(rt);var iif=function(n){function u(){var t=null!==n&&n.apply(this,arguments)||this;return t.type=u.type,t}return i(u,n),u.prototype.render=function(n,t){var i=this.group;i.removeAll();var f=n.coordinateSystem,r=f.getRangeInfo(),u=f.getOrient(),e=t.getLocaleModel();this._renderDayRect(n,r,i);this._renderLines(n,r,u,i);this._renderYearText(n,r,u,i);this._renderMonthText(n,e,u,i);this._renderWeekText(n,e,r,u,i)},u.prototype._renderDayRect=function(n,t,i){for(var f,e,r=n.coordinateSystem,o=n.getModel("itemStyle").getItemStyle(),s=r.getCellWidth(),h=r.getCellHeight(),u=t.start.time;u<=t.end.time;u=r.getNextNDay(u,1).time)f=r.dataToRect([u],!1).tl,e=new ot({shape:{x:f[0],y:f[1],width:s,height:h},cursor:"default",style:o}),i.add(e)},u.prototype._renderLines=function(n,t,i,r){function a(t){u._firstDayOfMonth.push(e.getDateInfo(t));u._firstDayPoints.push(e.dataToRect([t],!1).tl);var f=u._getLinePointsOfOneWeek(n,t,i);u._tlpoints.push(f[0]);u._blpoints.push(f[f.length-1]);h&&u._drawSplitline(f,o,r)}var u=this,e=n.coordinateSystem,o=n.getModel(["splitLine","lineStyle"]).getLineStyle(),h=n.get(["splitLine","show"]),l=o.lineWidth,f,c,s;for(this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[],f=t.start,c=0;f.time<=t.end.time;c++)a(f.formatedDate),0===c&&(f=e.getDateInfo(t.start.y+"-"+t.start.m)),s=f.date,s.setMonth(s.getMonth()+1),f=e.getDateInfo(s);a(e.getNextNDay(t.end.time,1).formatedDate);h&&this._drawSplitline(u._getEdgesPoints(u._tlpoints,l,i),o,r);h&&this._drawSplitline(u._getEdgesPoints(u._blpoints,l,i),o,r)},u.prototype._getEdgesPoints=function(n,t,i){var r=[n[0].slice(),n[n.length-1].slice()],u="horizontal"===i?0:1;return r[0][u]=r[0][u]-t/2,r[1][u]=r[1][u]+t/2,r},u.prototype._drawSplitline=function(n,t,i){var r=new er({z2:20,shape:{points:n},style:t});i.add(r)},u.prototype._getLinePointsOfOneWeek=function(n,t,i){for(var r,o,u=n.coordinateSystem,s=u.getDateInfo(t),f=[],e=0;e<7;e++)r=u.getNextNDay(s.time,e),o=u.dataToRect([r.time],!1),f[2*r.day]=o.tl,f[2*r.day+1]=o["horizontal"===i?"bl":"tr"];return f},u.prototype._formatterLabel=function(n,i){return o(n)&&n?(r=n,t(i,function(n,t){r=r.replace("{"+t+"}",u?wr(n):n)}),r):l(n)?n(i):i.nameMap;var r,u},u.prototype._yearTextPositionControl=function(n,t,i,r,u){var e=t[0],o=t[1],f=["center","bottom"],s;return"bottom"===r?(o+=u,f=["center","top"]):"left"===r?e-=u:"right"===r?(e+=u,f=["center","top"]):o-=u,s=0,"left"!==r&&"right"!==r||(s=Math.PI/2),{rotation:s,x:e,y:o,style:{align:f[0],verticalAlign:f[1]}}},u.prototype._renderYearText=function(n,t,i,r){var f=n.getModel("yearLabel"),c,e;if(f.get("show")){c=f.get("margin");e=f.get("position");e||(e="horizontal"!==i?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(u[0][0]+u[1][0])/2,a=(u[0][1]+u[1][1])/2,o="horizontal"===i?0:1,v={top:[l,u[o][1]],bottom:[l,u[1-o][1]],left:[u[1-o][0],a],right:[u[o][0],a]},s=t.start.y;+t.end.y>+t.start.y&&(s=s+"-"+t.end.y);var y=f.get("formatter"),p={start:t.start.y,end:t.end.y,nameMap:s},w=this._formatterLabel(y,p),h=new st({z2:30,style:gt(f,{text:w})});h.attr(this._yearTextPositionControl(h,v[e],i,e,c));r.add(h)}},u.prototype._monthTextPositionControl=function(n,t,i,r,u){var f="left",e="top",o=n[0],s=n[1];return"horizontal"===i?(s+=u,t&&(f="center"),"start"===r&&(e="bottom")):(o+=u,t&&(e="middle"),"start"===r&&(f="right")),{x:o,y:s,align:f,verticalAlign:e}},u.prototype._renderMonthText=function(n,t,i,u){var f=n.getModel("monthLabel"),y,l,p,e,w,h,b;if(f.get("show")){var s=f.get("nameMap"),c=f.get("margin"),a=f.get("position"),k=f.get("align"),v=[this._tlpoints,this._blpoints];for(s&&!o(s)||(s&&(t=nwt(s)||t),s=t.get(["time","monthAbbr"])||[]),y="start"===a?0:1,l="horizontal"===i?0:1,c="start"===a?-c:c,p="center"===k,e=0;e<v[y].length-1;e++){w=v[y][e].slice();h=this._firstDayOfMonth[e];p&&(b=this._firstDayPoints[e],w[l]=(b[l]+v[0][e+1][l])/2);var d=f.get("formatter"),g=s[+h.m-1],nt={yyyy:h.y,yy:(h.y+"").slice(2),MM:h.m,M:+h.m,nameMap:g},tt=this._formatterLabel(d,nt),it=new st({z2:30,style:r(gt(f,{text:tt}),this._monthTextPositionControl(w,p,i,a,c))});u.add(it)}}},u.prototype._weekTextPositionControl=function(n,t,i,r,u){var s="center",h="middle",e=n[0],o=n[1],f="start"===i;return"horizontal"===t?(e=e+r+(f?1:-1)*u[0]/2,s=f?"right":"left"):(o=o+r+(f?1:-1)*u[1]/2,h=f?"bottom":"top"),{x:e,y:o,align:s,verticalAlign:h}},u.prototype._renderWeekText=function(n,t,i,u,s){var l=n.getModel("dayLabel"),p,y,v,b,k,d,g;if(l.get("show")){var h=n.coordinateSystem,w=l.get("position"),c=l.get("nameMap"),a=l.get("margin"),nt=h.getFirstDayOfWeek();for((!c||o(c))&&(c&&(t=nwt(c)||t),c=t.get(["time","dayOfWeekShort"])||f(t.get(["time","dayOfWeekAbbr"]),function(n){return n[0]})),p=h.getNextNDay(i.end.time,7-i.lweek).time,y=[h.getCellWidth(),h.getCellHeight()],a=e(a,Math.min(y[1],y[0])),"start"===w&&(p=h.getNextNDay(i.start.time,-(7+i.fweek)).time,a=-a),v=0;v<7;v++)k=h.getNextNDay(p,v),d=h.dataToRect([k.time],!1).center,b=Math.abs((v+nt)%7),g=new st({z2:30,style:r(gt(l,{text:c[b]}),this._weekTextPositionControl(d,u,w,a,y))}),s.add(g)}},u.type="calendar",u}(ni),efi=864e5,rif=function(){function n(t){this.type="calendar";this.dimensions=n.dimensions;this.getDimensionsInfo=n.getDimensionsInfo;this._model=t}return n.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},n.prototype.getRangeInfo=function(){return this._rangeInfo},n.prototype.getModel=function(){return this._model},n.prototype.getRect=function(){return this._rect},n.prototype.getCellWidth=function(){return this._sw},n.prototype.getCellHeight=function(){return this._sh},n.prototype.getOrient=function(){return this._orient},n.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},n.prototype.getDateInfo=function(n){var r=(n=au(n)).getFullYear(),t=n.getMonth()+1,u=t<10?"0"+t:""+t,i=n.getDate(),f=i<10?"0"+i:""+i,e=n.getDay();return{y:r+"",m:u,d:f,day:e=Math.abs((e+7-this.getFirstDayOfWeek())%7),time:n.getTime(),formatedDate:r+"-"+u+"-"+f,date:n}},n.prototype.getNextNDay=function(n,t){return 0===(t=t||0)||(n=new Date(this.getDateInfo(n).time)).setDate(n.getDate()+t),this.getDateInfo(n)},n.prototype.update=function(n,i){function c(n,t){return null!=n[t]&&"auto"!==n[t]}var s,h;this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay");this._orient=this._model.get("orient");this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0;this._rangeInfo=this._getRangeInfo(this._initRangeOption());var u=this._rangeInfo.weeks||1,f=["width","height"],r=this._model.getCellSize().slice(),e=this._model.getBoxLayoutParams(),o="horizontal"===this._orient?[u,7]:[7,u];t([0,1],function(n){c(r,n)&&(e[f[n]]=r[n]*o[n])});s={width:i.getWidth(),height:i.getHeight()};h=this._rect=ci(e,s);t([0,1],function(n){c(r,n)||(r[n]=h[f[n]]/o[n])});this._sw=r[0];this._sh=r[1]},n.prototype.dataToPoint=function(n,t){var f,e;u(n)&&(n=n[0]);null==t&&(t=!0);var i=this.getDateInfo(n),r=this._rangeInfo,o=i.formatedDate;return t&&!(i.time>=r.start.time&&i.time<r.end.time+efi)?[NaN,NaN]:(f=i.day,e=this._getRangeInfo([r.start.time,o]).nthWeek,"vertical"===this._orient?[this._rect.x+f*this._sw+this._sw/2,this._rect.y+e*this._sh+this._sh/2]:[this._rect.x+e*this._sw+this._sw/2,this._rect.y+f*this._sh+this._sh/2])},n.prototype.pointToData=function(n){var t=this.pointToDate(n);return t&&t.time},n.prototype.dataToRect=function(n,t){var i=this.dataToPoint(n,t);return{contentShape:{x:i[0]-(this._sw-this._lineWidth)/2,y:i[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:i,tl:[i[0]-this._sw/2,i[1]-this._sh/2],tr:[i[0]+this._sw/2,i[1]-this._sh/2],br:[i[0]+this._sw/2,i[1]+this._sh/2],bl:[i[0]-this._sw/2,i[1]+this._sh/2]}},n.prototype.pointToDate=function(n){var t=Math.floor((n[0]-this._rect.x)/this._sw)+1,i=Math.floor((n[1]-this._rect.y)/this._sh)+1,r=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(i,t-1,r):this._getDateByWeeksAndDay(t,i-1,r)},n.prototype.convertToPixel=function(n,t,i){var r=wkr(t);return r===this?r.dataToPoint(i):null},n.prototype.convertFromPixel=function(n,t,i){var r=wkr(t);return r===this?r.pointToData(i):null},n.prototype.containPoint=function(){return console.warn("Not implemented."),!1},n.prototype._initRangeOption=function(){var t,i=this._model.get("range"),n,f,r,o,e;return((u(i)&&1===i.length&&(i=i[0]),u(i))?t=i:(n=i.toString(),(/^\d{4}$/.test(n)&&(t=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n))&&(f=this.getDateInfo(n),r=f.date,r.setMonth(r.getMonth()+1),o=this.getNextNDay(r,-1),t=[f.formatedDate,o.formatedDate]),/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(t=[n,n])),!t)?i:(e=this._getRangeInfo(t),e.start.time>e.end.time&&t.reverse(),t)},n.prototype._getRangeInfo=function(n){var o,t=[this.getDateInfo(n[0]),this.getDateInfo(n[1])],u,f,e,h;t[0].time>t[1].time&&(o=!0,t.reverse());var r=Math.floor(t[1].time/efi)-Math.floor(t[0].time/efi)+1,i=new Date(t[0].time),c=i.getDate(),s=t[1].date.getDate();if(i.setDate(c+r-1),u=i.getDate(),u!==s)for(f=i.getTime()-t[1].time>0?1:-1;(u=i.getDate())!==s&&(i.getTime()-t[1].time)*f>0;)r-=f,i.setDate(u-f);return e=Math.floor((r+t[0].day+6)/7),h=o?1-e:e-1,o&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:r,weeks:e,nthWeek:h,fweek:t[0].day,lweek:t[1].day}},n.prototype._getDateByWeeksAndDay=function(n,t,i){var r=this._getRangeInfo(i),f,u;return n>r.weeks||0===n&&t<r.fweek||n===r.weeks&&t>r.lweek?null:(f=7*(n-1)-r.fweek+t,u=new Date(r.start.time),u.setDate(+r.start.d+f),this.getDateInfo(u))},n.create=function(t,i){var r=[];return t.eachComponent("calendar",function(u){var f=new n(u,t,i);r.push(f);u.coordinateSystem=f}),t.eachSeries(function(n){"calendar"===n.get("coordinateSystem")&&(n.coordinateSystem=r[n.get("calendarIndex")||0])}),r},n.dimensions=["time","value"],n}();ofi=["transition","enterFrom","leaveTo"];kkr=ofi.concat(["enterAnimation","updateAnimation","leaveAnimation"]);var uif=function(n){function u(){var t=null!==n&&n.apply(this,arguments)||this;return t.type=u.type,t.preventAutoZ=!0,t}return i(u,n),u.prototype.mergeOption=function(t,i){var r=this.option.elements;this.option.elements=null;n.prototype.mergeOption.call(this,t,i);this.option.elements=r},u.prototype.optionUpdated=function(n,i){var u=this.option,h=(i?u:n).elements,f=u.elements=i?[]:u.elements,e=[],o,s;this._flatten(h,e,null);o=cli(f,e,"normalMerge");s=this._elOptionsToUpdate=[];t(o,function(n,t){var i=n.newOption;i&&(s.push(i),function(n,t){var i=n.existing,r;(t.id=n.keyInfo.id,!t.type&&i&&(t.type=i.type),null==t.parentId)&&(r=t.parentOption,r?t.parentId=r.id:i&&(t.parentId=i.parentId));t.parentOption=null}(n,i),function(n,t,i){var f=r({},i),u=n[t],e=i.$action||"merge";"merge"===e?u?(k(u,f,!0),dh(u,f,{ignoreSize:!0}),wwi(i,u),cht(i,u),cht(i,u,"shape"),cht(i,u,"style"),cht(i,u,"extra"),i.clipPath=u.clipPath):n[t]=f:"replace"===e?n[t]=f:"remove"===e&&u&&(n[t]=null)}(f,t,i),function(n,t){if(n&&(n.hv=t.hv=[bkr(t,["left","right"]),bkr(t,["top","bottom"])],"group"===n.type)){var i=n,r=t;null==i.width&&(i.width=r.width=0);null==i.height&&(i.height=r.height=0)}}(f[t],i))},this);u.elements=yt(f,function(n){return n&&delete n.$action,null!=n})},u.prototype._flatten=function(n,i,r){t(n,function(n){if(n){r&&(n.parentOption=r);i.push(n);var t=n.children;t&&t.length&&this._flatten(t,i,n);delete n.children}},this)},u.prototype.useElOptionsToUpdate=function(){var n=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,n},u.type="graphic",u.defaultOption={elements:[]},u}(rt),dkr={path:null,compoundPath:null,group:p,image:wi,text:st},kf=ct(),fif=function(n){function u(){var t=null!==n&&n.apply(this,arguments)||this;return t.type=u.type,t}return i(u,n),u.prototype.init=function(){this._elMap=c()},u.prototype.render=function(n,t,i){n!==this._lastGraphicModel&&this._clear();this._lastGraphicModel=n;this._updateElements(n);this._relocate(n,i)},u.prototype._updateElements=function(n){var u=n.useElOptionsToUpdate();if(u){var i=this._elMap,o=this.group,f=n.get("z"),e=n.get("zlevel");t(u,function(u){var a=ai(u.id,null),v=null!=a?i.get(a):null,ot=ai(u.parentId,null),ht=null!=ot?i.get(ot):o,tt=u.type,h=u.style,c,y,p,l,g,s,ft,w,nt,lt;"text"===tt&&h&&u.hv&&u.hv[1]&&(h.textVerticalAlign=h.textBaseline=h.verticalAlign=h.align=null);c=u.textContent;y=u.textConfig;h&&iwr(h,tt,!!y,!!c)&&(p=rwr(h,tt,!0),!y&&p.textConfig&&(y=u.textConfig=p.textConfig),!c&&p.textContent&&(c=p.textContent));var ct=function(n){return n=r({},n),t(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(pwi),function(t){delete n[t]}),n}(u),it=u.$action||"merge",rt="merge"===it,ut="replace"===it;if(rt?(l=v,(d=!v)?l=gkr(a,ht,u.type,i):(l&&(kf(l).isNew=!1),ywr(l)),l&&(nht(l,ct,n,{isInit:d}),ndr(l,u,f,e))):ut?(lht(v,u,i,n),g=gkr(a,ht,u.type,i),g&&(nht(g,ct,n,{isInit:!0}),ndr(g,u,f,e))):"remove"===it&&(hwr(v,u),lht(v,u,i,n)),s=i.get(a),s&&c&&(rt?(ft=s.getTextContent(),ft?ft.attr(c):s.setTextContent(new st(c))):ut&&s.setTextContent(new st(c))),s){if(w=u.clipPath,w){var et=w.type,k=void 0,d=!1;rt?(nt=s.getClipPath(),k=(d=!nt||kf(nt).type!==et)?sfi(et):nt):ut&&(d=!0,k=sfi(et));s.setClipPath(k);nht(k,w,n,{isInit:d});iht(k,w.keyframeAnimation,n)}lt=kf(s);s.setTextConfig(y);lt.option=u,function(n,t,i){var r=b(n).eventData;n.silent||n.ignore||r||(r=b(n).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:n.name});r&&(r.info=i.info)}(s,n,u);by({el:s,componentModel:n,itemName:s.name,itemTooltipOption:u.tooltip});iht(s,u.keyframeAnimation,n)}})}},u.prototype._relocate=function(n,t){for(var u,c,i,o,p,s=n.option.elements,w=this.group,b=this._elMap,k=t.getWidth(),d=t.getHeight(),g=["x","y"],r=0;r<s.length;r++)if((i=null!=(c=ai((u=s[r]).id,null))?b.get(c):null)&&i.isGroup){var nt=(l=i.parent)===w,h=kf(i),f=kf(l);h.width=e(h.option.width,nt?k:f.width)||0;h.height=e(h.option.height,nt?d:f.height)||0}for(r=s.length-1;r>=0;r--)if(i=null!=(c=ai((u=s[r]).id,null))?b.get(c):null){var l=i.parent,a=(f=kf(l),{}),rt=nft(i,u,l===w?{width:k,height:d}:{width:f.width,height:f.height},null,{hv:u.hv,boundingMode:u.bounding},a);if(!kf(i).isNew&&rt){for(var v=u.transition,it={},y=0;y<g.length;y++)o=g[y],p=a[o],v&&(sv(v)||tt(v,o)>=0)?it[o]=p:i[o]=p;lt(i,it,n,0)}else i.attr(a)}},u.prototype._clear=function(){var t=this,n=this._elMap;n.each(function(i){lht(i,kf(i).option,n,t._lastGraphicModel)});this._elMap=c()},u.prototype.dispose=function(){this._clear()},u.type="graphic",u}(ni);hfi=["x","y","radius","angle","single"];tdr=["cartesian2d","polar","singleAxis"];aht=function(){function n(){this.indexList=[];this.indexMap=[]}return n.prototype.add=function(n){this.indexMap[n]||(this.indexList.push(n),this.indexMap[n]=!0)},n}();bw=function(n){function r(){var t=null!==n&&n.apply(this,arguments)||this;return t.type=r.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return i(r,n),r.prototype.init=function(n,t,i){var r=rdr(n);this.settledOption=r;this.mergeDefaultAndTheme(n,i);this._doInit(r)},r.prototype.mergeOption=function(n){var t=rdr(n);k(this.option,n,!0);k(this.settledOption,t,!0);this._doInit(t)},r.prototype._doInit=function(n){var r=this.option,i;this._setDefaultThrottle(n);this._updateRangeUse(n);i=this.settledOption;t([["start","startValue"],["end","endValue"]],function(n,t){"value"===this._rangePropMode[t]&&(r[n[0]]=i[n[0]]=null)},this);this._resetTarget()},r.prototype._resetTarget=function(){var t=this.get("orient",!0),n=this._targetAxisInfoMap=c();this._fillSpecifiedTargetAxis(n)?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient));this._noTarget=!0;n.each(function(n){n.indexList.length&&(this._noTarget=!1)},this)},r.prototype._fillSpecifiedTargetAxis=function(n){var i=!1;return t(hfi,function(r){var f=this.getReferringComponents(ac(r),vli),u;f.specified&&(i=!0,u=new aht,t(f.models,function(n){u.add(n.componentIndex)}),n.set(r,u))},this),i},r.prototype._fillAutoTargetAxisByOrient=function(n,i){function e(i,u){var f=i[0],e,o;f&&(e=new aht,(e.add(f.componentIndex),n.set(u,e),r=!1,"x"===u||"y"===u)&&(o=f.getReferringComponents("grid",oi).models[0],o&&t(i,function(n){f.componentIndex!==n.componentIndex&&o===n.getReferringComponents("grid",oi).models[0]&&e.add(n.componentIndex)})))}var u=this.ecModel,r=!0,f;r&&(f="vertical"===i?"y":"x",e(u.findComponents({mainType:f+"Axis"}),f));r&&e(u.findComponents({mainType:"singleAxis",filter:function(n){return n.get("orient",!0)===i}}),"single");r&&t(hfi,function(t){var i,f;r&&(i=u.findComponents({mainType:ac(t),filter:function(n){return"category"===n.get("type",!0)}}),i[0]&&(f=new aht,f.add(i[0].componentIndex),n.set(t,f),r=!1))},this)},r.prototype._makeAutoOrientByTargetAxis=function(){var n;return this.eachTargetAxis(function(t){n||(n=t)},this),"y"===n?"vertical":"horizontal"},r.prototype._setDefaultThrottle=function(n){if(n.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},r.prototype._updateRangeUse=function(n){var i=this._rangePropMode,r=this.get("rangeMode");t([["start","startValue"],["end","endValue"]],function(t,u){var f=null!=n[t[0]],e=null!=n[t[1]];f&&!e?i[u]="percent":!f&&e?i[u]="value":r?i[u]=r[u]:f&&(i[u]="percent")})},r.prototype.noTarget=function(){return this._noTarget},r.prototype.getFirstTargetAxisModel=function(){var n;return this.eachTargetAxis(function(t,i){null==n&&(n=this.ecModel.getComponent(ac(t),i))},this),n},r.prototype.eachTargetAxis=function(n,i){this._targetAxisInfoMap.each(function(r,u){t(r.indexList,function(t){n.call(i,u,t)})})},r.prototype.getAxisProxy=function(n,t){var i=this.getAxisModel(n,t);if(i)return i.__dzAxisProxy},r.prototype.getAxisModel=function(n,t){var i=this._targetAxisInfoMap.get(n);if(i&&i.indexMap[t])return this.ecModel.getComponent(ac(n),t)},r.prototype.setRawRange=function(n){var i=this.option,r=this.settledOption;t([["start","startValue"],["end","endValue"]],function(t){null==n[t[0]]&&null==n[t[1]]||(i[t[0]]=r[t[0]]=n[t[0]],i[t[1]]=r[t[1]]=n[t[1]])},this);this._updateRangeUse(n)},r.prototype.setCalculatedRange=function(n){var i=this.option;t(["start","startValue","end","endValue"],function(t){i[t]=n[t]})},r.prototype.getPercentRange=function(){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataPercentWindow()},r.prototype.getValueRange=function(n,t){if(null!=n||null!=t)return this.getAxisProxy(n,t).getDataValueWindow();var i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()},r.prototype.findRepresentativeAxisProxy=function(n){var r,u,t,i;if(n)return n.__dzAxisProxy;for(u=this._targetAxisInfoMap.keys(),t=0;t<u.length;t++)for(var e=u[t],o=this._targetAxisInfoMap.get(e),f=0;f<o.indexList.length;f++){if(i=this.getAxisProxy(e,o.indexList[f]),i.hostedBy(this))return i;r||(r=i)}return r},r.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},r.prototype.getOrient=function(){return this._orient},r.type="dataZoom",r.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],r.defaultOption={z:4,filterMode:"filter",start:0,end:100},r}(rt);var oif=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i}return i(t,n),t.type="dataZoom.select",t}(bw),cfi=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i}return i(t,n),t.prototype.render=function(n,t,i){this.dataZoomModel=n;this.ecModel=t;this.api=i},t.type="dataZoom",t}(ni),sif=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i}return i(t,n),t.type="dataZoom.select",t}(cfi),kw=t,udr=lu,hif=function(){function n(n,t,i,r){this._dimName=n;this._axisIndex=t;this.ecModel=r;this._dataZoomModel=i}return n.prototype.hostedBy=function(n){return this._dataZoomModel===n},n.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},n.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},n.prototype.getTargetSeriesModels=function(){var n=[];return this.ecModel.eachSeries(function(t){if(function(n){var t=n.get("coordinateSystem");return tt(tdr,t)>=0}(t)){var r=ac(this._dimName),i=t.getReferringComponents(r,oi).models[0];i&&this._axisIndex===i.componentIndex&&n.push(t)}},this),n},n.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},n.prototype.getMinMaxSpan=function(){return y(this._minMaxSpan)},n.prototype.calculateDataWindow=function(n){function s(n,t,i,r,u){var s=u?"Span":"ValueSpan",o;for(fv(0,n,i,"all",e["min"+s],e["max"+s]),o=0;o<2;o++)t[o]=pt(n[o],i,r,!0),u&&(t[o]=f.parse(t[o]))}var o,t=this._dataExtent,f=this.getAxisModel().axis.scale,h=this._dataZoomModel.getRangePropMode(),i=[0,100],r=[],u=[],e;return kw(["start","end"],function(e,s){var c=n[e],l=n[e+"Value"];"percent"===h[s]?(null==c&&(c=i[s]),l=f.parse(pt(c,i,t))):(o=!0,c=pt(l=null==l?t[s]:f.parse(l),t,i));u[s]=null==l||isNaN(l)?t[s]:l;r[s]=null==c||isNaN(c)?i[s]:c}),udr(u),udr(r),e=this._minMaxSpan,o?s(u,r,t,i,!1):s(r,u,i,t,!0),{valueWindow:u,percentWindow:r}},n.prototype.reset=function(n){var r,i;n===this._dataZoomModel&&(r=this.getTargetSeriesModels(),this._dataExtent=function(n,i,r){var e=[1/0,-1/0],u,f;return kw(r,function(n){!function(n,i,r){i&&t(not(i,r),function(t){var r=i.getApproximateExtent(t);r[0]<n[0]&&(n[0]=r[0]);r[1]>n[1]&&(n[1]=r[1])})}(e,n.getData(),i)}),u=n.getAxisModel(),f=lir(u.axis.scale,u,e).calculate(),[f.min,f.max]}(this,this._dimName,r),this._updateMinMaxSpan(),i=this.calculateDataWindow(n.settledOption),this._valueWindow=i.valueWindow,this._percentWindow=i.percentWindow,this._setAxisModel())},n.prototype.filterData=function(n){if(n===this._dataZoomModel){var r=this._dimName,u=this.getTargetSeriesModels(),i=n.get("filterMode"),t=this._valueWindow;"none"!==i&&kw(u,function(n){var u=n.getData(),e=u.mapDimensionsAll(r),o,s;e.length&&("weakFilter"===i?(o=u.getStore(),s=f(e,function(n){return u.getDimensionIndex(n)},u),u.filterSelf(function(n){for(var u,f,h,i=0;i<e.length;i++){var r=o.get(s[i],n),c=!isNaN(r),l=r<t[0],a=r>t[1];if(c&&!l&&!a)return!0;c&&(h=!0);l&&(u=!0);a&&(f=!0)}return h&&u&&f})):kw(e,function(r){if("empty"===i)n.setData(u=u.map(r,function(n){return function(n){return n>=t[0]&&n<=t[1]}(n)?n:NaN}));else{var f={};f[r]=t;u.selectRange(f)}}),kw(e,function(n){u.setApproximateExtent(t,n)}))})}},n.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},i=this._dataZoomModel,n=this._dataExtent;kw(["min","max"],function(r){var f=i.get(r+"Span"),u=i.get(r+"ValueSpan");null!=u&&(u=this.getAxisModel().axis.scale.parse(u));null!=u?f=pt(n[0]+u,n,[0,100],!0):null!=f&&(u=pt(f,[0,100],n,!0)-n[0]);t[r+"Span"]=f;t[r+"ValueSpan"]=u},this)},n.prototype._setAxisModel=function(){var u=this.getAxisModel(),i=this._percentWindow,r=this._valueWindow,n,t;i&&(n=tvt(r,[0,500]),n=Math.min(n,20),t=u.axis.scale.rawExtentInfo,0!==i[0]&&t.setDeterminedMinMax("min",+r[0].toFixed(n)),100!==i[1]&&t.setDeterminedMinMax("max",+r[1].toFixed(n)),t.freeze())},n}(),cif={getTargetSeries:function(n){function u(t){n.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(r,u){var f=n.getComponent(ac(r),u);t(r,u,f,i)})})}var i,r;return u(function(n,t,i){i.__dzAxisProxy=null}),i=[],u(function(t,r,u,f){u.__dzAxisProxy||(u.__dzAxisProxy=new hif(t,r,f,n),i.push(u.__dzAxisProxy))}),r=c(),t(i,function(n){t(n.getTargetSeriesModels(),function(n){r.set(n.uid,n)})}),r},overallReset:function(n,t){n.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(t,i){n.getAxisProxy(t,i).reset(n)});n.eachTargetAxis(function(i,r){n.getAxisProxy(i,r).filterData(n,t)})});n.eachComponent("dataZoom",function(n){var t=n.findRepresentativeAxisProxy(),i,r;t&&(i=t.getDataPercentWindow(),r=t.getDataValueWindow(),n.setCalculatedRange({start:i[0],end:i[1],startValue:r[0],endValue:r[1]}))})}},fdr=!1;ku=function(){};afi={};odr=function(n){function r(){var t=null!==n&&n.apply(this,arguments)||this;return t.type=r.type,t}return i(r,n),r.prototype.optionUpdated=function(){n.prototype.optionUpdated.apply(this,arguments);var i=this.ecModel;t(this.option.feature,function(n,t){var r=edr(t);r&&(r.getDefaultOption&&(r.defaultOption=r.getDefaultOption(i)),k(n,r.defaultOption))})},r.type="toolbox",r.layoutMode={type:"box",ignoreSize:!0},r.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},r}(rt);var aif=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return i(r,n),r.prototype.render=function(n,i,r,u){function c(c,l){var p,w=h[c],d=h[l],nt=v[w],b=new at(nt,n,n.ecModel),g,k;if(u&&null!=u.newTitle&&u.featureName===w&&(nt.title=u.newTitle),w&&!d){if(function(n){return 0===n.indexOf("my")}(w))p={onclick:b.option.onclick,featureName:w};else{if(g=edr(w),!g)return;p=new g}y[w]=p}else if(!(p=y[d]))return;p.uid=dy("toolbox-feature");p.model=b;p.ecModel=i;p.api=r;k=p instanceof ku;w||!d?!b.get("show")||k&&p.unusable?k&&p.remove&&p.remove(i,r):(!function(u,h,c){var y,v,k=u.getModel("iconStyle"),l=u.getModel(["emphasis","iconStyle"]),p=h instanceof ku&&h.getIcons?h.getIcons():u.get("icon"),w=u.get("title")||{},b;o(p)?(y={})[c]=p:y=p;o(w)?(v={})[c]=w:v=w;b=u.iconPaths={};t(y,function(t,o){var c=wy(t,{},{x:-e/2,y:-e/2,width:e,height:e}),y;c.setStyle(k.getItemStyle());c.ensureState("emphasis").style=l.getItemStyle();y=new st({style:{text:v[o],align:l.get("textAlign"),borderRadius:l.get("textBorderRadius"),padding:l.get("textPadding"),fill:null},ignore:!0});c.setTextContent(y);by({el:c,componentModel:n,itemName:o,formatterParamsExtra:{title:v[o]}});c.__title=v[o];c.on("mouseover",function(){var t=l.getItemStyle(),i=a?null==n.get("right")&&"right"!==n.get("left")?"right":"left":null==n.get("bottom")&&"bottom"!==n.get("top")?"bottom":"top";y.setStyle({fill:l.get("textFill")||t.fill||t.stroke||"#000",backgroundColor:l.get("textBackgroundColor")});c.setTextConfig({position:l.get("textPosition")||i});y.ignore=!n.get("showTitle");r.enterEmphasis(this)}).on("mouseout",function(){"emphasis"!==u.get(["iconStatus",o])&&r.leaveEmphasis(this);y.hide()});("emphasis"===u.get(["iconStatus",o])?ss:hs)(c);f.add(c);c.on("click",s(h.onclick,h,i,r,o));b[o]=c})}(b,p,w),b.setIconStatus=function(n,t){var i=this.option,r=this.iconPaths;i.iconStatus=i.iconStatus||{};i.iconStatus[n]=t;r[n]&&("emphasis"===t?ss:hs)(r[n])},p instanceof ku&&p.render&&p.render(b,i,r,u)):k&&p.dispose&&p.dispose(i,r)}var f=this.group;if(f.removeAll(),n.get("show")){var e=+n.get("itemSize"),a="vertical"===n.get("orient"),v=n.get("feature")||{},y=this._features||(this._features={}),h=[];t(v,function(n,t){h.push(t)});new co(this._featureNames||[],h).add(c).update(c).remove(w(c,null)).execute();this._featureNames=h,function(n,t,i){var r=t.getBoxLayoutParams(),u=t.get("padding"),f={width:i.getWidth(),height:i.getHeight()},e=ci(r,f,u);kh(t.get("orient"),n,t.get("itemGap"),e.width,e.height);nft(n,r,f,u)}(f,n,r);f.add(sdr(f.getBoundingRect(),n));a||f.eachChild(function(n){var h=n.__title,c=n.ensureState("emphasis"),u=c.textConfig||(c.textConfig={}),a=n.getTextContent(),t=a&&a.ensureState("emphasis"),s;if(t&&!l(t)&&h){var o=t.style||(t.style={}),i=sk(h,st.makeFont(o)),v=n.x+f.x,y=!1;n.y+f.y+e+i.height>r.getHeight()&&(u.position="top",y=!0);s=y?-5-i.height:e+10;v+i.width/2>r.getWidth()?(u.position=["100%",s],o.align="right"):v-i.width/2<0&&(u.position=[0,s],o.align="left")}})}},r.prototype.updateView=function(n,i,r,u){t(this._features,function(n){n instanceof ku&&n.updateView&&n.updateView(n.model,i,r,u)})},r.prototype.remove=function(n,i){t(this._features,function(t){t instanceof ku&&t.remove&&t.remove(n,i)});this.group.removeAll()},r.prototype.dispose=function(n,i){t(this._features,function(t){t instanceof ku&&t.dispose&&t.dispose(n,i)})},r.type="toolbox",r}(ni),vif=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return i(t,n),t.prototype.onclick=function(n,t){var i=this.model,s=i.get("name")||n.get("title.0.text")||"echarts",h="svg"===t.getZr().painter.getType(),c=h?"svg":i.get("type",!0)||"png",a=t.getConnectedDataURL({type:c,backgroundColor:i.get("backgroundColor",!0)||n.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),v=ft.browser,r,k,p,f,w,d,o,b,e;if(l(MouseEvent)&&(v.newEdge||!v.ie&&!v.edge))r=document.createElement("a"),r.download=s+"."+c,r.target="_blank",r.href=a,k=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1}),r.dispatchEvent(k);else if(window.navigator.msSaveOrOpenBlob||h){var y=a.split(","),tt=y[0].indexOf("base64")>-1,u=h?decodeURIComponent(y[1]):y[1];if(tt&&(u=window.atob(u)),p=s+"."+c,window.navigator.msSaveOrOpenBlob){for(f=u.length,w=new Uint8Array(f);f--;)w[f]=u.charCodeAt(f);d=new Blob([w]);window.navigator.msSaveOrOpenBlob(d,p)}else o=document.createElement("iframe"),document.body.appendChild(o),b=o.contentWindow,e=b.document,e.open("image/svg+xml","replace"),e.write(u),e.close(),b.focus(),e.execCommand("SaveAs",!0,p),document.body.removeChild(o)}else{var g=i.get("lang"),it='<body style="margin:0;"><img src="'+a+'" style="max-width:100%;" title="'+(g&&g[0]||"")+'" /><\/body>',nt=window.open();nt.document.write(it);nt.document.title=s}},t.getDefaultOption=function(n){return{show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:n.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:n.getLocaleModel().get(["toolbox","saveAsImage","lang"])}},t}(ku),hdr="__ec_magicType_stack__",yif=[["line","bar"],["stack"]],pif=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return i(r,n),r.prototype.getIcons=function(){var n=this.model,i=n.get("icon"),r={};return t(n.get("type"),function(n){i[n]&&(r[n]=i[n])}),r},r.getDefaultOption=function(n){return{show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:n.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},r.prototype.onclick=function(n,i,r){var u=this.model,o=u.get(["seriesIndex",r]),s,f,e;cdr[r]&&(f={series:[]},t(yif,function(n){tt(n,r)>=0&&t(n,function(n){u.setIconStatus(n,"normal")})}),u.setIconStatus(r,"emphasis"),n.eachComponent({mainType:"series",query:null==o?null:{seriesIndex:o}},function(n){var c=n.subType,l=n.id,o=cdr[r](c,l,n,u),e,s,t,i,h;if(o&&(a(o,n.option),f.series.push(o)),e=n.coordinateSystem,e&&"cartesian2d"===e.type&&("line"===r||"bar"===r)&&(s=e.getAxesByScale("ordinal")[0],s)){for(t=s.dim+"Axis",i=n.getReferringComponents(t,oi).models[0].componentIndex,f[t]=f[t]||[],h=0;h<=i;h++)f[t][i]=f[t][i]||{};f[t][i].boundaryGap="bar"===r}}),e=r,"stack"===r&&(s=k({stack:u.option.title.tiled,tiled:u.option.title.stack},u.option.title),"emphasis"!==u.get(["iconStatus",r])&&(e="tiled")),i.dispatchAction({type:"changeMagicType",currentType:e,newOption:f,newTitle:s,featureName:"magicType"}))},r}(ku),cdr={line:function(n,t,i,r){if("bar"===n)return k({id:t,type:"line",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(n,t,i,r){if("line"===n)return k({id:t,type:"bar",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(n,t,i,r){var u=i.get("stack")===hdr;if("line"===n||"bar"===n)return r.setIconStatus("stack",u?"normal":"emphasis"),k({id:t,stack:u?"":hdr},r.get(["option","stack"])||{},!0)}};ae({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(n,t){t.mergeOption(n.newOption)});itt=new Array(60).join("-");gw="\t";yht=new RegExp("[\t]+","g");ldr=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return i(r,n),r.prototype.onclick=function(n,i){function g(){h.removeChild(u);rt._dom=null}var h,r,u,c,p,e,s,a,v,it,y,rt;setTimeout(function(){i.dispatchAction({type:"hideTip"})});h=i.getDom();r=this.model;this._dom&&h.removeChild(this._dom);u=document.createElement("div");u.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px";u.style.backgroundColor=r.get("backgroundColor")||"#fff";c=document.createElement("h4");p=r.get("lang")||[];c.innerHTML=p[0]||r.get("title");c.style.cssText="margin:10px 20px";c.style.color=r.get("textColor");e=document.createElement("div");s=document.createElement("textarea");e.style.cssText="overflow:auto";var w=r.get("optionToContent"),b=r.get("contentToOption"),tt=function(n){var u,e,i,r=function(n){var t={},i=[],r=[];return n.eachRawSeries(function(n){var f=n.coordinateSystem,u,e;f&&("cartesian2d"===f.type||"polar"===f.type)?(u=f.getBaseAxis(),"category"===u.type?(e=u.dim+"_"+u.index,t[e]||(t[e]={categoryAxis:u,valueAxis:f.getOtherAxis(u),series:[]},r.push({axisDim:u.dim,axisIndex:u.index})),t[e].series.push(n)):i.push(n)):i.push(n)}),{seriesGroupByCategoryAxis:t,other:i,meta:r}}(n);return{value:yt([(e=r.seriesGroupByCategoryAxis,i=[],t(e,function(n){var h=n.categoryAxis,c=n.valueAxis.dim,l=[" "].concat(f(n.series,function(n){return n.name})),r=[h.model.getCategories()],o,u,s,e;for(t(n.series,function(n){var t=n.getRawData();r.push(n.getRawData().mapArray(t.mapDimension(c),function(n){return n}))}),o=[l.join(gw)],u=0;u<r[0].length;u++){for(s=[],e=0;e<r.length;e++)s.push(r[e][u]);o.push(s.join(gw))}i.push(o.join("\n"))}),i.join("\n\n"+itt+"\n\n")),(u=r.other,f(u,function(n){var t=n.getRawData(),i=[n.name],r=[];return t.each(t.dimensions,function(){for(var u=arguments.length,e=arguments[u-1],f=t.getName(e),n=0;n<u-1;n++)r[n]=arguments[n];i.push((f?f+gw:"")+r.join(gw))}),i.join("\n")}).join("\n\n"+itt+"\n\n"))],function(n){return!!n.replace(/[\n\t\s]/g,"")}).join("\n\n"+itt+"\n\n"),meta:r.meta}}(n);l(w)?(a=w(i.getOption()),o(a)?e.innerHTML=a:vv(a)&&e.appendChild(a)):(s.readOnly=r.get("readOnly"),v=s.style,v.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",v.color=r.get("textColor"),v.borderColor=r.get("textareaBorderColor"),v.backgroundColor=r.get("textareaColor"),s.value=tt.value,e.appendChild(s));it=tt.meta;y=document.createElement("div");y.style.cssText="position:absolute;bottom:5px;left:0;right:0";var nt="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",k=document.createElement("div"),d=document.createElement("div");nt+=";background-color:"+r.get("buttonColor");nt+=";color:"+r.get("buttonTextColor");rt=this;hlt(k,"click",g);hlt(d,"click",function(){if(null==b&&null!=w||null!=b&&null==w)g();else{var n;try{n=l(b)?b(e,i.getOption()):wif(s.value,it)}catch(n){throw g(),new Error("Data view format error "+n);}n&&i.dispatchAction({type:"changeDataView",newOption:n});g()}});k.innerHTML=p[1];d.innerHTML=p[2];d.style.cssText=k.style.cssText=nt;!r.get("readOnly")&&y.appendChild(d);y.appendChild(k);u.appendChild(c);u.appendChild(e);u.appendChild(y);e.style.height=h.clientHeight-80+"px";h.appendChild(u);this._dom=u},r.prototype.remove=function(n,t){this._dom&&t.getDom().removeChild(this._dom)},r.prototype.dispose=function(n,t){this.remove(n,t)},r.getDefaultOption=function(n){return{show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:n.getLocaleModel().get(["toolbox","dataView","title"]),lang:n.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"}},r}(ku);ae({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(n,i){var u=[];t(n.newOption.series,function(n){var t=i.getSeriesByName(n.name)[0],f;t?(f=t.get("data"),u.push({name:n.name,data:bif(n.data,f)})):u.push(r({type:"scatter"},n))});i.mergeOption(a({series:u},n.newOption))});vfi=t;yfi=ct();adr=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return i(t,n),t.prototype.onclick=function(n,t){!function(n){yfi(n).snapshots=null}(n);t.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(n){return{show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:n.getLocaleModel().get(["toolbox","restore","title"])}},t}(ku);ae({type:"restore",event:"restore",update:"prepareAndUpdate"},function(n,t){t.resetOption("recreate")});vdr=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"];pht=function(){function n(n,i,r){var f=this,u;this._targetInfoList=[];u=ydr(i,n);t(kif,function(n,t){(!r||!r.include||tt(r.include,t)>=0)&&n(u,f._targetInfoList)})}return n.prototype.setOutputRanges=function(n,t){return this.matchOutputRanges(n,t,function(n,t,i){if((n.coordRanges||(n.coordRanges=[])).push(t),!n.coordRange){n.coordRange=t;var r=bfi[n.brushType](0,i,t);n.__rangeOffset={offset:kfi[n.brushType](r.values,n.range,[1,1]),xyMinMax:r.xyMinMax}}}),n},n.prototype.matchOutputRanges=function(n,i,r){t(n,function(n){var u=this.findTargetInfo(n,i);u&&!0!==u&&t(u.coordSyses,function(t){var u=bfi[n.brushType](1,t,n.range,!0);r(n,u.values,t,i)})},this)},n.prototype.setInputRanges=function(n,i){t(n,function(n){var s,h,e,o,t,r=this.findTargetInfo(n,i),u,f;(n.range=n.range||[],r&&!0!==r)&&(n.panelId=r.panelId,u=bfi[n.brushType](0,r.coordSys,n.coordRange),f=n.__rangeOffset,n.range=f?kfi[n.brushType](u.values,f.offset,(s=u.xyMinMax,h=f.xyMinMax,e=ddr(s),o=ddr(h),t=[e[0]/o[0],e[1]/o[1]],isNaN(t[0])&&(t[0]=1),isNaN(t[1])&&(t[1]=1),t)):u.values)},this)},n.prototype.makePanelOpts=function(n,t){return f(this._targetInfoList,function(i){var r=i.getPanelRect();return{panelId:i.panelId,defaultBrushType:t?t(i):null,clipPath:ryr(r),isTargetByCursor:fyr(r,n,i.coordSysModel),getLinearBrushOtherExtent:uyr(r)}})},n.prototype.controlSeries=function(n,t,i){var r=this.findTargetInfo(n,i);return!0===r||r&&tt(r.coordSyses,t.coordinateSystem)>=0},n.prototype.findTargetInfo=function(n,t){for(var i,f,r,e=this._targetInfoList,o=ydr(t,n),u=0;u<e.length;u++)if(i=e[u],f=n.panelId,f){if(i.panelId===f)return i}else for(r=0;r<pdr.length;r++)if(pdr[r](o,i))return i;return!0},n}();var kif={grid:function(n,i){var u=n.xAxisModels,f=n.yAxisModels,s=n.gridModels,r=c(),e={},o={};(u||f||s)&&(t(u,function(n){var t=n.axis.grid.model;r.set(t.id,t);e[t.id]=!0}),t(f,function(n){var t=n.axis.grid.model;r.set(t.id,t);o[t.id]=!0}),t(s,function(n){r.set(n.id,n);e[n.id]=!0;o[n.id]=!0}),r.each(function(n){var s=n.coordinateSystem,r=[];t(s.getCartesians(),function(n){(tt(u,n.getAxis("x").model)>=0||tt(f,n.getAxis("y").model)>=0)&&r.push(n)});i.push({panelId:"grid--"+n.id,gridModel:n,coordSysModel:n,coordSys:r[0],coordSyses:r,getPanelRect:wdr.grid,xAxisDeclared:e[n.id],yAxisDeclared:o[n.id]})}))},geo:function(n,i){t(n.geoModels,function(n){var t=n.coordinateSystem;i.push({panelId:"geo--"+n.id,geoModel:n,coordSysModel:n,coordSys:t,coordSyses:[t],getPanelRect:wdr.geo})})}},pdr=[function(n,t){var r=n.xAxisModel,u=n.yAxisModel,i=n.gridModel;return!i&&r&&(i=r.axis.grid.model),!i&&u&&(i=u.axis.grid.model),i&&i===t.gridModel},function(n,t){var i=n.geoModel;return i&&i===t.geoModel}],wdr={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var n=this.coordSys,t=n.getBoundingRect().clone();return t.applyTransform(yh(n)),t}},bfi={lineX:w(bdr,0),lineY:w(bdr,1),rect:function(n,t,i,r){var u=n?t.pointToData([i[0][0],i[1][0]],r):t.dataToPoint([i[0][0],i[1][0]],r),f=n?t.pointToData([i[0][1],i[1][1]],r):t.dataToPoint([i[0][1],i[1][1]],r),e=[wfi([u[0],f[0]]),wfi([u[1],f[1]])];return{values:e,xyMinMax:e}},polygon:function(n,t,i,r){var u=[[1/0,-1/0],[1/0,-1/0]];return{values:f(i,function(i){var f=n?t.pointToData(i,r):t.dataToPoint(i,r);return u[0][0]=Math.min(u[0][0],f[0]),u[1][0]=Math.min(u[1][0],f[1]),u[0][1]=Math.max(u[0][1],f[0]),u[1][1]=Math.max(u[1][1],f[1]),f}),xyMinMax:u}}};kfi={lineX:w(kdr,0),lineY:w(kdr,1),rect:function(n,t,i){return[[n[0][0]-i[0]*t[0][0],n[0][1]-i[0]*t[0][1]],[n[1][0]-i[1]*t[1][0],n[1][1]-i[1]*t[1][1]]]},polygon:function(n,t,i){return f(n,function(n,r){return[n[0]-i[0]*t[r][0],n[1]-i[1]*t[r][1]]})}};var dfi,gfi,nei=t,dif=ovt+"toolbox-dataZoom_",gif=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return i(t,n),t.prototype.render=function(n,t,i,r){this._brushController||(this._brushController=new dii(i.getZr()),this._brushController.on("brush",s(this._onBrush,this)).mount()),function(n,t,i,r,u){var f=i._isZoomActive,o,e;r&&"takeGlobalCursor"===r.type&&(f="dataZoomSelect"===r.key&&r.dataZoomSelectActive);i._isZoomActive=f;n.setIconStatus("zoom",f?"emphasis":"normal");o=new pht(tei(n),t,{include:["grid"]});e=o.makePanelOpts(u,function(n){return n.xAxisDeclared&&!n.yAxisDeclared?"lineX":!n.xAxisDeclared&&n.yAxisDeclared?"lineY":"rect"});i._brushController.setPanels(e).enableBrush(!(!f||!e.length)&&{brushType:"auto",brushStyle:n.getModel("brushStyle").getItemStyle()})}(n,t,this,r,i),function(n,t){n.setIconStatus("back",function(n){return pfi(n).length}(t)>1?"emphasis":"normal")}(n,t)},t.prototype.onclick=function(n,t,i){nrf[i].call(this)},t.prototype.remove=function(){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(n){function r(n,r,u){var o=r.getAxis(n),s=o.model,f=function(n,t,i){var r;return i.eachComponent({mainType:"dataZoom",subType:"select"},function(i){i.getAxisModel(n,t.componentIndex)&&(r=i)}),r}(n,s,t),e=f.findRepresentativeAxisProxy(s).getMinMaxSpan();null==e.minValueSpan&&null==e.maxValueSpan||(u=fv(0,u.slice(),o.scale.getExtent(),0,e.minValueSpan,e.maxValueSpan));f&&(i[f.id]={dataZoomId:f.id,startValue:u[0],endValue:u[1]})}var u=n.areas,i,t;n.isEnd&&u.length&&(i={},t=this.ecModel,this._brushController.updateCovers([]),new pht(tei(this.model),t,{include:["grid"]}).matchOutputRanges(u,t,function(n,t,i){if("cartesian2d"===i.type){var u=n.brushType;"rect"===u?(r("x",i,t[0]),r("y",i,t[1])):r({lineX:"x",lineY:"y"}[u],i,t)}}),function(n,t){var i=pfi(n);vfi(t,function(t,r){for(var f,e,u=i.length-1;u>=0&&!i[u][r];u--);u<0&&(f=n.queryComponents({mainType:"dataZoom",subType:"select",id:r})[0],f&&(e=f.getPercentRange(),i[0][r]={dataZoomId:r,start:e[0],end:e[1]}))});i.push(t)}(t,i),this._dispatchZoomAction(i))},t.prototype._dispatchZoomAction=function(n){var t=[];nei(n,function(n){t.push(y(n))});t.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:t})},t.getDefaultOption=function(n){return{show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:n.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}}},t}(ku),nrf={zoom:function(){var n=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:n})},back:function(){this._dispatchZoomAction(function(n){var t=pfi(n),r=t[t.length-1],i;return t.length>1&&t.pop(),i={},vfi(r,function(n,r){for(var u=t.length-1;u>=0;u--)if(n=t[u][r]){i[r]=n;break}}),i}(this.ecModel))}};dfi="dataZoom";gfi=function(n){function e(n,t,i){var f=n.componentIndex,e={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:dif+t+f};e[i]=f;u.push(e)}var t=n.getComponent("toolbox",0),i=["feature","dataZoom"];if(t&&null!=t.get(i)){var r=t.getModel(i),u=[],f=vk(n,tei(r));return nei(f.xAxisModels,function(n){return e(n,"xAxis","xAxisIndex")}),nei(f.yAxisModels,function(n){return e(n,"yAxis","yAxisIndex")}),u}};sr(null==awt.get(dfi)&&gfi);awt.set(dfi,gfi);gdr=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i}return i(t,n),t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(rt);iei=tgr(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);var trf=igr(tgr(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),rei=igr(iei,"transform"),irf="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(ft.transform3dSupported?"will-change:transform;":"");fgr=function(){function n(n,t,i){var u,f,e,r;if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,ft.wxa)return null;u=document.createElement("div");u.domBelongToZr=!0;this.el=u;f=this._zr=t.getZr();e=this._appendToBody=i&&i.appendToBody;ugr(this._styleCoord,f,e,t.getWidth()/2,t.getHeight()/2);e?document.body.appendChild(u):n.appendChild(u);this._container=n;r=this;u.onmouseenter=function(){r._enterable&&(clearTimeout(r._hideTimeout),r._show=!0);r._inContent=!0};u.onmousemove=function(n){if(n=n||window.event,!r._enterable){var t=f.handler;tf(f.painter.getViewportRoot(),n,!0);t.dispatch("mousemove",n)}};u.onmouseleave=function(){r._inContent=!1;r._enterable&&r._show&&r.hideLater(r._hideDelay)}}return n.prototype.update=function(n){var u,t,i,f=this._container,o=(t="position",(i=(u=f).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(u))?t?i[t]:i:null),e=f.style,r;"absolute"!==e.position&&"absolute"!==o&&(e.position="relative");r=n.get("alwaysShowContent");r&&this._moveIfResized();this._alwaysShowContent=r;this.el.className=n.get("className")||""},n.prototype.show=function(n,t){clearTimeout(this._hideTimeout);clearTimeout(this._longHideTimeout);var i=this.el,r=i.style,u=this._styleCoord;i.innerHTML?r.cssText=irf+rrf(n,!this._firstShow,this._longHide)+rgr(u[0],u[1],!0)+"border-color:"+ua(t)+";"+(n.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):r.display="none";this._show=!0;this._firstShow=!1;this._longHide=!1},n.prototype.setContent=function(n,t,i,r,f){var e=this.el,h,s,c;if(null!=n){if(h="",o(f)&&"item"===i.get("trigger")&&!ngr(i)&&(h=function(n,t,i){var a,r;if(!o(i)||"inside"===i)return"";a=n.get("backgroundColor");r=n.get("borderWidth");t=ua(t);var f,e,u="left"===(f=i)?"right":"right"===f?"left":"top"===f?"bottom":"top",s=Math.max(1.5*Math.round(r),6),h="",c=rei+":";tt(["left","right"],u)>-1?(h+="top:50%",c+="translateY(-50%) rotate("+(e="left"===u?-225:-45)+"deg)"):(h+="left:50%",c+="translateX(-50%) rotate("+(e="top"===u?225:45)+"deg)");var v=e*Math.PI/180,l=s+r,y=l*Math.abs(Math.cos(v))+l*Math.abs(Math.sin(v)),p=t+" solid "+r+"px;";return'<div style="'+["position:absolute;width:"+s+"px;height:"+s+"px;z-index:-1;",(h+=";"+u+":-"+Math.round(100*((y-Math.SQRT2*r)/2+Math.SQRT2*r-(y-l)/2))/100+"px")+";"+c+";","border-bottom:"+p,"border-right:"+p,"background-color:"+a+";"].join("")+'"><\/div>'}(i,r,f)),o(n))e.innerHTML=n+h;else if(n){for(e.innerHTML="",u(n)||(n=[n]),s=0;s<n.length;s++)vv(n[s])&&n[s].parentNode!==e&&e.appendChild(n[s]);h&&e.childNodes.length&&(c=document.createElement("div"),c.innerHTML=h,e.appendChild(c))}}else e.innerHTML=""},n.prototype.setEnterable=function(n){this._enterable=n},n.prototype.getSize=function(){var n=this.el;return[n.offsetWidth,n.offsetHeight]},n.prototype.moveTo=function(n,i){var r=this._styleCoord,u;(ugr(r,this._zr,this._appendToBody,n,i),null!=r[0]&&null!=r[1])&&(u=this.el.style,t(rgr(r[0],r[1]),function(n){u[n[0]]=n[1]}))},n.prototype._moveIfResized=function(){var n=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(n*this._zr.getWidth(),t*this._zr.getHeight())},n.prototype.hide=function(){var t=this,n=this.el.style;n.visibility="hidden";n.opacity="0";ft.transform3dSupported&&(n.willChange="");this._show=!1;this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},n.prototype.hideLater=function(n){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(n?(this._hideDelay=n,this._show=!1,this._hideTimeout=setTimeout(s(this.hide,this),n)):this.hide())},n.prototype.isShow=function(){return this._show},n.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},n}();egr=function(){function n(n){this._show=!1;this._styleCoord=[0,0,0,0];this._alwaysShowContent=!1;this._enterable=!0;this._zr=n.getZr();sgr(this._styleCoord,this._zr,n.getWidth()/2,n.getHeight()/2)}return n.prototype.update=function(n){var t=n.get("alwaysShowContent");t&&this._moveIfResized();this._alwaysShowContent=t},n.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout);this.el.show();this._show=!0},n.prototype.setContent=function(n,i,r,u){var o=this,e,f;v(n)&&vt("");this.el&&this._zr.remove(this.el);e=r.getModel("textStyle");this.el=new st({style:{rich:i.richTextStyles,text:n,lineHeight:22,borderWidth:1,borderColor:u,textShadowColor:e.get("textShadowColor"),fill:r.get(["textStyle","color"]),padding:ldi(r,"richText"),verticalAlign:"top",align:"left"},z:r.get("z")});t(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(n){o.el.style[n]=r.get(n)});t(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(n){o.el.style[n]=e.get(n)||0});this._zr.add(this.el);f=this;this.el.on("mouseover",function(){f._enterable&&(clearTimeout(f._hideTimeout),f._show=!0);f._inContent=!0});this.el.on("mouseout",function(){f._enterable&&f._show&&f.hideLater(f._hideDelay);f._inContent=!1})},n.prototype.setEnterable=function(n){this._enterable=n},n.prototype.getSize=function(){var i=this.el,t=this.el.getBoundingRect(),n=ogr(i.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},n.prototype.moveTo=function(n,t){var i=this.el,r;if(i){r=this._styleCoord;sgr(r,this._zr,n,t);n=r[0];t=r[1];var u=i.style,f=vc(u.borderWidth||0),e=ogr(u);i.x=n+f+e.left;i.y=t+f+e.top;i.markRedraw()}},n.prototype._moveIfResized=function(){var n=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(n*this._zr.getWidth(),t*this._zr.getHeight())},n.prototype.hide=function(){this.el&&this.el.hide();this._show=!1},n.prototype.hideLater=function(n){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(n?(this._hideDelay=n,this._show=!1,this._hideTimeout=setTimeout(s(this.hide,this),n)):this.hide())},n.prototype.isShow=function(){return this._show},n.prototype.dispose=function(){this._zr.remove(this.el)},n}();hgr=new ot({shape:{x:-1,y:-1,width:2,height:2}});cgr=function(n){function f(){var t=null!==n&&n.apply(this,arguments)||this;return t.type=f.type,t}return i(f,n),f.prototype.init=function(n,t){if(!ft.node&&t.getDom()){var i,r=n.getComponent("tooltip"),u=this._renderMode="auto"===(i=r.get("renderMode"))?ft.domSupported?"html":"richText":i||"html";this._tooltipContent="richText"===u?new egr(t):new fgr(t.getDom(),t,{appendToBody:r.get("appendToBody",!0)})}},f.prototype.render=function(n,t,i){if(!ft.node&&i.getDom()){this.group.removeAll();this._tooltipModel=n;this._ecModel=t;this._api=i;var r=this._tooltipContent;r.update(n);r.setEnterable(n.get("enterable"));this._initGlobalListener();this._keepShow();"richText"!==this._renderMode&&n.get("transitionDuration")?cp(this,"_updatePosition",50,"fixRate"):ng(this,"_updatePosition")}},f.prototype._initGlobalListener=function(){var n=this._tooltipModel.get("triggerOn");wbr("itemTooltip",this._api,s(function(t,i,r){"none"!==n&&(n.indexOf(t)>=0?this._tryShow(i,r):"leave"===t&&this._hide(r))},this))},f.prototype._keepShow=function(){var t=this._tooltipModel,u=this._ecModel,i=this._api,r=t.get("triggerOn"),n;null!=this._lastX&&null!=this._lastY&&"none"!==r&&"click"!==r&&(n=this,clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){i.isDisposed()||n.manuallyShowTip(t,u,i,{x:n._lastX,y:n._lastY,dataByCoordSys:n._lastDataByCoordSys})}))},f.prototype.manuallyShowTip=function(n,t,i,r){var u,s,o,f,e;if(r.from!==this.uid&&!ft.node&&i.getDom())if(u=lgr(r,i),this._ticket="",s=r.dataByCoordSys,o=function(n,t,i){var e=cvt(n).queryOptionMap,r=e.keys()[0],o,u,f,s;if(r&&"series"!==r)return(o=yk(t,r,e.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}),u=o.models[0],!u)?void 0:(s=i.getViewOfComponentModel(u),(s.group.traverse(function(t){var i=b(t).tooltipConfig;if(i&&i.name===n.name)return f=t,!0}),f)?{componentMainType:r,componentIndex:u.componentIndex,el:f}:void 0)}(r,t,i),o)f=o.el.getBoundingRect().clone(),f.applyTransform(o.el.transform),this._tryShow({offsetX:f.x+f.width/2,offsetY:f.y+f.height/2,target:o.el,position:r.position,positionDefault:"bottom"},u);else if(r.tooltip&&null!=r.x&&null!=r.y)e=hgr,e.x=r.x,e.y=r.y,e.update(),b(e).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:e},u);else if(s)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:s,tooltipOption:r.tooltipOption},u);else if(null!=r.seriesIndex){if(this._manuallyAxisShowTip(n,t,i,r))return;var h=dbr(r,t),c=h.point[0],l=h.point[1];null!=c&&null!=l&&this._tryShow({offsetX:c,offsetY:l,target:h.el,position:r.position,positionDefault:"bottom"},u)}else null!=r.x&&null!=r.y&&(i.dispatchAction({type:"updateAxisPointer",x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:i.getZr().findHover(r.x,r.y).target},u))},f.prototype.manuallyHideTip=function(n,t,i,r){var u=this._tooltipContent;this._tooltipModel&&u.hideLater(this._tooltipModel.get("hideDelay"));this._lastX=this._lastY=this._lastDataByCoordSys=null;r.from!==this.uid&&this._hide(lgr(r,i))},f.prototype._manuallyAxisShowTip=function(n,t,i,r){var f=r.seriesIndex,e=r.dataIndex,o=t.getComponent("axisPointer").coordSysAxesInfo,u;if(null!=f&&null!=e&&null!=o&&(u=t.getSeriesByIndex(f),u&&"axis"===rtt([u.getData().getItemModel(e),u,(u.coordinateSystem||{}).model],this._tooltipModel).get("trigger")))return i.dispatchAction({type:"updateAxisPointer",seriesIndex:f,dataIndex:e,position:r.position}),!0},f.prototype._tryShow=function(n,t){var f=n.target,i,r,u;this._tooltipModel&&(this._lastX=n.offsetX,this._lastY=n.offsetY,i=n.dataByCoordSys,i&&i.length?this._showAxisTooltip(i,n):f?(this._lastDataByCoordSys=null,ea(f,function(n){return null!=b(n).dataIndex?(r=n,!0):null!=b(n).tooltipConfig?(u=n,!0):void 0},!0),r?this._showSeriesItemTooltip(n,r,t):u?this._showComponentItemTooltip(n,u,t):this._hide(t)):(this._lastDataByCoordSys=null,this._hide(t)))},f.prototype._showOrMove=function(n,t){var i=n.get("showDelay");t=s(t,this);clearTimeout(this._showTimout);i>0?this._showTimout=setTimeout(t,i):t()},f.prototype._showAxisTooltip=function(n,i){var f=this._ecModel,a=this._tooltipModel,e=[i.offsetX,i.offsetY],u=rtt([i.tooltipOption],a),h=this._renderMode,o=[],c=ki("section",{blocks:[],noHeader:!0}),s=[],l=new hft,p,w;t(n,function(n){t(n.dataByAxis,function(n){var u=f.getComponent(n.axisDim+"Axis",n.axisIndex),e=n.value,i,v;u&&null!=e&&(i=sbr(e,u.axis,f,n.seriesDataIndices,n.valueLabelOpt),v=ki("section",{header:i,noHeader:!gu(i),sortBlocks:!0,blocks:[]}),c.blocks.push(v),t(n.seriesDataIndices,function(t){var w=f.getSeriesByIndex(t.seriesIndex),k=t.dataIndexInside,c=w.getDataParams(k),y,p,b;c.dataIndex<0||(c.axisDim=n.axisDim,c.axisIndex=n.axisIndex,c.axisType=n.axisType,c.axisId=n.axisId,c.axisValue=ydt(u.axis,{value:e}),c.axisValueLabel=i,c.marker=l.makeTooltipMarker("item",ua(c.color),h),y=lki(w.formatTooltip(k,!0,null)),p=y.frag,p&&(b=rtt([w],a).get("valueFormatter"),v.blocks.push(b?r({valueFormatter:b},p):p)),y.text&&s.push(y.text),o.push(c))}))})});c.blocks.reverse();s.reverse();var v=i.position,b=u.get("order"),y=sdi(c,l,h,b,f.get("useUTC"),u.get("textStyle"));y&&s.unshift(y);p="richText"===h?"\n\n":"<br/>";w=s.join(p);this._showOrMove(u,function(){this._updateContentNotChangedOnAxis(n,o)?this._updatePosition(u,v,e[0],e[1],this._tooltipContent,o):this._showTooltipContent(u,w,o,Math.random()+"",e[0],e[1],v,null,l)})},f.prototype._showSeriesItemTooltip=function(n,t,i){var v=this._ecModel,o=b(t),y=o.seriesIndex,c=v.getSeriesByIndex(y),e=o.dataModel||c,u=o.dataIndex,l=o.dataType,p=e.getData(l),w=this._renderMode,k=n.positionDefault,f=rtt([p.getItemModel(u),e,c&&(c.coordinateSystem||{}).model],this._tooltipModel,k?{position:k}:null),d=f.get("trigger"),s,h;if(null==d||"item"===d){s=e.getDataParams(u,l);h=new hft;s.marker=h.makeTooltipMarker("item",ua(s.color),w);var g=lki(e.formatTooltip(u,!1,l)),tt=f.get("order"),nt=f.get("valueFormatter"),a=g.frag,it=a?sdi(nt?r({valueFormatter:nt},a):a,h,w,tt,v.get("useUTC"),f.get("textStyle")):g.text,rt="item_"+e.name+"_"+u;this._showOrMove(f,function(){this._showTooltipContent(f,it,s,rt,n.offsetX,n.offsetY,n.position,n.target,h)});i({type:"showTip",dataIndexInside:u,dataIndex:p.getRawIndex(u),seriesIndex:y,from:this.uid})}},f.prototype._showComponentItemTooltip=function(n,t,i){var e=b(t),r=e.tooltipConfig.option||{},u,s;o(r)&&(r={content:r,formatter:r});u=[r];s=this._ecModel.getComponent(e.componentMainType,e.componentIndex);s&&u.push(s);u.push({formatter:r.content});var h=n.positionDefault,f=rtt(u,this._tooltipModel,h?{position:h}:null),c=f.get("content"),l=Math.random()+"",a=new hft;this._showOrMove(f,function(){var i=y(f.get("formatterParams")||{});this._showTooltipContent(f,c,i,l,n.offsetX,n.offsetY,n.position,t,a)});i({type:"showTip",from:this.uid})},f.prototype._showTooltipContent=function(n,t,i,r,f,e,h,c,a){var y,p,v,b,k,w,d;(this._ticket="",n.get("showContent")&&n.get("show"))&&(y=this._tooltipContent,y.setEnterable(n.get("enterable")),p=n.get("formatter"),h=h||n.get("position"),v=t,b=this._getNearestPoint([f,e],i,n.get("trigger"),n.get("borderColor")).color,p&&(o(p)?(k=n.ecModel.get("useUTC"),w=u(i)?i[0]:i,v=p,w&&w.axisType&&w.axisType.indexOf("time")>=0&&(v=cd(w.axisValue,v,k)),v=owt(v,i,!0)):l(p)?(d=s(function(t,r){t===this._ticket&&(y.setContent(r,a,n,b,h),this._updatePosition(n,h,f,e,y,i,c))},this),this._ticket=r,v=p(i,r,d)):v=p),y.setContent(v,a,n,b,h),y.show(n,b),this._updatePosition(n,h,f,e,y,i,c))},f.prototype._getNearestPoint=function(n,t,i,r){return"axis"===i||u(t)?{color:r||("html"===this._renderMode?"#fff":"none")}:u(t)?void 0:{color:r||t.color||t.borderColor}},f.prototype._updatePosition=function(n,t,i,r,f,s,h){var y=this._api.getWidth(),p=this._api.getHeight(),k,g,c;t=t||n.get("position");var a=f.getSize(),w=n.get("align"),b=n.get("verticalAlign"),d=h&&h.getBoundingRect().clone();(h&&d.applyTransform(h.transform),l(t)&&(t=t([i,r],s,f.el,d,{viewSize:[y,p],contentSize:a.slice()})),u(t))?(i=e(t[0],y),r=e(t[1],p)):v(t)?(k=t,k.width=a[0],k.height=a[1],g=ci(k,{width:y,height:p}),i=g.x,r=g.y,w=null,b=null):o(t)&&h?(c=function(n,t,i,r){var e=i[0],o=i[1],s=Math.ceil(Math.SQRT2*r)+8,u=0,f=0,h=t.width,c=t.height;switch(n){case"inside":u=t.x+h/2-e/2;f=t.y+c/2-o/2;break;case"top":u=t.x+h/2-e/2;f=t.y-o-s;break;case"bottom":u=t.x+h/2-e/2;f=t.y+c+s;break;case"left":u=t.x-e-s;f=t.y+c/2-o/2;break;case"right":u=t.x+h+s;f=t.y+c/2-o/2}return[u,f]}(t,d,a,n.get("borderWidth")),i=c[0],r=c[1]):(c=function(n,t,i,r,u,f,e){var o=i.getSize(),s=o[0],h=o[1];return null!=f&&(n+s+f+2>r?n-=s+f:n+=f),null!=e&&(t+h+e>u?t-=h+e:t+=e),[n,t]}(i,r,f,y,p,w?null:20,b?null:20),i=c[0],r=c[1]);(w&&(i-=agr(w)?a[0]/2:"right"===w?a[0]:0),b&&(r-=agr(b)?a[1]/2:"bottom"===b?a[1]:0),ngr(n))&&(c=function(n,t,i,r,u){var f=i.getSize(),e=f[0],o=f[1];return n=Math.min(n+e,r)-e,t=Math.min(t+o,u)-o,n=Math.max(n,0),t=Math.max(t,0),[n,t]}(i,r,f,y,p),i=c[0],r=c[1]);f.moveTo(i,r)},f.prototype._updateContentNotChangedOnAxis=function(n,i){var u=this._lastDataByCoordSys,f=this._cbParamsList,r=!!u&&u.length===n.length;return r&&t(u,function(u,e){var o=u.dataByAxis||[],s=(n[e]||{}).dataByAxis||[];(r=r&&o.length===s.length)&&t(o,function(n,u){var e=s[u]||{},o=n.seriesDataIndices||[],h=e.seriesDataIndices||[];(r=r&&n.value===e.value&&n.axisType===e.axisType&&n.axisId===e.axisId&&o.length===h.length)&&t(o,function(n,t){var i=h[t];r=r&&n.seriesIndex===i.seriesIndex&&n.dataIndex===i.dataIndex});f&&t(n.seriesDataIndices,function(n){var t=n.seriesIndex,u=i[t],e=f[t];u&&e&&e.data!==u.data&&(r=!1)})})}),this._lastDataByCoordSys=n,this._cbParamsList=i,!!r},f.prototype._hide=function(n){this._lastDataByCoordSys=null;n({type:"hideTip",from:this.uid})},f.prototype.dispose=function(n,t){!ft.node&&t.getDom()&&(ng(this,"_updatePosition"),this._tooltipContent.dispose(),gui("itemTooltip",t))},f.type="tooltip",f}(ni);vgr=["rect","polygon","keep","clear"];uei=t;eei={lineX:wgr(0),lineY:wgr(1),rect:{point:function(n,t,i){return n&&i.boundingRect.contain(n[0],n[1])},rect:function(n,t,i){return n&&i.boundingRect.intersect(n)}},polygon:{point:function(n,t,i){return n&&i.boundingRect.contain(n[0],n[1])&&aa(i.range,n[0],n[1])},rect:function(n,t,i){var f=i.range;if(!n||f.length<=1)return!1;var r=n.x,u=n.y,e=n.width,o=n.height,s=f[0];return!!(aa(f,r,u)||aa(f,r+e,u)||aa(f,r,u+o)||aa(f,r+e,u+o)||nt.create(n).contain(s[0],s[1])||ed(r,u,r+e,u,f)||ed(r,u,r,u+o,f)||ed(r+e,u,r+e,u+o,f)||ed(r,u+o,r+e,u+o,f))||void 0}}};var bgr=["inBrush","outOfBrush"],oei="__ecBrushSelect",sei="__ecInBrushSelectEvent";ggr={rect:function(n){return nnr(n.range)},polygon:function(n){for(var i,t,u=n.range,r=0,f=u.length;r<f;r++)t=t||[[1/0,-1/0],[1/0,-1/0]],i=u[r],i[0]<t[0][0]&&(t[0][0]=i[0]),i[0]>t[0][1]&&(t[0][1]=i[0]),i[1]<t[1][0]&&(t[1][0]=i[1]),i[1]>t[1][1]&&(t[1][1]=i[1]);return t&&nnr(t)}};tnr=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i}return i(t,n),t.prototype.init=function(n,t){this.ecModel=n;this.api=t;this.model;(this._brushController=new dii(t.getZr())).on("brush",s(this._onBrush,this)).mount()},t.prototype.render=function(n,t,i,r){this.model=n;this._updateController(n,t,i,r)},t.prototype.updateTransform=function(n,t,i,r){kgr(t);this._updateController(n,t,i,r)},t.prototype.updateVisual=function(n,t,i,r){this.updateTransform(n,t,i,r)},t.prototype.updateView=function(n,t,i,r){this._updateController(n,t,i,r)},t.prototype._updateController=function(n,t,i,r){r&&r.$from===n.id||this._brushController.setPanels(n.brushTargetManager.makePanelOpts(i)).enableBrush(n.brushOption).updateCovers(n.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(n){var t=this.model.id,i=this.model.brushTargetManager.setOutputRanges(n.areas,this.ecModel);(!n.isEnd||n.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:t,areas:y(i),$from:t});n.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:t,areas:y(i),$from:t})},t.type="brush",t}(ni);inr=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i.areas=[],i.brushOption={},i}return i(t,n),t.prototype.optionUpdated=function(n,t){var i=this.option,r;t||pgr(i,n,["inBrush","outOfBrush"]);r=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:"#ddd"};r.hasOwnProperty("liftZ")||(r.liftZ=5)},t.prototype.setAreas=function(n){n&&(this.areas=f(n,function(n){return rnr(this.option,n)},this))},t.prototype.setBrushOption=function(n){this.brushOption=rnr(this.option,n);this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(rt);var orf=["rect","polygon","lineX","lineY","keep","clear"],srf=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return i(r,n),r.prototype.render=function(n,i){var r,u,f;i.eachComponent({mainType:"brush"},function(n){r=n.brushType;u=n.brushOption.brushMode||"single";f=f||!!n.areas.length});this._brushType=r;this._brushMode=u;t(n.get("type",!0),function(t){n.setIconStatus(t,("keep"===t?"multiple"===u:"clear"===t?f:t===r)?"emphasis":"normal")})},r.prototype.updateView=function(n,t,i){this.render(n,t,i)},r.prototype.getIcons=function(){var n=this.model,i=n.get("icon",!0),r={};return t(n.get("type",!0),function(n){i[n]&&(r[n]=i[n])}),r},r.prototype.onclick=function(n,t,i){var r=this._brushType,u=this._brushMode;"clear"===i?(t.dispatchAction({type:"axisAreaSelect",intervals:[]}),t.dispatchAction({type:"brush",command:"clear",areas:[]})):t.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===i?r:r!==i&&i,brushMode:"keep"===i?"multiple"===u?"single":"multiple":u}})},r.getDefaultOption=function(n){return{show:!0,type:orf.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:n.getLocaleModel().get(["toolbox","brush","title"])}},r}(ku),hrf=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i.layoutMode={type:"box",ignoreSize:!0},i}return i(t,n),t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(rt),crf=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i}return i(t,n),t.prototype.render=function(n,t,i){var e,l,r,p,o,w,tt;if(this.group.removeAll(),n.get("show")){var u=this.group,k=n.getModel("textStyle"),g=n.getModel("subtextStyle"),s=n.get("textAlign"),f=d(n.get("textBaseline"),n.get("textVerticalAlign")),h=new st({style:gt(k,{text:n.get("text"),fill:k.getTextColor()},{disableBox:!0}),z2:10}),it=h.getBoundingRect(),nt=n.get("subtext"),c=new st({style:gt(g,{text:nt,fill:g.getTextColor(),y:it.height+n.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),a=n.get("link"),v=n.get("sublink"),y=n.get("triggerEvent",!0);h.silent=!a&&!y;c.silent=!v&&!y;a&&h.on("click",function(){dut(a,"_"+n.get("target"))});v&&c.on("click",function(){dut(v,"_"+n.get("subtarget"))});b(h).eventData=b(c).eventData=y?{componentType:"title",componentIndex:n.componentIndex}:null;u.add(h);nt&&u.add(c);e=u.getBoundingRect();l=n.getBoxLayoutParams();l.width=e.width;l.height=e.height;r=ci(l,{width:i.getWidth(),height:i.getHeight()},n.get("padding"));s||("middle"===(s=n.get("left")||n.get("right"))&&(s="center"),"right"===s?r.x+=r.width:"center"===s&&(r.x+=r.width/2));f||("center"===(f=n.get("top")||n.get("bottom"))&&(f="middle"),"bottom"===f?r.y+=r.height:"middle"===f&&(r.y+=r.height/2),f=f||"top");u.x=r.x;u.y=r.y;u.markRedraw();p={align:s,verticalAlign:f};h.setStyle(p);c.setStyle(p);e=u.getBoundingRect();o=r.margin;w=n.getItemStyle(["color","opacity"]);w.fill=n.get("backgroundColor");tt=new ot({shape:{x:e.x-o[3],y:e.y-o[0],width:e.width+o[1]+o[3],height:e.height+o[0]+o[2],r:n.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});u.add(tt)}},t.type="title",t}(ni),unr=function(n){function r(){var t=null!==n&&n.apply(this,arguments)||this;return t.type=r.type,t.layoutMode="box",t}return i(r,n),r.prototype.init=function(n,t,i){this.mergeDefaultAndTheme(n,i);this._initData()},r.prototype.mergeOption=function(){n.prototype.mergeOption.apply(this,arguments);this._initData()},r.prototype.setCurrentIndex=function(n){null==n&&(n=this.option.currentIndex);var t=this._data.count();this.option.loop?n=(n%t+t)%t:(n>=t&&(n=t-1),n<0&&(n=0));this.option.currentIndex=n},r.prototype.getCurrentIndex=function(){return this.option.currentIndex},r.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},r.prototype.setPlayState=function(n){this.option.autoPlay=!!n},r.prototype.getPlayState=function(){return!!this.option.autoPlay},r.prototype._initData=function(){var n,i=this.option,r=i.data||[],u=i.axisType,f=this._names=[],e;"category"===u?(n=[],t(r,function(t,i){var r,u=ai(uy(t),"");v(t)?(r=y(t)).value=i:r=i;n.push(r);f.push(u)})):n=r;e={category:"ordinal",time:"time",value:"number"}[u]||"number";(this._data=new yr([{name:"value",type:e}],this)).initData(n,f)},r.prototype.getData=function(){return this._data},r.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},r.type="timeline",r.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},r}(rt),fnr=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i}return i(t,n),t.type="timeline.slider",t.defaultOption=wh(unr.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(unr);fi(fnr,fft.prototype);var lrf=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i}return i(t,n),t.type="timeline",t}(ni),arf=function(n){function t(t,i,r,u){var f=n.call(this,t,i,r)||this;return f.type=u||"value",f}return i(t,n),t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},t}(pu),hei=Math.PI,enr=ct(),vrf=function(n){function u(){var t=null!==n&&n.apply(this,arguments)||this;return t.type=u.type,t}return i(u,n),u.prototype.init=function(n,t){this.api=t},u.prototype.render=function(n,i,r){if(this.model=n,this.api=r,this.ecModel=i,this.group.removeAll(),n.get("show",!0)){var u=this._layout(n,r),e=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),f=this._axis=this._createAxis(u,n);n.formatTooltip=function(n){return ki("nameValue",{noName:!0,value:f.scale.getLabel({value:n})})};t(["AxisLine","AxisTick","Control","CurrentPointer"],function(t){this["_render"+t](u,e,f,n)},this);this._renderAxisLabel(u,o,f,n);this._position(u,n)}this._doPlayStop();this._updateTicksStatus()},u.prototype.remove=function(){this._clearTimer();this.group.removeAll()},u.prototype.dispose=function(){this._clearTimer()},u.prototype._layout=function(n,t){var s,v,y,p,h=n.get(["label","position"]),i=n.get("orient"),r=function(n,t){return ci(n.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},n.get("padding"))}(n,t),rt={horizontal:"center",vertical:(s=null==h||"auto"===h?"horizontal"===i?r.y+r.height/2<t.getHeight()/2?"-":"+":r.x+r.width/2<t.getWidth()/2?"+":"-":o(h)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][h]:h)>=0||"+"===s?"left":"right"},ut={horizontal:s>=0||"+"===s?"top":"bottom",vertical:"middle"},ft={horizontal:0,vertical:hei/2},k="vertical"===i?r.height:r.width,u=n.getModel("controlStyle"),c=u.get("show",!0),l=c?u.get("itemSize"):0,d=c?u.get("itemGap"):0,e=l+d,w=n.get(["label","rotate"])||0,b;w=w*hei/180;var g=u.get("position",!0),nt=c&&u.get("showPlayBtn",!0),tt=c&&u.get("showPrevBtn",!0),it=c&&u.get("showNextBtn",!0),a=0,f=k;return"left"===g||"bottom"===g?(nt&&(v=[0,0],a+=e),tt&&(y=[a,0],a+=e),it&&(p=[f-l,0],f-=e)):(nt&&(v=[f-l,0],f-=e),tt&&(y=[0,0],a+=e),it&&(p=[f-l,0],f-=e)),b=[a,f],n.get("inverse")&&b.reverse(),{viewRect:r,mainLength:k,orient:i,rotation:ft[i],labelRotation:w,labelPosOpt:s,labelAlign:n.get(["label","align"])||rt[i],labelBaseline:n.get(["label","verticalAlign"])||n.get(["label","baseline"])||ut[i],playPosition:v,prevBtnPosition:y,nextBtnPosition:p,axisExtent:b,controlSize:l,controlGap:d}},u.prototype._position=function(n){function w(n){n.originX=f[0][0]-n.x;n.originY=f[1][0]-n.y}function l(n){return[[n.x,n.x+n.width],[n.y,n.y+n.height]]}function a(n,t,i,r,u){n[r]+=i[r][u]-t[r][u]}var i=this._mainGroup,r=this._labelGroup,u=n.viewRect,c,e;if("vertical"===n.orient){var t=[1,0,0,1,0,0],v=u.x,y=u.y+u.height;ne(t,t,[-v,-y]);th(t,t,-hei/2);ne(t,t,[v,y]);(u=u.clone()).applyTransform(t)}var f=l(u),p=l(i.getBoundingRect()),b=l(r.getBoundingRect()),s=[i.x,i.y],h=[r.x,r.y];h[0]=s[0]=f[0][0];e=n.labelPosOpt;null==e||o(e)?(a(s,p,f,1,c="+"===e?0:1),a(h,b,f,1,1-c)):(a(s,p,f,1,c=e>=0?0:1),h[1]=s[1]+e);i.setPosition(s);r.setPosition(h);i.rotation=r.rotation=n.rotation;w(i);w(r)},u.prototype._createAxis=function(n,t){var f=t.getData(),e=t.get("axisType"),i=function(n,t){if(t=t||n.get("type"),t)switch(t){case"category":return new ag({ordinalMeta:n.getCategories(),extent:[1/0,-1/0]});case"time":return new bet({locale:n.ecModel.getLocaleModel(),useUTC:n.ecModel.get("useUTC")});default:return new ao}}(t,e),r,u;return i.getTicks=function(){return f.mapArray(["value"],function(n){return{value:n}})},r=f.getDataExtent("value"),i.setExtent(r[0],r[1]),i.calcNiceTicks(),u=new arf("value",i,n.axisExtent,e),u.model=t,u},u.prototype._createGroup=function(n){var t=this[n]=new p;return this.group.add(t),t},u.prototype._renderAxisLine=function(n,t,i,u){var f=i.getExtent(),e,o;u.get(["lineStyle","show"])&&(e=new vi({shape:{x1:f[0],y1:0,x2:f[1],y2:0},style:r({lineCap:"round"},u.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}),t.add(e),o=this._progressLine=new vi({shape:{x1:f[0],x2:this._currentPointer?this._currentPointer.x:f[0],y1:0,y2:0},style:a({lineCap:"round",lineWidth:e.style.lineWidth},u.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1}),t.add(o))},u.prototype._renderAxisTick=function(n,i,r,u){var f=this,e=u.getData(),o=r.scale.getTicks();this._tickSymbols=[];t(o,function(n){var c=r.dataToCoord(n.value),t=e.getItemModel(n.value),l=t.getModel("itemStyle"),a=t.getModel(["emphasis","itemStyle"]),v=t.getModel(["progress","itemStyle"]),y={x:c,y:0,onclick:s(f._changeTimeline,f,n.value)},o=onr(t,l,i,y),h;o.ensureState("emphasis").style=a.getItemStyle();o.ensureState("progress").style=v.getItemStyle();ah(o);h=b(o);t.get("tooltip")?(h.dataIndex=n.value,h.dataModel=u):h.dataIndex=h.dataModel=null;f._tickSymbols.push(o)})},u.prototype._renderAxisLabel=function(n,i,r,u){var f=this,e,o;r.getLabelModel().get("show")&&(e=u.getData(),o=r.getViewLabels(),this._tickLabels=[],t(o,function(t){var o=t.tickValue,h=e.getItemModel(o),c=h.getModel("label"),l=h.getModel(["emphasis","label"]),a=h.getModel(["progress","label"]),v=r.dataToCoord(t.tickValue),u=new st({x:v,y:0,rotation:n.labelRotation-n.rotation,onclick:s(f._changeTimeline,f,o),silent:!1,style:gt(c,{text:t.formattedLabel,align:n.labelAlign,verticalAlign:n.labelBaseline})});u.ensureState("emphasis").style=gt(l);u.ensureState("progress").style=gt(a);i.add(u);ah(u);enr(u).dataIndex=o;f._tickLabels.push(u)}))},u.prototype._renderControl=function(n,t,i,r){function f(n,i,f,e){if(n){var o=re(d(r.get(["controlStyle",i+"BtnSize"]),u),u),s=function(n,t,i,r){var u=r.style,f=wy(n.get(["controlStyle",t]),r||{},new nt(i[0],i[1],i[2],i[3]));return u&&f.setStyle(u),f}(r,i+"Icon",[0,-o/2,o,o],{x:n[0],y:n[1],originX:u/2,originY:0,rotation:e?-h:0,rectHover:!0,style:c,onclick:f});s.ensureState("emphasis").style=l;t.add(s);ah(s)}}var u=n.controlSize,h=n.rotation,c=r.getModel("controlStyle").getItemStyle(),l=r.getModel(["emphasis","controlStyle"]).getItemStyle(),e=r.getPlayState(),o=r.get("inverse",!0);f(n.nextBtnPosition,"next",s(this._changeTimeline,this,o?"-":"+"));f(n.prevBtnPosition,"prev",s(this._changeTimeline,this,o?"+":"-"));f(n.playPosition,e?"stop":"play",s(this._handlePlayClick,this,!e),!0)},u.prototype._renderCurrentPointer=function(n,t,i,r){var o=r.getData(),f=r.getCurrentIndex(),e=o.getItemModel(f).getModel("checkpointStyle"),u=this,h={onCreate:function(n){n.draggable=!0;n.drift=s(u._handlePointerDrag,u);n.ondragend=s(u._handlePointerDragend,u);snr(n,u._progressLine,f,i,r,!0)},onUpdate:function(n){snr(n,u._progressLine,f,i,r)}};this._currentPointer=onr(e,e,this._mainGroup,{},this._currentPointer,h)},u.prototype._handlePlayClick=function(n){this._clearTimer();this.api.dispatchAction({type:"timelinePlayChange",playState:n,from:this.uid})},u.prototype._handlePointerDrag=function(n,t,i){this._clearTimer();this._pointerChangeTimeline([i.offsetX,i.offsetY])},u.prototype._handlePointerDragend=function(n){this._pointerChangeTimeline([n.offsetX,n.offsetY],!0)},u.prototype._pointerChangeTimeline=function(n,t){var i=this._toAxisCoord(n)[0],r=lu(this._axis.getExtent().slice()),u,f,e;i>r[1]&&(i=r[1]);i<r[0]&&(i=r[0]);this._currentPointer.x=i;this._currentPointer.markRedraw();u=this._progressLine;u&&(u.shape.x2=i,u.dirty());f=this._findNearestTick(i);e=this.model;(t||f!==e.getCurrentIndex()&&e.get("realtime"))&&this._changeTimeline(f)},u.prototype._doPlayStop=function(){var n=this;this._clearTimer();this.model.getPlayState()&&(this._timer=setTimeout(function(){var t=n.model;n._changeTimeline(t.getCurrentIndex()+(t.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},u.prototype._toAxisCoord=function(n){return he(n,this._mainGroup.getLocalTransform(),!0)},u.prototype._findNearestTick=function(n){var t,r=this.model.getData(),i=1/0,u=this._axis;return r.each(["value"],function(r,f){var o=u.dataToCoord(r),e=Math.abs(o-n);e<i&&(i=e,t=f)}),t},u.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},u.prototype._changeTimeline=function(n){var t=this.model.getCurrentIndex();"+"===n?n=t+1:"-"===n&&(n=t-1);this.api.dispatchAction({type:"timelineChange",currentIndex:n,from:this.uid})},u.prototype._updateTicksStatus=function(){var r=this.model.getCurrentIndex(),i=this._tickSymbols,t=this._tickLabels,n;if(i)for(n=0;n<i.length;n++)i&&i[n]&&i[n].toggleState("progress",n<r);if(t)for(n=0;n<t.length;n++)t&&t[n]&&t[n].toggleState("progress",enr(t[n]).dataIndex<=r)},u.type="timeline.slider",u}(lrf);ftt=ct();bo=function(n){function u(){var t=null!==n&&n.apply(this,arguments)||this;return t.type=u.type,t.createdBySelf=!1,t}return i(u,n),u.prototype.init=function(n,t,i){this.mergeDefaultAndTheme(n,i);this._mergeOption(n,i,!1,!0)},u.prototype.isAnimationEnabled=function(){if(ft.node)return!1;var n=this.__hostSeries;return this.getShallow("animation")&&n&&n.isAnimationEnabled()},u.prototype.mergeOption=function(n,t){this._mergeOption(n,t,!1,!1)},u.prototype._mergeOption=function(n,i,u,f){var e=this.mainType;u||i.eachSeries(function(n){var u=n.get(this.mainType,!0),o=ftt(n)[e];u&&u.data?(o?o._mergeOption(u,i,!0):(f&&wht(u),t(u.data,function(n){n instanceof Array?(wht(n[0]),wht(n[1])):wht(n)}),r(o=this.createMarkerModelFromSeries(u,this,i),{mainType:this.mainType,seriesIndex:n.seriesIndex,name:n.name,createdBySelf:!0}),o.__hostSeries=n),ftt(n)[e]=o):ftt(n)[e]=null},this)},u.prototype.formatTooltip=function(n){var r=this.getData(),t=this.getRawValue(n),i=r.getName(n);return ki("section",{header:this.name,blocks:[ki("nameValue",{name:i,value:t,noName:!i,noValue:null==t})]})},u.prototype.getData=function(){return this._data},u.prototype.setData=function(n){this._data=n},u.getMarkerModelFromSeries=function(n,t){return ftt(n)[t]},u.type="marker",u.dependencies=["series","grid","polar","geo"],u}(rt);fi(bo,fft.prototype);cnr=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i}return i(t,n),t.prototype.createMarkerModelFromSeries=function(n,i,r){return new t(n,i,r)},t.type="markPoint",t.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t}(bo);kht={min:w(bht,"min"),max:w(bht,"max"),average:w(bht,"average"),median:w(bht,"median")};dht=ct();ght=function(n){function r(){var t=null!==n&&n.apply(this,arguments)||this;return t.type=r.type,t}return i(r,n),r.prototype.init=function(){this.markerGroupMap=c()},r.prototype.render=function(n,t,i){var r=this,u=this.markerGroupMap;u.each(function(n){dht(n).keep=!1});t.eachSeries(function(n){var u=bo.getMarkerModelFromSeries(n,r.type);u&&r.renderSeries(n,u,t,i)});u.each(function(n){dht(n).keep||r.group.remove(n.group)})},r.prototype.markKeep=function(n){dht(n).keep=!0},r.prototype.toggleBlurSeries=function(n,i){var r=this;t(n,function(n){var t=bo.getMarkerModelFromSeries(n,r.type);t&&t.getData().eachItemGraphicEl(function(n){n&&(i?cvi(n):wyt(n))})})},r.type="marker",r}(ni);var prf=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i}return i(t,n),t.prototype.updateTransform=function(n,t,i){t.eachSeries(function(n){var t=bo.getMarkerModelFromSeries(n,"markPoint");t&&(vnr(t.getData(),n,i),this.markerGroupMap.get(n.id).updateLayout())},this)},t.prototype.renderSeries=function(n,t,i,u){var c=n.coordinateSystem,s=n.id,a=n.getData(),h=this.markerGroupMap,o=h.get(s)||h.set(s,new uw),e=function(n,t,i){var e,o,u,s;return e=n?f(n&&n.dimensions,function(n){return r(r({},t.getData().getDimensionInfo(t.getData().mapDimension(n))||{}),{name:n,ordinalMeta:null})}):[{name:"value",type:"float"}],o=new yr(e,i),u=f(i.get("data"),w(ett,t)),n&&(u=yt(u,w(ott,n))),s=anr(!!n,e),o.initData(u,null,s),o}(c,n,t);t.setData(e);vnr(t.getData(),n,u);e.each(function(n){var i=e.getItemModel(n),r=i.getShallow("symbol"),u=i.getShallow("symbolSize"),f=i.getShallow("symbolRotate"),o=i.getShallow("symbolOffset"),y=i.getShallow("symbolKeepAspect"),s,h,c,v;(l(r)||l(u)||l(f)||l(o))&&(s=t.getRawValue(n),h=t.getDataParams(n),l(r)&&(r=r(s,h)),l(u)&&(u=u(s,h)),l(f)&&(f=f(s,h)),l(o)&&(o=o(s,h)));c=i.getModel("itemStyle").getItemStyle();v=ig(a,"color");c.fill||(c.fill=v);e.setItemVisual(n,{symbol:r,symbolSize:u,symbolRotate:f,symbolOffset:o,symbolKeepAspect:y,style:c})});o.updateData(e);this.group.add(o.group);e.eachItemGraphicEl(function(n){n.traverse(function(n){b(n).dataModel=t})});this.markKeep(o);o.group.silent=t.get("silent")||n.get("silent")},t.type="markPoint",t}(ght),wrf=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i}return i(t,n),t.prototype.createMarkerModelFromSeries=function(n,i,r){return new t(n,i,r)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(bo),nct=ct(),brf=function(n,t,i,f){var h,a=n.getData(),s,l,e,v,b,o;if(u(f))h=f;else if(s=f.type,"min"===s||"max"===s||"average"===s||"median"===s||null!=f.xAxis||null!=f.yAxis){l=void 0;e=void 0;null!=f.yAxis||null!=f.xAxis?(l=t.getAxis(null!=f.yAxis?"y":"x"),e=yi(f.yAxis,f.xAxis)):(v=lnr(f,a,t,n),l=v.valueAxis,e=aei(a,odt(a,v.valueDataDim),s));var p="x"===l.dim?0:1,d=1-p,c=y(f),w={coord:[]};c.type=null;c.coord=[];c.coord[d]=-1/0;w.coord[d]=1/0;b=i.get("precision");b>=0&&ht(e)&&(e=+e.toFixed(Math.min(b,20)));c.coord[p]=w.coord[p]=e;h=[c,w,{type:s,valueIndex:f.valueIndex,value:e}]}else h=[];return o=[ett(n,h[0]),ett(n,h[1]),r({},h[2])],o[2].type=o[2].type||null,k(o[2],o[0]),k(o[2],o[1]),o};var drf=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i}return i(t,n),t.prototype.updateTransform=function(n,t,i){t.eachSeries(function(n){var t=bo.getMarkerModelFromSeries(n,"markLine");if(t){var u=t.getData(),r=nct(t).from,f=nct(t).to;r.each(function(t){vei(r,t,!0,n,i);vei(f,t,!1,n,i)});u.each(function(n){u.setItemLayout(n,[r.getItemLayout(n),f.getItemLayout(n)])});this.markerGroupMap.get(n.id).updateLayout()}},this)},t.prototype.renderSeries=function(n,t,i,e){function nt(t,i,r){var u=t.getItemModel(i),f;vei(t,i,r,n,e);f=u.getModel("itemStyle").getItemStyle();null==f.fill&&(f.fill=ig(it,"color"));t.setItemVisual(i,{symbolKeepAspect:u.get("symbolKeepAspect"),symbolOffset:d(u.get("symbolOffset",!0),y[r?0:1]),symbolRotate:d(u.get("symbolRotate",!0),v[r?0:1]),symbolSize:d(u.get("symbolSize"),a[r?0:1]),symbol:d(u.get("symbol",!0),l[r?0:1]),style:f})}var tt=n.coordinateSystem,k=n.id,it=n.getData(),g=this.markerGroupMap,p=g.get(k)||g.set(k,new vst);this.group.add(p.group);var c=function(n,t,i){var e,s;e=n?f(n&&n.dimensions,function(n){return r(r({},t.getData().getDimensionInfo(t.getData().mapDimension(n))||{}),{name:n,ordinalMeta:null})}):[{name:"value",type:"float"}];var h=new yr(e,i),c=new yr(e,i),o=new yr([],i),u=f(i.get("data"),w(brf,t,n,i));return n&&(u=yt(u,w(krf,n))),s=anr(!!n,e),h.initData(f(u,function(n){return n[0]}),null,s),c.initData(f(u,function(n){return n[1]}),null,s),o.initData(f(u,function(n){return n[2]})),o.hasItemOption=!0,{from:h,to:c,line:o}}(tt,n,t),o=c.from,s=c.to,h=c.line;nct(t).from=o;nct(t).to=s;t.setData(h);var l=t.get("symbol"),a=t.get("symbolSize"),v=t.get("symbolRotate"),y=t.get("symbolOffset");u(l)||(l=[l,l]);u(a)||(a=[a,a]);u(v)||(v=[v,v]);u(y)||(y=[y,y]);c.from.each(function(n){nt(o,n,!0);nt(s,n,!1)});h.each(function(n){var t=h.getItemModel(n).getModel("lineStyle").getLineStyle();h.setItemLayout(n,[o.getItemLayout(n),s.getItemLayout(n)]);null==t.stroke&&(t.stroke=o.getItemVisual(n,"style").fill);h.setItemVisual(n,{fromSymbolKeepAspect:o.getItemVisual(n,"symbolKeepAspect"),fromSymbolOffset:o.getItemVisual(n,"symbolOffset"),fromSymbolRotate:o.getItemVisual(n,"symbolRotate"),fromSymbolSize:o.getItemVisual(n,"symbolSize"),fromSymbol:o.getItemVisual(n,"symbol"),toSymbolKeepAspect:s.getItemVisual(n,"symbolKeepAspect"),toSymbolOffset:s.getItemVisual(n,"symbolOffset"),toSymbolRotate:s.getItemVisual(n,"symbolRotate"),toSymbolSize:s.getItemVisual(n,"symbolSize"),toSymbol:s.getItemVisual(n,"symbol"),style:t})});p.updateData(h);c.line.eachItemGraphicEl(function(n){b(n).dataModel=t;n.traverse(function(n){b(n).dataModel=t})});this.markKeep(p);p.group.silent=t.get("silent")||n.get("silent")},t.type="markLine",t}(ght),grf=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i}return i(t,n),t.prototype.createMarkerModelFromSeries=function(n,i,r){return new t(n,i,r)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(bo),ict=ct(),nuf=function(n,t,i,r){var h=r[0],c=r[1],u;if(h&&c){var f=ett(n,h),e=ett(n,c),o=f.coord,s=e.coord;return o[0]=yi(o[0],-1/0),o[1]=yi(o[1],-1/0),s[0]=yi(s[0],1/0),s[1]=yi(s[1],1/0),u=ptt([{},f,e]),u.coord=[f.coord,e.coord],u.x0=f.x,u.y0=f.y,u.x1=e.x,u.y1=e.y,u}};var bnr=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],iuf=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i}return i(t,n),t.prototype.updateTransform=function(n,t,i){t.eachSeries(function(n){var r=bo.getMarkerModelFromSeries(n,"markArea"),t;r&&(t=r.getData(),t.each(function(r){var u=f(bnr,function(u){return wnr(t,r,u,n,i)});t.setItemLayout(r,u);t.getItemGraphicEl(r).setShape("points",u)}))},this)},t.prototype.renderSeries=function(n,t,i,u){var h=n.coordinateSystem,c=n.id,a=n.getData(),l=this.markerGroupMap,s=l.get(c)||l.set(c,{group:new p}),e;this.group.add(s.group);this.markKeep(s);e=function(n,t,i){var u,e,s,o,h;return n?(s=f(n&&n.dimensions,function(n){var i=t.getData();return r(r({},i.getDimensionInfo(i.mapDimension(n))||{}),{name:n,ordinalMeta:null})}),e=f(["x0","y0","x1","y1"],function(n,t){return{name:n,type:s[t%2].type}}),u=new yr(e,i)):u=new yr(e=[{name:"value",type:"float"}],i),o=f(i.get("data"),w(nuf,t,n,i)),n&&(o=yt(o,w(tuf,n))),h=n?function(n,t,i,r){return nc(n.coord[Math.floor(r/2)][r%2],e[r])}:function(n,t,i,r){return nc(n.value,e[r])},u.initData(o,null,h),u.hasItemOption=!0,u}(h,n,t);t.setData(e);e.each(function(t){var b=f(bnr,function(i){return wnr(e,t,i,n,u)}),r=h.getAxis("x").scale,s=h.getAxis("y").scale,y=r.getExtent(),p=s.getExtent(),c=[r.parse(e.get("x0",t)),r.parse(e.get("x1",t))],l=[s.parse(e.get("y0",t)),s.parse(e.get("y1",t))],w,i,v;lu(c);lu(l);w=!!(y[0]>c[1]||y[1]<c[0]||p[0]>l[1]||p[1]<l[0]);e.setItemLayout(t,{points:b,allClipped:w});i=e.getItemModel(t).getModel("itemStyle").getItemStyle();v=ig(a,"color");i.fill||(i.fill=v,o(i.fill)&&(i.fill=ik(i.fill,.4)));i.stroke||(i.stroke=v);e.setItemVisual(t,"style",i)});e.diff(ict(s).data).add(function(n){var i=e.getItemLayout(n),t;i.allClipped||(t=new fr({shape:{points:i.points}}),e.setItemGraphicEl(n,t),s.group.add(t))}).update(function(n,i){var r=ict(s).data.getItemGraphicEl(i),u=e.getItemLayout(n);u.allClipped?r&&s.group.remove(r):(r?lt(r,{shape:{points:u.points}},t,n):r=new fr({shape:{points:u.points}}),e.setItemGraphicEl(n,r),s.group.add(r))}).remove(function(n){var t=ict(s).data.getItemGraphicEl(n);s.group.remove(t)}).execute();e.eachItemGraphicEl(function(n,i){var r=e.getItemModel(i),u=e.getItemVisual(i,"style");n.useStyle(e.getItemVisual(i,"style"));or(n,bi(r),{labelFetcher:t,labelDataIndex:i,defaultText:e.getName(i)||"",inheritColor:o(u.fill)?ik(u.fill,1):"#000"});rr(n,r);ui(n,null,null,r.get(["emphasis","disabled"]));b(n).dataModel=t});ict(s).data=e;s.group.silent=t.get("silent")||n.get("silent")},t.type="markArea",t}(ght),yei=function(n){function r(){var t=null!==n&&n.apply(this,arguments)||this;return t.type=r.type,t.layoutMode={type:"box",ignoreSize:!0},t}return i(r,n),r.prototype.init=function(n,t,i){this.mergeDefaultAndTheme(n,i);n.selected=n.selected||{};this._updateSelector(n)},r.prototype.mergeOption=function(t,i){n.prototype.mergeOption.call(this,t,i);this._updateSelector(t)},r.prototype._updateSelector=function(n){var i=n.selector,r=this.ecModel;!0===i&&(i=n.selector=["all","inverse"]);u(i)&&t(i,function(n,t){o(n)&&(n={type:n});i[t]=k(n,function(n,t){return"all"===t?{type:"all",title:n.getLocaleModel().get(["legend","selector","all"])}:"inverse"===t?{type:"inverse",title:n.getLocaleModel().get(["legend","selector","inverse"])}:void 0}(r,n.type))})},r.prototype.optionUpdated=function(){var n,i,t,r;if(this._updateData(this.ecModel),n=this._data,n[0]&&"single"===this.get("selectedMode")){for(i=!1,t=0;t<n.length;t++)if(r=n[t].get("name"),this.isSelected(r)){this.select(r);i=!0;break}i||this.select(n[0].get("name"))}},r.prototype._updateData=function(n){var t=[],i=[];n.eachRawSeries(function(r){var f,e=r.name,u;(i.push(e),r.legendVisualProvider)?(u=r.legendVisualProvider.getAllNames(),n.isSeriesFiltered(r)||(i=i.concat(u)),u.length?t=t.concat(u):f=!0):f=!0;f&&hvt(r)&&t.push(r.name)});this._availableNames=i;var u=this.get("data")||t,r=c(),e=f(u,function(n){return(o(n)||ht(n))&&(n={name:n}),r.get(n.name)?null:(r.set(n.name,!0),new at(n,this,this.ecModel))},this);this._data=yt(e,function(n){return!!n})},r.prototype.getData=function(){return this._data},r.prototype.select=function(n){var i=this.option.selected;"single"===this.get("selectedMode")&&t(this._data,function(n){i[n.get("name")]=!1});i[n]=!0},r.prototype.unSelect=function(n){"single"!==this.get("selectedMode")&&(this.option.selected[n]=!1)},r.prototype.toggleSelected=function(n){var t=this.option.selected;t.hasOwnProperty(n)||(t[n]=!0);this[t[n]?"unSelect":"select"](n)},r.prototype.allSelect=function(){var n=this._data,i=this.option.selected;t(n,function(n){i[n.get("name",!0)]=!0})},r.prototype.inverseSelect=function(){var i=this._data,n=this.option.selected;t(i,function(t){var i=t.get("name",!0);n.hasOwnProperty(i)||(n[i]=!0);n[i]=!n[i]})},r.prototype.isSelected=function(n){var t=this.option.selected;return!(t.hasOwnProperty(n)&&!t[n])&&tt(this._availableNames,n)>=0},r.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},r.type="legend.plain",r.dependencies=["series"],r.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},r}(rt),nb=w,pei=t,uct=p,knr=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i.newlineDisabled=!1,i}return i(t,n),t.prototype.init=function(){this.group.add(this._contentGroup=new uct);this.group.add(this._selectorGroup=new uct);this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(n,t,i){var v=this._isFirstRender,r,e,o,u;if(this._isFirstRender=!1,this.resetInner(),n.get("show",!0)){r=n.get("align");e=n.get("orient");r&&"auto"!==r||(r="right"===n.get("left")&&"vertical"===e?"right":"left");o=n.get("selector",!0);u=n.get("selectorPosition",!0);!o||u&&"auto"!==u||(u="horizontal"===e?"end":"start");this.renderInner(r,n,t,i,o,e,u);var s=n.getBoxLayoutParams(),h={width:i.getWidth(),height:i.getHeight()},c=n.get("padding"),y=ci(s,h,c),f=this.layoutInner(n,r,y,v,o,u),l=ci(a({width:f.width,height:f.height},s),h,c);this.group.x=l.x-f.x;this.group.y=l.y-f.y;this.group.markRedraw();this.group.add(this._backgroundEl=sdr(f,n))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll();this._backgroundEl&&this.group.remove(this._backgroundEl);this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(n,t,i,u,f,e,o){var a=this.getContentGroup(),h=c(),l=t.get("selectedMode"),s=[];i.eachRawSeries(function(n){n.get("legendHoverLink")||s.push(n.id)});pei(t.getData(),function(f,e){var o=f.get("name"),v,c;if(!this.newlineDisabled&&(""===o||"\n"===o))return v=new uct,v.newline=!0,void a.add(v);if(c=i.getSeriesByName(o)[0],!h.get(o)){if(c){var y=c.getData(),p=y.getVisual("legendLineStyle")||{},w=y.getVisual("legendIcon"),b=y.getVisual("style");this._createItem(c,o,e,f,t,n,p,b,w,l,u).on("click",nb(dnr,o,null,u,s)).on("mouseover",nb(wei,c.name,null,u,s)).on("mouseout",nb(bei,c.name,null,u,s));h.set(o,!0)}else i.eachRawSeries(function(i){var c;if(!h.get(o)&&i.legendVisualProvider){if(c=i.legendVisualProvider,!c.containName(o))return;var y=c.indexOfName(o),a=c.getItemVisual(y,"style"),p=c.getItemVisual(y,"legendIcon"),v=br(a.fill);v&&0===v[3]&&(v[3]=.2,a=r(r({},a),{fill:ie(v,"rgba")}));this._createItem(i,o,e,f,t,n,{},a,p,l,u).on("click",nb(dnr,null,o,u,s)).on("mouseover",nb(wei,null,o,u,s)).on("mouseout",nb(bei,null,o,u,s));h.set(o,!0)}},this);0}},this);f&&this._createSelector(f,t,u,e,o)},t.prototype._createSelector=function(n,t,i){var r=this.getSelectorGroup();pei(n,function(n){var f=n.type,u=new st({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:"all"===f?"legendAllSelect":"legendInverseSelect"})}});r.add(u);or(u,{normal:t.getModel("selectorLabel"),emphasis:t.getModel(["emphasis","selectorLabel"])},{defaultText:n.title});ah(u)})},t.prototype._createItem=function(n,t,i,r,u,f,e,s,h,c,a){var ht=n.visualDrawType,k=u.get("itemWidth"),d=u.get("itemHeight"),rt=u.isSelected(t),g=r.get("symbolRotate"),ut=r.get("symbolKeepAspect"),p=r.get("icon"),w=function(n,t,i,r,u,f,e){function l(n,t){"auto"===n.lineWidth&&(n.lineWidth=t.lineWidth>0?2:0);pei(n,function(i,r){"inherit"===n[r]&&(n[r]=t[r])})}var a=t.getModel("itemStyle"),o=a.getItemStyle(),v=0===n.lastIndexOf("empty",0)?"fill":"stroke",c=a.getShallow("decal"),h,s,y,p;return o.decal=c&&"inherit"!==c?pp(c,e):r.decal,"inherit"===o.fill&&(o.fill=r[u]),"inherit"===o.stroke&&(o.stroke=r[v]),"inherit"===o.opacity&&(o.opacity=("fill"===u?r:i).opacity),l(o,r),h=t.getModel("lineStyle"),s=h.getLineStyle(),(l(s,i),"auto"===o.fill&&(o.fill=r.fill),"auto"===o.stroke&&(o.stroke=r.fill),"auto"===s.stroke&&(s.stroke=r.fill),f)||(y=t.get("inactiveBorderWidth"),p=o[v],o.lineWidth="auto"===y?r.lineWidth>0&&p?2:0:o.lineWidth,o.fill=t.get("inactiveColor"),o.stroke=t.get("inactiveBorderColor"),s.stroke=h.get("inactiveColor"),s.lineWidth=h.get("inactiveWidth")),{itemStyle:o,lineStyle:s}}(h=p||h||"roundRect",r,e,s,ht,rt,a),v=new uct,ft=r.getModel("textStyle"),et,tt,b,it;!l(n.getLegendIcon)||p&&"inherit"!==p?(et="inherit"===p&&n.getData().getVisual("symbol")?"inherit"===g?n.getData().getVisual("symbolRotate"):g:0,v.add(function(n){var i=n.icon||"roundRect",t=si(i,0,0,n.itemWidth,n.itemHeight,n.itemStyle.fill,n.symbolKeepAspect);return t.setStyle(n.itemStyle),t.rotation=(n.iconRotate||0)*Math.PI/180,t.setOrigin([n.itemWidth/2,n.itemHeight/2]),i.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t}({itemWidth:k,itemHeight:d,icon:h,iconRotate:et,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:ut}))):v.add(n.getLegendIcon({itemWidth:k,itemHeight:d,icon:h,iconRotate:g,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:ut}));var ct="left"===f?k+5:-5,lt=f,y=u.get("formatter"),nt=t;return o(y)&&y?nt=y.replace("{name}",null!=t?t:""):l(y)&&(nt=y(t)),tt=rt?ft.getTextColor():r.get("inactiveColor"),v.add(new st({style:gt(ft,{text:nt,x:ct,y:d/2,fill:tt,align:lt,verticalAlign:"middle"},{inheritColor:tt})})),b=new ot({shape:v.getBoundingRect(),invisible:!0}),it=r.getModel("tooltip"),it.get("show")&&by({el:b,componentModel:u,itemName:t,itemTooltipOption:it.option}),v.add(b),v.eachChild(function(n){n.silent=!0}),b.silent=!c,this.getContentGroup().add(v),ah(v),v.__legendDataIndex=i,v},t.prototype.layoutInner=function(n,t,i,r,u,f){var e=this.getContentGroup(),l=this.getSelectorGroup(),o,c,p;if(kh(n.get("orient"),e,n.get("itemGap"),i.width,i.height),o=e.getBoundingRect(),c=[-o.x,-o.y],l.markRedraw(),e.markRedraw(),u){kh("horizontal",l,n.get("selectorItemGap",!0));var s=l.getBoundingRect(),a=[-s.x,-s.y],w=n.get("selectorButtonGap",!0),h=n.getOrient().index,v=0===h?"width":"height",y=0===h?"height":"width",b=0===h?"y":"x";return"end"===f?a[h]+=o[v]+w:c[h]+=s[v]+w,a[1-h]+=o[y]/2-s[y]/2,l.x=a[0],l.y=a[1],e.x=c[0],e.y=c[1],p={x:0,y:0},p[v]=o[v]+w+s[v],p[y]=Math.max(o[y],s[y]),p[b]=Math.min(0,s[b]+a[1-h]),p}return e.x=c[0],e.y=c[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll();this._isFirstRender=!0},t.type="legend.plain",t}(ni);ttu=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i}return i(t,n),t.prototype.setScrollDataIndex=function(n){this.option.scrollDataIndex=n},t.prototype.init=function(t,i,r){var u=tp(t);n.prototype.init.call(this,t,i,r);itu(this,t,u)},t.prototype.mergeOption=function(t,i){n.prototype.mergeOption.call(this,t,i);itu(this,this.option,t)},t.type="legend.scroll",t.defaultOption=wh(yei.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(yei);var rtu=p,kei=["width","height"],dei=["x","y"],uuf=function(n){function r(){var t=null!==n&&n.apply(this,arguments)||this;return t.type=r.type,t.newlineDisabled=!0,t._currentIndex=0,t}return i(r,n),r.prototype.init=function(){n.prototype.init.call(this);this.group.add(this._containerGroup=new rtu);this._containerGroup.add(this.getContentGroup());this.group.add(this._controllerGroup=new rtu)},r.prototype.resetInner=function(){n.prototype.resetInner.call(this);this._controllerGroup.removeAll();this._containerGroup.removeClipPath();this._containerGroup.__rectSize=null},r.prototype.renderInner=function(t,i,r,f,e,o,h){function p(n,t){var u=n+"DataIndex",r=wy(i.get("pageIcons",!0)[i.getOrient().name][t],{onclick:s(v._pageGo,v,u,i,f)},{x:-l[0]/2,y:-l[1]/2,width:l[0],height:l[1]});r.name=n;y.add(r)}var v=this,a;n.prototype.renderInner.call(this,t,i,r,f,e,o,h);var y=this._controllerGroup,c=i.get("pageIconSize",!0),l=u(c)?c:[c,c];p("pagePrev",0);a=i.getModel("pageTextStyle");y.add(new st({name:"pageText",style:{text:"xx/xx",fill:a.getTextColor(),font:a.getFont(),verticalAlign:"middle",align:"center"},silent:!0}));p("pageNext",1)},r.prototype.layoutInner=function(n,t,i,r,u,f){var a=this.getSelectorGroup(),o=n.getOrient().index,s=kei[o],b=dei[o],c=kei[1-o],v=dei[1-o],e,w;u&&kh("horizontal",a,n.get("selectorItemGap",!0));var p=n.get("selectorButtonGap",!0),h=a.getBoundingRect(),l=[-h.x,-h.y],k=y(i);return u&&(k[s]=i[s]-h[s]-p),e=this._layoutContentAndController(n,r,k,o,s,c,v,b),u&&("end"===f?l[o]+=e[s]+p:(w=h[s]+p,l[o]-=w,e[b]-=w),e[s]+=h[s]+p,l[1-o]+=e[v]+e[c]/2-h[c]/2,e[c]=Math.max(e[c],h[c]),e[v]=Math.min(e[v],h[v]+l[1-o]),a.x=l[0],a.y=l[1],a.markRedraw()),e},r.prototype._layoutContentAndController=function(n,t,i,r,u,f,e,o){var l=this.getContentGroup(),y=this._containerGroup,p=this._controllerGroup,c,a,v;kh(n.get("orient"),l,n.get("itemGap"),r?i.width:null,r?null:i.height);kh("horizontal",p,n.get("pageButtonItemGap",!0));var h=l.getBoundingRect(),s=p.getBoundingRect(),w=this._showController=h[u]>i[u],k=[-h.x,-h.y];t||(k[r]=l[o]);var g=[0,0],b=[-s.x,-s.y],nt=d(n.get("pageButtonGap",!0),n.get("itemGap",!0));return w&&("end"===n.get("pageButtonPosition",!0)?b[r]+=i[u]-s[u]:g[r]+=s[u]+nt),b[1-r]+=h[f]/2-s[f]/2,l.setPosition(k),y.setPosition(g),p.setPosition(b),c={x:0,y:0},(c[u]=w?i[u]:h[u],c[f]=Math.max(h[f],s[f]),c[e]=Math.min(0,s[e]+b[1-r]),y.__rectSize=i[u],w)?(a={x:0,y:0},a[u]=Math.max(i[u]-s[u]-nt,0),a[f]=c[f],y.setClipPath(new ot({shape:a})),y.__rectSize=a[u]):p.eachChild(function(n){n.attr({invisible:!0,silent:!0})}),v=this._getPageInfo(n),null!=v.pageIndex&&lt(l,{x:v.contentPosition[0],y:v.contentPosition[1]},w?n:null),this._updatePageInfoView(n,v),c},r.prototype._pageGo=function(n,t,i){var r=this._getPageInfo(t)[n];null!=r&&i.dispatchAction({type:"legendScroll",scrollDataIndex:r,legendId:t.id})},r.prototype._updatePageInfoView=function(n,i){var e=this._controllerGroup;t(["pagePrev","pageNext"],function(t){var u=null!=i[t+"DataIndex"],r=e.childOfName(t);r&&(r.setStyle("fill",u?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),r.cursor=u?"pointer":"default")});var s=e.childOfName("pageText"),r=n.get("pageFormatter"),h=i.pageIndex,u=null!=h?h+1:0,f=i.pageCount;s&&r&&s.setStyle("text",o(r)?r.replace("{current}",null==u?"":u+"").replace("{total}",null==f?"":f+""):r({current:u,total:f}))},r.prototype._getPageInfo=function(n){function l(n){if(n){var t=n.getBoundingRect(),i=t[v]+n[v];return{s:i,e:i+t[d],i:n.__legendDataIndex}}}function b(n,t){return n.e>=t&&n.s<=t+a}var k=n.get("scrollDataIndex",!0),s=this.getContentGroup(),a=this._containerGroup.__rectSize,h=n.getOrient().index,d=kei[h],v=dei[h],c=this._findTargetItemIndex(k),o=s.children(),y=o[c],p=o.length,w=p?1:0,t={contentPosition:[s.x,s.y],pageCount:w,pageIndex:w-1,pagePrevDataIndex:null,pageNextDataIndex:null},e;if(!y)return t;e=l(y);t.contentPosition[h]=-e.s;for(var f=c+1,i=e,u=e,r=null;f<=p;++f)(!(r=l(o[f]))&&u.e>i.s+a||r&&!b(r,i.s))&&(i=u.i>i.i?u:r)&&(null==t.pageNextDataIndex&&(t.pageNextDataIndex=i.i),++t.pageCount),u=r;for(f=c-1,i=e,u=e,r=null;f>=-1;--f)(!(r=l(o[f]))||!b(u,r.s))&&i.i<u.i&&(u=i,null==t.pagePrevDataIndex&&(t.pagePrevDataIndex=i.i),++t.pageCount,++t.pageIndex),i=r;return t},r.prototype._findTargetItemIndex=function(n){return this._showController?(this.getContentGroup().eachChild(function(r,u){var f=r.__legendDataIndex;null==i&&null!=f&&(i=u);f===n&&(t=u)}),null!=t?t:i):0;var t,i},r.type="legend.scroll",r}(knr);utu=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i}return i(t,n),t.type="dataZoom.inside",t.defaultOption=wh(bw.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(bw);fct=ct();etu=function(n){function t(){var t=null!==n&&n.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return i(t,n),t.prototype.render=function(t,i,r){n.prototype.render.apply(this,arguments);t.noTarget()?this._clear():(this.range=t.getPercentRange(),euf(r,t,{pan:s(ect.pan,this),zoom:s(ect.zoom,this),scrollMove:s(ect.scrollMove,this)}))},t.prototype.dispose=function(){this._clear();n.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){!function(n,t){for(var f,r=fct(n).coordSysRecordMap,e=r.keys(),u=0;u<e.length;u++){var s=e[u],o=r.get(s),i=o.dataZoomInfoMap;i&&(f=t.uid,i.get(f)&&(i.removeKey(f),i.keys().length||ftu(r,o)))}}(this.api,this.dataZoomModel);this.range=null},t.type="dataZoom.inside",t}(cfi);ect={zoom:function(n,t,i,r){var o=this.range,u=o.slice(),h=n.axisModels[0],s;if(h){var f=oct[t](null,[r.originX,r.originY],h,i,n),e=(f.signal>0?f.pixelStart+f.pixelLength-f.pixel:f.pixel-f.pixelStart)/f.pixelLength*(u[1]-u[0])+u[0],c=Math.max(1/r.scale,0);return u[0]=(u[0]-e)*c+e,u[1]=(u[1]-e)*c+e,s=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan(),fv(0,u,[0,100],0,s.minSpan,s.maxSpan),this.range=u,o[0]!==u[0]||o[1]!==u[1]?u:void 0}},pan:otu(function(n,t,i,r,u,f){var e=oct[r]([f.oldX,f.oldY],[f.newX,f.newY],t,u,i);return e.signal*(n[1]-n[0])*e.pixel/e.pixelLength}),scrollMove:otu(function(n,t,i,r,u,f){return oct[r]([0,0],[f.scrollDelta,f.scrollDelta],t,u,i).signal*(n[1]-n[0])*f.scrollDelta})};oct={grid:function(n,t,i,r,u){var o=i.axis,f={},e=u.model.coordinateSystem.getRect();return n=n||[0,0],"x"===o.dim?(f.pixel=t[0]-n[0],f.pixelLength=e.width,f.pixelStart=e.x,f.signal=o.inverse?1:-1):(f.pixel=t[1]-n[1],f.pixelLength=e.height,f.pixelStart=e.y,f.signal=o.inverse?-1:1),f},polar:function(n,t,i,r,u){var h=i.axis,f={},e=u.model.coordinateSystem,o=e.getRadiusAxis().getExtent(),s=e.getAngleAxis().getExtent();return n=n?e.pointToCoord(n):[0,0],t=e.pointToCoord(t),"radiusAxis"===i.mainType?(f.pixel=t[0]-n[0],f.pixelLength=o[1]-o[0],f.pixelStart=o[0],f.signal=h.inverse?1:-1):(f.pixel=t[1]-n[1],f.pixelLength=s[1]-s[0],f.pixelStart=s[0],f.signal=h.inverse?-1:1),f},singleAxis:function(n,t,i,r,u){var o=i.axis,e=u.model.coordinateSystem.getRect(),f={};return n=n||[0,0],"horizontal"===o.orient?(f.pixel=t[0]-n[0],f.pixelLength=e.width,f.pixelStart=e.x,f.signal=o.inverse?1:-1):(f.pixel=t[1]-n[1],f.pixelLength=e.height,f.pixelStart=e.y,f.signal=o.inverse?-1:1),f}};var cuf=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i}return i(t,n),t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=wh(bw.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(bw),htt=ot,ctt="horizontal",htu="vertical",luf=["line","bar","candlestick","scatter"],auf={easing:"cubicOut",duration:100,delay:0},vuf=function(n){function r(){var t=null!==n&&n.apply(this,arguments)||this;return t.type=r.type,t._displayables={},t}return i(r,n),r.prototype.init=function(n,t){this.api=t;this._onBrush=s(this._onBrush,this);this._onBrushEnd=s(this._onBrushEnd,this)},r.prototype.render=function(t,i,r,u){if(n.prototype.render.apply(this,arguments),cp(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),!1!==t.get("show")){if(t.noTarget())return this._clear(),void this.group.removeAll();u&&"dataZoom"===u.type&&u.from===this.uid||this._buildView();this._updateView()}else this.group.removeAll()},r.prototype.dispose=function(){this._clear();n.prototype.dispose.apply(this,arguments)},r.prototype._clear=function(){ng(this,"_dispatchZoomAction");var n=this.api.getZr();n.off("mousemove",this._onBrush);n.off("mouseup",this._onBrushEnd)},r.prototype._buildView=function(){var n=this.group,t;n.removeAll();this._brushing=!1;this._displayables.brushRect=null;this._resetLocation();this._resetInterval();t=this._displayables.sliderGroup=new p;this._renderBackground();this._renderHandle();this._renderDataShadow();n.add(t);this._positionGroup()},r.prototype._resetLocation=function(){var f=this.dataZoomModel,e=this.api,o=f.get("brushSelect")?7:0,n=this._findCoordRect(),r={width:e.getWidth(),height:e.getHeight()},s=this._orient===ctt?{right:r.width-n.x-n.width,top:r.height-37-o,width:n.width,height:30}:{right:7,top:n.y,width:30,height:n.height},u=tp(f.option),i;t(["right","top","width","height"],function(n){"ph"===u[n]&&(u[n]=s[n])});i=ci(u,r);this._location={x:i.x,y:i.y};this._size=[i.width,i.height];this._orient===htu&&this._size.reverse()},r.prototype._positionGroup=function(){var n=this.group,f=this._location,i=this._orient,e=this.dataZoomModel.getFirstTargetAxisModel(),r=e&&e.get("inverse"),o=this._displayables.sliderGroup,t=(this._dataShadowInfo||{}).otherAxisInverse,u;o.attr(i!==ctt||r?i===ctt&&r?{scaleY:t?1:-1,scaleX:-1}:i!==htu||r?{scaleY:t?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:t?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:t?1:-1,scaleX:1});u=n.getBoundingRect([o]);n.x=f.x-u.x;n.y=f.y-u.y;n.markRedraw()},r.prototype._getViewExtent=function(){return[0,this._size[0]]},r.prototype._renderBackground=function(){var r=this.dataZoomModel,t=this._size,u=this._displayables.sliderGroup,f=r.get("brushSelect"),i,n;u.add(new htt({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:r.get("backgroundColor")},z2:-40}));i=new htt({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:"transparent"},z2:0,onclick:s(this._onClickPanel,this)});n=this.api.getZr();f?(i.on("mousedown",this._onBrushStart,this),i.cursor="crosshair",n.on("mousemove",this._onBrush),n.on("mouseup",this._onBrushEnd)):(n.off("mousemove",this._onBrush),n.off("mouseup",this._onBrushEnd));u.add(i)},r.prototype._renderDataShadow=function(){function it(n){var i=g.getModel(n?"selectedDataBackground":"dataBackground"),t=new p,r=new fr({shape:{points:c},segmentIgnoreThreshold:1,style:i.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),u=new er({shape:{points:l},segmentIgnoreThreshold:1,style:i.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return t.add(r),t.add(u),t}var h=this._dataShadowInfo=this._prepareDataShadowInfo(),c,l,i,a,g,s,y;if(this._displayables.dataShadowSegs=[],h){var n=this._size,w=this._shadowSize||[],o=h.series,t=o.getRawData(),b=o.getShadowDim&&o.getShadowDim(),e=b&&t.getDimensionInfo(b)?o.getShadowDim():h.otherDim;if(null!=e){if(c=this._shadowPolygonPts,l=this._shadowPolylinePts,t!==this._shadowData||e!==this._shadowDim||n[0]!==w[0]||n[1]!==w[1]){i=t.getDataExtent(e);a=.3*(i[1]-i[0]);i=[i[0]-a,i[1]+a];var v,nt=[0,n[1]],tt=[0,n[0]],r=[[n[0],0],[0,0]],u=[],k=tt[1]/(t.count()-1),f=0,d=Math.round(t.count()/n[0]);t.each([e],function(n,t){if(d>0&&t%d)f+=k;else{var e=null==n||isNaN(n)||""===n,o=e?0:pt(n,i,nt,!0);e&&!v&&t?(r.push([r[r.length-1][0],0]),u.push([u[u.length-1][0],0])):!e&&v&&(r.push([f,0]),u.push([f,0]));r.push([f,o]);u.push([f,o]);f+=k;v=e}});c=this._shadowPolygonPts=r;l=this._shadowPolylinePts=u}for(this._shadowData=t,this._shadowDim=e,this._shadowSize=[n[0],n[1]],g=this.dataZoomModel,s=0;s<3;s++)y=it(1===s),this._displayables.sliderGroup.add(y),this._displayables.dataShadowSegs.push(y)}}},r.prototype._prepareDataShadowInfo=function(){var n=this.dataZoomModel,r=n.get("showDataShadow"),i,u;if(!1!==r)return u=this.ecModel,n.eachTargetAxis(function(f,e){t(n.getAxisProxy(f,e).getTargetSeriesModels(),function(n){if(!(i||!0!==r&&tt(luf,n.get("type"))<0)){var o,s=u.getComponent(ac(f),e).axis,t=function(n){return{x:"y",y:"x",radius:"angle",angle:"radius"}[n]}(f),h=n.coordinateSystem;null!=t&&h.getOtherAxis&&(o=h.getOtherAxis(s).inverse);t=n.getData().mapDimension(t);i={thisAxis:s,series:n,thisDim:f,otherDim:t,otherAxisInverse:o}}},this)},this),i},r.prototype._renderHandle=function(){var w=this.group,r=this._displayables,b=r.handles=[null,null],k=r.handleLabels=[null,null],u=this._displayables.sliderGroup,i=this._size,n=this.dataZoomModel,v=this.api,d=n.get("borderRadius")||0,y=n.get("brushSelect"),p=r.filler=new htt({silent:y,style:{fill:n.get("fillerColor")},textConfig:{position:"inside"}}),o,a;if(u.add(p),u.add(new htt({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:i[0],height:i[1],r:d},style:{stroke:n.get("dataBackgroundColor")||n.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),t([0,1],function(t){var r=n.get("handleIcon"),i,o,c,h,f;!wft[r]&&r.indexOf("path://")<0&&r.indexOf("image://")<0&&(r="path://"+r);i=si(r,-1,0,2,2,null,!0);i.attr({cursor:ctu(this._orient),draggable:!0,drift:s(this._onDragMove,this,t),ondragend:s(this._onDragEnd,this),onmouseover:s(this._showDataInfo,this,!0),onmouseout:s(this._showDataInfo,this,!1),z2:5});o=i.getBoundingRect();c=n.get("handleSize");this._handleHeight=e(c,this._size[1]);this._handleWidth=o.width/o.height*this._handleHeight;i.setStyle(n.getModel("handleStyle").getItemStyle());i.style.strokeNoScale=!0;i.rectHover=!0;i.ensureState("emphasis").style=n.getModel(["emphasis","handleStyle"]).getItemStyle();ah(i);h=n.get("handleColor");null!=h&&(i.style.fill=h);u.add(b[t]=i);f=n.getModel("textStyle");w.add(k[t]=new st({silent:!0,invisible:!0,style:gt(f,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:f.getTextColor(),font:f.getFont()}),z2:10}))},this),o=p,y){var f=e(n.get("moveHandleSize"),i[1]),h=r.moveHandle=new ot({style:n.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:i[1]-.5,height:f}}),c=.8*f,l=r.moveHandleIcon=si(n.get("moveHandleIcon"),-c/2,-c/2,c,c,"#fff",!0);l.silent=!0;l.y=i[1]+f/2-.5;h.ensureState("emphasis").style=n.getModel(["emphasis","moveHandleStyle"]).getItemStyle();a=Math.min(i[1]/2,Math.max(f,10));(o=r.moveZone=new ot({invisible:!0,shape:{y:i[1]-a,height:f+a}})).on("mouseover",function(){v.enterEmphasis(h)}).on("mouseout",function(){v.leaveEmphasis(h)});u.add(h);u.add(l);u.add(o)}o.attr({draggable:!0,cursor:ctu(this._orient),drift:s(this._onDragMove,this,"all"),ondragstart:s(this._showDataInfo,this,!0),ondragend:s(this._onDragEnd,this),onmouseover:s(this._showDataInfo,this,!0),onmouseout:s(this._showDataInfo,this,!1)})},r.prototype._resetInterval=function(){var n=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[pt(n[0],[0,100],t,!0),pt(n[1],[0,100],t,!0)]},r.prototype._updateInterval=function(n,t){var s=this.dataZoomModel,e=this._handleEnds,i=this._getViewExtent(),r=s.findRepresentativeAxisProxy().getMinMaxSpan(),u=[0,100],f,o;return fv(t,e,i,s.get("zoomLock")?"all":n,null!=r.minSpan?pt(r.minSpan,u,i,!0):null,null!=r.maxSpan?pt(r.maxSpan,u,i,!0):null),f=this._range,o=this._range=lu([pt(e[0],i,u,!0),pt(e[1],i,u,!0)]),!f||f[0]!==o[0]||f[1]!==o[1]},r.prototype._updateView=function(n){var i=this._displayables,c=this._handleEnds,r=lu(c.slice()),o=this._size,f,h,e;t([0,1],function(n){var r=i.handles[n],t=this._handleHeight;r.attr({scaleX:t/2,scaleY:t/2,x:c[n]+(n?-1:1),y:o[1]/2-t/2})},this);i.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:o[1]});f={x:r[0],width:r[1]-r[0]};i.moveHandle&&(i.moveHandle.setShape(f),i.moveZone.setShape(f),i.moveZone.getBoundingRect(),i.moveHandleIcon&&i.moveHandleIcon.attr("x",f.x+f.width/2));for(var l=i.dataShadowSegs,s=[0,r[0],r[1],o[0]],u=0;u<l.length;u++)h=l[u],e=h.getClipPath(),e||(e=new ot,h.setClipPath(e)),e.setShape({x:s[u],y:0,width:s[u+1]-s[u],height:o[1]});this._updateDataInfo(n)},r.prototype._updateDataInfo=function(n){function c(n){var t=yh(r.handles[n].parent,this.group),i=sut(0===n?"right":"left",t),e=this._handleWidth/2+5,o=he([h[n]+(0===n?-e:e),this._size[1]/2],t);l[n].setStyle({x:o[0],y:o[1],verticalAlign:u===ctt?"middle":i,align:u===ctt?i:"center",text:f[n]})}var i=this.dataZoomModel,r=this._displayables,l=r.handleLabels,u=this._orient,f=["",""],t,h;if(i.get("showDetail")&&(t=i.findRepresentativeAxisProxy(),t)){var e=t.getAxisModel().axis,o=this._range,s=n?t.calculateDataWindow({start:o[0],end:o[1]}).valueWindow:t.getDataValueWindow();f=[this._formatLabel(s[0],e),this._formatLabel(s[1],e)]}h=lu(this._handleEnds.slice());c.call(this,0);c.call(this,1)},r.prototype._formatLabel=function(n,t){var f=this.dataZoomModel,i=f.get("labelFormatter"),r=f.get("labelPrecision"),u;return null!=r&&"auto"!==r||(r=t.getPixelPrecision()),u=null==n||isNaN(n)?"":"category"===t.type||"time"===t.type?t.scale.getLabel({value:Math.round(n)}):n.toFixed(Math.min(r,20)),l(i)?i(n,u):o(i)?i.replace("{value}",u):u},r.prototype._showDataInfo=function(n){n=this._dragging||n;var t=this._displayables,i=t.handleLabels;i[0].attr("invisible",!n);i[1].attr("invisible",!n);t.moveHandle&&this.api[n?"enterEmphasis":"leaveEmphasis"](t.moveHandle,1)},r.prototype._onDragMove=function(n,t,i,r){this._dragging=!0;de(r.event);var f=he([t,i],this._displayables.sliderGroup.getLocalTransform(),!0),e=this._updateInterval(n,f[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u);e&&u&&this._dispatchZoomAction(!0)},r.prototype._onDragEnd=function(){this._dragging=!1;this._showDataInfo(!1);!this.dataZoomModel.get("realtime")&&this._dispatchZoomAction(!1)},r.prototype._onClickPanel=function(n){var i=this._size,t=this._displayables.sliderGroup.transformCoordToLocal(n.offsetX,n.offsetY);if(!(t[0]<0||t[0]>i[0]||t[1]<0||t[1]>i[1])){var r=this._handleEnds,u=(r[0]+r[1])/2,f=this._updateInterval("all",t[0]-u);this._updateView();f&&this._dispatchZoomAction(!1)}},r.prototype._onBrushStart=function(n){var t=n.offsetX,i=n.offsetY;this._brushStart=new g(t,i);this._brushing=!0;this._brushStartTime=+new Date},r.prototype._onBrushEnd=function(){var t,n,i,r;this._brushing&&(t=this._displayables.brushRect,(this._brushing=!1,t)&&(t.attr("ignore",!0),n=t.shape,+new Date-this._brushStartTime<200&&Math.abs(n.width)<5||(i=this._getViewExtent(),r=[0,100],this._range=lu([pt(n.x,i,r,!0),pt(n.x+n.width,i,r,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1))))},r.prototype._onBrush=function(n){this._brushing&&(de(n.event),this._updateBrushRect(n.offsetX,n.offsetY))},r.prototype._updateBrushRect=function(n,t){var r=this._displayables,h=this.dataZoomModel,i=r.brushRect;i||(i=r.brushRect=new htt({silent:!0,style:h.getModel("brushStyle").getItemStyle()}),r.sliderGroup.add(i));i.attr("ignore",!1);var f=this._brushStart,e=this._displayables.sliderGroup,u=e.transformCoordToLocal(n,t),o=e.transformCoordToLocal(f.x,f.y),s=this._size;u[0]=Math.max(Math.min(s[0],u[0]),0);i.setShape({x:o[0],y:0,width:u[0]-o[0],height:s[1]})},r.prototype._dispatchZoomAction=function(n){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:n?auf:null,start:t[0],end:t[1]})},r.prototype._findCoordRect=function(){var n,u=idr(this.dataZoomModel).infoList,t,i,r;return!n&&u.length&&(t=u[0].model.coordinateSystem,n=t.getRect&&t.getRect()),n||(i=this.api.getWidth(),r=this.api.getHeight(),n={x:.2*i,y:.2*r,width:.6*i,height:.6*r}),n},r.type="dataZoom.slider",r}(cfi);var atu=function(n,t,i){var r=y((yuf[n]||{})[t]);return i&&u(r)?r[r.length-1]:r},yuf={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},vtu=gi.mapVisual,puf=gi.eachVisual,wuf=u,ytu=t,buf=lu,kuf=pt,sct=function(n){function r(){var t=null!==n&&n.apply(this,arguments)||this;return t.type=r.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return i(r,n),r.prototype.init=function(n,t,i){this.mergeDefaultAndTheme(n,i)},r.prototype.optionUpdated=function(n,t){var i=this.option;t||pgr(i,n,this.replacableOptionKeys);this.textStyleModel=this.getModel("textStyle");this.resetItemSize();this.completeVisualOption()},r.prototype.resetVisual=function(n){var t=this.stateList;n=s(n,this);this.controllerVisuals=fei(this.option.controller,t,n);this.targetVisuals=fei(this.option.target,t,n)},r.prototype.getItemSymbol=function(){return null},r.prototype.getTargetSeriesIndices=function(){var n=this.option.seriesIndex,t=[];return null==n||"all"===n?this.ecModel.eachSeries(function(n,i){t.push(i)}):t=kt(n),t},r.prototype.eachTargetSeries=function(n,i){t(this.getTargetSeriesIndices(),function(t){var r=this.ecModel.getSeriesByIndex(t);r&&n.call(i,r)},this)},r.prototype.isTargetSeries=function(n){var t=!1;return this.eachTargetSeries(function(i){i===n&&(t=!0)}),t},r.prototype.formatValueText=function(n,t,i){function h(n){return n===s[0]?"min":n===s[1]?"max":(+n).toFixed(Math.min(a,20))}var f,c=this.option,a=c.precision,s=this.dataBound,e=c.formatter,r;return i=i||["<",">"],u(n)&&(n=n.slice(),f=!0),r=t?n:f?[h(n[0]),h(n[1])]:h(n),o(e)?e.replace("{value}",f?r[0]:r).replace("{value2}",f?r[1]:r):l(e)?f?e(n[0],n[1]):e(n):f?n[0]===s[0]?i[0]+" "+r[1]:n[1]===s[1]?i[1]+" "+r[0]:r[0]+" - "+r[1]:r},r.prototype.resetExtent=function(){var n=this.option,t=buf([n.min,n.max]);this._dataExtent=t},r.prototype.getDataDimensionIndex=function(n){var u=this.option.dimension,i,t,f,r;if(null!=u)return n.getDimensionIndex(u);for(i=n.dimensions,t=i.length-1;t>=0;t--)if(f=i[t],r=n.getDimensionInfo(f),!r.isCalculationCoord)return r.storeDimIndex},r.prototype.getExtent=function(){return this._dataExtent.slice()},r.prototype.completeVisualOption=function(){function f(t){wuf(n.color)&&!t.inRange&&(t.inRange={color:n.color.slice().reverse()});t.inRange=t.inRange||{color:e.get("gradientColor")}}var e=this.ecModel,n=this.option,u={inRange:n.inRange,outOfRange:n.outOfRange},i=n.target||(n.target={}),r=n.controller||(n.controller={}),t;k(i,u);k(r,u);t=this.isCategory();f.call(this,i);f.call(this,r),function(n,i,r){var f=n[i],u=n[r];f&&!u&&(u=n[r]={},ytu(f,function(n,i){if(gi.isValidType(i)){var r=atu(i,"inactive",t);null!=r&&(u[i]=r,"color"!==i||u.hasOwnProperty("opacity")||u.hasOwnProperty("colorAlpha")||(u.opacity=[0,0]))}}))}.call(this,i,"inRange","outOfRange"),function(n){var r=(n.inRange||{}).symbol||(n.outOfRange||{}).symbol,u=(n.inRange||{}).symbolSize||(n.outOfRange||{}).symbolSize,f=this.get("inactiveColor"),i=this.getItemSymbol()||"roundRect";ytu(this.stateList,function(e){var s=this.itemSize,o=n[e],h,c;o||(o=n[e]={color:t?f:[f]});null==o.symbol&&(o.symbol=r&&y(r)||(t?i:[i]));null==o.symbolSize&&(o.symbolSize=u&&y(u)||(t?s[0]:[s[0],s[0]]));o.symbol=vtu(o.symbol,function(n){return"none"===n?i:n});h=o.symbolSize;null!=h&&(c=-1/0,puf(h,function(n){n>c&&(c=n)}),o.symbolSize=vtu(h,function(n){return kuf(n,[0,c],[0,s[0]],!0)}))},this)}.call(this,r)},r.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},r.prototype.isCategory=function(){return!!this.option.categories},r.prototype.setSelected=function(){},r.prototype.getSelected=function(){return null},r.prototype.getValueState=function(){return null},r.prototype.getVisualMeta=function(){return null},r.type="visualMap",r.dependencies=["series"],r.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},r}(rt),ptu=[20,140],duf=function(n){function r(){var t=null!==n&&n.apply(this,arguments)||this;return t.type=r.type,t}return i(r,n),r.prototype.optionUpdated=function(){n.prototype.optionUpdated.apply(this,arguments);this.resetExtent();this.resetVisual(function(n){n.mappingMethod="linear";n.dataExtent=this.getExtent()});this._resetRange()},r.prototype.resetItemSize=function(){n.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(null==t[0]||isNaN(t[0]))&&(t[0]=ptu[0]);(null==t[1]||isNaN(t[1]))&&(t[1]=ptu[1])},r.prototype._resetRange=function(){var t=this.getExtent(),n=this.option.range;!n||n.auto?(t.auto=1,this.option.range=t):u(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],t[0]),n[1]=Math.min(n[1],t[1]))},r.prototype.completeVisualOption=function(){n.prototype.completeVisualOption.apply(this,arguments);t(this.stateList,function(n){var t=this.option.controller[n].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)},this)},r.prototype.setSelected=function(n){this.option.range=n.slice();this._resetRange()},r.prototype.getSelected=function(){var t=this.getExtent(),n=lu((this.get("range")||[]).slice());return n[0]>t[1]&&(n[0]=t[1]),n[1]>t[1]&&(n[1]=t[1]),n[0]<t[0]&&(n[0]=t[0]),n[1]<t[0]&&(n[1]=t[0]),n},r.prototype.getValueState=function(n){var t=this.option.range,i=this.getExtent();return(t[0]<=i[0]||t[0]<=n)&&(t[1]>=i[1]||n<=t[1])?"inRange":"outOfRange"},r.prototype.findTargetDataIndices=function(n){var t=[];return this.eachTargetSeries(function(i){var r=[],u=i.getData();u.each(this.getDataDimensionIndex(u),function(t,i){n[0]<=t&&t<=n[1]&&r.push(i)},this);t.push({seriesId:i.id,dataIndex:r})},this),t},r.prototype.getVisualMeta=function(n){function e(t,r){i.push({value:t,color:n(t,r)})}for(var f,s,u=wtu(this,"outOfRange",this.getExtent()),t=wtu(this,"inRange",this.option.range.slice()),i=[],o=0,r=0,c=t.length,h=u.length;r<h&&(!t.length||u[r]<=t[0]);r++)u[r]<t[o]&&e(u[r],"outOfRange");for(f=1;o<c;o++,f=0)f&&i.length&&e(t[o],"outOfRange"),e(t[o],"inRange");for(f=1;r<h;r++)(!t.length||t[t.length-1]<u[r])&&(f&&(i.length&&e(i[i.length-1].value,"outOfRange"),f=0),e(u[r],"outOfRange"));return s=i.length,{stops:i,outerColors:[s?i[0].color:"transparent",s?i[s-1].color:"transparent"]}},r.type="visualMap.continuous",r.defaultOption=wh(sct.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),r}(sct);gei=function(n){function r(){var t=null!==n&&n.apply(this,arguments)||this;return t.type=r.type,t.autoPositionValues={left:1,right:1,top:1,bottom:1},t}return i(r,n),r.prototype.init=function(n,t){this.ecModel=n;this.api=t},r.prototype.render=function(n,t,i,r){this.visualMapModel=n;!1!==n.get("show")?this.doRender(n,t,i,r):this.group.removeAll()},r.prototype.renderBackground=function(n){var i=this.visualMapModel,t=bh(i.get("padding")||0),r=n.getBoundingRect();n.add(new ot({z2:-1,silent:!0,shape:{x:r.x-t[3],y:r.y-t[0],width:r.width+t[3]+t[1],height:r.height+t[0]+t[2]},style:{fill:i.get("backgroundColor"),stroke:i.get("borderColor"),lineWidth:i.get("borderWidth")}}))},r.prototype.getControllerVisual=function(n,i,r){function h(n){return u[n]}function c(n,t){u[n]=t}var s=(r=r||{}).forceState,e=this.visualMapModel,u={},o,f;return"color"===i&&(o=e.get("contentColor"),u.color=o),f=e.controllerVisuals[s||e.getValueState(n)],t(gi.prepareVisualTypes(f),function(t){var u=f[t];r.convertOpacityToAlpha&&"opacity"===t&&(t="colorAlpha",u=f.__alphaForOpacity);gi.dependsOn(t,i)&&u&&u.applyVisual(n,h,c)}),u[i]},r.prototype.positionGroup=function(n){var i=this.visualMapModel,t=this.api;nft(n,i.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})},r.prototype.doRender=function(){},r.type="visualMap",r}(ni);noi=[["left","right","width"],["top","bottom","height"]];var ko=pt,guf=t,ktu=Math.min,toi=Math.max,nff=function(n){function t(){var i=null!==n&&n.apply(this,arguments)||this;return i.type=t.type,i._shapes={},i._dataInterval=[],i._handleEnds=[],i._hoverLinkDataIndices=[],i}return i(t,n),t.prototype.doRender=function(n,t,i,r){this._api=i;r&&"selectDataRange"===r.type&&r.from===this.uid||this._buildView()},t.prototype._buildView=function(){var t,n,i;this.group.removeAll();t=this.visualMapModel;n=this.group;this._orient=t.get("orient");this._useHandle=t.get("calculable");this._resetInterval();this._renderBar(n);i=t.get("text");this._renderEndsText(n,i,0);this._renderEndsText(n,i,1);this._updateView(!0);this.renderBackground(n);this._updateView();this._enableHoverLinkToSeries();this._enableHoverLinkFromSeries();this.positionGroup(n)},t.prototype._renderEndsText=function(n,t,i){var r;if(t){r=t[1-i];r=null!=r?r+"":"";var u=this.visualMapModel,f=u.get("textGap"),e=u.itemSize,o=this._shapes.mainGroup,s=this._applyTransform([e[0]/2,0===i?-f:e[1]+f],o),h=this._applyTransform(0===i?"bottom":"top",o),c=this._orient,l=this.visualMapModel.textStyleModel;this.group.add(new st({style:gt(l,{x:s[0],y:s[1],verticalAlign:"horizontal"===c?"middle":h,align:"horizontal"===c?h:"center",text:r})}))}},t.prototype._renderBar=function(n){var t=this.visualMapModel,i=this._shapes,r=t.itemSize,o=this._orient,c=this._useHandle,l=btu(t,this.api,r),u=i.mainGroup=this._createBarGroup(l),f=new p,h,e;u.add(f);f.add(i.outOfRange=dtu());f.add(i.inRange=dtu(null,c?niu(this._orient):null,s(this._dragHandle,this,"all",!1),s(this._dragHandle,this,"all",!0)));f.setClipPath(new ot({shape:{x:0,y:0,width:r[0],height:r[1],r:3}}));h=t.textStyleModel.getTextRect("国");e=toi(h.width,h.height);c&&(i.handleThumbs=[],i.handleLabels=[],i.handleLabelPoints=[],this._createHandle(t,u,0,r,e,o),this._createHandle(t,u,1,r,e,o));this._createIndicator(t,u,r,e,o);n.add(u)},t.prototype._createHandle=function(n,t,i,r){var h=s(this._dragHandle,this,i,!1),c=s(this._dragHandle,this,i,!0),f=re(n.get("handleSize"),r[0]),u=si(n.get("handleIcon"),-f/2,-f/2,f,f,null,!0),l=niu(this._orient),a,e,v,o;u.attr({cursor:l,draggable:!0,drift:h,ondragend:c,onmousemove:function(n){de(n.event)}});u.x=r[0]/2;u.useStyle(n.getModel("handleStyle").getItemStyle());u.setStyle({strokeNoScale:!0,strokeFirst:!0});u.style.lineWidth*=2;u.ensureState("emphasis").style=n.getModel(["emphasis","handleStyle"]).getItemStyle();kl(u,!0);t.add(u);a=this.visualMapModel.textStyleModel;e=new st({cursor:l,draggable:!0,drift:h,onmousemove:function(n){de(n.event)},ondragend:c,style:gt(a,{x:0,y:0,text:""})});e.ensureState("blur").style={opacity:.1};e.stateTransition={duration:200};this.group.add(e);v=[f,0];o=this._shapes;o.handleThumbs[i]=u;o.handleLabelPoints[i]=v;o.handleLabels[i]=e},t.prototype._createIndicator=function(n,t,i,u,f){var s=re(n.get("indicatorSize"),i[0]),e=si(n.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0),c,o,a,l,v,h;e.attr({cursor:"move",invisible:!0,silent:!0,x:i[0]/2});c=n.getModel("indicatorStyle").getItemStyle();e instanceof wi?(o=e.style,e.useStyle(r({image:o.image,x:o.x,y:o.y,width:o.width,height:o.height},c))):e.useStyle(c);t.add(e);a=this.visualMapModel.textStyleModel;l=new st({silent:!0,invisible:!0,style:gt(a,{x:0,y:0,text:""})});this.group.add(l);v=[("horizontal"===f?u/2:6)+i[0]/2,0];h=this._shapes;h.indicator=e;h.indicatorLabel=l;h.indicatorLabelPoint=v;this._firstShowIndicator=!0},t.prototype._dragHandle=function(n,t,i,r){if(this._useHandle){if(this._dragging=!t,!t){var u=this._applyTransform([i,r],this._shapes.mainGroup,!0);this._updateInterval(n,u[1]);this._hideIndicator();this._updateView()}t===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()});t?!this._hovering&&this._clearHoverLinkToSeries():gtu(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[n],!1)}},t.prototype._resetInterval=function(){var n=this.visualMapModel,t=this._dataInterval=n.getSelected(),i=n.getExtent(),r=[0,n.itemSize[1]];this._handleEnds=[ko(t[0],i,r,!0),ko(t[1],i,r,!0)]},t.prototype._updateInterval=function(n,t){var u;t=t||0;var f=this.visualMapModel,i=this._handleEnds,r=[0,f.itemSize[1]];fv(t,i,r,n,0);u=f.getExtent();this._dataInterval=[ko(i[0],r,u,!0),ko(i[1],r,u,!0)]},t.prototype._updateView=function(n){var r=this.visualMapModel,t=r.getExtent(),u=this._shapes,f=[0,r.itemSize[1]],e=n?f:this._handleEnds,i=this._createBarVisual(this._dataInterval,t,e,"inRange"),o=this._createBarVisual(t,t,f,"outOfRange");u.inRange.setStyle({fill:i.barColor}).setShape("points",i.barPoints);u.outOfRange.setStyle({fill:o.barColor}).setShape("points",o.barPoints);this._updateHandle(e,i)},t.prototype._createBarVisual=function(n,t,i,r){var f={forceState:r,convertOpacityToAlpha:!0},u=this._makeColorGradient(n,f),e=[this.getControllerVisual(n[0],"symbolSize",f),this.getControllerVisual(n[1],"symbolSize",f)],o=this._createBarPoints(i,e);return{barColor:new ay(0,0,0,1,u),barPoints:o,handlesColor:[u[0].color,u[u.length-1].color]}},t.prototype._makeColorGradient=function(n,t){var r=[],f=(n[1]-n[0])/100,i,u;for(r.push({color:this.getControllerVisual(n[0],"color",t),offset:0}),i=1;i<100;i++){if(u=n[0]+f*i,u>n[1])break;r.push({color:this.getControllerVisual(u,"color",t),offset:i/100})}return r.push({color:this.getControllerVisual(n[1],"color",t),offset:1}),r},t.prototype._createBarPoints=function(n,t){var i=this.visualMapModel.itemSize;return[[i[0]-t[0],n[0]],[i[0],n[0]],[i[0],n[1]],[i[0]-t[1],n[1]]]},t.prototype._createBarGroup=function(n){var t=this._orient,i=this.visualMapModel.get("inverse");return new p("horizontal"!==t||i?"horizontal"===t&&i?{scaleX:"bottom"===n?-1:1,rotation:-Math.PI/2}:"vertical"!==t||i?{scaleX:"left"===n?1:-1}:{scaleX:"left"===n?1:-1,scaleY:-1}:{scaleX:"bottom"===n?1:-1,rotation:Math.PI/2})},t.prototype._updateHandle=function(n,t){if(this._useHandle){var i=this._shapes,r=this.visualMapModel,f=i.handleThumbs,e=i.handleLabels,u=r.itemSize,o=r.getExtent();guf([0,1],function(s){var h=f[s],a,c,l;h.setStyle("fill",t.handlesColor[s]);h.y=n[s];a=ko(n[s],[0,u[1]],o,!0);c=this.getControllerVisual(a,"symbolSize");h.scaleX=h.scaleY=c/u[0];h.x=u[0]-c/2;l=he(i.handleLabelPoints[s],yh(h,this.group));e[s].setStyle({x:l[0],y:l[1],text:r.formatValueText(this._dataInterval[s]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",i.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(n,t,i){var f=this.visualMapModel,d=f.getExtent(),p=f.itemSize,g=[0,p[1]],e=this._shapes,r=e.indicator,h,u,c,l,a,v,y,o,s;if(r){r.attr("invisible",!1);var nt=this.getControllerVisual(n,"color",{convertOpacityToAlpha:!0}),tt=this.getControllerVisual(n,"symbolSize"),w=ko(n,d,g,!0),b=p[0]-tt/2,k={x:r.x,y:r.y};if(r.y=w,r.x=b,h=he(e.indicatorLabelPoint,yh(r,this.group)),u=e.indicatorLabel,u.attr("invisible",!1),c=this._applyTransform("left",e.mainGroup),l="horizontal"===this._orient,u.setStyle({text:(i||"")+f.formatValueText(t),verticalAlign:l?c:"middle",align:l?"center":c}),a={x:b,y:w,style:{fill:nt}},v={style:{x:h[0],y:h[1]}},f.ecModel.isAnimationEnabled()&&!this._firstShowIndicator?(y={duration:100,easing:"cubicInOut",additive:!0},r.x=k.x,r.y=k.y,r.animateTo(a,y),u.animateTo(v,y)):(r.attr(a),u.attr(v)),this._firstShowIndicator=!1,o=this._shapes.handleLabels,o)for(s=0;s<o.length;s++)this._api.enterBlur(o[s])}},t.prototype._enableHoverLinkToSeries=function(){var n=this;this._shapes.mainGroup.on("mousemove",function(t){if(n._hovering=!0,!n._dragging){var r=n.visualMapModel.itemSize,i=n._applyTransform([t.offsetX,t.offsetY],n._shapes.mainGroup,!0,!0);i[1]=ktu(toi(0,i[1]),r[1]);n._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=r[0])}}).on("mouseout",function(){n._hovering=!1;n._dragging||n._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var n=this.api.getZr();this.visualMapModel.option.hoverLink?(n.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),n.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(n,t){var r=this.visualMapModel,a=r.itemSize,i,f,l,h,c;if(r.option.hoverLink){i=[0,a[1]];f=r.getExtent();n=ktu(toi(i[0],n),i[1]);var e=function(n,t,i){var r=6,u=n.get("hoverLinkDataSize");return u&&(r=ko(u,t,i,!0)/2),r}(r,f,i),o=[n-e,n+e],s=ko(n,i,f,!0),u=[ko(o[0],i,f,!0),ko(o[1],i,f,!0)];o[0]<i[0]&&(u[0]=-1/0);o[1]>i[1]&&(u[1]=1/0);t&&(u[0]===-1/0?this._showIndicator(s,u[1],"< ",e):u[1]===1/0?this._showIndicator(s,u[0],"> ",e):this._showIndicator(s,s,"≈ ",e));l=this._hoverLinkDataIndices;h=[];(t||gtu(r))&&(h=this._hoverLinkDataIndices=r.findTargetDataIndices(u));c=function(n,t){function f(n,t,i){for(var u,f,r=0,s=n.length;r<s;r++){if(u=ai(n[r].seriesId,null),null==u)return;for(var h=kt(n[r].dataIndex),e=i&&i[u],o=0,c=h.length;o<c;o++)f=h[o],e&&e[f]?e[f]=null:(t[u]||(t[u]={}))[f]=1}}function r(n,t){var u=[],i,f;for(i in n)n.hasOwnProperty(i)&&null!=n[i]&&(t?u.push(+i):(f=r(n[i],!0),f.length&&u.push({seriesId:i,dataIndex:f})));return u}var i={},u={};return f(n||[],i),f(t||[],u,i),[r(i),r(u)]}(l,h);this._dispatchHighDown("downplay",hct(c[0],r));this._dispatchHighDown("highlight",hct(c[1],r))}},t.prototype._hoverLinkFromSeriesMouseOver=function(n){var t,r,u,f,i;(ea(n.target,function(n){var i=b(n);if(null!=i.dataIndex)return t=i,!0},!0),t)&&(r=this.ecModel.getSeriesByIndex(t.seriesIndex),u=this.visualMapModel,u.isTargetSeries(r)&&(f=r.getData(t.dataType),i=f.getStore().get(u.getDataDimensionIndex(f),t.dataIndex),isNaN(i)||this._showIndicator(i,i)))},t.prototype._hideIndicator=function(){var n=this._shapes,t,i;if(n.indicator&&n.indicator.attr("invisible",!0),n.indicatorLabel&&n.indicatorLabel.attr("invisible",!0),t=this._shapes.handleLabels,t)for(i=0;i<t.length;i++)this._api.leaveBlur(t[i])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var n=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",hct(n,this.visualMapModel));n.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var n=this.api.getZr();n.off("mouseover",this._hoverLinkFromSeriesMouseOver);n.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(n,t,i,r){var f=yh(t,r?null:this.group);return u(n)?he(n,f,i):sut(n,f,i)},t.prototype._dispatchHighDown=function(n,t){t&&t.length&&this.api.dispatchAction({type:n,batch:t})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries();this._clearHoverLinkToSeries()},t.prototype.remove=function(){this._clearHoverLinkFromSeries();this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(gei);var tff={type:"selectDataRange",event:"dataRangeSelected",update:"update"},iff=function(n,t){t.eachComponent({mainType:"visualMap",query:n},function(t){t.setSelected(n.selected)})},rff=[{createOnAllSeries:!0,reset:function(n,i){var r=[];return i.eachComponent("visualMap",function(i){var o,f,h,u,e,c=n.pipelineContext;!i.isTargetSeries(n)||c&&c.large||r.push((o=i.stateList,f=i.targetVisuals,h=s(i.getValueState,i),u=i.getDataDimensionIndex(n.getData()),e={},t(o,function(n){var t=gi.prepareVisualTypes(f[n]);e[n]=t}),{progress:function(n,t){function w(n){return ybt(t,i,n)}function b(n,r){agi(t,i,n,r)}var c,i,l,r,s;for(null!=u&&(c=t.getDimensionIndex(u)),l=t.getStore();null!=(i=n.next());)if(r=t.getRawDataItem(i),!r||!1!==r.visualMap)for(var a=null!=u?l.get(c,i):i,v=h(a),y=f[v],p=e[v],o=0,k=p.length;o<k;o++)s=p[o],y[s]&&y[s].applyVisual(a,w,b)}}))}),r}},{createOnAllSeries:!0,reset:function(n,t){var r=n.getData(),i=[];t.eachComponent("visualMap",function(t){if(t.isTargetSeries(n)){var u=t.getVisualMeta(s(uff,null,n,t))||{stops:[],outerColors:[]},f=t.getDataDimensionIndex(r);f>=0&&(u.dimension=f,i.push(u))}});n.getData().setVisual("visualMeta",i)}}];ioi=t;roi=!1;riu=function(n){function r(){var t=null!==n&&n.apply(this,arguments)||this;return t.type=r.type,t._pieceList=[],t}return i(r,n),r.prototype.optionUpdated=function(t,i){var r,u;n.prototype.optionUpdated.apply(this,arguments);this.resetExtent();r=this._mode=this._determineMode();this._pieceList=[];uiu[this._mode].call(this,this._pieceList);this._resetSelected(t,i);u=this.option.categories;this.resetVisual(function(n,t){"categories"===r?(n.mappingMethod="category",n.categories=y(u)):(n.dataExtent=this.getExtent(),n.mappingMethod="piecewise",n.pieceList=f(this._pieceList,function(n){return n=y(n),"inRange"!==t&&(n.visual=null),n}))})},r.prototype.completeVisualOption=function(){function u(n,t,i){return n&&n[t]&&n[t].hasOwnProperty(i)}var i=this.option,r={},f=gi.listVisualTypes(),e=this.isCategory();t(i.pieces,function(n){t(f,function(t){n.hasOwnProperty(t)&&(r[t]=1)})});t(r,function(n,r){var f=!1;t(this.stateList,function(n){f=f||u(i,n,r)||u(i.target,n,r)},this);f||t(this.stateList,function(n){(i[n]||(i[n]={}))[r]=atu(r,"inRange"===n?"active":"inactive",e)})},this);n.prototype.completeVisualOption.apply(this,arguments)},r.prototype._resetSelected=function(n,i){var u=this.option,e=this._pieceList,r=(i?u:n).selected||{},f;(u.selected=r,t(e,function(n){var t=this.getSelectedMapKey(n);r.hasOwnProperty(t)||(r[t]=!0)},this),"single"===u.selectedMode)&&(f=!1,t(e,function(n){var t=this.getSelectedMapKey(n);r[t]&&(f?r[t]=!1:f=!0)},this))},r.prototype.getItemSymbol=function(){return this.get("itemSymbol")},r.prototype.getSelectedMapKey=function(n){return"categories"===this._mode?n.value+"":n.index+""},r.prototype.getPieceList=function(){return this._pieceList},r.prototype._determineMode=function(){var n=this.option;return n.pieces&&n.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},r.prototype.setSelected=function(n){this.option.selected=y(n)},r.prototype.getValueState=function(n){var t=gi.findPieceIndex(n,this._pieceList);return null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},r.prototype.findTargetDataIndices=function(n){var t=[],i=this._pieceList;return this.eachTargetSeries(function(r){var u=[],f=r.getData();f.each(this.getDataDimensionIndex(f),function(t,r){gi.findPieceIndex(t,i)===n&&u.push(r)},this);t.push({seriesId:r.id,dataIndex:u})},this),t},r.prototype.getRepresentValue=function(n){var i,t;return this.isCategory()?i=n.value:null!=n.value?i=n.value:(t=n.interval||[],i=t[0]===-1/0&&t[1]===1/0?0:(t[0]+t[1])/2),i},r.prototype.getVisualMeta=function(n){function s(t,i){var u=o.getRepresentValue({interval:t}),r;i||(i=o.getValueState(u));r=n(u,i);t[0]===-1/0?f[0]=r:t[1]===1/0?f[1]=r:e.push({value:t[0],color:r},{value:t[1],color:r})}var r,u;if(!this.isCategory()){var e=[],f=["",""],o=this,i=this._pieceList.slice();return i.length?(r=i[0].interval[0],r!==-1/0&&i.unshift({interval:[-1/0,r]}),(r=i[i.length-1].interval[1])!==1/0&&i.push({interval:[r,1/0]})):i.push({interval:[-1/0,1/0]}),u=-1/0,t(i,function(n){var t=n.interval;t&&(t[0]>u&&s([u,t[0]],"outOfRange"),s(t.slice()),u=t[1])},this),{stops:e,outerColors:f}}},r.type="visualMap.piecewise",r.defaultOption=wh(sct.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),r}(sct);uiu={splitNumber:function(n){var r=this.option,e=Math.min(r.precision,20),u=this.getExtent(),f=r.splitNumber,i,o,s,h;for(f=Math.max(parseInt(f,10),1),r.splitNumber=f,i=(u[1]-u[0])/f;+i.toFixed(e)!==i&&e<5;)e++;for(r.precision=e,i=+i.toFixed(e),r.minOpen&&n.push({interval:[-1/0,u[0]],close:[0,0]}),o=0,s=u[0];o<f;s+=i,o++)h=o===f-1?u[1]:s+i,n.push({interval:[s,h],close:[1,1]});r.maxOpen&&n.push({interval:[u[1],1/0],close:[0,0]});uvt(n);t(n,function(n,t){n.index=t;n.text=this.formatValueText(n.interval)},this)},categories:function(n){var i=this.option;t(i.categories,function(t){n.push({text:this.formatValueText(t,!0),value:t})},this);fiu(i,n)},pieces:function(n){var i=this.option;t(i.pieces,function(t,i){var r,s,c,e;if(v(t)||(t={value:t}),r={text:"",index:i},null!=t.label&&(r.text=t.label),t.hasOwnProperty("value"))s=r.value=t.value,r.interval=[s,s],r.close=[1,1];else{for(var f=r.interval=[],o=r.close=[0,0],l=[1,0,1],a=[-1/0,1/0],h=[],u=0;u<2;u++){for(c=[["gte","gt","min"],["lte","lt","max"]][u],e=0;e<3&&null==f[u];e++)f[u]=t[c[e]],o[u]=l[e],h[u]=2===e;null==f[u]&&(f[u]=a[u])}h[0]&&f[1]===1/0&&(o[0]=0);h[1]&&f[0]===-1/0&&(o[1]=0);f[0]===f[1]&&o[0]&&o[1]&&(r.value=f[0])}r.visual=gi.retrieveVisuals(t);n.push(r)},this);fiu(i,n);uvt(n);t(n,function(n){var t=n.close,i=[["<","≤"][t[1]],[">","≥"][t[0]]];n.text=n.text||this.formatValueText(null!=n.value?n.value:n.interval,!1,i)},this)}};eiu=function(n){function r(){var t=null!==n&&n.apply(this,arguments)||this;return t.type=r.type,t}return i(r,n),r.prototype.doRender=function(){var n=this.group;n.removeAll();var i=this.visualMapModel,o=i.get("textGap"),h=i.textStyleModel,l=h.getFont(),a=h.getTextColor(),f=this._getItemAlign(),r=i.itemSize,c=this._getViewData(),u=c.endsText,e=yi(i.get("showLabel",!0),!u);u&&this._renderEndsText(n,u[0],r,e,f);t(c.viewPieceList,function(t){var h=t.piece,u=new p,c,v;u.onclick=s(this._onItemClick,this,h);this._enableHoverLink(u,t.indexInModelPieceList);c=i.getRepresentValue(h);(this._createItemSymbol(u,c,[0,0,r[0],r[1]]),e)&&(v=this.visualMapModel.getValueState(c),u.add(new st({style:{x:"right"===f?-o:r[0]+o,y:r[1]/2,text:h.text,verticalAlign:"middle",align:f,font:l,fill:a,opacity:"outOfRange"===v?.5:1}})));n.add(u)},this);u&&this._renderEndsText(n,u[1],r,e,f);kh(i.get("orient"),n,i.get("itemGap"));this.renderBackground(n);this.positionGroup(n)},r.prototype._enableHoverLink=function(n,t){var r=this,i;n.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});i=function(n){var i=r.visualMapModel;i.option.hoverLink&&r.api.dispatchAction({type:n,batch:hct(i.findTargetDataIndices(t),i)})}},r.prototype._getItemAlign=function(){var t=this.visualMapModel,i=t.option,n;return"vertical"===i.orient?btu(t,this.api,t.itemSize):(n=i.align,n&&"auto"!==n||(n="left"),n)},r.prototype._renderEndsText=function(n,t,i,r,u){if(t){var f=new p,e=this.visualMapModel.textStyleModel;f.add(new st({style:gt(e,{x:r?"right"===u?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:r?u:"center",text:t})}));n.add(f)}},r.prototype._getViewData=function(){var n=this.visualMapModel,i=f(n.getPieceList(),function(n,t){return{piece:n,indexInModelPieceList:t}}),t=n.get("text"),u=n.get("orient"),r=n.get("inverse");return("horizontal"===u?r:!r)?i.reverse():t&&(t=t.slice().reverse()),{viewPieceList:i,endsText:t}},r.prototype._createItemSymbol=function(n,t,i){n.add(si(this.getControllerVisual(t,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(t,"color")))},r.prototype._onItemClick=function(n){var f=this.visualMapModel,e=f.option,u=e.selectedMode,i,r;u&&(i=y(e.selected),r=f.getSelectedMapKey(n),"single"===u||!0===u?(i[r]=!0,t(i,function(n,t){i[t]=t===r})):i[r]=!i[r],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:i}))},r.type="visualMap.piecewise",r}(gei);var eff={label:{enabled:!0},decal:{show:!1}},siu=ct(),off={};var hiu={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},cff=function(){function n(n){if(null==(this._condVal=o(n)?new RegExp(n):nsi(n)?n:null))vt("")}return n.prototype.evaluate=function(n){var t=typeof n;return o(t)?this._condVal.test(n):!!ht(t)&&this._condVal.test(n+"")},n}(),lff=function(){function n(){}return n.prototype.evaluate=function(){return this.value},n}(),aff=function(){function n(){}return n.prototype.evaluate=function(){for(var t=this.children,n=0;n<t.length;n++)if(!t[n].evaluate())return!1;return!0},n}(),vff=function(){function n(){}return n.prototype.evaluate=function(){for(var t=this.children,n=0;n<t.length;n++)if(t[n].evaluate())return!0;return!1},n}(),yff=function(){function n(){}return n.prototype.evaluate=function(){return!this.child.evaluate()},n}(),pff=function(){function n(){}return n.prototype.evaluate=function(){for(var t=!!this.valueParser,i=this.getValue(this.valueGetterParam),r=t?this.valueParser(i):null,n=0;n<this.subCondList.length;n++)if(!this.subCondList[n].evaluate(t?r:i))return!1;return!0},n}();var wff=function(){function n(n,t){this._cond=uoi(n,t)}return n.prototype.evaluate=function(){return this._cond.evaluate()},n}(),bff={type:"echarts:filter",transform:function(n){for(var i,u,f,t=n.upstream,o=(u=n.config,f={valueGetterAttrMap:c({dimension:!0}),prepareGetValue:function(n){var r="",u=n.dimension,i;return h(n,"dimension")||vt(r),i=t.getDimensionInfo(u),i||vt(r),{dimIdx:i.index}},getValue:function(n){return t.retrieveValueFromItem(i,n.dimIdx)}},new wff(u,f)),e=[],r=0,s=t.count();r<s;r++)i=t.getRawDataItem(r),o.evaluate()&&e.push(i);return{data:e}}},kff={type:"echarts:sort",transform:function(n){var i=n.upstream,h=n.config,r="",s=kt(h),u,f;s.length||vt(r);u=[];t(s,function(n){var h=n.dimension,t=n.order,e=n.parser,f=n.incomparable,c,l,o,s;(null==h&&vt(r),"asc"!==t&&"desc"!==t&&vt(r),f&&"min"!==f&&"max"!==f)&&(c="",vt(c));"asc"!==t&&"desc"!==t&&(l="",vt(l));o=i.getDimensionInfo(h);o||vt(r);s=e?yki(e):null;e&&!s&&vt(r);u.push({dimIdx:o.index,parser:s,comparator:new wki(t,f)})});f=i.sourceFormat;f!==lr&&f!==cf&&vt(r);for(var e=[],o=0,c=i.count();o<c;o++)e.push(i.getRawDataItem(o));return e.sort(function(n,t){for(var s,f=0;f<u.length;f++){var r=u[f],e=i.retrieveValueFromItem(n,r.dimIdx),o=i.retrieveValueFromItem(t,r.dimIdx);if(r.parser&&(e=r.parser(e),o=r.parser(o)),s=r.comparator.evaluate(e,o),0!==s)return s}return 0}),{data:e}}},dff=function(n){function t(){var t=null!==n&&n.apply(this,arguments)||this;return t.type="dataset",t}return i(t,n),t.prototype.init=function(t,i,r){n.prototype.init.call(this,t,i,r);this._sourceManager=new obt(this);tdi(this)},t.prototype.mergeOption=function(t,i){n.prototype.mergeOption.call(this,t,i);tdi(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:ho},t}(rt),gff=function(n){function t(){var t=null!==n&&n.apply(this,arguments)||this;return t.type="dataset",t}return i(t,n),t.type="dataset",t}(ni),go=fe.CMD;ooi="__mOriginal_";iru={clone:function(n){for(var t,i=[],u=1-Math.pow(1-n.path.style.opacity,1/n.count),r=0;r<n.count;r++)t=upt(n.path),t.setStyle("opacity",u),i.push(t);return i},split:null};rru=ct();it([function(n){n.registerPainter("canvas",pau)}]);it([function(n){n.registerPainter("svg",ifr)}]);it([function(n){n.registerChartView(ner);n.registerSeriesModel(wau);n.registerLayout(rn("line",!0));n.registerVisual({seriesType:"line",reset:function(n){var i=n.getData(),t=n.getModel("lineStyle").getLineStyle();t&&!t.stroke&&(t.stroke=i.getVisual("style").fill);i.setVisual("legendLineStyle",t)}});n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,rer("line"))},function(n){n.registerChartView(rvu);n.registerSeriesModel(tvu);n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,w(uir,"bar"));n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,fir("bar"));n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,rer("bar"));n.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(n,t){var i=n.componentType||"series";t.eachComponent({mainType:i,query:n},function(t){n.sortInfo&&t.axis.setCategorySortInfo(n.sortInfo)})})},function(n){n.registerChartView(ger);n.registerSeriesModel(hvu);vgi("pie",n.registerAction);n.registerLayout(w(evu,"pie"));n.registerProcessor(fn("pie"));n.registerProcessor(function(n){return{seriesType:n,reset:function(n){var t=n.getData();t.filterSelf(function(n){var r=t.mapDimension("value"),i=t.get(r,n);return!(ht(i)&&!isNaN(i)&&i<0)})}}}("pie"))},function(n){it(rsr);n.registerSeriesModel(cvu);n.registerChartView(yvu);n.registerLayout(rn("scatter"))},function(n){it(vyu);n.registerChartView(eyu);n.registerSeriesModel(oyu);n.registerLayout(uyu);n.registerProcessor(fn("radar"));n.registerPreprocessor(fyu)},function(n){it(ncr);n.registerChartView(ahr);n.registerSeriesModel(vhr);n.registerLayout(fpu);n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,upu);vgi("map",n.registerAction)},function(n){n.registerChartView(bpu);n.registerSeriesModel(lcr);n.registerLayout(iwu);n.registerVisual(rwu),function(n){n.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(n,t){t.eachComponent({mainType:"series",subType:"tree",query:n},function(t){var r=n.dataIndex,i=t.getData().tree.getNodeByDataIndex(r);i.isExpand=!i.isExpand})});n.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(n,t,i){t.eachComponent({mainType:"series",subType:"tree",query:n},function(t){var r=fti(t.coordinateSystem,n,void 0,i);t.setCenter&&t.setCenter(r.center);t.setZoom&&t.setZoom(r.zoom)})})}(n)},function(n){n.registerSeriesModel(vcr);n.registerChartView(owu);n.registerVisual(ilr);n.registerLayout(awu),function(n){for(var t=0;t<lti.length;t++)n.registerAction({type:lti[t],update:"updateView"},ei);n.registerAction({type:"treemapRootToNode",update:"updateView"},function(n,t){t.eachComponent({mainType:"series",subType:"treemap",query:n},function(t){var i=ln(n,["treemapZoomToNode","treemapRootToNode"],t),r;i&&(r=t.getViewRoot(),r&&(n.direction=cti(r,i.node)?"rollUp":"drillDown"),t.resetViewRoot(i.node))})})}(n)},function(n){n.registerChartView(ear);n.registerSeriesModel(tbu);n.registerProcessor(ywu);n.registerVisual(pwu);n.registerVisual(wwu);n.registerLayout(bwu);n.registerLayout(n.PRIORITY.VISUAL.POST_CHART_LAYOUT,kwu);n.registerLayout(dwu);n.registerCoordinateSystem("graphView",{dimensions:hw.dimensions,create:gwu});n.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},ei);n.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},ei);n.registerAction(ibu,function(n,t,i){t.eachComponent({mainType:"series",query:n},function(t){var r=fti(t.coordinateSystem,n,void 0,i);t.setCenter&&t.setCenter(r.center);t.setZoom&&t.setZoom(r.zoom)})})},function(n){n.registerChartView(fbu);n.registerSeriesModel(ebu)},function(n){n.registerChartView(hbu);n.registerSeriesModel(cbu);n.registerLayout(lbu);n.registerProcessor(fn("funnel"))},function(n){it(eyr);n.registerChartView(car);n.registerSeriesModel(par);n.registerVisual(n.PRIORITY.VISUAL.BRUSH,bar)},function(n){n.registerChartView(hku);n.registerSeriesModel(syr);n.registerLayout(cku);n.registerVisual(bku);n.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(n,t){t.eachComponent({mainType:"series",subType:"sankey",query:n},function(t){t.setNodePosition(n.dataIndex,[n.localX,n.localY])})})},function(n){n.registerSeriesModel(ari);n.registerChartView(kku);n.registerLayout(tdu);n.registerTransform(idu)},function(n){n.registerChartView(udu);n.registerSeriesModel(wri);n.registerPreprocessor(sdu);n.registerVisual(ydu);n.registerLayout(pdu)},function(n){n.registerChartView(bdu);n.registerSeriesModel(kdu);n.registerLayout(rn("effectScatter"))},function(n){n.registerChartView(igu);n.registerSeriesModel(npr);n.registerLayout(dyr);n.registerVisual(tpr)},function(n){n.registerChartView(fgu);n.registerSeriesModel(egu)},function(n){n.registerChartView(sgu);n.registerSeriesModel(lgu);n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,w(uir,"pictorialBar"));n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,fir("pictorialBar"))},function(n){n.registerChartView(agu);n.registerSeriesModel(vgu);n.registerLayout(ygu);n.registerProcessor(fn("themeRiver"))},function(n){n.registerChartView(pgu);n.registerSeriesModel(wgu);n.registerLayout(w(bgu,"sunburst"));n.registerProcessor(w(fn,"sunburst"));n.registerVisual(kgu),function(n){n.registerAction({type:gri,update:"updateView"},function(n,t){t.eachComponent({mainType:"series",subType:"sunburst",query:n},function(t){var i=ln(n,[gri],t),r;i&&(r=t.getViewRoot(),r&&(n.direction=cti(r,i.node)?"rollUp":"drillDown"),t.resetViewRoot(i.node))})});n.registerAction({type:dpr,update:"none"},function(n,t,i){n=r({},n);t.eachComponent({mainType:"series",subType:"sunburst",query:n},function(t){var i=ln(n,[dpr],t);i&&(n.dataIndex=i.node.dataIndex)});i.dispatchAction(r(n,{type:"highlight"}))});n.registerAction({type:"sunburstUnhighlight",update:"updateView"},function(n,t,i){n=r({},n);i.dispatchAction(r(n,{type:"downplay"}))})}(n)},function(n){n.registerChartView(pwr);n.registerSeriesModel(ggu)}]);it(function(){it(rsr);it(ttt)});it(function(n){it(ttt);ka.registerAxisPointerClass("PolarAxisPointer",knu);n.registerCoordinateSystem("polar",fkr);n.registerComponentModel(gnu);n.registerComponentView(atf);ow(n,"angle",ntf,ctf);ow(n,"radius",ttf,ltf);n.registerComponentView(rtf);n.registerComponentView(otf);n.registerLayout(w(htf,"bar"))});it(ncr);it(function(n){it(ttt);ka.registerAxisPointerClass("SingleAxisPointer",nif);n.registerComponentView(vkr);n.registerComponentView(ptf);n.registerComponentModel(sht);ow(n,"single",sht,sht.defaultOption);n.registerCoordinateSystem("single",dtf)});it(eyr);it(function(n){n.registerComponentModel(ykr);n.registerComponentView(iif);n.registerCoordinateSystem("calendar",rif)});it(function(n){n.registerComponentModel(uif);n.registerComponentView(fif);n.registerPreprocessor(function(n){var t=n.graphic;u(t)?n.graphic=t[0]&&t[0].elements?[n.graphic[0]]:[{elements:t}]:t&&!t.elements&&(n.graphic=[{elements:[t]}])})});it(function(n){n.registerComponentModel(odr);n.registerComponentView(aif);dw("saveAsImage",vif);dw("magicType",pif);dw("dataView",ldr);dw("dataZoom",gif);dw("restore",adr);it(lif)});it(function(n){it(ttt);n.registerComponentModel(gdr);n.registerComponentView(cgr);n.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},ei);n.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},ei)});it(ttt);it(function(n){n.registerComponentView(tnr);n.registerComponentModel(inr);n.registerPreprocessor(urf);n.registerVisual(n.PRIORITY.VISUAL.BRUSH,frf);n.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(n,t){t.eachComponent({mainType:"brush",query:n},function(t){t.setAreas(n.areas)})});n.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},ei);n.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},ei);dw("brush",srf)});it(function(n){n.registerComponentModel(hrf);n.registerComponentView(crf)});it(function(n){n.registerComponentModel(fnr);n.registerComponentView(vrf);n.registerSubTypeDefaulter("timeline",function(){return"slider"}),function(n){n.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(n,t,i){var r=t.getComponent("timeline");return r&&null!=n.currentIndex&&(r.setCurrentIndex(n.currentIndex),!r.get("loop",!0)&&r.isIndexMax()&&r.getPlayState()&&(r.setPlayState(!1),i.dispatchAction({type:"timelinePlayChange",playState:!1,from:n.from}))),t.resetOption("timeline",{replaceMerge:r.get("replaceMerge",!0)}),a({currentIndex:r.option.currentIndex},n)});n.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(n,t){var i=t.getComponent("timeline");i&&null!=n.playState&&i.setPlayState(n.playState)})}(n);n.registerPreprocessor(yrf)});it(function(n){n.registerComponentModel(cnr);n.registerComponentView(prf);n.registerPreprocessor(function(n){cei(n.series,"markPoint")&&(n.markPoint=n.markPoint||{})})});it(function(n){n.registerComponentModel(wrf);n.registerComponentView(drf);n.registerPreprocessor(function(n){cei(n.series,"markLine")&&(n.markLine=n.markLine||{})})});it(function(n){n.registerComponentModel(grf);n.registerComponentView(iuf);n.registerPreprocessor(function(n){cei(n.series,"markArea")&&(n.markArea=n.markArea||{})})});it(function(){it(ntu);it(fuf)});it(function(){it(stu);it(ltu)});it(stu);it(ltu);it(function(){it(iiu);it(oiu)});it(iiu);it(oiu);it(function(n){n.registerPreprocessor(hff);n.registerVisual(n.PRIORITY.VISUAL.ARIA,sff)});it(function(n){n.registerTransform(bff);n.registerTransform(kff)});it(function(n){n.registerComponentModel(dff);n.registerComponentView(gff)});it(function(n){n.registerUpdateLifecycle("series:beforeupdate",function(n,i,r){t(kt(r.seriesTransition),function(n){t(kt(n.to),function(n){for(var i=r.updatedSeries,t=0;t<i.length;t++)(null!=n.seriesIndex&&n.seriesIndex===i[t].seriesIndex||null!=n.seriesId&&n.seriesId===i[t].id)&&(i[t][gd]=!0)})})});n.registerUpdateLifecycle("series:transition",function(n,i,r){var f=rru(i),s,h,l;f.oldSeries&&r.updatedSeries&&r.optionChanged&&(s=r.seriesTransition,s?t(kt(s),function(n){!function(n,i,r,u){var f=[],e=[];t(kt(n.from),function(n){var t=sru(i.oldSeries,n);t>=0&&f.push({dataGroupId:i.oldDataGroupIds[t],data:i.oldData[t],divide:yc(i.oldData[t]),dim:n.dimension})});t(kt(n.to),function(n){var t=sru(r.updatedSeries,n),u;t>=0&&(u=r.updatedSeries[t].getData(),e.push({dataGroupId:i.oldDataGroupIds[t],data:u,divide:yc(u),dim:n.dimension}))});f.length>0&&e.length>0&&fru(f,e,u)}(n,f,r,i)}):(h=function(n,i){var r=c(),f=c(),e=c();return t(n.oldSeries,function(i,r){var s=n.oldDataGroupIds[r],h=n.oldData[r],o=eru(i),c=oru(o);f.set(c,{dataGroupId:s,data:h});u(o)&&t(o,function(n){e.set(n,{key:c,dataGroupId:s,data:h})})}),t(i.updatedSeries,function(n){var l,i,s;if(n.isUniversalTransitionEnabled()&&n.isAnimationEnabled()){var a=n.get("dataGroupId"),o=n.getData(),h=eru(n),v=oru(h),c=f.get(v);c?r.set(v,{oldSeries:[{dataGroupId:c.dataGroupId,divide:yc(c.data),data:c.data}],newSeries:[{dataGroupId:a,divide:yc(o),data:o}]}):u(h)?(l=[],t(h,function(n){var t=f.get(n);t.data&&l.push({dataGroupId:t.dataGroupId,divide:yc(t.data),data:t.data})}),l.length&&r.set(v,{oldSeries:l,newSeries:[{dataGroupId:a,data:o,divide:yc(o)}]})):(i=e.get(h),i&&(s=r.get(i.key),s||(s={oldSeries:[{dataGroupId:i.dataGroupId,data:i.data,divide:yc(i.data)}],newSeries:[]},r.set(i.key,s)),s.newSeries.push({dataGroupId:a,data:o,divide:yc(o)})))}}),r}(f,r),t(h.keys(),function(n){var t=h.get(n);fru(t.oldSeries,t.newSeries,i)})),t(r.updatedSeries,function(n){n[gd]&&(n[gd]=!1)}));for(var o=n.getSeries(),a=f.oldSeries=[],v=f.oldDataGroupIds=[],y=f.oldData=[],e=0;e<o.length;e++)l=o[e].getData(),l.count()<1e4&&(a.push(o[e]),v.push(o[e].get("dataGroupId")),y.push(l))})});it(function(n){n.registerUpdateLifecycle("series:beforeupdate",function(n,t){var i=tgt(t).labelManager;i||(i=tgt(t).labelManager=new eau);i.clearLabels()});n.registerUpdateLifecycle("series:layoutlabels",function(n,t,i){var r=tgt(t).labelManager;i.updatedSeries.forEach(function(n){r.addLabelsOfSeries(t.getViewOfSeriesModel(n))});r.updateLayoutConfig(t);r.layout(t);r.processLabelsOverall()})});n.Axis=pu;n.ChartView=wt;n.ComponentModel=rt;n.ComponentView=ni;n.List=yr;n.Model=at;n.PRIORITY=oni;n.SeriesModel=bt;n.color=bhi;n.connect=function(n){if(u(n)){var i=n;n=null;t(i,function(t){null!=t.group&&(n=t.group)});n=n||"g_"+ocu++;t(i,function(t){t.group=n})}return fet[n]=!0,n};n.dataTool={};n.dependencies={zrender:"5.4.4"};n.disConnect=ntr;n.disconnect=gni;n.dispose=function(n){o(n)?n=ca[n]:n instanceof eg||(n=wkt(n));n instanceof eg&&!n.isDisposed()&&n.dispose()};n.env=ft;n.extendChartView=function(n){var t=wt.extend(n);return wt.registerClass(t),t};n.extendComponentModel=function(n){var t=rt.extend(n);return rt.registerClass(t),t};n.extendComponentView=function(n){var t=ni.extend(n);return ni.registerClass(t),t};n.extendSeriesModel=function(n){var t=bt.extend(n);return bt.registerClass(t),t};n.format=vlu;n.getCoordinateSystemDimensions=function(n){var t=up.get(n);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()};n.getInstanceByDom=wkt;n.getInstanceById=function(n){return ca[n]};n.getMap=function(n){var t=eni("getMap");return t&&t(n)};n.graphic=alu;n.helper=slu;n.init=function(n,t,i){var f=!(i&&i.ssr),u,r;if(f){if(u=wkt(n),u)return u;0}return r=new eg(n,t,i),r.id="ec_"+ecu++,ca[r.id]=r,f&&yli(n,pkt,r.id),wni(r),af.trigger("afterinit",r),r};n.innerDrawElementOnCanvas=gbt;n.matrix=tuu;n.number=clu;n.parseGeoJSON=bdt;n.parseGeoJson=bdt;n.registerAction=ae;n.registerCoordinateSystem=rtr;n.registerLayout=utr;n.registerLoading=tdt;n.registerLocale=gpt;n.registerMap=ftr;n.registerPostInit=ttr;n.registerPostUpdate=itr;n.registerPreprocessor=kkt;n.registerProcessor=dkt;n.registerTheme=bkt;n.registerTransform=idt;n.registerUpdateLifecycle=eet;n.registerVisual=ic;n.setCanvasCreator=function(n){yoi({createCanvas:n})};n.setPlatformAPI=yoi;n.throttle=aft;n.time=llu;n.use=it;n.util=ylu;n.vector=wru;n.version="5.4.3";n.zrUtil=rsi;n.zrender=gci;Object.defineProperty(n,"__esModule",{value:!0})})