PluginProbe
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder / V3.3.2
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder vV3.3.2
V3.3.2 3.3.1 V-3.3.0 3.2.2 3.2.1 3.2.0 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 V3.0.3 V3.0.2 -3.0.1 V_3.0.0 1.1.1 1.1.8 1.2 1.3 1.4 1.4.18 1.5.2 1.9 2.0 2.10.0 All 139 releases
bit-form / assets / bf-602-59.js

bf-602-59.js in Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder V3.3.2, at assets/bf-602-59.js

43 lines 546.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./bf-907-205.js","./main-96.js","./main-96.css","./bf-200-43.js","./bf-781-46.js","./bf-212-373.css","./bf-431-60.js","./bf-63-62.js","./bf-762-63.js","./bf-63-372.css","./bf-705-374.css"])))=>i.map(i=>d[i]);
2 import{bp as Xm,dF as KS,j as U,u as zf,as as qm,dG as Hf,r as bt,a as nh,be as Pi,_ as Fe,bj as kv,h as Je,bo as QS,cQ as JS,dH as eb,g as tb,b1 as rb,aF as Nv,F as nb,c as ib,dI as ab,dJ as ob,K as Bv,L as sb,T as ub,I as Fv,bG as lb,bi as fb,e as cb}from"./main-96.js";import{e as hb,l as vb,C as db}from"./bf-781-46.js";import{P as pb}from"./bf-870-206.js";import{D as gb,l as mb,m as yb,n as _b,o as Sb}from"./bf-200-43.js";var _s={exports:{}},bb=_s.exports,zv;function wb(){return zv||(zv=1,(function(t,e){(function(r,n){t.exports=n(Xm(),KS())})(typeof self!="undefined"?self:bb,(function(r,n){return(function(){var i={328:function(u,l,f){Object.defineProperty(l,"__esModule",{value:!0}),l.PrintContextConsumer=l.PrintContext=void 0;var c=f(496),h=Object.prototype.hasOwnProperty.call(c,"createContext");l.PrintContext=h?c.createContext({}):null,l.PrintContextConsumer=l.PrintContext?l.PrintContext.Consumer:function(){return null}},428:function(u,l,f){Object.defineProperty(l,"__esModule",{value:!0}),l.ReactToPrint=void 0;var c=f(316),h=f(496),v=f(190),d=f(328),g=f(940),p=(function(m){function y(){var _=m.apply(this,c.__spreadArray([],c.__read(arguments),!1))||this;return _.startPrint=function(S){var b=_.props,w=b.onAfterPrint,x=b.onPrintError,C=b.print,D=b.documentTitle;setTimeout((function(){var A,T;if(S.contentWindow)if(S.contentWindow.focus(),C)C(S).then((function(){return w==null?void 0:w()})).then((function(){return _.handleRemoveIframe()})).catch((function(O){x?x("print",O):_.logMessages(["An error was thrown by the specified `print` function"])}));else{if(S.contentWindow.print){var k=(T=(A=S.contentDocument)===null||A===void 0?void 0:A.title)!==null&&T!==void 0?T:"",P=S.ownerDocument.title;D&&(S.ownerDocument.title=D,S.contentDocument&&(S.contentDocument.title=D)),S.contentWindow.print(),D&&(S.ownerDocument.title=P,S.contentDocument&&(S.contentDocument.title=k))}else _.logMessages(["Printing for this browser is not currently possible: the browser does not have a `print` method available for iframes."]);w==null||w(),_.handleRemoveIframe()}else _.logMessages(["Printing failed because the `contentWindow` of the print iframe did not load. This is possibly an error with `react-to-print`. Please file an issue: https://github.com/gregnb/react-to-print/issues/"])}),500)},_.triggerPrint=function(S){var b=_.props,w=b.onBeforePrint,x=b.onPrintError;if(w){var C=w();C&&typeof C.then=="function"?C.then((function(){_.startPrint(S)})).catch((function(D){x&&x("onBeforePrint",D)})):_.startPrint(S)}else _.startPrint(S)},_.handlePrint=function(S){var b=_.props,w=b.bodyClass,x=b.content,C=b.copyStyles,D=b.fonts,A=b.pageStyle,T=b.nonce,k=typeof S=="function"?S():null;if(k&&typeof x=="function"&&_.logMessages(['"react-to-print" received a `content` prop and a content param passed the callback return by `useReactToPrint. The `content` prop will be ignored.'],"warning"),k||typeof x!="function"||(k=x()),k!==void 0)if(k!==null){var P=document.createElement("iframe");P.width="".concat(document.documentElement.clientWidth,"px"),P.height="".concat(document.documentElement.clientHeight,"px"),P.style.position="absolute",P.style.top="-".concat(document.documentElement.clientHeight+100,"px"),P.style.left="-".concat(document.documentElement.clientWidth+100,"px"),P.id="printWindow",P.srcdoc="<!DOCTYPE html>";var O=(0,v.findDOMNode)(k);if(O){var B=O.cloneNode(!0),F=B instanceof Text,$=document.querySelectorAll("link[rel~='stylesheet'], link[as='style']"),W=F?[]:B.querySelectorAll("img"),z=F?[]:B.querySelectorAll("video"),q=D?D.length:0;_.numResourcesToLoad=$.length+W.length+z.length+q,_.resourcesLoaded=[],_.resourcesErrored=[];var H=function(X,ne){_.resourcesLoaded.includes(X)?_.logMessages(["Tried to mark a resource that has already been handled",X],"debug"):(ne?(_.logMessages(c.__spreadArray(['"react-to-print" was unable to load a resource but will continue attempting to print the page'],c.__read(ne),!1)),_.resourcesErrored.push(X)):_.resourcesLoaded.push(X),_.resourcesLoaded.length+_.resourcesErrored.length===_.numResourcesToLoad&&_.triggerPrint(P))};P.onload=function(){var X,ne,K,ue;P.onload=null;var te=P.contentDocument||((ne=P.contentWindow)===null||ne===void 0?void 0:ne.document);if(te){te.body.appendChild(B),D&&(!((K=P.contentDocument)===null||K===void 0)&&K.fonts&&(!((ue=P.contentWindow)===null||ue===void 0)&&ue.FontFace)?D.forEach((function(St){var be=new FontFace(St.family,St.source,{weight:St.weight,style:St.style});P.contentDocument.fonts.add(be),be.loaded.then((function(){H(be)})).catch((function(Ee){H(be,["Failed loading the font:",be,"Load error:",Ee])}))})):(D.forEach((function(St){return H(St)})),_.logMessages(['"react-to-print" is not able to load custom fonts because the browser does not support the FontFace API but will continue attempting to print the page'])));var He=typeof A=="function"?A():A;if(typeof He!="string")_.logMessages(['"react-to-print" expected a "string" from `pageStyle` but received "'.concat(typeof He,'". Styles from `pageStyle` will not be applied.')]);else{var Ze=te.createElement("style");T&&(Ze.setAttribute("nonce",T),te.head.setAttribute("nonce",T)),Ze.appendChild(te.createTextNode(He)),te.head.appendChild(Ze)}if(w&&(X=te.body.classList).add.apply(X,c.__spreadArray([],c.__read(w.split(" ")),!1)),!F){for(var E=F?[]:O.querySelectorAll("canvas"),R=te.querySelectorAll("canvas"),I=0;I<E.length;++I){var L=E[I],N=R[I].getContext("2d");N&&N.drawImage(L,0,0)}var Z=function(St){var be=W[St],Ee=be.getAttribute("src");if(Ee){var Dt=new Image;Dt.onload=function(){return H(be)},Dt.onerror=function(dn,ia,Do,$t,vt){return H(be,["Error loading <img>",be,"Error",vt])},Dt.src=Ee}else H(be,['Found an <img> tag with an empty "src" attribute. This prevents pre-loading it. The <img> is:',be])};for(I=0;I<W.length;I++)Z(I);var J=function(St){var be=z[St];be.preload="auto";var Ee=be.getAttribute("poster");if(Ee){var Dt=new Image;Dt.onload=function(){return H(be)},Dt.onerror=function(dn,ia,Do,$t,vt){return H(be,["Error loading video poster",Ee,"for video",be,"Error:",vt])},Dt.src=Ee}else be.readyState>=2?H(be):(be.onloadeddata=function(){return H(be)},be.onerror=function(dn,ia,Do,$t,vt){return H(be,["Error loading video",be,"Error",vt])},be.onstalled=function(){return H(be,["Loading video stalled, skipping",be])})};for(I=0;I<z.length;I++)J(I);var ve="input",Ve=O.querySelectorAll(ve),Ge=te.querySelectorAll(ve);for(I=0;I<Ve.length;I++)Ge[I].value=Ve[I].value;var ae="input[type=checkbox],input[type=radio]",Se=O.querySelectorAll(ae),_t=te.querySelectorAll(ae);for(I=0;I<Se.length;I++)_t[I].checked=Se[I].checked;var Mt="select",jt=O.querySelectorAll(Mt),Gr=te.querySelectorAll(Mt);for(I=0;I<jt.length;I++)Gr[I].value=jt[I].value}if(C)for(var or=document.querySelectorAll("style, link[rel~='stylesheet'], link[as='style']"),vn=function(St,be){var Ee=or[St];if(Ee.tagName.toLowerCase()==="style"){var Dt=te.createElement(Ee.tagName),dn=Ee.sheet;if(dn){var ia="";try{for(var Do=dn.cssRules.length,$t=0;$t<Do;++$t)typeof dn.cssRules[$t].cssText=="string"&&(ia+="".concat(dn.cssRules[$t].cssText,`\r
3 `))}catch($S){_.logMessages(["A stylesheet could not be accessed. This is likely due to the stylesheet having cross-origin imports, and many browsers block script access to cross-origin stylesheets. See https://github.com/gregnb/react-to-print/issues/429 for details. You may be able to load the sheet by both marking the stylesheet with the cross `crossorigin` attribute, and setting the `Access-Control-Allow-Origin` header on the server serving the stylesheet. Alternatively, host the stylesheet on your domain to avoid this issue entirely.",Ee],"warning")}Dt.setAttribute("id","react-to-print-".concat(St)),T&&Dt.setAttribute("nonce",T),Dt.appendChild(te.createTextNode(ia)),te.head.appendChild(Dt)}}else if(Ee.getAttribute("href"))if(Ee.hasAttribute("disabled"))_.logMessages(["`react-to-print` encountered a <link> tag with a `disabled` attribute and will ignore it. Note that the `disabled` attribute is deprecated, and some browsers ignore it. You should stop using it. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-disabled. The <link> is:",Ee],"warning"),H(Ee);else{for(var vt=te.createElement(Ee.tagName),jS=($t=0,Ee.attributes.length);$t<jS;++$t){var vl=Ee.attributes[$t];vl&&vt.setAttribute(vl.nodeName,vl.nodeValue||"")}vt.onload=function(){return H(vt)},vt.onerror=function($S,qO,jO,$O,ZS){return H(vt,["Failed to load",vt,"Error:",ZS])},T&&vt.setAttribute("nonce",T),te.head.appendChild(vt)}else _.logMessages(["`react-to-print` encountered a <link> tag with an empty `href` attribute. In addition to being invalid HTML, this can cause problems in many browsers, and so the <link> was not loaded. The <link> is:",Ee],"warning"),H(Ee)},qS=(I=0,or.length);I<qS;++I)vn(I)}_.numResourcesToLoad!==0&&C||_.triggerPrint(P)},_.handleRemoveIframe(!0),document.body.appendChild(P)}else _.logMessages(['"react-to-print" could not locate the DOM node corresponding with the `content` prop'])}else _.logMessages(['There is nothing to print because the "content" prop returned "null". Please ensure "content" is renderable before allowing "react-to-print" to be called.']);else _.logMessages(["To print a functional component ensure it is wrapped with `React.forwardRef`, and ensure the forwarded ref is used. See the README for an example: https://github.com/gregnb/react-to-print#examples"])},_.handleRemoveIframe=function(S){var b=_.props.removeAfterPrint;if(S||b){var w=document.getElementById("printWindow");w&&document.body.removeChild(w)}},_.logMessages=function(S,b){b===void 0&&(b="error"),_.props.suppressErrors},_}return c.__extends(y,m),y.prototype.handleClick=function(_,S){var b=this,w=this.props,x=w.onBeforeGetContent,C=w.onPrintError;if(x){var D=x();D&&typeof D.then=="function"?D.then((function(){return b.handlePrint(S)})).catch((function(A){C&&C("onBeforeGetContent",A)})):this.handlePrint(S)}else this.handlePrint(S)},y.prototype.render=function(){var _=this.props,S=_.children,b=_.trigger;if(b)return h.cloneElement(b(),{onClick:this.handleClick.bind(this)});if(!d.PrintContext)return this.logMessages(['"react-to-print" requires React ^16.3.0 to be able to use "PrintContext"']),null;var w={handlePrint:this.handleClick.bind(this)};return h.createElement(d.PrintContext.Provider,{value:w},S)},y.defaultProps=g.defaultProps,y})(h.Component);l.ReactToPrint=p},940:function(u,l){Object.defineProperty(l,"__esModule",{value:!0}),l.defaultProps=void 0,l.defaultProps={copyStyles:!0,pageStyle:`
4 @page {
5 /* Remove browser default header (title) and footer (url) */
6 margin: 0;
7 }
8 @media print {
9 body {
10 /* Tell browsers to print background colors */
11 -webkit-print-color-adjust: exact; /* Chrome/Safari/Edge/Opera */
12 color-adjust: exact; /* Firefox */
13 }
14 }
15 `,removeAfterPrint:!1,suppressErrors:!1}},892:function(u,l,f){Object.defineProperty(l,"__esModule",{value:!0}),l.useReactToPrint=void 0;var c=f(316),h=f(496),v=f(428),d=f(940),g=f(860),p=Object.prototype.hasOwnProperty.call(h,"useMemo")&&Object.prototype.hasOwnProperty.call(h,"useCallback");l.useReactToPrint=function(m){if(!p)return m.suppressErrors,function(){throw new Error('"react-to-print" requires React ^16.8.0 to be able to use "useReactToPrint"')};var y=h.useMemo((function(){return new v.ReactToPrint(c.__assign(c.__assign({},d.defaultProps),m))}),[m]);return h.useCallback((function(_,S){return(0,g.wrapCallbackWithArgs)(y,y.handleClick,S)(_)}),[y])}},860:function(u,l,f){Object.defineProperty(l,"__esModule",{value:!0}),l.wrapCallbackWithArgs=void 0;var c=f(316);l.wrapCallbackWithArgs=function(h,v){for(var d=[],g=2;g<arguments.length;g++)d[g-2]=arguments[g];return function(){for(var p=[],m=0;m<arguments.length;m++)p[m]=arguments[m];return v.apply(h,c.__spreadArray(c.__spreadArray([],c.__read(p),!1),c.__read(d),!1))}}},496:function(u){u.exports=r},190:function(u){u.exports=n},316:function(u,l,f){f.r(l),f.d(l,{__addDisposableResource:function(){return te},__assign:function(){return v},__asyncDelegator:function(){return $},__asyncGenerator:function(){return F},__asyncValues:function(){return W},__await:function(){return B},__awaiter:function(){return w},__classPrivateFieldGet:function(){return ne},__classPrivateFieldIn:function(){return ue},__classPrivateFieldSet:function(){return K},__createBinding:function(){return C},__decorate:function(){return g},__disposeResources:function(){return Ze},__esDecorate:function(){return m},__exportStar:function(){return D},__extends:function(){return h},__generator:function(){return x},__importDefault:function(){return X},__importStar:function(){return H},__makeTemplateObject:function(){return z},__metadata:function(){return b},__param:function(){return p},__propKey:function(){return _},__read:function(){return T},__rest:function(){return d},__runInitializers:function(){return y},__setFunctionName:function(){return S},__spread:function(){return k},__spreadArray:function(){return O},__spreadArrays:function(){return P},__values:function(){return A}});var c=function(E,R){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(I,L){I.__proto__=L}||function(I,L){for(var N in L)Object.prototype.hasOwnProperty.call(L,N)&&(I[N]=L[N])},c(E,R)};function h(E,R){if(typeof R!="function"&&R!==null)throw new TypeError("Class extends value "+String(R)+" is not a constructor or null");function I(){this.constructor=E}c(E,R),E.prototype=R===null?Object.create(R):(I.prototype=R.prototype,new I)}var v=function(){return v=Object.assign||function(E){for(var R,I=1,L=arguments.length;I<L;I++)for(var N in R=arguments[I])Object.prototype.hasOwnProperty.call(R,N)&&(E[N]=R[N]);return E},v.apply(this,arguments)};function d(E,R){var I={};for(var L in E)Object.prototype.hasOwnProperty.call(E,L)&&R.indexOf(L)<0&&(I[L]=E[L]);if(E!=null&&typeof Object.getOwnPropertySymbols=="function"){var N=0;for(L=Object.getOwnPropertySymbols(E);N<L.length;N++)R.indexOf(L[N])<0&&Object.prototype.propertyIsEnumerable.call(E,L[N])&&(I[L[N]]=E[L[N]])}return I}function g(E,R,I,L){var N,Z=arguments.length,J=Z<3?R:L===null?L=Object.getOwnPropertyDescriptor(R,I):L;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")J=Reflect.decorate(E,R,I,L);else for(var ve=E.length-1;ve>=0;ve--)(N=E[ve])&&(J=(Z<3?N(J):Z>3?N(R,I,J):N(R,I))||J);return Z>3&&J&&Object.defineProperty(R,I,J),J}function p(E,R){return function(I,L){R(I,L,E)}}function m(E,R,I,L,N,Z){function J(vn){if(vn!==void 0&&typeof vn!="function")throw new TypeError("Function expected");return vn}for(var ve,Ve=L.kind,Ge=Ve==="getter"?"get":Ve==="setter"?"set":"value",ae=!R&&E?L.static?E:E.prototype:null,Se=R||(ae?Object.getOwnPropertyDescriptor(ae,L.name):{}),_t=!1,Mt=I.length-1;Mt>=0;Mt--){var jt={};for(var Gr in L)jt[Gr]=Gr==="access"?{}:L[Gr];for(var Gr in L.access)jt.access[Gr]=L.access[Gr];jt.addInitializer=function(vn){if(_t)throw new TypeError("Cannot add initializers after decoration has completed");Z.push(J(vn||null))};var or=(0,I[Mt])(Ve==="accessor"?{get:Se.get,set:Se.set}:Se[Ge],jt);if(Ve==="accessor"){if(or===void 0)continue;if(or===null||typeof or!="object")throw new TypeError("Object expected");(ve=J(or.get))&&(Se.get=ve),(ve=J(or.set))&&(Se.set=ve),(ve=J(or.init))&&N.unshift(ve)}else(ve=J(or))&&(Ve==="field"?N.unshift(ve):Se[Ge]=ve)}ae&&Object.defineProperty(ae,L.name,Se),_t=!0}function y(E,R,I){for(var L=arguments.length>2,N=0;N<R.length;N++)I=L?R[N].call(E,I):R[N].call(E);return L?I:void 0}function _(E){return typeof E=="symbol"?E:"".concat(E)}function S(E,R,I){return typeof R=="symbol"&&(R=R.description?"[".concat(R.description,"]"):""),Object.defineProperty(E,"name",{configurable:!0,value:I?"".concat(I," ",R):R})}function b(E,R){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(E,R)}function w(E,R,I,L){return new(I||(I=Promise))((function(N,Z){function J(Ge){try{Ve(L.next(Ge))}catch(ae){Z(ae)}}function ve(Ge){try{Ve(L.throw(Ge))}catch(ae){Z(ae)}}function Ve(Ge){var ae;Ge.done?N(Ge.value):(ae=Ge.value,ae instanceof I?ae:new I((function(Se){Se(ae)}))).then(J,ve)}Ve((L=L.apply(E,R||[])).next())}))}function x(E,R){var I,L,N,Z,J={label:0,sent:function(){if(1&N[0])throw N[1];return N[1]},trys:[],ops:[]};return Z={next:ve(0),throw:ve(1),return:ve(2)},typeof Symbol=="function"&&(Z[Symbol.iterator]=function(){return this}),Z;function ve(Ve){return function(Ge){return(function(ae){if(I)throw new TypeError("Generator is already executing.");for(;Z&&(Z=0,ae[0]&&(J=0)),J;)try{if(I=1,L&&(N=2&ae[0]?L.return:ae[0]?L.throw||((N=L.return)&&N.call(L),0):L.next)&&!(N=N.call(L,ae[1])).done)return N;switch(L=0,N&&(ae=[2&ae[0],N.value]),ae[0]){case 0:case 1:N=ae;break;case 4:return J.label++,{value:ae[1],done:!1};case 5:J.label++,L=ae[1],ae=[0];continue;case 7:ae=J.ops.pop(),J.trys.pop();continue;default:if(!((N=(N=J.trys).length>0&&N[N.length-1])||ae[0]!==6&&ae[0]!==2)){J=0;continue}if(ae[0]===3&&(!N||ae[1]>N[0]&&ae[1]<N[3])){J.label=ae[1];break}if(ae[0]===6&&J.label<N[1]){J.label=N[1],N=ae;break}if(N&&J.label<N[2]){J.label=N[2],J.ops.push(ae);break}N[2]&&J.ops.pop(),J.trys.pop();continue}ae=R.call(E,J)}catch(Se){ae=[6,Se],L=0}finally{I=N=0}if(5&ae[0])throw ae[1];return{value:ae[0]?ae[1]:void 0,done:!0}})([Ve,Ge])}}}var C=Object.create?function(E,R,I,L){L===void 0&&(L=I);var N=Object.getOwnPropertyDescriptor(R,I);N&&!("get"in N?!R.__esModule:N.writable||N.configurable)||(N={enumerable:!0,get:function(){return R[I]}}),Object.defineProperty(E,L,N)}:function(E,R,I,L){L===void 0&&(L=I),E[L]=R[I]};function D(E,R){for(var I in E)I==="default"||Object.prototype.hasOwnProperty.call(R,I)||C(R,E,I)}function A(E){var R=typeof Symbol=="function"&&Symbol.iterator,I=R&&E[R],L=0;if(I)return I.call(E);if(E&&typeof E.length=="number")return{next:function(){return E&&L>=E.length&&(E=void 0),{value:E&&E[L++],done:!E}}};throw new TypeError(R?"Object is not iterable.":"Symbol.iterator is not defined.")}function T(E,R){var I=typeof Symbol=="function"&&E[Symbol.iterator];if(!I)return E;var L,N,Z=I.call(E),J=[];try{for(;(R===void 0||R-- >0)&&!(L=Z.next()).done;)J.push(L.value)}catch(ve){N={error:ve}}finally{try{L&&!L.done&&(I=Z.return)&&I.call(Z)}finally{if(N)throw N.error}}return J}function k(){for(var E=[],R=0;R<arguments.length;R++)E=E.concat(T(arguments[R]));return E}function P(){for(var E=0,R=0,I=arguments.length;R<I;R++)E+=arguments[R].length;var L=Array(E),N=0;for(R=0;R<I;R++)for(var Z=arguments[R],J=0,ve=Z.length;J<ve;J++,N++)L[N]=Z[J];return L}function O(E,R,I){if(I||arguments.length===2)for(var L,N=0,Z=R.length;N<Z;N++)!L&&N in R||(L||(L=Array.prototype.slice.call(R,0,N)),L[N]=R[N]);return E.concat(L||Array.prototype.slice.call(R))}function B(E){return this instanceof B?(this.v=E,this):new B(E)}function F(E,R,I){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var L,N=I.apply(E,R||[]),Z=[];return L={},J("next"),J("throw"),J("return"),L[Symbol.asyncIterator]=function(){return this},L;function J(Se){N[Se]&&(L[Se]=function(_t){return new Promise((function(Mt,jt){Z.push([Se,_t,Mt,jt])>1||ve(Se,_t)}))})}function ve(Se,_t){try{(Mt=N[Se](_t)).value instanceof B?Promise.resolve(Mt.value.v).then(Ve,Ge):ae(Z[0][2],Mt)}catch(jt){ae(Z[0][3],jt)}var Mt}function Ve(Se){ve("next",Se)}function Ge(Se){ve("throw",Se)}function ae(Se,_t){Se(_t),Z.shift(),Z.length&&ve(Z[0][0],Z[0][1])}}function $(E){var R,I;return R={},L("next"),L("throw",(function(N){throw N})),L("return"),R[Symbol.iterator]=function(){return this},R;function L(N,Z){R[N]=E[N]?function(J){return(I=!I)?{value:B(E[N](J)),done:!1}:Z?Z(J):J}:Z}}function W(E){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var R,I=E[Symbol.asyncIterator];return I?I.call(E):(E=A(E),R={},L("next"),L("throw"),L("return"),R[Symbol.asyncIterator]=function(){return this},R);function L(N){R[N]=E[N]&&function(Z){return new Promise((function(J,ve){(function(Ve,Ge,ae,Se){Promise.resolve(Se).then((function(_t){Ve({value:_t,done:ae})}),Ge)})(J,ve,(Z=E[N](Z)).done,Z.value)}))}}}function z(E,R){return Object.defineProperty?Object.defineProperty(E,"raw",{value:R}):E.raw=R,E}var q=Object.create?function(E,R){Object.defineProperty(E,"default",{enumerable:!0,value:R})}:function(E,R){E.default=R};function H(E){if(E&&E.__esModule)return E;var R={};if(E!=null)for(var I in E)I!=="default"&&Object.prototype.hasOwnProperty.call(E,I)&&C(R,E,I);return q(R,E),R}function X(E){return E&&E.__esModule?E:{default:E}}function ne(E,R,I,L){if(I==="a"&&!L)throw new TypeError("Private accessor was defined without a getter");if(typeof R=="function"?E!==R||!L:!R.has(E))throw new TypeError("Cannot read private member from an object whose class did not declare it");return I==="m"?L:I==="a"?L.call(E):L?L.value:R.get(E)}function K(E,R,I,L,N){if(L==="m")throw new TypeError("Private method is not writable");if(L==="a"&&!N)throw new TypeError("Private accessor was defined without a setter");if(typeof R=="function"?E!==R||!N:!R.has(E))throw new TypeError("Cannot write private member to an object whose class did not declare it");return L==="a"?N.call(E,I):N?N.value=I:R.set(E,I),I}function ue(E,R){if(R===null||typeof R!="object"&&typeof R!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof E=="function"?R===E:E.has(R)}function te(E,R,I){if(R!=null){if(typeof R!="object"&&typeof R!="function")throw new TypeError("Object expected.");var L;if(I){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");L=R[Symbol.asyncDispose]}if(L===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");L=R[Symbol.dispose]}if(typeof L!="function")throw new TypeError("Object not disposable.");E.stack.push({value:R,dispose:L,async:I})}else I&&E.stack.push({async:!0});return R}var He=typeof SuppressedError=="function"?SuppressedError:function(E,R,I){var L=new Error(I);return L.name="SuppressedError",L.error=E,L.suppressed=R,L};function Ze(E){function R(I){E.error=E.hasError?new He(I,E.error,"An error was suppressed during disposal."):I,E.hasError=!0}return(function I(){for(;E.stack.length;){var L=E.stack.pop();try{var N=L.dispose&&L.dispose.call(L.value);if(L.async)return Promise.resolve(N).then(I,(function(Z){return R(Z),I()}))}catch(Z){R(Z)}}if(E.hasError)throw E.error})()}l.default={__extends:h,__assign:v,__rest:d,__decorate:g,__param:p,__metadata:b,__awaiter:w,__generator:x,__createBinding:C,__exportStar:D,__values:A,__read:T,__spread:k,__spreadArrays:P,__spreadArray:O,__await:B,__asyncGenerator:F,__asyncDelegator:$,__asyncValues:W,__makeTemplateObject:z,__importStar:H,__importDefault:X,__classPrivateFieldGet:ne,__classPrivateFieldSet:K,__classPrivateFieldIn:ue,__addDisposableResource:te,__disposeResources:Ze}}},a={};function o(u){var l=a[u];if(l!==void 0)return l.exports;var f=a[u]={exports:{}};return i[u](f,f.exports,o),f.exports}o.d=function(u,l){for(var f in l)o.o(l,f)&&!o.o(u,f)&&Object.defineProperty(u,f,{enumerable:!0,get:l[f]})},o.o=function(u,l){return Object.prototype.hasOwnProperty.call(u,l)},o.r=function(u){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var s={};return(function(){var u=s;Object.defineProperty(u,"__esModule",{value:!0}),u.useReactToPrint=u.ReactToPrint=u.PrintContextConsumer=void 0;var l=o(328);Object.defineProperty(u,"PrintContextConsumer",{enumerable:!0,get:function(){return l.PrintContextConsumer}});var f=o(428);Object.defineProperty(u,"ReactToPrint",{enumerable:!0,get:function(){return f.ReactToPrint}});var c=o(892);Object.defineProperty(u,"useReactToPrint",{enumerable:!0,get:function(){return c.useReactToPrint}});var h=o(428);u.default=h.ReactToPrint})(),s})()}))})(_s)),_s.exports}var xb=wb();function Tb({size:t=20,stroke:e=2}){return U.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:e,strokeLinecap:"round",strokeLinejoin:"round",className:"feather feather-printer",children:[U.jsx("polyline",{points:"6 9 6 2 18 2 18 9"}),U.jsx("path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2"}),U.jsx("rect",{x:"6",y:"14",width:"12",height:"8"})]})}const Cb=["repeater","file-up","advanced-file-up","paypal","stripe","razorpay","signature"];function Mb({fetchData:t,className:e}){const r=zf(qm),n={startDate:Hf(30),endDate:new Date,key:"date"},[i,a]=bt.useState(n),{css:o}=nh(),s=c=>{const{startDate:h,endDate:v}=c,d=h?Pi(h,"Y-m-d"):"",g=v?Pi(v,"Y-m-d"):"",p={start_date:d,end_date:g},{pageIndex:m,pageSize:y,sortBy:_,filters:S,globalFilter:b,conditions:w}=r.details;t({pageIndex:m,pageSize:y,sortBy:_,filters:S,globalFilter:b,conditions:w,entriesFilterByDate:p})},u=c=>{a(c),s(c)},l=c=>c&&isFinite(c),f=c=>{const d={startDate:Hf(c),endDate:new Date,key:"date"};a(d),s(d)};return U.jsx("div",{className:e,children:U.jsxs(gb,{children:[U.jsxs("div",{className:"flx",children:[l(i.startDate)&&l(i.endDate)&&U.jsx("div",{className:"btcd-custom-date-range white",children:U.jsxs("span",{className:"m-a",children:[" ",`${Pi(i.startDate,"Y-m-d")} to ${Pi(i.endDate,"Y-m-d")}`]})}),U.jsx(hb,{msg:Fe("Filter Entries between Dates"),children:U.jsx("button",{"aria-label":"Fitler",className:o(kv.tableActionBtn,Je.ml2),style:{"--tooltip-txt":`'${Fe("Filter")}'`},type:"button",children:U.jsx(mb,{size:"16"})})})]}),U.jsxs("div",{style:{minHeight:"200px !important"},className:o(kv.dataRange,xr.calenderWrap),children:[U.jsxs("div",{className:o(xr.preDefDateWrap),children:[U.jsx("button",{type:"button",className:o(xr.preDefDate),onClick:()=>f(7),children:"Last 1 Week"}),U.jsx("button",{type:"button",className:o(xr.preDefDate),onClick:()=>f(14),children:"Last 2 Week"}),U.jsx("button",{type:"button",className:o(xr.preDefDate),onClick:()=>f(30),children:"Last 1 Month"}),U.jsx("button",{type:"button",className:o(xr.preDefDate),onClick:()=>f(60),children:"Last 2 Month"}),U.jsx("button",{type:"button",className:o(xr.preDefDate),onClick:()=>f(91),children:"Last 3 Month"}),U.jsx("button",{type:"button",className:o(xr.preDefDate),onClick:()=>f(182),children:"Last 6 Month"}),U.jsx("button",{type:"button",className:o(xr.preDefDate),onClick:()=>f(365),children:"Last 1 Year"})]}),U.jsx(yb.DateRange,{onChange:c=>u(c.date),moveRangeOnFirstSelection:!1,retainEndDateOnFirstSelection:!0,editableDateInputs:!0,ranges:[i],maxDate:new Date,showSelectionPreview:!1,showDateDisplay:!0,startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",direction:"horizontal"})]})]})})}const xr={calenderWrap:{dy:"flex"},preDefDateWrap:{dy:"flex",fd:"column",br:"1px solid #c3c4c7",p:"5px 5px",mr:5},preDefDate:{b:0,p:5,bd:"#f0f0f1",brs:5,mb:5,cur:"pointer","&:hover":{bd:"#c3c4c7"}}};var Ao={};var Vf=function(t,e){return Vf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Vf(t,e)};function j(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Vf(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var Gf=function(){return Gf=Object.assign||function(e){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Gf.apply(this,arguments)};function Db(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r}function Ab(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}function Pb(t,e){return function(r,n){e(r,n,t)}}function Ib(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function Lb(t,e,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(f){try{l(n.next(f))}catch(c){o(c)}}function u(f){try{l(n.throw(f))}catch(c){o(c)}}function l(f){f.done?a(f.value):i(f.value).then(s,u)}l((n=n.apply(t,e||[])).next())})}function Eb(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(l){return function(f){return u([l,f])}}function u(l){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=l[0]&2?i.return:l[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,l[1])).done)return a;switch(i=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,i=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){r.label=l[1];break}if(l[0]===6&&r.label<a[1]){r.label=a[1],a=l;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(l);break}a[2]&&r.ops.pop(),r.trys.pop();continue}l=e.call(t,r)}catch(f){l=[6,f],i=0}finally{n=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}var ih=Object.create?(function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]});function Rb(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&ih(e,t,r)}function Wf(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function jm(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,a=[],o;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a}function Ob(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(jm(arguments[e]));return t}function kb(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;for(var n=Array(t),i=0,e=0;e<r;e++)for(var a=arguments[e],o=0,s=a.length;o<s;o++,i++)n[i]=a[o];return n}function Nb(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,a;n<i;n++)(a||!(n in e))&&(a||(a=Array.prototype.slice.call(e,0,n)),a[n]=e[n]);return t.concat(a||e)}function ja(t){return this instanceof ja?(this.v=t,this):new ja(t)}function Bb(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(t,e||[]),i,a=[];return i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i;function o(h){n[h]&&(i[h]=function(v){return new Promise(function(d,g){a.push([h,v,d,g])>1||s(h,v)})})}function s(h,v){try{u(n[h](v))}catch(d){c(a[0][3],d)}}function u(h){h.value instanceof ja?Promise.resolve(h.value.v).then(l,f):c(a[0][2],h)}function l(h){s("next",h)}function f(h){s("throw",h)}function c(h,v){h(v),a.shift(),a.length&&s(a[0][0],a[0][1])}}function Fb(t){var e,r;return e={},n("next"),n("throw",function(i){throw i}),n("return"),e[Symbol.iterator]=function(){return this},e;function n(i,a){e[i]=t[i]?function(o){return(r=!r)?{value:ja(t[i](o)),done:i==="return"}:a?a(o):o}:a}}function zb(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof Wf=="function"?Wf(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(a){r[a]=t[a]&&function(o){return new Promise(function(s,u){o=t[a](o),i(s,u,o.done,o.value)})}}function i(a,o,s,u){Promise.resolve(u).then(function(l){a({value:l,done:s})},o)}}function Hb(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var Vb=Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e};function Gb(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&ih(e,t,r);return Vb(e,t),e}function Wb(t){return t&&t.__esModule?t:{default:t}}function Ub(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)}function Yb(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r}var Xb=Object.freeze({__proto__:null,get __assign(){return Gf},__asyncDelegator:Fb,__asyncGenerator:Bb,__asyncValues:zb,__await:ja,__awaiter:Lb,__classPrivateFieldGet:Ub,__classPrivateFieldSet:Yb,__createBinding:ih,__decorate:Ab,__exportStar:Rb,__extends:j,__generator:Eb,__importDefault:Wb,__importStar:Gb,__makeTemplateObject:Hb,__metadata:Ib,__param:Pb,__read:jm,__rest:Db,__spread:Ob,__spreadArray:Nb,__spreadArrays:kb,__values:Wf}),$m=QS(Xb),Tr={},Cr={},dl={},Hv;function qb(){return Hv||(Hv=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e=1;t.default=function(){return"".concat(e++)}})(dl)),dl}var aa={},oa={},pl={},Vv;function Zm(){return Vv||(Vv=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,i=null;return function(){for(var a=this,o=arguments.length,s=new Array(o),u=0;u<o;u++)s[u]=arguments[u];clearTimeout(i),i=setTimeout(function(){r.apply(a,s)},n)}}})(pl)),pl}var Mr={},Gv;function ah(){return Gv||(Gv=1,Object.defineProperty(Mr,"__esModule",{value:!0}),Mr.SizeSensorId=Mr.SensorTabIndex=Mr.SensorClassName=void 0,Mr.SizeSensorId="size-sensor-id",Mr.SensorClassName="size-sensor-object",Mr.SensorTabIndex="-1"),Mr}var Wv;function jb(){if(Wv)return oa;Wv=1,Object.defineProperty(oa,"__esModule",{value:!0}),oa.createSensor=void 0;var t=r(Zm()),e=ah();function r(n){return n&&n.__esModule?n:{default:n}}return oa.createSensor=function(i,a){var o=void 0,s=[],u=function(){getComputedStyle(i).position==="static"&&(i.style.position="relative");var d=document.createElement("object");return d.onload=function(){d.contentDocument.defaultView.addEventListener("resize",l),l()},d.style.display="block",d.style.position="absolute",d.style.top="0",d.style.left="0",d.style.height="100%",d.style.width="100%",d.style.overflow="hidden",d.style.pointerEvents="none",d.style.zIndex="-1",d.style.opacity="0",d.setAttribute("class",e.SensorClassName),d.setAttribute("tabindex",e.SensorTabIndex),d.type="text/html",i.appendChild(d),d.data="about:blank",d},l=(0,t.default)(function(){s.forEach(function(v){v(i)})}),f=function(d){o||(o=u()),s.indexOf(d)===-1&&s.push(d)},c=function(){o&&o.parentNode&&(o.contentDocument&&o.contentDocument.defaultView.removeEventListener("resize",l),o.parentNode.removeChild(o),i.removeAttribute(e.SizeSensorId),o=void 0,s=[],a&&a())},h=function(d){var g=s.indexOf(d);g!==-1&&s.splice(g,1),s.length===0&&o&&c()};return{element:i,bind:f,destroy:c,unbind:h}},oa}var sa={},Uv;function $b(){if(Uv)return sa;Uv=1,Object.defineProperty(sa,"__esModule",{value:!0}),sa.createSensor=void 0;var t=ah(),e=r(Zm());function r(n){return n&&n.__esModule?n:{default:n}}return sa.createSensor=function(i,a){var o=void 0,s=[],u=(0,e.default)(function(){s.forEach(function(v){v(i)})}),l=function(){var d=new ResizeObserver(u);return d.observe(i),u(),d},f=function(d){o||(o=l()),s.indexOf(d)===-1&&s.push(d)},c=function(){o&&o.disconnect(),s=[],o=void 0,i.removeAttribute(t.SizeSensorId),a&&a()},h=function(d){var g=s.indexOf(d);g!==-1&&s.splice(g,1),s.length===0&&o&&c()};return{element:i,bind:f,destroy:c,unbind:h}},sa}var Yv;function Zb(){if(Yv)return aa;Yv=1,Object.defineProperty(aa,"__esModule",{value:!0}),aa.createSensor=void 0;var t=jb(),e=$b();return aa.createSensor=typeof ResizeObserver!="undefined"?e.createSensor:t.createSensor,aa}var Xv;function Kb(){if(Xv)return Cr;Xv=1,Object.defineProperty(Cr,"__esModule",{value:!0}),Cr.removeSensor=Cr.getSensor=Cr.Sensors=void 0;var t=n(qb()),e=Zb(),r=ah();function n(o){return o&&o.__esModule?o:{default:o}}var i=Cr.Sensors={};function a(o){o&&i[o]&&delete i[o]}return Cr.getSensor=function(s){var u=s.getAttribute(r.SizeSensorId);if(u&&i[u])return i[u];var l=(0,t.default)();s.setAttribute(r.SizeSensorId,l);var f=(0,e.createSensor)(s,function(){return a(l)});return i[l]=f,f},Cr.removeSensor=function(s){var u=s.element.getAttribute(r.SizeSensorId);s.destroy(),a(u)},Cr}var qv;function Qb(){if(qv)return Tr;qv=1,Object.defineProperty(Tr,"__esModule",{value:!0}),Tr.ver=Tr.clear=Tr.bind=void 0;var t=Kb();return Tr.bind=function(r,n){var i=(0,t.getSensor)(r);return i.bind(n),function(){i.unbind(n)}},Tr.clear=function(r){var n=(0,t.getSensor)(r);(0,t.removeSensor)(n)},Tr.ver="1.0.3",Tr}var ua={},jv;function Jb(){if(jv)return ua;jv=1,Object.defineProperty(ua,"__esModule",{value:!0}),ua.pick=void 0;function t(e,r){var n={};return r.forEach(function(i){n[i]=e[i]}),n}return ua.pick=t,ua}var la={},$v;function ew(){if($v)return la;$v=1,Object.defineProperty(la,"__esModule",{value:!0}),la.isFunction=void 0;function t(e){return typeof e=="function"}return la.isFunction=t,la}var fa={},Zv;function tw(){if(Zv)return fa;Zv=1,Object.defineProperty(fa,"__esModule",{value:!0}),fa.isString=void 0;function t(e){return typeof e=="string"}return fa.isString=t,fa}var ca={},gl,Kv;function rw(){return Kv||(Kv=1,gl=function t(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var n,i,a;if(Array.isArray(e)){if(n=e.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!t(e[i],r[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if(a=Object.keys(e),n=a.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[i]))return!1;for(i=n;i--!==0;){var o=a[i];if(!t(e[o],r[o]))return!1}return!0}return e!==e&&r!==r}),gl}var Qv;function nw(){if(Qv)return ca;Qv=1,Object.defineProperty(ca,"__esModule",{value:!0}),ca.isEqual=void 0;var t=$m,e=t.__importDefault(rw());return ca.isEqual=e.default,ca}var Jv;function iw(){if(Jv)return Ao;Jv=1,Object.defineProperty(Ao,"__esModule",{value:!0});var t=$m,e=t.__importStar(Xm()),r=Qb(),n=Jb(),i=ew(),a=tw(),o=nw(),s=(function(u){t.__extends(l,u);function l(f){var c=u.call(this,f)||this;return c.echarts=f.echarts,c.ele=null,c.isInitialResize=!0,c.eventHandlerRefs={},c}return l.prototype.componentDidMount=function(){this.renderNewEcharts()},l.prototype.componentDidUpdate=function(f){var c=this.props.shouldSetOption;if(!((0,i.isFunction)(c)&&!c(f,this.props))){if(!(0,o.isEqual)(f.theme,this.props.theme)||!(0,o.isEqual)(f.opts,this.props.opts)){this.dispose(),this.renderNewEcharts();return}var h=this.getEchartsInstance();(0,o.isEqual)(f.onEvents,this.props.onEvents)||(this.unbindEvents(h),this.bindEvents(h,this.props.onEvents));var v=["option","notMerge","replaceMerge","lazyUpdate","showLoading","loadingOption"];(0,o.isEqual)((0,n.pick)(this.props,v),(0,n.pick)(f,v))||this.updateEChartsOption(),(!(0,o.isEqual)(f.style,this.props.style)||!(0,o.isEqual)(f.className,this.props.className))&&this.resize()}},l.prototype.componentWillUnmount=function(){this.dispose()},l.prototype.initEchartsInstance=function(){return t.__awaiter(this,void 0,void 0,function(){var f=this;return t.__generator(this,function(c){return[2,new Promise(function(h){f.echarts.init(f.ele,f.props.theme,f.props.opts);var v=f.getEchartsInstance();v.on("finished",function(){var d=f.ele.clientWidth,g=f.ele.clientHeight;f.echarts.dispose(f.ele);var p=t.__assign({width:d,height:g},f.props.opts);h(f.echarts.init(f.ele,f.props.theme,p))})})]})})},l.prototype.getEchartsInstance=function(){return this.echarts.getInstanceByDom(this.ele)},l.prototype.dispose=function(){if(this.ele){try{(0,r.clear)(this.ele)}catch(f){}this.echarts.dispose(this.ele)}},l.prototype.renderNewEcharts=function(){return t.__awaiter(this,void 0,void 0,function(){var f,c,h,v,d,g,p=this;return t.__generator(this,function(m){switch(m.label){case 0:return f=this.props,c=f.onEvents,h=f.onChartReady,v=f.autoResize,d=v===void 0?!0:v,[4,this.initEchartsInstance()];case 1:return m.sent(),g=this.updateEChartsOption(),this.bindEvents(g,c||{}),(0,i.isFunction)(h)&&h(g),this.ele&&d&&(0,r.bind)(this.ele,function(){p.resize()}),[2]}})})},l.prototype.bindEvents=function(f,c){var h=this,v=function(g,p){if((0,a.isString)(g)&&(0,i.isFunction)(p)){var m=function(y){p(y,f)};f.on(g,m),h.eventHandlerRefs[g]=m}};for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&v(d,c[d])},l.prototype.unbindEvents=function(f){for(var c=0,h=Object.entries(this.eventHandlerRefs);c<h.length;c++){var v=h[c],d=v[0],g=v[1];f.off(d,g)}this.eventHandlerRefs={}},l.prototype.updateEChartsOption=function(){var f=this.props,c=f.option,h=f.notMerge,v=h===void 0?!1:h,d=f.replaceMerge,g=d===void 0?null:d,p=f.lazyUpdate,m=p===void 0?!1:p,y=f.showLoading,_=f.loadingOption,S=_===void 0?null:_,b=this.getEchartsInstance();return b.setOption(c,{notMerge:v,replaceMerge:g,lazyUpdate:m}),y?b.showLoading(S):b.hideLoading(),b},l.prototype.resize=function(){var f=this.getEchartsInstance();if(!this.isInitialResize)try{f.resize({width:"auto",height:"auto"})}catch(c){}this.isInitialResize=!1},l.prototype.render=function(){var f=this,c=this.props,h=c.style,v=c.className,d=v===void 0?"":v;c.echarts,c.option,c.theme,c.notMerge,c.replaceMerge,c.lazyUpdate,c.showLoading,c.loadingOption,c.opts,c.onChartReady,c.onEvents,c.shouldSetOption,c.autoResize;var g=t.__rest(c,["style","className","echarts","option","theme","notMerge","replaceMerge","lazyUpdate","showLoading","loadingOption","opts","onChartReady","onEvents","shouldSetOption","autoResize"]),p=t.__assign({height:300},h);return e.default.createElement("div",t.__assign({ref:function(m){f.ele=m},style:p,className:"echarts-for-react ".concat(d)},g))},l})(e.PureComponent);return Ao.default=s,Ao}var aw=iw(),ow=JS(aw),oh=12,sw="sans-serif",on=oh+"px "+sw,uw=20,lw=100,fw="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function cw(t){var e={};if(typeof JSON=="undefined")return e;for(var r=0;r<t.length;r++){var n=String.fromCharCode(r+32),i=(t.charCodeAt(r)-uw)/lw;e[n]=i}return e}var hw=cw(fw),qe={createCanvas:function(){return typeof document!="undefined"&&document.createElement("canvas")},measureText:(function(){var t,e;return function(r,n){if(!t){var i=qe.createCanvas();t=i&&i.getContext("2d")}if(t)return e!==n&&(e=t.font=n||on),t.measureText(r);r=r||"",n=n||on;var a=/((?:\d+)?\.?\d*)px/.exec(n),o=a&&+a[1]||oh,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var u=0;u<r.length;u++){var l=hw[r[u]];s+=l==null?o:l*o}return{width:s}}})(),loadImage:function(t,e,r){var n=new Image;return n.onload=e,n.onerror=r,n.src=t,n},getTime:function(){return Date.now?Date.now():+new Date}};function Km(t){for(var e in qe)qe.hasOwnProperty(e)&&t[e]&&(qe[e]=t[e])}var Qm=_r(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),Jm=_r(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),Ji=Object.prototype.toString,Au=Array.prototype,vw=Au.forEach,dw=Au.filter,sh=Au.slice,pw=Au.map,ed=function(){}.constructor,Po=ed?ed.prototype:null,uh="__proto__",ml=2311,gw=Math.pow(2,53)-1;function lh(){return ml>=gw&&(ml=0),ml++}function Pu(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]}function he(t){if(t==null||typeof t!="object")return t;var e=t,r=Ji.call(t);if(r==="[object Array]"){if(!Oi(t)){e=[];for(var n=0,i=t.length;n<i;n++)e[n]=he(t[n])}}else if(Jm[r]){if(!Oi(t)){var a=t.constructor;if(a.from)e=a.from(t);else{e=new a(t.length);for(var n=0,i=t.length;n<i;n++)e[n]=t[n]}}}else if(!Qm[r]&&!Oi(t)&&!Vi(t)){e={};for(var o in t)t.hasOwnProperty(o)&&o!==uh&&(e[o]=he(t[o]))}return e}function ye(t,e,r){if(!ee(e)||!ee(t))return r?he(e):t;for(var n in e)if(e.hasOwnProperty(n)&&n!==uh){var i=t[n],a=e[n];ee(a)&&ee(i)&&!Y(a)&&!Y(i)&&!Vi(a)&&!Vi(i)&&!Uf(a)&&!Uf(i)&&!Oi(a)&&!Oi(i)?ye(i,a,r):(r||!(n in t))&&(t[n]=he(e[n]))}return t}function mw(t,e){for(var r=t[0],n=1,i=t.length;n<i;n++)r=ye(r,t[n],e);return r}function V(t,e){if(Object.assign)Object.assign(t,e);else for(var r in e)e.hasOwnProperty(r)&&r!==uh&&(t[r]=e[r]);return t}function ey(t,e,r){t=t||{};for(var n=0;n<r.length;n++){var i=r[n];t[i]=e[i]}return t}function Te(t,e,r){for(var n=Ae(e),i=0,a=n.length;i<a;i++){var o=n[i];(r?e[o]!=null:t[o]==null)&&(t[o]=e[o])}return t}var yw=qe.createCanvas;function me(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r}return-1}function fh(t,e){var r=t.prototype;function n(){}n.prototype=e.prototype,t.prototype=new n;for(var i in r)r.hasOwnProperty(i)&&(t.prototype[i]=r[i]);t.prototype.constructor=t,t.superClass=e}function Yt(t,e,r){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),i=0;i<n.length;i++){var a=n[i];a!=="constructor"&&(r?e[a]!=null:t[a]==null)&&(t[a]=e[a])}else Te(t,e,r)}function ct(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function M(t,e,r){if(t&&e)if(t.forEach&&t.forEach===vw)t.forEach(e,r);else if(t.length===+t.length)for(var n=0,i=t.length;n<i;n++)e.call(r,t[n],n,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(r,t[a],a,t)}function re(t,e,r){if(!t)return[];if(!e)return Iu(t);if(t.map&&t.map===pw)return t.map(e,r);for(var n=[],i=0,a=t.length;i<a;i++)n.push(e.call(r,t[i],i,t));return n}function _r(t,e,r,n){if(t&&e){for(var i=0,a=t.length;i<a;i++)r=e.call(n,r,t[i],i,t);return r}}function Ye(t,e,r){if(!t)return[];if(!e)return Iu(t);if(t.filter&&t.filter===dw)return t.filter(e,r);for(var n=[],i=0,a=t.length;i<a;i++)e.call(r,t[i],i,t)&&n.push(t[i]);return n}function ty(t,e,r){if(t&&e){for(var n=0,i=t.length;n<i;n++)if(e.call(r,t[n],n,t))return t[n]}}function Ae(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r);return e}function _w(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return t.apply(e,r.concat(sh.call(arguments)))}}var Pe=Po&&fe(Po.bind)?Po.call.bind(Po.bind):_w;function st(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return function(){return t.apply(this,e.concat(sh.call(arguments)))}}function Y(t){return Array.isArray?Array.isArray(t):Ji.call(t)==="[object Array]"}function fe(t){return typeof t=="function"}function Q(t){return typeof t=="string"}function Ws(t){return Ji.call(t)==="[object String]"}function Le(t){return typeof t=="number"}function ee(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function Uf(t){return!!Qm[Ji.call(t)]}function ht(t){return!!Jm[Ji.call(t)]}function Vi(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function po(t){return t.colorStops!=null}function ry(t){return t.image!=null}function Sw(t){return Ji.call(t)==="[object RegExp]"}function Gi(t){return t!==t}function $a(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0,n=t.length;r<n;r++)if(t[r]!=null)return t[r]}function ie(t,e){return t!=null?t:e}function Yn(t,e,r){return t!=null?t:e!=null?e:r}function Iu(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return sh.apply(t,e)}function Lu(t){if(typeof t=="number")return[t,t,t,t];var e=t.length;return e===2?[t[0],t[1],t[0],t[1]]:e===3?[t[0],t[1],t[2],t[1]]:t}function Sr(t,e){if(!t)throw new Error(e)}function Jt(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var ny="__ec_primitive__";function Us(t){t[ny]=!0}function Oi(t){return t[ny]}var bw=(function(){function t(){this.data={}}return t.prototype.delete=function(e){var r=this.has(e);return r&&delete this.data[e],r},t.prototype.has=function(e){return this.data.hasOwnProperty(e)},t.prototype.get=function(e){return this.data[e]},t.prototype.set=function(e,r){return this.data[e]=r,this},t.prototype.keys=function(){return Ae(this.data)},t.prototype.forEach=function(e){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&e(r[n],n)},t})(),iy=typeof Map=="function";function ww(){return iy?new Map:new bw}var ay=(function(){function t(e){var r=Y(e);this.data=ww();var n=this;e instanceof t?e.each(i):e&&M(e,i);function i(a,o){r?n.set(a,o):n.set(o,a)}}return t.prototype.hasKey=function(e){return this.data.has(e)},t.prototype.get=function(e){return this.data.get(e)},t.prototype.set=function(e,r){return this.data.set(e,r),r},t.prototype.each=function(e,r){this.data.forEach(function(n,i){e.call(r,n,i)})},t.prototype.keys=function(){var e=this.data.keys();return iy?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t})();function oe(t){return new ay(t)}function oy(t,e){for(var r=new t.constructor(t.length+e.length),n=0;n<t.length;n++)r[n]=t[n];for(var i=t.length,n=0;n<e.length;n++)r[n+i]=e[n];return r}function go(t,e){var r;if(Object.create)r=Object.create(t);else{var n=function(){};n.prototype=t,r=new n}return e&&V(r,e),r}function ch(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function ut(t,e){return t.hasOwnProperty(e)}function je(){}var sy=180/Math.PI,xw=Number.EPSILON||Math.pow(2,-52),Tw=Object.freeze({__proto__:null,EPSILON:xw,HashMap:ay,RADIAN_TO_DEGREE:sy,assert:Sr,assignProps:ey,bind:Pe,clone:he,concatArray:oy,createCanvas:yw,createHashMap:oe,createObject:go,curry:st,defaults:Te,disableUserSelect:ch,each:M,eqNaN:Gi,extend:V,filter:Ye,find:ty,guid:lh,hasOwn:ut,indexOf:me,inherits:fh,isArray:Y,isArrayLike:ct,isBuiltInObject:Uf,isDom:Vi,isFunction:fe,isGradientObject:po,isImagePatternObject:ry,isNumber:Le,isObject:ee,isPrimitive:Oi,isRegExp:Sw,isString:Q,isStringSafe:Ws,isTypedArray:ht,keys:Ae,logError:Pu,map:re,merge:ye,mergeAll:mw,mixin:Yt,noop:je,normalizeCssArray:Lu,reduce:_r,retrieve:$a,retrieve2:ie,retrieve3:Yn,setAsPrimitive:Us,slice:Iu,trim:Jt}),Cw=(function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t})(),Mw=(function(){function t(){this.browser=new Cw,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=typeof window!="undefined"}return t})(),le=new Mw;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(le.wxa=!0,le.touchEventsSupported=!0):typeof document=="undefined"&&typeof self!="undefined"?le.worker=!0:!le.hasGlobalWindow||"Deno"in window||typeof navigator!="undefined"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(le.node=!0,le.svgSupported=!0):Dw(navigator.userAgent,le);function Dw(t,e){var r=e.browser,n=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),e.svgSupported=typeof SVGRect!="undefined",e.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,e.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11);var s=e.domSupported=typeof document!="undefined";if(s){var u=document.documentElement.style;e.transform3dSupported=(r.ie&&"transition"in u||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in u)&&!("OTransition"in u),e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}}var Aw=".",pn="___EC__COMPONENT__CONTAINER___",uy="___EC__EXTENDED_CLASS___";function dr(t){var e={main:"",sub:""};if(t){var r=t.split(Aw);e.main=r[0]||"",e.sub=r[1]||""}return e}function Pw(t){Sr(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function Iw(t){return!!(t&&t[uy])}function hh(t,e){t.$constructor=t,t.extend=function(r){var n=this,i;return Lw(n)?i=(function(a){j(o,a);function o(){return a.apply(this,arguments)||this}return o})(n):(i=function(){(r.$constructor||n).apply(this,arguments)},fh(i,this)),V(i.prototype,r),i[uy]=!0,i.extend=this.extend,i.superCall=Ow,i.superApply=kw,i.superClass=n,i}}function Lw(t){return fe(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function ly(t,e){t.extend=e.extend}var Ew=Math.round(Math.random()*10);function Rw(t){var e=["__\0is_clz",Ew++].join("_");t.prototype[e]=!0,t.isInstance=function(r){return!!(r&&r[e])}}function Ow(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[e].apply(t,r)}function kw(t,e,r){return this.superClass.prototype[e].apply(t,r)}function Eu(t){var e={};t.registerClass=function(n){var i=n.type||n.prototype.type;if(i){Pw(i),n.prototype.type=i;var a=dr(i);if(!a.sub)e[a.main]=n;else if(a.sub!==pn){var o=r(a);o[a.sub]=n}}return n},t.getClass=function(n,i,a){var o=e[n];if(o&&o[pn]&&(o=i?o[i]:null),a&&!o)throw new Error(i?"Component "+n+"."+(i||"")+" is used but not imported.":n+".type should be specified.");return o},t.getClassesByMainType=function(n){var i=dr(n),a=[],o=e[i.main];return o&&o[pn]?M(o,function(s,u){u!==pn&&a.push(s)}):a.push(o),a},t.hasClass=function(n){var i=dr(n);return!!e[i.main]},t.getAllClassMainTypes=function(){var n=[];return M(e,function(i,a){n.push(a)}),n},t.hasSubTypes=function(n){var i=dr(n),a=e[i.main];return a&&a[pn]};function r(n){var i=e[n.main];return(!i||!i[pn])&&(i=e[n.main]={},i[pn]=!0),i}}function Za(t,e){for(var r=0;r<t.length;r++)t[r][1]||(t[r][1]=t[r][0]);return e=e||!1,function(n,i,a){for(var o={},s=0;s<t.length;s++){var u=t[s][1];if(!(i&&me(i,u)>=0||a&&me(a,u)<0)){var l=n.getShallow(u,e);l!=null&&(o[t[s][0]]=l)}}return o}}var Nw=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Bw=Za(Nw),Fw=(function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return Bw(this,e,r)},t})(),fy=(function(){function t(e){this.value=e}return t})(),zw=(function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new fy(e);return this.insertEntry(r),r},t.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},t.prototype.remove=function(e){var r=e.prev,n=e.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t})(),Wi=(function(){function t(e){this._list=new zw,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,r){var n=this._list,i=this._map,a=null;if(i[e]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var u=n.head;n.remove(u),delete i[u.key],a=u.value,this._lastRemovedEntry=u}s?s.value=r:s=new fy(r),s.key=e,n.insertEntry(s),i[e]=s}return a},t.prototype.get=function(e){var r=this._map[e],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t})(),Yf=new Wi(50);function Hw(t){if(typeof t=="string"){var e=Yf.get(t);return e&&e.image}else return t}function cy(t,e,r,n,i){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!r)return e;var a=Yf.get(t),o={hostEl:r,cb:n,cbPayload:i};return a?(e=a.image,!Ru(e)&&a.pending.push(o)):(e=qe.loadImage(t,td,td),e.__zrImageSrc=t,Yf.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}else return t;else return e}function td(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var r=t.pending[e],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}t.pending.length=0}function Ru(t){return t&&t.width&&t.height}function Vt(){return[1,0,0,1,0,0]}function ii(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function mo(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function Xn(t,e,r){var n=e[0]*r[0]+e[2]*r[1],i=e[1]*r[0]+e[3]*r[1],a=e[0]*r[2]+e[2]*r[3],o=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],u=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=n,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=u,t}function Ys(t,e,r){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+r[0],t[5]=e[5]+r[1],t}function Ou(t,e,r,n){n===void 0&&(n=[0,0]);var i=e[0],a=e[2],o=e[4],s=e[1],u=e[3],l=e[5],f=Math.sin(r),c=Math.cos(r);return t[0]=i*c+s*f,t[1]=-i*f+s*c,t[2]=a*c+u*f,t[3]=-a*f+c*u,t[4]=c*(o-n[0])+f*(l-n[1])+n[0],t[5]=c*(l-n[1])-f*(o-n[0])+n[1],t}function hy(t,e,r){var n=r[0],i=r[1];return t[0]=e[0]*n,t[1]=e[1]*i,t[2]=e[2]*n,t[3]=e[3]*i,t[4]=e[4]*n,t[5]=e[5]*i,t}function ai(t,e){var r=e[0],n=e[2],i=e[4],a=e[1],o=e[3],s=e[5],u=r*o-a*n;return u?(u=1/u,t[0]=o*u,t[1]=-a*u,t[2]=-n*u,t[3]=r*u,t[4]=(n*s-o*i)*u,t[5]=(a*i-r*s)*u,t):null}function Vw(t){var e=Vt();return mo(e,t),e}var Gw=Object.freeze({__proto__:null,clone:Vw,copy:mo,create:Vt,identity:ii,invert:ai,mul:Xn,rotate:Ou,scale:hy,translate:Ys});function oi(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function Ww(t,e){return t[0]=e[0],t[1]=e[1],t}function vy(t){return[t[0],t[1]]}function Ss(t,e,r){return t[0]=e,t[1]=r,t}function Xf(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function Uw(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t}function dy(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function vh(t){return Math.sqrt(dh(t))}var Yw=vh;function dh(t){return t[0]*t[0]+t[1]*t[1]}var Xw=dh;function qw(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t}function jw(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t}function $w(t,e){return t[0]*e[0]+t[1]*e[1]}function bs(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function py(t,e){var r=vh(e);return r===0?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t}function Xs(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var gy=Xs;function my(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var qn=my;function Zw(t,e){return t[0]=-e[0],t[1]=-e[1],t}function Kw(t,e,r,n){return t[0]=e[0]+n*(r[0]-e[0]),t[1]=e[1]+n*(r[1]-e[1]),t}function lt(t,e,r){var n=e[0],i=e[1];return t[0]=r[0]*n+r[2]*i+r[4],t[1]=r[1]*n+r[3]*i+r[5],t}function Zr(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function Kr(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}var Qw=Object.freeze({__proto__:null,add:Xf,applyTransform:lt,clone:vy,copy:Ww,create:oi,dist:gy,distSquare:qn,distance:Xs,distanceSquare:my,div:jw,dot:$w,len:vh,lenSquare:dh,length:Yw,lengthSquare:Xw,lerp:Kw,max:Kr,min:Zr,mul:qw,negate:Zw,normalize:py,scale:bs,scaleAndAdd:Uw,set:Ss,sub:dy}),xe=(function(){function t(e,r){this.x=e||0,this.y=r||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,r){return this.x=e,this.y=r,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,r){this.x+=e.x*r,this.y+=e.y*r},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.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 e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var r=this.x-e.x,n=this.y-e.y;return Math.sqrt(r*r+n*n)},t.prototype.distanceSquare=function(e){var r=this.x-e.x,n=this.y-e.y;return r*r+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var r=this.x,n=this.y;return this.x=e[0]*r+e[2]*n+e[4],this.y=e[1]*r+e[3]*n+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,r,n){e.x=r,e.y=n},t.copy=function(e,r){e.x=r.x,e.y=r.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,r){return e.x*r.x+e.y*r.y},t.add=function(e,r,n){e.x=r.x+n.x,e.y=r.y+n.y},t.sub=function(e,r,n){e.x=r.x-n.x,e.y=r.y-n.y},t.scale=function(e,r,n){e.x=r.x*n,e.y=r.y*n},t.scaleAndAdd=function(e,r,n,i){e.x=r.x+n.x*i,e.y=r.y+n.y*i},t.lerp=function(e,r,n,i){var a=1-i;e.x=a*r.x+i*n.x,e.y=a*r.y+i*n.y},t})(),Hn=Math.min,Ii=Math.max,qf=Math.abs,rd=["x","y"],Jw=["width","height"],gn=new xe,mn=new xe,yn=new xe,_n=new xe,wt=yy(),Ia=wt.minTv,jf=wt.maxTv,Fa=[0,0],se=(function(){function t(e,r,n,i){yl(this,e,r,n,i)}return t.set=function(e,r,n,i,a){return i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),e.x=r,e.y=n,e.width=i,e.height=a,e},t.prototype.union=function(e){var r=Hn(e.x,this.x),n=Hn(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ii(e.x+e.width,this.x+this.width)-r:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ii(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=r,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){return ex(Vt(),this,e)},t.prototype.intersect=function(e,r,n){return t.intersect(this,e,r,n)},t.intersect=function(e,r,n,i){n&&xe.set(n,0,0);var a=i&&i.outIntersectRect||null,o=i&&i.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!e||!r)return!1;e instanceof t||(e=yl(tx,e.x,e.y,e.width,e.height)),r instanceof t||(r=yl(rx,r.x,r.y,r.width,r.height));var s=!!n;wt.reset(i,s);var u=wt.touchThreshold,l=e.x+u,f=e.x+e.width-u,c=e.y+u,h=e.y+e.height-u,v=r.x+u,d=r.x+r.width-u,g=r.y+u,p=r.y+r.height-u;if(l>f||c>h||v>d||g>p)return!1;var m=!(f<v||d<l||h<g||p<c);return(s||a)&&(Fa[0]=1/0,Fa[1]=0,id(l,f,v,d,0,s,a,o),id(c,h,g,p,1,s,a,o),s&&xe.copy(n,m?wt.useDir?wt.dirMinTv:Ia:jf)),m},t.contain=function(e,r,n){return r>=e.x&&r<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},t.prototype.contain=function(e,r){return t.contain(this,e,r)},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){nd(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 this.width===0||this.height===0},t.create=function(e){return new t(e?e.x:0,e?e.y:0,e?e.width:0,e?e.height:0)},t.copy=function(e,r){return e.x=r.x,e.y=r.y,e.width=r.width,e.height=r.height,e},t.applyTransform=function(e,r,n){if(!n){e!==r&&nd(e,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];e.x=r.x*i+o,e.y=r.y*a+s,e.width=r.width*i,e.height=r.height*a,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}gn.x=yn.x=r.x,gn.y=_n.y=r.y,mn.x=_n.x=r.x+r.width,mn.y=yn.y=r.y+r.height,gn.transform(n),_n.transform(n),mn.transform(n),yn.transform(n),e.x=Hn(gn.x,mn.x,yn.x,_n.x),e.y=Hn(gn.y,mn.y,yn.y,_n.y);var u=Ii(gn.x,mn.x,yn.x,_n.x),l=Ii(gn.y,mn.y,yn.y,_n.y);e.width=u-e.x,e.height=l-e.y},t.calculateTransform=function(e,r,n){var i=n.width/r.width,a=n.height/r.height;return e=ii(e||[]),Ys(e,e,Ss(_l,-r.x,-r.y)),hy(e,e,Ss(_l,i,a)),Ys(e,e,Ss(_l,n.x,n.y)),e},t})();se.create;var yl=se.set,nd=se.copy,ex=se.calculateTransform;se.applyTransform;se.contain;var tx=new se(0,0,0,0),rx=new se(0,0,0,0),_l=[];function id(t,e,r,n,i,a,o,s){var u=qf(e-r),l=qf(n-t),f=Hn(u,l),c=rd[i],h=rd[1-i],v=Jw[i];e<r||n<t?u<l?(a&&(jf[c]=-u),s&&(o[c]=e,o[v]=0)):(a&&(jf[c]=l),s&&(o[c]=t,o[v]=0)):(o&&(o[c]=Ii(t,r),o[v]=Hn(e,n)-o[c]),a&&(f<Fa[0]||wt.useDir)&&(Fa[0]=Hn(f,Fa[0]),(u<l||!wt.bidirectional)&&(Ia[c]=u,Ia[h]=0,wt.useDir&&wt.calcDirMTV()),(u>=l||!wt.bidirectional)&&(Ia[c]=-l,Ia[h]=0,wt.useDir&&wt.calcDirMTV())))}function yy(){var t=0,e=new xe,r=new xe,n={minTv:new xe,maxTv:new xe,useDir:!1,dirMinTv:new xe,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){n.touchThreshold=0,a&&a.touchThreshold!=null&&(n.touchThreshold=Ii(0,a.touchThreshold)),n.negativeSize=!1,o&&(n.minTv.set(1/0,1/0),n.maxTv.set(0,0),n.useDir=!1,a&&a.direction!=null&&(n.useDir=!0,n.dirMinTv.copy(n.minTv),r.copy(n.minTv),t=a.direction,n.bidirectional=a.bidirectional==null||!!a.bidirectional,n.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var a=n.minTv,o=n.dirMinTv,s=a.y*a.y+a.x*a.x,u=Math.sin(t),l=Math.cos(t),f=u*a.y+l*a.x;if(i(f)){i(a.x)&&i(a.y)&&o.set(0,0);return}if(r.x=s*l/f,r.y=s*u/f,i(r.x)&&i(r.y)){o.set(0,0);return}(n.bidirectional||e.dot(r)>0)&&r.len()<o.len()&&o.copy(r)}};function i(a){return qf(a)<1e-10}return n}function pr(t){Io||(Io=new Wi(100)),t=t||on;var e=Io.get(t);return e||(e={font:t,strWidthCache:new Wi(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:qe.measureText("国",t).width,asciiCharWidth:qe.measureText("a",t).width},Io.put(t,e)),e}var Io;function nx(t){if(!(Sl>=ad)){t=t||on;for(var e=[],r=+new Date,n=0;n<=127;n++)e[n]=qe.measureText(String.fromCharCode(n),t).width;var i=+new Date-r;return i>16?Sl=ad:i>2&&Sl++,e}}var Sl=0,ad=5;function _y(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=nx(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?t.asciiWidthMap!=null?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function gr(t,e){var r=t.strWidthCache,n=r.get(e);return n==null&&(n=qe.measureText(e,t.font).width,r.put(e,n)),n}function od(t,e,r,n){var i=gr(pr(e),t),a=ku(e),o=Ui(0,i,r),s=jn(0,a,n),u=new se(o,s,i,a);return u}function Sy(t,e,r,n){var i=((t||"")+"").split(`
16 `),a=i.length;if(a===1)return od(i[0],e,r,n);for(var o=new se(0,0,0,0),s=0;s<i.length;s++){var u=od(i[s],e,r,n);s===0?o.copy(u):o.union(u)}return o}function Ui(t,e,r,n){return r==="right"?n?t+=e:t-=e:r==="center"&&(n?t+=e/2:t-=e/2),t}function jn(t,e,r,n){return r==="middle"?n?t+=e/2:t-=e/2:r==="bottom"&&(n?t+=e:t-=e),t}function ku(t){return pr(t).stWideCharWidth}function Jn(t,e){return typeof t=="string"?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function qs(t,e,r){var n=e.position||"inside",i=e.distance!=null?e.distance:5,a=r.height,o=r.width,s=a/2,u=r.x,l=r.y,f="left",c="top";if(n instanceof Array)u+=Jn(n[0],r.width),l+=Jn(n[1],r.height),f=null,c=null;else switch(n){case"left":u-=i,l+=s,f="right",c="middle";break;case"right":u+=i+o,l+=s,c="middle";break;case"top":u+=o/2,l-=i,f="center",c="bottom";break;case"bottom":u+=o/2,l+=a+i,f="center";break;case"inside":u+=o/2,l+=s,f="center",c="middle";break;case"insideLeft":u+=i,l+=s,c="middle";break;case"insideRight":u+=o-i,l+=s,f="right",c="middle";break;case"insideTop":u+=o/2,l+=i,f="center";break;case"insideBottom":u+=o/2,l+=a-i,f="center",c="bottom";break;case"insideTopLeft":u+=i,l+=i;break;case"insideTopRight":u+=o-i,l+=i,f="right";break;case"insideBottomLeft":u+=i,l+=a-i,c="bottom";break;case"insideBottomRight":u+=o-i,l+=a-i,f="right",c="bottom";break}return t=t||{},t.x=u,t.y=l,t.align=f,t.verticalAlign=c,t}var bl=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function ix(t,e,r,n,i){var a={};return by(a,t,e,r,n,i),a.text}function by(t,e,r,n,i,a){if(!r){t.text="",t.isTruncated=!1;return}var o=(e+"").split(`
17 `);a=wy(r,n,i,a);for(var s=!1,u={},l=0,f=o.length;l<f;l++)xy(u,o[l],a),o[l]=u.textLine,s=s||u.isTruncated;t.text=o.join(`
18 `),t.isTruncated=s}function wy(t,e,r,n){n=n||{};var i=V({},n);r=ie(r,"..."),i.maxIterations=ie(n.maxIterations,2);var a=i.minChar=ie(n.minChar,0),o=i.fontMeasureInfo=pr(e),s=o.asciiCharWidth;i.placeholder=ie(n.placeholder,"");for(var u=t=Math.max(0,t-1),l=0;l<a&&u>=s;l++)u-=s;var f=gr(o,r);return f>u&&(r="",f=0),u=t-f,i.ellipsis=r,i.ellipsisWidth=f,i.contentWidth=u,i.containerWidth=t,i}function xy(t,e,r){var n=r.containerWidth,i=r.contentWidth,a=r.fontMeasureInfo;if(!n){t.textLine="",t.isTruncated=!1;return}var o=gr(a,e);if(o<=n){t.textLine=e,t.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=r.maxIterations){e+=r.ellipsis;break}var u=s===0?ax(e,i,a):o>0?Math.floor(e.length*i/o):0;e=e.substr(0,u),o=gr(a,e)}e===""&&(e=r.placeholder),t.textLine=e,t.isTruncated=!0}function ax(t,e,r){for(var n=0,i=0,a=t.length;i<a&&n<e;i++)n+=_y(r,t.charCodeAt(i));return i}function ox(t,e,r,n){var i=ph(t),a=e.overflow,o=e.padding,s=o?o[1]+o[3]:0,u=o?o[0]+o[2]:0,l=e.font,f=a==="truncate",c=ku(l),h=ie(e.lineHeight,c),v=e.lineOverflow==="truncate",d=!1,g=e.width;g==null&&r!=null&&(g=r-s);var p=e.height;p==null&&n!=null&&(p=n-u);var m;g!=null&&(a==="break"||a==="breakAll")?m=i?Ty(i,e.font,g,a==="breakAll",0).lines:[]:m=i?i.split(`
19 `):[];var y=m.length*h;if(p==null&&(p=y),y>p&&v){var _=Math.floor(p/h);d=d||m.length>_,m=m.slice(0,_),y=m.length*h}if(i&&f&&g!=null)for(var S=wy(g,l,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),b={},w=0;w<m.length;w++)xy(b,m[w],S),m[w]=b.textLine,d=d||b.isTruncated;for(var x=p,C=0,D=pr(l),w=0;w<m.length;w++)C=Math.max(gr(D,m[w]),C);g==null&&(g=C);var A=g;return x+=u,A+=s,{lines:m,height:p,outerWidth:A,outerHeight:x,lineHeight:h,calculatedLineHeight:c,contentWidth:C,contentHeight:y,width:g,isTruncated:d}}var sx=(function(){function t(){}return t})(),sd=(function(){function t(e){this.tokens=[],e&&(this.tokens=e)}return t})(),ux=(function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return t})();function lx(t,e,r,n,i){var a=new ux,o=ph(t);if(!o)return a;var s=e.padding,u=s?s[1]+s[3]:0,l=s?s[0]+s[2]:0,f=e.width;f==null&&r!=null&&(f=r-u);var c=e.height;c==null&&n!=null&&(c=n-l);for(var h=e.overflow,v=(h==="break"||h==="breakAll")&&f!=null?{width:f,accumWidth:0,breakAll:h==="breakAll"}:null,d=bl.lastIndex=0,g;(g=bl.exec(o))!=null;){var p=g.index;p>d&&wl(a,o.substring(d,p),e,v),wl(a,g[2],e,v,g[1]),d=bl.lastIndex}d<o.length&&wl(a,o.substring(d,o.length),e,v);var m=[],y=0,_=0,S=h==="truncate",b=e.lineOverflow==="truncate",w={};function x(te,He,Ze){te.width=He,te.lineHeight=Ze,y+=Ze,_=Math.max(_,He)}e:for(var C=0;C<a.lines.length;C++){for(var D=a.lines[C],A=0,T=0,k=0;k<D.tokens.length;k++){var P=D.tokens[k],O=P.styleName&&e.rich[P.styleName]||{},B=P.textPadding=O.padding,F=B?B[1]+B[3]:0,$=P.font=O.font||e.font;P.contentHeight=ku($);var W=ie(O.height,P.contentHeight);if(P.innerHeight=W,B&&(W+=B[0]+B[2]),P.height=W,P.lineHeight=Yn(O.lineHeight,e.lineHeight,W),P.align=O&&O.align||i,P.verticalAlign=O&&O.verticalAlign||"middle",b&&c!=null&&y+P.lineHeight>c){var z=a.lines.length;k>0?(D.tokens=D.tokens.slice(0,k),x(D,T,A),a.lines=a.lines.slice(0,C+1)):a.lines=a.lines.slice(0,C),a.isTruncated=a.isTruncated||a.lines.length<z;break e}var q=O.width,H=q==null||q==="auto";if(typeof q=="string"&&q.charAt(q.length-1)==="%")P.percentWidth=q,m.push(P),P.contentWidth=gr(pr($),P.text);else{if(H){var X=O.backgroundColor,ne=X&&X.image;ne&&(ne=Hw(ne),Ru(ne)&&(P.width=Math.max(P.width,ne.width*W/ne.height)))}var K=S&&f!=null?f-T:null;K!=null&&K<P.width?!H||K<F?(P.text="",P.width=P.contentWidth=0):(by(w,P.text,K-F,$,e.ellipsis,{minChar:e.truncateMinChar}),P.text=w.text,a.isTruncated=a.isTruncated||w.isTruncated,P.width=P.contentWidth=gr(pr($),P.text)):P.contentWidth=gr(pr($),P.text)}P.width+=F,T+=P.width,O&&(A=Math.max(A,P.lineHeight))}x(D,T,A)}a.outerWidth=a.width=ie(f,_),a.outerHeight=a.height=ie(c,y),a.contentHeight=y,a.contentWidth=_,a.outerWidth+=u,a.outerHeight+=l;for(var C=0;C<m.length;C++){var P=m[C],ue=P.percentWidth;P.width=parseInt(ue,10)/100*a.width}return a}function wl(t,e,r,n,i){var a=e==="",o=i&&r.rich[i]||{},s=t.lines,u=o.font||r.font,l=!1,f,c;if(n){var h=o.padding,v=h?h[1]+h[3]:0;if(o.width!=null&&o.width!=="auto"){var d=Jn(o.width,n.width)+v;s.length>0&&d+n.accumWidth>n.width&&(f=e.split(`
20 `),l=!0),n.accumWidth=d}else{var g=Ty(e,u,n.width,n.breakAll,n.accumWidth);n.accumWidth=g.accumWidth+v,c=g.linesWidths,f=g.lines}}f||(f=e.split(`
21 `));for(var p=pr(u),m=0;m<f.length;m++){var y=f[m],_=new sx;if(_.styleName=i,_.text=y,_.isLineHolder=!y&&!a,typeof o.width=="number"?_.width=o.width:_.width=c?c[m]:gr(p,y),!m&&!l){var S=(s[s.length-1]||(s[0]=new sd)).tokens,b=S.length;b===1&&S[0].isLineHolder?S[0]=_:(y||!b||a)&&S.push(_)}else s.push(new sd([_]))}}function fx(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var cx=_r(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function hx(t){return fx(t)?!!cx[t]:!0}function Ty(t,e,r,n,i){for(var a=[],o=[],s="",u="",l=0,f=0,c=pr(e),h=0;h<t.length;h++){var v=t.charAt(h);if(v===`
22 `){u&&(s+=u,f+=l),a.push(s),o.push(f),s="",u="",l=0,f=0;continue}var d=_y(c,v.charCodeAt(0)),g=n?!1:!hx(v);if(a.length?f+d>r:i+f+d>r){f?(s||u)&&(g?(s||(s=u,u="",l=0,f=l),a.push(s),o.push(f-l),u+=v,l+=d,s="",f=l):(u&&(s+=u,u="",l=0),a.push(s),o.push(f),s=v,f=d)):g?(a.push(u),o.push(l),u=v,l=d):(a.push(v),o.push(d));continue}f+=d,g?(u+=v,l+=d):(u&&(s+=u,u="",l=0),s+=v)}return u&&(s+=u),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}function ud(t,e,r,n,i,a){if(t.baseX=r,t.baseY=n,t.outerWidth=t.outerHeight=null,!!e){var o=e.width*2,s=e.height*2;se.set(ld,Ui(r,o,i),jn(n,s,a),o,s),se.intersect(e,ld,null,fd);var u=fd.outIntersectRect;t.outerWidth=u.width,t.outerHeight=u.height,t.baseX=Ui(u.x,u.width,i,!0),t.baseY=jn(u.y,u.height,a,!0)}}var ld=new se(0,0,0,0),fd={outIntersectRect:{},clamp:!0};function ph(t){return t!=null?t+="":t=""}function vx(t){var e=ph(t.text),r=t.font,n=gr(pr(r),e),i=ku(r);return $f(t,n,i,null)}function $f(t,e,r,n){var i=new se(Ui(t.x||0,e,t.textAlign),jn(t.y||0,r,t.textBaseline),e,r),a=n!=null?n:Cy(t)?t.lineWidth:0;return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function Cy(t){var e=t.stroke;return e!=null&&e!=="none"&&t.lineWidth>0}var cd=ii,hd=5e-5;function Sn(t){return t>hd||t<-hd}var bn=[],hi=[],xl=Vt(),Tl=Math.abs,yo=(function(){function t(){}return t.prototype.getLocalTransform=function(e){return dx(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return Sn(this.rotation)||Sn(this.x)||Sn(this.y)||Sn(this.scaleX-1)||Sn(this.scaleY-1)||Sn(this.skewX)||Sn(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||e)){n&&(cd(n),this.invTransform=null);return}n=n||Vt(),r?this.getLocalTransform(n):cd(n),e&&(r?Xn(n,e,n):mo(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||Vt(),ai(this.invTransform,n)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(bn);var n=bn[0]<0?-1:1,i=bn[1]<0?-1:1,a=((bn[0]-n)*r+n)/bn[0]||0,o=((bn[1]-i)*r+i)/bn[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}},t.prototype.getComputedTransform=function(){for(var e=this,r=[];e;)r.push(e),e=e.parent;for(;e=r.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var r=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),a=Math.PI/2+i-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,r=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||Vt(),Xn(hi,e.invTransform,r),r=hi);var n=this.originX,i=this.originY;(n||i)&&(xl[4]=n,xl[5]=i,Xn(hi,r,xl),hi[4]-=n,hi[5]-=i,r=hi),this.setLocalTransform(r)}},t.prototype.getGlobalScale=function(e){var r=this.transform;return e=e||[],r?(e[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),e[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(e[0]=-e[0]),r[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,r){var n=[e,r],i=this.invTransform;return i&&lt(n,n,i),n},t.prototype.transformCoordToGlobal=function(e,r){var n=[e,r],i=this.transform;return i&&lt(n,n,i),n},t.prototype.getLineScale=function(){var e=this.transform;return e&&Tl(e[0]-1)>1e-10&&Tl(e[3]-1)>1e-10?Math.sqrt(Tl(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){js(this,e)},t.getLocalTransform=function(e,r){r=r||[];var n=e.originX||0,i=e.originY||0,a=e.scaleX,o=e.scaleY,s=e.anchorX,u=e.anchorY,l=e.rotation||0,f=e.x,c=e.y,h=e.skewX?Math.tan(e.skewX):0,v=e.skewY?Math.tan(-e.skewY):0;if(n||i||s||u){var d=n+s,g=i+u;r[4]=-d*a-h*g*o,r[5]=-g*o-v*d*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=v*a,r[2]=h*o,l&&Ou(r,r,l),r[4]+=n+f,r[5]+=i+c,r},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})(),dx=yo.getLocalTransform,Nu=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function js(t,e){return ey(t,e,Nu)}var za={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 t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},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,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)))},elasticOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},elasticInOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),(t*=2)<1?-.5*(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)):r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.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?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-za.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?za.bounceIn(t*2)*.5:za.bounceOut(t*2-1)*.5+.5}},Lo=Math.pow,tn=Math.sqrt,$s=1e-8,My=1e-4,vd=tn(3),Eo=1/3,vr=oi(),kt=oi(),ki=oi();function Qr(t){return t>-$s&&t<$s}function Dy(t){return t>$s||t<-$s}function it(t,e,r,n,i){var a=1-i;return a*a*(a*t+3*i*e)+i*i*(i*n+3*a*r)}function dd(t,e,r,n,i){var a=1-i;return 3*(((e-t)*a+2*(r-e)*i)*a+(n-r)*i*i)}function Ay(t,e,r,n,i,a){var o=n+3*(e-r)-t,s=3*(r-e*2+t),u=3*(e-t),l=t-i,f=s*s-3*o*u,c=s*u-9*o*l,h=u*u-3*s*l,v=0;if(Qr(f)&&Qr(c))if(Qr(s))a[0]=0;else{var d=-u/s;d>=0&&d<=1&&(a[v++]=d)}else{var g=c*c-4*f*h;if(Qr(g)){var p=c/f,d=-s/o+p,m=-p/2;d>=0&&d<=1&&(a[v++]=d),m>=0&&m<=1&&(a[v++]=m)}else if(g>0){var y=tn(g),_=f*s+1.5*o*(-c+y),S=f*s+1.5*o*(-c-y);_<0?_=-Lo(-_,Eo):_=Lo(_,Eo),S<0?S=-Lo(-S,Eo):S=Lo(S,Eo);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(a[v++]=d)}else{var b=(2*f*s-3*o*c)/(2*tn(f*f*f)),w=Math.acos(b)/3,x=tn(f),C=Math.cos(w),d=(-s-2*x*C)/(3*o),m=(-s+x*(C+vd*Math.sin(w)))/(3*o),D=(-s+x*(C-vd*Math.sin(w)))/(3*o);d>=0&&d<=1&&(a[v++]=d),m>=0&&m<=1&&(a[v++]=m),D>=0&&D<=1&&(a[v++]=D)}}return v}function Py(t,e,r,n,i){var a=6*r-12*e+6*t,o=9*e+3*n-3*t-9*r,s=3*e-3*t,u=0;if(Qr(o)){if(Dy(a)){var l=-s/a;l>=0&&l<=1&&(i[u++]=l)}}else{var f=a*a-4*o*s;if(Qr(f))i[0]=-a/(2*o);else if(f>0){var c=tn(f),l=(-a+c)/(2*o),h=(-a-c)/(2*o);l>=0&&l<=1&&(i[u++]=l),h>=0&&h<=1&&(i[u++]=h)}}return u}function Zs(t,e,r,n,i,a){var o=(e-t)*i+t,s=(r-e)*i+e,u=(n-r)*i+r,l=(s-o)*i+o,f=(u-s)*i+s,c=(f-l)*i+l;a[0]=t,a[1]=o,a[2]=l,a[3]=c,a[4]=c,a[5]=f,a[6]=u,a[7]=n}function px(t,e,r,n,i,a,o,s,u,l,f){var c,h=.005,v=1/0,d,g,p,m;vr[0]=u,vr[1]=l;for(var y=0;y<1;y+=.05)kt[0]=it(t,r,i,o,y),kt[1]=it(e,n,a,s,y),p=qn(vr,kt),p<v&&(c=y,v=p);v=1/0;for(var _=0;_<32&&!(h<My);_++)d=c-h,g=c+h,kt[0]=it(t,r,i,o,d),kt[1]=it(e,n,a,s,d),p=qn(kt,vr),d>=0&&p<v?(c=d,v=p):(ki[0]=it(t,r,i,o,g),ki[1]=it(e,n,a,s,g),m=qn(ki,vr),g<=1&&m<v?(c=g,v=m):h*=.5);return tn(v)}function gx(t,e,r,n,i,a,o,s,u){for(var l=t,f=e,c=0,h=1/u,v=1;v<=u;v++){var d=v*h,g=it(t,r,i,o,d),p=it(e,n,a,s,d),m=g-l,y=p-f;c+=Math.sqrt(m*m+y*y),l=g,f=p}return c}function pt(t,e,r,n){var i=1-n;return i*(i*t+2*n*e)+n*n*r}function pd(t,e,r,n){return 2*((1-n)*(e-t)+n*(r-e))}function mx(t,e,r,n,i){var a=t-2*e+r,o=2*(e-t),s=t-n,u=0;if(Qr(a)){if(Dy(o)){var l=-s/o;l>=0&&l<=1&&(i[u++]=l)}}else{var f=o*o-4*a*s;if(Qr(f)){var l=-o/(2*a);l>=0&&l<=1&&(i[u++]=l)}else if(f>0){var c=tn(f),l=(-o+c)/(2*a),h=(-o-c)/(2*a);l>=0&&l<=1&&(i[u++]=l),h>=0&&h<=1&&(i[u++]=h)}}return u}function Iy(t,e,r){var n=t+r-2*e;return n===0?.5:(t-e)/n}function Ks(t,e,r,n,i){var a=(e-t)*n+t,o=(r-e)*n+e,s=(o-a)*n+a;i[0]=t,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function yx(t,e,r,n,i,a,o,s,u){var l,f=.005,c=1/0;vr[0]=o,vr[1]=s;for(var h=0;h<1;h+=.05){kt[0]=pt(t,r,i,h),kt[1]=pt(e,n,a,h);var v=qn(vr,kt);v<c&&(l=h,c=v)}c=1/0;for(var d=0;d<32&&!(f<My);d++){var g=l-f,p=l+f;kt[0]=pt(t,r,i,g),kt[1]=pt(e,n,a,g);var v=qn(kt,vr);if(g>=0&&v<c)l=g,c=v;else{ki[0]=pt(t,r,i,p),ki[1]=pt(e,n,a,p);var m=qn(ki,vr);p<=1&&m<c?(l=p,c=m):f*=.5}}return tn(c)}function _x(t,e,r,n,i,a,o){for(var s=t,u=e,l=0,f=1/o,c=1;c<=o;c++){var h=c*f,v=pt(t,r,i,h),d=pt(e,n,a,h),g=v-s,p=d-u;l+=Math.sqrt(g*g+p*p),s=v,u=d}return l}var Sx=/cubic-bezier\(([0-9,\.e ]+)\)/;function Ly(t){var e=t&&Sx.exec(t);if(e){var r=e[1].split(","),n=+Jt(r[0]),i=+Jt(r[1]),a=+Jt(r[2]),o=+Jt(r[3]);if(isNaN(n+i+a+o))return;var s=[];return function(u){return u<=0?0:u>=1?1:Ay(0,n,a,1,u,s)&&it(0,i,o,1,s[0])}}}var bx=(function(){function t(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||je,this.ondestroy=e.ondestroy||je,this.onrestart=e.onrestart||je,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,r){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,i=e-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var u=i%n;this._startTime=e-u,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=fe(e)?e:za[e]||Ly(e)},t})(),gd={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 er(t){return t=Math.round(t),t<0?0:t>255?255:t}function xx(t){return t=Math.round(t),t<0?0:t>360?360:t}function Ka(t){return t<0?0:t>1?1:t}function ws(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?er(parseFloat(e)/100*255):er(parseInt(e,10))}function rn(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?Ka(parseFloat(e)/100):Ka(parseFloat(e))}function Cl(t,e,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?t+(e-t)*r*6:r*2<1?e:r*3<2?t+(e-t)*(2/3-r)*6:t}function Jr(t,e,r){return t+(e-t)*r}function It(t,e,r,n,i){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t}function Zf(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var Ey=new Wi(20),Ro=null;function vi(t,e){Ro&&Zf(Ro,e),Ro=Ey.put(t,Ro||e.slice())}function Gt(t,e){if(t){e=e||[];var r=Ey.get(t);if(r)return Zf(e,r);t=t+"";var n=t.replace(/ /g,"").toLowerCase();if(n in gd)return Zf(e,gd[n]),vi(t,e),e;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){It(e,0,0,0,1);return}return It(e,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),vi(t,e),e}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){It(e,0,0,0,1);return}return It(e,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),vi(t,e),e}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var u=n.substr(0,o),l=n.substr(o+1,s-(o+1)).split(","),f=1;switch(u){case"rgba":if(l.length!==4)return l.length===3?It(e,+l[0],+l[1],+l[2],1):It(e,0,0,0,1);f=rn(l.pop());case"rgb":if(l.length>=3)return It(e,ws(l[0]),ws(l[1]),ws(l[2]),l.length===3?f:rn(l[3])),vi(t,e),e;It(e,0,0,0,1);return;case"hsla":if(l.length!==4){It(e,0,0,0,1);return}return l[3]=rn(l[3]),Kf(l,e),vi(t,e),e;case"hsl":if(l.length!==3){It(e,0,0,0,1);return}return Kf(l,e),vi(t,e),e;default:return}}It(e,0,0,0,1)}}function Kf(t,e){var r=(parseFloat(t[0])%360+360)%360/360,n=rn(t[1]),i=rn(t[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return e=e||[],It(e,er(Cl(o,a,r+1/3)*255),er(Cl(o,a,r)*255),er(Cl(o,a,r-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function Tx(t){if(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),a=Math.max(e,r,n),o=a-i,s=(a+i)/2,u,l;if(o===0)u=0,l=0;else{s<.5?l=o/(a+i):l=o/(2-a-i);var f=((a-e)/6+o/2)/o,c=((a-r)/6+o/2)/o,h=((a-n)/6+o/2)/o;e===a?u=h-c:r===a?u=1/3+f-h:n===a&&(u=2/3+c-f),u<0&&(u+=1),u>1&&(u-=1)}var v=[u*360,l,s];return t[3]!=null&&v.push(t[3]),v}}function Qf(t,e){var r=Gt(t);if(r){for(var n=0;n<3;n++)e<0?r[n]=r[n]*(1-e)|0:r[n]=(255-r[n])*e+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return si(r,r.length===4?"rgba":"rgb")}}function Cx(t){var e=Gt(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function Ry(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){r=r||[];var n=t*(e.length-1),i=Math.floor(n),a=Math.ceil(n),o=e[i],s=e[a],u=n-i;return r[0]=er(Jr(o[0],s[0],u)),r[1]=er(Jr(o[1],s[1],u)),r[2]=er(Jr(o[2],s[2],u)),r[3]=Ka(Jr(o[3],s[3],u)),r}}var Mx=Ry;function Oy(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){var n=t*(e.length-1),i=Math.floor(n),a=Math.ceil(n),o=Gt(e[i]),s=Gt(e[a]),u=n-i,l=si([er(Jr(o[0],s[0],u)),er(Jr(o[1],s[1],u)),er(Jr(o[2],s[2],u)),Ka(Jr(o[3],s[3],u))],"rgba");return r?{color:l,leftIndex:i,rightIndex:a,value:n}:l}}var Dx=Oy;function Qs(t,e,r,n){var i=Gt(t);if(t)return i=Tx(i),e!=null&&(i[0]=xx(fe(e)?e(i[0]):e)),r!=null&&(i[1]=rn(fe(r)?r(i[1]):r)),n!=null&&(i[2]=rn(fe(n)?n(i[2]):n)),si(Kf(i),"rgba")}function Ax(t,e){var r=Gt(t);if(r&&e!=null)return r[3]=Ka(e),si(r,"rgba")}function si(t,e){if(!(!t||!t.length)){var r=t[0]+","+t[1]+","+t[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(r+=","+t[3]),e+"("+r+")"}}function Qa(t,e){var r=Gt(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}function Px(){return si([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var md=new Wi(100);function Jf(t){if(Q(t)){var e=md.get(t);return e||(e=Qf(t,-.1),md.put(t,e)),e}else if(po(t)){var r=V({},t);return r.colorStops=re(t.colorStops,function(n){return{offset:n.offset,color:Qf(n.color,-.1)}}),r}return t}var Ix=Object.freeze({__proto__:null,fastLerp:Ry,fastMapToColor:Mx,lerp:Oy,lift:Qf,liftColor:Jf,lum:Qa,mapToColor:Dx,modifyAlpha:Ax,modifyHSL:Qs,parse:Gt,parseCssFloat:rn,parseCssInt:ws,random:Px,stringify:si,toHex:Cx});function Lx(t){return t.type==="linear"}function Ex(t){return t.type==="radial"}(function(){return typeof Buffer!="undefined"&&typeof Buffer.from=="function"?function(t){return Buffer.from(t).toString("base64")}:typeof btoa=="function"&&typeof unescape=="function"&&typeof encodeURIComponent=="function"?function(t){return btoa(unescape(encodeURIComponent(t)))}:function(t){return null}})();var ec=Array.prototype.slice;function Lr(t,e,r){return(e-t)*r+t}function Ml(t,e,r,n){for(var i=e.length,a=0;a<i;a++)t[a]=Lr(e[a],r[a],n);return t}function Rx(t,e,r,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=Lr(e[o][s],r[o][s],n)}return t}function Oo(t,e,r,n){for(var i=e.length,a=0;a<i;a++)t[a]=e[a]+r[a]*n;return t}function yd(t,e,r,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=e[o][s]+r[o][s]*n}return t}function Ox(t,e){for(var r=t.length,n=e.length,i=r>n?e:t,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function kx(t,e,r){var n=t,i=e;if(!(!n.push||!i.push)){var a=n.length,o=i.length;if(a!==o){var s=a>o;if(s)n.length=o;else for(var u=a;u<o;u++)n.push(r===1?i[u]:ec.call(i[u]))}for(var l=n[0]&&n[0].length,u=0;u<n.length;u++)if(r===1)isNaN(n[u])&&(n[u]=i[u]);else for(var f=0;f<l;f++)isNaN(n[u][f])&&(n[u][f]=i[u][f])}}function xs(t){if(ct(t)){var e=t.length;if(ct(t[0])){for(var r=[],n=0;n<e;n++)r.push(ec.call(t[n]));return r}return ec.call(t)}return t}function Ts(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]=t[3]==null?1:t[3],"rgba("+t.join(",")+")"}function Nx(t){return ct(t&&t[0])?2:1}var ko=0,Cs=1,ky=2,La=3,tc=4,rc=5,_d=6;function Sd(t){return t===tc||t===rc}function No(t){return t===Cs||t===ky}var ha=[0,0,0,0],Bx=(function(){function t(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}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(e,r,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=_d,u=r;if(ct(r)){var l=Nx(r);s=l,(l===1&&!Le(r[0])||l===2&&!Le(r[0][0]))&&(o=!0)}else if(Le(r)&&!Gi(r))s=ko;else if(Q(r))if(!isNaN(+r))s=ko;else{var f=Gt(r);f&&(u=f,s=La)}else if(po(r)){var c=V({},u);c.colorStops=re(r.colorStops,function(v){return{offset:v.offset,color:Gt(v.color)}}),Lx(r)?s=tc:Ex(r)&&(s=rc),u=c}a===0?this.valType=s:(s!==this.valType||s===_d)&&(o=!0),this.discrete=this.discrete||o;var h={time:e,value:u,rawValue:r,percent:0};return n&&(h.easing=n,h.easingFunc=fe(n)?n:za[n]||Ly(n)),i.push(h),h},t.prototype.prepare=function(e,r){var n=this.keyframes;this._needsSort&&n.sort(function(g,p){return g.time-p.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,u=No(i),l=Sd(i),f=0;f<a;f++){var c=n[f],h=c.value,v=o.value;c.percent=c.time/e,s||(u&&f!==a-1?kx(h,v,i):l&&Ox(h.colorStops,v.colorStops))}if(!s&&i!==rc&&r&&this.needsAnimate()&&r.needsAnimate()&&i===r.valType&&!r._finished){this._additiveTrack=r;for(var d=n[0].value,f=0;f<a;f++)i===ko?n[f].additiveValue=n[f].value-d:i===La?n[f].additiveValue=Oo([],n[f].value,d,-1):No(i)&&(n[f].additiveValue=i===Cs?Oo([],n[f].value,d,-1):yd([],n[f].value,d,-1))}},t.prototype.step=function(e,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,i=n?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,u=this.propName,l=a===La,f,c=this._lastFr,h=Math.min,v,d;if(s===1)v=d=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var g=h(c+1,s-1);for(f=g;f>=0&&!(o[f].percent<=r);f--);f=h(f,s-2)}else{for(f=c;f<s&&!(o[f].percent>r);f++);f=h(f-1,s-2)}d=o[f+1],v=o[f]}if(v&&d){this._lastFr=f,this._lastFrP=r;var p=d.percent-v.percent,m=p===0?1:h((r-v.percent)/p,1);d.easingFunc&&(m=d.easingFunc(m));var y=n?this._additiveValue:l?ha:e[u];if((No(a)||l)&&!y&&(y=this._additiveValue=[]),this.discrete)e[u]=m<1?v.rawValue:d.rawValue;else if(No(a))a===Cs?Ml(y,v[i],d[i],m):Rx(y,v[i],d[i],m);else if(Sd(a)){var _=v[i],S=d[i],b=a===tc;e[u]={type:b?"linear":"radial",x:Lr(_.x,S.x,m),y:Lr(_.y,S.y,m),colorStops:re(_.colorStops,function(x,C){var D=S.colorStops[C];return{offset:Lr(x.offset,D.offset,m),color:Ts(Ml([],x.color,D.color,m))}}),global:S.global},b?(e[u].x2=Lr(_.x2,S.x2,m),e[u].y2=Lr(_.y2,S.y2,m)):e[u].r=Lr(_.r,S.r,m)}else if(l)Ml(y,v[i],d[i],m),n||(e[u]=Ts(y));else{var w=Lr(v[i],d[i],m);n?this._additiveValue=w:e[u]=w}n&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var r=this.valType,n=this.propName,i=this._additiveValue;r===ko?e[n]=e[n]+i:r===La?(Gt(e[n],ha),Oo(ha,ha,i,1),e[n]=Ts(ha)):r===Cs?Oo(e[n],e[n],i,1):r===ky&&yd(e[n],e[n],i,1)},t})(),gh=(function(){function t(e,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=r,r&&i){Pu("Can' use additive animation on looped animation.");return}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(e){this._target=e},t.prototype.when=function(e,r,n){return this.whenWithKeys(e,r,Ae(r),n)},t.prototype.whenWithKeys=function(e,r,n,i){for(var a=this._tracks,o=0;o<n.length;o++){var s=n[o],u=a[s];if(!u){u=a[s]=new Bx(s);var l=void 0,f=this._getAdditiveTrack(s);if(f){var c=f.keyframes,h=c[c.length-1];l=h&&h.value,f.valType===La&&l&&(l=Ts(l))}else l=this._target[s];if(l==null)continue;e>0&&u.addKeyframe(0,xs(l),i),this._trackKeys.push(s)}u.addKeyframe(e,xs(r[s]),i)}return this._maxTime=Math.max(this._maxTime,e),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(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var r=e.length,n=0;n<r;n++)e[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,r=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},t.prototype._setTracksFinished=function(){for(var e=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)e[r[n]].setFinished()},t.prototype._getAdditiveTrack=function(e){var r,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(e);a&&(r=a)}return r},t.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var r=this,n=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],u=this._getAdditiveTrack(o),l=s.keyframes,f=l.length;if(s.prepare(i,u),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var c=l[f-1];c&&(r._target[s.propName]=c.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var h=new bx({life:i,loop:this._loop,delay:this._delay||0,onframe:function(v){r._started=2;var d=r._additiveAnimators;if(d){for(var g=!1,p=0;p<d.length;p++)if(d[p]._clip){g=!0;break}g||(r._additiveAnimators=null)}for(var p=0;p<n.length;p++)n[p].step(r._target,v);var m=r._onframeCbs;if(m)for(var p=0;p<m.length;p++)m[p](r._target,v)},ondestroy:function(){r._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),e&&h.setEasing(e)}else this._doneCallback();return this}},t.prototype.stop=function(e){if(this._clip){var r=this._clip;e&&r.onframe(1),this._abortedCallback()}},t.prototype.delay=function(e){return this._delay=e,this},t.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},t.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},t.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(e){return this._tracks[e]},t.prototype.getTracks=function(){var e=this;return re(this._trackKeys,function(r){return e._tracks[r]})},t.prototype.stopTracks=function(e,r){if(!e.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,a=0;a<e.length;a++){var o=n[e[a]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<i.length;a++)if(!n[i[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},t.prototype.saveTo=function(e,r,n){if(e){r=r||this._trackKeys;for(var i=0;i<r.length;i++){var a=r[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,u=s[n?0:s.length-1];u&&(e[a]=xs(u.rawValue))}}}},t.prototype.__changeFinalValue=function(e,r){r=r||Ae(e);for(var n=0;n<r.length;n++){var i=r[n],a=this._tracks[i];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,e[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},t})(),wr=(function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,r,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(i=n,n=r,r=null),!n||!e)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[e]||(a[e]=[]);for(var s=0;s<a[e].length;s++)if(a[e][s].h===n)return this;var u={h:n,query:r,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},l=a[e].length-1,f=a[e][l];return f&&f.callAtLast?a[e].splice(l,0,u):a[e].push(u),this},t.prototype.isSilent=function(e){var r=this._$handlers;return!r||!r[e]||!r[e].length},t.prototype.off=function(e,r){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(r){if(n[e]){for(var i=[],a=0,o=n[e].length;a<o;a++)n[e][a].h!==r&&i.push(n[e][a]);n[e]=i}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},t.prototype.trigger=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],a=this._$eventProcessor;if(i)for(var o=r.length,s=i.length,u=0;u<s;u++){var l=i[u];if(!(a&&a.filter&&l.query!=null&&!a.filter(e,l.query)))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,r[0]);break;case 2:l.h.call(l.ctx,r[0],r[1]);break;default:l.h.apply(l.ctx,r);break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t.prototype.triggerWithContext=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],a=this._$eventProcessor;if(i)for(var o=r.length,s=r[o-1],u=i.length,l=0;l<u;l++){var f=i[l];if(!(a&&a.filter&&f.query!=null&&!a.filter(e,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,r[0]);break;case 2:f.h.call(s,r[0],r[1]);break;default:f.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t})(),Ny=1;le.hasGlobalWindow&&(Ny=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Js=Ny,nc=.4,ic="#333",ac="#ccc",Fx="#eee",mt=1,Ea=2,Di=4,Dl="__zr_normal__",Al=Nu.concat(["ignore"]),zx=_r(Nu,function(t,e){return t[e]=!0,t},{ignore:!1}),di={},Hx=new se(0,0,0,0),Bo=[],Ms=0,Bu=1,Fu=(function(){function t(e){this.id=lh(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":e=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=e,i[5]+=r,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(e){var r=this._textContent;if(r&&(!r.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=r.innerTransformable,o=void 0,s=void 0,u=!1;a.parent=i?this:null;var l=!1;a.copyTransform(r);var f=n.position!=null,c=n.autoOverflowArea,h=void 0;if((c||f)&&(h=Hx,n.layoutRect?h.copy(n.layoutRect):h.copy(this.getBoundingRect()),i||h.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(di,n,h):qs(di,n,h),a.x=di.x,a.y=di.y,o=di.align,s=di.verticalAlign;var v=n.origin;if(v&&n.rotation!=null){var d=void 0,g=void 0;v==="center"?(d=h.width*.5,g=h.height*.5):(d=Jn(v[0],h.width),g=Jn(v[1],h.height)),l=!0,a.originX=-a.x+d+(i?0:h.x),a.originY=-a.y+g+(i?0:h.y)}}n.rotation!=null&&(a.rotation=n.rotation);var p=n.offset;p&&(a.x+=p[0],a.y+=p[1],l||(a.originX=-p[0],a.originY=-p[1]));var m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(c){var y=m.overflowRect=m.overflowRect||new se(0,0,0,0);a.getLocalTransform(Bo),ai(Bo,Bo),se.copy(y,h),y.applyTransform(Bo)}else m.overflowRect=null;var _=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,S=void 0,b=void 0,w=void 0;_&&this.canBeInsideText()?(S=n.insideFill,b=n.insideStroke,(S==null||S==="auto")&&(S=this.getInsideTextFill()),(b==null||b==="auto")&&(b=this.getInsideTextStroke(S),w=!0)):(S=n.outsideFill,b=n.outsideStroke,(S==null||S==="auto")&&(S=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(S),w=!0)),S=S||"#000",(S!==m.fill||b!==m.stroke||w!==m.autoStroke||o!==m.align||s!==m.verticalAlign)&&(u=!0,m.fill=S,m.stroke=b,m.autoStroke=w,m.align=o,m.verticalAlign=s,r.setDefaultTextStyle(m)),r.__dirty|=mt,u&&r.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(e){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?ac:ic},t.prototype.getOutsideStroke=function(e){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&Gt(r);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,si(n,"rgba")},t.prototype.traverse=function(e,r){},t.prototype.attrKV=function(e,r){e==="textConfig"?this.setTextConfig(r):e==="textContent"?this.setTextContent(r):e==="clipPath"?this.setClipPath(r):e==="extra"?(this.extra=this.extra||{},V(this.extra,r)):this[e]=r},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(e,r){if(typeof e=="string")this.attrKV(e,r);else if(ee(e))for(var n=e,i=Ae(n),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,e[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var r=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==Dl)){var o=i.targetName,s=o?r[o]:r;i.saveTo(s)}}},t.prototype._innerSaveToNormal=function(e){var r=this._normalState;r||(r=this._normalState={}),e.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(e,r,Al)},t.prototype._savePrimaryToNormal=function(e,r,n){for(var i=0;i<n.length;i++){var a=n[i];e[a]!=null&&!(a in r)&&(r[a]=this[a])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var r=this.states;return r[e]||(r[e]={}),r[e]},t.prototype.clearStates=function(e){this.useState(Dl,!1,e)},t.prototype.useState=function(e,r,n,i){var a=e===Dl,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,u=this.stateTransition;if(!(me(s,e)>=0&&(r||s.length===1))){var l;if(this.stateProxy&&!a&&(l=this.stateProxy(e)),l||(l=this.states&&this.states[e]),!l&&!a){Pu("State "+e+" not exists.");return}a||this.saveCurrentToNormalState(l);var f=this._textContent,c=bd(this,f,l,i);c&&!this.__inHover&&(this.__inHover=c),this._applyStateObj(e,l,this._normalState,r,xd(this,n,u),u);var h=this._textGuide;return f&&f.useState(e,r,n,!!c),h&&h.useState(e,r,n,!!c),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this.__inHover=Ms,this.__dirty&=~mt),l}}},t.prototype.useStates=function(e,r,n){if(!e.length)this.clearStates();else{var i=[],a=this.currentStates,o=e.length,s=o===a.length;if(s){for(var u=0;u<o;u++)if(e[u]!==a[u]){s=!1;break}}if(s)return;for(var u=0;u<o;u++){var l=e[u],f=void 0;this.stateProxy&&(f=this.stateProxy(l,e)),f||(f=this.states[l]),f&&i.push(f)}var c=i[o-1],h=this._textContent,v=bd(this,h,c,n);v&&!this.__inHover&&(this.__inHover=v);var d=this._mergeStates(i),g=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(e.join(","),d,this._normalState,!1,xd(this,r,g),g);var p=this._textGuide;h&&h.useStates(e,r,!!v),p&&p.useStates(e,r,!!v),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!v&&this.__inHover&&(this.__inHover=Ms,this.__dirty&=~mt)}},t.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var r=e.__hostTarget;e=r?e.ignoreHostSilent?null:r:e.parent}return!1},t.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var r=this.animators[e];r.targetName&&r.changeTarget(this[r.targetName])}},t.prototype.removeState=function(e){var r=me(this.currentStates,e);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},t.prototype.replaceState=function(e,r,n){var i=this.currentStates.slice(),a=me(i,e),o=me(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&i.push(r),this.useStates(i)},t.prototype.toggleState=function(e,r){r?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var r={},n,i=0;i<e.length;i++){var a=e[i];V(r,a),a.textConfig&&(n=n||{},V(n,a.textConfig))}return n&&(r.textConfig=n),r},t.prototype._applyStateObj=function(e,r,n,i,a,o){if(this.__inHover!==Bu){var s=!(r&&i);r&&r.textConfig?(this.textConfig=V({},i?this.textConfig:n.textConfig),V(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var u={},l=!1,f=0;f<Al.length;f++){var c=Al[f],h=a&&zx[c];r&&r[c]!=null?h?(l=!0,u[c]=r[c]):this[c]=r[c]:s&&n[c]!=null&&(h?(l=!0,u[c]=n[c]):this[c]=n[c])}if(!a)for(var f=0;f<this.animators.length;f++){var v=this.animators[f],d=v.targetName;v.getLoop()||v.__changeFinalValue(d?(r||n)[d]:r||n)}l&&this._transitionState(e,u,o)}},t.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var r=this.__zr;r&&e.addSelfToZr(r),e.__zr=r,e.__hostTarget=this}},t.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},t.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(e){var r=this._textContent;r!==e&&(r&&r!==e&&this.removeTextContent(),e.innerTransformable=new yo,this._attachComponent(e),this._textContent=e,this.markRedraw())},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),V(this.textConfig,e),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=mt;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var r=this.animators;if(r)for(var n=0;n<r.length;n++)e.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)e.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},t.prototype.animate=function(e,r,n){var i=e?this[e]:this,a=new gh(i,r,n);return e&&(a.targetName=e),this.addAnimator(a,e),a},t.prototype.addAnimator=function(e,r){var n=this.__zr,i=this;e.during(function(){i.updateDuringAnimation(r)}).done(function(){var a=i.animators,o=me(a,e);o>=0&&a.splice(o,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,r){for(var n=this.animators,i=n.length,a=[],o=0;o<i;o++){var s=n[o];!e||e===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},t.prototype.animateTo=function(e,r,n){Pl(this,e,r,n)},t.prototype.animateFrom=function(e,r,n){Pl(this,e,r,n,!0)},t.prototype._transitionState=function(e,r,n,i){for(var a=Pl(this,r,n,i),o=0;o<a.length;o++)a[o].__fromStateTransition=e},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=(function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=!1,e.__inHover=Ms,e.__dirty=mt;function r(n,i,a,o){Object.defineProperty(e,n,{get:function(){if(!this[i]){var u=this[i]=[];s(this,u)}return this[i]},set:function(u){this[a]=u[0],this[o]=u[1],this[i]=u,s(this,u)}});function s(u,l){Object.defineProperty(l,0,{get:function(){return u[a]},set:function(f){u[a]=f}}),Object.defineProperty(l,1,{get:function(){return u[o]},set:function(f){u[o]=f}})}}Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))})(),t})();Yt(Fu,wr);Yt(Fu,yo);function Pl(t,e,r,n,i){r=r||{};var a=[];By(t,"",t,e,r,n,a,i);var o=a.length,s=!1,u=r.done,l=r.aborted,f=function(){s=!0,o--,o<=0&&(s?u&&u():l&&l())},c=function(){o--,o<=0&&(s?u&&u():l&&l())};o||u&&u(),a.length>0&&r.during&&a[0].during(function(d,g){r.during(g)});for(var h=0;h<a.length;h++){var v=a[h];f&&v.done(f),c&&v.aborted(c),r.force&&v.duration(r.duration),v.start(r.easing)}return a}function Il(t,e,r){for(var n=0;n<r;n++)t[n]=e[n]}function Vx(t){return ct(t[0])}function Gx(t,e,r){if(ct(e[r]))if(ct(t[r])||(t[r]=[]),ht(e[r])){var n=e[r].length;t[r].length!==n&&(t[r]=new e[r].constructor(n),Il(t[r],e[r],n))}else{var i=e[r],a=t[r],o=i.length;if(Vx(i))for(var s=i[0].length,u=0;u<o;u++)a[u]?Il(a[u],i[u],s):a[u]=Array.prototype.slice.call(i[u]);else Il(a,i,o);a.length=i.length}else t[r]=e[r]}function Wx(t,e){return t===e||ct(t)&&ct(e)&&Ux(t,e)}function Ux(t,e){var r=t.length;if(r!==e.length)return!1;for(var n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function By(t,e,r,n,i,a,o,s){for(var u=Ae(n),l=i.duration,f=i.delay,c=i.additive,h=i.setToFinal,v=!ee(a),d=t.animators,g=[],p=0;p<u.length;p++){var m=u[p],y=n[m];if(y!=null&&r[m]!=null&&(v||a[m]))if(ee(y)&&!ct(y)&&!po(y)){if(e){s||(r[m]=y,t.updateDuringAnimation(e));continue}By(t,m,r[m],y,i,a&&a[m],o,s)}else g.push(m);else s||(r[m]=y,t.updateDuringAnimation(e),g.push(m))}var _=g.length;if(!c&&_)for(var S=0;S<d.length;S++){var b=d[S];if(b.targetName===e){var w=b.stopTracks(g);if(w){var x=me(d,b);d.splice(x,1)}}}if(i.force||(g=Ye(g,function(T){return!Wx(n[T],r[T])}),_=g.length),_>0||i.force&&!o.length){var C=void 0,D=void 0,A=void 0;if(s){D={},h&&(C={});for(var S=0;S<_;S++){var m=g[S];D[m]=r[m],h?C[m]=n[m]:r[m]=n[m]}}else if(h){A={};for(var S=0;S<_;S++){var m=g[S];A[m]=xs(r[m]),Gx(r,n,m)}}var b=new gh(r,!1,!1,c?Ye(d,function(k){return k.targetName===e}):null);b.targetName=e,i.scope&&(b.scope=i.scope),h&&C&&b.whenWithKeys(0,C,g),A&&b.whenWithKeys(0,A,g),b.whenWithKeys(l==null?500:l,s?D:n,g).delay(f||0),t.addAnimator(b,e),o.push(b)}}function bd(t,e,r,n){return!(r&&r.hoverLayer||n)||wd(t)||e&&wd(e)?Ms:Bu}function wd(t){return t.type==="text"||t.type==="tspan"}function xd(t,e,r){return!e&&!t.__inHover&&r&&r.duration>0}var oc="__zr_style_"+Math.round(Math.random()*10),$n={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},zu={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};$n[oc]=!0;var Td=["z","z2","invisible"],Yx=["invisible"],_o=(function(t){j(e,t);function e(r){return t.call(this,r)||this}return e.prototype._init=function(r){for(var n=Ae(r),i=0;i<n.length;i++){var a=n[i];a==="style"?this.useStyle(r[a]):t.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(r){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(r,n,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&Xx(this,r,n)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var u=this.parent;u;){if(u.ignore)return!1;u=u.parent}return!0},e.prototype.contain=function(r,n){return this.rectContain(r,n)},e.prototype.traverse=function(r,n){r.call(n,this)},e.prototype.rectContain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();return a.contain(i[0],i[1])},e.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,i=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,u=a.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new se(0,0,0,0)),n?se.applyTransform(r,i,n):r.copy(i),(o||s||u)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(u),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+u-o));var l=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-l),r.y=Math.floor(r.y-l),r.width=Math.ceil(r.width+1+l*2),r.height=Math.ceil(r.height+1+l*2))}return r},e.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new se(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(r){return this.animate("style",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(r,n){r!=="style"?t.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:V(this.style,r),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=Ea,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&Ea)},e.prototype.styleUpdated=function(){this.__dirty&=~Ea},e.prototype.createStyle=function(r){return go($n,r)},e.prototype.useStyle=function(r){r[oc]||(r=this.createStyle(r)),this.style=r,this.dirtyStyle()},e.prototype._useHoverStyle=function(r){this.__hoverStyle=r},e.prototype.isStyleObject=function(r){return r[oc]},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,n,Td)},e.prototype._applyStateObj=function(r,n,i,a,o,s){t.prototype._applyStateObj.call(this,r,n,i,a,o,s);var u=!(n&&a),l=this.__inHover===Bu,f;if(n&&n.style?o?a?f=n.style:(f=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(f,n.style)):(f=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(f,n.style)):u&&(f=i.style),f)if(o){var c=this.style;if(this.style=this.createStyle(u?{}:c),u)for(var h=Ae(c),v=0;v<h.length;v++){var d=h[v];d in f&&(f[d]=f[d],this.style[d]=c[d])}for(var g=Ae(f),v=0;v<g.length;v++){var d=g[v];this.style[d]=this.style[d]}this._transitionState(r,{style:f},s,this.getAnimationStyleProps())}else l?this._useHoverStyle(f):this.useStyle(f);if(!l)for(var p=this.__inHover?Yx:Td,v=0;v<p.length;v++){var d=p[v];n&&n[d]!=null?this[d]=n[d]:u&&i[d]!=null&&(this[d]=i[d])}},e.prototype._mergeStates=function(r){for(var n=t.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},e.prototype._mergeStyle=function(r,n){return V(r,n),r},e.prototype.getAnimationStyleProps=function(){return zu},e.initDefaultProps=(function(){var r=e.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=0,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=mt|Ea})(),e})(Fu),Ll=new se(0,0,0,0),El=new se(0,0,0,0);function Xx(t,e,r){return Ll.copy(t.getBoundingRect()),t.transform&&Ll.applyTransform(t.transform),El.width=e,El.height=r,!Ll.intersect(El)}var Nt=Math.min,Bt=Math.max,Rl=Math.sin,Ol=Math.cos,wn=Math.PI*2,Fo=oi(),zo=oi(),Ho=oi();function Cd(t,e,r,n,i,a){i[0]=Nt(t,r),i[1]=Nt(e,n),a[0]=Bt(t,r),a[1]=Bt(e,n)}var Md=[],Dd=[];function qx(t,e,r,n,i,a,o,s,u,l){var f=Py,c=it,h=f(t,r,i,o,Md);u[0]=1/0,u[1]=1/0,l[0]=-1/0,l[1]=-1/0;for(var v=0;v<h;v++){var d=c(t,r,i,o,Md[v]);u[0]=Nt(d,u[0]),l[0]=Bt(d,l[0])}h=f(e,n,a,s,Dd);for(var v=0;v<h;v++){var g=c(e,n,a,s,Dd[v]);u[1]=Nt(g,u[1]),l[1]=Bt(g,l[1])}u[0]=Nt(t,u[0]),l[0]=Bt(t,l[0]),u[0]=Nt(o,u[0]),l[0]=Bt(o,l[0]),u[1]=Nt(e,u[1]),l[1]=Bt(e,l[1]),u[1]=Nt(s,u[1]),l[1]=Bt(s,l[1])}function jx(t,e,r,n,i,a,o,s){var u=Iy,l=pt,f=Bt(Nt(u(t,r,i),1),0),c=Bt(Nt(u(e,n,a),1),0),h=l(t,r,i,f),v=l(e,n,a,c);o[0]=Nt(t,i,h),o[1]=Nt(e,a,v),s[0]=Bt(t,i,h),s[1]=Bt(e,a,v)}function $x(t,e,r,n,i,a,o,s,u){var l=Zr,f=Kr,c=Math.abs(i-a);if(c%wn<1e-4&&c>1e-4){s[0]=t-r,s[1]=e-n,u[0]=t+r,u[1]=e+n;return}if(Fo[0]=Ol(i)*r+t,Fo[1]=Rl(i)*n+e,zo[0]=Ol(a)*r+t,zo[1]=Rl(a)*n+e,l(s,Fo,zo),f(u,Fo,zo),i=i%wn,i<0&&(i=i+wn),a=a%wn,a<0&&(a=a+wn),i>a&&!o?a+=wn:i<a&&o&&(i+=wn),o){var h=a;a=i,i=h}for(var v=0;v<a;v+=Math.PI/2)v>i&&(Ho[0]=Ol(v)*r+t,Ho[1]=Rl(v)*n+e,l(s,Ho,s),f(u,Ho,u))}var _e={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},xn=[],Tn=[],sr=[],Wr=[],ur=[],lr=[],kl=Math.min,Nl=Math.max,Cn=Math.cos,Mn=Math.sin,Dr=Math.abs,sc=Math.PI,qr=sc*2,Bl=typeof Float32Array!="undefined",va=[];function Fl(t){var e=Math.round(t/sc*1e8)/1e8;return e%2*sc}function Zx(t,e){var r=Fl(t[0]);r<0&&(r+=qr);var n=r-t[0],i=t[1];i+=n,!e&&i-r>=qr?i=r+qr:e&&r-i>=qr?i=r-qr:!e&&r>i?i=r+(qr-Fl(r-i)):e&&r<i&&(i=r-(qr-Fl(i-r))),t[0]=r,t[1]=i}var Yi=(function(){function t(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(e,r,n){n=n||0,n>0&&(this._ux=Dr(n/Js/e)||0,this._uy=Dr(n/Js/r)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,r){return this._drawPendingPt(),this.addData(_e.M,e,r),this._ctx&&this._ctx.moveTo(e,r),this._x0=e,this._y0=r,this._xi=e,this._yi=r,this},t.prototype.lineTo=function(e,r){var n=Dr(e-this._xi),i=Dr(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(_e.L,e,r),this._ctx&&a&&this._ctx.lineTo(e,r),a)this._xi=e,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=r,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(e,r,n,i,a,o){return this._drawPendingPt(),this.addData(_e.C,e,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(e,r,n,i,a,o),this._xi=a,this._yi=o,this},t.prototype.quadraticCurveTo=function(e,r,n,i){return this._drawPendingPt(),this.addData(_e.Q,e,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(e,r,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(e,r,n,i,a,o){this._drawPendingPt(),va[0]=i,va[1]=a,Zx(va,o),i=va[0],a=va[1];var s=a-i;return this.addData(_e.A,e,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(e,r,n,i,a,o),this._xi=Cn(a)*n+e,this._yi=Mn(a)*n+r,this},t.prototype.arcTo=function(e,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,r,n,i,a),this},t.prototype.rect=function(e,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,r,n,i),this.addData(_e.R,e,r,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(_e.Z);var e=this._ctx,r=this._x0,n=this._y0;return e&&e.closePath(),this._xi=r,this._yi=n,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){if(this._saveData){var r=e.length;!(this.data&&this.data.length===r)&&Bl&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=e[n];this._len=r}},t.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var r=e.length,n=0,i=this._len,a=0;a<r;a++)n+=e[a].len();var o=this.data;if(Bl&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(i+n),i>0&&o))for(var s=0;s<i;s++)this.data[s]=o[s];for(var a=0;a<r;a++)for(var u=e[a].data,s=0;s<u.length;s++)this.data[i++]=u[s];this._len=i}},t.prototype.addData=function(e,r,n,i,a,o,s,u,l){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var c=0;c<arguments.length;c++)f[this._len++]=arguments[c]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],r=0;r<this._len;r++)e[r]=this.data[r];this.data=e}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,Bl&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){sr[0]=sr[1]=ur[0]=ur[1]=Number.MAX_VALUE,Wr[0]=Wr[1]=lr[0]=lr[1]=-Number.MAX_VALUE;var e=this.data,r=0,n=0,i=0,a=0,o;for(o=0;o<this._len;){var s=e[o++],u=o===1;switch(u&&(r=e[o],n=e[o+1],i=r,a=n),s){case _e.M:r=i=e[o++],n=a=e[o++],ur[0]=i,ur[1]=a,lr[0]=i,lr[1]=a;break;case _e.L:Cd(r,n,e[o],e[o+1],ur,lr),r=e[o++],n=e[o++];break;case _e.C:qx(r,n,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],ur,lr),r=e[o++],n=e[o++];break;case _e.Q:jx(r,n,e[o++],e[o++],e[o],e[o+1],ur,lr),r=e[o++],n=e[o++];break;case _e.A:var l=e[o++],f=e[o++],c=e[o++],h=e[o++],v=e[o++],d=e[o++]+v;o+=1;var g=!e[o++];u&&(i=Cn(v)*c+l,a=Mn(v)*h+f),$x(l,f,c,h,v,d,g,ur,lr),r=Cn(d)*c+l,n=Mn(d)*h+f;break;case _e.R:i=r=e[o++],a=n=e[o++];var p=e[o++],m=e[o++];Cd(i,a,i+p,a+m,ur,lr);break;case _e.Z:r=i,n=a;break}Zr(sr,sr,ur),Kr(Wr,Wr,lr)}return o===0&&(sr[0]=sr[1]=Wr[0]=Wr[1]=0),new se(sr[0],sr[1],Wr[0]-sr[0],Wr[1]-sr[1])},t.prototype._calculateLength=function(){var e=this.data,r=this._len,n=this._ux,i=this._uy,a=0,o=0,s=0,u=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,f=0,c=0,h=0;h<r;){var v=e[h++],d=h===1;d&&(a=e[h],o=e[h+1],s=a,u=o);var g=-1;switch(v){case _e.M:a=s=e[h++],o=u=e[h++];break;case _e.L:{var p=e[h++],m=e[h++],y=p-a,_=m-o;(Dr(y)>n||Dr(_)>i||h===r-1)&&(g=Math.sqrt(y*y+_*_),a=p,o=m);break}case _e.C:{var S=e[h++],b=e[h++],p=e[h++],m=e[h++],w=e[h++],x=e[h++];g=gx(a,o,S,b,p,m,w,x,10),a=w,o=x;break}case _e.Q:{var S=e[h++],b=e[h++],p=e[h++],m=e[h++];g=_x(a,o,S,b,p,m,10),a=p,o=m;break}case _e.A:var C=e[h++],D=e[h++],A=e[h++],T=e[h++],k=e[h++],P=e[h++],O=P+k;h+=1,d&&(s=Cn(k)*A+C,u=Mn(k)*T+D),g=Nl(A,T)*kl(qr,Math.abs(P)),a=Cn(O)*A+C,o=Mn(O)*T+D;break;case _e.R:{s=a=e[h++],u=o=e[h++];var B=e[h++],F=e[h++];g=B*2+F*2;break}case _e.Z:{var y=s-a,_=u-o;g=Math.sqrt(y*y+_*_),a=s,o=u;break}}g>=0&&(l[c++]=g,f+=g)}return this._pathLen=f,f},t.prototype.rebuildPath=function(e,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,u,l,f,c,h,v=r<1,d,g,p=0,m=0,y,_=0,S,b;if(!(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,g=this._pathLen,y=r*g,!y)))e:for(var w=0;w<o;){var x=n[w++],C=w===1;switch(C&&(l=n[w],f=n[w+1],s=l,u=f),x!==_e.L&&_>0&&(e.lineTo(S,b),_=0),x){case _e.M:s=l=n[w++],u=f=n[w++],e.moveTo(l,f);break;case _e.L:{c=n[w++],h=n[w++];var D=Dr(c-l),A=Dr(h-f);if(D>i||A>a){if(v){var T=d[m++];if(p+T>y){var k=(y-p)/T;e.lineTo(l*(1-k)+c*k,f*(1-k)+h*k);break e}p+=T}e.lineTo(c,h),l=c,f=h,_=0}else{var P=D*D+A*A;P>_&&(S=c,b=h,_=P)}break}case _e.C:{var O=n[w++],B=n[w++],F=n[w++],$=n[w++],W=n[w++],z=n[w++];if(v){var T=d[m++];if(p+T>y){var k=(y-p)/T;Zs(l,O,F,W,k,xn),Zs(f,B,$,z,k,Tn),e.bezierCurveTo(xn[1],Tn[1],xn[2],Tn[2],xn[3],Tn[3]);break e}p+=T}e.bezierCurveTo(O,B,F,$,W,z),l=W,f=z;break}case _e.Q:{var O=n[w++],B=n[w++],F=n[w++],$=n[w++];if(v){var T=d[m++];if(p+T>y){var k=(y-p)/T;Ks(l,O,F,k,xn),Ks(f,B,$,k,Tn),e.quadraticCurveTo(xn[1],Tn[1],xn[2],Tn[2]);break e}p+=T}e.quadraticCurveTo(O,B,F,$),l=F,f=$;break}case _e.A:var q=n[w++],H=n[w++],X=n[w++],ne=n[w++],K=n[w++],ue=n[w++],te=n[w++],He=!n[w++],Ze=X>ne?X:ne,E=Dr(X-ne)>.001,R=K+ue,I=!1;if(v){var T=d[m++];p+T>y&&(R=K+ue*(y-p)/T,I=!0),p+=T}if(E&&e.ellipse?e.ellipse(q,H,X,ne,te,K,R,He):e.arc(q,H,Ze,K,R,He),I)break e;C&&(s=Cn(K)*X+q,u=Mn(K)*ne+H),l=Cn(R)*X+q,f=Mn(R)*ne+H;break;case _e.R:s=l=n[w],u=f=n[w+1],c=n[w++],h=n[w++];var L=n[w++],N=n[w++];if(v){var T=d[m++];if(p+T>y){var Z=y-p;e.moveTo(c,h),e.lineTo(c+kl(Z,L),h),Z-=L,Z>0&&e.lineTo(c+L,h+kl(Z,N)),Z-=N,Z>0&&e.lineTo(c+Nl(L-Z,0),h+N),Z-=L,Z>0&&e.lineTo(c,h+Nl(N-Z,0));break e}p+=T}e.rect(c,h,L,N);break;case _e.Z:if(v){var T=d[m++];if(p+T>y){var k=(y-p)/T;e.lineTo(l*(1-k)+s*k,f*(1-k)+u*k);break e}p+=T}e.closePath(),l=s,f=u}}},t.prototype.clone=function(){var e=new t,r=this.data;return e.data=r.slice?r.slice():Array.prototype.slice.call(r),e._len=this._len,e},t.prototype.canSave=function(){return!!this._saveData},t.CMD=_e,t.initDefaultProps=(function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0})(),t})();function pi(t,e,r,n,i,a,o){if(i===0)return!1;var s=i,u=0,l=t;if(o>e+s&&o>n+s||o<e-s&&o<n-s||a>t+s&&a>r+s||a<t-s&&a<r-s)return!1;if(t!==r)u=(e-n)/(t-r),l=(t*n-r*e)/(t-r);else return Math.abs(a-t)<=s/2;var f=u*a-o+l,c=f*f/(u*u+1);return c<=s/2*s/2}function Kx(t,e,r,n,i,a,o,s,u,l,f){if(u===0)return!1;var c=u;if(f>e+c&&f>n+c&&f>a+c&&f>s+c||f<e-c&&f<n-c&&f<a-c&&f<s-c||l>t+c&&l>r+c&&l>i+c&&l>o+c||l<t-c&&l<r-c&&l<i-c&&l<o-c)return!1;var h=px(t,e,r,n,i,a,o,s,l,f);return h<=c/2}function Qx(t,e,r,n,i,a,o,s,u){if(o===0)return!1;var l=o;if(u>e+l&&u>n+l&&u>a+l||u<e-l&&u<n-l&&u<a-l||s>t+l&&s>r+l&&s>i+l||s<t-l&&s<r-l&&s<i-l)return!1;var f=yx(t,e,r,n,i,a,s,u);return f<=l/2}var Ad=Math.PI*2;function Vo(t){return t%=Ad,t<0&&(t+=Ad),t}var da=Math.PI*2;function Jx(t,e,r,n,i,a,o,s,u){if(o===0)return!1;var l=o;s-=t,u-=e;var f=Math.sqrt(s*s+u*u);if(f-l>r||f+l<r)return!1;if(Math.abs(n-i)%da<1e-4)return!0;if(a){var c=n;n=Vo(i),i=Vo(c)}else n=Vo(n),i=Vo(i);n>i&&(i+=da);var h=Math.atan2(u,s);return h<0&&(h+=da),h>=n&&h<=i||h+da>=n&&h+da<=i}function Er(t,e,r,n,i,a){if(a>e&&a>n||a<e&&a<n||n===e)return 0;var o=(a-e)/(n-e),s=n<e?1:-1;(o===1||o===0)&&(s=n<e?.5:-.5);var u=o*(r-t)+t;return u===i?1/0:u>i?s:0}var Ur=Yi.CMD,Dn=Math.PI*2,eT=1e-4;function tT(t,e){return Math.abs(t-e)<eT}var rt=[-1,-1,-1],Ot=[-1,-1];function rT(){var t=Ot[0];Ot[0]=Ot[1],Ot[1]=t}function nT(t,e,r,n,i,a,o,s,u,l){if(l>e&&l>n&&l>a&&l>s||l<e&&l<n&&l<a&&l<s)return 0;var f=Ay(e,n,a,s,l,rt);if(f===0)return 0;for(var c=0,h=-1,v=void 0,d=void 0,g=0;g<f;g++){var p=rt[g],m=p===0||p===1?.5:1,y=it(t,r,i,o,p);y<u||(h<0&&(h=Py(e,n,a,s,Ot),Ot[1]<Ot[0]&&h>1&&rT(),v=it(e,n,a,s,Ot[0]),h>1&&(d=it(e,n,a,s,Ot[1]))),h===2?p<Ot[0]?c+=v<e?m:-m:p<Ot[1]?c+=d<v?m:-m:c+=s<d?m:-m:p<Ot[0]?c+=v<e?m:-m:c+=s<v?m:-m)}return c}function iT(t,e,r,n,i,a,o,s){if(s>e&&s>n&&s>a||s<e&&s<n&&s<a)return 0;var u=mx(e,n,a,s,rt);if(u===0)return 0;var l=Iy(e,n,a);if(l>=0&&l<=1){for(var f=0,c=pt(e,n,a,l),h=0;h<u;h++){var v=rt[h]===0||rt[h]===1?.5:1,d=pt(t,r,i,rt[h]);d<o||(rt[h]<l?f+=c<e?v:-v:f+=a<c?v:-v)}return f}else{var v=rt[0]===0||rt[0]===1?.5:1,d=pt(t,r,i,rt[0]);return d<o?0:a<e?v:-v}}function aT(t,e,r,n,i,a,o,s){if(s-=e,s>r||s<-r)return 0;var u=Math.sqrt(r*r-s*s);rt[0]=-u,rt[1]=u;var l=Math.abs(n-i);if(l<1e-4)return 0;if(l>=Dn-1e-4){n=0,i=Dn;var f=a?1:-1;return o>=rt[0]+t&&o<=rt[1]+t?f:0}if(n>i){var c=n;n=i,i=c}n<0&&(n+=Dn,i+=Dn);for(var h=0,v=0;v<2;v++){var d=rt[v];if(d+t>o){var g=Math.atan2(s,d),f=a?1:-1;g<0&&(g=Dn+g),(g>=n&&g<=i||g+Dn>=n&&g+Dn<=i)&&(g>Math.PI/2&&g<Math.PI*1.5&&(f=-f),h+=f)}}return h}function Fy(t,e,r,n,i){for(var a=t.data,o=t.len(),s=0,u=0,l=0,f=0,c=0,h,v,d=0;d<o;){var g=a[d++],p=d===1;switch(g===Ur.M&&d>1&&(r||(s+=Er(u,l,f,c,n,i))),p&&(u=a[d],l=a[d+1],f=u,c=l),g){case Ur.M:f=a[d++],c=a[d++],u=f,l=c;break;case Ur.L:if(r){if(pi(u,l,a[d],a[d+1],e,n,i))return!0}else s+=Er(u,l,a[d],a[d+1],n,i)||0;u=a[d++],l=a[d++];break;case Ur.C:if(r){if(Kx(u,l,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],e,n,i))return!0}else s+=nT(u,l,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],n,i)||0;u=a[d++],l=a[d++];break;case Ur.Q:if(r){if(Qx(u,l,a[d++],a[d++],a[d],a[d+1],e,n,i))return!0}else s+=iT(u,l,a[d++],a[d++],a[d],a[d+1],n,i)||0;u=a[d++],l=a[d++];break;case Ur.A:var m=a[d++],y=a[d++],_=a[d++],S=a[d++],b=a[d++],w=a[d++];d+=1;var x=!!(1-a[d++]);h=Math.cos(b)*_+m,v=Math.sin(b)*S+y,p?(f=h,c=v):s+=Er(u,l,h,v,n,i);var C=(n-m)*S/_+m;if(r){if(Jx(m,y,S,b,b+w,x,e,C,i))return!0}else s+=aT(m,y,S,b,b+w,x,C,i);u=Math.cos(b+w)*_+m,l=Math.sin(b+w)*S+y;break;case Ur.R:f=u=a[d++],c=l=a[d++];var D=a[d++],A=a[d++];if(h=f+D,v=c+A,r){if(pi(f,c,h,c,e,n,i)||pi(h,c,h,v,e,n,i)||pi(h,v,f,v,e,n,i)||pi(f,v,f,c,e,n,i))return!0}else s+=Er(h,c,h,v,n,i),s+=Er(f,v,f,c,n,i);break;case Ur.Z:if(r){if(pi(u,l,f,c,e,n,i))return!0}else s+=Er(u,l,f,c,n,i);u=f,l=c;break}}return!r&&!tT(l,c)&&(s+=Er(u,l,f,c,n,i)||0),s!==0}function oT(t,e,r){return Fy(t,0,!1,e,r)}function sT(t,e,r,n){return Fy(t,e,!0,r,n)}var zy=Te({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},$n),uT={style:Te({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},zu.style)},zl=Nu.concat(["invisible","culling","z","z2","zlevel","parent"]),Ce=(function(t){j(e,t);function e(r){return t.call(this,r)||this}return e.prototype.update=function(){var r=this;t.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.prototype.buildPath&&(i.buildPath=function(u){r.buildPath(u,r.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s<zl.length;++s)i[zl[s]]=this[zl[s]];i.__dirty|=mt}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(r){var n=Ae(r);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var a=0;a<n.length;a++){var o=n[a],s=r[o];o==="style"?this.style?V(this.style,s):this.useStyle(s):o==="shape"?V(this.shape,s):t.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(Q(r)){var n=Qa(r,0);return n>.5?ic:n>.2?Fx:ac}else if(r)return ac}return ic},e.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(Q(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Qa(r,0)<nc;if(a===o)return n}},e.prototype.buildPath=function(r,n,i){},e.prototype.pathUpdated=function(){this.__dirty&=~Di},e.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},e.prototype.createPathProxy=function(){this.path=new Yi(!1)},e.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,i=!r;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Di)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||i){s.copy(r);var u=n.strokeNoScale?this.getLineScale():1,l=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;l=Math.max(l,f==null?4:f)}u>1e-10&&(s.width+=l/u,s.height+=l/u,s.x-=l/u/2,s.y-=l/u/2)}return s}return r},e.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect(),o=this.style;if(r=i[0],n=i[1],a.contain(r,n)){var s=this.path;if(this.hasStroke()){var u=o.lineWidth,l=o.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(this.hasFill()||(u=Math.max(u,this.strokeContainThreshold)),sT(s,u/l,r,n)))return!0}if(this.hasFill())return oT(s,r,n)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Di,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(r){return this.animate("shape",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):t.prototype.attrKV.call(this,r,n)},e.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:V(i,r),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Di)},e.prototype.createStyle=function(r){return go(zy,r)},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=V({},this.shape))},e.prototype._applyStateObj=function(r,n,i,a,o,s){if(t.prototype._applyStateObj.call(this,r,n,i,a,o,s),this.__inHover!==Bu){var u=!(n&&a),l;if(n&&n.shape?o?a?l=n.shape:(l=V({},i.shape),V(l,n.shape)):(l=V({},a?this.shape:i.shape),V(l,n.shape)):u&&(l=i.shape),l)if(o){this.shape=V({},this.shape);for(var f={},c=Ae(l),h=0;h<c.length;h++){var v=c[h];typeof l[v]=="object"?this.shape[v]=l[v]:f[v]=l[v]}this._transitionState(r,{shape:f},s)}else this.shape=l,this.dirtyShape()}},e.prototype._mergeStates=function(r){for(var n=t.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},e.prototype.getAnimationStyleProps=function(){return uT},e.prototype.isZeroArea=function(){return!1},e.extend=function(r){var n=(function(a){j(o,a);function o(s){var u=a.call(this,s)||this;return r.init&&r.init.call(u,s),u}return o.prototype.getDefaultStyle=function(){return he(r.style)},o.prototype.getDefaultShape=function(){return he(r.shape)},o})(e);for(var i in r)typeof r[i]=="function"&&(n.prototype[i]=r[i]);return n},e.initDefaultProps=(function(){var r=e.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=mt|Ea|Di})(),e})(_o),lT=Te({strokeFirst:!0,font:on,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},zy),eu=(function(t){j(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.hasStroke=function(){return Cy(this.style)},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.createStyle=function(r){return go(lT,r)},e.prototype.setBoundingRect=function(r){this._rect=r},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=vx(this.style)),this._rect},e.initDefaultProps=(function(){var r=e.prototype;r.dirtyRectTolerance=10})(),e})(_o);eu.prototype.type="tspan";var fT=Te({x:0,y:0},$n),cT={style:Te({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},zu.style)};function hT(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var cn=(function(t){j(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(r){return go(fT,r)},e.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=hT(n.image)?n.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?a[r]:a[r]/a[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return cT},e.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new se(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},e})(_o);cn.prototype.type="image";function vT(t,e){var r=e.x,n=e.y,i=e.width,a=e.height,o=e.r,s,u,l,f;i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=u=l=f=o:o instanceof Array?o.length===1?s=u=l=f=o[0]:o.length===2?(s=l=o[0],u=f=o[1]):o.length===3?(s=o[0],u=f=o[1],l=o[2]):(s=o[0],u=o[1],l=o[2],f=o[3]):s=u=l=f=0;var c;s+u>i&&(c=s+u,s*=i/c,u*=i/c),l+f>i&&(c=l+f,l*=i/c,f*=i/c),u+l>a&&(c=u+l,u*=a/c,l*=a/c),s+f>a&&(c=s+f,s*=a/c,f*=a/c),t.moveTo(r+s,n),t.lineTo(r+i-u,n),u!==0&&t.arc(r+i-u,n+u,u,-Math.PI/2,0),t.lineTo(r+i,n+a-l),l!==0&&t.arc(r+i-l,n+a-l,l,0,Math.PI/2),t.lineTo(r+f,n+a),f!==0&&t.arc(r+f,n+a-f,f,Math.PI/2,Math.PI),t.lineTo(r,n+s),s!==0&&t.arc(r+s,n+s,s,Math.PI,Math.PI*1.5),t.closePath()}var Li=Math.round;function Hy(t,e,r){if(e){var n=e.x1,i=e.x2,a=e.y1,o=e.y2;t.x1=n,t.x2=i,t.y1=a,t.y2=o;var s=r&&r.lineWidth;return s&&(Li(n*2)===Li(i*2)&&(t.x1=t.x2=Vn(n,s,!0)),Li(a*2)===Li(o*2)&&(t.y1=t.y2=Vn(a,s,!0))),t}}function Vy(t,e,r){if(e){var n=e.x,i=e.y,a=e.width,o=e.height;t.x=n,t.y=i,t.width=a,t.height=o;var s=r&&r.lineWidth;return s&&(t.x=Vn(n,s,!0),t.y=Vn(i,s,!0),t.width=Math.max(Vn(n+a,s,!1)-t.x,a===0?0:1),t.height=Math.max(Vn(i+o,s,!1)-t.y,o===0?0:1)),t}}function Vn(t,e,r){if(!e)return t;var n=Li(t*2);return(n+Li(e))%2===0?n/2:(n+(r?1:-1))/2}var dT=(function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t})(),pT={},ze=(function(t){j(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new dT},e.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var u=Vy(pT,n,this.style);i=u.x,a=u.y,o=u.width,s=u.height,u.r=n.r,n=u}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?vT(r,n):r.rect(i,a,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e})(Ce);ze.prototype.type="rect";var Pd={fill:"#000"},Id=2,fr={},gT={style:Te({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},zu.style)},yt=(function(t){j(e,t);function e(r){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Pd,n.attr(r),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var n=this._children[r];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):t.prototype.getLocalTransform.call(this,r)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,bT(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new se(0,0,0,0),n=this._children,i=[],a=null,o=0;o<n.length;o++){var s=n[o],u=s.getBoundingRect(),l=s.getLocalTransform(i);l?(r.copy(u),r.applyTransform(l),a=a||r.clone(),a.union(r)):(a=a||u.clone(),a.union(u))}this._rect=a||r}return this._rect},e.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||Pd},e.prototype.setTextContent=function(r){},e.prototype._mergeStyle=function(r,n){if(!n)return r;var i=n.rich,a=r.rich||i&&{};return V(r,n),i&&a?(this._mergeRich(a,i),r.rich=a):a&&(r.rich=a),r},e.prototype._mergeRich=function(r,n){for(var i=Ae(n),a=0;a<i.length;a++){var o=i[a];r[o]=r[o]||{},V(r[o],n[o])}},e.prototype.getAnimationStyleProps=function(){return gT},e.prototype._getOrCreateChild=function(r){var n=this._children[this._childCursor];return(!n||!(n instanceof r))&&(n=new r),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},e.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||on,i=r.padding,a=this._defaultStyle,o=r.x||0,s=r.y||0,u=r.align||a.align||"left",l=r.verticalAlign||a.verticalAlign||"top";ud(fr,a.overflowRect,o,s,u,l),o=fr.baseX,s=fr.baseY;var f=Bd(r),c=ox(f,r,fr.outerWidth,fr.outerHeight),h=Hl(r),v=!!r.backgroundColor,d=c.outerHeight,g=c.outerWidth,p=c.lines,m=c.lineHeight;this.isTruncated=!!c.isTruncated;var y=o,_=jn(s,c.contentHeight,l);if(h||i){var S=Ui(o,g,u),b=jn(s,d,l);h&&this._renderBackground(r,r,S,b,g,d)}_+=m/2,i&&(y=Nd(o,u,i),l==="top"?_+=i[0]:l==="bottom"&&(_-=i[2]));for(var w=0,x=!1,C=!1,D=kd("fill"in r?r.fill:(C=!0,a.fill)),A=Od("stroke"in r?r.stroke:!v&&(!a.autoStroke||C)?(w=Id,x=!0,a.stroke):null),T=r.textShadowBlur>0,k=0;k<p.length;k++){var P=this._getOrCreateChild(eu),O=P.createStyle();P.useStyle(O),O.text=p[k],O.x=y,O.y=_,O.textAlign=u,O.textBaseline="middle",O.opacity=r.opacity,O.strokeFirst=!0,T&&(O.shadowBlur=r.textShadowBlur||0,O.shadowColor=r.textShadowColor||"transparent",O.shadowOffsetX=r.textShadowOffsetX||0,O.shadowOffsetY=r.textShadowOffsetY||0),O.stroke=A,O.fill=D,A&&(O.lineWidth=r.lineWidth||w,O.lineDash=r.lineDash,O.lineDashOffset=r.lineDashOffset||0),O.font=n,Ed(O,r),_+=m,P.setBoundingRect($f(O,c.contentWidth,c.calculatedLineHeight,x?0:null))}},e.prototype._updateRichTexts=function(){var r=this.style,n=this._defaultStyle,i=r.align||n.align,a=r.verticalAlign||n.verticalAlign,o=r.x||0,s=r.y||0;ud(fr,n.overflowRect,o,s,i,a),o=fr.baseX,s=fr.baseY;var u=Bd(r),l=lx(u,r,fr.outerWidth,fr.outerHeight,i),f=l.width,c=l.outerWidth,h=l.outerHeight,v=r.padding;this.isTruncated=!!l.isTruncated;var d=Ui(o,c,i),g=jn(s,h,a),p=d,m=g;v&&(p+=v[3],m+=v[0]);var y=p+f;Hl(r)&&this._renderBackground(r,r,d,g,c,h);for(var _=!!r.backgroundColor,S=0;S<l.lines.length;S++){for(var b=l.lines[S],w=b.tokens,x=w.length,C=b.lineHeight,D=b.width,A=0,T=p,k=y,P=x-1,O=void 0;A<x&&(O=w[A],!O.align||O.align==="left");)this._placeToken(O,r,C,m,T,"left",_),D-=O.width,T+=O.width,A++;for(;P>=0&&(O=w[P],O.align==="right");)this._placeToken(O,r,C,m,k,"right",_),D-=O.width,k-=O.width,P--;for(T+=(f-(T-p)-(y-k)-D)/2;A<=P;)O=w[A],this._placeToken(O,r,C,m,T+O.width/2,"center",_),T+=O.width,A++;m+=C}},e.prototype._placeToken=function(r,n,i,a,o,s,u){var l=n.rich[r.styleName]||{};l.text=r.text;var f=r.verticalAlign,c=a+i/2;f==="top"?c=a+r.height/2:f==="bottom"&&(c=a+i-r.height/2);var h=!r.isLineHolder&&Hl(l);h&&this._renderBackground(l,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,c-r.height/2,r.width,r.height);var v=!!l.backgroundColor,d=r.textPadding;d&&(o=Nd(o,s,d),c-=r.height/2-d[0]-r.innerHeight/2);var g=this._getOrCreateChild(eu),p=g.createStyle();g.useStyle(p);var m=this._defaultStyle,y=!1,_=0,S=!1,b=kd("fill"in l?l.fill:"fill"in n?n.fill:(y=!0,m.fill)),w=Od("stroke"in l?l.stroke:"stroke"in n?n.stroke:!v&&!u&&(!m.autoStroke||y)?(_=Id,S=!0,m.stroke):null),x=l.textShadowBlur>0||n.textShadowBlur>0;p.text=r.text,p.x=o,p.y=c,x&&(p.shadowBlur=l.textShadowBlur||n.textShadowBlur||0,p.shadowColor=l.textShadowColor||n.textShadowColor||"transparent",p.shadowOffsetX=l.textShadowOffsetX||n.textShadowOffsetX||0,p.shadowOffsetY=l.textShadowOffsetY||n.textShadowOffsetY||0),p.textAlign=s,p.textBaseline="middle",p.font=r.font||on,p.opacity=Yn(l.opacity,n.opacity,1),Ed(p,l),w&&(p.lineWidth=Yn(l.lineWidth,n.lineWidth,_),p.lineDash=ie(l.lineDash,n.lineDash),p.lineDashOffset=n.lineDashOffset||0,p.stroke=w),b&&(p.fill=b),g.setBoundingRect($f(p,r.contentWidth,r.contentHeight,S?0:null))},e.prototype._renderBackground=function(r,n,i,a,o,s){var u=r.backgroundColor,l=r.borderWidth,f=r.borderColor,c=u&&u.image,h=u&&!c,v=r.borderRadius,d=this,g,p;if(h||r.lineHeight||l&&f){g=this._getOrCreateChild(ze),g.useStyle(g.createStyle()),g.style.fill=null;var m=g.shape;m.x=i,m.y=a,m.width=o,m.height=s,m.r=v,g.dirtyShape()}if(h){var y=g.style;y.fill=u||null,y.fillOpacity=ie(r.fillOpacity,1)}else if(c){p=this._getOrCreateChild(cn),p.onload=function(){d.dirtyStyle()};var _=p.style;_.image=u.image,_.x=i,_.y=a,_.width=o,_.height=s}if(l&&f){var y=g.style;y.lineWidth=l,y.stroke=f,y.strokeOpacity=ie(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var S=(g||p).style;S.shadowBlur=r.shadowBlur||0,S.shadowColor=r.shadowColor||"transparent",S.shadowOffsetX=r.shadowOffsetX||0,S.shadowOffsetY=r.shadowOffsetY||0,S.opacity=Yn(r.opacity,n.opacity,1)},e.makeFont=function(r){var n="";return ST(r)&&(n=[r.fontStyle,r.fontWeight,_T(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&Jt(n)||r.textFont||r.font},e})(_o),mT={left:!0,right:1,center:1},yT={top:1,bottom:1,middle:1},Ld=["fontStyle","fontWeight","fontSize","fontFamily"];function _T(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?oh+"px":t+"px"}function Ed(t,e){for(var r=0;r<Ld.length;r++){var n=Ld[r],i=e[n];i!=null&&(t[n]=i)}}function ST(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function bT(t){return Rd(t),M(t.rich,Rd),t}function Rd(t){if(t){t.font=yt.makeFont(t);var e=t.align;e==="middle"&&(e="center"),t.align=e==null||mT[e]?e:"left";var r=t.verticalAlign;r==="center"&&(r="middle"),t.verticalAlign=r==null||yT[r]?r:"top";var n=t.padding;n&&(t.padding=Lu(t.padding))}}function Od(t,e){return t==null||e<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function kd(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function Nd(t,e,r){return e==="right"?t-r[1]:e==="center"?t+r[3]/2-r[1]/2:t+r[3]}function Bd(t){var e=t.text;return e!=null&&(e+=""),e}function Hl(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var Fd=1e-4,tu=20;function wT(t){return t.replace(/^\s+|\s+$/g,"")}var $e=Math.min,pe=Math.max,Ne=Math.abs,br=Math.round,Nr=Math.floor,So=Math.ceil,ui=Math.pow,ei=Math.log,Ja=Math.LN10,xT=Math.PI,TT=Math.random;function uc(t,e,r,n){var i=e[0],a=e[1],o=r[0],s=r[1],u=a-i,l=s-o;if(u===0)return l===0?o:(o+s)/2;if(n)if(u>0){if(t<=i)return o;if(t>=a)return s}else{if(t>=i)return o;if(t<=a)return s}else{if(t===i)return o;if(t===a)return s}return(t-i)/u*l+o}var Oe=CT;function CT(t,e,r){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return lc(t,e,r)}function lc(t,e,r){return Q(t)?MT(t)?parseFloat(t)/100*e+(r||0):parseFloat(t):t==null?NaN:+t}function MT(t){return!!wT(t).match(/%$/)}function de(t,e,r){return isNaN(e)?r?""+t:+t:(e=$e(pe(0,e),tu),t=(+t).toFixed(e),r?t:+t)}function DT(t,e,r){return e==null&&(e=10),de(t,e,r)}function Hu(t){return t.sort(function(e,r){return e-r}),t}function Rr(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var e=1,r=0;r<15;r++,e*=10)if(br(t*e)/e===t)return r}return Gy(t)}function Gy(t){var e=t.toString().toLowerCase(),r=e.indexOf("e"),n=r>0?+e.slice(r+1):0,i=r>0?r:e.length,a=e.indexOf("."),o=a<0?0:i-1-a;return pe(0,o-n)}function AT(t,e){var r=Nr(ei(t[1]-t[0])/Ja),n=br(ei(Ne(e[1]-e[0]))/Ja),i=$e(pe(-r+n,0),tu);return isFinite(i)?i:tu}function PT(t,e,r){var n=Ne(t[1]-t[0]);if(!isFinite(n)||n===0)return NaN;var i=ei(2*Ne(r||1)*Ne(n))/Ja,a=ei(Ne(e))/Ja,o=pe(0,So(-i+a));return isFinite(o)||(o=NaN),o}function IT(t,e,r){if(!t[e])return 0;var n=LT(t,r);return n[e]||0}function LT(t,e){var r=_r(t,function(v,d){return v+(isNaN(d)?0:d)},0);if(r===0)return[];for(var n=ui(10,e),i=re(t,function(v){return(isNaN(v)?0:v)/r*n*100}),a=n*100,o=re(i,function(v){return Nr(v)}),s=_r(o,function(v,d){return v+d},0),u=re(i,function(v,d){return v-o[d]});s<a;){for(var l=Number.NEGATIVE_INFINITY,f=null,c=0,h=u.length;c<h;++c)u[c]>l&&(l=u[c],f=c);++o[f],u[f]=0,++s}return re(o,function(v){return v/n})}function ET(t,e){var r=pe(Rr(t),Rr(e)),n=t+e;return r>tu?n:de(n,r)}var fc=ui(2,53)-1;function mh(t){var e=xT*2;return(t%e+e)%e}function eo(t){return t>-Fd&&t<Fd}var RT=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function Hr(t){if(t instanceof Date)return t;if(Q(t)){var e=RT.exec(t);if(!e)return new Date(NaN);if(e[8]){var r=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(r-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,r,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(t==null)return new Date(NaN);return new Date(br(t))}function yh(t){return ui(10,Vu(t))}function Vu(t){if(t===0)return 0;var e=Nr(ei(t)/Ja);return t/ui(10,e)>=10&&e++,e}var Wy=2;function Gu(t,e){var r=Vu(t),n=ui(10,r),i=t/n,a;return e===Wy?a=1:e?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,t=a*n,de(t,-r)}function OT(t,e){var r=(t.length-1)*e+1,n=Nr(r),i=+t[n-1],a=r-n;return a?i+a*(t[n]-i):i}function kT(t){t.sort(function(u,l){return s(u,l,0)?-1:1});for(var e=-1/0,r=1,n=0;n<t.length;){for(var i=t[n].interval,a=t[n].close,o=0;o<2;o++)i[o]<=e&&(i[o]=e,a[o]=o?1:1-r),e=i[o],r=a[o];i[0]===i[1]&&a[0]*a[1]!==1?t.splice(n,1):n++}return t;function s(u,l,f){return u.interval[f]<l.interval[f]||u.interval[f]===l.interval[f]&&(u.close[f]-l.close[f]===(f?-1:1)||!f&&s(u,l,1))}}function to(t){var e=parseFloat(t);return e==t&&(e!==0||!Q(t)||t.indexOf("x")<=0)?e:NaN}function Uy(t){return!isNaN(to(t))}function _h(){return br(TT()*9)}function Yy(t,e){return e===0?t:Yy(e,t%e)}function zd(t,e){return t==null?e:e==null?t:t*e/Yy(t,e)}function Wt(t){return t!=null&&isFinite(t)}function Xy(t,e){}function gt(t){throw new Error(t)}function Hd(t,e,r){return(e-t)*r+t}var qy="series\0",NT="\0_ec_\0";function ft(t){return t instanceof Array?t:t==null?[]:[t]}function Vd(t,e,r){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var n=0,i=r.length;n<i;n++){var a=r[n];!t.emphasis[e].hasOwnProperty(a)&&t[e].hasOwnProperty(a)&&(t.emphasis[e][a]=t[e][a])}}}var Gd=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function bo(t){return ee(t)&&!Y(t)&&!(t instanceof Date)?t.value:t}function BT(t){return ee(t)&&!(t instanceof Array)}function FT(t,e,r){var n=r==="normalMerge",i=r==="replaceMerge",a=r==="replaceAll";t=t||[],e=(e||[]).slice();var o=oe();M(e,function(u,l){if(!ee(u)){e[l]=null;return}});var s=zT(t,o,r);return(n||i)&&HT(s,t,o,e),n&&VT(s,e),n||i?GT(s,e,i):a&&WT(s,e),UT(s),s}function zT(t,e,r){var n=[];if(r==="replaceAll")return n;for(var i=0;i<t.length;i++){var a=t[i];a&&a.id!=null&&e.set(a.id,i),n.push({existing:r==="replaceMerge"||ro(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function HT(t,e,r,n){M(n,function(i,a){if(!(!i||i.id==null)){var o=Ha(i.id),s=r.get(o);if(s!=null){var u=t[s];Sr(!u.newOption,'Duplicated option on id "'+o+'".'),u.newOption=i,u.existing=e[s],n[a]=null}}})}function VT(t,e){M(e,function(r,n){if(!(!r||r.name==null))for(var i=0;i<t.length;i++){var a=t[i].existing;if(!t[i].newOption&&a&&(a.id==null||r.id==null)&&!ro(r)&&!ro(a)&&jy("name",a,r)){t[i].newOption=r,e[n]=null;return}}})}function GT(t,e,r){M(e,function(n){if(n){for(var i,a=0;(i=t[a])&&(i.newOption||ro(i.existing)||i.existing&&n.id!=null&&!jy("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=r):t.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),a++}})}function WT(t,e){M(e,function(r){t.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function UT(t){var e=oe();M(t,function(r){var n=r.existing;n&&e.set(n.id,r)}),M(t,function(r){var n=r.newOption;Sr(!n||n.id==null||!e.get(n.id)||e.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&e.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),M(t,function(r,n){var i=r.existing,a=r.newOption,o=r.keyInfo;if(ee(a)){if(o.name=a.name!=null?Ha(a.name):i?i.name:qy+n,i)o.id=Ha(i.id);else if(a.id!=null)o.id=Ha(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,r)}})}function jy(t,e,r){var n=mr(e[t],null),i=mr(r[t],null);return n!=null&&i!=null&&n===i}function Ha(t){return mr(t,"")}function mr(t,e){return t==null?e:Q(t)?t:Le(t)||Ws(t)?t+"":e}function $y(t){var e=t.name;return!!(e&&e.indexOf(qy))}function ro(t){return t&&t.id!=null&&Ha(t.id).indexOf(NT)===0}function YT(t,e,r){M(t,function(n){var i=n.newOption;ee(i)&&(n.keyInfo.mainType=e,n.keyInfo.subType=XT(e,i,n.existing,r))})}function XT(t,e,r,n){var i=e.type?e.type:r?r.subType:n.determineSubType(t,e);return i}function wo(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return Y(e.dataIndex)?re(e.dataIndex,function(r){return t.indexOfRawIndex(r)}):t.indexOfRawIndex(e.dataIndex);if(e.name!=null)return Y(e.name)?re(e.name,function(r){return t.indexOfName(r)}):t.indexOfName(e.name)}function Me(){var t="__ec_inner_"+qT++;return function(e){return e[t]||(e[t]={})}}var qT=_h();function Vl(t,e,r){var n=Sh(e,r),i=n.mainTypeSpecified,a=n.queryOptionMap,o=n.others,s=o,u=r?r.defaultMainType:null;return!i&&u&&a.set(u,{}),a.each(function(l,f){var c=xo(t,f,l,{useDefault:u===f,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[f+"Models"]=c.models,s[f+"Model"]=c.models[0]}),s}function Sh(t,e){var r;if(Q(t)){var n={};n[t+"Index"]=0,r=n}else r=t;var i=oe(),a={},o=!1;return M(r,function(s,u){if(u==="dataIndex"||u==="dataIndexInside"){a[u]=s;return}var l=u.match(/^(\w+)(Index|Id|Name)$/)||[],f=l[1],c=(l[2]||"").toLowerCase();if(!(!f||!c||e&&e.includeMainTypes&&me(e.includeMainTypes,f)<0)){o=o||!!f;var h=i.get(f)||i.set(f,{});h[c]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var Ft={useDefault:!0,enableAll:!1,enableNone:!1};function xo(t,e,r,n){n=n||Ft;var i=r.index,a=r.id,o=r.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var u=void 0;return s.models=n.useDefault&&(u=t.getComponent(e))?[u]:[],s}if(i==="none"||i===!1){if(n.enableNone)return s.models=[],s;i=-1}return i==="all"&&(n.enableAll?i=a=o=null:i=-1),s.models=t.queryComponents({mainType:e,index:i,id:a,name:o}),s}function jT(t,e,r){var n={};n[e+"Id"]=t[e+"Id"],n[e+"Index"]=t[e+"Index"],n[e+"Name"]=t[e+"Name"];var i={mainType:e,query:n};return r&&(i.subType=r),i}function Zy(t,e,r){t.setAttribute?t.setAttribute(e,r):t[e]=r}function $T(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function ZT(t){return t==="auto"?le.domSupported?"html":"richText":t||"html"}function ek(t,e,r,n,i){var a=e==null||e==="auto";if(n==null)return n;if(Le(n)){var o=Hd(r||0,n,i);return de(o,a?Math.max(Rr(r||0),Rr(n)):e)}else{if(Q(n))return i<1?r:n;for(var s=[],u=r,l=n,f=Math.max(u?u.length:0,l.length),c=0;c<f;++c){var h=t.getDimensionInfo(c);if(h&&h.type==="ordinal")s[c]=(i<1&&u?u:l)[c];else{var v=u&&u[c]?u[c]:0,d=l[c],o=Hd(v,d,i);s[c]=de(o,a?Math.max(Rr(v),Rr(d)):e)}}return s}}function hr(){return[1/0,-1/0]}function KT(t,e){Br(e)&&(e<t[0]&&(t[0]=e),e>t[1]&&(t[1]=e))}function Ky(t,e){Br(e)&&e<t[0]&&(t[0]=e)}function Qy(t,e){Br(e)&&e>t[1]&&(t[1]=e)}function QT(t,e){Xi(e[0],e[1])&&(e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]))}function Br(t){return t!=null&&isFinite(t)}function Xi(t,e){return Br(t)&&Br(e)&&t<=e}function JT(t){var e=t[1]-t[0];return isFinite(e)&&e>=0}function eC(t){Xi(t[0],t[1])&&t[0]>t[1]&&(t[0]=t[1])}function Jy(){var t="__ec_once_"+tC++;return function(e,r){ut(e,t)||(e[t]=1,r())}}var tC=_h();function bh(t,e,r){var n=oe(),i=0;M(t,function(a){var o=e(a),s=n.get(o)||0;r&&r(a,s),!s&&!r&&(t[i++]=a),n.set(o,s+1)}),r||(t.length=i)}function rC(t){return t.value+""}function nC(t){return t+""}function iC(t,e){return ie(e,!0)?t.seriesIndex+2:0}function e0(t,e,r){var n=t.getData().count();return{progressiveRender:r.progressiveEnabled&&e.incrementalPrepareRender&&n>=r.threshold,large:t.get("large")&&n>=t.get("largeThreshold"),modDataCount:t.get("progressiveChunkMode")==="mod"?t.getData().count():null}}function tk(t,e){return{seriesType:t,overallReset:e}}function t0(t){return{overallReset:t}}var we=Me(),aC=function(t,e,r,n){if(n){var i=we(n);i.dataIndex=r,i.dataType=e,i.seriesIndex=t,i.ssrType="chart",n.type==="group"&&n.traverse(function(a){var o=we(a);o.seriesIndex=t,o.dataIndex=r,o.dataType=e,o.ssrType="chart"})}},ea="undefined",r0="series",n0=oe(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Ct="original",tt="arrayRows",Xt="objectRows",nr="keyedColumns",nn="typedArray",i0="unknown",yr="column",li="row",oC=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],a0=(function(){function t(e){M(oC,function(r){this[r]=Pe(e[r],e)},this)}return t})();function sC(t,e){return e.mainType===r0?t.getViewOfSeriesModel(e):t.getViewOfComponentModel(e)}var Wd=1,Ud={},o0=Me(),wh=Me(),xh=0,Wu=1,Uu=2,sn=["emphasis","blur","select"],Yd=["normal","emphasis","blur","select"],uC=10,lC=9,Zn="highlight",Ds="downplay",ru="select",cc="unselect",nu="toggleSelect",Th="selectchanged";function gi(t){return t!=null&&t!=="none"}function Yu(t,e,r){t.onHoverStateChange&&(t.hoverState||0)!==r&&t.onHoverStateChange(e),t.hoverState=r}function s0(t){Yu(t,"emphasis",Uu)}function u0(t){t.hoverState===Uu&&Yu(t,"normal",xh)}function Ch(t){Yu(t,"blur",Wu)}function l0(t){t.hoverState===Wu&&Yu(t,"normal",xh)}function fC(t){t.selected=!0}function cC(t){t.selected=!1}function Xd(t,e,r){e(t,r)}function Vr(t,e,r){Xd(t,e,r),t.isGroup&&t.traverse(function(n){Xd(n,e,r)})}function rk(t,e){switch(e){case"emphasis":t.hoverState=Uu;break;case"normal":t.hoverState=xh;break;case"blur":t.hoverState=Wu;break;case"select":t.selected=!0}}function hC(t,e,r,n){for(var i=t.style,a={},o=0;o<e.length;o++){var s=e[o],u=i[s];a[s]=u==null?n&&n[s]:u}for(var o=0;o<t.animators.length;o++){var l=t.animators[o];l.__fromStateTransition&&l.__fromStateTransition.indexOf(r)<0&&l.targetName==="style"&&l.saveTo(a,e)}return a}function vC(t,e,r,n){var i=r&&me(r,"select")>=0,a=!1;if(t instanceof Ce){var o=o0(t),s=i&&o.selectFill||o.normalFill,u=i&&o.selectStroke||o.normalStroke;if(gi(s)||gi(u)){n=n||{};var l=n.style||{};l.fill==="inherit"?(a=!0,n=V({},n),l=V({},l),l.fill=s):!gi(l.fill)&&gi(s)?(a=!0,n=V({},n),l=V({},l),l.fill=Jf(s)):!gi(l.stroke)&&gi(u)&&(a||(n=V({},n),l=V({},l)),l.stroke=Jf(u)),n.style=l}}if(n&&n.z2==null){a||(n=V({},n));var f=t.z2EmphasisLift;n.z2=t.z2+(f!=null?f:uC)}return n}function dC(t,e,r){if(r&&r.z2==null){r=V({},r);var n=t.z2SelectLift;r.z2=t.z2+(n!=null?n:lC)}return r}function pC(t,e,r){var n=me(t.currentStates,e)>=0,i=t.style.opacity,a=n?null:hC(t,["opacity"],e,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=V({},r),o=V({opacity:n?i:a.opacity*.1},o),r.style=o),r}function Gl(t,e){var r=this.states[t];if(this.style){if(t==="emphasis")return vC(this,t,e,r);if(t==="blur")return pC(this,t,r);if(t==="select")return dC(this,t,r)}return r}function gC(t){t.stateProxy=Gl;var e=t.getTextContent(),r=t.getTextGuideLine();e&&(e.stateProxy=Gl),r&&(r.stateProxy=Gl)}function qd(t,e){!v0(t,e)&&!t.__highByOuter&&Vr(t,s0)}function jd(t,e){!v0(t,e)&&!t.__highByOuter&&Vr(t,u0)}function hc(t,e){t.__highByOuter|=1<<(e||0),Vr(t,s0)}function vc(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Vr(t,u0)}function mC(t){Vr(t,Ch)}function f0(t){Vr(t,l0)}function c0(t){Vr(t,fC)}function h0(t){Vr(t,cC)}function v0(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function d0(t){var e=t.getModel(),r=[],n=[];e.eachComponent(function(i,a){var o=wh(a),s=sC(t,a),u=i==="series";!u&&n.push(s),o.isBlured&&(s.group.traverse(function(l){l0(l)}),u&&r.push(a)),o.isBlured=!1}),M(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,e)})}function dc(t,e,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(l,f){for(var c=0;c<f.length;c++){var h=l.getItemGraphicEl(f[c]);h&&f0(h)}}if(t!=null&&!(!e||e==="none")){var o=i.getSeriesByIndex(t),s=o.coordinateSystem;s&&s.master&&(s=s.master);var u=[];i.eachSeries(function(l){var f=o===l,c=l.coordinateSystem;c&&c.master&&(c=c.master);var h=c&&s?c===s:f;if(!(r==="series"&&!f||r==="coordinateSystem"&&!h||e==="series"&&f)){var v=n.getViewOfSeriesModel(l);if(v.group.traverse(function(p){p.__highByOuter&&f&&e==="self"||Ch(p)}),ct(e))a(l.getData(),e);else if(ee(e))for(var d=Ae(e),g=0;g<d.length;g++)a(l.getData(d[g]),e[d[g]]);u.push(l),wh(l).isBlured=!0}}),i.eachComponent(function(l,f){if(l!=="series"){var c=n.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(u,!0,i)}})}}function pc(t,e,r){if(!(t==null||e==null)){var n=r.getModel().getComponent(t,e);if(n){wh(n).isBlured=!0;var i=r.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){Ch(a)})}}}function yC(t,e,r){var n=t.seriesIndex,i=t.getData(e.dataType);if(i){var a=wo(i,e);a=(Y(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),u=0;!o&&u<s;)o=i.getItemGraphicEl(u++);if(o){var l=we(o);dc(n,l.focus,l.blurScope,r)}else{var f=t.get(["emphasis","focus"]),c=t.get(["emphasis","blurScope"]);f!=null&&dc(n,f,c,r)}}}function Mh(t,e,r,n){var i={focusSelf:!1,dispatchers:null};if(t==null||t==="series"||e==null||r==null)return i;var a=n.getModel().getComponent(t,e);if(!a)return i;var o=n.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(r),u,l=0;l<s.length;l++)if(we(s[l]).focus==="self"){u=!0;break}return{focusSelf:u,dispatchers:s}}function _C(t,e,r){var n=we(t),i=Mh(n.componentMainType,n.componentIndex,n.componentHighDownName,r),a=i.dispatchers,o=i.focusSelf;a?(o&&pc(n.componentMainType,n.componentIndex,r),M(a,function(s){return qd(s,e)})):(dc(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&pc(n.componentMainType,n.componentIndex,r),qd(t,e))}function SC(t,e,r){d0(r);var n=we(t),i=Mh(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;i?M(i,function(a){return jd(a,e)}):jd(t,e)}function bC(t,e,r){if(mc(e)){var n=e.dataType,i=t.getData(n),a=wo(i,e);Y(a)||(a=[a]),t[e.type===nu?"toggleSelect":e.type===ru?"select":"unselect"](a,n)}}function $d(t){var e=t.getAllData();M(e,function(r){var n=r.data,i=r.type;n.eachItemGraphicEl(function(a,o){t.isSelected(o,i)?c0(a):h0(a)})})}function wC(t){var e=[];return t.eachSeries(function(r){var n=r.getAllData();M(n,function(i){i.data;var a=i.type,o=r.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),e.push(s)}})}),e}function p0(t,e,r){g0(t,!0),Vr(t,gC),CC(t,e,r)}function xC(t){g0(t,!1)}function TC(t,e,r,n){n?xC(t):p0(t,e,r)}function CC(t,e,r){var n=we(t);e!=null?(n.focus=e,n.blurScope=r):n.focus&&(n.focus=null)}var Zd=["emphasis","blur","select"],MC={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function DC(t,e,r,n){r=r||"itemStyle";for(var i=0;i<Zd.length;i++){var a=Zd[i],o=e.getModel([a,r]),s=t.ensureState(a);s.style=o[MC[r]]()}}function g0(t,e){var r=e===!1,n=t;t.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function gc(t){return!!(t&&t.__highDownDispatcher)}function AC(t){var e=Ud[t];return e==null&&Wd<=32&&(e=Ud[t]=Wd++),e}function mc(t){var e=t.type;return e===ru||e===cc||e===nu}function Kd(t){var e=t.type;return e===Zn||e===Ds}function PC(t){var e=o0(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var r=t.states.select||{};e.selectFill=r.style&&r.style.fill||null,e.selectStroke=r.style&&r.style.stroke||null}var mi=Yi.CMD,IC=[[],[],[]],Qd=Math.sqrt,LC=Math.atan2;function EC(t,e){if(e){var r=t.data,n=t.len(),i,a,o,s,u,l,f=mi.M,c=mi.C,h=mi.L,v=mi.R,d=mi.A,g=mi.Q;for(o=0,s=0;o<n;){switch(i=r[o++],s=o,a=0,i){case f:a=1;break;case h:a=1;break;case c:a=3;break;case g:a=2;break;case d:var p=e[4],m=e[5],y=Qd(e[0]*e[0]+e[1]*e[1]),_=Qd(e[2]*e[2]+e[3]*e[3]),S=LC(-e[1]/_,e[0]/y);r[o]*=y,r[o++]+=p,r[o]*=_,r[o++]+=m,r[o++]*=y,r[o++]*=_,r[o++]+=S,r[o++]+=S,o+=2,s=o;break;case v:l[0]=r[o++],l[1]=r[o++],lt(l,l,e),r[s++]=l[0],r[s++]=l[1],l[0]+=r[o++],l[1]+=r[o++],lt(l,l,e),r[s++]=l[0],r[s++]=l[1]}for(u=0;u<a;u++){var b=IC[u];b[0]=r[o++],b[1]=r[o++],lt(b,b,e),r[s++]=b[0],r[s++]=b[1]}}t.increaseVersion()}}var Wl=Math.sqrt,Go=Math.sin,Wo=Math.cos,pa=Math.PI;function Jd(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function yc(t,e){return(t[0]*e[0]+t[1]*e[1])/(Jd(t)*Jd(e))}function ep(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(yc(t,e))}function tp(t,e,r,n,i,a,o,s,u,l,f){var c=u*(pa/180),h=Wo(c)*(t-r)/2+Go(c)*(e-n)/2,v=-1*Go(c)*(t-r)/2+Wo(c)*(e-n)/2,d=h*h/(o*o)+v*v/(s*s);d>1&&(o*=Wl(d),s*=Wl(d));var g=(i===a?-1:1)*Wl((o*o*(s*s)-o*o*(v*v)-s*s*(h*h))/(o*o*(v*v)+s*s*(h*h)))||0,p=g*o*v/s,m=g*-s*h/o,y=(t+r)/2+Wo(c)*p-Go(c)*m,_=(e+n)/2+Go(c)*p+Wo(c)*m,S=ep([1,0],[(h-p)/o,(v-m)/s]),b=[(h-p)/o,(v-m)/s],w=[(-1*h-p)/o,(-1*v-m)/s],x=ep(b,w);if(yc(b,w)<=-1&&(x=pa),yc(b,w)>=1&&(x=0),x<0){var C=Math.round(x/pa*1e6)/1e6;x=pa*2+C%2*pa}f.addData(l,y,_,o,s,S,x,c,a)}var RC=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,OC=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function kC(t){var e=new Yi;if(!t)return e;var r=0,n=0,i=r,a=n,o,s=Yi.CMD,u=t.match(RC);if(!u)return e;for(var l=0;l<u.length;l++){for(var f=u[l],c=f.charAt(0),h=void 0,v=f.match(OC)||[],d=v.length,g=0;g<d;g++)v[g]=parseFloat(v[g]);for(var p=0;p<d;){var m=void 0,y=void 0,_=void 0,S=void 0,b=void 0,w=void 0,x=void 0,C=r,D=n,A=void 0,T=void 0;switch(c){case"l":r+=v[p++],n+=v[p++],h=s.L,e.addData(h,r,n);break;case"L":r=v[p++],n=v[p++],h=s.L,e.addData(h,r,n);break;case"m":r+=v[p++],n+=v[p++],h=s.M,e.addData(h,r,n),i=r,a=n,c="l";break;case"M":r=v[p++],n=v[p++],h=s.M,e.addData(h,r,n),i=r,a=n,c="L";break;case"h":r+=v[p++],h=s.L,e.addData(h,r,n);break;case"H":r=v[p++],h=s.L,e.addData(h,r,n);break;case"v":n+=v[p++],h=s.L,e.addData(h,r,n);break;case"V":n=v[p++],h=s.L,e.addData(h,r,n);break;case"C":h=s.C,e.addData(h,v[p++],v[p++],v[p++],v[p++],v[p++],v[p++]),r=v[p-2],n=v[p-1];break;case"c":h=s.C,e.addData(h,v[p++]+r,v[p++]+n,v[p++]+r,v[p++]+n,v[p++]+r,v[p++]+n),r+=v[p-2],n+=v[p-1];break;case"S":m=r,y=n,A=e.len(),T=e.data,o===s.C&&(m+=r-T[A-4],y+=n-T[A-3]),h=s.C,C=v[p++],D=v[p++],r=v[p++],n=v[p++],e.addData(h,m,y,C,D,r,n);break;case"s":m=r,y=n,A=e.len(),T=e.data,o===s.C&&(m+=r-T[A-4],y+=n-T[A-3]),h=s.C,C=r+v[p++],D=n+v[p++],r+=v[p++],n+=v[p++],e.addData(h,m,y,C,D,r,n);break;case"Q":C=v[p++],D=v[p++],r=v[p++],n=v[p++],h=s.Q,e.addData(h,C,D,r,n);break;case"q":C=v[p++]+r,D=v[p++]+n,r+=v[p++],n+=v[p++],h=s.Q,e.addData(h,C,D,r,n);break;case"T":m=r,y=n,A=e.len(),T=e.data,o===s.Q&&(m+=r-T[A-4],y+=n-T[A-3]),r=v[p++],n=v[p++],h=s.Q,e.addData(h,m,y,r,n);break;case"t":m=r,y=n,A=e.len(),T=e.data,o===s.Q&&(m+=r-T[A-4],y+=n-T[A-3]),r+=v[p++],n+=v[p++],h=s.Q,e.addData(h,m,y,r,n);break;case"A":_=v[p++],S=v[p++],b=v[p++],w=v[p++],x=v[p++],C=r,D=n,r=v[p++],n=v[p++],h=s.A,tp(C,D,r,n,w,x,_,S,b,h,e);break;case"a":_=v[p++],S=v[p++],b=v[p++],w=v[p++],x=v[p++],C=r,D=n,r+=v[p++],n+=v[p++],h=s.A,tp(C,D,r,n,w,x,_,S,b,h,e);break}}(c==="z"||c==="Z")&&(h=s.Z,e.addData(h),r=i,n=a),o=h}return e.toStatic(),e}var m0=(function(t){j(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(r){},e})(Ce);function y0(t){return t.setData!=null}function _0(t,e){var r=kC(t),n=V({},e);return n.buildPath=function(i){var a=y0(i);if(a&&i.canSave()){i.appendPath(r);var o=i.getContext();o&&i.rebuildPath(o,1)}else{var o=a?i.getContext():i;o&&r.rebuildPath(o,1)}},n.applyTransform=function(i){EC(r,i),this.dirtyShape()},n}function NC(t,e){return new m0(_0(t,e))}function BC(t,e){var r=_0(t,e),n=(function(i){j(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a})(m0);return n}function FC(t,e){for(var r=[],n=t.length,i=0;i<n;i++){var a=t[i];r.push(a.getUpdatedPathProxy(!0))}var o=new Ce(e);return o.createPathProxy(),o.buildPath=function(s){if(y0(s)){s.appendPath(r);var u=s.getContext();u&&s.rebuildPath(u,1)}},o}var xt=(function(t){j(e,t);function e(r){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(r){return this._children[r]},e.prototype.childOfName=function(r){for(var n=this._children,i=0;i<n.length;i++)if(n[i].name===r)return n[i]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},e.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var i=this._children,a=i.indexOf(n);a>=0&&(i.splice(a,0,r),this._doAdd(r))}return this},e.prototype.replace=function(r,n){var i=me(this._children,r);return i>=0&&this.replaceAt(n,i),this},e.prototype.replaceAt=function(r,n){var i=this._children,a=i[n];if(r&&r!==this&&r.parent!==this&&r!==a){i[n]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},e.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},e.prototype.remove=function(r){var n=this.__zr,i=this._children,a=me(i,r);return a<0?this:(i.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},e.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,i=0;i<r.length;i++){var a=r[i];n&&a.removeSelfFromZr(n),a.parent=null}return r.length=0,this},e.prototype.eachChild=function(r,n){for(var i=this._children,a=0;a<i.length;a++){var o=i[a];r.call(n,o,a)}return this},e.prototype.traverse=function(r,n){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=r.call(n,a);a.isGroup&&!o&&a.traverse(r,n)}return this},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(r)}},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(r)}},e.prototype.getBoundingRect=function(r){for(var n=new se(0,0,0,0),i=r||this._children,a=[],o=null,s=0;s<i.length;s++){var u=i[s];if(!(u.ignore||u.invisible)){var l=u.getBoundingRect(),f=u.getLocalTransform(a);f?(se.applyTransform(n,l,f),o=o||n.clone(),o.union(n)):(o=o||l.clone(),o.union(l))}}return o||n},e})(Fu);xt.prototype.type="group";var zC=(function(){function t(){this.cx=0,this.cy=0,this.r=0}return t})(),To=(function(t){j(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new zC},e.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,Math.PI*2)},e})(Ce);To.prototype.type="circle";var HC=(function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t})(),Xu=(function(t){j(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new HC},e.prototype.buildPath=function(r,n){var i=.5522848,a=n.cx,o=n.cy,s=n.rx,u=n.ry,l=s*i,f=u*i;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-f,a-l,o-u,a,o-u),r.bezierCurveTo(a+l,o-u,a+s,o-f,a+s,o),r.bezierCurveTo(a+s,o+f,a+l,o+u,a,o+u),r.bezierCurveTo(a-l,o+u,a-s,o+f,a-s,o),r.closePath()},e})(Ce);Xu.prototype.type="ellipse";var S0=Math.PI,Ul=S0*2,An=Math.sin,yi=Math.cos,VC=Math.acos,Ke=Math.atan2,rp=Math.abs,Va=Math.sqrt,Ra=Math.max,cr=Math.min,Kt=1e-4;function GC(t,e,r,n,i,a,o,s){var u=r-t,l=n-e,f=o-i,c=s-a,h=c*u-f*l;if(!(h*h<Kt))return h=(f*(e-a)-c*(t-i))/h,[t+h*u,e+h*l]}function Uo(t,e,r,n,i,a,o){var s=t-r,u=e-n,l=(o?a:-a)/Va(s*s+u*u),f=l*u,c=-l*s,h=t+f,v=e+c,d=r+f,g=n+c,p=(h+d)/2,m=(v+g)/2,y=d-h,_=g-v,S=y*y+_*_,b=i-a,w=h*g-d*v,x=(_<0?-1:1)*Va(Ra(0,b*b*S-w*w)),C=(w*_-y*x)/S,D=(-w*y-_*x)/S,A=(w*_+y*x)/S,T=(-w*y+_*x)/S,k=C-p,P=D-m,O=A-p,B=T-m;return k*k+P*P>O*O+B*B&&(C=A,D=T),{cx:C,cy:D,x0:-f,y0:-c,x1:C*(i/b-1),y1:D*(i/b-1)}}function WC(t){var e;if(Y(t)){var r=t.length;if(!r)return t;r===1?e=[t[0],t[0],0,0]:r===2?e=[t[0],t[0],t[1],t[1]]:r===3?e=t.concat(t[2]):e=t}else e=[t,t,t,t];return e}function UC(t,e){var r,n=Ra(e.r,0),i=Ra(e.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var u=e.startAngle,l=e.endAngle;if(!(isNaN(u)||isNaN(l))){var f=e.cx,c=e.cy,h=!!e.clockwise,v=rp(l-u),d=v>Ul&&v%Ul;if(d>Kt&&(v=d),!(n>Kt))t.moveTo(f,c);else if(v>Ul-Kt)t.moveTo(f+n*yi(u),c+n*An(u)),t.arc(f,c,n,u,l,!h),i>Kt&&(t.moveTo(f+i*yi(l),c+i*An(l)),t.arc(f,c,i,l,u,h));else{var g=void 0,p=void 0,m=void 0,y=void 0,_=void 0,S=void 0,b=void 0,w=void 0,x=void 0,C=void 0,D=void 0,A=void 0,T=void 0,k=void 0,P=void 0,O=void 0,B=n*yi(u),F=n*An(u),$=i*yi(l),W=i*An(l),z=v>Kt;if(z){var q=e.cornerRadius;q&&(r=WC(q),g=r[0],p=r[1],m=r[2],y=r[3]);var H=rp(n-i)/2;if(_=cr(H,m),S=cr(H,y),b=cr(H,g),w=cr(H,p),D=x=Ra(_,S),A=C=Ra(b,w),(x>Kt||C>Kt)&&(T=n*yi(l),k=n*An(l),P=i*yi(u),O=i*An(u),v<S0)){var X=GC(B,F,P,O,T,k,$,W);if(X){var ne=B-X[0],K=F-X[1],ue=T-X[0],te=k-X[1],He=1/An(VC((ne*ue+K*te)/(Va(ne*ne+K*K)*Va(ue*ue+te*te)))/2),Ze=Va(X[0]*X[0]+X[1]*X[1]);D=cr(x,(n-Ze)/(He+1)),A=cr(C,(i-Ze)/(He-1))}}}if(!z)t.moveTo(f+B,c+F);else if(D>Kt){var E=cr(m,D),R=cr(y,D),I=Uo(P,O,B,F,n,E,h),L=Uo(T,k,$,W,n,R,h);t.moveTo(f+I.cx+I.x0,c+I.cy+I.y0),D<x&&E===R?t.arc(f+I.cx,c+I.cy,D,Ke(I.y0,I.x0),Ke(L.y0,L.x0),!h):(E>0&&t.arc(f+I.cx,c+I.cy,E,Ke(I.y0,I.x0),Ke(I.y1,I.x1),!h),t.arc(f,c,n,Ke(I.cy+I.y1,I.cx+I.x1),Ke(L.cy+L.y1,L.cx+L.x1),!h),R>0&&t.arc(f+L.cx,c+L.cy,R,Ke(L.y1,L.x1),Ke(L.y0,L.x0),!h))}else t.moveTo(f+B,c+F),t.arc(f,c,n,u,l,!h);if(!(i>Kt)||!z)t.lineTo(f+$,c+W);else if(A>Kt){var E=cr(g,A),R=cr(p,A),I=Uo($,W,T,k,i,-R,h),L=Uo(B,F,P,O,i,-E,h);t.lineTo(f+I.cx+I.x0,c+I.cy+I.y0),A<C&&E===R?t.arc(f+I.cx,c+I.cy,A,Ke(I.y0,I.x0),Ke(L.y0,L.x0),!h):(R>0&&t.arc(f+I.cx,c+I.cy,R,Ke(I.y0,I.x0),Ke(I.y1,I.x1),!h),t.arc(f,c,i,Ke(I.cy+I.y1,I.cx+I.x1),Ke(L.cy+L.y1,L.cx+L.x1),h),E>0&&t.arc(f+L.cx,c+L.cy,E,Ke(L.y1,L.x1),Ke(L.y0,L.x0),!h))}else t.lineTo(f+$,c+W),t.arc(f,c,i,l,u,h)}t.closePath()}}}var YC=(function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return t})(),fi=(function(t){j(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new YC},e.prototype.buildPath=function(r,n){UC(r,n)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e})(Ce);fi.prototype.type="sector";var XC=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t})(),qu=(function(t){j(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new XC},e.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.PI*2;r.moveTo(i+n.r,a),r.arc(i,a,n.r,0,o,!1),r.moveTo(i+n.r0,a),r.arc(i,a,n.r0,0,o,!0)},e})(Ce);qu.prototype.type="ring";function qC(t,e,r,n){var i=[],a=[],o=[],s=[],u,l,f,c;if(n){f=[1/0,1/0],c=[-1/0,-1/0];for(var h=0,v=t.length;h<v;h++)Zr(f,f,t[h]),Kr(c,c,t[h]);Zr(f,f,n[0]),Kr(c,c,n[1])}for(var h=0,v=t.length;h<v;h++){var d=t[h];if(r)u=t[h?h-1:v-1],l=t[(h+1)%v];else if(h===0||h===v-1){i.push(vy(t[h]));continue}else u=t[h-1],l=t[h+1];dy(a,l,u),bs(a,a,e);var g=Xs(d,u),p=Xs(d,l),m=g+p;m!==0&&(g/=m,p/=m),bs(o,a,-g),bs(s,a,p);var y=Xf([],d,o),_=Xf([],d,s);n&&(Kr(y,y,f),Zr(y,y,c),Kr(_,_,f),Zr(_,_,c)),i.push(y),i.push(_)}return r&&i.push(i.shift()),i}function b0(t,e,r){var n=e.smooth,i=e.points;if(i&&i.length>=2){if(n){var a=qC(i,n,r,e.smoothConstraint);t.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(r?o:o-1);s++){var u=a[s*2],l=a[s*2+1],f=i[(s+1)%o];t.bezierCurveTo(u[0],u[1],l[0],l[1],f[0],f[1])}}else{t.moveTo(i[0][0],i[0][1]);for(var s=1,c=i.length;s<c;s++)t.lineTo(i[s][0],i[s][1])}r&&t.closePath()}}var jC=(function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t})(),ju=(function(t){j(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new jC},e.prototype.buildPath=function(r,n){b0(r,n,!0)},e})(Ce);ju.prototype.type="polygon";var $C=(function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t})(),$u=(function(t){j(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new $C},e.prototype.buildPath=function(r,n){b0(r,n,!1)},e})(Ce);$u.prototype.type="polyline";var ZC={},KC=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t})(),Fr=(function(t){j(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new KC},e.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var u=Hy(ZC,n,this.style);i=u.x1,a=u.y1,o=u.x2,s=u.y2}else i=n.x1,a=n.y1,o=n.x2,s=n.y2;var l=n.percent;l!==0&&(r.moveTo(i,a),l<1&&(o=i*(1-l)+o*l,s=a*(1-l)+s*l),r.lineTo(o,s))},e.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},e})(Ce);Fr.prototype.type="line";var dt=[],QC=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t})();function np(t,e,r){var n=t.cpx2,i=t.cpy2;return n!=null||i!=null?[(r?dd:it)(t.x1,t.cpx1,t.cpx2,t.x2,e),(r?dd:it)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(r?pd:pt)(t.x1,t.cpx1,t.x2,e),(r?pd:pt)(t.y1,t.cpy1,t.y2,e)]}var Zu=(function(t){j(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new QC},e.prototype.buildPath=function(r,n){var i=n.x1,a=n.y1,o=n.x2,s=n.y2,u=n.cpx1,l=n.cpy1,f=n.cpx2,c=n.cpy2,h=n.percent;h!==0&&(r.moveTo(i,a),f==null||c==null?(h<1&&(Ks(i,u,o,h,dt),u=dt[1],o=dt[2],Ks(a,l,s,h,dt),l=dt[1],s=dt[2]),r.quadraticCurveTo(u,l,o,s)):(h<1&&(Zs(i,u,f,o,h,dt),u=dt[1],f=dt[2],o=dt[3],Zs(a,l,c,s,h,dt),l=dt[1],c=dt[2],s=dt[3]),r.bezierCurveTo(u,l,f,c,o,s)))},e.prototype.pointAt=function(r){return np(this.shape,r,!1)},e.prototype.tangentAt=function(r){var n=np(this.shape,r,!0);return py(n,n)},e})(Ce);Zu.prototype.type="bezier-curve";var JC=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t})(),Co=(function(t){j(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new JC},e.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r,0),s=n.startAngle,u=n.endAngle,l=n.clockwise,f=Math.cos(s),c=Math.sin(s);r.moveTo(f*o+i,c*o+a),r.arc(i,a,o,s,u,!l)},e})(Ce);Co.prototype.type="arc";var w0=(function(t){j(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="compound",r}return e.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),i=0;i<r.length;i++)n=n||r[i].shapeChanged();n&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),i=0;i<r.length;i++)r[i].path||r[i].createPathProxy(),r[i].path.setScale(n[0],n[1],r[i].segmentIgnoreThreshold)},e.prototype.buildPath=function(r,n){for(var i=n.paths||[],a=0;a<i.length;a++)i[a].buildPath(r,i[a].shape,!0)},e.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Ce.prototype.getBoundingRect.call(this)},e})(Ce),x0=(function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,r){this.colorStops.push({offset:e,color:r})},t})(),T0=(function(t){j(e,t);function e(r,n,i,a,o,s){var u=t.call(this,o)||this;return u.x=r==null?0:r,u.y=n==null?0:n,u.x2=i==null?1:i,u.y2=a==null?0:a,u.type="linear",u.global=s||!1,u}return e})(x0),C0=(function(t){j(e,t);function e(r,n,i,a,o){var s=t.call(this,a)||this;return s.x=r==null?.5:r,s.y=n==null?.5:n,s.r=i==null?.5:i,s.type="radial",s.global=o||!1,s}return e})(x0),Yl=Math.min,eM=Math.max,Yo=Math.abs,Pn=[0,0],In=[0,0],Ue=yy(),Xo=Ue.minTv,qo=Ue.maxTv,M0=(function(){function t(e,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new xe;for(var n=0;n<2;n++)this._axes[n]=new xe;e&&this.fromBoundingRect(e,r)}return t.prototype.fromBoundingRect=function(e,r){var n=this._corners,i=this._axes,a=e.x,o=e.y,s=a+e.width,u=o+e.height;if(n[0].set(a,o),n[1].set(s,o),n[2].set(s,u),n[3].set(a,u),r)for(var l=0;l<4;l++)n[l].transform(r);xe.sub(i[0],n[1],n[0]),xe.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var l=0;l<2;l++)this._origin[l]=i[l].dot(n[0])},t.prototype.intersect=function(e,r,n){var i=!0,a=!r;return r&&xe.set(r,0,0),Ue.reset(n,!a),!this._intersectCheckOneSide(this,e,a,1)&&(i=!1,a)||!this._intersectCheckOneSide(e,this,a,-1)&&(i=!1,a)||!a&&!Ue.negativeSize&&xe.copy(r,i?Ue.useDir?Ue.dirMinTv:Xo:qo),i},t.prototype._intersectCheckOneSide=function(e,r,n,i){for(var a=!0,o=0;o<2;o++){var s=e._axes[o];if(e._getProjMinMaxOnAxis(o,e._corners,Pn),e._getProjMinMaxOnAxis(o,r._corners,In),Ue.negativeSize||Pn[1]<In[0]||Pn[0]>In[1]){if(a=!1,Ue.negativeSize||n)return a;var u=Yo(In[0]-Pn[1]),l=Yo(Pn[0]-In[1]);Yl(u,l)>qo.len()&&(u<l?xe.scale(qo,s,-u*i):xe.scale(qo,s,l*i))}else if(!n){var u=Yo(In[0]-Pn[1]),l=Yo(Pn[0]-In[1]);(Ue.useDir||Yl(u,l)<Xo.len())&&((u<l||!Ue.bidirectional)&&(xe.scale(Xo,s,u*i),Ue.useDir&&Ue.calcDirMTV()),(u>=l||!Ue.bidirectional)&&(xe.scale(Xo,s,-l*i),Ue.useDir&&Ue.calcDirMTV()))}}return a},t.prototype._getProjMinMaxOnAxis=function(e,r,n){for(var i=this._axes[e],a=this._origin,o=r[0].dot(i)+a[e],s=o,u=o,l=1;l<r.length;l++){var f=r[l].dot(i)+a[e];s=Yl(f,s),u=eM(f,u)}n[0]=s+Ue.touchThreshold,n[1]=u-Ue.touchThreshold,Ue.negativeSize=n[1]<n[0]},t})(),D0=0,tM=1,rM=2,nM=1,As=0,iM=[],A0=(function(t){j(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.notClear=!0,r.incremental=tM,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return e.prototype.traverse=function(r,n){r.call(n,this)},e.prototype.useStyle=function(){this.style={}},e.prototype._useHoverStyle=function(){this.__hoverStyle=null},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},e.prototype.addDisplayables=function(r,n){n=n||!1;for(var i=0;i<r.length;i++)this.addDisplayable(r[i],n)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},e.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new se(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var i=this._displayables[n],a=i.getBoundingRect().clone();i.needLocalTransform()&&a.applyTransform(i.getLocalTransform(iM)),r.union(a)}this._rect=r}return this._rect},e.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(a.contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,n))return!0}return!1},e})(_o),aM=Me();function oM(t,e,r,n,i){var a;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();a=o&&o.animation}var s=e&&e.isAnimationEnabled(),u=t==="update";if(s){var l=void 0,f=void 0,c=void 0;n?(l=ie(n.duration,200),f=ie(n.easing,"cubicOut"),c=0):(l=e.getShallow(u?"animationDurationUpdate":"animationDuration"),f=e.getShallow(u?"animationEasingUpdate":"animationEasing"),c=e.getShallow(u?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(l=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(c=a.delay)),fe(c)&&(c=c(r,i)),fe(l)&&(l=l(r));var h={duration:l||0,delay:c,easing:f};return h}else return null}function Dh(t,e,r,n,i,a,o){var s=!1,u;fe(i)?(o=a,a=i,i=null):ee(i)&&(a=i.cb,o=i.during,s=i.isFrom,u=i.removeOpt,i=i.dataIndex);var l=t==="leave";l||e.stopAnimation("leave");var f=oM(t,n,i,l?u||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,i):null);if(f&&f.duration>0){var c=f.duration,h=f.delay,v=f.easing,d={duration:c,delay:h||0,easing:v,done:a,force:!!a||!!o,setToFinal:!l,scope:t,during:o};s?e.animateFrom(r,d):e.animateTo(r,d)}else e.stopAnimation(),!s&&e.attr(r),o&&o(1),a&&a()}function zr(t,e,r,n,i,a){Dh("update",t,e,r,n,i,a)}function un(t,e,r,n,i,a){Dh("enter",t,e,r,n,i,a)}function Ga(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var r=t.animators[e];if(r.scope==="leave")return!0}return!1}function P0(t,e,r,n,i,a){Ga(t)||Dh("leave",t,e,r,n,i,a)}function ip(t,e,r,n){t.removeTextContent(),t.removeTextGuideLine(),P0(t,{style:{opacity:0}},e,r,n)}function Ps(t,e,r){function n(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(i){i.isGroup||ip(i,e,r,n)}):ip(t,e,r,n)}function sM(t){aM(t).oldStyle=t.style}var _c={},$r=["x","y"],qi=["width","height"],I0=0,L0=1,E0=2;function R0(t){return Ce.extend(t)}var uM=BC;function O0(t,e){return uM(t,e)}function qt(t,e){_c[t]=e}function k0(t){if(_c.hasOwnProperty(t))return _c[t]}function Ku(t,e,r,n){var i=NC(t,e);return r&&(n==="center"&&(r=N0(r,i.getBoundingRect())),Ph(i,r)),i}function Ah(t,e,r){var n=new cn({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(i){if(r==="center"){var a={width:i.width,height:i.height};n.setStyle(N0(e,a))}}});return n}function N0(t,e){var r=e.width/e.height,n=t.height*r,i;n<=t.width?i=t.height:(n=t.width,i=n/r);var a=t.x+t.width/2,o=t.y+t.height/2;return{x:a-n/2,y:o-i/2,width:n,height:i}}var B0=FC;function Ph(t,e){if(t.applyTransform){var r=t.getBoundingRect(),n=r.calculateTransform(e);t.applyTransform(n)}}function no(t,e){return Hy(t,t,{lineWidth:e}),t}function lM(t,e){return Vy(t,t,e),t}var fM=Vn;function F0(t,e){for(var r=ii([]);t&&t!==e;)Xn(r,t.getLocalTransform(),r),t=t.parent;return r}function Ih(t,e,r){return e&&!ct(e)&&(e=yo.getLocalTransform(e)),r&&(e=ai([],e)),lt([],t,e)}function cM(t,e,r){var n=e[4]===0||e[5]===0||e[0]===0?1:Ne(2*e[4]/e[0]),i=e[4]===0||e[5]===0||e[2]===0?1:Ne(2*e[4]/e[2]),a=[t==="left"?-n:t==="right"?n:0,t==="top"?-i:t==="bottom"?i:0];return a=Ih(a,e,r),Ne(a[0])>Ne(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function ap(t){return!t.isGroup}function hM(t){return t.shape!=null}function z0(t,e,r){if(!t||!e)return;function n(o){var s={};return o.traverse(function(u){ap(u)&&u.anid&&(s[u.anid]=u)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return hM(o)&&(s.shape=he(o.shape)),s}var a=n(t);e.traverse(function(o){if(ap(o)&&o.anid){var s=a[o.anid];if(s){var u=i(o);o.attr(i(s)),zr(o,u,r,we(o).dataIndex)}}})}function H0(t,e){return re(t,function(r){var n=r[0];n=pe(n,e.x),n=$e(n,e.x+e.width);var i=r[1];return i=pe(i,e.y),i=$e(i,e.y+e.height),[n,i]})}function V0(t,e){var r=pe(t.x,e.x),n=$e(t.x+t.width,e.x+e.width),i=pe(t.y,e.y),a=$e(t.y+t.height,e.y+e.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function Lh(t,e,r){var n=V({rectHover:!0},e),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(i.image=t.slice(8),Te(i,r),new cn(n)):Ku(t.replace("path://",""),n,r,"center")}function vM(t,e,r,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(G0(t,e,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function G0(t,e,r,n,i,a,o,s){var u=r-t,l=n-e,f=o-i,c=s-a,h=Xl(f,c,u,l);if(dM(h))return!1;var v=t-i,d=e-a,g=Xl(v,d,u,l)/h;if(g<0||g>1)return!1;var p=Xl(v,d,f,c)/h;return!(p<0||p>1)}function Xl(t,e,r,n){return t*n-r*e}function dM(t){return t<=1e-6&&t>=-1e-6}function iu(t,e,r,n,i){return e==null||(Le(e)?De[0]=De[1]=De[2]=De[3]=e:(De[0]=e[0],De[1]=e[1],De[2]=e[2],De[3]=e[3]),n&&(De[0]=pe(0,De[0]),De[1]=pe(0,De[1]),De[2]=pe(0,De[2]),De[3]=pe(0,De[3])),r&&(De[0]=-De[0],De[1]=-De[1],De[2]=-De[2],De[3]=-De[3]),op(t,De,"x","width",3,1,i&&i[0]||0),op(t,De,"y","height",0,2,i&&i[1]||0)),t}var De=[0,0,0,0];function op(t,e,r,n,i,a,o){var s=e[a]+e[i],u=t[n];t[n]+=s,o=pe(0,$e(o,u)),t[n]<o?(t[n]=o,t[r]+=e[i]>=0?-e[i]:e[a]>=0?u+e[a]:Ne(s)>1e-8?(u-o)*e[i]/s:0):t[r]-=e[i]}function Eh(t){var e=t.itemTooltipOption,r=t.componentModel,n=t.itemName,i=Q(e)?{formatter:e}:e,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var u=t.formatterParamsExtra;u&&M(Ae(u),function(f){ut(s,f)||(s[f]=u[f],s.$vars.push(f))});var l=we(t.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:n,option:Te({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function Sc(t,e){var r;t.isGroup&&(r=e(t)),r||t.traverse(e)}function Rh(t,e){if(t)if(Y(t))for(var r=0;r<t.length;r++)Sc(t[r],e);else Sc(t,e)}function Oh(t){return!t||Ne(t[1])<jo&&Ne(t[2])<jo||Ne(t[0])<jo&&Ne(t[3])<jo}var jo=1e-5;function io(t,e){return t?se.copy(t,e):e.clone()}function kh(t,e){return e?mo(t||Vt(),e):void 0}function W0(t){return{z:t.get("z")||0,zlevel:t.get("zlevel")||0}}function pM(t){var e=-1/0,r=1/0;Sc(t,function(a){n(a),n(a.getTextContent()),n(a.getTextGuideLine())});function n(a){if(!(!a||a.isGroup)){var o=a.currentStates;if(o.length)for(var s=0;s<o.length;s++)i(a.states[o[s]]);i(a)}}function i(a){if(a){var o=a.z2;o>e&&(e=o),o<r&&(r=o)}}return r>e&&(r=e=0),{min:r,max:e}}function U0(t,e,r){Y0(t,e,r,-1/0)}function Y0(t,e,r,n){if(t.ignoreModelZ)return n;var i=t.getTextContent(),a=t.getTextGuideLine(),o=t.isGroup;if(o)for(var s=t.childrenRef(),u=0;u<s.length;u++)n=pe(Y0(s[u],e,r,n),n);else t.z=e,t.zlevel=r,n=pe(t.z2||0,n);if(i&&(i.z=e,i.zlevel=r,isFinite(n)&&(i.z2=n+2)),a){var l=t.textGuideLineConfig;a.z=e,a.zlevel=r,isFinite(n)&&(a.z2=n+(l&&l.showAbove?1:-1))}return n}function gM(t){return t.animation={duration:0},t}function mM(t,e){return e?mo(Oa.transform,e):ii(Oa.transform),Oa.decomposeTransform(),js(t,Oa),t}var Oa=new yo;Oa.transform=Vt();function yM(t){var e=t.getZr().painter;return e.getType()==="canvas"?e:null}qt("circle",To);qt("ellipse",Xu);qt("sector",fi);qt("ring",qu);qt("polygon",ju);qt("polyline",$u);qt("rect",ze);qt("line",Fr);qt("bezierCurve",Zu);qt("arc",Co);var _M=Object.freeze({__proto__:null,Arc:Co,BezierCurve:Zu,BoundingRect:se,Circle:To,CompoundPath:w0,Ellipse:Xu,Group:xt,HOVER_LAYER_FOR_INCREMENTAL:E0,HOVER_LAYER_FROM_THRESHOLD:L0,HOVER_LAYER_NO:I0,Image:cn,IncrementalDisplayable:A0,Line:Fr,LinearGradient:T0,OrientedBoundingRect:M0,Path:Ce,Point:xe,Polygon:ju,Polyline:$u,RadialGradient:C0,Rect:ze,Ring:qu,Sector:fi,Text:yt,WH:qi,XY:$r,applyTransform:Ih,calcZ2Range:pM,clipPointsByRect:H0,clipRectByRect:V0,createIcon:Lh,decomposeTransform:mM,ensureCopyRect:io,ensureCopyTransform:kh,expandOrShrinkRect:iu,extendPath:O0,extendShape:R0,getCurrentCanvasPainter:yM,getShapeClass:k0,getTransform:F0,groupTransition:z0,initProps:un,isBoundingRectAxisAligned:Oh,isElementRemoved:Ga,lineLineIntersect:G0,linePolygonIntersect:vM,makeImage:Ah,makePath:Ku,mergePath:B0,payloadDisableAnimation:gM,registerShape:qt,removeElement:P0,removeElementWithFadeOut:Ps,resizePath:Ph,retrieveZInfo:W0,setTooltipConfig:Eh,subPixelOptimize:fM,subPixelOptimizeLine:no,subPixelOptimizeRect:lM,transformDirection:cM,traverseElements:Rh,traverseUpdateZ:U0,updateProps:zr}),Qu={};function SM(t,e){for(var r=0;r<sn.length;r++){var n=sn[r],i=e[n],a=t.ensureState(n);a.style=a.style||{},a.style.text=i}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function sp(t,e,r){var n=t.labelFetcher,i=t.labelDataIndex,a=t.labelDimIndex,o=e.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=fe(t.defaultText)?t.defaultText(i,t,r):t.defaultText);for(var u={normal:s},l=0;l<sn.length;l++){var f=sn[l],c=e[f];u[f]=ie(n?n.getFormattedLabel(i,f,null,a,c&&c.get("formatter")):null,s)}return u}function bM(t,e,r,n){r=r||Qu;for(var i=t instanceof yt,a=!1,o=0;o<Yd.length;o++){var s=e[Yd[o]];if(s&&s.getShallow("show")){a=!0;break}}var u=i?t:t.getTextContent();if(a){i||(u||(u=new yt,t.setTextContent(u)),t.stateProxy&&(u.stateProxy=t.stateProxy));var l=sp(r,e),f=e.normal,c=!!f.getShallow("show"),h=ln(f,n&&n.normal,r,!1,!i);h.text=l.normal,i||t.setTextConfig(up(f,r,!1));for(var o=0;o<sn.length;o++){var v=sn[o],s=e[v];if(s){var d=u.ensureState(v),g=!!ie(s.getShallow("show"),c);if(g!==c&&(d.ignore=!g),d.style=ln(s,n&&n[v],r,!0,!i),d.style.text=l[v],!i){var p=t.ensureState(v);p.textConfig=up(s,r,!0)}}}u.silent=!!f.getShallow("silent"),u.style.x!=null&&(h.x=u.style.x),u.style.y!=null&&(h.y=u.style.y),u.ignore=!c,u.useStyle(h),u.dirty(),r.enableTextSetter&&(Nh(u).setLabelText=function(m){var y=sp(r,e,m);SM(u,y)})}else u&&(u.ignore=!0);t.dirty()}function wM(t,e){e=e||"label";for(var r={normal:t.getModel(e)},n=0;n<sn.length;n++){var i=sn[n];r[i]=t.getModel([i,e])}return r}function ln(t,e,r,n,i){var a={};return xM(a,t,r,n,i),e&&V(a,e),a}function up(t,e,r){e=e||{};var n={},i,a=t.getShallow("rotate"),o=ie(t.getShallow("distance"),r?null:5),s=t.getShallow("offset");return i=t.getShallow("position")||(r?null:"inside"),i==="outside"&&(i=e.defaultOutsidePosition||"top"),i!=null&&(n.position=i),s!=null&&(n.offset=s),a!=null&&(a*=Math.PI/180,n.rotation=a),o!=null&&(n.distance=o),n.outsideFill=t.get("color")==="inherit"?e.inheritColor||null:"auto",e.autoOverflowArea!=null&&(n.autoOverflowArea=e.autoOverflowArea),e.layoutRect!=null&&(n.layoutRect=e.layoutRect),n}function xM(t,e,r,n,i){r=r||Qu;var a=e.ecModel,o=a&&a.option.textStyle,s=TM(e),u;if(s){u={};var l="richInheritPlainLabel",f=ie(e.get(l),a?a.get(l):void 0);for(var c in s)if(s.hasOwnProperty(c)){var h=e.getModel(["rich",c]);hp(u[c]={},h,o,e,f,r,n,i,!1,!0)}}u&&(t.rich=u);var v=e.get("overflow");v&&(t.overflow=v);var d=e.get("lineOverflow");d&&(t.lineOverflow=d);var g=t,p=e.get("minMargin");if(p!=null)p=Le(p)?p/2:0,g.margin=[p,p,p,p],g.__marginType=Ei.minMargin;else{var m=e.get("textMargin");m!=null&&(g.margin=Lu(m),g.__marginType=Ei.textMargin)}hp(t,e,o,null,null,r,n,i,!0,!1)}function TM(t){for(var e;t&&t!==t.ecModel;){var r=(t.option||Qu).rich;if(r){e=e||{};for(var n=Ae(r),i=0;i<n.length;i++){var a=n[i];e[a]=1}}t=t.parentModel}return e}var lp=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],fp=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],cp=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function hp(t,e,r,n,i,a,o,s,u,l){r=!o&&r||Qu;var f=a&&a.inheritColor,c=e.getShallow("color"),h=e.getShallow("textBorderColor"),v=ie(e.getShallow("opacity"),r.opacity);(c==="inherit"||c==="auto")&&(f?c=f:c=null),(h==="inherit"||h==="auto")&&(f?h=f:h=null),s||(c=c||r.color,h=h||r.textBorderColor),c!=null&&(t.fill=c),h!=null&&(t.stroke=h);var d=ie(e.getShallow("textBorderWidth"),r.textBorderWidth);d!=null&&(t.lineWidth=d);var g=ie(e.getShallow("textBorderType"),r.textBorderType);g!=null&&(t.lineDash=g);var p=ie(e.getShallow("textBorderDashOffset"),r.textBorderDashOffset);p!=null&&(t.lineDashOffset=p),!o&&v==null&&!l&&(v=a&&a.defaultOpacity),v!=null&&(t.opacity=v),!o&&!s&&t.fill==null&&a.inheritColor&&(t.fill=a.inheritColor);for(var m=0;m<lp.length;m++){var y=lp[m],_=i!==!1&&n?Yn(e.getShallow(y),n.getShallow(y),r[y]):ie(e.getShallow(y),r[y]);_!=null&&(t[y]=_)}for(var m=0;m<fp.length;m++){var y=fp[m],_=e.getShallow(y);_!=null&&(t[y]=_)}if(t.verticalAlign==null){var S=e.getShallow("baseline");S!=null&&(t.verticalAlign=S)}if(!u||!a.disableBox){for(var m=0;m<cp.length;m++){var y=cp[m],_=e.getShallow(y);_!=null&&(t[y]=_)}var b=e.getShallow("borderType");b!=null&&(t.borderDash=b),(t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&f&&(t.backgroundColor=f),(t.borderColor==="auto"||t.borderColor==="inherit")&&f&&(t.borderColor=f)}}function CM(t,e){var r=e&&e.getModel("textStyle");return Jt([t.fontStyle||r&&r.getShallow("fontStyle")||"",t.fontWeight||r&&r.getShallow("fontWeight")||"",(t.fontSize||r&&r.getShallow("fontSize")||12)+"px",t.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var Nh=Me();function MM(t,e,r,n){if(t){var i=Nh(t);i.prevValue=i.value,i.value=r;var a=e.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=n,i.statesModels=e)}}var Ei={minMargin:1,textMargin:2},DM=["textStyle","color"],ql=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],jl=new yt,AM=(function(){function t(){}return t.prototype.getTextColor=function(e){var r=this.ecModel;return this.getShallow("color")||(!e&&r?r.get(DM):null)},t.prototype.getFont=function(){return CM({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(e){for(var r={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<ql.length;n++)r[ql[n]]=this.getShallow(ql[n]);return jl.useStyle(r),jl.update(),jl.getBoundingRect()},t})(),X0=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],PM=Za(X0),IM=(function(){function t(){}return t.prototype.getLineStyle=function(e){return PM(this,e)},t})(),q0=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],LM=Za(q0),EM=(function(){function t(){}return t.prototype.getItemStyle=function(e,r){return LM(this,e,r)},t})(),Ie=(function(){function t(e,r,n){this.parentModel=r,this.ecModel=n,this.option=e}return t.prototype.init=function(e,r,n){},t.prototype.mergeOption=function(e,r){ye(this.option,e,!0)},t.prototype.get=function(e,r){return e==null?this.option:this._doGet(this.parsePath(e),!r&&this.parentModel)},t.prototype.getShallow=function(e,r){var n=this.option,i=n==null?n:n[e];if(i==null&&!r){var a=this.parentModel;a&&(i=a.getShallow(e))}return i},t.prototype.getModel=function(e,r){var n=e!=null,i=n?this.parsePath(e):null,a=n?this._doGet(i):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new t(a,r,this.ecModel)},t.prototype.isEmpty=function(){return this.option==null},t.prototype.restoreData=function(){},t.prototype.clone=function(){var e=this.constructor;return new e(he(this.option))},t.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},t.prototype.resolveParentPath=function(e){return e},t.prototype.isAnimationEnabled=function(){if(!le.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(e,r){var n=this.option;if(!e)return n;for(var i=0;i<e.length&&!(e[i]&&(n=n&&typeof n=="object"?n[e[i]]:null,n==null));i++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(e),r.parentModel)),n},t})();hh(Ie);Rw(Ie);Yt(Ie,IM);Yt(Ie,EM);Yt(Ie,Fw);Yt(Ie,AM);function ga(t){return t==null?0:t.length||1}function vp(t){return t}var RM=(function(){function t(e,r,n,i,a,o){this._old=e,this._new=r,this._oldKeyGetter=n||vp,this._newKeyGetter=i||vp,this.context=a,this._diffModeMultiple=o==="multiple"}return t.prototype.add=function(e){return this._add=e,this},t.prototype.update=function(e){return this._update=e,this},t.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},t.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},t.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},t.prototype.remove=function(e){return this._remove=e,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var e=this._old,r=this._new,n={},i=new Array(e.length),a=new Array(r.length);this._initIndexMap(e,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=i[o],u=n[s],l=ga(u);if(l>1){var f=u.shift();u.length===1&&(n[s]=u[0]),this._update&&this._update(f,o)}else l===1?(n[s]=null,this._update&&this._update(u,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},t.prototype._executeMultiple=function(){var e=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(e,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var u=a[s],l=n[u],f=i[u],c=ga(l),h=ga(f);if(c>1&&h===1)this._updateManyToOne&&this._updateManyToOne(f,l),i[u]=null;else if(c===1&&h>1)this._updateOneToMany&&this._updateOneToMany(f,l),i[u]=null;else if(c===1&&h===1)this._update&&this._update(f,l),i[u]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(f,l),i[u]=null;else if(c>1)for(var v=0;v<c;v++)this._remove&&this._remove(l[v]);else this._remove&&this._remove(l)}this._performRestAdd(o,i)},t.prototype._performRestAdd=function(e,r){for(var n=0;n<e.length;n++){var i=e[n],a=r[i],o=ga(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);r[i]=null}},t.prototype._initIndexMap=function(e,r,n,i){for(var a=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[i](e[o],o);if(a||(n[o]=s),!!r){var u=r[s],l=ga(u);l===0?(r[s]=o,a&&n.push(s)):l===1?r[s]=[u,o]:u.push(o)}}},t})(),Xe={Must:1,Might:2,Not:3},j0=Me();function OM(t){j0(t).datasetMap=oe()}function kM(t,e,r){var n={},i=Bh(e);if(!i||!t)return n;var a=[],o=[],s=e.ecModel,u=j0(s).datasetMap,l=i.uid+"_"+r.seriesLayoutBy,f,c;t=t.slice(),M(t,function(g,p){var m=ee(g)?g:t[p]={name:g};m.type==="ordinal"&&f==null&&(f=p,c=d(m)),n[m.name]=[]});var h=u.get(l)||u.set(l,{categoryWayDim:c,valueWayDim:0});M(t,function(g,p){var m=g.name,y=d(g);if(f==null){var _=h.valueWayDim;v(n[m],_,y),v(o,_,y),h.valueWayDim+=y}else if(f===p)v(n[m],0,y),v(a,0,y);else{var _=h.categoryWayDim;v(n[m],_,y),v(o,_,y),h.categoryWayDim+=y}});function v(g,p,m){for(var y=0;y<m;y++)g.push(p+y)}function d(g){var p=g.dimsDef;return p?p.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function nk(t,e,r){var n={},i=Bh(t);if(!i)return n;var a=e.sourceFormat,o=e.dimensionsDefine,s;(a===Xt||a===nr)&&M(o,function(f,c){(ee(f)?f.name:f)==="name"&&(s=c)});var u=(function(){for(var f={},c={},h=[],v=0,d=Math.min(5,r);v<d;v++){var g=Z0(e.data,a,e.seriesLayoutBy,o,e.startIndex,v);h.push(g);var p=g===Xe.Not;if(p&&f.v==null&&v!==s&&(f.v=v),(f.n==null||f.n===f.v||!p&&h[f.n]===Xe.Not)&&(f.n=v),m(f)&&h[f.n]!==Xe.Not)return f;p||(g===Xe.Might&&c.v==null&&v!==s&&(c.v=v),(c.n==null||c.n===c.v)&&(c.n=v))}function m(y){return y.v!=null&&y.n!=null}return m(f)?f:m(c)?c:null})();if(u){n.value=[u.v];var l=s!=null?s:u.n;n.itemName=[l],n.seriesName=[l]}return n}function Bh(t){var e=t.get("data",!0);if(!e)return xo(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},Ft).models[0]}function NM(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:xo(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},Ft).models}function $0(t,e){return Z0(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function Z0(t,e,r,n,i,a){var o,s=5;if(ht(t))return Xe.Not;var u,l;if(n){var f=n[a];ee(f)?(u=f.name,l=f.type):Q(f)&&(u=f)}if(l!=null)return l==="ordinal"?Xe.Must:Xe.Not;if(e===tt){var c=t;if(r===li){for(var h=c[a],v=0;v<(h||[]).length&&v<s;v++)if((o=S(h[i+v]))!=null)return o}else for(var v=0;v<c.length&&v<s;v++){var d=c[i+v];if(d&&(o=S(d[a]))!=null)return o}}else if(e===Xt){var g=t;if(!u)return Xe.Not;for(var v=0;v<g.length&&v<s;v++){var p=g[v];if(p&&(o=S(p[u]))!=null)return o}}else if(e===nr){var m=t;if(!u)return Xe.Not;var h=m[u];if(!h||ht(h))return Xe.Not;for(var v=0;v<h.length&&v<s;v++)if((o=S(h[v]))!=null)return o}else if(e===Ct)for(var y=t,v=0;v<y.length&&v<s;v++){var p=y[v],_=bo(p);if(!Y(_))return Xe.Not;if((o=S(_[a]))!=null)return o}function S(b){var w=Q(b);if(b!=null&&isFinite(Number(b))&&b!=="")return w?Xe.Might:Xe.Not;if(w&&b!=="-")return Xe.Must}return Xe.Not}var Ju=(function(){function t(e){this.data=e.data||(e.sourceFormat===nr?{}:[]),this.sourceFormat=e.sourceFormat||i0,this.seriesLayoutBy=e.seriesLayoutBy||yr,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var r=this.dimensionsDefine=e.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var i=r[n];i.type==null&&$0(this,n)===Xe.Must&&(i.type="ordinal")}}return t})();function Fh(t){return t instanceof Ju}function bc(t,e,r){r=r||Q0(t);var n=e.seriesLayoutBy,i=FM(t,r,n,e.sourceHeader,e.dimensions),a=new Ju({data:t,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:he(e)});return a}function K0(t){return new Ju({data:t,sourceFormat:ht(t)?nn:Ct})}function BM(t){return new Ju({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:he(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function Q0(t){var e=i0;if(ht(t))e=nn;else if(Y(t)){t.length===0&&(e=tt);for(var r=0,n=t.length;r<n;r++){var i=t[r];if(i!=null){if(Y(i)||ht(i)){e=tt;break}else if(ee(i)){e=Xt;break}}}}else if(ee(t)){for(var a in t)if(ut(t,a)&&ct(t[a])){e=nr;break}}return e}function FM(t,e,r,n,i){var a,o;if(!t)return{dimensionsDefine:dp(i),startIndex:o,dimensionsDetectedCount:a};if(e===tt){var s=t;n==="auto"||n==null?pp(function(l){l!=null&&l!=="-"&&(Q(l)?o==null&&(o=1):o=0)},r,s,10):o=Le(n)?n:n?1:0,!i&&o===1&&(i=[],pp(function(l,f){i[f]=l!=null?l+"":""},r,s,1/0)),a=i?i.length:r===li?s.length:s[0]?s[0].length:null}else if(e===Xt)i||(i=zM(t));else if(e===nr)i||(i=[],M(t,function(l,f){i.push(f)}));else if(e===Ct){var u=bo(t[0]);a=Y(u)&&u.length||1}return{startIndex:o,dimensionsDefine:dp(i),dimensionsDetectedCount:a}}function zM(t){for(var e=0,r;e<t.length&&!(r=t[e++]););if(r)return Ae(r)}function dp(t){if(t){var e=oe();return re(t,function(r,n){r=ee(r)?r:{name:r};var i={name:r.name,displayName:r.displayName,type:r.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var a=e.get(i.name);return a?i.name+="-"+a.count++:e.set(i.name,{count:1}),i})}}function pp(t,e,r,n){if(e===li)for(var i=0;i<r.length&&i<n;i++)t(r[i]?r[i][0]:null,i);else for(var a=r[0]||[],i=0;i<a.length&&i<n;i++)t(a[i],i)}function J0(t){var e=t.sourceFormat;return e===Xt||e===nr}var Ln,En,Rn,On,gp,mp,e_=(function(){function t(e,r){var n=Fh(e)?e:K0(e);this._source=n;var i=this._data=n.data,a=n.sourceFormat;n.seriesLayoutBy,a===nn&&(this._offset=0,this._dimSize=r,this._data=i),mp(this,i,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,r){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=(function(){var e=t.prototype;e.pure=!1,e.persistent=!0})(),t.internalField=(function(){var e;mp=function(o,s,u){var l=u.sourceFormat,f=u.seriesLayoutBy,c=u.startIndex,h=u.dimensionsDefine,v=gp[zh(l,f)];if(V(o,v),l===nn)o.getItem=r,o.count=i,o.fillStorage=n;else{var d=t_(l,f);o.getItem=Pe(d,null,s,c,h);var g=r_(l,f);o.count=Pe(g,null,s,c,h)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var u=this._data,l=this._dimSize,f=l*o,c=0;c<l;c++)s[c]=u[f+c];return s},n=function(o,s,u,l){for(var f=this._data,c=this._dimSize,h=0;h<c;h++){for(var v=l[h],d=v[0]==null?1/0:v[0],g=v[1]==null?-1/0:v[1],p=s-o,m=u[h],y=0;y<p;y++){var _=f[y*c+h];m[o+y]=_,_<d&&(d=_),_>g&&(g=_)}v[0]=d,v[1]=g}},i=function(){return this._data?this._data.length/this._dimSize:0};gp=(e={},e[tt+"_"+yr]={pure:!0,appendData:a},e[tt+"_"+li]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Xt]={pure:!0,appendData:a},e[nr]={pure:!0,appendData:function(o){var s=this._data;M(o,function(u,l){for(var f=s[l]||(s[l]=[]),c=0;c<(u||[]).length;c++)f.push(u[c])})}},e[Ct]={appendData:a},e[nn]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),t})(),$o=function(t){Y(t)||Xy("series.data or dataset.source must be an array.")};Ln={},Ln[tt+"_"+yr]=$o,Ln[tt+"_"+li]=$o,Ln[Xt]=$o,Ln[nr]=function(t,e){for(var r=0;r<e.length;r++){var n=e[r].name;n==null&&Xy("dimension name must not be null/undefined.")}},Ln[Ct]=$o;var yp=function(t,e,r,n){return t[n]},HM=(En={},En[tt+"_"+yr]=function(t,e,r,n){return t[n+e]},En[tt+"_"+li]=function(t,e,r,n,i){n+=e;for(var a=i||[],o=t,s=0;s<o.length;s++){var u=o[s];a[s]=u?u[n]:null}return a},En[Xt]=yp,En[nr]=function(t,e,r,n,i){for(var a=i||[],o=0;o<r.length;o++){var s=r[o].name,u=s!=null?t[s]:null;a[o]=u?u[n]:null}return a},En[Ct]=yp,En);function t_(t,e){var r=HM[zh(t,e)];return r}var _p=function(t,e,r){return t.length},VM=(Rn={},Rn[tt+"_"+yr]=function(t,e,r){return Math.max(0,t.length-e)},Rn[tt+"_"+li]=function(t,e,r){var n=t[0];return n?Math.max(0,n.length-e):0},Rn[Xt]=_p,Rn[nr]=function(t,e,r){var n=r[0].name,i=n!=null?t[n]:null;return i?i.length:0},Rn[Ct]=_p,Rn);function r_(t,e){var r=VM[zh(t,e)];return r}var $l=function(t,e,r){return t[e]},GM=(On={},On[tt]=$l,On[Xt]=function(t,e,r){return t[r]},On[nr]=$l,On[Ct]=function(t,e,r){var n=bo(t);return n instanceof Array?n[e]:n},On[nn]=$l,On);function n_(t){var e=GM[t];return e}function zh(t,e){return t===tt?t+"_"+e:t}function ji(t,e,r){if(t){var n=t.getRawDataItem(e);if(n!=null){var i=t.getStore(),a=i.getSource().sourceFormat;if(r!=null){var o=t.getDimensionIndex(r),s=i.getDimensionProperty(o);return n_(a)(n,o,s)}else{var u=n;return a===Ct&&(u=bo(n)),u}}}}var WM=(function(){function t(e,r){this._encode=e,this._schema=r}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t})();function UM(t,e){var r={},n=r.encode={},i=oe(),a=[],o=[],s={};M(t.dimensions,function(h){var v=t.getDimensionInfo(h),d=v.coordDim;if(d){var g=v.coordDimIndex;Zl(n,d)[g]=h,v.isExtraCoord||(i.set(d,1),XM(v.type)&&(a[0]=h),Zl(s,d)[g]=t.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(h)}n0.each(function(p,m){var y=Zl(n,m),_=v.otherDims[m];_!=null&&_!==!1&&(y[_]=v.name)})});var u=[],l={};i.each(function(h,v){var d=n[v];l[v]=d[0],u=u.concat(d)}),r.dataDimsOnCoord=u,r.dataDimIndicesOnCoord=re(u,function(h){return t.getDimensionInfo(h).storeDimIndex}),r.encodeFirstDimNotExtra=l;var f=n.label;f&&f.length&&(a=f.slice());var c=n.tooltip;return c&&c.length?o=c.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,r.userOutput=new WM(s,e),r}function Zl(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function YM(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function XM(t){return!(t==="ordinal"||t==="time")}var Is=(function(){function t(e){this.otherDims={},e!=null&&V(this,e)}return t})();function Ls(t,e){var r=e&&e.type;return r==="ordinal"?t:(r==="time"&&!Le(t)&&t!=null&&t!=="-"&&(t=+Hr(t)),t==null||t===""?NaN:Number(t))}oe({number:function(t){return parseFloat(t)},time:function(t){return+Hr(t)},trim:function(t){return Q(t)?Jt(t):t}});var qM=(function(){function t(e,r){var n=e==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return t.prototype.evaluate=function(e,r){var n=Le(e)?e:to(e),i=Le(r)?r:to(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=Q(e),u=Q(r);s&&(n=u?e:0),u&&(i=s?r:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},t})();function i_(t){var e="",r=-1/0,n=-1/0,i=1/0,a=1/0;return t&&(t.g!=null&&(e+="G"+t.g,r=t.g),t.ge!=null&&(e+="GE"+t.ge,n=t.ge),t.l!=null&&(e+="L"+t.l,i=t.l),t.le!=null&&(e+="LE"+t.le,a=t.le)),{key:e,g:r,ge:n,l:i,le:a}}function a_(t,e){return e>t.g&&e>=t.ge&&e<t.l&&e<=t.le}var jM=typeof Uint32Array===ea?Array:Uint32Array,$M=typeof Uint16Array===ea?Array:Uint16Array,o_=typeof Int32Array===ea?Array:Int32Array,Sp=typeof Float64Array===ea?Array:Float64Array,s_={float:Sp,int:o_,ordinal:Array,number:Array,time:Sp},Kl;function _i(t){return t>65535?jM:$M}function ZM(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function bp(t,e,r,n,i){var a=s_[r||"float"];if(i){var o=t[e],s=o&&o.length;if(s!==n){for(var u=new a(n),l=0;l<s;l++)u[l]=o[l];t[e]=u}}else t[e]=new a(n)}var wc=(function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=oe()}return t.prototype.initData=function(e,r,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=e.getSource(),a=this.defaultDimValueGetter=Kl[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[],J0(i),this._dimensions=re(r,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,e.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(e,r){var n=this._calcDimNameToIdx,i=this._dimensions,a=n.get(e);if(a!=null){if(i[a].type===r)return a}else a=i.length;return i[a]={type:r},n.set(e,a),this._chunks[a]=new s_[r||"float"](this._rawCount),this._rawExtent[a]=hr(),a},t.prototype.collectOrdinalMeta=function(e,r){var n=this._chunks[e],i=this._dimensions[e],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;o===0&&(a[e]=hr());for(var u=a[e],l=o;l<s;l++){var f=n[l]=r.parseAndCollect(n[l]);isNaN(f)||(u[0]=Math.min(f,u[0]),u[1]=Math.max(f,u[1]))}i.ordinalMeta=r,i.ordinalOffset=s,i.type="ordinal"},t.prototype.getOrdinalMeta=function(e){var r=this._dimensions[e],n=r.ordinalMeta;return n},t.prototype.getDimensionProperty=function(e){var r=this._dimensions[e];return r&&r.property},t.prototype.appendData=function(e){var r=this._provider,n=this.count();r.appendData(e);var i=r.count();return r.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},t.prototype.appendValues=function(e,r){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),u=s+Math.max(e.length,r||0),l=0;l<a;l++){var f=i[l];bp(n,l,f.type,u,!0)}for(var c=[],h=s;h<u;h++)for(var v=h-s,d=0;d<a;d++){var f=i[d],g=Kl.arrayRows.call(this,e[v]||c,f.property,v,d);n[d][h]=g;var p=o[d];g<p[0]&&(p[0]=g),g>p[1]&&(p[1]=g)}return this._rawCount=this._count=u,{start:s,end:u}},t.prototype._initDataFromProvider=function(e,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,u=this._rawExtent,l=re(o,function(y){return y.property}),f=0;f<s;f++){var c=o[f];u[f]||(u[f]=hr()),bp(a,f,c.type,r,n)}if(i.fillStorage)i.fillStorage(e,r,a,u);else for(var h=[],v=e;v<r;v++){h=i.getItem(v,h);for(var d=0;d<s;d++){var g=a[d],p=this._dimValueGetter(h,l[d],v,d);g[v]=p;var m=u[d];p<m[0]&&(m[0]=p),p>m[1]&&(m[1]=p)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(r)]:NaN},t.prototype.getValues=function(e,r){var n=[],i=[];if(r==null){r=e,e=[];for(var a=0;a<this._dimensions.length;a++)i.push(a)}else i=e;for(var a=0,o=i.length;a<o;a++)n.push(this.get(i[a],r));return n},t.prototype.getByRawIndex=function(e,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[e];return n?n[r]:NaN},t.prototype.getSum=function(e){var r=this._chunks[e],n=0;if(r)for(var i=0,a=this.count();i<a;i++){var o=this.get(e,i);isNaN(o)||(n+=o)}return n},t.prototype.getMedian=function(e){var r=[];this.each([e],function(i){isNaN(i)||r.push(i)}),Hu(r);var n=this.count();return n===0?0:n%2===1?r[(n-1)/2]:(r[n/2]+r[n/2-1])/2},t.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var r=this._indices,n=r[e];if(n!=null&&n<this._count&&n===e)return e;for(var i=0,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(r[o]<e)i=o+1;else if(r[o]>e)a=o-1;else return o}return-1},t.prototype.getIndices=function(){var e,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){e=new n(i);for(var a=0;a<i;a++)e[a]=r[a]}else e=new n(r.buffer,0,i)}else{var n=_i(this._rawCount);e=new n(this.count());for(var a=0;a<e.length;a++)e[a]=a}return e},t.prototype.filter=function(e,r){if(!this._count)return this;for(var n=this.clone(),i=n.count(),a=_i(n._rawCount),o=new a(i),s=[],u=e.length,l=0,f=e[0],c=n._chunks,h=0;h<i;h++){var v=void 0,d=n.getRawIndex(h);if(u===0)v=r(h);else if(u===1){var g=c[f][d];v=r(g,h)}else{for(var p=0;p<u;p++)s[p]=c[e[p]][d];s[p]=h,v=r.apply(null,s)}v&&(o[l++]=d)}return l<i&&(n._indices=o),n._count=l,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(e){var r=this.clone(),n=r._count;if(!n)return this;var i=Ae(e),a=i.length;if(!a)return this;var o=r.count(),s=_i(r._rawCount),u=new s(o),l=0,f=i[0],c=e[f][0],h=e[f][1],v=r._chunks,d=!1;if(!r._indices){var g=0;if(a===1){for(var p=v[i[0]],m=0;m<n;m++){var y=p[m];(y>=c&&y<=h||isNaN(y))&&(u[l++]=g),g++}d=!0}else if(a===2){for(var p=v[i[0]],_=v[i[1]],S=e[i[1]][0],b=e[i[1]][1],m=0;m<n;m++){var y=p[m],w=_[m];(y>=c&&y<=h||isNaN(y))&&(w>=S&&w<=b||isNaN(w))&&(u[l++]=g),g++}d=!0}}if(!d)if(a===1)for(var m=0;m<o;m++){var x=r.getRawIndex(m),y=v[i[0]][x];(y>=c&&y<=h||isNaN(y))&&(u[l++]=x)}else for(var m=0;m<o;m++){for(var C=!0,x=r.getRawIndex(m),D=0;D<a;D++){var A=i[D],y=v[A][x];(y<e[A][0]||y>e[A][1])&&(C=!1)}C&&(u[l++]=r.getRawIndex(m))}return l<o&&(r._indices=u),r._count=l,r._extent=[],r._updateGetRawIdx(),r},t.prototype.map=function(e,r){var n=this.clone(e);return this._updateDims(n,e,r),n},t.prototype.modify=function(e,r){this._updateDims(this,e,r)},t.prototype._updateDims=function(e,r,n){for(var i=e._chunks,a=[],o=r.length,s=e.count(),u=[],l=e._rawExtent,f=0;f<r.length;f++)l[r[f]]=hr();for(var c=0;c<s;c++){for(var h=e.getRawIndex(c),v=0;v<o;v++)u[v]=i[r[v]][h];u[o]=c;var d=n&&n.apply(null,u);if(d!=null){typeof d!="object"&&(a[0]=d,d=a);for(var f=0;f<d.length;f++){var g=r[f],p=d[f],m=l[g],y=i[g];y&&(y[h]=p),p<m[0]&&(m[0]=p),p>m[1]&&(m[1]=p)}}}},t.prototype.lttbDownSample=function(e,r){var n=this.clone([e],!0),i=n._chunks,a=i[e],o=this.count(),s=0,u=Math.floor(1/r),l=this.getRawIndex(0),f,c,h,v=new(_i(this._rawCount))(Math.min((Math.ceil(o/u)+2)*2,o));v[s++]=l;for(var d=1;d<o-1;d+=u){for(var g=Math.min(d+u,o-1),p=Math.min(d+u*2,o),m=(p+g)/2,y=0,_=g;_<p;_++){var S=this.getRawIndex(_),b=a[S];isNaN(b)||(y+=b)}y/=p-g;var w=d,x=Math.min(d+u,o),C=d-1,D=a[l];f=-1,h=w;for(var A=-1,T=0,_=w;_<x;_++){var S=this.getRawIndex(_),b=a[S];if(isNaN(b)){T++,A<0&&(A=S);continue}c=Math.abs((C-m)*(b-D)-(C-_)*(y-D)),c>f&&(f=c,h=S)}T>0&&T<x-w&&(v[s++]=Math.min(A,h),h=Math.max(A,h)),v[s++]=h,l=h}return v[s++]=this.getRawIndex(o-1),n._count=s,n._indices=v,n.getRawIndex=this._getRawIdx,n},t.prototype.minmaxDownSample=function(e,r){for(var n=this.clone([e],!0),i=n._chunks,a=Math.floor(1/r),o=i[e],s=this.count(),u=new(_i(this._rawCount))(Math.ceil(s/a)*2),l=0,f=0;f<s;f+=a){var c=f,h=o[this.getRawIndex(c)],v=f,d=o[this.getRawIndex(v)],g=a;f+a>s&&(g=s-f);for(var p=0;p<g;p++){var m=this.getRawIndex(f+p),y=o[m];y<h&&(h=y,c=f+p),y>d&&(d=y,v=f+p)}var _=this.getRawIndex(c),S=this.getRawIndex(v);c<v?(u[l++]=_,u[l++]=S):(u[l++]=S,u[l++]=_)}return n._count=l,n._indices=u,n._updateGetRawIdx(),n},t.prototype.downSample=function(e,r,n,i){for(var a=this.clone([e],!0),o=a._chunks,s=[],u=Math.floor(1/r),l=o[e],f=this.count(),c=a._rawExtent[e]=hr(),h=new(_i(this._rawCount))(Math.ceil(f/u)),v=0,d=0;d<f;d+=u){u>f-d&&(u=f-d,s.length=u);for(var g=0;g<u;g++){var p=this.getRawIndex(d+g);s[g]=l[p]}var m=n(s),y=this.getRawIndex(Math.min(d+i(s,m)||0,f-1));l[y]=m,m<c[0]&&(c[0]=m),m>c[1]&&(c[1]=m),h[v++]=y}return a._count=v,a._indices=h,a._updateGetRawIdx(),a},t.prototype.each=function(e,r){if(this._count)for(var n=e.length,i=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(n){case 0:r(a);break;case 1:r(i[e[0]][s],a);break;case 2:r(i[e[0]][s],i[e[1]][s],a);break;default:for(var u=0,l=[];u<n;u++)l[u]=i[e[u]][s];l[u]=a,r.apply(null,l)}}},t.prototype.getDataExtent=function(e,r){var n=this._chunks[e],i=hr();if(!n)return i;var a=this.count(),o=!this._indices&&!r;if(o)return this._rawExtent[e].slice();var s=this._extent,u=s[e]||(s[e]={}),l=i_(r),f=l.key,c=u[f];if(c)return c.slice();for(var h=i[0],v=i[1],d=0;d<a;d++){var g=this.getRawIndex(d),p=n[g];(!r||a_(l,p))&&(p<h&&(h=p),p>v&&(v=p))}return u[f]=[h,v]},t.prototype.getRawDataItem=function(e){var r=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a<i.length;a++)n.push(i[a][r]);return n},t.prototype.clone=function(e,r){var n=new t,i=this._chunks,a=e&&_r(e,function(s,u){return s[u]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?ZM(i[o]):i[o];else n._chunks=i;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},t.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=he(this._extent),e._rawExtent=he(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,r=void 0;if(e===Array){var n=this._indices.length;r=new e(n);for(var i=0;i<n;i++)r[i]=this._indices[i]}else r=new e(this._indices);return r}return null},t.prototype._getRawIdxIdentity=function(e){return e},t.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=(function(){function e(r,n,i,a){return Ls(r[a],this._dimensions[a])}Kl={arrayRows:e,objectRows:function(r,n,i,a){return Ls(r[n],this._dimensions[a])},keyedColumns:e,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return Ls(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}})(),t})(),KM=Me(),QM={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},u_=(function(){function t(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=f_(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return ie(this._dimNameMap.get(e),-1)},t.prototype.getSourceDimension=function(e){var r=this.source.dimensionsDefine;if(r)return r[e]},t.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,r=J0(this.source),n=!c_(e),i="",a=[],o=0,s=0;o<e;o++){var u=void 0,l=void 0,f=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)u=r?c.name:null,l=c.type,f=c.ordinalMeta,s++;else{var h=this.getSourceDimension(o);h&&(u=r?h.name:null,l=h.type)}a.push({property:u,type:l,ordinalMeta:f}),r&&u!=null&&(!c||!c.isCalculationCoord)&&(i+=n?u.replace(/\`/g,"`1").replace(/\$/g,"`2"):u),i+="$",i+=QM[l]||"f",f&&(i+=f.uid),i+="$"}var v=this.source,d=[v.seriesLayoutBy,v.startIndex,i].join("$$");return{dimensions:a,hash:d}},t.prototype.makeOutputDimensionNames=function(){for(var e=[],r=0,n=0;r<this._fullDimCount;r++){var i=void 0,a=this.dimensions[n];if(a&&a.storeDimIndex===r)a.isCalculationCoord||(i=a.name),n++;else{var o=this.getSourceDimension(r);o&&(i=o.name)}e.push(i)}return e},t.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t})();function l_(t){return t instanceof u_}function Hh(t){for(var e=oe(),r=0;r<(t||[]).length;r++){var n=t[r],i=ee(n)?n.name:n;i!=null&&e.get(i)==null&&e.set(i,r)}return e}function f_(t){var e=KM(t);return e.dimNameMap||(e.dimNameMap=Hh(t.dimensionsDefine))}function c_(t){return t>30}var ma=ee,Yr=re,JM=typeof Int32Array=="undefined"?Array:Int32Array,eD="e\0\0",wp=-1,tD=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],rD=["_approximateExtent"],xp,Zo,ya,_a,Ql,Sa,Jl,h_=(function(){function t(e,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,i=!1;l_(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,n=e),n=n||["x","y"];for(var a={},o=[],s={},u=!1,l={},f=0;f<n.length;f++){var c=n[f],h=Q(c)?new Is({name:c}):c instanceof Is?c:new Is(c),v=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=v,h.coordDimIndex=0);var d=h.otherDims=h.otherDims||{};o.push(v),a[v]=h,l[v]!=null&&(u=!0),h.createInvertedIndices&&(s[v]=[]),i&&(h.storeDimIndex=f),d.itemName===0&&(this._nameDimIdx=h.storeDimIndex),d.itemId===0&&(this._idDimIdx=h.storeDimIndex)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(u),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var g=this._dimIdxToName=oe();M(o,function(p){g.set(a[p].storeDimIndex,p)})}}return t.prototype.getDimension=function(e){var r=this._recognizeDimIndex(e);if(r==null)return e;if(r=e,!this._dimOmitted)return this.dimensions[r];var n=this._dimIdxToName.get(r);if(n!=null)return n;var i=this._schema.getSourceDimension(r);if(i)return i.name},t.prototype.getDimensionIndex=function(e){var r=this._recognizeDimIndex(e);if(r!=null)return r;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},t.prototype._recognizeDimIndex=function(e){if(Le(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},t.prototype._getStoreDimIndex=function(e){var r=this.getDimensionIndex(e);return r},t.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},t.prototype._initGetDimensionInfo=function(e){var r=this._dimInfos;this._getDimInfo=e?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(e,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[e];var i=n.encode[e];return i?i[r]:null},t.prototype.mapDimensionsAll=function(e){var r=this._dimSummary,n=r.encode[e];return(n||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(e,r,n){var i=this,a;if(e instanceof wc&&(a=e),!a){var o=this.dimensions,s=Fh(e)||ct(e)?new e_(e,o.length):e;a=new wc;var u=Yr(o,function(l){return{type:i._dimInfos[l].type,property:l}});a.initData(s,u,n)}this._store=a,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=UM(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(e){var r=this._store.appendData(e);this._doInit(r[0],r[1])},t.prototype.appendValues=function(e,r){var n=this._store.appendValues(e,r&&r.length),i=n.start,a=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=i;s<a;s++){var u=s-i;this._nameList[s]=r[u],o&&Jl(this,s)}},t.prototype._updateOrdinalMeta=function(){for(var e=this._store,r=this.dimensions,n=0;n<r.length;n++){var i=this._dimInfos[r[n]];i.ordinalMeta&&e.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==nn&&!e.fillStorage},t.prototype._doInit=function(e,r){if(!(e>=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,u=s===Ct;if(u&&!i.pure)for(var l=[],f=e;f<r;f++){var c=i.getItem(f,l);if(!this.hasItemOption&&BT(c)&&(this.hasItemOption=!0),c){var h=c.name;a[f]==null&&h!=null&&(a[f]=mr(h,null));var v=c.id;o[f]==null&&v!=null&&(o[f]=mr(v,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<r;f++)Jl(this,f);xp(this)}},t.prototype.getApproximateExtent=function(e,r){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e),r)},t.prototype.setApproximateExtent=function(e,r){r=this.getDimension(r),this._approximateExtent[r]=e.slice()},t.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},t.prototype.setCalculationInfo=function(e,r){ma(e)?V(this._calculationInfo,e):this._calculationInfo[e]=r},t.prototype.getName=function(e){var r=this.getRawIndex(e),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=ya(this,this._nameDimIdx,r)),n==null&&(n=""),n},t.prototype._getCategory=function(e,r){var n=this._store.get(e,r),i=this._store.getOrdinalMeta(e);return i?i.categories[n]:n},t.prototype.getId=function(e){return Zo(this,this.getRawIndex(e))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(e,r){var n=this._store,i=this._dimInfos[e];if(i)return n.get(i.storeDimIndex,r)},t.prototype.getByRawIndex=function(e,r){var n=this._store,i=this._dimInfos[e];if(i)return n.getByRawIndex(i.storeDimIndex,r)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e),null)},t.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},t.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},t.prototype.getValues=function(e,r){var n=this,i=this._store;return Y(e)?i.getValues(Yr(e,function(a){return n._getStoreDimIndex(a)}),r):i.getValues(e)},t.prototype.hasValue=function(e){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,i=r.length;n<i;n++)if(isNaN(this._store.get(r[n],e)))return!1;return!0},t.prototype.indexOfName=function(e){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===e)return r;return-1},t.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},t.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},t.prototype.rawIndexOf=function(e,r){var n=e&&this._invertedIndicesMap[e],i=n&&n[r];return i==null||isNaN(i)?wp:i},t.prototype.each=function(e,r,n){fe(e)&&(n=r,r=e,e=[]);var i=n||this,a=Yr(_a(e),this._getStoreDimIndex,this);this._store.each(a,i?Pe(r,i):r)},t.prototype.filterSelf=function(e,r,n){fe(e)&&(n=r,r=e,e=[]);var i=n||this,a=Yr(_a(e),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?Pe(r,i):r),this},t.prototype.selectRange=function(e){var r=this,n={},i=Ae(e);return M(i,function(a){var o=r._getStoreDimIndex(a);n[o]=e[a]}),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(e,r,n){fe(e)&&(n=r,r=e,e=[]),n=n||this;var i=[];return this.each(e,function(){i.push(r&&r.apply(this,arguments))},n),i},t.prototype.map=function(e,r,n,i){var a=n||i||this,o=Yr(_a(e),this._getStoreDimIndex,this),s=Sa(this);return s._store=this._store.map(o,a?Pe(r,a):r),s},t.prototype.modify=function(e,r,n,i){var a=n||i||this,o=Yr(_a(e),this._getStoreDimIndex,this);this._store.modify(o,a?Pe(r,a):r)},t.prototype.downSample=function(e,r,n,i){var a=Sa(this);return a._store=this._store.downSample(this._getStoreDimIndex(e),r,n,i),a},t.prototype.minmaxDownSample=function(e,r){var n=Sa(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),r),n},t.prototype.lttbDownSample=function(e,r){var n=Sa(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),r),n},t.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},t.prototype.getItemModel=function(e){var r=this.hostModel,n=this.getRawDataItem(e);return new Ie(n,r,r&&r.ecModel)},t.prototype.diff=function(e){var r=this;return new RM(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(n){return Zo(e,n)},function(n){return Zo(r,n)})},t.prototype.getVisual=function(e){var r=this._visual;return r&&r[e]},t.prototype.setVisual=function(e,r){this._visual=this._visual||{},ma(e)?V(this._visual,e):this._visual[e]=r},t.prototype.getItemVisual=function(e,r){var n=this._itemVisuals[e],i=n&&n[r];return i==null?this.getVisual(r):i},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(e,r){var n=this._itemVisuals,i=n[e];i||(i=n[e]={});var a=i[r];return a==null&&(a=this.getVisual(r),Y(a)?a=a.slice():ma(a)&&(a=V({},a)),i[r]=a),a},t.prototype.setItemVisual=function(e,r,n){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,ma(r)?V(i,r):i[r]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){ma(e)?V(this._layout,e):this._layout[e]=r},t.prototype.getLayout=function(e){return this._layout[e]},t.prototype.getItemLayout=function(e){return this._itemLayouts[e]},t.prototype.setItemLayout=function(e,r,n){this._itemLayouts[e]=n?V(this._itemLayouts[e]||{},r):r},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,r){var n=this.hostModel&&this.hostModel.seriesIndex;aC(n,this.dataType,e,r),this._graphicEls[e]=r},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,r){M(this._graphicEls,function(n,i){n&&e&&e.call(r,n,i)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:Yr(this.dimensions,this._getDimInfo,this),this.hostModel)),Ql(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,r){var n=this[e];fe(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(Iu(arguments)))})},t.internalField=(function(){xp=function(e){var r=e._invertedIndicesMap;M(r,function(n,i){var a=e._dimInfos[i],o=a.ordinalMeta,s=e._store;if(o){n=r[i]=new JM(o.categories.length);for(var u=0;u<n.length;u++)n[u]=wp;for(var u=0;u<s.count();u++)n[s.get(a.storeDimIndex,u)]=u}})},ya=function(e,r,n){return mr(e._getCategory(r,n),null)},Zo=function(e,r){var n=e._idList[r];return n==null&&e._idDimIdx!=null&&(n=ya(e,e._idDimIdx,r)),n==null&&(n=eD+r),n},_a=function(e){return Y(e)||(e=e!=null?[e]:[]),e},Sa=function(e){var r=new t(e._schema?e._schema:Yr(e.dimensions,e._getDimInfo,e),e.hostModel);return Ql(r,e),r},Ql=function(e,r){M(tD.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(e[n]=r[n])}),e.__wrappedMethods=r.__wrappedMethods,M(rD,function(n){e[n]=he(r[n])}),e._calculationInfo=V({},r._calculationInfo)},Jl=function(e,r){var n=e._nameList,i=e._idList,a=e._nameDimIdx,o=e._idDimIdx,s=n[r],u=i[r];if(s==null&&a!=null&&(n[r]=s=ya(e,a,r)),u==null&&o!=null&&(i[r]=u=ya(e,o,r)),u==null&&s!=null){var l=e._nameRepeatCount,f=l[s]=(l[s]||0)+1;u=s,f>1&&(u+="__ec__"+f),i[r]=u}}})(),t})();function nD(t,e){return v_(t,e).dimensions}function v_(t,e){Fh(t)||(t=K0(t)),e=e||{};var r=e.coordDimensions||[],n=e.dimensionsDefine||t.dimensionsDefine||[],i=oe(),a=[],o=iD(t,r,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&c_(o),u=n===t.dimensionsDefine,l=u?f_(t):Hh(n),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(t,o));for(var c=oe(f),h=new o_(o),v=0;v<h.length;v++)h[v]=-1;function d(D){var A=h[D];if(A<0){var T=n[D],k=ee(T)?T:{name:T},P=new Is,O=k.name;O!=null&&l.get(O)!=null&&(P.name=P.displayName=O),k.type!=null&&(P.type=k.type),k.displayName!=null&&(P.displayName=k.displayName);var B=a.length;return h[D]=B,P.storeDimIndex=D,a.push(P),P}return a[A]}if(!s)for(var v=0;v<o;v++)d(v);c.each(function(D,A){var T=ft(D).slice();if(T.length===1&&!Q(T[0])&&T[0]<0){c.set(A,!1);return}var k=c.set(A,[]);M(T,function(P,O){var B=Q(P)?l.get(P):P;B!=null&&B<o&&(k[O]=B,p(d(B),A,O))})});var g=0;M(r,function(D){var A,T,k,P;if(Q(D))A=D,P={};else{P=D,A=P.name;var O=P.ordinalMeta;P.ordinalMeta=null,P=V({},P),P.ordinalMeta=O,T=P.dimsDef,k=P.otherDims,P.name=P.coordDim=P.coordDimIndex=P.dimsDef=P.otherDims=null}var B=c.get(A);if(B!==!1){if(B=ft(B),!B.length)for(var F=0;F<(T&&T.length||1);F++){for(;g<o&&d(g).coordDim!=null;)g++;g<o&&B.push(g++)}M(B,function($,W){var z=d($);if(u&&P.type!=null&&(z.type=P.type),p(Te(z,P),A,W),z.name==null&&T){var q=T[W];!ee(q)&&(q={name:q}),z.name=z.displayName=q.name,z.defaultTooltip=q.defaultTooltip}k&&Te(z.otherDims,k)})}});function p(D,A,T){n0.get(A)!=null?D.otherDims[A]=T:(D.coordDim=A,D.coordDimIndex=T,i.set(A,!0))}var m=e.generateCoord,y=e.generateCoordCount,_=y!=null;y=m?y||1:0;var S=m||"value";function b(D){D.name==null&&(D.name=D.coordDim)}if(s)M(a,function(D){b(D)}),a.sort(function(D,A){return D.storeDimIndex-A.storeDimIndex});else for(var w=0;w<o;w++){var x=d(w),C=x.coordDim;C==null&&(x.coordDim=aD(S,i,_),x.coordDimIndex=0,(!m||y<=0)&&(x.isExtraCoord=!0),y--),b(x),x.type==null&&($0(t,w)===Xe.Must||x.isExtraCoord&&(x.otherDims.itemName!=null||x.otherDims.seriesName!=null))&&(x.type="ordinal")}return bh(a,function(D){return D.name},function(D,A){A>0&&(D.name=D.name+(A-1))}),new u_({source:t,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function iD(t,e,r,n){var i=Math.max(t.dimensionsDetectedCount||1,e.length,r.length,n||0);return M(e,function(a){var o;ee(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function aD(t,e,r){if(r||e.hasKey(t)){for(var n=0;e.hasKey(t+n);)n++;t+=n}return e.set(t,!0),t}var Es={},ef={},el=(function(){function t(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return t.prototype.create=function(e,r){this._nonSeriesBoxMasterList=n(Es),this._normalMasterList=n(ef);function n(i,a){var o=[];return M(i,function(s,u){var l=s.create(e,r);o=o.concat(l||[])}),o}},t.prototype.update=function(e,r){M(this._normalMasterList,function(n){n.update&&n.update(e,r)})},t.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},t.register=function(e,r){if(e==="matrix"||e==="calendar"){Es[e]=r;return}ef[e]=r},t.get=function(e){return ef[e]||Es[e]},t})();function oD(t){return!!Es[t]}var sD=1,d_=2;function ik(t){p_.set(t.fullType,{getCoord2:void 0}).getCoord2=t.getCoord2}var p_=oe();function g_(t){var e=t.getShallow("coord",!0),r=sD;if(e==null){var n=p_.get(t.type);n&&n.getCoord2&&(r=d_,e=n.getCoord2(t))}return{coord:e,from:r}}var Ni=0,Rs=1,uD=2;function lD(t,e){var r=t.getShallow("coordinateSystem"),n=t.getShallow("coordinateSystemUsage",!0),i=Ni;if(r){var a=t.mainType==="series";n==null&&(n=a?"data":"box"),n==="data"?(i=Rs,a||(i=Ni)):n==="box"&&(i=uD,!a&&!oD(r)&&(i=Ni))}return{coordSysType:r,kind:i}}function fD(t){var e=t.targetModel,r=t.coordSysType,n=t.coordSysProvider,i=t.isDefaultDataCoordSys,a=lD(e),o=a.kind,s=a.coordSysType;if(i&&o!==Rs&&(o=Rs,s=r),o===Ni||s!==r)return Ni;var u=n(r,e);return u?(o===Rs?e.coordinateSystem=u:e.boxCoordinateSystem=u,o):Ni}var cD=(function(){function t(e){this.coordSysDims=[],this.axisMap=oe(),this.categoryAxisMap=oe(),this.coordSysName=e}return t})();function hD(t){var e=t.get("coordinateSystem"),r=new cD(e),n=vD[e];if(n)return n(t,r,r.axisMap,r.categoryAxisMap),r}var vD={cartesian2d:function(t,e,r,n){var i=t.getReferringComponents("xAxis",Ft).models[0],a=t.getReferringComponents("yAxis",Ft).models[0];e.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),Si(i)&&(n.set("x",i),e.firstCategoryDimIndex=0),Si(a)&&(n.set("y",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,r,n){var i=t.getReferringComponents("singleAxis",Ft).models[0];e.coordSysDims=["single"],r.set("single",i),Si(i)&&(n.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,r,n){var i=t.getReferringComponents("polar",Ft).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),Si(a)&&(n.set("radius",a),e.firstCategoryDimIndex=0),Si(o)&&(n.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(t,e,r,n){e.coordSysDims=["lng","lat"]},parallel:function(t,e,r,n){var i=t.ecModel,a=i.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=a.dimensions.slice();M(a.parallelAxisIndex,function(s,u){var l=i.getComponent("parallelAxis",s),f=o[u];r.set(f,l),Si(l)&&(n.set(f,l),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=u))})},matrix:function(t,e,r,n){var i=t.getReferringComponents("matrix",Ft).models[0];e.coordSysDims=["x","y"];var a=i.getDimensionModel("x"),o=i.getDimensionModel("y");r.set("x",a),r.set("y",o),n.set("x",a),n.set("y",o)}};function Si(t){return t.get("type")==="category"}function m_(t,e,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;dD(e)?a=e:(o=e.schema,a=o.dimensions,s=e.store);var u=!!(t&&t.get("stack")),l,f,c,h,v=!0;function d(S){return S.type!=="ordinal"&&S.type!=="time"}if(M(a,function(S,b){Q(S)&&(a[b]=S={name:S}),d(S)||(v=!1)}),M(a,function(S,b){u&&!S.isExtraCoord&&(!n&&!l&&S.ordinalMeta&&(l=S),!f&&d(S)&&(!v||S.coordDim!=="x"&&S.coordDim!=="angle")&&(!i||i===S.coordDim)&&(f=S))}),f&&!n&&!l&&(n=!0),f){c="__\0ecstackresult_"+t.id,h="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var g=f.coordDim,p=f.type,m=0;M(a,function(S){S.coordDim===g&&m++});var y={name:c,coordDim:g,coordDimIndex:m,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},_={name:h,coordDim:h,coordDimIndex:m+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(y.storeDimIndex=s.ensureCalculationDimension(h,p),_.storeDimIndex=s.ensureCalculationDimension(c,p)),o.appendCalculationDimension(y),o.appendCalculationDimension(_)):(a.push(y),a.push(_))}return{stackedDimension:f&&f.name,stackedByDimension:l&&l.name,isStackedByIndex:n,stackedOverDimension:h,stackResultDimension:c}}function dD(t){return!l_(t.schema)}function Vh(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function y_(t,e){return Vh(t,e)?t.getCalculationInfo("stackResultDimension"):e}function pD(t,e){var r=t.get("coordinateSystem"),n=el.get(r),i;return e&&e.coordSysDims&&(i=re(e.coordSysDims,function(a){var o={name:a},s=e.axisMap.get(a);if(s){var u=s.get("type");o.type=YM(u)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function gD(t,e,r){var n,i;return r&&M(t,function(a,o){var s=a.coordDim,u=r.categoryAxisMap.get(s);u&&(n==null&&(n=o),a.ordinalMeta=u.getOrdinalMeta(),e&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(t[n].otherDims.itemName=0),n}function Gh(t,e,r){r=r||{};var n=e.getSourceManager(),i,a=!1;i=n.getSource(),a=i.sourceFormat===Ct;var o=hD(e),s=pD(e,o),u=r.useEncodeDefaulter,l=fe(u)?u:u?st(kM,s,e):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},c=v_(i,f),h=gD(c.dimensions,r.createInvertedIndices,o),v=a?null:n.getSharedDataStore(c),d=m_(e,{schema:c,store:v}),g=new h_(c,e);g.setCalculationInfo(d);var p=h!=null&&mD(i)?function(m,y,_,S){return S===h?_:this.defaultDimValueGetter(m,y,_,S)}:null;return g.hasItemOption=!1,g.initData(a?i:v,null,p),g}function mD(t){if(t.sourceFormat===Ct){var e=yD(t.data||[]);return!Y(bo(e))}}function yD(t){for(var e=0;e<t.length&&t[e]==null;)e++;return t[e]}var _D=Math.round(Math.random()*10);function tl(t){return[t||"",_D++].join("_")}function SD(t){var e={};t.registerSubTypeDefaulter=function(r,n){var i=dr(r);e[i.main]=n},t.determineSubType=function(r,n){var i=n.type;if(!i){var a=dr(r).main;t.hasSubTypes(r)&&e[a]&&(i=e[a](n))}return i}}function bD(t,e){t.topologicalTravel=function(a,o,s,u){if(!a.length)return;var l=r(o),f=l.graph,c=l.noEntryList,h={};for(M(a,function(y){h[y]=!0});c.length;){var v=c.pop(),d=f[v],g=!!h[v];g&&(s.call(u,v,d.originalDeps.slice()),delete h[v]),M(d.successor,g?m:p)}M(h,function(){var y="";throw new Error(y)});function p(y){f[y].entryCount--,f[y].entryCount===0&&c.push(y)}function m(y){h[y]=!0,p(y)}};function r(a){var o={},s=[];return M(a,function(u){var l=n(o,u),f=l.originalDeps=e(u),c=i(f,a);l.entryCount=c.length,l.entryCount===0&&s.push(u),M(c,function(h){me(l.predecessor,h)<0&&l.predecessor.push(h);var v=n(o,h);me(v.successor,h)<0&&v.successor.push(u)})}),{graph:o,noEntryList:s}}function n(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function i(a,o){var s=[];return M(a,function(u){me(o,u)>=0&&s.push(u)}),s}}function wD(t,e){return ye(ye({},t,!0),e,!0)}var xD=Math.log(2);function xc(t,e,r,n,i,a){var o=n+"-"+i,s=t.length;if(a.hasOwnProperty(o))return a[o];if(e===1){var u=Math.round(Math.log((1<<s)-1&~i)/xD);return t[r][u]}for(var l=n|1<<r,f=r+1;n&1<<f;)f++;for(var c=0,h=0,v=0;h<s;h++){var d=1<<h;d&i||(c+=(v%2?-1:1)*t[r][h]*xc(t,e-1,f,l,i|d,a),v++)}return a[o]=c,c}function Tp(t,e){var r=[[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]]],n={},i=xc(r,8,0,0,0,n);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*xc(r,7,o===0?1:0,1<<o,1<<s,n)/i*e[o];return function(u,l,f){var c=l*a[6]+f*a[7]+1;u[0]=(l*a[0]+f*a[1]+a[2])/c,u[1]=(l*a[3]+f*a[4]+a[5])/c}}}var au="___zrEVENTSAVED",tf=[];function TD(t,e,r,n,i){return Tc(tf,e,n,i,!0)&&Tc(t,r,tf[0],tf[1])}function CD(t,e){t&&r(t),e&&r(e);function r(n){var i=n[au];i&&(i.clearMarkers&&i.clearMarkers(),delete n[au])}}function Tc(t,e,r,n,i){if(e.getBoundingClientRect&&le.domSupported&&!__(e)){var a=e[au]||(e[au]={}),o=MD(e,a),s=DD(o,a,i);if(s)return s(t,r,n),!0}return!1}function MD(t,e){var r=e.markers;if(r)return r;r=e.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,u=a%2,l=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[u]+":0",i[l]+":0",n[1-u]+":auto",i[1-l]+":auto",""].join("!important;"),t.appendChild(o),r.push(o)}return e.clearMarkers=function(){M(r,function(f){f.parentNode&&f.parentNode.removeChild(f)})},r}function DD(t,e,r){for(var n=r?"invTrans":"trans",i=e[n],a=e.srcCoords,o=[],s=[],u=!0,l=0;l<4;l++){var f=t[l].getBoundingClientRect(),c=2*l,h=f.left,v=f.top;o.push(h,v),u=u&&a&&h===a[c]&&v===a[c+1],s.push(t[l].offsetLeft,t[l].offsetTop)}return u&&i?i:(e.srcCoords=o,e[n]=r?Tp(s,o):Tp(o,s))}function __(t){return t.nodeName.toUpperCase()==="CANVAS"}var AD=/([&<>"'])/g,PD={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function at(t){return t==null?"":(t+"").replace(AD,function(e,r){return PD[r]})}var ID={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},LD={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}},ou="ZH",Wh="EN",Bi=Wh,Os={},Uh={},S_=le.domSupported?(function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Bi).toUpperCase();return t.indexOf(ou)>-1?ou:Bi})():Bi;function Yh(t,e){t=t.toUpperCase(),Uh[t]=new Ie(e),Os[t]=e}function ED(t){if(Q(t)){var e=Os[t.toUpperCase()]||{};return t===ou||t===Wh?he(e):ye(he(e),he(Os[Bi]),!1)}else return ye(he(t),he(Os[Bi]),!1)}function RD(t){return Uh[t]}function OD(){return Uh[Bi]}Yh(Wh,ID);Yh(ou,LD);var kD=null;function rl(){return kD}function b_(t,e){e.breakOption;var r=e.breakParsed;return r}function Xh(t){var e=t.brk;return e?e.breaks:[]}function su(t){var e=t.brk;return e?e.hasBreaks():!1}var qh=1e3,jh=qh*60,Wa=jh*60,zt=Wa*24,Cp=zt*365,ND={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},ks={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},BD="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",Ko="{yyyy}-{MM}-{dd}",Mp={year:"{yyyy}",month:"{yyyy}-{MM}",day:Ko,hour:Ko+" "+ks.hour,minute:Ko+" "+ks.minute,second:Ko+" "+ks.second,millisecond:BD},Kn=["year","month","day","hour","minute","second","millisecond"],FD=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function zD(t){return!Q(t)&&!fe(t)?HD(t):t}function HD(t){t=t||{};var e={},r=!0;return M(Kn,function(n){r&&(r=t[n]==null)}),M(Kn,function(n,i){var a=t[n];e[n]={};for(var o=null,s=i;s>=0;s--){var u=Kn[s],l=ee(a)&&!Y(a)?a[u]:a,f=void 0;Y(l)?(f=l.slice(),o=f[0]||""):Q(l)?(o=l,f=[o]):(o==null?o=ks[n]:ND[u].test(o)||(o=e[u][u][0]+" "+o),f=[o],r&&(f[1]="{primary|"+o+"}")),e[n][u]=f}}),e}function nt(t,e){return t+="","0000".substr(0,e-t.length)+t}function Ua(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function VD(t){return t===Ua(t)}function GD(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Mo(t,e,r,n){var i=Hr(t),a=i[w_(r)](),o=i[$h(r)]()+1,s=Math.floor((o-1)/3)+1,u=i[Zh(r)](),l=i["get"+(r?"UTC":"")+"Day"](),f=i[Kh(r)](),c=(f-1)%12+1,h=i[Qh(r)](),v=i[Jh(r)](),d=i[ev(r)](),g=f>=12?"pm":"am",p=g.toUpperCase(),m=n instanceof Ie?n:RD(n||S_)||OD(),y=m.getModel("time"),_=y.get("month"),S=y.get("monthAbbr"),b=y.get("dayOfWeek"),w=y.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,g+"").replace(/{A}/g,p+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,nt(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,nt(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,nt(u,2)).replace(/{d}/g,u+"").replace(/{eeee}/g,b[l]).replace(/{ee}/g,w[l]).replace(/{e}/g,l+"").replace(/{HH}/g,nt(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,nt(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,nt(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,nt(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,nt(d,3)).replace(/{S}/g,d+"")}function WD(t,e,r,n,i){var a=null;if(Q(r))a=r;else if(fe(r)){var o={time:t.time,level:t.time?t.time.level:0},s=rl();s&&s.makeAxisLabelFormatterParamBreak(o,t.break),a=r(t.value,e,o)}else{var u=t.time;if(u){var l=r[u.lowerTimeUnit][u.upperTimeUnit];a=l[Math.min(u.level,l.length-1)]||""}else{var f=Ns(t.value,i);a=r[f][f][0]}}return Mo(new Date(t.value),a,i,n)}function Ns(t,e){var r=Hr(t),n=r[$h(e)]()+1,i=r[Zh(e)](),a=r[Kh(e)](),o=r[Qh(e)](),s=r[Jh(e)](),u=r[ev(e)](),l=u===0,f=l&&s===0,c=f&&o===0,h=c&&a===0,v=h&&i===1,d=v&&n===1;return d?"year":v?"month":h?"day":c?"hour":f?"minute":l?"second":"millisecond"}function uu(t,e,r){switch(e){case"year":t[x_(r)](0);case"month":t[T_(r)](1);case"day":t[C_(r)](0);case"hour":t[M_(r)](0);case"minute":t[D_(r)](0);case"second":t[A_(r)](0)}return t}function w_(t){return t?"getUTCFullYear":"getFullYear"}function $h(t){return t?"getUTCMonth":"getMonth"}function Zh(t){return t?"getUTCDate":"getDate"}function Kh(t){return t?"getUTCHours":"getHours"}function Qh(t){return t?"getUTCMinutes":"getMinutes"}function Jh(t){return t?"getUTCSeconds":"getSeconds"}function ev(t){return t?"getUTCMilliseconds":"getMilliseconds"}function UD(t){return t?"setUTCFullYear":"setFullYear"}function x_(t){return t?"setUTCMonth":"setMonth"}function T_(t){return t?"setUTCDate":"setDate"}function C_(t){return t?"setUTCHours":"setHours"}function M_(t){return t?"setUTCMinutes":"setMinutes"}function D_(t){return t?"setUTCSeconds":"setSeconds"}function A_(t){return t?"setUTCMilliseconds":"setMilliseconds"}function YD(t,e,r,n,i,a,o,s){var u=new yt({style:{text:t,font:e,align:r,verticalAlign:n,padding:i,rich:a,overflow:o?"truncate":null,lineHeight:s}});return u.getBoundingRect()}function tv(t){if(!Uy(t))return Q(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function rv(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var nl=Lu;function Cc(t,e,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&Jt(f)?f:"-"}function a(f){return Wt(f)}var o=e==="time",s=t instanceof Date;if(o||s){var u=o?Hr(t):t;if(isNaN(+u)){if(s)return"-"}else return Mo(u,n,r)}if(e==="ordinal")return Ws(t)?i(t):Le(t)&&a(t)?t+"":"-";var l=to(t);return a(l)?tv(l):Ws(t)?i(t):typeof t=="boolean"?t+"":"-"}var Dp=["a","b","c","d","e","f","g"],rf=function(t,e){return"{"+t+(e==null?"":e)+"}"};function nv(t,e,r){Y(e)||(e=[e]);var n=e.length;if(!n)return"";for(var i=e[0].$vars||[],a=0;a<i.length;a++){var o=Dp[a];t=t.replace(rf(o),rf(o,0))}for(var s=0;s<n;s++)for(var u=0;u<i.length;u++){var l=e[s][i[u]];t=t.replace(rf(Dp[u],s),r?at(l):l)}return t}function P_(t,e){var r=Q(t)?{color:t,extraCssText:e}:t||{},n=r.color,i=r.type;e=r.extraCssText;var a=r.renderMode||"html";if(!n)return"";if(a==="html")return i==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+at(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+at(n)+";"+(e||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function XD(t,e,r){(t==="week"||t==="month"||t==="quarter"||t==="half-year"||t==="year")&&(t=`MM-dd
23 yyyy`);var n=Hr(e),i=r?"getUTC":"get",a=n[i+"FullYear"](),o=n[i+"Month"]()+1,s=n[i+"Date"](),u=n[i+"Hours"](),l=n[i+"Minutes"](),f=n[i+"Seconds"](),c=n[i+"Milliseconds"]();return t=t.replace("MM",nt(o,2)).replace("M",o).replace("yyyy",a).replace("yy",nt(a%100+"",2)).replace("dd",nt(s,2)).replace("d",s).replace("hh",nt(u,2)).replace("h",u).replace("mm",nt(l,2)).replace("m",l).replace("ss",nt(f,2)).replace("s",f).replace("SSS",nt(c,3)),t}function qD(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)}function ao(t,e){return e=e||"transparent",Q(t)?t:ee(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function Ap(t,e){if(e==="_blank"||e==="blank"){var r=window.open();r.opener=null,r.location.href=t}else window.open(t,e)}var Bs=M,jD=["left","right","top","bottom","width","height"],Qo=[["width","left","right"],["height","top","bottom"]];function iv(t,e,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;e.eachChild(function(u,l){var f=u.getBoundingRect(),c=e.childAt(l+1),h=c&&c.getBoundingRect(),v,d;if(t==="horizontal"){var g=f.width+(h?-h.x+f.x:0);v=a+g,v>n||u.newline?(a=0,v=g,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var p=f.height+(h?-h.y+f.y:0);d=o+p,d>i||u.newline?(a+=s+r,o=0,d=p,s=f.width):s=Math.max(s,f.width)}u.newline||(u.x=a,u.y=o,u.markRedraw(),t==="horizontal"?a=v+r:o=d+r)})}var ak=iv;st(iv,"vertical");st(iv,"horizontal");function $D(t,e){return{left:t.getShallow("left",e),top:t.getShallow("top",e),right:t.getShallow("right",e),bottom:t.getShallow("bottom",e),width:t.getShallow("width",e),height:t.getShallow("height",e)}}function ZD(t,e){var r=av(t,e,{enableLayoutOnlyByCenter:!0}),n=t.getBoxLayoutParams(),i,a;if(r.type===ka.point)a=r.refPoint,i=ti(n,{width:e.getWidth(),height:e.getHeight()});else{var o=t.get("center"),s=Y(o)?o:[o,o];i=ti(n,r.refContainer),a=r.boxCoordFrom===d_?r.refPoint:[Oe(s[0],i.width)+i.x,Oe(s[1],i.height)+i.y]}return{viewRect:i,center:a}}function ok(t,e){var r=ZD(t,e),n=r.viewRect,i=r.center,a=t.get("radius");Y(a)||(a=[0,a]);var o=Oe(n.width,e.getWidth()),s=Oe(n.height,e.getHeight()),u=Math.min(o,s),l=Oe(a[0],u/2),f=Oe(a[1],u/2);return{cx:i[0],cy:i[1],r0:l,r:f,viewRect:n}}function ti(t,e,r){r=nl(r||0);var n=e.width,i=e.height,a=Oe(t.left,n),o=Oe(t.top,i),s=Oe(t.right,n),u=Oe(t.bottom,i),l=Oe(t.width,n),f=Oe(t.height,i),c=r[2]+r[0],h=r[1]+r[3],v=t.aspect;switch(isNaN(l)&&(l=n-s-h-a),isNaN(f)&&(f=i-u-c-o),v!=null&&(isNaN(l)&&isNaN(f)&&(v>n/i?l=n*.8:f=i*.8),isNaN(l)&&(l=v*f),isNaN(f)&&(f=l/v)),isNaN(a)&&(a=n-s-l-h),isNaN(o)&&(o=i-u-f-c),t.left||t.right){case"center":a=n/2-l/2-r[3];break;case"right":a=n-l-h;break}switch(t.top||t.bottom){case"middle":case"center":o=i/2-f/2-r[0];break;case"bottom":o=i-f-c;break}a=a||0,o=o||0,isNaN(l)&&(l=n-h-a-(s||0)),isNaN(f)&&(f=i-c-o-(u||0));var d=new se((e.x||0)+a+r[3],(e.y||0)+o+r[0],l,f);return d.margin=r,d}var ka={rect:1,point:2};function av(t,e,r){var n,i,a,o=t.boxCoordinateSystem,s;if(o){var u=g_(t),l=u.coord,f=u.from;if(o.dataToLayout){a=ka.rect,s=f;var c=o.dataToLayout(l);n=c.contentRect||c.rect}else r&&r.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=ka.point,s=f,i=o.dataToPoint(l))}return a==null&&(a=ka.rect),a===ka.rect&&(n||(n={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),i=[n.x+n.width/2,n.y+n.height/2]),{type:a,refContainer:n,refPoint:i,boxCoordFrom:s}}function oo(t){var e=t.layoutMode||t.constructor.layoutMode;return ee(e)?e:e?{type:e}:null}function ri(t,e,r){var n=r&&r.ignoreSize;!Y(n)&&(n=[n,n]);var i=o(Qo[0],0),a=o(Qo[1],1);u(Qo[0],t,i),u(Qo[1],t,a);function o(l,f){var c={},h=0,v={},d=0,g=2;if(Bs(l,function(y){v[y]=t[y]}),Bs(l,function(y){ut(e,y)&&(c[y]=v[y]=e[y]),s(c,y)&&h++,s(v,y)&&d++}),n[f])return s(e,l[1])?v[l[2]]=null:s(e,l[2])&&(v[l[1]]=null),v;if(d===g||!h)return v;if(h>=g)return c;for(var p=0;p<l.length;p++){var m=l[p];if(!ut(c,m)&&ut(t,m)){c[m]=t[m];break}}return c}function s(l,f){return l[f]!=null&&l[f]!=="auto"}function u(l,f,c){Bs(l,function(h){f[h]=c[h]})}}function il(t){return KD({},t)}function KD(t,e){return e&&t&&Bs(jD,function(r){ut(e,r)&&(t[r]=e[r])}),t}var QD=Me(),ge=(function(t){j(e,t);function e(r,n,i){var a=t.call(this,r,n,i)||this;return a.uid=tl("ec_cpt_model"),a}return e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},e.prototype.mergeDefaultAndTheme=function(r,n){var i=oo(this),a=i?il(r):{},o=n.getTheme();ye(r,o.get(this.mainType)),ye(r,this.getDefaultOption()),i&&ri(r,a,i)},e.prototype.mergeOption=function(r,n){ye(this.option,r,!0);var i=oo(this);i&&ri(this.option,r,i)},e.prototype.optionUpdated=function(r,n){},e.prototype.getDefaultOption=function(){var r=this.constructor;if(!Iw(r))return r.defaultOption;var n=QD(this);if(!n.defaultOption){for(var i=[],a=r;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},u=i.length-1;u>=0;u--)s=ye(s,i[u],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return xo(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},e.prototype.getBoxLayoutParams=function(){return $D(this,!1)},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(r){this.option.zlevel=r},e.protoInitialize=(function(){var r=e.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0})(),e})(Ie);ly(ge,Ie);Eu(ge);SD(ge);bD(ge,JD);function JD(t){var e=[];return M(ge.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.dependencies||[])}),e=re(e,function(r){return dr(r).main}),t!=="dataset"&&me(e,"dataset")<=0&&e.unshift("dataset"),e}var Pp=Me();Me();var ov=(function(){function t(){}return t.prototype.getColorFromPalette=function(e,r,n){var i=ft(this.get("color",!0)),a=this.get("colorLayer",!0);return tA(this,Pp,i,a,e,r,n)},t.prototype.clearColorPalette=function(){rA(this,Pp)},t})();function eA(t,e){for(var r=t.length,n=0;n<r;n++)if(t[n].length>e)return t[n];return t[r-1]}function tA(t,e,r,n,i,a,o){a=a||t;var s=e(a),u=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(i))return l[i];var f=o==null||!n?r:eA(n,o);if(f=f||r,!(!f||!f.length)){var c=f[u];return i&&(l[i]=c),s.paletteIdx=(u+1)%f.length,c}}function rA(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var nA=/\{@(.+?)\}/g,iA=(function(){function t(){}return t.prototype.getDataParams=function(e,r){var n=this.getData(r),i=this.getRawValue(e,r),a=n.getRawIndex(e),o=n.getName(e),s=n.getRawDataItem(e),u=n.getItemVisual(e,"style"),l=u&&u[n.getItemVisual(e,"drawType")||"fill"],f=u&&u.stroke,c=this.mainType,h=c==="series",v=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:a,data:s,dataType:r,value:i,color:l,borderColor:f,dimensionNames:v?v.fullDimensions:null,encode:v?v.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(e,r,n,i,a,o){r=r||"normal";var s=this.getData(n),u=this.getDataParams(e,n);if(o&&(u.value=o.interpolatedValue),i!=null&&Y(u.value)&&(u.value=u.value[i]),!a){var l=s.getItemModel(e);a=l.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(fe(a))return u.status=r,u.dimensionIndex=i,a(u);if(Q(a)){var f=nv(a,u);return f.replace(nA,function(c,h){var v=h.length,d=h;d.charAt(0)==="["&&d.charAt(v-1)==="]"&&(d=+d.slice(1,v-1));var g=ji(s,e,d);if(o&&Y(o.interpolatedValue)){var p=s.getDimensionIndex(d);p>=0&&(g=o.interpolatedValue[p])}return g!=null?g+"":""})}},t.prototype.getRawValue=function(e,r){return ji(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,n){},t})();function Ip(t){var e,r;return ee(t)?t.type&&(r=t):e=t,{text:e,frag:r}}function Ya(t){return new aA(t)}var aA=(function(){function t(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var r=this._upstream,n=e&&e.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,u=f(e&&e.modBy),l=e&&e.modDataCount||0;(o!==u||s!==l)&&(a="reset");function f(y){return!(y>=1)&&(y=1),y}var c;(this._dirty||a==="reset")&&(this._dirty=!1,c=this._doReset(n)),this._modBy=u,this._modDataCount=l;var h=e&&e.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,d=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!n&&(c||v<d)){var g=this._progress;if(Y(g))for(var p=0;p<g.length;p++)this._doProgress(g[p],v,d,u,l);else this._doProgress(g,v,d,u,l)}this._dueIndex=d;var m=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(e,r,n,i,a){Lp.reset(r,n,i,a),this._callingProgress=e,this._callingProgress({start:r,end:n,count:n-r,next:Lp.next},this.context)},t.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!e&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),Y(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t})(),Lp=(function(){var t,e,r,n,i,a={reset:function(u,l,f,c){e=u,t=l,r=f,n=c,i=Math.ceil(n/r),a.next=r>1&&n>0?s:o}};return a;function o(){return e<t?e++:null}function s(){var u=e%i*r+Math.ceil(e/i),l=e>=t?null:u<n?u:e;return e++,l}})(),oA=(function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(e){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(e){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(e,r){},t.prototype.retrieveValueFromItem=function(e,r){},t.prototype.convertValue=function(e,r){return Ls(e,r)},t})();function sA(t,e){var r=new oA,n=t.data,i=r.sourceFormat=t.sourceFormat,a=t.startIndex,o="";t.seriesLayoutBy!==yr&&gt(o);var s=[],u={},l=t.dimensionsDefine;if(l)M(l,function(g,p){var m=g.name,y={index:p,name:m,displayName:g.displayName};if(s.push(y),m!=null){var _="";ut(u,m)&&gt(_),u[m]=y}});else for(var f=0;f<t.dimensionsDetectedCount;f++)s.push({index:f});var c=t_(i,yr);e.__isBuiltIn&&(r.getRawDataItem=function(g){return c(n,a,s,g)},r.getRawData=Pe(uA,null,t)),r.cloneRawData=Pe(lA,null,t);var h=r_(i,yr);r.count=Pe(h,null,n,a,s);var v=n_(i);r.retrieveValue=function(g,p){var m=c(n,a,s,g);return d(m,p)};var d=r.retrieveValueFromItem=function(g,p){if(g!=null){var m=s[p];if(m)return v(g,p,m.name)}};return r.getDimensionInfo=Pe(fA,null,s,u),r.cloneAllDimensionInfo=Pe(cA,null,s),r}function uA(t){var e=t.sourceFormat;if(!sv(e)){var r="";gt(r)}return t.data}function lA(t){var e=t.sourceFormat,r=t.data;if(!sv(e)){var n="";gt(n)}if(e===tt){for(var i=[],a=0,o=r.length;a<o;a++)i.push(r[a].slice());return i}else if(e===Xt){for(var i=[],a=0,o=r.length;a<o;a++)i.push(V({},r[a]));return i}}function fA(t,e,r){if(r!=null){if(Le(r)||!isNaN(r)&&!ut(e,r))return t[r];if(ut(e,r))return e[r]}}function cA(t){return he(t)}var I_=oe();function hA(t){t=he(t);var e=t.type,r="";e||gt(r);var n=e.split(":");n.length!==2&&gt(r);var i=!1;n[0]==="echarts"&&(e=n[1],i=!0),t.__isBuiltIn=i,I_.set(e,t)}function vA(t,e,r){var n=ft(t),i=n.length,a="";i||gt(a);for(var o=0,s=i;o<s;o++){var u=n[o];e=dA(u,e),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function dA(t,e,r,n){var i="";e.length||gt(i),ee(t)||gt(i);var a=t.type,o=I_.get(a);o||gt(i);var s=re(e,function(l){return sA(l,o)}),u=ft(o.transform({upstream:s[0],upstreamList:s,config:he(t.config)}));return re(u,function(l,f){var c="";ee(l)||gt(c),l.data||gt(c);var h=Q0(l.data);sv(h)||gt(c);var v,d=e[0];if(d&&f===0&&!l.dimensions){var g=d.startIndex;g&&(l.data=d.data.slice(0,g).concat(l.data)),v={seriesLayoutBy:yr,sourceHeader:g,dimensions:d.metaRawOption.dimensions}}else v={seriesLayoutBy:yr,sourceHeader:0,dimensions:l.dimensions};return bc(l.data,v,null)})}function sv(t){return t===tt||t===Xt}var pA=(function(){function t(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(e,r){this._sourceList=e,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(Jo(e)){var o=e,s=void 0,u=void 0,l=void 0;if(n){var f=r[0];f.prepareSource(),l=f.getSource(),s=l.data,u=l.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),u=ht(s)?nn:Ct,a=[];var c=this._getSourceMetaRawOption()||{},h=l&&l.metaRawOption||{},v=ie(c.seriesLayoutBy,h.seriesLayoutBy)||null,d=ie(c.sourceHeader,h.sourceHeader),g=ie(c.dimensions,h.dimensions),p=v!==h.seriesLayoutBy||!!d!=!!h.sourceHeader||g;i=p?[bc(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:g},u)]:[]}else{var m=e;if(n){var y=this._applyTransform(r);i=y.sourceList,a=y.upstreamSignList}else{var _=m.get("source",!0);i=[bc(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},t.prototype._applyTransform=function(e){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var a="";e.length!==1&&Ep(a)}var o,s=[],u=[];return M(e,function(l){l.prepareSource();var f=l.getSource(i||0),c="";i!=null&&!f&&Ep(c),s.push(f),u.push(l._getVersionSign())}),n?o=vA(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[BM(s[0])]),{sourceList:o,upstreamSignList:u}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),r=0;r<e.length;r++){var n=e[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},t.prototype.getSource=function(e){e=e||0;var r=this._sourceList[e];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return r},t.prototype.getSharedDataStore=function(e){var r=e.makeStoreSchema();return this._innerGetDataStore(r.dimensions,e.source,r.hash)},t.prototype._innerGetDataStore=function(e,r,n){var i=0,a=this._storeList,o=a[i];o||(o=a[i]={});var s=o[n];if(!s){var u=this._getUpstreamSourceManagers()[0];Jo(this._sourceHost)&&u?s=u._innerGetDataStore(e,r,n):(s=new wc,s.initData(new e_(r,e.length),e)),o[n]=s}return s},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Jo(e)){var r=Bh(e);return r?[r.getSourceManager()]:[]}else return re(NM(e),function(n){return n.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,r,n,i;if(Jo(e))r=e.get("seriesLayoutBy",!0),n=e.get("sourceHeader",!0),i=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=e;r=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:i}},t})();function Jo(t){return t.mainType==="series"}function Ep(t){throw new Error(t)}var ce={color:{},darkColor:{},size:{}},Re=ce.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};V(Re,{primary:Re.neutral80,secondary:Re.neutral70,tertiary:Re.neutral60,quaternary:Re.neutral50,disabled:Re.neutral20,border:Re.neutral30,borderTint:Re.neutral20,borderShade:Re.neutral40,background:Re.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:Re.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:Re.neutral70,axisLineTint:Re.neutral40,axisTick:Re.neutral70,axisTickMinor:Re.neutral60,axisLabel:Re.neutral70,axisSplitLine:Re.neutral15,axisMinorSplitLine:Re.neutral05});for(var kn in Re)if(Re.hasOwnProperty(kn)){var Rp=Re[kn];kn==="theme"?ce.darkColor.theme=Re.theme.slice():kn==="highlight"?ce.darkColor.highlight="rgba(255,231,130,0.4)":kn.indexOf("accent")===0?ce.darkColor[kn]=Qs(Rp,null,function(t){return t*.5},function(t){return Math.min(1,1.3-t)}):ce.darkColor[kn]=Qs(Rp,null,function(t){return t*.9},function(t){return 1-Math.pow(t,1.5)})}ce.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var gA="line-height:1";function L_(t){var e=t.lineHeight;return e==null?gA:"line-height:"+at(e+"")+"px"}function E_(t,e){var r=t.color||ce.color.tertiary,n=t.fontSize||12,i=t.fontWeight||"400",a=t.color||ce.color.secondary,o=t.fontSize||14,s=t.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+at(n+"")+"px;color:"+at(r)+";font-weight:"+at(i+""),valueStyle:"font-size:"+at(o+"")+"px;color:"+at(a)+";font-weight:"+at(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var mA=[0,10,20,30],yA=["",`
24 `,`
25
26 `,`
27
28
29 `];function so(t,e){return e.type=t,e}function Mc(t){return t.type==="section"}function R_(t){return Mc(t)?_A:SA}function O_(t){if(Mc(t)){var e=0,r=t.blocks.length,n=r>1||r>0&&!t.noHeader;return M(t.blocks,function(i){var a=O_(i);a>=e&&(e=a+ +(n&&(!a||Mc(i)&&!i.noHeader)))}),e}return 0}function _A(t,e,r,n){var i=e.noHeader,a=bA(O_(e)),o=[],s=e.blocks||[];Sr(!s||Y(s)),s=s||[];var u=t.orderMode;if(e.sortBlocks&&u){s=s.slice();var l={valueAsc:"asc",valueDesc:"desc"};if(ut(l,u)){var f=new qM(l[u],null);s.sort(function(g,p){return f.evaluate(g.sortParam,p.sortParam)})}else u==="seriesDesc"&&s.reverse()}M(s,function(g,p){var m=e.valueFormatter,y=R_(g)(m?V(V({},t),{valueFormatter:m}):t,g,p>0?a.html:0,n);y!=null&&o.push(y)});var c=t.renderMode==="richText"?o.join(a.richText):Dc(n,o.join(""),i?r:a.html);if(i)return c;var h=Cc(e.header,"ordinal",t.useUTC),v=E_(n,t.renderMode).nameStyle,d=L_(n);return t.renderMode==="richText"?k_(t,h,v)+a.richText+c:Dc(n,'<div style="'+v+";"+d+';">'+at(h)+"</div>"+c,r)}function SA(t,e,r,n){var i=t.renderMode,a=e.noName,o=e.noValue,s=!e.markerType,u=e.name,l=t.useUTC,f=e.valueFormatter||t.valueFormatter||function(S){return S=Y(S)?S:[S],re(S,function(b,w){return Cc(b,Y(v)?v[w]:v,l)})};if(!(a&&o)){var c=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||ce.color.secondary,i),h=a?"":Cc(u,"ordinal",l),v=e.valueType,d=o?[]:f(e.value,e.rawDataIndex),g=!s||!a,p=!s&&a,m=E_(n,i),y=m.nameStyle,_=m.valueStyle;return i==="richText"?(s?"":c)+(a?"":k_(t,h,y))+(o?"":TA(t,d,g,p,_)):Dc(n,(s?"":c)+(a?"":wA(h,!s,y))+(o?"":xA(d,g,p,_)),r)}}function Op(t,e,r,n,i,a){if(t){var o=R_(t),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:e,valueFormatter:t.valueFormatter};return o(s,t,0,a)}}function bA(t){return{html:mA[t],richText:yA[t]}}function Dc(t,e,r){var n='<div style="clear:both"></div>',i="margin: "+r+"px 0 0",a=L_(t);return'<div style="'+i+";"+a+';">'+e+n+"</div>"}function wA(t,e,r){var n=e?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+at(t)+"</span>"}function xA(t,e,r,n){var i=r?"10px":"20px",a=e?"float:right;margin-left:"+i:"";return t=Y(t)?t:[t],'<span style="'+a+";"+n+'">'+re(t,function(o){return at(o)}).join("&nbsp;&nbsp;")+"</span>"}function k_(t,e,r){return t.markupStyleCreator.wrapRichTextStyle(e,r)}function TA(t,e,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(Y(e)?e.join(" "):e,a)}function CA(t,e){var r=t.getData().getItemVisual(e,"style"),n=r[t.visualDrawType];return ao(n)}function N_(t,e){var r=t.get("padding");return r!=null?r:e==="richText"?[8,10]:10}var nf=(function(){function t(){this.richTextStyles={},this._nextStyleNameId=_h()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,r,n){var i=n==="richText"?this._generateStyleName():null,a=P_({color:r,type:e,renderMode:n,markerId:i});return Q(a)?a:(this.richTextStyles[i]=a.style,a.content)},t.prototype.wrapRichTextStyle=function(e,r){var n={};Y(r)?M(r,function(a){return V(n,a)}):V(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+e+"}"},t})();function MA(t){var e=t.series,r=t.dataIndex,n=t.multipleSeries,i=e.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=e.getRawValue(r),u=Y(s),l=CA(e,r),f,c,h,v;if(o>1||u&&!o){var d=DA(s,e,r,a,l);f=d.inlineValues,c=d.inlineValueTypes,h=d.blocks,v=d.inlineValues[0]}else if(o){var g=i.getDimensionInfo(a[0]);v=f=ji(i,r,a[0]),c=g.type}else v=f=u?s[0]:s;var p=$y(e),m=p&&e.name||"",y=i.getName(r),_=n?m:y;return so("section",{header:m,noHeader:n||!p,sortParam:v,blocks:[so("nameValue",{markerType:"item",markerColor:l,name:_,noName:!Jt(_),value:f,valueType:c,rawDataIndex:i.getRawIndex(r)})].concat(h||[])})}function DA(t,e,r,n,i){var a=e.getData(),o=_r(t,function(c,h,v){var d=a.getDimensionInfo(v);return c=c||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],u=[],l=[];n.length?M(n,function(c){f(ji(a,r,c),c)}):M(t,f);function f(c,h){var v=a.getDimensionInfo(h);!v||v.otherDims.tooltip===!1||(o?l.push(so("nameValue",{markerType:"subItem",markerColor:i,name:v.displayName,value:c,valueType:v.type})):(s.push(c),u.push(v.type)))}return{inlineValues:s,inlineValueTypes:u,blocks:l}}var Xr=Me();function es(t,e){return t.getName(e)||t.getId(e)}var AA="__universalTransitionEnabled",Ut=(function(t){j(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return e.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=Ya({count:IA,reset:LA}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=Xr(this).sourceManager=new pA(this);a.prepareSource();var o=this.getInitialData(r,i);Np(o,this),this.dataTask.context.data=o,Xr(this).dataBeforeProcessed=o,kp(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(r,n){var i=oo(this),a=i?il(r):{},o=this.subType;ge.hasClass(o)&&(o+="Series"),ye(r,n.getTheme().get(this.subType)),ye(r,this.getDefaultOption()),Vd(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&ri(r,a,i)},e.prototype.mergeOption=function(r,n){r=ye(this.option,r,!0),this.fillDataTextStyle(r.data);var i=oo(this);i&&ri(this.option,r,i);var a=Xr(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);Np(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Xr(this).dataBeforeProcessed=o,kp(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(r){if(r&&!ht(r))for(var n=["show"],i=0;i<r.length;i++)r[i]&&r[i].label&&Vd(r[i],"label",n)},e.prototype.getInitialData=function(r,n){},e.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},e.prototype.getData=function(r){var n=Ac(this);if(n){var i=n.context.data;return r==null||!i.getLinkedData?i:i.getLinkedData(r)}else return Xr(this).data},e.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},e.prototype.setData=function(r){var n=Ac(this);if(n){var i=n.context;i.outputData=r,n!==this.dataTask&&(i.data=r)}Xr(this).data=r},e.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return oe(r)},e.prototype.getSourceManager=function(){return Xr(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Xr(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},e.prototype.indicesOfNearest=function(r,n,i,a){var o=this.getData(),s=this.coordinateSystem,u=s&&s.getAxis(r);if(!s||!u)return[];var l=u.dataToCoord(i);a==null&&(a=1/0);for(var f=[],c=1/0,h=-1,v=0,d=o.getDimensionIndex(n),g=o.getStore(),p=0,m=g.count();p<m;p++){var y=g.get(d,p),_=u.dataToCoord(y),S=l-_,b=Math.abs(S);b<=a&&((b<c||b===c&&S>=0&&h<0)&&(c=b,h=S,v=0),S===h&&(f[v++]=p))}return f.length=v,f},e.prototype.formatTooltip=function(r,n,i){return MA({series:this,dataIndex:r,multipleSeries:n})},e.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(le.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=ov.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},e.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},e.prototype.unselect=function(r,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var u=r[s],l=es(o,u);i[l]=!1,this._selectedDataIndicesMap[l]=-1}}},e.prototype.toggleSelect=function(r,n){for(var i=[],a=0;a<r.length;a++)i[0]=r[a],this.isSelected(r[a],n)?this.unselect(i,n):this.select(i,n)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=Ae(r),i=[],a=0;a<n.length;a++){var o=r[n[a]];o>=0&&i.push(o)}return i},e.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[es(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[AA])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},e.prototype._innerSelect=function(r,n){var i,a,o=this.option,s=o.selectedMode,u=n.length;if(!(!s||!u)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){ee(o.selectedMap)||(o.selectedMap={});for(var l=o.selectedMap,f=0;f<u;f++){var c=n[f],h=es(r,c);l[h]=!0,this._selectedDataIndicesMap[h]=r.getRawIndex(c)}}else if(s==="single"||s===!0){var v=n[u-1],h=es(r,v);o.selectedMap=(i={},i[h]=!0,i),this._selectedDataIndicesMap=(a={},a[h]=r.getRawIndex(v),a)}}},e.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(i){var a=r.getRawDataItem(i);a&&a.selected&&n.push(i)}),n.length>0&&this._innerSelect(r,n)}},e.registerClass=function(r){return ge.registerClass(r)},e.protoInitialize=(function(){var r=e.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"})(),e})(ge);Yt(Ut,iA);Yt(Ut,ov);ly(Ut,ge);function kp(t){var e=t.name;$y(t)||(t.name=PA(t)||e)}function PA(t){var e=t.getRawData(),r=e.mapDimensionsAll("seriesName"),n=[];return M(r,function(i){var a=e.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function IA(t){return t.model.getRawData().count()}function LA(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),EA}function EA(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Np(t,e){M(oy(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,st(RA,e))})}function RA(t,e){var r=Ac(t);return r&&r.setOutputEnd((e||this).count()),e}function Ac(t){var e=(t.ecModel||{}).scheduler,r=e&&e.getPipeline(t.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(t.uid))}return n}}var OA=Ce.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,i=e.width/2,a=e.height/2;t.moveTo(r,n-a),t.lineTo(r+i,n+a),t.lineTo(r-i,n+a),t.closePath()}}),kA=Ce.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,i=e.width/2,a=e.height/2;t.moveTo(r,n-a),t.lineTo(r+i,n),t.lineTo(r,n+a),t.lineTo(r-i,n),t.closePath()}}),NA=Ce.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.x,n=e.y,i=e.width/5*3,a=Math.max(i,e.height),o=i/2,s=o*o/(a-o),u=n-a+o+s,l=Math.asin(s/o),f=Math.cos(l)*o,c=Math.sin(l),h=Math.cos(l),v=o*.6,d=o*.7;t.moveTo(r-f,u+s),t.arc(r,u,o,Math.PI-l,Math.PI*2+l),t.bezierCurveTo(r+f-c*v,u+s+h*v,r,n-d,r,n),t.bezierCurveTo(r,n-d,r-f+c*v,u+s+h*v,r-f,u+s),t.closePath()}}),BA=Ce.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.height,n=e.width,i=e.x,a=e.y,o=n/3*2;t.moveTo(i,a),t.lineTo(i+o,a+r),t.lineTo(i,a+r/4*3),t.lineTo(i-o,a+r),t.lineTo(i,a),t.closePath()}}),FA={line:Fr,rect:ze,roundRect:ze,square:ze,circle:To,diamond:kA,pin:NA,arrow:BA,triangle:OA},zA={line:function(t,e,r,n,i){i.x1=t,i.y1=e+n/2,i.x2=t+r,i.y2=e+n/2},rect:function(t,e,r,n,i){i.x=t,i.y=e,i.width=r,i.height=n},roundRect:function(t,e,r,n,i){i.x=t,i.y=e,i.width=r,i.height=n,i.r=Math.min(r,n)/4},square:function(t,e,r,n,i){var a=Math.min(r,n);i.x=t,i.y=e,i.width=a,i.height=a},circle:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.r=Math.min(r,n)/2},diamond:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.width=r,i.height=n},pin:function(t,e,r,n,i){i.x=t+r/2,i.y=e+n/2,i.width=r,i.height=n},arrow:function(t,e,r,n,i){i.x=t+r/2,i.y=e+n/2,i.width=r,i.height=n},triangle:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.width=r,i.height=n}},Pc={};M(FA,function(t,e){Pc[e]=new t});var HA=Ce.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,r){var n=qs(t,e,r),i=this.shape;return i&&i.symbolType==="pin"&&e.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(t,e,r){var n=e.symbolType;if(n!=="none"){var i=Pc[n];i||(n="rect",i=Pc[n]),zA[n](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,r)}}});function VA(t,e){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=t,r.fill=e||ce.color.neutral00,r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=t:r.fill=t,this.markRedraw()}}function uv(t,e,r,n,i,a,o){var s=t.indexOf("empty")===0;s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var u;return t.indexOf("image://")===0?u=Ah(t.slice(8),new se(e,r,n,i),o?"center":"cover"):t.indexOf("path://")===0?u=Ku(t.slice(7),{},new se(e,r,n,i),o?"center":"cover"):u=new HA({shape:{symbolType:t,x:e,y:r,width:n,height:i}}),u.__isEmptyBrush=s,u.setColor=VA,a&&u.setColor(a),u}function sk(t){return Y(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function GA(t,e){if(t!=null)return Y(t)||(t=[t,t]),[Oe(t[0],e[0])||0,Oe(ie(t[1],t[0]),e[1])||0]}function WA(t,e){var r=t.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=ji(t,e,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<r.length;o++)a.push(ji(t,e,r[o]));return a.join(" ")}}function UA(t,e){var r=t.mapDimensionsAll("defaultedLabel");if(!Y(e))return e+"";for(var n=[],i=0;i<r.length;i++){var a=t.getDimensionIndex(r[i]);a>=0&&n.push(e[a])}return n.join(" ")}var YA=typeof Float32Array!==ea?Float32Array:void 0,XA=typeof Float64Array!==ea?Float64Array:void 0;function af(t){return lv({ctor:YA},t).arr}function lv(t,e){var r=t.arr,n=t.ctor;if(e>fc&&(e=fc),!r||t.typed&&r.length<e){var i=void 0;if(n)try{i=new n(e),t.typed=!0,r&&i.set(r)}catch(s){}if(!i&&(i=[],t.typed=!1,r))for(var a=0,o=r.length;a<o;a++)i[a]=r[a];t.arr=i}return t}function B_(){var t=Me();return function(e){var r=t(e),n=e.pipelineContext,i=!!r.large,a=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var F_=Me(),qA=B_(),tr=(function(){function t(){this.group=new xt,this.uid=tl("viewChart"),this.renderTask=Ya({plan:jA,reset:$A}),this.renderTask.context={view:this}}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,i){},t.prototype.highlight=function(e,r,n,i){var a=e.getData(i&&i.dataType);a&&Fp(a,i,"emphasis")},t.prototype.downplay=function(e,r,n,i){var a=e.getData(i&&i.dataType);a&&Fp(a,i,"normal")},t.prototype.remove=function(e,r){this.group.removeAll()},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.updateVisual=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.eachRendered=function(e){Rh(this.group,e)},t.markUpdateMethod=function(e,r){F_(e).updateMethod=r},t.protoInitialize=(function(){var e=t.prototype;e.type="chart"})(),t})();function Bp(t,e,r){t&&gc(t)&&(e==="emphasis"?hc:vc)(t,r)}function Fp(t,e,r){var n=wo(t,e),i=e&&e.highlightKey!=null?AC(e.highlightKey):null;n!=null?M(ft(n),function(a){Bp(t.getItemGraphicEl(a),r,i)}):t.eachItemGraphicEl(function(a){Bp(a,r,i)})}hh(tr);Eu(tr);function jA(t){return qA(t.model)}function $A(t){var e=t.model,r=t.ecModel,n=t.api,i=t.payload,a=e.pipelineContext.progressiveRender,o=t.view,s=i&&F_(i).updateMethod,u=a?"incrementalPrepareRender":s&&o[s]?s:"render";return u!=="render"&&o[u](e,r,n,i),ZA[u]}var ZA={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};function KA(t,e,r,n,i){var a=t.getArea(),o=a.x,s=a.y,u=a.width,l=a.height,f=r.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,u+=f,l+=f,u=Math.ceil(u),o!==Math.floor(o)&&(o=Math.floor(o),u++);var c=new ze({shape:{x:o,y:s,width:u,height:l}});if(e){var h=t.getBaseAxis(),v=h.isHorizontal(),d=h.inverse;v?(d&&(c.shape.x+=u),c.shape.width=0):(d||(c.shape.y+=l),c.shape.height=0);var g=fe(i)?function(p){i(p,c)}:null;un(c,{shape:{width:u,height:l,x:o,y:s}},r,null,n,g)}return c}function QA(t,e,r){var n=t.getArea(),i=de(n.r0,1),a=de(n.r,1),o=new fi({shape:{cx:de(t.cx,1),cy:de(t.cy,1),r0:i,r:a,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(e){var s=t.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=i,un(o,{shape:{endAngle:n.endAngle,r:a}},r)}return o}function JA(t,e,r,n,i){if(t){if(t.type==="polar")return QA(t,e,r);if(t.type==="cartesian2d")return KA(t,e,r,n,i)}else return null;return null}function eP(t,e){return t.type===e}var ir=(function(){function t(){}return t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t})();Eu(ir);var tP=0,Ic=(function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++tP,this._onCollect=e.onCollect}return t.createByAxisModel=function(e){var r=e.option,n=r.data,i=n&&re(n,rP);return new t({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var r,n=this._needCollect;if(!Q(e)&&!n)return e;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=e,this._onCollect&&this._onCollect(e,r),r;var i=this._getOrCreateMap();return r=i.get(e),r==null&&(n?(r=this.categories.length,this.categories[r]=e,i.set(e,r),this._onCollect&&this._onCollect(e,r)):r=NaN),r},t.prototype._getOrCreateMap=function(){return this._map||(this._map=oe(this.categories))},t})();function rP(t){return ee(t)&&t.value!=null?t.value:t+""}var Ht=0,uo=1,nP={needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1},iP=Ae(nP),lu=2,z_=3;function fv(t,e,r){var n;return t=t||{},oP(t,r),{brk:n,mapper:t}}function H_(t,e){M(iP,function(r){t[r]=e[r]})}function V_(t,e){t.freeze=je}function lo(t){return t.getExtentUnsafe(Ht,lu)}function fu(t,e){return t.getExtentUnsafe(uo,e)||t.getExtentUnsafe(Ht,e)}function aP(t){var e=fu(t,z_);return e[1]-e[0]}function al(t){var e=t.getExtentUnsafe(Ht,z_);return e[1]-e[0]}function oP(t,e){var r=t||{},n=[];return r._extents=n,n[Ht]=e?e.slice():hr(),V(r,sP),r}var sP={needTransform:function(){return!1},normalize:function(t){var e=this._extents[uo]||this._extents[Ht];return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},scale:function(t){var e=this._extents[uo]||this._extents[Ht];return t*(e[1]-e[0])+e[0]},transformIn:function(t){return t},transformOut:function(t){return t},contain:function(t){var e=fu(this,null);return t>=e[0]&&t<=e[1]},getExtent:function(){return this._extents[Ht].slice()},getExtentUnsafe:function(t){return this._extents[t]},setExtent:function(t,e){zp(this._extents,Ht,t,e)},setExtent2:function(t,e,r){var n=this._extents;n[t]||(n[t]=n[Ht].slice()),zp(n,t,e,r)},freeze:function(){}};function zp(t,e,r,n){Xi(r,n)&&(t[e][0]=r,t[e][1]=n)}function G_(t){return cu(t)||$i(t)}function cu(t){return t.type==="interval"}function cv(t){return t.type==="time"}function $i(t){return t.type==="log"}function ar(t){return t.type==="ordinal"}function uP(t){var e=Vu(t),r=ui(10,e),n=br(t/r);return n?n===2?n=3:n===3?n=5:n*=2:n=1,de(n*r,-e)}function ni(t){return Rr(t)+2}function ts(t,e){return ei(t)/ei(e)}function of(t,e,r){var n=r&&r.lookup;if(n){for(var i=0;i<n.from.length;i++)if(t===n.from[i])return n.to[i]}return ui(e,t)}function W_(t,e,r){var n=t.slice();if(n[0]===n[1]){var i=r&&r.ctnShp;if(n[0]!==0){var a=Ne(n[0]);e[1]||(n[1]+=a/2),n[0]-=a/2}else i&&(n[0]=-1),n[1]=1}return(!Br(n[0])||!Br(n[1]))&&(n[0]=0,n[1]=1),n[1]<n[0]&&n.reverse(),n}function lP(t,e){return[t[0]!==e[0],t[1]!==e[1]]}function hv(t,e){return t=t||e,br(pe(t,1))}function U_(t,e,r){var n=lo(t),i=n[0],a=t.count(),o=Math.max((e||0)+1,1);i!==0&&o>1&&a/o>2&&(i=Math.round(Math.ceil(i/o)*o)),i!==n[0]&&u(n[0],!0,!0);for(var s=i;s<=n[1];s+=o)u(s,!1,s===n[0]||s===n[1]);s-o!==n[1]&&u(n[1],!0,!0);function u(l,f,c){r({value:l,offInterval:f},c)}}var Y_=(function(t){j(e,t);function e(r){var n=t.call(this)||this;n.type="ordinal",n.parse=e.parse,H_(n,e.decoratedMethods);var i=r.ordinalMeta;i||(i=new Ic({})),Y(i)&&(i=new Ic({categories:re(i,function(o){return ee(o)?o.value:o})})),n._ordinalMeta=i;var a=fv(null,null,r.extent||[0,i.categories.length-1]);return n._mapper=a.mapper,V_(n),n}return e.parse=function(r){return r==null?r=NaN:Q(r)?(r=this._ordinalMeta.getOrdinal(r),r==null&&(r=NaN)):r=br(r),r},e.prototype.getTicks=function(){var r=[];return U_(this,0,function(n){r.push(n)}),r},e.prototype.getMinorTicks=function(r){},e.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,u=$e(s,n.length);o<u;++o){var l=i[o]=n[o];a[l]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;i[o]=f,a[f]=o}},e.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},e.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},e.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),i=this._ordinalMeta.categories[n];return i==null?"":i+""}},e.prototype.count=function(){var r=lo(this._mapper);return r[1]-r[0]+1},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.type="ordinal",e.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(r){return this._mapper.contain(this._getTickNumber(r))&&r>=0&&r<this._ordinalMeta.categories.length},normalize:function(r){return this._mapper.normalize(this._getTickNumber(r))},scale:function(r){return this.getRawOrdinalNumber(br(this._mapper.scale(r)))},transformIn:function(r,n){return this._mapper.transformIn(this._getTickNumber(r),n)},transformOut:function(r,n){return this.getRawOrdinalNumber(this._mapper.transformOut(r,n))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(r,n){return this._mapper.getExtentUnsafe(r,n)},setExtent:function(r,n){return this._mapper.setExtent(r,n)},setExtent2:function(r,n,i){return this._mapper.setExtent2(r,n,i)}},e})(ir);ir.registerClass(Y_);function vv(t,e,r,n){for(var i=t.getTicks({expandToNicedExtent:!0}),a=[],o=t.getExtent(),s=1;s<i.length;s++){var u=i[s],l=i[s-1];if(!(l.break||u.break)){for(var f=0,c=[],h=u.value-l.value,v=h/e,d=ni(v);f<e-1;){var g=de(l.value+(f+1)*v,d);g>o[0]&&g<o[1]&&c.push(g),f++}var p=rl();p&&p.pruneTicksByBreak("auto",c,r,function(m){return m},n,o),a.push(c)}}return a}var Fi=(function(t){j(e,t);function e(r){var n=t.call(this)||this;n.type="interval",n.parse=e.parse,r=r||{};var i=b_(n,r),a=fv(n,i,null);return n.brk=a.brk,n._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},n}return e.parse=function(r){return r==null||r===""?NaN:Number(r)},e.prototype.getConfig=function(){return he(this._cfg)},e.prototype.setConfig=function(r){var n=lo(this);this._cfg=r=he(r),r.niceExtent==null&&(r.niceExtent=n.slice()),r.intervalPrecision==null&&(r.intervalPrecision=ni(r.interval))},e.prototype.getTicks=function(r){r=r||{};var n=this._cfg,i=n.interval,a=lo(this),o=n.niceExtent,s=n.intervalPrecision,u=rl(),l=this.brk,f=u,c=[];if(!i)return c;r.breakTicks;var h=3e3;a[0]<o[0]&&c.push({value:r.expandToNicedExtent?de(o[0]-i,s):a[0]});for(var v=function(_,S){return br((S-_)/i)},d=n.intervalCount,g=o[0],p=0;;p++){if(d==null){if(g>o[1]||!isFinite(g)||!isFinite(o[1]))break}else{if(p>d)break;g=$e(g,o[1]),p===d&&(g=o[1])}if(c.push({value:g}),g=de(g+i,s),l){var m=l.calcNiceTickMultiple(g,v);m>=0&&(g=de(g+m*i,s))}if(c.length>0&&g===c[c.length-1].value)break;if(c.length>h)return[]}var y=c.length?c[c.length-1].value:o[1];return a[1]>y&&c.push({value:r.expandToNicedExtent?de(y+i,s):a[1]}),c},e.prototype.getMinorTicks=function(r){return vv(this,r,Xh(this),this._cfg.interval)},e.prototype.getLabel=function(r,n){if(r==null)return"";var i=n&&n.precision;i==null?i=Rr(r.value)||0:i==="auto"&&(i=this._cfg.intervalPrecision);var a=de(r.value,i,!0);return tv(a)},e.type="interval",e})(ir);ir.registerClass(Fi);var fP=function(t,e,r,n){for(;r<n;){var i=r+n>>>1;t[i][1]<e?r=i+1:n=i}return r},X_=(function(t){j(e,t);function e(r){var n=t.call(this)||this;n.type="time",n.parse=e.parse,n._locale=r.locale,n._useUTC=r.useUTC,n._interval=0;var i=b_(n,r),a=fv(n,i,null);return n.brk=a.brk,n}return e.prototype.getLabel=function(r){return Mo(r.value,Mp[GD(Ua(this._minLevelUnit))]||Mp.second,this._useUTC,this._locale)},e.prototype.getFormattedLabel=function(r,n,i){return WD(r,n,i,this._locale,this._useUTC)},e.prototype.getTicks=function(r){var n=this._interval,i=lo(this),a=this.brk,o=[];if(!n)return o;var s=this._useUTC;o=yP(this._minLevelUnit,this._approxInterval,s,i,al(this),a);var u=Kn.length-1,l=0;return M(o,function(f){f.time&&(u=Math.min(u,me(Kn,f.time.upperTimeUnit)),l=Math.max(l,f.time.level))}),o},e.prototype.getMinorTicks=function(r){return vv(this,r,Xh(this),this._interval)},e.prototype.setTimeInterval=function(r){this._interval=r.interval,this._approxInterval=r.approxInterval,this._minLevelUnit=r.minLevelUnit},e.parse=function(r){return Le(r)?Math.round(r):+Hr(r)},e.type="time",e})(ir),rs=[["second",qh],["minute",jh],["hour",Wa],["quarter-day",Wa*6],["half-day",Wa*12],["day",zt*1.2],["half-week",zt*3.5],["week",zt*7],["month",zt*31],["quarter",zt*95],["half-year",Cp/2],["year",Cp]];function cP(t,e,r,n){return uu(new Date(e),t,n).getTime()===uu(new Date(r),t,n).getTime()}function hP(t,e){return t/=zt,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function vP(t){var e=30*zt;return t/=e,t>6?6:t>3?3:t>2?2:1}function dP(t){return t/=Wa,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function Hp(t,e){return t/=e?jh:qh,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function pP(t){return pe(Gu(t,!0),1)}function gP(t,e,r){var n=Math.max(0,me(Kn,e)-1);return uu(new Date(t),Kn[n],r).getTime()}function mP(t,e){var r=new Date(0);r[t](1);var n=r.getTime();r[t](1+e);var i=r.getTime()-n;return function(a,o){return Math.max(0,Math.round((o-a)/i))}}function yP(t,e,r,n,i,a){var o=3e3,s=FD,u=0;function l(F,$,W,z,q,H,X){for(var ne=mP(q,F),K=$,ue=new Date(K);K<W&&K<=n[1]&&(X.push({value:K}),!(u++>o));)if(ue[q](ue[z]()+F),K=ue.getTime(),a){var te=a.calcNiceTickMultiple(K,ne);te>0&&(ue[q](ue[z]()+te*F),K=ue.getTime())}X.push({value:K,notAdd:K>n[1]})}function f(F,$,W){var z=[],q=!$.length;if(!cP(Ua(F),n[0],n[1],r)){q&&($=[{value:gP(n[0],F,r)},{value:n[1]}]);for(var H=0;H<$.length-1;H++){var X=$[H].value,ne=$[H+1].value;if(X!==ne){var K=void 0,ue=void 0,te=void 0,He=!1;switch(F){case"year":K=Math.max(1,Math.round(e/zt/365)),ue=w_(r),te=UD(r);break;case"half-year":case"quarter":case"month":K=vP(e),ue=$h(r),te=x_(r);break;case"week":case"half-week":case"day":K=hP(e),ue=Zh(r),te=T_(r),He=!0;break;case"half-day":case"quarter-day":case"hour":K=dP(e),ue=Kh(r),te=C_(r);break;case"minute":K=Hp(e,!0),ue=Qh(r),te=M_(r);break;case"second":K=Hp(e,!1),ue=Jh(r),te=D_(r);break;case"millisecond":K=pP(e),ue=ev(r),te=A_(r);break}ne>=n[0]&&X<=n[1]&&l(K,X,ne,ue,te,He,z),F==="year"&&W.length>1&&H===0&&W.unshift({value:W[0].value-K})}}for(var H=0;H<z.length;H++)W.push(z[H])}}for(var c=[],h=[],v=0,d=0,g=0;g<s.length;++g){var p=Ua(s[g]);if(VD(s[g])){f(s[g],c[c.length-1]||[],h);var m=s[g+1]?Ua(s[g+1]):null;if(p!==m){if(h.length){d=v,h.sort(function(F,$){return F.value-$.value});for(var y=[],_=0;_<h.length;++_){var S=h[_].value;(_===0||h[_-1].value!==S)&&(y.push(h[_]),S>=n[0]&&S<=n[1]&&v++)}var b=i/e;if(v>b*1.5&&d>b/1.5||(c.push(y),v>b||t===s[g]))break}h=[]}}}for(var w=Ye(re(c,function(F){return Ye(F,function($){return $.value>=n[0]&&$.value<=n[1]&&!$.notAdd})}),function(F){return F.length>0}),x=w.length-1,C=[],g=0;g<w.length;++g)for(var D=w[g],A=0;A<D.length;++A){var T=Ns(D[A].value,r);C.push({value:D[A].value,time:{level:x-g,upperTimeUnit:T,lowerTimeUnit:T}})}bh(C,rC,null),C.sort(function(F,$){return F.value-$.value});var k=C[0],P=C[C.length-1],O=Ns(n[0],r),B=Ns(n[1],r);return(!k||k.value>n[0])&&C.unshift({value:n[0],time:{level:0,upperTimeUnit:O,lowerTimeUnit:O},notNice:!0}),(!P||P.value<n[1])&&C.push({value:n[1],time:{level:0,upperTimeUnit:B,lowerTimeUnit:B},notNice:!0}),C}var _P=function(t,e){var r=t.getExtent();if(r[0]===r[1]&&(r[0]-=zt,r[1]+=zt),r[1]===-1/0&&r[0]===1/0){var n=new Date;r[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),r[0]=r[1]-zt}t.setExtent(r[0],r[1]);var i=hv(e.splitNumber,10),a=al(t)/i,o=e.minInterval,s=e.maxInterval;o!=null&&a<o&&(a=o),s!=null&&a>s&&(a=s);var u=rs.length,l=Math.min(fP(rs,a,0,u),u-1),f=rs[l][1],c=rs[Math.max(l-1,0)][0];t.setTimeInterval({approxInterval:a,interval:f,minLevelUnit:c})};ir.registerClass(X_);var ns=0,is=1,q_=(function(t){j(e,t);function e(r){var n=t.call(this)||this;n.type="log",n.parse=Fi.parse,n.base=r.logBase||10;var i=[],a=[];n._lookup={from:i,to:a},i[ns]=i[is]=a[ns]=a[is]=NaN,H_(n,e.mapperMethods),r.breakOption;var o={};return n.powStub=new Fi({breakParsed:o.original}),n.intervalStub=new Fi({breakParsed:o.transformed}),V_(n,n.intervalStub),n}return e.prototype.getTicks=function(r){var n=this.base,i=this.powStub,a=this.intervalStub,o=a.getExtent(),s=i.getExtent(),u={lookup:{from:o,to:s}};return re(a.getTicks(r||{}),function(l){var f=l.value,c=of(f,n,u),h;return{value:c,break:h}},this)},e.prototype.getMinorTicks=function(r){return vv(this,r,Xh(this.powStub),this.intervalStub.getConfig().interval)},e.prototype.getLabel=function(r,n){return this.intervalStub.getLabel(r,n)},e.type="log",e.mapperMethods={needTransform:function(){return!0},normalize:function(r){return this.intervalStub.normalize(ts(r,this.base))},scale:function(r){return of(this.intervalStub.scale(r),this.base,null)},transformIn:function(r,n){return r=ts(r,this.base),n&&n.depth===lu?r:this.intervalStub.transformIn(r,n)},transformOut:function(r,n){var i=n?n.depth:null;return Vp.depth=i,Gp.lookup=this._lookup,of(i===lu?r:this.intervalStub.transformOut(r,Vp),this.base,Gp)},contain:function(r){return this.powStub.contain(r)},setExtent:function(r,n){this.setExtent2(Ht,r,n)},setExtent2:function(r,n,i){if(!(!Xi(n,i)||n<=0||i<=0)){var a=Wp,o=Wp;if(r===Ht){var s=this._lookup;a=s.to,o=s.from}this.powStub.setExtent2(r,a[ns]=n,a[is]=i);var u=this.base;this.intervalStub.setExtent2(r,o[ns]=ts(n,u),o[is]=ts(i,u))}},getFilter:function(){return{g:0}},sanitize:function(r,n){return Xi(n[0],n[1])&&Wt(r)&&r<=0&&(r=n[0]),r},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(r,n){return n===null?this.powStub.getExtentUnsafe(r,null):this.intervalStub.getExtentUnsafe(r,n)}},e})(ir);ir.registerClass(q_);var Vp={},Gp={},Wp=[],j_={value:1,category:1,time:1,log:1},$_=Me();function Z_(t){var e=t.get("type");return(e==null||!ut(j_,e)&&!ir.getClass(e))&&(e="value"),e}function K_(t,e,r){var n;switch(e){case"category":return new Y_({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:hr()});case"time":return new X_({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC"),breakOption:n});case"log":return new q_({logBase:t.get("logBase"),breakOption:n});case"value":return new Fi({breakOption:n});default:return new(ir.getClass(e)||Fi)({})}}function SP(t,e,r){var n=t.getExtentUnsafe(Ht,null),i=n[0],a=n[1];return Xi(i,a)?i===e||a===e?wP:i<e&&a>e?bP:Lc:Lc}var bP=1,wP=2,Lc=3;function xP(t){$_(t).noOnMyZero=!0}function TP(t){return $_(t).noOnMyZero}function ol(t){var e=t.getLabelModel().get("formatter");if(t.type==="time"){var r=zD(e);return function(i,a){return t.scale.getFormattedLabel(i,a,r)}}else{if(Q(e))return function(i){var a=t.scale.getLabel(i),o=e.replace("{value}",a!=null?a:"");return o};if(fe(e)){if(t.type==="category")return function(i,a){return e(hu(t,i),i.value-t.scale.getExtent()[0],null)};var n=rl();return function(i,a){var o=null;return n&&(o=n.makeAxisLabelFormatterParamBreak(o,i.break)),e(hu(t,i),a,o)}}else return function(i){return t.scale.getLabel(i)}}}function hu(t,e){var r=t.scale;return ar(r)?r.getLabel(e):e.value}function dv(t){var e=t.get("interval");return e==null?"auto":e}function CP(t){return t.type==="category"&&dv(t.getLabelModel())===0}function MP(t,e){var r={};return M(t.mapDimensionsAll(e),function(n){r[y_(t,n)]=!0}),Ae(r)}function Zi(t){return t==="middle"||t==="center"}function fo(t){return t.getShallow("show")}function DP(t,e,r){var n=t.get("breaks",!0);n==null}function Q_(t,e,r,n,i,a){var o=$i(t),s=o?t.intervalStub:t;if(s.setExtent(n[0],n[1]),o){var u=t.powStub,l={depth:lu},f=t.transformOut(n[0],l),c=t.transformOut(n[1],l),h=lP(r,n);e[0]&&!h[0]&&(f=i[0]),e[1]&&!h[1]&&(c=i[1]),u.setExtent(f,c)}s.setConfig(a)}function sl(t,e){return ar(t)?t.getRawOrdinalNumber(e.value):e.value}function J_(t,e){return ar(t)&&!!e.get("boundaryGap")}var AP={average:function(t){for(var e=0,r=0,n=0;n<t.length;n++)isNaN(t[n])||(e+=t[n],r++);return r===0?NaN:e/r},sum:function(t){for(var e=0,r=0;r<t.length;r++)e+=t[r]||0;return e},max:function(t){for(var e=-1/0,r=0;r<t.length;r++)t[r]>e&&(e=t[r]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,r=0;r<t.length;r++)t[r]<e&&(e=t[r]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},PP=function(t){return Math.round(t.length/2)};function IP(t){return{seriesType:t,reset:function(e,r,n){var i=e.getData(),a=e.get("sampling"),o=e.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&a){var u=o.getBaseAxis(),l=o.getOtherAxis(u),f=u.getExtent(),c=n.getDevicePixelRatio(),h=Math.abs(f[1]-f[0])*(c||1),v=Math.round(s/h);if(isFinite(v)&&v>1){a==="lttb"?e.setData(i.lttbDownSample(i.mapDimension(l.dim),1/v)):a==="minmax"&&e.setData(i.minmaxDownSample(i.mapDimension(l.dim),1/v));var d=void 0;Q(a)?d=AP[a]:fe(a)&&(d=a),d&&e.setData(i.downSample(i.mapDimension(l.dim),1/v,d,PP))}}}}}var LP=Me(),Xa=Me(),rr={estimate:1,determine:2};function vu(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function EP(t,e){var r=t.getLabelModel().get("customValues");if(r){var n=t.scale;return{labels:re(e1(r,n),function(i,a){return{formattedLabel:ol(t)(i,a),rawLabel:n.getLabel(i),tick:i}})}}return t.type==="category"?OP(t,e):NP(t)}function RP(t,e,r){var n=t.scale,i=t.getTickModel().get("customValues");return i?{ticks:e1(i,n)}:t.type==="category"?kP(t,e):{ticks:n.getTicks(r)}}function e1(t,e){var r=e.getExtent(),n=[];return M(t,function(i){i=e.parse(i),i>=r[0]&&i<=r[1]&&n.push(i)}),bh(n,nC,null),Hu(n),re(n,function(i){return{value:i}})}function OP(t,e){var r=t.getLabelModel(),n=t1(t,r,e);return!r.get("show")||t.scale.isBlank()?{labels:[]}:n}function t1(t,e,r){var n=FP(t),i=dv(e),a=r.kind===rr.estimate;if(!a){var o=n1(n,i);if(o)return o}var s,u;fe(i)?s=du(t,i,!1):(u=i==="auto"?zP(t,r):i,s=du(t,u,!1));var l={labels:s,labelCategoryInterval:u};return a?r.out.noPxChangeTryDetermine.push(function(){return Ec(n,i,l),!0}):Ec(n,i,l),l}function kP(t,e){var r=BP(t),n=dv(e),i=n1(r,n);if(i)return i;var a,o;if((!e.get("show")||t.scale.isBlank())&&(a=[]),fe(n))a=du(t,n,!0);else if(n==="auto"){var s=t1(t,t.getLabelModel(),vu(rr.determine));o=s.labelCategoryInterval,a=re(s.labels,function(u){return u.tick})}else o=n,a=du(t,o,!0);return Ec(r,n,{ticks:a,tickCategoryInterval:o})}function NP(t){var e=t.scale.getTicks(),r=ol(t);return{labels:re(e,function(n,i){return{formattedLabel:r(n,i),rawLabel:t.scale.getLabel(n),tick:n}})}}var BP=r1("axisTick"),FP=r1("axisLabel");function r1(t){return function(r){return Xa(r)[t]||(Xa(r)[t]={list:[]})}}function n1(t,e){for(var r=0;r<t.list.length;r++)if(t.list[r].key===e)return t.list[r].value}function Ec(t,e,r){return t.list.push({key:e,value:r}),r}function zP(t,e){if(e.kind===rr.estimate){var r=t.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return Xa(t).autoInterval=r,!0}),r}var n=Xa(t).autoInterval;return n!=null?n:Xa(t).autoInterval=t.calculateCategoryInterval(e)}function HP(t,e){var r=e.kind,n=GP(t),i=ol(t),a=(n.axisRotate-n.labelRotate)/180*Math.PI,o=t.scale,s=o.getExtent(),u=o.count();if(s[1]-s[0]<1)return 0;var l=1,f=40;u>f&&(l=Math.max(1,Math.floor(u/f)));for(var c=s[0],h=t.dataToCoord(c+1)-t.dataToCoord(c),v=Math.abs(h*Math.cos(a)),d=Math.abs(h*Math.sin(a)),g=0,p=0;c<=s[1];c+=l){var m=0,y=0,_=Sy(i({value:c}),n.font,"center","top");m=_.width*1.3,y=_.height*1.3,g=Math.max(g,m,7),p=Math.max(p,y,7)}var S=g/v,b=p/d;isNaN(S)&&(S=1/0),isNaN(b)&&(b=1/0);var w=Math.max(0,Math.floor(Math.min(S,b)));if(r===rr.estimate)return e.out.noPxChangeTryDetermine.push(Pe(VP,null,t,w,u)),w;var x=i1(t,w,u);return x!=null?x:w}function VP(t,e,r){return i1(t,e,r)==null}function i1(t,e,r){var n=LP(t.model),i=t.getExtent(),a=n.lastAutoInterval,o=n.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-e)<=1&&Math.abs(o-r)<=1&&a>e&&n.axisExtent0===i[0]&&n.axisExtent1===i[1])return a;n.lastTickCount=r,n.lastAutoInterval=e,n.axisExtent0=i[0],n.axisExtent1=i[1]}function GP(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function du(t,e,r){var n=ol(t),i=t.scale,a=[],o=fe(e);return U_(i,o?0:e,function(s,u){var l=i.getLabel(s);if(o){var f=!!e(s.value,l);if(s.offInterval=!f,!f&&!u)return}a.push(r?s:{formattedLabel:n(s),rawLabel:l,tick:s})}),a}var ul=Me();function WP(t){ul(t).prepare={}}function UP(t){ul(t).fullUpdate={}}function YP(t){return ul(t).prepare}function ta(t){return ul(t).fullUpdate}var XP=Jy(),Rc="|&",ra=Me(),a1=-2,qP=-1,jP=Me();function o1(t,e){var r=t.model,n=ra(ta(r.ecModel)).keyed,i=n&&n.get(e);return i&&i.get(r.uid)}function $P(t,e){return u1(o1(t,e))}function ZP(t,e){var r=[];return s1(t.model.ecModel,function(n){for(var i=0;i<e.length;i++)e[i]&&n.serByIdx[e[i].seriesIndex]&&r.push(u1(n))}),r}function s1(t,e){var r=ra(ta(t)).keyed;r&&r.each(function(n,i){n.each(function(a,o){e(a,i,o)})})}function u1(t){return{liPosMinGap:t?t.liPosMinGap:void 0}}function KP(t,e){var r=t.model.ecModel,n=ra(ta(r)).axSer;n&&pv(r,n.get(t.model.uid),e)}function l1(t,e,r){var n=o1(t,e);n&&pv(t.model.ecModel,n.sers,r)}function pv(t,e,r){if(e)for(var n=0;n<e.length;n++){var i=e[n];t.isSeriesFiltered(i)||r(i)}}function QP(t,e,r){var n=ra(ta(t)).keyed,i=n&&n.get(e);i&&i.each(function(a){r(a.axis)})}function f1(t,e){var r=t.model,n=ra(ta(r.ecModel)).keys;n&&M(n.get(r.uid),function(i){e(i)})}function JP(t){var e=jP(YP(t)),r=e.keyed||(e.keyed=oe());s1(t,function(n,i,a){var o=r.get(i)||r.set(i,oe()),s=o.get(a)||o.set(a,{});n.metrics.liPosMinGap&&c1.liPosMinGap(t,n,s)})}function eI(t,e){c1[t]=e}var c1={};function Up(t,e,r){if(t){var n=e.ecModel,i=ra(ta(n)),a=t.model.uid,o=i.axSer||(i.axSer=oe()),s=o.get(a)||o.set(a,[]);s.push(e);var u=e.subType,l=e.getBaseAxis()===t,f=kc.get(Oc(u,l,r))||kc.get(Oc(u,l,null));if(f){var c=i.keyed||(i.keyed=oe()),h=i.keys||(i.keys=oe()),v=f.key,d=c.get(v)||c.set(v,oe()),g=d.get(a);g||(g=d.set(a,{axis:t,sers:[],serByIdx:[]}),g.metrics=f.getMetrics(t),(h.get(a)||h.set(a,[])).push(v)),g.sers.push(e),g.serByIdx[e.seriesIndex]=e}}}function Oc(t,e,r){return t+Rc+ie(e,!0)+Rc+(r||"")}function tI(t,e){var r=Oc(e.seriesType,e.baseAxis,e.coordSysType);kc.set(r,e),XP(t,function(){t.registerProcessor(t.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:JP})})}var kc=oe(),rI=.8;function na(t,e){e=e||{};var r={w:NaN,w2:NaN},n=t.scale,i=e.fromStat,a=e.min,o=aP(n);Wt(o)||(o=NaN);var s=t.getExtent(),u=Ne(s[1]-s[0]);return ar(n)?nI(r,t,o,u):i&&iI(r,t,o,u,i),a!=null&&(r.w=Wt(r.w)?pe(a,r.w):a),r}function nI(t,e,r,n){var i=e.onBand,a=r+(i?1:0);a===0&&(a=1),t.w=n/a,!i&&r&&n&&(t.w2=t.w*r/n)}function iI(t,e,r,n,i){var a=!1,o=-1/0;M(i.key?[$P(e,i.key)]:ZP(e,i.sers||[]),function(s){var u=s.liPosMinGap;u!=null&&(u>0?(u>o&&(o=u),a=!1):u===a1&&(a=!0))}),Wt(r)&&r>0&&Wt(o)?(t.w=n/r*o,t.w2=o):a&&(t.w=n*rI,t.w2=t.w*r/n)}var Yp=[0,1],h1=(function(){function t(e,r,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=r,this._extent=n||[0,0]}return t.prototype.contain=function(e){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return e>=n&&e<=i},t.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(e,r){var n=this._extent;n[0]=e,n[1]=r},t.prototype.dataToCoord=function(e,r){var n=this.scale;return e=n.normalize(n.parse(e)),uc(e,Yp,Xp(this),r)},t.prototype.coordToData=function(e,r){var n=uc(e,Xp(this),Yp,r);return this.scale.scale(n)},t.prototype.pointToData=function(e,r){},t.prototype.getTicksCoords=function(e){e=e||{};var r=e.tickModel||this.getTickModel(),n=RP(this,r,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),i=re(n.ticks,function(s){return{coord:this.dataToCoord(sl(this.scale,s)),tick:s}},this),a=r.get("alignWithLabel"),o=aI(this,i,a);return re(i,function(s){return{coord:s.coord,tickValue:s.tick.value,onBand:o}})},t.prototype.getMinorTicksCoords=function(){if(ar(this.scale))return[];var e=this.model.getModel("minorTick"),r=e.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),i=re(n,function(a){return re(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},t.prototype.getViewLabels=function(e){return e=e||vu(rr.determine),EP(this,e).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){return na(this,{min:1}).w},t.prototype.calculateCategoryInterval=function(e){return e=e||vu(rr.determine),HP(this,e)},t})();function Xp(t){var e=t.getExtent();if(t.onBand){var r=e[1]-e[0],n=r/t.scale.count()/2;e[0]+=n,e[1]-=n}return e}function aI(t,e,r){var n=e.length;if(!t.onBand||r||!n)return!1;var i=na(t).w;if(!i)return!1;M(e,function(s){s.coord-=i/2});var a=t.scale.getExtent(),o=e[n-1];return o.tick.offInterval&&e.pop(),e.push({coord:o.coord+i,tick:{value:a[1]+1}}),!0}var oI=(function(t){j(e,t);function e(r,n,i,a,o){var s=t.call(this,r,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},e.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},e.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},e.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},e})(h1),qp=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],sI=1,pu=2,v1=sI|pu;function gu(t,e,r){r=r||v1,e?t.dirty|=r:t.dirty&=~r}function d1(t,e){return e=e||v1,t.dirty==null||!!(t.dirty&e)}function fn(t){if(t)return d1(t)&&uI(t,t.label,t),t}function uI(t,e,r){var n=e.getComputedTransform();t.transform=kh(t.transform,n);var i=t.localRect=io(t.localRect,e.getBoundingRect()),a=e.style,o=a.margin,s=r&&r.marginForce,u=r&&r.minMarginForce,l=r&&r.marginDefault,f=a.__marginType;f==null&&l&&(o=l,f=Ei.textMargin);for(var c=0;c<4;c++)sf[c]=f===Ei.minMargin&&u&&u[c]!=null?u[c]:s&&s[c]!=null?s[c]:o?o[c]:0;f===Ei.textMargin&&iu(i,sf,!1,!1);var h=t.rect=io(t.rect,i);return n&&h.applyTransform(n),f===Ei.minMargin&&iu(h,sf,!1,!1),t.axisAligned=Oh(n),(t.label=t.label||{}).ignore=e.ignore,gu(t,!1),gu(t,!0,pu),t}var sf=[0,0,0,0];function lI(t,e,r){return t.transform=kh(t.transform,r),t.localRect=io(t.localRect,e),t.rect=io(t.rect,e),r&&t.rect.applyTransform(r),t.axisAligned=Oh(r),t.obb=void 0,(t.label=t.label||{}).ignore=!1,t}function fI(t,e){if(t){t.label.x+=e.x,t.label.y+=e.y,t.label.markRedraw();var r=t.transform;r&&(r[4]+=e.x,r[5]+=e.y);var n=t.rect;n&&(n.x+=e.x,n.y+=e.y);var i=t.obb;i&&i.fromBoundingRect(t.localRect,r)}}function jp(t,e){for(var r=0;r<qp.length;r++){var n=qp[r];t[n]==null&&(t[n]=e[n])}return fn(t)}function $p(t){var e=t.obb;return(!e||d1(t,pu))&&(t.obb=e=e||new M0,e.fromBoundingRect(t.localRect,t.transform),gu(t,!1,pu)),e}function uk(t,e,r,n,i){var a=t.length,o=$r[e],s=qi[e];if(a<2)return!1;t.sort(function(x,C){return x.rect[o]-C.rect[o]});for(var u=0,l,f=!1,c=0;c<a;c++){var h=t[c],v=h.rect;l=v[o]-u,l<0&&(v[o]-=l,h.label[o]-=l,f=!0),u=v[o]+v[s]}var d=t[0],g=t[a-1],p,m;y(),p<0&&b(-p,.8),m<0&&b(m,.8),y(),_(p,m,1),_(m,p,-1),y(),p<0&&w(-p),m<0&&w(m);function y(){p=d.rect[o]-r,m=n-g.rect[o]-g.rect[s]}function _(x,C,D){if(x<0){var A=Math.min(C,-x);if(A>0){S(A*D,0,a);var T=A+x;T<0&&b(-T*D,1)}else b(-x*D,1)}}function S(x,C,D){x!==0&&(f=!0);for(var A=C;A<D;A++){var T=t[A],k=T.rect;k[o]+=x,T.label[o]+=x}}function b(x,C){for(var D=[],A=0,T=1;T<a;T++){var k=t[T-1].rect,P=Math.max(t[T].rect[o]-k[o]-k[s],0);D.push(P),A+=P}if(A){var O=Math.min(Math.abs(x)/A,C);if(x>0)for(var T=0;T<a-1;T++){var B=D[T]*O;S(B,0,T+1)}else for(var T=a-1;T>0;T--){var B=D[T-1]*O;S(-B,T,a)}}}function w(x){var C=x<0?-1:1;x=Math.abs(x);for(var D=Math.ceil(x/(a-1)),A=0;A<a-1;A++)if(C>0?S(D,0,A+1):S(-D,a-A-1,a),x-=D,x<=0)return}return f}function cI(t){var e=[];t.sort(function(l,f){return(f.suggestIgnore?1:0)-(l.suggestIgnore?1:0)||f.priority-l.priority});function r(l){if(!l.ignore){var f=l.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}l.ignore=!0}for(var n=0;n<t.length;n++){var i=fn(t[n]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,u=0;u<e.length;u++)if(gv(i,e[u],null,{touchThreshold:.05})){s=!0;break}s?(r(a),o&&r(o)):e.push(i)}}}function gv(t,e,r,n){return!t||!e||t.label&&t.label.ignore||e.label&&e.label.ignore||!t.rect.intersect(e.rect,r,n)?!1:t.axisAligned&&e.axisAligned?!0:$p(t).intersect($p(e),r,n)}var hI=null;function vI(){return hI}var dI="expandAxisBreak",en=Math.PI,pI=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],gI=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Ki=Me(),p1=Me(),g1=(function(){function t(e){this.recordMap={},this.resolveAxisNameOverlap=e}return t.prototype.ensureRecord=function(e){var r=e.axis.dim,n=e.componentIndex,i=this.recordMap,a=i[r]||(i[r]=[]);return a[n]||(a[n]={ready:{}})},t})();function mI(t,e,r,n){var i=r.axis,a=e.ensureRecord(r),o=[],s,u=mv(t.axisName)&&Zi(t.nameLocation);M(n,function(d){var g=fn(d);if(!(!g||g.label.ignore)){o.push(g);var p=a.transGroup;u&&(p.transform?ai(ba,p.transform):ii(ba),g.transform&&Xn(ba,ba,g.transform),se.copy(as,g.localRect),as.applyTransform(ba),s?s.union(as):se.copy(s=new se(0,0,0,0),as))}});var l=Math.abs(a.dirVec.x)>.1?"x":"y",f=a.transGroup[l];if(o.sort(function(d,g){return Math.abs(d.label[l]-f)-Math.abs(g.label[l]-f)}),u&&s){var c=i.getExtent(),h=Math.min(c[0],c[1]),v=Math.max(c[0],c[1])-h;s.union(new se(h,0,v,1))}a.stOccupiedRect=s,a.labelInfoList=o}var ba=Vt(),as=new se(0,0,0,0),m1=function(t,e,r,n,i,a){if(Zi(t.nameLocation)){var o=a.stOccupiedRect;o&&y1(lI({},o,a.transGroup.transform),n,i)}else _1(a.labelInfoList,a.dirVec,n,i)};function y1(t,e,r){var n=new xe;gv(t,e,n,{direction:Math.atan2(r.y,r.x),bidirectional:!1,touchThreshold:.05})&&fI(e,n)}function _1(t,e,r,n){for(var i=xe.dot(n,e)>=0,a=0,o=t.length;a<o;a++){var s=t[i?a:o-1-a];s.label.ignore||y1(s,r,n)}}var an=(function(){function t(e,r,n,i){this.group=new xt,this._axisModel=e,this._api=r,this._local={},this._shared=i||new g1(m1),this._resetCfgDetermined(n)}return t.prototype.updateCfg=function(e){var r=this._cfg.raw;r.position=e.position,r.labelOffset=e.labelOffset,this._resetCfgDetermined(r)},t.prototype.__getRawCfg=function(){return this._cfg.raw},t.prototype._resetCfgDetermined=function(e){var r=this._axisModel,n=r.getDefaultOption?r.getDefaultOption():{},i=ie(e.axisName,r.get("name")),a=r.get("nameMoveOverlap");(a==null||a==="auto")&&(a=ie(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:ie(e.nameDirection,1),tickDirection:ie(e.tickDirection,1),labelDirection:ie(e.labelDirection,1),labelOffset:ie(e.labelOffset,0),silent:ie(e.silent,!0),axisName:i,nameLocation:Yn(r.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:mv(i)&&a,optionHideOverlap:r.get(["axisLabel","hideOverlap"]),showMinorTicks:r.get(["minorTick","show"])};this._cfg=o;var s=new xt({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var u=this._shared.ensureRecord(r);u.transGroup=this._transformGroup,u.dirVec=new xe(Math.cos(-o.rotation),Math.sin(-o.rotation))},t.prototype.build=function(e,r){var n=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),M(yI,function(i){e[i]&&_I[i](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,r||{})}),this},t.innerTextLayout=function(e,r,n){var i=mh(r-e),a,o;return eo(i)?(o=n>0?"top":"bottom",a="center"):eo(i-en)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<en?a=n>0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},t.makeAxisEventDataBase=function(e){var r={componentType:e.mainType,componentIndex:e.componentIndex};return r[e.mainType+"Index"]=e.componentIndex,r},t.isLabelSilent=function(e){var r=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||r&&r.show)},t})(),yI=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],_I={axisLine:function(t,e,r,n,i,a,o){var s=n.get(["axisLine","show"]);if(s==="auto"&&(s=!0,t.raw.axisLineAutoShow!=null&&(s=!!t.raw.axisLineAutoShow)),!!s){var u=n.axis.getExtent(),l=a.transform,f=[u[0],0],c=[u[1],0],h=f[0]>c[0];l&&(lt(f,f,l),lt(c,c,l));var v=V({lineCap:"round"},n.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:t.raw.strokeContainThreshold||5,silent:!0,z2:1,style:v};if(n.get(["axisLine","breakLine"])&&su(n.axis.scale))vI().buildAxisBreakLine(n,i,a,d);else{var g=new Fr(V({shape:{x1:f[0],y1:f[1],x2:c[0],y2:c[1]}},d));no(g.shape,g.style.lineWidth),g.anid="line",i.add(g)}var p=n.get(["axisLine","symbol"]);if(p!=null){var m=n.get(["axisLine","symbolSize"]);Q(p)&&(p=[p,p]),(Q(m)||Le(m))&&(m=[m,m]);var y=GA(n.get(["axisLine","symbolOffset"])||0,m),_=m[0],S=m[1];M([{rotate:t.rotation+Math.PI/2,offset:y[0],r:0},{rotate:t.rotation-Math.PI/2,offset:y[1],r:Math.sqrt((f[0]-c[0])*(f[0]-c[0])+(f[1]-c[1])*(f[1]-c[1]))}],function(b,w){if(p[w]!=="none"&&p[w]!=null){var x=uv(p[w],-_/2,-S/2,_,S,v.stroke,!0),C=b.r+b.offset,D=h?c:f;x.attr({rotation:b.rotate,x:D[0]+C*Math.cos(t.rotation),y:D[1]-C*Math.sin(t.rotation),silent:!0,z2:11}),i.add(x)}})}}},axisTickLabelEstimate:function(t,e,r,n,i,a,o,s){var u=Kp(e,i,s);u&&Zp(t,e,r,n,i,a,o,rr.estimate)},axisTickLabelDetermine:function(t,e,r,n,i,a,o,s){var u=Kp(e,i,s);u&&Zp(t,e,r,n,i,a,o,rr.determine);var l=xI(t,i,a,n);wI(t,e.labelLayoutList,l),TI(t,i,a,n,t.tickDirection)},axisName:function(t,e,r,n,i,a,o,s){var u=r.ensureRecord(n);e.nameEl&&(i.remove(e.nameEl),e.nameEl=u.nameLayout=u.nameLocation=null);var l=t.axisName;if(mv(l)){var f=t.nameLocation,c=t.nameDirection,h=n.getModel("nameTextStyle"),v=n.get("nameGap")||0,d=n.axis.getExtent(),g=n.axis.inverse?-1:1,p=new xe(0,0),m=new xe(0,0);f==="start"?(p.x=d[0]-g*v,m.x=-g):f==="end"?(p.x=d[1]+g*v,m.x=g):(p.x=(d[0]+d[1])/2,p.y=t.labelOffset+c*v,m.y=c);var y=Vt();m.transform(Ou(y,y,t.rotation));var _=n.get("nameRotate");_!=null&&(_=_*en/180);var S,b;Zi(f)?S=an.innerTextLayout(t.rotation,_!=null?_:t.rotation,c):(S=SI(t.rotation,f,_||0,d),b=t.raw.axisNameAvailableWidth,b!=null&&(b=Math.abs(b/Math.sin(S.rotation)),!isFinite(b)&&(b=null)));var w=h.getFont(),x=n.get("nameTruncate",!0)||{},C=x.ellipsis,D=$a(t.raw.nameTruncateMaxWidth,x.maxWidth,b),A=s.nameMarginLevel||0,T=new yt({x:p.x,y:p.y,rotation:S.rotation,silent:an.isLabelSilent(n),style:ln(h,{text:l,font:w,overflow:"truncate",width:D,ellipsis:C,fill:h.getTextColor()||n.get(["axisLine","lineStyle","color"]),align:h.get("align")||S.textAlign,verticalAlign:h.get("verticalAlign")||S.textVerticalAlign}),z2:1});if(Eh({el:T,componentModel:n,itemName:l}),T.__fullText=l,T.anid="name",n.get("triggerEvent")){var k=an.makeAxisEventDataBase(n);k.targetType="axisName",k.name=l,we(T).eventData=k}a.add(T),T.updateTransform(),e.nameEl=T;var P=u.nameLayout=fn({label:T,priority:T.z2,defaultAttr:{ignore:T.ignore},marginDefault:Zi(f)?pI[A]:gI[A]});if(u.nameLocation=f,i.add(T),T.decomposeTransform(),t.shouldNameMoveOverlap&&P){var O=r.ensureRecord(n);r.resolveAxisNameOverlap(t,r,n,P,m,O)}}}};function Zp(t,e,r,n,i,a,o,s){b1(e)||CI(t,e,i,s,n,o);var u=e.labelLayoutList;MI(t,n,u,a),t.rotation;var l=t.optionHideOverlap;bI(n,u,l),l&&cI(Ye(u,function(f){return f&&!f.label.ignore})),mI(t,r,n,u)}function SI(t,e,r,n){var i=mh(r-t),a,o,s=n[0]>n[1],u=e==="start"&&!s||e!=="start"&&s;return eo(i-en/2)?(o=u?"bottom":"top",a="center"):eo(i-en*1.5)?(o=u?"top":"bottom",a="center"):(o="middle",i<en*1.5&&i>en/2?a=u?"left":"right":a=u?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function bI(t,e,r){var n=t.axis,i=t.get(["axisLabel","customValues"]);if(CP(n))return;function a(l,f,c){var h=fn(e[f]),v=fn(e[c]),d=n.scale;if(!(!h||!v)){if(l==null){if(!r&&i)return;var g=Ki(h.label).labelInfo.tick;if(cv(d)&&g.notNice||ar(d)&&g.offInterval){Ai(h.label);return}}if(l===!1||h.suggestIgnore){Ai(h.label);return}if(v.suggestIgnore){Ai(v.label);return}var p=.1;if(!r){var m=[0,0,0,0];h=jp({marginForce:m},h),v=jp({marginForce:m},v)}gv(h,v,null,{touchThreshold:p})&&Ai(l?v.label:h.label)}}var o=t.get(["axisLabel","showMinLabel"]),s=t.get(["axisLabel","showMaxLabel"]),u=e.length;a(o,0,1),a(s,u-1,u-2)}function wI(t,e,r){t.showMinorTicks||M(e,function(n){if(n&&n.label.ignore)for(var i=0;i<r.length;i++){var a=r[i],o=p1(a),s=Ki(n.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.labelInfo.tick.value){Ai(a);return}}})}function Ai(t){t&&(t.ignore=!0)}function S1(t,e,r,n,i){for(var a=[],o=[],s=[],u=0;u<t.length;u++){var l=t[u].coord;o[0]=l,o[1]=0,s[0]=l,s[1]=r,e&&(lt(o,o,e),lt(s,s,e));var f=new Fr({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});no(f.shape,f.style.lineWidth),f.anid=i+"_"+t[u].tickValue,a.push(f);var c=p1(f);c.onBand=!!t[u].onBand,c.tickValue=t[u].tickValue}return a}function xI(t,e,r,n){var i=n.axis,a=n.getModel("axisTick"),o=a.get("show");if(o==="auto"&&(o=!0,t.raw.axisTickAutoShow!=null&&(o=!!t.raw.axisTickAutoShow)),!o||i.scale.isBlank())return[];for(var s=a.getModel("lineStyle"),u=t.tickDirection*a.get("length"),l=i.getTicksCoords(),f=S1(l,r.transform,u,Te(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)e.add(f[c]);return f}function TI(t,e,r,n,i){var a=n.axis,o=n.getModel("minorTick");if(!(!t.showMinorTicks||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var u=o.getModel("lineStyle"),l=i*o.get("length"),f=Te(u.getLineStyle(),Te(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<s.length;c++)for(var h=S1(s[c],r.transform,l,f,"minorticks_"+c),v=0;v<h.length;v++)e.add(h[v])}}function Kp(t,e,r){if(b1(t)){var n=t.axisLabelsCreationContext,i=n.out.noPxChangeTryDetermine;if(r.noPxChange){for(var a=!0,o=0;o<i.length;o++)a=a&&i[o]();if(a)return!1}i.length&&(e.remove(t.labelGroup),Nc(t,null,null,null))}return!0}function CI(t,e,r,n,i,a){var o=i.axis,s=$a(t.raw.axisLabelShow,i.get(["axisLabel","show"])),u=new xt;r.add(u);var l=vu(n);if(!s||o.scale.isBlank()){Nc(e,[],u,l);return}var f=i.getModel("axisLabel"),c=o.getViewLabels(l),h=($a(t.raw.labelRotate,f.get("rotate"))||0)*en/180,v=an.innerTextLayout(t.rotation,h,t.labelDirection),d=i.getCategories&&i.getCategories(!0),g=[],p=i.get("triggerEvent"),m=1/0,y=-1/0;M(c,function(S,b){var w,x=S.tick,C=S.formattedLabel,D=S.rawLabel,A=f,T=sl(o.scale,x);if(d&&d[T]){var k=d[T];ee(k)&&k.textStyle&&(A=new Ie(k.textStyle,f,i.ecModel))}var P=A.getTextColor()||i.get(["axisLine","lineStyle","color"]),O=A.getShallow("align",!0)||v.textAlign,B=ie(A.getShallow("alignMinLabel",!0),O),F=ie(A.getShallow("alignMaxLabel",!0),O),$=A.getShallow("verticalAlign",!0)||A.getShallow("baseline",!0)||v.textVerticalAlign,W=ie(A.getShallow("verticalAlignMinLabel",!0),$),z=ie(A.getShallow("verticalAlignMaxLabel",!0),$),q=10+(((w=x.time)===null||w===void 0?void 0:w.level)||0);m=Math.min(m,q),y=Math.max(y,q);var H=new yt({x:0,y:0,rotation:0,silent:an.isLabelSilent(i),z2:q,style:ln(A,{text:C,align:b===0?B:b===c.length-1?F:O,verticalAlign:b===0?W:b===c.length-1?z:$,fill:fe(P)?P(o.type==="category"?D:o.type==="value"?T+"":T,b):P})});H.anid="label_"+T;var X=Ki(H);if(X.labelInfo=S,X.layoutRotation=v.rotation,Eh({el:H,componentModel:i,itemName:C,formatterParamsExtra:{isTruncated:function(){return H.isTruncated},value:D,tickIndex:b}}),p){var ne=an.makeAxisEventDataBase(i);ne.targetType="axisLabel",ne.value=D,ne.tickIndex=b;var K=S.tick.break;if(K){var ue=K.parsedBreak;ne.break={start:ue.vmin,end:ue.vmax}}o.type==="category"&&(ne.dataIndex=T),we(H).eventData=ne,K&&AI(i,a,H,K)}g.push(H),u.add(H)});var _=re(g,function(S){return{label:S,priority:Ki(S).labelInfo.tick.break?S.z2+(y-m+1):S.z2,defaultAttr:{ignore:S.ignore}}});Nc(e,_,u,l)}function b1(t){return!!t.labelLayoutList}function Nc(t,e,r,n){t.labelLayoutList=e,t.labelGroup=r,t.axisLabelsCreationContext=n}function MI(t,e,r,n){var i=e.get(["axisLabel","margin"]);M(r,function(a,o){var s=fn(a);if(s){var u=s.label,l=Ki(u);s.suggestIgnore=u.ignore,u.ignore=!1,js(Ar,DI);var f=e.axis;Ar.x=f.dataToCoord(sl(f.scale,l.labelInfo.tick)),Ar.y=t.labelOffset+t.labelDirection*i,Ar.rotation=l.layoutRotation,n.add(Ar),Ar.updateTransform(),n.remove(Ar),Ar.decomposeTransform(),js(u,Ar),u.markRedraw(),gu(s,!0),fn(s)}})}var Ar=new ze,DI=new ze;function mv(t){return!!t}function AI(t,e,r,n){r.on("click",function(i){var a={type:dI,breaks:[{start:n.parsedBreak.breakOption.start,end:n.parsedBreak.breakOption.end}]};a[t.axis.dim+"AxisIndex"]=t.componentIndex,e.dispatchAction(a)})}function mu(t,e,r){r=r||{};var n=e.axis,i={},a=n.getAxesOnZeroOf()[0],o=n.position,s=a?"onZero":o,u=n.dim,l=[t.x,t.x+t.width,t.y,t.y+t.height],f={left:0,right:1,top:0,bottom:1,onZero:2},c=e.get("offset")||0,h=u==="x"?[l[2]-c,l[3]+c]:[l[0]-c,l[1]+c];if(a){var v=a.toGlobalCoord(a.dataToCoord(0));h[f.onZero]=Math.max(Math.min(v,h[1]),h[0])}i.position=[u==="y"?h[f[s]]:l[0],u==="x"?h[f[s]]:l[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var d={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=d[o],i.labelOffset=a?h[f[o]]-h[f.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),$a(r.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var g=e.get(["axisLabel","rotate"]);return i.labelRotate=s==="top"?-g:g,i.z2=1,i}function PI(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function II(t){var e={xAxisModel:null,yAxisModel:null};return M(e,function(r,n){var i=n.replace(/Model$/,""),a=t.getReferringComponents(i,Ft).models[0];e[n]=a}),e}function LI(t,e,r,n,i,a){for(var o=mu(t,r),s=!1,u=!1,l=0;l<e.length;l++)G_(e[l].getOtherAxis(r.axis).scale)&&(s=u=!0,r.axis.type==="category"&&r.axis.onBand&&(u=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=u,o.defaultNameMoveOverlap=a,new an(r,n,o,i)}function EI(t,e,r){var n=mu(e,r);t.updateCfg(n)}var RI=Me(),OI=1,kI=3,w1=(function(){function t(e,r,n,i,a){var o=ar(e),s=o?r.getCategories().length:null,u;if(o){var l=r.getCategories(!0);u=l&&!l.length}var f=n.slice();(cu(e)||$i(e)||cv(e))&&(Ky(f,wa(e,r.get("dataMin",!0))),Qy(f,wa(e,r.get("dataMax",!0)))),JT(f)||(f[0]=f[1]=NaN);var c=[],h=[!1,!1],v=r.get("min",!0);v==="dataMin"?(c[0]=f[0],h[0]=!0):(c[0]=wa(e,fe(v)?v({min:f[0],max:f[1]}):v),h[0]=c[0]!=null);var d=r.get("max",!0);d==="dataMax"?(c[1]=f[1],h[1]=!0):(c[1]=wa(e,fe(d)?d({min:f[0],max:f[1]}):d),h[1]=c[1]!=null);var g=NI(e,r),p=o?null:f[1]-f[0]||Math.abs(f[0]);c[0]==null&&(c[0]=o?u?f[0]:s?0:NaN:f[0]-g[0]*p),c[1]==null&&(c[1]=o?u?f[1]:s?s-1:NaN:f[1]+g[1]*p),!Br(c[0])&&(c[0]=NaN),!Br(c[1])&&(c[1]=NaN);var m=u||Gi(c[0])||Gi(c[1])||o&&!s,y=cu(e),_=y&&r.needIncludeZero&&r.needIncludeZero();_&&(c[0]>0&&c[1]>0&&!h[0]&&(c[0]=0),c[0]<0&&c[1]<0&&!h[1]&&(c[1]=0));var S=!1;c[0]>c[1]&&(c.reverse(),S=!0);var b=wa(e,r.get("startValue",!0)),w=b!=null;!Wt(b)&&i&&(b=e.getDefaultStartValue?e.getDefaultStartValue():0),Wt(b)&&(w||!y||_)&&(b<c[0]&&!h[0]?(c[0]=b,h[0]=!0):b>c[1]&&!h[1]&&(c[1]=b,h[1]=!0));var x=this._i={scale:e,dataMM:f,noZoomEffMM:c,zoomMM:[],fixMM:h,zoomFixMM:[!1,!1],startValue:b,isBlank:m,incl0:_,tggAxInv:S,ctnShp:a};Qp(x,c)}return t.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},t.prototype.makeFinal=function(){var e=this._i,r=e.zoomMM,n=e.noZoomEffMM,i=e.zoomFixMM,a=e.fixMM,o={fixMM:a,zoomFixMM:i,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:n.slice()},s=o.effMM;return r[0]!=null&&(s[0]=r[0],a[0]=i[0]=!0),r[1]!=null&&(s[1]=r[1],a[1]=i[1]=!0),Qp(e,s),o},t.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},t.prototype.setZoomMM=function(e,r){this._i.zoomMM[e]=r},t})();function Qp(t,e){var r=t.scale,n=t.dataMM;r.sanitize&&(e[0]=r.sanitize(e[0],n),e[1]=r.sanitize(e[1],n),eC(e))}function wa(t,e){return e==null?null:Gi(e)?NaN:t.parse(e)}function NI(t,e){var r;if(ar(t))r=[0,0];else{var n=e.get("boundaryGap");typeof n=="boolean"&&(n=null),r=Y(n)?n:[n,n]}return[Jp(r[0]),Jp(r[1])]}function Jp(t){return Jn(typeof t=="boolean"?0:t,1)||0}function x1(t){var e=RI(t.scale);return e.extent||(e.extent=hr()),e}function BI(t,e){x1(t).dimIdxInCoord=e.get(t.dim)}function FI(t,e){var r=t.scale,n=t.model,i=t.dim;r.rawExtentInfo||zI(r,t,i,n,e)}function zI(t,e,r,n,i){var a=x1(e),o=a.extent,s=!1;KP(e,function(f){if(f.boxCoordinateSystem){var c=g_(f).coord,h=a.dimIdxInCoord;if(h>=0){if(Y(c)){var v=c[h];v!=null&&!Y(v)&&KT(o,t.parse(v))}}}else if(f.coordinateSystem){var d=f.getData();if(d){var g=t.getFilter?t.getFilter():null;M(MP(d,r),function(p){QT(o,d.getApproximateExtent(p,g))})}f.__requireStartValue&&f.__requireStartValue(e)&&(s=!0)}});var u=GI(t,e,n),l=new w1(t,n,o,s,u);T1(t,l,i),a.extent=null}function HI(t,e){var r=t.scale;T1(r,new w1(r,t.model,e,!1,!1),kI)}function T1(t,e,r){t.rawExtentInfo=e,e.from=r}function VI(t,e){yv.set(t,e)}var yv=oe();function C1(t,e,r,n,i){t.rawExtentInfo||HI({scale:t,model:e},i||hr());var a=t.rawExtentInfo.makeFinal(),o=a.effMM;return t.setExtent(o[0],o[1]),t.setBlank(a.isBlank),n&&a.tggAxInv&&r&&!r.get("legacyMinMaxDontInverseAxis")&&(n.inverse=!n.inverse),a}function GI(t,e,r){var n=J_(t,r),i=r.get("containShape",!0);if(i==null&&!n&&(i=!0),!i)return!1;var a=!1;return f1(e,function(o){a=!!yv.get(o)||a}),a}function WI(t,e,r,n){if(r.ctnShp){var i;if(f1(t,function(s){var u=yv.get(s);if(u){var l=u(t,n);l&&(i=i||[0,0],Ky(i,l[0]),Qy(i,l[1]),xP(t))}}),!!i){var a=e.getExtent();if(ar(e))t.onBand||e.setExtent2(uo,$e(a[0],a[0]+i[0]),pe(a[1],a[1]+i[1]));else{var o=a.slice();r.zoomFixMM[0]||(o[0]=$e(o[0],e.transformOut(e.transformIn(o[0],null)+i[0],null))),r.zoomFixMM[1]||(o[1]=pe(o[1],e.transformOut(e.transformIn(o[1],null)+i[1],null))),(o[0]<a[0]||o[1]>a[1])&&e.setExtent2(uo,o[0],o[1])}}}}function UI(){eI("liPosMinGap",YI)}function YI(t,e,r){var n=oe(),i=r.serUids,a=r.liPosMinGap,o,s=e.axis,u=s.scale,l=u.needTransform(),f=u.getFilter?u.getFilter():null,c=i_(f);function h(_){pv(t,e.sers,function(S){var b=S.getRawData(),w=b.getDimensionIndex(b.mapDimension(s.dim));w>=0&&_(w,S,b.getStore())})}var v=0;if(h(function(_,S,b){n.set(S.uid,1),(!i||!i.hasKey(S.uid))&&(o=!0),v+=b.count()}),(!i||i.keys().length!==n.keys().length)&&(o=!0),!o&&a!=null){e.liPosMinGap=a;return}lv(Nn,v);var d=0;h(function(_,S,b){for(var w=0,x=b.count();w<x;++w){var C=b.get(_,w);isFinite(C)&&(!f||a_(c,C))&&(l&&(C=u.transformIn(C,null)),Nn.arr[d++]=C)}});var g=Nn.typed?Nn.arr.subarray(0,d):(Nn.arr.length=d,Nn.arr);Nn.typed?g.sort():Hu(g);for(var p=1/0,m=1;m<d;++m){var y=g[m]-g[m-1];y>0&&y<p&&(p=y)}r.liPosMinGap=e.liPosMinGap=Wt(p)?p:d>0?a1:qP,r.serUids=n}var Nn=lv({ctor:XA},50);function XI(t){return function(e,r){var n=na(e,{fromStat:{key:t}});if(Wt(n.w2))return[-n.w2/2,n.w2/2]}}function ll(t,e){return t+Rc+e}function qI(t){return UI(),{liPosMinGap:!ar(t.scale)}}var zi="bar";function jI(t,e,r,n){tI(t,{key:e,seriesType:r,coordSysType:n,getMetrics:qI})}function $I(t){var e=t.scale.rawExtentInfo.makeRenderInfo().startValue;return e}var M1={left:0,right:0,top:0,bottom:0},yu=["25%","25%"],kr="cartesian2d",ZI=(function(t){j(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(r,n){var i=il(r.outerBounds);t.prototype.mergeDefaultAndTheme.apply(this,arguments),i&&r.outerBounds&&ri(r.outerBounds,i)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&r.outerBounds&&ri(this.option.outerBounds,r.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:M1,outerBoundsContain:"all",outerBoundsClampWidth:yu[0],outerBoundsClampHeight:yu[1],backgroundColor:ce.color.transparent,borderWidth:1,borderColor:ce.color.neutral30},e})(ge),KI=Jy(),QI="__ec_stack_";function D1(t){return t.get("stack")||QI+t.seriesIndex}function JI(t,e){var r=eL(t,e);return r.columnMap=tL(r),r}function eL(t,e){var r=ll(e,kr),n=[],i=na(t,{fromStat:{key:r},min:1});return l1(t,r,function(a){n.push({barWidth:Oe(a.get("barWidth"),i.w),barMaxWidth:Oe(a.get("barMaxWidth"),i.w),barMinWidth:Oe(a.get("barMinWidth")||(A1(a)?.5:1),i.w),barGap:a.get("barGap"),barCategoryGap:a.get("barCategoryGap"),defaultBarGap:a.get("defaultBarGap"),stackId:D1(a)})}),{bandWidthResult:i,seriesInfo:n}}function tL(t){var e=t.bandWidthResult.w,r=e,n=0,i,a,o=[],s={};M(t.seriesInfo,function(g,p){p||(a=g.defaultBarGap||0);var m=g.stackId;ut(s,m)||n++;var y=s[m];y||(y=s[m]={width:0,maxWidth:0},o.push(m));var _=g.barWidth;_&&!y.width&&(y.width=_,_=$e(r,_),r-=_);var S=g.barMaxWidth;S&&(y.maxWidth=S);var b=g.barMinWidth;b&&(y.minWidth=b);var w=g.barGap;w!=null&&(a=w);var x=g.barCategoryGap;x!=null&&(i=x)}),i==null&&(i=pe(35-o.length*4,15)+"%");var u=Oe(i,e),l=Oe(a,1),f=(r-u)/(n+(n-1)*l);f=pe(f,0),M(o,function(g){var p=s[g],m=p.maxWidth,y=p.minWidth;if(p.width){var _=p.width;m&&(_=$e(_,m)),y&&(_=pe(_,y)),p.width=_,r-=_+l*_,n--}else{var _=f;m&&m<_&&(_=$e(m,r)),y&&y>_&&(_=y),_!==f&&(p.width=_,r-=_+l*_,n--)}}),f=(r-u)/(n+(n-1)*l),f=pe(f,0);var c=0,h;M(o,function(g){var p=s[g];p.width||(p.width=f),h=p,c+=p.width*(1+l)}),h&&(c-=h.width*l);var v={},d=-c/2;return M(o,function(g){var p=s[g];v[g]=v[g]||{bandWidth:e,offset:d,width:p.width},d+=p.width*(1+l)}),v}function rL(t){return{seriesType:t,overallReset:function(e){var r=ll(t,kr);QP(e,r,function(n){var i=JI(n,t);l1(n,r,function(a){var o=i.columnMap[D1(a)];a.getData().setLayout({bandWidth:o.bandWidth,offset:o.offset,size:o.width})})})}}}function nL(t){return{seriesType:t,plan:B_(),reset:function(e){if(PI(e)){var r=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(i.dim)),u=e.get("showBackground",!0),l=r.mapDimension(a.dim),f=r.getCalculationInfo("stackResultDimension"),c=Vh(r,l)&&!!r.getCalculationInfo("stackedOnSeries"),h=a.isHorizontal(),v=a.toGlobalCoord(a.dataToCoord($I(a))),d=A1(e),g=e.get("barMinHeight")||0,p=f&&r.getDimensionIndex(f),m=r.getLayout("size"),y=r.getLayout("offset");return{progress:function(_,S){for(var b=_.count,w=d&&af(b*3),x=d&&u&&af(b*3),C=d&&af(b),D=n.master.getRect(),A=h?D.width:D.height,T,k=S.getStore(),P=0;(T=_.next())!=null;){var O=k.get(c?p:o,T),B=k.get(s,T),F=v,$=void 0;c&&($=+O-k.get(o,T));var W=void 0,z=void 0,q=void 0,H=void 0;if(h){var X=n.dataToPoint([O,B]);c&&(F=n.dataToPoint([$,B])[0]),W=F,z=X[1]+y,q=X[0]-F,H=m,Ne(q)<g&&(q=(q<0?-1:1)*g)}else{var X=n.dataToPoint([B,O]);c&&(F=n.dataToPoint([B,$])[1]),W=X[0]+y,z=F,q=m,H=X[1]-F,Ne(H)<g&&(H=(H<=0?-1:1)*g)}d?(w[P]=W,w[P+1]=z,w[P+2]=h?q:H,x&&(x[P]=h?D.x:W,x[P+1]=h?z:D.y,x[P+2]=A),C[T]=T):S.setItemLayout(T,{x:W,y:z,width:q,height:H}),P+=3}d&&S.setLayout({largePoints:w,largeDataIndices:C,largeBackgroundPoints:x,valueAxisHorizontal:h})}}}}}}function A1(t){return t.pipelineContext&&t.pipelineContext.large}function iL(t){return XI(ll(t,kr))}function aL(t){KI(t,function(){function e(r){var n=ll(r,kr);jI(t,n,r,kr),VI(n,iL(r))}e("bar"),e("pictorialBar")})}var Bc=(function(t){j(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(r,n){return Gh(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(r,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(r),s=a.dataToPoint(o);if(i)M(a.getAxes(),function(h,v){if(h.type==="category"&&n!=null){var d=h.getTicksCoords(),g=h.getTickModel().get("alignWithLabel"),p=o[v],m=n[v]==="x1"||n[v]==="y1";if(m&&!g&&(p+=1),d.length<2)return;if(d.length===2){s[v]=h.toGlobalCoord(h.getExtent()[m?1:0]);return}for(var y=void 0,_=void 0,S=1,b=0;b<d.length;b++){var w=d[b].coord,x=b===d.length-1?d[b-1].tickValue+S:d[b].tickValue;if(x===p){_=w;break}else if(x<p)y=w;else if(y!=null&&x>p){_=(w+y)/2;break}b===1&&(S=x-d[0].tickValue)}_==null&&(y?y&&(_=d[d.length-1].coord):_=d[0].coord),s[v]=h.toGlobalCoord(_)}});else{var u=this.getData(),l=u.getLayout("offset"),f=u.getLayout("size"),c=a.getBaseAxis().isHorizontal()?0:1;s[c]+=l+f/2}return s}return[NaN,NaN]},e.prototype.__requireStartValue=function(r){return this.getBaseAxis()!==r},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},e})(Ut);Ut.registerClass(Bc);var oL=(function(t){j(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(){return Gh(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.__preparePipelineContext=function(r,n){var i=e0(this,r,n);return i.progressiveRender&&(i.large=!0),i},e.prototype.brushSelector=function(r,n,i){return i.rect(n.getItemLayout(r))},e.type="series."+zi,e.dependencies=["grid","polar"],e.defaultOption=wD(Bc.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:ce.color.primary,borderWidth:2}},realtimeSort:!1}),e})(Bc),_u="\0__throttleOriginMethod",eg="\0__throttleRate",tg="\0__throttleType";function fl(t,e,r){var n,i=0,a=0,o=null,s,u,l,f;e=e||0;function c(){a=new Date().getTime(),o=null,t.apply(u,l||[])}var h=function(){for(var v=[],d=0;d<arguments.length;d++)v[d]=arguments[d];n=new Date().getTime(),u=this,l=v;var g=f||e,p=f||r;f=null,s=n-(p?i:a)-g,clearTimeout(o),p?o=setTimeout(c,g):s>=0?c():o=setTimeout(c,-s),i=n};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(v){f=v},h}function P1(t,e,r,n){var i=t[e];if(i){var a=i[_u]||i,o=i[tg],s=i[eg];if(s!==r||o!==n){if(r==null||!n)return t[e]=a;i=t[e]=fl(a,r,n==="debounce"),i[_u]=a,i[tg]=n,i[eg]=r}return i}}function Fc(t,e){var r=t[e];r&&r[_u]&&(r.clear&&r.clear(),t[e]=r[_u])}var sL=(function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t})(),rg=(function(t){j(e,t);function e(r){var n=t.call(this,r)||this;return n.type="sausage",n}return e.prototype.getDefaultShape=function(){return new sL},e.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),u=(s-o)*.5,l=o+u,f=n.startAngle,c=n.endAngle,h=n.clockwise,v=Math.PI*2,d=h?c-f<v:f-c<v;d||(f=c-(h?v:-v));var g=Math.cos(f),p=Math.sin(f),m=Math.cos(c),y=Math.sin(c);d?(r.moveTo(g*o+i,p*o+a),r.arc(g*l+i,p*l+a,u,-Math.PI+f,f,!h)):r.moveTo(g*s+i,p*s+a),r.arc(i,a,s,f,c,!h),r.arc(m*l+i,y*l+a,u,c-Math.PI*2,c-Math.PI,!h),o!==0&&r.arc(i,a,o,c,f,h)},e})(Ce);function uL(t,e){e=e||{};var r=e.isRoundCap;return function(n,i,a){var o=i.position;if(!o||o instanceof Array)return qs(n,i,a);var s=t(o),u=i.distance!=null?i.distance:5,l=this.shape,f=l.cx,c=l.cy,h=l.r,v=l.r0,d=(h+v)/2,g=l.startAngle,p=l.endAngle,m=(g+p)/2,y=r?Math.abs(h-v)/2:0,_=Math.cos,S=Math.sin,b=f+h*_(g),w=c+h*S(g),x="left",C="top";switch(s){case"startArc":b=f+(v-u)*_(m),w=c+(v-u)*S(m),x="center",C="top";break;case"insideStartArc":b=f+(v+u)*_(m),w=c+(v+u)*S(m),x="center",C="bottom";break;case"startAngle":b=f+d*_(g)+os(g,u+y,!1),w=c+d*S(g)+ss(g,u+y,!1),x="right",C="middle";break;case"insideStartAngle":b=f+d*_(g)+os(g,-u+y,!1),w=c+d*S(g)+ss(g,-u+y,!1),x="left",C="middle";break;case"middle":b=f+d*_(m),w=c+d*S(m),x="center",C="middle";break;case"endArc":b=f+(h+u)*_(m),w=c+(h+u)*S(m),x="center",C="bottom";break;case"insideEndArc":b=f+(h-u)*_(m),w=c+(h-u)*S(m),x="center",C="top";break;case"endAngle":b=f+d*_(p)+os(p,u+y,!0),w=c+d*S(p)+ss(p,u+y,!0),x="left",C="middle";break;case"insideEndAngle":b=f+d*_(p)+os(p,-u+y,!0),w=c+d*S(p)+ss(p,-u+y,!0),x="right",C="middle";break;default:return qs(n,i,a)}return n=n||{},n.x=b,n.y=w,n.align=x,n.verticalAlign=C,n}}function lL(t,e,r,n){if(Le(n)){t.setTextConfig({rotation:n});return}else if(Y(e)){t.setTextConfig({rotation:0});return}var i=t.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,u,l=r(e);switch(l){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":u=s;break;case"startAngle":case"insideStartAngle":u=a;break;case"endAngle":case"insideEndAngle":u=o;break;default:t.setTextConfig({rotation:0});return}var f=Math.PI*1.5-u;l==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),t.setTextConfig({rotation:f})}function os(t,e,r){return e*Math.sin(t)*(r?-1:1)}function ss(t,e,r){return e*Math.cos(t)*(r?1:-1)}function fL(t,e,r){var n=t.get("borderRadius");if(n==null)return r?{cornerRadius:0}:null;Y(n)||(n=[n,n,n,n]);var i=Math.abs(e.r||0-e.r0||0);return{cornerRadius:re(n,function(a){return Jn(a,i)})}}var uf=Math.max,lf=Math.min,cL=(function(t){j(e,t);function e(){var r=t.call(this)||this;return r.type=zi,r._isFirstFrame=!0,r}return e.prototype.render=function(r,n,i,a){this._model=r,this._removeOnRenderedListener(i),this._updateDrawMode(r);var o=r.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,n,i):this._renderNormal(r,n,i,a))},e.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},e.prototype.incrementalRender=function(r,n){this._progressiveEls=[],this._incrementalRenderLarge(r,n)},e.prototype.eachRendered=function(r){Rh(this._progressiveEls||this.group,r)},e.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},e.prototype._renderNormal=function(r,n,i,a){var o=this.group,s=r.getData(),u=this._data,l=r.coordinateSystem,f=l.getBaseAxis(),c;l.type==="cartesian2d"?c=f.isHorizontal():l.type==="polar"&&(c=f.dim==="angle");var h=r.isAnimationEnabled()?r:null,v=hL(r,l);v&&this._enableRealtimeSort(v,s,i);var d=r.get("clip",!0)||v,g=l.getArea();o.removeClipPath();var p=r.get("roundCap",!0),m=r.get("showBackground",!0),y=r.getModel("backgroundStyle"),_=y.get("borderRadius")||0,S=[],b=this._backgroundEls,w=a&&a.isInitSort,x=a&&a.type==="changeAxisOrder";function C(T){var k=us[l.type](s,T);if(!k)return null;var P=_L(l,c,k);return P.useStyle(y.getItemStyle()),l.type==="cartesian2d"?P.setShape("r",_):P.setShape("cornerRadius",_),S[T]=P,P}s.diff(u).add(function(T){var k=s.getItemModel(T),P=us[l.type](s,T,k);if(P&&(m&&C(T),!(!s.hasValue(T)||!sg[l.type](P)))){var O=!1;d&&(O=ng[l.type](g,P));var B=ig[l.type](r,s,T,P,c,h,f.model,!1,p);v&&(B.forceLabelAnimation=!0),ug(B,s,T,k,P,r,c,l.type==="polar"),w?B.attr({shape:P}):v?ag(v,h,B,P,T,c,!1,!1):un(B,{shape:P},r,T),s.setItemGraphicEl(T,B),o.add(B),B.ignore=O}}).update(function(T,k){var P=s.getItemModel(T),O=us[l.type](s,T,P);if(O){if(m){var B=void 0;b.length===0?B=C(k):(B=b[k],B.useStyle(y.getItemStyle()),l.type==="cartesian2d"?B.setShape("r",_):B.setShape("cornerRadius",_),S[T]=B);var F=us[l.type](s,T),$=L1(c,F,l);zr(B,{shape:$},h,T)}var W=u.getItemGraphicEl(k);if(!s.hasValue(T)||!sg[l.type](O)){o.remove(W);return}var z=!1;d&&(z=ng[l.type](g,O),z&&o.remove(W));var q=W&&(W.type==="sector"&&p||W.type==="sausage"&&!p);if(q&&(W&&Ps(W,r,k),W=null),W?sM(W):W=ig[l.type](r,s,T,O,c,h,f.model,!0,p),v&&(W.forceLabelAnimation=!0),x){var H=W.getTextContent();if(H){var X=Nh(H);X.prevValue!=null&&(X.prevValue=X.value)}}else ug(W,s,T,P,O,r,c,l.type==="polar");w?W.attr({shape:O}):v?ag(v,h,W,O,T,c,!0,x):zr(W,{shape:O},r,T,null),s.setItemGraphicEl(T,W),W.ignore=z,o.add(W)}}).remove(function(T){var k=u.getItemGraphicEl(T);k&&Ps(k,r,T)}).execute();var D=this._backgroundGroup||(this._backgroundGroup=new xt);D.removeAll();for(var A=0;A<S.length;++A)D.add(S[A]);o.add(D),this._backgroundEls=S,this._data=s},e.prototype._renderLarge=function(r,n,i){this._clear(),fg(r,this.group),this._updateLargeClip(r)},e.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),fg(n,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&JA(r.coordinateSystem,!1,r),i=this.group;n?i.setClipPath(n):i.removeClipPath()},e.prototype._enableRealtimeSort=function(r,n,i){var a=this;if(n.count()){var o=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,r,i),this._isFirstFrame=!1;else{var s=function(u){var l=n.getItemGraphicEl(u),f=l&&l.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){a._updateSortWithinSameData(n,s,o,i)},i.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(r,n,i){var a=[];return r.each(r.mapDimension(n.dim),function(o,s){var u=i(s);u=u==null?NaN:u,a.push({dataIndex:s,mappedValue:u,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:re(a,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(r,n,i){for(var a=i.scale,o=r.mapDimension(i.dim),s=Number.MAX_VALUE,u=0,l=a.getOrdinalMeta().categories.length;u<l;++u){var f=r.rawIndexOf(o,a.getRawOrdinalNumber(u)),c=f<0?Number.MIN_VALUE:n(r.indexOfRawIndex(f));if(c>s)return!0;s=c}return!1},e.prototype._isOrderDifferentInView=function(r,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(r,n,i,a){if(this._isOrderChangedWithinSameData(r,n,i)){var o=this._dataSort(r,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(r,n,i){var a=n.baseAxis,o=this._dataSort(r,a,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},e.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},e.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},e.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(r){var n=this.group,i=this._data;r&&r.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){Ps(a,r,we(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type=zi,e})(tr),ng={cartesian2d:function(t,e){var r=e.width<0?-1:1,n=e.height<0?-1:1;r<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height);var i=t.x+t.width,a=t.y+t.height,o=uf(e.x,t.x),s=lf(e.x+e.width,i),u=uf(e.y,t.y),l=lf(e.y+e.height,a),f=s<o,c=l<u;return e.x=f&&o>i?s:o,e.y=c&&u>a?l:u,e.width=f?0:s-o,e.height=c?0:l-u,r<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height),f||c},polar:function(t,e){var r=e.r0<=e.r?1:-1;if(r<0){var n=e.r;e.r=e.r0,e.r0=n}var i=lf(e.r,t.r),a=uf(e.r0,t.r0);e.r=i,e.r0=a;var o=i-a<0;if(r<0){var n=e.r;e.r=e.r0,e.r0=n}return o}},ig={cartesian2d:function(t,e,r,n,i,a,o,s,u){var l=new ze({shape:V({},n),z2:1});if(l.__dataIndex=r,l.name="item",a){var f=l.shape,c=i?"height":"width";f[c]=0}return l},polar:function(t,e,r,n,i,a,o,s,u){var l=!i&&u?rg:fi,f=new l({shape:n,z2:1});f.name="item";var c=I1(i);if(f.calculateTextPosition=uL(c,{isRoundCap:l===rg}),a){var h=f.shape,v=i?"r":"endAngle",d={};h[v]=i?n.r0:n.startAngle,d[v]=n[v],(s?zr:un)(f,{shape:d},a)}return f}};function hL(t,e){var r=t.get("realtimeSort",!0),n=e.getBaseAxis();if(r&&n.type==="category"&&e.type==="cartesian2d")return{baseAxis:n,otherAxis:e.getOtherAxis(n)}}function ag(t,e,r,n,i,a,o,s){var u,l;a?(l={x:n.x,width:n.width},u={y:n.y,height:n.height}):(l={y:n.y,height:n.height},u={x:n.x,width:n.width}),s||(o?zr:un)(r,{shape:u},e,i,null);var f=e?t.baseAxis.model:null;(o?zr:un)(r,{shape:l},f,i)}function og(t,e){for(var r=0;r<e.length;r++)if(!isFinite(t[e[r]]))return!0;return!1}var vL=["x","y","width","height"],dL=["cx","cy","r","startAngle","endAngle"],sg={cartesian2d:function(t){return!og(t,vL)},polar:function(t){return!og(t,dL)}},us={cartesian2d:function(t,e,r){var n=t.getItemLayout(e);if(!n)return null;var i=r?gL(r,n):0,a=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},polar:function(t,e,r){var n=t.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function pL(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function I1(t){return(function(e){var r=e?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}})(t)}function ug(t,e,r,n,i,a,o,s){var u=e.getItemVisual(r,"style");if(s){if(!a.get("roundCap")){var f=t.shape,c=fL(n.getModel("itemStyle"),f,!0);V(f,c),t.setShape(f)}}else{var l=n.get(["itemStyle","borderRadius"])||0;t.setShape("r",l)}t.useStyle(u);var h=n.getShallow("cursor");h&&t.attr("cursor",h);var v=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?SL(i,a.coordinateSystem):bL(i,a.coordinateSystem),d=wM(n);bM(t,d,{labelFetcher:a,labelDataIndex:r,defaultText:WA(a.getData(),r),inheritColor:u.fill,defaultOpacity:u.opacity,defaultOutsidePosition:v});var g=t.getTextContent();if(s&&g){var p=n.get(["label","position"]);t.textConfig.inside=p==="middle"?!0:null,lL(t,p==="outside"?v:p,I1(o),n.get(["label","rotate"]))}MM(g,d,a.getRawValue(r),function(y){return UA(e,y)});var m=n.getModel(["emphasis"]);TC(t,m.get("focus"),m.get("blurScope"),m.get("disabled")),DC(t,n),pL(i)&&(t.style.fill="none",t.style.stroke="none",M(t.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function gL(t,e){var r=t.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=t.get(["itemStyle","borderWidth"])||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),a=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(n,i,a)}var mL=(function(){function t(){}return t})(),lg=(function(t){j(e,t);function e(r){var n=t.call(this,r)||this;return n.type="largeBar",n}return e.prototype.getDefaultShape=function(){return new mL},e.prototype.buildPath=function(r,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],u=[],l=this.barWidth,f=0;f<i.length;f+=3)u[a]=l,u[o]=i[f+2],s[a]=i[f+a],s[o]=i[f+o],r.rect(s[0],s[1],u[0],u[1])},e})(Ce);function fg(t,e,r,n){var i=t.getData(),a=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),s=i.getLayout("size"),u=t.getModel("backgroundStyle"),l=i.getLayout("largeBackgroundPoints"),f=n?iC(t):0;if(l){var c=new lg({shape:{points:l},incremental:f,silent:!0,z2:0});c.baseDimIdx=a,c.largeDataIndices=o,c.barWidth=s,c.useStyle(u.getItemStyle()),e.add(c),r&&r.push(c)}var h=new lg({shape:{points:i.getLayout("largePoints")},incremental:f,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=a,h.largeDataIndices=o,h.barWidth=s,e.add(h),h.useStyle(i.getVisual("style")),h.style.stroke=null,we(h).seriesIndex=t.seriesIndex,t.get("silent")||(h.on("mousedown",cg),h.on("mousemove",cg)),r&&r.push(h)}var cg=fl(function(t){var e=this,r=yL(e,t.offsetX,t.offsetY);we(e).dataIndex=r>=0?r:null},30,!1);function yL(t,e,r){for(var n=t.baseDimIdx,i=1-n,a=t.shape.points,o=t.largeDataIndices,s=[],u=[],l=t.barWidth,f=0,c=a.length/3;f<c;f++){var h=f*3;if(u[n]=l,u[i]=a[h+2],s[n]=a[h+n],s[i]=a[h+i],u[i]<0&&(s[i]+=u[i],u[i]=-u[i]),e>=s[0]&&e<=s[0]+u[0]&&r>=s[1]&&r<=s[1]+u[1])return o[f]}return-1}function L1(t,e,r){if(eP(r,"cartesian2d")){var n=e,i=r.getArea();return{x:t?n.x:i.x,y:t?i.y:n.y,width:t?n.width:i.width,height:t?i.height:n.height}}else{var i=r.getArea(),a=e;return{cx:i.cx,cy:i.cy,r0:t?i.r0:a.r0,r:t?i.r:a.r,startAngle:t?a.startAngle:0,endAngle:t?a.endAngle:Math.PI*2}}}function _L(t,e,r){var n=t.type==="polar"?fi:ze;return new n({shape:L1(e,r,t),silent:!0,z2:0})}function SL(t,e){if(t.height===0){var r=e.getOtherAxis(e.getBaseAxis());return r.inverse?"bottom":"top"}return t.height>0?"bottom":"top"}function bL(t,e){if(t.width===0){var r=e.getOtherAxis(e.getBaseAxis());return r.inverse?"left":"right"}return t.width>=0?"right":"left"}function wL(t){t.registerChartView(cL),t.registerSeriesModel(oL),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,rL(zi)),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,nL(zi)),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,IP(zi)),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,r){var n=e.componentType||"series";r.eachComponent({mainType:n,query:e},function(i){e.sortInfo&&i.axis.setCategorySortInfo(e.sortInfo)})}),aL(t)}function lk(t,e){function r(n,i){var a=[];return n.eachComponent({mainType:"series",subType:t,query:i},function(o){a.push(o.seriesIndex)}),a}M([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(n){e(n[0],function(i,a,o){i=V({},i),o.dispatchAction(V(i,{type:n[1],seriesIndex:r(a,i)}))})})}function bi(t,e,r,n,i){var a=t+e;r.isSilent(a)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,u=o.option.selectedMap,l=i.selected,f=0;f<l.length;f++)if(l[f].seriesIndex===s){var c=o.getData(),h=wo(c,i.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:Y(h)?c.getName(h[0]):c.getName(h),selected:Q(u)?u:V({},u)})}})}function xL(t,e,r){t.on("selectchanged",function(n){var i=r.getModel();n.isFromClick?(bi("map","selectchanged",e,i,n),bi("pie","selectchanged",e,i,n)):n.fromAction==="select"?(bi("map","selected",e,i,n),bi("pie","selected",e,i,n)):n.fromAction==="unselect"&&(bi("map","unselected",e,i,n),bi("pie","unselected",e,i,n))})}var wi=(function(){function t(e,r){this.target=e,this.topTarget=r&&r.topTarget}return t})(),TL=(function(){function t(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(e){for(var r=e.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new wi(r,e),"dragstart",e.event))},t.prototype._drag=function(e){var r=this._draggingTarget;if(r){var n=e.offsetX,i=e.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,r.drift(a,o,e),this.handler.dispatchToElement(new wi(r,e),"drag",e.event);var s=this.handler.findHover(n,i,r).target,u=this._dropTarget;this._dropTarget=s,r!==s&&(u&&s!==u&&this.handler.dispatchToElement(new wi(u,e),"dragleave",e.event),s&&s!==u&&this.handler.dispatchToElement(new wi(s,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new wi(r,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new wi(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t})(),CL=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ff=[],ML=le.browser.firefox&&+le.browser.version.split(".")[0]<39;function zc(t,e,r,n){return r=r||{},n?hg(t,e,r):ML&&e.layerX!=null&&e.layerX!==e.offsetX?(r.zrX=e.layerX,r.zrY=e.layerY):e.offsetX!=null?(r.zrX=e.offsetX,r.zrY=e.offsetY):hg(t,e,r),r}function hg(t,e,r){if(le.domSupported&&t.getBoundingClientRect){var n=e.clientX,i=e.clientY;if(__(t)){var a=t.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(Tc(ff,t,n,i)){r.zrX=ff[0],r.zrY=ff[1];return}}r.zrX=r.zrY=0}function _v(t){return t||window.event}function Et(t,e,r){if(e=_v(e),e.zrX!=null)return e;var n=e.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&zc(t,o,e,r)}else{zc(t,e,e,r);var a=DL(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&CL.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function DL(t){var e=t.wheelDelta;if(e)return e;var r=t.deltaX,n=t.deltaY;if(r==null||n==null)return e;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function AL(t,e,r,n){t.addEventListener(e,r,n)}function PL(t,e,r,n){t.removeEventListener(e,r,n)}var E1=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},IL=(function(){function t(){this._track=[]}return t.prototype.recognize=function(e,r,n){return this._doTrack(e,r,n),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,r,n){var i=e.touches;if(i){for(var a={points:[],touches:[],target:r,event:e},o=0,s=i.length;o<s;o++){var u=i[o],l=zc(n,u,{});a.points.push([l.zrX,l.zrY]),a.touches.push(u)}this._track.push(a)}},t.prototype._recognize=function(e){for(var r in cf)if(cf.hasOwnProperty(r)){var n=cf[r](this._track,e);if(n)return n}},t})();function vg(t){var e=t[1][0]-t[0][0],r=t[1][1]-t[0][1];return Math.sqrt(e*e+r*r)}function LL(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var cf={pinch:function(t,e){var r=t.length;if(r){var n=(t[r-1]||{}).points,i=(t[r-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=vg(n)/vg(i);!isFinite(a)&&(a=1),e.pinchScale=a;var o=LL(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}},R1="silent";function EL(t,e,r){return{type:t,event:r,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:RL}}function RL(){E1(this.event)}var OL=(function(t){j(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.handler=null,r}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e})(wr),xa=(function(){function t(e,r){this.x=e,this.y=r}return t})(),kL=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],hf=new se(0,0,0,0),O1=(function(t){j(e,t);function e(r,n,i,a,o){var s=t.call(this)||this;return s._hovered=new xa(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new OL,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new TL(s),s}return e.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(M(kL,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},e.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=k1(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var u=this._hovered=a?new xa(n,i):this.findHover(n,i),l=u.target,f=this.proxy;f.setCursor&&f.setCursor(l?l.cursor:"default"),s&&l!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(u,"mousemove",r),l&&l!==s&&this.dispatchToElement(u,"mouseover",r)},e.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},e.prototype.resize=function(){this._hovered=new xa(0,0)},e.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},e.prototype.dispatchToElement=function(r,n,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=EL(n,r,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(u){typeof u[o]=="function"&&u[o].call(u,s),u.trigger&&u.trigger(n,s)}))}},e.prototype.findHover=function(r,n,i){var a=this.storage.getDisplayList(),o=new xa(r,n);if(dg(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],u=this._pointerSize,l=u/2,f=new se(r-l,n-l,u,u),c=a.length-1;c>=0;c--){var h=a[c];h!==i&&!h.ignore&&!h.ignoreCoarsePointer&&(!h.parent||!h.parent.ignoreCoarsePointer)&&(hf.copy(h.getBoundingRect()),h.transform&&hf.applyTransform(h.transform),hf.intersect(f)&&s.push(h))}if(s.length)for(var v=4,d=Math.PI/12,g=Math.PI*2,p=0;p<l;p+=v)for(var m=0;m<g;m+=d){var y=r+p*Math.cos(m),_=n+p*Math.sin(m);if(dg(s,o,y,_,i),o.target)return o}}return o},e.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new IL);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;r.gestureEvent=o;var s=new xa;s.target=a.target,this.dispatchToElement(s,o,a.event)}},e})(wr);M(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){O1.prototype[t]=function(e){var r=e.zrX,n=e.zrY,i=k1(this,r,n),a,o;if((t!=="mouseup"||!i)&&(a=this.findHover(r,n),o=a.target),t==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(t==="mouseup")this._upEl=o;else if(t==="click"){if(this._downEl!==this._upEl||!this._downPoint||gy(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,t,e)}});function NL(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){for(var n=t,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(e,r))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s?n.ignoreHostSilent?null:s:n.parent}return i?R1:!0}return!1}function dg(t,e,r,n,i){for(var a=t.length-1;a>=0;a--){var o=t[a],s=void 0;if(o!==i&&!o.ignore&&(s=NL(o,r,n))&&(!e.topTarget&&(e.topTarget=o),s!==R1)){e.target=o;break}}}function k1(t,e,r){var n=t.painter;return e<0||e>n.getWidth()||r<0||r>n.getHeight()}var N1=32,Ta=7;function BL(t){for(var e=0;t>=N1;)e|=t&1,t>>=1;return t+e}function pg(t,e,r,n){var i=e+1;if(i===r)return 1;if(n(t[i++],t[e])<0){for(;i<r&&n(t[i],t[i-1])<0;)i++;FL(t,e,i)}else for(;i<r&&n(t[i],t[i-1])>=0;)i++;return i-e}function FL(t,e,r){for(r--;e<r;){var n=t[e];t[e++]=t[r],t[r--]=n}}function gg(t,e,r,n,i){for(n===e&&n++;n<r;n++){for(var a=t[n],o=e,s=n,u;o<s;)u=o+s>>>1,i(a,t[u])<0?s=u:o=u+1;var l=n-o;switch(l){case 3:t[o+3]=t[o+2];case 2:t[o+2]=t[o+1];case 1:t[o+1]=t[o];break;default:for(;l>0;)t[o+l]=t[o+l-1],l--}t[o]=a}}function vf(t,e,r,n,i,a){var o=0,s=0,u=1;if(a(t,e[r+i])>0){for(s=n-i;u<s&&a(t,e[r+i+u])>0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=i,u+=i}else{for(s=i+1;u<s&&a(t,e[r+i-u])<=0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s);var l=o;o=i-u,u=i-l}for(o++;o<u;){var f=o+(u-o>>>1);a(t,e[r+f])>0?o=f+1:u=f}return u}function df(t,e,r,n,i,a){var o=0,s=0,u=1;if(a(t,e[r+i])<0){for(s=i+1;u<s&&a(t,e[r+i-u])<0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s);var l=o;o=i-u,u=i-l}else{for(s=n-i;u<s&&a(t,e[r+i+u])>=0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=i,u+=i}for(o++;o<u;){var f=o+(u-o>>>1);a(t,e[r+f])<0?u=f:o=f+1}return u}function zL(t,e){var r=Ta,n,i,a=0,o=[];n=[],i=[];function s(v,d){n[a]=v,i[a]=d,a+=1}function u(){for(;a>1;){var v=a-2;if(v>=1&&i[v-1]<=i[v]+i[v+1]||v>=2&&i[v-2]<=i[v]+i[v-1])i[v-1]<i[v+1]&&v--;else if(i[v]>i[v+1])break;f(v)}}function l(){for(;a>1;){var v=a-2;v>0&&i[v-1]<i[v+1]&&v--,f(v)}}function f(v){var d=n[v],g=i[v],p=n[v+1],m=i[v+1];i[v]=g+m,v===a-3&&(n[v+1]=n[v+2],i[v+1]=i[v+2]),a--;var y=df(t[p],t,d,g,0,e);d+=y,g-=y,g!==0&&(m=vf(t[d+g-1],t,p,m,m-1,e),m!==0&&(g<=m?c(d,g,p,m):h(d,g,p,m)))}function c(v,d,g,p){var m=0;for(m=0;m<d;m++)o[m]=t[v+m];var y=0,_=g,S=v;if(t[S++]=t[_++],--p===0){for(m=0;m<d;m++)t[S+m]=o[y+m];return}if(d===1){for(m=0;m<p;m++)t[S+m]=t[_+m];t[S+p]=o[y];return}for(var b=r,w,x,C;;){w=0,x=0,C=!1;do if(e(t[_],o[y])<0){if(t[S++]=t[_++],x++,w=0,--p===0){C=!0;break}}else if(t[S++]=o[y++],w++,x=0,--d===1){C=!0;break}while((w|x)<b);if(C)break;do{if(w=df(t[_],o,y,d,0,e),w!==0){for(m=0;m<w;m++)t[S+m]=o[y+m];if(S+=w,y+=w,d-=w,d<=1){C=!0;break}}if(t[S++]=t[_++],--p===0){C=!0;break}if(x=vf(o[y],t,_,p,0,e),x!==0){for(m=0;m<x;m++)t[S+m]=t[_+m];if(S+=x,_+=x,p-=x,p===0){C=!0;break}}if(t[S++]=o[y++],--d===1){C=!0;break}b--}while(w>=Ta||x>=Ta);if(C)break;b<0&&(b=0),b+=2}if(r=b,r<1&&(r=1),d===1){for(m=0;m<p;m++)t[S+m]=t[_+m];t[S+p]=o[y]}else{if(d===0)throw new Error;for(m=0;m<d;m++)t[S+m]=o[y+m]}}function h(v,d,g,p){var m=0;for(m=0;m<p;m++)o[m]=t[g+m];var y=v+d-1,_=p-1,S=g+p-1,b=0,w=0;if(t[S--]=t[y--],--d===0){for(b=S-(p-1),m=0;m<p;m++)t[b+m]=o[m];return}if(p===1){for(S-=d,y-=d,w=S+1,b=y+1,m=d-1;m>=0;m--)t[w+m]=t[b+m];t[S]=o[_];return}for(var x=r;;){var C=0,D=0,A=!1;do if(e(o[_],t[y])<0){if(t[S--]=t[y--],C++,D=0,--d===0){A=!0;break}}else if(t[S--]=o[_--],D++,C=0,--p===1){A=!0;break}while((C|D)<x);if(A)break;do{if(C=d-df(o[_],t,v,d,d-1,e),C!==0){for(S-=C,y-=C,d-=C,w=S+1,b=y+1,m=C-1;m>=0;m--)t[w+m]=t[b+m];if(d===0){A=!0;break}}if(t[S--]=o[_--],--p===1){A=!0;break}if(D=p-vf(t[y],o,0,p,p-1,e),D!==0){for(S-=D,_-=D,p-=D,w=S+1,b=_+1,m=0;m<D;m++)t[w+m]=o[b+m];if(p<=1){A=!0;break}}if(t[S--]=t[y--],--d===0){A=!0;break}x--}while(C>=Ta||D>=Ta);if(A)break;x<0&&(x=0),x+=2}if(r=x,r<1&&(r=1),p===1){for(S-=d,y-=d,w=S+1,b=y+1,m=d-1;m>=0;m--)t[w+m]=t[b+m];t[S]=o[_]}else{if(p===0)throw new Error;for(b=S-(p-1),m=0;m<p;m++)t[b+m]=o[m]}}return{mergeRuns:u,forceMergeRuns:l,pushRun:s}}function Fs(t,e,r,n){r||(r=0),n||(n=t.length);var i=n-r;if(!(i<2)){var a=0;if(i<N1){a=pg(t,r,n,e),gg(t,r,n,r+a,e);return}var o=zL(t,e),s=BL(i);do{if(a=pg(t,r,n,e),a<s){var u=i;u>s&&(u=s),gg(t,r,r+u,r+a,e),a=u}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var mg=!1;function pf(){mg||(mg=!0)}function yg(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var HL=(function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=yg}return t.prototype.traverse=function(e,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,r)},t.prototype.getDisplayList=function(e,r){r=r||!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(r),n},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var r=this._roots,n=this._displayList,i=0,a=r.length;i<a;i++)this._updateAndAddDisplayable(r[i],null,e);n.length=this._displayListLen,Fs(n,yg)},t.prototype._updateAndAddDisplayable=function(e,r,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var i=e.getClipPath(),a=r&&r.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(a||i)){if(s||(s=e.__clipPaths=[]),a)for(var u=0;u<r.length;u++)s[o++]=r[u];for(var l=i,f=e;l;)l.parent=f,l.updateTransform(),s[o++]=l,f=l,l=l.getClipPath()}if(s&&(s.length=o),e.childrenRef){for(var c=e.childrenRef(),h=0;h<c.length;h++){var v=c[h];e.__dirty&&(v.__dirty|=mt),this._updateAndAddDisplayable(v,s,n)}e.__dirty=0}else{var d=e;isNaN(d.z)&&(pf(),d.z=0),isNaN(d.z2)&&(pf(),d.z2=0),isNaN(d.zlevel)&&(pf(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var g=e.getDecalElement&&e.getDecalElement();g&&this._updateAndAddDisplayable(g,s,n);var p=e.getTextGuideLine();p&&this._updateAndAddDisplayable(p,s,n);var m=e.getTextContent();m&&this._updateAndAddDisplayable(m,s,n)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var r=0,n=e.length;r<n;r++)this.delRoot(e[r]);return}var i=me(this._roots,e);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})(),Su;Su=le.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};function Ri(){return new Date().getTime()}var VL=(function(t){j(e,t);function e(r){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return e.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},e.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},e.prototype.removeClip=function(r){if(r.animation){var n=r.prev,i=r.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},e.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},e.prototype.update=function(r){for(var n=Ri()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,r||(this.trigger("frame",i),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(Su(n),!r._paused&&r.update())}Su(n)},e.prototype.start=function(){this._running||(this._time=Ri(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Ri(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Ri()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(r,n){n=n||{},this.start();var i=new gh(r,n.loop);return this.addAnimator(i),i},e})(wr),GL=300,gf=le.domSupported,mf=(function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=re(t,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:t,touch:e,pointer:n}})(),_g={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Sg=!1;function Hc(t){var e=t.pointerType;return e==="pen"||e==="touch"}function WL(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function yf(t){t&&(t.zrByTouch=!0)}function UL(t,e){return Et(t.dom,new YL(t,e),!0)}function B1(t,e){for(var r=e,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==e&&r===t.painterRoot);)r=r.parentNode;return n}var YL=(function(){function t(e,r){this.stopPropagation=je,this.stopImmediatePropagation=je,this.preventDefault=je,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return t})(),Qt={mousedown:function(t){t=Et(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Et(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=Et(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=Et(this.dom,t);var e=t.toElement||t.relatedTarget;B1(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Sg=!0,t=Et(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Sg||(t=Et(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=Et(this.dom,t),yf(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Qt.mousemove.call(this,t),Qt.mousedown.call(this,t)},touchmove:function(t){t=Et(this.dom,t),yf(t),this.handler.processGesture(t,"change"),Qt.mousemove.call(this,t)},touchend:function(t){t=Et(this.dom,t),yf(t),this.handler.processGesture(t,"end"),Qt.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<GL&&Qt.click.call(this,t)},pointerdown:function(t){Qt.mousedown.call(this,t)},pointermove:function(t){Hc(t)||Qt.mousemove.call(this,t)},pointerup:function(t){Qt.mouseup.call(this,t)},pointerout:function(t){Hc(t)||Qt.mouseout.call(this,t)}};M(["click","dblclick","contextmenu"],function(t){Qt[t]=function(e){e=Et(this.dom,e),this.trigger(t,e)}});var Vc={pointermove:function(t){Hc(t)||Vc.mousemove.call(this,t)},pointerup:function(t){Vc.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 XL(t,e){var r=e.domHandlers;le.pointerEventsSupported?M(mf.pointer,function(n){zs(e,n,function(i){r[n].call(t,i)})}):(le.touchEventsSupported&&M(mf.touch,function(n){zs(e,n,function(i){r[n].call(t,i),WL(e)})}),M(mf.mouse,function(n){zs(e,n,function(i){i=_v(i),e.touching||r[n].call(t,i)})}))}function qL(t,e){le.pointerEventsSupported?M(_g.pointer,r):le.touchEventsSupported||M(_g.mouse,r);function r(n){function i(a){a=_v(a),B1(t,a.target)||(a=UL(t,a),e.domHandlers[n].call(t,a))}zs(e,n,i,{capture:!0})}}function zs(t,e,r,n){t.mounted[e]=r,t.listenerOpts[e]=n,AL(t.domTarget,e,r,n)}function _f(t){var e=t.mounted;for(var r in e)e.hasOwnProperty(r)&&PL(t.domTarget,r,e[r],t.listenerOpts[r]);t.mounted={}}var bg=(function(){function t(e,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=r}return t})(),jL=(function(t){j(e,t);function e(r,n){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=r,i.painterRoot=n,i._localHandlerScope=new bg(r,Qt),gf&&(i._globalHandlerScope=new bg(document,Vc)),XL(i,i._localHandlerScope),i}return e.prototype.dispose=function(){_f(this._localHandlerScope),gf&&_f(this._globalHandlerScope)},e.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},e.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,gf&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?qL(this,n):_f(n)}},e})(wr);var Hs={},Gn={};function $L(t){delete Gn[t]}function ZL(t){if(!t)return!1;if(typeof t=="string")return Qa(t,1)<nc;if(t.colorStops){for(var e=t.colorStops,r=0,n=e.length,i=0;i<n;i++)r+=Qa(e[i].color,1);return r/=n,r<nc}return!1}var KL=(function(){function t(e,r,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,n=n||{},this.dom=r,this.id=e;var a=new HL,o=n.renderer||"canvas";Hs[o]||(o=Ae(Hs)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new Hs[o](r,a,n,e),u=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var l=!le.node&&!le.worker&&!u?new jL(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,c=f==null||f==="auto"?le.touchEventsSupported:!!f,h=44,v;c&&(v=ie(n.pointerSize,h)),this.handler=new O1(a,s,l,s.root,v),this.animation=new VL({stage:{update:u?null:function(){return i._flush(!1)}}}),u||this.animation.start()}return t.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},t.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(e,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,r),this.refresh())},t.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=ZL(e))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(e){this._darkMode=e},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(e){this._disposed||this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},t.prototype._refresh=function(e){e.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:e.refresh,refreshHover:e.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!0)},t.prototype._flush=function(e){var r,n=Ri(),i=this._needsRefresh,a=this._needsRefreshHover;(i||a)&&(r=!0,this._refresh({animUpdate:e,refresh:i,refreshHover:a}));var o=Ri();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:o-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},t.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,r){if(!this._disposed)return this.handler.findHover(e,r)},t.prototype.on=function(e,r,n){return this._disposed||this.handler.on(e,r,n),this},t.prototype.off=function(e,r){this._disposed||this.handler.off(e,r)},t.prototype.trigger=function(e,r){this._disposed||this.handler.trigger(e,r)},t.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),r=0;r<e.length;r++)e[r]instanceof xt&&e[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,$L(this.id))},t})();function Gc(t,e){var r=new KL(lh(),t,e);return Gn[r.id]=r,r}function QL(t){t.dispose()}function JL(){for(var t in Gn)Gn.hasOwnProperty(t)&&Gn[t].dispose();Gn={}}function eE(t){return Gn[t]}function F1(t,e){Hs[t]=e}var Wc;function tE(t){if(typeof Wc=="function")return Wc(t)}function z1(t){Wc=t}var rE="6.1.0",nE=Object.freeze({__proto__:null,dispose:QL,disposeAll:JL,getElementSSRData:tE,getInstance:eE,init:Gc,registerPainter:F1,registerSSRDataGetter:z1,version:rE}),H1="";typeof navigator!="undefined"&&(H1=navigator.platform||"");var xi="rgba(0, 0, 0, 0.2)",V1=ce.color.theme[0],iE=Qs(V1,null,null,.9),G1={darkMode:"auto",colorBy:"series",color:ce.color.theme,gradientColor:[iE,V1],aria:{decal:{decals:[{color:xi,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:xi,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:xi,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:xi,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:xi,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:xi,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:H1.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},aE=oe();function oE(t,e,r){var n=aE.get(e);if(!n)return r;var i=n(t);return i?r.concat(i):r}var ls,Ca,wg,xg="\0_ec_inner",sE=1,Sv=(function(t){j(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new Ie(a),this._locale=new Ie(o),this._optionManager=s},e.prototype.setOption=function(r,n,i){var a=Mg(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},e.prototype.resetOption=function(r,n){return this._resetOption(r,Mg(n))},e.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?wg(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var u=a.getMediaOption(this);u.length&&M(u,function(l){i=!0,this._mergeOption(l,n)},this)}return i},e.prototype.mergeOption=function(r){this._mergeOption(r,null)},e.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],u=oe(),l=n&&n.replaceMergeMainTypeMap;OM(this),M(r,function(c,h){c!=null&&(ge.hasClass(h)?h&&(s.push(h),u.set(h,!0)):i[h]=i[h]==null?he(c):ye(i[h],c,!0))}),l&&l.each(function(c,h){ge.hasClass(h)&&!u.get(h)&&(s.push(h),u.set(h,!0))}),ge.topologicalTravel(s,ge.getAllClassMainTypes(),f,this);function f(c){var h=oE(this,c,ft(r[c])),v=a.get(c),d=v?l&&l.get(c)?"replaceMerge":"normalMerge":"replaceAll",g=FT(v,h,d);YT(g,c,ge),i[c]=null,a.set(c,null),o.set(c,0);var p=[],m=[],y=0,_;M(g,function(S,b){var w=S.existing,x=S.newOption;if(!x)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var C=c==="series",D=ge.getClass(c,S.keyInfo.subType,!C);if(!D)return;if(c==="tooltip"){if(_)return;_=!0}if(w&&w.constructor===D)w.name=S.keyInfo.name,w.mergeOption(x,this),w.optionUpdated(x,!1);else{var A=V({componentIndex:b},S.keyInfo);w=new D(x,this,this,A),V(w,A),S.brandNew&&(w.__requireNewView=!0),w.init(x,this,this),w.optionUpdated(null,!0)}}w?(p.push(w.option),m.push(w),y++):(p.push(void 0),m.push(void 0))},this),i[c]=p,a.set(c,m),o.set(c,y),c==="series"&&ls(this)}this._seriesIndices||ls(this)},e.prototype.getOption=function(){var r=he(this.option);return M(r,function(n,i){if(ge.hasClass(i)){for(var a=ft(n),o=a.length,s=!1,u=o-1;u>=0;u--)a[u]&&!ro(a[u])?s=!0:(a[u]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[xg],r},e.prototype.setTheme=function(r){this._theme=new Ie(r),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(r){this._payload=r},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(r,n){var i=this._componentsMap.get(r);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o<i.length;o++)if(i[o])return i[o]}}},e.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var i=r.index,a=r.id,o=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var u;return i!=null?(u=[],M(ft(i),function(l){s[l]&&u.push(s[l])})):a!=null?u=Tg("id",a,s):o!=null?u=Tg("name",o,s):u=Ye(s,function(l){return!!l}),Cg(u,r)},e.prototype.findComponents=function(r){var n=r.query,i=r.mainType,a=s(n),o=a?this.queryComponents(a):Ye(this._componentsMap.get(i),function(l){return!!l});return u(Cg(o,r));function s(l){var f=i+"Index",c=i+"Id",h=i+"Name";return l&&(l[f]!=null||l[c]!=null||l[h]!=null)?{mainType:i,index:l[f],id:l[c],name:l[h]}:null}function u(l){return r.filter?Ye(l,r.filter):l}},e.prototype.eachComponent=function(r,n,i){var a=this._componentsMap;if(fe(r)){var o=n,s=r;a.each(function(c,h){for(var v=0;c&&v<c.length;v++){var d=c[v];d&&s.call(o,h,d,d.componentIndex)}})}else for(var u=Q(r)?a.get(r):ee(r)?this.findComponents(r):null,l=0;u&&l<u.length;l++){var f=u[l];f&&n.call(i,f,f.componentIndex)}},e.prototype.getSeriesByName=function(r){var n=mr(r,null);return Ye(this._componentsMap.get("series"),function(i){return!!i&&n!=null&&i.name===n})},e.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},e.prototype.getSeriesByType=function(r){return Ye(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},e.prototype.getSeries=function(){return Ye(this._componentsMap.get("series"),function(r){return!!r})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(r,n){Ca(this),M(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];r.call(n,a,i)},this)},e.prototype.eachRawSeries=function(r,n){M(this._componentsMap.get("series"),function(i){i&&r.call(n,i,i.componentIndex)})},e.prototype.eachSeriesByType=function(r,n,i){Ca(this),M(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===r&&n.call(i,o,a)},this)},e.prototype.eachRawSeriesByType=function(r,n,i){return M(this.getSeriesByType(r),n,i)},e.prototype.isSeriesFiltered=function(r){return Ca(this),this._seriesIndicesMap.get(r.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(r,n){Ca(this);var i=[];M(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];r.call(n,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=oe(i)},e.prototype.restoreData=function(r){ls(this);var n=this._componentsMap,i=[];n.each(function(a,o){ge.hasClass(o)&&i.push(o)}),ge.topologicalTravel(i,ge.getAllClassMainTypes(),function(a){M(n.get(a),function(o){o&&(a!=="series"||!uE(o,r))&&o.restoreData()})})},e.internalField=(function(){ls=function(r){var n=r._seriesIndices=[];M(r._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),r._seriesIndicesMap=oe(n)},Ca=function(r){},wg=function(r,n){r.option={},r.option[xg]=sE,r._componentsMap=oe({series:[]}),r._componentsCount=oe();var i=n.aria;ee(i)&&i.enabled==null&&(i.enabled=!0),lE(n,r._theme.option),ye(n,G1,!1),r._mergeOption(n,null)}})(),e})(Ie);function uE(t,e){if(e){var r=e.seriesIndex,n=e.seriesId,i=e.seriesName;return r!=null&&t.componentIndex!==r||n!=null&&t.id!==n||i!=null&&t.name!==i}}function lE(t,e){var r=t.color&&!t.colorLayer;M(e,function(n,i){i==="colorLayer"&&r||i==="color"&&t.color||ge.hasClass(i)||(typeof n=="object"?t[i]=t[i]?ye(t[i],n,!1):he(n):t[i]==null&&(t[i]=n))})}function Tg(t,e,r){if(Y(e)){var n=oe();return M(e,function(a){if(a!=null){var o=mr(a,null);o!=null&&n.set(a,!0)}}),Ye(r,function(a){return a&&n.get(a[t])})}else{var i=mr(e,null);return Ye(r,function(a){return a&&i!=null&&a[t]===i})}}function Cg(t,e){return e.hasOwnProperty("subType")?Ye(t,function(r){return r&&r.subType===e.subType}):t}function Mg(t){var e=oe();return t&&M(ft(t.replaceMerge),function(r){e.set(r,!0)}),{replaceMergeMainTypeMap:e}}Yt(Sv,ov);var fE=/^(min|max)?(.+)$/,cE=(function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,r,n){e&&(M(ft(e.series),function(o){o&&o.data&&ht(o.data)&&Us(o.data)}),M(ft(e.dataset),function(o){o&&o.source&&ht(o.source)&&Us(o.source)})),e=he(e);var i=this._optionBackup,a=hE(e,r,!i);this._newBaseOption=a.baseOption,i?(a.timelineOptions.length&&(i.timelineOptions=a.timelineOptions),a.mediaList.length&&(i.mediaList=a.mediaList),a.mediaDefault&&(i.mediaDefault=a.mediaDefault)):this._optionBackup=a},t.prototype.mountOption=function(e){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],he(e?r.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var r,n=this._timelineOptions;if(n.length){var i=e.getComponent("timeline");i&&(r=he(n[i.getCurrentIndex()]))}return r},t.prototype.getMediaOption=function(e){var r=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!i.length&&!a)return s;for(var u=0,l=i.length;u<l;u++)vE(i[u].query,r,n)&&o.push(u);return!o.length&&a&&(o=[-1]),o.length&&!pE(o,this._currentMediaIndices)&&(s=re(o,function(f){return he(f===-1?a.option:i[f].option)})),this._currentMediaIndices=o,s},t})();function hE(t,e,r){var n=[],i,a,o=t.baseOption,s=t.timeline,u=t.options,l=t.media,f=!!t.media,c=!!(u||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((c||f)&&(t.options=t.media=null),a=t),f&&Y(l)&&M(l,function(v){v&&v.option&&(v.query?n.push(v):i||(i=v))}),h(a),M(u,function(v){return h(v)}),M(n,function(v){return h(v.option)});function h(v){M(e,function(d){d(v,r)})}return{baseOption:a,timelineOptions:u||[],mediaDefault:i,mediaList:n}}function vE(t,e,r){var n={width:e,height:r,aspectratio:e/r},i=!0;return M(t,function(a,o){var s=o.match(fE);if(!(!s||!s[1]||!s[2])){var u=s[1],l=s[2].toLowerCase();dE(n[l],a,u)||(i=!1)}}),i}function dE(t,e,r){return r==="min"?t>=e:r==="max"?t<=e:t===e}function pE(t,e){return t.join(",")===e.join(",")}var Zt=M,co=ee,Dg=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Sf(t){var e=t&&t.itemStyle;if(e)for(var r=0,n=Dg.length;r<n;r++){var i=Dg[r],a=e.normal,o=e.emphasis;a&&a[i]&&(t[i]=t[i]||{},t[i].normal?ye(t[i].normal,a[i]):t[i].normal=a[i],a[i]=null),o&&o[i]&&(t[i]=t[i]||{},t[i].emphasis?ye(t[i].emphasis,o[i]):t[i].emphasis=o[i],o[i]=null)}}function et(t,e,r){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var n=t[e].normal,i=t[e].emphasis;n&&(r?(t[e].normal=t[e].emphasis=null,Te(t[e],n)):t[e]=n),i&&(t.emphasis=t.emphasis||{},t.emphasis[e]=i,i.focus&&(t.emphasis.focus=i.focus),i.blurScope&&(t.emphasis.blurScope=i.blurScope))}}function Na(t){et(t,"itemStyle"),et(t,"lineStyle"),et(t,"areaStyle"),et(t,"label"),et(t,"labelLine"),et(t,"upperLabel"),et(t,"edgeLabel")}function ke(t,e){var r=co(t)&&t[e],n=co(r)&&r.textStyle;if(n)for(var i=0,a=Gd.length;i<a;i++){var o=Gd[i];n.hasOwnProperty(o)&&(r[o]=n[o])}}function Rt(t){t&&(Na(t),ke(t,"label"),t.emphasis&&ke(t.emphasis,"label"))}function gE(t){if(co(t)){Sf(t),Na(t),ke(t,"label"),ke(t,"upperLabel"),ke(t,"edgeLabel"),t.emphasis&&(ke(t.emphasis,"label"),ke(t.emphasis,"upperLabel"),ke(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(Sf(e),Rt(e));var r=t.markLine;r&&(Sf(r),Rt(r));var n=t.markArea;n&&Rt(n);var i=t.data;if(t.type==="graph"){i=i||t.nodes;var a=t.links||t.edges;if(a&&!ht(a))for(var o=0;o<a.length;o++)Rt(a[o]);M(t.categories,function(l){Na(l)})}if(i&&!ht(i))for(var o=0;o<i.length;o++)Rt(i[o]);if(e=t.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)Rt(s[o]);if(r=t.markLine,r&&r.data)for(var u=r.data,o=0;o<u.length;o++)Y(u[o])?(Rt(u[o][0]),Rt(u[o][1])):Rt(u[o]);t.type==="gauge"?(ke(t,"axisLabel"),ke(t,"title"),ke(t,"detail")):t.type==="treemap"?(et(t.breadcrumb,"itemStyle"),M(t.levels,function(l){Na(l)})):t.type==="tree"&&Na(t.leaves)}}function Pr(t){return Y(t)?t:t?[t]:[]}function Ag(t){return(Y(t)?t[0]:t)||{}}function mE(t,e){Zt(Pr(t.series),function(n){co(n)&&gE(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),Zt(r,function(n){Zt(Pr(t[n]),function(i){i&&(ke(i,"axisLabel"),ke(i.axisPointer,"label"))})}),Zt(Pr(t.parallel),function(n){var i=n&&n.parallelAxisDefault;ke(i,"axisLabel"),ke(i&&i.axisPointer,"label")}),Zt(Pr(t.calendar),function(n){et(n,"itemStyle"),ke(n,"dayLabel"),ke(n,"monthLabel"),ke(n,"yearLabel")}),Zt(Pr(t.radar),function(n){ke(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap)}),Zt(Pr(t.geo),function(n){co(n)&&(Rt(n),Zt(Pr(n.regions),function(i){Rt(i)}))}),Zt(Pr(t.timeline),function(n){Rt(n),et(n,"label"),et(n,"itemStyle"),et(n,"controlStyle",!0);var i=n.data;Y(i)&&M(i,function(a){ee(a)&&(et(a,"label"),et(a,"itemStyle"))})}),Zt(Pr(t.toolbox),function(n){et(n,"iconStyle"),Zt(n.feature,function(i){et(i,"iconStyle")})}),ke(Ag(t.axisPointer),"label"),ke(Ag(t.tooltip).axisPointer,"label")}function yE(t,e){for(var r=e.split(","),n=t,i=0;i<r.length&&(n=n&&n[r[i]],n!=null);i++);return n}function _E(t,e,r,n){for(var i=e.split(","),a=t,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];a[i[s]]==null&&(a[i[s]]=r)}function Pg(t){t&&M(SE,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var SE=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],bE=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],bf=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Ma(t){var e=t&&t.itemStyle;if(e)for(var r=0;r<bf.length;r++){var n=bf[r][1],i=bf[r][0];e[n]!=null&&(e[i]=e[n])}}function Ig(t){t&&t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(t.edgeDistance=t.margin)}function Lg(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function wE(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(t.emphasis.focus="adjacency"))}function W1(t,e){if(t)for(var r=0;r<t.length;r++)e(t[r]),t[r]&&W1(t[r].children,e)}function U1(t,e){mE(t,e),t.series=ft(t.series),M(t.series,function(r){if(ee(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),Ig(r.label);var i=r.data;if(i&&!ht(i))for(var a=0;a<i.length;a++)Ig(i[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=yE(r,"pointer.color");o!=null&&_E(r,"itemStyle.color",o)}else if(n==="bar"){Ma(r),Ma(r.backgroundStyle),Ma(r.emphasis);var i=r.data;if(i&&!ht(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(Ma(i[a]),Ma(i[a]&&i[a].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),Lg(r),W1(r.data,Lg)}else n==="graph"||n==="sankey"?wE(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&Te(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),Pg(r)}}),t.dataRange&&(t.visualMap=t.dataRange),M(bE,function(r){var n=t[r];n&&(Y(n)||(n=[n]),M(n,function(i){Pg(i)}))})}var xE=t0(TE);function TE(t){var e=oe();t.eachSeries(function(r){var n=r.get("stack");if(n){var i=e.get(n)||e.set(n,[]),a=r.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.push(o)}}),e.each(function(r){if(r.length!==0){var n=r[0].seriesModel,i=n.get("stackOrder")||"seriesAsc";i==="seriesDesc"&&r.reverse(),M(r,function(a,o){a.data.setCalculationInfo("stackedOnSeries",o>0?r[o-1].seriesModel:null)}),CE(r)}})}function CE(t){M(t,function(e,r){var n=[],i=[NaN,NaN],a=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,u=e.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(l,f,c){var h=o.get(e.stackedDimension,c);if(isNaN(h))return i;var v,d;s?d=o.getRawIndex(c):v=o.get(e.stackedByDimension,c);for(var g=NaN,p=r-1;p>=0;p--){var m=t[p];if(s||(d=m.data.rawIndexOf(m.stackedByDimension,v)),d>=0){var y=m.data.getByRawIndex(m.stackResultDimension,d);if(u==="all"||u==="positive"&&y>0||u==="negative"&&y<0||u==="samesign"&&h>=0&&y>0||u==="samesign"&&h<=0&&y<0){h=ET(h,y),g=y;break}}}return n[0]=h,n[1]=g,n})})}var Tt=(function(){function t(){this.group=new xt,this.uid=tl("viewComponent")}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,i){},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,i){},t.prototype.updateLayout=function(e,r,n,i){},t.prototype.updateVisual=function(e,r,n,i){},t.prototype.toggleBlurSeries=function(e,r,n){},t.prototype.eachRendered=function(e){var r=this.group;r&&r.traverse(e)},t})();hh(Tt);Eu(Tt);var Eg=Me(),Rg={itemStyle:Za(q0,!0),lineStyle:Za(X0,!0)},ME={lineStyle:"stroke",itemStyle:"fill"};function Y1(t,e){var r=t.visualStyleMapper||Rg[e];return r||Rg.itemStyle}function X1(t,e){var r=t.visualDrawType||ME[e];return r||"fill"}var DE={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=t.getModel(n),a=Y1(t,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var u=X1(t,n),l=o[u],f=fe(l)?l:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[u]||f||c){var h=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[u]||(o[u]=h,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||fe(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||fe(o.stroke)?h:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",u),!e.isSeriesFiltered(t)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var g=t.getDataParams(d),p=V({},o);p[u]=f(g),v.setItemVisual(d,"style",p)}}}},Da=new Ie,AE={createOnAllSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=Y1(t,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var u=o.getRawDataItem(s);if(u&&u[n]){Da.option=u[n];var l=i(Da),f=o.ensureUniqueItemVisual(s,"style");V(f,l),Da.option.decal&&(o.setItemVisual(s,"decal",Da.option.decal),Da.option.decal.dirty=!0),a in l&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},PE={performRawSeries:!0,overallReset:function(t){var e=oe();t.eachSeries(function(r){if(!r.isColorBySeries()){var n=r.type+"-"+r.getColorBy();Eg(r).scope=e.get(n)||e.set(n,{})}}),t.eachSeries(function(r){if(!r.isColorBySeries()){var n=r.getRawData(),i={},a=r.getData(),o=Eg(r).scope,s=r.visualStyleAccessPath||"itemStyle",u=X1(r,s);a.each(function(l){var f=a.getRawIndex(l);i[f]=l}),n.each(function(l){var f=i[l],c=a.getItemVisual(f,"colorFromPalette");if(c){var h=a.ensureUniqueItemVisual(f,"style"),v=n.getName(l)||l+"",d=n.count();h[u]=r.getColorFromPalette(v,o,d)}})}})}},fs=Math.PI;function IE(t,e){e=e||{},Te(e,{text:"loading",textColor:ce.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:ce.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new xt,n=new ze({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(n);var i=new yt({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new ze({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});r.add(a);var o;return e.showSpinner&&(o=new Co({shape:{startAngle:-fs/2,endAngle:-fs/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:fs*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:fs*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,u=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-u*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:u),f=t.getHeight()/2;e.showSpinner&&o.setShape({cx:l,cy:f}),a.setShape({x:l-u,y:f-u,width:u*2,height:u*2}),n.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},r.resize(),r}var q1=(function(){function t(e,r,n,i){this._stageTaskMap=oe(),this.ecInstance=e,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(e,r){e.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},t.prototype.getPerformArgs=function(e,r){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,u=s!=null?Math.ceil(s/o):null;return{step:o,modBy:u,modDataCount:s}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,r){var n=this._pipelineMap.get(e.uid),i=e.__preparePipelineContext?e.__preparePipelineContext(r,n):e0(e,r,n);e.pipelineContext=n.context=i},t.prototype.restorePipelines=function(e,r){var n=this,i=n._pipelineMap=oe();r.eachSeries(function(a){var o=e.painter.type==="canvas"&&a.getProgressive(),s=a.uid;i.set(s,{id:s,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:o&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),n._pipe(a,a.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,r=this.api.getModel(),n=this.api;M(this._allHandlers,function(i){var a=e.get(i.uid)||e.set(i.uid,{}),o="";Sr(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},t.prototype.prepareView=function(e,r,n,i){var a=e.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!e.incrementalPrepareRender,this._pipe(r,a)},t.prototype.performDataProcessorTasks=function(e,r){this._performStageTasks(this._dataProcessorHandlers,e,r,{block:!0})},t.prototype.performVisualTasks=function(e,r,n){this._performStageTasks(this._visualHandlers,e,r,n)},t.prototype._performStageTasks=function(e,r,n,i){i=i||{};var a=!1,o=this;M(e,function(u,l){if(!(i.visualType&&i.visualType!==u.visualType)){var f=o._stageTaskMap.get(u.uid),c=f.seriesTaskMap,h=f.overallTask;if(h){var v,d=h.agentStubMap;d.each(function(p){s(i,p)&&(p.dirty(),v=!0)}),v&&h.dirty(),o.updatePayload(h,n);var g=o.getPerformArgs(h,i.block);d.each(function(p){p.perform(g)}),h.perform(g)&&(a=!0)}else c&&c.each(function(p,m){s(i,p)&&p.dirty();var y=o.getPerformArgs(p,i.block);y.skip=!u.performRawSeries&&r.isSeriesFiltered(p.context.model),o.updatePayload(p,n),p.perform(y)&&(a=!0)})}});function s(u,l){return u.setDirty&&(!u.dirtyMap||u.dirtyMap.get(l.__pipeline.id))}this.unfinished=a||this.unfinished},t.prototype.performSeriesTasks=function(e){var r;e.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var r=e.tail;do{if(r.__block){e.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},t.prototype.updatePayload=function(e,r){r!=="remain"&&(e.context.payload=r)},t.prototype._createSeriesStageTask=function(e,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=oe(),u=e.seriesType,l=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(f):u?n.eachRawSeriesByType(u,f):l&&l(n,i).each(f);function f(c){var h=c.uid,v=s.set(h,o&&o.get(h)||Ya({plan:kE,reset:NE,count:FE}));v.context={model:c,ecModel:n,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:a},a._pipe(c,v)}},t.prototype._createOverallStageTask=function(e,r,n,i){var a=this,o=r.overallTask=r.overallTask||Ya({reset:LE});o.context={ecModel:n,api:i,overallReset:e.overallReset,scheduler:a};var s=o.agentStubMap,u=o.agentStubMap=oe(),l=e.seriesType,f=e.getTargetSeries,c=e.dirtyOnOverallProgress,h=!1,v="";Sr(!e.createOnAllSeries,v),l?n.eachRawSeriesByType(l,d):f?f(n,i).each(d):M(n.getSeries(),d);function d(g){var p=g.uid,m=u.set(p,s&&s.get(p)||(h=!0,Ya({reset:EE,onDirty:OE})));m.context={model:g,dirtyOnOverallProgress:c},m.agent=o,m.__block=c,a._pipe(g,m)}h&&o.dirty()},t.prototype._pipe=function(e,r){var n=e.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=r),i.tail&&i.tail.pipe(r),i.tail=r,r.__idxInPipeline=i.count++,r.__pipeline=i},t.wrapStageHandler=function(e,r){return fe(e)&&(e={overallReset:e,seriesType:zE(e)}),e.uid=tl("stageHandler"),r&&(e.visualType=r),e},t})();function LE(t){t.overallReset(t.ecModel,t.api,t.payload)}function EE(t){return t.dirtyOnOverallProgress&&RE}function RE(){this.agent.dirty(),this.getDownstream().dirty()}function OE(){this.agent&&this.agent.dirty()}function kE(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function NE(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=ft(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?re(e,function(r,n){return j1(n)}):BE}var BE=j1(0);function j1(t){return function(e,r){var n=r.data,i=r.resetDefines[t];if(i&&i.dataEach)for(var a=e.start;a<e.end;a++)i.dataEach(n,a);else i&&i.progress&&i.progress(e,n)}}function FE(t){return t.data.count()}function zE(t){bu=null;try{t(ho,$1)}catch(e){}return bu}var ho={},$1={},bu;Z1(ho,Sv);Z1($1,a0);ho.eachSeriesByType=ho.eachRawSeriesByType=function(t){bu=t};ho.eachComponent=function(t){t.mainType==="series"&&t.subType&&(bu=t.subType)};function Z1(t,e){for(var r in e.prototype)t[r]=je}var G=ce.darkColor,Og=G.background,Aa=function(){return{axisLine:{lineStyle:{color:G.axisLine}},splitLine:{lineStyle:{color:G.axisSplitLine}},splitArea:{areaStyle:{color:[G.backgroundTint,G.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:G.axisMinorSplitLine}},axisLabel:{color:G.axisLabel},axisName:{}}},kg={label:{color:G.secondary},itemStyle:{borderColor:G.borderTint},dividerLineStyle:{color:G.border}},K1={darkMode:!0,color:G.theme,backgroundColor:Og,axisPointer:{lineStyle:{color:G.border},crossStyle:{color:G.borderShade},label:{color:G.tertiary}},legend:{textStyle:{color:G.secondary},pageTextStyle:{color:G.tertiary}},textStyle:{color:G.secondary},title:{textStyle:{color:G.primary},subtextStyle:{color:G.quaternary}},toolbox:{iconStyle:{borderColor:G.accent50},feature:{dataView:{backgroundColor:Og,textColor:G.primary,textareaColor:G.background,textareaBorderColor:G.border,buttonColor:G.accent50,buttonTextColor:G.neutral00}}},tooltip:{backgroundColor:G.neutral20,defaultBorderColor:G.border,textStyle:{color:G.tertiary}},dataZoom:{borderColor:G.accent10,textStyle:{color:G.tertiary},brushStyle:{color:G.backgroundTint},handleStyle:{color:G.neutral00,borderColor:G.accent20},moveHandleStyle:{color:G.accent40},emphasis:{handleStyle:{borderColor:G.accent50}},dataBackground:{lineStyle:{color:G.accent30},areaStyle:{color:G.accent20}},selectedDataBackground:{lineStyle:{color:G.accent50},areaStyle:{color:G.accent30}}},visualMap:{textStyle:{color:G.secondary},handleStyle:{borderColor:G.neutral30}},timeline:{lineStyle:{color:G.accent10},label:{color:G.tertiary},controlStyle:{color:G.accent30,borderColor:G.accent30}},calendar:{itemStyle:{color:G.neutral00,borderColor:G.neutral20},dayLabel:{color:G.tertiary},monthLabel:{color:G.secondary},yearLabel:{color:G.secondary}},matrix:{x:kg,y:kg,backgroundColor:{borderColor:G.axisLine},body:{itemStyle:{borderColor:G.borderTint}}},timeAxis:Aa(),logAxis:Aa(),valueAxis:Aa(),categoryAxis:Aa(),line:{symbol:"circle"},graph:{color:G.theme},gauge:{title:{color:G.secondary},axisLine:{lineStyle:{color:[[1,G.neutral05]]}},axisLabel:{color:G.axisLabel},detail:{color:G.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:G.background}},radar:(function(){var t=Aa();return t.axisName={color:G.axisLabel},t.axisLine.lineStyle.color=G.neutral20,t})(),treemap:{breadcrumb:{itemStyle:{color:G.neutral20,textStyle:{color:G.secondary}},emphasis:{itemStyle:{color:G.neutral30}}}},sunburst:{itemStyle:{borderColor:G.background}},map:{itemStyle:{borderColor:G.border,areaColor:G.neutral10},label:{color:G.tertiary},emphasis:{label:{color:G.primary},itemStyle:{areaColor:G.highlight}},select:{label:{color:G.primary},itemStyle:{areaColor:G.highlight}}},geo:{itemStyle:{borderColor:G.border,areaColor:G.neutral10},emphasis:{label:{color:G.primary},itemStyle:{areaColor:G.highlight}},select:{label:{color:G.primary},itemStyle:{color:G.highlight}}}};K1.categoryAxis.splitLine.show=!1;var HE=(function(){function t(){}return t.prototype.normalizeQuery=function(e){var r={},n={},i={};if(Q(e)){var a=dr(e);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};M(e,function(u,l){for(var f=!1,c=0;c<o.length;c++){var h=o[c],v=l.lastIndexOf(h);if(v>0&&v===l.length-h.length){var d=l.slice(0,v);d!=="data"&&(r.mainType=d,r[h.toLowerCase()]=u,f=!0)}}s.hasOwnProperty(l)&&(n[l]=u,f=!0),f||(i[l]=u)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},t.prototype.filter=function(e,r){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var u=r.cptQuery,l=r.dataQuery;return f(u,o,"mainType")&&f(u,o,"subType")&&f(u,o,"index","componentIndex")&&f(u,o,"name")&&f(u,o,"id")&&f(l,a,"name")&&f(l,a,"dataIndex")&&f(l,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,r.otherQuery,i,a));function f(c,h,v,d){return c[v]==null||h[d||v]===c[v]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t})(),Uc=["symbol","symbolSize","symbolRotate","symbolOffset"],Ng=Uc.concat(["symbolKeepAspect"]),VE={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData();if(t.legendIcon&&r.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o<Uc.length;o++){var s=Uc[o],u=t.get(s);fe(u)?(a=!0,i[s]=u):n[s]=u}if(n.symbol=n.symbol||t.defaultSymbol,r.setVisual(V({legendIcon:t.legendIcon||n.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},n)),e.isSeriesFiltered(t))return;var l=Ae(i);function f(c,h){for(var v=t.getRawValue(h),d=t.getDataParams(h),g=0;g<l.length;g++){var p=l[g];c.setItemVisual(h,p,i[p](v,d))}}return{dataEach:a?f:null}}},GE={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.hasSymbolVisual||e.isSeriesFiltered(t))return;var r=t.getData();function n(i,a){for(var o=i.getItemModel(a),s=0;s<Ng.length;s++){var u=Ng[s],l=o.getShallow(u,!0);l!=null&&i.setItemVisual(a,u,l)}}return{dataEach:r.hasItemOption?n:null}}};function WE(t,e,r){switch(r){case"color":var n=t.getItemVisual(e,"style");return n[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,r)}}function UE(t,e){switch(e){case"color":var r=t.getVisual("style");return r[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function Ba(t,e,r){for(var n;t&&!(e(t)&&(n=t,r));)t=t.__hostTarget||t.parent;return n}var Lt=new wr,Q1={};function YE(t,e){Q1[t]=e}function J1(t){return Q1[t]}var XE=Math.round(Math.random()*9),qE=typeof Object.defineProperty=="function",jE=(function(){function t(){this._id="__ec_inner_"+XE++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,r){var n=this._guard(e);return qE?Object.defineProperty(n,this._id,{value:r,enumerable:!1,configurable:!0}):n[this._id]=r,this},t.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},t.prototype.has=function(e){return!!this._guard(e)[this._id]},t.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},t})();function Wn(t){return isFinite(t)}function $E(t,e,r){var n=e.x==null?0:e.x,i=e.x2==null?1:e.x2,a=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(n=n*r.width+r.x,i=i*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),n=Wn(n)?n:0,i=Wn(i)?i:1,a=Wn(a)?a:0,o=Wn(o)?o:0;var s=t.createLinearGradient(n,a,i,o);return s}function ZE(t,e,r){var n=r.width,i=r.height,a=Math.min(n,i),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,u=e.r==null?.5:e.r;e.global||(o=o*n+r.x,s=s*i+r.y,u=u*a),o=Wn(o)?o:.5,s=Wn(s)?s:.5,u=u>=0&&Wn(u)?u:.5;var l=t.createRadialGradient(o,s,0,o,s,u);return l}function Yc(t,e,r){for(var n=e.type==="radial"?ZE(t,e,r):$E(t,e,r),i=e.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function KE(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!0;return!1}function cs(t){return parseInt(t,10)}function hs(t,e,r){var n=["width","height"][e],i=["clientWidth","clientHeight"][e],a=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(t);return(t[i]||cs(s[n])||cs(t.style[n]))-(cs(s[a])||0)-(cs(s[o])||0)||0}function QE(t,e){return!t||t==="solid"||!(e>0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:Le(t)?[t]:Y(t)?t:null}function eS(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&QE(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(r){var i=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;i&&i!==1&&(r=re(r,function(a){return a/i}),n/=i)}return[r,n]}var JE=new Yi(!0);function wu(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function Bg(t){return typeof t=="string"&&t!=="none"}function xu(t){var e=t.fill;return e!=null&&e!=="none"}function Fg(t,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=r}else t.fill()}function zg(t,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=r}else t.stroke()}function Xc(t,e,r){var n=cy(e.image,e.__image,r);if(Ru(n)){var i=t.createPattern(n,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*sy),a.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(a)}return i}}function eR(t,e,r,n,i){var a,o=wu(r),s=xu(r),u=r.strokePercent,l=u<1,f=!e.path;(!e.silent||l)&&f&&e.createPathProxy();var c=e.path||JE,h=e.__dirty;if(!n){var v=r.fill,d=r.stroke,g=s&&!!v.colorStops,p=o&&!!d.colorStops,m=s&&!!v.image,y=o&&!!d.image,_=void 0,S=void 0,b=void 0,w=void 0,x=void 0;(g||p)&&(x=e.getBoundingRect()),g&&(_=h?Yc(t,v,x):e.__canvasFillGradient,e.__canvasFillGradient=_),p&&(S=h?Yc(t,d,x):e.__canvasStrokeGradient,e.__canvasStrokeGradient=S),m&&(b=h||!e.__canvasFillPattern?Xc(t,v,e):e.__canvasFillPattern,e.__canvasFillPattern=b),y&&(w=h||!e.__canvasStrokePattern?Xc(t,d,e):e.__canvasStrokePattern,e.__canvasStrokePattern=w),g?t.fillStyle=_:m&&(b?t.fillStyle=b:s=!1),p?t.strokeStyle=S:y&&(w?t.strokeStyle=w:o=!1)}var C=e.getGlobalScale();c.setScale(C[0],C[1],e.segmentIgnoreThreshold);var D,A;t.setLineDash&&r.lineDash&&(a=eS(e),D=a[0],A=a[1]);var T=!0;(f||h&Di)&&(c.setDPR(t.dpr),l?c.setContext(null):(c.setContext(t),T=!1),c.reset(),e.buildPath(c,e.shape,n),c.toStatic(),e.pathUpdated()),T&&c.rebuildPath(t,l?u:1),D&&(t.setLineDash(D),t.lineDashOffset=A),n?(i.batchFill=s,i.batchStroke=o):r.strokeFirst?(o&&zg(t,r),s&&Fg(t,r)):(s&&Fg(t,r),o&&zg(t,r)),D&&t.setLineDash([])}function tR(t,e,r){var n=e.__image=cy(r.image,e.__image,e,e.onload);if(!(!n||!Ru(n))){var i=r.x||0,a=r.y||0,o=e.getWidth(),s=e.getHeight(),u=n.width/n.height;if(o==null&&s!=null?o=s*u:s==null&&o!=null?s=o/u:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var l=r.sx||0,f=r.sy||0;t.drawImage(n,l,f,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var l=r.sx,f=r.sy,c=o-l,h=s-f;t.drawImage(n,l,f,c,h,i,a,o,s)}else t.drawImage(n,i,a,o,s)}}function rR(t,e,r){var n,i=r.text;if(i!=null&&(i+=""),i){t.font=r.font||on,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var a=void 0,o=void 0;t.setLineDash&&r.lineDash&&(n=eS(e),a=n[0],o=n[1]),a&&(t.setLineDash(a),t.lineDashOffset=o),r.strokeFirst?(wu(r)&&t.strokeText(i,r.x,r.y),xu(r)&&t.fillText(i,r.x,r.y)):(xu(r)&&t.fillText(i,r.x,r.y),wu(r)&&t.strokeText(i,r.x,r.y)),a&&t.setLineDash([])}}var Hg=["shadowBlur","shadowOffsetX","shadowOffsetY"],Vg=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function tS(t,e,r,n,i){var a=!1;if(!n&&(r=r||{},e===r))return!1;if(n||e.opacity!==r.opacity){ot(t,i),a=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?$n.opacity:o}(n||e.blend!==r.blend)&&(a||(ot(t,i),a=!0),t.globalCompositeOperation=e.blend||$n.blend);for(var s=0;s<Hg.length;s++){var u=Hg[s];(n||e[u]!==r[u])&&(a||(ot(t,i),a=!0),t[u]=t.dpr*(e[u]||0))}return(n||e.shadowColor!==r.shadowColor)&&(a||(ot(t,i),a=!0),t.shadowColor=e.shadowColor||$n.shadowColor),a}function Gg(t,e,r,n,i){var a=e.style,o=n?null:r&&r.style||{};if(a===o)return!1;var s=tS(t,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(ot(t,i),s=!0),Bg(a.fill)&&(t.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(ot(t,i),s=!0),Bg(a.stroke)&&(t.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(ot(t,i),s=!0),t.globalAlpha=a.opacity==null?1:a.opacity),e.hasStroke()){var u=a.lineWidth,l=u/(a.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==l&&(s||(ot(t,i),s=!0),t.lineWidth=l)}for(var f=0;f<Vg.length;f++){var c=Vg[f],h=c[0];(n||a[h]!==o[h])&&(s||(ot(t,i),s=!0),t[h]=a[h]||c[1])}return s}function nR(t,e,r,n,i){return tS(t,e.style,r&&r.style,n,i)}function rS(t,e){var r=e.transform,n=t.dpr||1;r?t.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):t.setTransform(n,0,0,n,0,0)}function iR(t,e,r){for(var n=!1,i=0;i<t.length;i++){var a=t[i];n=n||a.isZeroArea(),rS(e,a),e.beginPath(),a.buildPath(e,a.shape),e.clip()}r.allClipped=n}function aR(t,e){return 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]:!(!t&&!e)}var Wg=1,Ug=2,Yg=3,Xg=4;function oR(t){var e=xu(t),r=wu(t);return!(t.lineDash||!(+e^+r)||e&&typeof t.fill!="string"||r&&typeof t.stroke!="string"||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function ot(t,e){e.batchFill&&(e.batchFill=!1,t.fill()),e.batchStroke&&(e.batchStroke=!1,t.stroke())}function bv(t,e){var r={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};Un(t,e,r),Hi(t,r)}function Un(t,e,r){var n=e.transform;if(!e.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){e.__dirty&=~mt,e.__isRendered=!1;return}var i=e.__clipPaths,a=r.prevElClipPaths,o=e.style,s=!1,u=!1;if((!a||KE(i,a))&&(a&&(ot(t,r),t.restore(),u=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),i&&i.length&&(ot(t,r),t.save(),iR(i,t,r),s=!0,r.prevElClipPaths=i)),r.allClipped){e.__dirty&=~mt,e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(r.beforeBrushParam),e.innerBeforeBrush();var l=r.prevEl;l||(u=s=!0);var f=e instanceof Ce&&e.autoBatch&&oR(o);s||aR(n,l.transform)?(ot(t,r),rS(t,e)):f||ot(t,r),e instanceof Ce?(r.lastDrawType!==Wg&&(u=!0,r.lastDrawType=Wg),Gg(t,e,l,u,r),(!f||!r.batchFill&&!r.batchStroke)&&t.beginPath(),eR(t,e,o,f,r)):e instanceof eu?(r.lastDrawType!==Yg&&(u=!0,r.lastDrawType=Yg),Gg(t,e,l,u,r),rR(t,e,o)):e instanceof cn?(r.lastDrawType!==Ug&&(u=!0,r.lastDrawType=Ug),nR(t,e,l,u,r),tR(t,e,o)):e.getTemporalDisplayables&&(r.lastDrawType!==Xg&&(u=!0,r.lastDrawType=Xg),sR(t,e,r)),e.innerAfterBrush(),e.afterBrush&&(f&&ot(t,r),e.afterBrush()),r.prevEl=e,e.__dirty=0,e.__isRendered=!0}function Hi(t,e){ot(t,e),e.prevElClipPaths&&t.restore()}function sR(t,e,r){var n=e.getDisplayables(),i=e.getTemporalDisplayables();t.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover,beforeBrushParam:{}},o,s;for(o=e.getCursor(),s=n.length;o<s;o++){var u=n[o];u.beforeBrush&&u.beforeBrush(r.beforeBrushParam),u.innerBeforeBrush(),Un(t,u,a),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),a.prevEl=u}Hi(t,a);for(var l=0,f=i.length;l<f;l++){var u=i[l];u.beforeBrush&&u.beforeBrush(r.beforeBrushParam),u.innerBeforeBrush(),Un(t,u,a),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),a.prevEl=u}Hi(t,a),e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var wf=new jE,qg=new Wi(100),jg=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function $g(t,e){if(t==="none")return null;var r=e.getDevicePixelRatio(),n=e.getZr(),i=n.painter.type==="svg";t.dirty&&wf.delete(t);var a=wf.get(t);if(a)return a;var o=Te(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return u(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/r,wf.set(t,s),t.dirty=!1,s;function u(l){for(var f=[r],c=!0,h=0;h<jg.length;++h){var v=o[jg[h]];if(v!=null&&!Y(v)&&!Q(v)&&!Le(v)&&typeof v!="boolean"){c=!1;break}f.push(v)}var d;if(c){d=f.join(",")+(i?"-svg":"");var g=qg.get(d);g&&(i?l.svgElement=g:l.image=g)}var p=iS(o.dashArrayX),m=uR(o.dashArrayY),y=nS(o.symbol),_=lR(p),S=aS(m),b=!i&&qe.createCanvas(),w=i&&{tag:"g",attrs:{},key:"dcl",children:[]},x=D(),C;b&&(b.width=x.width*r,b.height=x.height*r,C=b.getContext("2d")),A(),c&&qg.put(d,b||w),l.image=b,l.svgElement=w,l.svgWidth=x.width,l.svgHeight=x.height;function D(){for(var T=1,k=0,P=_.length;k<P;++k)T=zd(T,_[k]);for(var O=1,k=0,P=y.length;k<P;++k)O=zd(O,y[k].length);T*=O;var B=S*_.length*y.length;return{width:Math.max(1,Math.min(T,o.maxTileWidth)),height:Math.max(1,Math.min(B,o.maxTileHeight))}}function A(){C&&(C.clearRect(0,0,b.width,b.height),o.backgroundColor&&(C.fillStyle=o.backgroundColor,C.fillRect(0,0,b.width,b.height)));for(var T=0,k=0;k<m.length;++k)T+=m[k];if(T<=0)return;for(var P=-S,O=0,B=0,F=0;P<x.height;){if(O%2===0){for(var $=B/2%y.length,W=0,z=0,q=0;W<x.width*2;){for(var H=0,k=0;k<p[F].length;++k)H+=p[F][k];if(H<=0)break;if(z%2===0){var X=(1-o.symbolSize)*.5,ne=W+p[F][z]*X,K=P+m[O]*X,ue=p[F][z]*o.symbolSize,te=m[O]*o.symbolSize,He=q/2%y[$].length;Ze(ne,K,ue,te,y[$][He])}W+=p[F][z],++q,++z,z===p[F].length&&(z=0)}++F,F===p.length&&(F=0)}P+=m[O],++B,++O,O===m.length&&(O=0)}function Ze(E,R,I,L,N){var Z=i?1:r,J=uv(N,E*Z,R*Z,I*Z,L*Z,o.color,o.symbolKeepAspect);if(i){var ve=n.painter.renderOneToVNode(J);ve&&w.children.push(ve)}else bv(C,J)}}}}function nS(t){if(!t||t.length===0)return[["rect"]];if(Q(t))return[[t]];for(var e=!0,r=0;r<t.length;++r)if(!Q(t[r])){e=!1;break}if(e)return nS([t]);for(var n=[],r=0;r<t.length;++r)Q(t[r])?n.push([t[r]]):n.push(t[r]);return n}function iS(t){if(!t||t.length===0)return[[0,0]];if(Le(t)){var e=Math.ceil(t);return[[e,e]]}for(var r=!0,n=0;n<t.length;++n)if(!Le(t[n])){r=!1;break}if(r)return iS([t]);for(var i=[],n=0;n<t.length;++n)if(Le(t[n])){var e=Math.ceil(t[n]);i.push([e,e])}else{var e=re(t[n],function(s){return Math.ceil(s)});e.length%2===1?i.push(e.concat(e)):i.push(e)}return i}function uR(t){if(!t||typeof t=="object"&&t.length===0)return[0,0];if(Le(t)){var e=Math.ceil(t);return[e,e]}var r=re(t,function(n){return Math.ceil(n)});return t.length%2?r.concat(r):r}function lR(t){return re(t,function(e){return aS(e)})}function aS(t){for(var e=0,r=0;r<t.length;++r)e+=t[r];return t.length%2===1?e*2:e}var fR=t0(cR);function cR(t,e){t.eachRawSeries(function(r){if(!t.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var u=n.ensureUniqueItemVisual(o,"style");u.decal=$g(s,e)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=$g(i,e)}}})}var hR="6.1.0",vR={zrender:"6.1.0"},dR=1,pR=800,gR=900,mR=920,yR=1e3,_R=2e3,Zg=5e3,oS=1e3,SR=1100,wv=2e3,sS=3e3,bR=4e3,cl=4500,wR=4600,xR=5e3,TR=6e3,uS=7e3,lS={PROCESSOR:{SERIES_FILTER:pR,AXIS_STATISTICS:mR,FILTER:yR,STATISTIC:Zg,STATISTICS:Zg},VISUAL:{LAYOUT:oS,PROGRESSIVE_LAYOUT:SR,GLOBAL:wv,CHART:sS,POST_CHART_LAYOUT:wR,COMPONENT:bR,BRUSH:xR,CHART_ITEM:cl,ARIA:TR,DECAL:uS}},Be="__flagInMainProcess",vs="__mainProcessVersion",We="__pendingUpdate",xf="__needsUpdateStatus",Kg=/^[a-zA-Z0-9_]+$/,Tf="__connectUpdateStatus",Qg=0,CR=1,MR=2;function fS(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(this.isDisposed()){this.id;return}return hS(this,t,e)}}function cS(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return hS(this,t,e)}}function hS(t,e,r){return r[0]=r[0]&&r[0].toLowerCase(),wr.prototype[e].apply(t,r)}var vS=(function(t){j(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(wr),dS=vS.prototype;dS.on=cS("on");dS.off=cS("off");var Bn,Cf,ds,Ir,ps,Mf,Df,Ti,Ci,Jg,em,Af,tm,gs,rm,pS,At,nm,Mi,Tu=(function(t){j(e,t);function e(r,n,i){var a=t.call(this,new HE)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},a.__v_skip=!0,a._dom=r;var o="canvas",s="auto",u=!1;a[vs]=1,i.ssr&&z1(function(h){var v=we(h),d=v.dataIndex;if(d!=null){var g=oe();return g.set("series_index",v.seriesIndex),g.set("data_index",d),v.ssrType&&g.set("ssr_type",v.ssrType),g}});var l=a._zr=Gc(r,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:ie(i.useDirtyRect,u),useCoarsePointer:ie(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=fl(Pe(l.flush,l),17),a._updateTheme(n),a._locale=ED(i.locale||S_),a._coordSysMgr=new el;var f=a._api=rm(a);function c(h,v){return h.__prio-v.__prio}return Fs(Mu,c),Fs($c,c),a._scheduler=new q1(a,f,$c,Mu),a._messageCenter=new vS,a._initEvents(),a.resize=Pe(a.resize,a),l.animation.on("frame",a._onframe,a),Jg(l,a),em(l,a),Us(a),a}return e.prototype._onframe=function(){if(!this._disposed){var r=this._scheduler,n=this._model,i=this._api;if(nm(this),this[We]){var a=this[We].silent;this[Be]=!0,Mi(this);try{Bn(this),Ir.update.call(this,null,this[We].updateParams)}catch(u){throw this[Be]=!1,this[We]=null,u}this._zr.flush(),this[Be]=!1,this[We]=null,Ti.call(this,a),Ci.call(this,a)}else if(r.unfinished){var o=dR;do{r.unfinished=!1;var s=qe.getTime();r.performSeriesTasks(n),r.performDataProcessorTasks(n),Mf(this,n),r.performVisualTasks(n),gs(this,this._model,i,"remain",{}),o-=qe.getTime()-s}while(o>0&&r.unfinished);r.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(r,n,i){if(!this[Be]){if(this._disposed){this.id;return}var a,o,s;if(ee(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Be]=!0,Mi(this),!this._model||n){var u=new cE(this._api),l=this._theme,f=this._model=new Sv;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,l,this._locale,u)}this._model.setOption(r,{replaceMerge:o},Zc);var c={seriesTransition:s,optionChanged:!0};if(i)this[We]={silent:a,updateParams:c},this[Be]=!1,this.getZr().wakeUp();else{try{Bn(this),Ir.update.call(this,null,c)}catch(h){throw this[We]=null,this[Be]=!1,h}this._ssr||this._zr.flush(),this[We]=null,this[Be]=!1,Ti.call(this,a),Ci.call(this,a)}}},e.prototype.setTheme=function(r,n){if(!this[Be]){if(this._disposed){this.id;return}var i=this._model;if(i){var a=n&&n.silent,o=null;this[We]&&(a==null&&(a=this[We].silent),o=this[We].updateParams,this[We]=null),this[Be]=!0,Mi(this);try{this._updateTheme(r),i.setTheme(this._theme),Bn(this),Ir.update.call(this,{type:"setTheme"},o)}catch(s){throw this[Be]=!1,s}this[Be]=!1,Ti.call(this,a),Ci.call(this,a)}}},e.prototype._updateTheme=function(r){Q(r)&&(r=gS[r]),r&&(r=he(r),r&&U1(r,!0),this._theme=r)},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||le.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},e.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},e.prototype.getSvgDataURL=function(){var r=this._zr,n=r.storage.getDisplayList();return M(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()},e.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;M(n,function(u){i.eachComponent({mainType:u},function(l){var f=o._componentsMap[l.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return M(a,function(u){u.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(Du[i]){var u=s,l=s,f=-s,c=-s,h=[],v=r&&r.pixelRatio||this.getDevicePixelRatio();M(Qn,function(_,S){if(_.group===i){var b=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(he(r)),w=_.getDom().getBoundingClientRect();u=a(w.left,u),l=a(w.top,l),f=o(w.right,f),c=o(w.bottom,c),h.push({dom:b,left:w.left,top:w.top})}}),u*=v,l*=v,f*=v,c*=v;var d=f-u,g=c-l,p=qe.createCanvas(),m=Gc(p,{renderer:n?"svg":"canvas"});if(m.resize({width:d,height:g}),n){var y="";return M(h,function(_){var S=_.left-u,b=_.top-l;y+='<g transform="translate('+S+","+b+')">'+_.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&m.painter.setBackgroundColor(r.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return r.connectedBackgroundColor&&m.add(new ze({shape:{x:0,y:0,width:d,height:g},style:{fill:r.connectedBackgroundColor}})),M(h,function(_){var S=new cn({style:{x:_.left*v-u,y:_.top*v-l,image:_.dom}});m.add(S)}),m.refreshImmediately(),p.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},e.prototype.convertToPixel=function(r,n,i){return ps(this,"convertToPixel",r,n,i)},e.prototype.convertToLayout=function(r,n,i){return ps(this,"convertToLayout",r,n,i)},e.prototype.convertFromPixel=function(r,n,i){return ps(this,"convertFromPixel",r,n,i)},e.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=Vl(i,r);return M(o,function(s,u){u.indexOf("Models")>=0&&M(s,function(l){var f=l.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if(u==="seriesModels"){var c=this._chartsMap[l.__viewId];c&&c.containPoint&&(a=a||c.containPoint(n,l))}},this)},this),!!a},e.prototype.getVisual=function(r,n){var i=this._model,a=Vl(i,r,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),u=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return u!=null?WE(s,u,n):UE(s,n)},e.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},e.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},e.prototype._initEvents=function(){var r=this;M(DR,function(i){var a=function(o){var s=r.getModel(),u=o.target,l,f=i==="globalout";if(f?l={}:u&&Ba(u,function(g){var p=we(g);if(p&&p.dataIndex!=null){var m=p.dataModel||s.getSeriesByIndex(p.seriesIndex);return l=m&&m.getDataParams(p.dataIndex,p.dataType,u)||{},!0}else if(p.eventData)return l=V({},p.eventData),!0},!0),l){var c=l.componentType,h=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",h=l.seriesIndex);var v=c&&h!=null&&s.getComponent(c,h),d=v&&r[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];l.event=o,l.type=i,r._$eventProcessor.eventInfo={targetEl:u,packedEvent:l,model:v,view:d},r.trigger(i,l)}};a.zrEventfulCallAtLast=!0,r._zr.on(i,a,r)});var n=this._messageCenter;M(jc,function(i,a){n.on(a,function(o){r.trigger(a,o)})}),xL(n,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&Zy(this.getDom(),Tv,"");var n=this,i=n._api,a=n._model;M(n._componentsViews,function(o){o.dispose(a,i)}),M(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Qn[n.id]},e.prototype.resize=function(r){if(!this[Be]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=r&&r.silent;this[We]&&(a==null&&(a=this[We].silent),i=!0,this[We]=null),this[Be]=!0,Mi(this);try{i&&Bn(this),Ir.update.call(this,{type:"resize",animation:V({duration:0},r&&r.animation)})}catch(o){throw this[Be]=!1,o}this[Be]=!1,Ti.call(this,a),Ci.call(this,a)}}},e.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(ee(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!Kc[r]){var i=Kc[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(r){var n=V({},r);return n.type=qc[r.type],n},e.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(ee(n)||(n={silent:!!n}),!!Cu[r.type]&&this._model){if(this[Be]){this._pendingActions.push(r);return}var i=n.silent;Df.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&le.browser.weChat&&this._throttledZrFlush(),Ti.call(this,i),Ci.call(this,i)}},e.prototype.updateLabelLayout=function(){Lt.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=(function(){Bn=function(c){WP(c._model);var h=c._scheduler;h.restorePipelines(c._zr,c._model),h.prepareStageTasks(),Cf(c,!0),Cf(c,!1),h.plan()},Cf=function(c,h){for(var v=c._model,d=c._scheduler,g=h?c._componentsViews:c._chartsViews,p=h?c._componentsMap:c._chartsMap,m=c._zr,y=c._api,_=0;_<g.length;_++)g[_].__alive=!1;h?v.eachComponent(function(w,x){w!=="series"&&S(x)}):v.eachSeries(S);function S(w){var x=w.__requireNewView;w.__requireNewView=!1;var C="_ec_"+w.id+"_"+w.type,D=!x&&p[C];if(!D){var A=dr(w.type),T=h?Tt.getClass(A.main,A.sub):tr.getClass(A.sub);D=new T,D.init(v,y),p[C]=D,g.push(D),m.add(D.group)}w.__viewId=D.__id=C,D.__alive=!0,D.__model=w,D.group.__ecComponentInfo={mainType:w.mainType,index:w.componentIndex},!h&&d.prepareView(D,w,v,y)}for(var _=0;_<g.length;){var b=g[_];b.__alive?_++:(!h&&b.renderTask.dispose(),m.remove(b.group),b.dispose(v,y),g.splice(_,1),p[b.__id]===b&&delete p[b.__id],b.__id=b.group.__ecComponentInfo=null)}},ds=function(c,h,v,d,g){var p=c._model;if(p.setUpdatePayload(v),!d){M([].concat(c._componentsViews).concat(c._chartsViews),S);return}var m=jT(v,d,g),y=v.excludeSeriesId,_;y!=null&&(_=oe(),M(ft(y),function(b){var w=mr(b,null);w!=null&&_.set(w,!0)})),p&&p.eachComponent(m,function(b){var w=_&&_.get(b.id)!=null;if(!w)if(Kd(v))if(b instanceof Ut)v.type===Zn&&!v.notBlur&&!b.get(["emphasis","disabled"])&&yC(b,v,c._api);else{var x=Mh(b.mainType,b.componentIndex,v.name,c._api),C=x.focusSelf,D=x.dispatchers;v.type===Zn&&C&&!v.notBlur&&pc(b.mainType,b.componentIndex,c._api),D&&M(D,function(A){v.type===Zn?hc(A):vc(A)})}else mc(v)&&b instanceof Ut&&(bC(b,v,c._api),$d(b),At(c))},c),p&&p.eachComponent(m,function(b){var w=_&&_.get(b.id)!=null;w||S(c[d==="series"?"_chartsMap":"_componentsMap"][b.__viewId])},c);function S(b){b&&b.__alive&&b[h]&&b[h](b.__model,p,c._api,v)}},Ir={prepareAndUpdate:function(c){Bn(this),Ir.update.call(this,c,c&&{optionChanged:c.newOption!=null})},update:function(c,h){var v=this._model,d=this._api,g=this._zr,p=this._coordSysMgr,m=this._scheduler;if(v){UP(v),v.setUpdatePayload(c),m.restoreData(v,c),m.performSeriesTasks(v),p.create(v,d),Lt.trigger("coordsys:aftercreate",v,d),m.performDataProcessorTasks(v,c),Mf(this,v),p.update(v,d),n(v),m.performVisualTasks(v,c);var y=v.get("backgroundColor")||"transparent";g.setBackgroundColor(y);var _=v.get("darkMode");_!=null&&_!=="auto"&&g.setDarkMode(_),Af(this,v,d,c,h),Lt.trigger("afterupdate",v,d)}},updateTransform:function(c){var h=this,v=h._model,d=h._api;if(v){v.setUpdatePayload(c);var g=[];v.eachComponent(function(m,y){if(m!==r0){var _=h.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(y,v,d,c);S&&S.update&&g.push(_)}else g.push(_)}});var p=oe();v.eachSeries(function(m){var y=h._chartsMap[m.__viewId],_=m.pipelineContext;if(y.updateTransform&&!_.progressiveRender){var S=y.updateTransform(m,v,d,c);S&&S.update&&p.set(m.uid,1)}else p.set(m.uid,1)}),h._scheduler.performVisualTasks(v,c,{setDirty:!0,dirtyMap:p}),gs(h,v,d,c,{},p),Lt.trigger("afterupdate",v,d)}},updateView:function(c){var h=this._model;h&&(h.setUpdatePayload(c),tr.markUpdateMethod(c,"updateView"),n(h),this._scheduler.performVisualTasks(h,c,{setDirty:!0}),Af(this,h,this._api,c,{}),Lt.trigger("afterupdate",h,this._api))},updateVisual:function(c){var h=this,v=this._model;v&&(v.setUpdatePayload(c),v.eachSeries(function(d){d.getData().clearAllVisual()}),tr.markUpdateMethod(c,"updateVisual"),n(v),this._scheduler.performVisualTasks(v,c,{visualType:"visual",setDirty:!0}),v.eachComponent(function(d,g){if(d!=="series"){var p=h.getViewOfComponentModel(g);p&&p.__alive&&p.updateVisual(g,v,h._api,c)}}),v.eachSeries(function(d){var g=h._chartsMap[d.__viewId];g.updateVisual(d,v,h._api,c)}),Lt.trigger("afterupdate",v,this._api))},updateLayout:function(c){Ir.update.call(this,c)}};function r(c,h,v,d,g){if(c._disposed){c.id;return}for(var p=c._model,m=c._coordSysMgr.getCoordinateSystems(),y,_=Vl(p,v),S=0;S<m.length;S++){var b=m[S];if(b[h]&&(y=b[h](p,_,d,g))!=null)return y}}ps=r,Mf=function(c,h){var v=c._chartsMap,d=c._scheduler;h.eachSeries(function(g){d.updateStreamModes(g,v[g.__viewId])})},Df=function(c,h){var v=this,d=this.getModel(),g=c.type,p=c.escapeConnect,m=Cu[g],y=(m.update||"update").split(":"),_=y.pop(),S=y[0]!=null&&dr(y[0]);this[Be]=!0,Mi(this);var b=[c],w=!1;c.batch&&(w=!0,b=re(c.batch,function(F){return F=Te(V({},F),c),F.batch=null,F}));var x=[],C,D=[],A=m.nonRefinedEventType,T=mc(c),k=Kd(c);if(k&&d0(this._api),M(b,function(F){var $=m.action(F,d,v._api);if(m.refineEvent?D.push($):C=$,C=C||V({},F),C.type=A,x.push(C),k){var W=Sh(c),z=W.queryOptionMap,q=W.mainTypeSpecified,H=q?z.keys()[0]:"series";ds(v,_,F,H),At(v)}else T?(ds(v,_,F,"series"),At(v)):S&&ds(v,_,F,S.main,S.sub)}),_!=="none"&&!k&&!T&&!S)try{this[We]?(Bn(this),Ir.update.call(this,c),this[We]=null):Ir[_].call(this,c)}catch(F){throw this[Be]=!1,F}if(w?C={type:A,escapeConnect:p,batch:x}:C=x[0],this[Be]=!1,!h){var P=void 0;if(m.refineEvent){var O=m.refineEvent(D,c,d,this._api).eventContent;Sr(ee(O)),P=Te({type:m.refinedEventType},O),P.fromAction=c.type,P.fromActionPayload=c,P.escapeConnect=!0}var B=this._messageCenter;B.trigger(C.type,C),P&&B.trigger(P.type,P)}},Ti=function(c){for(var h=this._pendingActions;h.length;){var v=h.shift();Df.call(this,v,c)}},Ci=function(c){!c&&this.trigger("updated")},Jg=function(c,h){c.on("rendered",function(v){h.trigger("rendered",v),c.animation.isFinished()&&!h[We]&&!h._scheduler.unfinished&&!h._pendingActions.length?h.trigger("finished"):c.refresh()})},em=function(c,h){c.on("mouseover",function(v){var d=v.target,g=Ba(d,gc);g&&(_C(g,v,h._api),At(h))}).on("mouseout",function(v){var d=v.target,g=Ba(d,gc);g&&(SC(g,v,h._api),At(h))}).on("click",function(v){var d=v.target,g=Ba(d,function(y){return we(y).dataIndex!=null},!0);if(g){var p=g.selected?"unselect":"select",m=we(g);h._api.dispatchAction({type:p,dataType:m.dataType,dataIndexInside:m.dataIndex,seriesIndex:m.seriesIndex,isFromClick:!0})}})};function n(c){c.clearColorPalette(),c.eachSeries(function(h){h.clearColorPalette()})}function i(c){var h=[],v=[],d=!1;if(c.eachComponent(function(y,_){var S=_.get("zlevel")||0,b=_.get("z")||0,w=_.getZLevelKey();d=d||!!w,(y==="series"?v:h).push({zlevel:S,z:b,idx:_.componentIndex,type:y,key:w})}),d){var g=h.concat(v),p,m;Fs(g,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),M(g,function(y){var _=c.getComponent(y.type,y.idx),S=y.zlevel,b=y.key;p!=null&&(S=Math.max(p,S)),b?(S===p&&b!==m&&S++,m=b):m&&(S===p&&S++,m=""),p=S,_.setZLevel(S)})}}Af=function(c,h,v,d,g){i(h),tm(c,h,v,d,g),M(c._chartsViews,function(p){p.__alive=!1}),gs(c,h,v,d,g),M(c._chartsViews,function(p){p.__alive||p.remove(h,v)})},tm=function(c,h,v,d,g,p){M(p||c._componentsViews,function(m){var y=m.__model;l(y,m),m.render(y,h,v,d),u(y,m),f(y,m)})},gs=function(c,h,v,d,g,p){var m=c._scheduler;g=V(g||{},{updatedSeries:h.getSeries()}),Lt.trigger("series:beforeupdate",h,v,g);var y=!1;h.eachSeries(function(_){var S=c._chartsMap[_.__viewId];S.__alive=!0;var b=S.renderTask;m.updatePayload(b,d),l(_,S),p&&p.get(_.uid)&&b.dirty(),b.perform(m.getPerformArgs(b))&&(y=!0),S.group.silent=!!_.get("silent"),s(_,S),$d(_)}),m.unfinished=y||m.unfinished,Lt.trigger("series:layoutlabels",h,v,g),Lt.trigger("series:transition",h,v,g),h.eachSeries(function(_){var S=c._chartsMap[_.__viewId];u(_,S),f(_,S)}),o(c,h),Lt.trigger("series:afterupdate",h,v,g)},At=function(c){c[xf]=!0,c.getZr().wakeUp()},Mi=function(c){c[vs]=(c[vs]+1)%1e6},nm=function(c){c[xf]&&(c.getZr().storage.traverse(function(h){Ga(h)||a(h)}),c[xf]=!1)};function a(c){for(var h=[],v=c.currentStates,d=0;d<v.length;d++){var g=v[d];g==="emphasis"||g==="blur"||g==="select"||h.push(g)}c.selected&&c.states.select&&h.push("select"),c.hoverState===Uu&&c.states.emphasis?h.push("emphasis"):c.hoverState===Wu&&c.states.blur&&h.push("blur"),c.useStates(h)}function o(c,h){var v=c._zr;if(v.painter.type==="canvas"){var d=v.storage,g=0;d.traverse(function(m){m.isGroup||g++});var p=g>ie(h.get("hoverLayerThreshold"),G1.hoverLayerThreshold)&&!le.node&&!le.worker;(c._usingTHL||p)&&(h.eachSeries(function(m){if(!m.preventUsingHoverLayer){var y=c._chartsMap[m.__viewId];y.__alive&&y.eachRendered(function(_){var S=_.states.emphasis;S&&S.hoverLayer!==E0&&(S.hoverLayer=p?L0:I0)})}}),c._usingTHL=p)}}function s(c,h){var v=c.get("blendMode")||null;h.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function u(c,h){if(!c.preventAutoZ){var v=W0(c);h.eachRendered(function(d){return U0(d,v.z,v.zlevel),!0})}}function l(c,h){h.eachRendered(function(v){if(!Ga(v)){var d=v.getTextContent(),g=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),g&&g.stateTransition&&(g.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function f(c,h){var v=c.getModel("stateAnimation"),d=c.isAnimationEnabled(),g=v.get("duration"),p=g>0?{duration:g,delay:v.get("delay"),easing:v.get("easing")}:null;h.eachRendered(function(m){if(m.states&&m.states.emphasis){if(Ga(m))return;if(m instanceof Ce&&PC(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(d){m.stateTransition=p;var _=m.getTextContent(),S=m.getTextGuideLine();_&&(_.stateTransition=p),S&&(S.stateTransition=p)}m.__dirty&&a(m)}})}rm=function(c){return new((function(h){j(v,h);function v(){return h!==null&&h.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var g=d.__ecComponentInfo;if(g!=null)return c._model.getComponent(g.mainType,g.index);d=d.parent}},v.prototype.enterEmphasis=function(d,g){hc(d,g),At(c)},v.prototype.leaveEmphasis=function(d,g){vc(d,g),At(c)},v.prototype.enterBlur=function(d){mC(d),At(c)},v.prototype.leaveBlur=function(d){f0(d),At(c)},v.prototype.enterSelect=function(d){c0(d),At(c)},v.prototype.leaveSelect=function(d){h0(d),At(c)},v.prototype.getModel=function(){return c.getModel()},v.prototype.getViewOfComponentModel=function(d){return c.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return c.getViewOfSeriesModel(d)},v.prototype.getECUpdateCycleVersion=function(){return c[vs]},v.prototype.usingTHL=function(){return c._usingTHL},v})(a0))(c)},pS=function(c){function h(v,d){for(var g=0;g<v.length;g++){var p=v[g];p[Tf]=d}}M(qc,function(v,d){c._messageCenter.on(d,function(g){if(Du[c.group]&&c[Tf]!==Qg){if(g&&g.escapeConnect)return;var p=c.makeActionFromEvent(g),m=[];M(Qn,function(y){y!==c&&y.group===c.group&&m.push(y)}),h(m,Qg),M(m,function(y){y[Tf]!==CR&&y.dispatchAction(p)}),h(m,MR)}})})}})(),e})(wr),xv=Tu.prototype;xv.on=fS("on");xv.off=fS("off");xv.one=function(t,e,r){var n=this;function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];e&&e.apply&&e.apply(this,a),n.off(t,i)}this.on.call(this,t,i,r)};var DR=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Cu={},qc={},jc={},$c=[],Zc=[],Mu=[],gS={},Kc={},Qn={},Du={},AR=+new Date-0,PR=+new Date-0,Tv="_echarts_instance_";function IR(t,e,r){var n=!(r&&r.ssr);if(n){var i=Cv(t);if(i)return i}var a=new Tu(t,e,r);return a.id="ec_"+AR++,Qn[a.id]=a,n&&Zy(t,Tv,a.id),pS(a),Lt.trigger("afterinit",a),a}function LR(t){if(Y(t)){var e=t;t=null,M(e,function(r){r.group!=null&&(t=r.group)}),t=t||"g_"+PR++,M(e,function(r){r.group=t})}return Du[t]=!0,t}function mS(t){Du[t]=!1}var ER=mS;function RR(t){Q(t)?t=Qn[t]:t instanceof Tu||(t=Cv(t)),t instanceof Tu&&!t.isDisposed()&&t.dispose()}function Cv(t){return Qn[$T(t,Tv)]}function OR(t){return Qn[t]}function Mv(t,e){gS[t]=e}function Dv(t){me(Zc,t)<0&&Zc.push(t)}function Av(t,e){Pv($c,t,e,_R)}function yS(t){hl("afterinit",t)}function _S(t){hl("afterupdate",t)}function hl(t,e){Lt.on(t,e)}function ci(t,e,r){var n,i,a,o,s;fe(e)&&(r=e,e=""),ee(t)?(n=t.type,i=t.event,o=t.update,s=t.publishNonRefinedEvent,r||(r=t.action),a=t.refineEvent):(n=t,i=e);function u(f){return f.toLowerCase()}i=u(i||n);var l=a?u(n):i;Cu[n]||(Sr(Kg.test(n)&&Kg.test(i)),a&&Sr(i!==n),Cu[n]={actionType:n,refinedEventType:i,nonRefinedEventType:l,update:o,action:r,refineEvent:a},jc[i]=1,a&&s&&(jc[l]=1),qc[l]=n)}function SS(t,e){el.register(t,e)}function kR(t){var e=el.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function NR(t,e){}function bS(t,e){Pv(Mu,t,e,oS,"layout")}function hn(t,e){Pv(Mu,t,e,sS,"visual")}var im=[];function Pv(t,e,r,n,i,a){if((fe(e)||ee(e))&&(r=e,e=n),!(me(im,r)>=0)){im.push(r);var o=q1.wrapStageHandler(r,i);o.__prio=e,o.__raw=r,t.push(o)}}function Iv(t,e){Kc[t]=e}function BR(t){Km({createCanvas:t})}function wS(t,e,r){var n=J1("registerMap");n&&n(t,e,r)}function FR(t){var e=J1("getMap");return e&&e(t)}var xS=hA;hn(wv,DE);hn(cl,AE);hn(cl,PE);hn(wv,VE);hn(cl,GE);hn(uS,fR);Dv(U1);Av(gR,xE);Iv("default",IE);ci({type:Zn,event:Zn,update:Zn},je);ci({type:Ds,event:Ds,update:Ds},je);ci({type:ru,event:Th,update:ru,action:je,refineEvent:Lv,publishNonRefinedEvent:!0});ci({type:cc,event:Th,update:cc,action:je,refineEvent:Lv,publishNonRefinedEvent:!0});ci({type:nu,event:Th,update:nu,action:je,refineEvent:Lv,publishNonRefinedEvent:!0});function Lv(t,e,r,n){return{eventContent:{selected:wC(r),isFromClick:e.isFromClick||!1}}}Mv("default",{});Mv("dark",K1);var zR={},am=[],HR={registerPreprocessor:Dv,registerProcessor:Av,registerPostInit:yS,registerPostUpdate:_S,registerUpdateLifecycle:hl,registerAction:ci,registerCoordinateSystem:SS,registerLayout:bS,registerVisual:hn,registerTransform:xS,registerLoading:Iv,registerMap:wS,registerImpl:YE,PRIORITY:lS,ComponentModel:ge,ComponentView:Tt,SeriesModel:Ut,ChartView:tr,registerComponentModel:function(t){ge.registerClass(t)},registerComponentView:function(t){Tt.registerClass(t)},registerSeriesModel:function(t){Ut.registerClass(t)},registerChartView:function(t){tr.registerClass(t)},registerCustomSeries:function(t,e){},registerSubTypeDefaulter:function(t,e){ge.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){F1(t,e)}};function Qi(t){if(Y(t)){M(t,function(e){Qi(e)});return}me(am,t)>=0||(am.push(t),fe(t)&&(t={install:t}),t.install(HR))}var TS=(function(){function t(){}return t.prototype.needIncludeZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t})(),Qc=(function(t){j(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Ft).models[0]},e.type="cartesian2dAxis",e})(ge);Yt(Qc,TS);var CS={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:"auto",onZeroAxisIndex:null,lineStyle:{color:ce.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:ce.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:ce.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[ce.color.backgroundTint,ce.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:ce.color.neutral00,borderColor:ce.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},VR=ye({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},CS),Ev=ye({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:ce.color.axisMinorSplitLine,width:1}}},CS),GR=ye({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Ev),WR=Te({logBase:10},Ev),UR={category:VR,value:Ev,time:GR,log:WR};function om(t,e,r,n){M(j_,function(i,a){var o=ye(ye({},UR[a],!0),n,!0),s=(function(u){j(l,u);function l(){var f=u!==null&&u.apply(this,arguments)||this;return f.type=e+"Axis."+a,f}return l.prototype.mergeDefaultAndTheme=function(f,c){var h=oo(this),v=h?il(f):{},d=c.getTheme();ye(f,d.get(a+"Axis")),ye(f,this.getDefaultOption()),f.type=sm(f),h&&ri(f,v,h)},l.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Ic.createByAxisModel(this))},l.prototype.getCategories=function(f){var c=this.option;if(c.type==="category")return f?c.data:this.__ordinalMeta.categories},l.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},l.prototype.updateAxisBreaks=function(f){return{breaks:[]}},l.type=e+"Axis."+a,l.defaultOption=o,l})(r);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",sm)}function sm(t){return t.type||(t.data?"category":"value")}var YR=(function(){function t(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return t.prototype.getAxis=function(e){return this._axes[e]},t.prototype.getAxes=function(){return re(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Ye(this.getAxes(),function(r){return r.scale.type===e})},t.prototype.addAxis=function(e){var r=e.dim;this._axes[r]=e,this._dimList.push(r)},t})(),Vs=["x","y"];function um(t){return(t.type==="interval"||t.type==="time")&&!su(t)}var XR=(function(t){j(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=kr,r.dimensions=Vs,r}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!um(r)||!um(n))){var i=fu(r,null),a=fu(n,null),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),u=i[1]-i[0],l=a[1]-a[0];if(!(!u||!l)){var f=(s[0]-o[0])/u,c=(s[1]-o[1])/l,h=o[0]-i[0]*f,v=o[1]-a[0]*c,d=this._transform=[f,0,0,c,h,v];this._invTransform=ai([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(r){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&i.contain(i.toLocalCoord(r[1]))},e.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},e.prototype.containZone=function(r,n){var i=this.dataToPoint(r),a=this.dataToPoint(n),o=this.getArea(),s=new se(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},e.prototype.dataToPoint=function(r,n,i){i=i||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return lt(i,r,this._transform);var s=this.getAxis("x"),u=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=u.toGlobalCoord(u.dataToCoord(o,n)),i},e.prototype.clampData=function(r,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),u=i.parse(r[0]),l=a.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),u),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),l),Math.max(s[0],s[1])),n},e.prototype.pointToData=function(r,n,i){if(i=i||[],this._invTransform)return lt(i,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(r[0]),n),i[1]=o.coordToData(o.toLocalCoord(r[1]),n),i},e.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},e.prototype.getArea=function(r){r=r||0;var n=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(n[0],n[1])-r,o=Math.min(i[0],i[1])-r,s=Math.max(n[0],n[1])-a+r,u=Math.max(i[0],i[1])-o+r;return new se(a,o,s,u)},e})(YR);function qR(t,e){var r=t.scale,n=t.model,i=C1(r,n,n.ecModel,t,null),a=$i(r),o=$i(e)?e.intervalStub:e,s=a?r.intervalStub:r,u=r.base,l=o.getTicks(),f=o.getTicks({expandToNicedExtent:!0}),c=l.length-1,h,v,d;if(c===1)h=v=0,d=1;else if(c===2){var g=Ne(l[0].value-l[1].value),p=Ne(l[1].value-l[2].value);h=v=0,g===p?d=2:(d=1,g<p?h=g/p:v=p/g)}else{var m=o.getConfig().interval;h=(1-(l[0].value-f[0].value)/m)%1,v=(1-(f[c].value-l[c].value)/m)%1,d=c-(h?1:0)-(v?1:0)}var y=i.zoomFixMM,_=y[0]||y[1],S=[i.fixMM[0]||_,i.fixMM[1]||_],b=r.getExtent(),w=s.getExtent(),x=W_(w,S),C,D,A,T,k,P;function O(X){for(var ne=50,K=0;K<ne&&!X();K++)A=a?A*pe(u,2):uP(A),T=ni(A)}function B(){C=de(P-A*h,T)}function F(){D=de(k+A*v,T)}function $(){P=h?de(C+A*h,T):C}function W(){k=v?de(D-A*v,T):D}if(S[0]&&S[1]){C=x[0],D=x[1],A=(D-C)/(d+h+v);var z=t.getExtent(),q=Ne(z[1]-z[0]);T=PT([D,C],q,.5/d),$(),W(),Wt(T)&&(A=de(A,T))}else{var H=x[1]-x[0];A=a?pe(yh(H),1):Gu(H/d,Wy),T=ni(A),S[0]?(C=x[0],O(function(){if($(),k=de(P+A*d,T),F(),D>=x[1])return!0})):S[1]?(D=x[1],O(function(){if(W(),P=de(k-A*d,T),B(),C<=x[0])return!0})):O(function(){P=de(So(x[0]/A)*A,T),k=de(Nr(x[1]/A)*A,T);var X=br((k-P)/A);if(X<=d){var ne=d-X,K=void 0,ue=i.incl0||a;if(ue&&x[0]===0)K=[0,ne];else if(ue&&x[1]===0)K=[ne,0];else{var te=Nr(ne/2);K=ne%2===0?[te,te]:C+D<x[0]+x[1]?[te,te+1]:[te+1,te]}if(P=de(P-A*K[0],T),k=de(k+A*K[1],T),B(),F(),C<=x[0]&&D>=x[1])return!0}})}Q_(r,S,w,[C,D],b,{interval:A,intervalCount:d,intervalPrecision:T,niceExtent:[P,k]})}function lm(t,e){var r=$i(t),n=r?t.intervalStub:t,i=e.fixMinMax||[],a=r?t.getExtent():null,o=n.getExtent(),s=W_(o,i,e.rawExtentResult);n.setExtent(s[0],s[1]),s=n.getExtent();var u=r?$R(n,e):jR(n,e),l=u.intervalPrecision,f=u.interval,c=e.userInterval;c!=null&&(u.interval=c,u.intervalPrecision=ni(c)),i[0]||(s[0]=de(Nr(s[0]/f)*f,l)),i[1]||(s[1]=de(So(s[1]/f)*f,l)),c!=null&&(u.niceExtent=s.slice()),Q_(t,i,o,s,a,u)}function jR(t,e){var r=hv(e.splitNumber,5),n=al(t),i=e.minInterval,a=e.maxInterval,o=Gu(n/r,!0);i!=null&&o<i&&(o=i),a!=null&&o>a&&(o=a);var s=ni(o),u=t.getExtent(),l=[de(So(u[0]/o)*o,s),de(Nr(u[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:l}}function $R(t,e){var r=hv(e.splitNumber,10),n=t.getExtent(),i=al(t),a=pe(yh(i),1),o=r/i*a;o<=.5&&(a*=10);var s=ni(a),u=[de(So(n[0]/a)*a,s),de(Nr(n[1]/a)*a,s)];return{intervalPrecision:s,interval:a,niceExtent:u}}function fm(t){var e=t.scale,r=t.model,n=r.axis,i=r.ecModel;MS(e,r,n,i,null)}function MS(t,e,r,n,i){var a=C1(t,e,n,r,i),o=cu(t)||cv(t);ZR(t,{splitNumber:e.get("splitNumber"),fixMinMax:a.fixMM,userInterval:e.get("interval"),minInterval:o?e.get("minInterval"):null,maxInterval:o?e.get("maxInterval"):null,rawExtentResult:a}),r&&n&&WI(r,t,a,n)}function ZR(t,e){KR[t.type](t,e)}var KR={interval:lm,log:lm,time:_P,ordinal:je},cm=[[3,1],[0,2]],QR=(function(){function t(e,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Vs,this._initCartesian(e,r,n),this.model=e}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(e,r){var n=this._axesMap;M(this._axesList,function(o){FI(o,OI);var s=o.scale;ar(s)&&s.setSortInfo(o.model.get("categorySortInfo"))});function i(o){for(var s=Ae(o),u=[],l=s.length-1;l>=0;l--){var f=o[+s[l]];f.__alignTo?u.push(f):fm(f)}M(u,function(c){e2(c,c.__alignTo)?fm(c):qR(c,c.__alignTo.scale)})}i(n.x),i(n.y);var a={};M(n.x,function(o){hm(n,"y",o,a)}),M(n.y,function(o){hm(n,"x",o,a)}),this.resize(this.model,r)},t.prototype.resize=function(e,r,n){var i=av(e,r),a=this._rect=ti(e.getBoxLayoutParams(),i.refContainer),o=this._axesMap,s=this._coordsList,u=e.get("containLabel");if(DS(o,a),!n){var l=r2(a,s,o,u,r),f=void 0;if(u)f=gm(a.clone(),"axisLabel",null,a,o,l,i);else{var c=n2(e,a,i),h=c.outerBoundsRect,v=c.parsedOuterBoundsContain,d=c.outerBoundsClamp;h&&(f=gm(h,v,d,a,o,l,i))}AS(a,o,rr.determine,null,f,i),M(this._coordsList,function(g){g.calcAffineTransform()})}},t.prototype.getAxis=function(e,r){var n=this._axesMap[e];if(n!=null)return n[r||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(e,r){if(e!=null&&r!=null){var n="x"+e+"y"+r;return this._coordsMap[n]}ee(e)&&(r=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,a=this._coordsList;i<a.length;i++)if(a[i].getAxis("x").index===e||a[i].getAxis("y").index===r)return a[i]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(e,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(e,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(e){var r=e.seriesModel,n=e.xAxisModel||r&&r.getReferringComponents("xAxis",Ft).models[0],i=e.yAxisModel||r&&r.getReferringComponents("yAxis",Ft).models[0],a=e.gridModel,o=this._coordsList,s,u;if(r)s=r.coordinateSystem,me(o,s)<0&&(s=null);else if(n&&i)s=this.getCartesian(n.componentIndex,i.componentIndex);else if(n)u=this.getAxis("x",n.componentIndex);else if(i)u=this.getAxis("y",i.componentIndex);else if(a){var l=a.coordinateSystem;l===this&&(s=this._coordsList[0])}return{cartesian:s,axis:u}},t.prototype.containPoint=function(e){var r=this._coordsList[0];if(r)return r.containPoint(e)},t.prototype._initCartesian=function(e,r,n){var i=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},u={x:0,y:0};if(r.eachComponent("xAxis",l("x"),this),r.eachComponent("yAxis",l("y"),this),!u.x||!u.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,M(s.x,function(f,c){M(s.y,function(h,v){var d="x"+c+"y"+v,g=new XR(d);g.master=i,g.model=e,i._coordsMap[d]=g,i._coordsList.push(g),g.addAxis(f),g.addAxis(h)})}),dm(s.x),dm(s.y);function l(f){return function(c,h){if(JR(c,e)){var v=c.get("position");f==="x"?v!=="top"&&v!=="bottom"&&(v=o.bottom?"top":"bottom"):v!=="left"&&v!=="right"&&(v=o.left?"right":"left"),o[v]=!0;var d=Z_(c),g=new oI(f,K_(c,d),[0,0],d,v);g.onBand=J_(g.scale,c),g.inverse=c.get("inverse"),c.axis=g,g.model=c,g.grid=a,g.index=h,a._axesList.push(g),s[f][h]=g,u[f]++}}}},t.prototype.getTooltipAxes=function(e){var r=[],n=[];return M(this.getCartesians(),function(i){var a=e!=null&&e!=="auto"?i.getAxis(e):i.getBaseAxis(),o=i.getOtherAxis(a);me(r,a)<0&&r.push(a),me(n,o)<0&&n.push(o)}),{baseAxes:r,otherAxes:n}},t.create=function(e,r){var n=[];return e.eachComponent("grid",function(i,a){var o=new t(i,e,r);o.name="grid_"+a,o.resize(i,r,!0),i.coordinateSystem=o,n.push(o),M(o._axesList,function(s){BI(s,t.dimIdxMap)})}),e.eachSeries(function(i){var a,o;fD({targetModel:i,coordSysType:kr,coordSysProvider:s});function s(){var u=II(i),l=u.xAxisModel,f=u.yAxisModel;a=l.axis,o=f.axis;var c=l.getCoordSysModel(),h=c.coordinateSystem;return h.getCartesian(l.componentIndex,f.componentIndex)}a&&o&&(Up(a,i,kr),Up(o,i,kr))},this),n},t.dimensions=Vs,t.dimIdxMap=Hh(Vs),t})();function JR(t,e){return t.getCoordSysModel()===e}function hm(t,e,r,n){r.getAxesOnZeroOf=function(){return a?[a]:[]};var i=t[e],a,o=r.model,s=o.get(["axisLine","onZero"]),u=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(u!=null)vm(s,i[u])&&(a=i[u]);else for(var l in i)if(ut(i,l)&&vm(s,i[l])&&!n[f(i[l])]){a=i[l];break}a&&(n[f(a)]=!0);function f(c){return c.dim+"_"+c.index}}function vm(t,e){if(!e)return!1;var r=e.scale,n=SP(r,0),i=e&&e.type!=="category"&&e.type!=="time"&&n!==Lc;return i&&t==="auto"&&TP(e)&&(i=!1),i}function dm(t){for(var e=Ae(t),r,n=[],i=e.length-1;i>=0;i--){var a=t[+e[i]];G_(a.scale)&&DP(a.model,a.type)==null&&(a.model.get("alignTicks")&&a.model.get("interval")==null?n.push(a):r=a)}r||(r=n.pop()),r&&M(n,function(o){o.__alignTo=r})}function e2(t,e){return su(t.scale)||su(e.scale)||e.scale.getTicks().length<2}function t2(t,e){var r=t.getExtent(),n=r[0]+r[1];t.toGlobalCoord=t.dim==="x"?function(i){return i+e}:function(i){return n-i+e},t.toLocalCoord=t.dim==="x"?function(i){return i-e}:function(i){return n-i+e}}function DS(t,e){M(t.x,function(r){return pm(r,e.x,e.width)}),M(t.y,function(r){return pm(r,e.y,e.height)})}function pm(t,e,r){var n=[0,r],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),t2(t,e)}function gm(t,e,r,n,i,a,o){AS(n,i,rr.estimate,e,!1,o);var s=[0,0,0,0];l(0),l(1),f(n,0,NaN),f(n,1,NaN);var u=ty(s,function(h){return h>0})==null;return iu(n,s,!0,!0,r),DS(i,n),u;function l(h){M(i[$r[h]],function(v){if(fo(v.model)){var d=a.ensureRecord(v.model),g=d.labelInfoList;if(g)for(var p=0;p<g.length;p++){var m=g[p],y=v.scale.normalize(sl(v.scale,Ki(m.label).labelInfo.tick));y=h===1?1-y:y,f(m.rect,h,y),f(m.rect,1-h,NaN)}var _=d.nameLayout;if(_){var y=Zi(d.nameLocation)?.5:NaN;f(_.rect,h,y),f(_.rect,1-h,NaN)}}})}function f(h,v,d){var g=t[$r[v]]-h[$r[v]],p=h[qi[v]]+h[$r[v]]-(t[qi[v]]+t[$r[v]]);g=c(g,1-d),p=c(p,d);var m=cm[v][0],y=cm[v][1];s[m]=pe(s[m],g),s[y]=pe(s[y],p)}function c(h,v){return h>0&&!Gi(v)&&v>1e-4&&(h/=v),h}}function r2(t,e,r,n,i){var a=new g1(i2);return M(r,function(o){return M(o,function(s){if(fo(s.model)){var u=!n;s.axisBuilder=LI(t,e,s.model,i,a,u)}})}),a}function AS(t,e,r,n,i,a){var o=r===rr.determine;M(e,function(l){return M(l,function(f){fo(f.model)&&(EI(f.axisBuilder,t,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};u(0),u(1);function u(l){s[$r[1-l]]=t[qi[l]]<=a.refContainer[qi[l]]*.5?0:1-l===1?2:1}M(e,function(l,f){return M(l,function(c){fo(c.model)&&((n==="all"||o)&&c.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&c.axisBuilder.build({axisLine:!0}))})})}function n2(t,e,r){var n,i=t.get("outerBoundsMode",!0);i==="same"?n=e.clone():(i==null||i==="auto")&&(n=ti(t.get("outerBounds",!0)||M1,r.refContainer));var a=t.get("outerBoundsContain",!0),o;a==null||a==="auto"||me(["all","axisLabel"],a)<0?o="all":o=a;var s=[lc(ie(t.get("outerBoundsClampWidth",!0),yu[0]),e.width),lc(ie(t.get("outerBoundsClampHeight",!0),yu[1]),e.height)];return{outerBoundsRect:n,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var i2=function(t,e,r,n,i,a){var o=r.axis.dim==="x"?"y":"x";m1(t,e,r,n,i,a),Zi(t.nameLocation)||M(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&_1(s.labelInfoList,s.dirVec,n,i)})};function a2(t,e){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return o2(r,t,e),r.seriesInvolved&&u2(r,t),r}function o2(t,e,r){var n=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];M(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var u=vo(s.model),l=t.coordSysAxesInfo[u]={};t.coordSysMap[u]=s;var f=s.model,c=f.getModel("tooltip",n);if(M(s.getAxes(),st(g,!1,null)),s.getTooltipAxes&&n&&c.get("show")){var h=c.get("trigger")==="axis",v=c.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(c.get(["axisPointer","axis"]));(h||v)&&M(d.baseAxes,st(g,v?"cross":!0,h)),v&&M(d.otherAxes,st(g,"cross",!1))}function g(p,m,y){var _=y.model.getModel("axisPointer",i),S=_.get("show");if(!(!S||S==="auto"&&!p&&!Jc(_))){m==null&&(m=_.get("triggerTooltip")),_=p?s2(y,c,i,e,p,m):_;var b=_.get("snap"),w=_.get("triggerEmphasis"),x=vo(y.model),C=m||b||y.type==="category",D=t.axesInfo[x]={key:x,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:m,triggerEmphasis:w,involveSeries:C,snap:b,useHandle:Jc(_),seriesModels:[],linkGroup:null};l[x]=D,t.seriesInvolved=t.seriesInvolved||C;var A=l2(a,y);if(A!=null){var T=o[A]||(o[A]={axesInfo:{}});T.axesInfo[x]=D,T.mapper=a[A].mapper,D.linkGroup=T}}}})}function s2(t,e,r,n,i,a){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],u={};M(s,function(h){u[h]=he(o.get(h))}),u.snap=t.type!=="category"&&!!a,o.get("type")==="cross"&&(u.type="line");var l=u.label||(u.label={});if(l.show==null&&(l.show=!1),i==="cross"){var f=o.get(["label","show"]);if(l.show=f!=null?f:!0,!a){var c=u.lineStyle=o.get("crossStyle");c&&Te(l,c.textStyle)}}return t.model.getModel("axisPointer",new Ie(u,r,n))}function u2(t,e){e.eachSeries(function(r){var n=r.coordinateSystem,i=r.get(["tooltip","trigger"],!0),a=r.get(["tooltip","show"],!0);!n||!n.model||i==="none"||i===!1||i==="item"||a===!1||r.get(["axisPointer","show"],!0)===!1||M(t.coordSysAxesInfo[vo(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function l2(t,e){for(var r=e.model,n=e.dim,i=0;i<t.length;i++){var a=t[i]||{};if(Pf(a[n+"AxisId"],r.id)||Pf(a[n+"AxisIndex"],r.componentIndex)||Pf(a[n+"AxisName"],r.name))return i}}function Pf(t,e){return t==="all"||Y(t)&&me(t,e)>=0||t===e}function f2(t){var e=Rv(t);if(e){var r=e.axisPointerModel,n=e.axis.scale,i=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=Jc(r);a==null&&(i.status=s?"show":"hide");var u=n.getExtent();(o==null||o>u[1])&&(o=u[1]),o<u[0]&&(o=u[0]),i.value=o,s&&(i.status=e.axis.scale.isBlank()?"hide":"show")}}function Rv(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[vo(t)]}function c2(t){var e=Rv(t);return e&&e.axisPointerModel}function Jc(t){return!!t.get(["handle","show"])}function vo(t){return t.type+"||"+t.id}var mm={},PS=(function(t){j(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i,a){this.axisPointerClass&&f2(r),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,i,!0)},e.prototype.updateAxisPointer=function(r,n,i,a){this._doUpdateAxisPointerClass(r,i,!1)},e.prototype.remove=function(r,n){var i=this._axisPointer;i&&i.remove(n)},e.prototype.dispose=function(r,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(r,n,i){var a=e.getAxisPointerClass(this.axisPointerClass);if(a){var o=c2(r);o?(this._axisPointer||(this._axisPointer=new a)).render(r,o,n,i):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},e.registerAxisPointerClass=function(r,n){mm[r]=n},e.getAxisPointerClass=function(r){return r&&mm[r]},e.type="axis",e})(Tt),eh=Me();function h2(t,e,r,n){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),u=n.coordinateSystem.getRect(),l=i.getTicksCoords({tickModel:a,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(l.length){var f=s.length,c=eh(t).splitAreaColors,h=oe(),v=0;if(c)for(var d=0;d<l.length;d++){var g=c.get(l[d].tickValue);if(g!=null){v=(g+(f-1)*d)%f;break}}var p=i.toGlobalCoord(l[0].coord),m=o.getAreaStyle();s=Y(s)?s:[s];for(var d=1;d<l.length;d++){var y=i.toGlobalCoord(l[d].coord),_=void 0,S=void 0,b=void 0,w=void 0;i.isHorizontal()?(_=p,S=u.y,b=y-_,w=u.height,p=_+b):(_=u.x,S=p,b=u.width,w=y-S,p=S+w);var x=l[d-1].tickValue;x!=null&&h.set(x,v),e.add(new ze({anid:x!=null?"area_"+x:null,shape:{x:_,y:S,width:b,height:w},style:Te({fill:s[v]},m),autoBatch:!0,silent:!0})),v=(v+1)%f}eh(t).splitAreaColors=h}}}function v2(t){eh(t).splitAreaColors=null}var d2=["splitArea","splitLine","minorSplitLine","breakArea"],IS=(function(t){j(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.axisPointerClass="CartesianAxisPointer",r}return e.prototype.render=function(r,n,i,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new xt,this.group.add(this._axisGroup),!!fo(r)){this._axisGroup.add(r.axis.axisBuilder.group),M(d2,function(u){r.get([u,"show"])&&p2[u](this,this._axisGroup,r,r.getCoordSysModel(),i)},this);var s=a&&a.type==="changeAxisOrder"&&a.isInitSort;s||z0(o,this._axisGroup,r),t.prototype.render.call(this,r,n,i,a)}},e.prototype.remove=function(){v2(this)},e.type="cartesianAxis",e})(PS),p2={splitLine:function(t,e,r,n,i){var a=r.axis;if(!a.scale.isBlank()){var o=r.getModel("splitLine"),s=o.getModel("lineStyle"),u=s.get("color"),l=o.get("showMinLine")!==!1,f=o.get("showMaxLine")!==!1;u=Y(u)?u:[u];for(var c=n.coordinateSystem.getRect(),h=a.isHorizontal(),v=0,d=a.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),g=[],p=[],m=s.getLineStyle(),y=0;y<d.length;y++){var _=a.toGlobalCoord(d[y].coord);if(!(y===0&&!l||y===d.length-1&&!f)){var S=d[y].tickValue;h?(g[0]=_,g[1]=c.y,p[0]=_,p[1]=c.y+c.height):(g[0]=c.x,g[1]=_,p[0]=c.x+c.width,p[1]=_);var b=v++%u.length,w=new Fr({anid:S!=null?"line_"+S:null,autoBatch:!0,shape:{x1:g[0],y1:g[1],x2:p[0],y2:p[1]},style:Te({stroke:u[b]},m),silent:!0});no(w.shape,m.lineWidth),e.add(w)}}}},minorSplitLine:function(t,e,r,n,i){var a=r.axis,o=r.getModel("minorSplitLine"),s=o.getModel("lineStyle"),u=n.coordinateSystem.getRect(),l=a.isHorizontal(),f=a.getMinorTicksCoords();if(f.length)for(var c=[],h=[],v=s.getLineStyle(),d=0;d<f.length;d++)for(var g=0;g<f[d].length;g++){var p=a.toGlobalCoord(f[d][g].coord);l?(c[0]=p,c[1]=u.y,h[0]=p,h[1]=u.y+u.height):(c[0]=u.x,c[1]=p,h[0]=u.x+u.width,h[1]=p);var m=new Fr({anid:"minor_line_"+f[d][g].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]},style:v,silent:!0});no(m.shape,v.lineWidth),e.add(m)}},splitArea:function(t,e,r,n,i){h2(t,e,r,n)},breakArea:function(t,e,r,n,i){r.axis.scale}},LS=(function(t){j(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="xAxis",e})(IS),g2=(function(t){j(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=LS.type,r}return e.type="yAxis",e})(IS),m2=(function(t){j(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="grid",r}return e.prototype.render=function(r,n){this.group.removeAll(),r.get("show")&&this.group.add(new ze({shape:r.coordinateSystem.getRect(),style:Te({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e})(Tt),ym={offset:0};function y2(t){t.registerComponentView(m2),t.registerComponentModel(ZI),t.registerCoordinateSystem("cartesian2d",QR),om(t,"x",Qc,ym),om(t,"y",Qc,ym),t.registerComponentView(LS),t.registerComponentView(g2),t.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}var _2=1e-8;function _m(t,e){return Math.abs(t-e)<_2}function Sm(t,e,r){var n=0,i=t[0];if(!i)return!1;for(var a=1;a<t.length;a++){var o=t[a];n+=Er(i[0],i[1],o[0],o[1],e,r),i=o}var s=t[0];return(!_m(i[0],s[0])||!_m(i[1],s[1]))&&(n+=Er(i[0],i[1],s[0],s[1],e,r)),n!==0}var S2=[];function If(t,e){for(var r=0;r<t.length;r++)lt(t[r],t[r],e)}function bm(t,e,r,n){for(var i=0;i<t.length;i++){var a=t[i];n&&(a=n.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(Zr(e,e,a),Kr(r,r,a))}}function b2(t){for(var e=0,r=0,n=0,i=t.length,a=t[i-1][0],o=t[i-1][1],s=0;s<i;s++){var u=t[s][0],l=t[s][1],f=a*l-u*o;e+=f,r+=(a+u)*f,n+=(o+l)*f,a=u,o=l}return e?[r/e/3,n/e/3,e]:[t[0][0]||0,t[0][1]||0]}var ES=(function(){function t(e){this.name=e}return t.prototype.setCenter=function(e){this._center=e},t.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},t})(),wm=(function(){function t(e,r){this.type="polygon",this.exterior=e,this.interiors=r}return t})(),xm=(function(){function t(e){this.type="linestring",this.points=e}return t})(),w2=(function(t){j(e,t);function e(r,n,i){var a=t.call(this,r)||this;return a.type="geoJSON",a.geometries=n,a._center=i&&[i[0],i[1]],a}return e.prototype.calcCenter=function(){for(var r=this.geometries,n,i=0,a=0;a<r.length;a++){var o=r[a],s=o.exterior,u=s&&s.length;u>i&&(n=o,i=u)}if(n)return b2(n.exterior);var l=this.getBoundingRect();return[l.x+l.width/2,l.y+l.height/2]},e.prototype.getBoundingRect=function(r){var n=this._rect;if(n&&!r)return n;var i=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return M(o,function(s){s.type==="polygon"?bm(s.exterior,i,a,r):M(s.points,function(u){bm(u,i,a,r)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])||(i[0]=i[1]=a[0]=a[1]=0),n=new se(i[0],i[1],a[0]-i[0],a[1]-i[1]),r||(this._rect=n),n},e.prototype.contain=function(r){var n=this.getBoundingRect(),i=this.geometries;if(!n.contain(r[0],r[1]))return!1;e:for(var a=0,o=i.length;a<o;a++){var s=i[a];if(s.type==="polygon"){var u=s.exterior,l=s.interiors;if(Sm(u,r[0],r[1])){for(var f=0;f<(l?l.length:0);f++)if(Sm(l[f],r[0],r[1]))continue e;return!0}}}return!1},e.prototype.transformTo=function(r,n,i,a){var o=this.getBoundingRect(),s=o.width/o.height;i?a||(a=i/s):i=s*a;for(var u=new se(r,n,i,a),l=o.calculateTransform(u),f=this.geometries,c=0;c<f.length;c++){var h=f[c];h.type==="polygon"?(If(h.exterior,l),M(h.interiors,function(v){If(v,l)})):M(h.points,function(v){If(v,l)})}o=this._rect,o.copy(u),this._center=[o.x+o.width/2,o.y+o.height/2]},e.prototype.cloneShallow=function(r){r==null&&(r=this.name);var n=new e(r,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},e})(ES);(function(t){j(e,t);function e(r,n){var i=t.call(this,r)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}return e.prototype.calcCenter=function(){for(var r=this._elOnlyForCalculate,n=r.getBoundingRect(),i=[n.x+n.width/2,n.y+n.height/2],a=ii(S2),o=r;o&&!o.isGeoSVGGraphicRoot;)Xn(a,o.getLocalTransform(),a),o=o.parent;return ai(a,a),lt(i,i,a),i},e})(ES);function x2(t){if(!t.UTF8Encoding)return t;var e=t,r=e.UTF8Scale;r==null&&(r=1024);var n=e.features;return M(n,function(i){var a=i.geometry,o=a.encodeOffsets,s=a.coordinates;if(o)switch(a.type){case"LineString":a.coordinates=RS(s,o,r);break;case"Polygon":Lf(s,o,r);break;case"MultiLineString":Lf(s,o,r);break;case"MultiPolygon":M(s,function(u,l){return Lf(u,o[l],r)})}}),e.UTF8Encoding=!1,e}function Lf(t,e,r){for(var n=0;n<t.length;n++)t[n]=RS(t[n],e[n],r)}function RS(t,e,r){for(var n=[],i=e[0],a=e[1],o=0;o<t.length;o+=2){var s=t.charCodeAt(o)-64,u=t.charCodeAt(o+1)-64;s=s>>1^-(s&1),u=u>>1^-(u&1),s+=i,u+=a,i=s,a=u,n.push([s/r,u/r])}return n}function Tm(t,e){return t=x2(t),re(Ye(t.features,function(r){return r.geometry&&r.properties&&r.geometry.coordinates.length>0}),function(r){var n=r.properties,i=r.geometry,a=[];switch(i.type){case"Polygon":var o=i.coordinates;a.push(new wm(o[0],o.slice(1)));break;case"MultiPolygon":M(i.coordinates,function(u){u[0]&&a.push(new wm(u[0],u.slice(1)))});break;case"LineString":a.push(new xm([i.coordinates]));break;case"MultiLineString":a.push(new xm(i.coordinates))}var s=new w2(n[e||"name"],a,n.cp);return s.properties=n,s})}var zn=Me(),Cm=he,Ef=Pe,T2=(function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,r,n,i){var a=r.get("value"),o=r.get("status");if(this._axisModel=e,this._axisPointerModel=r,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,u=this._handle;if(!o||o==="hide"){s&&s.hide(),u&&u.hide();return}s&&s.show(),u&&u.show();var l={};this.makeElOption(l,a,e,r,n);var f=l.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(e,r);if(!s)s=this._group=new xt,this.createPointerEl(s,l,e,r),this.createLabelEl(s,l,e,r),n.getZr().add(s);else{var h=st(Mm,r,c);this.updatePointerEl(s,l,h),this.updateLabelEl(s,l,h,r)}Am(s,r,!0),this._renderHandle(a)}},t.prototype.remove=function(e){this.clear(e)},t.prototype.dispose=function(e){this.clear(e)},t.prototype.determineAnimation=function(e,r){var n=r.get("animation"),i=e.axis,a=i.type==="category",o=r.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&na(i).w>s)return!0;if(o){var u=Rv(e).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/u>s}return!1}return n===!0},t.prototype.makeElOption=function(e,r,n,i,a){},t.prototype.createPointerEl=function(e,r,n,i){var a=r.pointer;if(a){var o=zn(e).pointerEl=new _M[a.type](Cm(r.pointer));e.add(o)}},t.prototype.createLabelEl=function(e,r,n,i){if(r.label){var a=zn(e).labelEl=new yt(Cm(r.label));e.add(a),Dm(a,i)}},t.prototype.updatePointerEl=function(e,r,n){var i=zn(e).pointerEl;i&&r.pointer&&(i.setStyle(r.pointer.style),n(i,{shape:r.pointer.shape}))},t.prototype.updateLabelEl=function(e,r,n,i){var a=zn(e).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),Dm(a,i))},t.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=Lh(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(l){E1(l.event)},onmousedown:Ef(this._onHandleDragMove,this,0,0),drift:Ef(this._onHandleDragMove,this),ondragend:Ef(this._onHandleDragEnd,this)}),n.add(i)),Am(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var u=a.get("size");Y(u)||(u=[u,u]),i.scaleX=u[0]/2,i.scaleY=u[1]/2,P1(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},t.prototype._moveHandleToValue=function(e,r){Mm(this._axisPointerModel,!r&&this._moveAnimation,this._handle,Rf(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,r){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(Rf(n),[e,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(Rf(i)),zn(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var r=e.getZr(),n=this._group,i=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),i&&r.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),Fc(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(e,r,n){return n=n||0,{x:e[n],y:e[1-n],width:r[n],height:r[1-n]}},t})();function Mm(t,e,r,n){OS(zn(r).lastProp,n)||(zn(r).lastProp=n,e?zr(r,n,t):(r.stopAnimation(),r.attr(n)))}function OS(t,e){if(ee(t)&&ee(e)){var r=!0;return M(e,function(n,i){r=r&&OS(t[i],n)}),!!r}else return t===e}function Dm(t,e){t[e.get(["label","show"])?"show":"hide"]()}function Rf(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function Am(t,e,r){var n=e.get("z"),i=e.get("zlevel");t&&t.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=r)})}function C2(t){var e=t.get("type"),r=t.getModel(e+"Style"),n;return e==="line"?(n=r.getLineStyle(),n.fill=null):e==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function M2(t,e,r,n,i){var a=r.get("value"),o=kS(a,e.axis,e.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),u=nl(s.get("padding")||0),l=s.getFont(),f=Sy(o,l),c=i.position,h=f.width+u[1]+u[3],v=f.height+u[0]+u[2],d=i.align;d==="right"&&(c[0]-=h),d==="center"&&(c[0]-=h/2);var g=i.verticalAlign;g==="bottom"&&(c[1]-=v),g==="middle"&&(c[1]-=v/2),D2(c,h,v,n);var p=s.get("backgroundColor");(!p||p==="auto")&&(p=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:ln(s,{text:o,font:l,fill:s.getTextColor(),padding:u,backgroundColor:p}),z2:10}}function D2(t,e,r,n){var i=n.getWidth(),a=n.getHeight();t[0]=Math.min(t[0]+e,i)-e,t[1]=Math.min(t[1]+r,a)-r,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function kS(t,e,r,n,i){t=e.scale.parse(t);var a=e.scale.getLabel({value:t},{precision:i.precision}),o=i.formatter;if(o){var s={value:hu(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};M(n,function(u){var l=r.getSeriesByIndex(u.seriesIndex),f=u.dataIndexInside,c=l&&l.getDataParams(f);c&&s.seriesData.push(c)}),Q(o)?a=o.replace("{value}",a):fe(o)&&(a=o(s))}return a}function NS(t,e,r){var n=Vt();return Ou(n,n,r.rotation),Ys(n,n,r.position),Ih([t.dataToCoord(e),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function A2(t,e,r,n,i,a){var o=an.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),M2(e,n,i,a,{position:NS(n.axis,t,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function P2(t,e,r){return r=r||0,{x1:t[r],y1:t[1-r],x2:e[r],y2:e[1-r]}}function I2(t,e,r){return r=r||0,{x:t[r],y:t[1-r],width:e[r],height:e[1-r]}}function L2(t,e,r){return na(t,{fromStat:{sers:re(e,function(n){return r.getSeriesByIndex(n.seriesIndex)})},min:1}).w}function E2(t,e,r){return[pe($e(e[0],e[1]),t-r/2),$e(t+r/2,pe(e[0],e[1]))]}var R2=(function(t){j(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,u=s.grid,l=a.get("type"),f=s.getGlobalExtent(),c=Pm(u,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(n,!0));if(l&&l!=="none"){var v=C2(a),d=O2[l](s,h,f,c,a.get("seriesDataIndices"),a.ecModel);d.style=v,r.graphicKey=d.type,r.pointer=d}var g=mu(u.getRect(),i);A2(n,r,g,i,a,o)},e.prototype.getHandleTransform=function(r,n,i){var a=mu(n.axis.grid.getRect(),n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=NS(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.grid,u=o.getGlobalExtent(!0),l=Pm(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[r.x,r.y];c[f]+=n[f],c[f]=$e(u[1],c[f]),c[f]=pe(u[0],c[f]);var h=(l[1]+l[0])/2,v=[h,h];v[f]=c[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:v,tooltipOption:d[f]}},e})(T2);function Pm(t,e){var r={};return r[e.dim+"AxisIndex"]=e.index,t.getCartesian(r)}var O2={line:function(t,e,r,n){var i=P2([e,n[0]],[e,n[1]],Im(t));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(t,e,r,n,i,a){var o=L2(t,i,a),s=n[1]-n[0],u=E2(e,r,o),l=u[0],f=u[1];return{type:"Rect",shape:I2([l,n[0]],[f-l,s],Im(t))}}};function Im(t){return t.dim==="x"?0:1}var k2=(function(t){j(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:ce.color.border,width:1,type:"dashed"},shadowStyle:{color:ce.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:ce.color.neutral00,padding:[5,7,5,7],backgroundColor:ce.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:ce.color.accent40,throttle:40}},e})(ge),Or=Me(),N2=M;function BS(t,e,r){if(!le.node){var n=e.getZr();Or(n).records||(Or(n).records={}),B2(n,e);var i=Or(n).records[t]||(Or(n).records[t]={});i.handler=r}}function B2(t,e){if(Or(t).initialized)return;Or(t).initialized=!0,r("click",st(Of,"click")),r("mousemove",st(Of,"mousemove")),r("mousewheel",st(Of,"mousewheel")),r("globalout",z2);function r(n,i){t.on(n,function(a){var o=H2(e);N2(Or(t).records,function(s){s&&i(s,a,o.dispatchAction)}),F2(o.pendings,e)})}}function F2(t,e){var r=t.showTip.length,n=t.hideTip.length,i;r?i=t.showTip[r-1]:n&&(i=t.hideTip[n-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function z2(t,e,r){t.handler("leave",null,r)}function Of(t,e,r,n){e.handler(t,r,n)}function H2(t){var e={showTip:[],hideTip:[]},r=function(n){var i=e[n.type];i?i.push(n):(n.dispatchAction=r,t.dispatchAction(n))};return{dispatchAction:r,pendings:e}}function th(t,e){if(!le.node){var r=e.getZr(),n=(Or(r).records||{})[t];n&&(Or(r).records[t]=null)}}var V2=(function(t){j(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){var a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click|mousewheel";BS("axisPointer",i,function(s,u,l){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&l({type:"updateAxisPointer",currTrigger:s,x:u&&u.offsetX,y:u&&u.offsetY})})},e.prototype.remove=function(r,n){th("axisPointer",n)},e.prototype.dispose=function(r,n){th("axisPointer",n)},e.type="axisPointer",e})(Tt);function FS(t,e){var r=[],n=t.seriesIndex,i;if(n==null||!(i=e.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=wo(a,t);if(o==null||o<0||Y(o))return{point:[]};var s=a.getItemGraphicEl(o),u=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(o)||[];else if(u&&u.dataToPoint)if(t.isStacked){var l=u.getBaseAxis(),f=u.getOtherAxis(l),c=f.dim,h=l.dim,v=c==="x"||c==="radius"?1:0,d=a.mapDimension(h),g=[];g[v]=a.get(d,o),g[1-v]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=u.dataToPoint(g)||[]}else r=u.dataToPoint(a.getValues(re(u.dimensions,function(m){return a.mapDimension(m)}),o))||[];else if(s){var p=s.getBoundingRect().clone();p.applyTransform(s.transform),r=[p.x+p.width/2,p.y+p.height/2]}return{point:r,el:s}}var Lm=Me();function G2(t,e,r){var n=t.currTrigger,i=[t.x,t.y],a=t,o=t.dispatchAction||Pe(r.dispatchAction,r),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Gs(i)&&(i=FS({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var u=Gs(i),l=a.axesInfo,f=s.axesInfo,c=n==="leave"||Gs(i),h={},v={},d={list:[],map:{}},g={showPointer:st(U2,v),showTooltip:st(Y2,d)};M(s.coordSysMap,function(m,y){var _=u||m.containPoint(i);M(s.coordSysAxesInfo[y],function(S,b){var w=S.axis,x=$2(l,S);if(!c&&_&&(!l||x)){var C=x&&x.value;C==null&&!u&&(C=w.pointToData(i)),C!=null&&Em(S,C,g,!1,h)}})});var p={};return M(f,function(m,y){var _=m.linkGroup;_&&!v[y]&&M(_.axesInfo,function(S,b){var w=v[b];if(S!==m&&w){var x=w.value;_.mapper&&(x=m.axis.scale.parse(_.mapper(x,Rm(S),Rm(m)))),p[m.key]=x}})}),M(p,function(m,y){Em(f[y],m,g,!0,h)}),X2(v,f,h),q2(d,i,t,o),j2(f,o,r),h}}function Em(t,e,r,n,i){var a=t.axis;if(!(a.scale.isBlank()||!a.containData(e))){if(!t.involveSeries){r.showPointer(t,e);return}var o=W2(e,t),s=o.payloadBatch,u=o.snapToValue;s[0]&&i.seriesIndex==null&&V(i,s[0]),!n&&t.snap&&a.containData(u)&&u!=null&&(e=u),r.showPointer(t,e,s),r.showTooltip(t,o,u)}}function W2(t,e){var r=e.axis,n=r.dim,i=t,a=[],o=Number.MAX_VALUE,s=-1;return M(e.seriesModels,function(u,l){var f=u.getData().mapDimensionsAll(n),c,h;if(u.getAxisTooltipData){var v=u.getAxisTooltipData(f,t,r);h=v.dataIndices,c=v.nestestValue}else{if(h=u.indicesOfNearest(n,f[0],t,r.type==="category"?.5:null),!h.length)return;c=u.getData().get(f[0],h[0])}if(Wt(c)){var d=t-c,g=Math.abs(d);g<=o&&((g<o||d>=0&&s<0)&&(o=g,s=d,i=c,a.length=0),M(h,function(p){a.push({seriesIndex:u.seriesIndex,dataIndexInside:p,dataIndex:u.getData().getRawIndex(p)})}))}}),{payloadBatch:a,snapToValue:i}}function U2(t,e,r,n){t[e.key]={value:r,payloadBatch:n}}function Y2(t,e,r,n){var i=r.payloadBatch,a=e.axis,o=a.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!i.length)){var u=e.coordSys.model,l=vo(u),f=t.map[l];f||(f=t.map[l]={coordSysId:u.id,coordSysIndex:u.componentIndex,coordSysType:u.type,coordSysMainType:u.mainType,dataByAxis:[]},t.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function X2(t,e,r){var n=r.axesInfo=[];M(e,function(i,a){var o=i.axisPointerModel.option,s=t[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function q2(t,e,r,n){if(Gs(e)||!t.list.length){n({type:"hideTip"});return}var i=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:t.list})}function j2(t,e,r){var n=r.getZr(),i="axisPointerLastHighlights",a=Lm(n)[i]||{},o=Lm(n)[i]={};M(t,function(f,c){var h=f.axisPointerModel.option;h.status==="show"&&f.triggerEmphasis&&M(h.seriesDataIndices,function(v){o[v.seriesIndex+"|"+v.dataIndex]=v})});var s=[],u=[];function l(f){return{seriesIndex:f.seriesIndex,dataIndex:f.dataIndex}}M(a,function(f,c){!o[c]&&u.push(l(f))}),M(o,function(f,c){!a[c]&&s.push(l(f))}),u.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:u}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function $2(t,e){for(var r=0;r<(t||[]).length;r++){var n=t[r];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function Rm(t){var e=t.axis.model,r={},n=r.axisDim=t.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=e.componentIndex,r.axisName=r[n+"AxisName"]=e.name,r.axisId=r[n+"AxisId"]=e.id,r}function Gs(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function zS(t){PS.registerAxisPointerClass("CartesianAxisPointer",R2),t.registerComponentModel(k2),t.registerComponentView(V2),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var r=e.axisPointer.link;r&&!Y(r)&&(e.axisPointer.link=[r])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,r){e.getComponent("axisPointer").coordSysAxesInfo=a2(e,r)}}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},G2)}function Z2(t){Qi(y2),Qi(zS)}var K2=(function(t){j(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click|mousewheel",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:ce.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:ce.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:ce.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:ce.color.tertiary,fontSize:14}},e})(ge);function HS(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function VS(t){if(le.domSupported){for(var e=document.documentElement.style,r=0,n=t.length;r<n;r++)if(t[r]in e)return t[r]}}var GS=VS(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Q2=VS(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function WS(t,e){if(!t)return e;e=rv(e,!0);var r=t.indexOf(e);return t=r===-1?e:"-"+t.slice(0,r)+"-"+e,t.toLowerCase()}function J2(t,e){var r=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return r?r[e]:null}var eO=WS(Q2,"transition"),Ov=WS(GS,"transform"),tO="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(le.transform3dSupported?"will-change:transform;":"");function rO(t){return t=t==="left"?"right":t==="right"?"left":t==="top"?"bottom":"top",t}function nO(t,e,r){if(!Q(r)||r==="inside")return"";var n=t.get("backgroundColor"),i=t.get("borderWidth");e=ao(e);var a=rO(r),o=Math.max(Math.round(i)*1.5,6),s="",u=Ov+":",l;me(["left","right"],a)>-1?(s+="top:50%",u+="translateY(-50%) rotate("+(l=a==="left"?-225:-45)+"deg)"):(s+="left:50%",u+="translateX(-50%) rotate("+(l=a==="top"?225:45)+"deg)");var f=l*Math.PI/180,c=o+i,h=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),v=Math.round(((h-Math.SQRT2*i)/2+Math.SQRT2*i-(h-c)/2)*100)/100;s+=";"+a+":-"+v+"px";var d=e+" solid "+i+"px;",g=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+u+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'<div style="'+g.join("")+'"></div>'}function iO(t,e,r){var n="cubic-bezier(0.23,1,0.32,1)",i="",a="";return r&&(i=" "+t/2+"s "+n,a="opacity"+i+",visibility"+i),e||(i=" "+t+"s "+n,a+=(a.length?",":"")+(le.transformSupported?""+Ov+i:",left"+i+",top"+i)),eO+":"+a}function Om(t,e,r){var n=t.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!le.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=le.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+Ov+":"+o+";":[["top",0],["left",0],[GS,o]]}function aO(t){var e=[],r=t.get("fontSize"),n=t.getTextColor();n&&e.push("color:"+n),e.push("font:"+t.getFont());var i=ie(t.get("lineHeight"),Math.round(r*3/2));r&&e.push("line-height:"+i+"px");var a=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,u=t.get("textShadowOffsetY")||0;return a&&o&&e.push("text-shadow:"+s+"px "+u+"px "+o+"px "+a),M(["decoration","align"],function(l){var f=t.get(l);f&&e.push("text-"+l+":"+f)}),e.join(";")}function oO(t,e,r,n){var i=[],a=t.get("transitionDuration"),o=t.get("backgroundColor"),s=t.get("shadowBlur"),u=t.get("shadowColor"),l=t.get("shadowOffsetX"),f=t.get("shadowOffsetY"),c=t.getModel("textStyle"),h=N_(t,"html"),v=l+"px "+f+"px "+s+"px "+u;return i.push("box-shadow:"+v),e&&a>0&&i.push(iO(a,r,n)),o&&i.push("background-color:"+o),M(["width","color","radius"],function(d){var g="border-"+d,p=rv(g),m=t.get(p);m!=null&&i.push(g+":"+m+(d==="color"?"":"px"))}),i.push(aO(c)),h!=null&&i.push("padding:"+nl(h).join("px ")+"px"),i.join(";")+";"}function km(t,e,r,n,i){var a=e&&e.painter;if(r){var o=a&&a.getViewportRoot();o&&TD(t,o,r,n,i)}else{t[0]=n,t[1]=i;var s=a&&a.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var sO=(function(){function t(e,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,le.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=e.getZr(),a=r.appendTo,o=a&&(Q(a)?document.querySelector(a):Vi(a)?a:fe(a)&&a(e.getDom()));km(this._styleCoord,i,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(n),this._api=e,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(u){if(u=u||window.event,!s._enterable){var l=i.handler,f=i.painter.getViewportRoot();Et(f,u,!0),l.dispatch("mousemove",u)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return t.prototype.update=function(e){if(!this._container){var r=this._api.getDom(),n=J2(r,"position"),i=r.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative")}var a=e.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this._enableDisplayTransition=e.get("displayTransition")&&e.get("transitionDuration")>0,this.el.className=e.get("className")||""},t.prototype.show=function(e,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=tO+oO(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+Om(a[0],a[1],!0)+("border-color:"+ao(r)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,r,n,i,a){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(Q(a)&&n.get("trigger")==="item"&&!HS(n)&&(s=nO(n,i,a)),Q(e))o.innerHTML=e+s;else if(e){o.innerHTML="",Y(e)||(e=[e]);for(var u=0;u<e.length;u++)Vi(e[u])&&e[u].parentNode!==o&&o.appendChild(e[u]);if(s&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=s,o.appendChild(l)}}},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},t.prototype.moveTo=function(e,r){if(this.el){var n=this._styleCoord;if(km(n,this._zr,this._container,e,r),n[0]!=null&&n[1]!=null){var i=this.el.style,a=Om(n[0],n[1]);M(a,function(o){i[o[0]]=o[1]})}}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){var e=this,r=this.el.style;this._enableDisplayTransition?(r.visibility="hidden",r.opacity="0"):r.display="none",le.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Pe(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;CD(e&&e.painter&&e.painter.getViewportRoot(),this._container);var r=this.el;if(r){r.onmouseenter=r.onmousemove=r.onmouseleave=null;var n=r.parentNode;n&&n.removeChild(r)}this.el=this._container=null},t})(),uO=(function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),Bm(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return t.prototype.update=function(e){var r=e.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(e,r,n,i,a){var o=this;ee(e)&&gt(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new yt({style:{rich:r.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:N_(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),M(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(l){o.el.style[l]=n.get(l)}),M(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(l){o.el.style[l]=s.get(l)||0}),this._zr.add(this.el);var u=this;this.el.on("mouseover",function(){u._enterable&&(clearTimeout(u._hideTimeout),u._show=!0),u._inContent=!0}),this.el.on("mouseout",function(){u._enterable&&u._show&&u.hideLater(u._hideDelay),u._inContent=!1})},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el,r=this.el.getBoundingRect(),n=Nm(e.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},t.prototype.moveTo=function(e,r){var n=this.el;if(n){var i=this._styleCoord;Bm(i,this._zr,e,r),e=i[0],r=i[1];var a=n.style,o=jr(a.borderWidth||0),s=Nm(a);n.x=e+o+s.left,n.y=r+o+s.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Pe(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t})();function jr(t){return Math.max(0,t)}function Nm(t){var e=jr(t.shadowBlur||0),r=jr(t.shadowOffsetX||0),n=jr(t.shadowOffsetY||0);return{left:jr(e-r),right:jr(e+r),top:jr(e-n),bottom:jr(e+n)}}function Bm(t,e,r,n){t[0]=r,t[1]=n,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var lO=new ze({shape:{x:-1,y:-1,width:2,height:2}}),fO=(function(t){j(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,n){if(!(le.node||!n.getDom())){var i=r.getComponent("tooltip"),a=this._renderMode=ZT(i.get("renderMode"));this._tooltipContent=a==="richText"?new uO(n):new sO(n,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},e.prototype.render=function(r,n,i){if(!(le.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=i;var a=this._tooltipContent;a.update(r),a.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?P1(this,"_updatePosition",50,"fixRate"):Fc(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");BS("itemTooltip",this._api,Pe(function(i,a,o){n!=="none"&&(n.indexOf(i)>=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,i=this._api,a=r.get("triggerOn");if(r.get("trigger")!=="axis"&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(r,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(r,n,i,a){if(!(a.from===this.uid||le.node||!i.getDom())){var o=Fm(a,i);this._ticket="";var s=a.dataByCoordSys,u=dO(a,n,i);if(u){var l=u.el.getBoundingRect().clone();l.applyTransform(u.el.transform),this._tryShow({offsetX:l.x+l.width/2,offsetY:l.y+l.height/2,target:u.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=lO;f.x=a.x,f.y=a.y,f.update(),we(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,i,a))return;var c=FS(a,n),h=c.point[0],v=c.point[1];h!=null&&v!=null&&this._tryShow({offsetX:h,offsetY:v,target:c.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},e.prototype.manuallyHideTip=function(r,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,a.from!==this.uid&&this._hide(Fm(a,i))},e.prototype._manuallyAxisShowTip=function(r,n,i,a){var o=a.seriesIndex,s=a.dataIndex,u=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||u==null)){var l=n.getSeriesByIndex(o);if(l){var f=l.getData(),c=Pa([f.getItemModel(s),l,(l.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},e.prototype._tryShow=function(r,n){var i=r.target,a=this._tooltipModel;if(a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(i){var s=we(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null,this._cbParamsList=null;var u,l;Ba(i,function(f){if(f.tooltipDisabled)return u=l=null,!0;u||l||(we(f).dataIndex!=null?u=f:we(f).tooltipConfig!=null&&(l=f))},!0),u?this._showSeriesItemTooltip(r,u,n):l?this._showComponentItemTooltip(r,l,n):this._hide(n)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(n)}},e.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=Pe(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},e.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=Pa([n.tooltipOption],a),u=this._renderMode,l=[],f=so("section",{blocks:[],noHeader:!0}),c=[],h=new nf;M(r,function(y){M(y.dataByAxis,function(_){var S=i.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value,w=S.axis,x=w.scale.parse(b);if(!(!S||b==null)){var C=kS(b,w,i,_.seriesDataIndices,_.valueLabelOpt),D=so("section",{header:C,noHeader:!Jt(C),sortBlocks:!0,blocks:[]});f.blocks.push(D),M(_.seriesDataIndices,function(A){var T=i.getSeriesByIndex(A.seriesIndex),k=A.dataIndexInside,P=T.getDataParams(k);if(!(P.dataIndex<0)){P.axisDim=_.axisDim,P.axisIndex=_.axisIndex,P.axisType=_.axisType,P.axisId=_.axisId,P.axisValue=hu(S.axis,{value:x}),P.axisValueLabel=C,P.marker=h.makeTooltipMarker("item",ao(P.color),u);var O=Ip(T.formatTooltip(k,!0,null)),B=O.frag;if(B){var F=Pa([T],a).get("valueFormatter");D.blocks.push(F?V({valueFormatter:F},B):B)}O.text&&c.push(O.text),l.push(P)}})}})}),f.blocks.reverse(),c.reverse();var v=n.position,d=s.get("order"),g=Op(f,h,u,d,i.get("useUTC"),s.get("textStyle"));g&&c.unshift(g);var p=u==="richText"?`
30
31 `:"<br/>",m=c.join(p);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,l)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,l):this._showTooltipContent(s,m,l,Math.random()+"",o[0],o[1],v,null,h)})},e.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=we(n),s=o.seriesIndex,u=a.getSeriesByIndex(s),l=o.dataModel||u,f=o.dataIndex,c=o.dataType,h=l.getData(c),v=this._renderMode,d=r.positionDefault,g=Pa([h.getItemModel(f),l,u&&(u.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),p=g.get("trigger");if(!(p!=null&&p!=="item")){var m=l.getDataParams(f,c),y=new nf;m.marker=y.makeTooltipMarker("item",ao(m.color),v);var _=Ip(l.formatTooltip(f,!1,c)),S=g.get("order"),b=g.get("valueFormatter"),w=_.frag,x=w?Op(b?V({valueFormatter:b},w):w,y,v,S,a.get("useUTC"),g.get("textStyle")):_.text,C="item_"+l.name+"_"+f;this._showOrMove(g,function(){this._showTooltipContent(g,x,m,C,r.offsetX,r.offsetY,r.position,r.target,y)}),i({type:"showTip",dataIndexInside:f,dataIndex:h.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(r,n,i){var a=this._renderMode==="html",o=we(n),s=o.tooltipConfig,u=s.option||{},l=u.encodeHTMLContent;if(Q(u)){var f=u;u={content:f,formatter:f},l=!0}l&&a&&u.content&&(u=he(u),u.content=at(u.content));var c=[u],h=this._ecModel.getComponent(o.componentMainType,o.componentIndex);h&&c.push(h),c.push({formatter:u.content});var v=r.positionDefault,d=Pa(c,this._tooltipModel,v?{position:v}:null),g=d.get("content"),p=Math.random()+"",m=new nf;this._showOrMove(d,function(){var y=he(d.get("formatterParams")||{});this._showTooltipContent(d,g,y,p,r.offsetX,r.offsetY,r.position,n,m)}),i({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(r,n,i,a,o,s,u,l,f){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var c=this._tooltipContent;c.setEnterable(r.get("enterable"));var h=r.get("formatter");u=u||r.get("position");var v=n,d=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor"),r.get("defaultBorderColor",!0)),g=d.color;if(h)if(Q(h)){var p=r.ecModel.get("useUTC"),m=Y(i)?i[0]:i,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;v=h,y&&(v=Mo(m.axisValue,v,p)),v=nv(v,i,!0)}else if(fe(h)){var _=Pe(function(S,b){S===this._ticket&&(c.setContent(b,f,r,g,u),this._updatePosition(r,u,o,s,c,i,l))},this);this._ticket=a,v=h(i,a,_)}else v=h;c.setContent(v,f,r,g,u),c.show(r,g),this._updatePosition(r,u,o,s,c,i,l)}},e.prototype._getNearestPoint=function(r,n,i,a,o){if(i==="axis"||Y(n))return{color:a||o};if(!Y(n))return{color:a||n.color||n.borderColor}},e.prototype._updatePosition=function(r,n,i,a,o,s,u){var l=this._api.getWidth(),f=this._api.getHeight();n=n||r.get("position");var c=o.getSize(),h=r.get("align"),v=r.get("verticalAlign"),d=u&&u.getBoundingRect().clone();if(u&&d.applyTransform(u.transform),fe(n)&&(n=n([i,a],s,o.el,d,{viewSize:[l,f],contentSize:c.slice()})),Y(n))i=Oe(n[0],l),a=Oe(n[1],f);else if(ee(n)){var g=n;g.width=c[0],g.height=c[1];var p=ti(g,{width:l,height:f});i=p.x,a=p.y,h=null,v=null}else if(Q(n)&&u){var m=vO(n,d,c,r.get("borderWidth"));i=m[0],a=m[1]}else{var m=cO(i,a,o,l,f,h?null:20,v?null:20);i=m[0],a=m[1]}if(h&&(i-=zm(h)?c[0]/2:h==="right"?c[0]:0),v&&(a-=zm(v)?c[1]/2:v==="bottom"?c[1]:0),HS(r)){var m=hO(i,a,o,l,f);i=m[0],a=m[1]}o.moveTo(i,a)},e.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&M(i,function(s,u){var l=s.dataByAxis||[],f=r[u]||{},c=f.dataByAxis||[];o=o&&l.length===c.length,o&&M(l,function(h,v){var d=c[v]||{},g=h.seriesDataIndices||[],p=d.seriesDataIndices||[];o=o&&h.value===d.value&&h.axisType===d.axisType&&h.axisId===d.axisId&&g.length===p.length,o&&M(g,function(m,y){var _=p[y];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),a&&M(h.seriesDataIndices,function(m){var y=m.seriesIndex,_=n[y],S=a[y];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},e.prototype._hide=function(r){this._lastDataByCoordSys=null,this._cbParamsList=null,r({type:"hideTip",from:this.uid})},e.prototype.dispose=function(r,n){le.node||!n.getDom()||(Fc(this,"_updatePosition"),this._tooltipContent.dispose(),th("itemTooltip",n),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},e.type="tooltip",e})(Tt);function Pa(t,e,r){var n=e.ecModel,i;r?(i=new Ie(r,n,n),i=new Ie(e.option,i,n)):i=e;for(var a=t.length-1;a>=0;a--){var o=t[a];o&&(o instanceof Ie&&(o=o.get("tooltip",!0)),Q(o)&&(o={formatter:o}),o&&(i=new Ie(o,i,n)))}return i}function Fm(t,e){return t.dispatchAction||Pe(e.dispatchAction,e)}function cO(t,e,r,n,i,a,o){var s=r.getSize(),u=s[0],l=s[1];return a!=null&&(t+u+a+2>n?t-=u+a:t+=a),o!=null&&(e+l+o>i?e-=l+o:e+=o),[t,e]}function hO(t,e,r,n,i){var a=r.getSize(),o=a[0],s=a[1];return t=Math.min(t+o,n)-o,e=Math.min(e+s,i)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function vO(t,e,r,n){var i=r[0],a=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,u=0,l=e.width,f=e.height;switch(t){case"inside":s=e.x+l/2-i/2,u=e.y+f/2-a/2;break;case"top":s=e.x+l/2-i/2,u=e.y-a-o;break;case"bottom":s=e.x+l/2-i/2,u=e.y+f+o;break;case"left":s=e.x-i-o,u=e.y+f/2-a/2;break;case"right":s=e.x+l+o,u=e.y+f/2-a/2}return[s,u]}function zm(t){return t==="center"||t==="middle"}function dO(t,e,r){var n=Sh(t).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=xo(e,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),u;if(s.group.traverse(function(l){var f=we(l).tooltipConfig;if(f&&f.name===t.name)return u=l,!0}),u)return{componentMainType:i,componentIndex:o.componentIndex,el:u}}}}function pO(t){Qi(zS),t.registerComponentModel(K2),t.registerComponentView(fO),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},je),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},je)}var gO=(function(t){j(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:ce.size.m,backgroundColor:ce.color.transparent,borderColor:ce.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:ce.color.primary},subtextStyle:{fontSize:12,color:ce.color.quaternary}},e})(ge),mO=(function(t){j(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){if(this.group.removeAll(),!!r.get("show")){var a=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),u=r.get("textAlign"),l=ie(r.get("textBaseline"),r.get("textVerticalAlign")),f=new yt({style:ln(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),h=r.get("subtext"),v=new yt({style:ln(s,{text:h,fill:s.getTextColor(),y:c.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=r.get("link"),g=r.get("sublink"),p=r.get("triggerEvent",!0);f.silent=!d&&!p,v.silent=!g&&!p,d&&f.on("click",function(){Ap(d,"_"+r.get("target"))}),g&&v.on("click",function(){Ap(g,"_"+r.get("subtarget"))}),we(f).eventData=we(v).eventData=p?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(f),h&&a.add(v);var m=a.getBoundingRect(),y=r.getBoxLayoutParams();y.width=m.width,y.height=m.height;var _=av(r,i),S=ti(y,_.refContainer,r.get("padding"));u||(u=r.get("left")||r.get("right"),u==="middle"&&(u="center"),u==="right"?S.x+=S.width:u==="center"&&(S.x+=S.width/2)),l||(l=r.get("top")||r.get("bottom"),l==="center"&&(l="middle"),l==="bottom"?S.y+=S.height:l==="middle"&&(S.y+=S.height/2),l=l||"top"),a.x=S.x,a.y=S.y,a.markRedraw();var b={align:u,verticalAlign:l};f.setStyle(b),v.setStyle(b),m=a.getBoundingRect();var w=S.margin,x=r.getItemStyle(["color","opacity"]);x.fill=r.get("backgroundColor");var C=new ze({shape:{x:m.x-w[3],y:m.y-w[0],width:m.width+w[1]+w[3],height:m.height+w[0]+w[2],r:r.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});a.add(C)}},e.type="title",e})(Tt);function yO(t){t.registerComponentModel(gO),t.registerComponentView(mO)}function _O(t){return Gh(null,t)}var SO={isDimensionStacked:Vh,enableDataStack:m_,getStackedDimension:y_};function bO(t,e){var r=e;e instanceof Ie||(r=new Ie(e));var n=Z_(r),i=K_(r,n);return t[1]<t[0]&&(t=t.slice().reverse()),MS(i,r,null,null,t),i}function wO(t){Yt(t,TS)}function xO(t,e){return e=e||{},ln(t,null,null,e.state!=="normal")}var TO=Object.freeze({__proto__:null,createDimensions:nD,createList:_O,createScale:bO,createSymbol:uv,createTextStyle:xO,dataStack:SO,enableHoverEmphasis:p0,getECData:we,getLayoutRect:ti,mixinAxisModelCommonMethods:wO}),CO=Object.freeze({__proto__:null,MAX_SAFE_INTEGER:fc,asc:Hu,getPercentWithPrecision:IT,getPixelPrecision:AT,getPrecision:Rr,getPrecisionSafe:Gy,isNumeric:Uy,isRadianAroundZero:eo,linearMap:uc,nice:Gu,numericToNumber:to,parseDate:Hr,parsePercent:Oe,quantile:OT,quantity:yh,quantityExponent:Vu,reformIntervals:kT,remRadian:mh,round:DT}),MO=Object.freeze({__proto__:null,format:Mo,parse:Hr,roundTime:uu}),DO=Object.freeze({__proto__:null,Arc:Co,BezierCurve:Zu,BoundingRect:se,Circle:To,CompoundPath:w0,Ellipse:Xu,Group:xt,Image:cn,IncrementalDisplayable:A0,Line:Fr,LinearGradient:T0,Polygon:ju,Polyline:$u,RadialGradient:C0,Rect:ze,Ring:qu,Sector:fi,Text:yt,clipPointsByRect:H0,clipRectByRect:V0,createIcon:Lh,extendPath:O0,extendShape:R0,getShapeClass:k0,getTransform:F0,initProps:un,makeImage:Ah,makePath:Ku,mergePath:B0,registerShape:qt,resizePath:Ph,updateProps:zr}),AO=Object.freeze({__proto__:null,addCommas:tv,capitalFirst:qD,encodeHTML:at,formatTime:XD,formatTpl:nv,getTextRect:YD,getTooltipMarker:P_,normalizeCssArray:nl,toCamelCase:rv,truncateText:ix}),PO=Object.freeze({__proto__:null,bind:Pe,clone:he,curry:st,defaults:Te,each:M,extend:V,filter:Ye,indexOf:me,inherits:fh,isArray:Y,isFunction:fe,isObject:ee,isString:Q,map:re,merge:ye,reduce:_r});function IO(t){var e=ge.extend(t);return ge.registerClass(e),e}function LO(t){var e=Tt.extend(t);return Tt.registerClass(e),e}function EO(t){var e=Ut.extend(t);return Ut.registerClass(e),e}function RO(t){var e=tr.extend(t);return tr.registerClass(e),e}var OO=Object.freeze({__proto__:null,Axis:h1,ChartView:tr,ComponentModel:ge,ComponentView:Tt,List:h_,Model:Ie,PRIORITY:lS,SeriesModel:Ut,color:Ix,connect:LR,dataTool:zR,dependencies:vR,disConnect:ER,disconnect:mS,dispose:RR,env:le,extendChartView:RO,extendComponentModel:IO,extendComponentView:LO,extendSeriesModel:EO,format:AO,getCoordinateSystemDimensions:kR,getInstanceByDom:Cv,getInstanceById:OR,getMap:FR,graphic:DO,helper:TO,init:IR,innerDrawElementOnCanvas:bv,matrix:Gw,number:CO,parseGeoJSON:Tm,parseGeoJson:Tm,registerAction:ci,registerCoordinateSystem:SS,registerCustomSeries:NR,registerLayout:bS,registerLoading:Iv,registerLocale:Yh,registerMap:wS,registerPostInit:yS,registerPostUpdate:_S,registerPreprocessor:Dv,registerProcessor:Av,registerTheme:Mv,registerTransform:xS,registerUpdateLifecycle:hl,registerVisual:hn,setCanvasCreator:BR,setPlatformAPI:Km,throttle:fl,time:MO,use:Qi,util:PO,vector:Qw,version:hR,zrUtil:Tw,zrender:nE});function Hm(t,e,r){var n=qe.createCanvas(),i=e.getWidth(),a=e.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",n.setAttribute("data-zr-dom-id",t)),n.width=i*r,n.height=a*r,n}function kf(t){return!t.__cursors.get(D0)}function Vm(t){var e=t.__cursors.get(D0);return{startIdx:e?e.startIdx:0,endIdx:e?e.endIdx:0}}var US=(function(t){j(e,t);function e(r,n,i){var a=t.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.zlevel=0,a.zlevel2=As,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__prevIdx={startIdx:0,endIdx:0};var o;i=i||Js,typeof r=="string"?o=Hm(r,n,i):ee(r)&&(o=r,r=o.id),a.id=r,a.dom=o;var s=o.style;return s&&(ch(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=n,a.dpr=i,a}return e.prototype.afterBrush=function(){this.__prevIdx=Vm(this)},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=Hm("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},e.prototype.createRepaintRects=function(r,n,i,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,u=!1,l=new se(0,0,0,0);function f(S){if(!(!S.isFinite()||S.isZero()))if(o.length===0){var b=new se(0,0,0,0);b.copy(S),o.push(b)}else{for(var w=!1,x=1/0,C=0,D=0;D<o.length;++D){var A=o[D];if(A.intersect(S)){var T=new se(0,0,0,0);T.copy(A),T.union(S),o[D]=T,w=!0;break}else if(u){l.copy(S),l.union(A);var k=S.width*S.height,P=A.width*A.height,O=l.width*l.height,B=O-k-P;B<x&&(x=B,C=D)}}if(u&&(o[C].union(S),w=!0),!w){var b=new se(0,0,0,0);b.copy(S),o.push(b)}u||(u=o.length>=s)}}for(var c=Vm(this),h=c.startIdx;h<c.endIdx;++h){var v=r[h];if(v){var d=v.shouldBePainted(i,a,!0,!0),g=v.__isRendered&&(v.__dirty&mt||!d)?v.getPrevPaintRect():null;g&&f(g);var p=d&&(v.__dirty&mt||!v.__isRendered)?v.getPaintRect():null;p&&f(p)}}for(var m=this.__prevIdx,h=m.startIdx;h<m.endIdx;++h){var v=n[h],d=v&&v.shouldBePainted(i,a,!0,!0);if(v&&(!d||!v.__zr)&&v.__isRendered){var g=v.getPrevPaintRect();g&&f(g)}}var y;do{y=!1;for(var h=0;h<o.length;){if(o[h].isZero()){o.splice(h,1);continue}for(var _=h+1;_<o.length;)o[h].intersect(o[_])?(y=!0,o[h].union(o[_]),o.splice(_,1)):_++;h++}}while(y);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(r,n){var i=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=r+"px",o.height=n+"px"),a.width=r*i,a.height=n*i,s&&(s.width=r*i,s.height=n*i,i!==1&&this.ctxBack.scale(i,i))},e.prototype.clear=function(r,n,i){var a=this.dom,o=this.ctx,s=a.width,u=a.height;n=n||this.clearColor;var l=this.motionBlur&&!r,f=this.lastFrameAlpha,c=this.dpr,h=this;l&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/c,u/c));var v=this.domBack;function d(g,p,m,y){if(o.clearRect(g,p,m,y),n&&n!=="transparent"){var _=void 0;if(po(n)){var S=n.global||n.__width===m&&n.__height===y;_=S&&n.__canvasGradient||Yc(o,n,{x:0,y:0,width:m,height:y}),n.__canvasGradient=_,n.__width=m,n.__height=y}else ry(n)&&(n.scaleX=n.scaleX||c,n.scaleY=n.scaleY||c,_=Xc(o,n,{dirty:function(){h.setUnpainted(),h.painter.refresh()}}));o.save(),o.fillStyle=_||n,o.fillRect(g,p,m,y),o.restore()}l&&(o.save(),o.globalAlpha=f,o.drawImage(v,g,p,m,y),o.restore())}!i||l?d(0,0,s,u):i.length&&M(i,function(g){d(g.x*c,g.y*c,g.width*c,g.height*c)})},e})(wr),Gm=1e5,Fn=314159,Nf=void 0,kO=1,Bf=2;function NO(t){return t?t.__builtin__?!0:!(typeof t.resize!="function"||typeof t.refresh!="function"):!1}function BO(t,e){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}function Wm(t,e,r,n){var i=new US(t,e,e.dpr);return i.zlevel=r,i.zlevel2=n,i.__builtin__=!0,YS(i),i}function YS(t){t.__cursorStack=[],t.__cursors=oe()}function FO(t){return t.startIdx=t.drawIdx=t.endIdx=t.endIdxNew=0,t.used=!1,t.first=t.last=NaN,t.notClearIdx=-1,t}function zO(t,e){var r=t.__cursors,n=+e;return r.get(n)||(t.__cursorStack.push(n),r.set(n,FO({key:n})))}function ms(t,e){for(var r=t.__cursorStack,n=0;n<r.length;n++)e(t.__cursors.get(r[n]))}function Ff(t,e){var r=t.layers;return r[e]||(r[e]=new Array(3))}function Qe(t,e,r){for(var n=t.layerStack,i=0;i<n.length;i++){var a=n[i].zl,o=n[i].zl2,s=t.layers[a][o];(!r||(!(r&qa)||s.__builtin__)&&(!(r&rh)||!s.__builtin__)&&(!(r&XS)||s!==t.hoverlayer))&&e(s,a,o,i)}}var qa=1,rh=2,XS=4,ys=qa|XS,HO=(function(){function t(e,r,n,i){this.type="canvas",this._prevDisplayList=[],this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas",this._i={layerStack:[],layers:[]};var a=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=n=V({},n||{}),this.dpr=n.devicePixelRatio||Js,this._singleCanvas=a,this.root=e;var o=e.style;if(o&&(ch(e),e.innerHTML=""),this.storage=r,this._prevDisplayList=[],a){var u=e,l=u.width,f=u.height;n.width!=null&&(l=n.width),n.height!=null&&(f=n.height),this.dpr=n.devicePixelRatio||1,u.width=l*this.dpr,u.height=f*this.dpr,this._width=l,this._height=f;var c=Wm(u,this,Fn,As);c.initContext(),this._insertLayer(c,Fn,As,!0),this._domRoot=e}else{this._width=hs(e,0,n),this._height=hs(e,1,n);var s=this._domRoot=BO(this._width,this._height);e.appendChild(s)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.refresh=function(e){var r;e&&!ee(e)?r={paintAll:!!e}:r=e||{};var n=ie(r.refresh,!0),i=ie(r.refreshHover,!1);if(i&&(this._hoverLayerDirty=Bf),!n)return i&&this._paintHoverList(this.storage.getDisplayList(!1)),this;var a=this.storage.getDisplayList(!0);this._updateLayerStatus(a,r.paintAll),this._redrawId=Math.random();var o=this._prevDisplayList;this._paintList(a,o,this._redrawId);var s=this._backgroundColor;return Qe(this._i,function(u,l,f,c){u.refresh&&u.refresh(c===0?s:null)},rh),this._opts.useDirtyRect&&(this._prevDisplayList=a.slice()),this},t.prototype._paintHoverList=function(e){var r=this._i.hoverlayer,n=this._hoverLayerDirty;if(this._hoverLayerDirty=Nf,n!==Nf&&(!r&&n===Bf&&(r=this._i.hoverlayer=this._ensureLayer(Gm)),!!r)){r.clear();for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},a,o=0,s=e.length;o<s;o++){var u=e[o];if(u.__inHover){a||(a=r.ctx,a.save());var l=u.__hoverStyle,f=void 0;l&&(f=u.style,u.style=l),Un(a,u,i),l&&(u.style=f)}}a&&(Hi(a,i),a.restore())}},t.prototype.getHoverLayer=function(){return this._ensureLayer(Gm)},t.prototype.paintOne=function(e,r){bv(e,r)},t.prototype._paintList=function(e,r,n){if(this._redrawId===n){var i=this._doPaintList(e,r);if(this._needsManuallyCompositing&&this._compositeManually(),i)Qe(this._i,function(o){o.afterBrush&&o.afterBrush()},ys),this._paintHoverList(e);else{var a=this;Su(function(){a._paintList(e,r,n)})}}},t.prototype._compositeManually=function(){var e=this._ensureLayer(Fn).ctx,r=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,r,n),Qe(this._i,function(i){i.virtual&&e.drawImage(i.dom,0,0,r,n)},qa)},t.prototype._doPaintList=function(e,r){var n=this,i=!0;return Qe(this._i,function(a){var o=!1;if(ms(a,function(c){(c.drawIdx<c.endIdx||c.notClearIdx>=0)&&(o=!0)}),!(!o&&!a.__dirty)){var s=n._opts.useDirtyRect&&!kf(a)?a.createRepaintRects(e,r,n._width,n._height):null,u=n._i.layerStack[0],l=!0;if(a.__dirty){l=!1,a.__dirty=!1;var f=a.zlevel===u.zl&&a.zlevel2===u.zl2?n._backgroundColor:null;a.clear(!1,f,s)}ms(a,function(c){var h=n._paintPerCursor(a,c,e,s,l);i=i&&h})}},ys),le.wxa&&Qe(this._i,function(a){a&&a.ctx&&a.ctx.draw&&a.ctx.draw()}),i},t.prototype._paintPerCursor=function(e,r,n,i,a){var o=e.ctx;if(i)if(!i.length)r.drawIdx=r.endIdx;else for(var s=this.dpr,u=0;u<i.length;++u){var l=i[u];o.save(),o.beginPath(),o.rect(l.x*s,l.y*s,l.width*s,l.height*s),o.clip(),this._paintPerCursorInRect(e,r,n,l,a),o.restore()}else o.save(),this._paintPerCursorInRect(e,r,n,null,a),o.restore();return r.drawIdx>=r.endIdx},t.prototype._paintPerCursorInRect=function(e,r,n,i,a){for(var o={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:a}},s=e.ctx,u=kf(e),l=u&&qe.getTime(),f=r.drawIdx,c=r.notClearIdx,h=c>=0?Math.min(c,f):f;h<r.endIdx;h++){var v=n[h];if(!(h<f&&!v.notClear)){if(v.__inHover&&(this._hoverLayerDirty=Bf),i!=null){var d=v.getPaintRect();d&&d.intersect(i)&&(Un(s,v,o),v.setPrevPaintRect(d))}else Un(s,v,o);if(u){var g=qe.getTime()-l;if(g>15){h++;break}}}}Hi(s,o),r.drawIdx=Math.max(h,f)},t.prototype.getLayer=function(e,r){return this._ensureLayer(e,0,r)},t.prototype._ensureLayer=function(e,r,n){r=r||0;var i=this._singleCanvas;i&&!this._needsManuallyCompositing&&(e=Fn,r=0);var a=Ff(this._i,e)[r];return a||(a=Wm("zr_"+e+"."+r,this,e,r),this._layerConfig[e]&&ye(a,this._layerConfig[e],!0),(n||i&&e!==Fn)&&(a.virtual=!0),this._insertLayer(a,e,r,!1),a.initContext()),a},t.prototype.insertLayer=function(e,r){this._insertLayer(r,e,0,!1)},t.prototype._insertLayer=function(e,r,n,i){var a=this._i,o=a.layers,s=a.layerStack,u=this._domRoot,l=null;if(!(o[r]&&o[r][n])&&NO(e)){for(var f=s.length,c=0;c<f&&(s[c].zl<r||s[c].zl===r&&s[c].zl2<n);)c++;if(c>0&&(l=Ff(a,s[c-1].zl)[s[c-1].zl2]),s.splice(c,0,{zl:r,zl2:n}),Ff(a,r)[n]=e,!i&&!e.virtual)if(l){var h=l.dom;h.nextSibling?u.insertBefore(e.dom,h.nextSibling):u.appendChild(e.dom)}else u.firstChild?u.insertBefore(e.dom,u.firstChild):u.appendChild(e.dom);e.painter||(e.painter=this)}},t.prototype.eachLayer=function(e,r){return Qe(this._i,function(n,i){e.call(r,n,i)})},t.prototype.eachBuiltinLayer=function(e,r){return Qe(this._i,function(n,i){e.call(r,n,i)},qa)},t.prototype.eachOtherLayer=function(e,r){return Qe(this._i,function(n,i){e.call(r,n,i)},rh)},t.prototype.getLayers=function(){var e={};return Qe(this._i,function(r,n,i){e[r.id]=r}),e},t.prototype._updateLayerStatus=function(e,r){var n=this;if(n._singleCanvas)for(var i=1;i<e.length;i++){var a=e[i];if(a.zlevel!==e[i-1].zlevel||a.incremental){n._needsManuallyCompositing=!0;break}}Qe(n._i,function(p){p.__dirty=!1,ms(p,function(m){m.used=!1,m.endIdxNew=0,m.notClearIdx=-1})},ys);for(var o,s=null,u=null,l=!1,f=0,c=e.length;f<c;f++){var a=e[f],h=a.zlevel,v=a.incremental,d=void 0;if(o!==h&&(o=h,l=!1),v?(l=!0,d=nM):d=l?rM:As,(!s||h!==s.zlevel||d!==s.zlevel2)&&(s=n._ensureLayer(h,d),u=null,!s.__builtin__)){Pu("ZLevel "+h+" has been used by unknown layer "+s.id);continue}if((!u||v!==u.key)&&(u=zO(s,v),!u.used))if(u.used=!0,!r&&u.first===a.id){var g=f-u.startIdx;u.startIdx=f,u.drawIdx+=g,u.endIdx+=g}else s.__dirty=!0,u.first=a.id,u.startIdx=u.drawIdx=f,u.endIdx=f+1;u.endIdxNew=f+1,a.__dirty&mt&&!a.__inHover&&((!v||!a.notClear&&f<u.drawIdx)&&(s.__dirty=!0),v&&a.notClear&&u.notClearIdx<0&&(u.notClearIdx=f))}Qe(n._i,function(p){for(var m=p.__cursorStack,y=p.__cursors,_=m.length-1;_>=0;_--){var S=y.get(m[_]);if(!S.used)p.__dirty=!0,y.removeKey(m[_]),m.splice(_,1);else{var b=S.endIdxNew;(kf(p)?b<S.drawIdx:b!==S.endIdx||!b||e[b-1].id!==S.last)&&(p.__dirty=!0),S.endIdx=S.endIdxNew,S.last=b?e[b-1].id:NaN}}p.__dirty&&(ms(p,function(w){w.drawIdx=w.startIdx}),n._hoverLayerDirty===Nf&&(n._hoverLayerDirty=kO))},ys)},t.prototype.clear=function(){return Qe(this._i,function(e){e.clear(),YS(e)},qa),this},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e,Qe(this._i,function(r){r.setUnpainted()})},t.prototype.configLayer=function(e,r){if(r){var n=this._layerConfig;n[e]?ye(n[e],r,!0):n[e]=r,Qe(this._i,function(i,a){ye(i,n[a],!0)})}},t.prototype.delLayer=function(e){for(var r=this._i.layerStack,n=this._i.layers,i=r.length-1;i>=0;i--){var a=r[i];if(a.zl===e){var o=n[e][a.zl2];if(o.__builtin__)continue;if(r.splice(i,1),n[e][a.zl2]=void 0,!o.virtual){var s=o.dom.parentNode;s&&s.removeChild(o.dom)}}}},t.prototype.resize=function(e,r){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,a=this.root;e!=null&&(i.width=e),r!=null&&(i.height=r),e=hs(a,0,i),r=hs(a,1,i),n.style.display="",(this._width!==e||r!==this._height)&&(n.style.width=e+"px",n.style.height=r+"px",Qe(this._i,function(o){o.resize(e,r)}),this.refresh({paintAll:!0})),this._width=e,this._height=r}else{if(e==null||r==null)return;this._width=e,this._height=r,this._ensureLayer(Fn).resize(e,r)}return this},t.prototype.clearLayer=function(e){M(this._i.layers[e],function(r){r&&!r.__builtin__&&r.clear()})},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._i=null},t.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._i.layers[Fn][0].dom;var r=new US("image",this,e.pixelRatio||this.dpr);r.initContext(),r.clear(!1,e.backgroundColor||this._backgroundColor);var n=r.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var i=r.dom.width,a=r.dom.height;Qe(this._i,function(c){c.__builtin__?n.drawImage(c.dom,0,0,i,a):c.renderToCanvas&&(n.save(),c.renderToCanvas(n),n.restore())})}else{for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},s=this.storage.getDisplayList(!0),u=0,l=s.length;u<l;u++){var f=s[u];Un(n,f,o)}Hi(n,o)}return r.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t})();function VO(t){t.registerPainter("canvas",HO)}Qi([yO,pO,Z2,wL,VO]);const GO=({data:t,filterOption:e})=>{const{css:r}=nh(),{fromDate:n,toDate:i}=e,a=eb(n,i),o=a.map(l=>{const f=t.find(c=>c.date===l);return(f==null?void 0:f.value)||0}),s=Math.ceil(a.length/30),u={tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},xAxis:{type:"category",data:a,axisLabel:{interval:s,rotate:30}},yAxis:{type:"value"},series:[{name:"Submissions",data:o,type:"bar",showBackground:!0,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)"},barWidth:"60%"}]};return U.jsxs("div",{className:r(Um.submissionStatsWrap),children:[U.jsx("span",{className:r(Je.title),children:"Submission Stats"}),U.jsx("hr",{}),U.jsx("div",{className:r(Um.tableWrap),children:U.jsx(ow,{echarts:OO,option:u})})]})},Um={submissionStatsWrap:{b:"1px solid #ccc",p:"1rem",brs:"8px",bd:"#fff"},tableWrap:{w:"100%"}},WO=lb(()=>fb(()=>import("./bf-907-205.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url),{fallback:U.jsx(cb,{className:"g-c",style:{height:300,width:500}})});function UO(){var W;const{formType:t,formID:e}=tb(),[r,n]=bt.useState(!0),[i,a]=bt.useState(),[o,s]=bt.useState(),[u,l]=bt.useState(1),[f,c]=bt.useState(["0","1","2","3","9"]),h=zf(rb),v=bt.useRef(Nv(h)),[d,g]=bt.useState(()=>Ym(h)),[p,m]=bt.useState([]),{css:y}=nh(),_=nb(),S=zf(qm),b=bt.useRef(null),[w,x]=bt.useState(!1),C=xb.useReactToPrint({removeAfterPrint:!0,content:()=>b.current,onBeforeGetContent:()=>x(!0),onAfterPrint:()=>x(!1)});v.current&&!Nv(h)&&(g(Ym(h)),v.current=!1);const D=bt.useCallback(({pageSize:z,pageIndex:q,sortBy:H,filters:X,globalFilter:ne,conditions:K,entriesFilterByDate:ue})=>{if(n(!0),u)return l(0);ib({id:e,sortBy:H,filters:X,globalFilter:ne,conditions:K,entriesFilterByDate:ue},"bitforms_get_entries_for_report").then(te=>{te!=null&&te.success&&m(te.data.entries),n(!1)}),a(ue==null?void 0:ue.start_date),s(ue==null?void 0:ue.end_date)},[S.id,e,u]),A=ab(p,h,{reportedFields:d,checkedStatus:f}),T=((W=A==null?void 0:A.submissionStatsData)==null?void 0:W.reduce((z,q)=>z+q.value,0))||0;bt.useEffect(()=>{var X;const z=Pi(Hf(30),"Y-m-d"),q=Pi(new Date,"Y-m-d");D({entriesFilterByDate:{start_date:z,end_date:q},conditions:(X=S==null?void 0:S.details)==null?void 0:X.conditions})},[D]);const k=(z,q)=>{c(z?H=>[...H,q]:H=>H.filter(X=>X!==q)),l(1)},P=(p==null?void 0:p[0])||{},B=ob(h,[],Cb).filter(z=>z.key in P&&P[z.key]!==null).map(z=>({label:z.name,value:z.key}))||[],F=z=>{const q=z.map(H=>H.value);g(q)},$=z=>f.includes(z);return U.jsxs("div",{className:y(Pt.mainWrapper),children:[U.jsxs("div",{className:y(Pt.headerWrapper),children:[U.jsxs(Bv,{className:`${y({mr:10})}`,onClick:()=>_(`/form/responses/${t}/${e}`),size:"sm",variant:"secondary-outline",children:[U.jsx(vb,{className:"mr-1"}),Fe("Entries")]}),U.jsx("h3",{className:y(Pt.title,{m:0}),children:" Analytics Report"}),U.jsxs("div",{className:y(Je.flxc),children:[U.jsx(_b,{fetchData:D,setRefreshResp:l}),r&&U.jsxs("div",{className:y(Je.flxc,Je.ml2),children:[U.jsx(sb,{size:20,className:y(Je.mr1)}),U.jsx("span",{children:Fe("Entries are loading...")})]})]})]}),U.jsx("div",{className:y(Je.divider)}),U.jsxs("div",{className:y(Pt.centerWrapper),children:[U.jsxs("div",{className:`${y(Pt.reportWrapper)} report-view`,ref:b,children:[U.jsx("style",{children:YO}),U.jsx(GO,{data:A==null?void 0:A.submissionStatsData,filterOption:{fromDate:i,toDate:o}}),U.jsxs("div",{className:y(Pt.fieldReportWrap),children:[U.jsx("span",{className:y(Je.title),children:Fe("Advance Field Wise Report")}),U.jsx("hr",{}),Object.entries(A==null?void 0:A.fieldData).map(([z,q])=>{var H,X;return U.jsx(WO,{title:((H=h[z])==null?void 0:H.adminLbl)||((X=h[z])==null?void 0:X.lbl),data:q},z)}),!Object.entries(A==null?void 0:A.fieldData).length&&U.jsx("p",{children:Fe("Please select fields to view reports individually")})]}),U.jsxs("div",{className:`${y(Pt.printFooter)} print-footer`,children:[Fe("Thank you for using Bit Form. If you like the plugin, please give us a")," ",U.jsx("a",{target:"_blank",href:"https://wordpress.org/support/plugin/bit-form/reviews/#new-post",rel:"noreferrer",children:Fe("review")})," ",Fe("on WordPress.org to help us spread more.")]})]}),U.jsxs("div",{className:y(Pt.reportOptionWrapper),children:[U.jsxs("div",{className:"filter-option",children:[U.jsx("span",{className:y(Je.title),children:Fe("Filter Options")}),U.jsx(db,{icnSize:14,children:Fe("All filters below will get entries based on analytics report")}),U.jsx("hr",{}),U.jsxs("div",{children:[U.jsx("span",{className:y(Je.sectionTitle),children:Fe("Filter by Date")}),U.jsx(Mb,{fetchData:D,className:y({mt:5})})]}),U.jsxs("div",{className:y(Pt.checkWrp),children:[U.jsx("span",{className:y(Je.sectionTitle),children:Fe("Entry Status")}),XO.map(z=>U.jsx(ub,{id:z.value,onChange:q=>k(q.target.checked,z.value),title:z.label,checked:$(z.value),className:y(Je.flxc,Pt.check)},z.value))]}),U.jsxs("div",{className:y({pn:"relative"}),children:[!Fv&&U.jsx(pb,{}),U.jsx(Sb,{className:`w-10 ${y(Pt.dropdown)}`,titleClassName:y(Je.sectionTitle),title:Fe("Select Fields for Report:"),isMultiple:!0,addable:!0,options:B,placeholder:Fe("Select Field"),jsonValue:!0,action:F,value:d,disabled:!Fv})]})]}),U.jsxs("div",{className:"other-option",children:[U.jsx("h4",{className:y(Je.mt3,Je.mb1),children:Fe("Other Info")}),U.jsxs("span",{children:[Fe("Total Entry:")," ",T]})]}),U.jsx("div",{className:y(Pt.printWarp),children:U.jsxs(Bv,{className:y({fs:"14px !important"}),size:"sm",onClick:C,disabled:r||w,children:[U.jsx(Tb,{size:16}),U.jsxs("span",{className:y(Je.ml1),children:[r&&Fe("Loading..."),w&&Fe("Printing..."),!r&&!w&&Fe("Print Report")]})]})})]})]})]})}const YO=`
32 @media print {
33 .report-view {
34 width: 100% !important;
35 overflow: visible !important;
36 height: fit-content !important;
37 }
38 .print-footer {
39 display: block;
40 }
41 }
42 `,XO=[{value:"0",label:"Read"},{value:"1",label:"Unread"},{value:"2",label:"Unconfirmed"},{value:"3",label:"Confirmed"},{value:"9",label:"Draft"}],Ym=t=>{const e=["check","radio","select","html-select","country","decision-box"];return Object.entries(t).filter(([n,i])=>e.includes(i.typ)).map(([n,i])=>n)},Pt={mainWrapper:{p:"5px 1rem"},headerWrapper:{mb:5,dy:"flex",jc:"space-between"},checkWrp:{m:"1rem 0"},check:{m:"5px 0",dy:"table !important"},fieldReportWrap:{m:"1rem 0"},centerWrapper:{dy:"flex"},reportWrapper:{p:"1rem",w:"75%",h:"calc(100vh - 85px)",brs:"var(--bf-bdr-radius-md)",owy:"scroll",owx:"hidden",bd:"var(--bf-bg-bluishwhite)"},reportOptionWrapper:{w:"25%",p:"1rem",pr:0,h:"calc(100vh - 85px)",bl:"1px solid var(--bf-stroke-clr)",owy:"scroll",owx:"hidden"},dropdown:{brs:"var(--bf-bdr-radius-sm) !important"},printWarp:{flx:"center",mt:10},printFooter:{dy:"none"}};var fk=Object.freeze({__proto__:null,default:UO});export{Ie as $,fi as A,se as B,he as C,Yd as D,Ps as E,tr as F,fL as G,un as H,zr as I,sM as J,DC as K,TC as L,bM as M,wM as N,Yn as O,xe as P,lk as Q,nl as R,h_ as S,ze as T,ye as U,Q as V,$y as W,oe as X,re as Y,yt as Z,j as _,Ut as a,B_ as a$,Ye as a0,me as a1,ce as a2,ge as a3,xt as a4,av as a5,ti as a6,we as a7,Gt as a8,si as a9,cn as aA,P0 as aB,sk as aC,WA as aD,Rh as aE,E0 as aF,ee as aG,Vh as aH,af as aI,Yi as aJ,Ay as aK,Ce as aL,it as aM,ao as aN,wo as aO,rk as aP,ek as aQ,Nh as aR,sl as aS,T0 as aT,eP as aU,KA as aV,QA as aW,KT as aX,Oy as aY,hr as aZ,UA as a_,p0 as aa,fe as ab,ln as ac,Eh as ad,ak as ae,Tt as af,$g as ag,uv as ah,ut as ai,t0 as aj,il as ak,wD as al,ri as am,Lh as an,Qi as ao,ow as ap,OO as aq,yO as ar,pO as as,Z2 as at,VO as au,wL as av,Gh as aw,hc as ax,vc as ay,GA as az,Pe as b,IP as b0,fk as b1,st as c,Vd as d,V as e,Me as f,LT as g,ie as h,Y as i,$u as j,Te as k,sn as l,nk as m,gy as n,Kw as o,v_ as p,Oe as q,ik as r,M as s,Le as t,uI as u,uk as v,tk as w,ok as x,Zx as y,uc as z};
43