@dxvis/flatbi 0.0.0-stage → 0.1.1

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.
@@ -0,0 +1,43 @@
1
+ <!doctype html>
2
+ <!-- The flatbi viewer. `flatbi build` fills the two slots below: the CSP and the title in
3
+ the head, and the data, metadata and spec blocks in the body (see src/compile/html.ts). -->
4
+ <html lang="en" data-state="loading">
5
+ <head>
6
+ <meta charset="utf-8" />
7
+ <!--flatbi:head-->
8
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
9
+ <!-- An empty icon, so browsers never request /favicon.ico. -->
10
+ <link rel="icon" href="data:," />
11
+ <script type="module" crossorigin>var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r};function n(e){return/^[\t\r]/.test(e)||/^[\t\r ]*[=+\-@]/.test(e)?`'${e}`:e}function r(e){return/[",\r\n]/.test(e)?`"${e.replaceAll(`"`,`""`)}"`:e}function i(e){return e===null?``:typeof e==`number`?Number.isFinite(e)?String(e):``:r(n(e))}function a(e,t){let a=[e.map(e=>r(n(e.name))).join(`,`)];for(let n of t)a.push(e.map((e,t)=>i(n[t]??null)).join(`,`));return`${a.join(`\r
12
+ `)}\r\n`}var o=/^(\d{4})-(\d{2})-(\d{2})/,s=1e4;function c(e){let t=o.exec(e);if(!t)return;let n=Number(t[1]),r=Number(t[2]),i=Number(t[3]),a=new Date(Date.UTC(n,r-1,i));if(a.getUTCFullYear()===n&&a.getUTCMonth()===r-1&&a.getUTCDate()===i)return[n,r,i]}function l(e){return`${String(e.getUTCFullYear()).padStart(4,`0`)}-${String(e.getUTCMonth()+1).padStart(2,`0`)}-${String(e.getUTCDate()).padStart(2,`0`)}`}function u(e,t){let n=c(e);if(!n)return e;let[r,i,a]=n;switch(t){case`day`:return l(new Date(Date.UTC(r,i-1,a)));case`week`:{let e=new Date(Date.UTC(r,i-1,a)),t=(e.getUTCDay()+6)%7;return e.setUTCDate(e.getUTCDate()-t),l(e)}case`month`:return`${String(r).padStart(4,`0`)}-${String(i).padStart(2,`0`)}-01`;case`quarter`:{let e=Math.floor((i-1)/3)*3+1;return`${String(r).padStart(4,`0`)}-${String(e).padStart(2,`0`)}-01`}case`year`:return`${String(r).padStart(4,`0`)}-01-01`}}function d(e,t){let n=c(e);if(!n)return e;let[r,i,a]=n;switch(t){case`day`:return l(new Date(Date.UTC(r,i-1,a+1)));case`week`:return l(new Date(Date.UTC(r,i-1,a+7)));case`month`:return l(new Date(Date.UTC(r,i,1)));case`quarter`:return l(new Date(Date.UTC(r,i+2,1)));case`year`:return l(new Date(Date.UTC(r+1,0,1)))}}function f(e,t){if(e.length<=1)return e.map(e=>[...e]);let n=Math.max(2,e[0]?.length??2),r=new Map;for(let t of e)typeof t[0]==`string`&&r.set(t[0],[...t]);let i=e[0]?.[0],a=e[e.length-1]?.[0];if(typeof i!=`string`||typeof a!=`string`||!c(i)||!c(a))return e.map(e=>[...e]);let o=[],l=i;for(let e=0;e<s&&l<=a&&(o.push(r.get(l)??[l,...Array(n-1).fill(null)]),l!==a);e++){let e=d(l,t);if(e<=l)break;l=e}return o}function p(e,t){if(e===void 0||e===`all`)return;if(typeof e==`object`){let t=e.from&&c(e.from)?e.from:void 0,n=e.to&&c(e.to)?e.to:void 0;return!t&&!n?void 0:{...t&&{from:t},...n&&{to:n}}}if(!t)return;let n=c(t);if(!n)return;let[r,i,a]=n,o=l(new Date(Date.UTC(r,i-1,a))),s=e=>String(e).padStart(2,`0`);switch(e){case`last_7_days`:return{from:m(r,i,a,-6),to:o};case`last_30_days`:return{from:m(r,i,a,-29),to:o};case`last_90_days`:return{from:m(r,i,a,-89),to:o};case`last_12_months`:{let e=r-1,t=new Date(Date.UTC(e,i,0)).getUTCDate();return{from:m(e,i,Math.min(a,t),1),to:o}}case`this_month`:return{from:`${String(r).padStart(4,`0`)}-${s(i)}-01`,to:o};case`this_quarter`:{let e=Math.floor((i-1)/3)*3+1;return{from:`${String(r).padStart(4,`0`)}-${s(e)}-01`,to:o}}case`this_year`:case`ytd`:return{from:`${String(r).padStart(4,`0`)}-01-01`,to:o}}}function m(e,t,n,r){return l(new Date(Date.UTC(e,t-1,n+r)))}var h=864e5;function g(e,t){if(!e.from||!e.to)return;let n=c(e.from),r=c(e.to);if(!n||!r)return;let[i,a,o]=n,[s,l,u]=r;if(t===`previous_period`){let e=Date.UTC(i,a-1,o),t=Date.UTC(s,l-1,u);return t<e?void 0:{from:m(i,a,o,-(Math.round((t-e)/h)+1)),to:m(i,a,o,-1)}}return{from:_(i,a,o,-1),to:_(s,l,u,-1)}}function _(e,t,n,r){let i=e+r,a=new Date(Date.UTC(i,t,0)).getUTCDate();return l(new Date(Date.UTC(i,t-1,Math.min(n,a))))}function v(e,t){let n=c(e),r=c(t);if(!n||!r)return`month`;let i=Date.UTC(n[0],n[1]-1,n[2]),a=Date.UTC(r[0],r[1]-1,r[2]),o=Math.max(1,Math.round((a-i)/h)+1);return o<=45?`day`:o<=180?`week`:o<=1095?`month`:`quarter`}var y=[`last_7_days`,`last_30_days`,`last_90_days`,`last_12_months`,`this_month`,`this_quarter`,`this_year`,`ytd`,`all`];function b(e){return Array.isArray(e)?e:[e]}function x(e){return e.type===`combo`?[...b(e.y),...b(e.y2)]:e.type===`scatter`?[e.x,e.y,...e.size===void 0?[]:[e.size]]:b(e.y)}function S(e,t){let n=[...new Set(t.values)];if(n.length===0)return[...e];let r=e.findIndex(e=>e.tile===t.tile&&e.field===t.field&&e.grain===t.grain),i=r===-1?void 0:e[r];if(!i)return[...e,{tile:t.tile,field:t.field,...t.grain!==void 0&&{grain:t.grain},values:n}];let a;if(t.additive){a=[...i.values];for(let e of n){let t=a.indexOf(e);t===-1?a.push(e):a.splice(t,1)}}else a=i.values.length===n.length&&n.every(e=>i.values.includes(e))?[]:n;return a.length===0?e.filter((e,t)=>t!==r):e.map((e,t)=>t===r?{...e,values:a}:e)}function C(e,t){if(t.length===0)return[...e];if(!t.some(e=>e.additive===!0)&&t.every(t=>{let n=[...new Set(t.values)],r=e.find(e=>e.tile===t.tile&&e.field===t.field&&e.grain===t.grain);return r!==void 0&&r.values.length===n.length&&n.every(e=>r.values.includes(e))}))return e.filter(e=>!t.some(t=>e.tile===t.tile&&e.field===t.field&&e.grain===t.grain));let n=[...e];for(let e of t)n=S(n,e);return n}var w=Object.freeze({filters:{},selections:[]});function T(e){let t={};for(let n of e.filters??[])if(n.default!==void 0){if(n.type===`date_range`){if(n.default===`all`)continue;t[n.id]=typeof n.default==`object`?{...n.default}:n.default}else t[n.id]=Array.isArray(n.default)?[...n.default]:n.default}return{filters:t,selections:[]}}var E={"no-rows":`No matching rows`,"no-values":`No values`,"no-date-range":`No date range`,unknown:`Nothing to show`};function D(e){let t=new Map,n=new Map,r=new Map,i=(e,n)=>{let r=t.get(e);if(!r){r=new Int32Array(n);for(let e=0;e<n;e++)r[e]=e;t.set(e,r)}return r},a=(e,t)=>{let r=n.get(t);r||(r=new Map,n.set(t,r));let i=r.get(e);return i===void 0&&(i=u(e,t),r.size<2e4&&r.set(e,i)),i},o=(e,t,n)=>{let i=`${e}\0${t}`;if(r.has(i))return r.get(i);let a=A(n);return r.set(i,a),a},s=(t,n,r,s,c,l)=>{let{rowCount:u,dimensions:d}=t.table;if(u===0)return new Int32Array;let f=e.tiles[s],m;if(!l){let t=f&&f.type!==`text`&&f.where?O(f.where):``,i=``;if(f&&f.type!==`text`){if(f.crossfilter===!1)i=`off`;else if(r.selections.length>0){let t=[];for(let i=0;i<r.selections.length;i++){let a=r.selections[i];if(!a||a.values.length===0||a.tile===s)continue;let o=e.tiles[a.tile];o&&o.type!==`text`&&o.crossfilter!==!1&&o.model===n&&d[a.field]&&t.push(i)}i=t.join(`,`)}}m=`${n}\0${t}\0${i}`;let a=c.get(m);if(a)return a}let h=[];for(let i of e.filters??[]){let a=d[i.field];if(!a)continue;if(i.type===`date_range`&&l?.filterId===i.id){let{bounds:e}=l;h.push({kind:`dateRange`,column:a,from:e.from,to:e.to});continue}let s=r.filters[i.id];if(s!==void 0){if(i.type===`select`)(typeof s==`string`||typeof s==`number`)&&h.push({kind:`eq`,column:a,expected:s});else if(i.type===`multi_select`)Array.isArray(s)&&s.length>0&&h.push({kind:`set`,column:a,allowed:new Set(s)});else{let r=p(s,t.asOf??e.asOf??o(n,i.field,a));r&&h.push({kind:`dateRange`,column:a,from:r.from,to:r.to})}}}if(f&&f.type!==`text`){if(f.where)for(let[e,t]of Object.entries(f.where)){let n=d[e];if(!n){let e=new Int32Array;return m!==void 0&&c.set(m,e),e}h.push({kind:`set`,column:n,allowed:new Set(t)})}if(f.crossfilter!==!1&&r.selections.length>0){let t=new Map;for(let i of r.selections){if(i.values.length===0||i.tile===s)continue;let r=e.tiles[i.tile];if(!r||r.type===`text`||r.crossfilter===!1||r.model!==n)continue;let a=d[i.field];if(!a)continue;let o=`${i.grain??``}\0${i.field}`,c=t.get(o);c||(c={column:a,grain:i.grain,allowed:new Set},t.set(o,c));for(let e of i.values)c.allowed.add(e)}for(let{column:e,grain:n,allowed:r}of t.values())n?h.push({kind:`grainSet`,column:e,grain:n,allowed:r}):h.push({kind:`set`,column:e,allowed:r})}}let g;return g=h.length===0?i(n,u):k(u,h,a),m!==void 0&&c.set(m,g),g};return{tiles(t=T(e)){let n={},r=new Map;for(let[i,c]of Object.entries(e.tiles)){if(c.type===`text`){n[i]={status:`ok`,columns:[],rows:[]};continue}let l=e.models[c.model];if(!l){n[i]={status:`empty`,reason:`unknown`};continue}let u=s(l,c.model,t,i,r);n[i]=c.type===`kpi`?ie(c,l,e,t,u,a,o,e=>s(l,c.model,t,i,r,e)):c.type===`combo`?se(c,l,u,a):c.type===`scatter`?ce(c,l,u):c.type===`donut`?ue(c,l,u,a):c.type===`heatmap`?F(c,l,u,a):c.type===`table`?de(c,l,u,a):oe(c,l,u,a)}return n},filterOptions(t){let n=e.filters?.find(e=>e.id===t);if(!n)return[];let r=new Set,i;for(let t of Object.values(e.models)){let e=t.table.dimensions[n.field];if(e){i??=t.dimensionOrders?.[n.field];for(let t of e)r.add(t)}}let a=[...r];return i?pe(a,i):a.sort(me),a}}}function O(e){let t=Object.keys(e);return t.length===0?``:(t.sort(),t.map(t=>`${t}=${e[t]?.join(`,`)??``}`).join(`;`))}function k(e,t,n){let r=new Int32Array(e),i=t.length,a=0;for(let o=0;o<e;o++){let e=!0;for(let r=0;r<i;r++){let i=t[r];if(i){if(i.kind===`eq`){if((i.column[o]??null)!==i.expected){e=!1;break}}else if(i.kind===`set`){if(!i.allowed.has(i.column[o]??null)){e=!1;break}}else if(i.kind===`dateRange`){let t=i.column[o];if(typeof t!=`string`){e=!1;break}let n=t.length===10?t:t.slice(0,10);if(i.from!==void 0&&n<i.from||i.to!==void 0&&n>i.to){e=!1;break}}else{let t=i.column[o]??null,r=typeof t==`string`?n(t,i.grain):t;if(!i.allowed.has(r)){e=!1;break}}}}e&&(r[a++]=o)}return r.subarray(0,a)}function A(e){let t;for(let n=0;n<e.length;n++){let r=e[n];if(typeof r!=`string`||r.length<10)continue;let i=r.length===10?r:r.slice(0,10);(t===void 0||i>t)&&(t=i)}return t}function j(e,t){let n=(e.filters??[]).filter(e=>e.type===`date_range`&&t.table.dimensions[e.field]!==void 0);if(t.time!==void 0){let e=n.find(e=>e.field===t.time);if(e)return e}return n[0]}function M(e,t,n,r){let i=new Map,a=new Map,o=new Uint8Array(r);for(let e=0;e<n.length;e++){let t=n[e];t!==void 0&&t>=0&&(o[t]=1)}let s=a=>{let o=i.get(a);if(o)return o;let s=e.table.measures[a];if(!s)return;let c=te(s,t,n,r);return i.set(a,c),c},c=t=>{let n=a.get(t);if(n)return n;let i=Array(r),o=s(t);if(o)for(let e=0;e<r;e++)i[e]=N(ne(o,e));else{let n=e.formulas[t];if(!n)i.fill(null);else{let t=P(n,e.formulas).map(e=>[e,c(e)]),a=new Map(t);for(let e=0;e<r;e++)i[e]=N(ve(n,t=>a.get(t)?.[e]??null))}}return a.set(t,i),i},l=(t,n,r)=>{if(r.has(t))return r.get(t)??null;let i=s(t),a=null;if(i)a=re(i,n);else{let i=e.formulas[t];i&&(a=ve(i,e=>l(e,n,r)))}let o=N(a);return r.set(t,o),o};return{hasRows(e){return o[e]===1},value(e,t){return c(e)[t]??null},merge(t,n){if(n.length===0)return he(e,t)?ee(e,t):null;if(n.length===1){let e=n[0];return e===void 0?null:c(t)[e]??null}return l(t,n,new Map)}}}function ee(e,t){let n=e.table.measures[t];if(n)return n.agg===`count`||n.agg===`count_distinct`?0:null;let r=e.formulas[t];return r?N(ve(r,t=>ee(e,t))):null}function N(e){return e!==null&&Number.isFinite(e)?e:null}function P(e,t,n=new Set){switch(e.kind){case`number`:return[...n];case`measure`:return n.add(e.name),[...n];case`negate`:return P(e.operand,t,n),[...n];case`binary`:return P(e.left,t,n),P(e.right,t,n),[...n]}}function te(e,t,n,r){let i=t.length;switch(e.agg){case`sum`:{let a=new Float64Array(r),o=new Uint8Array(r),s=e.sum;for(let e=0;e<i;e++){let r=n[e];if(r===void 0||r<0)continue;let i=t[e],c=i===void 0?void 0:s[i];typeof c==`number`&&(a[r]=(a[r]??0)+c,o[r]=1)}return{agg:`sum`,vals:a,has:o}}case`count`:{let a=new Float64Array(r),o=new Uint8Array(r),s=e.count;for(let e=0;e<i;e++){let r=n[e];if(r===void 0||r<0)continue;let i=t[e],c=i===void 0?void 0:s[i];typeof c==`number`&&(a[r]=(a[r]??0)+c,o[r]=1)}return{agg:`count`,vals:a,has:o}}case`min`:{let a=new Float64Array(r),o=new Uint8Array(r),s=e.min;for(let e=0;e<i;e++){let r=n[e];if(r===void 0||r<0)continue;let i=t[e],c=i===void 0?void 0:s[i];typeof c==`number`&&(o[r]?c<(a[r]??c)&&(a[r]=c):(a[r]=c,o[r]=1))}return{agg:`min`,vals:a,has:o}}case`max`:{let a=new Float64Array(r),o=new Uint8Array(r),s=e.max;for(let e=0;e<i;e++){let r=n[e];if(r===void 0||r<0)continue;let i=t[e],c=i===void 0?void 0:s[i];typeof c==`number`&&(o[r]?c>(a[r]??c)&&(a[r]=c):(a[r]=c,o[r]=1))}return{agg:`max`,vals:a,has:o}}case`avg`:{let a=new Float64Array(r),o=new Float64Array(r),s=new Uint8Array(r),c=new Uint8Array(r),l=e.sum,u=e.count;for(let e=0;e<i;e++){let r=n[e];if(r===void 0||r<0)continue;let i=t[e];if(i===void 0)continue;let d=l[i];typeof d==`number`&&(a[r]=(a[r]??0)+d,s[r]=1);let f=u[i];typeof f==`number`&&(o[r]=(o[r]??0)+f,c[r]=1)}return{agg:`avg`,sums:a,counts:o,hasSum:s,hasCount:c}}case`count_distinct`:{let a=Array(r),o=e.key;for(let e=0;e<i;e++){let r=n[e];if(r===void 0||r<0)continue;let i=t[e],s=i===void 0?void 0:o[i];if(s!=null){let e=a[r];e||(e=new Set,a[r]=e),e.add(s)}}return{agg:`count_distinct`,sets:a}}}}function ne(e,t){switch(e.agg){case`sum`:case`min`:case`max`:return e.has[t]?e.vals[t]??null:null;case`count`:return e.has[t]?e.vals[t]??0:0;case`avg`:{if(!e.hasSum[t]||!e.hasCount[t])return null;let n=e.counts[t]??0;return n===0?null:(e.sums[t]??0)/n}case`count_distinct`:return e.sets[t]?.size??0}}function re(e,t){switch(e.agg){case`sum`:{let n=0,r=!1;for(let i of t)e.has[i]&&(n+=e.vals[i]??0,r=!0);return r?n:null}case`count`:{let n=0,r=!1;for(let i of t)e.has[i]&&(n+=e.vals[i]??0,r=!0);return r?n:0}case`min`:{let n=null;for(let r of t)if(e.has[r]){let t=e.vals[r];t!==void 0&&(n=n===null?t:Math.min(n,t))}return n}case`max`:{let n=null;for(let r of t)if(e.has[r]){let t=e.vals[r];t!==void 0&&(n=n===null?t:Math.max(n,t))}return n}case`avg`:{let n=0,r=0,i=!1,a=!1;for(let o of t)e.hasSum[o]&&(n+=e.sums[o]??0,i=!0),e.hasCount[o]&&(r+=e.counts[o]??0,a=!0);return!i||!a||r===0?null:n/r}case`count_distinct`:{let n=new Set;for(let r of t){let t=e.sets[r];if(t)for(let e of t)n.add(e)}return n.size}}}function ie(e,t,n,r,i,a,o,s){if(i.length===0)return{status:`empty`,reason:`no-rows`};if(!he(t,e.value))return{status:`empty`,reason:`unknown`};let c=ge(t,e.value,i);if(c===null)return{status:`empty`,reason:`no-values`};let l,u=j(n,t),d=u?.field??t.time,m=d?t.table.dimensions[d]:void 0,h=t.asOf??n.asOf??(m&&d?o(e.model,d,m):void 0),_=u?p(r.filters[u.id],h):void 0;if(e.target!==void 0||e.compare!==void 0){let n=e.good??`up`,r;if(e.target!==void 0){let a=he(t,e.target)?ge(t,e.target,i):null;if(a===null)r={mode:`target`,status:`no-values`,good:n};else{let e=c-a;r={mode:`target`,status:`ok`,previous:a,delta:e,pct:a===0?null:e/Math.abs(a),good:n}}}else if(e.compare!==void 0){let i=e.compare;if(!u||!_?.from||!_?.to)r={mode:i,status:`no-date-range`,good:n};else{let a=g(_,i);if(!a)r={mode:i,status:`no-date-range`,good:n};else{let o=s({filterId:u.id,bounds:a}),l=o.length>0?ge(t,e.value,o):null;if(l===null)r={mode:i,status:`no-values`,good:n};else{let e=c-l;r={mode:i,status:`ok`,previous:l,delta:e,pct:l===0?null:e/Math.abs(l),good:n}}}}}r&&(l={comparison:r})}if(e.spark&&m){let n,r,o=Array(i.length),s=0;for(let e=0;e<i.length;e++){let t=i[e],a=t===void 0?void 0:m[t];if(typeof a!=`string`||a.length<10)continue;let c=a.length===10?a:a.slice(0,10);o[e]=c,s++,(n===void 0||c<n)&&(n=c),(r===void 0||c>r)&&(r=c)}let c=_?.from??n,u=_?.to??r;if(c&&u&&s>0){let n=v(c,u),r=new Map,s=[],d=new Int32Array(i.length);d.fill(-1);for(let e=0;e<i.length;e++){let t=o[e];if(t===void 0)continue;let i=a(t,n),c=r.get(i);c===void 0&&(c=s.length,s.push(i),r.set(i,c)),d[e]=c}let p=M(t,i,d,s.length),m=f(s.map((t,n)=>[t,p.value(e.value,n)]).sort(([e],[t])=>e<t?-1:+(e>t)),n).map(([e,t])=>[String(e),typeof t==`number`?t:null]);l={...l,spark:{grain:n,points:m}}}}return{status:`ok`,columns:[{name:e.value,kind:`measure`}],rows:[[c]],...l!==void 0&&{kpi:l}}}var ae=8;function oe(e,t,n,r){let{table:i}=t;if(n.length===0)return{status:`empty`,reason:`no-rows`};let a=i.dimensions[e.x],o=x(e);if(!a||o.length===0||!o.every(e=>he(t,e)))return{status:`empty`,reason:`unknown`};let s=o[0]??``,c=e.color===void 0?void 0:i.dimensions[e.color];if(e.color!==void 0&&!c)return{status:`empty`,reason:`unknown`};let l=n.length,u=new Int32Array(l),d=new Map,p=[],m=e.type!==`bar`&&e.grain!==void 0;for(let t=0;t<l;t++){let i=n[t],o=(i===void 0?void 0:a[i])??null;if(m&&o===null){u[t]=-1;continue}let s=e.grain!==void 0&&o!==null?r(String(o),e.grain):o,c=d.get(s);c===void 0&&(c=p.length,p.push(s),d.set(s,c)),u[t]=c}let h=p.length;if(h===0)return{status:`empty`,reason:`no-values`};let g,_,v,y;if(c&&e.color!==void 0){let r=new Map,i=[],a=new Int32Array(l);for(let e=0;e<l;e++){let t=n[e],o=(t===void 0?void 0:c[t])??null,s=r.get(o);s===void 0&&(s=i.length,i.push(o),r.set(o,s)),a[e]=s}let o=M(t,n,a,i.length),d=i.map((e,t)=>({key:e,cid:t,total:o.value(s,t)})),f=t.dimensionOrders?.[e.color];if(f){let{positionOf:e}=fe(f);d.sort((t,n)=>{let r=e(t.key),i=e(n.key);return r!==void 0&&i!==void 0?r-i:r===void 0?i===void 0?me(t.key,n.key):1:-1})}else d.sort((e,t)=>(t.total??-1/0)-(e.total??-1/0)||me(e.key,t.key));let p=d.length>ae,m=p?d.slice(0,7):d;p&&(_=d.length-7),y=m.length+ +!!p;let b=new Int32Array(i.length);b.fill(p?7:0),m.forEach((e,t)=>{b[e.cid]=t}),g=m.map(e=>({name:e.key===null?`(blank)`:String(e.key),kind:`measure`})),p&&g.push({name:`Other`,kind:`measure`});let x=new Int32Array(l);for(let e=0;e<l;e++){let t=u[e]??-1;if(t<0)x[e]=-1;else{let n=b[a[e]??0]??0;x[e]=t*y+n}}v=M(t,n,x,h*y)}else y=o.length,g=o.map(e=>({name:e,kind:`measure`})),v=M(t,n,u,h);let b=Array(h);for(let t=0;t<h;t++){let n=p[t]??null,r,i;if(e.color!==void 0){r=Array(y);let e=[],n=t*y;for(let t=0;t<y;t++){let i=n+t;v.hasRows(i)?(e.push(i),r[t]=v.value(s,i)):r[t]=null}i=v.merge(s,e)}else if(r=o.map(e=>v.value(e,t)),o.length===1)i=r[0]??null;else{let e=0,t=!1;for(let n of r)typeof n==`number`&&(e+=n,t=!0);i=t?e:null}b[t]={gid:t,category:n,values:r,total:i}}if(b.every(e=>e.values.every(e=>e===null)))return{status:`empty`,reason:`no-values`};let S=t.dimensionOrders?.[e.x],C=S?fe(S):void 0,w=e.grain!==void 0||t.dateDimensions?.includes(e.x)===!0,T=(e,t,n=!1)=>{let r=n?-1:1;if(C){let n=C.positionOf(e.category),i=C.positionOf(t.category);if(n!==void 0&&i!==void 0)return(n-i)*r;if(n!==void 0)return-1;if(i!==void 0)return 1}return me(e.category,t.category)*r},E=(e,t,n)=>e===t?0:e===null?1:t===null?-1:n?t-e:e-t,D=e.type===`bar`?e.sort:void 0;if(D!==void 0){let t=D.startsWith(`-`),n=t?D.slice(1):D;if(n===`x`||n===e.x)b.sort((e,n)=>T(e,n,t));else if(n===`y`)b.sort((e,n)=>E(e.total,n.total,t)||me(e.category,n.category));else{let e=o.indexOf(n);b.sort((n,r)=>{let i=e===-1?n.total:n.values[e]??null,a=e===-1?r.total:r.values[e]??null;return E(i,a,t)||me(n.category,r.category)})}}else e.type===`bar`?C?b.sort((e,t)=>T(e,t)||(w?me(e.category,t.category):E(e.total,t.total,!0)||me(e.category,t.category))):w?b.sort((e,t)=>me(e.category,t.category)):b.sort((e,t)=>E(e.total,t.total,!0)||me(e.category,t.category)):b.sort((e,t)=>T(e,t));let O;if(e.type===`bar`&&e.limit!==void 0&&b.length>e.limit){let t=b.slice(0,e.limit).map(e=>[e.category,...e.values]),n=b.slice(e.limit),r;if(e.color!==void 0){r=Array(y);for(let e=0;e<y;e++){let t=n.map(t=>t.gid*y+e).filter(e=>v.hasRows(e));r[e]=t.length===0?null:v.merge(s,t)}}else{let e=n.map(e=>e.gid);r=o.map(t=>v.merge(t,e))}O=[...t,[`Other`,...r]]}else O=b.map(e=>[e.category,...e.values]);return e.type!==`bar`&&e.grain!==void 0&&(O=f(O,e.grain)),{status:`ok`,columns:[{name:e.x,kind:`dimension`},...g],rows:O,..._!==void 0&&{truncatedSeries:_}}}function se(e,t,n,r){let{table:i}=t;if(n.length===0)return{status:`empty`,reason:`no-rows`};let a=i.dimensions[e.x],o=b(e.y),s=b(e.y2),c=[...o,...s];if(!a||!c.every(e=>he(t,e)))return{status:`empty`,reason:`unknown`};let l=n.length,u=new Int32Array(l),d=new Map,p=[];for(let t=0;t<l;t++){let i=n[t],o=(i===void 0?void 0:a[i])??null;if(e.grain!==void 0&&o===null){u[t]=-1;continue}let s=e.grain!==void 0&&o!==null?r(String(o),e.grain):o,c=d.get(s);c===void 0&&(c=p.length,p.push(s),d.set(s,c)),u[t]=c}if(p.length===0)return{status:`empty`,reason:`no-values`};let m=M(t,n,u,p.length),h=p.map((e,t)=>[e,...c.map(e=>m.value(e,t))]);if(h.every(e=>e.slice(1).every(e=>e===null)))return{status:`empty`,reason:`no-values`};let g=t.dimensionOrders?.[e.x],_=e.grain!==void 0||t.dateDimensions?.includes(e.x)===!0;if(g){let{positionOf:e}=fe(g);h.sort(([t],[n])=>{let r=e(t??null),i=e(n??null);return r!==void 0&&i!==void 0?r-i:r===void 0?i===void 0?me(t??null,n??null):1:-1})}else _?h.sort(([e],[t])=>me(e??null,t??null)):h.sort((e,t)=>(typeof t[1]==`number`?t[1]:-1/0)-(typeof e[1]==`number`?e[1]:-1/0)||me(e[0]??null,t[0]??null));return e.grain!==void 0&&(h=f(h,e.grain)),{status:`ok`,columns:[{name:e.x,kind:`dimension`},...c.map(e=>({name:e,kind:`measure`}))],rows:h}}function ce(e,t,n){let{table:r}=t;if(n.length===0)return{status:`empty`,reason:`no-rows`};let i=r.dimensions[e.by],a=e.color===void 0?void 0:r.dimensions[e.color];if(!i||e.color!==void 0&&!a||!he(t,e.x)||!he(t,e.y)||e.size!==void 0&&!he(t,e.size))return{status:`empty`,reason:`unknown`};let o=n.length,s=new Int32Array(o),c=[];if(a){let e=new Map;for(let t=0;t<o;t++){let r=n[t],o=(r===void 0?void 0:i[r])??null,l=(r===void 0?void 0:a[r])??null,u=e.get(o);u||(u=new Map,e.set(o,u));let d=u.get(l);d===void 0&&(d=c.length,c.push({gid:d,byVal:o,colorVal:l}),u.set(l,d)),s[t]=d}}else{let e=new Map;for(let t=0;t<o;t++){let r=n[t],a=(r===void 0?void 0:i[r])??null,o=e.get(a);o===void 0&&(o=c.length,c.push({gid:o,byVal:a,colorVal:null}),e.set(a,o)),s[t]=o}}let l=M(t,n,s,c.length),u,d=[];if(a&&e.color!==void 0){let n=new Map,r=[];for(let t of c){let i=l.value(e.x,t.gid),a=l.value(e.y,t.gid);i!==null&&a!==null&&(r.push({gid:t.gid,byVal:t.byVal,colorVal:t.colorVal,x:i,y:a}),n.set(t.colorVal,(n.get(t.colorVal)??0)+1))}let i=[...n.keys()],a=t.dimensionOrders?.[e.color];if(a?pe(i,a):i.sort((e,t)=>(n.get(t)??0)-(n.get(e)??0)||me(e,t)),i.length>ae){let t=new Set(i.slice(0,7));u=i.length-7;let n=new Map;for(let i of r)if(t.has(i.colorVal)){let t=[i.byVal,i.x,i.y];e.size!==void 0&&t.push(l.value(e.size,i.gid)),t.push(i.colorVal),d.push(t)}else{let e=n.get(i.byVal);e?e.push(i.gid):n.set(i.byVal,[i.gid])}for(let[t,r]of n){let n=l.merge(e.x,r),i=l.merge(e.y,r);if(n===null||i===null)continue;let a=[t,n,i];e.size!==void 0&&a.push(l.merge(e.size,r)),a.push(`Other`),d.push(a)}}else for(let t of r){let n=[t.byVal,t.x,t.y];e.size!==void 0&&n.push(l.value(e.size,t.gid)),n.push(t.colorVal),d.push(n)}}else for(let t of c){let n=l.value(e.x,t.gid),r=l.value(e.y,t.gid);if(n===null||r===null)continue;let i=[t.byVal,n,r];e.size!==void 0&&i.push(l.value(e.size,t.gid)),d.push(i)}if(d.length===0)return{status:`empty`,reason:`no-values`};d.sort((e,t)=>me(e[0]??null,t[0]??null));let f=[{name:e.by,kind:`dimension`},{name:e.x,kind:`measure`},{name:e.y,kind:`measure`}];return e.size!==void 0&&f.push({name:e.size,kind:`measure`}),e.color!==void 0&&f.push({name:e.color,kind:`dimension`}),{status:`ok`,columns:f,rows:d,...u!==void 0&&{truncatedSeries:u}}}var le=6;function ue(e,t,n,r){let{table:i}=t;if(n.length===0)return{status:`empty`,reason:`no-rows`};let a=i.dimensions[e.by];if(!a||!he(t,e.value))return{status:`empty`,reason:`unknown`};let o=n.length,s=new Int32Array(o),c=new Map,l=[];for(let t=0;t<o;t++){let i=n[t],o=(i===void 0?void 0:a[i])??null,u=e.grain!==void 0&&o!==null?r(String(o),e.grain):o,d=c.get(u);d===void 0&&(d=l.length,l.push(u),c.set(u,d)),s[t]=d}if(l.length===0)return{status:`empty`,reason:`no-values`};let u=M(t,n,s,l.length),d=[];for(let t=0;t<l.length;t++){let n=u.value(e.value,t);n!==null&&d.push({gid:t,category:l[t]??null,value:n})}if(d.length===0)return{status:`empty`,reason:`no-values`};let f=t.dimensionOrders?.[e.by];if(f){let{positionOf:e}=fe(f);d.sort((t,n)=>{let r=e(t.category),i=e(n.category);return r!==void 0&&i!==void 0?r-i:r===void 0?i===void 0?n.value-t.value||me(t.category,n.category):1:-1})}else d.sort((e,t)=>t.value-e.value||me(e.category,t.category));let p,m;if(d.length>le){let t=d.slice(0,5),n=d.slice(5);m=n.length;let r=u.merge(e.value,n.map(e=>e.gid));p=t.map(e=>[e.category,e.value]),r!==null&&p.push([`Other`,r])}else p=d.map(e=>[e.category,e.value]);return{status:`ok`,columns:[{name:e.by,kind:`dimension`},{name:e.value,kind:`measure`}],rows:p,...m!==void 0&&{truncatedSlices:m}}}function F(e,t,n,r){let{table:i}=t;if(n.length===0)return{status:`empty`,reason:`no-rows`};let a=i.dimensions[e.x],o=i.dimensions[e.y];if(!a||!o||!he(t,e.color))return{status:`empty`,reason:`unknown`};let s=n.length,c=new Int32Array(s),l=new Map,u=[];for(let t=0;t<s;t++){let i=n[t],s=(i===void 0?void 0:a[i])??null,d=(i===void 0?void 0:o[i])??null,f=e.xGrain!==void 0&&s!==null?r(String(s),e.xGrain):s,p=e.yGrain!==void 0&&d!==null?r(String(d),e.yGrain):d,m=l.get(f);m||(m=new Map,l.set(f,m));let h=m.get(p);h===void 0&&(h=u.length,u.push({x:f,y:p}),m.set(p,h)),c[t]=h}let d=M(t,n,c,u.length),f=[];for(let t=0;t<u.length;t++){let n=d.value(e.color,t);if(n===null)continue;let r=u[t];r&&f.push([r.x,r.y,n])}if(f.length===0)return{status:`empty`,reason:`no-values`};let p=t.dimensionOrders?.[e.x],m=t.dimensionOrders?.[e.y],h=p?fe(p):void 0,g=m?fe(m):void 0,_=(e,t,n)=>{if(n){let r=n.positionOf(e),i=n.positionOf(t);if(r!==void 0&&i!==void 0)return r-i;if(r!==void 0)return-1;if(i!==void 0)return 1}return me(e,t)};return f.sort(([e,t],[n,r])=>_(e??null,n??null,h)||_(t??null,r??null,g)),{status:`ok`,columns:[{name:e.x,kind:`dimension`},{name:e.y,kind:`dimension`},{name:e.color,kind:`measure`}],rows:f}}function de(e,t,n,r){let{table:i}=t;if(n.length===0)return{status:`empty`,reason:`no-rows`};for(let n of e.columns)if(n.kind===`dimension`&&!i.dimensions[n.field]||n.kind===`measure`&&!he(t,n.field))return{status:`empty`,reason:`unknown`};let a=e.columns.map((e,t)=>({col:e,idx:t,values:i.dimensions[e.field]})).filter(e=>e.col.kind===`dimension`),o=e.columns.map((e,t)=>({col:e,idx:t})).filter(e=>e.col.kind===`measure`),s=n.length,c=new Int32Array(s),l=[];if(a.length===0)l.push([]);else if(a.length===1){let e=a[0],t=e?.values??[],i=e?.col.grain,o=new Map;for(let e=0;e<s;e++){let a=n[e],s=(a===void 0?void 0:t[a])??null,u=i!==void 0&&s!==null?r(String(s),i):s,d=o.get(u);d===void 0&&(d=l.length,l.push([u]),o.set(u,d)),c[e]=d}}else{let e=new Map,t=a.length-1;for(let i=0;i<s;i++){let o=n[i],s=e,u=Array(a.length);for(let e=0;e<t;e++){let t=a[e],n=(o!==void 0&&t?.values?t.values[o]:void 0)??null,i=t?.col.grain!==void 0&&n!==null?r(String(n),t.col.grain):n;u[e]=i;let c=s.get(i);c||(c=new Map,s.set(i,c)),s=c}let d=a[t],f=(o!==void 0&&d?.values?d.values[o]:void 0)??null,p=d?.col.grain!==void 0&&f!==null?r(String(f),d.col.grain):f;u[t]=p;let m=s.get(p);m===void 0&&(m=l.length,l.push(u),s.set(p,m)),c[i]=m}}let u=M(t,n,c,l.length),d=[];for(let t=0;t<l.length;t++){let n=l[t]??[],r=Array(e.columns.length).fill(null);a.forEach(({idx:e},t)=>{r[e]=n[t]??null});for(let{col:e,idx:n}of o)r[n]=u.value(e.field,t);d.push(r)}if(d.length===0)return{status:`empty`,reason:`no-rows`};if(o.length>0&&d.every(e=>o.every(({idx:t})=>e[t]===null)))return{status:`empty`,reason:`no-values`};let f=-1,p=!1;if(e.sort!==void 0){p=e.sort.startsWith(`-`);let t=p?e.sort.slice(1):e.sort;f=e.columns.findIndex(e=>e.field===t)}else o[0]?(f=o[0].idx,p=!0):a[0]&&(f=a[0].idx,p=!1);if(f>=0){let n=e.columns[f],r=n?.kind===`dimension`?t.dimensionOrders?.[n.field]:void 0,i=r?fe(r):void 0;d.sort((e,t)=>{let r=e[f]??null,a=t[f]??null;if(n?.kind===`measure`){let e=typeof r==`number`?r:null,t=typeof a==`number`?a:null;return e===t?0:e===null?1:t===null?-1:p?t-e:e-t}if(i){let e=i.positionOf(r),t=i.positionOf(a);if(e!==void 0&&t!==void 0)return(e-t)*(p?-1:1);if(e!==void 0)return-1;if(t!==void 0)return 1}return me(r,a)*(p?-1:1)})}return e.limit!==void 0&&d.length>e.limit&&(d=d.slice(0,e.limit)),{status:`ok`,columns:e.columns.map(e=>({name:e.field,kind:e.kind})),rows:d}}function fe(e){let t=new Map,n=new Map;return e.forEach((e,r)=>{t.has(e)||t.set(e,r);let i=String(e);n.has(i)||n.set(i,r)}),{positionOf:e=>t.get(e)??(e===null?void 0:n.get(String(e)))}}function pe(e,t){let{positionOf:n}=fe(t);e.sort((e,t)=>{let r=n(e),i=n(t);return r!==void 0&&i!==void 0?r-i:r===void 0?i===void 0?me(e,t):1:-1})}function me(e,t){return e===t?0:e===null?1:t===null?-1:typeof e==`number`&&typeof t==`number`?e-t:typeof e==`number`?-1:typeof t==`number`?1:e<t?-1:1}function he(e,t){return Object.hasOwn(e.table.measures,t)||Object.hasOwn(e.formulas,t)}function ge(e,t,n,r=new Map){if(r.has(t))return r.get(t)??null;let i=e.table.measures[t],a=e.formulas[t],o=null;i?o=_e(i,n):a&&(o=ve(a,t=>ge(e,t,n,r)));let s=o!==null&&Number.isFinite(o)?o:null;return r.set(t,s),s}function _e(e,t){let n=t.length;switch(e.agg){case`sum`:{let r=e.sum,i=null;for(let e=0;e<n;e++){let n=t[e],a=n===void 0?void 0:r[n];typeof a==`number`&&(i=i===null?a:i+a)}return i}case`count`:{let r=e.count,i=0;for(let e=0;e<n;e++){let n=t[e],a=n===void 0?void 0:r[n];typeof a==`number`&&(i+=a)}return i}case`min`:{let r=e.min,i=null;for(let e=0;e<n;e++){let n=t[e],a=n===void 0?void 0:r[n];typeof a==`number`&&(i===null||a<i)&&(i=a)}return i}case`max`:{let r=e.max,i=null;for(let e=0;e<n;e++){let n=t[e],a=n===void 0?void 0:r[n];typeof a==`number`&&(i===null||a>i)&&(i=a)}return i}case`avg`:{let r=e.sum,i=e.count,a=null,o=0,s=!1;for(let e=0;e<n;e++){let n=t[e];if(n===void 0)continue;let c=r[n];typeof c==`number`&&(a=a===null?c:a+c);let l=i[n];typeof l==`number`&&(o+=l,s=!0)}return a===null||!s||o===0?null:a/o}case`count_distinct`:{let r=new Set,i=e.key;for(let e=0;e<n;e++){let n=t[e],a=n===void 0?void 0:i[n];a!=null&&r.add(a)}return r.size}}}function ve(e,t){switch(e.kind){case`number`:return e.value;case`measure`:return t(e.name);case`negate`:{let n=ve(e.operand,t);return n===null?null:-n}case`binary`:{let n=ve(e.left,t),r=ve(e.right,t);if(n===null||r===null)return null;switch(e.op){case`+`:return n+r;case`-`:return n-r;case`*`:return n*r;case`/`:return r===0?null:n/r}}}}var ye=`flatbi-data`,be=1;function xe(e){let t=e?.format;if(t!==be)throw Error(`Unsupported dashboard data format: ${String(t)}`);return Ce(e.dashboard,Se)}function Se({values:e,indexes:t}){let n=t.length,r=Array(n);for(let i=0;i<n;i++){let n=t[i],a=n===void 0?void 0:e[n];if(a===void 0)throw Error(`Corrupt dashboard data: no value at index ${n}`);r[i]=a}return r}function Ce(e,t){let n=Ee(e.models,e=>({table:we(e.table,t),formulas:e.formulas,...e.time!==void 0&&{time:e.time},...e.asOf!==void 0&&{asOf:e.asOf},...e.dateDimensions&&{dateDimensions:e.dateDimensions},...e.dimensionOrders&&{dimensionOrders:e.dimensionOrders},...e.formats&&{formats:e.formats}}));return{...e,models:n}}function we(e,t){return{rowCount:e.rowCount,dimensions:Ee(e.dimensions,t),measures:Ee(e.measures,e=>Te(e,t))}}function Te(e,t){switch(e.agg){case`sum`:return{agg:`sum`,sum:t(e.sum)};case`count`:return{agg:`count`,count:t(e.count)};case`min`:return{agg:`min`,min:t(e.min)};case`max`:return{agg:`max`,max:t(e.max)};case`avg`:return{agg:`avg`,sum:t(e.sum),count:t(e.count)};case`count_distinct`:return{agg:`count_distinct`,key:t(e.key)}}}function Ee(e,t){return Object.fromEntries(Object.entries(e).map(([e,n])=>[e,t(n)]))}async function De(e){let t=document.getElementById(e)?.textContent;if(!t)throw Error(`This file holds no dashboard data.`);let n=atob(t),r=new Uint8Array(n.length);for(let e=0;e<n.length;e++)r[e]=n.charCodeAt(e);return new Response(new Blob([r]).stream().pipeThrough(new DecompressionStream(`gzip`))).json()}var Oe=function(e,t){return Oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Oe(e,t)};function I(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);Oe(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var ke=`12px sans-serif`,Ae=20,je=100,Me=`007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N`;function Ne(e){var t={};if(typeof JSON>`u`)return t;for(var n=0;n<e.length;n++){var r=String.fromCharCode(n+32);t[r]=(e.charCodeAt(n)-Ae)/je}return t}var Pe=Ne(Me),Fe={createCanvas:function(){return typeof document<`u`&&document.createElement(`canvas`)},measureText:(function(){var e,t;return function(n,r){if(!e){var i=Fe.createCanvas();e=i&&i.getContext(`2d`)}if(e)return t!==r&&(t=e.font=r||`12px sans-serif`),e.measureText(n);n||=``,r||=`12px sans-serif`;var a=/((?:\d+)?\.?\d*)px/.exec(r),o=a&&+a[1]||12,s=0;if(r.indexOf(`mono`)>=0)s=o*n.length;else for(var c=0;c<n.length;c++){var l=Pe[n[c]];s+=l==null?o:l*o}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}},Ie=it([`Function`,`RegExp`,`Date`,`Error`,`CanvasGradient`,`CanvasPattern`,`Image`,`Canvas`],function(e,t){return e[`[object `+t+`]`]=!0,e},{}),Le=it([`Int8`,`Uint8`,`Uint8Clamped`,`Int16`,`Uint16`,`Int32`,`Uint32`,`Float32`,`Float64`],function(e,t){return e[`[object `+t+`Array]`]=!0,e},{}),Re=Object.prototype.toString,ze=Array.prototype,Be=ze.forEach,Ve=ze.filter,He=ze.slice,Ue=ze.map,We=function(){}.constructor,Ge=We?We.prototype:null,Ke=`__proto__`,qe=2311,Je=2**53-1;function Ye(){return qe>=Je&&(qe=0),qe++}function Xe(){var e=[...arguments];typeof console<`u`&&console.error.apply(console,e)}function L(e){if(typeof e!=`object`||!e)return e;var t=e,n=Re.call(e);if(n===`[object Array]`){if(!Tt(e)){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=L(e[r])}}else if(Le[n]){if(!Tt(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var r=0,i=e.length;r<i;r++)t[r]=e[r]}}}else if(!Ie[n]&&!Tt(e)&&!mt(e))for(var o in t={},e)e.hasOwnProperty(o)&&o!==Ke&&(t[o]=L(e[o]));return t}function Ze(e,t,n){if(!G(t)||!G(e))return n?L(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==Ke){var i=e[r],a=t[r];G(a)&&G(i)&&!H(a)&&!H(i)&&!mt(a)&&!mt(i)&&!ft(a)&&!ft(i)&&!Tt(a)&&!Tt(i)?Ze(i,a,n):(n||!(r in e))&&(e[r]=L(t[r]))}return e}function R(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==Ke&&(e[n]=t[n]);return e}function Qe(e,t,n){e||={};for(var r=0;r<n.length;r++){var i=n[r];e[i]=t[i]}return e}function $e(e,t,n){for(var r=st(t),i=0,a=r.length;i<a;i++){var o=r[i];(n?t[o]!=null:e[o]==null)&&(e[o]=t[o])}return e}Fe.createCanvas;function et(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 tt(e,t){var n=e.prototype;function r(){}for(var i in r.prototype=t.prototype,e.prototype=new r,n)n.hasOwnProperty(i)&&(e.prototype[i]=n[i]);e.prototype.constructor=e,e.superClass=t}function nt(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 a=r[i];a!==`constructor`&&(n?t[a]!=null:e[a]==null)&&(e[a]=t[a])}else $e(e,t,n)}function rt(e){return!e||typeof e==`string`?!1:typeof e.length==`number`}function z(e,t,n){if(e&&t){if(e.forEach&&e.forEach===Be)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 a in e)e.hasOwnProperty(a)&&t.call(n,e[a],a,e)}}function B(e,t,n){if(!e)return[];if(!t)return yt(e);if(e.map&&e.map===Ue)return e.map(t,n);for(var r=[],i=0,a=e.length;i<a;i++)r.push(t.call(n,e[i],i,e));return r}function it(e,t,n,r){if(e&&t){for(var i=0,a=e.length;i<a;i++)n=t.call(r,n,e[i],i,e);return n}}function at(e,t,n){if(!e)return[];if(!t)return yt(e);if(e.filter&&e.filter===Ve)return e.filter(t,n);for(var r=[],i=0,a=e.length;i<a;i++)t.call(n,e[i],i,e)&&r.push(e[i]);return r}function ot(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 st(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 ct(e,t){var n=[...arguments].slice(2);return function(){return e.apply(t,n.concat(He.call(arguments)))}}var V=Ge&&U(Ge.bind)?Ge.call.bind(Ge.bind):ct;function lt(e){var t=[...arguments].slice(1);return function(){return e.apply(this,t.concat(He.call(arguments)))}}function H(e){return Array.isArray?Array.isArray(e):Re.call(e)===`[object Array]`}function U(e){return typeof e==`function`}function W(e){return typeof e==`string`}function ut(e){return Re.call(e)===`[object String]`}function dt(e){return typeof e==`number`}function G(e){var t=typeof e;return t===`function`||!!e&&t===`object`}function ft(e){return!!Ie[Re.call(e)]}function pt(e){return!!Le[Re.call(e)]}function mt(e){return typeof e==`object`&&typeof e.nodeType==`number`&&typeof e.ownerDocument==`object`}function ht(e){return e.colorStops!=null}function gt(e){return e!==e}function _t(){for(var e=[...arguments],t=0,n=e.length;t<n;t++)if(e[t]!=null)return e[t]}function K(e,t){return e??t}function vt(e,t,n){return e??t??n}function yt(e){var t=[...arguments].slice(1);return He.apply(e,t)}function bt(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 xt(e,t){if(!e)throw Error(t)}function St(e){return e==null?null:typeof e.trim==`function`?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``)}var Ct=`__ec_primitive__`;function wt(e){e[Ct]=!0}function Tt(e){return e[Ct]}var Et=function(){function e(){this.data={}}return e.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},e.prototype.has=function(e){return this.data.hasOwnProperty(e)},e.prototype.get=function(e){return this.data[e]},e.prototype.set=function(e,t){return this.data[e]=t,this},e.prototype.keys=function(){return st(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},e}(),Dt=typeof Map==`function`;function Ot(){return Dt?new Map:new Et}var kt=function(){function e(t){var n=H(t);this.data=Ot();var r=this;t instanceof e?t.each(i):t&&z(t,i);function i(e,t){n?r.set(e,t):r.set(t,e)}}return e.prototype.hasKey=function(e){return this.data.has(e)},e.prototype.get=function(e){return this.data.get(e)},e.prototype.set=function(e,t){return this.data.set(e,t),t},e.prototype.each=function(e,t){this.data.forEach(function(n,r){e.call(t,n,r)})},e.prototype.keys=function(){var e=this.data.keys();return Dt?Array.from(e):e},e.prototype.removeKey=function(e){this.data.delete(e)},e}();function q(e){return new kt(e)}function At(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 jt(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&R(n,t),n}function Mt(e,t){return e.hasOwnProperty(t)}function Nt(){}var Pt=180/Math.PI,Ft=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),J=new(function(){function e(){this.browser=new Ft,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}());typeof wx==`object`&&typeof wx.getSystemInfoSync==`function`?(J.wxa=!0,J.touchEventsSupported=!0):typeof document>`u`&&typeof self<`u`?J.worker=!0:!J.hasGlobalWindow||`Deno`in window||typeof navigator<`u`&&typeof navigator.userAgent==`string`&&navigator.userAgent.indexOf(`Node.js`)>-1?(J.node=!0,J.svgSupported=!0):It(navigator.userAgent,J);function It(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);if(r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),a&&(n.edge=!0,n.version=a[1],n.newEdge=+a[1].split(`.`)[0]>18),o&&(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),t.domSupported=typeof document<`u`){var s=document.documentElement.style;t.transform3dSupported=(n.ie&&`transition`in s||n.edge||`WebKitCSSMatrix`in window&&`m11`in new WebKitCSSMatrix||`MozPerspective`in s)&&!(`OTransition`in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}}var Lt=`.`,Rt=`___EC__COMPONENT__CONTAINER___`,zt=`___EC__EXTENDED_CLASS___`;function Bt(e){var t={main:``,sub:``};if(e){var n=e.split(Lt);t.main=n[0]||``,t.sub=n[1]||``}return t}function Vt(e){xt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),`componentType "`+e+`" illegal`)}function Ht(e){return!!(e&&e[zt])}function Ut(e,t){e.$constructor=e,e.extend=function(e){var t=this,n;return Wt(t)?n=function(e){I(t,e);function t(){return e.apply(this,arguments)||this}return t}(t):(n=function(){(e.$constructor||t).apply(this,arguments)},tt(n,this)),R(n.prototype,e),n[zt]=!0,n.extend=this.extend,n.superCall=Jt,n.superApply=Yt,n.superClass=t,n}}function Wt(e){return U(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function Gt(e,t){e.extend=t.extend}var Kt=Math.round(Math.random()*10);function qt(e){var t=[`__\0is_clz`,Kt++].join(`_`);e.prototype[t]=!0,e.isInstance=function(e){return!!(e&&e[t])}}function Jt(e,t){var n=[...arguments].slice(2);return this.superClass.prototype[t].apply(e,n)}function Yt(e,t,n){return this.superClass.prototype[t].apply(e,n)}function Xt(e){var t={};e.registerClass=function(e){var r=e.type||e.prototype.type;if(r){Vt(r),e.prototype.type=r;var i=Bt(r);if(!i.sub)t[i.main]=e;else if(i.sub!==Rt){var a=n(i);a[i.sub]=e}}return e},e.getClass=function(e,n,r){var i=t[e];if(i&&i[Rt]&&(i=n?i[n]:null),r&&!i)throw Error(n?`Component `+e+`.`+(n||``)+` is used but not imported.`:e+`.type should be specified.`);return i},e.getClassesByMainType=function(e){var n=Bt(e),r=[],i=t[n.main];return i&&i[Rt]?z(i,function(e,t){t!==Rt&&r.push(e)}):r.push(i),r},e.hasClass=function(e){return!!t[Bt(e).main]},e.getAllClassMainTypes=function(){var e=[];return z(t,function(t,n){e.push(n)}),e},e.hasSubTypes=function(e){var n=t[Bt(e).main];return n&&n[Rt]};function n(e){var n=t[e.main];return(!n||!n[Rt])&&(n=t[e.main]={},n[Rt]=!0),n}}function Zt(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t||=!1,function(n,r,i){for(var a={},o=0;o<e.length;o++){var s=e[o][1];if(!(r&&et(r,s)>=0||i&&et(i,s)<0)){var c=n.getShallow(s,t);c!=null&&(a[e[o][0]]=c)}}return a}}var Qt=Zt([[`fill`,`color`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`opacity`],[`shadowColor`]]),$t=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return Qt(this,e,t)},e}(),en=function(){function e(e){this.value=e}return e}(),tn=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new en(e);return this.insertEntry(t),t},e.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},e.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),nn=function(){function e(e){this._list=new tn,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,r=this._map,i=null;if(r[e]==null){var a=n.len(),o=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var s=n.head;n.remove(s),delete r[s.key],i=s.value,this._lastRemovedEntry=s}o?o.value=t:o=new en(t),o.key=e,n.insertEntry(o),r[e]=o}return i},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(t!=null)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),rn=new nn(50);function an(e){if(typeof e==`string`){var t=rn.get(e);return t&&t.image}return e}function on(e,t,n,r,i){if(!e)return t;if(typeof e==`string`){if(t&&t.__zrImageSrc===e||!n)return t;var a=rn.get(e),o={hostEl:n,cb:r,cbPayload:i};return a?(t=a.image,!cn(t)&&a.pending.push(o)):(t=Fe.loadImage(e,sn,sn),t.__zrImageSrc=e,rn.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}return e}function sn(){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 cn(e){return e&&e.width&&e.height}function ln(){return[1,0,0,1,0,0]}function un(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function dn(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 fn(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],a=t[0]*n[2]+t[2]*n[3],o=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],c=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=c,e}function pn(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 mn(e,t,n,r){r===void 0&&(r=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],c=t[3],l=t[5],u=Math.sin(n),d=Math.cos(n);return e[0]=i*d+s*u,e[1]=-i*u+s*d,e[2]=a*d+c*u,e[3]=-a*u+d*c,e[4]=d*(o-r[0])+u*(l-r[1])+r[0],e[5]=d*(l-r[1])-u*(o-r[0])+r[1],e}function hn(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 gn(e,t){var n=t[0],r=t[2],i=t[4],a=t[1],o=t[3],s=t[5],c=n*o-a*r;return c?(c=1/c,e[0]=o*c,e[1]=-a*c,e[2]=-r*c,e[3]=n*c,e[4]=(r*s-o*i)*c,e[5]=(a*i-n*s)*c,e):null}function _n(e,t){return e??=0,t??=0,[e,t]}function vn(e){return[e[0],e[1]]}function yn(e,t,n){return e[0]=t,e[1]=n,e}function bn(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function xn(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function Sn(e){return Math.sqrt(Cn(e))}function Cn(e){return e[0]*e[0]+e[1]*e[1]}function wn(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function Tn(e,t){var n=Sn(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function En(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var Dn=En;function On(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var kn=On;function An(e,t,n,r){return e[0]=t[0]+r*(n[0]-t[0]),e[1]=t[1]+r*(n[1]-t[1]),e}function jn(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 Mn(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function Nn(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var Y=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.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 e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,r){e.x=t.x+n.x*r,e.y=t.y+n.y*r},e.lerp=function(e,t,n,r){var i=1-r;e.x=i*t.x+r*n.x,e.y=i*t.y+r*n.y},e}(),Pn=Math.min,Fn=Math.max,In=Math.abs,Ln=[`x`,`y`],Rn=[`width`,`height`],zn=new Y,Bn=new Y,Vn=new Y,Hn=new Y,Un=er(),Wn=Un.minTv,Gn=Un.maxTv,Kn=[0,0],X=function(){function e(e,t,n,r){qn(this,e,t,n,r)}return e.set=function(e,t,n,r,i){return r<0&&(t+=r,r=-r),i<0&&(n+=i,i=-i),e.x=t,e.y=n,e.width=r,e.height=i,e},e.prototype.union=function(e){var t=Pn(e.x,this.x),n=Pn(e.y,this.y);this.width=isFinite(this.x)&&isFinite(this.width)?Fn(e.x+e.width,this.x+this.width)-t:e.width,this.height=isFinite(this.y)&&isFinite(this.height)?Fn(e.y+e.height,this.y+this.height)-n:e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){return Yn(ln(),this,e)},e.prototype.intersect=function(t,n,r){return e.intersect(this,t,n,r)},e.intersect=function(t,n,r,i){r&&Y.set(r,0,0);var a=i&&i.outIntersectRect||null,o=i&&i.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!t||!n)return!1;t instanceof e||(t=qn(Xn,t.x,t.y,t.width,t.height)),n instanceof e||(n=qn(Zn,n.x,n.y,n.width,n.height));var s=!!r;Un.reset(i,s);var c=Un.touchThreshold,l=t.x+c,u=t.x+t.width-c,d=t.y+c,f=t.y+t.height-c,p=n.x+c,m=n.x+n.width-c,h=n.y+c,g=n.y+n.height-c;if(l>u||d>f||p>m||h>g)return!1;var _=!(u<p||m<l||f<h||g<d);return(s||a)&&(Kn[0]=1/0,Kn[1]=0,$n(l,u,p,m,0,s,a,o),$n(d,f,h,g,1,s,a,o),s&&Y.copy(r,_?Un.useDir?Un.dirMinTv:Wn:Gn)),_},e.contain=function(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.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(e){Jn(this,e)},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(e,t){return e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e},e.applyTransform=function(e,t,n){if(!n)e!==t&&Jn(e,t);else if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var r=n[0],i=n[3],a=n[4],o=n[5];e.x=t.x*r+a,e.y=t.y*i+o,e.width=t.width*r,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height)}else{zn.x=Vn.x=t.x,zn.y=Hn.y=t.y,Bn.x=Hn.x=t.x+t.width,Bn.y=Vn.y=t.y+t.height,zn.transform(n),Hn.transform(n),Bn.transform(n),Vn.transform(n),e.x=Pn(zn.x,Bn.x,Vn.x,Hn.x),e.y=Pn(zn.y,Bn.y,Vn.y,Hn.y);var s=Fn(zn.x,Bn.x,Vn.x,Hn.x),c=Fn(zn.y,Bn.y,Vn.y,Hn.y);e.width=s-e.x,e.height=c-e.y}},e.calculateTransform=function(e,t,n){var r=n.width/t.width,i=n.height/t.height;return e=un(e||[]),pn(e,e,yn(Qn,-t.x,-t.y)),hn(e,e,yn(Qn,r,i)),pn(e,e,yn(Qn,n.x,n.y)),e},e}();X.create;var qn=X.set,Jn=X.copy,Yn=X.calculateTransform;X.applyTransform,X.contain;var Xn=new X(0,0,0,0),Zn=new X(0,0,0,0),Qn=[];function $n(e,t,n,r,i,a,o,s){var c=In(t-n),l=In(r-e),u=Pn(c,l),d=Ln[i],f=Ln[1-i],p=Rn[i];t<n||r<e?c<l?(a&&(Gn[d]=-c),s&&(o[d]=t,o[p]=0)):(a&&(Gn[d]=l),s&&(o[d]=e,o[p]=0)):(o&&(o[d]=Fn(e,n),o[p]=Pn(t,r)-o[d]),a&&(u<Kn[0]||Un.useDir)&&(Kn[0]=Pn(u,Kn[0]),(c<l||!Un.bidirectional)&&(Wn[d]=c,Wn[f]=0,Un.useDir&&Un.calcDirMTV()),(c>=l||!Un.bidirectional)&&(Wn[d]=-l,Wn[f]=0,Un.useDir&&Un.calcDirMTV())))}function er(){var e=0,t=new Y,n=new Y,r={minTv:new Y,maxTv:new Y,useDir:!1,dirMinTv:new Y,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,a){r.touchThreshold=0,i&&i.touchThreshold!=null&&(r.touchThreshold=Fn(0,i.touchThreshold)),r.negativeSize=!1,a&&(r.minTv.set(1/0,1/0),r.maxTv.set(0,0),r.useDir=!1,i&&i.direction!=null&&(r.useDir=!0,r.dirMinTv.copy(r.minTv),n.copy(r.minTv),e=i.direction,r.bidirectional=i.bidirectional==null||!!i.bidirectional,r.bidirectional||t.set(Math.cos(e),Math.sin(e))))},calcDirMTV:function(){var a=r.minTv,o=r.dirMinTv,s=a.y*a.y+a.x*a.x,c=Math.sin(e),l=Math.cos(e),u=c*a.y+l*a.x;i(u)?i(a.x)&&i(a.y)&&o.set(0,0):(n.x=s*l/u,n.y=s*c/u,i(n.x)&&i(n.y)?o.set(0,0):(r.bidirectional||t.dot(n)>0)&&n.len()<o.len()&&o.copy(n))}};function i(e){return In(e)<1e-10}return r}function tr(e){nr||=new nn(100),e||=`12px sans-serif`;var t=nr.get(e);return t||(t={font:e,strWidthCache:new nn(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:Fe.measureText(`国`,e).width,asciiCharWidth:Fe.measureText(`a`,e).width},nr.put(e,t)),t}var nr;function rr(e){if(!(ir>=ar)){e||=`12px sans-serif`;for(var t=[],n=+new Date,r=0;r<=127;r++)t[r]=Fe.measureText(String.fromCharCode(r),e).width;var i=+new Date-n;return i>16?ir=ar:i>2&&ir++,t}}var ir=0,ar=5;function or(e,t){return e.asciiWidthMapTried||=(e.asciiWidthMap=rr(e.font),!0),0<=t&&t<=127?e.asciiWidthMap==null?e.asciiCharWidth:e.asciiWidthMap[t]:e.stWideCharWidth}function sr(e,t){var n=e.strWidthCache,r=n.get(t);return r??(r=Fe.measureText(t,e.font).width,n.put(t,r)),r}function cr(e,t,n,r){var i=sr(tr(t),e),a=fr(t);return new X(ur(0,i,n),dr(0,a,r),i,a)}function lr(e,t,n,r){var i=((e||``)+``).split(`
13
+ `);if(i.length===1)return cr(i[0],t,n,r);for(var a=new X(0,0,0,0),o=0;o<i.length;o++){var s=cr(i[o],t,n,r);o===0?a.copy(s):a.union(s)}return a}function ur(e,t,n,r){return n===`right`?r?e+=t:e-=t:n===`center`&&(r?e+=t/2:e-=t/2),e}function dr(e,t,n,r){return n===`middle`?r?e+=t/2:e-=t/2:n===`bottom`&&(r?e+=t:e-=t),e}function fr(e){return tr(e).stWideCharWidth}function pr(e,t){return typeof e==`string`?e.lastIndexOf(`%`)>=0?parseFloat(e)/100*t:parseFloat(e):e}function mr(e,t,n){var r=t.position||`inside`,i=t.distance==null?5:t.distance,a=n.height,o=n.width,s=a/2,c=n.x,l=n.y,u=`left`,d=`top`;if(r instanceof Array)c+=pr(r[0],n.width),l+=pr(r[1],n.height),u=null,d=null;else switch(r){case`left`:c-=i,l+=s,u=`right`,d=`middle`;break;case`right`:c+=i+o,l+=s,d=`middle`;break;case`top`:c+=o/2,l-=i,u=`center`,d=`bottom`;break;case`bottom`:c+=o/2,l+=a+i,u=`center`;break;case`inside`:c+=o/2,l+=s,u=`center`,d=`middle`;break;case`insideLeft`:c+=i,l+=s,d=`middle`;break;case`insideRight`:c+=o-i,l+=s,u=`right`,d=`middle`;break;case`insideTop`:c+=o/2,l+=i,u=`center`;break;case`insideBottom`:c+=o/2,l+=a-i,u=`center`,d=`bottom`;break;case`insideTopLeft`:c+=i,l+=i;break;case`insideTopRight`:c+=o-i,l+=i,u=`right`;break;case`insideBottomLeft`:c+=i,l+=a-i,d=`bottom`;break;case`insideBottomRight`:c+=o-i,l+=a-i,u=`right`,d=`bottom`}return e||={},e.x=c,e.y=l,e.align=u,e.verticalAlign=d,e}var hr=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function gr(e,t,n,r,i,a){if(!n)e.text=``,e.isTruncated=!1;else{var o=(t+``).split(`
14
+ `);a=_r(n,r,i,a);for(var s=!1,c={},l=0,u=o.length;l<u;l++)vr(c,o[l],a),o[l]=c.textLine,s||=c.isTruncated;e.text=o.join(`
15
+ `),e.isTruncated=s}}function _r(e,t,n,r){r||={};var i=R({},r);n=K(n,`...`),i.maxIterations=K(r.maxIterations,2);var a=i.minChar=K(r.minChar,0),o=i.fontMeasureInfo=tr(t),s=o.asciiCharWidth;i.placeholder=K(r.placeholder,``);for(var c=e=Math.max(0,e-1),l=0;l<a&&c>=s;l++)c-=s;var u=sr(o,n);return u>c&&(n=``,u=0),c=e-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=c,i.containerWidth=e,i}function vr(e,t,n){var r=n.containerWidth,i=n.contentWidth,a=n.fontMeasureInfo;if(!r)e.textLine=``,e.isTruncated=!1;else{var o=sr(a,t);if(o<=r)e.textLine=t,e.isTruncated=!1;else{for(var s=0;;s++){if(o<=i||s>=n.maxIterations){t+=n.ellipsis;break}var c=s===0?yr(t,i,a):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,c),o=sr(a,t)}t===``&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}}}function yr(e,t,n){for(var r=0,i=0,a=e.length;i<a&&r<t;i++)r+=or(n,e.charCodeAt(i));return i}function br(e,t,n,r){var i=Nr(e),a=t.overflow,o=t.padding,s=o?o[1]+o[3]:0,c=o?o[0]+o[2]:0,l=t.font,u=a===`truncate`,d=fr(l),f=K(t.lineHeight,d),p=t.lineOverflow===`truncate`,m=!1,h=t.width;h==null&&n!=null&&(h=n-s);var g=t.height;g==null&&r!=null&&(g=r-c);var _=h!=null&&(a===`break`||a===`breakAll`)?i?kr(i,t.font,h,a===`breakAll`,0).lines:[]:i?i.split(`
16
+ `):[],v=_.length*f;if(g??=v,v>g&&p){var y=Math.floor(g/f);m||=_.length>y,_=_.slice(0,y),v=_.length*f}if(i&&u&&h!=null)for(var b=_r(h,l,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),x={},S=0;S<_.length;S++)vr(x,_[S],b),_[S]=x.textLine,m||=x.isTruncated;for(var C=g,w=0,T=tr(l),S=0;S<_.length;S++)w=Math.max(sr(T,_[S]),w);h??=w;var E=h;return C+=c,E+=s,{lines:_,height:g,outerWidth:E,outerHeight:C,lineHeight:f,calculatedLineHeight:d,contentWidth:w,contentHeight:v,width:h,isTruncated:m}}var xr=function(){function e(){}return e}(),Sr=function(){function e(e){this.tokens=[],e&&(this.tokens=e)}return e}(),Cr=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 wr(e,t,n,r,i){var a=new Cr,o=Nr(e);if(!o)return a;var s=t.padding,c=s?s[1]+s[3]:0,l=s?s[0]+s[2]:0,u=t.width;u==null&&n!=null&&(u=n-c);var d=t.height;d==null&&r!=null&&(d=r-l);for(var f=t.overflow,p=(f===`break`||f===`breakAll`)&&u!=null?{width:u,accumWidth:0,breakAll:f===`breakAll`}:null,m=hr.lastIndex=0,h;(h=hr.exec(o))!=null;){var g=h.index;g>m&&Tr(a,o.substring(m,g),t,p),Tr(a,h[2],t,p,h[1]),m=hr.lastIndex}m<o.length&&Tr(a,o.substring(m,o.length),t,p);var _=[],v=0,y=0,b=f===`truncate`,x=t.lineOverflow===`truncate`,S={};function C(e,t,n){e.width=t,e.lineHeight=n,v+=n,y=Math.max(y,t)}outer:for(var w=0;w<a.lines.length;w++){for(var T=a.lines[w],E=0,D=0,O=0;O<T.tokens.length;O++){var k=T.tokens[O],A=k.styleName&&t.rich[k.styleName]||{},j=k.textPadding=A.padding,M=j?j[1]+j[3]:0,ee=k.font=A.font||t.font;k.contentHeight=fr(ee);var N=K(A.height,k.contentHeight);if(k.innerHeight=N,j&&(N+=j[0]+j[2]),k.height=N,k.lineHeight=vt(A.lineHeight,t.lineHeight,N),k.align=A&&A.align||i,k.verticalAlign=A&&A.verticalAlign||`middle`,x&&d!=null&&v+k.lineHeight>d){var P=a.lines.length;O>0?(T.tokens=T.tokens.slice(0,O),C(T,D,E),a.lines=a.lines.slice(0,w+1)):a.lines=a.lines.slice(0,w),a.isTruncated=a.isTruncated||a.lines.length<P;break outer}var te=A.width,ne=te==null||te===`auto`;if(typeof te==`string`&&te.charAt(te.length-1)===`%`)k.percentWidth=te,_.push(k),k.contentWidth=sr(tr(ee),k.text);else{if(ne){var re=A.backgroundColor,ie=re&&re.image;ie&&(ie=an(ie),cn(ie)&&(k.width=Math.max(k.width,ie.width*N/ie.height)))}var ae=b&&u!=null?u-D:null;ae!=null&&ae<k.width?!ne||ae<M?(k.text=``,k.width=k.contentWidth=0):(gr(S,k.text,ae-M,ee,t.ellipsis,{minChar:t.truncateMinChar}),k.text=S.text,a.isTruncated=a.isTruncated||S.isTruncated,k.width=k.contentWidth=sr(tr(ee),k.text)):k.contentWidth=sr(tr(ee),k.text)}k.width+=M,D+=k.width,A&&(E=Math.max(E,k.lineHeight))}C(T,D,E)}a.outerWidth=a.width=K(u,y),a.outerHeight=a.height=K(d,v),a.contentHeight=v,a.contentWidth=y,a.outerWidth+=c,a.outerHeight+=l;for(var w=0;w<_.length;w++){var k=_[w],oe=k.percentWidth;k.width=parseInt(oe,10)/100*a.width}return a}function Tr(e,t,n,r,i){var a=t===``,o=i&&n.rich[i]||{},s=e.lines,c=o.font||n.font,l=!1,u,d;if(r){var f=o.padding,p=f?f[1]+f[3]:0;if(o.width!=null&&o.width!==`auto`){var m=pr(o.width,r.width)+p;s.length>0&&m+r.accumWidth>r.width&&(u=t.split(`
17
+ `),l=!0),r.accumWidth=m}else{var h=kr(t,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=h.accumWidth+p,d=h.linesWidths,u=h.lines}}u||=t.split(`
18
+ `);for(var g=tr(c),_=0;_<u.length;_++){var v=u[_],y=new xr;if(y.styleName=i,y.text=v,y.isLineHolder=!v&&!a,y.width=typeof o.width==`number`?o.width:d?d[_]:sr(g,v),!_&&!l){var b=(s[s.length-1]||(s[0]=new Sr)).tokens,x=b.length;x===1&&b[0].isLineHolder?b[0]=y:(v||!x||a)&&b.push(y)}else s.push(new Sr([y]))}}function Er(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Dr=it(`,&?/;] `.split(``),function(e,t){return e[t]=!0,e},{});function Or(e){return!Er(e)||!!Dr[e]}function kr(e,t,n,r,i){for(var a=[],o=[],s=``,c=``,l=0,u=0,d=tr(t),f=0;f<e.length;f++){var p=e.charAt(f);if(p===`
19
+ `)c&&(s+=c,u+=l),a.push(s),o.push(u),s=``,c=``,l=0,u=0;else{var m=or(d,p.charCodeAt(0)),h=!r&&!Or(p);(a.length?u+m>n:i+u+m>n)?u?(s||c)&&(h?(s||(s=c,c=``,l=0,u=l),a.push(s),o.push(u-l),c+=p,l+=m,s=``,u=l):(c&&(s+=c,c=``,l=0),a.push(s),o.push(u),s=p,u=m)):h?(a.push(c),o.push(l),c=p,l=m):(a.push(p),o.push(m)):(u+=m,h?(c+=p,l+=m):(c&&(s+=c,c=``,l=0),s+=p))}}return c&&(s+=c),s&&(a.push(s),o.push(u)),a.length===1&&(u+=i),{accumWidth:u,lines:a,linesWidths:o}}function Ar(e,t,n,r,i,a){if(e.baseX=n,e.baseY=r,e.outerWidth=e.outerHeight=null,t){var o=t.width*2,s=t.height*2;X.set(jr,ur(n,o,i),dr(r,s,a),o,s),X.intersect(t,jr,null,Mr);var c=Mr.outIntersectRect;e.outerWidth=c.width,e.outerHeight=c.height,e.baseX=ur(c.x,c.width,i,!0),e.baseY=dr(c.y,c.height,a,!0)}}var jr=new X(0,0,0,0),Mr={outIntersectRect:{},clamp:!0};function Nr(e){return e==null?e=``:e+=``}function Pr(e){var t=Nr(e.text),n=e.font;return Fr(e,sr(tr(n),t),fr(n),null)}function Fr(e,t,n,r){var i=new X(ur(e.x||0,t,e.textAlign),dr(e.y||0,n,e.textBaseline),t,n),a=r??(Ir(e)?e.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function Ir(e){var t=e.stroke;return t!=null&&t!==`none`&&e.lineWidth>0}var Lr=un,Rr=5e-5;function zr(e){return e>Rr||e<-Rr}var Br=[],Vr=[],Hr=ln(),Ur=Math.abs,Wr=function(){function e(){}return e.prototype.getLocalTransform=function(e){return Gr(this,e)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return zr(this.rotation)||zr(this.x)||zr(this.y)||zr(this.scaleX-1)||zr(this.scaleY-1)||zr(this.skewX)||zr(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;t||e?(n||=ln(),t?this.getLocalTransform(n):Lr(n),e&&(t?fn(n,e,n):dn(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||ln(),gn(this.invTransform,n)):n&&(Lr(n),this.invTransform=null)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Br);var n=Br[0]<0?-1:1,r=Br[1]<0?-1:1,i=((Br[0]-n)*t+n)/Br[0]||0,a=((Br[1]-r)*t+r)/Br[1]||0;e[0]*=i,e[1]*=i,e[2]*=a,e[3]*=a}},e.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=Math.atan2(e[1],e[0]),i=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||ln(),fn(Vr,e.invTransform,t),t=Vr);var n=this.originX,r=this.originY;(n||r)&&(Hr[4]=n,Hr[5]=r,fn(Vr,t,Hr),Vr[4]-=n,Vr[5]-=r,t=Vr),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e||=[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&jn(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&jn(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&Ur(e[0]-1)>1e-10&&Ur(e[3]-1)>1e-10?Math.sqrt(Ur(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){qr(this,e)},e.getLocalTransform=function(e,t){t||=[];var n=e.originX||0,r=e.originY||0,i=e.scaleX,a=e.scaleY,o=e.anchorX,s=e.anchorY,c=e.rotation||0,l=e.x,u=e.y,d=e.skewX?Math.tan(e.skewX):0,f=e.skewY?Math.tan(-e.skewY):0;if(n||r||o||s){var p=n+o,m=r+s;t[4]=-p*i-d*m*a,t[5]=-m*a-f*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=a,t[1]=f*i,t[2]=d*a,c&&mn(t,t,c),t[4]+=n+l,t[5]+=r+u,t},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}(),Gr=Wr.getLocalTransform,Kr=[`x`,`y`,`originX`,`originY`,`anchorX`,`anchorY`,`rotation`,`scaleX`,`scaleY`,`skewX`,`skewY`];function qr(e,t){return Qe(e,t,Kr)}var Jr={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:1024**(e-1)},exponentialOut:function(e){return e===1?1:1-2**(-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*1024**(e-1):.5*(-(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*2**(10*--e)*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*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*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)):n*2**(-10*--e)*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-Jr.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?Jr.bounceIn(e*2)*.5:Jr.bounceOut(e*2-1)*.5+.5}},Yr=Math.pow,Xr=Math.sqrt,Zr=1e-8,Qr=1e-4,$r=Xr(3),ei=1/3,ti=_n(),ni=_n(),ri=_n();function ii(e){return e>-Zr&&e<Zr}function ai(e){return e>Zr||e<-Zr}function oi(e,t,n,r,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*r+3*a*n)}function si(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function ci(e,t,n,r,i,a){var o=r+3*(t-n)-e,s=3*(n-t*2+e),c=3*(t-e),l=e-i,u=s*s-3*o*c,d=s*c-9*o*l,f=c*c-3*s*l,p=0;if(ii(u)&&ii(d)){if(ii(s))a[0]=0;else{var m=-c/s;m>=0&&m<=1&&(a[p++]=m)}}else{var h=d*d-4*u*f;if(ii(h)){var g=d/u,m=-s/o+g,_=-g/2;m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_)}else if(h>0){var v=Xr(h),y=u*s+1.5*o*(-d+v),b=u*s+1.5*o*(-d-v);y=y<0?-Yr(-y,ei):Yr(y,ei),b=b<0?-Yr(-b,ei):Yr(b,ei);var m=(-s-(y+b))/(3*o);m>=0&&m<=1&&(a[p++]=m)}else{var x=(2*u*s-3*o*d)/(2*Xr(u*u*u)),S=Math.acos(x)/3,C=Xr(u),w=Math.cos(S),m=(-s-2*C*w)/(3*o),_=(-s+C*(w+$r*Math.sin(S)))/(3*o),T=(-s+C*(w-$r*Math.sin(S)))/(3*o);m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_),T>=0&&T<=1&&(a[p++]=T)}}return p}function li(e,t,n,r,i){var a=6*n-12*t+6*e,o=9*t+3*r-3*e-9*n,s=3*t-3*e,c=0;if(ii(o)){if(ai(a)){var l=-s/a;l>=0&&l<=1&&(i[c++]=l)}}else{var u=a*a-4*o*s;if(ii(u))i[0]=-a/(2*o);else if(u>0){var d=Xr(u),l=(-a+d)/(2*o),f=(-a-d)/(2*o);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function ui(e,t,n,r,i,a){var o=(t-e)*i+e,s=(n-t)*i+t,c=(r-n)*i+n,l=(s-o)*i+o,u=(c-s)*i+s,d=(u-l)*i+l;a[0]=e,a[1]=o,a[2]=l,a[3]=d,a[4]=d,a[5]=u,a[6]=c,a[7]=r}function di(e,t,n,r,i,a,o,s,c,l,u){var d,f=.005,p=1/0,m,h,g,_;ti[0]=c,ti[1]=l;for(var v=0;v<1;v+=.05)ni[0]=oi(e,n,i,o,v),ni[1]=oi(t,r,a,s,v),g=kn(ti,ni),g<p&&(d=v,p=g);p=1/0;for(var y=0;y<32&&!(f<Qr);y++)m=d-f,h=d+f,ni[0]=oi(e,n,i,o,m),ni[1]=oi(t,r,a,s,m),g=kn(ni,ti),m>=0&&g<p?(d=m,p=g):(ri[0]=oi(e,n,i,o,h),ri[1]=oi(t,r,a,s,h),_=kn(ri,ti),h<=1&&_<p?(d=h,p=_):f*=.5);return u&&(u[0]=oi(e,n,i,o,d),u[1]=oi(t,r,a,s,d)),Xr(p)}function fi(e,t,n,r,i,a,o,s,c){for(var l=e,u=t,d=0,f=1/c,p=1;p<=c;p++){var m=p*f,h=oi(e,n,i,o,m),g=oi(t,r,a,s,m),_=h-l,v=g-u;d+=Math.sqrt(_*_+v*v),l=h,u=g}return d}function pi(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function mi(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function hi(e,t,n,r,i){var a=e-2*t+n,o=2*(t-e),s=e-r,c=0;if(ii(a)){if(ai(o)){var l=-s/o;l>=0&&l<=1&&(i[c++]=l)}}else{var u=o*o-4*a*s;if(ii(u)){var l=-o/(2*a);l>=0&&l<=1&&(i[c++]=l)}else if(u>0){var d=Xr(u),l=(-o+d)/(2*a),f=(-o-d)/(2*a);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function gi(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function _i(e,t,n,r,i){var a=(t-e)*r+e,o=(n-t)*r+t,s=(o-a)*r+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=n}function vi(e,t,n,r,i,a,o,s,c){var l,u=.005,d=1/0;ti[0]=o,ti[1]=s;for(var f=0;f<1;f+=.05){ni[0]=pi(e,n,i,f),ni[1]=pi(t,r,a,f);var p=kn(ti,ni);p<d&&(l=f,d=p)}d=1/0;for(var m=0;m<32&&!(u<Qr);m++){var h=l-u,g=l+u;ni[0]=pi(e,n,i,h),ni[1]=pi(t,r,a,h);var p=kn(ni,ti);if(h>=0&&p<d)l=h,d=p;else{ri[0]=pi(e,n,i,g),ri[1]=pi(t,r,a,g);var _=kn(ri,ti);g<=1&&_<d?(l=g,d=_):u*=.5}}return c&&(c[0]=pi(e,n,i,l),c[1]=pi(t,r,a,l)),Xr(d)}function yi(e,t,n,r,i,a,o){for(var s=e,c=t,l=0,u=1/o,d=1;d<=o;d++){var f=d*u,p=pi(e,n,i,f),m=pi(t,r,a,f),h=p-s,g=m-c;l+=Math.sqrt(h*h+g*g),s=p,c=m}return l}var bi=/cubic-bezier\(([0-9,\.e ]+)\)/;function xi(e){var t=e&&bi.exec(e);if(t){var n=t[1].split(`,`),r=+St(n[0]),i=+St(n[1]),a=+St(n[2]),o=+St(n[3]);if(isNaN(r+i+a+o))return;var s=[];return function(e){return e<=0?0:e>=1?1:ci(0,r,a,1,e,s)&&oi(0,i,o,1,s[0])}}}var Si=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Nt,this.ondestroy=e.ondestroy||Nt,this.onrestart=e.onrestart||Nt,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||=(this._startTime=e+this._delay,!0),this._paused)this._pausedTime+=t;else{var n=this._life,r=e-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var a=this.easingFunc,o=a?a(i):i;if(this.onframe(o),i===1){if(this.loop){var s=r%n;this._startTime=e-s,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(e){this.easing=e,this.easingFunc=U(e)?e:Jr[e]||xi(e)},e}(),Ci={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 wi(e){return e=Math.round(e),e<0?0:e>255?255:e}function Ti(e){return e=Math.round(e),e<0?0:e>360?360:e}function Ei(e){return e<0?0:e>1?1:e}function Di(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?wi(parseFloat(t)/100*255):wi(parseInt(t,10))}function Oi(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?Ei(parseFloat(t)/100):Ei(parseFloat(t))}function ki(e,t,n){return n<0?n+=1:n>1&&--n,n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function Ai(e,t,n){return e+(t-e)*n}function ji(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function Mi(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Ni=new nn(20),Pi=null;function Fi(e,t){Pi&&Mi(Pi,t),Pi=Ni.put(e,Pi||t.slice())}function Ii(e,t){if(e){t||=[];var n=Ni.get(e);if(n)return Mi(t,n);e+=``;var r=e.replace(/ /g,``).toLowerCase();if(r in Ci)return Mi(t,Ci[r]),Fi(e,t),t;var i=r.length;if(r.charAt(0)===`#`){if(i===4||i===5){var a=parseInt(r.slice(1,4),16);if(!(a>=0&&a<=4095)){ji(t,0,0,0,1);return}return ji(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),Fi(e,t),t}if(i===7||i===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){ji(t,0,0,0,1);return}return ji(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(r.slice(7),16)/255:1),Fi(e,t),t}}else{var o=r.indexOf(`(`),s=r.indexOf(`)`);if(o!==-1&&s+1===i){var c=r.substr(0,o),l=r.substr(o+1,s-(o+1)).split(`,`),u=1;switch(c){case`rgba`:if(l.length!==4)return l.length===3?ji(t,+l[0],+l[1],+l[2],1):ji(t,0,0,0,1);u=Oi(l.pop());case`rgb`:if(l.length>=3)return ji(t,Di(l[0]),Di(l[1]),Di(l[2]),l.length===3?u:Oi(l[3])),Fi(e,t),t;ji(t,0,0,0,1);return;case`hsla`:if(l.length!==4){ji(t,0,0,0,1);return}return l[3]=Oi(l[3]),Li(l,t),Fi(e,t),t;case`hsl`:if(l.length!==3){ji(t,0,0,0,1);return}return Li(l,t),Fi(e,t),t;default:return}}ji(t,0,0,0,1)}}}function Li(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=Oi(e[1]),i=Oi(e[2]),a=i<=.5?i*(r+1):i+r-i*r,o=i*2-a;return t||=[],ji(t,wi(ki(o,a,n+1/3)*255),wi(ki(o,a,n)*255),wi(ki(o,a,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Ri(e){if(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=a-i,s=(a+i)/2,c,l;if(o===0)c=0,l=0;else{l=s<.5?o/(a+i):o/(2-a-i);var u=((a-t)/6+o/2)/o,d=((a-n)/6+o/2)/o,f=((a-r)/6+o/2)/o;t===a?c=f-d:n===a?c=1/3+u-f:r===a&&(c=2/3+d-u),c<0&&(c+=1),c>1&&--c}var p=[c*360,l,s];return e[3]!=null&&p.push(e[3]),p}}function zi(e,t){var n=Ii(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 Wi(n,n.length===4?`rgba`:`rgb`)}}function Bi(e,t,n){if(t&&t.length&&e>=0&&e<=1){n||=[];var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=t[i],s=t[a],c=r-i;return n[0]=wi(Ai(o[0],s[0],c)),n[1]=wi(Ai(o[1],s[1],c)),n[2]=wi(Ai(o[2],s[2],c)),n[3]=Ei(Ai(o[3],s[3],c)),n}}function Vi(e,t,n){if(t&&t.length&&e>=0&&e<=1){var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=Ii(t[i]),s=Ii(t[a]),c=r-i,l=Wi([wi(Ai(o[0],s[0],c)),wi(Ai(o[1],s[1],c)),wi(Ai(o[2],s[2],c)),Ei(Ai(o[3],s[3],c))],`rgba`);return n?{color:l,leftIndex:i,rightIndex:a,value:r}:l}}function Hi(e,t,n,r){var i=Ii(e);if(e)return i=Ri(i),t!=null&&(i[0]=Ti(U(t)?t(i[0]):t)),n!=null&&(i[1]=Oi(U(n)?n(i[1]):n)),r!=null&&(i[2]=Oi(U(r)?r(i[2]):r)),Wi(Li(i),`rgba`)}function Ui(e,t){var n=Ii(e);if(n&&t!=null)return n[3]=Ei(t),Wi(n,`rgba`)}function Wi(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 Gi(e,t){var n=Ii(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var Ki=new nn(100);function qi(e){if(W(e)){var t=Ki.get(e);return t||(t=zi(e,-.1),Ki.put(e,t)),t}if(ht(e)){var n=R({},e);return n.colorStops=B(e.colorStops,function(e){return{offset:e.offset,color:zi(e.color,-.1)}}),n}return e}var Ji=Math.round;function Yi(e){var t;if(!e||e===`transparent`)e=`none`;else if(typeof e==`string`&&e.indexOf(`rgba`)>-1){var n=Ii(e);n&&(e=`rgb(`+n[0]+`,`+n[1]+`,`+n[2]+`)`,t=n[3])}return{color:e,opacity:t??1}}var Xi=1e-4;function Zi(e){return e<Xi&&e>-Xi}function Qi(e){return Ji(e*1e3)/1e3}function $i(e){return Ji(e*1e4)/1e4}function ea(e){return`matrix(`+Qi(e[0])+`,`+Qi(e[1])+`,`+Qi(e[2])+`,`+Qi(e[3])+`,`+$i(e[4])+`,`+$i(e[5])+`)`}var ta={left:`start`,right:`end`,center:`middle`,middle:`middle`};function na(e,t,n){return n===`top`?e+=t/2:n===`bottom`&&(e-=t/2),e}function ra(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function ia(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 aa(e){return e&&!!e.image}function oa(e){return e&&!!e.svgElement}function sa(e){return aa(e)||oa(e)}function ca(e){return e.type===`linear`}function la(e){return e.type===`radial`}function ua(e){return e&&(e.type===`linear`||e.type===`radial`)}function da(e){return`url(#`+e+`)`}function fa(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 pa(e){var t=e.x||0,n=e.y||0,r=(e.rotation||0)*Pt,i=K(e.scaleX,1),a=K(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,c=[];return(t||n)&&c.push(`translate(`+t+`px,`+n+`px)`),r&&c.push(`rotate(`+r+`)`),(i!==1||a!==1)&&c.push(`scale(`+i+`,`+a+`)`),(o||s)&&c.push(`skew(`+Ji(o*Pt)+`deg, `+Ji(s*Pt)+`deg)`),c.join(` `)}var ma=(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}})(),ha=Array.prototype.slice;function ga(e,t,n){return(t-e)*n+e}function _a(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=ga(t[a],n[a],r);return e}function va(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=ga(t[o][s],n[o][s],r)}return e}function ya(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+n[a]*r;return e}function ba(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+n[o][s]*r}return e}function xa(e,t){for(var n=e.length,r=t.length,i=n>r?t:e,a=Math.min(n,r),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(n,r);s++)i.push({offset:o.offset,color:o.color.slice()})}function Sa(e,t,n){var r=e,i=t;if(r.push&&i.push){var a=r.length,o=i.length;if(a!==o){if(a>o)r.length=o;else for(var s=a;s<o;s++)r.push(n===1?i[s]:ha.call(i[s]))}for(var c=r[0]&&r[0].length,s=0;s<r.length;s++)if(n===1)isNaN(r[s])&&(r[s]=i[s]);else for(var l=0;l<c;l++)isNaN(r[s][l])&&(r[s][l]=i[s][l])}}function Ca(e){if(rt(e)){var t=e.length;if(rt(e[0])){for(var n=[],r=0;r<t;r++)n.push(ha.call(e[r]));return n}return ha.call(e)}return e}function wa(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 Ta(e){return rt(e&&e[0])?2:1}var Ea=0,Da=1,Oa=2,ka=3,Aa=4,ja=5,Ma=6;function Na(e){return e===Aa||e===ja}function Pa(e){return e===Da||e===Oa}var Fa=[0,0,0,0],Ia=function(){function e(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}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(e,t,n){this._needsSort=!0;var r=this.keyframes,i=r.length,a=!1,o=Ma,s=t;if(rt(t)){var c=Ta(t);o=c,(c===1&&!dt(t[0])||c===2&&!dt(t[0][0]))&&(a=!0)}else if(dt(t)&&!gt(t))o=Ea;else if(W(t)){if(!isNaN(+t))o=Ea;else{var l=Ii(t);l&&(s=l,o=ka)}}else if(ht(t)){var u=R({},s);u.colorStops=B(t.colorStops,function(e){return{offset:e.offset,color:Ii(e.color)}}),ca(t)?o=Aa:la(t)&&(o=ja),s=u}i===0?this.valType=o:(o!==this.valType||o===Ma)&&(a=!0),this.discrete=this.discrete||a;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=U(n)?n:Jr[n]||xi(n)),r.push(d),d},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(e,t){return e.time-t.time});for(var r=this.valType,i=n.length,a=n[i-1],o=this.discrete,s=Pa(r),c=Na(r),l=0;l<i;l++){var u=n[l],d=u.value,f=a.value;u.percent=u.time/e,o||(s&&l!==i-1?Sa(d,f,r):c&&xa(d.colorStops,f.colorStops))}if(!o&&r!==ja&&t&&this.needsAnimate()&&t.needsAnimate()&&r===t.valType&&!t._finished){this._additiveTrack=t;for(var p=n[0].value,l=0;l<i;l++)r===Ea?n[l].additiveValue=n[l].value-p:r===ka?n[l].additiveValue=ya([],n[l].value,p,-1):Pa(r)&&(n[l].additiveValue=r===Da?ya([],n[l].value,p,-1):ba([],n[l].value,p,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,r=n?`additiveValue`:`value`,i=this.valType,a=this.keyframes,o=a.length,s=this.propName,c=i===ka,l,u=this._lastFr,d=Math.min,f,p;if(o===1)f=p=a[0];else{if(t<0)l=0;else if(t<this._lastFrP){for(l=d(u+1,o-1);l>=0&&!(a[l].percent<=t);l--);l=d(l,o-2)}else{for(l=u;l<o&&!(a[l].percent>t);l++);l=d(l-1,o-2)}p=a[l+1],f=a[l]}if(f&&p){this._lastFr=l,this._lastFrP=t;var m=p.percent-f.percent,h=m===0?1:d((t-f.percent)/m,1);p.easingFunc&&(h=p.easingFunc(h));var g=n?this._additiveValue:c?Fa:e[s];if((Pa(i)||c)&&!g&&(g=this._additiveValue=[]),this.discrete)e[s]=h<1?f.rawValue:p.rawValue;else if(Pa(i))i===Da?_a(g,f[r],p[r],h):va(g,f[r],p[r],h);else if(Na(i)){var _=f[r],v=p[r],y=i===Aa;e[s]={type:y?`linear`:`radial`,x:ga(_.x,v.x,h),y:ga(_.y,v.y,h),colorStops:B(_.colorStops,function(e,t){var n=v.colorStops[t];return{offset:ga(e.offset,n.offset,h),color:wa(_a([],e.color,n.color,h))}}),global:v.global},y?(e[s].x2=ga(_.x2,v.x2,h),e[s].y2=ga(_.y2,v.y2,h)):e[s].r=ga(_.r,v.r,h)}else if(c)_a(g,f[r],p[r],h),n||(e[s]=wa(g));else{var b=ga(f[r],p[r],h);n?this._additiveValue=b:e[s]=b}n&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;t===Ea?e[n]=e[n]+r:t===ka?(Ii(e[n],Fa),ya(Fa,Fa,r,1),e[n]=wa(Fa)):t===Da?ya(e[n],e[n],r,1):t===Oa&&ba(e[n],e[n],r,1)},e}(),La=function(){function e(e,t,n,r){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r?Xe(`Can' use additive animation on looped animation.`):(this._additiveAnimators=r,this._allowDiscrete=n)}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(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,st(t),n)},e.prototype.whenWithKeys=function(e,t,n,r){for(var i=this._tracks,a=0;a<n.length;a++){var o=n[a],s=i[o];if(!s){s=i[o]=new Ia(o);var c=void 0,l=this._getAdditiveTrack(o);if(l){var u=l.keyframes,d=u[u.length-1];c=d&&d.value,l.valType===ka&&c&&(c=wa(c))}else c=this._target[o];if(c==null)continue;e>0&&s.addKeyframe(0,Ca(c),r),this._trackKeys.push(o)}s.addKeyframe(e,Ca(t[o]),r)}return this._maxTime=Math.max(this._maxTime,e),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(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n<t;n++)e[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},e.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},e.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var i=n[r].getTrack(e);i&&(t=i)}return t},e.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],r=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var a=this._trackKeys[i],o=this._tracks[a],s=this._getAdditiveTrack(a),c=o.keyframes,l=c.length;if(o.prepare(r,s),o.needsAnimate()){if(!this._allowDiscrete&&o.discrete){var u=c[l-1];u&&(t._target[o.propName]=u.rawValue),o.setFinished()}else n.push(o)}}if(n.length||this._force){var d=new Si({life:r,loop:this._loop,delay:this._delay||0,onframe:function(e){t._started=2;var r=t._additiveAnimators;if(r){for(var i=!1,a=0;a<r.length;a++)if(r[a]._clip){i=!0;break}i||(t._additiveAnimators=null)}for(var a=0;a<n.length;a++)n[a].step(t._target,e);var o=t._onframeCbs;if(o)for(var a=0;a<o.length;a++)o[a](t._target,e)},ondestroy:function(){t._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),e&&d.setEasing(e)}else this._doneCallback();return this}},e.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},e.prototype.delay=function(e){return this._delay=e,this},e.prototype.during=function(e){return e&&(this._onframeCbs||=[],this._onframeCbs.push(e)),this},e.prototype.done=function(e){return e&&(this._doneCbs||=[],this._doneCbs.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedCbs||=[],this._abortedCbs.push(e)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(e){return this._tracks[e]},e.prototype.getTracks=function(){var e=this;return B(this._trackKeys,function(t){return e._tracks[t]})},e.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<e.length;i++){var a=n[e[i]];a&&!a.isFinished()&&(t?a.step(this._target,1):this._started===1&&a.step(this._target,0),a.setFinished())}for(var o=!0,i=0;i<r.length;i++)if(!n[r[i]].isFinished()){o=!1;break}return o&&this._abortedCallback(),o},e.prototype.saveTo=function(e,t,n){if(e){t||=this._trackKeys;for(var r=0;r<t.length;r++){var i=t[r],a=this._tracks[i];if(a&&!a.isFinished()){var o=a.keyframes,s=o[n?0:o.length-1];s&&(e[i]=Ca(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t||=st(e);for(var n=0;n<t.length;n++){var r=t[n],i=this._tracks[r];if(i){var a=i.keyframes;if(a.length>1){var o=a.pop();i.addKeyframe(o.time,e[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}(),Ra=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||={};var i=this._$handlers;if(typeof t==`function`&&(r=n,n=t,t=null),!n||!e)return this;var a=this._$eventProcessor;t!=null&&a&&a.normalizeQuery&&(t=a.normalizeQuery(t)),i[e]||(i[e]=[]);for(var o=0;o<i[e].length;o++)if(i[e][o].h===n)return this;var s={h:n,query:t,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},c=i[e].length-1,l=i[e][c];return l&&l.callAtLast?i[e].splice(c,0,s):i[e].push(s),this},e.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},e.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var r=[],i=0,a=n[e].length;i<a;i++)n[e][i].h!==t&&r.push(n[e][i]);n[e]=r}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},e.prototype.trigger=function(e){var t=[...arguments].slice(1);if(!this._$handlers)return this;var n=this._$handlers[e],r=this._$eventProcessor;if(n)for(var i=t.length,a=n.length,o=0;o<a;o++){var s=n[o];if(!(r&&r.filter&&s.query!=null&&!r.filter(e,s.query)))switch(i){case 0:s.h.call(s.ctx);break;case 1:s.h.call(s.ctx,t[0]);break;case 2:s.h.call(s.ctx,t[0],t[1]);break;default:s.h.apply(s.ctx,t)}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){var t=[...arguments].slice(1);if(!this._$handlers)return this;var n=this._$handlers[e],r=this._$eventProcessor;if(n)for(var i=t.length,a=t[i-1],o=n.length,s=0;s<o;s++){var c=n[s];if(!(r&&r.filter&&c.query!=null&&!r.filter(e,c.query)))switch(i){case 0:c.h.call(a);break;case 1:c.h.call(a,t[0]);break;case 2:c.h.call(a,t[0],t[1]);break;default:c.h.apply(a,t.slice(1,i-1))}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e}(),za=1;J.hasGlobalWindow&&(za=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Ba=za,Va=.4,Ha=`#333`,Ua=`#ccc`,Wa=`#eee`,Ga=`__zr_normal__`,Ka=Kr.concat([`ignore`]),qa=it(Kr,function(e,t){return e[t]=!0,e},{ignore:!1}),Ja={},Ya=new X(0,0,0,0),Xa=[],Za=function(){function e(e){this.id=Ye(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case`horizontal`:t=0;break;case`vertical`:e=0}var r=this.transform;r||=this.transform=[1,0,0,1,0,0],r[4]+=e,r[5]+=t,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(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||={};var n=this.textConfig,r=n.local,i=t.innerTransformable,a=void 0,o=void 0,s=!1;i.parent=r?this:null;var c=!1;i.copyTransform(t);var l=n.position!=null,u=n.autoOverflowArea,d=void 0;if((u||l)&&(d=Ya,n.layoutRect?d.copy(n.layoutRect):d.copy(this.getBoundingRect()),r||d.applyTransform(this.transform)),l){this.calculateTextPosition?this.calculateTextPosition(Ja,n,d):mr(Ja,n,d),i.x=Ja.x,i.y=Ja.y,a=Ja.align,o=Ja.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var p=void 0,m=void 0;f===`center`?(p=d.width*.5,m=d.height*.5):(p=pr(f[0],d.width),m=pr(f[1],d.height)),c=!0,i.originX=-i.x+p+(r?0:d.x),i.originY=-i.y+m+(r?0:d.y)}}n.rotation!=null&&(i.rotation=n.rotation);var h=n.offset;h&&(i.x+=h[0],i.y+=h[1],c||(i.originX=-h[0],i.originY=-h[1]));var g=this._innerTextDefaultStyle||={};if(u){var _=g.overflowRect=g.overflowRect||new X(0,0,0,0);i.getLocalTransform(Xa),gn(Xa,Xa),X.copy(_,d),_.applyTransform(Xa)}else g.overflowRect=null;var v=n.inside==null?typeof n.position==`string`&&n.position.indexOf(`inside`)>=0:n.inside,y=void 0,b=void 0,x=void 0;v&&this.canBeInsideText()?(y=n.insideFill,b=n.insideStroke,(y==null||y===`auto`)&&(y=this.getInsideTextFill()),(b==null||b===`auto`)&&(b=this.getInsideTextStroke(y),x=!0)):(y=n.outsideFill,b=n.outsideStroke,(y==null||y===`auto`)&&(y=this.getOutsideFill()),(b==null||b===`auto`)&&(b=this.getOutsideStroke(y),x=!0)),y||=`#000`,(y!==g.fill||b!==g.stroke||x!==g.autoStroke||a!==g.align||o!==g.verticalAlign)&&(s=!0,g.fill=y,g.stroke=b,g.autoStroke=x,g.align=a,g.verticalAlign=o,t.setDefaultTextStyle(g)),t.__dirty|=1,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return`#fff`},e.prototype.getInsideTextStroke=function(e){return`#000`},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Ua:Ha},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t==`string`&&Ii(t);n||=[255,255,255,1];for(var r=n[3],i=this.__zr.isDarkMode(),a=0;a<3;a++)n[a]=n[a]*r+(i?0:255)*(1-r);return n[3]=1,Wi(n,`rgba`)},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){e===`textConfig`?this.setTextConfig(t):e===`textContent`?this.setTextContent(t):e===`clipPath`?this.setClipPath(t):e===`extra`?(this.extra=this.extra||{},R(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if(typeof e==`string`)this.attrKV(e,t);else if(G(e))for(var n=st(e),r=0;r<n.length;r++){var i=n[r];this.attrKV(i,e[i])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],i=r.__fromStateTransition;if(!(r.getLoop()||i&&i!==`__zr_normal__`)){var a=r.targetName,o=a?t[a]:t;r.saveTo(o)}}},e.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||=this._normalState={},e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,Ka)},e.prototype._savePrimaryToNormal=function(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];e[i]!=null&&!(i in t)&&(t[i]=this[i])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(Ga,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===Ga;if(this.hasState()||!i){var a=this.currentStates,o=this.stateTransition;if(!(et(a,e)>=0&&(t||a.length===1))){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(e)),s||=this.states&&this.states[e],!s&&!i)Xe(`State `+e+` not exists.`);else{i||this.saveCurrentToNormalState(s);var c=this._textContent,l=ao(this,c,s,r);l&&!this.__inHover&&(this.__inHover=l),this._applyStateObj(e,s,this._normalState,t,so(this,n,o),o);var u=this._textGuide;return c&&c.useState(e,t,n,!!l),u&&u.useState(e,t,n,!!l),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2),s}}}},e.prototype.useStates=function(e,t,n){if(!e.length)this.clearStates();else{var r=[],i=this.currentStates,a=e.length,o=a===i.length;if(o){for(var s=0;s<a;s++)if(e[s]!==i[s]){o=!1;break}}if(o)return;for(var s=0;s<a;s++){var c=e[s],l=void 0;this.stateProxy&&(l=this.stateProxy(c,e)),l||=this.states[c],l&&r.push(l)}var u=r[a-1],d=this._textContent,f=ao(this,d,u,n);f&&!this.__inHover&&(this.__inHover=f);var p=this._mergeStates(r),m=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(e.join(`,`),p,this._normalState,!1,so(this,t,m),m);var h=this._textGuide;d&&d.useStates(e,t,!!f),h&&h.useStates(e,t,!!f),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!f&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2)}},e.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var t=e.__hostTarget;e=t?e.ignoreHostSilent?null:t:e.parent}return!1},e.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},e.prototype.removeState=function(e){var t=et(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var r=this.currentStates.slice(),i=et(r,e),a=et(r,t)>=0;i>=0?a?r.splice(i,1):r[i]=t:n&&!a&&r.push(t),this.useStates(r)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t={},n,r=0;r<e.length;r++){var i=e[r];R(t,i),i.textConfig&&(n||={},R(n,i.textConfig))}return n&&(t.textConfig=n),t},e.prototype._applyStateObj=function(e,t,n,r,i,a){if(this.__inHover!==1){var o=!(t&&r);t&&t.textConfig?(this.textConfig=R({},r?this.textConfig:n.textConfig),R(this.textConfig,t.textConfig)):o&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},c=!1,l=0;l<Ka.length;l++){var u=Ka[l],d=i&&qa[u];t&&t[u]!=null?d?(c=!0,s[u]=t[u]):this[u]=t[u]:o&&n[u]!=null&&(d?(c=!0,s[u]=n[u]):this[u]=n[u])}if(!i)for(var l=0;l<this.animators.length;l++){var f=this.animators[l],p=f.targetName;f.getLoop()||f.__changeFinalValue(p?(t||n)[p]:t||n)}c&&this._transitionState(e,s,a)}},e.prototype._attachComponent=function(e){if((!e.__zr||e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},e.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},e.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new Wr,this._attachComponent(e),this._textContent=e,this.markRedraw())},e.prototype.setTextConfig=function(e){this.textConfig||={},R(this.textConfig,e),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=1;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},e.prototype.animate=function(e,t,n){var r=new La(e?this[e]:this,t,n);return e&&(r.targetName=e),this.addAnimator(r,e),r},e.prototype.addAnimator=function(e,t){var n=this.__zr,r=this;e.during(function(){r.updateDuringAnimation(t)}).done(function(){var t=r.animators,n=et(t,e);n>=0&&t.splice(n,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,r=n.length,i=[],a=0;a<r;a++){var o=n[a];!e||e===o.scope?o.stop(t):i.push(o)}return this.animators=i,this},e.prototype.animateTo=function(e,t,n){Qa(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){Qa(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,r){for(var i=Qa(this,t,n,r),a=0;a<i.length;a++)i[a].__fromStateTransition=e},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=0,t.__dirty=1;function n(e,n,r,i){Object.defineProperty(t,e,{get:function(){if(!this[n]){var e=this[n]=[];a(this,e)}return this[n]},set:function(e){this[r]=e[0],this[i]=e[1],this[n]=e,a(this,e)}});function a(e,t){Object.defineProperty(t,0,{get:function(){return e[r]},set:function(t){e[r]=t}}),Object.defineProperty(t,1,{get:function(){return e[i]},set:function(t){e[i]=t}})}}Object.defineProperty&&(n(`position`,`_legacyPos`,`x`,`y`),n(`scale`,`_legacyScale`,`scaleX`,`scaleY`),n(`origin`,`_legacyOrigin`,`originX`,`originY`))})(),e}();nt(Za,Ra),nt(Za,Wr);function Qa(e,t,n,r,i){n||={};var a=[];io(e,``,e,t,n,r,a,i);var o=a.length,s=!1,c=n.done,l=n.aborted,u=function(){s=!0,o--,o<=0&&(s?c&&c():l&&l())},d=function(){o--,o<=0&&(s?c&&c():l&&l())};o||c&&c(),a.length>0&&n.during&&a[0].during(function(e,t){n.during(t)});for(var f=0;f<a.length;f++){var p=a[f];u&&p.done(u),d&&p.aborted(d),n.force&&p.duration(n.duration),p.start(n.easing)}return a}function $a(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function eo(e){return rt(e[0])}function to(e,t,n){if(rt(t[n])){if(rt(e[n])||(e[n]=[]),pt(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),$a(e[n],t[n],r))}else{var i=t[n],a=e[n],o=i.length;if(eo(i))for(var s=i[0].length,c=0;c<o;c++)a[c]?$a(a[c],i[c],s):a[c]=Array.prototype.slice.call(i[c]);else $a(a,i,o);a.length=i.length}}else e[n]=t[n]}function no(e,t){return e===t||rt(e)&&rt(t)&&ro(e,t)}function ro(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 io(e,t,n,r,i,a,o,s){for(var c=st(r),l=i.duration,u=i.delay,d=i.additive,f=i.setToFinal,p=!G(a),m=e.animators,h=[],g=0;g<c.length;g++){var _=c[g],v=r[_];if(v!=null&&n[_]!=null&&(p||a[_])){if(G(v)&&!rt(v)&&!ht(v)){if(t){s||(n[_]=v,e.updateDuringAnimation(t));continue}io(e,_,n[_],v,i,a&&a[_],o,s)}else h.push(_)}else s||(n[_]=v,e.updateDuringAnimation(t),h.push(_))}var y=h.length;if(!d&&y)for(var b=0;b<m.length;b++){var x=m[b];if(x.targetName===t&&x.stopTracks(h)){var S=et(m,x);m.splice(S,1)}}if(i.force||(h=at(h,function(e){return!no(r[e],n[e])}),y=h.length),y>0||i.force&&!o.length){var C=void 0,w=void 0,T=void 0;if(s){w={},f&&(C={});for(var b=0;b<y;b++){var _=h[b];w[_]=n[_],f?C[_]=r[_]:n[_]=r[_]}}else if(f){T={};for(var b=0;b<y;b++){var _=h[b];T[_]=Ca(n[_]),to(n,r,_)}}var x=new La(n,!1,!1,d?at(m,function(e){return e.targetName===t}):null);x.targetName=t,i.scope&&(x.scope=i.scope),f&&C&&x.whenWithKeys(0,C,h),T&&x.whenWithKeys(0,T,h),x.whenWithKeys(l??500,s?w:r,h).delay(u||0),e.addAnimator(x,t),o.push(x)}}function ao(e,t,n,r){return!(n&&n.hoverLayer||r)||oo(e)||t&&oo(t)?0:1}function oo(e){return e.type===`text`||e.type===`tspan`}function so(e,t,n){return!t&&!e.__inHover&&n&&n.duration>0}var co=`__zr_style_`+Math.round(Math.random()*10),lo={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:`#000`,opacity:1,blend:`source-over`},uo={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};lo[co]=!0;var fo=[`z`,`z2`,`invisible`],po=[`invisible`],mo=function(e){I(t,e);function t(t){return e.call(this,t)||this}return t.prototype._init=function(t){for(var n=st(t),r=0;r<n.length;r++){var i=n[r];i===`style`?this.useStyle(t[i]):e.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(e){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,t,n,r){var i=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&_o(this,e,t)||i&&!i[0]&&!i[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var a=0;a<this.__clipPaths.length;++a)if(this.__clipPaths[a].isZeroArea())return!1}if(r&&this.parent)for(var o=this.parent;o;){if(o.ignore)return!1;o=o.parent}return!0},t.prototype.contain=function(e,t){return this.rectContain(e,t)},t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.rectContain=function(e,t){var n=this.transformCoordToLocal(e,t);return this.getBoundingRect().contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var t=this.transform,n=this.getBoundingRect(),r=this.style,i=r.shadowBlur||0,a=r.shadowOffsetX||0,o=r.shadowOffsetY||0;e=this._paintRect||=new X(0,0,0,0),t?X.applyTransform(e,n,t):e.copy(n),(i||a||o)&&(e.width+=i*2+Math.abs(a),e.height+=i*2+Math.abs(o),e.x=Math.min(e.x,e.x+a-i),e.y=Math.min(e.y,e.y+o-i));var s=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-s),e.y=Math.floor(e.y-s),e.width=Math.ceil(e.width+1+s*2),e.height=Math.ceil(e.height+1+s*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new X(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate(`style`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`style`?this.style?this.setStyle(n):this.useStyle(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setStyle=function(e,t){return typeof e==`string`?this.style[e]=t:R(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=2,this._rect&&=null},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&2)},t.prototype.styleUpdated=function(){this.__dirty&=-3},t.prototype.createStyle=function(e){return jt(lo,e)},t.prototype.useStyle=function(e){e[co]||(e=this.createStyle(e)),this.style=e,this.dirtyStyle()},t.prototype._useHoverStyle=function(e){this.__hoverStyle=e},t.prototype.isStyleObject=function(e){return e[co]},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,fo)},t.prototype._applyStateObj=function(t,n,r,i,a,o){e.prototype._applyStateObj.call(this,t,n,r,i,a,o);var s=!(n&&i),c=this.__inHover===1,l;if(n&&n.style?a?i?l=n.style:(l=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(l,n.style)):(l=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(l,n.style)):s&&(l=r.style),l){if(a){var u=this.style;if(this.style=this.createStyle(s?{}:u),s)for(var d=st(u),f=0;f<d.length;f++){var p=d[f];p in l&&(l[p]=l[p],this.style[p]=u[p])}for(var m=st(l),f=0;f<m.length;f++){var p=m[f];this.style[p]=this.style[p]}this._transitionState(t,{style:l},o,this.getAnimationStyleProps())}else c?this._useHoverStyle(l):this.useStyle(l)}if(!c)for(var h=this.__inHover?po:fo,f=0;f<h.length;f++){var p=h[f];n&&n[p]!=null?this[p]=n[p]:s&&r[p]!=null&&(this[p]=r[p])}},t.prototype._mergeStates=function(t){for(var n=e.prototype._mergeStates.call(this,t),r,i=0;i<t.length;i++){var a=t[i];a.style&&(r||={},this._mergeStyle(r,a.style))}return r&&(n.style=r),n},t.prototype._mergeStyle=function(e,t){return R(e,t),e},t.prototype.getAnimationStyleProps=function(){return uo},t.initDefaultProps=(function(){var e=t.prototype;e.type=`displayable`,e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor=`pointer`,e.rectHover=!1,e.incremental=0,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=3})(),t}(Za),ho=new X(0,0,0,0),go=new X(0,0,0,0);function _o(e,t,n){return ho.copy(e.getBoundingRect()),e.transform&&ho.applyTransform(e.transform),go.width=t,go.height=n,!ho.intersect(go)}var vo=Math.min,yo=Math.max,bo=Math.sin,xo=Math.cos,So=Math.PI*2,Co=_n(),wo=_n(),To=_n();function Eo(e,t,n,r,i,a){i[0]=vo(e,n),i[1]=vo(t,r),a[0]=yo(e,n),a[1]=yo(t,r)}var Do=[],Oo=[];function ko(e,t,n,r,i,a,o,s,c,l){var u=li,d=oi,f=u(e,n,i,o,Do);c[0]=1/0,c[1]=1/0,l[0]=-1/0,l[1]=-1/0;for(var p=0;p<f;p++){var m=d(e,n,i,o,Do[p]);c[0]=vo(m,c[0]),l[0]=yo(m,l[0])}f=u(t,r,a,s,Oo);for(var p=0;p<f;p++){var h=d(t,r,a,s,Oo[p]);c[1]=vo(h,c[1]),l[1]=yo(h,l[1])}c[0]=vo(e,c[0]),l[0]=yo(e,l[0]),c[0]=vo(o,c[0]),l[0]=yo(o,l[0]),c[1]=vo(t,c[1]),l[1]=yo(t,l[1]),c[1]=vo(s,c[1]),l[1]=yo(s,l[1])}function Ao(e,t,n,r,i,a,o,s){var c=gi,l=pi,u=yo(vo(c(e,n,i),1),0),d=yo(vo(c(t,r,a),1),0),f=l(e,n,i,u),p=l(t,r,a,d);o[0]=vo(e,i,f),o[1]=vo(t,a,p),s[0]=yo(e,i,f),s[1]=yo(t,a,p)}function jo(e,t,n,r,i,a,o,s,c){var l=Mn,u=Nn,d=Math.abs(i-a);if(d%So<1e-4&&d>1e-4)s[0]=e-n,s[1]=t-r,c[0]=e+n,c[1]=t+r;else{if(Co[0]=xo(i)*n+e,Co[1]=bo(i)*r+t,wo[0]=xo(a)*n+e,wo[1]=bo(a)*r+t,l(s,Co,wo),u(c,Co,wo),i%=So,i<0&&(i+=So),a%=So,a<0&&(a+=So),i>a&&!o?a+=So:i<a&&o&&(i+=So),o){var f=a;a=i,i=f}for(var p=0;p<a;p+=Math.PI/2)p>i&&(To[0]=xo(p)*n+e,To[1]=bo(p)*r+t,l(s,To,s),u(c,To,c))}}var Mo={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},No=[],Po=[],Fo=[],Io=[],Lo=[],Ro=[],zo=Math.min,Bo=Math.max,Vo=Math.cos,Ho=Math.sin,Uo=Math.abs,Wo=Math.PI,Go=Wo*2,Ko=typeof Float32Array<`u`,qo=[];function Jo(e){return Math.round(e/Wo*1e8)/1e8%2*Wo}function Yo(e,t){var n=Jo(e[0]);n<0&&(n+=Go);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=Go?i=n+Go:t&&n-i>=Go?i=n-Go:!t&&n>i?i=n+(Go-Jo(n-i)):t&&n<i&&(i=n-(Go-Jo(i-n))),e[0]=n,e[1]=i}var Xo=function(){function e(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(e,t,n){n||=0,n>0&&(this._ux=Uo(n/Ba/e)||0,this._uy=Uo(n/Ba/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},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(e,t){return this._drawPendingPt(),this.addData(Mo.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=Uo(e-this._xi),r=Uo(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(Mo.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var a=n*n+r*r;a>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=a)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){return this._drawPendingPt(),this.addData(Mo.C,e,t,n,r,i,a),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,i,a),this._xi=i,this._yi=a,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(Mo.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,a){this._drawPendingPt(),qo[0]=r,qo[1]=i,Yo(qo,a),r=qo[0],i=qo[1];var o=i-r;return this.addData(Mo.A,e,t,n,n,r,o,0,+!a),this._ctx&&this._ctx.arc(e,t,n,r,i,a),this._xi=Vo(i)*n+e,this._yi=Ho(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(Mo.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(Mo.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){if(this._saveData){var t=e.length;!(this.data&&this.data.length===t)&&Ko&&(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t}},e.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var t=e.length,n=0,r=this._len,i=0;i<t;i++)n+=e[i].len();var a=this.data;if(Ko&&(a instanceof Float32Array||!a)&&(this.data=new Float32Array(r+n),r>0&&a))for(var o=0;o<r;o++)this.data[o]=a[o];for(var i=0;i<t;i++)for(var s=e[i].data,o=0;o<s.length;o++)this.data[r++]=s[o];this._len=r}},e.prototype.addData=function(e,t,n,r,i,a,o,s,c){if(this._saveData){var l=this.data;this._len+arguments.length>l.length&&(this._expandData(),l=this.data);for(var u=0;u<arguments.length;u++)l[this._len++]=arguments[u]}},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 e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,Ko&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){Fo[0]=Fo[1]=Lo[0]=Lo[1]=Number.MAX_VALUE,Io[0]=Io[1]=Ro[0]=Ro[1]=-Number.MAX_VALUE;for(var e=this.data,t=0,n=0,r=0,i=0,a=0;a<this._len;){var o=e[a++],s=a===1;switch(s&&(t=e[a],n=e[a+1],r=t,i=n),o){case Mo.M:t=r=e[a++],n=i=e[a++],Lo[0]=r,Lo[1]=i,Ro[0]=r,Ro[1]=i;break;case Mo.L:Eo(t,n,e[a],e[a+1],Lo,Ro),t=e[a++],n=e[a++];break;case Mo.C:ko(t,n,e[a++],e[a++],e[a++],e[a++],e[a],e[a+1],Lo,Ro),t=e[a++],n=e[a++];break;case Mo.Q:Ao(t,n,e[a++],e[a++],e[a],e[a+1],Lo,Ro),t=e[a++],n=e[a++];break;case Mo.A:var c=e[a++],l=e[a++],u=e[a++],d=e[a++],f=e[a++],p=e[a++]+f;a+=1;var m=!e[a++];s&&(r=Vo(f)*u+c,i=Ho(f)*d+l),jo(c,l,u,d,f,p,m,Lo,Ro),t=Vo(p)*u+c,n=Ho(p)*d+l;break;case Mo.R:r=t=e[a++],i=n=e[a++];var h=e[a++],g=e[a++];Eo(r,i,r+h,i+g,Lo,Ro);break;case Mo.Z:t=r,n=i}Mn(Fo,Fo,Lo),Nn(Io,Io,Ro)}return a===0&&(Fo[0]=Fo[1]=Io[0]=Io[1]=0),new X(Fo[0],Fo[1],Io[0]-Fo[0],Io[1]-Fo[1])},e.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,r=this._uy,i=0,a=0,o=0,s=0;this._pathSegLen||=[];for(var c=this._pathSegLen,l=0,u=0,d=0;d<t;){var f=e[d++],p=d===1;p&&(i=e[d],a=e[d+1],o=i,s=a);var m=-1;switch(f){case Mo.M:i=o=e[d++],a=s=e[d++];break;case Mo.L:var h=e[d++],g=e[d++],_=h-i,v=g-a;(Uo(_)>n||Uo(v)>r||d===t-1)&&(m=Math.sqrt(_*_+v*v),i=h,a=g);break;case Mo.C:var y=e[d++],b=e[d++],h=e[d++],g=e[d++],x=e[d++],S=e[d++];m=fi(i,a,y,b,h,g,x,S,10),i=x,a=S;break;case Mo.Q:var y=e[d++],b=e[d++],h=e[d++],g=e[d++];m=yi(i,a,y,b,h,g,10),i=h,a=g;break;case Mo.A:var C=e[d++],w=e[d++],T=e[d++],E=e[d++],D=e[d++],O=e[d++],k=O+D;d+=1,p&&(o=Vo(D)*T+C,s=Ho(D)*E+w),m=Bo(T,E)*zo(Go,Math.abs(O)),i=Vo(k)*T+C,a=Ho(k)*E+w;break;case Mo.R:o=i=e[d++],s=a=e[d++];var A=e[d++],j=e[d++];m=A*2+j*2;break;case Mo.Z:var _=o-i,v=s-a;m=Math.sqrt(_*_+v*v),i=o,a=s}m>=0&&(c[u++]=m,l+=m)}return this._pathLen=l,l},e.prototype.rebuildPath=function(e,t){var n=this.data,r=this._ux,i=this._uy,a=this._len,o,s,c,l,u,d,f=t<1,p,m,h=0,g=0,_,v=0,y,b;if(!(f&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,m=this._pathLen,_=t*m,!_)))lo:for(var x=0;x<a;){var S=n[x++],C=x===1;switch(C&&(c=n[x],l=n[x+1],o=c,s=l),S!==Mo.L&&v>0&&(e.lineTo(y,b),v=0),S){case Mo.M:o=c=n[x++],s=l=n[x++],e.moveTo(c,l);break;case Mo.L:u=n[x++],d=n[x++];var w=Uo(u-c),T=Uo(d-l);if(w>r||T>i){if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+u*D,l*(1-D)+d*D);break lo}h+=E}e.lineTo(u,d),c=u,l=d,v=0}else{var O=w*w+T*T;O>v&&(y=u,b=d,v=O)}break;case Mo.C:var k=n[x++],A=n[x++],j=n[x++],M=n[x++],ee=n[x++],N=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;ui(c,k,j,ee,D,No),ui(l,A,M,N,D,Po),e.bezierCurveTo(No[1],Po[1],No[2],Po[2],No[3],Po[3]);break lo}h+=E}e.bezierCurveTo(k,A,j,M,ee,N),c=ee,l=N;break;case Mo.Q:var k=n[x++],A=n[x++],j=n[x++],M=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;_i(c,k,j,D,No),_i(l,A,M,D,Po),e.quadraticCurveTo(No[1],Po[1],No[2],Po[2]);break lo}h+=E}e.quadraticCurveTo(k,A,j,M),c=j,l=M;break;case Mo.A:var P=n[x++],te=n[x++],ne=n[x++],re=n[x++],ie=n[x++],ae=n[x++],oe=n[x++],se=!n[x++],ce=ne>re?ne:re,le=Uo(ne-re)>.001,ue=ie+ae,F=!1;if(f){var E=p[g++];h+E>_&&(ue=ie+ae*(_-h)/E,F=!0),h+=E}if(le&&e.ellipse?e.ellipse(P,te,ne,re,oe,ie,ue,se):e.arc(P,te,ce,ie,ue,se),F)break lo;C&&(o=Vo(ie)*ne+P,s=Ho(ie)*re+te),c=Vo(ue)*ne+P,l=Ho(ue)*re+te;break;case Mo.R:o=c=n[x],s=l=n[x+1],u=n[x++],d=n[x++];var de=n[x++],fe=n[x++];if(f){var E=p[g++];if(h+E>_){var pe=_-h;e.moveTo(u,d),e.lineTo(u+zo(pe,de),d),pe-=de,pe>0&&e.lineTo(u+de,d+zo(pe,fe)),pe-=fe,pe>0&&e.lineTo(u+Bo(de-pe,0),d+fe),pe-=de,pe>0&&e.lineTo(u,d+Bo(fe-pe,0));break lo}h+=E}e.rect(u,d,de,fe);break;case Mo.Z:if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+o*D,l*(1-D)+s*D);break lo}h+=E}e.closePath(),c=o,l=s}}},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=Mo,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e}();function Zo(e,t,n,r,i,a,o){if(i===0)return!1;var s=i,c=0,l=e;if(o>t+s&&o>r+s||o<t-s&&o<r-s||a>e+s&&a>n+s||a<e-s&&a<n-s)return!1;if(e!==n)c=(t-r)/(e-n),l=(e*r-n*t)/(e-n);else return Math.abs(a-e)<=s/2;var u=c*a-o+l;return u*u/(c*c+1)<=s/2*s/2}function Qo(e,t,n,r,i,a,o,s,c,l,u){if(c===0)return!1;var d=c;return u>t+d&&u>r+d&&u>a+d&&u>s+d||u<t-d&&u<r-d&&u<a-d&&u<s-d||l>e+d&&l>n+d&&l>i+d&&l>o+d||l<e-d&&l<n-d&&l<i-d&&l<o-d?!1:di(e,t,n,r,i,a,o,s,l,u,null)<=d/2}function $o(e,t,n,r,i,a,o,s,c){if(o===0)return!1;var l=o;return c>t+l&&c>r+l&&c>a+l||c<t-l&&c<r-l&&c<a-l||s>e+l&&s>n+l&&s>i+l||s<e-l&&s<n-l&&s<i-l?!1:vi(e,t,n,r,i,a,s,c,null)<=l/2}var es=Math.PI*2;function ts(e){return e%=es,e<0&&(e+=es),e}var ns=Math.PI*2;function rs(e,t,n,r,i,a,o,s,c){if(o===0)return!1;var l=o;s-=e,c-=t;var u=Math.sqrt(s*s+c*c);if(u-l>n||u+l<n)return!1;if(Math.abs(r-i)%ns<1e-4)return!0;if(a){var d=r;r=ts(i),i=ts(d)}else r=ts(r),i=ts(i);r>i&&(i+=ns);var f=Math.atan2(c,s);return f<0&&(f+=ns),f>=r&&f<=i||f+ns>=r&&f+ns<=i}function is(e,t,n,r,i,a){if(a>t&&a>r||a<t&&a<r||r===t)return 0;var o=(a-t)/(r-t),s=r<t?1:-1;(o===1||o===0)&&(s=r<t?.5:-.5);var c=o*(n-e)+e;return c===i?1/0:c>i?s:0}var as=Xo.CMD,os=Math.PI*2,ss=1e-4;function cs(e,t){return Math.abs(e-t)<ss}var ls=[-1,-1,-1],us=[-1,-1];function ds(){var e=us[0];us[0]=us[1],us[1]=e}function fs(e,t,n,r,i,a,o,s,c,l){if(l>t&&l>r&&l>a&&l>s||l<t&&l<r&&l<a&&l<s)return 0;var u=ci(t,r,a,s,l,ls);if(u===0)return 0;for(var d=0,f=-1,p=void 0,m=void 0,h=0;h<u;h++){var g=ls[h],_=g===0||g===1?.5:1;oi(e,n,i,o,g)<c||(f<0&&(f=li(t,r,a,s,us),us[1]<us[0]&&f>1&&ds(),p=oi(t,r,a,s,us[0]),f>1&&(m=oi(t,r,a,s,us[1]))),f===2?g<us[0]?d+=p<t?_:-_:g<us[1]?d+=m<p?_:-_:d+=s<m?_:-_:g<us[0]?d+=p<t?_:-_:d+=s<p?_:-_)}return d}function ps(e,t,n,r,i,a,o,s){if(s>t&&s>r&&s>a||s<t&&s<r&&s<a)return 0;var c=hi(t,r,a,s,ls);if(c===0)return 0;var l=gi(t,r,a);if(l>=0&&l<=1){for(var u=0,d=pi(t,r,a,l),f=0;f<c;f++){var p=ls[f]===0||ls[f]===1?.5:1,m=pi(e,n,i,ls[f]);m<o||(ls[f]<l?u+=d<t?p:-p:u+=a<d?p:-p)}return u}var p=ls[0]===0||ls[0]===1?.5:1,m=pi(e,n,i,ls[0]);return m<o?0:a<t?p:-p}function ms(e,t,n,r,i,a,o,s){if(s-=t,s>n||s<-n)return 0;var c=Math.sqrt(n*n-s*s);ls[0]=-c,ls[1]=c;var l=Math.abs(r-i);if(l<1e-4)return 0;if(l>=os-1e-4){r=0,i=os;var u=a?1:-1;return o>=ls[0]+e&&o<=ls[1]+e?u:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=os,i+=os);for(var f=0,p=0;p<2;p++){var m=ls[p];if(m+e>o){var h=Math.atan2(s,m),u=a?1:-1;h<0&&(h=os+h),(h>=r&&h<=i||h+os>=r&&h+os<=i)&&(h>Math.PI/2&&h<Math.PI*1.5&&(u=-u),f+=u)}}return f}function hs(e,t,n,r,i){for(var a=e.data,o=e.len(),s=0,c=0,l=0,u=0,d=0,f,p,m=0;m<o;){var h=a[m++],g=m===1;switch(h===as.M&&m>1&&(n||(s+=is(c,l,u,d,r,i))),g&&(c=a[m],l=a[m+1],u=c,d=l),h){case as.M:u=a[m++],d=a[m++],c=u,l=d;break;case as.L:if(n){if(Zo(c,l,a[m],a[m+1],t,r,i))return!0}else s+=is(c,l,a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case as.C:if(n){if(Qo(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=fs(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case as.Q:if(n){if($o(c,l,a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=ps(c,l,a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case as.A:var _=a[m++],v=a[m++],y=a[m++],b=a[m++],x=a[m++],S=a[m++];m+=1;var C=!!(1-a[m++]);f=Math.cos(x)*y+_,p=Math.sin(x)*b+v,g?(u=f,d=p):s+=is(c,l,f,p,r,i);var w=(r-_)*b/y+_;if(n){if(rs(_,v,b,x,x+S,C,t,w,i))return!0}else s+=ms(_,v,b,x,x+S,C,w,i);c=Math.cos(x+S)*y+_,l=Math.sin(x+S)*b+v;break;case as.R:u=c=a[m++],d=l=a[m++];var T=a[m++],E=a[m++];if(f=u+T,p=d+E,n){if(Zo(u,d,f,d,t,r,i)||Zo(f,d,f,p,t,r,i)||Zo(f,p,u,p,t,r,i)||Zo(u,p,u,d,t,r,i))return!0}else s+=is(f,d,f,p,r,i),s+=is(u,p,u,d,r,i);break;case as.Z:if(n){if(Zo(c,l,u,d,t,r,i))return!0}else s+=is(c,l,u,d,r,i);c=u,l=d}}return!n&&!cs(l,d)&&(s+=is(c,l,u,d,r,i)||0),s!==0}function gs(e,t,n){return hs(e,0,!1,t,n)}function _s(e,t,n,r){return hs(e,t,!0,n,r)}var vs=$e({fill:`#000`,stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:`butt`,miterLimit:10,strokeNoScale:!1,strokeFirst:!1},lo),ys={style:$e({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},uo.style)},bs=Kr.concat([`invisible`,`culling`,`z`,`z2`,`zlevel`,`parent`]),xs=function(e){I(t,e);function t(t){return e.call(this,t)||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(e){n.buildPath(e,n.shape)}),i.silent=!0;var a=i.style;for(var o in r)a[o]!==r[o]&&(a[o]=r[o]);a.fill=r.fill?r.decal:null,a.decal=null,a.shadowColor=null,r.strokeFirst&&(a.stroke=null);for(var s=0;s<bs.length;++s)i[bs[s]]=this[bs[s]];i.__dirty|=1}else this._decalEl&&=null},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=st(t);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var a=n[i],o=t[a];a===`style`?this.style?R(this.style,o):this.useStyle(o):a===`shape`?R(this.shape,o):e.prototype.attrKV.call(this,a,o)}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 e=this.style.fill;if(e!==`none`){if(W(e)){var t=Gi(e,0);return t>.5?Ha:t>.2?Wa:Ua}if(e)return Ua}return Ha},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(W(t)){var n=this.__zr;if(!!(n&&n.isDarkMode())==Gi(e,0)<.4)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=-5},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new Xo(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&4)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),e=i.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectStroke||=e.clone();if(this.__dirty||n){a.copy(e);var o=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;s=Math.max(s,c??4)}o>1e-10&&(a.width+=s/o,a.height+=s/o,a.x-=s/o/2,a.y-=s/o/2)}return a}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var a=this.path;if(this.hasStroke()){var o=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),_s(a,o/s,e,t)))return!0}if(this.hasFill())return gs(a,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&=null,this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate(`shape`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():e===`shape`?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`shape`?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||=this.shape={},typeof e==`string`?n[e]=t:R(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&4)},t.prototype.createStyle=function(e){return jt(vs,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=R({},this.shape))},t.prototype._applyStateObj=function(t,n,r,i,a,o){if(e.prototype._applyStateObj.call(this,t,n,r,i,a,o),this.__inHover!==1){var s=!(n&&i),c;if(n&&n.shape?a?i?c=n.shape:(c=R({},r.shape),R(c,n.shape)):(c=R({},i?this.shape:r.shape),R(c,n.shape)):s&&(c=r.shape),c){if(a){this.shape=R({},this.shape);for(var l={},u=st(c),d=0;d<u.length;d++){var f=u[d];typeof c[f]==`object`?this.shape[f]=c[f]:l[f]=c[f]}this._transitionState(t,{shape:l},o)}else this.shape=c,this.dirtyShape()}}},t.prototype._mergeStates=function(t){for(var n=e.prototype._mergeStates.call(this,t),r,i=0;i<t.length;i++){var a=t[i];a.shape&&(r||={},this._mergeStyle(r,a.shape))}return r&&(n.shape=r),n},t.prototype.getAnimationStyleProps=function(){return ys},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(t){I(n,t);function n(n){var r=t.call(this,n)||this;return e.init&&e.init.call(r,n),r}return n.prototype.getDefaultStyle=function(){return L(e.style)},n.prototype.getDefaultShape=function(){return L(e.shape)},n}(t);for(var r in e)typeof e[r]==`function`&&(n.prototype[r]=e[r]);return n},t.initDefaultProps=(function(){var e=t.prototype;e.type=`path`,e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=7})(),t}(mo),Ss=$e({strokeFirst:!0,font:ke,x:0,y:0,textAlign:`left`,textBaseline:`top`,miterLimit:2},vs),Cs=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return Ir(this.style)},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.createStyle=function(e){return jt(Ss,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){return this._rect||=Pr(this.style),this._rect},t.initDefaultProps=(function(){var e=t.prototype;e.dirtyRectTolerance=10})(),t}(mo);Cs.prototype.type=`tspan`;var ws=$e({x:0,y:0},lo),Ts={style:$e({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},uo.style)};function Es(e){return!!(e&&typeof e!=`string`&&e.width&&e.height)}var Ds=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return jt(ws,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(n!=null)return n;var r=Es(t.image)?t.image:this.__image;if(!r)return 0;var i=e===`width`?`height`:`width`,a=t[i];return a==null?r[e]:r[e]/r[i]*a},t.prototype.getWidth=function(){return this._getSize(`width`)},t.prototype.getHeight=function(){return this._getSize(`height`)},t.prototype.getAnimationStyleProps=function(){return Ts},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||=new X(e.x||0,e.y||0,this.getWidth(),this.getHeight()),this._rect},t}(mo);Ds.prototype.type=`image`;function Os(e,t){var n=t.x,r=t.y,i=t.width,a=t.height,o=t.r,s,c,l,u;i<0&&(n+=i,i=-i),a<0&&(r+=a,a=-a),typeof o==`number`?s=c=l=u=o:o instanceof Array?o.length===1?s=c=l=u=o[0]:o.length===2?(s=l=o[0],c=u=o[1]):o.length===3?(s=o[0],c=u=o[1],l=o[2]):(s=o[0],c=o[1],l=o[2],u=o[3]):s=c=l=u=0;var d;s+c>i&&(d=s+c,s*=i/d,c*=i/d),l+u>i&&(d=l+u,l*=i/d,u*=i/d),c+l>a&&(d=c+l,c*=a/d,l*=a/d),s+u>a&&(d=s+u,s*=a/d,u*=a/d),e.moveTo(n+s,r),e.lineTo(n+i-c,r),c!==0&&e.arc(n+i-c,r+c,c,-Math.PI/2,0),e.lineTo(n+i,r+a-l),l!==0&&e.arc(n+i-l,r+a-l,l,0,Math.PI/2),e.lineTo(n+u,r+a),u!==0&&e.arc(n+u,r+a-u,u,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 ks=Math.round;function As(e,t,n){if(t){var r=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=r,e.x2=i,e.y1=a,e.y2=o;var s=n&&n.lineWidth;return s&&(ks(r*2)===ks(i*2)&&(e.x1=e.x2=Ms(r,s,!0)),ks(a*2)===ks(o*2)&&(e.y1=e.y2=Ms(a,s,!0))),e}}function js(e,t,n){if(t){var r=t.x,i=t.y,a=t.width,o=t.height;e.x=r,e.y=i,e.width=a,e.height=o;var s=n&&n.lineWidth;return s&&(e.x=Ms(r,s,!0),e.y=Ms(i,s,!0),e.width=Math.max(Ms(r+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Ms(i+o,s,!1)-e.y,o===0?0:1)),e}}function Ms(e,t,n){if(!t)return e;var r=ks(e*2);return(r+ks(t))%2==0?r/2:(r+(n?1:-1))/2}var Ns=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),Ps={},Fs=function(e){I(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Ns},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=js(Ps,t,this.style);n=o.x,r=o.y,i=o.width,a=o.height,o.r=t.r,t=o}else n=t.x,r=t.y,i=t.width,a=t.height;t.r?Os(e,t):e.rect(n,r,i,a)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(xs);Fs.prototype.type=`rect`;var Is={fill:`#000`},Ls=2,Rs={},zs={style:$e({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},uo.style)},Bs=function(e){I(t,e);function t(t){var n=e.call(this)||this;return n.type=`text`,n._children=[],n._defaultStyle=Is,n.attr(t),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var n=this._children[t];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.getLocalTransform(t):e.prototype.getLocalTransform.call(this,t)},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,qs(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new X(0,0,0,0),t=this._children,n=[],r=null,i=0;i<t.length;i++){var a=t[i],o=a.getBoundingRect(),s=a.getLocalTransform(n);s?(e.copy(o),e.applyTransform(s),r||=e.clone(),r.union(e)):(r||=o.clone(),r.union(o))}this._rect=r||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||Is},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,r=e.rich||n&&{};return R(e,t),n&&r?(this._mergeRich(r,n),e.rich=r):r&&(e.rich=r),e},t.prototype._mergeRich=function(e,t){for(var n=st(t),r=0;r<n.length;r++){var i=n[r];e[i]=e[i]||{},R(e[i],t[i])}},t.prototype.getAnimationStyleProps=function(){return zs},t.prototype._getOrCreateChild=function(e){var t=this._children[this._childCursor];return(!t||!(t instanceof e))&&(t=new e),this._children[this._childCursor++]=t,t.__zr=this.__zr,t.parent=this,t},t.prototype._updatePlainTexts=function(){var e=this.style,t=e.font||`12px sans-serif`,n=e.padding,r=this._defaultStyle,i=e.x||0,a=e.y||0,o=e.align||r.align||`left`,s=e.verticalAlign||r.verticalAlign||`top`;Ar(Rs,r.overflowRect,i,a,o,s),i=Rs.baseX,a=Rs.baseY;var c=br(Qs(e),e,Rs.outerWidth,Rs.outerHeight),l=$s(e),u=!!e.backgroundColor,d=c.outerHeight,f=c.outerWidth,p=c.lines,m=c.lineHeight;this.isTruncated=!!c.isTruncated;var h=i,g=dr(a,c.contentHeight,s);if(l||n){var _=ur(i,f,o),v=dr(a,d,s);l&&this._renderBackground(e,e,_,v,f,d)}g+=m/2,n&&(h=Zs(i,o,n),s===`top`?g+=n[0]:s===`bottom`&&(g-=n[2]));for(var y=0,b=!1,x=!1,S=Xs(`fill`in e?e.fill:(x=!0,r.fill)),C=Ys(`stroke`in e?e.stroke:!u&&(!r.autoStroke||x)?(y=Ls,b=!0,r.stroke):null),w=e.textShadowBlur>0,T=0;T<p.length;T++){var E=this._getOrCreateChild(Cs),D=E.createStyle();E.useStyle(D),D.text=p[T],D.x=h,D.y=g,o&&(D.textAlign=o),D.textBaseline=`middle`,D.opacity=e.opacity,D.strokeFirst=!0,w&&(D.shadowBlur=e.textShadowBlur||0,D.shadowColor=e.textShadowColor||`transparent`,D.shadowOffsetX=e.textShadowOffsetX||0,D.shadowOffsetY=e.textShadowOffsetY||0),D.stroke=C,D.fill=S,C&&(D.lineWidth=e.lineWidth||y,D.lineDash=e.lineDash,D.lineDashOffset=e.lineDashOffset||0),D.font=t,Gs(D,e),g+=m,E.setBoundingRect(Fr(D,c.contentWidth,c.calculatedLineHeight,b?0:null))}},t.prototype._updateRichTexts=function(){var e=this.style,t=this._defaultStyle,n=e.align||t.align,r=e.verticalAlign||t.verticalAlign,i=e.x||0,a=e.y||0;Ar(Rs,t.overflowRect,i,a,n,r),i=Rs.baseX,a=Rs.baseY;var o=wr(Qs(e),e,Rs.outerWidth,Rs.outerHeight,n),s=o.width,c=o.outerWidth,l=o.outerHeight,u=e.padding;this.isTruncated=!!o.isTruncated;var d=ur(i,c,n),f=dr(a,l,r),p=d,m=f;u&&(p+=u[3],m+=u[0]);var h=p+s;$s(e)&&this._renderBackground(e,e,d,f,c,l);for(var g=!!e.backgroundColor,_=0;_<o.lines.length;_++){for(var v=o.lines[_],y=v.tokens,b=y.length,x=v.lineHeight,S=v.width,C=0,w=p,T=h,E=b-1,D=void 0;C<b&&(D=y[C],!D.align||D.align===`left`);)this._placeToken(D,e,x,m,w,`left`,g),S-=D.width,w+=D.width,C++;for(;E>=0&&(D=y[E],D.align===`right`);)this._placeToken(D,e,x,m,T,`right`,g),S-=D.width,T-=D.width,E--;for(w+=(s-(w-p)-(h-T)-S)/2;C<=E;)D=y[C],this._placeToken(D,e,x,m,w+D.width/2,`center`,g),w+=D.width,C++;m+=x}},t.prototype._placeToken=function(e,t,n,r,i,a,o){var s=t.rich[e.styleName]||{};s.text=e.text;var c=e.verticalAlign,l=r+n/2;c===`top`?l=r+e.height/2:c===`bottom`&&(l=r+n-e.height/2),!e.isLineHolder&&$s(s)&&this._renderBackground(s,t,a===`right`?i-e.width:a===`center`?i-e.width/2:i,l-e.height/2,e.width,e.height);var u=!!s.backgroundColor,d=e.textPadding;d&&(i=Zs(i,a,d),l-=e.height/2-d[0]-e.innerHeight/2);var f=this._getOrCreateChild(Cs),p=f.createStyle();f.useStyle(p);var m=this._defaultStyle,h=!1,g=0,_=!1,v=Xs(`fill`in s?s.fill:`fill`in t?t.fill:(h=!0,m.fill)),y=Ys(`stroke`in s?s.stroke:`stroke`in t?t.stroke:!u&&!o&&(!m.autoStroke||h)?(g=Ls,_=!0,m.stroke):null),b=s.textShadowBlur>0||t.textShadowBlur>0;p.text=e.text,p.x=i,p.y=l,b&&(p.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,p.shadowColor=s.textShadowColor||t.textShadowColor||`transparent`,p.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),p.textAlign=a,p.textBaseline=`middle`,p.font=e.font||`12px sans-serif`,p.opacity=vt(s.opacity,t.opacity,1),Gs(p,s),y&&(p.lineWidth=vt(s.lineWidth,t.lineWidth,g),p.lineDash=K(s.lineDash,t.lineDash),p.lineDashOffset=t.lineDashOffset||0,p.stroke=y),v&&(p.fill=v),f.setBoundingRect(Fr(p,e.contentWidth,e.contentHeight,_?0:null))},t.prototype._renderBackground=function(e,t,n,r,i,a){var o=e.backgroundColor,s=e.borderWidth,c=e.borderColor,l=o&&o.image,u=o&&!l,d=e.borderRadius,f=this,p,m;if(u||e.lineHeight||s&&c){p=this._getOrCreateChild(Fs),p.useStyle(p.createStyle()),p.style.fill=null;var h=p.shape;h.x=n,h.y=r,h.width=i,h.height=a,h.r=d,p.dirtyShape()}if(u){var g=p.style;g.fill=o||null,g.fillOpacity=K(e.fillOpacity,1)}else if(l){m=this._getOrCreateChild(Ds),m.onload=function(){f.dirtyStyle()};var _=m.style;_.image=o.image,_.x=n,_.y=r,_.width=i,_.height=a}if(s&&c){var g=p.style;g.lineWidth=s,g.stroke=c,g.strokeOpacity=K(e.strokeOpacity,1),g.lineDash=e.borderDash,g.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(g.strokeFirst=!0,g.lineWidth*=2)}var v=(p||m).style;v.shadowBlur=e.shadowBlur||0,v.shadowColor=e.shadowColor||`transparent`,v.shadowOffsetX=e.shadowOffsetX||0,v.shadowOffsetY=e.shadowOffsetY||0,v.opacity=vt(e.opacity,t.opacity,1)},t.makeFont=function(e){var t=``;return Ks(e)&&(t=[e.fontStyle,e.fontWeight,Ws(e.fontSize),e.fontFamily||`sans-serif`].join(` `)),t&&St(t)||e.textFont||e.font},t}(mo),Vs={left:!0,right:1,center:1},Hs={top:1,bottom:1,middle:1},Us=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`];function Ws(e){return typeof e==`string`&&(e.indexOf(`px`)!==-1||e.indexOf(`rem`)!==-1||e.indexOf(`em`)!==-1)?e:isNaN(+e)?`12px`:e+`px`}function Gs(e,t){for(var n=0;n<Us.length;n++){var r=Us[n],i=t[r];i!=null&&(e[r]=i)}}function Ks(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function qs(e){return Js(e),z(e.rich,Js),e}function Js(e){if(e){e.font=Bs.makeFont(e);var t=e.align;t===`middle`&&(t=`center`),e.align=t==null||Vs[t]?t:`left`;var n=e.verticalAlign;n===`center`&&(n=`middle`),e.verticalAlign=n==null||Hs[n]?n:`top`,e.padding&&=bt(e.padding)}}function Ys(e,t){return e==null||t<=0||e===`transparent`||e===`none`?null:e.image||e.colorStops?`#000`:e}function Xs(e){return e==null||e===`none`?null:e.image||e.colorStops?`#000`:e}function Zs(e,t,n){return t===`right`?e-n[1]:t===`center`?e+n[3]/2-n[1]/2:e+n[3]}function Qs(e){var t=e.text;return t!=null&&(t+=``),t}function $s(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var ec=1e-4,tc=20;function nc(e){return e.replace(/^\s+|\s+$/g,``)}var rc=Math.min,ic=Math.max,ac=Math.abs,oc=Math.round,sc=Math.floor,cc=Math.ceil,lc=Math.pow,uc=Math.log,dc=Math.LN10,fc=Math.PI,pc=Math.random;function mc(e,t,n,r){var i=t[0],a=t[1],o=n[0],s=n[1],c=a-i,l=s-o;if(c===0)return l===0?o:(o+s)/2;if(r){if(c>0){if(e<=i)return o;if(e>=a)return s}else if(e>=i)return o;else if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/c*l+o}var hc=gc;function gc(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%`}return _c(e,t,n)}function _c(e,t,n){return W(e)?vc(e)?parseFloat(e)/100*t+(n||0):parseFloat(e):e==null?NaN:+e}function vc(e){return!!nc(e).match(/%$/)}function yc(e,t,n){return isNaN(t)?n?``+e:+e:(t=rc(ic(0,t),tc),e=(+e).toFixed(t),n?e:+e)}function bc(e){return e.sort(function(e,t){return e-t}),e}function xc(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(oc(e*t)/t===e)return n}return Sc(e)}function Sc(e){var t=e.toString().toLowerCase(),n=t.indexOf(`e`),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,a=t.indexOf(`.`);return ic(0,(a<0?0:i-1-a)-r)}function Cc(e,t,n){var r=ac(e[1]-e[0]);if(!isFinite(r)||r===0)return NaN;var i=uc(2*ac(n||1)*ac(r))/dc,a=uc(ac(t))/dc,o=ic(0,cc(-i+a));return isFinite(o)||(o=NaN),o}function wc(e,t){var n=it(e,function(e,t){return e+(isNaN(t)?0:t)},0);if(n===0)return[];for(var r=lc(10,t),i=B(e,function(e){return(isNaN(e)?0:e)/n*r*100}),a=r*100,o=B(i,function(e){return sc(e)}),s=it(o,function(e,t){return e+t},0),c=B(i,function(e,t){return e-o[t]});s<a;){for(var l=-1/0,u=null,d=0,f=c.length;d<f;++d)c[d]>l&&(l=c[d],u=d);++o[u],c[u]=0,++s}return B(o,function(e){return e/r})}function Tc(e,t){var n=ic(xc(e),xc(t)),r=e+t;return n>tc?r:yc(r,n)}var Ec=lc(2,53)-1;function Dc(e){var t=fc*2;return(e%t+t)%t}function Oc(e){return e>-ec&&e<ec}var kc=/^(?:(\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 Ac(e){if(e instanceof Date)return e;if(W(e)){var t=kc.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))}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)}return e==null?new Date(NaN):new Date(oc(e))}function jc(e){return lc(10,Mc(e))}function Mc(e){if(e===0)return 0;var t=sc(uc(e)/dc);return e/lc(10,t)>=10&&t++,t}function Nc(e,t){var n=Mc(e),r=lc(10,n),i=e/r;return e=(t===2?1:t?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*r,yc(e,-n)}function Pc(e){e.sort(function(e,t){return s(e,t,0)?-1:1});for(var t=-1/0,n=1,r=0;r<e.length;){for(var i=e[r].interval,a=e[r].close,o=0;o<2;o++)i[o]<=t&&(i[o]=t,a[o]=o?1:1-n),t=i[o],n=a[o];i[0]===i[1]&&a[0]*a[1]!==1?e.splice(r,1):r++}return e;function s(e,t,n){return e.interval[n]<t.interval[n]||e.interval[n]===t.interval[n]&&(e.close[n]-t.close[n]===(n?-1:1)||!n&&s(e,t,1))}}function Fc(e){var t=parseFloat(e);return t==e&&(t!==0||!W(e)||e.indexOf(`x`)<=0)?t:NaN}function Ic(e){return!isNaN(Fc(e))}function Lc(){return oc(pc()*9)}function Rc(e,t){return t===0?e:Rc(t,e%t)}function zc(e,t){return e==null?t:t==null?e:e*t/Rc(e,t)}function Bc(e){return e!=null&&isFinite(e)}var Vc=`[ECharts] `,Hc={},Uc=typeof console<`u`&&console.warn&&console.log;function Wc(e,t,n){if(Uc){if(n){if(Hc[t])return;Hc[t]=!0}console[e](Vc+t)}}function Gc(e,t){Wc(`error`,e,t)}function Kc(e){throw Error(e)}function qc(e,t,n){return(t-e)*n+e}var Jc=`series\0`,Yc=`\0_ec_\0`;function Xc(e){return e instanceof Array?e:e==null?[]:[e]}function Zc(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 a=n[r];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var Qc=`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`.split(`.`);function $c(e){return G(e)&&!H(e)&&!(e instanceof Date)?e.value:e}function el(e){return G(e)&&!(e instanceof Array)}function tl(e,t,n){var r=n===`normalMerge`,i=n===`replaceMerge`,a=n===`replaceAll`;e||=[],t=(t||[]).slice();var o=q();z(t,function(e,n){G(e)||(t[n]=null)});var s=nl(e,o,n);return(r||i)&&rl(s,e,o,t),r&&il(s,t),r||i?al(s,t,i):a&&ol(s,t),sl(s),s}function nl(e,t,n){var r=[];if(n===`replaceAll`)return r;for(var i=0;i<e.length;i++){var a=e[i];a&&a.id!=null&&t.set(a.id,i),r.push({existing:n===`replaceMerge`||fl(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return r}function rl(e,t,n,r){z(r,function(i,a){if(i&&i.id!=null){var o=ll(i.id),s=n.get(o);if(s!=null){var c=e[s];xt(!c.newOption,`Duplicated option on id "`+o+`".`),c.newOption=i,c.existing=t[s],r[a]=null}}})}function il(e,t){z(t,function(n,r){if(n&&n.name!=null)for(var i=0;i<e.length;i++){var a=e[i].existing;if(!e[i].newOption&&a&&(a.id==null||n.id==null)&&!fl(n)&&!fl(a)&&cl(`name`,a,n)){e[i].newOption=n,t[r]=null;return}}})}function al(e,t,n){z(t,function(t){if(t){for(var r,i=0;(r=e[i])&&(r.newOption||fl(r.existing)||r.existing&&t.id!=null&&!cl(`id`,t,r.existing));)i++;r?(r.newOption=t,r.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),i++}})}function ol(e,t){z(t,function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function sl(e){var t=q();z(e,function(e){var n=e.existing;n&&t.set(n.id,e)}),z(e,function(e){var n=e.newOption;xt(!n||n.id==null||!t.get(n.id)||t.get(n.id)===e,`id duplicates: `+(n&&n.id)),n&&n.id!=null&&t.set(n.id,e),!e.keyInfo&&(e.keyInfo={})}),z(e,function(e,n){var r=e.existing,i=e.newOption,a=e.keyInfo;if(G(i)){if(a.name=i.name==null?r?r.name:Jc+n:ll(i.name),r)a.id=ll(r.id);else if(i.id!=null)a.id=ll(i.id);else{var o=0;do a.id=`\0`+a.name+`\0`+o++;while(t.get(a.id))}t.set(a.id,e)}})}function cl(e,t,n){var r=ul(t[e],null),i=ul(n[e],null);return r!=null&&i!=null&&r===i}function ll(e){return ul(e,``)}function ul(e,t){return e==null?t:W(e)?e:dt(e)||ut(e)?e+``:t}function dl(e){var t=e.name;return!!(t&&t.indexOf(Jc))}function fl(e){return e&&e.id!=null&&ll(e.id).indexOf(Yc)===0}function pl(e,t,n){z(e,function(e){var r=e.newOption;G(r)&&(e.keyInfo.mainType=t,e.keyInfo.subType=ml(t,r,e.existing,n))})}function ml(e,t,n,r){return t.type?t.type:n?n.subType:r.determineSubType(e,t)}function hl(e,t){var n={},r={};return i(e||[],n),i(t||[],r,n),[a(n),a(r)];function i(e,t,n){for(var r=0,i=e.length;r<i;r++){var a=ul(e[r].seriesId,null);if(a==null)return;for(var o=Xc(e[r].dataIndex),s=n&&n[a],c=0,l=o.length;c<l;c++){var u=o[c];s&&s[u]?s[u]=null:(t[a]||(t[a]={}))[u]=1}}}function a(e,t){var n=[];for(var r in e)if(e.hasOwnProperty(r)&&e[r]!=null){if(t)n.push(+r);else{var i=a(e[r],!0);i.length&&n.push({seriesId:r,dataIndex:i})}}return n}}function gl(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return H(t.dataIndex)?B(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return H(t.name)?B(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name)}function _l(){var e=`__ec_inner_`+vl++;return function(t){return t[e]||(t[e]={})}}var vl=Lc();function yl(e,t,n){var r=bl(t,n),i=r.mainTypeSpecified,a=r.queryOptionMap,o=r.others,s=n?n.defaultMainType:null;return!i&&s&&a.set(s,{}),a.each(function(t,r){var i=Sl(e,r,t,{useDefault:s===r,enableAll:n&&n.enableAll!=null?n.enableAll:!0,enableNone:n&&n.enableNone!=null?n.enableNone:!0});o[r+`Models`]=i.models,o[r+`Model`]=i.models[0]}),o}function bl(e,t){var n;if(W(e)){var r={};r[e+`Index`]=0,n=r}else n=e;var i=q(),a={},o=!1;return z(n,function(e,n){if(n===`dataIndex`||n===`dataIndexInside`)a[n]=e;else{var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],c=(r[2]||``).toLowerCase();if(!(!s||!c||t&&t.includeMainTypes&&et(t.includeMainTypes,s)<0)){o||=!!s;var l=i.get(s)||i.set(s,{});l[c]=e}}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var xl={useDefault:!0,enableAll:!1,enableNone:!1};function Sl(e,t,n,r){r||=xl;var i=n.index,a=n.id,o=n.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var c=void 0;return s.models=r.useDefault&&(c=e.getComponent(t))?[c]:[],s}if(i===`none`||i===!1){if(r.enableNone)return s.models=[],s;i=-1}return i===`all`&&(i=r.enableAll?a=o=null:-1),s.models=e.queryComponents({mainType:t,index:i,id:a,name:o}),s}function Cl(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 wl(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function Tl(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function El(e){return e===`auto`?J.domSupported?`html`:`richText`:e||`html`}function Dl(e,t,n,r,i){var a=t==null||t===`auto`;if(r==null)return r;if(dt(r)){var o=qc(n||0,r,i);return yc(o,a?Math.max(xc(n||0),xc(r)):t)}if(W(r))return i<1?n:r;for(var s=[],c=n,l=r,u=Math.max(c?c.length:0,l.length),d=0;d<u;++d){var f=e.getDimensionInfo(d);if(f&&f.type===`ordinal`)s[d]=(i<1&&c?c:l)[d];else{var p=c&&c[d]?c[d]:0,m=l[d],o=qc(p,m,i);s[d]=yc(o,a?Math.max(xc(p),xc(m)):t)}}return s}(function(){function e(){}return e.prototype.reset=function(e,t,n,r){return this._list=e,this._step=r||=1,this._idx=t,this._end=n??(r>0?e.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._step,!0)},e})();function Ol(){return[1/0,-1/0]}function kl(e,t){Nl(t)&&(t<e[0]&&(e[0]=t),t>e[1]&&(e[1]=t))}function Al(e,t){Nl(t)&&t<e[0]&&(e[0]=t)}function jl(e,t){Nl(t)&&t>e[1]&&(e[1]=t)}function Ml(e,t){Pl(t[0],t[1])&&(t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]))}function Nl(e){return e!=null&&isFinite(e)}function Pl(e,t){return Nl(e)&&Nl(t)&&e<=t}function Fl(e){var t=e[1]-e[0];return isFinite(t)&&t>=0}function Il(e){Pl(e[0],e[1])&&e[0]>e[1]&&(e[0]=e[1])}function Ll(){var e=`__ec_once_`+Rl++;return function(t,n){Mt(t,e)||(t[e]=1,n())}}var Rl=Lc();function zl(e,t,n){var r=q(),i=0;z(e,function(a){var o=t(a),s=r.get(o)||0;n&&n(a,s),!s&&!n&&(e[i++]=a),r.set(o,s+1)}),n||(e.length=i)}function Bl(e){return e.value+``}function Vl(e){return e+``}function Hl(e,t){return K(t,!0)?e.seriesIndex+2:0}function Ul(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 Wl(e,t){return{seriesType:e,overallReset:t}}function Gl(e){return{overallReset:e}}var Kl=_l(),ql=function(e,t,n,r){if(r){var i=Kl(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType=`chart`,r.type===`group`&&r.traverse(function(r){var i=Kl(r);i.seriesIndex=e,i.dataIndex=n,i.dataType=t,i.ssrType=`chart`})}},Jl=q([`tooltip`,`label`,`itemName`,`itemId`,`itemGroupId`,`itemChildGroupId`,`seriesName`]),Yl=`original`,Xl=`arrayRows`,Zl=`objectRows`,Ql=`keyedColumns`,$l=`typedArray`,eu=`unknown`,tu=`column`,nu=[`getDom`,`getZr`,`getWidth`,`getHeight`,`getDevicePixelRatio`,`dispatchAction`,`isSSR`,`isDisposed`,`on`,`off`,`getDataURL`,`getConnectedDataURL`,`getOption`,`getId`,`updateLabelLayout`],ru=function(){function e(e){z(nu,function(t){this[t]=V(e[t],e)},this)}return e}();function iu(e,t){return t.mainType===`series`?e.getViewOfSeriesModel(t):e.getViewOfComponentModel(t)}var au=1,ou={},su=_l(),cu=_l(),lu=[`emphasis`,`blur`,`select`],uu=[`normal`,`emphasis`,`blur`,`select`],du=`highlight`,fu=`downplay`,pu=`select`,mu=`unselect`,hu=`toggleSelect`,gu=`selectchanged`;function _u(e){return e!=null&&e!==`none`}function vu(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function yu(e){vu(e,`emphasis`,2)}function bu(e){e.hoverState===2&&vu(e,`normal`,0)}function xu(e){vu(e,`blur`,1)}function Su(e){e.hoverState===1&&vu(e,`normal`,0)}function Cu(e){e.selected=!0}function wu(e){e.selected=!1}function Tu(e,t,n){t(e,n)}function Eu(e,t,n){Tu(e,t,n),e.isGroup&&e.traverse(function(e){Tu(e,t,n)})}function Du(e,t){switch(t){case`emphasis`:e.hoverState=2;break;case`normal`:e.hoverState=0;break;case`blur`:e.hoverState=1;break;case`select`:e.selected=!0}}function Ou(e,t,n,r){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o];a[s]=i[s]??(r&&r[s])}for(var o=0;o<e.animators.length;o++){var c=e.animators[o];c.__fromStateTransition&&c.__fromStateTransition.indexOf(n)<0&&c.targetName===`style`&&c.saveTo(a,t)}return a}function ku(e,t,n,r){var i=n&&et(n,`select`)>=0,a=!1;if(e instanceof xs){var o=su(e),s=i&&o.selectFill||o.normalFill,c=i&&o.selectStroke||o.normalStroke;if(_u(s)||_u(c)){r||={};var l=r.style||{};l.fill===`inherit`?(a=!0,r=R({},r),l=R({},l),l.fill=s):!_u(l.fill)&&_u(s)?(a=!0,r=R({},r),l=R({},l),l.fill=qi(s)):!_u(l.stroke)&&_u(c)&&(a||(r=R({},r),l=R({},l)),l.stroke=qi(c)),r.style=l}}if(r&&r.z2==null){a||(r=R({},r));var u=e.z2EmphasisLift;r.z2=e.z2+(u??10)}return r}function Au(e,t,n){if(n&&n.z2==null){n=R({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??9)}return n}function ju(e,t,n){var r=et(e.currentStates,t)>=0,i=e.style.opacity,a=r?null:Ou(e,[`opacity`],t,{opacity:1});n||={};var o=n.style||{};return o.opacity??(n=R({},n),o=R({opacity:r?i:a.opacity*.1},o),n.style=o),n}function Mu(e,t){var n=this.states[e];if(this.style){if(e===`emphasis`)return ku(this,e,t,n);if(e===`blur`)return ju(this,e,n);if(e===`select`)return Au(this,e,n)}return n}function Nu(e){e.stateProxy=Mu;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=Mu),n&&(n.stateProxy=Mu)}function Pu(e,t){!Hu(e,t)&&!e.__highByOuter&&Eu(e,yu)}function Fu(e,t){!Hu(e,t)&&!e.__highByOuter&&Eu(e,bu)}function Iu(e,t){e.__highByOuter|=1<<(t||0),Eu(e,yu)}function Lu(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Eu(e,bu)}function Ru(e){Eu(e,xu)}function zu(e){Eu(e,Su)}function Bu(e){Eu(e,Cu)}function Vu(e){Eu(e,wu)}function Hu(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Uu(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(t,i){var a=cu(i),o=iu(e,i),s=t===`series`;!s&&r.push(o),a.isBlured&&(o.group.traverse(function(e){Su(e)}),s&&n.push(i)),a.isBlured=!1}),z(r,function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)})}function Wu(e,t,n,r){var i=r.getModel();n||=`coordinateSystem`;function a(e,t){for(var n=0;n<t.length;n++){var r=e.getItemGraphicEl(t[n]);r&&zu(r)}}if(e!=null&&t&&t!==`none`){var o=i.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var c=[];i.eachSeries(function(e){var i=o===e,l=e.coordinateSystem;if(l&&l.master&&(l=l.master),!(n===`series`&&!i||n===`coordinateSystem`&&!(l&&s?l===s:i)||t===`series`&&i)){if(r.getViewOfSeriesModel(e).group.traverse(function(e){e.__highByOuter&&i&&t===`self`||xu(e)}),rt(t))a(e.getData(),t);else if(G(t))for(var u=st(t),d=0;d<u.length;d++)a(e.getData(u[d]),t[u[d]]);c.push(e),cu(e).isBlured=!0}}),i.eachComponent(function(e,t){if(e!==`series`){var n=r.getViewOfComponentModel(t);n&&n.toggleBlurSeries&&n.toggleBlurSeries(c,!0,i)}})}}function Gu(e,t,n){if(e!=null&&t!=null){var r=n.getModel().getComponent(e,t);if(r){cu(r).isBlured=!0;var i=n.getViewOfComponentModel(r);i&&i.focusBlurEnabled&&i.group.traverse(function(e){xu(e)})}}}function Ku(e,t,n){var r=e.seriesIndex,i=e.getData(t.dataType);if(i){var a=gl(i,t);a=(H(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),c=0;!o&&c<s;)o=i.getItemGraphicEl(c++);if(o){var l=Kl(o);Wu(r,l.focus,l.blurScope,n)}else{var u=e.get([`emphasis`,`focus`]),d=e.get([`emphasis`,`blurScope`]);u!=null&&Wu(r,u,d,n)}}}function qu(e,t,n,r){var i={focusSelf:!1,dispatchers:null};if(e==null||e===`series`||t==null||n==null)return i;var a=r.getModel().getComponent(e,t);if(!a)return i;var o=r.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(n),c,l=0;l<s.length;l++)if(Kl(s[l]).focus===`self`){c=!0;break}return{focusSelf:c,dispatchers:s}}function Ju(e,t,n){var r=Kl(e),i=qu(r.componentMainType,r.componentIndex,r.componentHighDownName,n),a=i.dispatchers,o=i.focusSelf;a?(o&&Gu(r.componentMainType,r.componentIndex,n),z(a,function(e){return Pu(e,t)})):(Wu(r.seriesIndex,r.focus,r.blurScope,n),r.focus===`self`&&Gu(r.componentMainType,r.componentIndex,n),Pu(e,t))}function Yu(e,t,n){Uu(n);var r=Kl(e),i=qu(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?z(i,function(e){return Fu(e,t)}):Fu(e,t)}function Xu(e,t,n){if(ld(t)){var r=t.dataType,i=gl(e.getData(r),t);H(i)||(i=[i]),e[t.type===`toggleSelect`?`toggleSelect`:t.type===`select`?`select`:`unselect`](i,r)}}function Zu(e){z(e.getAllData(),function(t){var n=t.data,r=t.type;n.eachItemGraphicEl(function(t,n){e.isSelected(n,r)?Bu(t):Vu(t)})})}function Qu(e){var t=[];return e.eachSeries(function(e){z(e.getAllData(),function(n){n.data;var r=n.type,i=e.getSelectedDataIndices();if(i.length>0){var a={dataIndex:i,seriesIndex:e.seriesIndex};r!=null&&(a.dataType=r),t.push(a)}})}),t}function $u(e,t,n){od(e,!0),Eu(e,Nu),nd(e,t,n)}function ed(e){od(e,!1)}function td(e,t,n,r){r?ed(e):$u(e,t,n)}function nd(e,t,n){var r=Kl(e);t==null?r.focus&&=null:(r.focus=t,r.blurScope=n)}var rd=[`emphasis`,`blur`,`select`],id={itemStyle:`getItemStyle`,lineStyle:`getLineStyle`,areaStyle:`getAreaStyle`};function ad(e,t,n,r){n||=`itemStyle`;for(var i=0;i<rd.length;i++){var a=rd[i],o=t.getModel([a,n]),s=e.ensureState(a);s.style=r?r(o):o[id[n]]()}}function od(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 sd(e){return!!(e&&e.__highDownDispatcher)}function cd(e){var t=ou[e];return t==null&&au<=32&&(t=ou[e]=au++),t}function ld(e){var t=e.type;return t===`select`||t===`unselect`||t===`toggleSelect`}function ud(e){var t=e.type;return t===`highlight`||t===`downplay`}function dd(e){var t=su(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 fd=Xo.CMD,pd=[[],[],[]],md=Math.sqrt,hd=Math.atan2;function gd(e,t){if(t){var n=e.data,r=e.len(),i,a,o,s,c,l,u=fd.M,d=fd.C,f=fd.L,p=fd.R,m=fd.A,h=fd.Q;for(o=0,s=0;o<r;){switch(i=n[o++],s=o,a=0,i){case u:a=1;break;case f:a=1;break;case d:a=3;break;case h:a=2;break;case m:var g=t[4],_=t[5],v=md(t[0]*t[0]+t[1]*t[1]),y=md(t[2]*t[2]+t[3]*t[3]),b=hd(-t[1]/y,t[0]/v);n[o]*=v,n[o++]+=g,n[o]*=y,n[o++]+=_,n[o++]*=v,n[o++]*=y,n[o++]+=b,n[o++]+=b,o+=2,s=o;break;case p:l[0]=n[o++],l[1]=n[o++],jn(l,l,t),n[s++]=l[0],n[s++]=l[1],l[0]+=n[o++],l[1]+=n[o++],jn(l,l,t),n[s++]=l[0],n[s++]=l[1]}for(c=0;c<a;c++){var x=pd[c];x[0]=n[o++],x[1]=n[o++],jn(x,x,t),n[s++]=x[0],n[s++]=x[1]}}e.increaseVersion()}}var _d=Math.sqrt,vd=Math.sin,yd=Math.cos,bd=Math.PI;function xd(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Sd(e,t){return(e[0]*t[0]+e[1]*t[1])/(xd(e)*xd(t))}function Cd(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(Sd(e,t))}function wd(e,t,n,r,i,a,o,s,c,l,u){var d=bd/180*c,f=yd(d)*(e-n)/2+vd(d)*(t-r)/2,p=-1*vd(d)*(e-n)/2+yd(d)*(t-r)/2,m=f*f/(o*o)+p*p/(s*s);m>1&&(o*=_d(m),s*=_d(m));var h=(i===a?-1:1)*_d((o*o*(s*s)-o*o*(p*p)-s*s*(f*f))/(o*o*(p*p)+s*s*(f*f)))||0,g=h*o*p/s,_=h*-s*f/o,v=(e+n)/2+yd(d)*g-vd(d)*_,y=(t+r)/2+vd(d)*g+yd(d)*_,b=Cd([1,0],[(f-g)/o,(p-_)/s]),x=[(f-g)/o,(p-_)/s],S=[(-1*f-g)/o,(-1*p-_)/s],C=Cd(x,S);if(Sd(x,S)<=-1&&(C=bd),Sd(x,S)>=1&&(C=0),C<0){var w=Math.round(C/bd*1e6)/1e6;C=bd*2+w%2*bd}u.addData(l,v,y,o,s,b,C,d,a)}var Td=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Ed=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Dd(e){var t=new Xo;if(!e)return t;var n=0,r=0,i=n,a=r,o,s=Xo.CMD,c=e.match(Td);if(!c)return t;for(var l=0;l<c.length;l++){for(var u=c[l],d=u.charAt(0),f=void 0,p=u.match(Ed)||[],m=p.length,h=0;h<m;h++)p[h]=parseFloat(p[h]);for(var g=0;g<m;){var _=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=n,T=r,E=void 0,D=void 0;switch(d){case`l`:n+=p[g++],r+=p[g++],f=s.L,t.addData(f,n,r);break;case`L`:n=p[g++],r=p[g++],f=s.L,t.addData(f,n,r);break;case`m`:n+=p[g++],r+=p[g++],f=s.M,t.addData(f,n,r),i=n,a=r,d=`l`;break;case`M`:n=p[g++],r=p[g++],f=s.M,t.addData(f,n,r),i=n,a=r,d=`L`;break;case`h`:n+=p[g++],f=s.L,t.addData(f,n,r);break;case`H`:n=p[g++],f=s.L,t.addData(f,n,r);break;case`v`:r+=p[g++],f=s.L,t.addData(f,n,r);break;case`V`:r=p[g++],f=s.L,t.addData(f,n,r);break;case`C`:f=s.C,t.addData(f,p[g++],p[g++],p[g++],p[g++],p[g++],p[g++]),n=p[g-2],r=p[g-1];break;case`c`:f=s.C,t.addData(f,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`:_=n,v=r,E=t.len(),D=t.data,o===s.C&&(_+=n-D[E-4],v+=r-D[E-3]),f=s.C,w=p[g++],T=p[g++],n=p[g++],r=p[g++],t.addData(f,_,v,w,T,n,r);break;case`s`:_=n,v=r,E=t.len(),D=t.data,o===s.C&&(_+=n-D[E-4],v+=r-D[E-3]),f=s.C,w=n+p[g++],T=r+p[g++],n+=p[g++],r+=p[g++],t.addData(f,_,v,w,T,n,r);break;case`Q`:w=p[g++],T=p[g++],n=p[g++],r=p[g++],f=s.Q,t.addData(f,w,T,n,r);break;case`q`:w=p[g++]+n,T=p[g++]+r,n+=p[g++],r+=p[g++],f=s.Q,t.addData(f,w,T,n,r);break;case`T`:_=n,v=r,E=t.len(),D=t.data,o===s.Q&&(_+=n-D[E-4],v+=r-D[E-3]),n=p[g++],r=p[g++],f=s.Q,t.addData(f,_,v,n,r);break;case`t`:_=n,v=r,E=t.len(),D=t.data,o===s.Q&&(_+=n-D[E-4],v+=r-D[E-3]),n+=p[g++],r+=p[g++],f=s.Q,t.addData(f,_,v,n,r);break;case`A`:y=p[g++],b=p[g++],x=p[g++],S=p[g++],C=p[g++],w=n,T=r,n=p[g++],r=p[g++],f=s.A,wd(w,T,n,r,S,C,y,b,x,f,t);break;case`a`:y=p[g++],b=p[g++],x=p[g++],S=p[g++],C=p[g++],w=n,T=r,n+=p[g++],r+=p[g++],f=s.A,wd(w,T,n,r,S,C,y,b,x,f,t)}}(d===`z`||d===`Z`)&&(f=s.Z,t.addData(f),n=i,r=a),o=f}return t.toStatic(),t}var Od=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t}(xs);function kd(e){return e.setData!=null}function Ad(e,t){var n=Dd(e),r=R({},t);return r.buildPath=function(e){var t=kd(e);if(t&&e.canSave()){e.appendPath(n);var r=e.getContext();r&&e.rebuildPath(r,1)}else{var r=t?e.getContext():e;r&&n.rebuildPath(r,1)}},r.applyTransform=function(e){gd(n,e),this.dirtyShape()},r}function jd(e,t){return new Od(Ad(e,t))}function Md(e,t){var n=Ad(e,t);return function(e){I(t,e);function t(t){var r=e.call(this,t)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return t}(Od)}function Nd(e,t){for(var n=[],r=e.length,i=0;i<r;i++){var a=e[i];n.push(a.getUpdatedPathProxy(!0))}var o=new xs(t);return o.createPathProxy(),o.buildPath=function(e){if(kd(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},o}var Pd=function(e){I(t,e);function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var t=this._children,n=0;n<t.length;n++)if(t[n].name===e)return t[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var n=this._children,r=n.indexOf(t);r>=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=et(this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,r=et(n,e);return r<0||(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh()),this},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n<e.length;n++){var r=e[n];t&&r.removeSelfFromZr(t),r.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,t){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];e.call(t,i,r)}return this},t.prototype.traverse=function(e,t){for(var n=0;n<this._children.length;n++){var r=this._children[n],i=e.call(t,r);r.isGroup&&!i&&r.traverse(e,t)}return this},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].addSelfToZr(t)},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].removeSelfFromZr(t)},t.prototype.getBoundingRect=function(e){for(var t=new X(0,0,0,0),n=e||this._children,r=[],i=null,a=0;a<n.length;a++){var o=n[a];if(!(o.ignore||o.invisible)){var s=o.getBoundingRect(),c=o.getLocalTransform(r);c?(X.applyTransform(t,s,c),i||=t.clone(),i.union(t)):(i||=s.clone(),i.union(s))}}return i||t},t}(Za);Pd.prototype.type=`group`;var Fd=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),Id=function(e){I(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Fd},t.prototype.buildPath=function(e,t){e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,Math.PI*2)},t}(xs);Id.prototype.type=`circle`;var Ld=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),Rd=function(e){I(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Ld},t.prototype.buildPath=function(e,t){var n=.5522848,r=t.cx,i=t.cy,a=t.rx,o=t.ry,s=a*n,c=o*n;e.moveTo(r-a,i),e.bezierCurveTo(r-a,i-c,r-s,i-o,r,i-o),e.bezierCurveTo(r+s,i-o,r+a,i-c,r+a,i),e.bezierCurveTo(r+a,i+c,r+s,i+o,r,i+o),e.bezierCurveTo(r-s,i+o,r-a,i+c,r-a,i),e.closePath()},t}(xs);Rd.prototype.type=`ellipse`;var zd=Math.PI,Bd=zd*2,Vd=Math.sin,Hd=Math.cos,Ud=Math.acos,Wd=Math.atan2,Gd=Math.abs,Kd=Math.sqrt,qd=Math.max,Jd=Math.min,Yd=1e-4;function Xd(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=d*c-u*l;if(!(f*f<Yd))return f=(u*(t-a)-d*(e-i))/f,[e+f*c,t+f*l]}function Zd(e,t,n,r,i,a,o){var s=e-n,c=t-r,l=(o?a:-a)/Kd(s*s+c*c),u=l*c,d=-l*s,f=e+u,p=t+d,m=n+u,h=r+d,g=(f+m)/2,_=(p+h)/2,v=m-f,y=h-p,b=v*v+y*y,x=i-a,S=f*h-m*p,C=(y<0?-1:1)*Kd(qd(0,x*x*b-S*S)),w=(S*y-v*C)/b,T=(-S*v-y*C)/b,E=(S*y+v*C)/b,D=(-S*v+y*C)/b,O=w-g,k=T-_,A=E-g,j=D-_;return O*O+k*k>A*A+j*j&&(w=E,T=D),{cx:w,cy:T,x0:-u,y0:-d,x1:w*(i/x-1),y1:T*(i/x-1)}}function Qd(e){var t;if(H(e)){var n=e.length;if(!n)return e;t=n===1?[e[0],e[0],0,0]:n===2?[e[0],e[0],e[1],e[1]]:n===3?e.concat(e[2]):e}else t=[e,e,e,e];return t}function $d(e,t){var n,r=qd(t.r,0),i=qd(t.r0||0,0),a=r>0;if(a||i>0){if(a||(r=i,i=0),i>r){var o=r;r=i,i=o}var s=t.startAngle,c=t.endAngle;if(!(isNaN(s)||isNaN(c))){var l=t.cx,u=t.cy,d=!!t.clockwise,f=Gd(c-s),p=f>Bd&&f%Bd;if(p>Yd&&(f=p),!(r>Yd))e.moveTo(l,u);else if(f>Bd-Yd)e.moveTo(l+r*Hd(s),u+r*Vd(s)),e.arc(l,u,r,s,c,!d),i>Yd&&(e.moveTo(l+i*Hd(c),u+i*Vd(c)),e.arc(l,u,i,c,s,d));else{var m=void 0,h=void 0,g=void 0,_=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=void 0,T=void 0,E=void 0,D=void 0,O=void 0,k=void 0,A=r*Hd(s),j=r*Vd(s),M=i*Hd(c),ee=i*Vd(c),N=f>Yd;if(N){var P=t.cornerRadius;P&&(n=Qd(P),m=n[0],h=n[1],g=n[2],_=n[3]);var te=Gd(r-i)/2;if(v=Jd(te,g),y=Jd(te,_),b=Jd(te,m),x=Jd(te,h),w=S=qd(v,y),T=C=qd(b,x),(S>Yd||C>Yd)&&(E=r*Hd(c),D=r*Vd(c),O=i*Hd(s),k=i*Vd(s),f<zd)){var ne=Xd(A,j,O,k,E,D,M,ee);if(ne){var re=A-ne[0],ie=j-ne[1],ae=E-ne[0],oe=D-ne[1],se=1/Vd(Ud((re*ae+ie*oe)/(Kd(re*re+ie*ie)*Kd(ae*ae+oe*oe)))/2),ce=Kd(ne[0]*ne[0]+ne[1]*ne[1]);w=Jd(S,(r-ce)/(se+1)),T=Jd(C,(i-ce)/(se-1))}}}if(!N)e.moveTo(l+A,u+j);else if(w>Yd){var le=Jd(g,w),ue=Jd(_,w),F=Zd(O,k,A,j,r,le,d),de=Zd(E,D,M,ee,r,ue,d);e.moveTo(l+F.cx+F.x0,u+F.cy+F.y0),w<S&&le===ue?e.arc(l+F.cx,u+F.cy,w,Wd(F.y0,F.x0),Wd(de.y0,de.x0),!d):(le>0&&e.arc(l+F.cx,u+F.cy,le,Wd(F.y0,F.x0),Wd(F.y1,F.x1),!d),e.arc(l,u,r,Wd(F.cy+F.y1,F.cx+F.x1),Wd(de.cy+de.y1,de.cx+de.x1),!d),ue>0&&e.arc(l+de.cx,u+de.cy,ue,Wd(de.y1,de.x1),Wd(de.y0,de.x0),!d))}else e.moveTo(l+A,u+j),e.arc(l,u,r,s,c,!d);if(!(i>Yd)||!N)e.lineTo(l+M,u+ee);else if(T>Yd){var le=Jd(m,T),ue=Jd(h,T),F=Zd(M,ee,E,D,i,-ue,d),de=Zd(A,j,O,k,i,-le,d);e.lineTo(l+F.cx+F.x0,u+F.cy+F.y0),T<C&&le===ue?e.arc(l+F.cx,u+F.cy,T,Wd(F.y0,F.x0),Wd(de.y0,de.x0),!d):(ue>0&&e.arc(l+F.cx,u+F.cy,ue,Wd(F.y0,F.x0),Wd(F.y1,F.x1),!d),e.arc(l,u,i,Wd(F.cy+F.y1,F.cx+F.x1),Wd(de.cy+de.y1,de.cx+de.x1),d),le>0&&e.arc(l+de.cx,u+de.cy,le,Wd(de.y1,de.x1),Wd(de.y0,de.x0),!d))}else e.lineTo(l+M,u+ee),e.arc(l,u,i,c,s,d)}e.closePath()}}}var ef=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}(),tf=function(e){I(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new ef},t.prototype.buildPath=function(e,t){$d(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(xs);tf.prototype.type=`sector`;var nf=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),rf=function(e){I(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new nf},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.PI*2;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)},t}(xs);rf.prototype.type=`ring`;function af(e,t,n,r){var i=[],a=[],o=[],s=[],c,l,u,d;if(r){u=[1/0,1/0],d=[-1/0,-1/0];for(var f=0,p=e.length;f<p;f++)Mn(u,u,e[f]),Nn(d,d,e[f]);Mn(u,u,r[0]),Nn(d,d,r[1])}for(var f=0,p=e.length;f<p;f++){var m=e[f];if(n)c=e[f?f-1:p-1],l=e[(f+1)%p];else if(f===0||f===p-1){i.push(vn(e[f]));continue}else c=e[f-1],l=e[f+1];xn(a,l,c),wn(a,a,t);var h=En(m,c),g=En(m,l),_=h+g;_!==0&&(h/=_,g/=_),wn(o,a,-h),wn(s,a,g);var v=bn([],m,o),y=bn([],m,s);r&&(Nn(v,v,u),Mn(v,v,d),Nn(y,y,u),Mn(y,y,d)),i.push(v),i.push(y)}return n&&i.push(i.shift()),i}function of(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r){var a=af(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(n?o:o-1);s++){var c=a[s*2],l=a[s*2+1],u=i[(s+1)%o];e.bezierCurveTo(c[0],c[1],l[0],l[1],u[0],u[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,d=i.length;s<d;s++)e.lineTo(i[s][0],i[s][1])}n&&e.closePath()}}var sf=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),cf=function(e){I(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new sf},t.prototype.buildPath=function(e,t){of(e,t,!0)},t}(xs);cf.prototype.type=`polygon`;var lf=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),uf=function(e){I(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new lf},t.prototype.buildPath=function(e,t){of(e,t,!1)},t}(xs);uf.prototype.type=`polyline`;var df={},ff=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),pf=function(e){I(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new ff},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=As(df,t,this.style);n=o.x1,r=o.y1,i=o.x2,a=o.y2}else n=t.x1,r=t.y1,i=t.x2,a=t.y2;var s=t.percent;s!==0&&(e.moveTo(n,r),s<1&&(i=n*(1-s)+i*s,a=r*(1-s)+a*s),e.lineTo(i,a))},t.prototype.pointAt=function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]},t}(xs);pf.prototype.type=`line`;var mf=[],hf=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 gf(e,t,n){var r=e.cpx2,i=e.cpy2;return r!=null||i!=null?[(n?si:oi)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?si:oi)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?mi:pi)(e.x1,e.cpx1,e.x2,t),(n?mi:pi)(e.y1,e.cpy1,e.y2,t)]}var _f=function(e){I(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new hf},t.prototype.buildPath=function(e,t){var n=t.x1,r=t.y1,i=t.x2,a=t.y2,o=t.cpx1,s=t.cpy1,c=t.cpx2,l=t.cpy2,u=t.percent;u!==0&&(e.moveTo(n,r),c==null||l==null?(u<1&&(_i(n,o,i,u,mf),o=mf[1],i=mf[2],_i(r,s,a,u,mf),s=mf[1],a=mf[2]),e.quadraticCurveTo(o,s,i,a)):(u<1&&(ui(n,o,c,i,u,mf),o=mf[1],c=mf[2],i=mf[3],ui(r,s,l,a,u,mf),s=mf[1],l=mf[2],a=mf[3]),e.bezierCurveTo(o,s,c,l,i,a)))},t.prototype.pointAt=function(e){return gf(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=gf(this.shape,e,!0);return Tn(t,t)},t}(xs);_f.prototype.type=`bezier-curve`;var vf=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}(),yf=function(e){I(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new vf},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r,0),a=t.startAngle,o=t.endAngle,s=t.clockwise,c=Math.cos(a),l=Math.sin(a);e.moveTo(c*i+n,l*i+r),e.arc(n,r,i,a,o,!s)},t}(xs);yf.prototype.type=`arc`;var bf=function(e){I(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`compound`,t}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n<e.length;n++)t||=e[n].shapeChanged();t&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,t){for(var n=t.paths||[],r=0;r<n.length;r++)n[r].buildPath(e,n[r].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),xs.prototype.getBoundingRect.call(this)},t}(xs),xf=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}(),Sf=function(e){I(t,e);function t(t,n,r,i,a,o){var s=e.call(this,a)||this;return s.x=t??0,s.y=n??0,s.x2=r??1,s.y2=i??0,s.type=`linear`,s.global=o||!1,s}return t}(xf),Cf=function(e){I(t,e);function t(t,n,r,i,a){var o=e.call(this,i)||this;return o.x=t??.5,o.y=n??.5,o.r=r??.5,o.type=`radial`,o.global=a||!1,o}return t}(xf),wf=Math.min,Tf=Math.max,Ef=Math.abs,Df=[0,0],Of=[0,0],kf=er(),Af=kf.minTv,jf=kf.maxTv,Mf=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Y;for(var n=0;n<2;n++)this._axes[n]=new Y;e&&this.fromBoundingRect(e,t)}return e.prototype.fromBoundingRect=function(e,t){var n=this._corners,r=this._axes,i=e.x,a=e.y,o=i+e.width,s=a+e.height;if(n[0].set(i,a),n[1].set(o,a),n[2].set(o,s),n[3].set(i,s),t)for(var c=0;c<4;c++)n[c].transform(t);Y.sub(r[0],n[1],n[0]),Y.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(var c=0;c<2;c++)this._origin[c]=r[c].dot(n[0])},e.prototype.intersect=function(e,t,n){var r=!0,i=!t;return t&&Y.set(t,0,0),kf.reset(n,!i),!this._intersectCheckOneSide(this,e,i,1)&&(r=!1,i)||!this._intersectCheckOneSide(e,this,i,-1)&&(r=!1,i)||!i&&!kf.negativeSize&&Y.copy(t,r?kf.useDir?kf.dirMinTv:Af:jf),r},e.prototype._intersectCheckOneSide=function(e,t,n,r){for(var i=!0,a=0;a<2;a++){var o=e._axes[a];if(e._getProjMinMaxOnAxis(a,e._corners,Df),e._getProjMinMaxOnAxis(a,t._corners,Of),kf.negativeSize||Df[1]<Of[0]||Df[0]>Of[1]){if(i=!1,kf.negativeSize||n)return i;var s=Ef(Of[0]-Df[1]),c=Ef(Df[0]-Of[1]);wf(s,c)>jf.len()&&(s<c?Y.scale(jf,o,-s*r):Y.scale(jf,o,c*r))}else if(!n){var s=Ef(Of[0]-Df[1]),c=Ef(Df[0]-Of[1]);(kf.useDir||wf(s,c)<Af.len())&&((s<c||!kf.bidirectional)&&(Y.scale(Af,o,s*r),kf.useDir&&kf.calcDirMTV()),(s>=c||!kf.bidirectional)&&(Y.scale(Af,o,-c*r),kf.useDir&&kf.calcDirMTV()))}}return i},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var r=this._axes[e],i=this._origin,a=t[0].dot(r)+i[e],o=a,s=a,c=1;c<t.length;c++){var l=t[c].dot(r)+i[e];o=wf(l,o),s=Tf(l,s)}n[0]=o+kf.touchThreshold,n[1]=s-kf.touchThreshold,kf.negativeSize=n[1]<n[0]},e}(),Nf=[],Pf=function(e){I(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.notClear=!0,t.incremental=1,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return t.prototype.traverse=function(e,t){e.call(t,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(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,t){t||=!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(var t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var t=this._displayables[e];t.parent=this,t.update(),t.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var t=this._temporaryDisplayables[e];t.parent=this,t.update(),t.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new X(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform(Nf)),e.union(r)}this._rect=e}return this._rect},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t);if(this.getBoundingRect().contain(n[0],n[1])){for(var r=0;r<this._displayables.length;r++)if(this._displayables[r].contain(e,t))return!0}return!1},t}(mo),Ff=_l();function If(e,t,n,r,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),c=e===`update`;if(s){var l=void 0,u=void 0,d=void 0;return r?(l=K(r.duration,200),u=K(r.easing,`cubicOut`),d=0):(l=t.getShallow(c?`animationDurationUpdate`:`animationDuration`),u=t.getShallow(c?`animationEasingUpdate`:`animationEasing`),d=t.getShallow(c?`animationDelayUpdate`:`animationDelay`)),a&&(a.duration!=null&&(l=a.duration),a.easing!=null&&(u=a.easing),a.delay!=null&&(d=a.delay)),U(d)&&(d=d(n,i)),U(l)&&(l=l(n)),{duration:l||0,delay:d,easing:u}}return null}function Lf(e,t,n,r,i,a,o){var s=!1,c;U(i)?(o=a,a=i,i=null):G(i)&&(a=i.cb,o=i.during,s=i.isFrom,c=i.removeOpt,i=i.dataIndex);var l=e===`leave`;l||t.stopAnimation(`leave`);var u=If(e,r,i,l?c||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):null);if(u&&u.duration>0){var d=u.duration,f=u.delay,p=u.easing,m={duration:d,delay:f||0,easing:p,done:a,force:!!a||!!o,setToFinal:!l,scope:e,during:o};s?t.animateFrom(n,m):t.animateTo(n,m)}else t.stopAnimation(),!s&&t.attr(n),o&&o(1),a&&a()}function Rf(e,t,n,r,i,a){Lf(`update`,e,t,n,r,i,a)}function zf(e,t,n,r,i,a){Lf(`enter`,e,t,n,r,i,a)}function Bf(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++)if(e.animators[t].scope===`leave`)return!0;return!1}function Vf(e,t,n,r,i,a){Bf(e)||Lf(`leave`,e,t,n,r,i,a)}function Hf(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),Vf(e,{style:{opacity:0}},t,n,r)}function Uf(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(e){e.isGroup||Hf(e,t,n,r)}):Hf(e,t,n,r)}function Wf(e){Ff(e).oldStyle=e.style}var Gf=t({Arc:()=>yf,BezierCurve:()=>_f,BoundingRect:()=>X,Circle:()=>Id,CompoundPath:()=>bf,Ellipse:()=>Rd,Group:()=>Pd,HOVER_LAYER_FOR_INCREMENTAL:()=>2,HOVER_LAYER_FROM_THRESHOLD:()=>1,HOVER_LAYER_NO:()=>0,Image:()=>Ds,IncrementalDisplayable:()=>Pf,Line:()=>pf,LinearGradient:()=>Sf,OrientedBoundingRect:()=>Mf,Path:()=>xs,Point:()=>Y,Polygon:()=>cf,Polyline:()=>uf,RadialGradient:()=>Cf,Rect:()=>Fs,Ring:()=>rf,Sector:()=>tf,Text:()=>Bs,WH:()=>Jf,XY:()=>qf,applyTransform:()=>lp,calcZ2Range:()=>Mp,clipPointsByRect:()=>mp,clipRectByRect:()=>hp,createIcon:()=>gp,decomposeTransform:()=>Ip,ensureCopyRect:()=>kp,ensureCopyTransform:()=>Ap,expandOrShrinkRect:()=>xp,extendPath:()=>Zf,extendShape:()=>Yf,getCurrentCanvasPainter:()=>Rp,getShapeClass:()=>$f,getTransform:()=>cp,groupTransition:()=>pp,initProps:()=>zf,isBoundingRectAxisAligned:()=>Dp,isElementRemoved:()=>Bf,lineLineIntersect:()=>vp,linePolygonIntersect:()=>_p,makeImage:()=>tp,makePath:()=>ep,mergePath:()=>rp,payloadDisableAnimation:()=>Fp,registerShape:()=>Qf,removeElement:()=>Vf,removeElementWithFadeOut:()=>Uf,resizePath:()=>ip,retrieveZInfo:()=>jp,setTooltipConfig:()=>wp,subPixelOptimize:()=>sp,subPixelOptimizeLine:()=>ap,subPixelOptimizeRect:()=>op,transformDirection:()=>up,traverseElements:()=>Ep,traverseUpdateZ:()=>Np,updateProps:()=>Rf}),Kf={},qf=[`x`,`y`],Jf=[`width`,`height`];function Yf(e){return xs.extend(e)}var Xf=Md;function Zf(e,t){return Xf(e,t)}function Qf(e,t){Kf[e]=t}function $f(e){if(Kf.hasOwnProperty(e))return Kf[e]}function ep(e,t,n,r){var i=jd(e,t);return n&&(r===`center`&&(n=np(n,i.getBoundingRect())),ip(i,n)),i}function tp(e,t,n){var r=new Ds({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if(n===`center`){var i={width:e.width,height:e.height};r.setStyle(np(t,i))}}});return r}function np(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 a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-r/2,y:o-i/2,width:r,height:i}}var rp=Nd;function ip(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function ap(e,t){return As(e,e,{lineWidth:t}),e}function op(e,t){return js(e,e,t),e}var sp=Ms;function cp(e,t){for(var n=un([]);e&&e!==t;)fn(n,e.getLocalTransform(),n),e=e.parent;return n}function lp(e,t,n){return t&&!rt(t)&&(t=Wr.getLocalTransform(t)),n&&(t=gn([],t)),jn([],e,t)}function up(e,t,n){var r=t[4]===0||t[5]===0||t[0]===0?1:ac(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:ac(2*t[4]/t[2]),a=[e===`left`?-r:e===`right`?r:0,e===`top`?-i:e===`bottom`?i:0];return a=lp(a,t,n),ac(a[0])>ac(a[1])?a[0]>0?`right`:`left`:a[1]>0?`bottom`:`top`}function dp(e){return!e.isGroup}function fp(e){return e.shape!=null}function pp(e,t,n){if(!e||!t)return;function r(e){var t={};return e.traverse(function(e){dp(e)&&e.anid&&(t[e.anid]=e)}),t}function i(e){var t={x:e.x,y:e.y,rotation:e.rotation};return fp(e)&&(t.shape=L(e.shape)),t}var a=r(e);t.traverse(function(e){if(dp(e)&&e.anid){var t=a[e.anid];if(t){var r=i(e);e.attr(i(t)),Rf(e,r,n,Kl(e).dataIndex)}}})}function mp(e,t){return B(e,function(e){var n=e[0];n=ic(n,t.x),n=rc(n,t.x+t.width);var r=e[1];return r=ic(r,t.y),r=rc(r,t.y+t.height),[n,r]})}function hp(e,t){var n=ic(e.x,t.x),r=rc(e.x+e.width,t.x+t.width),i=ic(e.y,t.y),a=rc(e.y+e.height,t.y+t.height);if(r>=n&&a>=i)return{x:n,y:i,width:r-n,height:a-i}}function gp(e,t,n){var r=R({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n||={x:-1,y:-1,width:2,height:2},e)return e.indexOf(`image://`)===0?(i.image=e.slice(8),$e(i,n),new Ds(r)):ep(e.replace(`path://`,``),r,n,`center`)}function _p(e,t,n,r,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(vp(e,t,n,r,s[0],s[1],o[0],o[1]))return!0;o=s}}function vp(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=yp(u,d,c,l);if(bp(f))return!1;var p=e-i,m=t-a,h=yp(p,m,c,l)/f;if(h<0||h>1)return!1;var g=yp(p,m,u,d)/f;return!(g<0||g>1)}function yp(e,t,n,r){return e*r-n*t}function bp(e){return e<=1e-6&&e>=-1e-6}function xp(e,t,n,r,i){return t==null||(dt(t)?Sp[0]=Sp[1]=Sp[2]=Sp[3]=t:(Sp[0]=t[0],Sp[1]=t[1],Sp[2]=t[2],Sp[3]=t[3]),r&&(Sp[0]=ic(0,Sp[0]),Sp[1]=ic(0,Sp[1]),Sp[2]=ic(0,Sp[2]),Sp[3]=ic(0,Sp[3])),n&&(Sp[0]=-Sp[0],Sp[1]=-Sp[1],Sp[2]=-Sp[2],Sp[3]=-Sp[3]),Cp(e,Sp,`x`,`width`,3,1,i&&i[0]||0),Cp(e,Sp,`y`,`height`,0,2,i&&i[1]||0)),e}var Sp=[0,0,0,0];function Cp(e,t,n,r,i,a,o){var s=t[a]+t[i],c=e[r];e[r]+=s,o=ic(0,rc(o,c)),e[r]<o?(e[r]=o,e[n]+=t[i]>=0?-t[i]:t[a]>=0?c+t[a]:ac(s)>1e-8?(c-o)*t[i]/s:0):e[n]-=t[i]}function wp(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=W(t)?{formatter:t}:t,a=n.mainType,o=n.componentIndex,s={componentType:a,name:r,$vars:[`name`]};s[a+`Index`]=o;var c=e.formatterParamsExtra;c&&z(st(c),function(e){Mt(s,e)||(s[e]=c[e],s.$vars.push(e))});var l=Kl(e.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:r,option:$e({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function Tp(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function Ep(e,t){if(e){if(H(e))for(var n=0;n<e.length;n++)Tp(e[n],t);else Tp(e,t)}}function Dp(e){return!e||ac(e[1])<Op&&ac(e[2])<Op||ac(e[0])<Op&&ac(e[3])<Op}var Op=1e-5;function kp(e,t){return e?X.copy(e,t):t.clone()}function Ap(e,t){return t?dn(e||ln(),t):void 0}function jp(e){return{z:e.get(`z`)||0,zlevel:e.get(`zlevel`)||0}}function Mp(e){var t=-1/0,n=1/0;Tp(e,function(e){r(e),r(e.getTextContent()),r(e.getTextGuideLine())});function r(e){if(e&&!e.isGroup){var t=e.currentStates;if(t.length)for(var n=0;n<t.length;n++)i(e.states[t[n]]);i(e)}}function i(e){if(e){var r=e.z2;r>t&&(t=r),r<n&&(n=r)}}return n>t&&(n=t=0),{min:n,max:t}}function Np(e,t,n){Pp(e,t,n,-1/0)}function Pp(e,t,n,r){if(e.ignoreModelZ)return r;var i=e.getTextContent(),a=e.getTextGuideLine();if(e.isGroup)for(var o=e.childrenRef(),s=0;s<o.length;s++)r=ic(Pp(o[s],t,n,r),r);else e.z=t,e.zlevel=n,r=ic(e.z2||0,r);if(i&&(i.z=t,i.zlevel=n,isFinite(r)&&(i.z2=r+2)),a){var c=e.textGuideLineConfig;a.z=t,a.zlevel=n,isFinite(r)&&(a.z2=r+(c&&c.showAbove?1:-1))}return r}function Fp(e){return e.animation={duration:0},e}function Ip(e,t){return t?dn(Lp.transform,t):un(Lp.transform),Lp.decomposeTransform(),qr(e,Lp),e}var Lp=new Wr;Lp.transform=ln();function Rp(e){var t=e.getZr().painter;return t.getType()===`canvas`?t:null}Qf(`circle`,Id),Qf(`ellipse`,Rd),Qf(`sector`,tf),Qf(`ring`,rf),Qf(`polygon`,cf),Qf(`polyline`,uf),Qf(`rect`,Fs),Qf(`line`,pf),Qf(`bezierCurve`,_f),Qf(`arc`,yf);var zp={};function Bp(e,t){for(var n=0;n<lu.length;n++){var r=lu[n],i=t[r],a=e.ensureState(r);a.style=a.style||{},a.style.text=i}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function Vp(e,t,n){var r=e.labelFetcher,i=e.labelDataIndex,a=e.labelDimIndex,o=t.normal,s;r&&(s=r.getFormattedLabel(i,`normal`,null,a,o&&o.get(`formatter`),n==null?null:{interpolatedValue:n})),s??=U(e.defaultText)?e.defaultText(i,e,n):e.defaultText;for(var c={normal:s},l=0;l<lu.length;l++){var u=lu[l],d=t[u];c[u]=K(r?r.getFormattedLabel(i,u,null,a,d&&d.get(`formatter`)):null,s)}return c}function Hp(e,t,n,r){n||=zp;for(var i=e instanceof Bs,a=!1,o=0;o<uu.length;o++){var s=t[uu[o]];if(s&&s.getShallow(`show`)){a=!0;break}}var c=i?e:e.getTextContent();if(a){i||(c||(c=new Bs,e.setTextContent(c)),e.stateProxy&&(c.stateProxy=e.stateProxy));var l=Vp(n,t),u=t.normal,d=!!u.getShallow(`show`),f=Wp(u,r&&r.normal,n,!1,!i);f.text=l.normal,i||e.setTextConfig(Gp(u,n,!1));for(var o=0;o<lu.length;o++){var p=lu[o],s=t[p];if(s){var m=c.ensureState(p),h=!!K(s.getShallow(`show`),d);if(h!==d&&(m.ignore=!h),m.style=Wp(s,r&&r[p],n,!0,!i),m.style.text=l[p],!i){var g=e.ensureState(p);g.textConfig=Gp(s,n,!0)}}}c.silent=!!u.getShallow(`silent`),c.style.x!=null&&(f.x=c.style.x),c.style.y!=null&&(f.y=c.style.y),c.ignore=!d,c.useStyle(f),c.dirty(),n.enableTextSetter&&($p(c).setLabelText=function(e){var r=Vp(n,t,e);Bp(c,r)})}else c&&(c.ignore=!0);e.dirty()}function Up(e,t){t||=`label`;for(var n={normal:e.getModel(t)},r=0;r<lu.length;r++){var i=lu[r];n[i]=e.getModel([i,t])}return n}function Wp(e,t,n,r,i){var a={};return Kp(a,e,n,r,i),t&&R(a,t),a}function Gp(e,t,n){t||={};var r={},i,a=e.getShallow(`rotate`),o=K(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),a!=null&&(a*=Math.PI/180,r.rotation=a),o!=null&&(r.distance=o),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 Kp(e,t,n,r,i){n||=zp;var a=t.ecModel,o=a&&a.option.textStyle,s=qp(t),c;if(s){c={};var l=`richInheritPlainLabel`,u=K(t.get(l),a?a.get(l):void 0);for(var d in s)if(s.hasOwnProperty(d)){var f=t.getModel([`rich`,d]);Zp(c[d]={},f,o,t,u,n,r,i,!1,!0)}}c&&(e.rich=c);var p=t.get(`overflow`);p&&(e.overflow=p);var m=t.get(`lineOverflow`);m&&(e.lineOverflow=m);var h=e,g=t.get(`minMargin`);if(g!=null)g=dt(g)?g/2:0,h.margin=[g,g,g,g],h.__marginType=tm.minMargin;else{var _=t.get(`textMargin`);_!=null&&(h.margin=bt(_),h.__marginType=tm.textMargin)}Zp(e,t,o,null,null,n,r,i,!0,!1)}function qp(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||zp).rich;if(n){t||={};for(var r=st(n),i=0;i<r.length;i++){var a=r[i];t[a]=1}}e=e.parentModel}return t}var Jp=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`textShadowColor`,`textShadowBlur`,`textShadowOffsetX`,`textShadowOffsetY`],Yp=[`align`,`lineHeight`,`width`,`height`,`tag`,`verticalAlign`,`ellipsis`],Xp=[`padding`,`borderWidth`,`borderRadius`,`borderDashOffset`,`backgroundColor`,`borderColor`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`];function Zp(e,t,n,r,i,a,o,s,c,l){n=!o&&n||zp;var u=a&&a.inheritColor,d=t.getShallow(`color`),f=t.getShallow(`textBorderColor`),p=K(t.getShallow(`opacity`),n.opacity);(d===`inherit`||d===`auto`)&&(d=u||null),(f===`inherit`||f===`auto`)&&(f=u||null),s||(d||=n.color,f||=n.textBorderColor),d!=null&&(e.fill=d),f!=null&&(e.stroke=f);var m=K(t.getShallow(`textBorderWidth`),n.textBorderWidth);m!=null&&(e.lineWidth=m);var h=K(t.getShallow(`textBorderType`),n.textBorderType);h!=null&&(e.lineDash=h);var g=K(t.getShallow(`textBorderDashOffset`),n.textBorderDashOffset);g!=null&&(e.lineDashOffset=g),!o&&p==null&&!l&&(p=a&&a.defaultOpacity),p!=null&&(e.opacity=p),!o&&!s&&e.fill==null&&a.inheritColor&&(e.fill=a.inheritColor);for(var _=0;_<Jp.length;_++){var v=Jp[_],y=i!==!1&&r?vt(t.getShallow(v),r.getShallow(v),n[v]):K(t.getShallow(v),n[v]);y!=null&&(e[v]=y)}for(var _=0;_<Yp.length;_++){var v=Yp[_],y=t.getShallow(v);y!=null&&(e[v]=y)}if(e.verticalAlign==null){var b=t.getShallow(`baseline`);b!=null&&(e.verticalAlign=b)}if(!c||!a.disableBox){for(var _=0;_<Xp.length;_++){var v=Xp[_],y=t.getShallow(v);y!=null&&(e[v]=y)}var x=t.getShallow(`borderType`);x!=null&&(e.borderDash=x),(e.backgroundColor===`auto`||e.backgroundColor===`inherit`)&&u&&(e.backgroundColor=u),(e.borderColor===`auto`||e.borderColor===`inherit`)&&u&&(e.borderColor=u)}}function Qp(e,t){var n=t&&t.getModel(`textStyle`);return St([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 $p=_l();function em(e,t,n,r){if(e){var i=$p(e);i.prevValue=i.value,i.value=n;var a=t.normal;i.valueAnimation=a.get(`valueAnimation`),i.valueAnimation&&(i.precision=a.get(`precision`),i.defaultInterpolatedText=r,i.statesModels=t)}}var tm={minMargin:1,textMargin:2},nm=[`textStyle`,`color`],rm=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`padding`,`lineHeight`,`rich`,`width`,`height`,`overflow`],im=new Bs,am=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow(`color`)||(!e&&t?t.get(nm):null)},e.prototype.getFont=function(){return Qp({fontStyle:this.getShallow(`fontStyle`),fontWeight:this.getShallow(`fontWeight`),fontSize:this.getShallow(`fontSize`),fontFamily:this.getShallow(`fontFamily`)},this.ecModel)},e.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow(`verticalAlign`)||this.getShallow(`baseline`)},n=0;n<rm.length;n++)t[rm[n]]=this.getShallow(rm[n]);return im.useStyle(t),im.update(),im.getBoundingRect()},e}(),om=[[`lineWidth`,`width`],[`stroke`,`color`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`type`],[`lineDashOffset`,`dashOffset`],[`lineCap`,`cap`],[`lineJoin`,`join`],[`miterLimit`]],sm=Zt(om),cm=function(){function e(){}return e.prototype.getLineStyle=function(e){return sm(this,e)},e}(),lm=[[`fill`,`color`],[`stroke`,`borderColor`],[`lineWidth`,`borderWidth`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`borderType`],[`lineDashOffset`,`borderDashOffset`],[`lineCap`,`borderCap`],[`lineJoin`,`borderJoin`],[`miterLimit`,`borderMiterLimit`]],um=Zt(lm),dm=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return um(this,e,t)},e}(),fm=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){},e.prototype.mergeOption=function(e,t){Ze(this.option,e,!0)},e.prototype.get=function(e,t){return e==null?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var n=this.option,r=n==null?n:n[e];if(r==null&&!t){var i=this.parentModel;i&&(r=i.getShallow(e))}return r},e.prototype.getModel=function(t,n){var r=t!=null,i=r?this.parsePath(t):null,a=r?this._doGet(i):this.option;return n||=this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(a,n,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var e=this.constructor;return new e(L(this.option))},e.prototype.parsePath=function(e){return typeof e==`string`?e.split(`.`):e},e.prototype.resolveParentPath=function(e){return e},e.prototype.isAnimationEnabled=function(){if(!J.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var r=0;r<e.length&&!(e[r]&&(n=n&&typeof n==`object`?n[e[r]]:null,n==null));r++);return n==null&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}();Ut(fm),qt(fm),nt(fm,cm),nt(fm,dm),nt(fm,$t),nt(fm,am);function pm(e){return e==null?0:e.length||1}function mm(e){return e}var hm=function(){function e(e,t,n,r,i,a){this._old=e,this._new=t,this._oldKeyGetter=n||mm,this._newKeyGetter=r||mm,this.context=i,this._diffModeMultiple=a===`multiple`}return e.prototype.add=function(e){return this._add=e,this},e.prototype.update=function(e){return this._update=e,this},e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},e.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?`_executeMultiple`:`_executeOneToOne`]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},r=Array(e.length),i=Array(t.length);this._initIndexMap(e,null,r,`_oldKeyGetter`),this._initIndexMap(t,n,i,`_newKeyGetter`);for(var a=0;a<e.length;a++){var o=r[a],s=n[o],c=pm(s);if(c>1){var l=s.shift();s.length===1&&(n[o]=s[0]),this._update&&this._update(l,a)}else c===1?(n[o]=null,this._update&&this._update(s,a)):this._remove&&this._remove(a)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},r={},i=[],a=[];this._initIndexMap(e,n,i,`_oldKeyGetter`),this._initIndexMap(t,r,a,`_newKeyGetter`);for(var o=0;o<i.length;o++){var s=i[o],c=n[s],l=r[s],u=pm(c),d=pm(l);if(u>1&&d===1)this._updateManyToOne&&this._updateManyToOne(l,c),r[s]=null;else if(u===1&&d>1)this._updateOneToMany&&this._updateOneToMany(l,c),r[s]=null;else if(u===1&&d===1)this._update&&this._update(l,c),r[s]=null;else if(u>1&&d>1)this._updateManyToMany&&this._updateManyToMany(l,c),r[s]=null;else if(u>1)for(var f=0;f<u;f++)this._remove&&this._remove(c[f]);else this._remove&&this._remove(c)}this._performRestAdd(a,r)},e.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=t[r],a=pm(i);if(a>1)for(var o=0;o<a;o++)this._add&&this._add(i[o]);else a===1&&this._add&&this._add(i);t[r]=null}},e.prototype._initIndexMap=function(e,t,n,r){for(var i=this._diffModeMultiple,a=0;a<e.length;a++){var o=`_ec_`+this[r](e[a],a);if(i||(n[a]=o),t){var s=t[o],c=pm(s);c===0?(t[o]=a,i&&n.push(o)):c===1?t[o]=[s,a]:s.push(a)}}},e}(),gm={Must:1,Might:2,Not:3},_m=_l();function vm(e){_m(e).datasetMap=q()}function ym(e,t,n){var r={},i=xm(t);if(!i||!e)return r;var a=[],o=[],s=t.ecModel,c=_m(s).datasetMap,l=i.uid+`_`+n.seriesLayoutBy,u,d;e=e.slice(),z(e,function(t,n){var i=G(t)?t:e[n]={name:t};i.type===`ordinal`&&u==null&&(u=n,d=m(i)),r[i.name]=[]});var f=c.get(l)||c.set(l,{categoryWayDim:d,valueWayDim:0});z(e,function(e,t){var n=e.name,i=m(e);if(u==null){var s=f.valueWayDim;p(r[n],s,i),p(o,s,i),f.valueWayDim+=i}else if(u===t)p(r[n],0,i),p(a,0,i);else{var s=f.categoryWayDim;p(r[n],s,i),p(o,s,i),f.categoryWayDim+=i}});function p(e,t,n){for(var r=0;r<n;r++)e.push(t+r)}function m(e){var t=e.dimsDef;return t?t.length:1}return a.length&&(r.itemName=a),o.length&&(r.seriesName=o),r}function bm(e,t,n){var r={};if(!xm(e))return r;var i=t.sourceFormat,a=t.dimensionsDefine,o;(i===`objectRows`||i===`keyedColumns`)&&z(a,function(e,t){(G(e)?e.name:e)===`name`&&(o=t)});var s=function(){for(var e={},r={},s=[],c=0,l=Math.min(5,n);c<l;c++){var u=wm(t.data,i,t.seriesLayoutBy,a,t.startIndex,c);s.push(u);var d=u===gm.Not;if(d&&e.v==null&&c!==o&&(e.v=c),(e.n==null||e.n===e.v||!d&&s[e.n]===gm.Not)&&(e.n=c),f(e)&&s[e.n]!==gm.Not)return e;d||(u===gm.Might&&r.v==null&&c!==o&&(r.v=c),(r.n==null||r.n===r.v)&&(r.n=c))}function f(e){return e.v!=null&&e.n!=null}return f(e)?e:f(r)?r:null}();if(s){r.value=[s.v];var c=o??s.n;r.itemName=[c],r.seriesName=[c]}return r}function xm(e){if(!e.get(`data`,!0))return Sl(e.ecModel,`dataset`,{index:e.get(`datasetIndex`,!0),id:e.get(`datasetId`,!0)},xl).models[0]}function Sm(e){return!e.get(`transform`,!0)&&!e.get(`fromTransformResult`,!0)?[]:Sl(e.ecModel,`dataset`,{index:e.get(`fromDatasetIndex`,!0),id:e.get(`fromDatasetId`,!0)},xl).models}function Cm(e,t){return wm(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function wm(e,t,n,r,i,a){var o,s=5;if(pt(e))return gm.Not;var c,l;if(r){var u=r[a];G(u)?(c=u.name,l=u.type):W(u)&&(c=u)}if(l!=null)return l===`ordinal`?gm.Must:gm.Not;if(t===`arrayRows`){var d=e;if(n===`row`){for(var f=d[a],p=0;p<(f||[]).length&&p<s;p++)if((o=b(f[i+p]))!=null)return o}else for(var p=0;p<d.length&&p<s;p++){var m=d[i+p];if(m&&(o=b(m[a]))!=null)return o}}else if(t===`objectRows`){var h=e;if(!c)return gm.Not;for(var p=0;p<h.length&&p<s;p++){var g=h[p];if(g&&(o=b(g[c]))!=null)return o}}else if(t===`keyedColumns`){var _=e;if(!c)return gm.Not;var f=_[c];if(!f||pt(f))return gm.Not;for(var p=0;p<f.length&&p<s;p++)if((o=b(f[p]))!=null)return o}else if(t===`original`)for(var v=e,p=0;p<v.length&&p<s;p++){var g=v[p],y=$c(g);if(!H(y))return gm.Not;if((o=b(y[a]))!=null)return o}function b(e){var t=W(e);if(e!=null&&isFinite(Number(e))&&e!==``)return t?gm.Might:gm.Not;if(t&&e!==`-`)return gm.Must}return gm.Not}var Tm=function(){function e(e){this.data=e.data||(e.sourceFormat===`keyedColumns`?{}:[]),this.sourceFormat=e.sourceFormat||`unknown`,this.seriesLayoutBy=e.seriesLayoutBy||`column`,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var r=t[n];r.type==null&&Cm(this,n)===gm.Must&&(r.type=`ordinal`)}}return e}();function Em(e){return e instanceof Tm}function Dm(e,t,n){n||=Am(e);var r=t.seriesLayoutBy,i=jm(e,n,r,t.sourceHeader,t.dimensions);return new Tm({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:L(t)})}function Om(e){return new Tm({data:e,sourceFormat:pt(e)?$l:Yl})}function km(e){return new Tm({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:L(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function Am(e){var t=eu;if(pt(e))t=$l;else if(H(e)){e.length===0&&(t=Xl);for(var n=0,r=e.length;n<r;n++){var i=e[n];if(i!=null){if(H(i)||pt(i)){t=Xl;break}if(G(i)){t=Zl;break}}}}else if(G(e)){for(var a in e)if(Mt(e,a)&&rt(e[a])){t=Ql;break}}return t}function jm(e,t,n,r,i){var a,o;if(!e)return{dimensionsDefine:Nm(i),startIndex:o,dimensionsDetectedCount:a};if(t===`arrayRows`){var s=e;r===`auto`||r==null?Pm(function(e){e!=null&&e!==`-`&&(W(e)?o??=1:o=0)},n,s,10):o=dt(r)?r:+!!r,!i&&o===1&&(i=[],Pm(function(e,t){i[t]=e==null?``:e+``},n,s,1/0)),a=i?i.length:n===`row`?s.length:s[0]?s[0].length:null}else if(t===`objectRows`)i||=Mm(e);else if(t===`keyedColumns`)i||(i=[],z(e,function(e,t){i.push(t)}));else if(t===`original`){var c=$c(e[0]);a=H(c)&&c.length||1}return{startIndex:o,dimensionsDefine:Nm(i),dimensionsDetectedCount:a}}function Mm(e){for(var t=0,n;t<e.length&&!(n=e[t++]););if(n)return st(n)}function Nm(e){if(e){var t=q();return B(e,function(e,n){e=G(e)?e:{name:e};var r={name:e.name,displayName:e.displayName,type:e.type};if(r.name==null)return r;r.name+=``,r.displayName??=r.name;var i=t.get(r.name);return i?r.name+=`-`+i.count++:t.set(r.name,{count:1}),r})}}function Pm(e,t,n,r){if(t===`row`)for(var i=0;i<n.length&&i<r;i++)e(n[i]?n[i][0]:null,i);else for(var a=n[0]||[],i=0;i<a.length&&i<r;i++)e(a[i],i)}function Fm(e){var t=e.sourceFormat;return t===`objectRows`||t===`keyedColumns`}var Im,Lm,Rm,zm,Bm,Vm,Hm=function(){function e(e,t){var n=Em(e)?e:Om(e);this._source=n;var r=this._data=n.data,i=n.sourceFormat;n.seriesLayoutBy,i===`typedArray`&&(this._offset=0,this._dimSize=t,this._data=r),Vm(this,r,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(e,t){},e.prototype.appendData=function(e){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var e;Vm=function(e,i,a){var o=a.sourceFormat,s=a.seriesLayoutBy,c=a.startIndex,l=a.dimensionsDefine,u=Bm[$m(o,s)];R(e,u),o===`typedArray`?(e.getItem=t,e.count=r,e.fillStorage=n):(e.getItem=V(Km(o,s),null,i,c,l),e.count=V(Ym(o,s),null,i,c,l))};var t=function(e,t){e-=this._offset,t||=[];for(var n=this._data,r=this._dimSize,i=r*e,a=0;a<r;a++)t[a]=n[i+a];return t},n=function(e,t,n,r){for(var i=this._data,a=this._dimSize,o=0;o<a;o++){for(var s=r[o],c=s[0]==null?1/0:s[0],l=s[1]==null?-1/0:s[1],u=t-e,d=n[o],f=0;f<u;f++){var p=i[f*a+o];d[e+f]=p,p<c&&(c=p),p>l&&(l=p)}s[0]=c,s[1]=l}},r=function(){return this._data?this._data.length/this._dimSize:0};Bm=(e={},e[Xl+`_`+tu]={pure:!0,appendData:i},e[Xl+`_row`]={pure:!0,appendData:function(){throw Error(`Do not support appendData when set seriesLayoutBy: "row".`)}},e[Zl]={pure:!0,appendData:i},e[Ql]={pure:!0,appendData:function(e){var t=this._data;z(e,function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])})}},e[Yl]={appendData:i},e[$l]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}}(),e}(),Um=function(e){H(e)||Gc(`series.data or dataset.source must be an array.`)};Im={},Im[Xl+`_`+tu]=Um,Im[Xl+`_row`]=Um,Im[Zl]=Um,Im[Ql]=function(e,t){for(var n=0;n<t.length;n++)t[n].name??Gc(`dimension name must not be null/undefined.`)},Im[Yl]=Um;var Wm=function(e,t,n,r){return e[r]},Gm=(Lm={},Lm[Xl+`_`+tu]=function(e,t,n,r){return e[r+t]},Lm[Xl+`_row`]=function(e,t,n,r,i){r+=t;for(var a=i||[],o=e,s=0;s<o.length;s++){var c=o[s];a[s]=c?c[r]:null}return a},Lm[Zl]=Wm,Lm[Ql]=function(e,t,n,r,i){for(var a=i||[],o=0;o<n.length;o++){var s=n[o].name,c=s==null?null:e[s];a[o]=c?c[r]:null}return a},Lm[Yl]=Wm,Lm);function Km(e,t){return Gm[$m(e,t)]}var qm=function(e,t,n){return e.length},Jm=(Rm={},Rm[Xl+`_`+tu]=function(e,t,n){return Math.max(0,e.length-t)},Rm[Xl+`_row`]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},Rm[Zl]=qm,Rm[Ql]=function(e,t,n){var r=n[0].name,i=r==null?null:e[r];return i?i.length:0},Rm[Yl]=qm,Rm);function Ym(e,t){return Jm[$m(e,t)]}var Xm=function(e,t,n){return e[t]},Zm=(zm={},zm[Xl]=Xm,zm[Zl]=function(e,t,n){return e[n]},zm[Ql]=Xm,zm[Yl]=function(e,t,n){var r=$c(e);return r instanceof Array?r[t]:r},zm[$l]=Xm,zm);function Qm(e){return Zm[e]}function $m(e,t){return e===`arrayRows`?e+`_`+t:e}function eh(e,t,n){if(e){var r=e.getRawDataItem(t);if(r!=null){var i=e.getStore(),a=i.getSource().sourceFormat;if(n!=null){var o=e.getDimensionIndex(n),s=i.getDimensionProperty(o);return Qm(a)(r,o,s)}var c=r;return a===`original`&&(c=$c(r)),c}}}var th=function(){function e(e,t){this._encode=e,this._schema=t}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||=this._schema?this._schema.makeOutputDimensionNames():[],this._cachedDimNames},e}();function nh(e,t){var n={},r=n.encode={},i=q(),a=[],o=[],s={};z(e.dimensions,function(t){var n=e.getDimensionInfo(t),c=n.coordDim;if(c){var l=n.coordDimIndex;rh(r,c)[l]=t,n.isExtraCoord||(i.set(c,1),ah(n.type)&&(a[0]=t),rh(s,c)[l]=e.getDimensionIndex(n.name)),n.defaultTooltip&&o.push(t)}Jl.each(function(e,t){var i=rh(r,t),a=n.otherDims[t];a!=null&&a!==!1&&(i[a]=n.name)})});var c=[],l={};i.each(function(e,t){var n=r[t];l[t]=n[0],c=c.concat(n)}),n.dataDimsOnCoord=c,n.dataDimIndicesOnCoord=B(c,function(t){return e.getDimensionInfo(t).storeDimIndex}),n.encodeFirstDimNotExtra=l;var u=r.label;u&&u.length&&(a=u.slice());var d=r.tooltip;return d&&d.length?o=d.slice():o.length||(o=a.slice()),r.defaultedLabel=a,r.defaultedTooltip=o,n.userOutput=new th(s,t),n}function rh(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function ih(e){return e===`category`?`ordinal`:e===`time`?`time`:`float`}function ah(e){return e!==`ordinal`&&e!==`time`}var oh=function(){function e(e){this.otherDims={},e!=null&&R(this,e)}return e}();function sh(e,t){var n=t&&t.type;return n===`ordinal`?e:(n===`time`&&!dt(e)&&e!=null&&e!==`-`&&(e=+Ac(e)),e==null||e===``?NaN:Number(e))}q({number:function(e){return parseFloat(e)},time:function(e){return+Ac(e)},trim:function(e){return W(e)?St(e):e}});var ch={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}};(function(){function e(e,t){dt(t)||Kc(``),this._opFn=ch[e],this._rvalFloat=Fc(t)}return e.prototype.evaluate=function(e){return dt(e)?this._opFn(e,this._rvalFloat):this._opFn(Fc(e),this._rvalFloat)},e})();var lh=function(){function e(e,t){var n=e===`desc`;this._resultLT=n?1:-1,t??=n?`min`:`max`,this._incomparable=t===`min`?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=dt(e)?e:Fc(e),r=dt(t)?t:Fc(t),i=isNaN(n),a=isNaN(r);if(i&&(n=this._incomparable),a&&(r=this._incomparable),i&&a){var o=W(e),s=W(t);o&&(n=s?e:0),s&&(r=o?t:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},e}();(function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=Fc(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n!==this._rvalTypeof&&(n===`number`||this._rvalTypeof===`number`)&&(t=Fc(e)===this._rvalFloat)}return this._isEQ?t:!t},e})();function uh(e){var t=``,n=-1/0,r=-1/0,i=1/0,a=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,a=e.le)),{key:t,g:n,ge:r,l:i,le:a}}function dh(e,t){return t>e.g&&t>=e.ge&&t<e.l&&t<=e.le}var fh=typeof Uint32Array>`u`?Array:Uint32Array,ph=typeof Uint16Array>`u`?Array:Uint16Array,mh=typeof Int32Array>`u`?Array:Int32Array,hh=typeof Float64Array>`u`?Array:Float64Array,gh={float:hh,int:mh,ordinal:Array,number:Array,time:hh},_h;function vh(e){return e>65535?fh:ph}function yh(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function bh(e,t,n,r,i){var a=gh[n||`float`];if(i){var o=e[t],s=o&&o.length;if(s!==r){for(var c=new a(r),l=0;l<s;l++)c[l]=o[l];e[t]=c}}else e[t]=new a(r)}var xh=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=q()}return e.prototype.initData=function(e,t,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=e.getSource(),i=this.defaultDimValueGetter=_h[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],Fm(r),this._dimensions=B(t,function(e){return{type:e.type,property:e.property}}),this._initDataFromProvider(0,e.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(e);if(i!=null){if(r[i].type===t)return i}else i=r.length;return r[i]={type:t},n.set(e,i),this._chunks[i]=new gh[t||`float`](this._rawCount),this._rawExtent[i]=Ol(),i},e.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],r=this._dimensions[e],i=this._rawExtent,a=r.ordinalOffset||0,o=n.length;a===0&&(i[e]=Ol());for(var s=i[e],c=a;c<o;c++){var l=n[c]=t.parseAndCollect(n[c]);isNaN(l)||(s[0]=Math.min(l,s[0]),s[1]=Math.max(l,s[1]))}r.ordinalMeta=t,r.ordinalOffset=o,r.type=`ordinal`},e.prototype.getOrdinalMeta=function(e){return this._dimensions[e].ordinalMeta},e.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},e.prototype.appendData=function(e){var t=this._provider,n=this.count();t.appendData(e);var r=t.count();return t.persistent||(r+=n),n<r&&this._initDataFromProvider(n,r,!0),[n,r]},e.prototype.appendValues=function(e,t){for(var n=this._chunks,r=this._dimensions,i=r.length,a=this._rawExtent,o=this.count(),s=o+Math.max(e.length,t||0),c=0;c<i;c++){var l=r[c];bh(n,c,l.type,s,!0)}for(var u=[],d=o;d<s;d++)for(var f=d-o,p=0;p<i;p++){var l=r[p],m=_h.arrayRows.call(this,e[f]||u,l.property,f,p);n[p][d]=m;var h=a[p];m<h[0]&&(h[0]=m),m>h[1]&&(h[1]=m)}return this._rawCount=this._count=s,{start:o,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var r=this._provider,i=this._chunks,a=this._dimensions,o=a.length,s=this._rawExtent,c=B(a,function(e){return e.property}),l=0;l<o;l++){var u=a[l];s[l]||(s[l]=Ol()),bh(i,l,u.type,t,n)}if(r.fillStorage)r.fillStorage(e,t,i,s);else for(var d=[],f=e;f<t;f++){d=r.getItem(f,d);for(var p=0;p<o;p++){var m=i[p],h=this._dimValueGetter(d,c[p],f,p);m[f]=h;var g=s[p];h<g[0]&&(g[0]=h),h>g[1]&&(g[1]=h)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},e.prototype.getValues=function(e,t){var n=[],r=[];if(t==null){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=e;for(var i=0,a=r.length;i<a;i++)n.push(this.get(r[i],t));return n},e.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},e.prototype.getSum=function(e){var t=this._chunks[e],n=0;if(t)for(var r=0,i=this.count();r<i;r++){var a=this.get(e,r);isNaN(a)||(n+=a)}return n},e.prototype.getMedian=function(e){var t=[];this.each([e],function(e){isNaN(e)||t.push(e)}),bc(t);var n=this.count();return n===0?0:n%2==1?t[(n-1)/2]:(t[n/2]+t[n/2-1])/2},e.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(n!=null&&n<this._count&&n===e)return e;for(var r=0,i=this._count-1;r<=i;){var a=(r+i)/2|0;if(t[a]<e)r=a+1;else if(t[a]>e)i=a-1;else return a}return-1},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,r=this._count;if(n===Array){e=new n(r);for(var i=0;i<r;i++)e[i]=t[i]}else e=new n(t.buffer,0,r)}else{var n=vh(this._rawCount);e=new n(this.count());for(var i=0;i<e.length;i++)e[i]=i}return e},e.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),r=n.count(),i=new(vh(n._rawCount))(r),a=[],o=e.length,s=0,c=e[0],l=n._chunks,u=0;u<r;u++){var d=void 0,f=n.getRawIndex(u);if(o===0)d=t(u);else if(o===1){var p=l[c][f];d=t(p,u)}else{for(var m=0;m<o;m++)a[m]=l[e[m]][f];a[m]=u,d=t.apply(null,a)}d&&(i[s++]=f)}return s<r&&(n._indices=i),n._count=s,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var r=st(e),i=r.length;if(!i)return this;var a=t.count(),o=new(vh(t._rawCount))(a),s=0,c=r[0],l=e[c][0],u=e[c][1],d=t._chunks,f=!1;if(!t._indices){var p=0;if(i===1){for(var m=d[r[0]],h=0;h<n;h++){var g=m[h];(g>=l&&g<=u||isNaN(g))&&(o[s++]=p),p++}f=!0}else if(i===2){for(var m=d[r[0]],_=d[r[1]],v=e[r[1]][0],y=e[r[1]][1],h=0;h<n;h++){var g=m[h],b=_[h];(g>=l&&g<=u||isNaN(g))&&(b>=v&&b<=y||isNaN(b))&&(o[s++]=p),p++}f=!0}}if(!f){if(i===1)for(var h=0;h<a;h++){var x=t.getRawIndex(h),g=d[r[0]][x];(g>=l&&g<=u||isNaN(g))&&(o[s++]=x)}else for(var h=0;h<a;h++){for(var S=!0,x=t.getRawIndex(h),C=0;C<i;C++){var w=r[C],g=d[w][x];(g<e[w][0]||g>e[w][1])&&(S=!1)}S&&(o[s++]=t.getRawIndex(h))}}return s<a&&(t._indices=o),t._count=s,t._extent=[],t._updateGetRawIdx(),t},e.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},e.prototype.modify=function(e,t){this._updateDims(this,e,t)},e.prototype._updateDims=function(e,t,n){for(var r=e._chunks,i=[],a=t.length,o=e.count(),s=[],c=e._rawExtent,l=0;l<t.length;l++)c[t[l]]=Ol();for(var u=0;u<o;u++){for(var d=e.getRawIndex(u),f=0;f<a;f++)s[f]=r[t[f]][d];s[a]=u;var p=n&&n.apply(null,s);if(p!=null){typeof p!=`object`&&(i[0]=p,p=i);for(var l=0;l<p.length;l++){var m=t[l],h=p[l],g=c[m],_=r[m];_&&(_[d]=h),h<g[0]&&(g[0]=h),h>g[1]&&(g[1]=h)}}}},e.prototype.lttbDownSample=function(e,t){var n=this.clone([e],!0),r=n._chunks[e],i=this.count(),a=0,o=Math.floor(1/t),s=this.getRawIndex(0),c,l,u,d=new(vh(this._rawCount))(Math.min((Math.ceil(i/o)+2)*2,i));d[a++]=s;for(var f=1;f<i-1;f+=o){for(var p=Math.min(f+o,i-1),m=Math.min(f+o*2,i),h=(m+p)/2,g=0,_=p;_<m;_++){var v=this.getRawIndex(_),y=r[v];isNaN(y)||(g+=y)}g/=m-p;var b=f,x=Math.min(f+o,i),S=f-1,C=r[s];c=-1,u=b;for(var w=-1,T=0,_=b;_<x;_++){var v=this.getRawIndex(_),y=r[v];isNaN(y)?(T++,w<0&&(w=v)):(l=Math.abs((S-h)*(y-C)-(S-_)*(g-C)),l>c&&(c=l,u=v))}T>0&&T<x-b&&(d[a++]=Math.min(w,u),u=Math.max(w,u)),d[a++]=u,s=u}return d[a++]=this.getRawIndex(i-1),n._count=a,n._indices=d,n.getRawIndex=this._getRawIdx,n},e.prototype.minmaxDownSample=function(e,t){for(var n=this.clone([e],!0),r=n._chunks,i=Math.floor(1/t),a=r[e],o=this.count(),s=new(vh(this._rawCount))(Math.ceil(o/i)*2),c=0,l=0;l<o;l+=i){var u=l,d=a[this.getRawIndex(u)],f=l,p=a[this.getRawIndex(f)],m=i;l+i>o&&(m=o-l);for(var h=0;h<m;h++){var g=a[this.getRawIndex(l+h)];g<d&&(d=g,u=l+h),g>p&&(p=g,f=l+h)}var _=this.getRawIndex(u),v=this.getRawIndex(f);u<f?(s[c++]=_,s[c++]=v):(s[c++]=v,s[c++]=_)}return n._count=c,n._indices=s,n._updateGetRawIdx(),n},e.prototype.downSample=function(e,t,n,r){for(var i=this.clone([e],!0),a=i._chunks,o=[],s=Math.floor(1/t),c=a[e],l=this.count(),u=i._rawExtent[e]=Ol(),d=new(vh(this._rawCount))(Math.ceil(l/s)),f=0,p=0;p<l;p+=s){s>l-p&&(s=l-p,o.length=s);for(var m=0;m<s;m++){var h=this.getRawIndex(p+m);o[m]=c[h]}var g=n(o),_=this.getRawIndex(Math.min(p+r(o,g)||0,l-1));c[_]=g,g<u[0]&&(u[0]=g),g>u[1]&&(u[1]=g),d[f++]=_}return i._count=f,i._indices=d,i._updateGetRawIdx(),i},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,r=this._chunks,i=0,a=this.count();i<a;i++){var o=this.getRawIndex(i);switch(n){case 0:t(i);break;case 1:t(r[e[0]][o],i);break;case 2:t(r[e[0]][o],r[e[1]][o],i);break;default:for(var s=0,c=[];s<n;s++)c[s]=r[e[s]][o];c[s]=i,t.apply(null,c)}}},e.prototype.getDataExtent=function(e,t){var n=this._chunks[e],r=Ol();if(!n)return r;var i=this.count();if(!this._indices&&!t)return this._rawExtent[e].slice();var a=this._extent,o=a[e]||(a[e]={}),s=uh(t),c=s.key,l=o[c];if(l)return l.slice();for(var u=r[0],d=r[1],f=0;f<i;f++){var p=n[this.getRawIndex(f)];(!t||dh(s,p))&&(p<u&&(u=p),p>d&&(d=p))}return o[c]=[u,d]},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][t]);return n},e.prototype.clone=function(t,n){var r=new e,i=this._chunks,a=t&&it(t,function(e,t){return e[t]=!0,e},{});if(a)for(var o=0;o<i.length;o++)r._chunks[o]=a[o]?yh(i[o]):i[o];else r._chunks=i;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},e.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=L(this._extent),e._rawExtent=L(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var r=0;r<n;r++)t[r]=this._indices[r]}else t=new e(this._indices);return t}return null},e.prototype._getRawIdxIdentity=function(e){return e},e.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,r){return sh(e[r],this._dimensions[r])}_h={arrayRows:e,objectRows:function(e,t,n,r){return sh(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(e.value==null?e:e.value);return sh(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}(),Sh=_l(),Ch={float:`f`,int:`i`,ordinal:`o`,number:`n`,time:`t`},wh=function(){function e(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||=Dh(this.source))},e.prototype.getSourceDimensionIndex=function(e){return K(this._dimNameMap.get(e),-1)},e.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},e.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=Fm(this.source),n=!Oh(e),r=``,i=[],a=0,o=0;a<e;a++){var s=void 0,c=void 0,l=void 0,u=this.dimensions[o];if(u&&u.storeDimIndex===a)s=t?u.name:null,c=u.type,l=u.ordinalMeta,o++;else{var d=this.getSourceDimension(a);d&&(s=t?d.name:null,c=d.type)}i.push({property:s,type:c,ordinalMeta:l}),t&&s!=null&&(!u||!u.isCalculationCoord)&&(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+=`$`,r+=Ch[c]||`f`,l&&(r+=l.uid),r+=`$`}var f=this.source;return{dimensions:i,hash:[f.seriesLayoutBy,f.startIndex,r].join(`$$`)}},e.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var r=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===t)i.isCalculationCoord||(r=i.name),n++;else{var a=this.getSourceDimension(t);a&&(r=a.name)}e.push(r)}return e},e.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function Th(e){return e instanceof wh}function Eh(e){for(var t=q(),n=0;n<(e||[]).length;n++){var r=e[n],i=G(r)?r.name:r;i!=null&&t.get(i)==null&&t.set(i,n)}return t}function Dh(e){var t=Sh(e);return t.dimNameMap||=Eh(e.dimensionsDefine)}function Oh(e){return e>30}var kh=G,Ah=B,jh=typeof Int32Array>`u`?Array:Int32Array,Mh=`e\0\0`,Nh=-1,Ph=[`hasItemOption`,`_nameList`,`_idList`,`_invertedIndicesMap`,`_dimSummary`,`userOutput`,`_rawData`,`_dimValueGetter`,`_nameDimIdx`,`_idDimIdx`,`_nameRepeatCount`],Fh=[`_approximateExtent`],Ih,Lh,Rh,zh,Bh,Vh,Hh,Uh=function(){function e(e,t){this.type=`list`,this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=[`cloneShallow`,`downSample`,`minmaxDownSample`,`lttbDownSample`,`map`],this.CHANGABLE_METHODS=[`filterSelf`,`selectRange`],this.DOWNSAMPLE_METHODS=[`downSample`,`minmaxDownSample`,`lttbDownSample`];var n,r=!1;Th(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n||=[`x`,`y`];for(var i={},a=[],o={},s=!1,c={},l=0;l<n.length;l++){var u=n[l],d=W(u)?new oh({name:u}):u instanceof oh?u:new oh(u),f=d.name;d.type=d.type||`float`,d.coordDim||(d.coordDim=f,d.coordDimIndex=0);var p=d.otherDims=d.otherDims||{};a.push(f),i[f]=d,c[f]!=null&&(s=!0),d.createInvertedIndices&&(o[f]=[]),r&&(d.storeDimIndex=l),p.itemName===0&&(this._nameDimIdx=d.storeDimIndex),p.itemId===0&&(this._idDimIdx=d.storeDimIndex)}if(this.dimensions=a,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=t,this._invertedIndicesMap=o,this._dimOmitted){var m=this._dimIdxToName=q();z(a,function(e){m.set(i[e].storeDimIndex,e)})}}return e.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(t==null)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(n!=null)return n;var r=this._schema.getSourceDimension(t);if(r)return r.name},e.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(t!=null)return t;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},e.prototype._recognizeDimIndex=function(e){if(dt(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},e.prototype._getStoreDimIndex=function(e){return this.getDimensionIndex(e)},e.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},e.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(e){return t.hasOwnProperty(e)?t[e]:void 0}:function(e){return t[e]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(t==null)return n.encodeFirstDimNotExtra[e];var r=n.encode[e];return r?r[t]:null},e.prototype.mapDimensionsAll=function(e){return(this._dimSummary.encode[e]||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(e,t,n){var r=this,i;if(e instanceof xh&&(i=e),!i){var a=this.dimensions,o=Em(e)||rt(e)?new Hm(e,a.length):e;i=new xh;var s=Ah(a,function(e){return{type:r._dimInfos[e].type,property:e}});i.initData(o,s,n)}this._store=i,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=nh(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},e.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t&&t.length),r=n.start,i=n.end,a=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var o=r;o<i;o++){var s=o-r;this._nameList[o]=t[s],a&&Hh(this,o)}},e.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var r=this._dimInfos[t[n]];r.ordinalMeta&&e.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==`typedArray`&&!e.fillStorage},e.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,i=this._idList;if(n.getSource().sourceFormat===`original`&&!n.pure)for(var a=[],o=e;o<t;o++){var s=n.getItem(o,a);if(!this.hasItemOption&&el(s)&&(this.hasItemOption=!0),s){var c=s.name;r[o]==null&&c!=null&&(r[o]=ul(c,null));var l=s.id;i[o]==null&&l!=null&&(i[o]=ul(l,null))}}if(this._shouldMakeIdFromName())for(var o=e;o<t;o++)Hh(this,o);Ih(this)}},e.prototype.getApproximateExtent=function(e,t){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e),t)},e.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},e.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},e.prototype.setCalculationInfo=function(e,t){kh(e)?R(this._calculationInfo,e):this._calculationInfo[e]=t},e.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return n==null&&this._nameDimIdx!=null&&(n=Rh(this,this._nameDimIdx,t)),n??=``,n},e.prototype._getCategory=function(e,t){var n=this._store.get(e,t),r=this._store.getOrdinalMeta(e);return r?r.categories[n]:n},e.prototype.getId=function(e){return Lh(this,this.getRawIndex(e))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.get(r.storeDimIndex,t)},e.prototype.getByRawIndex=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.getByRawIndex(r.storeDimIndex,t)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e),null)},e.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},e.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},e.prototype.getValues=function(e,t){var n=this,r=this._store;return H(e)?r.getValues(Ah(e,function(e){return n._getStoreDimIndex(e)}),t):r.getValues(e)},e.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,r=t.length;n<r;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},e.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},e.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},e.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},e.prototype.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e],r=n&&n[t];return r==null||isNaN(r)?Nh:r},e.prototype.each=function(e,t,n){U(e)&&(n=t,t=e,e=[]);var r=n||this,i=Ah(zh(e),this._getStoreDimIndex,this);this._store.each(i,r?V(t,r):t)},e.prototype.filterSelf=function(e,t,n){U(e)&&(n=t,t=e,e=[]);var r=n||this,i=Ah(zh(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?V(t,r):t),this},e.prototype.selectRange=function(e){var t=this,n={},r=st(e),i=[];return z(r,function(r){var a=t._getStoreDimIndex(r);n[a]=e[r],i.push(a)}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(e,t,n){U(e)&&(n=t,t=e,e=[]),n||=this;var r=[];return this.each(e,function(){r.push(t&&t.apply(this,arguments))},n),r},e.prototype.map=function(e,t,n,r){var i=n||r||this,a=Ah(zh(e),this._getStoreDimIndex,this),o=Vh(this);return o._store=this._store.map(a,i?V(t,i):t),o},e.prototype.modify=function(e,t,n,r){var i=n||r||this,a=Ah(zh(e),this._getStoreDimIndex,this);this._store.modify(a,i?V(t,i):t)},e.prototype.downSample=function(e,t,n,r){var i=Vh(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,r),i},e.prototype.minmaxDownSample=function(e,t){var n=Vh(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},e.prototype.lttbDownSample=function(e,t){var n=Vh(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},e.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},e.prototype.getItemModel=function(e){var t=this.hostModel;return new fm(this.getRawDataItem(e),t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new hm(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return Lh(e,t)},function(e){return Lh(t,e)})},e.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},e.prototype.setVisual=function(e,t){this._visual=this._visual||{},kh(e)?R(this._visual,e):this._visual[e]=t},e.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e];return(n&&n[t])??this.getVisual(t)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||=n[e]={};var i=r[t];return i??(i=this.getVisual(t),H(i)?i=i.slice():kh(i)&&(i=R({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,kh(t)?R(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){kh(e)?R(this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?R(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){ql(this.hostModel&&this.hostModel.seriesIndex,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){z(this._graphicEls,function(n,r){n&&e&&e.call(t,n,r)})},e.prototype.cloneShallow=function(t){return t||=new e(this._schema?this._schema:Ah(this.dimensions,this._getDimInfo,this),this.hostModel),Bh(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];U(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(yt(arguments)))})},e.internalField=function(){Ih=function(e){var t=e._invertedIndicesMap;z(t,function(n,r){var i=e._dimInfos[r],a=i.ordinalMeta,o=e._store;if(a){n=t[r]=new jh(a.categories.length);for(var s=0;s<n.length;s++)n[s]=Nh;for(var s=0;s<o.count();s++)n[o.get(i.storeDimIndex,s)]=s}})},Rh=function(e,t,n){return ul(e._getCategory(t,n),null)},Lh=function(e,t){var n=e._idList[t];return n==null&&e._idDimIdx!=null&&(n=Rh(e,e._idDimIdx,t)),n??=Mh+t,n},zh=function(e){return H(e)||(e=e==null?[]:[e]),e},Vh=function(t){var n=new e(t._schema?t._schema:Ah(t.dimensions,t._getDimInfo,t),t.hostModel);return Bh(n,t),n},Bh=function(e,t){z(Ph.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,z(Fh,function(n){e[n]=L(t[n])}),e._calculationInfo=R({},t._calculationInfo)},Hh=function(e,t){var n=e._nameList,r=e._idList,i=e._nameDimIdx,a=e._idDimIdx,o=n[t],s=r[t];if(o==null&&i!=null&&(n[t]=o=Rh(e,i,t)),s==null&&a!=null&&(r[t]=s=Rh(e,a,t)),s==null&&o!=null){var c=e._nameRepeatCount,l=c[o]=(c[o]||0)+1;s=o,l>1&&(s+=`__ec__`+l),r[t]=s}}}(),e}();function Wh(e,t){Em(e)||(e=Om(e)),t||={};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=q(),a=[],o=Gh(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Oh(o),c=r===e.dimensionsDefine,l=c?Dh(e):Eh(r),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,o));for(var d=q(u),f=new mh(o),p=0;p<f.length;p++)f[p]=-1;function m(e){var t=f[e];if(t<0){var n=r[e],i=G(n)?n:{name:n},o=new oh,s=i.name;return s!=null&&l.get(s)!=null&&(o.name=o.displayName=s),i.type!=null&&(o.type=i.type),i.displayName!=null&&(o.displayName=i.displayName),f[e]=a.length,o.storeDimIndex=e,a.push(o),o}return a[t]}if(!s)for(var p=0;p<o;p++)m(p);d.each(function(e,t){var n=Xc(e).slice();if(n.length===1&&!W(n[0])&&n[0]<0)d.set(t,!1);else{var r=d.set(t,[]);z(n,function(e,n){var i=W(e)?l.get(e):e;i!=null&&i<o&&(r[n]=i,g(m(i),t,n))})}});var h=0;z(n,function(e){var t,n,r,i;if(W(e))t=e,i={};else{i=e,t=i.name;var a=i.ordinalMeta;i.ordinalMeta=null,i=R({},i),i.ordinalMeta=a,n=i.dimsDef,r=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var s=d.get(t);if(s!==!1){if(s=Xc(s),!s.length)for(var l=0;l<(n&&n.length||1);l++){for(;h<o&&m(h).coordDim!=null;)h++;h<o&&s.push(h++)}z(s,function(e,a){var o=m(e);if(c&&i.type!=null&&(o.type=i.type),g($e(o,i),t,a),o.name==null&&n){var s=n[a];!G(s)&&(s={name:s}),o.name=o.displayName=s.name,o.defaultTooltip=s.defaultTooltip}r&&$e(o.otherDims,r)})}});function g(e,t,n){Jl.get(t)==null?(e.coordDim=t,e.coordDimIndex=n,i.set(t,!0)):e.otherDims[t]=n}var _=t.generateCoord,v=t.generateCoordCount,y=v!=null;v=_?v||1:0;var b=_||`value`;function x(e){e.name??=e.coordDim}if(s)z(a,function(e){x(e)}),a.sort(function(e,t){return e.storeDimIndex-t.storeDimIndex});else for(var S=0;S<o;S++){var C=m(S);C.coordDim??(C.coordDim=Kh(b,i,y),C.coordDimIndex=0,(!_||v<=0)&&(C.isExtraCoord=!0),v--),x(C),C.type==null&&(Cm(e,S)===gm.Must||C.isExtraCoord&&(C.otherDims.itemName!=null||C.otherDims.seriesName!=null))&&(C.type=`ordinal`)}return zl(a,function(e){return e.name},function(e,t){t>0&&(e.name+=t-1)}),new wh({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function Gh(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return z(t,function(e){var t;G(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))}),i}function Kh(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 qh={},Jh={},Yh=function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(e,t){this._nonSeriesBoxMasterList=n(qh,!0),this._normalMasterList=n(Jh,!1);function n(n,r){var i=[];return z(n,function(n,r){var a=n.create(e,t);i=i.concat(a||[])}),i}},e.prototype.update=function(e,t){z(this._normalMasterList,function(n){n.update&&n.update(e,t)})},e.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},e.register=function(e,t){e===`matrix`||e===`calendar`?qh[e]=t:Jh[e]=t},e.get=function(e){return Jh[e]||qh[e]},e}();function Xh(e){return!!qh[e]}function Zh(e){Qh.set(e.fullType,{getCoord2:void 0}).getCoord2=e.getCoord2}var Qh=q();function $h(e){var t=e.getShallow(`coord`,!0),n=1;if(t==null){var r=Qh.get(e.type);r&&r.getCoord2&&(n=2,t=r.getCoord2(e))}return{coord:t,from:n}}function eg(e,t){var n=e.getShallow(`coordinateSystem`),r=e.getShallow(`coordinateSystemUsage`,!0),i=0;if(n){var a=e.mainType===`series`;r??=a?`data`:`box`,r===`data`?(i=1,a||(i=0)):r===`box`&&(i=2,!a&&!Xh(n)&&(i=0))}return{coordSysType:n,kind:i}}function tg(e){var t=e.targetModel,n=e.coordSysType,r=e.coordSysProvider,i=e.isDefaultDataCoordSys;e.allowNotFound;var a=eg(t,!0),o=a.kind,s=a.coordSysType;if(i&&o!==1&&(o=1,s=n),o===0||s!==n)return 0;var c=r(n,t);return c?(o===1?t.coordinateSystem=c:t.boxCoordinateSystem=c,o):0}var ng=function(){function e(e){this.coordSysDims=[],this.axisMap=q(),this.categoryAxisMap=q(),this.coordSysName=e}return e}();function rg(e){var t=e.get(`coordinateSystem`),n=new ng(t),r=ig[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var ig={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents(`xAxis`,xl).models[0],a=e.getReferringComponents(`yAxis`,xl).models[0];t.coordSysDims=[`x`,`y`],n.set(`x`,i),n.set(`y`,a),ag(i)&&(r.set(`x`,i),t.firstCategoryDimIndex=0),ag(a)&&(r.set(`y`,a),t.firstCategoryDimIndex??=1)},singleAxis:function(e,t,n,r){var i=e.getReferringComponents(`singleAxis`,xl).models[0];t.coordSysDims=[`single`],n.set(`single`,i),ag(i)&&(r.set(`single`,i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents(`polar`,xl).models[0],a=i.findAxisModel(`radiusAxis`),o=i.findAxisModel(`angleAxis`);t.coordSysDims=[`radius`,`angle`],n.set(`radius`,a),n.set(`angle`,o),ag(a)&&(r.set(`radius`,a),t.firstCategoryDimIndex=0),ag(o)&&(r.set(`angle`,o),t.firstCategoryDimIndex??=1)},geo:function(e,t,n,r){t.coordSysDims=[`lng`,`lat`]},parallel:function(e,t,n,r){var i=e.ecModel,a=i.getComponent(`parallel`,e.get(`parallelIndex`)),o=t.coordSysDims=a.dimensions.slice();z(a.parallelAxisIndex,function(e,a){var s=i.getComponent(`parallelAxis`,e),c=o[a];n.set(c,s),ag(s)&&(r.set(c,s),t.firstCategoryDimIndex??=a)})},matrix:function(e,t,n,r){var i=e.getReferringComponents(`matrix`,xl).models[0];t.coordSysDims=[`x`,`y`];var a=i.getDimensionModel(`x`),o=i.getDimensionModel(`y`);n.set(`x`,a),n.set(`y`,o),r.set(`x`,a),r.set(`y`,o)}};function ag(e){return e.get(`type`)===`category`}function og(e,t,n){n||={};var r=n.byIndex,i=n.stackedCoordDimension,a,o,s;sg(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var c=!!(e&&e.get(`stack`)),l,u,d,f,p=!0;function m(e){return e.type!==`ordinal`&&e.type!==`time`}if(z(a,function(e,t){W(e)&&(a[t]=e={name:e}),m(e)||(p=!1)}),z(a,function(e,t){c&&!e.isExtraCoord&&(!r&&!l&&e.ordinalMeta&&(l=e),!u&&m(e)&&(!p||e.coordDim!==`x`&&e.coordDim!==`angle`)&&(!i||i===e.coordDim)&&(u=e))}),u&&!r&&!l&&(r=!0),u){d=`__\0ecstackresult_`+e.id,f=`__\0ecstackedover_`+e.id,l&&(l.createInvertedIndices=!0);var h=u.coordDim,g=u.type,_=0;z(a,function(e){e.coordDim===h&&_++});var v={name:d,coordDim:h,coordDimIndex:_,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:f,coordDim:f,coordDimIndex:_+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(v.storeDimIndex=s.ensureCalculationDimension(f,g),y.storeDimIndex=s.ensureCalculationDimension(d,g)),o.appendCalculationDimension(v),o.appendCalculationDimension(y)):(a.push(v),a.push(y))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:r,stackedOverDimension:f,stackResultDimension:d}}function sg(e){return!Th(e.schema)}function cg(e,t){return!!t&&t===e.getCalculationInfo(`stackedDimension`)}function lg(e,t){return cg(e,t)?e.getCalculationInfo(`stackResultDimension`):t}function ug(e,t){var n=e.get(`coordinateSystem`),r=Yh.get(n),i;return t&&t.coordSysDims&&(i=B(t.coordSysDims,function(e){var n={name:e},r=t.axisMap.get(e);return r&&(n.type=ih(r.get(`type`))),n})),i||=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||[`x`,`y`],i}function dg(e,t,n){var r,i;return n&&z(e,function(e,a){var o=e.coordDim,s=n.categoryAxisMap.get(o);s&&(r??=a,e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),e.otherDims.itemName!=null&&(i=!0)}),!i&&r!=null&&(e[r].otherDims.itemName=0),r}function fg(e,t,n){n||={};var r=t.getSourceManager(),i,a=!1;e?(a=!0,i=Om(e)):(i=r.getSource(),a=i.sourceFormat===Yl);var o=rg(t),s=ug(t,o),c=n.useEncodeDefaulter,l=U(c)?c:c?lt(ym,s,t):null,u={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},d=Wh(i,u),f=dg(d.dimensions,n.createInvertedIndices,o),p=a?null:r.getSharedDataStore(d),m=og(t,{schema:d,store:p}),h=new Uh(d,t);h.setCalculationInfo(m);var g=f!=null&&pg(i)?function(e,t,n,r){return r===f?n:this.defaultDimValueGetter(e,t,n,r)}:null;return h.hasItemOption=!1,h.initData(a?i:p,null,g),h}function pg(e){if(e.sourceFormat===`original`)return!H($c(mg(e.data||[])))}function mg(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var hg=Math.round(Math.random()*10);function gg(e){return[e||``,hg++].join(`_`)}function _g(e){var t={};e.registerSubTypeDefaulter=function(e,n){var r=Bt(e);t[r.main]=n},e.determineSubType=function(n,r){var i=r.type;if(!i){var a=Bt(n).main;e.hasSubTypes(n)&&t[a]&&(i=t[a](r))}return i}}function vg(e,t){e.topologicalTravel=function(e,t,r,i){if(!e.length)return;var a=n(t),o=a.graph,s=a.noEntryList,c={};for(z(e,function(e){c[e]=!0});s.length;){var l=s.pop(),u=o[l],d=!!c[l];d&&(r.call(i,l,u.originalDeps.slice()),delete c[l]),z(u.successor,d?p:f)}z(c,function(){throw Error(``)});function f(e){o[e].entryCount--,o[e].entryCount===0&&s.push(e)}function p(e){c[e]=!0,f(e)}};function n(e){var n={},a=[];return z(e,function(o){var s=r(n,o),c=i(s.originalDeps=t(o),e);s.entryCount=c.length,s.entryCount===0&&a.push(o),z(c,function(e){et(s.predecessor,e)<0&&s.predecessor.push(e);var t=r(n,e);et(t.successor,e)<0&&t.successor.push(o)})}),{graph:n,noEntryList:a}}function r(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}function i(e,t){var n=[];return z(e,function(e){et(t,e)>=0&&n.push(e)}),n}}function yg(e,t){return Ze(Ze({},e,!0),t,!0)}var bg=Math.log(2);function xg(e,t,n,r,i,a){var o=r+`-`+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var c=Math.round(Math.log((1<<s)-1&~i)/bg);return e[n][c]}for(var l=r|1<<n,u=n+1;r&1<<u;)u++;for(var d=0,f=0,p=0;f<s;f++){var m=1<<f;m&i||(d+=(p%2?-1:1)*e[n][f]*xg(e,t-1,u,l,i|m,a),p++)}return a[o]=d,d}function Sg(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=xg(n,8,0,0,0,r);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]??(a[s]=0),a[s]+=((o+s)%2?-1:1)*xg(n,7,+(o===0),1<<o,1<<s,r)/i*t[o];return function(e,t,n){var r=t*a[6]+n*a[7]+1;e[0]=(t*a[0]+n*a[1]+a[2])/r,e[1]=(t*a[3]+n*a[4]+a[5])/r}}}var Cg=`___zrEVENTSAVED`,wg=[];function Tg(e,t,n,r,i){return Dg(wg,t,r,i,!0)&&Dg(e,n,wg[0],wg[1])}function Eg(e,t){e&&n(e),t&&n(t);function n(e){var t=e[Cg];t&&(t.clearMarkers&&t.clearMarkers(),delete e[Cg])}}function Dg(e,t,n,r,i){if(t.getBoundingClientRect&&J.domSupported&&!Ag(t)){var a=t[Cg]||(t[Cg]={}),o=kg(Og(t,a),a,i);if(o)return o(e,n,r),!0}return!1}function Og(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var r=[`left`,`right`],i=[`top`,`bottom`],a=0;a<4;a++){var o=document.createElement(`div`),s=o.style,c=a%2,l=(a>>1)%2;s.cssText=[`position: absolute`,`visibility: hidden`,`padding: 0`,`margin: 0`,`border-width: 0`,`user-select: none`,`width:0`,`height:0`,r[c]+`:0`,i[l]+`:0`,r[1-c]+`:auto`,i[1-l]+`:auto`,``].join(`!important;`),e.appendChild(o),n.push(o)}return t.clearMarkers=function(){z(n,function(e){e.parentNode&&e.parentNode.removeChild(e)})},n}function kg(e,t,n){for(var r=n?`invTrans`:`trans`,i=t[r],a=t.srcCoords,o=[],s=[],c=!0,l=0;l<4;l++){var u=e[l].getBoundingClientRect(),d=2*l,f=u.left,p=u.top;o.push(f,p),c=c&&a&&f===a[d]&&p===a[d+1],s.push(e[l].offsetLeft,e[l].offsetTop)}return c&&i?i:(t.srcCoords=o,t[r]=n?Sg(s,o):Sg(o,s))}function Ag(e){return e.nodeName.toUpperCase()===`CANVAS`}var jg=/([&<>"'])/g,Mg={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`};function Ng(e){return e==null?``:(e+``).replace(jg,function(e,t){return Mg[t]})}var Pg={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:`. `}}}},Fg={time:{month:[`一月`,`二月`,`三月`,`四月`,`五月`,`六月`,`七月`,`八月`,`九月`,`十月`,`十一月`,`十二月`],monthAbbr:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`],dayOfWeek:[`星期日`,`星期一`,`星期二`,`星期三`,`星期四`,`星期五`,`星期六`],dayOfWeekAbbr:[`日`,`一`,`二`,`三`,`四`,`五`,`六`]},legend:{selector:{all:`全选`,inverse:`反选`}},toolbox:{brush:{title:{rect:`矩形选择`,polygon:`圈选`,lineX:`横向选择`,lineY:`纵向选择`,keep:`保持选择`,clear:`清除选择`}},dataView:{title:`数据视图`,lang:[`数据视图`,`关闭`,`刷新`]},dataZoom:{title:{zoom:`区域缩放`,back:`区域缩放还原`}},magicType:{title:{line:`切换为折线图`,bar:`切换为柱状图`,stack:`切换为堆叠`,tiled:`切换为平铺`}},restore:{title:`还原`},saveAsImage:{title:`保存为图片`,lang:[`右键另存为图片`]}},series:{typeNames:{pie:`饼图`,bar:`柱状图`,line:`折线图`,scatter:`散点图`,effectScatter:`涟漪散点图`,radar:`雷达图`,tree:`树图`,treemap:`矩形树图`,boxplot:`箱型图`,candlestick:`K线图`,k:`K线图`,heatmap:`热力图`,map:`地图`,parallel:`平行坐标图`,lines:`线图`,graph:`关系图`,sankey:`桑基图`,funnel:`漏斗图`,gauge:`仪表盘图`,pictorialBar:`象形柱图`,themeRiver:`主题河流图`,sunburst:`旭日图`,custom:`自定义图表`,chart:`图表`}},aria:{general:{withTitle:`这是一个关于“{title}”的图表。`,withoutTitle:`这是一个图表,`},series:{single:{prefix:``,withName:`图表类型是{seriesType},表示{seriesName}。`,withoutName:`图表类型是{seriesType}。`},multiple:{prefix:`它由{seriesCount}个图表系列组成。`,withName:`第{seriesId}个系列是一个表示{seriesName}的{seriesType},`,withoutName:`第{seriesId}个系列是一个{seriesType},`,separator:{middle:`;`,end:`。`}}},data:{allData:`其数据是——`,partialData:`其中,前{displayCnt}项是——`,withName:`{name}的数据是{value}`,withoutName:`{value}`,separator:{middle:`,`,end:``}}}},Ig=`ZH`,Lg=`EN`,Rg=Lg,zg={},Bg={},Vg=J.domSupported?function(){return(document.documentElement.lang||navigator.language||navigator.browserLanguage||Rg).toUpperCase().indexOf(Ig)>-1?Ig:Rg}():Rg;function Hg(e,t){e=e.toUpperCase(),Bg[e]=new fm(t),zg[e]=t}function Ug(e){if(W(e)){var t=zg[e.toUpperCase()]||{};return e===Ig||e===Lg?L(t):Ze(L(t),L(zg[Rg]),!1)}return Ze(L(e),L(zg[Rg]),!1)}function Wg(e){return Bg[e]}function Gg(){return Bg[Rg]}Hg(Lg,Pg),Hg(Ig,Fg);var Kg=null;function qg(){return Kg}function Jg(e,t){var n=qg(),r=t.breakOption,i=t.breakParsed;return!i&&n&&(i=n.parseAxisBreakOption(r,e)),i}function Yg(e){var t=e.brk;return t?t.breaks:[]}function Xg(e){var t=e.brk;return t?t.hasBreaks():!1}var Zg=1e3,Qg=Zg*60,$g=Qg*60,e_=$g*24,t_=e_*365,n_={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})/},r_={year:`{yyyy}`,month:`{MMM}`,day:`{d}`,hour:`{HH}:{mm}`,minute:`{HH}:{mm}`,second:`{HH}:{mm}:{ss}`,millisecond:`{HH}:{mm}:{ss} {SSS}`},i_=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}`,a_=`{yyyy}-{MM}-{dd}`,o_={year:`{yyyy}`,month:`{yyyy}-{MM}`,day:a_,hour:a_+` `+r_.hour,minute:a_+` `+r_.minute,second:a_+` `+r_.second,millisecond:i_},s_=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`],c_=[`year`,`half-year`,`quarter`,`month`,`week`,`half-week`,`day`,`half-day`,`quarter-day`,`hour`,`minute`,`second`,`millisecond`];function l_(e){return!W(e)&&!U(e)?u_(e):e}function u_(e){e||={};var t={},n=!0;return z(s_,function(t){n&&=e[t]==null}),z(s_,function(r,i){var a=e[r];t[r]={};for(var o=null,s=i;s>=0;s--){var c=s_[s],l=G(a)&&!H(a)?a[c]:a,u=void 0;H(l)?(u=l.slice(),o=u[0]||``):W(l)?(o=l,u=[o]):(o==null?o=r_[r]:n_[c].test(o)||(o=t[c][c][0]+` `+o),u=[o],n&&(u[1]=`{primary|`+o+`}`)),t[r][c]=u}}),t}function d_(e,t){return e+=``,`0000`.substr(0,t-e.length)+e}function f_(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 p_(e){return e===f_(e)}function m_(e){switch(e){case`year`:case`month`:return`day`;case`millisecond`:return`millisecond`;default:return`second`}}function h_(e,t,n,r){var i=Ac(e),a=i[y_(n)](),o=i[b_(n)]()+1,s=Math.floor((o-1)/3)+1,c=i[x_(n)](),l=i[`get`+(n?`UTC`:``)+`Day`](),u=i[S_(n)](),d=(u-1)%12+1,f=i[C_(n)](),p=i[w_(n)](),m=i[T_(n)](),h=u>=12?`pm`:`am`,g=h.toUpperCase(),_=(r instanceof fm?r:Wg(r||Vg)||Gg()).getModel(`time`),v=_.get(`month`),y=_.get(`monthAbbr`),b=_.get(`dayOfWeek`),x=_.get(`dayOfWeekAbbr`);return(t||``).replace(/{a}/g,h+``).replace(/{A}/g,g+``).replace(/{yyyy}/g,a+``).replace(/{yy}/g,d_(a%100+``,2)).replace(/{Q}/g,s+``).replace(/{MMMM}/g,v[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,d_(o,2)).replace(/{M}/g,o+``).replace(/{dd}/g,d_(c,2)).replace(/{d}/g,c+``).replace(/{eeee}/g,b[l]).replace(/{ee}/g,x[l]).replace(/{e}/g,l+``).replace(/{HH}/g,d_(u,2)).replace(/{H}/g,u+``).replace(/{hh}/g,d_(d+``,2)).replace(/{h}/g,d+``).replace(/{mm}/g,d_(f,2)).replace(/{m}/g,f+``).replace(/{ss}/g,d_(p,2)).replace(/{s}/g,p+``).replace(/{SSS}/g,d_(m,3)).replace(/{S}/g,m+``)}function g_(e,t,n,r,i){var a=null;if(W(n))a=n;else if(U(n)){var o={time:e.time,level:e.time?e.time.level:0},s=qg();s&&s.makeAxisLabelFormatterParamBreak(o,e.break),a=n(e.value,t,o)}else{var c=e.time;if(c){var l=n[c.lowerTimeUnit][c.upperTimeUnit];a=l[Math.min(c.level,l.length-1)]||``}else{var u=__(e.value,i);a=n[u][u][0]}}return h_(new Date(e.value),a,i,r)}function __(e,t){var n=Ac(e),r=n[b_(t)]()+1,i=n[x_(t)](),a=n[S_(t)](),o=n[C_(t)](),s=n[w_(t)](),c=n[T_(t)]()===0,l=c&&s===0,u=l&&o===0,d=u&&a===0,f=d&&i===1;return f&&r===1?`year`:f?`month`:d?`day`:u?`hour`:l?`minute`:c?`second`:`millisecond`}function v_(e,t,n){switch(t){case`year`:e[D_(n)](0);case`month`:e[O_(n)](1);case`day`:e[k_(n)](0);case`hour`:e[A_(n)](0);case`minute`:e[j_(n)](0);case`second`:e[M_(n)](0)}return e}function y_(e){return e?`getUTCFullYear`:`getFullYear`}function b_(e){return e?`getUTCMonth`:`getMonth`}function x_(e){return e?`getUTCDate`:`getDate`}function S_(e){return e?`getUTCHours`:`getHours`}function C_(e){return e?`getUTCMinutes`:`getMinutes`}function w_(e){return e?`getUTCSeconds`:`getSeconds`}function T_(e){return e?`getUTCMilliseconds`:`getMilliseconds`}function E_(e){return e?`setUTCFullYear`:`setFullYear`}function D_(e){return e?`setUTCMonth`:`setMonth`}function O_(e){return e?`setUTCDate`:`setDate`}function k_(e){return e?`setUTCHours`:`setHours`}function A_(e){return e?`setUTCMinutes`:`setMinutes`}function j_(e){return e?`setUTCSeconds`:`setSeconds`}function M_(e){return e?`setUTCMilliseconds`:`setMilliseconds`}function N_(e){if(!Ic(e))return W(e)?e:`-`;var t=(e+``).split(`.`);return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,`$1,`)+(t.length>1?`.`+t[1]:``)}function P_(e,t){return e=(e||``).toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var F_=bt;function I_(e,t,n){var r=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}`;function i(e){return e&&St(e)?e:`-`}function a(e){return Bc(e)}var o=t===`time`,s=e instanceof Date;if(o||s){var c=o?Ac(e):e;if(!isNaN(+c))return h_(c,r,n);if(s)return`-`}if(t===`ordinal`)return ut(e)?i(e):dt(e)&&a(e)?e+``:`-`;var l=Fc(e);return a(l)?N_(l):ut(e)?i(e):typeof e==`boolean`?e+``:`-`}var L_=[`a`,`b`,`c`,`d`,`e`,`f`,`g`],R_=function(e,t){return`{`+e+(t??``)+`}`};function z_(e,t,n){H(t)||(t=[t]);var r=t.length;if(!r)return``;for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=L_[a];e=e.replace(R_(o),R_(o,0))}for(var s=0;s<r;s++)for(var c=0;c<i.length;c++){var l=t[s][i[c]];e=e.replace(R_(L_[c],s),n?Ng(l):l)}return e}function B_(e,t){var n=W(e)?{color:e,extraCssText:t}:e||{},r=n.color,i=n.type;t=n.extraCssText;var a=n.renderMode||`html`;return r?a===`html`?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:`+Ng(r)+`;`+(t||``)+`"></span>`:`<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:`+Ng(r)+`;`+(t||``)+`"></span>`:{renderMode:a,content:`{`+(n.markerId||`markerX`)+`|} `,style:i===`subItem`?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:``}function V_(e,t){return t||=`transparent`,W(e)?e:G(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}var H_=z,U_=[`left`,`right`,`top`,`bottom`,`width`,`height`],W_=[[`width`,`left`,`right`],[`height`,`top`,`bottom`]];function G_(e,t,n,r,i){var a=0,o=0;r??=1/0,i??=1/0;var s=0;t.eachChild(function(c,l){var u=c.getBoundingRect(),d=t.childAt(l+1),f=d&&d.getBoundingRect(),p,m;if(e===`horizontal`){var h=u.width+(f?-f.x+u.x:0);p=a+h,p>r||c.newline?(a=0,p=h,o+=s+n,s=u.height):s=Math.max(s,u.height)}else{var g=u.height+(f?-f.y+u.y:0);m=o+g,m>i||c.newline?(a+=s+n,o=0,m=g,s=u.width):s=Math.max(s,u.width)}c.newline||(c.x=a,c.y=o,c.markRedraw(),e===`horizontal`?a=p+n:o=m+n)})}var K_=G_;lt(G_,`vertical`),lt(G_,`horizontal`);function q_(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 J_(e,t){var n=Q_(e,t,{enableLayoutOnlyByCenter:!0}),r=e.getBoxLayoutParams(),i,a;if(n.type===Z_.point)a=n.refPoint,i=X_(r,{width:t.getWidth(),height:t.getHeight()});else{var o=e.get(`center`),s=H(o)?o:[o,o];i=X_(r,n.refContainer),a=n.boxCoordFrom===2?n.refPoint:[hc(s[0],i.width)+i.x,hc(s[1],i.height)+i.y]}return{viewRect:i,center:a}}function Y_(e,t){var n=J_(e,t),r=n.viewRect,i=n.center,a=e.get(`radius`);H(a)||(a=[0,a]);var o=hc(r.width,t.getWidth()),s=hc(r.height,t.getHeight()),c=Math.min(o,s),l=hc(a[0],c/2),u=hc(a[1],c/2);return{cx:i[0],cy:i[1],r0:l,r:u,viewRect:r}}function X_(e,t,n){n=F_(n||0);var r=t.width,i=t.height,a=hc(e.left,r),o=hc(e.top,i),s=hc(e.right,r),c=hc(e.bottom,i),l=hc(e.width,r),u=hc(e.height,i),d=n[2]+n[0],f=n[1]+n[3],p=e.aspect;switch(isNaN(l)&&(l=r-s-f-a),isNaN(u)&&(u=i-c-d-o),p!=null&&(isNaN(l)&&isNaN(u)&&(p>r/i?l=r*.8:u=i*.8),isNaN(l)&&(l=p*u),isNaN(u)&&(u=l/p)),isNaN(a)&&(a=r-s-l-f),isNaN(o)&&(o=i-c-u-d),e.left||e.right){case`center`:a=r/2-l/2-n[3];break;case`right`:a=r-l-f}switch(e.top||e.bottom){case`middle`:case`center`:o=i/2-u/2-n[0];break;case`bottom`:o=i-u-d}a||=0,o||=0,isNaN(l)&&(l=r-f-a-(s||0)),isNaN(u)&&(u=i-d-o-(c||0));var m=new X((t.x||0)+a+n[3],(t.y||0)+o+n[0],l,u);return m.margin=n,m}var Z_={rect:1,point:2};function Q_(e,t,n){var r,i,a,o=e.boxCoordinateSystem,s;if(o){var c=$h(e),l=c.coord,u=c.from;if(o.dataToLayout){a=Z_.rect,s=u;var d=o.dataToLayout(l);r=d.contentRect||d.rect}else n&&n.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=Z_.point,s=u,i=o.dataToPoint(l))}return a??=Z_.rect,a===Z_.rect&&(r||={x:0,y:0,width:t.getWidth(),height:t.getHeight()},i=[r.x+r.width/2,r.y+r.height/2]),{type:a,refContainer:r,refPoint:i,boxCoordFrom:s}}function $_(e,t,n,r,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],c=i&&i.boundingMode||`all`;if(a||=e,a.x=e.x,a.y=e.y,!o&&!s)return!1;var l;if(c===`raw`)l=e.type===`group`?new X(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(l=e.getBoundingRect(),e.needLocalTransform()){var u=e.getLocalTransform();l=l.clone(),l.applyTransform(u)}var d=X_($e({width:l.width,height:l.height},t),n,r),f=o?d.x-l.x:0,p=s?d.y-l.y:0;return c===`raw`?(a.x=f,a.y=p):(a.x+=f,a.y+=p),a===e&&e.markRedraw(),!0}function ev(e){var t=e.layoutMode||e.constructor.layoutMode;return G(t)?t:t?{type:t}:null}function tv(e,t,n){var r=n&&n.ignoreSize;!H(r)&&(r=[r,r]);var i=o(W_[0],0),a=o(W_[1],1);c(W_[0],e,i),c(W_[1],e,a);function o(n,i){var a={},o=0,c={},l=0,u=2;if(H_(n,function(t){c[t]=e[t]}),H_(n,function(e){Mt(t,e)&&(a[e]=c[e]=t[e]),s(a,e)&&o++,s(c,e)&&l++}),r[i])return s(t,n[1])?c[n[2]]=null:s(t,n[2])&&(c[n[1]]=null),c;if(l===u||!o)return c;if(o>=u)return a;for(var d=0;d<n.length;d++){var f=n[d];if(!Mt(a,f)&&Mt(e,f)){a[f]=e[f];break}}return a}function s(e,t){return e[t]!=null&&e[t]!==`auto`}function c(e,t,n){H_(e,function(e){t[e]=n[e]})}}function nv(e){return rv({},e)}function rv(e,t){return t&&e&&H_(U_,function(n){Mt(t,n)&&(e[n]=t[n])}),e}var iv=_l(),av=function(e){I(t,e);function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.uid=gg(`ec_cpt_model`),i}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=ev(this),r=n?nv(e):{};Ze(e,t.getTheme().get(this.mainType)),Ze(e,this.getDefaultOption()),n&&tv(e,r,n)},t.prototype.mergeOption=function(e,t){Ze(this.option,e,!0);var n=ev(this);n&&tv(this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!Ht(e))return e.defaultOption;var t=iv(this);if(!t.defaultOption){for(var n=[],r=e;r;){var i=r.prototype.defaultOption;i&&n.push(i),r=r.superClass}for(var a={},o=n.length-1;o>=0;o--)a=Ze(a,n[o],!0);t.defaultOption=a}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+`Index`,r=e+`Id`;return Sl(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){return q_(this,!1)},t.prototype.getZLevelKey=function(){return``},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type=`component`,e.id=``,e.name=``,e.mainType=``,e.subType=``,e.componentIndex=0}(),t}(fm);Gt(av,fm),Xt(av),_g(av),vg(av,ov);function ov(e){var t=[];return z(av.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=B(t,function(e){return Bt(e).main}),e!==`dataset`&&et(t,`dataset`)<=0&&t.unshift(`dataset`),t}var sv=_l(),cv=_l(),lv=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var r=Xc(this.get(`color`,!0)),i=this.get(`colorLayer`,!0);return fv(this,sv,r,i,e,t,n)},e.prototype.clearColorPalette=function(){pv(this,sv)},e}();function uv(e,t,n,r){return fv(e,cv,Xc(e.get([`aria`,`decal`,`decals`])),null,t,n,r)}function dv(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 fv(e,t,n,r,i,a,o){a||=e;var s=t(a),c=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(i))return l[i];var u=o==null||!r?n:dv(r,o);if(u||=n,u&&u.length){var d=u[c];return i&&(l[i]=d),s.paletteIdx=(c+1)%u.length,d}}function pv(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var mv=/\{@(.+?)\}/g,hv=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),r=this.getRawValue(e,t),i=n.getRawIndex(e),a=n.getName(e),o=n.getRawDataItem(e),s=n.getItemVisual(e,`style`),c=s&&s[n.getItemVisual(e,`drawType`)||`fill`],l=s&&s.stroke,u=this.mainType,d=u===`series`,f=n.userOutput&&n.userOutput.get();return{componentType:u,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:i,data:o,dataType:t,value:r,color:c,borderColor:l,dimensionNames:f?f.fullDimensions:null,encode:f?f.encode:null,$vars:[`seriesName`,`name`,`value`]}},e.prototype.getFormattedLabel=function(e,t,n,r,i,a){t||=`normal`;var o=this.getData(n),s=this.getDataParams(e,n);if(a&&(s.value=a.interpolatedValue),r!=null&&H(s.value)&&(s.value=s.value[r]),i||=o.getItemModel(e).get(t===`normal`?[`label`,`formatter`]:[t,`label`,`formatter`]),U(i))return s.status=t,s.dimensionIndex=r,i(s);if(W(i))return z_(i,s).replace(mv,function(t,n){var r=n.length,i=n;i.charAt(0)===`[`&&i.charAt(r-1)===`]`&&(i=+i.slice(1,r-1));var s=eh(o,e,i);if(a&&H(a.interpolatedValue)){var c=o.getDimensionIndex(i);c>=0&&(s=a.interpolatedValue[c])}return s==null?``:s+``})},e.prototype.getRawValue=function(e,t){return eh(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function gv(e){var t,n;return G(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function _v(e){return new vv(e)}var vv=function(){function e(e){e||={},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t=this._upstream,n=e&&e.skip;if(this._dirty&&t){var r=this.context;r.data=r.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var a=l(this._modBy),o=this._modDataCount||0,s=l(e&&e.modBy),c=e&&e.modDataCount||0;(a!==s||o!==c)&&(i=`reset`);function l(e){return!(e>=1)&&(e=1),e}var u;(this._dirty||i===`reset`)&&(this._dirty=!1,u=this._doReset(n)),this._modBy=s,this._modDataCount=c;var d=e&&e.step;if(this._dueEnd=t?t._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,p=Math.min(d==null?1/0:this._dueIndex+d,this._dueEnd);if(!n&&(u||f<p)){var m=this._progress;if(H(m))for(var h=0;h<m.length;h++)this._doProgress(m[h],f,p,s,c);else this._doProgress(m,f,p,s,c)}this._dueIndex=p;var g=this._settedOutputEnd==null?p:this._settedOutputEnd;this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd==null?this._dueEnd:this._settedOutputEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(e,t,n,r,i){yv.reset(t,n,r,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:yv.next},this.context)},e.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var t,n;!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(n=t.forceFirstProgress,t=t.progress),H(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},e.prototype.dispose=function(){this._disposed||=(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},e}(),yv=function(){var e,t,n,r,i,a={reset:function(c,l,u,d){t=c,e=l,n=u,r=d,i=Math.ceil(r/n),a.next=n>1&&r>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var a=t%i*n+Math.ceil(t/i),o=t>=e?null:a<r?a:t;return t++,o}}(),bv=function(){function e(){}return e.prototype.getRawData=function(){throw Error(`not supported`)},e.prototype.getRawDataItem=function(e){throw Error(`not supported`)},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return sh(e,t)},e}();function xv(e,t){var n=new bv,r=e.data,i=n.sourceFormat=e.sourceFormat,a=e.startIndex;e.seriesLayoutBy!==`column`&&Kc(``);var o=[],s={},c=e.dimensionsDefine;if(c)z(c,function(e,t){var n=e.name,r={index:t,name:n,displayName:e.displayName};o.push(r),n!=null&&(Mt(s,n)&&Kc(``),s[n]=r)});else for(var l=0;l<e.dimensionsDetectedCount;l++)o.push({index:l});var u=Km(i,tu);t.__isBuiltIn&&(n.getRawDataItem=function(e){return u(r,a,o,e)},n.getRawData=V(Sv,null,e)),n.cloneRawData=V(Cv,null,e),n.count=V(Ym(i,tu),null,r,a,o);var d=Qm(i);n.retrieveValue=function(e,t){return f(u(r,a,o,e),t)};var f=n.retrieveValueFromItem=function(e,t){if(e!=null){var n=o[t];if(n)return d(e,t,n.name)}};return n.getDimensionInfo=V(wv,null,o,s),n.cloneAllDimensionInfo=V(Tv,null,o),n}function Sv(e){var t=e.sourceFormat;return Av(t)||Kc(``),e.data}function Cv(e){var t=e.sourceFormat,n=e.data;if(Av(t)||Kc(``),t===`arrayRows`){for(var r=[],i=0,a=n.length;i<a;i++)r.push(n[i].slice());return r}if(t===`objectRows`){for(var r=[],i=0,a=n.length;i<a;i++)r.push(R({},n[i]));return r}}function wv(e,t,n){if(n!=null){if(dt(n)||!isNaN(n)&&!Mt(t,n))return e[n];if(Mt(t,n))return t[n]}}function Tv(e){return L(e)}var Ev=q();function Dv(e){e=L(e);var t=e.type,n=``;t||Kc(n);var r=t.split(`:`);r.length!==2&&Kc(n);var i=!1;r[0]===`echarts`&&(t=r[1],i=!0),e.__isBuiltIn=i,Ev.set(t,e)}function Ov(e,t,n){var r=Xc(e),i=r.length;i||Kc(``);for(var a=0,o=i;a<o;a++){var s=r[a];t=kv(s,t,n,i===1?null:a),a!==o-1&&(t.length=Math.max(t.length,1))}return t}function kv(e,t,n,r){var i=``;t.length||Kc(i),G(e)||Kc(i);var a=e.type,o=Ev.get(a);o||Kc(i);var s=B(t,function(e){return xv(e,o)});return B(Xc(o.transform({upstream:s[0],upstreamList:s,config:L(e.config)})),function(e,n){var r=``;G(e)||Kc(r),e.data||Kc(r),Av(Am(e.data))||Kc(r);var i,a=t[0];if(a&&n===0&&!e.dimensions){var o=a.startIndex;o&&(e.data=a.data.slice(0,o).concat(e.data)),i={seriesLayoutBy:tu,sourceHeader:o,dimensions:a.metaRawOption.dimensions}}else i={seriesLayoutBy:tu,sourceHeader:0,dimensions:e.dimensions};return Dm(e.data,i,null)})}function Av(e){return e===`arrayRows`||e===`objectRows`}var jv=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,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 e=this._sourceHost,t=this._getUpstreamSourceManagers(),n=!!t.length,r,i;if(Nv(e)){var a=e,o=void 0,s=void 0,c=void 0;if(n){var l=t[0];l.prepareSource(),c=l.getSource(),o=c.data,s=c.sourceFormat,i=[l._getVersionSign()]}else o=a.get(`data`,!0),s=pt(o)?$l:Yl,i=[];var u=this._getSourceMetaRawOption()||{},d=c&&c.metaRawOption||{},f=K(u.seriesLayoutBy,d.seriesLayoutBy)||null,p=K(u.sourceHeader,d.sourceHeader),m=K(u.dimensions,d.dimensions);r=f!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||m?[Dm(o,{seriesLayoutBy:f,sourceHeader:p,dimensions:m},s)]:[]}else{var h=e;if(n){var g=this._applyTransform(t);r=g.sourceList,i=g.upstreamSignList}else r=[Dm(h.get(`source`,!0),this._getSourceMetaRawOption(),null)],i=[]}this._setLocalSource(r,i)},e.prototype._applyTransform=function(e){var t=this._sourceHost,n=t.get(`transform`,!0),r=t.get(`fromTransformResult`,!0);r!=null&&e.length!==1&&Pv(``);var i,a=[],o=[];return z(e,function(e){e.prepareSource();var t=e.getSource(r||0);r!=null&&!t&&Pv(``),a.push(t),o.push(e._getVersionSign())}),n?i=Ov(n,a,{datasetIndex:t.componentIndex}):r!=null&&(i=[km(a[0])]),{sourceList:i,upstreamSignList:o}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},e.prototype.getSource=function(e){e||=0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},e.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},e.prototype._innerGetDataStore=function(e,t,n){var r=0,i=this._storeList,a=i[r];a||=i[r]={};var o=a[n];if(!o){var s=this._getUpstreamSourceManagers()[0];Nv(this._sourceHost)&&s?o=s._innerGetDataStore(e,t,n):(o=new xh,o.initData(new Hm(t,e.length),e)),a[n]=o}return o},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Nv(e)){var t=xm(e);return t?[t.getSourceManager()]:[]}return B(Sm(e),function(e){return e.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,n,r;if(Nv(e))t=e.get(`seriesLayoutBy`,!0),n=e.get(`sourceHeader`,!0),r=e.get(`dimensions`,!0);else if(!this._getUpstreamSourceManagers().length){var i=e;t=i.get(`seriesLayoutBy`,!0),n=i.get(`sourceHeader`,!0),r=i.get(`dimensions`,!0)}return{seriesLayoutBy:t,sourceHeader:n,dimensions:r}},e}();function Mv(e){e.option.transform&&wt(e.option.transform)}function Nv(e){return e.mainType===`series`}function Pv(e){throw Error(e)}var Z={color:{},darkColor:{},size:{}},Fv=Z.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)`};for(var Iv in R(Fv,{primary:Fv.neutral80,secondary:Fv.neutral70,tertiary:Fv.neutral60,quaternary:Fv.neutral50,disabled:Fv.neutral20,border:Fv.neutral30,borderTint:Fv.neutral20,borderShade:Fv.neutral40,background:Fv.neutral05,backgroundTint:`rgba(234,237,245,0.5)`,backgroundTransparent:`rgba(255,255,255,0)`,backgroundShade:Fv.neutral10,shadow:`rgba(0,0,0,0.2)`,shadowTint:`rgba(129,130,136,0.2)`,axisLine:Fv.neutral70,axisLineTint:Fv.neutral40,axisTick:Fv.neutral70,axisTickMinor:Fv.neutral60,axisLabel:Fv.neutral70,axisSplitLine:Fv.neutral15,axisMinorSplitLine:Fv.neutral05}),Fv)if(Fv.hasOwnProperty(Iv)){var Lv=Fv[Iv];Iv===`theme`?Z.darkColor.theme=Fv.theme.slice():Iv===`highlight`?Z.darkColor.highlight=`rgba(255,231,130,0.4)`:Iv.indexOf(`accent`)===0?Z.darkColor[Iv]=Hi(Lv,null,function(e){return e*.5},function(e){return Math.min(1,1.3-e)}):Z.darkColor[Iv]=Hi(Lv,null,function(e){return e*.9},function(e){return 1-e**1.5})}Z.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var Rv=`line-height:1`;function zv(e){var t=e.lineHeight;return t==null?Rv:`line-height:`+Ng(t+``)+`px`}function Bv(e,t){var n=e.color||Z.color.tertiary,r=e.fontSize||12,i=e.fontWeight||`400`,a=e.color||Z.color.secondary,o=e.fontSize||14,s=e.fontWeight||`900`;return t===`html`?{nameStyle:`font-size:`+Ng(r+``)+`px;color:`+Ng(n)+`;font-weight:`+Ng(i+``),valueStyle:`font-size:`+Ng(o+``)+`px;color:`+Ng(a)+`;font-weight:`+Ng(s+``)}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var Vv=[0,10,20,30],Hv=[``,`
20
+ `,`
21
+
22
+ `,`
23
+
24
+
25
+ `];function Uv(e,t){return t.type=e,t}function Wv(e){return e.type===`section`}function Gv(e){return Wv(e)?qv:Jv}function Kv(e){if(Wv(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return z(e.blocks,function(e){var n=Kv(e);n>=t&&(t=n+ +(r&&(!n||Wv(e)&&!e.noHeader)))}),t}return 0}function qv(e,t,n,r){var i=t.noHeader,a=Xv(Kv(t)),o=[],s=t.blocks||[];xt(!s||H(s)),s||=[];var c=e.orderMode;if(t.sortBlocks&&c){s=s.slice();var l={valueAsc:`asc`,valueDesc:`desc`};if(Mt(l,c)){var u=new lh(l[c],null);s.sort(function(e,t){return u.evaluate(e.sortParam,t.sortParam)})}else c===`seriesDesc`&&s.reverse()}z(s,function(n,i){var s=t.valueFormatter,c=Gv(n)(s?R(R({},e),{valueFormatter:s}):e,n,i>0?a.html:0,r);c!=null&&o.push(c)});var d=e.renderMode===`richText`?o.join(a.richText):Zv(r,o.join(``),i?n:a.html);if(i)return d;var f=I_(t.header,`ordinal`,e.useUTC),p=Bv(r,e.renderMode).nameStyle,m=zv(r);return e.renderMode===`richText`?ey(e,f,p)+a.richText+d:Zv(r,`<div style="`+p+`;`+m+`;">`+Ng(f)+`</div>`+d,n)}function Jv(e,t,n,r){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,c=t.name,l=e.useUTC,u=t.valueFormatter||e.valueFormatter||function(e){return e=H(e)?e:[e],B(e,function(e,t){return I_(e,H(p)?p[t]:p,l)})};if(!(a&&o)){var d=s?``:e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||Z.color.secondary,i),f=a?``:I_(c,`ordinal`,l),p=t.valueType,m=o?[]:u(t.value,t.rawDataIndex),h=!s||!a,g=!s&&a,_=Bv(r,i),v=_.nameStyle,y=_.valueStyle;return i===`richText`?(s?``:d)+(a?``:ey(e,f,v))+(o?``:ty(e,m,h,g,y)):Zv(r,(s?``:d)+(a?``:Qv(f,!s,v))+(o?``:$v(m,h,g,y)),n)}}function Yv(e,t,n,r,i,a){if(e)return Gv(e)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,a)}function Xv(e){return{html:Vv[e],richText:Hv[e]}}function Zv(e,t,n){var r=`<div style="clear:both"></div>`,i=`margin: `+n+`px 0 0`,a=zv(e);return`<div style="`+i+`;`+a+`;">`+t+r+`</div>`}function Qv(e,t,n){var r=t?`margin-left:2px`:``;return`<span style="`+n+`;`+r+`">`+Ng(e)+`</span>`}function $v(e,t,n,r){var i=t?`float:right;margin-left:`+(n?`10px`:`20px`):``;return e=H(e)?e:[e],`<span style="`+i+`;`+r+`">`+B(e,function(e){return Ng(e)}).join(`&nbsp;&nbsp;`)+`</span>`}function ey(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function ty(e,t,n,r,i){var a=[i],o=r?10:20;return n&&a.push({padding:[0,0,0,o],align:`right`}),e.markupStyleCreator.wrapRichTextStyle(H(t)?t.join(` `):t,a)}function ny(e,t){var n=e.getData().getItemVisual(t,`style`)[e.visualDrawType];return V_(n)}function ry(e,t){return e.get(`padding`)??(t===`richText`?[8,10]:10)}var iy=function(){function e(){this.richTextStyles={},this._nextStyleNameId=Lc()}return e.prototype._generateStyleName=function(){return`__EC_aUTo_`+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var r=n===`richText`?this._generateStyleName():null,i=B_({color:t,type:e,renderMode:n,markerId:r});return W(i)?i:(this.richTextStyles[r]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};H(t)?z(t,function(e){return R(n,e)}):R(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,`{`+r+`|`+e+`}`},e}();function ay(e){var t=e.series,n=e.dataIndex,r=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll(`defaultedTooltip`),o=a.length,s=t.getRawValue(n),c=H(s),l=ny(t,n),u,d,f,p;if(o>1||c&&!o){var m=oy(s,t,n,a,l);u=m.inlineValues,d=m.inlineValueTypes,f=m.blocks,p=m.inlineValues[0]}else if(o){var h=i.getDimensionInfo(a[0]);p=u=eh(i,n,a[0]),d=h.type}else p=u=c?s[0]:s;var g=dl(t),_=g&&t.name||``,v=i.getName(n),y=r?_:v;return Uv(`section`,{header:_,noHeader:r||!g,sortParam:p,blocks:[Uv(`nameValue`,{markerType:`item`,markerColor:l,name:y,noName:!St(y),value:u,valueType:d,rawDataIndex:i.getRawIndex(n)})].concat(f||[])})}function oy(e,t,n,r,i){var a=t.getData(),o=it(e,function(e,t,n){var r=a.getDimensionInfo(n);return e||=r&&r.tooltip!==!1&&r.displayName!=null},!1),s=[],c=[],l=[];r.length?z(r,function(e){u(eh(a,n,e),e)}):z(e,u);function u(e,t){var n=a.getDimensionInfo(t);n&&n.otherDims.tooltip!==!1&&(o?l.push(Uv(`nameValue`,{markerType:`subItem`,markerColor:i,name:n.displayName,value:e,valueType:n.type})):(s.push(e),c.push(n.type)))}return{inlineValues:s,inlineValueTypes:c,blocks:l}}var sy=_l();function cy(e,t){return e.getName(t)||e.getId(t)}var ly=function(e){I(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=_v({count:fy,reset:py}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(sy(this).sourceManager=new jv(this)).prepareSource();var r=this.getInitialData(e,n);hy(r,this),this.dataTask.context.data=r,sy(this).dataBeforeProcessed=r,uy(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=ev(this),r=n?nv(e):{},i=this.subType;av.hasClass(i)&&(i+=`Series`),Ze(e,t.getTheme().get(this.subType)),Ze(e,this.getDefaultOption()),Zc(e,`label`,[`show`]),this.fillDataTextStyle(e.data),n&&tv(e,r,n)},t.prototype.mergeOption=function(e,t){e=Ze(this.option,e,!0),this.fillDataTextStyle(e.data);var n=ev(this);n&&tv(this.option,e,n);var r=sy(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);hy(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,sy(this).dataBeforeProcessed=i,uy(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!pt(e))for(var t=[`show`],n=0;n<e.length;n++)e[n]&&e[n].label&&Zc(e[n],`label`,t)},t.prototype.getInitialData=function(e,t){},t.prototype.appendData=function(e){this.getRawData().appendData(e.data)},t.prototype.getData=function(e){var t=_y(this);if(t){var n=t.context.data;return e==null||!n.getLinkedData?n:n.getLinkedData(e)}return sy(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var t=_y(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}sy(this).data=e},t.prototype.getEncode=function(){var e=this.get(`encode`,!0);if(e)return q(e)},t.prototype.getSourceManager=function(){return sy(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return sy(this).dataBeforeProcessed},t.prototype.getColorBy=function(){return this.get(`colorBy`)||`series`},t.prototype.isColorBySeries=function(){return this.getColorBy()===`series`},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.indicesOfNearest=function(e,t,n,r){var i=this.getData(),a=this.coordinateSystem,o=a&&a.getAxis(e);if(!a||!o)return[];var s=o.dataToCoord(n);r??=1/0;for(var c=[],l=1/0,u=-1,d=0,f=i.getDimensionIndex(t),p=i.getStore(),m=0,h=p.count();m<h;m++){var g=p.get(f,m),_=s-o.dataToCoord(g),v=Math.abs(_);v<=r&&((v<l||v===l&&_>=0&&u<0)&&(l=v,u=_,d=0),_===u&&(c[d++]=m))}return c.length=d,c},t.prototype.formatTooltip=function(e,t,n){return ay({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(J.node&&!(e&&e.ssr))return!1;var t=this.getShallow(`animation`);return t&&this.getData().count()>this.getShallow(`animationThreshold`)&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var r=this.ecModel,i=lv.prototype.getColorFromPalette.call(this,e,t,n);return i||=r.getColorFromPalette(e,t,n),i},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get(`progressive`)},t.prototype.getProgressiveThreshold=function(){return this.get(`progressiveThreshold`)},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(t);if(r===`series`||n===`all`)this.option.selectedMap={},this._selectedDataIndicesMap={};else for(var a=0;a<e.length;a++){var o=e[a],s=cy(i,o);n[s]=!1,this._selectedDataIndicesMap[s]=-1}}},t.prototype.toggleSelect=function(e,t){for(var n=[],r=0;r<e.length;r++)n[0]=e[r],this.isSelected(e[r],t)?this.unselect(n,t):this.select(n,t)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap===`all`)return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,t=st(e),n=[],r=0;r<t.length;r++){var i=e[t[r]];i>=0&&n.push(i)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(t);return(n===`all`||n[cy(r,e)])&&!r.getItemModel(e).get([`select`,`disabled`])},t.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var e=this.option.universalTransition;return e?e===!0||e&&e.enabled:!1},t.prototype._innerSelect=function(e,t){var n,r,i=this.option,a=i.selectedMode,o=t.length;if(a&&o){if(a===`series`)i.selectedMap=`all`;else if(a===`multiple`){G(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,c=0;c<o;c++){var l=t[c],u=cy(e,l);s[u]=!0,this._selectedDataIndicesMap[u]=e.getRawIndex(l)}}else if(a===`single`||a===!0){var d=t[o-1],u=cy(e,d);i.selectedMap=(n={},n[u]=!0,n),this._selectedDataIndicesMap=(r={},r[u]=e.getRawIndex(d),r)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var t=[];e.hasItemOption&&e.each(function(n){var r=e.getRawDataItem(n);r&&r.selected&&t.push(n)}),t.length>0&&this._innerSelect(e,t)}},t.registerClass=function(e){return av.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type=`series.__base__`,e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol=`circle`,e.visualStyleAccessPath=`itemStyle`,e.visualDrawType=`fill`}(),t}(av);nt(ly,hv),nt(ly,lv),Gt(ly,av);function uy(e){var t=e.name;dl(e)||(e.name=dy(e)||t)}function dy(e){var t=e.getRawData(),n=t.mapDimensionsAll(`seriesName`),r=[];return z(n,function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)}),r.join(` `)}function fy(e){return e.model.getRawData().count()}function py(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),my}function my(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function hy(e,t){z(At(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,lt(gy,t))})}function gy(e,t){var n=_y(e);return n&&n.setOutputEnd((t||this).count()),t}function _y(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 vy=xs.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,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r+a),e.lineTo(n-i,r+a),e.closePath()}}),yy={line:pf,rect:Fs,roundRect:Fs,square:Fs,circle:Id,diamond:xs.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,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r),e.lineTo(n,r+a),e.lineTo(n-i,r),e.closePath()}}),pin:xs.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,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),c=r-a+o+s,l=Math.asin(s/o),u=Math.cos(l)*o,d=Math.sin(l),f=Math.cos(l),p=o*.6,m=o*.7;e.moveTo(n-u,c+s),e.arc(n,c,o,Math.PI-l,Math.PI*2+l),e.bezierCurveTo(n+u-d*p,c+s+f*p,n,r-m,n,r),e.bezierCurveTo(n,r-m,n-u+d*p,c+s+f*p,n-u,c+s),e.closePath()}}),arrow:xs.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,a=t.y,o=r/3*2;e.moveTo(i,a),e.lineTo(i+o,a+n),e.lineTo(i,a+n/4*3),e.lineTo(i-o,a+n),e.lineTo(i,a),e.closePath()}}),triangle:vy},by={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 a=Math.min(n,r);i.x=e,i.y=t,i.width=a,i.height=a},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}},xy={};z(yy,function(e,t){xy[t]=new e});var Sy=xs.extend({type:`symbol`,shape:{symbolType:``,x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=mr(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=xy[r];i||=(r=`rect`,xy[r]),by[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function Cy(e,t){if(this.type!==`image`){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||Z.color.neutral00,n.lineWidth=2):this.shape.symbolType===`line`?n.stroke=e:n.fill=e,this.markRedraw()}}function wy(e,t,n,r,i,a,o){var s=e.indexOf(`empty`)===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var c=e.indexOf(`image://`)===0?tp(e.slice(8),new X(t,n,r,i),o?`center`:`cover`):e.indexOf(`path://`)===0?ep(e.slice(7),{},new X(t,n,r,i),o?`center`:`cover`):new Sy({shape:{symbolType:e,x:t,y:n,width:r,height:i}});return c.__isEmptyBrush=s,c.setColor=Cy,a&&c.setColor(a),c}function Ty(e){return H(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function Ey(e,t){if(e!=null)return H(e)||(e=[e,e]),[hc(e[0],t[0])||0,hc(K(e[1],e[0]),t[1])||0]}var Dy=function(e){I(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(e){return fg(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var t=new Pd,n=wy(`line`,0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);t.add(n),n.setStyle(e.lineStyle);var r=this.getData().getVisual(`symbol`),i=this.getData().getVisual(`symbolRotate`),a=r===`none`?`circle`:r,o=e.itemHeight*.8,s=wy(a,(e.itemWidth-o)/2,(e.itemHeight-o)/2,o,o,e.itemStyle.fill);return t.add(s),s.setStyle(e.itemStyle),s.rotation=(e.iconRotate===`inherit`?i:e.iconRotate||0)*Math.PI/180,s.setOrigin([e.itemWidth/2,e.itemHeight/2]),a.indexOf(`empty`)>-1&&(s.style.stroke=s.style.fill,s.style.fill=Z.color.neutral00,s.style.lineWidth=2),t},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}(ly);function Oy(e,t){var n=e.mapDimensionsAll(`defaultedLabel`),r=n.length;if(r===1){var i=eh(e,t,n[0]);return i==null?null:i+``}if(r){for(var a=[],o=0;o<n.length;o++)a.push(eh(e,t,n[o]));return a.join(` `)}}function ky(e,t){var n=e.mapDimensionsAll(`defaultedLabel`);if(!H(t))return t+``;for(var r=[],i=0;i<n.length;i++){var a=e.getDimensionIndex(n[i]);a>=0&&r.push(t[a])}return r.join(` `)}var Ay=function(e){I(t,e);function t(t,n,r,i){var a=e.call(this)||this;return a.updateData(t,n,r,i),a}return t.prototype._createSymbol=function(e,t,n,r,i,a){this.removeAll();var o=wy(e,-1,-1,2,2,null,a);o.attr({z2:K(i,100),culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),o.drift=jy,this._symbolType=e,this.add(o)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Iu(this.childAt(0))},t.prototype.downplay=function(){Lu(this.childAt(0))},t.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},t.prototype.setDraggable=function(e,t){var n=this.childAt(0);n.draggable=e,n.cursor=!t&&e?`move`:n.cursor},t.prototype.updateData=function(e,n,r,i){this.silent=!1;var a=e.getItemVisual(n,`symbol`)||`circle`,o=e.hostModel,s=t.getSymbolSize(e,n),c=t.getSymbolZ2(e,n),l=a!==this._symbolType,u=i&&i.disableAnimation;if(l){var d=e.getItemVisual(n,`symbolKeepAspect`);this._createSymbol(a,e,n,s,c,d)}else{var f=this.childAt(0);f.silent=!1;var p={scaleX:s[0]/2,scaleY:s[1]/2};u?f.attr(p):Rf(f,p,o,n),Wf(f)}if(this._updateCommon(e,n,s,r,i),l){var f=this.childAt(0);if(!u){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,zf(f,p,o,n)}}u&&this.childAt(0).stopAnimation(`leave`)},t.prototype._updateCommon=function(e,t,n,r,i){var a=this.childAt(0),o=e.hostModel,s,c,l,u,d,f,p,m,h;if(r&&(s=r.emphasisItemStyle,c=r.blurItemStyle,l=r.selectItemStyle,u=r.focus,d=r.blurScope,p=r.labelStatesModels,m=r.hoverScale,h=r.cursorStyle,f=r.emphasisDisabled),!r||e.hasItemOption){var g=r&&r.itemModel?r.itemModel:e.getItemModel(t),_=g.getModel(`emphasis`);s=_.getModel(`itemStyle`).getItemStyle(),l=g.getModel([`select`,`itemStyle`]).getItemStyle(),c=g.getModel([`blur`,`itemStyle`]).getItemStyle(),u=_.get(`focus`),d=_.get(`blurScope`),f=_.get(`disabled`),p=Up(g),m=_.getShallow(`scale`),h=g.getShallow(`cursor`)}var v=e.getItemVisual(t,`symbolRotate`);a.attr(`rotation`,(v||0)*Math.PI/180||0);var y=Ey(e.getItemVisual(t,`symbolOffset`),n);y&&(a.x=y[0],a.y=y[1]),h&&a.attr(`cursor`,h);var b=e.getItemVisual(t,`style`),x=b.fill;if(a instanceof Ds){var S=a.style;a.useStyle(R({image:S.image,x:S.x,y:S.y,width:S.width,height:S.height},b))}else a.__isEmptyBrush?a.useStyle(R({},b)):a.useStyle(b),a.style.decal=null,a.setColor(x,i&&i.symbolInnerColor),a.style.strokeNoScale=!0;var C=e.getItemVisual(t,`liftZ`),w=this._z2;C==null?w!=null&&(a.z2=w,this._z2=null):w??(this._z2=a.z2,a.z2+=C);var T=i&&i.useNameLabel;Hp(a,p,{labelFetcher:o,labelDataIndex:t,defaultText:E,inheritColor:x,defaultOpacity:b.opacity});function E(t){return T?e.getName(t):Oy(e,t)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var D=a.ensureState(`emphasis`);D.style=s,a.ensureState(`select`).style=l,a.ensureState(`blur`).style=c;var O=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;D.scaleX=this._sizeX*O,D.scaleY=this._sizeY*O,this.setSymbolScale(1),td(this,u,d,f)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var r=this.childAt(0),i=Kl(this).dataIndex,a=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var o=r.getTextContent();o&&Vf(o,{style:{opacity:0}},t,{dataIndex:i,removeOpt:a,cb:function(){r.removeTextContent()}})}else r.removeTextContent();Vf(r,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:i,cb:e,removeOpt:a})},t.getSymbolSize=function(e,t){return Ty(e.getItemVisual(t,`symbolSize`))},t.getSymbolZ2=function(e,t){return e.getItemVisual(t,`z2`)},t}(Pd);function jy(e,t){this.parent.drift(e,t)}function My(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 Ny(e){return e!=null&&!G(e)&&(e={isIgnore:e}),e||{}}function Py(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:Up(t),cursorStyle:t.get(`cursor`)}}function Fy(e,t,n,r,i,a,o){var s=new e(t,n,r,i);return s.setPosition(a),t.setItemGraphicEl(n,s),o.add(s),s}var Iy=function(){function e(e){this.group=new Pd,this._SymbolCtor=e||Ay}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=Ny(t);var n=this.group,r=e.hostModel,i=this._data,a=this._SymbolCtor,o=t.disableAnimation,s=this._seriesScope=Py(e),c={disableAnimation:o},l=t.getSymbolPoint||function(t){return e.getItemLayout(t)};i||n.removeAll(),e.diff(i).add(function(r){var i=l(r);My(e,i,r,t)&&Fy(a,e,r,s,c,i,n)}).update(function(u,d){var f=i.getItemGraphicEl(d),p=l(u);if(!My(e,p,u,t))n.remove(f);else{var m=e.getItemVisual(u,`symbol`)||`circle`,h=f&&f.getSymbolType&&f.getSymbolType();if(!f||h&&h!==m)n.remove(f),f=new a(e,u,s,c),f.setPosition(p);else{f.updateData(e,u,s,c);var g={x:p[0],y:p[1]};o?f.attr(g):Rf(f,g,r)}n.add(f),e.setItemGraphicEl(u,f)}}).remove(function(e){var t=i.getItemGraphicEl(e);t&&t.fadeOut(function(){n.remove(t)},r)}).execute(),this._getSymbolPoint=l,this._data=e},e.prototype.updateLayout=function(e){var t=this._data;if(t)for(var n=this,r=t.getStore(),i=0,a=r.count();i<a;i++){var o=t.getItemGraphicEl(i),s=n._getSymbolPoint(i);My(t,s,i,e)?(o||=Fy(n._SymbolCtor,t,i,n._seriesScope,{disableAnimation:!0},s,n.group),o.stopAnimation(),o.setPosition(s),o.markRedraw()):o&&(n.group.remove(o),t.setItemGraphicEl(i,null))}},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Py(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n,r){this._progressiveEls=[],r=Ny(r);function i(e){e.isGroup||(e.incremental=n,e.ensureState(`emphasis`).hoverLayer=2)}for(var a=e.start;a<e.end;a++){var o=t.getItemLayout(a);if(My(t,o,a,r)){var s=new this._SymbolCtor(t,a,this._seriesScope);s.traverse(i),s.setPosition(o),this.group.add(s),t.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},e.prototype.eachRendered=function(e){Ep(this._progressiveEls||this.group,e)},e.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(e){e.fadeOut(function(){t.remove(e)},n.hostModel)}):t.removeAll()},e}();function Ly(e,t,n){var r=e.getBaseAxis(),i=e.getOtherAxis(r),a=Ry(i,n),o=r.dim,s=i.dim,c=t.mapDimension(s),l=t.mapDimension(o),u=+(s===`x`||s===`radius`),d=B(e.dimensions,function(e){return t.mapDimension(e)}),f=!1,p=t.getCalculationInfo(`stackResultDimension`);return cg(t,d[0])&&(f=!0,d[0]=p),cg(t,d[1])&&(f=!0,d[1]=p),{dataDimsForPoint:d,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!f,valueDim:c,baseDim:l,baseDataOffset:u,stackedOverDimension:t.getCalculationInfo(`stackedOverDimension`)}}function Ry(e,t){var n=0,r=e.scale.getExtent();return t===`start`?n=r[0]:t===`end`?n=r[1]:dt(t)&&!isNaN(t)?n=t:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),n}function zy(e,t,n,r){var i=NaN;e.stacked&&(i=n.get(n.getCalculationInfo(`stackedOverDimension`),r)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=n.get(e.baseDim,r),o[1-a]=i,t.dataToPoint(o)}function By(e,t){return!isFinite(e)||!isFinite(t)}var Vy=typeof Float32Array<`u`?Float32Array:void 0,Hy=typeof Float64Array<`u`?Float64Array:void 0;function Uy(e){return Wy({ctor:Vy},e).arr}function Wy(e,t){var n=e.arr,r=e.ctor;if(t>Ec&&(t=Ec),!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 a=0,o=n.length;a<o;a++)i[a]=n[a];e.arr=i}return e}function Gy(e,t){var n=[];return t.diff(e).add(function(e){n.push({cmd:`+`,idx:e})}).update(function(e,t){n.push({cmd:`=`,idx:t,idx1:e})}).remove(function(e){n.push({cmd:`-`,idx:e})}).execute(),n}function Ky(e,t,n,r,i,a,o,s){for(var c=Gy(e,t),l=[],u=[],d=[],f=[],p=[],m=[],h=[],g=Ly(i,t,o),_=e.getLayout(`points`)||[],v=t.getLayout(`points`)||[],y=0;y<c.length;y++){var b=c[y],x=!0,S=void 0,C=void 0;switch(b.cmd){case`=`:S=b.idx*2,C=b.idx1*2;var w=_[S],T=_[S+1],E=v[C],D=v[C+1];(isNaN(w)||isNaN(T))&&(w=E,T=D),l.push(w,T),u.push(E,D),d.push(n[S],n[S+1]),f.push(r[C],r[C+1]),h.push(t.getRawIndex(b.idx1));break;case`+`:var O=b.idx,k=g.dataDimsForPoint,A=i.dataToPoint([t.get(k[0],O),t.get(k[1],O)]);C=O*2,l.push(A[0],A[1]),u.push(v[C],v[C+1]);var j=zy(g,i,t,O);d.push(j[0],j[1]),f.push(r[C],r[C+1]),h.push(t.getRawIndex(O));break;case`-`:x=!1}x&&(p.push(b),m.push(m.length))}m.sort(function(e,t){return h[e]-h[t]});for(var M=l.length,ee=Uy(M),N=Uy(M),P=Uy(M),te=Uy(M),ne=[],y=0;y<m.length;y++){var re=m[y],ie=y*2,ae=re*2;ee[ie]=l[ae],ee[ie+1]=l[ae+1],N[ie]=u[ae],N[ie+1]=u[ae+1],P[ie]=d[ae],P[ie+1]=d[ae+1],te[ie]=f[ae],te[ie+1]=f[ae+1],ne[y]=p[re]}return{current:ee,next:N,stackedOnCurrent:P,stackedOnNext:te,status:ne}}var qy=Math.min,Jy=Math.max;function Yy(e,t,n,r,i,a,o,s,c){for(var l,u,d,f,p,m,h=n,g=0;g<r;g++){var _=t[h*2],v=t[h*2+1];if(h>=i||h<0)break;if(By(_,v)){if(c){h+=a;continue}break}if(h===n)e[a>0?`moveTo`:`lineTo`](_,v),d=_,f=v;else{var y=_-l,b=v-u;if(y*y+b*b<.5){h+=a;continue}if(o>0){for(var x=h+a,S=t[x*2],C=t[x*2+1];S===_&&C===v&&g<r;)g++,x+=a,h+=a,S=t[x*2],C=t[x*2+1],_=t[h*2],v=t[h*2+1],y=_-l,b=v-u;var w=g+1;if(c)for(;By(S,C)&&w<r;)w++,x+=a,S=t[x*2],C=t[x*2+1];var T=.5,E=0,D=0,O=void 0,k=void 0;if(w>=r||By(S,C))p=_,m=v;else{E=S-l,D=C-u;var A=_-l,j=S-_,M=v-u,ee=C-v,N=void 0,P=void 0;if(s===`x`){N=Math.abs(A),P=Math.abs(j);var te=E>0?1:-1;p=_-te*N*o,m=v,O=_+te*P*o,k=v}else if(s===`y`){N=Math.abs(M),P=Math.abs(ee);var ne=D>0?1:-1;p=_,m=v-ne*N*o,O=_,k=v+ne*P*o}else N=Math.sqrt(A*A+M*M),P=Math.sqrt(j*j+ee*ee),T=P/(P+N),p=_-E*o*(1-T),m=v-D*o*(1-T),O=_+E*o*T,k=v+D*o*T,O=qy(O,Jy(S,_)),k=qy(k,Jy(C,v)),O=Jy(O,qy(S,_)),k=Jy(k,qy(C,v)),E=O-_,D=k-v,p=_-E*N/P,m=v-D*N/P,p=qy(p,Jy(l,_)),m=qy(m,Jy(u,v)),p=Jy(p,qy(l,_)),m=Jy(m,qy(u,v)),E=_-p,D=v-m,O=_+E*P/N,k=v+D*P/N}e.bezierCurveTo(d,f,p,m,_,v),d=O,f=k}else e.lineTo(_,v)}l=_,u=v,h+=a}return g}var Xy=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),Zy=function(e){I(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`ec-polyline`,n}return t.prototype.getDefaultStyle=function(){return{stroke:Z.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new Xy},t.prototype.buildPath=function(e,t){var n=t.points,r=0,i=n.length/2;if(t.connectNulls){for(;i>0&&By(n[i*2-2],n[i*2-1]);i--);for(;r<i&&By(n[r*2],n[r*2+1]);r++);}for(;r<i;)r+=Yy(e,n,r,i,i,1,t.smooth,t.smoothMonotone,t.connectNulls)+1},t.prototype.getPointOn=function(e,t){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path.data,r=Xo.CMD,i,a,o=t===`x`,s=[],c=0;c<n.length;){var l=n[c++],u=void 0,d=void 0,f=void 0,p=void 0,m=void 0,h=void 0,g=void 0;switch(l){case r.M:i=n[c++],a=n[c++];break;case r.L:if(u=n[c++],d=n[c++],g=o?(e-i)/(u-i):(e-a)/(d-a),g<=1&&g>=0){var _=o?(d-a)*g+a:(u-i)*g+i;return o?[e,_]:[_,e]}i=u,a=d;break;case r.C:u=n[c++],d=n[c++],f=n[c++],p=n[c++],m=n[c++],h=n[c++];var v=o?ci(i,u,f,m,e,s):ci(a,d,p,h,e,s);if(v>0)for(var y=0;y<v;y++){var b=s[y];if(b<=1&&b>=0){var _=o?oi(a,d,p,h,b):oi(i,u,f,m,b);return o?[e,_]:[_,e]}}i=m,a=h}}},t}(xs),Qy=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Xy),$y=function(e){I(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`ec-polygon`,n}return t.prototype.getDefaultShape=function(){return new Qy},t.prototype.buildPath=function(e,t){var n=t.points,r=t.stackedOnPoints,i=0,a=n.length/2,o=t.smoothMonotone;if(t.connectNulls){for(;a>0&&By(n[a*2-2],n[a*2-1]);a--);for(;i<a&&By(n[i*2],n[i*2+1]);i++);}for(;i<a;){var s=Yy(e,n,i,a,a,1,t.smooth,o,t.connectNulls);Yy(e,r,i+s-1,s,a,-1,t.stackedOnSmooth,o,t.connectNulls),i+=s+1,e.closePath()}},t}(xs);function eb(){var e=_l();return function(t){var n=e(t),r=t.pipelineContext,i=!!n.large,a=!!n.progressiveRender,o=n.large=!!(r&&r.large),s=n.progressiveRender=!!(r&&r.progressiveRender);return(i!==o||a!==s)&&`reset`}}var tb=_l(),nb=eb(),rb=function(){function e(){this.group=new Pd,this.uid=gg(`viewChart`),this.renderTask=_v({plan:ob,reset:sb}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.highlight=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&ab(i,r,`emphasis`)},e.prototype.downplay=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&ab(i,r,`normal`)},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateVisual=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.eachRendered=function(e){Ep(this.group,e)},e.markUpdateMethod=function(e,t){tb(e).updateMethod=t},e.protoInitialize=function(){var t=e.prototype;t.type=`chart`}(),e}();function ib(e,t,n){e&&sd(e)&&(t===`emphasis`?Iu:Lu)(e,n)}function ab(e,t,n){var r=gl(e,t),i=t&&t.highlightKey!=null?cd(t.highlightKey):null;r==null?e.eachItemGraphicEl(function(e){ib(e,n,i)}):z(Xc(r),function(t){ib(e.getItemGraphicEl(t),n,i)})}Ut(rb,[`dispose`]),Xt(rb);function ob(e){return nb(e.model)}function sb(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&tb(i).updateMethod,c=a?`incrementalPrepareRender`:s&&o[s]?s:`render`;return c!==`render`&&o[c](t,n,r,i),cb[c]}var cb={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)}}};function lb(e,t,n,r,i){var a=e.getArea(),o=a.x,s=a.y,c=a.width,l=a.height,u=n.get([`lineStyle`,`width`])||0;o-=u/2,s-=u/2,c+=u,l+=u,c=Math.ceil(c),o!==Math.floor(o)&&(o=Math.floor(o),c++);var d=new Fs({shape:{x:o,y:s,width:c,height:l}});if(t){var f=e.getBaseAxis(),p=f.isHorizontal(),m=f.inverse;p?(m&&(d.shape.x+=c),d.shape.width=0):(m||(d.shape.y+=l),d.shape.height=0);var h=U(i)?function(e){i(e,d)}:null;zf(d,{shape:{width:c,height:l,x:o,y:s}},n,null,r,h)}return d}function ub(e,t,n){var r=e.getArea(),i=yc(r.r0,1),a=yc(r.r,1),o=new tf({shape:{cx:yc(e.cx,1),cy:yc(e.cy,1),r0:i,r:a,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});return t&&(e.getBaseAxis().dim===`angle`?o.shape.endAngle=r.startAngle:o.shape.r=i,zf(o,{shape:{endAngle:r.endAngle,r:a}},n)),o}function db(e,t,n,r,i){return e?e.type===`polar`?ub(e,t,n):e.type===`cartesian2d`?lb(e,t,n,r,i):null:null}function fb(e){var t=e.coordinateSystem;if(e.get(`clip`,!0)&&t&&(!t.shouldClip||t.shouldClip()))return t.getArea&&t.getArea(.1)}function pb(e,t){return e.type===t}function mb(e){var t=e.dimensions;return t[0]===`lng`&&t[1]===`lat`&&!!e.getViewRect}var hb=function(){function e(){}return e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();Xt(hb);var gb=0,_b=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++gb,this._onCollect=e.onCollect}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&B(r,vb);return new e({categories:i,needCollect:!i,deduplication:n.dedplication!==!1})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!W(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,this._onCollect&&this._onCollect(e,t),t;var r=this._getOrCreateMap();return t=r.get(e),t??(n?(t=this.categories.length,this.categories[t]=e,r.set(e,t),this._onCollect&&this._onCollect(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||=q(this.categories)},e}();function vb(e){return G(e)&&e.value!=null?e.value:e+``}var yb=st({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});function bb(e,t,n){var r;e||={};var i=qg();if(i){var a=i.createBreakScaleMapper(t,n);a.hasBreaks()&&(z(yb,function(t){a[t]&&(e[t]=V(a[t],a))}),r=a)}return r??Db(e,n),{brk:r,mapper:e}}function xb(e,t){z(yb,function(n){e[n]=t[n]})}function Sb(e,t){e.freeze=Nt}function Cb(e){return e.getExtentUnsafe(0,2)}function wb(e,t){return e.getExtentUnsafe(1,t)||e.getExtentUnsafe(0,t)}function Tb(e){var t=wb(e,3);return t[1]-t[0]}function Eb(e){var t=e.getExtentUnsafe(0,3);return t[1]-t[0]}function Db(e,t){var n=e||{},r=[];return n._extents=r,r[0]=t?t.slice():Ol(),R(n,Ob),n}var Ob={needTransform:function(){return!1},normalize:function(e){var t=this._extents[1]||this._extents[0];return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])},scale:function(e){var t=this._extents[1]||this._extents[0];return e*(t[1]-t[0])+t[0]},transformIn:function(e){return e},transformOut:function(e){return e},contain:function(e){var t=wb(this,null);return e>=t[0]&&e<=t[1]},getExtent:function(){return this._extents[0].slice()},getExtentUnsafe:function(e){return this._extents[e]},setExtent:function(e,t){kb(this._extents,0,e,t)},setExtent2:function(e,t,n){var r=this._extents;r[e]||(r[e]=r[0].slice()),kb(r,e,t,n)},freeze:function(){}};function kb(e,t,n,r){Pl(n,r)&&(e[t][0]=n,e[t][1]=r)}function Ab(e){return jb(e)||Nb(e)}function jb(e){return e.type===`interval`}function Mb(e){return e.type===`time`}function Nb(e){return e.type===`log`}function Pb(e){return e.type===`ordinal`}function Fb(e){var t=Mc(e),n=lc(10,t),r=oc(e/n);return r?r===2?r=3:r===3?r=5:r*=2:r=1,yc(r*n,-t)}function Ib(e){return xc(e)+2}function Lb(e,t){return uc(e)/uc(t)}function Rb(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 lc(t,e)}function zb(e,t,n){var r=e.slice();if(r[0]===r[1]){var i=n&&n.ctnShp;if(r[0]!==0){var a=ac(r[0]);t[1]||(r[1]+=a/2),r[0]-=a/2}else i&&(r[0]=-1),r[1]=1}return(!Nl(r[0])||!Nl(r[1]))&&(r[0]=0,r[1]=1),r[1]<r[0]&&r.reverse(),r}function Bb(e,t){return[e[0]!==t[0],e[1]!==t[1]]}function Vb(e,t){return e||=t,oc(ic(e,1))}function Hb(e,t,n){var r=Cb(e),i=r[0],a=e.count(),o=Math.max((t||0)+1,1);i!==0&&o>1&&a/o>2&&(i=Math.round(Math.ceil(i/o)*o)),i!==r[0]&&c(r[0],!0,!0);for(var s=i;s<=r[1];s+=o)c(s,!1,s===r[0]||s===r[1]);s-o!==r[1]&&c(r[1],!0,!0);function c(e,t,r){n({value:e,offInterval:t},r)}}var Ub=function(e){I(t,e);function t(n){var r=e.call(this)||this;r.type=`ordinal`,r.parse=t.parse,xb(r,t.decoratedMethods);var i=n.ordinalMeta;i||=new _b({}),H(i)&&(i=new _b({categories:B(i,function(e){return G(e)?e.value:e})})),r._ordinalMeta=i;var a=bb(null,null,n.extent||[0,i.categories.length-1]);return r._mapper=a.mapper,Sb(r,a.mapper),r}return t.parse=function(e){return e==null?e=NaN:W(e)?(e=this._ordinalMeta.getOrdinal(e),e??=NaN):e=oc(e),e},t.prototype.getTicks=function(){var e=[];return Hb(this,0,function(t){e.push(t)}),e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null)this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;else{for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,a=this._ordinalMeta.categories.length,o=rc(a,t.length);i<o;++i){var s=n[i]=t[i];r[s]=i}for(var c=0;i<a;++i){for(;r[c]!=null;)c++;n[i]=c,r[c]=i}}},t.prototype._getTickNumber=function(e){var t=this._ticksByOrdinalNumber;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getRawOrdinalNumber=function(e){var t=this._ordinalNumbersByTick;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var t=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[t];return n==null?``:n+``}},t.prototype.count=function(){var e=Cb(this._mapper);return e[1]-e[0]+1},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.type=`ordinal`,t.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(e){return this._mapper.contain(this._getTickNumber(e))&&e>=0&&e<this._ordinalMeta.categories.length},normalize:function(e){return this._mapper.normalize(this._getTickNumber(e))},scale:function(e){return this.getRawOrdinalNumber(oc(this._mapper.scale(e)))},transformIn:function(e,t){return this._mapper.transformIn(this._getTickNumber(e),t)},transformOut:function(e,t){return this.getRawOrdinalNumber(this._mapper.transformOut(e,t))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(e,t){return this._mapper.getExtentUnsafe(e,t)},setExtent:function(e,t){return this._mapper.setExtent(e,t)},setExtent2:function(e,t,n){return this._mapper.setExtent2(e,t,n)}},t}(hb);hb.registerClass(Ub);function Wb(e,t,n,r){for(var i=e.getTicks({expandToNicedExtent:!0}),a=[],o=e.getExtent(),s=1;s<i.length;s++){var c=i[s],l=i[s-1];if(!(l.break||c.break)){for(var u=0,d=[],f=(c.value-l.value)/t,p=Ib(f);u<t-1;){var m=yc(l.value+(u+1)*f,p);m>o[0]&&m<o[1]&&d.push(m),u++}var h=qg();h&&h.pruneTicksByBreak(`auto`,d,n,function(e){return e},r,o),a.push(d)}}return a}var Gb=function(e){I(t,e);function t(n){var r=e.call(this)||this;return r.type=`interval`,r.parse=t.parse,n||={},r.brk=bb(r,Jg(r,n),null).brk,r._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},r}return t.parse=function(e){return e==null||e===``?NaN:Number(e)},t.prototype.getConfig=function(){return L(this._cfg)},t.prototype.setConfig=function(e){var t=Cb(this);this._cfg=e=L(e),e.niceExtent??(e.niceExtent=t.slice()),e.intervalPrecision??(e.intervalPrecision=Ib(e.interval))},t.prototype.getTicks=function(e){e||={};var t=this._cfg,n=t.interval,r=Cb(this),i=t.niceExtent,a=t.intervalPrecision,o=qg(),s=this.brk,c=o&&s,l=[];if(!n)return l;if(e.breakTicks===`only_break`&&c)return o.addBreaksToTicks(l,s.breaks,r),l;var u=3e3;r[0]<i[0]&&l.push({value:e.expandToNicedExtent?yc(i[0]-n,a):r[0]});for(var d=function(e,t){return oc((t-e)/n)},f=t.intervalCount,p=i[0],m=0;;m++){if(f==null){if(p>i[1]||!isFinite(p)||!isFinite(i[1]))break}else{if(m>f)break;p=rc(p,i[1]),m===f&&(p=i[1])}if(l.push({value:p}),p=yc(p+n,a),s){var h=s.calcNiceTickMultiple(p,d);h>=0&&(p=yc(p+h*n,a))}if(l.length>0&&p===l[l.length-1].value)break;if(l.length>u)return[]}var g=l.length?l[l.length-1].value:i[1];return r[1]>g&&l.push({value:e.expandToNicedExtent?yc(g+n,a):r[1]}),c&&o.pruneTicksByBreak(e.pruneByBreak,l,s.breaks,function(e){return e.value},t.interval,r),c&&e.breakTicks!==`none`&&o.addBreaksToTicks(l,s.breaks,r),l},t.prototype.getMinorTicks=function(e){return Wb(this,e,Yg(this),this._cfg.interval)},t.prototype.getLabel=function(e,t){if(e==null)return``;var n=t&&t.precision;return n==null?n=xc(e.value)||0:n===`auto`&&(n=this._cfg.intervalPrecision),N_(yc(e.value,n,!0))},t.type=`interval`,t}(hb);hb.registerClass(Gb);var Kb=function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n},qb=function(e){I(t,e);function t(n){var r=e.call(this)||this;return r.type=`time`,r.parse=t.parse,r._locale=n.locale,r._useUTC=n.useUTC,r._interval=0,r.brk=bb(r,Jg(r,n),null).brk,r}return t.prototype.getLabel=function(e){return h_(e.value,o_[m_(f_(this._minLevelUnit))]||o_.second,this._useUTC,this._locale)},t.prototype.getFormattedLabel=function(e,t,n){return g_(e,t,n,this._locale,this._useUTC)},t.prototype.getTicks=function(e){e||={};var t=this._interval,n=Cb(this),r=qg(),i=this.brk,a=r&&i,o=[];if(!t)return o;var s=this._useUTC;if(a&&e.breakTicks===`only_break`)return qg().addBreaksToTicks(o,i.breaks,n),o;o=rx(this._minLevelUnit,this._approxInterval,s,n,Eb(this),i);var c=s_.length-1,l=0;return z(o,function(e){e.time&&(c=Math.min(c,et(s_,e.time.upperTimeUnit)),l=Math.max(l,e.time.level))}),a&&qg().pruneTicksByBreak(e.pruneByBreak,o,i.breaks,function(e){return e.value},this._approxInterval,n),a&&e.breakTicks!==`none`&&qg().addBreaksToTicks(o,i.breaks,n,function(e){for(var t=Math.max(et(s_,__(e.vmin,s)),et(s_,__(e.vmax,s))),n=0,r=0;r<s_.length;r++)if(!Yb(s_[r],e.vmin,e.vmax,s)){n=r;break}var i=Math.min(n,c);return{level:l,lowerTimeUnit:s_[Math.max(i,t)],upperTimeUnit:s_[i]}}),o},t.prototype.getMinorTicks=function(e){return Wb(this,e,Yg(this),this._interval)},t.prototype.setTimeInterval=function(e){this._interval=e.interval,this._approxInterval=e.approxInterval,this._minLevelUnit=e.minLevelUnit},t.parse=function(e){return dt(e)?Math.round(e):+Ac(e)},t.type=`time`,t}(hb),Jb=[[`second`,Zg],[`minute`,Qg],[`hour`,$g],[`quarter-day`,$g*6],[`half-day`,$g*12],[`day`,e_*1.2],[`half-week`,e_*3.5],[`week`,e_*7],[`month`,e_*31],[`quarter`,e_*95],[`half-year`,t_/2],[`year`,t_]];function Yb(e,t,n,r){return v_(new Date(t),e,r).getTime()===v_(new Date(n),e,r).getTime()}function Xb(e,t){return e/=e_,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function Zb(e){var t=30*e_;return e/=t,e>6?6:e>3?3:e>2?2:1}function Qb(e){return e/=$g,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function $b(e,t){return e/=t?Qg:Zg,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function ex(e){return ic(Nc(e,!0),1)}function tx(e,t,n){var r=Math.max(0,et(s_,t)-1);return v_(new Date(e),s_[r],n).getTime()}function nx(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(e,t){return Math.max(0,Math.round((t-e)/i))}}function rx(e,t,n,r,i,a){var o=c_,s=0;function c(e,t,n,i,o,c,l){for(var u=nx(o,e),d=t,f=new Date(d);d<n&&d<=r[1]&&(l.push({value:d}),!(s++>3e3));)if(f[o](f[i]()+e),d=f.getTime(),a){var p=a.calcNiceTickMultiple(d,u);p>0&&(f[o](f[i]()+p*e),d=f.getTime())}l.push({value:d,notAdd:d>r[1]})}function l(e,i,a){var o=[],s=!i.length;if(!Yb(f_(e),r[0],r[1],n)){s&&(i=[{value:tx(r[0],e,n)},{value:r[1]}]);for(var l=0;l<i.length-1;l++){var u=i[l].value,d=i[l+1].value;if(u!==d){var f=void 0,p=void 0,m=void 0,h=!1;switch(e){case`year`:f=Math.max(1,Math.round(t/e_/365)),p=y_(n),m=E_(n);break;case`half-year`:case`quarter`:case`month`:f=Zb(t),p=b_(n),m=D_(n);break;case`week`:case`half-week`:case`day`:f=Xb(t,31),p=x_(n),m=O_(n),h=!0;break;case`half-day`:case`quarter-day`:case`hour`:f=Qb(t),p=S_(n),m=k_(n);break;case`minute`:f=$b(t,!0),p=C_(n),m=A_(n);break;case`second`:f=$b(t,!1),p=w_(n),m=j_(n);break;case`millisecond`:f=ex(t),p=T_(n),m=M_(n)}d>=r[0]&&u<=r[1]&&c(f,u,d,p,m,h,o),e===`year`&&a.length>1&&l===0&&a.unshift({value:a[0].value-f})}}for(var l=0;l<o.length;l++)a.push(o[l])}}for(var u=[],d=[],f=0,p=0,m=0;m<o.length;++m){var h=f_(o[m]);if(p_(o[m])&&(l(o[m],u[u.length-1]||[],d),h!==(o[m+1]?f_(o[m+1]):null))){if(d.length){p=f,d.sort(function(e,t){return e.value-t.value});for(var g=[],_=0;_<d.length;++_){var v=d[_].value;(_===0||d[_-1].value!==v)&&(g.push(d[_]),v>=r[0]&&v<=r[1]&&f++)}var y=i/t;if(f>y*1.5&&p>y/1.5||(u.push(g),f>y||e===o[m]))break}d=[]}}for(var b=at(B(u,function(e){return at(e,function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd})}),function(e){return e.length>0}),x=b.length-1,S=[],m=0;m<b.length;++m)for(var C=b[m],w=0;w<C.length;++w){var T=__(C[w].value,n);S.push({value:C[w].value,time:{level:x-m,upperTimeUnit:T,lowerTimeUnit:T}})}zl(S,Bl,null),S.sort(function(e,t){return e.value-t.value});var E=S[0],D=S[S.length-1],O=__(r[0],n),k=__(r[1],n);return(!E||E.value>r[0])&&S.unshift({value:r[0],time:{level:0,upperTimeUnit:O,lowerTimeUnit:O},notNice:!0}),(!D||D.value<r[1])&&S.push({value:r[1],time:{level:0,upperTimeUnit:k,lowerTimeUnit:k},notNice:!0}),S}var ix=function(e,t){var n=e.getExtent();if(n[0]===n[1]&&(n[0]-=e_,n[1]+=e_),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]-e_}e.setExtent(n[0],n[1]);var i=Vb(t.splitNumber,10),a=Eb(e)/i,o=t.minInterval,s=t.maxInterval;o!=null&&a<o&&(a=o),s!=null&&a>s&&(a=s);var c=Jb.length,l=Math.min(Kb(Jb,a,0,c),c-1),u=Jb[l][1],d=Jb[Math.max(l-1,0)][0];e.setTimeInterval({approxInterval:a,interval:u,minLevelUnit:d})};hb.registerClass(qb);var ax=0,ox=1,sx=2,cx=function(e){I(t,e);function t(n){var r=e.call(this)||this;r.type=`log`,r.parse=Gb.parse,r.base=n.logBase||10;var i=[],a=[],o=r._lookup={from:i,to:a};i[ax]=i[ox]=a[ax]=a[ox]=NaN,xb(r,t.mapperMethods);var s=qg(),c=n.breakOption,l={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(c,r,{noNegative:!0},sx,l),r.powStub=new Gb({breakParsed:l.original}),r.intervalStub=new Gb({breakParsed:l.transformed}),Sb(r,r.intervalStub),r}return t.prototype.getTicks=function(e){var t=this.base,n=this.powStub,r=qg(),i=this.intervalStub,a={lookup:{from:i.getExtent(),to:n.getExtent()}};return B(i.getTicks(e||{}),function(e){var i=e.value,o=Rb(i,t,a),s;if(r){var c=r.getTicksBreakOutwardTransform(this,e,Yg(n),this._lookup);c&&(s=c.vBreak,o=c.tickVal)}return{value:o,break:s}},this)},t.prototype.getMinorTicks=function(e){return Wb(this,e,Yg(this.powStub),this.intervalStub.getConfig().interval)},t.prototype.getLabel=function(e,t){return this.intervalStub.getLabel(e,t)},t.type=`log`,t.mapperMethods={needTransform:function(){return!0},normalize:function(e){return this.intervalStub.normalize(Lb(e,this.base))},scale:function(e){return Rb(this.intervalStub.scale(e),this.base,null)},transformIn:function(e,t){return e=Lb(e,this.base),t&&t.depth===2?e:this.intervalStub.transformIn(e,t)},transformOut:function(e,t){var n=t?t.depth:null;return lx.depth=n,ux.lookup=this._lookup,Rb(n===2?e:this.intervalStub.transformOut(e,lx),this.base,ux)},contain:function(e){return this.powStub.contain(e)},setExtent:function(e,t){this.setExtent2(0,e,t)},setExtent2:function(e,t,n){if(!(!Pl(t,n)||t<=0||n<=0)){var r=dx,i=dx;if(e===0){var a=this._lookup;r=a.to,i=a.from}this.powStub.setExtent2(e,r[ax]=t,r[ox]=n);var o=this.base;this.intervalStub.setExtent2(e,i[ax]=Lb(t,o),i[ox]=Lb(n,o))}},getFilter:function(){return{g:0}},sanitize:function(e,t){return Pl(t[0],t[1])&&Bc(e)&&e<=0&&(e=t[0]),e},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(e,t){return t===null?this.powStub.getExtentUnsafe(e,null):this.intervalStub.getExtentUnsafe(e,t)}},t}(hb);hb.registerClass(cx);var lx={},ux={},dx=[],fx={value:1,category:1,time:1,log:1},px=_l();function mx(e){var t=e.get(`type`);return(t==null||!Mt(fx,t)&&!hb.getClass(t))&&(t=`value`),t}function hx(e,t,n){var r=qg(),i;switch(r&&(i=Dx(e,t,n)),t){case`category`:return new Ub({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:Ol()});case`time`:return new qb({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get(`useUTC`),breakOption:i});case`log`:return new cx({logBase:e.get(`logBase`),breakOption:i});case`value`:return new Gb({breakOption:i});default:return new((hb.getClass(t))||Gb)({})}}function gx(e,t,n){var r=n?wb(e,null):e.getExtentUnsafe(0,null),i=r[0],a=r[1];return Pl(i,a)?i===t||a===t?2:i<t&&a>t?1:3:3}function _x(e){px(e).noOnMyZero=!0}function vx(e){return px(e).noOnMyZero}function yx(e){var t=e.getLabelModel().get(`formatter`);if(e.type===`time`){var n=l_(t);return function(t,r){return e.scale.getFormattedLabel(t,r,n)}}if(W(t))return function(n){var r=e.scale.getLabel(n);return t.replace(`{value}`,r??``)};if(U(t)){if(e.type===`category`)return function(n,r){return t(bx(e,n),n.value-e.scale.getExtent()[0],null)};var r=qg();return function(n,i){var a=null;return r&&(a=r.makeAxisLabelFormatterParamBreak(a,n.break)),t(bx(e,n),i,a)}}return function(t){return e.scale.getLabel(t)}}function bx(e,t){var n=e.scale;return Pb(n)?n.getLabel(t):t.value}function xx(e){return e.get(`interval`)??`auto`}function Sx(e){return e.type===`category`&&xx(e.getLabelModel())===0}function Cx(e,t){var n={};return z(e.mapDimensionsAll(t),function(t){n[lg(e,t)]=!0}),st(n)}function Tx(e){return e===`middle`||e===`center`}function Ex(e){return e.getShallow(`show`)}function Dx(e,t,n){var r=e.get(`breaks`,!0);if(r!=null)return!qg()||!n||!Ox(t)?void 0:r}function Ox(e){return e!==`category`}function kx(e,t,n,r,i,a){var o=Nb(e),s=o?e.intervalStub:e;if(s.setExtent(r[0],r[1]),o){var c=e.powStub,l={depth:2},u=e.transformOut(r[0],l),d=e.transformOut(r[1],l),f=Bb(n,r);t[0]&&!f[0]&&(u=i[0]),t[1]&&!f[1]&&(d=i[1]),c.setExtent(u,d)}s.setConfig(a)}function Ax(e,t){return Pb(e)?e.getRawOrdinalNumber(t.value):t.value}function jx(e,t){return Pb(e)&&!!t.get(`boundaryGap`)}function Mx(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function Nx(e){for(var t=Ol(),n=Ol(),r=0;r<e.length;){var i=e[r++],a=e[r++];By(i,a)||(kl(t,i),kl(n,a))}return[t,n]}function Px(e,t){var n=Nx(e),r=n[0],i=n[1],a=Nx(t),o=a[0],s=a[1];return Math.max(Math.abs(r[0]-o[0]),Math.abs(i[0]-s[0]),Math.abs(r[1]-o[1]),Math.abs(i[1]-s[1]))}function Fx(e){return dt(e)?e:e?.5:0}function Ix(e,t,n){if(n.valueDim==null)return[];for(var r=t.count(),i=Uy(r*2),a=0;a<r;a++){var o=zy(n,e,t,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function Lx(e,t,n,r,i){var a=n.getBaseAxis(),o=a.dim===`x`||a.dim===`radius`?0:1,s=[],c=0,l=[],u=[],d=[],f=[];if(i){for(c=0;c<e.length;c+=2){var p=t||e;By(p[c],p[c+1])||f.push(e[c],e[c+1])}e=f}for(c=0;c<e.length-2;c+=2)switch(d[0]=e[c+2],d[1]=e[c+3],u[0]=e[c],u[1]=e[c+1],s.push(u[0],u[1]),r){case`end`:l[o]=d[o],l[1-o]=u[1-o],s.push(l[0],l[1]);break;case`middle`:var m=(u[o]+d[o])/2,h=[];l[o]=h[o]=m,l[1-o]=u[1-o],h[1-o]=d[1-o],s.push(l[0],l[1]),s.push(h[0],h[1]);break;default:l[o]=u[o],l[1-o]=d[1-o],s.push(l[0],l[1])}return s.push(e[c++],e[c++]),s}function Rx(e,t){var n=[],r=e.length,i,a;function o(e,t,n){var r=e.coord;return{coord:n,color:Vi((n-r)/(t.coord-r),[e.color,t.color])}}for(var s=0;s<r;s++){var c=e[s],l=c.coord;if(l<0)i=c;else if(l>t){a?n.push(o(a,c,t)):i&&n.push(o(i,c,0),o(i,c,t));break}else i&&=(n.push(o(i,c,0)),null),n.push(c),a=c}return n}function zx(e,t,n){var r=e.getVisual(`visualMeta`);if(r&&r.length&&e.count()&&t.type===`cartesian2d`){for(var i,a,o=r.length-1;o>=0;o--){var s=e.getDimensionInfo(r[o].dimension);if(i=s&&s.coordDim,i===`x`||i===`y`){a=r[o];break}}if(a){var c=t.getAxis(i),l=B(a.stops,function(e){return{coord:c.toGlobalCoord(c.dataToCoord(e.value)),color:e.color}}),u=l.length,d=a.outerColors.slice();u&&l[0].coord>l[u-1].coord&&(l.reverse(),d.reverse());var f=Rx(l,i===`x`?n.getWidth():n.getHeight()),p=f.length;if(!p&&u)return l[0].coord<0?d[1]?d[1]:l[u-1].color:d[0]?d[0]:l[0].color;var m=10,h=f[0].coord-m,g=f[p-1].coord+m,_=g-h;if(_<.001)return`transparent`;z(f,function(e){e.offset=(e.coord-h)/_}),f.push({offset:p?f[p-1].offset:.5,color:d[1]||`transparent`}),f.unshift({offset:p?f[0].offset:.5,color:d[0]||`transparent`});var v=new Sf(0,0,0,0,f,!0);return v[i]=h,v[i+`2`]=g,v}}}function Bx(e,t,n){var r=e.get(`showAllSymbol`),i=r===`auto`;if(!r||i){var a=n.getAxesByScale(`ordinal`)[0];if(a&&!(i&&Vx(a,t))){var o=t.mapDimension(a.dim),s={};return z(a.getViewLabels(),function(e){e.tick.offInterval||(s[Ax(a.scale,e.tick)]=1)}),function(e){return!s.hasOwnProperty(t.get(o,e))}}}}function Vx(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(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(Ay.getSymbolSize(t,o)[+!!e.isHorizontal()]*1.5>r)return!1;return!0}function Hx(e){for(var t=e.length/2;t>0&&By(e[t*2-2],e[t*2-1]);t--);return t-1}function Ux(e,t){return[e[t*2],e[t*2+1]]}function Wx(e,t,n){for(var r=e.length/2,i=n===`x`?0:1,a,o,s=0,c=-1,l=0;l<r;l++)if(o=e[l*2+i],!By(o,e[l*2+1-i])){if(l===0)a=o;else{if(a<=t&&o>=t||a>=t&&o<=t){c=l;break}s=l,a=o}}return{range:[s,c],t:(t-a)/(o-a)}}function Gx(e){if(e.get([`endLabel`,`show`]))return!0;for(var t=0;t<lu.length;t++)if(e.get([lu[t],`endLabel`,`show`]))return!0;return!1}function Kx(e,t,n,r){if(pb(t,`cartesian2d`)){var i=r.getModel(`endLabel`),a=i.get(`valueAnimation`),o=r.getData(),s={lastFrameIndex:0},c=Gx(r)?function(n,r){e._endLabelOnDuring(n,r,o,s,a,i,t)}:null,l=t.getBaseAxis().isHorizontal(),u=lb(t,n,r,function(){var t=e._endLabel;t&&n&&s.originalX!=null&&t.attr({x:s.originalX,y:s.originalY})},c);if(!r.get(`clip`,!0)){var d=u.shape,f=Math.max(d.width,d.height);l?(d.y-=f,d.height+=f*2):(d.x-=f,d.width+=f*2)}return c&&c(1,u),u}return ub(t,n,r)}function qx(e,t){var n=t.getBaseAxis(),r=n.isHorizontal(),i=n.inverse,a=r?i?`right`:`left`:`center`,o=r?`middle`:i?`top`:`bottom`;return{normal:{align:e.get(`align`)||a,verticalAlign:e.get(`verticalAlign`)||o}}}var Jx=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var e=new Pd,t=new Iy;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e,this._changePolyState=V(this._changePolyState,this)},t.prototype.render=function(e,t,n){var r=e.coordinateSystem,i=this.group,a=e.getData(),o=e.getModel(`lineStyle`),s=e.getModel(`areaStyle`),c=a.getLayout(`points`)||[],l=r.type===`polar`,u=this._coordSys,d=this._symbolDraw,f=this._polyline,p=this._polygon,m=this._lineGroup,h=!t.ssr&&e.get(`animation`),g=!s.isEmpty(),_=s.get(`origin`),v=Ly(r,a,_),y=g&&Ix(r,a,v),b=e.get(`showSymbol`),x=e.get(`connectNulls`),S=b&&!l&&Bx(e,a,r),C=this._data;C&&C.eachItemGraphicEl(function(e,t){e.__temp&&(i.remove(e),C.setItemGraphicEl(t,null))}),b||d.remove(),i.add(m);var w=!l&&e.get(`step`),T;r&&r.getArea&&e.get(`clip`,!0)&&(T=r.getArea(),T.width==null?T.r0&&(T.r0-=.5,T.r+=.5):(T.x-=.1,T.y-=.1,T.width+=.2,T.height+=.2)),this._clipShapeForSymbol=T;var E=zx(a,r,n)||a.getVisual(`style`)[a.getVisual(`drawType`)];if(!(f&&u.type===r.type&&w===this._step))b&&d.updateData(a,{isIgnore:S,clipShape:T,disableAnimation:!0,getSymbolPoint:function(e){return[c[e*2],c[e*2+1]]}}),h&&this._initSymbolLabelAnimation(a,r,T),w&&(y&&=Lx(y,c,r,w,x),c=Lx(c,null,r,w,x)),f=this._newPolyline(c),g?p=this._newPolygon(c,y):p&&=(m.remove(p),this._polygon=null),l||this._initOrUpdateEndLabel(e,r,V_(E)),m.setClipPath(Kx(this,r,!0,e));else{g&&!p?p=this._newPolygon(c,y):p&&!g&&(m.remove(p),p=this._polygon=null),l||this._initOrUpdateEndLabel(e,r,V_(E));var D=m.getClipPath();D?zf(D,{shape:Kx(this,r,!1,e).shape},e):m.setClipPath(Kx(this,r,!0,e)),b&&d.updateData(a,{isIgnore:S,clipShape:T,disableAnimation:!0,getSymbolPoint:function(e){return[c[e*2],c[e*2+1]]}}),(!Mx(this._stackedOnPoints,y)||!Mx(this._points,c))&&(h?this._doUpdateAnimation(a,y,r,n,w,_,x):(w&&(y&&=Lx(y,c,r,w,x),c=Lx(c,null,r,w,x)),f.setShape({points:c}),p&&p.setShape({points:c,stackedOnPoints:y})))}var O=e.getModel(`emphasis`),k=O.get(`focus`),A=O.get(`blurScope`),j=O.get(`disabled`);if(f.useStyle($e(o.getLineStyle(),{fill:`none`,stroke:E,lineJoin:`bevel`})),ad(f,e,`lineStyle`),f.style.lineWidth>0&&e.get([`emphasis`,`lineStyle`,`width`])===`bolder`){var M=f.getState(`emphasis`).style;M.lineWidth=+f.style.lineWidth+1}Kl(f).seriesIndex=e.seriesIndex,td(f,k,A,j);var ee=Fx(e.get(`smooth`)),N=e.get(`smoothMonotone`);if(f.setShape({smooth:ee,smoothMonotone:N,connectNulls:x}),p){var P=a.getCalculationInfo(`stackedOnSeries`),te=0;p.useStyle($e(s.getAreaStyle(),{fill:E,opacity:.7,lineJoin:`bevel`,decal:a.getVisual(`style`).decal})),P&&(te=Fx(P.get(`smooth`))),p.setShape({smooth:ee,stackedOnSmooth:te,smoothMonotone:N,connectNulls:x}),ad(p,e,`areaStyle`),Kl(p).seriesIndex=e.seriesIndex,td(p,k,A,j)}var ne=this._changePolyState;a.eachItemGraphicEl(function(e){e&&(e.onHoverStateChange=ne)}),this._polyline.onHoverStateChange=ne,this._data=a,this._coordSys=r,this._stackedOnPoints=y,this._points=c,this._step=w,this._valueOrigin=_;var re=e.get(`triggerEvent`),ie=e.get(`triggerLineEvent`),ae=ie===!0||re===!0||re===`line`,oe=ie===!0||re===!0||re===`area`;this.packEventData(e,f,ae),p&&this.packEventData(e,p,oe)},t.prototype.packEventData=function(e,t,n){Kl(t).eventData=n?{componentType:`series`,componentSubType:`line`,componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:`line`,selfType:t===this._polygon?`area`:`line`}:null},t.prototype.highlight=function(e,t,n,r){var i=e.getData(),a=gl(i,r);if(this._changePolyState(`emphasis`),!(a instanceof Array)&&a!=null&&a>=0){var o=i.getLayout(`points`),s=i.getItemGraphicEl(a);if(!s){var c=o[a*2],l=o[a*2+1];if(By(c,l)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,l))return;var u=e.get(`zlevel`)||0,d=e.get(`z`)||0;s=new Ay(i,a),s.x=c,s.y=l,s.setZ(u,d);var f=s.getSymbolPath().getTextContent();f&&(f.zlevel=u,f.z=d,f.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(a,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else rb.prototype.highlight.call(this,e,t,n,r)},t.prototype.downplay=function(e,t,n,r){var i=e.getData(),a=gl(i,r);if(this._changePolyState(`normal`),a!=null&&a>=0){var o=i.getItemGraphicEl(a);o&&(o.__temp?(i.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay())}else rb.prototype.downplay.call(this,e,t,n,r)},t.prototype._changePolyState=function(e){var t=this._polygon;Du(this._polyline,e),t&&Du(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new Zy({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new $y({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var r,i,a=t.getBaseAxis(),o=a.inverse;t.type===`cartesian2d`?(r=a.isHorizontal(),i=!1):t.type===`polar`&&(r=a.dim===`angle`,i=!0);var s=e.hostModel,c=s.get(`animationDuration`);U(c)&&(c=c(null));var l=s.get(`animationDelay`)||0,u=U(l)?l(null):l;e.eachItemGraphicEl(function(e,a){var s=e;if(s){var d=[e.x,e.y],f=void 0,p=void 0,m=void 0;if(n){if(i){var h=n,g=t.pointToCoord(d);r?(f=h.startAngle,p=h.endAngle,m=-g[1]/180*Math.PI):(f=h.r0,p=h.r,m=g[0])}else{var _=n;r?(f=_.x,p=_.x+_.width,m=e.x):(f=_.y+_.height,p=_.y,m=e.y)}}var v=p===f?0:(m-f)/(p-f);o&&(v=1-v);var y=U(l)?l(a):c*v+u,b=s.getSymbolPath(),x=b.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:y}),x&&x.animateFrom({style:{opacity:0}},{duration:300,delay:y}),b.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,t,n){var r=e.getModel(`endLabel`);if(Gx(e)){var i=e.getData(),a=this._polyline,o=i.getLayout(`points`);if(!o){a.removeTextContent(),this._endLabel=null;return}var s=this._endLabel;s||(s=this._endLabel=new Bs({z2:200}),s.ignoreClip=!0,a.setTextContent(this._endLabel),a.disableLabelAnimation=!0);var c=Hx(o);c>=0&&(Hp(a,Up(e,`endLabel`),{inheritColor:n,labelFetcher:e,labelDataIndex:c,defaultText:function(e,t,n){return n==null?Oy(i,e):ky(i,n)},enableTextSetter:!0},qx(r,t)),a.textConfig.position=null)}else this._endLabel&&=(this._polyline.removeTextContent(),null)},t.prototype._endLabelOnDuring=function(e,t,n,r,i,a,o){var s=this._endLabel,c=this._polyline;if(s){e<1&&r.originalX==null&&(r.originalX=s.x,r.originalY=s.y);var l=n.getLayout(`points`),u=n.hostModel,d=u.get(`connectNulls`),f=a.get(`precision`),p=a.get(`distance`)||0,m=o.getBaseAxis(),h=m.isHorizontal(),g=m.inverse,_=t.shape,v=g?h?_.x:_.y+_.height:h?_.x+_.width:_.y,y=(h?p:0)*(g?-1:1),b=(h?0:-p)*(g?-1:1),x=h?`x`:`y`,S=Wx(l,v,x),C=S.range,w=C[1]-C[0],T=void 0;if(w>=1){if(w>1&&!d){var E=Ux(l,C[0]);s.attr({x:E[0]+y,y:E[1]+b}),i&&(T=u.getRawValue(C[0]))}else{var E=c.getPointOn(v,x);E&&s.attr({x:E[0]+y,y:E[1]+b});var D=u.getRawValue(C[0]),O=u.getRawValue(C[1]);i&&(T=Dl(n,f,D,O,S.t))}r.lastFrameIndex=C[0]}else{var k=e===1||r.lastFrameIndex>0?C[0]:0,E=Ux(l,k);i&&(T=u.getRawValue(k)),s.attr({x:E[0]+y,y:E[1]+b})}if(i){var A=$p(s);typeof A.setLabelText==`function`&&A.setLabelText(T)}}},t.prototype._doUpdateAnimation=function(e,t,n,r,i,a,o){var s=this._polyline,c=this._polygon,l=e.hostModel,u=Ky(this._data,e,this._stackedOnPoints,t,this._coordSys,n,this._valueOrigin,a),d=u.current,f=u.stackedOnCurrent,p=u.next,m=u.stackedOnNext;if(i&&(f=Lx(u.stackedOnCurrent,u.current,n,i,o),d=Lx(u.current,null,n,i,o),m=Lx(u.stackedOnNext,u.next,n,i,o),p=Lx(u.next,null,n,i,o)),Px(d,p)>3e3||c&&Px(f,m)>3e3)s.stopAnimation(),s.setShape({points:p}),c&&(c.stopAnimation(),c.setShape({points:p,stackedOnPoints:m}));else{s.shape.__points=u.current,s.shape.points=d;var h={shape:{points:p}};u.current!==d&&(h.shape.__points=u.next),s.stopAnimation(),Rf(s,h,l),c&&(c.setShape({points:d,stackedOnPoints:f}),c.stopAnimation(),Rf(c,{shape:{stackedOnPoints:m}},l),s.shape.points!==c.shape.points&&(c.shape.points=s.shape.points));for(var g=[],_=u.status,v=0;v<_.length;v++)if(_[v].cmd===`=`){var y=e.getItemGraphicEl(_[v].idx1);y&&g.push({el:y,ptIdx:v})}s.animators&&s.animators.length&&s.animators[0].during(function(){c&&c.dirtyShape();for(var e=s.shape.__points,t=0;t<g.length;t++){var n=g[t].el,r=g[t].ptIdx*2;n.x=e[r],n.y=e[r+1],n.markRedraw()}})}},t.prototype.remove=function(e){var t=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(e,r){e.__temp&&(t.remove(e),n.setItemGraphicEl(r,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type=`line`,t}(rb);function Yx(e,t){return{seriesType:e,plan:eb(),reset:function(e){var n=e.getData(),r=e.coordinateSystem,i=e.pipelineContext,a=t||i.large;if(r){var o=B(r.dimensions,function(e){return n.mapDimension(e)}).slice(0,2),s=o.length,c=n.getCalculationInfo(`stackResultDimension`);cg(n,o[0])&&(o[0]=c),cg(n,o[1])&&(o[1]=c);var l=n.getStore(),u=n.getDimensionIndex(o[0]),d=n.getDimensionIndex(o[1]);return s&&{progress:function(e,t){for(var n=e.end-e.start,i=a&&Uy(n*s),o=[],c=[],f=e.start,p=0;f<e.end;f++){var m=void 0;if(s===1){var h=l.get(u,f);m=r.dataToPoint(h,null,c)}else o[0]=l.get(u,f),o[1]=l.get(d,f),m=r.dataToPoint(o,null,c);a?(i[p++]=m[0],i[p++]=m[1]):t.setItemLayout(f,m.slice())}a&&(t.setLayout(`points`,i),t.setLayout(`pointsRange`,{start:e.start,end:e.end}))}}}}}}var Xx={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]}},Zx=function(e){return Math.round(e.length/2)};function Qx(e){return{seriesType:e,reset:function(e,t,n){var r=e.getData(),i=e.get(`sampling`),a=e.coordinateSystem,o=r.count();if(o>10&&a.type===`cartesian2d`&&i){var s=a.getBaseAxis(),c=a.getOtherAxis(s),l=s.getExtent(),u=n.getDevicePixelRatio(),d=Math.abs(l[1]-l[0])*(u||1),f=Math.round(o/d);if(isFinite(f)&&f>1){i===`lttb`?e.setData(r.lttbDownSample(r.mapDimension(c.dim),1/f)):i===`minmax`&&e.setData(r.minmaxDownSample(r.mapDimension(c.dim),1/f));var p=void 0;W(i)?p=Xx[i]:U(i)&&(p=i),p&&e.setData(r.downSample(r.mapDimension(c.dim),1/f,p,Zx))}}}}}function $x(e){e.registerChartView(Jx),e.registerSeriesModel(Dy),e.registerLayout(Yx(`line`,!0)),e.registerVisual({seriesType:`line`,reset:function(e){var t=e.getData(),n=e.getModel(`lineStyle`).getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual(`style`).fill),t.setVisual(`legendLineStyle`,n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Qx(`line`))}var eS=_l(),tS=_l(),nS={estimate:1,determine:2};function rS(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function iS(e,t){var n=e.getLabelModel().get(`customValues`);if(n){var r=e.scale;return{labels:B(oS(n,r),function(t,n){return{formattedLabel:yx(e)(t,n),rawLabel:r.getLabel(t),tick:t}})}}return e.type===`category`?sS(e,t):uS(e)}function aS(e,t,n){var r=e.scale,i=e.getTickModel().get(`customValues`);return i?{ticks:oS(i,r)}:e.type===`category`?lS(e,t):{ticks:r.getTicks(n)}}function oS(e,t){var n=t.getExtent(),r=[];return z(e,function(e){e=t.parse(e),e>=n[0]&&e<=n[1]&&r.push(e)}),zl(r,Vl,null),bc(r),B(r,function(e){return{value:e}})}function sS(e,t){var n=e.getLabelModel(),r=cS(e,n,t);return!n.get(`show`)||e.scale.isBlank()?{labels:[]}:r}function cS(e,t,n){var r=fS(e),i=xx(t),a=n.kind===nS.estimate;if(!a){var o=mS(r,i);if(o)return o}var s,c;U(i)?s=xS(e,i,!1):(c=i===`auto`?gS(e,n):i,s=xS(e,c,!1));var l={labels:s,labelCategoryInterval:c};return a?n.out.noPxChangeTryDetermine.push(function(){return hS(r,i,l),!0}):hS(r,i,l),l}function lS(e,t){var n=dS(e),r=xx(t),i=mS(n,r);if(i)return i;var a,o;if((!t.get(`show`)||e.scale.isBlank())&&(a=[]),U(r))a=xS(e,r,!0);else if(r===`auto`){var s=cS(e,e.getLabelModel(),rS(nS.determine));o=s.labelCategoryInterval,a=B(s.labels,function(e){return e.tick})}else o=r,a=xS(e,o,!0);return hS(n,r,{ticks:a,tickCategoryInterval:o})}function uS(e){var t=e.scale.getTicks(),n=yx(e);return{labels:B(t,function(t,r){return{formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tick:t}})}}var dS=pS(`axisTick`),fS=pS(`axisLabel`);function pS(e){return function(t){return tS(t)[e]||(tS(t)[e]={list:[]})}}function mS(e,t){for(var n=0;n<e.list.length;n++)if(e.list[n].key===t)return e.list[n].value}function hS(e,t,n){return e.list.push({key:t,value:n}),n}function gS(e,t){if(t.kind===nS.estimate){var n=e.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return tS(e).autoInterval=n,!0}),n}return tS(e).autoInterval??(tS(e).autoInterval=e.calculateCategoryInterval(t))}function _S(e,t){var n=t.kind,r=bS(e),i=yx(e),a=(r.axisRotate-r.labelRotate)/180*Math.PI,o=e.scale,s=o.getExtent(),c=o.count();if(s[1]-s[0]<1)return 0;var l=1,u=40;c>u&&(l=Math.max(1,Math.floor(c/u)));for(var d=s[0],f=e.dataToCoord(d+1)-e.dataToCoord(d),p=Math.abs(f*Math.cos(a)),m=Math.abs(f*Math.sin(a)),h=0,g=0;d<=s[1];d+=l){var _=0,v=0,y=lr(i({value:d}),r.font,`center`,`top`);_=y.width*1.3,v=y.height*1.3,h=Math.max(h,_,7),g=Math.max(g,v,7)}var b=h/p,x=g/m;isNaN(b)&&(b=1/0),isNaN(x)&&(x=1/0);var S=Math.max(0,Math.floor(Math.min(b,x)));return n===nS.estimate?(t.out.noPxChangeTryDetermine.push(V(vS,null,e,S,c)),S):yS(e,S,c)??S}function vS(e,t,n){return yS(e,t,n)==null}function yS(e,t,n){var r=eS(e.model),i=e.getExtent(),a=r.lastAutoInterval,o=r.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-t)<=1&&Math.abs(o-n)<=1&&a>t&&r.axisExtent0===i[0]&&r.axisExtent1===i[1])return a;r.lastTickCount=n,r.lastAutoInterval=t,r.axisExtent0=i[0],r.axisExtent1=i[1]}function bS(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 xS(e,t,n){var r=yx(e),i=e.scale,a=[],o=U(t);return Hb(i,o?0:t,function(e,s){var c=i.getLabel(e);if(o){var l=!!t(e.value,c);if(e.offInterval=!l,!l&&!s)return}a.push(n?e:{formattedLabel:r(e),rawLabel:c,tick:e})}),a}var SS=_l();function CS(e){SS(e).prepare={}}function wS(e){SS(e).fullUpdate={}}function TS(e){return SS(e).prepare}function ES(e){return SS(e).fullUpdate}var DS=Ll(),OS=_l(),kS=_l();function AS(e,t){var n=e.model,r=OS(ES(n.ecModel)).keyed,i=r&&r.get(t);return i&&i.get(n.uid)}function jS(e,t){return PS(AS(e,t))}function MS(e,t){var n=[];return NS(e.model.ecModel,function(e){for(var r=0;r<t.length;r++)t[r]&&e.serByIdx[t[r].seriesIndex]&&n.push(PS(e))}),n}function NS(e,t){var n=OS(ES(e)).keyed;n&&n.each(function(e,n){e.each(function(e,r){t(e,n,r)})})}function PS(e){return{liPosMinGap:e?e.liPosMinGap:void 0}}function FS(e,t){var n=e.model.ecModel,r=OS(ES(n)).axSer;r&&LS(n,r.get(e.model.uid),t)}function IS(e,t,n){var r=AS(e,t);r&&LS(e.model.ecModel,r.sers,n)}function LS(e,t,n){if(t)for(var r=0;r<t.length;r++){var i=t[r];e.isSeriesFiltered(i)||n(i)}}function RS(e,t,n){var r=OS(ES(e)).keyed,i=r&&r.get(t);i&&i.each(function(e){n(e.axis)})}function zS(e,t){var n=e.model,r=OS(ES(n.ecModel)).keys;r&&z(r.get(n.uid),function(e){t(e)})}function BS(e){var t=kS(TS(e)),n=t.keyed||=q();NS(e,function(t,r,i){var a=n.get(r)||n.set(r,q()),o=a.get(i)||a.set(i,{});t.metrics.liPosMinGap&&HS.liPosMinGap(e,t,o)})}function VS(e,t){HS[e]=t}var HS={};function US(e,t,n){if(e){var r=t.ecModel,i=OS(ES(r)),a=e.model.uid,o=i.axSer||=q();(o.get(a)||o.set(a,[])).push(t);var s=t.subType,c=t.getBaseAxis()===e,l=KS.get(WS(s,c,n))||KS.get(WS(s,c,null));if(l){var u=i.keyed||=q(),d=i.keys||=q(),f=l.key,p=u.get(f)||u.set(f,q()),m=p.get(a);m||(m=p.set(a,{axis:e,sers:[],serByIdx:[]}),m.metrics=l.getMetrics(e),(d.get(a)||d.set(a,[])).push(f)),m.sers.push(t),m.serByIdx[t.seriesIndex]=t}}}function WS(e,t,n){return e+`|&`+K(t,!0)+`|&`+(n||``)}function GS(e,t){var n=WS(t.seriesType,t.baseAxis,t.coordSysType);KS.set(n,t),DS(e,function(){e.registerProcessor(e.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:BS})})}var KS=q(),qS=.8;function JS(e,t){t||={};var n={w:NaN,w2:NaN},r=e.scale,i=t.fromStat,a=t.min,o=Tb(r);Bc(o)||(o=NaN);var s=e.getExtent(),c=ac(s[1]-s[0]);return Pb(r)?YS(n,e,o,c):i&&XS(n,e,o,c,i),a!=null&&(n.w=Bc(n.w)?ic(a,n.w):a),n}function YS(e,t,n,r){var i=t.onBand,a=n+ +!!i;a===0&&(a=1),e.w=r/a,!i&&n&&r&&(e.w2=e.w*n/r)}function XS(e,t,n,r,i){var a=!1,o=-1/0;z(i.key?[jS(t,i.key)]:MS(t,i.sers||[]),function(e){var t=e.liPosMinGap;t!=null&&(t>0?(t>o&&(o=t),a=!1):t===-2&&(a=!0))}),Bc(n)&&n>0&&Bc(o)?(e.w=r/n*o,e.w2=o):a&&(e.w=r*qS,e.w2=e.w*n/r)}var ZS=[0,1],QS=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return e>=n&&e<=r},e.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this.scale;return e=n.normalize(n.parse(e)),mc(e,ZS,$S(this),t)},e.prototype.coordToData=function(e,t){var n=mc(e,$S(this),ZS,t);return this.scale.scale(n)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){e||={};var t=e.tickModel||this.getTickModel(),n=B(aS(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}).ticks,function(e){return{coord:this.dataToCoord(Ax(this.scale,e)),tick:e}},this),r=t.get(`alignWithLabel`),i=eC(this,n,r);return B(n,function(e){return{coord:e.coord,tickValue:e.tick.value,onBand:i}})},e.prototype.getMinorTicksCoords=function(){if(Pb(this.scale))return[];var e=this.model.getModel(`minorTick`).get(`splitNumber`);return e>0&&e<100||(e=5),B(this.scale.getMinorTicks(e),function(e){return B(e,function(e){return{coord:this.dataToCoord(e),tickValue:e}},this)},this)},e.prototype.getViewLabels=function(e){return e||=rS(nS.determine),iS(this,e).labels},e.prototype.getLabelModel=function(){return this.model.getModel(`axisLabel`)},e.prototype.getTickModel=function(){return this.model.getModel(`axisTick`)},e.prototype.getBandWidth=function(){return JS(this,{min:1}).w},e.prototype.calculateCategoryInterval=function(e){return e||=rS(nS.determine),_S(this,e)},e}();function $S(e){var t=e.getExtent();if(e.onBand){var n=(t[1]-t[0])/e.scale.count()/2;t[0]+=n,t[1]-=n}return t}function eC(e,t,n){var r=t.length;if(!e.onBand||n||!r)return!1;var i=JS(e).w;if(!i)return!1;z(t,function(e){e.coord-=i/2});var a=e.scale.getExtent(),o=t[r-1];return o.tick.offInterval&&t.pop(),t.push({coord:o.coord+i,tick:{value:a[1]+1}}),!0}var tC=function(e){I(t,e);function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.index=0,o.type=i||`value`,o.position=a||`bottom`,o}return t.prototype.isHorizontal=function(){var e=this.position;return e===`top`||e===`bottom`},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e[this.dim===`x`?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if(this.type!==`category`)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(QS),nC=[`label`,`labelLine`,`layoutOption`,`priority`,`defaultAttr`,`marginForce`,`minMarginForce`,`marginDefault`,`suggestIgnore`],rC=1,iC=2,aC=rC|iC;function oC(e,t,n){n||=aC,t?e.dirty|=n:e.dirty&=~n}function sC(e,t){return t||=aC,e.dirty==null||!!(e.dirty&t)}function cC(e){if(e)return sC(e)&&lC(e,e.label,e),e}function lC(e,t,n){var r=t.getComputedTransform();e.transform=Ap(e.transform,r);var i=e.localRect=kp(e.localRect,t.getBoundingRect()),a=t.style,o=a.margin,s=n&&n.marginForce,c=n&&n.minMarginForce,l=n&&n.marginDefault,u=a.__marginType;u==null&&l&&(o=l,u=tm.textMargin);for(var d=0;d<4;d++)uC[d]=u===tm.minMargin&&c&&c[d]!=null?c[d]:s&&s[d]!=null?s[d]:o?o[d]:0;u===tm.textMargin&&xp(i,uC,!1,!1);var f=e.rect=kp(e.rect,i);return r&&f.applyTransform(r),u===tm.minMargin&&xp(f,uC,!1,!1),e.axisAligned=Dp(r),(e.label=e.label||{}).ignore=t.ignore,oC(e,!1),oC(e,!0,iC),e}var uC=[0,0,0,0];function dC(e,t,n){return e.transform=Ap(e.transform,n),e.localRect=kp(e.localRect,t),e.rect=kp(e.rect,t),n&&e.rect.applyTransform(n),e.axisAligned=Dp(n),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}function fC(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 pC(e,t){for(var n=0;n<nC.length;n++){var r=nC[n];e[r]??(e[r]=t[r])}return cC(e)}function mC(e){var t=e.obb;return(!t||sC(e,iC))&&(e.obb=t||=new Mf,t.fromBoundingRect(e.localRect,e.transform),oC(e,!1,iC)),t}function hC(e,t,n,r,i){var a=e.length,o=qf[t],s=Jf[t];if(a<2)return!1;e.sort(function(e,t){return e.rect[o]-t.rect[o]});for(var c=0,l,u=!1,d=0,f=0;f<a;f++){var p=e[f],m=p.rect;l=m[o]-c,l<0&&(m[o]-=l,p.label[o]-=l,u=!0);var h=Math.max(-l,0);d+=h,c=m[o]+m[s]}d>0&&i&&S(-d/a,0,a);var g=e[0],_=e[a-1],v,y;b(),v<0&&C(-v,.8),y<0&&C(y,.8),b(),x(v,y,1),x(y,v,-1),b(),v<0&&w(-v),y<0&&w(y);function b(){v=g.rect[o]-n,y=r-_.rect[o]-_.rect[s]}function x(e,t,n){if(e<0){var r=Math.min(t,-e);if(r>0){S(r*n,0,a);var i=r+e;i<0&&C(-i*n,1)}else C(-e*n,1)}}function S(t,n,r){t!==0&&(u=!0);for(var i=n;i<r;i++){var a=e[i],s=a.rect;s[o]+=t,a.label[o]+=t}}function C(t,n){for(var r=[],i=0,c=1;c<a;c++){var l=e[c-1].rect,u=Math.max(e[c].rect[o]-l[o]-l[s],0);r.push(u),i+=u}if(i){var d=Math.min(Math.abs(t)/i,n);if(t>0)for(var c=0;c<a-1;c++){var f=r[c]*d;S(f,0,c+1)}else for(var c=a-1;c>0;c--){var f=r[c-1]*d;S(-f,c,a)}}}function w(e){var t=e<0?-1:1;e=Math.abs(e);for(var n=Math.ceil(e/(a-1)),r=0;r<a-1;r++)if(t>0?S(n,0,r+1):S(-n,a-r-1,a),e-=n,e<=0)return}return u}function gC(e){var t=[];e.sort(function(e,t){return+!!t.suggestIgnore-!!e.suggestIgnore||t.priority-e.priority});function n(e){if(!e.ignore){var t=e.ensureState(`emphasis`);t.ignore??=!1}e.ignore=!0}for(var r=0;r<e.length;r++){var i=cC(e[r]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,c=0;c<t.length;c++)if(_C(i,t[c],null,{touchThreshold:.05})){s=!0;break}s?(n(a),o&&n(o)):t.push(i)}}}function _C(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:mC(e).intersect(mC(t),n,r)}var vC=null;function yC(){return vC}var bC=`expandAxisBreak`,xC=Math.PI,SC=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],CC=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],wC=_l(),TC=_l(),EC=function(){function e(e){this.recordMap={},this.resolveAxisNameOverlap=e}return e.prototype.ensureRecord=function(e){var t=e.axis.dim,n=e.componentIndex,r=this.recordMap,i=r[t]||(r[t]=[]);return i[n]||(i[n]={ready:{}})},e}();function DC(e,t,n,r){var i=n.axis,a=t.ensureRecord(n),o=[],s,c=ZC(e.axisName)&&Tx(e.nameLocation);z(r,function(e){var t=cC(e);if(t&&!t.label.ignore){o.push(t);var n=a.transGroup;c&&(n.transform?gn(OC,n.transform):un(OC),t.transform&&fn(OC,OC,t.transform),X.copy(kC,t.localRect),kC.applyTransform(OC),s?s.union(kC):X.copy(s=new X(0,0,0,0),kC))}});var l=Math.abs(a.dirVec.x)>.1?`x`:`y`,u=a.transGroup[l];if(o.sort(function(e,t){return Math.abs(e.label[l]-u)-Math.abs(t.label[l]-u)}),c&&s){var d=i.getExtent(),f=Math.min(d[0],d[1]),p=Math.max(d[0],d[1])-f;s.union(new X(f,0,p,1))}a.stOccupiedRect=s,a.labelInfoList=o}var OC=ln(),kC=new X(0,0,0,0),AC=function(e,t,n,r,i,a){if(Tx(e.nameLocation)){var o=a.stOccupiedRect;o&&jC(dC({},o,a.transGroup.transform),r,i)}else MC(a.labelInfoList,a.dirVec,r,i)};function jC(e,t,n){var r=new Y;_C(e,t,r,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&fC(t,r)}function MC(e,t,n,r){for(var i=Y.dot(r,t)>=0,a=0,o=e.length;a<o;a++){var s=e[i?a:o-1-a];s.label.ignore||jC(s,n,r)}}var NC=function(){function e(e,t,n,r){this.group=new Pd,this._axisModel=e,this._api=t,this._local={},this._shared=r||new EC(AC),this._resetCfgDetermined(n)}return e.prototype.updateCfg=function(e){var t=this._cfg.raw;t.position=e.position,t.labelOffset=e.labelOffset,this._resetCfgDetermined(t)},e.prototype.__getRawCfg=function(){return this._cfg.raw},e.prototype._resetCfgDetermined=function(e){var t=this._axisModel,n=t.getDefaultOption?t.getDefaultOption():{},r=K(e.axisName,t.get(`name`)),i=t.get(`nameMoveOverlap`);(i==null||i===`auto`)&&(i=K(e.defaultNameMoveOverlap,!0));var a={raw:e,position:e.position,rotation:e.rotation,nameDirection:K(e.nameDirection,1),tickDirection:K(e.tickDirection,1),labelDirection:K(e.labelDirection,1),labelOffset:K(e.labelOffset,0),silent:K(e.silent,!0),axisName:r,nameLocation:vt(t.get(`nameLocation`),n.nameLocation,`end`),shouldNameMoveOverlap:ZC(r)&&i,optionHideOverlap:t.get([`axisLabel`,`hideOverlap`]),showMinorTicks:t.get([`minorTick`,`show`])};this._cfg=a;var o=new Pd({x:a.position[0],y:a.position[1],rotation:a.rotation});o.updateTransform(),this._transformGroup=o;var s=this._shared.ensureRecord(t);s.transGroup=this._transformGroup,s.dirVec=new Y(Math.cos(-a.rotation),Math.sin(-a.rotation))},e.prototype.build=function(e,t){var n=this;return e||={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0},z(PC,function(r){e[r]&&FC[r](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,t||{})}),this},e.innerTextLayout=function(e,t,n){var r=Dc(t-e),i,a;return Oc(r)?(a=n>0?`top`:`bottom`,i=`center`):Oc(r-xC)?(a=n>0?`bottom`:`top`,i=`center`):(a=`middle`,i=r>0&&r<xC?n>0?`right`:`left`:n>0?`left`:`right`),{rotation:r,textAlign:i,textVerticalAlign:a}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+`Index`]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get(`tooltip`);return e.get(`silent`)||!(e.get(`triggerEvent`)||t&&t.show)},e}(),PC=[`axisLine`,`axisTickLabelEstimate`,`axisTickLabelDetermine`,`axisName`],FC={axisLine:function(e,t,n,r,i,a,o){var s=r.get([`axisLine`,`show`]);if(s===`auto`&&(s=!0,e.raw.axisLineAutoShow!=null&&(s=!!e.raw.axisLineAutoShow)),s){var c=r.axis.getExtent(),l=a.transform,u=[c[0],0],d=[c[1],0],f=u[0]>d[0];l&&(jn(u,u,l),jn(d,d,l));var p=R({lineCap:`round`},r.getModel([`axisLine`,`lineStyle`]).getLineStyle()),m={strokeContainThreshold:e.raw.strokeContainThreshold||5,silent:!0,z2:1,style:p};if(r.get([`axisLine`,`breakLine`])&&Xg(r.axis.scale))yC().buildAxisBreakLine(r,i,a,m);else{var h=new pf(R({shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]}},m));ap(h.shape,h.style.lineWidth),h.anid=`line`,i.add(h)}var g=r.get([`axisLine`,`symbol`]);if(g!=null){var _=r.get([`axisLine`,`symbolSize`]);W(g)&&(g=[g,g]),(W(_)||dt(_))&&(_=[_,_]);var v=Ey(r.get([`axisLine`,`symbolOffset`])||0,_),y=_[0],b=_[1];z([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((u[0]-d[0])*(u[0]-d[0])+(u[1]-d[1])*(u[1]-d[1]))}],function(t,n){if(g[n]!==`none`&&g[n]!=null){var r=wy(g[n],-y/2,-b/2,y,b,p.stroke,!0),a=t.r+t.offset,o=f?d:u;r.attr({rotation:t.rotate,x:o[0]+a*Math.cos(e.rotation),y:o[1]-a*Math.sin(e.rotation),silent:!0,z2:11}),i.add(r)}})}}},axisTickLabelEstimate:function(e,t,n,r,i,a,o,s){WC(t,i,s)&&IC(e,t,n,r,i,a,o,nS.estimate)},axisTickLabelDetermine:function(e,t,n,r,i,a,o,s){WC(t,i,s)&&IC(e,t,n,r,i,a,o,nS.determine);var c=HC(e,i,a,r);zC(e,t.labelLayoutList,c),UC(e,i,a,r,e.tickDirection)},axisName:function(e,t,n,r,i,a,o,s){var c=n.ensureRecord(r);t.nameEl&&=(i.remove(t.nameEl),c.nameLayout=c.nameLocation=null);var l=e.axisName;if(ZC(l)){var u=e.nameLocation,d=e.nameDirection,f=r.getModel(`nameTextStyle`),p=r.get(`nameGap`)||0,m=r.axis.getExtent(),h=r.axis.inverse?-1:1,g=new Y(0,0),_=new Y(0,0);u===`start`?(g.x=m[0]-h*p,_.x=-h):u===`end`?(g.x=m[1]+h*p,_.x=h):(g.x=(m[0]+m[1])/2,g.y=e.labelOffset+d*p,_.y=d);var v=ln();_.transform(mn(v,v,e.rotation));var y=r.get(`nameRotate`);y!=null&&(y=y*xC/180);var b,x;Tx(u)?b=NC.innerTextLayout(e.rotation,y??e.rotation,d):(b=LC(e.rotation,u,y||0,m),x=e.raw.axisNameAvailableWidth,x!=null&&(x=Math.abs(x/Math.sin(b.rotation)),!isFinite(x)&&(x=null)));var S=f.getFont(),C=r.get(`nameTruncate`,!0)||{},w=C.ellipsis,T=_t(e.raw.nameTruncateMaxWidth,C.maxWidth,x),E=s.nameMarginLevel||0,D=new Bs({x:g.x,y:g.y,rotation:b.rotation,silent:NC.isLabelSilent(r),style:Wp(f,{text:l,font:S,overflow:`truncate`,width:T,ellipsis:w,fill:f.getTextColor()||r.get([`axisLine`,`lineStyle`,`color`]),align:f.get(`align`)||b.textAlign,verticalAlign:f.get(`verticalAlign`)||b.textVerticalAlign}),z2:1});if(wp({el:D,componentModel:r,itemName:l}),D.__fullText=l,D.anid=`name`,r.get(`triggerEvent`)){var O=NC.makeAxisEventDataBase(r);O.targetType=`axisName`,O.name=l,Kl(D).eventData=O}a.add(D),D.updateTransform(),t.nameEl=D;var k=c.nameLayout=cC({label:D,priority:D.z2,defaultAttr:{ignore:D.ignore},marginDefault:Tx(u)?SC[E]:CC[E]});if(c.nameLocation=u,i.add(D),D.decomposeTransform(),e.shouldNameMoveOverlap&&k){var A=n.ensureRecord(r);n.resolveAxisNameOverlap(e,n,r,k,_,A)}}}};function IC(e,t,n,r,i,a,o,s){KC(t)||GC(e,t,i,s,r,o);var c=t.labelLayoutList;JC(e,r,c,a),$C(r,e.rotation,c);var l=e.optionHideOverlap;RC(r,c,l),l&&gC(at(c,function(e){return e&&!e.label.ignore})),DC(e,n,r,c)}function LC(e,t,n,r){var i=Dc(n-e),a,o,s=r[0]>r[1],c=t===`start`&&!s||t!==`start`&&s;return Oc(i-xC/2)?(o=c?`bottom`:`top`,a=`center`):Oc(i-xC*1.5)?(o=c?`top`:`bottom`,a=`center`):(o=`middle`,a=i<xC*1.5&&i>xC/2?c?`left`:`right`:c?`right`:`left`),{rotation:i,textAlign:a,textVerticalAlign:o}}function RC(e,t,n){var r=e.axis,i=e.get([`axisLabel`,`customValues`]);if(Sx(r))return;function a(e,a,o){var s=cC(t[a]),c=cC(t[o]),l=r.scale;if(s&&c){if(e==null){if(!n&&i)return;var u=wC(s.label).labelInfo.tick;if(Mb(l)&&u.notNice||Pb(l)&&u.offInterval){BC(s.label);return}}if(e===!1||s.suggestIgnore)BC(s.label);else if(c.suggestIgnore)BC(c.label);else{var d=.1;if(!n){var f=[0,0,0,0];s=pC({marginForce:f},s),c=pC({marginForce:f},c)}_C(s,c,null,{touchThreshold:d})&&BC(e?c.label:s.label)}}}var o=e.get([`axisLabel`,`showMinLabel`]),s=e.get([`axisLabel`,`showMaxLabel`]),c=t.length;a(o,0,1),a(s,c-1,c-2)}function zC(e,t,n){e.showMinorTicks||z(t,function(e){if(e&&e.label.ignore)for(var t=0;t<n.length;t++){var r=n[t],i=TC(r),a=wC(e.label);if(i.tickValue!=null&&!i.onBand&&i.tickValue===a.labelInfo.tick.value){BC(r);return}}})}function BC(e){e&&(e.ignore=!0)}function VC(e,t,n,r,i){for(var a=[],o=[],s=[],c=0;c<e.length;c++){var l=e[c].coord;o[0]=l,o[1]=0,s[0]=l,s[1]=n,t&&(jn(o,o,t),jn(s,s,t));var u=new pf({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});ap(u.shape,u.style.lineWidth),u.anid=i+`_`+e[c].tickValue,a.push(u);var d=TC(u);d.onBand=!!e[c].onBand,d.tickValue=e[c].tickValue}return a}function HC(e,t,n,r){var i=r.axis,a=r.getModel(`axisTick`),o=a.get(`show`);if(o===`auto`&&(o=!0,e.raw.axisTickAutoShow!=null&&(o=!!e.raw.axisTickAutoShow)),!o||i.scale.isBlank())return[];for(var s=a.getModel(`lineStyle`),c=e.tickDirection*a.get(`length`),l=VC(i.getTicksCoords(),n.transform,c,$e(s.getLineStyle(),{stroke:r.get([`axisLine`,`lineStyle`,`color`])}),`ticks`),u=0;u<l.length;u++)t.add(l[u]);return l}function UC(e,t,n,r,i){var a=r.axis,o=r.getModel(`minorTick`);if(e.showMinorTicks&&!a.scale.isBlank()){var s=a.getMinorTicksCoords();if(s.length)for(var c=o.getModel(`lineStyle`),l=i*o.get(`length`),u=$e(c.getLineStyle(),$e(r.getModel(`axisTick`).getLineStyle(),{stroke:r.get([`axisLine`,`lineStyle`,`color`])})),d=0;d<s.length;d++)for(var f=VC(s[d],n.transform,l,u,`minorticks_`+d),p=0;p<f.length;p++)t.add(f[p])}}function WC(e,t,n){if(KC(e)){var r=e.axisLabelsCreationContext.out.noPxChangeTryDetermine;if(n.noPxChange){for(var i=!0,a=0;a<r.length;a++)i&&=r[a]();if(i)return!1}r.length&&(t.remove(e.labelGroup),qC(e,null,null,null))}return!0}function GC(e,t,n,r,i,a){var o=i.axis,s=_t(e.raw.axisLabelShow,i.get([`axisLabel`,`show`])),c=new Pd;n.add(c);var l=rS(r);if(!s||o.scale.isBlank())qC(t,[],c,l);else{var u=i.getModel(`axisLabel`),d=o.getViewLabels(l),f=(_t(e.raw.labelRotate,u.get(`rotate`))||0)*xC/180,p=NC.innerTextLayout(e.rotation,f,e.labelDirection),m=i.getCategories&&i.getCategories(!0),h=[],g=i.get(`triggerEvent`),_=1/0,v=-1/0;z(d,function(e,t){var n=e.tick,r=e.formattedLabel,s=e.rawLabel,l=u,f=Ax(o.scale,n);if(m&&m[f]){var y=m[f];G(y)&&y.textStyle&&(l=new fm(y.textStyle,u,i.ecModel))}var b=l.getTextColor()||i.get([`axisLine`,`lineStyle`,`color`]),x=l.getShallow(`align`,!0)||p.textAlign,S=K(l.getShallow(`alignMinLabel`,!0),x),C=K(l.getShallow(`alignMaxLabel`,!0),x),w=l.getShallow(`verticalAlign`,!0)||l.getShallow(`baseline`,!0)||p.textVerticalAlign,T=K(l.getShallow(`verticalAlignMinLabel`,!0),w),E=K(l.getShallow(`verticalAlignMaxLabel`,!0),w),D=10+(n.time?.level||0);_=Math.min(_,D),v=Math.max(v,D);var O=new Bs({x:0,y:0,rotation:0,silent:NC.isLabelSilent(i),z2:D,style:Wp(l,{text:r,align:t===0?S:t===d.length-1?C:x,verticalAlign:t===0?T:t===d.length-1?E:w,fill:U(b)?b(o.type===`category`?s:o.type===`value`?f+``:f,t):b})});O.anid=`label_`+f;var k=wC(O);if(k.labelInfo=e,k.layoutRotation=p.rotation,wp({el:O,componentModel:i,itemName:r,formatterParamsExtra:{isTruncated:function(){return O.isTruncated},value:s,tickIndex:t}}),g){var A=NC.makeAxisEventDataBase(i);A.targetType=`axisLabel`,A.value=s,A.tickIndex=t;var j=e.tick.break;if(j){var M=j.parsedBreak;A.break={start:M.vmin,end:M.vmax}}o.type===`category`&&(A.dataIndex=f),Kl(O).eventData=A,j&&QC(i,a,O,j)}h.push(O),c.add(O)}),qC(t,B(h,function(e){return{label:e,priority:wC(e).labelInfo.tick.break?e.z2+(v-_+1):e.z2,defaultAttr:{ignore:e.ignore}}}),c,l)}}function KC(e){return!!e.labelLayoutList}function qC(e,t,n,r){e.labelLayoutList=t,e.labelGroup=n,e.axisLabelsCreationContext=r}function JC(e,t,n,r){var i=t.get([`axisLabel`,`margin`]);z(n,function(n,a){var o=cC(n);if(o){var s=o.label,c=wC(s);o.suggestIgnore=s.ignore,s.ignore=!1,qr(YC,XC);var l=t.axis;YC.x=l.dataToCoord(Ax(l.scale,c.labelInfo.tick)),YC.y=e.labelOffset+e.labelDirection*i,YC.rotation=c.layoutRotation,r.add(YC),YC.updateTransform(),r.remove(YC),YC.decomposeTransform(),qr(s,YC),s.markRedraw(),oC(o,!0),cC(o)}})}var YC=new Fs,XC=new Fs;function ZC(e){return!!e}function QC(e,t,n,r){n.on(`click`,function(n){var i={type:bC,breaks:[{start:r.parsedBreak.breakOption.start,end:r.parsedBreak.breakOption.end}]};i[e.axis.dim+`AxisIndex`]=e.componentIndex,t.dispatchAction(i)})}function $C(e,t,n){var r=qg();if(r){var i=r.retrieveAxisBreakPairs(n,function(e){return e&&wC(e.label).labelInfo.tick.break},!0),a=e.get([`breakLabelLayout`,`moveOverlap`],!0);(a===!0||a===`auto`)&&z(i,function(r){yC().adjustBreakLabelPair(e.axis.inverse,t,[cC(n[r[0]]),cC(n[r[1]])])})}}function ew(e,t,n){n||={};var r=t.axis,i={},a=r.getAxesOnZeroOf()[0],o=r.position,s=a?`onZero`:o,c=r.dim,l=[e.x,e.x+e.width,e.y,e.y+e.height],u={left:0,right:1,top:0,bottom:1,onZero:2},d=t.get(`offset`)||0,f=c===`x`?[l[2]-d,l[3]+d]:[l[0]-d,l[1]+d];if(a){var p=a.toGlobalCoord(a.dataToCoord(0));f[u.onZero]=Math.max(Math.min(p,f[1]),f[0])}i.position=[c===`y`?f[u[s]]:l[0],c===`x`?f[u[s]]:l[3]],i.rotation=Math.PI/2*(c===`x`?0:1),i.labelDirection=i.tickDirection=i.nameDirection={top:-1,bottom:1,left:-1,right:1}[o],i.labelOffset=a?f[u[o]]-f[u.onZero]:0,t.get([`axisTick`,`inside`])&&(i.tickDirection=-i.tickDirection),_t(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 tw(e){return e.coordinateSystem&&e.coordinateSystem.type===`cartesian2d`}function nw(e){var t={xAxisModel:null,yAxisModel:null};return z(t,function(n,r){var i=r.replace(/Model$/,``);t[r]=e.getReferringComponents(i,xl).models[0]}),t}function rw(e,t,n,r,i,a){for(var o=ew(e,n),s=!1,c=!1,l=0;l<t.length;l++)Ab(t[l].getOtherAxis(n.axis).scale)&&(s=c=!0,n.axis.type===`category`&&n.axis.onBand&&(c=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=c,o.defaultNameMoveOverlap=a,new NC(n,r,o,i)}function iw(e,t,n){var r=ew(t,n);e.updateCfg(r)}var aw=_l(),ow=3,sw=function(){function e(e,t,n,r,i){var a=Pb(e),o=a?t.getCategories().length:null,s;if(a){var c=t.getCategories(!0);s=c&&!c.length}var l=n.slice();(jb(e)||Nb(e)||Mb(e))&&(Al(l,lw(e,t.get(`dataMin`,!0))),jl(l,lw(e,t.get(`dataMax`,!0)))),Fl(l)||(l[0]=l[1]=NaN);var u=[],d=[!1,!1],f=t.get(`min`,!0);f===`dataMin`?(u[0]=l[0],d[0]=!0):(u[0]=lw(e,U(f)?f({min:l[0],max:l[1]}):f),d[0]=u[0]!=null);var p=t.get(`max`,!0);p===`dataMax`?(u[1]=l[1],d[1]=!0):(u[1]=lw(e,U(p)?p({min:l[0],max:l[1]}):p),d[1]=u[1]!=null);var m=uw(e,t),h=a?null:l[1]-l[0]||Math.abs(l[0]);u[0]??=a?s?l[0]:o?0:NaN:l[0]-m[0]*h,u[1]??=a?s?l[1]:o?o-1:NaN:l[1]+m[1]*h,!Nl(u[0])&&(u[0]=NaN),!Nl(u[1])&&(u[1]=NaN);var g=s||gt(u[0])||gt(u[1])||a&&!o,_=jb(e),v=_&&t.needIncludeZero&&t.needIncludeZero();v&&(u[0]>0&&u[1]>0&&!d[0]&&(u[0]=0),u[0]<0&&u[1]<0&&!d[1]&&(u[1]=0));var y=!1;u[0]>u[1]&&(u.reverse(),y=!0);var b=lw(e,t.get(`startValue`,!0)),x=b!=null;!Bc(b)&&r&&(b=e.getDefaultStartValue?e.getDefaultStartValue():0),Bc(b)&&(x||!_||v)&&(b<u[0]&&!d[0]?(u[0]=b,d[0]=!0):b>u[1]&&!d[1]&&(u[1]=b,d[1]=!0)),cw(this._i={scale:e,dataMM:l,noZoomEffMM:u,zoomMM:[],fixMM:d,zoomFixMM:[!1,!1],startValue:b,isBlank:g,incl0:v,tggAxInv:y,ctnShp:i},u)}return e.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},e.prototype.makeFinal=function(){var e=this._i,t=e.zoomMM,n=e.noZoomEffMM,r=e.zoomFixMM,i=e.fixMM,a={fixMM:i,zoomFixMM:r,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:n.slice()},o=a.effMM;return t[0]!=null&&(o[0]=t[0],i[0]=r[0]=!0),t[1]!=null&&(o[1]=t[1],i[1]=r[1]=!0),cw(e,o),a},e.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},e.prototype.setZoomMM=function(e,t){this._i.zoomMM[e]=t},e}();function cw(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),Il(t))}function lw(e,t){return t==null?null:gt(t)?NaN:e.parse(t)}function uw(e,t){var n;if(Pb(e))n=[0,0];else{var r=t.get(`boundaryGap`);typeof r==`boolean`&&(r=null),n=H(r)?r:[r,r]}return[dw(n[0]),dw(n[1])]}function dw(e){return pr(typeof e==`boolean`?0:e,1)||0}function fw(e){var t=aw(e.scale);return t.extent||=Ol(),t}function pw(e,t){fw(e).dimIdxInCoord=t.get(e.dim)}function mw(e,t){var n=e.scale,r=e.model,i=e.dim;n.rawExtentInfo||hw(n,e,i,r,t)}function hw(e,t,n,r,i){var a=fw(t),o=a.extent,s=!1;FS(t,function(r){if(r.boxCoordinateSystem){var i=$h(r).coord,c=a.dimIdxInCoord;if(c>=0&&H(i)){var l=i[c];l!=null&&!H(l)&&kl(o,e.parse(l))}}else if(r.coordinateSystem){var u=r.getData();if(u){var d=e.getFilter?e.getFilter():null;z(Cx(u,n),function(e){Ml(o,u.getApproximateExtent(e,d))})}r.__requireStartValue&&r.__requireStartValue(t)&&(s=!0)}});var c=xw(e,t,r);_w(e,new sw(e,r,o,s,c),i),a.extent=null}function gw(e,t){var n=e.scale;_w(n,new sw(n,e.model,t,!1,!1),ow)}function _w(e,t,n){e.rawExtentInfo=t,t.from=n}function vw(e,t){yw.set(e,t)}var yw=q();function bw(e,t,n,r,i){e.rawExtentInfo||gw({scale:e,model:t},i||Ol());var a=e.rawExtentInfo.makeFinal(),o=a.effMM;return e.setExtent(o[0],o[1]),e.setBlank(a.isBlank),r&&a.tggAxInv&&n&&!n.get(`legacyMinMaxDontInverseAxis`)&&(r.inverse=!r.inverse),a}function xw(e,t,n){var r=jx(e,n),i=n.get(`containShape`,!0);if(i==null&&!r&&(i=!0),!i)return!1;var a=!1;return zS(t,function(e){a=!!yw.get(e)||a}),a}function Sw(e,t,n,r){if(n.ctnShp){var i;if(zS(e,function(t){var n=yw.get(t);if(n){var a=n(e,r);a&&(i||=[0,0],Al(i,a[0]),jl(i,a[1]),_x(e))}}),i){var a=t.getExtent();if(Pb(t))e.onBand||t.setExtent2(1,rc(a[0],a[0]+i[0]),ic(a[1],a[1]+i[1]));else{var o=a.slice();n.zoomFixMM[0]||(o[0]=rc(o[0],t.transformOut(t.transformIn(o[0],null)+i[0],null))),n.zoomFixMM[1]||(o[1]=ic(o[1],t.transformOut(t.transformIn(o[1],null)+i[1],null))),(o[0]<a[0]||o[1]>a[1])&&t.setExtent2(1,o[0],o[1])}}}}function Cw(){VS(`liPosMinGap`,ww)}function ww(e,t,n){var r=q(),i=n.serUids,a=n.liPosMinGap,o,s=t.axis,c=s.scale,l=c.needTransform(),u=c.getFilter?c.getFilter():null,d=uh(u);function f(n){LS(e,t.sers,function(e){var t=e.getRawData(),r=t.getDimensionIndex(t.mapDimension(s.dim));r>=0&&n(r,e,t.getStore())})}var p=0;if(f(function(e,t,n){r.set(t.uid,1),(!i||!i.hasKey(t.uid))&&(o=!0),p+=n.count()}),(!i||i.keys().length!==r.keys().length)&&(o=!0),!o&&a!=null)t.liPosMinGap=a;else{Wy(Tw,p);var m=0;f(function(e,t,n){for(var r=0,i=n.count();r<i;++r){var a=n.get(e,r);isFinite(a)&&(!u||dh(d,a))&&(l&&(a=c.transformIn(a,null)),Tw.arr[m++]=a)}});var h=Tw.typed?Tw.arr.subarray(0,m):(Tw.arr.length=m,Tw.arr);Tw.typed?h.sort():bc(h);for(var g=1/0,_=1;_<m;++_){var v=h[_]-h[_-1];v>0&&v<g&&(g=v)}n.liPosMinGap=t.liPosMinGap=Bc(g)?g:m>0?-2:-1,n.serUids=r}}var Tw=Wy({ctor:Hy},50);function Ew(e){return function(t,n){var r=JS(t,{fromStat:{key:e}});if(Bc(r.w2))return[-r.w2/2,r.w2/2]}}function Dw(e,t){return e+`|&`+t}function Ow(e){return Cw(),{liPosMinGap:!Pb(e.scale)}}function kw(e,t,n,r){GS(e,{key:t,seriesType:n,coordSysType:r,getMetrics:Ow})}function Aw(e){return e.scale.rawExtentInfo.makeRenderInfo().startValue}var jw={left:0,right:0,top:0,bottom:0},Mw=[`25%`,`25%`],Nw=`cartesian2d`,Pw=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(t,n){var r=nv(t.outerBounds);e.prototype.mergeDefaultAndTheme.apply(this,arguments),r&&t.outerBounds&&tv(t.outerBounds,r)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&tv(this.option.outerBounds,t.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:jw,outerBoundsContain:`all`,outerBoundsClampWidth:Mw[0],outerBoundsClampHeight:Mw[1],backgroundColor:Z.color.transparent,borderWidth:1,borderColor:Z.color.neutral30},t}(av),Fw=Ll(),Iw=`__ec_stack_`;function Lw(e){return e.get(`stack`)||Iw+e.seriesIndex}function Rw(e,t){var n=zw(e,t);return n.columnMap=Bw(n),n}function zw(e,t){var n=Dw(t,Nw),r=[],i=JS(e,{fromStat:{key:n},min:1});return IS(e,n,function(e){r.push({barWidth:hc(e.get(`barWidth`),i.w),barMaxWidth:hc(e.get(`barMaxWidth`),i.w),barMinWidth:hc(e.get(`barMinWidth`)||(Uw(e)?.5:1),i.w),barGap:e.get(`barGap`),barCategoryGap:e.get(`barCategoryGap`),defaultBarGap:e.get(`defaultBarGap`),stackId:Lw(e)})}),{bandWidthResult:i,seriesInfo:r}}function Bw(e){var t=e.bandWidthResult.w,n=t,r=0,i,a,o=[],s={};z(e.seriesInfo,function(e,t){t||(a=e.defaultBarGap||0);var c=e.stackId;Mt(s,c)||r++;var l=s[c];l||(l=s[c]={width:0,maxWidth:0},o.push(c));var u=e.barWidth;u&&!l.width&&(l.width=u,u=rc(n,u),n-=u);var d=e.barMaxWidth;d&&(l.maxWidth=d);var f=e.barMinWidth;f&&(l.minWidth=f);var p=e.barGap;p!=null&&(a=p);var m=e.barCategoryGap;m!=null&&(i=m)}),i??=ic(35-o.length*4,15)+`%`;var c=hc(i,t),l=hc(a,1),u=(n-c)/(r+(r-1)*l);u=ic(u,0),z(o,function(e){var t=s[e],i=t.maxWidth,a=t.minWidth;if(t.width){var o=t.width;i&&(o=rc(o,i)),a&&(o=ic(o,a)),t.width=o,n-=o+l*o,r--}else{var o=u;i&&i<o&&(o=rc(i,n)),a&&a>o&&(o=a),o!==u&&(t.width=o,n-=o+l*o,r--)}}),u=(n-c)/(r+(r-1)*l),u=ic(u,0);var d=0,f;z(o,function(e){var t=s[e];t.width||=u,f=t,d+=t.width*(1+l)}),f&&(d-=f.width*l);var p={},m=-d/2;return z(o,function(e){var n=s[e];p[e]=p[e]||{bandWidth:t,offset:m,width:n.width},m+=n.width*(1+l)}),p}function Vw(e){return{seriesType:e,overallReset:function(t){var n=Dw(e,Nw);RS(t,n,function(t){var r=Rw(t,e);IS(t,n,function(e){var t=r.columnMap[Lw(e)];e.getData().setLayout({bandWidth:t.bandWidth,offset:t.offset,size:t.width})})})}}}function Hw(e){return{seriesType:e,plan:eb(),reset:function(e){if(tw(e)){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),a=t.getDimensionIndex(t.mapDimension(i.dim)),o=t.getDimensionIndex(t.mapDimension(r.dim)),s=e.get(`showBackground`,!0),c=t.mapDimension(i.dim),l=t.getCalculationInfo(`stackResultDimension`),u=cg(t,c)&&!!t.getCalculationInfo(`stackedOnSeries`),d=i.isHorizontal(),f=i.toGlobalCoord(i.dataToCoord(Aw(i))),p=Uw(e),m=e.get(`barMinHeight`)||0,h=l&&t.getDimensionIndex(l),g=t.getLayout(`size`),_=t.getLayout(`offset`);return{progress:function(e,t){for(var r=e.count,i=p&&Uy(r*3),c=p&&s&&Uy(r*3),l=p&&Uy(r),v=n.master.getRect(),y=d?v.width:v.height,b,x=t.getStore(),S=0;(b=e.next())!=null;){var C=x.get(u?h:a,b),w=x.get(o,b),T=f,E=void 0;u&&(E=+C-x.get(a,b));var D=void 0,O=void 0,k=void 0,A=void 0;if(d){var j=n.dataToPoint([C,w]);u&&(T=n.dataToPoint([E,w])[0]),D=T,O=j[1]+_,k=j[0]-T,A=g,ac(k)<m&&(k=(k<0?-1:1)*m)}else{var j=n.dataToPoint([w,C]);u&&(T=n.dataToPoint([w,E])[1]),D=j[0]+_,O=T,k=g,A=j[1]-T,ac(A)<m&&(A=(A<=0?-1:1)*m)}p?(i[S]=D,i[S+1]=O,i[S+2]=d?k:A,c&&(c[S]=d?v.x:D,c[S+1]=d?O:v.y,c[S+2]=y),l[b]=b):t.setItemLayout(b,{x:D,y:O,width:k,height:A}),S+=3}p&&t.setLayout({largePoints:i,largeDataIndices:l,largeBackgroundPoints:c,valueAxisHorizontal:d})}}}}}}function Uw(e){return e.pipelineContext&&e.pipelineContext.large}function Ww(e){return Ew(Dw(e,Nw))}function Gw(e){Fw(e,function(){function t(t){var n=Dw(t,Nw);kw(e,n,t,Nw),vw(n,Ww(t))}t(`bar`),t(`pictorialBar`)})}var Kw=function(e){I(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(e,t){return fg(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,t,n){var r=this.coordinateSystem;if(r&&r.clampData){var i=r.clampData(e),a=r.dataToPoint(i);if(n)z(r.getAxes(),function(e,n){if(e.type===`category`&&t!=null){var r=e.getTicksCoords(),o=e.getTickModel().get(`alignWithLabel`),s=i[n],c=t[n]===`x1`||t[n]===`y1`;if(c&&!o&&(s+=1),r.length<2)return;if(r.length===2){a[n]=e.toGlobalCoord(e.getExtent()[+!!c]);return}for(var l=void 0,u=void 0,d=1,f=0;f<r.length;f++){var p=r[f].coord,m=f===r.length-1?r[f-1].tickValue+d:r[f].tickValue;if(m===s){u=p;break}if(m<s)l=p;else if(l!=null&&m>s){u=(p+l)/2;break}f===1&&(d=m-r[0].tickValue)}u??(l?l&&(u=r[r.length-1].coord):u=r[0].coord),a[n]=e.toGlobalCoord(u)}});else{var o=this.getData(),s=o.getLayout(`offset`),c=o.getLayout(`size`),l=+!r.getBaseAxis().isHorizontal();a[l]+=s+c/2}return a}return[NaN,NaN]},t.prototype.__requireStartValue=function(e){return this.getBaseAxis()!==e},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}(ly);ly.registerClass(Kw);var qw=function(e){I(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 fg(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(e,t){var n=Ul(this,e,t);return n.progressiveRender&&(n.large=!0),n},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type=`series.bar`,t.dependencies=[`grid`,`polar`],t.defaultOption=yg(Kw.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:Z.color.primary,borderWidth:2}},realtimeSort:!1}),t}(Kw),Jw=`\0__throttleOriginMethod`,Yw=`\0__throttleRate`,Xw=`\0__throttleType`;function Zw(e,t,n){var r,i=0,a=0,o=null,s,c,l,u;t||=0;function d(){a=new Date().getTime(),o=null,e.apply(c,l||[])}var f=function(){var e=[...arguments];r=new Date().getTime(),c=this,l=e;var f=u||t,p=u||n;u=null,s=r-(p?i:a)-f,clearTimeout(o),p?o=setTimeout(d,f):s>=0?d():o=setTimeout(d,-s),i=r};return f.clear=function(){o&&=(clearTimeout(o),null)},f.debounceNextCall=function(e){u=e},f}function Qw(e,t,n,r){var i=e[t];if(i){var a=i[Jw]||i,o=i[Xw];if(i[Yw]!==n||o!==r){if(n==null||!r)return e[t]=a;i=e[t]=Zw(a,n,r===`debounce`),i[Jw]=a,i[Xw]=r,i[Yw]=n}return i}}function $w(e,t){var n=e[t];n&&n[Jw]&&(n.clear&&n.clear(),e[t]=n[Jw])}var eT=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}(),tT=function(e){I(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`sausage`,n}return t.prototype.getDefaultShape=function(){return new eT},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r0||0,0),a=Math.max(t.r,0),o=(a-i)*.5,s=i+o,c=t.startAngle,l=t.endAngle,u=t.clockwise,d=Math.PI*2,f=u?l-c<d:c-l<d;f||(c=l-(u?d:-d));var p=Math.cos(c),m=Math.sin(c),h=Math.cos(l),g=Math.sin(l);f?(e.moveTo(p*i+n,m*i+r),e.arc(p*s+n,m*s+r,o,-Math.PI+c,c,!u)):e.moveTo(p*a+n,m*a+r),e.arc(n,r,a,c,l,!u),e.arc(h*s+n,g*s+r,o,l-Math.PI*2,l-Math.PI,!u),i!==0&&e.arc(n,r,i,l,c,u)},t}(xs);function nT(e,t){t||={};var n=t.isRoundCap;return function(t,r,i){var a=r.position;if(!a||a instanceof Array)return mr(t,r,i);var o=e(a),s=r.distance==null?5:r.distance,c=this.shape,l=c.cx,u=c.cy,d=c.r,f=c.r0,p=(d+f)/2,m=c.startAngle,h=c.endAngle,g=(m+h)/2,_=n?Math.abs(d-f)/2:0,v=Math.cos,y=Math.sin,b=l+d*v(m),x=u+d*y(m),S=`left`,C=`top`;switch(o){case`startArc`:b=l+(f-s)*v(g),x=u+(f-s)*y(g),S=`center`,C=`top`;break;case`insideStartArc`:b=l+(f+s)*v(g),x=u+(f+s)*y(g),S=`center`,C=`bottom`;break;case`startAngle`:b=l+p*v(m)+iT(m,s+_,!1),x=u+p*y(m)+aT(m,s+_,!1),S=`right`,C=`middle`;break;case`insideStartAngle`:b=l+p*v(m)+iT(m,-s+_,!1),x=u+p*y(m)+aT(m,-s+_,!1),S=`left`,C=`middle`;break;case`middle`:b=l+p*v(g),x=u+p*y(g),S=`center`,C=`middle`;break;case`endArc`:b=l+(d+s)*v(g),x=u+(d+s)*y(g),S=`center`,C=`bottom`;break;case`insideEndArc`:b=l+(d-s)*v(g),x=u+(d-s)*y(g),S=`center`,C=`top`;break;case`endAngle`:b=l+p*v(h)+iT(h,s+_,!0),x=u+p*y(h)+aT(h,s+_,!0),S=`left`,C=`middle`;break;case`insideEndAngle`:b=l+p*v(h)+iT(h,-s+_,!0),x=u+p*y(h)+aT(h,-s+_,!0),S=`right`,C=`middle`;break;default:return mr(t,r,i)}return t||={},t.x=b,t.y=x,t.align=S,t.verticalAlign=C,t}}function rT(e,t,n,r){if(dt(r))e.setTextConfig({rotation:r});else if(H(t))e.setTextConfig({rotation:0});else{var i=e.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,c,l=n(t);switch(l){case`startArc`:case`insideStartArc`:case`middle`:case`insideEndArc`:case`endArc`:c=s;break;case`startAngle`:case`insideStartAngle`:c=a;break;case`endAngle`:case`insideEndAngle`:c=o;break;default:e.setTextConfig({rotation:0});return}var u=Math.PI*1.5-c;l===`middle`&&u>Math.PI/2&&u<Math.PI*1.5&&(u-=Math.PI),e.setTextConfig({rotation:u})}}function iT(e,t,n){return t*Math.sin(e)*(n?-1:1)}function aT(e,t,n){return t*Math.cos(e)*(n?1:-1)}function oT(e,t,n){var r=e.get(`borderRadius`);if(r==null)return n?{cornerRadius:0}:null;H(r)||(r=[r,r,r,r]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:B(r,function(e){return pr(e,i)})}}var sT=Math.max,cT=Math.min,lT=function(e){I(t,e);function t(){var t=e.call(this)||this;return t.type=`bar`,t._isFirstFrame=!0,t}return t.prototype.render=function(e,t,n,r){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var i=e.get(`coordinateSystem`);(i===`cartesian2d`||i===`polar`)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,r))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){this._progressiveEls=[],this._incrementalRenderLarge(e,t)},t.prototype.eachRendered=function(e){Ep(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;(this._isLargeDraw==null||t!==this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e,t,n,r){var i=this.group,a=e.getData(),o=this._data,s=e.coordinateSystem,c=s.getBaseAxis(),l;s.type===`cartesian2d`?l=c.isHorizontal():s.type===`polar`&&(l=c.dim===`angle`);var u=e.isAnimationEnabled()?e:null,d=fT(e,s);d&&this._enableRealtimeSort(d,a,n);var f=e.get(`clip`,!0)||d,p=s.getArea();i.removeClipPath();var m=e.get(`roundCap`,!0),h=e.get(`showBackground`,!0),g=e.getModel(`backgroundStyle`),_=g.get(`borderRadius`)||0,v=[],y=this._backgroundEls,b=r&&r.isInitSort,x=r&&r.type===`changeAxisOrder`;function S(e){var t=vT[s.type](a,e);if(!t)return null;var n=kT(s,l,t);return n.useStyle(g.getItemStyle()),s.type===`cartesian2d`?n.setShape(`r`,_):n.setShape(`cornerRadius`,_),v[e]=n,n}a.diff(o).add(function(t){var n=a.getItemModel(t),r=vT[s.type](a,t,n);if(r&&(h&&S(t),a.hasValue(t)&&_T[s.type](r))){var o=!1;f&&(o=uT[s.type](p,r));var g=dT[s.type](e,a,t,r,l,u,c.model,!1,m);d&&(g.forceLabelAnimation=!0),xT(g,a,t,n,r,e,l,s.type===`polar`),b?g.attr({shape:r}):d?pT(d,u,g,r,t,l,!1,!1):zf(g,{shape:r},e,t),a.setItemGraphicEl(t,g),i.add(g),g.ignore=o}}).update(function(t,n){var r=a.getItemModel(t),C=vT[s.type](a,t,r);if(C){if(h){var w=void 0;y.length===0?w=S(n):(w=y[n],w.useStyle(g.getItemStyle()),s.type===`cartesian2d`?w.setShape(`r`,_):w.setShape(`cornerRadius`,_),v[t]=w);var T=vT[s.type](a,t),E=OT(l,T,s);Rf(w,{shape:E},u,t)}var D=o.getItemGraphicEl(n);if(!a.hasValue(t)||!_T[s.type](C))i.remove(D);else{var O=!1;if(f&&(O=uT[s.type](p,C),O&&i.remove(D)),D&&(D.type===`sector`&&m||D.type===`sausage`&&!m)&&(D&&Uf(D,e,n),D=null),D?Wf(D):D=dT[s.type](e,a,t,C,l,u,c.model,!0,m),d&&(D.forceLabelAnimation=!0),x){var k=D.getTextContent();if(k){var A=$p(k);A.prevValue!=null&&(A.prevValue=A.value)}}else xT(D,a,t,r,C,e,l,s.type===`polar`);b?D.attr({shape:C}):d?pT(d,u,D,C,t,l,!0,x):Rf(D,{shape:C},e,t,null),a.setItemGraphicEl(t,D),D.ignore=O,i.add(D)}}}).remove(function(t){var n=o.getItemGraphicEl(t);n&&Uf(n,e,t)}).execute();var C=this._backgroundGroup||=new Pd;C.removeAll();for(var w=0;w<v.length;++w)C.add(v[w]);i.add(C),this._backgroundEls=v,this._data=a},t.prototype._renderLarge=function(e,t,n){this._clear(),TT(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),TT(t,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var t=e.get(`clip`,!0)&&db(e.coordinateSystem,!1,e),n=this.group;t?n.setClipPath(t):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,t,n){var r=this;if(t.count()){var i=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(t,e,n),this._isFirstFrame=!1;else{var a=function(e){var n=t.getItemGraphicEl(e),r=n&&n.shape;return r&&Math.abs(i.isHorizontal()?r.height:r.width)||0};this._onRendered=function(){r._updateSortWithinSameData(t,a,i,n)},n.getZr().on(`rendered`,this._onRendered)}}},t.prototype._dataSort=function(e,t,n){var r=[];return e.each(e.mapDimension(t.dim),function(e,t){var i=n(t);i??=NaN,r.push({dataIndex:t,mappedValue:i,ordinalNumber:e})}),r.sort(function(e,t){return t.mappedValue-e.mappedValue}),{ordinalNumbers:B(r,function(e){return e.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,t,n){for(var r=n.scale,i=e.mapDimension(n.dim),a=Number.MAX_VALUE,o=0,s=r.getOrdinalMeta().categories.length;o<s;++o){var c=e.rawIndexOf(i,r.getRawOrdinalNumber(o)),l=c<0?Number.MIN_VALUE:t(e.indexOfRawIndex(c));if(l>a)return!0;a=l}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,r=n.getExtent(),i=Math.max(0,r[0]),a=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=a;++i)if(e.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,r){if(this._isOrderChangedWithinSameData(e,t,n)){var i=this._dataSort(e,n,t);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:`changeAxisOrder`,componentType:n.dim+`Axis`,axisId:n.index,sortInfo:i}))}},t.prototype._dispatchInitSort=function(e,t,n){var r=t.baseAxis,i=this._dataSort(e,r,function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)});n.dispatchAction({type:`changeAxisOrder`,componentType:r.dim+`Axis`,isInitSort:!0,axisId:r.index,sortInfo:i})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&=(e.getZr().off(`rendered`,this._onRendered),null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(t){Uf(t,e,Kl(t).dataIndex)})):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type=`bar`,t}(rb),uT={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,a=e.y+e.height,o=sT(t.x,e.x),s=cT(t.x+t.width,i),c=sT(t.y,e.y),l=cT(t.y+t.height,a),u=s<o,d=l<c;return t.x=u&&o>i?s:o,t.y=d&&c>a?l:c,t.width=u?0:s-o,t.height=d?0:l-c,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),u||d},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=cT(t.r,e.r),a=sT(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}return o}},dT={cartesian2d:function(e,t,n,r,i,a,o,s,c){var l=new Fs({shape:R({},r),z2:1});if(l.__dataIndex=n,l.name=`item`,a){var u=l.shape,d=i?`height`:`width`;u[d]=0}return l},polar:function(e,t,n,r,i,a,o,s,c){var l=!i&&c?tT:tf,u=new l({shape:r,z2:1});if(u.name=`item`,u.calculateTextPosition=nT(bT(i),{isRoundCap:l===tT}),a){var d=u.shape,f=i?`r`:`endAngle`,p={};d[f]=i?r.r0:r.startAngle,p[f]=r[f],(s?Rf:zf)(u,{shape:p},a)}return u}};function fT(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 pT(e,t,n,r,i,a,o,s){var c,l;a?(l={x:r.x,width:r.width},c={y:r.y,height:r.height}):(l={y:r.y,height:r.height},c={x:r.x,width:r.width}),s||(o?Rf:zf)(n,{shape:c},t,i,null);var u=t?e.baseAxis.model:null;(o?Rf:zf)(n,{shape:l},u,i)}function mT(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var hT=[`x`,`y`,`width`,`height`],gT=[`cx`,`cy`,`r`,`startAngle`,`endAngle`],_T={cartesian2d:function(e){return!mT(e,hT)},polar:function(e){return!mT(e,gT)}},vT={cartesian2d:function(e,t,n){var r=e.getItemLayout(t);if(!r)return null;var i=n?ST(n,r):0,a=r.width>0?1:-1,o=r.height>0?1:-1;return{x:r.x+a*i/2,y:r.y+o*i/2,width:r.width-a*i,height:r.height-o*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 yT(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function bT(e){return function(e){var t=e?`Arc`:`Angle`;return function(e){switch(e){case`start`:case`insideStart`:case`end`:case`insideEnd`:return e+t;default:return e}}}(e)}function xT(e,t,n,r,i,a,o,s){var c=t.getItemVisual(n,`style`);if(!s){var l=r.get([`itemStyle`,`borderRadius`])||0;e.setShape(`r`,l)}else if(!a.get(`roundCap`)){var u=e.shape;R(u,oT(r.getModel(`itemStyle`),u,!0)),e.setShape(u)}e.useStyle(c);var d=r.getShallow(`cursor`);d&&e.attr(`cursor`,d);var f=s?o?i.r>=i.r0?`endArc`:`startArc`:i.endAngle>=i.startAngle?`endAngle`:`startAngle`:o?AT(i,a.coordinateSystem):jT(i,a.coordinateSystem),p=Up(r);Hp(e,p,{labelFetcher:a,labelDataIndex:n,defaultText:Oy(a.getData(),n),inheritColor:c.fill,defaultOpacity:c.opacity,defaultOutsidePosition:f});var m=e.getTextContent();if(s&&m){var h=r.get([`label`,`position`]);e.textConfig.inside=h===`middle`||null,rT(e,h===`outside`?f:h,bT(o),r.get([`label`,`rotate`]))}em(m,p,a.getRawValue(n),function(e){return ky(t,e)});var g=r.getModel([`emphasis`]);td(e,g.get(`focus`),g.get(`blurScope`),g.get(`disabled`)),ad(e,r),yT(i)&&(e.style.fill=`none`,e.style.stroke=`none`,z(e.states,function(e){e.style&&(e.style.fill=e.style.stroke=`none`)}))}function ST(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),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,i,a)}var CT=function(){function e(){}return e}(),wT=function(e){I(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`largeBar`,n}return t.prototype.getDefaultShape=function(){return new CT},t.prototype.buildPath=function(e,t){for(var n=t.points,r=this.baseDimIdx,i=1-this.baseDimIdx,a=[],o=[],s=this.barWidth,c=0;c<n.length;c+=3)o[r]=s,o[i]=n[c+2],a[r]=n[c+r],a[i]=n[c+i],e.rect(a[0],a[1],o[0],o[1])},t}(xs);function TT(e,t,n,r){var i=e.getData(),a=+!!i.getLayout(`valueAxisHorizontal`),o=i.getLayout(`largeDataIndices`),s=i.getLayout(`size`),c=e.getModel(`backgroundStyle`),l=i.getLayout(`largeBackgroundPoints`),u=r?Hl(e):0;if(l){var d=new wT({shape:{points:l},incremental:u,silent:!0,z2:0});d.baseDimIdx=a,d.largeDataIndices=o,d.barWidth=s,d.useStyle(c.getItemStyle()),t.add(d),n&&n.push(d)}var f=new wT({shape:{points:i.getLayout(`largePoints`)},incremental:u,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,t.add(f),f.useStyle(i.getVisual(`style`)),f.style.stroke=null,Kl(f).seriesIndex=e.seriesIndex,e.get(`silent`)||(f.on(`mousedown`,ET),f.on(`mousemove`,ET)),n&&n.push(f)}var ET=Zw(function(e){var t=this,n=DT(t,e.offsetX,e.offsetY);Kl(t).dataIndex=n>=0?n:null},30,!1);function DT(e,t,n){for(var r=e.baseDimIdx,i=1-r,a=e.shape.points,o=e.largeDataIndices,s=[],c=[],l=e.barWidth,u=0,d=a.length/3;u<d;u++){var f=u*3;if(c[r]=l,c[i]=a[f+2],s[r]=a[f+r],s[i]=a[f+i],c[i]<0&&(s[i]+=c[i],c[i]=-c[i]),t>=s[0]&&t<=s[0]+c[0]&&n>=s[1]&&n<=s[1]+c[1])return o[u]}return-1}function OT(e,t,n){if(pb(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}}var i=n.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}function kT(e,t,n){return new(e.type===`polar`?tf:Fs)({shape:OT(t,n,e),silent:!0,z2:0})}function AT(e,t){return e.height===0?t.getOtherAxis(t.getBaseAxis()).inverse?`bottom`:`top`:e.height>0?`bottom`:`top`}function jT(e,t){return e.width===0?t.getOtherAxis(t.getBaseAxis()).inverse?`left`:`right`:e.width>=0?`right`:`left`}function MT(e){e.registerChartView(lT),e.registerSeriesModel(qw),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Vw(`bar`)),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Hw(`bar`)),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Qx(`bar`)),e.registerAction({type:`changeAxisOrder`,event:`changeAxisOrder`,update:`update`},function(e,t){var n=e.componentType||`series`;t.eachComponent({mainType:n,query:e},function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)})}),Gw(e)}function NT(e,t){function n(t,n){var r=[];return t.eachComponent({mainType:`series`,subType:e,query:n},function(e){r.push(e.seriesIndex)}),r}z([[e+`ToggleSelect`,`toggleSelect`],[e+`Select`,`select`],[e+`UnSelect`,`unselect`]],function(e){t(e[0],function(t,r,i){t=R({},t),i.dispatchAction(R(t,{type:e[1],seriesIndex:n(r,t)}))})})}function PT(e,t,n,r,i){var a=e+t;n.isSilent(a)||r.eachComponent({mainType:`series`,subType:`pie`},function(e){for(var t=e.seriesIndex,r=e.option.selectedMap,o=i.selected,s=0;s<o.length;s++)if(o[s].seriesIndex===t){var c=e.getData(),l=gl(c,i.fromActionPayload);n.trigger(a,{type:a,seriesId:e.id,name:H(l)?c.getName(l[0]):c.getName(l),selected:W(r)?r:R({},r)})}})}function FT(e,t,n){e.on(`selectchanged`,function(e){var r=n.getModel();e.isFromClick?(PT(`map`,`selectchanged`,t,r,e),PT(`pie`,`selectchanged`,t,r,e)):e.fromAction===`select`?(PT(`map`,`selected`,t,r,e),PT(`pie`,`selected`,t,r,e)):e.fromAction===`unselect`&&(PT(`map`,`unselected`,t,r,e),PT(`pie`,`unselected`,t,r,e))})}function IT(e){return{seriesType:e,reset:function(e,t){var n=t.findComponents({mainType:`legend`});if(n&&n.length){var r=e.getData();r.filterSelf(function(e){for(var t=r.getName(e),i=0;i<n.length;i++)if(!n[i].isSelected(t))return!1;return!0})}}}}function LT(e,t,n){t=H(t)&&{coordDimensions:t}||R({encodeDefine:e.getEncode()},t);var r=e.getSource(),i=Wh(r,t).dimensions,a=new Uh(i,e);return a.initData(r,n),a}var RT=function(){function e(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return e.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},e.prototype.containName=function(e){return this._getRawData().indexOfName(e)>=0},e.prototype.indexOfName=function(e){return this._getDataWithEncodedVisual().indexOfName(e)},e.prototype.getItemVisual=function(e,t){return this._getDataWithEncodedVisual().getItemVisual(e,t)},e}(),zT=_l(),BT=function(e){I(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new RT(V(this.getData,this),V(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return LT(this,{coordDimensions:[`value`],encodeDefaulter:lt(bm,this)})},t.prototype.getDataParams=function(t){var n=this.getData(),r=zT(n),i=r.seats;if(!i){var a=[];n.each(n.mapDimension(`value`),function(e){a.push(e)}),i=r.seats=wc(a,n.hostModel.get(`percentPrecision`))}var o=e.prototype.getDataParams.call(this,t);return o.percent=i[t]||0,o.$vars.push(`percent`),o},t.prototype._defaultLabelLine=function(e){Zc(e,`labelLine`,[`show`]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type=`series.pie`,t.defaultOption={z:2,legendHoverLink:!0,colorBy:`data`,center:[`50%`,`50%`],radius:[0,`50%`],clockwise:!0,startAngle:90,endAngle:`auto`,padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:`box`,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:`truncate`,position:`outer`,alignTo:`none`,edgeDistance:`25%`,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:`solid`}},itemStyle:{borderWidth:1,borderJoin:`round`},showEmptyCircle:!0,emptyCircleStyle:{color:`lightgray`,opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:`expansion`,animationDuration:1e3,animationTypeUpdate:`transition`,animationEasingUpdate:`cubicInOut`,animationDurationUpdate:500,animationEasing:`cubicInOut`},t}(ly);Zh({fullType:BT.type,getCoord2:function(e){return e.getShallow(`center`)}}),Xo.CMD;function VT(e,t,n,r,i,a,o,s){var c=i-e,l=a-t,u=n-e,d=r-t,f=Math.sqrt(u*u+d*d);u/=f,d/=f;var p=(c*u+l*d)/f;s&&(p=Math.min(Math.max(p,0),1)),p*=f;var m=o[0]=e+p*u,h=o[1]=t+p*d;return Math.sqrt((m-i)*(m-i)+(h-a)*(h-a))}var HT=new Y,UT=new Y,WT=new Y,GT=new Y,KT=new Y,qT=[],JT=new Y;function YT(e,t){if(t<=180&&t>0){t=t/180*Math.PI,HT.fromArray(e[0]),UT.fromArray(e[1]),WT.fromArray(e[2]),Y.sub(GT,HT,UT),Y.sub(KT,WT,UT);var n=GT.len(),r=KT.len();if(!(n<.001||r<.001)){GT.scale(1/n),KT.scale(1/r);var i=GT.dot(KT);if(Math.cos(t)<i){var a=VT(UT.x,UT.y,WT.x,WT.y,HT.x,HT.y,qT,!1);JT.fromArray(qT),JT.scaleAndAdd(KT,a/Math.tan(Math.PI-t));var o=WT.x===UT.x?(JT.y-UT.y)/(WT.y-UT.y):(JT.x-UT.x)/(WT.x-UT.x);if(isNaN(o))return;o<0?Y.copy(JT,UT):o>1&&Y.copy(JT,WT),JT.toArray(e[1])}}}}function XT(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,HT.fromArray(e[0]),UT.fromArray(e[1]),WT.fromArray(e[2]),Y.sub(GT,UT,HT),Y.sub(KT,WT,UT);var r=GT.len(),i=KT.len();if(!(r<.001||i<.001)&&(GT.scale(1/r),KT.scale(1/i),GT.dot(t)<Math.cos(n))){var a=VT(UT.x,UT.y,WT.x,WT.y,HT.x,HT.y,qT,!1);JT.fromArray(qT);var o=Math.PI/2,s=o+Math.acos(KT.dot(t))-n;if(s>=o)Y.copy(JT,WT);else{JT.scaleAndAdd(KT,a/Math.tan(Math.PI/2-s));var c=WT.x===UT.x?(JT.y-UT.y)/(WT.y-UT.y):(JT.x-UT.x)/(WT.x-UT.x);if(isNaN(c))return;c<0?Y.copy(JT,UT):c>1&&Y.copy(JT,WT)}JT.toArray(e[1])}}}function ZT(e,t,n,r){var i=n===`normal`,a=i?e:e.ensureState(n);a.ignore=t;var o=r.get(`smooth`);o=o===!0?.3:Math.max(+o,0)||0,a.shape=a.shape||{},a.shape.smooth=o;var s=r.getModel(`lineStyle`).getLineStyle();i?e.useStyle(s):a.style=s}function QT(e,t){var n=t.smooth,r=t.points;if(r){if(e.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=Dn(r[0],r[1]),a=Dn(r[1],r[2]);if(!i||!a){e.lineTo(r[1][0],r[1][1]),e.lineTo(r[2][0],r[2][1]);return}var o=Math.min(i,a)*n,s=An([],r[1],r[0],o/i),c=An([],r[1],r[2],o/a),l=An([],s,c,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],l[0],l[1]),e.bezierCurveTo(c[0],c[1],c[0],c[1],r[2][0],r[2][1])}else for(var u=1;u<r.length;u++)e.lineTo(r[u][0],r[u][1])}}function $T(e,t,n){var r=e.getTextGuideLine(),i=e.getTextContent();if(!i)r&&e.removeTextGuideLine();else{for(var a=t.normal,o=a.get(`show`),s=i.ignore,c=0;c<uu.length;c++){var l=uu[c],u=t[l],d=l===`normal`;if(u){var f=u.get(`show`);if((d?s:K(i.states[l]&&i.states[l].ignore,s))||!K(f,o)){var p=d?r:r&&r.states[l];p&&(p.ignore=!0),r&&ZT(r,!0,l,u);continue}r||(r=new uf,e.setTextGuideLine(r),!d&&(s||!o)&&ZT(r,!0,`normal`,t.normal),e.stateProxy&&(r.stateProxy=e.stateProxy)),ZT(r,!1,l,u)}}if(r){$e(r.style,n),r.style.fill=null;var m=a.get(`showAbove`),h=e.textGuideLineConfig=e.textGuideLineConfig||{};h.showAbove=m||!1,r.buildPath=QT}}}function eE(e,t){t||=`labelLine`;for(var n={normal:e.getModel(t)},r=0;r<lu.length;r++){var i=lu[r];n[i]=e.getModel([i,t])}return n}var tE=Math.PI/180;function nE(e,t,n,r,i,a,o,s,c,l){if(e.length<2)return;function u(e){for(var a=e.rB,o=a*a,s=0;s<e.list.length;s++){var c=e.list[s],l=Math.abs(c.label.y-n),u=r+c.len,d=u*u,f=t+(Math.sqrt(Math.abs((1-l*l/o)*d))+c.len2)*i,p=f-c.label.x;iE(c,c.targetTextWidth-p*i,!0),c.label.x=f}}function d(e){for(var a={list:[],maxY:0},o={list:[],maxY:0},s=0;s<e.length;s++)if(e[s].labelAlignTo===`none`){var c=e[s],l=c.label.y>n?o:a,d=Math.abs(c.label.y-n);if(d>=l.maxY){var f=c.label.x-t-c.len2*i,p=r+c.len;l.rB=Math.abs(f)<p?Math.sqrt(d*d/(1-f*f/p/p)):p,l.maxY=d}l.list.push(c)}u(a),u(o)}for(var f=e.length,p=0;p<f;p++)if(e[p].position===`outer`&&e[p].labelAlignTo===`labelLine`){var m=e[p].label.x-l;e[p].linePoints[1][0]+=m,e[p].label.x=l}hC(e,1,c,c+o)&&d(e)}function rE(e,t,n,r,i,a,o,s){for(var c=[],l=[],u=Number.MAX_VALUE,d=-Number.MAX_VALUE,f=0;f<e.length;f++){var p=e[f].label;cE(e[f])||(p.x<t?(u=Math.min(u,p.x),c.push(e[f])):(d=Math.max(d,p.x),l.push(e[f])))}for(var f=0;f<e.length;f++){var m=e[f];if(!cE(m)&&m.linePoints){if(m.labelStyleWidth!=null)continue;var p=m.label,h=m.linePoints,g=void 0;g=m.labelAlignTo===`edge`?p.x<t?h[2][0]-m.labelDistance-o-m.edgeDistance:o+i-m.edgeDistance-h[2][0]-m.labelDistance:m.labelAlignTo===`labelLine`?p.x<t?u-o-m.bleedMargin:o+i-d-m.bleedMargin:p.x<t?p.x-o-m.bleedMargin:o+i-p.x-m.bleedMargin,m.targetTextWidth=g,iE(m,g,!1)}}nE(l,t,n,r,1,i,a,o,s,d),nE(c,t,n,r,-1,i,a,o,s,u);for(var f=0;f<e.length;f++){var m=e[f];if(!cE(m)&&m.linePoints){var p=m.label,h=m.linePoints,_=m.labelAlignTo===`edge`,v=p.style.padding,y=v?v[1]+v[3]:0,b=p.style.backgroundColor?0:y,x=m.rect.width+b,S=h[1][0]-h[2][0];_?p.x<t?h[2][0]=o+m.edgeDistance+x+m.labelDistance:h[2][0]=o+i-m.edgeDistance-x-m.labelDistance:(p.x<t?h[2][0]=p.x+m.labelDistance:h[2][0]=p.x-m.labelDistance,h[1][0]=h[2][0]+S),h[1][1]=h[2][1]=p.y}}}function iE(e,t,n){if(e.labelStyleWidth==null){var r=e.label,i=r.style,a=e.rect,o=i.backgroundColor,s=i.padding,c=s?s[1]+s[3]:0,l=i.overflow,u=a.width+(o?0:c);if(t<u||n){if(l&&l.match(`break`)){r.setStyle(`backgroundColor`,null),r.setStyle(`width`,t-c);var d=r.getBoundingRect();r.setStyle(`width`,Math.ceil(d.width)),r.setStyle(`backgroundColor`,o)}else{var f=t-c,p=t<u?f:n?f>e.unconstrainedWidth?null:f:null;r.setStyle(`width`,p)}aE(a,r)}}}function aE(e,t){sE.rect=e,lC(sE,t,oE)}var oE={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},sE={};function cE(e){return e.position===`center`}function lE(e){var t=e.getData(),n=[],r,i,a=!1,o=(e.get(`minShowLabelAngle`)||0)*tE,s=t.getLayout(`viewRect`),c=t.getLayout(`r`),l=s.width,u=s.x,d=s.y,f=s.height;function p(e){e.ignore=!0}function m(e){if(!e.ignore)return!0;for(var t in e.states)if(e.states[t].ignore===!1)return!0;return!1}t.each(function(e){var s=t.getItemGraphicEl(e),d=s.shape,h=s.getTextContent(),g=s.getTextGuideLine(),_=t.getItemModel(e),v=_.getModel(`label`),y=v.get(`position`)||_.get([`emphasis`,`label`,`position`]),b=v.get(`distanceToLabelLine`),x=v.get(`alignTo`),S=hc(v.get(`edgeDistance`),l),C=v.get(`bleedMargin`);C??=Math.min(l,f)>200?10:2;var w=_.getModel(`labelLine`),T=w.get(`length`);T=hc(T,l);var E=w.get(`length2`);if(E=hc(E,l),Math.abs(d.endAngle-d.startAngle)<o)z(h.states,p),h.ignore=!0,g&&(z(g.states,p),g.ignore=!0);else if(m(h)){var D=(d.startAngle+d.endAngle)/2,O=Math.cos(D),k=Math.sin(D),A,j,M,ee;r=d.cx,i=d.cy;var N=y===`inside`||y===`inner`;if(y===`center`)A=d.cx,j=d.cy,ee=`center`;else{var P=(N?(d.r+d.r0)/2*O:d.r*O)+r,te=(N?(d.r+d.r0)/2*k:d.r*k)+i;if(A=P+O*3,j=te+k*3,!N){var ne=P+O*(T+c-d.r),re=te+k*(T+c-d.r),ie=ne+(O<0?-1:1)*E,ae=re;A=x===`edge`?O<0?u+S:u+l-S:ie+(O<0?-b:b),j=ae,M=[[P,te],[ne,re],[ie,ae]]}ee=N?`center`:x===`edge`?O>0?`right`:`left`:O>0?`left`:`right`}var oe=Math.PI,se=0,ce=v.get(`rotate`);if(dt(ce))se=oe/180*ce;else if(y===`center`)se=0;else if(ce===`radial`||ce===!0)se=O<0?-D+oe:-D;else if(ce===`tangential`||ce===`tangential-noflip`&&y!==`outside`&&y!==`outer`){var le=Math.atan2(O,k);le<0&&(le=oe*2+le),k>0&&ce!==`tangential-noflip`&&(le=oe+le),se=le-oe}if(a=!!se,h.x=A,h.y=j,h.rotation=se,h.setStyle({verticalAlign:`middle`}),N){h.setStyle({align:ee});var ue=h.states.select;ue&&(ue.x+=h.x,ue.y+=h.y)}else{var F=new X(0,0,0,0);aE(F,h),n.push({label:h,labelLine:g,position:y,len:T,len2:E,minTurnAngle:w.get(`minTurnAngle`),maxSurfaceAngle:w.get(`maxSurfaceAngle`),surfaceNormal:new Y(O,k),linePoints:M,textAlign:ee,labelDistance:b,labelAlignTo:x,edgeDistance:S,bleedMargin:C,rect:F,unconstrainedWidth:F.width,labelStyleWidth:h.style.width})}s.setTextConfig({inside:N})}}),!a&&e.get(`avoidLabelOverlap`)&&rE(n,r,i,c,l,f,u,d);for(var h=0;h<n.length;h++){var g=n[h],_=g.label,v=g.labelLine,y=isNaN(_.x)||isNaN(_.y);if(_){_.setStyle({align:g.textAlign}),y&&(z(_.states,p),_.ignore=!0);var b=_.states.select;b&&(b.x+=_.x,b.y+=_.y)}if(v){var x=g.linePoints;y||!x?(z(v.states,p),v.ignore=!0):(YT(x,g.minTurnAngle),XT(x,g.surfaceNormal,g.maxSurfaceAngle),v.setShape({points:x}),_.__hostTarget.textGuideLineConfig={anchor:new Y(x[0][0],x[0][1])})}}}var uE=Math.PI*2,dE=Math.PI/180,fE=Wl(`pie`,pE);function pE(e,t){e.eachSeriesByType(`pie`,function(e){var n=e.getData(),r=n.mapDimension(`value`),i=Y_(e,t),a=i.cx,o=i.cy,s=i.r,c=i.r0,l=i.viewRect,u=-e.get(`startAngle`)*dE,d=e.get(`endAngle`),f=e.get(`padAngle`)*dE;d=d===`auto`?u-uE:-d*dE;var p=e.get(`minAngle`)*dE+f,m=0;n.each(r,function(e){!isNaN(e)&&m++});var h=n.getSum(r),g=Math.PI/(h||m)*2,_=e.get(`clockwise`),v=e.get(`roseType`),y=e.get(`stillShowZeroSum`),b=n.getDataExtent(r);b[0]=0;var x=_?1:-1,S=[u,d],C=x*f/2;Yo(S,!_),u=S[0],d=S[1];var w=mE(e);w.startAngle=u,w.endAngle=d,w.clockwise=_,w.cx=a,w.cy=o,w.r=s,w.r0=c;var T=Math.abs(d-u),E=T,D=0,O=u;if(n.setLayout({viewRect:l,r:s}),n.each(r,function(e,t){var r;if(isNaN(e))n.setItemLayout(t,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:a,cy:o,r0:c,r:v?NaN:s});else{r=v===`area`?T/m:h===0&&y?g:e*g,r<p?(r=p,E-=p):D+=e;var i=O+x*r,l=0,u=0;f>r?(l=O+x*r/2,u=l):(l=O+C,u=i-C),n.setItemLayout(t,{angle:r,startAngle:l,endAngle:u,clockwise:_,cx:a,cy:o,r0:c,r:v?mc(e,b,[c,s]):s}),O=i}}),E<uE&&m){if(E<=.001){var k=T/m;n.each(r,function(e,t){if(!isNaN(e)){var r=n.getItemLayout(t);r.angle=k;var i=0,a=0;k<f?(i=u+x*(t+1/2)*k,a=i):(i=u+x*t*k+C,a=u+x*(t+1)*k-C),r.startAngle=i,r.endAngle=a}})}else g=E/D,O=u,n.each(r,function(e,t){if(!isNaN(e)){var r=n.getItemLayout(t),i=r.angle===p?p:e*g,a=0,o=0;i<f?(a=O+x*i/2,o=a):(a=O+C,o=O+x*i-C),r.startAngle=a,r.endAngle=o,O+=x*i}})}})}var mE=_l(),hE=function(e){I(t,e);function t(t,n,r){var i=e.call(this)||this;i.z2=2;var a=new Bs;return i.setTextContent(a),i.updateData(t,n,r,!0),i}return t.prototype.updateData=function(e,t,n,r){var i=this,a=e.hostModel,o=e.getItemModel(t),s=o.getModel(`emphasis`),c=e.getItemLayout(t),l=R(oT(o.getModel(`itemStyle`),c,!0),c);if(isNaN(l.startAngle))i.setShape(l);else{if(r){i.setShape(l);var u=a.getShallow(`animationType`);a.ecModel.ssr?(zf(i,{scaleX:0,scaleY:0},a,{dataIndex:t,isFrom:!0}),i.originX=l.cx,i.originY=l.cy):u===`scale`?(i.shape.r=c.r0,zf(i,{shape:{r:c.r}},a,t)):n==null?(i.shape.endAngle=c.startAngle,Rf(i,{shape:{endAngle:c.endAngle}},a,t)):(i.setShape({startAngle:n,endAngle:n}),zf(i,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},a,t))}else Wf(i),Rf(i,{shape:l},a,t);i.useStyle(e.getItemVisual(t,`style`)),ad(i,o);var d=(c.startAngle+c.endAngle)/2,f=a.get(`selectedOffset`),p=Math.cos(d)*f,m=Math.sin(d)*f,h=o.getShallow(`cursor`);h&&i.attr(`cursor`,h),this._updateLabel(a,e,t),i.ensureState(`emphasis`).shape=R({r:c.r+(s.get(`scale`)&&s.get(`scaleSize`)||0)},oT(s.getModel(`itemStyle`),c)),R(i.ensureState(`select`),{x:p,y:m,shape:oT(o.getModel([`select`,`itemStyle`]),c)}),R(i.ensureState(`blur`),{shape:oT(o.getModel([`blur`,`itemStyle`]),c)});var g=i.getTextGuideLine(),_=i.getTextContent();g&&R(g.ensureState(`select`),{x:p,y:m}),R(_.ensureState(`select`),{x:p,y:m}),td(this,s.get(`focus`),s.get(`blurScope`),s.get(`disabled`))}},t.prototype._updateLabel=function(e,t,n){var r=this,i=t.getItemModel(n),a=i.getModel(`labelLine`),o=t.getItemVisual(n,`style`),s=o&&o.fill,c=o&&o.opacity;Hp(r,Up(i),{labelFetcher:t.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:c,defaultText:e.getFormattedLabel(n,`normal`)||t.getName(n)});var l=r.getTextContent();r.setTextConfig({position:null,rotation:null}),l.attr({z2:10});var u=i.get([`label`,`position`]);if(u!==`outside`&&u!==`outer`)r.removeTextGuideLine();else{var d=this.getTextGuideLine();d||(d=new uf,this.setTextGuideLine(d)),$T(this,eE(i),{stroke:s,opacity:vt(a.get([`lineStyle`,`opacity`]),c,1)})}},t}(tf),gE=function(e){I(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`pie`,t.ignoreLabelLineUpdate=!0,t}return t.prototype.render=function(e,t,n,r){var i=e.getData(),a=this._data,o=this.group,s;if(!a&&i.count()>0){for(var c=i.getItemLayout(0),l=1;isNaN(c&&c.startAngle)&&l<i.count();++l)c=i.getItemLayout(l);c&&(s=c.startAngle)}if(this._emptyCircleSector&&o.remove(this._emptyCircleSector),i.count()===0&&e.get(`showEmptyCircle`)){var u=new tf({shape:L(mE(e))});u.useStyle(e.getModel(`emptyCircleStyle`).getItemStyle()),this._emptyCircleSector=u,o.add(u)}i.diff(a).add(function(e){var t=new hE(i,e,s);i.setItemGraphicEl(e,t),o.add(t)}).update(function(e,t){var n=a.getItemGraphicEl(t);n.updateData(i,e,s),n.off(`click`),o.add(n),i.setItemGraphicEl(e,n)}).remove(function(t){Uf(a.getItemGraphicEl(t),e,t)}).execute(),lE(e),e.get(`animationTypeUpdate`)!==`expansion`&&(this._data=i)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,t){var n=t.getData().getItemLayout(0);if(n){var r=e[0]-n.cx,i=e[1]-n.cy,a=Math.sqrt(r*r+i*i);return a<=n.r&&a>=n.r0}},t.type=`pie`,t}(rb);function _E(e){return{seriesType:e,reset:function(e,t){var n=e.getData();n.filterSelf(function(e){var t=n.mapDimension(`value`),r=n.get(t,e);return!(dt(r)&&!isNaN(r)&&r<0)})}}}function vE(e){e.registerChartView(gE),e.registerSeriesModel(BT),NT(`pie`,e.registerAction),e.registerLayout(fE),e.registerProcessor(IT(`pie`)),e.registerProcessor(_E(`pie`))}var yE=function(){function e(e,t){this.target=e,this.topTarget=t&&t.topTarget}return e}(),bE=function(){function e(e){this.handler=e,e.on(`mousedown`,this._dragStart,this),e.on(`mousemove`,this._drag,this),e.on(`mouseup`,this._dragEnd,this)}return e.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new yE(t,e),`dragstart`,e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,r=e.offsetY,i=n-this._x,a=r-this._y;this._x=n,this._y=r,t.drift(i,a,e),this.handler.dispatchToElement(new yE(t,e),`drag`,e.event);var o=this.handler.findHover(n,r,t).target,s=this._dropTarget;this._dropTarget=o,t!==o&&(s&&o!==s&&this.handler.dispatchToElement(new yE(s,e),`dragleave`,e.event),o&&o!==s&&this.handler.dispatchToElement(new yE(o,e),`dragenter`,e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new yE(t,e),`dragend`,e.event),this._dropTarget&&this.handler.dispatchToElement(new yE(this._dropTarget,e),`drop`,e.event),this._draggingTarget=null,this._dropTarget=null},e}(),xE=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,SE=[],CE=J.browser.firefox&&+J.browser.version.split(`.`)[0]<39;function wE(e,t,n,r){return n||={},r?TE(e,t,n):CE&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX==null?TE(e,t,n):(n.zrX=t.offsetX,n.zrY=t.offsetY),n}function TE(e,t,n){if(J.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(Ag(e)){var a=e.getBoundingClientRect();n.zrX=r-a.left,n.zrY=i-a.top;return}if(Dg(SE,e,r,i)){n.zrX=SE[0],n.zrY=SE[1];return}}n.zrX=n.zrY=0}function EE(e){return e||window.event}function DE(e,t,n){if(t=EE(t),t.zrX!=null)return t;var r=t.type;if(r&&r.indexOf(`touch`)>=0){var i=r===`touchend`?t.changedTouches[0]:t.targetTouches[0];i&&wE(e,i,t,n)}else{wE(e,t,t,n);var a=OE(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var o=t.button;return t.which==null&&o!==void 0&&xE.test(t.type)&&(t.which=o&1?1:o&2?3:o&4?2:0),t}function OE(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?n:r),a=r>0?-1:r<0?1:n>0?-1:1;return 3*i*a}function kE(e,t,n,r){e.addEventListener(t,n,r)}function AE(e,t,n,r){e.removeEventListener(t,n,r)}var jE=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},ME=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var r=e.touches;if(r){for(var i={points:[],touches:[],target:t,event:e},a=0,o=r.length;a<o;a++){var s=r[a],c=wE(n,s,{});i.points.push([c.zrX,c.zrY]),i.touches.push(s)}this._track.push(i)}},e.prototype._recognize=function(e){for(var t in FE)if(FE.hasOwnProperty(t)){var n=FE[t](this._track,e);if(n)return n}},e}();function NE(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function PE(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var FE={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 a=NE(r)/NE(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=PE(r);return t.pinchX=o[0],t.pinchY=o[1],{type:`pinch`,target:e[0].target,event:t}}}}},IE=`silent`;function LE(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:RE}}function RE(){jE(this.event)}var zE=function(e){I(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.handler=null,t}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Ra),BE=function(){function e(e,t){this.x=e,this.y=t}return e}(),VE=[`click`,`dblclick`,`mousewheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],HE=new X(0,0,0,0),UE=function(e){I(t,e);function t(t,n,r,i,a){var o=e.call(this)||this;return o._hovered=new BE(0,0),o.storage=t,o.painter=n,o.painterRoot=i,o._pointerSize=a,r||=new zE,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new bE(o),o}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(z(VE,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,r=KE(this,t,n),i=this._hovered,a=i.target;a&&!a.__zr&&(i=this.findHover(i.x,i.y),a=i.target);var o=this._hovered=r?new BE(t,n):this.findHover(t,n),s=o.target,c=this.proxy;c.setCursor&&c.setCursor(s?s.cursor:`default`),a&&s!==a&&this.dispatchToElement(i,`mouseout`,e),this.dispatchToElement(o,`mousemove`,e),s&&s!==a&&this.dispatchToElement(o,`mouseover`,e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;t!==`only_globalout`&&this.dispatchToElement(this._hovered,`mouseout`,e),t!==`no_globalout`&&this.trigger(`globalout`,{type:`globalout`,event:e})},t.prototype.resize=function(){this._hovered=new BE(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){e||={};var r=e.target;if(!(r&&r.silent)){for(var i=`on`+t,a=LE(t,e,n);r&&(r[i]&&(a.cancelBubble=!!r[i].call(r,a)),r.trigger(t,a),r=r.__hostTarget?r.__hostTarget:r.parent,!a.cancelBubble););a.cancelBubble||(this.trigger(t,a),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(e){typeof e[i]==`function`&&e[i].call(e,a),e.trigger&&e.trigger(t,a)}))}},t.prototype.findHover=function(e,t,n){var r=this.storage.getDisplayList(),i=new BE(e,t);if(GE(r,i,e,t,n),this._pointerSize&&!i.target){for(var a=[],o=this._pointerSize,s=o/2,c=new X(e-s,t-s,o,o),l=r.length-1;l>=0;l--){var u=r[l];u!==n&&!u.ignore&&!u.ignoreCoarsePointer&&(!u.parent||!u.parent.ignoreCoarsePointer)&&(HE.copy(u.getBoundingRect()),u.transform&&HE.applyTransform(u.transform),HE.intersect(c)&&a.push(u))}if(a.length){for(var d=4,f=Math.PI/12,p=Math.PI*2,m=0;m<s;m+=d)for(var h=0;h<p;h+=f)if(GE(a,i,e+m*Math.cos(h),t+m*Math.sin(h),n),i.target)return i}}return i},t.prototype.processGesture=function(e,t){this._gestureMgr||=new ME;var n=this._gestureMgr;t===`start`&&n.clear();var r=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(t===`end`&&n.clear(),r){var i=r.type;e.gestureEvent=i;var a=new BE;a.target=r.target,this.dispatchToElement(a,i,r.event)}},t}(Ra);z([`click`,`mousedown`,`mouseup`,`mousewheel`,`dblclick`,`contextmenu`],function(e){UE.prototype[e]=function(t){var n=t.zrX,r=t.zrY,i=KE(this,n,r),a,o;if((e!==`mouseup`||!i)&&(a=this.findHover(n,r),o=a.target),e===`mousedown`)this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e===`mouseup`)this._upEl=o;else if(e===`click`){if(this._downEl!==this._upEl||!this._downPoint||Dn(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function WE(e,t,n){if(e[e.rectHover?`rectContain`:`contain`](t,n)){for(var r=e,i=void 0,a=!1;r;){if(r.ignoreClip&&(a=!0),!a){var o=r.getClipPath();if(o&&!o.contain(t,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s?r.ignoreHostSilent?null:s:r.parent}return!i||IE}return!1}function GE(e,t,n,r,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=WE(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==IE)){t.target=o;break}}}function KE(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var qE=32,JE=7;function YE(e){for(var t=0;e>=qE;)t|=e&1,e>>=1;return e+t}function XE(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++;ZE(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function ZE(e,t,n){for(n--;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}function QE(e,t,n,r,i){for(r===t&&r++;r<n;r++){for(var a=e[r],o=t,s=r,c;o<s;)c=o+s>>>1,i(a,e[c])<0?s=c:o=c+1;var l=r-o;switch(l){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;l>0;)e[o+l]=e[o+l-1],l--}e[o]=a}}function $E(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])>0){for(s=r-i;c<s&&a(e,t[n+i+c])>0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}else{for(s=i+1;c<s&&a(e,t[n+i-c])<=0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s);var l=o;o=i-c,c=i-l}for(o++;o<c;){var u=o+(c-o>>>1);a(e,t[n+u])>0?o=u+1:c=u}return c}function eD(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])<0){for(s=i+1;c<s&&a(e,t[n+i-c])<0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s);var l=o;o=i-c,c=i-l}else{for(s=r-i;c<s&&a(e,t[n+i+c])>=0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}for(o++;o<c;){var u=o+(c-o>>>1);a(e,t[n+u])<0?c=u:o=u+1}return c}function tD(e,t){var n=JE,r,i,a=0,o=[];r=[],i=[];function s(e,t){r[a]=e,i[a]=t,a+=1}function c(){for(;a>1;){var e=a-2;if(e>=1&&i[e-1]<=i[e]+i[e+1]||e>=2&&i[e-2]<=i[e]+i[e-1])i[e-1]<i[e+1]&&e--;else if(i[e]>i[e+1])break;u(e)}}function l(){for(;a>1;){var e=a-2;e>0&&i[e-1]<i[e+1]&&e--,u(e)}}function u(n){var o=r[n],s=i[n],c=r[n+1],l=i[n+1];i[n]=s+l,n===a-3&&(r[n+1]=r[n+2],i[n+1]=i[n+2]),a--;var u=eD(e[c],e,o,s,0,t);o+=u,s-=u,s!==0&&(l=$E(e[o+s-1],e,c,l,l-1,t),l!==0&&(s<=l?d(o,s,c,l):f(o,s,c,l)))}function d(r,i,a,s){var c=0;for(c=0;c<i;c++)o[c]=e[r+c];var l=0,u=a,d=r;if(e[d++]=e[u++],--s===0)for(c=0;c<i;c++)e[d+c]=o[l+c];else if(i===1){for(c=0;c<s;c++)e[d+c]=e[u+c];e[d+s]=o[l]}else{for(var f=n,p,m,h;;){p=0,m=0,h=!1;do if(t(e[u],o[l])<0){if(e[d++]=e[u++],m++,p=0,--s===0){h=!0;break}}else if(e[d++]=o[l++],p++,m=0,--i===1){h=!0;break}while((p|m)<f);if(h)break;do{if(p=eD(e[u],o,l,i,0,t),p!==0){for(c=0;c<p;c++)e[d+c]=o[l+c];if(d+=p,l+=p,i-=p,i<=1){h=!0;break}}if(e[d++]=e[u++],--s===0){h=!0;break}if(m=$E(o[l],e,u,s,0,t),m!==0){for(c=0;c<m;c++)e[d+c]=e[u+c];if(d+=m,u+=m,s-=m,s===0){h=!0;break}}if(e[d++]=o[l++],--i===1){h=!0;break}f--}while(p>=JE||m>=JE);if(h)break;f<0&&(f=0),f+=2}if(n=f,n<1&&(n=1),i===1){for(c=0;c<s;c++)e[d+c]=e[u+c];e[d+s]=o[l]}else if(i===0)throw Error();else for(c=0;c<i;c++)e[d+c]=o[l+c]}}function f(r,i,a,s){var c=0;for(c=0;c<s;c++)o[c]=e[a+c];var l=r+i-1,u=s-1,d=a+s-1,f=0,p=0;if(e[d--]=e[l--],--i===0)for(f=d-(s-1),c=0;c<s;c++)e[f+c]=o[c];else if(s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u]}else{for(var m=n;;){var h=0,g=0,_=!1;do if(t(o[u],e[l])<0){if(e[d--]=e[l--],h++,g=0,--i===0){_=!0;break}}else if(e[d--]=o[u--],g++,h=0,--s===1){_=!0;break}while((h|g)<m);if(_)break;do{if(h=i-eD(o[u],e,r,i,i-1,t),h!==0){for(d-=h,l-=h,i-=h,p=d+1,f=l+1,c=h-1;c>=0;c--)e[p+c]=e[f+c];if(i===0){_=!0;break}}if(e[d--]=o[u--],--s===1){_=!0;break}if(g=s-$E(e[l],o,0,s,s-1,t),g!==0){for(d-=g,u-=g,s-=g,p=d+1,f=u+1,c=0;c<g;c++)e[p+c]=o[f+c];if(s<=1){_=!0;break}}if(e[d--]=e[l--],--i===0){_=!0;break}m--}while(h>=JE||g>=JE);if(_)break;m<0&&(m=0),m+=2}if(n=m,n<1&&(n=1),s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u]}else if(s===0)throw Error();else for(f=d-(s-1),c=0;c<s;c++)e[f+c]=o[c]}}return{mergeRuns:c,forceMergeRuns:l,pushRun:s}}function nD(e,t,n,r){n||=0,r||=e.length;var i=r-n;if(!(i<2)){var a=0;if(i<qE)a=XE(e,n,r,t),QE(e,n,r,n+a,t);else{var o=tD(e,t),s=YE(i);do{if(a=XE(e,n,r,t),a<s){var c=i;c>s&&(c=s),QE(e,n,n+c,n+a,t),a=c}o.pushRun(n,a),o.mergeRuns(),i-=a,n+=a}while(i!==0);o.forceMergeRuns()}}}var rD=!1;function iD(){rD||(rD=!0,console.warn(`z / z2 / zlevel of displayable is invalid, which may cause unexpected errors`))}function aD(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var oD=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=aD}return e.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},e.prototype.getDisplayList=function(e,t){t||=!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(t),n},e.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,r=0,i=t.length;r<i;r++)this._updateAndAddDisplayable(t[r],null,e);n.length=this._displayListLen,nD(n,aD)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!e.ignore||n){e.beforeUpdate(),e.update(),e.afterUpdate();var r=e.getClipPath(),i=t&&t.length,a=0,o=e.__clipPaths;if(!e.ignoreClip&&(i||r)){if(o||=e.__clipPaths=[],i)for(var s=0;s<t.length;s++)o[a++]=t[s];for(var c=r,l=e;c;)c.parent=l,c.updateTransform(),o[a++]=c,l=c,c=c.getClipPath()}if(o&&(o.length=a),e.childrenRef){for(var u=e.childrenRef(),d=0;d<u.length;d++){var f=u[d];e.__dirty&&(f.__dirty|=1),this._updateAndAddDisplayable(f,o,n)}e.__dirty=0}else{var p=e;isNaN(p.z)&&(iD(),p.z=0),isNaN(p.z2)&&(iD(),p.z2=0),isNaN(p.zlevel)&&(iD(),p.zlevel=0),this._displayList[this._displayListLen++]=p}var m=e.getDecalElement&&e.getDecalElement();m&&this._updateAndAddDisplayable(m,o,n);var h=e.getTextGuideLine();h&&this._updateAndAddDisplayable(h,o,n);var g=e.getTextContent();g&&this._updateAndAddDisplayable(g,o,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array)for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);else{var r=et(this._roots,e);r>=0&&this._roots.splice(r,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}(),sD=J.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};function cD(){return new Date().getTime()}var lD=function(e){I(t,e);function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t||={},n.stage=t.stage||{},n}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){for(var t=cD()-this._pausedTime,n=t-this._time,r=this._head;r;){var i=r.next;r.step(t,n)&&(r.ondestroy(),this.removeClip(r)),r=i}this._time=t,e||(this.trigger(`frame`,n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function t(){e._running&&(sD(t),!e._paused&&e.update())}sD(t)},t.prototype.start=function(){this._running||(this._time=cD(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||=(this._pauseStart=cD(),!0)},t.prototype.resume=function(){this._paused&&=(this._pausedTime+=cD()-this._pauseStart,!1)},t.prototype.clear=function(){for(var e=this._head;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,t){t||={},this.start();var n=new La(e,t.loop);return this.addAnimator(n),n},t}(Ra),uD=300,dD=J.domSupported,fD=(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};return{mouse:e,touch:t,pointer:B(e,function(e){var t=e.replace(`mouse`,`pointer`);return n.hasOwnProperty(t)?t:e})}})(),pD={mouse:[`mousemove`,`mouseup`],pointer:[`pointermove`,`pointerup`]},mD=!1;function hD(e){var t=e.pointerType;return t===`pen`||t===`touch`}function gD(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 _D(e){e&&(e.zrByTouch=!0)}function vD(e,t){return DE(e.dom,new bD(e,t),!0)}function yD(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 bD=function(){function e(e,t){this.stopPropagation=Nt,this.stopImmediatePropagation=Nt,this.preventDefault=Nt,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),xD={mousedown:function(e){e=DE(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger(`mousedown`,e)},mousemove:function(e){e=DE(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=DE(this.dom,e),this.__togglePointerCapture(!1),this.trigger(`mouseup`,e)},mouseout:function(e){e=DE(this.dom,e);var t=e.toElement||e.relatedTarget;yD(this,t)||(this.__pointerCapturing&&(e.zrEventControl=`no_globalout`),this.trigger(`mouseout`,e))},wheel:function(e){mD=!0,e=DE(this.dom,e),this.trigger(`mousewheel`,e)},mousewheel:function(e){mD||(e=DE(this.dom,e),this.trigger(`mousewheel`,e))},touchstart:function(e){e=DE(this.dom,e),_D(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,`start`),xD.mousemove.call(this,e),xD.mousedown.call(this,e)},touchmove:function(e){e=DE(this.dom,e),_D(e),this.handler.processGesture(e,`change`),xD.mousemove.call(this,e)},touchend:function(e){e=DE(this.dom,e),_D(e),this.handler.processGesture(e,`end`),xD.mouseup.call(this,e),+new Date-this.__lastTouchMoment<uD&&xD.click.call(this,e)},pointerdown:function(e){xD.mousedown.call(this,e)},pointermove:function(e){hD(e)||xD.mousemove.call(this,e)},pointerup:function(e){xD.mouseup.call(this,e)},pointerout:function(e){hD(e)||xD.mouseout.call(this,e)}};z([`click`,`dblclick`,`contextmenu`],function(e){xD[e]=function(t){t=DE(this.dom,t),this.trigger(e,t)}});var SD={pointermove:function(e){hD(e)||SD.mousemove.call(this,e)},pointerup:function(e){SD.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 CD(e,t){var n=t.domHandlers;J.pointerEventsSupported?z(fD.pointer,function(r){TD(t,r,function(t){n[r].call(e,t)})}):(J.touchEventsSupported&&z(fD.touch,function(r){TD(t,r,function(i){n[r].call(e,i),gD(t)})}),z(fD.mouse,function(r){TD(t,r,function(i){i=EE(i),t.touching||n[r].call(e,i)})}))}function wD(e,t){J.pointerEventsSupported?z(pD.pointer,n):J.touchEventsSupported||z(pD.mouse,n);function n(n){function r(r){r=EE(r),yD(e,r.target)||(r=vD(e,r),t.domHandlers[n].call(e,r))}TD(t,n,r,{capture:!0})}}function TD(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,kE(e.domTarget,t,n,r)}function ED(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&AE(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var DD=function(){function e(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return e}(),OD=function(e){I(t,e);function t(t,n){var r=e.call(this)||this;return r.__pointerCapturing=!1,r.dom=t,r.painterRoot=n,r._localHandlerScope=new DD(t,xD),dD&&(r._globalHandlerScope=new DD(document,SD)),CD(r,r._localHandlerScope),r}return t.prototype.dispose=function(){ED(this._localHandlerScope),dD&&ED(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||`default`)},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,dD&&+this.__pointerCapturing^e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?wD(this,t):ED(t)}},t}(Ra),kD={},AD={};function jD(e){delete AD[e]}function MD(e){if(!e)return!1;if(typeof e==`string`)return Gi(e,1)<Va;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=Gi(t[i].color,1);return n/=r,n<Va}return!1}var ND=function(){function e(e,t,n){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,n||={},this.dom=t,this.id=e;var i=new oD,a=n.renderer||`canvas`;kD[a]||(a=st(kD)[0]),n.useDirtyRect=n.useDirtyRect!=null&&n.useDirtyRect;var o=new kD[a](t,i,n,e),s=n.ssr||o.ssrOnly;this.storage=i,this.painter=o;var c=!J.node&&!J.worker&&!s?new OD(o.getViewportRoot(),o.root):null,l=n.useCoarsePointer,u=l==null||l===`auto`?J.touchEventsSupported:!!l,d=44,f;u&&(f=K(n.pointerSize,d)),this.handler=new UE(i,o,c,o.root,f),this.animation=new lD({stage:{update:s?null:function(){return r._flush(!1)}}}),s||this.animation.start()}return e.prototype.add=function(e){!this._disposed&&e&&(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},e.prototype.remove=function(e){!this._disposed&&e&&(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},e.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=MD(e))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(e){this._darkMode=e},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(e){this._disposed||this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},e.prototype._refresh=function(e){e.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:e.refresh,refreshHover:e.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},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(e){var t,n=cD(),r=this._needsRefresh,i=this._needsRefreshHover;(r||i)&&(t=!0,this._refresh({animUpdate:e,refresh:r,refreshHover:i}));var a=cD();t?(this._stillFrameAccum=0,this.trigger(`rendered`,{elapsedTime:a-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},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(e){this._disposed||(e||={},this.painter.resize(e.width,e.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(e){this._disposed||this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},e.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},e.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof Pd&&e[t].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,jD(this.id))},e}();function PD(e,t){var n=new ND(Ye(),e,t);return AD[n.id]=n,n}function FD(e,t){kD[e]=t}var ID;function LD(e){if(typeof ID==`function`)return ID(e)}function RD(e){ID=e}var zD=``;typeof navigator<`u`&&(zD=navigator.platform||``);var BD=`rgba(0, 0, 0, 0.2)`,VD=Z.color.theme[0],HD=Hi(VD,null,null,.9),UD={darkMode:`auto`,colorBy:`series`,color:Z.color.theme,gradientColor:[HD,VD],aria:{decal:{decals:[{color:BD,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:BD,symbol:`circle`,dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:BD,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:BD,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:BD,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:BD,symbol:`triangle`,dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:zD.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},WD=q();function GD(e,t,n){var r=WD.get(t);if(!r)return n;var i=r(e);return i?n.concat(i):n}var KD,qD,JD,YD=`\0_ec_inner`,XD=1,ZD=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(e,t,n,r,i,a){r||={},this.option=null,this._theme=new fm(r),this._locale=new fm(i),this._optionManager=a},t.prototype.setOption=function(e,t,n){var r=nO(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,nO(t))},t.prototype._resetOption=function(e,t){var n=!1,r=this._optionManager;if(!e||e===`recreate`){var i=r.mountOption(e===`recreate`);!this.option||e===`recreate`?JD(this,i):(this.restoreData(),this._mergeOption(i,t)),n=!0}if((e===`timeline`||e===`media`)&&this.restoreData(),!e||e===`recreate`||e===`timeline`){var a=r.getTimelineOption(this);a&&(n=!0,this._mergeOption(a,t))}if(!e||e===`recreate`||e===`media`){var o=r.getMediaOption(this);o.length&&z(o,function(e){n=!0,this._mergeOption(e,t)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,r=this._componentsMap,i=this._componentsCount,a=[],o=q(),s=t&&t.replaceMergeMainTypeMap;vm(this),z(e,function(e,t){e!=null&&(av.hasClass(t)?t&&(a.push(t),o.set(t,!0)):n[t]=n[t]==null?L(e):Ze(n[t],e,!0))}),s&&s.each(function(e,t){av.hasClass(t)&&!o.get(t)&&(a.push(t),o.set(t,!0))}),av.topologicalTravel(a,av.getAllClassMainTypes(),c,this);function c(t){var a=GD(this,t,Xc(e[t])),o=r.get(t),c=tl(o,a,o?s&&s.get(t)?`replaceMerge`:`normalMerge`:`replaceAll`);pl(c,t,av),n[t]=null,r.set(t,null),i.set(t,0);var l=[],u=[],d=0,f;z(c,function(e,n){var r=e.existing,i=e.newOption;if(!i)r&&(r.mergeOption({},this),r.optionUpdated({},!1));else{var a=t===`series`,o=av.getClass(t,e.keyInfo.subType,!a);if(!o)return;if(t===`tooltip`){if(f)return;f=!0}if(r&&r.constructor===o)r.name=e.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=R({componentIndex:n},e.keyInfo);r=new o(i,this,this,s),R(r,s),e.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}r?(l.push(r.option),u.push(r),d++):(l.push(void 0),u.push(void 0))},this),n[t]=l,r.set(t,u),i.set(t,d),t===`series`&&KD(this)}this._seriesIndices||KD(this)},t.prototype.getOption=function(){var e=L(this.option);return z(e,function(t,n){if(av.hasClass(n)){for(var r=Xc(t),i=r.length,a=!1,o=i-1;o>=0;o--)r[o]&&!fl(r[o])?a=!0:(r[o]=null,!a&&i--);r.length=i,e[n]=r}}),delete e[YD],e},t.prototype.setTheme=function(e){this._theme=new fm(e),this._resetOption(`recreate`,null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var r=n[t||0];if(r)return r;if(t==null){for(var i=0;i<n.length;i++)if(n[i])return n[i]}}},t.prototype.queryComponents=function(e){var t=e.mainType;if(!t)return[];var n=e.index,r=e.id,i=e.name,a=this._componentsMap.get(t);if(!a||!a.length)return[];var o;return n==null?o=r==null?i==null?at(a,function(e){return!!e}):eO(`name`,i,a):eO(`id`,r,a):(o=[],z(Xc(n),function(e){a[e]&&o.push(a[e])})),tO(o,e)},t.prototype.findComponents=function(e){var t=e.query,n=e.mainType,r=i(t);return a(tO(r?this.queryComponents(r):at(this._componentsMap.get(n),function(e){return!!e}),e));function i(e){var t=n+`Index`,r=n+`Id`,i=n+`Name`;return e&&(e[t]!=null||e[r]!=null||e[i]!=null)?{mainType:n,index:e[t],id:e[r],name:e[i]}:null}function a(t){return e.filter?at(t,e.filter):t}},t.prototype.eachComponent=function(e,t,n){var r=this._componentsMap;if(U(e)){var i=t,a=e;r.each(function(e,t){for(var n=0;e&&n<e.length;n++){var r=e[n];r&&a.call(i,t,r,r.componentIndex)}})}else for(var o=W(e)?r.get(e):G(e)?this.findComponents(e):null,s=0;o&&s<o.length;s++){var c=o[s];c&&t.call(n,c,c.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=ul(e,null);return at(this._componentsMap.get(`series`),function(e){return!!e&&t!=null&&e.name===t})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get(`series`)[e]},t.prototype.getSeriesByType=function(e){return at(this._componentsMap.get(`series`),function(t){return!!t&&t.subType===e})},t.prototype.getSeries=function(){return at(this._componentsMap.get(`series`),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get(`series`)},t.prototype.eachSeries=function(e,t){qD(this),z(this._seriesIndices,function(n){var r=this._componentsMap.get(`series`)[n];e.call(t,r,n)},this)},t.prototype.eachRawSeries=function(e,t){z(this._componentsMap.get(`series`),function(n){n&&e.call(t,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,t,n){qD(this),z(this._seriesIndices,function(r){var i=this._componentsMap.get(`series`)[r];i.subType===e&&t.call(n,i,r)},this)},t.prototype.eachRawSeriesByType=function(e,t,n){return z(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return qD(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){qD(this);var n=[];z(this._seriesIndices,function(r){var i=this._componentsMap.get(`series`)[r];e.call(t,i,r)&&n.push(r)},this),this._seriesIndices=n,this._seriesIndicesMap=q(n)},t.prototype.restoreData=function(e){KD(this);var t=this._componentsMap,n=[];t.each(function(e,t){av.hasClass(t)&&n.push(t)}),av.topologicalTravel(n,av.getAllClassMainTypes(),function(n){z(t.get(n),function(t){t&&(n!==`series`||!QD(t,e))&&t.restoreData()})})},t.internalField=function(){KD=function(e){var t=e._seriesIndices=[];z(e._componentsMap.get(`series`),function(e){e&&t.push(e.componentIndex)}),e._seriesIndicesMap=q(t)},qD=function(e){},JD=function(e,t){e.option={},e.option[YD]=XD,e._componentsMap=q({series:[]}),e._componentsCount=q();var n=t.aria;G(n)&&n.enabled==null&&(n.enabled=!0),$D(t,e._theme.option),Ze(t,UD,!1),e._mergeOption(t,null)}}(),t}(fm);function QD(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 $D(e,t){var n=e.color&&!e.colorLayer;z(t,function(t,r){r===`colorLayer`&&n||r===`color`&&e.color||av.hasClass(r)||(typeof t==`object`?e[r]=e[r]?Ze(e[r],t,!1):L(t):e[r]??(e[r]=t))})}function eO(e,t,n){if(H(t)){var r=q();return z(t,function(e){e!=null&&ul(e,null)!=null&&r.set(e,!0)}),at(n,function(t){return t&&r.get(t[e])})}var i=ul(t,null);return at(n,function(t){return t&&i!=null&&t[e]===i})}function tO(e,t){return t.hasOwnProperty(`subType`)?at(e,function(e){return e&&e.subType===t.subType}):e}function nO(e){var t=q();return e&&z(Xc(e.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}nt(ZD,lv);var rO=/^(min|max)?(.+)$/,iO=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(z(Xc(e.series),function(e){e&&e.data&&pt(e.data)&&wt(e.data)}),z(Xc(e.dataset),function(e){e&&e.source&&pt(e.source)&&wt(e.source)})),e=L(e);var r=this._optionBackup,i=aO(e,t,!r);this._newBaseOption=i.baseOption,r?(i.timelineOptions.length&&(r.timelineOptions=i.timelineOptions),i.mediaList.length&&(r.mediaList=i.mediaList),i.mediaDefault&&(r.mediaDefault=i.mediaDefault)):this._optionBackup=i},e.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],L(e?t.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var r=e.getComponent(`timeline`);r&&(t=L(n[r.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t=this._api.getWidth(),n=this._api.getHeight(),r=this._mediaList,i=this._mediaDefault,a=[],o=[];if(!r.length&&!i)return o;for(var s=0,c=r.length;s<c;s++)oO(r[s].query,t,n)&&a.push(s);return!a.length&&i&&(a=[-1]),a.length&&!cO(a,this._currentMediaIndices)&&(o=B(a,function(e){return L(e===-1?i.option:r[e].option)})),this._currentMediaIndices=a,o},e}();function aO(e,t,n){var r=[],i,a,o=e.baseOption,s=e.timeline,c=e.options,l=e.media,u=!!e.media,d=!!(c||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((d||u)&&(e.options=e.media=null),a=e),u&&H(l)&&z(l,function(e){e&&e.option&&(e.query?r.push(e):i||=e)}),f(a),z(c,function(e){return f(e)}),z(r,function(e){return f(e.option)});function f(e){z(t,function(t){t(e,n)})}return{baseOption:a,timelineOptions:c||[],mediaDefault:i,mediaList:r}}function oO(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return z(e,function(e,t){var n=t.match(rO);if(n&&n[1]&&n[2]){var a=n[1];sO(r[n[2].toLowerCase()],e,a)||(i=!1)}}),i}function sO(e,t,n){return n===`min`?e>=t:n===`max`?e<=t:e===t}function cO(e,t){return e.join(`,`)===t.join(`,`)}var lO=z,uO=G,dO=[`areaStyle`,`lineStyle`,`nodeStyle`,`linkStyle`,`chordStyle`,`label`,`labelLine`];function fO(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=dO.length;n<r;n++){var i=dO[n],a=t.normal,o=t.emphasis;a&&a[i]&&(e[i]=e[i]||{},e[i].normal?Ze(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(e[i]=e[i]||{},e[i].emphasis?Ze(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function pO(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,$e(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 mO(e){pO(e,`itemStyle`),pO(e,`lineStyle`),pO(e,`areaStyle`),pO(e,`label`),pO(e,`labelLine`),pO(e,`upperLabel`),pO(e,`edgeLabel`)}function hO(e,t){var n=uO(e)&&e[t],r=uO(n)&&n.textStyle;if(r)for(var i=0,a=Qc.length;i<a;i++){var o=Qc[i];r.hasOwnProperty(o)&&(n[o]=r[o])}}function gO(e){e&&(mO(e),hO(e,`label`),e.emphasis&&hO(e.emphasis,`label`))}function _O(e){if(uO(e)){fO(e),mO(e),hO(e,`label`),hO(e,`upperLabel`),hO(e,`edgeLabel`),e.emphasis&&(hO(e.emphasis,`label`),hO(e.emphasis,`upperLabel`),hO(e.emphasis,`edgeLabel`));var t=e.markPoint;t&&(fO(t),gO(t));var n=e.markLine;n&&(fO(n),gO(n));var r=e.markArea;r&&gO(r);var i=e.data;if(e.type===`graph`){i||=e.nodes;var a=e.links||e.edges;if(a&&!pt(a))for(var o=0;o<a.length;o++)gO(a[o]);z(e.categories,function(e){mO(e)})}if(i&&!pt(i))for(var o=0;o<i.length;o++)gO(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)gO(s[o]);if(n=e.markLine,n&&n.data)for(var c=n.data,o=0;o<c.length;o++)H(c[o])?(gO(c[o][0]),gO(c[o][1])):gO(c[o]);e.type===`gauge`?(hO(e,`axisLabel`),hO(e,`title`),hO(e,`detail`)):e.type===`treemap`?(pO(e.breadcrumb,`itemStyle`),z(e.levels,function(e){mO(e)})):e.type===`tree`&&mO(e.leaves)}}function vO(e){return H(e)?e:e?[e]:[]}function yO(e){return(H(e)?e[0]:e)||{}}function bO(e,t){lO(vO(e.series),function(e){uO(e)&&_O(e)});var n=[`xAxis`,`yAxis`,`radiusAxis`,`angleAxis`,`singleAxis`,`parallelAxis`,`radar`];t&&n.push(`valueAxis`,`categoryAxis`,`logAxis`,`timeAxis`),lO(n,function(t){lO(vO(e[t]),function(e){e&&(hO(e,`axisLabel`),hO(e.axisPointer,`label`))})}),lO(vO(e.parallel),function(e){var t=e&&e.parallelAxisDefault;hO(t,`axisLabel`),hO(t&&t.axisPointer,`label`)}),lO(vO(e.calendar),function(e){pO(e,`itemStyle`),hO(e,`dayLabel`),hO(e,`monthLabel`),hO(e,`yearLabel`)}),lO(vO(e.radar),function(e){hO(e,`name`),e.name&&e.axisName==null&&(e.axisName=e.name,delete e.name),e.nameGap!=null&&e.axisNameGap==null&&(e.axisNameGap=e.nameGap,delete e.nameGap)}),lO(vO(e.geo),function(e){uO(e)&&(gO(e),lO(vO(e.regions),function(e){gO(e)}))}),lO(vO(e.timeline),function(e){gO(e),pO(e,`label`),pO(e,`itemStyle`),pO(e,`controlStyle`,!0);var t=e.data;H(t)&&z(t,function(e){G(e)&&(pO(e,`label`),pO(e,`itemStyle`))})}),lO(vO(e.toolbox),function(e){pO(e,`iconStyle`),lO(e.feature,function(e){pO(e,`iconStyle`)})}),hO(yO(e.axisPointer),`label`),hO(yO(e.tooltip).axisPointer,`label`)}function xO(e,t){for(var n=t.split(`,`),r=e,i=0;i<n.length&&(r&&=r[n[i]],r!=null);i++);return r}function SO(e,t,n,r){for(var i=t.split(`,`),a=e,o,s=0;s<i.length-1;s++)o=i[s],a[o]??(a[o]={}),a=a[o];(r||a[i[s]]==null)&&(a[i[s]]=n)}function CO(e){e&&z(wO,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var wO=[[`x`,`left`],[`y`,`top`],[`x2`,`right`],[`y2`,`bottom`]],TO=[`grid`,`geo`,`parallel`,`legend`,`toolbox`,`title`,`visualMap`,`dataZoom`,`timeline`],EO=[[`borderRadius`,`barBorderRadius`],[`borderColor`,`barBorderColor`],[`borderWidth`,`barBorderWidth`]];function DO(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<EO.length;n++){var r=EO[n][1],i=EO[n][0];t[r]!=null&&(t[i]=t[r])}}function OO(e){e&&e.alignTo===`edge`&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function kO(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function AO(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus??(e.emphasis.focus=`adjacency`))}function jO(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&jO(e[n].children,t)}function MO(e,t){bO(e,t),e.series=Xc(e.series),z(e.series,function(e){if(G(e)){var t=e.type;if(t===`line`)e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(t===`pie`||t===`gauge`){e.clockWise!=null&&(e.clockwise=e.clockWise),OO(e.label);var n=e.data;if(n&&!pt(n))for(var r=0;r<n.length;r++)OO(n[r]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(t===`gauge`){var i=xO(e,`pointer.color`);i!=null&&SO(e,`itemStyle.color`,i)}else if(t===`bar`){DO(e),DO(e.backgroundStyle),DO(e.emphasis);var n=e.data;if(n&&!pt(n))for(var r=0;r<n.length;r++)typeof n[r]==`object`&&(DO(n[r]),DO(n[r]&&n[r].emphasis))}else if(t===`sunburst`){var a=e.highlightPolicy;a&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=a)),kO(e),jO(e.data,kO)}else t===`graph`||t===`sankey`?AO(e):t===`map`&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&$e(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),CO(e)}}),e.dataRange&&(e.visualMap=e.dataRange),z(TO,function(t){var n=e[t];n&&(H(n)||(n=[n]),z(n,function(e){CO(e)}))})}var NO=Gl(PO);function PO(e){var t=q();e.eachSeries(function(e){var n=e.get(`stack`);if(n){var r=t.get(n)||t.set(n,[]),i=e.getData(),a={stackResultDimension:i.getCalculationInfo(`stackResultDimension`),stackedOverDimension:i.getCalculationInfo(`stackedOverDimension`),stackedDimension:i.getCalculationInfo(`stackedDimension`),stackedByDimension:i.getCalculationInfo(`stackedByDimension`),isStackedByIndex:i.getCalculationInfo(`isStackedByIndex`),data:i,seriesModel:e};if(!a.stackedDimension||!(a.isStackedByIndex||a.stackedByDimension))return;r.push(a)}}),t.each(function(e){e.length!==0&&((e[0].seriesModel.get(`stackOrder`)||`seriesAsc`)===`seriesDesc`&&e.reverse(),z(e,function(t,n){t.data.setCalculationInfo(`stackedOnSeries`,n>0?e[n-1].seriesModel:null)}),FO(e))})}function FO(e){z(e,function(t,n){var r=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,c=t.seriesModel.get(`stackStrategy`)||`samesign`;o.modify(a,function(a,l,u){var d=o.get(t.stackedDimension,u);if(isNaN(d))return i;var f,p;s?p=o.getRawIndex(u):f=o.get(t.stackedByDimension,u);for(var m=NaN,h=n-1;h>=0;h--){var g=e[h];if(s||(p=g.data.rawIndexOf(g.stackedByDimension,f)),p>=0){var _=g.data.getByRawIndex(g.stackResultDimension,p);if(c===`all`||c===`positive`&&_>0||c===`negative`&&_<0||c===`samesign`&&d>=0&&_>0||c===`samesign`&&d<=0&&_<0){d=Tc(d,_),m=_;break}}}return r[0]=d,r[1]=m,r})})}var IO=function(){function e(){this.group=new Pd,this.uid=gg(`viewComponent`)}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){},e.prototype.updateLayout=function(e,t,n,r){},e.prototype.updateVisual=function(e,t,n,r){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();Ut(IO),Xt(IO);var LO=_l(),RO={itemStyle:Zt(lm,!0),lineStyle:Zt(om,!0)},zO={lineStyle:`stroke`,itemStyle:`fill`};function BO(e,t){return e.visualStyleMapper||RO[t]||(console.warn(`Unknown style type '`+t+`'.`),RO.itemStyle)}function VO(e,t){return e.visualDrawType||zO[t]||(console.warn(`Unknown style type '`+t+`'.`),`fill`)}var HO={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=e.getModel(r),a=BO(e,r)(i),o=i.getShallow(`decal`);o&&(n.setVisual(`decal`,o),o.dirty=!0);var s=VO(e,r),c=a[s],l=U(c)?c:null,u=a.fill===`auto`||a.stroke===`auto`;if(!a[s]||l||u){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[s]||(a[s]=d,n.setVisual(`colorFromPalette`,!0)),a.fill=a.fill===`auto`||U(a.fill)?d:a.fill,a.stroke=a.stroke===`auto`||U(a.stroke)?d:a.stroke}if(n.setVisual(`style`,a),n.setVisual(`drawType`,s),!t.isSeriesFiltered(e)&&l)return n.setVisual(`colorFromPalette`,!1),{dataEach:function(t,n){var r=e.getDataParams(n),i=R({},a);i[s]=l(r),t.setItemVisual(n,`style`,i)}}}},UO=new fm,WO={createOnAllSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=BO(e,r),a=n.getVisual(`drawType`);return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){UO.option=n[r];var o=i(UO);R(e.ensureUniqueItemVisual(t,`style`),o),UO.option.decal&&(e.setItemVisual(t,`decal`,UO.option.decal),UO.option.decal.dirty=!0),a in o&&e.setItemVisual(t,`colorFromPalette`,!1)}}:null}}}},GO={performRawSeries:!0,overallReset:function(e){var t=q();e.eachSeries(function(e){if(!e.isColorBySeries()){var n=e.type+`-`+e.getColorBy();LO(e).scope=t.get(n)||t.set(n,{})}}),e.eachSeries(function(e){if(!e.isColorBySeries()){var t=e.getRawData(),n={},r=e.getData(),i=LO(e).scope,a=VO(e,e.visualStyleAccessPath||`itemStyle`);r.each(function(e){var t=r.getRawIndex(e);n[t]=e}),t.each(function(o){var s=n[o];if(r.getItemVisual(s,`colorFromPalette`)){var c=r.ensureUniqueItemVisual(s,`style`),l=t.getName(o)||o+``,u=t.count();c[a]=e.getColorFromPalette(l,i,u)}})}})}},KO=Math.PI;function qO(e,t){t||={},$e(t,{text:`loading`,textColor:Z.color.primary,fontSize:12,fontWeight:`normal`,fontStyle:`normal`,fontFamily:`sans-serif`,maskColor:`rgba(255,255,255,0.8)`,showSpinner:!0,color:Z.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Pd,r=new Fs({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new Bs({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Fs({style:{fill:`none`},textContent:i,textConfig:{position:`right`,distance:10},zlevel:t.zlevel,z:10001});n.add(a);var o;return t.showSpinner&&(o=new yf({shape:{startAngle:-KO/2,endAngle:-KO/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:`round`,lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:KO*3/2}).start(`circularInOut`),o.animateShape(!0).when(1e3,{startAngle:KO*3/2}).delay(300).start(`circularInOut`),n.add(o)),n.resize=function(){var n=i.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,c=(e.getWidth()-s*2-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:s),l=e.getHeight()/2;t.showSpinner&&o.setShape({cx:c,cy:l}),a.setShape({x:c-s,y:l-s,width:s*2,height:s*2}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var JO=function(){function e(e,t,n,r){this._stageTaskMap=q(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(e){var t=e.overallTask;t&&t.dirty()})},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),r=n.context,i=!t&&n.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,a=r&&r.modDataCount;return{step:i,modBy:a==null?null:Math.ceil(a/i),modDataCount:a}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid);e.pipelineContext=n.context=e.__preparePipelineContext?e.__preparePipelineContext(t,n):Ul(e,t,n)},e.prototype.restorePipelines=function(e,t){var n=this,r=n._pipelineMap=q();t.eachSeries(function(t){var i=e.painter.type===`canvas`&&t.getProgressive(),a=t.uid;r.set(a,{id:a,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),n._pipe(t,t.dataTask)})},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;z(this._allHandlers,function(r){var i=e.get(r.uid)||e.set(r.uid,{});xt(!(r.reset&&r.overallReset),``),r.reset&&this._createSeriesStageTask(r,i,t,n),r.overallReset&&this._createOverallStageTask(r,i,t,n)},this)},e.prototype.prepareView=function(e,t,n,r){var i=e.renderTask,a=i.context;a.model=t,a.ecModel=n,a.api=r,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,r){r||={};var i=!1,a=this;z(e,function(e,s){if(!(r.visualType&&r.visualType!==e.visualType)){var c=a._stageTaskMap.get(e.uid),l=c.seriesTaskMap,u=c.overallTask;if(u){var d,f=u.agentStubMap;f.each(function(e){o(r,e)&&(e.dirty(),d=!0)}),d&&u.dirty(),a.updatePayload(u,n);var p=a.getPerformArgs(u,r.block);f.each(function(e){e.perform(p)}),u.perform(p)&&(i=!0)}else l&&l.each(function(s,c){o(r,s)&&s.dirty();var l=a.getPerformArgs(s,r.block);l.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),a.updatePayload(s,n),s.perform(l)&&(i=!0)})}});function o(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(e){t=e.dataTask.perform()||t}),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},e.prototype.updatePayload=function(e,t){t!==`remain`&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,r){var i=this,a=t.seriesTaskMap,o=t.seriesTaskMap=q(),s=e.seriesType,c=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(l):s?n.eachRawSeriesByType(s,l):c&&c(n,r).each(l);function l(t){var s=t.uid,c=o.set(s,a&&a.get(s)||_v({plan:$O,reset:ek,count:rk}));c.context={model:t,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(t,c)}},e.prototype._createOverallStageTask=function(e,t,n,r){var i=this,a=t.overallTask=t.overallTask||_v({reset:YO});a.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var o=a.agentStubMap,s=a.agentStubMap=q(),c=e.seriesType,l=e.getTargetSeries,u=e.dirtyOnOverallProgress,d=!1;xt(!e.createOnAllSeries,``),c?n.eachRawSeriesByType(c,f):l?l(n,r).each(f):z(n.getSeries(),f);function f(e){var t=e.uid,n=s.set(t,o&&o.get(t)||(d=!0,_v({reset:XO,onDirty:QO})));n.context={model:e,dirtyOnOverallProgress:u},n.agent=a,n.__block=u,i._pipe(e,n)}d&&a.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=t),r.tail&&r.tail.pipe(t),r.tail=t,t.__idxInPipeline=r.count++,t.__pipeline=r},e.wrapStageHandler=function(e,t){return U(e)&&(e={overallReset:e,seriesType:ik(e)}),e.uid=gg(`stageHandler`),t&&(e.visualType=t),e},e}();function YO(e){e.overallReset(e.ecModel,e.api,e.payload)}function XO(e){return e.dirtyOnOverallProgress&&ZO}function ZO(){this.agent.dirty(),this.getDownstream().dirty()}function QO(){this.agent&&this.agent.dirty()}function $O(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function ek(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Xc(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?B(t,function(e,t){return nk(t)}):tk}var tk=nk(0);function nk(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a<t.end;a++)i.dataEach(r,a);else i&&i.progress&&i.progress(t,r)}}function rk(e){return e.data.count()}function ik(e){sk=null;try{e(ak,ok)}catch{}return sk}var ak={},ok={},sk;ck(ak,ZD),ck(ok,ru),ak.eachSeriesByType=ak.eachRawSeriesByType=function(e){sk=e},ak.eachComponent=function(e){e.mainType===`series`&&e.subType&&(sk=e.subType)};function ck(e,t){for(var n in t.prototype)e[n]=Nt}var Q=Z.darkColor,lk=Q.background,uk=function(){return{axisLine:{lineStyle:{color:Q.axisLine}},splitLine:{lineStyle:{color:Q.axisSplitLine}},splitArea:{areaStyle:{color:[Q.backgroundTint,Q.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:Q.axisMinorSplitLine}},axisLabel:{color:Q.axisLabel},axisName:{}}},dk={label:{color:Q.secondary},itemStyle:{borderColor:Q.borderTint},dividerLineStyle:{color:Q.border}},fk={darkMode:!0,color:Q.theme,backgroundColor:lk,axisPointer:{lineStyle:{color:Q.border},crossStyle:{color:Q.borderShade},label:{color:Q.tertiary}},legend:{textStyle:{color:Q.secondary},pageTextStyle:{color:Q.tertiary}},textStyle:{color:Q.secondary},title:{textStyle:{color:Q.primary},subtextStyle:{color:Q.quaternary}},toolbox:{iconStyle:{borderColor:Q.accent50},feature:{dataView:{backgroundColor:lk,textColor:Q.primary,textareaColor:Q.background,textareaBorderColor:Q.border,buttonColor:Q.accent50,buttonTextColor:Q.neutral00}}},tooltip:{backgroundColor:Q.neutral20,defaultBorderColor:Q.border,textStyle:{color:Q.tertiary}},dataZoom:{borderColor:Q.accent10,textStyle:{color:Q.tertiary},brushStyle:{color:Q.backgroundTint},handleStyle:{color:Q.neutral00,borderColor:Q.accent20},moveHandleStyle:{color:Q.accent40},emphasis:{handleStyle:{borderColor:Q.accent50}},dataBackground:{lineStyle:{color:Q.accent30},areaStyle:{color:Q.accent20}},selectedDataBackground:{lineStyle:{color:Q.accent50},areaStyle:{color:Q.accent30}}},visualMap:{textStyle:{color:Q.secondary},handleStyle:{borderColor:Q.neutral30}},timeline:{lineStyle:{color:Q.accent10},label:{color:Q.tertiary},controlStyle:{color:Q.accent30,borderColor:Q.accent30}},calendar:{itemStyle:{color:Q.neutral00,borderColor:Q.neutral20},dayLabel:{color:Q.tertiary},monthLabel:{color:Q.secondary},yearLabel:{color:Q.secondary}},matrix:{x:dk,y:dk,backgroundColor:{borderColor:Q.axisLine},body:{itemStyle:{borderColor:Q.borderTint}}},timeAxis:uk(),logAxis:uk(),valueAxis:uk(),categoryAxis:uk(),line:{symbol:`circle`},graph:{color:Q.theme},gauge:{title:{color:Q.secondary},axisLine:{lineStyle:{color:[[1,Q.neutral05]]}},axisLabel:{color:Q.axisLabel},detail:{color:Q.primary}},candlestick:{itemStyle:{color:`#f64e56`,color0:`#54ea92`,borderColor:`#f64e56`,borderColor0:`#54ea92`}},funnel:{itemStyle:{borderColor:Q.background}},radar:function(){var e=uk();return e.axisName={color:Q.axisLabel},e.axisLine.lineStyle.color=Q.neutral20,e}(),treemap:{breadcrumb:{itemStyle:{color:Q.neutral20,textStyle:{color:Q.secondary}},emphasis:{itemStyle:{color:Q.neutral30}}}},sunburst:{itemStyle:{borderColor:Q.background}},map:{itemStyle:{borderColor:Q.border,areaColor:Q.neutral10},label:{color:Q.tertiary},emphasis:{label:{color:Q.primary},itemStyle:{areaColor:Q.highlight}},select:{label:{color:Q.primary},itemStyle:{areaColor:Q.highlight}}},geo:{itemStyle:{borderColor:Q.border,areaColor:Q.neutral10},emphasis:{label:{color:Q.primary},itemStyle:{areaColor:Q.highlight}},select:{label:{color:Q.primary},itemStyle:{color:Q.highlight}}}};fk.categoryAxis.splitLine.show=!1;var pk=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},r={};if(W(e)){var i=Bt(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var a=[`Index`,`Name`,`Id`],o={name:1,dataIndex:1,dataType:1};z(e,function(e,i){for(var s=!1,c=0;c<a.length;c++){var l=a[c],u=i.lastIndexOf(l);if(u>0&&u===i.length-l.length){var d=i.slice(0,u);d!==`data`&&(t.mainType=d,t[l.toLowerCase()]=e,s=!0)}}o.hasOwnProperty(i)&&(n[i]=e,s=!0),s||(r[i]=e)})}return{cptQuery:t,dataQuery:n,otherQuery:r}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,a=n.model,o=n.view;if(!a||!o)return!0;var s=t.cptQuery,c=t.dataQuery;return l(s,a,`mainType`)&&l(s,a,`subType`)&&l(s,a,`index`,`componentIndex`)&&l(s,a,`name`)&&l(s,a,`id`)&&l(c,i,`name`)&&l(c,i,`dataIndex`)&&l(c,i,`dataType`)&&(!o.filterForExposedEvent||o.filterForExposedEvent(e,t.otherQuery,r,i));function l(e,t,n,r){return e[n]==null||t[r||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),mk=[`symbol`,`symbolSize`,`symbolRotate`,`symbolOffset`],hk=mk.concat([`symbolKeepAspect`]),gk={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={},a=!1,o=0;o<mk.length;o++){var s=mk[o],c=e.get(s);U(c)?(a=!0,i[s]=c):r[s]=c}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(R({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get(`symbolKeepAspect`)},r)),t.isSeriesFiltered(e))return;var l=st(i);function u(t,n){for(var r=e.getRawValue(n),a=e.getDataParams(n),o=0;o<l.length;o++){var s=l[o];t.setItemVisual(n,s,i[s](r,a))}}return{dataEach:a?u:null}}},_k={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var n=e.getData();function r(e,t){for(var n=e.getItemModel(t),r=0;r<hk.length;r++){var i=hk[r],a=n.getShallow(i,!0);a!=null&&e.setItemVisual(t,i,a)}}return{dataEach:n.hasItemOption?r:null}}};function vk(e,t,n){switch(n){case`color`:return e.getItemVisual(t,`style`)[e.getVisual(`drawType`)];case`opacity`:return e.getItemVisual(t,`style`).opacity;case`symbol`:case`symbolSize`:case`liftZ`:return e.getItemVisual(t,n)}}function yk(e,t){switch(t){case`color`:return e.getVisual(`style`)[e.getVisual(`drawType`)];case`opacity`:return e.getVisual(`style`).opacity;case`symbol`:case`symbolSize`:case`liftZ`:return e.getVisual(t)}}function bk(e,t,n,r){switch(n){case`color`:var i=e.ensureUniqueItemVisual(t,`style`);i[e.getVisual(`drawType`)]=r,e.setItemVisual(t,`colorFromPalette`,!1);break;case`opacity`:e.ensureUniqueItemVisual(t,`style`).opacity=r;break;case`symbol`:case`symbolSize`:case`liftZ`:e.setItemVisual(t,n,r)}}function xk(e,t,n){for(var r;e&&!(t(e)&&(r=e,n));)e=e.__hostTarget||e.parent;return r}var Sk=new Ra,Ck={};function wk(e,t){Ck[e]=t}function Tk(e){return Ck[e]}var Ek={};function Dk(e,t){Ek[e]=t}var Ok=Math.round(Math.random()*9),kk=typeof Object.defineProperty==`function`,Ak=function(){function e(){this._id=`__ec_inner_`+Ok++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return kk?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[this._id]=t,this},e.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},e.prototype.has=function(e){return!!this._guard(e)[this._id]},e.prototype._guard=function(e){if(e!==Object(e))throw TypeError(`Value of WeakMap is not a non-null object.`);return e},e}();function jk(e){return isFinite(e)}function Mk(e,t,n){var r=t.x==null?0:t.x,i=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;return t.global||(r=r*n.width+n.x,i=i*n.width+n.x,a=a*n.height+n.y,o=o*n.height+n.y),r=jk(r)?r:0,i=jk(i)?i:1,a=jk(a)?a:0,o=jk(o)?o:0,e.createLinearGradient(r,a,i,o)}function Nk(e,t,n){var r=n.width,i=n.height,a=Math.min(r,i),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,c=t.r==null?.5:t.r;return t.global||(o=o*r+n.x,s=s*i+n.y,c*=a),o=jk(o)?o:.5,s=jk(s)?s:.5,c=c>=0&&jk(c)?c:.5,e.createRadialGradient(o,s,0,o,s,c)}function Pk(e,t,n){for(var r=t.type===`radial`?Nk(e,t,n):Mk(e,t,n),i=t.colorStops,a=0;a<i.length;a++)r.addColorStop(i[a].offset,i[a].color);return r}function Fk(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 Ik(e){return parseInt(e,10)}function Lk(e,t,n){var r=[`width`,`height`][t],i=[`clientWidth`,`clientHeight`][t],a=[`paddingLeft`,`paddingTop`][t],o=[`paddingRight`,`paddingBottom`][t];if(n[r]!=null&&n[r]!==`auto`)return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(e);return(e[i]||Ik(s[r])||Ik(e.style[r]))-(Ik(s[a])||0)-(Ik(s[o])||0)||0}function Rk(e,t){return!e||e===`solid`||!(t>0)?null:e===`dashed`?[4*t,2*t]:e===`dotted`?[t]:dt(e)?[e]:H(e)?e:null}function zk(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&Rk(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=B(n,function(e){return e/i}),r/=i)}return[n,r]}var Bk=new Xo(!0);function Vk(e){var t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))}function Hk(e){return typeof e==`string`&&e!==`none`}function Uk(e){var t=e.fill;return t!=null&&t!==`none`}function Wk(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 Gk(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 Kk(e,t,n){var r=on(t.image,t.__image,n);if(cn(r)){var i=e.createPattern(r,t.repeat||`repeat`);if(typeof DOMMatrix==`function`&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*Pt),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function qk(e,t,n,r,i){var a,o=Vk(n),s=Uk(n),c=n.strokePercent,l=c<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var d=t.path||Bk,f=t.__dirty;if(!r){var p=n.fill,m=n.stroke,h=s&&!!p.colorStops,g=o&&!!m.colorStops,_=s&&!!p.image,v=o&&!!m.image,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0;(h||g)&&(C=t.getBoundingRect()),h&&(y=f?Pk(e,p,C):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(b=f?Pk(e,m,C):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),_&&(x=f||!t.__canvasFillPattern?Kk(e,p,t):t.__canvasFillPattern,t.__canvasFillPattern=x),v&&(S=f||!t.__canvasStrokePattern?Kk(e,m,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),h?e.fillStyle=y:_&&(x?e.fillStyle=x:s=!1),g?e.strokeStyle=b:v&&(S?e.strokeStyle=S:o=!1)}var w=t.getGlobalScale();d.setScale(w[0],w[1],t.segmentIgnoreThreshold);var T,E;e.setLineDash&&n.lineDash&&(a=zk(t),T=a[0],E=a[1]);var D=!0;(u||f&4)&&(d.setDPR(e.dpr),l?d.setContext(null):(d.setContext(e),D=!1),d.reset(),t.buildPath(d,t.shape,r),d.toStatic(),t.pathUpdated()),D&&d.rebuildPath(e,l?c:1),T&&(e.setLineDash(T),e.lineDashOffset=E),r?(i.batchFill=s,i.batchStroke=o):n.strokeFirst?(o&&Gk(e,n),s&&Wk(e,n)):(s&&Wk(e,n),o&&Gk(e,n)),T&&e.setLineDash([])}function Jk(e,t,n){var r=t.__image=on(n.image,t.__image,t,t.onload);if(r&&cn(r)){var i=n.x||0,a=n.y||0,o=t.getWidth(),s=t.getHeight(),c=r.width/r.height;if(o==null&&s!=null?o=s*c:s==null&&o!=null?s=o/c:o==null&&s==null&&(o=r.width,s=r.height),n.sWidth&&n.sHeight){var l=n.sx||0,u=n.sy||0;e.drawImage(r,l,u,n.sWidth,n.sHeight,i,a,o,s)}else if(n.sx&&n.sy){var l=n.sx,u=n.sy,d=o-l,f=s-u;e.drawImage(r,l,u,d,f,i,a,o,s)}else e.drawImage(r,i,a,o,s)}}function Yk(e,t,n){var r,i=n.text;if(i!=null&&(i+=``),i){e.font=n.font||`12px sans-serif`,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var a=void 0,o=void 0;e.setLineDash&&n.lineDash&&(r=zk(t),a=r[0],o=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),n.strokeFirst?(Vk(n)&&e.strokeText(i,n.x,n.y),Uk(n)&&e.fillText(i,n.x,n.y)):(Uk(n)&&e.fillText(i,n.x,n.y),Vk(n)&&e.strokeText(i,n.x,n.y)),a&&e.setLineDash([])}}var Xk=[`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],Zk=[[`lineCap`,`butt`],[`lineJoin`,`miter`],[`miterLimit`,10]];function Qk(e,t,n,r,i){var a=!1;if(!r&&(n||={},t===n))return!1;if(r||t.opacity!==n.opacity){lA(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?lo.opacity:o}(r||t.blend!==n.blend)&&(a||=(lA(e,i),!0),e.globalCompositeOperation=t.blend||lo.blend);for(var s=0;s<Xk.length;s++){var c=Xk[s];(r||t[c]!==n[c])&&(a||=(lA(e,i),!0),e[c]=e.dpr*(t[c]||0))}return(r||t.shadowColor!==n.shadowColor)&&(a||=(lA(e,i),!0),e.shadowColor=t.shadowColor||lo.shadowColor),a}function $k(e,t,n,r,i){var a=t.style,o=r?null:n&&n.style||{};if(a===o)return!1;var s=Qk(e,a,o,r,i);if((r||a.fill!==o.fill)&&(s||=(lA(e,i),!0),Hk(a.fill)&&(e.fillStyle=a.fill)),(r||a.stroke!==o.stroke)&&(s||=(lA(e,i),!0),Hk(a.stroke)&&(e.strokeStyle=a.stroke)),(r||a.opacity!==o.opacity)&&(s||=(lA(e,i),!0),e.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var c=a.lineWidth/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==c&&(s||=(lA(e,i),!0),e.lineWidth=c)}for(var l=0;l<Zk.length;l++){var u=Zk[l],d=u[0];(r||a[d]!==o[d])&&(s||=(lA(e,i),!0),e[d]=a[d]||u[1])}return s}function eA(e,t,n,r,i){return Qk(e,t.style,n&&n.style,r,i)}function tA(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 nA(e,t,n){for(var r=!1,i=0;i<e.length;i++){var a=e[i];r||=a.isZeroArea(),tA(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}n.allClipped=r}function rA(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 iA=1,aA=2,oA=3,sA=4;function cA(e){var t=Uk(e),n=Vk(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 lA(e,t){t.batchFill&&(t.batchFill=!1,e.fill()),t.batchStroke&&(t.batchStroke=!1,e.stroke())}function uA(e,t){var n={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};dA(e,t,n),fA(e,n)}function dA(e,t,n){var r=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))t.__dirty&=-2,t.__isRendered=!1;else{var i=t.__clipPaths,a=n.prevElClipPaths,o=t.style,s=!1,c=!1;if((!a||Fk(i,a))&&(a&&(lA(e,n),e.restore(),c=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),i&&i.length&&(lA(e,n),e.save(),nA(i,e,n),s=!0,n.prevElClipPaths=i)),n.allClipped)t.__dirty&=-2,t.__isRendered=!1;else{t.beforeBrush&&t.beforeBrush(n.beforeBrushParam),t.innerBeforeBrush();var l=n.prevEl;l||(c=s=!0);var u=t instanceof xs&&t.autoBatch&&cA(o);s||rA(r,l.transform)?(lA(e,n),tA(e,t)):u||lA(e,n),t instanceof xs?(n.lastDrawType!==iA&&(c=!0,n.lastDrawType=iA),$k(e,t,l,c,n),(!u||!n.batchFill&&!n.batchStroke)&&e.beginPath(),qk(e,t,o,u,n)):t instanceof Cs?(n.lastDrawType!==oA&&(c=!0,n.lastDrawType=oA),$k(e,t,l,c,n),Yk(e,t,o)):t instanceof Ds?(n.lastDrawType!==aA&&(c=!0,n.lastDrawType=aA),eA(e,t,l,c,n),Jk(e,t,o)):t.getTemporalDisplayables&&(n.lastDrawType!==sA&&(c=!0,n.lastDrawType=sA),pA(e,t,n)),t.innerAfterBrush(),t.afterBrush&&(u&&lA(e,n),t.afterBrush()),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}}}function fA(e,t){lA(e,t),t.prevElClipPaths&&e.restore()}function pA(e,t,n){var r=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();for(var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover,beforeBrushParam:{}},o=t.getCursor(),s=r.length;o<s;o++){var c=r[o];c.beforeBrush&&c.beforeBrush(n.beforeBrushParam),c.innerBeforeBrush(),dA(e,c,a),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}fA(e,a);for(var l=0,u=i.length;l<u;l++){var c=i[l];c.beforeBrush&&c.beforeBrush(n.beforeBrushParam),c.innerBeforeBrush(),dA(e,c,a),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}fA(e,a),t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var mA=new Ak,hA=new nn(100),gA=[`symbol`,`symbolSize`,`symbolKeepAspect`,`color`,`backgroundColor`,`dashArrayX`,`dashArrayY`,`maxTileWidth`,`maxTileHeight`];function _A(e,t){if(e===`none`)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i=r.painter.type===`svg`;e.dirty&&mA.delete(e);var a=mA.get(e);if(a)return a;var o=$e(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});o.backgroundColor===`none`&&(o.backgroundColor=null);var s={repeat:`repeat`};return c(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/n,mA.set(e,s),e.dirty=!1,s;function c(e){for(var t=[n],a=!0,s=0;s<gA.length;++s){var c=o[gA[s]];if(c!=null&&!H(c)&&!W(c)&&!dt(c)&&typeof c!=`boolean`){a=!1;break}t.push(c)}var l;if(a){l=t.join(`,`)+(i?`-svg`:``);var u=hA.get(l);u&&(i?e.svgElement=u:e.image=u)}var d=yA(o.dashArrayX),f=bA(o.dashArrayY),p=vA(o.symbol),m=xA(d),h=SA(f),g=!i&&Fe.createCanvas(),_=i&&{tag:`g`,attrs:{},key:`dcl`,children:[]},v=b(),y;g&&(g.width=v.width*n,g.height=v.height*n,y=g.getContext(`2d`)),x(),a&&hA.put(l,g||_),e.image=g,e.svgElement=_,e.svgWidth=v.width,e.svgHeight=v.height;function b(){for(var e=1,t=0,n=m.length;t<n;++t)e=zc(e,m[t]);for(var r=1,t=0,n=p.length;t<n;++t)r=zc(r,p[t].length);e*=r;var i=h*m.length*p.length;return{width:Math.max(1,Math.min(e,o.maxTileWidth)),height:Math.max(1,Math.min(i,o.maxTileHeight))}}function x(){y&&(y.clearRect(0,0,g.width,g.height),o.backgroundColor&&(y.fillStyle=o.backgroundColor,y.fillRect(0,0,g.width,g.height)));for(var e=0,t=0;t<f.length;++t)e+=f[t];if(e<=0)return;for(var a=-h,s=0,c=0,l=0;a<v.height;){if(s%2==0){for(var u=c/2%p.length,m=0,b=0,x=0;m<v.width*2;){for(var S=0,t=0;t<d[l].length;++t)S+=d[l][t];if(S<=0)break;if(b%2==0){var C=(1-o.symbolSize)*.5,w=m+d[l][b]*C,T=a+f[s]*C,E=d[l][b]*o.symbolSize,D=f[s]*o.symbolSize,O=x/2%p[u].length;k(w,T,E,D,p[u][O])}m+=d[l][b],++x,++b,b===d[l].length&&(b=0)}++l,l===d.length&&(l=0)}a+=f[s],++c,++s,s===f.length&&(s=0)}function k(e,t,a,s,c){var l=i?1:n,u=wy(c,e*l,t*l,a*l,s*l,o.color,o.symbolKeepAspect);if(i){var d=r.painter.renderOneToVNode(u);d&&_.children.push(d)}else uA(y,u)}}}}function vA(e){if(!e||e.length===0)return[[`rect`]];if(W(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!W(e[n])){t=!1;break}if(t)return vA([e]);for(var r=[],n=0;n<e.length;++n)W(e[n])?r.push([e[n]]):r.push(e[n]);return r}function yA(e){if(!e||e.length===0)return[[0,0]];if(dt(e)){var t=Math.ceil(e);return[[t,t]]}for(var n=!0,r=0;r<e.length;++r)if(!dt(e[r])){n=!1;break}if(n)return yA([e]);for(var i=[],r=0;r<e.length;++r)if(dt(e[r])){var t=Math.ceil(e[r]);i.push([t,t])}else{var t=B(e[r],function(e){return Math.ceil(e)});t.length%2==1?i.push(t.concat(t)):i.push(t)}return i}function bA(e){if(!e||typeof e==`object`&&e.length===0)return[0,0];if(dt(e)){var t=Math.ceil(e);return[t,t]}var n=B(e,function(e){return Math.ceil(e)});return e.length%2?n.concat(n):n}function xA(e){return B(e,function(e){return SA(e)})}function SA(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2==1?t*2:t}var CA=Gl(wA);function wA(e,t){e.eachRawSeries(function(n){if(!e.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each(function(e){var n=r.getItemVisual(e,`decal`);if(n){var i=r.ensureUniqueItemVisual(e,`style`);i.decal=_A(n,t)}});var i=r.getVisual(`decal`);if(i){var a=r.getVisual(`style`);a.decal=_A(i,t)}}})}var TA=1,EA=800,DA=900,OA=920,kA=1e3,AA=2e3,jA=5e3,MA=1e3,NA=1100,PA=2e3,FA=3e3,IA=4e3,LA=4500,RA=4600,zA=5e3,BA=6e3,VA=7e3,HA={PROCESSOR:{SERIES_FILTER:EA,AXIS_STATISTICS:OA,FILTER:kA,STATISTIC:jA,STATISTICS:jA},VISUAL:{LAYOUT:MA,PROGRESSIVE_LAYOUT:NA,GLOBAL:PA,CHART:FA,POST_CHART_LAYOUT:RA,COMPONENT:IA,BRUSH:zA,CHART_ITEM:LA,ARIA:BA,DECAL:VA}},UA=`__flagInMainProcess`,WA=`__mainProcessVersion`,GA=`__pendingUpdate`,KA=`__needsUpdateStatus`,qA=/^[a-zA-Z0-9_]+$/,JA=`__connectUpdateStatus`,YA=0,XA=1,ZA=2;function QA(e){return function(){var t=[...arguments];if(this.isDisposed())this.id;else return ej(this,e,t)}}function $A(e){return function(){var t=[...arguments];return ej(this,e,t)}}function ej(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),Ra.prototype[t].apply(e,n)}var tj=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Ra),nj=tj.prototype;nj.on=$A(`on`),nj.off=$A(`off`);var rj,ij,aj,oj,sj,cj,lj,uj,dj,fj,pj,mj,hj,gj,_j,vj,yj,bj,xj,Sj=function(e){I(t,e);function t(t,n,r){var i=e.call(this,new pk)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r||={},i.__v_skip=!0,i._dom=t;var a=`canvas`,o=`auto`,s=!1;i[WA]=1,r.ssr&&RD(function(e){var t=Kl(e),n=t.dataIndex;if(n!=null){var r=q();return r.set(`series_index`,t.seriesIndex),r.set(`data_index`,n),t.ssrType&&r.set(`ssr_type`,t.ssrType),r}});var c=i._zr=PD(t,{renderer:r.renderer||a,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:K(r.useDirtyRect,s),useCoarsePointer:K(r.useCoarsePointer,o),pointerSize:r.pointerSize});i._ssr=r.ssr,i._throttledZrFlush=Zw(V(c.flush,c),17),i._updateTheme(n),i._locale=Ug(r.locale||Vg),i._coordSysMgr=new Yh;var l=i._api=_j(i);function u(e,t){return e.__prio-t.__prio}return nD(Aj,u),nD(Oj,u),i._scheduler=new JO(i,l,Oj,Aj),i._messageCenter=new tj,i._initEvents(),i.resize=V(i.resize,i),c.animation.on(`frame`,i._onframe,i),fj(c,i),pj(c,i),wt(i),i}return t.prototype._onframe=function(){if(!this._disposed){var e=this._scheduler,t=this._model,n=this._api;if(bj(this),this[GA]){var r=this[GA].silent;this[UA]=!0,xj(this);try{rj(this),oj.update.call(this,null,this[GA].updateParams)}catch(e){throw this[UA]=!1,this[GA]=null,e}this._zr.flush(),this[UA]=!1,this[GA]=null,uj.call(this,r),dj.call(this,r)}else if(e.unfinished){var i=TA;do{e.unfinished=!1;var a=Fe.getTime();e.performSeriesTasks(t),e.performDataProcessorTasks(t),cj(this,t),e.performVisualTasks(t),gj(this,this._model,n,`remain`,{}),i-=Fe.getTime()-a}while(i>0&&e.unfinished);e.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(e,t,n){if(!this[UA]){if(this._disposed)this.id;else{var r,i,a;if(G(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,a=t.transition,t=t.notMerge),this[UA]=!0,xj(this),!this._model||t){var o=new iO(this._api),s=this._theme,c=this._model=new ZD;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:i},kj);var l={seriesTransition:a,optionChanged:!0};if(n)this[GA]={silent:r,updateParams:l},this[UA]=!1,this.getZr().wakeUp();else{try{rj(this),oj.update.call(this,null,l)}catch(e){throw this[GA]=null,this[UA]=!1,e}this._ssr||this._zr.flush(),this[GA]=null,this[UA]=!1,uj.call(this,r),dj.call(this,r)}}}},t.prototype.setTheme=function(e,t){if(!this[UA]){if(this._disposed)this.id;else{var n=this._model;if(n){var r=t&&t.silent,i=null;this[GA]&&(r??=this[GA].silent,i=this[GA].updateParams,this[GA]=null),this[UA]=!0,xj(this);try{this._updateTheme(e),n.setTheme(this._theme),rj(this),oj.update.call(this,{type:`setTheme`},i)}catch(e){throw this[UA]=!1,e}this[UA]=!1,uj.call(this,r),dj.call(this,r)}}}},t.prototype._updateTheme=function(e){W(e)&&(e=jj[e]),e&&(e=L(e),e&&MO(e,!0),this._theme=e)},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||J.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){return e||={},this._zr.painter.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get(`backgroundColor`),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){return e||={},this._zr.painter.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){var e=this._zr;return z(e.storage.getDisplayList(),function(e){e.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(this._disposed)this.id;else{e||={};var t=e.excludeComponents,n=this._model,r=[],i=this;z(t,function(e){n.eachComponent({mainType:e},function(e){var t=i._componentsMap[e.__viewId];t.group.ignore||(r.push(t),t.group.ignore=!0)})});var a=this._zr.painter.getType()===`svg`?this.getSvgDataURL():this.renderToCanvas(e).toDataURL(`image/`+(e&&e.type||`png`));return z(r,function(e){e.group.ignore=!1}),a}},t.prototype.getConnectedDataURL=function(e){if(this._disposed)this.id;else{var t=e.type===`svg`,n=this.group,r=Math.min,i=Math.max,a=1/0;if(Pj[n]){var o=a,s=a,c=-a,l=-a,u=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();z(Nj,function(a,d){if(a.group===n){var f=t?a.getZr().painter.getSvgDom().innerHTML:a.renderToCanvas(L(e)),p=a.getDom().getBoundingClientRect();o=r(p.left,o),s=r(p.top,s),c=i(p.right,c),l=i(p.bottom,l),u.push({dom:f,left:p.left,top:p.top})}}),o*=d,s*=d,c*=d,l*=d;var f=c-o,p=l-s,m=Fe.createCanvas(),h=PD(m,{renderer:t?`svg`:`canvas`});if(h.resize({width:f,height:p}),t){var g=``;return z(u,function(e){var t=e.left-o,n=e.top-s;g+=`<g transform="translate(`+t+`,`+n+`)">`+e.dom+`</g>`}),h.painter.getSvgRoot().innerHTML=g,e.connectedBackgroundColor&&h.painter.setBackgroundColor(e.connectedBackgroundColor),h.refreshImmediately(),h.painter.toDataURL()}return e.connectedBackgroundColor&&h.add(new Fs({shape:{x:0,y:0,width:f,height:p},style:{fill:e.connectedBackgroundColor}})),z(u,function(e){var t=new Ds({style:{x:e.left*d-o,y:e.top*d-s,image:e.dom}});h.add(t)}),h.refreshImmediately(),m.toDataURL(`image/`+(e&&e.type||`png`))}return this.getDataURL(e)}},t.prototype.convertToPixel=function(e,t,n){return sj(this,`convertToPixel`,e,t,n)},t.prototype.convertToLayout=function(e,t,n){return sj(this,`convertToLayout`,e,t,n)},t.prototype.convertFromPixel=function(e,t,n){return sj(this,`convertFromPixel`,e,t,n)},t.prototype.containPixel=function(e,t){if(this._disposed)this.id;else{var n=this._model,r;return z(yl(n,e),function(e,n){n.indexOf(`Models`)>=0&&z(e,function(e){var i=e.coordinateSystem;if(i&&i.containPoint)r||=!!i.containPoint(t);else if(n===`seriesModels`){var a=this._chartsMap[e.__viewId];a&&a.containPoint&&(r||=a.containPoint(t,e))}},this)},this),!!r}},t.prototype.getVisual=function(e,t){var n=this._model,r=yl(n,e,{defaultMainType:`series`}),i=r.seriesModel.getData(),a=r.hasOwnProperty(`dataIndexInside`)?r.dataIndexInside:r.hasOwnProperty(`dataIndex`)?i.indexOfRawIndex(r.dataIndex):null;return a==null?yk(i,t):vk(i,a,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;z(wj,function(t){var n=function(n){var r=e.getModel(),i=n.target,a;if(t===`globalout`?a={}:i&&xk(i,function(e){var t=Kl(e);if(t&&t.dataIndex!=null){var n=t.dataModel||r.getSeriesByIndex(t.seriesIndex);return a=n&&n.getDataParams(t.dataIndex,t.dataType,i)||{},!0}if(t.eventData)return a=R({},t.eventData),!0},!0),a){var o=a.componentType,s=a.componentIndex;(o===`markLine`||o===`markPoint`||o===`markArea`)&&(o=`series`,s=a.seriesIndex);var c=o&&s!=null&&r.getComponent(o,s),l=c&&e[c.mainType===`series`?`_chartsMap`:`_componentsMap`][c.__viewId];a.event=n,a.type=t,e._$eventProcessor.eventInfo={targetEl:i,packedEvent:a,model:c,view:l},e.trigger(t,a)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)});var t=this._messageCenter;z(Dj,function(n,r){t.on(r,function(t){e.trigger(r,t)})}),FT(t,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)this.id;else{this._disposed=!0,this.getDom()&&wl(this.getDom(),Ij,``);var e=this,t=e._api,n=e._model;z(e._componentsViews,function(e){e.dispose(n,t)}),z(e._chartsViews,function(e){e.dispose(n,t)}),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete Nj[e.id]}},t.prototype.resize=function(e){if(!this[UA]){if(this._disposed)this.id;else{this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption(`media`),r=e&&e.silent;this[GA]&&(r??=this[GA].silent,n=!0,this[GA]=null),this[UA]=!0,xj(this);try{n&&rj(this),oj.update.call(this,{type:`resize`,animation:R({duration:0},e&&e.animation)})}catch(e){throw this[UA]=!1,e}this[UA]=!1,uj.call(this,r),dj.call(this,r)}}}},t.prototype.showLoading=function(e,t){if(this._disposed)this.id;else if(G(e)&&(t=e,e=``),e||=`default`,this.hideLoading(),Mj[e]){var n=Mj[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},t.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var t=R({},e);return t.type=Ej[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed)this.id;else if(G(t)||(t={silent:!!t}),Tj[e.type]&&this._model){if(this[UA])this._pendingActions.push(e);else{var n=t.silent;lj.call(this,e,n);var r=t.flush;r?this._zr.flush():r!==!1&&J.browser.weChat&&this._throttledZrFlush(),uj.call(this,n),dj.call(this,n)}}},t.prototype.updateLabelLayout=function(){Sk.trigger(`series:layoutlabels`,this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed)this.id;else{var t=e.seriesIndex;this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},t.internalField=function(){rj=function(e){CS(e._model);var t=e._scheduler;t.restorePipelines(e._zr,e._model),t.prepareStageTasks(),ij(e,!0),ij(e,!1),t.plan()},ij=function(e,t){for(var n=e._model,r=e._scheduler,i=t?e._componentsViews:e._chartsViews,a=t?e._componentsMap:e._chartsMap,o=e._zr,s=e._api,c=0;c<i.length;c++)i[c].__alive=!1;t?n.eachComponent(function(e,t){e!==`series`&&l(t)}):n.eachSeries(l);function l(e){var c=e.__requireNewView;e.__requireNewView=!1;var l=`_ec_`+e.id+`_`+e.type,u=!c&&a[l];if(!u){var d=Bt(e.type);u=new(t?IO.getClass(d.main,d.sub):rb.getClass(d.sub)),u.init(n,s),a[l]=u,i.push(u),o.add(u.group)}e.__viewId=u.__id=l,u.__alive=!0,u.__model=e,u.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!t&&r.prepareView(u,e,n,s)}for(var c=0;c<i.length;){var u=i[c];u.__alive?c++:(!t&&u.renderTask.dispose(),o.remove(u.group),u.dispose(n,s),i.splice(c,1),a[u.__id]===u&&delete a[u.__id],u.__id=u.group.__ecComponentInfo=null)}},aj=function(e,t,n,r,i){var a=e._model;if(a.setUpdatePayload(n),!r){z([].concat(e._componentsViews,e._chartsViews),l);return}var o=Cl(n,r,i),s=n.excludeSeriesId,c;s!=null&&(c=q(),z(Xc(s),function(e){var t=ul(e,null);t!=null&&c.set(t,!0)})),a&&a.eachComponent(o,function(t){if(!(c&&c.get(t.id)!=null)){if(ud(n)){if(t instanceof ly)n.type===`highlight`&&!n.notBlur&&!t.get([`emphasis`,`disabled`])&&Ku(t,n,e._api);else{var r=qu(t.mainType,t.componentIndex,n.name,e._api),i=r.focusSelf,a=r.dispatchers;n.type===`highlight`&&i&&!n.notBlur&&Gu(t.mainType,t.componentIndex,e._api),a&&z(a,function(e){n.type===`highlight`?Iu(e):Lu(e)})}}else ld(n)&&t instanceof ly&&(Xu(t,n,e._api),Zu(t),yj(e))}},e),a&&a.eachComponent(o,function(t){c&&c.get(t.id)!=null||l(e[r===`series`?`_chartsMap`:`_componentsMap`][t.__viewId])},e);function l(r){r&&r.__alive&&r[t]&&r[t](r.__model,a,e._api,n)}},oj={prepareAndUpdate:function(e){rj(this),oj.update.call(this,e,e&&{optionChanged:e.newOption!=null})},update:function(e,n){var r=this._model,i=this._api,a=this._zr,o=this._coordSysMgr,s=this._scheduler;if(r){wS(r),r.setUpdatePayload(e),s.restoreData(r,e),s.performSeriesTasks(r),o.create(r,i),Sk.trigger(`coordsys:aftercreate`,r,i),s.performDataProcessorTasks(r,e),cj(this,r),o.update(r,i),t(r),s.performVisualTasks(r,e);var c=r.get(`backgroundColor`)||`transparent`;a.setBackgroundColor(c);var l=r.get(`darkMode`);l!=null&&l!==`auto`&&a.setDarkMode(l),mj(this,r,i,e,n),Sk.trigger(`afterupdate`,r,i)}},updateTransform:function(e){var t=this,n=t._model,r=t._api;if(n){n.setUpdatePayload(e);var i=[];n.eachComponent(function(a,o){if(a!==`series`){var s=t.getViewOfComponentModel(o);if(s&&s.__alive){if(s.updateTransform){var c=s.updateTransform(o,n,r,e);c&&c.update&&i.push(s)}else i.push(s)}}});var a=q();n.eachSeries(function(i){var o=t._chartsMap[i.__viewId],s=i.pipelineContext;if(o.updateTransform&&!s.progressiveRender){var c=o.updateTransform(i,n,r,e);c&&c.update&&a.set(i.uid,1)}else a.set(i.uid,1)}),t._scheduler.performVisualTasks(n,e,{setDirty:!0,dirtyMap:a}),gj(t,n,r,e,{},a),Sk.trigger(`afterupdate`,n,r)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),rb.markUpdateMethod(e,`updateView`),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),mj(this,n,this._api,e,{}),Sk.trigger(`afterupdate`,n,this._api))},updateVisual:function(e){var n=this,r=this._model;r&&(r.setUpdatePayload(e),r.eachSeries(function(e){e.getData().clearAllVisual()}),rb.markUpdateMethod(e,`updateVisual`),t(r),this._scheduler.performVisualTasks(r,e,{visualType:`visual`,setDirty:!0}),r.eachComponent(function(t,i){if(t!==`series`){var a=n.getViewOfComponentModel(i);a&&a.__alive&&a.updateVisual(i,r,n._api,e)}}),r.eachSeries(function(t){n._chartsMap[t.__viewId].updateVisual(t,r,n._api,e)}),Sk.trigger(`afterupdate`,r,this._api))},updateLayout:function(e){oj.update.call(this,e)}};function e(e,t,n,r,i){if(e._disposed)e.id;else for(var a=e._model,o=e._coordSysMgr.getCoordinateSystems(),s,c=yl(a,n),l=0;l<o.length;l++){var u=o[l];if(u[t]&&(s=u[t](a,c,r,i))!=null)return s}}sj=e,cj=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries(function(e){r.updateStreamModes(e,n[e.__viewId])})},lj=function(e,t){var n=this,r=this.getModel(),i=e.type,a=e.escapeConnect,o=Tj[i],s=(o.update||`update`).split(`:`),c=s.pop(),l=s[0]!=null&&Bt(s[0]);this[UA]=!0,xj(this);var u=[e],d=!1;e.batch&&(d=!0,u=B(e.batch,function(t){return t=$e(R({},t),e),t.batch=null,t}));var f=[],p,m=[],h=o.nonRefinedEventType,g=ld(e),_=ud(e);if(_&&Uu(this._api),z(u,function(t){var i=o.action(t,r,n._api);if(o.refineEvent?m.push(i):p=i,p||=R({},t),p.type=h,f.push(p),_){var a=bl(e),s=a.queryOptionMap,u=a.mainTypeSpecified?s.keys()[0]:`series`;aj(n,c,t,u),yj(n)}else g?(aj(n,c,t,`series`),yj(n)):l&&aj(n,c,t,l.main,l.sub)}),c!==`none`&&!_&&!g&&!l)try{this[GA]?(rj(this),oj.update.call(this,e),this[GA]=null):oj[c].call(this,e)}catch(e){throw this[UA]=!1,e}if(p=d?{type:h,escapeConnect:a,batch:f}:f[0],this[UA]=!1,!t){var v=void 0;if(o.refineEvent){var y=o.refineEvent(m,e,r,this._api).eventContent;xt(G(y)),v=$e({type:o.refinedEventType},y),v.fromAction=e.type,v.fromActionPayload=e,v.escapeConnect=!0}var b=this._messageCenter;b.trigger(p.type,p),v&&b.trigger(v.type,v)}},uj=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();lj.call(this,n,e)}},dj=function(e){!e&&this.trigger(`updated`)},fj=function(e,t){e.on(`rendered`,function(n){t.trigger(`rendered`,n),e.animation.isFinished()&&!t[GA]&&!t._scheduler.unfinished&&!t._pendingActions.length?t.trigger(`finished`):e.refresh()})},pj=function(e,t){e.on(`mouseover`,function(e){var n=e.target,r=xk(n,sd);r&&(Ju(r,e,t._api),yj(t))}).on(`mouseout`,function(e){var n=e.target,r=xk(n,sd);r&&(Yu(r,e,t._api),yj(t))}).on(`click`,function(e){var n=e.target,r=xk(n,function(e){return Kl(e).dataIndex!=null},!0);if(r){var i=r.selected?`unselect`:`select`,a=Kl(r);t._api.dispatchAction({type:i,dataType:a.dataType,dataIndexInside:a.dataIndex,seriesIndex:a.seriesIndex,isFromClick:!0})}})};function t(e){e.clearColorPalette(),e.eachSeries(function(e){e.clearColorPalette()})}function n(e){var t=[],n=[],r=!1;if(e.eachComponent(function(e,i){var a=i.get(`zlevel`)||0,o=i.get(`z`)||0,s=i.getZLevelKey();r||=!!s,(e===`series`?n:t).push({zlevel:a,z:o,idx:i.componentIndex,type:e,key:s})}),r){var i=t.concat(n),a,o;nD(i,function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel}),z(i,function(t){var n=e.getComponent(t.type,t.idx),r=t.zlevel,i=t.key;a!=null&&(r=Math.max(a,r)),i?(r===a&&i!==o&&r++,o=i):o&&=(r===a&&r++,``),a=r,n.setZLevel(r)})}}mj=function(e,t,r,i,a){n(t),hj(e,t,r,i,a),z(e._chartsViews,function(e){e.__alive=!1}),gj(e,t,r,i,a),z(e._chartsViews,function(e){e.__alive||e.remove(t,r)})},hj=function(e,t,n,r,i,a){z(a||e._componentsViews,function(e){var i=e.__model;s(i,e),e.render(i,t,n,r),o(i,e),c(i,e)})},gj=function(e,t,n,r,l,u){var d=e._scheduler;l=R(l||{},{updatedSeries:t.getSeries()}),Sk.trigger(`series:beforeupdate`,t,n,l);var f=!1;t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var i=n.renderTask;d.updatePayload(i,r),s(t,n),u&&u.get(t.uid)&&i.dirty(),i.perform(d.getPerformArgs(i))&&(f=!0),n.group.silent=!!t.get(`silent`),a(t,n),Zu(t)}),d.unfinished=f||d.unfinished,Sk.trigger(`series:layoutlabels`,t,n,l),Sk.trigger(`series:transition`,t,n,l),t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];o(t,n),c(t,n)}),i(e,t),Sk.trigger(`series:afterupdate`,t,n,l)},yj=function(e){e[KA]=!0,e.getZr().wakeUp()},xj=function(e){e[WA]=(e[WA]+1)%1e6},bj=function(e){e[KA]&&(e.getZr().storage.traverse(function(e){Bf(e)||r(e)}),e[KA]=!1)};function r(e){for(var t=[],n=e.currentStates,r=0;r<n.length;r++){var i=n[r];i!==`emphasis`&&i!==`blur`&&i!==`select`&&t.push(i)}e.selected&&e.states.select&&t.push(`select`),e.hoverState===2&&e.states.emphasis?t.push(`emphasis`):e.hoverState===1&&e.states.blur&&t.push(`blur`),e.useStates(t)}function i(e,t){var n=e._zr;if(n.painter.type===`canvas`){var r=n.storage,i=0;r.traverse(function(e){e.isGroup||i++});var a=i>K(t.get(`hoverLayerThreshold`),UD.hoverLayerThreshold)&&!J.node&&!J.worker;(e._usingTHL||a)&&(t.eachSeries(function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered(function(e){var t=e.states.emphasis;t&&t.hoverLayer!==2&&(t.hoverLayer=+!!a)})}}),e._usingTHL=a)}}function a(e,t){var n=e.get(`blendMode`)||null;t.eachRendered(function(e){e.isGroup||(e.style.blend=n)})}function o(e,t){if(!e.preventAutoZ){var n=jp(e);t.eachRendered(function(e){return Np(e,n.z,n.zlevel),!0})}}function s(e,t){t.eachRendered(function(e){if(!Bf(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&=null,t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&=null}})}function c(e,t){var n=e.getModel(`stateAnimation`),i=e.isAnimationEnabled(),a=n.get(`duration`),o=a>0?{duration:a,delay:n.get(`delay`),easing:n.get(`easing`)}:null;t.eachRendered(function(e){if(e.states&&e.states.emphasis){if(Bf(e))return;if(e instanceof xs&&dd(e),e.__dirty){var t=e.prevStates;t&&e.useStates(t)}if(i){e.stateTransition=o;var n=e.getTextContent(),a=e.getTextGuideLine();n&&(n.stateTransition=o),a&&(a.stateTransition=o)}e.__dirty&&r(e)}})}_j=function(e){return new(function(t){I(n,t);function n(){return t!==null&&t.apply(this,arguments)||this}return n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(n!=null)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){Iu(t,n),yj(e)},n.prototype.leaveEmphasis=function(t,n){Lu(t,n),yj(e)},n.prototype.enterBlur=function(t){Ru(t),yj(e)},n.prototype.leaveBlur=function(t){zu(t),yj(e)},n.prototype.enterSelect=function(t){Bu(t),yj(e)},n.prototype.leaveSelect=function(t){Vu(t),yj(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n.prototype.getECUpdateCycleVersion=function(){return e[WA]},n.prototype.usingTHL=function(){return e._usingTHL},n}(ru))(e)},vj=function(e){function t(e,t){for(var n=0;n<e.length;n++){var r=e[n];r[JA]=t}}z(Ej,function(n,r){e._messageCenter.on(r,function(n){if(Pj[e.group]&&e[JA]!==YA){if(n&&n.escapeConnect)return;var r=e.makeActionFromEvent(n),i=[];z(Nj,function(t){t!==e&&t.group===e.group&&i.push(t)}),t(i,YA),z(i,function(e){e[JA]!==XA&&e.dispatchAction(r)}),t(i,ZA)}})})}}(),t}(Ra),Cj=Sj.prototype;Cj.on=QA(`on`),Cj.off=QA(`off`),Cj.one=function(e,t,n){var r=this;function i(){var n=[...arguments];t&&t.apply&&t.apply(this,n),r.off(e,i)}this.on.call(this,e,i,n)};var wj=[`click`,`dblclick`,`mouseover`,`mouseout`,`mousemove`,`mousedown`,`mouseup`,`globalout`,`contextmenu`],Tj={},Ej={},Dj={},Oj=[],kj=[],Aj=[],jj={},Mj={},Nj={},Pj={},Fj=new Date-0;new Date-0;var Ij=`_echarts_instance_`;function Lj(e,t,n){var r=!(n&&n.ssr);if(r){var i=Rj(e);if(i)return i}var a=new Sj(e,t,n);return a.id=`ec_`+Fj++,Nj[a.id]=a,r&&wl(e,Ij,a.id),vj(a),Sk.trigger(`afterinit`,a),a}function Rj(e){return Nj[Tl(e,Ij)]}function zj(e,t){jj[e]=t}function Bj(e){et(kj,e)<0&&kj.push(e)}function Vj(e,t){Xj(Oj,e,t,AA)}function Hj(e){Wj(`afterinit`,e)}function Uj(e){Wj(`afterupdate`,e)}function Wj(e,t){Sk.on(e,t)}function Gj(e,t,n){var r,i,a,o,s;U(t)&&(n=t,t=``),G(e)?(r=e.type,i=e.event,o=e.update,s=e.publishNonRefinedEvent,n||=e.action,a=e.refineEvent):(r=e,i=t);function c(e){return e.toLowerCase()}i=c(i||r);var l=a?c(r):i;Tj[r]||(xt(qA.test(r)&&qA.test(i)),a&&xt(i!==r),Tj[r]={actionType:r,refinedEventType:i,nonRefinedEventType:l,update:o,action:n,refineEvent:a},Dj[i]=1,a&&s&&(Dj[l]=1),Ej[l]=r)}function Kj(e,t){Yh.register(e,t)}function qj(e,t){Xj(Aj,e,t,MA,`layout`,!0)}function Jj(e,t){Xj(Aj,e,t,FA,`visual`,!0)}var Yj=[];function Xj(e,t,n,r,i,a){if((U(t)||G(t))&&(n=t,t=r),!(et(Yj,n)>=0)){Yj.push(n);var o=JO.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o)}}function Zj(e,t){Mj[e]=t}function Qj(e,t,n){var r=Tk(`registerMap`);r&&r(e,t,n)}var $j=Dv;Jj(PA,HO),Jj(LA,WO),Jj(LA,GO),Jj(PA,gk),Jj(LA,_k),Jj(VA,CA),Bj(MO),Vj(DA,NO),Zj(`default`,qO),Gj({type:du,event:du,update:du},Nt),Gj({type:fu,event:fu,update:fu},Nt),Gj({type:pu,event:gu,update:pu,action:Nt,refineEvent:eM,publishNonRefinedEvent:!0}),Gj({type:mu,event:gu,update:mu,action:Nt,refineEvent:eM,publishNonRefinedEvent:!0}),Gj({type:hu,event:gu,update:hu,action:Nt,refineEvent:eM,publishNonRefinedEvent:!0});function eM(e,t,n,r){return{eventContent:{selected:Qu(n),isFromClick:t.isFromClick||!1}}}zj(`default`,{}),zj(`dark`,fk);var tM=[],nM={registerPreprocessor:Bj,registerProcessor:Vj,registerPostInit:Hj,registerPostUpdate:Uj,registerUpdateLifecycle:Wj,registerAction:Gj,registerCoordinateSystem:Kj,registerLayout:qj,registerVisual:Jj,registerTransform:$j,registerLoading:Zj,registerMap:Qj,registerImpl:wk,PRIORITY:HA,ComponentModel:av,ComponentView:IO,SeriesModel:ly,ChartView:rb,registerComponentModel:function(e){av.registerClass(e)},registerComponentView:function(e){IO.registerClass(e)},registerSeriesModel:function(e){ly.registerClass(e)},registerChartView:function(e){rb.registerClass(e)},registerCustomSeries:function(e,t){Dk(e,t)},registerSubTypeDefaulter:function(e,t){av.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){FD(e,t)}};function rM(e){H(e)?z(e,function(e){rM(e)}):et(tM,e)>=0||(tM.push(e),U(e)&&(e={install:e}),e.install(nM))}var iM=function(e){I(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(e,t){return fg(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){return this.option.progressive??(this.option.large?5e3:this.get(`progressive`))},t.prototype.getProgressiveThreshold=function(){return this.option.progressiveThreshold??(this.option.large?1e4:this.get(`progressiveThreshold`))},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:``},t.type=`series.scatter`,t.dependencies=[`grid`,`polar`,`geo`,`singleAxis`,`calendar`,`matrix`],t.defaultOption={coordinateSystem:`cartesian2d`,z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:Z.color.primary}},universalTransition:{divideShape:`clone`}},t}(ly),aM=4,oM=function(){function e(){}return e}(),sM=function(e){I(t,e);function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new oM},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.beforeBrush=function(e){e&&!e.contentRetained&&this.reset()},t.prototype.buildPath=function(e,t){var n=t.points,r=t.size,i=this.symbolProxy,a=i.shape,o=e.getContext?e.getContext():e,s=o&&r[0]<aM,c=this.softClipShape,l;if(s)this._ctx=o;else{for(this._ctx=null,l=this._off;l<n.length;){var u=n[l++],d=n[l++];isNaN(u)||isNaN(d)||(!c||c.contain(u,d))&&(a.x=u-r[0]/2,a.y=d-r[1]/2,a.width=r[0],a.height=r[1],i.buildPath(e,a,!0))}this.incremental&&(this._off=l,this.notClear=!0)}},t.prototype.afterBrush=function(){var e=this.shape,t=e.points,n=e.size,r=this._ctx,i=this.softClipShape,a;if(r){for(a=this._off;a<t.length;){var o=t[a++],s=t[a++];isNaN(o)||isNaN(s)||(!i||i.contain(o,s))&&r.fillRect(o-n[0]/2,s-n[1]/2,n[0],n[1])}this.incremental&&(this._off=a,this.notClear=!0)}},t.prototype.findDataIndex=function(e,t){for(var n=this.shape,r=n.points,i=n.size,a=Math.max(i[0],4),o=Math.max(i[1],4),s=r.length/2-1;s>=0;s--){var c=s*2,l=r[c]-a/2,u=r[c+1]-o/2;if(e>=l&&t>=u&&e<=l+a&&t<=u+o)return s}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect();return e=n[0],t=n[1],r.contain(e,t)?(this.hoverDataIdx=this.findDataIndex(e,t))>=0:(this.hoverDataIdx=-1,!1)},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.points,r=t.size,i=r[0],a=r[1],o=1/0,s=1/0,c=-1/0,l=-1/0,u=0;u<n.length;){var d=n[u++],f=n[u++];o=Math.min(d,o),c=Math.max(d,c),s=Math.min(f,s),l=Math.max(f,l)}e=this._rect=new X(o-i/2,s-a/2,c-o+i,l-s+a)}return e},t}(xs),cM=function(){function e(){this.group=new Pd}return e.prototype.updateData=function(e,t){this._clear(),this._data=e;var n=this._create();n.setShape({points:e.getLayout(`points`)}),this._setCommon(n,e,t)},e.prototype.updateLayout=function(e){var t=this._data;if(t){var n=t.getLayout(`points`);this.group.eachChild(function(e){if(e.startIndex!=null){var t=(e.endIndex-e.startIndex)*2,r=e.startIndex*4*2;n=new Float32Array(n.buffer,r,t)}e.setShape(`points`,n),e.reset(),e.stopAnimation()})}},e.prototype.incrementalPrepareUpdate=function(e){this._clear()},e.prototype.incrementalUpdate=function(e,t,n,r){var i=this._newAdded[0],a=t.getLayout(`points`),o=i&&i.shape.points;if(o&&o.length<2e4){var s=o.length,c=new Float32Array(s+a.length);c.set(o),c.set(a,s),i.endIndex=e.end,i.setShape({points:c})}else{this._newAdded=[];var l=this._create();l.startIndex=e.start,l.endIndex=e.end,l.incremental=n,l.setShape({points:a}),this._setCommon(l,t,r)}},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new sM({cursor:`default`});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},e.prototype._setCommon=function(e,t,n){var r=t.hostModel;n||={};var i=t.getVisual(`symbolSize`);e.setShape(`size`,i instanceof Array?i:[i,i]),e.softClipShape=n.clipShape||null,e.symbolProxy=wy(t.getVisual(`symbol`),0,0,0,0),e.setColor=e.symbolProxy.setColor;var a=e.shape.size[0]<aM;e.useStyle(r.getModel(`itemStyle`).getItemStyle(a?[`color`,`shadowBlur`,`shadowColor`]:[`color`]));var o=t.getVisual(`style`),s=o&&o.fill;s&&e.setColor(s);var c=Kl(e);c.seriesIndex=r.seriesIndex,e.on(`mousemove`,function(t){c.dataIndex=null;var n=e.hoverDataIdx;n>=0&&(c.dataIndex=n+(e.startIndex||0))})},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),lM=function(e){I(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=e.getData();this._updateSymbolDraw(r,e).updateData(r,uM(e)),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var r=e.getData();this._updateSymbolDraw(r,e).incrementalPrepareUpdate(r),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._symbolDraw.incrementalUpdate(e,t.getData(),Hl(t),uM(t)),this._finished=e.end===t.getData().count()},t.prototype.updateTransform=function(e,t,n){var r=e.getData();if(this.group.dirty(),this._finished){var i=Yx(``).reset(e,t,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout(uM(e))}else return{update:!0}},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._updateSymbolDraw=function(e,t){var n=this._symbolDraw,r=t.pipelineContext.large;return(!n||r!==this._isLargeDraw)&&(n&&n.remove(),n=this._symbolDraw=r?new cM:new Iy,this._isLargeDraw=r,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type=`scatter`,t}(rb);function uM(e){return{clipShape:fb(e)}}var dM=function(){function e(){}return e.prototype.needIncludeZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}(),fM=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents(`grid`,xl).models[0]},t.type=`cartesian2dAxis`,t}(av);nt(fM,dM);var pM={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:Z.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:Z.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:Z.color.axisSplitLine,width:1,type:`solid`}},splitArea:{show:!1,areaStyle:{color:[Z.color.backgroundTint,Z.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:Z.color.neutral00,borderColor:Z.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:`auto`}},mM=Ze({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:`auto`,show:`auto`},axisLabel:{interval:`auto`}},pM),hM=Ze({boundaryGap:[0,0],axisLine:{show:`auto`},axisTick:{show:`auto`},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:Z.color.axisMinorSplitLine,width:1}}},pM),gM={category:mM,value:hM,time:Ze({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:`bold`}}},splitLine:{show:!1}},hM),log:$e({logBase:10},hM)};function _M(e,t,n,r){z(fx,function(i,a){var o=Ze(Ze({},gM[a],!0),r,!0),s=function(e){I(n,e);function n(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t+`Axis.`+a,n}return n.prototype.mergeDefaultAndTheme=function(e,t){var n=ev(this),r=n?nv(e):{};Ze(e,t.getTheme().get(a+`Axis`)),Ze(e,this.getDefaultOption()),e.type=vM(e),n&&tv(e,r,n)},n.prototype.optionUpdated=function(){this.option.type===`category`&&(this.__ordinalMeta=_b.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if(t.type===`category`)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.prototype.updateAxisBreaks=function(e){var t=yC();return t?t.updateModelAxisBreak(this,e):{breaks:[]}},n.type=t+`Axis.`+a,n.defaultOption=o,n}(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+`Axis`,vM)}function vM(e){return e.type||(e.data?`category`:`value`)}var yM=function(){function e(e){this.type=`cartesian`,this._dimList=[],this._axes={},this.name=e||``}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return B(this._dimList,function(e){return this._axes[e]},this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),at(this.getAxes(),function(t){return t.scale.type===e})},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}(),bM=[`x`,`y`];function xM(e){return(e.type===`interval`||e.type===`time`)&&!Xg(e)}var SM=function(e){I(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=Nw,t.dimensions=bM,t}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis(`x`).scale,t=this.getAxis(`y`).scale;if(xM(e)&&xM(t)){var n=wb(e,null),r=wb(t,null),i=this.dataToPoint([n[0],r[0]]),a=this.dataToPoint([n[1],r[1]]),o=n[1]-n[0],s=r[1]-r[0];if(o&&s){var c=(a[0]-i[0])/o,l=(a[1]-i[1])/s,u=i[0]-n[0]*c,d=i[1]-r[0]*l,f=this._transform=[c,0,0,l,u,d];this._invTransform=gn([],f)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale(`ordinal`)[0]||this.getAxesByScale(`time`)[0]||this.getAxis(`x`)},t.prototype.containPoint=function(e){var t=this.getAxis(`x`),n=this.getAxis(`y`);return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis(`x`).containData(e[0])&&this.getAxis(`y`).containData(e[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),r=this.dataToPoint(t),i=this.getArea(),a=new X(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(a)},t.prototype.dataToPoint=function(e,t,n){n||=[];var r=e[0],i=e[1];if(this._transform&&r!=null&&isFinite(r)&&i!=null&&isFinite(i))return jn(n,e,this._transform);var a=this.getAxis(`x`),o=this.getAxis(`y`);return n[0]=a.toGlobalCoord(a.dataToCoord(r,t)),n[1]=o.toGlobalCoord(o.dataToCoord(i,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis(`x`).scale,r=this.getAxis(`y`).scale,i=n.getExtent(),a=r.getExtent(),o=n.parse(e[0]),s=r.parse(e[1]);return t||=[],t[0]=Math.min(Math.max(Math.min(i[0],i[1]),o),Math.max(i[0],i[1])),t[1]=Math.min(Math.max(Math.min(a[0],a[1]),s),Math.max(a[0],a[1])),t},t.prototype.pointToData=function(e,t,n){if(n||=[],this._invTransform)return jn(n,e,this._invTransform);var r=this.getAxis(`x`),i=this.getAxis(`y`);return n[0]=r.coordToData(r.toLocalCoord(e[0]),t),n[1]=i.coordToData(i.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim===`x`?`y`:`x`)},t.prototype.getArea=function(e){e||=0;var t=this.getAxis(`x`).getGlobalExtent(),n=this.getAxis(`y`).getGlobalExtent(),r=Math.min(t[0],t[1])-e,i=Math.min(n[0],n[1])-e;return new X(r,i,Math.max(t[0],t[1])-r+e,Math.max(n[0],n[1])-i+e)},t}(yM);function CM(e,t){var n=e.scale,r=e.model,i=bw(n,r,r.ecModel,e,null),a=Nb(n),o=Nb(t)?t.intervalStub:t,s=a?n.intervalStub:n,c=n.base,l=o.getTicks(),u=o.getTicks({expandToNicedExtent:!0}),d=l.length-1,f,p,m;if(d===1)f=p=0,m=1;else if(d===2){var h=ac(l[0].value-l[1].value),g=ac(l[1].value-l[2].value);f=p=0,h===g?m=2:(m=1,h<g?f=h/g:p=g/h)}else{var _=o.getConfig().interval;f=(1-(l[0].value-u[0].value)/_)%1,p=(1-(u[d].value-l[d].value)/_)%1,m=d-+!!f-!!p}var v=i.zoomFixMM,y=v[0]||v[1],b=[i.fixMM[0]||y,i.fixMM[1]||y],x=n.getExtent(),S=s.getExtent(),C=zb(S,b),w,T,E,D,O,k;function A(e){for(var t=50,n=0;n<t&&!e();n++)E=a?E*ic(c,2):Fb(E),D=Ib(E)}function j(){w=yc(k-E*f,D)}function M(){T=yc(O+E*p,D)}function ee(){k=f?yc(w+E*f,D):w}function N(){O=p?yc(T-E*p,D):T}if(b[0]&&b[1]){w=C[0],T=C[1],E=(T-w)/(m+f+p);var P=e.getExtent(),te=ac(P[1]-P[0]);D=Cc([T,w],te,.5/m),ee(),N(),Bc(D)&&(E=yc(E,D))}else{var ne=C[1]-C[0];E=a?ic(jc(ne),1):Nc(ne/m,2),D=Ib(E),b[0]?(w=C[0],A(function(){if(ee(),O=yc(k+E*m,D),M(),T>=C[1])return!0})):b[1]?(T=C[1],A(function(){if(N(),k=yc(O-E*m,D),j(),w<=C[0])return!0})):A(function(){k=yc(cc(C[0]/E)*E,D),O=yc(sc(C[1]/E)*E,D);var e=oc((O-k)/E);if(e<=m){var t=m-e,n=void 0,r=i.incl0||a;if(r&&C[0]===0)n=[0,t];else if(r&&C[1]===0)n=[t,0];else{var o=sc(t/2);n=t%2==0?[o,o]:w+T<C[0]+C[1]?[o,o+1]:[o+1,o]}if(k=yc(k-E*n[0],D),O=yc(O+E*n[1],D),j(),M(),w<=C[0]&&T>=C[1])return!0}})}kx(n,b,S,[w,T],x,{interval:E,intervalCount:m,intervalPrecision:D,niceExtent:[k,O]})}function wM(e,t){var n=Nb(e),r=n?e.intervalStub:e,i=t.fixMinMax||[],a=n?e.getExtent():null,o=r.getExtent(),s=zb(o,i,t.rawExtentResult);r.setExtent(s[0],s[1]),s=r.getExtent();var c=n?EM(r,t):TM(r,t),l=c.intervalPrecision,u=c.interval,d=t.userInterval;d!=null&&(c.interval=d,c.intervalPrecision=Ib(d)),i[0]||(s[0]=yc(sc(s[0]/u)*u,l)),i[1]||(s[1]=yc(cc(s[1]/u)*u,l)),d!=null&&(c.niceExtent=s.slice()),kx(e,i,o,s,a,c)}function TM(e,t){var n=Vb(t.splitNumber,5),r=Eb(e),i=t.minInterval,a=t.maxInterval,o=Nc(r/n,!0);i!=null&&o<i&&(o=i),a!=null&&o>a&&(o=a);var s=Ib(o),c=e.getExtent(),l=[yc(cc(c[0]/o)*o,s),yc(sc(c[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:l}}function EM(e,t){var n=Vb(t.splitNumber,10),r=e.getExtent(),i=Eb(e),a=ic(jc(i),1);n/i*a<=.5&&(a*=10);var o=Ib(a),s=[yc(cc(r[0]/a)*a,o),yc(sc(r[1]/a)*a,o)];return{intervalPrecision:o,interval:a,niceExtent:s}}function DM(e){var t=e.scale,n=e.model,r=n.axis,i=n.ecModel;OM(t,n,r,i,null)}function OM(e,t,n,r,i){var a=bw(e,t,r,n,i),o=jb(e)||Mb(e);kM(e,{splitNumber:t.get(`splitNumber`),fixMinMax:a.fixMM,userInterval:t.get(`interval`),minInterval:o?t.get(`minInterval`):null,maxInterval:o?t.get(`maxInterval`):null,rawExtentResult:a}),n&&r&&Sw(n,e,a,r)}function kM(e,t){AM[e.type](e,t)}var AM={interval:wM,log:wM,time:ix,ordinal:Nt},jM=[[3,1],[0,2]],MM=function(){function e(e,t,n){this.type=`grid`,this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=bM,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;z(this._axesList,function(e){mw(e,1);var t=e.scale;Pb(t)&&t.setSortInfo(e.model.get(`categorySortInfo`))});function r(e){for(var t=st(e),n=[],r=t.length-1;r>=0;r--){var i=e[+t[r]];i.__alignTo?n.push(i):DM(i)}z(n,function(e){LM(e,e.__alignTo)?DM(e):CM(e,e.__alignTo.scale)})}r(n.x),r(n.y);var i={};z(n.x,function(e){PM(n,`y`,e,i)}),z(n.y,function(e){PM(n,`x`,e,i)}),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=Q_(e,t),i=this._rect=X_(e.getBoxLayoutParams(),r.refContainer),a=this._axesMap,o=this._coordsList,s=e.get(`containLabel`);if(zM(a,i),!n){var c=UM(i,o,a,s,t),l=void 0;if(s)VM?(VM(this._axesList,i),zM(a,i)):l=HM(i.clone(),`axisLabel`,null,i,a,c,r);else{var u=GM(e,i,r),d=u.outerBoundsRect,f=u.parsedOuterBoundsContain,p=u.outerBoundsClamp;d&&(l=HM(d,f,p,i,a,c,r))}WM(i,a,nS.determine,null,l,r),z(this._coordsList,function(e){e.calcAffineTransform()})}},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(n!=null)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var n=`x`+e+`y`+t;return this._coordsMap[n]}G(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var r=0,i=this._coordsList;r<i.length;r++)if(i[r].getAxis(`x`).index===e||i[r].getAxis(`y`).index===t)return i[r]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.dataToPoint(n):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.pointToData(n):r.axis?r.axis.coordToData(r.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(e){var t=e.seriesModel,n=e.xAxisModel||t&&t.getReferringComponents(`xAxis`,xl).models[0],r=e.yAxisModel||t&&t.getReferringComponents(`yAxis`,xl).models[0],i=e.gridModel,a=this._coordsList,o,s;return t?(o=t.coordinateSystem,et(a,o)<0&&(o=null)):n&&r?o=this.getCartesian(n.componentIndex,r.componentIndex):n?s=this.getAxis(`x`,n.componentIndex):r?s=this.getAxis(`y`,r.componentIndex):i&&i.coordinateSystem===this&&(o=this._coordsList[0]),{cartesian:o,axis:s}},e.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},e.prototype._initCartesian=function(e,t,n){var r=this,i=this,a={left:!1,right:!1,top:!1,bottom:!1},o={x:{},y:{}},s={x:0,y:0};if(t.eachComponent(`xAxis`,c(`x`),this),t.eachComponent(`yAxis`,c(`y`),this),!s.x||!s.y){this._axesMap={},this._axesList=[];return}this._axesMap=o,z(o.x,function(t,n){z(o.y,function(i,a){var o=`x`+n+`y`+a,s=new SM(o);s.master=r,s.model=e,r._coordsMap[o]=s,r._coordsList.push(s),s.addAxis(t),s.addAxis(i)})}),IM(o.x),IM(o.y);function c(t){return function(n,r){if(NM(n,e)){var c=n.get(`position`);t===`x`?c!==`top`&&c!==`bottom`&&(c=a.bottom?`top`:`bottom`):c!==`left`&&c!==`right`&&(c=a.left?`right`:`left`),a[c]=!0;var l=mx(n),u=new tC(t,hx(n,l,!0),[0,0],l,c);u.onBand=jx(u.scale,n),u.inverse=n.get(`inverse`),n.axis=u,u.model=n,u.grid=i,u.index=r,i._axesList.push(u),o[t][r]=u,s[t]++}}}},e.prototype.getTooltipAxes=function(e){var t=[],n=[];return z(this.getCartesians(),function(r){var i=e!=null&&e!==`auto`?r.getAxis(e):r.getBaseAxis(),a=r.getOtherAxis(i);et(t,i)<0&&t.push(i),et(n,a)<0&&n.push(a)}),{baseAxes:t,otherAxes:n}},e.create=function(t,n){var r=[];return t.eachComponent(`grid`,function(i,a){var o=new e(i,t,n);o.name=`grid_`+a,o.resize(i,n,!0),i.coordinateSystem=o,r.push(o),z(o._axesList,function(t){pw(t,e.dimIdxMap)})}),t.eachSeries(function(e){var t,n;tg({targetModel:e,coordSysType:Nw,coordSysProvider:r});function r(){var r=nw(e),i=r.xAxisModel,a=r.yAxisModel;return t=i.axis,n=a.axis,i.getCoordSysModel().coordinateSystem.getCartesian(i.componentIndex,a.componentIndex)}t&&n&&(US(t,e,Nw),US(n,e,Nw))},this),r},e.dimensions=bM,e.dimIdxMap=Eh(bM),e}();function NM(e,t){return e.getCoordSysModel()===t}function PM(e,t,n,r){n.getAxesOnZeroOf=function(){return a?[a]:[]};var i=e[t],a,o=n.model,s=o.get([`axisLine`,`onZero`]),c=o.get([`axisLine`,`onZeroAxisIndex`]);if(!s)return;if(c!=null)FM(s,i[c])&&(a=i[c]);else for(var l in i)if(Mt(i,l)&&FM(s,i[l])&&!r[u(i[l])]){a=i[l];break}a&&(r[u(a)]=!0);function u(e){return e.dim+`_`+e.index}}function FM(e,t){if(!t)return!1;var n=t.scale,r=gx(n,0,!1),i=t&&t.type!==`category`&&t.type!==`time`&&r!==3;return i&&e===`auto`&&vx(t)&&(i=!1),i}function IM(e){for(var t=st(e),n,r=[],i=t.length-1;i>=0;i--){var a=e[+t[i]];Ab(a.scale)&&Dx(a.model,a.type,!0)==null&&(a.model.get(`alignTicks`)&&a.model.get(`interval`)==null?r.push(a):n=a)}n||=r.pop(),n&&z(r,function(e){e.__alignTo=n})}function LM(e,t){return Xg(e.scale)||Xg(t.scale)||t.scale.getTicks().length<2}function RM(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord=e.dim===`x`?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord=e.dim===`x`?function(e){return e-t}:function(e){return r-e+t}}function zM(e,t){z(e.x,function(e){return BM(e,t.x,t.width)}),z(e.y,function(e){return BM(e,t.y,t.height)})}function BM(e,t,n){var r=[0,n],i=+!!e.inverse;e.setExtent(r[i],r[1-i]),RM(e,t)}var VM;function HM(e,t,n,r,i,a,o){WM(r,i,nS.estimate,t,!1,o);var s=[0,0,0,0];l(0),l(1),u(r,0,NaN),u(r,1,NaN);var c=ot(s,function(e){return e>0})==null;return xp(r,s,!0,!0,n),zM(i,r),c;function l(e){z(i[qf[e]],function(t){if(Ex(t.model)){var n=a.ensureRecord(t.model),r=n.labelInfoList;if(r)for(var i=0;i<r.length;i++){var o=r[i],s=t.scale.normalize(Ax(t.scale,wC(o.label).labelInfo.tick));s=e===1?1-s:s,u(o.rect,e,s),u(o.rect,1-e,NaN)}var c=n.nameLayout;if(c){var s=Tx(n.nameLocation)?.5:NaN;u(c.rect,e,s),u(c.rect,1-e,NaN)}}})}function u(t,n,r){var i=e[qf[n]]-t[qf[n]],a=t[Jf[n]]+t[qf[n]]-(e[Jf[n]]+e[qf[n]]);i=d(i,1-r),a=d(a,r);var o=jM[n][0],c=jM[n][1];s[o]=ic(s[o],i),s[c]=ic(s[c],a)}function d(e,t){return e>0&&!gt(t)&&t>1e-4&&(e/=t),e}}function UM(e,t,n,r,i){var a=new EC(KM);return z(n,function(n){return z(n,function(n){if(Ex(n.model)){var o=!r;n.axisBuilder=rw(e,t,n.model,i,a,o)}})}),a}function WM(e,t,n,r,i,a){var o=n===nS.determine;z(t,function(t){return z(t,function(t){Ex(t.model)&&(iw(t.axisBuilder,e,t.model),t.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};c(0),c(1);function c(t){s[qf[1-t]]=e[Jf[t]]<=a.refContainer[Jf[t]]*.5?0:1-t==1?2:1}z(t,function(e,t){return z(e,function(e){Ex(e.model)&&((r===`all`||o)&&e.axisBuilder.build({axisName:!0},{nameMarginLevel:s[t]}),o&&e.axisBuilder.build({axisLine:!0}))})})}function GM(e,t,n){var r,i=e.get(`outerBoundsMode`,!0);i===`same`?r=t.clone():(i==null||i===`auto`)&&(r=X_(e.get(`outerBounds`,!0)||jw,n.refContainer));var a=e.get(`outerBoundsContain`,!0),o=a==null||a===`auto`||et([`all`,`axisLabel`],a)<0?`all`:a,s=[_c(K(e.get(`outerBoundsClampWidth`,!0),Mw[0]),t.width),_c(K(e.get(`outerBoundsClampHeight`,!0),Mw[1]),t.height)];return{outerBoundsRect:r,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var KM=function(e,t,n,r,i,a){var o=n.axis.dim===`x`?`y`:`x`;AC(e,t,n,r,i,a),Tx(e.nameLocation)||z(t.recordMap[o],function(e){e&&e.labelInfoList&&e.dirVec&&MC(e.labelInfoList,e.dirVec,r,i)})};function qM(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return JM(n,e,t),n.seriesInvolved&&XM(n,e),n}function JM(e,t,n){var r=t.getComponent(`tooltip`),i=t.getComponent(`axisPointer`),a=i.get(`link`,!0)||[],o=[];z(n.getCoordinateSystems(),function(n){if(!n.axisPointerEnabled)return;var s=rN(n.model),c=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var l=n.model.getModel(`tooltip`,r);if(z(n.getAxes(),lt(p,!1,null)),n.getTooltipAxes&&r&&l.get(`show`)){var u=l.get(`trigger`)===`axis`,d=l.get([`axisPointer`,`type`])===`cross`,f=n.getTooltipAxes(l.get([`axisPointer`,`axis`]));(u||d)&&z(f.baseAxes,lt(p,!d||`cross`,u)),d&&z(f.otherAxes,lt(p,`cross`,!1))}function p(r,s,u){var d=u.model.getModel(`axisPointer`,i),f=d.get(`show`);if(f&&(f!==`auto`||r||nN(d))){s??=d.get(`triggerTooltip`),d=r?YM(u,l,i,t,r,s):d;var p=d.get(`snap`),m=d.get(`triggerEmphasis`),h=rN(u.model),g=s||p||u.type===`category`,_=e.axesInfo[h]={key:h,axis:u,coordSys:n,axisPointerModel:d,triggerTooltip:s,triggerEmphasis:m,involveSeries:g,snap:p,useHandle:nN(d),seriesModels:[],linkGroup:null};c[h]=_,e.seriesInvolved=e.seriesInvolved||g;var v=ZM(a,u);if(v!=null){var y=o[v]||(o[v]={axesInfo:{}});y.axesInfo[h]=_,y.mapper=a[v].mapper,_.linkGroup=y}}}})}function YM(e,t,n,r,i,a){var o=t.getModel(`axisPointer`),s=[`type`,`snap`,`lineStyle`,`shadowStyle`,`label`,`animation`,`animationDurationUpdate`,`animationEasingUpdate`,`z`],c={};z(s,function(e){c[e]=L(o.get(e))}),c.snap=e.type!==`category`&&!!a,o.get(`type`)===`cross`&&(c.type=`line`);var l=c.label||={};if(l.show??=!1,i===`cross`&&(l.show=o.get([`label`,`show`])??!0,!a)){var u=c.lineStyle=o.get(`crossStyle`);u&&$e(l,u.textStyle)}return e.model.getModel(`axisPointer`,new fm(c,n,r))}function XM(e,t){t.eachSeries(function(t){var n=t.coordinateSystem,r=t.get([`tooltip`,`trigger`],!0),i=t.get([`tooltip`,`show`],!0);n&&n.model&&r!==`none`&&r!==!1&&r!==`item`&&i!==!1&&t.get([`axisPointer`,`show`],!0)!==!1&&z(e.coordSysAxesInfo[rN(n.model)],function(e){var r=e.axis;n.getAxis(r.dim)===r&&(e.seriesModels.push(t),e.seriesDataCount??=0,e.seriesDataCount+=t.getData().count())})})}function ZM(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(QM(a[r+`AxisId`],n.id)||QM(a[r+`AxisIndex`],n.componentIndex)||QM(a[r+`AxisName`],n.name))return i}}function QM(e,t){return e===`all`||H(e)&&et(e,t)>=0||e===t}function $M(e){var t=eN(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,a=n.get(`status`),o=n.get(`value`);o!=null&&(o=r.parse(o));var s=nN(n);a??(i.status=s?`show`:`hide`);var c=r.getExtent();(o==null||o>c[1])&&(o=c[1]),o<c[0]&&(o=c[0]),i.value=o,s&&(i.status=t.axis.scale.isBlank()?`hide`:`show`)}}function eN(e){var t=(e.ecModel.getComponent(`axisPointer`)||{}).coordSysAxesInfo;return t&&t.axesInfo[rN(e)]}function tN(e){var t=eN(e);return t&&t.axisPointerModel}function nN(e){return!!e.get([`handle`,`show`])}function rN(e){return e.type+`||`+e.id}var iN={},aN=function(e){I(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(t,n,r,i){this.axisPointerClass&&$M(t),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,r,!0)},t.prototype.updateAxisPointer=function(e,t,n,r){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,t){var n=this._axisPointer;n&&n.remove(t)},t.prototype.dispose=function(t,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,r){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var a=tN(e);a?(this._axisPointer||=new i).render(e,a,n,r):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,t){iN[e]=t},t.getAxisPointerClass=function(e){return e&&iN[e]},t.type=`axis`,t}(IO),oN=_l();function sN(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var a=n.getModel(`splitArea`),o=a.getModel(`areaStyle`),s=o.get(`color`),c=r.coordinateSystem.getRect(),l=i.getTicksCoords({tickModel:a,breakTicks:`none`,pruneByBreak:`preserve_extent_bound`});if(l.length){var u=s.length,d=oN(e).splitAreaColors,f=q(),p=0;if(d)for(var m=0;m<l.length;m++){var h=d.get(l[m].tickValue);if(h!=null){p=(h+(u-1)*m)%u;break}}var g=i.toGlobalCoord(l[0].coord),_=o.getAreaStyle();s=H(s)?s:[s];for(var m=1;m<l.length;m++){var v=i.toGlobalCoord(l[m].coord),y=void 0,b=void 0,x=void 0,S=void 0;i.isHorizontal()?(y=g,b=c.y,x=v-y,S=c.height,g=y+x):(y=c.x,b=g,x=c.width,S=v-b,g=b+S);var C=l[m-1].tickValue;C!=null&&f.set(C,p),t.add(new Fs({anid:C==null?null:`area_`+C,shape:{x:y,y:b,width:x,height:S},style:$e({fill:s[p]},_),autoBatch:!0,silent:!0})),p=(p+1)%u}oN(e).splitAreaColors=f}}}function cN(e){oN(e).splitAreaColors=null}var lN=[`splitArea`,`splitLine`,`minorSplitLine`,`breakArea`],uN=function(e){I(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(t,n,r,i){this.group.removeAll();var a=this._axisGroup;this._axisGroup=new Pd,this.group.add(this._axisGroup),Ex(t)&&(this._axisGroup.add(t.axis.axisBuilder.group),z(lN,function(e){t.get([e,`show`])&&dN[e](this,this._axisGroup,t,t.getCoordSysModel(),r)},this),i&&i.type===`changeAxisOrder`&&i.isInitSort||pp(a,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i))},t.prototype.remove=function(){cN(this)},t.type=`cartesianAxis`,t}(aN),dN={splitLine:function(e,t,n,r,i){var a=n.axis;if(!a.scale.isBlank()){var o=n.getModel(`splitLine`),s=o.getModel(`lineStyle`),c=s.get(`color`),l=o.get(`showMinLine`)!==!1,u=o.get(`showMaxLine`)!==!1;c=H(c)?c:[c];for(var d=r.coordinateSystem.getRect(),f=a.isHorizontal(),p=0,m=a.getTicksCoords({tickModel:o,breakTicks:`none`,pruneByBreak:`preserve_extent_bound`}),h=[],g=[],_=s.getLineStyle(),v=0;v<m.length;v++){var y=a.toGlobalCoord(m[v].coord);if(!(v===0&&!l||v===m.length-1&&!u)){var b=m[v].tickValue;f?(h[0]=y,h[1]=d.y,g[0]=y,g[1]=d.y+d.height):(h[0]=d.x,h[1]=y,g[0]=d.x+d.width,g[1]=y);var x=p++%c.length,S=new pf({anid:b==null?null:`line_`+b,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:g[0],y2:g[1]},style:$e({stroke:c[x]},_),silent:!0});ap(S.shape,_.lineWidth),t.add(S)}}}},minorSplitLine:function(e,t,n,r,i){var a=n.axis,o=n.getModel(`minorSplitLine`).getModel(`lineStyle`),s=r.coordinateSystem.getRect(),c=a.isHorizontal(),l=a.getMinorTicksCoords();if(l.length)for(var u=[],d=[],f=o.getLineStyle(),p=0;p<l.length;p++)for(var m=0;m<l[p].length;m++){var h=a.toGlobalCoord(l[p][m].coord);c?(u[0]=h,u[1]=s.y,d[0]=h,d[1]=s.y+s.height):(u[0]=s.x,u[1]=h,d[0]=s.x+s.width,d[1]=h);var g=new pf({anid:`minor_line_`+l[p][m].tickValue,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]},style:f,silent:!0});ap(g.shape,f.lineWidth),t.add(g)}},splitArea:function(e,t,n,r,i){sN(e,t,n,r)},breakArea:function(e,t,n,r,i){var a=yC(),o=n.axis.scale;a&&o.type!==`ordinal`&&a.rectCoordBuildBreakAxis(t,e,n,r.coordinateSystem.getRect(),i)}},fN=function(e){I(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`xAxis`,t}(uN),pN=function(e){I(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=fN.type,t}return t.type=`yAxis`,t}(uN),mN=function(e){I(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`grid`,t}return t.prototype.render=function(e,t){this.group.removeAll(),e.get(`show`)&&this.group.add(new Fs({shape:e.coordinateSystem.getRect(),style:$e({fill:e.get(`backgroundColor`)},e.getItemStyle()),silent:!0,z2:-1}))},t.type=`grid`,t}(IO),hN={offset:0};function gN(e){e.registerComponentView(mN),e.registerComponentModel(Pw),e.registerCoordinateSystem(`cartesian2d`,MM),_M(e,`x`,fM,hN),_M(e,`y`,fM,hN),e.registerComponentView(fN),e.registerComponentView(pN),e.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function _N(e){rM(gN),e.registerSeriesModel(iM),e.registerChartView(lM),e.registerLayout(Yx(`scatter`))}var vN=z,yN=G,bN=-1,xN=function(){function e(t){var n=t.mappingMethod,r=t.type,i=this.option=L(t);this.type=r,this.mappingMethod=n,this._normalizeData=NN[n];var a=e.visualHandlers[r];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[n],n===`piecewise`?(wN(i),SN(i)):n===`category`?i.categories?CN(i):wN(i,!0):(xt(n!==`linear`||i.dataExtent),wN(i))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return V(this._normalizeData,this)},e.listVisualTypes=function(){return st(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){G(e)?z(e,t,n):t.call(n,e)},e.mapVisual=function(t,n,r){var i,a=H(t)?[]:G(t)?{}:(i=!0,null);return e.eachVisual(t,function(e,t){var o=n.call(r,e,t);i?a=o:a[t]=o}),a},e.retrieveVisuals=function(t){var n={},r;return t&&vN(e.visualHandlers,function(e,i){t.hasOwnProperty(i)&&(n[i]=t[i],r=!0)}),r?n:null},e.prepareVisualTypes=function(e){if(H(e))e=e.slice();else if(yN(e)){var t=[];vN(e,function(e,n){t.push(n)}),e=t}else return[];return e.sort(function(e,t){return t===`color`&&e!==`color`&&e.indexOf(`color`)===0?1:-1}),e},e.dependsOn=function(e,t){return t===`color`?!!(e&&e.indexOf(t)===0):e===t},e.findPieceIndex=function(e,t,n){for(var r,i=1/0,a=0,o=t.length;a<o;a++){var s=t[a].value;if(s!=null){if(s===e||W(s)&&s===e+``)return a;n&&d(s,a)}}for(var a=0,o=t.length;a<o;a++){var c=t[a],l=c.interval,u=c.close;if(l){if(l[0]===-1/0){if(PN(u[1],e,l[1]))return a}else if(l[1]===1/0){if(PN(u[0],l[0],e))return a}else if(PN(u[0],l[0],e)&&PN(u[1],e,l[1]))return a;n&&d(l[0],a),n&&d(l[1],a)}}if(n)return e===1/0?t.length-1:e===-1/0?0:r;function d(t,n){var a=Math.abs(t-e);a<i&&(i=a,r=n)}},e.visualHandlers={color:{applyVisual:DN(`color`),getColorMapper:function(){var e=this.option;return V(e.mappingMethod===`category`?function(e,t){return!t&&(e=this._normalizeData(e)),ON.call(this,e)}:function(t,n,r){var i=!!r;return!n&&(t=this._normalizeData(t)),r=Bi(t,e.parsedVisual,r),i?r:Wi(r,`rgba`)},this)},_normalizedToVisual:{linear:function(e){return Wi(Bi(e,this.option.parsedVisual),`rgba`)},category:ON,piecewise:function(e,t){var n=jN.call(this,t);return n??=Wi(Bi(e,this.option.parsedVisual),`rgba`),n},fixed:kN}},colorHue:TN(function(e,t){return Hi(e,t)}),colorSaturation:TN(function(e,t){return Hi(e,null,t)}),colorLightness:TN(function(e,t){return Hi(e,null,null,t)}),colorAlpha:TN(function(e,t){return Ui(e,t)}),decal:{applyVisual:DN(`decal`),_normalizedToVisual:{linear:null,category:ON,piecewise:null,fixed:null}},opacity:{applyVisual:DN(`opacity`),_normalizedToVisual:AN([0,1])},liftZ:{applyVisual:DN(`liftZ`),_normalizedToVisual:{linear:kN,category:kN,piecewise:kN,fixed:kN}},symbol:{applyVisual:function(e,t,n){n(`symbol`,this.mapValueToVisual(e))},_normalizedToVisual:{linear:EN,category:ON,piecewise:function(e,t){var n=jN.call(this,t);return n??=EN.call(this,e),n},fixed:kN}},symbolSize:{applyVisual:DN(`symbolSize`),_normalizedToVisual:AN([0,1])}},e}();function SN(e){var t=e.pieceList;e.hasSpecialVisual=!1,z(t,function(t,n){t.originIndex=n,t.visual!=null&&(e.hasSpecialVisual=!0)})}function CN(e){var t=e.categories,n=e.categoryMap={},r=e.visual;if(vN(t,function(e,t){n[e]=t}),!H(r)){var i=[];G(r)?vN(r,function(e,t){var r=n[t];i[r??bN]=e}):i[bN]=r,r=MN(e,i)}for(var a=t.length-1;a>=0;a--)r[a]??(delete n[t[a]],t.pop())}function wN(e,t){var n=e.visual,r=[];G(n)?vN(n,function(e){r.push(e)}):n!=null&&r.push(n),!t&&r.length===1&&!{color:1,symbol:1}.hasOwnProperty(e.type)&&(r[1]=r[0]),MN(e,r)}function TN(e){return{applyVisual:function(t,n,r){var i=this.mapValueToVisual(t);r(`color`,e(n(`color`),i))},_normalizedToVisual:AN([0,1])}}function EN(e){var t=this.option.visual;return t[Math.round(mc(e,[0,1],[0,t.length-1],!0))]||{}}function DN(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function ON(e){var t=this.option.visual;return t[this.option.loop&&e!==bN?e%t.length:e]}function kN(){return this.option.visual[0]}function AN(e){return{linear:function(t){return mc(t,e,this.option.visual,!0)},category:ON,piecewise:function(t,n){var r=jN.call(this,n);return r??=mc(t,e,this.option.visual,!0),r},fixed:kN}}function jN(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=n[xN.findPieceIndex(e,n)];if(r&&r.visual)return r.visual[this.type]}}function MN(e,t){return e.visual=t,e.type===`color`&&(e.parsedVisual=B(t,function(e){return Ii(e)||[0,0,0,1]})),t}var NN={linear:function(e){return mc(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=xN.findPieceIndex(e,t,!0);if(n!=null)return mc(n,[0,t.length-1],[0,1],!0)},category:function(e){return(this.option.categories?this.option.categoryMap[e]:e)??bN},fixed:Nt};function PN(e,t,n){return e?t<=n:t<n}function FN(e,t,n,r,i,a){e||=0;var o=Tc(n[1],-n[0]);if(i!=null&&(i=LN(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),r===`all`){var s=Math.abs(Tc(t[1],-t[0]));s=LN(s,[0,o]),i=a=LN(s,[i,a]),r=0}t[0]=LN(t[0],n),t[1]=LN(t[1],n);var c=IN(t,r);t[r]+=e;var l=i||0,u=n.slice();c.sign<0?u[0]=Tc(u[0],l):u[1]=Tc(u[1],-l),t[r]=LN(t[r],u);var d=IN(t,r);return i!=null&&(d.sign!==c.sign||d.span<i)&&(t[1-r]=Tc(t[r],c.sign*i)),d=IN(t,r),a!=null&&d.span>a&&(t[1-r]=Tc(t[r],d.sign*a)),t}function IN(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function LN(e,t){return Math.min(t[1]==null?1/0:t[1],Math.max(t[0]==null?-1/0:t[0],e))}var RN=256,zN=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=Fe.createCanvas();this.canvas=e}return e.prototype.update=function(e,t,n,r,i,a){var o=this._getBrush(),s=this._getGradient(i,`inRange`),c=this._getGradient(i,`outOfRange`),l=this.pointSize+this.blurSize,u=this.canvas,d=u.getContext(`2d`),f=e.length;u.width=t,u.height=n;for(var p=0;p<f;++p){var m=e[p],h=m[0],g=m[1],_=m[2],v=r(_);d.globalAlpha=v,d.drawImage(o,h-l,g-l)}if(!u.width||!u.height)return u;for(var y=d.getImageData(0,0,u.width,u.height),b=y.data,x=0,S=b.length,C=this.minOpacity,w=this.maxOpacity-C;x<S;){var v=b[x+3]/256,T=Math.floor(v*(RN-1))*4;if(v>0){var E=a(v)?s:c;v>0&&(v=v*w+C),b[x++]=E[T],b[x++]=E[T+1],b[x++]=E[T+2],b[x++]=E[T+3]*v*256}else x+=4}return d.putImageData(y,0,0),u},e.prototype._getBrush=function(){var e=this._brushCanvas||=Fe.createCanvas(),t=this.pointSize+this.blurSize,n=t*2;e.width=n,e.height=n;var r=e.getContext(`2d`);return r.clearRect(0,0,n,n),r.shadowOffsetX=n,r.shadowBlur=this.blurSize,r.shadowColor=Z.color.neutral99,r.beginPath(),r.arc(-t,t,this.pointSize,0,Math.PI*2,!0),r.closePath(),r.fill(),e},e.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,r=n[t]||(n[t]=new Uint8ClampedArray(1024)),i=[0,0,0,0],a=0,o=0;o<256;o++)e[t](o/255,!0,i),r[a++]=i[0],r[a++]=i[1],r[a++]=i[2],r[a++]=i[3];return r},e}();function BN(e,t,n){var r=e[1]-e[0];t=B(t,function(t){return{interval:[(t.interval[0]-e[0])/r,(t.interval[1]-e[0])/r]}});var i=t.length,a=0;return function(e){for(var r=a;r<i;r++){var o=t[r].interval;if(o[0]<=e&&e<=o[1]){a=r;break}}if(r===i)for(r=a-1;r>=0;r--){var o=t[r].interval;if(o[0]<=e&&e<=o[1]){a=r;break}}return r>=0&&r<i&&n[r]}}function VN(e,t){var n=e[1]-e[0];return t=[(t[0]-e[0])/n,(t[1]-e[0])/n],function(e){return e>=t[0]&&e<=t[1]}}var HN=function(e){I(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r;t.eachComponent(`visualMap`,function(t){t.eachTargetSeries(function(n){n===e&&(r=t)})}),this._progressiveEls=null,this.group.removeAll();var i=e.coordinateSystem;i.type===`cartesian2d`||i.type===`calendar`||i.type===`matrix`?this._renderOnGridLike(e,n,0,e.getData().count()):mb(i)&&this._renderOnGeo(i,e,r,n)},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,t,n,r){var i=t.coordinateSystem;i&&(mb(i)?this.render(t,n,r):(this._progressiveEls=[],this._renderOnGridLike(t,r,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){Ep(this._progressiveEls||this.group,e)},t.prototype._renderOnGridLike=function(e,t,n,r,i){var a=e.coordinateSystem,o=pb(a,`cartesian2d`),s=pb(a,`matrix`),c,l,u,d;if(o){var f=a.getAxis(`x`),p=a.getAxis(`y`);c=JS(f).w+.5,l=JS(p).w+.5,u=f.scale.getExtent(),d=p.scale.getExtent()}for(var m=this.group,h=e.getData(),g=e.getModel([`emphasis`,`itemStyle`]).getItemStyle(),_=e.getModel([`blur`,`itemStyle`]).getItemStyle(),v=e.getModel([`select`,`itemStyle`]).getItemStyle(),y=e.get([`itemStyle`,`borderRadius`]),b=Up(e),x=e.getModel(`emphasis`),S=x.get(`focus`),C=x.get(`blurScope`),w=x.get(`disabled`),T=o||s?[h.mapDimension(`x`),h.mapDimension(`y`),h.mapDimension(`value`)]:[h.mapDimension(`time`),h.mapDimension(`value`)],E=n;E<r;E++){var D=void 0,O=h.getItemVisual(E,`style`);if(o){var k=h.get(T[0],E),A=h.get(T[1],E);if(isNaN(h.get(T[2],E))||isNaN(k)||isNaN(A)||k<u[0]||k>u[1]||A<d[0]||A>d[1])continue;var j=a.dataToPoint([k,A]);D=new Fs({shape:{x:j[0]-c/2,y:j[1]-l/2,width:c,height:l},style:O})}else if(s){var M=a.dataToLayout([h.get(T[0],E),h.get(T[1],E)]).rect;if(gt(M.x))continue;D=new Fs({z2:1,shape:M,style:O})}else{if(isNaN(h.get(T[1],E)))continue;var ee=a.dataToLayout([h.get(T[0],E)]),M=ee.contentRect||ee.rect;if(gt(M.x)||gt(M.y))continue;D=new Fs({z2:1,shape:M,style:O})}if(h.hasItemOption){var N=h.getItemModel(E),P=N.getModel(`emphasis`);g=P.getModel(`itemStyle`).getItemStyle(),_=N.getModel([`blur`,`itemStyle`]).getItemStyle(),v=N.getModel([`select`,`itemStyle`]).getItemStyle(),y=N.get([`itemStyle`,`borderRadius`]),S=P.get(`focus`),C=P.get(`blurScope`),w=P.get(`disabled`),b=Up(N)}D.shape.r=y;var te=e.getRawValue(E),ne=`-`;te&&te[2]!=null&&(ne=te[2]+``),Hp(D,b,{labelFetcher:e,labelDataIndex:E,defaultOpacity:O.opacity,defaultText:ne}),D.ensureState(`emphasis`).style=g,D.ensureState(`blur`).style=_,D.ensureState(`select`).style=v,td(D,S,C,w),D.incremental=Hl(e,i),i&&(D.states.emphasis.hoverLayer=2),m.add(D),h.setItemGraphicEl(E,D),this._progressiveEls&&this._progressiveEls.push(D)}},t.prototype._renderOnGeo=function(e,t,n,r){var i=n.targetVisuals.inRange,a=n.targetVisuals.outOfRange,o=t.getData(),s=this._hmLayer||this._hmLayer||new zN;s.blurSize=t.get(`blurSize`),s.pointSize=t.get(`pointSize`),s.minOpacity=t.get(`minOpacity`),s.maxOpacity=t.get(`maxOpacity`);var c=e.getViewRect().clone(),l=e.getRoamTransform();c.applyTransform(l);var u=Math.max(c.x,0),d=Math.max(c.y,0),f=Math.min(c.width+c.x,r.getWidth()),p=Math.min(c.height+c.y,r.getHeight()),m=f-u,h=p-d,g=[o.mapDimension(`lng`),o.mapDimension(`lat`),o.mapDimension(`value`)],_=o.mapArray(g,function(t,n,r){var i=e.dataToPoint([t,n]);return i[0]-=u,i[1]-=d,i.push(r),i}),v=n.getExtent(),y=n.type===`visualMap.continuous`?VN(v,n.option.range):BN(v,n.getPieceList(),n.option.selected);s.update(_,m,h,i.color.getNormalizer(),{inRange:i.color.getColorMapper(),outOfRange:a.color.getColorMapper()},y);var b=new Ds({style:{width:m,height:h,x:u,y:d,image:s.canvas},silent:!0});this.group.add(b)},t.type=`heatmap`,t}(rb),UN=function(e){I(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(e,t){return fg(null,this,{generateCoord:`value`})},t.prototype.preventIncremental=function(){var e=Yh.get(this.get(`coordinateSystem`));if(e&&e.dimensions)return e.dimensions[0]===`lng`&&e.dimensions[1]===`lat`},t.type=`series.heatmap`,t.dependencies=[`grid`,`geo`,`calendar`,`matrix`],t.defaultOption={coordinateSystem:`cartesian2d`,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:Z.color.primary}}},t}(ly);function WN(e){e.registerChartView(HN),e.registerSeriesModel(UN)}var GN=_l(),KN=L,qN=V,JN=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,r){var i=t.get(`value`),a=t.get(`status`);if(this._axisModel=e,this._axisPointerModel=t,this._api=n,r||this._lastValue!==i||this._lastStatus!==a){this._lastValue=i,this._lastStatus=a;var o=this._group,s=this._handle;if(!a||a===`hide`)o&&o.hide(),s&&s.hide();else{o&&o.show(),s&&s.show();var c={};this.makeElOption(c,i,e,t,n);var l=c.graphicKey;l!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=l;var u=this._moveAnimation=this.determineAnimation(e,t);if(!o)o=this._group=new Pd,this.createPointerEl(o,c,e,t),this.createLabelEl(o,c,e,t),n.getZr().add(o);else{var d=lt(YN,t,u);this.updatePointerEl(o,c,d),this.updateLabelEl(o,c,d,t)}$N(o,t,!0),this._renderHandle(i)}}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get(`animation`),r=e.axis,i=r.type===`category`,a=t.get(`snap`);if(!a&&!i)return!1;if(n===`auto`||n==null){var o=this.animationThreshold;if(i&&JS(r).w>o)return!0;if(a){var s=eN(e).seriesDataCount,c=r.getExtent();return Math.abs(c[0]-c[1])/s>o}return!1}return n===!0},e.prototype.makeElOption=function(e,t,n,r,i){},e.prototype.createPointerEl=function(e,t,n,r){var i=t.pointer;if(i){var a=GN(e).pointerEl=new Gf[i.type](KN(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=GN(e).labelEl=new Bs(KN(t.label));e.add(i),ZN(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=GN(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,r){var i=GN(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),ZN(i,r))},e.prototype._renderHandle=function(e){if(!this._dragging&&this.updateHandleTransform){var t=this._axisPointerModel,n=this._api.getZr(),r=this._handle,i=t.getModel(`handle`),a=t.get(`status`);if(!i.get(`show`)||!a||a===`hide`)r&&n.remove(r),this._handle=null;else{var o;this._handle||(o=!0,r=this._handle=gp(i.get(`icon`),{cursor:`move`,draggable:!0,onmousemove:function(e){jE(e.event)},onmousedown:qN(this._onHandleDragMove,this,0,0),drift:qN(this._onHandleDragMove,this),ondragend:qN(this._onHandleDragEnd,this)}),n.add(r)),$N(r,t,!1),r.setStyle(i.getItemStyle(null,[`color`,`borderColor`,`borderWidth`,`opacity`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`]));var s=i.get(`size`);H(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,Qw(this,`_doDispatchAxisPointer`,i.get(`throttle`)||0,`fixRate`),this._moveHandleToValue(e,o)}}},e.prototype._moveHandleToValue=function(e,t){YN(this._axisPointerModel,!t&&this._moveAnimation,this._handle,QN(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(QN(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(QN(r)),GN(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:`updateAxisPointer`,x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get(`value`);this._moveHandleToValue(e),this._api.dispatchAction({type:`hideTip`})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,r=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),$w(this,`_doDispatchAxisPointer`)},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},e}();function YN(e,t,n,r){XN(GN(n).lastProp,r)||(GN(n).lastProp=r,t?Rf(n,r,e):(n.stopAnimation(),n.attr(r)))}function XN(e,t){if(G(e)&&G(t)){var n=!0;return z(t,function(t,r){n&&=XN(e[r],t)}),!!n}return e===t}function ZN(e,t){e[t.get([`label`,`show`])?`show`:`hide`]()}function QN(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function $N(e,t,n){var r=t.get(`z`),i=t.get(`zlevel`);e&&e.traverse(function(e){e.type!==`group`&&(r!=null&&(e.z=r),i!=null&&(e.zlevel=i),e.silent=n)})}function eP(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 tP(e,t,n,r,i){var a=rP(n.get(`value`),t.axis,t.ecModel,n.get(`seriesDataIndices`),{precision:n.get([`label`,`precision`]),formatter:n.get([`label`,`formatter`])}),o=n.getModel(`label`),s=F_(o.get(`padding`)||0),c=o.getFont(),l=lr(a,c),u=i.position,d=l.width+s[1]+s[3],f=l.height+s[0]+s[2],p=i.align;p===`right`&&(u[0]-=d),p===`center`&&(u[0]-=d/2);var m=i.verticalAlign;m===`bottom`&&(u[1]-=f),m===`middle`&&(u[1]-=f/2),nP(u,d,f,r);var h=o.get(`backgroundColor`);(!h||h===`auto`)&&(h=t.get([`axisLine`,`lineStyle`,`color`])),e.label={x:u[0],y:u[1],style:Wp(o,{text:a,font:c,fill:o.getTextColor(),padding:s,backgroundColor:h}),z2:10}}function nP(e,t,n,r){var i=r.getWidth(),a=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,a)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function rP(e,t,n,r,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:bx(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};z(r,function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&s.seriesData.push(i)}),W(o)?a=o.replace(`{value}`,a):U(o)&&(a=o(s))}return a}function iP(e,t,n){var r=ln();return mn(r,r,n.rotation),pn(r,r,n.position),lp([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function aP(e,t,n,r,i,a){var o=NC.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get([`label`,`margin`]),tP(t,r,i,a,{position:iP(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function oP(e,t,n){return n||=0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function sP(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function cP(e,t,n){return JS(e,{fromStat:{sers:B(t,function(e){return n.getSeriesByIndex(e.seriesIndex)})},min:1}).w}function lP(e,t,n){return[ic(rc(t[0],t[1]),e-n/2),rc(e+n/2,ic(t[0],t[1]))]}var uP=function(e){I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis,o=a.grid,s=r.get(`type`),c=a.getGlobalExtent(),l=dP(o,a).getOtherAxis(a).getGlobalExtent(),u=a.toGlobalCoord(a.dataToCoord(t,!0));if(s&&s!==`none`){var d=eP(r),f=fP[s](a,u,c,l,r.get(`seriesDataIndices`),r.ecModel);f.style=d,e.graphicKey=f.type,e.pointer=f}aP(t,e,ew(o.getRect(),n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=ew(t.axis.grid.getRect(),t,{labelInside:!1});r.labelMargin=n.get([`handle`,`margin`]);var i=iP(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,a=i.grid,o=i.getGlobalExtent(!0),s=dP(a,i).getOtherAxis(i).getGlobalExtent(),c=i.dim===`x`?0:1,l=[e.x,e.y];l[c]+=t[c],l[c]=rc(o[1],l[c]),l[c]=ic(o[0],l[c]);var u=(s[1]+s[0])/2,d=[u,u];return d[c]=l[c],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:d,tooltipOption:[{verticalAlign:`middle`},{align:`center`}][c]}},t}(JN);function dP(e,t){var n={};return n[t.dim+`AxisIndex`]=t.index,e.getCartesian(n)}var fP={line:function(e,t,n,r){return{type:`Line`,subPixelOptimize:!0,shape:oP([t,r[0]],[t,r[1]],pP(e))}},shadow:function(e,t,n,r,i,a){var o=cP(e,i,a),s=r[1]-r[0],c=lP(t,n,o),l=c[0],u=c[1];return{type:`Rect`,shape:sP([l,r[0]],[u-l,s],pP(e))}}};function pP(e){return e.dim===`x`?0:1}var mP=function(e){I(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:Z.color.border,width:1,type:`dashed`},shadowStyle:{color:Z.color.shadowTint},label:{show:!0,formatter:null,precision:`auto`,margin:3,color:Z.color.neutral00,padding:[5,7,5,7],backgroundColor:Z.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:Z.color.accent40,throttle:40}},t}(av),hP=_l(),gP=z;function _P(e,t,n){if(!J.node){var r=t.getZr();hP(r).records||(hP(r).records={}),vP(r,t);var i=hP(r).records[e]||(hP(r).records[e]={});i.handler=n}}function vP(e,t){if(hP(e).initialized)return;hP(e).initialized=!0,n(`click`,lt(xP,`click`)),n(`mousemove`,lt(xP,`mousemove`)),n(`mousewheel`,lt(xP,`mousewheel`)),n(`globalout`,bP);function n(n,r){e.on(n,function(n){var i=SP(t);gP(hP(e).records,function(e){e&&r(e,n,i.dispatchAction)}),yP(i.pendings,t)})}}function yP(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 bP(e,t,n){e.handler(`leave`,null,n)}function xP(e,t,n,r){t.handler(e,n,r)}function SP(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 CP(e,t){if(!J.node){var n=t.getZr();(hP(n).records||{})[e]&&(hP(n).records[e]=null)}}var wP=function(e){I(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=t.getComponent(`tooltip`),i=e.get(`triggerOn`)||r&&r.get(`triggerOn`)||`mousemove|click|mousewheel`;_P(`axisPointer`,n,function(e,t,n){i!==`none`&&(e===`leave`||i.indexOf(e)>=0)&&n({type:`updateAxisPointer`,currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})})},t.prototype.remove=function(e,t){CP(`axisPointer`,t)},t.prototype.dispose=function(e,t){CP(`axisPointer`,t)},t.type=`axisPointer`,t}(IO);function TP(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var a=i.getData(),o=gl(a,e);if(o==null||o<0||H(o))return{point:[]};var s=a.getItemGraphicEl(o),c=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(o)||[];else if(c&&c.dataToPoint){if(e.isStacked){var l=c.getBaseAxis(),u=c.getOtherAxis(l).dim,d=l.dim,f=+(u===`x`||u===`radius`),p=a.mapDimension(d),m=[];m[f]=a.get(p,o),m[1-f]=a.get(a.getCalculationInfo(`stackResultDimension`),o),n=c.dataToPoint(m)||[]}else n=c.dataToPoint(a.getValues(B(c.dimensions,function(e){return a.mapDimension(e)}),o))||[]}else if(s){var h=s.getBoundingRect().clone();h.applyTransform(s.transform),n=[h.x+h.width/2,h.y+h.height/2]}return{point:n,el:s}}var EP=_l();function DP(e,t,n){var r=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||V(n.dispatchAction,n),s=t.getComponent(`axisPointer`).coordSysAxesInfo;if(s){LP(i)&&(i=TP({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var c=LP(i),l=a.axesInfo,u=s.axesInfo,d=r===`leave`||LP(i),f={},p={},m={list:[],map:{}},h={showPointer:lt(AP,p),showTooltip:lt(jP,m)};z(s.coordSysMap,function(e,t){var n=c||e.containPoint(i);z(s.coordSysAxesInfo[t],function(e,t){var r=e.axis,a=FP(l,e);if(!d&&n&&(!l||a)){var o=a&&a.value;o==null&&!c&&(o=r.pointToData(i)),o!=null&&OP(e,o,h,!1,f)}})});var g={};return z(u,function(e,t){var n=e.linkGroup;n&&!p[t]&&z(n.axesInfo,function(t,r){var i=p[r];if(t!==e&&i){var a=i.value;n.mapper&&(a=e.axis.scale.parse(n.mapper(a,IP(t),IP(e)))),g[e.key]=a}})}),z(g,function(e,t){OP(u[t],e,h,!0,f)}),MP(p,u,f),NP(m,i,e,o),PP(u,o,n),f}}function OP(e,t,n,r,i){var a=e.axis;if(!a.scale.isBlank()&&a.containData(t)){if(!e.involveSeries)n.showPointer(e,t);else{var o=kP(t,e),s=o.payloadBatch,c=o.snapToValue;s[0]&&i.seriesIndex==null&&R(i,s[0]),!r&&e.snap&&a.containData(c)&&c!=null&&(t=c),n.showPointer(e,t,s),n.showTooltip(e,o,c)}}}function kP(e,t){var n=t.axis,r=n.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return z(t.seriesModels,function(t,c){var l=t.getData().mapDimensionsAll(r),u,d;if(t.getAxisTooltipData){var f=t.getAxisTooltipData(l,e,n);d=f.dataIndices,u=f.nestestValue}else{if(d=t.indicesOfNearest(r,l[0],e,n.type===`category`?.5:null),!d.length)return;u=t.getData().get(l[0],d[0])}if(Bc(u)){var p=e-u,m=Math.abs(p);m<=o&&((m<o||p>=0&&s<0)&&(o=m,s=p,i=u,a.length=0),z(d,function(e){a.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:a,snapToValue:i}}function AP(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function jP(e,t,n,r){var i=n.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(t.triggerTooltip&&i.length){var c=t.coordSys.model,l=rN(c),u=e.map[l];u||(u=e.map[l]={coordSysId:c.id,coordSysIndex:c.componentIndex,coordSysType:c.type,coordSysMainType:c.mainType,dataByAxis:[]},e.list.push(u)),u.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get([`label`,`precision`]),formatter:s.get([`label`,`formatter`])},seriesDataIndices:i.slice()})}}function MP(e,t,n){var r=n.axesInfo=[];z(t,function(t,n){var i=t.axisPointerModel.option,a=e[n];a?(!t.useHandle&&(i.status=`show`),i.value=a.value,i.seriesDataIndices=(a.payloadBatch||[]).slice()):!t.useHandle&&(i.status=`hide`),i.status===`show`&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})})}function NP(e,t,n,r){if(LP(t)||!e.list.length)r({type:`hideTip`});else{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 PP(e,t,n){var r=n.getZr(),i=`axisPointerLastHighlights`,a=EP(r)[i]||{},o=EP(r)[i]={};z(e,function(e,t){var n=e.axisPointerModel.option;n.status===`show`&&e.triggerEmphasis&&z(n.seriesDataIndices,function(e){o[e.seriesIndex+`|`+e.dataIndex]=e})});var s=[],c=[];function l(e){return{seriesIndex:e.seriesIndex,dataIndex:e.dataIndex}}z(a,function(e,t){!o[t]&&c.push(l(e))}),z(o,function(e,t){!a[t]&&s.push(l(e))}),c.length&&n.dispatchAction({type:`downplay`,escapeConnect:!0,notBlur:!0,batch:c}),s.length&&n.dispatchAction({type:`highlight`,escapeConnect:!0,notBlur:!0,batch:s})}function FP(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 IP(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 LP(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function RP(e){aN.registerAxisPointerClass(`CartesianAxisPointer`,uP),e.registerComponentModel(mP),e.registerComponentView(wP),e.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!H(t)&&(e.axisPointer.link=[t])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,t){e.getComponent(`axisPointer`).coordSysAxesInfo=qM(e,t)}}),e.registerAction({type:`updateAxisPointer`,event:`updateAxisPointer`,update:`:updateAxisPointer`},DP)}function zP(e){rM(gN),rM(RP)}function BP(e,t){var n=F_(t.get(`padding`)),r=t.getItemStyle([`color`,`opacity`]);return r.fill=t.get(`backgroundColor`),new Fs({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get(`borderRadius`)},style:r,silent:!0,z2:-1})}var VP=function(e){I(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:Z.color.neutral00,shadowBlur:10,shadowColor:`rgba(0, 0, 0, .2)`,shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:Z.color.border,padding:null,extraCssText:``,axisPointer:{type:`line`,axis:`auto`,animation:`auto`,animationDurationUpdate:200,animationEasingUpdate:`exponentialOut`,crossStyle:{color:Z.color.borderShade,width:1,type:`dashed`,textStyle:{}}},textStyle:{color:Z.color.tertiary,fontSize:14}},t}(av);function HP(e){var t=e.get(`confine`);return t==null?e.get(`renderMode`)===`richText`:!!t}function UP(e){if(J.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}}var WP=UP([`transform`,`webkitTransform`,`OTransform`,`MozTransform`,`msTransform`]),GP=UP([`webkitTransition`,`transition`,`OTransition`,`MozTransition`,`msTransition`]);function KP(e,t){if(!e)return t;t=P_(t,!0);var n=e.indexOf(t);return e=n===-1?t:`-`+e.slice(0,n)+`-`+t,e.toLowerCase()}function qP(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?t?n[t]:n:null}var JP=KP(GP,`transition`),YP=KP(WP,`transform`),XP=`position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;`+(J.transform3dSupported?`will-change:transform;`:``);function ZP(e){return e=e===`left`?`right`:e===`right`?`left`:e===`top`?`bottom`:`top`,e}function QP(e,t,n){if(!W(n)||n===`inside`)return``;var r=e.get(`backgroundColor`),i=e.get(`borderWidth`);t=V_(t);var a=ZP(n),o=Math.max(Math.round(i)*1.5,6),s=``,c=YP+`:`,l;et([`left`,`right`],a)>-1?(s+=`top:50%`,c+=`translateY(-50%) rotate(`+(l=a===`left`?-225:-45)+`deg)`):(s+=`left:50%`,c+=`translateX(-50%) rotate(`+(l=a===`top`?225:45)+`deg)`);var u=l*Math.PI/180,d=o+i,f=d*Math.abs(Math.cos(u))+d*Math.abs(Math.sin(u)),p=Math.round(((f-Math.SQRT2*i)/2+Math.SQRT2*i-(f-d)/2)*100)/100;s+=`;`+a+`:-`+p+`px`;var m=t+` solid `+i+`px;`;return`<div style="`+[`position:absolute;width:`+o+`px;height:`+o+`px;z-index:-1;`,s+`;`+c+`;`,`border-bottom:`+m,`border-right:`+m,`background-color:`+r+`;`].join(``)+`"></div>`}function $P(e,t,n){var r=`cubic-bezier(0.23,1,0.32,1)`,i=``,a=``;return n&&(i=` `+e/2+`s `+r,a=`opacity`+i+`,visibility`+i),t||(i=` `+e+`s `+r,a+=(a.length?`,`:``)+(J.transformSupported?``+YP+i:`,left`+i+`,top`+i)),JP+`:`+a}function eF(e,t,n){var r=e.toFixed(0)+`px`,i=t.toFixed(0)+`px`;if(!J.transformSupported)return n?`top:`+i+`;left:`+r+`;`:[[`top`,i],[`left`,r]];var a=J.transform3dSupported,o=`translate`+(a?`3d`:``)+`(`+r+`,`+i+(a?`,0`:``)+`)`;return n?`top:0;left:0;`+YP+`:`+o+`;`:[[`top`,0],[`left`,0],[WP,o]]}function tF(e){var t=[],n=e.get(`fontSize`),r=e.getTextColor();r&&t.push(`color:`+r),t.push(`font:`+e.getFont());var i=K(e.get(`lineHeight`),Math.round(n*3/2));n&&t.push(`line-height:`+i+`px`);var a=e.get(`textShadowColor`),o=e.get(`textShadowBlur`)||0,s=e.get(`textShadowOffsetX`)||0,c=e.get(`textShadowOffsetY`)||0;return a&&o&&t.push(`text-shadow:`+s+`px `+c+`px `+o+`px `+a),z([`decoration`,`align`],function(n){var r=e.get(n);r&&t.push(`text-`+n+`:`+r)}),t.join(`;`)}function nF(e,t,n,r){var i=[],a=e.get(`transitionDuration`),o=e.get(`backgroundColor`),s=e.get(`shadowBlur`),c=e.get(`shadowColor`),l=e.get(`shadowOffsetX`),u=e.get(`shadowOffsetY`),d=e.getModel(`textStyle`),f=ry(e,`html`),p=l+`px `+u+`px `+s+`px `+c;return i.push(`box-shadow:`+p),t&&a>0&&i.push($P(a,n,r)),o&&i.push(`background-color:`+o),z([`width`,`color`,`radius`],function(t){var n=`border-`+t,r=P_(n),a=e.get(r);a!=null&&i.push(n+`:`+a+(t===`color`?``:`px`))}),i.push(tF(d)),f!=null&&i.push(`padding:`+F_(f).join(`px `)+`px`),i.join(`;`)+`;`}function rF(e,t,n,r,i){var a=t&&t.painter;if(n){var o=a&&a.getViewportRoot();o&&Tg(e,o,n,r,i)}else{e[0]=r,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var iF=function(){function e(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,J.wxa)return null;var n=document.createElement(`div`);n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),i=t.appendTo,a=i&&(W(i)?document.querySelector(i):mt(i)?i:U(i)&&i(e.getDom()));rF(this._styleCoord,r,a,e.getWidth()/2,e.getHeight()/2),(a||e.getDom()).appendChild(n),this._api=e,this._container=a;var o=this;n.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},n.onmousemove=function(e){if(e||=window.event,!o._enterable){var t=r.handler;DE(r.painter.getViewportRoot(),e,!0),t.dispatch(`mousemove`,e)}},n.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}return e.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=qP(t,`position`),r=t.style;r.position!==`absolute`&&n!==`absolute`&&(r.position=`relative`)}var i=e.get(`alwaysShowContent`);i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=e.get(`displayTransition`)&&e.get(`transitionDuration`)>0,this.el.className=e.get(`className`)||``},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=XP+nF(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+eF(i[0],i[1],!0)+(`border-color:`+V_(t)+`;`)+(e.get(`extraCssText`)||``)+(`;pointer-events:`+(this._enterable?`auto`:`none`)):r.display=`none`,this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,r,i){var a=this.el;if(e==null)a.innerHTML=``;else{var o=``;if(W(i)&&n.get(`trigger`)===`item`&&!HP(n)&&(o=QP(n,r,i)),W(e))a.innerHTML=e+o;else if(e){a.innerHTML=``,H(e)||(e=[e]);for(var s=0;s<e.length;s++)mt(e[s])&&e[s].parentNode!==a&&a.appendChild(e[s]);if(o&&a.childNodes.length){var c=document.createElement(`div`);c.innerHTML=o,a.appendChild(c)}}}},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},e.prototype.moveTo=function(e,t){if(this.el){var n=this._styleCoord;if(rF(n,this._zr,this._container,e,t),n[0]!=null&&n[1]!=null){var r=this.el.style;z(eF(n[0],n[1]),function(e){r[e[0]]=e[1]})}}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){var e=this,t=this.el.style;this._enableDisplayTransition?(t.visibility=`hidden`,t.opacity=`0`):t.display=`none`,J.transform3dSupported&&(t.willChange=``),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},e.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(V(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;Eg(e&&e.painter&&e.painter.getViewportRoot(),this._container);var t=this.el;if(t){t.onmouseenter=t.onmousemove=t.onmouseleave=null;var n=t.parentNode;n&&n.removeChild(t)}this.el=this._container=null},e}(),aF=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),cF(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return e.prototype.update=function(e){var t=e.get(`alwaysShowContent`);t&&this._moveIfResized(),this._alwaysShowContent=t},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(e,t,n,r,i){var a=this;G(e)&&Kc(``),this.el&&this._zr.remove(this.el);var o=n.getModel(`textStyle`);this.el=new Bs({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:o.get(`textShadowColor`),fill:n.get([`textStyle`,`color`]),padding:ry(n,`richText`),verticalAlign:`top`,align:`left`},z:n.get(`z`)}),z([`backgroundColor`,`borderRadius`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],function(e){a.el.style[e]=n.get(e)}),z([`textShadowBlur`,`textShadowOffsetX`,`textShadowOffsetY`],function(e){a.el.style[e]=o.get(e)||0}),this._zr.add(this.el);var s=this;this.el.on(`mouseover`,function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0}),this.el.on(`mouseout`,function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1})},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=sF(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},e.prototype.moveTo=function(e,t){var n=this.el;if(n){var r=this._styleCoord;cF(r,this._zr,e,t),e=r[0],t=r[1];var i=n.style,a=oF(i.borderWidth||0),o=sF(i);n.x=e+a+o.left,n.y=t+a+o.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(V(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function oF(e){return Math.max(0,e)}function sF(e){var t=oF(e.shadowBlur||0),n=oF(e.shadowOffsetX||0),r=oF(e.shadowOffsetY||0);return{left:oF(t-n),right:oF(t+n),top:oF(t-r),bottom:oF(t+r)}}function cF(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var lF=new Fs({shape:{x:-1,y:-1,width:2,height:2}}),uF=function(e){I(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(e,t){if(!J.node&&t.getDom()){var n=e.getComponent(`tooltip`),r=this._renderMode=El(n.get(`renderMode`));this._tooltipContent=r===`richText`?new aF(t):new iF(t,{appendTo:n.get(`appendToBody`,!0)?`body`:n.get(`appendTo`,!0)})}},t.prototype.render=function(e,t,n){if(!J.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n;var r=this._tooltipContent;r.update(e),r.setEnterable(e.get(`enterable`)),this._initGlobalListener(),this._keepShow(),this._renderMode!==`richText`&&e.get(`transitionDuration`)?Qw(this,`_updatePosition`,50,`fixRate`):$w(this,`_updatePosition`)}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel.get(`triggerOn`);_P(`itemTooltip`,this._api,V(function(t,n,r){e!==`none`&&(e.indexOf(t)>=0?this._tryShow(n,r):t===`leave`&&this._hide(r))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,r=e.get(`triggerOn`);if(e.get(`trigger`)!==`axis`&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&r!==`none`&&r!==`click`){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&i.manuallyShowTip(e,t,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,t,n,r){if(r.from!==this.uid&&!J.node&&n.getDom()){var i=fF(r,n);this._ticket=``;var a=r.dataByCoordSys,o=_F(r,t,n);if(o){var s=o.el.getBoundingRect().clone();s.applyTransform(o.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:o.el,position:r.position,positionDefault:`bottom`},i)}else if(r.tooltip&&r.x!=null&&r.y!=null){var c=lF;c.x=r.x,c.y=r.y,c.update(),Kl(c).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:c},i)}else if(a)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:a,tooltipOption:r.tooltipOption},i);else if(r.seriesIndex!=null){if(this._manuallyAxisShowTip(e,t,n,r))return;var l=TP(r,t),u=l.point[0],d=l.point[1];u!=null&&d!=null&&this._tryShow({offsetX:u,offsetY:d,target:l.el,position:r.position,positionDefault:`bottom`},i)}else r.x!=null&&r.y!=null&&(n.dispatchAction({type:`updateAxisPointer`,x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},t.prototype.manuallyHideTip=function(e,t,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get(`hideDelay`)),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,r.from!==this.uid&&this._hide(fF(r,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,r){var i=r.seriesIndex,a=r.dataIndex,o=t.getComponent(`axisPointer`).coordSysAxesInfo;if(i!=null&&a!=null&&o!=null){var s=t.getSeriesByIndex(i);if(s&&dF([s.getData().getItemModel(a),s,(s.coordinateSystem||{}).model],this._tooltipModel).get(`trigger`)===`axis`)return n.dispatchAction({type:`updateAxisPointer`,seriesIndex:i,dataIndex:a,position:r.position}),!0}},t.prototype._tryShow=function(e,t){var n=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,e);else if(n){if(Kl(n).ssrType===`legend`)return;this._lastDataByCoordSys=null,this._cbParamsList=null;var i,a;xk(n,function(e){if(e.tooltipDisabled)return i=a=null,!0;i||a||(Kl(e).dataIndex==null?Kl(e).tooltipConfig!=null&&(a=e):i=e)},!0),i?this._showSeriesItemTooltip(e,i,t):a?this._showComponentItemTooltip(e,a,t):this._hide(t)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get(`showDelay`);t=V(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,r=this._tooltipModel,i=[t.offsetX,t.offsetY],a=dF([t.tooltipOption],r),o=this._renderMode,s=[],c=Uv(`section`,{blocks:[],noHeader:!0}),l=[],u=new iy;z(e,function(e){z(e.dataByAxis,function(e){var t=n.getComponent(e.axisDim+`Axis`,e.axisIndex),i=e.value,a=t.axis,d=a.scale.parse(i);if(t&&i!=null){var f=rP(i,a,n,e.seriesDataIndices,e.valueLabelOpt),p=Uv(`section`,{header:f,noHeader:!St(f),sortBlocks:!0,blocks:[]});c.blocks.push(p),z(e.seriesDataIndices,function(i){var a=n.getSeriesByIndex(i.seriesIndex),c=i.dataIndexInside,m=a.getDataParams(c);if(!(m.dataIndex<0)){m.axisDim=e.axisDim,m.axisIndex=e.axisIndex,m.axisType=e.axisType,m.axisId=e.axisId,m.axisValue=bx(t.axis,{value:d}),m.axisValueLabel=f,m.marker=u.makeTooltipMarker(`item`,V_(m.color),o);var h=gv(a.formatTooltip(c,!0,null)),g=h.frag;if(g){var _=dF([a],r).get(`valueFormatter`);p.blocks.push(_?R({valueFormatter:_},g):g)}h.text&&l.push(h.text),s.push(m)}})}})}),c.blocks.reverse(),l.reverse();var d=t.position,f=Yv(c,u,o,a.get(`order`),n.get(`useUTC`),a.get(`textStyle`));f&&l.unshift(f);var p=o===`richText`?`
26
+
27
+ `:`<br/>`,m=l.join(p);this._showOrMove(a,function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(a,d,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(a,m,s,Math.random()+``,i[0],i[1],d,null,u)})},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,i=Kl(t),a=i.seriesIndex,o=r.getSeriesByIndex(a),s=i.dataModel||o,c=i.dataIndex,l=i.dataType,u=s.getData(l),d=this._renderMode,f=e.positionDefault,p=dF([u.getItemModel(c),s,o&&(o.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),m=p.get(`trigger`);if(m==null||m===`item`){var h=s.getDataParams(c,l),g=new iy;h.marker=g.makeTooltipMarker(`item`,V_(h.color),d);var _=gv(s.formatTooltip(c,!1,l)),v=p.get(`order`),y=p.get(`valueFormatter`),b=_.frag,x=b?Yv(y?R({valueFormatter:y},b):b,g,d,v,r.get(`useUTC`),p.get(`textStyle`)):_.text,S=`item_`+s.name+`_`+c;this._showOrMove(p,function(){this._showTooltipContent(p,x,h,S,e.offsetX,e.offsetY,e.position,e.target,g)}),n({type:`showTip`,dataIndexInside:c,dataIndex:u.getRawIndex(c),seriesIndex:a,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r=this._renderMode===`html`,i=Kl(t),a=i.tooltipConfig.option||{},o=a.encodeHTMLContent;if(W(a)){var s=a;a={content:s,formatter:s},o=!0}o&&r&&a.content&&(a=L(a),a.content=Ng(a.content));var c=[a],l=this._ecModel.getComponent(i.componentMainType,i.componentIndex);l&&c.push(l),c.push({formatter:a.content});var u=e.positionDefault,d=dF(c,this._tooltipModel,u?{position:u}:null),f=d.get(`content`),p=Math.random()+``,m=new iy;this._showOrMove(d,function(){var n=L(d.get(`formatterParams`)||{});this._showTooltipContent(d,f,n,p,e.offsetX,e.offsetY,e.position,t,m)}),n({type:`showTip`,from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,i,a,o,s,c){if(this._ticket=``,e.get(`showContent`)&&e.get(`show`)){var l=this._tooltipContent;l.setEnterable(e.get(`enterable`));var u=e.get(`formatter`);o||=e.get(`position`);var d=t,f=this._getNearestPoint([i,a],n,e.get(`trigger`),e.get(`borderColor`),e.get(`defaultBorderColor`,!0)).color;if(u){if(W(u)){var p=e.ecModel.get(`useUTC`),m=H(n)?n[0]:n,h=m&&m.axisType&&m.axisType.indexOf(`time`)>=0;d=u,h&&(d=h_(m.axisValue,d,p)),d=z_(d,n,!0)}else if(U(u)){var g=V(function(t,r){t===this._ticket&&(l.setContent(r,c,e,f,o),this._updatePosition(e,o,i,a,l,n,s))},this);this._ticket=r,d=u(n,r,g)}else d=u}l.setContent(d,c,e,f,o),l.show(e,f),this._updatePosition(e,o,i,a,l,n,s)}},t.prototype._getNearestPoint=function(e,t,n,r,i){if(n===`axis`||H(t))return{color:r||i};if(!H(t))return{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,i,a,o){var s=this._api.getWidth(),c=this._api.getHeight();t||=e.get(`position`);var l=i.getSize(),u=e.get(`align`),d=e.get(`verticalAlign`),f=o&&o.getBoundingRect().clone();if(o&&f.applyTransform(o.transform),U(t)&&(t=t([n,r],a,i.el,f,{viewSize:[s,c],contentSize:l.slice()})),H(t))n=hc(t[0],s),r=hc(t[1],c);else if(G(t)){var p=t;p.width=l[0],p.height=l[1];var m=X_(p,{width:s,height:c});n=m.x,r=m.y,u=null,d=null}else if(W(t)&&o){var h=hF(t,f,l,e.get(`borderWidth`));n=h[0],r=h[1]}else{var h=pF(n,r,i,s,c,u?null:20,d?null:20);n=h[0],r=h[1]}if(u&&(n-=gF(u)?l[0]/2:u===`right`?l[0]:0),d&&(r-=gF(d)?l[1]/2:d===`bottom`?l[1]:0),HP(e)){var h=mF(n,r,i,s,c);n=h[0],r=h[1]}i.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===e.length;return i&&z(n,function(n,a){var o=n.dataByAxis||[],s=(e[a]||{}).dataByAxis||[];i&&=o.length===s.length,i&&z(o,function(e,n){var a=s[n]||{},o=e.seriesDataIndices||[],c=a.seriesDataIndices||[];i=i&&e.value===a.value&&e.axisType===a.axisType&&e.axisId===a.axisId&&o.length===c.length,i&&z(o,function(e,t){var n=c[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex}),r&&z(e.seriesDataIndices,function(e){var n=e.seriesIndex,a=t[n],o=r[n];a&&o&&o.data!==a.data&&(i=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=t,!!i},t.prototype._hide=function(e){this._lastDataByCoordSys=null,this._cbParamsList=null,e({type:`hideTip`,from:this.uid})},t.prototype.dispose=function(e,t){!J.node&&t.getDom()&&($w(this,`_updatePosition`),this._tooltipContent.dispose(),CP(`itemTooltip`,t),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},t.type=`tooltip`,t}(IO);function dF(e,t,n){var r=t.ecModel,i;n?(i=new fm(n,r,r),i=new fm(t.option,i,r)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof fm&&(o=o.get(`tooltip`,!0)),W(o)&&(o={formatter:o}),o&&(i=new fm(o,i,r)))}return i}function fF(e,t){return e.dispatchAction||V(t.dispatchAction,t)}function pF(e,t,n,r,i,a,o){var s=n.getSize(),c=s[0],l=s[1];return a!=null&&(e+c+a+2>r?e-=c+a:e+=a),o!=null&&(t+l+o>i?t-=l+o:t+=o),[e,t]}function mF(e,t,n,r,i){var a=n.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,r)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function hF(e,t,n,r){var i=n[0],a=n[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,c=0,l=t.width,u=t.height;switch(e){case`inside`:s=t.x+l/2-i/2,c=t.y+u/2-a/2;break;case`top`:s=t.x+l/2-i/2,c=t.y-a-o;break;case`bottom`:s=t.x+l/2-i/2,c=t.y+u+o;break;case`left`:s=t.x-i-o,c=t.y+u/2-a/2;break;case`right`:s=t.x+l+o,c=t.y+u/2-a/2}return[s,c]}function gF(e){return e===`center`||e===`middle`}function _F(e,t,n){var r=bl(e).queryOptionMap,i=r.keys()[0];if(i&&i!==`series`){var a=Sl(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a){var o=n.getViewOfComponentModel(a),s;if(o.group.traverse(function(t){var n=Kl(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0}),s)return{componentMainType:i,componentIndex:a.componentIndex,el:s}}}}function vF(e){rM(RP),e.registerComponentModel(VP),e.registerComponentView(uF),e.registerAction({type:`showTip`,event:`showTip`,update:`tooltip:manuallyShowTip`},Nt),e.registerAction({type:`hideTip`,event:`hideTip`,update:`tooltip:manuallyHideTip`},Nt)}var yF=z;function bF(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function xF(e,t,n){var r={};return yF(t,function(t){var a=r[t]=i();yF(e[t],function(e,r){if(xN.isValidType(r)){var i={type:r,visual:e};n&&n(i,t),a[r]=new xN(i),r===`opacity`&&(i=L(i),i.type=`colorAlpha`,a.__hidden.__alphaForOpacity=new xN(i))}})}),r;function i(){var e=function(){};return e.prototype.__hidden=e.prototype,new e}}function SF(e,t,n){var r;z(n,function(e){t.hasOwnProperty(e)&&bF(t[e])&&(r=!0)}),r&&z(n,function(n){t.hasOwnProperty(n)&&bF(t[n])?e[n]=L(t[n]):delete e[n]})}function CF(e,t,n,r){var i={};return z(e,function(e){i[e]=xN.prepareVisualTypes(t[e])}),{progress:function(e,a){var o;r!=null&&(o=a.getDimensionIndex(r));function s(e){return vk(a,l,e)}function c(e,t){bk(a,l,e,t)}for(var l,u=a.getStore();(l=e.next())!=null;){var d=a.getRawDataItem(l);if(!(d&&d.visualMap===!1))for(var f=r==null?l:u.get(o,l),p=n(f),m=t[p],h=i[p],g=0,_=h.length;g<_;g++){var v=h[g];m[v]&&m[v].applyVisual(f,s,c)}}}}}var wF=function(e,t){if(t===`all`)return{type:`all`,title:e.getLocaleModel().get([`legend`,`selector`,`all`])};if(t===`inverse`)return{type:`inverse`,title:e.getLocaleModel().get([`legend`,`selector`,`inverse`])}},TF=function(e){I(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:`box`,ignoreSize:!0},n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},t.prototype._updateSelector=function(e){var t=e.selector,n=this.ecModel;t===!0&&(t=e.selector=[`all`,`inverse`]),H(t)&&z(t,function(e,r){W(e)&&(e={type:e}),t[r]=Ze(e,wF(n,e.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get(`selectedMode`)===`single`){for(var t=!1,n=0;n<e.length;n++){var r=e[n].get(`name`);if(this.isSelected(r)){this.select(r),t=!0;break}}!t&&this.select(e[0].get(`name`))}},t.prototype._updateData=function(e){var t=[],n=[];e.eachRawSeries(function(r){var i=r.name;n.push(i);var a;if(r.legendVisualProvider){var o=r.legendVisualProvider.getAllNames();e.isSeriesFiltered(r)||(n=n.concat(o)),o.length?t=t.concat(o):a=!0}else a=!0;a&&dl(r)&&t.push(r.name)}),this._availableNames=n;var r=this.get(`data`)||t,i=q(),a=B(r,function(e){return(W(e)||dt(e))&&(e={name:e}),i.get(e.name)?null:(i.set(e.name,!0),new fm(e,this,this.ecModel))},this);this._data=at(a,function(e){return!!e})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var t=this.option.selected;if(this.get(`selectedMode`)===`single`){var n=this._data;z(n,function(e){t[e.get(`name`)]=!1})}t[e]=!0},t.prototype.unSelect=function(e){this.get(`selectedMode`)!==`single`&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?`unSelect`:`select`](e)},t.prototype.allSelect=function(){var e=this._data,t=this.option.selected;z(e,function(e){t[e.get(`name`,!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,t=this.option.selected;z(e,function(e){var n=e.get(`name`,!0);t.hasOwnProperty(n)||(t[n]=!0),t[n]=!t[n]})},t.prototype.isSelected=function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&et(this._availableNames,e)>=0},t.prototype.getOrient=function(){return this.get(`orient`)===`vertical`?{index:1,name:`vertical`}:{index:0,name:`horizontal`}},t.type=`legend.plain`,t.dependencies=[`series`],t.defaultOption={z:4,show:!0,orient:`horizontal`,left:`center`,bottom:Z.size.m,align:`auto`,backgroundColor:Z.color.transparent,borderColor:Z.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:`inherit`,symbolKeepAspect:!0,inactiveColor:Z.color.disabled,inactiveBorderColor:Z.color.disabled,inactiveBorderWidth:`auto`,itemStyle:{color:`inherit`,opacity:`inherit`,borderColor:`inherit`,borderWidth:`auto`,borderCap:`inherit`,borderJoin:`inherit`,borderDashOffset:`inherit`,borderMiterLimit:`inherit`},lineStyle:{width:`auto`,color:`inherit`,inactiveColor:Z.color.disabled,inactiveWidth:2,opacity:`inherit`,type:`inherit`,cap:`inherit`,join:`inherit`,dashOffset:`inherit`,miterLimit:`inherit`},textStyle:{color:Z.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:`sans-serif`,color:Z.color.tertiary,borderWidth:1,borderColor:Z.color.border},emphasis:{selectorLabel:{show:!0,color:Z.color.quaternary}},selectorPosition:`auto`,selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t}(av),EF=lt,DF=z,OF=Pd,kF=function(e){I(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return t.prototype.init=function(){this.group.add(this._contentGroup=new OF),this.group.add(this._selectorGroup=new OF),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get(`show`,!0)){var i=e.get(`align`),a=e.get(`orient`);(!i||i===`auto`)&&(i=e.get(`left`)===`right`&&a===`vertical`?`right`:`left`);var o=e.get(`selector`,!0),s=e.get(`selectorPosition`,!0);o&&(!s||s===`auto`)&&(s=a===`horizontal`?`end`:`start`),this.renderInner(i,e,t,n,o,a,s);var c=Q_(e,n).refContainer,l=e.getBoxLayoutParams(),u=e.get(`padding`),d=X_(l,c,u),f=this.layoutInner(e,i,d,r,o,s),p=X_($e({width:f.width,height:f.height},l),c,u);this.group.x=p.x-f.x,this.group.y=p.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=BP(f,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,r,i,a,o){var s=this.getContentGroup(),c=q(),l=t.get(`selectedMode`),u=t.get(`triggerEvent`),d=[];n.eachRawSeries(function(e){!e.get(`legendHoverLink`)&&d.push(e.id)}),DF(t.getData(),function(i,a){var o=this,f=i.get(`name`);if(!this.newlineDisabled&&(f===``||f===`
28
+ `)){var p=new OF;p.newline=!0,s.add(p)}else{var m=n.getSeriesByName(f)[0];if(!c.get(f)){if(m){var h=m.getData(),g=h.getVisual(`legendLineStyle`)||{},_=h.getVisual(`legendIcon`),v=h.getVisual(`style`),y=this._createItem(m,f,a,i,t,e,g,v,_,l,r);y.on(`click`,EF(MF,f,null,r,d)).on(`mouseover`,EF(NF,m.name,null,r,d)).on(`mouseout`,EF(PF,m.name,null,r,d)),n.ssr&&y.eachChild(function(e){var t=Kl(e);t.seriesIndex=m.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&y.eachChild(function(e){o.packEventData(e,t,m,a,f)}),c.set(f,!0)}else n.eachRawSeries(function(o){var s=this;if(!c.get(f)&&o.legendVisualProvider){var p=o.legendVisualProvider;if(!p.containName(f))return;var m=p.indexOfName(f),h=p.getItemVisual(m,`style`),g=p.getItemVisual(m,`legendIcon`),_=Ii(h.fill);_&&_[3]===0&&(_[3]=.2,h=R(R({},h),{fill:Wi(_,`rgba`)}));var v=this._createItem(o,f,a,i,t,e,{},h,g,l,r);v.on(`click`,EF(MF,null,f,r,d)).on(`mouseover`,EF(NF,null,f,r,d)).on(`mouseout`,EF(PF,null,f,r,d)),n.ssr&&v.eachChild(function(e){var t=Kl(e);t.seriesIndex=o.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&v.eachChild(function(e){s.packEventData(e,t,o,a,f)}),c.set(f,!0)}},this)}}},this),i&&this._createSelector(i,t,r,a,o)},t.prototype.packEventData=function(e,t,n,r,i){var a={componentType:`legend`,componentIndex:t.componentIndex,dataIndex:r,value:i,seriesIndex:n.seriesIndex};Kl(e).eventData=a},t.prototype._createSelector=function(e,t,n,r,i){var a=this.getSelectorGroup();DF(e,function(e){var r=e.type,i=new Bs({style:{x:0,y:0,align:`center`,verticalAlign:`middle`},onclick:function(){n.dispatchAction({type:r===`all`?`legendAllSelect`:`legendInverseSelect`,legendId:t.id})}});a.add(i),Hp(i,{normal:t.getModel(`selectorLabel`),emphasis:t.getModel([`emphasis`,`selectorLabel`])},{defaultText:e.title}),$u(i)})},t.prototype._createItem=function(e,t,n,r,i,a,o,s,c,l,u){var d=e.visualDrawType,f=i.get(`itemWidth`),p=i.get(`itemHeight`),m=i.isSelected(t),h=r.get(`symbolRotate`),g=r.get(`symbolKeepAspect`),_=r.get(`icon`);c=_||c||`roundRect`;var v=AF(c,r,o,s,d,m,u),y=new OF,b=r.getModel(`textStyle`);if(U(e.getLegendIcon)&&(!_||_===`inherit`))y.add(e.getLegendIcon({itemWidth:f,itemHeight:p,icon:c,iconRotate:h,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}));else{var x=_===`inherit`&&e.getData().getVisual(`symbol`)?h===`inherit`?e.getData().getVisual(`symbolRotate`):h:0;y.add(jF({itemWidth:f,itemHeight:p,icon:c,iconRotate:x,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}))}var S=a===`left`?f+5:-5,C=a,w=i.get(`formatter`),T=t;W(w)&&w?T=w.replace(`{name}`,t??``):U(w)&&(T=w(t));var E=m?b.getTextColor():r.get(`inactiveColor`);y.add(new Bs({style:Wp(b,{text:T,x:S,y:p/2,fill:E,align:C,verticalAlign:`middle`},{inheritColor:E})}));var D=new Fs({shape:y.getBoundingRect(),style:{fill:`transparent`}}),O=r.getModel(`tooltip`);return O.get(`show`)&&wp({el:D,componentModel:i,itemName:t,itemTooltipOption:O.option}),y.add(D),y.eachChild(function(e){e.silent=!0}),D.silent=!l,this.getContentGroup().add(y),$u(y),y.__legendDataIndex=n,y},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getContentGroup(),s=this.getSelectorGroup();K_(e.get(`orient`),o,e.get(`itemGap`),n.width,n.height);var c=o.getBoundingRect(),l=[-c.x,-c.y];if(s.markRedraw(),o.markRedraw(),i){K_(`horizontal`,s,e.get(`selectorItemGap`,!0));var u=s.getBoundingRect(),d=[-u.x,-u.y],f=e.get(`selectorButtonGap`,!0),p=e.getOrient().index,m=p===0?`width`:`height`,h=p===0?`height`:`width`,g=p===0?`y`:`x`;a===`end`?d[p]+=c[m]+f:l[p]+=u[m]+f,d[1-p]+=c[h]/2-u[h]/2,s.x=d[0],s.y=d[1],o.x=l[0],o.y=l[1];var _={x:0,y:0};return _[m]=c[m]+f+u[m],_[h]=Math.max(c[h],u[h]),_[g]=Math.min(0,u[g]+d[1-p]),_}return o.x=l[0],o.y=l[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type=`legend.plain`,t}(IO);function AF(e,t,n,r,i,a,o){function s(e,t){e.lineWidth===`auto`&&(e.lineWidth=t.lineWidth>0?2:0),DF(e,function(n,r){e[r]===`inherit`&&(e[r]=t[r])})}var c=t.getModel(`itemStyle`),l=c.getItemStyle(),u=e.lastIndexOf(`empty`,0)===0?`fill`:`stroke`,d=c.getShallow(`decal`);l.decal=!d||d===`inherit`?r.decal:_A(d,o),l.fill===`inherit`&&(l.fill=r[i]),l.stroke===`inherit`&&(l.stroke=r[u]),l.opacity===`inherit`&&(l.opacity=(i===`fill`?r:n).opacity),s(l,r);var f=t.getModel(`lineStyle`),p=f.getLineStyle();if(s(p,n),l.fill===`auto`&&(l.fill=r.fill),l.stroke===`auto`&&(l.stroke=r.fill),p.stroke===`auto`&&(p.stroke=r.fill),!a){var m=t.get(`inactiveBorderWidth`),h=l[u];l.lineWidth=m===`auto`?r.lineWidth>0&&h?2:0:l.lineWidth,l.fill=t.get(`inactiveColor`),l.stroke=t.get(`inactiveBorderColor`),p.stroke=f.get(`inactiveColor`),p.lineWidth=f.get(`inactiveWidth`)}return{itemStyle:l,lineStyle:p}}function jF(e){var t=e.icon||`roundRect`,n=wy(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf(`empty`)>-1&&(n.style.stroke=n.style.fill,n.style.fill=Z.color.neutral00,n.style.lineWidth=2),n}function MF(e,t,n,r){PF(e,t,n,r),n.dispatchAction({type:`legendToggleSelect`,name:e??t}),NF(e,t,n,r)}function NF(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`highlight`,seriesName:e,name:t,excludeSeriesId:r})}function PF(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`downplay`,seriesName:e,name:t,excludeSeriesId:r})}function FF(e,t,n){var r=e===`allSelect`||e===`inverseSelect`,i={},a=[];n.eachComponent({mainType:`legend`,query:t},function(n){r?n[e]():n[e](t.name),IF(n,i),a.push(n.componentIndex)});var o={};return n.eachComponent(`legend`,function(e){z(i,function(t,n){e[t?`select`:`unSelect`](n)}),IF(e,o)}),r?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function IF(e,t){var n=t||{};return z(e.getData(),function(t){var r=t.get(`name`);if(r!==`
29
+ `&&r!==``){var i=e.isSelected(r);n[r]=Mt(n,r)?n[r]&&i:i}}),n}function LF(e){e.registerAction(`legendToggleSelect`,`legendselectchanged`,lt(FF,`toggleSelected`)),e.registerAction(`legendAllSelect`,`legendselectall`,lt(FF,`allSelect`)),e.registerAction(`legendInverseSelect`,`legendinverseselect`,lt(FF,`inverseSelect`)),e.registerAction(`legendSelect`,`legendselected`,lt(FF,`select`)),e.registerAction(`legendUnSelect`,`legendunselected`,lt(FF,`unSelect`))}var RF=Gl(zF);function zF(e){var t=e.findComponents({mainType:`legend`});t&&t.length&&e.filterSeries(function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0})}function BF(e){e.registerComponentModel(TF),e.registerComponentView(kF),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,RF),e.registerSubTypeDefaulter(`legend`,function(){return`plain`}),LF(e)}var VF=function(e){I(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(t,n,r){var i=nv(t);e.prototype.init.call(this,t,n,r),HF(this,t,i)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),HF(this,this.option,t)},t.type=`legend.scroll`,t.defaultOption=yg(TF.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:`end`,pageFormatter:`{current}/{total}`,pageIcons:{horizontal:[`M0,0L12,-10L12,10z`,`M0,0L-12,-10L-12,10z`],vertical:[`M0,0L20,0L10,-20z`,`M0,0L20,0L10,20z`]},pageIconColor:Z.color.accent50,pageIconInactiveColor:Z.color.accent10,pageIconSize:15,pageTextStyle:{color:Z.color.tertiary},animationDurationUpdate:800}),t}(TF);function HF(e,t,n){var r=e.getOrient(),i=[1,1];i[r.index]=0,tv(t,n,{type:`box`,ignoreSize:!!i})}var UF=Pd,WF=[`width`,`height`],GF=[`x`,`y`],KF=function(e){I(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new UF),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new UF)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(t,n,r,i,a,o,s){var c=this;e.prototype.renderInner.call(this,t,n,r,i,a,o,s);var l=this._controllerGroup,u=n.get(`pageIconSize`,!0),d=H(u)?u:[u,u];p(`pagePrev`,0);var f=n.getModel(`pageTextStyle`);l.add(new Bs({name:`pageText`,style:{text:`xx/xx`,fill:f.getTextColor(),font:f.getFont(),verticalAlign:`middle`,align:`center`},silent:!0})),p(`pageNext`,1);function p(e,t){var r=e+`DataIndex`,a=gp(n.get(`pageIcons`,!0)[n.getOrient().name][t],{onclick:V(c._pageGo,c,r,n,i)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});a.name=e,l.add(a)}},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getSelectorGroup(),s=e.getOrient().index,c=WF[s],l=GF[s],u=WF[1-s],d=GF[1-s];i&&K_(`horizontal`,o,e.get(`selectorItemGap`,!0));var f=e.get(`selectorButtonGap`,!0),p=o.getBoundingRect(),m=[-p.x,-p.y],h=L(n);i&&(h[c]=n[c]-p[c]-f);var g=this._layoutContentAndController(e,r,h,s,c,u,d,l);if(i){if(a===`end`)m[s]+=g[c]+f;else{var _=p[c]+f;m[s]-=_,g[l]-=_}g[c]+=p[c]+f,m[1-s]+=g[d]+g[u]/2-p[u]/2,g[u]=Math.max(g[u],p[u]),g[d]=Math.min(g[d],p[d]+m[1-s]),o.x=m[0],o.y=m[1],o.markRedraw()}return g},t.prototype._layoutContentAndController=function(e,t,n,r,i,a,o,s){var c=this.getContentGroup(),l=this._containerGroup,u=this._controllerGroup;K_(e.get(`orient`),c,e.get(`itemGap`),r?n.width:null,r?null:n.height),K_(`horizontal`,u,e.get(`pageButtonItemGap`,!0));var d=c.getBoundingRect(),f=u.getBoundingRect(),p=this._showController=d[i]>n[i],m=[-d.x,-d.y];t||(m[r]=c[s]);var h=[0,0],g=[-f.x,-f.y],_=K(e.get(`pageButtonGap`,!0),e.get(`itemGap`,!0));p&&(e.get(`pageButtonPosition`,!0)===`end`?g[r]+=n[i]-f[i]:h[r]+=f[i]+_),g[1-r]+=d[a]/2-f[a]/2,c.setPosition(m),l.setPosition(h),u.setPosition(g);var v={x:0,y:0};if(v[i]=p?n[i]:d[i],v[a]=Math.max(d[a],f[a]),v[o]=Math.min(0,f[o]+g[1-r]),l.__rectSize=n[i],p){var y={x:0,y:0};y[i]=Math.max(n[i]-f[i]-_,0),y[a]=v[a],l.setClipPath(new Fs({shape:y})),l.__rectSize=y[i]}else u.eachChild(function(e){e.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(e);return b.pageIndex!=null&&Rf(c,{x:b.contentPosition[0],y:b.contentPosition[1]},p?e:null),this._updatePageInfoView(e,b),v},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];r!=null&&n.dispatchAction({type:`legendScroll`,scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;z([`pagePrev`,`pageNext`],function(r){var i=t[r+`DataIndex`]!=null,a=n.childOfName(r);a&&(a.setStyle(`fill`,i?e.get(`pageIconColor`,!0):e.get(`pageIconInactiveColor`,!0)),a.cursor=i?`pointer`:`default`)});var r=n.childOfName(`pageText`),i=e.get(`pageFormatter`),a=t.pageIndex,o=a==null?0:a+1,s=t.pageCount;r&&i&&r.setStyle(`text`,W(i)?i.replace(`{current}`,o==null?``:o+``).replace(`{total}`,s==null?``:s+``):i({current:o,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get(`scrollDataIndex`,!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,a=WF[i],o=GF[i],s=this._findTargetItemIndex(t),c=n.children(),l=c[s],u=c.length,d=+!!u,f={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!l)return f;var p=v(l);f.contentPosition[i]=-p.s;for(var m=s+1,h=p,g=p,_=null;m<=u;++m)_=v(c[m]),(!_&&g.e>h.s+r||_&&!y(_,h.s))&&(h=g.i>h.i?g:_,h&&(f.pageNextDataIndex??=h.i,++f.pageCount)),g=_;for(var m=s-1,h=p,g=p,_=null;m>=-1;--m)_=v(c[m]),(!_||!y(g,_.s))&&h.i<g.i&&(g=h,f.pagePrevDataIndex??=h.i,++f.pageCount,++f.pageIndex),h=_;return f;function v(e){if(e){var t=e.getBoundingRect(),n=t[o]+e[o];return{s:n,e:n+t[a],i:e.__legendDataIndex}}}function y(e,t){return e.e>=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,n=this.getContentGroup(),r;return n.eachChild(function(n,i){var a=n.__legendDataIndex;r==null&&a!=null&&(r=i),a===e&&(t=i)}),t??r},t.type=`legend.scroll`,t}(kF);function qF(e){e.registerAction(`legendScroll`,`legendscroll`,function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:`legend`,subType:`scroll`,query:e},function(e){e.setScrollDataIndex(n)})})}function JF(e){rM(BF),e.registerComponentModel(VF),e.registerComponentView(KF),qF(e)}function YF(e){rM(BF),rM(JF)}var XF={get:function(e,t,n){var r=L((ZF[e]||{})[t]);return n&&H(r)?r[r.length-1]:r}},ZF={color:{active:[`#006edd`,`#e0ffff`],inactive:[Z.color.transparent]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:[`circle`,`roundRect`,`diamond`],inactive:[`none`]},symbolSize:{active:[10,50],inactive:[0,0]}},QF=xN.mapVisual,$F=xN.eachVisual,eI=H,tI=z,nI=bc,rI=mc,iI=function(e){I(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=[`inRange`,`outOfRange`],n.replacableOptionKeys=[`inRange`,`outOfRange`,`target`,`controller`,`color`],n.layoutMode={type:`box`,ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&SF(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel(`textStyle`),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=V(e,this),this.controllerVisuals=xF(this.option.controller,t,e),this.targetVisuals=xF(this.option.target,t,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this,t=this.option.seriesTargets;if(t){var n=[];return tI(t,function(t){if(t.seriesIndex!=null)n.push(t.seriesIndex);else if(t.seriesId!=null){var r;e.ecModel.eachSeries(function(e){e.id===t.seriesId&&(r=e)}),r&&n.push(r.componentIndex)}}),n}var r=this.option.seriesId,i=this.option.seriesIndex;i==null&&r==null&&(i=`all`);var a=Sl(this.ecModel,`series`,{index:i,id:r},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return B(a,function(e){return e.componentIndex})},t.prototype.eachTargetSeries=function(e,t){z(this.getTargetSeriesIndices(),function(n){var r=this.ecModel.getSeriesByIndex(n);r&&e.call(t,r)},this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries(function(n){n===e&&(t=!0)}),t},t.prototype.formatValueText=function(e,t,n){var r=this.option,i=r.precision,a=this.dataBound,o=r.formatter,s;n||=[`<`,`>`],H(e)&&(e=e.slice(),s=!0);var c=t?e:s?[l(e[0]),l(e[1])]:l(e);return W(o)?o.replace(`{value}`,s?c[0]:c).replace(`{value2}`,s?c[1]:c):U(o)?s?o(e[0],e[1]):o(e):s?e[0]===a[0]?n[0]+` `+c[1]:e[1]===a[1]?n[1]+` `+c[0]:c[0]+` - `+c[1]:c;function l(e){return e===a[0]?`min`:e===a[1]?`max`:(+e).toFixed(Math.min(i,20))}},t.prototype.resetExtent=function(){var e=this.option,t=nI([e.min,e.max]);this._dataExtent=t},t.prototype.getDimension=function(e){var t=this,n=this.option.seriesTargets;if(n){var r=ot(n,function(n){return n.seriesIndex!=null&&n.seriesIndex===e||n.seriesId!=null&&n.seriesId===t.ecModel.getSeriesByIndex(e).id});if(r)return r.dimension}return this.option.dimension},t.prototype.getDataDimensionIndex=function(e){var t=e.hostModel.seriesIndex,n=this.getDimension(t);if(n!=null)return e.getDimensionIndex(n);for(var r=e.dimensions,i=r.length-1;i>=0;i--){var a=r[i],o=e.getDimensionInfo(a);if(!o.isCalculationCoord)return o.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},r=t.target||={},i=t.controller||={};Ze(r,n),Ze(i,n);var a=this.isCategory();o.call(this,r),o.call(this,i),s.call(this,r,`inRange`,`outOfRange`),c.call(this,i);function o(n){eI(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get(`gradientColor`)}}function s(e,t,n){var r=e[t],i=e[n];r&&!i&&(i=e[n]={},tI(r,function(e,t){if(xN.isValidType(t)){var n=XF.get(t,`inactive`,a);n!=null&&(i[t]=n,t===`color`&&!i.hasOwnProperty(`opacity`)&&!i.hasOwnProperty(`colorAlpha`)&&(i.opacity=[0,0]))}}))}function c(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,r=this.get(`inactiveColor`),i=this.getItemSymbol()||`roundRect`;tI(this.stateList,function(o){var s=this.itemSize,c=e[o];c||=e[o]={color:a?r:[r]},c.symbol??(c.symbol=t&&L(t)||(a?i:[i])),c.symbolSize??(c.symbolSize=n&&L(n)||(a?s[0]:[s[0],s[0]])),c.symbol=QF(c.symbol,function(e){return e===`none`?i:e});var l=c.symbolSize;if(l!=null){var u=-1/0;$F(l,function(e){e>u&&(u=e)}),c.symbolSize=QF(l,function(e){return rI(e,[0,u],[0,s[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get(`itemWidth`)),parseFloat(this.get(`itemHeight`))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type=`visualMap`,t.dependencies=[`series`],t.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:`vertical`,backgroundColor:Z.color.transparent,borderColor:Z.color.borderTint,contentColor:Z.color.theme[0],inactiveColor:Z.color.disabled,borderWidth:0,padding:Z.size.m,textGap:10,precision:0,textStyle:{color:Z.color.secondary}},t}(av),aI=[20,140],oI=function(e){I(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(e){e.mappingMethod=`linear`,e.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=aI[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=aI[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):H(t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),z(this.stateList,function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),t=bc((this.get(`range`)||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]<e[0]&&(t[0]=e[0]),t[1]<e[0]&&(t[1]=e[0]),t},t.prototype.getValueState=function(e){var t=this.option.range,n=this.getExtent(),r=K(this.option.unboundedRange,!0);return(r&&t[0]<=n[0]||t[0]<=e)&&(r&&t[1]>=n[1]||e<=t[1])?`inRange`:`outOfRange`},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries(function(n){var r=[],i=n.getData();i.each(this.getDataDimensionIndex(i),function(t,n){e[0]<=t&&t<=e[1]&&r.push(n)},this),t.push({seriesId:n.id,dataIndex:r})},this),t},t.prototype.getVisualMeta=function(e){var t=sI(this,`outOfRange`,this.getExtent()),n=sI(this,`inRange`,this.option.range.slice()),r=[];function i(t,n){r.push({value:t,color:e(t,n)})}for(var a=0,o=0,s=n.length,c=t.length;o<c&&(!n.length||t[o]<=n[0]);o++)t[o]<n[a]&&i(t[o],`outOfRange`);for(var l=1;a<s;a++,l=0)l&&r.length&&i(n[a],`outOfRange`),i(n[a],`inRange`);for(var l=1;o<c;o++)(!n.length||n[n.length-1]<t[o])&&(l&&=(r.length&&i(r[r.length-1].value,`outOfRange`),0),i(t[o],`outOfRange`));var u=r.length;return{stops:r,outerColors:[u?r[0].color:`transparent`,u?r[u-1].color:`transparent`]}},t.type=`visualMap.continuous`,t.defaultOption=yg(iI.defaultOption,{align:`auto`,calculable:!1,hoverLink:!0,realtime:!0,handleIcon:`path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z`,handleSize:`120%`,handleStyle:{borderColor:Z.color.neutral00,borderWidth:1},indicatorIcon:`circle`,indicatorSize:`50%`,indicatorStyle:{borderColor:Z.color.neutral00,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:Z.color.shadow}}),t}(iI);function sI(e,t,n){if(n[0]===n[1])return n.slice();for(var r=200,i=(n[1]-n[0])/r,a=n[0],o=[],s=0;s<=r&&a<n[1];s++)o.push(a),a+=i;return o.push(n[1]),o}var cI=function(e){I(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return t.prototype.init=function(e,t){this.ecModel=e,this.api=t},t.prototype.render=function(e,t,n,r){this.visualMapModel=e,e.get(`show`)===!1?this.group.removeAll():this.doRender(e,t,n,r)},t.prototype.renderBackground=function(e){var t=this.visualMapModel,n=F_(t.get(`padding`)||0),r=e.getBoundingRect();e.add(new Fs({z2:-1,silent:!0,shape:{x:r.x-n[3],y:r.y-n[0],width:r.width+n[3]+n[1],height:r.height+n[0]+n[2]},style:{fill:t.get(`backgroundColor`),stroke:t.get(`borderColor`),lineWidth:t.get(`borderWidth`)}}))},t.prototype.getControllerVisual=function(e,t,n){n||={};var r=n.forceState,i=this.visualMapModel,a={};t===`color`&&(a.color=i.get(`contentColor`));function o(e){return a[e]}function s(e,t){a[e]=t}var c=i.controllerVisuals[r||i.getValueState(e)];return z(xN.prepareVisualTypes(c),function(r){var i=c[r];n.convertOpacityToAlpha&&r===`opacity`&&(r=`colorAlpha`,i=c.__alphaForOpacity),xN.dependsOn(r,t)&&i&&i.applyVisual(e,o,s)}),a[t]},t.prototype.positionGroup=function(e){var t=this.visualMapModel,n=this.api,r=Q_(t,n).refContainer;$_(e,t.getBoxLayoutParams(),r)},t.prototype.doRender=function(e,t,n,r){},t.type=`visualMap`,t}(IO),lI=[[`left`,`right`,`width`],[`top`,`bottom`,`height`]];function uI(e,t,n){var r=e.option,i=r.align;if(i!=null&&i!==`auto`)return i;for(var a={width:t.getWidth(),height:t.getHeight()},o=+(r.orient===`horizontal`),s=lI[o],c=[0,null,10],l={},u=0;u<3;u++)l[lI[1-o][u]]=c[u],l[s[u]]=u===2?n[0]:r[s[u]];var d=[[`x`,`width`,3],[`y`,`height`,0]][o],f=X_(l,a,r.padding);return s[(f.margin[d[2]]||0)+f[d[0]]+f[d[1]]*.5<a[d[1]]*.5?0:1]}function dI(e,t){return z(e||[],function(e){e.dataIndex!=null&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey=`visualMap`+(t?t.componentIndex:``)}),e}var fI=mc,pI=z,mI=Math.min,hI=Math.max,gI=12,_I=6,vI=function(e){I(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return t.prototype.init=function(t,n){e.prototype.init.call(this,t,n),this._hoverLinkFromSeriesMouseOver=V(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=V(this._hideIndicator,this)},t.prototype.doRender=function(e,t,n,r){(!r||r.type!==`selectDataRange`||r.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,t=this.group;this._orient=e.get(`orient`),this._useHandle=e.get(`calculable`),this._resetInterval(),this._renderBar(t);var n=e.get(`text`);this._renderEndsText(t,n,0),this._renderEndsText(t,n,1),this._updateView(!0),this.renderBackground(t),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(t)},t.prototype._renderEndsText=function(e,t,n){if(t){var r=t[1-n];r=r==null?``:r+``;var i=this.visualMapModel,a=i.get(`textGap`),o=i.itemSize,s=this._shapes.mainGroup,c=this._applyTransform([o[0]/2,n===0?-a:o[1]+a],s),l=this._applyTransform(n===0?`bottom`:`top`,s),u=this._orient,d=this.visualMapModel.textStyleModel;this.group.add(new Bs({style:Wp(d,{x:c[0],y:c[1],verticalAlign:d.get(`verticalAlign`)||(u===`horizontal`?`middle`:l),align:d.get(`align`)||(u===`horizontal`?l:`center`),text:r})}))}},t.prototype._renderBar=function(e){var t=this.visualMapModel,n=this._shapes,r=t.itemSize,i=this._orient,a=this._useHandle,o=uI(t,this.api,r),s=n.mainGroup=this._createBarGroup(o),c=new Pd;s.add(c),c.add(n.outOfRange=yI()),c.add(n.inRange=yI(null,a?SI(this._orient):null,V(this._dragHandle,this,`all`,!1),V(this._dragHandle,this,`all`,!0))),c.setClipPath(new Fs({shape:{x:0,y:0,width:r[0],height:r[1],r:3}}));var l=t.textStyleModel.getTextRect(`国`),u=hI(l.width,l.height);a&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(t,s,0,r,u,i),this._createHandle(t,s,1,r,u,i)),this._createIndicator(t,s,r,u,i),e.add(s)},t.prototype._createHandle=function(e,t,n,r,i,a){var o=V(this._dragHandle,this,n,!1),s=V(this._dragHandle,this,n,!0),c=pr(e.get(`handleSize`),r[0]),l=wy(e.get(`handleIcon`),-c/2,-c/2,c,c,null,!0),u=SI(this._orient);l.attr({cursor:u,draggable:!0,drift:o,ondragend:s,onmousemove:function(e){jE(e.event)}}),l.x=r[0]/2,l.useStyle(e.getModel(`handleStyle`).getItemStyle()),l.setStyle({strokeNoScale:!0,strokeFirst:!0}),l.style.lineWidth*=2,l.ensureState(`emphasis`).style=e.getModel([`emphasis`,`handleStyle`]).getItemStyle(),od(l,!0),t.add(l);var d=this.visualMapModel.textStyleModel,f=new Bs({cursor:u,draggable:!0,drift:o,onmousemove:function(e){jE(e.event)},ondragend:s,style:Wp(d,{x:0,y:0,text:``})});f.ensureState(`blur`).style={opacity:.1},f.stateTransition={duration:200},this.group.add(f);var p=[c,0],m=this._shapes;m.handleThumbs[n]=l,m.handleLabelPoints[n]=p,m.handleLabels[n]=f},t.prototype._createIndicator=function(e,t,n,r,i){var a=pr(e.get(`indicatorSize`),n[0]),o=wy(e.get(`indicatorIcon`),-a/2,-a/2,a,a,null,!0);o.attr({cursor:`move`,invisible:!0,silent:!0,x:n[0]/2});var s=e.getModel(`indicatorStyle`).getItemStyle();if(o instanceof Ds){var c=o.style;o.useStyle(R({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},s))}else o.useStyle(s);t.add(o);var l=this.visualMapModel.textStyleModel,u=new Bs({silent:!0,invisible:!0,style:Wp(l,{x:0,y:0,text:``})});this.group.add(u);var d=[(i===`horizontal`?r/2:_I)+n[0]/2,0],f=this._shapes;f.indicator=o,f.indicatorLabel=u,f.indicatorLabelPoint=d,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,t,n,r){if(this._useHandle){if(this._dragging=!t,!t){var i=this._applyTransform([n,r],this._shapes.mainGroup,!0);this._updateInterval(e,i[1]),this._hideIndicator(),this._updateView()}t===!this.visualMapModel.get(`realtime`)&&this.api.dispatchAction({type:`selectDataRange`,from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),t?!this._hovering&&this._clearHoverLinkToSeries():xI(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,t=this._dataInterval=e.getSelected(),n=e.getExtent(),r=[0,e.itemSize[1]];this._handleEnds=[fI(t[0],n,r,!0),fI(t[1],n,r,!0)]},t.prototype._updateInterval=function(e,t){t||=0;var n=this.visualMapModel,r=this._handleEnds,i=[0,n.itemSize[1]];FN(t,r,i,e,0);var a=n.getExtent();this._dataInterval=[fI(r[0],i,a,!0),fI(r[1],i,a,!0)]},t.prototype._updateView=function(e){var t=this.visualMapModel,n=t.getExtent(),r=this._shapes,i=[0,t.itemSize[1]],a=e?i:this._handleEnds,o=this._createBarVisual(this._dataInterval,n,a,`inRange`),s=this._createBarVisual(n,n,i,`outOfRange`);r.inRange.setStyle({fill:o.barColor}).setShape(`points`,o.barPoints),r.outOfRange.setStyle({fill:s.barColor}).setShape(`points`,s.barPoints),this._updateHandle(a,o)},t.prototype._createBarVisual=function(e,t,n,r){var i={forceState:r,convertOpacityToAlpha:!0},a=this._makeColorGradient(e,i),o=[this.getControllerVisual(e[0],`symbolSize`,i),this.getControllerVisual(e[1],`symbolSize`,i)],s=this._createBarPoints(n,o);return{barColor:new Sf(0,0,0,1,a),barPoints:s,handlesColor:[a[0].color,a[a.length-1].color]}},t.prototype._makeColorGradient=function(e,t){var n=100,r=[],i=(e[1]-e[0])/n;r.push({color:this.getControllerVisual(e[0],`color`,t),offset:0});for(var a=1;a<n;a++){var o=e[0]+i*a;if(o>e[1])break;r.push({color:this.getControllerVisual(o,`color`,t),offset:a/n})}return r.push({color:this.getControllerVisual(e[1],`color`,t),offset:1}),r},t.prototype._createBarPoints=function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get(`inverse`);return new Pd(t===`horizontal`&&!n?{scaleX:e===`bottom`?1:-1,rotation:Math.PI/2}:t===`horizontal`&&n?{scaleX:e===`bottom`?-1:1,rotation:-Math.PI/2}:t===`vertical`&&!n?{scaleX:e===`left`?1:-1,scaleY:-1}:{scaleX:e===`left`?1:-1})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var n=this._shapes,r=this.visualMapModel,i=n.handleThumbs,a=n.handleLabels,o=r.itemSize,s=r.getExtent(),c=this._applyTransform(`left`,n.mainGroup);pI([0,1],function(l){var u=i[l];u.setStyle(`fill`,t.handlesColor[l]),u.y=e[l];var d=fI(e[l],[0,o[1]],s,!0),f=this.getControllerVisual(d,`symbolSize`);u.scaleX=u.scaleY=f/o[0],u.x=o[0]-f/2;var p=lp(n.handleLabelPoints[l],cp(u,this.group));if(this._orient===`horizontal`){var m=c===`left`||c===`top`?(o[0]-f)/2:(o[0]-f)/-2;p[1]+=m}a[l].setStyle({x:p[0],y:p[1],text:r.formatValueText(this._dataInterval[l]),verticalAlign:`middle`,align:this._orient===`vertical`?this._applyTransform(`left`,n.mainGroup):`center`})},this)}},t.prototype._showIndicator=function(e,t,n,r){var i=this.visualMapModel,a=i.getExtent(),o=i.itemSize,s=[0,o[1]],c=this._shapes,l=c.indicator;if(l){l.attr(`invisible`,!1);var u=this.getControllerVisual(e,`color`,{convertOpacityToAlpha:!0}),d=this.getControllerVisual(e,`symbolSize`),f=fI(e,a,s,!0),p=o[0]-d/2,m={x:l.x,y:l.y};l.y=f,l.x=p;var h=lp(c.indicatorLabelPoint,cp(l,this.group)),g=c.indicatorLabel;g.attr(`invisible`,!1);var _=this._applyTransform(`left`,c.mainGroup),v=this._orient===`horizontal`;g.setStyle({text:(n||``)+i.formatValueText(t),verticalAlign:v?_:`middle`,align:v?`center`:_});var y={x:p,y:f,style:{fill:u}},b={style:{x:h[0],y:h[1]}};if(i.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var x={duration:100,easing:`cubicInOut`,additive:!0};l.x=m.x,l.y=m.y,l.animateTo(y,x),g.animateTo(b,x)}else l.attr(y),g.attr(b);this._firstShowIndicator=!1;var S=this._shapes.handleLabels;if(S)for(var C=0;C<S.length;C++)this.api.enterBlur(S[C])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on(`mousemove`,function(t){if(e._hovering=!0,!e._dragging){var n=e.visualMapModel.itemSize,r=e._applyTransform([t.offsetX,t.offsetY],e._shapes.mainGroup,!0,!0);r[1]=mI(hI(0,r[1]),n[1]),e._doHoverLinkToSeries(r[1],0<=r[0]&&r[0]<=n[0])}}).on(`mouseout`,function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on(`mouseover`,this._hoverLinkFromSeriesMouseOver,this),e.on(`mouseout`,this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(e,t){var n=this.visualMapModel,r=n.itemSize;if(n.option.hoverLink){var i=[0,r[1]],a=n.getExtent();e=mI(hI(i[0],e),i[1]);var o=bI(n,a,i),s=[e-o,e+o],c=fI(e,i,a,!0),l=[fI(s[0],i,a,!0),fI(s[1],i,a,!0)];s[0]<i[0]&&(l[0]=-1/0),s[1]>i[1]&&(l[1]=1/0),t&&(l[0]===-1/0?this._showIndicator(c,l[1],`< `,o):l[1]===1/0?this._showIndicator(c,l[0],`> `,o):this._showIndicator(c,c,`≈ `,o));var u=this._hoverLinkDataIndices,d=[];(t||xI(n))&&(d=this._hoverLinkDataIndices=n.findTargetDataIndices(l));var f=hl(u,d);this._dispatchHighDown(`downplay`,dI(f[0],n)),this._dispatchHighDown(`highlight`,dI(f[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if(xk(e.target,function(e){var n=Kl(e);if(n.dataIndex!=null)return t=n,!0},!0),t){var n=this.ecModel.getSeriesByIndex(t.seriesIndex),r=this.visualMapModel;if(r.isTargetSeries(n)){var i=n.getData(t.dataType),a=i.getStore().get(r.getDataDimensionIndex(i),t.dataIndex);isNaN(a)||this._showIndicator(a,a)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr(`invisible`,!0),e.indicatorLabel&&e.indicatorLabel.attr(`invisible`,!0);var t=this._shapes.handleLabels;if(t)for(var n=0;n<t.length;n++)this.api.leaveBlur(t[n])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown(`downplay`,dI(e,this.visualMapModel)),e.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off(`mouseover`,this._hoverLinkFromSeriesMouseOver),e.off(`mouseout`,this._hideIndicator)},t.prototype._applyTransform=function(e,t,n,r){var i=cp(t,r?null:this.group);return H(e)?lp(e,i,n):up(e,i,n)},t.prototype._dispatchHighDown=function(e,t){t&&t.length&&this.api.dispatchAction({type:e,batch:t})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type=`visualMap.continuous`,t}(cI);function yI(e,t,n,r){return new cf({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(e){jE(e.event)},ondragend:r})}function bI(e,t,n){var r=gI/2,i=e.get(`hoverLinkDataSize`);return i&&(r=fI(i,t,n,!0)/2),r}function xI(e){return!!(e.get(`hoverLinkOnHandle`)??e.get(`realtime`))}function SI(e){return e===`vertical`?`ns-resize`:`ew-resize`}var CI={type:`selectDataRange`,event:`dataRangeSelected`,update:`update`},wI=function(e,t){t.eachComponent({mainType:`visualMap`,query:e},function(t){t.setSelected(e.selected)})},TI=[{createOnAllSeries:!0,reset:function(e,t){var n=[];return t.eachComponent(`visualMap`,function(t){var r=e.pipelineContext;!t.isTargetSeries(e)||r&&r.large||n.push(CF(t.stateList,t.targetVisuals,V(t.getValueState,t),t.getDataDimensionIndex(e.getData())))}),n}},{createOnAllSeries:!0,reset:function(e,t){var n=e.getData(),r=[];t.eachComponent(`visualMap`,function(t){if(t.isTargetSeries(e)){var i=t.getVisualMeta(V(EI,null,e,t))||{stops:[],outerColors:[]},a=t.getDataDimensionIndex(n);a>=0&&(i.dimension=a,r.push(i))}}),e.getData().setVisual(`visualMeta`,r)}}];function EI(e,t,n,r){for(var i=t.targetVisuals[r],a=xN.prepareVisualTypes(i),o={color:yk(e.getData(),`color`)},s=0,c=a.length;s<c;s++){var l=a[s],u=i[l===`opacity`?`__alphaForOpacity`:l];u&&u.applyVisual(n,d,f)}return o.color;function d(e){return o[e]}function f(e,t){o[e]=t}}var DI=z;function OI(e){var t=e&&e.visualMap;H(t)||(t=t?[t]:[]),DI(t,function(e){if(e){kI(e,`splitList`)&&!kI(e,`pieces`)&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&H(t)&&DI(t,function(e){G(e)&&(kI(e,`start`)&&!kI(e,`min`)&&(e.min=e.start),kI(e,`end`)&&!kI(e,`max`)&&(e.max=e.end))})}})}function kI(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var AI=!1;function jI(e){AI||(AI=!0,e.registerSubTypeDefaulter(`visualMap`,function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?`continuous`:`piecewise`}),e.registerAction(CI,wI),z(TI,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(OI))}function MI(e){e.registerComponentModel(oI),e.registerComponentView(vI),jI(e)}var NI=function(e){I(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],PI[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var i=this.option.categories;this.resetVisual(function(e,t){r===`categories`?(e.mappingMethod=`category`,e.categories=L(i)):(e.dataExtent=this.getExtent(),e.mappingMethod=`piecewise`,e.pieceList=B(this._pieceList,function(e){return e=L(e),t!==`inRange`&&(e.visual=null),e}))})},t.prototype.completeVisualOption=function(){var t=this.option,n={},r=xN.listVisualTypes(),i=this.isCategory();z(t.pieces,function(e){z(r,function(t){e.hasOwnProperty(t)&&(n[t]=1)})}),z(n,function(e,n){var r=!1;z(this.stateList,function(e){r=r||a(t,e,n)||a(t.target,e,n)},this),!r&&z(this.stateList,function(e){(t[e]||(t[e]={}))[n]=XF.get(n,e===`inRange`?`active`:`inactive`,i)})},this);function a(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,r=this._pieceList,i=(t?n:e).selected||{};if(n.selected=i,z(r,function(e,t){var n=this.getSelectedMapKey(e);i.hasOwnProperty(n)||(i[n]=!0)},this),n.selectedMode===`single`){var a=!1;z(r,function(e,t){var n=this.getSelectedMapKey(e);i[n]&&(a?i[n]=!1:a=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get(`itemSymbol`)},t.prototype.getSelectedMapKey=function(e){return this._mode===`categories`?e.value+``:e.index+``},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?`pieces`:this.option.categories?`categories`:`splitNumber`},t.prototype.setSelected=function(e){this.option.selected=L(e)},t.prototype.getValueState=function(e){var t=xN.findPieceIndex(e,this._pieceList);return t==null?`outOfRange`:this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?`inRange`:`outOfRange`},t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries(function(r){var i=[],a=r.getData();a.each(this.getDataDimensionIndex(a),function(t,r){xN.findPieceIndex(t,n)===e&&i.push(r)},this),t.push({seriesId:r.id,dataIndex:i})},this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(e.value!=null)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var t=[],n=[``,``],r=this;function i(i,a){var o=r.getRepresentValue({interval:i});a||=r.getValueState(o);var s=e(o,a);i[0]===-1/0?n[0]=s:i[1]===1/0?n[1]=s:t.push({value:i[0],color:s},{value:i[1],color:s})}var a=this._pieceList.slice();if(!a.length)a.push({interval:[-1/0,1/0]});else{var o=a[0].interval[0];o!==-1/0&&a.unshift({interval:[-1/0,o]}),o=a[a.length-1].interval[1],o!==1/0&&a.push({interval:[o,1/0]})}var s=-1/0;return z(a,function(e){var t=e.interval;t&&(t[0]>s&&i([s,t[0]],`outOfRange`),i(t.slice()),s=t[1])},this),{stops:t,outerColors:n}},t.type=`visualMap.piecewise`,t.defaultOption=yg(iI.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:`auto`,itemWidth:20,itemHeight:14,itemSymbol:`roundRect`,pieces:null,categories:null,splitNumber:5,selectedMode:`multiple`,itemGap:10,hoverLink:!0}),t}(iI),PI={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),r=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var a=(r[1]-r[0])/i;+a.toFixed(n)!==a&&n<5;)n++;t.precision=n,a=+a.toFixed(n),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o<i;s+=a,o++){var c=o===i-1?r[1]:s+a;e.push({interval:[s,c],close:[1,1]})}t.maxOpen&&e.push({interval:[r[1],1/0],close:[0,0]}),Pc(e),z(e,function(e,t){e.index=t,e.text=this.formatValueText(e.interval)},this)},categories:function(e){var t=this.option;z(t.categories,function(t){e.push({text:this.formatValueText(t,!0),value:t})},this),FI(t,e)},pieces:function(e){var t=this.option;z(t.pieces,function(t,n){G(t)||(t={value:t});var r={text:``,index:n};if(t.label!=null&&(r.text=t.label),t.hasOwnProperty(`value`)){var i=r.value=t.value;r.interval=[i,i],r.close=[1,1]}else{for(var a=r.interval=[],o=r.close=[0,0],s=[1,0,1],c=[-1/0,1/0],l=[],u=0;u<2;u++){for(var d=[[`gte`,`gt`,`min`],[`lte`,`lt`,`max`]][u],f=0;f<3&&a[u]==null;f++)a[u]=t[d[f]],o[u]=s[f],l[u]=f===2;a[u]??(a[u]=c[u])}l[0]&&a[1]===1/0&&(o[0]=0),l[1]&&a[0]===-1/0&&(o[1]=0),a[0]===a[1]&&o[0]&&o[1]&&(r.value=a[0])}r.visual=xN.retrieveVisuals(t),e.push(r)},this),FI(t,e),Pc(e),z(e,function(e){var t=e.close,n=[[`<`,`≤`][t[1]],[`>`,`≥`][t[0]]];e.text=e.text||this.formatValueText(e.value==null?e.interval:e.value,!1,n)},this)}};function FI(e,t){var n=e.inverse;(e.orient===`vertical`?!n:n)&&t.reverse()}var II=function(e){I(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get(`textGap`),r=t.textStyleModel,i=this._getItemAlign(),a=t.itemSize,o=this._getViewData(),s=o.endsText,c=_t(t.get(`showLabel`,!0),!s),l=!t.get(`selectedMode`);s&&this._renderEndsText(e,s[0],a,c,i),z(o.viewPieceList,function(o){var s=o.piece,u=new Pd;u.onclick=V(this._onItemClick,this,s),this._enableHoverLink(u,o.indexInModelPieceList);var d=t.getRepresentValue(s);if(this._createItemSymbol(u,d,[0,0,a[0],a[1]],l),c){var f=this.visualMapModel.getValueState(d),p=r.get(`align`)||i;u.add(new Bs({style:Wp(r,{x:p===`right`?-n:a[0]+n,y:a[1]/2,text:s.text,verticalAlign:r.get(`verticalAlign`)||`middle`,align:p,opacity:K(r.get(`opacity`),f===`outOfRange`?.5:1)}),silent:l}))}e.add(u)},this),s&&this._renderEndsText(e,s[1],a,c,i),K_(t.get(`orient`),e,t.get(`itemGap`)),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var n=this;e.on(`mouseover`,function(){return r(`highlight`)}).on(`mouseout`,function(){return r(`downplay`)});var r=function(e){var r=n.visualMapModel;r.option.hoverLink&&n.api.dispatchAction({type:e,batch:dI(r.findTargetDataIndices(t),r)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if(t.orient===`vertical`)return uI(e,this.api,e.itemSize);var n=t.align;return(!n||n===`auto`)&&(n=`left`),n},t.prototype._renderEndsText=function(e,t,n,r,i){if(t){var a=new Pd,o=this.visualMapModel.textStyleModel;a.add(new Bs({style:Wp(o,{x:r?i===`right`?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:`middle`,align:r?i:`center`,text:t})})),e.add(a)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=B(e.getPieceList(),function(e,t){return{piece:e,indexInModelPieceList:t}}),n=e.get(`text`),r=e.get(`orient`),i=e.get(`inverse`);return(r===`horizontal`?i:!i)?t.reverse():n&&=n.slice().reverse(),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n,r){var i=wy(this.getControllerVisual(t,`symbol`),n[0],n[1],n[2],n[3],this.getControllerVisual(t,`color`));i.silent=r,e.add(i)},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,r=n.selectedMode;if(r){var i=L(n.selected),a=t.getSelectedMapKey(e);r===`single`||r===!0?(i[a]=!0,z(i,function(e,t){i[t]=t===a})):i[a]=!i[a],this.api.dispatchAction({type:`selectDataRange`,from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}},t.type=`visualMap.piecewise`,t}(cI);function LI(e){e.registerComponentModel(NI),e.registerComponentView(II),jI(e)}function RI(e){rM(MI),rM(LI)}var zI={label:{enabled:!0},decal:{show:!1}},BI=_l(),VI=_l(),HI=Gl(UI);function UI(e,t){var n=e.getModel(`aria`);if(!n.get(`enabled`))return;var r=VI(e).scope||(VI(e).scope={}),i=L(zI);Ze(i.label,e.getLocaleModel().get(`aria`),!1),Ze(n.option,i,!1),a(),o();function a(){if(n.getModel(`decal`).get(`show`)){var t=q();e.eachSeries(function(e){e.isColorBySeries()||(BI(e).scope=t.get(e.type)||t.set(e.type,{}))}),e.eachSeries(function(t){if(U(t.enableAriaDecal)){t.enableAriaDecal();return}var n=t.getData();if(t.isColorBySeries()){var i=uv(t.ecModel,t.name,r,e.getSeriesCount()),a=n.getVisual(`decal`);n.setVisual(`decal`,u(a,i))}else{var o=t.getRawData(),s={},c=BI(t).scope;n.each(function(e){var t=n.getRawIndex(e);s[t]=e});var l=o.count();o.each(function(e){var r=s[e],i=o.getName(e)||e+``,a=uv(t.ecModel,i,c,l),d=n.getItemVisual(r,`decal`);n.setItemVisual(r,`decal`,u(d,a))})}function u(e,t){var n=e?R(R({},t),e):t;return n.dirty=!0,n}})}}function o(){var r=t.getZr().dom;if(r){var i=e.getLocaleModel().get(`aria`),a=n.getModel(`label`);if(a.option=$e(a.option,i),a.get(`enabled`)){if(r.setAttribute(`role`,`img`),a.get(`description`))r.setAttribute(`aria-label`,a.get(`description`));else{var o=e.getSeriesCount(),u=a.get([`data`,`maxCount`])||10,d=a.get([`series`,`maxCount`])||10,f=Math.min(o,d),p;if(!(o<1)){var m=c();p=m?s(a.get([`general`,`withTitle`]),{title:m}):a.get([`general`,`withoutTitle`]);var h=[],g=o>1?a.get([`series`,`multiple`,`prefix`]):a.get([`series`,`single`,`prefix`]);p+=s(g,{seriesCount:o}),e.eachSeries(function(e,t){if(t<f){var n=void 0,r=e.get(`name`)?`withName`:`withoutName`;n=o>1?a.get([`series`,`multiple`,r]):a.get([`series`,`single`,r]),n=s(n,{seriesId:e.seriesIndex,seriesName:e.get(`name`),seriesType:l(e.subType)});var i=e.getData();if(i.count()>u){var c=a.get([`data`,`partialData`]);n+=s(c,{displayCnt:u})}else n+=a.get([`data`,`allData`]);for(var d=a.get([`data`,`separator`,`middle`]),p=a.get([`data`,`separator`,`end`]),m=a.get([`data`,`excludeDimensionId`]),g=[],_=0;_<i.count();_++)if(_<u){var v=i.getName(_),y=m?at(i.getValues(_),function(e,t){return et(m,t)===-1}):i.getValues(_),b=a.get([`data`,v?`withName`:`withoutName`]);g.push(s(b,{name:v,value:y.join(d)}))}n+=g.join(d)+p,h.push(n)}});var _=a.getModel([`series`,`multiple`,`separator`]),v=_.get(`middle`),y=_.get(`end`);p+=h.join(v)+y,r.setAttribute(`aria-label`,p)}}}}}function s(e,t){if(!W(e))return e;var n=e;return z(t,function(e,t){n=n.replace(RegExp(`\\{\\s*`+t+`\\s*\\}`,`g`),e)}),n}function c(){var t=e.get(`title`);return t&&t.length&&(t=t[0]),t&&t.text}function l(t){var n=e.getLocaleModel().get([`series`,`typeNames`]);return n[t]||n.chart}}function WI(e){if(e&&e.aria){var t=e.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},z([`description`,`general`,`series`,`data`],function(e){t[e]!=null&&(t.label[e]=t[e])})}}function GI(e){e.registerPreprocessor(WI),e.registerVisual(e.PRIORITY.VISUAL.ARIA,HI)}var KI=function(e){I(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`dataset`,t}return t.prototype.init=function(t,n,r){e.prototype.init.call(this,t,n,r),this._sourceManager=new jv(this),Mv(this)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),Mv(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type=`dataset`,t.defaultOption={seriesLayoutBy:tu},t}(av),qI=function(e){I(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`dataset`,t}return t.type=`dataset`,t}(IO);function JI(e){e.registerComponentModel(KI),e.registerComponentView(qI)}var YI=Math.sin,XI=Math.cos,ZI=Math.PI,QI=Math.PI*2,$I=180/ZI,eL=function(){function e(){}return e.prototype.reset=function(e){this._start=!0,this._d=[],this._str=``,this._p=10**(e||4)},e.prototype.moveTo=function(e,t){this._add(`M`,e,t)},e.prototype.lineTo=function(e,t){this._add(`L`,e,t)},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){this._add(`C`,e,t,n,r,i,a)},e.prototype.quadraticCurveTo=function(e,t,n,r){this._add(`Q`,e,t,n,r)},e.prototype.arc=function(e,t,n,r,i,a){this.ellipse(e,t,n,n,0,r,i,a)},e.prototype.ellipse=function(e,t,n,r,i,a,o,s){var c=o-a,l=!s,u=Math.abs(c),d=Zi(u-QI)||(l?c>=QI:-c>=QI),f=c>0?c%QI:c%QI+QI,p=!1;p=d?!0:!Zi(u)&&f>=ZI==!!l;var m=e+n*XI(a),h=t+r*YI(a);this._start&&this._add(`M`,m,h);var g=Math.round(i*$I);if(d){var _=1/this._p,v=(l?1:-1)*(QI-_);this._add(`A`,n,r,g,1,+l,e+n*XI(a+v),t+r*YI(a+v)),_>.01&&this._add(`A`,n,r,g,0,+l,m,h)}else{var y=e+n*XI(o),b=t+r*YI(o);this._add(`A`,n,r,g,+p,+l,y,b)}},e.prototype.rect=function(e,t,n,r){this._add(`M`,e,t),this._add(`l`,n,0),this._add(`l`,0,r),this._add(`l`,-n,0),this._add(`Z`)},e.prototype.closePath=function(){this._d.length>0&&this._add(`Z`)},e.prototype._add=function(e,t,n,r,i,a,o,s,c){for(var l=[],u=this._p,d=1;d<arguments.length;d++){var f=arguments[d];if(isNaN(f)){this._invalid=!0;return}l.push(Math.round(f*u)/u)}this._d.push(e+l.join(` `)),this._start=e===`Z`},e.prototype.generateStr=function(){this._str=this._invalid?``:this._d.join(``),this._d=[]},e.prototype.getStr=function(){return this._str},e}(),tL=`none`,nL=Math.round;function rL(e){var t=e.fill;return t!=null&&t!==tL}function iL(e){var t=e.stroke;return t!=null&&t!==tL}var aL=[`lineCap`,`miterLimit`,`lineJoin`],oL=B(aL,function(e){return`stroke-`+e.toLowerCase()});function sL(e,t,n,r){var i=t.opacity==null?1:t.opacity;if(n instanceof Ds)e(`opacity`,i);else{if(rL(t)){var a=Yi(t.fill);e(`fill`,a.color);var o=t.fillOpacity==null?a.opacity*i:t.fillOpacity*a.opacity*i;(r||o<1)&&e(`fill-opacity`,o)}else e(`fill`,tL);if(iL(t)){var s=Yi(t.stroke);e(`stroke`,s.color);var c=t.strokeNoScale?n.getLineScale():1,l=c?(t.lineWidth||0)/c:0,u=t.strokeOpacity==null?s.opacity*i:t.strokeOpacity*s.opacity*i,d=t.strokeFirst;if((r||l!==1)&&e(`stroke-width`,l),(r||d)&&e(`paint-order`,d?`stroke`:`fill`),(r||u<1)&&e(`stroke-opacity`,u),t.lineDash){var f=zk(n),p=f[0],m=f[1];p&&(m=nL(m||0),e(`stroke-dasharray`,p.join(`,`)),(m||r)&&e(`stroke-dashoffset`,m))}else r&&e(`stroke-dasharray`,tL);for(var h=0;h<aL.length;h++){var g=aL[h];if(r||t[g]!==vs[g]){var _=t[g]||vs[g];_&&e(oL[h],_)}}}else r&&e(`stroke`,tL)}}var cL=`http://www.w3.org/2000/svg`,lL=`http://www.w3.org/1999/xlink`,uL=`http://www.w3.org/2000/xmlns/`,dL=`http://www.w3.org/XML/1998/namespace`,fL=`ecmeta_`;function pL(e){return document.createElementNS(cL,e)}function mL(e,t,n,r,i){return{tag:e,attrs:n||{},children:r,text:i,key:t}}function hL(e,t){var n=[];if(t)for(var r in t){var i=t[r],a=r;i!==!1&&(i!==!0&&i!=null&&(a+=`="`+i+`"`),n.push(a))}return`<`+e+` `+n.join(` `)+`>`}function gL(e){return`</`+e+`>`}function _L(e,t){t||={};var n=t.newline?`
30
+ `:``;function r(e){var t=e.children,i=e.tag,a=e.attrs,o=e.text;return hL(i,a)+(i===`style`?o||``:Ng(o))+(t?``+n+B(t,function(e){return r(e)}).join(n)+n:``)+gL(i)}return r(e)}function vL(e,t,n){n||={};var r=n.newline?`
31
+ `:``,i=` {`+r,a=r+`}`,o=B(st(e),function(t){return t+i+B(st(e[t]),function(n){return n+`:`+e[t][n]+`;`}).join(r)+a}).join(r),s=B(st(t),function(e){return`@keyframes `+e+i+B(st(t[e]),function(n){return n+i+B(st(t[e][n]),function(r){var i=t[e][n][r];return r===`d`&&(i=`path("`+i+`")`),r+`:`+i+`;`}).join(r)+a}).join(r)+a}).join(r);return!o&&!s?``:[`<![CDATA[`,o,s,`]]>`].join(r)}function yL(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function bL(e,t,n,r){return mL(`svg`,`root`,{width:e,height:t,xmlns:cL,"xmlns:xlink":lL,version:`1.1`,baseProfile:`full`,viewBox:r?`0 0 `+e+` `+t:!1},n)}var xL=0;function SL(){return xL++}var CL={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`},wL=`transform-origin`;function TL(e,t,n){var r=R({},e.shape);R(r,t),e.buildPath(n,r);var i=new eL;return i.reset(fa(e)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function EL(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[wL]=n+`px `+r+`px`)}var DL={fill:`fill`,opacity:`opacity`,lineWidth:`stroke-width`,lineDashOffset:`stroke-dashoffset`};function OL(e,t){var n=t.zrId+`-ani-`+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function kL(e,t,n){var r=e.shape.paths,i={},a,o;if(z(r,function(e){var t=yL(n.zrId);t.animation=!0,jL(e,{},t,!0);var r=t.cssAnims,s=t.cssNodes,c=st(r),l=c.length;if(l){o=c[l-1];var u=r[o];for(var d in u){var f=u[d];i[d]=i[d]||{d:``},i[d].d+=f.d||``}for(var p in s){var m=s[p].animation;m.indexOf(o)>=0&&(a=m)}}}),a){t.d=!1;var s=OL(i,n);return a.replace(o,s)}}function AL(e){return W(e)?CL[e]?`cubic-bezier(`+CL[e]+`)`:xi(e)?e:``:``}function jL(e,t,n,r){var i=e.animators,a=i.length,o=[];if(e instanceof bf){var s=kL(e,t,n);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var c={},l=0;l<a;l++){var u=i[l],d=[u.getMaxTime()/1e3+`s`],f=AL(u.getClip().easing),p=u.getDelay();f?d.push(f):d.push(`linear`),p&&d.push(p/1e3+`s`),u.getLoop()&&d.push(`infinite`);var m=d.join(` `);c[m]=c[m]||[m,[]],c[m][1].push(u)}function h(i){var a=i[1],o=a.length,s={},c={},l={},u=`animation-timing-function`;function d(e,t,n){for(var r=e.getTracks(),i=e.getMaxTime(),a=0;a<r.length;a++){var o=r[a];if(o.needsAnimate()){var s=o.keyframes,c=o.propName;if(n&&(c=n(c)),c)for(var l=0;l<s.length;l++){var d=s[l],f=Math.round(d.time/i*100)+`%`,p=AL(d.easing),m=d.rawValue;(W(m)||dt(m))&&(t[f]=t[f]||{},t[f][c]=d.rawValue,p&&(t[f][u]=p))}}}}for(var f=0;f<o;f++){var p=a[f],m=p.targetName;m?m===`shape`&&d(p,c):!r&&d(p,s)}for(var h in s){var g={};qr(g,e),R(g,s[h]);var _=pa(g),v=s[h][u];l[h]=_?{transform:_}:{},EL(l[h],g),v&&(l[h][u]=v)}var y,b=!0;for(var h in c){l[h]=l[h]||{};var x=!y,v=c[h][u];x&&(y=new Xo);var S=y.len();y.reset(),l[h].d=TL(e,c[h],y);var C=y.len();if(!x&&S!==C){b=!1;break}v&&(l[h][u]=v)}if(!b)for(var h in l)delete l[h].d;if(!r)for(var f=0;f<o;f++){var p=a[f],m=p.targetName;m===`style`&&d(p,l,function(e){return DL[e]})}for(var w=st(l),T=!0,E,f=1;f<w.length;f++){var D=w[f-1],O=w[f];if(l[D][wL]!==l[O][wL]){T=!1;break}E=l[D][wL]}if(T&&E){for(var h in l)l[h][wL]&&delete l[h][wL];t[wL]=E}if(at(w,function(e){return st(l[e]).length>0}).length)return OL(l,n)+` `+i[0]+` both`}for(var g in c){var s=h(c[g]);s&&o.push(s)}if(o.length){var _=n.zrId+`-cls-`+SL();n.cssNodes[`.`+_]={animation:o.join(`,`)},t.class=_}}function ML(e,t,n){if(!e.ignore){if(e.isSilent()){var r={"pointer-events":`none`};NL(r,t,n,!0)}else{var i=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},a=i.fill;if(!a){var o=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,c=e.currentStates.indexOf(`select`)>=0&&s||o;c&&(a=qi(c))}var l=i.lineWidth;if(l){var u=!i.strokeNoScale&&e.transform?e.transform[0]:1;l/=u}var r={cursor:`pointer`};a&&(r.fill=a),i.stroke&&(r.stroke=i.stroke),l&&(r[`stroke-width`]=l),NL(r,t,n,!0)}}}function NL(e,t,n,r){var i=JSON.stringify(e),a=n.cssStyleCache[i];a||(a=n.zrId+`-cls-`+SL(),n.cssStyleCache[i]=a,n.cssNodes[`.`+a+(r?`:hover`:``)]=e),t.class=t.class?t.class+` `+a:a}var PL=Math.round;function FL(e){return e&&W(e.src)}function IL(e){return e&&U(e.toDataURL)}function LL(e,t,n,r){sL(function(i,a){var o=i===`fill`||i===`stroke`;o&&ua(a)?QL(t,e,i,r):o&&sa(a)?$L(n,e,i,r):e[i]=a,o&&r.ssr&&a===`none`&&(e[`pointer-events`]=`visible`)},t,n,!1),ZL(n,e,r)}function RL(e,t){var n=LD(t);n&&(n.each(function(t,n){t!=null&&(e[(`ecmeta_`+n).toLowerCase()]=t+``)}),t.isSilent()&&(e[fL+`silent`]=`true`))}function zL(e){return Zi(e[0]-1)&&Zi(e[1])&&Zi(e[2])&&Zi(e[3]-1)}function BL(e){return Zi(e[4])&&Zi(e[5])}function VL(e,t,n){if(t&&!(BL(t)&&zL(t))){var r=n?10:1e4;e.transform=zL(t)?`translate(`+PL(t[4]*r)/r+` `+PL(t[5]*r)/r+`)`:ea(t)}}function HL(e,t,n){for(var r=e.points,i=[],a=0;a<r.length;a++)i.push(PL(r[a][0]*n)/n),i.push(PL(r[a][1]*n)/n);t.points=i.join(` `)}function UL(e){return!e.smooth}function WL(e){var t=B(e,function(e){return typeof e==`string`?[e,e]:e});return function(e,n,r){for(var i=0;i<t.length;i++){var a=t[i],o=e[a[0]];o!=null&&(n[a[1]]=PL(o*r)/r)}}}var GL={circle:[WL([`cx`,`cy`,`r`])],polyline:[HL,UL],polygon:[HL,UL]};function KL(e){for(var t=e.animators,n=0;n<t.length;n++)if(t[n].targetName===`shape`)return!0;return!1}function qL(e,t){var n=e.style,r=e.shape,i=GL[e.type],a={},o=t.animation,s=`path`,c=e.style.strokePercent,l=t.compress&&fa(e)||4;if(i&&!t.willUpdate&&(!i[1]||i[1](r))&&!(o&&KL(e))&&!(c<1)){s=e.type;var u=10**l;i[0](r,a,u)}else{var d=!e.path||e.shapeChanged();e.path||e.createPathProxy();var f=e.path;d&&(f.beginPath(),e.buildPath(f,e.shape),e.pathUpdated());var p=f.getVersion(),m=e,h=m.__svgPathBuilder;(m.__svgPathVersion!==p||!h||c!==m.__svgPathStrokePercent)&&(h||=m.__svgPathBuilder=new eL,h.reset(l),f.rebuildPath(h,c),h.generateStr(),m.__svgPathVersion=p,m.__svgPathStrokePercent=c),a.d=h.getStr()}return VL(a,e.transform),LL(a,n,e,t),RL(a,e),t.animation&&jL(e,a,t),t.emphasis&&ML(e,a,t),mL(s,e.id+``,a)}function JL(e,t){var n=e.style,r=n.image;if(r&&!W(r)&&(FL(r)?r=r.src:IL(r)&&(r=r.toDataURL())),r){var i=n.x||0,a=n.y||0,o=n.width,s=n.height,c={href:r,width:o,height:s};return i&&(c.x=i),a&&(c.y=a),VL(c,e.transform),LL(c,n,e,t),RL(c,e),t.animation&&jL(e,c,t),mL(`image`,e.id+``,c)}}function YL(e,t){var n=e.style,r=n.text;if(r!=null&&(r+=``),!(!r||isNaN(n.x)||isNaN(n.y))){var i=n.font||`12px sans-serif`,a=n.x||0,o=na(n.y||0,fr(i),n.textBaseline),s={"dominant-baseline":`central`,"text-anchor":ta[n.textAlign]||n.textAlign};if(Ks(n)){var c=``,l=n.fontStyle,u=Ws(n.fontSize);if(!parseFloat(u))return;var d=n.fontFamily||`sans-serif`,f=n.fontWeight;c+=`font-size:`+u+`;font-family:`+d+`;`,l&&l!==`normal`&&(c+=`font-style:`+l+`;`),f&&f!==`normal`&&(c+=`font-weight:`+f+`;`),s.style=c}else s.style=`font: `+i;return r.match(/\s/)&&(s[`xml:space`]=`preserve`),a&&(s.x=a),o&&(s.y=o),VL(s,e.transform),LL(s,n,e,t),RL(s,e),t.animation&&jL(e,s,t),mL(`text`,e.id+``,s,void 0,r)}}function XL(e,t){if(e instanceof xs)return qL(e,t);if(e instanceof Ds)return JL(e,t);if(e instanceof Cs)return YL(e,t)}function ZL(e,t,n){var r=e.style;if(ra(r)){var i=ia(e),a=n.shadowCache,o=a[i];if(!o){var s=e.getGlobalScale(),c=s[0],l=s[1];if(!c||!l)return;var u=r.shadowOffsetX||0,d=r.shadowOffsetY||0,f=r.shadowBlur,p=Yi(r.shadowColor),m=p.opacity,h=p.color,g=f/2/c,_=f/2/l,v=g+` `+_;o=n.zrId+`-s`+n.shadowIdx++,n.defs[o]=mL(`filter`,o,{id:o,x:`-100%`,y:`-100%`,width:`300%`,height:`300%`},[mL(`feDropShadow`,``,{dx:u/c,dy:d/l,stdDeviation:v,"flood-color":h,"flood-opacity":m})]),a[i]=o}t.filter=da(o)}}function QL(e,t,n,r){var i=e[n],a,o={gradientUnits:i.global?`userSpaceOnUse`:`objectBoundingBox`};if(ca(i))a=`linearGradient`,o.x1=i.x,o.y1=i.y,o.x2=i.x2,o.y2=i.y2;else if(la(i))a=`radialGradient`,o.cx=K(i.x,.5),o.cy=K(i.y,.5),o.r=K(i.r,.5);else return;for(var s=i.colorStops,c=[],l=0,u=s.length;l<u;++l){var d=$i(s[l].offset)*100+`%`,f=s[l].color,p=Yi(f),m=p.color,h=p.opacity,g={offset:d};g[`stop-color`]=m,h<1&&(g[`stop-opacity`]=h),c.push(mL(`stop`,l+``,g))}var _=_L(mL(a,``,o,c)),v=r.gradientCache,y=v[_];y||(y=r.zrId+`-g`+r.gradientIdx++,v[_]=y,o.id=y,r.defs[y]=mL(a,y,o,c)),t[n]=da(y)}function $L(e,t,n,r){var i=e.style[n],a=e.getBoundingRect(),o={},s=i.repeat,c=s===`no-repeat`,l=s===`repeat-x`,u=s===`repeat-y`,d;if(aa(i)){var f=i.imageWidth,p=i.imageHeight,m=void 0,h=i.image;if(W(h)?m=h:FL(h)?m=h.src:IL(h)&&(m=h.toDataURL()),typeof Image>`u`){var g=`Image width/height must been given explictly in svg-ssr renderer.`;xt(f,g),xt(p,g)}else if(f==null||p==null){var _=function(e,t){if(e){var n=e.elm,r=f||t.width,i=p||t.height;e.tag===`pattern`&&(l?(i=1,r/=a.width):u&&(r=1,i/=a.height)),e.attrs.width=r,e.attrs.height=i,n&&(n.setAttribute(`width`,r),n.setAttribute(`height`,i))}},v=on(m,null,e,function(e){c||_(S,e),_(d,e)});v&&v.width&&v.height&&(f||=v.width,p||=v.height)}d=mL(`image`,`img`,{href:m,width:f,height:p}),o.width=f,o.height=p}else i.svgElement&&(d=L(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(d){var y,b;c?y=b=1:l?(b=1,y=o.width/a.width):u?(y=1,b=o.height/a.height):o.patternUnits=`userSpaceOnUse`,y!=null&&!isNaN(y)&&(o.width=y),b!=null&&!isNaN(b)&&(o.height=b);var x=pa(i);x&&(o.patternTransform=x);var S=mL(`pattern`,``,o,[d]),C=_L(S),w=r.patternCache,T=w[C];T||(T=r.zrId+`-p`+r.patternIdx++,w[C]=T,o.id=T,S=r.defs[T]=mL(`pattern`,T,o,[d])),t[n]=da(T)}}function eR(e,t,n){var r=n.clipPathCache,i=n.defs,a=r[e.id];if(!a){a=n.zrId+`-c`+n.clipPathIdx++;var o={id:a};r[e.id]=a,i[a]=mL(`clipPath`,a,o,[qL(e,n)])}t[`clip-path`]=da(a)}function tR(e){return document.createTextNode(e)}function nR(e,t,n){e.insertBefore(t,n)}function rR(e,t){e.removeChild(t)}function iR(e,t){e.appendChild(t)}function aR(e){return e.parentNode}function oR(e){return e.nextSibling}function sR(e,t){e.textContent=t}var cR=58,lR=120,uR=mL(``,``);function dR(e){return e===void 0}function fR(e){return e!==void 0}function pR(e,t,n){for(var r={},i=t;i<=n;++i){var a=e[i].key;a!==void 0&&(r[a]=i)}return r}function mR(e,t){var n=e.key===t.key;return e.tag===t.tag&&n}function hR(e){var t,n=e.children,r=e.tag;if(fR(r)){var i=e.elm=pL(r);if(vR(uR,e),H(n))for(t=0;t<n.length;++t){var a=n[t];a!=null&&iR(i,hR(a))}else fR(e.text)&&!G(e.text)&&iR(i,tR(e.text))}else e.elm=tR(e.text);return e.elm}function gR(e,t,n,r,i){for(;r<=i;++r){var a=n[r];a!=null&&nR(e,hR(a),t)}}function _R(e,t,n,r){for(;n<=r;++n){var i=t[n];i!=null&&(fR(i.tag)?rR(aR(i.elm),i.elm):rR(e,i.elm))}}function vR(e,t){var n,r=t.elm,i=e&&e.attrs||{},a=t.attrs||{};if(i!==a){for(n in a){var o=a[n];i[n]!==o&&(o===!0?r.setAttribute(n,``):o===!1?r.removeAttribute(n):n===`style`?r.style.cssText=o:n.charCodeAt(0)===lR?n===`xmlns:xlink`||n===`xmlns`?r.setAttributeNS(uL,n,o):n.charCodeAt(3)===cR?r.setAttributeNS(dL,n,o):n.charCodeAt(5)===cR?r.setAttributeNS(lL,n,o):r.setAttribute(n,o):r.setAttribute(n,o))}for(n in i)n in a||r.removeAttribute(n)}}function yR(e,t,n){for(var r=0,i=0,a=t.length-1,o=t[0],s=t[a],c=n.length-1,l=n[0],u=n[c],d,f,p,m;r<=a&&i<=c;)o==null?o=t[++r]:s==null?s=t[--a]:l==null?l=n[++i]:u==null?u=n[--c]:mR(o,l)?(bR(o,l),o=t[++r],l=n[++i]):mR(s,u)?(bR(s,u),s=t[--a],u=n[--c]):mR(o,u)?(bR(o,u),nR(e,o.elm,oR(s.elm)),o=t[++r],u=n[--c]):mR(s,l)?(bR(s,l),nR(e,s.elm,o.elm),s=t[--a],l=n[++i]):(dR(d)&&(d=pR(t,r,a)),f=d[l.key],dR(f)?nR(e,hR(l),o.elm):(p=t[f],p.tag===l.tag?(bR(p,l),t[f]=void 0,nR(e,p.elm,o.elm)):nR(e,hR(l),o.elm)),l=n[++i]);(r<=a||i<=c)&&(r>a?(m=n[c+1]==null?null:n[c+1].elm,gR(e,m,n,i,c)):_R(e,t,r,a))}function bR(e,t){var n=t.elm=e.elm,r=e.children,i=t.children;e!==t&&(vR(e,t),dR(t.text)?fR(r)&&fR(i)?r!==i&&yR(n,r,i):fR(i)?(fR(e.text)&&sR(n,``),gR(n,null,i,0,i.length-1)):fR(r)?_R(n,r,0,r.length-1):fR(e.text)&&sR(n,``):e.text!==t.text&&(fR(r)&&_R(n,r,0,r.length-1),sR(n,t.text)))}function xR(e,t){if(mR(e,t))bR(e,t);else{var n=e.elm,r=aR(n);hR(t),r!==null&&(nR(r,t.elm,oR(n)),_R(r,[e],0,0))}return t}var SR=0,CR=function(){function e(e,t,n){if(this.type=`svg`,this.configLayer=wR(`configLayer`),this.storage=t,this._opts=n=R({},n),this.root=e,this._id=`zr`+SR++,this._oldVNode=bL(n.width,n.height),e&&!n.ssr){var r=this._viewport=document.createElement(`div`);r.style.cssText=`position:relative;overflow:hidden`;var i=this._svgDom=this._oldVNode.elm=pL(`svg`);vR(null,this._oldVNode),r.appendChild(i),e.appendChild(r)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style=`position:absolute;left:0;top:0;user-select:none`,xR(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return XL(e,yL(this._id))},e.prototype.renderToVNode=function(e){e||={};var t=this.storage.getDisplayList(!0),n=this._width,r=this._height,i=yL(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var a=[],o=this._bgVNode=TR(n,r,this._backgroundColor,i);o&&a.push(o);var s=e.compress?null:this._mainVNode=mL(`g`,`main`,{},[]);this._paintList(t,i,s?s.children:a),s&&a.push(s);var c=B(st(i.defs),function(e){return i.defs[e]});if(c.length&&a.push(mL(`defs`,`defs`,{},c)),e.animation){var l=vL(i.cssNodes,i.cssAnims,{newline:!0});if(l){var u=mL(`style`,`stl`,{},[],l);a.push(u)}}return bL(n,r,a,e.useViewBox)},e.prototype.renderToString=function(e){return e||={},_L(this.renderToVNode({animation:K(e.cssAnimation,!0),emphasis:K(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:K(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,n){for(var r=e.length,i=[],a=0,o,s,c=0,l=0;l<r;l++){var u=e[l];if(!u.invisible){var d=u.__clipPaths,f=d&&d.length||0,p=s&&s.length||0,m=void 0;for(m=Math.max(f-1,p-1);m>=0&&!(d&&s&&d[m]===s[m]);m--);for(var h=p-1;h>m;h--)a--,o=i[a-1];for(var g=m+1;g<f;g++){var _={};eR(d[g],_,t);var v=mL(`g`,`clip-g-`+c++,_,[]);(o?o.children:n).push(v),i[a++]=v,o=v}s=d;var y=XL(u,t);y&&(o?o.children:n).push(y)}}},e.prototype.resize=function(e,t){var n=this._opts,r=this.root,i=this._viewport;if(e!=null&&(n.width=e),t!=null&&(n.height=t),r&&i&&(i.style.display=`none`,e=Lk(r,0,n),t=Lk(r,1,n),i.style.display=``),this._width!==e||this._height!==t){if(this._width=e,this._height=t,i){var a=i.style;a.width=e+`px`,a.height=t+`px`}if(sa(this._backgroundColor))this.refresh();else{var o=this._svgDom;o&&(o.setAttribute(`width`,e),o.setAttribute(`height`,t));var s=this._bgVNode&&this._bgVNode.elm;s&&(s.setAttribute(`width`,e),s.setAttribute(`height`,t))}}},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(e){var t=this.renderToString(),n=`data:image/svg+xml;`;return e?(t=ma(t),t&&n+`base64,`+t):n+`charset=UTF-8,`+encodeURIComponent(t)},e}();function wR(e){return function(){}}function TR(e,t,n,r){var i;if(n&&n!==`none`){if(i=mL(`rect`,`bg`,{width:e,height:t,x:`0`,y:`0`}),ua(n))QL({fill:n},i.attrs,`fill`,r);else if(sa(n))$L({style:{fill:n},dirty:Nt,getBoundingRect:function(){return{width:e,height:t}}},i.attrs,`fill`,r);else{var a=Yi(n),o=a.color,s=a.opacity;i.attrs.fill=o,s<1&&(i.attrs[`fill-opacity`]=s)}}return i}function ER(e){e.registerPainter(`svg`,CR)}rM([MT,$x,_N,vE,WN,GI,JI,zP,YF,vF,RI,ER]);function DR(e,t,n,r,i,a,o){let s=Lj(e,r,{renderer:`svg`}),{columns:c,rows:l}=n,u=c.slice(1),d=u.length>1||t.color!==void 0||Array.isArray(t.y),f=t.stack===`percent`,p=t.stack===`normal`||f?`total`:void 0,m=t.horizontal===!0,h=t.crossfilter!==!1&&o?.onSelect!==void 0,g=o?.selected??[],_=g.length>0?new Set(g):void 0,v=l.map(([e])=>i.formatPeriod(e??null,t.grain)),y=e=>t.color===void 0?a?.[u[e]?.name??``]:a?.[x(t)[0]??``],b=f?l.map(e=>e.slice(1).reduce((e,t)=>typeof t==`number`?e+Math.abs(t):e,0)):void 0,S=u.map((e,n)=>({type:`bar`,name:t.color===void 0?MR(e.name):e.name,...p!==void 0&&{stack:p},...h&&{cursor:`pointer`},barMaxWidth:48,data:l.map((e,t)=>{let r=e[0]??null,i=e[n+1],a=typeof i==`number`?i:null;if(f&&a!==null&&b){let e=b[t]??0;a=e===0?0:a/e}return _?{value:a,itemStyle:{opacity:_.has(r)?1:.32}}:a})})),C=f?{format:`percent`}:y(0),w={type:`category`,data:v,...m&&{inverse:!0},axisLabel:m?{interval:0,hideOverlap:!0,width:120,overflow:`truncate`}:{interval:0,hideOverlap:!0,width:AR(e,l.length),overflow:`truncate`}},T={type:`value`,...f&&{max:1},axisLabel:{formatter:e=>i.formatAxis(e,C)}},E={animation:!1,...d&&{color:r.palette},aria:{enabled:!0,label:{description:jR(t,c,l,i,a)}},grid:m?{left:8,right:12,top:8,bottom:d?36:4,containLabel:!0}:{left:4,right:4,top:8,bottom:d?36:4},legend:{show:d,bottom:0,type:`scroll`},tooltip:{trigger:`axis`,axisPointer:{type:`shadow`},className:`chart-tooltip`,formatter:e=>kR(e,l,u,f,i,a,t)},xAxis:m?T:w,yAxis:m?w:T,series:S};if(s.setOption(E),h&&o?.onSelect){let e=o.onSelect;s.on(`click`,n=>{if(n.componentType!==`series`||typeof n.dataIndex!=`number`)return;let r=l[n.dataIndex];if(!r||t.limit!==void 0&&n.dataIndex===l.length-1&&r[0]===`Other`)return;let i=n.event?.event,a=!!(i?.shiftKey||i?.ctrlKey||i?.metaKey);e({tile:o.tileId,field:t.x,...t.grain!==void 0&&{grain:t.grain},values:[r[0]??null],additive:a})})}return{chart:s,resize(){m||s.setOption({xAxis:{axisLabel:{width:AR(e,l.length)}}}),s.resize()},dispose(){s.dispose()}}}function OR(e,t,n,r,i,a){let o=Lj(e,r,{renderer:`svg`}),{columns:s,rows:c}=n,l=s.slice(1),u=l.length>1||t.color!==void 0||Array.isArray(t.y),d=t.type===`area`&&t.stack===`percent`,f=t.type===`area`&&(t.stack===`normal`||d)?`total`:void 0,p=c.map(([e])=>i.formatPeriod(e??null,t.grain)),m=d?c.map(e=>e.slice(1).reduce((e,t)=>typeof t==`number`?e+Math.abs(t):e,0)):void 0,h=d?{format:`percent`}:a?.[x(t)[0]??``],g={animation:!1,...u&&{color:r.palette},aria:{enabled:!0,label:{description:jR(t,s,c,i,a)}},grid:{left:4,right:8,top:8,bottom:u?36:4},legend:{show:u,bottom:0,type:`scroll`},tooltip:{trigger:`axis`,className:`chart-tooltip`,formatter:e=>kR(e,c,l,d,i,a,t)},xAxis:{type:`category`,boundaryGap:!1,data:p,axisLabel:{hideOverlap:!0}},yAxis:{type:`value`,...d&&{max:1},scale:t.type===`line`,axisLabel:{formatter:e=>i.formatAxis(e,h)}},series:l.map((e,n)=>({type:`line`,name:t.color===void 0?MR(e.name):e.name,...f!==void 0&&{stack:f},connectNulls:!1,showSymbol:c.length<=24,...t.type===`area`&&{areaStyle:{opacity:.16}},data:c.map((e,t)=>{let r=e[n+1],i=typeof r==`number`?r:null;if(d&&i!==null&&m){let e=m[t]??0;i=e===0?0:i/e}return i})}))};return o.setOption(g),{chart:o,resize(){o.resize()},dispose(){o.dispose()}}}function kR(e,t,n,r,i,a,o){let s=Array.isArray(e)?e:[e],c=s[0],l=[NR(`chart-tooltip-label`,c?.name??``)],u=x(o)[0]??``,d=o.type!==`combo`&&o.color!==void 0;if(s.length===1&&n.length===1&&!r){let e=s[0],n=typeof c?.dataIndex==`number`?t[c.dataIndex]?.[1]:typeof e?.value==`number`?e.value:null,r=typeof n==`number`?n:null,o=a?.[u];return l.push(NR(`chart-tooltip-value`,i.formatValue(r,o))),l}for(let e of s){let o=e,s=o.seriesIndex??0,c=typeof o.dataIndex==`number`?t[o.dataIndex]?.[s+1]:o.value,f=typeof c==`number`?c:null,p=d?a?.[u]:a?.[n[s]?.name??``],m=i.formatValue(f,p);r&&typeof o.value==`number`&&(m=`${i.formatValue(o.value,{format:`percent`,decimals:1})} (${m})`);let h=document.createElement(`div`);h.className=`chart-tooltip-row`,h.append(NR(`chart-tooltip-name`,o.seriesName??``),NR(`chart-tooltip-value`,m)),l.push(h)}return l}function AR(e,t){let n=e.clientWidth/Math.max(1,t);return Math.max(48,Math.floor(n)-8)}function jR(e,t,n,r,i){let a=e.type===`bar`?`Bar`:e.type===`area`?`Area`:e.type===`combo`?`Combo`:`Line`,o=t.slice(1),s=x(e)[0]??``,c=e.type!==`combo`&&e.color!==void 0,l=n.map(t=>{let n=r.formatPeriod(t[0]??null,e.grain);if(o.length===1){let e=t[1],a=i?.[s];return`${n} ${typeof e==`number`?r.formatValue(e,a):`no value`}`}return`${n} (${o.map((e,n)=>{let a=t[n+1],o=c?i?.[s]:i?.[e.name],l=typeof a==`number`?r.formatValue(a,o):`no value`;return`${e.name} ${l}`}).join(`, `)})`});return`${a} chart of ${e.title}: ${l.join(`, `)}.`}function MR(e){let t=e.replace(/([a-z0-9])([A-Z])/g,`$1 $2`).replace(/_+/g,` `).trim().toLowerCase();return t.charAt(0).toUpperCase()+t.slice(1)}function NR(e,t){let n=document.createElement(`div`);return n.className=e,n.textContent=t,n}function PR(e,t,n,r,i,a,o){let s=Lj(e,i,{renderer:`svg`}),c=n.map(([e])=>a.formatPeriod(e,r)),l={animation:!1,aria:{enabled:!0,label:{description:`Sparkline for ${t}: ${n.map(([e,t])=>{let n=typeof t==`number`?a.formatValue(t,o):`no value`;return`${a.formatPeriod(e,r)} ${n}`}).join(`, `)}.`}},grid:{left:2,right:2,top:4,bottom:4},tooltip:{trigger:`axis`,confine:!0,className:`chart-tooltip`,formatter:e=>{let[t]=Array.isArray(e)?e:[e],n=typeof t?.value==`number`?t.value:null;return[NR(`chart-tooltip-label`,t?.name??``),NR(`chart-tooltip-value`,a.formatValue(n,o))]}},xAxis:{type:`category`,show:!1,boundaryGap:!1,data:c},yAxis:{type:`value`,show:!1,scale:!0},series:[{type:`line`,name:t,connectNulls:!1,showSymbol:!1,lineStyle:{width:1.75},areaStyle:{opacity:.14},data:n.map(([,e])=>e)}]};return s.setOption(l),{chart:s,resize(){s.resize()},dispose(){s.dispose()}}}function FR(e,t,n,r,i,a,o){let s=Lj(e,r,{renderer:`svg`}),{columns:c,rows:l}=n,u=c.slice(1),d=b(t.y),f=b(t.y2),p=t.crossfilter!==!1&&o?.onSelect!==void 0,m=o?.selected&&o.selected.length>0?new Set(o.selected):void 0,h=l.map(([e])=>i.formatPeriod(e??null,t.grain)),g=a?.[d[0]??``],_=a?.[f[0]??``],v=d.map((e,t)=>({type:`bar`,yAxisIndex:0,name:MR(e),...p&&{cursor:`pointer`},barMaxWidth:40,data:l.map(e=>{let n=e[0]??null,r=typeof e[t+1]==`number`?e[t+1]:null;return m?{value:r,itemStyle:{opacity:m.has(n)?1:.32}}:r})})),y=f.map((e,t)=>({type:`line`,yAxisIndex:1,name:MR(e),connectNulls:!1,showSymbol:l.length<=24,data:l.map(e=>{let n=e[1+d.length+t];return typeof n==`number`?n:null})})),x={animation:!1,color:r.palette,aria:{enabled:!0,label:{description:jR(t,c,l,i,a)}},grid:{left:4,right:8,top:8,bottom:36,containLabel:!0},legend:{show:!0,bottom:0,type:`scroll`},tooltip:{trigger:`axis`,axisPointer:{type:`shadow`},className:`chart-tooltip`,formatter:e=>kR(e,l,u,!1,i,a,t)},xAxis:{type:`category`,data:h,axisLabel:{interval:0,hideOverlap:!0,width:AR(e,l.length),overflow:`truncate`}},yAxis:[{type:`value`,axisLabel:{formatter:e=>i.formatAxis(e,g)}},{type:`value`,scale:!0,splitLine:{show:!1},axisLabel:{formatter:e=>i.formatAxis(e,_)}}],series:[...v,...y]};if(s.setOption(x),p&&o?.onSelect){let e=o.onSelect;s.on(`click`,n=>{if(n.componentType!==`series`||typeof n.dataIndex!=`number`)return;let r=l[n.dataIndex];if(!r)return;let i=n.event?.event;e({tile:o.tileId,field:t.x,...t.grain!==void 0&&{grain:t.grain},values:[r[0]??null],additive:!!(i?.shiftKey||i?.ctrlKey||i?.metaKey)})})}return{chart:s,resize(){s.setOption({xAxis:{axisLabel:{width:AR(e,l.length)}}}),s.resize()},dispose(){s.dispose()}}}function IR(e,t,n,r,i,a,o){let s=Lj(e,r,{renderer:`svg`}),{rows:c}=n,l=a?.[t.x],u=a?.[t.y],d=t.size===void 0?void 0:a?.[t.size],f=t.size===void 0?-1:3,p=t.color===void 0?-1:t.size===void 0?3:4,m=t.crossfilter!==!1&&o?.onSelect!==void 0,h=o?.selected&&o.selected.length>0?new Set(o.selected):void 0,g=1/0,_=-1/0;if(f!==-1)for(let e of c){let t=e[f];typeof t==`number`&&(t<g&&(g=t),t>_&&(_=t))}let v=e=>{if(f===-1)return 12;let t=e[f];if(typeof t!=`number`||!Number.isFinite(g))return 10;if(_<=g)return 18;let n=Math.max(0,(t-g)/(_-g));return Math.round(10+24*Math.sqrt(n))},y=(e,t)=>{let n=e[0]??null,r=h&&!h.has(n);return{value:[e[1],e[2],t],symbolSize:v(e),...r&&{itemStyle:{opacity:.28}}}},b,x=t.color!==void 0;if(p!==-1){let e=new Map;c.forEach((t,n)=>{let r=t[p],i=r==null?`(blank)`:String(r),a=e.get(i),o=y(t,n);a?a.push(o):e.set(i,[o])}),b=[...e.entries()].map(([e,t])=>({type:`scatter`,name:e,...m&&{cursor:`pointer`},data:t}))}else b=[{type:`scatter`,name:t.title,...m&&{cursor:`pointer`},data:c.map((e,t)=>y(e,t))}];let S=c.slice(0,30).map(e=>`${e[0]===null?`(blank)`:String(e[0])} (${i.formatValue(e[1],l)}, ${i.formatValue(e[2],u)})`),C={animation:!1,...x&&{color:r.palette},aria:{enabled:!0,label:{description:`Scatter chart of ${t.title}: ${S.join(`, `)}.`}},grid:{left:8,right:12,top:12,bottom:x?44:20,containLabel:!0},legend:{show:x,bottom:0,type:`scroll`},tooltip:{trigger:`item`,className:`chart-tooltip`,formatter:e=>{let n=Array.isArray(e)?e[0]:e,r=Array.isArray(n?.value)?n.value:[],a=typeof r[2]==`number`?r[2]:-1,o=c[a];if(!o)return[];let s=[NR(`chart-tooltip-label`,o[0]===null||o[0]===void 0?`(blank)`:String(o[0]))],m=(e,t)=>{let n=document.createElement(`div`);n.className=`chart-tooltip-row`,n.append(NR(`chart-tooltip-name`,e),NR(`chart-tooltip-value`,t)),s.push(n)};if(m(MR(t.x),i.formatValue(o[1],l)),m(MR(t.y),i.formatValue(o[2],u)),t.size!==void 0&&f!==-1&&m(MR(t.size),i.formatValue(typeof o[f]==`number`?o[f]:null,d)),t.color!==void 0&&p!==-1){let e=o[p];m(MR(t.color),e==null?`(blank)`:String(e))}return s}},xAxis:{type:`value`,scale:!0,axisLabel:{formatter:e=>i.formatAxis(e,l)}},yAxis:{type:`value`,scale:!0,axisLabel:{formatter:e=>i.formatAxis(e,u)}},series:b};if(s.setOption(C),m&&o?.onSelect){let e=o.onSelect;s.on(`click`,n=>{if(n.componentType!==`series`)return;let r=n.data?.value,i=Array.isArray(r)&&typeof r[2]==`number`?r[2]:-1,a=c[i];if(!a)return;let s=n.event?.event;e({tile:o.tileId,field:t.by,values:[a[0]??null],additive:!!(s?.shiftKey||s?.ctrlKey||s?.metaKey)})})}return{chart:s,resize(){s.resize()},dispose(){s.dispose()}}}function LR(e,t,n,r,i,a,o){let s=Lj(e,r,{renderer:`svg`}),{rows:c}=n,l=a?.[t.value],u=t.crossfilter!==!1&&o?.onSelect!==void 0,d=o?.selected&&o.selected.length>0?new Set(o.selected):void 0,f=c.reduce((e,t)=>e+(typeof t[1]==`number`?Math.max(0,t[1]):0),0),p=c.map(e=>`${i.formatPeriod(e[0]??null,t.grain)} ${typeof e[1]==`number`?i.formatValue(e[1],l):`no value`}`),m={animation:!1,color:r.palette,aria:{enabled:!0,label:{description:`Donut chart of ${t.title}: ${p.join(`, `)}.`}},legend:{show:!0,bottom:0,type:`scroll`},tooltip:{trigger:`item`,className:`chart-tooltip`,formatter:e=>{let n=Array.isArray(e)?e[0]:e,r=typeof n?.dataIndex==`number`?n.dataIndex:-1,a=c[r],o=a?i.formatPeriod(a[0]??null,t.grain):n?.name??``,s=a&&typeof a[1]==`number`?a[1]:null,u=s!==null&&f>0?` (${i.formatValue(Math.max(0,s)/f,{format:`percent`,decimals:1})})`:``;return[NR(`chart-tooltip-label`,o),NR(`chart-tooltip-value`,`${i.formatValue(s,l)}${u}`)]}},series:[{type:`pie`,name:t.title,radius:[`48%`,`74%`],center:[`50%`,`44%`],avoidLabelOverlap:!0,label:{show:!1},labelLine:{show:!1},itemStyle:{borderColor:r.tooltip.backgroundColor,borderWidth:1.5},...u&&{cursor:`pointer`},data:c.map(e=>{let n=e[0]??null,r=typeof e[1]==`number`?e[1]:0,a=d!==void 0&&!d.has(n);return{name:i.formatPeriod(n,t.grain),value:r,...a&&{itemStyle:{opacity:.32}}}})}]};if(s.setOption(m),u&&o?.onSelect){let e=o.onSelect;s.on(`click`,r=>{if(r.componentType!==`series`||typeof r.dataIndex!=`number`)return;let i=c[r.dataIndex];if(!i||n.truncatedSlices!==void 0&&r.dataIndex===c.length-1&&i[0]===`Other`)return;let a=r.event?.event;e({tile:o.tileId,field:t.by,...t.grain!==void 0&&{grain:t.grain},values:[i[0]??null],additive:!!(a?.shiftKey||a?.ctrlKey||a?.metaKey)})})}return{chart:s,resize(){s.resize()},dispose(){s.dispose()}}}function RR(e,t,n,r,i,a,o){let s=Lj(e,r,{renderer:`svg`}),{rows:c}=n,l=a?.[t.color],u=t.crossfilter!==!1&&o?.onSelectBatch!==void 0,d=o?.selectedX&&o.selectedX.length>0?new Set(o.selectedX):void 0,f=o?.selectedY&&o.selectedY.length>0?new Set(o.selectedY):void 0,p=d!==void 0||f!==void 0,m=[],h=[],g=new Map;for(let e of c){let t=e[0]??null;g.has(t)||(g.set(t,m.length),m.push(t));let n=e[1]??null;h.includes(n)||h.push(n)}let _=o?.orders?.[t.y];h.sort((e,t)=>{if(_){let n=_.findIndex(t=>t===e||String(t)===String(e)),r=_.findIndex(e=>e===t||String(e)===String(t));if(n!==-1&&r!==-1)return n-r;if(n!==-1)return-1;if(r!==-1)return 1}return e===t?0:e===null?1:t===null?-1:typeof e==`number`&&typeof t==`number`?e-t:typeof e==`number`?-1:typeof t==`number`?1:e<t?-1:1});let v=new Map(h.map((e,t)=>[e,t])),y=1/0,b=-1/0;for(let e of c){let t=e[2];typeof t==`number`&&(t<y&&(y=t),t>b&&(b=t))}Number.isFinite(y)||(y=0,b=1);let x=m.map(e=>i.formatPeriod(e,t.xGrain)),S=h.map(e=>i.formatPeriod(e,t.yGrain)),C=r.color[0]??`#2f6fde`,w=[.14,.34,.56,.78,1].map(e=>zR(C,e)),T=c.slice(0,30).map(e=>`${i.formatPeriod(e[0]??null,t.xGrain)} × ${i.formatPeriod(e[1]??null,t.yGrain)} ${i.formatValue(typeof e[2]==`number`?e[2]:null,l)}`).join(`, `),E={animation:!1,aria:{enabled:!0,label:{description:`Heatmap chart of ${t.title}: ${T}.`}},grid:{left:8,right:12,top:8,bottom:52,containLabel:!0},xAxis:{type:`category`,data:x,splitArea:{show:!1},axisLabel:{interval:0,hideOverlap:!0,width:AR(e,x.length),overflow:`truncate`}},yAxis:{type:`category`,data:S,splitArea:{show:!1},axisLabel:{interval:0,hideOverlap:!0,width:110,overflow:`truncate`}},visualMap:{type:`continuous`,min:y,max:b===y?y+1:b,calculable:!1,orient:`horizontal`,left:`center`,bottom:0,itemWidth:12,itemHeight:120,inRange:{color:w},textStyle:{color:r.legend.textStyle.color},formatter:e=>typeof e==`number`?i.formatAxis(e,l):String(e??``)},tooltip:{trigger:`item`,className:`chart-tooltip`,formatter:e=>{let n=Array.isArray(e)?e[0]:e,r=typeof n?.dataIndex==`number`?c[n.dataIndex]:void 0;if(!r)return[];let a=`${i.formatPeriod(r[0]??null,t.xGrain)} × ${i.formatPeriod(r[1]??null,t.yGrain)}`,o=typeof r[2]==`number`?r[2]:null;return[NR(`chart-tooltip-label`,a),NR(`chart-tooltip-value`,i.formatValue(o,l))]}},series:[{type:`heatmap`,name:t.title,...u&&{cursor:`pointer`},itemStyle:{borderColor:r.tooltip.backgroundColor,borderWidth:1},data:c.map(e=>{let t=e[0]??null,n=e[1]??null,r=typeof e[2]==`number`?e[2]:null,i=(!d||d.has(t))&&(!f||f.has(n)),a=p&&!i;return{value:[g.get(t)??0,v.get(n)??0,r],...a&&{itemStyle:{opacity:.28}}}})}]};if(s.setOption(E),u&&o?.onSelectBatch){let e=o.onSelectBatch;s.on(`click`,n=>{if(n.componentType!==`series`||typeof n.dataIndex!=`number`)return;let r=c[n.dataIndex];if(!r)return;let i=n.event?.event,a=!!(i?.shiftKey||i?.ctrlKey||i?.metaKey),s=[{tile:o.tileId,field:t.x,...t.xGrain!==void 0&&{grain:t.xGrain},values:[r[0]??null],additive:a}];(t.y!==t.x||t.yGrain!==t.xGrain)&&s.push({tile:o.tileId,field:t.y,...t.yGrain!==void 0&&{grain:t.yGrain},values:[r[1]??null],additive:a}),e(s)})}return{chart:s,resize(){s.setOption({xAxis:{axisLabel:{width:AR(e,x.length)}}}),s.resize()},dispose(){s.dispose()}}}function zR(e,t){let n=e.trim(),r=/^#([0-9a-f]{3}|[0-9a-f]{6})$/i.exec(n)?.[1];if(r){let e=r.length===3?r.replaceAll(/(.)/g,`$1$1`):r;return`rgba(${Number.parseInt(e.slice(0,2),16)}, ${Number.parseInt(e.slice(2,4),16)}, ${Number.parseInt(e.slice(4,6),16)}, ${t})`}let i=/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)/i.exec(n);return i?`rgba(${i[1]}, ${i[2]}, ${i[3]}, ${t})`:n}var BR=/^(\d{4})-(\d{2})-(\d{2})/;function VR(e=`en-US`,t=`USD`){let n=new Map,r=new Map,i=(t,r)=>{let i=n.get(t);return i||(i=new Intl.NumberFormat(e,r),n.set(t,i)),i},a=(t,n)=>{let i=r.get(t);return i||(i=new Intl.DateTimeFormat(e,{...n,timeZone:`UTC`}),r.set(t,i)),i};return{formatValue(e,n){if(e===null)return`—`;let r=Object.is(e,-0)?0:e,a=n?.format,o=n?.decimals,s=`v:${a??``}:${o??``}`;return i(s,UR(a,o,t)).format(r)},formatAxis(e,n){let r=Object.is(e,-0)?0:e,a=n?.format,o=`a:${a??``}`;return i(o,WR(a,t)).format(r)},formatDate(e){let t=HR(e);return t?a(`date`,{dateStyle:`medium`}).format(t):e},formatPeriod(e,t){if(e===null)return`(blank)`;if(t===void 0)return String(e);let n=String(e),r=BR.exec(n);if(!r)return n;let i=Number(r[1]),o=Number(r[2]),s=Number(r[3]),c=new Date(Date.UTC(i,o-1,s));switch(t){case`year`:return String(i);case`quarter`:return`Q${Math.floor((o-1)/3)+1} ${i}`;case`month`:return a(`month`,{month:`short`,year:`numeric`}).format(c);case`week`:case`day`:return a(`day`,{month:`short`,day:`numeric`,year:`numeric`}).format(c)}}}}function HR(e){let t=BR.exec(e);if(t)return new Date(Date.UTC(Number(t[1]),Number(t[2])-1,Number(t[3])))}function UR(e,t,n){let r=t===void 0?void 0:{minimumFractionDigits:t,maximumFractionDigits:t};switch(e){case void 0:case`number`:return r??{maximumFractionDigits:2};case`integer`:return r??{maximumFractionDigits:0};case`percent`:return{style:`percent`,...r??{maximumFractionDigits:1}};case`currency`:return{style:`currency`,currency:n,...r??{}};case`compact`:return{notation:`compact`,...r??{maximumSignificantDigits:3}}}}function WR(e,t){switch(e){case`currency`:return{style:`currency`,currency:t,notation:`compact`,maximumSignificantDigits:3};case`percent`:return{style:`percent`,notation:`compact`,maximumSignificantDigits:3};default:return{notation:`compact`,maximumSignificantDigits:3}}}function GR(e){return e===null?`(blank)`:String(e)}function KR(e,t=3){let n=document.createDocumentFragment(),r=e.replaceAll(`\r
32
+ `,`
33
+ `).split(`
34
+ `),i=0;for(;i<r.length;){let e=(r[i]??``).trim();if(!e){i+=1;continue}let a=/^(`{3,}|~{3,})(.*)$/.exec(e);if(a){let e=a[1]??"```",t=[];for(i+=1;i<r.length;){let n=r[i]??``;if(n.trim().startsWith(e.slice(0,3))){i+=1;break}t.push(n),i+=1}let o=document.createElement(`pre`),s=document.createElement(`code`);s.textContent=t.join(`
35
+ `),o.append(s),n.append(o);continue}if(/^(?:-{3,}|\*{3,}|_{3,})$/.test(e)){n.append(document.createElement(`hr`)),i+=1;continue}let o=/^(#{1,6})\s+(.+?)\s*#*$/.exec(e);if(o){let e=Math.min(6,t+(o[1]?.length??1)-1),r=document.createElement(`h${e}`);JR(r,o[2]??``),n.append(r),i+=1;continue}if(e.startsWith(`>`)){let e=[];for(;i<r.length&&(r[i]??``).trim().startsWith(`>`);)e.push((r[i]??``).trim().replace(/^>\s?/,``)),i+=1;let a=document.createElement(`blockquote`);a.append(KR(e.join(`
36
+ `),t)),n.append(a);continue}if(/^[-*+]\s+/.test(e)){let e=document.createElement(`ul`);for(;i<r.length;){let t=(r[i]??``).trim(),n=/^[-*+]\s+(.+)$/.exec(t);if(!n)break;let a=document.createElement(`li`);JR(a,n[1]??``),e.append(a),i+=1}n.append(e);continue}if(/^\d+\.\s+/.test(e)){let e=document.createElement(`ol`);for(;i<r.length;){let t=(r[i]??``).trim(),n=/^\d+\.\s+(.+)$/.exec(t);if(!n)break;let a=document.createElement(`li`);JR(a,n[1]??``),e.append(a),i+=1}n.append(e);continue}let s=[];for(;i<r.length;){let e=(r[i]??``).trim();if(!e||/^(?:`{3,}|~{3,})/.test(e)||/^(?:-{3,}|\*{3,}|_{3,})$/.test(e)||/^#{1,6}\s+/.test(e)||e.startsWith(`>`)||/^[-*+]\s+/.test(e)||/^\d+\.\s+/.test(e))break;s.push(e),i+=1}let c=document.createElement(`p`);JR(c,s.join(` `)),n.append(c)}return n}var qR=/(`[^`]+`|!\[([^\]]*)\]\(([^)]*)\)|\[([^\]]+)\]\(([^)]+)\)|\*\*(.+?)\*\*|__(.+?)__|\*(.+?)\*|_(.+?)_|~~(.+?)~~)/g;function JR(e,t){let n=0;for(let r of t.matchAll(qR)){let i=r.index??0;i>n&&e.append(document.createTextNode(t.slice(n,i)));let a=r[0];if(a.startsWith("`")){let t=document.createElement(`code`);t.textContent=a.slice(1,-1),e.append(t)}else if(a.startsWith(`![`)){let t=r[2]??``;t&&e.append(document.createTextNode(t))}else if(a.startsWith(`[`)){let t=r[4]??``,n=(r[5]??``).trim();if(YR(n)){let r=document.createElement(`a`);r.href=n,/^https?:/i.test(n)&&(r.target=`_blank`,r.rel=`noopener noreferrer`),JR(r,t),e.append(r)}else e.append(document.createTextNode(t))}else if(r[6]!==void 0||r[7]!==void 0){let t=document.createElement(`strong`);JR(t,r[6]??r[7]??``),e.append(t)}else if(r[8]!==void 0||r[9]!==void 0){let t=document.createElement(`em`);JR(t,r[8]??r[9]??``),e.append(t)}else if(r[10]!==void 0){let t=document.createElement(`del`);JR(t,r[10]),e.append(t)}n=i+a.length}n<t.length&&e.append(document.createTextNode(t.slice(n)))}function YR(e){let t=e.trim().toLowerCase();return t.startsWith(`https://`)||t.startsWith(`http://`)||t.startsWith(`mailto:`)||t.startsWith(`#`)}var XR=`1`,ZR=`__none__`,QR=new Set(y);function $R(e,t){let n=T(t),r=new URLSearchParams,i=!1;for(let a of t.filters??[]){let t=e.filters[a.id],o=n.filters[a.id];if(az(t,o))continue;i=!0;let s=`f.${a.id}`;if(t===void 0||t===`all`||Array.isArray(t)&&t.length===0)r.set(s,ZR);else if(a.type===`date_range`)typeof t==`string`?r.set(s,t):typeof t==`object`&&!Array.isArray(t)&&r.set(s,`${t.from??``}..${t.to??``}`);else if(Array.isArray(t))for(let e of t)r.append(s,nz(e));else(typeof t==`string`||typeof t==`number`)&&r.set(s,nz(t))}for(let t of e.selections){if(t.values.length===0)continue;i=!0;let e=`s.${t.tile}.${t.field}`;for(let n of t.values)r.append(e,nz(n))}if(!i)return``;let a=r.toString();return`#v=${XR}${a?`&${a}`:``}`}function ez(e,t,n){let r=T(t),i=e.startsWith(`#`)?e.slice(1):e;if(!i)return r;let a;try{a=new URLSearchParams(i)}catch{return r}if(a.get(`v`)!==XR)return r;for(let e of t.filters??[]){let t=`f.${e.id}`;if(!a.has(t))continue;let i=a.getAll(t);if(i.length===1&&i[0]===ZR){delete r.filters[e.id];continue}if(e.type===`date_range`){let t=tz(i[0]);t===`all`?delete r.filters[e.id]:t!==void 0&&(r.filters[e.id]=t);continue}let o=n[e.id]??[],s=i.map(e=>rz(e,o)).filter(e=>e!==void 0);if(e.type===`select`){let[t]=s;t!==void 0&&(r.filters[e.id]=t)}else s.length>0&&(r.filters[e.id]=[...new Set(s)])}if(t.tiles&&t.models){let e=new Set;for(let[n]of a){if(!n.startsWith(`s.`)||e.has(n))continue;e.add(n);let i=n.slice(2),o=i.indexOf(`.`);if(o<=0||o===i.length-1)continue;let s=i.slice(0,o),c=i.slice(o+1),l=t.tiles[s];if(!l||l.type===`text`||l.crossfilter===!1)continue;let d=t.models[l.model]?.table.dimensions[c];if(!d)continue;let f=l.type===`donut`?l.by===c?l.grain:void 0:l.type===`heatmap`?l.x===c?l.xGrain:l.y===c?l.yGrain:void 0:l.type===`table`?l.columns.find(e=>e.kind===`dimension`&&e.field===c)?.grain:l.type!==`kpi`&&l.type!==`scatter`&&l.x===c?l.grain:void 0,p=[...new Set(d.map(e=>{let t=e??null;return f&&typeof t==`string`?u(t,f):t}))],m=a.getAll(n).map(e=>iz(e,p)).filter(e=>e!==void 0);m.length>0&&r.selections.push({tile:s,field:c,...f!==void 0&&{grain:f},values:[...new Set(m)]})}}return r}function tz(e){if(!e)return;if(QR.has(e))return e;let t=e.indexOf(`..`);if(t===-1)return;let n=e.slice(0,t)||void 0,r=e.slice(t+2)||void 0;if((n||r)&&(!n||/^\d{4}-\d{2}-\d{2}$/.test(n))&&(!r||/^\d{4}-\d{2}-\d{2}$/.test(r))&&(!n||c(n))&&(!r||c(r))&&!(n&&r&&n>r))return{...n&&{from:n},...r&&{to:r}}}function nz(e){return e===null?`null:`:typeof e==`number`?`n:${e}`:`s:${e}`}function rz(e,t){let n=iz(e,t);return n===null?void 0:n}function iz(e,t){if(e===`null:`)return t.includes(null)?null:void 0;let n=e;if(e.startsWith(`n:`)){let t=Number(e.slice(2));Number.isFinite(t)&&(n=t)}else e.startsWith(`s:`)&&(n=e.slice(2));return t.find(e=>e!==null&&(e===n||String(e)===String(n)))}function az(e,t){return e===t?!0:Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):typeof e==`object`&&e&&!Array.isArray(e)&&typeof t==`object`&&t&&!Array.isArray(t)?e.from===t.from&&e.to===t.to:!1}var oz={accent:`--color-accent`,text:`--color-text`,muted:`--color-muted`,border:`--color-border`,gridline:`--color-gridline`,hover:`--color-hover`,surface:`--color-surface`,positive:`--color-positive`,negative:`--color-negative`,font:`--font-sans`,cat1:`--color-cat-1`,cat2:`--color-cat-2`,cat3:`--color-cat-3`,cat4:`--color-cat-4`,cat5:`--color-cat-5`,cat6:`--color-cat-6`,cat7:`--color-cat-7`,cat8:`--color-cat-8`};function sz(e){let t=getComputedStyle(e),n=Object.entries(oz).map(([e,n])=>[e,t.getPropertyValue(n).trim()]);return Object.fromEntries(n)}function cz(e){let t=[e.cat1,e.cat2,e.cat3,e.cat4,e.cat5,e.cat6,e.cat7,e.cat8].filter(Boolean),n={axisLine:{lineStyle:{color:e.border}},axisTick:{lineStyle:{color:e.border}},axisLabel:{color:e.muted},splitLine:{lineStyle:{color:e.gridline}}};return{color:[e.accent],palette:t.length>0?t:[e.accent],backgroundColor:`transparent`,textStyle:{color:e.text,fontFamily:e.font},categoryAxis:{...n,splitLine:{show:!1}},valueAxis:{...n,axisLine:{show:!1},axisTick:{show:!1}},legend:{textStyle:{color:e.muted}},tooltip:{axisPointer:{shadowStyle:{color:e.hover}},backgroundColor:e.surface,borderColor:e.border,textStyle:{color:e.text,fontFamily:e.font}}}}function lz(e,t,n){let r=D(t),i=VR(t.locale,t.currency),a=t.filters??[],o=Object.fromEntries(a.map(e=>[e.id,r.filterOptions(e.id)])),s=ez(window.location.hash,t,o),c=()=>{},l=dz(t,i),u=a.length>0?hz(a,o,t.asOf,s,e=>y(e)):void 0,d=$(`section`,`chips`);d.setAttribute(`aria-label`,`Active filters`),d.setAttribute(`aria-live`,`polite`);let f=$(`main`,`grid`),p=n?fz(n,i):void 0,m=[l];u&&m.push(u.bar),m.push(d,f),p&&m.push(p),e.prepend(...m);let h=e=>{y({...s,selections:S(s.selections,e)})},g=e=>{y({...s,selections:C(s.selections,e)})},_=new Map,v=()=>{let e=_z(f);c();let n=r.tiles(s),o=[];f.replaceChildren();for(let e of t.layout){let r=$(`div`,`row`);for(let a of e)r.append(xz(t,a,n[a.tile],i,o,s.selections,h,g,{sort:_.get(a.tile),onSortChange(e){_.set(a.tile,e),v()}}));f.append(r)}let l=o.map(e=>e());c=()=>{for(let e of l)e()},u?.sync(s),gz(d,a,s,i,e=>y(e),u?.bar),vz(f,e)},y=e=>{s=e,yz($R(s,t)),v()},b=()=>{s=ez(window.location.hash,t,o),v()};window.addEventListener(`hashchange`,b);let x=t.theme?.mode!==`light`&&t.theme?.mode!==`dark`?window.matchMedia?.(`(prefers-color-scheme: dark)`):void 0,w=()=>v();x?.addEventListener(`change`,w);let T=e=>{let t=e.target;if(t instanceof Node)for(let e of f.querySelectorAll(`.tile-menu.is-open`))e.contains(t)||Dz(e)};return document.addEventListener(`click`,T),v(),()=>{window.removeEventListener(`hashchange`,b),x?.removeEventListener(`change`,w),document.removeEventListener(`click`,T),u?.destroy(),c();for(let e of m)e.remove()}}function uz(e,t){for(let t of[...e.children])t.tagName!==`SCRIPT`&&t.remove();let n=$(`p`,`error`,`This dashboard could not be shown. ${t instanceof Error?t.message:String(t)}`);n.setAttribute(`role`,`alert`),e.prepend(n)}function dz(e,t){let n=$(`header`,`header`),r=$(`div`,`header-row`);if(r.append($(`h1`,`title`,e.title)),e.asOf!==void 0){let n=$(`time`,`as-of`,`As of ${t.formatDate(e.asOf)}`);n.setAttribute(`datetime`,e.asOf),r.append(n)}return n.append(r),e.description&&n.append($(`p`,`description`,e.description)),n}function fz(e,t){let n=$(`footer`,`footer`),r=document.createElement(`details`);r.className=`about-data`;let i=$(`summary`,`about-summary`,`About this data`),a=$(`div`,`about-body`),o=$(`h2`,`about-heading`,`Sources`),s=$(`ul`,`about-list`);for(let t of e.sources){let e=[t.table?`table ${t.table}`:void 0,t.sheet?`sheet ${t.sheet}`:void 0].filter(Boolean).join(`, `),n=e?`${t.source} (${e})`:t.source;s.append($(`li`,`about-item`,`${t.id}: ${n}`))}let c=$(`h2`,`about-heading`,`Models embedded`),l=$(`ul`,`about-list`);for(let n of e.models){let e=n.dimensions.length>0?n.dimensions.join(`, `):`none`,r=n.measures.length>0?n.measures.join(`, `):`none`,i=t.formatValue(n.rows,{format:`integer`});l.append($(`li`,`about-item`,`${n.id} (${i} rows, from ${n.source}) — dimensions: ${e}; measures: ${r}`))}let u=$(`p`,`about-note`,`Embedded data: ${e.dataBytes>=1048576?`${(e.dataBytes/1048576).toFixed(2)} MB`:`${(e.dataBytes/1e3).toFixed(1)} kB`} · Built ${e.builtAt} · flatbi v${e.cliVersion} (spec v${e.specVersion}).`),d=$(`p`,`about-note`,`Data is snapshotted and compressed at build time (not encrypted); this file makes zero network requests.`);return a.append(o,s,c,l,u,d),r.append(i,a),n.append(r),n}var pz={all:`All time`,last_7_days:`Last 7 days`,last_30_days:`Last 30 days`,last_90_days:`Last 90 days`,last_12_months:`Last 12 months`,this_month:`This month`,this_quarter:`This quarter`,this_year:`This year`,ytd:`Year to date`},mz=[`all`,`last_7_days`,`last_30_days`,`last_90_days`,`last_12_months`,`this_month`,`this_quarter`,`this_year`,`ytd`];function hz(e,t,n,r,i){let a=$(`section`,`filter-bar`);a.setAttribute(`aria-label`,`Filters`);let o=r,s=[];for(let r of e){let e=t[r.id]??[],c=$(`div`,`filter-control`),l=bz(r.field);if(r.type===`select`){let t=`filter-${r.id}`,n=$(`label`,`filter-label`,l);n.htmlFor=t;let a=document.createElement(`select`);a.id=t,a.className=`filter-select`;let u=document.createElement(`option`);u.value=``,u.textContent=`All`,a.append(u);let d=e.filter(e=>e!==null);d.forEach((e,t)=>{let n=document.createElement(`option`);n.value=String(t),n.textContent=GR(e),a.append(n)}),a.addEventListener(`change`,()=>{let e={...o.filters};if(a.value===``)delete e[r.id];else{let t=d[Number(a.value)];t!==void 0&&(e[r.id]=t)}i({...o,filters:e})}),c.append(n,a),s.push(e=>{o=e;let t=e.filters[r.id],n=typeof t==`string`||typeof t==`number`?d.indexOf(t):-1;a.value=n===-1?``:String(n)})}else if(r.type===`multi_select`){let t=`filter-label-${r.id}`,n=`filter-${r.id}`,a=$(`span`,`filter-label`,l);a.id=t;let u=document.createElement(`details`);u.className=`multi-select`;let d=document.createElement(`summary`);d.id=n,d.className=`multi-summary`,d.setAttribute(`aria-labelledby`,`${t} ${n}`);let f=$(`div`,`multi-menu`);f.setAttribute(`role`,`group`),f.setAttribute(`aria-label`,l);let p=e.filter(e=>e!==null),m=[];for(let e of p){let t=$(`label`,`multi-option`),n=document.createElement(`input`);n.type=`checkbox`,n.addEventListener(`change`,()=>{let e=m.filter(e=>e.input.checked).map(e=>e.value),t={...o.filters};e.length===0?delete t[r.id]:t[r.id]=e,i({...o,filters:t})}),t.append(n,document.createTextNode(GR(e))),f.append(t),m.push({value:e,input:n})}u.addEventListener(`keydown`,e=>{e.key===`Escape`&&u.open&&(e.preventDefault(),u.open=!1,d.focus())}),u.append(d,f),c.append(a,u),s.push(e=>{o=e;let t=e.filters[r.id],n=Array.isArray(t)?t:[];for(let e of m)e.input.checked=n.includes(e.value);d.textContent=n.length===0?`All`:`${n.length} selected`})}else{let t=`filter-${r.id}`,a=$(`label`,`filter-label`,l);a.htmlFor=t;let u=document.createElement(`select`);u.id=t,u.className=`filter-select`;for(let e of mz){let t=document.createElement(`option`);t.value=e,t.textContent=pz[e],u.append(t)}let d=document.createElement(`option`);d.value=`custom`,d.textContent=`Custom range…`,u.append(d);let f=$(`div`,`date-inputs is-hidden`),m=document.createElement(`input`);m.type=`date`,m.id=`${t}-from`,m.className=`filter-date`,m.setAttribute(`aria-label`,`${l} from`);let h=document.createElement(`input`);h.type=`date`,h.id=`${t}-to`,h.className=`filter-date`,h.setAttribute(`aria-label`,`${l} to`),f.append(m,document.createTextNode(`–`),h);let g=e.filter(e=>typeof e==`string`&&e.length>=10).map(e=>e.slice(0,10)).sort(),_=g[0],v=n??g.at(-1),y=()=>{let e=m.value||void 0,t=h.value||void 0;if(e&&t&&e>t)return;let n={...o.filters};!e&&!t?delete n[r.id]:n[r.id]={...e&&{from:e},...t&&{to:t}},i({...o,filters:n})};u.addEventListener(`change`,()=>{if(u.value===`custom`){let e=p(o.filters[r.id],v);m.value||=e?.from??_??``,h.value||=e?.to??v??``,f.classList.remove(`is-hidden`),y();return}f.classList.add(`is-hidden`);let e={...o.filters};u.value===`all`?delete e[r.id]:e[r.id]=u.value,i({...o,filters:e})}),m.addEventListener(`change`,y),h.addEventListener(`change`,y),c.append(a,u,f),s.push(e=>{o=e;let t=e.filters[r.id];t===void 0||t===`all`?(u.value=`all`,f.classList.add(`is-hidden`),m.value=``,h.value=``):typeof t==`string`?(u.value=t,f.classList.add(`is-hidden`),m.value=``,h.value=``):typeof t==`object`&&!Array.isArray(t)&&(u.value=`custom`,f.classList.remove(`is-hidden`),m.value=t.from??``,h.value=t.to??``)})}a.append(c)}let c=e=>{let t=e.target;if(t instanceof Node)for(let e of a.querySelectorAll(`details.multi-select[open]`))e.contains(t)||(e.open=!1)};return document.addEventListener(`click`,c),{bar:a,sync(e){for(let t of s)t(e)},destroy(){document.removeEventListener(`click`,c)}}}function gz(e,t,n,r,i,a){let o=[...e.querySelectorAll(`button`)],s=document.activeElement,c=s instanceof HTMLButtonElement?o.indexOf(s):-1,l=[];for(let e of t){let t=n.filters[e.id];if(t===void 0)continue;let a=bz(e.field);if(e.type===`date_range`){if(t===`all`||Array.isArray(t)||typeof t==`number`)continue;let o=typeof t==`string`?pz[t]:`${t.from?r.formatDate(t.from):`…`} – ${t.to?r.formatDate(t.to):`…`}`,s=$(`button`,`chip`,`${a}: ${o} ×`);s.type=`button`,s.setAttribute(`aria-label`,`Remove ${a}: ${o}`),s.addEventListener(`click`,()=>{let t={...n.filters};delete t[e.id],i({...n,filters:t})}),l.push(s)}else if(Array.isArray(t))for(let r of t){let o=$(`button`,`chip`,`${a}: ${GR(r)} ×`);o.type=`button`,o.setAttribute(`aria-label`,`Remove ${a}: ${GR(r)}`),o.addEventListener(`click`,()=>{let a=t.filter(e=>e!==r),o={...n.filters};a.length===0?delete o[e.id]:o[e.id]=a,i({...n,filters:o})}),l.push(o)}else if(typeof t==`string`||typeof t==`number`){let r=$(`button`,`chip`,`${a}: ${GR(t)} ×`);r.type=`button`,r.setAttribute(`aria-label`,`Remove ${a}: ${GR(t)}`),r.addEventListener(`click`,()=>{let t={...n.filters};delete t[e.id],i({...n,filters:t})}),l.push(r)}}for(let e of n.selections){let t=bz(e.field);for(let a of e.values){let o=r.formatPeriod(a,e.grain),s=$(`button`,`chip chip-selection`,`${t}: ${o} ×`);s.type=`button`,s.setAttribute(`aria-label`,`Remove ${t}: ${o}`),s.addEventListener(`click`,()=>{let t=e.values.filter(e=>e!==a),r=n.selections.flatMap(n=>n===e?t.length===0?[]:[{...n,values:t}]:[n]);i({...n,selections:r})}),l.push(s)}}if(l.length===0){e.replaceChildren(),c!==-1&&a?.querySelector(`select, summary`)?.focus({preventScroll:!0});return}let u=$(`button`,`clear-all`,`Clear all`);if(u.type=`button`,u.addEventListener(`click`,()=>{i({...w,filters:{},selections:[]})}),e.replaceChildren(...l,u),c!==-1){let t=e.querySelectorAll(`button`);t[Math.min(c,t.length-1)]?.focus({preventScroll:!0})}}function _z(e){let t=document.activeElement;if(!(t instanceof HTMLElement)||!e.contains(t))return;let n=t.closest(`[data-tile]`),r=n?.dataset.tile;if(n&&r){if(t.classList.contains(`table-sort-btn`)){let e=Number(t.dataset.colIndex);return Number.isInteger(e)?{kind:`sort`,tileId:r,colIndex:e}:void 0}if(t.classList.contains(`table-row`)){let e=[...n.querySelectorAll(`tbody tr.table-row`)].indexOf(t);return e>=0?{kind:`row`,tileId:r,rowIndex:e}:void 0}}}function vz(e,t){if(!t)return;let n=CSS.escape(t.tileId),r=e.querySelector(`[data-tile="${n}"]`);if(!r)return;if(t.kind===`sort`){r.querySelector(`button.table-sort-btn[data-col-index="${t.colIndex}"]`)?.focus({preventScroll:!0});return}let i=r.querySelectorAll(`tbody tr.table-row.is-clickable`);i.length!==0&&i[Math.min(t.rowIndex,i.length-1)]?.focus({preventScroll:!0})}function yz(e){let t=e||`${window.location.pathname}${window.location.search}`;try{history.replaceState(null,``,t)}catch{window.location.hash=e}}function bz(e){let t=e.replace(/([a-z0-9])([A-Z])/g,`$1 $2`).replace(/_+/g,` `).trim().toLowerCase();return t.charAt(0).toUpperCase()+t.slice(1)}function xz(e,t,n,r,i,a=[],o,s,c){let l=e.tiles[t.tile],u=l!==void 0&&l.type!==`scatter`&&l.size!==void 0?` size-${l.size}`:``,d=$(`section`,`tile ${l?.type??`unknown`} span-${t.span}${u}`);if(d.dataset.tile=t.tile,l?.type===`text`){if(l.title!==void 0){let e=$(`h2`,`tile-title`,l.title);e.id=`tile-${t.tile}`,d.setAttribute(`aria-labelledby`,e.id),d.append(e)}else d.setAttribute(`aria-label`,bz(t.tile));let e=$(`div`,`text-body`);return e.append(KR(l.md,l.title===void 0?2:3)),d.append(e),d}let f=l?e.models[l.model]:void 0,p=f?.formats,m=l?.title??t.tile,h=$(`div`,`tile-header`),g=$(`h2`,`tile-title`,m);if(g.id=`tile-${t.tile}`,d.setAttribute(`aria-labelledby`,g.id),h.append(g,Oz(d,t.tile,m,l,n,f?.dimensionOrders,c?.sort)),d.append(h),l?.type===`kpi`)Sz(d,l.title,n,r,p?.[l.value],i);else if(l?.type===`table`)wz(d,t.tile,l,n,r,p,f?.dimensionOrders,a,s,c);else if(l?.type===`bar`||l?.type===`line`||l?.type===`area`||l?.type===`combo`||l?.type===`scatter`||l?.type===`donut`||l?.type===`heatmap`){let e=l.type===`scatter`||l.type===`donut`?l.by:l.x,c=a.filter(n=>n.tile===t.tile&&n.field===e).flatMap(e=>e.values),u=l.type===`heatmap`?a.filter(e=>e.tile===t.tile&&e.field===l.y).flatMap(e=>e.values):void 0;Cz(d,t.tile,l,n,r,p,i,{selected:c,selectedX:l.type===`heatmap`?c:void 0,selectedY:u,onSelect:o,onSelectBatch:s,orders:f?.dimensionOrders})}else d.append(jz(n));return d}function Sz(e,t,n,r,i,a){let o=$(`p`,`kpi-value`);if(e.append(o),n?.status===`ok`){let[s]=n.rows[0]??[];o.textContent=r.formatValue(typeof s==`number`?s:null,i);let c=n.kpi?.comparison;if(c?.status===`ok`&&c.delta!==void 0){let t=c.delta>0&&c.good===`up`||c.delta<0&&c.good===`down`,n=c.delta<0&&c.good===`up`||c.delta>0&&c.good===`down`,a=t?`is-positive`:n?`is-negative`:`is-neutral`,o=c.delta>0?`▲`:c.delta<0?`▼`:`—`,s=`${c.delta>0?`+`:c.delta<0?`-`:``}${r.formatValue(Math.abs(c.delta),i)}`,l=c.pct!==null&&c.pct!==void 0?` (${c.pct>0?`+`:c.pct<0?`-`:``}${r.formatValue(Math.abs(c.pct),{format:`percent`,decimals:1})})`:``,u=c.mode===`previous_period`?`vs prior period`:c.mode===`previous_year`?`vs prior year`:`vs target`;e.append($(`p`,`kpi-delta ${a}`,`${o} ${s}${l} ${u}`))}let l=n.kpi?.spark;if(l&&l.points.length>1){let n=$(`div`,`kpi-spark`);e.append(n),a.push(()=>{let e=cz(sz(n)),a=PR(n,t,l.points,l.grain,e,r,i),o=n.clientWidth,s=new ResizeObserver(()=>{n.clientWidth!==o&&(o=n.clientWidth,a.resize())});return s.observe(n),()=>{s.disconnect(),a.dispose()}})}}else o.textContent=`—`,o.setAttribute(`aria-hidden`,`true`),e.append(jz(n))}function Cz(e,t,n,r,i,a,o,s){if(r?.status!==`ok`){e.append(jz(r));return}let c=$(`div`,`chart`);if(n.type===`bar`&&n.grain===void 0||n.type===`donut`)c.dataset.tileType=n.type,c.dataset.categories=String(r.rows.length);else if(n.type===`heatmap`){c.dataset.tileType=`heatmap`;let e=new Set(r.rows.map(e=>e[0])).size,t=new Set(r.rows.map(e=>e[1])).size;c.dataset.categories=String(Math.max(e,t))}e.append(c),o.push(()=>{let e=cz(sz(c)),o={tileId:t,selected:s?.selected,selectedX:s?.selectedX,selectedY:s?.selectedY,onSelect:s?.onSelect,onSelectBatch:s?.onSelectBatch,orders:s?.orders},l=n.type===`bar`?DR(c,n,r,e,i,a,o):n.type===`combo`?FR(c,n,r,e,i,a,o):n.type===`scatter`?IR(c,n,r,e,i,a,o):n.type===`donut`?LR(c,n,r,e,i,a,o):n.type===`heatmap`?RR(c,n,r,e,i,a,o):OR(c,n,r,e,i,a),u=c.clientWidth,d=new ResizeObserver(()=>{c.clientWidth!==u&&(u=c.clientWidth,l.resize())});return d.observe(c),()=>{d.disconnect(),l.dispose()}})}function wz(e,t,n,r,i,a,o,s,c,l){if(r?.status!==`ok`){e.append(jz(r));return}let u=Tz(n,l?.sort),d=l?.sort?Ez(n,r.rows,o,u):r.rows.map(e=>[...e]),f=n.columns.map((e,t)=>{if(e.kind!==`measure`)return;let n=1/0,r=-1/0,i=0;for(let e of d){let a=e[t];typeof a==`number`&&(a<n&&(n=a),a>r&&(r=a),Math.abs(a)>i&&(i=Math.abs(a)))}return Number.isFinite(n)?{min:n,max:r,maxAbs:i}:void 0}),p=$(`div`,`table-wrap`);p.tabIndex=0,p.setAttribute(`role`,`region`),p.setAttribute(`aria-label`,`${n.title} table`);let m=document.createElement(`table`);m.className=`data-table`;let h=document.createElement(`thead`),g=document.createElement(`tr`);n.columns.forEach((e,t)=>{let n=document.createElement(`th`);n.scope=`col`,n.className=e.kind===`measure`?`is-numeric`:`is-category`;let r=u?.colIndex===t,i=r?u?.desc?`descending`:`ascending`:`none`;n.setAttribute(`aria-sort`,i);let a=e.label??bz(e.field);if(l?.onSortChange){let i=l.onSortChange,o=$(`button`,`table-sort-btn${r?` is-sorted`:``}`);if(o.type=`button`,o.dataset.colIndex=String(t),o.append(document.createTextNode(a)),r){let e=$(`span`,`table-sort-indicator`,u?.desc?` ▼`:` ▲`);e.setAttribute(`aria-hidden`,`true`),o.append(e)}o.addEventListener(`click`,()=>{let n=r?!u?.desc:e.kind===`measure`;i({colIndex:t,desc:n})}),n.append(o)}else n.textContent=a;g.append(n)}),h.append(g),m.append(h);let _=n.columns.map((e,t)=>({col:e,idx:t})).filter(e=>e.col.kind===`dimension`),v=n.crossfilter!==!1&&_.length>0&&c!==void 0,y=new Map;for(let e of s){if(e.tile!==t)continue;let n=`${e.grain??``}\0${e.field}`,r=y.get(n);r||(r=new Set,y.set(n,r));for(let t of e.values)r.add(t)}let b=y.size>0,x=document.createElement(`tbody`);for(let e of d){let r=document.createElement(`tr`);r.className=`table-row`;let o=b&&_.every(({col:t,idx:n})=>{let r=y.get(`${t.grain??``}\0${t.field}`);return!r||r.has(e[n]??null)});if(v){r.classList.add(`is-clickable`),r.tabIndex=0,b&&(o&&r.setAttribute(`aria-current`,`true`),r.classList.add(o?`is-selected`:`is-dimmed`));let n=n=>{c(_.map(({col:r,idx:i})=>({tile:t,field:r.field,...r.grain!==void 0&&{grain:r.grain},values:[e[i]??null],additive:n})))};r.addEventListener(`click`,e=>{n(e.shiftKey||e.ctrlKey||e.metaKey)}),r.addEventListener(`keydown`,e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),n(e.shiftKey||e.ctrlKey||e.metaKey))})}n.columns.forEach((t,n)=>{let o=document.createElement(`td`),s=e[n]??null;if(t.kind===`dimension`){o.className=`is-category`,o.textContent=i.formatPeriod(s,t.grain),r.append(o);return}o.className=`is-numeric`;let c=typeof s==`number`?s:null,l=i.formatValue(c,a?.[t.field]),u=f[n];if(t.color!==void 0&&c!==null){if(t.color===`positive`)c>0&&o.classList.add(`cell-positive`);else if(t.color===`negative`)c<0&&o.classList.add(`cell-negative`);else if(t.color===`diverging`)c>0?o.classList.add(`cell-positive`):c<0&&o.classList.add(`cell-negative`);else if(t.color===`scale`&&u){let e=u.max-u.min,t=e===0?1:(c-u.min)/e,n=t>=.75?4:t>=.5?3:t>=.25?2:1;o.classList.add(`cell-scale-${n}`)}}if(t.bar&&c!==null&&u){let e=u.maxAbs===0?0:Math.min(100,Math.abs(c)/u.maxAbs*100),t=$(`div`,`cell-bar-wrap`),n=$(`span`,`cell-value`,l),r=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`);r.setAttribute(`class`,`cell-bar`),r.setAttribute(`viewBox`,`0 0 100 6`),r.setAttribute(`preserveAspectRatio`,`none`),r.setAttribute(`aria-hidden`,`true`);let i=document.createElementNS(`http://www.w3.org/2000/svg`,`rect`);i.setAttribute(`class`,`cell-bar-fill`),i.setAttribute(`x`,`0`),i.setAttribute(`y`,`0`),i.setAttribute(`width`,e.toFixed(1)),i.setAttribute(`height`,`6`),i.setAttribute(`rx`,`2`),r.append(i),t.append(n,r),o.append(t)}else o.textContent=l;r.append(o)}),x.append(r)}m.append(x),p.append(m),e.append(p)}function Tz(e,t){if(t)return t;if(e.sort!==void 0){let t=e.sort.startsWith(`-`),n=t?e.sort.slice(1):e.sort,r=e.columns.findIndex(e=>e.field===n);if(r>=0)return{colIndex:r,desc:t}}let n=e.columns.findIndex(e=>e.kind===`measure`);if(n>=0)return{colIndex:n,desc:!0};if(e.columns.length>0)return{colIndex:0,desc:!1}}function Ez(e,t,n,r){let i=t.map(e=>[...e]);if(!r)return i;let{colIndex:a,desc:o}=r,s=e.columns[a],c=s?.kind===`dimension`?n?.[s.field]:void 0;return i.sort((e,t)=>{let n=e[a]??null,r=t[a]??null;if(s?.kind===`measure`){let e=typeof n==`number`?n:null,t=typeof r==`number`?r:null;return e===t?0:e===null?1:t===null?-1:o?t-e:e-t}if(c){let e=c.findIndex(e=>e===n||String(e)===String(n)),t=c.findIndex(e=>e===r||String(e)===String(r));if(e!==-1&&t!==-1)return(e-t)*(o?-1:1);if(e!==-1)return-1;if(t!==-1)return 1}if(n===r)return 0;if(n===null)return 1;if(r===null)return-1;let i;return i=typeof n==`number`&&typeof r==`number`?n-r:typeof n==`number`?-1:typeof r==`number`?1:n<r?-1:1,i*(o?-1:1)}),i}function Dz(e){e.classList.remove(`is-open`),e.closest(`.tile`)?.classList.remove(`has-open-menu`);let t=e.querySelector(`.tile-menu-btn`),n=e.querySelector(`.tile-menu-list`);t&&t.setAttribute(`aria-expanded`,`false`),n&&(n.hidden=!0)}function Oz(e,t,n,r,i,o,s){let c=$(`div`,`tile-menu`),l=`tile-menu-${t}`,u=$(`button`,`tile-menu-btn`);u.type=`button`,u.setAttribute(`aria-haspopup`,`menu`),u.setAttribute(`aria-expanded`,`false`),u.setAttribute(`aria-controls`,l),u.setAttribute(`aria-label`,`Options for ${n}`);let d=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`);d.setAttribute(`class`,`tile-menu-icon`),d.setAttribute(`viewBox`,`0 0 16 16`),d.setAttribute(`aria-hidden`,`true`);for(let e of[`3.5`,`8`,`12.5`]){let t=document.createElementNS(`http://www.w3.org/2000/svg`,`circle`);t.setAttribute(`cx`,`8`),t.setAttribute(`cy`,e),t.setAttribute(`r`,`1.35`),d.append(t)}u.append(d);let f=$(`div`,`tile-menu-list`);f.id=l,f.setAttribute(`role`,`menu`),f.hidden=!0;let p=$(`button`,`tile-menu-item`,`Download CSV`);p.type=`button`,p.setAttribute(`role`,`menuitem`),i?.status===`ok`?p.addEventListener(`click`,()=>{let e=r?.type===`table`&&s?Ez(r,i.rows,o,s):i.rows,n=a(i.columns,e);Az(`${kz(t)}.csv`,n),g(!0)}):(p.disabled=!0,p.setAttribute(`aria-disabled`,`true`)),f.append(p);let m=()=>[...f.querySelectorAll(`[role="menuitem"]`)].filter(e=>!e.disabled),h=t=>{let n=e.closest(`.grid`)??document;for(let e of n.querySelectorAll(`.tile-menu.is-open`))e!==c&&Dz(e);if(c.classList.add(`is-open`),e.classList.add(`has-open-menu`),u.setAttribute(`aria-expanded`,`true`),f.hidden=!1,t){let e=m();(t===`first`?e[0]:e.at(-1))?.focus()}},g=(e=!1)=>{Dz(c),e&&u.focus()};return u.addEventListener(`click`,()=>{c.classList.contains(`is-open`)?g(!1):h()}),u.addEventListener(`keydown`,e=>{c.classList.contains(`is-open`)?e.key===`Escape`?(e.preventDefault(),g(!0)):e.key===`ArrowDown`?(e.preventDefault(),m()[0]?.focus()):e.key===`ArrowUp`&&(e.preventDefault(),m().at(-1)?.focus()):e.key===`ArrowDown`||e.key===`Enter`||e.key===` `?(e.preventDefault(),h(`first`)):e.key===`ArrowUp`&&(e.preventDefault(),h(`last`))}),f.addEventListener(`keydown`,e=>{if(e.key===`Escape`){e.preventDefault(),g(!0);return}if(e.key===`Tab`){g(!1);return}let t=m();if(t.length===0)return;let n=t.indexOf(document.activeElement);e.key===`ArrowDown`?(e.preventDefault(),t[n===-1?0:(n+1)%t.length]?.focus()):e.key===`ArrowUp`?(e.preventDefault(),t[n===-1?t.length-1:(n-1+t.length)%t.length]?.focus()):e.key===`Home`?(e.preventDefault(),t[0]?.focus()):e.key===`End`&&(e.preventDefault(),t.at(-1)?.focus())}),c.append(u,f),c}function kz(e){return e.replace(/[^a-zA-Z0-9._-]+/g,`_`).replace(/^_+|_+$/g,``)||`tile`}function Az(e,t){let n=new Blob([t],{type:`text/csv;charset=utf-8`}),r=URL.createObjectURL(n),i=document.createElement(`a`);i.className=`is-hidden`,i.href=r,i.download=e,document.body.append(i),i.click(),i.remove(),window.setTimeout(()=>URL.revokeObjectURL(r),1e3)}function jz(e){return $(`p`,`tile-note`,E[e?.status===`empty`?e.reason:`unknown`])}function $(e,t,n){let r=document.createElement(e);return r.className=t,n!==void 0&&(r.textContent=n),r}function Mz(){let e=document.getElementById(`flatbi-meta`)?.textContent;if(e)try{return JSON.parse(e).manifest}catch{return}}async function Nz(){let e=document.documentElement;try{let t=xe(await De(ye));lz(document.body,t,Mz()),await Pz(),e.dataset.state=`ready`}catch(t){console.error(t),uz(document.body,t),e.dataset.state=`error`}}async function Pz(){await document.fonts.ready,await new Promise(e=>{requestAnimationFrame(()=>requestAnimationFrame(()=>e()))})}Nz();</script>
37
+ <style rel="stylesheet" crossorigin>@font-face{font-family:Public Sans;font-style:normal;font-weight:100 900;font-display:swap;src:url(data:font/woff2;base64,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)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--color-canvas:#f5f6f8;--color-surface:#fff;--color-border:#dce0e6;--color-control-border:#858e9e;--color-text:#191d24;--color-muted:#525b6c;--color-gridline:#eaecf1;--color-accent:#2f6fde;--color-hover:#1a1d230f;--color-selection:#2f6fde29;--color-danger:#b42318;--color-positive:#157347;--color-negative:#b42318;--color-cat-1:#2f6fde;--color-cat-2:#bd5007;--color-cat-3:#1077ab;--color-cat-4:#19804b;--color-cat-5:#8a5e0e;--color-cat-6:#a62b6d;--color-cat-7:#137f78;--color-cat-8:#783ac0;--font-sans:"Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--body-weight:400;--body-leading:1.45;--heading-weight:600;--space-1:.25rem;--space-2:.5rem;--space-4:1rem;--space-6:1.5rem;--radius:.375rem;--motion:.18s ease}:root[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--color-canvas:#12151a;--color-surface:#1c2027;--color-border:#323944;--color-control-border:#687385;--color-text:#ebeef2;--color-muted:#a6b0bf;--color-gridline:#282e37;--color-accent:#6da1f2;--color-hover:#f0f4fa14;--color-selection:#6da1f23d;--color-danger:#fca5a5;--color-positive:#4ade80;--color-negative:#fca5a5;--color-cat-1:#6da1f2;--color-cat-2:#e67f45;--color-cat-3:#57aed9;--color-cat-4:#57c488;--color-cat-5:#d9aa43;--color-cat-6:#de68a5;--color-cat-7:#53c4ba;--color-cat-8:#a774e8;--body-weight:425;--body-leading:1.52;--heading-weight:625}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--color-canvas:#12151a;--color-surface:#1c2027;--color-border:#323944;--color-control-border:#687385;--color-text:#ebeef2;--color-muted:#a6b0bf;--color-gridline:#282e37;--color-accent:#6da1f2;--color-hover:#f0f4fa14;--color-selection:#6da1f23d;--color-danger:#fca5a5;--color-positive:#4ade80;--color-negative:#fca5a5;--color-cat-1:#6da1f2;--color-cat-2:#e67f45;--color-cat-3:#57aed9;--color-cat-4:#57c488;--color-cat-5:#d9aa43;--color-cat-6:#de68a5;--color-cat-7:#53c4ba;--color-cat-8:#a774e8;--body-weight:425;--body-leading:1.52;--heading-weight:625}}:root[data-density=compact]{--space-1:.2rem;--space-2:.375rem;--space-4:.75rem;--space-6:1rem}*,:before,:after{box-sizing:border-box}::selection{background:var(--color-selection);color:var(--color-text)}input,select,textarea{caret-color:var(--color-accent)}body{background:var(--color-canvas);color:var(--color-text);font-family:var(--font-sans);font-size:.875rem;font-weight:var(--body-weight);line-height:var(--body-leading);font-variant-numeric:tabular-nums;margin:0}.header{padding:var(--space-6) var(--space-6) 0}.header-row{justify-content:space-between;align-items:baseline;gap:var(--space-2);flex-wrap:wrap;display:flex}.as-of{color:var(--color-muted);font-size:.8125rem}.filter-bar{align-items:flex-end;gap:var(--space-4);padding:var(--space-4) var(--space-6) 0;flex-wrap:wrap;display:flex}.filter-control{gap:var(--space-1);flex-direction:column;display:flex}.filter-label{color:var(--color-muted);font-size:.75rem;font-weight:500}.filter-select,.multi-summary,.filter-date{background:var(--color-surface);min-width:9rem;color:var(--color-text);border:1px solid var(--color-control-border);border-radius:var(--radius);font:inherit;cursor:pointer;transition:border-color var(--motion), background-color var(--motion), color var(--motion);padding:.375rem .625rem}.date-inputs{align-items:center;gap:var(--space-1);display:flex}.is-hidden,.date-inputs.is-hidden{display:none}.filter-date{min-width:8.5rem}.multi-select{position:relative}.multi-menu{z-index:20;min-width:11rem;max-height:14rem;padding:var(--space-2);background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius);gap:var(--space-1);flex-direction:column;display:flex;position:absolute;top:calc(100% + .25rem);left:0;overflow:auto}.multi-option{align-items:center;gap:var(--space-2);cursor:pointer;padding:.25rem;display:flex}.chips{align-items:center;gap:var(--space-2);padding:var(--space-2) var(--space-6) 0;flex-wrap:wrap;display:flex}.chips:empty{display:none}.chip,.clear-all{min-height:1.75rem;font:.75rem / 1.3 var(--font-sans);cursor:pointer;transition:border-color var(--motion), background-color var(--motion), color var(--motion);border-radius:999px;padding:.3125rem .625rem}.chip{background:var(--color-surface);color:var(--color-text);border:1px solid var(--color-accent)}.clear-all{color:var(--color-muted);background:0 0;border:1px solid #0000}.filter-select:focus-visible,.filter-date:focus-visible,.multi-summary:focus-visible,.multi-option input:focus-visible,.chip:focus-visible,.clear-all:focus-visible{outline:2px solid var(--color-accent);outline-offset:2px}.title{font-size:1.25rem;font-weight:var(--heading-weight);margin:0}.description{margin:var(--space-1) 0 0;color:var(--color-muted)}.grid{gap:var(--space-4);padding:var(--space-4) var(--space-6) var(--space-6);display:grid}.row{gap:var(--space-4);grid-template-columns:repeat(12,minmax(0,1fr));display:grid}.tile{min-width:0;padding:var(--space-4);background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius);container:tile/inline-size}.tile-header{justify-content:space-between;align-items:flex-start;gap:var(--space-2);margin:0 0 var(--space-2);display:flex}.tile-title{margin:0 0 var(--space-2);color:var(--color-muted);font-size:.8125rem;font-weight:500}.tile-header .tile-title{margin:0}.tile.has-open-menu{z-index:30;position:relative}.tile-menu{flex-shrink:0;position:relative}.tile-menu-btn{border-radius:var(--radius);width:1.75rem;height:1.75rem;color:var(--color-muted);cursor:pointer;transition:border-color var(--motion), background-color var(--motion), color var(--motion);background:0 0;border:1px solid #0000;justify-content:center;align-items:center;padding:0;display:inline-flex}.tile-menu-btn:hover,.tile-menu-btn[aria-expanded=true]{background:var(--color-hover);border-color:var(--color-border);color:var(--color-text)}.tile-menu-btn:focus-visible,.tile-menu-item:focus-visible{outline:2px solid var(--color-accent);outline-offset:2px}.tile-menu-icon{fill:currentColor;width:1rem;height:1rem;display:block}.tile-menu-list{z-index:30;min-width:9.5rem;padding:var(--space-1);background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius);position:absolute;top:calc(100% + .25rem);right:0}.tile-menu-item{border-radius:calc(var(--radius) - 2px);width:100%;color:var(--color-text);font:inherit;text-align:left;white-space:nowrap;cursor:pointer;background:0 0;border:0;padding:.375rem .625rem;font-size:.8125rem;display:block}.tile-menu-item:hover:not(:disabled){background:var(--color-hover)}.tile-menu-item:disabled{color:var(--color-muted);opacity:.6;cursor:not-allowed}.kpi-value{font-size:2rem;font-weight:var(--heading-weight);font-variant-numeric:tabular-nums;margin:0;line-height:1.15}.kpi-delta{margin:var(--space-1) 0 0;font-variant-numeric:tabular-nums;font-size:.8125rem;font-weight:500}.kpi-delta.is-positive{color:var(--color-positive)}.kpi-delta.is-negative{color:var(--color-negative)}.kpi-delta.is-neutral{color:var(--color-muted)}.kpi-spark{height:2.75rem;margin-top:var(--space-2)}.chart{height:16rem}.tile.donut .chart{height:15rem}.tile.heatmap .chart{height:17rem}.tile.size-s .chart{height:11rem}.tile.size-m .chart{height:16rem}.tile.size-l .chart{height:24rem}.tile.kpi.size-s .kpi-value{font-size:1.625rem}.tile.kpi.size-l .kpi-value{font-size:2.5rem}.tile.text.size-m{min-height:10rem}.tile.text.size-l{min-height:16rem}.chart svg{overflow:visible}.chart>div{overflow:visible!important}.chart-tooltip-label{color:var(--color-muted)}.chart-tooltip-row{justify-content:space-between;gap:var(--space-4);display:flex}.chart-tooltip-name{color:var(--color-text)}.chart-tooltip-value{font-variant-numeric:tabular-nums;font-weight:600}.tile-note{margin:var(--space-1) 0 0;color:var(--color-muted)}.table-wrap{border-top:1px solid var(--color-border);max-height:22rem;overflow:auto}.table-wrap:focus-visible{outline:2px solid var(--color-accent);outline-offset:2px}.data-table{border-collapse:collapse;font-variant-numeric:tabular-nums;width:100%;font-size:.8125rem}.data-table th,.data-table td{border-bottom:1px solid var(--color-gridline);text-align:left;vertical-align:middle;padding:.4375rem .625rem}.data-table th{z-index:1;background:var(--color-surface);color:var(--color-muted);border-bottom:1px solid var(--color-border);font-weight:500;position:sticky;top:0}.data-table th.is-numeric,.data-table td.is-numeric{text-align:right}.table-sort-btn{width:100%;min-height:1.5rem;color:inherit;font:inherit;text-align:inherit;cursor:pointer;background:0 0;border:0;padding:0}.table-sort-btn.is-sorted{color:var(--color-text);font-weight:600}.table-sort-btn:focus-visible,.table-row.is-clickable:focus-visible{outline:2px solid var(--color-accent);outline-offset:-2px}.table-row.is-clickable{cursor:pointer;transition:background-color var(--motion), opacity var(--motion)}.table-row.is-clickable:hover{background:var(--color-hover)}.table-row.is-selected{background:var(--color-selection)}.table-row.is-dimmed{color:var(--color-muted)}.cell-bar-wrap{flex-direction:column;align-items:flex-end;gap:.25rem;display:flex}.cell-bar{background:var(--color-gridline);border-radius:2px;width:5.5rem;height:.375rem;display:block}.cell-bar-fill{fill:var(--color-accent)}.table-row.is-dimmed .cell-bar-fill{opacity:.45}.data-table td.cell-positive{color:var(--color-positive);font-weight:500}.data-table td.cell-negative{color:var(--color-negative);font-weight:500}.data-table td.cell-scale-1{background:color-mix(in srgb, var(--color-accent) 4%, transparent)}.data-table td.cell-scale-2{background:color-mix(in srgb, var(--color-accent) 10%, transparent)}.data-table td.cell-scale-3{background:color-mix(in srgb, var(--color-accent) 17%, transparent)}.data-table td.cell-scale-4{background:color-mix(in srgb, var(--color-accent) 24%, transparent)}.error{margin:var(--space-6);color:var(--color-danger)}.span-1{grid-column:span 1}.span-2{grid-column:span 2}.span-3{grid-column:span 3}.span-4{grid-column:span 4}.span-5{grid-column:span 5}.span-6{grid-column:span 6}.span-7{grid-column:span 7}.span-8{grid-column:span 8}.span-9{grid-column:span 9}.span-10{grid-column:span 10}.span-11{grid-column:span 11}.span-12{grid-column:span 12}.tile.size-s .table-wrap{max-height:14rem}.tile.size-m .table-wrap{max-height:22rem}.tile.size-l .table-wrap{max-height:34rem}.text-body{color:var(--color-text);font-size:.875rem;line-height:var(--body-leading)}.text-body>:first-child{margin-top:0}.text-body>:last-child{margin-bottom:0}.text-body h2,.text-body h3,.text-body h4,.text-body h5,.text-body h6{margin:var(--space-4) 0 var(--space-1);font-weight:var(--heading-weight);line-height:1.3}.text-body h2{font-size:1.0625rem}.text-body h3{font-size:.9375rem}.text-body p,.text-body ul,.text-body ol,.text-body blockquote,.text-body pre{margin:var(--space-2) 0}.text-body ul,.text-body ol{padding-left:1.25rem}.text-body blockquote{padding-left:var(--space-4);border-left:2px solid var(--color-accent);color:var(--color-muted)}.text-body code{background:var(--color-canvas);border:1px solid var(--color-border);border-radius:3px;padding:.1em .35em;font-size:.8125rem}.text-body pre{padding:var(--space-2) var(--space-4);background:var(--color-canvas);border:1px solid var(--color-border);border-radius:var(--radius);overflow-x:auto}.text-body pre code{background:0 0;border:0;padding:0}.text-body hr{border:0;border-top:1px solid var(--color-border);margin:var(--space-4) 0}.text-body a{color:var(--color-accent)}.text-body a:focus-visible{outline:2px solid var(--color-accent);outline-offset:2px}@container tile (width<=260px){.tile-title{font-size:.75rem}.kpi-value{font-size:1.625rem}.data-table th,.data-table td{padding:.3125rem .375rem}}@container tile (width>=560px){.kpi-value{font-size:2.25rem}}@media (width<=899px){.row{grid-template-columns:repeat(6,minmax(0,1fr))}.span-1,.span-2{grid-column:span 2}.span-3,.span-4,.span-5,.span-6{grid-column:span 3}.span-7,.span-8,.span-9,.span-10,.span-11,.span-12{grid-column:span 6}}@media (width<=599px){.header,.filter-bar{padding:var(--space-4) var(--space-4) 0}.chips{padding:var(--space-2) var(--space-4) 0}.grid{padding:var(--space-4)}.row{grid-template-columns:1fr}.span-1,.span-2,.span-3,.span-4,.span-5,.span-6,.span-7,.span-8,.span-9,.span-10,.span-11,.span-12{grid-column:span 1}}@media (prefers-reduced-motion:reduce){:root{--motion:0s linear}}.footer{padding:0 var(--space-6) var(--space-6)}.about-data{border-top:1px solid var(--color-border);padding-top:var(--space-2);color:var(--color-muted);font-size:.75rem}.about-summary{cursor:pointer;min-height:1.5rem;color:var(--color-muted);padding:.25rem 0;font-weight:500;display:inline-block}.about-summary:focus-visible{outline:2px solid var(--color-accent);outline-offset:2px}.about-body{margin-top:var(--space-2);padding:var(--space-4);background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius);color:var(--color-text)}.about-heading{margin:var(--space-2) 0 var(--space-1);color:var(--color-muted);font-size:.75rem;font-weight:600}.about-heading:first-child{margin-top:0}.about-list{margin:0;padding-left:1.25rem}.about-note{margin:var(--space-2) 0 0;color:var(--color-muted)}@media print{@page{margin:12mm}:root,:root[data-theme=dark]{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--color-canvas:#fff;--color-surface:#fff;--color-text:#111827;--color-muted:#4b5563;--color-border:#d1d5db;--color-gridline:#e5e7eb}body{color:#111827;-webkit-print-color-adjust:exact;print-color-adjust:exact;background:#fff}.filter-bar,.chips,.tile-menu{display:none}.header{break-after:avoid;page-break-after:avoid}.tile{break-inside:avoid;page-break-inside:avoid}.table-wrap{max-height:none;overflow:visible}.data-table th{position:static}}
38
+ /*$vite$:1*/</style>
39
+ </head>
40
+ <body>
41
+ <!--flatbi:body-->
42
+ </body>
43
+ </html>