@celeon/insight-board-mcp 0.0.0-stage → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +11 -0
- package/README.md +99 -2
- package/cli.mjs +1304 -0
- package/package.json +35 -4
- package/preview/3rdpartylicenses.txt +563 -0
- package/preview/browser/index.html +1 -0
- package/preview/browser/main-CU7XHWUF.js +21 -0
- package/preview/browser/styles-RLQJVG2B.css +1 -0
- package/preview/prerendered-routes.json +3 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
var LV=Object.create;var gd=Object.defineProperty,kV=Object.defineProperties,FV=Object.getOwnPropertyDescriptor,BV=Object.getOwnPropertyDescriptors,VV=Object.getOwnPropertyNames,Rb=Object.getOwnPropertySymbols,UV=Object.getPrototypeOf,Lb=Object.prototype.hasOwnProperty,HV=Object.prototype.propertyIsEnumerable;var Pb=(e,t,n)=>t in e?gd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,It=(e,t)=>{for(var n in t||={})Lb.call(t,n)&&Pb(e,n,t[n]);if(Rb)for(var n of Rb(t))HV.call(t,n)&&Pb(e,n,t[n]);return e},jt=(e,t)=>kV(e,BV(t));var zV=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(n){throw t=0,n}},jV=(e,t)=>{for(var n in t)gd(e,n,{get:t[n],enumerable:!0})},GV=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of VV(t))!Lb.call(e,i)&&i!==n&&gd(e,i,{get:()=>t[i],enumerable:!(r=FV(t,i))||r.enumerable});return e};var $V=(e,t,n)=>(n=e!=null?LV(UV(e)):{},GV(t||!e||!e.__esModule?gd(n,"default",{value:e,enumerable:!0}):n,e));var iA=zV((ole,ih)=>{"use strict";var BM,VM,UM,HM,zM,jM,GM,$M,WM,nh,Cx,YM,qM,ZM,vl,XM,KM,QM,JM,eA,tA,nA,rA,rh;(function(e){var t=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(r){e(n(t,n(r)))}):typeof ih=="object"&&typeof ih.exports=="object"?e(n(t,n(ih.exports))):e(n(t));function n(r,i){return r!==t&&(typeof Object.create=="function"?Object.defineProperty(r,"__esModule",{value:!0}):r.__esModule=!0),function(o,a){return r[o]=i?i(o,a):a}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])};BM=function(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");t(r,i);function o(){this.constructor=r}r.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)},VM=Object.assign||function(r){for(var i,o=1,a=arguments.length;o<a;o++){i=arguments[o];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])}return r},UM=function(r,i){var o={};for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&i.indexOf(a)<0&&(o[a]=r[a]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,a=Object.getOwnPropertySymbols(r);s<a.length;s++)i.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(r,a[s])&&(o[a[s]]=r[a[s]]);return o},HM=function(r,i,o,a){var s=arguments.length,l=s<3?i:a===null?a=Object.getOwnPropertyDescriptor(i,o):a,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(r,i,o,a);else for(var c=r.length-1;c>=0;c--)(u=r[c])&&(l=(s<3?u(l):s>3?u(i,o,l):u(i,o))||l);return s>3&&l&&Object.defineProperty(i,o,l),l},zM=function(r,i){return function(o,a){i(o,a,r)}},jM=function(r,i){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,i)},GM=function(r,i,o,a){function s(l){return l instanceof o?l:new o(function(u){u(l)})}return new(o||(o=Promise))(function(l,u){function c(p){try{d(a.next(p))}catch(h){u(h)}}function f(p){try{d(a.throw(p))}catch(h){u(h)}}function d(p){p.done?l(p.value):s(p.value).then(c,f)}d((a=a.apply(r,i||[])).next())})},$M=function(r,i){var o={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},a,s,l,u;return u={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function c(d){return function(p){return f([d,p])}}function f(d){if(a)throw new TypeError("Generator is already executing.");for(;o;)try{if(a=1,s&&(l=d[0]&2?s.return:d[0]?s.throw||((l=s.return)&&l.call(s),0):s.next)&&!(l=l.call(s,d[1])).done)return l;switch(s=0,l&&(d=[d[0]&2,l.value]),d[0]){case 0:case 1:l=d;break;case 4:return o.label++,{value:d[1],done:!1};case 5:o.label++,s=d[1],d=[0];continue;case 7:d=o.ops.pop(),o.trys.pop();continue;default:if(l=o.trys,!(l=l.length>0&&l[l.length-1])&&(d[0]===6||d[0]===2)){o=0;continue}if(d[0]===3&&(!l||d[1]>l[0]&&d[1]<l[3])){o.label=d[1];break}if(d[0]===6&&o.label<l[1]){o.label=l[1],l=d;break}if(l&&o.label<l[2]){o.label=l[2],o.ops.push(d);break}l[2]&&o.ops.pop(),o.trys.pop();continue}d=i.call(r,o)}catch(p){d=[6,p],s=0}finally{a=l=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}},WM=function(r,i){for(var o in r)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&rh(i,r,o)},rh=Object.create?function(r,i,o,a){a===void 0&&(a=o),Object.defineProperty(r,a,{enumerable:!0,get:function(){return i[o]}})}:function(r,i,o,a){a===void 0&&(a=o),r[a]=i[o]},nh=function(r){var i=typeof Symbol=="function"&&Symbol.iterator,o=i&&r[i],a=0;if(o)return o.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&a>=r.length&&(r=void 0),{value:r&&r[a++],done:!r}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")},Cx=function(r,i){var o=typeof Symbol=="function"&&r[Symbol.iterator];if(!o)return r;var a=o.call(r),s,l=[],u;try{for(;(i===void 0||i-- >0)&&!(s=a.next()).done;)l.push(s.value)}catch(c){u={error:c}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(u)throw u.error}}return l},YM=function(){for(var r=[],i=0;i<arguments.length;i++)r=r.concat(Cx(arguments[i]));return r},qM=function(){for(var r=0,i=0,o=arguments.length;i<o;i++)r+=arguments[i].length;for(var a=Array(r),s=0,i=0;i<o;i++)for(var l=arguments[i],u=0,c=l.length;u<c;u++,s++)a[s]=l[u];return a},ZM=function(r,i,o){if(o||arguments.length===2)for(var a=0,s=i.length,l;a<s;a++)(l||!(a in i))&&(l||(l=Array.prototype.slice.call(i,0,a)),l[a]=i[a]);return r.concat(l||i)},vl=function(r){return this instanceof vl?(this.v=r,this):new vl(r)},XM=function(r,i,o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a=o.apply(r,i||[]),s,l=[];return s={},u("next"),u("throw"),u("return"),s[Symbol.asyncIterator]=function(){return this},s;function u(m){a[m]&&(s[m]=function(g){return new Promise(function(v,y){l.push([m,g,v,y])>1||c(m,g)})})}function c(m,g){try{f(a[m](g))}catch(v){h(l[0][3],v)}}function f(m){m.value instanceof vl?Promise.resolve(m.value.v).then(d,p):h(l[0][2],m)}function d(m){c("next",m)}function p(m){c("throw",m)}function h(m,g){m(g),l.shift(),l.length&&c(l[0][0],l[0][1])}},KM=function(r){var i,o;return i={},a("next"),a("throw",function(s){throw s}),a("return"),i[Symbol.iterator]=function(){return this},i;function a(s,l){i[s]=r[s]?function(u){return(o=!o)?{value:vl(r[s](u)),done:s==="return"}:l?l(u):u}:l}},QM=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=r[Symbol.asyncIterator],o;return i?i.call(r):(r=typeof nh=="function"?nh(r):r[Symbol.iterator](),o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o);function a(l){o[l]=r[l]&&function(u){return new Promise(function(c,f){u=r[l](u),s(c,f,u.done,u.value)})}}function s(l,u,c,f){Promise.resolve(f).then(function(d){l({value:d,done:c})},u)}},JM=function(r,i){return Object.defineProperty?Object.defineProperty(r,"raw",{value:i}):r.raw=i,r};var n=Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:!0,value:i})}:function(r,i){r.default=i};eA=function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var o in r)o!=="default"&&Object.prototype.hasOwnProperty.call(r,o)&&rh(i,r,o);return n(i,r),i},tA=function(r){return r&&r.__esModule?r:{default:r}},nA=function(r,i,o,a){if(o==="a"&&!a)throw new TypeError("Private accessor was defined without a getter");if(typeof i=="function"?r!==i||!a:!i.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?a:o==="a"?a.call(r):a?a.value:i.get(r)},rA=function(r,i,o,a,s){if(a==="m")throw new TypeError("Private method is not writable");if(a==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof i=="function"?r!==i||!s:!i.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return a==="a"?s.call(r,o):s?s.value=o:i.set(r,o),o},e("__extends",BM),e("__assign",VM),e("__rest",UM),e("__decorate",HM),e("__param",zM),e("__metadata",jM),e("__awaiter",GM),e("__generator",$M),e("__exportStar",WM),e("__createBinding",rh),e("__values",nh),e("__read",Cx),e("__spread",YM),e("__spreadArrays",qM),e("__spreadArray",ZM),e("__await",vl),e("__asyncGenerator",XM),e("__asyncDelegator",KM),e("__asyncValues",QM),e("__makeTemplateObject",JM),e("__importStar",eA),e("__importDefault",tA),e("__classPrivateFieldGet",nA),e("__classPrivateFieldSet",rA)})});var Gt=null,vd=!1,$v=1,WV=null,pr=Symbol("SIGNAL");function pe(e){let t=Gt;return Gt=e,t}function yd(){return Gt}var _d={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function kb(e){if(vd)throw new Error("");if(Gt===null)return;Gt.consumerOnSignalRead(e);let t=Gt.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=Gt.recomputing;if(r&&(n=t!==void 0?t.nextProducer:Gt.producers,n!==void 0&&n.producer===e)){Gt.producersTail=n,n.lastReadVersion=e.version;return}let i=e.consumersTail;if(i!==void 0&&i.consumer===Gt&&(!r||qV(i,Gt)))return;let o=Bs(Gt),a={producer:e,consumer:Gt,nextProducer:n,prevConsumer:i,lastReadVersion:e.version,nextConsumer:void 0};Gt.producersTail=a,t!==void 0?t.nextProducer=a:Gt.producers=a,o&&zb(e,a)}function Fb(){$v++}function Bb(e){if(!(Bs(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===$v)){if(!e.producerMustRecompute(e)&&!Zv(e)){Gv(e);return}e.producerRecomputeValue(e),Gv(e)}}function Wv(e){if(e.consumers===void 0)return;let t=vd;vd=!0;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||YV(r)}}finally{vd=t}}function Yv(){return Gt?.consumerAllowSignalWrites!==!1}function YV(e){e.dirty=!0,Wv(e),e.consumerMarkedDirty?.(e)}function Gv(e){e.dirty=!1,e.lastCleanEpoch=$v}function qv(e){return e&&Vb(e),pe(e)}function Vb(e){e.producersTail=void 0,e.recomputing=!0}function Ub(e,t){pe(t),e&&Hb(e)}function Hb(e){e.recomputing=!1;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if(Bs(e))do n=Xv(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0}}function Zv(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(Bb(n),r!==n.version))return!0}return!1}function xd(e){if(Bs(e)){let t=e.producers;for(;t!==void 0;)t=Xv(t)}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0}function zb(e,t){let n=e.consumersTail,r=Bs(e);if(n!==void 0?(t.nextConsumer=n.nextConsumer,n.nextConsumer=t):(t.nextConsumer=void 0,e.consumers=t),t.prevConsumer=n,e.consumersTail=t,!r)for(let i=e.producers;i!==void 0;i=i.nextProducer)zb(i.producer,i)}function Xv(e){let t=e.producer,n=e.nextProducer,r=e.nextConsumer,i=e.prevConsumer;if(e.nextConsumer=void 0,e.prevConsumer=void 0,r!==void 0?r.prevConsumer=i:t.consumersTail=i,i!==void 0)i.nextConsumer=r;else if(t.consumers=r,!Bs(t)){let o=t.producers;for(;o!==void 0;)o=Xv(o)}return n}function Bs(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function jb(e){WV?.(e)}function qV(e,t){let n=t.producersTail;if(n!==void 0){let r=t.producers;do{if(r===e)return!0;if(r===n)break;r=r.nextProducer}while(r!==void 0)}return!1}function Gb(e,t){return Object.is(e,t)}function ZV(){throw new Error}var $b=ZV;function Wb(e){$b(e)}function Kv(e){$b=e}var XV=null;function Qv(e,t){let n=Object.create(Zb);n.value=e,t!==void 0&&(n.equal=t);let r=()=>Yb(n);return r[pr]=n,jb(n),[r,a=>Jv(n,a),a=>qb(n,a)]}function Yb(e){return kb(e),e.value}function Jv(e,t){Yv()||Wb(e),e.equal(e.value,t)||(e.value=t,KV(e))}function qb(e,t){Yv()||Wb(e),Jv(e,t(e.value))}var Zb=jt(It({},_d),{equal:Gb,value:void 0,kind:"signal"});function KV(e){e.version++,Fb(),Wv(e),XV?.(e)}function un(e){return typeof e=="function"}function Dd(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Sd=Dd(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:
|
|
2
|
+
${n.map((r,i)=>`${i+1}) ${r.toString()}`).join(`
|
|
3
|
+
`)}`:"",this.name="UnsubscriptionError",this.errors=n});function ku(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Xt=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let o of n)o.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(un(r))try{r()}catch(o){t=o instanceof Sd?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{Xb(o)}catch(a){t=t??[],a instanceof Sd?t=[...t,...a.errors]:t.push(a)}}if(t)throw new Sd(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Xb(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&ku(n,t)}remove(t){let{_finalizers:n}=this;n&&ku(n,t),t instanceof e&&t._removeParent(this)}};Xt.EMPTY=(()=>{let e=new Xt;return e.closed=!0,e})();var ey=Xt.EMPTY;function Cd(e){return e instanceof Xt||e&&"closed"in e&&un(e.remove)&&un(e.add)&&un(e.unsubscribe)}function Xb(e){un(e)?e():e.unsubscribe()}var hr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Vs={setTimeout(e,t,...n){let{delegate:r}=Vs;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Vs;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Kb(e){Vs.setTimeout(()=>{let{onUnhandledError:t}=hr;if(t)t(e);else throw e})}function ty(){}var Qb=ny("C",void 0,void 0);function Jb(e){return ny("E",void 0,e)}function ew(e){return ny("N",e,void 0)}function ny(e,t,n){return{kind:e,value:t,error:n}}var Zo=null;function Us(e){if(hr.useDeprecatedSynchronousErrorHandling){let t=!Zo;if(t&&(Zo={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=Zo;if(Zo=null,n)throw r}}else e()}function tw(e){hr.useDeprecatedSynchronousErrorHandling&&Zo&&(Zo.errorThrown=!0,Zo.error=e)}var Xo=class extends Xt{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Cd(t)&&t.add(this)):this.destination=eU}static create(t,n,r){return new Hs(t,n,r)}next(t){this.isStopped?iy(ew(t),this):this._next(t)}error(t){this.isStopped?iy(Jb(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?iy(Qb,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},QV=Function.prototype.bind;function ry(e,t){return QV.call(e,t)}var oy=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Ed(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Ed(r)}else Ed(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Ed(n)}}},Hs=class extends Xo{constructor(t,n,r){super();let i;if(un(t)||!t)i={next:t??void 0,error:n??void 0,complete:r??void 0};else{let o;this&&hr.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe(),i={next:t.next&&ry(t.next,o),error:t.error&&ry(t.error,o),complete:t.complete&&ry(t.complete,o)}):i=t}this.destination=new oy(i)}};function Ed(e){hr.useDeprecatedSynchronousErrorHandling?tw(e):Kb(e)}function JV(e){throw e}function iy(e,t){let{onStoppedNotification:n}=hr;n&&Vs.setTimeout(()=>n(e,t))}var eU={closed:!0,next:ty,error:JV,complete:ty};var nw=typeof Symbol=="function"&&Symbol.observable||"@@observable";function rw(e){return e}function iw(e){return e.length===0?rw:e.length===1?e[0]:function(n){return e.reduce((r,i)=>i(r),n)}}var zs=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,i){let o=nU(n)?n:new Hs(n,r,i);return Us(()=>{let{operator:a,source:s}=this;o.add(a?a.call(o,s):s?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=ow(r),new r((i,o)=>{let a=new Hs({next:s=>{try{n(s)}catch(l){o(l),a.unsubscribe()}},error:o,complete:i});this.subscribe(a)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[nw](){return this}pipe(...n){return iw(n)(this)}toPromise(n){return n=ow(n),new n((r,i)=>{let o;this.subscribe(a=>o=a,a=>i(a),()=>r(o))})}}return e.create=t=>new e(t),e})();function ow(e){var t;return(t=e??hr.Promise)!==null&&t!==void 0?t:Promise}function tU(e){return e&&un(e.next)&&un(e.error)&&un(e.complete)}function nU(e){return e&&e instanceof Xo||tU(e)&&Cd(e)}function rU(e){return un(e?.lift)}function aw(e){return t=>{if(rU(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function sw(e,t,n,r,i){return new ay(e,t,n,r,i)}var ay=class extends Xo{constructor(t,n,r,i,o,a){super(t),this.onFinalize=o,this.shouldUnsubscribe=a,this._next=n?function(s){try{n(s)}catch(l){t.error(l)}}:super._next,this._error=i?function(s){try{i(s)}catch(l){t.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(s){t.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};var lw=Dd(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var fi=(()=>{class e extends zs{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new bd(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new lw}next(n){Us(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Us(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){Us(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:i,observers:o}=this;return r||i?ey:(this.currentObservers=null,o.push(n),new Xt(()=>{this.currentObservers=null,ku(o,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:i,isStopped:o}=this;r?n.error(i):o&&n.complete()}asObservable(){let n=new zs;return n.source=this,n}}return e.create=(t,n)=>new bd(t,n),e})(),bd=class extends fi{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:ey}};var Fu=class extends fi{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};function sy(e,t){return aw((n,r)=>{let i=0;n.subscribe(sw(r,o=>{r.next(e.call(t,o,i++))}))})}var ly;function wd(){return ly}function zr(e){let t=ly;return ly=e,t}var uw=Symbol("NotFound");function js(e){return e===uw||e?.name==="\u0275NotFound"}var Rd="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",ve=class extends Error{code;constructor(t,n){super(ta(t,n)),this.code=t}};function aU(e){return`NG0${Math.abs(e)}`}function ta(e,t){return`${aU(e)}${t?": "+t:""}`}var Ki=globalThis;function je(e){for(let t in e)if(e[t]===je)return t;throw Error("")}function Pd(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(Pd).join(", ")}]`;if(e==null)return""+e;let t=e.overriddenName||e.name;if(t)return`${t}`;let n=e.toString();if(n==null)return""+n;let r=n.indexOf(`
|
|
4
|
+
`);return r>=0?n.slice(0,r):n}function Ey(e,t){return e?t?`${e} ${t}`:e:t||""}var sU=je({__forward_ref__:je});function Ld(e){return e.__forward_ref__=Ld,e}function Sn(e){return mw(e)?e():e}function mw(e){return typeof e=="function"&&e.hasOwnProperty(sU)&&e.__forward_ref__===Ld}function Ye(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Ws(e){return{providers:e.providers||[],imports:e.imports||[]}}function kd(e){return lU(e,Fd)}function lU(e,t){return e.hasOwnProperty(t)&&e[t]||null}function uU(e){let t=e?.[Fd]??null;return t||null}function cy(e){return e&&e.hasOwnProperty(Md)?e[Md]:null}var Fd=je({\u0275prov:je}),Md=je({\u0275inj:je}),Pe=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=Ye({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function by(e){return e&&!!e.\u0275providers}var wy=je({\u0275cmp:je}),Ty=je({\u0275dir:je}),Iy=je({\u0275pipe:je});var fy=je({\u0275fac:je}),na=je({__NG_ELEMENT_ID__:je}),fw=je({__NG_ENV_ID__:je});function ra(e){return Ay(e,"@Component"),e[wy]||null}function My(e){return Ay(e,"@Directive"),e[Ty]||null}function gw(e){return Ay(e,"@Pipe"),e[Iy]||null}function Ay(e,t){if(e==null)throw new ve(-919,!1)}function ia(e){return typeof e=="string"?e:e==null?"":String(e)}var vw=je({ngErrorCode:je}),cU=je({ngErrorMessage:je}),fU=je({ngTokenPath:je});function Ny(e,t){return yw("",-200,t)}function Bd(e,t){throw new ve(-201,!1)}function yw(e,t,n){let r=new ve(t,e);return r[vw]=t,r[cU]=e,n&&(r[fU]=n),r}function dU(e){return e[vw]}var dy;function _w(){return dy}function Dn(e){let t=dy;return dy=e,t}function Oy(e,t,n){let r=kd(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&8)return null;if(t!==void 0)return t;Bd(e,"")}var pU={},Ko=pU,hU="__NG_DI_FLAG__",py=class{injector;constructor(t){this.injector=t}retrieve(t,n){let r=Qo(n)||0;try{return this.injector.get(t,r&8?null:Ko,r)}catch(i){if(js(i))return i;throw i}}};function mU(e,t=0){let n=wd();if(n===void 0)throw new ve(-203,!1);if(n===null)return Oy(e,void 0,t);{let r=gU(t),i=n.retrieve(e,r);if(js(i)){if(r.optional)return null;throw i}return i}}function Fe(e,t=0){return(_w()||mU)(Sn(e),t)}function ye(e,t){return Fe(e,Qo(t))}function Qo(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function gU(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function hy(e){let t=[];for(let n=0;n<e.length;n++){let r=Sn(e[n]);if(Array.isArray(r)){if(r.length===0)throw new ve(900,!1);let i,o=0;for(let a=0;a<r.length;a++){let s=r[a],l=vU(s);typeof l=="number"?l===-1?i=s.token:o|=l:i=s}t.push(Fe(i,o))}else t.push(Fe(r))}return t}function vU(e){return e[hU]}function $s(e,t){let n=e.hasOwnProperty(fy);return n?e[fy]:null}function xw(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let i=e[r],o=t[r];if(n&&(i=n(i),o=n(o)),o!==i)return!1}return!0}function Dw(e){return e.flat(Number.POSITIVE_INFINITY)}function Vd(e,t){e.forEach(n=>Array.isArray(n)?Vd(n,t):t(n))}function Ry(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function ju(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Sw(e,t,n,r){let i=e.length;if(i==t)e.push(n,r);else if(i===1)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;){let o=i-2;e[i]=e[o],i--}e[t]=n,e[t+1]=r}}function Cw(e,t,n){let r=Ys(e,t);return r>=0?e[r|1]=n:(r=~r,Sw(e,r,t,n)),r}function Ud(e,t){let n=Ys(e,t);if(n>=0)return e[n|1]}function Ys(e,t){return yU(e,t,1)}function yU(e,t,n){let r=0,i=e.length>>n;for(;i!==r;){let o=r+(i-r>>1),a=e[o<<n];if(t===a)return o<<n;a>t?i=o:r=o+1}return~(i<<n)}var oa={},Hn=[],qs=new Pe(""),Py=new Pe("",-1),Ly=new Pe(""),Vu=class{get(t,n=Ko){if(n===Ko){let i=yw("",-201);throw i.name="\u0275NotFound",i}return n}};function Hd(e){return{\u0275providers:e}}function Ew(...e){return{\u0275providers:ky(!0,e),\u0275fromNgModule:!0}}function ky(e,...t){let n=[],r=new Set,i,o=a=>{n.push(a)};return Vd(t,a=>{let s=a;Ad(s,o,[],r)&&(i||=[],i.push(s))}),i!==void 0&&bw(i,o),n}function bw(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:i}=e[n];Fy(i,o=>{t(o,r)})}}function Ad(e,t,n,r){if(e=Sn(e),!e)return!1;let i=null,o=cy(e),a=!o&&ra(e);if(!o&&!a){let l=e.ngModule;if(o=cy(l),o)i=l;else return!1}else{if(a&&!a.standalone)return!1;i=e}let s=r.has(i);if(a){if(s)return!1;if(r.add(i),a.dependencies){let l=typeof a.dependencies=="function"?a.dependencies():a.dependencies;for(let u of l)Ad(u,t,n,r)}}else if(o){if(o.imports!=null&&!s){r.add(i);let u;Vd(o.imports,c=>{Ad(c,t,n,r)&&(u||=[],u.push(c))}),u!==void 0&&bw(u,t)}if(!s){let u=$s(i)||(()=>new i);t({provide:i,useFactory:u,deps:Hn},i),t({provide:Ly,useValue:i,multi:!0},i),t({provide:qs,useValue:()=>Fe(i),multi:!0},i)}let l=o.providers;if(l!=null&&!s){let u=e;Fy(l,c=>{t(c,u)})}}else return!1;return i!==e&&e.providers!==void 0}function Fy(e,t){for(let n of e)by(n)&&(n=n.\u0275providers),Array.isArray(n)?Fy(n,t):t(n)}var _U=je({provide:String,useValue:je});function ww(e){return e!==null&&typeof e=="object"&&_U in e}function xU(e){return!!(e&&e.useExisting)}function DU(e){return!!(e&&e.useFactory)}function Nd(e){return typeof e=="function"}var Gu=new Pe(""),Td={},dw={},uy;function $u(){return uy===void 0&&(uy=new Vu),uy}var zn=class{},Jo=class extends zn{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,i){super(),this.parent=n,this.source=r,this.scopes=i,gy(t,a=>this.processProvider(a)),this.records.set(Py,Gs(void 0,this)),i.has("environment")&&this.records.set(zn,Gs(void 0,this));let o=this.records.get(Gu);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Ly,Hn,{self:!0}))}retrieve(t,n){let r=Qo(n)||0;try{return this.get(t,Ko,r)}catch(i){if(js(i))return i;throw i}}destroy(){Bu(this),this._destroyed=!0;let t=pe(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),pe(t)}}onDestroy(t){return Bu(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){Bu(this);let n=zr(this),r=Dn(void 0),i;try{return t()}finally{zr(n),Dn(r)}}get(t,n=Ko,r){if(Bu(this),t.hasOwnProperty(fw))return t[fw](this);let i=Qo(r),o,a=zr(this),s=Dn(void 0);try{if(!(i&4)){let u=this.records.get(t);if(u===void 0){let c=wU(t)&&kd(t);c&&this.injectableDefInScope(c)?u=Gs(my(t),Td):u=null,this.records.set(t,u)}if(u!=null)return this.hydrate(t,u,i)}let l=i&2?$u():this.parent;return n=i&8&&n===Ko?null:n,l.get(t,n)}catch(l){let u=dU(l);throw u===-200||u===-201?new ve(u,null):l}finally{Dn(s),zr(a)}}resolveInjectorInitializers(){let t=pe(null),n=zr(this),r=Dn(void 0),i;try{let o=this.get(qs,Hn,{self:!0});for(let a of o)a()}finally{zr(n),Dn(r),pe(t)}}toString(){return"R3Injector[...]"}processProvider(t){t=Sn(t);let n=Nd(t)?t:Sn(t&&t.provide),r=CU(t);if(!Nd(t)&&t.multi===!0){let i=this.records.get(n);i||(i=Gs(void 0,Td,!0),i.factory=()=>hy(i.multi),this.records.set(n,i)),n=t,i.multi.push(t)}this.records.set(n,r)}hydrate(t,n,r){let i=pe(null);try{if(n.value===dw)throw Ny("");return n.value===Td&&(n.value=dw,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&bU(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{pe(i)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=Sn(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function my(e){let t=kd(e),n=t!==null?t.factory:$s(e);if(n!==null)return n;if(e instanceof Pe)throw new ve(-204,!1);if(e instanceof Function)return SU(e);throw new ve(-204,!1)}function SU(e){if(e.length>0)throw new ve(-204,!1);let n=uU(e);return n!==null?()=>n.factory(e):()=>new e}function CU(e){if(ww(e))return Gs(void 0,e.useValue);{let t=Tw(e);return Gs(t,Td)}}function Tw(e,t,n){let r;if(Nd(e)){let i=Sn(e);return $s(i)||my(i)}else if(ww(e))r=()=>Sn(e.useValue);else if(DU(e))r=()=>e.useFactory(...hy(e.deps||[]));else if(xU(e))r=(i,o)=>Fe(Sn(e.useExisting),o!==void 0&&o&8?8:void 0);else{let i=Sn(e&&(e.useClass||e.provide));if(EU(e))r=()=>new i(...hy(e.deps));else return $s(i)||my(i)}return r}function Bu(e){if(e.destroyed)throw new ve(-205,!1)}function Gs(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function EU(e){return!!e.deps}function bU(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function wU(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function gy(e,t){for(let n of e)Array.isArray(n)?gy(n,t):n&&by(n)?gy(n.\u0275providers,t):t(n)}function zd(e,t){let n;e instanceof Jo?(Bu(e),n=e):n=new py(e);let r,i=zr(n),o=Dn(void 0);try{return t()}finally{zr(i),Dn(o)}}function Iw(){return _w()!==void 0||wd()!=null}var mr=0,le=1,_e=2,Ct=3,Gn=4,$n=5,Zs=6,Xs=7,ht=8,hi=9,gr=10,st=11,Ks=12,By=13,aa=14,bn=15,Qi=16,sa=17,jr=18,mi=19,Vy=20,pi=21,jd=22,Wu=23,wn=24,la=25,Ji=26,lt=27,Mw=1,Uy=6,eo=7,Yu=8,ua=9,ut=10;function gi(e){return Array.isArray(e)&&typeof e[Mw]=="object"}function vr(e){return Array.isArray(e)&&e[Mw]===!0}function Hy(e){return(e.flags&4)!==0}function vi(e){return e.componentOffset>-1}function Qs(e){return(e.flags&1)===1}function ca(e){return!!e.template}function Js(e){return(e[_e]&512)!==0}function fa(e){return(e[_e]&256)===256}var rt=(function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e[e.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING",e})(rt||{}),Id,Uu="svg",zy="math";function Aw(){return Id||(Id={},Zi(rt.HTML,void 0,[["iframe",["srcdoc"]],["*",["innerHTML","outerHTML"]]]),Zi(rt.STYLE,void 0,[["*",["style"]]]),Zi(rt.URL,void 0,[["*",["formAction"]],["area",["href"]],["a",["href","xlink:href"]],["form",["action"]],["img",["src"]],["video",["src"]]]),Zi(rt.URL,zy,[["*",["href","xlink:href"]],["annotation",["href","xlink:href"]],["annotation-xml",["href","xlink:href"]],["maction",["href","xlink:href"]],["malignmark",["href","xlink:href"]],["math",["href","xlink:href"]],["mroot",["href","xlink:href"]],["msqrt",["href","xlink:href"]],["merror",["href","xlink:href"]],["mfrac",["href","xlink:href"]],["mglyph",["href","xlink:href"]],["msub",["href","xlink:href"]],["msup",["href","xlink:href"]],["msubsup",["href","xlink:href"]],["mmultiscripts",["href","xlink:href"]],["mprescripts",["href","xlink:href"]],["mi",["href","xlink:href"]],["mn",["href","xlink:href"]],["mo",["href","xlink:href"]],["mpadded",["href","xlink:href"]],["mphantom",["href","xlink:href"]],["mrow",["href","xlink:href"]],["ms",["href","xlink:href"]],["mspace",["href","xlink:href"]],["mstyle",["href","xlink:href"]],["mtable",["href","xlink:href"]],["mtd",["href","xlink:href"]],["mtr",["href","xlink:href"]],["mtext",["href","xlink:href"]],["mover",["href","xlink:href"]],["munder",["href","xlink:href"]],["munderover",["href","xlink:href"]],["semantics",["href","xlink:href"]],["none",["href","xlink:href"]]]),Zi(rt.RESOURCE_URL,void 0,[["base",["href"]],["embed",["src"]],["frame",["src"]],["iframe",["src"]],["link",["href"]],["object",["codebase","data"]]]),Zi(rt.URL,Uu,[["a",["href","xlink:href"]]]),Zi(rt.ATTRIBUTE_NO_BINDING,Uu,[["animate",["attributeName","values","to","from"]],["set",["to","attributeName"]],["animateMotion",["attributeName"]],["animateTransform",["attributeName"]]]),Zi(rt.ATTRIBUTE_NO_BINDING,void 0,[["unknown",["attributeName","values","to","from","sandbox","allow","allowFullscreen","referrerPolicy","csp","fetchPriority"]],["iframe",["sandbox","allow","allowFullscreen","referrerPolicy","csp","fetchPriority"]]])),Id}function Zi(e,t,n){for(let[r,i]of n){let o=t&&r!=="unknown"?`:${t}:${r}`:r;o=o.toLowerCase();for(let a of i)Id[`${o}|${a.toLowerCase()}`]=e}}function Nw(e,t,n){let r=Aw(),i=e.toLowerCase(),o=t.toLowerCase(),a=n&&i!=="*"&&i!=="unknown"?r[`:${n}:${i}|${o}`]:void 0,s=n?r[`:${n}:*|${o}`]:void 0;return a??s??r[`${i}|${o}`]??r[`*|${o}`]??rt.NONE}function Wn(e){for(;Array.isArray(e);)e=e[mr];return e}function jy(e,t){return Wn(t[e])}function Yn(e,t){return Wn(t[e.index])}function Gd(e,t){return e.data[t]}function Gy(e,t){return e[t]}function $d(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function qn(e,t){let n=t[e];return gi(n)?n:n[mr]}function Ow(e){return(e[_e]&4)===4}function Wd(e){return(e[_e]&128)===128}function Rw(e){return vr(e[Ct])}function Zn(e,t){return t==null?null:e[t]}function $y(e){e[sa]=0}function Wy(e){e[_e]&1024||(e[_e]|=1024,Wd(e)&&el(e))}function Pw(e,t){for(;e>0;)t=t[aa],e--;return t}function qu(e){return!!(e[_e]&9216||e[wn]?.dirty)}function Yd(e){e[gr].changeDetectionScheduler?.notify(8),e[_e]&64&&(e[_e]|=1024),qu(e)&&el(e)}function el(e){e[gr].changeDetectionScheduler?.notify(0);let t=Xi(e);for(;t!==null&&!(t[_e]&8192||(t[_e]|=8192,!Wd(t)));)t=Xi(t)}function Yy(e,t){if(fa(e))throw new ve(911,!1);e[pi]===null&&(e[pi]=[]),e[pi].push(t)}function Lw(e,t){if(e[pi]===null)return;let n=e[pi].indexOf(t);n!==-1&&e[pi].splice(n,1)}function Xi(e){let t=e[Ct];return vr(t)?t[Ct]:t}function qy(e){return e[Xs]??=[]}function Zy(e){return e.cleanup??=[]}function kw(e,t,n,r){let i=qy(t);i.push(n),e.firstCreatePass&&Zy(e).push(r,i.length-1)}var Se={lFrame:Zw(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var vy=!1;function Fw(){return Se.lFrame.elementDepthCount}function Bw(){Se.lFrame.elementDepthCount++}function Xy(){Se.lFrame.elementDepthCount--}function qd(){return Se.bindingsEnabled}function Vw(){return Se.skipHydrationRootTNode!==null}function Ky(e){return Se.skipHydrationRootTNode===e}function Qy(){Se.skipHydrationRootTNode=null}function Ce(){return Se.lFrame.lView}function Ft(){return Se.lFrame.tView}function Zu(e){return Se.lFrame.contextLView=e,e[ht]}function Xu(e){return Se.lFrame.contextLView=null,e}function cn(){let e=Jy();for(;e!==null&&e.type===64;)e=e.parent;return e}function Jy(){return Se.lFrame.currentTNode}function Uw(){let e=Se.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function da(e,t){let n=Se.lFrame;n.currentTNode=e,n.isParent=t}function e_(){return Se.lFrame.isParent}function Hw(){Se.lFrame.isParent=!1}function t_(){return Se.lFrame.contextLView}function n_(){return vy}function r_(e){let t=vy;return vy=e,t}function i_(){let e=Se.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function zw(){return Se.lFrame.bindingIndex}function jw(e){return Se.lFrame.bindingIndex=e}function tl(){return Se.lFrame.bindingIndex++}function o_(e){let t=Se.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Gw(){return Se.lFrame.inI18n}function $w(e,t){let n=Se.lFrame;n.bindingIndex=n.bindingRootIndex=e,Zd(t)}function Ww(){return Se.lFrame.currentDirectiveIndex}function Zd(e){Se.lFrame.currentDirectiveIndex=e}function Yw(e){let t=Se.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function a_(){return Se.lFrame.currentQueryIndex}function Xd(e){Se.lFrame.currentQueryIndex=e}function TU(e){let t=e[le];return t.type===2?t.declTNode:t.type===1?e[$n]:null}function s_(e,t,n){if(n&4){let i=t,o=e;for(;i=i.parent,i===null&&!(n&1);)if(i=TU(o),i===null||(o=o[aa],i.type&10))break;if(i===null)return!1;t=i,e=o}let r=Se.lFrame=qw();return r.currentTNode=t,r.lView=e,!0}function Kd(e){let t=qw(),n=e[le];Se.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function qw(){let e=Se.lFrame,t=e===null?null:e.child;return t===null?Zw(e):t}function Zw(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function Xw(){let e=Se.lFrame;return Se.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var l_=Xw;function Qd(){let e=Xw();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Kw(e){return(Se.lFrame.contextLView=Pw(e,Se.lFrame.contextLView))[ht]}function yr(){return Se.lFrame.selectedIndex}function to(e){Se.lFrame.selectedIndex=e}function Jd(){let e=Se.lFrame;return Gd(e.tView,e.selectedIndex)}function Ku(){Se.lFrame.currentNamespace=Uu}function ep(){IU()}function IU(){Se.lFrame.currentNamespace=null}function u_(){return Se.lFrame.currentNamespace}var Qw=!0;function tp(){return Qw}function Qu(e){Qw=e}function yy(e,t=null,n=null,r){let i=Jw(e,t,n,r);return i.resolveInjectorInitializers(),i}function Jw(e,t=null,n=null,r,i=new Set){let o=[n||Hn,Ew(e)],a;return new Jo(o,t||$u(),a||null,i)}var Cn=class e{static THROW_IF_NOT_FOUND=Ko;static NULL=new Vu;static create(t,n){if(Array.isArray(t))return yy({name:""},n,t,"");{let r=t.name??"";return yy({name:r},t.parent,t.providers,r)}}static \u0275prov=Ye({token:e,providedIn:"any",factory:()=>Fe(Py)});static __NG_ELEMENT_ID__=-1},Tn=new Pe(""),yi=(()=>{class e{static __NG_ELEMENT_ID__=MU;static __NG_ENV_ID__=n=>n}return e})(),_y=class extends yi{_lView;constructor(t){super(),this._lView=t}get destroyed(){return fa(this._lView)}onDestroy(t){let n=this._lView;return Yy(n,t),()=>Lw(n,t)}};function MU(){return new _y(Ce())}var eT=!1,tT=new Pe(""),nl=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new Fu(!1);debugTaskTracker=ye(tT,{optional:!0});get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new zs(n=>{n.next(!1),n.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),this.debugTaskTracker?.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.debugTaskTracker?.remove(n),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static \u0275prov=Ye({token:e,providedIn:"root",factory:()=>new e})}return e})(),xy=class extends fi{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,Iw()&&(this.destroyRef=ye(yi,{optional:!0})??void 0,this.pendingTasks=ye(nl,{optional:!0})??void 0)}emit(t){let n=pe(null);try{super.next(t)}finally{pe(n)}}subscribe(t,n,r){let i=t,o=n||(()=>null),a=r;if(t&&typeof t=="object"){let l=t;i=l.next?.bind(l),o=l.error?.bind(l),a=l.complete?.bind(l)}this.__isAsync&&(o=this.wrapInTimeout(o),i&&(i=this.wrapInTimeout(i)),a&&(a=this.wrapInTimeout(a)));let s=super.subscribe({next:i,error:o,complete:a});return t instanceof Xt&&t.add(s),s}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{t(n)}finally{r!==void 0&&this.pendingTasks?.remove(r)}})}}},di=xy;function Od(...e){}function c_(e){let t,n;function r(){e=Od;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function nT(e){return queueMicrotask(()=>e()),()=>{e=Od}}var f_="isAngularZone",Hu=f_+"_ID",AU=0,En=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new di(!1);onMicrotaskEmpty=new di(!1);onStable=new di(!1);onError=new di(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1,scheduleInRootZone:o=eT}=t;if(typeof Zone>"u")throw new ve(908,!1);Zone.assertZonePatched();let a=this;a._nesting=0,a._outer=a._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(a._inner=a._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(a._inner=a._inner.fork(Zone.longStackTraceZoneSpec)),a.shouldCoalesceEventChangeDetection=!i&&r,a.shouldCoalesceRunChangeDetection=i,a.callbackScheduled=!1,a.scheduleInRootZone=o,RU(a)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(f_)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new ve(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new ve(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,i){let o=this._inner,a=o.scheduleEventTask("NgZoneEvent: "+i,t,NU,Od,Od);try{return o.runTask(a,n,r)}finally{o.cancelTask(a)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},NU={};function d_(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function OU(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){c_(()=>{e.callbackScheduled=!1,Dy(e),e.isCheckStableRunning=!0,d_(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Dy(e)}function RU(e){let t=()=>{OU(e)},n=AU++;e._inner=e._inner.fork({name:"angular",properties:{[f_]:!0,[Hu]:n,[Hu+n]:!0},onInvokeTask:(r,i,o,a,s,l)=>{if(PU(l))return r.invokeTask(o,a,s,l);try{return pw(e),r.invokeTask(o,a,s,l)}finally{(e.shouldCoalesceEventChangeDetection&&a.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),hw(e)}},onInvoke:(r,i,o,a,s,l,u)=>{try{return pw(e),r.invoke(o,a,s,l,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!LU(l)&&t(),hw(e)}},onHasTask:(r,i,o,a)=>{r.hasTask(o,a),i===o&&(a.change=="microTask"?(e._hasPendingMicrotasks=a.microTask,Dy(e),d_(e)):a.change=="macroTask"&&(e.hasPendingMacrotasks=a.macroTask))},onHandleError:(r,i,o,a)=>(r.handleError(o,a),e.runOutsideAngular(()=>e.onError.emit(a)),!1)})}function Dy(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function pw(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function hw(e){e._nesting--,d_(e)}var zu=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new di;onMicrotaskEmpty=new di;onStable=new di;onError=new di;run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,i){return t.apply(n,r)}};function PU(e){return rT(e,"__ignore_ng_zone__")}function LU(e){return rT(e,"__scheduler_tick__")}function rT(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var jn=class{_console=console;handleError(t){this._console.error("ERROR",t)}},pa=new Pe("",{factory:()=>{let e=ye(En),t=ye(zn),n;return r=>{e.runOutsideAngular(()=>{t.destroyed&&!n?setTimeout(()=>{throw r}):(n??=t.get(jn),n.handleError(r))})}}}),iT={provide:qs,useValue:()=>{let e=ye(jn,{optional:!0})},multi:!0};function ha(e,t){let[n,r,i]=Qv(e,t?.equal),o=n,a=o[pr];return o.set=r,o.update=i,o.asReadonly=p_.bind(o),o}function p_(){let e=this[pr];if(e.readonlyFn===void 0){let t=()=>this();t[pr]=e,e.readonlyFn=t}return e.readonlyFn}var np=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=kU}return e})();function kU(){return new np(Ce(),cn())}var ea=class{},Ju=new Pe("",{factory:()=>!0});var h_=new Pe("");var m_=(()=>{class e{static \u0275prov=Ye({token:e,providedIn:"root",factory:()=>new Sy})}return e})(),Sy=class{dirtyEffectCount=0;queues=new Map;add(t){this.enqueue(t),this.schedule(t)}schedule(t){t.dirty&&this.dirtyEffectCount++}remove(t){let n=t.zone,r=this.queues.get(n);r.has(t)&&(r.delete(t),t.dirty&&this.dirtyEffectCount--)}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||r.add(t)}flush(){for(;this.dirtyEffectCount>0;){let t=!1;for(let[n,r]of this.queues)n===null?t||=this.flushQueue(r):t||=n.run(()=>this.flushQueue(r));t||(this.dirtyEffectCount=0)}}flushQueue(t){let n=!1;for(let r of t)r.dirty&&(this.dirtyEffectCount--,n=!0,r.run());return n}},Cy=class{[pr];constructor(t){this[pr]=t}destroy(){this[pr].destroy()}};function Ep(e){return{toString:e}.toString()}function $U(e){return typeof e=="function"}function UT(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var fp=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}},Sr=(()=>{let e=()=>HT;return e.ngInherit=!0,e})();function HT(e){return e.type.prototype.ngOnChanges&&(e.setInput=YU),WU}function WU(){let e=jT(this),t=e?.current;if(t){let n=e.previous;if(n===oa)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function YU(e,t,n,r,i){let o=this.declaredInputs[r],a=jT(e)||qU(e,{previous:oa,current:null}),s=a.current||(a.current={}),l=a.previous,u=l[o];s[o]=new fp(u&&u.currentValue,n,l===oa),UT(e,t,i,n)}var zT="__ngSimpleChanges__";function jT(e){return e[zT]||null}function qU(e,t){return e[zT]=t}var oT=[];var He=function(e,t=null,n){for(let r=0;r<oT.length;r++){let i=oT[r];i(e,t,n)}},Le=(function(e){return e[e.TemplateCreateStart=0]="TemplateCreateStart",e[e.TemplateCreateEnd=1]="TemplateCreateEnd",e[e.TemplateUpdateStart=2]="TemplateUpdateStart",e[e.TemplateUpdateEnd=3]="TemplateUpdateEnd",e[e.LifecycleHookStart=4]="LifecycleHookStart",e[e.LifecycleHookEnd=5]="LifecycleHookEnd",e[e.OutputStart=6]="OutputStart",e[e.OutputEnd=7]="OutputEnd",e[e.BootstrapApplicationStart=8]="BootstrapApplicationStart",e[e.BootstrapApplicationEnd=9]="BootstrapApplicationEnd",e[e.BootstrapComponentStart=10]="BootstrapComponentStart",e[e.BootstrapComponentEnd=11]="BootstrapComponentEnd",e[e.ChangeDetectionStart=12]="ChangeDetectionStart",e[e.ChangeDetectionEnd=13]="ChangeDetectionEnd",e[e.ChangeDetectionSyncStart=14]="ChangeDetectionSyncStart",e[e.ChangeDetectionSyncEnd=15]="ChangeDetectionSyncEnd",e[e.AfterRenderHooksStart=16]="AfterRenderHooksStart",e[e.AfterRenderHooksEnd=17]="AfterRenderHooksEnd",e[e.ComponentStart=18]="ComponentStart",e[e.ComponentEnd=19]="ComponentEnd",e[e.DeferBlockStateStart=20]="DeferBlockStateStart",e[e.DeferBlockStateEnd=21]="DeferBlockStateEnd",e[e.DynamicComponentStart=22]="DynamicComponentStart",e[e.DynamicComponentEnd=23]="DynamicComponentEnd",e[e.HostBindingsUpdateStart=24]="HostBindingsUpdateStart",e[e.HostBindingsUpdateEnd=25]="HostBindingsUpdateEnd",e})(Le||{});function ZU(e,t,n){let{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){let a=HT(t);(n.preOrderHooks??=[]).push(e,a),(n.preOrderCheckHooks??=[]).push(e,a)}i&&(n.preOrderHooks??=[]).push(0-e,i),o&&((n.preOrderHooks??=[]).push(e,o),(n.preOrderCheckHooks??=[]).push(e,o))}function GT(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let o=e.data[n].type.prototype,{ngAfterContentInit:a,ngAfterContentChecked:s,ngAfterViewInit:l,ngAfterViewChecked:u,ngOnDestroy:c}=o;a&&(e.contentHooks??=[]).push(-n,a),s&&((e.contentHooks??=[]).push(n,s),(e.contentCheckHooks??=[]).push(n,s)),l&&(e.viewHooks??=[]).push(-n,l),u&&((e.viewHooks??=[]).push(n,u),(e.viewCheckHooks??=[]).push(n,u)),c!=null&&(e.destroyHooks??=[]).push(n,c)}}function sp(e,t,n){$T(e,t,3,n)}function lp(e,t,n,r){(e[_e]&3)===n&&$T(e,t,n,r)}function g_(e,t){let n=e[_e];(n&3)===t&&(n&=16383,n+=1,e[_e]=n)}function $T(e,t,n,r){let i=r!==void 0?e[sa]&65535:0,o=r??-1,a=t.length-1,s=0;for(let l=i;l<a;l++)if(typeof t[l+1]=="number"){if(s=t[l],r!=null&&s>=r)break}else t[l]<0&&(e[sa]+=65536),(s<o||o==-1)&&(XU(e,n,t,l),e[sa]=(e[sa]&4294901760)+l+2),l++}function aT(e,t){He(Le.LifecycleHookStart,e,t);let n=pe(null);try{t.call(e)}finally{pe(n),He(Le.LifecycleHookEnd,e,t)}}function XU(e,t,n,r){let i=n[r]<0,o=n[r+1],a=i?-n[r]:n[r],s=e[a];i?e[_e]>>14<e[sa]>>16&&(e[_e]&3)===t&&(e[_e]+=16384,aT(s,o)):aT(s,o)}var il=-1,rc=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r,i){this.factory=t,this.name=i,this.canSeeViewProviders=n,this.injectImpl=r}};function KU(e){return(e.flags&8)!==0}function QU(e){return(e.flags&16)!==0}function JU(e,t,n){let r=0;for(;r<n.length;){let i=n[r];if(typeof i=="number"){if(i!==0)break;r++;let o=n[r++],a=n[r++],s=n[r++];e.setAttribute(t,a,s,o)}else{let o=i,a=n[++r];tH(o)?e.setProperty(t,o,a):e.setAttribute(t,o,a),r++}}return r}function eH(e){return e===3||e===4||e===6}function tH(e){return e.charCodeAt(0)===64}function bp(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){let i=t[r];typeof i=="number"?n=i:n===0||(n===-1||n===2?sT(e,n,i,null,t[++r]):sT(e,n,i,null,null))}}return e}function sT(e,t,n,r,i){let o=0,a=e.length;if(t===-1)a=-1;else for(;o<e.length;){let s=e[o++];if(typeof s=="number"){if(s===t){a=-1;break}else if(s>t){a=o-1;break}}}for(;o<e.length;){let s=e[o];if(typeof s=="number")break;if(s===n){i!==null&&(e[o+1]=i);return}o++,i!==null&&o++}a!==-1&&(e.splice(a,0,t),o=a+1),e.splice(o++,0,n),i!==null&&e.splice(o++,0,i)}function WT(e){return e!==il}function dp(e){return e&32767}function nH(e){return e>>16}function pp(e,t){let n=nH(e),r=t;for(;n>0;)r=r[aa],n--;return r}var E_=!0;function lT(e){let t=E_;return E_=e,t}var rH=256,YT=rH-1,qT=5,iH=0,Gr={};function oH(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(na)&&(r=n[na]),r==null&&(r=n[na]=iH++);let i=r&YT,o=1<<i;t.data[e+(i>>qT)]|=o}function ZT(e,t){let n=XT(e,t);if(n!==-1)return n;let r=t[le];r.firstCreatePass&&(e.injectorIndex=t.length,v_(r.data,e),v_(t,null),v_(r.blueprint,null));let i=a0(e,t),o=e.injectorIndex;if(WT(i)){let a=dp(i),s=pp(i,t),l=s[le].data;for(let u=0;u<8;u++)t[o+u]=s[a+u]|l[a+u]}return t[o+8]=i,o}function v_(e,t){e.push(0,0,0,0,0,0,0,0,t)}function XT(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function a0(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;i!==null;){if(r=tI(i),r===null)return il;if(n++,i=i[aa],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return il}function aH(e,t,n){oH(e,t,n)}function KT(e,t,n){if(n&8||e!==void 0)return e;Bd(t,"NodeInjector")}function QT(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let i=e[hi],o=Dn(void 0);try{return i?i.get(t,r,n&8):Oy(t,r,n&8)}finally{Dn(o)}}return KT(r,t,n)}function JT(e,t,n,r=0,i){if(e!==null){if(t[_e]&2048&&!(r&2)){let a=cH(e,t,n,r,Gr);if(a!==Gr)return a}let o=eI(e,t,n,r,Gr);if(o!==Gr)return o}return QT(t,n,r,i)}function eI(e,t,n,r,i){let o=lH(n);if(typeof o=="function"){if(!s_(t,e,r))return r&1?KT(i,n,r):QT(t,n,r,i);try{let a;if(a=o(r),a==null&&!(r&8))Bd(n);else return a}finally{l_()}}else if(typeof o=="number"){let a=null,s=XT(e,t),l=il,u=r&1?t[bn][$n]:null;for((s===-1||r&4)&&(l=s===-1?a0(e,t):t[s+8],l===il||!cT(r,!1)?s=-1:(a=t[le],s=dp(l),t=pp(l,t)));s!==-1;){let c=t[le];if(uT(o,s,c.data)){let f=sH(s,t,n,a,r,u);if(f!==Gr)return f}l=t[s+8],l!==il&&cT(r,t[le].data[s+8]===u)&&uT(o,s,t)?(a=c,s=dp(l),t=pp(l,t)):s=-1}}return i}function sH(e,t,n,r,i,o){let a=t[le],s=a.data[e+8],l=r==null?vi(s)&&E_:r!=a&&(s.type&3)!==0,u=i&1&&o===s,c=up(s,a,n,l,u);return c!==null?hp(t,a,c,s,i):Gr}function up(e,t,n,r,i){let o=e.providerIndexes,a=t.data,s=o&1048575,l=e.directiveStart,u=e.directiveEnd,c=o>>20,f=r?s:s+c,d=i?s+c:u;for(let p=f;p<d;p++){let h=a[p];if(p<l&&n===h||p>=l&&h.type===n)return p}if(i){let p=a[l];if(p&&ca(p)&&p.type===n)return l}return null}function hp(e,t,n,r,i){let o=e[n],a=t.data;if(o instanceof rc){let s=o;if(s.resolving)throw Ny("");let l=lT(s.canSeeViewProviders);s.resolving=!0;let u=a[n].type||a[n],c,f=s.injectImpl?Dn(s.injectImpl):null,d=s_(e,r,0);try{o=e[n]=s.factory(void 0,i,a,e,r),t.firstCreatePass&&n>=r.directiveStart&&ZU(n,a[n],t)}finally{f!==null&&Dn(f),lT(l),s.resolving=!1,l_()}}return o}function lH(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(na)?e[na]:void 0;return typeof t=="number"?t>=0?t&YT:uH:t}function uT(e,t,n){let r=1<<e;return!!(n[t+(e>>qT)]&r)}function cT(e,t){return!(e&2)&&!(e&1&&t)}var ma=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return JT(this._tNode,this._lView,t,Qo(r),n)}};function uH(){return new ma(cn(),Ce())}function cH(e,t,n,r,i){let o=e,a=t;for(;o!==null&&a!==null&&a[_e]&2048&&!Js(a);){let s=eI(o,a,n,r|2,Gr);if(s!==Gr)return s;let l=o.parent;if(!l){let u=a[Vy];if(u){let c=u.get(n,Gr,r&-5);if(c!==Gr)return c}l=tI(a),a=a[aa]}o=l}return i}function tI(e){let t=e[le],n=t.type;return n===2?t.declTNode:n===1?e[$n]:null}function fH(){return ll(cn(),Ce())}function ll(e,t){return new $r(Yn(e,t))}var $r=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=fH}return e})();function dH(e){return e instanceof $r?e.nativeElement:e}function pH(){return this._results[Symbol.iterator]()}var mp=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new fi}constructor(t=!1){this._emitDistinctChangesOnly=t}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;let r=Dw(t);(this._changesDetected=!xw(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=pH};function nI(e){return(e.flags&128)===128}var s0=(function(e){return e[e.OnPush=0]="OnPush",e[e.Eager=1]="Eager",e[e.Default=1]="Default",e})(s0||{}),rI=new Map,hH=0;function mH(){return hH++}function gH(e){rI.set(e[mi],e)}function b_(e){rI.delete(e[mi])}var fT="__ngContext__";function ol(e,t){gi(t)?(e[fT]=t[mi],gH(t)):e[fT]=t}function iI(e){return aI(e[Ks])}function oI(e){return aI(e[Gn])}function aI(e){for(;e!==null&&!vr(e);)e=e[Gn];return e}var w_;function l0(e){w_=e}function sI(){if(w_!==void 0)return w_;if(typeof document<"u")return document;throw new ve(210,!1)}var wp=new Pe("",{factory:()=>vH}),vH="ng";var Tp=new Pe(""),fc=new Pe("",{providedIn:"platform",factory:()=>"unknown"});var Ip=new Pe("",{factory:()=>ye(Tn).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var lI="r";var uI="di";var cI=!1,fI=new Pe("",{factory:()=>cI});var dT=new WeakMap;function yH(e,t){if(e==null||typeof e!="object")return;let n=dT.get(e);n||(n=new WeakSet,dT.set(e,n)),n.add(t)}var _H=(e,t,n,r)=>{};function xH(e,t,n,r){_H(e,t,n,r)}function u0(e){return(e.flags&32)===32}var DH=()=>null;function dI(e,t,n=!1){return DH(e,t,n)}function pI(e,t){let n=e.contentQueries;if(n!==null){let r=pe(null);try{for(let i=0;i<n.length;i+=2){let o=n[i],a=n[i+1];if(a!==-1){let s=e.data[a];Xd(o),s.contentQueries(2,t[a],a)}}}finally{pe(r)}}}function T_(e,t,n){Xd(0);let r=pe(null);try{t(e,n)}finally{pe(r)}}function c0(e,t,n){if(Hy(t)){let r=pe(null);try{let i=t.directiveStart,o=t.directiveEnd;for(let a=i;a<o;a++){let s=e.data[a];if(s.contentQueries){let l=n[a];s.contentQueries(1,l,a)}}}finally{pe(r)}}}var xr=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e[e.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom",e})(xr||{});var SH="svg",CH="math",EH={"http://www.w3.org/2000/svg":SH,"http://www.w3.org/1998/Math/MathML":CH},rp;function bH(){if(rp===void 0&&(rp=null,Ki.trustedTypes))try{rp=Ki.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return rp}function Mp(e){return bH()?.createHTML(e)||e}var ip;function hI(){if(ip===void 0&&(ip=null,Ki.trustedTypes))try{ip=Ki.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return ip}function pT(e){return hI()?.createHTML(e)||e}function hT(e){return hI()?.createScriptURL(e)||e}var _i=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Rd})`}},I_=class extends _i{getTypeName(){return"HTML"}},M_=class extends _i{getTypeName(){return"Style"}},A_=class extends _i{getTypeName(){return"Script"}},N_=class extends _i{getTypeName(){return"URL"}},O_=class extends _i{getTypeName(){return"ResourceURL"}};function Cr(e){return e instanceof _i?e.changingThisBreaksApplicationSecurity:e}function Wr(e,t){let n=mI(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Rd})`)}return n===t}function mI(e){return e instanceof _i&&e.getTypeName()||null}function f0(e){return new I_(e)}function d0(e){return new M_(e)}function p0(e){return new A_(e)}function h0(e){return new N_(e)}function m0(e){return new O_(e)}function wH(e){let t=new P_(e);return TH()?new R_(t):t}var R_=class{inertDocumentHelper;constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{let n=new window.DOMParser().parseFromString(Mp(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch{return null}}},P_=class{defaultDoc;inertDocument;constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){let n=this.inertDocument.createElement("template");return n.innerHTML=Mp(t),n}};function TH(){try{return!!new window.DOMParser().parseFromString(Mp(""),"text/html")}catch{return!1}}var IH=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function dc(e){return e=String(e),e.match(IH)?e:"unsafe:"+e}function Di(e){let t={};for(let n of e.split(","))t[n]=!0;return t}function pc(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}var gI=Di("area,br,col,hr,img,wbr"),vI=Di("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),yI=Di("rp,rt"),MH=pc(yI,vI),AH=pc(vI,Di("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),NH=pc(yI,Di("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),mT=pc(gI,AH,NH,MH),_I=Di("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),OH=Di("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),RH=Di("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),PH=pc(_I,OH,RH),LH=Di("script,style,template"),L_=class{sanitizedSomething=!1;buf=[];sanitizeChildren(t){let n=t.firstChild,r=!0,i=[];for(;n;){if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild){i.push(n),n=BH(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let o=FH(n);if(o){n=o;break}n=i.pop()}}return this.buf.join("")}startElement(t){let n=gT(t).toLowerCase();if(!mT.hasOwnProperty(n))return this.sanitizedSomething=!0,!LH.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=t.attributes;for(let i=0;i<r.length;i++){let o=r.item(i),a=o.name,s=a.toLowerCase();if(!PH.hasOwnProperty(s)){this.sanitizedSomething=!0;continue}let l=o.value;_I[s]&&(l=dc(l)),this.buf.push(" ",a,'="',vT(l),'"')}return this.buf.push(">"),!0}endElement(t){let n=gT(t).toLowerCase();mT.hasOwnProperty(n)&&!gI.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(vT(t))}};function kH(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function FH(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw xI(t);return t}function BH(e){let t=e.firstChild;if(t&&kH(e,t))throw xI(t);return t}function gT(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function xI(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var VH=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,UH=/([^\#-~ |!])/g;function vT(e){return e.replace(/&/g,"&").replace(VH,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(UH,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}var op;function Ap(e,t){let n=null;try{op=op||wH(e);let r=t?String(t):"";n=op.getInertBodyElement(r);let i=5,o=r;do{if(i===0)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=op.getInertBodyElement(r)}while(r!==o);let s=new L_().sanitizeChildren(yT(n)||n);return Mp(s)}finally{if(n){let r=yT(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function yT(e){return"content"in e&&HH(e)?e.content:null}function HH(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var zH=/^>|^->|<!--|-->|--!>|<!-$/g,jH=/(<|>)/g,GH="\u200B$1\u200B";function $H(e){return e.replace(zH,t=>t.replace(jH,GH))}function WH(e,t){return e.createText(t)}function YH(e,t,n){e.setValue(t,n)}function qH(e,t){return e.createComment($H(t))}function DI(e,t,n){return e.createElement(t,n)}function gp(e,t,n,r,i){e.insertBefore(t,n,r,i)}function SI(e,t,n){e.appendChild(t,n)}function _T(e,t,n,r,i){r!==null?gp(e,t,n,r,i):SI(e,t,n)}function CI(e,t,n,r){e.removeChild(null,t,n,r)}function ZH(e,t,n){e.setAttribute(t,"style",n)}function XH(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function EI(e,t,n){let{mergedAttrs:r,classes:i,styles:o}=n;r!==null&&JU(e,t,r),i!==null&&XH(e,t,i),o!==null&&ZH(e,t,o)}function KH(e,t=!0){if(e[0]!=":")return[null,e];let n=e.indexOf(":",1);if(n===-1){if(t)throw new Error(`Unsupported format "${e}" expecting ":namespace:name"`);return[null,e]}return[e.slice(1,n),e.slice(n+1)]}function g0(e,t,n){if(t!==void 0&&n!==void 0&&QH(t,n)!==rt.HTML)return e;let r=y0();return r?pT(r.sanitize(rt.HTML,e)||""):Wr(e,"HTML")?pT(Cr(e)):Ap(sI(),ia(e))}function Np(e){let t=y0();return t?t.sanitize(rt.URL,e)||"":Wr(e,"URL")?Cr(e):dc(ia(e))}function v0(e){let t=y0();if(t)return hT(t.sanitize(rt.RESOURCE_URL,e)||"");if(Wr(e,"ResourceURL"))return hT(Cr(e));throw new ve(904,!1)}function y0(){let e=Ce();return e&&e[gr].sanitizer}function QH(e,t){let[n,r]=JH(e);return Nw(r,t,n)}function JH(e){e=e.toLowerCase();let t=KH(e,!1);if(t[0])return t;let r=yr()===-1?null:Jd(),i=r?.namespace;if(e==="#host"&&r?.type===2){let o=Yn(r,Ce());if(o.tagName&&(e=o.tagName.toLowerCase()),i==null){let a=o.namespaceURI;i=a&&EH[a]}}return[i,e]}function ez(e,t,n){let r=e.length;for(;;){let i=e.indexOf(t,n);if(i===-1)return i;if(i===0||e.charCodeAt(i-1)<=32){let o=t.length;if(i+o===r||e.charCodeAt(i+o)<=32)return i}n=i+1}}var bI="ng-template";function tz(e,t,n,r){let i=0;if(r){for(;i<t.length&&typeof t[i]=="string";i+=2)if(t[i]==="class"&&ez(t[i+1].toLowerCase(),n,0)!==-1)return!0}else if(_0(e))return!1;if(i=t.indexOf(1,i),i>-1){let o;for(;++i<t.length&&typeof(o=t[i])=="string";)if(o.toLowerCase()===n)return!0}return!1}function _0(e){return e.type===4&&e.value!==bI}function nz(e,t,n){let r=e.type===4&&!n?bI:e.value;return t===r}function rz(e,t,n){let r=4,i=e.attrs,o=i!==null?az(i):0,a=!1;for(let s=0;s<t.length;s++){let l=t[s];if(typeof l=="number"){if(!a&&!_r(r)&&!_r(l))return!1;if(a&&_r(l))continue;a=!1,r=l|r&1;continue}if(!a)if(r&4){if(r=2|r&1,l!==""&&!nz(e,l,n)||l===""&&t.length===1){if(_r(r))return!1;a=!0}}else if(r&8){if(i===null||!tz(e,i,l,n)){if(_r(r))return!1;a=!0}}else{let u=t[++s],c=iz(l,i,_0(e),n);if(c===-1){if(_r(r))return!1;a=!0;continue}if(u!==""){let f;if(c>o?f="":f=i[c+1].toLowerCase(),r&2&&u!==f){if(_r(r))return!1;a=!0}}}}return _r(r)||a}function _r(e){return(e&1)===0}function iz(e,t,n,r){if(t===null)return-1;let i=0;if(r||!n){let o=!1;for(;i<t.length;){let a=t[i];if(a===e)return i;if(a===3||a===6)o=!0;else if(a===1||a===2){let s=t[++i];for(;typeof s=="string";)s=t[++i];continue}else{if(a===4)break;if(a===0){i+=4;continue}}i+=o?1:2}return-1}else return sz(t,e)}function oz(e,t,n=!1){for(let r=0;r<t.length;r++)if(rz(e,t[r],n))return!0;return!1}function az(e){for(let t=0;t<e.length;t++){let n=e[t];if(eH(n))return t}return e.length}function sz(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return-1;if(r===t)return n;n++}return-1}function xT(e,t){return e?":not("+t.trim()+")":t}function lz(e){let t=e[0],n=1,r=2,i="",o=!1;for(;n<e.length;){let a=e[n];if(typeof a=="string")if(r&2){let s=e[++n];i+="["+a+(s.length>0?'="'+s+'"':"")+"]"}else r&8?i+="."+a:r&4&&(i+=" "+a);else i!==""&&!_r(a)&&(t+=xT(o,i),i=""),r=a,o=o||!_r(r);n++}return i!==""&&(t+=xT(o,i)),t}function uz(e){return e.map(lz).join(",")}function cz(e){let t=[],n=[],r=1,i=2;for(;r<e.length;){let o=e[r];if(typeof o=="string")i===2?o!==""&&t.push(o,e[++r]):i===8&&n.push(o);else{if(!_r(i))break;i=o}r++}return n.length&&t.push(1,...n),t}var Xn={};function x0(e,t,n,r,i,o,a,s,l,u,c){let f=lt+r,d=f+i,p=fz(f,d),h=typeof u=="function"?u():u;return p[le]={type:e,blueprint:p,template:n,queries:null,viewQuery:s,declTNode:t,data:p.slice().fill(null,f),bindingStartIndex:f,expandoStartIndex:d,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof o=="function"?o():o,pipeRegistry:typeof a=="function"?a():a,firstChild:null,schemas:l,consts:h,incompleteFirstPass:!1,ssrId:c}}function fz(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:Xn);return n}function dz(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=x0(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function D0(e,t,n,r,i,o,a,s,l,u,c){let f=t.blueprint.slice();return f[mr]=i,f[_e]=r|4|128|8|64|1024,(u!==null||e&&e[_e]&2048)&&(f[_e]|=2048),$y(f),f[Ct]=f[aa]=e,f[ht]=n,f[gr]=a||e&&e[gr],f[st]=s||e&&e[st],f[hi]=l||e&&e[hi]||null,f[$n]=o,f[mi]=mH(),f[Zs]=c,f[Vy]=u,f[bn]=t.type==2?e[bn]:f,f}function pz(e,t,n){let r=Yn(t,e),i=dz(n),o=e[gr].rendererFactory,a=S0(e,D0(e,i,null,wI(n),r,t,null,o.createRenderer(r,n),null,null,null));return e[t.index]=a}function wI(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function TI(e,t,n,r){if(n===0)return-1;let i=t.length;for(let o=0;o<n;o++)t.push(r),e.blueprint.push(r),e.data.push(null);return i}function S0(e,t){return e[Ks]?e[By][Gn]=t:e[Ks]=t,e[By]=t,t}function ee(e=1){II(Ft(),Ce(),yr()+e,!1)}function II(e,t,n,r){if(!r)if((t[_e]&3)===3){let o=e.preOrderCheckHooks;o!==null&&sp(t,o,n)}else{let o=e.preOrderHooks;o!==null&&lp(t,o,0,n)}to(n)}var Op=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(Op||{});function k_(e,t,n,r){let i=pe(null);try{let[o,a,s]=e.inputs[n],l=null;(a&Op.SignalBased)!==0&&(l=t[o][pr]),l!==null&&l.transformFn!==void 0?r=l.transformFn(r):s!==null&&(r=s.call(t,r)),e.setInput!==null?e.setInput(t,l,r,n,o):UT(t,l,o,r)}finally{pe(i)}}var Dr=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(Dr||{}),hz;function C0(e,t){return hz(e,t)}var pJ=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";var F_=new WeakMap,ec=new WeakSet;function mz(e,t){let n=F_.get(e);if(!n||n.length===0)return;let r=t.parentNode,i=t.previousSibling;for(let o=n.length-1;o>=0;o--){let a=n[o],s=a.parentNode;a===t?(n.splice(o,1),ec.add(a),a.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}}))):(i&&a===i||s&&r&&s!==r)&&(n.splice(o,1),a.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}})),a.parentNode?.removeChild(a))}}function gz(e,t){let n=F_.get(e);n?n.includes(t)||n.push(t):F_.set(e,[t])}var ga=new Set,Rp=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(Rp||{}),ro=new Pe(""),DT=new Set;function Si(e){DT.has(e)||(DT.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var E0=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=Ye({token:e,providedIn:"root",factory:()=>new e})}return e})(),MI=[0,1,2,3],AI=(()=>{class e{ngZone=ye(En);scheduler=ye(ea);errorHandler=ye(jn,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){ye(ro,{optional:!0})}execute(){let n=this.sequences.size>0;n&&He(Le.AfterRenderHooksStart),this.executing=!0;for(let r of MI)for(let i of this.sequences)if(!(i.erroredOrDestroyed||!i.hooks[r]))try{i.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let o=i.hooks[r];return o(i.pipelinedValue)},i.snapshot))}catch(o){i.erroredOrDestroyed=!0,this.errorHandler?.handleError(o)}this.executing=!1;for(let r of this.sequences)r.afterRun(),r.once&&(this.sequences.delete(r),r.destroy());for(let r of this.deferredRegistrations)this.sequences.add(r);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),n&&He(Le.AfterRenderHooksEnd)}register(n){let{view:r}=n;r!==void 0?((r[la]??=[]).push(n),el(r),r[_e]|=8192):this.executing?this.deferredRegistrations.add(n):this.addSequence(n)}addSequence(n){this.sequences.add(n),this.scheduler.notify(7)}unregister(n){this.executing&&this.sequences.has(n)?(n.erroredOrDestroyed=!0,n.pipelinedValue=void 0,n.once=!0):(this.sequences.delete(n),this.deferredRegistrations.delete(n))}maybeTrace(n,r){return r?r.run(Rp.AFTER_NEXT_RENDER,n):n()}static \u0275prov=Ye({token:e,providedIn:"root",factory:()=>new e})}return e})(),vp=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(t,n,r,i,o,a=null){this.impl=t,this.hooks=n,this.view=r,this.once=i,this.snapshot=a,this.unregisterOnDestroy=o?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let t=this.view?.[la];t&&(this.view[la]=t.filter(n=>n!==this))}};function b0(e,t){let n=t?.injector??ye(Cn);return Si("NgAfterNextRender"),yz(e,n,t,!0)}function vz(e){return e instanceof Function?[void 0,void 0,e,void 0]:[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function yz(e,t,n,r){let i=t.get(E0);i.impl??=t.get(AI);let o=t.get(ro,null,{optional:!0}),a=n?.manualCleanup!==!0?t.get(yi):null,s=t.get(np,null,{optional:!0}),l=new vp(i.impl,vz(e),s?.view,r,a,o?.snapshot(null));return i.impl.register(l),l}var NI=new Pe("",{factory:()=>({queue:new Set,isScheduled:!1,scheduler:null,injector:ye(zn)})});function OI(e,t,n){let r=e.get(NI);if(Array.isArray(t))for(let i of t)r.queue.add(i),n?.detachedLeaveAnimationFns?.push(i);else r.queue.add(t),n?.detachedLeaveAnimationFns?.push(t);r.scheduler&&r.scheduler(e)}function _z(e,t){let n=e.get(NI);if(t.detachedLeaveAnimationFns){for(let r of t.detachedLeaveAnimationFns)n.queue.delete(r);t.detachedLeaveAnimationFns=void 0}}function xz(e,t){for(let[n,r]of t)OI(e,r.animateFns)}function ST(e,t,n,r){let i=e?.[Ji]?.enter;t!==null&&i&&i.has(n.index)&&xz(r,i)}function rl(e,t,n,r,i,o,a,s){if(i!=null){let l,u=!1;vr(i)?l=i:gi(i)&&(u=!0,i=i[mr]);let c=Wn(i);e===0&&r!==null?(ST(s,r,o,n),a==null?SI(t,r,c):gp(t,r,c,a||null,!0)):e===1&&r!==null?(ST(s,r,o,n),gp(t,r,c,a||null,!0),mz(o,c)):e===2?(s?.[Ji]?.leave?.has(o.index)&&gz(o,c),ec.delete(c),CT(s,o,n,f=>{if(ec.has(c)){ec.delete(c);return}CI(t,c,u,f)})):e===3&&(ec.delete(c),CT(s,o,n,()=>{t.destroyNode(c)})),l!=null&&Rz(t,e,n,l,o,r,a)}}function Dz(e,t){RI(e,t),t[mr]=null,t[$n]=null}function Sz(e,t,n,r,i,o){r[mr]=i,r[$n]=t,Lp(e,r,n,1,i,o)}function RI(e,t){t[gr].changeDetectionScheduler?.notify(9),Lp(e,t,t[st],2,null,null)}function Cz(e){let t=e[Ks];if(!t)return y_(e[le],e);for(;t;){let n=null;if(gi(t))n=t[Ks];else{let r=t[ut];r&&(n=r)}if(!n){for(;t&&!t[Gn]&&t!==e;)gi(t)&&y_(t[le],t),t=t[Ct];t===null&&(t=e),gi(t)&&y_(t[le],t),n=t&&t[Gn]}t=n}}function w0(e,t){let n=e[ua],r=n.indexOf(t);n.splice(r,1)}function Pp(e,t){if(fa(t))return;let n=t[st];n.destroyNode&&Lp(e,t,n,3,null,null),Cz(t)}function y_(e,t){if(fa(t))return;let n=pe(null);try{t[_e]&=-129,t[_e]|=256,t[wn]&&xd(t[wn]),wz(e,t),bz(e,t),t[le].type===1&&t[st].destroy();let r=t[Qi];if(r!==null&&vr(t[Ct])){r!==t[Ct]&&w0(r,t);let i=t[jr];i!==null&&i.detachView(e)}b_(t)}finally{pe(n)}}function CT(e,t,n,r){let i=e?.[Ji];if(i==null||i.leave==null||!i.leave.has(t.index))return r(!1);e&&ga.add(e[mi]),OI(n,()=>{if(i.leave&&i.leave.has(t.index)){let a=i.leave.get(t.index),s=[];if(a){for(let l=0;l<a.animateFns.length;l++){let u=a.animateFns[l],{promise:c}=u();s.push(c)}i.detachedLeaveAnimationFns=void 0}i.running=Promise.allSettled(s),Ez(e,r)}else e&&ga.delete(e[mi]),r(!1)},i)}function Ez(e,t){let n=e[Ji]?.running;if(n){n.then(()=>{e[Ji].running=void 0,ga.delete(e[mi]),t(!0)});return}t(!1)}function bz(e,t){let n=e.cleanup,r=t[Xs];if(n!==null)for(let a=0;a<n.length-1;a+=2)if(typeof n[a]=="string"){let s=n[a+3];s>=0?r[s]():r[-s].unsubscribe(),a+=2}else{let s=r[n[a+1]];n[a].call(s)}r!==null&&(t[Xs]=null);let i=t[pi];if(i!==null){t[pi]=null;for(let a=0;a<i.length;a++){let s=i[a];s()}}let o=t[Wu];if(o!==null){t[Wu]=null;for(let a of o)a.destroy()}}function wz(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let i=t[n[r]];if(!(i instanceof rc)){let o=n[r+1];if(Array.isArray(o))for(let a=0;a<o.length;a+=2){let s=i[o[a]],l=o[a+1];He(Le.LifecycleHookStart,s,l);try{l.call(s)}finally{He(Le.LifecycleHookEnd,s,l)}}else{He(Le.LifecycleHookStart,i,o);try{o.call(i)}finally{He(Le.LifecycleHookEnd,i,o)}}}}}function Tz(e,t,n){return Iz(e,t.parent,n)}function Iz(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[mr];if(vi(r)){let{encapsulation:i}=e.data[r.directiveStart+r.componentOffset];if(i===xr.None||i===xr.Emulated)return null}return Yn(r,n)}function Mz(e,t,n){return Nz(e,t,n)}function Az(e,t,n){return e.type&40?Yn(e,n):null}var Nz=Az,ET;function T0(e,t,n,r){let i=Tz(e,r,t),o=t[st],a=r.parent||t[$n],s=Mz(a,r,t);if(i!=null)if(Array.isArray(n))for(let l=0;l<n.length;l++)_T(o,i,n[l],s,!1);else _T(o,i,n,s,!1);ET!==void 0&&ET(o,r,t,n,i)}function tc(e,t){if(t!==null){let n=t.type;if(n&3)return Yn(t,e);if(n&4)return B_(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return tc(e,r);{let i=e[t.index];return vr(i)?B_(-1,i):Wn(i)}}else{if(n&128)return tc(e,t.next);if(n&32)return C0(t,e)()||Wn(e[t.index]);{let r=PI(e,t);if(r!==null){if(Array.isArray(r))return r[0];let i=Xi(e[bn]);return tc(i,r)}else return tc(e,t.next)}}}return null}function PI(e,t){if(t!==null){let r=e[bn][$n],i=t.projection;return r.projection[i]}return null}function B_(e,t){let n=ut+e+1;if(n<t.length){let r=t[n],i=r[le].firstChild;if(i!==null)return tc(r,i)}return t[eo]}function I0(e,t,n,r,i,o,a){for(;n!=null;){let s=r[hi];if(n.type===128){n=n.next;continue}let l=r[n.index],u=n.type;if(a&&t===0&&(l&&ol(Wn(l),r),n.flags|=2),!u0(n))if(u&8)I0(e,t,n.child,r,i,o,!1),rl(t,e,s,i,l,n,o,r);else if(u&32){let c=C0(n,r),f;for(;f=c();)rl(t,e,s,i,f,n,o,r);rl(t,e,s,i,l,n,o,r)}else u&16?Oz(e,t,r,n,i,o):rl(t,e,s,i,l,n,o,r);n=a?n.projectionNext:n.next}}function Lp(e,t,n,r,i,o){I0(n,r,e.firstChild,t,i,o,!1)}function Oz(e,t,n,r,i,o){let a=n[bn],l=a[$n].projection[r.projection];if(Array.isArray(l))for(let u=0;u<l.length;u++){let c=l[u];rl(t,e,n[hi],i,c,r,o,n)}else{let u=l,c=a[Ct];nI(r)&&(u.flags|=128),I0(e,t,u,c,i,o,!0)}}function Rz(e,t,n,r,i,o,a){let s=r[eo],l=Wn(r);s!==l&&rl(t,e,n,o,s,i,a);for(let u=ut;u<r.length;u++){let c=r[u];Lp(c[le],c,e,t,o,s)}}function Pz(e,t,n,r,i){if(t)i?e.addClass(n,r):e.removeClass(n,r);else{let o=r.indexOf("-")===-1?void 0:Dr.DashCase;i==null?e.removeStyle(n,r,o):(typeof i=="string"&&i.endsWith("!important")&&(i=i.slice(0,-10),o|=Dr.Important),e.setStyle(n,r,i,o))}}function LI(e,t,n,r,i){let o=yr(),a=r&2;try{to(-1),a&&t.length>lt&&II(e,t,lt,!1);let s=a?Le.TemplateUpdateStart:Le.TemplateCreateStart;He(s,i,n),n(r,i)}finally{to(o);let s=a?Le.TemplateUpdateEnd:Le.TemplateCreateEnd;He(s,i,n)}}function kp(e,t,n){zz(e,t,n),(n.flags&64)===64&&jz(e,t,n)}function hc(e,t,n=Yn){let r=t.localNames;if(r!==null){let i=t.index+1;for(let o=0;o<r.length;o+=2){let a=r[o+1],s=a===-1?n(t,e):e[a];e[i++]=s}}}function Lz(e,t,n,r){let o=r.get(fI,cI)||n===xr.ShadowDom||n===xr.ExperimentalIsolatedShadowDom,a=e.selectRootElement(t,o);return kz(a),a}function kz(e){Fz(e)}var Fz=()=>null;function Bz(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function Vz(e,t,n,r,i,o){let a=t[le];if(O0(e,a,t,n,r)){vi(e)&&Hz(t,e.index);return}e.type&3&&(n=Bz(n)),Uz(e,t,n,r,i,o)}function Uz(e,t,n,r,i,o){if(e.type&3){let a=Yn(e,t);r=o!=null?o(r,e.value||"",n):r,i.setProperty(a,n,r)}else e.type&12}function Hz(e,t){let n=qn(t,e);n[_e]&16||(n[_e]|=64)}function zz(e,t,n){let r=n.directiveStart,i=n.directiveEnd;vi(n)&&pz(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||ZT(n,t);let o=n.initialInputs;for(let a=r;a<i;a++){let s=e.data[a],l=hp(t,e,a,n);if(ol(l,t),o!==null&&Yz(t,a-r,l,s,n,o),ca(s)){let u=qn(n.index,t);u[ht]=hp(t,e,a,n)}}}function jz(e,t,n){let r=n.directiveStart,i=n.directiveEnd,o=n.index,a=Ww();try{to(o);for(let s=r;s<i;s++){let l=e.data[s],u=t[s];Zd(s),(l.hostBindings!==null||l.hostVars!==0||l.hostAttrs!==null)&&Gz(l,u)}}finally{to(-1),Zd(a)}}function Gz(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function M0(e,t){let n=e.directiveRegistry,r=null;if(n)for(let i=0;i<n.length;i++){let o=n[i];oz(t,o.selectors,!1)&&(r??=[],ca(o)?r.unshift(o):r.push(o))}return r}function $z(e,t,n,r,i,o){let a=Yn(e,t);Wz(t[st],a,o,e.value,n,r,i)}function Wz(e,t,n,r,i,o,a){if(o==null)e.removeAttribute(t,i,n);else{let s=a==null?ia(o):a(o,r||"",i);e.setAttribute(t,i,s,n)}}function Yz(e,t,n,r,i,o){let a=o[t];if(a!==null)for(let s=0;s<a.length;s+=2){let l=a[s],u=a[s+1];k_(r,n,l,u)}}function A0(e,t,n,r,i){let o=lt+n,a=t[le],s=i(a,t,e,r,n);t[o]=s,da(e,!0);let l=e.type===2;return l?(EI(t[st],s,e),(Fw()===0||Qs(e))&&ol(s,t),Bw()):ol(s,t),tp()&&(!l||!u0(e))&&T0(a,t,s,e),e}function N0(e){let t=e;return e_()?Hw():(t=t.parent,da(t,!1)),t}function qz(e,t){let n=e[hi];if(!n)return;let r;try{r=n.get(pa,null)}catch{r=null}r?.(t)}function O0(e,t,n,r,i){let o=e.inputs?.[r],a=e.hostDirectiveInputs?.[r],s=!1;if(a)for(let l=0;l<a.length;l+=2){let u=a[l],c=a[l+1],f=t.data[u];k_(f,n[u],c,i),s=!0}if(o)for(let l of o){let u=n[l],c=t.data[l];k_(c,u,r,i),s=!0}return s}function Zz(e,t){let n=qn(t,e),r=n[le];Xz(r,n);let i=n[mr];i!==null&&n[Zs]===null&&(n[Zs]=dI(i,n[hi])),He(Le.ComponentStart);try{R0(r,n,n[ht])}finally{He(Le.ComponentEnd,n[ht])}}function Xz(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function R0(e,t,n){Kd(t);try{let r=e.viewQuery;r!==null&&T_(1,r,n);let i=e.template;i!==null&&LI(e,t,i,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[jr]?.finishViewCreation(e),e.staticContentQueries&&pI(e,t),e.staticViewQueries&&T_(2,e.viewQuery,n);let o=e.components;o!==null&&Kz(t,o)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[_e]&=-5,Qd()}}function Kz(e,t){for(let n=0;n<t.length;n++)Zz(e,t[n])}function Fp(e,t,n,r){let i=pe(null);try{let o=t.tView,s=e[_e]&4096?4096:16,l=D0(e,o,n,s,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),u=e[t.index];l[Qi]=u;let c=e[jr];return c!==null&&(l[jr]=c.createEmbeddedView(o)),R0(o,l,n),l}finally{pe(i)}}function ic(e,t){return!t||t.firstChild===null||nI(e)}function oc(e,t,n,r,i=!1){for(;n!==null;){if(n.type===128){n=i?n.projectionNext:n.next;continue}let o=t[n.index];o!==null&&r.push(Wn(o)),vr(o)&&kI(o,r);let a=n.type;if(a&8)oc(e,t,n.child,r);else if(a&32){let s=C0(n,t),l;for(;l=s();)r.push(l)}else if(a&16){let s=PI(t,n);if(Array.isArray(s))r.push(...s);else{let l=Xi(t[bn]);oc(l[le],l,s,r,!0)}}n=i?n.projectionNext:n.next}return r}function kI(e,t){for(let n=ut;n<e.length;n++){let r=e[n],i=r[le].firstChild;i!==null&&oc(r[le],r,i,t)}e[eo]!==e[mr]&&t.push(e[eo])}function FI(e){if(e[la]!==null){for(let t of e[la])t.impl.addSequence(t);e[la].length=0}}var BI=[];function Qz(e){return e[wn]??Jz(e)}function Jz(e){let t=BI.pop()??Object.create(tj);return t.lView=e,t}function ej(e){e.lView[wn]!==e&&(e.lView=null,BI.push(e))}var tj=jt(It({},_d),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{el(e.lView)},consumerOnSignalRead(){this.lView[wn]=this}});function nj(e){let t=e[wn]??Object.create(rj);return t.lView=e,t}var rj=jt(It({},_d),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=Xi(e.lView);for(;t&&!VI(t[le]);)t=Xi(t);t&&Wy(t)},consumerOnSignalRead(){this.lView[wn]=this}});function VI(e){return e.type!==2}function UI(e){if(e[Wu]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[Wu])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[_e]&8192)}}var ij=100;function HI(e,t=0){let r=e[gr].rendererFactory,i=!1;i||r.begin?.();try{oj(e,t)}finally{i||r.end?.()}}function oj(e,t){let n=n_();try{r_(!0),V_(e,t);let r=0;for(;qu(e);){if(r===ij)throw new ve(103,!1);r++,V_(e,1)}}finally{r_(n)}}function aj(e,t,n,r){if(fa(t))return;let i=t[_e],o=!1,a=!1;Kd(t);let s=!0,l=null,u=null;o||(VI(e)?(u=Qz(t),l=qv(u)):yd()===null?(s=!1,u=nj(t),l=qv(u)):t[wn]&&(xd(t[wn]),t[wn]=null));try{$y(t),jw(e.bindingStartIndex),n!==null&&LI(e,t,n,2,r);let c=(i&3)===3;if(!o)if(c){let p=e.preOrderCheckHooks;p!==null&&sp(t,p,null)}else{let p=e.preOrderHooks;p!==null&&lp(t,p,0,null),g_(t,0)}if(a||sj(t),UI(t),zI(t,0),e.contentQueries!==null&&pI(e,t),!o)if(c){let p=e.contentCheckHooks;p!==null&&sp(t,p)}else{let p=e.contentHooks;p!==null&&lp(t,p,1),g_(t,1)}uj(e,t);let f=e.components;f!==null&&GI(t,f,0);let d=e.viewQuery;if(d!==null&&T_(2,d,r),!o)if(c){let p=e.viewCheckHooks;p!==null&&sp(t,p)}else{let p=e.viewHooks;p!==null&&lp(t,p,2),g_(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[jd]){for(let p of t[jd])p();t[jd]=null}o||(FI(t),t[_e]&=-73)}catch(c){throw o||el(t),c}finally{u!==null&&(Ub(u,l),s&&ej(u)),Qd()}}function zI(e,t){for(let n=iI(e);n!==null;n=oI(n))for(let r=ut;r<n.length;r++){let i=n[r];jI(i,t)}}function sj(e){for(let t=iI(e);t!==null;t=oI(t)){if(!(t[_e]&2))continue;let n=t[ua];for(let r=0;r<n.length;r++){let i=n[r];Wy(i)}}}function lj(e,t,n){He(Le.ComponentStart);let r=qn(t,e);try{jI(r,n)}finally{He(Le.ComponentEnd,r[ht])}}function jI(e,t){Wd(e)&&V_(e,t)}function V_(e,t){let r=e[le],i=e[_e],o=e[wn],a=!!(t===0&&i&16);if(a||=!!(i&64&&t===0),a||=!!(i&1024),a||=!!(o?.dirty&&Zv(o)),a||=!1,o&&(o.dirty=!1),e[_e]&=-9217,a)aj(r,e,r.template,e[ht]);else if(i&8192){let s=pe(null);try{UI(e),zI(e,1);let l=r.components;l!==null&&GI(e,l,1),FI(e)}finally{pe(s)}}}function GI(e,t,n){for(let r=0;r<t.length;r++)lj(e,t[r],n)}function uj(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let i=n[r];if(i<0)to(~i);else{let o=i,a=n[++r],s=n[++r];$w(a,o);let l=t[o];He(Le.HostBindingsUpdateStart,l);try{s(2,l)}finally{He(Le.HostBindingsUpdateEnd,l)}}}}finally{to(-1)}}function P0(e,t){let n=n_()?64:1088;for(e[gr].changeDetectionScheduler?.notify(t);e;){e[_e]|=n;let r=Xi(e);if(Js(e)&&!r)return e;e=r}return null}function $I(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function WI(e,t){let n=ut+t;if(n<e.length)return e[n]}function Bp(e,t,n,r=!0){let i=t[le];if(cj(i,t,e,n),r){let a=B_(n,e),s=t[st],l=s.parentNode(e[eo]);l!==null&&Sz(i,e[$n],s,t,l,a)}let o=t[Zs];o!==null&&o.firstChild!==null&&(o.firstChild=null)}function YI(e,t){let n=ac(e,t);return n!==void 0&&Pp(n[le],n),n}function ac(e,t){if(e.length<=ut)return;let n=ut+t,r=e[n];if(r){let i=r[Qi];i!==null&&i!==e&&w0(i,r),t>0&&(e[n-1][Gn]=r[Gn]);let o=ju(e,ut+t);Dz(r[le],r);let a=o[jr];a!==null&&a.detachView(o[le]),r[Ct]=null,r[Gn]=null,r[_e]&=-129}return r}function cj(e,t,n,r){let i=ut+r,o=n.length;r>0&&(n[i-1][Gn]=t),r<o-ut?(t[Gn]=n[i],Ry(n,ut+r,t)):(n.push(t),t[Gn]=null),t[Ct]=n;let a=t[Qi];a!==null&&n!==a&&qI(a,t);let s=t[jr];s!==null&&s.insertView(e),Yd(t),t[_e]|=128}function qI(e,t){let n=e[ua],r=t[Ct];if(gi(r))e[_e]|=2;else{let i=r[Ct][bn];t[bn]!==i&&(e[_e]|=2)}n===null?e[ua]=[t]:n.push(t)}var no=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){let t=this._lView,n=t[le];return oc(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n}get context(){return this._lView[ht]}set context(t){this._lView[ht]=t}get destroyed(){return fa(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[Ct];if(vr(t)){let n=t[Yu],r=n?n.indexOf(this):-1;r>-1&&(ac(t,r),ju(n,r))}this._attachedToViewContainer=!1}Pp(this._lView[le],this._lView)}onDestroy(t){Yy(this._lView,t)}markForCheck(){P0(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[_e]&=-129}reattach(){Yd(this._lView),this._lView[_e]|=128}detectChanges(){this._lView[_e]|=1024,HI(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ve(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=Js(this._lView),n=this._lView[Qi];n!==null&&!t&&w0(n,this._lView),RI(this._lView[le],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new ve(902,!1);this._appRef=t;let n=Js(this._lView),r=this._lView[Qi];r!==null&&!n&&qI(r,this._lView),Yd(this._lView)}};var al=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=fj;constructor(n,r,i){this._declarationLView=n,this._declarationTContainer=r,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,r){return this.createEmbeddedViewImpl(n,r)}createEmbeddedViewImpl(n,r,i){let o=Fp(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:i});return new no(o)}}return e})();function fj(){return Vp(cn(),Ce())}function Vp(e,t){return e.type&4?new al(t,e,ll(e,t)):null}function ul(e,t,n,r,i){let o=e.data[t];if(o===null)o=dj(e,t,n,r,i),Gw()&&(o.flags|=32);else if(o.type&64){o.type=n,o.value=r,o.attrs=i;let a=Uw();o.injectorIndex=a===null?-1:a.injectorIndex}return da(o,!0),o}function dj(e,t,n,r,i){let o=Jy(),a=e_(),s=a?o:o&&o.parent,l=e.data[t]=hj(e,s,n,t,r,i);return pj(e,l,o,a),l}function pj(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n))}function hj(e,t,n,r,i,o){let a=t?t.injectorIndex:-1,s=0;return Vw()&&(s|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:a,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,controlDirectiveIndex:-1,customControlIndex:-1,propertyBindings:null,flags:s,providerIndexes:0,value:i,namespace:u_(),attrs:o,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function mj(e){let t=e[Uy]??[],r=e[Ct][st],i=[];for(let o of t)o.data[uI]!==void 0?i.push(o):gj(o,r);e[Uy]=i}function gj(e,t){let n=0,r=e.firstChild;if(r){let i=e.data[lI];for(;n<i;){let o=r.nextSibling;CI(t,r,!1),r=o,n++}}}var vj=()=>null,yj=()=>null;function U_(e,t){return vj(e,t)}function ZI(e,t,n){return yj(e,t,n)}var XI=class{},Up=class{},H_=class{resolveComponentFactory(t){throw new ve(917,!1)}},Hp=class{static NULL=new H_},va=class{},zp=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>_j()}return e})();function _j(){let e=Ce(),t=cn(),n=qn(t.index,e);return(gi(n)?n:e)[st]}var KI=(()=>{class e{static \u0275prov=Ye({token:e,providedIn:"root",factory:()=>null})}return e})();var cp={},z_=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){let i=this.injector.get(t,cp,r);return i!==cp||n===cp?i:this.parentInjector.get(t,n,r)}};function yp(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,o=0;if(t!==null)for(let a=0;a<t.length;a++){let s=t[a];if(typeof s=="number")o=s;else if(o==1)i=Ey(i,s);else if(o==2){let l=s,u=t[++a];r=Ey(r,l+": "+u+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=i:e.classesWithoutHost=i}function Ci(e,t=0){let n=Ce();if(n===null)return Fe(e,t);let r=cn();return JT(r,n,Sn(e),t)}function QI(e,t,n,r,i){let o=r===null?null:{"":-1},a=i(e,n);if(a!==null){let s=a,l=null,u=null;for(let c of a)if(c.resolveHostDirectives!==null){[s,l,u]=c.resolveHostDirectives(a);break}Sj(e,t,n,s,o,l,u)}o!==null&&r!==null&&xj(n,r,o)}function xj(e,t,n){let r=e.localNames=[];for(let i=0;i<t.length;i+=2){let o=n[t[i+1]];if(o==null)throw new ve(-301,!1);r.push(t[i],o)}}function Dj(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function Sj(e,t,n,r,i,o,a){let s=r.length,l=null;for(let d=0;d<s;d++){let p=r[d];l===null&&ca(p)&&(l=p,Dj(e,n,d)),aH(ZT(n,t),e,p.type)}Ij(n,e.data.length,s),l?.viewProvidersResolver&&l.viewProvidersResolver(l);for(let d=0;d<s;d++){let p=r[d];p.providersResolver&&p.providersResolver(p)}let u=!1,c=!1,f=TI(e,t,s,null);s>0&&(n.directiveToIndex=new Map);for(let d=0;d<s;d++){let p=r[d];if(n.mergedAttrs=bp(n.mergedAttrs,p.hostAttrs),Ej(e,n,t,f,p),Tj(f,p,i),a!==null&&a.has(p)){let[m,g]=a.get(p);n.directiveToIndex.set(p.type,[f,m+n.directiveStart,g+n.directiveStart])}else(o===null||!o.has(p))&&n.directiveToIndex.set(p.type,f);p.contentQueries!==null&&(n.flags|=4),(p.hostBindings!==null||p.hostAttrs!==null||p.hostVars!==0)&&(n.flags|=64);let h=p.type.prototype;!u&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),u=!0),!c&&(h.ngOnChanges||h.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),c=!0),f++}Cj(e,n,o)}function Cj(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let i=e.data[r];if(n===null||!n.has(i))bT(0,t,i,r),bT(1,t,i,r),TT(t,r,!1);else{let o=n.get(i);wT(0,t,o,r),wT(1,t,o,r),TT(t,r,!0)}}}function bT(e,t,n,r){let i=e===0?n.inputs:n.outputs;for(let o in i)if(i.hasOwnProperty(o)){let a;e===0?a=t.inputs??={}:a=t.outputs??={},a[o]??=[],a[o].push(r),JI(t,o)}}function wT(e,t,n,r){let i=e===0?n.inputs:n.outputs;for(let o in i)if(i.hasOwnProperty(o)){let a=i[o],s;e===0?s=t.hostDirectiveInputs??={}:s=t.hostDirectiveOutputs??={},s[a]??=[],s[a].push(r,o),JI(t,a)}}function JI(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function TT(e,t,n){let{attrs:r,inputs:i,hostDirectiveInputs:o}=e;if(r===null||!n&&i===null||n&&o===null||_0(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let a=null,s=0;for(;s<r.length;){let l=r[s];if(l===0){s+=4;continue}else if(l===5){s+=2;continue}else if(typeof l=="number")break;if(!n&&i.hasOwnProperty(l)){let u=i[l];for(let c of u)if(c===t){a??=[],a.push(l,r[s+1]);break}}else if(n&&o.hasOwnProperty(l)){let u=o[l];for(let c=0;c<u.length;c+=2)if(u[c]===t){a??=[],a.push(u[c+1],r[s+1]);break}}s+=2}e.initialInputs??=[],e.initialInputs.push(a)}function Ej(e,t,n,r,i){e.data[r]=i;let o=i.factory||(i.factory=$s(i.type,!0)),a=new rc(o,ca(i),Ci,null);e.blueprint[r]=a,n[r]=a,bj(e,t,r,TI(e,n,i.hostVars,Xn),i)}function bj(e,t,n,r,i){let o=i.hostBindings;if(o){let a=e.hostBindingOpCodes;a===null&&(a=e.hostBindingOpCodes=[]);let s=~t.index;wj(a)!=s&&a.push(s),a.push(n,r,o)}}function wj(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function Tj(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;ca(t)&&(n[""]=e)}}function Ij(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function L0(e,t,n,r,i,o,a,s){let l=t[le],u=l.consts,c=Zn(u,a),f=ul(l,e,n,r,c);return o&&QI(l,t,f,Zn(u,s),i),f.mergedAttrs=bp(f.mergedAttrs,f.attrs),f.attrs!==null&&yp(f,f.attrs,!1),f.mergedAttrs!==null&&yp(f,f.mergedAttrs,!0),l.queries!==null&&l.queries.elementStart(l,f),f}function k0(e,t){GT(e,t),Hy(t)&&e.queries.elementEnd(t)}function Mj(e,t,n,r,i,o){let a=t.consts,s=Zn(a,i),l=ul(t,e,n,r,s);if(l.mergedAttrs=bp(l.mergedAttrs,l.attrs),o!=null){let u=Zn(a,o);l.localNames=[];for(let c=0;c<u.length;c+=2)l.localNames.push(u[c],-1)}return l.attrs!==null&&yp(l,l.attrs,!1),l.mergedAttrs!==null&&yp(l,l.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,l),l}function F0(e){return e!==null&&(typeof e=="function"||typeof e=="object")}function eM(e,t,n){return e[t]=n}function xi(e,t,n){if(n===Xn)return!1;let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function tM(e,t,n,r){let i=xi(e,t,n);return xi(e,t+1,r)||i}function __(e,t,n){return function r(i){let o=r.__ngNativeEl__;o!==void 0&&yH(i,o);let a=vi(e)?qn(e.index,t):t;P0(a,5);let s=t[ht],l=IT(t,s,n,i),u=r.__ngNextListenerFn__;for(;u;)l=IT(t,s,u,i)&&l,u=u.__ngNextListenerFn__;return l}}function IT(e,t,n,r){let i=pe(null);try{return He(Le.OutputStart,t,n),n(r)!==!1}catch(o){return qz(e,o),!1}finally{He(Le.OutputEnd,t,n),pe(i)}}function Aj(e,t,n,r,i,o,a,s){let l=Qs(e),u=!1,c=null;if(!r&&l&&(c=Oj(t,n,o,e.index)),c!==null){let f=c.__ngLastListenerFn__||c;f.__ngNextListenerFn__=a,c.__ngLastListenerFn__=a,u=!0}else{let f=Yn(e,n),d=r?r(f):f;xH(n,d,o,s),r||(s.__ngNativeEl__=f);let p=i.listen(d,o,s);if(!Nj(o)){let h=r?m=>r(Wn(m[e.index])):e.index;nM(h,t,n,o,s,p,!1)}}return u}function Nj(e){return e.startsWith("animation")||e.startsWith("transition")}function Oj(e,t,n,r){let i=e.cleanup;if(i!=null)for(let o=0;o<i.length-1;o+=2){let a=i[o];if(a===n&&i[o+1]===r){let s=t[Xs],l=i[o+2];return s&&s.length>l?s[l]:null}typeof a=="string"&&(o+=2)}return null}function nM(e,t,n,r,i,o,a){let s=t.firstCreatePass?Zy(t):null,l=qy(n),u=l.length;l.push(i,o),s&&s.push(r,e,u,(u+1)*(a?-1:1))}function MT(e,t,n,r,i,o){let a=t[n],s=t[le],u=s.data[n].outputs[r],f=a[u].subscribe(o);nM(e.index,s,t,i,o,f,!0)}var j_=Symbol("BINDING");function rM(e){return e.debugInfo?.className||e.type.name||null}var G_=class extends Hp{ngModule;constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){let n=ra(t);return new sc(n,this.ngModule)}};function Rj(e){return Object.keys(e).map(t=>{let[n,r,i]=e[t],o={propName:n,templateName:t,isSignal:(r&Op.SignalBased)!==0};return i&&(o.transform=i),o})}function Pj(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function Lj(e,t,n){let r=t instanceof zn?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new z_(n,r):n}function kj(e){let t=e.get(va,null);if(t===null)throw new ve(407,!1);let n=e.get(KI,null),r=e.get(ea,null),i=e.get(ro,null,{optional:!0});return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:!1,tracingService:i}}function Fj(e,t){let n=iM(e);return DI(t,n,n==="svg"?Uu:n==="math"?zy:null)}function Bj(e){if(e?.toLowerCase()==="script")throw new ve(905,!1)}function iM(e){return(e.selectors[0][0]||"div").toLowerCase()}var sc=class extends Up{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=Rj(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=Pj(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=uz(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n}create(t,n,r,i,o,a){He(Le.DynamicComponentStart);let s=pe(null);try{let l=this.componentDef,u=Lj(l,i||this.ngModule,t),c=kj(u),f=c.tracingService;return f&&f.componentCreate?f.componentCreate(rM(l),()=>this.createComponentRef(c,u,n,r,o,a)):this.createComponentRef(c,u,n,r,o,a)}finally{pe(s)}}createComponentRef(t,n,r,i,o,a){let s=this.componentDef,l=Vj(i,s,a,o),u=t.rendererFactory.createRenderer(null,s),c=i?Lz(u,i,s.encapsulation,n):Fj(s,u);Bj(c?.tagName);let f=a?.some(AT)||o?.some(h=>typeof h!="function"&&h.bindings.some(AT)),d=D0(null,l,null,512|wI(s),null,null,t,u,n,null,dI(c,n,!0));d[lt]=c,Kd(d);let p=null;try{let h=L0(lt,d,2,"#host",()=>l.directiveRegistry,!0,0);EI(u,c,h),ol(c,d),kp(l,d,h),c0(l,h,d),k0(l,h),r!==void 0&&Hj(h,this.ngContentSelectors,r),p=qn(h.index,d),d[ht]=p[ht],R0(l,d,null)}catch(h){throw p!==null&&b_(p),b_(d),h}finally{He(Le.DynamicComponentEnd),Qd()}return new _p(this.componentType,d,!!f)}};function Vj(e,t,n,r){let i=e?["ng-version","21.2.25"]:cz(t.selectors[0]),o=null,a=null,s=0;if(n)for(let c of n)s+=c[j_].requiredVars,c.create&&(c.targetIdx=0,(o??=[]).push(c)),c.update&&(c.targetIdx=0,(a??=[]).push(c));if(r)for(let c=0;c<r.length;c++){let f=r[c];if(typeof f!="function")for(let d of f.bindings){s+=d[j_].requiredVars;let p=c+1;d.create&&(d.targetIdx=p,(o??=[]).push(d)),d.update&&(d.targetIdx=p,(a??=[]).push(d))}}let l=[t];if(r)for(let c of r){let f=typeof c=="function"?c:c.type,d=My(f);l.push(d)}return x0(0,null,Uj(o,a),1,s,l,null,null,null,[i],null)}function Uj(e,t){return!e&&!t?null:n=>{if(n&1&&e)for(let r of e)r.create();if(n&2&&t)for(let r of t)r.update()}}function AT(e){let t=e[j_].kind;return t==="input"||t==="twoWay"}var _p=class extends XI{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=Gd(n[le],lt),this.location=ll(this._tNode,n),this.instance=qn(this._tNode.index,n)[ht],this.hostView=this.changeDetectorRef=new no(n,void 0),this.componentType=t}setInput(t,n){this._hasInputBindings;let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let i=this._rootLView,o=O0(r,i[le],i,t,n);this.previousInputValues.set(t,n);let a=qn(r.index,i);P0(a,1)}get injector(){return new ma(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function Hj(e,t,n){let r=e.projection=[];for(let i=0;i<t.length;i++){let o=n[i];r.push(o!=null&&o.length?Array.from(o):null)}}var cl=(()=>{class e{static __NG_ELEMENT_ID__=zj}return e})();function zj(){let e=cn();return oM(e,Ce())}var $_=class e extends cl{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return ll(this._hostTNode,this._hostLView)}get injector(){return new ma(this._hostTNode,this._hostLView)}get parentInjector(){let t=a0(this._hostTNode,this._hostLView);if(WT(t)){let n=pp(t,this._hostLView),r=dp(t),i=n[le].data[r+8];return new ma(i,n)}else return new ma(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=NT(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-ut}createEmbeddedView(t,n,r){let i,o;typeof r=="number"?i=r:r!=null&&(i=r.index,o=r.injector);let a=U_(this._lContainer,t.ssrId),s=t.createEmbeddedViewImpl(n||{},o,a);return this.insertImpl(s,i,ic(this._hostTNode,a)),s}createComponent(t,n,r,i,o,a,s){let l=t&&!$U(t),u;if(l)u=n;else{let g=n||{};u=g.index,r=g.injector,i=g.projectableNodes,o=g.environmentInjector||g.ngModuleRef,a=g.directives,s=g.bindings}let c=l?t:new sc(ra(t)),f=r||this.parentInjector;if(!o&&c.ngModule==null){let v=(l?f:this.parentInjector).get(zn,null);v&&(o=v)}let d=ra(c.componentType??{}),p=U_(this._lContainer,d?.id??null),h=p?.firstChild??null,m=c.create(f,i,h,o,a,s);return this.insertImpl(m.hostView,u,ic(this._hostTNode,p)),m}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let i=t._lView;if(Rw(i)){let s=this.indexOf(t);if(s!==-1)this.detach(s);else{let l=i[Ct],u=new e(l,l[$n],l[Ct]);u.detach(u.indexOf(t))}}let o=this._adjustIndex(n),a=this._lContainer;return Bp(a,i,o,r),t.attachToViewContainerRef(),Ry(x_(a),o,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=NT(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=ac(this._lContainer,n);r&&(ju(x_(this._lContainer),n),Pp(r[le],r))}detach(t){let n=this._adjustIndex(t,-1),r=ac(this._lContainer,n);return r&&ju(x_(this._lContainer),n)!=null?new no(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function NT(e){return e[Yu]}function x_(e){return e[Yu]||(e[Yu]=[])}function oM(e,t){let n,r=t[e.index];return vr(r)?n=r:(n=$I(r,t,null,e),t[e.index]=n,S0(t,n)),Gj(n,t,e,r),new $_(n,e,t)}function jj(e,t){let n=e[st],r=n.createComment(""),i=Yn(t,e),o=n.parentNode(i);return gp(n,o,r,n.nextSibling(i),!1),r}var Gj=Yj,$j=()=>!1;function Wj(e,t,n){return $j(e,t,n)}function Yj(e,t,n,r){if(e[eo])return;let i;n.type&8?i=Wn(r):i=jj(t,n),e[eo]=i}var W_=class e{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},Y_=class e{queries;constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,i=[];for(let o=0;o<r;o++){let a=n.getByIndex(o),s=this.queries[a.indexInDeclarationView];i.push(s.clone())}return new e(i)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}finishViewCreation(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)B0(t,n).matches!==null&&this.queries[n].setDirty()}},q_=class{flags;read;predicate;constructor(t,n,r=null){this.flags=n,this.read=r,typeof t=="string"?this.predicate=t3(t):this.predicate=t}},Z_=class e{queries;constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){let i=n!==null?n.length:0,o=this.getByIndex(r).embeddedTView(t,i);o&&(o.indexInDeclarationView=r,n!==null?n.push(o):n=[o])}return n!==null?new e(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}},X_=class e{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(t,n=-1){this.metadata=t,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let n=this._declarationNodeIndex,r=t.parent;for(;r!==null&&r.type&8&&r.index!==n;)r=r.parent;return n===(r!==null?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){let r=this.metadata.predicate;if(Array.isArray(r))for(let i=0;i<r.length;i++){let o=r[i];this.matchTNodeWithReadOption(t,n,qj(n,o)),this.matchTNodeWithReadOption(t,n,up(n,t,o,!1,!1))}else r===al?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,up(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(r!==null){let i=this.metadata.read;if(i!==null)if(i===$r||i===cl||i===al&&n.type&4)this.addMatch(n.index,-2);else{let o=up(n,t,i,!1,!1);o!==null&&this.addMatch(n.index,o)}else this.addMatch(n.index,r)}}addMatch(t,n){this.matches===null?this.matches=[t,n]:this.matches.push(t,n)}};function qj(e,t){let n=e.localNames;if(n!==null){for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1]}return null}function Zj(e,t){return e.type&11?ll(e,t):e.type&4?Vp(e,t):null}function Xj(e,t,n,r){return n===-1?Zj(t,e):n===-2?Kj(e,t,r):hp(e,e[le],n,t)}function Kj(e,t,n){if(n===$r)return ll(t,e);if(n===al)return Vp(t,e);if(n===cl)return oM(t,e)}function aM(e,t,n,r){let i=t[jr].queries[r];if(i.matches===null){let o=e.data,a=n.matches,s=[];for(let l=0;a!==null&&l<a.length;l+=2){let u=a[l];if(u<0)s.push(null);else{let c=o[u];s.push(Xj(t,c,a[l+1],n.metadata.read))}}i.matches=s}return i.matches}function K_(e,t,n,r){let i=e.queries.getByIndex(n),o=i.matches;if(o!==null){let a=aM(e,t,i,n);for(let s=0;s<o.length;s+=2){let l=o[s];if(l>0)r.push(a[s/2]);else{let u=o[s+1],c=t[-l];for(let f=ut;f<c.length;f++){let d=c[f];d[Qi]===d[Ct]&&K_(d[le],d,u,r)}if(c[ua]!==null){let f=c[ua];for(let d=0;d<f.length;d++){let p=f[d];K_(p[le],p,u,r)}}}}}return r}function Qj(e,t){return e[jr].queries[t].queryList}function Jj(e,t,n){let r=new mp((n&4)===4);return kw(e,t,r,r.destroy),(t[jr]??=new Y_).queries.push(new W_(r))-1}function e3(e,t,n){let r=Ft();return r.firstCreatePass&&(n3(r,new q_(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=!0)),Jj(r,Ce(),t)}function t3(e){return e.split(",").map(t=>t.trim())}function n3(e,t,n){e.queries===null&&(e.queries=new Z_),e.queries.track(new X_(t,n))}function B0(e,t){return e.queries.getByIndex(t)}function r3(e,t){let n=e[le],r=B0(n,t);return r.crossesNgTemplate?K_(n,e,t,[]):aM(n,e,r,t)}var lc=class{};var uc=class extends lc{injector;componentFactoryResolver=new G_(this);instance=null;constructor(t){super();let n=new Jo([...t.providers,{provide:lc,useValue:this},{provide:Hp,useValue:this.componentFactoryResolver}],t.parent||$u(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function sM(e,t,n=null){return new uc({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var i3=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=ky(!1,n.type),i=r.length>0?sM([r],this._injector,""):null;this.cachedInjectors.set(n,i)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=Ye({token:e,providedIn:"environment",factory:()=>new e(Fe(zn))})}return e})();function In(e){return Ep(()=>{let t=lM(e),n=jt(It({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===s0.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?i=>i.get(i3).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||xr.Emulated,styles:e.styles||Hn,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&Si("NgStandalone"),uM(n);let r=e.dependencies;return n.directiveDefs=OT(r,o3),n.pipeDefs=OT(r,gw),n.id=l3(n),n})}function o3(e){return ra(e)||My(e)}function mc(e){return Ep(()=>({type:e.type,bootstrap:e.bootstrap||Hn,declarations:e.declarations||Hn,imports:e.imports||Hn,exports:e.exports||Hn,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function a3(e,t){if(e==null)return oa;let n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],o,a,s,l;Array.isArray(i)?(s=i[0],o=i[1],a=i[2]??o,l=i[3]||null):(o=i,a=i,s=Op.None,l=null),n[o]=[r,s,l],t[o]=a}return n}function s3(e){if(e==null)return oa;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function _a(e){return Ep(()=>{let t=lM(e);return uM(t),t})}function lM(e){let t={};return{type:e.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||oa,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||Hn,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,inputs:a3(e.inputs,t),outputs:s3(e.outputs),debugInfo:null}}function uM(e){e.features?.forEach(t=>t(e))}function OT(e,t){return e?()=>{let n=typeof e=="function"?e():e,r=[];for(let i of n){let o=t(i);o!==null&&r.push(o)}return r}:null}function l3(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let o of r.join("|"))t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function cM(e,t,n,r,i,o,a,s){if(n.firstCreatePass){e.mergedAttrs=bp(e.mergedAttrs,e.attrs);let c=e.tView=x0(2,e,i,o,a,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);n.queries!==null&&(n.queries.template(n,e),c.queries=n.queries.embeddedTView(e))}s&&(e.flags|=s),da(e,!1);let l=c3(n,t,e,r);tp()&&T0(n,t,l,e),ol(l,t);let u=$I(l,t,l,e);t[r+lt]=u,S0(t,u),Wj(u,e,t)}function u3(e,t,n,r,i,o,a,s,l,u,c){let f=n+lt,d;return t.firstCreatePass?(d=ul(t,f,4,a||null,s||null),qd()&&QI(t,e,d,Zn(t.consts,u),M0),GT(t,d)):d=t.data[f],cM(d,e,t,n,r,i,o,l),Qs(d)&&kp(t,e,d),u!=null&&hc(e,d,c),d}function xp(e,t,n,r,i,o,a,s,l,u,c){let f=n+lt,d;if(t.firstCreatePass){if(d=ul(t,f,4,a||null,s||null),u!=null){let p=Zn(t.consts,u);d.localNames=[];for(let h=0;h<p.length;h+=2)d.localNames.push(p[h],-1)}}else d=t.data[f];return cM(d,e,t,n,r,i,o,l),u!=null&&hc(e,d,c),d}function gc(e,t,n,r,i,o,a,s){let l=Ce(),u=Ft(),c=Zn(u.consts,o);return u3(l,u,e,t,n,r,i,c,void 0,a,s),gc}var c3=f3;function f3(e,t,n,r){return Qu(!0),t[st].createComment("")}var V0=new Pe("");function jp(e){return!!e&&typeof e.then=="function"}function U0(e){return!!e&&typeof e.subscribe=="function"}var fM=new Pe("");var H0=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=ye(fM,{optional:!0})??[];injector=ye(Cn);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let i of this.appInits){let o=zd(this.injector,i);if(jp(o))n.push(o);else if(U0(o)){let a=new Promise((s,l)=>{o.subscribe({complete:s,error:l})});n.push(a)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Ye({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),dM=new Pe("");function pM(){Kv(()=>{let e="";throw new ve(600,e)})}function hM(e){return e.isBoundToModule}var d3=10;var vc=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=ye(pa);afterRenderManager=ye(E0);zonelessEnabled=ye(Ju);rootEffectScheduler=ye(m_);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new fi;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=ye(nl);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(sy(n=>!n))}constructor(){ye(ro,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:i=>{i&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=ye(zn);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,i=Cn.NULL){return this._injector.get(En).run(()=>{He(Le.BootstrapComponentStart);let a=n instanceof Up;if(!this._injector.get(H0).done){let h="";throw new ve(405,h)}let l;a?l=n:l=this._injector.get(Hp).resolveComponentFactory(n),this.componentTypes.push(l.componentType);let u=hM(l)?void 0:this._injector.get(lc),c=r||l.selector,f=l.create(i,[],c,u),d=f.location.nativeElement,p=f.injector.get(V0,null);return p?.registerApplication(d),f.onDestroy(()=>{this.detachView(f.hostView),nc(this.components,f),p?.unregisterApplication(d)}),this._loadComponent(f),He(Le.BootstrapComponentEnd,f),f})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){He(Le.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(Rp.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw He(Le.ChangeDetectionEnd),new ve(101,!1);let n=pe(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,pe(n),this.afterTick.next(),He(Le.ChangeDetectionEnd)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(va,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<d3;){He(Le.ChangeDetectionSyncStart);try{this.synchronizeOnce()}finally{He(Le.ChangeDetectionSyncEnd)}}}synchronizeOnce(){this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush());let n=!1;if(this.dirtyFlags&7){let r=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:i}of this.allViews){if(!r&&!qu(i))continue;let o=r&&!this.zonelessEnabled?0:1;HI(i,o),n=!0}if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}n||(this._rendererFactory?.begin?.(),this._rendererFactory?.end?.()),this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>qu(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;nc(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView);try{this.tick()}catch(i){this.internalErrorHandler(i)}this.components.push(n),this._injector.get(dM,[]).forEach(i=>i(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>nc(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new ve(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Ye({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function nc(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Re(e,t,n,r){let i=Ce(),o=tl();if(xi(i,o,t)){let a=Ft(),s=Jd();$z(s,i,e,t,n,r)}return Re}var Q_=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),i=Math.max(t,n),o=this.detach(i);if(i-r>1){let a=this.detach(r);this.attach(r,o),this.attach(i,a)}else this.attach(r,o)}move(t,n){this.attach(n,this.detach(t))}};function D_(e,t,n,r,i){return e===n&&Object.is(t,r)?1:Object.is(i(e,t),i(n,r))?-1:0}function p3(e,t,n,r){let i,o,a=0,s=e.length-1,l=void 0;if(Array.isArray(t)){pe(r);let u=t.length-1;for(pe(null);a<=s&&a<=u;){let c=e.at(a),f=t[a],d=D_(a,c,a,f,n);if(d!==0){d<0&&e.updateValue(a,f),a++;continue}let p=e.at(s),h=t[u],m=D_(s,p,u,h,n);if(m!==0){m<0&&e.updateValue(s,h),s--,u--;continue}let g=n(a,c),v=n(s,p),y=n(a,f);if(Object.is(y,v)){let _=n(u,h);Object.is(_,g)?(e.swap(a,s),e.updateValue(s,h),u--,s--):e.move(s,a),e.updateValue(a,f),a++;continue}if(i??=new Dp,o??=PT(e,a,s,n),J_(e,i,a,y))e.updateValue(a,f),a++,s++;else if(o.has(y))i.set(g,e.detach(a)),s--;else{let _=e.create(a,t[a]);e.attach(a,_),a++,s++}}for(;a<=u;)RT(e,i,n,a,t[a]),a++}else if(t!=null){pe(r);let u=t[Symbol.iterator]();pe(null);let c=u.next();for(;!c.done&&a<=s;){let f=e.at(a),d=c.value,p=D_(a,f,a,d,n);if(p!==0)p<0&&e.updateValue(a,d),a++,c=u.next();else{i??=new Dp,o??=PT(e,a,s,n);let h=n(a,d);if(J_(e,i,a,h))e.updateValue(a,d),a++,s++,c=u.next();else if(!o.has(h))e.attach(a,e.create(a,d)),a++,s++,c=u.next();else{let m=n(a,f);i.set(m,e.detach(a)),s--}}}for(;!c.done;)RT(e,i,n,e.length,c.value),c=u.next()}for(;a<=s;)e.destroy(e.detach(s--));i?.forEach(u=>{e.destroy(u)})}function J_(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function RT(e,t,n,r,i){if(J_(e,t,r,n(r,i)))e.updateValue(r,i);else{let o=e.create(r,i);e.attach(r,o)}}function PT(e,t,n,r){let i=new Set;for(let o=t;o<=n;o++)i.add(r(o,e.at(o)));return i}var Dp=class{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let i=this._vMap;for(;i.has(r);)r=i.get(r);i.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let i=this._vMap;for(;i.has(r);)r=i.get(r),t(r,n)}}};function Mt(e,t,n,r,i,o,a,s){Si("NgControlFlow");let l=Ce(),u=Ft(),c=Zn(u.consts,o);return xp(l,u,e,t,n,r,i,c,256,a,s),z0}function z0(e,t,n,r,i,o,a,s){Si("NgControlFlow");let l=Ce(),u=Ft(),c=Zn(u.consts,o);return xp(l,u,e,t,n,r,i,c,512,a,s),z0}function At(e,t){Si("NgControlFlow");let n=Ce(),r=tl(),i=n[r]!==Xn?n[r]:-1,o=i!==-1?Sp(n,lt+i):void 0,a=0;if(xi(n,r,e)){let s=pe(null);try{if(o!==void 0&&YI(o,a),e!==-1){let l=lt+e,u=Sp(n,l),c=r0(n[le],l),f=ZI(u,c,n),d=Fp(n,c,t,{dehydratedView:f});Bp(u,d,a,ic(c,f))}}finally{pe(s)}}else if(o!==void 0){let s=WI(o,a);s!==void 0&&(s[ht]=t)}}var e0=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-ut}};function j0(e){return e}var t0=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function fl(e,t,n,r,i,o,a,s,l,u,c,f,d){Si("NgControlFlow");let p=Ce(),h=Ft(),m=l!==void 0,g=Ce(),v=s?a.bind(g[bn][ht]):a,y=new t0(m,v);g[lt+e]=y,xp(p,h,e+1,t,n,r,i,Zn(h.consts,o),256),m&&xp(p,h,e+2,l,u,c,f,Zn(h.consts,d),512)}var n0=class extends Q_{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r}get length(){return this.lContainer.length-ut}at(t){return this.getLView(t)[ht].$implicit}attach(t,n){let r=n[Zs];this.needsIndexUpdate||=t!==this.length,Bp(this.lContainer,n,t,ic(this.templateTNode,r)),h3(this.lContainer,t)}detach(t){return this.needsIndexUpdate||=t!==this.length-1,m3(this.lContainer,t),g3(this.lContainer,t)}create(t,n){let r=U_(this.lContainer,this.templateTNode.tView.ssrId);return Fp(this.hostLView,this.templateTNode,new e0(this.lContainer,n,t),{dehydratedView:r})}destroy(t){Pp(t[le],t)}updateValue(t,n){this.getLView(t)[ht].$implicit=n}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[ht].$index=t}getLView(t){return v3(this.lContainer,t)}};function dl(e){let t=pe(null),n=yr();try{let r=Ce(),i=r[le],o=r[n],a=n+1,s=Sp(r,a);if(o.liveCollection===void 0){let u=r0(i,a);o.liveCollection=new n0(s,r,u)}else o.liveCollection.reset();let l=o.liveCollection;if(p3(l,e,o.trackByFn,t),l.updateIndexes(),o.hasEmptyBlock){let u=tl(),c=l.length===0;if(xi(r,u,c)){let f=n+2,d=Sp(r,f);if(c){let p=r0(i,f),h=ZI(d,p,r),m=Fp(r,p,void 0,{dehydratedView:h});Bp(d,m,0,ic(p,h))}else i.firstUpdatePass&&mj(d),YI(d,0)}}}finally{pe(t)}}function Sp(e,t){return e[t]}function h3(e,t){if(e.length<=ut)return;let n=ut+t,r=e[n],i=r?r[Ji]:void 0;if(r&&i&&i.detachedLeaveAnimationFns&&i.detachedLeaveAnimationFns.length>0){let o=r[hi];_z(o,i),ga.delete(r[mi]),i.detachedLeaveAnimationFns=void 0}}function m3(e,t){if(e.length<=ut)return;let n=ut+t,r=e[n],i=r?r[Ji]:void 0;i&&i.leave&&i.leave.size>0&&(i.detachedLeaveAnimationFns=[])}function g3(e,t){return ac(e,t)}function v3(e,t){return WI(e,t)}function r0(e,t){return Gd(e,t)}function xe(e,t,n){let r=Ce(),i=tl();if(xi(r,i,t)){let o=Ft(),a=Jd();Vz(a,r,e,t,r[st],n)}return xe}function LT(e,t,n,r,i){O0(t,e,n,i?"class":"style",r)}function ne(e,t,n,r){let i=Ce(),o=i[le],a=e+lt,s=o.firstCreatePass?L0(a,i,2,t,M0,qd(),n,r):o.data[a];if(vi(s)){let l=i[gr].tracingService;if(l&&l.componentCreate){let u=o.data[s.directiveStart+s.componentOffset];return l.componentCreate(rM(u),()=>(kT(e,t,i,s,r),ne))}}return kT(e,t,i,s,r),ne}function kT(e,t,n,r,i){if(A0(r,n,e,t,mM),Qs(r)){let o=n[le];kp(o,n,r),c0(o,r,n)}i!=null&&hc(n,r)}function ue(){let e=Ft(),t=cn(),n=N0(t);return e.firstCreatePass&&k0(e,n),Ky(n)&&Qy(),Xy(),n.classesWithoutHost!=null&&KU(n)&<(e,n,Ce(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&QU(n)&<(e,n,Ce(),n.stylesWithoutHost,!1),ue}function gt(e,t,n,r){return ne(e,t,n,r),ue(),gt}function io(e,t,n,r){let i=Ce(),o=i[le],a=e+lt,s=o.firstCreatePass?Mj(a,o,2,t,n,r):o.data[a];return A0(s,i,e,t,mM),r!=null&&hc(i,s),io}function xa(){let e=cn(),t=N0(e);return Ky(t)&&Qy(),Xy(),xa}function Gp(e,t,n,r){return io(e,t,n,r),xa(),Gp}var mM=(e,t,n,r,i)=>(Qu(!0),DI(t[st],r,u_()));function G0(e,t,n){let r=Ce(),i=r[le],o=e+lt,a=i.firstCreatePass?L0(o,r,8,"ng-container",M0,qd(),t,n):i.data[o];if(A0(a,r,e,"ng-container",y3),Qs(a)){let s=r[le];kp(s,r,a),c0(s,a,r)}return n!=null&&hc(r,a),G0}function $0(){let e=Ft(),t=cn(),n=N0(t);return e.firstCreatePass&&k0(e,n),$0}function yc(e,t,n){return G0(e,t,n),$0(),yc}var y3=(e,t,n,r,i)=>(Qu(!0),qH(t[st],""));function W0(){return Ce()}var _c="en-US";var _3=_c;function gM(e){typeof e=="string"&&(_3=e.toLowerCase().replace(/_/g,"-"))}function pl(e,t,n){let r=Ce(),i=Ft(),o=cn();return x3(i,r,r[st],o,e,t,n),pl}function x3(e,t,n,r,i,o,a){let s=!0,l=null;if((r.type&3||a)&&(l??=__(r,t,o),Aj(r,e,t,a,n,i,o,l)&&(s=!1)),s){let u=r.outputs?.[i],c=r.hostDirectiveOutputs?.[i];if(c&&c.length)for(let f=0;f<c.length;f+=2){let d=c[f],p=c[f+1];l??=__(r,t,o),MT(r,t,d,p,i,l)}if(u&&u.length)for(let f of u)l??=__(r,t,o),MT(r,t,f,i,i,l)}}function te(e=1){return Kw(e)}function oo(e,t,n){return e3(e,t,n),oo}function Da(e){let t=Ce(),n=Ft(),r=a_();Xd(r+1);let i=B0(n,r);if(e.dirty&&Ow(t)===((i.metadata.flags&2)===2)){if(i.matches===null)e.reset([]);else{let o=r3(t,r);e.reset(o,dH),e.notifyOnChanges()}return!0}return!1}function Sa(){return Qj(Ce(),a_())}function hl(e){let t=t_();return Gy(t,lt+e)}function ap(e,t){return e<<17|t<<2}function ya(e){return e>>17&32767}function D3(e){return(e&2)==2}function S3(e,t){return e&131071|t<<17}function i0(e){return e|2}function sl(e){return(e&131068)>>2}function S_(e,t){return e&-131069|t<<2}function C3(e){return(e&1)===1}function o0(e){return e|1}function E3(e,t,n,r,i,o){let a=o?t.classBindings:t.styleBindings,s=ya(a),l=sl(a);e[r]=n;let u=!1,c;if(Array.isArray(n)){let f=n;c=f[1],(c===null||Ys(f,c)>0)&&(u=!0)}else c=n;if(i)if(l!==0){let d=ya(e[s+1]);e[r+1]=ap(d,s),d!==0&&(e[d+1]=S_(e[d+1],r)),e[s+1]=S3(e[s+1],r)}else e[r+1]=ap(s,0),s!==0&&(e[s+1]=S_(e[s+1],r)),s=r;else e[r+1]=ap(l,0),s===0?s=r:e[l+1]=S_(e[l+1],r),l=r;u&&(e[r+1]=i0(e[r+1])),FT(e,c,r,!0),FT(e,c,r,!1),b3(t,c,e,r,o),a=ap(s,l),o?t.classBindings=a:t.styleBindings=a}function b3(e,t,n,r,i){let o=i?e.residualClasses:e.residualStyles;o!=null&&typeof t=="string"&&Ys(o,t)>=0&&(n[r+1]=o0(n[r+1]))}function FT(e,t,n,r){let i=e[n+1],o=t===null,a=r?ya(i):sl(i),s=!1;for(;a!==0&&(s===!1||o);){let l=e[a],u=e[a+1];w3(l,t)&&(s=!0,e[a+1]=r?o0(u):i0(u)),a=r?ya(u):sl(u)}s&&(e[n+1]=r?i0(i):o0(i))}function w3(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Ys(e,t)>=0:!1}function Ca(e,t,n){return vM(e,t,n,!1),Ca}function ao(e,t){return vM(e,t,null,!0),ao}function vM(e,t,n,r){let i=Ce(),o=Ft(),a=o_(2);if(o.firstUpdatePass&&I3(o,e,a,r),t!==Xn&&xi(i,a,t)){let s=o.data[yr()];R3(o,s,i,i[st],e,i[a+1]=P3(t,n),r,a)}}function T3(e,t){return t>=e.expandoStartIndex}function I3(e,t,n,r){let i=e.data;if(i[n+1]===null){let o=i[yr()],a=T3(e,n);L3(o,r)&&t===null&&!a&&(t=!1),t=M3(i,o,t,r),E3(i,o,t,n,a,r)}}function M3(e,t,n,r){let i=Yw(e),o=r?t.residualClasses:t.residualStyles;if(i===null)(r?t.classBindings:t.styleBindings)===0&&(n=C_(null,e,t,n,r),n=cc(n,t.attrs,r),o=null);else{let a=t.directiveStylingLast;if(a===-1||e[a]!==i)if(n=C_(i,e,t,n,r),o===null){let l=A3(e,t,r);l!==void 0&&Array.isArray(l)&&(l=C_(null,e,t,l[1],r),l=cc(l,t.attrs,r),N3(e,t,r,l))}else o=O3(e,t,r)}return o!==void 0&&(r?t.residualClasses=o:t.residualStyles=o),n}function A3(e,t,n){let r=n?t.classBindings:t.styleBindings;if(sl(r)!==0)return e[ya(r)]}function N3(e,t,n,r){let i=n?t.classBindings:t.styleBindings;e[ya(i)]=r}function O3(e,t,n){let r,i=t.directiveEnd;for(let o=1+t.directiveStylingLast;o<i;o++){let a=e[o].hostAttrs;r=cc(r,a,n)}return cc(r,t.attrs,n)}function C_(e,t,n,r,i){let o=null,a=n.directiveEnd,s=n.directiveStylingLast;for(s===-1?s=n.directiveStart:s++;s<a&&(o=t[s],r=cc(r,o.hostAttrs,i),o!==e);)s++;return e!==null&&(n.directiveStylingLast=s),r}function cc(e,t,n){let r=n?1:2,i=-1;if(t!==null)for(let o=0;o<t.length;o++){let a=t[o];typeof a=="number"?i=a:i===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),Cw(e,a,n?!0:t[++o]))}return e===void 0?null:e}function R3(e,t,n,r,i,o,a,s){if(!(t.type&3))return;let l=e.data,u=l[s+1],c=C3(u)?BT(l,t,n,i,sl(u),a):void 0;if(!Cp(c)){Cp(o)||D3(u)&&(o=BT(l,null,n,i,s,a));let f=jy(yr(),n);Pz(r,a,f,i,o)}}function BT(e,t,n,r,i,o){let a=t===null,s;for(;i>0;){let l=e[i],u=Array.isArray(l),c=u?l[1]:l,f=c===null,d=n[i+1];d===Xn&&(d=f?Hn:void 0);let p=f?Ud(d,r):c===r?d:void 0;if(u&&!Cp(p)&&(p=Ud(l,r)),Cp(p)&&(s=p,a))return s;let h=e[i+1];i=a?ya(h):sl(h)}if(t!==null){let l=o?t.residualClasses:t.residualStyles;l!=null&&(s=Ud(l,r))}return s}function Cp(e){return e!==void 0}function P3(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=Pd(Cr(e)))),e}function L3(e,t){return(e.flags&(t?8:16))!==0}function Oe(e,t=""){let n=Ce(),r=Ft(),i=e+lt,o=r.firstCreatePass?ul(r,i,1,t,null):r.data[i],a=k3(r,n,o,t);n[i]=a,tp()&&T0(r,n,a,o),da(o,!1)}var k3=(e,t,n,r)=>(Qu(!0),WH(t[st],r));function F3(e,t,n,r=""){return xi(e,tl(),n)?t+ia(n)+r:Xn}function B3(e,t,n,r,i,o=""){let a=zw(),s=tM(e,a,n,i);return o_(2),s?t+ia(n)+r+ia(i)+o:Xn}function Xe(e){return Ea("",e),Xe}function Ea(e,t,n){let r=Ce(),i=F3(r,e,t,n);return i!==Xn&&yM(r,yr(),i),Ea}function $p(e,t,n,r,i){let o=Ce(),a=B3(o,e,t,n,r,i);return a!==Xn&&yM(o,yr(),a),$p}function yM(e,t,n){let r=jy(t,e);YH(e[st],r,n)}var _M={};function Wp(e){Si("NgLet");let t=Ft(),n=Ce(),r=e+lt,i=ul(t,r,128,null,null);return da(i,!1),$d(t,n,r,_M),Wp}function Y0(e){let t=Ft(),n=Ce(),r=yr();return $d(t,n,r,e),e}function ml(e){let t=t_(),n=Gy(t,lt+e);if(n===_M)throw new ve(314,!1);return n}function q0(e,t,n){return V3(Ce(),i_(),e,t,n)}function Z0(e,t,n,r){return U3(Ce(),i_(),e,t,n,r)}function xM(e,t){let n=e[t];return n===Xn?void 0:n}function V3(e,t,n,r,i,o){let a=t+n;return xi(e,a,i)?eM(e,a+1,o?r.call(o,i):r(i)):xM(e,a+1)}function U3(e,t,n,r,i,o,a){let s=t+n;return tM(e,s,i,o)?eM(e,s+2,a?r.call(a,i,o):r(i,o)):xM(e,s+2)}function X0(e,t){return Vp(e,t)}var DM=(()=>{class e{applicationErrorHandler=ye(pa);appRef=ye(vc);taskService=ye(nl);ngZone=ye(En);zonelessEnabled=ye(Ju);tracing=ye(ro,{optional:!0});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Xt;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Hu):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(ye(h_,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{let n=this.taskService.add();if(!this.runningTick&&(this.cleanup(),!this.zonelessEnabled||this.appRef.includeAllTestViews)){this.taskService.remove(n);return}this.switchToMicrotaskScheduler(),this.taskService.remove(n)})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()}))}switchToMicrotaskScheduler(){this.ngZone.runOutsideAngular(()=>{let n=this.taskService.add();this.useMicrotaskScheduler=!0,queueMicrotask(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})})}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2;break}case 12:{this.appRef.dirtyFlags|=16;break}case 13:{this.appRef.dirtyFlags|=2;break}case 11:break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?nT:c_;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Hu+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){this.applicationErrorHandler(r)}finally{this.taskService.remove(n),this.cleanup()}}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Ye({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function K0(){return Si("NgZoneless"),Hd([...Q0(),[]])}function Q0(){return[{provide:ea,useExisting:DM},{provide:En,useClass:zu},{provide:Ju,useValue:!0}]}function H3(){return typeof $localize<"u"&&$localize.locale||_c}var Yp=new Pe("",{factory:()=>ye(Yp,{optional:!0,skipSelf:!0})||H3()});var qp=class{destroyed=!1;listeners=null;errorHandler=ye(jn,{optional:!0});destroyRef=ye(yi);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(t){if(this.destroyed)throw new ve(953,!1);return(this.listeners??=[]).push(t),{unsubscribe:()=>{let n=this.listeners?.indexOf(t);n!==void 0&&n!==-1&&this.listeners?.splice(n,1)}}}emit(t){if(this.destroyed){console.warn(ta(953,!1));return}if(this.listeners===null)return;let n=pe(null);try{for(let r of this.listeners)try{r(t)}catch(i){this.errorHandler?.handleError(i)}}finally{pe(n)}}};function CM(e){return new qp}var J0=new Pe(""),a5=new Pe("");function xc(e){return!e.moduleRef}function s5(e){let t=xc(e)?e.r3Injector:e.moduleRef.injector,n=t.get(En);return n.run(()=>{xc(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(pa),i;if(n.runOutsideAngular(()=>{i=n.onError.subscribe({next:r})}),xc(e)){let o=()=>t.destroy(),a=e.platformInjector.get(J0);a.add(o),t.onDestroy(()=>{i.unsubscribe(),a.delete(o)})}else{let o=()=>e.moduleRef.destroy(),a=e.platformInjector.get(J0);a.add(o),e.moduleRef.onDestroy(()=>{nc(e.allPlatformModules,e.moduleRef),i.unsubscribe(),a.delete(o)})}return u5(r,n,()=>{let o=t.get(nl),a=o.add(),s=t.get(H0);return s.runInitializers(),s.donePromise.then(()=>{let l=t.get(Yp,_c);if(gM(l||_c),!t.get(a5,!0))return xc(e)?t.get(vc):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(xc(e)){let c=t.get(vc);return e.rootComponent!==void 0&&c.bootstrap(e.rootComponent),c}else return l5?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{o.remove(a)})})})}var l5;function u5(e,t,n){try{let r=n();return jp(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var Zp=null;function c5(e=[],t){return Cn.create({name:t,providers:[{provide:Gu,useValue:"platform"},{provide:J0,useValue:new Set([()=>Zp=null])},...e]})}function f5(e=[]){if(Zp)return Zp;let t=c5(e);return Zp=t,pM(),d5(t),t}function d5(e){let t=e.get(Tp,null);zd(e,()=>{t?.forEach(n=>n())})}var p5=1e4;var Noe=p5-1e3;var rx=(()=>{class e{static __NG_ELEMENT_ID__=h5}return e})();function h5(e){return m5(cn(),Ce(),(e&16)===16)}function m5(e,t,n){if(vi(e)&&!n){let r=qn(e.index,t);return new no(r,r)}else if(e.type&175){let r=t[bn];return new no(r,t)}return null}var ex=class{supports(t){return t instanceof Map||F0(t)}create(){return new tx}},tx=class{_records=new Map;_mapHead=null;_appendAfter=null;_previousMapHead=null;_changesHead=null;_changesTail=null;_additionsHead=null;_additionsTail=null;_removalsHead=null;get isDirty(){return this._additionsHead!==null||this._changesHead!==null||this._removalsHead!==null}forEachItem(t){let n;for(n=this._mapHead;n!==null;n=n._next)t(n)}forEachPreviousItem(t){let n;for(n=this._previousMapHead;n!==null;n=n._nextPrevious)t(n)}forEachChangedItem(t){let n;for(n=this._changesHead;n!==null;n=n._nextChanged)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;n!==null;n=n._nextAdded)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;n!==null;n=n._nextRemoved)t(n)}diff(t){if(!t)t=new Map;else if(!(t instanceof Map||F0(t)))throw new ve(900,!1);return this.check(t)?this:null}check(t){this._reset();let n=this._mapHead;if(this._appendAfter=null,this._forEach(t,(r,i)=>{if(n&&n.key===i)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{let o=this._getOrCreateRecordForKey(i,r);n=this._insertBeforeOrAppend(n,o)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;r!==null;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){let r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){let i=this._records.get(t);this._maybeAddToChanges(i,n);let o=i._prev,a=i._next;return o&&(o._next=a),a&&(a._prev=o),i._next=null,i._prev=null,i}let r=new nx(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;t!==null;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;t!=null;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){this._additionsHead===null?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){this._changesHead===null?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}},nx=class{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(t){this.key=t}};function SM(){return new ix([new ex])}var ix=(()=>{class e{static \u0275prov=Ye({token:e,providedIn:"root",factory:SM});factories;constructor(n){this.factories=n}static create(n,r){if(r){let i=r.factories.slice();n=n.concat(i)}return new e(n)}static extend(n){return{provide:e,useFactory:()=>{let r=ye(e,{optional:!0,skipSelf:!0});return e.create(n,r||SM())}}}find(n){let r=this.factories.find(i=>i.supports(n));if(r)return r;throw new ve(901,!1)}}return e})();function EM(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:i}=e;He(Le.BootstrapApplicationStart);try{let o=i?.injector??f5(r),a=[Q0(),iT,...n||[]],s=new uc({providers:a,parent:o,debugName:"",runEnvironmentInitializers:!1});return s5({r3Injector:s.injector,platformInjector:o,rootComponent:t})}catch(o){return Promise.reject(o)}finally{He(Le.BootstrapApplicationEnd)}}var bM=null;function gl(){return bM}function ox(e){bM??=e}var Dc=class{};var ax=/\s+/,wM=[],sx=(()=>{class e{_ngEl;_renderer;initialClasses=wM;rawClass;stateMap=new Map;constructor(n,r){this._ngEl=n,this._renderer=r}set klass(n){this.initialClasses=n!=null?n.trim().split(ax):wM}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(ax):n}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,!0);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let r of n)this._updateState(r,!0);else if(n!=null)for(let r of Object.keys(n))this._updateState(r,!!n[r]);this._applyStateDiff()}_updateState(n,r){let i=this.stateMap.get(n);i!==void 0?(i.enabled!==r&&(i.changed=!0,i.enabled=r),i.touched=!0):this.stateMap.set(n,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let r=n[0],i=n[1];i.changed?(this._toggleClass(r,i.enabled),i.changed=!1):i.touched||(i.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),i.touched=!1}}_toggleClass(n,r){n=n.trim(),n.length>0&&n.split(ax).forEach(i=>{r?this._renderer.addClass(this._ngEl.nativeElement,i):this._renderer.removeClass(this._ngEl.nativeElement,i)})}static \u0275fac=function(r){return new(r||e)(Ci($r),Ci(zp))};static \u0275dir=_a({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return e})();var Ei=(()=>{class e{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(n,r,i){this._ngEl=n,this._differs=r,this._renderer=i}set ngStyle(n){this._ngStyle=n,!this._differ&&n&&(this._differ=this._differs.find(n).create())}ngDoCheck(){if(this._differ){let n=this._differ.diff(this._ngStyle);n&&this._applyChanges(n)}}_setStyle(n,r){let[i,o]=n.split("."),a=i.indexOf("-")===-1?void 0:Dr.DashCase;r!=null?this._renderer.setStyle(this._ngEl.nativeElement,i,o?`${r}${o}`:r,a):this._renderer.removeStyle(this._ngEl.nativeElement,i,a)}_applyChanges(n){n.forEachRemovedItem(r=>this._setStyle(r.key,null)),n.forEachAddedItem(r=>this._setStyle(r.key,r.currentValue)),n.forEachChangedItem(r=>this._setStyle(r.key,r.currentValue))}static \u0275fac=function(r){return new(r||e)(Ci($r),Ci(ix),Ci(zp))};static \u0275dir=_a({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return e})(),lx=(()=>{class e{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;injector=ye(Cn);constructor(n){this._viewContainerRef=n}ngOnChanges(n){if(this._shouldRecreateView(n)){let r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let i=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,i,{injector:this._getInjector()})}}_getInjector(){return this.ngTemplateOutletInjector==="outlet"?this.injector:this.ngTemplateOutletInjector??void 0}_shouldRecreateView(n){return!!n.ngTemplateOutlet||!!n.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(n,r,i)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,r,i):!1,get:(n,r,i)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,i)}})}static \u0275fac=function(r){return new(r||e)(Ci(cl))};static \u0275dir=_a({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Sr]})}return e})();var Kn=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=mc({type:e});static \u0275inj=Ws({})}return e})();function ux(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[i,o]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===t)return decodeURIComponent(o)}return null}var Sc=class{};var TM="browser";var Cc=class{_doc;constructor(t){this._doc=t}manager},Kp=(()=>{class e extends Cc{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,i,o){return n.addEventListener(r,i,o),()=>this.removeEventListener(n,r,i,o)}removeEventListener(n,r,i,o){return n.removeEventListener(r,i,o)}static \u0275fac=function(r){return new(r||e)(Fe(Tn))};static \u0275prov=Ye({token:e,factory:e.\u0275fac})}return e})(),eh=new Pe(""),px=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(a=>{a.manager=this});let i=n.filter(a=>!(a instanceof Kp));this._plugins=i.slice().reverse();let o=n.find(a=>a instanceof Kp);o&&this._plugins.push(o)}addEventListener(n,r,i,o){return this._findPluginFor(r).addEventListener(n,r,i,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(o=>o.supports(n)),!r)throw new ve(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(Fe(eh),Fe(En))};static \u0275prov=Ye({token:e,factory:e.\u0275fac})}return e})(),cx="ng-app-id";function IM(e){for(let t of e)t.remove()}function MM(e,t){let n=t.createElement("style");return n.textContent=e,n}function v5(e,t,n,r){let i=e.head?.querySelectorAll(`style[${cx}="${t}"],link[${cx}="${t}"]`);if(i)for(let o of i)o.removeAttribute(cx),o instanceof HTMLLinkElement?r.set(o.href.slice(o.href.lastIndexOf("/")+1),{usage:0,elements:[o]}):o.textContent&&n.set(o.textContent,{usage:0,elements:[o]})}function dx(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var hx=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(n,r,i,o={}){this.doc=n,this.appId=r,this.nonce=i,v5(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let i of n)this.addUsage(i,this.inline,MM);r?.forEach(i=>this.addUsage(i,this.external,dx))}removeStyles(n,r){for(let i of n)this.removeUsage(i,this.inline);r?.forEach(i=>this.removeUsage(i,this.external))}addUsage(n,r,i){let o=r.get(n);o?o.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(a=>this.addElement(a,i(n,this.doc)))})}removeUsage(n,r){let i=r.get(n);i&&(i.usage--,i.usage<=0&&(IM(i.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])IM(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:i}]of this.inline)i.push(this.addElement(n,MM(r,this.doc)));for(let[r,{elements:i}]of this.external)i.push(this.addElement(n,dx(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)(Fe(Tn),Fe(wp),Fe(Ip,8),Fe(fc))};static \u0275prov=Ye({token:e,factory:e.\u0275fac})}return e})(),fx={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},mx=/%COMP%/g;var NM="%COMP%",y5=`_nghost-${NM}`,_5=`_ngcontent-${NM}`,x5=!0,D5=new Pe("",{factory:()=>x5});function S5(e){return _5.replace(mx,e)}function C5(e){return y5.replace(mx,e)}function OM(e,t){return t.map(n=>n.replace(mx,e))}var gx=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;constructor(n,r,i,o,a,s,l=null,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=a,this.ngZone=s,this.nonce=l,this.tracingService=u,this.defaultRenderer=new Ec(n,a,s,this.tracingService)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;let i=this.getOrCreateRenderer(n,r);return i instanceof Jp?i.applyToHost(n):i instanceof bc&&i.applyStyles(),i}getOrCreateRenderer(n,r){let i=this.rendererByCompId,o=i.get(r.id);if(!o){let a=this.doc,s=this.ngZone,l=this.eventManager,u=this.sharedStylesHost,c=this.removeStylesOnCompDestroy,f=this.tracingService;switch(r.encapsulation){case xr.Emulated:o=new Jp(l,u,r,this.appId,c,a,s,f);break;case xr.ShadowDom:return new Qp(l,n,r,a,s,this.nonce,f,u);case xr.ExperimentalIsolatedShadowDom:return new Qp(l,n,r,a,s,this.nonce,f);default:o=new bc(l,u,r,c,a,s,f);break}i.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static \u0275fac=function(r){return new(r||e)(Fe(px),Fe(hx),Fe(wp),Fe(D5),Fe(Tn),Fe(En),Fe(Ip),Fe(ro,8))};static \u0275prov=Ye({token:e,factory:e.\u0275fac})}return e})(),Ec=class{eventManager;doc;ngZone;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,n,r,i){this.eventManager=t,this.doc=n,this.ngZone=r,this.tracingService=i}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(fx[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(AM(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(AM(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new ve(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,i){if(i){n=i+":"+n;let o=fx[i];o?t.setAttributeNS(o,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let i=fx[r];i?t.removeAttributeNS(i,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,i){i&(Dr.DashCase|Dr.Important)?t.style.setProperty(n,r,i&Dr.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&Dr.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r,i){if(typeof t=="string"&&(t=gl().getGlobalEventTarget(this.doc,t),!t))throw new ve(5102,!1);let o=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(o=this.tracingService.wrapEventListener(t,n,o)),this.eventManager.addEventListener(t,n,o,i)}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;t(n)===!1&&n.preventDefault()}}};function AM(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Qp=class extends Ec{hostEl;sharedStylesHost;shadowRoot;constructor(t,n,r,i,o,a,s,l){super(t,i,o,s),this.hostEl=n,this.sharedStylesHost=l,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let u=r.styles;u=OM(r.id,u);for(let f of u){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=f,this.shadowRoot.appendChild(d)}let c=r.getExternalStyles?.();if(c)for(let f of c){let d=dx(f,i);a&&d.setAttribute("nonce",a),this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot)}},bc=class extends Ec{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,n,r,i,o,a,s,l){super(t,o,a,s),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=i;let u=r.styles;this.styles=l?OM(l,u):u,this.styleUrls=r.getExternalStyles?.(l)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&ga.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Jp=class extends bc{contentAttr;hostAttr;constructor(t,n,r,i,o,a,s,l){let u=i+"-"+r.id;super(t,n,r,o,a,s,l,u),this.contentAttr=S5(u),this.hostAttr=C5(u)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}};var th=class e extends Dc{supportsDOMEvents=!0;static makeCurrent(){ox(new e)}onAndCancel(t,n,r,i){return t.addEventListener(n,r,i),()=>{t.removeEventListener(n,r,i)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=E5();return n==null?null:b5(n)}resetBaseElement(){wc=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return ux(document.cookie,t)}},wc=null;function E5(){return wc=wc||document.head.querySelector("base"),wc?wc.getAttribute("href"):null}function b5(e){return new URL(e,document.baseURI).pathname}var w5=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Ye({token:e,factory:e.\u0275fac})}return e})(),RM=["alt","control","meta","shift"],T5={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},I5={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},PM=(()=>{class e extends Cc{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,i,o){let a=e.parseEventName(r),s=e.eventCallback(a.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>gl().onAndCancel(n,a.domEventName,s,o))}static parseEventName(n){let r=n.toLowerCase().split("."),i=r.shift();if(r.length===0||!(i==="keydown"||i==="keyup"))return null;let o=e._normalizeKey(r.pop()),a="",s=r.indexOf("code");if(s>-1&&(r.splice(s,1),a="code."),RM.forEach(u=>{let c=r.indexOf(u);c>-1&&(r.splice(c,1),a+=u+".")}),a+=o,r.length!=0||o.length===0)return null;let l={};return l.domEventName=i,l.fullKey=a,l}static matchEventFullKeyCode(n,r){let i=T5[n.key]||n.key,o="";return r.indexOf("code.")>-1&&(i=n.code,o="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),RM.forEach(a=>{if(a!==i){let s=I5[a];s(n)&&(o+=a+".")}}),o+=i,o===r)}static eventCallback(n,r,i){return o=>{e.matchEventFullKeyCode(o,n)&&i.runGuarded(()=>r(o))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(r){return new(r||e)(Fe(Tn))};static \u0275prov=Ye({token:e,factory:e.\u0275fac})}return e})();async function vx(e,t,n){let r=It({rootComponent:e},M5(t,n));return EM(r)}function M5(e,t){return{platformRef:t?.platformRef,appProviders:[...P5,...e?.providers??[]],platformProviders:R5}}function A5(){th.makeCurrent()}function N5(){return new jn}function O5(){return l0(document),document}var R5=[{provide:fc,useValue:TM},{provide:Tp,useValue:A5,multi:!0},{provide:Tn,useFactory:O5}];var P5=[{provide:Gu,useValue:"root"},{provide:jn,useFactory:N5},{provide:eh,useClass:Kp,multi:!0},{provide:eh,useClass:PM,multi:!0},gx,hx,px,{provide:va,useExisting:gx},{provide:Sc,useClass:w5},[]];var yx=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=Ye({token:e,factory:function(r){let i=null;return r?i=new(r||e):i=Fe(L5),i},providedIn:"root"})}return e})(),L5=(()=>{class e extends yx{_doc;constructor(n){super(),this._doc=n}sanitize(n,r){if(r==null)return null;switch(n){case rt.NONE:return r;case rt.HTML:return Wr(r,"HTML")?Cr(r):Ap(this._doc,String(r)).toString();case rt.STYLE:return Wr(r,"Style")?Cr(r):r;case rt.SCRIPT:if(Wr(r,"Script"))return Cr(r);throw new ve(5200,!1);case rt.URL:return Wr(r,"URL")?Cr(r):dc(String(r));case rt.RESOURCE_URL:if(Wr(r,"ResourceURL"))return Cr(r);throw new ve(5201,!1);default:throw new ve(5202,!1)}}bypassSecurityTrustHtml(n){return f0(n)}bypassSecurityTrustStyle(n){return d0(n)}bypassSecurityTrustScript(n){return p0(n)}bypassSecurityTrustUrl(n){return h0(n)}bypassSecurityTrustResourceUrl(n){return m0(n)}static \u0275fac=function(r){return new(r||e)(Fe(Tn))};static \u0275prov=Ye({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function ba(e,t){if(!e)return"";if(e.mode==="static")return _x(String(e.value??""),t.templateVars);if(!e.expression)return"";if(/^screen\.name$/.exec(e.expression.trim()))return _x(String(t.templateVars?.screenName??""),t.templateVars);if(!t.dataset)return"";let r=/^records\[current\]\.([A-Za-z0-9_]+)$/.exec(e.expression.trim());if(!r)return"";let i=t.dataset.records[t.current]?.[r[1]];return i==null?"":_x(String(i),t.templateVars)}function _x(e,t){return t?e.replace(/\{\{\s*([A-Za-z0-9_]+)\s*\}\}/g,(n,r)=>{let i=t[r];return i==null||i===""?n:i}):e}function k5(e,t,n){if(!e||!t)return 0;let r=F5(e,t);if(r<=0)return 0;let i=Math.floor(n/r);return t.mode==="random"?t.loop?kM(i,e):kM(Math.min(i,e-1),e):t.loop?i%e:Math.min(i,e-1)}function F5(e,t){if(!e||!t)return 0;if(t.strategy==="slot"){let n=t.slotSeconds??0;return n<=0?0:Math.max(n/e,1)}return t.intervalSeconds>0?t.intervalSeconds:0}function xx(e,t){if(e)return e.scope==="individual"&&t?e.datasetSchedules?.find(n=>n.datasetId===t)??{datasetId:t,strategy:"fixed",intervalSeconds:e.intervalSeconds,slotSeconds:e.slotSeconds,mode:e.mode,loop:e.loop,conditions:[]}:e}function Dx(e,t,n,r=Date.now()){return n!=="conditional"||!t?.length?e:e.filter(i=>t.every(o=>B5(i,o,r)))}function FM(e,t,n){let r=Dx(e,t?.conditions,t?.strategy);return!r.length||t?.strategy==="conditional"?0:k5(r.length,t,n)}function B5(e,t,n){let r=e[t.fieldKey];if(t.operator==="before_now"||t.operator==="before_or_equal_now"||t.operator==="after_now"||t.operator==="after_or_equal_now"){if(r==null||r==="")return!1;let a=new Date(String(r)).getTime();return Number.isNaN(a)?!1:t.operator==="before_now"?a<n:t.operator==="before_or_equal_now"?a<=n:t.operator==="after_now"?a>n:a>=n}if(t.operator==="is_truthy")return LM(r);if(t.operator==="is_falsy")return!LM(r);let i=r==null?"":String(r),o=t.value==null?"":String(t.value);return t.operator==="equals"?i===o:t.operator==="not_equals"?i!==o:t.operator==="contains"?i.toLowerCase().includes(o.toLowerCase()):!0}function LM(e){return typeof e=="boolean"?e:typeof e=="number"?e!==0:typeof e=="string"?!["","0","false","no","off","null"].includes(e.trim().toLowerCase()):!!e}function kM(e,t){let n=Math.abs(Math.sin(e+1)*1e4);return Math.floor(n%t)}function Sx(e){let t=e.trim();return t.startsWith("<")?new DOMParser().parseFromString(t,"text/html").querySelector("iframe")?.getAttribute("src")?.trim()??"":t}var oA=$V(iA(),1),{__extends:R,__assign:ale,__rest:sle,__decorate:lle,__param:ule,__metadata:cle,__awaiter:fle,__generator:dle,__exportStar:ple,__createBinding:hle,__values:mle,__read:gle,__spread:vle,__spreadArrays:yle,__spreadArray:_le,__await:xle,__asyncGenerator:Dle,__asyncDelegator:Sle,__asyncValues:Cle,__makeTemplateObject:Ele,__importStar:ble,__importDefault:wle,__classPrivateFieldGet:Tle,__classPrivateFieldSet:Ile}=oA.default;var V5=(function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e})(),U5=(function(){function e(){this.browser=new V5,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<"u"}return e})(),so=new U5;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(so.wxa=!0,so.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?so.worker=!0:!so.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(so.node=!0,so.svgSupported=!0):H5(navigator.userAgent,so);function H5(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),o=e.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(e);r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),a&&(n.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11);var s=t.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;t.transform3dSupported=(n.ie&&"transition"in l||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}}var ce=so;var oh=12,Ex="sans-serif",fn=oh+"px "+Ex,z5=20,j5=100,G5="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function $5(e){var t={};if(typeof JSON>"u")return t;for(var n=0;n<e.length;n++){var r=String.fromCharCode(n+32),i=(e.charCodeAt(n)-z5)/j5;t[r]=i}return t}var W5=$5(G5),$t={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var e,t;return function(n,r){if(!e){var i=$t.createCanvas();e=i&&i.getContext("2d")}if(e)return t!==r&&(t=e.font=r||fn),e.measureText(n);n=n||"",r=r||fn;var o=/((?:\d+)?\.?\d*)px/.exec(r),a=o&&+o[1]||oh,s=0;if(r.indexOf("mono")>=0)s=a*n.length;else for(var l=0;l<n.length;l++){var u=W5[n[l]];s+=u==null?a:u*a}return{width:s}}})(),loadImage:function(e,t,n){var r=new Image;return r.onload=t,r.onerror=n,r.src=e,r},getTime:function(){return Date.now?Date.now():+new Date}};var lA=Mn(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),uA=Mn(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),Ic=Object.prototype.toString,sh=Array.prototype,Y5=sh.forEach,q5=sh.filter,Tx=sh.slice,Z5=sh.map,aA=function(){}.constructor,ah=aA?aA.prototype:null,Ix="__proto__",bx=2311,X5=Math.pow(2,53)-1;function lh(){return bx>=X5&&(bx=0),bx++}function uh(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function ae(e){if(e==null||typeof e!="object")return e;var t=e,n=Ic.call(e);if(n==="[object Array]"){if(!Tc(e)){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=ae(e[r])}}else if(uA[n]){if(!Tc(e)){var o=e.constructor;if(o.from)t=o.from(e);else{t=new o(e.length);for(var r=0,i=e.length;r<i;r++)t[r]=e[r]}}}else if(!lA[n]&&!Tc(e)&&!yl(e)){t={};for(var a in e)e.hasOwnProperty(a)&&a!==Ix&&(t[a]=ae(e[a]))}return t}function Ne(e,t,n){if(!z(t)||!z(e))return n?ae(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==Ix){var i=e[r],o=t[r];z(o)&&z(i)&&!F(o)&&!F(i)&&!yl(o)&&!yl(i)&&!sA(o)&&!sA(i)&&!Tc(o)&&!Tc(i)?Ne(i,o,n):(n||!(r in e))&&(e[r]=ae(t[r]))}return e}function P(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==Ix&&(e[n]=t[n]);return e}function cA(e,t,n){e=e||{};for(var r=0;r<n.length;r++){var i=n[r];e[i]=t[i]}return e}function he(e,t,n){for(var r=X(t),i=0,o=r.length;i<o;i++){var a=r[i];(n?t[a]!=null:e[a]==null)&&(e[a]=t[a])}return e}var Rle=$t.createCanvas;function se(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n}return-1}function fA(e,t){var n=e.prototype;function r(){}r.prototype=t.prototype,e.prototype=new r;for(var i in n)n.hasOwnProperty(i)&&(e.prototype[i]=n[i]);e.prototype.constructor=e,e.superClass=t}function Kt(e,t,n){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(t),i=0;i<r.length;i++){var o=r[i];o!=="constructor"&&(n?t[o]!=null:e[o]==null)&&(e[o]=t[o])}else he(e,t,n)}function ct(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function E(e,t,n){if(e&&t)if(e.forEach&&e.forEach===Y5)e.forEach(t,n);else if(e.length===+e.length)for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e);else for(var o in e)e.hasOwnProperty(o)&&t.call(n,e[o],o,e)}function V(e,t,n){if(!e)return[];if(!t)return ch(e);if(e.map&&e.map===Z5)return e.map(t,n);for(var r=[],i=0,o=e.length;i<o;i++)r.push(t.call(n,e[i],i,e));return r}function Mn(e,t,n,r){if(e&&t){for(var i=0,o=e.length;i<o;i++)n=t.call(r,n,e[i],i,e);return n}}function qe(e,t,n){if(!e)return[];if(!t)return ch(e);if(e.filter&&e.filter===q5)return e.filter(t,n);for(var r=[],i=0,o=e.length;i<o;i++)t.call(n,e[i],i,e)&&r.push(e[i]);return r}function dA(e,t,n){if(e&&t){for(var r=0,i=e.length;r<i;r++)if(t.call(n,e[r],r,e))return e[r]}}function X(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function K5(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return e.apply(t,n.concat(Tx.call(arguments)))}}var be=ah&&Y(ah.bind)?ah.call.bind(ah.bind):K5;function vt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(this,t.concat(Tx.call(arguments)))}}function F(e){return Array.isArray?Array.isArray(e):Ic.call(e)==="[object Array]"}function Y(e){return typeof e=="function"}function U(e){return typeof e=="string"}function Mc(e){return Ic.call(e)==="[object String]"}function ge(e){return typeof e=="number"}function z(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function sA(e){return!!lA[Ic.call(e)]}function ft(e){return!!uA[Ic.call(e)]}function yl(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function _l(e){return e.colorStops!=null}function lo(e){return e!==e}function xl(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e.length;n<r;n++)if(e[n]!=null)return e[n]}function G(e,t){return e??t}function br(e,t,n){return e??t??n}function ch(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Tx.apply(e,t)}function Dl(e){if(typeof e=="number")return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function Ke(e,t){if(!e)throw new Error(t)}function Bt(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var pA="__ec_primitive__";function Sl(e){e[pA]=!0}function Tc(e){return e[pA]}var Q5=(function(){function e(){this.data={}}return e.prototype.delete=function(t){var n=this.has(t);return n&&delete this.data[t],n},e.prototype.has=function(t){return this.data.hasOwnProperty(t)},e.prototype.get=function(t){return this.data[t]},e.prototype.set=function(t,n){return this.data[t]=n,this},e.prototype.keys=function(){return X(this.data)},e.prototype.forEach=function(t){var n=this.data;for(var r in n)n.hasOwnProperty(r)&&t(n[r],r)},e})(),hA=typeof Map=="function";function J5(){return hA?new Map:new Q5}var eG=(function(){function e(t){var n=F(t);this.data=J5();var r=this;t instanceof e?t.each(i):t&&E(t,i);function i(o,a){n?r.set(o,a):r.set(a,o)}}return e.prototype.hasKey=function(t){return this.data.has(t)},e.prototype.get=function(t){return this.data.get(t)},e.prototype.set=function(t,n){return this.data.set(t,n),n},e.prototype.each=function(t,n){this.data.forEach(function(r,i){t.call(n,r,i)})},e.prototype.keys=function(){var t=this.data.keys();return hA?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e})();function q(e){return new eG(e)}function mA(e,t){for(var n=new e.constructor(e.length+t.length),r=0;r<e.length;r++)n[r]=e[r];for(var i=e.length,r=0;r<t.length;r++)n[r+i]=t[r];return n}function uo(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&P(n,t),n}function Q(e,t){return e.hasOwnProperty(t)}function Qe(){}var Cl=180/Math.PI,Ple=Number.EPSILON||Math.pow(2,-52);function co(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function gA(e){return[e[0],e[1]]}function fh(e,t,n){return e[0]=t,e[1]=n,e}function Mx(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function vA(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function tG(e){return Math.sqrt(nG(e))}function nG(e){return e[0]*e[0]+e[1]*e[1]}function dh(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function yA(e,t){var n=tG(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function ph(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var _A=ph;function rG(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var wa=rG;function Vt(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function bi(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function wi(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var El=(function(){function e(t,n){this.target=t,this.topTarget=n&&n.topTarget}return e})(),iG=(function(){function e(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(t){for(var n=t.target;n&&!n.draggable;)n=n.parent||n.__hostTarget;n&&(this._draggingTarget=n,n.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new El(n,t),"dragstart",t.event))},e.prototype._drag=function(t){var n=this._draggingTarget;if(n){var r=t.offsetX,i=t.offsetY,o=r-this._x,a=i-this._y;this._x=r,this._y=i,n.drift(o,a,t),this.handler.dispatchToElement(new El(n,t),"drag",t.event);var s=this.handler.findHover(r,i,n).target,l=this._dropTarget;this._dropTarget=s,n!==s&&(l&&s!==l&&this.handler.dispatchToElement(new El(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new El(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var n=this._draggingTarget;n&&(n.dragging=!1),this.handler.dispatchToElement(new El(n,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new El(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e})(),xA=iG;var oG=(function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,n,r,i){this._$handlers||(this._$handlers={});var o=this._$handlers;if(typeof n=="function"&&(i=r,r=n,n=null),!r||!t)return this;var a=this._$eventProcessor;n!=null&&a&&a.normalizeQuery&&(n=a.normalizeQuery(n)),o[t]||(o[t]=[]);for(var s=0;s<o[t].length;s++)if(o[t][s].h===r)return this;var l={h:r,query:n,ctx:i||this,callAtLast:r.zrEventfulCallAtLast},u=o[t].length-1,c=o[t][u];return c&&c.callAtLast?o[t].splice(u,0,l):o[t].push(l),this},e.prototype.isSilent=function(t){var n=this._$handlers;return!n||!n[t]||!n[t].length},e.prototype.off=function(t,n){var r=this._$handlers;if(!r)return this;if(!t)return this._$handlers={},this;if(n){if(r[t]){for(var i=[],o=0,a=r[t].length;o<a;o++)r[t][o].h!==n&&i.push(r[t][o]);r[t]=i}r[t]&&r[t].length===0&&delete r[t]}else delete r[t];return this},e.prototype.trigger=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(!this._$handlers)return this;var i=this._$handlers[t],o=this._$eventProcessor;if(i)for(var a=n.length,s=i.length,l=0;l<s;l++){var u=i[l];if(!(o&&o.filter&&u.query!=null&&!o.filter(t,u.query)))switch(a){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,n[0]);break;case 2:u.h.call(u.ctx,n[0],n[1]);break;default:u.h.apply(u.ctx,n);break}}return o&&o.afterTrigger&&o.afterTrigger(t),this},e.prototype.triggerWithContext=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(!this._$handlers)return this;var i=this._$handlers[t],o=this._$eventProcessor;if(i)for(var a=n.length,s=n[a-1],l=i.length,u=0;u<l;u++){var c=i[u];if(!(o&&o.filter&&c.query!=null&&!o.filter(t,c.query)))switch(a){case 0:c.h.call(s);break;case 1:c.h.call(s,n[0]);break;case 2:c.h.call(s,n[0],n[1]);break;default:c.h.apply(s,n.slice(1,a-1));break}}return o&&o.afterTrigger&&o.afterTrigger(t),this},e})(),Qt=oG;var aG=Math.log(2);function Ax(e,t,n,r,i,o){var a=r+"-"+i,s=e.length;if(o.hasOwnProperty(a))return o[a];if(t===1){var l=Math.round(Math.log((1<<s)-1&~i)/aG);return e[n][l]}for(var u=r|1<<n,c=n+1;r&1<<c;)c++;for(var f=0,d=0,p=0;d<s;d++){var h=1<<d;h&i||(f+=(p%2?-1:1)*e[n][d]*Ax(e,t-1,c,u,i|h,o),p++)}return o[a]=f,f}function Nx(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],r={},i=Ax(n,8,0,0,0,r);if(i!==0){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)o[s]==null&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*Ax(n,7,a===0?1:0,1<<a,1<<s,r)/i*t[a];return function(l,u,c){var f=u*o[6]+c*o[7]+1;l[0]=(u*o[0]+c*o[1]+o[2])/f,l[1]=(u*o[3]+c*o[4]+o[5])/f}}}var hh="___zrEVENTSAVED",Ox=[];function DA(e,t,n,r,i){return mh(Ox,t,r,i,!0)&&mh(e,n,Ox[0],Ox[1])}function SA(e,t){e&&n(e),t&&n(t);function n(r){var i=r[hh];i&&(i.clearMarkers&&i.clearMarkers(),delete r[hh])}}function mh(e,t,n,r,i){if(t.getBoundingClientRect&&ce.domSupported&&!Rx(t)){var o=t[hh]||(t[hh]={}),a=sG(t,o),s=lG(a,o,i);if(s)return s(e,n,r),!0}return!1}function sG(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var r=["left","right"],i=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=a.style,l=o%2,u=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",i[u]+":0",r[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),e.appendChild(a),n.push(a)}return t.clearMarkers=function(){E(n,function(c){c.parentNode&&c.parentNode.removeChild(c)})},n}function lG(e,t,n){for(var r=n?"invTrans":"trans",i=t[r],o=t.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),f=2*u,d=c.left,p=c.top;a.push(d,p),l=l&&o&&d===o[f]&&p===o[f+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=a,t[r]=n?Nx(s,a):Nx(a,s))}function Rx(e){return e.nodeName.toUpperCase()==="CANVAS"}var uG=/([&<>"'])/g,cG={"&":"&","<":"<",">":">",'"':""","'":"'"};function Et(e){return e==null?"":(e+"").replace(uG,function(t,n){return cG[n]})}var fG=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Px=[],dG=ce.browser.firefox&&+ce.browser.version.split(".")[0]<39;function gh(e,t,n,r){return n=n||{},r?CA(e,t,n):dG&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX!=null?(n.zrX=t.offsetX,n.zrY=t.offsetY):CA(e,t,n),n}function CA(e,t,n){if(ce.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(Rx(e)){var o=e.getBoundingClientRect();n.zrX=r-o.left,n.zrY=i-o.top;return}else if(mh(Px,e,r,i)){n.zrX=Px[0],n.zrY=Px[1];return}}n.zrX=n.zrY=0}function vh(e){return e||window.event}function dn(e,t,n){if(t=vh(t),t.zrX!=null)return t;var r=t.type,i=r&&r.indexOf("touch")>=0;if(i){var a=r!=="touchend"?t.targetTouches[0]:t.changedTouches[0];a&&gh(e,a,t,n)}else{gh(e,t,t,n);var o=pG(t);t.zrDelta=o?o/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&fG.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function pG(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(n==null||r==null)return t;var i=Math.abs(r!==0?r:n),o=r>0?-1:r<0?1:n>0?-1:1;return 3*i*o}function EA(e,t,n,r){e.addEventListener(t,n,r)}function bA(e,t,n,r){e.removeEventListener(t,n,r)}var yh=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};var TA=(function(){function e(){this._track=[]}return e.prototype.recognize=function(t,n,r){return this._doTrack(t,n,r),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,n,r){var i=t.touches;if(i){for(var o={points:[],touches:[],target:n,event:t},a=0,s=i.length;a<s;a++){var l=i[a],u=gh(r,l,{});o.points.push([u.zrX,u.zrY]),o.touches.push(l)}this._track.push(o)}},e.prototype._recognize=function(t){for(var n in kx)if(kx.hasOwnProperty(n)){var r=kx[n](this._track,t);if(r)return r}},e})();function wA(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function hG(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var kx={pinch:function(e,t){var n=e.length;if(n){var r=(e[n-1]||{}).points,i=(e[n-2]||{}).points||r;if(i&&i.length>1&&r&&r.length>1){var o=wA(r)/wA(i);!isFinite(o)&&(o=1),t.pinchScale=o;var a=hG(r);return t.pinchX=a[0],t.pinchY=a[1],{type:"pinch",target:e[0].target,event:t}}}}};function Jt(){return[1,0,0,1,0,0]}function Ti(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function Ac(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function fo(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],o=t[0]*n[2]+t[2]*n[3],a=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],l=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=o,e[3]=a,e[4]=s,e[5]=l,e}function Nc(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function bl(e,t,n,r){r===void 0&&(r=[0,0]);var i=t[0],o=t[2],a=t[4],s=t[1],l=t[3],u=t[5],c=Math.sin(n),f=Math.cos(n);return e[0]=i*f+s*c,e[1]=-i*c+s*f,e[2]=o*f+l*c,e[3]=-o*c+f*l,e[4]=f*(a-r[0])+c*(u-r[1])+r[0],e[5]=f*(u-r[1])-c*(a-r[0])+r[1],e}function IA(e,t,n){var r=n[0],i=n[1];return e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i,e}function Yr(e,t){var n=t[0],r=t[2],i=t[4],o=t[1],a=t[3],s=t[5],l=n*a-o*r;return l?(l=1/l,e[0]=a*l,e[1]=-o*l,e[2]=-r*l,e[3]=n*l,e[4]=(r*s-a*i)*l,e[5]=(o*i-n*s)*l,e):null}var mG=(function(){function e(t,n){this.x=t||0,this.y=n||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,n){return this.x=t,this.y=n,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,n){this.x+=t.x*n,this.y+=t.y*n},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var n=this.x-t.x,r=this.y-t.y;return Math.sqrt(n*n+r*r)},e.prototype.distanceSquare=function(t){var n=this.x-t.x,r=this.y-t.y;return n*n+r*r},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var n=this.x,r=this.y;return this.x=t[0]*n+t[2]*r+t[4],this.y=t[1]*n+t[3]*r+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,n,r){t.x=n,t.y=r},e.copy=function(t,n){t.x=n.x,t.y=n.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,n){return t.x*n.x+t.y*n.y},e.add=function(t,n,r){t.x=n.x+r.x,t.y=n.y+r.y},e.sub=function(t,n,r){t.x=n.x-r.x,t.y=n.y-r.y},e.scale=function(t,n,r){t.x=n.x*r,t.y=n.y*r},e.scaleAndAdd=function(t,n,r,i){t.x=n.x+r.x*i,t.y=n.y+r.y*i},e.lerp=function(t,n,r,i){var o=1-i;t.x=o*n.x+i*r.x,t.y=o*n.y+i*r.y},e})(),Be=mG;var Oa=Math.min,wl=Math.max,Vx=Math.abs,MA=["x","y"],gG=["width","height"],Ia=new Be,Ma=new Be,Aa=new Be,Na=new Be,An=Hx(),Rc=An.minTv,Ux=An.maxTv,Pc=[0,0],Ii=(function(){function e(t,n,r,i){Fx(this,t,n,r,i)}return e.set=function(t,n,r,i,o){return i<0&&(n=n+i,i=-i),o<0&&(r=r+o,o=-o),t.x=n,t.y=r,t.width=i,t.height=o,t},e.prototype.union=function(t){var n=Oa(t.x,this.x),r=Oa(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=wl(t.x+t.width,this.x+this.width)-n:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=wl(t.y+t.height,this.y+this.height)-r:this.height=t.height,this.x=n,this.y=r},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){return vG(Jt(),this,t)},e.prototype.intersect=function(t,n,r){return e.intersect(this,t,n,r)},e.intersect=function(t,n,r,i){r&&Be.set(r,0,0);var o=i&&i.outIntersectRect||null,a=i&&i.clamp;if(o&&(o.x=o.y=o.width=o.height=NaN),!t||!n)return!1;t instanceof e||(t=Fx(yG,t.x,t.y,t.width,t.height)),n instanceof e||(n=Fx(_G,n.x,n.y,n.width,n.height));var s=!!r;An.reset(i,s);var l=An.touchThreshold,u=t.x+l,c=t.x+t.width-l,f=t.y+l,d=t.y+t.height-l,p=n.x+l,h=n.x+n.width-l,m=n.y+l,g=n.y+n.height-l;if(u>c||f>d||p>h||m>g)return!1;var v=!(c<p||h<u||d<m||g<f);return(s||o)&&(Pc[0]=1/0,Pc[1]=0,NA(u,c,p,h,0,s,o,a),NA(f,d,m,g,1,s,o,a),s&&Be.copy(r,v?An.useDir?An.dirMinTv:Rc:Ux)),v},e.contain=function(t,n,r){return n>=t.x&&n<=t.x+t.width&&r>=t.y&&r<=t.y+t.height},e.prototype.contain=function(t,n){return e.contain(this,t,n)},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){AA(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t?t.x:0,t?t.y:0,t?t.width:0,t?t.height:0)},e.copy=function(t,n){return t.x=n.x,t.y=n.y,t.width=n.width,t.height=n.height,t},e.applyTransform=function(t,n,r){if(!r){t!==n&&AA(t,n);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],o=r[3],a=r[4],s=r[5];t.x=n.x*i+a,t.y=n.y*o+s,t.width=n.width*i,t.height=n.height*o,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Ia.x=Aa.x=n.x,Ia.y=Na.y=n.y,Ma.x=Na.x=n.x+n.width,Ma.y=Aa.y=n.y+n.height,Ia.transform(r),Na.transform(r),Ma.transform(r),Aa.transform(r),t.x=Oa(Ia.x,Ma.x,Aa.x,Na.x),t.y=Oa(Ia.y,Ma.y,Aa.y,Na.y);var l=wl(Ia.x,Ma.x,Aa.x,Na.x),u=wl(Ia.y,Ma.y,Aa.y,Na.y);t.width=l-t.x,t.height=u-t.y},e.calculateTransform=function(t,n,r){var i=r.width/n.width,o=r.height/n.height;return t=Ti(t||[]),Nc(t,t,fh(Bx,-n.x,-n.y)),IA(t,t,fh(Bx,i,o)),Nc(t,t,fh(Bx,r.x,r.y)),t},e})(),Yle=Ii.create,Fx=Ii.set,AA=Ii.copy,vG=Ii.calculateTransform,qle=Ii.applyTransform,Zle=Ii.contain,yG=new Ii(0,0,0,0),_G=new Ii(0,0,0,0),Bx=[];function NA(e,t,n,r,i,o,a,s){var l=Vx(t-n),u=Vx(r-e),c=Oa(l,u),f=MA[i],d=MA[1-i],p=gG[i];t<n||r<e?l<u?(o&&(Ux[f]=-l),s&&(a[f]=t,a[p]=0)):(o&&(Ux[f]=u),s&&(a[f]=e,a[p]=0)):(a&&(a[f]=wl(e,n),a[p]=Oa(t,r)-a[f]),o&&(c<Pc[0]||An.useDir)&&(Pc[0]=Oa(c,Pc[0]),(l<u||!An.bidirectional)&&(Rc[f]=l,Rc[d]=0,An.useDir&&An.calcDirMTV()),(l>=u||!An.bidirectional)&&(Rc[f]=-u,Rc[d]=0,An.useDir&&An.calcDirMTV())))}function Hx(){var e=0,t=new Be,n=new Be,r={minTv:new Be,maxTv:new Be,useDir:!1,dirMinTv:new Be,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(o,a){r.touchThreshold=0,o&&o.touchThreshold!=null&&(r.touchThreshold=wl(0,o.touchThreshold)),r.negativeSize=!1,a&&(r.minTv.set(1/0,1/0),r.maxTv.set(0,0),r.useDir=!1,o&&o.direction!=null&&(r.useDir=!0,r.dirMinTv.copy(r.minTv),n.copy(r.minTv),e=o.direction,r.bidirectional=o.bidirectional==null||!!o.bidirectional,r.bidirectional||t.set(Math.cos(e),Math.sin(e))))},calcDirMTV:function(){var o=r.minTv,a=r.dirMinTv,s=o.y*o.y+o.x*o.x,l=Math.sin(e),u=Math.cos(e),c=l*o.y+u*o.x;if(i(c)){i(o.x)&&i(o.y)&&a.set(0,0);return}if(n.x=s*u/c,n.y=s*l/c,i(n.x)&&i(n.y)){a.set(0,0);return}(r.bidirectional||t.dot(n)>0)&&n.len()<a.len()&&a.copy(n)}};function i(o){return Vx(o)<1e-10}return r}var fe=Ii;var RA="silent";function xG(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:DG}}function DG(){yh(this.event)}var SG=(function(e){R(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.handler=null,n}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t})(Qt),Lc=(function(){function e(t,n){this.x=t,this.y=n}return e})(),CG=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],zx=new fe(0,0,0,0),PA=(function(e){R(t,e);function t(n,r,i,o,a){var s=e.call(this)||this;return s._hovered=new Lc(0,0),s.storage=n,s.painter=r,s.painterRoot=o,s._pointerSize=a,i=i||new SG,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new xA(s),s}return t.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(E(CG,function(r){n.on&&n.on(r,this[r],this)},this),n.handler=this),this.proxy=n},t.prototype.mousemove=function(n){var r=n.zrX,i=n.zrY,o=LA(this,r,i),a=this._hovered,s=a.target;s&&!s.__zr&&(a=this.findHover(a.x,a.y),s=a.target);var l=this._hovered=o?new Lc(r,i):this.findHover(r,i),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(a,"mouseout",n),this.dispatchToElement(l,"mousemove",n),u&&u!==s&&this.dispatchToElement(l,"mouseover",n)},t.prototype.mouseout=function(n){var r=n.zrEventControl;r!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",n),r!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:n})},t.prototype.resize=function(){this._hovered=new Lc(0,0)},t.prototype.dispatch=function(n,r){var i=this[n];i&&i.call(this,r)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(n){var r=this.proxy;r.setCursor&&r.setCursor(n)},t.prototype.dispatchToElement=function(n,r,i){n=n||{};var o=n.target;if(!(o&&o.silent)){for(var a="on"+r,s=xG(r,n,i);o&&(o[a]&&(s.cancelBubble=!!o[a].call(o,s)),o.trigger(r,s),o=o.__hostTarget?o.__hostTarget:o.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(r,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[a]=="function"&&l[a].call(l,s),l.trigger&&l.trigger(r,s)}))}},t.prototype.findHover=function(n,r,i){var o=this.storage.getDisplayList(),a=new Lc(n,r);if(OA(o,a,n,r,i),this._pointerSize&&!a.target){for(var s=[],l=this._pointerSize,u=l/2,c=new fe(n-u,r-u,l,l),f=o.length-1;f>=0;f--){var d=o[f];d!==i&&!d.ignore&&!d.ignoreCoarsePointer&&(!d.parent||!d.parent.ignoreCoarsePointer)&&(zx.copy(d.getBoundingRect()),d.transform&&zx.applyTransform(d.transform),zx.intersect(c)&&s.push(d))}if(s.length)for(var p=4,h=Math.PI/12,m=Math.PI*2,g=0;g<u;g+=p)for(var v=0;v<m;v+=h){var y=n+g*Math.cos(v),_=r+g*Math.sin(v);if(OA(s,a,y,_,i),a.target)return a}}return a},t.prototype.processGesture=function(n,r){this._gestureMgr||(this._gestureMgr=new TA);var i=this._gestureMgr;r==="start"&&i.clear();var o=i.recognize(n,this.findHover(n.zrX,n.zrY,null).target,this.proxy.dom);if(r==="end"&&i.clear(),o){var a=o.type;n.gestureEvent=a;var s=new Lc;s.target=o.target,this.dispatchToElement(s,a,o.event)}},t})(Qt);E(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){PA.prototype[e]=function(t){var n=t.zrX,r=t.zrY,i=LA(this,n,r),o,a;if((e!=="mouseup"||!i)&&(o=this.findHover(n,r),a=o.target),e==="mousedown")this._downEl=a,this._downPoint=[t.zrX,t.zrY],this._upEl=a;else if(e==="mouseup")this._upEl=a;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||_A(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(o,e,t)}});function EG(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){for(var r=e,i=void 0,o=!1;r;){if(r.ignoreClip&&(o=!0),!o){var a=r.getClipPath();if(a&&!a.contain(t,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s?r.ignoreHostSilent?null:s:r.parent}return i?RA:!0}return!1}function OA(e,t,n,r,i){for(var o=e.length-1;o>=0;o--){var a=e[o],s=void 0;if(a!==i&&!a.ignore&&(s=EG(a,n,r))&&(!t.topTarget&&(t.topTarget=a),s!==RA)){t.target=a;break}}}function LA(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var kA=PA;var VA=32,kc=7;function bG(e){for(var t=0;e>=VA;)t|=e&1,e>>=1;return e+t}function FA(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i<n&&r(e[i],e[i-1])<0;)i++;wG(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function wG(e,t,n){for(n--;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}function BA(e,t,n,r,i){for(r===t&&r++;r<n;r++){for(var o=e[r],a=t,s=r,l;a<s;)l=a+s>>>1,i(o,e[l])<0?s=l:a=l+1;var u=r-a;switch(u){case 3:e[a+3]=e[a+2];case 2:e[a+2]=e[a+1];case 1:e[a+1]=e[a];break;default:for(;u>0;)e[a+u]=e[a+u-1],u--}e[a]=o}}function jx(e,t,n,r,i,o){var a=0,s=0,l=1;if(o(e,t[n+i])>0){for(s=r-i;l<s&&o(e,t[n+i+l])>0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}else{for(s=i+1;l<s&&o(e,t[n+i-l])<=0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}for(a++;a<l;){var c=a+(l-a>>>1);o(e,t[n+c])>0?a=c+1:l=c}return l}function Gx(e,t,n,r,i,o){var a=0,s=0,l=1;if(o(e,t[n+i])<0){for(s=i+1;l<s&&o(e,t[n+i-l])<0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}else{for(s=r-i;l<s&&o(e,t[n+i+l])>=0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}for(a++;a<l;){var c=a+(l-a>>>1);o(e,t[n+c])<0?l=c:a=c+1}return l}function TG(e,t){var n=kc,r,i,o=0,a=[];r=[],i=[];function s(p,h){r[o]=p,i[o]=h,o+=1}function l(){for(;o>1;){var p=o-2;if(p>=1&&i[p-1]<=i[p]+i[p+1]||p>=2&&i[p-2]<=i[p]+i[p-1])i[p-1]<i[p+1]&&p--;else if(i[p]>i[p+1])break;c(p)}}function u(){for(;o>1;){var p=o-2;p>0&&i[p-1]<i[p+1]&&p--,c(p)}}function c(p){var h=r[p],m=i[p],g=r[p+1],v=i[p+1];i[p]=m+v,p===o-3&&(r[p+1]=r[p+2],i[p+1]=i[p+2]),o--;var y=Gx(e[g],e,h,m,0,t);h+=y,m-=y,m!==0&&(v=jx(e[h+m-1],e,g,v,v-1,t),v!==0&&(m<=v?f(h,m,g,v):d(h,m,g,v)))}function f(p,h,m,g){var v=0;for(v=0;v<h;v++)a[v]=e[p+v];var y=0,_=m,x=p;if(e[x++]=e[_++],--g===0){for(v=0;v<h;v++)e[x+v]=a[y+v];return}if(h===1){for(v=0;v<g;v++)e[x+v]=e[_+v];e[x+g]=a[y];return}for(var D=n,S,C,w;;){S=0,C=0,w=!1;do if(t(e[_],a[y])<0){if(e[x++]=e[_++],C++,S=0,--g===0){w=!0;break}}else if(e[x++]=a[y++],S++,C=0,--h===1){w=!0;break}while((S|C)<D);if(w)break;do{if(S=Gx(e[_],a,y,h,0,t),S!==0){for(v=0;v<S;v++)e[x+v]=a[y+v];if(x+=S,y+=S,h-=S,h<=1){w=!0;break}}if(e[x++]=e[_++],--g===0){w=!0;break}if(C=jx(a[y],e,_,g,0,t),C!==0){for(v=0;v<C;v++)e[x+v]=e[_+v];if(x+=C,_+=C,g-=C,g===0){w=!0;break}}if(e[x++]=a[y++],--h===1){w=!0;break}D--}while(S>=kc||C>=kc);if(w)break;D<0&&(D=0),D+=2}if(n=D,n<1&&(n=1),h===1){for(v=0;v<g;v++)e[x+v]=e[_+v];e[x+g]=a[y]}else{if(h===0)throw new Error;for(v=0;v<h;v++)e[x+v]=a[y+v]}}function d(p,h,m,g){var v=0;for(v=0;v<g;v++)a[v]=e[m+v];var y=p+h-1,_=g-1,x=m+g-1,D=0,S=0;if(e[x--]=e[y--],--h===0){for(D=x-(g-1),v=0;v<g;v++)e[D+v]=a[v];return}if(g===1){for(x-=h,y-=h,S=x+1,D=y+1,v=h-1;v>=0;v--)e[S+v]=e[D+v];e[x]=a[_];return}for(var C=n;;){var w=0,I=0,b=!1;do if(t(a[_],e[y])<0){if(e[x--]=e[y--],w++,I=0,--h===0){b=!0;break}}else if(e[x--]=a[_--],I++,w=0,--g===1){b=!0;break}while((w|I)<C);if(b)break;do{if(w=h-Gx(a[_],e,p,h,h-1,t),w!==0){for(x-=w,y-=w,h-=w,S=x+1,D=y+1,v=w-1;v>=0;v--)e[S+v]=e[D+v];if(h===0){b=!0;break}}if(e[x--]=a[_--],--g===1){b=!0;break}if(I=g-jx(e[y],a,0,g,g-1,t),I!==0){for(x-=I,_-=I,g-=I,S=x+1,D=_+1,v=0;v<I;v++)e[S+v]=a[D+v];if(g<=1){b=!0;break}}if(e[x--]=e[y--],--h===0){b=!0;break}C--}while(w>=kc||I>=kc);if(b)break;C<0&&(C=0),C+=2}if(n=C,n<1&&(n=1),g===1){for(x-=h,y-=h,S=x+1,D=y+1,v=h-1;v>=0;v--)e[S+v]=e[D+v];e[x]=a[_]}else{if(g===0)throw new Error;for(D=x-(g-1),v=0;v<g;v++)e[D+v]=a[v]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Ra(e,t,n,r){n||(n=0),r||(r=e.length);var i=r-n;if(!(i<2)){var o=0;if(i<VA){o=FA(e,n,r,t),BA(e,n,r,n+o,t);return}var a=TG(e,t),s=bG(i);do{if(o=FA(e,n,r,t),o<s){var l=i;l>s&&(l=s),BA(e,n,n+l,n+o,t),o=l}a.pushRun(n,o),a.mergeRuns(),i-=o,n+=o}while(i!==0);a.forceMergeRuns()}}var Wt=1,Pa=2,po=4;var UA=!1;function $x(){UA||(UA=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function HA(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var IG=(function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=HA}return e.prototype.traverse=function(t,n){for(var r=0;r<this._roots.length;r++)this._roots[r].traverse(t,n)},e.prototype.getDisplayList=function(t,n){n=n||!1;var r=this._displayList;return(t||!r.length)&&this.updateDisplayList(n),r},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var n=this._roots,r=this._displayList,i=0,o=n.length;i<o;i++)this._updateAndAddDisplayable(n[i],null,t);r.length=this._displayListLen,Ra(r,HA)},e.prototype._updateAndAddDisplayable=function(t,n,r){if(!(t.ignore&&!r)){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath(),o=n&&n.length,a=0,s=t.__clipPaths;if(!t.ignoreClip&&(o||i)){if(s||(s=t.__clipPaths=[]),o)for(var l=0;l<n.length;l++)s[a++]=n[l];for(var u=i,c=t;u;)u.parent=c,u.updateTransform(),s[a++]=u,c=u,u=u.getClipPath()}if(s&&(s.length=a),t.childrenRef){for(var f=t.childrenRef(),d=0;d<f.length;d++){var p=f[d];t.__dirty&&(p.__dirty|=Wt),this._updateAndAddDisplayable(p,s,r)}t.__dirty=0}else{var h=t;isNaN(h.z)&&($x(),h.z=0),isNaN(h.z2)&&($x(),h.z2=0),isNaN(h.zlevel)&&($x(),h.zlevel=0),this._displayList[this._displayListLen++]=h}var m=t.getDecalElement&&t.getDecalElement();m&&this._updateAndAddDisplayable(m,s,r);var g=t.getTextGuideLine();g&&this._updateAndAddDisplayable(g,s,r);var v=t.getTextContent();v&&this._updateAndAddDisplayable(v,s,r)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var n=0,r=t.length;n<r;n++)this.delRoot(t[n]);return}var i=se(this._roots,t);i>=0&&this._roots.splice(i,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e})(),zA=IG;var jA;jA=ce.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var Wx=jA;var _h={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)))},elasticOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?-.5*(n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)):n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-_h.bounceOut(1-e)},bounceOut:function(e){return e<.36363636363636365?7.5625*e*e:e<.7272727272727273?7.5625*(e-=.5454545454545454)*e+.75:e<.9090909090909091?7.5625*(e-=.8181818181818182)*e+.9375:7.5625*(e-=.9545454545454546)*e+.984375},bounceInOut:function(e){return e<.5?_h.bounceIn(e*2)*.5:_h.bounceOut(e*2-1)*.5+.5}},xh=_h;var Dh=Math.pow,mo=Math.sqrt,Ch=1e-8,$A=1e-4,GA=mo(3),Sh=1/3,qr=co(),Qn=co(),Tl=co();function ho(e){return e>-Ch&&e<Ch}function WA(e){return e>Ch||e<-Ch}function nt(e,t,n,r,i){var o=1-i;return o*o*(o*e+3*i*t)+i*i*(i*r+3*o*n)}function Yx(e,t,n,r,i){var o=1-i;return 3*(((t-e)*o+2*(n-t)*i)*o+(r-n)*i*i)}function La(e,t,n,r,i,o){var a=r+3*(t-n)-e,s=3*(n-t*2+e),l=3*(t-e),u=e-i,c=s*s-3*a*l,f=s*l-9*a*u,d=l*l-3*s*u,p=0;if(ho(c)&&ho(f))if(ho(s))o[0]=0;else{var h=-l/s;h>=0&&h<=1&&(o[p++]=h)}else{var m=f*f-4*c*d;if(ho(m)){var g=f/c,h=-s/a+g,v=-g/2;h>=0&&h<=1&&(o[p++]=h),v>=0&&v<=1&&(o[p++]=v)}else if(m>0){var y=mo(m),_=c*s+1.5*a*(-f+y),x=c*s+1.5*a*(-f-y);_<0?_=-Dh(-_,Sh):_=Dh(_,Sh),x<0?x=-Dh(-x,Sh):x=Dh(x,Sh);var h=(-s-(_+x))/(3*a);h>=0&&h<=1&&(o[p++]=h)}else{var D=(2*c*s-3*a*f)/(2*mo(c*c*c)),S=Math.acos(D)/3,C=mo(c),w=Math.cos(S),h=(-s-2*C*w)/(3*a),v=(-s+C*(w+GA*Math.sin(S)))/(3*a),I=(-s+C*(w-GA*Math.sin(S)))/(3*a);h>=0&&h<=1&&(o[p++]=h),v>=0&&v<=1&&(o[p++]=v),I>=0&&I<=1&&(o[p++]=I)}}return p}function Eh(e,t,n,r,i){var o=6*n-12*t+6*e,a=9*t+3*r-3*e-9*n,s=3*t-3*e,l=0;if(ho(a)){if(WA(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(ho(c))i[0]=-o/(2*a);else if(c>0){var f=mo(c),u=(-o+f)/(2*a),d=(-o-f)/(2*a);u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function Il(e,t,n,r,i,o){var a=(t-e)*i+e,s=(n-t)*i+t,l=(r-n)*i+n,u=(s-a)*i+a,c=(l-s)*i+s,f=(c-u)*i+u;o[0]=e,o[1]=a,o[2]=u,o[3]=f,o[4]=f,o[5]=c,o[6]=l,o[7]=r}function YA(e,t,n,r,i,o,a,s,l,u,c){var f,d=.005,p=1/0,h,m,g,v;qr[0]=l,qr[1]=u;for(var y=0;y<1;y+=.05)Qn[0]=nt(e,n,i,a,y),Qn[1]=nt(t,r,o,s,y),g=wa(qr,Qn),g<p&&(f=y,p=g);p=1/0;for(var _=0;_<32&&!(d<$A);_++)h=f-d,m=f+d,Qn[0]=nt(e,n,i,a,h),Qn[1]=nt(t,r,o,s,h),g=wa(Qn,qr),h>=0&&g<p?(f=h,p=g):(Tl[0]=nt(e,n,i,a,m),Tl[1]=nt(t,r,o,s,m),v=wa(Tl,qr),m<=1&&v<p?(f=m,p=v):d*=.5);return c&&(c[0]=nt(e,n,i,a,f),c[1]=nt(t,r,o,s,f)),mo(p)}function qA(e,t,n,r,i,o,a,s,l){for(var u=e,c=t,f=0,d=1/l,p=1;p<=l;p++){var h=p*d,m=nt(e,n,i,a,h),g=nt(t,r,o,s,h),v=m-u,y=g-c;f+=Math.sqrt(v*v+y*y),u=m,c=g}return f}function bt(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function qx(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function ZA(e,t,n,r,i){var o=e-2*t+n,a=2*(t-e),s=e-r,l=0;if(ho(o)){if(WA(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(ho(c)){var u=-a/(2*o);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var f=mo(c),u=(-a+f)/(2*o),d=(-a-f)/(2*o);u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function bh(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function Ml(e,t,n,r,i){var o=(t-e)*r+e,a=(n-t)*r+t,s=(a-o)*r+o;i[0]=e,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=n}function XA(e,t,n,r,i,o,a,s,l){var u,c=.005,f=1/0;qr[0]=a,qr[1]=s;for(var d=0;d<1;d+=.05){Qn[0]=bt(e,n,i,d),Qn[1]=bt(t,r,o,d);var p=wa(qr,Qn);p<f&&(u=d,f=p)}f=1/0;for(var h=0;h<32&&!(c<$A);h++){var m=u-c,g=u+c;Qn[0]=bt(e,n,i,m),Qn[1]=bt(t,r,o,m);var p=wa(Qn,qr);if(m>=0&&p<f)u=m,f=p;else{Tl[0]=bt(e,n,i,g),Tl[1]=bt(t,r,o,g);var v=wa(Tl,qr);g<=1&&v<f?(u=g,f=v):c*=.5}}return l&&(l[0]=bt(e,n,i,u),l[1]=bt(t,r,o,u)),mo(f)}function KA(e,t,n,r,i,o,a){for(var s=e,l=t,u=0,c=1/a,f=1;f<=a;f++){var d=f*c,p=bt(e,n,i,d),h=bt(t,r,o,d),m=p-s,g=h-l;u+=Math.sqrt(m*m+g*g),s=p,l=h}return u}var MG=/cubic-bezier\(([0-9,\.e ]+)\)/;function Al(e){var t=e&&MG.exec(e);if(t){var n=t[1].split(","),r=+Bt(n[0]),i=+Bt(n[1]),o=+Bt(n[2]),a=+Bt(n[3]);if(isNaN(r+i+o+a))return;var s=[];return function(l){return l<=0?0:l>=1?1:La(0,r,o,1,l,s)&&nt(0,i,a,1,s[0])}}}var AG=(function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Qe,this.ondestroy=t.ondestroy||Qe,this.onrestart=t.onrestart||Qe,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,n){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=n;return}var r=this._life,i=t-this._startTime-this._pausedTime,o=i/r;o<0&&(o=0),o=Math.min(o,1);var a=this.easingFunc,s=a?a(o):o;if(this.onframe(s),o===1)if(this.loop){var l=i%r;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Y(t)?t:xh[t]||Al(t)},e})(),QA=AG;var JA=(function(){function e(t){this.value=t}return e})();var NG=(function(){function e(){this._len=0}return e.prototype.insert=function(t){var n=new JA(t);return this.insertEntry(n),n},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var n=t.prev,r=t.next;n?n.next=r:this.head=r,r?r.prev=n:this.tail=n,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e})();var OG=(function(){function e(t){this._list=new NG,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,n){var r=this._list,i=this._map,o=null;if(i[t]==null){var a=r.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=r.head;r.remove(l),delete i[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=n:s=new JA(n),s.key=t,r.insertEntry(s),i[t]=s}return o},e.prototype.get=function(t){var n=this._map[t],r=this._list;if(n!=null)return n!==r.tail&&(r.remove(n),r.insertEntry(n)),n.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e})(),Zr=OG;var e1={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 go(e){return e=Math.round(e),e<0?0:e>255?255:e}function RG(e){return e=Math.round(e),e<0?0:e>360?360:e}function Qx(e){return e<0?0:e>1?1:e}function Xx(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?go(parseFloat(t)/100*255):go(parseInt(t,10))}function ka(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Qx(parseFloat(t)/100):Qx(parseFloat(t))}function Kx(e,t,n){return n<0?n+=1:n>1&&(n-=1),n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function wh(e,t,n){return e+(t-e)*n}function Jn(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function Jx(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var r1=new Zr(20),Th=null;function Nl(e,t){Th&&Jx(Th,t),Th=r1.put(e,Th||t.slice())}function Nn(e,t){if(e){t=t||[];var n=r1.get(e);if(n)return Jx(t,n);e=e+"";var r=e.replace(/ /g,"").toLowerCase();if(r in e1)return Jx(t,e1[r]),Nl(e,t),t;var i=r.length;if(r.charAt(0)==="#"){if(i===4||i===5){var o=parseInt(r.slice(1,4),16);if(!(o>=0&&o<=4095)){Jn(t,0,0,0,1);return}return Jn(t,(o&3840)>>4|(o&3840)>>8,o&240|(o&240)>>4,o&15|(o&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),Nl(e,t),t}else if(i===7||i===9){var o=parseInt(r.slice(1,7),16);if(!(o>=0&&o<=16777215)){Jn(t,0,0,0,1);return}return Jn(t,(o&16711680)>>16,(o&65280)>>8,o&255,i===9?parseInt(r.slice(7),16)/255:1),Nl(e,t),t}return}var a=r.indexOf("("),s=r.indexOf(")");if(a!==-1&&s+1===i){var l=r.substr(0,a),u=r.substr(a+1,s-(a+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Jn(t,+u[0],+u[1],+u[2],1):Jn(t,0,0,0,1);c=ka(u.pop());case"rgb":if(u.length>=3)return Jn(t,Xx(u[0]),Xx(u[1]),Xx(u[2]),u.length===3?c:ka(u[3])),Nl(e,t),t;Jn(t,0,0,0,1);return;case"hsla":if(u.length!==4){Jn(t,0,0,0,1);return}return u[3]=ka(u[3]),eD(u,t),Nl(e,t),t;case"hsl":if(u.length!==3){Jn(t,0,0,0,1);return}return eD(u,t),Nl(e,t),t;default:return}}Jn(t,0,0,0,1)}}function eD(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=ka(e[1]),i=ka(e[2]),o=i<=.5?i*(r+1):i+r-i*r,a=i*2-o;return t=t||[],Jn(t,go(Kx(a,o,n+1/3)*255),go(Kx(a,o,n)*255),go(Kx(a,o,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function PG(e){if(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=o-i,s=(o+i)/2,l,u;if(a===0)l=0,u=0;else{s<.5?u=a/(o+i):u=a/(2-o-i);var c=((o-t)/6+a/2)/a,f=((o-n)/6+a/2)/a,d=((o-r)/6+a/2)/a;t===o?l=d-f:n===o?l=1/3+c-d:r===o&&(l=2/3+f-c),l<0&&(l+=1),l>1&&(l-=1)}var p=[l*360,u,s];return e[3]!=null&&p.push(e[3]),p}}function t1(e,t){var n=Nn(e);if(n){for(var r=0;r<3;r++)t<0?n[r]=n[r]*(1-t)|0:n[r]=(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return Bc(n,n.length===4?"rgba":"rgb")}}function i1(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var r=e*(t.length-1),i=Math.floor(r),o=Math.ceil(r),a=Nn(t[i]),s=Nn(t[o]),l=r-i,u=Bc([go(wh(a[0],s[0],l)),go(wh(a[1],s[1],l)),go(wh(a[2],s[2],l)),Qx(wh(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:i,rightIndex:o,value:r}:u}}function Fc(e,t,n,r){var i=Nn(e);if(e)return i=PG(i),t!=null&&(i[0]=RG(Y(t)?t(i[0]):t)),n!=null&&(i[1]=ka(Y(n)?n(i[1]):n)),r!=null&&(i[2]=ka(Y(r)?r(i[2]):r)),Bc(eD(i),"rgba")}function Bc(e,t){if(!(!e||!e.length)){var n=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(n+=","+e[3]),t+"("+n+")"}}function Ol(e,t){var n=Nn(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var n1=new Zr(100);function Vc(e){if(U(e)){var t=n1.get(e);return t||(t=t1(e,-.1),n1.put(e,t)),t}else if(_l(e)){var n=P({},e);return n.colorStops=V(e.colorStops,function(r){return{offset:r.offset,color:t1(r.color,-.1)}}),n}return e}var Mh=Math.round;function vo(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var n=Nn(e);n&&(e="rgb("+n[0]+","+n[1]+","+n[2]+")",t=n[3])}return{color:e,opacity:t??1}}var o1=1e-4;function Xr(e){return e<o1&&e>-o1}function Ih(e){return Mh(e*1e3)/1e3}function Ah(e){return Mh(e*1e4)/1e4}function a1(e){return"matrix("+Ih(e[0])+","+Ih(e[1])+","+Ih(e[2])+","+Ih(e[3])+","+Ah(e[4])+","+Ah(e[5])+")"}var s1={left:"start",right:"end",center:"middle",middle:"middle"};function l1(e,t,n){return n==="top"?e+=t/2:n==="bottom"&&(e-=t/2),e}function u1(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function c1(e){var t=e.style,n=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function tD(e){return e&&!!e.image}function kG(e){return e&&!!e.svgElement}function Uc(e){return tD(e)||kG(e)}function Nh(e){return e.type==="linear"}function Oh(e){return e.type==="radial"}function Rh(e){return e&&(e.type==="linear"||e.type==="radial")}function Hc(e){return"url(#"+e+")"}function Ph(e){var t=e.getGlobalScale(),n=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function Lh(e){var t=e.x||0,n=e.y||0,r=(e.rotation||0)*Cl,i=G(e.scaleX,1),o=G(e.scaleY,1),a=e.skewX||0,s=e.skewY||0,l=[];return(t||n)&&l.push("translate("+t+"px,"+n+"px)"),r&&l.push("rotate("+r+")"),(i!==1||o!==1)&&l.push("scale("+i+","+o+")"),(a||s)&&l.push("skew("+Mh(a*Cl)+"deg, "+Mh(s*Cl)+"deg)"),l.join(" ")}var f1=(function(){return typeof Buffer<"u"&&typeof Buffer.from=="function"?function(e){return Buffer.from(e).toString("base64")}:typeof btoa=="function"&&typeof unescape=="function"&&typeof encodeURIComponent=="function"?function(e){return btoa(unescape(encodeURIComponent(e)))}:function(e){return null}})();var rD=Array.prototype.slice;function Mi(e,t,n){return(t-e)*n+e}function nD(e,t,n,r){for(var i=t.length,o=0;o<i;o++)e[o]=Mi(t[o],n[o],r);return e}function FG(e,t,n,r){for(var i=t.length,o=i&&t[0].length,a=0;a<i;a++){e[a]||(e[a]=[]);for(var s=0;s<o;s++)e[a][s]=Mi(t[a][s],n[a][s],r)}return e}function kh(e,t,n,r){for(var i=t.length,o=0;o<i;o++)e[o]=t[o]+n[o]*r;return e}function d1(e,t,n,r){for(var i=t.length,o=i&&t[0].length,a=0;a<i;a++){e[a]||(e[a]=[]);for(var s=0;s<o;s++)e[a][s]=t[a][s]+n[a][s]*r}return e}function BG(e,t){for(var n=e.length,r=t.length,i=n>r?t:e,o=Math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,r);s++)i.push({offset:a.offset,color:a.color.slice()})}function VG(e,t,n){var r=e,i=t;if(!(!r.push||!i.push)){var o=r.length,a=i.length;if(o!==a){var s=o>a;if(s)r.length=a;else for(var l=o;l<a;l++)r.push(n===1?i[l]:rD.call(i[l]))}for(var u=r[0]&&r[0].length,l=0;l<r.length;l++)if(n===1)isNaN(r[l])&&(r[l]=i[l]);else for(var c=0;c<u;c++)isNaN(r[l][c])&&(r[l][c]=i[l][c])}}function Fa(e){if(ct(e)){var t=e.length;if(ct(e[0])){for(var n=[],r=0;r<t;r++)n.push(rD.call(e[r]));return n}return rD.call(e)}return e}function Vh(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],"rgba("+e.join(",")+")"}function UG(e){return ct(e&&e[0])?2:1}var Fh=0,Uh=1,m1=2,jc=3,iD=4,oD=5,p1=6;function h1(e){return e===iD||e===oD}function Bh(e){return e===Uh||e===m1}var zc=[0,0,0,0],HG=(function(){function e(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,n,r){this._needsSort=!0;var i=this.keyframes,o=i.length,a=!1,s=p1,l=n;if(ct(n)){var u=UG(n);s=u,(u===1&&!ge(n[0])||u===2&&!ge(n[0][0]))&&(a=!0)}else if(ge(n)&&!lo(n))s=Fh;else if(U(n))if(!isNaN(+n))s=Fh;else{var c=Nn(n);c&&(l=c,s=jc)}else if(_l(n)){var f=P({},l);f.colorStops=V(n.colorStops,function(p){return{offset:p.offset,color:Nn(p.color)}}),Nh(n)?s=iD:Oh(n)&&(s=oD),l=f}o===0?this.valType=s:(s!==this.valType||s===p1)&&(a=!0),this.discrete=this.discrete||a;var d={time:t,value:l,rawValue:n,percent:0};return r&&(d.easing=r,d.easingFunc=Y(r)?r:xh[r]||Al(r)),i.push(d),d},e.prototype.prepare=function(t,n){var r=this.keyframes;this._needsSort&&r.sort(function(m,g){return m.time-g.time});for(var i=this.valType,o=r.length,a=r[o-1],s=this.discrete,l=Bh(i),u=h1(i),c=0;c<o;c++){var f=r[c],d=f.value,p=a.value;f.percent=f.time/t,s||(l&&c!==o-1?VG(d,p,i):u&&BG(d.colorStops,p.colorStops))}if(!s&&i!==oD&&n&&this.needsAnimate()&&n.needsAnimate()&&i===n.valType&&!n._finished){this._additiveTrack=n;for(var h=r[0].value,c=0;c<o;c++)i===Fh?r[c].additiveValue=r[c].value-h:i===jc?r[c].additiveValue=kh([],r[c].value,h,-1):Bh(i)&&(r[c].additiveValue=i===Uh?kh([],r[c].value,h,-1):d1([],r[c].value,h,-1))}},e.prototype.step=function(t,n){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var r=this._additiveTrack!=null,i=r?"additiveValue":"value",o=this.valType,a=this.keyframes,s=a.length,l=this.propName,u=o===jc,c,f=this._lastFr,d=Math.min,p,h;if(s===1)p=h=a[0];else{if(n<0)c=0;else if(n<this._lastFrP){var m=d(f+1,s-1);for(c=m;c>=0&&!(a[c].percent<=n);c--);c=d(c,s-2)}else{for(c=f;c<s&&!(a[c].percent>n);c++);c=d(c-1,s-2)}h=a[c+1],p=a[c]}if(p&&h){this._lastFr=c,this._lastFrP=n;var g=h.percent-p.percent,v=g===0?1:d((n-p.percent)/g,1);h.easingFunc&&(v=h.easingFunc(v));var y=r?this._additiveValue:u?zc:t[l];if((Bh(o)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)t[l]=v<1?p.rawValue:h.rawValue;else if(Bh(o))o===Uh?nD(y,p[i],h[i],v):FG(y,p[i],h[i],v);else if(h1(o)){var _=p[i],x=h[i],D=o===iD;t[l]={type:D?"linear":"radial",x:Mi(_.x,x.x,v),y:Mi(_.y,x.y,v),colorStops:V(_.colorStops,function(C,w){var I=x.colorStops[w];return{offset:Mi(C.offset,I.offset,v),color:Vh(nD([],C.color,I.color,v))}}),global:x.global},D?(t[l].x2=Mi(_.x2,x.x2,v),t[l].y2=Mi(_.y2,x.y2,v)):t[l].r=Mi(_.r,x.r,v)}else if(u)nD(y,p[i],h[i],v),r||(t[l]=Vh(y));else{var S=Mi(p[i],h[i],v);r?this._additiveValue=S:t[l]=S}r&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var n=this.valType,r=this.propName,i=this._additiveValue;n===Fh?t[r]=t[r]+i:n===jc?(Nn(t[r],zc),kh(zc,zc,i,1),t[r]=Vh(zc)):n===Uh?kh(t[r],t[r],i,1):n===m1&&d1(t[r],t[r],i,1)},e})(),zG=(function(){function e(t,n,r,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=n,n&&i){uh("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=r}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,n,r){return this.whenWithKeys(t,n,X(n),r)},e.prototype.whenWithKeys=function(t,n,r,i){for(var o=this._tracks,a=0;a<r.length;a++){var s=r[a],l=o[s];if(!l){l=o[s]=new HG(s);var u=void 0,c=this._getAdditiveTrack(s);if(c){var f=c.keyframes,d=f[f.length-1];u=d&&d.value,c.valType===jc&&u&&(u=Vh(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,Fa(u),i),this._trackKeys.push(s)}l.addKeyframe(t,Fa(n[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var n=t.length,r=0;r<n;r++)t[r].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,n=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,n)for(var r=0;r<n.length;r++)n[r].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,n=this._trackKeys,r=0;r<n.length;r++)t[n[r]].setFinished()},e.prototype._getAdditiveTrack=function(t){var n,r=this._additiveAnimators;if(r)for(var i=0;i<r.length;i++){var o=r[i].getTrack(t);o&&(n=o)}return n},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var n=this,r=[],i=this._maxTime||0,o=0;o<this._trackKeys.length;o++){var a=this._trackKeys[o],s=this._tracks[a],l=this._getAdditiveTrack(a),u=s.keyframes,c=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var f=u[c-1];f&&(n._target[s.propName]=f.rawValue),s.setFinished()}else r.push(s)}if(r.length||this._force){var d=new QA({life:i,loop:this._loop,delay:this._delay||0,onframe:function(p){n._started=2;var h=n._additiveAnimators;if(h){for(var m=!1,g=0;g<h.length;g++)if(h[g]._clip){m=!0;break}m||(n._additiveAnimators=null)}for(var g=0;g<r.length;g++)r[g].step(n._target,p);var v=n._onframeCbs;if(v)for(var g=0;g<v.length;g++)v[g](n._target,p)},ondestroy:function(){n._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),t&&d.setEasing(t)}else this._doneCallback();return this}},e.prototype.stop=function(t){if(this._clip){var n=this._clip;t&&n.onframe(1),this._abortedCallback()}},e.prototype.delay=function(t){return this._delay=t,this},e.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},e.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},e.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(t){return this._tracks[t]},e.prototype.getTracks=function(){var t=this;return V(this._trackKeys,function(n){return t._tracks[n]})},e.prototype.stopTracks=function(t,n){if(!t.length||!this._clip)return!0;for(var r=this._tracks,i=this._trackKeys,o=0;o<t.length;o++){var a=r[t[o]];a&&!a.isFinished()&&(n?a.step(this._target,1):this._started===1&&a.step(this._target,0),a.setFinished())}for(var s=!0,o=0;o<i.length;o++)if(!r[i[o]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(t,n,r){if(t){n=n||this._trackKeys;for(var i=0;i<n.length;i++){var o=n[i],a=this._tracks[o];if(!(!a||a.isFinished())){var s=a.keyframes,l=s[r?0:s.length-1];l&&(t[o]=Fa(l.rawValue))}}}},e.prototype.__changeFinalValue=function(t,n){n=n||X(t);for(var r=0;r<n.length;r++){var i=n[r],o=this._tracks[i];if(o){var a=o.keyframes;if(a.length>1){var s=a.pop();o.addKeyframe(s.time,t[i]),o.prepare(this._maxTime,o.getAdditiveTrack())}}}},e})(),Gc=zG;function Ba(){return new Date().getTime()}var jG=(function(e){R(t,e);function t(n){var r=e.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,n=n||{},r.stage=n.stage||{},r}return t.prototype.addClip=function(n){n.animation&&this.removeClip(n),this._head?(this._tail.next=n,n.prev=this._tail,n.next=null,this._tail=n):this._head=this._tail=n,n.animation=this},t.prototype.addAnimator=function(n){n.animation=this;var r=n.getClip();r&&this.addClip(r)},t.prototype.removeClip=function(n){if(n.animation){var r=n.prev,i=n.next;r?r.next=i:this._head=i,i?i.prev=r:this._tail=r,n.next=n.prev=n.animation=null}},t.prototype.removeAnimator=function(n){var r=n.getClip();r&&this.removeClip(r),n.animation=null},t.prototype.update=function(n){for(var r=Ba()-this._pausedTime,i=r-this._time,o=this._head;o;){var a=o.next,s=o.step(r,i);s&&(o.ondestroy(),this.removeClip(o)),o=a}this._time=r,n||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var n=this;this._running=!0;function r(){n._running&&(Wx(r),!n._paused&&n.update())}Wx(r)},t.prototype.start=function(){this._running||(this._time=Ba(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Ba(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Ba()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var n=this._head;n;){var r=n.next;n.prev=n.next=n.animation=null,n=r}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(n,r){r=r||{},this.start();var i=new Gc(n,r.loop);return this.addAnimator(i),i},t})(Qt),g1=jG;var GG=300,aD=ce.domSupported,sD=(function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=V(e,function(i){var o=i.replace("mouse","pointer");return n.hasOwnProperty(o)?o:i});return{mouse:e,touch:t,pointer:r}})(),v1={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},y1=!1;function cD(e){var t=e.pointerType;return t==="pen"||t==="touch"}function $G(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function lD(e){e&&(e.zrByTouch=!0)}function WG(e,t){return dn(e.dom,new YG(e,t),!0)}function x1(e,t){for(var n=t,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var YG=(function(){function e(t,n){this.stopPropagation=Qe,this.stopImmediatePropagation=Qe,this.preventDefault=Qe,this.type=n.type,this.target=this.currentTarget=t.dom,this.pointerType=n.pointerType,this.clientX=n.clientX,this.clientY=n.clientY}return e})(),wr={mousedown:function(e){e=dn(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=dn(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=dn(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=dn(this.dom,e);var t=e.toElement||e.relatedTarget;x1(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){y1=!0,e=dn(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){y1||(e=dn(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=dn(this.dom,e),lD(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),wr.mousemove.call(this,e),wr.mousedown.call(this,e)},touchmove:function(e){e=dn(this.dom,e),lD(e),this.handler.processGesture(e,"change"),wr.mousemove.call(this,e)},touchend:function(e){e=dn(this.dom,e),lD(e),this.handler.processGesture(e,"end"),wr.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<GG&&wr.click.call(this,e)},pointerdown:function(e){wr.mousedown.call(this,e)},pointermove:function(e){cD(e)||wr.mousemove.call(this,e)},pointerup:function(e){wr.mouseup.call(this,e)},pointerout:function(e){cD(e)||wr.mouseout.call(this,e)}};E(["click","dblclick","contextmenu"],function(e){wr[e]=function(t){t=dn(this.dom,t),this.trigger(e,t)}});var fD={pointermove:function(e){cD(e)||fD.mousemove.call(this,e)},pointerup:function(e){fD.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function qG(e,t){var n=t.domHandlers;ce.pointerEventsSupported?E(sD.pointer,function(r){Hh(t,r,function(i){n[r].call(e,i)})}):(ce.touchEventsSupported&&E(sD.touch,function(r){Hh(t,r,function(i){n[r].call(e,i),$G(t)})}),E(sD.mouse,function(r){Hh(t,r,function(i){i=vh(i),t.touching||n[r].call(e,i)})}))}function ZG(e,t){ce.pointerEventsSupported?E(v1.pointer,n):ce.touchEventsSupported||E(v1.mouse,n);function n(r){function i(o){o=vh(o),x1(e,o.target)||(o=WG(e,o),t.domHandlers[r].call(e,o))}Hh(t,r,i,{capture:!0})}}function Hh(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,EA(e.domTarget,t,n,r)}function uD(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&bA(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var _1=(function(){function e(t,n){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=n}return e})(),XG=(function(e){R(t,e);function t(n,r){var i=e.call(this)||this;return i.__pointerCapturing=!1,i.dom=n,i.painterRoot=r,i._localHandlerScope=new _1(n,wr),aD&&(i._globalHandlerScope=new _1(document,fD)),qG(i,i._localHandlerScope),i}return t.prototype.dispose=function(){uD(this._localHandlerScope),aD&&uD(this._globalHandlerScope)},t.prototype.setCursor=function(n){this.dom.style&&(this.dom.style.cursor=n||"default")},t.prototype.__togglePointerCapture=function(n){if(this.__mayPointerCapture=null,aD&&+this.__pointerCapturing^+n){this.__pointerCapturing=n;var r=this._globalHandlerScope;n?ZG(this,r):uD(r)}},t})(Qt),D1=XG;var S1=1;ce.hasGlobalWindow&&(S1=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var dD=S1,$c=.4,Wc="#333",Yc="#ccc",C1="#eee";var E1=Ti,b1=5e-5;function Va(e){return e>b1||e<-b1}var Ua=[],Rl=[],pD=Jt(),hD=Math.abs,w1=(function(){function e(){}return e.prototype.getLocalTransform=function(t){return KG(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return Va(this.rotation)||Va(this.x)||Va(this.y)||Va(this.scaleX-1)||Va(this.scaleY-1)||Va(this.skewX)||Va(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,n=this.needLocalTransform(),r=this.transform;if(!(n||t)){r&&(E1(r),this.invTransform=null);return}r=r||Jt(),n?this.getLocalTransform(r):E1(r),t&&(n?fo(r,t,r):Ac(r,t)),this.transform=r,this._resolveGlobalScaleRatio(r),this.invTransform=this.invTransform||Jt(),Yr(this.invTransform,r)},e.prototype._resolveGlobalScaleRatio=function(t){var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale(Ua);var r=Ua[0]<0?-1:1,i=Ua[1]<0?-1:1,o=((Ua[0]-r)*n+r)/Ua[0]||0,a=((Ua[1]-i)*n+i)/Ua[1]||0;t[0]*=o,t[1]*=o,t[2]*=a,t[3]*=a}},e.prototype.getComputedTransform=function(){for(var t=this,n=[];t;)n.push(t),t=t.parent;for(;t=n.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var n=t[0]*t[0]+t[1]*t[1],r=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),o=Math.PI/2+i-Math.atan2(t[3],t[2]);r=Math.sqrt(r)*Math.cos(o),n=Math.sqrt(n),this.skewX=o,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=n,this.scaleY=r,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,n=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Jt(),fo(Rl,t.invTransform,n),n=Rl);var r=this.originX,i=this.originY;(r||i)&&(pD[4]=r,pD[5]=i,fo(Rl,n,pD),Rl[4]-=r,Rl[5]-=i,n=Rl),this.setLocalTransform(n)}},e.prototype.getGlobalScale=function(t){var n=this.transform;return t=t||[],n?(t[0]=Math.sqrt(n[0]*n[0]+n[1]*n[1]),t[1]=Math.sqrt(n[2]*n[2]+n[3]*n[3]),n[0]<0&&(t[0]=-t[0]),n[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,n){var r=[t,n],i=this.invTransform;return i&&Vt(r,r,i),r},e.prototype.transformCoordToGlobal=function(t,n){var r=[t,n],i=this.transform;return i&&Vt(r,r,i),r},e.prototype.getLineScale=function(){var t=this.transform;return t&&hD(t[0]-1)>1e-10&&hD(t[3]-1)>1e-10?Math.sqrt(hD(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){yo(this,t)},e.getLocalTransform=function(t,n){n=n||[];var r=t.originX||0,i=t.originY||0,o=t.scaleX,a=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,c=t.x,f=t.y,d=t.skewX?Math.tan(t.skewX):0,p=t.skewY?Math.tan(-t.skewY):0;if(r||i||s||l){var h=r+s,m=i+l;n[4]=-h*o-d*m*a,n[5]=-m*a-p*h*o}else n[4]=n[5]=0;return n[0]=o,n[3]=a,n[1]=p*o,n[2]=d*a,u&&bl(n,n,u),n[4]+=r+c,n[5]+=i+f,n},e.initDefaultProps=(function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),e})(),KG=w1.getLocalTransform;var er=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function yo(e,t){return cA(e,t,er)}var Pl=w1;function Ir(e){zh||(zh=new Zr(100)),e=e||fn;var t=zh.get(e);return t||(t={font:e,strWidthCache:new Zr(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:$t.measureText("\u56FD",e).width,asciiCharWidth:$t.measureText("a",e).width},zh.put(e,t)),t}var zh;function QG(e){if(!(mD>=T1)){e=e||fn;for(var t=[],n=+new Date,r=0;r<=127;r++)t[r]=$t.measureText(String.fromCharCode(r),e).width;var i=+new Date-n;return i>16?mD=T1:i>2&&mD++,t}}var mD=0,T1=5;function gD(e,t){return e.asciiWidthMapTried||(e.asciiWidthMap=QG(e.font),e.asciiWidthMapTried=!0),0<=t&&t<=127?e.asciiWidthMap!=null?e.asciiWidthMap[t]:e.asciiCharWidth:e.stWideCharWidth}function Mr(e,t){var n=e.strWidthCache,r=n.get(t);return r==null&&(r=$t.measureText(t,e.font).width,n.put(t,r)),r}function I1(e,t,n,r){var i=Mr(Ir(t),e),o=Ha(t),a=_o(0,i,n),s=Ai(0,o,r),l=new fe(a,s,i,o);return l}function jh(e,t,n,r){var i=((e||"")+"").split(`
|
|
5
|
+
`),o=i.length;if(o===1)return I1(i[0],t,n,r);for(var a=new fe(0,0,0,0),s=0;s<i.length;s++){var l=I1(i[s],t,n,r);s===0?a.copy(l):a.union(l)}return a}function _o(e,t,n,r){return n==="right"?r?e+=t:e-=t:n==="center"&&(r?e+=t/2:e-=t/2),e}function Ai(e,t,n,r){return n==="middle"?r?e+=t/2:e-=t/2:n==="bottom"&&(r?e+=t:e-=t),e}function Ha(e){return Ir(e).stWideCharWidth}function Tr(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function za(e,t,n){var r=t.position||"inside",i=t.distance!=null?t.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",f="top";if(r instanceof Array)l+=Tr(r[0],n.width),u+=Tr(r[1],n.height),c=null,f=null;else switch(r){case"left":l-=i,u+=s,c="right",f="middle";break;case"right":l+=i+a,u+=s,f="middle";break;case"top":l+=a/2,u-=i,c="center",f="bottom";break;case"bottom":l+=a/2,u+=o+i,c="center";break;case"inside":l+=a/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=i,u+=s,f="middle";break;case"insideRight":l+=a-i,u+=s,c="right",f="middle";break;case"insideTop":l+=a/2,u+=i,c="center";break;case"insideBottom":l+=a/2,u+=o-i,c="center",f="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=a-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=o-i,f="bottom";break;case"insideBottomRight":l+=a-i,u+=o-i,c="right",f="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=c,e.verticalAlign=f,e}var vD="__zr_normal__",yD=er.concat(["ignore"]),JG=Mn(er,function(e,t){return e[t]=!0,e},{ignore:!1}),Ll={},e$=new fe(0,0,0,0),Gh=[],$h=0,kl=1,DD=(function(){function e(t){this.id=lh(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,n,r){switch(this.draggable){case"horizontal":n=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=n,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var n=this._textContent;if(n&&(!n.ignore||t)){this.textConfig||(this.textConfig={});var r=this.textConfig,i=r.local,o=n.innerTransformable,a=void 0,s=void 0,l=!1;o.parent=i?this:null;var u=!1;o.copyTransform(n);var c=r.position!=null,f=r.autoOverflowArea,d=void 0;if((f||c)&&(d=e$,r.layoutRect?d.copy(r.layoutRect):d.copy(this.getBoundingRect()),i||d.applyTransform(this.transform)),c){this.calculateTextPosition?this.calculateTextPosition(Ll,r,d):za(Ll,r,d),o.x=Ll.x,o.y=Ll.y,a=Ll.align,s=Ll.verticalAlign;var p=r.origin;if(p&&r.rotation!=null){var h=void 0,m=void 0;p==="center"?(h=d.width*.5,m=d.height*.5):(h=Tr(p[0],d.width),m=Tr(p[1],d.height)),u=!0,o.originX=-o.x+h+(i?0:d.x),o.originY=-o.y+m+(i?0:d.y)}}r.rotation!=null&&(o.rotation=r.rotation);var g=r.offset;g&&(o.x+=g[0],o.y+=g[1],u||(o.originX=-g[0],o.originY=-g[1]));var v=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(f){var y=v.overflowRect=v.overflowRect||new fe(0,0,0,0);o.getLocalTransform(Gh),Yr(Gh,Gh),fe.copy(y,d),y.applyTransform(Gh)}else v.overflowRect=null;var _=r.inside==null?typeof r.position=="string"&&r.position.indexOf("inside")>=0:r.inside,x=void 0,D=void 0,S=void 0;_&&this.canBeInsideText()?(x=r.insideFill,D=r.insideStroke,(x==null||x==="auto")&&(x=this.getInsideTextFill()),(D==null||D==="auto")&&(D=this.getInsideTextStroke(x),S=!0)):(x=r.outsideFill,D=r.outsideStroke,(x==null||x==="auto")&&(x=this.getOutsideFill()),(D==null||D==="auto")&&(D=this.getOutsideStroke(x),S=!0)),x=x||"#000",(x!==v.fill||D!==v.stroke||S!==v.autoStroke||a!==v.align||s!==v.verticalAlign)&&(l=!0,v.fill=x,v.stroke=D,v.autoStroke=S,v.align=a,v.verticalAlign=s,n.setDefaultTextStyle(v)),n.__dirty|=Wt,l&&n.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Yc:Wc},e.prototype.getOutsideStroke=function(t){var n=this.__zr&&this.__zr.getBackgroundColor(),r=typeof n=="string"&&Nn(n);r||(r=[255,255,255,1]);for(var i=r[3],o=this.__zr.isDarkMode(),a=0;a<3;a++)r[a]=r[a]*i+(o?0:255)*(1-i);return r[3]=1,Bc(r,"rgba")},e.prototype.traverse=function(t,n){},e.prototype.attrKV=function(t,n){t==="textConfig"?this.setTextConfig(n):t==="textContent"?this.setTextContent(n):t==="clipPath"?this.setClipPath(n):t==="extra"?(this.extra=this.extra||{},P(this.extra,n)):this[t]=n},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,n){if(typeof t=="string")this.attrKV(t,n);else if(z(t))for(var r=t,i=X(r),o=0;o<i.length;o++){var a=i[o];this.attrKV(a,t[a])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var n=this._normalState,r=0;r<this.animators.length;r++){var i=this.animators[r],o=i.__fromStateTransition;if(!(i.getLoop()||o&&o!==vD)){var a=i.targetName,s=a?n[a]:n;i.saveTo(s)}}},e.prototype._innerSaveToNormal=function(t){var n=this._normalState;n||(n=this._normalState={}),t.textConfig&&!n.textConfig&&(n.textConfig=this.textConfig),this._savePrimaryToNormal(t,n,yD)},e.prototype._savePrimaryToNormal=function(t,n,r){for(var i=0;i<r.length;i++){var o=r[i];t[o]!=null&&!(o in n)&&(n[o]=this[o])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var n=this.states;return n[t]||(n[t]={}),n[t]},e.prototype.clearStates=function(t){this.useState(vD,!1,t)},e.prototype.useState=function(t,n,r,i){var o=t===vD,a=this.hasState();if(!(!a&&o)){var s=this.currentStates,l=this.stateTransition;if(!(se(s,t)>=0&&(n||s.length===1))){var u;if(this.stateProxy&&!o&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!o){uh("State "+t+" not exists.");return}o||this.saveCurrentToNormalState(u);var c=this._textContent,f=A1(this,c,u,i);f&&!this.__inHover&&(this.__inHover=f),this._applyStateObj(t,u,this._normalState,n,O1(this,r,l),l);var d=this._textGuide;return c&&c.useState(t,n,r,!!f),d&&d.useState(t,n,r,!!f),o?(this.currentStates=[],this._normalState={}):n?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this.__inHover=$h,this.__dirty&=~Wt),u}}},e.prototype.useStates=function(t,n,r){if(!t.length)this.clearStates();else{var i=[],o=this.currentStates,a=t.length,s=a===o.length;if(s){for(var l=0;l<a;l++)if(t[l]!==o[l]){s=!1;break}}if(s)return;for(var l=0;l<a;l++){var u=t[l],c=void 0;this.stateProxy&&(c=this.stateProxy(u,t)),c||(c=this.states[u]),c&&i.push(c)}var f=i[a-1],d=this._textContent,p=A1(this,d,f,r);p&&!this.__inHover&&(this.__inHover=p);var h=this._mergeStates(i),m=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(t.join(","),h,this._normalState,!1,O1(this,n,m),m);var g=this._textGuide;d&&d.useStates(t,n,!!p),g&&g.useStates(t,n,!!p),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!p&&this.__inHover&&(this.__inHover=$h,this.__dirty&=~Wt)}},e.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var n=t.__hostTarget;t=n?t.ignoreHostSilent?null:n:t.parent}return!1},e.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var n=this.animators[t];n.targetName&&n.changeTarget(this[n.targetName])}},e.prototype.removeState=function(t){var n=se(this.currentStates,t);if(n>=0){var r=this.currentStates.slice();r.splice(n,1),this.useStates(r)}},e.prototype.replaceState=function(t,n,r){var i=this.currentStates.slice(),o=se(i,t),a=se(i,n)>=0;o>=0?a?i.splice(o,1):i[o]=n:r&&!a&&i.push(n),this.useStates(i)},e.prototype.toggleState=function(t,n){n?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var n={},r,i=0;i<t.length;i++){var o=t[i];P(n,o),o.textConfig&&(r=r||{},P(r,o.textConfig))}return r&&(n.textConfig=r),n},e.prototype._applyStateObj=function(t,n,r,i,o,a){if(this.__inHover!==kl){var s=!(n&&i);n&&n.textConfig?(this.textConfig=P({},i?this.textConfig:r.textConfig),P(this.textConfig,n.textConfig)):s&&r.textConfig&&(this.textConfig=r.textConfig);for(var l={},u=!1,c=0;c<yD.length;c++){var f=yD[c],d=o&&JG[f];n&&n[f]!=null?d?(u=!0,l[f]=n[f]):this[f]=n[f]:s&&r[f]!=null&&(d?(u=!0,l[f]=r[f]):this[f]=r[f])}if(!o)for(var c=0;c<this.animators.length;c++){var p=this.animators[c],h=p.targetName;p.getLoop()||p.__changeFinalValue(h?(n||r)[h]:n||r)}u&&this._transitionState(t,l,a)}},e.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var n=this.__zr;n&&t.addSelfToZr(n),t.__zr=n,t.__hostTarget=this}},e.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},e.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(t){var n=this._textContent;n!==t&&(n&&n!==t&&this.removeTextContent(),t.innerTransformable=new Pl,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),P(this.textConfig,t),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=Wt;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var n=this.animators;if(n)for(var r=0;r<n.length;r++)t.animation.addAnimator(n[r]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var n=this.animators;if(n)for(var r=0;r<n.length;r++)t.animation.removeAnimator(n[r]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,n,r){var i=t?this[t]:this,o=new Gc(i,n,r);return t&&(o.targetName=t),this.addAnimator(o,t),o},e.prototype.addAnimator=function(t,n){var r=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(n)}).done(function(){var o=i.animators,a=se(o,t);a>=0&&o.splice(a,1)}),this.animators.push(t),r&&r.animation.addAnimator(t),r&&r.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,n){for(var r=this.animators,i=r.length,o=[],a=0;a<i;a++){var s=r[a];!t||t===s.scope?s.stop(n):o.push(s)}return this.animators=o,this},e.prototype.animateTo=function(t,n,r){_D(this,t,n,r)},e.prototype.animateFrom=function(t,n,r){_D(this,t,n,r,!0)},e.prototype._transitionState=function(t,n,r,i){for(var o=_D(this,n,r,i),a=0;a<o.length;a++)o[a].__fromStateTransition=t},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=(function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.ignoreHostSilent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=!1,t.__inHover=$h,t.__dirty=Wt;var n={};function r(o,a,s){n[o+a+s]||(console.warn("DEPRECATED: '"+o+"' has been deprecated. use '"+a+"', '"+s+"' instead"),n[o+a+s]=!0)}function i(o,a,s,l){Object.defineProperty(t,o,{get:function(){if(!this[a]){var c=this[a]=[];u(this,c)}return this[a]},set:function(c){this[s]=c[0],this[l]=c[1],this[a]=c,u(this,c)}});function u(c,f){Object.defineProperty(f,0,{get:function(){return c[s]},set:function(d){c[s]=d}}),Object.defineProperty(f,1,{get:function(){return c[l]},set:function(d){c[l]=d}})}}Object.defineProperty&&(i("position","_legacyPos","x","y"),i("scale","_legacyScale","scaleX","scaleY"),i("origin","_legacyOrigin","originX","originY"))})(),e})();Kt(DD,Qt);Kt(DD,Pl);function _D(e,t,n,r,i){n=n||{};var o=[];R1(e,"",e,t,n,r,o,i);var a=o.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,a--,a<=0&&(s?l&&l():u&&u())},f=function(){a--,a<=0&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&n.during&&o[0].during(function(h,m){n.during(m)});for(var d=0;d<o.length;d++){var p=o[d];c&&p.done(c),f&&p.aborted(f),n.force&&p.duration(n.duration),p.start(n.easing)}return o}function xD(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function t$(e){return ct(e[0])}function n$(e,t,n){if(ct(t[n]))if(ct(e[n])||(e[n]=[]),ft(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),xD(e[n],t[n],r))}else{var i=t[n],o=e[n],a=i.length;if(t$(i))for(var s=i[0].length,l=0;l<a;l++)o[l]?xD(o[l],i[l],s):o[l]=Array.prototype.slice.call(i[l]);else xD(o,i,a);o.length=i.length}else e[n]=t[n]}function r$(e,t){return e===t||ct(e)&&ct(t)&&i$(e,t)}function i$(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function R1(e,t,n,r,i,o,a,s){for(var l=X(r),u=i.duration,c=i.delay,f=i.additive,d=i.setToFinal,p=!z(o),h=e.animators,m=[],g=0;g<l.length;g++){var v=l[g],y=r[v];if(y!=null&&n[v]!=null&&(p||o[v]))if(z(y)&&!ct(y)&&!_l(y)){if(t){s||(n[v]=y,e.updateDuringAnimation(t));continue}R1(e,v,n[v],y,i,o&&o[v],a,s)}else m.push(v);else s||(n[v]=y,e.updateDuringAnimation(t),m.push(v))}var _=m.length;if(!f&&_)for(var x=0;x<h.length;x++){var D=h[x];if(D.targetName===t){var S=D.stopTracks(m);if(S){var C=se(h,D);h.splice(C,1)}}}if(i.force||(m=qe(m,function(T){return!r$(r[T],n[T])}),_=m.length),_>0||i.force&&!a.length){var w=void 0,I=void 0,b=void 0;if(s){I={},d&&(w={});for(var x=0;x<_;x++){var v=m[x];I[v]=n[v],d?w[v]=r[v]:n[v]=r[v]}}else if(d){b={};for(var x=0;x<_;x++){var v=m[x];b[v]=Fa(n[v]),n$(n,r,v)}}var D=new Gc(n,!1,!1,f?qe(h,function(A){return A.targetName===t}):null);D.targetName=t,i.scope&&(D.scope=i.scope),d&&w&&D.whenWithKeys(0,w,m),b&&D.whenWithKeys(0,b,m),D.whenWithKeys(u??500,s?I:r,m).delay(c||0),e.addAnimator(D,t),a.push(D)}}function A1(e,t,n,r){return!(n&&n.hoverLayer||r)||N1(e)||t&&N1(t)?$h:kl}function N1(e){return e.type==="text"||e.type==="tspan"}function O1(e,t,n){return!t&&!e.__inHover&&n&&n.duration>0}var Wh=DD;var P1=(function(e){R(t,e);function t(n){var r=e.call(this)||this;return r.isGroup=!0,r._children=[],r.attr(n),r}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(n){return this._children[n]},t.prototype.childOfName=function(n){for(var r=this._children,i=0;i<r.length;i++)if(r[i].name===n)return r[i]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(n){return n&&n!==this&&n.parent!==this&&(this._children.push(n),this._doAdd(n)),this},t.prototype.addBefore=function(n,r){if(n&&n!==this&&n.parent!==this&&r&&r.parent===this){var i=this._children,o=i.indexOf(r);o>=0&&(i.splice(o,0,n),this._doAdd(n))}return this},t.prototype.replace=function(n,r){var i=se(this._children,n);return i>=0&&this.replaceAt(r,i),this},t.prototype.replaceAt=function(n,r){var i=this._children,o=i[r];if(n&&n!==this&&n.parent!==this&&n!==o){i[r]=n,o.parent=null;var a=this.__zr;a&&o.removeSelfFromZr(a),this._doAdd(n)}return this},t.prototype._doAdd=function(n){n.parent&&n.parent.remove(n),n.parent=this;var r=this.__zr;r&&r!==n.__zr&&n.addSelfToZr(r),r&&r.refresh()},t.prototype.remove=function(n){var r=this.__zr,i=this._children,o=se(i,n);return o<0?this:(i.splice(o,1),n.parent=null,r&&n.removeSelfFromZr(r),r&&r.refresh(),this)},t.prototype.removeAll=function(){for(var n=this._children,r=this.__zr,i=0;i<n.length;i++){var o=n[i];r&&o.removeSelfFromZr(r),o.parent=null}return n.length=0,this},t.prototype.eachChild=function(n,r){for(var i=this._children,o=0;o<i.length;o++){var a=i[o];n.call(r,a,o)}return this},t.prototype.traverse=function(n,r){for(var i=0;i<this._children.length;i++){var o=this._children[i],a=n.call(r,o);o.isGroup&&!a&&o.traverse(n,r)}return this},t.prototype.addSelfToZr=function(n){e.prototype.addSelfToZr.call(this,n);for(var r=0;r<this._children.length;r++){var i=this._children[r];i.addSelfToZr(n)}},t.prototype.removeSelfFromZr=function(n){e.prototype.removeSelfFromZr.call(this,n);for(var r=0;r<this._children.length;r++){var i=this._children[r];i.removeSelfFromZr(n)}},t.prototype.getBoundingRect=function(n){for(var r=new fe(0,0,0,0),i=n||this._children,o=[],a=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),c=l.getLocalTransform(o);c?(fe.applyTransform(r,u,c),a=a||r.clone(),a.union(r)):(a=a||u.clone(),a.union(u))}}return a||r},t})(Wh);P1.prototype.type="group";var ke=P1;var Yh={},L1={};function o$(e){delete L1[e]}function a$(e){if(!e)return!1;if(typeof e=="string")return Ol(e,1)<$c;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=Ol(t[i].color,1);return n/=r,n<$c}return!1}var s$=(function(){function e(t,n,r){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,r=r||{},this.dom=n,this.id=t;var o=new zA,a=r.renderer||"canvas";Yh[a]||(a=X(Yh)[0]),r.useDirtyRect=r.useDirtyRect==null?!1:r.useDirtyRect;var s=new Yh[a](n,o,r,t),l=r.ssr||s.ssrOnly;this.storage=o,this.painter=s;var u=!ce.node&&!ce.worker&&!l?new D1(s.getViewportRoot(),s.root):null,c=r.useCoarsePointer,f=c==null||c==="auto"?ce.touchEventsSupported:!!c,d=44,p;f&&(p=G(r.pointerSize,d)),this.handler=new kA(o,s,u,s.root,p),this.animation=new g1({stage:{update:l?null:function(){return i._flush(!1)}}}),l||this.animation.start()}return e.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},e.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(t,n){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,n),this.refresh())},e.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=a$(t))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(t){this._darkMode=t},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(t){this._disposed||this._refresh({animUpdate:!t,refresh:!0,refreshHover:!1})},e.prototype._refresh=function(t){t.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:t.refresh,refreshHover:t.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!0)},e.prototype._flush=function(t){var n,r=Ba(),i=this._needsRefresh,o=this._needsRefreshHover;(i||o)&&(n=!0,this._refresh({animUpdate:t,refresh:i,refreshHover:o}));var a=Ba();n?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:a-r})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},e.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,n){if(!this._disposed)return this.handler.findHover(t,n)},e.prototype.on=function(t,n,r){return this._disposed||this.handler.on(t,n,r),this},e.prototype.off=function(t,n){this._disposed||this.handler.off(t,n)},e.prototype.trigger=function(t,n){this._disposed||this.handler.trigger(t,n)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),n=0;n<t.length;n++)t[n]instanceof ke&&t[n].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.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,o$(this.id))},e})();function CD(e,t){var n=new s$(lh(),e,t);return L1[n.id]=n,n}function k1(e,t){Yh[e]=t}var SD;function F1(e){if(typeof SD=="function")return SD(e)}function B1(e){SD=e}var V1=1e-4,U1=20,H1=14;function u$(e){return e.replace(/^\s+|\s+$/g,"")}var it=Math.min,De=Math.max,Je=Math.abs,On=Math.round,Ni=Math.floor,xo=Math.ceil,ja=Math.pow,Fl=Math.log,ED=Math.LN10,c$=Math.PI,f$=Math.random;function Nr(e,t,n,r){var i=t[0],o=t[1],a=n[0],s=n[1],l=o-i,u=s-a;if(l===0)return u===0?a:(a+s)/2;if(r)if(l>0){if(e<=i)return a;if(e>=o)return s}else{if(e>=i)return a;if(e<=o)return s}else{if(e===i)return a;if(e===o)return s}return(e-i)/l*u+a}var we=d$;function d$(e,t,n){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return qh(e,t,n)}function qh(e,t,n){return U(e)?p$(e)?parseFloat(e)/100*t+(n||0):parseFloat(e):e==null?NaN:+e}function p$(e){return!!u$(e).match(/%$/)}function Ee(e,t,n){return isNaN(t)?n?""+e:+e:(t=it(De(0,t),U1),e=(+e).toFixed(t),n?e:+e)}function Bl(e){return e.sort(function(t,n){return t-n}),e}function Ar(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(On(e*t)/t===e)return n}return h$(e)}function h$(e){var t=e.toString().toLowerCase(),n=t.indexOf("e"),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,o=t.indexOf("."),a=o<0?0:i-1-o;return De(0,a-r)}function z1(e,t,n){var r=Je(e[1]-e[0]);if(!isFinite(r)||r===0)return NaN;var i=Fl(2*Je(n||1)*Je(r))/ED,o=Fl(Je(t))/ED,a=De(0,xo(-i+o));return isFinite(a)||(a=NaN),a}function j1(e,t){var n=De(Ar(e),Ar(t)),r=e+t;return n>U1?r:Ee(r,n)}var bD=ja(2,53)-1;function wD(e){var t=c$*2;return(e%t+t)%t}function qc(e){return e>-V1&&e<V1}var m$=/^(?:(\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 Kr(e){if(e instanceof Date)return e;if(U(e)){var t=m$.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(e==null)return new Date(NaN);return new Date(On(e))}function Zh(e){return ja(10,Xh(e))}function Xh(e){if(e===0)return 0;var t=Ni(Fl(e)/ED);return e/ja(10,t)>=10&&t++,t}var TD=2;function Ga(e,t){var n=Xh(e),r=ja(10,n),i=e/r,o;return t===TD?o=1:t?i<1.5?o=1:i<2.5?o=2:i<4?o=3:i<7?o=5:o=10:i<1?o=1:i<2?o=2:i<3?o=3:i<5?o=5:o=10,e=o*r,Ee(e,-n)}function Qr(e){var t=parseFloat(e);return t==e&&(t!==0||!U(e)||e.indexOf("x")<=0)?t:NaN}function ID(e){return!isNaN(Qr(e))}function Zc(){return On(f$()*9)}function G1(e,t){return t===0?e:G1(t,e%t)}function MD(e,t){return e==null?t:t==null?e:e*t/G1(e,t)}function yt(e){return e!=null&&isFinite(e)}var g$="[ECharts] ",W1={},v$=typeof console<"u"&&console.warn&&console.log;function y$(e,t,n){if(v$){if(n){if(W1[t])return;W1[t]=!0}console[e](g$+t)}}function AD(e,t){y$("error",e,t)}function Nt(e){throw new Error(e)}function Y1(e,t,n){return(t-e)*n+e}var q1="series\0",_$="\0_ec_\0";function Ge(e){return e instanceof Array?e:e==null?[]:[e]}function ND(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,i=n.length;r<i;r++){var o=n[r];!e.emphasis[t].hasOwnProperty(o)&&e[t].hasOwnProperty(o)&&(e.emphasis[t][o]=e[t][o])}}}var OD=["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 Oi(e){return z(e)&&!F(e)&&!(e instanceof Date)?e.value:e}function Z1(e){return z(e)&&!(e instanceof Array)}function Kh(e,t,n){var r=n==="normalMerge",i=n==="replaceMerge",o=n==="replaceAll";e=e||[],t=(t||[]).slice();var a=q();E(t,function(l,u){if(!z(l)){t[u]=null;return}});var s=x$(e,a,n);return(r||i)&&D$(s,e,a,t),r&&S$(s,t),r||i?C$(s,t,i):o&&E$(s,t),b$(s),s}function x$(e,t,n){var r=[];if(n==="replaceAll")return r;for(var i=0;i<e.length;i++){var o=e[i];o&&o.id!=null&&t.set(o.id,i),r.push({existing:n==="replaceMerge"||Vl(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return r}function D$(e,t,n,r){E(r,function(i,o){if(!(!i||i.id==null)){var a=Xc(i.id),s=n.get(a);if(s!=null){var l=e[s];Ke(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=i,l.existing=t[s],r[o]=null}}})}function S$(e,t){E(t,function(n,r){if(!(!n||n.name==null))for(var i=0;i<e.length;i++){var o=e[i].existing;if(!e[i].newOption&&o&&(o.id==null||n.id==null)&&!Vl(n)&&!Vl(o)&&X1("name",o,n)){e[i].newOption=n,t[r]=null;return}}})}function C$(e,t,n){E(t,function(r){if(r){for(var i,o=0;(i=e[o])&&(i.newOption||Vl(i.existing)||i.existing&&r.id!=null&&!X1("id",r,i.existing));)o++;i?(i.newOption=r,i.brandNew=n):e.push({newOption:r,brandNew:n,existing:null,keyInfo:null}),o++}})}function E$(e,t){E(t,function(n){e.push({newOption:n,brandNew:!0,existing:null,keyInfo:null})})}function b$(e){var t=q();E(e,function(n){var r=n.existing;r&&t.set(r.id,n)}),E(e,function(n){var r=n.newOption;Ke(!r||r.id==null||!t.get(r.id)||t.get(r.id)===n,"id duplicates: "+(r&&r.id)),r&&r.id!=null&&t.set(r.id,n),!n.keyInfo&&(n.keyInfo={})}),E(e,function(n,r){var i=n.existing,o=n.newOption,a=n.keyInfo;if(z(o)){if(a.name=o.name!=null?Xc(o.name):i?i.name:q1+r,i)a.id=Xc(i.id);else if(o.id!=null)a.id=Xc(o.id);else{var s=0;do a.id="\0"+a.name+"\0"+s++;while(t.get(a.id))}t.set(a.id,n)}})}function X1(e,t,n){var r=Ot(t[e],null),i=Ot(n[e],null);return r!=null&&i!=null&&r===i}function Xc(e){return Ot(e,"")}function Ot(e,t){return e==null?t:U(e)?e:ge(e)||Mc(e)?e+"":t}function Qh(e){var t=e.name;return!!(t&&t.indexOf(q1))}function Vl(e){return e&&e.id!=null&&Xc(e.id).indexOf(_$)===0}function K1(e,t,n){E(e,function(r){var i=r.newOption;z(i)&&(r.keyInfo.mainType=t,r.keyInfo.subType=w$(t,i,r.existing,n))})}function w$(e,t,n,r){var i=t.type?t.type:n?n.subType:r.determineSubType(e,t);return i}function tr(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return F(t.dataIndex)?V(t.dataIndex,function(n){return e.indexOfRawIndex(n)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return F(t.name)?V(t.name,function(n){return e.indexOfName(n)}):e.indexOfName(t.name)}function re(){var e="__ec_inner_"+T$++;return function(t){return t[e]||(t[e]={})}}var T$=Zc();function Jh(e,t,n){var r=Kc(t,n),i=r.mainTypeSpecified,o=r.queryOptionMap,a=r.others,s=a,l=n?n.defaultMainType:null;return!i&&l&&o.set(l,{}),o.each(function(u,c){var f=Do(e,c,u,{useDefault:l===c,enableAll:n&&n.enableAll!=null?n.enableAll:!0,enableNone:n&&n.enableNone!=null?n.enableNone:!0});s[c+"Models"]=f.models,s[c+"Model"]=f.models[0]}),s}function Kc(e,t){var n;if(U(e)){var r={};r[e+"Index"]=0,n=r}else n=e;var i=q(),o={},a=!1;return E(n,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){o[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],f=(u[2]||"").toLowerCase();if(!(!c||!f||t&&t.includeMainTypes&&se(t.includeMainTypes,c)<0)){a=a||!!c;var d=i.get(c)||i.set(c,{});d[f]=s}}),{mainTypeSpecified:a,queryOptionMap:i,others:o}}var Ut={useDefault:!0,enableAll:!1,enableNone:!1};function Do(e,t,n,r){r=r||Ut;var i=n.index,o=n.id,a=n.name,s={models:null,specified:i!=null||o!=null||a!=null};if(!s.specified){var l=void 0;return s.models=r.useDefault&&(l=e.getComponent(t))?[l]:[],s}if(i==="none"||i===!1){if(r.enableNone)return s.models=[],s;i=-1}return i==="all"&&(r.enableAll?i=o=a=null:i=-1),s.models=e.queryComponents({mainType:t,index:i,id:o,name:a}),s}function Q1(e,t,n){var r={};r[t+"Id"]=e[t+"Id"],r[t+"Index"]=e[t+"Index"],r[t+"Name"]=e[t+"Name"];var i={mainType:t,query:r};return n&&(i.subType=n),i}function RD(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function J1(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function eN(e){return e==="auto"?ce.domSupported?"html":"richText":e||"html"}function em(e,t,n,r,i){var o=t==null||t==="auto";if(r==null)return r;if(ge(r)){var a=Y1(n||0,r,i);return Ee(a,o?Math.max(Ar(n||0),Ar(r)):t)}else{if(U(r))return i<1?n:r;for(var s=[],l=n,u=r,c=Math.max(l?l.length:0,u.length),f=0;f<c;++f){var d=e.getDimensionInfo(f);if(d&&d.type==="ordinal")s[f]=(i<1&&l?l:u)[f];else{var p=l&&l[f]?l[f]:0,h=u[f],a=Y1(p,h,i);s[f]=Ee(a,o?Math.max(Ar(p),Ar(h)):t)}}return s}}var Sce=(function(){function e(){}return e.prototype.reset=function(t,n,r,i){return this._list=t,this._step=i=i||1,this._idx=n,this._end=r??(i>0?t.length:0),this.item=null,this.key=NaN,this},e.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)?(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0):!1},e})();function Ht(){return[1/0,-1/0]}function Qc(e,t){Or(t)&&(t<e[0]&&(e[0]=t),t>e[1]&&(e[1]=t))}function PD(e,t){Or(t)&&t<e[0]&&(e[0]=t)}function LD(e,t){Or(t)&&t>e[1]&&(e[1]=t)}function tN(e,t){Ri(t[0],t[1])&&(t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]))}function Or(e){return e!=null&&isFinite(e)}function Ri(e,t){return Or(e)&&Or(t)&&e<=t}function nN(e){var t=e[1]-e[0];return isFinite(t)&&t>=0}function rN(e){Ri(e[0],e[1])&&e[0]>e[1]&&(e[0]=e[1])}function tm(){var e="__ec_once_"+I$++;return function(t,n){Q(t,e)||(t[e]=1,n())}}var I$=Zc();function Ul(e,t,n){var r=q(),i=0;E(e,function(o){var a=t(o),s=r.get(a)||0;n&&n(o,s),!s&&!n&&(e[i++]=o),r.set(a,s+1)}),n||(e.length=i)}function iN(e){return e.value+""}function oN(e){return e+""}function aN(e,t){return G(t,!0)?e.seriesIndex+2:0}function nm(e,t,n){var r=e.getData().count();return{progressiveRender:n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,large:e.get("large")&&r>=e.get("largeThreshold"),modDataCount:e.get("progressiveChunkMode")==="mod"?e.getData().count():null}}function rm(e){return{overallReset:e}}var M$=".",$a="___EC__COMPONENT__CONTAINER___",sN="___EC__EXTENDED_CLASS___";function pn(e){var t={main:"",sub:""};if(e){var n=e.split(M$);t.main=n[0]||"",t.sub=n[1]||""}return t}function A$(e){Ke(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function lN(e){return!!(e&&e[sN])}function Hl(e,t){e.$constructor=e,e.extend=function(n){var r=this,i;return N$(r)?i=(function(o){R(a,o);function a(){return o.apply(this,arguments)||this}return a})(r):(i=function(){(n.$constructor||r).apply(this,arguments)},fA(i,this)),P(i.prototype,n),i[sN]=!0,i.extend=this.extend,i.superCall=R$,i.superApply=P$,i.superClass=r,i}}function N$(e){return Y(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function im(e,t){e.extend=t.extend}var O$=Math.round(Math.random()*10);function uN(e){var t=["__\0is_clz",O$++].join("_");e.prototype[t]=!0,e.isInstance=function(n){return!!(n&&n[t])}}function R$(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[t].apply(e,n)}function P$(e,t,n){return this.superClass.prototype[t].apply(e,n)}function So(e){var t={};e.registerClass=function(r){var i=r.type||r.prototype.type;if(i){A$(i),r.prototype.type=i;var o=pn(i);if(!o.sub)t[o.main]=r;else if(o.sub!==$a){var a=n(o);a[o.sub]=r}}return r},e.getClass=function(r,i,o){var a=t[r];if(a&&a[$a]&&(a=i?a[i]:null),o&&!a)throw new Error(i?"Component "+r+"."+(i||"")+" is used but not imported.":r+".type should be specified.");return a},e.getClassesByMainType=function(r){var i=pn(r),o=[],a=t[i.main];return a&&a[$a]?E(a,function(s,l){l!==$a&&o.push(s)}):o.push(a),o},e.hasClass=function(r){var i=pn(r);return!!t[i.main]},e.getAllClassMainTypes=function(){var r=[];return E(t,function(i,o){r.push(o)}),r},e.hasSubTypes=function(r){var i=pn(r),o=t[i.main];return o&&o[$a]};function n(r){var i=t[r.main];return(!i||!i[$a])&&(i=t[r.main]={},i[$a]=!0),i}}function Jr(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t=t||!1,function(r,i,o){for(var a={},s=0;s<e.length;s++){var l=e[s][1];if(!(i&&se(i,l)>=0||o&&se(o,l)<0)){var u=r.getShallow(l,t);u!=null&&(a[e[s][0]]=u)}}return a}}var L$=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],k$=Jr(L$),cN=(function(){function e(){}return e.prototype.getAreaStyle=function(t,n){return k$(this,t,n)},e})();var FD=new Zr(50);function dN(e){if(typeof e=="string"){var t=FD.get(e);return t&&t.image}else return e}function Jc(e,t,n,r,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!n)return t;var o=FD.get(e),a={hostEl:n,cb:r,cbPayload:i};return o?(t=o.image,!zl(t)&&o.pending.push(a)):(t=$t.loadImage(e,fN,fN),t.__zrImageSrc=e,FD.put(e,t.__cachedImgObj={image:t,pending:[a]})),t}else return e;else return t}function fN(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function zl(e){return e&&e.width&&e.height}var BD=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function B$(e,t,n,r,i,o){if(!n){e.text="",e.isTruncated=!1;return}var a=(t+"").split(`
|
|
6
|
+
`);o=gN(n,r,i,o);for(var s=!1,l={},u=0,c=a.length;u<c;u++)vN(l,a[u],o),a[u]=l.textLine,s=s||l.isTruncated;e.text=a.join(`
|
|
7
|
+
`),e.isTruncated=s}function gN(e,t,n,r){r=r||{};var i=P({},r);n=G(n,"..."),i.maxIterations=G(r.maxIterations,2);var o=i.minChar=G(r.minChar,0),a=i.fontMeasureInfo=Ir(t),s=a.asciiCharWidth;i.placeholder=G(r.placeholder,"");for(var l=e=Math.max(0,e-1),u=0;u<o&&l>=s;u++)l-=s;var c=Mr(a,n);return c>l&&(n="",c=0),l=e-c,i.ellipsis=n,i.ellipsisWidth=c,i.contentWidth=l,i.containerWidth=e,i}function vN(e,t,n){var r=n.containerWidth,i=n.contentWidth,o=n.fontMeasureInfo;if(!r){e.textLine="",e.isTruncated=!1;return}var a=Mr(o,t);if(a<=r){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(a<=i||s>=n.maxIterations){t+=n.ellipsis;break}var l=s===0?V$(t,i,o):a>0?Math.floor(t.length*i/a):0;t=t.substr(0,l),a=Mr(o,t)}t===""&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function V$(e,t,n){for(var r=0,i=0,o=e.length;i<o&&r<t;i++)r+=gD(n,e.charCodeAt(i));return i}function yN(e,t,n,r){var i=HD(e),o=t.overflow,a=t.padding,s=a?a[1]+a[3]:0,l=a?a[0]+a[2]:0,u=t.font,c=o==="truncate",f=Ha(u),d=G(t.lineHeight,f),p=t.lineOverflow==="truncate",h=!1,m=t.width;m==null&&n!=null&&(m=n-s);var g=t.height;g==null&&r!=null&&(g=r-l);var v;m!=null&&(o==="break"||o==="breakAll")?v=i?xN(i,t.font,m,o==="breakAll",0).lines:[]:v=i?i.split(`
|
|
8
|
+
`):[];var y=v.length*d;if(g==null&&(g=y),y>g&&p){var _=Math.floor(g/d);h=h||v.length>_,v=v.slice(0,_),y=v.length*d}if(i&&c&&m!=null)for(var x=gN(m,u,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),D={},S=0;S<v.length;S++)vN(D,v[S],x),v[S]=D.textLine,h=h||D.isTruncated;for(var C=g,w=0,I=Ir(u),S=0;S<v.length;S++)w=Math.max(Mr(I,v[S]),w);m==null&&(m=w);var b=m;return C+=l,b+=s,{lines:v,height:g,outerWidth:b,outerHeight:C,lineHeight:d,calculatedLineHeight:f,contentWidth:w,contentHeight:y,width:m,isTruncated:h}}var U$=(function(){function e(){}return e})(),pN=(function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e})(),H$=(function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e})();function _N(e,t,n,r,i){var o=new H$,a=HD(e);if(!a)return o;var s=t.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,c=t.width;c==null&&n!=null&&(c=n-l);var f=t.height;f==null&&r!=null&&(f=r-u);for(var d=t.overflow,p=(d==="break"||d==="breakAll")&&c!=null?{width:c,accumWidth:0,breakAll:d==="breakAll"}:null,h=BD.lastIndex=0,m;(m=BD.exec(a))!=null;){var g=m.index;g>h&&VD(o,a.substring(h,g),t,p),VD(o,m[2],t,p,m[1]),h=BD.lastIndex}h<a.length&&VD(o,a.substring(h,a.length),t,p);var v=[],y=0,_=0,x=d==="truncate",D=t.lineOverflow==="truncate",S={};function C(Ie,kt,zt){Ie.width=kt,Ie.lineHeight=zt,y+=zt,_=Math.max(_,kt)}e:for(var w=0;w<o.lines.length;w++){for(var I=o.lines[w],b=0,T=0,A=0;A<I.tokens.length;A++){var M=I.tokens[A],N=M.styleName&&t.rich[M.styleName]||{},O=M.textPadding=N.padding,L=O?O[1]+O[3]:0,k=M.font=N.font||t.font;M.contentHeight=Ha(k);var B=G(N.height,M.contentHeight);if(M.innerHeight=B,O&&(B+=O[0]+O[2]),M.height=B,M.lineHeight=br(N.lineHeight,t.lineHeight,B),M.align=N&&N.align||i,M.verticalAlign=N&&N.verticalAlign||"middle",D&&f!=null&&y+M.lineHeight>f){var j=o.lines.length;A>0?(I.tokens=I.tokens.slice(0,A),C(I,T,b),o.lines=o.lines.slice(0,w+1)):o.lines=o.lines.slice(0,w),o.isTruncated=o.isTruncated||o.lines.length<j;break e}var Z=N.width,H=Z==null||Z==="auto";if(typeof Z=="string"&&Z.charAt(Z.length-1)==="%")M.percentWidth=Z,v.push(M),M.contentWidth=Mr(Ir(k),M.text);else{if(H){var K=N.backgroundColor,J=K&&K.image;J&&(J=dN(J),zl(J)&&(M.width=Math.max(M.width,J.width*B/J.height)))}var W=x&&c!=null?c-T:null;W!=null&&W<M.width?!H||W<L?(M.text="",M.width=M.contentWidth=0):(B$(S,M.text,W-L,k,t.ellipsis,{minChar:t.truncateMinChar}),M.text=S.text,o.isTruncated=o.isTruncated||S.isTruncated,M.width=M.contentWidth=Mr(Ir(k),M.text)):M.contentWidth=Mr(Ir(k),M.text)}M.width+=L,T+=M.width,N&&(b=Math.max(b,M.lineHeight))}C(I,T,b)}o.outerWidth=o.width=G(c,_),o.outerHeight=o.height=G(f,y),o.contentHeight=y,o.contentWidth=_,o.outerWidth+=l,o.outerHeight+=u;for(var w=0;w<v.length;w++){var M=v[w],de=M.percentWidth;M.width=parseInt(de,10)/100*o.width}return o}function VD(e,t,n,r,i){var o=t==="",a=i&&n.rich[i]||{},s=e.lines,l=a.font||n.font,u=!1,c,f;if(r){var d=a.padding,p=d?d[1]+d[3]:0;if(a.width!=null&&a.width!=="auto"){var h=Tr(a.width,r.width)+p;s.length>0&&h+r.accumWidth>r.width&&(c=t.split(`
|
|
9
|
+
`),u=!0),r.accumWidth=h}else{var m=xN(t,l,r.width,r.breakAll,r.accumWidth);r.accumWidth=m.accumWidth+p,f=m.linesWidths,c=m.lines}}c||(c=t.split(`
|
|
10
|
+
`));for(var g=Ir(l),v=0;v<c.length;v++){var y=c[v],_=new U$;if(_.styleName=i,_.text=y,_.isLineHolder=!y&&!o,typeof a.width=="number"?_.width=a.width:_.width=f?f[v]:Mr(g,y),!v&&!u){var x=(s[s.length-1]||(s[0]=new pN)).tokens,D=x.length;D===1&&x[0].isLineHolder?x[0]=_:(y||!D||o)&&x.push(_)}else s.push(new pN([_]))}}function z$(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var j$=Mn(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function G$(e){return z$(e)?!!j$[e]:!0}function xN(e,t,n,r,i){for(var o=[],a=[],s="",l="",u=0,c=0,f=Ir(t),d=0;d<e.length;d++){var p=e.charAt(d);if(p===`
|
|
11
|
+
`){l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0;continue}var h=gD(f,p.charCodeAt(0)),m=r?!1:!G$(p);if(o.length?c+h>n:i+c+h>n){c?(s||l)&&(m?(s||(s=l,l="",u=0,c=u),o.push(s),a.push(c-u),l+=p,u+=h,s="",c=u):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=p,c=h)):m?(o.push(l),a.push(u),l=p,u=h):(o.push(p),a.push(h));continue}c+=h,m?(l+=p,u+=h):(l&&(s+=l,l="",u=0),s+=p)}return l&&(s+=l),s&&(o.push(s),a.push(c)),o.length===1&&(c+=i),{accumWidth:c,lines:o,linesWidths:a}}function UD(e,t,n,r,i,o){if(e.baseX=n,e.baseY=r,e.outerWidth=e.outerHeight=null,!!t){var a=t.width*2,s=t.height*2;fe.set(hN,_o(n,a,i),Ai(r,s,o),a,s),fe.intersect(t,hN,null,mN);var l=mN.outIntersectRect;e.outerWidth=l.width,e.outerHeight=l.height,e.baseX=_o(l.x,l.width,i,!0),e.baseY=Ai(l.y,l.height,o,!0)}}var hN=new fe(0,0,0,0),mN={outIntersectRect:{},clamp:!0};function HD(e){return e!=null?e+="":e=""}function DN(e){var t=HD(e.text),n=e.font,r=Mr(Ir(n),t),i=Ha(n);return om(e,r,i,null)}function om(e,t,n,r){var i=new fe(_o(e.x||0,t,e.textAlign),Ai(e.y||0,n,e.textBaseline),t,n),o=r??(zD(e)?e.lineWidth:0);return o>0&&(i.x-=o/2,i.y-=o/2,i.width+=o,i.height+=o),i}function zD(e){var t=e.stroke;return t!=null&&t!=="none"&&e.lineWidth>0}var $D="__zr_style_"+Math.round(Math.random()*10),ei={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Wa={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ei[$D]=!0;var SN=["z","z2","invisible"],$$=["invisible"],W$=(function(e){R(t,e);function t(n){return e.call(this,n)||this}return t.prototype._init=function(n){for(var r=X(n),i=0;i<r.length;i++){var o=r[i];o==="style"?this.useStyle(n[o]):e.prototype.attrKV.call(this,o,n[o])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(n){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(n,r,i,o){var a=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&Y$(this,n,r)||a&&!a[0]&&!a[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(o&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(n,r){return this.rectContain(n,r)},t.prototype.traverse=function(n,r){n.call(r,this)},t.prototype.rectContain=function(n,r){var i=this.transformCoordToLocal(n,r),o=this.getBoundingRect();return o.contain(i[0],i[1])},t.prototype.getPaintRect=function(){var n=this._paintRect;if(!this._paintRect||this.__dirty){var r=this.transform,i=this.getBoundingRect(),o=this.style,a=o.shadowBlur||0,s=o.shadowOffsetX||0,l=o.shadowOffsetY||0;n=this._paintRect||(this._paintRect=new fe(0,0,0,0)),r?fe.applyTransform(n,i,r):n.copy(i),(a||s||l)&&(n.width+=a*2+Math.abs(s),n.height+=a*2+Math.abs(l),n.x=Math.min(n.x,n.x+s-a),n.y=Math.min(n.y,n.y+l-a));var u=this.dirtyRectTolerance;n.isZero()||(n.x=Math.floor(n.x-u),n.y=Math.floor(n.y-u),n.width=Math.ceil(n.width+1+u*2),n.height=Math.ceil(n.height+1+u*2))}return n},t.prototype.setPrevPaintRect=function(n){n?(this._prevPaintRect=this._prevPaintRect||new fe(0,0,0,0),this._prevPaintRect.copy(n)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(n){return this.animate("style",n)},t.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(n,r){n!=="style"?e.prototype.attrKV.call(this,n,r):this.style?this.setStyle(r):this.useStyle(r)},t.prototype.setStyle=function(n,r){return typeof n=="string"?this.style[n]=r:P(this.style,n),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(n){n||this.markRedraw(),this.__dirty|=Pa,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Pa)},t.prototype.styleUpdated=function(){this.__dirty&=~Pa},t.prototype.createStyle=function(n){return uo(ei,n)},t.prototype.useStyle=function(n){n[$D]||(n=this.createStyle(n)),this.style=n,this.dirtyStyle()},t.prototype._useHoverStyle=function(n){this.__hoverStyle=n},t.prototype.isStyleObject=function(n){return n[$D]},t.prototype._innerSaveToNormal=function(n){e.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.style&&!r.style&&(r.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(n,r,SN)},t.prototype._applyStateObj=function(n,r,i,o,a,s){e.prototype._applyStateObj.call(this,n,r,i,o,a,s);var l=!(r&&o),u=this.__inHover===kl,c;if(r&&r.style?a?o?c=r.style:(c=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(c,r.style)):(c=this._mergeStyle(this.createStyle(),o?this.style:i.style),this._mergeStyle(c,r.style)):l&&(c=i.style),c)if(a){var f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var d=X(f),p=0;p<d.length;p++){var h=d[p];h in c&&(c[h]=c[h],this.style[h]=f[h])}for(var m=X(c),p=0;p<m.length;p++){var h=m[p];this.style[h]=this.style[h]}this._transitionState(n,{style:c},s,this.getAnimationStyleProps())}else u?this._useHoverStyle(c):this.useStyle(c);if(!u)for(var g=this.__inHover?$$:SN,p=0;p<g.length;p++){var h=g[p];r&&r[h]!=null?this[h]=r[h]:l&&i[h]!=null&&(this[h]=i[h])}},t.prototype._mergeStates=function(n){for(var r=e.prototype._mergeStates.call(this,n),i,o=0;o<n.length;o++){var a=n[o];a.style&&(i=i||{},this._mergeStyle(i,a.style))}return i&&(r.style=i),r},t.prototype._mergeStyle=function(n,r){return P(n,r),n},t.prototype.getAnimationStyleProps=function(){return Wa},t.initDefaultProps=(function(){var n=t.prototype;n.type="displayable",n.invisible=!1,n.z=0,n.z2=0,n.zlevel=0,n.culling=!1,n.cursor="pointer",n.rectHover=!1,n.incremental=0,n._rect=null,n.dirtyRectTolerance=0,n.__dirty=Wt|Pa})(),t})(Wh),jD=new fe(0,0,0,0),GD=new fe(0,0,0,0);function Y$(e,t,n){return jD.copy(e.getBoundingRect()),e.transform&&jD.applyTransform(e.transform),GD.width=t,GD.height=n,!jD.intersect(GD)}var hn=W$;var nr=Math.min,rr=Math.max,WD=Math.sin,YD=Math.cos,Ya=Math.PI*2,am=co(),sm=co(),lm=co();function qD(e,t,n,r,i,o){i[0]=nr(e,n),i[1]=nr(t,r),o[0]=rr(e,n),o[1]=rr(t,r)}var CN=[],EN=[];function bN(e,t,n,r,i,o,a,s,l,u){var c=Eh,f=nt,d=c(e,n,i,a,CN);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var p=0;p<d;p++){var h=f(e,n,i,a,CN[p]);l[0]=nr(h,l[0]),u[0]=rr(h,u[0])}d=c(t,r,o,s,EN);for(var p=0;p<d;p++){var m=f(t,r,o,s,EN[p]);l[1]=nr(m,l[1]),u[1]=rr(m,u[1])}l[0]=nr(e,l[0]),u[0]=rr(e,u[0]),l[0]=nr(a,l[0]),u[0]=rr(a,u[0]),l[1]=nr(t,l[1]),u[1]=rr(t,u[1]),l[1]=nr(s,l[1]),u[1]=rr(s,u[1])}function wN(e,t,n,r,i,o,a,s){var l=bh,u=bt,c=rr(nr(l(e,n,i),1),0),f=rr(nr(l(t,r,o),1),0),d=u(e,n,i,c),p=u(t,r,o,f);a[0]=nr(e,i,d),a[1]=nr(t,o,p),s[0]=rr(e,i,d),s[1]=rr(t,o,p)}function TN(e,t,n,r,i,o,a,s,l){var u=bi,c=wi,f=Math.abs(i-o);if(f%Ya<1e-4&&f>1e-4){s[0]=e-n,s[1]=t-r,l[0]=e+n,l[1]=t+r;return}if(am[0]=YD(i)*n+e,am[1]=WD(i)*r+t,sm[0]=YD(o)*n+e,sm[1]=WD(o)*r+t,u(s,am,sm),c(l,am,sm),i=i%Ya,i<0&&(i=i+Ya),o=o%Ya,o<0&&(o=o+Ya),i>o&&!a?o+=Ya:i<o&&a&&(i+=Ya),a){var d=o;o=i,i=d}for(var p=0;p<o;p+=Math.PI/2)p>i&&(lm[0]=YD(p)*n+e,lm[1]=WD(p)*r+t,u(s,lm,s),c(l,lm,l))}var ze={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},qa=[],Za=[],ti=[],Co=[],ni=[],ri=[],ZD=Math.min,XD=Math.max,Xa=Math.cos,Ka=Math.sin,Li=Math.abs,JD=Math.PI,Eo=JD*2,KD=typeof Float32Array<"u",ef=[];function QD(e){var t=Math.round(e/JD*1e8)/1e8;return t%2*JD}function eS(e,t){var n=QD(e[0]);n<0&&(n+=Eo);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=Eo?i=n+Eo:t&&n-i>=Eo?i=n-Eo:!t&&n>i?i=n+(Eo-QD(n-i)):t&&n<i&&(i=n-(Eo-QD(i-n))),e[0]=n,e[1]=i}var q$=(function(){function e(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(t,n,r){r=r||0,r>0&&(this._ux=Li(r/dD/t)||0,this._uy=Li(r/dD/n)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,n){return this._drawPendingPt(),this.addData(ze.M,t,n),this._ctx&&this._ctx.moveTo(t,n),this._x0=t,this._y0=n,this._xi=t,this._yi=n,this},e.prototype.lineTo=function(t,n){var r=Li(t-this._xi),i=Li(n-this._yi),o=r>this._ux||i>this._uy;if(this.addData(ze.L,t,n),this._ctx&&o&&this._ctx.lineTo(t,n),o)this._xi=t,this._yi=n,this._pendingPtDist=0;else{var a=r*r+i*i;a>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=n,this._pendingPtDist=a)}return this},e.prototype.bezierCurveTo=function(t,n,r,i,o,a){return this._drawPendingPt(),this.addData(ze.C,t,n,r,i,o,a),this._ctx&&this._ctx.bezierCurveTo(t,n,r,i,o,a),this._xi=o,this._yi=a,this},e.prototype.quadraticCurveTo=function(t,n,r,i){return this._drawPendingPt(),this.addData(ze.Q,t,n,r,i),this._ctx&&this._ctx.quadraticCurveTo(t,n,r,i),this._xi=r,this._yi=i,this},e.prototype.arc=function(t,n,r,i,o,a){this._drawPendingPt(),ef[0]=i,ef[1]=o,eS(ef,a),i=ef[0],o=ef[1];var s=o-i;return this.addData(ze.A,t,n,r,r,i,s,0,a?0:1),this._ctx&&this._ctx.arc(t,n,r,i,o,a),this._xi=Xa(o)*r+t,this._yi=Ka(o)*r+n,this},e.prototype.arcTo=function(t,n,r,i,o){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,n,r,i,o),this},e.prototype.rect=function(t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,n,r,i),this.addData(ze.R,t,n,r,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(ze.Z);var t=this._ctx,n=this._x0,r=this._y0;return t&&t.closePath(),this._xi=n,this._yi=r,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){if(this._saveData){var n=t.length;!(this.data&&this.data.length===n)&&KD&&(this.data=new Float32Array(n));for(var r=0;r<n;r++)this.data[r]=t[r];this._len=n}},e.prototype.appendPath=function(t){if(this._saveData){t instanceof Array||(t=[t]);for(var n=t.length,r=0,i=this._len,o=0;o<n;o++)r+=t[o].len();var a=this.data;if(KD&&(a instanceof Float32Array||!a)&&(this.data=new Float32Array(i+r),i>0&&a))for(var s=0;s<i;s++)this.data[s]=a[s];for(var o=0;o<n;o++)for(var l=t[o].data,s=0;s<l.length;s++)this.data[i++]=l[s];this._len=i}},e.prototype.addData=function(t,n,r,i,o,a,s,l,u){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var f=0;f<arguments.length;f++)c[this._len++]=arguments[f]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],n=0;n<this._len;n++)t[n]=this.data[n];this.data=t}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,KD&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){ti[0]=ti[1]=ni[0]=ni[1]=Number.MAX_VALUE,Co[0]=Co[1]=ri[0]=ri[1]=-Number.MAX_VALUE;var t=this.data,n=0,r=0,i=0,o=0,a;for(a=0;a<this._len;){var s=t[a++],l=a===1;switch(l&&(n=t[a],r=t[a+1],i=n,o=r),s){case ze.M:n=i=t[a++],r=o=t[a++],ni[0]=i,ni[1]=o,ri[0]=i,ri[1]=o;break;case ze.L:qD(n,r,t[a],t[a+1],ni,ri),n=t[a++],r=t[a++];break;case ze.C:bN(n,r,t[a++],t[a++],t[a++],t[a++],t[a],t[a+1],ni,ri),n=t[a++],r=t[a++];break;case ze.Q:wN(n,r,t[a++],t[a++],t[a],t[a+1],ni,ri),n=t[a++],r=t[a++];break;case ze.A:var u=t[a++],c=t[a++],f=t[a++],d=t[a++],p=t[a++],h=t[a++]+p;a+=1;var m=!t[a++];l&&(i=Xa(p)*f+u,o=Ka(p)*d+c),TN(u,c,f,d,p,h,m,ni,ri),n=Xa(h)*f+u,r=Ka(h)*d+c;break;case ze.R:i=n=t[a++],o=r=t[a++];var g=t[a++],v=t[a++];qD(i,o,i+g,o+v,ni,ri);break;case ze.Z:n=i,r=o;break}bi(ti,ti,ni),wi(Co,Co,ri)}return a===0&&(ti[0]=ti[1]=Co[0]=Co[1]=0),new fe(ti[0],ti[1],Co[0]-ti[0],Co[1]-ti[1])},e.prototype._calculateLength=function(){var t=this.data,n=this._len,r=this._ux,i=this._uy,o=0,a=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,c=0,f=0,d=0;d<n;){var p=t[d++],h=d===1;h&&(o=t[d],a=t[d+1],s=o,l=a);var m=-1;switch(p){case ze.M:o=s=t[d++],a=l=t[d++];break;case ze.L:{var g=t[d++],v=t[d++],y=g-o,_=v-a;(Li(y)>r||Li(_)>i||d===n-1)&&(m=Math.sqrt(y*y+_*_),o=g,a=v);break}case ze.C:{var x=t[d++],D=t[d++],g=t[d++],v=t[d++],S=t[d++],C=t[d++];m=qA(o,a,x,D,g,v,S,C,10),o=S,a=C;break}case ze.Q:{var x=t[d++],D=t[d++],g=t[d++],v=t[d++];m=KA(o,a,x,D,g,v,10),o=g,a=v;break}case ze.A:var w=t[d++],I=t[d++],b=t[d++],T=t[d++],A=t[d++],M=t[d++],N=M+A;d+=1,h&&(s=Xa(A)*b+w,l=Ka(A)*T+I),m=XD(b,T)*ZD(Eo,Math.abs(M)),o=Xa(N)*b+w,a=Ka(N)*T+I;break;case ze.R:{s=o=t[d++],l=a=t[d++];var O=t[d++],L=t[d++];m=O*2+L*2;break}case ze.Z:{var y=s-o,_=l-a;m=Math.sqrt(y*y+_*_),o=s,a=l;break}}m>=0&&(u[f++]=m,c+=m)}return this._pathLen=c,c},e.prototype.rebuildPath=function(t,n){var r=this.data,i=this._ux,o=this._uy,a=this._len,s,l,u,c,f,d,p=n<1,h,m,g=0,v=0,y,_=0,x,D;if(!(p&&(this._pathSegLen||this._calculateLength(),h=this._pathSegLen,m=this._pathLen,y=n*m,!y)))e:for(var S=0;S<a;){var C=r[S++],w=S===1;switch(w&&(u=r[S],c=r[S+1],s=u,l=c),C!==ze.L&&_>0&&(t.lineTo(x,D),_=0),C){case ze.M:s=u=r[S++],l=c=r[S++],t.moveTo(u,c);break;case ze.L:{f=r[S++],d=r[S++];var I=Li(f-u),b=Li(d-c);if(I>i||b>o){if(p){var T=h[v++];if(g+T>y){var A=(y-g)/T;t.lineTo(u*(1-A)+f*A,c*(1-A)+d*A);break e}g+=T}t.lineTo(f,d),u=f,c=d,_=0}else{var M=I*I+b*b;M>_&&(x=f,D=d,_=M)}break}case ze.C:{var N=r[S++],O=r[S++],L=r[S++],k=r[S++],B=r[S++],j=r[S++];if(p){var T=h[v++];if(g+T>y){var A=(y-g)/T;Il(u,N,L,B,A,qa),Il(c,O,k,j,A,Za),t.bezierCurveTo(qa[1],Za[1],qa[2],Za[2],qa[3],Za[3]);break e}g+=T}t.bezierCurveTo(N,O,L,k,B,j),u=B,c=j;break}case ze.Q:{var N=r[S++],O=r[S++],L=r[S++],k=r[S++];if(p){var T=h[v++];if(g+T>y){var A=(y-g)/T;Ml(u,N,L,A,qa),Ml(c,O,k,A,Za),t.quadraticCurveTo(qa[1],Za[1],qa[2],Za[2]);break e}g+=T}t.quadraticCurveTo(N,O,L,k),u=L,c=k;break}case ze.A:var Z=r[S++],H=r[S++],K=r[S++],J=r[S++],W=r[S++],de=r[S++],Ie=r[S++],kt=!r[S++],zt=K>J?K:J,Ue=Li(K-J)>.001,at=W+de,me=!1;if(p){var T=h[v++];g+T>y&&(at=W+de*(y-g)/T,me=!0),g+=T}if(Ue&&t.ellipse?t.ellipse(Z,H,K,J,Ie,W,at,kt):t.arc(Z,H,zt,W,at,kt),me)break e;w&&(s=Xa(W)*K+Z,l=Ka(W)*J+H),u=Xa(at)*K+Z,c=Ka(at)*J+H;break;case ze.R:s=u=r[S],l=c=r[S+1],f=r[S++],d=r[S++];var Ae=r[S++],dr=r[S++];if(p){var T=h[v++];if(g+T>y){var St=y-g;t.moveTo(f,d),t.lineTo(f+ZD(St,Ae),d),St-=Ae,St>0&&t.lineTo(f+Ae,d+ZD(St,dr)),St-=dr,St>0&&t.lineTo(f+XD(Ae-St,0),d+dr),St-=Ae,St>0&&t.lineTo(f,d+XD(dr-St,0));break e}g+=T}t.rect(f,d,Ae,dr);break;case ze.Z:if(p){var T=h[v++];if(g+T>y){var A=(y-g)/T;t.lineTo(u*(1-A)+s*A,c*(1-A)+l*A);break e}g+=T}t.closePath(),u=s,c=l}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.prototype.canSave=function(){return!!this._saveData},e.CMD=ze,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e})(),en=q$;function Qa(e,t,n,r,i,o,a){if(i===0)return!1;var s=i,l=0,u=e;if(a>t+s&&a>r+s||a<t-s&&a<r-s||o>e+s&&o>n+s||o<e-s&&o<n-s)return!1;if(e!==n)l=(t-r)/(e-n),u=(e*r-n*t)/(e-n);else return Math.abs(o-e)<=s/2;var c=l*o-a+u,f=c*c/(l*l+1);return f<=s/2*s/2}function IN(e,t,n,r,i,o,a,s,l,u,c){if(l===0)return!1;var f=l;if(c>t+f&&c>r+f&&c>o+f&&c>s+f||c<t-f&&c<r-f&&c<o-f&&c<s-f||u>e+f&&u>n+f&&u>i+f&&u>a+f||u<e-f&&u<n-f&&u<i-f&&u<a-f)return!1;var d=YA(e,t,n,r,i,o,a,s,u,c,null);return d<=f/2}function MN(e,t,n,r,i,o,a,s,l){if(a===0)return!1;var u=a;if(l>t+u&&l>r+u&&l>o+u||l<t-u&&l<r-u&&l<o-u||s>e+u&&s>n+u&&s>i+u||s<e-u&&s<n-u&&s<i-u)return!1;var c=XA(e,t,n,r,i,o,s,l,null);return c<=u/2}var AN=Math.PI*2;function tf(e){return e%=AN,e<0&&(e+=AN),e}var nf=Math.PI*2;function NN(e,t,n,r,i,o,a,s,l){if(a===0)return!1;var u=a;s-=e,l-=t;var c=Math.sqrt(s*s+l*l);if(c-u>n||c+u<n)return!1;if(Math.abs(r-i)%nf<1e-4)return!0;if(o){var f=r;r=tf(i),i=tf(f)}else r=tf(r),i=tf(i);r>i&&(i+=nf);var d=Math.atan2(l,s);return d<0&&(d+=nf),d>=r&&d<=i||d+nf>=r&&d+nf<=i}function ki(e,t,n,r,i,o){if(o>t&&o>r||o<t&&o<r||r===t)return 0;var a=(o-t)/(r-t),s=r<t?1:-1;(a===1||a===0)&&(s=r<t?.5:-.5);var l=a*(n-e)+e;return l===i?1/0:l>i?s:0}var bo=en.CMD,Ja=Math.PI*2,J$=1e-4;function eW(e,t){return Math.abs(e-t)<J$}var tn=[-1,-1,-1],ir=[-1,-1];function tW(){var e=ir[0];ir[0]=ir[1],ir[1]=e}function nW(e,t,n,r,i,o,a,s,l,u){if(u>t&&u>r&&u>o&&u>s||u<t&&u<r&&u<o&&u<s)return 0;var c=La(t,r,o,s,u,tn);if(c===0)return 0;for(var f=0,d=-1,p=void 0,h=void 0,m=0;m<c;m++){var g=tn[m],v=g===0||g===1?.5:1,y=nt(e,n,i,a,g);y<l||(d<0&&(d=Eh(t,r,o,s,ir),ir[1]<ir[0]&&d>1&&tW(),p=nt(t,r,o,s,ir[0]),d>1&&(h=nt(t,r,o,s,ir[1]))),d===2?g<ir[0]?f+=p<t?v:-v:g<ir[1]?f+=h<p?v:-v:f+=s<h?v:-v:g<ir[0]?f+=p<t?v:-v:f+=s<p?v:-v)}return f}function rW(e,t,n,r,i,o,a,s){if(s>t&&s>r&&s>o||s<t&&s<r&&s<o)return 0;var l=ZA(t,r,o,s,tn);if(l===0)return 0;var u=bh(t,r,o);if(u>=0&&u<=1){for(var c=0,f=bt(t,r,o,u),d=0;d<l;d++){var p=tn[d]===0||tn[d]===1?.5:1,h=bt(e,n,i,tn[d]);h<a||(tn[d]<u?c+=f<t?p:-p:c+=o<f?p:-p)}return c}else{var p=tn[0]===0||tn[0]===1?.5:1,h=bt(e,n,i,tn[0]);return h<a?0:o<t?p:-p}}function iW(e,t,n,r,i,o,a,s){if(s-=t,s>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);tn[0]=-l,tn[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=Ja-1e-4){r=0,i=Ja;var c=o?1:-1;return a>=tn[0]+e&&a<=tn[1]+e?c:0}if(r>i){var f=r;r=i,i=f}r<0&&(r+=Ja,i+=Ja);for(var d=0,p=0;p<2;p++){var h=tn[p];if(h+e>a){var m=Math.atan2(s,h),c=o?1:-1;m<0&&(m=Ja+m),(m>=r&&m<=i||m+Ja>=r&&m+Ja<=i)&&(m>Math.PI/2&&m<Math.PI*1.5&&(c=-c),d+=c)}}return d}function ON(e,t,n,r,i){for(var o=e.data,a=e.len(),s=0,l=0,u=0,c=0,f=0,d,p,h=0;h<a;){var m=o[h++],g=h===1;switch(m===bo.M&&h>1&&(n||(s+=ki(l,u,c,f,r,i))),g&&(l=o[h],u=o[h+1],c=l,f=u),m){case bo.M:c=o[h++],f=o[h++],l=c,u=f;break;case bo.L:if(n){if(Qa(l,u,o[h],o[h+1],t,r,i))return!0}else s+=ki(l,u,o[h],o[h+1],r,i)||0;l=o[h++],u=o[h++];break;case bo.C:if(n){if(IN(l,u,o[h++],o[h++],o[h++],o[h++],o[h],o[h+1],t,r,i))return!0}else s+=nW(l,u,o[h++],o[h++],o[h++],o[h++],o[h],o[h+1],r,i)||0;l=o[h++],u=o[h++];break;case bo.Q:if(n){if(MN(l,u,o[h++],o[h++],o[h],o[h+1],t,r,i))return!0}else s+=rW(l,u,o[h++],o[h++],o[h],o[h+1],r,i)||0;l=o[h++],u=o[h++];break;case bo.A:var v=o[h++],y=o[h++],_=o[h++],x=o[h++],D=o[h++],S=o[h++];h+=1;var C=!!(1-o[h++]);d=Math.cos(D)*_+v,p=Math.sin(D)*x+y,g?(c=d,f=p):s+=ki(l,u,d,p,r,i);var w=(r-v)*x/_+v;if(n){if(NN(v,y,x,D,D+S,C,t,w,i))return!0}else s+=iW(v,y,x,D,D+S,C,w,i);l=Math.cos(D+S)*_+v,u=Math.sin(D+S)*x+y;break;case bo.R:c=l=o[h++],f=u=o[h++];var I=o[h++],b=o[h++];if(d=c+I,p=f+b,n){if(Qa(c,f,d,f,t,r,i)||Qa(d,f,d,p,t,r,i)||Qa(d,p,c,p,t,r,i)||Qa(c,p,c,f,t,r,i))return!0}else s+=ki(d,f,d,p,r,i),s+=ki(c,p,c,f,r,i);break;case bo.Z:if(n){if(Qa(l,u,c,f,t,r,i))return!0}else s+=ki(l,u,c,f,r,i);l=c,u=f;break}}return!n&&!eW(u,f)&&(s+=ki(l,u,c,f,r,i)||0),s!==0}function RN(e,t,n){return ON(e,0,!1,t,n)}function PN(e,t,n,r){return ON(e,t,!0,n,r)}var jl=he({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ei),aW={style:he({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Wa.style)},tS=er.concat(["invisible","culling","z","z2","zlevel","parent"]),sW=(function(e){R(t,e);function t(n){return e.call(this,n)||this}return t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(l){n.buildPath(l,n.shape)}),i.silent=!0;var o=i.style;for(var a in r)o[a]!==r[a]&&(o[a]=r[a]);o.fill=r.fill?r.decal:null,o.decal=null,o.shadowColor=null,r.strokeFirst&&(o.stroke=null);for(var s=0;s<tS.length;++s)i[tS[s]]=this[tS[s]];i.__dirty|=Wt}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(n){var r=X(n);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var o=0;o<r.length;o++){var a=r[o],s=n[a];a==="style"?this.style?P(this.style,s):this.useStyle(s):a==="shape"?P(this.shape,s):e.prototype.attrKV.call(this,a,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var n=this.style.fill;if(n!=="none"){if(U(n)){var r=Ol(n,0);return r>.5?Wc:r>.2?C1:Yc}else if(n)return Yc}return Wc},t.prototype.getInsideTextStroke=function(n){var r=this.style.fill;if(U(r)){var i=this.__zr,o=!!(i&&i.isDarkMode()),a=Ol(n,0)<$c;if(o===a)return r}},t.prototype.buildPath=function(n,r,i){},t.prototype.pathUpdated=function(){this.__dirty&=~po},t.prototype.getUpdatedPathProxy=function(n){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,n),this.path},t.prototype.createPathProxy=function(){this.path=new en(!1)},t.prototype.hasStroke=function(){var n=this.style,r=n.stroke;return!(r==null||r==="none"||!(n.lineWidth>0))},t.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},t.prototype.getBoundingRect=function(){var n=this._rect,r=this.style,i=!n;if(i){var o=!1;this.path||(o=!0,this.createPathProxy());var a=this.path;(o||this.__dirty&po)&&(a.beginPath(),this.buildPath(a,this.shape,!1),this.pathUpdated()),n=a.getBoundingRect()}if(this._rect=n,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=n.clone());if(this.__dirty||i){s.copy(n);var l=r.strokeNoScale?this.getLineScale():1,u=r.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return n},t.prototype.contain=function(n,r){var i=this.transformCoordToLocal(n,r),o=this.getBoundingRect(),a=this.style;if(n=i[0],r=i[1],o.contain(n,r)){var s=this.path;if(this.hasStroke()){var l=a.lineWidth,u=a.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),PN(s,l/u,n,r)))return!0}if(this.hasFill())return RN(s,n,r)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=po,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(n){return this.animate("shape",n)},t.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():n==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(n,r){n==="shape"?this.setShape(r):e.prototype.attrKV.call(this,n,r)},t.prototype.setShape=function(n,r){var i=this.shape;return i||(i=this.shape={}),typeof n=="string"?i[n]=r:P(i,n),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&po)},t.prototype.createStyle=function(n){return uo(jl,n)},t.prototype._innerSaveToNormal=function(n){e.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.shape&&!r.shape&&(r.shape=P({},this.shape))},t.prototype._applyStateObj=function(n,r,i,o,a,s){if(e.prototype._applyStateObj.call(this,n,r,i,o,a,s),this.__inHover!==kl){var l=!(r&&o),u;if(r&&r.shape?a?o?u=r.shape:(u=P({},i.shape),P(u,r.shape)):(u=P({},o?this.shape:i.shape),P(u,r.shape)):l&&(u=i.shape),u)if(a){this.shape=P({},this.shape);for(var c={},f=X(u),d=0;d<f.length;d++){var p=f[d];typeof u[p]=="object"?this.shape[p]=u[p]:c[p]=u[p]}this._transitionState(n,{shape:c},s)}else this.shape=u,this.dirtyShape()}},t.prototype._mergeStates=function(n){for(var r=e.prototype._mergeStates.call(this,n),i,o=0;o<n.length;o++){var a=n[o];a.shape&&(i=i||{},this._mergeStyle(i,a.shape))}return i&&(r.shape=i),r},t.prototype.getAnimationStyleProps=function(){return aW},t.prototype.isZeroArea=function(){return!1},t.extend=function(n){var r=(function(o){R(a,o);function a(s){var l=o.call(this,s)||this;return n.init&&n.init.call(l,s),l}return a.prototype.getDefaultStyle=function(){return ae(n.style)},a.prototype.getDefaultShape=function(){return ae(n.shape)},a})(t);for(var i in n)typeof n[i]=="function"&&(r.prototype[i]=n[i]);return r},t.initDefaultProps=(function(){var n=t.prototype;n.type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,n.__dirty=Wt|Pa|po})(),t})(hn),ie=sW;var lW=he({strokeFirst:!0,font:fn,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},jl),LN=(function(e){R(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return zD(this.style)},t.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},t.prototype.createStyle=function(n){return uo(lW,n)},t.prototype.setBoundingRect=function(n){this._rect=n},t.prototype.getBoundingRect=function(){return this._rect||(this._rect=DN(this.style)),this._rect},t.initDefaultProps=(function(){var n=t.prototype;n.dirtyRectTolerance=10})(),t})(hn);LN.prototype.type="tspan";var es=LN;var uW=he({x:0,y:0},ei),cW={style:he({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Wa.style)};function fW(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var kN=(function(e){R(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(n){return uo(uW,n)},t.prototype._getSize=function(n){var r=this.style,i=r[n];if(i!=null)return i;var o=fW(r.image)?r.image:this.__image;if(!o)return 0;var a=n==="width"?"height":"width",s=r[a];return s==null?o[n]:o[n]/o[a]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return cW},t.prototype.getBoundingRect=function(){var n=this.style;return this._rect||(this._rect=new fe(n.x||0,n.y||0,this.getWidth(),this.getHeight())),this._rect},t})(hn);kN.prototype.type="image";var _t=kN;function FN(e,t){var n=t.x,r=t.y,i=t.width,o=t.height,a=t.r,s,l,u,c;i<0&&(n=n+i,i=-i),o<0&&(r=r+o,o=-o),typeof a=="number"?s=l=u=c=a:a instanceof Array?a.length===1?s=l=u=c=a[0]:a.length===2?(s=u=a[0],l=c=a[1]):a.length===3?(s=a[0],l=c=a[1],u=a[2]):(s=a[0],l=a[1],u=a[2],c=a[3]):s=l=u=c=0;var f;s+l>i&&(f=s+l,s*=i/f,l*=i/f),u+c>i&&(f=u+c,u*=i/f,c*=i/f),l+u>o&&(f=l+u,l*=o/f,u*=o/f),s+c>o&&(f=s+c,s*=o/f,c*=o/f),e.moveTo(n+s,r),e.lineTo(n+i-l,r),l!==0&&e.arc(n+i-l,r+l,l,-Math.PI/2,0),e.lineTo(n+i,r+o-u),u!==0&&e.arc(n+i-u,r+o-u,u,0,Math.PI/2),e.lineTo(n+c,r+o),c!==0&&e.arc(n+c,r+o-c,c,Math.PI/2,Math.PI),e.lineTo(n,r+s),s!==0&&e.arc(n+s,r+s,s,Math.PI,Math.PI*1.5),e.closePath()}var Gl=Math.round;function um(e,t,n){if(t){var r=t.x1,i=t.x2,o=t.y1,a=t.y2;e.x1=r,e.x2=i,e.y1=o,e.y2=a;var s=n&&n.lineWidth;return s&&(Gl(r*2)===Gl(i*2)&&(e.x1=e.x2=wo(r,s,!0)),Gl(o*2)===Gl(a*2)&&(e.y1=e.y2=wo(o,s,!0))),e}}function cm(e,t,n){if(t){var r=t.x,i=t.y,o=t.width,a=t.height;e.x=r,e.y=i,e.width=o,e.height=a;var s=n&&n.lineWidth;return s&&(e.x=wo(r,s,!0),e.y=wo(i,s,!0),e.width=Math.max(wo(r+o,s,!1)-e.x,o===0?0:1),e.height=Math.max(wo(i+a,s,!1)-e.y,a===0?0:1)),e}}function wo(e,t,n){if(!t)return e;var r=Gl(e*2);return(r+Gl(t))%2===0?r/2:(r+(n?1:-1))/2}var hW=(function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e})();var mW={},BN=(function(e){R(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new hW},t.prototype.buildPath=function(n,r){var i,o,a,s;if(this.subPixelOptimize){var l=cm(mW,r,this.style);i=l.x,o=l.y,a=l.width,s=l.height,l.r=r.r,r=l}else i=r.x,o=r.y,a=r.width,s=r.height;r.r?FN(n,r):n.rect(i,o,a,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t})(ie);BN.prototype.type="rect";var $e=BN;var VN={fill:"#000"},UN=2,ii={},gW={style:he({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},Wa.style)},qN=(function(e){R(t,e);function t(n){var r=e.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=VN,r.attr(n),r}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var n=0;n<this._children.length;n++){var r=this._children[n];r.zlevel=this.zlevel,r.z=this.z,r.z2=this.z2,r.culling=this.culling,r.cursor=this.cursor,r.invisible=this.invisible}},t.prototype.updateTransform=function(){var n=this.innerTransformable;n?(n.updateTransform(),n.transform&&(this.transform=n.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(n){var r=this.innerTransformable;return r?r.getLocalTransform(n):e.prototype.getLocalTransform.call(this,n)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,_W(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(n){e.prototype.addSelfToZr.call(this,n);for(var r=0;r<this._children.length;r++)this._children[r].__zr=n},t.prototype.removeSelfFromZr=function(n){e.prototype.removeSelfFromZr.call(this,n);for(var r=0;r<this._children.length;r++)this._children[r].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var n=new fe(0,0,0,0),r=this._children,i=[],o=null,a=0;a<r.length;a++){var s=r[a],l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(n.copy(l),n.applyTransform(u),o=o||n.clone(),o.union(n)):(o=o||l.clone(),o.union(l))}this._rect=o||n}return this._rect},t.prototype.setDefaultTextStyle=function(n){this._defaultStyle=n||VN},t.prototype.setTextContent=function(n){},t.prototype._mergeStyle=function(n,r){if(!r)return n;var i=r.rich,o=n.rich||i&&{};return P(n,r),i&&o?(this._mergeRich(o,i),n.rich=o):o&&(n.rich=o),n},t.prototype._mergeRich=function(n,r){for(var i=X(r),o=0;o<i.length;o++){var a=i[o];n[a]=n[a]||{},P(n[a],r[a])}},t.prototype.getAnimationStyleProps=function(){return gW},t.prototype._getOrCreateChild=function(n){var r=this._children[this._childCursor];return(!r||!(r instanceof n))&&(r=new n),this._children[this._childCursor++]=r,r.__zr=this.__zr,r.parent=this,r},t.prototype._updatePlainTexts=function(){var n=this.style,r=n.font||fn,i=n.padding,o=this._defaultStyle,a=n.x||0,s=n.y||0,l=n.align||o.align||"left",u=n.verticalAlign||o.verticalAlign||"top";UD(ii,o.overflowRect,a,s,l,u),a=ii.baseX,s=ii.baseY;var c=YN(n),f=yN(c,n,ii.outerWidth,ii.outerHeight),d=nS(n),p=!!n.backgroundColor,h=f.outerHeight,m=f.outerWidth,g=f.lines,v=f.lineHeight;this.isTruncated=!!f.isTruncated;var y=a,_=Ai(s,f.contentHeight,u);if(d||i){var x=_o(a,m,l),D=Ai(s,h,u);d&&this._renderBackground(n,n,x,D,m,h)}_+=v/2,i&&(y=WN(a,l,i),u==="top"?_+=i[0]:u==="bottom"&&(_-=i[2]));for(var S=0,C=!1,w=!1,I=$N("fill"in n?n.fill:(w=!0,o.fill)),b=GN("stroke"in n?n.stroke:!p&&(!o.autoStroke||w)?(S=UN,C=!0,o.stroke):null),T=n.textShadowBlur>0,A=0;A<g.length;A++){var M=this._getOrCreateChild(es),N=M.createStyle();M.useStyle(N),N.text=g[A],N.x=y,N.y=_,l&&(N.textAlign=l),N.textBaseline="middle",N.opacity=n.opacity,N.strokeFirst=!0,T&&(N.shadowBlur=n.textShadowBlur||0,N.shadowColor=n.textShadowColor||"transparent",N.shadowOffsetX=n.textShadowOffsetX||0,N.shadowOffsetY=n.textShadowOffsetY||0),N.stroke=b,N.fill=I,b&&(N.lineWidth=n.lineWidth||S,N.lineDash=n.lineDash,N.lineDashOffset=n.lineDashOffset||0),N.font=r,zN(N,n),_+=v,M.setBoundingRect(om(N,f.contentWidth,f.calculatedLineHeight,C?0:null))}},t.prototype._updateRichTexts=function(){var n=this.style,r=this._defaultStyle,i=n.align||r.align,o=n.verticalAlign||r.verticalAlign,a=n.x||0,s=n.y||0;UD(ii,r.overflowRect,a,s,i,o),a=ii.baseX,s=ii.baseY;var l=YN(n),u=_N(l,n,ii.outerWidth,ii.outerHeight,i),c=u.width,f=u.outerWidth,d=u.outerHeight,p=n.padding;this.isTruncated=!!u.isTruncated;var h=_o(a,f,i),m=Ai(s,d,o),g=h,v=m;p&&(g+=p[3],v+=p[0]);var y=g+c;nS(n)&&this._renderBackground(n,n,h,m,f,d);for(var _=!!n.backgroundColor,x=0;x<u.lines.length;x++){for(var D=u.lines[x],S=D.tokens,C=S.length,w=D.lineHeight,I=D.width,b=0,T=g,A=y,M=C-1,N=void 0;b<C&&(N=S[b],!N.align||N.align==="left");)this._placeToken(N,n,w,v,T,"left",_),I-=N.width,T+=N.width,b++;for(;M>=0&&(N=S[M],N.align==="right");)this._placeToken(N,n,w,v,A,"right",_),I-=N.width,A-=N.width,M--;for(T+=(c-(T-g)-(y-A)-I)/2;b<=M;)N=S[b],this._placeToken(N,n,w,v,T+N.width/2,"center",_),T+=N.width,b++;v+=w}},t.prototype._placeToken=function(n,r,i,o,a,s,l){var u=r.rich[n.styleName]||{};u.text=n.text;var c=n.verticalAlign,f=o+i/2;c==="top"?f=o+n.height/2:c==="bottom"&&(f=o+i-n.height/2);var d=!n.isLineHolder&&nS(u);d&&this._renderBackground(u,r,s==="right"?a-n.width:s==="center"?a-n.width/2:a,f-n.height/2,n.width,n.height);var p=!!u.backgroundColor,h=n.textPadding;h&&(a=WN(a,s,h),f-=n.height/2-h[0]-n.innerHeight/2);var m=this._getOrCreateChild(es),g=m.createStyle();m.useStyle(g);var v=this._defaultStyle,y=!1,_=0,x=!1,D=$N("fill"in u?u.fill:"fill"in r?r.fill:(y=!0,v.fill)),S=GN("stroke"in u?u.stroke:"stroke"in r?r.stroke:!p&&!l&&(!v.autoStroke||y)?(_=UN,x=!0,v.stroke):null),C=u.textShadowBlur>0||r.textShadowBlur>0;g.text=n.text,g.x=a,g.y=f,C&&(g.shadowBlur=u.textShadowBlur||r.textShadowBlur||0,g.shadowColor=u.textShadowColor||r.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||r.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||r.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=n.font||fn,g.opacity=br(u.opacity,r.opacity,1),zN(g,u),S&&(g.lineWidth=br(u.lineWidth,r.lineWidth,_),g.lineDash=G(u.lineDash,r.lineDash),g.lineDashOffset=r.lineDashOffset||0,g.stroke=S),D&&(g.fill=D),m.setBoundingRect(om(g,n.contentWidth,n.contentHeight,x?0:null))},t.prototype._renderBackground=function(n,r,i,o,a,s){var l=n.backgroundColor,u=n.borderWidth,c=n.borderColor,f=l&&l.image,d=l&&!f,p=n.borderRadius,h=this,m,g;if(d||n.lineHeight||u&&c){m=this._getOrCreateChild($e),m.useStyle(m.createStyle()),m.style.fill=null;var v=m.shape;v.x=i,v.y=o,v.width=a,v.height=s,v.r=p,m.dirtyShape()}if(d){var y=m.style;y.fill=l||null,y.fillOpacity=G(n.fillOpacity,1)}else if(f){g=this._getOrCreateChild(_t),g.onload=function(){h.dirtyStyle()};var _=g.style;_.image=l.image,_.x=i,_.y=o,_.width=a,_.height=s}if(u&&c){var y=m.style;y.lineWidth=u,y.stroke=c,y.strokeOpacity=G(n.strokeOpacity,1),y.lineDash=n.borderDash,y.lineDashOffset=n.borderDashOffset||0,m.strokeContainThreshold=0,m.hasFill()&&m.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var x=(m||g).style;x.shadowBlur=n.shadowBlur||0,x.shadowColor=n.shadowColor||"transparent",x.shadowOffsetX=n.shadowOffsetX||0,x.shadowOffsetY=n.shadowOffsetY||0,x.opacity=br(n.opacity,r.opacity,1)},t.makeFont=function(n){var r="";return iS(n)&&(r=[n.fontStyle,n.fontWeight,rS(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),r&&Bt(r)||n.textFont||n.font},t})(hn),vW={left:!0,right:1,center:1},yW={top:1,bottom:1,middle:1},HN=["fontStyle","fontWeight","fontSize","fontFamily"];function rS(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?oh+"px":e+"px"}function zN(e,t){for(var n=0;n<HN.length;n++){var r=HN[n],i=t[r];i!=null&&(e[r]=i)}}function iS(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function _W(e){return jN(e),E(e.rich,jN),e}function jN(e){if(e){e.font=qN.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||vW[t]?t:"left";var n=e.verticalAlign;n==="center"&&(n="middle"),e.verticalAlign=n==null||yW[n]?n:"top";var r=e.padding;r&&(e.padding=Dl(e.padding))}}function GN(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function $N(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function WN(e,t,n){return t==="right"?e-n[1]:t==="center"?e+n[3]/2-n[1]/2:e+n[3]}function YN(e){var t=e.text;return t!=null&&(t+=""),t}function nS(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var We=qN;var Te=re(),rf=function(e,t,n,r){if(r){var i=Te(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType="chart",r.type==="group"&&r.traverse(function(o){var a=Te(o);a.seriesIndex=e,a.dataIndex=n,a.dataType=t,a.ssrType="chart"})}};var To="undefined",fm="series",dm=q(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),wt="original",xt="arrayRows",nn="objectRows",Rn="keyedColumns",Pn="typedArray",oS="unknown",Ln="column",oi="row";var xW=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],DW=(function(){function e(t){E(xW,function(n){this[n]=be(t[n],t)},this)}return e})();function ZN(e,t){return t.mainType===fm?e.getViewOfSeriesModel(t):e.getViewOfComponentModel(t)}var pm=DW;var XN=1,KN={},nO=re(),lS=re(),uS=0,of=1,af=2,or=["emphasis","blur","select"],cS=["normal","emphasis","blur","select"],SW=10,CW=9,Io="highlight",sf="downplay",lf="select",mm="unselect",uf="toggleSelect",gm="selectchanged";function $l(e){return e!=null&&e!=="none"}function vm(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function rO(e){vm(e,"emphasis",af)}function iO(e){e.hoverState===af&&vm(e,"normal",uS)}function fS(e){vm(e,"blur",of)}function oO(e){e.hoverState===of&&vm(e,"normal",uS)}function EW(e){e.selected=!0}function bW(e){e.selected=!1}function QN(e,t,n){t(e,n)}function Fi(e,t,n){QN(e,t,n),e.isGroup&&e.traverse(function(r){QN(r,t,n)})}function dS(e,t){switch(t){case"emphasis":e.hoverState=af;break;case"normal":e.hoverState=uS;break;case"blur":e.hoverState=of;break;case"select":e.selected=!0}}function wW(e,t,n,r){for(var i=e.style,o={},a=0;a<t.length;a++){var s=t[a],l=i[s];o[s]=l??(r&&r[s])}for(var a=0;a<e.animators.length;a++){var u=e.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&u.targetName==="style"&&u.saveTo(o,t)}return o}function TW(e,t,n,r){var i=n&&se(n,"select")>=0,o=!1;if(e instanceof ie){var a=nO(e),s=i&&a.selectFill||a.normalFill,l=i&&a.selectStroke||a.normalStroke;if($l(s)||$l(l)){r=r||{};var u=r.style||{};u.fill==="inherit"?(o=!0,r=P({},r),u=P({},u),u.fill=s):!$l(u.fill)&&$l(s)?(o=!0,r=P({},r),u=P({},u),u.fill=Vc(s)):!$l(u.stroke)&&$l(l)&&(o||(r=P({},r),u=P({},u)),u.stroke=Vc(l)),r.style=u}}if(r&&r.z2==null){o||(r=P({},r));var c=e.z2EmphasisLift;r.z2=e.z2+(c??SW)}return r}function IW(e,t,n){if(n&&n.z2==null){n=P({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??CW)}return n}function MW(e,t,n){var r=se(e.currentStates,t)>=0,i=e.style.opacity,o=r?null:wW(e,["opacity"],t,{opacity:1});n=n||{};var a=n.style||{};return a.opacity==null&&(n=P({},n),a=P({opacity:r?i:o.opacity*.1},a),n.style=a),n}function aS(e,t){var n=this.states[e];if(this.style){if(e==="emphasis")return TW(this,e,t,n);if(e==="blur")return MW(this,e,n);if(e==="select")return IW(this,e,n)}return n}function AW(e){e.stateProxy=aS;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=aS),n&&(n.stateProxy=aS)}function JN(e,t){!sO(e,t)&&!e.__highByOuter&&Fi(e,rO)}function eO(e,t){!sO(e,t)&&!e.__highByOuter&&Fi(e,iO)}function ts(e,t){e.__highByOuter|=1<<(t||0),Fi(e,rO)}function ns(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Fi(e,iO)}function aO(e){Fi(e,fS)}function pS(e){Fi(e,oO)}function hS(e){Fi(e,EW)}function mS(e){Fi(e,bW)}function sO(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function gS(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(i,o){var a=lS(o),s=ZN(e,o),l=i==="series";!l&&r.push(s),a.isBlured&&(s.group.traverse(function(u){oO(u)}),l&&n.push(o)),a.isBlured=!1}),E(r,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(n,!1,t)})}function sS(e,t,n,r){var i=r.getModel();n=n||"coordinateSystem";function o(u,c){for(var f=0;f<c.length;f++){var d=u.getItemGraphicEl(c[f]);d&&pS(d)}}if(e!=null&&!(!t||t==="none")){var a=i.getSeriesByIndex(e),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(u){var c=a===u,f=u.coordinateSystem;f&&f.master&&(f=f.master);var d=f&&s?f===s:c;if(!(n==="series"&&!c||n==="coordinateSystem"&&!d||t==="series"&&c)){var p=r.getViewOfSeriesModel(u);if(p.group.traverse(function(g){g.__highByOuter&&c&&t==="self"||fS(g)}),ct(t))o(u.getData(),t);else if(z(t))for(var h=X(t),m=0;m<h.length;m++)o(u.getData(h[m]),t[h[m]]);l.push(u),lS(u).isBlured=!0}}),i.eachComponent(function(u,c){if(u!=="series"){var f=r.getViewOfComponentModel(c);f&&f.toggleBlurSeries&&f.toggleBlurSeries(l,!0,i)}})}}function hm(e,t,n){if(!(e==null||t==null)){var r=n.getModel().getComponent(e,t);if(r){lS(r).isBlured=!0;var i=n.getViewOfComponentModel(r);!i||!i.focusBlurEnabled||i.group.traverse(function(o){fS(o)})}}}function lO(e,t,n){var r=e.seriesIndex,i=e.getData(t.dataType);if(i){var o=tr(i,t);o=(F(o)?o[0]:o)||0;var a=i.getItemGraphicEl(o);if(!a)for(var s=i.count(),l=0;!a&&l<s;)a=i.getItemGraphicEl(l++);if(a){var u=Te(a);sS(r,u.focus,u.blurScope,n)}else{var c=e.get(["emphasis","focus"]),f=e.get(["emphasis","blurScope"]);c!=null&&sS(r,c,f,n)}}}function ym(e,t,n,r){var i={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||n==null)return i;var o=r.getModel().getComponent(e,t);if(!o)return i;var a=r.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return i;for(var s=a.findHighDownDispatchers(n),l,u=0;u<s.length;u++)if(Te(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function uO(e,t,n){var r=Te(e),i=ym(r.componentMainType,r.componentIndex,r.componentHighDownName,n),o=i.dispatchers,a=i.focusSelf;o?(a&&hm(r.componentMainType,r.componentIndex,n),E(o,function(s){return JN(s,t)})):(sS(r.seriesIndex,r.focus,r.blurScope,n),r.focus==="self"&&hm(r.componentMainType,r.componentIndex,n),JN(e,t))}function cO(e,t,n){gS(n);var r=Te(e),i=ym(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?E(i,function(o){return eO(o,t)}):eO(e,t)}function fO(e,t,n){if(_m(t)){var r=t.dataType,i=e.getData(r),o=tr(i,t);F(o)||(o=[o]),e[t.type===uf?"toggleSelect":t.type===lf?"select":"unselect"](o,r)}}function vS(e){var t=e.getAllData();E(t,function(n){var r=n.data,i=n.type;r.eachItemGraphicEl(function(o,a){e.isSelected(a,i)?hS(o):mS(o)})})}function dO(e){var t=[];return e.eachSeries(function(n){var r=n.getAllData();E(r,function(i){var o=i.data,a=i.type,s=n.getSelectedDataIndices();if(s.length>0){var l={dataIndex:s,seriesIndex:n.seriesIndex};a!=null&&(l.dataType=a),t.push(l)}})}),t}function NW(e,t,n){pO(e,!0),Fi(e,AW),RW(e,t,n)}function OW(e){pO(e,!1)}function ai(e,t,n,r){r?OW(e):NW(e,t,n)}function RW(e,t,n){var r=Te(e);t!=null?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}var tO=["emphasis","blur","select"],PW={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Mo(e,t,n,r){n=n||"itemStyle";for(var i=0;i<tO.length;i++){var o=tO[i],a=t.getModel([o,n]),s=e.ensureState(o);s.style=r?r(a):a[PW[n]]()}}function pO(e,t){var n=t===!1,r=e;e.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!n||r.__highDownDispatcher)&&(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function cf(e){return!!(e&&e.__highDownDispatcher)}function hO(e){var t=KN[e];return t==null&&XN<=32&&(t=KN[e]=XN++),t}function _m(e){var t=e.type;return t===lf||t===mm||t===uf}function yS(e){var t=e.type;return t===Io||t===sf}function mO(e){var t=nO(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}var qt={};jV(qt,{Arc:()=>mf,BezierCurve:()=>IS,BoundingRect:()=>fe,Circle:()=>df,CompoundPath:()=>Em,Ellipse:()=>SS,Group:()=>ke,HOVER_LAYER_FOR_INCREMENTAL:()=>yf,HOVER_LAYER_FROM_THRESHOLD:()=>LS,HOVER_LAYER_NO:()=>PS,Image:()=>_t,IncrementalDisplayable:()=>zO,Line:()=>mn,LinearGradient:()=>wm,OrientedBoundingRect:()=>Am,Path:()=>ie,Point:()=>Be,Polygon:()=>wS,Polyline:()=>TS,RadialGradient:()=>UO,Rect:()=>$e,Ring:()=>ES,Sector:()=>Pr,Text:()=>We,WH:()=>ss,XY:()=>Bi,applyTransform:()=>Pm,calcZ2Range:()=>C8,clipPointsByRect:()=>_8,clipRectByRect:()=>x8,createIcon:()=>VS,decomposeTransform:()=>b8,ensureCopyRect:()=>Ql,ensureCopyTransform:()=>km,expandOrShrinkRect:()=>Xl,extendPath:()=>d8,extendShape:()=>c8,getCurrentCanvasPainter:()=>w8,getShapeClass:()=>kS,getTransform:()=>g8,groupTransition:()=>BS,initProps:()=>Tt,isBoundingRectAxisAligned:()=>Lm,isElementRemoved:()=>as,lineLineIntersect:()=>qO,linePolygonIntersect:()=>D8,makeImage:()=>FS,makePath:()=>Rm,mergePath:()=>p8,payloadDisableAnimation:()=>E8,registerShape:()=>Lr,removeElement:()=>ql,removeElementWithFadeOut:()=>Zl,resizePath:()=>YO,retrieveZInfo:()=>US,setTooltipConfig:()=>Kl,subPixelOptimize:()=>m8,subPixelOptimizeLine:()=>ls,subPixelOptimizeRect:()=>h8,transformDirection:()=>v8,traverseElements:()=>us,traverseUpdateZ:()=>HS,updateProps:()=>et});var Wl=en.CMD,LW=[[],[],[]],gO=Math.sqrt,kW=Math.atan2;function _S(e,t){if(t){var n=e.data,r=e.len(),i,o,a,s,l,u,c=Wl.M,f=Wl.C,d=Wl.L,p=Wl.R,h=Wl.A,m=Wl.Q;for(a=0,s=0;a<r;){switch(i=n[a++],s=a,o=0,i){case c:o=1;break;case d:o=1;break;case f:o=3;break;case m:o=2;break;case h:var g=t[4],v=t[5],y=gO(t[0]*t[0]+t[1]*t[1]),_=gO(t[2]*t[2]+t[3]*t[3]),x=kW(-t[1]/_,t[0]/y);n[a]*=y,n[a++]+=g,n[a]*=_,n[a++]+=v,n[a++]*=y,n[a++]*=_,n[a++]+=x,n[a++]+=x,a+=2,s=a;break;case p:u[0]=n[a++],u[1]=n[a++],Vt(u,u,t),n[s++]=u[0],n[s++]=u[1],u[0]+=n[a++],u[1]+=n[a++],Vt(u,u,t),n[s++]=u[0],n[s++]=u[1]}for(l=0;l<o;l++){var D=LW[l];D[0]=n[a++],D[1]=n[a++],Vt(D,D,t),n[s++]=D[0],n[s++]=D[1]}}e.increaseVersion()}}var xS=Math.sqrt,xm=Math.sin,Dm=Math.cos,ff=Math.PI;function vO(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function DS(e,t){return(e[0]*t[0]+e[1]*t[1])/(vO(e)*vO(t))}function yO(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(DS(e,t))}function _O(e,t,n,r,i,o,a,s,l,u,c){var f=l*(ff/180),d=Dm(f)*(e-n)/2+xm(f)*(t-r)/2,p=-1*xm(f)*(e-n)/2+Dm(f)*(t-r)/2,h=d*d/(a*a)+p*p/(s*s);h>1&&(a*=xS(h),s*=xS(h));var m=(i===o?-1:1)*xS((a*a*(s*s)-a*a*(p*p)-s*s*(d*d))/(a*a*(p*p)+s*s*(d*d)))||0,g=m*a*p/s,v=m*-s*d/a,y=(e+n)/2+Dm(f)*g-xm(f)*v,_=(t+r)/2+xm(f)*g+Dm(f)*v,x=yO([1,0],[(d-g)/a,(p-v)/s]),D=[(d-g)/a,(p-v)/s],S=[(-1*d-g)/a,(-1*p-v)/s],C=yO(D,S);if(DS(D,S)<=-1&&(C=ff),DS(D,S)>=1&&(C=0),C<0){var w=Math.round(C/ff*1e6)/1e6;C=ff*2+w%2*ff}c.addData(u,y,_,a,s,x,C,f,o)}var FW=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,BW=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function VW(e){var t=new en;if(!e)return t;var n=0,r=0,i=n,o=r,a,s=en.CMD,l=e.match(FW);if(!l)return t;for(var u=0;u<l.length;u++){for(var c=l[u],f=c.charAt(0),d=void 0,p=c.match(BW)||[],h=p.length,m=0;m<h;m++)p[m]=parseFloat(p[m]);for(var g=0;g<h;){var v=void 0,y=void 0,_=void 0,x=void 0,D=void 0,S=void 0,C=void 0,w=n,I=r,b=void 0,T=void 0;switch(f){case"l":n+=p[g++],r+=p[g++],d=s.L,t.addData(d,n,r);break;case"L":n=p[g++],r=p[g++],d=s.L,t.addData(d,n,r);break;case"m":n+=p[g++],r+=p[g++],d=s.M,t.addData(d,n,r),i=n,o=r,f="l";break;case"M":n=p[g++],r=p[g++],d=s.M,t.addData(d,n,r),i=n,o=r,f="L";break;case"h":n+=p[g++],d=s.L,t.addData(d,n,r);break;case"H":n=p[g++],d=s.L,t.addData(d,n,r);break;case"v":r+=p[g++],d=s.L,t.addData(d,n,r);break;case"V":r=p[g++],d=s.L,t.addData(d,n,r);break;case"C":d=s.C,t.addData(d,p[g++],p[g++],p[g++],p[g++],p[g++],p[g++]),n=p[g-2],r=p[g-1];break;case"c":d=s.C,t.addData(d,p[g++]+n,p[g++]+r,p[g++]+n,p[g++]+r,p[g++]+n,p[g++]+r),n+=p[g-2],r+=p[g-1];break;case"S":v=n,y=r,b=t.len(),T=t.data,a===s.C&&(v+=n-T[b-4],y+=r-T[b-3]),d=s.C,w=p[g++],I=p[g++],n=p[g++],r=p[g++],t.addData(d,v,y,w,I,n,r);break;case"s":v=n,y=r,b=t.len(),T=t.data,a===s.C&&(v+=n-T[b-4],y+=r-T[b-3]),d=s.C,w=n+p[g++],I=r+p[g++],n+=p[g++],r+=p[g++],t.addData(d,v,y,w,I,n,r);break;case"Q":w=p[g++],I=p[g++],n=p[g++],r=p[g++],d=s.Q,t.addData(d,w,I,n,r);break;case"q":w=p[g++]+n,I=p[g++]+r,n+=p[g++],r+=p[g++],d=s.Q,t.addData(d,w,I,n,r);break;case"T":v=n,y=r,b=t.len(),T=t.data,a===s.Q&&(v+=n-T[b-4],y+=r-T[b-3]),n=p[g++],r=p[g++],d=s.Q,t.addData(d,v,y,n,r);break;case"t":v=n,y=r,b=t.len(),T=t.data,a===s.Q&&(v+=n-T[b-4],y+=r-T[b-3]),n+=p[g++],r+=p[g++],d=s.Q,t.addData(d,v,y,n,r);break;case"A":_=p[g++],x=p[g++],D=p[g++],S=p[g++],C=p[g++],w=n,I=r,n=p[g++],r=p[g++],d=s.A,_O(w,I,n,r,S,C,_,x,D,d,t);break;case"a":_=p[g++],x=p[g++],D=p[g++],S=p[g++],C=p[g++],w=n,I=r,n+=p[g++],r+=p[g++],d=s.A,_O(w,I,n,r,S,C,_,x,D,d,t);break}}(f==="z"||f==="Z")&&(d=s.Z,t.addData(d),n=i,r=o),a=d}return t.toStatic(),t}var xO=(function(e){R(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(n){},t})(ie);function DO(e){return e.setData!=null}function SO(e,t){var n=VW(e),r=P({},t);return r.buildPath=function(i){var o=DO(i);if(o&&i.canSave()){i.appendPath(n);var a=i.getContext();a&&i.rebuildPath(a,1)}else{var a=o?i.getContext():i;a&&n.rebuildPath(a,1)}},r.applyTransform=function(i){_S(n,i),this.dirtyShape()},r}function CO(e,t){return new xO(SO(e,t))}function EO(e,t){var n=SO(e,t),r=(function(i){R(o,i);function o(a){var s=i.call(this,a)||this;return s.applyTransform=n.applyTransform,s.buildPath=n.buildPath,s}return o})(xO);return r}function bO(e,t){for(var n=[],r=e.length,i=0;i<r;i++){var o=e[i];n.push(o.getUpdatedPathProxy(!0))}var a=new ie(t);return a.createPathProxy(),a.buildPath=function(s){if(DO(s)){s.appendPath(n);var l=s.getContext();l&&s.rebuildPath(l,1)}},a}var HW=(function(){function e(){this.cx=0,this.cy=0,this.r=0}return e})();var wO=(function(e){R(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new HW},t.prototype.buildPath=function(n,r){n.moveTo(r.cx+r.r,r.cy),n.arc(r.cx,r.cy,r.r,0,Math.PI*2)},t})(ie);wO.prototype.type="circle";var df=wO;var zW=(function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e})();var TO=(function(e){R(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new zW},t.prototype.buildPath=function(n,r){var i=.5522848,o=r.cx,a=r.cy,s=r.rx,l=r.ry,u=s*i,c=l*i;n.moveTo(o-s,a),n.bezierCurveTo(o-s,a-c,o-u,a-l,o,a-l),n.bezierCurveTo(o+u,a-l,o+s,a-c,o+s,a),n.bezierCurveTo(o+s,a+c,o+u,a+l,o,a+l),n.bezierCurveTo(o-u,a+l,o-s,a+c,o-s,a),n.closePath()},t})(ie);TO.prototype.type="ellipse";var SS=TO;var MO=Math.PI,CS=MO*2,rs=Math.sin,Yl=Math.cos,jW=Math.acos,Yt=Math.atan2,IO=Math.abs,hf=Math.sqrt,pf=Math.max,si=Math.min,Rr=1e-4;function GW(e,t,n,r,i,o,a,s){var l=n-e,u=r-t,c=a-i,f=s-o,d=f*l-c*u;if(!(d*d<Rr))return d=(c*(t-o)-f*(e-i))/d,[e+d*l,t+d*u]}function Sm(e,t,n,r,i,o,a){var s=e-n,l=t-r,u=(a?o:-o)/hf(s*s+l*l),c=u*l,f=-u*s,d=e+c,p=t+f,h=n+c,m=r+f,g=(d+h)/2,v=(p+m)/2,y=h-d,_=m-p,x=y*y+_*_,D=i-o,S=d*m-h*p,C=(_<0?-1:1)*hf(pf(0,D*D*x-S*S)),w=(S*_-y*C)/x,I=(-S*y-_*C)/x,b=(S*_+y*C)/x,T=(-S*y+_*C)/x,A=w-g,M=I-v,N=b-g,O=T-v;return A*A+M*M>N*N+O*O&&(w=b,I=T),{cx:w,cy:I,x0:-c,y0:-f,x1:w*(i/D-1),y1:I*(i/D-1)}}function $W(e){var t;if(F(e)){var n=e.length;if(!n)return e;n===1?t=[e[0],e[0],0,0]:n===2?t=[e[0],e[0],e[1],e[1]]:n===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function AO(e,t){var n,r=pf(t.r,0),i=pf(t.r0||0,0),o=r>0,a=i>0;if(!(!o&&!a)){if(o||(r=i,i=0),i>r){var s=r;r=i,i=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var c=t.cx,f=t.cy,d=!!t.clockwise,p=IO(u-l),h=p>CS&&p%CS;if(h>Rr&&(p=h),!(r>Rr))e.moveTo(c,f);else if(p>CS-Rr)e.moveTo(c+r*Yl(l),f+r*rs(l)),e.arc(c,f,r,l,u,!d),i>Rr&&(e.moveTo(c+i*Yl(u),f+i*rs(u)),e.arc(c,f,i,u,l,d));else{var m=void 0,g=void 0,v=void 0,y=void 0,_=void 0,x=void 0,D=void 0,S=void 0,C=void 0,w=void 0,I=void 0,b=void 0,T=void 0,A=void 0,M=void 0,N=void 0,O=r*Yl(l),L=r*rs(l),k=i*Yl(u),B=i*rs(u),j=p>Rr;if(j){var Z=t.cornerRadius;Z&&(n=$W(Z),m=n[0],g=n[1],v=n[2],y=n[3]);var H=IO(r-i)/2;if(_=si(H,v),x=si(H,y),D=si(H,m),S=si(H,g),I=C=pf(_,x),b=w=pf(D,S),(C>Rr||w>Rr)&&(T=r*Yl(u),A=r*rs(u),M=i*Yl(l),N=i*rs(l),p<MO)){var K=GW(O,L,M,N,T,A,k,B);if(K){var J=O-K[0],W=L-K[1],de=T-K[0],Ie=A-K[1],kt=1/rs(jW((J*de+W*Ie)/(hf(J*J+W*W)*hf(de*de+Ie*Ie)))/2),zt=hf(K[0]*K[0]+K[1]*K[1]);I=si(C,(r-zt)/(kt+1)),b=si(w,(i-zt)/(kt-1))}}}if(!j)e.moveTo(c+O,f+L);else if(I>Rr){var Ue=si(v,I),at=si(y,I),me=Sm(M,N,O,L,r,Ue,d),Ae=Sm(T,A,k,B,r,at,d);e.moveTo(c+me.cx+me.x0,f+me.cy+me.y0),I<C&&Ue===at?e.arc(c+me.cx,f+me.cy,I,Yt(me.y0,me.x0),Yt(Ae.y0,Ae.x0),!d):(Ue>0&&e.arc(c+me.cx,f+me.cy,Ue,Yt(me.y0,me.x0),Yt(me.y1,me.x1),!d),e.arc(c,f,r,Yt(me.cy+me.y1,me.cx+me.x1),Yt(Ae.cy+Ae.y1,Ae.cx+Ae.x1),!d),at>0&&e.arc(c+Ae.cx,f+Ae.cy,at,Yt(Ae.y1,Ae.x1),Yt(Ae.y0,Ae.x0),!d))}else e.moveTo(c+O,f+L),e.arc(c,f,r,l,u,!d);if(!(i>Rr)||!j)e.lineTo(c+k,f+B);else if(b>Rr){var Ue=si(m,b),at=si(g,b),me=Sm(k,B,T,A,i,-at,d),Ae=Sm(O,L,M,N,i,-Ue,d);e.lineTo(c+me.cx+me.x0,f+me.cy+me.y0),b<w&&Ue===at?e.arc(c+me.cx,f+me.cy,b,Yt(me.y0,me.x0),Yt(Ae.y0,Ae.x0),!d):(at>0&&e.arc(c+me.cx,f+me.cy,at,Yt(me.y0,me.x0),Yt(me.y1,me.x1),!d),e.arc(c,f,i,Yt(me.cy+me.y1,me.cx+me.x1),Yt(Ae.cy+Ae.y1,Ae.cx+Ae.x1),d),Ue>0&&e.arc(c+Ae.cx,f+Ae.cy,Ue,Yt(Ae.y1,Ae.x1),Yt(Ae.y0,Ae.x0),!d))}else e.lineTo(c+k,f+B),e.arc(c,f,i,u,l,d)}e.closePath()}}}var YW=(function(){function e(){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 e})();var NO=(function(e){R(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new YW},t.prototype.buildPath=function(n,r){AO(n,r)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t})(ie);NO.prototype.type="sector";var Pr=NO;var qW=(function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e})();var OO=(function(e){R(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new qW},t.prototype.buildPath=function(n,r){var i=r.cx,o=r.cy,a=Math.PI*2;n.moveTo(i+r.r,o),n.arc(i,o,r.r,0,a,!1),n.moveTo(i+r.r0,o),n.arc(i,o,r.r0,0,a,!0)},t})(ie);OO.prototype.type="ring";var ES=OO;function bS(e,t,n,r){var i=[],o=[],a=[],s=[],l,u,c,f;if(r){c=[1/0,1/0],f=[-1/0,-1/0];for(var d=0,p=e.length;d<p;d++)bi(c,c,e[d]),wi(f,f,e[d]);bi(c,c,r[0]),wi(f,f,r[1])}for(var d=0,p=e.length;d<p;d++){var h=e[d];if(n)l=e[d?d-1:p-1],u=e[(d+1)%p];else if(d===0||d===p-1){i.push(gA(e[d]));continue}else l=e[d-1],u=e[d+1];vA(o,u,l),dh(o,o,t);var m=ph(h,l),g=ph(h,u),v=m+g;v!==0&&(m/=v,g/=v),dh(a,o,-m),dh(s,o,g);var y=Mx([],h,a),_=Mx([],h,s);r&&(wi(y,y,c),bi(y,y,f),wi(_,_,c),bi(_,_,f)),i.push(y),i.push(_)}return n&&i.push(i.shift()),i}function Cm(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r){var o=bS(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var a=i.length,s=0;s<(n?a:a-1);s++){var l=o[s*2],u=o[s*2+1],c=i[(s+1)%a];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,f=i.length;s<f;s++)e.lineTo(i[s][0],i[s][1])}n&&e.closePath()}}var ZW=(function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e})();var PO=(function(e){R(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new ZW},t.prototype.buildPath=function(n,r){Cm(n,r,!0)},t})(ie);PO.prototype.type="polygon";var wS=PO;var XW=(function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e})();var LO=(function(e){R(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new XW},t.prototype.buildPath=function(n,r){Cm(n,r,!1)},t})(ie);LO.prototype.type="polyline";var TS=LO;var KW={},QW=(function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e})();var kO=(function(e){R(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new QW},t.prototype.buildPath=function(n,r){var i,o,a,s;if(this.subPixelOptimize){var l=um(KW,r,this.style);i=l.x1,o=l.y1,a=l.x2,s=l.y2}else i=r.x1,o=r.y1,a=r.x2,s=r.y2;var u=r.percent;u!==0&&(n.moveTo(i,o),u<1&&(a=i*(1-u)+a*u,s=o*(1-u)+s*u),n.lineTo(a,s))},t.prototype.pointAt=function(n){var r=this.shape;return[r.x1*(1-n)+r.x2*n,r.y1*(1-n)+r.y2*n]},t})(ie);kO.prototype.type="line";var mn=kO;var gn=[],JW=(function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e})();function FO(e,t,n){var r=e.cpx2,i=e.cpy2;return r!=null||i!=null?[(n?Yx:nt)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?Yx:nt)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?qx:bt)(e.x1,e.cpx1,e.x2,t),(n?qx:bt)(e.y1,e.cpy1,e.y2,t)]}var BO=(function(e){R(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new JW},t.prototype.buildPath=function(n,r){var i=r.x1,o=r.y1,a=r.x2,s=r.y2,l=r.cpx1,u=r.cpy1,c=r.cpx2,f=r.cpy2,d=r.percent;d!==0&&(n.moveTo(i,o),c==null||f==null?(d<1&&(Ml(i,l,a,d,gn),l=gn[1],a=gn[2],Ml(o,u,s,d,gn),u=gn[1],s=gn[2]),n.quadraticCurveTo(l,u,a,s)):(d<1&&(Il(i,l,c,a,d,gn),l=gn[1],c=gn[2],a=gn[3],Il(o,u,f,s,d,gn),u=gn[1],f=gn[2],s=gn[3]),n.bezierCurveTo(l,u,c,f,a,s)))},t.prototype.pointAt=function(n){return FO(this.shape,n,!1)},t.prototype.tangentAt=function(n){var r=FO(this.shape,n,!0);return yA(r,r)},t})(ie);BO.prototype.type="bezier-curve";var IS=BO;var e8=(function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e})();var VO=(function(e){R(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new e8},t.prototype.buildPath=function(n,r){var i=r.cx,o=r.cy,a=Math.max(r.r,0),s=r.startAngle,l=r.endAngle,u=r.clockwise,c=Math.cos(s),f=Math.sin(s);n.moveTo(c*a+i,f*a+o),n.arc(i,o,a,s,l,!u)},t})(ie);VO.prototype.type="arc";var mf=VO;var t8=(function(e){R(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="compound",n}return t.prototype._updatePathDirty=function(){for(var n=this.shape.paths,r=this.shapeChanged(),i=0;i<n.length;i++)r=r||n[i].shapeChanged();r&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var n=this.shape.paths||[],r=this.getGlobalScale(),i=0;i<n.length;i++)n[i].path||n[i].createPathProxy(),n[i].path.setScale(r[0],r[1],n[i].segmentIgnoreThreshold)},t.prototype.buildPath=function(n,r){for(var i=r.paths||[],o=0;o<i.length;o++)i[o].buildPath(n,i[o].shape,!0)},t.prototype.afterBrush=function(){for(var n=this.shape.paths||[],r=0;r<n.length;r++)n[r].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),ie.prototype.getBoundingRect.call(this)},t})(ie),Em=t8;var n8=(function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,n){this.colorStops.push({offset:t,color:n})},e})(),bm=n8;var r8=(function(e){R(t,e);function t(n,r,i,o,a,s){var l=e.call(this,a)||this;return l.x=n??0,l.y=r??0,l.x2=i??1,l.y2=o??0,l.type="linear",l.global=s||!1,l}return t})(bm),wm=r8;var i8=(function(e){R(t,e);function t(n,r,i,o,a){var s=e.call(this,o)||this;return s.x=n??.5,s.y=r??.5,s.r=i??.5,s.type="radial",s.global=a||!1,s}return t})(bm),UO=i8;var MS=Math.min,o8=Math.max,Tm=Math.abs,is=[0,0],os=[0,0],Rt=Hx(),Im=Rt.minTv,Mm=Rt.maxTv,a8=(function(){function e(t,n){this._corners=[],this._axes=[],this._origin=[0,0];for(var r=0;r<4;r++)this._corners[r]=new Be;for(var r=0;r<2;r++)this._axes[r]=new Be;t&&this.fromBoundingRect(t,n)}return e.prototype.fromBoundingRect=function(t,n){var r=this._corners,i=this._axes,o=t.x,a=t.y,s=o+t.width,l=a+t.height;if(r[0].set(o,a),r[1].set(s,a),r[2].set(s,l),r[3].set(o,l),n)for(var u=0;u<4;u++)r[u].transform(n);Be.sub(i[0],r[1],r[0]),Be.sub(i[1],r[3],r[0]),i[0].normalize(),i[1].normalize();for(var u=0;u<2;u++)this._origin[u]=i[u].dot(r[0])},e.prototype.intersect=function(t,n,r){var i=!0,o=!n;return n&&Be.set(n,0,0),Rt.reset(r,!o),!this._intersectCheckOneSide(this,t,o,1)&&(i=!1,o)||!this._intersectCheckOneSide(t,this,o,-1)&&(i=!1,o)||!o&&!Rt.negativeSize&&Be.copy(n,i?Rt.useDir?Rt.dirMinTv:Im:Mm),i},e.prototype._intersectCheckOneSide=function(t,n,r,i){for(var o=!0,a=0;a<2;a++){var s=t._axes[a];if(t._getProjMinMaxOnAxis(a,t._corners,is),t._getProjMinMaxOnAxis(a,n._corners,os),Rt.negativeSize||is[1]<os[0]||is[0]>os[1]){if(o=!1,Rt.negativeSize||r)return o;var l=Tm(os[0]-is[1]),u=Tm(is[0]-os[1]);MS(l,u)>Mm.len()&&(l<u?Be.scale(Mm,s,-l*i):Be.scale(Mm,s,u*i))}else if(!r){var l=Tm(os[0]-is[1]),u=Tm(is[0]-os[1]);(Rt.useDir||MS(l,u)<Im.len())&&((l<u||!Rt.bidirectional)&&(Be.scale(Im,s,l*i),Rt.useDir&&Rt.calcDirMTV()),(l>=u||!Rt.bidirectional)&&(Be.scale(Im,s,-u*i),Rt.useDir&&Rt.calcDirMTV()))}}return o},e.prototype._getProjMinMaxOnAxis=function(t,n,r){for(var i=this._axes[t],o=this._origin,a=n[0].dot(i)+o[t],s=a,l=a,u=1;u<n.length;u++){var c=n[u].dot(i)+o[t];s=MS(c,s),l=o8(c,l)}r[0]=s+Rt.touchThreshold,r[1]=l-Rt.touchThreshold,Rt.negativeSize=r[1]<r[0]},e})(),Am=a8;var HO=1;var s8=[],l8=(function(e){R(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.notClear=!0,n.incremental=HO,n._displayables=[],n._temporaryDisplayables=[],n._cursor=0,n}return t.prototype.traverse=function(n,r){n.call(r,this)},t.prototype.useStyle=function(){this.style={}},t.prototype._useHoverStyle=function(){this.__hoverStyle=null},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(n,r){r?this._temporaryDisplayables.push(n):this._displayables.push(n),this.markRedraw()},t.prototype.addDisplayables=function(n,r){r=r||!1;for(var i=0;i<n.length;i++)this.addDisplayable(n[i],r)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(n){for(var r=this._cursor;r<this._displayables.length;r++)n&&n(this._displayables[r]);for(var r=0;r<this._temporaryDisplayables.length;r++)n&&n(this._temporaryDisplayables[r])},t.prototype.update=function(){this.updateTransform();for(var n=this._cursor;n<this._displayables.length;n++){var r=this._displayables[n];r.parent=this,r.update(),r.parent=null}for(var n=0;n<this._temporaryDisplayables.length;n++){var r=this._temporaryDisplayables[n];r.parent=this,r.update(),r.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var n=new fe(1/0,1/0,-1/0,-1/0),r=0;r<this._displayables.length;r++){var i=this._displayables[r],o=i.getBoundingRect().clone();i.needLocalTransform()&&o.applyTransform(i.getLocalTransform(s8)),n.union(o)}this._rect=n}return this._rect},t.prototype.contain=function(n,r){var i=this.transformCoordToLocal(n,r),o=this.getBoundingRect();if(o.contain(i[0],i[1]))for(var a=0;a<this._displayables.length;a++){var s=this._displayables[a];if(s.contain(n,r))return!0}return!1},t})(hn),zO=l8;var u8=re();function gf(e,t,n,r,i){var o;if(t&&t.ecModel){var a=t.ecModel.getUpdatePayload();o=a&&a.animation}var s=t&&t.isAnimationEnabled(),l=e==="update";if(s){var u=void 0,c=void 0,f=void 0;r?(u=G(r.duration,200),c=G(r.easing,"cubicOut"),f=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),c=t.getShallow(l?"animationEasingUpdate":"animationEasing"),f=t.getShallow(l?"animationDelayUpdate":"animationDelay")),o&&(o.duration!=null&&(u=o.duration),o.easing!=null&&(c=o.easing),o.delay!=null&&(f=o.delay)),Y(f)&&(f=f(n,i)),Y(u)&&(u=u(n));var d={duration:u||0,delay:f,easing:c};return d}else return null}function AS(e,t,n,r,i,o,a){var s=!1,l;Y(i)?(a=o,o=i,i=null):z(i)&&(o=i.cb,a=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u=e==="leave";u||t.stopAnimation("leave");var c=gf(e,r,i,u?l||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):null);if(c&&c.duration>0){var f=c.duration,d=c.delay,p=c.easing,h={duration:f,delay:d||0,easing:p,done:o,force:!!o||!!a,setToFinal:!u,scope:e,during:a};s?t.animateFrom(n,h):t.animateTo(n,h)}else t.stopAnimation(),!s&&t.attr(n),a&&a(1),o&&o()}function et(e,t,n,r,i,o){AS("update",e,t,n,r,i,o)}function Tt(e,t,n,r,i,o){AS("enter",e,t,n,r,i,o)}function as(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var n=e.animators[t];if(n.scope==="leave")return!0}return!1}function ql(e,t,n,r,i,o){as(e)||AS("leave",e,t,n,r,i,o)}function jO(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),ql(e,{style:{opacity:0}},t,n,r)}function Zl(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(i){i.isGroup||jO(i,t,n,r)}):jO(e,t,n,r)}function Nm(e){u8(e).oldStyle=e.style}var OS={},Bi=["x","y"],ss=["width","height"],PS=0,LS=1,yf=2;function c8(e){return ie.extend(e)}var f8=EO;function d8(e,t){return f8(e,t)}function Lr(e,t){OS[e]=t}function kS(e){if(OS.hasOwnProperty(e))return OS[e]}function Rm(e,t,n,r){var i=CO(e,t);return n&&(r==="center"&&(n=WO(n,i.getBoundingRect())),YO(i,n)),i}function FS(e,t,n){var r=new _t({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(i){if(n==="center"){var o={width:i.width,height:i.height};r.setStyle(WO(t,o))}}});return r}function WO(e,t){var n=t.width/t.height,r=e.height*n,i;r<=e.width?i=e.height:(r=e.width,i=r/n);var o=e.x+e.width/2,a=e.y+e.height/2;return{x:o-r/2,y:a-i/2,width:r,height:i}}var p8=bO;function YO(e,t){if(e.applyTransform){var n=e.getBoundingRect(),r=n.calculateTransform(t);e.applyTransform(r)}}function ls(e,t){return um(e,e,{lineWidth:t}),e}function h8(e,t){return cm(e,e,t),e}var m8=wo;function g8(e,t){for(var n=Ti([]);e&&e!==t;)fo(n,e.getLocalTransform(),n),e=e.parent;return n}function Pm(e,t,n){return t&&!ct(t)&&(t=Pl.getLocalTransform(t)),n&&(t=Yr([],t)),Vt([],e,t)}function v8(e,t,n){var r=t[4]===0||t[5]===0||t[0]===0?1:Je(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:Je(2*t[4]/t[2]),o=[e==="left"?-r:e==="right"?r:0,e==="top"?-i:e==="bottom"?i:0];return o=Pm(o,t,n),Je(o[0])>Je(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function GO(e){return!e.isGroup}function y8(e){return e.shape!=null}function BS(e,t,n){if(!e||!t)return;function r(a){var s={};return a.traverse(function(l){GO(l)&&l.anid&&(s[l.anid]=l)}),s}function i(a){var s={x:a.x,y:a.y,rotation:a.rotation};return y8(a)&&(s.shape=ae(a.shape)),s}var o=r(e);t.traverse(function(a){if(GO(a)&&a.anid){var s=o[a.anid];if(s){var l=i(a);a.attr(i(s)),et(a,l,n,Te(a).dataIndex)}}})}function _8(e,t){return V(e,function(n){var r=n[0];r=De(r,t.x),r=it(r,t.x+t.width);var i=n[1];return i=De(i,t.y),i=it(i,t.y+t.height),[r,i]})}function x8(e,t){var n=De(e.x,t.x),r=it(e.x+e.width,t.x+t.width),i=De(e.y,t.y),o=it(e.y+e.height,t.y+t.height);if(r>=n&&o>=i)return{x:n,y:i,width:r-n,height:o-i}}function VS(e,t,n){var r=P({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(i.image=e.slice(8),he(i,n),new _t(r)):Rm(e.replace("path://",""),r,n,"center")}function D8(e,t,n,r,i){for(var o=0,a=i[i.length-1];o<i.length;o++){var s=i[o];if(qO(e,t,n,r,s[0],s[1],a[0],a[1]))return!0;a=s}}function qO(e,t,n,r,i,o,a,s){var l=n-e,u=r-t,c=a-i,f=s-o,d=NS(c,f,l,u);if(S8(d))return!1;var p=e-i,h=t-o,m=NS(p,h,l,u)/d;if(m<0||m>1)return!1;var g=NS(p,h,c,f)/d;return!(g<0||g>1)}function NS(e,t,n,r){return e*r-n*t}function S8(e){return e<=1e-6&&e>=-1e-6}function Xl(e,t,n,r,i){return t==null||(ge(t)?Ze[0]=Ze[1]=Ze[2]=Ze[3]=t:(Ze[0]=t[0],Ze[1]=t[1],Ze[2]=t[2],Ze[3]=t[3]),r&&(Ze[0]=De(0,Ze[0]),Ze[1]=De(0,Ze[1]),Ze[2]=De(0,Ze[2]),Ze[3]=De(0,Ze[3])),n&&(Ze[0]=-Ze[0],Ze[1]=-Ze[1],Ze[2]=-Ze[2],Ze[3]=-Ze[3]),$O(e,Ze,"x","width",3,1,i&&i[0]||0),$O(e,Ze,"y","height",0,2,i&&i[1]||0)),e}var Ze=[0,0,0,0];function $O(e,t,n,r,i,o,a){var s=t[o]+t[i],l=e[r];e[r]+=s,a=De(0,it(a,l)),e[r]<a?(e[r]=a,e[n]+=t[i]>=0?-t[i]:t[o]>=0?l+t[o]:Je(s)>1e-8?(l-a)*t[i]/s:0):e[n]-=t[i]}function Kl(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=U(t)?{formatter:t}:t,o=n.mainType,a=n.componentIndex,s={componentType:o,name:r,$vars:["name"]};s[o+"Index"]=a;var l=e.formatterParamsExtra;l&&E(X(l),function(c){Q(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=Te(e.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:r,option:he({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function RS(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function us(e,t){if(e)if(F(e))for(var n=0;n<e.length;n++)RS(e[n],t);else RS(e,t)}function Lm(e){return!e||Je(e[1])<Om&&Je(e[2])<Om||Je(e[0])<Om&&Je(e[3])<Om}var Om=1e-5;function Ql(e,t){return e?fe.copy(e,t):t.clone()}function km(e,t){return t?Ac(e||Jt(),t):void 0}function US(e){return{z:e.get("z")||0,zlevel:e.get("zlevel")||0}}function C8(e){var t=-1/0,n=1/0;RS(e,function(o){r(o),r(o.getTextContent()),r(o.getTextGuideLine())});function r(o){if(!(!o||o.isGroup)){var a=o.currentStates;if(a.length)for(var s=0;s<a.length;s++)i(o.states[a[s]]);i(o)}}function i(o){if(o){var a=o.z2;a>t&&(t=a),a<n&&(n=a)}}return n>t&&(n=t=0),{min:n,max:t}}function HS(e,t,n){ZO(e,t,n,-1/0)}function ZO(e,t,n,r){if(e.ignoreModelZ)return r;var i=e.getTextContent(),o=e.getTextGuideLine(),a=e.isGroup;if(a)for(var s=e.childrenRef(),l=0;l<s.length;l++)r=De(ZO(s[l],t,n,r),r);else e.z=t,e.zlevel=n,r=De(e.z2||0,r);if(i&&(i.z=t,i.zlevel=n,isFinite(r)&&(i.z2=r+2)),o){var u=e.textGuideLineConfig;o.z=t,o.zlevel=n,isFinite(r)&&(o.z2=r+(u&&u.showAbove?1:-1))}return r}function E8(e){return e.animation={duration:0},e}function b8(e,t){return t?Ac(vf.transform,t):Ti(vf.transform),vf.decomposeTransform(),yo(e,vf),e}var vf=new Pl;vf.transform=Jt();function w8(e){var t=e.getZr().painter;return t.getType()==="canvas"?t:null}Lr("circle",df);Lr("ellipse",SS);Lr("sector",Pr);Lr("ring",ES);Lr("polygon",wS);Lr("polyline",TS);Lr("rect",$e);Lr("line",mn);Lr("bezierCurve",IS);Lr("arc",mf);var Fm={};function tR(e,t){for(var n=0;n<or.length;n++){var r=or[n],i=t[r],o=e.ensureState(r);o.style=o.style||{},o.style.text=i}var a=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(a,!0)}function zS(e,t,n){var r=e.labelFetcher,i=e.labelDataIndex,o=e.labelDimIndex,a=t.normal,s;r&&(s=r.getFormattedLabel(i,"normal",null,o,a&&a.get("formatter"),n!=null?{interpolatedValue:n}:null)),s==null&&(s=Y(e.defaultText)?e.defaultText(i,e,n):e.defaultText);for(var l={normal:s},u=0;u<or.length;u++){var c=or[u],f=t[c];l[c]=G(r?r.getFormattedLabel(i,c,null,o,f&&f.get("formatter")):null,s)}return l}function Jl(e,t,n,r){n=n||Fm;for(var i=e instanceof We,o=!1,a=0;a<cS.length;a++){var s=t[cS[a]];if(s&&s.getShallow("show")){o=!0;break}}var l=i?e:e.getTextContent();if(o){i||(l||(l=new We,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var u=zS(n,t),c=t.normal,f=!!c.getShallow("show"),d=ar(c,r&&r.normal,n,!1,!i);d.text=u.normal,i||e.setTextConfig(XO(c,n,!1));for(var a=0;a<or.length;a++){var p=or[a],s=t[p];if(s){var h=l.ensureState(p),m=!!G(s.getShallow("show"),f);if(m!==f&&(h.ignore=!m),h.style=ar(s,r&&r[p],n,!0,!i),h.style.text=u[p],!i){var g=e.ensureState(p);g.textConfig=XO(s,n,!0)}}}l.silent=!!c.getShallow("silent"),l.style.x!=null&&(d.x=l.style.x),l.style.y!=null&&(d.y=l.style.y),l.ignore=!f,l.useStyle(d),l.dirty(),n.enableTextSetter&&(fs(l).setLabelText=function(v){var y=zS(n,t,v);tR(l,y)})}else l&&(l.ignore=!0);e.dirty()}function Ao(e,t){t=t||"label";for(var n={normal:e.getModel(t)},r=0;r<or.length;r++){var i=or[r];n[i]=e.getModel([i,t])}return n}function ar(e,t,n,r,i){var o={};return T8(o,e,n,r,i),t&&P(o,t),o}function XO(e,t,n){t=t||{};var r={},i,o=e.getShallow("rotate"),a=G(e.getShallow("distance"),n?null:5),s=e.getShallow("offset");return i=e.getShallow("position")||(n?null:"inside"),i==="outside"&&(i=t.defaultOutsidePosition||"top"),i!=null&&(r.position=i),s!=null&&(r.offset=s),o!=null&&(o*=Math.PI/180,r.rotation=o),a!=null&&(r.distance=a),r.outsideFill=e.get("color")==="inherit"?t.inheritColor||null:"auto",t.autoOverflowArea!=null&&(r.autoOverflowArea=t.autoOverflowArea),t.layoutRect!=null&&(r.layoutRect=t.layoutRect),r}function T8(e,t,n,r,i){n=n||Fm;var o=t.ecModel,a=o&&o.option.textStyle,s=I8(t),l;if(s){l={};var u="richInheritPlainLabel",c=G(t.get(u),o?o.get(u):void 0);for(var f in s)if(s.hasOwnProperty(f)){var d=t.getModel(["rich",f]);eR(l[f]={},d,a,t,c,n,r,i,!1,!0)}}l&&(e.rich=l);var p=t.get("overflow");p&&(e.overflow=p);var h=t.get("lineOverflow");h&&(e.lineOverflow=h);var m=e,g=t.get("minMargin");if(g!=null)g=ge(g)?g/2:0,m.margin=[g,g,g,g],m.__marginType=cs.minMargin;else{var v=t.get("textMargin");v!=null&&(m.margin=Dl(v),m.__marginType=cs.textMargin)}eR(e,t,a,null,null,n,r,i,!0,!1)}function I8(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||Fm).rich;if(n){t=t||{};for(var r=X(n),i=0;i<r.length;i++){var o=r[i];t[o]=1}}e=e.parentModel}return t}var KO=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],QO=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],JO=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function eR(e,t,n,r,i,o,a,s,l,u){n=!a&&n||Fm;var c=o&&o.inheritColor,f=t.getShallow("color"),d=t.getShallow("textBorderColor"),p=G(t.getShallow("opacity"),n.opacity);(f==="inherit"||f==="auto")&&(c?f=c:f=null),(d==="inherit"||d==="auto")&&(c?d=c:d=null),s||(f=f||n.color,d=d||n.textBorderColor),f!=null&&(e.fill=f),d!=null&&(e.stroke=d);var h=G(t.getShallow("textBorderWidth"),n.textBorderWidth);h!=null&&(e.lineWidth=h);var m=G(t.getShallow("textBorderType"),n.textBorderType);m!=null&&(e.lineDash=m);var g=G(t.getShallow("textBorderDashOffset"),n.textBorderDashOffset);g!=null&&(e.lineDashOffset=g),!a&&p==null&&!u&&(p=o&&o.defaultOpacity),p!=null&&(e.opacity=p),!a&&!s&&e.fill==null&&o.inheritColor&&(e.fill=o.inheritColor);for(var v=0;v<KO.length;v++){var y=KO[v],_=i!==!1&&r?br(t.getShallow(y),r.getShallow(y),n[y]):G(t.getShallow(y),n[y]);_!=null&&(e[y]=_)}for(var v=0;v<QO.length;v++){var y=QO[v],_=t.getShallow(y);_!=null&&(e[y]=_)}if(e.verticalAlign==null){var x=t.getShallow("baseline");x!=null&&(e.verticalAlign=x)}if(!l||!o.disableBox){for(var v=0;v<JO.length;v++){var y=JO[v],_=t.getShallow(y);_!=null&&(e[y]=_)}var D=t.getShallow("borderType");D!=null&&(e.borderDash=D),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&c&&(e.backgroundColor=c),(e.borderColor==="auto"||e.borderColor==="inherit")&&c&&(e.borderColor=c)}}function nR(e,t){var n=t&&t.getModel("textStyle");return Bt([e.fontStyle||n&&n.getShallow("fontStyle")||"",e.fontWeight||n&&n.getShallow("fontWeight")||"",(e.fontSize||n&&n.getShallow("fontSize")||12)+"px",e.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var fs=re();function Bm(e,t,n,r){if(e){var i=fs(e);i.prevValue=i.value,i.value=n;var o=t.normal;i.valueAnimation=o.get("valueAnimation"),i.valueAnimation&&(i.precision=o.get("precision"),i.defaultInterpolatedText=r,i.statesModels=t)}}function rR(e,t,n,r,i){var o=fs(e);if(!o.valueAnimation||o.prevValue===o.value)return;var a=o.defaultInterpolatedText,s=G(o.interpolatedValue,o.prevValue),l=o.value;function u(c){var f=em(n,o.precision,s,l,c);o.interpolatedValue=c===1?null:f;var d=zS({labelDataIndex:t,labelFetcher:i,defaultText:a?a(f):f+""},o.statesModels,f);tR(e,d)}e.percent=0,(o.prevValue==null?Tt:et)(e,{percent:1},r,t,null,u)}var cs={minMargin:1,textMargin:2};var M8=["textStyle","color"],jS=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],GS=new We,A8=(function(){function e(){}return e.prototype.getTextColor=function(t){var n=this.ecModel;return this.getShallow("color")||(!t&&n?n.get(M8):null)},e.prototype.getFont=function(){return nR({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(t){for(var n={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},r=0;r<jS.length;r++)n[jS[r]]=this.getShallow(jS[r]);return GS.useStyle(n),GS.update(),GS.getBoundingRect()},e})(),iR=A8;var $S=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],N8=Jr($S),oR=(function(){function e(){}return e.prototype.getLineStyle=function(t){return N8(this,t)},e})();var WS=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],O8=Jr(WS),aR=(function(){function e(){}return e.prototype.getItemStyle=function(t,n){return O8(this,t,n)},e})();var ds=(function(){function e(t,n,r){this.parentModel=n,this.ecModel=r,this.option=t}return e.prototype.init=function(t,n,r){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o]},e.prototype.mergeOption=function(t,n){Ne(this.option,t,!0)},e.prototype.get=function(t,n){return t==null?this.option:this._doGet(this.parsePath(t),!n&&this.parentModel)},e.prototype.getShallow=function(t,n){var r=this.option,i=r==null?r:r[t];if(i==null&&!n){var o=this.parentModel;o&&(i=o.getShallow(t))}return i},e.prototype.getModel=function(t,n){var r=t!=null,i=r?this.parsePath(t):null,o=r?this._doGet(i):this.option;return n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(o,n,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var t=this.constructor;return new t(ae(this.option))},e.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},e.prototype.resolveParentPath=function(t){return t},e.prototype.isAnimationEnabled=function(){if(!ce.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(t,n){var r=this.option;if(!t)return r;for(var i=0;i<t.length&&!(t[i]&&(r=r&&typeof r=="object"?r[t[i]]:null,r==null));i++);return r==null&&n&&(r=n._doGet(this.resolveParentPath(t),n.parentModel)),r},e})();Hl(ds);uN(ds);Kt(ds,oR);Kt(ds,aR);Kt(ds,cN);Kt(ds,iR);var tt=ds;var R8=Math.round(Math.random()*10);function No(e){return[e||"",R8++].join("_")}function sR(e){var t={};e.registerSubTypeDefaulter=function(n,r){var i=pn(n);t[i.main]=r},e.determineSubType=function(n,r){var i=r.type;if(!i){var o=pn(n).main;e.hasSubTypes(n)&&t[o]&&(i=t[o](r))}return i}}function lR(e,t){e.topologicalTravel=function(o,a,s,l){if(!o.length)return;var u=n(a),c=u.graph,f=u.noEntryList,d={};for(E(o,function(y){d[y]=!0});f.length;){var p=f.pop(),h=c[p],m=!!d[p];m&&(s.call(l,p,h.originalDeps.slice()),delete d[p]),E(h.successor,m?v:g)}E(d,function(){var y="";throw new Error(y)});function g(y){c[y].entryCount--,c[y].entryCount===0&&f.push(y)}function v(y){d[y]=!0,g(y)}};function n(o){var a={},s=[];return E(o,function(l){var u=r(a,l),c=u.originalDeps=t(l),f=i(c,o);u.entryCount=f.length,u.entryCount===0&&s.push(l),E(f,function(d){se(u.predecessor,d)<0&&u.predecessor.push(d);var p=r(a,d);se(p.successor,d)<0&&p.successor.push(l)})}),{graph:a,noEntryList:s}}function r(o,a){return o[a]||(o[a]={predecessor:[],successor:[]}),o[a]}function i(o,a){var s=[];return E(o,function(l){se(a,l)>=0&&s.push(l)}),s}}function uR(e,t){return Ne(Ne({},e,!0),t,!0)}var cR={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:". "}}}};var fR={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE",custom:"\u81EA\u5B9A\u4E49\u56FE\u8868",chart:"\u56FE\u8868"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}};var Um="ZH",qS="EN",eu=qS,Vm={},ZS={},Hm=ce.domSupported?(function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||eu).toUpperCase();return e.indexOf(Um)>-1?Um:eu})():eu;function dR(e,t){e=e.toUpperCase(),ZS[e]=new tt(t),Vm[e]=t}function pR(e){if(U(e)){var t=Vm[e.toUpperCase()]||{};return e===Um||e===qS?ae(t):Ne(ae(t),ae(Vm[eu]),!1)}else return Ne(ae(e),ae(Vm[eu]),!1)}function hR(e){return ZS[e]}function mR(){return ZS[eu]}dR(qS,cR);dR(Um,fR);var P8=null;function ot(){return P8}function zm(e,t){var n=ot(),r=t.breakOption,i=t.breakParsed;return!i&&n&&(i=n.parseAxisBreakOption(r,e)),i}function ps(e){var t=e.brk;return t?t.breaks:[]}function hs(e){var t=e.brk;return t?t.hasBreaks():!1}var $m=1e3,Wm=$m*60,tu=Wm*60,kn=tu*24,XS=kn*365,L8={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})/},Gm={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},k8="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",jm="{yyyy}-{MM}-{dd}",KS={year:"{yyyy}",month:"{yyyy}-{MM}",day:jm,hour:jm+" "+Gm.hour,minute:jm+" "+Gm.minute,second:jm+" "+Gm.second,millisecond:k8},vn=["year","month","day","hour","minute","second","millisecond"],gR=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function vR(e){return!U(e)&&!Y(e)?F8(e):e}function F8(e){e=e||{};var t={},n=!0;return E(vn,function(r){n&&(n=e[r]==null)}),E(vn,function(r,i){var o=e[r];t[r]={};for(var a=null,s=i;s>=0;s--){var l=vn[s],u=z(o)&&!F(o)?o[l]:o,c=void 0;F(u)?(c=u.slice(),a=c[0]||""):U(u)?(a=u,c=[a]):(a==null?a=Gm[r]:L8[l].test(a)||(a=t[l][l][0]+" "+a),c=[a],n&&(c[1]="{primary|"+a+"}")),t[r][l]=c}}),t}function Vi(e,t){return e+="","0000".substr(0,t-e.length)+e}function nu(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function yR(e){return e===nu(e)}function _R(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function ms(e,t,n,r){var i=Kr(e),o=i[QS(n)](),a=i[qm(n)]()+1,s=Math.floor((a-1)/3)+1,l=i[Zm(n)](),u=i["get"+(n?"UTC":"")+"Day"](),c=i[Xm(n)](),f=(c-1)%12+1,d=i[Km(n)](),p=i[Qm(n)](),h=i[Jm(n)](),m=c>=12?"pm":"am",g=m.toUpperCase(),v=r instanceof tt?r:hR(r||Hm)||mR(),y=v.getModel("time"),_=y.get("month"),x=y.get("monthAbbr"),D=y.get("dayOfWeek"),S=y.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,m+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,Vi(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[a-1]).replace(/{MMM}/g,x[a-1]).replace(/{MM}/g,Vi(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,Vi(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,D[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Vi(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Vi(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Vi(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Vi(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,Vi(h,3)).replace(/{S}/g,h+"")}function xR(e,t,n,r,i){var o=null;if(U(n))o=n;else if(Y(n)){var a={time:e.time,level:e.time?e.time.level:0},s=ot();s&&s.makeAxisLabelFormatterParamBreak(a,e.break),o=n(e.value,t,a)}else{var l=e.time;if(l){var u=n[l.lowerTimeUnit][l.upperTimeUnit];o=u[Math.min(l.level,u.length-1)]||""}else{var c=gs(e.value,i);o=n[c][c][0]}}return ms(new Date(e.value),o,i,r)}function gs(e,t){var n=Kr(e),r=n[qm(t)]()+1,i=n[Zm(t)](),o=n[Xm(t)](),a=n[Km(t)](),s=n[Qm(t)](),l=n[Jm(t)](),u=l===0,c=u&&s===0,f=c&&a===0,d=f&&o===0,p=d&&i===1,h=p&&r===1;return h?"year":p?"month":d?"day":f?"hour":c?"minute":u?"second":"millisecond"}function Ym(e,t,n){switch(t){case"year":e[JS(n)](0);case"month":e[eC(n)](1);case"day":e[tC(n)](0);case"hour":e[nC(n)](0);case"minute":e[rC(n)](0);case"second":e[iC(n)](0)}return e}function QS(e){return e?"getUTCFullYear":"getFullYear"}function qm(e){return e?"getUTCMonth":"getMonth"}function Zm(e){return e?"getUTCDate":"getDate"}function Xm(e){return e?"getUTCHours":"getHours"}function Km(e){return e?"getUTCMinutes":"getMinutes"}function Qm(e){return e?"getUTCSeconds":"getSeconds"}function Jm(e){return e?"getUTCMilliseconds":"getMilliseconds"}function DR(e){return e?"setUTCFullYear":"setFullYear"}function JS(e){return e?"setUTCMonth":"setMonth"}function eC(e){return e?"setUTCDate":"setDate"}function tC(e){return e?"setUTCHours":"setHours"}function nC(e){return e?"setUTCMinutes":"setMinutes"}function rC(e){return e?"setUTCSeconds":"setSeconds"}function iC(e){return e?"setUTCMilliseconds":"setMilliseconds"}function aC(e){if(!ID(e))return U(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function eg(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(n,r){return r.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var ru=Dl;function tg(e,t,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(c){return c&&Bt(c)?c:"-"}function o(c){return yt(c)}var a=t==="time",s=e instanceof Date;if(a||s){var l=a?Kr(e):e;if(isNaN(+l)){if(s)return"-"}else return ms(l,r,n)}if(t==="ordinal")return Mc(e)?i(e):ge(e)&&o(e)?e+"":"-";var u=Qr(e);return o(u)?aC(u):Mc(e)?i(e):typeof e=="boolean"?e+"":"-"}var SR=["a","b","c","d","e","f","g"],oC=function(e,t){return"{"+e+(t??"")+"}"};function ng(e,t,n){F(t)||(t=[t]);var r=t.length;if(!r)return"";for(var i=t[0].$vars||[],o=0;o<i.length;o++){var a=SR[o];e=e.replace(oC(a),oC(a,0))}for(var s=0;s<r;s++)for(var l=0;l<i.length;l++){var u=t[s][i[l]];e=e.replace(oC(SR[l],s),n?Et(u):u)}return e}function CR(e,t){var n=U(e)?{color:e,extraCssText:t}:e||{},r=n.color,i=n.type;t=n.extraCssText;var o=n.renderMode||"html";if(!r)return"";if(o==="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:'+Et(r)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Et(r)+";"+(t||"")+'"></span>';var a=n.markerId||"markerX";return{renderMode:o,content:"{"+a+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function kr(e,t){return t=t||"transparent",U(e)?e:z(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}var rg={},sC={},B8=(function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(t,n){this._nonSeriesBoxMasterList=r(rg,!0),this._normalMasterList=r(sC,!1);function r(i,o){var a=[];return E(i,function(s,l){var u=s.create(t,n);a=a.concat(u||[])}),a}},e.prototype.update=function(t,n){E(this._normalMasterList,function(r){r.update&&r.update(t,n)})},e.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},e.register=function(t,n){if(t==="matrix"||t==="calendar"){rg[t]=n;return}sC[t]=n},e.get=function(t){return sC[t]||rg[t]},e})();function V8(e){return!!rg[e]}var U8=1,bR=2;var H8=q();function og(e){var t=e.getShallow("coord",!0),n=U8;if(t==null){var r=H8.get(e.type);r&&r.getCoord2&&(n=bR,t=r.getCoord2(e))}return{coord:t,from:n}}var iu=0,ig=1,z8=2;function j8(e,t){var n=e.getShallow("coordinateSystem"),r=e.getShallow("coordinateSystemUsage",!0),i=r!=null,o=iu;if(n){var a=e.mainType==="series";r==null&&(r=a?"data":"box"),r==="data"?(o=ig,a||(o=iu)):r==="box"&&(o=z8,!a&&!V8(n)&&(o=iu))}return{coordSysType:n,kind:o}}function wR(e){var t=e.targetModel,n=e.coordSysType,r=e.coordSysProvider,i=e.isDefaultDataCoordSys,o=e.allowNotFound,a=j8(t,!0),s=a.kind,l=a.coordSysType;if(i&&s!==ig&&(s=ig,l=n),s===iu||l!==n)return iu;var u=r(n,t);return u?(s===ig?t.coordinateSystem=u:t.boxCoordinateSystem=u,s):iu}var _f=B8;var lg=E,lC=["left","right","top","bottom","width","height"],ag=[["width","left","right"],["height","top","bottom"]];function TR(e,t,n,r,i){var o=0,a=0;r==null&&(r=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(l,u){var c=l.getBoundingRect(),f=t.childAt(u+1),d=f&&f.getBoundingRect(),p,h;if(e==="horizontal"){var m=c.width+(d?-d.x+c.x:0);p=o+m,p>r||l.newline?(o=0,p=m,a+=s+n,s=c.height):s=Math.max(s,c.height)}else{var g=c.height+(d?-d.y+c.y:0);h=a+g,h>i||l.newline?(o+=s+n,a=0,h=g,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),e==="horizontal"?o=p+n:a=h+n)})}var vhe=vt(TR,"vertical"),yhe=vt(TR,"horizontal");function IR(e,t){return{left:e.getShallow("left",t),top:e.getShallow("top",t),right:e.getShallow("right",t),bottom:e.getShallow("bottom",t),width:e.getShallow("width",t),height:e.getShallow("height",t)}}function ou(e,t,n){n=ru(n||0);var r=t.width,i=t.height,o=we(e.left,r),a=we(e.top,i),s=we(e.right,r),l=we(e.bottom,i),u=we(e.width,r),c=we(e.height,i),f=n[2]+n[0],d=n[1]+n[3],p=e.aspect;switch(isNaN(u)&&(u=r-s-d-o),isNaN(c)&&(c=i-l-f-a),p!=null&&(isNaN(u)&&isNaN(c)&&(p>r/i?u=r*.8:c=i*.8),isNaN(u)&&(u=p*c),isNaN(c)&&(c=u/p)),isNaN(o)&&(o=r-s-u-d),isNaN(a)&&(a=i-l-c-f),e.left||e.right){case"center":o=r/2-u/2-n[3];break;case"right":o=r-u-d;break}switch(e.top||e.bottom){case"middle":case"center":a=i/2-c/2-n[0];break;case"bottom":a=i-c-f;break}o=o||0,a=a||0,isNaN(u)&&(u=r-d-o-(s||0)),isNaN(c)&&(c=i-f-a-(l||0));var h=new fe((t.x||0)+o+n[3],(t.y||0)+a+n[0],u,c);return h.margin=n,h}var sg={rect:1,point:2};function MR(e,t,n){var r,i,o,a=e.boxCoordinateSystem,s;if(a){var l=og(e),u=l.coord,c=l.from;if(a.dataToLayout){o=sg.rect,s=c;var f=a.dataToLayout(u);r=f.contentRect||f.rect}else n&&n.enableLayoutOnlyByCenter&&a.dataToPoint&&(o=sg.point,s=c,i=a.dataToPoint(u))}return o==null&&(o=sg.rect),o===sg.rect&&(r||(r={x:0,y:0,width:t.getWidth(),height:t.getHeight()}),i=[r.x+r.width/2,r.y+r.height/2]),{type:o,refContainer:r,refPoint:i,boxCoordFrom:s}}function AR(e,t,n,r,i,o){var a=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],l=i&&i.boundingMode||"all";if(o=o||e,o.x=e.x,o.y=e.y,!a&&!s)return!1;var u;if(l==="raw")u=e.type==="group"?new fe(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(u=e.getBoundingRect(),e.needLocalTransform()){var c=e.getLocalTransform();u=u.clone(),u.applyTransform(c)}var f=ou(he({width:u.width,height:u.height},t),n,r),d=a?f.x-u.x:0,p=s?f.y-u.y:0;return l==="raw"?(o.x=d,o.y=p):(o.x+=d,o.y+=p),o===e&&e.markRedraw(),!0}function Oo(e){var t=e.layoutMode||e.constructor.layoutMode;return z(t)?t:t?{type:t}:null}function Fn(e,t,n){var r=n&&n.ignoreSize;!F(r)&&(r=[r,r]);var i=a(ag[0],0),o=a(ag[1],1);l(ag[0],e,i),l(ag[1],e,o);function a(u,c){var f={},d=0,p={},h=0,m=2;if(lg(u,function(y){p[y]=e[y]}),lg(u,function(y){Q(t,y)&&(f[y]=p[y]=t[y]),s(f,y)&&d++,s(p,y)&&h++}),r[c])return s(t,u[1])?p[u[2]]=null:s(t,u[2])&&(p[u[1]]=null),p;if(h===m||!d)return p;if(d>=m)return f;for(var g=0;g<u.length;g++){var v=u[g];if(!Q(f,v)&&Q(e,v)){f[v]=e[v];break}}return f}function s(u,c){return u[c]!=null&&u[c]!=="auto"}function l(u,c,f){lg(u,function(d){c[d]=f[d]})}}function Ro(e){return uC({},e)}function uC(e,t){return t&&e&&lg(lC,function(n){Q(t,n)&&(e[n]=t[n])}),e}var G8=re(),au=(function(e){R(t,e);function t(n,r,i){var o=e.call(this,n,r,i)||this;return o.uid=No("ec_cpt_model"),o}return t.prototype.init=function(n,r,i){this.mergeDefaultAndTheme(n,i)},t.prototype.mergeDefaultAndTheme=function(n,r){var i=Oo(this),o=i?Ro(n):{},a=r.getTheme();Ne(n,a.get(this.mainType)),Ne(n,this.getDefaultOption()),i&&Fn(n,o,i)},t.prototype.mergeOption=function(n,r){Ne(this.option,n,!0);var i=Oo(this);i&&Fn(this.option,n,i)},t.prototype.optionUpdated=function(n,r){},t.prototype.getDefaultOption=function(){var n=this.constructor;if(!lN(n))return n.defaultOption;var r=G8(this);if(!r.defaultOption){for(var i=[],o=n;o;){var a=o.prototype.defaultOption;a&&i.push(a),o=o.superClass}for(var s={},l=i.length-1;l>=0;l--)s=Ne(s,i[l],!0);r.defaultOption=s}return r.defaultOption},t.prototype.getReferringComponents=function(n,r){var i=n+"Index",o=n+"Id";return Do(this.ecModel,n,{index:this.get(i,!0),id:this.get(o,!0)},r)},t.prototype.getBoxLayoutParams=function(){return IR(this,!1)},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(n){this.option.zlevel=n},t.protoInitialize=(function(){var n=t.prototype;n.type="component",n.id="",n.name="",n.mainType="",n.subType="",n.componentIndex=0})(),t})(tt);im(au,tt);So(au);sR(au);lR(au,$8);function $8(e){var t=[];return E(au.getClassesByMainType(e),function(n){t=t.concat(n.dependencies||n.prototype.dependencies||[])}),t=V(t,function(n){return pn(n).main}),e!=="dataset"&&se(t,"dataset")<=0&&t.unshift("dataset"),t}var Ve=au;var vs={color:{},darkColor:{},size:{}},dt=vs.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)"};P(dt,{primary:dt.neutral80,secondary:dt.neutral70,tertiary:dt.neutral60,quaternary:dt.neutral50,disabled:dt.neutral20,border:dt.neutral30,borderTint:dt.neutral20,borderShade:dt.neutral40,background:dt.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:dt.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:dt.neutral70,axisLineTint:dt.neutral40,axisTick:dt.neutral70,axisTickMinor:dt.neutral60,axisLabel:dt.neutral70,axisSplitLine:dt.neutral15,axisMinorSplitLine:dt.neutral05});for(Po in dt)dt.hasOwnProperty(Po)&&(cC=dt[Po],Po==="theme"?vs.darkColor.theme=dt.theme.slice():Po==="highlight"?vs.darkColor.highlight="rgba(255,231,130,0.4)":Po.indexOf("accent")===0?vs.darkColor[Po]=Fc(cC,null,function(e){return e*.5},function(e){return Math.min(1,1.3-e)}):vs.darkColor[Po]=Fc(cC,null,function(e){return e*.9},function(e){return 1-Math.pow(e,1.5)}));var cC,Po;vs.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var oe=vs;var OR="";typeof navigator<"u"&&(OR=navigator.platform||"");var su="rgba(0, 0, 0, 0.2)",RR=oe.color.theme[0],W8=Fc(RR,null,null,.9),ug={darkMode:"auto",colorBy:"series",color:oe.color.theme,gradientColor:[W8,RR],aria:{decal:{decals:[{color:su,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:su,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:su,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:su,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:su,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:su,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:OR.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};var rn={Must:1,Might:2,Not:3},PR=re();function LR(e){PR(e).datasetMap=q()}function kR(e,t,n){var r={},i=fC(t);if(!i||!e)return r;var o=[],a=[],s=t.ecModel,l=PR(s).datasetMap,u=i.uid+"_"+n.seriesLayoutBy,c,f;e=e.slice(),E(e,function(m,g){var v=z(m)?m:e[g]={name:m};v.type==="ordinal"&&c==null&&(c=g,f=h(v)),r[v.name]=[]});var d=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});E(e,function(m,g){var v=m.name,y=h(m);if(c==null){var _=d.valueWayDim;p(r[v],_,y),p(a,_,y),d.valueWayDim+=y}else if(c===g)p(r[v],0,y),p(o,0,y);else{var _=d.categoryWayDim;p(r[v],_,y),p(a,_,y),d.categoryWayDim+=y}});function p(m,g,v){for(var y=0;y<v;y++)m.push(g+y)}function h(m){var g=m.dimsDef;return g?g.length:1}return o.length&&(r.itemName=o),a.length&&(r.seriesName=a),r}function fC(e){var t=e.get("data",!0);if(!t)return Do(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},Ut).models[0]}function FR(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:Do(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},Ut).models}function cg(e,t){return Y8(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function Y8(e,t,n,r,i,o){var a,s=5;if(ft(e))return rn.Not;var l,u;if(r){var c=r[o];z(c)?(l=c.name,u=c.type):U(c)&&(l=c)}if(u!=null)return u==="ordinal"?rn.Must:rn.Not;if(t===xt){var f=e;if(n===oi){for(var d=f[o],p=0;p<(d||[]).length&&p<s;p++)if((a=x(d[i+p]))!=null)return a}else for(var p=0;p<f.length&&p<s;p++){var h=f[i+p];if(h&&(a=x(h[o]))!=null)return a}}else if(t===nn){var m=e;if(!l)return rn.Not;for(var p=0;p<m.length&&p<s;p++){var g=m[p];if(g&&(a=x(g[l]))!=null)return a}}else if(t===Rn){var v=e;if(!l)return rn.Not;var d=v[l];if(!d||ft(d))return rn.Not;for(var p=0;p<d.length&&p<s;p++)if((a=x(d[p]))!=null)return a}else if(t===wt)for(var y=e,p=0;p<y.length&&p<s;p++){var g=y[p],_=Oi(g);if(!F(_))return rn.Not;if((a=x(_[o]))!=null)return a}function x(D){var S=U(D);if(D!=null&&isFinite(Number(D))&&D!=="")return S?rn.Might:rn.Not;if(S&&D!=="-")return rn.Must}return rn.Not}var q8=q();function BR(e,t,n){var r=q8.get(t);if(!r)return n;var i=r(e);if(!i)return n;if(0)for(var o;o<i.length;o++);return n.concat(i)}var VR=re(),Fhe=re(),xf=(function(){function e(){}return e.prototype.getColorFromPalette=function(t,n,r){var i=Ge(this.get("color",!0)),o=this.get("colorLayer",!0);return X8(this,VR,i,o,t,n,r)},e.prototype.clearColorPalette=function(){K8(this,VR)},e})();function Z8(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].length>t)return e[r];return e[n-1]}function X8(e,t,n,r,i,o,a){o=o||e;var s=t(o),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=a==null||!r?n:Z8(r,a);if(c=c||n,!(!c||!c.length)){var f=c[l];return i&&(u[i]=f),s.paletteIdx=(l+1)%c.length,f}}function K8(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var fg,Df,UR,HR="\0_ec_inner",Q8=1;var $R=(function(e){R(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(n,r,i,o,a,s){o=o||{},this.option=null,this._theme=new tt(o),this._locale=new tt(a),this._optionManager=s},t.prototype.setOption=function(n,r,i){var o=GR(r);this._optionManager.setOption(n,i,o),this._resetOption(null,o)},t.prototype.resetOption=function(n,r){return this._resetOption(n,GR(r))},t.prototype._resetOption=function(n,r){var i=!1,o=this._optionManager;if(!n||n==="recreate"){var a=o.mountOption(n==="recreate");!this.option||n==="recreate"?UR(this,a):(this.restoreData(),this._mergeOption(a,r)),i=!0}if((n==="timeline"||n==="media")&&this.restoreData(),!n||n==="recreate"||n==="timeline"){var s=o.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,r))}if(!n||n==="recreate"||n==="media"){var l=o.getMediaOption(this);l.length&&E(l,function(u){i=!0,this._mergeOption(u,r)},this)}return i},t.prototype.mergeOption=function(n){this._mergeOption(n,null)},t.prototype._mergeOption=function(n,r){var i=this.option,o=this._componentsMap,a=this._componentsCount,s=[],l=q(),u=r&&r.replaceMergeMainTypeMap;LR(this),E(n,function(f,d){f!=null&&(Ve.hasClass(d)?d&&(s.push(d),l.set(d,!0)):i[d]=i[d]==null?ae(f):Ne(i[d],f,!0))}),u&&u.each(function(f,d){Ve.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),Ve.topologicalTravel(s,Ve.getAllClassMainTypes(),c,this);function c(f){var d=BR(this,f,Ge(n[f])),p=o.get(f),h=p?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",m=Kh(p,d,h);K1(m,f,Ve),i[f]=null,o.set(f,null),a.set(f,0);var g=[],v=[],y=0,_,x;E(m,function(D,S){var C=D.existing,w=D.newOption;if(!w)C&&(C.mergeOption({},this),C.optionUpdated({},!1));else{var I=f==="series",b=Ve.getClass(f,D.keyInfo.subType,!I);if(!b){if(0)var T,A;return}if(f==="tooltip"){if(_)return;_=!0}if(C&&C.constructor===b)C.name=D.keyInfo.name,C.mergeOption(w,this),C.optionUpdated(w,!1);else{var M=P({componentIndex:S},D.keyInfo);C=new b(w,this,this,M),P(C,M),D.brandNew&&(C.__requireNewView=!0),C.init(w,this,this),C.optionUpdated(null,!0)}}C?(g.push(C.option),v.push(C),y++):(g.push(void 0),v.push(void 0))},this),i[f]=g,o.set(f,v),a.set(f,y),f==="series"&&fg(this)}this._seriesIndices||fg(this)},t.prototype.getOption=function(){var n=ae(this.option);return E(n,function(r,i){if(Ve.hasClass(i)){for(var o=Ge(r),a=o.length,s=!1,l=a-1;l>=0;l--)o[l]&&!Vl(o[l])?s=!0:(o[l]=null,!s&&a--);o.length=a,n[i]=o}}),delete n[HR],n},t.prototype.setTheme=function(n){this._theme=new tt(n),this._resetOption("recreate",null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(n){this._payload=n},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(n,r){var i=this._componentsMap.get(n);if(i){var o=i[r||0];if(o)return o;if(r==null){for(var a=0;a<i.length;a++)if(i[a])return i[a]}}},t.prototype.queryComponents=function(n){var r=n.mainType;if(!r)return[];var i=n.index,o=n.id,a=n.name,s=this._componentsMap.get(r);if(!s||!s.length)return[];var l;return i!=null?(l=[],E(Ge(i),function(u){s[u]&&l.push(s[u])})):o!=null?l=zR("id",o,s):a!=null?l=zR("name",a,s):l=qe(s,function(u){return!!u}),jR(l,n)},t.prototype.findComponents=function(n){var r=n.query,i=n.mainType,o=s(r),a=o?this.queryComponents(o):qe(this._componentsMap.get(i),function(u){return!!u});return l(jR(a,n));function s(u){var c=i+"Index",f=i+"Id",d=i+"Name";return u&&(u[c]!=null||u[f]!=null||u[d]!=null)?{mainType:i,index:u[c],id:u[f],name:u[d]}:null}function l(u){return n.filter?qe(u,n.filter):u}},t.prototype.eachComponent=function(n,r,i){var o=this._componentsMap;if(Y(n)){var a=r,s=n;o.each(function(f,d){for(var p=0;f&&p<f.length;p++){var h=f[p];h&&s.call(a,d,h,h.componentIndex)}})}else for(var l=U(n)?o.get(n):z(n)?this.findComponents(n):null,u=0;l&&u<l.length;u++){var c=l[u];c&&r.call(i,c,c.componentIndex)}},t.prototype.getSeriesByName=function(n){var r=Ot(n,null);return qe(this._componentsMap.get("series"),function(i){return!!i&&r!=null&&i.name===r})},t.prototype.getSeriesByIndex=function(n){return this._componentsMap.get("series")[n]},t.prototype.getSeriesByType=function(n){return qe(this._componentsMap.get("series"),function(r){return!!r&&r.subType===n})},t.prototype.getSeries=function(){return qe(this._componentsMap.get("series"),function(n){return!!n})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(n,r){Df(this),E(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];n.call(r,o,i)},this)},t.prototype.eachRawSeries=function(n,r){E(this._componentsMap.get("series"),function(i){i&&n.call(r,i,i.componentIndex)})},t.prototype.eachSeriesByType=function(n,r,i){Df(this),E(this._seriesIndices,function(o){var a=this._componentsMap.get("series")[o];a.subType===n&&r.call(i,a,o)},this)},t.prototype.eachRawSeriesByType=function(n,r,i){return E(this.getSeriesByType(n),r,i)},t.prototype.isSeriesFiltered=function(n){return Df(this),this._seriesIndicesMap.get(n.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(n,r){Df(this);var i=[];E(this._seriesIndices,function(o){var a=this._componentsMap.get("series")[o];n.call(r,a,o)&&i.push(o)},this),this._seriesIndices=i,this._seriesIndicesMap=q(i)},t.prototype.restoreData=function(n){fg(this);var r=this._componentsMap,i=[];r.each(function(o,a){Ve.hasClass(a)&&i.push(a)}),Ve.topologicalTravel(i,Ve.getAllClassMainTypes(),function(o){E(r.get(o),function(a){a&&(o!=="series"||!J8(a,n))&&a.restoreData()})})},t.internalField=(function(){fg=function(n){var r=n._seriesIndices=[];E(n._componentsMap.get("series"),function(i){i&&r.push(i.componentIndex)}),n._seriesIndicesMap=q(r)},Df=function(n){},UR=function(n,r){n.option={},n.option[HR]=Q8,n._componentsMap=q({series:[]}),n._componentsCount=q();var i=r.aria;z(i)&&i.enabled==null&&(i.enabled=!0),e4(r,n._theme.option),Ne(r,ug,!1),n._mergeOption(r,null)}})(),t})(tt);function J8(e,t){if(t){var n=t.seriesIndex,r=t.seriesId,i=t.seriesName;return n!=null&&e.componentIndex!==n||r!=null&&e.id!==r||i!=null&&e.name!==i}}function e4(e,t){var n=e.color&&!e.colorLayer;E(t,function(r,i){i==="colorLayer"&&n||i==="color"&&e.color||Ve.hasClass(i)||(typeof r=="object"?e[i]=e[i]?Ne(e[i],r,!1):ae(r):e[i]==null&&(e[i]=r))})}function zR(e,t,n){if(F(t)){var r=q();return E(t,function(o){if(o!=null){var a=Ot(o,null);a!=null&&r.set(o,!0)}}),qe(n,function(o){return o&&r.get(o[e])})}else{var i=Ot(t,null);return qe(n,function(o){return o&&i!=null&&o[e]===i})}}function jR(e,t){return t.hasOwnProperty("subType")?qe(e,function(n){return n&&n.subType===t.subType}):e}function GR(e){var t=q();return e&&E(Ge(e.replaceMerge),function(n){t.set(n,!0)}),{replaceMergeMainTypeMap:t}}Kt($R,xf);var dg=$R;var t4=/^(min|max)?(.+)$/,n4=(function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,n,r){t&&(E(Ge(t.series),function(a){a&&a.data&&ft(a.data)&&Sl(a.data)}),E(Ge(t.dataset),function(a){a&&a.source&&ft(a.source)&&Sl(a.source)})),t=ae(t);var i=this._optionBackup,o=r4(t,n,!i);this._newBaseOption=o.baseOption,i?(o.timelineOptions.length&&(i.timelineOptions=o.timelineOptions),o.mediaList.length&&(i.mediaList=o.mediaList),o.mediaDefault&&(i.mediaDefault=o.mediaDefault)):this._optionBackup=o},e.prototype.mountOption=function(t){var n=this._optionBackup;return this._timelineOptions=n.timelineOptions,this._mediaList=n.mediaList,this._mediaDefault=n.mediaDefault,this._currentMediaIndices=[],ae(t?n.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(t){var n,r=this._timelineOptions;if(r.length){var i=t.getComponent("timeline");i&&(n=ae(r[i.getCurrentIndex()]))}return n},e.prototype.getMediaOption=function(t){var n=this._api.getWidth(),r=this._api.getHeight(),i=this._mediaList,o=this._mediaDefault,a=[],s=[];if(!i.length&&!o)return s;for(var l=0,u=i.length;l<u;l++)i4(i[l].query,n,r)&&a.push(l);return!a.length&&o&&(a=[-1]),a.length&&!a4(a,this._currentMediaIndices)&&(s=V(a,function(c){return ae(c===-1?o.option:i[c].option)})),this._currentMediaIndices=a,s},e})();function r4(e,t,n){var r=[],i,o,a=e.baseOption,s=e.timeline,l=e.options,u=e.media,c=!!e.media,f=!!(l||s||a&&a.timeline);a?(o=a,o.timeline||(o.timeline=s)):((f||c)&&(e.options=e.media=null),o=e),c&&F(u)&&E(u,function(p){p&&p.option&&(p.query?r.push(p):i||(i=p))}),d(o),E(l,function(p){return d(p)}),E(r,function(p){return d(p.option)});function d(p){E(t,function(h){h(p,n)})}return{baseOption:o,timelineOptions:l||[],mediaDefault:i,mediaList:r}}function i4(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return E(e,function(o,a){var s=a.match(t4);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();o4(r[u],o,l)||(i=!1)}}),i}function o4(e,t,n){return n==="min"?e>=t:n==="max"?e<=t:e===t}function a4(e,t){return e.join(",")===t.join(",")}var WR=n4;var Fr=E,Cf=z,YR=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function dC(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=YR.length;n<r;n++){var i=YR[n],o=t.normal,a=t.emphasis;o&&o[i]&&(e[i]=e[i]||{},e[i].normal?Ne(e[i].normal,o[i]):e[i].normal=o[i],o[i]=null),a&&a[i]&&(e[i]=e[i]||{},e[i].emphasis?Ne(e[i].emphasis,a[i]):e[i].emphasis=a[i],a[i]=null)}}function Zt(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,i=e[t].emphasis;r&&(n?(e[t].normal=e[t].emphasis=null,he(e[t],r)):e[t]=r),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function Sf(e){Zt(e,"itemStyle"),Zt(e,"lineStyle"),Zt(e,"areaStyle"),Zt(e,"label"),Zt(e,"labelLine"),Zt(e,"upperLabel"),Zt(e,"edgeLabel")}function mt(e,t){var n=Cf(e)&&e[t],r=Cf(n)&&n.textStyle;if(r)for(var i=0,o=OD.length;i<o;i++){var a=OD[i];r.hasOwnProperty(a)&&(n[a]=r[a])}}function sr(e){e&&(Sf(e),mt(e,"label"),e.emphasis&&mt(e.emphasis,"label"))}function s4(e){if(Cf(e)){dC(e),Sf(e),mt(e,"label"),mt(e,"upperLabel"),mt(e,"edgeLabel"),e.emphasis&&(mt(e.emphasis,"label"),mt(e.emphasis,"upperLabel"),mt(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(dC(t),sr(t));var n=e.markLine;n&&(dC(n),sr(n));var r=e.markArea;r&&sr(r);var i=e.data;if(e.type==="graph"){i=i||e.nodes;var o=e.links||e.edges;if(o&&!ft(o))for(var a=0;a<o.length;a++)sr(o[a]);E(e.categories,function(u){Sf(u)})}if(i&&!ft(i))for(var a=0;a<i.length;a++)sr(i[a]);if(t=e.markPoint,t&&t.data)for(var s=t.data,a=0;a<s.length;a++)sr(s[a]);if(n=e.markLine,n&&n.data)for(var l=n.data,a=0;a<l.length;a++)F(l[a])?(sr(l[a][0]),sr(l[a][1])):sr(l[a]);e.type==="gauge"?(mt(e,"axisLabel"),mt(e,"title"),mt(e,"detail")):e.type==="treemap"?(Zt(e.breadcrumb,"itemStyle"),E(e.levels,function(u){Sf(u)})):e.type==="tree"&&Sf(e.leaves)}}function Ui(e){return F(e)?e:e?[e]:[]}function qR(e){return(F(e)?e[0]:e)||{}}function pC(e,t){Fr(Ui(e.series),function(r){Cf(r)&&s4(r)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),Fr(n,function(r){Fr(Ui(e[r]),function(i){i&&(mt(i,"axisLabel"),mt(i.axisPointer,"label"))})}),Fr(Ui(e.parallel),function(r){var i=r&&r.parallelAxisDefault;mt(i,"axisLabel"),mt(i&&i.axisPointer,"label")}),Fr(Ui(e.calendar),function(r){Zt(r,"itemStyle"),mt(r,"dayLabel"),mt(r,"monthLabel"),mt(r,"yearLabel")}),Fr(Ui(e.radar),function(r){mt(r,"name"),r.name&&r.axisName==null&&(r.axisName=r.name,delete r.name),r.nameGap!=null&&r.axisNameGap==null&&(r.axisNameGap=r.nameGap,delete r.nameGap)}),Fr(Ui(e.geo),function(r){Cf(r)&&(sr(r),Fr(Ui(r.regions),function(i){sr(i)}))}),Fr(Ui(e.timeline),function(r){sr(r),Zt(r,"label"),Zt(r,"itemStyle"),Zt(r,"controlStyle",!0);var i=r.data;F(i)&&E(i,function(o){z(o)&&(Zt(o,"label"),Zt(o,"itemStyle"))})}),Fr(Ui(e.toolbox),function(r){Zt(r,"iconStyle"),Fr(r.feature,function(i){Zt(i,"iconStyle")})}),mt(qR(e.axisPointer),"label"),mt(qR(e.tooltip).axisPointer,"label")}function l4(e,t){for(var n=t.split(","),r=e,i=0;i<n.length&&(r=r&&r[n[i]],r!=null);i++);return r}function u4(e,t,n,r){for(var i=t.split(","),o=e,a,s=0;s<i.length-1;s++)a=i[s],o[a]==null&&(o[a]={}),o=o[a];(r||o[i[s]]==null)&&(o[i[s]]=n)}function ZR(e){e&&E(c4,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var c4=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],f4=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],hC=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Ef(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<hC.length;n++){var r=hC[n][1],i=hC[n][0];t[r]!=null&&(t[i]=t[r])}}function XR(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function KR(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function d4(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus="adjacency"))}function QR(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&QR(e[n].children,t)}function pg(e,t){pC(e,t),e.series=Ge(e.series),E(e.series,function(n){if(z(n)){var r=n.type;if(r==="line")n.clipOverflow!=null&&(n.clip=n.clipOverflow);else if(r==="pie"||r==="gauge"){n.clockWise!=null&&(n.clockwise=n.clockWise),XR(n.label);var i=n.data;if(i&&!ft(i))for(var o=0;o<i.length;o++)XR(i[o]);n.hoverOffset!=null&&(n.emphasis=n.emphasis||{},(n.emphasis.scaleSize=null)&&(n.emphasis.scaleSize=n.hoverOffset))}else if(r==="gauge"){var a=l4(n,"pointer.color");a!=null&&u4(n,"itemStyle.color",a)}else if(r==="bar"){Ef(n),Ef(n.backgroundStyle),Ef(n.emphasis);var i=n.data;if(i&&!ft(i))for(var o=0;o<i.length;o++)typeof i[o]=="object"&&(Ef(i[o]),Ef(i[o]&&i[o].emphasis))}else if(r==="sunburst"){var s=n.highlightPolicy;s&&(n.emphasis=n.emphasis||{},n.emphasis.focus||(n.emphasis.focus=s)),KR(n),QR(n.data,KR)}else r==="graph"||r==="sankey"?d4(n):r==="map"&&(n.mapType&&!n.map&&(n.map=n.mapType),n.mapLocation&&he(n,n.mapLocation));n.hoverAnimation!=null&&(n.emphasis=n.emphasis||{},n.emphasis&&n.emphasis.scale==null&&(n.emphasis.scale=n.hoverAnimation)),ZR(n)}}),e.dataRange&&(e.visualMap=e.dataRange),E(f4,function(n){var r=e[n];r&&(F(r)||(r=[r]),E(r,function(i){ZR(i)}))})}var JR=rm(p4);function p4(e){var t=q();e.eachSeries(function(n){var r=n.get("stack");if(r){var i=t.get(r)||t.set(r,[]),o=n.getData(),a={stackResultDimension:o.getCalculationInfo("stackResultDimension"),stackedOverDimension:o.getCalculationInfo("stackedOverDimension"),stackedDimension:o.getCalculationInfo("stackedDimension"),stackedByDimension:o.getCalculationInfo("stackedByDimension"),isStackedByIndex:o.getCalculationInfo("isStackedByIndex"),data:o,seriesModel:n};if(!a.stackedDimension||!(a.isStackedByIndex||a.stackedByDimension))return;i.push(a)}}),t.each(function(n){if(n.length!==0){var r=n[0].seriesModel,i=r.get("stackOrder")||"seriesAsc";i==="seriesDesc"&&n.reverse(),E(n,function(o,a){o.data.setCalculationInfo("stackedOnSeries",a>0?n[a-1].seriesModel:null)}),h4(n)}})}function h4(e){E(e,function(t,n){var r=[],i=[NaN,NaN],o=[t.stackResultDimension,t.stackedOverDimension],a=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";a.modify(o,function(u,c,f){var d=a.get(t.stackedDimension,f);if(isNaN(d))return i;var p,h;s?h=a.getRawIndex(f):p=a.get(t.stackedByDimension,f);for(var m=NaN,g=n-1;g>=0;g--){var v=e[g];if(s||(h=v.data.rawIndexOf(v.stackedByDimension,p)),h>=0){var y=v.data.getByRawIndex(v.stackResultDimension,h);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&d>=0&&y>0||l==="samesign"&&d<=0&&y<0){d=j1(d,y),m=y;break}}}return r[0]=d,r[1]=m,r})})}var hg=(function(){function e(t){this.data=t.data||(t.sourceFormat===Rn?{}:[]),this.sourceFormat=t.sourceFormat||oS,this.seriesLayoutBy=t.seriesLayoutBy||Ln,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var n=this.dimensionsDefine=t.dimensionsDefine;if(n)for(var r=0;r<n.length;r++){var i=n[r];i.type==null&&cg(this,r)===rn.Must&&(i.type="ordinal")}}return e})();function lu(e){return e instanceof hg}function bf(e,t,n){n=n||mC(e);var r=t.seriesLayoutBy,i=m4(e,n,r,t.sourceHeader,t.dimensions),o=new hg({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:ae(t)});return o}function uu(e){return new hg({data:e,sourceFormat:ft(e)?Pn:wt})}function nP(e){return new hg({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:ae(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function mC(e){var t=oS;if(ft(e))t=Pn;else if(F(e)){e.length===0&&(t=xt);for(var n=0,r=e.length;n<r;n++){var i=e[n];if(i!=null){if(F(i)||ft(i)){t=xt;break}else if(z(i)){t=nn;break}}}}else if(z(e)){for(var o in e)if(Q(e,o)&&ct(e[o])){t=Rn;break}}return t}function m4(e,t,n,r,i){var o,a;if(!e)return{dimensionsDefine:eP(i),startIndex:a,dimensionsDetectedCount:o};if(t===xt){var s=e;r==="auto"||r==null?tP(function(u){u!=null&&u!=="-"&&(U(u)?a==null&&(a=1):a=0)},n,s,10):a=ge(r)?r:r?1:0,!i&&a===1&&(i=[],tP(function(u,c){i[c]=u!=null?u+"":""},n,s,1/0)),o=i?i.length:n===oi?s.length:s[0]?s[0].length:null}else if(t===nn)i||(i=g4(e));else if(t===Rn)i||(i=[],E(e,function(u,c){i.push(c)}));else if(t===wt){var l=Oi(e[0]);o=F(l)&&l.length||1}return{startIndex:a,dimensionsDefine:eP(i),dimensionsDetectedCount:o}}function g4(e){for(var t=0,n;t<e.length&&!(n=e[t++]););if(n)return X(n)}function eP(e){if(e){var t=q();return V(e,function(n,r){n=z(n)?n:{name:n};var i={name:n.name,displayName:n.displayName,type:n.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var o=t.get(i.name);return o?i.name+="-"+o.count++:t.set(i.name,{count:1}),i})}}function tP(e,t,n,r){if(t===oi)for(var i=0;i<n.length&&i<r;i++)e(n[i]?n[i][0]:null,i);else for(var o=n[0]||[],i=0;i<o.length&&i<r;i++)e(o[i],i)}function mg(e){var t=e.sourceFormat;return t===nn||t===Rn}var ys,_s,xs,Ds,rP,iP,vg=(function(){function e(t,n){var r=lu(t)?t:uu(t);this._source=r;var i=this._data=r.data,o=r.sourceFormat,a=r.seriesLayoutBy;if(o===Pn&&(this._offset=0,this._dimSize=n,this._data=i),0)var s;iP(this,i,r)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,n){},e.prototype.appendData=function(t){},e.prototype.clean=function(){},e.protoInitialize=(function(){var t=e.prototype;t.pure=!1,t.persistent=!0})(),e.internalField=(function(){var t;iP=function(a,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,f=l.startIndex,d=l.dimensionsDefine,p=rP[xC(u,c)];if(P(a,p),u===Pn)a.getItem=n,a.count=i,a.fillStorage=r;else{var h=vC(u,c);a.getItem=be(h,null,s,f,d);var m=yC(u,c);a.count=be(m,null,s,f,d)}};var n=function(a,s){a=a-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,c=u*a,f=0;f<u;f++)s[f]=l[c+f];return s},r=function(a,s,l,u){for(var c=this._data,f=this._dimSize,d=0;d<f;d++){for(var p=u[d],h=p[0]==null?1/0:p[0],m=p[1]==null?-1/0:p[1],g=s-a,v=l[d],y=0;y<g;y++){var _=c[y*f+d];v[a+y]=_,_<h&&(h=_),_>m&&(m=_)}p[0]=h,p[1]=m}},i=function(){return this._data?this._data.length/this._dimSize:0};rP=(t={},t[xt+"_"+Ln]={pure:!0,appendData:o},t[xt+"_"+oi]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[nn]={pure:!0,appendData:o},t[Rn]={pure:!0,appendData:function(a){var s=this._data;E(a,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[wt]={appendData:o},t[Pn]={persistent:!1,pure:!0,appendData:function(a){this._data=a},clean:function(){this._offset+=this.count(),this._data=null}},t);function o(a){for(var s=0;s<a.length;s++)this._data.push(a[s])}})(),e})();var gg=function(e){F(e)||AD("series.data or dataset.source must be an array.")},Dme=(ys={},ys[xt+"_"+Ln]=gg,ys[xt+"_"+oi]=gg,ys[nn]=gg,ys[Rn]=function(e,t){for(var n=0;n<t.length;n++){var r=t[n].name;r==null&&AD("dimension name must not be null/undefined.")}},ys[wt]=gg,ys),oP=function(e,t,n,r){return e[r]},v4=(_s={},_s[xt+"_"+Ln]=function(e,t,n,r){return e[r+t]},_s[xt+"_"+oi]=function(e,t,n,r,i){r+=t;for(var o=i||[],a=e,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[r]:null}return o},_s[nn]=oP,_s[Rn]=function(e,t,n,r,i){for(var o=i||[],a=0;a<n.length;a++){var s=n[a].name,l=s!=null?e[s]:null;o[a]=l?l[r]:null}return o},_s[wt]=oP,_s);function vC(e,t){var n=v4[xC(e,t)];return n}var aP=function(e,t,n){return e.length},y4=(xs={},xs[xt+"_"+Ln]=function(e,t,n){return Math.max(0,e.length-t)},xs[xt+"_"+oi]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},xs[nn]=aP,xs[Rn]=function(e,t,n){var r=n[0].name,i=r!=null?e[r]:null;return i?i.length:0},xs[wt]=aP,xs);function yC(e,t){var n=y4[xC(e,t)];return n}var gC=function(e,t,n){return e[t]},_4=(Ds={},Ds[xt]=gC,Ds[nn]=function(e,t,n){return e[n]},Ds[Rn]=gC,Ds[wt]=function(e,t,n){var r=Oi(e);return r instanceof Array?r[t]:r},Ds[Pn]=gC,Ds);function _C(e){var t=_4[e];return t}function xC(e,t){return e===xt?e+"_"+t:e}function Hi(e,t,n){if(e){var r=e.getRawDataItem(t);if(r!=null){var i=e.getStore(),o=i.getSource().sourceFormat;if(n!=null){var a=e.getDimensionIndex(n),s=i.getDimensionProperty(a);return _C(o)(r,a,s)}else{var l=r;return o===wt&&(l=Oi(r)),l}}}}var x4=/\{@(.+?)\}/g,sP=(function(){function e(){}return e.prototype.getDataParams=function(t,n){var r=this.getData(n),i=this.getRawValue(t,n),o=r.getRawIndex(t),a=r.getName(t),s=r.getRawDataItem(t),l=r.getItemVisual(t,"style"),u=l&&l[r.getItemVisual(t,"drawType")||"fill"],c=l&&l.stroke,f=this.mainType,d=f==="series",p=r.userOutput&&r.userOutput.get();return{componentType:f,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:a,dataIndex:o,data:s,dataType:n,value:i,color:u,borderColor:c,dimensionNames:p?p.fullDimensions:null,encode:p?p.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,n,r,i,o,a){n=n||"normal";var s=this.getData(r),l=this.getDataParams(t,r);if(a&&(l.value=a.interpolatedValue),i!=null&&F(l.value)&&(l.value=l.value[i]),!o){var u=s.getItemModel(t);o=u.get(n==="normal"?["label","formatter"]:[n,"label","formatter"])}if(Y(o))return l.status=n,l.dimensionIndex=i,o(l);if(U(o)){var c=ng(o,l);return c.replace(x4,function(f,d){var p=d.length,h=d;h.charAt(0)==="["&&h.charAt(p-1)==="]"&&(h=+h.slice(1,p-1));var m=Hi(s,t,h);if(a&&F(a.interpolatedValue)){var g=s.getDimensionIndex(h);g>=0&&(m=a.interpolatedValue[g])}return m!=null?m+"":""})}},e.prototype.getRawValue=function(t,n){return Hi(this.getData(n),t)},e.prototype.formatTooltip=function(t,n,r){},e})();function DC(e){var t,n;return z(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function Lo(e){return new D4(e)}var D4=(function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var n=this._upstream,r=t&&t.skip;if(this._dirty&&n){var i=this.context;i.data=i.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var o;this._plan&&!r&&(o=this._plan(this.context));var a=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(a!==l||s!==u)&&(o="reset");function c(y){return!(y>=1)&&(y=1),y}var f;(this._dirty||o==="reset")&&(this._dirty=!1,f=this._doReset(r)),this._modBy=l,this._modDataCount=u;var d=t&&t.step;if(n?this._dueEnd=n._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,h=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!r&&(f||p<h)){var m=this._progress;if(F(m))for(var g=0;g<m.length;g++)this._doProgress(m[g],p,h,l,u);else this._doProgress(m,p,h,l,u)}this._dueIndex=h;var v=this._settedOutputEnd!=null?this._settedOutputEnd:h;this._outputDueEnd=v}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(t,n,r,i,o){lP.reset(n,r,i,o),this._callingProgress=t,this._callingProgress({start:n,end:r,count:r-n,next:lP.next},this.context)},e.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var n,r;!t&&this._reset&&(n=this._reset(this.context),n&&n.progress&&(r=n.forceFirstProgress,n=n.progress),F(n)&&!n.length&&(n=null)),this._progress=n,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),r},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},e})();var lP=(function(){var e,t,n,r,i,o={reset:function(l,u,c,f){t=l,e=u,n=c,r=f,i=Math.ceil(r/n),o.next=n>1&&r>0?s:a}};return o;function a(){return t<e?t++:null}function s(){var l=t%i*n+Math.ceil(t/i),u=t>=e?null:l<r?l:t;return t++,u}})();function cu(e,t){var n=t&&t.type;return n==="ordinal"?e:(n==="time"&&!ge(e)&&e!=null&&e!=="-"&&(e=+Kr(e)),e==null||e===""?NaN:Number(e))}var Ome=q({number:function(e){return parseFloat(e)},time:function(e){return+Kr(e)},trim:function(e){return U(e)?Bt(e):e}});var S4={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}},Rme=(function(){function e(t,n){if(!ge(n)){var r="";Nt(r)}this._opFn=S4[t],this._rvalFloat=Qr(n)}return e.prototype.evaluate=function(t){return ge(t)?this._opFn(t,this._rvalFloat):this._opFn(Qr(t),this._rvalFloat)},e})(),uP=(function(){function e(t,n){var r=t==="desc";this._resultLT=r?1:-1,n==null&&(n=r?"min":"max"),this._incomparable=n==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,n){var r=ge(t)?t:Qr(t),i=ge(n)?n:Qr(n),o=isNaN(r),a=isNaN(i);if(o&&(r=this._incomparable),a&&(i=this._incomparable),o&&a){var s=U(t),l=U(n);s&&(r=l?t:0),l&&(i=s?n:0)}return r<i?this._resultLT:r>i?-this._resultLT:0},e})();var Pme=(function(){function e(t,n){this._rval=n,this._isEQ=t,this._rvalTypeof=typeof n,this._rvalFloat=Qr(n)}return e.prototype.evaluate=function(t){var n=t===this._rval;if(!n){var r=typeof t;r!==this._rvalTypeof&&(r==="number"||this._rvalTypeof==="number")&&(n=Qr(t)===this._rvalFloat)}return this._isEQ?n:!n},e})();function yg(e){var t="",n=-1/0,r=-1/0,i=1/0,o=1/0;return e&&(e.g!=null&&(t+="G"+e.g,n=e.g),e.ge!=null&&(t+="GE"+e.ge,r=e.ge),e.l!=null&&(t+="L"+e.l,i=e.l),e.le!=null&&(t+="LE"+e.le,o=e.le)),{key:t,g:n,ge:r,l:i,le:o}}function _g(e,t){return t>e.g&&t>=e.ge&&t<e.l&&t<=e.le}var C4=(function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,n){},e.prototype.retrieveValueFromItem=function(t,n){},e.prototype.convertValue=function(t,n){return cu(t,n)},e})();function E4(e,t){var n=new C4,r=e.data,i=n.sourceFormat=e.sourceFormat,o=e.startIndex,a="";e.seriesLayoutBy!==Ln&&Nt(a);var s=[],l={},u=e.dimensionsDefine;if(u)E(u,function(m,g){var v=m.name,y={index:g,name:v,displayName:m.displayName};if(s.push(y),v!=null){var _="";Q(l,v)&&Nt(_),l[v]=y}});else for(var c=0;c<e.dimensionsDetectedCount;c++)s.push({index:c});var f=vC(i,Ln);t.__isBuiltIn&&(n.getRawDataItem=function(m){return f(r,o,s,m)},n.getRawData=be(b4,null,e)),n.cloneRawData=be(w4,null,e);var d=yC(i,Ln);n.count=be(d,null,r,o,s);var p=_C(i);n.retrieveValue=function(m,g){var v=f(r,o,s,m);return h(v,g)};var h=n.retrieveValueFromItem=function(m,g){if(m!=null){var v=s[g];if(v)return p(m,g,v.name)}};return n.getDimensionInfo=be(T4,null,s,l),n.cloneAllDimensionInfo=be(I4,null,s),n}function b4(e){var t=e.sourceFormat;if(!SC(t)){var n="";Nt(n)}return e.data}function w4(e){var t=e.sourceFormat,n=e.data;if(!SC(t)){var r="";Nt(r)}if(t===xt){for(var i=[],o=0,a=n.length;o<a;o++)i.push(n[o].slice());return i}else if(t===nn){for(var i=[],o=0,a=n.length;o<a;o++)i.push(P({},n[o]));return i}}function T4(e,t,n){if(n!=null){if(ge(n)||!isNaN(n)&&!Q(t,n))return e[n];if(Q(t,n))return t[n]}}function I4(e){return ae(e)}var cP=q();function fP(e){e=ae(e);var t=e.type,n="";t||Nt(n);var r=t.split(":");r.length!==2&&Nt(n);var i=!1;r[0]==="echarts"&&(t=r[1],i=!0),e.__isBuiltIn=i,cP.set(t,e)}function dP(e,t,n){var r=Ge(e),i=r.length,o="";i||Nt(o);for(var a=0,s=i;a<s;a++){var l=r[a];t=M4(l,t,n,i===1?null:a),a!==s-1&&(t.length=Math.max(t.length,1))}return t}function M4(e,t,n,r){var i="";t.length||Nt(i),z(e)||Nt(i);var o=e.type,a=cP.get(o);a||Nt(i);var s=V(t,function(c){return E4(c,a)}),l=Ge(a.transform({upstream:s[0],upstreamList:s,config:ae(e.config)}));if(0&&e.print)var u;return V(l,function(c,f){var d="";z(c)||Nt(d),c.data||Nt(d);var p=mC(c.data);SC(p)||Nt(d);var h,m=t[0];if(m&&f===0&&!c.dimensions){var g=m.startIndex;g&&(c.data=m.data.slice(0,g).concat(c.data)),h={seriesLayoutBy:Ln,sourceHeader:g,dimensions:m.metaRawOption.dimensions}}else h={seriesLayoutBy:Ln,sourceHeader:0,dimensions:c.dimensions};return bf(c.data,h,null)})}function SC(e){return e===xt||e===nn}var A4=typeof Uint32Array===To?Array:Uint32Array,N4=typeof Uint16Array===To?Array:Uint16Array,EC=typeof Int32Array===To?Array:Int32Array,pP=typeof Float64Array===To?Array:Float64Array,mP={float:pP,int:EC,ordinal:Array,number:Array,time:pP},CC;function fu(e){return e>65535?A4:N4}function O4(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function hP(e,t,n,r,i){var o=mP[n||"float"];if(i){var a=e[t],s=a&&a.length;if(s!==r){for(var l=new o(r),u=0;u<s;u++)l[u]=a[u];e[t]=l}}else e[t]=new o(r)}var R4=(function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=q()}return e.prototype.initData=function(t,n,r){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),o=this.defaultDimValueGetter=CC[i.sourceFormat];this._dimValueGetter=r||o,this._rawExtent=[];var a=mg(i);this._dimensions=V(n,function(s){return{type:s.type,property:s.property}}),this._initDataFromProvider(0,t.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(t,n){var r=this._calcDimNameToIdx,i=this._dimensions,o=r.get(t);if(o!=null){if(i[o].type===n)return o}else o=i.length;return i[o]={type:n},r.set(t,o),this._chunks[o]=new mP[n||"float"](this._rawCount),this._rawExtent[o]=Ht(),o},e.prototype.collectOrdinalMeta=function(t,n){var r=this._chunks[t],i=this._dimensions[t],o=this._rawExtent,a=i.ordinalOffset||0,s=r.length;a===0&&(o[t]=Ht());for(var l=o[t],u=a;u<s;u++){var c=r[u]=n.parseAndCollect(r[u]);isNaN(c)||(l[0]=Math.min(c,l[0]),l[1]=Math.max(c,l[1]))}i.ordinalMeta=n,i.ordinalOffset=s,i.type="ordinal"},e.prototype.getOrdinalMeta=function(t){var n=this._dimensions[t],r=n.ordinalMeta;return r},e.prototype.getDimensionProperty=function(t){var n=this._dimensions[t];return n&&n.property},e.prototype.appendData=function(t){var n=this._provider,r=this.count();n.appendData(t);var i=n.count();return n.persistent||(i+=r),r<i&&this._initDataFromProvider(r,i,!0),[r,i]},e.prototype.appendValues=function(t,n){for(var r=this._chunks,i=this._dimensions,o=i.length,a=this._rawExtent,s=this.count(),l=s+Math.max(t.length,n||0),u=0;u<o;u++){var c=i[u];hP(r,u,c.type,l,!0)}for(var f=[],d=s;d<l;d++)for(var p=d-s,h=0;h<o;h++){var c=i[h],m=CC.arrayRows.call(this,t[p]||f,c.property,p,h);r[h][d]=m;var g=a[h];m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,n,r){for(var i=this._provider,o=this._chunks,a=this._dimensions,s=a.length,l=this._rawExtent,u=V(a,function(y){return y.property}),c=0;c<s;c++){var f=a[c];l[c]||(l[c]=Ht()),hP(o,c,f.type,n,r)}if(i.fillStorage)i.fillStorage(t,n,o,l);else for(var d=[],p=t;p<n;p++){d=i.getItem(p,d);for(var h=0;h<s;h++){var m=o[h],g=this._dimValueGetter(d,u[h],p,h);m[p]=g;var v=l[h];g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=n,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,n){if(!(n>=0&&n<this._count))return NaN;var r=this._chunks[t];return r?r[this.getRawIndex(n)]:NaN},e.prototype.getValues=function(t,n){var r=[],i=[];if(n==null){n=t,t=[];for(var o=0;o<this._dimensions.length;o++)i.push(o)}else i=t;for(var o=0,a=i.length;o<a;o++)r.push(this.get(i[o],n));return r},e.prototype.getByRawIndex=function(t,n){if(!(n>=0&&n<this._rawCount))return NaN;var r=this._chunks[t];return r?r[n]:NaN},e.prototype.getSum=function(t){var n=this._chunks[t],r=0;if(n)for(var i=0,o=this.count();i<o;i++){var a=this.get(t,i);isNaN(a)||(r+=a)}return r},e.prototype.getMedian=function(t){var n=[];this.each([t],function(i){isNaN(i)||n.push(i)}),Bl(n);var r=this.count();return r===0?0:r%2===1?n[(r-1)/2]:(n[r/2]+n[r/2-1])/2},e.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var n=this._indices,r=n[t];if(r!=null&&r<this._count&&r===t)return t;for(var i=0,o=this._count-1;i<=o;){var a=(i+o)/2|0;if(n[a]<t)i=a+1;else if(n[a]>t)o=a-1;else return a}return-1},e.prototype.getIndices=function(){var t,n=this._indices;if(n){var r=n.constructor,i=this._count;if(r===Array){t=new r(i);for(var o=0;o<i;o++)t[o]=n[o]}else t=new r(n.buffer,0,i)}else{var r=fu(this._rawCount);t=new r(this.count());for(var o=0;o<t.length;o++)t[o]=o}return t},e.prototype.filter=function(t,n){if(!this._count)return this;for(var r=this.clone(),i=r.count(),o=fu(r._rawCount),a=new o(i),s=[],l=t.length,u=0,c=t[0],f=r._chunks,d=0;d<i;d++){var p=void 0,h=r.getRawIndex(d);if(l===0)p=n(d);else if(l===1){var m=f[c][h];p=n(m,d)}else{for(var g=0;g<l;g++)s[g]=f[t[g]][h];s[g]=d,p=n.apply(null,s)}p&&(a[u++]=h)}return u<i&&(r._indices=a),r._count=u,r._extent=[],r._updateGetRawIdx(),r},e.prototype.selectRange=function(t){var n=this.clone(),r=n._count;if(!r)return this;var i=X(t),o=i.length;if(!o)return this;var a=n.count(),s=fu(n._rawCount),l=new s(a),u=0,c=i[0],f=t[c][0],d=t[c][1],p=n._chunks,h=!1;if(!n._indices){var m=0;if(o===1){for(var g=p[i[0]],v=0;v<r;v++){var y=g[v];(y>=f&&y<=d||isNaN(y))&&(l[u++]=m),m++}h=!0}else if(o===2){for(var g=p[i[0]],_=p[i[1]],x=t[i[1]][0],D=t[i[1]][1],v=0;v<r;v++){var y=g[v],S=_[v];(y>=f&&y<=d||isNaN(y))&&(S>=x&&S<=D||isNaN(S))&&(l[u++]=m),m++}h=!0}}if(!h)if(o===1)for(var v=0;v<a;v++){var C=n.getRawIndex(v),y=p[i[0]][C];(y>=f&&y<=d||isNaN(y))&&(l[u++]=C)}else for(var v=0;v<a;v++){for(var w=!0,C=n.getRawIndex(v),I=0;I<o;I++){var b=i[I],y=p[b][C];(y<t[b][0]||y>t[b][1])&&(w=!1)}w&&(l[u++]=n.getRawIndex(v))}return u<a&&(n._indices=l),n._count=u,n._extent=[],n._updateGetRawIdx(),n},e.prototype.map=function(t,n){var r=this.clone(t);return this._updateDims(r,t,n),r},e.prototype.modify=function(t,n){this._updateDims(this,t,n)},e.prototype._updateDims=function(t,n,r){for(var i=t._chunks,o=[],a=n.length,s=t.count(),l=[],u=t._rawExtent,c=0;c<n.length;c++)u[n[c]]=Ht();for(var f=0;f<s;f++){for(var d=t.getRawIndex(f),p=0;p<a;p++)l[p]=i[n[p]][d];l[a]=f;var h=r&&r.apply(null,l);if(h!=null){typeof h!="object"&&(o[0]=h,h=o);for(var c=0;c<h.length;c++){var m=n[c],g=h[c],v=u[m],y=i[m];y&&(y[d]=g),g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}}}},e.prototype.lttbDownSample=function(t,n){var r=this.clone([t],!0),i=r._chunks,o=i[t],a=this.count(),s=0,l=Math.floor(1/n),u=this.getRawIndex(0),c,f,d,p=new(fu(this._rawCount))(Math.min((Math.ceil(a/l)+2)*2,a));p[s++]=u;for(var h=1;h<a-1;h+=l){for(var m=Math.min(h+l,a-1),g=Math.min(h+l*2,a),v=(g+m)/2,y=0,_=m;_<g;_++){var x=this.getRawIndex(_),D=o[x];isNaN(D)||(y+=D)}y/=g-m;var S=h,C=Math.min(h+l,a),w=h-1,I=o[u];c=-1,d=S;for(var b=-1,T=0,_=S;_<C;_++){var x=this.getRawIndex(_),D=o[x];if(isNaN(D)){T++,b<0&&(b=x);continue}f=Math.abs((w-v)*(D-I)-(w-_)*(y-I)),f>c&&(c=f,d=x)}T>0&&T<C-S&&(p[s++]=Math.min(b,d),d=Math.max(b,d)),p[s++]=d,u=d}return p[s++]=this.getRawIndex(a-1),r._count=s,r._indices=p,r.getRawIndex=this._getRawIdx,r},e.prototype.minmaxDownSample=function(t,n){for(var r=this.clone([t],!0),i=r._chunks,o=Math.floor(1/n),a=i[t],s=this.count(),l=new(fu(this._rawCount))(Math.ceil(s/o)*2),u=0,c=0;c<s;c+=o){var f=c,d=a[this.getRawIndex(f)],p=c,h=a[this.getRawIndex(p)],m=o;c+o>s&&(m=s-c);for(var g=0;g<m;g++){var v=this.getRawIndex(c+g),y=a[v];y<d&&(d=y,f=c+g),y>h&&(h=y,p=c+g)}var _=this.getRawIndex(f),x=this.getRawIndex(p);f<p?(l[u++]=_,l[u++]=x):(l[u++]=x,l[u++]=_)}return r._count=u,r._indices=l,r._updateGetRawIdx(),r},e.prototype.downSample=function(t,n,r,i){for(var o=this.clone([t],!0),a=o._chunks,s=[],l=Math.floor(1/n),u=a[t],c=this.count(),f=o._rawExtent[t]=Ht(),d=new(fu(this._rawCount))(Math.ceil(c/l)),p=0,h=0;h<c;h+=l){l>c-h&&(l=c-h,s.length=l);for(var m=0;m<l;m++){var g=this.getRawIndex(h+m);s[m]=u[g]}var v=r(s),y=this.getRawIndex(Math.min(h+i(s,v)||0,c-1));u[y]=v,v<f[0]&&(f[0]=v),v>f[1]&&(f[1]=v),d[p++]=y}return o._count=p,o._indices=d,o._updateGetRawIdx(),o},e.prototype.each=function(t,n){if(this._count)for(var r=t.length,i=this._chunks,o=0,a=this.count();o<a;o++){var s=this.getRawIndex(o);switch(r){case 0:n(o);break;case 1:n(i[t[0]][s],o);break;case 2:n(i[t[0]][s],i[t[1]][s],o);break;default:for(var l=0,u=[];l<r;l++)u[l]=i[t[l]][s];u[l]=o,n.apply(null,u)}}},e.prototype.getDataExtent=function(t,n){var r=this._chunks[t],i=Ht();if(!r)return i;var o=this.count(),a=!this._indices&&!n;if(a)return this._rawExtent[t].slice();var s=this._extent,l=s[t]||(s[t]={}),u=yg(n),c=u.key,f=l[c];if(f)return f.slice();for(var d=i[0],p=i[1],h=0;h<o;h++){var m=this.getRawIndex(h),g=r[m];(!n||_g(u,g))&&(g<d&&(d=g),g>p&&(p=g))}return l[c]=[d,p]},e.prototype.getRawDataItem=function(t){var n=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(n);for(var r=[],i=this._chunks,o=0;o<i.length;o++)r.push(i[o][n]);return r},e.prototype.clone=function(t,n){var r=new e,i=this._chunks,o=t&&Mn(t,function(s,l){return s[l]=!0,s},{});if(o)for(var a=0;a<i.length;a++)r._chunks[a]=o[a]?O4(i[a]):i[a];else r._chunks=i;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},e.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=ae(this._extent),t._rawExtent=ae(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,n=void 0;if(t===Array){var r=this._indices.length;n=new t(r);for(var i=0;i<r;i++)n[i]=this._indices[i]}else n=new t(this._indices);return n}return null},e.prototype._getRawIdxIdentity=function(t){return t},e.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=(function(){function t(n,r,i,o){return cu(n[o],this._dimensions[o])}CC={arrayRows:t,objectRows:function(n,r,i,o){return cu(n[r],this._dimensions[o])},keyedColumns:t,original:function(n,r,i,o){var a=n&&(n.value==null?n:n.value);return cu(a instanceof Array?a[o]:a,this._dimensions[o])},typedArray:function(n,r,i,o){return n[o]}}})(),e})(),wf=R4;var vP=(function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,n){this._sourceList=t,this._upstreamSignList=n,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,n=this._getUpstreamSourceManagers(),r=!!n.length,i,o;if(xg(t)){var a=t,s=void 0,l=void 0,u=void 0;if(r){var c=n[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,o=[c._getVersionSign()]}else s=a.get("data",!0),l=ft(s)?Pn:wt,o=[];var f=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},p=G(f.seriesLayoutBy,d.seriesLayoutBy)||null,h=G(f.sourceHeader,d.sourceHeader),m=G(f.dimensions,d.dimensions),g=p!==d.seriesLayoutBy||!!h!=!!d.sourceHeader||m;i=g?[bf(s,{seriesLayoutBy:p,sourceHeader:h,dimensions:m},l)]:[]}else{var v=t;if(r){var y=this._applyTransform(n);i=y.sourceList,o=y.upstreamSignList}else{var _=v.get("source",!0);i=[bf(_,this._getSourceMetaRawOption(),null)],o=[]}}this._setLocalSource(i,o)},e.prototype._applyTransform=function(t){var n=this._sourceHost,r=n.get("transform",!0),i=n.get("fromTransformResult",!0);if(i!=null){var o="";t.length!==1&&gP(o)}var a,s=[],l=[];return E(t,function(u){u.prepareSource();var c=u.getSource(i||0),f="";i!=null&&!c&&gP(f),s.push(c),l.push(u._getVersionSign())}),r?a=dP(r,s,{datasetIndex:n.componentIndex}):i!=null&&(a=[nP(s[0])]),{sourceList:a,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),n=0;n<t.length;n++){var r=t[n];if(r._isDirty()||this._upstreamSignList[n]!==r._getVersionSign())return!0}},e.prototype.getSource=function(t){t=t||0;var n=this._sourceList[t];if(!n){var r=this._getUpstreamSourceManagers();return r[0]&&r[0].getSource(t)}return n},e.prototype.getSharedDataStore=function(t){var n=t.makeStoreSchema();return this._innerGetDataStore(n.dimensions,t.source,n.hash)},e.prototype._innerGetDataStore=function(t,n,r){var i=0,o=this._storeList,a=o[i];a||(a=o[i]={});var s=a[r];if(!s){var l=this._getUpstreamSourceManagers()[0];xg(this._sourceHost)&&l?s=l._innerGetDataStore(t,n,r):(s=new wf,s.initData(new vg(n,t.length),t)),a[r]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(xg(t)){var n=fC(t);return n?[n.getSourceManager()]:[]}else return V(FR(t),function(r){return r.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,n,r,i;if(xg(t))n=t.get("seriesLayoutBy",!0),r=t.get("sourceHeader",!0),i=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var o=t;n=o.get("seriesLayoutBy",!0),r=o.get("sourceHeader",!0),i=o.get("dimensions",!0)}return{seriesLayoutBy:n,sourceHeader:r,dimensions:i}},e})();function xg(e){return e.mainType==="series"}function gP(e){throw new Error(e)}var P4="line-height:1";function yP(e){var t=e.lineHeight;return t==null?P4:"line-height:"+Et(t+"")+"px"}function _P(e,t){var n=e.color||oe.color.tertiary,r=e.fontSize||12,i=e.fontWeight||"400",o=e.color||oe.color.secondary,a=e.fontSize||14,s=e.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+Et(r+"")+"px;color:"+Et(n)+";font-weight:"+Et(i+""),valueStyle:"font-size:"+Et(a+"")+"px;color:"+Et(o)+";font-weight:"+Et(s+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var L4=[0,10,20,30],k4=["",`
|
|
12
|
+
`,`
|
|
13
|
+
|
|
14
|
+
`,`
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
`];function Ss(e,t){return t.type=e,t}function bC(e){return e.type==="section"}function xP(e){return bC(e)?F4:B4}function DP(e){if(bC(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return E(e.blocks,function(i){var o=DP(i);o>=t&&(t=o+ +(r&&(!o||bC(i)&&!i.noHeader)))}),t}return 0}function F4(e,t,n,r){var i=t.noHeader,o=V4(DP(t)),a=[],s=t.blocks||[];Ke(!s||F(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Q(u,l)){var c=new uP(u[l],null);s.sort(function(m,g){return c.evaluate(m.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}E(s,function(m,g){var v=t.valueFormatter,y=xP(m)(v?P(P({},e),{valueFormatter:v}):e,m,g>0?o.html:0,r);y!=null&&a.push(y)});var f=e.renderMode==="richText"?a.join(o.richText):wC(r,a.join(""),i?n:o.html);if(i)return f;var d=tg(t.header,"ordinal",e.useUTC),p=_P(r,e.renderMode).nameStyle,h=yP(r);return e.renderMode==="richText"?SP(e,d,p)+o.richText+f:wC(r,'<div style="'+p+";"+h+';">'+Et(d)+"</div>"+f,n)}function B4(e,t,n,r){var i=e.renderMode,o=t.noName,a=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(x){return x=F(x)?x:[x],V(x,function(D,S){return tg(D,F(p)?p[S]:p,u)})};if(!(o&&a)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||oe.color.secondary,i),d=o?"":tg(l,"ordinal",u),p=t.valueType,h=a?[]:c(t.value,t.rawDataIndex),m=!s||!o,g=!s&&o,v=_P(r,i),y=v.nameStyle,_=v.valueStyle;return i==="richText"?(s?"":f)+(o?"":SP(e,d,y))+(a?"":z4(e,h,m,g,_)):wC(r,(s?"":f)+(o?"":U4(d,!s,y))+(a?"":H4(h,m,g,_)),n)}}function TC(e,t,n,r,i,o){if(e){var a=xP(e),s={useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter};return a(s,e,0,o)}}function V4(e){return{html:L4[e],richText:k4[e]}}function wC(e,t,n){var r='<div style="clear:both"></div>',i="margin: "+n+"px 0 0",o=yP(e);return'<div style="'+i+";"+o+';">'+t+r+"</div>"}function U4(e,t,n){var r=t?"margin-left:2px":"";return'<span style="'+n+";"+r+'">'+Et(e)+"</span>"}function H4(e,t,n,r){var i=n?"10px":"20px",o=t?"float:right;margin-left:"+i:"";return e=F(e)?e:[e],'<span style="'+o+";"+r+'">'+V(e,function(a){return Et(a)}).join(" ")+"</span>"}function SP(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function z4(e,t,n,r,i){var o=[i],a=r?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(F(t)?t.join(" "):t,o)}function CP(e,t){var n=e.getData().getItemVisual(t,"style"),r=n[e.visualDrawType];return kr(r)}function Dg(e,t){var n=e.get("padding");return n??(t==="richText"?[8,10]:10)}var Sg=(function(){function e(){this.richTextStyles={},this._nextStyleNameId=Zc()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,n,r){var i=r==="richText"?this._generateStyleName():null,o=CR({color:n,type:t,renderMode:r,markerId:i});return U(o)?o:(this.richTextStyles[i]=o.style,o.content)},e.prototype.wrapRichTextStyle=function(t,n){var r={};F(n)?E(n,function(o){return P(r,o)}):P(r,n);var i=this._generateStyleName();return this.richTextStyles[i]=r,"{"+i+"|"+t+"}"},e})();function EP(e){var t=e.series,n=e.dataIndex,r=e.multipleSeries,i=t.getData(),o=i.mapDimensionsAll("defaultedTooltip"),a=o.length,s=t.getRawValue(n),l=F(s),u=CP(t,n),c,f,d,p;if(a>1||l&&!a){var h=j4(s,t,n,o,u);c=h.inlineValues,f=h.inlineValueTypes,d=h.blocks,p=h.inlineValues[0]}else if(a){var m=i.getDimensionInfo(o[0]);p=c=Hi(i,n,o[0]),f=m.type}else p=c=l?s[0]:s;var g=Qh(t),v=g&&t.name||"",y=i.getName(n),_=r?v:y;return Ss("section",{header:v,noHeader:r||!g,sortParam:p,blocks:[Ss("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Bt(_),value:c,valueType:f,rawDataIndex:i.getRawIndex(n)})].concat(d||[])})}function j4(e,t,n,r,i){var o=t.getData(),a=Mn(e,function(f,d,p){var h=o.getDimensionInfo(p);return f=f||h&&h.tooltip!==!1&&h.displayName!=null},!1),s=[],l=[],u=[];r.length?E(r,function(f){c(Hi(o,n,f),f)}):E(e,c);function c(f,d){var p=o.getDimensionInfo(d);!p||p.otherDims.tooltip===!1||(a?u.push(Ss("nameValue",{markerType:"subItem",markerColor:i,name:p.displayName,value:f,valueType:p.type})):(s.push(f),l.push(p.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var ko=re();function Cg(e,t){return e.getName(t)||e.getId(t)}var G4="__universalTransitionEnabled",Eg=(function(e){R(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n._selectedDataIndicesMap={},n}return t.prototype.init=function(n,r,i){this.seriesIndex=this.componentIndex,this.dataTask=Lo({count:W4,reset:Y4}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(n,i);var o=ko(this).sourceManager=new vP(this);o.prepareSource();var a=this.getInitialData(n,i);wP(a,this),this.dataTask.context.data=a,ko(this).dataBeforeProcessed=a,bP(this),this._initSelectedMapFromData(a)},t.prototype.mergeDefaultAndTheme=function(n,r){var i=Oo(this),o=i?Ro(n):{},a=this.subType;Ve.hasClass(a)&&(a+="Series"),Ne(n,r.getTheme().get(this.subType)),Ne(n,this.getDefaultOption()),ND(n,"label",["show"]),this.fillDataTextStyle(n.data),i&&Fn(n,o,i)},t.prototype.mergeOption=function(n,r){n=Ne(this.option,n,!0),this.fillDataTextStyle(n.data);var i=Oo(this);i&&Fn(this.option,n,i);var o=ko(this).sourceManager;o.dirty(),o.prepareSource();var a=this.getInitialData(n,r);wP(a,this),this.dataTask.dirty(),this.dataTask.context.data=a,ko(this).dataBeforeProcessed=a,bP(this),this._initSelectedMapFromData(a)},t.prototype.fillDataTextStyle=function(n){if(n&&!ft(n))for(var r=["show"],i=0;i<n.length;i++)n[i]&&n[i].label&&ND(n[i],"label",r)},t.prototype.getInitialData=function(n,r){},t.prototype.appendData=function(n){var r=this.getRawData();r.appendData(n.data)},t.prototype.getData=function(n){var r=IC(this);if(r){var i=r.context.data;return n==null||!i.getLinkedData?i:i.getLinkedData(n)}else return ko(this).data},t.prototype.getAllData=function(){var n=this.getData();return n&&n.getLinkedDataAll?n.getLinkedDataAll():[{data:n}]},t.prototype.setData=function(n){var r=IC(this);if(r){var i=r.context;i.outputData=n,r!==this.dataTask&&(i.data=n)}ko(this).data=n},t.prototype.getEncode=function(){var n=this.get("encode",!0);if(n)return q(n)},t.prototype.getSourceManager=function(){return ko(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return ko(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var n=this.get("colorBy");return n||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var n=this.coordinateSystem;return n&&n.getBaseAxis&&n.getBaseAxis()},t.prototype.indicesOfNearest=function(n,r,i,o){var a=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(n);if(!s||!l)return[];var u=l.dataToCoord(i);o==null&&(o=1/0);for(var c=[],f=1/0,d=-1,p=0,h=a.getDimensionIndex(r),m=a.getStore(),g=0,v=m.count();g<v;g++){var y=m.get(h,g),_=l.dataToCoord(y),x=u-_,D=Math.abs(x);D<=o&&((D<f||D===f&&x>=0&&d<0)&&(f=D,d=x,p=0),x===d&&(c[p++]=g))}return c.length=p,c},t.prototype.formatTooltip=function(n,r,i){return EP({series:this,dataIndex:n,multipleSeries:r})},t.prototype.isAnimationEnabled=function(){var n=this.ecModel;if(ce.node&&!(n&&n.ssr))return!1;var r=this.getShallow("animation");return r&&this.getData().count()>this.getShallow("animationThreshold")&&(r=!1),!!r},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(n,r,i){var o=this.ecModel,a=xf.prototype.getColorFromPalette.call(this,n,r,i);return a||(a=o.getColorFromPalette(n,r,i)),a},t.prototype.coordDimToDataDim=function(n){return this.getRawData().mapDimensionsAll(n)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(n,r){this._innerSelect(this.getData(r),n)},t.prototype.unselect=function(n,r){var i=this.option.selectedMap;if(i){var o=this.option.selectedMode,a=this.getData(r);if(o==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<n.length;s++){var l=n[s],u=Cg(a,l);i[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(n,r){for(var i=[],o=0;o<n.length;o++)i[0]=n[o],this.isSelected(n[o],r)?this.unselect(i,r):this.select(i,r)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var n=this._selectedDataIndicesMap,r=X(n),i=[],o=0;o<r.length;o++){var a=n[r[o]];a>=0&&i.push(a)}return i},t.prototype.isSelected=function(n,r){var i=this.option.selectedMap;if(!i)return!1;var o=this.getData(r);return(i==="all"||i[Cg(o,n)])&&!o.getItemModel(n).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[G4])return!0;var n=this.option.universalTransition;return n?n===!0?!0:n&&n.enabled:!1},t.prototype._innerSelect=function(n,r){var i,o,a=this.option,s=a.selectedMode,l=r.length;if(!(!s||!l)){if(s==="series")a.selectedMap="all";else if(s==="multiple"){z(a.selectedMap)||(a.selectedMap={});for(var u=a.selectedMap,c=0;c<l;c++){var f=r[c],d=Cg(n,f);u[d]=!0,this._selectedDataIndicesMap[d]=n.getRawIndex(f)}}else if(s==="single"||s===!0){var p=r[l-1],d=Cg(n,p);a.selectedMap=(i={},i[d]=!0,i),this._selectedDataIndicesMap=(o={},o[d]=n.getRawIndex(p),o)}}},t.prototype._initSelectedMapFromData=function(n){if(!this.option.selectedMap){var r=[];n.hasItemOption&&n.each(function(i){var o=n.getRawDataItem(i);o&&o.selected&&r.push(i)}),r.length>0&&this._innerSelect(n,r)}},t.registerClass=function(n){return Ve.registerClass(n)},t.protoInitialize=(function(){var n=t.prototype;n.type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",n.visualDrawType="fill"})(),t})(Ve);Kt(Eg,sP);Kt(Eg,xf);im(Eg,Ve);function bP(e){var t=e.name;Qh(e)||(e.name=$4(e)||t)}function $4(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),r=[];return E(n,function(i){var o=t.getDimensionInfo(i);o.displayName&&r.push(o.displayName)}),r.join(" ")}function W4(e){return e.model.getRawData().count()}function Y4(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),q4}function q4(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function wP(e,t){E(mA(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,vt(Z4,t))})}function Z4(e,t){var n=IC(e);return n&&n.setOutputEnd((t||this).count()),t}function IC(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}var Bn=Eg;var MC=(function(){function e(){this.group=new ke,this.uid=No("viewComponent")}return e.prototype.init=function(t,n){},e.prototype.render=function(t,n,r,i){},e.prototype.dispose=function(t,n){},e.prototype.updateView=function(t,n,r,i){},e.prototype.updateLayout=function(t,n,r,i){},e.prototype.updateVisual=function(t,n,r,i){},e.prototype.toggleBlurSeries=function(t,n,r){},e.prototype.eachRendered=function(t){var n=this.group;n&&n.traverse(t)},e})();Hl(MC);So(MC);var on=MC;function Cs(){var e=re();return function(t){var n=e(t),r=t.pipelineContext,i=!!n.large,o=!!n.progressiveRender,a=n.large=!!(r&&r.large),s=n.progressiveRender=!!(r&&r.progressiveRender);return(i!==a||o!==s)&&"reset"}}var MP=re(),X4=Cs(),AC=(function(){function e(){this.group=new ke,this.uid=No("viewChart"),this.renderTask=Lo({plan:K4,reset:Q4}),this.renderTask.context={view:this}}return e.prototype.init=function(t,n){},e.prototype.render=function(t,n,r,i){},e.prototype.highlight=function(t,n,r,i){var o=t.getData(i&&i.dataType);o&&IP(o,i,"emphasis")},e.prototype.downplay=function(t,n,r,i){var o=t.getData(i&&i.dataType);o&&IP(o,i,"normal")},e.prototype.remove=function(t,n){this.group.removeAll()},e.prototype.dispose=function(t,n){},e.prototype.updateView=function(t,n,r,i){this.render(t,n,r,i)},e.prototype.updateVisual=function(t,n,r,i){this.render(t,n,r,i)},e.prototype.eachRendered=function(t){us(this.group,t)},e.markUpdateMethod=function(t,n){MP(t).updateMethod=n},e.protoInitialize=(function(){var t=e.prototype;t.type="chart"})(),e})();function TP(e,t,n){e&&cf(e)&&(t==="emphasis"?ts:ns)(e,n)}function IP(e,t,n){var r=tr(e,t),i=t&&t.highlightKey!=null?hO(t.highlightKey):null;r!=null?E(Ge(r),function(o){TP(e.getItemGraphicEl(o),n,i)}):e.eachItemGraphicEl(function(o){TP(o,n,i)})}Hl(AC,["dispose"]);So(AC);function K4(e){return X4(e.model)}function Q4(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,o=t.pipelineContext.progressiveRender,a=e.view,s=i&&MP(i).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return l!=="render"&&a[l](t,n,r,i),J4[l]}var J4={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},an=AC;var bg="\0__throttleOriginMethod",AP="\0__throttleRate",NP="\0__throttleType";function Tf(e,t,n){var r,i=0,o=0,a=null,s,l,u,c;t=t||0;function f(){o=new Date().getTime(),a=null,e.apply(l,u||[])}var d=function(){for(var p=[],h=0;h<arguments.length;h++)p[h]=arguments[h];r=new Date().getTime(),l=this,u=p;var m=c||t,g=c||n;c=null,s=r-(g?i:o)-m,clearTimeout(a),g?a=setTimeout(f,m):s>=0?f():a=setTimeout(f,-s),i=r};return d.clear=function(){a&&(clearTimeout(a),a=null)},d.debounceNextCall=function(p){c=p},d}function wg(e,t,n,r){var i=e[t];if(i){var o=i[bg]||i,a=i[NP],s=i[AP];if(s!==n||a!==r){if(n==null||!r)return e[t]=o;i=e[t]=Tf(o,n,r==="debounce"),i[bg]=o,i[NP]=r,i[AP]=n}return i}}function If(e,t){var n=e[t];n&&n[bg]&&(n.clear&&n.clear(),e[t]=n[bg])}var OP=re(),RP={itemStyle:Jr(WS,!0),lineStyle:Jr($S,!0)},t6={lineStyle:"stroke",itemStyle:"fill"};function PP(e,t){var n=e.visualStyleMapper||RP[t];return n||(console.warn("Unknown style type '"+t+"'."),RP.itemStyle)}function LP(e,t){var n=e.visualDrawType||t6[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var kP={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=e.getModel(r),o=PP(e,r),a=o(i),s=i.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=LP(e,r),u=a[l],c=Y(u)?u:null,f=a.fill==="auto"||a.stroke==="auto";if(!a[l]||c||f){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[l]||(a[l]=d,n.setVisual("colorFromPalette",!0)),a.fill=a.fill==="auto"||Y(a.fill)?d:a.fill,a.stroke=a.stroke==="auto"||Y(a.stroke)?d:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(p,h){var m=e.getDataParams(h),g=P({},a);g[l]=c(m),p.setItemVisual(h,"style",g)}}}},Mf=new tt,FP={createOnAllSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=PP(e,r),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(a,s){var l=a.getRawDataItem(s);if(l&&l[r]){Mf.option=l[r];var u=i(Mf),c=a.ensureUniqueItemVisual(s,"style");P(c,u),Mf.option.decal&&(a.setItemVisual(s,"decal",Mf.option.decal),Mf.option.decal.dirty=!0),o in u&&a.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},BP={performRawSeries:!0,overallReset:function(e){var t=q();e.eachSeries(function(n){if(!n.isColorBySeries()){var r=n.type+"-"+n.getColorBy();OP(n).scope=t.get(r)||t.set(r,{})}}),e.eachSeries(function(n){if(!n.isColorBySeries()){var r=n.getRawData(),i={},o=n.getData(),a=OP(n).scope,s=n.visualStyleAccessPath||"itemStyle",l=LP(n,s);o.each(function(u){var c=o.getRawIndex(u);i[c]=u}),r.each(function(u){var c=i[u],f=o.getItemVisual(c,"colorFromPalette");if(f){var d=o.ensureUniqueItemVisual(c,"style"),p=r.getName(u)||u+"",h=r.count();d[l]=n.getColorFromPalette(p,a,h)}})}})}};var Tg=Math.PI;function NC(e,t){t=t||{},he(t,{text:"loading",textColor:oe.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:oe.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var n=new ke,r=new $e({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new We({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),o=new $e({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});n.add(o);var a;return t.showSpinner&&(a=new mf({shape:{startAngle:-Tg/2,endAngle:-Tg/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),a.animateShape(!0).when(1e3,{endAngle:Tg*3/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:Tg*3/2}).delay(300).start("circularInOut"),n.add(a)),n.resize=function(){var s=i.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(e.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),c=e.getHeight()/2;t.showSpinner&&a.setShape({cx:u,cy:c}),o.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var n6=(function(){function e(t,n,r,i){this._stageTaskMap=q(),this.ecInstance=t,this.api=n,r=this._dataProcessorHandlers=r.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=r.concat(i)}return e.prototype.restoreData=function(t,n){t.restoreData(n),this._stageTaskMap.each(function(r){var i=r.overallTask;i&&i.dirty()})},e.prototype.getPerformArgs=function(t,n){if(t.__pipeline){var r=this._pipelineMap.get(t.__pipeline.id),i=r.context,o=!n&&r.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>r.blockIndex,a=o?r.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/a):null;return{step:a,modBy:l,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,n){var r=this._pipelineMap.get(t.uid),i=t.__preparePipelineContext?t.__preparePipelineContext(n,r):nm(t,n,r);t.pipelineContext=r.context=i},e.prototype.restorePipelines=function(t,n){var r=this,i=r._pipelineMap=q();n.eachSeries(function(o){var a=t.painter.type==="canvas"&&o.getProgressive(),s=o.uid;i.set(s,{id:s,head:null,tail:null,threshold:o.getProgressiveThreshold(),progressiveEnabled:a&&!(o.preventIncremental&&o.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),r._pipe(o,o.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,n=this.api.getModel(),r=this.api;E(this._allHandlers,function(i){var o=t.get(i.uid)||t.set(i.uid,{}),a="";Ke(!(i.reset&&i.overallReset),a),i.reset&&this._createSeriesStageTask(i,o,n,r),i.overallReset&&this._createOverallStageTask(i,o,n,r)},this)},e.prototype.prepareView=function(t,n,r,i){var o=t.renderTask,a=o.context;a.model=n,a.ecModel=r,a.api=i,o.__block=!t.incrementalPrepareRender,this._pipe(n,o)},e.prototype.performDataProcessorTasks=function(t,n){this._performStageTasks(this._dataProcessorHandlers,t,n,{block:!0})},e.prototype.performVisualTasks=function(t,n,r){this._performStageTasks(this._visualHandlers,t,n,r)},e.prototype._performStageTasks=function(t,n,r,i){i=i||{};var o=!1,a=this;E(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var c=a._stageTaskMap.get(l.uid),f=c.seriesTaskMap,d=c.overallTask;if(d){var p,h=d.agentStubMap;h.each(function(g){s(i,g)&&(g.dirty(),p=!0)}),p&&d.dirty(),a.updatePayload(d,r);var m=a.getPerformArgs(d,i.block);h.each(function(g){g.perform(m)}),d.perform(m)&&(o=!0)}else f&&f.each(function(g,v){s(i,g)&&g.dirty();var y=a.getPerformArgs(g,i.block);y.skip=!l.performRawSeries&&n.isSeriesFiltered(g.context.model),a.updatePayload(g,r),g.perform(y)&&(o=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=o||this.unfinished},e.prototype.performSeriesTasks=function(t){var n;t.eachSeries(function(r){n=r.dataTask.perform()||n}),this.unfinished=n||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var n=t.tail;do{if(n.__block){t.blockIndex=n.__idxInPipeline;break}n=n.getUpstream()}while(n)})},e.prototype.updatePayload=function(t,n){n!=="remain"&&(t.context.payload=n)},e.prototype._createSeriesStageTask=function(t,n,r,i){var o=this,a=n.seriesTaskMap,s=n.seriesTaskMap=q(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?r.eachRawSeries(c):l?r.eachRawSeriesByType(l,c):u&&u(r,i).each(c);function c(f){var d=f.uid,p=s.set(d,a&&a.get(d)||Lo({plan:s6,reset:l6,count:c6}));p.context={model:f,ecModel:r,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:o},o._pipe(f,p)}},e.prototype._createOverallStageTask=function(t,n,r,i){var o=this,a=n.overallTask=n.overallTask||Lo({reset:r6});a.context={ecModel:r,api:i,overallReset:t.overallReset,scheduler:o};var s=a.agentStubMap,l=a.agentStubMap=q(),u=t.seriesType,c=t.getTargetSeries,f=t.dirtyOnOverallProgress,d=!1,p="";Ke(!t.createOnAllSeries,p),u?r.eachRawSeriesByType(u,h):c?c(r,i).each(h):E(r.getSeries(),h);function h(m){var g=m.uid,v=l.set(g,s&&s.get(g)||(d=!0,Lo({reset:i6,onDirty:a6})));v.context={model:m,dirtyOnOverallProgress:f},v.agent=a,v.__block=f,o._pipe(m,v)}d&&a.dirty()},e.prototype._pipe=function(t,n){var r=t.uid,i=this._pipelineMap.get(r);!i.head&&(i.head=n),i.tail&&i.tail.pipe(n),i.tail=n,n.__idxInPipeline=i.count++,n.__pipeline=i},e.wrapStageHandler=function(t,n){return Y(t)&&(t={overallReset:t,seriesType:f6(t)}),t.uid=No("stageHandler"),n&&(t.visualType=n),t},e})();function r6(e){e.overallReset(e.ecModel,e.api,e.payload)}function i6(e){return e.dirtyOnOverallProgress&&o6}function o6(){this.agent.dirty(),this.getDownstream().dirty()}function a6(){this.agent&&this.agent.dirty()}function s6(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function l6(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Ge(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?V(t,function(n,r){return VP(r)}):u6}var u6=VP(0);function VP(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var o=t.start;o<t.end;o++)i.dataEach(r,o);else i&&i.progress&&i.progress(t,r)}}function c6(e){return e.data.count()}function f6(e){Ig=null;try{e(Af,UP)}catch{}return Ig}var Af={},UP={},Ig;HP(Af,dg);HP(UP,pm);Af.eachSeriesByType=Af.eachRawSeriesByType=function(e){Ig=e};Af.eachComponent=function(e){e.mainType==="series"&&e.subType&&(Ig=e.subType)};function HP(e,t){for(var n in t.prototype)e[n]=Qe}var OC=n6;var $=oe.darkColor,zP=$.background,Nf=function(){return{axisLine:{lineStyle:{color:$.axisLine}},splitLine:{lineStyle:{color:$.axisSplitLine}},splitArea:{areaStyle:{color:[$.backgroundTint,$.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:$.axisMinorSplitLine}},axisLabel:{color:$.axisLabel},axisName:{}}},jP={label:{color:$.secondary},itemStyle:{borderColor:$.borderTint},dividerLineStyle:{color:$.border}},GP={darkMode:!0,color:$.theme,backgroundColor:zP,axisPointer:{lineStyle:{color:$.border},crossStyle:{color:$.borderShade},label:{color:$.tertiary}},legend:{textStyle:{color:$.secondary},pageTextStyle:{color:$.tertiary}},textStyle:{color:$.secondary},title:{textStyle:{color:$.primary},subtextStyle:{color:$.quaternary}},toolbox:{iconStyle:{borderColor:$.accent50},feature:{dataView:{backgroundColor:zP,textColor:$.primary,textareaColor:$.background,textareaBorderColor:$.border,buttonColor:$.accent50,buttonTextColor:$.neutral00}}},tooltip:{backgroundColor:$.neutral20,defaultBorderColor:$.border,textStyle:{color:$.tertiary}},dataZoom:{borderColor:$.accent10,textStyle:{color:$.tertiary},brushStyle:{color:$.backgroundTint},handleStyle:{color:$.neutral00,borderColor:$.accent20},moveHandleStyle:{color:$.accent40},emphasis:{handleStyle:{borderColor:$.accent50}},dataBackground:{lineStyle:{color:$.accent30},areaStyle:{color:$.accent20}},selectedDataBackground:{lineStyle:{color:$.accent50},areaStyle:{color:$.accent30}}},visualMap:{textStyle:{color:$.secondary},handleStyle:{borderColor:$.neutral30}},timeline:{lineStyle:{color:$.accent10},label:{color:$.tertiary},controlStyle:{color:$.accent30,borderColor:$.accent30}},calendar:{itemStyle:{color:$.neutral00,borderColor:$.neutral20},dayLabel:{color:$.tertiary},monthLabel:{color:$.secondary},yearLabel:{color:$.secondary}},matrix:{x:jP,y:jP,backgroundColor:{borderColor:$.axisLine},body:{itemStyle:{borderColor:$.borderTint}}},timeAxis:Nf(),logAxis:Nf(),valueAxis:Nf(),categoryAxis:Nf(),line:{symbol:"circle"},graph:{color:$.theme},gauge:{title:{color:$.secondary},axisLine:{lineStyle:{color:[[1,$.neutral05]]}},axisLabel:{color:$.axisLabel},detail:{color:$.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:$.background}},radar:(function(){var e=Nf();return e.axisName={color:$.axisLabel},e.axisLine.lineStyle.color=$.neutral20,e})(),treemap:{breadcrumb:{itemStyle:{color:$.neutral20,textStyle:{color:$.secondary}},emphasis:{itemStyle:{color:$.neutral30}}}},sunburst:{itemStyle:{borderColor:$.background}},map:{itemStyle:{borderColor:$.border,areaColor:$.neutral10},label:{color:$.tertiary},emphasis:{label:{color:$.primary},itemStyle:{areaColor:$.highlight}},select:{label:{color:$.primary},itemStyle:{areaColor:$.highlight}}},geo:{itemStyle:{borderColor:$.border,areaColor:$.neutral10},emphasis:{label:{color:$.primary},itemStyle:{areaColor:$.highlight}},select:{label:{color:$.primary},itemStyle:{color:$.highlight}}}};GP.categoryAxis.splitLine.show=!1;var $P=GP;var WP=(function(){function e(){}return e.prototype.normalizeQuery=function(t){var n={},r={},i={};if(U(t)){var o=pn(t);n.mainType=o.main||null,n.subType=o.sub||null}else{var a=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};E(t,function(l,u){for(var c=!1,f=0;f<a.length;f++){var d=a[f],p=u.lastIndexOf(d);if(p>0&&p===u.length-d.length){var h=u.slice(0,p);h!=="data"&&(n.mainType=h,n[d.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(r[u]=l,c=!0),c||(i[u]=l)})}return{cptQuery:n,dataQuery:r,otherQuery:i}},e.prototype.filter=function(t,n){var r=this.eventInfo;if(!r)return!0;var i=r.targetEl,o=r.packedEvent,a=r.model,s=r.view;if(!a||!s)return!0;var l=n.cptQuery,u=n.dataQuery;return c(l,a,"mainType")&&c(l,a,"subType")&&c(l,a,"index","componentIndex")&&c(l,a,"name")&&c(l,a,"id")&&c(u,o,"name")&&c(u,o,"dataIndex")&&c(u,o,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,n.otherQuery,i,o));function c(f,d,p,h){return f[p]==null||d[h||p]===f[p]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e})();var RC=["symbol","symbolSize","symbolRotate","symbolOffset"],YP=RC.concat(["symbolKeepAspect"]),qP={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var r={},i={},o=!1,a=0;a<RC.length;a++){var s=RC[a],l=e.get(s);Y(l)?(o=!0,i[s]=l):r[s]=l}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(P({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},r)),t.isSeriesFiltered(e))return;var u=X(i);function c(f,d){for(var p=e.getRawValue(d),h=e.getDataParams(d),m=0;m<u.length;m++){var g=u[m];f.setItemVisual(d,g,i[g](p,h))}}return{dataEach:o?c:null}}},ZP={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var n=e.getData();function r(i,o){for(var a=i.getItemModel(o),s=0;s<YP.length;s++){var l=YP[s],u=a.getShallow(l,!0);u!=null&&i.setItemVisual(o,l,u)}}return{dataEach:n.hasItemOption?r:null}}};function XP(e,t,n){switch(n){case"color":var r=e.getItemVisual(t,"style");return r[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,n);default:}}function KP(e,t){switch(t){case"color":var n=e.getVisual("style");return n[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t);default:}}function du(e,t,n,r,i){var o=e+t;n.isSilent(o)||r.eachComponent({mainType:"series",subType:"pie"},function(a){for(var s=a.seriesIndex,l=a.option.selectedMap,u=i.selected,c=0;c<u.length;c++)if(u[c].seriesIndex===s){var f=a.getData(),d=tr(f,i.fromActionPayload);n.trigger(o,{type:o,seriesId:a.id,name:F(d)?f.getName(d[0]):f.getName(d),selected:U(l)?l:P({},l)})}})}function QP(e,t,n){e.on("selectchanged",function(r){var i=n.getModel();r.isFromClick?(du("map","selectchanged",t,i,r),du("pie","selectchanged",t,i,r)):r.fromAction==="select"?(du("map","selected",t,i,r),du("pie","selected",t,i,r)):r.fromAction==="unselect"&&(du("map","unselected",t,i,r),du("pie","unselected",t,i,r))})}function Es(e,t,n){for(var r;e&&!(t(e)&&(r=e,n));)e=e.__hostTarget||e.parent;return r}var d6=new Qt,Vn=d6;var JP={};function eL(e,t){JP[e]=t}function tL(e){return JP[e]}var p6={};function nL(e,t){p6[e]=t}var Mg=re();function rL(e){Mg(e).prepare={}}function iL(e){Mg(e).fullUpdate={}}function oL(e){return Mg(e).prepare}function bs(e){return Mg(e).fullUpdate}var h6=Math.round(Math.random()*9),m6=typeof Object.defineProperty=="function",g6=(function(){function e(){this._id="__ec_inner_"+h6++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,n){var r=this._guard(t);return m6?Object.defineProperty(r,this._id,{value:n,enumerable:!1,configurable:!0}):r[this._id]=n,this},e.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},e.prototype.has=function(t){return!!this._guard(t)[this._id]},e.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},e})(),aL=g6;var v6=ie.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,o=t.height/2;e.moveTo(n,r-o),e.lineTo(n+i,r+o),e.lineTo(n-i,r+o),e.closePath()}}),y6=ie.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,o=t.height/2;e.moveTo(n,r-o),e.lineTo(n+i,r),e.lineTo(n,r+o),e.lineTo(n-i,r),e.closePath()}}),_6=ie.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,i=t.width/5*3,o=Math.max(i,t.height),a=i/2,s=a*a/(o-a),l=r-o+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,f=Math.sin(u),d=Math.cos(u),p=a*.6,h=a*.7;e.moveTo(n-c,l+s),e.arc(n,l,a,Math.PI-u,Math.PI*2+u),e.bezierCurveTo(n+c-f*p,l+s+d*p,n,r-h,n,r),e.bezierCurveTo(n,r-h,n-c+f*p,l+s+d*p,n-c,l+s),e.closePath()}}),x6=ie.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,i=t.x,o=t.y,a=r/3*2;e.moveTo(i,o),e.lineTo(i+a,o+n),e.lineTo(i,o+n/4*3),e.lineTo(i-a,o+n),e.lineTo(i,o),e.closePath()}}),D6={line:mn,rect:$e,roundRect:$e,square:$e,circle:df,diamond:y6,pin:_6,arrow:x6,triangle:v6},S6={line:function(e,t,n,r,i){i.x1=e,i.y1=t+r/2,i.x2=e+n,i.y2=t+r/2},rect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r},roundRect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(e,t,n,r,i){var o=Math.min(n,r);i.x=e,i.y=t,i.width=o,i.height=o},circle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.r=Math.min(n,r)/2},diamond:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r},pin:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},arrow:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},triangle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r}},PC={};E(D6,function(e,t){PC[t]=new e});var C6=ie.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=za(e,t,n),i=this.shape;return i&&i.symbolType==="pin"&&t.position==="inside"&&(r.y=n.y+n.height*.4),r},buildPath:function(e,t,n){var r=t.symbolType;if(r!=="none"){var i=PC[r];i||(r="rect",i=PC[r]),S6[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function E6(e,t){if(this.type!=="image"){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||oe.color.neutral00,n.lineWidth=2):this.shape.symbolType==="line"?n.stroke=e:n.fill=e,this.markRedraw()}}function lr(e,t,n,r,i,o,a){var s=e.indexOf("empty")===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var l;return e.indexOf("image://")===0?l=FS(e.slice(8),new fe(t,n,r,i),a?"center":"cover"):e.indexOf("path://")===0?l=Rm(e.slice(7),{},new fe(t,n,r,i),a?"center":"cover"):l=new C6({shape:{symbolType:e,x:t,y:n,width:r,height:i}}),l.__isEmptyBrush=s,l.setColor=E6,o&&l.setColor(o),l}function sL(e){return F(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function Ag(e,t){if(e!=null)return F(e)||(e=[e,e]),[we(e[0],t[0])||0,we(G(e[1],e[0]),t[1])||0]}function ws(e){return isFinite(e)}function b6(e,t,n){var r=t.x==null?0:t.x,i=t.x2==null?1:t.x2,o=t.y==null?0:t.y,a=t.y2==null?0:t.y2;t.global||(r=r*n.width+n.x,i=i*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),r=ws(r)?r:0,i=ws(i)?i:1,o=ws(o)?o:0,a=ws(a)?a:0;var s=e.createLinearGradient(r,o,i,a);return s}function w6(e,t,n){var r=n.width,i=n.height,o=Math.min(r,i),a=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(a=a*r+n.x,s=s*i+n.y,l=l*o),a=ws(a)?a:.5,s=ws(s)?s:.5,l=l>=0&&ws(l)?l:.5;var u=e.createRadialGradient(a,s,0,a,s,l);return u}function LC(e,t,n){for(var r=t.type==="radial"?w6(e,t,n):b6(e,t,n),i=t.colorStops,o=0;o<i.length;o++)r.addColorStop(i[o].offset,i[o].color);return r}function lL(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}function Ng(e){return parseInt(e,10)}function kC(e,t,n){var r=["width","height"][t],i=["clientWidth","clientHeight"][t],o=["paddingLeft","paddingTop"][t],a=["paddingRight","paddingBottom"][t];if(n[r]!=null&&n[r]!=="auto")return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(e);return(e[i]||Ng(s[r])||Ng(e.style[r]))-(Ng(s[o])||0)-(Ng(s[a])||0)||0}function T6(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:ge(e)?[e]:F(e)?e:null}function Of(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&T6(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=V(n,function(o){return o/i}),r/=i)}return[n,r]}var I6=new en(!0);function Og(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function uL(e){return typeof e=="string"&&e!=="none"}function Rg(e){var t=e.fill;return t!=null&&t!=="none"}function cL(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function fL(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function dL(e,t,n){var r=Jc(t.image,t.__image,n);if(zl(r)){var i=e.createPattern(r,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var o=new DOMMatrix;o.translateSelf(t.x||0,t.y||0),o.rotateSelf(0,0,(t.rotation||0)*Cl),o.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(o)}return i}}function M6(e,t,n,r,i){var o,a=Og(n),s=Rg(n),l=n.strokePercent,u=l<1,c=!t.path;(!t.silent||u)&&c&&t.createPathProxy();var f=t.path||I6,d=t.__dirty;if(!r){var p=n.fill,h=n.stroke,m=s&&!!p.colorStops,g=a&&!!h.colorStops,v=s&&!!p.image,y=a&&!!h.image,_=void 0,x=void 0,D=void 0,S=void 0,C=void 0;(m||g)&&(C=t.getBoundingRect()),m&&(_=d?LC(e,p,C):t.__canvasFillGradient,t.__canvasFillGradient=_),g&&(x=d?LC(e,h,C):t.__canvasStrokeGradient,t.__canvasStrokeGradient=x),v&&(D=d||!t.__canvasFillPattern?dL(e,p,t):t.__canvasFillPattern,t.__canvasFillPattern=D),y&&(S=d||!t.__canvasStrokePattern?dL(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),m?e.fillStyle=_:v&&(D?e.fillStyle=D:s=!1),g?e.strokeStyle=x:y&&(S?e.strokeStyle=S:a=!1)}var w=t.getGlobalScale();f.setScale(w[0],w[1],t.segmentIgnoreThreshold);var I,b;e.setLineDash&&n.lineDash&&(o=Of(t),I=o[0],b=o[1]);var T=!0;(c||d&po)&&(f.setDPR(e.dpr),u?f.setContext(null):(f.setContext(e),T=!1),f.reset(),t.buildPath(f,t.shape,r),f.toStatic(),t.pathUpdated()),T&&f.rebuildPath(e,u?l:1),I&&(e.setLineDash(I),e.lineDashOffset=b),r?(i.batchFill=s,i.batchStroke=a):n.strokeFirst?(a&&fL(e,n),s&&cL(e,n)):(s&&cL(e,n),a&&fL(e,n)),I&&e.setLineDash([])}function A6(e,t,n){var r=t.__image=Jc(n.image,t.__image,t,t.onload);if(!(!r||!zl(r))){var i=n.x||0,o=n.y||0,a=t.getWidth(),s=t.getHeight(),l=r.width/r.height;if(a==null&&s!=null?a=s*l:s==null&&a!=null?s=a/l:a==null&&s==null&&(a=r.width,s=r.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;e.drawImage(r,u,c,n.sWidth,n.sHeight,i,o,a,s)}else if(n.sx&&n.sy){var u=n.sx,c=n.sy,f=a-u,d=s-c;e.drawImage(r,u,c,f,d,i,o,a,s)}else e.drawImage(r,i,o,a,s)}}function N6(e,t,n){var r,i=n.text;if(i!=null&&(i+=""),i){e.font=n.font||fn,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var o=void 0,a=void 0;e.setLineDash&&n.lineDash&&(r=Of(t),o=r[0],a=r[1]),o&&(e.setLineDash(o),e.lineDashOffset=a),n.strokeFirst?(Og(n)&&e.strokeText(i,n.x,n.y),Rg(n)&&e.fillText(i,n.x,n.y)):(Rg(n)&&e.fillText(i,n.x,n.y),Og(n)&&e.strokeText(i,n.x,n.y)),o&&e.setLineDash([])}}var pL=["shadowBlur","shadowOffsetX","shadowOffsetY"],hL=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function xL(e,t,n,r,i){var o=!1;if(!r&&(n=n||{},t===n))return!1;if(r||t.opacity!==n.opacity){sn(e,i),o=!0;var a=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(a)?ei.opacity:a}(r||t.blend!==n.blend)&&(o||(sn(e,i),o=!0),e.globalCompositeOperation=t.blend||ei.blend);for(var s=0;s<pL.length;s++){var l=pL[s];(r||t[l]!==n[l])&&(o||(sn(e,i),o=!0),e[l]=e.dpr*(t[l]||0))}return(r||t.shadowColor!==n.shadowColor)&&(o||(sn(e,i),o=!0),e.shadowColor=t.shadowColor||ei.shadowColor),o}function mL(e,t,n,r,i){var o=t.style,a=r?null:n&&n.style||{};if(o===a)return!1;var s=xL(e,o,a,r,i);if((r||o.fill!==a.fill)&&(s||(sn(e,i),s=!0),uL(o.fill)&&(e.fillStyle=o.fill)),(r||o.stroke!==a.stroke)&&(s||(sn(e,i),s=!0),uL(o.stroke)&&(e.strokeStyle=o.stroke)),(r||o.opacity!==a.opacity)&&(s||(sn(e,i),s=!0),e.globalAlpha=o.opacity==null?1:o.opacity),t.hasStroke()){var l=o.lineWidth,u=l/(o.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==u&&(s||(sn(e,i),s=!0),e.lineWidth=u)}for(var c=0;c<hL.length;c++){var f=hL[c],d=f[0];(r||o[d]!==a[d])&&(s||(sn(e,i),s=!0),e[d]=o[d]||f[1])}return s}function O6(e,t,n,r,i){return xL(e,t.style,n&&n.style,r,i)}function DL(e,t){var n=t.transform,r=e.dpr||1;n?e.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):e.setTransform(r,0,0,r,0,0)}function R6(e,t,n){for(var r=!1,i=0;i<e.length;i++){var o=e[i];r=r||o.isZeroArea(),DL(t,o),t.beginPath(),o.buildPath(t,o.shape),t.clip()}n.allClipped=r}function P6(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var gL=1,vL=2,yL=3,_L=4;function L6(e){var t=Rg(e),n=Og(e);return!(e.lineDash||!(+t^+n)||t&&typeof e.fill!="string"||n&&typeof e.stroke!="string"||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function sn(e,t){t.batchFill&&(t.batchFill=!1,e.fill()),t.batchStroke&&(t.batchStroke=!1,e.stroke())}function SL(e,t){var n={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};FC(e,t,n),BC(e,n)}function FC(e,t,n){var r=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){t.__dirty&=~Wt,t.__isRendered=!1;return}var i=t.__clipPaths,o=n.prevElClipPaths,a=t.style,s=!1,l=!1;if((!o||lL(i,o))&&(o&&(sn(e,n),e.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),i&&i.length&&(sn(e,n),e.save(),R6(i,e,n),s=!0,n.prevElClipPaths=i)),n.allClipped){t.__dirty&=~Wt,t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(n.beforeBrushParam),t.innerBeforeBrush();var u=n.prevEl;u||(l=s=!0);var c=t instanceof ie&&t.autoBatch&&L6(a);s||P6(r,u.transform)?(sn(e,n),DL(e,t)):c||sn(e,n),t instanceof ie?(n.lastDrawType!==gL&&(l=!0,n.lastDrawType=gL),mL(e,t,u,l,n),(!c||!n.batchFill&&!n.batchStroke)&&e.beginPath(),M6(e,t,a,c,n)):t instanceof es?(n.lastDrawType!==yL&&(l=!0,n.lastDrawType=yL),mL(e,t,u,l,n),N6(e,t,a)):t instanceof _t?(n.lastDrawType!==vL&&(l=!0,n.lastDrawType=vL),O6(e,t,u,l,n),A6(e,t,a)):t.getTemporalDisplayables&&(n.lastDrawType!==_L&&(l=!0,n.lastDrawType=_L),k6(e,t,n)),t.innerAfterBrush(),t.afterBrush&&(c&&sn(e,n),t.afterBrush()),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}function BC(e,t){sn(e,t),t.prevElClipPaths&&e.restore()}function k6(e,t,n){var r=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var o={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover,beforeBrushParam:{}},a,s;for(a=t.getCursor(),s=r.length;a<s;a++){var l=r[a];l.beforeBrush&&l.beforeBrush(n.beforeBrushParam),l.innerBeforeBrush(),FC(e,l,o),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),o.prevEl=l}BC(e,o);for(var u=0,c=i.length;u<c;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(n.beforeBrushParam),l.innerBeforeBrush(),FC(e,l,o),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),o.prevEl=l}BC(e,o),t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var VC=new aL,CL=new Zr(100),EL=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function UC(e,t){if(e==="none")return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i=r.painter.type==="svg";e.dirty&&VC.delete(e);var o=VC.get(e);if(o)return o;var a=he(e,{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});a.backgroundColor==="none"&&(a.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=a.rotation,s.scaleX=s.scaleY=i?1:1/n,VC.set(e,s),e.dirty=!1,s;function l(u){for(var c=[n],f=!0,d=0;d<EL.length;++d){var p=a[EL[d]];if(p!=null&&!F(p)&&!U(p)&&!ge(p)&&typeof p!="boolean"){f=!1;break}c.push(p)}var h;if(f){h=c.join(",")+(i?"-svg":"");var m=CL.get(h);m&&(i?u.svgElement=m:u.image=m)}var g=wL(a.dashArrayX),v=F6(a.dashArrayY),y=bL(a.symbol),_=B6(g),x=TL(v),D=!i&&$t.createCanvas(),S=i&&{tag:"g",attrs:{},key:"dcl",children:[]},C=I(),w;D&&(D.width=C.width*n,D.height=C.height*n,w=D.getContext("2d")),b(),f&&CL.put(h,D||S),u.image=D,u.svgElement=S,u.svgWidth=C.width,u.svgHeight=C.height;function I(){for(var T=1,A=0,M=_.length;A<M;++A)T=MD(T,_[A]);for(var N=1,A=0,M=y.length;A<M;++A)N=MD(N,y[A].length);T*=N;var O=x*_.length*y.length;if(0)var L;return{width:Math.max(1,Math.min(T,a.maxTileWidth)),height:Math.max(1,Math.min(O,a.maxTileHeight))}}function b(){w&&(w.clearRect(0,0,D.width,D.height),a.backgroundColor&&(w.fillStyle=a.backgroundColor,w.fillRect(0,0,D.width,D.height)));for(var T=0,A=0;A<v.length;++A)T+=v[A];if(T<=0)return;for(var M=-x,N=0,O=0,L=0;M<C.height;){if(N%2===0){for(var k=O/2%y.length,B=0,j=0,Z=0;B<C.width*2;){for(var H=0,A=0;A<g[L].length;++A)H+=g[L][A];if(H<=0)break;if(j%2===0){var K=(1-a.symbolSize)*.5,J=B+g[L][j]*K,W=M+v[N]*K,de=g[L][j]*a.symbolSize,Ie=v[N]*a.symbolSize,kt=Z/2%y[k].length;zt(J,W,de,Ie,y[k][kt])}B+=g[L][j],++Z,++j,j===g[L].length&&(j=0)}++L,L===g.length&&(L=0)}M+=v[N],++O,++N,N===v.length&&(N=0)}function zt(Ue,at,me,Ae,dr){var St=i?1:n,Lu=lr(dr,Ue*St,at*St,me*St,Ae*St,a.color,a.symbolKeepAspect);if(i){var qo=r.painter.renderOneToVNode(Lu);qo&&S.children.push(qo)}else SL(w,Lu)}}}}function bL(e){if(!e||e.length===0)return[["rect"]];if(U(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!U(e[n])){t=!1;break}if(t)return bL([e]);for(var r=[],n=0;n<e.length;++n)U(e[n])?r.push([e[n]]):r.push(e[n]);return r}function wL(e){if(!e||e.length===0)return[[0,0]];if(ge(e)){var t=Math.ceil(e);return[[t,t]]}for(var n=!0,r=0;r<e.length;++r)if(!ge(e[r])){n=!1;break}if(n)return wL([e]);for(var i=[],r=0;r<e.length;++r)if(ge(e[r])){var t=Math.ceil(e[r]);i.push([t,t])}else{var t=V(e[r],function(s){return Math.ceil(s)});t.length%2===1?i.push(t.concat(t)):i.push(t)}return i}function F6(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(ge(e)){var t=Math.ceil(e);return[t,t]}var n=V(e,function(r){return Math.ceil(r)});return e.length%2?n.concat(n):n}function B6(e){return V(e,function(t){return TL(t)})}function TL(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2===1?t*2:t}var IL=rm(V6);function V6(e,t){e.eachRawSeries(function(n){if(!e.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each(function(a){var s=r.getItemVisual(a,"decal");if(s){var l=r.ensureUniqueItemVisual(a,"style");l.decal=UC(s,t)}});var i=r.getVisual("decal");if(i){var o=r.getVisual("style");o.decal=UC(i,t)}}})}var U6=1,H6=800,z6=900,j6=920,G6=1e3,$6=2e3,ML=5e3,VL=1e3,W6=1100,QC=2e3,UL=3e3,Y6=4e3,Ug=4500,q6=4600,Z6=5e3,X6=6e3,HL=7e3,zL={PROCESSOR:{SERIES_FILTER:H6,AXIS_STATISTICS:j6,FILTER:G6,STATISTIC:ML,STATISTICS:ML},VISUAL:{LAYOUT:VL,PROGRESSIVE_LAYOUT:W6,GLOBAL:QC,CHART:UL,POST_CHART_LAYOUT:q6,COMPONENT:Y6,BRUSH:Z6,CHART_ITEM:Ug,ARIA:X6,DECAL:HL}},Dt="__flagInMainProcess",Pg="__mainProcessVersion",Pt="__pendingUpdate",HC="__needsUpdateStatus",AL=/^[a-zA-Z0-9_]+$/,zC="__connectUpdateStatus",NL=0,K6=1,Q6=2;function jL(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(this.isDisposed()){this.id;return}return $L(this,e,t)}}function GL(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return $L(this,e,t)}}function $L(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),Qt.prototype[t].apply(e,n)}var WL=(function(e){R(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(Qt),YL=WL.prototype;YL.on=GL("on");YL.off=GL("off");var Ts,jC,Lg,zi,kg,GC,$C,pu,hu,OL,RL,WC,PL,Fg,LL,qL,ur,kL,mu,ZL=(function(e){R(t,e);function t(n,r,i){var o=e.call(this,new WP)||this;o._chartsViews=[],o._chartsMap={},o._componentsViews=[],o._componentsMap={},o._pendingActions=[],i=i||{},o.__v_skip=!0,o._dom=n;var a="canvas",s="auto",l=!1;if(o[Pg]=1,0)var u;i.ssr&&B1(function(p){var h=Te(p),m=h.dataIndex;if(m!=null){var g=q();return g.set("series_index",h.seriesIndex),g.set("data_index",m),h.ssrType&&g.set("ssr_type",h.ssrType),g}});var c=o._zr=CD(n,{renderer:i.renderer||a,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:G(i.useDirtyRect,l),useCoarsePointer:G(i.useCoarsePointer,s),pointerSize:i.pointerSize});o._ssr=i.ssr,o._throttledZrFlush=Tf(be(c.flush,c),17),o._updateTheme(r),o._locale=pR(i.locale||Hm),o._coordSysMgr=new _f;var f=o._api=LL(o);function d(p,h){return p.__prio-h.__prio}return Ra(Vg,d),Ra(ZC,d),o._scheduler=new OC(o,f,ZC,Vg),o._messageCenter=new WL,o._initEvents(),o.resize=be(o.resize,o),c.animation.on("frame",o._onframe,o),OL(c,o),RL(c,o),Sl(o),o}return t.prototype._onframe=function(){if(!this._disposed){var n=this._scheduler,r=this._model,i=this._api;if(kL(this),this[Pt]){var o=this[Pt].silent;this[Dt]=!0,mu(this);try{Ts(this),zi.update.call(this,null,this[Pt].updateParams)}catch(l){throw this[Dt]=!1,this[Pt]=null,l}this._zr.flush(),this[Dt]=!1,this[Pt]=null,pu.call(this,o),hu.call(this,o)}else if(n.unfinished){var a=U6;do{n.unfinished=!1;var s=$t.getTime();n.performSeriesTasks(r),n.performDataProcessorTasks(r),GC(this,r),n.performVisualTasks(r),Fg(this,this._model,i,"remain",{}),a-=$t.getTime()-s}while(a>0&&n.unfinished);n.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(n,r,i){if(!this[Dt]){if(this._disposed){this.id;return}var o,a,s;if(z(r)&&(i=r.lazyUpdate,o=r.silent,a=r.replaceMerge,s=r.transition,r=r.notMerge),this[Dt]=!0,mu(this),!this._model||r){var l=new WR(this._api),u=this._theme,c=this._model=new dg;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(n,{replaceMerge:a},XC);var f={seriesTransition:s,optionChanged:!0};if(i)this[Pt]={silent:o,updateParams:f},this[Dt]=!1,this.getZr().wakeUp();else{try{Ts(this),zi.update.call(this,null,f)}catch(d){throw this[Pt]=null,this[Dt]=!1,d}this._ssr||this._zr.flush(),this[Pt]=null,this[Dt]=!1,pu.call(this,o),hu.call(this,o)}}},t.prototype.setTheme=function(n,r){if(!this[Dt]){if(this._disposed){this.id;return}var i=this._model;if(i){var o=r&&r.silent,a=null;this[Pt]&&(o==null&&(o=this[Pt].silent),a=this[Pt].updateParams,this[Pt]=null),this[Dt]=!0,mu(this);try{this._updateTheme(n),i.setTheme(this._theme),Ts(this),zi.update.call(this,{type:"setTheme"},a)}catch(s){throw this[Dt]=!1,s}this[Dt]=!1,pu.call(this,o),hu.call(this,o)}}},t.prototype._updateTheme=function(n){U(n)&&(n=XL[n]),n&&(n=ae(n),n&&pg(n,!0),this._theme=n)},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||ce.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(n){return this.renderToCanvas(n)},t.prototype.renderToCanvas=function(n){n=n||{};var r=this._zr.painter;return r.getRenderedCanvas({backgroundColor:n.backgroundColor||this._model.get("backgroundColor"),pixelRatio:n.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(n){n=n||{};var r=this._zr.painter;return r.renderToString({useViewBox:n.useViewBox})},t.prototype.getSvgDataURL=function(){var n=this._zr,r=n.storage.getDisplayList();return E(r,function(i){i.stopAnimation(null,!0)}),n.painter.toDataURL()},t.prototype.getDataURL=function(n){if(this._disposed){this.id;return}n=n||{};var r=n.excludeComponents,i=this._model,o=[],a=this;E(r,function(l){i.eachComponent({mainType:l},function(u){var c=a._componentsMap[u.__viewId];c.group.ignore||(o.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(n).toDataURL("image/"+(n&&n.type||"png"));return E(o,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(n){if(this._disposed){this.id;return}var r=n.type==="svg",i=this.group,o=Math.min,a=Math.max,s=1/0;if(FL[i]){var l=s,u=s,c=-s,f=-s,d=[],p=n&&n.pixelRatio||this.getDevicePixelRatio();E(Rf,function(_,x){if(_.group===i){var D=r?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(ae(n)),S=_.getDom().getBoundingClientRect();l=o(S.left,l),u=o(S.top,u),c=a(S.right,c),f=a(S.bottom,f),d.push({dom:D,left:S.left,top:S.top})}}),l*=p,u*=p,c*=p,f*=p;var h=c-l,m=f-u,g=$t.createCanvas(),v=CD(g,{renderer:r?"svg":"canvas"});if(v.resize({width:h,height:m}),r){var y="";return E(d,function(_){var x=_.left-l,D=_.top-u;y+='<g transform="translate('+x+","+D+')">'+_.dom+"</g>"}),v.painter.getSvgRoot().innerHTML=y,n.connectedBackgroundColor&&v.painter.setBackgroundColor(n.connectedBackgroundColor),v.refreshImmediately(),v.painter.toDataURL()}else return n.connectedBackgroundColor&&v.add(new $e({shape:{x:0,y:0,width:h,height:m},style:{fill:n.connectedBackgroundColor}})),E(d,function(_){var x=new _t({style:{x:_.left*p-l,y:_.top*p-u,image:_.dom}});v.add(x)}),v.refreshImmediately(),g.toDataURL("image/"+(n&&n.type||"png"))}else return this.getDataURL(n)},t.prototype.convertToPixel=function(n,r,i){return kg(this,"convertToPixel",n,r,i)},t.prototype.convertToLayout=function(n,r,i){return kg(this,"convertToLayout",n,r,i)},t.prototype.convertFromPixel=function(n,r,i){return kg(this,"convertFromPixel",n,r,i)},t.prototype.containPixel=function(n,r){if(this._disposed){this.id;return}var i=this._model,o,a=Jh(i,n);return E(a,function(s,l){l.indexOf("Models")>=0&&E(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)o=o||!!c.containPoint(r);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(o=o||f.containPoint(r,u))}},this)},this),!!o},t.prototype.getVisual=function(n,r){var i=this._model,o=Jh(i,n,{defaultMainType:"series"}),a=o.seriesModel,s=a.getData(),l=o.hasOwnProperty("dataIndexInside")?o.dataIndexInside:o.hasOwnProperty("dataIndex")?s.indexOfRawIndex(o.dataIndex):null;return l!=null?XP(s,l,r):KP(s,r)},t.prototype.getViewOfComponentModel=function(n){return this._componentsMap[n.__viewId]},t.prototype.getViewOfSeriesModel=function(n){return this._chartsMap[n.__viewId]},t.prototype._initEvents=function(){var n=this;E(J6,function(i){var o=function(a){var s=n.getModel(),l=a.target,u,c=i==="globalout";if(c?u={}:l&&Es(l,function(m){var g=Te(m);if(g&&g.dataIndex!=null){var v=g.dataModel||s.getSeriesByIndex(g.seriesIndex);return u=v&&v.getDataParams(g.dataIndex,g.dataType,l)||{},!0}else if(g.eventData)return u=P({},g.eventData),!0},!0),u){var f=u.componentType,d=u.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",d=u.seriesIndex);var p=f&&d!=null&&s.getComponent(f,d),h=p&&n[p.mainType==="series"?"_chartsMap":"_componentsMap"][p.__viewId];u.event=a,u.type=i,n._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:p,view:h},n.trigger(i,u)}};o.zrEventfulCallAtLast=!0,n._zr.on(i,o,n)});var r=this._messageCenter;E(qC,function(i,o){r.on(o,function(a){n.trigger(o,a)})}),QP(r,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var n=this.getDom();n&&RD(this.getDom(),eE,"");var r=this,i=r._api,o=r._model;E(r._componentsViews,function(a){a.dispose(o,i)}),E(r._chartsViews,function(a){a.dispose(o,i)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete Rf[r.id]},t.prototype.resize=function(n){if(!this[Dt]){if(this._disposed){this.id;return}this._zr.resize(n);var r=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!r){var i=r.resetOption("media"),o=n&&n.silent;this[Pt]&&(o==null&&(o=this[Pt].silent),i=!0,this[Pt]=null),this[Dt]=!0,mu(this);try{i&&Ts(this),zi.update.call(this,{type:"resize",animation:P({duration:0},n&&n.animation)})}catch(a){throw this[Dt]=!1,a}this[Dt]=!1,pu.call(this,o),hu.call(this,o)}}},t.prototype.showLoading=function(n,r){if(this._disposed){this.id;return}if(z(n)&&(r=n,n=""),n=n||"default",this.hideLoading(),!!KC[n]){var i=KC[n](this._api,r),o=this._zr;this._loadingFX=i,o.add(i)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(n){var r=P({},n);return r.type=YC[n.type],r},t.prototype.dispatchAction=function(n,r){if(this._disposed){this.id;return}if(z(r)||(r={silent:!!r}),!!Bg[n.type]&&this._model){if(this[Dt]){this._pendingActions.push(n);return}var i=r.silent;$C.call(this,n,i);var o=r.flush;o?this._zr.flush():o!==!1&&ce.browser.weChat&&this._throttledZrFlush(),pu.call(this,i),hu.call(this,i)}},t.prototype.updateLabelLayout=function(){Vn.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(n){if(this._disposed){this.id;return}var r=n.seriesIndex,i=this.getModel(),o=i.getSeriesByIndex(r);o.appendData(n),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=(function(){Ts=function(f){rL(f._model);var d=f._scheduler;d.restorePipelines(f._zr,f._model),d.prepareStageTasks(),jC(f,!0),jC(f,!1),d.plan()},jC=function(f,d){for(var p=f._model,h=f._scheduler,m=d?f._componentsViews:f._chartsViews,g=d?f._componentsMap:f._chartsMap,v=f._zr,y=f._api,_=0;_<m.length;_++)m[_].__alive=!1;d?p.eachComponent(function(S,C){S!=="series"&&x(C)}):p.eachSeries(x);function x(S){var C=S.__requireNewView;S.__requireNewView=!1;var w="_ec_"+S.id+"_"+S.type,I=!C&&g[w];if(!I){var b=pn(S.type),T=d?on.getClass(b.main,b.sub):an.getClass(b.sub);I=new T,I.init(p,y),g[w]=I,m.push(I),v.add(I.group)}S.__viewId=I.__id=w,I.__alive=!0,I.__model=S,I.group.__ecComponentInfo={mainType:S.mainType,index:S.componentIndex},!d&&h.prepareView(I,S,p,y)}for(var _=0;_<m.length;){var D=m[_];D.__alive?_++:(!d&&D.renderTask.dispose(),v.remove(D.group),D.dispose(p,y),m.splice(_,1),g[D.__id]===D&&delete g[D.__id],D.__id=D.group.__ecComponentInfo=null)}},Lg=function(f,d,p,h,m){var g=f._model;if(g.setUpdatePayload(p),!h){E([].concat(f._componentsViews).concat(f._chartsViews),x);return}var v=Q1(p,h,m),y=p.excludeSeriesId,_;y!=null&&(_=q(),E(Ge(y),function(D){var S=Ot(D,null);S!=null&&_.set(S,!0)})),g&&g.eachComponent(v,function(D){var S=_&&_.get(D.id)!=null;if(!S)if(yS(p))if(D instanceof Bn)p.type===Io&&!p.notBlur&&!D.get(["emphasis","disabled"])&&lO(D,p,f._api);else{var C=ym(D.mainType,D.componentIndex,p.name,f._api),w=C.focusSelf,I=C.dispatchers;p.type===Io&&w&&!p.notBlur&&hm(D.mainType,D.componentIndex,f._api),I&&E(I,function(b){p.type===Io?ts(b):ns(b)})}else _m(p)&&D instanceof Bn&&(fO(D,p,f._api),vS(D),ur(f))},f),g&&g.eachComponent(v,function(D){var S=_&&_.get(D.id)!=null;S||x(f[h==="series"?"_chartsMap":"_componentsMap"][D.__viewId])},f);function x(D){D&&D.__alive&&D[d]&&D[d](D.__model,g,f._api,p)}},zi={prepareAndUpdate:function(f){Ts(this),zi.update.call(this,f,f&&{optionChanged:f.newOption!=null})},update:function(f,d){var p=this._model,h=this._api,m=this._zr,g=this._coordSysMgr,v=this._scheduler;if(p){iL(p),p.setUpdatePayload(f),v.restoreData(p,f),v.performSeriesTasks(p),g.create(p,h),Vn.trigger("coordsys:aftercreate",p,h),v.performDataProcessorTasks(p,f),GC(this,p),g.update(p,h),r(p),v.performVisualTasks(p,f);var y=p.get("backgroundColor")||"transparent";m.setBackgroundColor(y);var _=p.get("darkMode");_!=null&&_!=="auto"&&m.setDarkMode(_),WC(this,p,h,f,d),Vn.trigger("afterupdate",p,h)}},updateTransform:function(f){var d=this,p=d._model,h=d._api;if(p){p.setUpdatePayload(f);var m=[];p.eachComponent(function(v,y){if(v!==fm){var _=d.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var x=_.updateTransform(y,p,h,f);x&&x.update&&m.push(_)}else m.push(_)}});var g=q();p.eachSeries(function(v){var y=d._chartsMap[v.__viewId],_=v.pipelineContext;if(y.updateTransform&&!_.progressiveRender){var x=y.updateTransform(v,p,h,f);x&&x.update&&g.set(v.uid,1)}else g.set(v.uid,1)}),d._scheduler.performVisualTasks(p,f,{setDirty:!0,dirtyMap:g}),Fg(d,p,h,f,{},g),Vn.trigger("afterupdate",p,h)}},updateView:function(f){var d=this._model;d&&(d.setUpdatePayload(f),an.markUpdateMethod(f,"updateView"),r(d),this._scheduler.performVisualTasks(d,f,{setDirty:!0}),WC(this,d,this._api,f,{}),Vn.trigger("afterupdate",d,this._api))},updateVisual:function(f){var d=this,p=this._model;p&&(p.setUpdatePayload(f),p.eachSeries(function(h){h.getData().clearAllVisual()}),an.markUpdateMethod(f,"updateVisual"),r(p),this._scheduler.performVisualTasks(p,f,{visualType:"visual",setDirty:!0}),p.eachComponent(function(h,m){if(h!=="series"){var g=d.getViewOfComponentModel(m);g&&g.__alive&&g.updateVisual(m,p,d._api,f)}}),p.eachSeries(function(h){var m=d._chartsMap[h.__viewId];m.updateVisual(h,p,d._api,f)}),Vn.trigger("afterupdate",p,this._api))},updateLayout:function(f){zi.update.call(this,f)}};function n(f,d,p,h,m){if(f._disposed){f.id;return}for(var g=f._model,v=f._coordSysMgr.getCoordinateSystems(),y,_=Jh(g,p),x=0;x<v.length;x++){var D=v[x];if(D[d]&&(y=D[d](g,_,h,m))!=null)return y}}kg=n,GC=function(f,d){var p=f._chartsMap,h=f._scheduler;d.eachSeries(function(m){h.updateStreamModes(m,p[m.__viewId])})},$C=function(f,d){var p=this,h=this.getModel(),m=f.type,g=f.escapeConnect,v=Bg[m],y=(v.update||"update").split(":"),_=y.pop(),x=y[0]!=null&&pn(y[0]);this[Dt]=!0,mu(this);var D=[f],S=!1;f.batch&&(S=!0,D=V(f.batch,function(L){return L=he(P({},L),f),L.batch=null,L}));var C=[],w,I=[],b=v.nonRefinedEventType,T=_m(f),A=yS(f);if(A&&gS(this._api),E(D,function(L){var k=v.action(L,h,p._api);if(v.refineEvent?I.push(k):w=k,w=w||P({},L),w.type=b,C.push(w),A){var B=Kc(f),j=B.queryOptionMap,Z=B.mainTypeSpecified,H=Z?j.keys()[0]:"series";Lg(p,_,L,H),ur(p)}else T?(Lg(p,_,L,"series"),ur(p)):x&&Lg(p,_,L,x.main,x.sub)}),_!=="none"&&!A&&!T&&!x)try{this[Pt]?(Ts(this),zi.update.call(this,f),this[Pt]=null):zi[_].call(this,f)}catch(L){throw this[Dt]=!1,L}if(S?w={type:b,escapeConnect:g,batch:C}:w=C[0],this[Dt]=!1,!d){var M=void 0;if(v.refineEvent){var N=v.refineEvent(I,f,h,this._api).eventContent;Ke(z(N)),M=he({type:v.refinedEventType},N),M.fromAction=f.type,M.fromActionPayload=f,M.escapeConnect=!0}var O=this._messageCenter;O.trigger(w.type,w),M&&O.trigger(M.type,M)}},pu=function(f){for(var d=this._pendingActions;d.length;){var p=d.shift();$C.call(this,p,f)}},hu=function(f){!f&&this.trigger("updated")},OL=function(f,d){f.on("rendered",function(p){d.trigger("rendered",p),f.animation.isFinished()&&!d[Pt]&&!d._scheduler.unfinished&&!d._pendingActions.length?d.trigger("finished"):f.refresh()})},RL=function(f,d){f.on("mouseover",function(p){var h=p.target,m=Es(h,cf);m&&(uO(m,p,d._api),ur(d))}).on("mouseout",function(p){var h=p.target,m=Es(h,cf);m&&(cO(m,p,d._api),ur(d))}).on("click",function(p){var h=p.target,m=Es(h,function(y){return Te(y).dataIndex!=null},!0);if(m){var g=m.selected?"unselect":"select",v=Te(m);d._api.dispatchAction({type:g,dataType:v.dataType,dataIndexInside:v.dataIndex,seriesIndex:v.seriesIndex,isFromClick:!0})}})};function r(f){f.clearColorPalette(),f.eachSeries(function(d){d.clearColorPalette()})}function i(f){var d=[],p=[],h=!1;if(f.eachComponent(function(y,_){var x=_.get("zlevel")||0,D=_.get("z")||0,S=_.getZLevelKey();h=h||!!S,(y==="series"?p:d).push({zlevel:x,z:D,idx:_.componentIndex,type:y,key:S})}),h){var m=d.concat(p),g,v;Ra(m,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),E(m,function(y){var _=f.getComponent(y.type,y.idx),x=y.zlevel,D=y.key;g!=null&&(x=Math.max(g,x)),D?(x===g&&D!==v&&x++,v=D):v&&(x===g&&x++,v=""),g=x,_.setZLevel(x)})}}WC=function(f,d,p,h,m){i(d),PL(f,d,p,h,m),E(f._chartsViews,function(g){g.__alive=!1}),Fg(f,d,p,h,m),E(f._chartsViews,function(g){g.__alive||g.remove(d,p)})},PL=function(f,d,p,h,m,g){E(g||f._componentsViews,function(v){var y=v.__model;u(y,v),v.render(y,d,p,h),l(y,v),c(y,v)})},Fg=function(f,d,p,h,m,g){var v=f._scheduler;m=P(m||{},{updatedSeries:d.getSeries()}),Vn.trigger("series:beforeupdate",d,p,m);var y=!1;d.eachSeries(function(_){var x=f._chartsMap[_.__viewId];x.__alive=!0;var D=x.renderTask;v.updatePayload(D,h),u(_,x),g&&g.get(_.uid)&&D.dirty(),D.perform(v.getPerformArgs(D))&&(y=!0),x.group.silent=!!_.get("silent"),s(_,x),vS(_)}),v.unfinished=y||v.unfinished,Vn.trigger("series:layoutlabels",d,p,m),Vn.trigger("series:transition",d,p,m),d.eachSeries(function(_){var x=f._chartsMap[_.__viewId];l(_,x),c(_,x)}),a(f,d),Vn.trigger("series:afterupdate",d,p,m)},ur=function(f){f[HC]=!0,f.getZr().wakeUp()},mu=function(f){f[Pg]=(f[Pg]+1)%1e6},kL=function(f){f[HC]&&(f.getZr().storage.traverse(function(d){as(d)||o(d)}),f[HC]=!1)};function o(f){for(var d=[],p=f.currentStates,h=0;h<p.length;h++){var m=p[h];m==="emphasis"||m==="blur"||m==="select"||d.push(m)}f.selected&&f.states.select&&d.push("select"),f.hoverState===af&&f.states.emphasis?d.push("emphasis"):f.hoverState===of&&f.states.blur&&d.push("blur"),f.useStates(d)}function a(f,d){var p=f._zr;if(p.painter.type==="canvas"){var h=p.storage,m=0;h.traverse(function(v){v.isGroup||m++});var g=m>G(d.get("hoverLayerThreshold"),ug.hoverLayerThreshold)&&!ce.node&&!ce.worker;(f._usingTHL||g)&&(d.eachSeries(function(v){if(!v.preventUsingHoverLayer){var y=f._chartsMap[v.__viewId];y.__alive&&y.eachRendered(function(_){var x=_.states.emphasis;x&&x.hoverLayer!==yf&&(x.hoverLayer=g?LS:PS)})}}),f._usingTHL=g)}}function s(f,d){var p=f.get("blendMode")||null;d.eachRendered(function(h){h.isGroup||(h.style.blend=p)})}function l(f,d){if(!f.preventAutoZ){var p=US(f);d.eachRendered(function(h){return HS(h,p.z,p.zlevel),!0})}}function u(f,d){d.eachRendered(function(p){if(!as(p)){var h=p.getTextContent(),m=p.getTextGuideLine();p.stateTransition&&(p.stateTransition=null),h&&h.stateTransition&&(h.stateTransition=null),m&&m.stateTransition&&(m.stateTransition=null),p.hasState()?(p.prevStates=p.currentStates,p.clearStates()):p.prevStates&&(p.prevStates=null)}})}function c(f,d){var p=f.getModel("stateAnimation"),h=f.isAnimationEnabled(),m=p.get("duration"),g=m>0?{duration:m,delay:p.get("delay"),easing:p.get("easing")}:null;d.eachRendered(function(v){if(v.states&&v.states.emphasis){if(as(v))return;if(v instanceof ie&&mO(v),v.__dirty){var y=v.prevStates;y&&v.useStates(y)}if(h){v.stateTransition=g;var _=v.getTextContent(),x=v.getTextGuideLine();_&&(_.stateTransition=g),x&&(x.stateTransition=g)}v.__dirty&&o(v)}})}LL=function(f){return new((function(d){R(p,d);function p(){return d!==null&&d.apply(this,arguments)||this}return p.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},p.prototype.getComponentByElement=function(h){for(;h;){var m=h.__ecComponentInfo;if(m!=null)return f._model.getComponent(m.mainType,m.index);h=h.parent}},p.prototype.enterEmphasis=function(h,m){ts(h,m),ur(f)},p.prototype.leaveEmphasis=function(h,m){ns(h,m),ur(f)},p.prototype.enterBlur=function(h){aO(h),ur(f)},p.prototype.leaveBlur=function(h){pS(h),ur(f)},p.prototype.enterSelect=function(h){hS(h),ur(f)},p.prototype.leaveSelect=function(h){mS(h),ur(f)},p.prototype.getModel=function(){return f.getModel()},p.prototype.getViewOfComponentModel=function(h){return f.getViewOfComponentModel(h)},p.prototype.getViewOfSeriesModel=function(h){return f.getViewOfSeriesModel(h)},p.prototype.getECUpdateCycleVersion=function(){return f[Pg]},p.prototype.usingTHL=function(){return f._usingTHL},p})(pm))(f)},qL=function(f){function d(p,h){for(var m=0;m<p.length;m++){var g=p[m];g[zC]=h}}E(YC,function(p,h){f._messageCenter.on(h,function(m){if(FL[f.group]&&f[zC]!==NL){if(m&&m.escapeConnect)return;var g=f.makeActionFromEvent(m),v=[];E(Rf,function(y){y!==f&&y.group===f.group&&v.push(y)}),d(v,NL),E(v,function(y){y[zC]!==K6&&y.dispatchAction(g)}),d(v,Q6)}})})}})(),t})(Qt),JC=ZL.prototype;JC.on=jL("on");JC.off=jL("off");JC.one=function(e,t,n){var r=this;function i(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];t&&t.apply&&t.apply(this,o),r.off(e,i)}this.on.call(this,e,i,n)};var J6=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Bg={},YC={},qC={},ZC=[],XC=[],Vg=[],XL={},KC={},Rf={},FL={},eY=+new Date-0,Vye=+new Date-0,eE="_echarts_instance_";function Hg(e,t,n){var r=!(n&&n.ssr);if(r){var i=tY(e);if(i)return i}var o=new ZL(e,t,n);return o.id="ec_"+eY++,Rf[o.id]=o,r&&RD(e,eE,o.id),qL(o),Vn.trigger("afterinit",o),o}function tY(e){return Rf[J1(e,eE)]}function KL(e,t){XL[e]=t}function tE(e){se(XC,e)<0&&XC.push(e)}function nE(e,t){rE(ZC,e,t,$6)}function QL(e){zg("afterinit",e)}function JL(e){zg("afterupdate",e)}function zg(e,t){Vn.on(e,t)}function Is(e,t,n){var r,i,o,a,s;Y(t)&&(n=t,t=""),z(e)?(r=e.type,i=e.event,a=e.update,s=e.publishNonRefinedEvent,n||(n=e.action),o=e.refineEvent):(r=e,i=t);function l(c){return c.toLowerCase()}i=l(i||r);var u=o?l(r):i;Bg[r]||(Ke(AL.test(r)&&AL.test(i)),o&&Ke(i!==r),Bg[r]={actionType:r,refinedEventType:i,nonRefinedEventType:u,update:a,action:n,refineEvent:o},qC[i]=1,o&&s&&(qC[u]=1),YC[u]=r)}function ek(e,t){_f.register(e,t)}function tk(e,t){rE(Vg,e,t,VL,"layout",!0)}function Fo(e,t){rE(Vg,e,t,UL,"visual",!0)}var BL=[];function rE(e,t,n,r,i,o){if((Y(t)||z(t))&&(n=t,t=r),!(se(BL,n)>=0)){BL.push(n);var a=OC.wrapStageHandler(n,i);a.__prio=t,a.__raw=n,e.push(a)}}function iE(e,t){KC[e]=t}function nk(e,t,n){var r=tL("registerMap");r&&r(e,t,n)}var rk=fP;Fo(QC,kP);Fo(Ug,FP);Fo(Ug,BP);Fo(QC,qP);Fo(Ug,ZP);Fo(HL,IL);tE(pg);nE(z6,JR);iE("default",NC);Is({type:Io,event:Io,update:Io},Qe);Is({type:sf,event:sf,update:sf},Qe);Is({type:lf,event:gm,update:lf,action:Qe,refineEvent:oE,publishNonRefinedEvent:!0});Is({type:mm,event:gm,update:mm,action:Qe,refineEvent:oE,publishNonRefinedEvent:!0});Is({type:uf,event:gm,update:uf,action:Qe,refineEvent:oE,publishNonRefinedEvent:!0});function oE(e,t,n,r){return{eventContent:{selected:dO(n),isFromClick:t.isFromClick||!1}}}KL("default",{});KL("dark",$P);function Pf(e){return e==null?0:e.length||1}function ik(e){return e}var nY=(function(){function e(t,n,r,i,o,a){this._old=t,this._new=n,this._oldKeyGetter=r||ik,this._newKeyGetter=i||ik,this.context=o,this._diffModeMultiple=a==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,n=this._new,r={},i=new Array(t.length),o=new Array(n.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(n,r,o,"_newKeyGetter");for(var a=0;a<t.length;a++){var s=i[a],l=r[s],u=Pf(l);if(u>1){var c=l.shift();l.length===1&&(r[s]=l[0]),this._update&&this._update(c,a)}else u===1?(r[s]=null,this._update&&this._update(l,a)):this._remove&&this._remove(a)}this._performRestAdd(o,r)},e.prototype._executeMultiple=function(){var t=this._old,n=this._new,r={},i={},o=[],a=[];this._initIndexMap(t,r,o,"_oldKeyGetter"),this._initIndexMap(n,i,a,"_newKeyGetter");for(var s=0;s<o.length;s++){var l=o[s],u=r[l],c=i[l],f=Pf(u),d=Pf(c);if(f>1&&d===1)this._updateManyToOne&&this._updateManyToOne(c,u),i[l]=null;else if(f===1&&d>1)this._updateOneToMany&&this._updateOneToMany(c,u),i[l]=null;else if(f===1&&d===1)this._update&&this._update(c,u),i[l]=null;else if(f>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,u),i[l]=null;else if(f>1)for(var p=0;p<f;p++)this._remove&&this._remove(u[p]);else this._remove&&this._remove(u)}this._performRestAdd(a,i)},e.prototype._performRestAdd=function(t,n){for(var r=0;r<t.length;r++){var i=t[r],o=n[i],a=Pf(o);if(a>1)for(var s=0;s<a;s++)this._add&&this._add(o[s]);else a===1&&this._add&&this._add(o);n[i]=null}},e.prototype._initIndexMap=function(t,n,r,i){for(var o=this._diffModeMultiple,a=0;a<t.length;a++){var s="_ec_"+this[i](t[a],a);if(o||(r[a]=s),!!n){var l=n[s],u=Pf(l);u===0?(n[s]=a,o&&r.push(s)):u===1?n[s]=[l,a]:l.push(a)}}},e})(),ok=nY;var rY=(function(){function e(t,n){this._encode=t,this._schema=n}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e})();function ak(e,t){var n={},r=n.encode={},i=q(),o=[],a=[],s={};E(e.dimensions,function(d){var p=e.getDimensionInfo(d),h=p.coordDim;if(h){var m=p.coordDimIndex;aE(r,h)[m]=d,p.isExtraCoord||(i.set(h,1),iY(p.type)&&(o[0]=d),aE(s,h)[m]=e.getDimensionIndex(p.name)),p.defaultTooltip&&a.push(d)}dm.each(function(g,v){var y=aE(r,v),_=p.otherDims[v];_!=null&&_!==!1&&(y[_]=p.name)})});var l=[],u={};i.each(function(d,p){var h=r[p];u[p]=h[0],l=l.concat(h)}),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=V(l,function(d){return e.getDimensionInfo(d).storeDimIndex}),n.encodeFirstDimNotExtra=u;var c=r.label;c&&c.length&&(o=c.slice());var f=r.tooltip;return f&&f.length?a=f.slice():a.length||(a=o.slice()),r.defaultedLabel=o,r.defaultedTooltip=a,n.userOutput=new rY(s,t),n}function aE(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function sk(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function iY(e){return!(e==="ordinal"||e==="time")}var oY=(function(){function e(t){this.otherDims={},t!=null&&P(this,t)}return e})(),gu=oY;var aY=re(),sY={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},sE=(function(){function e(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=lE(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return G(this._dimNameMap.get(t),-1)},e.prototype.getSourceDimension=function(t){var n=this.source.dimensionsDefine;if(n)return n[t]},e.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,n=mg(this.source),r=!uE(t),i="",o=[],a=0,s=0;a<t;a++){var l=void 0,u=void 0,c=void 0,f=this.dimensions[s];if(f&&f.storeDimIndex===a)l=n?f.name:null,u=f.type,c=f.ordinalMeta,s++;else{var d=this.getSourceDimension(a);d&&(l=n?d.name:null,u=d.type)}o.push({property:l,type:u,ordinalMeta:c}),n&&l!=null&&(!f||!f.isCalculationCoord)&&(i+=r?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=sY[u]||"f",c&&(i+=c.uid),i+="$"}var p=this.source,h=[p.seriesLayoutBy,p.startIndex,i].join("$$");return{dimensions:o,hash:h}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],n=0,r=0;n<this._fullDimCount;n++){var i=void 0,o=this.dimensions[r];if(o&&o.storeDimIndex===n)o.isCalculationCoord||(i=o.name),r++;else{var a=this.getSourceDimension(n);a&&(i=a.name)}t.push(i)}return t},e.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e})();function jg(e){return e instanceof sE}function Lf(e){for(var t=q(),n=0;n<(e||[]).length;n++){var r=e[n],i=z(r)?r.name:r;i!=null&&t.get(i)==null&&t.set(i,n)}return t}function lE(e){var t=aY(e);return t.dimNameMap||(t.dimNameMap=Lf(e.dimensionsDefine))}function uE(e){return e>30}var kf=z,Bo=V,lY=typeof Int32Array>"u"?Array:Int32Array,uY="e\0\0",lk=-1,cY=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],fY=["_approximateExtent"],uk,Gg,Ff,Bf,cE,Vf,fE,dY=(function(){function e(t,n){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 r,i=!1;jg(t)?(r=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,r=t),r=r||["x","y"];for(var o={},a=[],s={},l=!1,u={},c=0;c<r.length;c++){var f=r[c],d=U(f)?new gu({name:f}):f instanceof gu?f:new gu(f),p=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=p,d.coordDimIndex=0);var h=d.otherDims=d.otherDims||{};a.push(p),o[p]=d,u[p]!=null&&(l=!0),d.createInvertedIndices&&(s[p]=[]),i&&(d.storeDimIndex=c),h.itemName===0&&(this._nameDimIdx=d.storeDimIndex),h.itemId===0&&(this._idDimIdx=d.storeDimIndex)}if(this.dimensions=a,this._dimInfos=o,this._initGetDimensionInfo(l),this.hostModel=n,this._invertedIndicesMap=s,this._dimOmitted){var m=this._dimIdxToName=q();E(a,function(g){m.set(o[g].storeDimIndex,g)})}}return e.prototype.getDimension=function(t){var n=this._recognizeDimIndex(t);if(n==null)return t;if(n=t,!this._dimOmitted)return this.dimensions[n];var r=this._dimIdxToName.get(n);if(r!=null)return r;var i=this._schema.getSourceDimension(n);if(i)return i.name},e.prototype.getDimensionIndex=function(t){var n=this._recognizeDimIndex(t);if(n!=null)return n;if(t==null)return-1;var r=this._getDimInfo(t);return r?r.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if(ge(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},e.prototype._getStoreDimIndex=function(t){var n=this.getDimensionIndex(t);return n},e.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},e.prototype._initGetDimensionInfo=function(t){var n=this._dimInfos;this._getDimInfo=t?function(r){return n.hasOwnProperty(r)?n[r]:void 0}:function(r){return n[r]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(t,n){var r=this._dimSummary;if(n==null)return r.encodeFirstDimNotExtra[t];var i=r.encode[t];return i?i[n]:null},e.prototype.mapDimensionsAll=function(t){var n=this._dimSummary,r=n.encode[t];return(r||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(t,n,r){var i=this,o;if(t instanceof wf&&(o=t),!o){var a=this.dimensions,s=lu(t)||ct(t)?new vg(t,a.length):t;o=new wf;var l=Bo(a,function(u){return{type:i._dimInfos[u].type,property:u}});o.initData(s,l,r)}this._store=o,this._nameList=(n||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,o.count()),this._dimSummary=ak(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(t){var n=this._store.appendData(t);this._doInit(n[0],n[1])},e.prototype.appendValues=function(t,n){var r=this._store.appendValues(t,n&&n.length),i=r.start,o=r.end,a=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),n)for(var s=i;s<o;s++){var l=s-i;this._nameList[s]=n[l],a&&fE(this,s)}},e.prototype._updateOrdinalMeta=function(){for(var t=this._store,n=this.dimensions,r=0;r<n.length;r++){var i=this._dimInfos[n[r]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==Pn&&!t.fillStorage},e.prototype._doInit=function(t,n){if(!(t>=n)){var r=this._store,i=r.getProvider();this._updateOrdinalMeta();var o=this._nameList,a=this._idList,s=i.getSource().sourceFormat,l=s===wt;if(l&&!i.pure)for(var u=[],c=t;c<n;c++){var f=i.getItem(c,u);if(!this.hasItemOption&&Z1(f)&&(this.hasItemOption=!0),f){var d=f.name;o[c]==null&&d!=null&&(o[c]=Ot(d,null));var p=f.id;a[c]==null&&p!=null&&(a[c]=Ot(p,null))}}if(this._shouldMakeIdFromName())for(var c=t;c<n;c++)fE(this,c);uk(this)}},e.prototype.getApproximateExtent=function(t,n){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t),n)},e.prototype.setApproximateExtent=function(t,n){n=this.getDimension(n),this._approximateExtent[n]=t.slice()},e.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},e.prototype.setCalculationInfo=function(t,n){kf(t)?P(this._calculationInfo,t):this._calculationInfo[t]=n},e.prototype.getName=function(t){var n=this.getRawIndex(t),r=this._nameList[n];return r==null&&this._nameDimIdx!=null&&(r=Ff(this,this._nameDimIdx,n)),r==null&&(r=""),r},e.prototype._getCategory=function(t,n){var r=this._store.get(t,n),i=this._store.getOrdinalMeta(t);return i?i.categories[r]:r},e.prototype.getId=function(t){return Gg(this,this.getRawIndex(t))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(t,n){var r=this._store,i=this._dimInfos[t];if(i)return r.get(i.storeDimIndex,n)},e.prototype.getByRawIndex=function(t,n){var r=this._store,i=this._dimInfos[t];if(i)return r.getByRawIndex(i.storeDimIndex,n)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t),null)},e.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},e.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},e.prototype.getValues=function(t,n){var r=this,i=this._store;return F(t)?i.getValues(Bo(t,function(o){return r._getStoreDimIndex(o)}),n):i.getValues(t)},e.prototype.hasValue=function(t){for(var n=this._dimSummary.dataDimIndicesOnCoord,r=0,i=n.length;r<i;r++)if(isNaN(this._store.get(n[r],t)))return!1;return!0},e.prototype.indexOfName=function(t){for(var n=0,r=this._store.count();n<r;n++)if(this.getName(n)===t)return n;return-1},e.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},e.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},e.prototype.rawIndexOf=function(t,n){var r=t&&this._invertedIndicesMap[t],i=r&&r[n];return i==null||isNaN(i)?lk:i},e.prototype.each=function(t,n,r){"use strict";Y(t)&&(r=n,n=t,t=[]);var i=r||this,o=Bo(Bf(t),this._getStoreDimIndex,this);this._store.each(o,i?be(n,i):n)},e.prototype.filterSelf=function(t,n,r){"use strict";Y(t)&&(r=n,n=t,t=[]);var i=r||this,o=Bo(Bf(t),this._getStoreDimIndex,this);return this._store=this._store.filter(o,i?be(n,i):n),this},e.prototype.selectRange=function(t){"use strict";var n=this,r={},i=X(t),o=[];return E(i,function(a){var s=n._getStoreDimIndex(a);r[s]=t[a],o.push(s)}),this._store=this._store.selectRange(r),this},e.prototype.mapArray=function(t,n,r){"use strict";Y(t)&&(r=n,n=t,t=[]),r=r||this;var i=[];return this.each(t,function(){i.push(n&&n.apply(this,arguments))},r),i},e.prototype.map=function(t,n,r,i){"use strict";var o=r||i||this,a=Bo(Bf(t),this._getStoreDimIndex,this),s=Vf(this);return s._store=this._store.map(a,o?be(n,o):n),s},e.prototype.modify=function(t,n,r,i){var o=this,a=r||i||this,s=Bo(Bf(t),this._getStoreDimIndex,this);this._store.modify(s,a?be(n,a):n)},e.prototype.downSample=function(t,n,r,i){var o=Vf(this);return o._store=this._store.downSample(this._getStoreDimIndex(t),n,r,i),o},e.prototype.minmaxDownSample=function(t,n){var r=Vf(this);return r._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),n),r},e.prototype.lttbDownSample=function(t,n){var r=Vf(this);return r._store=this._store.lttbDownSample(this._getStoreDimIndex(t),n),r},e.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},e.prototype.getItemModel=function(t){var n=this.hostModel,r=this.getRawDataItem(t);return new tt(r,n,n&&n.ecModel)},e.prototype.diff=function(t){var n=this;return new ok(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(r){return Gg(t,r)},function(r){return Gg(n,r)})},e.prototype.getVisual=function(t){var n=this._visual;return n&&n[t]},e.prototype.setVisual=function(t,n){this._visual=this._visual||{},kf(t)?P(this._visual,t):this._visual[t]=n},e.prototype.getItemVisual=function(t,n){var r=this._itemVisuals[t],i=r&&r[n];return i??this.getVisual(n)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(t,n){var r=this._itemVisuals,i=r[t];i||(i=r[t]={});var o=i[n];return o==null&&(o=this.getVisual(n),F(o)?o=o.slice():kf(o)&&(o=P({},o)),i[n]=o),o},e.prototype.setItemVisual=function(t,n,r){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,kf(n)?P(i,n):i[n]=r},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,n){kf(t)?P(this._layout,t):this._layout[t]=n},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,n,r){this._itemLayouts[t]=r?P(this._itemLayouts[t]||{},n):n},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,n){var r=this.hostModel&&this.hostModel.seriesIndex;rf(r,this.dataType,t,n),this._graphicEls[t]=n},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,n){E(this._graphicEls,function(r,i){r&&t&&t.call(n,r,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:Bo(this.dimensions,this._getDimInfo,this),this.hostModel)),cE(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,n){var r=this[t];Y(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=r.apply(this,arguments);return n.apply(this,[i].concat(ch(arguments)))})},e.internalField=(function(){uk=function(t){var n=t._invertedIndicesMap;E(n,function(r,i){var o=t._dimInfos[i],a=o.ordinalMeta,s=t._store;if(a){r=n[i]=new lY(a.categories.length);for(var l=0;l<r.length;l++)r[l]=lk;for(var l=0;l<s.count();l++)r[s.get(o.storeDimIndex,l)]=l}})},Ff=function(t,n,r){return Ot(t._getCategory(n,r),null)},Gg=function(t,n){var r=t._idList[n];return r==null&&t._idDimIdx!=null&&(r=Ff(t,t._idDimIdx,n)),r==null&&(r=uY+n),r},Bf=function(t){return F(t)||(t=t!=null?[t]:[]),t},Vf=function(t){var n=new e(t._schema?t._schema:Bo(t.dimensions,t._getDimInfo,t),t.hostModel);return cE(n,t),n},cE=function(t,n){E(cY.concat(n.__wrappedMethods||[]),function(r){n.hasOwnProperty(r)&&(t[r]=n[r])}),t.__wrappedMethods=n.__wrappedMethods,E(fY,function(r){t[r]=ae(n[r])}),t._calculationInfo=P({},n._calculationInfo)},fE=function(t,n){var r=t._nameList,i=t._idList,o=t._nameDimIdx,a=t._idDimIdx,s=r[n],l=i[n];if(s==null&&o!=null&&(r[n]=s=Ff(t,o,n)),l==null&&a!=null&&(i[n]=l=Ff(t,a,n)),l==null&&s!=null){var u=t._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),i[n]=l}}})(),e})(),$g=dY;function Uf(e,t){lu(e)||(e=uu(e)),t=t||{};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=q(),o=[],a=pY(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&uE(a),l=r===e.dimensionsDefine,u=l?lE(e):Lf(r),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,a));for(var f=q(c),d=new EC(a),p=0;p<d.length;p++)d[p]=-1;function h(I){var b=d[I];if(b<0){var T=r[I],A=z(T)?T:{name:T},M=new gu,N=A.name;N!=null&&u.get(N)!=null&&(M.name=M.displayName=N),A.type!=null&&(M.type=A.type),A.displayName!=null&&(M.displayName=A.displayName);var O=o.length;return d[I]=O,M.storeDimIndex=I,o.push(M),M}return o[b]}if(!s)for(var p=0;p<a;p++)h(p);f.each(function(I,b){var T=Ge(I).slice();if(T.length===1&&!U(T[0])&&T[0]<0){f.set(b,!1);return}var A=f.set(b,[]);E(T,function(M,N){var O=U(M)?u.get(M):M;O!=null&&O<a&&(A[N]=O,g(h(O),b,N))})});var m=0;E(n,function(I){var b,T,A,M;if(U(I))b=I,M={};else{M=I,b=M.name;var N=M.ordinalMeta;M.ordinalMeta=null,M=P({},M),M.ordinalMeta=N,T=M.dimsDef,A=M.otherDims,M.name=M.coordDim=M.coordDimIndex=M.dimsDef=M.otherDims=null}var O=f.get(b);if(O!==!1){if(O=Ge(O),!O.length)for(var L=0;L<(T&&T.length||1);L++){for(;m<a&&h(m).coordDim!=null;)m++;m<a&&O.push(m++)}E(O,function(k,B){var j=h(k);if(l&&M.type!=null&&(j.type=M.type),g(he(j,M),b,B),j.name==null&&T){var Z=T[B];!z(Z)&&(Z={name:Z}),j.name=j.displayName=Z.name,j.defaultTooltip=Z.defaultTooltip}A&&he(j.otherDims,A)})}});function g(I,b,T){dm.get(b)!=null?I.otherDims[b]=T:(I.coordDim=b,I.coordDimIndex=T,i.set(b,!0))}var v=t.generateCoord,y=t.generateCoordCount,_=y!=null;y=v?y||1:0;var x=v||"value";function D(I){I.name==null&&(I.name=I.coordDim)}if(s)E(o,function(I){D(I)}),o.sort(function(I,b){return I.storeDimIndex-b.storeDimIndex});else for(var S=0;S<a;S++){var C=h(S),w=C.coordDim;w==null&&(C.coordDim=hY(x,i,_),C.coordDimIndex=0,(!v||y<=0)&&(C.isExtraCoord=!0),y--),D(C),C.type==null&&(cg(e,S)===rn.Must||C.isExtraCoord&&(C.otherDims.itemName!=null||C.otherDims.seriesName!=null))&&(C.type="ordinal")}return Ul(o,function(I){return I.name},function(I,b){b>0&&(I.name=I.name+(b-1))}),new sE({source:e,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function pY(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return E(t,function(o){var a;z(o)&&(a=o.dimsDef)&&(i=Math.max(i,a.length))}),i}function hY(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}var mY=(function(){function e(t){this.coordSysDims=[],this.axisMap=q(),this.categoryAxisMap=q(),this.coordSysName=t}return e})();function ck(e){var t=e.get("coordinateSystem"),n=new mY(t),r=gY[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var gY={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents("xAxis",Ut).models[0],o=e.getReferringComponents("yAxis",Ut).models[0];t.coordSysDims=["x","y"],n.set("x",i),n.set("y",o),vu(i)&&(r.set("x",i),t.firstCategoryDimIndex=0),vu(o)&&(r.set("y",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,r){var i=e.getReferringComponents("singleAxis",Ut).models[0];t.coordSysDims=["single"],n.set("single",i),vu(i)&&(r.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents("polar",Ut).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),vu(o)&&(r.set("radius",o),t.firstCategoryDimIndex=0),vu(a)&&(r.set("angle",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,r){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,r){var i=e.ecModel,o=i.getComponent("parallel",e.get("parallelIndex")),a=t.coordSysDims=o.dimensions.slice();E(o.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),c=a[l];n.set(c,u),vu(u)&&(r.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})},matrix:function(e,t,n,r){var i=e.getReferringComponents("matrix",Ut).models[0];t.coordSysDims=["x","y"];var o=i.getDimensionModel("x"),a=i.getDimensionModel("y");n.set("x",o),n.set("y",a),r.set("x",o),r.set("y",a)}};function vu(e){return e.get("type")==="category"}function fk(e,t,n){n=n||{};var r=n.byIndex,i=n.stackedCoordDimension,o,a,s;vY(t)?o=t:(a=t.schema,o=a.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,f,d,p=!0;function h(x){return x.type!=="ordinal"&&x.type!=="time"}if(E(o,function(x,D){U(x)&&(o[D]=x={name:x}),h(x)||(p=!1)}),E(o,function(x,D){l&&!x.isExtraCoord&&(!r&&!u&&x.ordinalMeta&&(u=x),!c&&h(x)&&(!p||x.coordDim!=="x"&&x.coordDim!=="angle")&&(!i||i===x.coordDim)&&(c=x))}),c&&!r&&!u&&(r=!0),c){f="__\0ecstackresult_"+e.id,d="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var m=c.coordDim,g=c.type,v=0;E(o,function(x){x.coordDim===m&&v++});var y={name:f,coordDim:m,coordDimIndex:v,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length},_={name:d,coordDim:d,coordDimIndex:v+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length+1};a?(s&&(y.storeDimIndex=s.ensureCalculationDimension(d,g),_.storeDimIndex=s.ensureCalculationDimension(f,g)),a.appendCalculationDimension(y),a.appendCalculationDimension(_)):(o.push(y),o.push(_))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:r,stackedOverDimension:d,stackResultDimension:f}}function vY(e){return!jg(e.schema)}function ji(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function dk(e,t){return ji(e,t)?e.getCalculationInfo("stackResultDimension"):t}function yY(e,t){var n=e.get("coordinateSystem"),r=_f.get(n),i;return t&&t.coordSysDims&&(i=V(t.coordSysDims,function(o){var a={name:o},s=t.axisMap.get(o);if(s){var l=s.get("type");a.type=sk(l)}return a})),i||(i=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),i}function _Y(e,t,n){var r,i;return n&&E(e,function(o,a){var s=o.coordDim,l=n.categoryAxisMap.get(s);l&&(r==null&&(r=a),o.ordinalMeta=l.getOrdinalMeta(),t&&(o.createInvertedIndices=!0)),o.otherDims.itemName!=null&&(i=!0)}),!i&&r!=null&&(e[r].otherDims.itemName=0),r}function xY(e,t,n){n=n||{};var r=t.getSourceManager(),i,o=!1;e?(o=!0,i=uu(e)):(i=r.getSource(),o=i.sourceFormat===wt);var a=ck(t),s=yY(t,a),l=n.useEncodeDefaulter,u=Y(l)?l:l?vt(kR,s,t):null,c={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o},f=Uf(i,c),d=_Y(f.dimensions,n.createInvertedIndices,a),p=o?null:r.getSharedDataStore(f),h=fk(t,{schema:f,store:p}),m=new $g(f,t);m.setCalculationInfo(h);var g=d!=null&&DY(i)?function(v,y,_,x){return x===d?_:this.defaultDimValueGetter(v,y,_,x)}:null;return m.hasItemOption=!1,m.initData(o?i:p,null,g),m}function DY(e){if(e.sourceFormat===wt){var t=SY(e.data||[]);return!F(Oi(t))}}function SY(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var yu=xY;var pk=(function(){function e(){}return e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e})();So(pk);var ln=pk;var CY=0,EY=(function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++CY,this._onCollect=t.onCollect}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&V(r,bY);return new e({categories:i,needCollect:!i,deduplication:n.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var n,r=this._needCollect;if(!U(t)&&!r)return t;if(r&&!this._deduplication)return n=this.categories.length,this.categories[n]=t,this._onCollect&&this._onCollect(t,n),n;var i=this._getOrCreateMap();return n=i.get(t),n==null&&(r?(n=this.categories.length,this.categories[n]=t,i.set(t,n),this._onCollect&&this._onCollect(t,n)):n=NaN),n},e.prototype._getOrCreateMap=function(){return this._map||(this._map=q(this.categories))},e})();function bY(e){return z(e)&&e.value!=null?e.value:e+""}var Hf=EY;var yn=0,_u=1,wY={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},mk=X(wY),xu=2,gk=3;function Du(e,t,n){var r;e=e||{};var i=ot();if(i){var o=i.createBreakScaleMapper(t,n);o.hasBreaks()&&(E(mk,function(a){o[a]&&(e[a]=be(o[a],o))}),r=o)}return r==null&&TY(e,n),{brk:r,mapper:e}}function Wg(e,t){E(mk,function(n){e[n]=t[n]})}function Yg(e,t){e.freeze=Qe}function Gi(e){return e.getExtentUnsafe(yn,xu)}function Ms(e,t){return e.getExtentUnsafe(_u,t)||e.getExtentUnsafe(yn,t)}function vk(e){var t=Ms(e,gk);return t[1]-t[0]}function Su(e){var t=e.getExtentUnsafe(yn,gk);return t[1]-t[0]}function TY(e,t){var n=e||{},r=[];return n._extents=r,r[yn]=t?t.slice():Ht(),P(n,IY),n}var IY={needTransform:function(){return!1},normalize:function(e){var t=this._extents[_u]||this._extents[yn];return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])},scale:function(e){var t=this._extents[_u]||this._extents[yn];return e*(t[1]-t[0])+t[0]},transformIn:function(e){return e},transformOut:function(e){return e},contain:function(e){var t=Ms(this,null);return e>=t[0]&&e<=t[1]},getExtent:function(){return this._extents[yn].slice()},getExtentUnsafe:function(e){return this._extents[e]},setExtent:function(e,t){hk(this._extents,yn,e,t)},setExtent2:function(e,t,n){var r=this._extents;r[e]||(r[e]=r[yn].slice()),hk(r,e,t,n)},freeze:function(){}};function hk(e,t,n,r){Ri(n,r)&&(e[t][0]=n,e[t][1]=r)}function qg(e){return Cu(e)||li(e)}function Cu(e){return e.type==="interval"}function Eu(e){return e.type==="time"}function li(e){return e.type==="log"}function Lt(e){return e.type==="ordinal"}function yk(e){var t=Xh(e),n=ja(10,t),r=On(e/n);return r?r===2?r=3:r===3?r=5:r*=2:r=1,Ee(r*n,-t)}function Br(e){return Ar(e)+2}function zf(e,t){return Fl(e)/Fl(t)}function Zg(e,t,n){var r=n&&n.lookup;if(r){for(var i=0;i<r.from.length;i++)if(e===r.from[i])return r.to[i]}return ja(t,e)}function Xg(e,t,n){var r=e.slice();if(r[0]===r[1]){var i=n&&n.ctnShp;if(r[0]!==0){var o=Je(r[0]);t[1]||(r[1]+=o/2),r[0]-=o/2}else i&&(r[0]=-1),r[1]=1}return(!Or(r[0])||!Or(r[1]))&&(r[0]=0,r[1]=1),r[1]<r[0]&&r.reverse(),r}function _k(e,t){return[e[0]!==t[0],e[1]!==t[1]]}function jf(e,t){return e=e||t,On(De(e,1))}function Kg(e,t,n){var r=Gi(e),i=r[0],o=e.count(),a=Math.max((t||0)+1,1);i!==0&&a>1&&o/a>2&&(i=Math.round(Math.ceil(i/a)*a)),i!==r[0]&&l(r[0],!0,!0);for(var s=i;s<=r[1];s+=a)l(s,!1,s===r[0]||s===r[1]);s-a!==r[1]&&l(r[1],!0,!0);function l(u,c,f){n({value:u,offInterval:c},f)}}var xk=(function(e){R(t,e);function t(n){var r=e.call(this)||this;r.type="ordinal",r.parse=t.parse,Wg(r,t.decoratedMethods);var i=n.ordinalMeta;i||(i=new Hf({})),F(i)&&(i=new Hf({categories:V(i,function(a){return z(a)?a.value:a})})),r._ordinalMeta=i;var o=Du(null,null,n.extent||[0,i.categories.length-1]);return r._mapper=o.mapper,Yg(r,o.mapper),r}return t.parse=function(n){return n==null?n=NaN:U(n)?(n=this._ordinalMeta.getOrdinal(n),n==null&&(n=NaN)):n=On(n),n},t.prototype.getTicks=function(){var n=[];return Kg(this,0,function(r){n.push(r)}),n},t.prototype.getMinorTicks=function(n){},t.prototype.setSortInfo=function(n){if(n==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var r=n.ordinalNumbers,i=this._ordinalNumbersByTick=[],o=this._ticksByOrdinalNumber=[],a=0,s=this._ordinalMeta.categories.length,l=it(s,r.length);a<l;++a){var u=i[a]=r[a];o[u]=a}for(var c=0;a<s;++a){for(;o[c]!=null;)c++;i[a]=c,o[c]=a}},t.prototype._getTickNumber=function(n){var r=this._ticksByOrdinalNumber;return r&&n>=0&&n<r.length?r[n]:n},t.prototype.getRawOrdinalNumber=function(n){var r=this._ordinalNumbersByTick;return r&&n>=0&&n<r.length?r[n]:n},t.prototype.getLabel=function(n){if(!this.isBlank()){var r=this.getRawOrdinalNumber(n.value),i=this._ordinalMeta.categories[r];return i==null?"":i+""}},t.prototype.count=function(){var n=Gi(this._mapper);return n[1]-n[0]+1},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.type="ordinal",t.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(n){return this._mapper.contain(this._getTickNumber(n))&&n>=0&&n<this._ordinalMeta.categories.length},normalize:function(n){return this._mapper.normalize(this._getTickNumber(n))},scale:function(n){return this.getRawOrdinalNumber(On(this._mapper.scale(n)))},transformIn:function(n,r){return this._mapper.transformIn(this._getTickNumber(n),r)},transformOut:function(n,r){return this.getRawOrdinalNumber(this._mapper.transformOut(n,r))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(n,r){return this._mapper.getExtentUnsafe(n,r)},setExtent:function(n,r){return this._mapper.setExtent(n,r)},setExtent2:function(n,r,i){return this._mapper.setExtent2(n,r,i)}},t})(ln);ln.registerClass(xk);var Dk=xk;function bu(e,t,n,r){for(var i=e.getTicks({expandToNicedExtent:!0}),o=[],a=e.getExtent(),s=1;s<i.length;s++){var l=i[s],u=i[s-1];if(!(u.break||l.break)){for(var c=0,f=[],d=l.value-u.value,p=d/t,h=Br(p);c<t-1;){var m=Ee(u.value+(c+1)*p,h);m>a[0]&&m<a[1]&&f.push(m),c++}var g=ot();g&&g.pruneTicksByBreak("auto",f,n,function(v){return v},r,a),o.push(f)}}return o}var Sk=(function(e){R(t,e);function t(n){var r=e.call(this)||this;r.type="interval",r.parse=t.parse,n=n||{};var i=zm(r,n),o=Du(r,i,null);return r.brk=o.brk,r._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},r}return t.parse=function(n){return n==null||n===""?NaN:Number(n)},t.prototype.getConfig=function(){return ae(this._cfg)},t.prototype.setConfig=function(n){var r=Gi(this);this._cfg=n=ae(n),n.niceExtent==null&&(n.niceExtent=r.slice()),n.intervalPrecision==null&&(n.intervalPrecision=Br(n.interval))},t.prototype.getTicks=function(n){n=n||{};var r=this._cfg,i=r.interval,o=Gi(this),a=r.niceExtent,s=r.intervalPrecision,l=ot(),u=this.brk,c=l&&u,f=[];if(!i)return f;if(n.breakTicks==="only_break"&&c)return l.addBreaksToTicks(f,u.breaks,o),f;var d=3e3;o[0]<a[0]&&f.push({value:n.expandToNicedExtent?Ee(a[0]-i,s):o[0]});for(var p=function(_,x){return On((x-_)/i)},h=r.intervalCount,m=a[0],g=0;;g++){if(h==null){if(m>a[1]||!isFinite(m)||!isFinite(a[1]))break}else{if(g>h)break;m=it(m,a[1]),g===h&&(m=a[1])}if(f.push({value:m}),m=Ee(m+i,s),u){var v=u.calcNiceTickMultiple(m,p);v>=0&&(m=Ee(m+v*i,s))}if(f.length>0&&m===f[f.length-1].value)break;if(f.length>d)return[]}var y=f.length?f[f.length-1].value:a[1];return o[1]>y&&f.push({value:n.expandToNicedExtent?Ee(y+i,s):o[1]}),c&&l.pruneTicksByBreak(n.pruneByBreak,f,u.breaks,function(_){return _.value},r.interval,o),c&&n.breakTicks!=="none"&&l.addBreaksToTicks(f,u.breaks,o),f},t.prototype.getMinorTicks=function(n){return bu(this,n,ps(this),this._cfg.interval)},t.prototype.getLabel=function(n,r){if(n==null)return"";var i=r&&r.precision;i==null?i=Ar(n.value)||0:i==="auto"&&(i=this._cfg.intervalPrecision);var o=Ee(n.value,i,!0);return aC(o)},t.type="interval",t})(ln);ln.registerClass(Sk);var As=Sk;var MY=function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n},Ek=(function(e){R(t,e);function t(n){var r=e.call(this)||this;r.type="time",r.parse=t.parse,r._locale=n.locale,r._useUTC=n.useUTC,r._interval=0;var i=zm(r,n),o=Du(r,i,null);return r.brk=o.brk,r}return t.prototype.getLabel=function(n){return ms(n.value,KS[_R(nu(this._minLevelUnit))]||KS.second,this._useUTC,this._locale)},t.prototype.getFormattedLabel=function(n,r,i){return xR(n,r,i,this._locale,this._useUTC)},t.prototype.getTicks=function(n){n=n||{};var r=this._interval,i=Gi(this),o=ot(),a=this.brk,s=o&&a,l=[];if(!r)return l;var u=this._useUTC;if(s&&n.breakTicks==="only_break")return ot().addBreaksToTicks(l,a.breaks,i),l;l=kY(this._minLevelUnit,this._approxInterval,u,i,Su(this),a);var c=vn.length-1,f=0;return E(l,function(d){d.time&&(c=Math.min(c,se(vn,d.time.upperTimeUnit)),f=Math.max(f,d.time.level))}),s&&ot().pruneTicksByBreak(n.pruneByBreak,l,a.breaks,function(d){return d.value},this._approxInterval,i),s&&n.breakTicks!=="none"&&ot().addBreaksToTicks(l,a.breaks,i,function(d){for(var p=Math.max(se(vn,gs(d.vmin,u)),se(vn,gs(d.vmax,u))),h=0,m=0;m<vn.length;m++)if(!bk(vn[m],d.vmin,d.vmax,u)){h=m;break}var g=Math.min(h,c),v=Math.max(g,p);return{level:f,lowerTimeUnit:vn[v],upperTimeUnit:vn[g]}}),l},t.prototype.getMinorTicks=function(n){return bu(this,n,ps(this),this._interval)},t.prototype.setTimeInterval=function(n){this._interval=n.interval,this._approxInterval=n.approxInterval,this._minLevelUnit=n.minLevelUnit},t.parse=function(n){return ge(n)?Math.round(n):+Kr(n)},t.type="time",t})(ln),Qg=[["second",$m],["minute",Wm],["hour",tu],["quarter-day",tu*6],["half-day",tu*12],["day",kn*1.2],["half-week",kn*3.5],["week",kn*7],["month",kn*31],["quarter",kn*95],["half-year",XS/2],["year",XS]];function bk(e,t,n,r){return Ym(new Date(t),e,r).getTime()===Ym(new Date(n),e,r).getTime()}function AY(e,t){return e/=kn,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function NY(e){var t=30*kn;return e/=t,e>6?6:e>3?3:e>2?2:1}function OY(e){return e/=tu,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function Ck(e,t){return e/=t?Wm:$m,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function RY(e){return De(Ga(e,!0),1)}function PY(e,t,n){var r=Math.max(0,se(vn,t)-1);return Ym(new Date(e),vn[r],n).getTime()}function LY(e,t){var n=new Date(0);n[e](1);var r=n.getTime();n[e](1+t);var i=n.getTime()-r;return function(o,a){return Math.max(0,Math.round((a-o)/i))}}function kY(e,t,n,r,i,o){var a=3e3,s=gR,l=0;function u(L,k,B,j,Z,H,K){for(var J=LY(Z,L),W=k,de=new Date(W);W<B&&W<=r[1]&&(K.push({value:W}),!(l++>a));)if(de[Z](de[j]()+L),W=de.getTime(),o){var Ie=o.calcNiceTickMultiple(W,J);Ie>0&&(de[Z](de[j]()+Ie*L),W=de.getTime())}K.push({value:W,notAdd:W>r[1]})}function c(L,k,B){var j=[],Z=!k.length;if(!bk(nu(L),r[0],r[1],n)){Z&&(k=[{value:PY(r[0],L,n)},{value:r[1]}]);for(var H=0;H<k.length-1;H++){var K=k[H].value,J=k[H+1].value;if(K!==J){var W=void 0,de=void 0,Ie=void 0,kt=!1;switch(L){case"year":W=Math.max(1,Math.round(t/kn/365)),de=QS(n),Ie=DR(n);break;case"half-year":case"quarter":case"month":W=NY(t),de=qm(n),Ie=JS(n);break;case"week":case"half-week":case"day":W=AY(t,31),de=Zm(n),Ie=eC(n),kt=!0;break;case"half-day":case"quarter-day":case"hour":W=OY(t),de=Xm(n),Ie=tC(n);break;case"minute":W=Ck(t,!0),de=Km(n),Ie=nC(n);break;case"second":W=Ck(t,!1),de=Qm(n),Ie=rC(n);break;case"millisecond":W=RY(t),de=Jm(n),Ie=iC(n);break}J>=r[0]&&K<=r[1]&&u(W,K,J,de,Ie,kt,j),L==="year"&&B.length>1&&H===0&&B.unshift({value:B[0].value-W})}}for(var H=0;H<j.length;H++)B.push(j[H])}}for(var f=[],d=[],p=0,h=0,m=0;m<s.length;++m){var g=nu(s[m]);if(yR(s[m])){c(s[m],f[f.length-1]||[],d);var v=s[m+1]?nu(s[m+1]):null;if(g!==v){if(d.length){h=p,d.sort(function(L,k){return L.value-k.value});for(var y=[],_=0;_<d.length;++_){var x=d[_].value;(_===0||d[_-1].value!==x)&&(y.push(d[_]),x>=r[0]&&x<=r[1]&&p++)}var D=i/t;if(p>D*1.5&&h>D/1.5||(f.push(y),p>D||e===s[m]))break}d=[]}}}for(var S=qe(V(f,function(L){return qe(L,function(k){return k.value>=r[0]&&k.value<=r[1]&&!k.notAdd})}),function(L){return L.length>0}),C=S.length-1,w=[],m=0;m<S.length;++m)for(var I=S[m],b=0;b<I.length;++b){var T=gs(I[b].value,n);w.push({value:I[b].value,time:{level:C-m,upperTimeUnit:T,lowerTimeUnit:T}})}Ul(w,iN,null),w.sort(function(L,k){return L.value-k.value});var A=w[0],M=w[w.length-1],N=gs(r[0],n),O=gs(r[1],n);return(!A||A.value>r[0])&&w.unshift({value:r[0],time:{level:0,upperTimeUnit:N,lowerTimeUnit:N},notNice:!0}),(!M||M.value<r[1])&&w.push({value:r[1],time:{level:0,upperTimeUnit:O,lowerTimeUnit:O},notNice:!0}),w}var wk=function(e,t){var n=e.getExtent();if(n[0]===n[1]&&(n[0]-=kn,n[1]+=kn),n[1]===-1/0&&n[0]===1/0){var r=new Date;n[1]=+new Date(r.getFullYear(),r.getMonth(),r.getDate()),n[0]=n[1]-kn}e.setExtent(n[0],n[1]);var i=jf(t.splitNumber,10),o=Su(e)/i,a=t.minInterval,s=t.maxInterval;a!=null&&o<a&&(o=a),s!=null&&o>s&&(o=s);var l=Qg.length,u=Math.min(MY(Qg,o,0,l),l-1),c=Qg[u][1],f=Qg[Math.max(u-1,0)][0];e.setTimeInterval({approxInterval:o,interval:c,minLevelUnit:f})};ln.registerClass(Ek);var Tk=Ek;var Jg=0,ev=1,FY=2,Nk=(function(e){R(t,e);function t(n){var r=e.call(this)||this;r.type="log",r.parse=As.parse,r.base=n.logBase||10;var i=[],o=[],a=r._lookup={from:i,to:o};i[Jg]=i[ev]=o[Jg]=o[ev]=NaN,Wg(r,t.mapperMethods);var s=ot(),l=n.breakOption,u={lookup:a};return s&&s.parseAxisBreakOptionInwardTransform(l,r,{noNegative:!0},FY,u),r.powStub=new As({breakParsed:u.original}),r.intervalStub=new As({breakParsed:u.transformed}),Yg(r,r.intervalStub),r}return t.prototype.getTicks=function(n){var r=this.base,i=this.powStub,o=ot(),a=this.intervalStub,s=a.getExtent(),l=i.getExtent(),u={lookup:{from:s,to:l}};return V(a.getTicks(n||{}),function(c){var f=c.value,d=Zg(f,r,u),p;if(o){var h=o.getTicksBreakOutwardTransform(this,c,ps(i),this._lookup);h&&(p=h.vBreak,d=h.tickVal)}return{value:d,break:p}},this)},t.prototype.getMinorTicks=function(n){return bu(this,n,ps(this.powStub),this.intervalStub.getConfig().interval)},t.prototype.getLabel=function(n,r){return this.intervalStub.getLabel(n,r)},t.type="log",t.mapperMethods={needTransform:function(){return!0},normalize:function(n){return this.intervalStub.normalize(zf(n,this.base))},scale:function(n){return Zg(this.intervalStub.scale(n),this.base,null)},transformIn:function(n,r){return n=zf(n,this.base),r&&r.depth===xu?n:this.intervalStub.transformIn(n,r)},transformOut:function(n,r){var i=r?r.depth:null;return Ik.depth=i,Mk.lookup=this._lookup,Zg(i===xu?n:this.intervalStub.transformOut(n,Ik),this.base,Mk)},contain:function(n){return this.powStub.contain(n)},setExtent:function(n,r){this.setExtent2(yn,n,r)},setExtent2:function(n,r,i){if(!(!Ri(r,i)||r<=0||i<=0)){var o=Ak,a=Ak;if(n===yn){var s=this._lookup;o=s.to,a=s.from}this.powStub.setExtent2(n,o[Jg]=r,o[ev]=i);var l=this.base;this.intervalStub.setExtent2(n,a[Jg]=zf(r,l),a[ev]=zf(i,l))}},getFilter:function(){return{g:0}},sanitize:function(n,r){return Ri(r[0],r[1])&&yt(n)&&n<=0&&(n=r[0]),n},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(n,r){return r===null?this.powStub.getExtentUnsafe(n,null):this.intervalStub.getExtentUnsafe(n,r)}},t})(ln);ln.registerClass(Nk);var Ik={},Mk={},Ak=[],Ok=Nk;var tv={value:1,category:1,time:1,log:1};var Rk=re();function Pk(e){var t=e.get("type");return(t==null||!Q(tv,t)&&!ln.getClass(t))&&(t="value"),t}function Lk(e,t,n){var r=ot(),i;switch(r&&(i=dE(e,t,n)),t){case"category":return new Dk({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:Ht()});case"time":return new Tk({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC"),breakOption:i});case"log":return new Ok({logBase:e.get("logBase"),breakOption:i});case"value":return new As({breakOption:i});default:return new(ln.getClass(t)||As)({})}}function kk(e,t,n){var r=n?Ms(e,null):e.getExtentUnsafe(yn,null),i=r[0],o=r[1];return Ri(i,o)?i===t||o===t?VY:i<t&&o>t?BY:nv:nv}var BY=1,VY=2,nv=3;function Fk(e){Rk(e).noOnMyZero=!0}function Bk(e){return Rk(e).noOnMyZero}function Gf(e){var t=e.getLabelModel().get("formatter");if(e.type==="time"){var n=vR(t);return function(i,o){return e.scale.getFormattedLabel(i,o,n)}}else{if(U(t))return function(i){var o=e.scale.getLabel(i),a=t.replace("{value}",o??"");return a};if(Y(t)){if(e.type==="category")return function(i,o){return t(wu(e,i),i.value-e.scale.getExtent()[0],null)};var r=ot();return function(i,o){var a=null;return r&&(a=r.makeAxisLabelFormatterParamBreak(a,i.break)),t(wu(e,i),o,a)}}else return function(i){return e.scale.getLabel(i)}}}function wu(e,t){var n=e.scale;return Lt(n)?n.getLabel(t):t.value}function rv(e){var t=e.get("interval");return t??"auto"}function Vk(e){return e.type==="category"&&rv(e.getLabelModel())===0}function Uk(e,t){var n={};return E(e.mapDimensionsAll(t),function(r){n[dk(e,r)]=!0}),X(n)}function Vo(e){return e==="middle"||e==="center"}function Ns(e){return e.getShallow("show")}function dE(e,t,n){var r=e.get("breaks",!0);if(r!=null){if(!ot())return;if(!n||!UY(t)){if(0)var i;return}return r}}function UY(e){return e!=="category"}function iv(e,t,n,r,i,o){var a=li(e),s=a?e.intervalStub:e;if(s.setExtent(r[0],r[1]),a){var l=e.powStub,u={depth:xu},c=e.transformOut(r[0],u),f=e.transformOut(r[1],u),d=_k(n,r);t[0]&&!d[0]&&(c=i[0]),t[1]&&!d[1]&&(f=i[1]),l.setExtent(c,f)}s.setConfig(o)}function $i(e,t){return Lt(e)?e.getRawOrdinalNumber(t.value):t.value}function ov(e,t){return Lt(e)&&!!t.get("boundaryGap")}var zk=(function(){function e(){}return e.prototype.needIncludeZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e})();var HY=tm(),av="|&",Tu=re(),sv=-2,jk=-1,zY=re();function Gk(e,t){var n=e.model,r=Tu(bs(n.ecModel)).keyed,i=r&&r.get(t);return i&&i.get(n.uid)}function $k(e,t){return qk(Gk(e,t))}function Wk(e,t){var n=[];return Yk(e.model.ecModel,function(r){for(var i=0;i<t.length;i++)t[i]&&r.serByIdx[t[i].seriesIndex]&&n.push(qk(r))}),n}function Yk(e,t){var n=Tu(bs(e)).keyed;n&&n.each(function(r,i){r.each(function(o,a){t(o,i,a)})})}function qk(e){return{liPosMinGap:e?e.liPosMinGap:void 0}}function Zk(e,t){var n=e.model.ecModel,r=Tu(bs(n)).axSer;r&&lv(n,r.get(e.model.uid),t)}function mE(e,t,n){var r=Gk(e,t);r&&lv(e.model.ecModel,r.sers,n)}function lv(e,t,n){if(t)for(var r=0;r<t.length;r++){var i=t[r];e.isSeriesFiltered(i)||n(i)}}function Xk(e,t,n){var r=Tu(bs(e)).keyed,i=r&&r.get(t);i&&i.each(function(o){n(o.axis)})}function gE(e,t){var n=e.model,r=Tu(bs(n.ecModel)).keys;r&&E(r.get(n.uid),function(i){if(0)var o;t(i)})}function jY(e){var t=zY(oL(e)),n=t.keyed||(t.keyed=q());Yk(e,function(r,i,o){var a=n.get(i)||n.set(i,q()),s=a.get(o)||a.set(o,{});r.metrics.liPosMinGap&&Qk.liPosMinGap(e,r,s)})}function Kk(e,t){Qk[e]=t}var Qk={};function vE(e,t,n){if(e){var r=t.ecModel,i=Tu(bs(r)),o=e.model.uid;if(0)var a,s;var l=i.axSer||(i.axSer=q()),u=l.get(o)||l.set(o,[]);if(0)var c;u.push(t);var f=t.subType,d=t.getBaseAxis()===e,p=hE.get(pE(f,d,n))||hE.get(pE(f,d,null));if(p){var h=i.keyed||(i.keyed=q()),m=i.keys||(i.keys=q()),g=p.key,v=h.get(g)||h.set(g,q()),y=v.get(o);y||(y=v.set(o,{axis:e,sers:[],serByIdx:[]}),y.metrics=p.getMetrics(e),(m.get(o)||m.set(o,[])).push(g)),y.sers.push(t),y.serByIdx[t.seriesIndex]=t}}}function pE(e,t,n){return e+av+G(t,!0)+av+(n||"")}function Jk(e,t){var n=pE(t.seriesType,t.baseAxis,t.coordSysType);hE.set(n,t),HY(e,function(){e.registerProcessor(e.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:jY})})}var hE=q();var GY=re(),nF=1;var $Y=3,rF=(function(){function e(t,n,r,i,o){var a=Lt(t),s=a?n.getCategories().length:null,l;if(a){var u=n.getCategories(!0);l=u&&!u.length}var c=r.slice();(Cu(t)||li(t)||Eu(t))&&(PD(c,$f(t,n.get("dataMin",!0))),LD(c,$f(t,n.get("dataMax",!0)))),nN(c)||(c[0]=c[1]=NaN);var f=[],d=[!1,!1],p=n.get("min",!0);p==="dataMin"?(f[0]=c[0],d[0]=!0):(f[0]=$f(t,Y(p)?p({min:c[0],max:c[1]}):p),d[0]=f[0]!=null);var h=n.get("max",!0);h==="dataMax"?(f[1]=c[1],d[1]=!0):(f[1]=$f(t,Y(h)?h({min:c[0],max:c[1]}):h),d[1]=f[1]!=null);var m=WY(t,n),g=a?null:c[1]-c[0]||Math.abs(c[0]);f[0]==null&&(f[0]=a?l?c[0]:s?0:NaN:c[0]-m[0]*g),f[1]==null&&(f[1]=a?l?c[1]:s?s-1:NaN:c[1]+m[1]*g),!Or(f[0])&&(f[0]=NaN),!Or(f[1])&&(f[1]=NaN);var v=l||lo(f[0])||lo(f[1])||a&&!s,y=Cu(t),_=y&&n.needIncludeZero&&n.needIncludeZero();_&&(f[0]>0&&f[1]>0&&!d[0]&&(f[0]=0),f[0]<0&&f[1]<0&&!d[1]&&(f[1]=0));var x=!1;f[0]>f[1]&&(f.reverse(),x=!0);var D=$f(t,n.get("startValue",!0)),S=D!=null;!yt(D)&&i&&(D=t.getDefaultStartValue?t.getDefaultStartValue():0),yt(D)&&(S||!y||_)&&(D<f[0]&&!d[0]?(f[0]=D,d[0]=!0):D>f[1]&&!d[1]&&(f[1]=D,d[1]=!0));var C=this._i={scale:t,dataMM:c,noZoomEffMM:f,zoomMM:[],fixMM:d,zoomFixMM:[!1,!1],startValue:D,isBlank:v,incl0:_,tggAxInv:x,ctnShp:o};eF(C,f)}return e.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},e.prototype.makeFinal=function(){var t=this._i,n=t.zoomMM,r=t.noZoomEffMM,i=t.zoomFixMM,o=t.fixMM,a={fixMM:o,zoomFixMM:i,isBlank:t.isBlank,incl0:t.incl0,tggAxInv:t.tggAxInv,ctnShp:t.ctnShp,effMM:r.slice()},s=a.effMM;return n[0]!=null&&(s[0]=n[0],o[0]=i[0]=!0),n[1]!=null&&(s[1]=n[1],o[1]=i[1]=!0),eF(t,s),a},e.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},e.prototype.setZoomMM=function(t,n){this._i.zoomMM[t]=n},e})();function eF(e,t){var n=e.scale,r=e.dataMM;n.sanitize&&(t[0]=n.sanitize(t[0],r),t[1]=n.sanitize(t[1],r),rN(t))}function $f(e,t){return t==null?null:lo(t)?NaN:e.parse(t)}function WY(e,t){var n;if(Lt(e))n=[0,0];else{var r=t.get("boundaryGap");typeof r=="boolean"&&(r=null),n=F(r)?r:[r,r]}return[tF(n[0]),tF(n[1])]}function tF(e){return Tr(typeof e=="boolean"?0:e,1)||0}function iF(e){var t=GY(e.scale);return t.extent||(t.extent=Ht()),t}function oF(e,t){iF(e).dimIdxInCoord=t.get(e.dim)}function aF(e,t){var n=e.scale,r=e.model,i=e.dim;n.rawExtentInfo||YY(n,e,i,r,t)}function YY(e,t,n,r,i){var o=iF(t),a=o.extent,s=!1;Zk(t,function(c){if(c.boxCoordinateSystem){var f=og(c).coord,d=o.dimIdxInCoord;if(d>=0){if(F(f)){var p=f[d];p!=null&&!F(p)&&Qc(a,e.parse(p))}}}else if(c.coordinateSystem){var h=c.getData();if(h){var m=e.getFilter?e.getFilter():null;E(Uk(h,n),function(g){tN(a,h.getApproximateExtent(g,m))})}c.__requireStartValue&&c.__requireStartValue(t)&&(s=!0)}});var l=ZY(e,t,r),u=new rF(e,r,a,s,l);sF(e,u,i),o.extent=null}function qY(e,t){var n=e.scale;sF(n,new rF(n,e.model,t,!1,!1),$Y)}function sF(e,t,n){e.rawExtentInfo=t,t.from=n}function lF(e,t){yE.set(e,t)}var yE=q();function uv(e,t,n,r,i){e.rawExtentInfo||qY({scale:e,model:t},i||Ht());var o=e.rawExtentInfo.makeFinal(),a=o.effMM;return e.setExtent(a[0],a[1]),e.setBlank(o.isBlank),r&&o.tggAxInv&&n&&!n.get("legacyMinMaxDontInverseAxis")&&(r.inverse=!r.inverse),o}function ZY(e,t,n){var r=ov(e,n),i=n.get("containShape",!0);if(i==null&&!r&&(i=!0),!i)return!1;var o=!1;return gE(t,function(a){o=!!yE.get(a)||o}),o}function uF(e,t,n,r){if(n.ctnShp){var i;if(gE(e,function(s){var l=yE.get(s);if(l){var u=l(e,r);u&&(i=i||[0,0],PD(i,u[0]),LD(i,u[1]),Fk(e))}}),!!i){var o=t.getExtent();if(Lt(t))e.onBand||t.setExtent2(_u,it(o[0],o[0]+i[0]),De(o[1],o[1]+i[1]));else{var a=o.slice();n.zoomFixMM[0]||(a[0]=it(a[0],t.transformOut(t.transformIn(a[0],null)+i[0],null))),n.zoomFixMM[1]||(a[1]=De(a[1],t.transformOut(t.transformIn(a[1],null)+i[1],null))),(a[0]<o[0]||a[1]>o[1])&&t.setExtent2(_u,a[0],a[1])}}}}function cF(e,t){var n=li(e),r=n?e.intervalStub:e,i=t.fixMinMax||[],o=n?e.getExtent():null,a=r.getExtent(),s=Xg(a,i,t.rawExtentResult);r.setExtent(s[0],s[1]),s=r.getExtent();var l=n?KY(r,t):XY(r,t),u=l.intervalPrecision,c=l.interval,f=t.userInterval;f!=null&&(l.interval=f,l.intervalPrecision=Br(f)),i[0]||(s[0]=Ee(Ni(s[0]/c)*c,u)),i[1]||(s[1]=Ee(xo(s[1]/c)*c,u)),f!=null&&(l.niceExtent=s.slice()),iv(e,i,a,s,o,l)}function XY(e,t){var n=jf(t.splitNumber,5),r=Su(e),i=t.minInterval,o=t.maxInterval,a=Ga(r/n,!0);i!=null&&a<i&&(a=i),o!=null&&a>o&&(a=o);var s=Br(a),l=e.getExtent(),u=[Ee(xo(l[0]/a)*a,s),Ee(Ni(l[1]/a)*a,s)];return{interval:a,intervalPrecision:s,niceExtent:u}}function KY(e,t){var n=jf(t.splitNumber,10),r=e.getExtent(),i=Su(e),o=De(Zh(i),1),a=n/i*o;a<=.5&&(o*=10);var s=Br(o),l=[Ee(xo(r[0]/o)*o,s),Ee(Ni(r[1]/o)*o,s)];return{intervalPrecision:s,interval:o,niceExtent:l}}function _E(e){var t=e.scale,n=e.model,r=n.axis,i=n.ecModel;QY(t,n,r,i,null)}function QY(e,t,n,r,i){var o=uv(e,t,r,n,i),a=Cu(e)||Eu(e);JY(e,{splitNumber:t.get("splitNumber"),fixMinMax:o.fixMM,userInterval:t.get("interval"),minInterval:a?t.get("minInterval"):null,maxInterval:a?t.get("maxInterval"):null,rawExtentResult:o}),n&&r&&uF(n,e,o,r)}function JY(e,t){eq[e.type](e,t)}var eq={interval:cF,log:cF,time:wk,ordinal:Qe};var fF=[],tq={registerPreprocessor:tE,registerProcessor:nE,registerPostInit:QL,registerPostUpdate:JL,registerUpdateLifecycle:zg,registerAction:Is,registerCoordinateSystem:ek,registerLayout:tk,registerVisual:Fo,registerTransform:rk,registerLoading:iE,registerMap:nk,registerImpl:eL,PRIORITY:zL,ComponentModel:Ve,ComponentView:on,SeriesModel:Bn,ChartView:an,registerComponentModel:function(e){Ve.registerClass(e)},registerComponentView:function(e){on.registerClass(e)},registerSeriesModel:function(e){Bn.registerClass(e)},registerChartView:function(e){an.registerClass(e)},registerCustomSeries:function(e,t){nL(e,t)},registerSubTypeDefaulter:function(e,t){Ve.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){k1(e,t)}};function Vr(e){if(F(e)){E(e,function(t){Vr(t)});return}se(fF,e)>=0||(fF.push(e),Y(e)&&(e={install:e}),e.install(tq))}var nq=re(),Wf=re(),_n={estimate:1,determine:2};function Iu(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function dF(e,t){var n=e.getLabelModel().get("customValues");if(n){var r=e.scale;return{labels:V(hF(n,r),function(i,o){return{formattedLabel:Gf(e)(i,o),rawLabel:r.getLabel(i),tick:i}})}}return e.type==="category"?rq(e,t):oq(e)}function pF(e,t,n){var r=e.scale,i=e.getTickModel().get("customValues");return i?{ticks:hF(i,r)}:e.type==="category"?iq(e,t):{ticks:r.getTicks(n)}}function hF(e,t){var n=t.getExtent(),r=[];return E(e,function(i){i=t.parse(i),i>=n[0]&&i<=n[1]&&r.push(i)}),Ul(r,oN,null),Bl(r),V(r,function(i){return{value:i}})}function rq(e,t){var n=e.getLabelModel(),r=mF(e,n,t);return!n.get("show")||e.scale.isBlank()?{labels:[]}:r}function mF(e,t,n){var r=sq(e),i=rv(t),o=n.kind===_n.estimate;if(!o){var a=vF(r,i);if(a)return a}var s,l;Y(i)?s=cv(e,i,!1):(l=i==="auto"?lq(e,n):i,s=cv(e,l,!1));var u={labels:s,labelCategoryInterval:l};return o?n.out.noPxChangeTryDetermine.push(function(){return xE(r,i,u),!0}):xE(r,i,u),u}function iq(e,t){var n=aq(e),r=rv(t),i=vF(n,r);if(i)return i;var o,a;if((!t.get("show")||e.scale.isBlank())&&(o=[]),Y(r))o=cv(e,r,!0);else if(r==="auto"){var s=mF(e,e.getLabelModel(),Iu(_n.determine));a=s.labelCategoryInterval,o=V(s.labels,function(l){return l.tick})}else a=r,o=cv(e,a,!0);return xE(n,r,{ticks:o,tickCategoryInterval:a})}function oq(e){var t=e.scale.getTicks(),n=Gf(e);return{labels:V(t,function(r,i){return{formattedLabel:n(r,i),rawLabel:e.scale.getLabel(r),tick:r}})}}var aq=gF("axisTick"),sq=gF("axisLabel");function gF(e){return function(n){return Wf(n)[e]||(Wf(n)[e]={list:[]})}}function vF(e,t){for(var n=0;n<e.list.length;n++)if(e.list[n].key===t)return e.list[n].value}function xE(e,t,n){return e.list.push({key:t,value:n}),n}function lq(e,t){if(t.kind===_n.estimate){var n=e.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return Wf(e).autoInterval=n,!0}),n}var r=Wf(e).autoInterval;return r??(Wf(e).autoInterval=e.calculateCategoryInterval(t))}function yF(e,t){var n=t.kind,r=cq(e),i=Gf(e),o=(r.axisRotate-r.labelRotate)/180*Math.PI,a=e.scale,s=a.getExtent(),l=a.count();if(s[1]-s[0]<1)return 0;var u=1,c=40;l>c&&(u=Math.max(1,Math.floor(l/c)));for(var f=s[0],d=e.dataToCoord(f+1)-e.dataToCoord(f),p=Math.abs(d*Math.cos(o)),h=Math.abs(d*Math.sin(o)),m=0,g=0;f<=s[1];f+=u){var v=0,y=0,_=jh(i({value:f}),r.font,"center","top");v=_.width*1.3,y=_.height*1.3,m=Math.max(m,v,7),g=Math.max(g,y,7)}var x=m/p,D=g/h;isNaN(x)&&(x=1/0),isNaN(D)&&(D=1/0);var S=Math.max(0,Math.floor(Math.min(x,D)));if(n===_n.estimate)return t.out.noPxChangeTryDetermine.push(be(uq,null,e,S,l)),S;var C=_F(e,S,l);return C??S}function uq(e,t,n){return _F(e,t,n)==null}function _F(e,t,n){var r=nq(e.model),i=e.getExtent(),o=r.lastAutoInterval,a=r.lastTickCount;if(o!=null&&a!=null&&Math.abs(o-t)<=1&&Math.abs(a-n)<=1&&o>t&&r.axisExtent0===i[0]&&r.axisExtent1===i[1])return o;r.lastTickCount=n,r.lastAutoInterval=t,r.axisExtent0=i[0],r.axisExtent1=i[1]}function cq(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function cv(e,t,n){var r=Gf(e),i=e.scale,o=[],a=Y(t);return Kg(i,a?0:t,function(s,l){var u=i.getLabel(s);if(a){var c=!!t(s.value,u);if(s.offInterval=!c,!c&&!l)return}o.push(n?s:{formattedLabel:r(s),rawLabel:u,tick:s})}),o}var fq=.8;function Ur(e,t){t=t||{};var n={w:NaN,w2:NaN},r=e.scale,i=t.fromStat,o=t.min,a=vk(r);yt(a)||(a=NaN);var s=e.getExtent(),l=Je(s[1]-s[0]);return Lt(r)?dq(n,e,a,l):i?pq(n,e,a,l,i):o==null,o!=null&&(n.w=yt(n.w)?De(o,n.w):o),n}function dq(e,t,n,r){var i=t.onBand,o=n+(i?1:0);o===0&&(o=1),e.w=r/o,!i&&n&&r&&(e.w2=e.w*n/r)}function pq(e,t,n,r,i){var o=!1,a=-1/0;E(i.key?[$k(t,i.key)]:Wk(t,i.sers||[]),function(s){var l=s.liPosMinGap;l!=null&&(l>0?(l>a&&(a=l),o=!1):l===sv&&(o=!0))}),yt(n)&&n>0&&yt(a)?(e.w=r/n*a,e.w2=a):o&&(e.w=r*fq,e.w2=e.w*n/r)}var xF=[0,1],hq=(function(){function e(t,n,r){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=n,this._extent=r||[0,0]}return e.prototype.contain=function(t){var n=this._extent,r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return t>=r&&t<=i},e.prototype.containData=function(t){return this.scale.contain(this.scale.parse(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,n){var r=this._extent;r[0]=t,r[1]=n},e.prototype.dataToCoord=function(t,n){var r=this.scale;return t=r.normalize(r.parse(t)),Nr(t,xF,DF(this),n)},e.prototype.coordToData=function(t,n){var r=Nr(t,DF(this),xF,n);return this.scale.scale(r)},e.prototype.pointToData=function(t,n){},e.prototype.getTicksCoords=function(t){t=t||{};var n=t.tickModel||this.getTickModel(),r=pF(this,n,{breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak}),i=V(r.ticks,function(s){return{coord:this.dataToCoord($i(this.scale,s)),tick:s}},this),o=n.get("alignWithLabel"),a=mq(this,i,o);return V(i,function(s){return{coord:s.coord,tickValue:s.tick.value,onBand:a}})},e.prototype.getMinorTicksCoords=function(){if(Lt(this.scale))return[];var t=this.model.getModel("minorTick"),n=t.get("splitNumber");n>0&&n<100||(n=5);var r=this.scale.getMinorTicks(n),i=V(r,function(o){return V(o,function(a){return{coord:this.dataToCoord(a),tickValue:a}},this)},this);return i},e.prototype.getViewLabels=function(t){return t=t||Iu(_n.determine),dF(this,t).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){return Ur(this,{min:1}).w},e.prototype.calculateCategoryInterval=function(t){return t=t||Iu(_n.determine),yF(this,t)},e})();function DF(e){var t=e.getExtent();if(e.onBand){var n=t[1]-t[0],r=n/e.scale.count()/2;t[0]+=r,t[1]-=r}return t}function mq(e,t,n){var r=t.length;if(!e.onBand||n||!r)return!1;var i=Ur(e).w;if(!i)return!1;E(t,function(s){s.coord-=i/2});var o=e.scale.getExtent(),a=t[r-1];return a.tick.offInterval&&t.pop(),t.push({coord:a.coord+i,tick:{value:o[1]+1}}),!0}var SF=hq;var CF=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],gq=1,fv=2,bF=gq|fv;function Yf(e,t,n){n=n||bF,t?e.dirty|=n:e.dirty&=~n}function wF(e,t){return t=t||bF,e.dirty==null||!!(e.dirty&t)}function Hr(e){if(e)return wF(e)&&vq(e,e.label,e),e}function vq(e,t,n){var r=t.getComputedTransform();e.transform=km(e.transform,r);var i=e.localRect=Ql(e.localRect,t.getBoundingRect()),o=t.style,a=o.margin,s=n&&n.marginForce,l=n&&n.minMarginForce,u=n&&n.marginDefault,c=o.__marginType;c==null&&u&&(a=u,c=cs.textMargin);for(var f=0;f<4;f++)DE[f]=c===cs.minMargin&&l&&l[f]!=null?l[f]:s&&s[f]!=null?s[f]:a?a[f]:0;c===cs.textMargin&&Xl(i,DE,!1,!1);var d=e.rect=Ql(e.rect,i);return r&&d.applyTransform(r),c===cs.minMargin&&Xl(d,DE,!1,!1),e.axisAligned=Lm(r),(e.label=e.label||{}).ignore=t.ignore,Yf(e,!1),Yf(e,!0,fv),e}var DE=[0,0,0,0];function TF(e,t,n){return e.transform=km(e.transform,n),e.localRect=Ql(e.localRect,t),e.rect=Ql(e.rect,t),n&&e.rect.applyTransform(n),e.axisAligned=Lm(n),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}function IF(e,t){if(e){e.label.x+=t.x,e.label.y+=t.y,e.label.markRedraw();var n=e.transform;n&&(n[4]+=t.x,n[5]+=t.y);var r=e.rect;r&&(r.x+=t.x,r.y+=t.y);var i=e.obb;i&&i.fromBoundingRect(e.localRect,n)}}function SE(e,t){for(var n=0;n<CF.length;n++){var r=CF[n];e[r]==null&&(e[r]=t[r])}return Hr(e)}function EF(e){var t=e.obb;return(!t||wF(e,fv))&&(e.obb=t=t||new Am,t.fromBoundingRect(e.localRect,e.transform),Yf(e,!1,fv)),t}function MF(e){var t=[];e.sort(function(u,c){return(c.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||c.priority-u.priority});function n(u){if(!u.ignore){var c=u.ensureState("emphasis");c.ignore==null&&(c.ignore=!1)}u.ignore=!0}for(var r=0;r<e.length;r++){var i=Hr(e[r]);if(!i.label.ignore){for(var o=i.label,a=i.labelLine,s=!1,l=0;l<t.length;l++)if(dv(i,t[l],null,{touchThreshold:.05})){s=!0;break}s?(n(o),a&&n(a)):t.push(i)}}}function dv(e,t,n,r){return!e||!t||e.label&&e.label.ignore||t.label&&t.label.ignore||!e.rect.intersect(t.rect,n,r)?!1:e.axisAligned&&t.axisAligned?!0:EF(e).intersect(EF(t),n,r)}var yq=(function(e){R(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(n){if(0)var r;return yu(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(n){var r=new ke,i=lr("line",0,n.itemHeight/2,n.itemWidth,0,n.lineStyle.stroke,!1);r.add(i),i.setStyle(n.lineStyle);var o=this.getData().getVisual("symbol"),a=this.getData().getVisual("symbolRotate"),s=o==="none"?"circle":o,l=n.itemHeight*.8,u=lr(s,(n.itemWidth-l)/2,(n.itemHeight-l)/2,l,l,n.itemStyle.fill);r.add(u),u.setStyle(n.itemStyle);var c=n.iconRotate==="inherit"?a:n.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([n.itemWidth/2,n.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill=oe.color.neutral00,u.style.lineWidth=2),r},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1,triggerEvent:!1},t})(Bn),AF=yq;function Mu(e,t){var n=e.mapDimensionsAll("defaultedLabel"),r=n.length;if(r===1){var i=Hi(e,t,n[0]);return i!=null?i+"":null}else if(r){for(var o=[],a=0;a<n.length;a++)o.push(Hi(e,t,n[a]));return o.join(" ")}}function pv(e,t){var n=e.mapDimensionsAll("defaultedLabel");if(!F(t))return t+"";for(var r=[],i=0;i<n.length;i++){var o=e.getDimensionIndex(n[i]);o>=0&&r.push(t[o])}return r.join(" ")}var _q=(function(e){R(t,e);function t(n,r,i,o){var a=e.call(this)||this;return a.updateData(n,r,i,o),a}return t.prototype._createSymbol=function(n,r,i,o,a,s){this.removeAll();var l=lr(n,-1,-1,2,2,null,s);l.attr({z2:G(a,100),culling:!0,scaleX:o[0]/2,scaleY:o[1]/2}),l.drift=xq,this._symbolType=n,this.add(l)},t.prototype.stopSymbolAnimation=function(n){this.childAt(0).stopAnimation(null,n)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){ts(this.childAt(0))},t.prototype.downplay=function(){ns(this.childAt(0))},t.prototype.setZ=function(n,r){var i=this.childAt(0);i.zlevel=n,i.z=r},t.prototype.setDraggable=function(n,r){var i=this.childAt(0);i.draggable=n,i.cursor=!r&&n?"move":i.cursor},t.prototype.updateData=function(n,r,i,o){this.silent=!1;var a=n.getItemVisual(r,"symbol")||"circle",s=n.hostModel,l=t.getSymbolSize(n,r),u=t.getSymbolZ2(n,r),c=a!==this._symbolType,f=o&&o.disableAnimation;if(c){var d=n.getItemVisual(r,"symbolKeepAspect");this._createSymbol(a,n,r,l,u,d)}else{var p=this.childAt(0);p.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};f?p.attr(h):et(p,h,s,r),Nm(p)}if(this._updateCommon(n,r,l,i,o),c){var p=this.childAt(0);if(!f){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:p.style.opacity}};p.scaleX=p.scaleY=0,p.style.opacity=0,Tt(p,h,s,r)}}f&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(n,r,i,o,a){var s=this.childAt(0),l=n.hostModel,u,c,f,d,p,h,m,g,v;if(o&&(u=o.emphasisItemStyle,c=o.blurItemStyle,f=o.selectItemStyle,d=o.focus,p=o.blurScope,m=o.labelStatesModels,g=o.hoverScale,v=o.cursorStyle,h=o.emphasisDisabled),!o||n.hasItemOption){var y=o&&o.itemModel?o.itemModel:n.getItemModel(r),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),f=y.getModel(["select","itemStyle"]).getItemStyle(),c=y.getModel(["blur","itemStyle"]).getItemStyle(),d=_.get("focus"),p=_.get("blurScope"),h=_.get("disabled"),m=Ao(y),g=_.getShallow("scale"),v=y.getShallow("cursor")}var x=n.getItemVisual(r,"symbolRotate");s.attr("rotation",(x||0)*Math.PI/180||0);var D=Ag(n.getItemVisual(r,"symbolOffset"),i);D&&(s.x=D[0],s.y=D[1]),v&&s.attr("cursor",v);var S=n.getItemVisual(r,"style"),C=S.fill;if(s instanceof _t){var w=s.style;s.useStyle(P({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},S))}else s.__isEmptyBrush?s.useStyle(P({},S)):s.useStyle(S),s.style.decal=null,s.setColor(C,a&&a.symbolInnerColor),s.style.strokeNoScale=!0;var I=n.getItemVisual(r,"liftZ"),b=this._z2;I!=null?b==null&&(this._z2=s.z2,s.z2+=I):b!=null&&(s.z2=b,this._z2=null);var T=a&&a.useNameLabel;Jl(s,m,{labelFetcher:l,labelDataIndex:r,defaultText:A,inheritColor:C,defaultOpacity:S.opacity});function A(O){return T?n.getName(O):Mu(n,O)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var M=s.ensureState("emphasis");M.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var N=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;M.scaleX=this._sizeX*N,M.scaleY=this._sizeY*N,this.setSymbolScale(1),ai(this,d,p,h)},t.prototype.setSymbolScale=function(n){this.scaleX=this.scaleY=n},t.prototype.fadeOut=function(n,r,i){var o=this.childAt(0),a=Te(this).dataIndex,s=i&&i.animation;if(this.silent=o.silent=!0,i&&i.fadeLabel){var l=o.getTextContent();l&&ql(l,{style:{opacity:0}},r,{dataIndex:a,removeOpt:s,cb:function(){o.removeTextContent()}})}else o.removeTextContent();ql(o,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:a,cb:n,removeOpt:s})},t.getSymbolSize=function(n,r){return sL(n.getItemVisual(r,"symbolSize"))},t.getSymbolZ2=function(n,r){return n.getItemVisual(r,"z2")},t})(ke);function xq(e,t){this.parent.drift(e,t)}var qf=_q;function hv(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r&&r.isIgnore&&r.isIgnore(n))&&!(r&&r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&e.getItemVisual(n,"symbol")!=="none"}function NF(e){return e!=null&&!z(e)&&(e={isIgnore:e}),e||{}}function OF(e){var t=e.hostModel,n=t.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:Ao(t),cursorStyle:t.get("cursor")}}function RF(e,t,n,r,i,o,a){var s=new e(t,n,r,i);return s.setPosition(o),t.setItemGraphicEl(n,s),a.add(s),s}var Dq=(function(){function e(t){this.group=new ke,this._SymbolCtor=t||qf}return e.prototype.updateData=function(t,n){this._progressiveEls=null,n=NF(n);var r=this.group,i=t.hostModel,o=this._data,a=this._SymbolCtor,s=n.disableAnimation,l=this._seriesScope=OF(t),u={disableAnimation:s},c=n.getSymbolPoint||function(f){return t.getItemLayout(f)};o||r.removeAll(),t.diff(o).add(function(f){var d=c(f);hv(t,d,f,n)&&RF(a,t,f,l,u,d,r)}).update(function(f,d){var p=o.getItemGraphicEl(d),h=c(f);if(!hv(t,h,f,n)){r.remove(p);return}var m=t.getItemVisual(f,"symbol")||"circle",g=p&&p.getSymbolType&&p.getSymbolType();if(!p||g&&g!==m)r.remove(p),p=new a(t,f,l,u),p.setPosition(h);else{p.updateData(t,f,l,u);var v={x:h[0],y:h[1]};s?p.attr(v):et(p,v,i)}r.add(p),t.setItemGraphicEl(f,p)}).remove(function(f){var d=o.getItemGraphicEl(f);d&&d.fadeOut(function(){r.remove(d)},i)}).execute(),this._getSymbolPoint=c,this._data=t},e.prototype.updateLayout=function(t){var n=this._data;if(n)for(var r=this,i=n.getStore(),o=0,a=i.count();o<a;o++){var s=n.getItemGraphicEl(o),l=r._getSymbolPoint(o);hv(n,l,o,t)?(s=s||RF(r._SymbolCtor,n,o,r._seriesScope,{disableAnimation:!0},l,r.group),s.stopAnimation(),s.setPosition(l),s.markRedraw()):s&&(r.group.remove(s),n.setItemGraphicEl(o,null))}},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=OF(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,n,r,i){this._progressiveEls=[],i=NF(i);function o(u){u.isGroup||(u.incremental=r,u.ensureState("emphasis").hoverLayer=yf)}for(var a=t.start;a<t.end;a++){var s=n.getItemLayout(a);if(hv(n,s,a,i)){var l=new this._SymbolCtor(n,a,this._seriesScope);l.traverse(o),l.setPosition(s),this.group.add(l),n.setItemGraphicEl(a,l),this._progressiveEls.push(l)}}},e.prototype.eachRendered=function(t){us(this._progressiveEls||this.group,t)},e.prototype.remove=function(t){var n=this.group,r=this._data;r&&t?r.eachItemGraphicEl(function(i){i.fadeOut(function(){n.remove(i)},r.hostModel)}):n.removeAll()},e})(),PF=Dq;function mv(e,t,n){var r=e.getBaseAxis(),i=e.getOtherAxis(r),o=Sq(i,n),a=r.dim,s=i.dim,l=t.mapDimension(s),u=t.mapDimension(a),c=s==="x"||s==="radius"?1:0,f=V(e.dimensions,function(h){return t.mapDimension(h)}),d=!1,p=t.getCalculationInfo("stackResultDimension");return ji(t,f[0])&&(d=!0,f[0]=p),ji(t,f[1])&&(d=!0,f[1]=p),{dataDimsForPoint:f,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function Sq(e,t){var n=0,r=e.scale.getExtent();return t==="start"?n=r[0]:t==="end"?n=r[1]:ge(t)&&!isNaN(t)?n=t:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),n}function gv(e,t,n,r){var i=NaN;e.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=e.valueStart);var o=e.baseDataOffset,a=[];return a[o]=n.get(e.baseDim,r),a[1-o]=i,t.dataToPoint(a)}function xn(e,t){return!isFinite(e)||!isFinite(t)}var Cq=typeof Float32Array!==To?Float32Array:void 0,LF=typeof Float64Array!==To?Float64Array:void 0;function Un(e){return vv({ctor:Cq},e).arr}function vv(e,t){var n=e.arr,r=e.ctor;if(t>bD&&(t=bD),!n||e.typed&&n.length<t){var i=void 0;if(r)try{i=new r(t),e.typed=!0,n&&i.set(n)}catch{}if(!i&&(i=[],e.typed=!1,n))for(var o=0,a=n.length;o<a;o++)i[o]=n[o];e.arr=i}return e}function Eq(e,t){var n=[];return t.diff(e).add(function(r){n.push({cmd:"+",idx:r})}).update(function(r,i){n.push({cmd:"=",idx:i,idx1:r})}).remove(function(r){n.push({cmd:"-",idx:r})}).execute(),n}function CE(e,t,n,r,i,o,a,s){for(var l=Eq(e,t),u=[],c=[],f=[],d=[],p=[],h=[],m=[],g=mv(i,t,a),v=e.getLayout("points")||[],y=t.getLayout("points")||[],_=0;_<l.length;_++){var x=l[_],D=!0,S=void 0,C=void 0;switch(x.cmd){case"=":S=x.idx*2,C=x.idx1*2;var w=v[S],I=v[S+1],b=y[C],T=y[C+1];(isNaN(w)||isNaN(I))&&(w=b,I=T),u.push(w,I),c.push(b,T),f.push(n[S],n[S+1]),d.push(r[C],r[C+1]),m.push(t.getRawIndex(x.idx1));break;case"+":var A=x.idx,M=g.dataDimsForPoint,N=i.dataToPoint([t.get(M[0],A),t.get(M[1],A)]);C=A*2,u.push(N[0],N[1]),c.push(y[C],y[C+1]);var O=gv(g,i,t,A);f.push(O[0],O[1]),d.push(r[C],r[C+1]),m.push(t.getRawIndex(A));break;case"-":D=!1}D&&(p.push(x),h.push(h.length))}h.sort(function(de,Ie){return m[de]-m[Ie]});for(var L=u.length,k=Un(L),B=Un(L),j=Un(L),Z=Un(L),H=[],_=0;_<h.length;_++){var K=h[_],J=_*2,W=K*2;k[J]=u[W],k[J+1]=u[W+1],B[J]=c[W],B[J+1]=c[W+1],j[J]=f[W],j[J+1]=f[W+1],Z[J]=d[W],Z[J+1]=d[W+1],H[_]=p[K]}return{current:k,next:B,stackedOnCurrent:j,stackedOnNext:Z,status:H}}var Uo=Math.min,Ho=Math.max;function EE(e,t,n,r,i,o,a,s,l){for(var u,c,f,d,p,h,m=n,g=0;g<r;g++){var v=t[m*2],y=t[m*2+1];if(m>=i||m<0)break;if(xn(v,y)){if(l){m+=o;continue}break}if(m===n)e[o>0?"moveTo":"lineTo"](v,y),f=v,d=y;else{var _=v-u,x=y-c;if(_*_+x*x<.5){m+=o;continue}if(a>0){for(var D=m+o,S=t[D*2],C=t[D*2+1];S===v&&C===y&&g<r;)g++,D+=o,m+=o,S=t[D*2],C=t[D*2+1],v=t[m*2],y=t[m*2+1],_=v-u,x=y-c;var w=g+1;if(l)for(;xn(S,C)&&w<r;)w++,D+=o,S=t[D*2],C=t[D*2+1];var I=.5,b=0,T=0,A=void 0,M=void 0;if(w>=r||xn(S,C))p=v,h=y;else{b=S-u,T=C-c;var N=v-u,O=S-v,L=y-c,k=C-y,B=void 0,j=void 0;if(s==="x"){B=Math.abs(N),j=Math.abs(O);var Z=b>0?1:-1;p=v-Z*B*a,h=y,A=v+Z*j*a,M=y}else if(s==="y"){B=Math.abs(L),j=Math.abs(k);var H=T>0?1:-1;p=v,h=y-H*B*a,A=v,M=y+H*j*a}else B=Math.sqrt(N*N+L*L),j=Math.sqrt(O*O+k*k),I=j/(j+B),p=v-b*a*(1-I),h=y-T*a*(1-I),A=v+b*a*I,M=y+T*a*I,A=Uo(A,Ho(S,v)),M=Uo(M,Ho(C,y)),A=Ho(A,Uo(S,v)),M=Ho(M,Uo(C,y)),b=A-v,T=M-y,p=v-b*B/j,h=y-T*B/j,p=Uo(p,Ho(u,v)),h=Uo(h,Ho(c,y)),p=Ho(p,Uo(u,v)),h=Ho(h,Uo(c,y)),b=v-p,T=y-h,A=v+b*j/B,M=y+T*j/B}e.bezierCurveTo(f,d,p,h,v,y),f=A,d=M}else e.lineTo(v,y)}u=v,c=y,m+=o}return g}var kF=(function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e})(),FF=(function(e){R(t,e);function t(n){var r=e.call(this,n)||this;return r.type="ec-polyline",r}return t.prototype.getDefaultStyle=function(){return{stroke:oe.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new kF},t.prototype.buildPath=function(n,r){var i=r.points,o=0,a=i.length/2;if(r.connectNulls){for(;a>0&&xn(i[a*2-2],i[a*2-1]);a--);for(;o<a&&xn(i[o*2],i[o*2+1]);o++);}for(;o<a;)o+=EE(n,i,o,a,a,1,r.smooth,r.smoothMonotone,r.connectNulls)+1},t.prototype.getPointOn=function(n,r){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i=this.path,o=i.data,a=en.CMD,s,l,u=r==="x",c=[],f=0;f<o.length;){var d=o[f++],p=void 0,h=void 0,m=void 0,g=void 0,v=void 0,y=void 0,_=void 0;switch(d){case a.M:s=o[f++],l=o[f++];break;case a.L:if(p=o[f++],h=o[f++],_=u?(n-s)/(p-s):(n-l)/(h-l),_<=1&&_>=0){var x=u?(h-l)*_+l:(p-s)*_+s;return u?[n,x]:[x,n]}s=p,l=h;break;case a.C:p=o[f++],h=o[f++],m=o[f++],g=o[f++],v=o[f++],y=o[f++];var D=u?La(s,p,m,v,n,c):La(l,h,g,y,n,c);if(D>0)for(var S=0;S<D;S++){var C=c[S];if(C<=1&&C>=0){var x=u?nt(l,h,g,y,C):nt(s,p,m,v,C);return u?[n,x]:[x,n]}}s=v,l=y;break}}},t})(ie);var bq=(function(e){R(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(kF),BF=(function(e){R(t,e);function t(n){var r=e.call(this,n)||this;return r.type="ec-polygon",r}return t.prototype.getDefaultShape=function(){return new bq},t.prototype.buildPath=function(n,r){var i=r.points,o=r.stackedOnPoints,a=0,s=i.length/2,l=r.smoothMonotone;if(r.connectNulls){for(;s>0&&xn(i[s*2-2],i[s*2-1]);s--);for(;a<s&&xn(i[a*2],i[a*2+1]);a++);}for(;a<s;){var u=EE(n,i,a,s,s,1,r.smooth,l,r.connectNulls);EE(n,o,a+u-1,u,s,-1,r.stackedOnSmooth,l,r.connectNulls),a+=u+1,n.closePath()}},t})(ie);function bE(e,t,n,r,i){var o=e.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,c=n.get(["lineStyle","width"])||0;a-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),a!==Math.floor(a)&&(a=Math.floor(a),l++);var f=new $e({shape:{x:a,y:s,width:l,height:u}});if(t){var d=e.getBaseAxis(),p=d.isHorizontal(),h=d.inverse;p?(h&&(f.shape.x+=l),f.shape.width=0):(h||(f.shape.y+=u),f.shape.height=0);var m=Y(i)?function(g){i(g,f)}:null;Tt(f,{shape:{width:l,height:u,x:a,y:s}},n,null,r,m)}return f}function wE(e,t,n){var r=e.getArea(),i=Ee(r.r0,1),o=Ee(r.r,1),a=new Pr({shape:{cx:Ee(e.cx,1),cy:Ee(e.cy,1),r0:i,r:o,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});if(t){var s=e.getBaseAxis().dim==="angle";s?a.shape.endAngle=r.startAngle:a.shape.r=i,Tt(a,{shape:{endAngle:r.endAngle,r:o}},n)}return a}function VF(e,t,n,r,i){if(e){if(e.type==="polar")return wE(e,t,n);if(e.type==="cartesian2d")return bE(e,t,n,r,i)}else return null;return null}function yv(e,t){return e.type===t}function HF(e,t,n,r){return e&&(e.legacy||e.legacy!==!1&&!n&&!r&&t!=="tspan"&&(t==="text"||Q(e,"text")))}function zF(e,t,n){var r=e,i,o,a;if(t==="text")a=r;else{a={},Q(r,"text")&&(a.text=r.text),Q(r,"rich")&&(a.rich=r.rich),Q(r,"textFill")&&(a.fill=r.textFill),Q(r,"textStroke")&&(a.stroke=r.textStroke),Q(r,"fontFamily")&&(a.fontFamily=r.fontFamily),Q(r,"fontSize")&&(a.fontSize=r.fontSize),Q(r,"fontStyle")&&(a.fontStyle=r.fontStyle),Q(r,"fontWeight")&&(a.fontWeight=r.fontWeight),o={type:"text",style:a,silent:!0},i={};var s=Q(r,"textPosition");n?i.position=s?r.textPosition:"inside":s&&(i.position=r.textPosition),Q(r,"textPosition")&&(i.position=r.textPosition),Q(r,"textOffset")&&(i.offset=r.textOffset),Q(r,"textRotation")&&(i.rotation=r.textRotation),Q(r,"textDistance")&&(i.distance=r.textDistance)}return UF(a,e),E(a.rich,function(l){UF(l,l)}),{textConfig:i,textContent:o}}function UF(e,t){t&&(t.font=t.textFont||t.font,Q(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),Q(t,"textAlign")&&(e.align=t.textAlign),Q(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),Q(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),Q(t,"textWidth")&&(e.width=t.textWidth),Q(t,"textHeight")&&(e.height=t.textHeight),Q(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),Q(t,"textPadding")&&(e.padding=t.textPadding),Q(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),Q(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),Q(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),Q(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),Q(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),Q(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),Q(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function jF(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function GF(e){for(var t=Ht(),n=Ht(),r=0;r<e.length;){var i=e[r++],o=e[r++];xn(i,o)||(Qc(t,i),Qc(n,o))}return[t,n]}function $F(e,t){var n=GF(e),r=n[0],i=n[1],o=GF(t),a=o[0],s=o[1];return Math.max(Math.abs(r[0]-a[0]),Math.abs(i[0]-s[0]),Math.abs(r[1]-a[1]),Math.abs(i[1]-s[1]))}function WF(e){return ge(e)?e:e?.5:0}function wq(e,t,n){if(n.valueDim==null)return[];for(var r=t.count(),i=Un(r*2),o=0;o<r;o++){var a=gv(n,e,t,o);i[o*2]=a[0],i[o*2+1]=a[1]}return i}function zo(e,t,n,r,i){var o=n.getBaseAxis(),a=o.dim==="x"||o.dim==="radius"?0:1,s=[],l=0,u=[],c=[],f=[],d=[];if(i){for(l=0;l<e.length;l+=2){var p=t||e;xn(p[l],p[l+1])||d.push(e[l],e[l+1])}e=d}for(l=0;l<e.length-2;l+=2)switch(f[0]=e[l+2],f[1]=e[l+3],c[0]=e[l],c[1]=e[l+1],s.push(c[0],c[1]),r){case"end":u[a]=f[a],u[1-a]=c[1-a],s.push(u[0],u[1]);break;case"middle":var h=(c[a]+f[a])/2,m=[];u[a]=m[a]=h,u[1-a]=c[1-a],m[1-a]=f[1-a],s.push(u[0],u[1]),s.push(m[0],m[1]);break;default:u[a]=c[a],u[1-a]=f[1-a],s.push(u[0],u[1])}return s.push(e[l++],e[l++]),s}function Tq(e,t){var n=[],r=e.length,i,o;function a(c,f,d){var p=c.coord,h=(d-p)/(f.coord-p),m=i1(h,[c.color,f.color]);return{coord:d,color:m}}for(var s=0;s<r;s++){var l=e[s],u=l.coord;if(u<0)i=l;else if(u>t){o?n.push(a(o,l,t)):i&&n.push(a(i,l,0),a(i,l,t));break}else i&&(n.push(a(i,l,0)),i=null),n.push(l),o=l}return n}function Iq(e,t,n){var r=e.getVisual("visualMeta");if(!(!r||!r.length||!e.count())&&t.type==="cartesian2d"){for(var i,o,a=r.length-1;a>=0;a--){var s=e.getDimensionInfo(r[a].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){o=r[a];break}}if(o){var l=t.getAxis(i),u=V(o.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),c=u.length,f=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var d=Tq(u,i==="x"?n.getWidth():n.getHeight()),p=d.length;if(!p&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var h=10,m=d[0].coord-h,g=d[p-1].coord+h,v=g-m;if(v<.001)return"transparent";E(d,function(_){_.offset=(_.coord-m)/v}),d.push({offset:p?d[p-1].offset:.5,color:f[1]||"transparent"}),d.unshift({offset:p?d[0].offset:.5,color:f[0]||"transparent"});var y=new wm(0,0,0,0,d,!0);return y[i]=m,y[i+"2"]=g,y}}}function Mq(e,t,n){var r=e.get("showAllSymbol"),i=r==="auto";if(!(r&&!i)){var o=n.getAxesByScale("ordinal")[0];if(o&&!(i&&Aq(o,t))){var a=t.mapDimension(o.dim),s={};return E(o.getViewLabels(),function(l){l.tick.offInterval||(s[$i(o.scale,l.tick)]=1)}),function(l){return!s.hasOwnProperty(t.get(a,l))}}}}function Aq(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),o=Math.max(1,Math.round(i/5)),a=0;a<i;a+=o)if(qf.getSymbolSize(t,a)[e.isHorizontal()?1:0]*1.5>r)return!1;return!0}function Nq(e){for(var t=e.length/2;t>0&&xn(e[t*2-2],e[t*2-1]);t--);return t-1}function YF(e,t){return[e[t*2],e[t*2+1]]}function Oq(e,t,n){for(var r=e.length/2,i=n==="x"?0:1,o,a,s=0,l=-1,u=0;u<r;u++)if(a=e[u*2+i],!xn(a,e[u*2+1-i])){if(u===0){o=a;continue}if(o<=t&&a>=t||o>=t&&a<=t){l=u;break}s=u,o=a}return{range:[s,l],t:(t-o)/(a-o)}}function qF(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<or.length;t++)if(e.get([or[t],"endLabel","show"]))return!0;return!1}function TE(e,t,n,r){if(yv(t,"cartesian2d")){var i=r.getModel("endLabel"),o=i.get("valueAnimation"),a=r.getData(),s={lastFrameIndex:0},l=qF(r)?function(p,h){e._endLabelOnDuring(p,h,a,s,o,i,t)}:null,u=t.getBaseAxis().isHorizontal(),c=bE(t,n,r,function(){var p=e._endLabel;p&&n&&s.originalX!=null&&p.attr({x:s.originalX,y:s.originalY})},l);if(!r.get("clip",!0)){var f=c.shape,d=Math.max(f.width,f.height);u?(f.y-=d,f.height+=d*2):(f.x-=d,f.width+=d*2)}return l&&l(1,c),c}else return wE(t,n,r)}function Rq(e,t){var n=t.getBaseAxis(),r=n.isHorizontal(),i=n.inverse,o=r?i?"right":"left":"center",a=r?"middle":i?"top":"bottom";return{normal:{align:e.get("align")||o,verticalAlign:e.get("verticalAlign")||a}}}var Pq=(function(e){R(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var n=new ke,r=new PF;this.group.add(r.group),this._symbolDraw=r,this._lineGroup=n,this._changePolyState=be(this._changePolyState,this)},t.prototype.render=function(n,r,i){var o=n.coordinateSystem,a=this.group,s=n.getData(),l=n.getModel("lineStyle"),u=n.getModel("areaStyle"),c=s.getLayout("points")||[],f=o.type==="polar",d=this._coordSys,p=this._symbolDraw,h=this._polyline,m=this._polygon,g=this._lineGroup,v=!r.ssr&&n.get("animation"),y=!u.isEmpty(),_=u.get("origin"),x=mv(o,s,_),D=y&&wq(o,s,x),S=n.get("showSymbol"),C=n.get("connectNulls"),w=S&&!f&&Mq(n,s,o),I=this._data;I&&I.eachItemGraphicEl(function(Ue,at){Ue.__temp&&(a.remove(Ue),I.setItemGraphicEl(at,null))}),S||p.remove(),a.add(g);var b=f?!1:n.get("step"),T;o&&o.getArea&&n.get("clip",!0)&&(T=o.getArea(),T.width!=null?(T.x-=.1,T.y-=.1,T.width+=.2,T.height+=.2):T.r0&&(T.r0-=.5,T.r+=.5)),this._clipShapeForSymbol=T;var A=Iq(s,o,i)||s.getVisual("style")[s.getVisual("drawType")];if(!(h&&d.type===o.type&&b===this._step))S&&p.updateData(s,{isIgnore:w,clipShape:T,disableAnimation:!0,getSymbolPoint:function(Ue){return[c[Ue*2],c[Ue*2+1]]}}),v&&this._initSymbolLabelAnimation(s,o,T),b&&(D&&(D=zo(D,c,o,b,C)),c=zo(c,null,o,b,C)),h=this._newPolyline(c),y?m=this._newPolygon(c,D):m&&(g.remove(m),m=this._polygon=null),f||this._initOrUpdateEndLabel(n,o,kr(A)),g.setClipPath(TE(this,o,!0,n));else{y&&!m?m=this._newPolygon(c,D):m&&!y&&(g.remove(m),m=this._polygon=null),f||this._initOrUpdateEndLabel(n,o,kr(A));var M=g.getClipPath();if(M){var N=TE(this,o,!1,n);Tt(M,{shape:N.shape},n)}else g.setClipPath(TE(this,o,!0,n));S&&p.updateData(s,{isIgnore:w,clipShape:T,disableAnimation:!0,getSymbolPoint:function(Ue){return[c[Ue*2],c[Ue*2+1]]}}),(!jF(this._stackedOnPoints,D)||!jF(this._points,c))&&(v?this._doUpdateAnimation(s,D,o,i,b,_,C):(b&&(D&&(D=zo(D,c,o,b,C)),c=zo(c,null,o,b,C)),h.setShape({points:c}),m&&m.setShape({points:c,stackedOnPoints:D})))}var O=n.getModel("emphasis"),L=O.get("focus"),k=O.get("blurScope"),B=O.get("disabled");if(h.useStyle(he(l.getLineStyle(),{fill:"none",stroke:A,lineJoin:"bevel"})),Mo(h,n,"lineStyle"),h.style.lineWidth>0&&n.get(["emphasis","lineStyle","width"])==="bolder"){var j=h.getState("emphasis").style;j.lineWidth=+h.style.lineWidth+1}Te(h).seriesIndex=n.seriesIndex,ai(h,L,k,B);var Z=WF(n.get("smooth")),H=n.get("smoothMonotone");if(h.setShape({smooth:Z,smoothMonotone:H,connectNulls:C}),m){var K=s.getCalculationInfo("stackedOnSeries"),J=0;m.useStyle(he(u.getAreaStyle(),{fill:A,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),K&&(J=WF(K.get("smooth"))),m.setShape({smooth:Z,stackedOnSmooth:J,smoothMonotone:H,connectNulls:C}),Mo(m,n,"areaStyle"),Te(m).seriesIndex=n.seriesIndex,ai(m,L,k,B)}var W=this._changePolyState;s.eachItemGraphicEl(function(Ue){Ue&&(Ue.onHoverStateChange=W)}),this._polyline.onHoverStateChange=W,this._data=s,this._coordSys=o,this._stackedOnPoints=D,this._points=c,this._step=b,this._valueOrigin=_;var de=n.get("triggerEvent"),Ie=n.get("triggerLineEvent"),kt=Ie===!0||de===!0||de==="line",zt=Ie===!0||de===!0||de==="area";this.packEventData(n,h,kt),m&&this.packEventData(n,m,zt)},t.prototype.packEventData=function(n,r,i){Te(r).eventData=i?{componentType:"series",componentSubType:"line",componentIndex:n.componentIndex,seriesIndex:n.seriesIndex,seriesName:n.name,seriesType:"line",selfType:r===this._polygon?"area":"line"}:null},t.prototype.highlight=function(n,r,i,o){var a=n.getData(),s=tr(a,o);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=a.getLayout("points"),u=a.getItemGraphicEl(s);if(!u){var c=l[s*2],f=l[s*2+1];if(xn(c,f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var d=n.get("zlevel")||0,p=n.get("z")||0;u=new qf(a,s),u.x=c,u.y=f,u.setZ(d,p);var h=u.getSymbolPath().getTextContent();h&&(h.zlevel=d,h.z=p,h.z2=this._polyline.z2+1),u.__temp=!0,a.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else an.prototype.highlight.call(this,n,r,i,o)},t.prototype.downplay=function(n,r,i,o){var a=n.getData(),s=tr(a,o);if(this._changePolyState("normal"),s!=null&&s>=0){var l=a.getItemGraphicEl(s);l&&(l.__temp?(a.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else an.prototype.downplay.call(this,n,r,i,o)},t.prototype._changePolyState=function(n){var r=this._polygon;dS(this._polyline,n),r&&dS(r,n)},t.prototype._newPolyline=function(n){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new FF({shape:{points:n},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(r),this._polyline=r,r},t.prototype._newPolygon=function(n,r){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new BF({shape:{points:n,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(n,r,i){var o,a,s=r.getBaseAxis(),l=s.inverse;r.type==="cartesian2d"?(o=s.isHorizontal(),a=!1):r.type==="polar"&&(o=s.dim==="angle",a=!0);var u=n.hostModel,c=u.get("animationDuration");Y(c)&&(c=c(null));var f=u.get("animationDelay")||0,d=Y(f)?f(null):f;n.eachItemGraphicEl(function(p,h){var m=p;if(m){var g=[p.x,p.y],v=void 0,y=void 0,_=void 0;if(i)if(a){var x=i,D=r.pointToCoord(g);o?(v=x.startAngle,y=x.endAngle,_=-D[1]/180*Math.PI):(v=x.r0,y=x.r,_=D[0])}else{var S=i;o?(v=S.x,y=S.x+S.width,_=p.x):(v=S.y+S.height,y=S.y,_=p.y)}var C=y===v?0:(_-v)/(y-v);l&&(C=1-C);var w=Y(f)?f(h):c*C+d,I=m.getSymbolPath(),b=I.getTextContent();m.attr({scaleX:0,scaleY:0}),m.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:w}),b&&b.animateFrom({style:{opacity:0}},{duration:300,delay:w}),I.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(n,r,i){var o=n.getModel("endLabel");if(qF(n)){var a=n.getData(),s=this._polyline,l=a.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new We({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=Nq(l);c>=0&&(Jl(s,Ao(n,"endLabel"),{inheritColor:i,labelFetcher:n,labelDataIndex:c,defaultText:function(f,d,p){return p!=null?pv(a,p):Mu(a,f)},enableTextSetter:!0},Rq(o,r)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(n,r,i,o,a,s,l){var u=this._endLabel,c=this._polyline;if(u){n<1&&o.originalX==null&&(o.originalX=u.x,o.originalY=u.y);var f=i.getLayout("points"),d=i.hostModel,p=d.get("connectNulls"),h=s.get("precision"),m=s.get("distance")||0,g=l.getBaseAxis(),v=g.isHorizontal(),y=g.inverse,_=r.shape,x=y?v?_.x:_.y+_.height:v?_.x+_.width:_.y,D=(v?m:0)*(y?-1:1),S=(v?0:-m)*(y?-1:1),C=v?"x":"y",w=Oq(f,x,C),I=w.range,b=I[1]-I[0],T=void 0;if(b>=1){if(b>1&&!p){var A=YF(f,I[0]);u.attr({x:A[0]+D,y:A[1]+S}),a&&(T=d.getRawValue(I[0]))}else{var A=c.getPointOn(x,C);A&&u.attr({x:A[0]+D,y:A[1]+S});var M=d.getRawValue(I[0]),N=d.getRawValue(I[1]);a&&(T=em(i,h,M,N,w.t))}o.lastFrameIndex=I[0]}else{var O=n===1||o.lastFrameIndex>0?I[0]:0,A=YF(f,O);a&&(T=d.getRawValue(O)),u.attr({x:A[0]+D,y:A[1]+S})}if(a){var L=fs(u);typeof L.setLabelText=="function"&&L.setLabelText(T)}}},t.prototype._doUpdateAnimation=function(n,r,i,o,a,s,l){var u=this._polyline,c=this._polygon,f=n.hostModel,d=CE(this._data,n,this._stackedOnPoints,r,this._coordSys,i,this._valueOrigin,s),p=d.current,h=d.stackedOnCurrent,m=d.next,g=d.stackedOnNext;if(a&&(h=zo(d.stackedOnCurrent,d.current,i,a,l),p=zo(d.current,null,i,a,l),g=zo(d.stackedOnNext,d.next,i,a,l),m=zo(d.next,null,i,a,l)),$F(p,m)>3e3||c&&$F(h,g)>3e3){u.stopAnimation(),u.setShape({points:m}),c&&(c.stopAnimation(),c.setShape({points:m,stackedOnPoints:g}));return}u.shape.__points=d.current,u.shape.points=p;var v={shape:{points:m}};d.current!==p&&(v.shape.__points=d.next),u.stopAnimation(),et(u,v,f),c&&(c.setShape({points:p,stackedOnPoints:h}),c.stopAnimation(),et(c,{shape:{stackedOnPoints:g}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var y=[],_=d.status,x=0;x<_.length;x++){var D=_[x].cmd;if(D==="="){var S=n.getItemGraphicEl(_[x].idx1);S&&y.push({el:S,ptIdx:x})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var C=u.shape.__points,w=0;w<y.length;w++){var I=y[w].el,b=y[w].ptIdx*2;I.x=C[b],I.y=C[b+1],I.markRedraw()}})},t.prototype.remove=function(n){var r=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(o,a){o.__temp&&(r.remove(o),i.setItemGraphicEl(a,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t})(an),ZF=Pq;function IE(e,t){return{seriesType:e,plan:Cs(),reset:function(n){var r=n.getData(),i=n.coordinateSystem,o=n.pipelineContext,a=t||o.large;if(i){var s=V(i.dimensions,function(p){return r.mapDimension(p)}).slice(0,2),l=s.length,u=r.getCalculationInfo("stackResultDimension");ji(r,s[0])&&(s[0]=u),ji(r,s[1])&&(s[1]=u);var c=r.getStore(),f=r.getDimensionIndex(s[0]),d=r.getDimensionIndex(s[1]);return l&&{progress:function(p,h){for(var m=p.end-p.start,g=a&&Un(m*l),v=[],y=[],_=p.start,x=0;_<p.end;_++){var D=void 0;if(l===1){var S=c.get(f,_);D=i.dataToPoint(S,null,y)}else v[0]=c.get(f,_),v[1]=c.get(d,_),D=i.dataToPoint(v,null,y);a?(g[x++]=D[0],g[x++]=D[1]):h.setItemLayout(_,D.slice())}a&&(h.setLayout("points",g),h.setLayout("pointsRange",{start:p.start,end:p.end}))}}}}}}var Lq={average:function(e){for(var t=0,n=0,r=0;r<e.length;r++)isNaN(e[r])||(t+=e[r],n++);return n===0?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},kq=function(e){return Math.round(e.length/2)};function Zf(e){return{seriesType:e,reset:function(t,n,r){var i=t.getData(),o=t.get("sampling"),a=t.coordinateSystem,s=i.count();if(s>10&&a.type==="cartesian2d"&&o){var l=a.getBaseAxis(),u=a.getOtherAxis(l),c=l.getExtent(),f=r.getDevicePixelRatio(),d=Math.abs(c[1]-c[0])*(f||1),p=Math.round(s/d);if(isFinite(p)&&p>1){o==="lttb"?t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/p)):o==="minmax"&&t.setData(i.minmaxDownSample(i.mapDimension(u.dim),1/p));var h=void 0;U(o)?h=Lq[o]:Y(o)&&(h=o),h&&t.setData(i.downSample(i.mapDimension(u.dim),1/p,h,kq))}}}}}function ME(e){e.registerChartView(ZF),e.registerSeriesModel(AF),e.registerLayout(IE("line",!0)),e.registerVisual({seriesType:"line",reset:function(t){var n=t.getData(),r=t.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=n.getVisual("style").fill),n.setVisual("legendLineStyle",r)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Zf("line"))}var Fq=(function(e){R(t,e);function t(n,r,i,o,a){var s=e.call(this,n,r,i)||this;return s.index=0,s.type=o||"value",s.position=a||"bottom",s}return t.prototype.isHorizontal=function(){var n=this.position;return n==="top"||n==="bottom"},t.prototype.getGlobalExtent=function(n){var r=this.getExtent();return r[0]=this.toGlobalCoord(r[0]),r[1]=this.toGlobalCoord(r[1]),n&&r[0]>r[1]&&r.reverse(),r},t.prototype.pointToData=function(n,r){return this.coordToData(this.toLocalCoord(n[this.dim==="x"?0:1]),r)},t.prototype.setCategorySortInfo=function(n){if(this.type!=="category")return!1;this.model.option.categorySortInfo=n,this.scale.setSortInfo(n)},t})(SF),XF=Fq;var Bq=null;function Os(){return Bq}var KF="expandAxisBreak";var jo=Math.PI,Vq=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],Uq=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Go=re(),e2=re(),NE=(function(){function e(t){this.recordMap={},this.resolveAxisNameOverlap=t}return e.prototype.ensureRecord=function(t){var n=t.axis.dim,r=t.componentIndex,i=this.recordMap,o=i[n]||(i[n]=[]);return o[r]||(o[r]={ready:{}})},e})();function Hq(e,t,n,r){var i=n.axis,o=t.ensureRecord(n),a=[],s,l=PE(e.axisName)&&Vo(e.nameLocation);E(r,function(h){var m=Hr(h);if(!(!m||m.label.ignore)){a.push(m);var g=o.transGroup;l&&(g.transform?Yr(Xf,g.transform):Ti(Xf),m.transform&&fo(Xf,Xf,m.transform),fe.copy(_v,m.localRect),_v.applyTransform(Xf),s?s.union(_v):fe.copy(s=new fe(0,0,0,0),_v))}});var u=Math.abs(o.dirVec.x)>.1?"x":"y",c=o.transGroup[u];if(a.sort(function(h,m){return Math.abs(h.label[u]-c)-Math.abs(m.label[u]-c)}),l&&s){var f=i.getExtent(),d=Math.min(f[0],f[1]),p=Math.max(f[0],f[1])-d;s.union(new fe(d,0,p,1))}o.stOccupiedRect=s,o.labelInfoList=a}var Xf=Jt(),_v=new fe(0,0,0,0),OE=function(e,t,n,r,i,o){if(Vo(e.nameLocation)){var a=o.stOccupiedRect;a&&t2(TF({},a,o.transGroup.transform),r,i)}else RE(o.labelInfoList,o.dirVec,r,i)};function t2(e,t,n){var r=new Be;dv(e,t,r,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&IF(t,r)}function RE(e,t,n,r){for(var i=Be.dot(r,t)>=0,o=0,a=e.length;o<a;o++){var s=e[i?o:a-1-o];s.label.ignore||t2(s,n,r)}}var Rs=(function(){function e(t,n,r,i){this.group=new ke,this._axisModel=t,this._api=n,this._local={},this._shared=i||new NE(OE),this._resetCfgDetermined(r)}return e.prototype.updateCfg=function(t){if(0)var n;var r=this._cfg.raw;r.position=t.position,r.labelOffset=t.labelOffset,this._resetCfgDetermined(r)},e.prototype.__getRawCfg=function(){return this._cfg.raw},e.prototype._resetCfgDetermined=function(t){var n=this._axisModel,r=n.getDefaultOption?n.getDefaultOption():{},i=G(t.axisName,n.get("name")),o=n.get("nameMoveOverlap");(o==null||o==="auto")&&(o=G(t.defaultNameMoveOverlap,!0));var a={raw:t,position:t.position,rotation:t.rotation,nameDirection:G(t.nameDirection,1),tickDirection:G(t.tickDirection,1),labelDirection:G(t.labelDirection,1),labelOffset:G(t.labelOffset,0),silent:G(t.silent,!0),axisName:i,nameLocation:br(n.get("nameLocation"),r.nameLocation,"end"),shouldNameMoveOverlap:PE(i)&&o,optionHideOverlap:n.get(["axisLabel","hideOverlap"]),showMinorTicks:n.get(["minorTick","show"])};this._cfg=a;var s=new ke({x:a.position[0],y:a.position[1],rotation:a.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(n);l.transGroup=this._transformGroup,l.dirVec=new Be(Math.cos(-a.rotation),Math.sin(-a.rotation))},e.prototype.build=function(t,n){var r=this;return t||(t={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),E(zq,function(i){t[i]&&jq[i](r._cfg,r._local,r._shared,r._axisModel,r.group,r._transformGroup,r._api,n||{})}),this},e.innerTextLayout=function(t,n,r){var i=wD(n-t),o,a;return qc(i)?(a=r>0?"top":"bottom",o="center"):qc(i-jo)?(a=r>0?"bottom":"top",o="center"):(a="middle",i>0&&i<jo?o=r>0?"right":"left":o=r>0?"left":"right"),{rotation:i,textAlign:o,textVerticalAlign:a}},e.makeAxisEventDataBase=function(t){var n={componentType:t.mainType,componentIndex:t.componentIndex};return n[t.mainType+"Index"]=t.componentIndex,n},e.isLabelSilent=function(t){var n=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||n&&n.show)},e})(),zq=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],jq={axisLine:function(e,t,n,r,i,o,a){if(0)var s;var l=r.get(["axisLine","show"]);if(l==="auto"&&(l=!0,e.raw.axisLineAutoShow!=null&&(l=!!e.raw.axisLineAutoShow)),!!l){var u=r.axis.getExtent(),c=o.transform,f=[u[0],0],d=[u[1],0],p=f[0]>d[0];c&&(Vt(f,f,c),Vt(d,d,c));var h=P({lineCap:"round"},r.getModel(["axisLine","lineStyle"]).getLineStyle()),m={strokeContainThreshold:e.raw.strokeContainThreshold||5,silent:!0,z2:1,style:h};if(r.get(["axisLine","breakLine"])&&hs(r.axis.scale))Os().buildAxisBreakLine(r,i,o,m);else{var g=new mn(P({shape:{x1:f[0],y1:f[1],x2:d[0],y2:d[1]}},m));ls(g.shape,g.style.lineWidth),g.anid="line",i.add(g)}var v=r.get(["axisLine","symbol"]);if(v!=null){var y=r.get(["axisLine","symbolSize"]);U(v)&&(v=[v,v]),(U(y)||ge(y))&&(y=[y,y]);var _=Ag(r.get(["axisLine","symbolOffset"])||0,y),x=y[0],D=y[1];E([{rotate:e.rotation+Math.PI/2,offset:_[0],r:0},{rotate:e.rotation-Math.PI/2,offset:_[1],r:Math.sqrt((f[0]-d[0])*(f[0]-d[0])+(f[1]-d[1])*(f[1]-d[1]))}],function(S,C){if(v[C]!=="none"&&v[C]!=null){var w=lr(v[C],-x/2,-D/2,x,D,h.stroke,!0),I=S.r+S.offset,b=p?d:f;w.attr({rotation:S.rotate,x:b[0]+I*Math.cos(e.rotation),y:b[1]-I*Math.sin(e.rotation),silent:!0,z2:11}),i.add(w)}})}}},axisTickLabelEstimate:function(e,t,n,r,i,o,a,s){if(0)var l;var u=JF(t,i,s);u&&QF(e,t,n,r,i,o,a,_n.estimate)},axisTickLabelDetermine:function(e,t,n,r,i,o,a,s){if(0)var l;var u=JF(t,i,s);u&&QF(e,t,n,r,i,o,a,_n.determine);var c=Yq(e,i,o,r);Wq(e,t.labelLayoutList,c),qq(e,i,o,r,e.tickDirection)},axisName:function(e,t,n,r,i,o,a,s){var l=n.ensureRecord(r);if(0)var u;t.nameEl&&(i.remove(t.nameEl),t.nameEl=l.nameLayout=l.nameLocation=null);var c=e.axisName;if(PE(c)){var f=e.nameLocation,d=e.nameDirection,p=r.getModel("nameTextStyle"),h=r.get("nameGap")||0,m=r.axis.getExtent(),g=r.axis.inverse?-1:1,v=new Be(0,0),y=new Be(0,0);f==="start"?(v.x=m[0]-g*h,y.x=-g):f==="end"?(v.x=m[1]+g*h,y.x=g):(v.x=(m[0]+m[1])/2,v.y=e.labelOffset+d*h,y.y=d);var _=Jt();y.transform(bl(_,_,e.rotation));var x=r.get("nameRotate");x!=null&&(x=x*jo/180);var D,S;Vo(f)?D=Rs.innerTextLayout(e.rotation,x??e.rotation,d):(D=Gq(e.rotation,f,x||0,m),S=e.raw.axisNameAvailableWidth,S!=null&&(S=Math.abs(S/Math.sin(D.rotation)),!isFinite(S)&&(S=null)));var C=p.getFont(),w=r.get("nameTruncate",!0)||{},I=w.ellipsis,b=xl(e.raw.nameTruncateMaxWidth,w.maxWidth,S),T=s.nameMarginLevel||0,A=new We({x:v.x,y:v.y,rotation:D.rotation,silent:Rs.isLabelSilent(r),style:ar(p,{text:c,font:C,overflow:"truncate",width:b,ellipsis:I,fill:p.getTextColor()||r.get(["axisLine","lineStyle","color"]),align:p.get("align")||D.textAlign,verticalAlign:p.get("verticalAlign")||D.textVerticalAlign}),z2:1});if(Kl({el:A,componentModel:r,itemName:c}),A.__fullText=c,A.anid="name",r.get("triggerEvent")){var M=Rs.makeAxisEventDataBase(r);M.targetType="axisName",M.name=c,Te(A).eventData=M}o.add(A),A.updateTransform(),t.nameEl=A;var N=l.nameLayout=Hr({label:A,priority:A.z2,defaultAttr:{ignore:A.ignore},marginDefault:Vo(f)?Vq[T]:Uq[T]});if(l.nameLocation=f,i.add(A),A.decomposeTransform(),e.shouldNameMoveOverlap&&N){var O=n.ensureRecord(r);n.resolveAxisNameOverlap(e,n,r,N,y,O)}}}};function QF(e,t,n,r,i,o,a,s){r2(t)||Zq(e,t,i,s,r,a);var l=t.labelLayoutList;Xq(e,r,l,o),Jq(r,e.rotation,l);var u=e.optionHideOverlap;$q(r,l,u),u&&MF(qe(l,function(c){return c&&!c.label.ignore})),Hq(e,n,r,l)}function Gq(e,t,n,r){var i=wD(n-e),o,a,s=r[0]>r[1],l=t==="start"&&!s||t!=="start"&&s;return qc(i-jo/2)?(a=l?"bottom":"top",o="center"):qc(i-jo*1.5)?(a=l?"top":"bottom",o="center"):(a="middle",i<jo*1.5&&i>jo/2?o=l?"left":"right":o=l?"right":"left"),{rotation:i,textAlign:o,textVerticalAlign:a}}function $q(e,t,n){var r=e.axis,i=e.get(["axisLabel","customValues"]);if(Vk(r))return;function o(u,c,f){var d=Hr(t[c]),p=Hr(t[f]),h=r.scale;if(!(!d||!p)){if(u==null){if(!n&&i)return;var m=Go(d.label).labelInfo.tick;if(Eu(h)&&m.notNice||Lt(h)&&m.offInterval){Au(d.label);return}}if(u===!1||d.suggestIgnore){Au(d.label);return}if(p.suggestIgnore){Au(p.label);return}var g=.1;if(!n){var v=[0,0,0,0];d=SE({marginForce:v},d),p=SE({marginForce:v},p)}dv(d,p,null,{touchThreshold:g})&&Au(u?p.label:d.label)}}var a=e.get(["axisLabel","showMinLabel"]),s=e.get(["axisLabel","showMaxLabel"]),l=t.length;o(a,0,1),o(s,l-1,l-2)}function Wq(e,t,n){e.showMinorTicks||E(t,function(r){if(r&&r.label.ignore)for(var i=0;i<n.length;i++){var o=n[i],a=e2(o),s=Go(r.label);if(a.tickValue!=null&&!a.onBand&&a.tickValue===s.labelInfo.tick.value){Au(o);return}}})}function Au(e){e&&(e.ignore=!0)}function n2(e,t,n,r,i){for(var o=[],a=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=n,t&&(Vt(a,a,t),Vt(s,s,t));var c=new mn({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});ls(c.shape,c.style.lineWidth),c.anid=i+"_"+e[l].tickValue,o.push(c);var f=e2(c);f.onBand=!!e[l].onBand,f.tickValue=e[l].tickValue}return o}function Yq(e,t,n,r){var i=r.axis,o=r.getModel("axisTick"),a=o.get("show");if(a==="auto"&&(a=!0,e.raw.axisTickAutoShow!=null&&(a=!!e.raw.axisTickAutoShow)),!a||i.scale.isBlank())return[];for(var s=o.getModel("lineStyle"),l=e.tickDirection*o.get("length"),u=i.getTicksCoords(),c=n2(u,n.transform,l,he(s.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),f=0;f<c.length;f++)t.add(c[f]);return c}function qq(e,t,n,r,i){var o=r.axis,a=r.getModel("minorTick");if(!(!e.showMinorTicks||o.scale.isBlank())){var s=o.getMinorTicksCoords();if(s.length)for(var l=a.getModel("lineStyle"),u=i*a.get("length"),c=he(l.getLineStyle(),he(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),f=0;f<s.length;f++)for(var d=n2(s[f],n.transform,u,c,"minorticks_"+f),p=0;p<d.length;p++)t.add(d[p])}}function JF(e,t,n){if(r2(e)){var r=e.axisLabelsCreationContext,i=r.out.noPxChangeTryDetermine;if(n.noPxChange){for(var o=!0,a=0;a<i.length;a++)o=o&&i[a]();if(o)return!1}i.length&&(t.remove(e.labelGroup),AE(e,null,null,null))}return!0}function Zq(e,t,n,r,i,o){var a=i.axis,s=xl(e.raw.axisLabelShow,i.get(["axisLabel","show"])),l=new ke;n.add(l);var u=Iu(r);if(!s||a.scale.isBlank()){AE(t,[],l,u);return}var c=i.getModel("axisLabel"),f=a.getViewLabels(u),d=(xl(e.raw.labelRotate,c.get("rotate"))||0)*jo/180,p=Rs.innerTextLayout(e.rotation,d,e.labelDirection),h=i.getCategories&&i.getCategories(!0),m=[],g=i.get("triggerEvent"),v=1/0,y=-1/0;E(f,function(x,D){var S,C=x.tick,w=x.formattedLabel,I=x.rawLabel,b=c,T=$i(a.scale,C);if(h&&h[T]){var A=h[T];z(A)&&A.textStyle&&(b=new tt(A.textStyle,c,i.ecModel))}var M=b.getTextColor()||i.get(["axisLine","lineStyle","color"]),N=b.getShallow("align",!0)||p.textAlign,O=G(b.getShallow("alignMinLabel",!0),N),L=G(b.getShallow("alignMaxLabel",!0),N),k=b.getShallow("verticalAlign",!0)||b.getShallow("baseline",!0)||p.textVerticalAlign,B=G(b.getShallow("verticalAlignMinLabel",!0),k),j=G(b.getShallow("verticalAlignMaxLabel",!0),k),Z=10+(((S=C.time)===null||S===void 0?void 0:S.level)||0);v=Math.min(v,Z),y=Math.max(y,Z);var H=new We({x:0,y:0,rotation:0,silent:Rs.isLabelSilent(i),z2:Z,style:ar(b,{text:w,align:D===0?O:D===f.length-1?L:N,verticalAlign:D===0?B:D===f.length-1?j:k,fill:Y(M)?M(a.type==="category"?I:a.type==="value"?T+"":T,D):M})});H.anid="label_"+T;var K=Go(H);if(K.labelInfo=x,K.layoutRotation=p.rotation,Kl({el:H,componentModel:i,itemName:w,formatterParamsExtra:{isTruncated:function(){return H.isTruncated},value:I,tickIndex:D}}),g){var J=Rs.makeAxisEventDataBase(i);J.targetType="axisLabel",J.value=I,J.tickIndex=D;var W=x.tick.break;if(W){var de=W.parsedBreak;J.break={start:de.vmin,end:de.vmax}}a.type==="category"&&(J.dataIndex=T),Te(H).eventData=J,W&&Qq(i,o,H,W)}m.push(H),l.add(H)});var _=V(m,function(x){return{label:x,priority:Go(x).labelInfo.tick.break?x.z2+(y-v+1):x.z2,defaultAttr:{ignore:x.ignore}}});AE(t,_,l,u)}function r2(e){return!!e.labelLayoutList}function AE(e,t,n,r){e.labelLayoutList=t,e.labelGroup=n,e.axisLabelsCreationContext=r}function Xq(e,t,n,r){var i=t.get(["axisLabel","margin"]);E(n,function(o,a){var s=Hr(o);if(s){var l=s.label,u=Go(l);s.suggestIgnore=l.ignore,l.ignore=!1,yo(Wi,Kq);var c=t.axis;Wi.x=c.dataToCoord($i(c.scale,u.labelInfo.tick)),Wi.y=e.labelOffset+e.labelDirection*i,Wi.rotation=u.layoutRotation,r.add(Wi),Wi.updateTransform(),r.remove(Wi),Wi.decomposeTransform(),yo(l,Wi),l.markRedraw(),Yf(s,!0),Hr(s)}})}var Wi=new $e,Kq=new $e;function PE(e){return!!e}function Qq(e,t,n,r){n.on("click",function(i){var o={type:KF,breaks:[{start:r.parsedBreak.breakOption.start,end:r.parsedBreak.breakOption.end}]};o[e.axis.dim+"AxisIndex"]=e.componentIndex,t.dispatchAction(o)})}function Jq(e,t,n){var r=ot();if(r){var i=r.retrieveAxisBreakPairs(n,function(a){return a&&Go(a.label).labelInfo.tick.break},!0),o=e.get(["breakLabelLayout","moveOverlap"],!0);(o===!0||o==="auto")&&E(i,function(a){Os().adjustBreakLabelPair(e.axis.inverse,t,[Hr(n[a[0]]),Hr(n[a[1]])])})}}var xv=Rs;function Kf(e,t,n){n=n||{};var r=t.axis,i={},o=r.getAxesOnZeroOf()[0],a=r.position,s=o?"onZero":a,l=r.dim,u=[e.x,e.x+e.width,e.y,e.y+e.height],c={left:0,right:1,top:0,bottom:1,onZero:2},f=t.get("offset")||0,d=l==="x"?[u[2]-f,u[3]+f]:[u[0]-f,u[1]+f];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));d[c.onZero]=Math.max(Math.min(p,d[1]),d[0])}i.position=[l==="y"?d[c[s]]:u[0],l==="x"?d[c[s]]:u[3]],i.rotation=Math.PI/2*(l==="x"?0:1);var h={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=h[a],i.labelOffset=o?d[c[a]]-d[c.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),xl(n.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var m=t.get(["axisLabel","rotate"]);return i.labelRotate=s==="top"?-m:m,i.z2=1,i}function i2(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function o2(e){var t={xAxisModel:null,yAxisModel:null};return E(t,function(n,r){var i=r.replace(/Model$/,""),o=e.getReferringComponents(i,Ut).models[0];t[r]=o}),t}function a2(e,t,n,r,i,o){for(var a=Kf(e,n),s=!1,l=!1,u=0;u<t.length;u++)qg(t[u].getOtherAxis(n.axis).scale)&&(s=l=!0,n.axis.type==="category"&&n.axis.onBand&&(l=!1));return a.axisLineAutoShow=s,a.axisTickAutoShow=l,a.defaultNameMoveOverlap=o,new xv(n,r,a,i)}function s2(e,t,n){var r=Kf(t,n);if(0)var i;e.updateCfg(r)}function l2(){Kk("liPosMinGap",t9)}function t9(e,t,n){var r=q(),i=n.serUids,o=n.liPosMinGap,a,s=t.axis,l=s.scale,u=l.needTransform(),c=l.getFilter?l.getFilter():null,f=yg(c);function d(_){lv(e,t.sers,function(x){var D=x.getRawData(),S=D.getDimensionIndex(D.mapDimension(s.dim));S>=0&&_(S,x,D.getStore())})}var p=0;if(d(function(_,x,D){r.set(x.uid,1),(!i||!i.hasKey(x.uid))&&(a=!0),p+=D.count()}),(!i||i.keys().length!==r.keys().length)&&(a=!0),!a&&o!=null){t.liPosMinGap=o;return}vv(Ps,p);var h=0;d(function(_,x,D){for(var S=0,C=D.count();S<C;++S){var w=D.get(_,S);isFinite(w)&&(!c||_g(f,w))&&(u&&(w=l.transformIn(w,null)),Ps.arr[h++]=w)}});var m=Ps.typed?Ps.arr.subarray(0,h):(Ps.arr.length=h,Ps.arr);Ps.typed?m.sort():Bl(m);for(var g=1/0,v=1;v<h;++v){var y=m[v]-m[v-1];y>0&&y<g&&(g=y)}n.liPosMinGap=t.liPosMinGap=yt(g)?g:h>0?sv:jk,n.serUids=r}var Ps=vv({ctor:LF},50);function u2(e){return function(t,n){var r=Ur(t,{fromStat:{key:e}});if(yt(r.w2))return[-r.w2/2,r.w2/2]}}function Qf(e,t){return e+av+t}function c2(e){return l2(),{liPosMinGap:!Lt(e.scale)}}var Yi="bar";function f2(e,t,n,r){Jk(e,{key:t,seriesType:n,coordSysType:r,getMetrics:c2})}function d2(e){var t=e.scale.rawExtentInfo.makeRenderInfo().startValue;return t}var LE={left:0,right:0,top:0,bottom:0},Jf=["25%","25%"],cr="cartesian2d",n9=(function(e){R(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(n,r){var i=Ro(n.outerBounds);e.prototype.mergeDefaultAndTheme.apply(this,arguments),i&&n.outerBounds&&Fn(n.outerBounds,i)},t.prototype.mergeOption=function(n,r){e.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&n.outerBounds&&Fn(this.option.outerBounds,n.outerBounds)},t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:LE,outerBoundsContain:"all",outerBoundsClampWidth:Jf[0],outerBoundsClampHeight:Jf[1],backgroundColor:oe.color.transparent,borderWidth:1,borderColor:oe.color.neutral30},t})(Ve),p2=n9;var r9=tm(),i9="__ec_stack_";function h2(e){return e.get("stack")||i9+e.seriesIndex}function o9(e,t){var n=a9(e,t);return n.columnMap=s9(n),n}function a9(e,t){var n=Qf(t,cr),r=[],i=Ur(e,{fromStat:{key:n},min:1});return mE(e,n,function(o){r.push({barWidth:we(o.get("barWidth"),i.w),barMaxWidth:we(o.get("barMaxWidth"),i.w),barMinWidth:we(o.get("barMinWidth")||(v2(o)?.5:1),i.w),barGap:o.get("barGap"),barCategoryGap:o.get("barCategoryGap"),defaultBarGap:o.get("defaultBarGap"),stackId:h2(o)})}),{bandWidthResult:i,seriesInfo:r}}function s9(e){var t=e.bandWidthResult.w,n=t,r=0,i,o,a=[],s={};E(e.seriesInfo,function(m,g){g||(o=m.defaultBarGap||0);var v=m.stackId;Q(s,v)||r++;var y=s[v];y||(y=s[v]={width:0,maxWidth:0},a.push(v));var _=m.barWidth;_&&!y.width&&(y.width=_,_=it(n,_),n-=_);var x=m.barMaxWidth;x&&(y.maxWidth=x);var D=m.barMinWidth;D&&(y.minWidth=D);var S=m.barGap;S!=null&&(o=S);var C=m.barCategoryGap;C!=null&&(i=C)}),i==null&&(i=De(35-a.length*4,15)+"%");var l=we(i,t),u=we(o,1),c=(n-l)/(r+(r-1)*u);c=De(c,0),E(a,function(m){var g=s[m],v=g.maxWidth,y=g.minWidth;if(g.width){var _=g.width;v&&(_=it(_,v)),y&&(_=De(_,y)),g.width=_,n-=_+u*_,r--}else{var _=c;v&&v<_&&(_=it(v,n)),y&&y>_&&(_=y),_!==c&&(g.width=_,n-=_+u*_,r--)}}),c=(n-l)/(r+(r-1)*u),c=De(c,0);var f=0,d;E(a,function(m){var g=s[m];g.width||(g.width=c),d=g,f+=g.width*(1+u)}),d&&(f-=d.width*u);var p={},h=-f/2;return E(a,function(m){var g=s[m];p[m]=p[m]||{bandWidth:t,offset:h,width:g.width},h+=g.width*(1+u)}),p}function m2(e){return{seriesType:e,overallReset:function(t){var n=Qf(e,cr);Xk(t,n,function(r){var i=o9(r,e);mE(r,n,function(o){var a=i.columnMap[h2(o)];o.getData().setLayout({bandWidth:a.bandWidth,offset:a.offset,size:a.width})})})}}}function g2(e){return{seriesType:e,plan:Cs(),reset:function(t){if(i2(t)){var n=t.getData(),r=t.coordinateSystem,i=r.getBaseAxis(),o=r.getOtherAxis(i),a=n.getDimensionIndex(n.mapDimension(o.dim)),s=n.getDimensionIndex(n.mapDimension(i.dim)),l=t.get("showBackground",!0),u=n.mapDimension(o.dim),c=n.getCalculationInfo("stackResultDimension"),f=ji(n,u)&&!!n.getCalculationInfo("stackedOnSeries"),d=o.isHorizontal(),p=o.toGlobalCoord(o.dataToCoord(d2(o))),h=v2(t),m=t.get("barMinHeight")||0,g=c&&n.getDimensionIndex(c),v=n.getLayout("size"),y=n.getLayout("offset");return{progress:function(_,x){for(var D=_.count,S=h&&Un(D*3),C=h&&l&&Un(D*3),w=h&&Un(D),I=r.master.getRect(),b=d?I.width:I.height,T,A=x.getStore(),M=0;(T=_.next())!=null;){var N=A.get(f?g:a,T),O=A.get(s,T),L=p,k=void 0;f&&(k=+N-A.get(a,T));var B=void 0,j=void 0,Z=void 0,H=void 0;if(d){var K=r.dataToPoint([N,O]);f&&(L=r.dataToPoint([k,O])[0]),B=L,j=K[1]+y,Z=K[0]-L,H=v,Je(Z)<m&&(Z=(Z<0?-1:1)*m)}else{var K=r.dataToPoint([O,N]);f&&(L=r.dataToPoint([O,k])[1]),B=K[0]+y,j=L,Z=v,H=K[1]-L,Je(H)<m&&(H=(H<=0?-1:1)*m)}h?(S[M]=B,S[M+1]=j,S[M+2]=d?Z:H,C&&(C[M]=d?I.x:B,C[M+1]=d?j:I.y,C[M+2]=b),w[T]=T):x.setItemLayout(T,{x:B,y:j,width:Z,height:H}),M+=3}h&&x.setLayout({largePoints:S,largeDataIndices:w,largeBackgroundPoints:C,valueAxisHorizontal:d})}}}}}}function v2(e){return e.pipelineContext&&e.pipelineContext.large}function l9(e){return u2(Qf(e,cr))}function y2(e){r9(e,function(){function t(n){var r=Qf(n,cr);f2(e,r,n,cr),lF(r,l9(n))}t("bar"),t("pictorialBar")})}var _2=(function(e){R(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(n,r){return yu(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(n,r,i){var o=this.coordinateSystem;if(o&&o.clampData){var a=o.clampData(n),s=o.dataToPoint(a);if(i)E(o.getAxes(),function(d,p){if(d.type==="category"&&r!=null){var h=d.getTicksCoords(),m=d.getTickModel().get("alignWithLabel"),g=a[p],v=r[p]==="x1"||r[p]==="y1";if(v&&!m&&(g+=1),h.length<2)return;if(h.length===2){s[p]=d.toGlobalCoord(d.getExtent()[v?1:0]);return}for(var y=void 0,_=void 0,x=1,D=0;D<h.length;D++){var S=h[D].coord,C=D===h.length-1?h[D-1].tickValue+x:h[D].tickValue;if(C===g){_=S;break}else if(C<g)y=S;else if(y!=null&&C>g){_=(S+y)/2;break}D===1&&(x=C-h[0].tickValue)}_==null&&(y?y&&(_=h[h.length-1].coord):_=h[0].coord),s[p]=d.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=o.getBaseAxis().isHorizontal()?0:1;s[f]+=u+c/2}return s}return[NaN,NaN]},t.prototype.__requireStartValue=function(n){return this.getBaseAxis()!==n},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},t})(Bn);Bn.registerClass(_2);var kE=_2;var u9=(function(e){R(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(){return yu(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.__preparePipelineContext=function(n,r){var i=nm(this,n,r);return i.progressiveRender&&(i.large=!0),i},t.prototype.brushSelector=function(n,r,i){return i.rect(r.getItemLayout(n))},t.type="series."+Yi,t.dependencies=["grid","polar"],t.defaultOption=uR(kE.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:oe.color.primary,borderWidth:2}},realtimeSort:!1}),t})(kE),x2=u9;var c9=(function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e})(),f9=(function(e){R(t,e);function t(n){var r=e.call(this,n)||this;return r.type="sausage",r}return t.prototype.getDefaultShape=function(){return new c9},t.prototype.buildPath=function(n,r){var i=r.cx,o=r.cy,a=Math.max(r.r0||0,0),s=Math.max(r.r,0),l=(s-a)*.5,u=a+l,c=r.startAngle,f=r.endAngle,d=r.clockwise,p=Math.PI*2,h=d?f-c<p:c-f<p;h||(c=f-(d?p:-p));var m=Math.cos(c),g=Math.sin(c),v=Math.cos(f),y=Math.sin(f);h?(n.moveTo(m*a+i,g*a+o),n.arc(m*u+i,g*u+o,l,-Math.PI+c,c,!d)):n.moveTo(m*s+i,g*s+o),n.arc(i,o,s,c,f,!d),n.arc(v*u+i,y*u+o,l,f-Math.PI*2,f-Math.PI,!d),a!==0&&n.arc(i,o,a,f,c,d)},t})(ie),Nu=f9;function D2(e,t){t=t||{};var n=t.isRoundCap;return function(r,i,o){var a=i.position;if(!a||a instanceof Array)return za(r,i,o);var s=e(a),l=i.distance!=null?i.distance:5,u=this.shape,c=u.cx,f=u.cy,d=u.r,p=u.r0,h=(d+p)/2,m=u.startAngle,g=u.endAngle,v=(m+g)/2,y=n?Math.abs(d-p)/2:0,_=Math.cos,x=Math.sin,D=c+d*_(m),S=f+d*x(m),C="left",w="top";switch(s){case"startArc":D=c+(p-l)*_(v),S=f+(p-l)*x(v),C="center",w="top";break;case"insideStartArc":D=c+(p+l)*_(v),S=f+(p+l)*x(v),C="center",w="bottom";break;case"startAngle":D=c+h*_(m)+Dv(m,l+y,!1),S=f+h*x(m)+Sv(m,l+y,!1),C="right",w="middle";break;case"insideStartAngle":D=c+h*_(m)+Dv(m,-l+y,!1),S=f+h*x(m)+Sv(m,-l+y,!1),C="left",w="middle";break;case"middle":D=c+h*_(v),S=f+h*x(v),C="center",w="middle";break;case"endArc":D=c+(d+l)*_(v),S=f+(d+l)*x(v),C="center",w="bottom";break;case"insideEndArc":D=c+(d-l)*_(v),S=f+(d-l)*x(v),C="center",w="top";break;case"endAngle":D=c+h*_(g)+Dv(g,l+y,!0),S=f+h*x(g)+Sv(g,l+y,!0),C="left",w="middle";break;case"insideEndAngle":D=c+h*_(g)+Dv(g,-l+y,!0),S=f+h*x(g)+Sv(g,-l+y,!0),C="right",w="middle";break;default:return za(r,i,o)}return r=r||{},r.x=D,r.y=S,r.align=C,r.verticalAlign=w,r}}function S2(e,t,n,r){if(ge(r)){e.setTextConfig({rotation:r});return}else if(F(t)){e.setTextConfig({rotation:0});return}var i=e.shape,o=i.clockwise?i.startAngle:i.endAngle,a=i.clockwise?i.endAngle:i.startAngle,s=(o+a)/2,l,u=n(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=o;break;case"endAngle":case"insideEndAngle":l=a;break;default:e.setTextConfig({rotation:0});return}var c=Math.PI*1.5-l;u==="middle"&&c>Math.PI/2&&c<Math.PI*1.5&&(c-=Math.PI),e.setTextConfig({rotation:c})}function Dv(e,t,n){return t*Math.sin(e)*(n?-1:1)}function Sv(e,t,n){return t*Math.cos(e)*(n?1:-1)}function C2(e,t,n){var r=e.get("borderRadius");if(r==null)return n?{cornerRadius:0}:null;F(r)||(r=[r,r,r,r]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:V(r,function(o){return Tr(o,i)})}}var FE=Math.max,BE=Math.min,d9=(function(e){R(t,e);function t(){var n=e.call(this)||this;return n.type=Yi,n._isFirstFrame=!0,n}return t.prototype.render=function(n,r,i,o){this._model=n,this._removeOnRenderedListener(i),this._updateDrawMode(n);var a=n.get("coordinateSystem");(a==="cartesian2d"||a==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(n,r,i):this._renderNormal(n,r,i,o))},t.prototype.incrementalPrepareRender=function(n){this._clear(),this._updateDrawMode(n),this._updateLargeClip(n)},t.prototype.incrementalRender=function(n,r){this._progressiveEls=[],this._incrementalRenderLarge(n,r)},t.prototype.eachRendered=function(n){us(this._progressiveEls||this.group,n)},t.prototype._updateDrawMode=function(n){var r=n.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},t.prototype._renderNormal=function(n,r,i,o){var a=this.group,s=n.getData(),l=this._data,u=n.coordinateSystem,c=u.getBaseAxis(),f;u.type==="cartesian2d"?f=c.isHorizontal():u.type==="polar"&&(f=c.dim==="angle");var d=n.isAnimationEnabled()?n:null,p=p9(n,u);p&&this._enableRealtimeSort(p,s,i);var h=n.get("clip",!0)||p,m=u.getArea();a.removeClipPath();var g=n.get("roundCap",!0),v=n.get("showBackground",!0),y=n.getModel("backgroundStyle"),_=y.get("borderRadius")||0,x=[],D=this._backgroundEls,S=o&&o.isInitSort,C=o&&o.type==="changeAxisOrder";function w(T){var A=Cv[u.type](s,T);if(!A)return null;var M=x9(u,f,A);return M.useStyle(y.getItemStyle()),u.type==="cartesian2d"?M.setShape("r",_):M.setShape("cornerRadius",_),x[T]=M,M}s.diff(l).add(function(T){var A=s.getItemModel(T),M=Cv[u.type](s,T,A);if(M&&(v&&w(T),!(!s.hasValue(T)||!I2[u.type](M)))){var N=!1;h&&(N=E2[u.type](m,M));var O=b2[u.type](n,s,T,M,f,d,c.model,!1,g);p&&(O.forceLabelAnimation=!0),M2(O,s,T,A,M,n,f,u.type==="polar"),S?O.attr({shape:M}):p?w2(p,d,O,M,T,f,!1,!1):Tt(O,{shape:M},n,T),s.setItemGraphicEl(T,O),a.add(O),O.ignore=N}}).update(function(T,A){var M=s.getItemModel(T),N=Cv[u.type](s,T,M);if(N){if(v){var O=void 0;D.length===0?O=w(A):(O=D[A],O.useStyle(y.getItemStyle()),u.type==="cartesian2d"?O.setShape("r",_):O.setShape("cornerRadius",_),x[T]=O);var L=Cv[u.type](s,T),k=P2(f,L,u);et(O,{shape:k},d,T)}var B=l.getItemGraphicEl(A);if(!s.hasValue(T)||!I2[u.type](N)){a.remove(B);return}var j=!1;h&&(j=E2[u.type](m,N),j&&a.remove(B));var Z=B&&(B.type==="sector"&&g||B.type==="sausage"&&!g);if(Z&&(B&&Zl(B,n,A),B=null),B?Nm(B):B=b2[u.type](n,s,T,N,f,d,c.model,!0,g),p&&(B.forceLabelAnimation=!0),C){var H=B.getTextContent();if(H){var K=fs(H);K.prevValue!=null&&(K.prevValue=K.value)}}else M2(B,s,T,M,N,n,f,u.type==="polar");S?B.attr({shape:N}):p?w2(p,d,B,N,T,f,!0,C):et(B,{shape:N},n,T,null),s.setItemGraphicEl(T,B),B.ignore=j,a.add(B)}}).remove(function(T){var A=l.getItemGraphicEl(T);A&&Zl(A,n,T)}).execute();var I=this._backgroundGroup||(this._backgroundGroup=new ke);I.removeAll();for(var b=0;b<x.length;++b)I.add(x[b]);a.add(I),this._backgroundEls=x,this._data=s},t.prototype._renderLarge=function(n,r,i){this._clear(),N2(n,this.group),this._updateLargeClip(n)},t.prototype._incrementalRenderLarge=function(n,r){this._removeBackground(),N2(r,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(n){var r=n.get("clip",!0)&&VF(n.coordinateSystem,!1,n),i=this.group;r?i.setClipPath(r):i.removeClipPath()},t.prototype._enableRealtimeSort=function(n,r,i){var o=this;if(r.count()){var a=n.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(r,n,i),this._isFirstFrame=!1;else{var s=function(l){var u=r.getItemGraphicEl(l),c=u&&u.shape;return c&&Math.abs(a.isHorizontal()?c.height:c.width)||0};this._onRendered=function(){o._updateSortWithinSameData(r,s,a,i)},i.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(n,r,i){var o=[];return n.each(n.mapDimension(r.dim),function(a,s){var l=i(s);l=l??NaN,o.push({dataIndex:s,mappedValue:l,ordinalNumber:a})}),o.sort(function(a,s){return s.mappedValue-a.mappedValue}),{ordinalNumbers:V(o,function(a){return a.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(n,r,i){for(var o=i.scale,a=n.mapDimension(i.dim),s=Number.MAX_VALUE,l=0,u=o.getOrdinalMeta().categories.length;l<u;++l){var c=n.rawIndexOf(a,o.getRawOrdinalNumber(l)),f=c<0?Number.MIN_VALUE:r(n.indexOfRawIndex(c));if(f>s)return!0;s=f}return!1},t.prototype._isOrderDifferentInView=function(n,r){for(var i=r.scale,o=i.getExtent(),a=Math.max(0,o[0]),s=Math.min(o[1],i.getOrdinalMeta().categories.length-1);a<=s;++a)if(n.ordinalNumbers[a]!==i.getRawOrdinalNumber(a))return!0},t.prototype._updateSortWithinSameData=function(n,r,i,o){if(this._isOrderChangedWithinSameData(n,r,i)){var a=this._dataSort(n,i,r);this._isOrderDifferentInView(a,i)&&(this._removeOnRenderedListener(o),o.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:a}))}},t.prototype._dispatchInitSort=function(n,r,i){var o=r.baseAxis,a=this._dataSort(n,o,function(s){return n.get(n.mapDimension(r.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:o.dim+"Axis",isInitSort:!0,axisId:o.index,sortInfo:a})},t.prototype.remove=function(n,r){this._clear(this._model),this._removeOnRenderedListener(r)},t.prototype.dispose=function(n,r){this._removeOnRenderedListener(r)},t.prototype._removeOnRenderedListener=function(n){this._onRendered&&(n.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(n){var r=this.group,i=this._data;n&&n.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(o){Zl(o,n,Te(o).dataIndex)})):r.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type=Yi,t})(an),E2={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,o=e.y+e.height,a=FE(t.x,e.x),s=BE(t.x+t.width,i),l=FE(t.y,e.y),u=BE(t.y+t.height,o),c=s<a,f=u<l;return t.x=c&&a>i?s:a,t.y=f&&l>o?u:l,t.width=c?0:s-a,t.height=f?0:u-l,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),c||f},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var i=BE(t.r,e.r),o=FE(t.r0,e.r0);t.r=i,t.r0=o;var a=i-o<0;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}return a}},b2={cartesian2d:function(e,t,n,r,i,o,a,s,l){var u=new $e({shape:P({},r),z2:1});if(u.__dataIndex=n,u.name="item",o){var c=u.shape,f=i?"height":"width";c[f]=0}return u},polar:function(e,t,n,r,i,o,a,s,l){var u=!i&&l?Nu:Pr,c=new u({shape:r,z2:1});c.name="item";var f=R2(i);if(c.calculateTextPosition=D2(f,{isRoundCap:u===Nu}),o){var d=c.shape,p=i?"r":"endAngle",h={};d[p]=i?r.r0:r.startAngle,h[p]=r[p],(s?et:Tt)(c,{shape:h},o)}return c}};function p9(e,t){var n=e.get("realtimeSort",!0),r=t.getBaseAxis();if(n&&r.type==="category"&&t.type==="cartesian2d")return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}function w2(e,t,n,r,i,o,a,s){var l,u;o?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(a?et:Tt)(n,{shape:l},t,i,null);var c=t?e.baseAxis.model:null;(a?et:Tt)(n,{shape:u},c,i)}function T2(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var h9=["x","y","width","height"],m9=["cx","cy","r","startAngle","endAngle"],I2={cartesian2d:function(e){return!T2(e,h9)},polar:function(e){return!T2(e,m9)}},Cv={cartesian2d:function(e,t,n){var r=e.getItemLayout(t);if(!r)return null;var i=n?v9(n,r):0,o=r.width>0?1:-1,a=r.height>0?1:-1;return{x:r.x+o*i/2,y:r.y+a*i/2,width:r.width-o*i,height:r.height-a*i}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function g9(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function R2(e){return(function(t){var n=t?"Arc":"Angle";return function(r){switch(r){case"start":case"insideStart":case"end":case"insideEnd":return r+n;default:return r}}})(e)}function M2(e,t,n,r,i,o,a,s){var l=t.getItemVisual(n,"style");if(s){if(!o.get("roundCap")){var c=e.shape,f=C2(r.getModel("itemStyle"),c,!0);P(c,f),e.setShape(c)}}else{var u=r.get(["itemStyle","borderRadius"])||0;e.setShape("r",u)}e.useStyle(l);var d=r.getShallow("cursor");d&&e.attr("cursor",d);var p=s?a?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":a?D9(i,o.coordinateSystem):S9(i,o.coordinateSystem),h=Ao(r);Jl(e,h,{labelFetcher:o,labelDataIndex:n,defaultText:Mu(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:p});var m=e.getTextContent();if(s&&m){var g=r.get(["label","position"]);e.textConfig.inside=g==="middle"?!0:null,S2(e,g==="outside"?p:g,R2(a),r.get(["label","rotate"]))}Bm(m,h,o.getRawValue(n),function(y){return pv(t,y)});var v=r.getModel(["emphasis"]);ai(e,v.get("focus"),v.get("blurScope"),v.get("disabled")),Mo(e,r),g9(i)&&(e.style.fill="none",e.style.stroke="none",E(e.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function v9(e,t){var n=e.get(["itemStyle","borderColor"]);if(!n||n==="none")return 0;var r=e.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),o=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,i,o)}var y9=(function(){function e(){}return e})(),A2=(function(e){R(t,e);function t(n){var r=e.call(this,n)||this;return r.type="largeBar",r}return t.prototype.getDefaultShape=function(){return new y9},t.prototype.buildPath=function(n,r){for(var i=r.points,o=this.baseDimIdx,a=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c<i.length;c+=3)l[o]=u,l[a]=i[c+2],s[o]=i[c+o],s[a]=i[c+a],n.rect(s[0],s[1],l[0],l[1])},t})(ie);function N2(e,t,n,r){var i=e.getData(),o=i.getLayout("valueAxisHorizontal")?1:0,a=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=e.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints"),c=r?aN(e):0;if(u){var f=new A2({shape:{points:u},incremental:c,silent:!0,z2:0});f.baseDimIdx=o,f.largeDataIndices=a,f.barWidth=s,f.useStyle(l.getItemStyle()),t.add(f),n&&n.push(f)}var d=new A2({shape:{points:i.getLayout("largePoints")},incremental:c,ignoreCoarsePointer:!0,z2:1});d.baseDimIdx=o,d.largeDataIndices=a,d.barWidth=s,t.add(d),d.useStyle(i.getVisual("style")),d.style.stroke=null,Te(d).seriesIndex=e.seriesIndex,e.get("silent")||(d.on("mousedown",O2),d.on("mousemove",O2)),n&&n.push(d)}var O2=Tf(function(e){var t=this,n=_9(t,e.offsetX,e.offsetY);Te(t).dataIndex=n>=0?n:null},30,!1);function _9(e,t,n){for(var r=e.baseDimIdx,i=1-r,o=e.shape.points,a=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,f=o.length/3;c<f;c++){var d=c*3;if(l[r]=u,l[i]=o[d+2],s[r]=o[d+r],s[i]=o[d+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),t>=s[0]&&t<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[c]}return-1}function P2(e,t,n){if(yv(n,"cartesian2d")){var r=t,i=n.getArea();return{x:e?r.x:i.x,y:e?i.y:r.y,width:e?r.width:i.width,height:e?i.height:r.height}}else{var i=n.getArea(),o=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:o.r0,r:e?i.r:o.r,startAngle:e?o.startAngle:0,endAngle:e?o.endAngle:Math.PI*2}}}function x9(e,t,n){var r=e.type==="polar"?Pr:$e;return new r({shape:P2(t,n,e),silent:!0,z2:0})}function D9(e,t){if(e.height===0){var n=t.getOtherAxis(t.getBaseAxis());return n.inverse?"bottom":"top"}return e.height>0?"bottom":"top"}function S9(e,t){if(e.width===0){var n=t.getOtherAxis(t.getBaseAxis());return n.inverse?"left":"right"}return e.width>=0?"right":"left"}var L2=d9;function VE(e){e.registerChartView(L2),e.registerSeriesModel(x2),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,m2(Yi)),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,g2(Yi)),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Zf(Yi)),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,n){var r=t.componentType||"series";n.eachComponent({mainType:r,query:t},function(i){t.sortInfo&&i.axis.setCategorySortInfo(t.sortInfo)})}),y2(e)}function UE(e,t,n){t=F(t)&&{coordDimensions:t}||P({encodeDefine:e.getEncode()},t);var r=e.getSource(),i=Uf(r,t).dimensions,o=new $g(i,e);return o.initData(r,n),o}var Ev=(function(e){R(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Ut).models[0]},t.type="cartesian2dAxis",t})(Ve);Kt(Ev,zk);var k2={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:oe.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:oe.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:oe.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[oe.color.backgroundTint,oe.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:oe.color.neutral00,borderColor:oe.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},C9=Ne({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},k2),HE=Ne({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:oe.color.axisMinorSplitLine,width:1}}},k2),E9=Ne({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},HE),b9=he({logBase:10},HE),F2={category:C9,value:HE,time:E9,log:b9};function bv(e,t,n,r){E(tv,function(i,o){var a=Ne(Ne({},F2[o],!0),r,!0),s=(function(l){R(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+o,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var d=Oo(this),p=d?Ro(c):{},h=f.getTheme();Ne(c,h.get(o+"Axis")),Ne(c,this.getDefaultOption()),c.type=B2(c),d&&Fn(c,p,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=Hf.createByAxisModel(this))},u.prototype.getCategories=function(c){var f=this.option;if(f.type==="category")return c?f.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(c){var f=Os();return f?f.updateModelAxisBreak(this,c):{breaks:[]}},u.type=t+"Axis."+o,u.defaultOption=a,u})(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",B2)}function B2(e){return e.type||(e.data?"category":"value")}var w9=(function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return V(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),qe(this.getAxes(),function(n){return n.scale.type===t})},e.prototype.addAxis=function(t){var n=t.dim;this._axes[n]=t,this._dimList.push(n)},e})(),V2=w9;var ed=["x","y"];function U2(e){return(e.type==="interval"||e.type==="time")&&!hs(e)}var T9=(function(e){R(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=cr,n.dimensions=ed,n}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var n=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!U2(n)||!U2(r))){var i=Ms(n,null),o=Ms(r,null),a=this.dataToPoint([i[0],o[0]]),s=this.dataToPoint([i[1],o[1]]),l=i[1]-i[0],u=o[1]-o[0];if(!(!l||!u)){var c=(s[0]-a[0])/l,f=(s[1]-a[1])/u,d=a[0]-i[0]*c,p=a[1]-o[0]*f,h=this._transform=[c,0,0,f,d,p];this._invTransform=Yr([],h)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(n){var r=this.getAxis("x"),i=this.getAxis("y");return r.contain(r.toLocalCoord(n[0]))&&i.contain(i.toLocalCoord(n[1]))},t.prototype.containData=function(n){return this.getAxis("x").containData(n[0])&&this.getAxis("y").containData(n[1])},t.prototype.containZone=function(n,r){var i=this.dataToPoint(n),o=this.dataToPoint(r),a=this.getArea(),s=new fe(i[0],i[1],o[0]-i[0],o[1]-i[1]);return a.intersect(s)},t.prototype.dataToPoint=function(n,r,i){i=i||[];var o=n[0],a=n[1];if(this._transform&&o!=null&&isFinite(o)&&a!=null&&isFinite(a))return Vt(i,n,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(o,r)),i[1]=l.toGlobalCoord(l.dataToCoord(a,r)),i},t.prototype.clampData=function(n,r){var i=this.getAxis("x").scale,o=this.getAxis("y").scale,a=i.getExtent(),s=o.getExtent(),l=i.parse(n[0]),u=o.parse(n[1]);return r=r||[],r[0]=Math.min(Math.max(Math.min(a[0],a[1]),l),Math.max(a[0],a[1])),r[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),r},t.prototype.pointToData=function(n,r,i){if(i=i||[],this._invTransform)return Vt(i,n,this._invTransform);var o=this.getAxis("x"),a=this.getAxis("y");return i[0]=o.coordToData(o.toLocalCoord(n[0]),r),i[1]=a.coordToData(a.toLocalCoord(n[1]),r),i},t.prototype.getOtherAxis=function(n){return this.getAxis(n.dim==="x"?"y":"x")},t.prototype.getArea=function(n){n=n||0;var r=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),o=Math.min(r[0],r[1])-n,a=Math.min(i[0],i[1])-n,s=Math.max(r[0],r[1])-o+n,l=Math.max(i[0],i[1])-a+n;return new fe(o,a,s,l)},t})(V2),H2=T9;function z2(e,t){var n=e.scale,r=e.model,i=uv(n,r,r.ecModel,e,null),o=li(n),a=li(t)?t.intervalStub:t,s=o?n.intervalStub:n,l=n.base,u=a.getTicks(),c=a.getTicks({expandToNicedExtent:!0}),f=u.length-1,d,p,h;if(f===1)d=p=0,h=1;else if(f===2){var m=Je(u[0].value-u[1].value),g=Je(u[1].value-u[2].value);d=p=0,m===g?h=2:(h=1,m<g?d=m/g:p=g/m)}else{var v=a.getConfig().interval;d=(1-(u[0].value-c[0].value)/v)%1,p=(1-(c[f].value-u[f].value)/v)%1,h=f-(d?1:0)-(p?1:0)}var y=i.zoomFixMM,_=y[0]||y[1],x=[i.fixMM[0]||_,i.fixMM[1]||_],D=n.getExtent(),S=s.getExtent(),C=Xg(S,x),w,I,b,T,A,M;function N(K){for(var J=50,W=0;W<J&&!K();W++)b=o?b*De(l,2):yk(b),T=Br(b)}function O(){w=Ee(M-b*d,T)}function L(){I=Ee(A+b*p,T)}function k(){M=d?Ee(w+b*d,T):w}function B(){A=p?Ee(I-b*p,T):I}if(x[0]&&x[1]){w=C[0],I=C[1],b=(I-w)/(h+d+p);var j=e.getExtent(),Z=Je(j[1]-j[0]);T=z1([I,w],Z,.5/h),k(),B(),yt(T)&&(b=Ee(b,T))}else{var H=C[1]-C[0];b=o?De(Zh(H),1):Ga(H/h,TD),T=Br(b),x[0]?(w=C[0],N(function(){if(k(),A=Ee(M+b*h,T),L(),I>=C[1])return!0})):x[1]?(I=C[1],N(function(){if(B(),M=Ee(A-b*h,T),O(),w<=C[0])return!0})):N(function(){M=Ee(xo(C[0]/b)*b,T),A=Ee(Ni(C[1]/b)*b,T);var K=On((A-M)/b);if(K<=h){var J=h-K,W=void 0,de=i.incl0||o;if(de&&C[0]===0)W=[0,J];else if(de&&C[1]===0)W=[J,0];else{var Ie=Ni(J/2);W=J%2===0?[Ie,Ie]:w+I<C[0]+C[1]?[Ie,Ie+1]:[Ie+1,Ie]}if(M=Ee(M-b*W[0],T),A=Ee(A+b*W[1],T),O(),L(),w<=C[0]&&I>=C[1])return!0}})}iv(n,x,S,[w,I],D,{interval:b,intervalCount:h,intervalPrecision:T,niceExtent:[M,A]})}var j2=[[3,1],[0,2]],I9=(function(){function e(t,n,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=ed,this._initCartesian(t,n,r),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,n){var r=this._axesMap;E(this._axesList,function(a){aF(a,nF);var s=a.scale;Lt(s)&&s.setSortInfo(a.model.get("categorySortInfo"))});function i(a){for(var s=X(a),l=[],u=s.length-1;u>=0;u--){var c=a[+s[u]];c.__alignTo?l.push(c):_E(c)}E(l,function(f){A9(f,f.__alignTo)?_E(f):z2(f,f.__alignTo.scale)})}i(r.x),i(r.y);var o={};E(r.x,function(a){G2(r,"y",a,o)}),E(r.y,function(a){G2(r,"x",a,o)}),this.resize(this.model,n)},e.prototype.resize=function(t,n,r){var i=MR(t,n),o=this._rect=ou(t.getBoxLayoutParams(),i.refContainer),a=this._axesMap,s=this._coordsList,l=t.get("containLabel");if(zE(a,o),!r){var u=O9(o,s,a,l,n),c=void 0;if(l)q2?(q2(this._axesList,o),zE(a,o)):c=Z2(o.clone(),"axisLabel",null,o,a,u,i);else{var f=R9(t,o,i),d=f.outerBoundsRect,p=f.parsedOuterBoundsContain,h=f.outerBoundsClamp;d&&(c=Z2(d,p,h,o,a,u,i))}X2(o,a,_n.determine,null,c,i),E(this._coordsList,function(m){m.calcAffineTransform()})}},e.prototype.getAxis=function(t,n){var r=this._axesMap[t];if(r!=null)return r[n||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,n){if(t!=null&&n!=null){var r="x"+t+"y"+n;return this._coordsMap[r]}z(t)&&(n=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,o=this._coordsList;i<o.length;i++)if(o[i].getAxis("x").index===t||o[i].getAxis("y").index===n)return o[i]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(t,n,r){var i=this._findConvertTarget(n);return i.cartesian?i.cartesian.dataToPoint(r):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(r)):null},e.prototype.convertFromPixel=function(t,n,r){var i=this._findConvertTarget(n);return i.cartesian?i.cartesian.pointToData(r):i.axis?i.axis.coordToData(i.axis.toLocalCoord(r)):null},e.prototype._findConvertTarget=function(t){var n=t.seriesModel,r=t.xAxisModel||n&&n.getReferringComponents("xAxis",Ut).models[0],i=t.yAxisModel||n&&n.getReferringComponents("yAxis",Ut).models[0],o=t.gridModel,a=this._coordsList,s,l;if(n)s=n.coordinateSystem,se(a,s)<0&&(s=null);else if(r&&i)s=this.getCartesian(r.componentIndex,i.componentIndex);else if(r)l=this.getAxis("x",r.componentIndex);else if(i)l=this.getAxis("y",i.componentIndex);else if(o){var u=o.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},e.prototype.containPoint=function(t){var n=this._coordsList[0];if(n)return n.containPoint(t)},e.prototype._initCartesian=function(t,n,r){var i=this,o=this,a={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(n.eachComponent("xAxis",u("x"),this),n.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,E(s.x,function(c,f){E(s.y,function(d,p){var h="x"+f+"y"+p,m=new H2(h);m.master=i,m.model=t,i._coordsMap[h]=m,i._coordsList.push(m),m.addAxis(c),m.addAxis(d)})}),W2(s.x),W2(s.y);function u(c){return function(f,d){if(M9(f,t)){var p=f.get("position");c==="x"?p!=="top"&&p!=="bottom"&&(p=a.bottom?"top":"bottom"):p!=="left"&&p!=="right"&&(p=a.left?"right":"left"),a[p]=!0;var h=Pk(f),m=new XF(c,Lk(f,h,!0),[0,0],h,p);m.onBand=ov(m.scale,f),m.inverse=f.get("inverse"),f.axis=m,m.model=f,m.grid=o,m.index=d,o._axesList.push(m),s[c][d]=m,l[c]++}}}},e.prototype.getTooltipAxes=function(t){var n=[],r=[];return E(this.getCartesians(),function(i){var o=t!=null&&t!=="auto"?i.getAxis(t):i.getBaseAxis(),a=i.getOtherAxis(o);se(n,o)<0&&n.push(o),se(r,a)<0&&r.push(a)}),{baseAxes:n,otherAxes:r}},e.create=function(t,n){var r=[];return t.eachComponent("grid",function(i,o){var a=new e(i,t,n);a.name="grid_"+o,a.resize(i,n,!0),i.coordinateSystem=a,r.push(a),E(a._axesList,function(s){oF(s,e.dimIdxMap)})}),t.eachSeries(function(i){var o,a;wR({targetModel:i,coordSysType:cr,coordSysProvider:s});function s(){var l=o2(i),u=l.xAxisModel,c=l.yAxisModel;o=u.axis,a=c.axis;var f=u.getCoordSysModel(),d=f.coordinateSystem;return d.getCartesian(u.componentIndex,c.componentIndex)}o&&a&&(vE(o,i,cr),vE(a,i,cr))},this),r},e.dimensions=ed,e.dimIdxMap=Lf(ed),e})();function M9(e,t){return e.getCoordSysModel()===t}function G2(e,t,n,r){n.getAxesOnZeroOf=function(){return o?[o]:[]};var i=e[t],o,a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)$2(s,i[l])&&(o=i[l]);else for(var u in i)if(Q(i,u)&&$2(s,i[u])&&!r[c(i[u])]){o=i[u];break}o&&(r[c(o)]=!0);function c(f){return f.dim+"_"+f.index}}function $2(e,t){if(!t)return!1;var n=t.scale,r=kk(n,0,!1),i=t&&t.type!=="category"&&t.type!=="time"&&r!==nv;return i&&e==="auto"&&Bk(t)&&(i=!1),i}function W2(e){for(var t=X(e),n,r=[],i=t.length-1;i>=0;i--){var o=e[+t[i]];qg(o.scale)&&dE(o.model,o.type,!0)==null&&(o.model.get("alignTicks")&&o.model.get("interval")==null?r.push(o):n=o)}n||(n=r.pop()),n&&E(r,function(a){a.__alignTo=n})}function A9(e,t){return hs(e.scale)||hs(t.scale)||t.scale.getTicks().length<2}function N9(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord=e.dim==="x"?function(i){return i+t}:function(i){return r-i+t},e.toLocalCoord=e.dim==="x"?function(i){return i-t}:function(i){return r-i+t}}function zE(e,t){E(e.x,function(n){return Y2(n,t.x,t.width)}),E(e.y,function(n){return Y2(n,t.y,t.height)})}function Y2(e,t,n){var r=[0,n],i=e.inverse?1:0;e.setExtent(r[i],r[1-i]),N9(e,t)}var q2;function Z2(e,t,n,r,i,o,a){X2(r,i,_n.estimate,t,!1,a);var s=[0,0,0,0];u(0),u(1),c(r,0,NaN),c(r,1,NaN);var l=dA(s,function(d){return d>0})==null;return Xl(r,s,!0,!0,n),zE(i,r),l;function u(d){E(i[Bi[d]],function(p){if(Ns(p.model)){var h=o.ensureRecord(p.model),m=h.labelInfoList;if(m)for(var g=0;g<m.length;g++){var v=m[g],y=p.scale.normalize($i(p.scale,Go(v.label).labelInfo.tick));y=d===1?1-y:y,c(v.rect,d,y),c(v.rect,1-d,NaN)}var _=h.nameLayout;if(_){var y=Vo(h.nameLocation)?.5:NaN;c(_.rect,d,y),c(_.rect,1-d,NaN)}}})}function c(d,p,h){var m=e[Bi[p]]-d[Bi[p]],g=d[ss[p]]+d[Bi[p]]-(e[ss[p]]+e[Bi[p]]);m=f(m,1-h),g=f(g,h);var v=j2[p][0],y=j2[p][1];s[v]=De(s[v],m),s[y]=De(s[y],g)}function f(d,p){return d>0&&!lo(p)&&p>1e-4&&(d/=p),d}}function O9(e,t,n,r,i){var o=new NE(P9);return E(n,function(a){return E(a,function(s){if(Ns(s.model)){var l=!r;s.axisBuilder=a2(e,t,s.model,i,o,l)}})}),o}function X2(e,t,n,r,i,o){var a=n===_n.determine;E(t,function(u){return E(u,function(c){Ns(c.model)&&(s2(c.axisBuilder,e,c.model),c.axisBuilder.build(a?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[Bi[1-u]]=e[ss[u]]<=o.refContainer[ss[u]]*.5?0:1-u===1?2:1}E(t,function(u,c){return E(u,function(f){Ns(f.model)&&((r==="all"||a)&&f.axisBuilder.build({axisName:!0},{nameMarginLevel:s[c]}),a&&f.axisBuilder.build({axisLine:!0}))})})}function R9(e,t,n){var r,i=e.get("outerBoundsMode",!0);i==="same"?r=t.clone():(i==null||i==="auto")&&(r=ou(e.get("outerBounds",!0)||LE,n.refContainer));var o=e.get("outerBoundsContain",!0),a;o==null||o==="auto"||se(["all","axisLabel"],o)<0?a="all":a=o;var s=[qh(G(e.get("outerBoundsClampWidth",!0),Jf[0]),t.width),qh(G(e.get("outerBoundsClampHeight",!0),Jf[1]),t.height)];return{outerBoundsRect:r,parsedOuterBoundsContain:a,outerBoundsClamp:s}}var P9=function(e,t,n,r,i,o){var a=n.axis.dim==="x"?"y":"x";OE(e,t,n,r,i,o),Vo(e.nameLocation)||E(t.recordMap[a],function(s){s&&s.labelInfoList&&s.dirVec&&RE(s.labelInfoList,s.dirVec,r,i)})},K2=I9;function Q2(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return L9(n,e,t),n.seriesInvolved&&F9(n,e),n}function L9(e,t,n){var r=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),o=i.get("link",!0)||[],a=[];E(n.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Ou(s.model),u=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=s;var c=s.model,f=c.getModel("tooltip",r);if(E(s.getAxes(),vt(m,!1,null)),s.getTooltipAxes&&r&&f.get("show")){var d=f.get("trigger")==="axis",p=f.get(["axisPointer","type"])==="cross",h=s.getTooltipAxes(f.get(["axisPointer","axis"]));(d||p)&&E(h.baseAxes,vt(m,p?"cross":!0,d)),p&&E(h.otherAxes,vt(m,"cross",!1))}function m(g,v,y){var _=y.model.getModel("axisPointer",i),x=_.get("show");if(!(!x||x==="auto"&&!g&&!GE(_))){v==null&&(v=_.get("triggerTooltip")),_=g?k9(y,f,i,t,g,v):_;var D=_.get("snap"),S=_.get("triggerEmphasis"),C=Ou(y.model),w=v||D||y.type==="category",I=e.axesInfo[C]={key:C,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:v,triggerEmphasis:S,involveSeries:w,snap:D,useHandle:GE(_),seriesModels:[],linkGroup:null};u[C]=I,e.seriesInvolved=e.seriesInvolved||w;var b=B9(o,y);if(b!=null){var T=a[b]||(a[b]={axesInfo:{}});T.axesInfo[C]=I,T.mapper=o[b].mapper,I.linkGroup=T}}}})}function k9(e,t,n,r,i,o){var a=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};E(s,function(d){l[d]=ae(a.get(d))}),l.snap=e.type!=="category"&&!!o,a.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),i==="cross"){var c=a.get(["label","show"]);if(u.show=c??!0,!o){var f=l.lineStyle=a.get("crossStyle");f&&he(u,f.textStyle)}}return e.model.getModel("axisPointer",new tt(l,n,r))}function F9(e,t){t.eachSeries(function(n){var r=n.coordinateSystem,i=n.get(["tooltip","trigger"],!0),o=n.get(["tooltip","show"],!0);!r||!r.model||i==="none"||i===!1||i==="item"||o===!1||n.get(["axisPointer","show"],!0)===!1||E(e.coordSysAxesInfo[Ou(r.model)],function(a){var s=a.axis;r.getAxis(s.dim)===s&&(a.seriesModels.push(n),a.seriesDataCount==null&&(a.seriesDataCount=0),a.seriesDataCount+=n.getData().count())})})}function B9(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var o=e[i]||{};if(jE(o[r+"AxisId"],n.id)||jE(o[r+"AxisIndex"],n.componentIndex)||jE(o[r+"AxisName"],n.name))return i}}function jE(e,t){return e==="all"||F(e)&&se(e,t)>=0||e===t}function J2(e){var t=wv(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,o=n.get("status"),a=n.get("value");a!=null&&(a=r.parse(a));var s=GE(n);o==null&&(i.status=s?"show":"hide");var l=r.getExtent();(a==null||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),i.value=a,s&&(i.status=t.axis.scale.isBlank()?"hide":"show")}}function wv(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Ou(e)]}function eB(e){var t=wv(e);return t&&t.axisPointerModel}function GE(e){return!!e.get(["handle","show"])}function Ou(e){return e.type+"||"+e.id}var tB={},V9=(function(e){R(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,i,o){this.axisPointerClass&&J2(n),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(n,i,!0)},t.prototype.updateAxisPointer=function(n,r,i,o){this._doUpdateAxisPointerClass(n,i,!1)},t.prototype.remove=function(n,r){var i=this._axisPointer;i&&i.remove(r)},t.prototype.dispose=function(n,r){this._disposeAxisPointer(r),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(n,r,i){var o=t.getAxisPointerClass(this.axisPointerClass);if(o){var a=eB(n);a?(this._axisPointer||(this._axisPointer=new o)).render(n,a,r,i):this._disposeAxisPointer(r)}},t.prototype._disposeAxisPointer=function(n){this._axisPointer&&this._axisPointer.dispose(n),this._axisPointer=null},t.registerAxisPointerClass=function(n,r){tB[n]=r},t.getAxisPointerClass=function(n){return n&&tB[n]},t.type="axis",t})(on),Tv=V9;var WE=re();function nB(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=r.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var c=s.length,f=WE(e).splitAreaColors,d=q(),p=0;if(f)for(var h=0;h<u.length;h++){var m=f.get(u[h].tickValue);if(m!=null){p=(m+(c-1)*h)%c;break}}var g=i.toGlobalCoord(u[0].coord),v=a.getAreaStyle();s=F(s)?s:[s];for(var h=1;h<u.length;h++){var y=i.toGlobalCoord(u[h].coord),_=void 0,x=void 0,D=void 0,S=void 0;i.isHorizontal()?(_=g,x=l.y,D=y-_,S=l.height,g=_+D):(_=l.x,x=g,D=l.width,S=y-x,g=x+S);var C=u[h-1].tickValue;C!=null&&d.set(C,p),t.add(new $e({anid:C!=null?"area_"+C:null,shape:{x:_,y:x,width:D,height:S},style:he({fill:s[p]},v),autoBatch:!0,silent:!0})),p=(p+1)%c}WE(e).splitAreaColors=d}}}function rB(e){WE(e).splitAreaColors=null}var U9=["splitArea","splitLine","minorSplitLine","breakArea"],iB=(function(e){R(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="CartesianAxisPointer",n}return t.prototype.render=function(n,r,i,o){this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new ke,this.group.add(this._axisGroup),!!Ns(n)){this._axisGroup.add(n.axis.axisBuilder.group),E(U9,function(l){n.get([l,"show"])&&H9[l](this,this._axisGroup,n,n.getCoordSysModel(),i)},this);var s=o&&o.type==="changeAxisOrder"&&o.isInitSort;s||BS(a,this._axisGroup,n),e.prototype.render.call(this,n,r,i,o)}},t.prototype.remove=function(){rB(this)},t.type="cartesianAxis",t})(Tv),H9={splitLine:function(e,t,n,r,i){var o=n.axis;if(!o.scale.isBlank()){var a=n.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),u=a.get("showMinLine")!==!1,c=a.get("showMaxLine")!==!1;l=F(l)?l:[l];for(var f=r.coordinateSystem.getRect(),d=o.isHorizontal(),p=0,h=o.getTicksCoords({tickModel:a,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),m=[],g=[],v=s.getLineStyle(),y=0;y<h.length;y++){var _=o.toGlobalCoord(h[y].coord);if(!(y===0&&!u||y===h.length-1&&!c)){var x=h[y].tickValue;d?(m[0]=_,m[1]=f.y,g[0]=_,g[1]=f.y+f.height):(m[0]=f.x,m[1]=_,g[0]=f.x+f.width,g[1]=_);var D=p++%l.length,S=new mn({anid:x!=null?"line_"+x:null,autoBatch:!0,shape:{x1:m[0],y1:m[1],x2:g[0],y2:g[1]},style:he({stroke:l[D]},v),silent:!0});ls(S.shape,v.lineWidth),t.add(S)}}}},minorSplitLine:function(e,t,n,r,i){var o=n.axis,a=n.getModel("minorSplitLine"),s=a.getModel("lineStyle"),l=r.coordinateSystem.getRect(),u=o.isHorizontal(),c=o.getMinorTicksCoords();if(c.length)for(var f=[],d=[],p=s.getLineStyle(),h=0;h<c.length;h++)for(var m=0;m<c[h].length;m++){var g=o.toGlobalCoord(c[h][m].coord);u?(f[0]=g,f[1]=l.y,d[0]=g,d[1]=l.y+l.height):(f[0]=l.x,f[1]=g,d[0]=l.x+l.width,d[1]=g);var v=new mn({anid:"minor_line_"+c[h][m].tickValue,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:d[0],y2:d[1]},style:p,silent:!0});ls(v.shape,p.lineWidth),t.add(v)}},splitArea:function(e,t,n,r,i){nB(e,t,n,r)},breakArea:function(e,t,n,r,i){var o=Os(),a=n.axis.scale;o&&a.type!=="ordinal"&&o.rectCoordBuildBreakAxis(t,e,n,r.coordinateSystem.getRect(),i)}},YE=(function(e){R(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="xAxis",t})(iB);var oB=(function(e){R(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=YE.type,n}return t.type="yAxis",t})(iB);var z9=(function(e){R(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="grid",n}return t.prototype.render=function(n,r){this.group.removeAll(),n.get("show")&&this.group.add(new $e({shape:n.coordinateSystem.getRect(),style:he({fill:n.get("backgroundColor")},n.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t})(on),aB={offset:0};function sB(e){e.registerComponentView(z9),e.registerComponentModel(p2),e.registerCoordinateSystem("cartesian2d",K2),bv(e,"x",Ev,aB),bv(e,"y",Ev,aB),e.registerComponentView(YE),e.registerComponentView(oB),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var j9=(function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e})(),G9=(function(e){R(t,e);function t(n){var r=e.call(this,n)||this;return r.type="pointer",r}return t.prototype.getDefaultShape=function(){return new j9},t.prototype.buildPath=function(n,r){var i=Math.cos,o=Math.sin,a=r.r,s=r.width,l=r.angle,u=r.x-i(l)*s*(s>=a/3?1:2),c=r.y-o(l)*s*(s>=a/3?1:2);l=r.angle-Math.PI/2,n.moveTo(u,c),n.lineTo(r.x+i(l)*s,r.y+o(l)*s),n.lineTo(r.x+i(r.angle)*a,r.y+o(r.angle)*a),n.lineTo(r.x-i(l)*s,r.y-o(l)*s),n.lineTo(u,c)},t})(ie),lB=G9;function $9(e,t){var n=e.get("center"),r=t.getWidth(),i=t.getHeight(),o=Math.min(r,i),a=we(n[0],t.getWidth()),s=we(n[1],t.getHeight()),l=we(e.get("radius"),o/2);return{cx:a,cy:s,r:l}}function Iv(e,t){var n=e==null?"":e+"";return t&&(U(t)?n=t.replace("{value}",n):Y(t)&&(n=t(e))),n}var W9=(function(e){R(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,i){this.group.removeAll();var o=n.get(["axisLine","lineStyle","color"]),a=$9(n,i);this._renderMain(n,r,i,o,a),this._data=n.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(n,r,i,o,a){var s=this.group,l=n.get("clockwise"),u=-n.get("startAngle")/180*Math.PI,c=-n.get("endAngle")/180*Math.PI,f=n.getModel("axisLine"),d=f.get("roundCap"),p=d?Nu:Pr,h=f.get("show"),m=f.getModel("lineStyle"),g=m.get("width"),v=[u,c];eS(v,!l),u=v[0],c=v[1];for(var y=c-u,_=u,x=[],D=0;h&&D<o.length;D++){var S=Math.min(Math.max(o[D][0],0),1);c=u+y*S;var C=new p({shape:{startAngle:_,endAngle:c,cx:a.cx,cy:a.cy,clockwise:l,r0:a.r-g,r:a.r},silent:!0});C.setStyle({fill:o[D][1]}),C.setStyle(m.getLineStyle(["color","width"])),x.push(C),_=c}x.reverse(),E(x,function(I){return s.add(I)});var w=function(I){if(I<=0)return o[0][1];var b;for(b=0;b<o.length;b++)if(o[b][0]>=I&&(b===0?0:o[b-1][0])<I)return o[b][1];return o[b-1][1]};this._renderTicks(n,r,i,w,a,u,c,l,g),this._renderTitleAndDetail(n,r,i,w,a),this._renderAnchor(n,a),this._renderPointer(n,r,i,w,a,u,c,l,g)},t.prototype._renderTicks=function(n,r,i,o,a,s,l,u,c){for(var f=this.group,d=a.cx,p=a.cy,h=a.r,m=+n.get("min"),g=+n.get("max"),v=n.getModel("splitLine"),y=n.getModel("axisTick"),_=n.getModel("axisLabel"),x=n.get("splitNumber"),D=y.get("splitNumber"),S=we(v.get("length"),h),C=we(y.get("length"),h),w=s,I=(l-s)/x,b=I/D,T=v.getModel("lineStyle").getLineStyle(),A=y.getModel("lineStyle").getLineStyle(),M=v.get("distance"),N,O,L=0;L<=x;L++){if(N=Math.cos(w),O=Math.sin(w),v.get("show")){var k=M?M+c:c,B=new mn({shape:{x1:N*(h-k)+d,y1:O*(h-k)+p,x2:N*(h-S-k)+d,y2:O*(h-S-k)+p},style:T,silent:!0});T.stroke==="auto"&&B.setStyle({stroke:o(L/x)}),f.add(B)}if(_.get("show")){var k=_.get("distance")+M,j=Iv(Ee(L*(g-m)/x+m,H1),_.get("formatter")),Z=o(L/x),H=N*(h-S-k)+d,K=O*(h-S-k)+p,J=_.get("rotate"),W=0;J==="radial"?(W=-w+2*Math.PI,W>Math.PI/2&&(W+=Math.PI)):J==="tangential"?W=-w-Math.PI/2:ge(J)&&(W=J*Math.PI/180),W===0?f.add(new We({style:ar(_,{text:j,x:H,y:K,verticalAlign:O<-.8?"top":O>.8?"bottom":"middle",align:N<-.4?"left":N>.4?"right":"center"},{inheritColor:Z}),silent:!0})):f.add(new We({style:ar(_,{text:j,x:H,y:K,verticalAlign:"middle",align:"center"},{inheritColor:Z}),silent:!0,originX:H,originY:K,rotation:W}))}if(y.get("show")&&L!==x){var k=y.get("distance");k=k?k+c:c;for(var de=0;de<=D;de++){N=Math.cos(w),O=Math.sin(w);var Ie=new mn({shape:{x1:N*(h-k)+d,y1:O*(h-k)+p,x2:N*(h-C-k)+d,y2:O*(h-C-k)+p},silent:!0,style:A});A.stroke==="auto"&&Ie.setStyle({stroke:o((L+de/D)/x)}),f.add(Ie),w+=b}w-=b}else w+=I}},t.prototype._renderPointer=function(n,r,i,o,a,s,l,u,c){var f=this.group,d=this._data,p=this._progressEls,h=[],m=n.get(["pointer","show"]),g=n.getModel("progress"),v=g.get("show"),y=n.getData(),_=y.mapDimension("value"),x=+n.get("min"),D=+n.get("max"),S=[x,D],C=[s,l];function w(b,T){var A=y.getItemModel(b),M=A.getModel("pointer"),N=we(M.get("width"),a.r),O=we(M.get("length"),a.r),L=n.get(["pointer","icon"]),k=M.get("offsetCenter"),B=we(k[0],a.r),j=we(k[1],a.r),Z=M.get("keepAspect"),H;return L?H=lr(L,B-N/2,j-O,N,O,null,Z):H=new lB({shape:{angle:-Math.PI/2,width:N,r:O,x:B,y:j}}),H.rotation=-(T+Math.PI/2),H.x=a.cx,H.y=a.cy,H}function I(b,T){var A=g.get("roundCap"),M=A?Nu:Pr,N=g.get("overlap"),O=N?g.get("width"):c/y.count(),L=N?a.r-O:a.r-(b+1)*O,k=N?a.r:a.r-b*O,B=new M({shape:{startAngle:s,endAngle:T,cx:a.cx,cy:a.cy,clockwise:u,r0:L,r:k}});return N&&(B.z2=Nr(y.get(_,b),[x,D],[100,0],!0)),B}(v||m)&&(y.diff(d).add(function(b){var T=y.get(_,b);if(m){var A=w(b,s);Tt(A,{rotation:-((isNaN(+T)?C[0]:Nr(T,S,C,!0))+Math.PI/2)},n),f.add(A),y.setItemGraphicEl(b,A)}if(v){var M=I(b,s),N=g.get("clip");Tt(M,{shape:{endAngle:Nr(T,S,C,N)}},n),f.add(M),rf(n.seriesIndex,y.dataType,b,M),h[b]=M}}).update(function(b,T){var A=y.get(_,b);if(m){var M=d.getItemGraphicEl(T),N=M?M.rotation:s,O=w(b,N);O.rotation=N,et(O,{rotation:-((isNaN(+A)?C[0]:Nr(A,S,C,!0))+Math.PI/2)},n),f.add(O),y.setItemGraphicEl(b,O)}if(v){var L=p[T],k=L?L.shape.endAngle:s,B=I(b,k),j=g.get("clip");et(B,{shape:{endAngle:Nr(A,S,C,j)}},n),f.add(B),rf(n.seriesIndex,y.dataType,b,B),h[b]=B}}).execute(),y.each(function(b){var T=y.getItemModel(b),A=T.getModel("emphasis"),M=A.get("focus"),N=A.get("blurScope"),O=A.get("disabled"),L=o(Nr(y.get(_,b),S,[0,1],!0));if(m){var k=y.getItemGraphicEl(b),B=y.getItemVisual(b,"style"),j=B.fill;if(k instanceof _t){var Z=k.style;k.useStyle(P({image:Z.image,x:Z.x,y:Z.y,width:Z.width,height:Z.height},B))}else k.useStyle(B),k.type!=="pointer"&&k.setColor(j);k.setStyle(T.getModel(["pointer","itemStyle"]).getItemStyle()),k.style.fill==="auto"&&k.setStyle("fill",L),k.z2EmphasisLift=0,Mo(k,T),ai(k,M,N,O)}if(v){var H=h[b];H.useStyle(y.getItemVisual(b,"style")),H.setStyle(T.getModel(["progress","itemStyle"]).getItemStyle()),H.style.fill==="auto"&&H.setStyle("fill",L),H.z2EmphasisLift=0,Mo(H,T),ai(H,M,N,O)}}),this._progressEls=h)},t.prototype._renderAnchor=function(n,r){var i=n.getModel("anchor"),o=i.get("show");if(o){var a=i.get("size"),s=i.get("icon"),l=i.get("offsetCenter"),u=i.get("keepAspect"),c=lr(s,r.cx-a/2+we(l[0],r.r),r.cy-a/2+we(l[1],r.r),a,a,null,u);c.z2=i.get("showAbove")?1:0,c.setStyle(i.getModel("itemStyle").getItemStyle()),this.group.add(c)}},t.prototype._renderTitleAndDetail=function(n,r,i,o,a){var s=this,l=n.getData(),u=l.mapDimension("value"),c=+n.get("min"),f=+n.get("max"),d=new ke,p=[],h=[],m=n.isAnimationEnabled(),g=n.get(["pointer","showAbove"]);l.diff(this._data).add(function(v){p[v]=new We({silent:!0}),h[v]=new We({silent:!0})}).update(function(v,y){p[v]=s._titleEls[y],h[v]=s._detailEls[y]}).execute(),l.each(function(v){var y=l.getItemModel(v),_=l.get(u,v),x=new ke,D=o(Nr(_,[c,f],[0,1],!0)),S=y.getModel("title");if(S.get("show")){var C=S.get("offsetCenter"),w=a.cx+we(C[0],a.r),I=a.cy+we(C[1],a.r),b=p[v];b.attr({z2:g?0:2,style:ar(S,{x:w,y:I,text:l.getName(v),align:"center",verticalAlign:"middle"},{inheritColor:D})}),x.add(b)}var T=y.getModel("detail");if(T.get("show")){var A=T.get("offsetCenter"),M=a.cx+we(A[0],a.r),N=a.cy+we(A[1],a.r),O=we(T.get("width"),a.r),L=we(T.get("height"),a.r),k=n.get(["progress","show"])?l.getItemVisual(v,"style").fill:D,b=h[v],B=T.get("formatter");b.attr({z2:g?0:2,style:ar(T,{x:M,y:N,text:Iv(_,B),width:isNaN(O)?null:O,height:isNaN(L)?null:L,align:"center",verticalAlign:"middle"},{inheritColor:k})}),Bm(b,{normal:T},_,function(Z){return Iv(Z,B)}),m&&rR(b,v,l,n,{getFormattedLabel:function(Z,H,K,J,W,de){return Iv(de?de.interpolatedValue:_,B)}}),x.add(b)}d.add(x)}),this.group.add(d),this._titleEls=p,this._detailEls=h},t.type="gauge",t})(an),uB=W9;var Y9=(function(e){R(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="itemStyle",n}return t.prototype.getInitialData=function(n,r){return UE(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,oe.color.neutral10]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:oe.color.axisTick,width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:oe.color.axisTickMinor,width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:oe.color.axisLabel,fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:oe.color.neutral00,borderWidth:0,borderColor:oe.color.theme[0]}},title:{show:!0,offsetCenter:[0,"20%"],color:oe.color.secondary,fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:oe.color.transparent,borderWidth:0,borderColor:oe.color.neutral40,width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:oe.color.primary,fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t})(Bn),cB=Y9;function qE(e){e.registerChartView(uB),e.registerSeriesModel(cB)}var pB={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},fB=X(pB),Lwe=Mn(er,function(e,t){return e[t]=1,e},{}),kwe=er.join(", "),td=["","style","shape","extra"],Ru=re();function XE(e,t,n,r,i){var o=e+"Animation",a=gf(e,r,i)||{},s=Ru(t).userDuring;return a.duration>0&&(a.during=s?be(Q9,{el:t,userDuring:s}):null,a.setToFinal=!0,a.scope=e),P(a,n[o]),a}function Mv(e,t,n,r){r=r||{};var i=r.dataIndex,o=r.isInit,a=r.clearStyle,s=n.isAnimationEnabled(),l=Ru(e),u=t.style;l.userDuring=t.during;var c={},f={};if(e7(e,t,f),e.type==="compound")for(var d=e.shape.paths,p=t.shape.paths,h=0;h<p.length;h++){var m=p[h];ZE("shape",m,d[h])}else ZE("shape",t,f),ZE("extra",t,f);if(!o&&s&&(J9(e,t,c),dB("shape",e,t,c),dB("extra",e,t,c),t7(e,t,u,c)),f.style=u,q9(e,f,a),X9(e,t),s)if(o){var g={};E(td,function(y){var _=y?t[y]:t;_&&_.enterFrom&&(y&&(g[y]=g[y]||{}),P(y?g[y]:g,_.enterFrom))});var v=XE("enter",e,t,n,i);v.duration>0&&e.animateFrom(g,v)}else Z9(e,t,i||0,n,c);KE(e,t),u?e.dirty():e.markRedraw()}function KE(e,t){for(var n=Ru(e).leaveToProps,r=0;r<td.length;r++){var i=td[r],o=i?t[i]:t;o&&o.leaveTo&&(n||(n=Ru(e).leaveToProps={}),i&&(n[i]=n[i]||{}),P(i?n[i]:n,o.leaveTo))}}function hB(e,t,n,r){if(e){var i=e.parent,o=Ru(e).leaveToProps;if(o){var a=XE("update",e,t,n,0);a.done=function(){i&&i.remove(e),r&&r()},e.animateTo(o,a)}else i&&i.remove(e),r&&r()}}function $o(e){return e==="all"}function q9(e,t,n){var r=t.style;if(!e.isGroup&&r){if(n){e.useStyle({});for(var i=e.animators,o=0;o<i.length;o++){var a=i[o];a.targetName==="style"&&a.changeTarget(e.style)}}e.setStyle(r)}t&&(t.style=null,t&&e.attr(t),t.style=r)}function Z9(e,t,n,r,i){if(i){var o=XE("update",e,t,r,n);o.duration>0&&e.animateFrom(i,o)}}function X9(e,t){Q(t,"silent")&&(e.silent=t.silent),Q(t,"ignore")&&(e.ignore=t.ignore),e instanceof hn&&Q(t,"invisible")&&(e.invisible=t.invisible),e instanceof ie&&Q(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var ui={},K9={setTransform:function(e,t){return ui.el[e]=t,this},getTransform:function(e){return ui.el[e]},setShape:function(e,t){var n=ui.el,r=n.shape||(n.shape={});return r[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=ui.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=ui.el,r=n.style;return r&&(r[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var t=ui.el.style;if(t)return t[e]},setExtra:function(e,t){var n=ui.el.extra||(ui.el.extra={});return n[e]=t,this},getExtra:function(e){var t=ui.el.extra;if(t)return t[e]}};function Q9(){var e=this,t=e.el;if(t){var n=Ru(t).userDuring,r=e.userDuring;if(n!==r){e.el=e.userDuring=null;return}ui.el=t,r(K9)}}function dB(e,t,n,r){var i=n[e];if(i){var o=t[e],a;if(o){var s=n.transition,l=i.transition;if(l)if(!a&&(a=r[e]={}),$o(l))P(a,o);else for(var u=Ge(l),c=0;c<u.length;c++){var f=u[c],d=o[f];a[f]=d}else if($o(s)||se(s,e)>=0){!a&&(a=r[e]={});for(var p=X(o),c=0;c<p.length;c++){var f=p[c],d=o[f];n7(i[f],d)&&(a[f]=d)}}}}}function ZE(e,t,n){var r=t[e];if(r)for(var i=n[e]={},o=X(r),a=0;a<o.length;a++){var s=o[a];i[s]=Fa(r[s])}}function J9(e,t,n){for(var r=t.transition,i=$o(r)?er:Ge(r||[]),o=0;o<i.length;o++){var a=i[o];if(!(a==="style"||a==="shape"||a==="extra")){var s=e[a];n[a]=s}}}function e7(e,t,n){for(var r=0;r<fB.length;r++){var i=fB[r],o=pB[i],a=t[i];a&&(n[o[0]]=a[0],n[o[1]]=a[1])}for(var r=0;r<er.length;r++){var s=er[r];t[s]!=null&&(n[s]=t[s])}}function t7(e,t,n,r){if(n){var i=e.style,o;if(i){var a=n.transition,s=t.transition;if(a&&!$o(a)){var l=Ge(a);!o&&(o=r.style={});for(var u=0;u<l.length;u++){var c=l[u],f=i[c];o[c]=f}}else if(e.getAnimationStyleProps&&($o(s)||$o(a)||se(s,"style")>=0)){var d=e.getAnimationStyleProps(),p=d?d.style:null;if(p){!o&&(o=r.style={});for(var h=X(n),u=0;u<h.length;u++){var c=h[u];if(p[c]){var f=i[c];o[c]=f}}}}}}}function n7(e,t){return ct(e)?e!==t:e!=null&&isFinite(e)}var mB=re(),r7=["percent","easing","shape","style","extra"];function gB(e){e.stopAnimation("keyframe"),e.attr(mB(e))}function Av(e,t,n){if(!(!n.isAnimationEnabled()||!t)){if(F(t)){E(t,function(s){Av(e,s,n)});return}var r=t.keyframes,i=t.duration;if(n&&i==null){var o=gf("enter",n,0);i=o&&o.duration}if(!(!r||!i)){var a=mB(e);E(td,function(s){if(!(s&&!e[s])){var l,u=!1;r.sort(function(c,f){return c.percent-f.percent}),E(r,function(c){var f=e.animators,d=s?c[s]:c;if(d){var p=X(d);if(s||(p=qe(p,function(g){return se(r7,g)<0})),!!p.length){l||(l=e.animate(s,t.loop,!0),l.scope="keyframe");for(var h=0;h<f.length;h++)f[h]!==l&&f[h].targetName===l.targetName&&f[h].stopTracks(p);s&&(a[s]=a[s]||{});var m=s?a[s]:a;E(p,function(g){m[g]=((s?e[s]:e)||{})[g]}),l.whenWithKeys(i*c.percent,d,p,c.easing)}}}),l&&l.delay(t.delay||0).duration(i).start(t.easing)}})}}}var Ls=re(),vB=ae,QE=be,i7=(function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,n,r,i){var o=n.get("value"),a=n.get("status");if(this._axisModel=t,this._axisPointerModel=n,this._api=r,!(!i&&this._lastValue===o&&this._lastStatus===a)){this._lastValue=o,this._lastStatus=a;var s=this._group,l=this._handle;if(!a||a==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,o,t,n,r);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(r),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(t,n);if(!s)s=this._group=new ke,this.createPointerEl(s,u,t,n),this.createLabelEl(s,u,t,n),r.getZr().add(s);else{var d=vt(yB,n,f);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,n)}xB(s,n,!0),this._renderHandle(o)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,n){var r=n.get("animation"),i=t.axis,o=i.type==="category",a=n.get("snap");if(!a&&!o)return!1;if(r==="auto"||r==null){var s=this.animationThreshold;if(o&&Ur(i).w>s)return!0;if(a){var l=wv(t).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return r===!0},e.prototype.makeElOption=function(t,n,r,i,o){},e.prototype.createPointerEl=function(t,n,r,i){var o=n.pointer;if(o){var a=Ls(t).pointerEl=new qt[o.type](vB(n.pointer));t.add(a)}},e.prototype.createLabelEl=function(t,n,r,i){if(n.label){var o=Ls(t).labelEl=new We(vB(n.label));t.add(o),_B(o,i)}},e.prototype.updatePointerEl=function(t,n,r){var i=Ls(t).pointerEl;i&&n.pointer&&(i.setStyle(n.pointer.style),r(i,{shape:n.pointer.shape}))},e.prototype.updateLabelEl=function(t,n,r,i){var o=Ls(t).labelEl;o&&(o.setStyle(n.label.style),r(o,{x:n.label.x,y:n.label.y}),_B(o,i))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var n=this._axisPointerModel,r=this._api.getZr(),i=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||a==="hide"){i&&r.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=VS(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){yh(u.event)},onmousedown:QE(this._onHandleDragMove,this,0,0),drift:QE(this._onHandleDragMove,this),ondragend:QE(this._onHandleDragEnd,this)}),r.add(i)),xB(i,n,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=o.get("size");F(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,wg(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,n){yB(this._axisPointerModel,!n&&this._moveAnimation,this._handle,JE(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,n){var r=this._handle;if(r){this._dragging=!0;var i=this.updateHandleTransform(JE(r),[t,n],this._axisModel,this._axisPointerModel);this._payloadInfo=i,r.stopAnimation(),r.attr(JE(i)),Ls(r).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var n=this._payloadInfo,r=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:n.cursorPoint[0],y:n.cursorPoint[1],tooltipOption:n.tooltipOption,axesInfo:[{axisDim:r.axis.dim,axisIndex:r.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var n=this._axisPointerModel.get("value");this._moveHandleToValue(n),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var n=t.getZr(),r=this._group,i=this._handle;n&&r&&(this._lastGraphicKey=null,r&&n.remove(r),i&&n.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),If(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,n,r){return r=r||0,{x:t[r],y:t[1-r],width:n[r],height:n[1-r]}},e})();function yB(e,t,n,r){DB(Ls(n).lastProp,r)||(Ls(n).lastProp=r,t?et(n,r,e):(n.stopAnimation(),n.attr(r)))}function DB(e,t){if(z(e)&&z(t)){var n=!0;return E(t,function(r,i){n=n&&DB(e[i],r)}),!!n}else return e===t}function _B(e,t){e[t.get(["label","show"])?"show":"hide"]()}function JE(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function xB(e,t,n){var r=t.get("z"),i=t.get("zlevel");e&&e.traverse(function(o){o.type!=="group"&&(r!=null&&(o.z=r),i!=null&&(o.zlevel=i),o.silent=n)})}var SB=i7;function CB(e){var t=e.get("type"),n=e.getModel(t+"Style"),r;return t==="line"?(r=n.getLineStyle(),r.fill=null):t==="shadow"&&(r=n.getAreaStyle(),r.stroke=null),r}function o7(e,t,n,r,i){var o=n.get("value"),a=eb(o,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=ru(s.get("padding")||0),u=s.getFont(),c=jh(a,u),f=i.position,d=c.width+l[1]+l[3],p=c.height+l[0]+l[2],h=i.align;h==="right"&&(f[0]-=d),h==="center"&&(f[0]-=d/2);var m=i.verticalAlign;m==="bottom"&&(f[1]-=p),m==="middle"&&(f[1]-=p/2),a7(f,d,p,r);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),e.label={x:f[0],y:f[1],style:ar(s,{text:a,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function a7(e,t,n,r){var i=r.getWidth(),o=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,o)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function eb(e,t,n,r,i){e=t.scale.parse(e);var o=t.scale.getLabel({value:e},{precision:i.precision}),a=i.formatter;if(a){var s={value:wu(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};E(r,function(l){var u=n.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),U(a)?o=a.replace("{value}",o):Y(a)&&(o=a(s))}return o}function tb(e,t,n){var r=Jt();return bl(r,r,n.rotation),Nc(r,r,n.position),Pm([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function EB(e,t,n,r,i,o){var a=xv.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),o7(t,r,i,o,{position:tb(r.axis,e,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function bB(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function wB(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function TB(e,t,n){return Ur(e,{fromStat:{sers:V(t,function(r){return n.getSeriesByIndex(r.seriesIndex)})},min:1}).w}function IB(e,t,n){return[De(it(t[0],t[1]),e-n/2),it(e+n/2,De(t[0],t[1]))]}var s7=(function(e){R(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(n,r,i,o,a){var s=i.axis,l=s.grid,u=o.get("type"),c=s.getGlobalExtent(),f=AB(l,s).getOtherAxis(s).getGlobalExtent(),d=s.toGlobalCoord(s.dataToCoord(r,!0));if(u&&u!=="none"){var p=CB(o),h=l7[u](s,d,c,f,o.get("seriesDataIndices"),o.ecModel);h.style=p,n.graphicKey=h.type,n.pointer=h}var m=Kf(l.getRect(),i);EB(r,n,m,i,o,a)},t.prototype.getHandleTransform=function(n,r,i){var o=Kf(r.axis.grid.getRect(),r,{labelInside:!1});o.labelMargin=i.get(["handle","margin"]);var a=tb(r.axis,n,o);return{x:a[0],y:a[1],rotation:o.rotation+(o.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(n,r,i,o){var a=i.axis,s=a.grid,l=a.getGlobalExtent(!0),u=AB(s,a).getOtherAxis(a).getGlobalExtent(),c=a.dim==="x"?0:1,f=[n.x,n.y];f[c]+=r[c],f[c]=it(l[1],f[c]),f[c]=De(l[0],f[c]);var d=(u[1]+u[0])/2,p=[d,d];p[c]=f[c];var h=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:n.rotation,cursorPoint:p,tooltipOption:h[c]}},t})(SB);function AB(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var l7={line:function(e,t,n,r){var i=bB([t,r[0]],[t,r[1]],NB(e));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(e,t,n,r,i,o){var a=TB(e,i,o),s=r[1]-r[0],l=IB(t,n,a),u=l[0],c=l[1];return{type:"Rect",shape:wB([u,r[0]],[c-u,s],NB(e))}}};function NB(e){return e.dim==="x"?0:1}var OB=s7;var u7=(function(e){R(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:oe.color.border,width:1,type:"dashed"},shadowStyle:{color:oe.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:oe.color.neutral00,padding:[5,7,5,7],backgroundColor:oe.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:oe.color.accent40,throttle:40}},t})(Ve),RB=u7;var qi=re(),c7=E;function Nv(e,t,n){if(!ce.node){var r=t.getZr();qi(r).records||(qi(r).records={}),f7(r,t);var i=qi(r).records[e]||(qi(r).records[e]={});i.handler=n}}function f7(e,t){if(qi(e).initialized)return;qi(e).initialized=!0,n("click",vt(nb,"click")),n("mousemove",vt(nb,"mousemove")),n("mousewheel",vt(nb,"mousewheel")),n("globalout",p7);function n(r,i){e.on(r,function(o){var a=h7(t);c7(qi(e).records,function(s){s&&i(s,o,a.dispatchAction)}),d7(a.pendings,t)})}}function d7(e,t){var n=e.showTip.length,r=e.hideTip.length,i;n?i=e.showTip[n-1]:r&&(i=e.hideTip[r-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function p7(e,t,n){e.handler("leave",null,n)}function nb(e,t,n,r){t.handler(e,n,r)}function h7(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function nd(e,t){if(!ce.node){var n=t.getZr(),r=(qi(n).records||{})[e];r&&(qi(n).records[e]=null)}}var m7=(function(e){R(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,i){var o=r.getComponent("tooltip"),a=n.get("triggerOn")||o&&o.get("triggerOn")||"mousemove|click|mousewheel";Nv("axisPointer",i,function(s,l,u){a!=="none"&&(s==="leave"||a.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(n,r){nd("axisPointer",r)},t.prototype.dispose=function(n,r){nd("axisPointer",r)},t.type="axisPointer",t})(on),LB=m7;function rd(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var o=i.getData(),a=tr(o,e);if(a==null||a<0||F(a))return{point:[]};var s=o.getItemGraphicEl(a),l=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,d=u.dim,p=f==="x"||f==="radius"?1:0,h=o.mapDimension(d),m=[];m[p]=o.get(h,a),m[1-p]=o.get(o.getCalculationInfo("stackResultDimension"),a),n=l.dataToPoint(m)||[]}else n=l.dataToPoint(o.getValues(V(l.dimensions,function(v){return o.mapDimension(v)}),a))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),n=[g.x+g.width/2,g.y+g.height/2]}return{point:n,el:s}}var kB=re();function rb(e,t,n){var r=e.currTrigger,i=[e.x,e.y],o=e,a=e.dispatchAction||be(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){Ov(i)&&(i=rd({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var l=Ov(i),u=o.axesInfo,c=s.axesInfo,f=r==="leave"||Ov(i),d={},p={},h={list:[],map:{}},m={showPointer:vt(v7,p),showTooltip:vt(y7,h)};E(s.coordSysMap,function(v,y){var _=l||v.containPoint(i);E(s.coordSysAxesInfo[y],function(x,D){var S=x.axis,C=S7(u,x);if(!f&&_&&(!u||C)){var w=C&&C.value;w==null&&!l&&(w=S.pointToData(i)),w!=null&&FB(x,w,m,!1,d)}})});var g={};return E(c,function(v,y){var _=v.linkGroup;_&&!p[y]&&E(_.axesInfo,function(x,D){var S=p[D];if(x!==v&&S){var C=S.value;_.mapper&&(C=v.axis.scale.parse(_.mapper(C,BB(x),BB(v)))),g[v.key]=C}})}),E(g,function(v,y){FB(c[y],v,m,!0,d)}),_7(p,c,d),x7(h,i,e,a),D7(c,a,n),d}}function FB(e,t,n,r,i){var o=e.axis;if(!(o.scale.isBlank()||!o.containData(t))){if(!e.involveSeries){n.showPointer(e,t);return}var a=g7(t,e),s=a.payloadBatch,l=a.snapToValue;s[0]&&i.seriesIndex==null&&P(i,s[0]),!r&&e.snap&&o.containData(l)&&l!=null&&(t=l),n.showPointer(e,t,s),n.showTooltip(e,a,l)}}function g7(e,t){var n=t.axis,r=n.dim,i=e,o=[],a=Number.MAX_VALUE,s=-1;return E(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(r),f,d;if(l.getAxisTooltipData){var p=l.getAxisTooltipData(c,e,n);d=p.dataIndices,f=p.nestestValue}else{if(d=l.indicesOfNearest(r,c[0],e,n.type==="category"?.5:null),!d.length)return;f=l.getData().get(c[0],d[0])}if(yt(f)){var h=e-f,m=Math.abs(h);m<=a&&((m<a||h>=0&&s<0)&&(a=m,s=h,i=f,o.length=0),E(d,function(g){o.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:o,snapToValue:i}}function v7(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function y7(e,t,n,r){var i=n.payloadBatch,o=t.axis,a=o.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var l=t.coordSys.model,u=Ou(l),c=e.map[u];c||(c=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function _7(e,t,n){var r=n.axesInfo=[];E(t,function(i,o){var a=i.axisPointerModel.option,s=e[o];s?(!i.useHandle&&(a.status="show"),a.value=s.value,a.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(a.status="hide"),a.status==="show"&&r.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:a.value})})}function x7(e,t,n,r){if(Ov(t)||!e.list.length){r({type:"hideTip"});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function D7(e,t,n){var r=n.getZr(),i="axisPointerLastHighlights",o=kB(r)[i]||{},a=kB(r)[i]={};E(e,function(c,f){var d=c.axisPointerModel.option;d.status==="show"&&c.triggerEmphasis&&E(d.seriesDataIndices,function(p){a[p.seriesIndex+"|"+p.dataIndex]=p})});var s=[],l=[];function u(c){return{seriesIndex:c.seriesIndex,dataIndex:c.dataIndex}}E(o,function(c,f){!a[f]&&l.push(u(c))}),E(a,function(c,f){!o[f]&&s.push(u(c))}),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function S7(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function BB(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=t.componentIndex,n.axisName=n[r+"AxisName"]=t.name,n.axisId=n[r+"AxisId"]=t.id,n}function Ov(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function Rv(e){Tv.registerAxisPointerClass("CartesianAxisPointer",OB),e.registerComponentModel(RB),e.registerComponentView(LB),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var n=t.axisPointer.link;n&&!F(n)&&(t.axisPointer.link=[n])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(t,n){t.getComponent("axisPointer").coordSysAxesInfo=Q2(t,n)}}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},rb)}function ib(e){Vr(sB),Vr(Rv)}function C7(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),t.parentId==null){var r=t.parentOption;r?t.parentId=r.id:n&&(t.parentId=n.parentId)}t.parentOption=null}function VB(e,t){var n;return E(t,function(r){e[r]!=null&&e[r]!=="auto"&&(n=!0)}),n}function E7(e,t,n){var r=P({},n),i=e[t],o=n.$action||"merge";if(o==="merge")if(i){if(0)var a;Ne(i,r,!0),Fn(i,r,{ignoreSize:!0}),uC(n,i),Pv(n,i),Pv(n,i,"shape"),Pv(n,i,"style"),Pv(n,i,"extra"),n.clipPath=i.clipPath}else e[t]=r;else o==="replace"?e[t]=r:o==="remove"&&i&&(e[t]=null)}var UB=["transition","enterFrom","leaveTo"],b7=UB.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Pv(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),!(!e||!t))for(var r=n?UB:b7,i=0;i<r.length;i++){var o=r[i];e[o]==null&&t[o]!=null&&(e[o]=t[o])}}function w7(e,t){if(e&&(e.hv=t.hv=[VB(t,["left","right"]),VB(t,["top","bottom"])],e.type==="group")){var n=e,r=t;n.width==null&&(n.width=r.width=0),n.height==null&&(n.height=r.height=0)}}var HB=(function(e){R(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.preventAutoZ=!0,n}return t.prototype.mergeOption=function(n,r){var i=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,n,r),this.option.elements=i},t.prototype.optionUpdated=function(n,r){var i=this.option,o=(r?i:n).elements,a=i.elements=r?[]:i.elements,s=[];this._flatten(o,s,null);var l=Kh(a,s,"normalMerge"),u=this._elOptionsToUpdate=[];E(l,function(c,f){var d=c.newOption;d&&(u.push(d),C7(c,d),E7(a,f,d),w7(a[f],d))},this),i.elements=qe(a,function(c){return c&&delete c.$action,c!=null})},t.prototype._flatten=function(n,r,i){E(n,function(o){if(o){i&&(o.parentOption=i),r.push(o);var a=o.children;a&&a.length&&this._flatten(a,r,o),delete o.children}},this)},t.prototype.useElOptionsToUpdate=function(){var n=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,n},t.type="graphic",t.defaultOption={elements:[]},t})(Ve);var zB={path:null,compoundPath:null,group:ke,image:_t,text:We},fr=re(),$B=(function(e){R(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){this._elMap=q()},t.prototype.render=function(n,r,i){n!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=n,this._updateElements(n),this._relocate(n,i)},t.prototype._updateElements=function(n){var r=n.useElOptionsToUpdate();if(r){var i=this._elMap,o=this.group,a=n.get("z"),s=n.get("zlevel");E(r,function(l){var u=Ot(l.id,null),c=u!=null?i.get(u):null,f=Ot(l.parentId,null),d=f!=null?i.get(f):o,p=l.type,h=l.style;p==="text"&&h&&l.hv&&l.hv[1]&&(h.textVerticalAlign=h.textBaseline=h.verticalAlign=h.align=null);var m=l.textContent,g=l.textConfig;if(h&&HF(h,p,!!g,!!m)){var v=zF(h,p,!0);!g&&v.textConfig&&(g=l.textConfig=v.textConfig),!m&&v.textContent&&(m=v.textContent)}var y=T7(l),_=l.$action||"merge",x=_==="merge",D=_==="replace";if(x){var S=!c,C=c;S?C=jB(u,d,l.type,i):(C&&(fr(C).isNew=!1),gB(C)),C&&(Mv(C,y,n,{isInit:S}),GB(C,l,a,s))}else if(D){Lv(c,l,i,n);var w=jB(u,d,l.type,i);w&&(Mv(w,y,n,{isInit:!0}),GB(w,l,a,s))}else _==="remove"&&(KE(c,l),Lv(c,l,i,n));var I=i.get(u);if(I&&m)if(x){var b=I.getTextContent();b?b.attr(m):I.setTextContent(new We(m))}else D&&I.setTextContent(new We(m));if(I){var T=l.clipPath;if(T){var A=T.type,M=void 0,S=!1;if(x){var N=I.getClipPath();S=!N||fr(N).type!==A,M=S?ob(A):N}else D&&(S=!0,M=ob(A));I.setClipPath(M),Mv(M,T,n,{isInit:S}),Av(M,T.keyframeAnimation,n)}var O=fr(I);I.setTextConfig(g),O.option=l,I7(I,n,l),Kl({el:I,componentModel:n,itemName:I.name,itemTooltipOption:l.tooltip}),Av(I,l.keyframeAnimation,n)}})}},t.prototype._relocate=function(n,r){for(var i=n.option.elements,o=this.group,a=this._elMap,s=r.getWidth(),l=r.getHeight(),u=["x","y"],c=0;c<i.length;c++){var f=i[c],d=Ot(f.id,null),p=d!=null?a.get(d):null;if(!(!p||!p.isGroup)){var h=p.parent,m=h===o,g=fr(p),v=fr(h);g.width=we(g.option.width,m?s:v.width)||0,g.height=we(g.option.height,m?l:v.height)||0}}for(var c=i.length-1;c>=0;c--){var f=i[c],d=Ot(f.id,null),p=d!=null?a.get(d):null;if(p){var h=p.parent,v=fr(h),y=h===o?{width:s,height:l}:{width:v.width,height:v.height},_={},x=AR(p,f,y,null,{hv:f.hv,boundingMode:f.bounding},_);if(!fr(p).isNew&&x){for(var D=f.transition,S={},C=0;C<u.length;C++){var w=u[C],I=_[w];D&&($o(D)||se(D,w)>=0)?S[w]=I:p[w]=I}et(p,S,n,0)}else p.attr(_)}}},t.prototype._clear=function(){var n=this,r=this._elMap;r.each(function(i){Lv(i,fr(i).option,r,n._lastGraphicModel)}),this._elMap=q()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t})(on);function ob(e){var t=Q(zB,e)?zB[e]:kS(e),n=new t({});return fr(n).type=e,n}function jB(e,t,n,r){var i=ob(n);return t.add(i),r.set(e,i),fr(i).id=e,fr(i).isNew=!0,i}function Lv(e,t,n,r){var i=e&&e.parent;i&&(e.type==="group"&&e.traverse(function(o){Lv(o,t,n,r)}),hB(e,t,r),n.removeKey(fr(e).id))}function GB(e,t,n,r){e.isGroup||E([["cursor",hn.prototype.cursor],["zlevel",r||0],["z",n||0],["z2",0]],function(i){var o=i[0];Q(t,o)?e[o]=G(t[o],i[1]):e[o]==null&&(e[o]=i[1])}),E(X(t),function(i){if(i.indexOf("on")===0){var o=t[i];e[i]=Y(o)?o:null}}),Q(t,"draggable")&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function T7(e){return e=P({},e),E(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(lC),function(t){delete e[t]}),e}function I7(e,t,n){var r=Te(e).eventData;!e.silent&&!e.ignore&&!r&&(r=Te(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),r&&(r.info=n.info)}function ab(e){e.registerComponentModel(HB),e.registerComponentView($B),e.registerPreprocessor(function(t){var n=t.graphic;F(n)?!n[0]||!n[0].elements?t.graphic=[{elements:n}]:t.graphic=[t.graphic[0]]:n&&!n.elements&&(t.graphic=[{elements:[n]}])})}var M7=(function(e){R(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="tooltip",t.dependencies=["axisPointer"],t.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:oe.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:oe.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:oe.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:oe.color.tertiary,fontSize:14}},t})(Ve),WB=M7;function kv(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function YB(e){if(ce.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}}var sb=YB(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),qB=YB(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function lb(e,t){if(!e)return t;t=eg(t,!0);var n=e.indexOf(t);return e=n===-1?t:"-"+e.slice(0,n)+"-"+t,e.toLowerCase()}function ZB(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?t?n[t]:n:null}var A7=lb(qB,"transition"),ub=lb(sb,"transform"),N7="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(ce.transform3dSupported?"will-change:transform;":"");function O7(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function R7(e,t,n){if(!U(n)||n==="inside")return"";var r=e.get("backgroundColor"),i=e.get("borderWidth");t=kr(t);var o=O7(n),a=Math.max(Math.round(i)*1.5,6),s="",l=ub+":",u;se(["left","right"],o)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=o==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=o==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=a+i,d=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),p=Math.round(((d-Math.SQRT2*i)/2+Math.SQRT2*i-(d-f)/2)*100)/100;s+=";"+o+":-"+p+"px";var h=t+" solid "+i+"px;",m=["position:absolute;width:"+a+"px;height:"+a+"px;z-index:-1;",s+";"+l+";","border-bottom:"+h,"border-right:"+h,"background-color:"+r+";"];return'<div style="'+m.join("")+'"></div>'}function P7(e,t,n){var r="cubic-bezier(0.23,1,0.32,1)",i="",o="";return n&&(i=" "+e/2+"s "+r,o="opacity"+i+",visibility"+i),t||(i=" "+e+"s "+r,o+=(o.length?",":"")+(ce.transformSupported?""+ub+i:",left"+i+",top"+i)),A7+":"+o}function XB(e,t,n){var r=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!ce.transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var o=ce.transform3dSupported,a="translate"+(o?"3d":"")+"("+r+","+i+(o?",0":"")+")";return n?"top:0;left:0;"+ub+":"+a+";":[["top",0],["left",0],[sb,a]]}function L7(e){var t=[],n=e.get("fontSize"),r=e.getTextColor();r&&t.push("color:"+r),t.push("font:"+e.getFont());var i=G(e.get("lineHeight"),Math.round(n*3/2));n&&t.push("line-height:"+i+"px");var o=e.get("textShadowColor"),a=e.get("textShadowBlur")||0,s=e.get("textShadowOffsetX")||0,l=e.get("textShadowOffsetY")||0;return o&&a&&t.push("text-shadow:"+s+"px "+l+"px "+a+"px "+o),E(["decoration","align"],function(u){var c=e.get(u);c&&t.push("text-"+u+":"+c)}),t.join(";")}function k7(e,t,n,r){var i=[],o=e.get("transitionDuration"),a=e.get("backgroundColor"),s=e.get("shadowBlur"),l=e.get("shadowColor"),u=e.get("shadowOffsetX"),c=e.get("shadowOffsetY"),f=e.getModel("textStyle"),d=Dg(e,"html"),p=u+"px "+c+"px "+s+"px "+l;return i.push("box-shadow:"+p),t&&o>0&&i.push(P7(o,n,r)),a&&i.push("background-color:"+a),E(["width","color","radius"],function(h){var m="border-"+h,g=eg(m),v=e.get(g);v!=null&&i.push(m+":"+v+(h==="color"?"":"px"))}),i.push(L7(f)),d!=null&&i.push("padding:"+ru(d).join("px ")+"px"),i.join(";")+";"}function KB(e,t,n,r,i){var o=t&&t.painter;if(n){var a=o&&o.getViewportRoot();a&&DA(e,a,n,r,i)}else{e[0]=r,e[1]=i;var s=o&&o.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var F7=(function(){function e(t,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,ce.wxa)return null;var r=document.createElement("div");r.domBelongToZr=!0,this.el=r;var i=this._zr=t.getZr(),o=n.appendTo,a=o&&(U(o)?document.querySelector(o):yl(o)?o:Y(o)&&o(t.getDom()));KB(this._styleCoord,i,a,t.getWidth()/2,t.getHeight()/2),(a||t.getDom()).appendChild(r),this._api=t,this._container=a;var s=this;r.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},r.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,c=i.painter.getViewportRoot();dn(c,l,!0),u.dispatch("mousemove",l)}},r.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){if(!this._container){var n=this._api.getDom(),r=ZB(n,"position"),i=n.style;i.position!=="absolute"&&r!=="absolute"&&(i.position="relative")}var o=t.get("alwaysShowContent");o&&this._moveIfResized(),this._alwaysShowContent=o,this._enableDisplayTransition=t.get("displayTransition")&&t.get("transitionDuration")>0,this.el.className=t.get("className")||""},e.prototype.show=function(t,n){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var r=this.el,i=r.style,o=this._styleCoord;r.innerHTML?i.cssText=N7+k7(t,!this._firstShow,this._longHide,this._enableDisplayTransition)+XB(o[0],o[1],!0)+("border-color:"+kr(n)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,n,r,i,o){var a=this.el;if(t==null){a.innerHTML="";return}var s="";if(U(o)&&r.get("trigger")==="item"&&!kv(r)&&(s=R7(r,i,o)),U(t))a.innerHTML=t+s;else if(t){a.innerHTML="",F(t)||(t=[t]);for(var l=0;l<t.length;l++)yl(t[l])&&t[l].parentNode!==a&&a.appendChild(t[l]);if(s&&a.childNodes.length){var u=document.createElement("div");u.innerHTML=s,a.appendChild(u)}}},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},e.prototype.moveTo=function(t,n){if(this.el){var r=this._styleCoord;if(KB(r,this._zr,this._container,t,n),r[0]!=null&&r[1]!=null){var i=this.el.style,o=XB(r[0],r[1]);E(o,function(a){i[a[0]]=a[1]})}}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],n=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),n*this._zr.getHeight())},e.prototype.hide=function(){var t=this,n=this.el.style;this._enableDisplayTransition?(n.visibility="hidden",n.opacity="0"):n.display="none",ce.transform3dSupported&&(n.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(be(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this._zr;SA(t&&t.painter&&t.painter.getViewportRoot(),this._container);var n=this.el;if(n){n.onmouseenter=n.onmousemove=n.onmouseleave=null;var r=n.parentNode;r&&r.removeChild(n)}this.el=this._container=null},e})(),QB=F7;var B7=(function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),eV(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return e.prototype.update=function(t){var n=t.get("alwaysShowContent");n&&this._moveIfResized(),this._alwaysShowContent=n},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(t,n,r,i,o){var a=this;z(t)&&Nt(""),this.el&&this._zr.remove(this.el);var s=r.getModel("textStyle");this.el=new We({style:{rich:n.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:r.get(["textStyle","color"]),padding:Dg(r,"richText"),verticalAlign:"top",align:"left"},z:r.get("z")}),E(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){a.el.style[u]=r.get(u)}),E(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){a.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el,n=this.el.getBoundingRect(),r=JB(t.style);return[n.width+r.left+r.right,n.height+r.top+r.bottom]},e.prototype.moveTo=function(t,n){var r=this.el;if(r){var i=this._styleCoord;eV(i,this._zr,t,n),t=i[0],n=i[1];var o=r.style,a=Wo(o.borderWidth||0),s=JB(o);r.x=t+a+s.left,r.y=n+a+s.top,r.markRedraw()}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],n=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),n*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(be(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e})();function Wo(e){return Math.max(0,e)}function JB(e){var t=Wo(e.shadowBlur||0),n=Wo(e.shadowOffsetX||0),r=Wo(e.shadowOffsetY||0);return{left:Wo(t-n),right:Wo(t+n),top:Wo(t-r),bottom:Wo(t+r)}}function eV(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var tV=B7;var V7=new $e({shape:{x:-1,y:-1,width:2,height:2}}),U7=(function(e){R(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r){if(!(ce.node||!r.getDom())){var i=n.getComponent("tooltip"),o=this._renderMode=eN(i.get("renderMode"));this._tooltipContent=o==="richText"?new tV(r):new QB(r,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},t.prototype.render=function(n,r,i){if(!(ce.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=n,this._ecModel=r,this._api=i;var o=this._tooltipContent;o.update(n),o.setEnterable(n.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&n.get("transitionDuration")?wg(this,"_updatePosition",50,"fixRate"):If(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var n=this._tooltipModel,r=n.get("triggerOn");Nv("itemTooltip",this._api,be(function(i,o,a){r!=="none"&&(r.indexOf(i)>=0?this._tryShow(o,a):i==="leave"&&this._hide(a))},this))},t.prototype._keepShow=function(){var n=this._tooltipModel,r=this._ecModel,i=this._api,o=n.get("triggerOn");if(n.get("trigger")!=="axis"&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&o!=="none"&&o!=="click"){var a=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&a.manuallyShowTip(n,r,i,{x:a._lastX,y:a._lastY,dataByCoordSys:a._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(n,r,i,o){if(!(o.from===this.uid||ce.node||!i.getDom())){var a=nV(o,i);this._ticket="";var s=o.dataByCoordSys,l=G7(o,r,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:o.position,positionDefault:"bottom"},a)}else if(o.tooltip&&o.x!=null&&o.y!=null){var c=V7;c.x=o.x,c.y=o.y,c.update(),Te(c).tooltipConfig={name:null,option:o.tooltip},this._tryShow({offsetX:o.x,offsetY:o.y,target:c},a)}else if(s)this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,dataByCoordSys:s,tooltipOption:o.tooltipOption},a);else if(o.seriesIndex!=null){if(this._manuallyAxisShowTip(n,r,i,o))return;var f=rd(o,r),d=f.point[0],p=f.point[1];d!=null&&p!=null&&this._tryShow({offsetX:d,offsetY:p,target:f.el,position:o.position,positionDefault:"bottom"},a)}else o.x!=null&&o.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:o.x,y:o.y}),this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,target:i.getZr().findHover(o.x,o.y).target},a))}},t.prototype.manuallyHideTip=function(n,r,i,o){var a=this._tooltipContent;this._tooltipModel&&a.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,o.from!==this.uid&&this._hide(nV(o,i))},t.prototype._manuallyAxisShowTip=function(n,r,i,o){var a=o.seriesIndex,s=o.dataIndex,l=r.getComponent("axisPointer").coordSysAxesInfo;if(!(a==null||s==null||l==null)){var u=r.getSeriesByIndex(a);if(u){var c=u.getData(),f=id([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:a,dataIndex:s,position:o.position}),!0}}},t.prototype._tryShow=function(n,r){var i=n.target,o=this._tooltipModel;if(o){this._lastX=n.offsetX,this._lastY=n.offsetY;var a=n.dataByCoordSys;if(a&&a.length)this._showAxisTooltip(a,n);else if(i){var s=Te(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null,this._cbParamsList=null;var l,u;Es(i,function(c){if(c.tooltipDisabled)return l=u=null,!0;l||u||(Te(c).dataIndex!=null?l=c:Te(c).tooltipConfig!=null&&(u=c))},!0),l?this._showSeriesItemTooltip(n,l,r):u?this._showComponentItemTooltip(n,u,r):this._hide(r)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(r)}},t.prototype._showOrMove=function(n,r){var i=n.get("showDelay");r=be(r,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(r,i):r()},t.prototype._showAxisTooltip=function(n,r){var i=this._ecModel,o=this._tooltipModel,a=[r.offsetX,r.offsetY],s=id([r.tooltipOption],o),l=this._renderMode,u=[],c=Ss("section",{blocks:[],noHeader:!0}),f=[],d=new Sg;E(n,function(y){E(y.dataByAxis,function(_){var x=i.getComponent(_.axisDim+"Axis",_.axisIndex),D=_.value,S=x.axis,C=S.scale.parse(D);if(!(!x||D==null)){var w=eb(D,S,i,_.seriesDataIndices,_.valueLabelOpt),I=Ss("section",{header:w,noHeader:!Bt(w),sortBlocks:!0,blocks:[]});c.blocks.push(I),E(_.seriesDataIndices,function(b){var T=i.getSeriesByIndex(b.seriesIndex),A=b.dataIndexInside,M=T.getDataParams(A);if(!(M.dataIndex<0)){M.axisDim=_.axisDim,M.axisIndex=_.axisIndex,M.axisType=_.axisType,M.axisId=_.axisId,M.axisValue=wu(x.axis,{value:C}),M.axisValueLabel=w,M.marker=d.makeTooltipMarker("item",kr(M.color),l);var N=DC(T.formatTooltip(A,!0,null)),O=N.frag;if(O){var L=id([T],o).get("valueFormatter");I.blocks.push(L?P({valueFormatter:L},O):O)}N.text&&f.push(N.text),u.push(M)}})}})}),c.blocks.reverse(),f.reverse();var p=r.position,h=s.get("order"),m=TC(c,d,l,h,i.get("useUTC"),s.get("textStyle"));m&&f.unshift(m);var g=l==="richText"?`
|
|
18
|
+
|
|
19
|
+
`:"<br/>",v=f.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(n,u)?this._updatePosition(s,p,a[0],a[1],this._tooltipContent,u):this._showTooltipContent(s,v,u,Math.random()+"",a[0],a[1],p,null,d)})},t.prototype._showSeriesItemTooltip=function(n,r,i){var o=this._ecModel,a=Te(r),s=a.seriesIndex,l=o.getSeriesByIndex(s),u=a.dataModel||l,c=a.dataIndex,f=a.dataType,d=u.getData(f),p=this._renderMode,h=n.positionDefault,m=id([d.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,h?{position:h}:null),g=m.get("trigger");if(!(g!=null&&g!=="item")){var v=u.getDataParams(c,f),y=new Sg;v.marker=y.makeTooltipMarker("item",kr(v.color),p);var _=DC(u.formatTooltip(c,!1,f)),x=m.get("order"),D=m.get("valueFormatter"),S=_.frag,C=S?TC(D?P({valueFormatter:D},S):S,y,p,x,o.get("useUTC"),m.get("textStyle")):_.text,w="item_"+u.name+"_"+c;this._showOrMove(m,function(){this._showTooltipContent(m,C,v,w,n.offsetX,n.offsetY,n.position,n.target,y)}),i({type:"showTip",dataIndexInside:c,dataIndex:d.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(n,r,i){var o=this._renderMode==="html",a=Te(r),s=a.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(U(l)){var c=l;l={content:c,formatter:c},u=!0}u&&o&&l.content&&(l=ae(l),l.content=Et(l.content));var f=[l],d=this._ecModel.getComponent(a.componentMainType,a.componentIndex);d&&f.push(d),f.push({formatter:l.content});var p=n.positionDefault,h=id(f,this._tooltipModel,p?{position:p}:null),m=h.get("content"),g=Math.random()+"",v=new Sg;this._showOrMove(h,function(){var y=ae(h.get("formatterParams")||{});this._showTooltipContent(h,m,y,g,n.offsetX,n.offsetY,n.position,r,v)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(n,r,i,o,a,s,l,u,c){if(this._ticket="",!(!n.get("showContent")||!n.get("show"))){var f=this._tooltipContent;f.setEnterable(n.get("enterable"));var d=n.get("formatter");l=l||n.get("position");var p=r,h=this._getNearestPoint([a,s],i,n.get("trigger"),n.get("borderColor"),n.get("defaultBorderColor",!0)),m=h.color;if(d)if(U(d)){var g=n.ecModel.get("useUTC"),v=F(i)?i[0]:i,y=v&&v.axisType&&v.axisType.indexOf("time")>=0;p=d,y&&(p=ms(v.axisValue,p,g)),p=ng(p,i,!0)}else if(Y(d)){var _=be(function(x,D){x===this._ticket&&(f.setContent(D,c,n,m,l),this._updatePosition(n,l,a,s,f,i,u))},this);this._ticket=o,p=d(i,o,_)}else p=d;f.setContent(p,c,n,m,l),f.show(n,m),this._updatePosition(n,l,a,s,f,i,u)}},t.prototype._getNearestPoint=function(n,r,i,o,a){if(i==="axis"||F(r))return{color:o||a};if(!F(r))return{color:o||r.color||r.borderColor}},t.prototype._updatePosition=function(n,r,i,o,a,s,l){var u=this._api.getWidth(),c=this._api.getHeight();r=r||n.get("position");var f=a.getSize(),d=n.get("align"),p=n.get("verticalAlign"),h=l&&l.getBoundingRect().clone();if(l&&h.applyTransform(l.transform),Y(r)&&(r=r([i,o],s,a.el,h,{viewSize:[u,c],contentSize:f.slice()})),F(r))i=we(r[0],u),o=we(r[1],c);else if(z(r)){var m=r;m.width=f[0],m.height=f[1];var g=ou(m,{width:u,height:c});i=g.x,o=g.y,d=null,p=null}else if(U(r)&&l){var v=j7(r,h,f,n.get("borderWidth"));i=v[0],o=v[1]}else{var v=H7(i,o,a,u,c,d?null:20,p?null:20);i=v[0],o=v[1]}if(d&&(i-=rV(d)?f[0]/2:d==="right"?f[0]:0),p&&(o-=rV(p)?f[1]/2:p==="bottom"?f[1]:0),kv(n)){var v=z7(i,o,a,u,c);i=v[0],o=v[1]}a.moveTo(i,o)},t.prototype._updateContentNotChangedOnAxis=function(n,r){var i=this._lastDataByCoordSys,o=this._cbParamsList,a=!!i&&i.length===n.length;return a&&E(i,function(s,l){var u=s.dataByAxis||[],c=n[l]||{},f=c.dataByAxis||[];a=a&&u.length===f.length,a&&E(u,function(d,p){var h=f[p]||{},m=d.seriesDataIndices||[],g=h.seriesDataIndices||[];a=a&&d.value===h.value&&d.axisType===h.axisType&&d.axisId===h.axisId&&m.length===g.length,a&&E(m,function(v,y){var _=g[y];a=a&&v.seriesIndex===_.seriesIndex&&v.dataIndex===_.dataIndex}),o&&E(d.seriesDataIndices,function(v){var y=v.seriesIndex,_=r[y],x=o[y];_&&x&&x.data!==_.data&&(a=!1)})})}),this._lastDataByCoordSys=n,this._cbParamsList=r,!!a},t.prototype._hide=function(n){this._lastDataByCoordSys=null,this._cbParamsList=null,n({type:"hideTip",from:this.uid})},t.prototype.dispose=function(n,r){ce.node||!r.getDom()||(If(this,"_updatePosition"),this._tooltipContent.dispose(),nd("itemTooltip",r),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},t.type="tooltip",t})(on);function id(e,t,n){var r=t.ecModel,i;n?(i=new tt(n,r,r),i=new tt(t.option,i,r)):i=t;for(var o=e.length-1;o>=0;o--){var a=e[o];a&&(a instanceof tt&&(a=a.get("tooltip",!0)),U(a)&&(a={formatter:a}),a&&(i=new tt(a,i,r)))}return i}function nV(e,t){return e.dispatchAction||be(t.dispatchAction,t)}function H7(e,t,n,r,i,o,a){var s=n.getSize(),l=s[0],u=s[1];return o!=null&&(e+l+o+2>r?e-=l+o:e+=o),a!=null&&(t+u+a>i?t-=u+a:t+=a),[e,t]}function z7(e,t,n,r,i){var o=n.getSize(),a=o[0],s=o[1];return e=Math.min(e+a,r)-a,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function j7(e,t,n,r){var i=n[0],o=n[1],a=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-i/2,l=t.y+c/2-o/2;break;case"top":s=t.x+u/2-i/2,l=t.y-o-a;break;case"bottom":s=t.x+u/2-i/2,l=t.y+c+a;break;case"left":s=t.x-i-a,l=t.y+c/2-o/2;break;case"right":s=t.x+u+a,l=t.y+c/2-o/2}return[s,l]}function rV(e){return e==="center"||e==="middle"}function G7(e,t,n){var r=Kc(e).queryOptionMap,i=r.keys()[0];if(!(!i||i==="series")){var o=Do(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s=n.getViewOfComponentModel(a),l;if(s.group.traverse(function(u){var c=Te(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:a.componentIndex,el:l}}}}var iV=U7;function od(e){Vr(Rv),e.registerComponentModel(WB),e.registerComponentView(iV),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Qe),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Qe)}var cb=Math.sin,fb=Math.cos,oV=Math.PI,ks=Math.PI*2,$7=180/oV,W7=(function(){function e(){}return e.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},e.prototype.moveTo=function(t,n){this._add("M",t,n)},e.prototype.lineTo=function(t,n){this._add("L",t,n)},e.prototype.bezierCurveTo=function(t,n,r,i,o,a){this._add("C",t,n,r,i,o,a)},e.prototype.quadraticCurveTo=function(t,n,r,i){this._add("Q",t,n,r,i)},e.prototype.arc=function(t,n,r,i,o,a){this.ellipse(t,n,r,r,0,i,o,a)},e.prototype.ellipse=function(t,n,r,i,o,a,s,l){var u=s-a,c=!l,f=Math.abs(u),d=Xr(f-ks)||(c?u>=ks:-u>=ks),p=u>0?u%ks:u%ks+ks,h=!1;d?h=!0:Xr(f)?h=!1:h=p>=oV==!!c;var m=t+r*fb(a),g=n+i*cb(a);this._start&&this._add("M",m,g);var v=Math.round(o*$7);if(d){var y=1/this._p,_=(c?1:-1)*(ks-y);this._add("A",r,i,v,1,+c,t+r*fb(a+_),n+i*cb(a+_)),y>.01&&this._add("A",r,i,v,0,+c,m,g)}else{var x=t+r*fb(s),D=n+i*cb(s);this._add("A",r,i,v,+h,+c,x,D)}},e.prototype.rect=function(t,n,r,i){this._add("M",t,n),this._add("l",r,0),this._add("l",0,i),this._add("l",-r,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(t,n,r,i,o,a,s,l,u){for(var c=[],f=this._p,d=1;d<arguments.length;d++){var p=arguments[d];if(isNaN(p)){this._invalid=!0;return}c.push(Math.round(p*f)/f)}this._d.push(t+c.join(" ")),this._start=t==="Z"},e.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},e.prototype.getStr=function(){return this._str},e})(),Fv=W7;var ad="none",Y7=Math.round;function q7(e){var t=e.fill;return t!=null&&t!==ad}function Z7(e){var t=e.stroke;return t!=null&&t!==ad}var db=["lineCap","miterLimit","lineJoin"],X7=V(db,function(e){return"stroke-"+e.toLowerCase()});function pb(e,t,n,r){var i=t.opacity==null?1:t.opacity;if(n instanceof _t){e("opacity",i);return}if(q7(t)){var o=vo(t.fill);e("fill",o.color);var a=t.fillOpacity!=null?t.fillOpacity*o.opacity*i:o.opacity*i;(r||a<1)&&e("fill-opacity",a)}else e("fill",ad);if(Z7(t)){var s=vo(t.stroke);e("stroke",s.color);var l=t.strokeNoScale?n.getLineScale():1,u=l?(t.lineWidth||0)/l:0,c=t.strokeOpacity!=null?t.strokeOpacity*s.opacity*i:s.opacity*i,f=t.strokeFirst;if((r||u!==1)&&e("stroke-width",u),(r||f)&&e("paint-order",f?"stroke":"fill"),(r||c<1)&&e("stroke-opacity",c),t.lineDash){var d=Of(n),p=d[0],h=d[1];p&&(h=Y7(h||0),e("stroke-dasharray",p.join(",")),(h||r)&&e("stroke-dashoffset",h))}else r&&e("stroke-dasharray",ad);for(var m=0;m<db.length;m++){var g=db[m];if(r||t[g]!==jl[g]){var v=t[g]||jl[g];v&&e(X7[m],v)}}}else r&&e("stroke",ad)}var aV="http://www.w3.org/2000/svg",hb="http://www.w3.org/1999/xlink",sV="http://www.w3.org/2000/xmlns/",lV="http://www.w3.org/XML/1998/namespace",mb="ecmeta_";function Bv(e){return document.createElementNS(aV,e)}function pt(e,t,n,r,i){return{tag:e,attrs:n||{},children:r,text:i,key:t}}function K7(e,t){var n=[];if(t)for(var r in t){var i=t[r],o=r;i!==!1&&(i!==!0&&i!=null&&(o+='="'+i+'"'),n.push(o))}return"<"+e+" "+n.join(" ")+">"}function Q7(e){return"</"+e+">"}function sd(e,t){t=t||{};var n=t.newline?`
|
|
20
|
+
`:"";function r(i){var o=i.children,a=i.tag,s=i.attrs,l=i.text;return K7(a,s)+(a!=="style"?Et(l):l||"")+(o?""+n+V(o,function(u){return r(u)}).join(n)+n:"")+Q7(a)}return r(e)}function uV(e,t,n){n=n||{};var r=n.newline?`
|
|
21
|
+
`:"",i=" {"+r,o=r+"}",a=V(X(e),function(l){return l+i+V(X(e[l]),function(u){return u+":"+e[l][u]+";"}).join(r)+o}).join(r),s=V(X(t),function(l){return"@keyframes "+l+i+V(X(t[l]),function(u){return u+i+V(X(t[l][u]),function(c){var f=t[l][u][c];return c==="d"&&(f='path("'+f+'")'),c+":"+f+";"}).join(r)+o}).join(r)+o}).join(r);return!a&&!s?"":["<![CDATA[",a,s,"]]>"].join(r)}function ld(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function gb(e,t,n,r){return pt("svg","root",{width:e,height:t,xmlns:aV,"xmlns:xlink":hb,version:"1.1",baseProfile:"full",viewBox:r?"0 0 "+e+" "+t:!1},n)}var J7=0;function Vv(){return J7++}var cV={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Fs="transform-origin";function eZ(e,t,n){var r=P({},e.shape);P(r,t),e.buildPath(n,r);var i=new Fv;return i.reset(Ph(e)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function tZ(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[Fs]=n+"px "+r+"px")}var nZ={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function dV(e,t){var n=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function rZ(e,t,n){var r=e.shape.paths,i={},o,a;if(E(r,function(l){var u=ld(n.zrId);u.animation=!0,ud(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,d=X(c),p=d.length;if(p){a=d[p-1];var h=c[a];for(var m in h){var g=h[m];i[m]=i[m]||{d:""},i[m].d+=g.d||""}for(var v in f){var y=f[v].animation;y.indexOf(a)>=0&&(o=y)}}}),!!o){t.d=!1;var s=dV(i,n);return o.replace(a,s)}}function fV(e){return U(e)?cV[e]?"cubic-bezier("+cV[e]+")":Al(e)?e:"":""}function ud(e,t,n,r){var i=e.animators,o=i.length,a=[];if(e instanceof Em){var s=rZ(e,t,n);if(s)a.push(s);else if(!o)return}else if(!o)return;for(var l={},u=0;u<o;u++){var c=i[u],f=[c.getMaxTime()/1e3+"s"],d=fV(c.getClip().easing),p=c.getDelay();d?f.push(d):f.push("linear"),p&&f.push(p/1e3+"s"),c.getLoop()&&f.push("infinite");var h=f.join(" ");l[h]=l[h]||[h,[]],l[h][1].push(c)}function m(y){var _=y[1],x=_.length,D={},S={},C={},w="animation-timing-function";function I(zt,Ue,at){for(var me=zt.getTracks(),Ae=zt.getMaxTime(),dr=0;dr<me.length;dr++){var St=me[dr];if(St.needsAnimate()){var Lu=St.keyframes,qo=St.propName;if(at&&(qo=at(qo)),qo)for(var jv=0;jv<Lu.length;jv++){var hd=Lu[jv],md=Math.round(hd.time/Ae*100)+"%",Nb=fV(hd.easing),Ob=hd.rawValue;(U(Ob)||ge(Ob))&&(Ue[md]=Ue[md]||{},Ue[md][qo]=hd.rawValue,Nb&&(Ue[md][w]=Nb))}}}}for(var b=0;b<x;b++){var T=_[b],A=T.targetName;A?A==="shape"&&I(T,S):!r&&I(T,D)}for(var M in D){var N={};yo(N,e),P(N,D[M]);var O=Lh(N),L=D[M][w];C[M]=O?{transform:O}:{},tZ(C[M],N),L&&(C[M][w]=L)}var k,B=!0;for(var M in S){C[M]=C[M]||{};var j=!k,L=S[M][w];j&&(k=new en);var Z=k.len();k.reset(),C[M].d=eZ(e,S[M],k);var H=k.len();if(!j&&Z!==H){B=!1;break}L&&(C[M][w]=L)}if(!B)for(var M in C)delete C[M].d;if(!r)for(var b=0;b<x;b++){var T=_[b],A=T.targetName;A==="style"&&I(T,C,function(me){return nZ[me]})}for(var K=X(C),J=!0,W,b=1;b<K.length;b++){var de=K[b-1],Ie=K[b];if(C[de][Fs]!==C[Ie][Fs]){J=!1;break}W=C[de][Fs]}if(J&&W){for(var M in C)C[M][Fs]&&delete C[M][Fs];t[Fs]=W}if(qe(K,function(zt){return X(C[zt]).length>0}).length){var kt=dV(C,n);return kt+" "+y[0]+" both"}}for(var g in l){var s=m(l[g]);s&&a.push(s)}if(a.length){var v=n.zrId+"-cls-"+Vv();n.cssNodes["."+v]={animation:a.join(",")},t.class=v}}function hV(e,t,n){if(!e.ignore)if(e.isSilent()){var r={"pointer-events":"none"};pV(r,t,n,!0)}else{var i=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},o=i.fill;if(!o){var a=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,l=e.currentStates.indexOf("select")>=0&&s||a;l&&(o=Vc(l))}var u=i.lineWidth;if(u){var c=!i.strokeNoScale&&e.transform?e.transform[0]:1;u=u/c}var r={cursor:"pointer"};o&&(r.fill=o),i.stroke&&(r.stroke=i.stroke),u&&(r["stroke-width"]=u),pV(r,t,n,!0)}}function pV(e,t,n,r){var i=JSON.stringify(e),o=n.cssStyleCache[i];o||(o=n.zrId+"-cls-"+Vv(),n.cssStyleCache[i]=o,n.cssNodes["."+o+(r?":hover":"")]=e),t.class=t.class?t.class+" "+o:o}var cd=Math.round;function yV(e){return e&&U(e.src)}function _V(e){return e&&Y(e.toDataURL)}function vb(e,t,n,r){pb(function(i,o){var a=i==="fill"||i==="stroke";a&&Rh(o)?Db(t,e,i,r):a&&Uc(o)?Sb(n,e,i,r):e[i]=o,a&&r.ssr&&o==="none"&&(e["pointer-events"]="visible")},t,n,!1),cZ(n,e,r)}function yb(e,t){var n=F1(t);n&&(n.each(function(r,i){r!=null&&(e[(mb+i).toLowerCase()]=r+"")}),t.isSilent()&&(e[mb+"silent"]="true"))}function mV(e){return Xr(e[0]-1)&&Xr(e[1])&&Xr(e[2])&&Xr(e[3]-1)}function iZ(e){return Xr(e[4])&&Xr(e[5])}function _b(e,t,n){if(t&&!(iZ(t)&&mV(t))){var r=n?10:1e4;e.transform=mV(t)?"translate("+cd(t[4]*r)/r+" "+cd(t[5]*r)/r+")":a1(t)}}function gV(e,t,n){for(var r=e.points,i=[],o=0;o<r.length;o++)i.push(cd(r[o][0]*n)/n),i.push(cd(r[o][1]*n)/n);t.points=i.join(" ")}function vV(e){return!e.smooth}function oZ(e){var t=V(e,function(n){return typeof n=="string"?[n,n]:n});return function(n,r,i){for(var o=0;o<t.length;o++){var a=t[o],s=n[a[0]];s!=null&&(r[a[1]]=cd(s*i)/i)}}}var aZ={circle:[oZ(["cx","cy","r"])],polyline:[gV,vV],polygon:[gV,vV]};function sZ(e){for(var t=e.animators,n=0;n<t.length;n++)if(t[n].targetName==="shape")return!0;return!1}function xV(e,t){var n=e.style,r=e.shape,i=aZ[e.type],o={},a=t.animation,s="path",l=e.style.strokePercent,u=t.compress&&Ph(e)||4;if(i&&!t.willUpdate&&!(i[1]&&!i[1](r))&&!(a&&sZ(e))&&!(l<1)){s=e.type;var c=Math.pow(10,u);i[0](r,o,c)}else{var f=!e.path||e.shapeChanged();e.path||e.createPathProxy();var d=e.path;f&&(d.beginPath(),e.buildPath(d,e.shape),e.pathUpdated());var p=d.getVersion(),h=e,m=h.__svgPathBuilder;(h.__svgPathVersion!==p||!m||l!==h.__svgPathStrokePercent)&&(m||(m=h.__svgPathBuilder=new Fv),m.reset(u),d.rebuildPath(m,l),m.generateStr(),h.__svgPathVersion=p,h.__svgPathStrokePercent=l),o.d=m.getStr()}return _b(o,e.transform),vb(o,n,e,t),yb(o,e),t.animation&&ud(e,o,t),t.emphasis&&hV(e,o,t),pt(s,e.id+"",o)}function lZ(e,t){var n=e.style,r=n.image;if(r&&!U(r)&&(yV(r)?r=r.src:_V(r)&&(r=r.toDataURL())),!!r){var i=n.x||0,o=n.y||0,a=n.width,s=n.height,l={href:r,width:a,height:s};return i&&(l.x=i),o&&(l.y=o),_b(l,e.transform),vb(l,n,e,t),yb(l,e),t.animation&&ud(e,l,t),pt("image",e.id+"",l)}}function uZ(e,t){var n=e.style,r=n.text;if(r!=null&&(r+=""),!(!r||isNaN(n.x)||isNaN(n.y))){var i=n.font||fn,o=n.x||0,a=l1(n.y||0,Ha(i),n.textBaseline),s=s1[n.textAlign]||n.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(iS(n)){var u="",c=n.fontStyle,f=rS(n.fontSize);if(!parseFloat(f))return;var d=n.fontFamily||Ex,p=n.fontWeight;u+="font-size:"+f+";font-family:"+d+";",c&&c!=="normal"&&(u+="font-style:"+c+";"),p&&p!=="normal"&&(u+="font-weight:"+p+";"),l.style=u}else l.style="font: "+i;return r.match(/\s/)&&(l["xml:space"]="preserve"),o&&(l.x=o),a&&(l.y=a),_b(l,e.transform),vb(l,n,e,t),yb(l,e),t.animation&&ud(e,l,t),pt("text",e.id+"",l,void 0,r)}}function xb(e,t){if(e instanceof ie)return xV(e,t);if(e instanceof _t)return lZ(e,t);if(e instanceof es)return uZ(e,t)}function cZ(e,t,n){var r=e.style;if(u1(r)){var i=c1(e),o=n.shadowCache,a=o[i];if(!a){var s=e.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=r.shadowOffsetX||0,f=r.shadowOffsetY||0,d=r.shadowBlur,p=vo(r.shadowColor),h=p.opacity,m=p.color,g=d/2/l,v=d/2/u,y=g+" "+v;a=n.zrId+"-s"+n.shadowIdx++,n.defs[a]=pt("filter",a,{id:a,x:"-100%",y:"-100%",width:"300%",height:"300%"},[pt("feDropShadow","",{dx:c/l,dy:f/u,stdDeviation:y,"flood-color":m,"flood-opacity":h})]),o[i]=a}t.filter=Hc(a)}}function Db(e,t,n,r){var i=e[n],o,a={gradientUnits:i.global?"userSpaceOnUse":"objectBoundingBox"};if(Nh(i))o="linearGradient",a.x1=i.x,a.y1=i.y,a.x2=i.x2,a.y2=i.y2;else if(Oh(i))o="radialGradient",a.cx=G(i.x,.5),a.cy=G(i.y,.5),a.r=G(i.r,.5);else return;for(var s=i.colorStops,l=[],u=0,c=s.length;u<c;++u){var f=Ah(s[u].offset)*100+"%",d=s[u].color,p=vo(d),h=p.color,m=p.opacity,g={offset:f};g["stop-color"]=h,m<1&&(g["stop-opacity"]=m),l.push(pt("stop",u+"",g))}var v=pt(o,"",a,l),y=sd(v),_=r.gradientCache,x=_[y];x||(x=r.zrId+"-g"+r.gradientIdx++,_[y]=x,a.id=x,r.defs[x]=pt(o,x,a,l)),t[n]=Hc(x)}function Sb(e,t,n,r){var i=e.style[n],o=e.getBoundingRect(),a={},s=i.repeat,l=s==="no-repeat",u=s==="repeat-x",c=s==="repeat-y",f;if(tD(i)){var d=i.imageWidth,p=i.imageHeight,h=void 0,m=i.image;if(U(m)?h=m:yV(m)?h=m.src:_V(m)&&(h=m.toDataURL()),typeof Image>"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";Ke(d,g),Ke(p,g)}else if(d==null||p==null){var v=function(b,T){if(b){var A=b.elm,M=d||T.width,N=p||T.height;b.tag==="pattern"&&(u?(N=1,M/=o.width):c&&(M=1,N/=o.height)),b.attrs.width=M,b.attrs.height=N,A&&(A.setAttribute("width",M),A.setAttribute("height",N))}},y=Jc(h,null,e,function(b){l||v(S,b),v(f,b)});y&&y.width&&y.height&&(d=d||y.width,p=p||y.height)}f=pt("image","img",{href:h,width:d,height:p}),a.width=d,a.height=p}else i.svgElement&&(f=ae(i.svgElement),a.width=i.svgWidth,a.height=i.svgHeight);if(f){var _,x;l?_=x=1:u?(x=1,_=a.width/o.width):c?(_=1,x=a.height/o.height):a.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(a.width=_),x!=null&&!isNaN(x)&&(a.height=x);var D=Lh(i);D&&(a.patternTransform=D);var S=pt("pattern","",a,[f]),C=sd(S),w=r.patternCache,I=w[C];I||(I=r.zrId+"-p"+r.patternIdx++,w[C]=I,a.id=I,S=r.defs[I]=pt("pattern",I,a,[f])),t[n]=Hc(I)}}function DV(e,t,n){var r=n.clipPathCache,i=n.defs,o=r[e.id];if(!o){o=n.zrId+"-c"+n.clipPathIdx++;var a={id:o};r[e.id]=o,i[o]=pt("clipPath",o,a,[xV(e,n)])}t["clip-path"]=Hc(o)}function Cb(e){return document.createTextNode(e)}function Yo(e,t,n){e.insertBefore(t,n)}function Eb(e,t){e.removeChild(t)}function bb(e,t){e.appendChild(t)}function wb(e){return e.parentNode}function Tb(e){return e.nextSibling}function Uv(e,t){e.textContent=t}var SV=58,dZ=120,pZ=pt("","");function Ib(e){return e===void 0}function ci(e){return e!==void 0}function hZ(e,t,n){for(var r={},i=t;i<=n;++i){var o=e[i].key;o!==void 0&&(r[o]=i)}return r}function fd(e,t){var n=e.key===t.key,r=e.tag===t.tag;return r&&n}function dd(e){var t,n=e.children,r=e.tag;if(ci(r)){var i=e.elm=Bv(r);if(zv(pZ,e),F(n))for(t=0;t<n.length;++t){var o=n[t];o!=null&&bb(i,dd(o))}else ci(e.text)&&!z(e.text)&&bb(i,Cb(e.text))}else e.elm=Cb(e.text);return e.elm}function CV(e,t,n,r,i){for(;r<=i;++r){var o=n[r];o!=null&&Yo(e,dd(o),t)}}function Hv(e,t,n,r){for(;n<=r;++n){var i=t[n];if(i!=null)if(ci(i.tag)){var o=wb(i.elm);Eb(o,i.elm)}else Eb(e,i.elm)}}function zv(e,t){var n,r=t.elm,i=e&&e.attrs||{},o=t.attrs||{};if(i!==o){for(n in o){var a=o[n],s=i[n];s!==a&&(a===!0?r.setAttribute(n,""):a===!1?r.removeAttribute(n):n==="style"?r.style.cssText=a:n.charCodeAt(0)!==dZ?r.setAttribute(n,a):n==="xmlns:xlink"||n==="xmlns"?r.setAttributeNS(sV,n,a):n.charCodeAt(3)===SV?r.setAttributeNS(lV,n,a):n.charCodeAt(5)===SV?r.setAttributeNS(hb,n,a):r.setAttribute(n,a))}for(n in i)n in o||r.removeAttribute(n)}}function mZ(e,t,n){for(var r=0,i=0,o=t.length-1,a=t[0],s=t[o],l=n.length-1,u=n[0],c=n[l],f,d,p,h;r<=o&&i<=l;)a==null?a=t[++r]:s==null?s=t[--o]:u==null?u=n[++i]:c==null?c=n[--l]:fd(a,u)?(Pu(a,u),a=t[++r],u=n[++i]):fd(s,c)?(Pu(s,c),s=t[--o],c=n[--l]):fd(a,c)?(Pu(a,c),Yo(e,a.elm,Tb(s.elm)),a=t[++r],c=n[--l]):fd(s,u)?(Pu(s,u),Yo(e,s.elm,a.elm),s=t[--o],u=n[++i]):(Ib(f)&&(f=hZ(t,r,o)),d=f[u.key],Ib(d)?Yo(e,dd(u),a.elm):(p=t[d],p.tag!==u.tag?Yo(e,dd(u),a.elm):(Pu(p,u),t[d]=void 0,Yo(e,p.elm,a.elm))),u=n[++i]);(r<=o||i<=l)&&(r>o?(h=n[l+1]==null?null:n[l+1].elm,CV(e,h,n,i,l)):Hv(e,t,r,o))}function Pu(e,t){var n=t.elm=e.elm,r=e.children,i=t.children;e!==t&&(zv(e,t),Ib(t.text)?ci(r)&&ci(i)?r!==i&&mZ(n,r,i):ci(i)?(ci(e.text)&&Uv(n,""),CV(n,null,i,0,i.length-1)):ci(r)?Hv(n,r,0,r.length-1):ci(e.text)&&Uv(n,""):e.text!==t.text&&(ci(r)&&Hv(n,r,0,r.length-1),Uv(n,t.text)))}function Mb(e,t){if(fd(e,t))Pu(e,t);else{var n=e.elm,r=wb(n);dd(t),r!==null&&(Yo(r,t.elm,Tb(n)),Hv(r,[e],0,0))}return t}var gZ=0,vZ=(function(){function e(t,n,r){if(this.type="svg",this.configLayer=yZ("configLayer"),this.storage=n,this._opts=r=P({},r),this.root=t,this._id="zr"+gZ++,this._oldVNode=gb(r.width,r.height),t&&!r.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var o=this._svgDom=this._oldVNode.elm=Bv("svg");zv(null,this._oldVNode),i.appendChild(o),t.appendChild(i)}this.resize(r.width,r.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",Mb(this._oldVNode,t),this._oldVNode=t}},e.prototype.renderOneToVNode=function(t){return xb(t,ld(this._id))},e.prototype.renderToVNode=function(t){t=t||{};var n=this.storage.getDisplayList(!0),r=this._width,i=this._height,o=ld(this._id);o.animation=t.animation,o.willUpdate=t.willUpdate,o.compress=t.compress,o.emphasis=t.emphasis,o.ssr=this._opts.ssr;var a=[],s=this._bgVNode=_Z(r,i,this._backgroundColor,o);s&&a.push(s);var l=t.compress?null:this._mainVNode=pt("g","main",{},[]);this._paintList(n,o,l?l.children:a),l&&a.push(l);var u=V(X(o.defs),function(d){return o.defs[d]});if(u.length&&a.push(pt("defs","defs",{},u)),t.animation){var c=uV(o.cssNodes,o.cssAnims,{newline:!0});if(c){var f=pt("style","stl",{},[],c);a.push(f)}}return gb(r,i,a,t.useViewBox)},e.prototype.renderToString=function(t){return t=t||{},sd(this.renderToVNode({animation:G(t.cssAnimation,!0),emphasis:G(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:G(t.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(t,n,r){for(var i=t.length,o=[],a=0,s,l,u=0,c=0;c<i;c++){var f=t[c];if(!f.invisible){var d=f.__clipPaths,p=d&&d.length||0,h=l&&l.length||0,m=void 0;for(m=Math.max(p-1,h-1);m>=0&&!(d&&l&&d[m]===l[m]);m--);for(var g=h-1;g>m;g--)a--,s=o[a-1];for(var v=m+1;v<p;v++){var y={};DV(d[v],y,n);var _=pt("g","clip-g-"+u++,y,[]);(s?s.children:r).push(_),o[a++]=_,s=_}l=d;var x=xb(f,n);x&&(s?s.children:r).push(x)}}},e.prototype.resize=function(t,n){var r=this._opts,i=this.root,o=this._viewport;if(t!=null&&(r.width=t),n!=null&&(r.height=n),i&&o&&(o.style.display="none",t=kC(i,0,r),n=kC(i,1,r),o.style.display=""),this._width!==t||this._height!==n){if(this._width=t,this._height=n,o){var a=o.style;a.width=t+"px",a.height=n+"px"}if(Uc(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",t),s.setAttribute("height",n));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",t),l.setAttribute("height",n))}}},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},e.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},e.prototype.toDataURL=function(t){var n=this.renderToString(),r="data:image/svg+xml;";return t?(n=f1(n),n&&r+"base64,"+n):r+"charset=UTF-8,"+encodeURIComponent(n)},e})();function yZ(e){return function(){}}function _Z(e,t,n,r){var i;if(n&&n!=="none")if(i=pt("rect","bg",{width:e,height:t,x:"0",y:"0"}),Rh(n))Db({fill:n},i.attrs,"fill",r);else if(Uc(n))Sb({style:{fill:n},dirty:Qe,getBoundingRect:function(){return{width:e,height:t}}},i.attrs,"fill",r);else{var o=vo(n),a=o.color,s=o.opacity;i.attrs.fill=a,s<1&&(i.attrs["fill-opacity"]=s)}return i}var EV=vZ;function pd(e){e.registerPainter("svg",EV)}var DZ=["chartHost"];function SZ(e,t){if(e&1&&(io(0,"div",2),Oe(1),xa()),e&2){let n=te();ee(),Xe(n.widget.title)}}function CZ(e,t){e&1&&(io(0,"div",5),Oe(1,"No data"),xa())}Vr([VE,ME,ib,od,pd]);var bV=(()=>{class e{constructor(){this.records=[],this.fontSizePx=16,this.chart=null,this.renderQueued=!1}get hasData(){return this.seriesData().length>0}ngAfterViewInit(){this.queueRender(),typeof ResizeObserver<"u"&&this.chartHost&&(this.resizeObserver=new ResizeObserver(()=>this.queueRender()),this.resizeObserver.observe(this.chartHost.nativeElement))}ngOnChanges(){this.queueRender()}ngOnDestroy(){this.resizeObserver?.disconnect(),this.chart?.dispose(),this.chart=null}queueRender(){this.renderQueued||(this.renderQueued=!0,queueMicrotask(()=>{this.renderQueued=!1,this.renderChart()}))}renderChart(){let n=this.chartHost?.nativeElement;if(!n)return;let r=this.seriesData();if(!r.length){this.chart?.dispose(),this.chart=null;return}this.chart??=Hg(n,void 0,{renderer:"svg"}),this.chart.setOption(this.buildOption(r,n.clientWidth,n.clientHeight),!0),this.chart.resize()}buildOption(n,r=640,i=360){let o=this.effectiveTextColor(),a=this.isLightColor(this.widget.style.backgroundColor||"")?"#0369a1":"#38bdf8",s=this.alphaColor(o,.62),l=this.alphaColor(o,.08),u=Math.max(12,Math.min(Math.round(this.fontSizePx*.85),Math.round(i*.09))),c=Math.max(14,Math.round(u*1.2)),f=this.widget.chartType!=="bar",d=g=>new Intl.NumberFormat(void 0,{maximumFractionDigits:1,notation:Math.abs(g)>=1e5?"compact":"standard"}).format(g),p=Math.max(1,...n.map(g=>d(g.value).length)),h=Math.max(1,Math.floor((r-u*4-32)/(p*c*.65+12))),m=Math.max(1,Math.ceil(n.length/h));return{animation:!1,backgroundColor:"transparent",tooltip:{trigger:"axis",backgroundColor:"#111827",borderColor:"rgba(148, 163, 184, 0.28)",textStyle:{color:"#f8fafc",fontSize:u}},grid:{top:c*2,right:16,bottom:12,left:12,containLabel:!0},xAxis:{type:"category",boundaryGap:!f,data:n.map(g=>g.label),axisLine:{lineStyle:{color:s}},axisTick:{show:!1},axisLabel:{color:o,fontSize:u,margin:10,hideOverlap:!0,width:Math.max(32,r/Math.max(1,n.length)-12),overflow:"truncate"}},yAxis:{type:"value",axisLine:{show:!1},axisTick:{show:!1},axisLabel:{color:s,fontSize:u,formatter:g=>new Intl.NumberFormat(void 0,{maximumSignificantDigits:3,notation:Math.abs(g)>=1e4?"compact":"standard"}).format(g)},splitNumber:3,splitLine:{show:!0,lineStyle:{color:l,type:"solid"}}},series:[f?{type:"line",data:n.map(g=>g.value),smooth:.22,showSymbol:!0,symbol:"circle",symbolSize:Math.max(6,Math.round(this.fontSizePx*.28)),lineStyle:{color:a,width:Math.max(2,Math.round(this.fontSizePx*.12))},itemStyle:{color:a,borderColor:this.widget.style.backgroundColor||"#0f172a",borderWidth:1.5},areaStyle:this.widget.chartType==="area"?{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:`${a}66`},{offset:1,color:`${a}08`}]}}:void 0}:{type:"bar",data:n.map(g=>g.value),itemStyle:{color:a,borderRadius:[7,7,0,0]},barWidth:"62%",barCategoryGap:"28%",labelLayout:{hideOverlap:!0},label:{show:!0,position:"top",color:o,fontSize:c,fontWeight:700,formatter:({value:g,dataIndex:v})=>m===1||v===n.length-1||v%m===0&&v<=n.length-1-m?d(g):""}}]}}seriesData(){let n=this.widget.maxItems&&this.widget.maxItems>0?this.widget.maxItems:this.records.length,r=this.records.slice(0,n).map((i,o)=>({label:this.resolveSeriesLabel(i,`Item ${o+1}`),value:Number(i[this.widget.valueField]??0)})).filter(i=>Number.isFinite(i.value));return this.widget.chartType!=="bar"?this.sortLineSeriesData(r):r}resolveSeriesLabel(n,r){if(this.widget.labelField){let o=n[this.widget.labelField];return o!=null&&o!==""?String(o):this.widget.labelField}let i=n[this.widget.valueField];return i!=null&&i!==""?String(i):r}sortLineSeriesData(n){return n.length<=1?n:n.map(o=>Number(o.label)).every(o=>Number.isFinite(o))?[...n].sort((o,a)=>Number(o.label)-Number(a.label)):n.map(o=>new Date(o.label).getTime()).every(o=>Number.isFinite(o))?[...n].sort((o,a)=>new Date(o.label).getTime()-new Date(a.label).getTime()):[...n].sort((o,a)=>o.label.localeCompare(a.label,void 0,{numeric:!0,sensitivity:"base"}))}effectiveTextColor(){return this.widget.style.color?this.widget.style.color:this.isLightColor(this.widget.style.backgroundColor||"")?"#0f172a":"#e5e7eb"}alphaColor(n,r){let i=n.trim().replace("#",""),o=i.length===3?i.split("").map(u=>`${u}${u}`).join(""):i;if(!/^[0-9a-fA-F]{6}$/.test(o))return n;let a=parseInt(o.slice(0,2),16),s=parseInt(o.slice(2,4),16),l=parseInt(o.slice(4,6),16);return`rgba(${a}, ${s}, ${l}, ${r})`}isLightColor(n){let r=n.trim().replace("#",""),i=r.length===3?r.split("").map(u=>`${u}${u}`).join(""):r;if(!/^[0-9a-fA-F]{6}$/.test(i))return!1;let o=parseInt(i.slice(0,2),16),a=parseInt(i.slice(2,4),16),s=parseInt(i.slice(4,6),16);return(.2126*o+.7152*a+.0722*s)/255>.62}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=In({type:e,selectors:[["ib-chart-widget"]],viewQuery:function(r,i){if(r&1&&oo(DZ,5),r&2){let o;Da(o=Sa())&&(i.chartHost=o.first)}},inputs:{widget:"widget",records:"records",fontSizePx:"fontSizePx"},features:[Sr],decls:6,vars:4,consts:[["chartHost",""],[1,"chart-widget"],[1,"chart-widget__title"],[1,"chart-widget__body"],[1,"chart-widget__canvas"],[1,"chart-widget__empty"]],template:function(r,i){r&1&&(io(0,"div",1),Mt(1,SZ,2,1,"div",2),io(2,"div",3),Gp(3,"div",4,0),Mt(5,CZ,2,0,"div",5),xa()()),r&2&&(ao("chart-widget--untitled",!i.widget.title),ee(),At(i.widget.title?1:-1),ee(4),At(i.hasData?-1:5))},dependencies:[Kn],styles:["[_nghost-%COMP%]{display:block;width:100%;height:100%}.chart-widget[_ngcontent-%COMP%]{width:100%;height:100%;display:grid;grid-template-rows:auto minmax(0,1fr);gap:.35rem}.chart-widget__body[_ngcontent-%COMP%]{position:relative;min-height:0}.chart-widget--untitled[_ngcontent-%COMP%]{grid-template-rows:minmax(0,1fr);gap:0}.chart-widget__title[_ngcontent-%COMP%]{font-size:1em;font-weight:700;line-height:1.1;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chart-widget__canvas[_ngcontent-%COMP%], .chart-widget__empty[_ngcontent-%COMP%]{width:100%;height:100%;min-height:0}.chart-widget__empty[_ngcontent-%COMP%]{position:absolute;inset:0;display:grid;place-items:center;color:#94a3b8e0;font-size:.82em;border:1px dashed rgba(148,163,184,.28);border-radius:.8em;background:#0f172a14}"]})}}return e})();var EZ=["chartHost"];Vr([qE,ab,od,pd]);var wV=(()=>{class e{constructor(){this.label="",this.value=0,this.unit="",this.min=0,this.max=100,this.tone="neutral",this.fontSizePx=16,this.backgroundColor="",this.textColor="",this.chart=null,this.renderQueued=!1}ngAfterViewInit(){this.queueRender(),typeof ResizeObserver<"u"&&this.chartHost&&(this.resizeObserver=new ResizeObserver(()=>this.queueRender()),this.resizeObserver.observe(this.chartHost.nativeElement))}ngOnChanges(){this.queueRender()}ngOnDestroy(){this.resizeObserver?.disconnect(),this.chart?.dispose(),this.chart=null}queueRender(){this.renderQueued||(this.renderQueued=!0,queueMicrotask(()=>{this.renderQueued=!1,this.renderChart()}))}renderChart(){let n=this.chartHost?.nativeElement;n&&(this.chart??=Hg(n,void 0,{renderer:"svg"}),this.chart.setOption(this.buildOption(n.clientWidth,n.clientHeight),!0),this.chart.resize())}buildOption(n=400,r=300){let i=this.toneColor(),o=this.effectiveTextColor(),a=this.alphaColor(o,.72),s=this.alphaColor(o,.85),l=Math.min(n,r),u=l>=180,c=Math.max(11,Math.round(Math.min(n*.06,l*.105,Math.max(this.fontSizePx*.9,l*.09)))),f=w=>new Intl.NumberFormat(void 0,{maximumSignificantDigits:3,notation:Math.abs(w)>=1e4?"compact":"standard"}).format(w),d=Math.max(f(this.min).length,f(this.max).length),p=12+c*.8,h=u?p+c*d*.6:12,m=Math.max(12,Math.min(n/2-h,(r-(u?p*1.5+c:16)-32)/1.5)),g=m+(u?p+c/2+8:10),v=Math.max(5,Math.round(m*.18)),y=new Intl.NumberFormat(void 0,{maximumSignificantDigits:21}).format(this.value),_=Math.max(12,Math.floor(Math.min(Math.max(this.fontSizePx*1.8,m*.38),m*.42,(m-v)*1.7/Math.max(1,y.length*.62+this.unit.length*.3)))),x=Math.max(11,Math.round(Math.max(c*.8,m*.14))),D=Math.round(_*1.15),S=Math.round(x*1.3),C=Math.max(m*.48,-m*.05+(D+S)/2+8);return{animation:!1,backgroundColor:"transparent",graphic:u?Array.from({length:5},(w,I)=>{let b=(210-I*60)*Math.PI/180,T=Math.cos(b),A=m+p;return{type:"text",silent:!0,x:n/2+T*A,y:g-Math.sin(b)*A,style:{text:f(this.min+(this.max-this.min)*I/4),fill:s,font:`${c}px sans-serif`,align:T<-.4?"right":T>.4?"left":"center",verticalAlign:"middle"}}}):[],series:[{type:"gauge",min:this.min,max:this.max,startAngle:210,endAngle:-30,center:[n/2,g],radius:m,splitNumber:4,progress:{show:!0,width:v,roundCap:!0,itemStyle:{color:i}},axisLine:{lineStyle:{width:v,color:[[1,this.alphaColor(o,.1)]]}},pointer:{show:!1},axisTick:{show:!1},splitLine:{show:!1},axisLabel:{show:!1,color:s,fontSize:c,distance:-v-p,formatter:f},detail:{valueAnimation:!1,formatter:`${y}${this.unit?` {unit|${this.unit}}`:""}`,offsetCenter:[0,"-5%"],color:o,fontSize:_,lineHeight:D,fontWeight:700,rich:{unit:{fontSize:Math.max(10,Math.round(_*.35)),verticalAlign:"middle",color:a,padding:[0,0,0,3]}}},title:{show:!0,offsetCenter:[0,`${C/m*100}%`],color:a,fontSize:x,lineHeight:S,width:m*1.5,overflow:"truncate",fontWeight:700},data:[{value:this.value,name:this.label}]}]}}toneColor(){return this.tone==="good"?"#73bf69":this.tone==="warn"?"#ffb357":this.tone==="bad"?"#f2495c":"#6bb8ff"}cardStyle(){return{background:this.backgroundColor||"#0f172a",color:this.effectiveTextColor()}}effectiveTextColor(){return this.textColor?this.textColor:this.isLightColor(this.backgroundColor||"#0f172a")?"#0f172a":"#f8fafc"}alphaColor(n,r){let i=n.trim().replace("#",""),o=i.length===3?i.split("").map(u=>`${u}${u}`).join(""):i;if(!/^[0-9a-fA-F]{6}$/.test(o))return n;let a=parseInt(o.slice(0,2),16),s=parseInt(o.slice(2,4),16),l=parseInt(o.slice(4,6),16);return`rgba(${a}, ${s}, ${l}, ${r})`}isLightColor(n){let r=n.trim().replace("#",""),i=r.length===3?r.split("").map(u=>`${u}${u}`).join(""):r;if(!/^[0-9a-fA-F]{6}$/.test(i))return!1;let o=parseInt(i.slice(0,2),16),a=parseInt(i.slice(2,4),16),s=parseInt(i.slice(4,6),16);return(.2126*o+.7152*a+.0722*s)/255>.62}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=In({type:e,selectors:[["ib-gauge-widget"]],viewQuery:function(r,i){if(r&1&&oo(EZ,7),r&2){let o;Da(o=Sa())&&(i.chartHost=o.first)}},inputs:{label:"label",value:"value",unit:"unit",min:"min",max:"max",tone:"tone",fontSizePx:"fontSizePx",backgroundColor:"backgroundColor",textColor:"textColor"},features:[Sr],decls:3,vars:2,consts:[["chartHost",""],[1,"gauge-card",3,"ngStyle"],[1,"gauge-card__canvas"]],template:function(r,i){r&1&&(ne(0,"div",1),gt(1,"div",2,0),ue()),r&2&&(xe("ngStyle",i.cardStyle()),Re("data-tone",i.tone))},dependencies:[Kn,Ei],styles:["[_nghost-%COMP%]{display:block;width:100%;height:100%}.gauge-card[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:inherit;box-sizing:border-box;overflow:hidden}.gauge-card__canvas[_ngcontent-%COMP%]{width:100%;height:100%}"]})}}return e})();function bZ(e,t){if(e&1&&(ne(0,"small"),Oe(1),ue()),e&2){let n=te();ee(),Xe(n.unit)}}var TV=(()=>{class e{constructor(){this.label="",this.value=0,this.unit="",this.tone="neutral",this.backgroundColor="",this.textColor="",this.textAlign="center"}cardStyle(){return{background:this.backgroundColor||"#0f172a",color:this.effectiveTextColor(),textAlign:this.textAlign,justifyItems:this.textAlign==="left"?"start":this.textAlign==="right"?"end":"center"}}effectiveTextColor(){return this.textColor?this.textColor:this.isLightColor(this.backgroundColor||"#0f172a")?"#0f172a":"#f8fafc"}isLightColor(n){let r=n.trim().replace("#",""),i=r.length===3?r.split("").map(u=>`${u}${u}`).join(""):r;if(!/^[0-9a-fA-F]{6}$/.test(i))return!1;let o=parseInt(i.slice(0,2),16),a=parseInt(i.slice(2,4),16),s=parseInt(i.slice(4,6),16);return(.2126*o+.7152*a+.0722*s)/255>.62}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=In({type:e,selectors:[["ib-kpi-widget"]],inputs:{label:"label",value:"value",unit:"unit",tone:"tone",backgroundColor:"backgroundColor",textColor:"textColor",textAlign:"textAlign"},decls:6,vars:5,consts:[[1,"kpi-card",3,"ngStyle"],[1,"kpi-card__label"],[1,"kpi-card__value"]],template:function(r,i){r&1&&(ne(0,"div",0)(1,"div",1),Oe(2),ue(),ne(3,"div",2),Oe(4),Mt(5,bZ,2,1,"small"),ue()()),r&2&&(xe("ngStyle",i.cardStyle()),Re("data-tone",i.tone),ee(2),Xe(i.label),ee(2),Ea(" ",i.value),ee(),At(i.unit?5:-1))},dependencies:[Kn,Ei],styles:["[_nghost-%COMP%]{display:block;width:100%;height:100%;border-radius:inherit}.kpi-card[_ngcontent-%COMP%]{width:100%;height:100%;display:grid;align-content:center;justify-items:center;gap:.3em;padding:.65em .85em;border-radius:inherit;box-sizing:border-box;text-align:center}.kpi-card__label[_ngcontent-%COMP%]{font-size:.62em;font-weight:700;letter-spacing:.01em;line-height:1.2;color:inherit;opacity:.72}.kpi-card__value[_ngcontent-%COMP%]{display:inline-flex;align-items:baseline;gap:.16em;font-size:2em;line-height:1.05;font-weight:700;color:inherit}.kpi-card__value[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{font-size:.38em;font-weight:700;color:inherit;opacity:.74}"]})}}return e})();function Ab(e){if(typeof e!="number"&&typeof e!="string"||typeof e=="string"&&!e.trim())return null;let t=Number(e);return Number.isFinite(t)?t:null}function IV(e,t){let n=Ab(t[e.valueField]),r=e.targetField?Ab(t[e.targetField]):e.target??100;if(n===null||r===null||r<=0)return null;let i=n/r*100;if(!Number.isFinite(i))return null;let o=e.goodThreshold??(e.lowerIsBetter?80:100),a=e.warnThreshold??(e.lowerIsBetter?100:80),s=e.lowerIsBetter?i<=o?"good":i<=a?"warn":"bad":i>=o?"good":i>=a?"warn":"bad";return{value:n,target:r,percent:i,fill:Math.max(0,Math.min(100,i)),tone:s}}function MV(e,t){let n=t[e.valueField];return n==null?void 0:e.states.find(r=>r.value===String(n))}function AV(e,t){let n=t.flatMap((c,f)=>{let d=Ab(c[e.valueField]),p=e.timeField?c[e.timeField]:void 0,h=e.timeField?typeof p=="number"?p:typeof p=="string"&&p.trim()?Date.parse(p):NaN:f;return d!==null&&Number.isFinite(h)?[{value:d,time:h}]:[]}).sort((c,f)=>c.time-f.time).slice(-(e.maxItems??60));if(!n.length)return null;let r=n.map(c=>c.value),i=Math.min(...r),o=Math.max(...r),a=n.map((c,f)=>({x:n.length===1?200:8+f/(n.length-1)*384,y:o===i?50:88-(c.value-i)/(o-i)*76})),s=a.map((c,f)=>`${f?"L":"M"}${c.x.toFixed(2)},${c.y.toFixed(2)}`).join(" "),l=n.length>1?r[r.length-1]-r[0]:null,u=l===null||l===0?"neutral":(e.lowerIsBetter?l<0:l>0)?"good":"bad";return{value:r[r.length-1],delta:l,tone:u,path:s,area:`${s} L${a[a.length-1].x},100 L${a[0].x},100 Z`,last:a[a.length-1],count:n.length}}function wZ(e,t){if(e&1&&(ne(0,"div",3)(1,"strong",4),Oe(2),ne(3,"small"),Oe(4),ue()(),ne(5,"span",5),Oe(6),ne(7,"small"),Oe(8,"%"),ue()()(),ne(9,"div",6),gt(10,"span"),ue(),ne(11,"div",7)(12,"span"),Oe(13),ue(),ne(14,"span"),Oe(15),ue()()),e&2){let n=t,r=te(2);ee(2),Xe(r.format(n.value)),ee(2),Xe(r.unit()),ee(),Re("data-tone",n.tone),ee(),Xe(r.format(n.percent)),ee(3),Re("aria-label",r.widget.name)("aria-valuemin",0)("aria-valuemax",n.target)("aria-valuenow",n.fill*n.target/100)("aria-valuetext",r.format(n.percent)+"% of target"),ee(),Ca("width",n.fill,"%"),Re("data-tone",n.tone),ee(3),$p("Target ",r.format(n.target)," ",r.unit()),ee(2),Xe(r.widget.lowerIsBetter?n.percent<=100?"Within target":"Above target":n.percent>=100?"Target reached":"In progress")}}function TZ(e,t){e&1&&(ne(0,"div",2),Oe(1,"No data"),ne(2,"span"),Oe(3,"Choose a value and a positive target."),ue()())}function IZ(e,t){if(e&1&&Mt(0,wZ,16,15)(1,TZ,4,0,"div",2),e&2){let n,r=te();At((n=r.progress())?0:1,n)}}function MZ(e,t){if(e&1&&(ne(0,"div",8)(1,"span",9),Oe(2),ue(),ne(3,"strong",10),Oe(4),ue()(),ne(5,"div",7),Oe(6),ue()),e&2){let n=te(),r=n.status();Re("data-tone",(r==null?null:r.tone)||"neutral"),ee(2),Xe(r?n.icon(r.tone):"?"),ee(),xe("title",(r==null?null:r.label)||"Unknown"),ee(),Xe((r==null?null:r.label)||"Unknown"),ee(2),Xe(r?"Current state":"No matching state")}}function AZ(e,t){if(e&1&&(Ku(),gt(0,"path",13)(1,"path",14)),e&2){let n=te();Re("d",n.area),ee(),Re("d",n.path)}}function NZ(e,t){if(e&1&&(ne(0,"div",3)(1,"strong",4),Oe(2),ne(3,"small"),Oe(4),ue()()(),Ku(),ne(5,"svg",11),Mt(6,AZ,2,2),gt(7,"circle",12),ue(),ep(),ne(8,"div",7)(9,"span"),Oe(10),ue(),ne(11,"span"),Oe(12),ue()()),e&2){let n=t,r=te(2);ee(2),Xe(r.format(n.value)),ee(2),Xe(r.unit()),ee(),Re("aria-label",r.widget.name+", "+n.count+" samples"),ee(),At(n.count>1?6:-1),ee(),Re("cx",n.last.x)("cy",n.last.y),ee(2),Re("data-tone",n.tone),ee(),Xe(n.delta===null?"One sample":(n.delta>0?"+":"")+r.format(n.delta)+" "+r.unit()+" vs first sample"),ee(2),Ea("",n.count," samples")}}function OZ(e,t){e&1&&(ne(0,"div",2),Oe(1,"No data"),ne(2,"span"),Oe(3,"Choose a dataset with numeric history."),ue()())}function RZ(e,t){if(e&1&&Mt(0,NZ,13,9)(1,OZ,4,0,"div",2),e&2){let n,r=te();At((n=r.trend())?0:1,n)}}var NV=(()=>{class e{constructor(){this.records=[],this.current=0}progress(){return this.widget.type==="progress"?IV(this.widget,this.records[this.current]??{}):null}status(){return this.widget.type==="status"?MV(this.widget,this.records[this.current]??{}):void 0}trend(){return this.widget.type==="trend"?AV(this.widget,this.records):null}unit(){return this.widget.type==="status"?"":this.widget.unit??""}format(n){return new Intl.NumberFormat(void 0,{maximumFractionDigits:1,notation:Math.abs(n)>=1e6?"compact":"standard"}).format(n)}icon(n){return{good:"\u2713",warn:"!",bad:"\xD7",neutral:"\u2212"}[n]??"?"}colors(){let n=this.widget.style.backgroundColor||"#ffffff",r=n.replace("#",""),i=r.length===3?r.split("").map(a=>a+a).join(""):r,o=/^[a-f\d]{6}$/i.test(i)&&parseInt(i.slice(0,2),16)*.2126+parseInt(i.slice(2,4),16)*.7152+parseInt(i.slice(4,6),16)*.0722>150;return{background:n,color:this.widget.style.color||(o?"#0f172a":"#f8fafc"),"--font-scale":(this.widget.style.fontSize||28)/28,"--good":o?"#15803d":"#86d7a4","--warn":o?"#a16207":"#f6cb78","--bad":o?"#be123c":"#fda4af","--accent":o?"#0284c7":"#38bdf8"}}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=In({type:e,selectors:[["ib-metric-widget"]],inputs:{widget:"widget",records:"records",current:"current"},decls:6,vars:5,consts:[[1,"metric",3,"ngStyle"],[1,"label",3,"title"],[1,"empty"],[1,"value-row"],[1,"value"],[1,"percent"],["role","progressbar",1,"track"],[1,"detail"],[1,"status"],["aria-hidden","true",1,"status-icon"],[3,"title"],["viewBox","0 0 400 100","preserveAspectRatio","none","role","img",1,"sparkline"],["r","4"],[1,"area"],[1,"line"]],template:function(r,i){if(r&1&&(ne(0,"section",0)(1,"div",1),Oe(2),ue(),Mt(3,IZ,2,1)(4,MZ,7,5)(5,RZ,2,1),ue()),r&2){let o;xe("ngStyle",i.colors()),Re("data-kind",i.widget.type),ee(),xe("title",i.widget.name),ee(),Xe(i.widget.name),ee(),At((o=i.widget.type)==="progress"?3:o==="status"?4:o==="trend"?5:-1)}},dependencies:[Kn,Ei],styles:["[_nghost-%COMP%]{display:block;width:100%;height:100%;border-radius:inherit;min-width:0}.metric[_ngcontent-%COMP%]{container-type:size;box-sizing:border-box;width:100%;height:100%;border-radius:inherit;padding:min(4%,1em) 6%;display:flex;flex-direction:column;justify-content:center;gap:3%;overflow:hidden;font-family:inherit}.label[_ngcontent-%COMP%]{flex-shrink:0;font-size:clamp(.286em,5.1cqw * var(--font-scale),.93em);font-weight:600;line-height:1.25;opacity:.72;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.value-row[_ngcontent-%COMP%]{display:flex;align-items:baseline;justify-content:space-between;gap:4%;min-width:0;flex-shrink:0}.value[_ngcontent-%COMP%]{font-size:clamp(.57em,15cqw * var(--font-scale),3.14em);font-variant-numeric:tabular-nums;line-height:1.2;letter-spacing:-.035em;white-space:nowrap;min-width:0}small[_ngcontent-%COMP%]{font-size:.34em;font-weight:600;margin-left:.25em;letter-spacing:0;opacity:.75}.percent[_ngcontent-%COMP%]{font-size:clamp(.43em,7cqw * var(--font-scale),1.43em);font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}.metric[data-kind=progress][_ngcontent-%COMP%] .value[_ngcontent-%COMP%], .metric[data-kind=trend][_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{font-size:clamp(.57em,12cqw * var(--font-scale),2.57em)}.detail[_ngcontent-%COMP%]{font-size:clamp(.286em,3.5cqw,.714em);line-height:1.3;display:flex;justify-content:space-between;gap:1em;opacity:.8;min-width:0}.detail[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.track[_ngcontent-%COMP%]{height:clamp(.214em,7cqh,.786em);border-radius:999px;background:color-mix(in srgb,currentColor 12%,transparent);overflow:hidden;flex-shrink:0}.track[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;height:100%;border-radius:inherit;background:var(--accent)}[data-tone=good][_ngcontent-%COMP%]{color:var(--good)}[data-tone=warn][_ngcontent-%COMP%]{color:var(--warn)}[data-tone=bad][_ngcontent-%COMP%]{color:var(--bad)}.track[_ngcontent-%COMP%] span[data-tone=good][_ngcontent-%COMP%]{background:var(--good)}.track[_ngcontent-%COMP%] span[data-tone=warn][_ngcontent-%COMP%]{background:var(--warn)}.track[_ngcontent-%COMP%] span[data-tone=bad][_ngcontent-%COMP%]{background:var(--bad)}.status[_ngcontent-%COMP%]{display:flex;gap:5%;align-items:center;font-size:clamp(.57em,11cqw * var(--font-scale),2.286em);line-height:1.3;min-width:0}.status[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.status-icon[_ngcontent-%COMP%]{width:1.35em;height:1.35em;display:grid;place-items:center;flex-shrink:0;border:1.5px solid currentColor;background:color-mix(in srgb,currentColor 10%,transparent);border-radius:50%;font-size:.75em;font-weight:600}.sparkline[_ngcontent-%COMP%]{width:100%;min-height:12px;flex:1;max-height:40%;overflow:visible;color:var(--accent)}.sparkline[_ngcontent-%COMP%] .line[_ngcontent-%COMP%]{fill:none;stroke:currentColor;stroke-width:2.5;vector-effect:non-scaling-stroke;stroke-linecap:round;stroke-linejoin:round}.sparkline[_ngcontent-%COMP%] .area[_ngcontent-%COMP%]{fill:currentColor;opacity:.09}.sparkline[_ngcontent-%COMP%] circle[_ngcontent-%COMP%]{fill:currentColor}.empty[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5em;font-size:clamp(14px,8cqw,42px);font-weight:600;opacity:.65}.empty[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:.45em;font-weight:400}"]})}}return e})();var OV=(()=>{class e{constructor(){this.fitTextValue="",this.fitTextScale=1,this.element=ye($r).nativeElement,this.frame=0,this.schedule=()=>{cancelAnimationFrame(this.frame),this.frame=requestAnimationFrame(()=>this.fit())}}ngAfterViewInit(){this.observer=new ResizeObserver(this.schedule),this.observer.observe(this.element.parentElement),document.fonts?.addEventListener("loadingdone",this.schedule),this.schedule()}ngOnChanges(){this.schedule()}ngOnDestroy(){cancelAnimationFrame(this.frame),this.observer?.disconnect(),document.fonts?.removeEventListener("loadingdone",this.schedule)}fit(){let n=this.element,r=n.style;for(let c of["font-size","max-height","display","overflow","-webkit-line-clamp","-webkit-box-orient"])r.removeProperty(c);if(!this.ibFitText.autoFit||(this.ibFitText.overflow??"wrap")!=="wrap")return;let i=n.parentElement,o=getComputedStyle(i),a=i.clientHeight-parseFloat(o.paddingTop)-parseFloat(o.paddingBottom);if(a<=0||i.clientWidth<=0)return;r.maxHeight="none";let s=this.ibFitText.style.fontSize||16,l=Math.max(1,s*.8);for(let c=0;c<=Math.ceil(s-l)&&(r.fontSize=`${Math.max(l,s-c)*this.fitTextScale}px`,!(n.scrollHeight<=a+.5&&n.scrollWidth<=n.clientWidth));c++);let u=parseFloat(getComputedStyle(n).lineHeight);r.maxHeight=`${a}px`,r.overflow="hidden",r.display="-webkit-box",r.setProperty("-webkit-box-orient","vertical"),r.setProperty("-webkit-line-clamp",String(Math.max(1,Math.floor(a/u))))}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275dir=_a({type:e,selectors:[["","ibFitText",""]],inputs:{ibFitText:"ibFitText",fitTextValue:"fitTextValue",fitTextScale:"fitTextScale"},features:[Sr]})}}return e})();var PZ=["videoPlayer"],LZ=e=>({$implicit:e,depth:0}),kZ=(e,t)=>({$implicit:e,depth:t}),FZ=(e,t)=>t.id,RV=(e,t)=>t.key;function BZ(e,t){e&1&&yc(0)}function VZ(e,t){if(e&1&&(ne(0,"div",7)(1,"span",15),Oe(2),ue()()),e&2){let n=te().$implicit,r=te(3),i=ml(0);xe("ngStyle",r.widgetStyle(n)),Re("data-widget-id",n.id),ee(),ao("widget__text-content--clip",n.overflow==="clip")("widget__text-content--ellipsis",n.overflow==="ellipsis"),xe("ibFitText",n)("fitTextValue",r.textValue(n))("fitTextScale",i.previewScale),ee(),Xe(r.textValue(n))}}function UZ(e,t){if(e&1&>(0,"img",16),e&2){let n=te(2).$implicit,r=te(3);xe("src",r.textValue(n),Np)("alt",n.name)("ngStyle",r.imageStyle(n))}}function HZ(e,t){e&1&&(ne(0,"div",17),Oe(1,"Image unavailable"),ue())}function zZ(e,t){if(e&1&&(ne(0,"div",8),Mt(1,UZ,1,3,"img",16)(2,HZ,2,0,"div",17),ue()),e&2){let n=te().$implicit,r=te(3);xe("ngStyle",r.widgetStyle(n)),Re("data-widget-id",n.id),ee(),At(r.imageReady(n)?1:2)}}function jZ(e,t){if(e&1&&(ne(0,"div",9)(1,"span",18),Oe(2),ue()()),e&2){let n=te().$implicit,r=te(3);xe("ngStyle",r.widgetStyle(n)),Re("data-widget-id",n.id),ee(2),Xe(r.clockValue(n))}}function GZ(e,t){if(e&1&>(0,"div",10),e&2){let n=te().$implicit,r=te(3);xe("ngStyle",r.widgetStyle(n)),Re("data-widget-id",n.id)}}function $Z(e,t){if(e&1){let n=W0();ne(0,"div",11)(1,"video",19,1),pl("error",function(){Zu(n);let i=hl(2);return Xu(i.setAttribute("data-playback-failed",""))})("loadeddata",function(){Zu(n);let i=hl(2);return Xu(i.removeAttribute("data-playback-failed"))}),ue(),ne(3,"div",20),Oe(4,"Video unavailable"),ue()()}if(e&2){let n=te().$implicit,r=te(2),i=te(),o=ml(0);xe("ngStyle",i.widgetStyle(n)),Re("data-widget-id",n.id),ee(),xe("src",i.videoValue(n),Np)("poster",i.posterValue(n))("autoplay",n.autoplay??!0)("muted",(o.layout.backgroundAudioMode==="layout"?o.layout.backgroundAudio:r.backgroundAudio)?!0:n.muted??!0)("loop",n.loop??!0)("controls",n.controls??!1)}}function WZ(e,t){if(e&1&&(ne(0,"div",23),gt(1,"iframe",24),ue()),e&2){let n=te(2).$implicit,r=te(3);ao("widget--html-cover",r.isYouTubeIframe(n)),xe("ngStyle",r.widgetStyle(n)),Re("data-widget-id",n.id),ee(),Ca("pointer-events",r.isYouTubeIframe(n)&&!n.controls?"none":null),xe("src",r.iframeValue(n),v0)("ngStyle",r.iframeStyle(n)),Re("inert",r.isYouTubeIframe(n)&&!n.controls?"":null)("tabindex",r.isYouTubeIframe(n)&&!n.controls?-1:null)}}function YZ(e,t){if(e&1&>(0,"div",22),e&2){let n=te(2).$implicit,r=te(3);xe("ngStyle",r.widgetStyle(n))("innerHTML",r.htmlValue(n),g0),Re("data-widget-id",n.id)}}function qZ(e,t){if(e&1&&Mt(0,WZ,2,10,"div",21)(1,YZ,1,3,"div",22),e&2){let n=te().$implicit;At(n.renderMode==="iframe"?0:1)}}function ZZ(e,t){if(e&1&&(ne(0,"div",12),gt(1,"ib-chart-widget",25),ue()),e&2){let n=te().$implicit,r=te(3),i=ml(0);xe("ngStyle",r.widgetStyle(n)),Re("data-widget-id",n.id),ee(),xe("widget",n)("records",r.chartRecords(n))("fontSizePx",(n.style.fontSize||16)*i.previewScale)}}function XZ(e,t){if(e&1&&(ne(0,"div",12),gt(1,"ib-kpi-widget",26),ue()),e&2){let n=te().$implicit,r=te(3);xe("ngStyle",r.widgetStyle(n)),Re("data-widget-id",n.id),ee(),xe("textAlign",n.style.textAlign||"center")("label",r.metricState(n).label)("value",r.metricState(n).value)("unit",n.unit||"")("tone",r.metricState(n).tone)("backgroundColor",n.style.backgroundColor||"")("textColor",n.style.color||"")}}function KZ(e,t){if(e&1&&(ne(0,"div",12),gt(1,"ib-metric-widget",27),ue()),e&2){let n=te().$implicit,r=te(3);xe("ngStyle",r.widgetStyle(n)),Re("data-widget-id",n.id),ee(),xe("widget",n)("records",r.metricData(n).records)("current",r.metricData(n).current)}}function QZ(e,t){if(e&1&&(ne(0,"div",12),gt(1,"ib-metric-widget",27),ue()),e&2){let n=te().$implicit,r=te(3);xe("ngStyle",r.widgetStyle(n)),Re("data-widget-id",n.id),ee(),xe("widget",n)("records",r.metricData(n).records)("current",r.metricData(n).current)}}function JZ(e,t){if(e&1&&(ne(0,"div",12),gt(1,"ib-metric-widget",27),ue()),e&2){let n=te().$implicit,r=te(3);xe("ngStyle",r.widgetStyle(n)),Re("data-widget-id",n.id),ee(),xe("widget",n)("records",r.metricData(n).records)("current",r.metricData(n).current)}}function eX(e,t){if(e&1&&(ne(0,"div",12),gt(1,"ib-gauge-widget",28),ue()),e&2){let n=te().$implicit,r=te(3),i=ml(0);xe("ngStyle",r.widgetStyle(n)),Re("data-widget-id",n.id),ee(),xe("label",r.metricState(n).label)("value",r.metricState(n).value)("unit",n.unit||"")("min",n.min??0)("max",n.max??100)("tone",r.metricState(n).tone)("fontSizePx",(n.style.fontSize||16)*i.previewScale)("backgroundColor",n.style.backgroundColor||"")("textColor",n.style.color||"")}}function tX(e,t){if(e&1&&(ne(0,"th"),Oe(1),ue()),e&2){let n=t.$implicit;ee(),Xe(n.label)}}function nX(e,t){if(e&1&&(ne(0,"thead")(1,"tr"),fl(2,tX,2,1,"th",null,RV),ue()()),e&2){let n=te(2).$implicit,r=te(3);ee(2),dl(r.tableColumns(n))}}function rX(e,t){if(e&1&&(ne(0,"td",31),Oe(1),ue()),e&2){let n=t.$implicit,r=te().$implicit,i=te(5);xe("ngClass",i.tableCellClass(n.type)),ee(),Xe(i.tableCellValue(r[n.key],n.type))}}function iX(e,t){if(e&1&&(ne(0,"tr"),fl(1,rX,2,2,"td",31,RV),ue()),e&2){let n=te(2).$implicit,r=te(3);ee(),dl(r.tableColumns(n))}}function oX(e,t){if(e&1&&(ne(0,"div",29)(1,"table",30),Mt(2,nX,4,0,"thead"),ne(3,"tbody"),fl(4,iX,3,0,"tr",null,j0),ue()()()),e&2){let n=te().$implicit,r=te(3);ao("widget--table-zebra",n.zebra!==!1),xe("ngStyle",r.widgetStyle(n)),Re("data-widget-id",n.id),ee(2),At(n.showHeader!==!1?2:-1),ee(2),dl(r.tableRows(n))}}function aX(e,t){e&1&&yc(0)}function sX(e,t){if(e&1&&gc(0,aX,1,0,"ng-container",6),e&2){let n=te(2).$implicit,r=te().depth;te();let i=hl(4);xe("ngTemplateOutlet",i)("ngTemplateOutletContext",Z0(2,kZ,n.children,r+1))}}function lX(e,t){if(e&1&&(ne(0,"div",14),Mt(1,sX,1,5,"ng-container"),ue()),e&2){let n=te().$implicit,r=te().depth,i=te(2);xe("ngStyle",i.widgetStyle(n)),Re("data-widget-id",n.id),ee(),At(r<5?1:-1)}}function uX(e,t){if(e&1&&Mt(0,VZ,3,10,"div",7)(1,zZ,3,3,"div",8)(2,jZ,3,3,"div",9)(3,GZ,1,2,"div",10)(4,$Z,5,8,"div",11)(5,qZ,2,1)(6,ZZ,2,5,"div",12)(7,XZ,2,9,"div",12)(8,KZ,2,5,"div",12)(9,QZ,2,5,"div",12)(10,JZ,2,5,"div",12)(11,eX,2,11,"div",12)(12,oX,6,5,"div",13)(13,lX,2,3,"div",14),e&2){let n,r=t.$implicit;At((n=r.type)==="text"?0:n==="image"?1:n==="clock"?2:n==="rectangle"?3:n==="video"?4:n==="html"?5:n==="chart"?6:n==="kpi"?7:n==="progress"?8:n==="status"?9:n==="trend"?10:n==="gauge"?11:n==="table"?12:n==="container"?13:-1)}}function cX(e,t){if(e&1&&fl(0,uX,14,1,null,null,FZ),e&2){let n=t.$implicit;dl(n)}}function fX(e,t){if(e&1&&(ne(0,"div",4),gt(1,"div",5),gc(2,BZ,1,0,"ng-container",6)(3,cX,2,0,"ng-template",null,0,X0),ue()),e&2){let n=t,r=hl(4),i=te();Ca("view-transition-name",i.transitionName()),xe("ngStyle",i.stageStyle()),ee(),xe("ngStyle",i.backgroundLayerStyle(n)),ee(),xe("ngTemplateOutlet",r)("ngTemplateOutletContext",q0(6,LZ,n.widgets))}}function dX(e,t){if(e&1&&(ne(0,"p",3),Oe(1),ue()),e&2){let n=te();ee(),Xe(n.mediaFailed()?"Waiting for media. Retrying\u2026":"Preparing content\u2026")}}function pX(e){let t=!!e.backgroundImageUrl;return{backgroundColor:e.backgroundColor||"#f8fafc",backgroundImage:t?`url(${e.backgroundImageUrl})`:e.backgroundColor?"none":"linear-gradient(180deg, #f8fafc 0%, #eff6ff 100%)",backgroundSize:t?e.backgroundSize==="fill"?"100% 100%":e.backgroundSize||"cover":void 0,backgroundPosition:t?"center center":void 0,backgroundRepeat:t?"no-repeat":void 0}}function hX(e){return jt(It({},pX(e)),{zIndex:e.backgroundLayer??0})}function mX(e){return e==="middle"?"center":e==="bottom"?"flex-end":"flex-start"}var PV=(()=>{class e{constructor(){this.backgroundLayerStyle=hX,this.sanitizer=ye(yx),this.destroyRef=ye(yi),this.changeDetector=ye(rx),this.presented=ha(null),this.mediaFailed=ha(!1),this.framePresented=CM(),this.transitionName=ha("none"),this.presentedKey="",this.images=new Map,this.iframeUrlCache=new Map,this.iframeStyleCache=new Map,this.datasets={},this.sceneIndex=0,this.elapsedLayoutSeconds=0,this.previewScale=1,this.templateVars={},this.smoothPlayback=!1;let n=()=>this.resumeVideoPlayback();globalThis.addEventListener("insightboardplaybackresume",n),globalThis.addEventListener("online",n),this.destroyRef.onDestroy(()=>globalThis.removeEventListener("insightboardplaybackresume",n)),this.destroyRef.onDestroy(()=>globalThis.removeEventListener("online",n)),this.destroyRef.onDestroy(()=>{this.pending=void 0,this.transition?.skipTransition();for(let r of this.images.values())r.cancel();this.images.clear()})}renderFrame(){return(this.smoothPlayback?this.presented():null)??this.requestedFrame()}requestedFrame(){return{layout:this.layout,datasets:this.datasets,sceneIndex:this.sceneIndex,elapsedSceneSeconds:this.elapsedSceneSeconds,elapsedLayoutSeconds:this.elapsedLayoutSeconds,previewScale:this.previewScale,templateVars:this.templateVars}}ngOnChanges(){if(!this.smoothPlayback||!this.layout)return;let n=this.requestedFrame(),r=this.frameContent(n),i=JSON.stringify([n.layout.scenes[n.sceneIndex],n.layout.resolution,n.layout.backgroundAudioMode,n.layout.backgroundAudio,r.values]);if(this.presented()&&i===this.presentedKey)this.pending=void 0,this.presented.set(n);else if(this.pending?.key===i)this.pending.frame=n;else{let s={key:i,frame:n};this.pending=s,r.images.every(l=>{let u=this.images.get(l);return u?.ready&&u.retryAt>Date.now()})?this.presentFrame(s):Promise.all(r.images.map(l=>this.loadImage(l))).then(l=>{if(this.pending!==s||this.destroyRef.destroyed)return;let u=!l.every(Boolean);!u||!this.presented()?this.presentFrame(s,u):(this.mediaFailed.set(!0),this.pending=void 0)})}let a=jt(It({},n),{sceneIndex:(n.sceneIndex+1)%n.layout.scenes.length,elapsedSceneSeconds:0});for(let s of new Set([...r.images,...this.frameContent(n,!0).images,...this.frameContent(a).images]))this.loadImage(s)}frameContent(n,r=!1){let i=n.layout.scenes[n.sceneIndex],o=new Set,a=[n.sceneIndex];i?.backgroundImageUrl&&o.add(i.backgroundImageUrl);let s=(l,u=0)=>{for(let c of l){let f=xx(i?.rotation,c.datasetId||i?.datasetId),d=this.bindingContext(c.datasetId,r?jt(It({},n),{elapsedSceneSeconds:(n.elapsedSceneSeconds??n.elapsedLayoutSeconds)+(f?.slotSeconds??f?.intervalSeconds??1)}):n);if(c.type==="image"||c.type==="text"||c.type==="html"||c.type==="video"){let p=c.type==="image"?c.imageUrl:c.type==="text"?c.text:c.type==="html"?c.html:c.videoUrl,h=ba(p,d);if(a.push(c.id,h),c.type==="image"&&h&&o.add(h),c.type==="html"&&c.renderMode!=="iframe"){let m=new DOMParser().parseFromString(h,"text/html");for(let g of Array.from(m.images))g.getAttribute("src")&&o.add(g.getAttribute("src"))}if(c.type==="video"){let m=ba(c.posterUrl,d);a.push(m),m&&o.add(m)}}else if(c.type==="table"){let p=Math.ceil((d.dataset?.records.length??0)/Math.max(1,c.maxRows??6)),m=(c.loopPages===!1||p<2?0:Math.floor((n.elapsedSceneSeconds??n.elapsedLayoutSeconds)/Math.max(1,c.pageIntervalSeconds??8))%p)*Math.max(1,c.maxRows??6);a.push(c.id,d.dataset?.fields,d.dataset?.schema,d.dataset?.records.slice(m,m+Math.max(1,c.maxRows??6)))}else c.type==="kpi"||c.type==="gauge"?a.push(c.id,d.dataset?.records[d.current]):c.type==="chart"?a.push(c.id,d.dataset?.records):c.type==="container"&&u<5&&s(c.children,u+1)}};return s(i?.widgets??[]),{values:a,images:[...o]}}loadImage(n){let r=this.images.get(n);if(r&&r.retryAt>Date.now())return r.promise;let i={ready:r?.ready??!1,retryAt:Date.now()+3e4,promise:Promise.resolve(!1),cancel:()=>{}};return i.promise=new Promise(o=>{let a=new Image,s=!1,l=c=>{s||(s=!0,globalThis.clearTimeout(u),a.onload=a.onerror=null,c||a.removeAttribute("src"),i.ready=c||i.ready,c&&(i.retryAt=Date.now()+24e4),i.cancel=()=>{},o(c))},u=globalThis.setTimeout(()=>l(!1),15e3);i.cancel=()=>l(!1),a.onload=()=>{a.decode().then(()=>l(!0),()=>l(!1))},a.onerror=()=>l(!1),a.src=n}),this.images.set(n,i),this.images.size>128&&this.images.delete(this.images.keys().next().value),i.promise}presentFrame(n,r=!1){let i=()=>{this.pending!==n||this.destroyRef.destroyed||(this.presentedKey=n.key,this.presented.set(n.frame),this.mediaFailed.set(r),this.pending=void 0,this.framePresented.emit({layout:n.frame.layout,sceneIndex:n.frame.sceneIndex}),this.changeDetector.detectChanges(),this.resumeVideoPlayback())},o=n.frame.layout.scenes[n.frame.sceneIndex]?.transition??"cut";if(this.transition?.skipTransition(),!this.presented()||o==="cut"||!document.startViewTransition||globalThis.matchMedia?.("(prefers-reduced-motion: reduce)").matches){i();return}this.transitionName.set(o==="fade"?"player-fade":"player-slide"),this.changeDetector.detectChanges(),this.transition=document.startViewTransition(i),this.transition.ready.catch(()=>{}),this.transition.finished.catch(()=>{})}ngAfterViewInit(){this.resumeVideoPlayback(),this.videoPlayers?.changes.subscribe(()=>this.resumeVideoPlayback())}scene(){if(this.smoothPlayback&&!this.presented())return;let n=this.renderFrame();return n.layout?.scenes[n.sceneIndex]}stageStyle(){return{width:`${this.renderFrame().layout.resolution.width*this.renderFrame().previewScale}px`,height:`${this.renderFrame().layout.resolution.height*this.renderFrame().previewScale}px`}}widgetStyle(n){let r=this.renderFrame().previewScale;return{left:`${n.frame.x*r}px`,top:`${n.frame.y*r}px`,width:`${n.frame.width*r}px`,height:`${n.frame.height*r}px`,zIndex:n.frame.zIndex,background:n.style.backgroundColor,color:n.style.color,fontFamily:n.style.fontFamily,fontSize:n.style.fontSize?`${n.style.fontSize*r}px`:void 0,fontWeight:n.style.fontWeight,textAlign:n.style.textAlign,alignItems:mX(n.style.verticalAlign),borderRadius:n.style.borderRadius?`${n.style.borderRadius*r}px`:void 0,padding:n.style.padding?`${n.style.padding*r}px`:void 0,opacity:n.style.opacity}}imageStyle(n){return{objectFit:n.style.objectFit??"cover",borderRadius:n.style.borderRadius?`${n.style.borderRadius*this.renderFrame().previewScale}px`:void 0}}imageReady(n){return!this.smoothPlayback||this.images.get(this.textValue(n))?.ready===!0}textValue(n){let r=n.type==="text"?n.text:n.imageUrl;return ba(r,this.bindingContext(n.datasetId))}videoValue(n){return ba(n.videoUrl,this.bindingContext(n.datasetId))}posterValue(n){return ba(n.posterUrl,this.bindingContext(n.datasetId))}htmlValue(n){return ba(n.html,this.bindingContext(n.datasetId))}iframeValue(n){let r=this.normalizeIframeUrl(n),i=this.iframeUrlCache.get(r);if(i)return i;let o=this.sanitizer.bypassSecurityTrustResourceUrl(r);return this.iframeUrlCache.set(r,o),o}isYouTubeIframe(n){return!!this.extractYouTubeVideoId(Sx(this.htmlValue(n)))}iframeStyle(n){if(!this.isYouTubeIframe(n))return null;let r=`${n.frame.width}x${n.frame.height}`,i=this.iframeStyleCache.get(r);if(i)return i;let o=this.coverEmbedStyle(n.frame.width,n.frame.height);return this.iframeStyleCache.set(r,o),o}clockValue(n){return new Intl.DateTimeFormat("en-GB",{timeZone:n.timezone,hour:"2-digit",minute:"2-digit",weekday:n.dateFormat?"short":void 0,day:n.dateFormat?"2-digit":void 0,month:n.dateFormat?"short":void 0}).format(new Date)}chartRecords(n){return this.bindingContext(n.datasetId).dataset?.records??[]}tableColumns(n){let i=this.bindingContext(n.datasetId).dataset,o=i?.fields??[],a=n.includedFields?.length?new Set(n.includedFields):null;return o.length?o.filter(s=>!a||a.has(s.key)).map(s=>({key:s.key,label:s.label,type:s.type})):(i?.schema??[]).filter(s=>!a||a.has(s)).map(s=>({key:s,label:s,type:"text"}))}tableRows(n){let i=this.bindingContext(n.datasetId).dataset?.records??[];return this.resolveTableRows(i,n)}tableCellValue(n,r){if(n==null||n==="")return"\u2014";if(r==="boolean")return n?"Yes":"No";if(r==="datetime"){let i=new Date(String(n));return Number.isNaN(i.getTime())?String(n):new Intl.DateTimeFormat("en-GB",{day:"2-digit",month:"short",hour:"2-digit",minute:"2-digit"}).format(i)}if(r==="number"){let i=Number(n);return Number.isFinite(i)?new Intl.NumberFormat("en-GB",{maximumFractionDigits:2}).format(i):String(n)}return r==="url"?String(n).replace(/^https?:\/\//,"").replace(/\/$/,""):String(n)}tableCellClass(n){return{"table__cell--number":n==="number","table__cell--boolean":n==="boolean","table__cell--url":n==="url"}}resolveTableRows(n,r){let i=Math.max(1,r.maxRows??6);if(n.length<=i||r.loopPages===!1)return n.slice(0,i);let o=Math.ceil(n.length/i),a=Math.max(1,r.pageIntervalSeconds??8),s=this.renderFrame(),l=Math.max(0,s.elapsedSceneSeconds??s.elapsedLayoutSeconds??0),c=Math.floor(l/a)%o*i;return n.slice(c,c+i)}metricData(n){let r=this.bindingContext(n.datasetId);return{records:r.dataset?.records??[],current:r.current}}bindingContext(n,r=this.renderFrame()){let i=r.layout?.scenes[r.sceneIndex],o=n||i?.datasetId,a=o?r.datasets[o]:void 0,s=r.elapsedSceneSeconds??r.elapsedLayoutSeconds,l=i?xx(i.rotation,o):void 0,u=Dx(a?.records??[],l?.conditions,l?.strategy),c=FM(a?.records??[],l,s);return{dataset:a&&jt(It({},a),{records:u}),current:c,templateVars:r.templateVars}}kpiValue(n){let r=this.bindingContext(n.datasetId),i=r.dataset?.records[r.current]??{},o=Number(i[n.valueField]??0);return Number.isFinite(o)?o:0}kpiLabel(n){let r=this.bindingContext(n.datasetId),i=r.dataset?.records[r.current]??{};return this.resolveSeriesLabel(i,n.valueField,n.labelField,n.name)}metricState(n){return{value:this.kpiValue(n),label:this.kpiLabel(n),tone:this.thresholdTone(n)}}thresholdTone(n){let r=this.kpiValue(n),i=Number.isFinite(n.warnThreshold)?Number(n.warnThreshold):null,o=Number.isFinite(n.goodThreshold)?Number(n.goodThreshold):null;return i===null&&o===null?"neutral":n.lowerIsBetter?o!==null&&r<=o?"good":i!==null&&r<=i?"warn":"bad":o!==null&&r>=o?"good":i!==null&&r>=i?"warn":"bad"}normalizeIframeUrl(n){let r=Sx(this.htmlValue(n));if(!r)return"";let i=this.extractYouTubeVideoId(r);if(!i)return r;let o=new URLSearchParams({autoplay:n.autoplay===!1?"0":"1",mute:n.muted===!1?"0":"1",loop:n.loop===!1?"0":"1",controls:n.controls?"1":"0",disablekb:n.controls?"0":"1",playsinline:"1",rel:"0"});return n.loop!==!1&&o.set("playlist",i),`https://www.youtube-nocookie.com/embed/${i}?${o.toString()}`}coverEmbedStyle(n,r){let i=Math.max(1,n),o=Math.max(1,r),a=i/o,s=16/9;return a>=s?{width:"100%",height:`${a/s*100}%`,maxWidth:"none",maxHeight:"none"}:{width:`${s/a*100}%`,height:"100%",maxWidth:"none",maxHeight:"none"}}extractYouTubeVideoId(n){let r=n?.trim();if(!r)return null;try{let i=new URL(r),o=i.hostname.replace(/^www\./,"").replace(/^m\./,""),a=i.pathname.split("/").filter(Boolean);if(o==="youtu.be")return a[0]??null;if(o==="youtube.com"||o==="youtube-nocookie.com"){if(i.pathname==="/watch")return i.searchParams.get("v");if(["embed","live","shorts"].includes(a[0]??""))return a[1]??null}}catch{return null}return null}resumeVideoPlayback(){queueMicrotask(()=>{this.videoPlayers?.forEach(n=>{let r=n.nativeElement;if(r.error?.code===2&&r.load(),r.autoplay===!1)return;let i=r.play();i&&typeof i.catch=="function"&&i.catch(()=>{})})})}resolveSeriesLabel(n,r,i,o){if(i){let s=n[i];return s!=null&&s!==""?String(s):i}let a=n[r];return a!=null&&a!==""?String(a):o}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=In({type:e,selectors:[["ib-layout-renderer"]],viewQuery:function(r,i){if(r&1&&oo(PZ,5),r&2){let o;Da(o=Sa())&&(i.videoPlayers=o)}},inputs:{layout:"layout",datasets:"datasets",sceneIndex:"sceneIndex",elapsedSceneSeconds:"elapsedSceneSeconds",elapsedLayoutSeconds:"elapsedLayoutSeconds",previewScale:"previewScale",templateVars:"templateVars",smoothPlayback:"smoothPlayback"},outputs:{framePresented:"framePresented"},features:[Sr],decls:3,vars:2,consts:[["renderWidgets",""],["videoPlayer",""],[1,"layout-stage",3,"view-transition-name","ngStyle"],["role","status",1,"media-status"],[1,"layout-stage",3,"ngStyle"],["aria-hidden","true",1,"background-layer",3,"ngStyle"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"widget","widget--text",3,"ngStyle"],[1,"widget","widget--image",3,"ngStyle"],[1,"widget","widget--clock",3,"ngStyle"],[1,"widget","widget--rectangle",3,"ngStyle"],[1,"widget","widget--video",3,"ngStyle"],[1,"widget",3,"ngStyle"],[1,"widget","widget--table",3,"ngStyle","widget--table-zebra"],[1,"widget","widget--container",3,"ngStyle"],[1,"widget__text-content",3,"ibFitText","fitTextValue","fitTextScale"],[3,"src","alt","ngStyle"],["role","status",1,"image-failure"],[1,"widget__text-content"],[3,"error","loadeddata","src","poster","autoplay","muted","loop","controls"],["role","status",1,"video-failure"],[1,"widget","widget--html",3,"ngStyle","widget--html-cover"],[1,"widget","widget--html",3,"ngStyle","innerHTML"],[1,"widget","widget--html",3,"ngStyle"],["title","HTML widget","loading","lazy","allow","autoplay; encrypted-media; picture-in-picture; fullscreen","allowfullscreen","",3,"src","ngStyle"],[3,"widget","records","fontSizePx"],[3,"textAlign","label","value","unit","tone","backgroundColor","textColor"],[3,"widget","records","current"],[3,"label","value","unit","min","max","tone","fontSizePx","backgroundColor","textColor"],[1,"widget","widget--table",3,"ngStyle"],[1,"table"],[3,"ngClass"]],template:function(r,i){if(r&1&&(Wp(0),Mt(1,fX,5,8,"div",2)(2,dX,2,1,"p",3)),r&2){let o,a=Y0(i.renderFrame());ee(),At((o=a.layout&&i.scene())?1:i.smoothPlayback?2:-1,o)}},dependencies:[Kn,sx,lx,Ei,bV,TV,wV,NV,OV],styles:["[_nghost-%COMP%]{display:block}.media-status[_ngcontent-%COMP%]{padding:1rem;color:#cbd5e1}.background-layer[_ngcontent-%COMP%]{position:absolute;inset:0;pointer-events:none}.layout-stage[_ngcontent-%COMP%]{position:relative;isolation:isolate;overflow:hidden;background:transparent;border-radius:0}.widget[_ngcontent-%COMP%]{position:absolute;box-sizing:border-box}.widget--text[_ngcontent-%COMP%], .widget--clock[_ngcontent-%COMP%]{display:flex;line-height:1.15;overflow:hidden}.widget__text-content[_ngcontent-%COMP%]{width:100%;min-width:0;max-height:100%;white-space:pre-wrap;overflow-wrap:anywhere}.widget__text-content--clip[_ngcontent-%COMP%], .widget__text-content--ellipsis[_ngcontent-%COMP%]{overflow:hidden;white-space:pre;overflow-wrap:normal}.widget__text-content--ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}.widget--image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;display:block}.image-failure[_ngcontent-%COMP%]{display:grid;place-items:center;width:100%;height:100%;background:#0f172a;color:#cbd5e1}.widget--video[_ngcontent-%COMP%] video[_ngcontent-%COMP%]{width:100%;height:100%;display:block;object-fit:cover}.video-failure[_ngcontent-%COMP%]{display:none;position:absolute;inset:0;align-items:center;justify-content:center;background:#0f172a;color:#f8fafc}video[data-playback-failed][_ngcontent-%COMP%] + .video-failure[_ngcontent-%COMP%]{display:flex}.widget--html[_ngcontent-%COMP%]{overflow:hidden}.widget--html[_ngcontent-%COMP%] iframe[_ngcontent-%COMP%]{width:100%;height:100%;border:0;display:block}.widget--html-cover[_ngcontent-%COMP%]{position:absolute}.widget--html-cover[_ngcontent-%COMP%] iframe[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.widget--container[_ngcontent-%COMP%], .widget--table[_ngcontent-%COMP%]{overflow:hidden}.table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse;table-layout:fixed;font-size:.72em}.table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.5em .65em;border-bottom:1px solid rgba(148,163,184,.18);text-align:left;vertical-align:top;overflow:hidden;text-overflow:ellipsis}.table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-size:.9em;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#0f172ab8;background:#ffffffad}.widget--table-zebra[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background:#94a3b814}.table__cell--number[_ngcontent-%COMP%], .table__cell--boolean[_ngcontent-%COMP%]{text-align:right}.table__cell--url[_ngcontent-%COMP%]{color:#2563ebeb}"]})}}return e})();var gX=(()=>{class e{constructor(){this.data=window.__IB_PREVIEW__,this.scale=innerWidth/this.data.layout.resolution.width,b0(()=>this.ready())}ready(){document.documentElement.dataset.renderReady="true"}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=In({type:e,selectors:[["ib-mcp-preview"]],decls:1,vars:7,consts:[[3,"framePresented","layout","datasets","sceneIndex","elapsedSceneSeconds","elapsedLayoutSeconds","previewScale","templateVars"]],template:function(r,i){r&1&&(ne(0,"ib-layout-renderer",0),pl("framePresented",function(){return i.ready()}),ue()),r&2&&xe("layout",i.data.layout)("datasets",i.data.datasets)("sceneIndex",i.data.sceneIndex)("elapsedSceneSeconds",i.data.elapsedSeconds)("elapsedLayoutSeconds",i.data.elapsedSeconds)("previewScale",i.scale)("templateVars",i.data.templateVars)},dependencies:[PV],encapsulation:2})}}return e})();vx(gX,{providers:[K0()]}).catch(()=>{document.documentElement.dataset.renderError="true"});
|