93 lines
1.3 MiB
JavaScript
93 lines
1.3 MiB
JavaScript
|
;/*!node_modules/zrender/dist/zrender.js*/
|
|||
|
amis.define("3263343",(function(t,e,r,i){var n,o;n=this,o=function(t){"use strict";var e=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},r=new function(){this.browser=new e,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};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(r.wxa=!0,r.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?r.worker=!0:"undefined"==typeof navigator?(r.node=!0,r.svgSupported=!0):function(t,e){var r=e.browser,i=t.match(/Firefox\/([\d.]+)/),n=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);i&&(r.firefox=!0,r.version=i[1]),n&&(r.ie=!0,r.version=n[1]),o&&(r.edge=!0,r.version=o[1],r.newEdge=+o[1].split(".")[0]>18),a&&(r.weChat=!0),e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,e.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),e.domSupported="undefined"!=typeof document;var s=document.documentElement.style;e.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}(navigator.userAgent,r);var i,n,o="sans-serif",a="12px sans-serif",s=function(t){var e={};if("undefined"==typeof JSON)return e;for(var r=0;r<t.length;r++){var i=String.fromCharCode(r+32),n=(t.charCodeAt(r)-20)/100;e[i]=n}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),h={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(t,e){if(!i){var r=h.createCanvas();i=r&&r.getContext("2d")}if(i)return n!==e&&(n=i.font=e||a),i.measureText(t);t=t||"";var o=/(\d+)px/.exec(e=e||a),l=o&&+o[1]||12,u=0;if(e.indexOf("mono")>=0)u=l*t.length;else for(var c=0;c<t.length;c++){var f=s[t[c]];u+=null==f?l:f*l}return{width:u}},loadImage:function(t,e,r){var i=new Image;return i.onload=e,i.onerror=r,i.src=t,i}},l=I(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(t,e){return t["[object "+e+"]"]=!0,t}),{}),u=I(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(t,e){return t["[object "+e+"Array]"]=!0,t}),{}),c=Object.prototype.toString,f=Array.prototype,p=f.forEach,d=f.filter,v=f.slice,y=f.map,g=function(){}.constructor,_=g?g.prototype:null,m="__proto__",x=2311;function w(){return x++}function b(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!=typeof console&&console.error.apply(console,t)}function S(t){if(null==t||"object"!=typeof t)return t;var e=t,r=c.call(t);if("[object Array]"===r){if(!et(t)){e=[];for(var i=0,n=t.length;i<n;i++)e[i]=S(t[i])}}else if(u[r]){if(!et(t)){var o=t.constructor;if(o.from)e=o.from(t);else for(e=new o(t.length),i=0,n=t.length;i<n;i++)e[i]=t[i]}}else if(!l[r]&&!et(t)&&!Y(t))for(var a in e={},t)t.hasOwnProperty(a)&&a!==m&&(e[a]=S(t[a]));return e}function k(t,e,r){if(!W(e)||!W(t))return r?S(e):t;for(var i in e)if(e.hasOwnProperty(i)&&i!==m){var n=t[i],o=e[i];!W(o)||!W(n)||B(o)||B(n)||Y(o)||Y(n)||X(o)||X(n)||et(o)||et(n)?!r&&i in t||(t[i]=S(e[i])):k(n,o,r)}return t}function T(t,e){if(Object.assign)Object.assign(t,e);else for(var r in e)e.hasOwnProperty(r)&&r!==m&&(t[r]=e[r]);return t}function C(t,e,r){for(var i=O(e),n=0;n<i.length;n++){var o=i[n];(r?null!=e[o]:null==t[o])&&(t[o]=e[o])}return t}var P=h.createCanvas;function M(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r}return-1}function A(t,e,r){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),n=0;n<i.length;n++){var o=i[n];"constru
|
|||
|
/*!
|
|||
|
* ZRender, a high performance 2d drawing library.
|
|||
|
*
|
|||
|
* Copyright (c) 2013, Baidu Inc.
|
|||
|
* All rights reserved.
|
|||
|
*
|
|||
|
* LICENSE
|
|||
|
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
|
|||
|
*/
|
|||
|
var ln={},un={},cn=function(){function t(t,e,i){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,i=i||{},this.dom=e,this.id=t;var o=new Oe,a=i.renderer||"canvas";if(ln[a]||(a=O(ln)[0]),!ln[a])throw new Error("Renderer '"+a+"' is not imported. Please import it first.");i.useDirtyRect=null!=i.useDirtyRect&&i.useDirtyRect;var s=new ln[a](e,o,i,t),h=i.ssr||s.ssrOnly;this.storage=o,this.painter=s;var l,u=r.node||r.worker||h?null:new Ai(s.getViewportRoot(),s.root),c=i.useCoarsePointer;(null==c||"auto"===c?r.touchEventsSupported:!!c)&&(l=G(i.pointerSize,44)),this.handler=new Se(o,s,u,s.root,l),this.animation=new fi({stage:{update:h?null:function(){return n._flush(!0)}}}),h||this.animation.start()}return t.prototype.add=function(t){t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh()},t.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(!t)return!1;if("string"==typeof t)return Dr(t,1)<.4;if(t.colorStops){for(var e=t.colorStops,r=0,i=e.length,n=0;n<i;n++)r+=Dr(e[n].color,1);return(r/=i)<.4}return!1}(t)},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(t){this._darkMode=t},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(t){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},t.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},t.prototype.flush=function(){this._flush(!1)},t.prototype._flush=function(t){var e,r=li();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var i=li();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-r})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},t.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},t.prototype.clearAnimation=function(){this.animation.clear()},t.prototype.getWidth=function(){return this.painter.getWidth()},t.prototype.getHeight=function(){return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},t.prototype.on=function(t,e,r){return this.handler.on(t,e,r),this},t.prototype.off=function(t,e){this.handler.off(t,e)},t.prototype.trigger=function(t,e){this.handler.trigger(t,e)},t.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof hn&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},t.prototype.dispose=function(){var t;this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,t=this.id,delete un[t]},t}();function fn(t,e){ln[t]=e}var pn="__zr_style_"+Math.round(10*Math.random()),dn={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},vn={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};dn[pn]=!0;var yn=["z","z2","invisible"],gn=["invisible"],_n=function(t){function e(e){return t.call(this,e)||this}var r;return ft(e,t),e.prototype._init=function(e){for(var r=O(e),i=0;i<r.len
|
|||
|
;/*!node_modules/echarts/node_modules/zrender/lib/core/platform.js*/
|
|||
|
amis.define("2c5457d",(function(e,r,t,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.setPlatformAPI=r.platformApi=r.DEFAULT_TEXT_WIDTH_MAP=r.DEFAULT_FONT=r.DEFAULT_FONT_FAMILY=r.DEFAULT_FONT_SIZE=void 0,r.DEFAULT_FONT_SIZE=12,r.DEFAULT_FONT_FAMILY="sans-serif",r.DEFAULT_FONT=r.DEFAULT_FONT_SIZE+"px "+r.DEFAULT_FONT_FAMILY;var L,a;r.DEFAULT_TEXT_WIDTH_MAP=function(e){var r={};if("undefined"==typeof JSON)return r;for(var t=0;t<e.length;t++){var n=String.fromCharCode(t+32),L=(e.charCodeAt(t)-20)/100;r[n]=L}return r}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),r.platformApi={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(e,t){if(!L){var n=r.platformApi.createCanvas();L=n&&n.getContext("2d")}if(L)return a!==t&&(a=L.font=t||r.DEFAULT_FONT),L.measureText(e);e=e||"",t=t||r.DEFAULT_FONT;var F=/^([0-9]*?)px$/.exec(t),T=+(F&&F[1])||r.DEFAULT_FONT_SIZE,o=0;if(t.indexOf("mono")>=0)o=T*e.length;else for(var f=0;f<e.length;f++){var _=r.DEFAULT_TEXT_WIDTH_MAP[e[f]];o+=null==_?T:_*T}return{width:o}},loadImage:function(e,r,t){var n=new Image;return n.onload=r,n.onerror=t,n.src=e,n}},r.setPlatformAPI=function(e){for(var t in r.platformApi)e[t]&&(r.platformApi[t]=e[t])}}));
|
|||
|
;/*!node_modules/echarts/node_modules/zrender/lib/core/util.js*/
|
|||
|
amis.define("d5fdc8c",(function(r,t,e,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RADIAN_TO_DEGREE=t.noop=t.hasOwn=t.disableUserSelect=t.createObject=t.concatArray=t.createHashMap=t.HashMap=t.isPrimitive=t.setAsPrimitive=t.trim=t.assert=t.normalizeCssArray=t.slice=t.retrieve3=t.retrieve2=t.retrieve=t.eqNaN=t.isRegExp=t.isImagePatternObject=t.isGradientObject=t.isDom=t.isTypedArray=t.isBuiltInObject=t.isObject=t.isNumber=t.isStringSafe=t.isString=t.isFunction=t.isArray=t.curry=t.bind=t.keys=t.find=t.filter=t.reduce=t.map=t.each=t.isArrayLike=t.mixin=t.inherits=t.indexOf=t.createCanvas=t.defaults=t.extend=t.mergeAll=t.merge=t.clone=t.logError=t.guid=void 0;var i=r("2c5457d"),o=A(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(r,t){return r["[object "+t+"]"]=!0,r}),{}),a=A(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(r,t){return r["[object "+t+"Array]"]=!0,r}),{}),u=Object.prototype.toString,c=Array.prototype,f=c.forEach,l=c.filter,s=c.slice,p=c.map,y=function(){}.constructor,h=y?y.prototype:null,v="__proto__",g=2311;function d(r){if(null==r||"object"!=typeof r)return r;var t=r,e=u.call(r);if("[object Array]"===e){if(!I(r)){t=[];for(var n=0,i=r.length;n<i;n++)t[n]=d(r[n])}}else if(a[e]){if(!I(r)){var c=r.constructor;if(c.from)t=c.from(r);else{t=new c(r.length);for(n=0,i=r.length;n<i;n++)t[n]=r[n]}}}else if(!o[e]&&!I(r)&&!S(r))for(var f in t={},r)r.hasOwnProperty(f)&&f!==v&&(t[f]=d(r[f]));return t}function b(r,t,e){if(!_(t)||!_(r))return e?d(t):r;for(var n in t)if(t.hasOwnProperty(n)&&n!==v){var i=r[n],o=t[n];!_(o)||!_(i)||E(o)||E(i)||S(o)||S(i)||x(o)||x(i)||I(o)||I(i)?!e&&n in r||(r[n]=d(t[n])):b(i,o,e)}return r}function m(r,t){if(Object.assign)Object.assign(r,t);else for(var e in t)t.hasOwnProperty(e)&&e!==v&&(r[e]=t[e]);return r}function O(r,t,e){for(var n=w(t),i=0;i<n.length;i++){var o=n[i];(e?null!=t[o]:null==r[o])&&(r[o]=t[o])}return r}function j(r,t,e){if(r&&t)if(r.forEach&&r.forEach===f)r.forEach(t,e);else if(r.length===+r.length)for(var n=0,i=r.length;n<i;n++)t.call(e,r[n],n,r);else for(var o in r)r.hasOwnProperty(o)&&t.call(e,r[o],o,r)}function A(r,t,e,n){if(r&&t){for(var i=0,o=r.length;i<o;i++)e=t.call(n,e,r[i],i,r);return e}}function w(r){if(!r)return[];if(Object.keys)return Object.keys(r);var t=[];for(var e in r)r.hasOwnProperty(e)&&t.push(e);return t}function E(r){return Array.isArray?Array.isArray(r):"[object Array]"===u.call(r)}function P(r){return"function"==typeof r}function _(r){var t=typeof r;return"function"===t||!!r&&"object"===t}function x(r){return!!o[u.call(r)]}function S(r){return"object"==typeof r&&"number"==typeof r.nodeType&&"object"==typeof r.ownerDocument}function C(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return s.apply(r,t)}t.guid=function(){return g++},t.logError=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];"undefined"!=typeof console&&console.error.apply(console,r)},t.clone=d,t.merge=b,t.mergeAll=function(r,t){for(var e=r[0],n=1,i=r.length;n<i;n++)e=b(e,r[n],t);return e},t.extend=m,t.defaults=O,t.createCanvas=i.platformApi.createCanvas,t.indexOf=function(r,t){if(r){if(r.indexOf)return r.indexOf(t);for(var e=0,n=r.length;e<n;e++)if(r[e]===t)return e}return-1},t.inherits=function(r,t){var e=r.prototype;function n(){}for(var i in n.prototype=t.prototype,r.prototype=new n,e)e.hasOwnProperty(i)&&(r.prototype[i]=e[i]);r.prototype.constructor=r,r.superClass=t},t.mixin=function(r,t,e){if(r="prototype"in r?r.prototype:r,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(t),i=0;i<n.length;i++){var o=n[i];"constructor"!==o&&(e?null!=t[o]:null==r[o])&&(r[o]=t[o])}else O(r,t,e)},t.isArrayLike=function(r){return!!r&&("string"!=typeof r&&"number"==typeof r.length)},t.each=j,t.map=function(r,t,e){if(!r)return[];if(!t)return C(r);if(r.map&&r.map===p)return r.map(t,e);for(var n=[],i=0,o=r.length;i<o;i++)n.push(t.call(e,r[i],i,r));return n},t.reduce=A,t.filter=function(r,t,e){if(!r)return[];if(!t)r
|
|||
|
;/*!node_modules/echarts/dist/echarts.js*/
|
|||
|
amis.define("096dd51",(function(t,e,n,i){!function(t,r){"object"==typeof e&&void 0!==n?r(e):"function"==typeof i&&i.amd?i(["exports"],r):r((t="undefined"!=typeof globalThis?globalThis:t||self).echarts={})}(this,(function(t){"use strict";
|
|||
|
/*! *****************************************************************************
|
|||
|
Copyright (c) Microsoft Corporation.
|
|||
|
|
|||
|
Permission to use, copy, modify, and/or distribute this software for any
|
|||
|
purpose with or without fee is hereby granted.
|
|||
|
|
|||
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|||
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|||
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|||
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|||
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|||
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|||
|
PERFORMANCE OF THIS SOFTWARE.
|
|||
|
***************************************************************************** */var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},e(t,n)};function n(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}var i=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},r=new function(){this.browser=new i,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};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(r.wxa=!0,r.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?r.worker=!0:"undefined"==typeof navigator?(r.node=!0,r.svgSupported=!0):function(t,e){var n=e.browser,i=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);i&&(n.firefox=!0,n.version=i[1]);r&&(n.ie=!0,n.version=r[1]);o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18);a&&(n.weChat=!0);e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!=typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}(navigator.userAgent,r);var o="sans-serif",a="12px sans-serif";var s,l,u=function(t){var e={};if("undefined"==typeof JSON)return e;for(var n=0;n<t.length;n++){var i=String.fromCharCode(n+32),r=(t.charCodeAt(n)-20)/100;e[i]=r}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),h={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(t,e){if(!s){var n=h.createCanvas();s=n&&n.getContext("2d")}if(s)return l!==e&&(l=s.font=e||a),s.measureText(t);t=t||"";var i=/^([0-9]*?)px$/.exec(e=e||a),r=+(i&&i[1])||12,o=0;if(e.indexOf("mono")>=0)o=r*t.length;else for(var c=0;c<t.length;c++){var p=u[t[c]];o+=null==p?r:p*r}return{width:o}},loadImage:function(t,e,n){var i=new Image;return i.onload=e,i.onerror=n,i.src=t,i}};function c(t){for(var e in h)t[e]&&(h[e]=t[e])}var p=V(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(t,e){return t["[object "+e+"]"]=!0,t}),{}),d=V(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(t,e){return t["[object "+e+"Array]"]=!0,t}),{}),f=Object.prototype.toString,g=Array.prototype,y=g.forEach,v=g.filter,m=g.slice,x=g.map,_=function(){}.constructor,b=_?_.prototype:null,w="__proto__",S=2311;function M(){return S++}function I(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!=typeof console&&console.error.apply(console,t)}function T(t){if(null==t||"object"!=typeof t)return t;var e=t,n=f.call(t);if("[object Array]"===n){if(!pt(t)){e=[];for(var i=0,r=t.length;i<r;i++)e[i]=T(t[i])}}else if(d[n]){if(!pt(t)){var o=t.constructor;if(o.from)e=o.from(t);else{e=new o(t.length);for(i=0,r=t.length;i<r;i++)e[i]=t[i]}}}else if(!p[n]&&!pt(t)&&!J(t))for(var a in e={},t)t.hasOwnProperty(a)&&a!==w&&(e[a]=T(t[a]));return e}function C(t,e,n){if(!q(e)||!q(t))return n?T(e):t;for(var i in e)if(e.hasOwnProperty(i)&&i!==w){var r=t[i],o=e[i];!q(o)||!q(r)||U(o)||U(r)||J(o)||J(r)||K(o)||K(r)||pt(o)||pt(r)?!n&&i in t||(t[i]=T(e[i])):C(r,o,n)}return t}function D(t,e){for(var n=t[0],i=1,r=t.len
|
|||
|
/*!
|
|||
|
* ZRender, a high performance 2d drawing library.
|
|||
|
*
|
|||
|
* Copyright (c) 2013, Baidu Inc.
|
|||
|
* All rights reserved.
|
|||
|
*
|
|||
|
* LICENSE
|
|||
|
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
|
|||
|
*/
|
|||
|
var Or={},Rr={};var Nr=function(){function t(t,e,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var o=new tn,a=n.renderer||"canvas";if(Or[a]||(a=G(Or)[0]),!Or[a])throw new Error("Renderer '"+a+"' is not imported. Please import it first.");n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var s=new Or[a](e,o,n,t),l=n.ssr||s.ssrOnly;this.storage=o,this.painter=s;var u,h=r.node||r.worker||l?null:new Ji(s.getViewportRoot(),s.root),c=n.useCoarsePointer;(null==c||"auto"===c?r.touchEventsSupported:!!c)&&(u=rt(n.pointerSize,44)),this.handler=new Ge(o,s,h,s.root,u),this.animation=new Ni({stage:{update:l?null:function(){return i._flush(!0)}}}),l||this.animation.start()}return t.prototype.add=function(t){t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh()},t.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(!t)return!1;if("string"==typeof t)return ni(t,1)<.4;if(t.colorStops){for(var e=t.colorStops,n=0,i=e.length,r=0;r<i;r++)n+=ni(e[r].color,1);return(n/=i)<.4}return!1}(t)},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(t){this._darkMode=t},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(t){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},t.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},t.prototype.flush=function(){this._flush(!1)},t.prototype._flush=function(t){var e,n=Pi();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var i=Pi();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},t.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},t.prototype.clearAnimation=function(){this.animation.clear()},t.prototype.getWidth=function(){return this.painter.getWidth()},t.prototype.getHeight=function(){return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this.handler.off(t,e)},t.prototype.trigger=function(t,e){this.handler.trigger(t,e)},t.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof Pr&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},t.prototype.dispose=function(){var t;this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,t=this.id,delete Rr[t]},t}();function Er(t,e){var n=new Nr(M(),t,e);return Rr[n.id]=n,n}function zr(t,e){Or[t]=e}var Vr=Object.freeze({__proto__:null,init:Er,dispose:function(t){t.dispose()},disposeAll:function(){for(var t in Rr)Rr.hasOwnProperty(t)&&Rr[t].dispose();Rr={}},getInstance:function(t){return Rr[t]},registerPainter:zr,version:"5.4.0"}),Br=1e-4;function Fr(t,e,n,i){var r=e[0],o=e[1],a=n[0],s=n[1],l=o-r,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(i)if(l>0){if(t<=r)r
|
|||
|
;/*!node_modules/echarts/node_modules/tslib/tslib.js*/
|
|||
|
amis.define("a8bb89a",(function(t,e,r,n){
|
|||
|
/*! *****************************************************************************
|
|||
|
Copyright (c) Microsoft Corporation.
|
|||
|
|
|||
|
Permission to use, copy, modify, and/or distribute this software for any
|
|||
|
purpose with or without fee is hereby granted.
|
|||
|
|
|||
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|||
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|||
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|||
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|||
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|||
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|||
|
PERFORMANCE OF THIS SOFTWARE.
|
|||
|
***************************************************************************** */
|
|||
|
var o,a,i,c,u,f,l,s,y,p,b,h,d,v,_,w,m,O,j,g,P,S,x,E;!function(t){var e="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:{};function o(t,r){return t!==e&&("function"==typeof Object.create?Object.defineProperty(t,"__esModule",{value:!0}):t.__esModule=!0),function(e,n){return t[e]=r?r(e,n):n}}"function"==typeof n&&n.amd?n("tslib",["exports"],(function(r){t(o(e,o(r)))})):"object"==typeof r&&"object"==typeof r.exports?t(o(e,o(r.exports))):t(o(e))}((function(t){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])};o=function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)},a=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},i=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r},c=function(t,e,r,n){var o,a=arguments.length,i=a<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(i=(a<3?o(i):a>3?o(e,r,i):o(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i},u=function(t,e){return function(r,n){e(r,n,t)}},f=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},l=function(t,e,r,n){return new(r||(r=Promise))((function(o,a){function i(t){try{u(n.next(t))}catch(t){a(t)}}function c(t){try{u(n.throw(t))}catch(t){a(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(i,c)}u((n=n.apply(t,e||[])).next())}))},s=function(t,e){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}},y=function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||E(e,t,r)},E=Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]},p=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},b=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,a=r.call(t),i=[];try{for(;(void 0===e||e-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error
|
|||
|
;/*!node_modules/echarts/extension/dataTool/gexf.js*/
|
|||
|
amis.define("1ca0ef0",(function(e,t,r,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0;var n=e("a8bb89a").__importStar(e("d5fdc8c"));function o(e,t){return e?n.map(u(e,"node"),(function(e){var r={id:l(e,"id"),name:l(e,"label"),itemStyle:{normal:{}}},a=s(e,"viz:size"),n=s(e,"viz:position"),o=s(e,"viz:color"),i=s(e,"attvalues");if(a&&(r.symbolSize=parseFloat(l(a,"value"))),n&&(r.x=parseFloat(l(n,"x")),r.y=parseFloat(l(n,"y"))),o&&(r.itemStyle.normal.color="rgb("+[0|l(o,"r"),0|l(o,"g"),0|l(o,"b")].join(",")+")"),i){var f=u(i,"attvalue");r.attributes={};for(var c=0;c<f.length;c++){var d=f[c],g=l(d,"for"),p=l(d,"value"),v=t[g];if(v){switch(v.type){case"integer":case"long":p=parseInt(p,10);break;case"float":case"double":p=parseFloat(p);break;case"boolean":p="true"===p.toLowerCase()}r.attributes[g]=p}}}return r})):[]}function i(e){return e?n.map(u(e,"edge"),(function(e){var t={id:l(e,"id"),name:l(e,"label"),source:l(e,"source"),target:l(e,"target"),lineStyle:{normal:{}}},r=t.lineStyle.normal,a=s(e,"viz:thickness"),n=s(e,"viz:color");return a&&(r.width=parseFloat(a.getAttribute("value"))),n&&(r.color="rgb("+[0|l(n,"r"),0|l(n,"g"),0|l(n,"b")].join(",")+")"),t})):[]}function l(e,t){return e.getAttribute(t)}function s(e,t){for(var r=e.firstChild;r;){if(1===r.nodeType&&r.nodeName.toLowerCase()===t.toLowerCase())return r;r=r.nextSibling}return null}function u(e,t){for(var r=e.firstChild,a=[];r;)r.nodeName.toLowerCase()===t.toLowerCase()&&a.push(r),r=r.nextSibling;return a}t.parse=function(e){var t;if(!(t="string"==typeof e?(new DOMParser).parseFromString(e,"text/xml"):e)||t.getElementsByTagName("parsererror").length)return null;var r=s(t,"gexf");if(!r)return null;for(var a,f=s(r,"graph"),c=(a=s(f,"attributes"))?n.map(u(a,"attribute"),(function(e){return{id:l(e,"id"),title:l(e,"title"),type:l(e,"type")}})):[],d={},g=0;g<c.length;g++)d[c[g].id]=c[g];return{nodes:o(s(f,"nodes"),d),links:i(s(f,"edges"))}}}));
|
|||
|
;/*!node_modules/echarts/extension/dataTool/prepareBoxplotData.js*/
|
|||
|
amis.define("ef492c6",(function(e,t,r,n){"use strict";function a(e,t){var r=(e.length-1)*t+1,n=Math.floor(r),a=+e[n-1],u=r-n;return u?a+u*(e[n]-a):a}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){for(var r,n=[],u=[],o=[],i=(t=t||{}).boundIQR,l="none"===i||0===i,f=0;f<e.length;f++){o.push(f+"");var s=((r=e[f].slice()).sort((function(e,t){return e-t})),r),h=a(s,.25),c=a(s,.5),v=a(s,.75),d=s[0],g=s[s.length-1],p=(null==i?1.5:i)*(v-h),M=l?d:Math.max(d,h-p),b=l?g:Math.min(g,v+p);n.push([M,h,c,v,b]);for(var m=0;m<s.length;m++){var x=s[m];if(x<M||x>b){var y=[f,x];"vertical"===t.layout&&y.reverse(),u.push(y)}}}return{boxData:n,outliers:u,axisData:o}}}));
|
|||
|
;/*!node_modules/echarts/extension/dataTool/index.js*/
|
|||
|
amis.define("25cad0b",(function(a,e,o,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.prepareBoxplotData=e.gexf=e.version=void 0;var r=a("a8bb89a"),d=r.__importStar(a("096dd51")),i=r.__importStar(a("1ca0ef0"));e.gexf=i;var p=r.__importDefault(a("ef492c6"));e.prepareBoxplotData=p.default,e.version="1.0.0",d.dataTool&&(d.dataTool.version=e.version,d.dataTool.gexf=i,d.dataTool.prepareBoxplotData=p.default)}));
|
|||
|
;/*!node_modules/echarts/extension/bmap/BMapCoordSys.js*/
|
|||
|
amis.define("d103ffb",(function(t,e,o,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=t("096dd51");function a(t,e){this._bmap=t,this.dimensions=["lng","lat"],this._mapOffset=[0,0],this._api=e,this._projection=new BMap.MercatorProjection}function p(t,e){return e=e||[0,0],r.util.map([0,1],(function(o){var n=e[o],i=t[o]/2,r=[],a=[];return r[o]=n-i,a[o]=n+i,r[1-o]=a[1-o]=e[1-o],Math.abs(this.dataToPoint(r)[o]-this.dataToPoint(a)[o])}),this)}a.prototype.type="bmap",a.prototype.dimensions=["lng","lat"],a.prototype.setZoom=function(t){this._zoom=t},a.prototype.setCenter=function(t){this._center=this._projection.lngLatToPoint(new BMap.Point(t[0],t[1]))},a.prototype.setMapOffset=function(t){this._mapOffset=t},a.prototype.getBMap=function(){return this._bmap},a.prototype.dataToPoint=function(t){var e=new BMap.Point(t[0],t[1]),o=this._bmap.pointToOverlayPixel(e),n=this._mapOffset;return[o.x-n[0],o.y-n[1]]},a.prototype.pointToData=function(t){var e=this._mapOffset;return[(t=this._bmap.overlayPixelToPoint({x:t[0]+e[0],y:t[1]+e[1]})).lng,t.lat]},a.prototype.getViewRect=function(){var t=this._api;return new r.graphic.BoundingRect(0,0,t.getWidth(),t.getHeight())},a.prototype.getRoamTransform=function(){return r.matrix.create()},a.prototype.prepareCustoms=function(){var t=this.getViewRect();return{coordSys:{type:"bmap",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:r.util.bind(this.dataToPoint,this),size:r.util.bind(p,this)}}},a.prototype.convertToPixel=function(t,e,o){return this.dataToPoint(o)},a.prototype.convertFromPixel=function(t,e,o){return this.pointToData(o)},a.dimensions=a.prototype.dimensions,a.create=function(t,e){var o,n=e.getDom();return t.eachComponent("bmap",(function(t){var p,s=e.getZr().painter,c=s.getViewportRoot();if("undefined"==typeof BMap)throw new Error("BMap api is not loaded");if(i=i||function(){function t(t){this._root=t}return t.prototype=new BMap.Overlay,t.prototype.initialize=function(t){return t.getPanes().labelPane.appendChild(this._root),this._root},t.prototype.draw=function(){},t}(),o)throw new Error("Only one bmap component can exist");if(!t.__bmap){var f=n.querySelector(".ec-extension-bmap");f&&(c.style.left="0px",c.style.top="0px",n.removeChild(f)),(f=document.createElement("div")).className="ec-extension-bmap",f.style.cssText="position:absolute;width:100%;height:100%",n.appendChild(f);var u=t.get("mapOptions");u&&delete(u=r.util.clone(u)).mapType,p=t.__bmap=new BMap.Map(f,u);var m=new i(c);p.addOverlay(m),s.getViewportRootOffset=function(){return{offsetLeft:0,offsetTop:0}}}p=t.__bmap;var h=t.get("center"),d=t.get("zoom");if(h&&d){var l=p.getCenter(),y=p.getZoom();if(t.centerOrZoomChanged([l.lng,l.lat],y)){var g=new BMap.Point(h[0],h[1]);p.centerAndZoom(g,d)}}(o=new a(p,e)).setMapOffset(t.__mapOffset||[0,0]),o.setZoom(d),o.setCenter(h),t.coordinateSystem=o})),t.eachSeries((function(t){"bmap"===t.get("coordinateSystem")&&(t.coordinateSystem=o)})),o&&[o]},e.default=a}));
|
|||
|
;/*!node_modules/echarts/extension/bmap/BMapModel.js*/
|
|||
|
amis.define("aa3ed59",(function(e,t,o,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("a8bb89a").__importStar(e("096dd51"));t.default=a.extendComponentModel({type:"bmap",getBMap:function(){return this.__bmap},setCenterAndZoom:function(e,t){this.option.center=e,this.option.zoom=t},centerOrZoomChanged:function(e,t){var o,n,a=this.option;return o=e,n=a.center,!(o&&n&&o[0]===n[0]&&o[1]===n[1]&&t===a.zoom)},defaultOption:{center:[104.114129,37.550339],zoom:5,mapStyle:{},mapStyleV2:{},mapOptions:{},roam:!1}})}));
|
|||
|
;/*!node_modules/echarts/extension/bmap/BMapView.js*/
|
|||
|
amis.define("e1d55c3",(function(e,t,o,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("a8bb89a").__importStar(e("096dd51"));function i(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}t.default=a.extendComponentView({type:"bmap",render:function(e,t,o){var n=!0,r=e.getBMap(),l=o.getZr().painter.getViewportRoot(),d=e.coordinateSystem,s=function(t,a){if(!n){var i=l.parentNode.parentNode.parentNode,r=[-parseInt(i.style.left,10)||0,-parseInt(i.style.top,10)||0],s=l.style,m=r[0]+"px",p=r[1]+"px";s.left!==m&&(s.left=m),s.top!==p&&(s.top=p),d.setMapOffset(r),e.__mapOffset=r,o.dispatchAction({type:"bmapRoam",animation:{duration:0}})}};function m(){n||o.dispatchAction({type:"bmapRoam",animation:{duration:0}})}r.removeEventListener("moving",this._oldMoveHandler),r.removeEventListener("moveend",this._oldMoveHandler),r.removeEventListener("zoomend",this._oldZoomEndHandler),r.addEventListener("moving",s),r.addEventListener("moveend",s),r.addEventListener("zoomend",m),this._oldMoveHandler=s,this._oldZoomEndHandler=m;var p=e.get("roam");p&&"scale"!==p?r.enableDragging():r.disableDragging(),p&&"move"!==p?(r.enableScrollWheelZoom(),r.enableDoubleClickZoom(),r.enablePinchToZoom()):(r.disableScrollWheelZoom(),r.disableDoubleClickZoom(),r.disablePinchToZoom());var v=e.__mapStyle,c=e.get("mapStyle")||{},f=JSON.stringify(c);JSON.stringify(v)!==f&&(i(c)||r.setMapStyle(a.util.clone(c)),e.__mapStyle=JSON.parse(f));var y=e.__mapStyle2,_=e.get("mapStyleV2")||{},g=JSON.stringify(_);JSON.stringify(y)!==g&&(i(_)||r.setMapStyleV2(a.util.clone(_)),e.__mapStyle2=JSON.parse(g)),n=!1}})}));
|
|||
|
;/*!node_modules/echarts/extension/bmap/bmap.js*/
|
|||
|
amis.define("4d54486",(function(e,t,a,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0;var n=e("a8bb89a"),r=n.__importStar(e("096dd51")),i=n.__importDefault(e("d103ffb"));e("aa3ed59"),e("e1d55c3"),r.registerCoordinateSystem("bmap",i.default),r.registerAction({type:"bmapRoam",event:"bmapRoam",update:"updateLayout"},(function(e,t){t.eachComponent("bmap",(function(e){var t=e.getBMap(),a=t.getCenter();e.setCenterAndZoom([a.lng,a.lat],t.getZoom())}))})),t.version="1.0.0"}));
|
|||
|
;/*!node_modules/echarts-stat/dist/ecStat.js*/
|
|||
|
amis.define("7583ae2",(function(n,r,t,e){var o,i;o=this,i=function(){return function(n){var r={};function t(e){if(r[e])return r[e].exports;var o=r[e]={exports:{},id:e,loaded:!1};return n[e].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}return t.m=n,t.c=r,t.p="",t(0)}([function(n,r,t){var e;void 0===(e=function(n){return{clustering:t(1),regression:t(5),statistics:t(6),histogram:t(15),transform:{regression:t(18),histogram:t(21),clustering:t(22)}}}.call(r,t,r,n))||(n.exports=e)},function(n,r,t){var e;void 0===(e=function(n){var r=t(2),e=r.dataPreprocess,o=r.normalizeDimensions,i=t(3),a=t(4),u=i.size,s=i.sumOfColumn,l=i.sum,f=i.zeros,c=(a=t(4)).isNumber,h=Math.pow,p={SINGLE:"single",MULTIPLE:"multiple"};function v(n,r,t){for(var e,o,i,a,u=f(n.length,2),s=function(n,r){for(var t=f(n,r.length),e=0;e<r.length;e++)for(var o=r[e],i=0;i<n;i++)t[i][e]=o.min+o.span*Math.random();return t}(r,x(n,t.dimensions)),l=!0;l;){l=!1;for(var c=0;c<n.length;c++){e=1/0,o=-1;for(var h=0;h<r;h++)(i=g(n[c],s[h],t))<e&&(e=i,o=h);u[c][0]!==o&&(l=!0),u[c][0]=o,u[c][1]=e}for(c=0;c<r;c++){for(a=[],h=0;h<u.length;h++)u[h][0]===c&&a.push(n[h]);s[c]=d(a,t)}}return{centroids:s,clusterAssigned:u}}function d(n,r){for(var t,e,o=[],i=0;i<r.dimensions.length;i++){var a=r.dimensions[i];t=0;for(var u=0;u<n.length;u++)t+=n[u][a];e=t/n.length,o.push(e)}return o}function m(n,r){var t=r.outputCentroidDimensions;if(r.outputType===p.SINGLE&&null!=t)for(var e=n.data,o=n.centroids,i=0;i<e.length;i++)for(var a=e[i],u=o[a[r.outputClusterIndexDimension]],s=Math.min(u.length,t.length),l=0;l<s;l++)a[t[l]]=u[l]}function g(n,r,t){for(var e=0,o=t.dimensions,i=t.rawExtents,a=0;a<o.length;a++){var u=i[a].span;if(u){var s=(n[o[a]]-r[a])/u;e+=h(s,2)}}return e}function x(n,r){for(var t=[],e=r.length,o=0;o<e;o++)t.push({min:1/0,max:-1/0});for(o=0;o<n.length;o++)for(var i=n[o],a=0;a<e;a++){var u=t[a],s=i[r[a]];u.min>s&&(u.min=s),u.max<s&&(u.max=s)}for(o=0;o<e;o++)t[o].span=t[o].max-t[o].min;return t}return{OutputType:p,hierarchicalKMeans:function(n,r,t){var i=(c(r)?{clusterCount:r,stepByStep:t}:r)||{clusterCount:2},h=i.clusterCount;if(!(h<2)){var M,y,w,b=function(n,r){var t=u(n);if(t.length<1)throw new Error("The input data of clustering should be two-dimension array.");for(var e=t[1],i=[],s=0;s<e;s++)i.push(s);var l=o(r.dimensions,i),f=r.outputType||p.MULTIPLE,c=r.outputClusterIndexDimension;if(f===p.SINGLE&&!a.isNumber(c))throw new Error("outputClusterIndexDimension is required as a number.");var h=x(n,l);return{dimensions:l,rawExtents:h,outputType:f,outputClusterIndexDimension:c,outputCentroidDimensions:r.outputCentroidDimensions}}(n,i),D=b.outputType===p.SINGLE,E=e(n,{dimensions:b.dimensions}),N=f(E.length,2);if(D){M=[];var C=b.outputClusterIndexDimension;y=function(n,r){M[n][C]=r},w=function(n){return M[n][C]};for(var I=0;I<E.length;I++)M.push(E[I].slice()),V(I,0),y(I,0)}else y=function(n,r){N[n][0]=r},w=function(n){return N[n][0]};var A,O,z,S,q,P,L=d(E,b),T=[L];for(I=0;I<E.length;I++)V(I,g(E[I],L,b));var j=1,F={data:M,centroids:T,isEnd:!1};if(D||(F.clusterAssment=N),i.stepByStep)F.next=function(){return G(),m(F,b),F};else for(;G(),!F.isEnd;);return m(F,b),F}function V(n,r){N[n][1]=r}function G(){if(j<h){var n,r,t;A=1/0;for(var e=0;e<T.length;e++){O=[],z=[];for(var o=0;o<E.length;o++)w(o)===e?O.push(E[o]):z.push(N[o][1]);S=v(O,2,b),q=s(S.clusterAssigned,1),P=l(z),q+P<A&&(A=P+q,n=e,r=S.centroids,t=S.clusterAssigned)}for(o=0;o<t.length;o++)0===t[o][0]?t[o][0]=n:1===t[o][0]&&(t[o][0]=T.length);for(T[n]=r[0],T.push(r[1]),o=0,e=0;o<E.length&&e<t.length;o++)w(o)===n&&(y(o,t[e][0]),V(o,t[e++][1]));var i=[];if(!D){for(o=0;o<T.length;o++)for(i[o]=[],e=0;e<E.length;e++)w(e)===o&&i[o].push(E[e]);F.pointsInCluster=i}j++}else F.isEnd=!0}}}}.call(r,t,r,n))||(n.exports=e)},function(n,r,t){var e;void 0===(e=function(n){var r=t(3),e=r.isArray,o=r.size,i=t(4).isNumber;return{normalizeDimensions:function(n,r){return"number"==typeof n?[n]:null==n?r:n},dataPreprocess:function(n,r){var t=(r=r||{}).dimensions,a={};if(null!=t)for(var u=0;u<t.length;u++)a[t[u]]=!0;var s=r.toOneDimensionArray?t?t[0]:
|
|||
|
;/*!node_modules/echarts-stat/index.js*/
|
|||
|
amis.define("504c7dc",(function(e,c,i,n){i.exports=e("7583ae2")}));
|
|||
|
;/*!node_modules/echarts-wordcloud/dist/echarts-wordcloud.js*/
|
|||
|
amis.define("ae6974c",(function(t,e,a,i){var r,n;r=self,n=function(t){return function(){"use strict";var e={"./index.js":
|
|||
|
/*!******************************!*\
|
|||
|
!*** ./index.js + 4 modules ***!
|
|||
|
\******************************/function(t,e,a){a.r(e);var i=a("echarts/lib/echarts");i.extendSeriesModel({type:"series.wordCloud",visualStyleAccessPath:"textStyle",visualStyleMapper:function(t){return{fill:t.get("color")}},visualDrawType:"fill",optionUpdated:function(){var t=this.option;t.gridSize=Math.max(Math.floor(t.gridSize),4)},getInitialData:function(t,e){var a=i.helper.createDimensions(t.data,{coordDimensions:["value"]}),r=new i.List(a,this);return r.initData(t.data),r},defaultOption:{maskImage:null,shape:"circle",keepAspect:!1,left:"center",top:"center",width:"70%",height:"80%",sizeRange:[12,60],rotationRange:[-90,90],rotationStep:45,gridSize:8,drawOutOfBound:!1,shrinkToFit:!1,textStyle:{fontWeight:"normal"}}}),i.extendChartView({type:"wordCloud",render:function(t,e,a){var r=this.group;r.removeAll();var n=t.getData(),o=t.get("gridSize");t.layoutInstance.ondraw=function(e,a,s,l){var d=n.getItemModel(s),u=d.getModel("textStyle"),f=new i.graphic.Text({style:i.helper.createTextStyle(u),scaleX:1/l.info.mu,scaleY:1/l.info.mu,x:(l.gx+l.info.gw/2)*o,y:(l.gy+l.info.gh/2)*o,rotation:l.rot});f.setStyle({x:l.info.fillTextOffsetX,y:l.info.fillTextOffsetY+.5*a,text:e,verticalAlign:"middle",fill:n.getItemVisual(s,"style").fill,fontSize:a}),r.add(f),n.setItemGraphicEl(s,f),f.ensureState("emphasis").style=i.helper.createTextStyle(d.getModel(["emphasis","textStyle"]),{state:"emphasis"}),f.ensureState("blur").style=i.helper.createTextStyle(d.getModel(["blur","textStyle"]),{state:"blur"}),i.helper.enableHoverEmphasis(f,d.get(["emphasis","focus"]),d.get(["emphasis","blurScope"])),f.stateTransition={duration:t.get("animation")?t.get(["stateAnimation","duration"]):0,easing:t.get(["stateAnimation","easing"])},f.__highDownDispatcher=!0},this._model=t},remove:function(){this.group.removeAll(),this._model.layoutInstance.dispose()},dispose:function(){this._model.layoutInstance.dispose()}}),
|
|||
|
/*!
|
|||
|
* wordcloud2.js
|
|||
|
* http://timdream.org/wordcloud2.js/
|
|||
|
*
|
|||
|
* Copyright 2011 - 2019 Tim Guan-tin Chien and contributors.
|
|||
|
* Released under the MIT license
|
|||
|
*/
|
|||
|
window.setImmediate||(window.setImmediate=window.msSetImmediate||window.webkitSetImmediate||window.mozSetImmediate||window.oSetImmediate||function(){if(!window.postMessage||!window.addEventListener)return null;var t=[void 0],e="zero-timeout-message";return window.addEventListener("message",(function(a){if("string"==typeof a.data&&a.data.substr(0,e.length)===e){a.stopImmediatePropagation();var i=parseInt(a.data.substr(e.length),36);t[i]&&(t[i](),t[i]=void 0)}}),!0),window.clearImmediate=function(e){t[e]&&(t[e]=void 0)},function(a){var i=t.length;return t.push(a),window.postMessage(e+i.toString(36),"*"),i}}()||function(t){window.setTimeout(t,0)}),window.clearImmediate||(window.clearImmediate=window.msClearImmediate||window.webkitClearImmediate||window.mozClearImmediate||window.oClearImmediate||function(t){window.clearTimeout(t)});var r=function(){var t=document.createElement("canvas");if(!t||!t.getContext)return!1;var e=t.getContext("2d");return!!(e&&e.getImageData&&e.fillText&&Array.prototype.some&&Array.prototype.push)}(),n=function(){if(r){for(var t,e,a=document.createElement("canvas").getContext("2d"),i=20;i;){if(a.font=i.toString(10)+"px sans-serif",a.measureText("W").width===t&&a.measureText("m").width===e)return i+1;t=a.measureText("W").width,e=a.measureText("m").width,i--}return 0}}(),o=function(t){for(var e,a,i=t.length;i;)e=Math.floor(Math.random()*i),a=t[--i],t[i]=t[e],t[e]=a;return t},s={},l=function(t,e){if(r){var a=Math.floor(Math.random()*Date.now());Array.isArray(t)||(t=[t]),t.forEach((function(e,a){if("string"==typeof e){if(t[a]=document.getElementById(e),!t[a])throw new Error("The element id specified is not found.")}else if(!e.tagName&&!e.appendChild)throw new Error("You must pass valid HTML elements, or ID of the element.")}));var i={list:[],fontFamily:'"Trebuchet MS", "Heiti TC", "微軟正黑體", "Arial Unicode MS", "Droid Fallback Sans", sans-serif',fontWeight:"normal",color:"random-dark",minSize:0,weightFactor:1,clearCanvas:!0,backgroundColor:"#fff",gridSize:8,drawOutOfBound:!1,shrinkToFit:!1,origin:null,drawMask:!1,maskColor:"rgba(255,0,0,0.3)",maskGapWidth:.3,layoutAnimation:!0,wait:0,abortThreshold:0,abort:function(){},minRotation:-Math.PI/2,maxRotation:Math.PI/2,rotationStep:.1,shuffle:!0,rotateRatio:.1,shape:"circle",ellipticity:.65,classes:null,hover:null,click:null};if(e)for(var l in e)l in i&&(i[l]=e[l]);if("function"!=typeof i.weightFactor){var d=i.weightFactor;i.weightFactor=function(t){return t*d}}if("function"!=typeof i.shape)switch(i.shape){case"circle":default:i.shape="circle";break;case"cardioid":i.shape=function(t){return 1-Math.sin(t)};break;case"diamond":i.shape=function(t){var e=t%(2*Math.PI/4);return 1/(Math.cos(e)+Math.sin(e))};break;case"square":i.shape=function(t){return Math.min(1/Math.abs(Math.cos(t)),1/Math.abs(Math.sin(t)))};break;case"triangle-forward":i.shape=function(t){var e=t%(2*Math.PI/3);return 1/(Math.cos(e)+Math.sqrt(3)*Math.sin(e))};break;case"triangle":case"triangle-upright":i.shape=function(t){var e=(t+3*Math.PI/2)%(2*Math.PI/3);return 1/(Math.cos(e)+Math.sqrt(3)*Math.sin(e))};break;case"pentagon":i.shape=function(t){var e=(t+.955)%(2*Math.PI/5);return 1/(Math.cos(e)+.726543*Math.sin(e))};break;case"star":i.shape=function(t){var e=(t+.955)%(2*Math.PI/10);return(t+.955)%(2*Math.PI/5)-2*Math.PI/10>=0?1/(Math.cos(2*Math.PI/10-e)+3.07768*Math.sin(2*Math.PI/10-e)):1/(Math.cos(e)+3.07768*Math.sin(e))}}i.gridSize=Math.max(Math.floor(i.gridSize),4);var u,f,c,h,m,g,w,v,p=i.gridSize,y=p-i.maskGapWidth,x=Math.abs(i.maxRotation-i.minRotation),M=Math.min(i.maxRotation,i.minRotation),S=i.rotationStep;switch(i.color){case"random-dark":w=function(){return L(10,50)};break;case"random-light":w=function(){return L(50,90)};break;default:"function"==typeof i.color&&(w=i.color)}"function"==typeof i.fontWeight&&(v=i.fontWeight);var b=null;"function"==typeof i.classes&&(b=i.classes);var I,T=!1,k=[],C=function(t){var e,a,i=t.currentTarget,r=i.getBoundingClientRect();t.touches?(e=t.touches[0].clientX,a=t.touches[0].clientY):(e=t.clientX,a=t.clientY);var n=e-r.left,o=a-r.top,s=Math
|
|||
|
/*!**************************!*\
|
|||
|
!*** external "echarts" ***!
|
|||
|
\**************************/function(e){e.exports=t}},a={};function i(t){if(a[t])return a[t].exports;var r=a[t]={exports:{}};return e[t](r,r.exports,i),r.exports}return i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i("./index.js")}()},"object"==typeof e&&"object"==typeof a?a.exports=n(t("096dd51")):"function"==typeof i&&i.amd?i(["echarts"],n):"object"==typeof e?e["echarts-wordcloud"]=n(t("096dd51")):r["echarts-wordcloud"]=n(r.echarts)}));
|