diff --git a/.gitignore b/.gitignore index 58d20f1..7353d02 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,5 @@ .DS_Store node_modules/ -admin/ npm-debug.log* yarn-debug.log* yarn-error.log* diff --git a/admin/favicon.ico b/admin/favicon.ico new file mode 100644 index 0000000..34b63ac Binary files /dev/null and b/admin/favicon.ico differ diff --git a/admin/index.html b/admin/index.html new file mode 100644 index 0000000..91f94fc --- /dev/null +++ b/admin/index.html @@ -0,0 +1 @@ +
i||d+cr&&(r+=a);var f=Math.atan2(h,u);return f<0&&(f+=a),f>=o&&f<=r||f+a>=o&&f+a<=r}},INO0:function(t,e,i){var n=i("pq8T");function a(t){var e=t.itemStyle||(t.itemStyle={}),i=e.emphasis||(e.emphasis={}),a=t.label||t.label||{},r=a.normal||(a.normal={}),s={normal:1,emphasis:1};n.each(a,function(t,e){s[e]||o(r,e)||(r[e]=t)}),i.label&&!o(a,"emphasis")&&(a.emphasis=i.label,delete i.label)}function o(t,e){return t.hasOwnProperty(e)}t.exports=function(t){var e=t&&t.timeline;n.isArray(e)||(e=e?[e]:[]),n.each(e,function(t){t&&function(t){var e=t.type,i={number:"value",time:"time"};if(i[e]&&(t.axisType=i[e],delete t.type),a(t),o(t,"controlPosition")){var r=t.controlStyle||(t.controlStyle={});o(r,"position")||(r.position=t.controlPosition),"none"!==r.position||o(r,"show")||(r.show=!1,delete r.position),delete t.controlPosition}n.each(t.data||[],function(t){n.isObject(t)&&!n.isArray(t)&&(!o(t,"value")&&o(t,"name")&&(t.value=t.name),a(t))})}(t)})}},IfTX:function(t,e,i){var n=i("Y3z2").circularLayout;t.exports=function(t){t.eachSeriesByType("graph",function(t){"circular"===t.get("layout")&&n(t)})}},Ipcx:function(t,e,i){var n=i("pq8T"),a=i("036i"),o=i("6XJn"),r=a.linearMap;function s(t,e){var i=(t[1]-t[0])/e/2;t[0]+=i,t[1]-=i}var l=[0,1],u=function(t,e,i){this.dim=t,this.scale=e,this._extent=i||[0,0],this.inverse=!1,this.onBand=!1,this._labelInterval};u.prototype={constructor:u,contain:function(t){var e=this._extent,i=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=i&&t<=n},containData:function(t){return this.contain(this.dataToCoord(t))},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(t){return a.getPixelPrecision(t||this.scale.getExtent(),this._extent)},setExtent:function(t,e){var i=this._extent;i[0]=t,i[1]=e},dataToCoord:function(t,e){var i=this._extent,n=this.scale;return t=n.normalize(t),this.onBand&&"ordinal"===n.type&&s(i=i.slice(),n.count()),r(t,l,i,e)},coordToData:function(t,e){var i=this._extent,n=this.scale;this.onBand&&"ordinal"===n.type&&s(i=i.slice(),n.count());var a=r(t,i,l,e);return this.scale.scale(a)},pointToData:function(t,e){},getTicksCoords:function(t){if(this.onBand&&!t){for(var e=this.getBands(),i=[],a=0;a
":"")+o.join("
"))}})},this),r.reverse(),r=r.join("
");var h=e.position;this._showOrMove(u,function(){this._updateContentNotChangedOnAxis(t)?this._updatePosition(u,h,o[0],o[1],this._tooltipContent,l):this._showTooltipContent(u,r,l,Math.random(),o[0],o[1],h)})},_showSeriesItemTooltip:function(t,e,i){var n=this._ecModel,a=e.seriesIndex,o=n.getSeriesByIndex(a),r=e.dataModel||o,s=e.dataIndex,l=e.dataType,u=r.getData(),h=b([u.getItemModel(s),r,o&&(o.coordinateSystem||{}).model,this._tooltipModel]),c=h.get("trigger");if(null==c||"item"===c){var d=r.getDataParams(s,l),p=r.formatTooltip(s,!1,l),f="item_"+r.name+"_"+s;this._showOrMove(h,function(){this._showTooltipContent(h,p,d,f,t.offsetX,t.offsetY,t.position,t.target)}),i({type:"showTip",dataIndexInside:s,dataIndex:u.getRawIndex(s),seriesIndex:a,from:this.uid})}},_showComponentItemTooltip:function(t,e,i){var n=e.tooltip;if("string"==typeof n){n={content:n,formatter:n}}var a=new d(n,this._tooltipModel,this._ecModel),o=a.get("content"),r=Math.random();this._showOrMove(a,function(){this._showTooltipContent(a,o,a.get("formatterParams")||{},r,t.offsetX,t.offsetY,t.position,e)}),i({type:"showTip",from:this.uid})},_showTooltipContent:function(t,e,i,n,a,o,r,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent,h=t.get("formatter");r=r||t.get("position");var c=e;if(h&&"string"==typeof h)c=s.formatTpl(h,i,!0);else if("function"==typeof h){var d=m(function(e,n){e===this._ticket&&(u.setContent(n),this._updatePosition(t,r,a,o,u,i,l))},this);this._ticket=n,c=h(i,n,d)}u.setContent(c),u.show(t),this._updatePosition(t,r,a,o,u,i,l)}},_updatePosition:function(t,e,i,n,o,r,s){var l=this._api.getWidth(),u=this._api.getHeight();e=e||t.get("position");var h=o.getSize(),d=t.get("align"),p=t.get("verticalAlign"),f=s&&s.getBoundingRect().clone();if(s&&f.applyTransform(s.transform),"function"==typeof e&&(e=e([i,n],r,o.el,f,{viewSize:[l,u],contentSize:h.slice()})),a.isArray(e))i=y(e[0],l),n=y(e[1],u);else if(a.isObject(e)){e.width=h[0],e.height=h[1];var g=c.getLayoutRect(e,{width:l,height:u});i=g.x,n=g.y,d=null,p=null}else if("string"==typeof e&&s){var m=function(t,e,i){var n=i[0],a=i[1],o=0,r=0,s=e.width,l=e.height;switch(t){case"inside":o=e.x+s/2-n/2,r=e.y+l/2-a/2;break;case"top":o=e.x+s/2-n/2,r=e.y-a-5;break;case"bottom":o=e.x+s/2-n/2,r=e.y+l+5;break;case"left":o=e.x-n-5,r=e.y+l/2-a/2;break;case"right":o=e.x+s+5,r=e.y+l/2-a/2}return[o,r]}(e,f,h);i=m[0],n=m[1]}else{m=function(t,e,i,n,a,o,r){var s=S(i),l=s.width,u=s.height;null!=o&&(t+l+o>n?t-=l+o:t+=o);null!=r&&(e+u+r>a?e-=u+r:e+=r);return[t,e]}(i,n,o.el,l,u,d?null:20,p?null:20);i=m[0],n=m[1]}if(d&&(i-=M(d)?h[0]/2:"right"===d?h[0]:0),p&&(n-=M(p)?h[1]/2:"bottom"===p?h[1]:0),t.get("confine")){m=function(t,e,i,n,a){var o=S(i),r=o.width,s=o.height;return t=Math.min(t+r,n)-r,e=Math.min(e+s,a)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}(i,n,o.el,l,u);i=m[0],n=m[1]}o.moveTo(i,n)},_updateContentNotChangedOnAxis:function(t){var e=this._lastDataByCoordSys,i=!!e&&e.length===t.length;return i&&v(e,function(e,n){var a=e.dataByAxis||{},o=(t[n]||{}).dataByAxis||[];(i&=a.length===o.length)&&v(a,function(t,e){var n=o[e]||{},a=t.seriesDataIndices||[],r=n.seriesDataIndices||[];(i&=t.value===n.value&&t.axisType===n.axisType&&t.axisId===n.axisId&&a.length===r.length)&&v(a,function(t,e){var n=r[e];i&=t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex})})}),this._lastDataByCoordSys=t,!!i},_hide:function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},dispose:function(t,e){o.node||(this._tooltipContent.hide(),p.unregister("itemTooltip",e))}});function b(t){for(var e=t.pop();t.length;){var i=t.pop();i&&(i instanceof d&&(i=i.get("tooltip",!0)),"string"==typeof i&&(i={formatter:i}),e=new d(i,e,e.ecModel))}return e}function w(t,e){return t.dispatchAction||a.bind(e.dispatchAction,e)}function S(t){var e=t.clientWidth,i=t.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var n=document.defaultView.getComputedStyle(t);n&&(e+=parseInt(n.paddingLeft,10)+parseInt(n.paddingRight,10)+parseInt(n.borderLeftWidth,10)+parseInt(n.borderRightWidth,10),i+=parseInt(n.paddingTop,10)+parseInt(n.paddingBottom,10)+parseInt(n.borderTopWidth,10)+parseInt(n.borderBottomWidth,10))}return{width:e,height:i}}function M(t){return"center"===t||"middle"===t}t.exports=_},L1IB:function(t,e,i){var n=i("ugOh"),a=i("pq8T"),o=i("yk+f"),r=i("isF1");i("wUwb"),i("46RB"),i("cpPG");n.extendComponentView({type:"parallel",render:function(t,e,i){this._model=t,this._api=i,this._handlers||(this._handlers={},a.each(s,function(t,e){i.getZr().on(e,this._handlers[e]=a.bind(t,this))},this)),o.createOrUpdate(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},dispose:function(t,e){a.each(this._handlers,function(t,i){e.getZr().off(i,t)}),this._handlers=null},_throttledDispatchExpand:function(t){this._dispatchExpand(t)},_dispatchExpand:function(t){t&&this._api.dispatchAction(a.extend({type:"parallelAxisExpand"},t))}});var s={mousedown:function(t){l(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var e=this._mouseDownPoint;if(l(this,"click")&&e){var i=[t.offsetX,t.offsetY];if(Math.pow(e[0]-i[0],2)+Math.pow(e[1]-i[1],2)>5)return;var n=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==n.behavior&&this._dispatchExpand({axisExpandWindow:n.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&l(this,"mousemove")){var e=this._model,i=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),n=i.behavior;"jump"===n&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===n?null:{axisExpandWindow:i.axisExpandWindow,animation:"jump"===n&&null})}}};function l(t,e){var i=t._model;return i.get("axisExpandable")&&i.get("axisExpandTriggerOn")===e}n.registerPreprocessor(r)},LNKy:function(t,e,i){var n=i("pq8T");t.exports=function(t){var e=[];n.each(t.series,function(t){t&&"map"===t.type&&(e.push(t),t.map=t.map||t.mapType,n.defaults(t,t.mapLocation))})}},LT21:function(t,e,i){i("DTUV"),i("efjw"),i("GZqp"),i("njw2"),i("ahPG"),i("ss3P"),i("YkfD"),i("F34J"),i("p7np")},LUPm:function(t,e,i){var n=i("ugOh"),a=i("9BjN"),o=n.extendComponentView({type:"axisPointer",render:function(t,e,i){var n=e.getComponent("tooltip"),o=t.get("triggerOn")||n&&n.get("triggerOn")||"mousemove|click";a.register("axisPointer",i,function(t,e,i){"none"!==o&&("leave"===t||o.indexOf(t)>=0)&&i({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},remove:function(t,e){a.unregister(e.getZr(),"axisPointer"),o.superApply(this._model,"remove",arguments)},dispose:function(t,e){a.unregister("axisPointer",e),o.superApply(this._model,"dispose",arguments)}}),r=o;t.exports=r},La0z:function(t,e,i){var n=i("pq8T"),a=i("tPSd"),o=i("KDQp"),r=i("MreC");function s(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var l=function(){this._roots=[],this._displayList=[],this._displayListLen=0};l.prototype={constructor:l,traverse:function(t,e){for(var i=0;i0;)r=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),r+=a,l+=a}else{for(s=a+1;ls&&(l=s);var u=r;r=a-l,l=a-u}for(r++;rs&&(l=s);var u=r;r=a-l,l=a-u}else{for(s=n-a;l=0;)r=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),r+=a,l+=a}for(r++;r