XH_Digital_Management/static/plugins/amchart/js/ammap.min.js

1 line
165 KiB
JavaScript
Raw Normal View History

2024-05-29 15:25:17 +08:00
(function(){var a;window.AmCharts?a=window.AmCharts:(a={},window.AmCharts=a,a.themes={},a.maps={},a.inheriting={},a.charts=[],a.onReadyArray=[],a.useUTC=!1,a.updateRate=60,a.uid=0,a.lang={},a.translations={},a.mapTranslations={},a.windows={},a.initHandlers=[],a.amString="am",a.pmString="pm");a.Class=function(e){var d=function(){arguments[0]!==a.inheriting&&(this.events={},this.construct.apply(this,arguments))};e.inherits?(d.prototype=new e.inherits(a.inheriting),d.base=e.inherits.prototype,delete e.inherits):(d.prototype.createEvents=function(){for(var b=0;b<arguments.length;b++){this.events[arguments[b]]=[]}},d.prototype.listenTo=function(h,g,i){this.removeListener(h,g,i);h.events[g].push({handler:i,scope:this})},d.prototype.addListener=function(h,g,i){this.removeListener(this,h,g);h&&this.events[h]&&this.events[h].push({handler:g,scope:i})},d.prototype.removeListener=function(h,g,i){if(h&&h.events&&(h=h.events[g])){for(g=h.length-1;0<=g;g--){h[g].handler===i&&h.splice(g,1)}}},d.prototype.fire=function(h){for(var g=this.events[h.type],j=0;j<g.length;j++){var i=g[j];i.handler.call(i.scope,h)}});for(var f in e){d.prototype[f]=e[f]}return d};a.addChart=function(b){window.requestAnimationFrame?a.animationRequested||(a.animationRequested=!0,window.requestAnimationFrame(a.update)):a.updateInt||(a.updateInt=setInterval(function(){a.update()},Math.round(1000/a.updateRate)));a.charts.push(b)};a.removeChart=function(e){for(var d=a.charts,f=d.length-1;0<=f;f--){d[f]==e&&d.splice(f,1)}0===d.length&&(a.requestAnimation&&(window.cancelAnimationFrame(a.requestAnimation),a.animationRequested=!1),a.updateInt&&(clearInterval(a.updateInt),a.updateInt=NaN))};a.isModern=!0;a.getIEVersion=function(){var e=0,d,f;"Microsoft Internet Explorer"==navigator.appName&&(d=navigator.userAgent,f=/MSIE ([0-9]{1,}[.0-9]{0,})/,null!==f.exec(d)&&(e=parseFloat(RegExp.$1)));return e};a.applyLang=function(e,d){var f=a.translations;d.dayNames=a.extend({},a.dayNames);d.shortDayNames=a.extend({},a.shortDayNames);d.monthNames=a.extend({},a.monthNames);d.shortMonthNames=a.extend({},a.shortMonthNames);d.amString="am";d.pmString="pm";f&&(f=f[e])&&(a.lang=f,d.langObj=f,f.monthNames&&(d.dayNames=a.extend({},f.dayNames),d.shortDayNames=a.extend({},f.shortDayNames),d.monthNames=a.extend({},f.monthNames),d.shortMonthNames=a.extend({},f.shortMonthNames)),f.am&&(d.amString=f.am),f.pm&&(d.pmString=f.pm));a.amString=d.amString;a.pmString=d.pmString};a.IEversion=a.getIEVersion();9>a.IEversion&&0<a.IEversion&&(a.isModern=!1,a.isIE=!0);a.dx=0;a.dy=0;if(document.addEventListener||window.opera){a.isNN=!0,a.isIE=!1,a.dx=0.5,a.dy=0.5}document.attachEvent&&(a.isNN=!1,a.isIE=!0,a.isModern||(a.dx=0,a.dy=0));window.chrome&&(a.chrome=!0);a.handleMouseUp=function(f){for(var d=a.charts,h=0;h<d.length;h++){var g=d[h];g&&g.handleReleaseOutside&&g.handleReleaseOutside(f)}};a.handleMouseMove=function(f){for(var d=a.charts,h=0;h<d.length;h++){var g=d[h];g&&g.handleMouseMove&&g.handleMouseMove(f)}};a.handleWheel=function(f){for(var d=a.charts,h=0;h<d.length;h++){var g=d[h];if(g&&g.mouseIsOver){(g.mouseWheelScrollEnabled||g.mouseWheelZoomEnabled)&&g.handleWheel&&g.handleWheel(f);break}}};a.resetMouseOver=function(){for(var e=a.charts,d=0;d<e.length;d++){var f=e[d];f&&(f.mouseIsOver=!1)}};a.ready=function(b){a.onReadyArray.push(b)};a.handleLoad=function(){a.isReady=!0;for(var e=a.onReadyArray,d=0;d<e.length;d++){var f=e[d];isNaN(a.processDelay)?f():setTimeout(f,a.processDelay*d)}a.onReadyArray=[]};a.addInitHandler=function(d,c){a.initHandlers.push({method:d,types:c})};a.callInitHandler=function(f){var d=a.initHandlers;if(a.initHandlers){for(var h=0;h<d.length;h++){var g=d[h];g.types?a.isInArray(g.types,f.type)&&g.method(f):g.method(f)}}};a.getUniqueId=function(){a.uid++;return"AmChartsEl-"+a.uid};a.isNN&&(document.addEventListener("mousemove",a.handleMouseMove),document.addEventListener("mouseup",a.handleMouseUp,!0),window.addEventListener("load",a.handleLoad,!0));a.isIE&&(document.attachEvent("onmousemove",a.handleMouseMove),document.attachEvent("onmouseup",a.handleMouseUp),window.attachEvent("