create-ssnode-cli 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -2
- package/index.js +0 -1
- package/package.json +2 -2
- package/templates/backend/package.json +1 -1
- package/templates/backend/scripts/build.cjs +67 -1
- package/templates/root/AGENTS.md +1 -1
- package/templates/root/README.md +6 -6
- package/templates/web/dist/assets/{404-f80ef771.js → 404-63aa5037.js} +1 -1
- package/templates/web/dist/assets/{404-legacy-3002ee98.js → 404-legacy-494c4093.js} +1 -1
- package/templates/web/dist/assets/{AuthLayout-f07f2dff.js → AuthLayout-07e9f5d2.js} +1 -1
- package/templates/web/dist/assets/{AuthLayout-legacy-635887dd.js → AuthLayout-legacy-1b94749f.js} +1 -1
- package/templates/web/dist/assets/Background-13406ae6.js +1 -0
- package/templates/web/dist/assets/Background-90a49ee7.css +1 -0
- package/templates/web/dist/assets/Background-legacy-35ca5eef.js +1 -0
- package/templates/web/dist/assets/{Screen-2126fd8d.js → Screen-4310b270.js} +1 -1
- package/templates/web/dist/assets/{Screen-legacy-e1974f1b.js → Screen-legacy-d5f1a31f.js} +1 -1
- package/templates/web/dist/assets/{ScreenChartOption-cc9d0192.js → ScreenChartOption-a6927065.js} +1 -1
- package/templates/web/dist/assets/{ScreenChartOption-legacy-b1b2d49d.js → ScreenChartOption-legacy-b4c04ce9.js} +1 -1
- package/templates/web/dist/assets/{api-21ca288f.js → api-83561db2.js} +1 -1
- package/templates/web/dist/assets/{api-legacy-b464070b.js → api-legacy-8e15c853.js} +1 -1
- package/templates/web/dist/assets/{base-8cbac341.js → base-5bf689c3.js} +1 -1
- package/templates/web/dist/assets/{base-legacy-ee9fb316.js → base-legacy-d3323277.js} +1 -1
- package/templates/web/dist/assets/{child-10cea360.js → child-87a05c88.js} +1 -1
- package/templates/web/dist/assets/{child-legacy-5af47aba.js → child-legacy-d4d0277d.js} +1 -1
- package/templates/web/dist/assets/{component-ae0df581.js → component-1fcd971d.js} +1 -1
- package/templates/web/dist/assets/{component-legacy-7824b5dc.js → component-legacy-943364e8.js} +1 -1
- package/templates/web/dist/assets/{demo-1b5e36be.js → demo-14e7532b.js} +1 -1
- package/templates/web/dist/assets/{demo-legacy-e12d2ac9.js → demo-legacy-da0d2bfa.js} +1 -1
- package/templates/web/dist/assets/{echarts-vendor-fdb2c14f.js → echarts-vendor-d6ce4b9c.js} +1 -1
- package/templates/web/dist/assets/{echarts-vendor-legacy-e99e5121.js → echarts-vendor-legacy-79597af6.js} +1 -1
- package/templates/web/dist/assets/{grandson-d5883b90.js → grandson-4f840b4d.js} +1 -1
- package/templates/web/dist/assets/{grandson-legacy-10cd2476.js → grandson-legacy-527ae016.js} +1 -1
- package/templates/web/dist/assets/{index-9fbd51da.js → index-268d1ac1.js} +1 -1
- package/templates/web/dist/assets/{index-5dbcad00.js → index-3448ef35.js} +1 -1
- package/templates/web/dist/assets/{index-6faaa6d8.js → index-3a2983ce.js} +1 -1
- package/templates/web/dist/assets/{index-25ea283a.js → index-5e7dfdb5.js} +1 -1
- package/templates/web/dist/assets/{index-16f6b85c.js → index-71f600d4.js} +1 -1
- package/templates/web/dist/assets/{index-687d6cfe.js → index-9120f091.js} +1 -1
- package/templates/web/dist/assets/{index-3a9a0a97.js → index-af61b79b.js} +1 -1
- package/templates/web/dist/assets/{index-fbf4ee3f.js → index-b75948c0.js} +1 -1
- package/templates/web/dist/assets/{index-5dbae75a.js → index-c1ee2fb3.js} +1 -1
- package/templates/web/dist/assets/{index-8f6fba9f.js → index-e03d0352.js} +1 -1
- package/templates/web/dist/assets/{index-2e42b180.js → index-e4c9d42a.js} +1 -1
- package/templates/web/dist/assets/{index-463d9205.js → index-f57c9694.js} +1 -1
- package/templates/web/dist/assets/{index-legacy-07d00151.js → index-legacy-06643c96.js} +1 -1
- package/templates/web/dist/assets/{index-legacy-ced5a7f1.js → index-legacy-081b881d.js} +1 -1
- package/templates/web/dist/assets/{index-legacy-e9af81d8.js → index-legacy-0983aa0f.js} +1 -1
- package/templates/web/dist/assets/{index-legacy-38c170dc.js → index-legacy-19a8ac10.js} +1 -1
- package/templates/web/dist/assets/{index-legacy-9be704da.js → index-legacy-35c1de97.js} +1 -1
- package/templates/web/dist/assets/{index-legacy-3d221bb6.js → index-legacy-376a4633.js} +1 -1
- package/templates/web/dist/assets/{index-legacy-0f01787c.js → index-legacy-3a393896.js} +1 -1
- package/templates/web/dist/assets/{index-legacy-ba034322.js → index-legacy-548904e6.js} +1 -1
- package/templates/web/dist/assets/{index-legacy-f3e49a4e.js → index-legacy-5f22daba.js} +1 -1
- package/templates/web/dist/assets/{index-legacy-dd62c9e7.js → index-legacy-8bba1715.js} +1 -1
- package/templates/web/dist/assets/{index-legacy-8c7d1ee7.js → index-legacy-aebba3cb.js} +1 -1
- package/templates/web/dist/assets/{index-legacy-95da3338.js → index-legacy-b03d819e.js} +1 -1
- package/templates/web/dist/assets/{parent-e7114c1b.js → parent-ad02830b.js} +1 -1
- package/templates/web/dist/assets/{parent-legacy-9e493d04.js → parent-legacy-163f567f.js} +1 -1
- package/templates/web/dist/assets/{vendor-e7ea3a11.js → vendor-2663c204.js} +13 -13
- package/templates/web/dist/assets/{vendor-legacy-a62a28c9.js → vendor-legacy-2df23db3.js} +6 -6
- package/templates/web/dist/index.html +3 -3
- package/templates/web/src/layouts/Background.module.less +5 -3
- package/templates/web/dist/assets/Background-63ce83a2.js +0 -1
- package/templates/web/dist/assets/Background-b264d337.css +0 -1
- package/templates/web/dist/assets/Background-legacy-a34b521f.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
System.register(["./vendor-legacy-a62a28c9.js"],(function(t,e){"use strict";var n;return{setters:[t=>{n=t._}],execute:function(){t({a:function(t){t.registerChartView(hw),t.registerSeriesModel(Fx),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,B(zm,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,function(t){return{seriesType:t,plan:Df(),reset:function(t){if(Fm(t)){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),r=n.getOtherAxis(i),o=e.getDimensionIndex(e.mapDimension(r.dim)),a=e.getDimensionIndex(e.mapDimension(i.dim)),s=t.get("showBackground",!0),l=e.mapDimension(r.dim),u=e.getCalculationInfo("stackResultDimension"),h=lm(e,l)&&!!e.getCalculationInfo("stackedOnSeries"),c=r.isHorizontal(),p=function(t,e){return e.toGlobalCoord(e.dataToCoord("log"===e.type?1:0))}(0,r),d=Vm(t),f=t.get("barMinHeight")||0,g=u&&e.getDimensionIndex(u),y=e.getLayout("size"),v=e.getLayout("offset");return{progress:function(t,e){for(var i,r=t.count,l=d&&Lm(3*r),u=d&&s&&Lm(3*r),m=d&&Lm(r),_=n.master.getRect(),x=c?_.width:_.height,w=e.getStore(),b=0;null!=(i=t.next());){var S=w.get(h?g:o,i),M=w.get(a,i),T=p,I=void 0;h&&(I=+S-w.get(o,i));var C=void 0,D=void 0,k=void 0,A=void 0;if(c){var P=n.dataToPoint([S,M]);h&&(T=n.dataToPoint([I,M])[0]),C=T,D=P[1]+v,k=P[0]-T,A=y,Math.abs(k)<f&&(k=(k<0?-1:1)*f)}else P=n.dataToPoint([M,S]),h&&(T=n.dataToPoint([M,I])[1]),C=P[0]+v,D=T,k=y,A=P[1]-T,Math.abs(A)<f&&(A=(A<=0?-1:1)*f);d?(l[b]=C,l[b+1]=D,l[b+2]=c?k:A,u&&(u[b]=c?_.x:C,u[b+1]=c?D:_.y,u[b+2]=x),m[i]=i):e.setItemLayout(i,{x:C,y:D,width:k,height:A}),b+=3}d&&e.setLayout({largePoints:l,largeDataIndices:m,largeBackgroundPoints:u,valueAxisHorizontal:c})}}}}}}("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,Nx("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},(function(e){t.sortInfo&&e.axis.setCategorySortInfo(t.sortInfo)}))}))},b:function(t){w_(Ob),t.registerSeriesModel(Aw),t.registerChartView(Ew),t.registerLayout(Lx("scatter"))},c:function(t){t.registerChartView(Sw),t.registerSeriesModel(Dw),function(t,e){function n(e,n){var i=[];return e.eachComponent({mainType:"series",subType:t,query:n},(function(t){i.push(t.seriesIndex)})),i}P([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],(function(t){e(t[0],(function(e,i,r){e=I({},e),r.dispatchAction(I(e,{type:t[1],seriesIndex:n(i,e)}))}))}))}("pie",t.registerAction),t.registerLayout(B(gw,"pie")),t.registerProcessor(function(t){return{seriesType:t,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(n&&n.length){var i=t.getData();i.filterSelf((function(t){for(var e=i.getName(t),r=0;r<n.length;r++)if(!n[r].isSelected(e))return!1;return!0}))}}}}("pie")),t.registerProcessor(function(t){return{seriesType:t,reset:function(t,e){var n=t.getData();n.filterSelf((function(t){var e=n.mapDimension("value"),i=n.get(e,t);return!(W(i)&&!isNaN(i)&&i<0)}))}}}("pie"))},d:function(t){w_(Ob),w_(jS)},e:function(t){w_(jS),t.registerComponentModel(uM),t.registerComponentView(PM),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},pt),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},pt)},f:function(t){w_(yT),w_(TT)},g:function(t){t.registerComponentModel(LM),t.registerComponentView(OM)},h:function(t){t.registerComponentModel(IT),t.registerComponentView(CT)},i:function(t){t.registerChartView(Px),t.registerSeriesModel(j_),t.registerLayout(Lx("line",!0)),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,Nx("line"))},j:jS,k:function(t){t.registerComponentModel(tM),t.registerComponentView(iM),t.registerPreprocessor((function(t){var e=t.graphic;z(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])}))},l:function(t){t.registerComponentModel(qM),t.registerComponentView(nT),t.registerPreprocessor((function(t){(function(t,e){if(!t)return!1;for(var n=z(t)?t:[t],i=0;i<n.length;i++)if(n[i]&&n[i][e])return!0;return!1})(t.series,"markLine")&&(t.markLine=t.markLine||{})}))},m:function(t){t.registerPainter("canvas",NT)},n:function(t,e,n){var i=!(n&&n.ssr);if(i){var r=function(t){return fv[function(t,e){return t.getAttribute?t.getAttribute(e):t[e]}(t,vv)]}(t);if(r)return r}var o=new rv(t,e,n);return o.id="ec_"+yv++,fv[o.id]=o,i&&Zr(t,vv,o.id),Jy(o),Ty.trigger("afterinit",o),o},u:w_});var e=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},i=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?(i.wxa=!0,i.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?i.worker=!0:"undefined"==typeof navigator||0===navigator.userAgent.indexOf("Node.js")?(i.node=!0,i.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,i);const r=i;var o,a,s="12px sans-serif",l=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"),u={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(t,e){if(!o){var n=u.createCanvas();o=n&&n.getContext("2d")}if(o)return a!==e&&(a=o.font=e||s),o.measureText(t);t=t||"";var i=/(\d+)px/.exec(e=e||s),r=i&&+i[1]||12,h=0;if(e.indexOf("mono")>=0)h=r*t.length;else for(var c=0;c<t.length;c++){var p=l[t[c]];h+=null==p?r:p*r}return{width:h}},loadImage:function(t,e,n){var i=new Image;return i.onload=e,i.onerror=n,i.src=t,i}},h=O(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(t,e){return t["[object "+e+"]"]=!0,t}),{}),c=O(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(t,e){return t["[object "+e+"Array]"]=!0,t}),{}),p=Object.prototype.toString,d=Array.prototype,f=d.forEach,g=d.filter,y=d.slice,v=d.map,m=function(){}.constructor,_=m?m.prototype:null,x="__proto__",w=2311;function b(){return w++}function S(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!=typeof console&&console.error.apply(console,t)}function M(t){if(null==t||"object"!=typeof t)return t;var e=t,n=p.call(t);if("[object Array]"===n){if(!rt(t)){e=[];for(var i=0,r=t.length;i<r;i++)e[i]=M(t[i])}}else if(c[n]){if(!rt(t)){var o=t.constructor;if(o.from)e=o.from(t);else for(e=new o(t.length),i=0,r=t.length;i<r;i++)e[i]=t[i]}}else if(!h[n]&&!rt(t)&&!Y(t))for(var a in e={},t)t.hasOwnProperty(a)&&a!==x&&(e[a]=M(t[a]));return e}function T(t,e,n){if(!G(e)||!G(t))return n?M(e):t;for(var i in e)if(e.hasOwnProperty(i)&&i!==x){var r=t[i],o=e[i];!G(o)||!G(r)||z(o)||z(r)||Y(o)||Y(r)||U(o)||U(r)||rt(o)||rt(r)?!n&&i in t||(t[i]=M(e[i])):T(r,o,n)}return t}function I(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==x&&(t[n]=e[n]);return t}function C(t,e,n){for(var i=N(e),r=0;r<i.length;r++){var o=i[r];(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}return t}function D(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n}return-1}function k(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),r=0;r<i.length;r++){var o=i[r];"constructor"!==o&&(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}else C(t,e,n)}function A(t){return!!t&&"string"!=typeof t&&"number"==typeof t.length}function P(t,e,n){if(t&&e)if(t.forEach&&t.forEach===f)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,r=t.length;i<r;i++)e.call(n,t[i],i,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function L(t,e,n){if(!t)return[];if(!e)return Q(t);if(t.map&&t.map===v)return t.map(e,n);for(var i=[],r=0,o=t.length;r<o;r++)i.push(e.call(n,t[r],r,t));return i}function O(t,e,n,i){if(t&&e){for(var r=0,o=t.length;r<o;r++)n=e.call(i,n,t[r],r,t);return n}}function R(t,e,n){if(!t)return[];if(!e)return Q(t);if(t.filter&&t.filter===g)return t.filter(e,n);for(var i=[],r=0,o=t.length;r<o;r++)e.call(n,t[r],r,t)&&i.push(t[r]);return i}function N(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}var E=_&&F(_.bind)?_.call.bind(_.bind):function(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(){return t.apply(e,n.concat(y.call(arguments)))}};function B(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(y.call(arguments)))}}function z(t){return Array.isArray?Array.isArray(t):"[object Array]"===p.call(t)}function F(t){return"function"==typeof t}function V(t){return"string"==typeof t}function H(t){return"[object String]"===p.call(t)}function W(t){return"number"==typeof t}function G(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function U(t){return!!h[p.call(t)]}function X(t){return!!c[p.call(t)]}function Y(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function Z(t){return null!=t.colorStops}function q(t){return t!=t}function j(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,i=t.length;n<i;n++)if(null!=t[n])return t[n]}function K(t,e){return null!=t?t:e}function $(t,e,n){return null!=t?t:null!=e?e:n}function Q(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return y.apply(t,e)}function J(t){if("number"==typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function tt(t,e){if(!t)throw new Error(e)}function et(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var nt="__ec_primitive__";function it(t){t[nt]=!0}function rt(t){return t[nt]}var ot=function(){function t(){this.data={}}return t.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},t.prototype.has=function(t){return this.data.hasOwnProperty(t)},t.prototype.get=function(t){return this.data[t]},t.prototype.set=function(t,e){return this.data[t]=e,this},t.prototype.keys=function(){return N(this.data)},t.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},t}(),at="function"==typeof Map,st=function(){function t(e){var n=z(e);this.data=at?new Map:new ot;var i=this;function r(t,e){n?i.set(t,e):i.set(e,t)}e instanceof t?e.each(r):e&&P(e,r)}return t.prototype.hasKey=function(t){return this.data.has(t)},t.prototype.get=function(t){return this.data.get(t)},t.prototype.set=function(t,e){return this.data.set(t,e),e},t.prototype.each=function(t,e){this.data.forEach((function(n,i){t.call(e,n,i)}))},t.prototype.keys=function(){var t=this.data.keys();return at?Array.from(t):t},t.prototype.removeKey=function(t){this.data.delete(t)},t}();function lt(t){return new st(t)}function ut(t,e){var n;if(Object.create)n=Object.create(t);else{var i=function(){};i.prototype=t,n=new i}return e&&I(n,e),n}function ht(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function ct(t,e){return t.hasOwnProperty(e)}function pt(){}var dt=180/Math.PI;function ft(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function gt(t){return[t[0],t[1]]}function yt(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function vt(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function mt(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function _t(t,e){var n=function(t){return Math.sqrt(function(t){return t[0]*t[0]+t[1]*t[1]}(t))}(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function xt(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var wt=xt,bt=function(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])};function St(t,e,n,i){return t[0]=e[0]+i*(n[0]-e[0]),t[1]=e[1]+i*(n[1]-e[1]),t}function Mt(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t}function Tt(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function It(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var Ct=function(t,e){this.target=t,this.topTarget=e&&e.topTarget},Dt=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Ct(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,i=t.offsetY,r=n-this._x,o=i-this._y;this._x=n,this._y=i,e.drift(r,o,t),this.handler.dispatchToElement(new Ct(e,t),"drag",t.event);var a=this.handler.findHover(n,i,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.handler.dispatchToElement(new Ct(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new Ct(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new Ct(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Ct(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}();const kt=Dt;var At=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"==typeof e&&(i=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),r[t]||(r[t]=[]);for(var a=0;a<r[t].length;a++)if(r[t][a].h===n)return this;var s={h:n,query:e,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},l=r[t].length-1,u=r[t][l];return u&&u.callAtLast?r[t].splice(l,0,s):r[t].push(s),this},t.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},t.prototype.off=function(t,e){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var i=[],r=0,o=n[t].length;r<o;r++)n[t][r].h!==e&&i.push(n[t][r]);n[t]=i}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];return this},t.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var o=e.length,a=i.length,s=0;s<a;s++){var l=i[s];if(!r||!r.filter||null==l.query||r.filter(t,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e)}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var o=e.length,a=e[o-1],s=i.length,l=0;l<s;l++){var u=i[l];if(!r||!r.filter||null==u.query||r.filter(t,u.query))switch(o){case 0:u.h.call(a);break;case 1:u.h.call(a,e[0]);break;case 2:u.h.call(a,e[0],e[1]);break;default:u.h.apply(a,e.slice(1,o-1))}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t}();const Pt=At;var Lt=Math.log(2);function Ot(t,e,n,i,r,o){var a=i+"-"+r,s=t.length;if(o.hasOwnProperty(a))return o[a];if(1===e){var l=Math.round(Math.log((1<<s)-1&~r)/Lt);return t[n][l]}for(var u=i|1<<n,h=n+1;i&1<<h;)h++;for(var c=0,p=0,d=0;p<s;p++){var f=1<<p;f&r||(c+=(d%2?-1:1)*t[n][p]*Ot(t,e-1,h,u,r|f,o),d++)}return o[a]=c,c}function Rt(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],i={},r=Ot(n,8,0,0,0,i);if(0!==r){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*Ot(n,7,0===a?1:0,1<<a,1<<s,i)/r*e[a];return function(t,e,n){var i=e*o[6]+n*o[7]+1;t[0]=(e*o[0]+n*o[1]+o[2])/i,t[1]=(e*o[3]+n*o[4]+o[5])/i}}}var Nt="___zrEVENTSAVED",Et=[];function Bt(t,e,n,i,o){if(e.getBoundingClientRect&&r.domSupported&&!zt(e)){var a=e[Nt]||(e[Nt]={}),s=function(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var i=["left","right"],r=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=o%2,l=(o>>1)%2;a.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[s]+":0",r[l]+":0",i[1-s]+":auto",r[1-l]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}(e,a),l=function(t,e,n){for(var i=n?"invTrans":"trans",r=e[i],o=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var h=t[u].getBoundingClientRect(),c=2*u,p=h.left,d=h.top;a.push(p,d),l=l&&o&&p===o[c]&&d===o[c+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&r?r:(e.srcCoords=a,e[i]=n?Rt(s,a):Rt(a,s))}(s,a,o);if(l)return l(t,n,i),!0}return!1}function zt(t){return"CANVAS"===t.nodeName.toUpperCase()}var Ft=/([&<>"'])/g,Vt={"&":"&","<":"<",">":">",'"':""","'":"'"};function Ht(t){return null==t?"":(t+"").replace(Ft,(function(t,e){return Vt[e]}))}var Wt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Gt=[],Ut=r.browser.firefox&&+r.browser.version.split(".")[0]<39;function Xt(t,e,n,i){return n=n||{},i?Yt(t,e,n):Ut&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):Yt(t,e,n),n}function Yt(t,e,n){if(r.domSupported&&t.getBoundingClientRect){var i=e.clientX,o=e.clientY;if(zt(t)){var a=t.getBoundingClientRect();return n.zrX=i-a.left,void(n.zrY=o-a.top)}if(Bt(Gt,t,i,o))return n.zrX=Gt[0],void(n.zrY=Gt[1])}n.zrX=n.zrY=0}function Zt(t){return t||window.event}function qt(t,e,n){if(null!=(e=Zt(e)).zrX)return e;var i=e.type;if(i&&i.indexOf("touch")>=0){var r="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];r&&Xt(t,r,e,n)}else{Xt(t,e,e,n);var o=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,i=t.deltaY;return null==n||null==i?e:3*(0!==i?Math.abs(i):Math.abs(n))*(i>0?-1:i<0?1:n>0?-1:1)}(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var a=e.button;return null==e.which&&void 0!==a&&Wt.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}var jt=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},Kt=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},o=0,a=i.length;o<a;o++){var s=i[o],l=Xt(n,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},t.prototype._recognize=function(t){for(var e in Qt)if(Qt.hasOwnProperty(e)){var n=Qt[e](this._track,t);if(n)return n}},t}();function $t(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}var Qt={pinch:function(t,e){var n=t.length;if(n){var i,r=(t[n-1]||{}).points,o=(t[n-2]||{}).points||r;if(o&&o.length>1&&r&&r.length>1){var a=$t(r)/$t(o);!isFinite(a)&&(a=1),e.pinchScale=a;var s=[((i=r)[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2];return e.pinchX=s[0],e.pinchY=s[1],{type:"pinch",target:t[0].target,event:e}}}}};function Jt(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function te(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function ee(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function ne(t,e,n,i){void 0===i&&(i=[0,0]);var r=e[0],o=e[2],a=e[4],s=e[1],l=e[3],u=e[5],h=Math.sin(n),c=Math.cos(n);return t[0]=r*c+s*h,t[1]=-r*h+s*c,t[2]=o*c+l*h,t[3]=-o*h+c*l,t[4]=c*(a-i[0])+h*(u-i[1])+i[0],t[5]=c*(u-i[1])-h*(a-i[0])+i[1],t}function ie(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*i;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*r)*l,t[5]=(o*r-n*s)*l,t):null}var re=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},t.lerp=function(t,e,n,i){var r=1-i;t.x=r*e.x+i*n.x,t.y=r*e.y+i*n.y},t}();const oe=re;var ae=Math.min,se=Math.max,le=new oe,ue=new oe,he=new oe,ce=new oe,pe=new oe,de=new oe,fe=function(){function t(t,e,n,i){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return t.prototype.union=function(t){var e=ae(t.x,this.x),n=ae(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=se(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=se(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,r=[1,0,0,1,0,0];return ee(r,r,[-e.x,-e.y]),function(t,e,n){var i=n[0],r=n[1];t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r}(r,r,[n,i]),ee(r,r,[t.x,t.y]),r},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var i=this,r=i.x,o=i.x+i.width,a=i.y,s=i.y+i.height,l=e.x,u=e.x+e.width,h=e.y,c=e.y+e.height,p=!(o<l||u<r||s<h||c<a);if(n){var d=1/0,f=0,g=Math.abs(o-l),y=Math.abs(u-r),v=Math.abs(s-h),m=Math.abs(c-a),_=Math.min(g,y),x=Math.min(v,m);o<l||u<r?_>f&&(f=_,g<y?oe.set(de,-g,0):oe.set(de,y,0)):_<d&&(d=_,g<y?oe.set(pe,g,0):oe.set(pe,-y,0)),s<h||c<a?x>f&&(f=x,v<m?oe.set(de,0,-v):oe.set(de,0,m)):_<d&&(d=_,v<m?oe.set(pe,0,v):oe.set(pe,0,-m))}return n&&oe.copy(n,p?pe:de),p},t.prototype.contain=function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,i){if(i){if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],o=i[3],a=i[4],s=i[5];return e.x=n.x*r+a,e.y=n.y*o+s,e.width=n.width*r,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}le.x=he.x=n.x,le.y=ce.y=n.y,ue.x=ce.x=n.x+n.width,ue.y=he.y=n.y+n.height,le.transform(i),ce.transform(i),ue.transform(i),he.transform(i),e.x=ae(le.x,ue.x,he.x,ce.x),e.y=ae(le.y,ue.y,he.y,ce.y);var l=se(le.x,ue.x,he.x,ce.x),u=se(le.y,ue.y,he.y,ce.y);e.width=l-e.x,e.height=u-e.y}else e!==n&&t.copy(e,n)},t}();const ge=fe;var ye="silent";function ve(){jt(this.event)}var me=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return n(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(Pt),_e=function(t,e){this.x=t,this.y=e},xe=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],we=new ge(0,0,0,0),be=function(t){function e(e,n,i,r,o){var a=t.call(this)||this;return a._hovered=new _e(0,0),a.storage=e,a.painter=n,a.painterRoot=r,a._pointerSize=o,i=i||new me,a.proxy=null,a.setHandlerProxy(i),a._draggingMgr=new kt(a),a}return n(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(P(xe,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=Te(this,e,n),r=this._hovered,o=r.target;o&&!o.__zr&&(o=(r=this.findHover(r.x,r.y)).target);var a=this._hovered=i?new _e(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new _e(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var r="on"+e,o=function(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:ve}}(e,t,n);i&&(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(e,o),i=i.__hostTarget?i.__hostTarget:i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(t){"function"==typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)})))}},e.prototype.findHover=function(t,e,n){var i=this.storage.getDisplayList(),r=new _e(t,e);if(Me(i,r,t,e,n),this._pointerSize&&!r.target){for(var o=[],a=this._pointerSize,s=a/2,l=new ge(t-s,e-s,a,a),u=i.length-1;u>=0;u--){var h=i[u];h===n||h.ignore||h.ignoreCoarsePointer||h.parent&&h.parent.ignoreCoarsePointer||(we.copy(h.getBoundingRect()),h.transform&&we.applyTransform(h.transform),we.intersect(l)&&o.push(h))}if(o.length)for(var c=Math.PI/12,p=2*Math.PI,d=0;d<s;d+=4)for(var f=0;f<p;f+=c)if(Me(o,r,t+d*Math.cos(f),e+d*Math.sin(f),n),r.target)return r}return r},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new Kt);var n=this._gestureMgr;"start"===e&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),i){var r=i.type;t.gestureEvent=r;var o=new _e;o.target=i.target,this.dispatchToElement(o,r,i.event)}},e}(Pt);function Se(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i=t,r=void 0,o=!1;i;){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(e,n))return!1}i.silent&&(r=!0);var s=i.__hostTarget;i=s||i.parent}return!r||ye}return!1}function Me(t,e,n,i,r){for(var o=t.length-1;o>=0;o--){var a=t[o],s=void 0;if(a!==r&&!a.ignore&&(s=Se(a,n,i))&&(!e.topTarget&&(e.topTarget=a),s!==ye)){e.target=a;break}}}function Te(t,e,n){var i=t.painter;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}P(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){be.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,a=Te(this,r,o);if("mouseup"===t&&a||(i=(n=this.findHover(r,o)).target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||wt(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}));const Ie=be;var Ce=32,De=7;function ke(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){for(;r<n&&i(t[r],t[r-1])<0;)r++;!function(t,e,n){for(n--;e<n;){var i=t[e];t[e++]=t[n],t[n--]=i}}(t,e,r)}else for(;r<n&&i(t[r],t[r-1])>=0;)r++;return r-e}function Ae(t,e,n,i,r){for(i===e&&i++;i<n;i++){for(var o,a=t[i],s=e,l=i;s<l;)r(a,t[o=s+l>>>1])<0?l=o:s=o+1;var u=i-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function Pe(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){for(s=i-r;l<s&&o(t,e[n+r+l])>0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;l<s&&o(t,e[n+r-l])<=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}for(a++;a<l;){var h=a+(l-a>>>1);o(t,e[n+h])>0?a=h+1:l=h}return l}function Le(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){for(s=r+1;l<s&&o(t,e[n+r-l])<0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=i-r;l<s&&o(t,e[n+r+l])>=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;a<l;){var h=a+(l-a>>>1);o(t,e[n+h])<0?l=h:a=h+1}return l}function Oe(t,e){var n,i,r=De,o=0,a=[];function s(s){var l=n[s],u=i[s],h=n[s+1],c=i[s+1];i[s]=u+c,s===o-3&&(n[s+1]=n[s+2],i[s+1]=i[s+2]),o--;var p=Le(t[h],t,l,u,0,e);l+=p,0!=(u-=p)&&0!==(c=Pe(t[l+u-1],t,h,c,c-1,e))&&(u<=c?function(n,i,o,s){var l=0;for(l=0;l<i;l++)a[l]=t[n+l];var u=0,h=o,c=n;if(t[c++]=t[h++],0!=--s)if(1!==i){for(var p,d,f,g=r;;){p=0,d=0,f=!1;do{if(e(t[h],a[u])<0){if(t[c++]=t[h++],d++,p=0,0==--s){f=!0;break}}else if(t[c++]=a[u++],p++,d=0,1==--i){f=!0;break}}while((p|d)<g);if(f)break;do{if(0!==(p=Le(t[h],a,u,i,0,e))){for(l=0;l<p;l++)t[c+l]=a[u+l];if(c+=p,u+=p,(i-=p)<=1){f=!0;break}}if(t[c++]=t[h++],0==--s){f=!0;break}if(0!==(d=Pe(a[u],t,h,s,0,e))){for(l=0;l<d;l++)t[c+l]=t[h+l];if(c+=d,h+=d,0==(s-=d)){f=!0;break}}if(t[c++]=a[u++],1==--i){f=!0;break}g--}while(p>=De||d>=De);if(f)break;g<0&&(g=0),g+=2}if((r=g)<1&&(r=1),1===i){for(l=0;l<s;l++)t[c+l]=t[h+l];t[c+s]=a[u]}else{if(0===i)throw new Error;for(l=0;l<i;l++)t[c+l]=a[u+l]}}else{for(l=0;l<s;l++)t[c+l]=t[h+l];t[c+s]=a[u]}else for(l=0;l<i;l++)t[c+l]=a[u+l]}(l,u,h,c):function(n,i,o,s){var l=0;for(l=0;l<s;l++)a[l]=t[o+l];var u=n+i-1,h=s-1,c=o+s-1,p=0,d=0;if(t[c--]=t[u--],0!=--i)if(1!==s){for(var f=r;;){var g=0,y=0,v=!1;do{if(e(a[h],t[u])<0){if(t[c--]=t[u--],g++,y=0,0==--i){v=!0;break}}else if(t[c--]=a[h--],y++,g=0,1==--s){v=!0;break}}while((g|y)<f);if(v)break;do{if(0!=(g=i-Le(a[h],t,n,i,i-1,e))){for(i-=g,d=1+(c-=g),p=1+(u-=g),l=g-1;l>=0;l--)t[d+l]=t[p+l];if(0===i){v=!0;break}}if(t[c--]=a[h--],1==--s){v=!0;break}if(0!=(y=s-Pe(t[u],a,0,s,s-1,e))){for(s-=y,d=1+(c-=y),p=1+(h-=y),l=0;l<y;l++)t[d+l]=a[p+l];if(s<=1){v=!0;break}}if(t[c--]=t[u--],0==--i){v=!0;break}f--}while(g>=De||y>=De);if(v)break;f<0&&(f=0),f+=2}if((r=f)<1&&(r=1),1===s){for(d=1+(c-=i),p=1+(u-=i),l=i-1;l>=0;l--)t[d+l]=t[p+l];t[c]=a[h]}else{if(0===s)throw new Error;for(p=c-(s-1),l=0;l<s;l++)t[p+l]=a[l]}}else{for(d=1+(c-=i),p=1+(u-=i),l=i-1;l>=0;l--)t[d+l]=t[p+l];t[c]=a[h]}else for(p=c-(s-1),l=0;l<s;l++)t[p+l]=a[l]}(l,u,h,c))}return n=[],i=[],{mergeRuns:function(){for(;o>1;){var t=o-2;if(t>=1&&i[t-1]<=i[t]+i[t+1]||t>=2&&i[t-2]<=i[t]+i[t-1])i[t-1]<i[t+1]&&t--;else if(i[t]>i[t+1])break;s(t)}},forceMergeRuns:function(){for(;o>1;){var t=o-2;t>0&&i[t-1]<i[t+1]&&t--,s(t)}},pushRun:function(t,e){n[o]=t,i[o]=e,o+=1}}}function Re(t,e,n,i){n||(n=0),i||(i=t.length);var r=i-n;if(!(r<2)){var o=0;if(r<Ce)Ae(t,n,i,n+(o=ke(t,n,i,e)),e);else{var a=Oe(t,e),s=function(t){for(var e=0;t>=Ce;)e|=1&t,t>>=1;return t+e}(r);do{if((o=ke(t,n,i,e))<s){var l=r;l>s&&(l=s),Ae(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),r-=o,n+=o}while(0!==r);a.forceMergeRuns()}}}var Ne=1,Ee=4,Be=!1;function ze(){Be||(Be=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Fe(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var Ve=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Fe}return t.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},t.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return!t&&n.length||this.updateDisplayList(e),n},t.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,r=e.length;i<r;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,Re(n,Fe)},t.prototype._updateAndAddDisplayable=function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)e=null;else if(i){e=e?e.slice():[];for(var r=i,o=t;r;)r.parent=o,r.updateTransform(),e.push(r),o=r,r=r.getClipPath()}if(t.childrenRef){for(var a=t.childrenRef(),s=0;s<a.length;s++){var l=a[s];t.__dirty&&(l.__dirty|=Ne),this._updateAndAddDisplayable(l,e,n)}t.__dirty=0}else{var u=t;e&&e.length?u.__clipPaths=e:u.__clipPaths&&u.__clipPaths.length>0&&(u.__clipPaths=[]),isNaN(u.z)&&(ze(),u.z=0),isNaN(u.z2)&&(ze(),u.z2=0),isNaN(u.zlevel)&&(ze(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,n);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,e,n);var p=t.getTextContent();p&&this._updateAndAddDisplayable(p,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);else{var i=D(this._roots,t);i>=0&&this._roots.splice(i,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}();const He=Ve,We=r.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var Ge={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=i*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Ge.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*Ge.bounceIn(2*t):.5*Ge.bounceOut(2*t-1)+.5}};const Ue=Ge;var Xe=Math.pow,Ye=Math.sqrt,Ze=1e-8,qe=1e-4,je=Ye(3),Ke=1/3,$e=ft(),Qe=ft(),Je=ft();function tn(t){return t>-Ze&&t<Ze}function en(t){return t>Ze||t<-Ze}function nn(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function rn(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function on(t,e,n,i,r,o){var a=i+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-r,h=s*s-3*a*l,c=s*l-9*a*u,p=l*l-3*s*u,d=0;if(tn(h)&&tn(c))tn(s)?o[0]=0:(M=-l/s)>=0&&M<=1&&(o[d++]=M);else{var f=c*c-4*h*p;if(tn(f)){var g=c/h,y=-g/2;(M=-s/a+g)>=0&&M<=1&&(o[d++]=M),y>=0&&y<=1&&(o[d++]=y)}else if(f>0){var v=Ye(f),m=h*s+1.5*a*(-c+v),_=h*s+1.5*a*(-c-v);(M=(-s-((m=m<0?-Xe(-m,Ke):Xe(m,Ke))+(_=_<0?-Xe(-_,Ke):Xe(_,Ke))))/(3*a))>=0&&M<=1&&(o[d++]=M)}else{var x=(2*h*s-3*a*c)/(2*Ye(h*h*h)),w=Math.acos(x)/3,b=Ye(h),S=Math.cos(w),M=(-s-2*b*S)/(3*a),T=(y=(-s+b*(S+je*Math.sin(w)))/(3*a),(-s+b*(S-je*Math.sin(w)))/(3*a));M>=0&&M<=1&&(o[d++]=M),y>=0&&y<=1&&(o[d++]=y),T>=0&&T<=1&&(o[d++]=T)}}return d}function an(t,e,n,i,r){var o=6*n-12*e+6*t,a=9*e+3*i-3*t-9*n,s=3*e-3*t,l=0;if(tn(a))en(o)&&(h=-s/o)>=0&&h<=1&&(r[l++]=h);else{var u=o*o-4*a*s;if(tn(u))r[0]=-o/(2*a);else if(u>0){var h,c=Ye(u),p=(-o-c)/(2*a);(h=(-o+c)/(2*a))>=0&&h<=1&&(r[l++]=h),p>=0&&p<=1&&(r[l++]=p)}}return l}function sn(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-a)*r+a,h=(l-s)*r+s,c=(h-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=c,o[4]=c,o[5]=h,o[6]=l,o[7]=i}function ln(t,e,n,i,r,o,a,s,l){for(var u=t,h=e,c=0,p=1/l,d=1;d<=l;d++){var f=d*p,g=nn(t,n,r,a,f),y=nn(e,i,o,s,f),v=g-u,m=y-h;c+=Math.sqrt(v*v+m*m),u=g,h=y}return c}function un(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function hn(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function cn(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function pn(t,e,n,i,r){var o=(e-t)*i+t,a=(n-e)*i+e,s=(a-o)*i+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n}function dn(t,e,n,i,r,o,a){for(var s=t,l=e,u=0,h=1/a,c=1;c<=a;c++){var p=c*h,d=un(t,n,r,p),f=un(e,i,o,p),g=d-s,y=f-l;u+=Math.sqrt(g*g+y*y),s=d,l=f}return u}var fn=/cubic-bezier\(([0-9,\.e ]+)\)/;function gn(t){var e=t&&fn.exec(t);if(e){var n=e[1].split(","),i=+et(n[0]),r=+et(n[1]),o=+et(n[2]),a=+et(n[3]);if(isNaN(i+r+o+a))return;var s=[];return function(t){return t<=0?0:t>=1?1:on(0,i,o,1,t,s)&&nn(0,r,a,1,s[0])}}}const yn=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||pt,this.ondestroy=t.ondestroy||pt,this.onrestart=t.onrestart||pt,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,i=t-this._startTime-this._pausedTime,r=i/n;r<0&&(r=0),r=Math.min(r,1);var o=this.easingFunc,a=o?o(r):r;if(this.onframe(a),1===r){if(!this.loop)return!0;var s=i%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=F(t)?t:Ue[t]||gn(t)},t}();var vn=function(t){this.value=t},mn=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new vn(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),_n=function(){function t(t){this._list=new mn,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,i=this._map,r=null;if(null==i[t]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete i[s.key],r=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new vn(e),a.key=t,n.insertEntry(a),i[t]=a}return r},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}();const xn=_n;var wn={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]};function bn(t){return(t=Math.round(t))<0?0:t>255?255:t}function Sn(t){return t<0?0:t>1?1:t}function Mn(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?bn(parseFloat(e)/100*255):bn(parseInt(e,10))}function Tn(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?Sn(parseFloat(e)/100):Sn(parseFloat(e))}function In(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function Cn(t,e,n){return t+(e-t)*n}function Dn(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function kn(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var An=new xn(20),Pn=null;function Ln(t,e){Pn&&kn(Pn,e),Pn=An.put(t,Pn||e.slice())}function On(t,e){if(t){e=e||[];var n=An.get(t);if(n)return kn(e,n);var i=(t+="").replace(/ /g,"").toLowerCase();if(i in wn)return kn(e,wn[i]),Ln(t,e),e;var r,o=i.length;if("#"===i.charAt(0))return 4===o||5===o?(r=parseInt(i.slice(1,4),16))>=0&&r<=4095?(Dn(e,(3840&r)>>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,5===o?parseInt(i.slice(4),16)/15:1),Ln(t,e),e):void Dn(e,0,0,0,1):7===o||9===o?(r=parseInt(i.slice(1,7),16))>=0&&r<=16777215?(Dn(e,(16711680&r)>>16,(65280&r)>>8,255&r,9===o?parseInt(i.slice(7),16)/255:1),Ln(t,e),e):void Dn(e,0,0,0,1):void 0;var a=i.indexOf("("),s=i.indexOf(")");if(-1!==a&&s+1===o){var l=i.substr(0,a),u=i.substr(a+1,s-(a+1)).split(","),h=1;switch(l){case"rgba":if(4!==u.length)return 3===u.length?Dn(e,+u[0],+u[1],+u[2],1):Dn(e,0,0,0,1);h=Tn(u.pop());case"rgb":return u.length>=3?(Dn(e,Mn(u[0]),Mn(u[1]),Mn(u[2]),3===u.length?h:Tn(u[3])),Ln(t,e),e):void Dn(e,0,0,0,1);case"hsla":return 4!==u.length?void Dn(e,0,0,0,1):(u[3]=Tn(u[3]),Rn(u,e),Ln(t,e),e);case"hsl":return 3!==u.length?void Dn(e,0,0,0,1):(Rn(u,e),Ln(t,e),e);default:return}}Dn(e,0,0,0,1)}}function Rn(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=Tn(t[1]),r=Tn(t[2]),o=r<=.5?r*(i+1):r+i-r*i,a=2*r-o;return Dn(e=e||[],bn(255*In(a,o,n+1/3)),bn(255*In(a,o,n)),bn(255*In(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function Nn(t,e){var n=On(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return En(n,4===n.length?"rgba":"rgb")}}function En(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function Bn(t,e){var n=On(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}var zn=new xn(100);function Fn(t){if(V(t)){var e=zn.get(t);return e||(e=Nn(t,-.1),zn.put(t,e)),e}if(Z(t)){var n=I({},t);return n.colorStops=L(t.colorStops,(function(t){return{offset:t.offset,color:Nn(t.color,-.1)}})),n}return t}r.hasGlobalWindow&&F(window.btoa);var Vn=Array.prototype.slice;function Hn(t,e,n){return(e-t)*n+t}function Wn(t,e,n,i){for(var r=e.length,o=0;o<r;o++)t[o]=Hn(e[o],n[o],i);return t}function Gn(t,e,n,i){for(var r=e.length,o=0;o<r;o++)t[o]=e[o]+n[o]*i;return t}function Un(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=e[a][s]+n[a][s]*i}return t}function Xn(t,e){for(var n=t.length,i=e.length,r=n>i?e:t,o=Math.min(n,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,i);s++)r.push({offset:a.offset,color:a.color.slice()})}function Yn(t,e,n){var i=t,r=e;if(i.push&&r.push){var o=i.length,a=r.length;if(o!==a)if(o>a)i.length=a;else for(var s=o;s<a;s++)i.push(1===n?r[s]:Vn.call(r[s]));var l=i[0]&&i[0].length;for(s=0;s<i.length;s++)if(1===n)isNaN(i[s])&&(i[s]=r[s]);else for(var u=0;u<l;u++)isNaN(i[s][u])&&(i[s][u]=r[s][u])}}function Zn(t){if(A(t)){var e=t.length;if(A(t[0])){for(var n=[],i=0;i<e;i++)n.push(Vn.call(t[i]));return n}return Vn.call(t)}return t}function qn(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function jn(t){return 4===t||5===t}function Kn(t){return 1===t||2===t}var $n=[0,0,0,0],Qn=function(){function t(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,r=i.length,o=!1,a=6,s=e;if(A(e)){var l=function(t){return A(t&&t[0])?2:1}(e);a=l,(1===l&&!W(e[0])||2===l&&!W(e[0][0]))&&(o=!0)}else if(W(e)&&!q(e))a=0;else if(V(e))if(isNaN(+e)){var u=On(e);u&&(s=u,a=3)}else a=0;else if(Z(e)){var h=I({},s);h.colorStops=L(e.colorStops,(function(t){return{offset:t.offset,color:On(t.color)}})),"linear"===e.type?a=4:function(t){return"radial"===t.type}(e)&&(a=5),s=h}0===r?this.valType=a:a===this.valType&&6!==a||(o=!0),this.discrete=this.discrete||o;var c={time:t,value:s,rawValue:e,percent:0};return n&&(c.easing=n,c.easingFunc=F(n)?n:Ue[n]||gn(n)),i.push(c),c},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort((function(t,e){return t.time-e.time}));for(var i=this.valType,r=n.length,o=n[r-1],a=this.discrete,s=Kn(i),l=jn(i),u=0;u<r;u++){var h=n[u],c=h.value,p=o.value;h.percent=h.time/t,a||(s&&u!==r-1?Yn(c,p,i):l&&Xn(c.colorStops,p.colorStops))}if(!a&&5!==i&&e&&this.needsAnimate()&&e.needsAnimate()&&i===e.valType&&!e._finished){this._additiveTrack=e;var d=n[0].value;for(u=0;u<r;u++)0===i?n[u].additiveValue=n[u].value-d:3===i?n[u].additiveValue=Gn([],n[u].value,d,-1):Kn(i)&&(n[u].additiveValue=1===i?Gn([],n[u].value,d,-1):Un([],n[u].value,d,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,i,r,o=null!=this._additiveTrack,a=o?"additiveValue":"value",s=this.valType,l=this.keyframes,u=l.length,h=this.propName,c=3===s,p=this._lastFr,d=Math.min;if(1===u)i=r=l[0];else{if(e<0)n=0;else if(e<this._lastFrP){for(n=d(p+1,u-1);n>=0&&!(l[n].percent<=e);n--);n=d(n,u-2)}else{for(n=p;n<u&&!(l[n].percent>e);n++);n=d(n-1,u-2)}r=l[n+1],i=l[n]}if(i&&r){this._lastFr=n,this._lastFrP=e;var f=r.percent-i.percent,g=0===f?1:d((e-i.percent)/f,1);r.easingFunc&&(g=r.easingFunc(g));var y=o?this._additiveValue:c?$n:t[h];if(!Kn(s)&&!c||y||(y=this._additiveValue=[]),this.discrete)t[h]=g<1?i.rawValue:r.rawValue;else if(Kn(s))1===s?Wn(y,i[a],r[a],g):function(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=Hn(e[a][s],n[a][s],i)}}(y,i[a],r[a],g);else if(jn(s)){var v=i[a],m=r[a],_=4===s;t[h]={type:_?"linear":"radial",x:Hn(v.x,m.x,g),y:Hn(v.y,m.y,g),colorStops:L(v.colorStops,(function(t,e){var n=m.colorStops[e];return{offset:Hn(t.offset,n.offset,g),color:qn(Wn([],t.color,n.color,g))}})),global:m.global},_?(t[h].x2=Hn(v.x2,m.x2,g),t[h].y2=Hn(v.y2,m.y2,g)):t[h].r=Hn(v.r,m.r,g)}else if(c)Wn(y,i[a],r[a],g),o||(t[h]=qn(y));else{var x=Hn(i[a],r[a],g);o?this._additiveValue=x:t[h]=x}o&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;0===e?t[n]=t[n]+i:3===e?(On(t[n],$n),Gn($n,$n,i,1),t[n]=qn($n)):1===e?Gn(t[n],t[n],i,1):2===e&&Un(t[n],t[n],i,1)},t}(),Jn=function(){function t(t,e,n,i){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i?S("Can' use additive animation on looped animation."):(this._additiveAnimators=i,this._allowDiscrete=n)}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,N(e),n)},t.prototype.whenWithKeys=function(t,e,n,i){for(var r=this._tracks,o=0;o<n.length;o++){var a=n[o],s=r[a];if(!s){s=r[a]=new Qn(a);var l=void 0,u=this._getAdditiveTrack(a);if(u){var h=u.keyframes,c=h[h.length-1];l=c&&c.value,3===u.valType&&l&&(l=qn(l))}else l=this._target[a];if(null==l)continue;t>0&&s.addKeyframe(0,Zn(l),i),this._trackKeys.push(a)}s.addKeyframe(t,Zn(e[a]),i)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n<e;n++)t[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},t.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},t.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var r=n[i].getTrack(t);r&&(e=r)}return e},t.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,r=0;r<this._trackKeys.length;r++){var o=this._trackKeys[r],a=this._tracks[o],s=this._getAdditiveTrack(o),l=a.keyframes,u=l.length;if(a.prepare(i,s),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var h=l[u-1];h&&(e._target[a.propName]=h.rawValue),a.setFinished()}else n.push(a)}if(n.length||this._force){var c=new yn({life:i,loop:this._loop,delay:this._delay||0,onframe:function(t){e._started=2;var i=e._additiveAnimators;if(i){for(var r=!1,o=0;o<i.length;o++)if(i[o]._clip){r=!0;break}r||(e._additiveAnimators=null)}for(o=0;o<n.length;o++)n[o].step(e._target,t);var a=e._onframeCbs;if(a)for(o=0;o<a.length;o++)a[o](e._target,t)},ondestroy:function(){e._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),t&&c.setEasing(t)}else this._doneCallback();return this}},t.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},t.prototype.delay=function(t){return this._delay=t,this},t.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},t.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},t.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(t){return this._tracks[t]},t.prototype.getTracks=function(){var t=this;return L(this._trackKeys,(function(e){return t._tracks[e]}))},t.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,r=0;r<t.length;r++){var o=n[t[r]];o&&!o.isFinished()&&(e?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var a=!0;for(r=0;r<i.length;r++)if(!n[i[r]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},t.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var i=0;i<e.length;i++){var r=e[i],o=this._tracks[r];if(o&&!o.isFinished()){var a=o.keyframes,s=a[n?0:a.length-1];s&&(t[r]=Zn(s.rawValue))}}}},t.prototype.__changeFinalValue=function(t,e){e=e||N(t);for(var n=0;n<e.length;n++){var i=e[n],r=this._tracks[i];if(r){var o=r.keyframes;if(o.length>1){var a=o.pop();r.addKeyframe(a.time,t[i]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},t}();const ti=Jn;function ei(){return(new Date).getTime()}var ni=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return n(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){for(var e=ei()-this._pausedTime,n=e-this._time,i=this._head;i;){var r=i.next;i.step(e,n)?(i.ondestroy(),this.removeClip(i),i=r):i=r}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0,We((function e(){t._running&&(We(e),!t._paused&&t.update())}))},e.prototype.start=function(){this._running||(this._time=ei(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=ei(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=ei()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new ti(t,e.loop);return this.addAnimator(n),n},e}(Pt);const ii=ni;var ri,oi,ai=r.domSupported,si=(oi={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:ri=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:L(ri,(function(t){var e=t.replace("mouse","pointer");return oi.hasOwnProperty(e)?e:t}))}),li=["mousemove","mouseup"],ui=["pointermove","pointerup"],hi=!1;function ci(t){var e=t.pointerType;return"pen"===e||"touch"===e}function pi(t){t&&(t.zrByTouch=!0)}function di(t,e){for(var n=e,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return i}var fi=function(t,e){this.stopPropagation=pt,this.stopImmediatePropagation=pt,this.preventDefault=pt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},gi={mousedown:function(t){t=qt(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=qt(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=qt(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){di(this,(t=qt(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){hi=!0,t=qt(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){hi||(t=qt(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){pi(t=qt(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),gi.mousemove.call(this,t),gi.mousedown.call(this,t)},touchmove:function(t){pi(t=qt(this.dom,t)),this.handler.processGesture(t,"change"),gi.mousemove.call(this,t)},touchend:function(t){pi(t=qt(this.dom,t)),this.handler.processGesture(t,"end"),gi.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&gi.click.call(this,t)},pointerdown:function(t){gi.mousedown.call(this,t)},pointermove:function(t){ci(t)||gi.mousemove.call(this,t)},pointerup:function(t){gi.mouseup.call(this,t)},pointerout:function(t){ci(t)||gi.mouseout.call(this,t)}};P(["click","dblclick","contextmenu"],(function(t){gi[t]=function(e){e=qt(this.dom,e),this.trigger(t,e)}}));var yi={pointermove:function(t){ci(t)||yi.mousemove.call(this,t)},pointerup:function(t){yi.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function vi(t,e){var n=e.domHandlers;r.pointerEventsSupported?P(si.pointer,(function(i){_i(e,i,(function(e){n[i].call(t,e)}))})):(r.touchEventsSupported&&P(si.touch,(function(i){_i(e,i,(function(r){n[i].call(t,r),function(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout((function(){t.touching=!1,t.touchTimer=null}),700)}(e)}))})),P(si.mouse,(function(i){_i(e,i,(function(r){r=Zt(r),e.touching||n[i].call(t,r)}))})))}function mi(t,e){function n(n){_i(e,n,(function(i){i=Zt(i),di(t,i.target)||(i=function(t,e){return qt(t.dom,new fi(t,e),!0)}(t,i),e.domHandlers[n].call(t,i))}),{capture:!0})}r.pointerEventsSupported?P(ui,n):r.touchEventsSupported||P(li,n)}function _i(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,function(t,e,n,i){t.addEventListener(e,n,i)}(t.domTarget,e,n,i)}function xi(t){var e,n,i,r,o=t.mounted;for(var a in o)o.hasOwnProperty(a)&&(e=t.domTarget,n=a,i=o[a],r=t.listenerOpts[a],e.removeEventListener(n,i,r));t.mounted={}}var wi=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e};const bi=function(t){function e(e,n){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=e,i.painterRoot=n,i._localHandlerScope=new wi(e,gi),ai&&(i._globalHandlerScope=new wi(document,yi)),vi(i,i._localHandlerScope),i}return n(e,t),e.prototype.dispose=function(){xi(this._localHandlerScope),ai&&xi(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,ai&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?mi(this,e):xi(e)}},e}(Pt);var Si=1;r.hasGlobalWindow&&(Si=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Mi=Si,Ti="#333",Ii="#ccc",Ci=Jt,Di=5e-5;function ki(t){return t>Di||t<-5e-5}var Ai=[],Pi=[],Li=[1,0,0,1,0,0],Oi=Math.abs,Ri=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return ki(this.rotation)||ki(this.x)||ki(this.y)||ki(this.scaleX-1)||ki(this.scaleY-1)||ki(this.skewX)||ki(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||[1,0,0,1,0,0],e?this.getLocalTransform(n):Ci(n),t&&(e?te(n,t,n):function(t,e){t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5]}(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(Ci(n),this.invTransform=null)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(Ai);var n=Ai[0]<0?-1:1,i=Ai[1]<0?-1:1,r=((Ai[0]-n)*e+n)/Ai[0]||0,o=((Ai[1]-i)*e+i)/Ai[1]||0;t[0]*=r,t[1]*=r,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||[1,0,0,1,0,0],ie(this.invTransform,t)},t.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),r=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||[1,0,0,1,0,0],te(Pi,t.invTransform,e),e=Pi);var n=this.originX,i=this.originY;(n||i)&&(Li[4]=n,Li[5]=i,te(Pi,e,Li),Pi[4]-=n,Pi[5]-=i,e=Pi),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&Mt(n,n,i),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&Mt(n,n,i),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&Oi(t[0]-1)>1e-10&&Oi(t[3]-1)>1e-10?Math.sqrt(Oi(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){!function(t,e){for(var n=0;n<Ni.length;n++){var i=Ni[n];t[i]=e[i]}}(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,r=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,p=t.skewY?Math.tan(-t.skewY):0;if(n||i||a||s){var d=n+a,f=i+s;e[4]=-d*r-c*f*o,e[5]=-f*o-p*d*r}else e[4]=e[5]=0;return e[0]=r,e[3]=o,e[1]=p*r,e[2]=c*o,l&&ne(e,e,l),e[4]+=n+u,e[5]+=i+h,e},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),Ni=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"],Ei={};function Bi(t,e){var n=Ei[e=e||s];n||(n=Ei[e]=new xn(500));var i=n.get(t);return null==i&&(i=u.measureText(t,e).width,n.put(t,i)),i}function zi(t,e,n,i){var r=Bi(t,e),o=Wi(e),a=Vi(0,r,n),s=Hi(0,o,i);return new ge(a,s,r,o)}function Fi(t,e,n,i){var r=((t||"")+"").split("\n");if(1===r.length)return zi(r[0],e,n,i);for(var o=new ge(0,0,0,0),a=0;a<r.length;a++){var s=zi(r[a],e,n,i);0===a?o.copy(s):o.union(s)}return o}function Vi(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function Hi(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function Wi(t){return Bi("国",t)}function Gi(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function Ui(t,e,n){var i=e.position||"inside",r=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,h="left",c="top";if(i instanceof Array)l+=Gi(i[0],n.width),u+=Gi(i[1],n.height),h=null,c=null;else switch(i){case"left":l-=r,u+=s,h="right",c="middle";break;case"right":l+=r+a,u+=s,c="middle";break;case"top":l+=a/2,u-=r,h="center",c="bottom";break;case"bottom":l+=a/2,u+=o+r,h="center";break;case"inside":l+=a/2,u+=s,h="center",c="middle";break;case"insideLeft":l+=r,u+=s,c="middle";break;case"insideRight":l+=a-r,u+=s,h="right",c="middle";break;case"insideTop":l+=a/2,u+=r,h="center";break;case"insideBottom":l+=a/2,u+=o-r,h="center",c="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,h="right";break;case"insideBottomLeft":l+=r,u+=o-r,c="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,h="right",c="bottom"}return(t=t||{}).x=l,t.y=u,t.align=h,t.verticalAlign=c,t}var Xi="__zr_normal__",Yi=Ni.concat(["ignore"]),Zi=O(Ni,(function(t,e){return t[e]=!0,t}),{ignore:!1}),qi={},ji=new ge(0,0,0,0),Ki=function(){function t(t){this.id=b(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,r=e.innerTransformable,o=void 0,a=void 0,s=!1;r.parent=i?this:null;var l=!1;if(r.copyTransform(e),null!=n.position){var u=ji;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),i||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(qi,n,u):Ui(qi,n,u),r.x=qi.x,r.y=qi.y,o=qi.align,a=qi.verticalAlign;var h=n.origin;if(h&&null!=n.rotation){var c=void 0,p=void 0;"center"===h?(c=.5*u.width,p=.5*u.height):(c=Gi(h[0],u.width),p=Gi(h[1],u.height)),l=!0,r.originX=-r.x+c+(i?0:u.x),r.originY=-r.y+p+(i?0:u.y)}}null!=n.rotation&&(r.rotation=n.rotation);var d=n.offset;d&&(r.x+=d[0],r.y+=d[1],l||(r.originX=-d[0],r.originY=-d[1]));var f=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,v=void 0,m=void 0;f&&this.canBeInsideText()?(y=n.insideFill,v=n.insideStroke,null!=y&&"auto"!==y||(y=this.getInsideTextFill()),null!=v&&"auto"!==v||(v=this.getInsideTextStroke(y),m=!0)):(y=n.outsideFill,v=n.outsideStroke,null!=y&&"auto"!==y||(y=this.getOutsideFill()),null!=v&&"auto"!==v||(v=this.getOutsideStroke(y),m=!0)),(y=y||"#000")===g.fill&&v===g.stroke&&m===g.autoStroke&&o===g.align&&a===g.verticalAlign||(s=!0,g.fill=y,g.stroke=v,g.autoStroke=m,g.align=o,g.verticalAlign=a,e.setDefaultTextStyle(g)),e.__dirty|=Ne,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Ii:Ti},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&On(e);n||(n=[255,255,255,1]);for(var i=n[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(r?0:255)*(1-i);return n[3]=1,En(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},I(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(G(t))for(var n=N(t),i=0;i<n.length;i++){var r=n[i];this.attrKV(r,t[r])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],r=i.__fromStateTransition;if(!(i.getLoop()||r&&r!==Xi)){var o=i.targetName,a=o?e[o]:e;i.saveTo(a)}}},t.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,Yi)},t.prototype._savePrimaryToNormal=function(t,e,n){for(var i=0;i<n.length;i++){var r=n[i];null==t[r]||r in e||(e[r]=this[r])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(Xi,!1,t)},t.prototype.useState=function(t,e,n,i){var r=t===Xi;if(this.hasState()||!r){var o=this.currentStates,a=this.stateTransition;if(!(D(o,t)>=0)||!e&&1!==o.length){var s;if(this.stateProxy&&!r&&(s=this.stateProxy(t)),s||(s=this.states&&this.states[t]),s||r){r||this.saveCurrentToNormalState(s);var l=!!(s&&s.hoverLayer||i);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,e,!n&&!this.__inHover&&a&&a.duration>0,a);var u=this._textContent,h=this._textGuide;return u&&u.useState(t,e,n,l),h&&h.useState(t,e,n,l),r?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ne),s}S("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var i=[],r=this.currentStates,o=t.length,a=o===r.length;if(a)for(var s=0;s<o;s++)if(t[s]!==r[s]){a=!1;break}if(a)return;for(s=0;s<o;s++){var l=t[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,t)),u||(u=this.states[l]),u&&i.push(u)}var h=i[o-1],c=!!(h&&h.hoverLayer||n);c&&this._toggleHoverLayerFlag(!0);var p=this._mergeStates(i),d=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(t.join(","),p,this._normalState,!1,!e&&!this.__inHover&&d&&d.duration>0,d);var f=this._textContent,g=this._textGuide;f&&f.useStates(t,e,c),g&&g.useStates(t,e,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ne)}else this.clearStates()},t.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},t.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},t.prototype.removeState=function(t){var e=D(this.currentStates,t);if(e>=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),r=D(i,t),o=D(i,e)>=0;r>=0?o?i.splice(r,1):i[r]=e:n&&!o&&i.push(e),this.useStates(i)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},i=0;i<t.length;i++){var r=t[i];I(n,r),r.textConfig&&I(e=e||{},r.textConfig)}return e&&(n.textConfig=e),n},t.prototype._applyStateObj=function(t,e,n,i,r,o){var a=!(e&&i);e&&e.textConfig?(this.textConfig=I({},i?this.textConfig:n.textConfig),I(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,u=0;u<Yi.length;u++){var h=Yi[u],c=r&&Zi[h];e&&null!=e[h]?c?(l=!0,s[h]=e[h]):this[h]=e[h]:a&&null!=n[h]&&(c?(l=!0,s[h]=n[h]):this[h]=n[h])}if(!r)for(u=0;u<this.animators.length;u++){var p=this.animators[u],d=p.targetName;p.getLoop()||p.__changeFinalValue(d?(e||n)[d]:e||n)}l&&this._transitionState(t,s,o)},t.prototype._attachComponent=function(t){if((!t.__zr||t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},t.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},t.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new Ri,this._attachComponent(t),this._textContent=t,this.markRedraw())},t.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),I(this.textConfig,t),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=Ne;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},t.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},t.prototype.animate=function(t,e,n){var i=t?this[t]:this,r=new ti(i,e,n);return t&&(r.targetName=t),this.addAnimator(r,t),r},t.prototype.addAnimator=function(t,e){var n=this.__zr,i=this;t.during((function(){i.updateDuringAnimation(e)})).done((function(){var e=i.animators,n=D(e,t);n>=0&&e.splice(n,1)})),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,r=[],o=0;o<i;o++){var a=n[o];t&&t!==a.scope?r.push(a):a.stop(e)}return this.animators=r,this},t.prototype.animateTo=function(t,e,n){$i(this,t,e,n)},t.prototype.animateFrom=function(t,e,n){$i(this,t,e,n,!0)},t.prototype._transitionState=function(t,e,n,i){for(var r=$i(this,e,n,i),o=0;o<r.length;o++)r[o].__fromStateTransition=t},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;function n(t,n,i,r){function o(t,e){Object.defineProperty(e,0,{get:function(){return t[i]},set:function(e){t[i]=e}}),Object.defineProperty(e,1,{get:function(){return t[r]},set:function(e){t[r]=e}})}Object.defineProperty(e,t,{get:function(){return this[n]||o(this,this[n]=[]),this[n]},set:function(t){this[i]=t[0],this[r]=t[1],this[n]=t,o(this,t)}})}e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=Ne,Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),t}();function $i(t,e,n,i,r){var o=[];tr(t,"",t,e,n=n||{},i,o,r);var a=o.length,s=!1,l=n.done,u=n.aborted,h=function(){s=!0,--a<=0&&(s?l&&l():u&&u())},c=function(){--a<=0&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&n.during&&o[0].during((function(t,e){n.during(e)}));for(var p=0;p<o.length;p++){var d=o[p];h&&d.done(h),c&&d.aborted(c),n.force&&d.duration(n.duration),d.start(n.easing)}return o}function Qi(t,e,n){for(var i=0;i<n;i++)t[i]=e[i]}function Ji(t,e,n){if(A(e[n]))if(A(t[n])||(t[n]=[]),X(e[n])){var i=e[n].length;t[n].length!==i&&(t[n]=new e[n].constructor(i),Qi(t[n],e[n],i))}else{var r=e[n],o=t[n],a=r.length;if(A(r[0]))for(var s=r[0].length,l=0;l<a;l++)o[l]?Qi(o[l],r[l],s):o[l]=Array.prototype.slice.call(r[l]);else Qi(o,r,a);o.length=r.length}else t[n]=e[n]}function tr(t,e,n,i,r,o,a,s){for(var l=N(i),u=r.duration,h=r.delay,c=r.additive,p=r.setToFinal,d=!G(o),f=t.animators,g=[],y=0;y<l.length;y++){var v=l[y],m=i[v];if(null!=m&&null!=n[v]&&(d||o[v]))if(!G(m)||A(m)||Z(m))g.push(v);else{if(e){s||(n[v]=m,t.updateDuringAnimation(e));continue}tr(t,v,n[v],m,r,o&&o[v],a,s)}else s||(n[v]=m,t.updateDuringAnimation(e),g.push(v))}var _=g.length;if(!c&&_)for(var x=0;x<f.length;x++)if((b=f[x]).targetName===e&&b.stopTracks(g)){var w=D(f,b);f.splice(w,1)}if(r.force||(g=R(g,(function(t){return e=i[t],r=n[t],!(e===r||A(e)&&A(r)&&function(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}(e,r));var e,r})),_=g.length),_>0||r.force&&!a.length){var b,S=void 0,M=void 0,T=void 0;if(s)for(M={},p&&(S={}),x=0;x<_;x++)M[v=g[x]]=n[v],p?S[v]=i[v]:n[v]=i[v];else if(p)for(T={},x=0;x<_;x++)T[v=g[x]]=Zn(n[v]),Ji(n,i,v);(b=new ti(n,!1,!1,c?R(f,(function(t){return t.targetName===e})):null)).targetName=e,r.scope&&(b.scope=r.scope),p&&S&&b.whenWithKeys(0,S,g),T&&b.whenWithKeys(0,T,g),b.whenWithKeys(null==u?500:u,s?M:i,g).delay(h||0),t.addAnimator(b,e),a.push(b)}}k(Ki,Pt),k(Ki,Ri);const er=Ki;var nr=function(t){function e(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return n(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var n=this._children,i=n.indexOf(e);i>=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=D(this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];if(t&&t!==this&&t.parent!==this&&t!==i){n[e]=t,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,i=D(n,t);return i<0||(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n<t.length;n++){var i=t[n];e&&i.removeSelfFromZr(e),i.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,e){for(var n=this._children,i=0;i<n.length;i++){var r=n[i];t.call(e,r,i)}return this},e.prototype.traverse=function(t,e){for(var n=0;n<this._children.length;n++){var i=this._children[n],r=t.call(e,i);i.isGroup&&!r&&i.traverse(t,e)}return this},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].addSelfToZr(e)},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].removeSelfFromZr(e)},e.prototype.getBoundingRect=function(t){for(var e=new ge(0,0,0,0),n=t||this._children,i=[],r=null,o=0;o<n.length;o++){var a=n[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(i);l?(ge.applyTransform(e,s,l),(r=r||e.clone()).union(e)):(r=r||s.clone()).union(s)}}return r||e},e}(er);nr.prototype.type="group";const ir=nr;
|
|
1
|
+
System.register(["./vendor-legacy-2df23db3.js"],(function(t,e){"use strict";var n;return{setters:[t=>{n=t._}],execute:function(){t({a:function(t){t.registerChartView(hw),t.registerSeriesModel(Fx),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,B(zm,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,function(t){return{seriesType:t,plan:Df(),reset:function(t){if(Fm(t)){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),r=n.getOtherAxis(i),o=e.getDimensionIndex(e.mapDimension(r.dim)),a=e.getDimensionIndex(e.mapDimension(i.dim)),s=t.get("showBackground",!0),l=e.mapDimension(r.dim),u=e.getCalculationInfo("stackResultDimension"),h=lm(e,l)&&!!e.getCalculationInfo("stackedOnSeries"),c=r.isHorizontal(),p=function(t,e){return e.toGlobalCoord(e.dataToCoord("log"===e.type?1:0))}(0,r),d=Vm(t),f=t.get("barMinHeight")||0,g=u&&e.getDimensionIndex(u),y=e.getLayout("size"),v=e.getLayout("offset");return{progress:function(t,e){for(var i,r=t.count,l=d&&Lm(3*r),u=d&&s&&Lm(3*r),m=d&&Lm(r),_=n.master.getRect(),x=c?_.width:_.height,w=e.getStore(),b=0;null!=(i=t.next());){var S=w.get(h?g:o,i),M=w.get(a,i),T=p,I=void 0;h&&(I=+S-w.get(o,i));var C=void 0,D=void 0,k=void 0,A=void 0;if(c){var P=n.dataToPoint([S,M]);h&&(T=n.dataToPoint([I,M])[0]),C=T,D=P[1]+v,k=P[0]-T,A=y,Math.abs(k)<f&&(k=(k<0?-1:1)*f)}else P=n.dataToPoint([M,S]),h&&(T=n.dataToPoint([M,I])[1]),C=P[0]+v,D=T,k=y,A=P[1]-T,Math.abs(A)<f&&(A=(A<=0?-1:1)*f);d?(l[b]=C,l[b+1]=D,l[b+2]=c?k:A,u&&(u[b]=c?_.x:C,u[b+1]=c?D:_.y,u[b+2]=x),m[i]=i):e.setItemLayout(i,{x:C,y:D,width:k,height:A}),b+=3}d&&e.setLayout({largePoints:l,largeDataIndices:m,largeBackgroundPoints:u,valueAxisHorizontal:c})}}}}}}("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,Nx("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},(function(e){t.sortInfo&&e.axis.setCategorySortInfo(t.sortInfo)}))}))},b:function(t){w_(Ob),t.registerSeriesModel(Aw),t.registerChartView(Ew),t.registerLayout(Lx("scatter"))},c:function(t){t.registerChartView(Sw),t.registerSeriesModel(Dw),function(t,e){function n(e,n){var i=[];return e.eachComponent({mainType:"series",subType:t,query:n},(function(t){i.push(t.seriesIndex)})),i}P([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],(function(t){e(t[0],(function(e,i,r){e=I({},e),r.dispatchAction(I(e,{type:t[1],seriesIndex:n(i,e)}))}))}))}("pie",t.registerAction),t.registerLayout(B(gw,"pie")),t.registerProcessor(function(t){return{seriesType:t,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(n&&n.length){var i=t.getData();i.filterSelf((function(t){for(var e=i.getName(t),r=0;r<n.length;r++)if(!n[r].isSelected(e))return!1;return!0}))}}}}("pie")),t.registerProcessor(function(t){return{seriesType:t,reset:function(t,e){var n=t.getData();n.filterSelf((function(t){var e=n.mapDimension("value"),i=n.get(e,t);return!(W(i)&&!isNaN(i)&&i<0)}))}}}("pie"))},d:function(t){w_(Ob),w_(jS)},e:function(t){w_(jS),t.registerComponentModel(uM),t.registerComponentView(PM),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},pt),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},pt)},f:function(t){w_(yT),w_(TT)},g:function(t){t.registerComponentModel(LM),t.registerComponentView(OM)},h:function(t){t.registerComponentModel(IT),t.registerComponentView(CT)},i:function(t){t.registerChartView(Px),t.registerSeriesModel(j_),t.registerLayout(Lx("line",!0)),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,Nx("line"))},j:jS,k:function(t){t.registerComponentModel(tM),t.registerComponentView(iM),t.registerPreprocessor((function(t){var e=t.graphic;z(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])}))},l:function(t){t.registerComponentModel(qM),t.registerComponentView(nT),t.registerPreprocessor((function(t){(function(t,e){if(!t)return!1;for(var n=z(t)?t:[t],i=0;i<n.length;i++)if(n[i]&&n[i][e])return!0;return!1})(t.series,"markLine")&&(t.markLine=t.markLine||{})}))},m:function(t){t.registerPainter("canvas",NT)},n:function(t,e,n){var i=!(n&&n.ssr);if(i){var r=function(t){return fv[function(t,e){return t.getAttribute?t.getAttribute(e):t[e]}(t,vv)]}(t);if(r)return r}var o=new rv(t,e,n);return o.id="ec_"+yv++,fv[o.id]=o,i&&Zr(t,vv,o.id),Jy(o),Ty.trigger("afterinit",o),o},u:w_});var e=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},i=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?(i.wxa=!0,i.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?i.worker=!0:"undefined"==typeof navigator||0===navigator.userAgent.indexOf("Node.js")?(i.node=!0,i.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,i);const r=i;var o,a,s="12px sans-serif",l=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"),u={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(t,e){if(!o){var n=u.createCanvas();o=n&&n.getContext("2d")}if(o)return a!==e&&(a=o.font=e||s),o.measureText(t);t=t||"";var i=/(\d+)px/.exec(e=e||s),r=i&&+i[1]||12,h=0;if(e.indexOf("mono")>=0)h=r*t.length;else for(var c=0;c<t.length;c++){var p=l[t[c]];h+=null==p?r:p*r}return{width:h}},loadImage:function(t,e,n){var i=new Image;return i.onload=e,i.onerror=n,i.src=t,i}},h=O(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(t,e){return t["[object "+e+"]"]=!0,t}),{}),c=O(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(t,e){return t["[object "+e+"Array]"]=!0,t}),{}),p=Object.prototype.toString,d=Array.prototype,f=d.forEach,g=d.filter,y=d.slice,v=d.map,m=function(){}.constructor,_=m?m.prototype:null,x="__proto__",w=2311;function b(){return w++}function S(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!=typeof console&&console.error.apply(console,t)}function M(t){if(null==t||"object"!=typeof t)return t;var e=t,n=p.call(t);if("[object Array]"===n){if(!rt(t)){e=[];for(var i=0,r=t.length;i<r;i++)e[i]=M(t[i])}}else if(c[n]){if(!rt(t)){var o=t.constructor;if(o.from)e=o.from(t);else for(e=new o(t.length),i=0,r=t.length;i<r;i++)e[i]=t[i]}}else if(!h[n]&&!rt(t)&&!Y(t))for(var a in e={},t)t.hasOwnProperty(a)&&a!==x&&(e[a]=M(t[a]));return e}function T(t,e,n){if(!G(e)||!G(t))return n?M(e):t;for(var i in e)if(e.hasOwnProperty(i)&&i!==x){var r=t[i],o=e[i];!G(o)||!G(r)||z(o)||z(r)||Y(o)||Y(r)||U(o)||U(r)||rt(o)||rt(r)?!n&&i in t||(t[i]=M(e[i])):T(r,o,n)}return t}function I(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==x&&(t[n]=e[n]);return t}function C(t,e,n){for(var i=N(e),r=0;r<i.length;r++){var o=i[r];(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}return t}function D(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n}return-1}function k(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),r=0;r<i.length;r++){var o=i[r];"constructor"!==o&&(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}else C(t,e,n)}function A(t){return!!t&&"string"!=typeof t&&"number"==typeof t.length}function P(t,e,n){if(t&&e)if(t.forEach&&t.forEach===f)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,r=t.length;i<r;i++)e.call(n,t[i],i,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function L(t,e,n){if(!t)return[];if(!e)return Q(t);if(t.map&&t.map===v)return t.map(e,n);for(var i=[],r=0,o=t.length;r<o;r++)i.push(e.call(n,t[r],r,t));return i}function O(t,e,n,i){if(t&&e){for(var r=0,o=t.length;r<o;r++)n=e.call(i,n,t[r],r,t);return n}}function R(t,e,n){if(!t)return[];if(!e)return Q(t);if(t.filter&&t.filter===g)return t.filter(e,n);for(var i=[],r=0,o=t.length;r<o;r++)e.call(n,t[r],r,t)&&i.push(t[r]);return i}function N(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}var E=_&&F(_.bind)?_.call.bind(_.bind):function(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(){return t.apply(e,n.concat(y.call(arguments)))}};function B(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(y.call(arguments)))}}function z(t){return Array.isArray?Array.isArray(t):"[object Array]"===p.call(t)}function F(t){return"function"==typeof t}function V(t){return"string"==typeof t}function H(t){return"[object String]"===p.call(t)}function W(t){return"number"==typeof t}function G(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function U(t){return!!h[p.call(t)]}function X(t){return!!c[p.call(t)]}function Y(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function Z(t){return null!=t.colorStops}function q(t){return t!=t}function j(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,i=t.length;n<i;n++)if(null!=t[n])return t[n]}function K(t,e){return null!=t?t:e}function $(t,e,n){return null!=t?t:null!=e?e:n}function Q(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return y.apply(t,e)}function J(t){if("number"==typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function tt(t,e){if(!t)throw new Error(e)}function et(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var nt="__ec_primitive__";function it(t){t[nt]=!0}function rt(t){return t[nt]}var ot=function(){function t(){this.data={}}return t.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},t.prototype.has=function(t){return this.data.hasOwnProperty(t)},t.prototype.get=function(t){return this.data[t]},t.prototype.set=function(t,e){return this.data[t]=e,this},t.prototype.keys=function(){return N(this.data)},t.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},t}(),at="function"==typeof Map,st=function(){function t(e){var n=z(e);this.data=at?new Map:new ot;var i=this;function r(t,e){n?i.set(t,e):i.set(e,t)}e instanceof t?e.each(r):e&&P(e,r)}return t.prototype.hasKey=function(t){return this.data.has(t)},t.prototype.get=function(t){return this.data.get(t)},t.prototype.set=function(t,e){return this.data.set(t,e),e},t.prototype.each=function(t,e){this.data.forEach((function(n,i){t.call(e,n,i)}))},t.prototype.keys=function(){var t=this.data.keys();return at?Array.from(t):t},t.prototype.removeKey=function(t){this.data.delete(t)},t}();function lt(t){return new st(t)}function ut(t,e){var n;if(Object.create)n=Object.create(t);else{var i=function(){};i.prototype=t,n=new i}return e&&I(n,e),n}function ht(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function ct(t,e){return t.hasOwnProperty(e)}function pt(){}var dt=180/Math.PI;function ft(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function gt(t){return[t[0],t[1]]}function yt(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function vt(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function mt(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function _t(t,e){var n=function(t){return Math.sqrt(function(t){return t[0]*t[0]+t[1]*t[1]}(t))}(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function xt(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var wt=xt,bt=function(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])};function St(t,e,n,i){return t[0]=e[0]+i*(n[0]-e[0]),t[1]=e[1]+i*(n[1]-e[1]),t}function Mt(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t}function Tt(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function It(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var Ct=function(t,e){this.target=t,this.topTarget=e&&e.topTarget},Dt=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Ct(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,i=t.offsetY,r=n-this._x,o=i-this._y;this._x=n,this._y=i,e.drift(r,o,t),this.handler.dispatchToElement(new Ct(e,t),"drag",t.event);var a=this.handler.findHover(n,i,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.handler.dispatchToElement(new Ct(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new Ct(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new Ct(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Ct(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}();const kt=Dt;var At=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"==typeof e&&(i=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),r[t]||(r[t]=[]);for(var a=0;a<r[t].length;a++)if(r[t][a].h===n)return this;var s={h:n,query:e,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},l=r[t].length-1,u=r[t][l];return u&&u.callAtLast?r[t].splice(l,0,s):r[t].push(s),this},t.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},t.prototype.off=function(t,e){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var i=[],r=0,o=n[t].length;r<o;r++)n[t][r].h!==e&&i.push(n[t][r]);n[t]=i}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];return this},t.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var o=e.length,a=i.length,s=0;s<a;s++){var l=i[s];if(!r||!r.filter||null==l.query||r.filter(t,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e)}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var o=e.length,a=e[o-1],s=i.length,l=0;l<s;l++){var u=i[l];if(!r||!r.filter||null==u.query||r.filter(t,u.query))switch(o){case 0:u.h.call(a);break;case 1:u.h.call(a,e[0]);break;case 2:u.h.call(a,e[0],e[1]);break;default:u.h.apply(a,e.slice(1,o-1))}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t}();const Pt=At;var Lt=Math.log(2);function Ot(t,e,n,i,r,o){var a=i+"-"+r,s=t.length;if(o.hasOwnProperty(a))return o[a];if(1===e){var l=Math.round(Math.log((1<<s)-1&~r)/Lt);return t[n][l]}for(var u=i|1<<n,h=n+1;i&1<<h;)h++;for(var c=0,p=0,d=0;p<s;p++){var f=1<<p;f&r||(c+=(d%2?-1:1)*t[n][p]*Ot(t,e-1,h,u,r|f,o),d++)}return o[a]=c,c}function Rt(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],i={},r=Ot(n,8,0,0,0,i);if(0!==r){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*Ot(n,7,0===a?1:0,1<<a,1<<s,i)/r*e[a];return function(t,e,n){var i=e*o[6]+n*o[7]+1;t[0]=(e*o[0]+n*o[1]+o[2])/i,t[1]=(e*o[3]+n*o[4]+o[5])/i}}}var Nt="___zrEVENTSAVED",Et=[];function Bt(t,e,n,i,o){if(e.getBoundingClientRect&&r.domSupported&&!zt(e)){var a=e[Nt]||(e[Nt]={}),s=function(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var i=["left","right"],r=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=o%2,l=(o>>1)%2;a.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[s]+":0",r[l]+":0",i[1-s]+":auto",r[1-l]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}(e,a),l=function(t,e,n){for(var i=n?"invTrans":"trans",r=e[i],o=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var h=t[u].getBoundingClientRect(),c=2*u,p=h.left,d=h.top;a.push(p,d),l=l&&o&&p===o[c]&&d===o[c+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&r?r:(e.srcCoords=a,e[i]=n?Rt(s,a):Rt(a,s))}(s,a,o);if(l)return l(t,n,i),!0}return!1}function zt(t){return"CANVAS"===t.nodeName.toUpperCase()}var Ft=/([&<>"'])/g,Vt={"&":"&","<":"<",">":">",'"':""","'":"'"};function Ht(t){return null==t?"":(t+"").replace(Ft,(function(t,e){return Vt[e]}))}var Wt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Gt=[],Ut=r.browser.firefox&&+r.browser.version.split(".")[0]<39;function Xt(t,e,n,i){return n=n||{},i?Yt(t,e,n):Ut&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):Yt(t,e,n),n}function Yt(t,e,n){if(r.domSupported&&t.getBoundingClientRect){var i=e.clientX,o=e.clientY;if(zt(t)){var a=t.getBoundingClientRect();return n.zrX=i-a.left,void(n.zrY=o-a.top)}if(Bt(Gt,t,i,o))return n.zrX=Gt[0],void(n.zrY=Gt[1])}n.zrX=n.zrY=0}function Zt(t){return t||window.event}function qt(t,e,n){if(null!=(e=Zt(e)).zrX)return e;var i=e.type;if(i&&i.indexOf("touch")>=0){var r="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];r&&Xt(t,r,e,n)}else{Xt(t,e,e,n);var o=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,i=t.deltaY;return null==n||null==i?e:3*(0!==i?Math.abs(i):Math.abs(n))*(i>0?-1:i<0?1:n>0?-1:1)}(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var a=e.button;return null==e.which&&void 0!==a&&Wt.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}var jt=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},Kt=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},o=0,a=i.length;o<a;o++){var s=i[o],l=Xt(n,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},t.prototype._recognize=function(t){for(var e in Qt)if(Qt.hasOwnProperty(e)){var n=Qt[e](this._track,t);if(n)return n}},t}();function $t(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}var Qt={pinch:function(t,e){var n=t.length;if(n){var i,r=(t[n-1]||{}).points,o=(t[n-2]||{}).points||r;if(o&&o.length>1&&r&&r.length>1){var a=$t(r)/$t(o);!isFinite(a)&&(a=1),e.pinchScale=a;var s=[((i=r)[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2];return e.pinchX=s[0],e.pinchY=s[1],{type:"pinch",target:t[0].target,event:e}}}}};function Jt(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function te(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function ee(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function ne(t,e,n,i){void 0===i&&(i=[0,0]);var r=e[0],o=e[2],a=e[4],s=e[1],l=e[3],u=e[5],h=Math.sin(n),c=Math.cos(n);return t[0]=r*c+s*h,t[1]=-r*h+s*c,t[2]=o*c+l*h,t[3]=-o*h+c*l,t[4]=c*(a-i[0])+h*(u-i[1])+i[0],t[5]=c*(u-i[1])-h*(a-i[0])+i[1],t}function ie(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*i;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*r)*l,t[5]=(o*r-n*s)*l,t):null}var re=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},t.lerp=function(t,e,n,i){var r=1-i;t.x=r*e.x+i*n.x,t.y=r*e.y+i*n.y},t}();const oe=re;var ae=Math.min,se=Math.max,le=new oe,ue=new oe,he=new oe,ce=new oe,pe=new oe,de=new oe,fe=function(){function t(t,e,n,i){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return t.prototype.union=function(t){var e=ae(t.x,this.x),n=ae(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=se(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=se(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,r=[1,0,0,1,0,0];return ee(r,r,[-e.x,-e.y]),function(t,e,n){var i=n[0],r=n[1];t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r}(r,r,[n,i]),ee(r,r,[t.x,t.y]),r},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var i=this,r=i.x,o=i.x+i.width,a=i.y,s=i.y+i.height,l=e.x,u=e.x+e.width,h=e.y,c=e.y+e.height,p=!(o<l||u<r||s<h||c<a);if(n){var d=1/0,f=0,g=Math.abs(o-l),y=Math.abs(u-r),v=Math.abs(s-h),m=Math.abs(c-a),_=Math.min(g,y),x=Math.min(v,m);o<l||u<r?_>f&&(f=_,g<y?oe.set(de,-g,0):oe.set(de,y,0)):_<d&&(d=_,g<y?oe.set(pe,g,0):oe.set(pe,-y,0)),s<h||c<a?x>f&&(f=x,v<m?oe.set(de,0,-v):oe.set(de,0,m)):_<d&&(d=_,v<m?oe.set(pe,0,v):oe.set(pe,0,-m))}return n&&oe.copy(n,p?pe:de),p},t.prototype.contain=function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,i){if(i){if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],o=i[3],a=i[4],s=i[5];return e.x=n.x*r+a,e.y=n.y*o+s,e.width=n.width*r,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}le.x=he.x=n.x,le.y=ce.y=n.y,ue.x=ce.x=n.x+n.width,ue.y=he.y=n.y+n.height,le.transform(i),ce.transform(i),ue.transform(i),he.transform(i),e.x=ae(le.x,ue.x,he.x,ce.x),e.y=ae(le.y,ue.y,he.y,ce.y);var l=se(le.x,ue.x,he.x,ce.x),u=se(le.y,ue.y,he.y,ce.y);e.width=l-e.x,e.height=u-e.y}else e!==n&&t.copy(e,n)},t}();const ge=fe;var ye="silent";function ve(){jt(this.event)}var me=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return n(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(Pt),_e=function(t,e){this.x=t,this.y=e},xe=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],we=new ge(0,0,0,0),be=function(t){function e(e,n,i,r,o){var a=t.call(this)||this;return a._hovered=new _e(0,0),a.storage=e,a.painter=n,a.painterRoot=r,a._pointerSize=o,i=i||new me,a.proxy=null,a.setHandlerProxy(i),a._draggingMgr=new kt(a),a}return n(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(P(xe,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=Te(this,e,n),r=this._hovered,o=r.target;o&&!o.__zr&&(o=(r=this.findHover(r.x,r.y)).target);var a=this._hovered=i?new _e(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new _e(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var r="on"+e,o=function(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:ve}}(e,t,n);i&&(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(e,o),i=i.__hostTarget?i.__hostTarget:i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(t){"function"==typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)})))}},e.prototype.findHover=function(t,e,n){var i=this.storage.getDisplayList(),r=new _e(t,e);if(Me(i,r,t,e,n),this._pointerSize&&!r.target){for(var o=[],a=this._pointerSize,s=a/2,l=new ge(t-s,e-s,a,a),u=i.length-1;u>=0;u--){var h=i[u];h===n||h.ignore||h.ignoreCoarsePointer||h.parent&&h.parent.ignoreCoarsePointer||(we.copy(h.getBoundingRect()),h.transform&&we.applyTransform(h.transform),we.intersect(l)&&o.push(h))}if(o.length)for(var c=Math.PI/12,p=2*Math.PI,d=0;d<s;d+=4)for(var f=0;f<p;f+=c)if(Me(o,r,t+d*Math.cos(f),e+d*Math.sin(f),n),r.target)return r}return r},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new Kt);var n=this._gestureMgr;"start"===e&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),i){var r=i.type;t.gestureEvent=r;var o=new _e;o.target=i.target,this.dispatchToElement(o,r,i.event)}},e}(Pt);function Se(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i=t,r=void 0,o=!1;i;){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(e,n))return!1}i.silent&&(r=!0);var s=i.__hostTarget;i=s||i.parent}return!r||ye}return!1}function Me(t,e,n,i,r){for(var o=t.length-1;o>=0;o--){var a=t[o],s=void 0;if(a!==r&&!a.ignore&&(s=Se(a,n,i))&&(!e.topTarget&&(e.topTarget=a),s!==ye)){e.target=a;break}}}function Te(t,e,n){var i=t.painter;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}P(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){be.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,a=Te(this,r,o);if("mouseup"===t&&a||(i=(n=this.findHover(r,o)).target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||wt(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}));const Ie=be;var Ce=32,De=7;function ke(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){for(;r<n&&i(t[r],t[r-1])<0;)r++;!function(t,e,n){for(n--;e<n;){var i=t[e];t[e++]=t[n],t[n--]=i}}(t,e,r)}else for(;r<n&&i(t[r],t[r-1])>=0;)r++;return r-e}function Ae(t,e,n,i,r){for(i===e&&i++;i<n;i++){for(var o,a=t[i],s=e,l=i;s<l;)r(a,t[o=s+l>>>1])<0?l=o:s=o+1;var u=i-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function Pe(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){for(s=i-r;l<s&&o(t,e[n+r+l])>0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;l<s&&o(t,e[n+r-l])<=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}for(a++;a<l;){var h=a+(l-a>>>1);o(t,e[n+h])>0?a=h+1:l=h}return l}function Le(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){for(s=r+1;l<s&&o(t,e[n+r-l])<0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=i-r;l<s&&o(t,e[n+r+l])>=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;a<l;){var h=a+(l-a>>>1);o(t,e[n+h])<0?l=h:a=h+1}return l}function Oe(t,e){var n,i,r=De,o=0,a=[];function s(s){var l=n[s],u=i[s],h=n[s+1],c=i[s+1];i[s]=u+c,s===o-3&&(n[s+1]=n[s+2],i[s+1]=i[s+2]),o--;var p=Le(t[h],t,l,u,0,e);l+=p,0!=(u-=p)&&0!==(c=Pe(t[l+u-1],t,h,c,c-1,e))&&(u<=c?function(n,i,o,s){var l=0;for(l=0;l<i;l++)a[l]=t[n+l];var u=0,h=o,c=n;if(t[c++]=t[h++],0!=--s)if(1!==i){for(var p,d,f,g=r;;){p=0,d=0,f=!1;do{if(e(t[h],a[u])<0){if(t[c++]=t[h++],d++,p=0,0==--s){f=!0;break}}else if(t[c++]=a[u++],p++,d=0,1==--i){f=!0;break}}while((p|d)<g);if(f)break;do{if(0!==(p=Le(t[h],a,u,i,0,e))){for(l=0;l<p;l++)t[c+l]=a[u+l];if(c+=p,u+=p,(i-=p)<=1){f=!0;break}}if(t[c++]=t[h++],0==--s){f=!0;break}if(0!==(d=Pe(a[u],t,h,s,0,e))){for(l=0;l<d;l++)t[c+l]=t[h+l];if(c+=d,h+=d,0==(s-=d)){f=!0;break}}if(t[c++]=a[u++],1==--i){f=!0;break}g--}while(p>=De||d>=De);if(f)break;g<0&&(g=0),g+=2}if((r=g)<1&&(r=1),1===i){for(l=0;l<s;l++)t[c+l]=t[h+l];t[c+s]=a[u]}else{if(0===i)throw new Error;for(l=0;l<i;l++)t[c+l]=a[u+l]}}else{for(l=0;l<s;l++)t[c+l]=t[h+l];t[c+s]=a[u]}else for(l=0;l<i;l++)t[c+l]=a[u+l]}(l,u,h,c):function(n,i,o,s){var l=0;for(l=0;l<s;l++)a[l]=t[o+l];var u=n+i-1,h=s-1,c=o+s-1,p=0,d=0;if(t[c--]=t[u--],0!=--i)if(1!==s){for(var f=r;;){var g=0,y=0,v=!1;do{if(e(a[h],t[u])<0){if(t[c--]=t[u--],g++,y=0,0==--i){v=!0;break}}else if(t[c--]=a[h--],y++,g=0,1==--s){v=!0;break}}while((g|y)<f);if(v)break;do{if(0!=(g=i-Le(a[h],t,n,i,i-1,e))){for(i-=g,d=1+(c-=g),p=1+(u-=g),l=g-1;l>=0;l--)t[d+l]=t[p+l];if(0===i){v=!0;break}}if(t[c--]=a[h--],1==--s){v=!0;break}if(0!=(y=s-Pe(t[u],a,0,s,s-1,e))){for(s-=y,d=1+(c-=y),p=1+(h-=y),l=0;l<y;l++)t[d+l]=a[p+l];if(s<=1){v=!0;break}}if(t[c--]=t[u--],0==--i){v=!0;break}f--}while(g>=De||y>=De);if(v)break;f<0&&(f=0),f+=2}if((r=f)<1&&(r=1),1===s){for(d=1+(c-=i),p=1+(u-=i),l=i-1;l>=0;l--)t[d+l]=t[p+l];t[c]=a[h]}else{if(0===s)throw new Error;for(p=c-(s-1),l=0;l<s;l++)t[p+l]=a[l]}}else{for(d=1+(c-=i),p=1+(u-=i),l=i-1;l>=0;l--)t[d+l]=t[p+l];t[c]=a[h]}else for(p=c-(s-1),l=0;l<s;l++)t[p+l]=a[l]}(l,u,h,c))}return n=[],i=[],{mergeRuns:function(){for(;o>1;){var t=o-2;if(t>=1&&i[t-1]<=i[t]+i[t+1]||t>=2&&i[t-2]<=i[t]+i[t-1])i[t-1]<i[t+1]&&t--;else if(i[t]>i[t+1])break;s(t)}},forceMergeRuns:function(){for(;o>1;){var t=o-2;t>0&&i[t-1]<i[t+1]&&t--,s(t)}},pushRun:function(t,e){n[o]=t,i[o]=e,o+=1}}}function Re(t,e,n,i){n||(n=0),i||(i=t.length);var r=i-n;if(!(r<2)){var o=0;if(r<Ce)Ae(t,n,i,n+(o=ke(t,n,i,e)),e);else{var a=Oe(t,e),s=function(t){for(var e=0;t>=Ce;)e|=1&t,t>>=1;return t+e}(r);do{if((o=ke(t,n,i,e))<s){var l=r;l>s&&(l=s),Ae(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),r-=o,n+=o}while(0!==r);a.forceMergeRuns()}}}var Ne=1,Ee=4,Be=!1;function ze(){Be||(Be=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Fe(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var Ve=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Fe}return t.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},t.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return!t&&n.length||this.updateDisplayList(e),n},t.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,r=e.length;i<r;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,Re(n,Fe)},t.prototype._updateAndAddDisplayable=function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)e=null;else if(i){e=e?e.slice():[];for(var r=i,o=t;r;)r.parent=o,r.updateTransform(),e.push(r),o=r,r=r.getClipPath()}if(t.childrenRef){for(var a=t.childrenRef(),s=0;s<a.length;s++){var l=a[s];t.__dirty&&(l.__dirty|=Ne),this._updateAndAddDisplayable(l,e,n)}t.__dirty=0}else{var u=t;e&&e.length?u.__clipPaths=e:u.__clipPaths&&u.__clipPaths.length>0&&(u.__clipPaths=[]),isNaN(u.z)&&(ze(),u.z=0),isNaN(u.z2)&&(ze(),u.z2=0),isNaN(u.zlevel)&&(ze(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,n);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,e,n);var p=t.getTextContent();p&&this._updateAndAddDisplayable(p,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);else{var i=D(this._roots,t);i>=0&&this._roots.splice(i,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}();const He=Ve,We=r.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var Ge={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=i*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Ge.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*Ge.bounceIn(2*t):.5*Ge.bounceOut(2*t-1)+.5}};const Ue=Ge;var Xe=Math.pow,Ye=Math.sqrt,Ze=1e-8,qe=1e-4,je=Ye(3),Ke=1/3,$e=ft(),Qe=ft(),Je=ft();function tn(t){return t>-Ze&&t<Ze}function en(t){return t>Ze||t<-Ze}function nn(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function rn(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function on(t,e,n,i,r,o){var a=i+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-r,h=s*s-3*a*l,c=s*l-9*a*u,p=l*l-3*s*u,d=0;if(tn(h)&&tn(c))tn(s)?o[0]=0:(M=-l/s)>=0&&M<=1&&(o[d++]=M);else{var f=c*c-4*h*p;if(tn(f)){var g=c/h,y=-g/2;(M=-s/a+g)>=0&&M<=1&&(o[d++]=M),y>=0&&y<=1&&(o[d++]=y)}else if(f>0){var v=Ye(f),m=h*s+1.5*a*(-c+v),_=h*s+1.5*a*(-c-v);(M=(-s-((m=m<0?-Xe(-m,Ke):Xe(m,Ke))+(_=_<0?-Xe(-_,Ke):Xe(_,Ke))))/(3*a))>=0&&M<=1&&(o[d++]=M)}else{var x=(2*h*s-3*a*c)/(2*Ye(h*h*h)),w=Math.acos(x)/3,b=Ye(h),S=Math.cos(w),M=(-s-2*b*S)/(3*a),T=(y=(-s+b*(S+je*Math.sin(w)))/(3*a),(-s+b*(S-je*Math.sin(w)))/(3*a));M>=0&&M<=1&&(o[d++]=M),y>=0&&y<=1&&(o[d++]=y),T>=0&&T<=1&&(o[d++]=T)}}return d}function an(t,e,n,i,r){var o=6*n-12*e+6*t,a=9*e+3*i-3*t-9*n,s=3*e-3*t,l=0;if(tn(a))en(o)&&(h=-s/o)>=0&&h<=1&&(r[l++]=h);else{var u=o*o-4*a*s;if(tn(u))r[0]=-o/(2*a);else if(u>0){var h,c=Ye(u),p=(-o-c)/(2*a);(h=(-o+c)/(2*a))>=0&&h<=1&&(r[l++]=h),p>=0&&p<=1&&(r[l++]=p)}}return l}function sn(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-a)*r+a,h=(l-s)*r+s,c=(h-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=c,o[4]=c,o[5]=h,o[6]=l,o[7]=i}function ln(t,e,n,i,r,o,a,s,l){for(var u=t,h=e,c=0,p=1/l,d=1;d<=l;d++){var f=d*p,g=nn(t,n,r,a,f),y=nn(e,i,o,s,f),v=g-u,m=y-h;c+=Math.sqrt(v*v+m*m),u=g,h=y}return c}function un(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function hn(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function cn(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function pn(t,e,n,i,r){var o=(e-t)*i+t,a=(n-e)*i+e,s=(a-o)*i+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n}function dn(t,e,n,i,r,o,a){for(var s=t,l=e,u=0,h=1/a,c=1;c<=a;c++){var p=c*h,d=un(t,n,r,p),f=un(e,i,o,p),g=d-s,y=f-l;u+=Math.sqrt(g*g+y*y),s=d,l=f}return u}var fn=/cubic-bezier\(([0-9,\.e ]+)\)/;function gn(t){var e=t&&fn.exec(t);if(e){var n=e[1].split(","),i=+et(n[0]),r=+et(n[1]),o=+et(n[2]),a=+et(n[3]);if(isNaN(i+r+o+a))return;var s=[];return function(t){return t<=0?0:t>=1?1:on(0,i,o,1,t,s)&&nn(0,r,a,1,s[0])}}}const yn=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||pt,this.ondestroy=t.ondestroy||pt,this.onrestart=t.onrestart||pt,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,i=t-this._startTime-this._pausedTime,r=i/n;r<0&&(r=0),r=Math.min(r,1);var o=this.easingFunc,a=o?o(r):r;if(this.onframe(a),1===r){if(!this.loop)return!0;var s=i%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=F(t)?t:Ue[t]||gn(t)},t}();var vn=function(t){this.value=t},mn=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new vn(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),_n=function(){function t(t){this._list=new mn,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,i=this._map,r=null;if(null==i[t]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete i[s.key],r=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new vn(e),a.key=t,n.insertEntry(a),i[t]=a}return r},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}();const xn=_n;var wn={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]};function bn(t){return(t=Math.round(t))<0?0:t>255?255:t}function Sn(t){return t<0?0:t>1?1:t}function Mn(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?bn(parseFloat(e)/100*255):bn(parseInt(e,10))}function Tn(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?Sn(parseFloat(e)/100):Sn(parseFloat(e))}function In(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function Cn(t,e,n){return t+(e-t)*n}function Dn(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function kn(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var An=new xn(20),Pn=null;function Ln(t,e){Pn&&kn(Pn,e),Pn=An.put(t,Pn||e.slice())}function On(t,e){if(t){e=e||[];var n=An.get(t);if(n)return kn(e,n);var i=(t+="").replace(/ /g,"").toLowerCase();if(i in wn)return kn(e,wn[i]),Ln(t,e),e;var r,o=i.length;if("#"===i.charAt(0))return 4===o||5===o?(r=parseInt(i.slice(1,4),16))>=0&&r<=4095?(Dn(e,(3840&r)>>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,5===o?parseInt(i.slice(4),16)/15:1),Ln(t,e),e):void Dn(e,0,0,0,1):7===o||9===o?(r=parseInt(i.slice(1,7),16))>=0&&r<=16777215?(Dn(e,(16711680&r)>>16,(65280&r)>>8,255&r,9===o?parseInt(i.slice(7),16)/255:1),Ln(t,e),e):void Dn(e,0,0,0,1):void 0;var a=i.indexOf("("),s=i.indexOf(")");if(-1!==a&&s+1===o){var l=i.substr(0,a),u=i.substr(a+1,s-(a+1)).split(","),h=1;switch(l){case"rgba":if(4!==u.length)return 3===u.length?Dn(e,+u[0],+u[1],+u[2],1):Dn(e,0,0,0,1);h=Tn(u.pop());case"rgb":return u.length>=3?(Dn(e,Mn(u[0]),Mn(u[1]),Mn(u[2]),3===u.length?h:Tn(u[3])),Ln(t,e),e):void Dn(e,0,0,0,1);case"hsla":return 4!==u.length?void Dn(e,0,0,0,1):(u[3]=Tn(u[3]),Rn(u,e),Ln(t,e),e);case"hsl":return 3!==u.length?void Dn(e,0,0,0,1):(Rn(u,e),Ln(t,e),e);default:return}}Dn(e,0,0,0,1)}}function Rn(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=Tn(t[1]),r=Tn(t[2]),o=r<=.5?r*(i+1):r+i-r*i,a=2*r-o;return Dn(e=e||[],bn(255*In(a,o,n+1/3)),bn(255*In(a,o,n)),bn(255*In(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function Nn(t,e){var n=On(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return En(n,4===n.length?"rgba":"rgb")}}function En(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function Bn(t,e){var n=On(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}var zn=new xn(100);function Fn(t){if(V(t)){var e=zn.get(t);return e||(e=Nn(t,-.1),zn.put(t,e)),e}if(Z(t)){var n=I({},t);return n.colorStops=L(t.colorStops,(function(t){return{offset:t.offset,color:Nn(t.color,-.1)}})),n}return t}r.hasGlobalWindow&&F(window.btoa);var Vn=Array.prototype.slice;function Hn(t,e,n){return(e-t)*n+t}function Wn(t,e,n,i){for(var r=e.length,o=0;o<r;o++)t[o]=Hn(e[o],n[o],i);return t}function Gn(t,e,n,i){for(var r=e.length,o=0;o<r;o++)t[o]=e[o]+n[o]*i;return t}function Un(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=e[a][s]+n[a][s]*i}return t}function Xn(t,e){for(var n=t.length,i=e.length,r=n>i?e:t,o=Math.min(n,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,i);s++)r.push({offset:a.offset,color:a.color.slice()})}function Yn(t,e,n){var i=t,r=e;if(i.push&&r.push){var o=i.length,a=r.length;if(o!==a)if(o>a)i.length=a;else for(var s=o;s<a;s++)i.push(1===n?r[s]:Vn.call(r[s]));var l=i[0]&&i[0].length;for(s=0;s<i.length;s++)if(1===n)isNaN(i[s])&&(i[s]=r[s]);else for(var u=0;u<l;u++)isNaN(i[s][u])&&(i[s][u]=r[s][u])}}function Zn(t){if(A(t)){var e=t.length;if(A(t[0])){for(var n=[],i=0;i<e;i++)n.push(Vn.call(t[i]));return n}return Vn.call(t)}return t}function qn(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function jn(t){return 4===t||5===t}function Kn(t){return 1===t||2===t}var $n=[0,0,0,0],Qn=function(){function t(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,r=i.length,o=!1,a=6,s=e;if(A(e)){var l=function(t){return A(t&&t[0])?2:1}(e);a=l,(1===l&&!W(e[0])||2===l&&!W(e[0][0]))&&(o=!0)}else if(W(e)&&!q(e))a=0;else if(V(e))if(isNaN(+e)){var u=On(e);u&&(s=u,a=3)}else a=0;else if(Z(e)){var h=I({},s);h.colorStops=L(e.colorStops,(function(t){return{offset:t.offset,color:On(t.color)}})),"linear"===e.type?a=4:function(t){return"radial"===t.type}(e)&&(a=5),s=h}0===r?this.valType=a:a===this.valType&&6!==a||(o=!0),this.discrete=this.discrete||o;var c={time:t,value:s,rawValue:e,percent:0};return n&&(c.easing=n,c.easingFunc=F(n)?n:Ue[n]||gn(n)),i.push(c),c},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort((function(t,e){return t.time-e.time}));for(var i=this.valType,r=n.length,o=n[r-1],a=this.discrete,s=Kn(i),l=jn(i),u=0;u<r;u++){var h=n[u],c=h.value,p=o.value;h.percent=h.time/t,a||(s&&u!==r-1?Yn(c,p,i):l&&Xn(c.colorStops,p.colorStops))}if(!a&&5!==i&&e&&this.needsAnimate()&&e.needsAnimate()&&i===e.valType&&!e._finished){this._additiveTrack=e;var d=n[0].value;for(u=0;u<r;u++)0===i?n[u].additiveValue=n[u].value-d:3===i?n[u].additiveValue=Gn([],n[u].value,d,-1):Kn(i)&&(n[u].additiveValue=1===i?Gn([],n[u].value,d,-1):Un([],n[u].value,d,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,i,r,o=null!=this._additiveTrack,a=o?"additiveValue":"value",s=this.valType,l=this.keyframes,u=l.length,h=this.propName,c=3===s,p=this._lastFr,d=Math.min;if(1===u)i=r=l[0];else{if(e<0)n=0;else if(e<this._lastFrP){for(n=d(p+1,u-1);n>=0&&!(l[n].percent<=e);n--);n=d(n,u-2)}else{for(n=p;n<u&&!(l[n].percent>e);n++);n=d(n-1,u-2)}r=l[n+1],i=l[n]}if(i&&r){this._lastFr=n,this._lastFrP=e;var f=r.percent-i.percent,g=0===f?1:d((e-i.percent)/f,1);r.easingFunc&&(g=r.easingFunc(g));var y=o?this._additiveValue:c?$n:t[h];if(!Kn(s)&&!c||y||(y=this._additiveValue=[]),this.discrete)t[h]=g<1?i.rawValue:r.rawValue;else if(Kn(s))1===s?Wn(y,i[a],r[a],g):function(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=Hn(e[a][s],n[a][s],i)}}(y,i[a],r[a],g);else if(jn(s)){var v=i[a],m=r[a],_=4===s;t[h]={type:_?"linear":"radial",x:Hn(v.x,m.x,g),y:Hn(v.y,m.y,g),colorStops:L(v.colorStops,(function(t,e){var n=m.colorStops[e];return{offset:Hn(t.offset,n.offset,g),color:qn(Wn([],t.color,n.color,g))}})),global:m.global},_?(t[h].x2=Hn(v.x2,m.x2,g),t[h].y2=Hn(v.y2,m.y2,g)):t[h].r=Hn(v.r,m.r,g)}else if(c)Wn(y,i[a],r[a],g),o||(t[h]=qn(y));else{var x=Hn(i[a],r[a],g);o?this._additiveValue=x:t[h]=x}o&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;0===e?t[n]=t[n]+i:3===e?(On(t[n],$n),Gn($n,$n,i,1),t[n]=qn($n)):1===e?Gn(t[n],t[n],i,1):2===e&&Un(t[n],t[n],i,1)},t}(),Jn=function(){function t(t,e,n,i){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i?S("Can' use additive animation on looped animation."):(this._additiveAnimators=i,this._allowDiscrete=n)}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,N(e),n)},t.prototype.whenWithKeys=function(t,e,n,i){for(var r=this._tracks,o=0;o<n.length;o++){var a=n[o],s=r[a];if(!s){s=r[a]=new Qn(a);var l=void 0,u=this._getAdditiveTrack(a);if(u){var h=u.keyframes,c=h[h.length-1];l=c&&c.value,3===u.valType&&l&&(l=qn(l))}else l=this._target[a];if(null==l)continue;t>0&&s.addKeyframe(0,Zn(l),i),this._trackKeys.push(a)}s.addKeyframe(t,Zn(e[a]),i)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n<e;n++)t[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},t.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},t.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var r=n[i].getTrack(t);r&&(e=r)}return e},t.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,r=0;r<this._trackKeys.length;r++){var o=this._trackKeys[r],a=this._tracks[o],s=this._getAdditiveTrack(o),l=a.keyframes,u=l.length;if(a.prepare(i,s),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var h=l[u-1];h&&(e._target[a.propName]=h.rawValue),a.setFinished()}else n.push(a)}if(n.length||this._force){var c=new yn({life:i,loop:this._loop,delay:this._delay||0,onframe:function(t){e._started=2;var i=e._additiveAnimators;if(i){for(var r=!1,o=0;o<i.length;o++)if(i[o]._clip){r=!0;break}r||(e._additiveAnimators=null)}for(o=0;o<n.length;o++)n[o].step(e._target,t);var a=e._onframeCbs;if(a)for(o=0;o<a.length;o++)a[o](e._target,t)},ondestroy:function(){e._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),t&&c.setEasing(t)}else this._doneCallback();return this}},t.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},t.prototype.delay=function(t){return this._delay=t,this},t.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},t.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},t.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(t){return this._tracks[t]},t.prototype.getTracks=function(){var t=this;return L(this._trackKeys,(function(e){return t._tracks[e]}))},t.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,r=0;r<t.length;r++){var o=n[t[r]];o&&!o.isFinished()&&(e?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var a=!0;for(r=0;r<i.length;r++)if(!n[i[r]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},t.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var i=0;i<e.length;i++){var r=e[i],o=this._tracks[r];if(o&&!o.isFinished()){var a=o.keyframes,s=a[n?0:a.length-1];s&&(t[r]=Zn(s.rawValue))}}}},t.prototype.__changeFinalValue=function(t,e){e=e||N(t);for(var n=0;n<e.length;n++){var i=e[n],r=this._tracks[i];if(r){var o=r.keyframes;if(o.length>1){var a=o.pop();r.addKeyframe(a.time,t[i]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},t}();const ti=Jn;function ei(){return(new Date).getTime()}var ni=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return n(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){for(var e=ei()-this._pausedTime,n=e-this._time,i=this._head;i;){var r=i.next;i.step(e,n)?(i.ondestroy(),this.removeClip(i),i=r):i=r}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0,We((function e(){t._running&&(We(e),!t._paused&&t.update())}))},e.prototype.start=function(){this._running||(this._time=ei(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=ei(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=ei()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new ti(t,e.loop);return this.addAnimator(n),n},e}(Pt);const ii=ni;var ri,oi,ai=r.domSupported,si=(oi={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:ri=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:L(ri,(function(t){var e=t.replace("mouse","pointer");return oi.hasOwnProperty(e)?e:t}))}),li=["mousemove","mouseup"],ui=["pointermove","pointerup"],hi=!1;function ci(t){var e=t.pointerType;return"pen"===e||"touch"===e}function pi(t){t&&(t.zrByTouch=!0)}function di(t,e){for(var n=e,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return i}var fi=function(t,e){this.stopPropagation=pt,this.stopImmediatePropagation=pt,this.preventDefault=pt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},gi={mousedown:function(t){t=qt(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=qt(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=qt(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){di(this,(t=qt(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){hi=!0,t=qt(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){hi||(t=qt(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){pi(t=qt(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),gi.mousemove.call(this,t),gi.mousedown.call(this,t)},touchmove:function(t){pi(t=qt(this.dom,t)),this.handler.processGesture(t,"change"),gi.mousemove.call(this,t)},touchend:function(t){pi(t=qt(this.dom,t)),this.handler.processGesture(t,"end"),gi.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&gi.click.call(this,t)},pointerdown:function(t){gi.mousedown.call(this,t)},pointermove:function(t){ci(t)||gi.mousemove.call(this,t)},pointerup:function(t){gi.mouseup.call(this,t)},pointerout:function(t){ci(t)||gi.mouseout.call(this,t)}};P(["click","dblclick","contextmenu"],(function(t){gi[t]=function(e){e=qt(this.dom,e),this.trigger(t,e)}}));var yi={pointermove:function(t){ci(t)||yi.mousemove.call(this,t)},pointerup:function(t){yi.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function vi(t,e){var n=e.domHandlers;r.pointerEventsSupported?P(si.pointer,(function(i){_i(e,i,(function(e){n[i].call(t,e)}))})):(r.touchEventsSupported&&P(si.touch,(function(i){_i(e,i,(function(r){n[i].call(t,r),function(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout((function(){t.touching=!1,t.touchTimer=null}),700)}(e)}))})),P(si.mouse,(function(i){_i(e,i,(function(r){r=Zt(r),e.touching||n[i].call(t,r)}))})))}function mi(t,e){function n(n){_i(e,n,(function(i){i=Zt(i),di(t,i.target)||(i=function(t,e){return qt(t.dom,new fi(t,e),!0)}(t,i),e.domHandlers[n].call(t,i))}),{capture:!0})}r.pointerEventsSupported?P(ui,n):r.touchEventsSupported||P(li,n)}function _i(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,function(t,e,n,i){t.addEventListener(e,n,i)}(t.domTarget,e,n,i)}function xi(t){var e,n,i,r,o=t.mounted;for(var a in o)o.hasOwnProperty(a)&&(e=t.domTarget,n=a,i=o[a],r=t.listenerOpts[a],e.removeEventListener(n,i,r));t.mounted={}}var wi=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e};const bi=function(t){function e(e,n){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=e,i.painterRoot=n,i._localHandlerScope=new wi(e,gi),ai&&(i._globalHandlerScope=new wi(document,yi)),vi(i,i._localHandlerScope),i}return n(e,t),e.prototype.dispose=function(){xi(this._localHandlerScope),ai&&xi(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,ai&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?mi(this,e):xi(e)}},e}(Pt);var Si=1;r.hasGlobalWindow&&(Si=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Mi=Si,Ti="#333",Ii="#ccc",Ci=Jt,Di=5e-5;function ki(t){return t>Di||t<-5e-5}var Ai=[],Pi=[],Li=[1,0,0,1,0,0],Oi=Math.abs,Ri=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return ki(this.rotation)||ki(this.x)||ki(this.y)||ki(this.scaleX-1)||ki(this.scaleY-1)||ki(this.skewX)||ki(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||[1,0,0,1,0,0],e?this.getLocalTransform(n):Ci(n),t&&(e?te(n,t,n):function(t,e){t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5]}(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(Ci(n),this.invTransform=null)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(Ai);var n=Ai[0]<0?-1:1,i=Ai[1]<0?-1:1,r=((Ai[0]-n)*e+n)/Ai[0]||0,o=((Ai[1]-i)*e+i)/Ai[1]||0;t[0]*=r,t[1]*=r,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||[1,0,0,1,0,0],ie(this.invTransform,t)},t.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),r=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||[1,0,0,1,0,0],te(Pi,t.invTransform,e),e=Pi);var n=this.originX,i=this.originY;(n||i)&&(Li[4]=n,Li[5]=i,te(Pi,e,Li),Pi[4]-=n,Pi[5]-=i,e=Pi),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&Mt(n,n,i),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&Mt(n,n,i),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&Oi(t[0]-1)>1e-10&&Oi(t[3]-1)>1e-10?Math.sqrt(Oi(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){!function(t,e){for(var n=0;n<Ni.length;n++){var i=Ni[n];t[i]=e[i]}}(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,r=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,p=t.skewY?Math.tan(-t.skewY):0;if(n||i||a||s){var d=n+a,f=i+s;e[4]=-d*r-c*f*o,e[5]=-f*o-p*d*r}else e[4]=e[5]=0;return e[0]=r,e[3]=o,e[1]=p*r,e[2]=c*o,l&&ne(e,e,l),e[4]+=n+u,e[5]+=i+h,e},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),Ni=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"],Ei={};function Bi(t,e){var n=Ei[e=e||s];n||(n=Ei[e]=new xn(500));var i=n.get(t);return null==i&&(i=u.measureText(t,e).width,n.put(t,i)),i}function zi(t,e,n,i){var r=Bi(t,e),o=Wi(e),a=Vi(0,r,n),s=Hi(0,o,i);return new ge(a,s,r,o)}function Fi(t,e,n,i){var r=((t||"")+"").split("\n");if(1===r.length)return zi(r[0],e,n,i);for(var o=new ge(0,0,0,0),a=0;a<r.length;a++){var s=zi(r[a],e,n,i);0===a?o.copy(s):o.union(s)}return o}function Vi(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function Hi(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function Wi(t){return Bi("国",t)}function Gi(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function Ui(t,e,n){var i=e.position||"inside",r=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,h="left",c="top";if(i instanceof Array)l+=Gi(i[0],n.width),u+=Gi(i[1],n.height),h=null,c=null;else switch(i){case"left":l-=r,u+=s,h="right",c="middle";break;case"right":l+=r+a,u+=s,c="middle";break;case"top":l+=a/2,u-=r,h="center",c="bottom";break;case"bottom":l+=a/2,u+=o+r,h="center";break;case"inside":l+=a/2,u+=s,h="center",c="middle";break;case"insideLeft":l+=r,u+=s,c="middle";break;case"insideRight":l+=a-r,u+=s,h="right",c="middle";break;case"insideTop":l+=a/2,u+=r,h="center";break;case"insideBottom":l+=a/2,u+=o-r,h="center",c="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,h="right";break;case"insideBottomLeft":l+=r,u+=o-r,c="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,h="right",c="bottom"}return(t=t||{}).x=l,t.y=u,t.align=h,t.verticalAlign=c,t}var Xi="__zr_normal__",Yi=Ni.concat(["ignore"]),Zi=O(Ni,(function(t,e){return t[e]=!0,t}),{ignore:!1}),qi={},ji=new ge(0,0,0,0),Ki=function(){function t(t){this.id=b(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,r=e.innerTransformable,o=void 0,a=void 0,s=!1;r.parent=i?this:null;var l=!1;if(r.copyTransform(e),null!=n.position){var u=ji;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),i||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(qi,n,u):Ui(qi,n,u),r.x=qi.x,r.y=qi.y,o=qi.align,a=qi.verticalAlign;var h=n.origin;if(h&&null!=n.rotation){var c=void 0,p=void 0;"center"===h?(c=.5*u.width,p=.5*u.height):(c=Gi(h[0],u.width),p=Gi(h[1],u.height)),l=!0,r.originX=-r.x+c+(i?0:u.x),r.originY=-r.y+p+(i?0:u.y)}}null!=n.rotation&&(r.rotation=n.rotation);var d=n.offset;d&&(r.x+=d[0],r.y+=d[1],l||(r.originX=-d[0],r.originY=-d[1]));var f=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,v=void 0,m=void 0;f&&this.canBeInsideText()?(y=n.insideFill,v=n.insideStroke,null!=y&&"auto"!==y||(y=this.getInsideTextFill()),null!=v&&"auto"!==v||(v=this.getInsideTextStroke(y),m=!0)):(y=n.outsideFill,v=n.outsideStroke,null!=y&&"auto"!==y||(y=this.getOutsideFill()),null!=v&&"auto"!==v||(v=this.getOutsideStroke(y),m=!0)),(y=y||"#000")===g.fill&&v===g.stroke&&m===g.autoStroke&&o===g.align&&a===g.verticalAlign||(s=!0,g.fill=y,g.stroke=v,g.autoStroke=m,g.align=o,g.verticalAlign=a,e.setDefaultTextStyle(g)),e.__dirty|=Ne,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Ii:Ti},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&On(e);n||(n=[255,255,255,1]);for(var i=n[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(r?0:255)*(1-i);return n[3]=1,En(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},I(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(G(t))for(var n=N(t),i=0;i<n.length;i++){var r=n[i];this.attrKV(r,t[r])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],r=i.__fromStateTransition;if(!(i.getLoop()||r&&r!==Xi)){var o=i.targetName,a=o?e[o]:e;i.saveTo(a)}}},t.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,Yi)},t.prototype._savePrimaryToNormal=function(t,e,n){for(var i=0;i<n.length;i++){var r=n[i];null==t[r]||r in e||(e[r]=this[r])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(Xi,!1,t)},t.prototype.useState=function(t,e,n,i){var r=t===Xi;if(this.hasState()||!r){var o=this.currentStates,a=this.stateTransition;if(!(D(o,t)>=0)||!e&&1!==o.length){var s;if(this.stateProxy&&!r&&(s=this.stateProxy(t)),s||(s=this.states&&this.states[t]),s||r){r||this.saveCurrentToNormalState(s);var l=!!(s&&s.hoverLayer||i);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,e,!n&&!this.__inHover&&a&&a.duration>0,a);var u=this._textContent,h=this._textGuide;return u&&u.useState(t,e,n,l),h&&h.useState(t,e,n,l),r?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ne),s}S("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var i=[],r=this.currentStates,o=t.length,a=o===r.length;if(a)for(var s=0;s<o;s++)if(t[s]!==r[s]){a=!1;break}if(a)return;for(s=0;s<o;s++){var l=t[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,t)),u||(u=this.states[l]),u&&i.push(u)}var h=i[o-1],c=!!(h&&h.hoverLayer||n);c&&this._toggleHoverLayerFlag(!0);var p=this._mergeStates(i),d=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(t.join(","),p,this._normalState,!1,!e&&!this.__inHover&&d&&d.duration>0,d);var f=this._textContent,g=this._textGuide;f&&f.useStates(t,e,c),g&&g.useStates(t,e,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ne)}else this.clearStates()},t.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},t.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},t.prototype.removeState=function(t){var e=D(this.currentStates,t);if(e>=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),r=D(i,t),o=D(i,e)>=0;r>=0?o?i.splice(r,1):i[r]=e:n&&!o&&i.push(e),this.useStates(i)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},i=0;i<t.length;i++){var r=t[i];I(n,r),r.textConfig&&I(e=e||{},r.textConfig)}return e&&(n.textConfig=e),n},t.prototype._applyStateObj=function(t,e,n,i,r,o){var a=!(e&&i);e&&e.textConfig?(this.textConfig=I({},i?this.textConfig:n.textConfig),I(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,u=0;u<Yi.length;u++){var h=Yi[u],c=r&&Zi[h];e&&null!=e[h]?c?(l=!0,s[h]=e[h]):this[h]=e[h]:a&&null!=n[h]&&(c?(l=!0,s[h]=n[h]):this[h]=n[h])}if(!r)for(u=0;u<this.animators.length;u++){var p=this.animators[u],d=p.targetName;p.getLoop()||p.__changeFinalValue(d?(e||n)[d]:e||n)}l&&this._transitionState(t,s,o)},t.prototype._attachComponent=function(t){if((!t.__zr||t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},t.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},t.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new Ri,this._attachComponent(t),this._textContent=t,this.markRedraw())},t.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),I(this.textConfig,t),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=Ne;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},t.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},t.prototype.animate=function(t,e,n){var i=t?this[t]:this,r=new ti(i,e,n);return t&&(r.targetName=t),this.addAnimator(r,t),r},t.prototype.addAnimator=function(t,e){var n=this.__zr,i=this;t.during((function(){i.updateDuringAnimation(e)})).done((function(){var e=i.animators,n=D(e,t);n>=0&&e.splice(n,1)})),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,r=[],o=0;o<i;o++){var a=n[o];t&&t!==a.scope?r.push(a):a.stop(e)}return this.animators=r,this},t.prototype.animateTo=function(t,e,n){$i(this,t,e,n)},t.prototype.animateFrom=function(t,e,n){$i(this,t,e,n,!0)},t.prototype._transitionState=function(t,e,n,i){for(var r=$i(this,e,n,i),o=0;o<r.length;o++)r[o].__fromStateTransition=t},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;function n(t,n,i,r){function o(t,e){Object.defineProperty(e,0,{get:function(){return t[i]},set:function(e){t[i]=e}}),Object.defineProperty(e,1,{get:function(){return t[r]},set:function(e){t[r]=e}})}Object.defineProperty(e,t,{get:function(){return this[n]||o(this,this[n]=[]),this[n]},set:function(t){this[i]=t[0],this[r]=t[1],this[n]=t,o(this,t)}})}e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=Ne,Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),t}();function $i(t,e,n,i,r){var o=[];tr(t,"",t,e,n=n||{},i,o,r);var a=o.length,s=!1,l=n.done,u=n.aborted,h=function(){s=!0,--a<=0&&(s?l&&l():u&&u())},c=function(){--a<=0&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&n.during&&o[0].during((function(t,e){n.during(e)}));for(var p=0;p<o.length;p++){var d=o[p];h&&d.done(h),c&&d.aborted(c),n.force&&d.duration(n.duration),d.start(n.easing)}return o}function Qi(t,e,n){for(var i=0;i<n;i++)t[i]=e[i]}function Ji(t,e,n){if(A(e[n]))if(A(t[n])||(t[n]=[]),X(e[n])){var i=e[n].length;t[n].length!==i&&(t[n]=new e[n].constructor(i),Qi(t[n],e[n],i))}else{var r=e[n],o=t[n],a=r.length;if(A(r[0]))for(var s=r[0].length,l=0;l<a;l++)o[l]?Qi(o[l],r[l],s):o[l]=Array.prototype.slice.call(r[l]);else Qi(o,r,a);o.length=r.length}else t[n]=e[n]}function tr(t,e,n,i,r,o,a,s){for(var l=N(i),u=r.duration,h=r.delay,c=r.additive,p=r.setToFinal,d=!G(o),f=t.animators,g=[],y=0;y<l.length;y++){var v=l[y],m=i[v];if(null!=m&&null!=n[v]&&(d||o[v]))if(!G(m)||A(m)||Z(m))g.push(v);else{if(e){s||(n[v]=m,t.updateDuringAnimation(e));continue}tr(t,v,n[v],m,r,o&&o[v],a,s)}else s||(n[v]=m,t.updateDuringAnimation(e),g.push(v))}var _=g.length;if(!c&&_)for(var x=0;x<f.length;x++)if((b=f[x]).targetName===e&&b.stopTracks(g)){var w=D(f,b);f.splice(w,1)}if(r.force||(g=R(g,(function(t){return e=i[t],r=n[t],!(e===r||A(e)&&A(r)&&function(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}(e,r));var e,r})),_=g.length),_>0||r.force&&!a.length){var b,S=void 0,M=void 0,T=void 0;if(s)for(M={},p&&(S={}),x=0;x<_;x++)M[v=g[x]]=n[v],p?S[v]=i[v]:n[v]=i[v];else if(p)for(T={},x=0;x<_;x++)T[v=g[x]]=Zn(n[v]),Ji(n,i,v);(b=new ti(n,!1,!1,c?R(f,(function(t){return t.targetName===e})):null)).targetName=e,r.scope&&(b.scope=r.scope),p&&S&&b.whenWithKeys(0,S,g),T&&b.whenWithKeys(0,T,g),b.whenWithKeys(null==u?500:u,s?M:i,g).delay(h||0),t.addAnimator(b,e),a.push(b)}}k(Ki,Pt),k(Ki,Ri);const er=Ki;var nr=function(t){function e(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return n(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var n=this._children,i=n.indexOf(e);i>=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=D(this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];if(t&&t!==this&&t.parent!==this&&t!==i){n[e]=t,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,i=D(n,t);return i<0||(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n<t.length;n++){var i=t[n];e&&i.removeSelfFromZr(e),i.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,e){for(var n=this._children,i=0;i<n.length;i++){var r=n[i];t.call(e,r,i)}return this},e.prototype.traverse=function(t,e){for(var n=0;n<this._children.length;n++){var i=this._children[n],r=t.call(e,i);i.isGroup&&!r&&i.traverse(t,e)}return this},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].addSelfToZr(e)},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].removeSelfFromZr(e)},e.prototype.getBoundingRect=function(t){for(var e=new ge(0,0,0,0),n=t||this._children,i=[],r=null,o=0;o<n.length;o++){var a=n[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(i);l?(ge.applyTransform(e,s,l),(r=r||e.clone()).union(e)):(r=r||s.clone()).union(s)}}return r||e},e}(er);nr.prototype.type="group";const ir=nr;
|
|
2
2
|
/*!
|
|
3
3
|
* ZRender, a high performance 2d drawing library.
|
|
4
4
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as n}from"./vendor-
|
|
1
|
+
import{j as n}from"./vendor-2663c204.js";function o(e){return console.log(" 全部数据处理 ",e),n.jsx("div",{children:n.jsx("span",{children:"三级页面"})})}export{o as default};
|
package/templates/web/dist/assets/{grandson-legacy-10cd2476.js → grandson-legacy-527ae016.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./vendor-legacy-
|
|
1
|
+
System.register(["./vendor-legacy-2df23db3.js"],(function(e,n){"use strict";var t;return{setters:[e=>{t=e.j}],execute:function(){e("default",(function(e){return console.log(" 全部数据处理 ",e),t.jsx("div",{children:t.jsx("span",{children:"三级页面"})})}))}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as a,j as e}from"./vendor-
|
|
1
|
+
import{r as a,j as e}from"./vendor-2663c204.js";import{B as n}from"./base-5bf689c3.js";import{F as i}from"./index-c1ee2fb3.js";import{g as r,a as m,b as o}from"./ScreenChartOption-a6927065.js";import"./echarts-vendor-d6ce4b9c.js";const h="_screen_137zi_13",d="_header_137zi_22",p="_headerInner_137zi_25",_="_title_137zi_31",x="_subtitle_137zi_41",j="_body_137zi_46",u="_panel_137zi_53",N="_panelTitle_137zi_61",b="_panelCenter_137zi_76",z="_chart_137zi_79",L="_metrics_137zi_83",O="_metricLabel_137zi_101",C="_metricValue_137zi_105",s={screen:h,header:d,headerInner:p,title:_,subtitle:x,body:j,panel:u,panelTitle:N,panelCenter:b,chart:z,metrics:L,metricLabel:O,metricValue:C};function v(){const t=a.useMemo(()=>r(),[]),l=a.useMemo(()=>m({series:[{name:"占比",data:[{name:"在线",value:86},{name:"离线",value:9},{name:"维护",value:5}]}]}),[]),c=a.useMemo(()=>o(),[]);return e.jsxs("div",{className:s.screen,children:[e.jsx("header",{className:s.header,children:e.jsx(i,{duration:4,delay:2,children:e.jsxs("div",{className:s.headerInner,children:[e.jsx("h1",{className:s.title,children:"示例大屏 · SSNodeFullStack"}),e.jsx("span",{className:s.subtitle,children:"静态数据 · 纯前端 · 1920×1080"})]})})}),e.jsxs("main",{className:s.body,children:[e.jsxs("section",{className:s.panel,children:[e.jsx("h2",{className:s.panelTitle,children:"月度趋势"}),e.jsx(n,{className:s.chart,chartOption:t})]}),e.jsxs("section",{className:"".concat(s.panel," ").concat(s.panelCenter),children:[e.jsx("h2",{className:s.panelTitle,children:"运行状态"}),e.jsx(n,{className:s.chart,chartOption:l}),e.jsxs("ul",{className:s.metrics,children:[e.jsxs("li",{children:[e.jsx("span",{className:s.metricLabel,children:"在线率"}),e.jsx("span",{className:s.metricValue,children:"86%"})]}),e.jsxs("li",{children:[e.jsx("span",{className:s.metricLabel,children:"告警数"}),e.jsx("span",{className:s.metricValue,children:"3"})]}),e.jsxs("li",{children:[e.jsx("span",{className:s.metricLabel,children:"今日请求"}),e.jsx("span",{className:s.metricValue,children:"12,806"})]})]})]}),e.jsxs("section",{className:s.panel,children:[e.jsx("h2",{className:s.panelTitle,children:"吞吐与响应"}),e.jsx(n,{className:s.chart,chartOption:c})]})]})]})}export{v as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as n,n as h,j as a,o as I,I as v,q as c,s as q,t as A,T as H,v as z,w as u,l as K,E as V,x as X}from"./vendor-
|
|
1
|
+
import{r as n,n as h,j as a,o as I,I as v,q as c,s as q,t as A,T as H,v as z,w as u,l as K,E as V,x as X}from"./vendor-2663c204.js";import{a as r,U as T}from"./api-83561db2.js";import{I as Z}from"./index-f57c9694.js";import"./index-e4c9d42a.js";const G="_container_1d6wy_10",J="_toolbar_1d6wy_13",Q="_searchInput_1d6wy_20",W="_urlText_1d6wy_23",ee="_form_1d6wy_28",d={container:G,toolbar:J,searchInput:Q,urlText:W,form:ee},ae=s=>s?s<1024?"".concat(s," B"):s<1024*1024?"".concat((s/1024).toFixed(1)," KB"):"".concat((s/1024/1024).toFixed(2)," MB"):"-";function ie(){const[s,k]=n.useState([]),[C,O]=n.useState(0),[m,j]=n.useState(1),[p,U]=n.useState(12),[x,M]=n.useState(""),[b,w]=n.useState(!1),[B,y]=n.useState(!1),[E,f]=n.useState(!1),[S,F]=n.useState(null),[g]=h.useForm(),[L,_]=n.useState(!1),l=n.useCallback(()=>{w(!0),r.admin.image.getList({page:m,pageSize:p,name:x||void 0}).then(e=>{var t,o;k(((t=e==null?void 0:e.data)==null?void 0:t.list)||[]),O(((o=e==null?void 0:e.data)==null?void 0:o.total)||0)}).finally(()=>w(!1))},[m,p,x]);n.useEffect(()=>{l()},[l]);const N=async e=>{var t,o;if(e.size>T)return u.error("图片大小不能超过 ".concat(Math.round(T/1024/1024),"MB")),!1;y(!0);try{const i=await r.admin.upload.upload(e);(t=i==null?void 0:i.data)!=null&&t.url&&(await r.admin.image.add({name:i.data.filename||e.name,url:i.data.url,size:(o=i.data.size)!=null?o:e.size}),u.success("上传成功"),l())}finally{y(!1)}return!1},R=e=>{F(e),g.setFieldsValue({name:e.name}),f(!0)},$=async()=>{const e=await g.validateFields();if(S){_(!0);try{await r.admin.image.edit({id:S.id,name:e.name}),u.success("改名成功"),f(!1),l()}finally{_(!1)}}},D=e=>{z.confirm({title:"确认删除",content:"确定删除图片「".concat(e.name,"」吗?物理文件将一并删除。"),okType:"danger",onOk:async()=>{await r.admin.image.deleteById(e.id),u.success("删除成功"),l()}})},P=({item:e})=>a.jsx(Z,{images:[{imageUrl:e.url,description:e.name}],thumbnailSrc:e.url,thumbnailSize:{width:56,height:40}}),Y=[{title:"预览",dataIndex:"url",width:90,render:(e,t)=>a.jsx(P,{item:t})},{title:"名称",dataIndex:"name",ellipsis:!0},{title:"地址",dataIndex:"url",width:260,ellipsis:!0,render:e=>a.jsx("span",{className:d.urlText,children:e})},{title:"大小",dataIndex:"size",width:100,render:e=>ae(e)},{title:"上传时间",dataIndex:"createTime",width:170,render:e=>e?K(e).format("YYYY-MM-DD HH:mm"):"-"},{title:"操作",width:140,fixed:"right",render:(e,t)=>a.jsxs(I,{children:[a.jsx(c,{type:"link",size:"small",icon:a.jsx(V,{}),onClick:()=>R(t),children:"改名"}),a.jsx(c,{type:"link",size:"small",danger:!0,icon:a.jsx(X,{}),onClick:()=>D(t),children:"删除"})]})}];return a.jsxs("div",{className:d.container,children:[a.jsxs("div",{className:d.toolbar,children:[a.jsxs(I,{children:[a.jsx(v,{className:d.searchInput,placeholder:"按名称搜索",value:x,allowClear:!0,onChange:e=>{M(e.target.value),j(1)}}),a.jsx(c,{onClick:l,children:"查询"})]}),a.jsx(q,{showUploadList:!1,beforeUpload:N,accept:".jpg,.jpeg,.png,.webp,.gif",children:a.jsx(c,{type:"primary",icon:a.jsx(A,{}),loading:B,children:"上传图片"})})]}),a.jsx(H,{rowKey:"id",loading:b,columns:Y,dataSource:s,scroll:{x:1e3},pagination:{current:m,pageSize:p,total:C,showTotal:e=>"共 ".concat(e," 张"),onChange:(e,t)=>{j(e),U(t)}}}),a.jsx(z,{title:"图片改名",open:E,onOk:$,confirmLoading:L,onCancel:()=>f(!1),destroyOnClose:!0,children:a.jsx(h,{form:g,layout:"vertical",className:d.form,children:a.jsx(h.Item,{label:"名称",name:"name",rules:[{required:!0,message:"必填"}],children:a.jsx(v,{placeholder:"图片显示名"})})})})]})}export{ie as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as a,j as t,y as C,o as S,I as c,q as u,G as I,H as L,T as y,J as A,l as T}from"./vendor-
|
|
1
|
+
import{r as a,j as t,y as C,o as S,I as c,q as u,G as I,H as L,T as y,J as A,l as T}from"./vendor-2663c204.js";import{a as N}from"./api-83561db2.js";import"./index-e4c9d42a.js";const O={login_success:"登录成功",login_fail:"登录失败",user_create:"新增用户",user_update:"修改用户",user_delete:"删除用户",user_reset_pwd:"重置密码",user_toggle_status:"切换状态"},k={login_success:"green",login_fail:"red",user_delete:"red",user_reset_pwd:"orange"};function b(){const[g,x]=a.useState([]),[h,p]=a.useState(0),[m,r]=a.useState(!1),[o,d]=a.useState(1),[i,_]=a.useState(20),[l,j]=a.useState(""),[n,w]=a.useState(""),s=a.useCallback(()=>{r(!0),N.admin.auditLog.listAuditLogs({page:o,size:i,actorName:l||void 0,action:n||void 0}).then(e=>{e.code===200&&e.data&&(x(e.data.list),p(e.data.total))}).finally(()=>r(!1))},[o,i,l,n]);return a.useEffect(()=>{s()},[s]),t.jsx(C,{title:"日志管理",extra:t.jsxs(S,{children:[t.jsx(c,{allowClear:!0,placeholder:"操作者筛选",value:l,onChange:e=>j(e.target.value),style:{width:160}}),t.jsx(c,{allowClear:!0,placeholder:"动作筛选(如 login_success)",value:n,onChange:e=>w(e.target.value),style:{width:200}}),t.jsx(u,{icon:t.jsx(I,{}),onClick:()=>{d(1),s()},children:"搜索"}),t.jsx(u,{icon:t.jsx(L,{}),onClick:s})]}),children:t.jsx(y,{rowKey:"id",loading:m,dataSource:g,size:"small",pagination:{current:o,pageSize:i,total:h,showSizeChanger:!0,onChange:(e,f)=>{d(e),_(f)}},columns:[{title:"ID",dataIndex:"id",width:70},{title:"操作者",dataIndex:"actorName",width:140},{title:"动作",dataIndex:"action",width:120,render:e=>t.jsx(A,{color:k[e],children:O[e]||e})},{title:"详情",dataIndex:"detail",render:e=>t.jsx("span",{style:{wordBreak:"break-all"},children:e})},{title:"IP",dataIndex:"ip",width:140},{title:"时间",dataIndex:"createTime",width:180,render:e=>e?T(e).format("YYYY-MM-DD HH:mm:ss"):"-"}]})})}export{b as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n,u as j,e as v,r as t,j as a,C as y,I as r,U as C,a1 as I,a2 as N,q as P}from"./vendor-
|
|
1
|
+
import{n,u as j,e as v,r as t,j as a,C as y,I as r,U as C,a1 as I,a2 as N,q as P}from"./vendor-2663c204.js";import{a as i}from"./api-83561db2.js";import{P as w}from"./index-e4c9d42a.js";import{a as L}from"./theme-3a4c7290.js";const T="_LoginWrapper_1o7tn_10",S="_brandPanel_1o7tn_18",B="_brandInner_1o7tn_28",F="_brandTitle_1o7tn_34",k="_brandLine_1o7tn_42",R="_brandSlogan_1o7tn_50",q="_brandFoot_1o7tn_56",z="_blob_1o7tn_61",W="_blob1_1o7tn_68",$="_blob2_1o7tn_75",E="_formPanel_1o7tn_82",O="_loginCard_1o7tn_89",U="_title_1o7tn_98",M="_captchaRow_1o7tn_113",H="_captchaBox_1o7tn_122",A="_captchaImg_1o7tn_140",D="_submitBtn_1o7tn_153",G="_forgetPasswordTip_1o7tn_159",e={LoginWrapper:T,brandPanel:S,brandInner:B,brandTitle:F,brandLine:k,brandSlogan:R,brandFoot:q,blob:z,blob1:W,blob2:$,formPanel:E,loginCard:O,title:U,captchaRow:M,captchaBox:H,captchaImg:A,submitBtn:D,forgetPasswordTip:G};function J(){const[l]=n.useForm(),d=j(),m=v(),[p,b]=t.useState(""),[_,h]=t.useState(""),[u,c]=t.useState(!1),o=t.useCallback(()=>{i.admin.user.getCaptcha().then(s=>{s!=null&&s.svg&&(b(s.svg),h(s.captchaId))})},[]),g=async()=>{const s=await l.validateFields();c(!0),i.admin.user.login({username:s.username,password:s.password,captchaId:_,verifycode:s.verifycode}).then(x=>{if(x){const f=decodeURIComponent(m.search.replace("?","")).replace("redirect=","");d(f||"/background")}else o()}).finally(()=>c(!1))};return t.useEffect(()=>{o()},[o]),a.jsx(y,{theme:L,children:a.jsxs("div",{className:e.LoginWrapper,children:[a.jsxs("div",{className:e.brandPanel,children:[a.jsxs("div",{className:e.brandInner,children:[a.jsxs("div",{className:e.brandTitle,children:[a.jsx("span",{className:e.brandLine}),w.title]}),a.jsx("div",{className:e.brandFoot,children:"可视化大屏与后台管理系统"})]}),a.jsx("div",{className:"".concat(e.blob," ").concat(e.blob1)}),a.jsx("div",{className:"".concat(e.blob," ").concat(e.blob2)})]}),a.jsx("div",{className:e.formPanel,children:a.jsxs("div",{className:e.loginCard,children:[a.jsxs("div",{className:e.title,children:[a.jsx("h1",{children:"欢迎登录"}),a.jsx("p",{children:"请使用账号密码登录后台管理系统"})]}),a.jsxs(n,{form:l,layout:"vertical",onFinish:g,requiredMark:!1,children:[a.jsx(n.Item,{name:"username",rules:[{required:!0,message:"请输入用户名"}],children:a.jsx(r,{size:"large",allowClear:!0,prefix:a.jsx(C,{style:{color:"#9297a0"}}),placeholder:"用户名"})}),a.jsx(n.Item,{name:"password",rules:[{required:!0,message:"请输入密码"}],children:a.jsx(r.Password,{size:"large",prefix:a.jsx(I,{style:{color:"#9297a0"}}),placeholder:"密码"})}),a.jsxs("div",{className:e.captchaRow,children:[a.jsx(n.Item,{name:"verifycode",rules:[{required:!0,message:"请输入验证码"}],noStyle:!0,children:a.jsx(r,{size:"large",allowClear:!0,prefix:a.jsx(N,{style:{color:"#9297a0"}}),placeholder:"验证码"})}),a.jsx("div",{className:e.captchaBox,dangerouslySetInnerHTML:{__html:p},onClick:o,title:"点击刷新验证码"})]}),a.jsx(P,{type:"primary",size:"large",block:!0,htmlType:"submit",loading:u,className:e.submitBtn,children:"登录"}),a.jsx("p",{className:e.forgetPasswordTip,children:"如果忘记密码,请联系管理员"})]})]})})]})})}J.propTypes={};export{J as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u,j as e,p as c}from"./vendor-
|
|
1
|
+
import{u,j as e,p as c}from"./vendor-2663c204.js";import{P as g,R as x}from"./index-e4c9d42a.js";const f="_background_5sl44_10",j="_row_5sl44_18",_="_pagetitle_5sl44_25",m="_filetitle_5sl44_30",n={background:f,row:j,pagetitle:_,filetitle:m};function $(){const o=u(),h=(r=[])=>r.reduce((a,l)=>c.join(a,l.path||""),""),i=(r,a=0,l=[])=>r.map((s,p)=>{var d;if(s.redirect||!(s.name||s.path))return null;const t=h([...l,s]);return((d=s.children)==null?void 0:d.length)>0?e.jsxs("div",{style:{display:"flex",flexDirection:"column",marginLeft:a*15},children:[e.jsxs("div",{className:n.row,children:[e.jsx("span",{className:n.pagetitle,onClick:()=>{o(t)},children:s.name?"".concat(s.name,"(").concat(t,")"):t}),e.jsx("span",{className:n.filetitle,children:c.join("src",s.component||"")})]}),i(s.children,a+1,[...l,s])]},"".concat(s.path+p)):e.jsxs("div",{className:n.row,children:[e.jsx("span",{className:n.pagetitle,style:{marginLeft:a*15},onClick:()=>{o(t)},children:s.name?"".concat(s.name,"(").concat(t,")"):t},"".concat(s.path+p)),e.jsx("span",{className:n.filetitle,children:c.join("src",s.component||"")})]},s.path)});return e.jsxs("div",{className:n.background,children:[e.jsxs("h2",{style:{margin:0},children:[g.title," - 目录"]}),e.jsxs("h4",{style:{margin:"15px 0px 0px"},children:["版本号:","v1.0.0"]}),i(x)]})}export{$ as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,n as l,j as e,y as W,o as F,I as r,q as d,G as X,W as _,H as N,T as Q,J as u,l as Z,E as ee,X as se,Y as ae,x as te,v as m,$ as j,w as p}from"./vendor-
|
|
1
|
+
import{r as t,n as l,j as e,y as W,o as F,I as r,q as d,G as X,W as _,H as N,T as Q,J as u,l as Z,E as ee,X as se,Y as ae,x as te,v as m,$ as j,w as p}from"./vendor-2663c204.js";import{a as o}from"./api-83561db2.js";import"./index-e4c9d42a.js";function de(){const[M,P]=t.useState([]),[U,T]=t.useState(0),[D,v]=t.useState(!1),[b,g]=t.useState(1),[S,Y]=t.useState(20),[w,L]=t.useState(""),[x,R]=t.useState(),[O,$]=t.useState(""),[q,C]=t.useState(!1),[H,k]=t.useState(!1),[n,y]=t.useState(null),[E,h]=t.useState(!1),[f]=l.useForm(),[I]=l.useForm(),i=t.useCallback(()=>{v(!0),o.admin.userManage.listUsers({page:b,size:S,username:w||void 0}).then(s=>{s.code===200&&s.data&&(P(s.data.list),T(s.data.total))}).finally(()=>v(!1))},[b,S,w]);t.useEffect(()=>{i()},[i]),t.useEffect(()=>{o.admin.user.getInfo().then(s=>{(s==null?void 0:s.status)==="SUCCESS"&&s.data&&(R(s.data.id),$(s.data.role))})},[]);const K=()=>{f.validateFields().then(s=>{h(!0),o.admin.userManage.createUser(s).then(a=>{a.code===200&&(p.success("新增成功"),C(!1),f.resetFields(),i())}).finally(()=>h(!1))}).catch(()=>{})},V=s=>{y(s),I.setFieldsValue({nickname:s.nickname,role:s.role,status:s.status}),k(!0)},A=()=>{n&&I.validateFields().then(s=>{h(!0),o.admin.userManage.updateUser({id:n.id,...s}).then(a=>{a.code===200&&(p.success("修改成功"),k(!1),y(null),i())}).finally(()=>h(!1))}).catch(()=>{})},B=s=>{m.confirm({title:"确认删除",content:"确定删除用户「".concat(s.username,"」?该操作不可恢复。"),okType:"danger",onOk:()=>o.admin.userManage.deleteUser(s.id).then(a=>{a.code===200&&(p.success("已删除"),i())})})},G=s=>{o.admin.userManage.toggleUserStatus(s.id).then(a=>{a.code===200&&(p.success(s.status==="1"?"已禁用":"已启用"),i())})},J=s=>{m.confirm({title:"重置密码",content:"将重置用户「".concat(s.username,"」的密码,生成新随机密码。继续?"),onOk:()=>o.admin.userManage.resetUserPassword(s.id).then(a=>{var c;a.code===200&&((c=a.data)!=null&&c.password)&&(m.info({title:"重置成功",content:e.jsxs("div",{children:["新密码(仅显示一次,请妥善保管):",e.jsx(r.Password,{value:a.data.password,readOnly:!0,style:{marginTop:8}})]})}),i())})})};return e.jsxs(W,{title:"用户管理",extra:e.jsxs(F,{children:[e.jsx(r,{allowClear:!0,placeholder:"用户名搜索",value:w,onChange:s=>L(s.target.value),onPressEnter:()=>{g(1),i()},style:{width:180}}),e.jsx(d,{icon:e.jsx(X,{}),onClick:()=>{g(1),i()},children:"搜索"}),e.jsx(d,{icon:e.jsx(_,{}),type:"primary",onClick:()=>C(!0),children:"新增用户"}),e.jsx(d,{icon:e.jsx(N,{}),onClick:i})]}),children:[e.jsx(Q,{rowKey:"id",loading:D,dataSource:M,size:"small",pagination:{current:b,pageSize:S,total:U,showSizeChanger:!0,onChange:(s,a)=>{g(s),Y(a)}},columns:[{title:"ID",dataIndex:"id",width:60},{title:"用户名",dataIndex:"username"},{title:"昵称",dataIndex:"nickname"},{title:"角色",dataIndex:"role",width:100,render:s=>s==="superadmin"?e.jsx(u,{color:"red",children:"超管"}):s==="admin"?e.jsx(u,{color:"blue",children:"管理员"}):e.jsx(u,{children:"普通"})},{title:"状态",dataIndex:"status",width:80,render:s=>s==="1"?e.jsx(u,{color:"green",children:"启用"}):e.jsx(u,{children:"禁用"})},{title:"创建时间",dataIndex:"createTime",width:180,render:s=>s?Z(s).format("YYYY-MM-DD HH:mm:ss"):"-"},{title:"操作",key:"op",width:240,fixed:"right",render:(s,a)=>{const c=x!==void 0&&a.id===x,z=a.role==="admin"||a.role==="superadmin";return e.jsxs(F,{size:"small",children:[e.jsx(d,{size:"small",icon:e.jsx(ee,{}),onClick:()=>V(a),disabled:z&&O!=="admin"&&O!=="superadmin",children:"编辑"}),e.jsx(d,{size:"small",icon:e.jsx(se,{}),onClick:()=>J(a),children:"重置密码"}),e.jsx(d,{size:"small",icon:e.jsx(ae,{}),onClick:()=>G(a),disabled:c,children:a.status==="1"?"禁用":"启用"}),e.jsx(d,{size:"small",danger:!0,icon:e.jsx(te,{}),onClick:()=>B(a),disabled:c||z,children:"删除"})]})}}]}),e.jsx(m,{title:"新增用户",open:q,onCancel:()=>{C(!1),f.resetFields()},onOk:K,confirmLoading:E,destroyOnClose:!0,children:e.jsxs(l,{form:f,layout:"vertical",preserve:!1,children:[e.jsx(l.Item,{name:"username",label:"用户名",rules:[{required:!0,message:"请输入用户名"}],children:e.jsx(r,{placeholder:"登录用户名"})}),e.jsx(l.Item,{name:"password",label:"密码",rules:[{required:!0,message:"请输入密码"}],children:e.jsx(r.Password,{placeholder:"初始密码"})}),e.jsx(l.Item,{name:"nickname",label:"昵称",children:e.jsx(r,{placeholder:"显示名"})}),e.jsx(l.Item,{name:"role",label:"角色",initialValue:"web",children:e.jsx(j,{options:[{value:"web",label:"普通"},{value:"admin",label:"管理员"}]})}),e.jsx(l.Item,{name:"status",label:"状态",initialValue:"1",children:e.jsx(j,{options:[{value:"1",label:"启用"},{value:"0",label:"禁用"}]})})]})}),e.jsx(m,{title:"编辑用户 - ".concat((n==null?void 0:n.username)||""),open:H,onCancel:()=>{k(!1),y(null)},onOk:A,confirmLoading:E,destroyOnClose:!0,children:e.jsxs(l,{form:I,layout:"vertical",preserve:!1,children:[e.jsx(l.Item,{name:"nickname",label:"昵称",children:e.jsx(r,{placeholder:"显示名"})}),e.jsx(l.Item,{name:"role",label:"角色",children:e.jsx(j,{options:[{value:"web",label:"普通"},{value:"admin",label:"管理员"}],disabled:(n==null?void 0:n.id)===x})}),e.jsx(l.Item,{name:"status",label:"状态",children:e.jsx(j,{options:[{value:"1",label:"启用"},{value:"0",label:"禁用"}],disabled:(n==null?void 0:n.id)===x})})]})})]})}export{de as default};
|