@worm-print-platform/echarts 1.5.3 → 1.6.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.
- package/README.md +41 -1
- package/dist/bind.d.ts +1 -1
- package/dist/browser/executor.iife.d.ts +1 -1
- package/dist/browser-bundle.d.ts +1 -1
- package/dist/config.d.ts +3 -1
- package/dist/constants.d.ts +5 -1
- package/dist/defaults.d.ts +1 -1
- package/dist/echarts.d.ts +1 -1
- package/dist/echarts.js +38 -14
- package/dist/executor.iife.global.d.ts +1 -1
- package/dist/executor.iife.global.js +29 -17
- package/dist/i18n/en-US.json +153 -0
- package/dist/i18n/th-TH.json +153 -0
- package/dist/i18n/zh-CN.json +153 -0
- package/dist/index.cjs +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +12 -12
- package/dist/kinds.d.ts +6 -2
- package/dist/kit.cjs +2 -2
- package/dist/kit.d.ts +3 -1
- package/dist/kit.js +45 -148
- package/dist/label.d.ts +65 -0
- package/dist/marketplace.d.ts +1 -1
- package/dist/marketplace.js +1361 -126
- package/dist/node.cjs +93 -39
- package/dist/node.d.ts +1 -1
- package/dist/node.js +93 -39
- package/dist/normalize.d.ts +1 -1
- package/dist/option-utils.d.ts +1 -1
- package/dist/plugin-8R67OtBD.cjs +6 -0
- package/dist/plugin-CKyaiHYF.js +960 -0
- package/dist/plugin.d.ts +1 -1
- package/dist/renderer.d.ts +1 -1
- package/dist/test-setup.d.ts +7 -0
- package/dist/type-augmentation.d.ts +1 -1
- package/dist/ui.cjs +1973 -87
- package/dist/ui.d.ts +1 -1
- package/dist/ui.js +1953 -86
- package/dist/units.d.ts +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +29 -3
- package/dist/plugin-Bf6QDbHO.cjs +0 -6
- package/dist/plugin-CUoE2jMs.js +0 -573
package/dist/echarts.js
CHANGED
|
@@ -1,20 +1,44 @@
|
|
|
1
|
-
(function(es){typeof define=="function"&&define.amd?define(es):es()})((function(){"use strict";function es(){let t=0;return function(){return t+=1,`cell-${Date.now().toString(36)}-${t}`}}function ET(){let t=0;return function(){return t+=1,`row-${Date.now().toString(36)}-${t}`}}const kT=es(),RT=ET(),ts={width:.75,style:"solid",color:"#333333"};function OT(t){return{id:kT(),borders:{top:{...ts},right:{...ts},bottom:{...ts},left:{...ts}},...t}}function NT(){const t=[50,50,50],e=(n,i)=>({id:RT(),type:n,height:8,...i!==void 0?{repeatOnPage:i}:{},cells:t.map(()=>OT())}),r=e("header",!0);return r.cells.forEach((n,i)=>{n.formatter=`列${i+1}`,n.align="center",n.fontWeight="bold"}),{rows:[r,e("data"),e("subtotal"),e("summary")],colWidths:t}}const ep=Symbol.for("worm-print-platform.element-capabilities.v1"),tp=globalThis;function mi(){const t=tp[ep];if(t)return t;const e={entries:new Map,nextSeq:0,bootstrapped:!1};return tp[ep]=e,BT(e),e}const qu=Object.freeze({text:{zoneAllowed:!0,defaultTextFit:"clip",bindings:[{targetPath:"options.formatter",label:"内容",dataSource:"main"}],defaultOptions:()=>({formatter:"文本",exampleValue:"示例文本",fontSize:12,textAlign:"left",height:5.3}),title:"文本"},longText:{defaultTextFit:"autoHeight",bindings:[{targetPath:"options.formatter",label:"内容",dataSource:"main"},{targetPath:"options.styler",label:"样式",dataSource:"main"}],defaultOptions:()=>({width:141.1,height:28.2,fontSize:12,lineHeight:18,exampleValue:"示例长文本内容"}),title:"长文"},barcode:{zoneAllowed:!0,codeRotationDpiGated:!0,bindings:[{targetPath:"options.formatter",label:"内容",dataSource:"main"}],defaultOptions:()=>({width:56.4,height:14.1,title:"条形码",barcodeType:"code128",testData:"12345678",exampleValue:"12345678"}),title:"条形码"},qrcode:{zoneAllowed:!0,codeRotationDpiGated:!0,bindings:[{targetPath:"options.formatter",label:"内容",dataSource:"main"}],defaultOptions:()=>({width:28.2,height:28.2,title:"二维码",testData:"qrcode",exampleValue:"qrcode"}),title:"二维码"},image:{zoneAllowed:!0,bindings:[{targetPath:"options.src",label:"内容",dataSource:"main",placeholder:"输入图片路径,支持 /docfiles/... 相对路径、绝对 URL 或 {字段} 表达式"}],defaultOptions:()=>({width:28.2,height:28.2,fit:"contain"}),title:"图片"},table:{rotationExcluded:!0,acceptsElementBorder:!1,bindings:[],defaultOptions:()=>{const{rows:t,colWidths:e}=NT(),r=e.reduce((i,a)=>i+a,0),n=t.reduce((i,a)=>i+a.height,0);return{width:r,height:n,tableMode:"dynamic",tableRows:t,tableColWidths:e,tableDefaultFontSize:10,tableDefaultColor:"#333333",tableDefaultPadding:1,fields:[],tablePagination:{enabled:!0}}},title:"表格"},flowList:{rotationExcluded:!0,defaultTextFit:"clip",bindings:[{targetPath:"options.formatter",label:"单元模板",dataSource:"main",placeholder:"{drugs.name} {drugs.spec}"}],defaultOptions:()=>({width:141.1,height:21.2,fontSize:12,formatter:"{name} {spec}",flowColumns:4,flowRowHeight:8,flowGapX:4,flowAutoSpan:!1,flowMaxSpan:2,flowLayoutMode:"fixed",flowPaddingTop:0,flowPaddingRight:0,flowPaddingBottom:0,flowPaddingLeft:0}),title:"流式列表"},hline:{zoneAllowed:!0,acceptsElementBorder:!1,defaultOptions:()=>({width:70.6,height:1.8,borderWidth:.75}),title:"横线"},vline:{zoneAllowed:!0,acceptsElementBorder:!1,defaultOptions:()=>({width:1.8,height:35.3,borderWidth:.75}),title:"竖线"},rect:{zoneAllowed:!0,acceptsElementBorder:!1,defaultOptions:()=>({width:28.2,height:28.2,borderWidth:1,borderColor:"#333"}),title:"矩形"},oval:{zoneAllowed:!0,acceptsElementBorder:!1,defaultOptions:()=>({width:28.2,height:28.2,borderWidth:1,borderColor:"#333"}),title:"椭圆"},html:{blocked:!0,defaultOptions:()=>({width:28.2,height:28.2}),title:"HTML"},pageNumber:{title:"页码"}});function BT(t){if(!t.bootstrapped){t.bootstrapped=!0;for(const[e,r]of Object.entries(qu))t.entries.has(e)||t.entries.set(e,{caps:r,seq:t.nextSeq++})}}function FT(t,e){if(!t||typeof t!="string")throw new Error("registerElementCapabilities: type 必须是非空字符串");if(!e||typeof e!="object")throw new Error("registerElementCapabilities: caps 必须是对象");const r=mi(),n=r.nextSeq++;return r.entries.set(t,{caps:e,seq:n}),()=>{if(mi().entries.get(t)?.caps!==e)return;const a=qu[t];a?mi().entries.set(t,{caps:a,seq:n}):mi().entries.delete(t)}}function rp(t){return t?{...mi().entries.get(t)?.caps??{},type:t}:{type:""}}function np(){return[...mi().entries.entries()].sort((t,e)=>t[1].seq-e[1].seq).map(([t])=>t)}const ip=Symbol.for("worm-print-platform.element-plugin-registry.v1"),ap=globalThis;function rs(){const t=ap[ip];if(t)return t;const e={plugins:new Map,typeIndex:new Map,configs:new Map,legacyAliases:new Map};return ap[ip]=e,e}function op(t){if(!t?.id||typeof t.id!="string")throw new Error("defineElementPlugin: id 必须是非空字符串");if(!t.version||typeof t.version!="string")throw new Error("defineElementPlugin: version 必须是非空字符串");if(!Array.isArray(t.kinds)||t.kinds.length===0)throw new Error("defineElementPlugin: kinds 必须是非空数组");const e=new Set;for(const r of t.kinds){if(!r?.type||typeof r.type!="string")throw new Error("defineElementPlugin: kinds[].type 必须是非空字符串");if(e.has(r.type))throw new Error(`defineElementPlugin: kinds 内 type 重复「${r.type}」`);e.add(r.type)}}function zT(t){return op(t),t}function sp(t){op(t);const e=rs();for(const[n,i]of[...e.typeIndex])i.plugin.id===t.id&&i.plugin!==t&&e.typeIndex.delete(n);e.plugins.set(t.id,t);for(const n of t.kinds)e.typeIndex.set(n.type,{plugin:t,kind:n});const r=[];for(const n of t.kinds){const i={...n.fixedHeight===!0?{fixedHeight:!0}:{},...n.blocked===!0?{blocked:!0}:{},...n.capabilities??{}};Object.keys(i).length!==0&&r.push(FT(n.type,i))}for(const[n,i]of Object.entries(t.legacyAliases??{}))e.legacyAliases.set(n,i);return()=>{if(e.plugins.get(t.id)===t){e.plugins.delete(t.id);for(const[n,i]of[...e.typeIndex])i.plugin===t&&e.typeIndex.delete(n);for(const n of r)n()}}}function VT(t){return rs().plugins.get(t)}function GT(t,e){const r=rs();r.configs.set(t,{...r.configs.get(t)??{},...e})}function HT(t){return{...rs().configs.get(t)??{}}}function UT(){return np().filter(t=>rp(t).blocked===!0)}UT();function WT(){return np().filter(t=>rp(t).zoneAllowed===!0)}WT();const YT=new Set(["constructor","__proto__","prototype","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__"]),$T=new Set(["new","function","class","this","delete","typeof","void","in","of","var","let","const","return","if","while","for"]);function Zu(t){const e=[];let r=0;const n=t.length;for(;r<n;){const i=t[r];if(/\s/.test(i)){r++;continue}if(/[0-9]/.test(i)||i==="."&&r+1<n&&/[0-9]/.test(t[r+1])){let s=r;for(;s<n&&/[0-9.]/.test(t[s]);)s++;e.push({type:"num",value:t.slice(r,s),position:r}),r=s;continue}if(i==="'"||i==='"'){let s=r+1,l="";for(;s<n&&t[s]!==i;)t[s]==="\\"&&s+1<n?(l+=t[s+1],s+=2):(l+=t[s],s++);if(s>=n)throw new Error("字符串未闭合");e.push({type:"str",value:l,position:r}),r=s+1;continue}if(/[A-Za-z_$\u4e00-\u9fff]/.test(i)){let s=r;for(;s<n&&/[A-Za-z0-9_$\u4e00-\u9fff]/.test(t[s]);)s++;const l=t.slice(r,s);if($T.has(l))throw new Error(`不允许使用关键字: ${l}`);if(YT.has(l))throw new Error(`禁止访问: ${l}`);l==="true"||l==="false"?e.push({type:"bool",value:l,position:r}):e.push({type:"ident",value:l,position:r}),r=s;continue}const a=t.slice(r,r+3);if(a==="==="||a==="!=="){e.push({type:"punc",value:a,position:r}),r+=3;continue}const o=t.slice(r,r+2);if(o==="=>")throw new Error("不允许函数定义");if(["==","!=","<=",">=","&&","||"].includes(o)){e.push({type:"punc",value:o,position:r}),r+=2;continue}if(i==="=")throw new Error("不允许赋值");if(i===";")throw new Error("不允许多条语句");if("+-*/%()[]{},:.?!<>".includes(i)){e.push({type:"punc",value:i,position:r}),r++;continue}throw new Error(`非法字符: ${i}`)}return e}function Ku(t){return new XT(t).parse()}class XT{constructor(e){this.pos=0,this.tokens=e}parse(){const e=this.parseTernary();if(this.pos<this.tokens.length)throw new Error(`表达式存在多余内容: ${this.tokens[this.pos].value}`);return e}peek(){return this.tokens[this.pos]}next(){const e=this.tokens[this.pos++];if(!e)throw new Error("表达式意外结束");return e}eatPunc(e){const r=this.peek();return r&&r.type==="punc"&&r.value===e?(this.pos++,!0):!1}expectPunc(e){if(!this.eatPunc(e)){const r=this.peek()?.position??0;throw new Error(`位置 ${r}: 期望 "${e}"`)}}parseTernary(){const e=this.parseLogicalOr();if(this.eatPunc("?")){const r=this.parseTernary();this.expectPunc(":");const n=this.parseTernary();return{type:"ternary",cond:e,consequent:r,alternate:n}}return e}parseLogicalOr(){let e=this.parseLogicalAnd();for(;this.eatPunc("||");){const r=this.parseLogicalAnd();e={type:"binary",op:"||",left:e,right:r}}return e}parseLogicalAnd(){let e=this.parseEquality();for(;this.eatPunc("&&");){const r=this.parseEquality();e={type:"binary",op:"&&",left:e,right:r}}return e}parseEquality(){let e=this.parseRelational();for(;;){const r=this.peek();if(r?.type==="punc"&&["==","!=","===","!=="].includes(r.value)){this.pos++;const n=this.parseRelational();e={type:"binary",op:r.value,left:e,right:n}}else return e}}parseRelational(){let e=this.parseAdditive();for(;;){const r=this.peek();if(r?.type==="punc"&&["<",">","<=",">="].includes(r.value)){this.pos++;const n=this.parseAdditive();e={type:"binary",op:r.value,left:e,right:n}}else return e}}parseAdditive(){let e=this.parseMultiplicative();for(;;){const r=this.peek();if(r?.type==="punc"&&(r.value==="+"||r.value==="-")){this.pos++;const n=this.parseMultiplicative();e={type:"binary",op:r.value,left:e,right:n}}else return e}}parseMultiplicative(){let e=this.parseUnary();for(;;){const r=this.peek();if(r?.type==="punc"&&["*","/","%"].includes(r.value)){this.pos++;const n=this.parseUnary();e={type:"binary",op:r.value,left:e,right:n}}else return e}}parseUnary(){const e=this.peek();if(e?.type==="punc"&&["!","-","+"].includes(e.value)){this.pos++;const r=this.parseUnary();return{type:"unary",op:e.value,arg:r,prefix:!0}}return this.parsePostfix()}parsePostfix(){let e=this.parsePrimary();for(;;)if(this.eatPunc(".")){const r=this.next();if(r.type!=="ident")throw new Error(`位置 ${r.position}: 成员访问需要属性名`);e={type:"member",object:e,property:r.value,computed:!1}}else if(this.eatPunc("[")){const r=this.parseTernary();this.expectPunc("]"),r.type==="str"?e={type:"member",object:e,property:r.value,computed:!1}:e={type:"member",object:e,property:r.name??String(r.value),computed:!0}}else if(this.peek()?.type==="punc"&&this.peek()?.value==="("&&(e.type==="ident"||e.type==="member")){this.pos++;const r=this.parseArgs();e={type:"call",callee:e,args:r}}else return e}parseArgs(){const e=[];if(this.eatPunc(")"))return e;for(;;){if(e.push(this.parseTernary()),this.eatPunc(")"))return e;this.expectPunc(",")}}parsePrimary(){const e=this.next();if(e.type==="num"){const r=Number(e.value);if(isNaN(r))throw new Error(`非法数字: ${e.value}`);return{type:"num",value:r}}if(e.type==="str")return{type:"str",value:e.value};if(e.type==="bool")return{type:"bool",value:e.value==="true"};if(e.type==="ident")return{type:"ident",name:e.value};if(e.value==="("){const r=this.parseTernary();return this.expectPunc(")"),r}if(e.value==="["){const r=[];if(!this.eatPunc("]"))for(;r.push(this.parseTernary()),!this.eatPunc("]");)this.expectPunc(",");return{type:"array",elements:r}}if(e.value==="{"){const r=[];if(!this.eatPunc("}"))for(;;){const n=this.next();if(n.type!=="ident"&&n.type!=="str")throw new Error(`位置 ${n.position}: 对象键必须是标识符或字符串`);if(this.expectPunc(":"),r.push({key:n.value,value:this.parseTernary()}),this.eatPunc("}"))break;this.expectPunc(",")}return{type:"object",properties:r}}throw new Error(`位置 ${e.position}: 意外的符号: ${e.value}`)}}const lp=20,qT=8;function mt(t,e=0){if(typeof t=="number")return Number.isFinite(t)?t:e;if(typeof t=="string"){const r=t.trim();if(r==="")return e;const n=Number(r);return Number.isFinite(n)?n:e}return t==null?e:typeof t=="boolean"?t?1:0:e}function ZT(t){if(typeof t=="number")return Number.isFinite(t);if(typeof t=="string"){const e=t.trim();return e!==""&&Number.isFinite(Number(e))}return!1}function yi(t){return!Number.isFinite(t)||Number.isInteger(t)||Math.abs(t)>=1e15?t:Number(t.toPrecision(12))}function _i(t){if(!Number.isFinite(t)||Number.isInteger(t))return 0;const e=String(t);if(e.includes("e")||e.includes("E"))return 0;const r=e.indexOf(".");return r===-1?0:e.length-r-1}function ju(t,e){if(!Number.isFinite(t))return 0;const r=Math.min(Math.max(e,0),12);if(r===0)return Math.round(t);const n=10**r,i=t*n;return!Number.isFinite(i)||Math.abs(i)>=1e15?yi(t):Math.round(i)/n}function Qu(t,e){const r=mt(t),n=mt(e),i=r+n;return ju(i,Math.max(_i(r),_i(n)))}function Ju(t,e){const r=mt(t),n=mt(e),i=r-n;return ju(i,Math.max(_i(r),_i(n)))}function up(t,e){const r=mt(t),n=mt(e),i=r*n;return ju(i,_i(r)+_i(n))}function fp(t,e){const r=mt(t),n=mt(e);return n===0?0:yi(r/n)}function KT(t,e){const r=mt(t),n=mt(e);return n===0?0:yi(r%n)}function jT(t){if(t==null)return 2;const e=Math.trunc(mt(t,2));return Number.isFinite(e)?Math.min(Math.max(e,-lp),lp):2}function ns(t,e,r){const n=mt(t,0),i=jT(e);if(n===0)return 0;if(Math.abs(n)>=1e21)return yi(n);const a=Math.max(i,0)+qT,o=n.toFixed(a);if(!/^-?\d+(\.\d+)?$/.test(o))return yi(n);const s=o.startsWith("-"),l=o.replace("-","").replace(".","");let u=BigInt(l||"0");s&&(u=-u);const f=10n**BigInt(a-i),c=u<0n?-1n:1n,v=u<0n?-u:u;let h=v/f;const d=v%f,p=2n*d;r==="up"?d!==0n&&(h+=1n):r!=="down"&&p>=f&&(p>f||r==="half-up"||h%2n===1n)&&(h+=1n);const g=c*h;return yi(i>=0?Number(g)/10**i:Number(g)*10**-i)}const ef={Math,Number,String,Boolean,parseInt,parseFloat,isNaN,true:!0,false:!1,null:null,undefined:void 0},QT=new Set(["constructor","__proto__","prototype","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__"]),JT=new Set(["Number","String","Boolean","parseInt","parseFloat","isNaN"]);function et(t,e,r={}){switch(t.type){case"num":return t.value;case"str":return t.value;case"bool":return t.value;case"ident":return ex(t.name,e);case"binary":return tx(t,e,r);case"unary":return rx(t,e,r);case"ternary":return et(t.cond,e,r)?et(t.consequent,e,r):et(t.alternate,e,r);case"member":return ax(t,e,r);case"call":return ox(t,e,r);case"array":return t.elements.map(n=>et(n,e,r));case"object":return Object.fromEntries(t.properties.map(n=>[n.key,et(n.value,e,r)]))}}function ex(t,e,r){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];if(Object.prototype.hasOwnProperty.call(ef,t))return ef[t];throw new Error(`未定义的标识符: ${t}`)}function tx(t,e,r){const n=et(t.left,e,r),i=et(t.right,e,r);switch(t.op){case"+":return ix(n,i)?Qu(n,i):nx(n,i);case"-":return Ju(n,i);case"*":return up(n,i);case"/":return fp(n,i);case"%":return KT(n,i);case"<":return n<i;case">":return n>i;case"<=":return n<=i;case">=":return n>=i;case"==":return n==i;case"!=":return n!=i;case"===":return n===i;case"!==":return n!==i;case"&&":return n&&i;case"||":return n||i;default:throw new Error(`未知运算符: ${t.op}`)}}function rx(t,e,r){const n=et(t.arg,e,r);switch(t.op){case"-":return Ju(0,n);case"+":return mt(n);case"!":return!n;default:throw new Error(`未知一元运算符: ${t.op}`)}}function nx(t,e){return`${t==null?"":String(t)}${e==null?"":String(e)}`}function ix(t,e){const r=cp(t),n=cp(e);return r==="other"||n==="other"?!1:r==="num"||n==="num"}function cp(t){return t==null||t===""?"neutral":ZT(t)?"num":"other"}function ax(t,e,r){const n=et(t.object,e,r);if(n==null)throw new Error("无法访问空值的属性");if(QT.has(t.property))throw new Error(`禁止访问属性: ${t.property}`);return n[t.property]}function ox(t,e,r){if(t.callee.type==="ident"&&JT.has(t.callee.name)){const i=ef[t.callee.name],a=t.args.map(o=>et(o,e,r));return i(...a)}if(t.callee.type==="member"&&t.callee.object.type==="ident"&&t.callee.object.name==="Math"){const i=Math[t.callee.property];if(typeof i!="function")throw new Error(`Math.${t.callee.property} 不是方法`);const a=t.args.map(o=>et(o,e,r));return i(...a)}let n;if(t.callee.type==="ident")n=t.callee.name;else if(t.callee.type==="member")throw new Error("不支持方法调用,请使用顶级函数");if(n&&r[n]){const i=t.args.map(a=>et(a,e,r));return r[n](...i)}throw n&&Object.prototype.hasOwnProperty.call(e,n)?new Error(`${n} 不是函数`):new Error(`不允许调用: ${n??"表达式"}`)}function sx(t){const e=[];let r=0;const n=t.length;for(;r<n;){if(t[r]==="{"){let a=1,o=r+1;for(;o<n&&a>0;)t[o]==="{"?a++:t[o]==="}"&&a--,o++;if(a!==0)throw new Error(`位置 ${r}: 花括号未闭合`);const s=t.slice(r+1,o-1);if(s.trim()==="")throw new Error(`位置 ${r}: 空表达式`);const l=Zu(s),u=Ku(l);e.push({type:"expr",expression:u}),r=o;continue}let i=r;for(;i<n&&t[i]!=="{";)t[i]==="\\"&&i+1<n&&(t[i+1]==="{"||t[i+1]==="}")?i+=2:i++;e.push({type:"text",value:t.slice(r,i).replace(/\\([{}])/g,"$1")}),r=i}return{type:"template",parts:e}}function lx(t,e,r={}){let n="";for(const i of t.parts)if(i.type==="text")n+=i.value;else{const a=et(i.expression,e,r);n+=String(a??"")}return n}function hp(t,e={}){const r=sx(t);return n=>lx(r,n,e)}function tf(t,e){if(t==null||e==null)return;if(typeof t=="object"&&e in t)return t[e];const r=e.split(".");let n=t;for(const i of r){if(n==null)return;n=n[i]}return n}function vp(t){const e=Number(t);if(isNaN(e))return String(t);const r=e<0?"-":"",n=Math.abs(e),[i,a]=n.toFixed(2).split("."),o=i.replace(/\B(?=(\d{3})+(?!\d))/g,",");return`${r}${o}.${a}`}function dp(t,e){let r;if(t instanceof Date)r=t;else if(typeof t=="number")r=new Date(t);else if(typeof t=="string")r=new Date(t);else return String(t);if(isNaN(r.getTime()))return String(t);const n=i=>String(i).padStart(2,"0");return e.replace("YYYY",String(r.getFullYear())).replace("MM",n(r.getMonth()+1)).replace("DD",n(r.getDate())).replace("HH",n(r.getHours())).replace("mm",n(r.getMinutes())).replace("ss",n(r.getSeconds()))}const rf=["零","壹","贰","叁","肆","伍","陆","柒","捌","玖"],ux=["","拾","佰","仟"],fx=["","万","亿","万亿","亿亿"];function cx(t){let e="",r=!1;for(let n=3;n>=0;n--){const i=Math.floor(t/10**n)%10;if(i===0){e&&(r=!0);continue}r&&(e+="零",r=!1),e+=rf[i]+ux[n]}return e}function pp(t){const e=Number(t);if(isNaN(e))return String(t);if(e===0)return"零元整";const r=e<0?"负":"",[n,i]=Math.abs(e).toFixed(2).split("."),a=Math.ceil(n.length/4);let o="",s=!1;for(let f=a-1;f>=0;f--){const c=n.length-f*4,v=parseInt(n.slice(Math.max(0,c-4),c),10);if(v===0){o&&(s=!0);continue}o&&(s||v<1e3)&&(o+="零"),s=!1,o+=cx(v)+(fx[f]??"")}o=`${o||"零"}元`;const l=parseInt(i[0],10),u=parseInt(i[1],10);return l===0&&u===0?o+="整":(l===0?o+="零":o+=rf[l]+"角",u>0&&(o+=rf[u]+"分")),r+o}function gp(t,e,r){return t?e:r}function mp(t,e){return t.reduce((r,n)=>r+(Number(tf(n,e))||0),0)}function hx(t,e){return t.length===0?0:mp(t,e)/t.length}function vx(t,e){return t.length}function dx(t,e){return t.length===0?0:Math.min(...t.map(r=>Number(tf(r,e))||0))}function px(t,e){return t.length===0?0:Math.max(...t.map(r=>Number(tf(r,e))||0))}function yp(...t){return t.reduce((e,r)=>Qu(e,r),0)}function _p(...t){return t.length===0?0:t.slice(1).reduce((e,r)=>Ju(e,r),Qu(t[0],0))}function Sp(...t){return t.length===0?0:t.reduce((e,r)=>up(e,r),1)}function bp(t,e){return fp(t,e)}function wp(t,e){return ns(t,e,"half-up")}function is(t,e){return ns(t,e,"up")}function as(t,e){return ns(t,e,"down")}function Tp(t,e){return ns(t,e,"half-even")}class gx{constructor(){this.functions={}}registerFunction(e,r){this.functions[e]=r}evaluate(e,r){const n=Zu(e),i=Ku(n);return et(i,r,this.functions)}render(e,r){return hp(e,this.functions)(r)}}const xp=new gx,mx={MONEY:vp,DATE:dp,UPPER:pp,IF:gp,CONCAT:(...t)=>t.filter(e=>e!=null).map(String).join(""),IFEMPTY:(t,e)=>t!=null&&t!==""?String(t):e,LEN:t=>String(t).length,ADD:yp,SUB:_p,MUL:Sp,DIV:bp,ROUND:wp,ROUNDUP:is,CEIL:is,ROUNDDOWN:as,FLOOR:as,ROUNDBANK:Tp};for(const[t,e]of Object.entries(mx))xp.registerFunction(t,e);function yx(t,e,r){switch(t.toUpperCase()){case"SUM":return mp(r,e);case"AVG":return hx(r,e);case"COUNT":return vx(r);case"MIN":return dx(r,e);case"MAX":return px(r,e);default:return 0}}function _x(t,e,r){if(!t)return"";if(!t.includes("{"))return t;const n=Array.isArray(e.rows)?e.rows:[],i=t.replace(/\{([^}]+)\}/g,(a,o)=>{let s=o.trim();return s=s.replace(/\b(SUM|AVG|COUNT|MIN|MAX)\(([^)]+)\)/g,(l,u,f)=>{const c=f.trim().replace(/^['"]|['"]$/g,"");return String(yx(u,c,n))}),`{${s}}`});try{return xp.render(i,e)}catch{return r??t}}class Sx{constructor(e){this.functions={},e?.functions&&(this.functions={...e.functions})}registerFunction(e,r){this.functions[e]=r}evaluate(e,r){const n=Zu(e),i=Ku(n);return et(i,r,this.functions)}render(e,r){return hp(e,this.functions)(r)}}const bx=new Sx,Tx={MONEY:vp,CONCAT:(...t)=>t.filter(e=>e!=null).join(""),IF:gp,FORMAT:t=>typeof t!="number"?String(t):t.toLocaleString("zh-CN",{minimumFractionDigits:2,maximumFractionDigits:2}),SUBSTR:(t,e,r)=>String(t).slice(e,r?e+r:void 0),LEN:t=>String(t).length,ADD:yp,SUB:_p,MUL:Sp,DIV:bp,ROUND:wp,ROUNDUP:is,CEIL:is,ROUNDDOWN:as,FLOOR:as,ROUNDBANK:Tp,NOW:()=>new Date().toISOString().split("T")[0],IFEMPTY:(t,e)=>t!=null&&t!==""?String(t):e,PAD:(t,e,r)=>String(t).padStart(e,r),REPLACE:(t,e,r)=>String(t).replace(new RegExp(e,"g"),r),JSON:t=>JSON.stringify(t,null,2),DATE:dp,UPPER:pp};for(const[t,e]of Object.entries(Tx))bx.registerFunction(t,e);Object.fromEntries(Object.entries(qu).filter(([,t])=>t.bindings!==void 0).map(([t,e])=>[t,[...e.bindings??[]]]));const sr=["left","top","width","height","chartOption"],os=["dataSource","categoryField","valueFields","seriesField"],lr=["title","legend","palette"],ss=[{type:"barChart",label:"柱状图",icon:"ChartColumn",seriesType:"bar",orientation:"vertical",fields:[...os,...lr,"stack"],requiredOptionKeys:sr,defaultWidth:100,defaultHeight:60,notes:"柱状图:类目 + 多个数值字段,每字段一个 series;series[].data 写 $data 占位;固定高,禁止 autoHeight"},{type:"barHChart",label:"条形图",icon:"ChartBar",seriesType:"bar",orientation:"horizontal",fields:[...os,...lr,"stack"],requiredOptionKeys:sr,defaultWidth:100,defaultHeight:60,notes:"横向条形图:xAxis 为数值、yAxis 为类目;类目写 yAxis.data 的 $data 占位"},{type:"lineChart",label:"折线图",icon:"ChartLine",seriesType:"line",fields:[...os,...lr,"stack"],requiredOptionKeys:sr,defaultWidth:100,defaultHeight:60,notes:"折线图:类目 + 多个数值字段;不写 areaStyle"},{type:"areaChart",label:"面积图",icon:"ChartArea",seriesType:"line",fields:[...os,...lr,"stack"],requiredOptionKeys:sr,defaultWidth:100,defaultHeight:60,notes:"面积图:折线 + series[].areaStyle;其余同折线图"},{type:"pieChart",label:"饼图",icon:"ChartPie",seriesType:"pie",fields:["dataSource","categoryField","valueFields",...lr],requiredOptionKeys:sr,defaultWidth:60,defaultHeight:60,notes:"饼图:类目 + 首个数值字段生成 { name, value };只需一个数值字段"},{type:"doughnutChart",label:"环形图",icon:"Donut",seriesType:"pie",fields:["dataSource","categoryField","valueFields",...lr,"innerRadius"],requiredOptionKeys:sr,defaultWidth:60,defaultHeight:60,notes:"环形图:饼图 + radius:[内径,外径];内径由面板配置"},{type:"scatterChart",label:"散点图",icon:"ChartScatter",seriesType:"scatter",fields:["dataSource","categoryField","valueFields",...lr,"bubble"],requiredOptionKeys:sr,defaultWidth:80,defaultHeight:60,notes:"散点图:类目字段作 x、首个数值字段作 y;chartBubble 开启时用第二个数值字段作点大小"},{type:"radarChart",label:"雷达图",icon:"Radar",seriesType:"radar",fields:["dataSource","categoryField","valueFields",...lr,"radius"],requiredOptionKeys:sr,defaultWidth:70,defaultHeight:60,notes:"雷达图:每个数值字段是一个维度(radar.indicator),每行数据是一个系列(类目字段作系列名);半径由面板写 radar.radius(%,默认 75)"},{type:"funnelChart",label:"漏斗图",icon:"Funnel",seriesType:"funnel",fields:["dataSource","categoryField","valueFields",...lr,"padding"],requiredOptionKeys:sr,defaultWidth:60,defaultHeight:60,notes:"漏斗图:类目 + 首个数值字段,按数值降序;四边内边距由面板写 series.left/right/top/bottom(%,右侧需留外置标签空间)"},{type:"gaugeChart",label:"仪表盘",icon:"Gauge",seriesType:"gauge",fields:["dataSource","valueFields",...lr,"gaugeRange"],requiredOptionKeys:sr,defaultWidth:60,defaultHeight:60,notes:"仪表盘:取首行数据的首个数值字段作指针值;min/max 由面板写入 series[0].min/max"}],Cp=ss.map(t=>t.type);function ur(t){return ss.find(e=>e.type===t)}function Ap(t){return ur(t)?.fields??[]}function xx(t){const e=typeof t=="number"?t:Number(t);return Number.isFinite(e)?e:0}function nf(t,e){if(typeof t=="string")return t.startsWith("$data")?t:t.includes("{")?_x(t,e):t;if(Array.isArray(t))return t.map(r=>nf(r,e));if(t&&typeof t=="object"){const r={};for(const[n,i]of Object.entries(t))r[n]=nf(i,e);return r}return t}function Si(t){return Array.isArray(t.data)&&t.data.includes("$data")}function Cx(t,e){const r=t.dataSource;if(typeof r=="string"&&Array.isArray(e[r]))return e[r];for(const n of Object.values(e))if(Array.isArray(n))return n;return[]}function Dp(t){return typeof t=="string"&&t.length>0?t:void 0}function Ax(t){return Array.isArray(t)?t.filter(e=>typeof e=="string"&&e.length>0):[]}function ba(t){return Array.isArray(t.series)?t.series:[]}function fr(t,e){return e?xx(t[e]):0}function Mp(t,e){for(const r of["xAxis","yAxis"]){const n=t[r],i=Array.isArray(n)?n:n?[n]:[];for(const a of i)a&&typeof a=="object"&&Array.isArray(a.data)&&a.data.includes("$data")&&(a.data=[...e])}}function Dx(t,e,r,n,i){const a=ba(t);if(!a.some(Si))return;const o=e.map((u,f)=>r?u[r]:f+1),s=u=>n[Math.min(u,n.length-1)];if(i){const u=a[0],f=new Map;for(const v of e){const h=String(v[i]??""),d=f.get(h)??new Map,p=String(v[r??""]);d.set(p,(d.get(p)??0)+fr(v,s(0))),f.set(h,d)}const c=[...new Set(o)];t.series=[...f.entries()].map(([v,h])=>({...u,name:v,data:c.map(d=>h.get(String(d))??null)})),Mp(t,c);return}const l=a[a.length-1];for(;a.length<n.length;)a.push({...l,data:["$data"]});t.series=a.map((u,f)=>Si(u)?{...u,data:e.map(c=>fr(c,s(f)))}:u),Mp(t,o)}function Ip(t,e,r,n,i){const a=ba(t);if(!a.some(Si))return;const o=e.map(s=>({name:r?String(s[r]??""):"",value:fr(s,n)}));i&&o.sort((s,l)=>l.value-s.value),t.series=a.map(s=>({...s,data:o}))}function Mx(t,e,r,n,i){const a=ba(t);if(!a.some(Si))return;const o=n[0],s=i?n[1]:void 0,l=s?e.map(v=>fr(v,s)):[],u=l.length>0?Math.min(...l):0,f=l.length>0?Math.max(...l):0,c=v=>f===u?12:Math.round(6+(v-u)/(f-u)*18);t.series=a.map(v=>({...v,data:e.map(h=>{const d=[fr(h,r),fr(h,o)];return s?{value:d,symbolSize:c(fr(h,s))}:d})}))}function Ix(t){if(t<=0)return 10;const e=10**Math.floor(Math.log10(t)),r=e>=10?e:10;return Math.ceil(t/r)*r}function Lx(t,e,r,n){const i=ba(t);if(!i.some(Si))return;const a=n.map(o=>Math.max(0,...e.map(s=>fr(s,o))));t.radar={...t.radar??{},indicator:n.map((o,s)=>({name:o,max:Ix(a[s])}))},t.series=i.map(o=>({...o,data:e.map(s=>({name:r?String(s[r]??""):"",value:n.map(l=>fr(s,l))}))}))}function Px(t,e,r){const n=ba(t);if(!n.some(Si))return;const i=e[0]??{};t.series=n.map(a=>({...a,data:[{value:fr(i,r),name:r}]}))}function Lp(t,e,r){const n=e.chartOption;if(!n||typeof n!="object"||Array.isArray(n))return{};const i=nf(n,r),a=Ax(e.chartValueFields);if(a.length===0)return{_chartOption:i};const o=Cx({...e,dataSource:e.chartDataSource??e.dataSource},r);if(o.length===0)return{_chartOption:i};const s=Dp(e.chartCategoryField);switch(ur(t)?.seriesType){case"radar":Lx(i,o,s,a);break;case"gauge":Px(i,o,a[0]);break;case"funnel":Ip(i,o,s,a[0],!0);break;case"pie":Ip(i,o,s,a[0],!1);break;case"scatter":Mx(i,o,s,a,e.chartBubble===!0);break;default:Dx(i,o,s,a,Dp(e.chartSeriesField));break}return{_chartOption:i}}const wa="@worm-print-platform/echarts",af=[{key:"default",label:"默认蓝",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de"]},{key:"fresh",label:"清新绿",colors:["#2f9e6e","#5cc9a7","#9ad6c1","#f2c94c","#4a90e2"]},{key:"warm",label:"暖橙红",colors:["#f2704e","#f7a35c","#f7d56d","#c54e3f","#8f5a4a"]},{key:"purple",label:"紫灰",colors:["#7b61ff","#9b8cff","#c3baff","#596275","#8d99ae"]}],Ex=["示例一","示例二","示例三"],Pp={top:6,right:25,bottom:6,left:5},Ep=75,kx=50,ls={top:60,right:80,bottom:65,left:80},kp={left:"8%",right:"8%",bottom:"12%",top:"18%",containLabel:!0};function Rx(t){return{top:`${t.top}%`,right:`${t.right}%`,bottom:`${t.bottom}%`,left:`${t.left}%`}}function us(t){const e=ur(t),r={text:""};switch(e?.seriesType){case"pie":return{title:r,tooltip:{trigger:"item"},series:[{type:"pie",name:"数量",data:["$data"],radius:t==="doughnutChart"?["40%","70%"]:"62%"}]};case"scatter":return{title:r,grid:kp,tooltip:{trigger:"axis"},xAxis:{type:"value"},yAxis:{type:"value"},series:[{type:"scatter",name:"数量",data:["$data"],symbolSize:8}]};case"radar":return{title:r,tooltip:{trigger:"item"},radar:{indicator:[],radius:`${Ep}%`},series:[{type:"radar",name:"数量",data:["$data"]}]};case"funnel":return{title:r,tooltip:{trigger:"item"},legend:{show:!1},series:[{type:"funnel",name:"数量",data:["$data"],sort:"descending",...Rx(Pp)}]};case"gauge":return{title:r,tooltip:{trigger:"item"},series:[{type:"gauge",name:"数量",min:0,max:100,data:[{value:0,name:"数量"}]}]};default:{const n=e?.orientation==="horizontal",i=e?.seriesType==="line"&&t==="areaChart",a=e?.seriesType==="line"?"line":"bar";return{title:r,grid:kp,tooltip:{trigger:"axis"},xAxis:n?{type:"value"}:{type:"category",data:["$data"]},yAxis:n?{type:"category",data:["$data"]}:{type:"value"},series:[{type:a,name:"数量",data:["$data"],...i?{areaStyle:{}}:{}}]}}}}function Ox(t){GT(wa,t)}function Ta(){return HT(wa)}function Rp(){const t=Ta().palettes??{},e=af.map(n=>{const i=t[n.key];return i?{key:n.key,label:i.label??n.label,colors:i.colors}:{key:n.key,label:n.label,colors:n.colors}}),r=Object.entries(t).filter(([n])=>!af.some(i=>i.key===n)).map(([n,i])=>({key:n,label:i.label??n,colors:i.colors}));return[...e,...r]}function Op(){const t=Ta().sampleCategories;return Array.isArray(t)&&t.length>0?t:Ex}function Np(t,e){const r=Ta(),n=ur(t);return{width:typeof r.defaultWidth=="number"?r.defaultWidth:n?.defaultWidth??100,height:typeof r.defaultHeight=="number"?r.defaultHeight:n?.defaultHeight??60,title:n?.label??"图表",chartOption:us(t),chartDataSource:"",chartCategoryField:"name",chartValueFields:["value"],chartSeriesField:"",...e}}var of=function(t,e){return of=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},of(t,e)};function V(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");of(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var sf=12,Bp="sans-serif",Pr=sf+"px "+Bp,Nx=20,Bx=100,Fx="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function zx(t){var e={};if(typeof JSON>"u")return e;for(var r=0;r<t.length;r++){var n=String.fromCharCode(r+32),i=(t.charCodeAt(r)-Nx)/Bx;e[n]=i}return e}var Vx=zx(Fx),cr={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var t,e;return function(r,n){if(!t){var i=cr.createCanvas();t=i&&i.getContext("2d")}if(t)return e!==n&&(e=t.font=n||Pr),t.measureText(r);r=r||"",n=n||Pr;var a=/((?:\d+)?\.?\d*)px/.exec(n),o=a&&+a[1]||sf,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=Vx[r[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(t,e,r){var n=new Image;return n.onload=e,n.onerror=r,n.src=t,n},getTime:function(){return Date.now?Date.now():+new Date}},Fp=qr(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),zp=qr(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),xa=Object.prototype.toString,fs=Array.prototype,Gx=fs.forEach,Hx=fs.filter,lf=fs.slice,Ux=fs.map,Vp=(function(){}).constructor,cs=Vp?Vp.prototype:null,uf="__proto__",ff=2311,Wx=Math.pow(2,53)-1;function Gp(){return ff>=Wx&&(ff=0),ff++}function Hp(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function oe(t){if(t==null||typeof t!="object")return t;var e=t,r=xa.call(t);if(r==="[object Array]"){if(!Da(t)){e=[];for(var n=0,i=t.length;n<i;n++)e[n]=oe(t[n])}}else if(zp[r]){if(!Da(t)){var a=t.constructor;if(a.from)e=a.from(t);else{e=new a(t.length);for(var n=0,i=t.length;n<i;n++)e[n]=t[n]}}}else if(!Fp[r]&&!Da(t)&&!Ca(t)){e={};for(var o in t)t.hasOwnProperty(o)&&o!==uf&&(e[o]=oe(t[o]))}return e}function be(t,e,r){if(!j(e)||!j(t))return r?oe(e):t;for(var n in e)if(e.hasOwnProperty(n)&&n!==uf){var i=t[n],a=e[n];j(a)&&j(i)&&!W(a)&&!W(i)&&!Ca(a)&&!Ca(i)&&!Wp(a)&&!Wp(i)&&!Da(a)&&!Da(i)?be(i,a,r):(r||!(n in t))&&(t[n]=oe(e[n]))}return t}function z(t,e){if(Object.assign)Object.assign(t,e);else for(var r in e)e.hasOwnProperty(r)&&r!==uf&&(t[r]=e[r]);return t}function Yx(t,e,r){t=t||{};for(var n=0;n<r.length;n++){var i=r[n];t[i]=e[i]}return t}function le(t,e,r){for(var n=ce(e),i=0,a=n.length;i<a;i++){var o=n[i];t[o]==null&&(t[o]=e[o])}return t}function fe(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r}return-1}function $x(t,e){var r=t.prototype;function n(){}n.prototype=e.prototype,t.prototype=new n;for(var i in r)r.hasOwnProperty(i)&&(t.prototype[i]=r[i]);t.prototype.constructor=t,t.superClass=e}function Ut(t,e,r){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),i=0;i<n.length;i++){var a=n[i];a!=="constructor"&&t[a]==null&&(t[a]=e[a])}else le(t,e)}function ut(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function I(t,e,r){if(t&&e)if(t.forEach&&t.forEach===Gx)t.forEach(e,r);else if(t.length===+t.length)for(var n=0,i=t.length;n<i;n++)e.call(r,t[n],n,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(r,t[a],a,t)}function $(t,e,r){if(!t)return[];if(!e)return vf(t);if(t.map&&t.map===Ux)return t.map(e,r);for(var n=[],i=0,a=t.length;i<a;i++)n.push(e.call(r,t[i],i,t));return n}function qr(t,e,r,n){if(t&&e){for(var i=0,a=t.length;i<a;i++)r=e.call(n,r,t[i],i,t);return r}}function Ue(t,e,r){if(!t)return[];if(!e)return vf(t);if(t.filter&&t.filter===Hx)return t.filter(e,r);for(var n=[],i=0,a=t.length;i<a;i++)e.call(r,t[i],i,t)&&n.push(t[i]);return n}function Up(t,e,r){if(t&&e){for(var n=0,i=t.length;n<i;n++)if(e.call(r,t[n],n,t))return t[n]}}function ce(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r);return e}function Xx(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return t.apply(e,r.concat(lf.call(arguments)))}}var de=cs&&ee(cs.bind)?cs.call.bind(cs.bind):Xx;function Oe(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return function(){return t.apply(this,e.concat(lf.call(arguments)))}}function W(t){return Array.isArray?Array.isArray(t):xa.call(t)==="[object Array]"}function ee(t){return typeof t=="function"}function q(t){return typeof t=="string"}function cf(t){return xa.call(t)==="[object String]"}function me(t){return typeof t=="number"}function j(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function Wp(t){return!!Fp[xa.call(t)]}function ft(t){return!!zp[xa.call(t)]}function Ca(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function hf(t){return t.colorStops!=null}function Aa(t){return t!==t}function hs(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0,n=t.length;r<n;r++)if(t[r]!=null)return t[r]}function Z(t,e){return t??e}function bn(t,e,r){return t??e??r}function vf(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return lf.apply(t,e)}function df(t){if(typeof t=="number")return[t,t,t,t];var e=t.length;return e===2?[t[0],t[1],t[0],t[1]]:e===3?[t[0],t[1],t[2],t[1]]:t}function Wt(t,e){if(!t)throw new Error(e)}function hr(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Yp="__ec_primitive__";function vs(t){t[Yp]=!0}function Da(t){return t[Yp]}var qx=(function(){function t(){this.data={}}return t.prototype.delete=function(e){var r=this.has(e);return r&&delete this.data[e],r},t.prototype.has=function(e){return this.data.hasOwnProperty(e)},t.prototype.get=function(e){return this.data[e]},t.prototype.set=function(e,r){return this.data[e]=r,this},t.prototype.keys=function(){return ce(this.data)},t.prototype.forEach=function(e){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&e(r[n],n)},t})(),$p=typeof Map=="function";function Zx(){return $p?new Map:new qx}var Kx=(function(){function t(e){var r=W(e);this.data=Zx();var n=this;e instanceof t?e.each(i):e&&I(e,i);function i(a,o){r?n.set(a,o):n.set(o,a)}}return t.prototype.hasKey=function(e){return this.data.has(e)},t.prototype.get=function(e){return this.data.get(e)},t.prototype.set=function(e,r){return this.data.set(e,r),r},t.prototype.each=function(e,r){this.data.forEach(function(n,i){e.call(r,n,i)})},t.prototype.keys=function(){var e=this.data.keys();return $p?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t})();function te(t){return new Kx(t)}function jx(t,e){for(var r=new t.constructor(t.length+e.length),n=0;n<t.length;n++)r[n]=t[n];for(var i=t.length,n=0;n<e.length;n++)r[n+i]=e[n];return r}function ds(t,e){var r;if(Object.create)r=Object.create(t);else{var n=function(){};n.prototype=t,r=new n}return e&&z(r,e),r}function tt(t,e){return t.hasOwnProperty(e)}function We(){}var ps=180/Math.PI,Qx=(function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t})(),Jx=(function(){function t(){this.browser=new Qx,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 t})(),ie=new Jx;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(ie.wxa=!0,ie.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?ie.worker=!0:!ie.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(ie.node=!0,ie.svgSupported=!0):eC(navigator.userAgent,ie);function eC(t,e){var r=e.browser,n=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,e.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11);var s=e.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;e.transform3dSupported=(r.ie&&"transition"in l||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}}var tC=".",wn="___EC__COMPONENT__CONTAINER___",Xp="___EC__EXTENDED_CLASS___";function vr(t){var e={main:"",sub:""};if(t){var r=t.split(tC);e.main=r[0]||"",e.sub=r[1]||""}return e}function rC(t){Wt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function nC(t){return!!(t&&t[Xp])}function pf(t,e){t.$constructor=t,t.extend=function(r){var n=this,i;return iC(n)?i=(function(a){V(o,a);function o(){return a.apply(this,arguments)||this}return o})(n):(i=function(){(r.$constructor||n).apply(this,arguments)},$x(i,this)),z(i.prototype,r),i[Xp]=!0,i.extend=this.extend,i.superCall=sC,i.superApply=lC,i.superClass=n,i}}function iC(t){return ee(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function qp(t,e){t.extend=e.extend}var aC=Math.round(Math.random()*10);function oC(t){var e=["__\0is_clz",aC++].join("_");t.prototype[e]=!0,t.isInstance=function(r){return!!(r&&r[e])}}function sC(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[e].apply(t,r)}function lC(t,e,r){return this.superClass.prototype[e].apply(t,r)}function gs(t){var e={};t.registerClass=function(n){var i=n.type||n.prototype.type;if(i){rC(i),n.prototype.type=i;var a=vr(i);if(!a.sub)e[a.main]=n;else if(a.sub!==wn){var o=r(a);o[a.sub]=n}}return n},t.getClass=function(n,i,a){var o=e[n];if(o&&o[wn]&&(o=i?o[i]:null),a&&!o)throw new Error(i?"Component "+n+"."+(i||"")+" is used but not imported.":n+".type should be specified.");return o},t.getClassesByMainType=function(n){var i=vr(n),a=[],o=e[i.main];return o&&o[wn]?I(o,function(s,l){l!==wn&&a.push(s)}):a.push(o),a},t.hasClass=function(n){var i=vr(n);return!!e[i.main]},t.getAllClassMainTypes=function(){var n=[];return I(e,function(i,a){n.push(a)}),n},t.hasSubTypes=function(n){var i=vr(n),a=e[i.main];return a&&a[wn]};function r(n){var i=e[n.main];return(!i||!i[wn])&&(i=e[n.main]={},i[wn]=!0),i}}function Ma(t,e){for(var r=0;r<t.length;r++)t[r][1]||(t[r][1]=t[r][0]);return e=e||!1,function(n,i,a){for(var o={},s=0;s<t.length;s++){var l=t[s][1];if(!(i&&fe(i,l)>=0||a&&fe(a,l)<0)){var u=n.getShallow(l,e);u!=null&&(o[t[s][0]]=u)}}return o}}var uC=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],fC=Ma(uC),cC=(function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return fC(this,e,r)},t})(),Zp=(function(){function t(e){this.value=e}return t})(),hC=(function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new Zp(e);return this.insertEntry(r),r},t.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},t.prototype.remove=function(e){var r=e.prev,n=e.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t})(),bi=(function(){function t(e){this._list=new hC,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,r){var n=this._list,i=this._map,a=null;if(i[e]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new Zp(r),s.key=e,n.insertEntry(s),i[e]=s}return a},t.prototype.get=function(e){var r=this._map[e],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t})(),gf=new bi(50);function vC(t){if(typeof t=="string"){var e=gf.get(t);return e&&e.image}else return t}function mf(t,e,r,n,i){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!r)return e;var a=gf.get(t),o={hostEl:r,cb:n,cbPayload:i};return a?(e=a.image,!ms(e)&&a.pending.push(o)):(e=cr.loadImage(t,Kp,Kp),e.__zrImageSrc=t,gf.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}else return t;else return e}function Kp(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var r=t.pending[e],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}t.pending.length=0}function ms(t){return t&&t.width&&t.height}function dr(){return[1,0,0,1,0,0]}function Ia(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function yf(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function La(t,e,r){var n=e[0]*r[0]+e[2]*r[1],i=e[1]*r[0]+e[3]*r[1],a=e[0]*r[2]+e[2]*r[3],o=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],l=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=n,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t}function _f(t,e,r){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+r[0],t[5]=e[5]+r[1],t}function Sf(t,e,r,n){n===void 0&&(n=[0,0]);var i=e[0],a=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(r),c=Math.cos(r);return t[0]=i*c+s*f,t[1]=-i*f+s*c,t[2]=a*c+l*f,t[3]=-a*f+c*l,t[4]=c*(o-n[0])+f*(u-n[1])+n[0],t[5]=c*(u-n[1])-f*(o-n[0])+n[1],t}function dC(t,e,r){var n=r[0],i=r[1];return t[0]=e[0]*n,t[1]=e[1]*i,t[2]=e[2]*n,t[3]=e[3]*i,t[4]=e[4]*n,t[5]=e[5]*i,t}function Pa(t,e){var r=e[0],n=e[2],i=e[4],a=e[1],o=e[3],s=e[5],l=r*o-a*n;return l?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-n*l,t[3]=r*l,t[4]=(n*s-o*i)*l,t[5]=(a*i-r*s)*l,t):null}function wi(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function pC(t){return[t[0],t[1]]}function bf(t,e,r){return t[0]=e,t[1]=r,t}function jp(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function gC(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function mC(t){return Math.sqrt(yC(t))}function yC(t){return t[0]*t[0]+t[1]*t[1]}function wf(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function _C(t,e){var r=mC(e);return r===0?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t}function Tf(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var xf=Tf;function SC(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var Ti=SC;function Cf(t,e,r,n){return t[0]=e[0]+n*(r[0]-e[0]),t[1]=e[1]+n*(r[1]-e[1]),t}function wt(t,e,r){var n=e[0],i=e[1];return t[0]=r[0]*n+r[2]*i+r[4],t[1]=r[1]*n+r[3]*i+r[5],t}function xi(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function Ci(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}var re=(function(){function t(e,r){this.x=e||0,this.y=r||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,r){return this.x=e,this.y=r,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,r){this.x+=e.x*r,this.y+=e.y*r},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var r=this.x-e.x,n=this.y-e.y;return Math.sqrt(r*r+n*n)},t.prototype.distanceSquare=function(e){var r=this.x-e.x,n=this.y-e.y;return r*r+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var r=this.x,n=this.y;return this.x=e[0]*r+e[2]*n+e[4],this.y=e[1]*r+e[3]*n+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,r,n){e.x=r,e.y=n},t.copy=function(e,r){e.x=r.x,e.y=r.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,r){return e.x*r.x+e.y*r.y},t.add=function(e,r,n){e.x=r.x+n.x,e.y=r.y+n.y},t.sub=function(e,r,n){e.x=r.x-n.x,e.y=r.y-n.y},t.scale=function(e,r,n){e.x=r.x*n,e.y=r.y*n},t.scaleAndAdd=function(e,r,n,i){e.x=r.x+n.x*i,e.y=r.y+n.y*i},t.lerp=function(e,r,n,i){var a=1-i;e.x=a*r.x+i*n.x,e.y=a*r.y+i*n.y},t})(),Tn=Math.min,Ai=Math.max,Af=Math.abs,Qp=["x","y"],bC=["width","height"],xn=new re,Cn=new re,An=new re,Dn=new re,yt=tg(),Ea=yt.minTv,Df=yt.maxTv,ka=[0,0],ne=(function(){function t(e,r,n,i){Mf(this,e,r,n,i)}return t.set=function(e,r,n,i,a){return i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),e.x=r,e.y=n,e.width=i,e.height=a,e},t.prototype.union=function(e){var r=Tn(e.x,this.x),n=Tn(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ai(e.x+e.width,this.x+this.width)-r:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ai(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=r,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){return wC(dr(),this,e)},t.prototype.intersect=function(e,r,n){return t.intersect(this,e,r,n)},t.intersect=function(e,r,n,i){n&&re.set(n,0,0);var a=i&&i.outIntersectRect||null,o=i&&i.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!e||!r)return!1;e instanceof t||(e=Mf(TC,e.x,e.y,e.width,e.height)),r instanceof t||(r=Mf(xC,r.x,r.y,r.width,r.height));var s=!!n;yt.reset(i,s);var l=yt.touchThreshold,u=e.x+l,f=e.x+e.width-l,c=e.y+l,v=e.y+e.height-l,h=r.x+l,d=r.x+r.width-l,p=r.y+l,g=r.y+r.height-l;if(u>f||c>v||h>d||p>g)return!1;var m=!(f<h||d<u||v<p||g<c);return(s||a)&&(ka[0]=1/0,ka[1]=0,eg(u,f,h,d,0,s,a,o),eg(c,v,p,g,1,s,a,o),s&&re.copy(n,m?yt.useDir?yt.dirMinTv:Ea:Df)),m},t.contain=function(e,r,n){return r>=e.x&&r<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},t.prototype.contain=function(e,r){return t.contain(this,e,r)},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){Jp(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return this.width===0||this.height===0},t.create=function(e){return new t(e?e.x:0,e?e.y:0,e?e.width:0,e?e.height:0)},t.copy=function(e,r){return e.x=r.x,e.y=r.y,e.width=r.width,e.height=r.height,e},t.applyTransform=function(e,r,n){if(!n){e!==r&&Jp(e,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];e.x=r.x*i+o,e.y=r.y*a+s,e.width=r.width*i,e.height=r.height*a,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}xn.x=An.x=r.x,xn.y=Dn.y=r.y,Cn.x=Dn.x=r.x+r.width,Cn.y=An.y=r.y+r.height,xn.transform(n),Dn.transform(n),Cn.transform(n),An.transform(n),e.x=Tn(xn.x,Cn.x,An.x,Dn.x),e.y=Tn(xn.y,Cn.y,An.y,Dn.y);var l=Ai(xn.x,Cn.x,An.x,Dn.x),u=Ai(xn.y,Cn.y,An.y,Dn.y);e.width=l-e.x,e.height=u-e.y},t.calculateTransform=function(e,r,n){var i=n.width/r.width,a=n.height/r.height;return e=Ia(e||[]),_f(e,e,bf(If,-r.x,-r.y)),dC(e,e,bf(If,i,a)),_f(e,e,bf(If,n.x,n.y)),e},t})();ne.create;var Mf=ne.set,Jp=ne.copy,wC=ne.calculateTransform;ne.applyTransform,ne.contain;var TC=new ne(0,0,0,0),xC=new ne(0,0,0,0),If=[];function eg(t,e,r,n,i,a,o,s){var l=Af(e-r),u=Af(n-t),f=Tn(l,u),c=Qp[i],v=Qp[1-i],h=bC[i];e<r||n<t?l<u?(a&&(Df[c]=-l),s&&(o[c]=e,o[h]=0)):(a&&(Df[c]=u),s&&(o[c]=t,o[h]=0)):(o&&(o[c]=Ai(t,r),o[h]=Tn(e,n)-o[c]),a&&(f<ka[0]||yt.useDir)&&(ka[0]=Tn(f,ka[0]),(l<u||!yt.bidirectional)&&(Ea[c]=l,Ea[v]=0,yt.useDir&&yt.calcDirMTV()),(l>=u||!yt.bidirectional)&&(Ea[c]=-u,Ea[v]=0,yt.useDir&&yt.calcDirMTV())))}function tg(){var t=0,e=new re,r=new re,n={minTv:new re,maxTv:new re,useDir:!1,dirMinTv:new re,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){n.touchThreshold=0,a&&a.touchThreshold!=null&&(n.touchThreshold=Ai(0,a.touchThreshold)),n.negativeSize=!1,o&&(n.minTv.set(1/0,1/0),n.maxTv.set(0,0),n.useDir=!1,a&&a.direction!=null&&(n.useDir=!0,n.dirMinTv.copy(n.minTv),r.copy(n.minTv),t=a.direction,n.bidirectional=a.bidirectional==null||!!a.bidirectional,n.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var a=n.minTv,o=n.dirMinTv,s=a.y*a.y+a.x*a.x,l=Math.sin(t),u=Math.cos(t),f=l*a.y+u*a.x;if(i(f)){i(a.x)&&i(a.y)&&o.set(0,0);return}if(r.x=s*u/f,r.y=s*l/f,i(r.x)&&i(r.y)){o.set(0,0);return}(n.bidirectional||e.dot(r)>0)&&r.len()<o.len()&&o.copy(r)}};function i(a){return Af(a)<1e-10}return n}function pr(t){ys||(ys=new bi(100)),t=t||Pr;var e=ys.get(t);return e||(e={font:t,strWidthCache:new bi(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:cr.measureText("国",t).width,asciiCharWidth:cr.measureText("a",t).width},ys.put(t,e)),e}var ys;function CC(t){if(!(Lf>=rg)){t=t||Pr;for(var e=[],r=+new Date,n=0;n<=127;n++)e[n]=cr.measureText(String.fromCharCode(n),t).width;var i=+new Date-r;return i>16?Lf=rg:i>2&&Lf++,e}}var Lf=0,rg=5;function ng(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=CC(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?t.asciiWidthMap!=null?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function gr(t,e){var r=t.strWidthCache,n=r.get(e);return n==null&&(n=cr.measureText(e,t.font).width,r.put(e,n)),n}function ig(t,e,r,n){var i=gr(pr(e),t),a=Ra(e),o=Di(0,i,r),s=Mn(0,a,n),l=new ne(o,s,i,a);return l}function ag(t,e,r,n){var i=((t||"")+"").split(`
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
`):[];var y=m.length*v;if(g==null&&(g=y),y>g&&h){var _=Math.floor(g/v);d=d||m.length>_,m=m.slice(0,_),y=m.length*v}if(i&&f&&p!=null)for(var S=og(p,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),b={},w=0;w<m.length;w++)sg(b,m[w],S),m[w]=b.textLine,d=d||b.isTruncated;for(var T=g,C=0,D=pr(u),w=0;w<m.length;w++)C=Math.max(gr(D,m[w]),C);p==null&&(p=C);var x=p;return T+=l,x+=s,{lines:m,height:g,outerWidth:x,outerHeight:T,lineHeight:v,calculatedLineHeight:c,contentWidth:C,contentHeight:y,width:p,isTruncated:d}}var IC=(function(){function t(){}return t})(),lg=(function(){function t(e){this.tokens=[],e&&(this.tokens=e)}return t})(),LC=(function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return t})();function PC(t,e,r,n,i){var a=new LC,o=kf(t);if(!o)return a;var s=e.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,f=e.width;f==null&&r!=null&&(f=r-l);var c=e.height;c==null&&n!=null&&(c=n-u);for(var v=e.overflow,h=(v==="break"||v==="breakAll")&&f!=null?{width:f,accumWidth:0,breakAll:v==="breakAll"}:null,d=Pf.lastIndex=0,p;(p=Pf.exec(o))!=null;){var g=p.index;g>d&&Ef(a,o.substring(d,g),e,h),Ef(a,p[2],e,h,p[1]),d=Pf.lastIndex}d<o.length&&Ef(a,o.substring(d,o.length),e,h);var m=[],y=0,_=0,S=v==="truncate",b=e.lineOverflow==="truncate",w={};function T(ae,ke,Ae){ae.width=ke,ae.lineHeight=Ae,y+=Ae,_=Math.max(_,ke)}e:for(var C=0;C<a.lines.length;C++){for(var D=a.lines[C],x=0,A=0,L=0;L<D.tokens.length;L++){var M=D.tokens[L],P=M.styleName&&e.rich[M.styleName]||{},E=M.textPadding=P.padding,k=E?E[1]+E[3]:0,O=M.font=P.font||e.font;M.contentHeight=Ra(O);var R=Z(P.height,M.contentHeight);if(M.innerHeight=R,E&&(R+=E[0]+E[2]),M.height=R,M.lineHeight=bn(P.lineHeight,e.lineHeight,R),M.align=P&&P.align||i,M.verticalAlign=P&&P.verticalAlign||"middle",b&&c!=null&&y+M.lineHeight>c){var N=a.lines.length;L>0?(D.tokens=D.tokens.slice(0,L),T(D,A,x),a.lines=a.lines.slice(0,C+1)):a.lines=a.lines.slice(0,C),a.isTruncated=a.isTruncated||a.lines.length<N;break e}var F=P.width,B=F==null||F==="auto";if(typeof F=="string"&&F.charAt(F.length-1)==="%")M.percentWidth=F,m.push(M),M.contentWidth=gr(pr(O),M.text);else{if(B){var G=P.backgroundColor,X=G&&G.image;X&&(X=vC(X),ms(X)&&(M.width=Math.max(M.width,X.width*R/X.height)))}var H=S&&f!=null?f-A:null;H!=null&&H<M.width?!B||H<k?(M.text="",M.width=M.contentWidth=0):(AC(w,M.text,H-k,O,e.ellipsis,{minChar:e.truncateMinChar}),M.text=w.text,a.isTruncated=a.isTruncated||w.isTruncated,M.width=M.contentWidth=gr(pr(O),M.text)):M.contentWidth=gr(pr(O),M.text)}M.width+=k,A+=M.width,P&&(x=Math.max(x,M.lineHeight))}T(D,A,x)}a.outerWidth=a.width=Z(f,_),a.outerHeight=a.height=Z(c,y),a.contentHeight=y,a.contentWidth=_,a.outerWidth+=l,a.outerHeight+=u;for(var C=0;C<m.length;C++){var M=m[C],K=M.percentWidth;M.width=parseInt(K,10)/100*a.width}return a}function Ef(t,e,r,n,i){var a=e==="",o=i&&r.rich[i]||{},s=t.lines,l=o.font||r.font,u=!1,f,c;if(n){var v=o.padding,h=v?v[1]+v[3]:0;if(o.width!=null&&o.width!=="auto"){var d=In(o.width,n.width)+h;s.length>0&&d+n.accumWidth>n.width&&(f=e.split(`
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
`){l&&(s+=l,f+=u),a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var d=ng(c,h.charCodeAt(0)),p=n?!1:!RC(h);if(a.length?f+d>r:i+f+d>r){f?(s||l)&&(p?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=h,u+=d,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=h,f=d)):p?(a.push(l),o.push(u),l=h,u=d):(a.push(h),o.push(d));continue}f+=d,p?(l+=h,u+=d):(l&&(s+=l,l="",u=0),s+=h)}return l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}function fg(t,e,r,n,i,a){if(t.baseX=r,t.baseY=n,t.outerWidth=t.outerHeight=null,!!e){var o=e.width*2,s=e.height*2;ne.set(cg,Di(r,o,i),Mn(n,s,a),o,s),ne.intersect(e,cg,null,hg);var l=hg.outIntersectRect;t.outerWidth=l.width,t.outerHeight=l.height,t.baseX=Di(l.x,l.width,i,!0),t.baseY=Mn(l.y,l.height,a,!0)}}var cg=new ne(0,0,0,0),hg={outIntersectRect:{},clamp:!0};function kf(t){return t!=null?t+="":t=""}function OC(t){var e=kf(t.text),r=t.font,n=gr(pr(r),e),i=Ra(r);return Rf(t,n,i,null)}function Rf(t,e,r,n){var i=new ne(Di(t.x||0,e,t.textAlign),Mn(t.y||0,r,t.textBaseline),e,r),a=n??(vg(t)?t.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function vg(t){var e=t.stroke;return e!=null&&e!=="none"&&t.lineWidth>0}var dg=Ia,pg=5e-5;function Ln(t){return t>pg||t<-pg}var Pn=[],Mi=[],Of=dr(),Nf=Math.abs,Oa=(function(){function t(){}return t.prototype.getLocalTransform=function(e){return NC(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return Ln(this.rotation)||Ln(this.x)||Ln(this.y)||Ln(this.scaleX-1)||Ln(this.scaleY-1)||Ln(this.skewX)||Ln(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||e)){n&&(dg(n),this.invTransform=null);return}n=n||dr(),r?this.getLocalTransform(n):dg(n),e&&(r?La(n,e,n):yf(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||dr(),Pa(this.invTransform,n)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Pn);var n=Pn[0]<0?-1:1,i=Pn[1]<0?-1:1,a=((Pn[0]-n)*r+n)/Pn[0]||0,o=((Pn[1]-i)*r+i)/Pn[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}},t.prototype.getComputedTransform=function(){for(var e=this,r=[];e;)r.push(e),e=e.parent;for(;e=r.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var r=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),a=Math.PI/2+i-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,r=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||dr(),La(Mi,e.invTransform,r),r=Mi);var n=this.originX,i=this.originY;(n||i)&&(Of[4]=n,Of[5]=i,La(Mi,r,Of),Mi[4]-=n,Mi[5]-=i,r=Mi),this.setLocalTransform(r)}},t.prototype.getGlobalScale=function(e){var r=this.transform;return e=e||[],r?(e[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),e[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(e[0]=-e[0]),r[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,r){var n=[e,r],i=this.invTransform;return i&&wt(n,n,i),n},t.prototype.transformCoordToGlobal=function(e,r){var n=[e,r],i=this.transform;return i&&wt(n,n,i),n},t.prototype.getLineScale=function(){var e=this.transform;return e&&Nf(e[0]-1)>1e-10&&Nf(e[3]-1)>1e-10?Math.sqrt(Nf(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){Na(this,e)},t.getLocalTransform=function(e,r){r=r||[];var n=e.originX||0,i=e.originY||0,a=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,c=e.y,v=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(n||i||s||l){var d=n+s,p=i+l;r[4]=-d*a-v*p*o,r[5]=-p*o-h*d*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=h*a,r[2]=v*o,u&&Sf(r,r,u),r[4]+=n+f,r[5]+=i+c,r},t.initDefaultProps=(function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0})(),t})(),NC=Oa.getLocalTransform,Ss=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Na(t,e){return Yx(t,e,Ss)}var Ba={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)))},elasticOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},elasticInOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),(t*=2)<1?-.5*(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)):r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Ba.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?Ba.bounceIn(t*2)*.5:Ba.bounceOut(t*2-1)*.5+.5}},bs=Math.pow,Zr=Math.sqrt,ws=1e-8,gg=1e-4,mg=Zr(3),Ts=1/3,mr=wi(),Tt=wi(),Ii=wi();function Kr(t){return t>-ws&&t<ws}function yg(t){return t>ws||t<-ws}function Ye(t,e,r,n,i){var a=1-i;return a*a*(a*t+3*i*e)+i*i*(i*n+3*a*r)}function _g(t,e,r,n,i){var a=1-i;return 3*(((e-t)*a+2*(r-e)*i)*a+(n-r)*i*i)}function xs(t,e,r,n,i,a){var o=n+3*(e-r)-t,s=3*(r-e*2+t),l=3*(e-t),u=t-i,f=s*s-3*o*l,c=s*l-9*o*u,v=l*l-3*s*u,h=0;if(Kr(f)&&Kr(c))if(Kr(s))a[0]=0;else{var d=-l/s;d>=0&&d<=1&&(a[h++]=d)}else{var p=c*c-4*f*v;if(Kr(p)){var g=c/f,d=-s/o+g,m=-g/2;d>=0&&d<=1&&(a[h++]=d),m>=0&&m<=1&&(a[h++]=m)}else if(p>0){var y=Zr(p),_=f*s+1.5*o*(-c+y),S=f*s+1.5*o*(-c-y);_<0?_=-bs(-_,Ts):_=bs(_,Ts),S<0?S=-bs(-S,Ts):S=bs(S,Ts);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(a[h++]=d)}else{var b=(2*f*s-3*o*c)/(2*Zr(f*f*f)),w=Math.acos(b)/3,T=Zr(f),C=Math.cos(w),d=(-s-2*T*C)/(3*o),m=(-s+T*(C+mg*Math.sin(w)))/(3*o),D=(-s+T*(C-mg*Math.sin(w)))/(3*o);d>=0&&d<=1&&(a[h++]=d),m>=0&&m<=1&&(a[h++]=m),D>=0&&D<=1&&(a[h++]=D)}}return h}function Sg(t,e,r,n,i){var a=6*r-12*e+6*t,o=9*e+3*n-3*t-9*r,s=3*e-3*t,l=0;if(Kr(o)){if(yg(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var f=a*a-4*o*s;if(Kr(f))i[0]=-a/(2*o);else if(f>0){var c=Zr(f),u=(-a+c)/(2*o),v=(-a-c)/(2*o);u>=0&&u<=1&&(i[l++]=u),v>=0&&v<=1&&(i[l++]=v)}}return l}function Cs(t,e,r,n,i,a){var o=(e-t)*i+t,s=(r-e)*i+e,l=(n-r)*i+r,u=(s-o)*i+o,f=(l-s)*i+s,c=(f-u)*i+u;a[0]=t,a[1]=o,a[2]=u,a[3]=c,a[4]=c,a[5]=f,a[6]=l,a[7]=n}function BC(t,e,r,n,i,a,o,s,l,u,f){var c,v=.005,h=1/0,d,p,g,m;mr[0]=l,mr[1]=u;for(var y=0;y<1;y+=.05)Tt[0]=Ye(t,r,i,o,y),Tt[1]=Ye(e,n,a,s,y),g=Ti(mr,Tt),g<h&&(c=y,h=g);h=1/0;for(var _=0;_<32&&!(v<gg);_++)d=c-v,p=c+v,Tt[0]=Ye(t,r,i,o,d),Tt[1]=Ye(e,n,a,s,d),g=Ti(Tt,mr),d>=0&&g<h?(c=d,h=g):(Ii[0]=Ye(t,r,i,o,p),Ii[1]=Ye(e,n,a,s,p),m=Ti(Ii,mr),p<=1&&m<h?(c=p,h=m):v*=.5);return Zr(h)}function FC(t,e,r,n,i,a,o,s,l){for(var u=t,f=e,c=0,v=1/l,h=1;h<=l;h++){var d=h*v,p=Ye(t,r,i,o,d),g=Ye(e,n,a,s,d),m=p-u,y=g-f;c+=Math.sqrt(m*m+y*y),u=p,f=g}return c}function ct(t,e,r,n){var i=1-n;return i*(i*t+2*n*e)+n*n*r}function bg(t,e,r,n){return 2*((1-n)*(e-t)+n*(r-e))}function zC(t,e,r,n,i){var a=t-2*e+r,o=2*(e-t),s=t-n,l=0;if(Kr(a)){if(yg(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var f=o*o-4*a*s;if(Kr(f)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(f>0){var c=Zr(f),u=(-o+c)/(2*a),v=(-o-c)/(2*a);u>=0&&u<=1&&(i[l++]=u),v>=0&&v<=1&&(i[l++]=v)}}return l}function wg(t,e,r){var n=t+r-2*e;return n===0?.5:(t-e)/n}function As(t,e,r,n,i){var a=(e-t)*n+t,o=(r-e)*n+e,s=(o-a)*n+a;i[0]=t,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function VC(t,e,r,n,i,a,o,s,l){var u,f=.005,c=1/0;mr[0]=o,mr[1]=s;for(var v=0;v<1;v+=.05){Tt[0]=ct(t,r,i,v),Tt[1]=ct(e,n,a,v);var h=Ti(mr,Tt);h<c&&(u=v,c=h)}c=1/0;for(var d=0;d<32&&!(f<gg);d++){var p=u-f,g=u+f;Tt[0]=ct(t,r,i,p),Tt[1]=ct(e,n,a,p);var h=Ti(Tt,mr);if(p>=0&&h<c)u=p,c=h;else{Ii[0]=ct(t,r,i,g),Ii[1]=ct(e,n,a,g);var m=Ti(Ii,mr);g<=1&&m<c?(u=g,c=m):f*=.5}}return Zr(c)}function GC(t,e,r,n,i,a,o){for(var s=t,l=e,u=0,f=1/o,c=1;c<=o;c++){var v=c*f,h=ct(t,r,i,v),d=ct(e,n,a,v),p=h-s,g=d-l;u+=Math.sqrt(p*p+g*g),s=h,l=d}return u}var HC=/cubic-bezier\(([0-9,\.e ]+)\)/;function Bf(t){var e=t&&HC.exec(t);if(e){var r=e[1].split(","),n=+hr(r[0]),i=+hr(r[1]),a=+hr(r[2]),o=+hr(r[3]);if(isNaN(n+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:xs(0,n,a,1,l,s)&&Ye(0,i,o,1,s[0])}}}var UC=(function(){function t(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||We,this.ondestroy=e.ondestroy||We,this.onrestart=e.onrestart||We,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,r){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,i=e-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%n;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=ee(e)?e:Ba[e]||Bf(e)},t})(),Tg={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 jr(t){return t=Math.round(t),t<0?0:t>255?255:t}function Ff(t){return t<0?0:t>1?1:t}function zf(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?jr(parseFloat(e)/100*255):jr(parseInt(e,10))}function En(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?Ff(parseFloat(e)/100):Ff(parseFloat(e))}function Vf(t,e,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?t+(e-t)*r*6:r*2<1?e:r*3<2?t+(e-t)*(2/3-r)*6:t}function Ds(t,e,r){return t+(e-t)*r}function xt(t,e,r,n,i){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t}function Gf(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var xg=new bi(20),Ms=null;function Li(t,e){Ms&&Gf(Ms,e),Ms=xg.put(t,Ms||e.slice())}function Yt(t,e){if(t){e=e||[];var r=xg.get(t);if(r)return Gf(e,r);t=t+"";var n=t.replace(/ /g,"").toLowerCase();if(n in Tg)return Gf(e,Tg[n]),Li(t,e),e;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){xt(e,0,0,0,1);return}return xt(e,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),Li(t,e),e}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){xt(e,0,0,0,1);return}return xt(e,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Li(t,e),e}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?xt(e,+u[0],+u[1],+u[2],1):xt(e,0,0,0,1);f=En(u.pop());case"rgb":if(u.length>=3)return xt(e,zf(u[0]),zf(u[1]),zf(u[2]),u.length===3?f:En(u[3])),Li(t,e),e;xt(e,0,0,0,1);return;case"hsla":if(u.length!==4){xt(e,0,0,0,1);return}return u[3]=En(u[3]),Hf(u,e),Li(t,e),e;case"hsl":if(u.length!==3){xt(e,0,0,0,1);return}return Hf(u,e),Li(t,e),e;default:return}}xt(e,0,0,0,1)}}function Hf(t,e){var r=(parseFloat(t[0])%360+360)%360/360,n=En(t[1]),i=En(t[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return e=e||[],xt(e,jr(Vf(o,a,r+1/3)*255),jr(Vf(o,a,r)*255),jr(Vf(o,a,r-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function WC(t){if(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),a=Math.max(e,r,n),o=a-i,s=(a+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+i):u=o/(2-a-i);var f=((a-e)/6+o/2)/o,c=((a-r)/6+o/2)/o,v=((a-n)/6+o/2)/o;e===a?l=v-c:r===a?l=1/3+f-v:n===a&&(l=2/3+c-f),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return t[3]!=null&&h.push(t[3]),h}}function Cg(t,e){var r=Yt(t);if(r){for(var n=0;n<3;n++)r[n]=r[n]*(1-e)|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return Fa(r,r.length===4?"rgba":"rgb")}}function YC(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){var n=t*(e.length-1),i=Math.floor(n),a=Math.ceil(n),o=Yt(e[i]),s=Yt(e[a]),l=n-i,u=Fa([jr(Ds(o[0],s[0],l)),jr(Ds(o[1],s[1],l)),jr(Ds(o[2],s[2],l)),Ff(Ds(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}function Uf(t,e,r,n){var i=Yt(t);if(t)return i=WC(i),r!=null&&(i[1]=En(ee(r)?r(i[1]):r)),n!=null&&(i[2]=En(ee(n)?n(i[2]):n)),Fa(Hf(i),"rgba")}function Fa(t,e){if(!(!t||!t.length)){var r=t[0]+","+t[1]+","+t[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(r+=","+t[3]),e+"("+r+")"}}function Is(t,e){var r=Yt(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}var Ag=new bi(100);function Wf(t){if(q(t)){var e=Ag.get(t);return e||(e=Cg(t,-.1),Ag.put(t,e)),e}else if(hf(t)){var r=z({},t);return r.colorStops=$(t.colorStops,function(n){return{offset:n.offset,color:Cg(n.color,-.1)}}),r}return t}var Ls=Math.round;function za(t){var e;if(!t||t==="transparent")t="none";else if(typeof t=="string"&&t.indexOf("rgba")>-1){var r=Yt(t);r&&(t="rgb("+r[0]+","+r[1]+","+r[2]+")",e=r[3])}return{color:t,opacity:e??1}}var Dg=1e-4;function Qr(t){return t<Dg&&t>-Dg}function Ps(t){return Ls(t*1e3)/1e3}function Yf(t){return Ls(t*1e4)/1e4}function $C(t){return"matrix("+Ps(t[0])+","+Ps(t[1])+","+Ps(t[2])+","+Ps(t[3])+","+Yf(t[4])+","+Yf(t[5])+")"}var XC={left:"start",right:"end",center:"middle",middle:"middle"};function qC(t,e,r){return r==="top"?t+=e/2:r==="bottom"&&(t-=e/2),t}function ZC(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function KC(t){var e=t.style,r=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function Mg(t){return t&&!!t.image}function jC(t){return t&&!!t.svgElement}function $f(t){return Mg(t)||jC(t)}function Ig(t){return t.type==="linear"}function Lg(t){return t.type==="radial"}function Pg(t){return t&&(t.type==="linear"||t.type==="radial")}function Es(t){return"url(#"+t+")"}function Eg(t){var e=t.getGlobalScale(),r=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function kg(t){var e=t.x||0,r=t.y||0,n=(t.rotation||0)*ps,i=Z(t.scaleX,1),a=Z(t.scaleY,1),o=t.skewX||0,s=t.skewY||0,l=[];return(e||r)&&l.push("translate("+e+"px,"+r+"px)"),n&&l.push("rotate("+n+")"),(i!==1||a!==1)&&l.push("scale("+i+","+a+")"),(o||s)&&l.push("skew("+Ls(o*ps)+"deg, "+Ls(s*ps)+"deg)"),l.join(" ")}var QC=(function(){return typeof Buffer<"u"&&typeof Buffer.from=="function"?function(t){return Buffer.from(t).toString("base64")}:typeof btoa=="function"&&typeof unescape=="function"&&typeof encodeURIComponent=="function"?function(t){return btoa(unescape(encodeURIComponent(t)))}:function(t){return null}})(),Xf=Array.prototype.slice;function Er(t,e,r){return(e-t)*r+t}function qf(t,e,r,n){for(var i=e.length,a=0;a<i;a++)t[a]=Er(e[a],r[a],n);return t}function JC(t,e,r,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=Er(e[o][s],r[o][s],n)}return t}function ks(t,e,r,n){for(var i=e.length,a=0;a<i;a++)t[a]=e[a]+r[a]*n;return t}function Rg(t,e,r,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=e[o][s]+r[o][s]*n}return t}function eA(t,e){for(var r=t.length,n=e.length,i=r>n?e:t,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function tA(t,e,r){var n=t,i=e;if(!(!n.push||!i.push)){var a=n.length,o=i.length;if(a!==o){var s=a>o;if(s)n.length=o;else for(var l=a;l<o;l++)n.push(r===1?i[l]:Xf.call(i[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(r===1)isNaN(n[l])&&(n[l]=i[l]);else for(var f=0;f<u;f++)isNaN(n[l][f])&&(n[l][f]=i[l][f])}}function Rs(t){if(ut(t)){var e=t.length;if(ut(t[0])){for(var r=[],n=0;n<e;n++)r.push(Xf.call(t[n]));return r}return Xf.call(t)}return t}function Os(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=t[3]==null?1:t[3],"rgba("+t.join(",")+")"}function rA(t){return ut(t&&t[0])?2:1}var Ns=0,Bs=1,Og=2,Va=3,Zf=4,Kf=5,Ng=6;function Bg(t){return t===Zf||t===Kf}function Fs(t){return t===Bs||t===Og}var Ga=[0,0,0,0],nA=(function(){function t(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,r,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=Ng,l=r;if(ut(r)){var u=rA(r);s=u,(u===1&&!me(r[0])||u===2&&!me(r[0][0]))&&(o=!0)}else if(me(r)&&!Aa(r))s=Ns;else if(q(r))if(!isNaN(+r))s=Ns;else{var f=Yt(r);f&&(l=f,s=Va)}else if(hf(r)){var c=z({},l);c.colorStops=$(r.colorStops,function(h){return{offset:h.offset,color:Yt(h.color)}}),Ig(r)?s=Zf:Lg(r)&&(s=Kf),l=c}a===0?this.valType=s:(s!==this.valType||s===Ng)&&(o=!0),this.discrete=this.discrete||o;var v={time:e,value:l,rawValue:r,percent:0};return n&&(v.easing=n,v.easingFunc=ee(n)?n:Ba[n]||Bf(n)),i.push(v),v},t.prototype.prepare=function(e,r){var n=this.keyframes;this._needsSort&&n.sort(function(p,g){return p.time-g.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=Fs(i),u=Bg(i),f=0;f<a;f++){var c=n[f],v=c.value,h=o.value;c.percent=c.time/e,s||(l&&f!==a-1?tA(v,h,i):u&&eA(v.colorStops,h.colorStops))}if(!s&&i!==Kf&&r&&this.needsAnimate()&&r.needsAnimate()&&i===r.valType&&!r._finished){this._additiveTrack=r;for(var d=n[0].value,f=0;f<a;f++)i===Ns?n[f].additiveValue=n[f].value-d:i===Va?n[f].additiveValue=ks([],n[f].value,d,-1):Fs(i)&&(n[f].additiveValue=i===Bs?ks([],n[f].value,d,-1):Rg([],n[f].value,d,-1))}},t.prototype.step=function(e,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,i=n?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===Va,f,c=this._lastFr,v=Math.min,h,d;if(s===1)h=d=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var p=v(c+1,s-1);for(f=p;f>=0&&!(o[f].percent<=r);f--);f=v(f,s-2)}else{for(f=c;f<s&&!(o[f].percent>r);f++);f=v(f-1,s-2)}d=o[f+1],h=o[f]}if(h&&d){this._lastFr=f,this._lastFrP=r;var g=d.percent-h.percent,m=g===0?1:v((r-h.percent)/g,1);d.easingFunc&&(m=d.easingFunc(m));var y=n?this._additiveValue:u?Ga:e[l];if((Fs(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)e[l]=m<1?h.rawValue:d.rawValue;else if(Fs(a))a===Bs?qf(y,h[i],d[i],m):JC(y,h[i],d[i],m);else if(Bg(a)){var _=h[i],S=d[i],b=a===Zf;e[l]={type:b?"linear":"radial",x:Er(_.x,S.x,m),y:Er(_.y,S.y,m),colorStops:$(_.colorStops,function(T,C){var D=S.colorStops[C];return{offset:Er(T.offset,D.offset,m),color:Os(qf([],T.color,D.color,m))}}),global:S.global},b?(e[l].x2=Er(_.x2,S.x2,m),e[l].y2=Er(_.y2,S.y2,m)):e[l].r=Er(_.r,S.r,m)}else if(u)qf(y,h[i],d[i],m),n||(e[l]=Os(y));else{var w=Er(h[i],d[i],m);n?this._additiveValue=w:e[l]=w}n&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var r=this.valType,n=this.propName,i=this._additiveValue;r===Ns?e[n]=e[n]+i:r===Va?(Yt(e[n],Ga),ks(Ga,Ga,i,1),e[n]=Os(Ga)):r===Bs?ks(e[n],e[n],i,1):r===Og&&Rg(e[n],e[n],i,1)},t})(),jf=(function(){function t(e,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=r,r&&i){Hp("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,r,n){return this.whenWithKeys(e,r,ce(r),n)},t.prototype.whenWithKeys=function(e,r,n,i){for(var a=this._tracks,o=0;o<n.length;o++){var s=n[o],l=a[s];if(!l){l=a[s]=new nA(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var c=f.keyframes,v=c[c.length-1];u=v&&v.value,f.valType===Va&&u&&(u=Os(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,Rs(u),i),this._trackKeys.push(s)}l.addKeyframe(e,Rs(r[s]),i)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var r=e.length,n=0;n<r;n++)e[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,r=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},t.prototype._setTracksFinished=function(){for(var e=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)e[r[n]].setFinished()},t.prototype._getAdditiveTrack=function(e){var r,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(e);a&&(r=a)}return r},t.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var r=this,n=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var c=u[f-1];c&&(r._target[s.propName]=c.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var v=new UC({life:i,loop:this._loop,delay:this._delay||0,onframe:function(h){r._started=2;var d=r._additiveAnimators;if(d){for(var p=!1,g=0;g<d.length;g++)if(d[g]._clip){p=!0;break}p||(r._additiveAnimators=null)}for(var g=0;g<n.length;g++)n[g].step(r._target,h);var m=r._onframeCbs;if(m)for(var g=0;g<m.length;g++)m[g](r._target,h)},ondestroy:function(){r._doneCallback()}});this._clip=v,this.animation&&this.animation.addClip(v),e&&v.setEasing(e)}else this._doneCallback();return this}},t.prototype.stop=function(e){if(this._clip){var r=this._clip;e&&r.onframe(1),this._abortedCallback()}},t.prototype.delay=function(e){return this._delay=e,this},t.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},t.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},t.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(e){return this._tracks[e]},t.prototype.getTracks=function(){var e=this;return $(this._trackKeys,function(r){return e._tracks[r]})},t.prototype.stopTracks=function(e,r){if(!e.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,a=0;a<e.length;a++){var o=n[e[a]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<i.length;a++)if(!n[i[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},t.prototype.saveTo=function(e,r,n){if(e){r=r||this._trackKeys;for(var i=0;i<r.length;i++){var a=r[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(e[a]=Rs(l.rawValue))}}}},t.prototype.__changeFinalValue=function(e,r){r=r||ce(e);for(var n=0;n<r.length;n++){var i=r[n],a=this._tracks[i];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,e[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},t})(),kr=(function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,r,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(i=n,n=r,r=null),!n||!e)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[e]||(a[e]=[]);for(var s=0;s<a[e].length;s++)if(a[e][s].h===n)return this;var l={h:n,query:r,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},u=a[e].length-1,f=a[e][u];return f&&f.callAtLast?a[e].splice(u,0,l):a[e].push(l),this},t.prototype.isSilent=function(e){var r=this._$handlers;return!r||!r[e]||!r[e].length},t.prototype.off=function(e,r){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(r){if(n[e]){for(var i=[],a=0,o=n[e].length;a<o;a++)n[e][a].h!==r&&i.push(n[e][a]);n[e]=i}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},t.prototype.trigger=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],a=this._$eventProcessor;if(i)for(var o=r.length,s=i.length,l=0;l<s;l++){var u=i[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t.prototype.triggerWithContext=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],a=this._$eventProcessor;if(i)for(var o=r.length,s=r[o-1],l=i.length,u=0;u<l;u++){var f=i[u];if(!(a&&a.filter&&f.query!=null&&!a.filter(e,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,r[0]);break;case 2:f.h.call(s,r[0],r[1]);break;default:f.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t})(),Fg=1;ie.hasGlobalWindow&&(Fg=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var zg=Fg,Qf=.4,Jf="#333",ec="#ccc",iA="#eee",$t=1,Ha=2,Pi=4,tc="__zr_normal__",rc=Ss.concat(["ignore"]),aA=qr(Ss,function(t,e){return t[e]=!0,t},{ignore:!1}),Ei={},oA=new ne(0,0,0,0),zs=[],Vs=0,Gs=1,Hs=(function(){function t(e){this.id=Gp(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":e=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=e,i[5]+=r,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(e){var r=this._textContent;if(r&&(!r.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=r.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;a.copyTransform(r);var f=n.position!=null,c=n.autoOverflowArea,v=void 0;if((c||f)&&(v=oA,n.layoutRect?v.copy(n.layoutRect):v.copy(this.getBoundingRect()),i||v.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(Ei,n,v):_s(Ei,n,v),a.x=Ei.x,a.y=Ei.y,o=Ei.align,s=Ei.verticalAlign;var h=n.origin;if(h&&n.rotation!=null){var d=void 0,p=void 0;h==="center"?(d=v.width*.5,p=v.height*.5):(d=In(h[0],v.width),p=In(h[1],v.height)),u=!0,a.originX=-a.x+d+(i?0:v.x),a.originY=-a.y+p+(i?0:v.y)}}n.rotation!=null&&(a.rotation=n.rotation);var g=n.offset;g&&(a.x+=g[0],a.y+=g[1],u||(a.originX=-g[0],a.originY=-g[1]));var m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(c){var y=m.overflowRect=m.overflowRect||new ne(0,0,0,0);a.getLocalTransform(zs),Pa(zs,zs),ne.copy(y,v),y.applyTransform(zs)}else m.overflowRect=null;var _=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,S=void 0,b=void 0,w=void 0;_&&this.canBeInsideText()?(S=n.insideFill,b=n.insideStroke,(S==null||S==="auto")&&(S=this.getInsideTextFill()),(b==null||b==="auto")&&(b=this.getInsideTextStroke(S),w=!0)):(S=n.outsideFill,b=n.outsideStroke,(S==null||S==="auto")&&(S=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(S),w=!0)),S=S||"#000",(S!==m.fill||b!==m.stroke||w!==m.autoStroke||o!==m.align||s!==m.verticalAlign)&&(l=!0,m.fill=S,m.stroke=b,m.autoStroke=w,m.align=o,m.verticalAlign=s,r.setDefaultTextStyle(m)),r.__dirty|=$t,l&&r.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(e){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?ec:Jf},t.prototype.getOutsideStroke=function(e){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&Yt(r);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,Fa(n,"rgba")},t.prototype.traverse=function(e,r){},t.prototype.attrKV=function(e,r){e==="textConfig"?this.setTextConfig(r):e==="textContent"?this.setTextContent(r):e==="clipPath"?this.setClipPath(r):e==="extra"?(this.extra=this.extra||{},z(this.extra,r)):this[e]=r},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(e,r){if(typeof e=="string")this.attrKV(e,r);else if(j(e))for(var n=e,i=ce(n),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,e[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var r=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==tc)){var o=i.targetName,s=o?r[o]:r;i.saveTo(s)}}},t.prototype._innerSaveToNormal=function(e){var r=this._normalState;r||(r=this._normalState={}),e.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(e,r,rc)},t.prototype._savePrimaryToNormal=function(e,r,n){for(var i=0;i<n.length;i++){var a=n[i];e[a]!=null&&!(a in r)&&(r[a]=this[a])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var r=this.states;return r[e]||(r[e]={}),r[e]},t.prototype.clearStates=function(e){this.useState(tc,!1,e)},t.prototype.useState=function(e,r,n,i){var a=e===tc,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(fe(s,e)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!a){Hp("State "+e+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=this._textContent,c=Gg(this,f,u,i);c&&!this.__inHover&&(this.__inHover=c),this._applyStateObj(e,u,this._normalState,r,Ug(this,n,l),l);var v=this._textGuide;return f&&f.useState(e,r,n,!!c),v&&v.useState(e,r,n,!!c),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this.__inHover=Vs,this.__dirty&=~$t),u}}},t.prototype.useStates=function(e,r,n){if(!e.length)this.clearStates();else{var i=[],a=this.currentStates,o=e.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(e[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=e[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,e)),f||(f=this.states[u]),f&&i.push(f)}var c=i[o-1],v=this._textContent,h=Gg(this,v,c,n);h&&!this.__inHover&&(this.__inHover=h);var d=this._mergeStates(i),p=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(e.join(","),d,this._normalState,!1,Ug(this,r,p),p);var g=this._textGuide;v&&v.useStates(e,r,!!h),g&&g.useStates(e,r,!!h),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!h&&this.__inHover&&(this.__inHover=Vs,this.__dirty&=~$t)}},t.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var r=e.__hostTarget;e=r?e.ignoreHostSilent?null:r:e.parent}return!1},t.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var r=this.animators[e];r.targetName&&r.changeTarget(this[r.targetName])}},t.prototype.removeState=function(e){var r=fe(this.currentStates,e);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},t.prototype.replaceState=function(e,r,n){var i=this.currentStates.slice(),a=fe(i,e),o=fe(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&i.push(r),this.useStates(i)},t.prototype.toggleState=function(e,r){r?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var r={},n,i=0;i<e.length;i++){var a=e[i];z(r,a),a.textConfig&&(n=n||{},z(n,a.textConfig))}return n&&(r.textConfig=n),r},t.prototype._applyStateObj=function(e,r,n,i,a,o){if(this.__inHover!==Gs){var s=!(r&&i);r&&r.textConfig?(this.textConfig=z({},i?this.textConfig:n.textConfig),z(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,f=0;f<rc.length;f++){var c=rc[f],v=a&&aA[c];r&&r[c]!=null?v?(u=!0,l[c]=r[c]):this[c]=r[c]:s&&n[c]!=null&&(v?(u=!0,l[c]=n[c]):this[c]=n[c])}if(!a)for(var f=0;f<this.animators.length;f++){var h=this.animators[f],d=h.targetName;h.getLoop()||h.__changeFinalValue(d?(r||n)[d]:r||n)}u&&this._transitionState(e,l,o)}},t.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var r=this.__zr;r&&e.addSelfToZr(r),e.__zr=r,e.__hostTarget=this}},t.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},t.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(e){var r=this._textContent;r!==e&&(r&&r!==e&&this.removeTextContent(),e.innerTransformable=new Oa,this._attachComponent(e),this._textContent=e,this.markRedraw())},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),z(this.textConfig,e),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=$t;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var r=this.animators;if(r)for(var n=0;n<r.length;n++)e.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)e.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},t.prototype.animate=function(e,r,n){var i=e?this[e]:this,a=new jf(i,r,n);return e&&(a.targetName=e),this.addAnimator(a,e),a},t.prototype.addAnimator=function(e,r){var n=this.__zr,i=this;e.during(function(){i.updateDuringAnimation(r)}).done(function(){var a=i.animators,o=fe(a,e);o>=0&&a.splice(o,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,r){for(var n=this.animators,i=n.length,a=[],o=0;o<i;o++){var s=n[o];!e||e===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},t.prototype.animateTo=function(e,r,n){nc(this,e,r,n)},t.prototype.animateFrom=function(e,r,n){nc(this,e,r,n,!0)},t.prototype._transitionState=function(e,r,n,i){for(var a=nc(this,r,n,i),o=0;o<a.length;o++)a[o].__fromStateTransition=e},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=(function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=!1,e.__inHover=Vs,e.__dirty=$t;function r(n,i,a,o){Object.defineProperty(e,n,{get:function(){if(!this[i]){var l=this[i]=[];s(this,l)}return this[i]},set:function(l){this[a]=l[0],this[o]=l[1],this[i]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[a]},set:function(f){l[a]=f}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(f){l[o]=f}})}}Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))})(),t})();Ut(Hs,kr),Ut(Hs,Oa);function nc(t,e,r,n,i){r=r||{};var a=[];Vg(t,"",t,e,r,n,a,i);var o=a.length,s=!1,l=r.done,u=r.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},c=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&r.during&&a[0].during(function(d,p){r.during(p)});for(var v=0;v<a.length;v++){var h=a[v];f&&h.done(f),c&&h.aborted(c),r.force&&h.duration(r.duration),h.start(r.easing)}return a}function ic(t,e,r){for(var n=0;n<r;n++)t[n]=e[n]}function sA(t){return ut(t[0])}function lA(t,e,r){if(ut(e[r]))if(ut(t[r])||(t[r]=[]),ft(e[r])){var n=e[r].length;t[r].length!==n&&(t[r]=new e[r].constructor(n),ic(t[r],e[r],n))}else{var i=e[r],a=t[r],o=i.length;if(sA(i))for(var s=i[0].length,l=0;l<o;l++)a[l]?ic(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else ic(a,i,o);a.length=i.length}else t[r]=e[r]}function uA(t,e){return t===e||ut(t)&&ut(e)&&fA(t,e)}function fA(t,e){var r=t.length;if(r!==e.length)return!1;for(var n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function Vg(t,e,r,n,i,a,o,s){for(var l=ce(n),u=i.duration,f=i.delay,c=i.additive,v=i.setToFinal,h=!j(a),d=t.animators,p=[],g=0;g<l.length;g++){var m=l[g],y=n[m];if(y!=null&&r[m]!=null&&(h||a[m]))if(j(y)&&!ut(y)&&!hf(y)){if(e){s||(r[m]=y,t.updateDuringAnimation(e));continue}Vg(t,m,r[m],y,i,a&&a[m],o,s)}else p.push(m);else s||(r[m]=y,t.updateDuringAnimation(e),p.push(m))}var _=p.length;if(!c&&_)for(var S=0;S<d.length;S++){var b=d[S];if(b.targetName===e){var w=b.stopTracks(p);if(w){var T=fe(d,b);d.splice(T,1)}}}if(i.force||(p=Ue(p,function(A){return!uA(n[A],r[A])}),_=p.length),_>0||i.force&&!o.length){var C=void 0,D=void 0,x=void 0;if(s){D={},v&&(C={});for(var S=0;S<_;S++){var m=p[S];D[m]=r[m],v?C[m]=n[m]:r[m]=n[m]}}else if(v){x={};for(var S=0;S<_;S++){var m=p[S];x[m]=Rs(r[m]),lA(r,n,m)}}var b=new jf(r,!1,!1,c?Ue(d,function(L){return L.targetName===e}):null);b.targetName=e,i.scope&&(b.scope=i.scope),v&&C&&b.whenWithKeys(0,C,p),x&&b.whenWithKeys(0,x,p),b.whenWithKeys(u??500,s?D:n,p).delay(f||0),t.addAnimator(b,e),o.push(b)}}function Gg(t,e,r,n){return!(r&&r.hoverLayer||n)||Hg(t)||e&&Hg(e)?Vs:Gs}function Hg(t){return t.type==="text"||t.type==="tspan"}function Ug(t,e,r){return!e&&!t.__inHover&&r&&r.duration>0}var ac="__zr_style_"+Math.round(Math.random()*10),kn={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Us={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};kn[ac]=!0;var Wg=["z","z2","invisible"],cA=["invisible"],Ua=(function(t){V(e,t);function e(r){return t.call(this,r)||this}return e.prototype._init=function(r){for(var n=ce(r),i=0;i<n.length;i++){var a=n[i];a==="style"?this.useStyle(r[a]):t.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(r){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(r,n,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&hA(this,r,n)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(r,n){return this.rectContain(r,n)},e.prototype.traverse=function(r,n){r.call(n,this)},e.prototype.rectContain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();return a.contain(i[0],i[1])},e.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,i=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new ne(0,0,0,0)),n?ne.applyTransform(r,i,n):r.copy(i),(o||s||l)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+l-o));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+u*2),r.height=Math.ceil(r.height+1+u*2))}return r},e.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new ne(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(r){return this.animate("style",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(r,n){r!=="style"?t.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:z(this.style,r),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=Ha,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&Ha)},e.prototype.styleUpdated=function(){this.__dirty&=~Ha},e.prototype.createStyle=function(r){return ds(kn,r)},e.prototype.useStyle=function(r){r[ac]||(r=this.createStyle(r)),this.style=r,this.dirtyStyle()},e.prototype._useHoverStyle=function(r){this.__hoverStyle=r},e.prototype.isStyleObject=function(r){return r[ac]},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,n,Wg)},e.prototype._applyStateObj=function(r,n,i,a,o,s){t.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u=this.__inHover===Gs,f;if(n&&n.style?o?a?f=n.style:(f=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(f,n.style)):(f=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(f,n.style)):l&&(f=i.style),f)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var v=ce(c),h=0;h<v.length;h++){var d=v[h];d in f&&(f[d]=f[d],this.style[d]=c[d])}for(var p=ce(f),h=0;h<p.length;h++){var d=p[h];this.style[d]=this.style[d]}this._transitionState(r,{style:f},s,this.getAnimationStyleProps())}else u?this._useHoverStyle(f):this.useStyle(f);if(!u)for(var g=this.__inHover?cA:Wg,h=0;h<g.length;h++){var d=g[h];n&&n[d]!=null?this[d]=n[d]:l&&i[d]!=null&&(this[d]=i[d])}},e.prototype._mergeStates=function(r){for(var n=t.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},e.prototype._mergeStyle=function(r,n){return z(r,n),r},e.prototype.getAnimationStyleProps=function(){return Us},e.initDefaultProps=(function(){var r=e.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=0,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=$t|Ha})(),e})(Hs),oc=new ne(0,0,0,0),sc=new ne(0,0,0,0);function hA(t,e,r){return oc.copy(t.getBoundingRect()),t.transform&&oc.applyTransform(t.transform),sc.width=e,sc.height=r,!oc.intersect(sc)}var Ct=Math.min,At=Math.max,lc=Math.sin,uc=Math.cos,Rn=Math.PI*2,Ws=wi(),Ys=wi(),$s=wi();function Yg(t,e,r,n,i,a){i[0]=Ct(t,r),i[1]=Ct(e,n),a[0]=At(t,r),a[1]=At(e,n)}var $g=[],Xg=[];function vA(t,e,r,n,i,a,o,s,l,u){var f=Sg,c=Ye,v=f(t,r,i,o,$g);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<v;h++){var d=c(t,r,i,o,$g[h]);l[0]=Ct(d,l[0]),u[0]=At(d,u[0])}v=f(e,n,a,s,Xg);for(var h=0;h<v;h++){var p=c(e,n,a,s,Xg[h]);l[1]=Ct(p,l[1]),u[1]=At(p,u[1])}l[0]=Ct(t,l[0]),u[0]=At(t,u[0]),l[0]=Ct(o,l[0]),u[0]=At(o,u[0]),l[1]=Ct(e,l[1]),u[1]=At(e,u[1]),l[1]=Ct(s,l[1]),u[1]=At(s,u[1])}function dA(t,e,r,n,i,a,o,s){var l=wg,u=ct,f=At(Ct(l(t,r,i),1),0),c=At(Ct(l(e,n,a),1),0),v=u(t,r,i,f),h=u(e,n,a,c);o[0]=Ct(t,i,v),o[1]=Ct(e,a,h),s[0]=At(t,i,v),s[1]=At(e,a,h)}function pA(t,e,r,n,i,a,o,s,l){var u=xi,f=Ci,c=Math.abs(i-a);if(c%Rn<1e-4&&c>1e-4){s[0]=t-r,s[1]=e-n,l[0]=t+r,l[1]=e+n;return}if(Ws[0]=uc(i)*r+t,Ws[1]=lc(i)*n+e,Ys[0]=uc(a)*r+t,Ys[1]=lc(a)*n+e,u(s,Ws,Ys),f(l,Ws,Ys),i=i%Rn,i<0&&(i=i+Rn),a=a%Rn,a<0&&(a=a+Rn),i>a&&!o?a+=Rn:i<a&&o&&(i+=Rn),o){var v=a;a=i,i=v}for(var h=0;h<a;h+=Math.PI/2)h>i&&($s[0]=uc(h)*r+t,$s[1]=lc(h)*n+e,u(s,$s,s),f(l,$s,l))}var _e={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},On=[],Nn=[],yr=[],Jr=[],_r=[],Sr=[],fc=Math.min,cc=Math.max,Bn=Math.cos,Fn=Math.sin,Rr=Math.abs,hc=Math.PI,en=hc*2,vc=typeof Float32Array<"u",Wa=[];function dc(t){var e=Math.round(t/hc*1e8)/1e8;return e%2*hc}function pc(t,e){var r=dc(t[0]);r<0&&(r+=en);var n=r-t[0],i=t[1];i+=n,!e&&i-r>=en?i=r+en:e&&r-i>=en?i=r-en:!e&&r>i?i=r+(en-dc(r-i)):e&&r<i&&(i=r-(en-dc(i-r))),t[0]=r,t[1]=i}var tn=(function(){function t(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(e,r,n){n=n||0,n>0&&(this._ux=Rr(n/zg/e)||0,this._uy=Rr(n/zg/r)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,r){return this._drawPendingPt(),this.addData(_e.M,e,r),this._ctx&&this._ctx.moveTo(e,r),this._x0=e,this._y0=r,this._xi=e,this._yi=r,this},t.prototype.lineTo=function(e,r){var n=Rr(e-this._xi),i=Rr(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(_e.L,e,r),this._ctx&&a&&this._ctx.lineTo(e,r),a)this._xi=e,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=r,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(e,r,n,i,a,o){return this._drawPendingPt(),this.addData(_e.C,e,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(e,r,n,i,a,o),this._xi=a,this._yi=o,this},t.prototype.quadraticCurveTo=function(e,r,n,i){return this._drawPendingPt(),this.addData(_e.Q,e,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(e,r,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(e,r,n,i,a,o){this._drawPendingPt(),Wa[0]=i,Wa[1]=a,pc(Wa,o),i=Wa[0],a=Wa[1];var s=a-i;return this.addData(_e.A,e,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(e,r,n,i,a,o),this._xi=Bn(a)*n+e,this._yi=Fn(a)*n+r,this},t.prototype.arcTo=function(e,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,r,n,i,a),this},t.prototype.rect=function(e,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,r,n,i),this.addData(_e.R,e,r,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(_e.Z);var e=this._ctx,r=this._x0,n=this._y0;return e&&e.closePath(),this._xi=r,this._yi=n,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){if(this._saveData){var r=e.length;!(this.data&&this.data.length===r)&&vc&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=e[n];this._len=r}},t.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var r=e.length,n=0,i=this._len,a=0;a<r;a++)n+=e[a].len();var o=this.data;if(vc&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(i+n),i>0&&o))for(var s=0;s<i;s++)this.data[s]=o[s];for(var a=0;a<r;a++)for(var l=e[a].data,s=0;s<l.length;s++)this.data[i++]=l[s];this._len=i}},t.prototype.addData=function(e,r,n,i,a,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var c=0;c<arguments.length;c++)f[this._len++]=arguments[c]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],r=0;r<this._len;r++)e[r]=this.data[r];this.data=e}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,vc&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){yr[0]=yr[1]=_r[0]=_r[1]=Number.MAX_VALUE,Jr[0]=Jr[1]=Sr[0]=Sr[1]=-Number.MAX_VALUE;var e=this.data,r=0,n=0,i=0,a=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(r=e[o],n=e[o+1],i=r,a=n),s){case _e.M:r=i=e[o++],n=a=e[o++],_r[0]=i,_r[1]=a,Sr[0]=i,Sr[1]=a;break;case _e.L:Yg(r,n,e[o],e[o+1],_r,Sr),r=e[o++],n=e[o++];break;case _e.C:vA(r,n,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],_r,Sr),r=e[o++],n=e[o++];break;case _e.Q:dA(r,n,e[o++],e[o++],e[o],e[o+1],_r,Sr),r=e[o++],n=e[o++];break;case _e.A:var u=e[o++],f=e[o++],c=e[o++],v=e[o++],h=e[o++],d=e[o++]+h;o+=1;var p=!e[o++];l&&(i=Bn(h)*c+u,a=Fn(h)*v+f),pA(u,f,c,v,h,d,p,_r,Sr),r=Bn(d)*c+u,n=Fn(d)*v+f;break;case _e.R:i=r=e[o++],a=n=e[o++];var g=e[o++],m=e[o++];Yg(i,a,i+g,a+m,_r,Sr);break;case _e.Z:r=i,n=a;break}xi(yr,yr,_r),Ci(Jr,Jr,Sr)}return o===0&&(yr[0]=yr[1]=Jr[0]=Jr[1]=0),new ne(yr[0],yr[1],Jr[0]-yr[0],Jr[1]-yr[1])},t.prototype._calculateLength=function(){var e=this.data,r=this._len,n=this._ux,i=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,c=0,v=0;v<r;){var h=e[v++],d=v===1;d&&(a=e[v],o=e[v+1],s=a,l=o);var p=-1;switch(h){case _e.M:a=s=e[v++],o=l=e[v++];break;case _e.L:{var g=e[v++],m=e[v++],y=g-a,_=m-o;(Rr(y)>n||Rr(_)>i||v===r-1)&&(p=Math.sqrt(y*y+_*_),a=g,o=m);break}case _e.C:{var S=e[v++],b=e[v++],g=e[v++],m=e[v++],w=e[v++],T=e[v++];p=FC(a,o,S,b,g,m,w,T,10),a=w,o=T;break}case _e.Q:{var S=e[v++],b=e[v++],g=e[v++],m=e[v++];p=GC(a,o,S,b,g,m,10),a=g,o=m;break}case _e.A:var C=e[v++],D=e[v++],x=e[v++],A=e[v++],L=e[v++],M=e[v++],P=M+L;v+=1,d&&(s=Bn(L)*x+C,l=Fn(L)*A+D),p=cc(x,A)*fc(en,Math.abs(M)),a=Bn(P)*x+C,o=Fn(P)*A+D;break;case _e.R:{s=a=e[v++],l=o=e[v++];var E=e[v++],k=e[v++];p=E*2+k*2;break}case _e.Z:{var y=s-a,_=l-o;p=Math.sqrt(y*y+_*_),a=s,o=l;break}}p>=0&&(u[c++]=p,f+=p)}return this._pathLen=f,f},t.prototype.rebuildPath=function(e,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,f,c,v,h=r<1,d,p,g=0,m=0,y,_=0,S,b;if(!(h&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,y=r*p,!y)))e:for(var w=0;w<o;){var T=n[w++],C=w===1;switch(C&&(u=n[w],f=n[w+1],s=u,l=f),T!==_e.L&&_>0&&(e.lineTo(S,b),_=0),T){case _e.M:s=u=n[w++],l=f=n[w++],e.moveTo(u,f);break;case _e.L:{c=n[w++],v=n[w++];var D=Rr(c-u),x=Rr(v-f);if(D>i||x>a){if(h){var A=d[m++];if(g+A>y){var L=(y-g)/A;e.lineTo(u*(1-L)+c*L,f*(1-L)+v*L);break e}g+=A}e.lineTo(c,v),u=c,f=v,_=0}else{var M=D*D+x*x;M>_&&(S=c,b=v,_=M)}break}case _e.C:{var P=n[w++],E=n[w++],k=n[w++],O=n[w++],R=n[w++],N=n[w++];if(h){var A=d[m++];if(g+A>y){var L=(y-g)/A;Cs(u,P,k,R,L,On),Cs(f,E,O,N,L,Nn),e.bezierCurveTo(On[1],Nn[1],On[2],Nn[2],On[3],Nn[3]);break e}g+=A}e.bezierCurveTo(P,E,k,O,R,N),u=R,f=N;break}case _e.Q:{var P=n[w++],E=n[w++],k=n[w++],O=n[w++];if(h){var A=d[m++];if(g+A>y){var L=(y-g)/A;As(u,P,k,L,On),As(f,E,O,L,Nn),e.quadraticCurveTo(On[1],Nn[1],On[2],Nn[2]);break e}g+=A}e.quadraticCurveTo(P,E,k,O),u=k,f=O;break}case _e.A:var F=n[w++],B=n[w++],G=n[w++],X=n[w++],H=n[w++],K=n[w++],ae=n[w++],ke=!n[w++],Ae=G>X?G:X,he=Rr(G-X)>.001,Te=H+K,J=!1;if(h){var A=d[m++];g+A>y&&(Te=H+K*(y-g)/A,J=!0),g+=A}if(he&&e.ellipse?e.ellipse(F,B,G,X,ae,H,Te,ke):e.arc(F,B,Ae,H,Te,ke),J)break e;C&&(s=Bn(H)*G+F,l=Fn(H)*X+B),u=Bn(Te)*G+F,f=Fn(Te)*X+B;break;case _e.R:s=u=n[w],l=f=n[w+1],c=n[w++],v=n[w++];var se=n[w++],pt=n[w++];if(h){var A=d[m++];if(g+A>y){var Re=y-g;e.moveTo(c,v),e.lineTo(c+fc(Re,se),v),Re-=se,Re>0&&e.lineTo(c+se,v+fc(Re,pt)),Re-=pt,Re>0&&e.lineTo(c+cc(se-Re,0),v+pt),Re-=se,Re>0&&e.lineTo(c,v+cc(pt-Re,0));break e}g+=A}e.rect(c,v,se,pt);break;case _e.Z:if(h){var A=d[m++];if(g+A>y){var L=(y-g)/A;e.lineTo(u*(1-L)+s*L,f*(1-L)+l*L);break e}g+=A}e.closePath(),u=s,f=l}}},t.prototype.clone=function(){var e=new t,r=this.data;return e.data=r.slice?r.slice():Array.prototype.slice.call(r),e._len=this._len,e},t.prototype.canSave=function(){return!!this._saveData},t.CMD=_e,t.initDefaultProps=(function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0})(),t})();function ki(t,e,r,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=t;if(o>e+s&&o>n+s||o<e-s&&o<n-s||a>t+s&&a>r+s||a<t-s&&a<r-s)return!1;if(t!==r)l=(e-n)/(t-r),u=(t*n-r*e)/(t-r);else return Math.abs(a-t)<=s/2;var f=l*a-o+u,c=f*f/(l*l+1);return c<=s/2*s/2}function gA(t,e,r,n,i,a,o,s,l,u,f){if(l===0)return!1;var c=l;if(f>e+c&&f>n+c&&f>a+c&&f>s+c||f<e-c&&f<n-c&&f<a-c&&f<s-c||u>t+c&&u>r+c&&u>i+c&&u>o+c||u<t-c&&u<r-c&&u<i-c&&u<o-c)return!1;var v=BC(t,e,r,n,i,a,o,s,u,f);return v<=c/2}function mA(t,e,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>n+u&&l>a+u||l<e-u&&l<n-u&&l<a-u||s>t+u&&s>r+u&&s>i+u||s<t-u&&s<r-u&&s<i-u)return!1;var f=VC(t,e,r,n,i,a,s,l);return f<=u/2}var qg=Math.PI*2;function Xs(t){return t%=qg,t<0&&(t+=qg),t}var Ya=Math.PI*2;function yA(t,e,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;s-=t,l-=e;var f=Math.sqrt(s*s+l*l);if(f-u>r||f+u<r)return!1;if(Math.abs(n-i)%Ya<1e-4)return!0;if(a){var c=n;n=Xs(i),i=Xs(c)}else n=Xs(n),i=Xs(i);n>i&&(i+=Ya);var v=Math.atan2(l,s);return v<0&&(v+=Ya),v>=n&&v<=i||v+Ya>=n&&v+Ya<=i}function zn(t,e,r,n,i,a){if(a>e&&a>n||a<e&&a<n||n===e)return 0;var o=(a-e)/(n-e),s=n<e?1:-1;(o===1||o===0)&&(s=n<e?.5:-.5);var l=o*(r-t)+t;return l===i?1/0:l>i?s:0}var rn=tn.CMD,Vn=Math.PI*2,_A=1e-4;function SA(t,e){return Math.abs(t-e)<_A}var rt=[-1,-1,-1],Dt=[-1,-1];function bA(){var t=Dt[0];Dt[0]=Dt[1],Dt[1]=t}function wA(t,e,r,n,i,a,o,s,l,u){if(u>e&&u>n&&u>a&&u>s||u<e&&u<n&&u<a&&u<s)return 0;var f=xs(e,n,a,s,u,rt);if(f===0)return 0;for(var c=0,v=-1,h=void 0,d=void 0,p=0;p<f;p++){var g=rt[p],m=g===0||g===1?.5:1,y=Ye(t,r,i,o,g);y<l||(v<0&&(v=Sg(e,n,a,s,Dt),Dt[1]<Dt[0]&&v>1&&bA(),h=Ye(e,n,a,s,Dt[0]),v>1&&(d=Ye(e,n,a,s,Dt[1]))),v===2?g<Dt[0]?c+=h<e?m:-m:g<Dt[1]?c+=d<h?m:-m:c+=s<d?m:-m:g<Dt[0]?c+=h<e?m:-m:c+=s<h?m:-m)}return c}function TA(t,e,r,n,i,a,o,s){if(s>e&&s>n&&s>a||s<e&&s<n&&s<a)return 0;var l=zC(e,n,a,s,rt);if(l===0)return 0;var u=wg(e,n,a);if(u>=0&&u<=1){for(var f=0,c=ct(e,n,a,u),v=0;v<l;v++){var h=rt[v]===0||rt[v]===1?.5:1,d=ct(t,r,i,rt[v]);d<o||(rt[v]<u?f+=c<e?h:-h:f+=a<c?h:-h)}return f}else{var h=rt[0]===0||rt[0]===1?.5:1,d=ct(t,r,i,rt[0]);return d<o?0:a<e?h:-h}}function xA(t,e,r,n,i,a,o,s){if(s-=e,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);rt[0]=-l,rt[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=Vn-1e-4){n=0,i=Vn;var f=a?1:-1;return o>=rt[0]+t&&o<=rt[1]+t?f:0}if(n>i){var c=n;n=i,i=c}n<0&&(n+=Vn,i+=Vn);for(var v=0,h=0;h<2;h++){var d=rt[h];if(d+t>o){var p=Math.atan2(s,d),f=a?1:-1;p<0&&(p=Vn+p),(p>=n&&p<=i||p+Vn>=n&&p+Vn<=i)&&(p>Math.PI/2&&p<Math.PI*1.5&&(f=-f),v+=f)}}return v}function Zg(t,e,r,n,i){for(var a=t.data,o=t.len(),s=0,l=0,u=0,f=0,c=0,v,h,d=0;d<o;){var p=a[d++],g=d===1;switch(p===rn.M&&d>1&&(r||(s+=zn(l,u,f,c,n,i))),g&&(l=a[d],u=a[d+1],f=l,c=u),p){case rn.M:f=a[d++],c=a[d++],l=f,u=c;break;case rn.L:if(r){if(ki(l,u,a[d],a[d+1],e,n,i))return!0}else s+=zn(l,u,a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case rn.C:if(r){if(gA(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],e,n,i))return!0}else s+=wA(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case rn.Q:if(r){if(mA(l,u,a[d++],a[d++],a[d],a[d+1],e,n,i))return!0}else s+=TA(l,u,a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case rn.A:var m=a[d++],y=a[d++],_=a[d++],S=a[d++],b=a[d++],w=a[d++];d+=1;var T=!!(1-a[d++]);v=Math.cos(b)*_+m,h=Math.sin(b)*S+y,g?(f=v,c=h):s+=zn(l,u,v,h,n,i);var C=(n-m)*S/_+m;if(r){if(yA(m,y,S,b,b+w,T,e,C,i))return!0}else s+=xA(m,y,S,b,b+w,T,C,i);l=Math.cos(b+w)*_+m,u=Math.sin(b+w)*S+y;break;case rn.R:f=l=a[d++],c=u=a[d++];var D=a[d++],x=a[d++];if(v=f+D,h=c+x,r){if(ki(f,c,v,c,e,n,i)||ki(v,c,v,h,e,n,i)||ki(v,h,f,h,e,n,i)||ki(f,h,f,c,e,n,i))return!0}else s+=zn(v,c,v,h,n,i),s+=zn(f,h,f,c,n,i);break;case rn.Z:if(r){if(ki(l,u,f,c,e,n,i))return!0}else s+=zn(l,u,f,c,n,i);l=f,u=c;break}}return!r&&!SA(u,c)&&(s+=zn(l,u,f,c,n,i)||0),s!==0}function CA(t,e,r){return Zg(t,0,!1,e,r)}function AA(t,e,r,n){return Zg(t,e,!0,r,n)}var qs=le({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},kn),DA={style:le({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Us.style)},gc=Ss.concat(["invisible","culling","z","z2","zlevel","parent"]),pe=(function(t){V(e,t);function e(r){return t.call(this,r)||this}return e.prototype.update=function(){var r=this;t.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.prototype.buildPath&&(i.buildPath=function(l){r.buildPath(l,r.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s<gc.length;++s)i[gc[s]]=this[gc[s]];i.__dirty|=$t}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(r){var n=ce(r);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var a=0;a<n.length;a++){var o=n[a],s=r[o];o==="style"?this.style?z(this.style,s):this.useStyle(s):o==="shape"?z(this.shape,s):t.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(q(r)){var n=Is(r,0);return n>.5?Jf:n>.2?iA:ec}else if(r)return ec}return Jf},e.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(q(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Is(r,0)<Qf;if(a===o)return n}},e.prototype.buildPath=function(r,n,i){},e.prototype.pathUpdated=function(){this.__dirty&=~Pi},e.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},e.prototype.createPathProxy=function(){this.path=new tn(!1)},e.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,i=!r;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Pi)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||i){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},e.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect(),o=this.style;if(r=i[0],n=i[1],a.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),AA(s,l/u,r,n)))return!0}if(this.hasFill())return CA(s,r,n)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Pi,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(r){return this.animate("shape",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):t.prototype.attrKV.call(this,r,n)},e.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:z(i,r),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Pi)},e.prototype.createStyle=function(r){return ds(qs,r)},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=z({},this.shape))},e.prototype._applyStateObj=function(r,n,i,a,o,s){if(t.prototype._applyStateObj.call(this,r,n,i,a,o,s),this.__inHover!==Gs){var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=z({},i.shape),z(u,n.shape)):(u=z({},a?this.shape:i.shape),z(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=z({},this.shape);for(var f={},c=ce(u),v=0;v<c.length;v++){var h=c[v];typeof u[h]=="object"?this.shape[h]=u[h]:f[h]=u[h]}this._transitionState(r,{shape:f},s)}else this.shape=u,this.dirtyShape()}},e.prototype._mergeStates=function(r){for(var n=t.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},e.prototype.getAnimationStyleProps=function(){return DA},e.prototype.isZeroArea=function(){return!1},e.extend=function(r){var n=(function(a){V(o,a);function o(s){var l=a.call(this,s)||this;return r.init&&r.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return oe(r.style)},o.prototype.getDefaultShape=function(){return oe(r.shape)},o})(e);for(var i in r)typeof r[i]=="function"&&(n.prototype[i]=r[i]);return n},e.initDefaultProps=(function(){var r=e.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=$t|Ha|Pi})(),e})(Ua),MA=le({strokeFirst:!0,font:Pr,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},qs),$a=(function(t){V(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.hasStroke=function(){return vg(this.style)},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.createStyle=function(r){return ds(MA,r)},e.prototype.setBoundingRect=function(r){this._rect=r},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=OC(this.style)),this._rect},e.initDefaultProps=(function(){var r=e.prototype;r.dirtyRectTolerance=10})(),e})(Ua);$a.prototype.type="tspan";var IA=le({x:0,y:0},kn),LA={style:le({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Us.style)};function PA(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var Mt=(function(t){V(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(r){return ds(IA,r)},e.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=PA(n.image)?n.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?a[r]:a[r]/a[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return LA},e.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new ne(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},e})(Ua);Mt.prototype.type="image";function EA(t,e){var r=e.x,n=e.y,i=e.width,a=e.height,o=e.r,s,l,u,f;i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var c;s+l>i&&(c=s+l,s*=i/c,l*=i/c),u+f>i&&(c=u+f,u*=i/c,f*=i/c),l+u>a&&(c=l+u,l*=a/c,u*=a/c),s+f>a&&(c=s+f,s*=a/c,f*=a/c),t.moveTo(r+s,n),t.lineTo(r+i-l,n),l!==0&&t.arc(r+i-l,n+l,l,-Math.PI/2,0),t.lineTo(r+i,n+a-u),u!==0&&t.arc(r+i-u,n+a-u,u,0,Math.PI/2),t.lineTo(r+f,n+a),f!==0&&t.arc(r+f,n+a-f,f,Math.PI/2,Math.PI),t.lineTo(r,n+s),s!==0&&t.arc(r+s,n+s,s,Math.PI,Math.PI*1.5),t.closePath()}var Ri=Math.round;function Kg(t,e,r){if(e){var n=e.x1,i=e.x2,a=e.y1,o=e.y2;t.x1=n,t.x2=i,t.y1=a,t.y2=o;var s=r&&r.lineWidth;return s&&(Ri(n*2)===Ri(i*2)&&(t.x1=t.x2=Gn(n,s,!0)),Ri(a*2)===Ri(o*2)&&(t.y1=t.y2=Gn(a,s,!0))),t}}function jg(t,e,r){if(e){var n=e.x,i=e.y,a=e.width,o=e.height;t.x=n,t.y=i,t.width=a,t.height=o;var s=r&&r.lineWidth;return s&&(t.x=Gn(n,s,!0),t.y=Gn(i,s,!0),t.width=Math.max(Gn(n+a,s,!1)-t.x,a===0?0:1),t.height=Math.max(Gn(i+o,s,!1)-t.y,o===0?0:1)),t}}function Gn(t,e,r){if(!e)return t;var n=Ri(t*2);return(n+Ri(e))%2===0?n/2:(n+(r?1:-1))/2}var kA=(function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t})(),RA={},De=(function(t){V(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new kA},e.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=jg(RA,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?EA(r,n):r.rect(i,a,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e})(pe);De.prototype.type="rect";var Qg={fill:"#000"},Jg=2,br={},OA={style:le({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},Us.style)},Me=(function(t){V(e,t);function e(r){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Qg,n.attr(r),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var n=this._children[r];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):t.prototype.getLocalTransform.call(this,r)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,FA(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new ne(0,0,0,0),n=this._children,i=[],a=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(r.copy(l),r.applyTransform(u),a=a||r.clone(),a.union(r)):(a=a||l.clone(),a.union(l))}this._rect=a||r}return this._rect},e.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||Qg},e.prototype.setTextContent=function(r){},e.prototype._mergeStyle=function(r,n){if(!n)return r;var i=n.rich,a=r.rich||i&&{};return z(r,n),i&&a?(this._mergeRich(a,i),r.rich=a):a&&(r.rich=a),r},e.prototype._mergeRich=function(r,n){for(var i=ce(n),a=0;a<i.length;a++){var o=i[a];r[o]=r[o]||{},z(r[o],n[o])}},e.prototype.getAnimationStyleProps=function(){return OA},e.prototype._getOrCreateChild=function(r){var n=this._children[this._childCursor];return(!n||!(n instanceof r))&&(n=new r),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},e.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||Pr,i=r.padding,a=this._defaultStyle,o=r.x||0,s=r.y||0,l=r.align||a.align||"left",u=r.verticalAlign||a.verticalAlign||"top";fg(br,a.overflowRect,o,s,l,u),o=br.baseX,s=br.baseY;var f=lm(r),c=MC(f,r,br.outerWidth,br.outerHeight),v=mc(r),h=!!r.backgroundColor,d=c.outerHeight,p=c.outerWidth,g=c.lines,m=c.lineHeight;this.isTruncated=!!c.isTruncated;var y=o,_=Mn(s,c.contentHeight,u);if(v||i){var S=Di(o,p,l),b=Mn(s,d,u);v&&this._renderBackground(r,r,S,b,p,d)}_+=m/2,i&&(y=sm(o,l,i),u==="top"?_+=i[0]:u==="bottom"&&(_-=i[2]));for(var w=0,T=!1,C=!1,D=om("fill"in r?r.fill:(C=!0,a.fill)),x=am("stroke"in r?r.stroke:!h&&(!a.autoStroke||C)?(w=Jg,T=!0,a.stroke):null),A=r.textShadowBlur>0,L=0;L<g.length;L++){var M=this._getOrCreateChild($a),P=M.createStyle();M.useStyle(P),P.text=g[L],P.x=y,P.y=_,P.textAlign=l,P.textBaseline="middle",P.opacity=r.opacity,P.strokeFirst=!0,A&&(P.shadowBlur=r.textShadowBlur||0,P.shadowColor=r.textShadowColor||"transparent",P.shadowOffsetX=r.textShadowOffsetX||0,P.shadowOffsetY=r.textShadowOffsetY||0),P.stroke=x,P.fill=D,x&&(P.lineWidth=r.lineWidth||w,P.lineDash=r.lineDash,P.lineDashOffset=r.lineDashOffset||0),P.font=n,rm(P,r),_+=m,M.setBoundingRect(Rf(P,c.contentWidth,c.calculatedLineHeight,T?0:null))}},e.prototype._updateRichTexts=function(){var r=this.style,n=this._defaultStyle,i=r.align||n.align,a=r.verticalAlign||n.verticalAlign,o=r.x||0,s=r.y||0;fg(br,n.overflowRect,o,s,i,a),o=br.baseX,s=br.baseY;var l=lm(r),u=PC(l,r,br.outerWidth,br.outerHeight,i),f=u.width,c=u.outerWidth,v=u.outerHeight,h=r.padding;this.isTruncated=!!u.isTruncated;var d=Di(o,c,i),p=Mn(s,v,a),g=d,m=p;h&&(g+=h[3],m+=h[0]);var y=g+f;mc(r)&&this._renderBackground(r,r,d,p,c,v);for(var _=!!r.backgroundColor,S=0;S<u.lines.length;S++){for(var b=u.lines[S],w=b.tokens,T=w.length,C=b.lineHeight,D=b.width,x=0,A=g,L=y,M=T-1,P=void 0;x<T&&(P=w[x],!P.align||P.align==="left");)this._placeToken(P,r,C,m,A,"left",_),D-=P.width,A+=P.width,x++;for(;M>=0&&(P=w[M],P.align==="right");)this._placeToken(P,r,C,m,L,"right",_),D-=P.width,L-=P.width,M--;for(A+=(f-(A-g)-(y-L)-D)/2;x<=M;)P=w[x],this._placeToken(P,r,C,m,A+P.width/2,"center",_),A+=P.width,x++;m+=C}},e.prototype._placeToken=function(r,n,i,a,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var f=r.verticalAlign,c=a+i/2;f==="top"?c=a+r.height/2:f==="bottom"&&(c=a+i-r.height/2);var v=!r.isLineHolder&&mc(u);v&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,c-r.height/2,r.width,r.height);var h=!!u.backgroundColor,d=r.textPadding;d&&(o=sm(o,s,d),c-=r.height/2-d[0]-r.innerHeight/2);var p=this._getOrCreateChild($a),g=p.createStyle();p.useStyle(g);var m=this._defaultStyle,y=!1,_=0,S=!1,b=om("fill"in u?u.fill:"fill"in n?n.fill:(y=!0,m.fill)),w=am("stroke"in u?u.stroke:"stroke"in n?n.stroke:!h&&!l&&(!m.autoStroke||y)?(_=Jg,S=!0,m.stroke):null),T=u.textShadowBlur>0||n.textShadowBlur>0;g.text=r.text,g.x=o,g.y=c,T&&(g.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,g.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=r.font||Pr,g.opacity=bn(u.opacity,n.opacity,1),rm(g,u),w&&(g.lineWidth=bn(u.lineWidth,n.lineWidth,_),g.lineDash=Z(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=w),b&&(g.fill=b),p.setBoundingRect(Rf(g,r.contentWidth,r.contentHeight,S?0:null))},e.prototype._renderBackground=function(r,n,i,a,o,s){var l=r.backgroundColor,u=r.borderWidth,f=r.borderColor,c=l&&l.image,v=l&&!c,h=r.borderRadius,d=this,p,g;if(v||r.lineHeight||u&&f){p=this._getOrCreateChild(De),p.useStyle(p.createStyle()),p.style.fill=null;var m=p.shape;m.x=i,m.y=a,m.width=o,m.height=s,m.r=h,p.dirtyShape()}if(v){var y=p.style;y.fill=l||null,y.fillOpacity=Z(r.fillOpacity,1)}else if(c){g=this._getOrCreateChild(Mt),g.onload=function(){d.dirtyStyle()};var _=g.style;_.image=l.image,_.x=i,_.y=a,_.width=o,_.height=s}if(u&&f){var y=p.style;y.lineWidth=u,y.stroke=f,y.strokeOpacity=Z(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var S=(p||g).style;S.shadowBlur=r.shadowBlur||0,S.shadowColor=r.shadowColor||"transparent",S.shadowOffsetX=r.shadowOffsetX||0,S.shadowOffsetY=r.shadowOffsetY||0,S.opacity=bn(r.opacity,n.opacity,1)},e.makeFont=function(r){var n="";return nm(r)&&(n=[r.fontStyle,r.fontWeight,tm(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&hr(n)||r.textFont||r.font},e})(Ua),NA={left:!0,right:1,center:1},BA={top:1,bottom:1,middle:1},em=["fontStyle","fontWeight","fontSize","fontFamily"];function tm(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?sf+"px":t+"px"}function rm(t,e){for(var r=0;r<em.length;r++){var n=em[r],i=e[n];i!=null&&(t[n]=i)}}function nm(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function FA(t){return im(t),I(t.rich,im),t}function im(t){if(t){t.font=Me.makeFont(t);var e=t.align;e==="middle"&&(e="center"),t.align=e==null||NA[e]?e:"left";var r=t.verticalAlign;r==="center"&&(r="middle"),t.verticalAlign=r==null||BA[r]?r:"top";var n=t.padding;n&&(t.padding=df(t.padding))}}function am(t,e){return t==null||e<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function om(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function sm(t,e,r){return e==="right"?t-r[1]:e==="center"?t+r[3]/2-r[1]/2:t+r[3]}function lm(t){var e=t.text;return e!=null&&(e+=""),e}function mc(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var um=1e-4,fm=20,zA=14;function VA(t){return t.replace(/^\s+|\s+$/g,"")}var qe=Math.min,ge=Math.max,Be=Math.abs,Or=Math.round,Hn=Math.floor,Xa=Math.ceil,Un=Math.pow,qa=Math.log,yc=Math.LN10,GA=Math.PI,HA=Math.random;function It(t,e,r,n){var i=e[0],a=e[1],o=r[0],s=r[1],l=a-i,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(t<=i)return o;if(t>=a)return s}else{if(t>=i)return o;if(t<=a)return s}else{if(t===i)return o;if(t===a)return s}return(t-i)/l*u+o}var Q=UA;function UA(t,e,r){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return _c(t,e,r)}function _c(t,e,r){return q(t)?WA(t)?parseFloat(t)/100*e+(r||0):parseFloat(t):t==null?NaN:+t}function WA(t){return!!VA(t).match(/%$/)}function ve(t,e,r){return isNaN(e)?r?""+t:+t:(e=qe(ge(0,e),fm),t=(+t).toFixed(e),r?t:+t)}function Sc(t){return t.sort(function(e,r){return e-r}),t}function nn(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var e=1,r=0;r<15;r++,e*=10)if(Or(t*e)/e===t)return r}return YA(t)}function YA(t){var e=t.toString().toLowerCase(),r=e.indexOf("e"),n=r>0?+e.slice(r+1):0,i=r>0?r:e.length,a=e.indexOf("."),o=a<0?0:i-1-a;return ge(0,o-n)}function $A(t,e,r){var n=Be(t[1]-t[0]);if(!isFinite(n)||n===0)return NaN;var i=qa(2*Be(r||1)*Be(n))/yc,a=qa(Be(e))/yc,o=ge(0,Xa(-i+a));return isFinite(o)||(o=NaN),o}function XA(t,e){var r=qr(t,function(h,d){return h+(isNaN(d)?0:d)},0);if(r===0)return[];for(var n=Un(10,e),i=$(t,function(h){return(isNaN(h)?0:h)/r*n*100}),a=n*100,o=$(i,function(h){return Hn(h)}),s=qr(o,function(h,d){return h+d},0),l=$(i,function(h,d){return h-o[d]});s<a;){for(var u=Number.NEGATIVE_INFINITY,f=null,c=0,v=l.length;c<v;++c)l[c]>u&&(u=l[c],f=c);++o[f],l[f]=0,++s}return $(o,function(h){return h/n})}function qA(t,e){var r=ge(nn(t),nn(e)),n=t+e;return r>fm?n:ve(n,r)}var cm=Un(2,53)-1;function hm(t){var e=GA*2;return(t%e+e)%e}function Zs(t){return t>-um&&t<um}var ZA=/^(?:(\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 Oi(t){if(t instanceof Date)return t;if(q(t)){var e=ZA.exec(t);if(!e)return new Date(NaN);if(e[8]){var r=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(r-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,r,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(t==null)return new Date(NaN);return new Date(Or(t))}function vm(t){return Un(10,bc(t))}function bc(t){if(t===0)return 0;var e=Hn(qa(t)/yc);return t/Un(10,e)>=10&&e++,e}var dm=2;function wc(t,e){var r=bc(t),n=Un(10,r),i=t/n,a;return e===dm?a=1:e?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,t=a*n,ve(t,-r)}function Ks(t){var e=parseFloat(t);return e==t&&(e!==0||!q(t)||t.indexOf("x")<=0)?e:NaN}function KA(t){return!isNaN(Ks(t))}function Tc(){return Or(HA()*9)}function pm(t,e){return e===0?t:pm(e,t%e)}function gm(t,e){return t==null?e:e==null?t:t*e/pm(t,e)}function Lt(t){return t!=null&&isFinite(t)}var jA="[ECharts] ",QA=typeof console<"u"&&console.warn&&console.log;function JA(t,e,r){QA&&console[t](jA+e)}function mm(t,e){JA("error",t)}function ht(t){throw new Error(t)}function ym(t,e,r){return(e-t)*r+t}var _m="series\0",eD="\0_ec_\0";function nt(t){return t instanceof Array?t:t==null?[]:[t]}function js(t,e,r){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var n=0,i=r.length;n<i;n++){var a=r[n];!t.emphasis[e].hasOwnProperty(a)&&t[e].hasOwnProperty(a)&&(t.emphasis[e][a]=t[e][a])}}}var Sm=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function Za(t){return j(t)&&!W(t)&&!(t instanceof Date)?t.value:t}function tD(t){return j(t)&&!(t instanceof Array)}function rD(t,e,r){var n=r==="normalMerge",i=r==="replaceMerge",a=r==="replaceAll";t=t||[],e=(e||[]).slice();var o=te();I(e,function(l,u){if(!j(l)){e[u]=null;return}});var s=nD(t,o,r);return(n||i)&&iD(s,t,o,e),n&&aD(s,e),n||i?oD(s,e,i):a&&sD(s,e),lD(s),s}function nD(t,e,r){var n=[];if(r==="replaceAll")return n;for(var i=0;i<t.length;i++){var a=t[i];a&&a.id!=null&&e.set(a.id,i),n.push({existing:r==="replaceMerge"||ja(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function iD(t,e,r,n){I(n,function(i,a){if(!(!i||i.id==null)){var o=Ka(i.id),s=r.get(o);if(s!=null){var l=t[s];Wt(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=e[s],n[a]=null}}})}function aD(t,e){I(e,function(r,n){if(!(!r||r.name==null))for(var i=0;i<t.length;i++){var a=t[i].existing;if(!t[i].newOption&&a&&(a.id==null||r.id==null)&&!ja(r)&&!ja(a)&&bm("name",a,r)){t[i].newOption=r,e[n]=null;return}}})}function oD(t,e,r){I(e,function(n){if(n){for(var i,a=0;(i=t[a])&&(i.newOption||ja(i.existing)||i.existing&&n.id!=null&&!bm("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=r):t.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),a++}})}function sD(t,e){I(e,function(r){t.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function lD(t){var e=te();I(t,function(r){var n=r.existing;n&&e.set(n.id,r)}),I(t,function(r){var n=r.newOption;Wt(!n||n.id==null||!e.get(n.id)||e.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&e.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),I(t,function(r,n){var i=r.existing,a=r.newOption,o=r.keyInfo;if(j(a)){if(o.name=a.name!=null?Ka(a.name):i?i.name:_m+n,i)o.id=Ka(i.id);else if(a.id!=null)o.id=Ka(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,r)}})}function bm(t,e,r){var n=wr(e[t],null),i=wr(r[t],null);return n!=null&&i!=null&&n===i}function Ka(t){return wr(t,"")}function wr(t,e){return t==null?e:q(t)?t:me(t)||cf(t)?t+"":e}function xc(t){var e=t.name;return!!(e&&e.indexOf(_m))}function ja(t){return t&&t.id!=null&&Ka(t.id).indexOf(eD)===0}function uD(t,e,r){I(t,function(n){var i=n.newOption;j(i)&&(n.keyInfo.mainType=e,n.keyInfo.subType=fD(e,i,n.existing,r))})}function fD(t,e,r,n){var i=e.type?e.type:r?r.subType:n.determineSubType(t,e);return i}function Wn(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return W(e.dataIndex)?$(e.dataIndex,function(r){return t.indexOfRawIndex(r)}):t.indexOfRawIndex(e.dataIndex);if(e.name!=null)return W(e.name)?$(e.name,function(r){return t.indexOfName(r)}):t.indexOfName(e.name)}function Se(){var t="__ec_inner_"+cD++;return function(e){return e[t]||(e[t]={})}}var cD=Tc();function Cc(t,e,r){var n=Ac(e,r),i=n.mainTypeSpecified,a=n.queryOptionMap,o=n.others,s=o,l=r?r.defaultMainType:null;return!i&&l&&a.set(l,{}),a.each(function(u,f){var c=Qa(t,f,u,{useDefault:l===f,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[f+"Models"]=c.models,s[f+"Model"]=c.models[0]}),s}function Ac(t,e){var r;if(q(t)){var n={};n[t+"Index"]=0,r=n}else r=t;var i=te(),a={},o=!1;return I(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],c=(u[2]||"").toLowerCase();if(!(!f||!c||e&&e.includeMainTypes&&fe(e.includeMainTypes,f)<0)){o=o||!!f;var v=i.get(f)||i.set(f,{});v[c]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var Pt={useDefault:!0,enableAll:!1,enableNone:!1};function Qa(t,e,r,n){n=n||Pt;var i=r.index,a=r.id,o=r.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=t.getComponent(e))?[l]:[],s}if(i==="none"||i===!1){if(n.enableNone)return s.models=[],s;i=-1}return i==="all"&&(n.enableAll?i=a=o=null:i=-1),s.models=t.queryComponents({mainType:e,index:i,id:a,name:o}),s}function hD(t,e,r){var n={};n[e+"Id"]=t[e+"Id"],n[e+"Index"]=t[e+"Index"],n[e+"Name"]=t[e+"Name"];var i={mainType:e,query:n};return r&&(i.subType=r),i}function wm(t,e,r){t.setAttribute?t.setAttribute(e,r):t[e]=r}function vD(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function dD(t){return t==="auto"?ie.domSupported?"html":"richText":t||"html"}function Tm(t,e,r,n,i){var a=e==null||e==="auto";if(n==null)return n;if(me(n)){var o=ym(r||0,n,i);return ve(o,a?Math.max(nn(r||0),nn(n)):e)}else{if(q(n))return i<1?r:n;for(var s=[],l=r,u=n,f=Math.max(l?l.length:0,u.length),c=0;c<f;++c){var v=t.getDimensionInfo(c);if(v&&v.type==="ordinal")s[c]=(i<1&&l?l:u)[c];else{var h=l&&l[c]?l[c]:0,d=u[c],o=ym(h,d,i);s[c]=ve(o,a?Math.max(nn(h),nn(d)):e)}}return s}}function Et(){return[1/0,-1/0]}function Dc(t,e){Nr(e)&&(e<t[0]&&(t[0]=e),e>t[1]&&(t[1]=e))}function xm(t,e){Nr(e)&&e<t[0]&&(t[0]=e)}function Cm(t,e){Nr(e)&&e>t[1]&&(t[1]=e)}function pD(t,e){Ni(e[0],e[1])&&(e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]))}function Nr(t){return t!=null&&isFinite(t)}function Ni(t,e){return Nr(t)&&Nr(e)&&t<=e}function gD(t){var e=t[1]-t[0];return isFinite(e)&&e>=0}function mD(t){Ni(t[0],t[1])&&t[0]>t[1]&&(t[0]=t[1])}function Am(){var t="__ec_once_"+yD++;return function(e,r){tt(e,t)||(e[t]=1,r())}}var yD=Tc();function Mc(t,e,r){var n=te(),i=0;I(t,function(a){var o=e(a),s=n.get(o)||0;r&&r(a,s),!s&&!r&&(t[i++]=a),n.set(o,s+1)}),r||(t.length=i)}function _D(t){return t.value+""}function SD(t){return t+""}function Dm(t,e){return Z(e,!0)?t.seriesIndex+2:0}function Mm(t,e,r){var n=t.getData().count();return{progressiveRender:r.progressiveEnabled&&e.incrementalPrepareRender&&n>=r.threshold,large:t.get("large")&&n>=t.get("largeThreshold"),modDataCount:t.get("progressiveChunkMode")==="mod"?t.getData().count():null}}function Ic(t,e){return{seriesType:t,overallReset:e}}function Lc(t){return{overallReset:t}}var ue=Se(),Pc=function(t,e,r,n){if(n){var i=ue(n);i.dataIndex=r,i.dataType=e,i.seriesIndex=t,i.ssrType="chart",n.type==="group"&&n.traverse(function(a){var o=ue(a);o.seriesIndex=t,o.dataIndex=r,o.dataType=e,o.ssrType="chart"})}},Bi="undefined",Im="series",Lm=te(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),_t="original",Ze="arrayRows",kt="objectRows",Xt="keyedColumns",an="typedArray",Pm="unknown",qt="column",Yn="row",bD=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Em=(function(){function t(e){I(bD,function(r){this[r]=de(e[r],e)},this)}return t})();function wD(t,e){return e.mainType===Im?t.getViewOfSeriesModel(e):t.getViewOfComponentModel(e)}var km=1,Rm={},Om=Se(),Ec=Se(),kc=0,Qs=1,Js=2,Rt=["emphasis","blur","select"],el=["normal","emphasis","blur","select"],TD=10,xD=9,$n="highlight",tl="downplay",rl="select",Rc="unselect",nl="toggleSelect",Oc="selectchanged";function Fi(t){return t!=null&&t!=="none"}function il(t,e,r){t.onHoverStateChange&&(t.hoverState||0)!==r&&t.onHoverStateChange(e),t.hoverState=r}function Nm(t){il(t,"emphasis",Js)}function Bm(t){t.hoverState===Js&&il(t,"normal",kc)}function Nc(t){il(t,"blur",Qs)}function Fm(t){t.hoverState===Qs&&il(t,"normal",kc)}function CD(t){t.selected=!0}function AD(t){t.selected=!1}function zm(t,e,r){e(t,r)}function Br(t,e,r){zm(t,e,r),t.isGroup&&t.traverse(function(n){zm(n,e,r)})}function Vm(t,e){switch(e){case"emphasis":t.hoverState=Js;break;case"normal":t.hoverState=kc;break;case"blur":t.hoverState=Qs;break;case"select":t.selected=!0}}function DD(t,e,r,n){for(var i=t.style,a={},o=0;o<e.length;o++){var s=e[o],l=i[s];a[s]=l??(n&&n[s])}for(var o=0;o<t.animators.length;o++){var u=t.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style"&&u.saveTo(a,e)}return a}function MD(t,e,r,n){var i=r&&fe(r,"select")>=0,a=!1;if(t instanceof pe){var o=Om(t),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(Fi(s)||Fi(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=z({},n),u=z({},u),u.fill=s):!Fi(u.fill)&&Fi(s)?(a=!0,n=z({},n),u=z({},u),u.fill=Wf(s)):!Fi(u.stroke)&&Fi(l)&&(a||(n=z({},n),u=z({},u)),u.stroke=Wf(l)),n.style=u}}if(n&&n.z2==null){a||(n=z({},n));var f=t.z2EmphasisLift;n.z2=t.z2+(f??TD)}return n}function ID(t,e,r){if(r&&r.z2==null){r=z({},r);var n=t.z2SelectLift;r.z2=t.z2+(n??xD)}return r}function LD(t,e,r){var n=fe(t.currentStates,e)>=0,i=t.style.opacity,a=n?null:DD(t,["opacity"],e,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=z({},r),o=z({opacity:n?i:a.opacity*.1},o),r.style=o),r}function Bc(t,e){var r=this.states[t];if(this.style){if(t==="emphasis")return MD(this,t,e,r);if(t==="blur")return LD(this,t,r);if(t==="select")return ID(this,t,r)}return r}function PD(t){t.stateProxy=Bc;var e=t.getTextContent(),r=t.getTextGuideLine();e&&(e.stateProxy=Bc),r&&(r.stateProxy=Bc)}function Gm(t,e){!$m(t,e)&&!t.__highByOuter&&Br(t,Nm)}function Hm(t,e){!$m(t,e)&&!t.__highByOuter&&Br(t,Bm)}function al(t,e){t.__highByOuter|=1<<(e||0),Br(t,Nm)}function ol(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Br(t,Bm)}function ED(t){Br(t,Nc)}function Um(t){Br(t,Fm)}function Wm(t){Br(t,CD)}function Ym(t){Br(t,AD)}function $m(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Xm(t){var e=t.getModel(),r=[],n=[];e.eachComponent(function(i,a){var o=Ec(a),s=wD(t,a),l=i==="series";!l&&n.push(s),o.isBlured&&(s.group.traverse(function(u){Fm(u)}),l&&r.push(a)),o.isBlured=!1}),I(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,e)})}function Fc(t,e,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(u,f){for(var c=0;c<f.length;c++){var v=u.getItemGraphicEl(f[c]);v&&Um(v)}}if(t!=null&&!(!e||e==="none")){var o=i.getSeriesByIndex(t),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(u){var f=o===u,c=u.coordinateSystem;c&&c.master&&(c=c.master);var v=c&&s?c===s:f;if(!(r==="series"&&!f||r==="coordinateSystem"&&!v||e==="series"&&f)){var h=n.getViewOfSeriesModel(u);if(h.group.traverse(function(g){g.__highByOuter&&f&&e==="self"||Nc(g)}),ut(e))a(u.getData(),e);else if(j(e))for(var d=ce(e),p=0;p<d.length;p++)a(u.getData(d[p]),e[d[p]]);l.push(u),Ec(u).isBlured=!0}}),i.eachComponent(function(u,f){if(u!=="series"){var c=n.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(l,!0,i)}})}}function zc(t,e,r){if(!(t==null||e==null)){var n=r.getModel().getComponent(t,e);if(n){Ec(n).isBlured=!0;var i=r.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){Nc(a)})}}}function kD(t,e,r){var n=t.seriesIndex,i=t.getData(e.dataType);if(i){var a=Wn(i,e);a=(W(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),l=0;!o&&l<s;)o=i.getItemGraphicEl(l++);if(o){var u=ue(o);Fc(n,u.focus,u.blurScope,r)}else{var f=t.get(["emphasis","focus"]),c=t.get(["emphasis","blurScope"]);f!=null&&Fc(n,f,c,r)}}}function Vc(t,e,r,n){var i={focusSelf:!1,dispatchers:null};if(t==null||t==="series"||e==null||r==null)return i;var a=n.getModel().getComponent(t,e);if(!a)return i;var o=n.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if(ue(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function RD(t,e,r){var n=ue(t),i=Vc(n.componentMainType,n.componentIndex,n.componentHighDownName,r),a=i.dispatchers,o=i.focusSelf;a?(o&&zc(n.componentMainType,n.componentIndex,r),I(a,function(s){return Gm(s,e)})):(Fc(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&zc(n.componentMainType,n.componentIndex,r),Gm(t,e))}function OD(t,e,r){Xm(r);var n=ue(t),i=Vc(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;i?I(i,function(a){return Hm(a,e)}):Hm(t,e)}function ND(t,e,r){if(Uc(e)){var n=e.dataType,i=t.getData(n),a=Wn(i,e);W(a)||(a=[a]),t[e.type===nl?"toggleSelect":e.type===rl?"select":"unselect"](a,n)}}function qm(t){var e=t.getAllData();I(e,function(r){var n=r.data,i=r.type;n.eachItemGraphicEl(function(a,o){t.isSelected(o,i)?Wm(a):Ym(a)})})}function BD(t){var e=[];return t.eachSeries(function(r){var n=r.getAllData();I(n,function(i){i.data;var a=i.type,o=r.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),e.push(s)}})}),e}function Gc(t,e,r){Km(t,!0),Br(t,PD),zD(t,e,r)}function FD(t){Km(t,!1)}function Fr(t,e,r,n){n?FD(t):Gc(t,e,r)}function zD(t,e,r){var n=ue(t);e!=null?(n.focus=e,n.blurScope=r):n.focus&&(n.focus=null)}var Zm=["emphasis","blur","select"],VD={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function zr(t,e,r,n){r=r||"itemStyle";for(var i=0;i<Zm.length;i++){var a=Zm[i],o=e.getModel([a,r]),s=t.ensureState(a);s.style=o[VD[r]]()}}function Km(t,e){var r=e===!1,n=t;t.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function Hc(t){return!!(t&&t.__highDownDispatcher)}function GD(t){var e=Rm[t];return e==null&&km<=32&&(e=Rm[t]=km++),e}function Uc(t){var e=t.type;return e===rl||e===Rc||e===nl}function jm(t){var e=t.type;return e===$n||e===tl}function HD(t){var e=Om(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var r=t.states.select||{};e.selectFill=r.style&&r.style.fill||null,e.selectStroke=r.style&&r.style.stroke||null}var zi=tn.CMD,UD=[[],[],[]],Qm=Math.sqrt,WD=Math.atan2;function YD(t,e){if(e){var r=t.data,n=t.len(),i,a,o,s,l,u,f=zi.M,c=zi.C,v=zi.L,h=zi.R,d=zi.A,p=zi.Q;for(o=0,s=0;o<n;){switch(i=r[o++],s=o,a=0,i){case f:a=1;break;case v:a=1;break;case c:a=3;break;case p:a=2;break;case d:var g=e[4],m=e[5],y=Qm(e[0]*e[0]+e[1]*e[1]),_=Qm(e[2]*e[2]+e[3]*e[3]),S=WD(-e[1]/_,e[0]/y);r[o]*=y,r[o++]+=g,r[o]*=_,r[o++]+=m,r[o++]*=y,r[o++]*=_,r[o++]+=S,r[o++]+=S,o+=2,s=o;break;case h:u[0]=r[o++],u[1]=r[o++],wt(u,u,e),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],wt(u,u,e),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<a;l++){var b=UD[l];b[0]=r[o++],b[1]=r[o++],wt(b,b,e),r[s++]=b[0],r[s++]=b[1]}}t.increaseVersion()}}var Wc=Math.sqrt,sl=Math.sin,ll=Math.cos,Ja=Math.PI;function Jm(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Yc(t,e){return(t[0]*e[0]+t[1]*e[1])/(Jm(t)*Jm(e))}function ey(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Yc(t,e))}function ty(t,e,r,n,i,a,o,s,l,u,f){var c=l*(Ja/180),v=ll(c)*(t-r)/2+sl(c)*(e-n)/2,h=-1*sl(c)*(t-r)/2+ll(c)*(e-n)/2,d=v*v/(o*o)+h*h/(s*s);d>1&&(o*=Wc(d),s*=Wc(d));var p=(i===a?-1:1)*Wc((o*o*(s*s)-o*o*(h*h)-s*s*(v*v))/(o*o*(h*h)+s*s*(v*v)))||0,g=p*o*h/s,m=p*-s*v/o,y=(t+r)/2+ll(c)*g-sl(c)*m,_=(e+n)/2+sl(c)*g+ll(c)*m,S=ey([1,0],[(v-g)/o,(h-m)/s]),b=[(v-g)/o,(h-m)/s],w=[(-1*v-g)/o,(-1*h-m)/s],T=ey(b,w);if(Yc(b,w)<=-1&&(T=Ja),Yc(b,w)>=1&&(T=0),T<0){var C=Math.round(T/Ja*1e6)/1e6;T=Ja*2+C%2*Ja}f.addData(u,y,_,o,s,S,T,c,a)}var $D=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,XD=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function qD(t){var e=new tn;if(!t)return e;var r=0,n=0,i=r,a=n,o,s=tn.CMD,l=t.match($D);if(!l)return e;for(var u=0;u<l.length;u++){for(var f=l[u],c=f.charAt(0),v=void 0,h=f.match(XD)||[],d=h.length,p=0;p<d;p++)h[p]=parseFloat(h[p]);for(var g=0;g<d;){var m=void 0,y=void 0,_=void 0,S=void 0,b=void 0,w=void 0,T=void 0,C=r,D=n,x=void 0,A=void 0;switch(c){case"l":r+=h[g++],n+=h[g++],v=s.L,e.addData(v,r,n);break;case"L":r=h[g++],n=h[g++],v=s.L,e.addData(v,r,n);break;case"m":r+=h[g++],n+=h[g++],v=s.M,e.addData(v,r,n),i=r,a=n,c="l";break;case"M":r=h[g++],n=h[g++],v=s.M,e.addData(v,r,n),i=r,a=n,c="L";break;case"h":r+=h[g++],v=s.L,e.addData(v,r,n);break;case"H":r=h[g++],v=s.L,e.addData(v,r,n);break;case"v":n+=h[g++],v=s.L,e.addData(v,r,n);break;case"V":n=h[g++],v=s.L,e.addData(v,r,n);break;case"C":v=s.C,e.addData(v,h[g++],h[g++],h[g++],h[g++],h[g++],h[g++]),r=h[g-2],n=h[g-1];break;case"c":v=s.C,e.addData(v,h[g++]+r,h[g++]+n,h[g++]+r,h[g++]+n,h[g++]+r,h[g++]+n),r+=h[g-2],n+=h[g-1];break;case"S":m=r,y=n,x=e.len(),A=e.data,o===s.C&&(m+=r-A[x-4],y+=n-A[x-3]),v=s.C,C=h[g++],D=h[g++],r=h[g++],n=h[g++],e.addData(v,m,y,C,D,r,n);break;case"s":m=r,y=n,x=e.len(),A=e.data,o===s.C&&(m+=r-A[x-4],y+=n-A[x-3]),v=s.C,C=r+h[g++],D=n+h[g++],r+=h[g++],n+=h[g++],e.addData(v,m,y,C,D,r,n);break;case"Q":C=h[g++],D=h[g++],r=h[g++],n=h[g++],v=s.Q,e.addData(v,C,D,r,n);break;case"q":C=h[g++]+r,D=h[g++]+n,r+=h[g++],n+=h[g++],v=s.Q,e.addData(v,C,D,r,n);break;case"T":m=r,y=n,x=e.len(),A=e.data,o===s.Q&&(m+=r-A[x-4],y+=n-A[x-3]),r=h[g++],n=h[g++],v=s.Q,e.addData(v,m,y,r,n);break;case"t":m=r,y=n,x=e.len(),A=e.data,o===s.Q&&(m+=r-A[x-4],y+=n-A[x-3]),r+=h[g++],n+=h[g++],v=s.Q,e.addData(v,m,y,r,n);break;case"A":_=h[g++],S=h[g++],b=h[g++],w=h[g++],T=h[g++],C=r,D=n,r=h[g++],n=h[g++],v=s.A,ty(C,D,r,n,w,T,_,S,b,v,e);break;case"a":_=h[g++],S=h[g++],b=h[g++],w=h[g++],T=h[g++],C=r,D=n,r+=h[g++],n+=h[g++],v=s.A,ty(C,D,r,n,w,T,_,S,b,v,e);break}}(c==="z"||c==="Z")&&(v=s.Z,e.addData(v),r=i,n=a),o=v}return e.toStatic(),e}var ry=(function(t){V(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(r){},e})(pe);function ny(t){return t.setData!=null}function iy(t,e){var r=qD(t),n=z({},e);return n.buildPath=function(i){var a=ny(i);if(a&&i.canSave()){i.appendPath(r);var o=i.getContext();o&&i.rebuildPath(o,1)}else{var o=a?i.getContext():i;o&&r.rebuildPath(o,1)}},n.applyTransform=function(i){YD(r,i),this.dirtyShape()},n}function ZD(t,e){return new ry(iy(t,e))}function KD(t,e){var r=iy(t,e),n=(function(i){V(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a})(ry);return n}function jD(t,e){for(var r=[],n=t.length,i=0;i<n;i++){var a=t[i];r.push(a.getUpdatedPathProxy(!0))}var o=new pe(e);return o.createPathProxy(),o.buildPath=function(s){if(ny(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var Ce=(function(t){V(e,t);function e(r){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(r){return this._children[r]},e.prototype.childOfName=function(r){for(var n=this._children,i=0;i<n.length;i++)if(n[i].name===r)return n[i]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},e.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var i=this._children,a=i.indexOf(n);a>=0&&(i.splice(a,0,r),this._doAdd(r))}return this},e.prototype.replace=function(r,n){var i=fe(this._children,r);return i>=0&&this.replaceAt(n,i),this},e.prototype.replaceAt=function(r,n){var i=this._children,a=i[n];if(r&&r!==this&&r.parent!==this&&r!==a){i[n]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},e.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},e.prototype.remove=function(r){var n=this.__zr,i=this._children,a=fe(i,r);return a<0?this:(i.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},e.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,i=0;i<r.length;i++){var a=r[i];n&&a.removeSelfFromZr(n),a.parent=null}return r.length=0,this},e.prototype.eachChild=function(r,n){for(var i=this._children,a=0;a<i.length;a++){var o=i[a];r.call(n,o,a)}return this},e.prototype.traverse=function(r,n){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=r.call(n,a);a.isGroup&&!o&&a.traverse(r,n)}return this},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(r)}},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(r)}},e.prototype.getBoundingRect=function(r){for(var n=new ne(0,0,0,0),i=r||this._children,a=[],o=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(a);f?(ne.applyTransform(n,u,f),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},e})(Hs);Ce.prototype.type="group";var QD=(function(){function t(){this.cx=0,this.cy=0,this.r=0}return t})(),eo=(function(t){V(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new QD},e.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,Math.PI*2)},e})(pe);eo.prototype.type="circle";var JD=(function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t})(),$c=(function(t){V(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new JD},e.prototype.buildPath=function(r,n){var i=.5522848,a=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*i,f=l*i;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-f,a-u,o-l,a,o-l),r.bezierCurveTo(a+u,o-l,a+s,o-f,a+s,o),r.bezierCurveTo(a+s,o+f,a+u,o+l,a,o+l),r.bezierCurveTo(a-u,o+l,a-s,o+f,a-s,o),r.closePath()},e})(pe);$c.prototype.type="ellipse";var ay=Math.PI,Xc=ay*2,Xn=Math.sin,Vi=Math.cos,eM=Math.acos,Ke=Math.atan2,oy=Math.abs,to=Math.sqrt,ro=Math.max,Tr=Math.min,Zt=1e-4;function tM(t,e,r,n,i,a,o,s){var l=r-t,u=n-e,f=o-i,c=s-a,v=c*l-f*u;if(!(v*v<Zt))return v=(f*(e-a)-c*(t-i))/v,[t+v*l,e+v*u]}function ul(t,e,r,n,i,a,o){var s=t-r,l=e-n,u=(o?a:-a)/to(s*s+l*l),f=u*l,c=-u*s,v=t+f,h=e+c,d=r+f,p=n+c,g=(v+d)/2,m=(h+p)/2,y=d-v,_=p-h,S=y*y+_*_,b=i-a,w=v*p-d*h,T=(_<0?-1:1)*to(ro(0,b*b*S-w*w)),C=(w*_-y*T)/S,D=(-w*y-_*T)/S,x=(w*_+y*T)/S,A=(-w*y+_*T)/S,L=C-g,M=D-m,P=x-g,E=A-m;return L*L+M*M>P*P+E*E&&(C=x,D=A),{cx:C,cy:D,x0:-f,y0:-c,x1:C*(i/b-1),y1:D*(i/b-1)}}function rM(t){var e;if(W(t)){var r=t.length;if(!r)return t;r===1?e=[t[0],t[0],0,0]:r===2?e=[t[0],t[0],t[1],t[1]]:r===3?e=t.concat(t[2]):e=t}else e=[t,t,t,t];return e}function nM(t,e){var r,n=ro(e.r,0),i=ro(e.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var f=e.cx,c=e.cy,v=!!e.clockwise,h=oy(u-l),d=h>Xc&&h%Xc;if(d>Zt&&(h=d),!(n>Zt))t.moveTo(f,c);else if(h>Xc-Zt)t.moveTo(f+n*Vi(l),c+n*Xn(l)),t.arc(f,c,n,l,u,!v),i>Zt&&(t.moveTo(f+i*Vi(u),c+i*Xn(u)),t.arc(f,c,i,u,l,v));else{var p=void 0,g=void 0,m=void 0,y=void 0,_=void 0,S=void 0,b=void 0,w=void 0,T=void 0,C=void 0,D=void 0,x=void 0,A=void 0,L=void 0,M=void 0,P=void 0,E=n*Vi(l),k=n*Xn(l),O=i*Vi(u),R=i*Xn(u),N=h>Zt;if(N){var F=e.cornerRadius;F&&(r=rM(F),p=r[0],g=r[1],m=r[2],y=r[3]);var B=oy(n-i)/2;if(_=Tr(B,m),S=Tr(B,y),b=Tr(B,p),w=Tr(B,g),D=T=ro(_,S),x=C=ro(b,w),(T>Zt||C>Zt)&&(A=n*Vi(u),L=n*Xn(u),M=i*Vi(l),P=i*Xn(l),h<ay)){var G=tM(E,k,M,P,A,L,O,R);if(G){var X=E-G[0],H=k-G[1],K=A-G[0],ae=L-G[1],ke=1/Xn(eM((X*K+H*ae)/(to(X*X+H*H)*to(K*K+ae*ae)))/2),Ae=to(G[0]*G[0]+G[1]*G[1]);D=Tr(T,(n-Ae)/(ke+1)),x=Tr(C,(i-Ae)/(ke-1))}}}if(!N)t.moveTo(f+E,c+k);else if(D>Zt){var he=Tr(m,D),Te=Tr(y,D),J=ul(M,P,E,k,n,he,v),se=ul(A,L,O,R,n,Te,v);t.moveTo(f+J.cx+J.x0,c+J.cy+J.y0),D<T&&he===Te?t.arc(f+J.cx,c+J.cy,D,Ke(J.y0,J.x0),Ke(se.y0,se.x0),!v):(he>0&&t.arc(f+J.cx,c+J.cy,he,Ke(J.y0,J.x0),Ke(J.y1,J.x1),!v),t.arc(f,c,n,Ke(J.cy+J.y1,J.cx+J.x1),Ke(se.cy+se.y1,se.cx+se.x1),!v),Te>0&&t.arc(f+se.cx,c+se.cy,Te,Ke(se.y1,se.x1),Ke(se.y0,se.x0),!v))}else t.moveTo(f+E,c+k),t.arc(f,c,n,l,u,!v);if(!(i>Zt)||!N)t.lineTo(f+O,c+R);else if(x>Zt){var he=Tr(p,x),Te=Tr(g,x),J=ul(O,R,A,L,i,-Te,v),se=ul(E,k,M,P,i,-he,v);t.lineTo(f+J.cx+J.x0,c+J.cy+J.y0),x<C&&he===Te?t.arc(f+J.cx,c+J.cy,x,Ke(J.y0,J.x0),Ke(se.y0,se.x0),!v):(Te>0&&t.arc(f+J.cx,c+J.cy,Te,Ke(J.y0,J.x0),Ke(J.y1,J.x1),!v),t.arc(f,c,i,Ke(J.cy+J.y1,J.cx+J.x1),Ke(se.cy+se.y1,se.cx+se.x1),v),he>0&&t.arc(f+se.cx,c+se.cy,he,Ke(se.y1,se.x1),Ke(se.y0,se.x0),!v))}else t.lineTo(f+O,c+R),t.arc(f,c,i,u,l,v)}t.closePath()}}}var iM=(function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return t})(),xr=(function(t){V(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new iM},e.prototype.buildPath=function(r,n){nM(r,n)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e})(pe);xr.prototype.type="sector";var aM=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t})(),fl=(function(t){V(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new aM},e.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.PI*2;r.moveTo(i+n.r,a),r.arc(i,a,n.r,0,o,!1),r.moveTo(i+n.r0,a),r.arc(i,a,n.r0,0,o,!0)},e})(pe);fl.prototype.type="ring";function oM(t,e,r,n){var i=[],a=[],o=[],s=[],l,u,f,c;if(n){f=[1/0,1/0],c=[-1/0,-1/0];for(var v=0,h=t.length;v<h;v++)xi(f,f,t[v]),Ci(c,c,t[v]);xi(f,f,n[0]),Ci(c,c,n[1])}for(var v=0,h=t.length;v<h;v++){var d=t[v];if(r)l=t[v?v-1:h-1],u=t[(v+1)%h];else if(v===0||v===h-1){i.push(pC(t[v]));continue}else l=t[v-1],u=t[v+1];gC(a,u,l),wf(a,a,e);var p=Tf(d,l),g=Tf(d,u),m=p+g;m!==0&&(p/=m,g/=m),wf(o,a,-p),wf(s,a,g);var y=jp([],d,o),_=jp([],d,s);n&&(Ci(y,y,f),xi(y,y,c),Ci(_,_,f),xi(_,_,c)),i.push(y),i.push(_)}return r&&i.push(i.shift()),i}function sy(t,e,r){var n=e.smooth,i=e.points;if(i&&i.length>=2){if(n){var a=oM(i,n,r,e.smoothConstraint);t.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(r?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=i[(s+1)%o];t.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{t.moveTo(i[0][0],i[0][1]);for(var s=1,c=i.length;s<c;s++)t.lineTo(i[s][0],i[s][1])}r&&t.closePath()}}var sM=(function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t})(),Gi=(function(t){V(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new sM},e.prototype.buildPath=function(r,n){sy(r,n,!0)},e})(pe);Gi.prototype.type="polygon";var lM=(function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t})(),on=(function(t){V(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new lM},e.prototype.buildPath=function(r,n){sy(r,n,!1)},e})(pe);on.prototype.type="polyline";var uM={},fM=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t})(),Cr=(function(t){V(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new fM},e.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=Kg(uM,n,this.style);i=l.x1,a=l.y1,o=l.x2,s=l.y2}else i=n.x1,a=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(r.moveTo(i,a),u<1&&(o=i*(1-u)+o*u,s=a*(1-u)+s*u),r.lineTo(o,s))},e.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},e})(pe);Cr.prototype.type="line";var vt=[],cM=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t})();function ly(t,e,r){var n=t.cpx2,i=t.cpy2;return n!=null||i!=null?[(r?_g:Ye)(t.x1,t.cpx1,t.cpx2,t.x2,e),(r?_g:Ye)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(r?bg:ct)(t.x1,t.cpx1,t.x2,e),(r?bg:ct)(t.y1,t.cpy1,t.y2,e)]}var qc=(function(t){V(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new cM},e.prototype.buildPath=function(r,n){var i=n.x1,a=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,f=n.cpx2,c=n.cpy2,v=n.percent;v!==0&&(r.moveTo(i,a),f==null||c==null?(v<1&&(As(i,l,o,v,vt),l=vt[1],o=vt[2],As(a,u,s,v,vt),u=vt[1],s=vt[2]),r.quadraticCurveTo(l,u,o,s)):(v<1&&(Cs(i,l,f,o,v,vt),l=vt[1],f=vt[2],o=vt[3],Cs(a,u,c,s,v,vt),u=vt[1],c=vt[2],s=vt[3]),r.bezierCurveTo(l,u,f,c,o,s)))},e.prototype.pointAt=function(r){return ly(this.shape,r,!1)},e.prototype.tangentAt=function(r){var n=ly(this.shape,r,!0);return _C(n,n)},e})(pe);qc.prototype.type="bezier-curve";var hM=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t})(),cl=(function(t){V(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new hM},e.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,f=Math.cos(s),c=Math.sin(s);r.moveTo(f*o+i,c*o+a),r.arc(i,a,o,s,l,!u)},e})(pe);cl.prototype.type="arc";var uy=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="compound",r}return e.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),i=0;i<r.length;i++)n=n||r[i].shapeChanged();n&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),i=0;i<r.length;i++)r[i].path||r[i].createPathProxy(),r[i].path.setScale(n[0],n[1],r[i].segmentIgnoreThreshold)},e.prototype.buildPath=function(r,n){for(var i=n.paths||[],a=0;a<i.length;a++)i[a].buildPath(r,i[a].shape,!0)},e.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),pe.prototype.getBoundingRect.call(this)},e})(pe),fy=(function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,r){this.colorStops.push({offset:e,color:r})},t})(),cy=(function(t){V(e,t);function e(r,n,i,a,o,s){var l=t.call(this,o)||this;return l.x=r??0,l.y=n??0,l.x2=i??1,l.y2=a??0,l.type="linear",l.global=s||!1,l}return e})(fy),vM=(function(t){V(e,t);function e(r,n,i,a,o){var s=t.call(this,a)||this;return s.x=r??.5,s.y=n??.5,s.r=i??.5,s.type="radial",s.global=o||!1,s}return e})(fy),Zc=Math.min,dM=Math.max,hl=Math.abs,qn=[0,0],Zn=[0,0],Ve=tg(),vl=Ve.minTv,dl=Ve.maxTv,hy=(function(){function t(e,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new re;for(var n=0;n<2;n++)this._axes[n]=new re;e&&this.fromBoundingRect(e,r)}return t.prototype.fromBoundingRect=function(e,r){var n=this._corners,i=this._axes,a=e.x,o=e.y,s=a+e.width,l=o+e.height;if(n[0].set(a,o),n[1].set(s,o),n[2].set(s,l),n[3].set(a,l),r)for(var u=0;u<4;u++)n[u].transform(r);re.sub(i[0],n[1],n[0]),re.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var u=0;u<2;u++)this._origin[u]=i[u].dot(n[0])},t.prototype.intersect=function(e,r,n){var i=!0,a=!r;return r&&re.set(r,0,0),Ve.reset(n,!a),!this._intersectCheckOneSide(this,e,a,1)&&(i=!1,a)||!this._intersectCheckOneSide(e,this,a,-1)&&(i=!1,a)||!a&&!Ve.negativeSize&&re.copy(r,i?Ve.useDir?Ve.dirMinTv:vl:dl),i},t.prototype._intersectCheckOneSide=function(e,r,n,i){for(var a=!0,o=0;o<2;o++){var s=e._axes[o];if(e._getProjMinMaxOnAxis(o,e._corners,qn),e._getProjMinMaxOnAxis(o,r._corners,Zn),Ve.negativeSize||qn[1]<Zn[0]||qn[0]>Zn[1]){if(a=!1,Ve.negativeSize||n)return a;var l=hl(Zn[0]-qn[1]),u=hl(qn[0]-Zn[1]);Zc(l,u)>dl.len()&&(l<u?re.scale(dl,s,-l*i):re.scale(dl,s,u*i))}else if(!n){var l=hl(Zn[0]-qn[1]),u=hl(qn[0]-Zn[1]);(Ve.useDir||Zc(l,u)<vl.len())&&((l<u||!Ve.bidirectional)&&(re.scale(vl,s,l*i),Ve.useDir&&Ve.calcDirMTV()),(l>=u||!Ve.bidirectional)&&(re.scale(vl,s,-u*i),Ve.useDir&&Ve.calcDirMTV()))}}return a},t.prototype._getProjMinMaxOnAxis=function(e,r,n){for(var i=this._axes[e],a=this._origin,o=r[0].dot(i)+a[e],s=o,l=o,u=1;u<r.length;u++){var f=r[u].dot(i)+a[e];s=Zc(f,s),l=dM(f,l)}n[0]=s+Ve.touchThreshold,n[1]=l-Ve.touchThreshold,Ve.negativeSize=n[1]<n[0]},t})(),pM=1,gM=[],mM=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.notClear=!0,r.incremental=pM,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return e.prototype.traverse=function(r,n){r.call(n,this)},e.prototype.useStyle=function(){this.style={}},e.prototype._useHoverStyle=function(){this.__hoverStyle=null},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},e.prototype.addDisplayables=function(r,n){n=n||!1;for(var i=0;i<r.length;i++)this.addDisplayable(r[i],n)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},e.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new ne(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var i=this._displayables[n],a=i.getBoundingRect().clone();i.needLocalTransform()&&a.applyTransform(i.getLocalTransform(gM)),r.union(a)}this._rect=r}return this._rect},e.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(a.contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,n))return!0}return!1},e})(Ua),yM=Se();function _M(t,e,r,n,i){var a;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();a=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=t==="update";if(s){var u=void 0,f=void 0,c=void 0;n?(u=Z(n.duration,200),f=Z(n.easing,"cubicOut"),c=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),f=e.getShallow(l?"animationEasingUpdate":"animationEasing"),c=e.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(c=a.delay)),ee(c)&&(c=c(r,i)),ee(u)&&(u=u(r));var v={duration:u||0,delay:c,easing:f};return v}else return null}function Kc(t,e,r,n,i,a,o){var s=!1,l;ee(i)?(o=a,a=i,i=null):j(i)&&(a=i.cb,o=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u=t==="leave";u||e.stopAnimation("leave");var f=_M(t,n,i,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,i):null);if(f&&f.duration>0){var c=f.duration,v=f.delay,h=f.easing,d={duration:c,delay:v||0,easing:h,done:a,force:!!a||!!o,setToFinal:!u,scope:t,during:o};s?e.animateFrom(r,d):e.animateTo(r,d)}else e.stopAnimation(),!s&&e.attr(r),o&&o(1),a&&a()}function Ie(t,e,r,n,i,a){Kc("update",t,e,r,n,i,a)}function Ge(t,e,r,n,i,a){Kc("enter",t,e,r,n,i,a)}function no(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var r=t.animators[e];if(r.scope==="leave")return!0}return!1}function pl(t,e,r,n,i,a){no(t)||Kc("leave",t,e,r,n,i,a)}function vy(t,e,r,n){t.removeTextContent(),t.removeTextGuideLine(),pl(t,{style:{opacity:0}},e,r,n)}function Hi(t,e,r){function n(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(i){i.isGroup||vy(i,e,r,n)}):vy(t,e,r,n)}function Ui(t){yM(t).oldStyle=t.style}var jc={},sn=["x","y"],Wi=["width","height"],dy=0,py=1,Qc=2;function SM(t){return pe.extend(t)}var bM=KD;function wM(t,e){return bM(t,e)}function Kt(t,e){jc[t]=e}function TM(t){if(jc.hasOwnProperty(t))return jc[t]}function Jc(t,e,r,n){var i=ZD(t,e);return r&&(n==="center"&&(r=my(r,i.getBoundingRect())),yy(i,r)),i}function gy(t,e,r){var n=new Mt({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(i){if(r==="center"){var a={width:i.width,height:i.height};n.setStyle(my(e,a))}}});return n}function my(t,e){var r=e.width/e.height,n=t.height*r,i;n<=t.width?i=t.height:(n=t.width,i=n/r);var a=t.x+t.width/2,o=t.y+t.height/2;return{x:a-n/2,y:o-i/2,width:n,height:i}}var eh=jD;function yy(t,e){if(t.applyTransform){var r=t.getBoundingRect(),n=r.calculateTransform(e);t.applyTransform(n)}}function io(t,e){return Kg(t,t,{lineWidth:e}),t}function xM(t,e){return jg(t,t,e),t}var CM=Gn;function AM(t,e){for(var r=Ia([]);t&&t!==e;)La(r,t.getLocalTransform(),r),t=t.parent;return r}function th(t,e,r){return e&&!ut(e)&&(e=Oa.getLocalTransform(e)),r&&(e=Pa([],e)),wt([],t,e)}function DM(t,e,r){var n=e[4]===0||e[5]===0||e[0]===0?1:Be(2*e[4]/e[0]),i=e[4]===0||e[5]===0||e[2]===0?1:Be(2*e[4]/e[2]),a=[t==="left"?-n:t==="right"?n:0,t==="top"?-i:t==="bottom"?i:0];return a=th(a,e,r),Be(a[0])>Be(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function _y(t){return!t.isGroup}function MM(t){return t.shape!=null}function Sy(t,e,r){if(!t||!e)return;function n(o){var s={};return o.traverse(function(l){_y(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return MM(o)&&(s.shape=oe(o.shape)),s}var a=n(t);e.traverse(function(o){if(_y(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),Ie(o,l,r,ue(o).dataIndex)}}})}function IM(t,e){return $(t,function(r){var n=r[0];n=ge(n,e.x),n=qe(n,e.x+e.width);var i=r[1];return i=ge(i,e.y),i=qe(i,e.y+e.height),[n,i]})}function LM(t,e){var r=ge(t.x,e.x),n=qe(t.x+t.width,e.x+e.width),i=ge(t.y,e.y),a=qe(t.y+t.height,e.y+e.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function rh(t,e,r){var n=z({rectHover:!0},e),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(i.image=t.slice(8),le(i,r),new Mt(n)):Jc(t.replace("path://",""),n,r,"center")}function PM(t,e,r,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(by(t,e,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function by(t,e,r,n,i,a,o,s){var l=r-t,u=n-e,f=o-i,c=s-a,v=nh(f,c,l,u);if(EM(v))return!1;var h=t-i,d=e-a,p=nh(h,d,l,u)/v;if(p<0||p>1)return!1;var g=nh(h,d,f,c)/v;return!(g<0||g>1)}function nh(t,e,r,n){return t*n-r*e}function EM(t){return t<=1e-6&&t>=-1e-6}function gl(t,e,r,n,i){return e==null||(me(e)?we[0]=we[1]=we[2]=we[3]=e:(we[0]=e[0],we[1]=e[1],we[2]=e[2],we[3]=e[3]),n&&(we[0]=ge(0,we[0]),we[1]=ge(0,we[1]),we[2]=ge(0,we[2]),we[3]=ge(0,we[3])),r&&(we[0]=-we[0],we[1]=-we[1],we[2]=-we[2],we[3]=-we[3]),wy(t,we,"x","width",3,1,i&&i[0]||0),wy(t,we,"y","height",0,2,i&&i[1]||0)),t}var we=[0,0,0,0];function wy(t,e,r,n,i,a,o){var s=e[a]+e[i],l=t[n];t[n]+=s,o=ge(0,qe(o,l)),t[n]<o?(t[n]=o,t[r]+=e[i]>=0?-e[i]:e[a]>=0?l+e[a]:Be(s)>1e-8?(l-o)*e[i]/s:0):t[r]-=e[i]}function ml(t){var e=t.itemTooltipOption,r=t.componentModel,n=t.itemName,i=q(e)?{formatter:e}:e,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=t.formatterParamsExtra;l&&I(ce(l),function(f){tt(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=ue(t.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:le({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function ih(t,e){var r;t.isGroup&&(r=e(t)),r||t.traverse(e)}function yl(t,e){if(t)if(W(t))for(var r=0;r<t.length;r++)ih(t[r],e);else ih(t,e)}function ah(t){return!t||Be(t[1])<_l&&Be(t[2])<_l||Be(t[0])<_l&&Be(t[3])<_l}var _l=1e-5;function ao(t,e){return t?ne.copy(t,e):e.clone()}function oh(t,e){return e?yf(t||dr(),e):void 0}function Ty(t){return{z:t.get("z")||0,zlevel:t.get("zlevel")||0}}function kM(t){var e=-1/0,r=1/0;ih(t,function(a){n(a),n(a.getTextContent()),n(a.getTextGuideLine())});function n(a){if(!(!a||a.isGroup)){var o=a.currentStates;if(o.length)for(var s=0;s<o.length;s++)i(a.states[o[s]]);i(a)}}function i(a){if(a){var o=a.z2;o>e&&(e=o),o<r&&(r=o)}}return r>e&&(r=e=0),{min:r,max:e}}function xy(t,e,r){Cy(t,e,r,-1/0)}function Cy(t,e,r,n){if(t.ignoreModelZ)return n;var i=t.getTextContent(),a=t.getTextGuideLine(),o=t.isGroup;if(o)for(var s=t.childrenRef(),l=0;l<s.length;l++)n=ge(Cy(s[l],e,r,n),n);else t.z=e,t.zlevel=r,n=ge(t.z2||0,n);if(i&&(i.z=e,i.zlevel=r,isFinite(n)&&(i.z2=n+2)),a){var u=t.textGuideLineConfig;a.z=e,a.zlevel=r,isFinite(n)&&(a.z2=n+(u&&u.showAbove?1:-1))}return n}function RM(t){return t.animation={duration:0},t}function OM(t,e){return e?yf(oo.transform,e):Ia(oo.transform),oo.decomposeTransform(),Na(t,oo),t}var oo=new Oa;oo.transform=dr();function NM(t){var e=t.getZr().painter;return e.getType()==="canvas"?e:null}Kt("circle",eo),Kt("ellipse",$c),Kt("sector",xr),Kt("ring",fl),Kt("polygon",Gi),Kt("polyline",on),Kt("rect",De),Kt("line",Cr),Kt("bezierCurve",qc),Kt("arc",cl);const Ay=Object.freeze(Object.defineProperty({__proto__:null,Arc:cl,BezierCurve:qc,BoundingRect:ne,Circle:eo,CompoundPath:uy,Ellipse:$c,Group:Ce,HOVER_LAYER_FOR_INCREMENTAL:Qc,HOVER_LAYER_FROM_THRESHOLD:py,HOVER_LAYER_NO:dy,Image:Mt,IncrementalDisplayable:mM,Line:Cr,LinearGradient:cy,OrientedBoundingRect:hy,Path:pe,Point:re,Polygon:Gi,Polyline:on,RadialGradient:vM,Rect:De,Ring:fl,Sector:xr,Text:Me,WH:Wi,XY:sn,applyTransform:th,calcZ2Range:kM,clipPointsByRect:IM,clipRectByRect:LM,createIcon:rh,decomposeTransform:OM,ensureCopyRect:ao,ensureCopyTransform:oh,expandOrShrinkRect:gl,extendPath:wM,extendShape:SM,getCurrentCanvasPainter:NM,getShapeClass:TM,getTransform:AM,groupTransition:Sy,initProps:Ge,isBoundingRectAxisAligned:ah,isElementRemoved:no,lineLineIntersect:by,linePolygonIntersect:PM,makeImage:gy,makePath:Jc,mergePath:eh,payloadDisableAnimation:RM,registerShape:Kt,removeElement:pl,removeElementWithFadeOut:Hi,resizePath:yy,retrieveZInfo:Ty,setTooltipConfig:ml,subPixelOptimize:CM,subPixelOptimizeLine:io,subPixelOptimizeRect:xM,transformDirection:DM,traverseElements:yl,traverseUpdateZ:xy,updateProps:Ie},Symbol.toStringTag,{value:"Module"}));var Sl={};function Dy(t,e){for(var r=0;r<Rt.length;r++){var n=Rt[r],i=e[n],a=t.ensureState(n);a.style=a.style||{},a.style.text=i}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function sh(t,e,r){var n=t.labelFetcher,i=t.labelDataIndex,a=t.labelDimIndex,o=e.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=ee(t.defaultText)?t.defaultText(i,t,r):t.defaultText);for(var l={normal:s},u=0;u<Rt.length;u++){var f=Rt[u],c=e[f];l[f]=Z(n?n.getFormattedLabel(i,f,null,a,c&&c.get("formatter")):null,s)}return l}function Kn(t,e,r,n){r=r||Sl;for(var i=t instanceof Me,a=!1,o=0;o<el.length;o++){var s=e[el[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=i?t:t.getTextContent();if(a){i||(l||(l=new Me,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=sh(r,e),f=e.normal,c=!!f.getShallow("show"),v=Ot(f,n&&n.normal,r,!1,!i);v.text=u.normal,i||t.setTextConfig(My(f,r,!1));for(var o=0;o<Rt.length;o++){var h=Rt[o],s=e[h];if(s){var d=l.ensureState(h),p=!!Z(s.getShallow("show"),c);if(p!==c&&(d.ignore=!p),d.style=Ot(s,n&&n[h],r,!0,!i),d.style.text=u[h],!i){var g=t.ensureState(h);g.textConfig=My(s,r,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(v.x=l.style.x),l.style.y!=null&&(v.y=l.style.y),l.ignore=!c,l.useStyle(v),l.dirty(),r.enableTextSetter&&(so(l).setLabelText=function(m){var y=sh(r,e,m);Dy(l,y)})}else l&&(l.ignore=!0);t.dirty()}function jn(t,e){e=e||"label";for(var r={normal:t.getModel(e)},n=0;n<Rt.length;n++){var i=Rt[n];r[i]=t.getModel([i,e])}return r}function Ot(t,e,r,n,i){var a={};return BM(a,t,r,n,i),e&&z(a,e),a}function My(t,e,r){e=e||{};var n={},i,a=t.getShallow("rotate"),o=Z(t.getShallow("distance"),r?null:5),s=t.getShallow("offset");return i=t.getShallow("position")||(r?null:"inside"),i==="outside"&&(i=e.defaultOutsidePosition||"top"),i!=null&&(n.position=i),s!=null&&(n.offset=s),a!=null&&(a*=Math.PI/180,n.rotation=a),o!=null&&(n.distance=o),n.outsideFill=t.get("color")==="inherit"?e.inheritColor||null:"auto",e.autoOverflowArea!=null&&(n.autoOverflowArea=e.autoOverflowArea),e.layoutRect!=null&&(n.layoutRect=e.layoutRect),n}function BM(t,e,r,n,i){r=r||Sl;var a=e.ecModel,o=a&&a.option.textStyle,s=FM(e),l;if(s){l={};var u="richInheritPlainLabel",f=Z(e.get(u),a?a.get(u):void 0);for(var c in s)if(s.hasOwnProperty(c)){var v=e.getModel(["rich",c]);Ey(l[c]={},v,o,e,f,r,n,i,!1,!0)}}l&&(t.rich=l);var h=e.get("overflow");h&&(t.overflow=h);var d=e.get("lineOverflow");d&&(t.lineOverflow=d);var p=t,g=e.get("minMargin");if(g!=null)g=me(g)?g/2:0,p.margin=[g,g,g,g],p.__marginType=Yi.minMargin;else{var m=e.get("textMargin");m!=null&&(p.margin=df(m),p.__marginType=Yi.textMargin)}Ey(t,e,o,null,null,r,n,i,!0,!1)}function FM(t){for(var e;t&&t!==t.ecModel;){var r=(t.option||Sl).rich;if(r){e=e||{};for(var n=ce(r),i=0;i<n.length;i++){var a=n[i];e[a]=1}}t=t.parentModel}return e}var Iy=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Ly=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Py=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Ey(t,e,r,n,i,a,o,s,l,u){r=!o&&r||Sl;var f=a&&a.inheritColor,c=e.getShallow("color"),v=e.getShallow("textBorderColor"),h=Z(e.getShallow("opacity"),r.opacity);(c==="inherit"||c==="auto")&&(f?c=f:c=null),(v==="inherit"||v==="auto")&&(f?v=f:v=null),s||(c=c||r.color,v=v||r.textBorderColor),c!=null&&(t.fill=c),v!=null&&(t.stroke=v);var d=Z(e.getShallow("textBorderWidth"),r.textBorderWidth);d!=null&&(t.lineWidth=d);var p=Z(e.getShallow("textBorderType"),r.textBorderType);p!=null&&(t.lineDash=p);var g=Z(e.getShallow("textBorderDashOffset"),r.textBorderDashOffset);g!=null&&(t.lineDashOffset=g),!o&&h==null&&!u&&(h=a&&a.defaultOpacity),h!=null&&(t.opacity=h),!o&&!s&&t.fill==null&&a.inheritColor&&(t.fill=a.inheritColor);for(var m=0;m<Iy.length;m++){var y=Iy[m],_=i!==!1&&n?bn(e.getShallow(y),n.getShallow(y),r[y]):Z(e.getShallow(y),r[y]);_!=null&&(t[y]=_)}for(var m=0;m<Ly.length;m++){var y=Ly[m],_=e.getShallow(y);_!=null&&(t[y]=_)}if(t.verticalAlign==null){var S=e.getShallow("baseline");S!=null&&(t.verticalAlign=S)}if(!l||!a.disableBox){for(var m=0;m<Py.length;m++){var y=Py[m],_=e.getShallow(y);_!=null&&(t[y]=_)}var b=e.getShallow("borderType");b!=null&&(t.borderDash=b),(t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&f&&(t.backgroundColor=f),(t.borderColor==="auto"||t.borderColor==="inherit")&&f&&(t.borderColor=f)}}function zM(t,e){var r=e&&e.getModel("textStyle");return hr([t.fontStyle||r&&r.getShallow("fontStyle")||"",t.fontWeight||r&&r.getShallow("fontWeight")||"",(t.fontSize||r&&r.getShallow("fontSize")||12)+"px",t.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var so=Se();function ky(t,e,r,n){if(t){var i=so(t);i.prevValue=i.value,i.value=r;var a=e.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=n,i.statesModels=e)}}function VM(t,e,r,n,i){var a=so(t);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=Z(a.interpolatedValue,a.prevValue),l=a.value;function u(f){var c=Tm(r,a.precision,s,l,f);a.interpolatedValue=f===1?null:c;var v=sh({labelDataIndex:e,labelFetcher:i,defaultText:o?o(c):c+""},a.statesModels,c);Dy(t,v)}t.percent=0,(a.prevValue==null?Ge:Ie)(t,{percent:1},n,e,null,u)}var Yi={minMargin:1,textMargin:2},GM=["textStyle","color"],lh=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],uh=new Me,HM=(function(){function t(){}return t.prototype.getTextColor=function(e){var r=this.ecModel;return this.getShallow("color")||(!e&&r?r.get(GM):null)},t.prototype.getFont=function(){return zM({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(e){for(var r={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<lh.length;n++)r[lh[n]]=this.getShallow(lh[n]);return uh.useStyle(r),uh.update(),uh.getBoundingRect()},t})(),Ry=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],UM=Ma(Ry),WM=(function(){function t(){}return t.prototype.getLineStyle=function(e){return UM(this,e)},t})(),Oy=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],YM=Ma(Oy),$M=(function(){function t(){}return t.prototype.getItemStyle=function(e,r){return YM(this,e,r)},t})(),xe=(function(){function t(e,r,n){this.parentModel=r,this.ecModel=n,this.option=e}return t.prototype.init=function(e,r,n){},t.prototype.mergeOption=function(e,r){be(this.option,e,!0)},t.prototype.get=function(e,r){return e==null?this.option:this._doGet(this.parsePath(e),!r&&this.parentModel)},t.prototype.getShallow=function(e,r){var n=this.option,i=n==null?n:n[e];if(i==null&&!r){var a=this.parentModel;a&&(i=a.getShallow(e))}return i},t.prototype.getModel=function(e,r){var n=e!=null,i=n?this.parsePath(e):null,a=n?this._doGet(i):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new t(a,r,this.ecModel)},t.prototype.isEmpty=function(){return this.option==null},t.prototype.restoreData=function(){},t.prototype.clone=function(){var e=this.constructor;return new e(oe(this.option))},t.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},t.prototype.resolveParentPath=function(e){return e},t.prototype.isAnimationEnabled=function(){if(!ie.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(e,r){var n=this.option;if(!e)return n;for(var i=0;i<e.length&&!(e[i]&&(n=n&&typeof n=="object"?n[e[i]]:null,n==null));i++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(e),r.parentModel)),n},t})();pf(xe),oC(xe),Ut(xe,WM),Ut(xe,$M),Ut(xe,cC),Ut(xe,HM);function lo(t){return t==null?0:t.length||1}function Ny(t){return t}var XM=(function(){function t(e,r,n,i,a,o){this._old=e,this._new=r,this._oldKeyGetter=n||Ny,this._newKeyGetter=i||Ny,this.context=a,this._diffModeMultiple=o==="multiple"}return t.prototype.add=function(e){return this._add=e,this},t.prototype.update=function(e){return this._update=e,this},t.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},t.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},t.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},t.prototype.remove=function(e){return this._remove=e,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var e=this._old,r=this._new,n={},i=new Array(e.length),a=new Array(r.length);this._initIndexMap(e,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=i[o],l=n[s],u=lo(l);if(u>1){var f=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(f,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},t.prototype._executeMultiple=function(){var e=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(e,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=n[l],f=i[l],c=lo(u),v=lo(f);if(c>1&&v===1)this._updateManyToOne&&this._updateManyToOne(f,u),i[l]=null;else if(c===1&&v>1)this._updateOneToMany&&this._updateOneToMany(f,u),i[l]=null;else if(c===1&&v===1)this._update&&this._update(f,u),i[l]=null;else if(c>1&&v>1)this._updateManyToMany&&this._updateManyToMany(f,u),i[l]=null;else if(c>1)for(var h=0;h<c;h++)this._remove&&this._remove(u[h]);else this._remove&&this._remove(u)}this._performRestAdd(o,i)},t.prototype._performRestAdd=function(e,r){for(var n=0;n<e.length;n++){var i=e[n],a=r[i],o=lo(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);r[i]=null}},t.prototype._initIndexMap=function(e,r,n,i){for(var a=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[i](e[o],o);if(a||(n[o]=s),!!r){var l=r[s],u=lo(l);u===0?(r[s]=o,a&&n.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},t})(),$e={Must:1,Might:2,Not:3},By=Se();function qM(t){By(t).datasetMap=te()}function ZM(t,e,r){var n={},i=fh(e);if(!i||!t)return n;var a=[],o=[],s=e.ecModel,l=By(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,f,c;t=t.slice(),I(t,function(p,g){var m=j(p)?p:t[g]={name:p};m.type==="ordinal"&&f==null&&(f=g,c=d(m)),n[m.name]=[]});var v=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});I(t,function(p,g){var m=p.name,y=d(p);if(f==null){var _=v.valueWayDim;h(n[m],_,y),h(o,_,y),v.valueWayDim+=y}else if(f===g)h(n[m],0,y),h(a,0,y);else{var _=v.categoryWayDim;h(n[m],_,y),h(o,_,y),v.categoryWayDim+=y}});function h(p,g,m){for(var y=0;y<m;y++)p.push(g+y)}function d(p){var g=p.dimsDef;return g?g.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function Fy(t,e,r){var n={},i=fh(t);if(!i)return n;var a=e.sourceFormat,o=e.dimensionsDefine,s;(a===kt||a===Xt)&&I(o,function(f,c){(j(f)?f.name:f)==="name"&&(s=c)});var l=(function(){for(var f={},c={},v=[],h=0,d=Math.min(5,r);h<d;h++){var p=Vy(e.data,a,e.seriesLayoutBy,o,e.startIndex,h);v.push(p);var g=p===$e.Not;if(g&&f.v==null&&h!==s&&(f.v=h),(f.n==null||f.n===f.v||!g&&v[f.n]===$e.Not)&&(f.n=h),m(f)&&v[f.n]!==$e.Not)return f;g||(p===$e.Might&&c.v==null&&h!==s&&(c.v=h),(c.n==null||c.n===c.v)&&(c.n=h))}function m(y){return y.v!=null&&y.n!=null}return m(f)?f:m(c)?c:null})();if(l){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function fh(t){var e=t.get("data",!0);if(!e)return Qa(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},Pt).models[0]}function KM(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:Qa(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},Pt).models}function zy(t,e){return Vy(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function Vy(t,e,r,n,i,a){var o,s=5;if(ft(t))return $e.Not;var l,u;if(n){var f=n[a];j(f)?(l=f.name,u=f.type):q(f)&&(l=f)}if(u!=null)return u==="ordinal"?$e.Must:$e.Not;if(e===Ze){var c=t;if(r===Yn){for(var v=c[a],h=0;h<(v||[]).length&&h<s;h++)if((o=S(v[i+h]))!=null)return o}else for(var h=0;h<c.length&&h<s;h++){var d=c[i+h];if(d&&(o=S(d[a]))!=null)return o}}else if(e===kt){var p=t;if(!l)return $e.Not;for(var h=0;h<p.length&&h<s;h++){var g=p[h];if(g&&(o=S(g[l]))!=null)return o}}else if(e===Xt){var m=t;if(!l)return $e.Not;var v=m[l];if(!v||ft(v))return $e.Not;for(var h=0;h<v.length&&h<s;h++)if((o=S(v[h]))!=null)return o}else if(e===_t)for(var y=t,h=0;h<y.length&&h<s;h++){var g=y[h],_=Za(g);if(!W(_))return $e.Not;if((o=S(_[a]))!=null)return o}function S(b){var w=q(b);if(b!=null&&isFinite(Number(b))&&b!=="")return w?$e.Might:$e.Not;if(w&&b!=="-")return $e.Must}return $e.Not}var bl=(function(){function t(e){this.data=e.data||(e.sourceFormat===Xt?{}:[]),this.sourceFormat=e.sourceFormat||Pm,this.seriesLayoutBy=e.seriesLayoutBy||qt,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var r=this.dimensionsDefine=e.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var i=r[n];i.type==null&&zy(this,n)===$e.Must&&(i.type="ordinal")}}return t})();function ch(t){return t instanceof bl}function hh(t,e,r){r=r||Hy(t);var n=e.seriesLayoutBy,i=QM(t,r,n,e.sourceHeader,e.dimensions),a=new bl({data:t,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:oe(e)});return a}function Gy(t){return new bl({data:t,sourceFormat:ft(t)?an:_t})}function jM(t){return new bl({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:oe(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function Hy(t){var e=Pm;if(ft(t))e=an;else if(W(t)){t.length===0&&(e=Ze);for(var r=0,n=t.length;r<n;r++){var i=t[r];if(i!=null){if(W(i)||ft(i)){e=Ze;break}else if(j(i)){e=kt;break}}}}else if(j(t)){for(var a in t)if(tt(t,a)&&ut(t[a])){e=Xt;break}}return e}function QM(t,e,r,n,i){var a,o;if(!t)return{dimensionsDefine:Uy(i),startIndex:o,dimensionsDetectedCount:a};if(e===Ze){var s=t;n==="auto"||n==null?Wy(function(u){u!=null&&u!=="-"&&(q(u)?o==null&&(o=1):o=0)},r,s,10):o=me(n)?n:n?1:0,!i&&o===1&&(i=[],Wy(function(u,f){i[f]=u!=null?u+"":""},r,s,1/0)),a=i?i.length:r===Yn?s.length:s[0]?s[0].length:null}else if(e===kt)i||(i=JM(t));else if(e===Xt)i||(i=[],I(t,function(u,f){i.push(f)}));else if(e===_t){var l=Za(t[0]);a=W(l)&&l.length||1}return{startIndex:o,dimensionsDefine:Uy(i),dimensionsDetectedCount:a}}function JM(t){for(var e=0,r;e<t.length&&!(r=t[e++]););if(r)return ce(r)}function Uy(t){if(t){var e=te();return $(t,function(r,n){r=j(r)?r:{name:r};var i={name:r.name,displayName:r.displayName,type:r.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var a=e.get(i.name);return a?i.name+="-"+a.count++:e.set(i.name,{count:1}),i})}}function Wy(t,e,r,n){if(e===Yn)for(var i=0;i<r.length&&i<n;i++)t(r[i]?r[i][0]:null,i);else for(var a=r[0]||[],i=0;i<a.length&&i<n;i++)t(a[i],i)}function Yy(t){var e=t.sourceFormat;return e===kt||e===Xt}var Qn,Jn,ei,ti,$y,Xy,qy=(function(){function t(e,r){var n=ch(e)?e:Gy(e);this._source=n;var i=this._data=n.data,a=n.sourceFormat;n.seriesLayoutBy,a===an&&(this._offset=0,this._dimSize=r,this._data=i),Xy(this,i,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,r){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=(function(){var e=t.prototype;e.pure=!1,e.persistent=!0})(),t.internalField=(function(){var e;Xy=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,v=l.dimensionsDefine,h=$y[dh(u,f)];if(z(o,h),u===an)o.getItem=r,o.count=i,o.fillStorage=n;else{var d=Ky(u,f);o.getItem=de(d,null,s,c,v);var p=Qy(u,f);o.count=de(p,null,s,c,v)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,c=0;c<u;c++)s[c]=l[f+c];return s},n=function(o,s,l,u){for(var f=this._data,c=this._dimSize,v=0;v<c;v++){for(var h=u[v],d=h[0]==null?1/0:h[0],p=h[1]==null?-1/0:h[1],g=s-o,m=l[v],y=0;y<g;y++){var _=f[y*c+v];m[o+y]=_,_<d&&(d=_),_>p&&(p=_)}h[0]=d,h[1]=p}},i=function(){return this._data?this._data.length/this._dimSize:0};$y=(e={},e[Ze+"_"+qt]={pure:!0,appendData:a},e[Ze+"_"+Yn]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[kt]={pure:!0,appendData:a},e[Xt]={pure:!0,appendData:function(o){var s=this._data;I(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},e[_t]={appendData:a},e[an]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),t})(),wl=function(t){W(t)||mm("series.data or dataset.source must be an array.")};Qn={},Qn[Ze+"_"+qt]=wl,Qn[Ze+"_"+Yn]=wl,Qn[kt]=wl,Qn[Xt]=function(t,e){for(var r=0;r<e.length;r++){var n=e[r].name;n==null&&mm("dimension name must not be null/undefined.")}},Qn[_t]=wl;var Zy=function(t,e,r,n){return t[n]},eI=(Jn={},Jn[Ze+"_"+qt]=function(t,e,r,n){return t[n+e]},Jn[Ze+"_"+Yn]=function(t,e,r,n,i){n+=e;for(var a=i||[],o=t,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[n]:null}return a},Jn[kt]=Zy,Jn[Xt]=function(t,e,r,n,i){for(var a=i||[],o=0;o<r.length;o++){var s=r[o].name,l=s!=null?t[s]:null;a[o]=l?l[n]:null}return a},Jn[_t]=Zy,Jn);function Ky(t,e){var r=eI[dh(t,e)];return r}var jy=function(t,e,r){return t.length},tI=(ei={},ei[Ze+"_"+qt]=function(t,e,r){return Math.max(0,t.length-e)},ei[Ze+"_"+Yn]=function(t,e,r){var n=t[0];return n?Math.max(0,n.length-e):0},ei[kt]=jy,ei[Xt]=function(t,e,r){var n=r[0].name,i=n!=null?t[n]:null;return i?i.length:0},ei[_t]=jy,ei);function Qy(t,e){var r=tI[dh(t,e)];return r}var vh=function(t,e,r){return t[e]},rI=(ti={},ti[Ze]=vh,ti[kt]=function(t,e,r){return t[r]},ti[Xt]=vh,ti[_t]=function(t,e,r){var n=Za(t);return n instanceof Array?n[e]:n},ti[an]=vh,ti);function Jy(t){var e=rI[t];return e}function dh(t,e){return t===Ze?t+"_"+e:t}function $i(t,e,r){if(t){var n=t.getRawDataItem(e);if(n!=null){var i=t.getStore(),a=i.getSource().sourceFormat;if(r!=null){var o=t.getDimensionIndex(r),s=i.getDimensionProperty(o);return Jy(a)(n,o,s)}else{var l=n;return a===_t&&(l=Za(n)),l}}}}var nI=(function(){function t(e,r){this._encode=e,this._schema=r}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t})();function iI(t,e){var r={},n=r.encode={},i=te(),a=[],o=[],s={};I(t.dimensions,function(v){var h=t.getDimensionInfo(v),d=h.coordDim;if(d){var p=h.coordDimIndex;ph(n,d)[p]=v,h.isExtraCoord||(i.set(d,1),oI(h.type)&&(a[0]=v),ph(s,d)[p]=t.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(v)}Lm.each(function(g,m){var y=ph(n,m),_=h.otherDims[m];_!=null&&_!==!1&&(y[_]=h.name)})});var l=[],u={};i.each(function(v,h){var d=n[h];u[h]=d[0],l=l.concat(d)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=$(l,function(v){return t.getDimensionInfo(v).storeDimIndex}),r.encodeFirstDimNotExtra=u;var f=n.label;f&&f.length&&(a=f.slice());var c=n.tooltip;return c&&c.length?o=c.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,r.userOutput=new nI(s,e),r}function ph(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function aI(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function oI(t){return!(t==="ordinal"||t==="time")}var Tl=(function(){function t(e){this.otherDims={},e!=null&&z(this,e)}return t})();function xl(t,e){var r=e&&e.type;return r==="ordinal"?t:(r==="time"&&!me(t)&&t!=null&&t!=="-"&&(t=+Oi(t)),t==null||t===""?NaN:Number(t))}te({number:function(t){return parseFloat(t)},time:function(t){return+Oi(t)},trim:function(t){return q(t)?hr(t):t}});var sI=(function(){function t(e,r){var n=e==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return t.prototype.evaluate=function(e,r){var n=me(e)?e:Ks(e),i=me(r)?r:Ks(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=q(e),l=q(r);s&&(n=l?e:0),l&&(i=s?r:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},t})();function e0(t){var e="",r=-1/0,n=-1/0,i=1/0,a=1/0;return t&&(t.g!=null&&(e+="G"+t.g,r=t.g),t.ge!=null&&(e+="GE"+t.ge,n=t.ge),t.l!=null&&(e+="L"+t.l,i=t.l),t.le!=null&&(e+="LE"+t.le,a=t.le)),{key:e,g:r,ge:n,l:i,le:a}}function t0(t,e){return e>t.g&&e>=t.ge&&e<t.l&&e<=t.le}var lI=typeof Uint32Array===Bi?Array:Uint32Array,uI=typeof Uint16Array===Bi?Array:Uint16Array,r0=typeof Int32Array===Bi?Array:Int32Array,n0=typeof Float64Array===Bi?Array:Float64Array,i0={float:n0,int:r0,ordinal:Array,number:Array,time:n0},gh;function Xi(t){return t>65535?lI:uI}function fI(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function a0(t,e,r,n,i){var a=i0[r||"float"];if(i){var o=t[e],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;u<s;u++)l[u]=o[u];t[e]=l}}else t[e]=new a(n)}var mh=(function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=te()}return t.prototype.initData=function(e,r,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=e.getSource(),a=this.defaultDimValueGetter=gh[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[],Yy(i),this._dimensions=$(r,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,e.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(e,r){var n=this._calcDimNameToIdx,i=this._dimensions,a=n.get(e);if(a!=null){if(i[a].type===r)return a}else a=i.length;return i[a]={type:r},n.set(e,a),this._chunks[a]=new i0[r||"float"](this._rawCount),this._rawExtent[a]=Et(),a},t.prototype.collectOrdinalMeta=function(e,r){var n=this._chunks[e],i=this._dimensions[e],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;o===0&&(a[e]=Et());for(var l=a[e],u=o;u<s;u++){var f=n[u]=r.parseAndCollect(n[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}i.ordinalMeta=r,i.ordinalOffset=s,i.type="ordinal"},t.prototype.getOrdinalMeta=function(e){var r=this._dimensions[e],n=r.ordinalMeta;return n},t.prototype.getDimensionProperty=function(e){var r=this._dimensions[e];return r&&r.property},t.prototype.appendData=function(e){var r=this._provider,n=this.count();r.appendData(e);var i=r.count();return r.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},t.prototype.appendValues=function(e,r){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,r||0),u=0;u<a;u++){var f=i[u];a0(n,u,f.type,l,!0)}for(var c=[],v=s;v<l;v++)for(var h=v-s,d=0;d<a;d++){var f=i[d],p=gh.arrayRows.call(this,e[h]||c,f.property,h,d);n[d][v]=p;var g=o[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(e,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=$(o,function(y){return y.property}),f=0;f<s;f++){var c=o[f];l[f]||(l[f]=Et()),a0(a,f,c.type,r,n)}if(i.fillStorage)i.fillStorage(e,r,a,l);else for(var v=[],h=e;h<r;h++){v=i.getItem(h,v);for(var d=0;d<s;d++){var p=a[d],g=this._dimValueGetter(v,u[d],h,d);p[h]=g;var m=l[d];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(r)]:NaN},t.prototype.getValues=function(e,r){var n=[],i=[];if(r==null){r=e,e=[];for(var a=0;a<this._dimensions.length;a++)i.push(a)}else i=e;for(var a=0,o=i.length;a<o;a++)n.push(this.get(i[a],r));return n},t.prototype.getByRawIndex=function(e,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[e];return n?n[r]:NaN},t.prototype.getSum=function(e){var r=this._chunks[e],n=0;if(r)for(var i=0,a=this.count();i<a;i++){var o=this.get(e,i);isNaN(o)||(n+=o)}return n},t.prototype.getMedian=function(e){var r=[];this.each([e],function(i){isNaN(i)||r.push(i)}),Sc(r);var n=this.count();return n===0?0:n%2===1?r[(n-1)/2]:(r[n/2]+r[n/2-1])/2},t.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var r=this._indices,n=r[e];if(n!=null&&n<this._count&&n===e)return e;for(var i=0,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(r[o]<e)i=o+1;else if(r[o]>e)a=o-1;else return o}return-1},t.prototype.getIndices=function(){var e,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){e=new n(i);for(var a=0;a<i;a++)e[a]=r[a]}else e=new n(r.buffer,0,i)}else{var n=Xi(this._rawCount);e=new n(this.count());for(var a=0;a<e.length;a++)e[a]=a}return e},t.prototype.filter=function(e,r){if(!this._count)return this;for(var n=this.clone(),i=n.count(),a=Xi(n._rawCount),o=new a(i),s=[],l=e.length,u=0,f=e[0],c=n._chunks,v=0;v<i;v++){var h=void 0,d=n.getRawIndex(v);if(l===0)h=r(v);else if(l===1){var p=c[f][d];h=r(p,v)}else{for(var g=0;g<l;g++)s[g]=c[e[g]][d];s[g]=v,h=r.apply(null,s)}h&&(o[u++]=d)}return u<i&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(e){var r=this.clone(),n=r._count;if(!n)return this;var i=ce(e),a=i.length;if(!a)return this;var o=r.count(),s=Xi(r._rawCount),l=new s(o),u=0,f=i[0],c=e[f][0],v=e[f][1],h=r._chunks,d=!1;if(!r._indices){var p=0;if(a===1){for(var g=h[i[0]],m=0;m<n;m++){var y=g[m];(y>=c&&y<=v||isNaN(y))&&(l[u++]=p),p++}d=!0}else if(a===2){for(var g=h[i[0]],_=h[i[1]],S=e[i[1]][0],b=e[i[1]][1],m=0;m<n;m++){var y=g[m],w=_[m];(y>=c&&y<=v||isNaN(y))&&(w>=S&&w<=b||isNaN(w))&&(l[u++]=p),p++}d=!0}}if(!d)if(a===1)for(var m=0;m<o;m++){var T=r.getRawIndex(m),y=h[i[0]][T];(y>=c&&y<=v||isNaN(y))&&(l[u++]=T)}else for(var m=0;m<o;m++){for(var C=!0,T=r.getRawIndex(m),D=0;D<a;D++){var x=i[D],y=h[x][T];(y<e[x][0]||y>e[x][1])&&(C=!1)}C&&(l[u++]=r.getRawIndex(m))}return u<o&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},t.prototype.map=function(e,r){var n=this.clone(e);return this._updateDims(n,e,r),n},t.prototype.modify=function(e,r){this._updateDims(this,e,r)},t.prototype._updateDims=function(e,r,n){for(var i=e._chunks,a=[],o=r.length,s=e.count(),l=[],u=e._rawExtent,f=0;f<r.length;f++)u[r[f]]=Et();for(var c=0;c<s;c++){for(var v=e.getRawIndex(c),h=0;h<o;h++)l[h]=i[r[h]][v];l[o]=c;var d=n&&n.apply(null,l);if(d!=null){typeof d!="object"&&(a[0]=d,d=a);for(var f=0;f<d.length;f++){var p=r[f],g=d[f],m=u[p],y=i[p];y&&(y[v]=g),g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}}},t.prototype.lttbDownSample=function(e,r){var n=this.clone([e],!0),i=n._chunks,a=i[e],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),f,c,v,h=new(Xi(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var d=1;d<o-1;d+=l){for(var p=Math.min(d+l,o-1),g=Math.min(d+l*2,o),m=(g+p)/2,y=0,_=p;_<g;_++){var S=this.getRawIndex(_),b=a[S];isNaN(b)||(y+=b)}y/=g-p;var w=d,T=Math.min(d+l,o),C=d-1,D=a[u];f=-1,v=w;for(var x=-1,A=0,_=w;_<T;_++){var S=this.getRawIndex(_),b=a[S];if(isNaN(b)){A++,x<0&&(x=S);continue}c=Math.abs((C-m)*(b-D)-(C-_)*(y-D)),c>f&&(f=c,v=S)}A>0&&A<T-w&&(h[s++]=Math.min(x,v),v=Math.max(x,v)),h[s++]=v,u=v}return h[s++]=this.getRawIndex(o-1),n._count=s,n._indices=h,n.getRawIndex=this._getRawIdx,n},t.prototype.minmaxDownSample=function(e,r){for(var n=this.clone([e],!0),i=n._chunks,a=Math.floor(1/r),o=i[e],s=this.count(),l=new(Xi(this._rawCount))(Math.ceil(s/a)*2),u=0,f=0;f<s;f+=a){var c=f,v=o[this.getRawIndex(c)],h=f,d=o[this.getRawIndex(h)],p=a;f+a>s&&(p=s-f);for(var g=0;g<p;g++){var m=this.getRawIndex(f+g),y=o[m];y<v&&(v=y,c=f+g),y>d&&(d=y,h=f+g)}var _=this.getRawIndex(c),S=this.getRawIndex(h);c<h?(l[u++]=_,l[u++]=S):(l[u++]=S,l[u++]=_)}return n._count=u,n._indices=l,n._updateGetRawIdx(),n},t.prototype.downSample=function(e,r,n,i){for(var a=this.clone([e],!0),o=a._chunks,s=[],l=Math.floor(1/r),u=o[e],f=this.count(),c=a._rawExtent[e]=Et(),v=new(Xi(this._rawCount))(Math.ceil(f/l)),h=0,d=0;d<f;d+=l){l>f-d&&(l=f-d,s.length=l);for(var p=0;p<l;p++){var g=this.getRawIndex(d+p);s[p]=u[g]}var m=n(s),y=this.getRawIndex(Math.min(d+i(s,m)||0,f-1));u[y]=m,m<c[0]&&(c[0]=m),m>c[1]&&(c[1]=m),v[h++]=y}return a._count=h,a._indices=v,a._updateGetRawIdx(),a},t.prototype.each=function(e,r){if(this._count)for(var n=e.length,i=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(n){case 0:r(a);break;case 1:r(i[e[0]][s],a);break;case 2:r(i[e[0]][s],i[e[1]][s],a);break;default:for(var l=0,u=[];l<n;l++)u[l]=i[e[l]][s];u[l]=a,r.apply(null,u)}}},t.prototype.getDataExtent=function(e,r){var n=this._chunks[e],i=Et();if(!n)return i;var a=this.count(),o=!this._indices&&!r;if(o)return this._rawExtent[e].slice();var s=this._extent,l=s[e]||(s[e]={}),u=e0(r),f=u.key,c=l[f];if(c)return c.slice();for(var v=i[0],h=i[1],d=0;d<a;d++){var p=this.getRawIndex(d),g=n[p];(!r||t0(u,g))&&(g<v&&(v=g),g>h&&(h=g))}return l[f]=[v,h]},t.prototype.getRawDataItem=function(e){var r=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a<i.length;a++)n.push(i[a][r]);return n},t.prototype.clone=function(e,r){var n=new t,i=this._chunks,a=e&&qr(e,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?fI(i[o]):i[o];else n._chunks=i;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},t.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=oe(this._extent),e._rawExtent=oe(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,r=void 0;if(e===Array){var n=this._indices.length;r=new e(n);for(var i=0;i<n;i++)r[i]=this._indices[i]}else r=new e(this._indices);return r}return null},t.prototype._getRawIdxIdentity=function(e){return e},t.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=(function(){function e(r,n,i,a){return xl(r[a],this._dimensions[a])}gh={arrayRows:e,objectRows:function(r,n,i,a){return xl(r[n],this._dimensions[a])},keyedColumns:e,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return xl(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}})(),t})(),cI=Se(),hI={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},o0=(function(){function t(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=l0(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return Z(this._dimNameMap.get(e),-1)},t.prototype.getSourceDimension=function(e){var r=this.source.dimensionsDefine;if(r)return r[e]},t.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,r=Yy(this.source),n=!u0(e),i="",a=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,f=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)l=r?c.name:null,u=c.type,f=c.ordinalMeta,s++;else{var v=this.getSourceDimension(o);v&&(l=r?v.name:null,u=v.type)}a.push({property:l,type:u,ordinalMeta:f}),r&&l!=null&&(!c||!c.isCalculationCoord)&&(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=hI[u]||"f",f&&(i+=f.uid),i+="$"}var h=this.source,d=[h.seriesLayoutBy,h.startIndex,i].join("$$");return{dimensions:a,hash:d}},t.prototype.makeOutputDimensionNames=function(){for(var e=[],r=0,n=0;r<this._fullDimCount;r++){var i=void 0,a=this.dimensions[n];if(a&&a.storeDimIndex===r)a.isCalculationCoord||(i=a.name),n++;else{var o=this.getSourceDimension(r);o&&(i=o.name)}e.push(i)}return e},t.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t})();function s0(t){return t instanceof o0}function yh(t){for(var e=te(),r=0;r<(t||[]).length;r++){var n=t[r],i=j(n)?n.name:n;i!=null&&e.get(i)==null&&e.set(i,r)}return e}function l0(t){var e=cI(t);return e.dimNameMap||(e.dimNameMap=yh(t.dimensionsDefine))}function u0(t){return t>30}var uo=j,ln=$,vI=typeof Int32Array>"u"?Array:Int32Array,dI="e\0\0",f0=-1,pI=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],gI=["_approximateExtent"],c0,Cl,fo,co,_h,ho,Sh,h0=(function(){function t(e,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,i=!1;s0(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,n=e),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f<n.length;f++){var c=n[f],v=q(c)?new Tl({name:c}):c instanceof Tl?c:new Tl(c),h=v.name;v.type=v.type||"float",v.coordDim||(v.coordDim=h,v.coordDimIndex=0);var d=v.otherDims=v.otherDims||{};o.push(h),a[h]=v,u[h]!=null&&(l=!0),v.createInvertedIndices&&(s[h]=[]),i&&(v.storeDimIndex=f),d.itemName===0&&(this._nameDimIdx=v.storeDimIndex),d.itemId===0&&(this._idDimIdx=v.storeDimIndex)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=te();I(o,function(g){p.set(a[g].storeDimIndex,g)})}}return t.prototype.getDimension=function(e){var r=this._recognizeDimIndex(e);if(r==null)return e;if(r=e,!this._dimOmitted)return this.dimensions[r];var n=this._dimIdxToName.get(r);if(n!=null)return n;var i=this._schema.getSourceDimension(r);if(i)return i.name},t.prototype.getDimensionIndex=function(e){var r=this._recognizeDimIndex(e);if(r!=null)return r;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},t.prototype._recognizeDimIndex=function(e){if(me(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},t.prototype._getStoreDimIndex=function(e){var r=this.getDimensionIndex(e);return r},t.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},t.prototype._initGetDimensionInfo=function(e){var r=this._dimInfos;this._getDimInfo=e?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(e,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[e];var i=n.encode[e];return i?i[r]:null},t.prototype.mapDimensionsAll=function(e){var r=this._dimSummary,n=r.encode[e];return(n||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(e,r,n){var i=this,a;if(e instanceof mh&&(a=e),!a){var o=this.dimensions,s=ch(e)||ut(e)?new qy(e,o.length):e;a=new mh;var l=ln(o,function(u){return{type:i._dimInfos[u].type,property:u}});a.initData(s,l,n)}this._store=a,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=iI(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(e){var r=this._store.appendData(e);this._doInit(r[0],r[1])},t.prototype.appendValues=function(e,r){var n=this._store.appendValues(e,r&&r.length),i=n.start,a=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=i;s<a;s++){var l=s-i;this._nameList[s]=r[l],o&&Sh(this,s)}},t.prototype._updateOrdinalMeta=function(){for(var e=this._store,r=this.dimensions,n=0;n<r.length;n++){var i=this._dimInfos[r[n]];i.ordinalMeta&&e.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==an&&!e.fillStorage},t.prototype._doInit=function(e,r){if(!(e>=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===_t;if(l&&!i.pure)for(var u=[],f=e;f<r;f++){var c=i.getItem(f,u);if(!this.hasItemOption&&tD(c)&&(this.hasItemOption=!0),c){var v=c.name;a[f]==null&&v!=null&&(a[f]=wr(v,null));var h=c.id;o[f]==null&&h!=null&&(o[f]=wr(h,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<r;f++)Sh(this,f);c0(this)}},t.prototype.getApproximateExtent=function(e,r){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e),r)},t.prototype.setApproximateExtent=function(e,r){r=this.getDimension(r),this._approximateExtent[r]=e.slice()},t.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},t.prototype.setCalculationInfo=function(e,r){uo(e)?z(this._calculationInfo,e):this._calculationInfo[e]=r},t.prototype.getName=function(e){var r=this.getRawIndex(e),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=fo(this,this._nameDimIdx,r)),n==null&&(n=""),n},t.prototype._getCategory=function(e,r){var n=this._store.get(e,r),i=this._store.getOrdinalMeta(e);return i?i.categories[n]:n},t.prototype.getId=function(e){return Cl(this,this.getRawIndex(e))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(e,r){var n=this._store,i=this._dimInfos[e];if(i)return n.get(i.storeDimIndex,r)},t.prototype.getByRawIndex=function(e,r){var n=this._store,i=this._dimInfos[e];if(i)return n.getByRawIndex(i.storeDimIndex,r)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e),null)},t.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},t.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},t.prototype.getValues=function(e,r){var n=this,i=this._store;return W(e)?i.getValues(ln(e,function(a){return n._getStoreDimIndex(a)}),r):i.getValues(e)},t.prototype.hasValue=function(e){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,i=r.length;n<i;n++)if(isNaN(this._store.get(r[n],e)))return!1;return!0},t.prototype.indexOfName=function(e){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===e)return r;return-1},t.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},t.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},t.prototype.rawIndexOf=function(e,r){var n=e&&this._invertedIndicesMap[e],i=n&&n[r];return i==null||isNaN(i)?f0:i},t.prototype.each=function(e,r,n){ee(e)&&(n=r,r=e,e=[]);var i=n||this,a=ln(co(e),this._getStoreDimIndex,this);this._store.each(a,i?de(r,i):r)},t.prototype.filterSelf=function(e,r,n){ee(e)&&(n=r,r=e,e=[]);var i=n||this,a=ln(co(e),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?de(r,i):r),this},t.prototype.selectRange=function(e){var r=this,n={},i=ce(e);return I(i,function(a){var o=r._getStoreDimIndex(a);n[o]=e[a]}),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(e,r,n){ee(e)&&(n=r,r=e,e=[]),n=n||this;var i=[];return this.each(e,function(){i.push(r&&r.apply(this,arguments))},n),i},t.prototype.map=function(e,r,n,i){var a=n||i||this,o=ln(co(e),this._getStoreDimIndex,this),s=ho(this);return s._store=this._store.map(o,a?de(r,a):r),s},t.prototype.modify=function(e,r,n,i){var a=n||i||this,o=ln(co(e),this._getStoreDimIndex,this);this._store.modify(o,a?de(r,a):r)},t.prototype.downSample=function(e,r,n,i){var a=ho(this);return a._store=this._store.downSample(this._getStoreDimIndex(e),r,n,i),a},t.prototype.minmaxDownSample=function(e,r){var n=ho(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),r),n},t.prototype.lttbDownSample=function(e,r){var n=ho(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),r),n},t.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},t.prototype.getItemModel=function(e){var r=this.hostModel,n=this.getRawDataItem(e);return new xe(n,r,r&&r.ecModel)},t.prototype.diff=function(e){var r=this;return new XM(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(n){return Cl(e,n)},function(n){return Cl(r,n)})},t.prototype.getVisual=function(e){var r=this._visual;return r&&r[e]},t.prototype.setVisual=function(e,r){this._visual=this._visual||{},uo(e)?z(this._visual,e):this._visual[e]=r},t.prototype.getItemVisual=function(e,r){var n=this._itemVisuals[e],i=n&&n[r];return i??this.getVisual(r)},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(e,r){var n=this._itemVisuals,i=n[e];i||(i=n[e]={});var a=i[r];return a==null&&(a=this.getVisual(r),W(a)?a=a.slice():uo(a)&&(a=z({},a)),i[r]=a),a},t.prototype.setItemVisual=function(e,r,n){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,uo(r)?z(i,r):i[r]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){uo(e)?z(this._layout,e):this._layout[e]=r},t.prototype.getLayout=function(e){return this._layout[e]},t.prototype.getItemLayout=function(e){return this._itemLayouts[e]},t.prototype.setItemLayout=function(e,r,n){this._itemLayouts[e]=n?z(this._itemLayouts[e]||{},r):r},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,r){var n=this.hostModel&&this.hostModel.seriesIndex;Pc(n,this.dataType,e,r),this._graphicEls[e]=r},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,r){I(this._graphicEls,function(n,i){n&&e&&e.call(r,n,i)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:ln(this.dimensions,this._getDimInfo,this),this.hostModel)),_h(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,r){var n=this[e];ee(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(vf(arguments)))})},t.internalField=(function(){c0=function(e){var r=e._invertedIndicesMap;I(r,function(n,i){var a=e._dimInfos[i],o=a.ordinalMeta,s=e._store;if(o){n=r[i]=new vI(o.categories.length);for(var l=0;l<n.length;l++)n[l]=f0;for(var l=0;l<s.count();l++)n[s.get(a.storeDimIndex,l)]=l}})},fo=function(e,r,n){return wr(e._getCategory(r,n),null)},Cl=function(e,r){var n=e._idList[r];return n==null&&e._idDimIdx!=null&&(n=fo(e,e._idDimIdx,r)),n==null&&(n=dI+r),n},co=function(e){return W(e)||(e=e!=null?[e]:[]),e},ho=function(e){var r=new t(e._schema?e._schema:ln(e.dimensions,e._getDimInfo,e),e.hostModel);return _h(r,e),r},_h=function(e,r){I(pI.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(e[n]=r[n])}),e.__wrappedMethods=r.__wrappedMethods,I(gI,function(n){e[n]=oe(r[n])}),e._calculationInfo=z({},r._calculationInfo)},Sh=function(e,r){var n=e._nameList,i=e._idList,a=e._nameDimIdx,o=e._idDimIdx,s=n[r],l=i[r];if(s==null&&a!=null&&(n[r]=s=fo(e,a,r)),l==null&&o!=null&&(i[r]=l=fo(e,o,r)),l==null&&s!=null){var u=e._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),i[r]=l}}})(),t})();function v0(t,e){ch(t)||(t=Gy(t)),e=e||{};var r=e.coordDimensions||[],n=e.dimensionsDefine||t.dimensionsDefine||[],i=te(),a=[],o=mI(t,r,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&u0(o),l=n===t.dimensionsDefine,u=l?l0(t):yh(n),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(t,o));for(var c=te(f),v=new r0(o),h=0;h<v.length;h++)v[h]=-1;function d(D){var x=v[D];if(x<0){var A=n[D],L=j(A)?A:{name:A},M=new Tl,P=L.name;P!=null&&u.get(P)!=null&&(M.name=M.displayName=P),L.type!=null&&(M.type=L.type),L.displayName!=null&&(M.displayName=L.displayName);var E=a.length;return v[D]=E,M.storeDimIndex=D,a.push(M),M}return a[x]}if(!s)for(var h=0;h<o;h++)d(h);c.each(function(D,x){var A=nt(D).slice();if(A.length===1&&!q(A[0])&&A[0]<0){c.set(x,!1);return}var L=c.set(x,[]);I(A,function(M,P){var E=q(M)?u.get(M):M;E!=null&&E<o&&(L[P]=E,g(d(E),x,P))})});var p=0;I(r,function(D){var x,A,L,M;if(q(D))x=D,M={};else{M=D,x=M.name;var P=M.ordinalMeta;M.ordinalMeta=null,M=z({},M),M.ordinalMeta=P,A=M.dimsDef,L=M.otherDims,M.name=M.coordDim=M.coordDimIndex=M.dimsDef=M.otherDims=null}var E=c.get(x);if(E!==!1){if(E=nt(E),!E.length)for(var k=0;k<(A&&A.length||1);k++){for(;p<o&&d(p).coordDim!=null;)p++;p<o&&E.push(p++)}I(E,function(O,R){var N=d(O);if(l&&M.type!=null&&(N.type=M.type),g(le(N,M),x,R),N.name==null&&A){var F=A[R];!j(F)&&(F={name:F}),N.name=N.displayName=F.name,N.defaultTooltip=F.defaultTooltip}L&&le(N.otherDims,L)})}});function g(D,x,A){Lm.get(x)!=null?D.otherDims[x]=A:(D.coordDim=x,D.coordDimIndex=A,i.set(x,!0))}var m=e.generateCoord,y=e.generateCoordCount,_=y!=null;y=m?y||1:0;var S=m||"value";function b(D){D.name==null&&(D.name=D.coordDim)}if(s)I(a,function(D){b(D)}),a.sort(function(D,x){return D.storeDimIndex-x.storeDimIndex});else for(var w=0;w<o;w++){var T=d(w),C=T.coordDim;C==null&&(T.coordDim=yI(S,i,_),T.coordDimIndex=0,(!m||y<=0)&&(T.isExtraCoord=!0),y--),b(T),T.type==null&&(zy(t,w)===$e.Must||T.isExtraCoord&&(T.otherDims.itemName!=null||T.otherDims.seriesName!=null))&&(T.type="ordinal")}return Mc(a,function(D){return D.name},function(D,x){x>0&&(D.name=D.name+(x-1))}),new o0({source:t,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function mI(t,e,r,n){var i=Math.max(t.dimensionsDetectedCount||1,e.length,r.length,n||0);return I(e,function(a){var o;j(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function yI(t,e,r){if(r||e.hasKey(t)){for(var n=0;e.hasKey(t+n);)n++;t+=n}return e.set(t,!0),t}var Al={},bh={},wh=(function(){function t(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return t.prototype.create=function(e,r){this._nonSeriesBoxMasterList=n(Al),this._normalMasterList=n(bh);function n(i,a){var o=[];return I(i,function(s,l){var u=s.create(e,r);o=o.concat(u||[])}),o}},t.prototype.update=function(e,r){I(this._normalMasterList,function(n){n.update&&n.update(e,r)})},t.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},t.register=function(e,r){if(e==="matrix"||e==="calendar"){Al[e]=r;return}bh[e]=r},t.get=function(e){return bh[e]||Al[e]},t})();function _I(t){return!!Al[t]}var SI=1,d0=2;function bI(t){p0.set(t.fullType,{getCoord2:void 0}).getCoord2=t.getCoord2}var p0=te();function g0(t){var e=t.getShallow("coord",!0),r=SI;if(e==null){var n=p0.get(t.type);n&&n.getCoord2&&(r=d0,e=n.getCoord2(t))}return{coord:e,from:r}}var qi=0,Dl=1,wI=2;function TI(t,e){var r=t.getShallow("coordinateSystem"),n=t.getShallow("coordinateSystemUsage",!0),i=qi;if(r){var a=t.mainType==="series";n==null&&(n=a?"data":"box"),n==="data"?(i=Dl,a||(i=qi)):n==="box"&&(i=wI,!a&&!_I(r)&&(i=qi))}return{coordSysType:r,kind:i}}function xI(t){var e=t.targetModel,r=t.coordSysType,n=t.coordSysProvider,i=t.isDefaultDataCoordSys,a=TI(e),o=a.kind,s=a.coordSysType;if(i&&o!==Dl&&(o=Dl,s=r),o===qi||s!==r)return qi;var l=n(r,e);return l?(o===Dl?e.coordinateSystem=l:e.boxCoordinateSystem=l,o):qi}var CI=(function(){function t(e){this.coordSysDims=[],this.axisMap=te(),this.categoryAxisMap=te(),this.coordSysName=e}return t})();function AI(t){var e=t.get("coordinateSystem"),r=new CI(e),n=DI[e];if(n)return n(t,r,r.axisMap,r.categoryAxisMap),r}var DI={cartesian2d:function(t,e,r,n){var i=t.getReferringComponents("xAxis",Pt).models[0],a=t.getReferringComponents("yAxis",Pt).models[0];e.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),Zi(i)&&(n.set("x",i),e.firstCategoryDimIndex=0),Zi(a)&&(n.set("y",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,r,n){var i=t.getReferringComponents("singleAxis",Pt).models[0];e.coordSysDims=["single"],r.set("single",i),Zi(i)&&(n.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,r,n){var i=t.getReferringComponents("polar",Pt).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),Zi(a)&&(n.set("radius",a),e.firstCategoryDimIndex=0),Zi(o)&&(n.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(t,e,r,n){e.coordSysDims=["lng","lat"]},parallel:function(t,e,r,n){var i=t.ecModel,a=i.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=a.dimensions.slice();I(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),f=o[l];r.set(f,u),Zi(u)&&(n.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})},matrix:function(t,e,r,n){var i=t.getReferringComponents("matrix",Pt).models[0];e.coordSysDims=["x","y"];var a=i.getDimensionModel("x"),o=i.getDimensionModel("y");r.set("x",a),r.set("y",o),n.set("x",a),n.set("y",o)}};function Zi(t){return t.get("type")==="category"}function MI(t,e,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;II(e)?a=e:(o=e.schema,a=o.dimensions,s=e.store);var l=!!(t&&t.get("stack")),u,f,c,v,h=!0;function d(S){return S.type!=="ordinal"&&S.type!=="time"}if(I(a,function(S,b){q(S)&&(a[b]=S={name:S}),d(S)||(h=!1)}),I(a,function(S,b){l&&!S.isExtraCoord&&(!n&&!u&&S.ordinalMeta&&(u=S),!f&&d(S)&&(!h||S.coordDim!=="x"&&S.coordDim!=="angle")&&(!i||i===S.coordDim)&&(f=S))}),f&&!n&&!u&&(n=!0),f){c="__\0ecstackresult_"+t.id,v="__\0ecstackedover_"+t.id,u&&(u.createInvertedIndices=!0);var p=f.coordDim,g=f.type,m=0;I(a,function(S){S.coordDim===p&&m++});var y={name:c,coordDim:p,coordDimIndex:m,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},_={name:v,coordDim:v,coordDimIndex:m+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(y.storeDimIndex=s.ensureCalculationDimension(v,g),_.storeDimIndex=s.ensureCalculationDimension(c,g)),o.appendCalculationDimension(y),o.appendCalculationDimension(_)):(a.push(y),a.push(_))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:v,stackResultDimension:c}}function II(t){return!s0(t.schema)}function Ki(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function LI(t,e){return Ki(t,e)?t.getCalculationInfo("stackResultDimension"):e}function PI(t,e){var r=t.get("coordinateSystem"),n=wh.get(r),i;return e&&e.coordSysDims&&(i=$(e.coordSysDims,function(a){var o={name:a},s=e.axisMap.get(a);if(s){var l=s.get("type");o.type=aI(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function EI(t,e,r){var n,i;return r&&I(t,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),e&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(t[n].otherDims.itemName=0),n}function Ml(t,e,r){r=r||{};var n=e.getSourceManager(),i,a=!1;i=n.getSource(),a=i.sourceFormat===_t;var o=AI(e),s=PI(e,o),l=r.useEncodeDefaulter,u=ee(l)?l:l?Oe(ZM,s,e):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},c=v0(i,f),v=EI(c.dimensions,r.createInvertedIndices,o),h=a?null:n.getSharedDataStore(c),d=MI(e,{schema:c,store:h}),p=new h0(c,e);p.setCalculationInfo(d);var g=v!=null&&kI(i)?function(m,y,_,S){return S===v?_:this.defaultDimValueGetter(m,y,_,S)}:null;return p.hasItemOption=!1,p.initData(a?i:h,null,g),p}function kI(t){if(t.sourceFormat===_t){var e=RI(t.data||[]);return!W(Za(e))}}function RI(t){for(var e=0;e<t.length&&t[e]==null;)e++;return t[e]}var OI=Math.round(Math.random()*10);function vo(t){return[t||"",OI++].join("_")}function NI(t){var e={};t.registerSubTypeDefaulter=function(r,n){var i=vr(r);e[i.main]=n},t.determineSubType=function(r,n){var i=n.type;if(!i){var a=vr(r).main;t.hasSubTypes(r)&&e[a]&&(i=e[a](n))}return i}}function BI(t,e){t.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=r(o),f=u.graph,c=u.noEntryList,v={};for(I(a,function(y){v[y]=!0});c.length;){var h=c.pop(),d=f[h],p=!!v[h];p&&(s.call(l,h,d.originalDeps.slice()),delete v[h]),I(d.successor,p?m:g)}I(v,function(){var y="";throw new Error(y)});function g(y){f[y].entryCount--,f[y].entryCount===0&&c.push(y)}function m(y){v[y]=!0,g(y)}};function r(a){var o={},s=[];return I(a,function(l){var u=n(o,l),f=u.originalDeps=e(l),c=i(f,a);u.entryCount=c.length,u.entryCount===0&&s.push(l),I(c,function(v){fe(u.predecessor,v)<0&&u.predecessor.push(v);var h=n(o,v);fe(h.successor,v)<0&&h.successor.push(l)})}),{graph:o,noEntryList:s}}function n(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function i(a,o){var s=[];return I(a,function(l){fe(o,l)>=0&&s.push(l)}),s}}function m0(t,e){return be(be({},t,!0),e,!0)}var FI=Math.log(2);function Th(t,e,r,n,i,a){var o=n+"-"+i,s=t.length;if(a.hasOwnProperty(o))return a[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~i)/FI);return t[r][l]}for(var u=n|1<<r,f=r+1;n&1<<f;)f++;for(var c=0,v=0,h=0;v<s;v++){var d=1<<v;d&i||(c+=(h%2?-1:1)*t[r][v]*Th(t,e-1,f,u,i|d,a),h++)}return a[o]=c,c}function y0(t,e){var r=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],n={},i=Th(r,8,0,0,0,n);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*Th(r,7,o===0?1:0,1<<o,1<<s,n)/i*e[o];return function(l,u,f){var c=u*a[6]+f*a[7]+1;l[0]=(u*a[0]+f*a[1]+a[2])/c,l[1]=(u*a[3]+f*a[4]+a[5])/c}}}var Il="___zrEVENTSAVED",xh=[];function zI(t,e,r,n,i){return Ch(xh,e,n,i,!0)&&Ch(t,r,xh[0],xh[1])}function VI(t,e){t&&r(t),e&&r(e);function r(n){var i=n[Il];i&&(i.clearMarkers&&i.clearMarkers(),delete n[Il])}}function Ch(t,e,r,n,i){if(e.getBoundingClientRect&&ie.domSupported&&!_0(e)){var a=e[Il]||(e[Il]={}),o=GI(e,a),s=HI(o,a,i);if(s)return s(t,r,n),!0}return!1}function GI(t,e){var r=e.markers;if(r)return r;r=e.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),t.appendChild(o),r.push(o)}return e.clearMarkers=function(){I(r,function(f){f.parentNode&&f.parentNode.removeChild(f)})},r}function HI(t,e,r){for(var n=r?"invTrans":"trans",i=e[n],a=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=t[u].getBoundingClientRect(),c=2*u,v=f.left,h=f.top;o.push(v,h),l=l&&a&&v===a[c]&&h===a[c+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&i?i:(e.srcCoords=o,e[n]=r?y0(s,o):y0(o,s))}function _0(t){return t.nodeName.toUpperCase()==="CANVAS"}var UI=/([&<>"'])/g,WI={"&":"&","<":"<",">":">",'"':""","'":"'"};function it(t){return t==null?"":(t+"").replace(UI,function(e,r){return WI[r]})}const YI={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:". "}}}},$I={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:""}}}};var Ll="ZH",Ah="EN",ji=Ah,Pl={},Dh={},S0=ie.domSupported?(function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||ji).toUpperCase();return t.indexOf(Ll)>-1?Ll:ji})():ji;function b0(t,e){t=t.toUpperCase(),Dh[t]=new xe(e),Pl[t]=e}function XI(t){if(q(t)){var e=Pl[t.toUpperCase()]||{};return t===Ll||t===Ah?oe(e):be(oe(e),oe(Pl[ji]),!1)}else return be(oe(t),oe(Pl[ji]),!1)}function qI(t){return Dh[t]}function ZI(){return Dh[ji]}b0(Ah,YI),b0(Ll,$I);var KI=null;function at(){return KI}function w0(t,e){var r=at(),n=e.breakOption,i=e.breakParsed;return!i&&r&&(i=r.parseAxisBreakOption(n,t)),i}function El(t){var e=t.brk;return e?e.breaks:[]}function kl(t){var e=t.brk;return e?e.hasBreaks():!1}var Mh=1e3,Ih=Mh*60,po=Ih*60,Nt=po*24,T0=Nt*365,jI={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})/},Rl={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},QI="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",Ol="{yyyy}-{MM}-{dd}",x0={year:"{yyyy}",month:"{yyyy}-{MM}",day:Ol,hour:Ol+" "+Rl.hour,minute:Ol+" "+Rl.minute,second:Ol+" "+Rl.second,millisecond:QI},St=["year","month","day","hour","minute","second","millisecond"],JI=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function eL(t){return!q(t)&&!ee(t)?tL(t):t}function tL(t){t=t||{};var e={},r=!0;return I(St,function(n){r&&(r=t[n]==null)}),I(St,function(n,i){var a=t[n];e[n]={};for(var o=null,s=i;s>=0;s--){var l=St[s],u=j(a)&&!W(a)?a[l]:a,f=void 0;W(u)?(f=u.slice(),o=f[0]||""):q(u)?(o=u,f=[o]):(o==null?o=Rl[n]:jI[l].test(o)||(o=e[l][l][0]+" "+o),f=[o],r&&(f[1]="{primary|"+o+"}")),e[n][l]=f}}),e}function un(t,e){return t+="","0000".substr(0,e-t.length)+t}function go(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function rL(t){return t===go(t)}function nL(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Nl(t,e,r,n){var i=Oi(t),a=i[C0(r)](),o=i[Ph(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[Eh(r)](),u=i["get"+(r?"UTC":"")+"Day"](),f=i[kh(r)](),c=(f-1)%12+1,v=i[Rh(r)](),h=i[Oh(r)](),d=i[Nh(r)](),p=f>=12?"pm":"am",g=p.toUpperCase(),m=n instanceof xe?n:qI(n||S0)||ZI(),y=m.getModel("time"),_=y.get("month"),S=y.get("monthAbbr"),b=y.get("dayOfWeek"),w=y.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,un(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,un(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,un(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,w[u]).replace(/{e}/g,u+"").replace(/{HH}/g,un(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,un(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,un(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,un(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,un(d,3)).replace(/{S}/g,d+"")}function iL(t,e,r,n,i){var a=null;if(q(r))a=r;else if(ee(r)){var o={time:t.time,level:t.time?t.time.level:0},s=at();s&&s.makeAxisLabelFormatterParamBreak(o,t.break),a=r(t.value,e,o)}else{var l=t.time;if(l){var u=r[l.lowerTimeUnit][l.upperTimeUnit];a=u[Math.min(l.level,u.length-1)]||""}else{var f=Qi(t.value,i);a=r[f][f][0]}}return Nl(new Date(t.value),a,i,n)}function Qi(t,e){var r=Oi(t),n=r[Ph(e)]()+1,i=r[Eh(e)](),a=r[kh(e)](),o=r[Rh(e)](),s=r[Oh(e)](),l=r[Nh(e)](),u=l===0,f=u&&s===0,c=f&&o===0,v=c&&a===0,h=v&&i===1,d=h&&n===1;return d?"year":h?"month":v?"day":c?"hour":f?"minute":u?"second":"millisecond"}function Lh(t,e,r){switch(e){case"year":t[A0(r)](0);case"month":t[D0(r)](1);case"day":t[M0(r)](0);case"hour":t[I0(r)](0);case"minute":t[L0(r)](0);case"second":t[P0(r)](0)}return t}function C0(t){return t?"getUTCFullYear":"getFullYear"}function Ph(t){return t?"getUTCMonth":"getMonth"}function Eh(t){return t?"getUTCDate":"getDate"}function kh(t){return t?"getUTCHours":"getHours"}function Rh(t){return t?"getUTCMinutes":"getMinutes"}function Oh(t){return t?"getUTCSeconds":"getSeconds"}function Nh(t){return t?"getUTCMilliseconds":"getMilliseconds"}function aL(t){return t?"setUTCFullYear":"setFullYear"}function A0(t){return t?"setUTCMonth":"setMonth"}function D0(t){return t?"setUTCDate":"setDate"}function M0(t){return t?"setUTCHours":"setHours"}function I0(t){return t?"setUTCMinutes":"setMinutes"}function L0(t){return t?"setUTCSeconds":"setSeconds"}function P0(t){return t?"setUTCMilliseconds":"setMilliseconds"}function E0(t){if(!KA(t))return q(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function k0(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var Bl=df;function Bh(t,e,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&hr(f)?f:"-"}function a(f){return Lt(f)}var o=e==="time",s=t instanceof Date;if(o||s){var l=o?Oi(t):t;if(isNaN(+l)){if(s)return"-"}else return Nl(l,n,r)}if(e==="ordinal")return cf(t)?i(t):me(t)&&a(t)?t+"":"-";var u=Ks(t);return a(u)?E0(u):cf(t)?i(t):typeof t=="boolean"?t+"":"-"}var R0=["a","b","c","d","e","f","g"],Fh=function(t,e){return"{"+t+(e??"")+"}"};function O0(t,e,r){W(e)||(e=[e]);var n=e.length;if(!n)return"";for(var i=e[0].$vars||[],a=0;a<i.length;a++){var o=R0[a];t=t.replace(Fh(o),Fh(o,0))}for(var s=0;s<n;s++)for(var l=0;l<i.length;l++){var u=e[s][i[l]];t=t.replace(Fh(R0[l],s),r?it(u):u)}return t}function oL(t,e){var r=q(t)?{color:t,extraCssText:e}:t||{},n=r.color,i=r.type;e=r.extraCssText;var a=r.renderMode||"html";if(!n)return"";if(a==="html")return i==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+it(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+it(n)+";"+(e||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function ri(t,e){return e=e||"transparent",q(t)?t:j(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function N0(t,e){if(e==="_blank"||e==="blank"){var r=window.open();r.opener=null,r.location.href=t}else window.open(t,e)}var Fl=I,sL=["left","right","top","bottom","width","height"],zl=[["width","left","right"],["height","top","bottom"]];function zh(t,e,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;e.eachChild(function(l,u){var f=l.getBoundingRect(),c=e.childAt(u+1),v=c&&c.getBoundingRect(),h,d;if(t==="horizontal"){var p=f.width+(v?-v.x+f.x:0);h=a+p,h>n||l.newline?(a=0,h=p,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(v?-v.y+f.y:0);d=o+g,d>i||l.newline?(a+=s+r,o=0,d=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),t==="horizontal"?a=h+r:o=d+r)})}var mo=zh;Oe(zh,"vertical"),Oe(zh,"horizontal");function lL(t,e){return{left:t.getShallow("left",e),top:t.getShallow("top",e),right:t.getShallow("right",e),bottom:t.getShallow("bottom",e),width:t.getShallow("width",e),height:t.getShallow("height",e)}}function uL(t,e){var r=Ji(t,e,{enableLayoutOnlyByCenter:!0}),n=t.getBoxLayoutParams(),i,a;if(r.type===yo.point)a=r.refPoint,i=Vr(n,{width:e.getWidth(),height:e.getHeight()});else{var o=t.get("center"),s=W(o)?o:[o,o];i=Vr(n,r.refContainer),a=r.boxCoordFrom===d0?r.refPoint:[Q(s[0],i.width)+i.x,Q(s[1],i.height)+i.y]}return{viewRect:i,center:a}}function fL(t,e){var r=uL(t,e),n=r.viewRect,i=r.center,a=t.get("radius");W(a)||(a=[0,a]);var o=Q(n.width,e.getWidth()),s=Q(n.height,e.getHeight()),l=Math.min(o,s),u=Q(a[0],l/2),f=Q(a[1],l/2);return{cx:i[0],cy:i[1],r0:u,r:f,viewRect:n}}function Vr(t,e,r){r=Bl(r||0);var n=e.width,i=e.height,a=Q(t.left,n),o=Q(t.top,i),s=Q(t.right,n),l=Q(t.bottom,i),u=Q(t.width,n),f=Q(t.height,i),c=r[2]+r[0],v=r[1]+r[3],h=t.aspect;switch(isNaN(u)&&(u=n-s-v-a),isNaN(f)&&(f=i-l-c-o),h!=null&&(isNaN(u)&&isNaN(f)&&(h>n/i?u=n*.8:f=i*.8),isNaN(u)&&(u=h*f),isNaN(f)&&(f=u/h)),isNaN(a)&&(a=n-s-u-v),isNaN(o)&&(o=i-l-f-c),t.left||t.right){case"center":a=n/2-u/2-r[3];break;case"right":a=n-u-v;break}switch(t.top||t.bottom){case"middle":case"center":o=i/2-f/2-r[0];break;case"bottom":o=i-f-c;break}a=a||0,o=o||0,isNaN(u)&&(u=n-v-a-(s||0)),isNaN(f)&&(f=i-c-o-(l||0));var d=new ne((e.x||0)+a+r[3],(e.y||0)+o+r[0],u,f);return d.margin=r,d}var yo={rect:1,point:2};function Ji(t,e,r){var n,i,a,o=t.boxCoordinateSystem,s;if(o){var l=g0(t),u=l.coord,f=l.from;if(o.dataToLayout){a=yo.rect,s=f;var c=o.dataToLayout(u);n=c.contentRect||c.rect}else r&&r.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=yo.point,s=f,i=o.dataToPoint(u))}return a==null&&(a=yo.rect),a===yo.rect&&(n||(n={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),i=[n.x+n.width/2,n.y+n.height/2]),{type:a,refContainer:n,refPoint:i,boxCoordFrom:s}}function _o(t){var e=t.layoutMode||t.constructor.layoutMode;return j(e)?e:e?{type:e}:null}function fn(t,e,r){var n=r&&r.ignoreSize;!W(n)&&(n=[n,n]);var i=o(zl[0],0),a=o(zl[1],1);l(zl[0],t,i),l(zl[1],t,a);function o(u,f){var c={},v=0,h={},d=0,p=2;if(Fl(u,function(y){h[y]=t[y]}),Fl(u,function(y){tt(e,y)&&(c[y]=h[y]=e[y]),s(c,y)&&v++,s(h,y)&&d++}),n[f])return s(e,u[1])?h[u[2]]=null:s(e,u[2])&&(h[u[1]]=null),h;if(d===p||!v)return h;if(v>=p)return c;for(var g=0;g<u.length;g++){var m=u[g];if(!tt(c,m)&&tt(t,m)){c[m]=t[m];break}}return c}function s(u,f){return u[f]!=null&&u[f]!=="auto"}function l(u,f,c){Fl(u,function(v){f[v]=c[v]})}}function So(t){return cL({},t)}function cL(t,e){return e&&t&&Fl(sL,function(r){tt(e,r)&&(t[r]=e[r])}),t}var hL=Se(),ye=(function(t){V(e,t);function e(r,n,i){var a=t.call(this,r,n,i)||this;return a.uid=vo("ec_cpt_model"),a}return e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},e.prototype.mergeDefaultAndTheme=function(r,n){var i=_o(this),a=i?So(r):{},o=n.getTheme();be(r,o.get(this.mainType)),be(r,this.getDefaultOption()),i&&fn(r,a,i)},e.prototype.mergeOption=function(r,n){be(this.option,r,!0);var i=_o(this);i&&fn(this.option,r,i)},e.prototype.optionUpdated=function(r,n){},e.prototype.getDefaultOption=function(){var r=this.constructor;if(!nC(r))return r.defaultOption;var n=hL(this);if(!n.defaultOption){for(var i=[],a=r;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},l=i.length-1;l>=0;l--)s=be(s,i[l],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return Qa(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},e.prototype.getBoxLayoutParams=function(){return lL(this,!1)},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(r){this.option.zlevel=r},e.protoInitialize=(function(){var r=e.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0})(),e})(xe);qp(ye,xe),gs(ye),NI(ye),BI(ye,vL);function vL(t){var e=[];return I(ye.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.dependencies||[])}),e=$(e,function(r){return vr(r).main}),t!=="dataset"&&fe(e,"dataset")<=0&&e.unshift("dataset"),e}var B0=Se();Se();var Vh=(function(){function t(){}return t.prototype.getColorFromPalette=function(e,r,n){var i=nt(this.get("color",!0)),a=this.get("colorLayer",!0);return pL(this,B0,i,a,e,r,n)},t.prototype.clearColorPalette=function(){gL(this,B0)},t})();function dL(t,e){for(var r=t.length,n=0;n<r;n++)if(t[n].length>e)return t[n];return t[r-1]}function pL(t,e,r,n,i,a,o){a=a||t;var s=e(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var f=o==null||!n?r:dL(n,o);if(f=f||r,!(!f||!f.length)){var c=f[l];return i&&(u[i]=c),s.paletteIdx=(l+1)%f.length,c}}function gL(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var mL=/\{@(.+?)\}/g,yL=(function(){function t(){}return t.prototype.getDataParams=function(e,r){var n=this.getData(r),i=this.getRawValue(e,r),a=n.getRawIndex(e),o=n.getName(e),s=n.getRawDataItem(e),l=n.getItemVisual(e,"style"),u=l&&l[n.getItemVisual(e,"drawType")||"fill"],f=l&&l.stroke,c=this.mainType,v=c==="series",h=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:v?this.subType:null,seriesIndex:this.seriesIndex,seriesId:v?this.id:null,seriesName:v?this.name:null,name:o,dataIndex:a,data:s,dataType:r,value:i,color:u,borderColor:f,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(e,r,n,i,a,o){r=r||"normal";var s=this.getData(n),l=this.getDataParams(e,n);if(o&&(l.value=o.interpolatedValue),i!=null&&W(l.value)&&(l.value=l.value[i]),!a){var u=s.getItemModel(e);a=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(ee(a))return l.status=r,l.dimensionIndex=i,a(l);if(q(a)){var f=O0(a,l);return f.replace(mL,function(c,v){var h=v.length,d=v;d.charAt(0)==="["&&d.charAt(h-1)==="]"&&(d=+d.slice(1,h-1));var p=$i(s,e,d);if(o&&W(o.interpolatedValue)){var g=s.getDimensionIndex(d);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},t.prototype.getRawValue=function(e,r){return $i(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,n){},t})();function F0(t){var e,r;return j(t)?t.type&&(r=t):e=t,{text:e,frag:r}}function bo(t){return new _L(t)}var _L=(function(){function t(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var r=this._upstream,n=e&&e.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(a="reset");function f(y){return!(y>=1)&&(y=1),y}var c;(this._dirty||a==="reset")&&(this._dirty=!1,c=this._doReset(n)),this._modBy=l,this._modDataCount=u;var v=e&&e.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,d=Math.min(v!=null?this._dueIndex+v:1/0,this._dueEnd);if(!n&&(c||h<d)){var p=this._progress;if(W(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],h,d,l,u);else this._doProgress(p,h,d,l,u)}this._dueIndex=d;var m=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(e,r,n,i,a){z0.reset(r,n,i,a),this._callingProgress=e,this._callingProgress({start:r,end:n,count:n-r,next:z0.next},this.context)},t.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!e&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),W(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t})(),z0=(function(){var t,e,r,n,i,a={reset:function(l,u,f,c){e=l,t=u,r=f,n=c,i=Math.ceil(n/r),a.next=r>1&&n>0?s:o}};return a;function o(){return e<t?e++:null}function s(){var l=e%i*r+Math.ceil(e/i),u=e>=t?null:l<n?l:e;return e++,u}})(),SL=(function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(e){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(e){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(e,r){},t.prototype.retrieveValueFromItem=function(e,r){},t.prototype.convertValue=function(e,r){return xl(e,r)},t})();function bL(t,e){var r=new SL,n=t.data,i=r.sourceFormat=t.sourceFormat,a=t.startIndex,o="";t.seriesLayoutBy!==qt&&ht(o);var s=[],l={},u=t.dimensionsDefine;if(u)I(u,function(p,g){var m=p.name,y={index:g,name:m,displayName:p.displayName};if(s.push(y),m!=null){var _="";tt(l,m)&&ht(_),l[m]=y}});else for(var f=0;f<t.dimensionsDetectedCount;f++)s.push({index:f});var c=Ky(i,qt);e.__isBuiltIn&&(r.getRawDataItem=function(p){return c(n,a,s,p)},r.getRawData=de(wL,null,t)),r.cloneRawData=de(TL,null,t);var v=Qy(i,qt);r.count=de(v,null,n,a,s);var h=Jy(i);r.retrieveValue=function(p,g){var m=c(n,a,s,p);return d(m,g)};var d=r.retrieveValueFromItem=function(p,g){if(p!=null){var m=s[g];if(m)return h(p,g,m.name)}};return r.getDimensionInfo=de(xL,null,s,l),r.cloneAllDimensionInfo=de(CL,null,s),r}function wL(t){var e=t.sourceFormat;if(!Gh(e)){var r="";ht(r)}return t.data}function TL(t){var e=t.sourceFormat,r=t.data;if(!Gh(e)){var n="";ht(n)}if(e===Ze){for(var i=[],a=0,o=r.length;a<o;a++)i.push(r[a].slice());return i}else if(e===kt){for(var i=[],a=0,o=r.length;a<o;a++)i.push(z({},r[a]));return i}}function xL(t,e,r){if(r!=null){if(me(r)||!isNaN(r)&&!tt(e,r))return t[r];if(tt(e,r))return e[r]}}function CL(t){return oe(t)}var V0=te();function AL(t){t=oe(t);var e=t.type,r="";e||ht(r);var n=e.split(":");n.length!==2&&ht(r);var i=!1;n[0]==="echarts"&&(e=n[1],i=!0),t.__isBuiltIn=i,V0.set(e,t)}function DL(t,e,r){var n=nt(t),i=n.length,a="";i||ht(a);for(var o=0,s=i;o<s;o++){var l=n[o];e=ML(l,e),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function ML(t,e,r,n){var i="";e.length||ht(i),j(t)||ht(i);var a=t.type,o=V0.get(a);o||ht(i);var s=$(e,function(u){return bL(u,o)}),l=nt(o.transform({upstream:s[0],upstreamList:s,config:oe(t.config)}));return $(l,function(u,f){var c="";j(u)||ht(c),u.data||ht(c);var v=Hy(u.data);Gh(v)||ht(c);var h,d=e[0];if(d&&f===0&&!u.dimensions){var p=d.startIndex;p&&(u.data=d.data.slice(0,p).concat(u.data)),h={seriesLayoutBy:qt,sourceHeader:p,dimensions:d.metaRawOption.dimensions}}else h={seriesLayoutBy:qt,sourceHeader:0,dimensions:u.dimensions};return hh(u.data,h,null)})}function Gh(t){return t===Ze||t===kt}var G0=(function(){function t(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(e,r){this._sourceList=e,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(Vl(e)){var o=e,s=void 0,l=void 0,u=void 0;if(n){var f=r[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=ft(s)?an:_t,a=[];var c=this._getSourceMetaRawOption()||{},v=u&&u.metaRawOption||{},h=Z(c.seriesLayoutBy,v.seriesLayoutBy)||null,d=Z(c.sourceHeader,v.sourceHeader),p=Z(c.dimensions,v.dimensions),g=h!==v.seriesLayoutBy||!!d!=!!v.sourceHeader||p;i=g?[hh(s,{seriesLayoutBy:h,sourceHeader:d,dimensions:p},l)]:[]}else{var m=e;if(n){var y=this._applyTransform(r);i=y.sourceList,a=y.upstreamSignList}else{var _=m.get("source",!0);i=[hh(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},t.prototype._applyTransform=function(e){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var a="";e.length!==1&&U0(a)}var o,s=[],l=[];return I(e,function(u){u.prepareSource();var f=u.getSource(i||0),c="";i!=null&&!f&&U0(c),s.push(f),l.push(u._getVersionSign())}),n?o=DL(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[jM(s[0])]),{sourceList:o,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),r=0;r<e.length;r++){var n=e[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},t.prototype.getSource=function(e){e=e||0;var r=this._sourceList[e];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return r},t.prototype.getSharedDataStore=function(e){var r=e.makeStoreSchema();return this._innerGetDataStore(r.dimensions,e.source,r.hash)},t.prototype._innerGetDataStore=function(e,r,n){var i=0,a=this._storeList,o=a[i];o||(o=a[i]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];Vl(this._sourceHost)&&l?s=l._innerGetDataStore(e,r,n):(s=new mh,s.initData(new qy(r,e.length),e)),o[n]=s}return s},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Vl(e)){var r=fh(e);return r?[r.getSourceManager()]:[]}else return $(KM(e),function(n){return n.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,r,n,i;if(Vl(e))r=e.get("seriesLayoutBy",!0),n=e.get("sourceHeader",!0),i=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=e;r=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:i}},t})();function H0(t){var e=t.option.transform;e&&vs(t.option.transform)}function Vl(t){return t.mainType==="series"}function U0(t){throw new Error(t)}var Y={color:{},darkColor:{},size:{}},Le=Y.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)"};z(Le,{primary:Le.neutral80,secondary:Le.neutral70,tertiary:Le.neutral60,quaternary:Le.neutral50,disabled:Le.neutral20,border:Le.neutral30,borderTint:Le.neutral20,borderShade:Le.neutral40,background:Le.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:Le.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:Le.neutral70,axisLineTint:Le.neutral40,axisTick:Le.neutral70,axisTickMinor:Le.neutral60,axisLabel:Le.neutral70,axisSplitLine:Le.neutral15,axisMinorSplitLine:Le.neutral05});for(var ni in Le)if(Le.hasOwnProperty(ni)){var W0=Le[ni];ni==="theme"?Y.darkColor.theme=Le.theme.slice():ni==="highlight"?Y.darkColor.highlight="rgba(255,231,130,0.4)":ni.indexOf("accent")===0?Y.darkColor[ni]=Uf(W0,null,function(t){return t*.5},function(t){return Math.min(1,1.3-t)}):Y.darkColor[ni]=Uf(W0,null,function(t){return t*.9},function(t){return 1-Math.pow(t,1.5)})}Y.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var IL="line-height:1";function Y0(t){var e=t.lineHeight;return e==null?IL:"line-height:"+it(e+"")+"px"}function $0(t,e){var r=t.color||Y.color.tertiary,n=t.fontSize||12,i=t.fontWeight||"400",a=t.color||Y.color.secondary,o=t.fontSize||14,s=t.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+it(n+"")+"px;color:"+it(r)+";font-weight:"+it(i+""),valueStyle:"font-size:"+it(o+"")+"px;color:"+it(a)+";font-weight:"+it(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var LL=[0,10,20,30],PL=["",`
|
|
1
|
+
(function(Q){typeof define=="function"&&define.amd?define(Q):Q()})((function(){"use strict";const Q=t=>typeof t=="string",Ri=()=>{let t,e;const r=new Promise((a,n)=>{t=a,e=n});return r.resolve=t,r.reject=e,r},ks=t=>t==null?"":String(t),aS=t=>Q(t)&&/^[A-Za-z0-9_@.-]{1,128}$/.test(t)&&!t.includes("..")&&!["__proto__","constructor","prototype"].includes(t),Sp=t=>t?.callbackApi??t?.constructor?.callbackApi,nS=(t,e,r)=>{t.forEach(a=>{e[a]&&(r[a]=e[a])})},iS=/###/g,Xv=t=>t&&t.includes("###")?t.replace(iS,"."):t,qv=t=>!t||Q(t),Bi=(t,e,r)=>{const a=Q(e)?e.split("."):e;let n=0;for(;n<a.length-1;){if(qv(t))return{};const i=Xv(a[n]);!t[i]&&r&&(t[i]=new r),Object.prototype.hasOwnProperty.call(t,i)?t=t[i]:t={},++n}return qv(t)?{}:{obj:t,k:Xv(a[n])}},jv=(t,e,r)=>{const{obj:a,k:n}=Bi(t,e,Object);if(a!==void 0||e.length===1){a[n]=r;return}let i=e[e.length-1],o=e.slice(0,e.length-1),s=Bi(t,o,Object);for(;s.obj===void 0&&o.length;)i=`${o[o.length-1]}.${i}`,o=o.slice(0,o.length-1),s=Bi(t,o,Object),s?.obj&&typeof s.obj[`${s.k}.${i}`]<"u"&&(s.obj=void 0);s.obj[`${s.k}.${i}`]=r},oS=(t,e,r,a)=>{const{obj:n,k:i}=Bi(t,e,Object);(!Object.prototype.hasOwnProperty.call(n,i)||!n[i])&&(n[i]=[]),n[i].push(r)},ws=(t,e)=>{const{obj:r,k:a}=Bi(t,e);if(r&&Object.prototype.hasOwnProperty.call(r,a))return r[a]},sS=(t,e,r)=>{const a=ws(t,r);return a!==void 0?a:ws(e,r)},Zv=t=>t===null||typeof t!="object"||t instanceof String,Qv=(t,e,r)=>{for(const a in e)a!=="__proto__"&&a!=="constructor"&&(Object.prototype.hasOwnProperty.call(t,a)?Zv(t[a])||Zv(e[a])?r&&(t[a]=e[a]):Qv(t[a],e[a],r):t[a]=e[a]);return t},Ta=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),lS={"&":"&","<":"<",">":">",'"':""","'":"'"},uS=t=>Q(t)?t.replace(/[&<>"']/g,e=>lS[e]):t;class pS{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const r=this.regExpMap.get(e);if(r!==void 0)return r;const a=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,a),this.regExpQueue.push(e),a}}const cS=[" ",",","?","!",";"],fS=new pS(20),hS=(t,e,r)=>{e=e||"",r=r||"";const a=cS.filter(o=>!e.includes(o)&&!r.includes(o));if(a.length===0)return!0;const n=fS.getRegExp(`(${a.map(o=>o==="?"?"\\?":o).join("|")})`);let i=!n.test(t);if(!i){const o=t.indexOf(r);o>0&&!n.test(t.substring(0,o))&&(i=!0)}return i},Tp=(t,e,r=".")=>{if(!t)return;if(t[e]||!r)return Object.prototype.hasOwnProperty.call(t,e)?t[e]:void 0;const a=e.split(r);let n=t;for(let i=0;i<a.length;){if(!n||typeof n!="object")return;let o,s="";for(let l=i;l<a.length;++l)if(l!==i&&(s+=r),s+=a[l],o=n[s],(typeof o=="function"||s==="__proto__")&&!Object.prototype.hasOwnProperty.call(n,s)&&(o=void 0),o!==void 0){if(["string","number","boolean"].includes(typeof o)&&l<a.length-1)continue;i+=l-i+1;break}n=o}return n},Tn=t=>t?.replace(/_/g,"-"),dS={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console?.[t]?.apply?.(console,e)}};class Ni{constructor(e,r={}){this.init(e,r)}init(e,r={}){this.prefix=r.prefix||"i18next:",this.logger=e||dS,this.options=r,this.debug=r.debug,this.seen=new Set}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}once(e,r,...a){return!this.debug||this.seen.has(e)||this.seen.size>=1e3?null:(this.seen.add(e),this[r](...a))}forward(e,r,a,n){return n&&!this.debug?null:(e=e.map(i=>Q(i)?i.replace(/[\r\n\x00-\x1F\x7F]/g," "):i),Q(e[0])&&(e[0]=`${a}${this.prefix} ${e[0]}`),this.logger[r](e))}create(e){return new Ni(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new Ni(this.logger,e)}}var Ca=new Ni;const Jv=new WeakSet;class _s{constructor(){this.observers={}}on(e,r){return e.split(" ").forEach(a=>{this.observers[a]||(this.observers[a]=new Map);const n=this.observers[a].get(r)||0;this.observers[a].set(r,n+1)}),this}off(e,r){(typeof e=="string"?e.split(" "):[e]).forEach(a=>{if(this.observers[a]){if(!r){delete this.observers[a];return}this.observers[a].delete(r),Jv.has(r)&&this.observers[a].forEach((n,i)=>{i.listener===r&&this.observers[a].delete(i)})}})}once(e,r){const a=(...n)=>{this.off(e,a),r(...n)};return a.listener=r,Jv.add(r),this.on(e,a),this}emit(e,...r){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([n,i])=>{for(let o=0;o<i;o++)n(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([n,i])=>{for(let o=0;o<i;o++)n(e,...r)})}}const eg=new WeakSet,Cp=(t,...e)=>{if(e.some(r=>!Q(r)))throw new TypeError(`${t}: pass language, namespace${t==="addResource"?" and key":""} as separate strings; the dotted form ('en.translation.key') was removed in i18next v27`)};class tg extends _s{constructor(e,r={ns:["translation"],defaultNS:"translation"},a=Ca){super(),this.data=e||{},this.options=r,this.logger=a.create("resourceStore"),this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.includes(e)||this.options.ns.push(e)}removeNamespaces(e){const r=this.options.ns.indexOf(e);r>-1&&this.options.ns.splice(r,1)}getResource(e,r,a,n={}){const i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,o=n.ignoreJSONStructure!==void 0?n.ignoreJSONStructure:this.options.ignoreJSONStructure,s=[e,r];a&&(Array.isArray(a)?s.push(...a):Q(a)&&i?s.push(...a.split(i)):s.push(a));const l=ws(this.data,s);return l!=null||!o||!Q(a)?l:Tp(this.data?.[e]?.[r],a,i)}addResource(e,r,a,n,i={silent:!1}){Cp("addResource",e,r,a);const o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let s=[e,r];a&&(s=s.concat(o?a.split(o):a)),this.addNamespaces(r),jv(this.data,s,n),i.silent||this.emit("added",e,r,a,n)}addResources(e,r,a,n={silent:!1}){Cp("addResources",e,r),Object.keys(a||{}).forEach(i=>{i==="__proto__"||i==="constructor"||this.addResource(e,r,i,a[i],{silent:!0})}),n.silent||this.emit("added",e,r,a)}addResourceBundle(e,r,a,n,i,o={silent:!1,skipCopy:!1}){Cp("addResourceBundle",e,r);const s=[e,r];this.addNamespaces(r);let l=ws(this.data,s)||{};o.skipCopy||(a=JSON.parse(JSON.stringify(a))),n?Qv(l,a,i):l={...l,...a},jv(this.data,s,l),o.silent||this.emit("added",e,r,a)}removeResourceBundle(e,r){this.hasResourceBundle(e,r)&&delete this.data[e][r],this.removeNamespaces(r),this.emit("removed",e,r)}hasResourceBundle(e,r){return this.getResource(e,r)!==void 0}getResourceBundle(e,r){return r||(r=this.options.defaultNS),this.getResource(e,r)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const r=this.getDataByLanguage(e);return!!(r&&Object.keys(r)||[]).find(n=>{const i=r[n];return eg.has(i)?!0:!i||Object.keys(i).length===0?!1:(typeof i=="object"&&eg.add(i),!0)})}toJSON(){return this.data}}const rg=Symbol("i18next/PATH_KEY");function vS(){const t=[],e=Object.create(null);let r;return e.get=(a,n)=>(r?.revoke?.(),n===rg?t:(t.push(n),r=Proxy.revocable(a,e),r.proxy)),Proxy.revocable(Object.create(null),e).proxy}function Cn(t,e){const{[rg]:r}=t(vS()),a=e?.keySeparator||".",n=e?.nsSeparator??":",i=e?.enableSelector==="strict";if(r.length>1&&n){const o=e?.ns,s=i?Array.isArray(o)?o:o?[o]:null:Array.isArray(o)?o:null;if(s&&(i?s:s.length>1?s.slice(1):[]).includes(r[0]))return`${r[0]}${n}${r.slice(1).join(a)}`}return r.join(a)}const xs=t=>!Q(t)&&typeof t!="boolean"&&typeof t!="number";class Ps extends _s{constructor(e,r={}){super(),nS(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils","postProcessors"],e,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=(e.logger||Ca).create("translator"),this.checkedLoadedFor={}}changeLanguage(e){e&&(this.language=e)}exists(e,r={interpolation:{}}){const a={...r};if(e==null)return!1;const n=this.resolve(e,a);if(n?.res===void 0)return!1;const i=xs(n.res);return!(a.returnObjects===!1&&i)}extractFromKey(e,r){let a=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;a===void 0&&(a=":");const n=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let i=r.ns||this.options.defaultNS||[];const o=a&&e.includes(a),s=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!hS(e,a,n);if(o&&!s){const l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:Q(i)?[i]:i};const u=e.split(a);(a!==n||a===n&&this.options.ns.includes(u[0]))&&(i=u.shift()),e=u.join(n===!1?a:n)}return{key:e,namespaces:Q(i)?[i]:i}}translate(e,r,a){let n=typeof r=="object"?{...r}:r;if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),e==null)return"";typeof e=="function"&&(e=Cn(e,{...this.options,...n})),Array.isArray(e)||(e=[String(e)]),e=e.map(E=>typeof E=="function"?Cn(E,{...this.options,...n}):String(E));const i=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:s,namespaces:l}=this.extractFromKey(e[e.length-1],n),u=l[l.length-1];let p=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;p===void 0&&(p=":");const c=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c?.toLowerCase()==="cimode")return f?i?{res:`${u}${p}${s}`,usedKey:s,exactUsedKey:s,usedLng:c,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:`${u}${p}${s}`:i?{res:s,usedKey:s,exactUsedKey:s,usedLng:c,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:s;const h=this.resolve(e,n);let d=h?.res;const v=h?.usedKey||s,m=h?.exactUsedKey||s,g=["[object Number]","[object Function]","[object RegExp]"],y=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject,k=n.count!==void 0&&!Q(n.count),w=Ps.hasDefaultValue(n),_=k?this.pluralResolver.getSuffix(c,n.count,n):"",x=n.ordinal&&k?this.pluralResolver.getSuffix(c,n.count,{ordinal:!1}):"",T=k&&!n.ordinal&&n.count===0,C=this.options.pluralSeparator,P=T&&n[`defaultValue${C}zero`]||n[`defaultValue${_}`]||n[`defaultValue${x}`]||(n.defaultValue??(k?n[`defaultValue${n.ordinal?`${C}ordinal${C}`:C}other`]:void 0));let S=d;b&&!d&&w&&(S=P);const L=xs(S),D=Object.prototype.toString.apply(S),M=b&&S&&L&&!g.includes(D)&&!(Q(y)&&Array.isArray(S)),I=M&&!n.returnObjects&&!this.options.returnObjects;if(I&&this.options.returnedObjectHandler){const E=this.options.returnedObjectHandler(v,S,{...n,ns:l});return i?(h.res=E,h.usedParams=this.getUsedParamsDetails(n),h):E}if(I&&this.logger.warn("accessing an object - but returnObjects options is not enabled!"),M&&!I){if(o){const E=Array.isArray(S),O=E?[]:{},R=E?m:v;for(const B in S)if(Object.prototype.hasOwnProperty.call(S,B)){const N=`${R}${o}${B}`;w&&!d?O[B]=this.translate(N,{...n,defaultValue:xs(P)?P[B]:void 0,joinArrays:!1,ns:l}):O[B]=this.translate(N,{...n,joinArrays:!1,ns:l}),O[B]===N&&(O[B]=S[B])}d=O}}else if(b&&Q(y)&&Array.isArray(d))d=d.join(y),d&&(d=this.extendTranslation(d,e,n,h,a));else{let E=!1,O=!1;I&&(d=void 0),!this.isValidLookup(d)&&w&&!(I&&xs(P))&&(E=!0,d=P),!this.isValidLookup(d)&&!(E&&d==="")&&(O=!0,d=s);const B=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&O?void 0:d,N=w&&P!==d&&this.options.updateMissing;if(!I&&(O||E||N)){if(this.logger.log(N?"updateKey":"missingKey",c,u,k&&!N?`${s}${this.pluralResolver.getSuffix(c,n.count,n)}`:s,N?P:d),o){const z=this.resolve(s,{...n,keySeparator:!1});z&&z.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let F=[];const U=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&U&&U[0])for(let z=0;z<U.length;z++)F.push(U[z]);else this.options.saveMissingTo==="all"?F=this.languageUtils.toResolveHierarchy(n.lng||this.language):F.push(n.lng||this.language);const Y=(z,j,ne)=>{const De=w&&ne!==d?ne:B;this.options.missingKeyHandler?this.options.missingKeyHandler(z,u,j,De,N,n):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(z,u,j,De,N,n,void 0,this.utils?.hasLoadedNamespace),this.emit("missingKey",z,u,j,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&k?F.forEach(z=>{const j=this.pluralResolver.getSuffixes(z,n);T&&n[`defaultValue${this.options.pluralSeparator}zero`]&&!j.includes(`${this.options.pluralSeparator}zero`)&&j.push(`${this.options.pluralSeparator}zero`),j.forEach(ne=>{Y([z],s+ne,n[`defaultValue${ne}`]||P)})}):Y(F,s,P))}d=this.extendTranslation(d,e,n,h,a),O&&d===s&&this.options.appendNamespaceToMissingKey&&(d=`${u}${p}${s}`),(O||E)&&this.options.parseMissingKeyHandler&&(d=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}${p}${s}`:s,E?d:void 0,n))}return i?(h.res=d,h.usedParams=this.getUsedParamsDetails(n),h):d}extendTranslation(e,r,a,n,i){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...a},a.lng||this.language||n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!a.skipInterpolation){a.interpolation&&this.interpolator.init({...a,interpolation:{...this.options.interpolation,...a.interpolation}});const l=Q(e)&&(a?.interpolation?.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let u;if(l){const c=e.includes(this.interpolator.nestingPrefixText)?e.match(this.interpolator.nestingRegexp):null;u=c&&c.length}let p=a.replace&&!Q(a.replace)?a.replace:a;if(this.options.interpolation.defaultVariables&&(p={...this.options.interpolation.defaultVariables,...p}),e=this.interpolator.interpolate(e,p,a.lng||this.language||n.usedLng,a),l){const c=e.includes(this.interpolator.nestingPrefixText)?e.match(this.interpolator.nestingRegexp):null,f=c&&c.length;u<f&&(a.nest=!1)}!a.lng&&n&&n.res&&(a.lng=this.language||n.usedLng),a.nest!==!1&&(e=this.interpolator.nest(e,(...c)=>i?.[0]===c[0]&&!a.context?(this.logger.warn(`It seems you are nesting recursively key: ${c[0]} in key: ${r[0]}`),null):this.translate(...c,r),a)),a.interpolation&&this.interpolator.reset()}const o=a.postProcess||this.options.postProcess,s=Q(o)?[o]:o;if(e!=null&&s?.length&&a.applyPostProcessor!==!1){const l=this.options?.postProcessPassResolved?{i18nResolved:{...n,usedParams:this.getUsedParamsDetails(a)},...a}:a;s.forEach(u=>{const p=this.postProcessors?.[u];if(!p){this.logger.once(`postProcess:${u}`,"warn",`postProcess: '${u}' is not registered on this i18next instance; call use() with it on this instance`);return}e=p.process(e,r,l,this)??e})}return e}resolve(e,r={}){let a,n,i,o,s;return Q(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(l=>typeof l=="function"?Cn(l,{...this.options,...r}):l)),e.forEach(l=>{if(this.isValidLookup(a))return;const u=this.extractFromKey(l,r),p=u.key;n=p;let c=u.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const f=r.count!==void 0&&!Q(r.count),h=f&&!r.ordinal&&r.count===0,d=r.context!==void 0&&(Q(r.context)||typeof r.context=="number")&&r.context!=="",v=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);c.forEach(m=>{this.isValidLookup(a)||(s=m,!this.checkedLoadedFor[`${v[0]}-${m}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(s)&&(this.checkedLoadedFor[`${v[0]}-${m}`]=!0,this.logger.warn(`key "${n}" for languages "${v.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),v.forEach(g=>{if(this.isValidLookup(a))return;o=g;const y=[p];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(y,p,g,m,r);else{let k;f&&(k=this.pluralResolver.getSuffix(g,r.count,r));const w=`${this.options.pluralSeparator}zero`,_=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(f&&(r.ordinal&&k.startsWith(_)&&y.push(p+k.replace(_,this.options.pluralSeparator)),y.push(p+k),h&&y.push(p+w)),d){const x=`${p}${this.options.contextSeparator||"_"}${r.context}`;y.push(x),f&&(r.ordinal&&k.startsWith(_)&&y.push(x+k.replace(_,this.options.pluralSeparator)),y.push(x+k),h&&y.push(x+w))}if(f){const x=`${r.ordinal?_:this.options.pluralSeparator}other`;k!==x&&(d&&y.unshift(`${p}${this.options.contextSeparator||"_"}${r.context}${x}`),y.unshift(p+x))}}let b;for(;b=y.pop();)this.isValidLookup(a)||(i=b,a=this.getResource(g,m,b,r))}))})}),{res:a,usedKey:n,exactUsedKey:i,usedLng:o,usedNS:s}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,r,a,n={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,r,a,n):this.resourceStore.getResource(e,r,a,n)}getUsedParamsDetails(e={}){const r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],a=e.replace&&!Q(e.replace);let n=a?e.replace:e;if(a&&typeof e.count<"u"&&(n={...n,count:e.count}),this.options.interpolation.defaultVariables&&(n={...this.options.interpolation.defaultVariables,...n}),!a){n={...n};for(const i of r)delete n[i]}return n}static hasDefaultValue(e){const r="defaultValue";for(const a in e)if(Object.prototype.hasOwnProperty.call(e,a)&&a.startsWith(r)&&e[a]!==void 0)return!0;return!1}}class ag{constructor(e,r=Ca){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=r.create("languageUtils"),this.resolveHierarchyCache={},this.formattedCodes=new Map}clearCache(){this.resolveHierarchyCache={},this.formattedCodes.clear()}getScriptPartFromCode(e){if(e=Tn(e),!e||!e.includes("-"))return null;const r=e.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(e){if(e=Tn(e),!e||!e.includes("-"))return e;const r=e.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(e){if(!Q(e))return e;let r=this.formattedCodes.get(e);return r!==void 0||(r=this.formatUncached(e),this.formattedCodes.size>=1e3&&this.formattedCodes.clear(),this.formattedCodes.set(e,r)),r}formatUncached(e){const r=e.includes("-");if(r||this.options.cleanCode!==!1){let a;try{a=Intl.getCanonicalLocales(e)[0]}catch{}if(a&&(r||a.toLowerCase()===e.toLowerCase()))return this.options.lowerCaseLng?a.toLowerCase():a;if(a)return e.toLowerCase()}return this.options.lowerCaseLng||this.options.cleanCode&&!r?e.toLowerCase():e}isSupportedCode(e){if((this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length)return!0;if(!Array.isArray(this.supportedLngs))return this.supportedLngs.includes(e);const r=this.formatLanguageCode(e);return this.supportedLngs.some(a=>this.formatLanguageCode(a)===r)}getBestMatchFromCodes(e){if(!e)return null;let r;return e.forEach(a=>{if(r)return;const n=this.formatLanguageCode(a);(!this.options.supportedLngs||this.isSupportedCode(n))&&(r=n)}),!r&&this.options.supportedLngs&&e.forEach(a=>{if(r)return;const n=this.getScriptPartFromCode(a);if(this.isSupportedCode(n))return r=n;const i=this.getLanguagePartFromCode(a);if(this.isSupportedCode(i))return r=i;r=this.options.supportedLngs.map(o=>this.formatLanguageCode(o)).find(o=>o===i?!0:!o.includes("-")&&!i.includes("-")?!1:!!(o.includes("-")&&!i.includes("-")&&o.slice(0,o.indexOf("-"))===i))}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(e,r){if(!e)return[];if(typeof e=="function"&&(e=e(r)),Q(e)&&(e=[e]),Array.isArray(e))return e;const a=i=>Object.prototype.hasOwnProperty.call(e,i)?e[i]:void 0;if(!r)return a("default")||[];let n=a(r);return n||(n=a(this.getScriptPartFromCode(r))),n||(n=a(this.formatLanguageCode(r))),n||(n=a(this.getLanguagePartFromCode(r))),n||(n=a("default")),n||[]}toResolveHierarchy(e,r){const a=this.options.fallbackLng,n=Array.isArray(a)?a.join("|"):a;n!==this._cachedFallbackLng&&(this.resolveHierarchyCache={},this._cachedFallbackLng=n);const i=r===void 0||r===!1||Q(r),o=r===void 0&&typeof this.options.fallbackLng=="function",s=Q(e)&&i&&!o;let l=null;if(s){let f;r===void 0?f="undefined":r===!1?f="boolean:false":f=`string:${r}`,l=`${e.length}:${e}|${f}`}if(l!==null){const f=this.resolveHierarchyCache[l];if(f!==void 0)return f.slice()}const u=this.getFallbackCodes((r===!1?[]:r)||this.options.fallbackLng||[],e),p=[],c=f=>{f&&(this.isSupportedCode(f)?p.push(f):this.logger.warn(`rejecting language code not found in supportedLngs: ${f}`))};return Q(e)&&(e.includes("-")||e.includes("_"))?(this.options.load!=="languageOnly"&&c(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&c(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&c(this.getLanguagePartFromCode(e))):Q(e)&&c(this.formatLanguageCode(e)),u.forEach(f=>{const h=this.formatLanguageCode(f);p.includes(h)||c(h)}),l!==null?(Object.keys(this.resolveHierarchyCache).length>=1e3&&(this.resolveHierarchyCache={}),this.resolveHierarchyCache[l]=p,p.slice()):p}}const ng={zero:0,one:1,two:2,few:3,many:4,other:5},ig={select:t=>t===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class gS{constructor(e,r={},a=Ca){this.languageUtils=e,this.options=r,this.logger=a.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,r={}){const a=Tn(e==="dev"?"en":e),n=r.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:a,type:n});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let o;try{o=new Intl.PluralRules(a,{type:n})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),ig;if(!e.match(/-|_/))return ig;const l=this.languageUtils.getLanguagePartFromCode(e);o=this.getRule(l,r)}return Object.keys(this.pluralRulesCache).length>=1e3&&(this.pluralRulesCache={}),this.pluralRulesCache[i]=o,o}needsPlural(e,r={}){let a=this.getRule(e,r);return a||(a=this.getRule("dev",r)),a?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,r,a={}){return this.getSuffixes(e,a).map(n=>`${r}${n}`)}getSuffixes(e,r={}){let a=this.getRule(e,r);return a||(a=this.getRule("dev",r)),a?a.resolvedOptions().pluralCategories.sort((n,i)=>ng[n]-ng[i]).map(n=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${n}`):[]}getSuffix(e,r,a={}){const n=this.getRule(e,a);return n?`${this.options.prepend}${a.ordinal?`ordinal${this.options.prepend}`:""}${n.select(r)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",r,a))}}const og=(t,e,r,a=".",n=!0)=>{let i=sS(t,e,r);return i==null&&n&&Q(r)&&(i=Tp(t,r,a),i===void 0&&(i=Tp(e,r,a))),i};class sg{constructor(e={},r=Ca){this.logger=r.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(a=>a),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:r,escapeValue:a,useRawValueToEscape:n,prefix:i,suffix:o,formatSeparator:s,unescapeSuffix:l,unescapePrefix:u,nestingPrefix:p,nestingSuffix:c,nestingOptionsSeparator:f,maxReplaces:h,alwaysFormat:d}=e.interpolation;this.escape=r!==void 0?r:uS,this.escapeValue=a!==void 0?a:!0,this.useRawValueToEscape=n!==void 0?n:!1,this.prefix=i?Ta(i):"{{",this.suffix=o?Ta(o):"}}",this.formatSeparator=s||",",this.unescapePrefix=l?"":u?Ta(u):"-",this.unescapeSuffix=this.unescapePrefix?"":l?Ta(l):"",this.prefixText=i||"{{",this.nestingPrefixText=p||"$t(",this.nestingPrefix=Ta(p||"$t("),this.nestingSuffix=Ta(c||")"),this.nestingOptionsSeparator=f||",",this.maxReplaces=h||1e3,this.alwaysFormat=d!==void 0?d:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(r,a)=>r?.source===a?(r.lastIndex=0,r):new RegExp(a,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']|"[^"]*"|'[^']*'|\\((?:[^()"']|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,r,a,n){let i,o,s;const l=e,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},p=m=>{if(!m.includes(this.formatSeparator)){const k=og(r,u,m,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(k,void 0,a,{...n,...r,interpolationkey:m}):k}const g=m.split(this.formatSeparator),y=g.shift().trim(),b=g.join(this.formatSeparator).trim();return this.format(og(r,u,y,this.options.keySeparator,this.options.ignoreJSONStructure),b,a,{...n,...r,interpolationkey:y})};this.resetRegExp(),!this.escapeValue&&typeof e=="string"&&/\$t\([^)]*\{[^}]*\{\{/.test(e)&&this.logger.warn("nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.");const c=n?.missingInterpolationHandler||this.options.missingInterpolationHandler,f=n?.interpolation?.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;if(Q(e)&&!e.includes(this.prefixText))return e;const h=[{regex:this.regexpUnescape,safeValue:m=>m},{regex:this.regexp,safeValue:m=>this.escapeValue?this.escape(m):m}],d=[];let v=0;return h.forEach(m=>{for(s=0;i=m.regex.exec(e);){const g=i.index-v,y=d.find(([w,_])=>g>=w&&g<_);if(y){m.regex.lastIndex=y[1]+v;continue}const b=i[1].trim();if(o=p(b),o===void 0)if(typeof c=="function"){const w=c(e,i,n);o=Q(w)?w:""}else if(n&&Object.prototype.hasOwnProperty.call(n,b.split(this.formatSeparator)[0].trim()))o="";else if(f){this.logger.debug&&this.logger.once(`${l}\0${i[0]}`,"warn",`missed to pass in variable ${b} for interpolating ${l}`),o=i[0];continue}else this.logger.warn(`missed to pass in variable ${b} for interpolating ${e}`),o="";else!Q(o)&&!this.useRawValueToEscape&&(o=ks(o));const k=ks(m.safeValue(o));if(e=e.slice(0,i.index)+k+e.slice(i.index+i[0].length),f?(m.regex===this.regexpUnescape?d.push([i.index,i.index+k.length]):v+=k.length-i[0].length,m.regex.lastIndex+=k.length,m.regex.lastIndex-=i[0].length):m.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),e}nest(e,r,a={}){let n,i,o;const s=(c,f)=>{const h=this.nestingOptionsSeparator;if(!c.includes(h))return c;const d=c.split(new RegExp(`${Ta(h)}[ ]*{`));let v=`{${d[1]}`;c=d[0],v=this.interpolate(v,o);const m=v.match(/'/g),g=v.match(/"/g);((m?.length??0)%2===0&&!g||(g?.length??0)%2!==0)&&(v=v.replace(/'/g,'"'));try{o=JSON.parse(v),f&&(o={...f,...o})}catch(y){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,y),`${c}${h}${v}`}return o.defaultValue&&o.defaultValue.includes(this.prefix)&&delete o.defaultValue,c};if(Q(e)&&!e.includes(this.nestingPrefixText))return e;const l=new RegExp(this.nestingRegexp);let u="",p=0;for(;n=l.exec(e);){let c=[];o={...a},o=o.replace&&!Q(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;const f=/{.*}/s.test(n[1])?n[1].lastIndexOf("}")+1:n[1].indexOf(this.formatSeparator);if(f!==-1&&(c=n[1].slice(f).split(this.formatSeparator).map(h=>h.trim()).filter(Boolean),n[1]=n[1].slice(0,f)),i=r(s.call(this,n[1].trim(),o),o),i&&n[0]===e&&!Q(i))return i;Q(i)||(i=ks(i)),i||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),i=""),c.length&&(i=c.reduce((h,d)=>this.format(h,d,a.lng,{...a,interpolationkey:n[1].trim()}),i.trim())),u+=e.slice(p,n.index)+ks(i),p=l.lastIndex,this.regexp.lastIndex=0}return p?u+e.slice(p):e}}const mS=t=>{let e=t.toLowerCase().trim();const r={};if(t.includes("(")){const a=t.split("(");e=a[0].toLowerCase().trim();const n=a[1].slice(0,-1);e==="currency"&&!n.includes(":")?r.currency||(r.currency=n.trim()):e==="relativetime"&&!n.includes(":")?r.range||(r.range=n.trim()):n.split(";").forEach(o=>{if(o){const[s,...l]=o.split(":"),u=l.join(":").trim().replace(/^'+|'+$/g,""),p=s.trim();r[p]||(r[p]=u),u==="false"&&(r[p]=!1),u==="true"&&(r[p]=!0),isNaN(u)||(r[p]=parseInt(u,10))}})}return{formatName:e,formatOptions:r}},yS=1e3,lg=t=>{const e=new Map;return(r,a,n)=>{let i=n;n&&n.interpolationkey&&n.formatParams&&n.formatParams[n.interpolationkey]&&n[n.interpolationkey]&&(i={...i,[n.interpolationkey]:void 0});let o;try{o=a+JSON.stringify(i)}catch{return t(Tn(a),n)(r)}let s=e.get(o);return s||(s=t(Tn(a),n),e.size>=yS&&e.delete(e.keys().next().value),e.set(o,s)),s(r)}},bS=t=>(e,r,a)=>t(Tn(r),a)(e);class kS{constructor(e={}){this.logger=Ca.create("formatter"),this.options=e,this.init(e)}init(e,r={interpolation:{}}){e?.logger?.create&&(this.logger=e.logger.create("formatter")),this.formatSeparator=r.interpolation.formatSeparator||",";const a=r.cacheInBuiltFormats?lg:bS;this.formats={number:a((n,i)=>{const o=new Intl.NumberFormat(n,{...i});return s=>o.format(s)}),currency:a((n,i)=>{const o=new Intl.NumberFormat(n,{...i,style:"currency"});return s=>o.format(s)}),datetime:a((n,i)=>{const o=new Intl.DateTimeFormat(n,{...i});return s=>o.format(s)}),relativetime:a((n,i)=>{const o=new Intl.RelativeTimeFormat(n,{...i});return s=>o.format(s,i.range||"day")}),list:a((n,i)=>{const o=new Intl.ListFormat(n,{...i});return s=>o.format(s)})}}add(e,r){this.formats[e.toLowerCase().trim()]=r}addCached(e,r){this.formats[e.toLowerCase().trim()]=lg(r)}format(e,r,a,n={}){if(!r||e==null)return e;const i=r.split(this.formatSeparator),o=[];for(let l=0;l<i.length;l++){let u=i[l];for(;u.indexOf("(")>-1&&!u.includes(")")&&l+1<i.length;)u=`${u}${this.formatSeparator}${i[++l]}`;o.push(u)}return o.reduce((l,u)=>{const{formatName:p,formatOptions:c}=mS(u);if(this.formats[p]){let f=l;try{const h=n?.formatParams?.[n.interpolationkey]||{},d=h.locale||h.lng||n.locale||n.lng||a;f=this.formats[p](l,d,{...c,...n,...h})}catch(h){this.logger.warn(h)}return f}else this.logger.warn(`there was no format function for ${p}`);return l},e)}}const wS=1e3,_S=(t,e)=>{t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)};class xS extends _s{constructor(e,r,a,n={}){super(),this.backend=e,this.store=r,this.services=a,this.languageUtils=a.languageUtils,this.options=n,this.logger=(a.logger||Ca).create("backendConnector"),this.waitingReads=[],this.maxParallelReads=n.maxParallelReads||10,this.readingCalls=0,this.maxRetries=n.maxRetries>=0?n.maxRetries:5,this.retryTimeout=n.retryTimeout>=1?n.retryTimeout:350,this.state={},this.failed=new Set,this.queue=[],this.backend?.init?.(a,n.backend,n),this.callbackApi=Sp(this.backend),this.backend&&this.callbackApi===void 0&&(this.backend.read||this.backend.create)&&this.logger.deprecate("backend: set callbackApi to declare the calling convention (true: read(language, namespace, callback) and create(languages, namespace, key, fallbackValue, callback, options); false: both return a promise or a value); guessing it from the number of parameters is deprecated")}queueLoad(e,r,a,n){const i={},o={},s={},l={};return e.forEach(u=>{let p=!0;r.forEach(c=>{const f=`${u}|${c}`;!a.reload&&this.store.hasResourceBundle(u,c)?this.state[f]=2:!a.reload&&this.state[f]<0||(this.state[f]===1?o[f]===void 0&&(o[f]=!0):(this.state[f]=1,p=!1,o[f]===void 0&&(o[f]=!0),i[f]===void 0&&(i[f]=!0),l[c]===void 0&&(l[c]=!0)))}),p||(s[u]=!0)}),(Object.keys(i).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}loaded(e,r,a){const n=e.split("|"),i=n[0],o=n[1];if(r&&this.emit("failedLoading",i,o,r),!r&&a&&this.store.addResourceBundle(i,o,a,void 0,void 0,{skipCopy:!0}),this.state[e]=r?-1:2,r&&a&&(this.state[e]=0),this.failed.delete(e),r&&(this.failed.add(e),this.failed.size>wS)){const u=this.failed.values().next().value;this.failed.delete(u),this.state[u]<1&&delete this.state[u]}const s={},l=[];if(this.queue.forEach(u=>{if(oS(u.loaded,[i],o),_S(u,e),r&&u.errors.push(r),u.pendingCount===0&&!u.done){Object.keys(u.loaded).forEach(p=>{Object.prototype.hasOwnProperty.call(s,p)||(s[p]={});const c=u.loaded[p];c.length&&c.forEach(f=>{s[p][f]===void 0&&(s[p][f]=!0)})}),u.done=!0;try{u.errors.length?u.callback(u.errors):u.callback()}catch(p){l.push(p)}}}),this.queue=this.queue.filter(u=>!u.done),this.emit("loaded",s),l.length)throw l[0]}read(e,r,a,n=0,i=this.retryTimeout,o){if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:r,fcName:a,tried:n,wait:i,callback:o});return}this.readingCalls++;const s=(u,p)=>{if(this.readingCalls--,this.waitingReads.length>0){const c=this.waitingReads.shift();this.read(c.lng,c.ns,c.fcName,c.tried,c.wait,c.callback)}if(u&&p&&n<this.maxRetries){setTimeout(()=>{this.read(e,r,a,n+1,i*2,o)},i);return}o(u,p)},l=this.backend[a].bind(this.backend);if(this.callbackApi===!1||this.callbackApi===void 0&&l.length===2){let u;try{u=l(e,r)}catch(p){s(p);return}u&&typeof u.then=="function"?u.then(p=>s(null,p),s):s(null,u);return}return l(e,r,s)}prepareLoading(e,r,a={},n){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();Q(e)&&(e=this.languageUtils.toResolveHierarchy(e)),Q(r)&&(r=[r]);const i=this.queueLoad(e,r,a,n);if(!i.toLoad.length)return i.pending.length||n(),null;i.toLoad.forEach(o=>{this.loadOne(o)})}load(e,r,a){this.prepareLoading(e,r,{},a)}reload(e,r,a){this.prepareLoading(e,r,{reload:!0},a)}loadOne(e,r=""){const a=e.split("|"),n=a[0],i=a[1];this.read(n,i,"read",void 0,void 0,(o,s)=>{o&&this.logger.warn(`${r}loading namespace ${i} for language ${n} failed`,o),!o&&s&&this.logger.log(`${r}loaded namespace ${i} for language ${n}`,s),this.loaded(e,o,s)})}saveMissing(e,r,a,n,i,o={},s=()=>{},l=this.newestCloneHasLoadedNamespace||this.services?.utils?.hasLoadedNamespace){if(l&&!l(r)){this.logger.warn(`did not save key "${a}" as the namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(a==null||a==="")){if(this.backend?.create){const u={...o,isUpdate:i},p=this.backend.create.bind(this.backend);if(this.callbackApi===!1||this.callbackApi===void 0&&p.length<6)try{let c;this.callbackApi===!1||p.length===5?c=p(e,r,a,n,u):c=p(e,r,a,n),c&&typeof c.then=="function"?c.then(f=>s(null,f)).catch(s):s(null,c)}catch(c){s(c)}else p(e,r,a,n,s,u)}!e||!e[0]||this.store.addResource(e[0],r,a,n)}}}const Dp=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:!1,fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",enableSelector:!1,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!1,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:t=>{let e={};if(typeof t[1]=="object"&&(e=t[1]),Q(t[1])&&(e.defaultValue=t[1]),Q(t[2])&&(e.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const r=t[3]||t[2];Object.keys(r).forEach(a=>{e[a]=r[a]})}return e},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),ug=t=>(Q(t.ns)&&(t.ns=[t.ns]),Q(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),Q(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&!t.supportedLngs.includes("cimode")&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t),Ss=()=>{},pg=t=>{const e=Dp(),r={...e,...t};return r.interpolation={...e.interpolation,...t.interpolation},typeof r.overloadTranslationOptionHandler!="function"&&(r.overloadTranslationOptionHandler=e.overloadTranslationOptionHandler),r},cg=t=>{const e=[].concat(t.supportedLngs||[],t.preload||[]);e.push(...Object.keys(t.resources||{}));const r=t.fallbackLng;return Q(r)||Array.isArray(r)?e.push(...[].concat(r)):r&&typeof r=="object"&&Object.keys(r).forEach(a=>{a!=="default"&&e.push(a),e.push(...[].concat(r[a]))}),e},Ap=(t,e)=>!Q(e)||aS(e)||t.configuredLngs?.has(e)?!1:(t.logger.once(`lng:${e}`,"warn",`refused the language code '${e.slice(0,64)}' from lng, changeLanguage(), the language detector or loadLanguages(): it is not configured and has other characters than letters, digits, '-', '_', '@' and '.' (or '..', or more than 128). List it in supportedLngs to use it`),!0),PS=t=>{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(r=>{typeof t[r]=="function"&&(t[r]=t[r].bind(t))})};class Fi extends _s{constructor(e={},r){if(super(),this.userOptions=ug(e),this.options=pg(this.userOptions),this.services={postProcessors:Object.create(null)},this.logger=new Ni(null,this.options),this.modules={external:[]},PS(this),r&&!this.isInitialized&&!e.isClone){if(!this.userOptions.initAsync)return this.init(e,r),this;setTimeout(()=>{this.init(e,r)},0)}}init(e={},r){this.isInitializing=!0,typeof e=="function"&&(r=e,e={}),e.defaultNS==null&&e.ns&&(Q(e.ns)?e.defaultNS=e.ns:e.ns.includes("translation")||(e.defaultNS=e.ns[0])),ug(e);const a={...this.userOptions,...e};this.options=pg({...this.options,...e}),a.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=a.keySeparator),a.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=a.nsSeparator),this.options.isClone||(this.configuredLngs=new Set([...this.configuredLngs||[],...cg(a)]));const n=u=>u?typeof u=="function"?new u:u:null;if(!this.options.isClone){this.logger.init(n(this.modules.logger),this.options);const{logger:u}=this;this.pendingWarnings?.forEach(h=>this.logger.warn(h)),this.pendingWarnings=void 0;let p;this.modules.formatter?p=this.modules.formatter:p=kS;const c=new ag(this.options,u);this.store=new tg(this.options.resources,this.options,u);const f=this.services;f.logger=u,f.resourceStore=this.store,f.languageUtils=c,f.pluralResolver=new gS(c,{prepend:this.options.pluralSeparator},u),p&&(f.formatter=n(p),f.formatter.init&&f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new sg(this.options,u),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this),reloadResources:this.reloadResources.bind(this)},f.backendConnector=new xS(n(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",(h,...d)=>{this.emit(h,...d)}),this.modules.languageDetector&&(f.languageDetector=n(this.modules.languageDetector),f.languageDetector.init&&f.languageDetector.init(f,this.options.detection,this.options),f.languageDetector.async&&Sp(f.languageDetector)===void 0&&this.logger.deprecate("languageDetector: set callbackApi to declare how the async detect() answers (true: detect(callback); false: detect() returns a promise); guessing it from the number of parameters is deprecated")),this.modules.i18nFormat&&(f.i18nFormat=n(this.modules.i18nFormat),f.i18nFormat.init&&f.i18nFormat.init(this)),this.translator=new Ps(this.services,this.options),this.translator.on("*",(h,...d)=>{this.emit(h,...d)}),this.modules.external.forEach(h=>{h.init&&h.init(this)})}if(this.format=this.options.interpolation.format,r||(r=Ss),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(u=>{this[u]=(...p)=>this.store[u](...p)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=(...p)=>(this.store[u](...p),this)});const s=Ri(),l=()=>{const u=(p,c)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),s.resolve(c),r(p,c)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initAsync?l():setTimeout(l,0),s}loadResources(e,r=Ss){let a=r;const n=Q(e)?e:this.language;if(typeof e=="function"&&(a=e),!this.options.resources||this.options.partialBundledLanguages){if(n?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return a();const i=[],o=s=>{if(!s||s==="cimode")return;this.services.languageUtils.toResolveHierarchy(s).forEach(u=>{u!=="cimode"&&(i.includes(u)||i.push(u))})};n?o(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>o(l)),this.options.preload?.forEach?.(s=>o(s)),this.services.backendConnector.load(i,this.options.ns,s=>{!s&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),a(s)})}else a(null)}reloadResources(e,r,a){const n=Ri();if(typeof e=="function"&&(a=e,e=void 0),typeof r=="function"&&(a=r,r=void 0),!e){const i=Object.keys(this.services.backendConnector.state).map(o=>o.split("|")[0]);e=[...new Set([...this.languages||[],...i])].filter(o=>o!=="cimode")}return r||(r=this.options.ns),a||(a=Ss),this.services.backendConnector.reload(e,r,i=>{n.resolve(),a(i)}),n}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");const r=a=>{if(this.modules[a]&&this.modules[a]!==e){const n=`use: this ${a} replaces the ${a} passed to an earlier use() call; only one ${a} is used per instance`;this.isInitializing||this.isInitialized?this.logger.warn(n):(this.pendingWarnings=this.pendingWarnings||[]).push(n)}this.modules[a]=e};return e.type==="backend"&&r("backend"),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&r("languageDetector"),e.type==="i18nFormat"&&r("i18nFormat"),e.type==="postProcessor"&&(this.services.postProcessors[e.name]=e),e.type==="formatter"&&r("formatter"),e.type==="3rdParty"&&this.modules.external.push(e),this}hydrate(e,r){return this.options.isClone?this:this.services.resourceStore?(e&&!this.initializedStoreOnce&&(this.services.resourceStore.data=e,Object.values(e).forEach(a=>{Object.keys(a).forEach(n=>{this.options.ns.includes(n)||this.options.ns.push(n)})}),this.initializedStoreOnce=!0,this.isInitialized=!0),r&&!this.initializedLanguageOnce&&(this.changeLanguage(r),this.initializedLanguageOnce=!0),this):(this.logger.warn("hydrate: call init() first, the instance has no resource store yet"),this)}setResolvedLanguage(e){if(!(!e||!this.languages)&&!["cimode","dev"].includes(e)){for(let r=0;r<this.languages.length;r++){const a=this.languages[r];if(!["cimode","dev"].includes(a)&&this.store.hasLanguageSomeTranslations(a)){this.resolvedLanguage=a;break}}!this.resolvedLanguage&&!this.languages.includes(e)&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,r){this.isLanguageChangingTo=e;const a=Ri();this.emit("languageChanging",e);const n=s=>{this.language=s,this.languages=this.services.languageUtils.toResolveHierarchy(s),this.resolvedLanguage=void 0,this.setResolvedLanguage(s)},i=(s,l)=>{l?this.isLanguageChangingTo===e&&(n(l),this.translator.changeLanguage(l),this.isLanguageChangingTo=void 0,this.emit("languageChanged",l),this.logger.log("languageChanged",l)):this.isLanguageChangingTo=void 0,a.resolve((...u)=>this.t(...u)),r&&r(s,(...u)=>this.t(...u))},o=s=>{!e&&!s&&this.services.languageDetector&&(s=[]);const{supportedLngs:l}=this.options;if(s&&!l){const c=[].concat(s).filter(f=>!Ap(this,f));c.length<[].concat(s).length&&(s=c)}const u=Q(s)?s:s&&s[0];let p=this.store.hasLanguageSomeTranslations(u)?u:this.services.languageUtils.getBestMatchFromCodes(Q(s)?[s]:s);l&&Ap(this,p)&&(p=this.services.languageUtils.getBestMatchFromCodes([])),p&&(this.language||n(p),this.translator.language||this.translator.changeLanguage(p),this.services.languageDetector?.cacheUserLanguage?.(p)),this.loadResources(p,c=>{i(c,p)})};if(!e&&this.services.languageDetector&&!this.services.languageDetector.async)o(this.services.languageDetector.detect());else if(!e&&this.services.languageDetector&&this.services.languageDetector.async){const s=Sp(this.services.languageDetector);s===!1||s===void 0&&this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o)}else o(e);return a}getFixedT(e,r,a,n){const i=n?.scopeNs,o=(s,l,...u)=>{let p;typeof l!="object"?p=this.options.overloadTranslationOptionHandler([s,l].concat(u)):p={...l},p.lng=p.lng||o.lng,p.lngs=p.lngs||o.lngs;const c=p.ns!==void 0&&p.ns!==null;p.ns=p.ns||o.ns,p.keyPrefix!==""&&(p.keyPrefix=p.keyPrefix||a||o.keyPrefix);const f={...this.options,...p};Array.isArray(i)&&!c&&(f.ns=i),typeof p.keyPrefix=="function"&&(p.keyPrefix=Cn(p.keyPrefix,f));const h=this.options.keySeparator||".";let d;return p.keyPrefix&&Array.isArray(s)?d=s.map(v=>(typeof v=="function"&&(v=Cn(v,f)),`${p.keyPrefix}${h}${v}`)):(typeof s=="function"&&(s=Cn(s,f)),d=p.keyPrefix?`${p.keyPrefix}${h}${s}`:s),this.t(d,p)};return Q(e)?o.lng=e:o.lngs=e,o.ns=r,o.keyPrefix=a,o}t(...e){return this.translator?this.translator.translate(...e):(this.logger.warn("t: called before init(); returning an empty string"),"")}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e,this.translator?.options&&(this.translator.options.defaultNS=e)}hasLoadedNamespace(e,r={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const a=r.lng||this.resolvedLanguage||this.languages[0],n=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(a.toLowerCase()==="cimode")return!0;const o=(u,p)=>{const c=this.services.backendConnector.state[`${u}|${p}`];return c===-1||c===0||c===2};if(r.precheck){const u=r.precheck(this,o);if(u!==void 0)return u}if(this.hasResourceBundle(a,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages)return!0;const{languageUtils:s}=this.services,l=r.lng?s.isSupportedCode(a)&&s.toResolveHierarchy(a,!1)[0]:a;return!!((!l||o(l,e))&&(!n||o(i,e)))}loadNamespaces(e,r){const a=Ri();return!this.options.ns||!this.services.backendConnector?(r&&r(),Promise.resolve()):(Q(e)&&(e=[e]),e.forEach(n=>{this.options.ns.includes(n)||this.options.ns.push(n)}),this.loadResources(n=>{a.resolve(),r&&r(n)}),a)}loadLanguages(e,r){const a=Ri();Q(e)&&(e=[e]);const n=this.options.preload||[],i=e.filter(o=>!n.includes(o)&&!Ap(this,o)&&this.services.languageUtils.isSupportedCode(o));return i.length?(this.options.preload=n.concat(i),this.loadResources(o=>{a.resolve(),r&&r(o)}),a):(r&&r(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"ltr";try{const n=new Intl.Locale(e);if(n&&n.getTextInfo){const i=n.getTextInfo();if(i&&i.direction)return i.direction}}catch{}const r=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],a=this.services?.languageUtils||new ag(Dp());return e.toLowerCase().indexOf("-latn")>1?"ltr":r.includes(a.getLanguagePartFromCode(e))||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},r){const a=new Fi(e,r);return a.createInstance=Fi.createInstance,a}cloneInstance(e={},r=Ss){const a=e.forkResourceStore;a&&(e={...e},delete e.forkResourceStore);const n={...this.options,preload:!1,...e,isClone:!0},i=new Fi(n);if(i.logger=e.debug!==void 0||e.prefix!==void 0?this.logger.clone(e):this.logger,["store","language"].forEach(s=>{i[s]=this[s]}),i.services={...this.services},i.services.postProcessors=Object.create(this.services.postProcessors),i.services.utils={...i.services.utils,hasLoadedNamespace:i.hasLoadedNamespace.bind(i),reloadResources:i.reloadResources.bind(i)},a){const s=u=>{const p=Array.isArray(u)?[...u]:{...u};return Object.keys(p).forEach(c=>{p[c]&&typeof p[c]=="object"&&(p[c]=s(p[c]))}),p},l=s(this.store.data);i.store=new tg(l,n,this.logger),i.services.resourceStore=i.store}if(e.interpolation){const l={...Dp().interpolation,...this.options.interpolation,...e.interpolation},u={...n,interpolation:l};i.services.interpolator=new sg(u,this.logger)}return i.configuredLngs=new Set([...this.configuredLngs||[],...cg(e)]),i.translator=new Ps(i.services,n),i.translator.on("*",(s,...l)=>{i.emit(s,...l)}),i.init(n,r),i.translator.options=n,i.translator.backendConnector.newestCloneHasLoadedNamespace=i.hasLoadedNamespace.bind(i),i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const gt=Fi.createInstance(),fg=gt.createInstance;gt.dir,gt.init,gt.loadResources,gt.reloadResources,gt.use,gt.changeLanguage,gt.getFixedT,gt.t,gt.exists,gt.setDefaultNamespace,gt.hasLoadedNamespace,gt.loadNamespaces,gt.loadLanguages;var SS={"binding.k1":"上传图片","binding.k2":"仅支持上传图片文件","binding.k3":"图片上传能力未配置","binding.k4":"上传中...","binding.k5":"图片上传失败","binding.k6":"图片上传失败","binding.k7":"上传图片","binding.k8":"支持 jpg/png/gif/bmp/webp/svg 等图片,上传后填入相对路径","binding.k9":"内容","binding.k10":"输入内容,支持 {字段} 表达式","canvas.k11":"页眉","canvas.k12":"页脚","canvas.k13":"+ 元素","canvas.k14":"+ 静态文本","canvas.k15":"+ 取值字段","canvas.k16":"复制","canvas.k17":"剪切","canvas.k18":"粘贴","canvas.k19":"删除","canvas.k20":"置顶","canvas.k21":"上移","canvas.k22":"下移","canvas.k23":"置底","canvas.k24":"粘贴","canvas.k25":"全选","canvas.k26":"取消选择","code.k27":"二维码","controls.k28":"减小","controls.k29":"减小","controls.k30":"增大","controls.k31":"增大","controls.k32":"字段说明","controls.k33":"恢复默认值","controls.k34":"恢复默认值({v0}{v1})","controls.k35":"{v0}(应用到全部选中格)","controls.k36":"颜色选择","cropAnchor.k37":"自定义(保留原值)","cropAnchor.k38":"默认 100","cropAnchor.k39":"示例图","cropAnchor.k40":"原图","elements.k41":"文本","elements.k42":"长文本内容","elements.k43":"图片","flowList.k44":"黄芪 20g","flowList.k45":"当归尾 15g","flowList.k46":"赤芍 10g","flowList.k47":"川芎 10g","flowList.k48":"地龙 10g","flowList.k49":"桃仁 10g","flowList.k50":"红花 10g","fontSelect.k51":"默认","fontSelect.k52":"{v0}(未知)","fontSelect.k53":"使用「{v0}」","formatBar.k54":"实线","formatBar.k55":"虚线","formatBar.k56":"点线","formatBar.k57":"双线","formatBar.k58":"退出格式刷(Esc)","formatBar.k59":"格式刷(表格单元格暂不支持)","formatBar.k60":"格式刷(需选中元素)","formatBar.k61":"格式刷(请仅选中一个源元素)","formatBar.k62":"格式刷:单击刷一次,双击连续刷","formatBar.k63":"{v0}(需选中文本元素)","formatBar.k64":"无边框","formatBar.k65":"所有边框","formatBar.k66":"外侧边框","formatBar.k67":"内部边框","formatBar.k68":"内部边框(仅表格单元格可用)","formatBar.k69":"上边框","formatBar.k70":"下边框","formatBar.k71":"左边框","formatBar.k72":"右边框","formatBar.k73":"{v0}(再点一次取消,线型=无)","formatBar.k74":"粗细","formatBar.k75":"混合","formatBar.k76":"颜色","formatBar.k77":"边框颜色","formatBar.k78":"当前单元格四边规格不一致:留空的项不谎报,点预设/单边时按缺省档(实线 0.75 / #333333)批写","formatBar.k79":"左对齐","formatBar.k80":"水平居中","formatBar.k81":"右对齐","formatBar.k82":"两端对齐(撑满行宽,含末行)","formatBar.k83":"顶端对齐","formatBar.k84":"垂直居中","formatBar.k85":"底端对齐","formatBar.k86":"混合","formatBar.k87":"默认","formatBar.k88":"混合","formatBar.k89":"默认","formatBar.k90":"加粗","formatBar.k91":"下划线","formatBar.k92":"删除线","formatBar.k93":"字体颜色{v0}","formatBar.fontDisabledHint":"(需选中或混选文本元素)","formatBar.k94":"背景色","formatBar.k95":"对齐","formatBar.k96":"对齐(需选中文本元素或单元格)","formatBar.k97":"对齐","formatBar.k98":"边框","formatBar.k99":"边框(需选中元素)","formatBar.k100":"边框","helpModal.k101":"帮助文档","helpModal.k102":"关闭","pageExtras.k103":"上传背景图","pageExtras.k104":"仅支持上传图片文件","pageExtras.k105":"设计背景上传能力未配置","pageExtras.k106":"上传中...","pageExtras.k107":"设计背景上传失败","pageExtras.k108":"设计背景上传失败","pageExtras.k109":"上传背景图","pageExtras.k110":"设计背景","pageExtras.k111":"仅设计器显示,用于套打定位,不会出现在预览和打印中","pageExtras.k112":"旋转({v0}°)","pageExtras.k113":"移除","pageExtras.k114":"自定义","pageExtras.k115":" 横向","pageExtras.k116":" 纵向","pageExtras.k117":"目标纸 {v0}{v1} {v2}×{v3}mm · {v4} 列 × {v5} 行 = 每张 {v6} 格 · 每格 {v7}×{v8}mm","pageExtras.k118":"拼版打印","pageExtras.k119":"把标签按「列 × 行」铺到一张大纸上批量打印","pageExtras.k120":"启用拼版","pageExtras.k121":"连续纸不支持拼版","pageExtras.k122":"目标纸张","pageExtras.k123":"自定义","pageExtras.k124":"目标纸宽高 (mm)","pageExtras.k125":"目标纸方向","pageExtras.k126":"纵向","pageExtras.k127":"横向","pageExtras.k128":"拼版留白 (mm)","pageExtras.k129":"上","pageExtras.k130":"下","pageExtras.k131":"左","pageExtras.k132":"右","pageExtras.k133":"格间距与列数","pageExtras.k134":"横向间距","pageExtras.k135":"纵向间距","pageExtras.k136":"列数","panels.k137":"展开素材台","panels.k138":"元素","panels.k139":"字段","panels.k140":"图层","panels.k141":"素材台","panels.k142":"收起素材台","panels.k143":"元素","panels.k144":"字段","panels.k145":"图层","panels.k146":"拖拽元素到画布","panels.k147":"业务字段","panels.k148":"搜索字段...","panels.k149":"搜索字段","panels.k150":"{v0} ({v1}) · 单击复制字段名 · 拖动中按住 Ctrl(Mac 为 ⌘)切换为插入字段名","panels.k151":"已复制","panels.k152":"暂无字段","panels.k153":"页眉","panels.k154":"页脚","panels.k155":"图层","panels.k156":"置顶","panels.k157":"上移","panels.k158":"下移","panels.k159":"置底","panels.k160":"组合 (Ctrl+G)","panels.k161":"取消组合 (Ctrl+Shift+G)","panels.k162":"页面 {v0}","panels.k163":"{v0}(双击重命名)","panels.k164":"双击重命名","panels.k165":"页面 {v0}","panels.k166":"拼版模板仅允许一个设计页面","panels.k167":"新增页面(在当前页后追加空白页)","panels.k168":"拼版模板仅允许一个设计页面","panels.k169":"复制当前页「{v0}」","panels.k170":"删除当前页「{v0}」","panels.k171":"仅多页面模板可删除页面","panels.k172":"前移「{v0}」","panels.k173":"后移「{v0}」","panels.k174":"横向","panels.k175":"纵向","panels.k176":"缩放 {v0}%","propertyPanel.k177":"全部","propertyPanel.k178":"外侧","propertyPanel.k179":"内部","propertyPanel.k180":"无","propertyPanel.k181":"上","propertyPanel.k182":"右","propertyPanel.k183":"下","propertyPanel.k184":"左","propertyPanel.k185":"位置与尺寸","propertyPanel.k186":"外边距 (mm)","propertyPanel.k187":"上","propertyPanel.k188":"右","propertyPanel.k189":"下","propertyPanel.k190":"左","propertyPanel.k191":"旋转 (°)","propertyPanel.k192":"逆时针 90°","propertyPanel.k193":"逆时针旋转 90 度","propertyPanel.k194":"顺时针 90°","propertyPanel.k195":"顺时针旋转 90 度","propertyPanel.k196":"外观","propertyPanel.k197":"字体","propertyPanel.k198":"默认","propertyPanel.k199":"字体大小","propertyPanel.k200":"字体粗细","propertyPanel.k201":"正常","propertyPanel.k202":"粗体","propertyPanel.k203":"更粗","propertyPanel.k204":"细体","propertyPanel.k205":"对齐","propertyPanel.k206":"左","propertyPanel.k207":"中","propertyPanel.k208":"右","propertyPanel.k209":"两端","propertyPanel.k210":"垂直对齐","propertyPanel.k211":"顶","propertyPanel.k212":"中","propertyPanel.k213":"底","propertyPanel.k214":"颜色","propertyPanel.k215":"字体颜色","propertyPanel.k216":"背景色","propertyPanel.k217":"背景颜色","propertyPanel.k218":"行高","propertyPanel.k219":"字间距","propertyPanel.k220":"文字溢出","propertyPanel.k221":"截断","propertyPanel.k222":"自动缩小","propertyPanel.k223":"自适应行高","propertyPanel.k224":"最小字号 (pt)","propertyPanel.k225":"默认 6","propertyPanel.k226":"首行缩进 (字符)","propertyPanel.k227":"默认 0","propertyPanel.k228":"自动换行","propertyPanel.k229":"保留换行符","propertyPanel.k230":"缩放模式","propertyPanel.k231":"裁剪锚点","propertyPanel.k232":"当前元素不支持外观设置","propertyPanel.k233":"条码设置","propertyPanel.k234":"码制","propertyPanel.k235":"CODE128(通用)","propertyPanel.k236":"EAN13(商品码)","propertyPanel.k237":"打印机分辨率","propertyPanel.k238":"不指定(按条宽渲染)","propertyPanel.k239":"203 dpi(8 点/mm)","propertyPanel.k240":"300 dpi(11.8 点/mm)","propertyPanel.k241":"600 dpi(23.6 点/mm)","propertyPanel.k242":"填写后条宽吸附到整数打印点(消除出纸「条宽忽宽忽窄」):条码先按条宽渲染,可用宽度够就原样落纸,不够才整体等比缩小","propertyPanel.k243":"条宽(倍率)","propertyPanel.k244":"已设置打印机分辨率:条宽会被吸附到最近的整数打印点(DPI 优先于毫米值),元素框放不下时整体等比缩小","propertyPanel.k245":"热敏/针式打印建议 3 及以上:决定条码的落纸尺寸,条越粗出纸后条宽越稳定","propertyPanel.k246":"静区 (模块)","propertyPanel.k247":"默认 10","propertyPanel.k248":"条高 (mm)","propertyPanel.k249":"默认 30 模块","propertyPanel.k250":"显示文本","propertyPanel.k251":"文本字号(相对条高,条高为 30)","propertyPanel.k252":"默认 10","propertyPanel.k253":"纠错级别","propertyPanel.k254":"L(最低,容量大)","propertyPanel.k255":"M(推荐)","propertyPanel.k256":"H(最高)","propertyPanel.k257":"静区 (模块)","propertyPanel.k258":"默认 0","propertyPanel.k259":"自定义设置","propertyPanel.k260":"条码尺寸由「条宽」与「打印机分辨率」结算:宽度足够时按条宽原样落纸,不足时整体等比缩小;拉伸会把条宽变成非整数,故条形码不提供缩放模式,可用「最大宽高」限制上限。要放大条码:先加条宽倍率,再收窄静区(左右白边会换成条宽),必要时关掉显示文本以让出文本区高度","propertyPanel.k261":"缩放模式","propertyPanel.k262":"最大宽度 (mm)","propertyPanel.k263":"默认","propertyPanel.k264":"最大高度 (mm)","propertyPanel.k265":"默认","propertyPanel.k266":"流式列表","propertyPanel.k267":"布局模式","propertyPanel.k268":"固定高度","propertyPanel.k269":"动态分页","propertyPanel.k270":"上内边距 (mm)","propertyPanel.k271":"右内边距 (mm)","propertyPanel.k272":"下内边距 (mm)","propertyPanel.k273":"左内边距 (mm)","propertyPanel.k274":"每行列数","propertyPanel.k275":"行高 (mm)","propertyPanel.k276":"单元横向间距 (mm)","propertyPanel.k277":"内容过长时跨列","propertyPanel.k278":"最多跨几列","propertyPanel.k279":"按当前字号与框宽,{v0} 列偏挤(可放约 {v1} 列)。数值保持不变,出纸按 {v2} 列排。","propertyPanel.k280":"混合","propertyPanel.k281":"边框与背景","propertyPanel.k282":"线型","propertyPanel.k283":"边框宽度","propertyPanel.k284":"混合","propertyPanel.k285":"边框颜色","propertyPanel.k286":"边框颜色","propertyPanel.k287":"背景色","propertyPanel.k288":"背景颜色","propertyPanel.k289":"高级设置","propertyPanel.k290":"锁定","propertyPanel.k291":"每页重复","propertyPanel.k292":"每页固定","propertyPanel.k293":"层级","propertyPanel.k294":"删除元素","propertyPanel.k295":"高级设置说明","propertyPanel.k296":"高级设置说明","propertyPanel.k297":"其他","propertyPanel.k298":"纸张设置","propertyPanel.k299":"纸张尺寸","propertyPanel.k300":"自定义宽高","propertyPanel.k301":"纸宽 (mm)","propertyPanel.k302":"自定义宽高 (mm)","propertyPanel.k303":"纸张方向","propertyPanel.k304":"纵向","propertyPanel.k305":"横向","propertyPanel.k306":"切换即交换纸张长宽(设计稿内容随之铺在该尺寸上)","propertyPanel.k307":"内容旋转角度","propertyPanel.k308":"拼版时每个标签的内容按该角度旋转;90°/270° 时每格占位宽高互换,列数自动铺满新档位上限,行数按互换后重算;0° 为不旋转(默认)","propertyPanel.k309":"整页内容旋转对应角度出纸;90°/270° 时纸张长宽互换以贴合内容,内容不变形不裁切;0° 为不旋转(默认)","propertyPanel.k310":"页面背景色","propertyPanel.k311":"页面背景色","propertyPanel.k312":"页边距 (mm)","propertyPanel.k313":"上","propertyPanel.k314":"下","propertyPanel.k315":"左","propertyPanel.k316":"右","propertyPanel.k317":"页眉/页脚高度 (mm)","propertyPanel.k318":"页眉高度","propertyPanel.k319":"页脚高度","propertyPanel.k320":"展开属性台","propertyPanel.k321":"元素属性","propertyPanel.k322":"页面属性","propertyPanel.k323":"属性台","propertyPanel.k324":"收起属性台","propertyPanel.k325":"元素属性","propertyPanel.k326":"页面属性","propertyPanel.k327":"请在画布中选择一个元素","propertyPanel.k328":"自定义属性","propertySearch.k328":"搜索属性...","propertySearch.k329":"搜索属性","tableProps.k330":"多级表头作为一个结构整体重复,勾选后表头区所有行都会在每页顶部重复","tableProps.k331":"标题行","tableProps.k332":"数据行","tableProps.k333":"小计行(每页小计)","tableProps.k334":"汇总行","tableProps.k335":"CODE128(通用)","tableProps.k336":"EAN13(商品码)","tableProps.k337":"L(最低,容量大)","tableProps.k338":"M(推荐)","tableProps.k339":"H(最高)","tableProps.k340":"截断","tableProps.k341":"自动缩小","tableProps.k342":"自适应行高","tableProps.k343":"多选","tableProps.k344":"行属性","tableProps.k345":"行属性","tableProps.k346":"行类型","tableProps.k347":"行高 (mm)","tableProps.k348":"表头每页重复","tableProps.k349":"表格设置","tableProps.k350":"列表数据源字段","tableProps.k351":"默认字体","tableProps.k352":"默认","tableProps.k353":"默认字号 (pt)","tableProps.k354":"默认","tableProps.k355":"默认文字颜色","tableProps.k356":"默认文字颜色","tableProps.k357":"默认内边距 (mm)","tableProps.k358":"默认","tableProps.k359":"列宽 (mm)","tableProps.k360":"列{v0}","tableProps.k361":"表格总宽不能超过打印范围宽度 {v0}mm,列{v1} 已调整为 {v2}mm","tableProps.k362":"启用分页","tableProps.k363":"参与分页","tableProps.k364":"与下元素同页","tableProps.k365":"分页配置","tableProps.k366":"上","tableProps.k367":"右","tableProps.k368":"下","tableProps.k369":"左","tableProps.k370":"单元格","tableProps.k371":"单元格","tableProps.k372":"多选","tableProps.k373":"仅数据行(明细行)支持按值合并","tableProps.k374":"恢复默认值(跟随表格默认)","tableProps.k375":"单元格","tableProps.k376":"已选 {v0} 格 · 批量设置:不显示单格配置,改动会应用到全部选中格","tableProps.k377":"单元格类型","tableProps.k378":"文本","tableProps.k379":"条形码","tableProps.k380":"二维码","tableProps.k381":"图片","tableProps.k382":"码制","tableProps.k383":"显示文本","tableProps.k384":"条宽(倍率)","tableProps.k385":"已设置打印机分辨率:条宽会被吸附到最近的整数打印点(DPI 优先于毫米值),单元格放不下时整体等比缩小","tableProps.k386":"热敏/针式打印建议 3 及以上:决定条码的落纸尺寸,条越粗出纸后条宽越稳定","tableProps.k387":"静区 (模块)","tableProps.k388":"默认 10","tableProps.k389":"条高 (mm)","tableProps.k390":"默认 30 模块","tableProps.k391":"文本字号(相对条高,条高为 30)","tableProps.k392":"默认 10","tableProps.k393":"打印机分辨率","tableProps.k394":"不指定(按条宽渲染)","tableProps.k395":"203 dpi(8 点/mm)","tableProps.k396":"300 dpi(11.8 点/mm)","tableProps.k397":"600 dpi(23.6 点/mm)","tableProps.k398":"填写后条宽吸附到整数打印点(消除出纸「条宽忽宽忽窄」):条码先按条宽渲染,可用宽度够就原样落纸,不够才整体等比缩小","tableProps.k399":"纠错级别","tableProps.k400":"静区 (模块)","tableProps.k401":"默认 0","tableProps.k402":"单元格条码尺寸由「条宽」与「打印机分辨率」结算:可用宽度足够时按条宽原样落纸,不足时整体等比缩小;拉伸会把条宽变成非整数,故条形码不提供缩放模式,可用「最大宽高」限制上限。要放大条码:先加条宽倍率,再收窄静区(左右白边会换成条宽),必要时关掉显示文本以让出文本区高度","tableProps.k403":"缩放模式","tableProps.k404":"裁剪锚点","tableProps.k405":"最大宽度 (mm)","tableProps.k406":"默认","tableProps.k407":"最大高度 (mm)","tableProps.k408":"默认","tableProps.k409":"内容","tableProps.k410":"多选(输入后覆盖全部选中格)","tableProps.k411":"输入内容,支持 {字段} 表达式","tableProps.k412":"水平对齐","tableProps.k413":"左","tableProps.k414":"中","tableProps.k415":"右","tableProps.k416":"两端","tableProps.k417":"垂直对齐","tableProps.k418":"上","tableProps.k419":"中","tableProps.k420":"下","tableProps.k421":"字体","tableProps.k422":"继承默认","tableProps.k423":"字号 (pt)","tableProps.k424":"默认","tableProps.k425":"加粗","tableProps.k426":"文字颜色","tableProps.k427":"文字颜色","tableProps.k428":"背景色","tableProps.k429":"背景颜色","tableProps.k430":"边框","tableProps.k431":"混合","tableProps.k432":"多选","tableProps.k433":"混合","tableProps.k434":"边框颜色","tableProps.k435":"全部","tableProps.k436":"外侧","tableProps.k437":"内部","tableProps.k438":"无","tableProps.k439":"内边距 (mm)","tableProps.k440":"默认","tableProps.k441":"自动换行","tableProps.k442":"文字溢出","tableProps.k443":"最小字号 (pt)","tableProps.k444":"默认 6","tableProps.k445":"单元格合并","tableProps.k446":"合并单元格","tableProps.k447":"拆分单元格","tableProps.k448":"按值合并","tableProps.k449":"明细相邻行同值时自动纵向合并;跨页时在该页内成段,续页首行重放该值","table.k450":"题","table.k451":"数","table.k452":"小","table.k453":"汇","table.k454":"标题行","table.k455":"数据行","table.k456":"小计行","table.k457":"汇总行","table.k458":"条码","table.k459":"图片","table.k460":"插入后表格总宽 {v0}mm 超过打印范围宽度 {v1}mm,请先缩小列宽","table.k461":"未指定行类型","table.k462":"未选择单元格","table.k463":"仅数据行(明细行)支持按值合并","table.k464":"未选择单元格","table.k465":"行类型仅支持单行设置","table.k466":"未选择单元格","table.k467":"在上方插入行","table.k468":"在下方插入行","table.k469":"删除行","table.k470":"在左侧插入列","table.k471":"在右侧插入列","table.k472":"删除列","table.k473":"合并单元格","table.k474":"拆分单元格","table.k475":"按值合并","table.k476":"行类型","table.k477":"列宽手柄{v0}","toolbarOverflow.k478":"剪贴板","toolbarOverflow.k479":"格式刷","toolbarOverflow.k480":"缩放","toolbarOverflow.k481":"排列 / 视图","toolbarOverflow.k482":"边框","toolbarOverflow.k483":"颜色","toolbarOverflow.k484":"对齐","toolbarOverflow.k485":"文字样式","toolbarOverflow.k486":"字体与字号","toolbarOverflow.k487":"更多","toolbarOverflow.k488":'{v0}<span class="tb-btn-text">更多</span>{v1}',"toolbar.k489":"编辑模板","toolbar.k490":"新建模板","toolbar.k491":"对齐 / 分布","toolbar.k492":"左对齐","toolbar.k493":"右对齐","toolbar.k494":"顶对齐","toolbar.k495":"底对齐","toolbar.k496":"水平居中","toolbar.k497":"垂直居中","toolbar.k498":"水平分布","toolbar.k499":"垂直分布","toolbar.k500":"层级","toolbar.k501":"置顶","toolbar.k502":"上移一层","toolbar.k503":"下移一层","toolbar.k504":"置底","toolbar.k505":"组合","toolbar.k506":"组合 (Ctrl+G)","toolbar.k507":"取消组合 (Ctrl+Shift+G)","toolbar.k508":"标尺","toolbar.k509":"显示/隐藏标尺","toolbar.k510":"网格","toolbar.k511":"显示/隐藏网格背景","toolbar.k512":"虚框","toolbar.k513":"显示/隐藏无边框表格的虚拟虚线","toolbar.k514":"吸附","toolbar.k515":"开启/关闭元素吸附到网格","toolbar.k516":"打印模板设计器","toolbar.k517":"撤销","toolbar.k518":"重做","toolbar.k519":"排列","toolbar.k520":"排列","toolbar.k521":"视图","toolbar.k522":"视图","toolbar.k523":"适应窗口","toolbar.k524":"缩小","toolbar.k525":"放大","toolbar.k526":"复制 (Ctrl+C),需选中元素","toolbar.k527":"复制 (Ctrl+C)","toolbar.k528":"粘贴 (Ctrl+V),需选中元素","toolbar.k529":"粘贴 (Ctrl+V),剪贴板为空","toolbar.k530":"粘贴 (Ctrl+V)","toolbar.k531":"删除 (Delete),需选中元素","toolbar.k532":"删除 (Delete)","toolbar.k533":"帮助文档","toolbar.k534":"预览模板打印效果","toolbar.k535":"预览","toolbar.k536":"保存模板","toolbar.k537":"保存","watermark.k538":"水印","watermark.k539":"水印表达式","watermark.k540":"直接输入文字,或用表达式:{order.no}、{printDate}","watermark.k541":"双击或点「编辑表达式」打开表达式弹框","watermark.k542":"编辑表达式","watermark.k543":"测试值","watermark.k544":"表达式取不到值时预览显示","watermark.k545":"旋转角度","watermark.k546":"颜色","watermark.k547":"水印颜色","watermark.k548":"透明度","watermark.k549":"密度","watermark.k550":"自定义","watermark.k551":"瓦片宽","watermark.k552":"瓦片高","elementDefinitions.k553":"文本","elementDefinitions.k554":"条形码","elementDefinitions.k555":"二维码","elementDefinitions.k556":"图片","elementDefinitions.k557":"表格","elementDefinitions.k558":"长文","elementDefinitions.k559":"流式列表","elementDefinitions.k560":"横线","elementDefinitions.k561":"竖线","elementDefinitions.k562":"矩形","elementDefinitions.k563":"椭圆","elementDefinitions.k564":"页码","elementDefinitions.k565":"registerElementDefinition: type 必须是非空字符串","elementDefinitions.k566":"registerElementDefinition: label 必须是非空字符串","elementDefinitions.k567":"registerElementRenderer: 需要 type 与渲染函数","panels.paperRotated":"(旋转{rot}°)","panels.statusElements":"元素 {count}{selected}","panels.statusSelected":" (选中 {n})"},TS={"expression.tabField":"📁 字段","expression.tabVariable":"🔧 变量","expression.tabFunction":"⚡ 函数","expression.placeholderField":"搜索字段...","expression.placeholderVariable":"搜索变量...","expression.placeholderFunction":"搜索函数...","expression.fnSum":"求和","expression.fnAvg":"平均值","expression.fnCount":"计数","expression.fnMin":"最小值","expression.fnMax":"最大值","expression.fnAdd":"相加","expression.fnSub":"相减","expression.fnMul":"相乘","expression.fnDiv":"相除","expression.fnRound":"四舍五入","expression.fnRoundUp":"进一法","expression.fnRoundDown":"去尾法","expression.fnRoundBank":"四舍六入五成双","expression.fnMoney":"金额格式化","expression.fnDate":"日期格式化","expression.fnUpper":"大写金额","expression.fnIf":"条件判断","expression.varPageIndex":"当前页码","expression.varTotalPages":"总页数","expression.varPrintDate":"打印日期","expression.varPrintTime":"打印时间","expression.groupAggregate":"聚合函数","expression.groupMath":"数值运算","expression.groupFormat":"格式化函数","expression.previewEmpty":"(输入表达式后预览)","expression.previewNoValue":"(无法计算)","expression.previewError":"(表达式错误)","expression.k1":"帮助信息","expression.k2":"输入方式","expression.k3":"双击左侧字段、变量、函数即可插入到表达式输入框中","expression.k4":"双击途中按住 Ctrl(Mac 为 ⌘)切换为插入字段名称,当静态文本用","expression.k5":"静态数据直接输入即可,如:供应商名称","expression.k6":"动态解析字段、变量、函数必须用 {} 包裹","expression.k7":"示例:{SUM(supplier.name)}","expression.k8":"中文 key 直接写 {字段名},如 {姓名}、{supplier.名称}","expression.k9":"注意:只能嵌套一层","expression.k10":"函数使用","expression.k11":"SUM(字段) - 求和","expression.k12":"AVG(字段) - 平均值","expression.k13":"COUNT(字段) - 计数","expression.k14":"IF(条件, 真值, 假值) - 条件判断","expression.k15":"四则运算:{qty * price}、{ADD(qty, 1)}","expression.k16":"修约:ROUND 四舍五入 / ROUNDUP 进一 / ROUNDDOWN 去尾 / ROUNDBANK 四舍六入五成双","expression.k17":"系统变量","expression.k18":"{pageIndex} - 当前页码","expression.k19":"{totalPages} - 总页数","expression.k20":"{printDate} - 打印日期","expression.k21":"示例","expression.k22":"静态文本:供应商名称","expression.k23":"动态字段:{supplier.name}","expression.k24":"函数调用:{SUM(amount)}","expression.k25":'条件判断:{IF(amount>1000, "大单", "小单")}',"expression.k26":"运算并修约:{ROUND(qty * price, 2)}","expression.k27":"暂无字段","expression.k28":"已复制","expression.k29":"类型","expression.k30":"表达式编辑","expression.k31":"双击左侧字段/变量/函数插入,双击途中按住 Ctrl(Mac 为 ⌘)切换为插入字段名,或直接输入静态内容","expression.k32":"预览结果","expression.k33":"编辑表达式","expression.k34":"关闭","expression.k35":"取消","expression.k36":"确定"},CS={"toolbar.save":"保存","toolbar.preview":"预览","diagnostic.expressionUnexpectedEnd":"表达式意外结束","diagnostic.parser.trailingContent":"表达式存在多余内容: {value}","diagnostic.parser.expected":'位置 {pos}: 期望 "{value}"',"diagnostic.parser.memberName":"位置 {pos}: 成员访问需要属性名","diagnostic.parser.invalidNumber":"非法数字: {value}","diagnostic.parser.objectKey":"位置 {pos}: 对象键必须是标识符或字符串","diagnostic.parser.unexpectedToken":"位置 {pos}: 意外的符号: {value}","diagnostic.lexer.unterminatedString":"字符串未闭合","diagnostic.lexer.keyword":"不允许使用关键字: {word}","diagnostic.lexer.forbidden":"禁止访问: {word}","diagnostic.lexer.noFunctionDef":"不允许函数定义","diagnostic.lexer.noAssignment":"不允许赋值","diagnostic.lexer.noMultipleStatements":"不允许多条语句","diagnostic.lexer.invalidChar":"非法字符: {ch}","diagnostic.evaluator.undefinedIdentifier":"未定义的标识符: {name}","diagnostic.evaluator.unknownOperator":"未知运算符: {op}","diagnostic.evaluator.unknownUnaryOperator":"未知一元运算符: {op}","diagnostic.evaluator.nullProperty":"无法访问空值的属性","diagnostic.evaluator.forbiddenProperty":"禁止访问属性: {property}","diagnostic.evaluator.mathNotMethod":"Math.{name} 不是方法","diagnostic.evaluator.noMethodCall":"不支持方法调用,请使用顶级函数","diagnostic.evaluator.notFunction":"{name} 不是函数","diagnostic.evaluator.forbiddenCall":"不允许调用: {name}","diagnostic.template.unclosedBrace":"位置 {pos}: 花括号未闭合","diagnostic.template.emptyExpression":"位置 {pos}: 空表达式","diagnostic.pagination.insufficientHeight":"页面可用高度不足: paper={paper}mm, margins={margins}mm, header={header}mm, footer={footer}mm","diagnostic.pagination.repeatHeaderOverflow":"表格 {id} 的重复表头高度 ({repeat}mm) 超过页面可用高度 ({avail}mm),请减少重复表头行","diagnostic.tiling.continuousUnsupported":"连续纸不支持拼版打印,请将模板纸张改为固定纸张或关闭拼版","diagnostic.tiling.sheetContinuous":"拼版目标纸张不能是连续纸","diagnostic.tiling.sheetSizeInvalid":"拼版自定义纸张宽高必须是大于 0 的数值(mm)","diagnostic.tiling.columnsInvalid":"拼版列数必须是大于 0 的整数","diagnostic.tiling.rotationNote":"(内容旋转 {angle}°,每格 {width}×{height}mm)","diagnostic.tiling.columnsExceedWidth":"拼版列数 {columns} 超出纸面可用宽度:{sheet}mm − 左右留白 {margin}mm = {avail}mm,最多可放 {max} 列;当前 {columns} 列 {label}mm 标签含间距需要 {need}mm{rotation}","diagnostic.tiling.labelHeightExceed":"标签高度 {height}mm 超出纸面可用高度 {avail}mm,拼版每张 0 行;请缩小标签高度或改用横向纸{rotation}","diagnostic.multiTemplate.emptyPages":"多页面模板至少需要一页","diagnostic.multiTemplate.continuous":"多页面模板不支持连续纸({page})","diagnostic.multiTemplate.tiling":"多页面模板不支持标签拼版({page})","diagnostic.multiTemplate.paperMismatch":"多页面模板各页纸张尺寸必须一致({page} {width}×{height}mm 与首页 {firstWidth}×{firstHeight}mm 不同)","diagnostic.multiTemplate.emptyData":"多页面模板至少需要一份数据","diagnostic.multiTemplate.pageLabelNamed":"第 {index} 页「{name}」","diagnostic.multiTemplate.pageLabelPlain":"第 {index} 页","client.cancelled":"连接已取消","client.invalidToken":"配对 token 无效或来源未授权","client.notRunning":"未发现运行中的打印客户端(已探测默认端口区间),请确认客户端已启动","client.notConnected":"打印客户端未连接","client.timeout":"请求 {type} 超时未响应","client.closed":"连接已关闭","client.disconnected":"与客户端的连接中断","client.unregisteredHandler":"桌面端请求未注册处理器","client.internalError":"内部错误","table.atLeastTwoCells":"至少选择 2 个单元格","table.crossRowTypes":"合并区域不能跨越不同类型的行","table.dataVerticalMerge":"数据行将按列表展开,纵向合并请使用单元格属性「按值合并」","table.partialOverlap":"选区与已有合并区域部分重叠","table.lastRow":"不能删除最后一行","table.lastColumn":"不能删除最后一列","table.dataRowExists":"数据行已存在(第 {row} 行),全表最多一行","table.headerContinuous":"标题行必须从表格顶部连续设置","table.subtotalAfterData":"请先设置数据行,小计/汇总行必须位于数据行之后","table.subtotalBeforeData":"小计/汇总行必须位于数据行之后","table.subtotalBeforeSummary":"小计行必须位于汇总行之前","table.summaryAfterSubtotal":"汇总行必须位于小计行之后","table.headerBreak":"取消该标题行会导致标题行不连续,请先调整后续标题行","table.defaultHeader":"列{index}","table.borderHint":"线型 / 宽度 / 颜色是待应用规格:选中格已有的边框规格一致时会填进这三行;四边不一致的项显示「混合」,一条边都没有时显示「无 / 0」。改完点「全部 / 外侧 / 内部」或勾选上、下、左、右某条边才会写入选中的单元格;「无」是清除边框","table.borderHintMulti":"多选时不回显单格边框:线型 / 宽度 / 颜色按当前设置作为批写规格,点「全部 / 外侧 / 内部」或勾选某条边后写入所有选中格;「无」是清除边框","table.borderHintMixed":"当前单元格四边边框规格不一致:带「混合」的项不谎报,未改项在点「全部 / 外侧 / 内部」或勾选单边时按缺省档(实线 0.75pt)写入,改任一项即按该值批写","diagnostic.pagination.overflowTop":"元素 {id} 旋转 {rot}° 后顶部超出页首 {amount}mm,打印将被裁切","diagnostic.pagination.overflowRight":"元素 {id} 超出纸面右侧 {amount}mm,打印将被裁切","diagnostic.pagination.overflowLeft":"元素 {id} 超出纸面左侧 {amount}mm,打印将被裁切","crop.sampleNote":"图片还没设置,上面按内置示例图演示取位;换上真图后档位与可挪量按真图重算","crop.verticalPosition":"垂直位置 (%)","crop.horizontalPosition":"水平位置 (%)","crop.scaleLabel":"放大比例 (%)","crop.originalValue":"已保留模板里的原值;改动下面任一项就整体替换成新的取位","crop.movableBoth":"水平可挪 {x}mm、垂直可挪 {y}mm:0 贴左/贴顶,100 贴右/贴底","crop.movableX":"水平可挪 {x}mm;垂直这一轴已贴满,挪不动","crop.movableY":"垂直可挪 {y}mm;水平这一轴已贴满,挪不动","crop.noRoom":"这个缩放下图与框正好一样大,两轴都没有可挪的余量","crop.top":"顶部","crop.center":"居中","crop.bottom":"底部","crop.left":"左侧","crop.right":"右侧","crop.topLeft":"左上","crop.topCenter":"上中","crop.topRight":"右上","crop.middleLeft":"左中","crop.middleRight":"右中","crop.bottomLeft":"左下","crop.bottomCenter":"下中","crop.bottomRight":"右下","crop.fitContain":"包含(保持比例)","crop.fitCover":"剪裁(等比铺满后裁边)","crop.fitFill":"拉伸填满","crop.fitNone":"原始尺寸","crop.fitScaleDown":"缩小(保持比例)","barcode.recommendOk":"按 {dpi}dpi 推荐条宽倍率 {rec}(每模块 {recDots} 个打印点 = {width}mm,取达到 {min}mm 下限的最小档);当前倍率 {current} 折算为 {curDots} 点 / {curWidth}mm,已达标。这里只提示,不会替你改值","barcode.recommendLow":"按 {dpi}dpi 推荐条宽倍率 {rec}(每模块 {recDots} 个打印点 = {width}mm,取达到 {min}mm 下限的最小档);当前倍率 {current} 只有 {curDots} 点 / {curWidth}mm,低于下限。这里只提示,不会替你改值","code.rotateNote":"条码与二维码仅支持 90° 步进;任意角度需 385dpi 以上打印头","colorPicker.pickColor":"颜色选择","colorPicker.hexValue":"颜色值","colorPicker.customColor":"自定义颜色","colorPicker.hue":"色相","colorPicker.commonColors":"常用颜色","colorPicker.clear":"清除选中的颜色","colorPicker.clearShort":"清除","save.geometryWarningConfirm":`出纸提示:部分内容超出纸面,打印时会被裁切。
|
|
2
|
+
是否接受裁切并继续保存?
|
|
3
|
+
点击“确定”继续保存,点击“取消”返回修改。
|
|
4
|
+
|
|
5
|
+
{warnings}`,"store.tilingSinglePage":"开启拼版后只能有一个设计页面","elementGroup.chart":"图表","service.printData.emptyArray":"批量打印数据必须是非空对象数组","service.printData.tooMany":"批量打印最多支持 {max} 份,当前 {count} 份","service.printData.itemNotObject":"批量打印数据第 {index} 项必须是对象","service.printData.notObjectOrArray":"printData 必须是对象或数组",...SS,...TS},DS={"binding.k1":"Upload image","binding.k2":"Only image files are supported","binding.k3":"Image upload is not configured","binding.k4":"Uploading...","binding.k5":"Image upload failed","binding.k6":"Image upload failed","binding.k7":"Upload image","binding.k8":"Supports jpg/png/gif/bmp/webp/svg images; enter a relative path after upload","binding.k9":"Content","binding.k10":"Enter content; supports {field} expressions","canvas.k11":"Header","canvas.k12":"Footer","canvas.k13":"+ Element","canvas.k14":"+ Static text","canvas.k15":"+ Data field","canvas.k16":"Copy","canvas.k17":"Cut","canvas.k18":"Paste","canvas.k19":"Delete","canvas.k20":"Bring to front","canvas.k21":"Move up","canvas.k22":"Move down","canvas.k23":"Send to back","canvas.k24":"Paste","canvas.k25":"Select all","canvas.k26":"Deselect","code.k27":"QR code","controls.k28":"Decrease","controls.k29":"Decrease","controls.k30":"Increase","controls.k31":"Increase","controls.k32":"Field description","controls.k33":"Restore default","controls.k34":"Restore default ({v0}{v1})","controls.k35":"{v0} (apply to all selected cells)","controls.k36":"Color picker","cropAnchor.k37":"Custom (keep original)","cropAnchor.k38":"Default 100","cropAnchor.k39":"Sample image","cropAnchor.k40":"Original image","elements.k41":"Text","elements.k42":"Long text content","elements.k43":"Image","flowList.k44":"Herb 20g","flowList.k45":"Herb 15g","flowList.k46":"Herb 10g","flowList.k47":"Herb 10g","flowList.k48":"Herb 10g","flowList.k49":"Herb 10g","flowList.k50":"Herb 10g","fontSelect.k51":"Default","fontSelect.k52":"{v0} (unknown)","fontSelect.k53":'Use "{v0}"',"formatBar.k54":"Solid","formatBar.k55":"Dashed","formatBar.k56":"Dotted","formatBar.k57":"Double","formatBar.k58":"Exit format painter (Esc)","formatBar.k59":"Format painter (not supported for table cells)","formatBar.k60":"Format painter (select an element first)","formatBar.k61":"Format painter (select exactly one source element)","formatBar.k62":"Format painter: single-click to paint once, double-click for continuous","formatBar.k63":"{v0} (select a text element)","formatBar.k64":"No border","formatBar.k65":"All borders","formatBar.k66":"Outside borders","formatBar.k67":"Inside borders","formatBar.k68":"Inside borders (table cells only)","formatBar.k69":"Top border","formatBar.k70":"Bottom border","formatBar.k71":"Left border","formatBar.k72":"Right border","formatBar.k73":"{v0} (click again to cancel, style = none)","formatBar.k74":"Width","formatBar.k75":"Mixed","formatBar.k76":"Color","formatBar.k77":"Border color","formatBar.k78":"The four borders are inconsistent: blank items are not misreported; presets/single sides use defaults (solid 0.75 / #333333)","formatBar.k79":"Align left","formatBar.k80":"Align center","formatBar.k81":"Align right","formatBar.k82":"Justify (fill line width, including last line)","formatBar.k83":"Align top","formatBar.k84":"Align middle","formatBar.k85":"Align bottom","formatBar.k86":"Mixed","formatBar.k87":"Default","formatBar.k88":"Mixed","formatBar.k89":"Default","formatBar.k90":"Bold","formatBar.k91":"Underline","formatBar.k92":"Strikethrough","formatBar.k93":"Font color {v0}","formatBar.fontDisabledHint":"(select or mix text elements)","formatBar.k94":"Background color","formatBar.k95":"Align","formatBar.k96":"Align (select a text element or cell)","formatBar.k97":"Align","formatBar.k98":"Border","formatBar.k99":"Border (select an element)","formatBar.k100":"Border","helpModal.k101":"Help","helpModal.k102":"Close","pageExtras.k103":"Upload background image","pageExtras.k104":"Only image files are supported","pageExtras.k105":"Design background upload is not configured","pageExtras.k106":"Uploading...","pageExtras.k107":"Design background upload failed","pageExtras.k108":"Design background upload failed","pageExtras.k109":"Upload background image","pageExtras.k110":"Design background","pageExtras.k111":"Designer only, for alignment; not shown in preview or print","pageExtras.k112":"Rotate ({v0}°)","pageExtras.k113":"Remove","pageExtras.k114":"Custom","pageExtras.k115":" Landscape","pageExtras.k116":" Portrait","pageExtras.k117":"Target sheet {v0}{v1} {v2}×{v3}mm · {v4} cols × {v5} rows = {v6} cells/sheet · each {v7}×{v8}mm","pageExtras.k118":"Tiling print","pageExtras.k119":"Arrange labels in rows × columns on a large sheet for batch printing","pageExtras.k120":"Enable tiling","pageExtras.k121":"Continuous paper does not support tiling","pageExtras.k122":"Target sheet","pageExtras.k123":"Custom","pageExtras.k124":"Target sheet size (mm)","pageExtras.k125":"Target sheet orientation","pageExtras.k126":"Portrait","pageExtras.k127":"Landscape","pageExtras.k128":"Tiling margins (mm)","pageExtras.k129":"Top","pageExtras.k130":"Bottom","pageExtras.k131":"Left","pageExtras.k132":"Right","pageExtras.k133":"Cell spacing & columns","pageExtras.k134":"Horizontal gap","pageExtras.k135":"Vertical gap","pageExtras.k136":"Columns","panels.k137":"Expand asset panel","panels.k138":"Elements","panels.k139":"Fields","panels.k140":"Layers","panels.k141":"Assets","panels.k142":"Collapse asset panel","panels.k143":"Elements","panels.k144":"Fields","panels.k145":"Layers","panels.k146":"Drag elements onto the canvas","panels.k147":"Business fields","panels.k148":"Search fields...","panels.k149":"Search fields","panels.k150":"{v0} ({v1}) · click to copy field name · hold Ctrl (⌘ on Mac) while dragging to insert field name","panels.k151":"Copied","panels.k152":"No fields","panels.k153":"Header","panels.k154":"Footer","panels.k155":"Layers","panels.k156":"Bring to front","panels.k157":"Move up","panels.k158":"Move down","panels.k159":"Send to back","panels.k160":"Group (Ctrl+G)","panels.k161":"Ungroup (Ctrl+Shift+G)","panels.k162":"Page {v0}","panels.k163":"{v0} (double-click to rename)","panels.k164":"Double-click to rename","panels.k165":"Page {v0}","panels.k166":"Tiling templates allow only one design page","panels.k167":"Add page (append a blank page after current)","panels.k168":"Tiling templates allow only one design page","panels.k169":'Duplicate current page "{v0}"',"panels.k170":'Delete current page "{v0}"',"panels.k171":"Only multi-page templates can delete pages","panels.k172":'Move "{v0}" forward',"panels.k173":'Move "{v0}" backward',"panels.k174":"Landscape","panels.k175":"Portrait","panels.k176":"Zoom {v0}%","propertyPanel.k177":"All","propertyPanel.k178":"Outside","propertyPanel.k179":"Inside","propertyPanel.k180":"None","propertyPanel.k181":"Top","propertyPanel.k182":"Right","propertyPanel.k183":"Bottom","propertyPanel.k184":"Left","propertyPanel.k185":"Position & size","propertyPanel.k186":"Margins (mm)","propertyPanel.k187":"Top","propertyPanel.k188":"Right","propertyPanel.k189":"Bottom","propertyPanel.k190":"Left","propertyPanel.k191":"Rotation (°)","propertyPanel.k192":"Counter-clockwise 90°","propertyPanel.k193":"Rotate counter-clockwise 90°","propertyPanel.k194":"Clockwise 90°","propertyPanel.k195":"Rotate clockwise 90°","propertyPanel.k196":"Appearance","propertyPanel.k197":"Font","propertyPanel.k198":"Default","propertyPanel.k199":"Font size","propertyPanel.k200":"Font weight","propertyPanel.k201":"Normal","propertyPanel.k202":"Bold","propertyPanel.k203":"Bolder","propertyPanel.k204":"Lighter","propertyPanel.k205":"Align","propertyPanel.k206":"Left","propertyPanel.k207":"Medium","propertyPanel.k208":"Right","propertyPanel.k209":"Justify","propertyPanel.k210":"Vertical align","propertyPanel.k211":"Top","propertyPanel.k212":"Medium","propertyPanel.k213":"Bottom","propertyPanel.k214":"Color","propertyPanel.k215":"Font color","propertyPanel.k216":"Background color","propertyPanel.k217":"Background color","propertyPanel.k218":"Line height","propertyPanel.k219":"Letter spacing","propertyPanel.k220":"Text overflow","propertyPanel.k221":"Truncate","propertyPanel.k222":"Shrink to fit","propertyPanel.k223":"Auto row height","propertyPanel.k224":"Min font size (pt)","propertyPanel.k225":"Default 6","propertyPanel.k226":"First-line indent (chars)","propertyPanel.k227":"Default 0","propertyPanel.k228":"Word wrap","propertyPanel.k229":"Keep line breaks","propertyPanel.k230":"Scale mode","propertyPanel.k231":"Crop anchor","propertyPanel.k232":"Appearance settings are not supported for this element","propertyPanel.k233":"Barcode settings","propertyPanel.k234":"Symbology","propertyPanel.k235":"CODE128 (general)","propertyPanel.k236":"EAN13 (retail)","propertyPanel.k237":"Printer DPI","propertyPanel.k238":"Unspecified (render by bar width)","propertyPanel.k239":"203 dpi (8 dots/mm)","propertyPanel.k240":"300 dpi (11.8 dots/mm)","propertyPanel.k241":"600 dpi (23.6 dots/mm)","propertyPanel.k242":"When set, bar width snaps to whole print dots: the barcode renders at bar width; if it fits it prints as-is, otherwise it scales down proportionally","propertyPanel.k243":"Bar width (ratio)","propertyPanel.k244":"Printer DPI set: bar width snaps to the nearest whole dot (DPI overrides mm); scales down if it does not fit","propertyPanel.k245":"Use 3+ for thermal/dot-matrix: sets the printed bar size; thicker bars are more stable","propertyPanel.k246":"Quiet zone (modules)","propertyPanel.k247":"Default 10","propertyPanel.k248":"Bar height (mm)","propertyPanel.k249":"Default 30 modules","propertyPanel.k250":"Show text","propertyPanel.k251":"Text size (relative to bar height 30)","propertyPanel.k252":"Default 10","propertyPanel.k253":"Error correction","propertyPanel.k254":"L (lowest, highest capacity)","propertyPanel.k255":"M (recommended)","propertyPanel.k256":"H (highest)","propertyPanel.k257":"Quiet zone (modules)","propertyPanel.k258":"Default 0","propertyPanel.k259":"Custom settings","propertyPanel.k260":"Barcode size is determined by bar width and printer DPI: prints at bar width if it fits, otherwise scales down; stretching would make non-integer bars, so no scale mode—use max width/height as a cap. To enlarge: raise bar width, narrow the quiet zone, or hide text for more room","propertyPanel.k261":"Scale mode","propertyPanel.k262":"Max width (mm)","propertyPanel.k263":"Default","propertyPanel.k264":"Max height (mm)","propertyPanel.k265":"Default","propertyPanel.k266":"Flow list","propertyPanel.k267":"Layout mode","propertyPanel.k268":"Fixed height","propertyPanel.k269":"Dynamic pagination","propertyPanel.k270":"Top padding (mm)","propertyPanel.k271":"Right padding (mm)","propertyPanel.k272":"Bottom padding (mm)","propertyPanel.k273":"Left padding (mm)","propertyPanel.k274":"Columns per row","propertyPanel.k275":"Row height (mm)","propertyPanel.k276":"Cell horizontal gap (mm)","propertyPanel.k277":"Span columns when content is long","propertyPanel.k278":"Max columns to span","propertyPanel.k279":"At the current font size and width, {v0} columns is tight (about {v1} fit). Value unchanged; print uses {v2} columns.","propertyPanel.k280":"Mixed","propertyPanel.k281":"Border & background","propertyPanel.k282":"Line style","propertyPanel.k283":"Border width","propertyPanel.k284":"Mixed","propertyPanel.k285":"Border color","propertyPanel.k286":"Border color","propertyPanel.k287":"Background color","propertyPanel.k288":"Background color","propertyPanel.k289":"Advanced settings","propertyPanel.k290":"Lock","propertyPanel.k291":"Repeat on every page","propertyPanel.k292":"Fix on every page","propertyPanel.k293":"Z-order","propertyPanel.k294":"Delete element","propertyPanel.k295":"Advanced settings notes","propertyPanel.k296":"Advanced settings notes","propertyPanel.k297":"Other","propertyPanel.k298":"Page setup","propertyPanel.k299":"Paper size","propertyPanel.k300":"Custom size","propertyPanel.k301":"Paper width (mm)","propertyPanel.k302":"Custom size (mm)","propertyPanel.k303":"Orientation","propertyPanel.k304":"Portrait","propertyPanel.k305":"Landscape","propertyPanel.k306":"Switching swaps paper width/height (content is laid out on the new size)","propertyPanel.k307":"Content rotation","propertyPanel.k308":"For tiling, each label rotates by this angle; at 90°/270° cell width/height swap and columns refill to the new cap; 0° means no rotation (default)","propertyPanel.k309":"The whole page rotates for printing; at 90°/270° paper width/height swap to fit without distortion or clipping; 0° means no rotation (default)","propertyPanel.k310":"Page background color","propertyPanel.k311":"Page background color","propertyPanel.k312":"Margins (mm)","propertyPanel.k313":"Top","propertyPanel.k314":"Bottom","propertyPanel.k315":"Left","propertyPanel.k316":"Right","propertyPanel.k317":"Header/footer height (mm)","propertyPanel.k318":"Header height","propertyPanel.k319":"Footer height","propertyPanel.k320":"Expand property panel","propertyPanel.k321":"Element properties","propertyPanel.k322":"Page properties","propertyPanel.k323":"Property panel","propertyPanel.k324":"Collapse property panel","propertyPanel.k325":"Element properties","propertyPanel.k326":"Page properties","propertyPanel.k327":"Select an element on the canvas","propertyPanel.k328":"Custom properties","propertySearch.k328":"Search properties...","propertySearch.k329":"Search properties","tableProps.k330":"Multi-level headers repeat as a whole; when checked, all header rows repeat at the top of each page","tableProps.k331":"Header row","tableProps.k332":"Data row","tableProps.k333":"Subtotal row (per page)","tableProps.k334":"Summary row","tableProps.k335":"CODE128 (general)","tableProps.k336":"EAN13 (retail)","tableProps.k337":"L (lowest, highest capacity)","tableProps.k338":"M (recommended)","tableProps.k339":"H (highest)","tableProps.k340":"Truncate","tableProps.k341":"Shrink to fit","tableProps.k342":"Auto row height","tableProps.k343":"Multi-select","tableProps.k344":"Row properties","tableProps.k345":"Row properties","tableProps.k346":"Row type","tableProps.k347":"Row height (mm)","tableProps.k348":"Repeat header on every page","tableProps.k349":"Table settings","tableProps.k350":"List data source field","tableProps.k351":"Default font","tableProps.k352":"Default","tableProps.k353":"Default font size (pt)","tableProps.k354":"Default","tableProps.k355":"Default text color","tableProps.k356":"Default text color","tableProps.k357":"Default padding (mm)","tableProps.k358":"Default","tableProps.k359":"Column width (mm)","tableProps.k360":"Column {v0}","tableProps.k361":"Table width cannot exceed the printable width {v0}mm; column {v1} was adjusted to {v2}mm","tableProps.k362":"Enable pagination","tableProps.k363":"Participate in pagination","tableProps.k364":"Same page as next element","tableProps.k365":"Pagination settings","tableProps.k366":"Top","tableProps.k367":"Right","tableProps.k368":"Bottom","tableProps.k369":"Left","tableProps.k370":"Cell","tableProps.k371":"Cell","tableProps.k372":"Multi-select","tableProps.k373":"Only data rows support merge by value","tableProps.k374":"Restore default (follow table default)","tableProps.k375":"Cell","tableProps.k376":"{v0} cells selected · batch settings: no per-cell display; changes apply to all selected cells","tableProps.k377":"Cell type","tableProps.k378":"Text","tableProps.k379":"Barcode","tableProps.k380":"QR code","tableProps.k381":"Image","tableProps.k382":"Symbology","tableProps.k383":"Show text","tableProps.k384":"Bar width (ratio)","tableProps.k385":"Printer DPI set: bar width snaps to whole dots (DPI overrides mm); scales down if the cell does not fit","tableProps.k386":"Use 3+ for thermal/dot-matrix: sets the printed bar size; thicker bars are more stable","tableProps.k387":"Quiet zone (modules)","tableProps.k388":"Default 10","tableProps.k389":"Bar height (mm)","tableProps.k390":"Default 30 modules","tableProps.k391":"Text size (relative to bar height 30)","tableProps.k392":"Default 10","tableProps.k393":"Printer DPI","tableProps.k394":"Unspecified (render by bar width)","tableProps.k395":"203 dpi (8 dots/mm)","tableProps.k396":"300 dpi (11.8 dots/mm)","tableProps.k397":"600 dpi (23.6 dots/mm)","tableProps.k398":"When set, bar width snaps to whole print dots: the barcode renders at bar width; if it fits it prints as-is, otherwise it scales down proportionally","tableProps.k399":"Error correction","tableProps.k400":"Quiet zone (modules)","tableProps.k401":"Default 0","tableProps.k402":"Cell barcode size is set by bar width and printer DPI: prints at bar width if it fits, otherwise scales down; no scale mode (would make non-integer bars)—use max width/height as a cap. To enlarge: raise bar width, narrow the quiet zone, or hide text","tableProps.k403":"Scale mode","tableProps.k404":"Crop anchor","tableProps.k405":"Max width (mm)","tableProps.k406":"Default","tableProps.k407":"Max height (mm)","tableProps.k408":"Default","tableProps.k409":"Content","tableProps.k410":"Multi-select (entry overrides all selected cells)","tableProps.k411":"Enter content; supports {field} expressions","tableProps.k412":"Horizontal align","tableProps.k413":"Left","tableProps.k414":"Medium","tableProps.k415":"Right","tableProps.k416":"Justify","tableProps.k417":"Vertical align","tableProps.k418":"Top","tableProps.k419":"Medium","tableProps.k420":"Bottom","tableProps.k421":"Font","tableProps.k422":"Inherit default","tableProps.k423":"Font size (pt)","tableProps.k424":"Default","tableProps.k425":"Bold","tableProps.k426":"Text color","tableProps.k427":"Text color","tableProps.k428":"Background color","tableProps.k429":"Background color","tableProps.k430":"Border","tableProps.k431":"Mixed","tableProps.k432":"Multi-select","tableProps.k433":"Mixed","tableProps.k434":"Border color","tableProps.k435":"All","tableProps.k436":"Outside","tableProps.k437":"Inside","tableProps.k438":"None","tableProps.k439":"Padding (mm)","tableProps.k440":"Default","tableProps.k441":"Word wrap","tableProps.k442":"Text overflow","tableProps.k443":"Min font size (pt)","tableProps.k444":"Default 6","tableProps.k445":"Merge cells","tableProps.k446":"Merge cells","tableProps.k447":"Split cells","tableProps.k448":"Merge by value","tableProps.k449":"Adjacent data rows with equal values merge vertically; across pages they segment per page and replay the value on continuation pages","table.k450":"H","table.k451":"D","table.k452":"S","table.k453":"T","table.k454":"Header row","table.k455":"Data row","table.k456":"Subtotal row","table.k457":"Summary row","table.k458":"Barcode","table.k459":"Image","table.k460":"After insert, table width {v0}mm exceeds printable width {v1}mm; reduce column widths first","table.k461":"Unspecified row type","table.k462":"No cell selected","table.k463":"Only data rows support merge by value","table.k464":"No cell selected","table.k465":"Row type supports single-row setting only","table.k466":"No cell selected","table.k467":"Insert row above","table.k468":"Insert row below","table.k469":"Delete row","table.k470":"Insert column left","table.k471":"Insert column right","table.k472":"Delete column","table.k473":"Merge cells","table.k474":"Split cells","table.k475":"Merge by value","table.k476":"Row type","table.k477":"Column width handle {v0}","toolbarOverflow.k478":"Clipboard","toolbarOverflow.k479":"Format painter","toolbarOverflow.k480":"Zoom","toolbarOverflow.k481":"Arrange / View","toolbarOverflow.k482":"Border","toolbarOverflow.k483":"Color","toolbarOverflow.k484":"Align","toolbarOverflow.k485":"Text style","toolbarOverflow.k486":"Font & size","toolbarOverflow.k487":"More","toolbarOverflow.k488":'{v0}<span class="tb-btn-text">More</span>{v1}',"toolbar.k489":"Edit template","toolbar.k490":"New template","toolbar.k491":"Align / Distribute","toolbar.k492":"Align left","toolbar.k493":"Align right","toolbar.k494":"Align top","toolbar.k495":"Align bottom","toolbar.k496":"Align center","toolbar.k497":"Align middle","toolbar.k498":"Distribute horizontally","toolbar.k499":"Distribute vertically","toolbar.k500":"Z-order","toolbar.k501":"Bring to front","toolbar.k502":"Bring forward","toolbar.k503":"Send backward","toolbar.k504":"Send to back","toolbar.k505":"Group","toolbar.k506":"Group (Ctrl+G)","toolbar.k507":"Ungroup (Ctrl+Shift+G)","toolbar.k508":"Ruler","toolbar.k509":"Show/hide ruler","toolbar.k510":"Grid","toolbar.k511":"Show/hide grid background","toolbar.k512":"Dashed frame","toolbar.k513":"Show/hide dashed guides for borderless tables","toolbar.k514":"Snap","toolbar.k515":"Toggle element snapping to grid","toolbar.k516":"Print Template Designer","toolbar.k517":"Undo","toolbar.k518":"Redo","toolbar.k519":"Arrange","toolbar.k520":"Arrange","toolbar.k521":"View","toolbar.k522":"View","toolbar.k523":"Fit to window","toolbar.k524":"Zoom out","toolbar.k525":"Zoom in","toolbar.k526":"Copy (Ctrl+C), select an element first","toolbar.k527":"Copy (Ctrl+C)","toolbar.k528":"Paste (Ctrl+V), select an element first","toolbar.k529":"Paste (Ctrl+V), clipboard is empty","toolbar.k530":"Paste (Ctrl+V)","toolbar.k531":"Delete (Delete), select an element first","toolbar.k532":"Delete (Delete)","toolbar.k533":"Help","toolbar.k534":"Preview print result","toolbar.k535":"Preview","toolbar.k536":"Save template","toolbar.k537":"Save","watermark.k538":"Watermark","watermark.k539":"Watermark expression","watermark.k540":"Enter text directly, or an expression: {order.no}, {printDate}","watermark.k541":'Double-click or click "Edit expression" to open the expression editor',"watermark.k542":"Edit expression","watermark.k543":"Test value","watermark.k544":"Shown in preview when the expression has no value","watermark.k545":"Rotation angle","watermark.k546":"Color","watermark.k547":"Watermark color","watermark.k548":"Opacity","watermark.k549":"Density","watermark.k550":"Custom","watermark.k551":"Tile width","watermark.k552":"Tile height","elementDefinitions.k553":"Text","elementDefinitions.k554":"Barcode","elementDefinitions.k555":"QR code","elementDefinitions.k556":"Image","elementDefinitions.k557":"Table","elementDefinitions.k558":"Long text","elementDefinitions.k559":"Flow list","elementDefinitions.k560":"Horizontal line","elementDefinitions.k561":"Vertical line","elementDefinitions.k562":"Rectangle","elementDefinitions.k563":"Ellipse","elementDefinitions.k564":"Page number","elementDefinitions.k565":"registerElementDefinition: type must be a non-empty string","elementDefinitions.k566":"registerElementDefinition: label must be a non-empty string","elementDefinitions.k567":"registerElementRenderer: requires type and render function","panels.paperRotated":" (rotated {rot}°)","panels.statusElements":"{count} elements{selected}","panels.statusSelected":" ({n} selected)"},AS={"expression.tabField":"Fields","expression.tabVariable":"Variables","expression.tabFunction":"Functions","expression.placeholderField":"Search fields...","expression.placeholderVariable":"Search variables...","expression.placeholderFunction":"Search functions...","expression.fnSum":"Sum","expression.fnAvg":"Average","expression.fnCount":"Count","expression.fnMin":"Minimum","expression.fnMax":"Maximum","expression.fnAdd":"Add","expression.fnSub":"Subtract","expression.fnMul":"Multiply","expression.fnDiv":"Divide","expression.fnRound":"Round","expression.fnRoundUp":"Round up","expression.fnRoundDown":"Round down","expression.fnRoundBank":"Banker's rounding","expression.fnMoney":"Format amount","expression.fnDate":"Format date","expression.fnUpper":"Amount in words","expression.fnIf":"Conditional","expression.varPageIndex":"Current page","expression.varTotalPages":"Total pages","expression.varPrintDate":"Print date","expression.varPrintTime":"Print time","expression.groupAggregate":"Aggregate functions","expression.groupMath":"Math","expression.groupFormat":"Formatting","expression.previewEmpty":"(Preview after entering an expression)","expression.previewNoValue":"(Cannot compute)","expression.previewError":"(Expression error)","expression.k1":"Type","expression.k2":"How to input","expression.k3":"Double-click a field, variable or function on the left to insert it","expression.k4":"Hold Ctrl (⌘ on Mac) while double-clicking to insert the field name as static text","expression.k5":"Enter static text directly, e.g. Supplier name","expression.k6":"Dynamic fields, variables and functions must be wrapped in {}","expression.k7":"Example: {SUM(supplier.name)}","expression.k8":"Chinese keys can be written directly as {field}, e.g. {name}","expression.k9":"Note: only one level of nesting","expression.k10":"Functions","expression.k11":"SUM(field) - sum","expression.k12":"AVG(field) - average","expression.k13":"COUNT(field) - count","expression.k14":"IF(cond, true, false) - conditional","expression.k15":"Arithmetic: {qty * price}, {ADD(qty, 1)}","expression.k16":"Rounding: ROUND half-up / ROUNDUP up / ROUNDDOWN down / ROUNDBANK bankers","expression.k17":"System variables","expression.k18":"{pageIndex} - current page","expression.k19":"{totalPages} - total pages","expression.k20":"{printDate} - print date","expression.k21":"Examples","expression.k22":"Static text: Supplier name","expression.k23":"Dynamic field: {supplier.name}","expression.k24":"Function call: {SUM(amount)}","expression.k25":'Conditional: {IF(amount>1000, "Large", "Small")}',"expression.k26":"Arithmetic & rounding: {ROUND(qty * price, 2)}","expression.k27":"No fields","expression.k28":"Copied","expression.k29":"Type","expression.k30":"Help info","expression.k31":"How to input","expression.k32":"Preview result","expression.k33":"Edit expression","expression.k34":"Close","expression.k35":"Cancel","expression.k36":"Confirm"},LS={"toolbar.save":"Save","toolbar.preview":"Preview","diagnostic.expressionUnexpectedEnd":"Unexpected end of expression","diagnostic.parser.trailingContent":"Unexpected content after expression: {value}","diagnostic.parser.expected":'Position {pos}: expected "{value}"',"diagnostic.parser.memberName":"Position {pos}: member access requires a property name","diagnostic.parser.invalidNumber":"Invalid number: {value}","diagnostic.parser.objectKey":"Position {pos}: object keys must be identifiers or strings","diagnostic.parser.unexpectedToken":"Position {pos}: unexpected token: {value}","diagnostic.lexer.unterminatedString":"Unterminated string","diagnostic.lexer.keyword":"Keywords are not allowed: {word}","diagnostic.lexer.forbidden":"Access denied: {word}","diagnostic.lexer.noFunctionDef":"Function definitions are not allowed","diagnostic.lexer.noAssignment":"Assignment is not allowed","diagnostic.lexer.noMultipleStatements":"Multiple statements are not allowed","diagnostic.lexer.invalidChar":"Invalid character: {ch}","diagnostic.evaluator.undefinedIdentifier":"Undefined identifier: {name}","diagnostic.evaluator.unknownOperator":"Unknown operator: {op}","diagnostic.evaluator.unknownUnaryOperator":"Unknown unary operator: {op}","diagnostic.evaluator.nullProperty":"Cannot read a property of null","diagnostic.evaluator.forbiddenProperty":"Property access denied: {property}","diagnostic.evaluator.mathNotMethod":"Math.{name} is not a method","diagnostic.evaluator.noMethodCall":"Method calls are not supported; use a top-level function","diagnostic.evaluator.notFunction":"{name} is not a function","diagnostic.evaluator.forbiddenCall":"Call not allowed: {name}","diagnostic.template.unclosedBrace":"Position {pos}: unclosed brace","diagnostic.template.emptyExpression":"Position {pos}: empty expression","diagnostic.pagination.insufficientHeight":"Insufficient page height: paper={paper}mm, margins={margins}mm, header={header}mm, footer={footer}mm","diagnostic.pagination.repeatHeaderOverflow":"Table {id}: repeated header height ({repeat}mm) exceeds available page height ({avail}mm); reduce repeated header rows","diagnostic.tiling.continuousUnsupported":"Continuous paper does not support tiling; use fixed paper or disable tiling","diagnostic.tiling.sheetContinuous":"The tiling target sheet cannot be continuous paper","diagnostic.tiling.sheetSizeInvalid":"Custom sheet width and height must be numbers greater than 0 (mm)","diagnostic.tiling.columnsInvalid":"Tiling columns must be an integer greater than 0","diagnostic.tiling.rotationNote":" (content rotated {angle}°, each cell {width}×{height}mm)","diagnostic.tiling.columnsExceedWidth":"Tiling columns {columns} exceed available sheet width: {sheet}mm − side margins {margin}mm = {avail}mm, at most {max} columns; current {columns} columns of {label}mm labels with spacing need {need}mm{rotation}","diagnostic.tiling.labelHeightExceed":"Label height {height}mm exceeds available sheet height {avail}mm, 0 rows per sheet; reduce label height or use landscape paper{rotation}","diagnostic.multiTemplate.emptyPages":"A multi-page template needs at least one page","diagnostic.multiTemplate.continuous":"Multi-page templates do not support continuous paper ({page})","diagnostic.multiTemplate.tiling":"Multi-page templates do not support label tiling ({page})","diagnostic.multiTemplate.paperMismatch":"All pages must use the same paper size ({page} {width}×{height}mm differs from first page {firstWidth}×{firstHeight}mm)","diagnostic.multiTemplate.emptyData":"A multi-page template needs at least one data record","diagnostic.multiTemplate.pageLabelNamed":'Page {index} "{name}"',"diagnostic.multiTemplate.pageLabelPlain":"Page {index}","client.cancelled":"Connection cancelled","client.invalidToken":"Invalid pairing token or unauthorized source","client.notRunning":"No running print client found (default port range probed). Please start the client","client.notConnected":"Print client is not connected","client.timeout":"Request {type} timed out","client.closed":"Connection closed","client.disconnected":"Connection to the client was lost","client.unregisteredHandler":"Desktop request handler is not registered","client.internalError":"Internal error","table.atLeastTwoCells":"Select at least 2 cells","table.crossRowTypes":"A merged region cannot span rows of different types","table.dataVerticalMerge":'Data rows expand into lists; use the cell option "Merge by value" for vertical merging',"table.partialOverlap":"Selection partially overlaps an existing merged region","table.lastRow":"Cannot delete the last row","table.lastColumn":"Cannot delete the last column","table.dataRowExists":"A data row already exists (row {row}); only one is allowed","table.headerContinuous":"Header rows must be set continuously from the top of the table","table.subtotalAfterData":"Set the data row first; subtotal/summary rows must come after it","table.subtotalBeforeData":"Subtotal/summary rows must come after the data row","table.subtotalBeforeSummary":"Subtotal rows must come before summary rows","table.summaryAfterSubtotal":"Summary rows must come after subtotal rows","table.headerBreak":"Unsetting this header row would break header continuity; adjust following rows first","table.defaultHeader":"Column {index}","table.borderHint":'Line style / width / color are pending specifications: consistent existing borders are filled in; mixed items show "Mixed", and a missing border shows "None / 0". Click All / Outside / Inside or check a side to apply; "None" clears borders',"table.borderHintMulti":'Multi-selection does not echo single-cell borders: line style / width / color act as batch settings; click All / Outside / Inside or check a side to apply to all selected cells; "None" clears borders',"table.borderHintMixed":'The four borders are inconsistent: items marked "Mixed" are not misreported; unchanged items use the default (solid 0.75pt) when you click All / Outside / Inside or check a single side',"diagnostic.pagination.overflowTop":"Element {id} rotated {rot}° exceeds page top by {amount}mm and will be clipped when printing","diagnostic.pagination.overflowRight":"Element {id} exceeds right page edge by {amount}mm and will be clipped when printing","diagnostic.pagination.overflowLeft":"Element {id} exceeds left page edge by {amount}mm and will be clipped when printing","crop.sampleNote":"No image set; the built-in sample shows positioning. Ranges are recalculated with a real image.","crop.verticalPosition":"Vertical position (%)","crop.horizontalPosition":"Horizontal position (%)","crop.scaleLabel":"Scale (%)","crop.originalValue":"Original template value kept; changing any field below replaces it with a new position","crop.movableBoth":"Horizontal range {x}mm, vertical range {y}mm: 0 = left/top, 100 = right/bottom","crop.movableX":"Horizontal range {x}mm; the vertical axis is already full","crop.movableY":"Vertical range {y}mm; the horizontal axis is already full","crop.noRoom":"At this scale the image exactly fits the box; neither axis has room to move","crop.top":"Top","crop.center":"Center","crop.bottom":"Bottom","crop.left":"Left","crop.right":"Right","crop.topLeft":"Top left","crop.topCenter":"Top center","crop.topRight":"Top right","crop.middleLeft":"Middle left","crop.middleRight":"Middle right","crop.bottomLeft":"Bottom left","crop.bottomCenter":"Bottom center","crop.bottomRight":"Bottom right","crop.fitContain":"Contain (keep ratio)","crop.fitCover":"Cover (fill and crop edges)","crop.fitFill":"Stretch to fill","crop.fitNone":"Original size","crop.fitScaleDown":"Scale down (keep ratio)","barcode.recommendOk":"At {dpi}dpi the recommended bar-width ratio is {rec} ({recDots} print dots per module = {width}mm, the smallest step reaching the {min}mm minimum); current ratio {current} works out to {curDots} dots / {curWidth}mm, which meets the minimum. Informational only — your value is not changed.","barcode.recommendLow":"At {dpi}dpi the recommended bar-width ratio is {rec} ({recDots} print dots per module = {width}mm, the smallest step reaching the {min}mm minimum); current ratio {current} works out to {curDots} dots / {curWidth}mm, which is below the minimum. Informational only — your value is not changed.","code.rotateNote":"Barcodes and QR codes support 90° steps only; arbitrary angles require a 385dpi+ print head","colorPicker.pickColor":"Pick a color","colorPicker.hexValue":"Color value","colorPicker.customColor":"Custom color","colorPicker.hue":"Hue","colorPicker.commonColors":"Common colors","colorPicker.clear":"Clear the selected color","colorPicker.clearShort":"Clear","save.geometryWarningConfirm":`Print warning: some content extends beyond the paper and will be clipped.
|
|
6
|
+
Accept clipping and continue saving?
|
|
7
|
+
Click OK to save, Cancel to go back and edit.
|
|
8
|
+
|
|
9
|
+
{warnings}`,"store.tilingSinglePage":"Tiling allows only one design page","elementGroup.chart":"Chart","service.printData.emptyArray":"Batch print data must be a non-empty array of objects","service.printData.tooMany":"Batch printing supports at most {max} copies, got {count}","service.printData.itemNotObject":"Batch print data item {index} must be an object","service.printData.notObjectOrArray":"printData must be an object or array",...DS,...AS},MS={"binding.k1":"อัปโหลดรูปภาพ","binding.k2":"รองรับเฉพาะไฟล์รูปภาพ","binding.k3":"ไม่ได้ตั้งค่าการอัปโหลดรูปภาพ","binding.k4":"กำลังอัปโหลด...","binding.k5":"อัปโหลดรูปภาพล้มเหลว","binding.k6":"อัปโหลดรูปภาพล้มเหลว","binding.k7":"อัปโหลดรูปภาพ","binding.k8":"รองรับรูปภาพ jpg/png/gif/bmp/webp/svg; ป้อนเส้นทางสัมพัทธ์หลังอัปโหลด","binding.k9":"เนื้อหา","binding.k10":"ป้อนเนื้อหา รองรับนิพจน์ {field}","canvas.k11":"ส่วนหัว","canvas.k12":"ส่วนท้าย","canvas.k13":"+ องค์ประกอบ","canvas.k14":"+ ข้อความคงที่","canvas.k15":"+ ฟิลด์ข้อมูล","canvas.k16":"คัดลอก","canvas.k17":"ตัด","canvas.k18":"วาง","canvas.k19":"ลบ","canvas.k20":"นำไปด้านหน้าสุด","canvas.k21":"เลื่อนขึ้น","canvas.k22":"เลื่อนลง","canvas.k23":"ส่งไปด้านหลังสุด","canvas.k24":"วาง","canvas.k25":"เลือกทั้งหมด","canvas.k26":"ยกเลิกการเลือก","code.k27":"คิวอาร์โค้ด","controls.k28":"ลด","controls.k29":"ลด","controls.k30":"เพิ่ม","controls.k31":"เพิ่ม","controls.k32":"คำอธิบายฟิลด์","controls.k33":"คืนค่าเริ่มต้น","controls.k34":"คืนค่าเริ่มต้น ({v0}{v1})","controls.k35":"{v0} (ใช้กับเซลล์ที่เลือกทั้งหมด)","controls.k36":"ตัวเลือกสี","cropAnchor.k37":"กำหนดเอง (คงเดิม)","cropAnchor.k38":"ค่าเริ่มต้น 100","cropAnchor.k39":"รูปตัวอย่าง","cropAnchor.k40":"รูปต้นฉบับ","elements.k41":"ข้อความ","elements.k42":"เนื้อหาข้อความยาว","elements.k43":"รูปภาพ","flowList.k44":"สมุนไพร 20g","flowList.k45":"สมุนไพร 15g","flowList.k46":"สมุนไพร 10g","flowList.k47":"สมุนไพร 10g","flowList.k48":"สมุนไพร 10g","flowList.k49":"สมุนไพร 10g","flowList.k50":"สมุนไพร 10g","fontSelect.k51":"ค่าเริ่มต้น","fontSelect.k52":"{v0} (ไม่ทราบ)","fontSelect.k53":'ใช้ "{v0}"',"formatBar.k54":"เส้นทึบ","formatBar.k55":"เส้นประ","formatBar.k56":"เส้นจุด","formatBar.k57":"เส้นคู่","formatBar.k58":"ออกจากเครื่องมือถ่ายรูปแบบ (Esc)","formatBar.k59":"เครื่องมือถ่ายรูปแบบ (ไม่รองรับเซลล์ตาราง)","formatBar.k60":"เครื่องมือถ่ายรูปแบบ (เลือกองค์ประกอบก่อน)","formatBar.k61":"เครื่องมือถ่ายรูปแบบ (เลือกองค์ประกอบต้นทางเพียงหนึ่ง)","formatBar.k62":"เครื่องมือถ่ายรูปแบบ: คลิกครั้งเดียวเพื่อถ่ายครั้งเดียว คลิกสองครั้งเพื่อถ่ายต่อเนื่อง","formatBar.k63":"{v0} (เลือกองค์ประกอบข้อความ)","formatBar.k64":"ไม่มีเส้นขอบ","formatBar.k65":"เส้นขอบทั้งหมด","formatBar.k66":"เส้นขอบด้านนอก","formatBar.k67":"เส้นขอบด้านใน","formatBar.k68":"เส้นขอบด้านใน (เฉพาะเซลล์ตาราง)","formatBar.k69":"เส้นขอบบน","formatBar.k70":"เส้นขอบล่าง","formatBar.k71":"เส้นขอบซ้าย","formatBar.k72":"เส้นขอบขวา","formatBar.k73":"{v0} (คลิกอีกครั้งเพื่อยกเลิก, รูปแบบ = ไม่มี)","formatBar.k74":"ความกว้าง","formatBar.k75":"ผสม","formatBar.k76":"สี","formatBar.k77":"สีเส้นขอบ","formatBar.k78":"เส้นขอบทั้งสี่ด้านไม่สอดคล้องกัน: รายการที่เว้นไว้ไม่ได้รายงานค่าผิด; ค่าที่ตั้งไว้ล่วงหน้า/ด้านเดียวใช้ค่าเริ่มต้น (เส้นทึบ 0.75 / #333333)","formatBar.k79":"จัดชิดซ้าย","formatBar.k80":"จัดกึ่งกลาง","formatBar.k81":"จัดชิดขวา","formatBar.k82":"จัดชอบแนว (เติมความกว้างบรรทัด รวมบรรทัดสุดท้าย)","formatBar.k83":"จัดชิดบน","formatBar.k84":"จัดกึ่งกลางแนวตั้ง","formatBar.k85":"จัดชิดล่าง","formatBar.k86":"ผสม","formatBar.k87":"ค่าเริ่มต้น","formatBar.k88":"ผสม","formatBar.k89":"ค่าเริ่มต้น","formatBar.k90":"ตัวหนา","formatBar.k91":"ขีดเส้นใต้","formatBar.k92":"ขีดฆ่า","formatBar.k93":"สีตัวอักษร {v0}","formatBar.fontDisabledHint":"(เลือกหรือผสมองค์ประกอบข้อความ)","formatBar.k94":"สีพื้นหลัง","formatBar.k95":"การจัดตำแหน่ง","formatBar.k96":"การจัดตำแหน่ง (เลือกองค์ประกอบข้อความหรือเซลล์)","formatBar.k97":"การจัดตำแหน่ง","formatBar.k98":"เส้นขอบ","formatBar.k99":"เส้นขอบ (เลือกองค์ประกอบ)","formatBar.k100":"เส้นขอบ","helpModal.k101":"ช่วยเหลือ","helpModal.k102":"ปิด","pageExtras.k103":"อัปโหลดภาพพื้นหลัง","pageExtras.k104":"รองรับเฉพาะไฟล์รูปภาพ","pageExtras.k105":"ไม่ได้ตั้งค่าการอัปโหลดภาพพื้นหลังออกแบบ","pageExtras.k106":"กำลังอัปโหลด...","pageExtras.k107":"อัปโหลดภาพพื้นหลังออกแบบล้มเหลว","pageExtras.k108":"อัปโหลดภาพพื้นหลังออกแบบล้มเหลว","pageExtras.k109":"อัปโหลดภาพพื้นหลัง","pageExtras.k110":"พื้นหลังออกแบบ","pageExtras.k111":"เฉพาะในตัวออกแบบ เพื่อการจัดตำแหน่ง; ไม่แสดงในตัวอย่างหรือการพิมพ์","pageExtras.k112":"หมุน ({v0}°)","pageExtras.k113":"ลบ","pageExtras.k114":"กำหนดเอง","pageExtras.k115":" แนวนอน","pageExtras.k116":" แนวตั้ง","pageExtras.k117":"แผ่นเป้าหมาย {v0}{v1} {v2}×{v3}mm · {v4} คอลัมน์ × {v5} แถว = {v6} เซลล์/แผ่น · แต่ละเซลล์ {v7}×{v8}mm","pageExtras.k118":"การพิมพ์แบบจัดเรียงชิ้น","pageExtras.k119":"จัดเรียงฉลากเป็นแถว × คอลัมน์บนแผ่นใหญ่เพื่อพิมพ์เป็นชุด","pageExtras.k120":"เปิดใช้งานการจัดเรียงชิ้น","pageExtras.k121":"กระดาษต่อเนื่องไม่รองรับการจัดเรียงชิ้น","pageExtras.k122":"แผ่นเป้าหมาย","pageExtras.k123":"กำหนดเอง","pageExtras.k124":"ขนาดแผ่นเป้าหมาย (mm)","pageExtras.k125":"แนวของแผ่นเป้าหมาย","pageExtras.k126":"แนวตั้ง","pageExtras.k127":"แนวนอน","pageExtras.k128":"ระยะขอบการจัดเรียงชิ้น (mm)","pageExtras.k129":"บน","pageExtras.k130":"ล่าง","pageExtras.k131":"ซ้าย","pageExtras.k132":"ขวา","pageExtras.k133":"ระยะห่างและจำนวนคอลัมน์ของเซลล์","pageExtras.k134":"ระยะห่างแนวนอน","pageExtras.k135":"ระยะห่างแนวตั้ง","pageExtras.k136":"จำนวนคอลัมน์","panels.k137":"ขยายแผงทรัพยากร","panels.k138":"องค์ประกอบ","panels.k139":"ฟิลด์","panels.k140":"เลเยอร์","panels.k141":"ทรัพยากร","panels.k142":"ยุบแผงทรัพยากร","panels.k143":"องค์ประกอบ","panels.k144":"ฟิลด์","panels.k145":"เลเยอร์","panels.k146":"ลากองค์ประกอบไปยังพื้นที่ทำงาน","panels.k147":"ฟิลด์ธุรกิจ","panels.k148":"ค้นหาฟิลด์...","panels.k149":"ค้นหาฟิลด์","panels.k150":"{v0} ({v1}) · คลิกเพื่อคัดลอกชื่อฟิลด์ · ค้าง Ctrl (⌘ บน Mac) ขณะลากเพื่อแทรกชื่อฟิลด์","panels.k151":"คัดลอกแล้ว","panels.k152":"ไม่มีฟิลด์","panels.k153":"ส่วนหัว","panels.k154":"ส่วนท้าย","panels.k155":"เลเยอร์","panels.k156":"นำไปด้านหน้าสุด","panels.k157":"เลื่อนขึ้น","panels.k158":"เลื่อนลง","panels.k159":"ส่งไปด้านหลังสุด","panels.k160":"จัดกลุ่ม (Ctrl+G)","panels.k161":"ยกเลิกจัดกลุ่ม (Ctrl+Shift+G)","panels.k162":"หน้า {v0}","panels.k163":"{v0} (ดับเบิลคลิกเพื่อเปลี่ยนชื่อ)","panels.k164":"ดับเบิลคลิกเพื่อเปลี่ยนชื่อ","panels.k165":"หน้า {v0}","panels.k166":"เทมเพลตแบบจัดเรียงชิ้นอนุญาตให้มีหน้าออกแบบได้เพียงหน้าเดียว","panels.k167":"เพิ่มหน้า (ต่อหน้าเปล่าหลังหน้าปัจจุบัน)","panels.k168":"เทมเพลตแบบจัดเรียงชิ้นอนุญาตให้มีหน้าออกแบบได้เพียงหน้าเดียว","panels.k169":'ทำซ้ำหน้าปัจจุบัน "{v0}"',"panels.k170":'ลบหน้าปัจจุบัน "{v0}"',"panels.k171":"เฉพาะเทมเพลตหลายหน้าที่ลบหน้าได้","panels.k172":'ย้าย "{v0}" ไปหน้าถัดไป',"panels.k173":'ย้าย "{v0}" ไปหน้าก่อนหน้า',"panels.k174":"แนวนอน","panels.k175":"แนวตั้ง","panels.k176":"ซูม {v0}%","propertyPanel.k177":"ทั้งหมด","propertyPanel.k178":"ด้านนอก","propertyPanel.k179":"ด้านใน","propertyPanel.k180":"ไม่มี","propertyPanel.k181":"บน","propertyPanel.k182":"ขวา","propertyPanel.k183":"ล่าง","propertyPanel.k184":"ซ้าย","propertyPanel.k185":"ตำแหน่งและขนาด","propertyPanel.k186":"ระยะขอบ (mm)","propertyPanel.k187":"บน","propertyPanel.k188":"ขวา","propertyPanel.k189":"ล่าง","propertyPanel.k190":"ซ้าย","propertyPanel.k191":"การหมุน (°)","propertyPanel.k192":"ทวนเข็มนาฬิกา 90°","propertyPanel.k193":"หมุนทวนเข็มนาฬิกา 90°","propertyPanel.k194":"ตามเข็มนาฬิกา 90°","propertyPanel.k195":"หมุนตามเข็มนาฬิกา 90°","propertyPanel.k196":"ลักษณะ","propertyPanel.k197":"ฟอนต์","propertyPanel.k198":"ค่าเริ่มต้น","propertyPanel.k199":"ขนาดฟอนต์","propertyPanel.k200":"น้ำหนักฟอนต์","propertyPanel.k201":"ปกติ","propertyPanel.k202":"หนา","propertyPanel.k203":"หนาขึ้น","propertyPanel.k204":"บางลง","propertyPanel.k205":"การจัดตำแหน่ง","propertyPanel.k206":"ซ้าย","propertyPanel.k207":"กลาง","propertyPanel.k208":"ขวา","propertyPanel.k209":"ชิดสองด้าน","propertyPanel.k210":"จัดแนวตั้ง","propertyPanel.k211":"บน","propertyPanel.k212":"กลาง","propertyPanel.k213":"ล่าง","propertyPanel.k214":"สี","propertyPanel.k215":"สีตัวอักษร","propertyPanel.k216":"สีพื้นหลัง","propertyPanel.k217":"สีพื้นหลัง","propertyPanel.k218":"ระยะบรรทัด","propertyPanel.k219":"ระยะห่างตัวอักษร","propertyPanel.k220":"ข้อความล้น","propertyPanel.k221":"ตัดทิ้ง","propertyPanel.k222":"ย่อให้พอดี","propertyPanel.k223":"ความสูงแถวอัตโนมัติ","propertyPanel.k224":"ขนาดฟอนต์ขั้นต่ำ (pt)","propertyPanel.k225":"ค่าเริ่มต้น 6","propertyPanel.k226":"เว้นวรรคบรรทัดแรก (อักขระ)","propertyPanel.k227":"ค่าเริ่มต้น 0","propertyPanel.k228":"ตัดคำอัตโนมัติ","propertyPanel.k229":"คงการขึ้นบรรทัด","propertyPanel.k230":"โหมดการปรับขนาด","propertyPanel.k231":"จุดยึดการครอป","propertyPanel.k232":"ไม่รองรับการตั้งค่าลักษณะสำหรับองค์ประกอบนี้","propertyPanel.k233":"การตั้งค่าบาร์โค้ด","propertyPanel.k234":"ประเภทรหัส","propertyPanel.k235":"CODE128 (ทั่วไป)","propertyPanel.k236":"EAN13 (ค้าปลีก)","propertyPanel.k237":"DPI ของเครื่องพิมพ์","propertyPanel.k238":"ไม่ระบุ (แสดงตามความกว้างแท่น)","propertyPanel.k239":"203 dpi (8 จุด/mm)","propertyPanel.k240":"300 dpi (11.8 จุด/mm)","propertyPanel.k241":"600 dpi (23.6 จุด/mm)","propertyPanel.k242":"เมื่อตั้งค่า ความกว้างแท่นจะปรับเป็นจุดพิมพ์เต็ม: บาร์โค้ดแสดงตามความกว้างแท่น ถ้าพอดีจะพิมพ์ตามนั้น มิเช่นนั้นจะย่อขนาดตามสัดส่วน","propertyPanel.k243":"ความกว้างแท่น (อัตราส่วน)","propertyPanel.k244":"ตั้งค่า DPI ของเครื่องพิมพ์แล้ว: ความกว้างแท่นปรับเป็นจุดเต็มที่ใกล้ที่สุด (DPI แทนค่า mm) จะย่อขนาดถ้าไม่พอดี","propertyPanel.k245":"ใช้ 3+ สำหรับเครื่องพิมพ์ความร้อน/ดอทเมทริกซ์: กำหนดขนาดแท่นที่พิมพ์ แท่นหนาจะเสถียรกว่า","propertyPanel.k246":"โซนเงียบ (โมดูล)","propertyPanel.k247":"ค่าเริ่มต้น 10","propertyPanel.k248":"ความสูงแท่น (mm)","propertyPanel.k249":"ค่าเริ่มต้น 30 โมดูล","propertyPanel.k250":"แสดงข้อความ","propertyPanel.k251":"ขนาดข้อความ (เทียบความสูงแท่น 30)","propertyPanel.k252":"ค่าเริ่มต้น 10","propertyPanel.k253":"การแก้ไขข้อผิดพลาด","propertyPanel.k254":"L (ต่ำสุด ความจุสูงสุด)","propertyPanel.k255":"M (แนะนำ)","propertyPanel.k256":"H (สูงสุด)","propertyPanel.k257":"โซนเงียบ (โมดูล)","propertyPanel.k258":"ค่าเริ่มต้น 0","propertyPanel.k259":"การตั้งค่าแบบกำหนดเอง","propertyPanel.k260":"ขนาดบาร์โค้ดขึ้นกับความกว้างแท่นและ DPI ของเครื่องพิมพ์: พิมพ์ตามความกว้างแท่นถ้าพอดี มิเช่นนั้นย่อขนาด; การดึงจะทำให้แท่นไม่เป็นจำนวนเต็ม จึงไม่มีโหมดปรับขนาด—ใช้ความกว้าง/สูงสูงสุดเป็นขีดจำกัด หากต้องการให้ใหญ่ขึ้น: เพิ่มความกว้างแท่น ลดโซนเงียบ หรือซ่อนข้อความเพื่อพื้นที่มากขึ้น","propertyPanel.k261":"โหมดการปรับขนาด","propertyPanel.k262":"ความกว้างสูงสุด (mm)","propertyPanel.k263":"ค่าเริ่มต้น","propertyPanel.k264":"ความสูงสูงสุด (mm)","propertyPanel.k265":"ค่าเริ่มต้น","propertyPanel.k266":"รายการแบบไหล","propertyPanel.k267":"โหมดการจัดวาง","propertyPanel.k268":"ความสูงคงที่","propertyPanel.k269":"การแบ่งหน้าแบบไดนามิก","propertyPanel.k270":"ระยะบน (mm)","propertyPanel.k271":"ระยะขวา (mm)","propertyPanel.k272":"ระยะล่าง (mm)","propertyPanel.k273":"ระยะซ้าย (mm)","propertyPanel.k274":"จำนวนคอลัมน์ต่อแถว","propertyPanel.k275":"ความสูงแถว (mm)","propertyPanel.k276":"ระยะห่างแนวนอนของเซลล์ (mm)","propertyPanel.k277":"ขยายคอลัมน์เมื่อเนื้อหายาว","propertyPanel.k278":"จำนวนคอลัมน์ขยายสูงสุด","propertyPanel.k279":"ที่ขนาดฟอนต์และความกว้างปัจจุบัน {v0} คอลัมน์ค่อนข้างแคบ (พอดีประมาณ {v1}) ค่าไม่เปลี่ยน; การพิมพ์ใช้ {v2} คอลัมน์","propertyPanel.k280":"ผสม","propertyPanel.k281":"เส้นขอบและพื้นหลัง","propertyPanel.k282":"รูปแบบเส้น","propertyPanel.k283":"ความกว้างเส้นขอบ","propertyPanel.k284":"ผสม","propertyPanel.k285":"สีเส้นขอบ","propertyPanel.k286":"สีเส้นขอบ","propertyPanel.k287":"สีพื้นหลัง","propertyPanel.k288":"สีพื้นหลัง","propertyPanel.k289":"การตั้งค่าขั้นสูง","propertyPanel.k290":"ล็อก","propertyPanel.k291":"ทำซ้ำทุกหน้า","propertyPanel.k292":"ตรึงทุกหน้า","propertyPanel.k293":"ลำดับชั้น","propertyPanel.k294":"ลบองค์ประกอบ","propertyPanel.k295":"หมายเหตุการตั้งค่าขั้นสูง","propertyPanel.k296":"หมายเหตุการตั้งค่าขั้นสูง","propertyPanel.k297":"อื่นๆ","propertyPanel.k298":"การตั้งค่าหน้ากระดาษ","propertyPanel.k299":"ขนาดกระดาษ","propertyPanel.k300":"ขนาดกำหนดเอง","propertyPanel.k301":"ความกว้างกระดาษ (mm)","propertyPanel.k302":"ขนาดกำหนดเอง (mm)","propertyPanel.k303":"แนวกระดาษ","propertyPanel.k304":"แนวตั้ง","propertyPanel.k305":"แนวนอน","propertyPanel.k306":"การสลับจะเปลี่ยนความกว้าง/สูงของกระดาษ (เนื้อหาจัดวางบนขนาดใหม่)","propertyPanel.k307":"การหมุนเนื้อหา","propertyPanel.k308":"สำหรับการจัดเรียงชิ้น ฉลากแต่ละชิ้นหมุนตามมนี้; ที่ 90°/270° ความกว้าง/สูงของเซลล์สลับและคอลัมน์เติมตามขีดใหม่; 0° หมายถึงไม่หมุน (ค่าเริ่มต้น)","propertyPanel.k309":"ทั้งหน้าหมุนสำหรับการพิมพ์; ที่ 90°/270° ความกว้าง/สูงของกระดาษสลับเพื่อพอดีโดยไม่บิดเบือนหรือตัด; 0° หมายถึงไม่หมุน (ค่าเริ่มต้น)","propertyPanel.k310":"สีพื้นหลังหน้ากระดาษ","propertyPanel.k311":"สีพื้นหลังหน้ากระดาษ","propertyPanel.k312":"ระยะขอบ (mm)","propertyPanel.k313":"บน","propertyPanel.k314":"ล่าง","propertyPanel.k315":"ซ้าย","propertyPanel.k316":"ขวา","propertyPanel.k317":"ความสูงส่วนหัว/ท้าย (mm)","propertyPanel.k318":"ความสูงส่วนหัว","propertyPanel.k319":"ความสูงส่วนท้าย","propertyPanel.k320":"ขยายแผงคุณสมบัติ","propertyPanel.k321":"คุณสมบัติองค์ประกอบ","propertyPanel.k322":"คุณสมบัติหน้ากระดาษ","propertyPanel.k323":"แผงคุณสมบัติ","propertyPanel.k324":"ยุบแผงคุณสมบัติ","propertyPanel.k325":"คุณสมบัติองค์ประกอบ","propertyPanel.k326":"คุณสมบัติหน้ากระดาษ","propertyPanel.k327":"เลือกองค์ประกอบบนพื้นที่ทำงาน","propertyPanel.k328":"คุณสมบัติที่กำหนดเอง","propertySearch.k328":"ค้นหาคุณสมบัติ...","propertySearch.k329":"ค้นหาคุณสมบัติ","tableProps.k330":"ส่วนหัวหลายระดับทำซ้ำทั้งกลุ่ม เมื่อเลือก แถวหัวทั้งหมดจะซ้ำที่ด้านบนของทุกหน้า","tableProps.k331":"แถวหัว","tableProps.k332":"แถวข้อมูล","tableProps.k333":"แถวรวมย่อย (ต่อหน้า)","tableProps.k334":"แถวสรุป","tableProps.k335":"CODE128 (ทั่วไป)","tableProps.k336":"EAN13 (ค้าปลีก)","tableProps.k337":"L (ต่ำสุด ความจุสูงสุด)","tableProps.k338":"M (แนะนำ)","tableProps.k339":"H (สูงสุด)","tableProps.k340":"ตัดทิ้ง","tableProps.k341":"ย่อให้พอดี","tableProps.k342":"ความสูงแถวอัตโนมัติ","tableProps.k343":"เลือกหลายรายการ","tableProps.k344":"คุณสมบัติแถว","tableProps.k345":"คุณสมบัติแถว","tableProps.k346":"ประเภทแถว","tableProps.k347":"ความสูงแถว (mm)","tableProps.k348":"ทำซ้ำส่วนหัวทุกหน้า","tableProps.k349":"การตั้งค่าตาราง","tableProps.k350":"ฟิลด์แหล่งข้อมูลรายการ","tableProps.k351":"ฟอนต์เริ่มต้น","tableProps.k352":"ค่าเริ่มต้น","tableProps.k353":"ขนาดฟอนต์เริ่มต้น (pt)","tableProps.k354":"ค่าเริ่มต้น","tableProps.k355":"สีข้อความเริ่มต้น","tableProps.k356":"สีข้อความเริ่มต้น","tableProps.k357":"ระยะภายในเริ่มต้น (mm)","tableProps.k358":"ค่าเริ่มต้น","tableProps.k359":"ความกว้างคอลัมน์ (mm)","tableProps.k360":"คอลัมน์ {v0}","tableProps.k361":"ความกว้างตารางไม่เกินความกว้างที่พิมพ์ได้ {v0}mm; คอลัมน์ {v1} ปรับเป็น {v2}mm","tableProps.k362":"เปิดใช้งานการแบ่งหน้า","tableProps.k363":"เข้าร่วมการแบ่งหน้า","tableProps.k364":"หน้าเดียวกับองค์ประกอบถัดไป","tableProps.k365":"การตั้งค่าการแบ่งหน้า","tableProps.k366":"บน","tableProps.k367":"ขวา","tableProps.k368":"ล่าง","tableProps.k369":"ซ้าย","tableProps.k370":"เซลล์","tableProps.k371":"เซลล์","tableProps.k372":"เลือกหลายรายการ","tableProps.k373":"เฉพาะแถวข้อมูลที่รองรับการรวมตามค่า","tableProps.k374":"คืนค่าเริ่มต้น (ตามค่าตาราง)","tableProps.k375":"เซลล์","tableProps.k376":"เลือก {v0} เซลล์ · ตั้งค่าเป็นชุด: ไม่แสดงรายเซลล์ การเปลี่ยนใช้กับเซลล์ที่เลือกทั้งหมด","tableProps.k377":"ประเภทเซลล์","tableProps.k378":"ข้อความ","tableProps.k379":"บาร์โค้ด","tableProps.k380":"คิวอาร์โค้ด","tableProps.k381":"รูปภาพ","tableProps.k382":"ประเภทรหัส","tableProps.k383":"แสดงข้อความ","tableProps.k384":"ความกว้างแท่น (อัตราส่วน)","tableProps.k385":"ตั้งค่า DPI ของเครื่องพิมพ์แล้ว: ความกว้างแท่นปรับเป็นจุดเต็ม (DPI แทนค่า mm) จะย่อขนาดถ้าเซลล์ไม่พอดี","tableProps.k386":"ใช้ 3+ สำหรับเครื่องพิมพ์ความร้อน/ดอทเมทริกซ์: กำหนดขนาดแท่นที่พิมพ์ แท่นหนาจะเสถียรกว่า","tableProps.k387":"โซนเงียบ (โมดูล)","tableProps.k388":"ค่าเริ่มต้น 10","tableProps.k389":"ความสูงแท่น (mm)","tableProps.k390":"ค่าเริ่มต้น 30 โมดูล","tableProps.k391":"ขนาดข้อความ (เทียบความสูงแท่น 30)","tableProps.k392":"ค่าเริ่มต้น 10","tableProps.k393":"DPI ของเครื่องพิมพ์","tableProps.k394":"ไม่ระบุ (แสดงตามความกว้างแท่น)","tableProps.k395":"203 dpi (8 จุด/mm)","tableProps.k396":"300 dpi (11.8 จุด/mm)","tableProps.k397":"600 dpi (23.6 จุด/mm)","tableProps.k398":"เมื่อตั้งค่า ความกว้างแท่นจะปรับเป็นจุดพิมพ์เต็ม: บาร์โค้ดแสดงตามความกว้างแท่น ถ้าพอดีจะพิมพ์ตามนั้น มิเช่นนั้นจะย่อขนาดตามสัดส่วน","tableProps.k399":"การแก้ไขข้อผิดพลาด","tableProps.k400":"โซนเงียบ (โมดูล)","tableProps.k401":"ค่าเริ่มต้น 0","tableProps.k402":"ขนาดบาร์โค้ดของเซลล์ขึ้นกับความกว้างแท่นและ DPI ของเครื่องพิมพ์: พิมพ์ตามความกว้างแท่นถ้าพอดี มิเช่นนั้นย่อขนาด; ไม่มีโหมดปรับขนาด (จะทำให้แท่นไม่เป็นจำนวนเต็ม)—ใช้ความกว้าง/สูงสูงสุดเป็นขีดจำกัด หากต้องการให้ใหญ่ขึ้น: เพิ่มความกว้างแท่น ลดโซนเงียบ หรือซ่อนข้อความ","tableProps.k403":"โหมดการปรับขนาด","tableProps.k404":"จุดยึดการครอป","tableProps.k405":"ความกว้างสูงสุด (mm)","tableProps.k406":"ค่าเริ่มต้น","tableProps.k407":"ความสูงสูงสุด (mm)","tableProps.k408":"ค่าเริ่มต้น","tableProps.k409":"เนื้อหา","tableProps.k410":"เลือกหลายรายการ (รายการที่ป้อนจะแทนที่เซลล์ที่เลือกทั้งหมด)","tableProps.k411":"ป้อนเนื้อหา รองรับนิพจน์ {field}","tableProps.k412":"จัดแนวนอน","tableProps.k413":"ซ้าย","tableProps.k414":"กลาง","tableProps.k415":"ขวา","tableProps.k416":"ชิดสองด้าน","tableProps.k417":"จัดแนวตั้ง","tableProps.k418":"บน","tableProps.k419":"กลาง","tableProps.k420":"ล่าง","tableProps.k421":"ฟอนต์","tableProps.k422":"สืบทอดค่าเริ่มต้น","tableProps.k423":"ขนาดฟอนต์ (pt)","tableProps.k424":"ค่าเริ่มต้น","tableProps.k425":"หนา","tableProps.k426":"สีข้อความ","tableProps.k427":"สีข้อความ","tableProps.k428":"สีพื้นหลัง","tableProps.k429":"สีพื้นหลัง","tableProps.k430":"เส้นขอบ","tableProps.k431":"ผสม","tableProps.k432":"เลือกหลายรายการ","tableProps.k433":"ผสม","tableProps.k434":"สีเส้นขอบ","tableProps.k435":"ทั้งหมด","tableProps.k436":"ด้านนอก","tableProps.k437":"ด้านใน","tableProps.k438":"ไม่มี","tableProps.k439":"ระยะภายใน (mm)","tableProps.k440":"ค่าเริ่มต้น","tableProps.k441":"ตัดคำอัตโนมัติ","tableProps.k442":"ข้อความล้น","tableProps.k443":"ขนาดฟอนต์ขั้นต่ำ (pt)","tableProps.k444":"ค่าเริ่มต้น 6","tableProps.k445":"รวมเซลล์","tableProps.k446":"รวมเซลล์","tableProps.k447":"แยกเซลล์","tableProps.k448":"รวมตามค่า","tableProps.k449":"แถวข้อมูลที่อยู่ติดกันที่มีค่าเท่ากันจะรวมแนวตั้ง; ข้ามหน้าจะแบ่งตามหน้าและทำซ้ำค่าในหน้าต่อเนื่อง","table.k450":"หัว","table.k451":"ข้อมูล","table.k452":"ย่อย","table.k453":"รวม","table.k454":"แถวหัว","table.k455":"แถวข้อมูล","table.k456":"แถวรวมย่อย","table.k457":"แถวสรุป","table.k458":"บาร์โค้ด","table.k459":"รูปภาพ","table.k460":"หลังแทรก ความกว้างตาราง {v0}mm เกินความกว้างที่พิมพ์ได้ {v1}mm; ลดความกว้างคอลัมน์ก่อน","table.k461":"ประเภทแถวไม่ระบุ","table.k462":"ไม่มีเซลล์ที่เลือก","table.k463":"เฉพาะแถวข้อมูลที่รองรับการรวมตามค่า","table.k464":"ไม่มีเซลล์ที่เลือก","table.k465":"ประเภทแถวรองรับการตั้งค่าแถวเดียวเท่านั้น","table.k466":"ไม่มีเซลล์ที่เลือก","table.k467":"แทรกแถวด้านบน","table.k468":"แทรกแถวด้านล่าง","table.k469":"ลบแถว","table.k470":"แทรกคอลัมน์ด้านซ้าย","table.k471":"แทรกคอลัมน์ด้านขวา","table.k472":"ลบคอลัมน์","table.k473":"รวมเซลล์","table.k474":"แยกเซลล์","table.k475":"รวมตามค่า","table.k476":"ประเภทแถว","table.k477":"ตัวจับปรับความกว้างคอลัมน์ {v0}","toolbarOverflow.k478":"คลิปบอร์ด","toolbarOverflow.k479":"เครื่องมือถ่ายรูปแบบ","toolbarOverflow.k480":"ซูม","toolbarOverflow.k481":"จัดระเบียบ / มุมมอง","toolbarOverflow.k482":"เส้นขอบ","toolbarOverflow.k483":"สี","toolbarOverflow.k484":"การจัดตำแหน่ง","toolbarOverflow.k485":"รูปแบบข้อความ","toolbarOverflow.k486":"ฟอนต์และขนาด","toolbarOverflow.k487":"เพิ่มเติม","toolbarOverflow.k488":'{v0}<span class="tb-btn-text">เพิ่มเติม</span>{v1}',"toolbar.k489":"แก้ไขเทมเพลต","toolbar.k490":"เทมเพลตใหม่","toolbar.k491":"จัดตำแหน่ง / กระจาย","toolbar.k492":"จัดชิดซ้าย","toolbar.k493":"จัดชิดขวา","toolbar.k494":"จัดชิดบน","toolbar.k495":"จัดชิดล่าง","toolbar.k496":"จัดกึ่งกลาง","toolbar.k497":"จัดกึ่งกลางแนวตั้ง","toolbar.k498":"กระจายแนวนอน","toolbar.k499":"กระจายแนวตั้ง","toolbar.k500":"ลำดับชั้น","toolbar.k501":"นำไปด้านหน้าสุด","toolbar.k502":"เลื่อนไปข้างหน้า","toolbar.k503":"เลื่อนไปข้างหลัง","toolbar.k504":"ส่งไปด้านหลังสุด","toolbar.k505":"จัดกลุ่ม","toolbar.k506":"จัดกลุ่ม (Ctrl+G)","toolbar.k507":"ยกเลิกจัดกลุ่ม (Ctrl+Shift+G)","toolbar.k508":"ไม้บรรทัด","toolbar.k509":"แสดง/ซ่อนไม้บรรทัด","toolbar.k510":"ตารางนำทาง","toolbar.k511":"แสดง/ซ่อนพื้นหลังตารางนำทาง","toolbar.k512":"กรอบประ","toolbar.k513":"แสดง/ซ่อนแนวประสำหรับตารางไร้เส้นขอบ","toolbar.k514":"ดูดติด","toolbar.k515":"สลับการดูดองค์ประกอบเข้าตารางนำทาง","toolbar.k516":"ตัวออกแบบเทมเพลตการพิมพ์","toolbar.k517":"เลิกทำ","toolbar.k518":"ทำซ้ำ","toolbar.k519":"จัดระเบียบ","toolbar.k520":"จัดระเบียบ","toolbar.k521":"มุมมอง","toolbar.k522":"มุมมอง","toolbar.k523":"พอดีกับหน้าต่าง","toolbar.k524":"ซูมออก","toolbar.k525":"ซูมเข้า","toolbar.k526":"คัดลอก (Ctrl+C) เลือกองค์ประกอบก่อน","toolbar.k527":"คัดลอก (Ctrl+C)","toolbar.k528":"วาง (Ctrl+V) เลือกองค์ประกอบก่อน","toolbar.k529":"วาง (Ctrl+V) คลิปบอร์ดว่าง","toolbar.k530":"วาง (Ctrl+V)","toolbar.k531":"ลบ (Delete) เลือกองค์ประกอบก่อน","toolbar.k532":"ลบ (Delete)","toolbar.k533":"ช่วยเหลือ","toolbar.k534":"ดูตัวอย่างผลการพิมพ์","toolbar.k535":"ตัวอย่าง","toolbar.k536":"บันทึกเทมเพลต","toolbar.k537":"บันทึก","watermark.k538":"ลายน้ำ","watermark.k539":"นิพจน์ลายน้ำ","watermark.k540":"ป้อนข้อความได้เลย หรือนิพจน์: {order.no}, {printDate}","watermark.k541":'ดับเบิลคลิกหรือคลิก "แก้ไขนิพจน์" เพื่อเปิดตัวแก้ไขนิพจน์',"watermark.k542":"แก้ไขนิพจน์","watermark.k543":"ค่าทดสอบ","watermark.k544":"แสดงในตัวอย่างเมื่อนิพจน์ไม่มีค่า","watermark.k545":"มุมหมุน","watermark.k546":"สี","watermark.k547":"สีลายน้ำ","watermark.k548":"ความโปร่งใส","watermark.k549":"ความหนาแน่น","watermark.k550":"กำหนดเอง","watermark.k551":"ความกว้างชิ้น","watermark.k552":"ความสูงชิ้น","elementDefinitions.k553":"ข้อความ","elementDefinitions.k554":"บาร์โค้ด","elementDefinitions.k555":"คิวอาร์โค้ด","elementDefinitions.k556":"รูปภาพ","elementDefinitions.k557":"ตาราง","elementDefinitions.k558":"ข้อความยาว","elementDefinitions.k559":"รายการแบบไหล","elementDefinitions.k560":"เส้นแนวนอน","elementDefinitions.k561":"เส้นแนวตั้ง","elementDefinitions.k562":"สี่เหลี่ยมผืนผ้า","elementDefinitions.k563":"วงรี","elementDefinitions.k564":"หมายเลขหน้า","elementDefinitions.k565":"registerElementDefinition: type ต้องเป็นสตริงที่ไม่ว่างเปล่า","elementDefinitions.k566":"registerElementDefinition: label ต้องเป็นสตริงที่ไม่ว่างเปล่า","elementDefinitions.k567":"registerElementRenderer: ต้องการ type และฟังก์ชัน render","panels.paperRotated":" (หมุน {rot}°)","panels.statusElements":"{count} องค์ประกอบ{selected}","panels.statusSelected":" (เลือก {n})"},ES={"expression.tabField":"ฟิลด์","expression.tabVariable":"ตัวแปร","expression.tabFunction":"ฟังก์ชัน","expression.placeholderField":"ค้นหาฟิลด์...","expression.placeholderVariable":"ค้นหาตัวแปร...","expression.placeholderFunction":"ค้นหาฟังก์ชัน...","expression.fnSum":"ผลรวม","expression.fnAvg":"ค่าเฉลี่ย","expression.fnCount":"จำนวน","expression.fnMin":"ค่าต่ำสุด","expression.fnMax":"ค่าสูงสุด","expression.fnAdd":"บวก","expression.fnSub":"ลบ","expression.fnMul":"คูณ","expression.fnDiv":"หาร","expression.fnRound":"ปัดเศษ","expression.fnRoundUp":"ปัดขึ้น","expression.fnRoundDown":"ปัดลง","expression.fnRoundBank":"ปัดเศษแบบธนาคาร","expression.fnMoney":"จัดรูปแบบจำนวนเงิน","expression.fnDate":"จัดรูปแบบวันที่","expression.fnUpper":"จำนวนเงินเป็นตัวอักษร","expression.fnIf":"เงื่อนไข","expression.varPageIndex":"หน้าปัจจุบัน","expression.varTotalPages":"จำนวนหน้าทั้งหมด","expression.varPrintDate":"วันที่พิมพ์","expression.varPrintTime":"เวลาพิมพ์","expression.groupAggregate":"ฟังก์ชันรวมค่า","expression.groupMath":"คณิตศาสตร์","expression.groupFormat":"การจัดรูปแบบ","expression.previewEmpty":"(ดูตัวอย่างหลังป้อนนิพจน์)","expression.previewNoValue":"(ไม่สามารถคำนวณได้)","expression.previewError":"(นิพจน์ผิดพลาด)","expression.k1":"ประเภท","expression.k2":"วิธีป้อน","expression.k3":"ดับเบิลคลิกฟิลด์ ตัวแปร หรือฟังก์ชันทางด้านซ้ายเพื่อแทรก","expression.k4":"ค้าง Ctrl (⌘ บน Mac) ขณะดับเบิลคลิกเพื่อแทรกชื่อฟิลด์เป็นข้อความคงที่","expression.k5":"ป้อนข้อความคงที่ได้เลย เช่น ชื่อผู้จัดจำหน่าย","expression.k6":"ฟิลด์ ตัวแปร และฟังก์ชันแบบไดนามิกต้องอยู่ใน {}","expression.k7":"ตัวอย่าง: {SUM(supplier.name)}","expression.k8":"ป้อนคีย์ภาษาไทยได้โดยตรงเป็น {field} เช่น {name}","expression.k9":"หมายเหตุ: ซ้อนได้เพียงหนึ่งระดับ","expression.k10":"ฟังก์ชัน","expression.k11":"SUM(field) - ผลรวม","expression.k12":"AVG(field) - ค่าเฉลี่ย","expression.k13":"COUNT(field) - จำนวน","expression.k14":"IF(cond, true, false) - เงื่อนไข","expression.k15":"เลขคณิต: {qty * price}, {ADD(qty, 1)}","expression.k16":"การปัดเศษ: ROUND ปัดครึ่งขึ้น / ROUNDUP ปัดขึ้น / ROUNDDOWN ปัดลง / ROUNDBANK แบบธนาคาร","expression.k17":"ตัวแปรระบบ","expression.k18":"{pageIndex} - หน้าปัจจุบัน","expression.k19":"{totalPages} - จำนวนหน้าทั้งหมด","expression.k20":"{printDate} - วันที่พิมพ์","expression.k21":"ตัวอย่าง","expression.k22":"ข้อความคงที่: ชื่อผู้จัดจำหน่าย","expression.k23":"ฟิลด์ไดนามิก: {supplier.name}","expression.k24":"เรียกใช้ฟังก์ชัน: {SUM(amount)}","expression.k25":'เงื่อนไข: {IF(amount>1000, "ใหญ่", "เล็ก")}',"expression.k26":"เลขคณิตและปัดเศษ: {ROUND(qty * price, 2)}","expression.k27":"ไม่มีฟิลด์","expression.k28":"คัดลอกแล้ว","expression.k29":"ประเภท","expression.k30":"ข้อมูลช่วยเหลือ","expression.k31":"วิธีป้อน","expression.k32":"ผลตัวอย่าง","expression.k33":"แก้ไขนิพจน์","expression.k34":"ปิด","expression.k35":"ยกเลิก","expression.k36":"ยืนยัน"},IS={"toolbar.save":"บันทึก","toolbar.preview":"ตัวอย่าง","diagnostic.expressionUnexpectedEnd":"นิพจน์สิ้นสุดโดยไม่คาดคิด","diagnostic.parser.trailingContent":"มีเนื้อหาเกินหลังนิพจน์: {value}","diagnostic.parser.expected":'ตำแหน่ง {pos}: คาดว่า "{value}"',"diagnostic.parser.memberName":"ตำแหน่ง {pos}: การเข้าถึงสมาชิกต้องมีชื่อคุณสมบัติ","diagnostic.parser.invalidNumber":"ตัวเลขไม่ถูกต้อง: {value}","diagnostic.parser.objectKey":"ตำแหน่ง {pos}: คีย์อ็อบเจกต์ต้องเป็นตัวระบุหรือสตริง","diagnostic.parser.unexpectedToken":"ตำแหน่ง {pos}: โทเค็นที่ไม่คาดคิด: {value}","diagnostic.lexer.unterminatedString":"สตริงไม่ปิด","diagnostic.lexer.keyword":"ไม่อนุญาตให้ใช้คำสงวน: {word}","diagnostic.lexer.forbidden":"ปฏิเสธการเข้าถึง: {word}","diagnostic.lexer.noFunctionDef":"ไม่อนุญาตให้กำหนดฟังก์ชัน","diagnostic.lexer.noAssignment":"ไม่อนุญาตให้กำหนดค่า","diagnostic.lexer.noMultipleStatements":"ไม่อนุญาตให้มีหลายคำสั่ง","diagnostic.lexer.invalidChar":"อักขระไม่ถูกต้อง: {ch}","diagnostic.evaluator.undefinedIdentifier":"ตัวระบุไม่ได้กำหนด: {name}","diagnostic.evaluator.unknownOperator":"ตัวดำเนินการไม่ทราบ: {op}","diagnostic.evaluator.unknownUnaryOperator":"ตัวดำเนินการยูนารีไม่ทราบ: {op}","diagnostic.evaluator.nullProperty":"ไม่สามารถอ่านคุณสมบัติของค่า null","diagnostic.evaluator.forbiddenProperty":"ปฏิเสธการเข้าถึงคุณสมบัติ: {property}","diagnostic.evaluator.mathNotMethod":"Math.{name} ไม่ใช่เมธอด","diagnostic.evaluator.noMethodCall":"ไม่รองรับการเรียกเมธอด ใช้ฟังก์ชันระดับบนสุดแทน","diagnostic.evaluator.notFunction":"{name} ไม่ใช่ฟังก์ชัน","diagnostic.evaluator.forbiddenCall":"ไม่อนุญาตให้เรียก: {name}","diagnostic.template.unclosedBrace":"ตำแหน่ง {pos}: วงเล็บปีกกาไม่ปิด","diagnostic.template.emptyExpression":"ตำแหน่ง {pos}: นิพจน์ว่าง","diagnostic.pagination.insufficientHeight":"ความสูงหน้าที่ใช้ได้ไม่เพียงพอ: paper={paper}mm, margins={margins}mm, header={header}mm, footer={footer}mm","diagnostic.pagination.repeatHeaderOverflow":"ตาราง {id}: ความสูงส่วนหัวที่ซ้ำ ({repeat}mm) เกินความสูงหน้าที่ใช้ได้ ({avail}mm) กรุณาลดจำนวนแถวหัวที่ซ้ำ","diagnostic.tiling.continuousUnsupported":"กระดาษต่อเนื่องไม่รองรับการจัดเรียงชิ้น ใช้กระดาษขนาดคงที่หรือปิดการจัดเรียงชิ้น","diagnostic.tiling.sheetContinuous":"แผ่นเป้าหมายของการจัดเรียงชิ้นไม่สามารถเป็นกระดาษต่อเนื่องได้","diagnostic.tiling.sheetSizeInvalid":"ความกว้างและความสูงของแผ่นกำหนดเองต้องเป็นตัวเลขมากกว่า 0 (mm)","diagnostic.tiling.columnsInvalid":"จำนวนคอลัมน์การจัดเรียงชิ้นต้องเป็นจำนวนเต็มมากกว่า 0","diagnostic.tiling.rotationNote":" (เนื้อหาหมุน {angle}° แต่ละชิ้น {width}×{height}mm)","diagnostic.tiling.columnsExceedWidth":"จำนวนคอลัมน์การจัดเรียงชิ้น {columns} เกินความกว้างแผ่นที่ใช้ได้: {sheet}mm − ระยะขอบข้าง {margin}mm = {avail}mm ได้มากสุด {max} คอลัมน์; ปัจจุบัน {columns} คอลัมน์ของฉลาก {label}mm รวมระยะห่างต้องการ {need}mm{rotation}","diagnostic.tiling.labelHeightExceed":"ความสูงฉลาก {height}mm เกินความสูงแผ่นที่ใช้ได้ {avail}mm จัดเรียงได้ 0 แถวต่อแผ่น; ลดความสูงฉลากหรือใช้กระดาษแนวนอน{rotation}","diagnostic.multiTemplate.emptyPages":"เทมเพลตหลายหน้าต้องมีอย่างน้อยหนึ่งหน้า","diagnostic.multiTemplate.continuous":"เทมเพลตหลายหน้าไม่รองรับกระดาษต่อเนื่อง ({page})","diagnostic.multiTemplate.tiling":"เทมเพลตหลายหน้าไม่รองรับการจัดเรียงฉลากเป็นชิ้น ({page})","diagnostic.multiTemplate.paperMismatch":"ทุกหน้าของเทมเพลตต้องใช้ขนาดกระดาษเท่ากัน ({page} {width}×{height}mm ไม่ตรงกับหน้าแรก {firstWidth}×{firstHeight}mm)","diagnostic.multiTemplate.emptyData":"เทมเพลตหลายหน้าต้องมีข้อมูลอย่างน้อยหนึ่งชุด","diagnostic.multiTemplate.pageLabelNamed":'หน้า {index} "{name}"',"diagnostic.multiTemplate.pageLabelPlain":"หน้า {index}","client.cancelled":"ยกเลิกการเชื่อมต่อแล้ว","client.invalidToken":"โทเค็นการจับคู่ไม่ถูกต้องหรือแหล่งที่มาไม่ได้รับอนุญาต","client.notRunning":"ไม่พบไคลเอนต์การพิมพ์ที่ทำงานอยู่ (ตรวจสอบช่วงพอร์ตเริ่มต้นแล้ว) กรุณาเริ่มไคลเอนต์","client.notConnected":"ไคลเอนต์การพิมพ์ไม่ได้เชื่อมต่อ","client.timeout":"คำขอ {type} หมดเวลา","client.closed":"ปิดการเชื่อมต่อแล้ว","client.disconnected":"การเชื่อมต่อกับไคลเอนต์ขาดแล้ว","client.unregisteredHandler":"ไม่ได้ลงทะเบียนตัวจัดการคำขอฝั่งเดสก์ท็อป","client.internalError":"ข้อผิดพลาดภายใน","table.atLeastTwoCells":"เลือกเซลล์อย่างน้อย 2 เซลล์","table.crossRowTypes":"พื้นที่ที่รวมไม่สามารถข้ามแถวที่ต่างประเภทกันได้","table.dataVerticalMerge":'แถวข้อมูลจะขยายเป็นรายการ ใช้ตัวเลือกเซลล์ "รวมตามค่า" สำหรับการรวมแนวตั้ง',"table.partialOverlap":"พื้นที่ที่เลือกทับซ้อนกับพื้นที่ที่รวมอยู่แล้วบางส่วน","table.lastRow":"ไม่สามารถลบแถวสุดท้ายได้","table.lastColumn":"ไม่สามารถลบคอลัมน์สุดท้ายได้","table.dataRowExists":"มีแถวข้อมูลอยู่แล้ว (แถว {row}) อนุญาตได้เพียงหนึ่งแถว","table.headerContinuous":"ต้องตั้งค่าแถวหัวต่อเนื่องจากด้านบนของตาราง","table.subtotalAfterData":"ตั้งค่าแถวข้อมูลก่อน แถวรวมย่อย/สรุปต้องอยู่หลังแถวข้อมูล","table.subtotalBeforeData":"แถวรวมย่อย/สรุปต้องอยู่หลังแถวข้อมูล","table.subtotalBeforeSummary":"แถวรวมย่อยต้องอยู่ก่อนแถวสรุป","table.summaryAfterSubtotal":"แถวสรุปต้องอยู่หลังแถวรวมย่อย","table.headerBreak":"การยกเลิกแถวหัวนี้จะทำให้แถวหัวไม่ต่อเนื่อง กรุณาปรับแถวหัวที่ตามมาก่อน","table.defaultHeader":"คอลัมน์ {index}","table.borderHint":'รูปแบบเส้น/ความกว้าง/สีเป็นค่าที่รอการใช้งาน: เส้นขอบที่มีอยู่สอดคล้องกันจะถูกเติมในสามบรรทัดนี้; รายการที่ไม่สอดคล้องกันแสดง "ผสม" และเส้นที่ไม่มีแสดง "ไม่มี / 0" คลิก ทั้งหมด/ด้านนอก/ด้านใน หรือทำเครื่องหมายด้านใดด้านหนึ่งเพื่อใช้งาน; "ไม่มี" จะลบเส้นขอบ',"table.borderHintMulti":'การเลือกหลายรายการไม่แสดงเส้นขอบของเซลล์เดี่ยว: รูปแบบเส้น/ความกว้าง/สีเป็นค่าสำหรับเขียนเป็นชุด; คลิก ทั้งหมด/ด้านนอก/ด้านใน หรือทำเครื่องหมายด้านใดด้านหนึ่งเพื่อใช้กับเซลล์ที่เลือกทั้งหมด; "ไม่มี" จะลบเส้นขอบ',"table.borderHintMixed":'เส้นขอบทั้งสี่ด้านไม่สอดคล้องกัน: รายการที่เครื่องหมาย "ผสม" ไม่ได้รายงานค่าผิด; รายการที่ไม่เปลี่ยนจะใช้ค่าเริ่มต้น (เส้นทึบ 0.75pt) เมื่อคลิก ทั้งหมด/ด้านนอก/ด้านใน หรือทำเครื่องหมายด้านเดียว; เปลี่ยนรายการใดจะเขียนค่านั้นเป็นชุด',"diagnostic.pagination.overflowTop":"องค์ประกอบ {id} หมุน {rot}° แล้วส่วนบนเกินขอบหน้ากระดาษ {amount}mm จะถูกตัดเมื่อพิมพ์","diagnostic.pagination.overflowRight":"องค์ประกอบ {id} เกินขอบขวาของหน้ากระดาษ {amount}mm จะถูกตัดเมื่อพิมพ์","diagnostic.pagination.overflowLeft":"องค์ประกอบ {id} เกินขอบซ้ายของหน้ากระดาษ {amount}mm จะถูกตัดเมื่อพิมพ์","crop.sampleNote":"ยังไม่ได้ตั้งรูปภาพ ด้านบนสาธิตการวางตำแหน่งด้วยรูปตัวอย่าง เมื่อใส่รูปจริงช่วงและระยะการเคลื่อนที่จะคำนวณใหม่","crop.verticalPosition":"ตำแหน่งแนวตั้ง (%)","crop.horizontalPosition":"ตำแหน่งแนวนอน (%)","crop.scaleLabel":"อัตราขยาย (%)","crop.originalValue":"คงค่าเดิมจากเทมเพลตไว้; เปลี่ยนรายการด้านล่างรายการใดจะแทนที่ด้วยตำแหน่งใหม่ทั้งชุด","crop.movableBoth":"เคลื่อนได้แนวนอน {x}mm แนวตั้ง {y}mm: 0 = ชิดซ้าย/บน 100 = ชิดขวา/ล่าง","crop.movableX":"เคลื่อนได้แนวนอน {x}mm; แนวตั้งเต็มแล้วเคลื่อนไม่ได้","crop.movableY":"เคลื่อนได้แนวตั้ง {y}mm; แนวนอนเต็มแล้วเคลื่อนไม่ได้","crop.noRoom":"ที่อัตราส่วนนี้รูปพอดีกับกรอบ ทั้งสองแกนไม่มีระยะให้เคลื่อน","crop.top":"บน","crop.center":"กลาง","crop.bottom":"ล่าง","crop.left":"ซ้าย","crop.right":"ขวา","crop.topLeft":"ซ้ายบน","crop.topCenter":"กลางบน","crop.topRight":"ขวาบน","crop.middleLeft":"กลางซ้าย","crop.middleRight":"กลางขวา","crop.bottomLeft":"ซ้ายล่าง","crop.bottomCenter":"กลางล่าง","crop.bottomRight":"ขวาล่าง","crop.fitContain":"พอดี (คงอัตราส่วน)","crop.fitCover":"ครอบ (เติมแล้วตัดขอบ)","crop.fitFill":"ดึงให้เต็ม","crop.fitNone":"ขนาดต้นฉบับ","crop.fitScaleDown":"ย่อ (คงอัตราส่วน)","barcode.recommendOk":"ที่ {dpi}dpi อัตราความกว้างแท่นที่แนะนำคือ {rec} ({recDots} จุดพิมพ์ต่อโมดูล = {width}mm ซึ่งเป็นขั้นน้อยสุดที่ถึงขีดต่ำสุด {min}mm); อัตราปัจจุบัน {current} คิดเป็น {curDots} จุด / {curWidth}mm ผ่านเกณฑ์แล้ว ข้อความนี้เป็นคำแนะนำเท่านั้น จะไม่เปลี่ยนค่าที่คุณใส่","barcode.recommendLow":"ที่ {dpi}dpi อัตราความกว้างแท่นที่แนะนำคือ {rec} ({recDots} จุดพิมพ์ต่อโมดูล = {width}mm ซึ่งเป็นขั้นน้อยสุดที่ถึงขีดต่ำสุด {min}mm); อัตราปัจจุบัน {current} คิดเป็น {curDots} จุด / {curWidth}mm ต่ำกว่าขีดต่ำสุด ข้อความนี้เป็นคำแนะนำเท่านั้น จะไม่เปลี่ยนค่าที่คุณใส่","code.rotateNote":"บาร์โค้ดและคิวอาร์โค้ดรองรับเฉพาะขั้น 90°; มุมอิสระต้องการหัวพิมพ์ 385dpi ขึ้นไป","colorPicker.pickColor":"เลือกสี","colorPicker.hexValue":"ค่าสี","colorPicker.customColor":"สีที่กำหนดเอง","colorPicker.hue":"เฉดสี","colorPicker.commonColors":"สีที่ใช้บ่อย","colorPicker.clear":"ล้างสีที่เลือก","colorPicker.clearShort":"ล้าง","save.geometryWarningConfirm":`คำเตือนการพิมพ์: เนื้อหาบางส่วนเกินขอบกระดาษและจะถูกตัดเมื่อพิมพ์
|
|
10
|
+
ยอมรับการตัดและบันทึกต่อหรือไม่?
|
|
11
|
+
คลิก ตกลง เพื่อบันทึก คลิก ยกเลิก เพื่อกลับไปแก้ไข
|
|
12
|
+
|
|
13
|
+
{warnings}`,"store.tilingSinglePage":"เมื่อเปิดการจัดเรียงชิ้น อนุญาตให้มีหน้าออกแบบได้เพียงหน้าเดียว","elementGroup.chart":"แผนภูมิ","service.printData.emptyArray":"ข้อมูลการพิมพ์เป็นชุดต้องเป็นอาร์เรย์อ็อบเจกต์ที่ไม่ว่างเปล่า","service.printData.tooMany":"การพิมพ์เป็นชุดรองรับได้มากสุด {max} ชุด ได้ {count} ชุด","service.printData.itemNotObject":"รายการข้อมูลการพิมพ์ชุดที่ {index} ต้องเป็นอ็อบเจกต์","service.printData.notObjectOrArray":"printData ต้องเป็นอ็อบเจกต์หรืออาร์เรย์",...MS,...ES},OS={constants:{"constants.borderStyle.none":"无","constants.borderStyle.solid":"实线","constants.borderStyle.dashed":"虚线","constants.borderStyle.dotted":"点线","constants.borderStyle.double":"双线","constants.paper.A4.label":"A4 210×297mm","constants.paper.A3.label":"A3 297×420mm","constants.paper.A5.label":"A5 148×210mm","constants.paper.Letter.label":"Letter 216×279mm","constants.paper.Legal.label":"Legal 216×356mm","constants.paper.DOT_FULL.label":"全等分 241×279.4mm","constants.paper.DOT_HALF.label":"二等分 241×139.7mm","constants.paper.DOT_THIRD.label":"三等分 241×93.1mm","constants.paper.LABEL_80X60.label":"80×60mm","constants.paper.LABEL_60X40.label":"60×40mm","constants.paper.LABEL_40X30.label":"40×30mm","constants.paper.THERMAL_57.label":"57mm","constants.paper.THERMAL_80.label":"80mm","constants.paper.THERMAL_110.label":"110mm","constants.paper.CONTINUOUS.label":"连续纸(自定义宽度)","constants.paper.group.common":"常用纸张","constants.paper.group.dotMatrix":"针式打印纸","constants.paper.group.labels":"标签纸","constants.paper.group.receipt":"小票纸","constants.paper.group.continuous":"连续纸","constants.watermark.density.dense":"密","constants.watermark.density.medium":"中(默认)","constants.watermark.density.loose":"疏","constants.watermark.density.size":"({w}×{h})","constants.label.content":"内容","constants.hint.border.apply":"线型 / 宽度 / 颜色即时生效,这三行显示的就是当前生效规格:已有边框时任改一行都会按新规格铺满四边并清掉单边覆盖;上、下、左、右只给选中的边加框,撤掉一边会把它其余三边落成单边;「无」清除边框,「内部」仅表格单元格可用","constants.hint.border.pending":"线型 / 宽度 / 颜色是待应用规格:选中格已有的边框规格一致时会填进这三行;四边不一致的项显示「混合」,一条边都没有时显示「无 / 0」。改完点「全部 / 外侧 / 内部」或勾选上、下、左、右某条边才会写入选中的单元格;「无」是清除边框","constants.hint.border.multi":"多选时不回显单格边框:线型 / 宽度 / 颜色按当前设置作为批写规格,点「全部 / 外侧 / 内部」或勾选某条边后写入所有选中格;「无」是清除边框","constants.hint.border.mixed":"当前单元格四边边框规格不一致:带「混合」的项不谎报,未改项在点「全部 / 外侧 / 内部」或勾选单边时按缺省档(实线 0.75pt)写入,改任一项即按该值批写"}},RS={constants:{"constants.borderStyle.none":"None","constants.borderStyle.solid":"Solid","constants.borderStyle.dashed":"Dashed","constants.borderStyle.dotted":"Dotted","constants.borderStyle.double":"Double","constants.paper.A4.label":"A4 210×297mm","constants.paper.A3.label":"A3 297×420mm","constants.paper.A5.label":"A5 148×210mm","constants.paper.Letter.label":"Letter 216×279mm","constants.paper.Legal.label":"Legal 216×356mm","constants.paper.DOT_FULL.label":"Full sheet 241×279.4mm","constants.paper.DOT_HALF.label":"Half sheet 241×139.7mm","constants.paper.DOT_THIRD.label":"Third sheet 241×93.1mm","constants.paper.LABEL_80X60.label":"80×60mm","constants.paper.LABEL_60X40.label":"60×40mm","constants.paper.LABEL_40X30.label":"40×30mm","constants.paper.THERMAL_57.label":"57mm","constants.paper.THERMAL_80.label":"80mm","constants.paper.THERMAL_110.label":"110mm","constants.paper.CONTINUOUS.label":"Continuous paper (custom width)","constants.paper.group.common":"Common","constants.paper.group.dotMatrix":"Dot-matrix","constants.paper.group.labels":"Labels","constants.paper.group.receipt":"Receipt","constants.paper.group.continuous":"Continuous","constants.watermark.density.dense":"Dense","constants.watermark.density.medium":"Medium (default)","constants.watermark.density.loose":"Sparse","constants.watermark.density.size":" ({w}×{h})","constants.label.content":"Content","constants.hint.border.apply":'Line style / width / color apply immediately; these three rows show the effective spec. With an existing border, changing any row fills all four sides and clears per-side overrides. Top / right / bottom / left add a border only to the selected side; removing one turns the other three into per-side borders. "None" clears the border; "Inside" is available for table cells only.',"constants.hint.border.pending":'Line style / width / color are a pending spec: they are prefilled when the selected cells share one border spec. Mixed values show "Mixed"; no border shows "None / 0". Click All / Outside / Inside or tick a side (top / right / bottom / left) to write to the selected cells; "None" clears the border.',"constants.hint.border.multi":'Multi-select does not show a single cell border: line style / width / color act as a batch spec. Click All / Outside / Inside or tick a side to apply to all selected cells; "None" clears the border.',"constants.hint.border.mixed":'The four sides of this cell have different border specs: "Mixed" is shown instead of a false value. Untouched fields fall back to the default (Solid 0.75pt) when you click All / Outside / Inside or tick a side; changing any field writes that value to the batch.'}},BS={constants:{"constants.borderStyle.none":"ไม่มี","constants.borderStyle.solid":"เส้นทึบ","constants.borderStyle.dashed":"เส้นประ","constants.borderStyle.dotted":"เส้นจุด","constants.borderStyle.double":"เส้นคู่","constants.paper.A4.label":"A4 210×297mm","constants.paper.A3.label":"A3 297×420mm","constants.paper.A5.label":"A5 148×210mm","constants.paper.Letter.label":"Letter 216×279mm","constants.paper.Legal.label":"Legal 216×356mm","constants.paper.DOT_FULL.label":"แผ่นเต็ม 241×279.4mm","constants.paper.DOT_HALF.label":"แผ่นครึ่ง 241×139.7mm","constants.paper.DOT_THIRD.label":"แผ่นหนึ่งในสาม 241×93.1mm","constants.paper.LABEL_80X60.label":"80×60mm","constants.paper.LABEL_60X40.label":"60×40mm","constants.paper.LABEL_40X30.label":"40×30mm","constants.paper.THERMAL_57.label":"57mm","constants.paper.THERMAL_80.label":"80mm","constants.paper.THERMAL_110.label":"110mm","constants.paper.CONTINUOUS.label":"กระดาษต่อเนื่อง (ความกว้างกำหนดเอง)","constants.paper.group.common":"กระดาษทั่วไป","constants.paper.group.dotMatrix":"กระดาษดอทเมทริกซ์","constants.paper.group.labels":"ฉลาก","constants.paper.group.receipt":"ใบเสร็จ","constants.paper.group.continuous":"กระดาษต่อเนื่อง","constants.watermark.density.dense":"หนาแน่น","constants.watermark.density.medium":"กลาง (ค่าเริ่มต้น)","constants.watermark.density.loose":"ห่าง","constants.watermark.density.size":" ({w}×{h})","constants.label.content":"เนื้อหา","constants.hint.border.apply":'รูปแบบเส้น/ความกว้าง/สีมีผลทันที สามบรรทัดนี้แสดงผลที่มีผลอยู่: เมื่อมีเส้นขอบอยู่แล้ว การเปลี่ยนแถวใดจะเติมสี่ด้านและลบการเขียนทับรายด้าน; บน/ขวา/ล่าง/ซ้ายเพิ่มเส้นเฉพาะด้านที่เลือก การลบด้านหนึ่งจะทำให้สามด้านที่เหลือเป็นเส้นแยก; "ไม่มี" ลบเส้นขอบ "ด้านใน" ใช้สำหรับเซลล์ตารางเท่านั้น',"constants.hint.border.pending":'รูปแบบเส้น/ความกว้าง/สีเป็นค่าที่รอใช้งาน: จะเติมในสามบรรทัดนี้เมื่อเซลล์ที่เลือกมีเส้นขอบสอดคล้องกัน; ค่าที่ไม่ตรงกันแสดง "ผสม" ไม่มีเส้นแสดง "ไม่มี / 0" แก้แล้วคลิก ทั้งหมด/ด้านนอก/ด้านใน หรือทำเครื่องหมายด้านใดด้านหนึ่งจึงเขียนลงเซลล์ที่เลือก; "ไม่มี" ลบเส้นขอบ',"constants.hint.border.multi":'การเลือกหลายรายการไม่แสดงเส้นขอบของเซลล์เดี่ยว: รูปแบบเส้น/ความกว้าง/สีเป็นค่าเขียนเป็นชุด คลิก ทั้งหมด/ด้านนอก/ด้านใน หรือทำเครื่องหมายด้านใดด้านหนึ่งเพื่อเขียนทุกเซลล์ที่เลือก; "ไม่มี" ลบเส้นขอบ',"constants.hint.border.mixed":'เส้นขอบสี่ด้านของเซลล์นี้ไม่สอดคล้องกัน: รายการ "ผสม" ไม่รายงานค่าผิด; รายการที่ไม่เปลี่ยนใช้ค่าเริ่มต้น (เส้นทึบ 0.75pt) เมื่อคลิก ทั้งหมด/ด้านนอก/ด้านใน หรือทำเครื่องหมายด้านเดียว; เปลี่ยนรายการใดจะเขียนค่านั้นเป็นชุด'}},NS={propertyTips:{"propertyTips.ap-long-text-indent":"长文本每段首行空出的宽度,单位「字符」:填 2 即缩进两个汉字宽(中文排版惯例),按 em 落纸——字号被「自动缩小」压小时缩进同步变窄。仅长文本元素生效,写在普通文本上不生效","propertyTips.ap-img-fit":"图片在元素框内的缩放方式:包含=完整显示、可能留白;剪裁=铺满框并按「裁剪锚点」取一块;拉伸=填满框会变形;原始尺寸与缩小不放大。画布与三条出纸链路同一口径(缺省包含)","propertyTips.ap-img-object-position":"取位(仅「剪裁」档有这一行):剪裁把图等比铺满元素框,多出来的那一条边按这里选的位置取舍。先选位置档(贴边/居中/贴另一头),再按百分比微调,0 贴左/贴顶,100 挪到另一头,水平与垂直各自独立;缺省取正中间(保住证件照头顶就选顶部)。其余缩放模式图比框小或刚好铺满,没有可裁的边,所以不出本行","propertyTips.ap-img-fit-scale":"剪裁放大:等比铺满之后把画面再推大这么多,两轴才真的各多出一条边可裁——图与框同比例时不放大就什么都裁不掉。100=不放大(缺省),上限 400;超出框的部分由元素框裁掉。锚点选中的那一点既是取位的钉住点、也是放大的中心,两者共用同一个值。仅「剪裁」档生效,其余缩放模式不出本行","propertyTips.ap-rotate":"元素绕自身中心旋转的角度(度,0~359):出纸时按旋转后外接盒分页与结算,底部放不下自动移页,超出纸面左右缘或顶部会被裁切并给出纸提示。表格、流式列表与表格下方跟随区的元素不支持旋转(这三类不出本行);条码与二维码的任意角度需 385dpi 以上打印头,低分辨率打印机只按 90° 步进出纸","propertyTips.fl-columns":"一行排几个单元,必须由你指定——不随内容自动算列数。填的列数乘单元宽放不下元素框时只给提示、不改你的数,出纸按你填的排","propertyTips.fl-row-height":"每个单元行的最低高度(毫米),与表格行高同一口径:内容比它高时这一行会撑高,不会裁字","propertyTips.fl-gap-x":"相邻单元之间的横向留白(毫米);纵向不留缝,行与行的距离由行高承担","propertyTips.fl-auto-span":"单元内容比一列还宽时,让它占掉两个或更多列位;当前行剩不够放就把整个单元挪到下一行行首(绝不把词切两半)。默认关——开着时出纸栏数由字号与框宽决定","propertyTips.fl-max-span":"跨列的列数上限,最大只能等于「每行列数」:把每行列数改小时,这里会被一并顶回去","propertyTips.fl-layout-mode":"容器高度由谁决定:固定高度=维持设计高度、一框一页,超高裁切(存量模板默认值,输出不变);动态分页=容器高度由内容撑开,内容满页后按行续页,每一页都画完整边框,元素下方的跟随区与表格同一套规则","propertyTips.fl-padding-top":"动态分页模式下容器顶部与第一行内容之间的留白(毫米),仅动态模式生效;每页切片都按它留白并计入分页预算,负值与非法值按 0 处理","propertyTips.fl-padding-right":"动态分页模式下容器右侧与内容之间的留白(毫米),会压缩参与列宽估算的内容宽度,仅动态模式生效","propertyTips.fl-padding-bottom":"动态分页模式下容器底部与最后一行内容之间的留白(毫米),每页切片都按它留白并计入分页预算,仅动态模式生效","propertyTips.fl-padding-left":"动态分页模式下容器左侧与内容之间的留白(毫米),会压缩参与列宽估算的内容宽度,仅动态模式生效","propertyTips.cd-bar-quiet-zone":"条形码左右两端的空白格数(1 格 = 1 条宽):缺省 10,正是一维码码制要求的下限;数值越小白边越窄、同样的框内条越粗(可放大)。填 0 即不留白边,但静区参与「条→空→条」跳变,紧邻文字或表格线时可能扫不出,需实打验证","propertyTips.cd-bar-height":"黑白条本体的目标高度(mm,不含下方文字):折算粒度就是每模块物理宽,所以只能精确到它的整数倍。条宽优先——可用框高装不下时期望条高让位,绝不把条宽挤窄(热敏出纸清晰度靠条宽)。与「最大高度」分工不同:那条限的是整图(含文字)的上限","propertyTips.cd-quiet-zone":"二维码四周留出的空白格数:0 即不留白边、码面等比铺满元素框(此时靠框外的白纸充当静区);数值越大白边越宽、码面在框内越小(缺省 0,需 ISO/IEC 18004 推荐静区时填 4)"}},FS={propertyTips:{"propertyTips.ap-long-text-indent":'First-line indent for each paragraph of a long-text element, in characters: 2 means two Chinese characters wide (a common CJK convention), laid out in em units — it scales down when "Auto shrink" reduces the font size. Applies to long-text elements only; setting it on plain text has no effect.',"propertyTips.ap-img-fit":"How the image is scaled inside the element box. Contain: show the whole image, possibly with blank space. Crop: fill the box and take a region based on the crop anchor. Stretch: fill the box and distort. Original size / Shrink: never enlarge. The canvas and all three print pipelines use the same rule (Contain by default).","propertyTips.ap-img-object-position":"Crop anchor (only shown for Crop mode): cropping scales the image to fill the box, and this picks which extra edge to keep. Choose a position preset (edge / center / opposite edge), then fine-tune with the percentage: 0 aligns left/top, 100 aligns to the other end; horizontal and vertical are independent. The default is centered (choose Top to keep the head in ID photos). Other fit modes have no crop edge, so this row is hidden.","propertyTips.ap-img-fit-scale":"Crop zoom: after filling the box, enlarge the image by this much so both axes gain a crop margin — when image and box have the same aspect ratio, no zoom means nothing can be cropped. 100 = no zoom (default), maximum 400; anything outside the box is clipped by the element frame. The chosen anchor is both the pinning point and the zoom center. Shown for Crop mode only.","propertyTips.ap-rotate":"Rotation of the element about its own center, in degrees (0–359). During printing, pagination and layout use the rotated bounding box: content that does not fit at the bottom moves to the next page, and content beyond the left/right/top paper edges is clipped with a print warning. Tables, flow lists and elements in the follow-up zone below a table do not support rotation (this row is hidden for them); arbitrary angles for barcodes and QR codes require a 385dpi+ print head — lower-resolution printers only output in 90° steps.","propertyTips.fl-columns":"The number of cells per row must be specified by you — it is never inferred from content. If the column count times the cell width does not fit the element box, you get a hint but your value is not changed, and print output follows what you entered.","propertyTips.fl-row-height":"Minimum height of each cell row, in millimetres, using the same rule as table row height: a row grows when its content is taller, and text is never clipped.","propertyTips.fl-gap-x":"Horizontal whitespace between adjacent cells, in millimetres. No vertical gap is inserted; the distance between rows comes from the row height.","propertyTips.fl-auto-span":"When a cell is wider than one column, let it span two or more columns; if the current row has too few columns left, move the whole cell to the start of the next row (never split a word). Off by default — when on, the printed column count depends on font size and box width.","propertyTips.fl-max-span":'Upper limit for column spanning; it can never exceed "Columns per row". Lowering the column count also pushes this value down.',"propertyTips.fl-layout-mode":"What decides the container height. Fixed height: keep the designed height, one box per page, clip overflow (the default for existing templates, output unchanged). Dynamic pagination: the container grows with its content, continues row by row after a page fills, draws a complete border on every page, and follows the same rules as tables for the follow-up zone below the element.","propertyTips.fl-padding-top":"Whitespace between the top of the container and the first content row in dynamic pagination mode, in millimetres. Only applies in dynamic mode; every page slice uses this padding and counts it in the pagination budget. Negative or invalid values are treated as 0.","propertyTips.fl-padding-right":"Whitespace between the right side of the container and the content in dynamic pagination mode, in millimetres; it reduces the content width available for column-width estimation. Only applies in dynamic mode.","propertyTips.fl-padding-bottom":"Whitespace between the bottom of the container and the last content row in dynamic pagination mode, in millimetres. Only applies in dynamic mode; every page slice uses this padding and counts it in the pagination budget.","propertyTips.fl-padding-left":"Whitespace between the left side of the container and the content in dynamic pagination mode, in millimetres; it reduces the content width available for column-width estimation. Only applies in dynamic mode.","propertyTips.cd-bar-quiet-zone":"Number of blank modules on each side of a barcode (1 module = 1 bar width): the default of 10 is the minimum required by 1D symbologies. Smaller values narrow the quiet zone and make bars thicker in the same box (they can be enlarged). Setting 0 removes the white margin, but the quiet zone participates in bar-space-bar transitions, so codes next to text or table lines may fail to scan — verify with a real print.","propertyTips.cd-bar-height":'Target height of the black bars themselves, in millimetres (excluding the text below). The granularity is the physical width of one module, so only integer multiples are exact. Bar width takes priority: if the available height cannot fit the desired bar height, the height gives way — bars are never narrowed (thermal print clarity depends on bar width). This differs from "Maximum height", which limits the whole image including text.',"propertyTips.cd-quiet-zone":"Number of blank modules around a QR code: 0 means no white margin and the code scales to fill the element box (the surrounding white paper acts as the quiet zone). Larger values widen the margin and make the code smaller in the box. The default is 0; use 4 for the quiet zone recommended by ISO/IEC 18004."}},zS={propertyTips:{"propertyTips.ap-long-text-indent":'ระยะเว้นบรรทัดแรกของแต่ละย่อหน้าในข้อความยาว หน่วยเป็นอักขระ: ใส่ 2 หมายถึงเว้นสองตัวอักษรจีน (ตามธรรมเนียม CJK) คำนวณเป็นหน่วย em — จะย่อตามเมื่อ "ย่ออัตโนมัติ" ลดขนาดฟอนต์ ใช้เฉพาะองค์ประกอบข้อความยาว การตั้งค่าบนข้อความธรรมดาไม่มีผล',"propertyTips.ap-img-fit":"วิธีปรับขนาดรูปภาพภายในกรอบองค์ประกอบ พอดี: แสดงรูปทั้งหมดอาจมีช่องว่าง ครอบ: เติมกรอบแล้วตัดตามจุดยึดการครอป ดึง: เติมกรอบและบิดเบือน ขนาดต้นฉบับ/ย่อ: ไม่ขยาย พื้นที่ทำงานและทั้งสามไปป์ไลน์การพิมพ์ใช้กฎเดียวกัน (ค่าเริ่มต้นพอดี)","propertyTips.ap-img-object-position":"จุดยึดการครอป (แสดงเฉพาะโหมดครอบ): การครอปปรับรูปให้เติมกรอบ ตัวเลือกนี้เลือกขอบส่วนเกินที่ต้องการคงไว้ เลือกระดับตำแหน่ง (ชิดขอบ/กลาง/ชิดอีกด้าน) แล้วปรับด้วยเปอร์เซ็นต์: 0 ชิดซ้าย/บน 100 ชิดขวา/ล่าง แนวนอนและแนวตั้งอิสระต่อกัน ค่าเริ่มต้นอยู่กึ่งกลาง (เลือก บน เพื่อคงศีรษะในรูปบัตรประจำตัว) โหมดอื่นไม่มีขอบให้ครอปจึงซ่อนบรรทัดนี้","propertyTips.ap-img-fit-scale":"ขยายการครอป: หลังเติมกรอบแล้วขยายภาพอีกมากน้อยเพียงนี้ เพื่อให้ทั้งสองแกนมีขอบให้ครอป — เมื่อรูปและกรอบมีอัตราส่วนเท่ากัน การไม่ขยายจะครอปไม่ได้เลย 100 = ไม่ขยาย (ค่าเริ่มต้น) สูงสุด 400 ส่วนที่เกินกรอบถูกตัดโดยกรอบองค์ประกอบ จุดยึดที่เลือกเป็นทั้งจุดตรึงและศูนย์กลางการขยาย แสดงเฉพาะโหมดครอบ","propertyTips.ap-rotate":"มุมหมุนขององค์ประกอบรอบจุดศูนย์กลางตัวเอง เป็นองศา (0–359) ขณะพิมพ์ การแบ่งหน้าและการจัดวางใช้กล่องล้อมรอบที่หมุนแล้ว: เนื้อหาที่ไม่พอด้านล่างย้ายไปหน้าถัดไป และเนื้อหาที่เกินขอบกระดาษซ้าย/ขวา/บนถูกตัดพร้อมคำเตือน ตาราง รายการแบบไหล และองค์ประกอบในโซนตามหลังตารางไม่รองรับการหมุน (ซ่อนบรรทัดนี้); มุมใดๆ ของบาร์โค้ดและคิวอาร์โค้ดต้องการหัวพิมพ์ 385dpi ขึ้นไป — เครื่องพิมพ์ความละเอียดต่ำกว่าส่งออกได้เฉพาะขั้น 90°","propertyTips.fl-columns":"จำนวนเซลล์ต่อแถวต้องระบุเองเสมอ — ไม่คำนวณจากเนื้อหา หากจำนวนคอลัมน์คูณความกว้างเซลล์ไม่พอดีกับกรอบองค์ประกอบจะมีคำแนะนำแต่ค่าไม่เปลี่ยน และผลการพิมพ์เป็นไปตามที่ป้อน","propertyTips.fl-row-height":"ความสูงขั้นต่ำของแถวเซลล์แต่ละแถว เป็นมิลลิเมตร ใช้กฎเดียวกับความสูงแถวตาราง: แถวจะสูงขึ้นเมื่อเนื้อหาสูงกว่า และข้อความไม่ถูกตัด","propertyTips.fl-gap-x":"ช่องว่างแนวนอนระหว่างเซลล์ที่อยู่ติดกัน เป็นมิลลิเมตร ไม่มีการเว้นช่องแนวตั้ง ระยะระหว่างแถวมาจากความสูงแถว","propertyTips.fl-auto-span":"เมื่อเซลล์กว้างกว่าหนึ่งคอลัมน์ ให้ขยายครอบสองคอลัมน์ขึ้นไป; หากแถวปัจจุบันเหลือคอลัมน์ไม่พอ ย้ายเซลล์ทั้งหมดไปขึ้นต้นแถวถัดไป (ไม่ตัดคำ) ปิดอยู่โดยค่าเริ่มต้น — เมื่อเปิด จำนวนคอลัมน์ที่พิมพ์ขึ้นกับขนาดฟอนต์และความกว้างกรอบ","propertyTips.fl-max-span":'ขีดจำกัดบนของการขยายคอลัมน์ ห้ามเกิน "จำนวนคอลัมน์ต่อแถว" การลดจำนวนคอลัมน์จะดันค่านี้ลงด้วย',"propertyTips.fl-layout-mode":"อะไรเป็นตัวกำหนดความสูงของคอนเทนเนอร์ ความสูงคงที่: คงความสูงที่ออกแบบ หนึ่งกรอบต่อหน้า ตัดส่วนเกิน (ค่าเริ่มต้นของเทมเพลตเดิม ผลไม่เปลี่ยน) การแบ่งหน้าแบบไดนามิก: คอนเทนเนอร์ ขยายตามเนื้อหา ดำเนินต่อเป็นแถวหลังหน้าเต็ม วาดเส้นขอบครบทุกหน้า และปฏิบัติตามกฎเดียวกับตารางสำหรับโซนตามหลังองค์ประกอบ","propertyTips.fl-padding-top":"ช่องว่างระหว่างด้านบนของคอนเทนเนอร์กับแถวเนื้อหาแรกในโหมดแบ่งหน้าแบบไดนามิก เป็นมิลลิเมตร ใช้เฉพาะโหมดไดนามิก ทุกชิ้นของหน้าใช้ระยะนี้และนับรวมในงบการแบ่งหน้า ค่าติดลบหรือไม่ถูกต้องถือเป็น 0","propertyTips.fl-padding-right":"ช่องว่างระหว่างด้านขวาของคอนเทนเนอร์กับเนื้อหาในโหมดแบ่งหน้าแบบไดนามิก เป็นมิลลิเมตร จะลดความกว้างเนื้อหาที่ใช้คำนวณความกว้างคอลัมน์ ใช้เฉพาะโหมดไดนามิก","propertyTips.fl-padding-bottom":"ช่องว่างระหว่างด้านล่างของคอนเทนเนอร์กับแถวเนื้อหาสุดท้ายในโหมดแบ่งหน้าแบบไดนามิก เป็นมิลลิเมตร ใช้เฉพาะโหมดไดนามิก ทุกชิ้นของหน้าใช้ระยะนี้และนับรวมในงบการแบ่งหน้า","propertyTips.fl-padding-left":"ช่องว่างระหว่างด้านซ้ายของคอนเทนเนอร์กับเนื้อหาในโหมดแบ่งหน้าแบบไดนามิก เป็นมิลลิเมตร จะลดความกว้างเนื้อหาที่ใช้คำนวณความกว้างคอลัมน์ ใช้เฉพาะโหมดไดนามิก","propertyTips.cd-bar-quiet-zone":"จำนวนโมดูลว่างสองข้างของบาร์โค้ด (1 โมดูล = 1 ความกว้างแท่น): ค่าเริ่มต้น 10 คือค่าต่ำสุดที่รหัสแบบหนึ่งมิติต้องการ ค่าที่เล็กลงทำให้โซนเงียบแคบและแท่นหนาขึ้นในกรอบเดียวกัน (สามารถขยายได้) การตั้ง 0 ลบขอบขาว แต่โซนเงียบมีส่วนในการเปลี่ยนแท่น-ช่อง-แท่น รหัสที่อยู่ติดข้อความหรือเส้นตารางอาจสแกนไม่ได้ — ตรวจด้วยการพิมพ์จริง","propertyTips.cd-bar-height":'ความสูงเป้าหมายของแท่นดำเอง เป็นมิลลิเมตร (ไม่รวมข้อความด้านล่าง) ความละเอียดคือความกว้างทางกายภาพของหนึ่งโมดูล จึงแม่นยำเฉพาะจำนวนเต็มเท่านั้น ความกว้างแท่นมีสิทธิ์ก่อน: หากความสูงที่มีไม่พอตามที่ต้องการ ความสูงจะยอมตาม — ไม่เคยทำให้แท่นแคบลง (ความชัดของการพิมพ์ความร้อนขึ้นกับความกว้างแท่น) ต่างจาก "ความสูงสูงสุด" ที่จำกัดทั้งภาพรวมข้อความ',"propertyTips.cd-quiet-zone":"จำนวนโมดูลว่างรอบคิวอาร์โค้ด: 0 หมายถึงไม่มีขอบขาวและรหัสขยายเติมกรอบ (กระดาษขาวรอบนอกทำหน้าที่โซนเงียบ) ค่าที่ใหญ่ขึ้นทำให้ขอบกว้างและรหัสเล็กลงในกรอบ ค่าเริ่มต้น 0 ใช้ 4 สำหรับโซนเงียบตามที่ ISO/IEC 18004 แนะนำ"}};function Lp(t){if(typeof t!="string")return"zh-CN";const e=t.trim();return e?/^en([-_]|$)/i.test(e)?"en-US":/^th([-_]|$)/i.test(e)?"th-TH":e:"zh-CN"}function hg(){try{if(typeof navigator<"u"&&typeof navigator.language=="string")return Lp(navigator.language)}catch{}return"zh-CN"}function HS(){const t=fg();return t.init({resources:{"zh-CN":{core:CS,constants:OS.constants,propertyTips:NS.propertyTips},"en-US":{core:LS,constants:RS.constants,propertyTips:FS.propertyTips},"th-TH":{core:IS,constants:BS.constants,propertyTips:zS.propertyTips}},lng:hg(),fallbackLng:"zh-CN",ns:["core"],defaultNS:"core",keySeparator:!1,nsSeparator:!1,interpolation:{prefix:"{",suffix:"}",escapeValue:!1},returnNull:!1,returnEmptyString:!1,saveMissing:!0,missingKeyHandler:()=>{}}),t}var zi=HS(),VS=new Set,Mp=new Set;zi.on("missingKey",(t,e,r)=>{zi.exists(r,{lng:"zh-CN"})||VS.add(r)});function US(){return hg()}function GS(t,e){return typeof t=="string"?t:t==null?e:String(t)}function WS(t,e,r){const a=zi.getFixedT(Lp(t),$S()),n=r?a(e,r):a(e);return GS(n,e)}function Zt(t,e){return WS(US(),t,e)}function $S(){return["user",...Mp,"constants","propertyTips","core"]}function YS(t,e,r){const a=`${e}.`;for(const i of Object.keys(r))if(!i.startsWith(a))throw new Error(`registerPluginMessages: 语言包键必须以 "${a}" 开头,收到 "${i}"`);const n=Lp(t);return zi.addResourceBundle(n,e,r,!0,!0),Mp.add(e),()=>{zi.removeResourceBundle(n,e),Mp.delete(e)}}const KS={"toolbar.save":"保存","toolbar.preview":"预览","diagnostic.expressionUnexpectedEnd":"表达式意外结束","diagnostic.parser.trailingContent":"表达式存在多余内容: {value}","diagnostic.parser.expected":'位置 {pos}: 期望 "{value}"',"diagnostic.parser.memberName":"位置 {pos}: 成员访问需要属性名","diagnostic.parser.invalidNumber":"非法数字: {value}","diagnostic.parser.objectKey":"位置 {pos}: 对象键必须是标识符或字符串","diagnostic.parser.unexpectedToken":"位置 {pos}: 意外的符号: {value}","diagnostic.lexer.unterminatedString":"字符串未闭合","diagnostic.lexer.keyword":"不允许使用关键字: {word}","diagnostic.lexer.forbidden":"禁止访问: {word}","diagnostic.lexer.noFunctionDef":"不允许函数定义","diagnostic.lexer.noAssignment":"不允许赋值","diagnostic.lexer.noMultipleStatements":"不允许多条语句","diagnostic.lexer.invalidChar":"非法字符: {ch}","diagnostic.evaluator.undefinedIdentifier":"未定义的标识符: {name}","diagnostic.evaluator.unknownOperator":"未知运算符: {op}","diagnostic.evaluator.unknownUnaryOperator":"未知一元运算符: {op}","diagnostic.evaluator.nullProperty":"无法访问空值的属性","diagnostic.evaluator.forbiddenProperty":"禁止访问属性: {property}","diagnostic.evaluator.mathNotMethod":"Math.{name} 不是方法","diagnostic.evaluator.noMethodCall":"不支持方法调用,请使用顶级函数","diagnostic.evaluator.notFunction":"{name} 不是函数","diagnostic.evaluator.forbiddenCall":"不允许调用: {name}","diagnostic.template.unclosedBrace":"位置 {pos}: 花括号未闭合","diagnostic.template.emptyExpression":"位置 {pos}: 空表达式","diagnostic.pagination.insufficientHeight":"页面可用高度不足: paper={paper}mm, margins={margins}mm, header={header}mm, footer={footer}mm","diagnostic.pagination.repeatHeaderOverflow":"表格 {id} 的重复表头高度 ({repeat}mm) 超过页面可用高度 ({avail}mm),请减少重复表头行","diagnostic.tiling.continuousUnsupported":"连续纸不支持拼版打印,请将模板纸张改为固定纸张或关闭拼版","diagnostic.tiling.sheetContinuous":"拼版目标纸张不能是连续纸","diagnostic.tiling.sheetSizeInvalid":"拼版自定义纸张宽高必须是大于 0 的数值(mm)","diagnostic.tiling.columnsInvalid":"拼版列数必须是大于 0 的整数","diagnostic.tiling.rotationNote":"(内容旋转 {angle}°,每格 {width}×{height}mm)","diagnostic.tiling.columnsExceedWidth":"拼版列数 {columns} 超出纸面可用宽度:{sheet}mm − 左右留白 {margin}mm = {avail}mm,最多可放 {max} 列;当前 {columns} 列 {label}mm 标签含间距需要 {need}mm{rotation}","diagnostic.tiling.labelHeightExceed":"标签高度 {height}mm 超出纸面可用高度 {avail}mm,拼版每张 0 行;请缩小标签高度或改用横向纸{rotation}","diagnostic.multiTemplate.emptyPages":"多页面模板至少需要一页","diagnostic.multiTemplate.continuous":"多页面模板不支持连续纸({page})","diagnostic.multiTemplate.tiling":"多页面模板不支持标签拼版({page})","diagnostic.multiTemplate.paperMismatch":"多页面模板各页纸张尺寸必须一致({page} {width}×{height}mm 与首页 {firstWidth}×{firstHeight}mm 不同)","diagnostic.multiTemplate.emptyData":"多页面模板至少需要一份数据","diagnostic.multiTemplate.pageLabelNamed":"第 {index} 页「{name}」","diagnostic.multiTemplate.pageLabelPlain":"第 {index} 页","client.cancelled":"连接已取消","client.invalidToken":"配对 token 无效或来源未授权","client.notRunning":"未发现运行中的打印客户端(已探测默认端口区间),请确认客户端已启动","client.notConnected":"打印客户端未连接","client.timeout":"请求 {type} 超时未响应","client.closed":"连接已关闭","client.disconnected":"与客户端的连接中断","client.unregisteredHandler":"桌面端请求未注册处理器","client.internalError":"内部错误","table.atLeastTwoCells":"至少选择 2 个单元格","table.crossRowTypes":"合并区域不能跨越不同类型的行","table.dataVerticalMerge":"数据行将按列表展开,纵向合并请使用单元格属性「按值合并」","table.partialOverlap":"选区与已有合并区域部分重叠","table.lastRow":"不能删除最后一行","table.lastColumn":"不能删除最后一列","table.dataRowExists":"数据行已存在(第 {row} 行),全表最多一行","table.headerContinuous":"标题行必须从表格顶部连续设置","table.subtotalAfterData":"请先设置数据行,小计/汇总行必须位于数据行之后","table.subtotalBeforeData":"小计/汇总行必须位于数据行之后","table.subtotalBeforeSummary":"小计行必须位于汇总行之前","table.summaryAfterSubtotal":"汇总行必须位于小计行之后","table.headerBreak":"取消该标题行会导致标题行不连续,请先调整后续标题行","table.defaultHeader":"列{index}","table.borderHint":"线型 / 宽度 / 颜色是待应用规格:选中格已有的边框规格一致时会填进这三行;四边不一致的项显示「混合」,一条边都没有时显示「无 / 0」。改完点「全部 / 外侧 / 内部」或勾选上、下、左、右某条边才会写入选中的单元格;「无」是清除边框","table.borderHintMulti":"多选时不回显单格边框:线型 / 宽度 / 颜色按当前设置作为批写规格,点「全部 / 外侧 / 内部」或勾选某条边后写入所有选中格;「无」是清除边框","table.borderHintMixed":"当前单元格四边边框规格不一致:带「混合」的项不谎报,未改项在点「全部 / 外侧 / 内部」或勾选单边时按缺省档(实线 0.75pt)写入,改任一项即按该值批写","diagnostic.pagination.overflowTop":"元素 {id} 旋转 {rot}° 后顶部超出页首 {amount}mm,打印将被裁切","diagnostic.pagination.overflowRight":"元素 {id} 超出纸面右侧 {amount}mm,打印将被裁切","diagnostic.pagination.overflowLeft":"元素 {id} 超出纸面左侧 {amount}mm,打印将被裁切","crop.sampleNote":"图片还没设置,上面按内置示例图演示取位;换上真图后档位与可挪量按真图重算","crop.verticalPosition":"垂直位置 (%)","crop.horizontalPosition":"水平位置 (%)","crop.scaleLabel":"放大比例 (%)","crop.originalValue":"已保留模板里的原值;改动下面任一项就整体替换成新的取位","crop.movableBoth":"水平可挪 {x}mm、垂直可挪 {y}mm:0 贴左/贴顶,100 贴右/贴底","crop.movableX":"水平可挪 {x}mm;垂直这一轴已贴满,挪不动","crop.movableY":"垂直可挪 {y}mm;水平这一轴已贴满,挪不动","crop.noRoom":"这个缩放下图与框正好一样大,两轴都没有可挪的余量","crop.top":"顶部","crop.center":"居中","crop.bottom":"底部","crop.left":"左侧","crop.right":"右侧","crop.topLeft":"左上","crop.topCenter":"上中","crop.topRight":"右上","crop.middleLeft":"左中","crop.middleRight":"右中","crop.bottomLeft":"左下","crop.bottomCenter":"下中","crop.bottomRight":"右下","crop.fitContain":"包含(保持比例)","crop.fitCover":"剪裁(等比铺满后裁边)","crop.fitFill":"拉伸填满","crop.fitNone":"原始尺寸","crop.fitScaleDown":"缩小(保持比例)","barcode.recommendOk":"按 {dpi}dpi 推荐条宽倍率 {rec}(每模块 {recDots} 个打印点 = {width}mm,取达到 {min}mm 下限的最小档);当前倍率 {current} 折算为 {curDots} 点 / {curWidth}mm,已达标。这里只提示,不会替你改值","barcode.recommendLow":"按 {dpi}dpi 推荐条宽倍率 {rec}(每模块 {recDots} 个打印点 = {width}mm,取达到 {min}mm 下限的最小档);当前倍率 {current} 只有 {curDots} 点 / {curWidth}mm,低于下限。这里只提示,不会替你改值","code.rotateNote":"条码与二维码仅支持 90° 步进;任意角度需 385dpi 以上打印头","colorPicker.pickColor":"颜色选择","colorPicker.hexValue":"颜色值","colorPicker.customColor":"自定义颜色","colorPicker.hue":"色相","colorPicker.commonColors":"常用颜色","colorPicker.clear":"清除选中的颜色","colorPicker.clearShort":"清除","save.geometryWarningConfirm":`出纸提示:部分内容超出纸面,打印时会被裁切。
|
|
14
|
+
是否接受裁切并继续保存?
|
|
15
|
+
点击“确定”继续保存,点击“取消”返回修改。
|
|
16
|
+
|
|
17
|
+
{warnings}`,"store.tilingSinglePage":"开启拼版后只能有一个设计页面","elementGroup.chart":"图表","service.printData.emptyArray":"批量打印数据必须是非空对象数组","service.printData.tooMany":"批量打印最多支持 {max} 份,当前 {count} 份","service.printData.itemNotObject":"批量打印数据第 {index} 项必须是对象","service.printData.notObjectOrArray":"printData 必须是对象或数组",...{"binding.k1":"上传图片","binding.k2":"仅支持上传图片文件","binding.k3":"图片上传能力未配置","binding.k4":"上传中...","binding.k5":"图片上传失败","binding.k6":"图片上传失败","binding.k7":"上传图片","binding.k8":"支持 jpg/png/gif/bmp/webp/svg 等图片,上传后填入相对路径","binding.k9":"内容","binding.k10":"输入内容,支持 {字段} 表达式","canvas.k11":"页眉","canvas.k12":"页脚","canvas.k13":"+ 元素","canvas.k14":"+ 静态文本","canvas.k15":"+ 取值字段","canvas.k16":"复制","canvas.k17":"剪切","canvas.k18":"粘贴","canvas.k19":"删除","canvas.k20":"置顶","canvas.k21":"上移","canvas.k22":"下移","canvas.k23":"置底","canvas.k24":"粘贴","canvas.k25":"全选","canvas.k26":"取消选择","code.k27":"二维码","controls.k28":"减小","controls.k29":"减小","controls.k30":"增大","controls.k31":"增大","controls.k32":"字段说明","controls.k33":"恢复默认值","controls.k34":"恢复默认值({v0}{v1})","controls.k35":"{v0}(应用到全部选中格)","controls.k36":"颜色选择","cropAnchor.k37":"自定义(保留原值)","cropAnchor.k38":"默认 100","cropAnchor.k39":"示例图","cropAnchor.k40":"原图","elements.k41":"文本","elements.k42":"长文本内容","elements.k43":"图片","flowList.k44":"黄芪 20g","flowList.k45":"当归尾 15g","flowList.k46":"赤芍 10g","flowList.k47":"川芎 10g","flowList.k48":"地龙 10g","flowList.k49":"桃仁 10g","flowList.k50":"红花 10g","fontSelect.k51":"默认","fontSelect.k52":"{v0}(未知)","fontSelect.k53":"使用「{v0}」","formatBar.k54":"实线","formatBar.k55":"虚线","formatBar.k56":"点线","formatBar.k57":"双线","formatBar.k58":"退出格式刷(Esc)","formatBar.k59":"格式刷(表格单元格暂不支持)","formatBar.k60":"格式刷(需选中元素)","formatBar.k61":"格式刷(请仅选中一个源元素)","formatBar.k62":"格式刷:单击刷一次,双击连续刷","formatBar.k63":"{v0}(需选中文本元素)","formatBar.k64":"无边框","formatBar.k65":"所有边框","formatBar.k66":"外侧边框","formatBar.k67":"内部边框","formatBar.k68":"内部边框(仅表格单元格可用)","formatBar.k69":"上边框","formatBar.k70":"下边框","formatBar.k71":"左边框","formatBar.k72":"右边框","formatBar.k73":"{v0}(再点一次取消,线型=无)","formatBar.k74":"粗细","formatBar.k75":"混合","formatBar.k76":"颜色","formatBar.k77":"边框颜色","formatBar.k78":"当前单元格四边规格不一致:留空的项不谎报,点预设/单边时按缺省档(实线 0.75 / #333333)批写","formatBar.k79":"左对齐","formatBar.k80":"水平居中","formatBar.k81":"右对齐","formatBar.k82":"两端对齐(撑满行宽,含末行)","formatBar.k83":"顶端对齐","formatBar.k84":"垂直居中","formatBar.k85":"底端对齐","formatBar.k86":"混合","formatBar.k87":"默认","formatBar.k88":"混合","formatBar.k89":"默认","formatBar.k90":"加粗","formatBar.k91":"下划线","formatBar.k92":"删除线","formatBar.k93":"字体颜色{v0}","formatBar.fontDisabledHint":"(需选中或混选文本元素)","formatBar.k94":"背景色","formatBar.k95":"对齐","formatBar.k96":"对齐(需选中文本元素或单元格)","formatBar.k97":"对齐","formatBar.k98":"边框","formatBar.k99":"边框(需选中元素)","formatBar.k100":"边框","helpModal.k101":"帮助文档","helpModal.k102":"关闭","pageExtras.k103":"上传背景图","pageExtras.k104":"仅支持上传图片文件","pageExtras.k105":"设计背景上传能力未配置","pageExtras.k106":"上传中...","pageExtras.k107":"设计背景上传失败","pageExtras.k108":"设计背景上传失败","pageExtras.k109":"上传背景图","pageExtras.k110":"设计背景","pageExtras.k111":"仅设计器显示,用于套打定位,不会出现在预览和打印中","pageExtras.k112":"旋转({v0}°)","pageExtras.k113":"移除","pageExtras.k114":"自定义","pageExtras.k115":" 横向","pageExtras.k116":" 纵向","pageExtras.k117":"目标纸 {v0}{v1} {v2}×{v3}mm · {v4} 列 × {v5} 行 = 每张 {v6} 格 · 每格 {v7}×{v8}mm","pageExtras.k118":"拼版打印","pageExtras.k119":"把标签按「列 × 行」铺到一张大纸上批量打印","pageExtras.k120":"启用拼版","pageExtras.k121":"连续纸不支持拼版","pageExtras.k122":"目标纸张","pageExtras.k123":"自定义","pageExtras.k124":"目标纸宽高 (mm)","pageExtras.k125":"目标纸方向","pageExtras.k126":"纵向","pageExtras.k127":"横向","pageExtras.k128":"拼版留白 (mm)","pageExtras.k129":"上","pageExtras.k130":"下","pageExtras.k131":"左","pageExtras.k132":"右","pageExtras.k133":"格间距与列数","pageExtras.k134":"横向间距","pageExtras.k135":"纵向间距","pageExtras.k136":"列数","panels.k137":"展开素材台","panels.k138":"元素","panels.k139":"字段","panels.k140":"图层","panels.k141":"素材台","panels.k142":"收起素材台","panels.k143":"元素","panels.k144":"字段","panels.k145":"图层","panels.k146":"拖拽元素到画布","panels.k147":"业务字段","panels.k148":"搜索字段...","panels.k149":"搜索字段","panels.k150":"{v0} ({v1}) · 单击复制字段名 · 拖动中按住 Ctrl(Mac 为 ⌘)切换为插入字段名","panels.k151":"已复制","panels.k152":"暂无字段","panels.k153":"页眉","panels.k154":"页脚","panels.k155":"图层","panels.k156":"置顶","panels.k157":"上移","panels.k158":"下移","panels.k159":"置底","panels.k160":"组合 (Ctrl+G)","panels.k161":"取消组合 (Ctrl+Shift+G)","panels.k162":"页面 {v0}","panels.k163":"{v0}(双击重命名)","panels.k164":"双击重命名","panels.k165":"页面 {v0}","panels.k166":"拼版模板仅允许一个设计页面","panels.k167":"新增页面(在当前页后追加空白页)","panels.k168":"拼版模板仅允许一个设计页面","panels.k169":"复制当前页「{v0}」","panels.k170":"删除当前页「{v0}」","panels.k171":"仅多页面模板可删除页面","panels.k172":"前移「{v0}」","panels.k173":"后移「{v0}」","panels.k174":"横向","panels.k175":"纵向","panels.k176":"缩放 {v0}%","propertyPanel.k177":"全部","propertyPanel.k178":"外侧","propertyPanel.k179":"内部","propertyPanel.k180":"无","propertyPanel.k181":"上","propertyPanel.k182":"右","propertyPanel.k183":"下","propertyPanel.k184":"左","propertyPanel.k185":"位置与尺寸","propertyPanel.k186":"外边距 (mm)","propertyPanel.k187":"上","propertyPanel.k188":"右","propertyPanel.k189":"下","propertyPanel.k190":"左","propertyPanel.k191":"旋转 (°)","propertyPanel.k192":"逆时针 90°","propertyPanel.k193":"逆时针旋转 90 度","propertyPanel.k194":"顺时针 90°","propertyPanel.k195":"顺时针旋转 90 度","propertyPanel.k196":"外观","propertyPanel.k197":"字体","propertyPanel.k198":"默认","propertyPanel.k199":"字体大小","propertyPanel.k200":"字体粗细","propertyPanel.k201":"正常","propertyPanel.k202":"粗体","propertyPanel.k203":"更粗","propertyPanel.k204":"细体","propertyPanel.k205":"对齐","propertyPanel.k206":"左","propertyPanel.k207":"中","propertyPanel.k208":"右","propertyPanel.k209":"两端","propertyPanel.k210":"垂直对齐","propertyPanel.k211":"顶","propertyPanel.k212":"中","propertyPanel.k213":"底","propertyPanel.k214":"颜色","propertyPanel.k215":"字体颜色","propertyPanel.k216":"背景色","propertyPanel.k217":"背景颜色","propertyPanel.k218":"行高","propertyPanel.k219":"字间距","propertyPanel.k220":"文字溢出","propertyPanel.k221":"截断","propertyPanel.k222":"自动缩小","propertyPanel.k223":"自适应行高","propertyPanel.k224":"最小字号 (pt)","propertyPanel.k225":"默认 6","propertyPanel.k226":"首行缩进 (字符)","propertyPanel.k227":"默认 0","propertyPanel.k228":"自动换行","propertyPanel.k229":"保留换行符","propertyPanel.k230":"缩放模式","propertyPanel.k231":"裁剪锚点","propertyPanel.k232":"当前元素不支持外观设置","propertyPanel.k233":"条码设置","propertyPanel.k234":"码制","propertyPanel.k235":"CODE128(通用)","propertyPanel.k236":"EAN13(商品码)","propertyPanel.k237":"打印机分辨率","propertyPanel.k238":"不指定(按条宽渲染)","propertyPanel.k239":"203 dpi(8 点/mm)","propertyPanel.k240":"300 dpi(11.8 点/mm)","propertyPanel.k241":"600 dpi(23.6 点/mm)","propertyPanel.k242":"填写后条宽吸附到整数打印点(消除出纸「条宽忽宽忽窄」):条码先按条宽渲染,可用宽度够就原样落纸,不够才整体等比缩小","propertyPanel.k243":"条宽(倍率)","propertyPanel.k244":"已设置打印机分辨率:条宽会被吸附到最近的整数打印点(DPI 优先于毫米值),元素框放不下时整体等比缩小","propertyPanel.k245":"热敏/针式打印建议 3 及以上:决定条码的落纸尺寸,条越粗出纸后条宽越稳定","propertyPanel.k246":"静区 (模块)","propertyPanel.k247":"默认 10","propertyPanel.k248":"条高 (mm)","propertyPanel.k249":"默认 30 模块","propertyPanel.k250":"显示文本","propertyPanel.k251":"文本字号(相对条高,条高为 30)","propertyPanel.k252":"默认 10","propertyPanel.k253":"纠错级别","propertyPanel.k254":"L(最低,容量大)","propertyPanel.k255":"M(推荐)","propertyPanel.k256":"H(最高)","propertyPanel.k257":"静区 (模块)","propertyPanel.k258":"默认 0","propertyPanel.k259":"自定义设置","propertyPanel.k260":"条码尺寸由「条宽」与「打印机分辨率」结算:宽度足够时按条宽原样落纸,不足时整体等比缩小;拉伸会把条宽变成非整数,故条形码不提供缩放模式,可用「最大宽高」限制上限。要放大条码:先加条宽倍率,再收窄静区(左右白边会换成条宽),必要时关掉显示文本以让出文本区高度","propertyPanel.k261":"缩放模式","propertyPanel.k262":"最大宽度 (mm)","propertyPanel.k263":"默认","propertyPanel.k264":"最大高度 (mm)","propertyPanel.k265":"默认","propertyPanel.k266":"流式列表","propertyPanel.k267":"布局模式","propertyPanel.k268":"固定高度","propertyPanel.k269":"动态分页","propertyPanel.k270":"上内边距 (mm)","propertyPanel.k271":"右内边距 (mm)","propertyPanel.k272":"下内边距 (mm)","propertyPanel.k273":"左内边距 (mm)","propertyPanel.k274":"每行列数","propertyPanel.k275":"行高 (mm)","propertyPanel.k276":"单元横向间距 (mm)","propertyPanel.k277":"内容过长时跨列","propertyPanel.k278":"最多跨几列","propertyPanel.k279":"按当前字号与框宽,{v0} 列偏挤(可放约 {v1} 列)。数值保持不变,出纸按 {v2} 列排。","propertyPanel.k280":"混合","propertyPanel.k281":"边框与背景","propertyPanel.k282":"线型","propertyPanel.k283":"边框宽度","propertyPanel.k284":"混合","propertyPanel.k285":"边框颜色","propertyPanel.k286":"边框颜色","propertyPanel.k287":"背景色","propertyPanel.k288":"背景颜色","propertyPanel.k289":"高级设置","propertyPanel.k290":"锁定","propertyPanel.k291":"每页重复","propertyPanel.k292":"每页固定","propertyPanel.k293":"层级","propertyPanel.k294":"删除元素","propertyPanel.k295":"高级设置说明","propertyPanel.k296":"高级设置说明","propertyPanel.k297":"其他","propertyPanel.k298":"纸张设置","propertyPanel.k299":"纸张尺寸","propertyPanel.k300":"自定义宽高","propertyPanel.k301":"纸宽 (mm)","propertyPanel.k302":"自定义宽高 (mm)","propertyPanel.k303":"纸张方向","propertyPanel.k304":"纵向","propertyPanel.k305":"横向","propertyPanel.k306":"切换即交换纸张长宽(设计稿内容随之铺在该尺寸上)","propertyPanel.k307":"内容旋转角度","propertyPanel.k308":"拼版时每个标签的内容按该角度旋转;90°/270° 时每格占位宽高互换,列数自动铺满新档位上限,行数按互换后重算;0° 为不旋转(默认)","propertyPanel.k309":"整页内容旋转对应角度出纸;90°/270° 时纸张长宽互换以贴合内容,内容不变形不裁切;0° 为不旋转(默认)","propertyPanel.k310":"页面背景色","propertyPanel.k311":"页面背景色","propertyPanel.k312":"页边距 (mm)","propertyPanel.k313":"上","propertyPanel.k314":"下","propertyPanel.k315":"左","propertyPanel.k316":"右","propertyPanel.k317":"页眉/页脚高度 (mm)","propertyPanel.k318":"页眉高度","propertyPanel.k319":"页脚高度","propertyPanel.k320":"展开属性台","propertyPanel.k321":"元素属性","propertyPanel.k322":"页面属性","propertyPanel.k323":"属性台","propertyPanel.k324":"收起属性台","propertyPanel.k325":"元素属性","propertyPanel.k326":"页面属性","propertyPanel.k327":"请在画布中选择一个元素","propertyPanel.k328":"自定义属性","propertySearch.k328":"搜索属性...","propertySearch.k329":"搜索属性","tableProps.k330":"多级表头作为一个结构整体重复,勾选后表头区所有行都会在每页顶部重复","tableProps.k331":"标题行","tableProps.k332":"数据行","tableProps.k333":"小计行(每页小计)","tableProps.k334":"汇总行","tableProps.k335":"CODE128(通用)","tableProps.k336":"EAN13(商品码)","tableProps.k337":"L(最低,容量大)","tableProps.k338":"M(推荐)","tableProps.k339":"H(最高)","tableProps.k340":"截断","tableProps.k341":"自动缩小","tableProps.k342":"自适应行高","tableProps.k343":"多选","tableProps.k344":"行属性","tableProps.k345":"行属性","tableProps.k346":"行类型","tableProps.k347":"行高 (mm)","tableProps.k348":"表头每页重复","tableProps.k349":"表格设置","tableProps.k350":"列表数据源字段","tableProps.k351":"默认字体","tableProps.k352":"默认","tableProps.k353":"默认字号 (pt)","tableProps.k354":"默认","tableProps.k355":"默认文字颜色","tableProps.k356":"默认文字颜色","tableProps.k357":"默认内边距 (mm)","tableProps.k358":"默认","tableProps.k359":"列宽 (mm)","tableProps.k360":"列{v0}","tableProps.k361":"表格总宽不能超过打印范围宽度 {v0}mm,列{v1} 已调整为 {v2}mm","tableProps.k362":"启用分页","tableProps.k363":"参与分页","tableProps.k364":"与下元素同页","tableProps.k365":"分页配置","tableProps.k366":"上","tableProps.k367":"右","tableProps.k368":"下","tableProps.k369":"左","tableProps.k370":"单元格","tableProps.k371":"单元格","tableProps.k372":"多选","tableProps.k373":"仅数据行(明细行)支持按值合并","tableProps.k374":"恢复默认值(跟随表格默认)","tableProps.k375":"单元格","tableProps.k376":"已选 {v0} 格 · 批量设置:不显示单格配置,改动会应用到全部选中格","tableProps.k377":"单元格类型","tableProps.k378":"文本","tableProps.k379":"条形码","tableProps.k380":"二维码","tableProps.k381":"图片","tableProps.k382":"码制","tableProps.k383":"显示文本","tableProps.k384":"条宽(倍率)","tableProps.k385":"已设置打印机分辨率:条宽会被吸附到最近的整数打印点(DPI 优先于毫米值),单元格放不下时整体等比缩小","tableProps.k386":"热敏/针式打印建议 3 及以上:决定条码的落纸尺寸,条越粗出纸后条宽越稳定","tableProps.k387":"静区 (模块)","tableProps.k388":"默认 10","tableProps.k389":"条高 (mm)","tableProps.k390":"默认 30 模块","tableProps.k391":"文本字号(相对条高,条高为 30)","tableProps.k392":"默认 10","tableProps.k393":"打印机分辨率","tableProps.k394":"不指定(按条宽渲染)","tableProps.k395":"203 dpi(8 点/mm)","tableProps.k396":"300 dpi(11.8 点/mm)","tableProps.k397":"600 dpi(23.6 点/mm)","tableProps.k398":"填写后条宽吸附到整数打印点(消除出纸「条宽忽宽忽窄」):条码先按条宽渲染,可用宽度够就原样落纸,不够才整体等比缩小","tableProps.k399":"纠错级别","tableProps.k400":"静区 (模块)","tableProps.k401":"默认 0","tableProps.k402":"单元格条码尺寸由「条宽」与「打印机分辨率」结算:可用宽度足够时按条宽原样落纸,不足时整体等比缩小;拉伸会把条宽变成非整数,故条形码不提供缩放模式,可用「最大宽高」限制上限。要放大条码:先加条宽倍率,再收窄静区(左右白边会换成条宽),必要时关掉显示文本以让出文本区高度","tableProps.k403":"缩放模式","tableProps.k404":"裁剪锚点","tableProps.k405":"最大宽度 (mm)","tableProps.k406":"默认","tableProps.k407":"最大高度 (mm)","tableProps.k408":"默认","tableProps.k409":"内容","tableProps.k410":"多选(输入后覆盖全部选中格)","tableProps.k411":"输入内容,支持 {字段} 表达式","tableProps.k412":"水平对齐","tableProps.k413":"左","tableProps.k414":"中","tableProps.k415":"右","tableProps.k416":"两端","tableProps.k417":"垂直对齐","tableProps.k418":"上","tableProps.k419":"中","tableProps.k420":"下","tableProps.k421":"字体","tableProps.k422":"继承默认","tableProps.k423":"字号 (pt)","tableProps.k424":"默认","tableProps.k425":"加粗","tableProps.k426":"文字颜色","tableProps.k427":"文字颜色","tableProps.k428":"背景色","tableProps.k429":"背景颜色","tableProps.k430":"边框","tableProps.k431":"混合","tableProps.k432":"多选","tableProps.k433":"混合","tableProps.k434":"边框颜色","tableProps.k435":"全部","tableProps.k436":"外侧","tableProps.k437":"内部","tableProps.k438":"无","tableProps.k439":"内边距 (mm)","tableProps.k440":"默认","tableProps.k441":"自动换行","tableProps.k442":"文字溢出","tableProps.k443":"最小字号 (pt)","tableProps.k444":"默认 6","tableProps.k445":"单元格合并","tableProps.k446":"合并单元格","tableProps.k447":"拆分单元格","tableProps.k448":"按值合并","tableProps.k449":"明细相邻行同值时自动纵向合并;跨页时在该页内成段,续页首行重放该值","table.k450":"题","table.k451":"数","table.k452":"小","table.k453":"汇","table.k454":"标题行","table.k455":"数据行","table.k456":"小计行","table.k457":"汇总行","table.k458":"条码","table.k459":"图片","table.k460":"插入后表格总宽 {v0}mm 超过打印范围宽度 {v1}mm,请先缩小列宽","table.k461":"未指定行类型","table.k462":"未选择单元格","table.k463":"仅数据行(明细行)支持按值合并","table.k464":"未选择单元格","table.k465":"行类型仅支持单行设置","table.k466":"未选择单元格","table.k467":"在上方插入行","table.k468":"在下方插入行","table.k469":"删除行","table.k470":"在左侧插入列","table.k471":"在右侧插入列","table.k472":"删除列","table.k473":"合并单元格","table.k474":"拆分单元格","table.k475":"按值合并","table.k476":"行类型","table.k477":"列宽手柄{v0}","toolbarOverflow.k478":"剪贴板","toolbarOverflow.k479":"格式刷","toolbarOverflow.k480":"缩放","toolbarOverflow.k481":"排列 / 视图","toolbarOverflow.k482":"边框","toolbarOverflow.k483":"颜色","toolbarOverflow.k484":"对齐","toolbarOverflow.k485":"文字样式","toolbarOverflow.k486":"字体与字号","toolbarOverflow.k487":"更多","toolbarOverflow.k488":'{v0}<span class="tb-btn-text">更多</span>{v1}',"toolbar.k489":"编辑模板","toolbar.k490":"新建模板","toolbar.k491":"对齐 / 分布","toolbar.k492":"左对齐","toolbar.k493":"右对齐","toolbar.k494":"顶对齐","toolbar.k495":"底对齐","toolbar.k496":"水平居中","toolbar.k497":"垂直居中","toolbar.k498":"水平分布","toolbar.k499":"垂直分布","toolbar.k500":"层级","toolbar.k501":"置顶","toolbar.k502":"上移一层","toolbar.k503":"下移一层","toolbar.k504":"置底","toolbar.k505":"组合","toolbar.k506":"组合 (Ctrl+G)","toolbar.k507":"取消组合 (Ctrl+Shift+G)","toolbar.k508":"标尺","toolbar.k509":"显示/隐藏标尺","toolbar.k510":"网格","toolbar.k511":"显示/隐藏网格背景","toolbar.k512":"虚框","toolbar.k513":"显示/隐藏无边框表格的虚拟虚线","toolbar.k514":"吸附","toolbar.k515":"开启/关闭元素吸附到网格","toolbar.k516":"打印模板设计器","toolbar.k517":"撤销","toolbar.k518":"重做","toolbar.k519":"排列","toolbar.k520":"排列","toolbar.k521":"视图","toolbar.k522":"视图","toolbar.k523":"适应窗口","toolbar.k524":"缩小","toolbar.k525":"放大","toolbar.k526":"复制 (Ctrl+C),需选中元素","toolbar.k527":"复制 (Ctrl+C)","toolbar.k528":"粘贴 (Ctrl+V),需选中元素","toolbar.k529":"粘贴 (Ctrl+V),剪贴板为空","toolbar.k530":"粘贴 (Ctrl+V)","toolbar.k531":"删除 (Delete),需选中元素","toolbar.k532":"删除 (Delete)","toolbar.k533":"帮助文档","toolbar.k534":"预览模板打印效果","toolbar.k535":"预览","toolbar.k536":"保存模板","toolbar.k537":"保存","watermark.k538":"水印","watermark.k539":"水印表达式","watermark.k540":"直接输入文字,或用表达式:{order.no}、{printDate}","watermark.k541":"双击或点「编辑表达式」打开表达式弹框","watermark.k542":"编辑表达式","watermark.k543":"测试值","watermark.k544":"表达式取不到值时预览显示","watermark.k545":"旋转角度","watermark.k546":"颜色","watermark.k547":"水印颜色","watermark.k548":"透明度","watermark.k549":"密度","watermark.k550":"自定义","watermark.k551":"瓦片宽","watermark.k552":"瓦片高","elementDefinitions.k553":"文本","elementDefinitions.k554":"条形码","elementDefinitions.k555":"二维码","elementDefinitions.k556":"图片","elementDefinitions.k557":"表格","elementDefinitions.k558":"长文","elementDefinitions.k559":"流式列表","elementDefinitions.k560":"横线","elementDefinitions.k561":"竖线","elementDefinitions.k562":"矩形","elementDefinitions.k563":"椭圆","elementDefinitions.k564":"页码","elementDefinitions.k565":"registerElementDefinition: type 必须是非空字符串","elementDefinitions.k566":"registerElementDefinition: label 必须是非空字符串","elementDefinitions.k567":"registerElementRenderer: 需要 type 与渲染函数","panels.paperRotated":"(旋转{rot}°)","panels.statusElements":"元素 {count}{selected}","panels.statusSelected":" (选中 {n})"},...{"expression.tabField":"📁 字段","expression.tabVariable":"🔧 变量","expression.tabFunction":"⚡ 函数","expression.placeholderField":"搜索字段...","expression.placeholderVariable":"搜索变量...","expression.placeholderFunction":"搜索函数...","expression.fnSum":"求和","expression.fnAvg":"平均值","expression.fnCount":"计数","expression.fnMin":"最小值","expression.fnMax":"最大值","expression.fnAdd":"相加","expression.fnSub":"相减","expression.fnMul":"相乘","expression.fnDiv":"相除","expression.fnRound":"四舍五入","expression.fnRoundUp":"进一法","expression.fnRoundDown":"去尾法","expression.fnRoundBank":"四舍六入五成双","expression.fnMoney":"金额格式化","expression.fnDate":"日期格式化","expression.fnUpper":"大写金额","expression.fnIf":"条件判断","expression.varPageIndex":"当前页码","expression.varTotalPages":"总页数","expression.varPrintDate":"打印日期","expression.varPrintTime":"打印时间","expression.groupAggregate":"聚合函数","expression.groupMath":"数值运算","expression.groupFormat":"格式化函数","expression.previewEmpty":"(输入表达式后预览)","expression.previewNoValue":"(无法计算)","expression.previewError":"(表达式错误)","expression.k1":"帮助信息","expression.k2":"输入方式","expression.k3":"双击左侧字段、变量、函数即可插入到表达式输入框中","expression.k4":"双击途中按住 Ctrl(Mac 为 ⌘)切换为插入字段名称,当静态文本用","expression.k5":"静态数据直接输入即可,如:供应商名称","expression.k6":"动态解析字段、变量、函数必须用 {} 包裹","expression.k7":"示例:{SUM(supplier.name)}","expression.k8":"中文 key 直接写 {字段名},如 {姓名}、{supplier.名称}","expression.k9":"注意:只能嵌套一层","expression.k10":"函数使用","expression.k11":"SUM(字段) - 求和","expression.k12":"AVG(字段) - 平均值","expression.k13":"COUNT(字段) - 计数","expression.k14":"IF(条件, 真值, 假值) - 条件判断","expression.k15":"四则运算:{qty * price}、{ADD(qty, 1)}","expression.k16":"修约:ROUND 四舍五入 / ROUNDUP 进一 / ROUNDDOWN 去尾 / ROUNDBANK 四舍六入五成双","expression.k17":"系统变量","expression.k18":"{pageIndex} - 当前页码","expression.k19":"{totalPages} - 总页数","expression.k20":"{printDate} - 打印日期","expression.k21":"示例","expression.k22":"静态文本:供应商名称","expression.k23":"动态字段:{supplier.name}","expression.k24":"函数调用:{SUM(amount)}","expression.k25":'条件判断:{IF(amount>1000, "大单", "小单")}',"expression.k26":"运算并修约:{ROUND(qty * price, 2)}","expression.k27":"暂无字段","expression.k28":"已复制","expression.k29":"类型","expression.k30":"表达式编辑","expression.k31":"双击左侧字段/变量/函数插入,双击途中按住 Ctrl(Mac 为 ⌘)切换为插入字段名,或直接输入静态内容","expression.k32":"预览结果","expression.k33":"编辑表达式","expression.k34":"关闭","expression.k35":"取消","expression.k36":"确定"}},XS={"toolbar.save":"Save","toolbar.preview":"Preview","diagnostic.expressionUnexpectedEnd":"Unexpected end of expression","diagnostic.parser.trailingContent":"Unexpected content after expression: {value}","diagnostic.parser.expected":'Position {pos}: expected "{value}"',"diagnostic.parser.memberName":"Position {pos}: member access requires a property name","diagnostic.parser.invalidNumber":"Invalid number: {value}","diagnostic.parser.objectKey":"Position {pos}: object keys must be identifiers or strings","diagnostic.parser.unexpectedToken":"Position {pos}: unexpected token: {value}","diagnostic.lexer.unterminatedString":"Unterminated string","diagnostic.lexer.keyword":"Keywords are not allowed: {word}","diagnostic.lexer.forbidden":"Access denied: {word}","diagnostic.lexer.noFunctionDef":"Function definitions are not allowed","diagnostic.lexer.noAssignment":"Assignment is not allowed","diagnostic.lexer.noMultipleStatements":"Multiple statements are not allowed","diagnostic.lexer.invalidChar":"Invalid character: {ch}","diagnostic.evaluator.undefinedIdentifier":"Undefined identifier: {name}","diagnostic.evaluator.unknownOperator":"Unknown operator: {op}","diagnostic.evaluator.unknownUnaryOperator":"Unknown unary operator: {op}","diagnostic.evaluator.nullProperty":"Cannot read a property of null","diagnostic.evaluator.forbiddenProperty":"Property access denied: {property}","diagnostic.evaluator.mathNotMethod":"Math.{name} is not a method","diagnostic.evaluator.noMethodCall":"Method calls are not supported; use a top-level function","diagnostic.evaluator.notFunction":"{name} is not a function","diagnostic.evaluator.forbiddenCall":"Call not allowed: {name}","diagnostic.template.unclosedBrace":"Position {pos}: unclosed brace","diagnostic.template.emptyExpression":"Position {pos}: empty expression","diagnostic.pagination.insufficientHeight":"Insufficient page height: paper={paper}mm, margins={margins}mm, header={header}mm, footer={footer}mm","diagnostic.pagination.repeatHeaderOverflow":"Table {id}: repeated header height ({repeat}mm) exceeds available page height ({avail}mm); reduce repeated header rows","diagnostic.tiling.continuousUnsupported":"Continuous paper does not support tiling; use fixed paper or disable tiling","diagnostic.tiling.sheetContinuous":"The tiling target sheet cannot be continuous paper","diagnostic.tiling.sheetSizeInvalid":"Custom sheet width and height must be numbers greater than 0 (mm)","diagnostic.tiling.columnsInvalid":"Tiling columns must be an integer greater than 0","diagnostic.tiling.rotationNote":" (content rotated {angle}°, each cell {width}×{height}mm)","diagnostic.tiling.columnsExceedWidth":"Tiling columns {columns} exceed available sheet width: {sheet}mm − side margins {margin}mm = {avail}mm, at most {max} columns; current {columns} columns of {label}mm labels with spacing need {need}mm{rotation}","diagnostic.tiling.labelHeightExceed":"Label height {height}mm exceeds available sheet height {avail}mm, 0 rows per sheet; reduce label height or use landscape paper{rotation}","diagnostic.multiTemplate.emptyPages":"A multi-page template needs at least one page","diagnostic.multiTemplate.continuous":"Multi-page templates do not support continuous paper ({page})","diagnostic.multiTemplate.tiling":"Multi-page templates do not support label tiling ({page})","diagnostic.multiTemplate.paperMismatch":"All pages must use the same paper size ({page} {width}×{height}mm differs from first page {firstWidth}×{firstHeight}mm)","diagnostic.multiTemplate.emptyData":"A multi-page template needs at least one data record","diagnostic.multiTemplate.pageLabelNamed":'Page {index} "{name}"',"diagnostic.multiTemplate.pageLabelPlain":"Page {index}","client.cancelled":"Connection cancelled","client.invalidToken":"Invalid pairing token or unauthorized source","client.notRunning":"No running print client found (default port range probed). Please start the client","client.notConnected":"Print client is not connected","client.timeout":"Request {type} timed out","client.closed":"Connection closed","client.disconnected":"Connection to the client was lost","client.unregisteredHandler":"Desktop request handler is not registered","client.internalError":"Internal error","table.atLeastTwoCells":"Select at least 2 cells","table.crossRowTypes":"A merged region cannot span rows of different types","table.dataVerticalMerge":'Data rows expand into lists; use the cell option "Merge by value" for vertical merging',"table.partialOverlap":"Selection partially overlaps an existing merged region","table.lastRow":"Cannot delete the last row","table.lastColumn":"Cannot delete the last column","table.dataRowExists":"A data row already exists (row {row}); only one is allowed","table.headerContinuous":"Header rows must be set continuously from the top of the table","table.subtotalAfterData":"Set the data row first; subtotal/summary rows must come after it","table.subtotalBeforeData":"Subtotal/summary rows must come after the data row","table.subtotalBeforeSummary":"Subtotal rows must come before summary rows","table.summaryAfterSubtotal":"Summary rows must come after subtotal rows","table.headerBreak":"Unsetting this header row would break header continuity; adjust following rows first","table.defaultHeader":"Column {index}","table.borderHint":'Line style / width / color are pending specifications: consistent existing borders are filled in; mixed items show "Mixed", and a missing border shows "None / 0". Click All / Outside / Inside or check a side to apply; "None" clears borders',"table.borderHintMulti":'Multi-selection does not echo single-cell borders: line style / width / color act as batch settings; click All / Outside / Inside or check a side to apply to all selected cells; "None" clears borders',"table.borderHintMixed":'The four borders are inconsistent: items marked "Mixed" are not misreported; unchanged items use the default (solid 0.75pt) when you click All / Outside / Inside or check a single side',"diagnostic.pagination.overflowTop":"Element {id} rotated {rot}° exceeds page top by {amount}mm and will be clipped when printing","diagnostic.pagination.overflowRight":"Element {id} exceeds right page edge by {amount}mm and will be clipped when printing","diagnostic.pagination.overflowLeft":"Element {id} exceeds left page edge by {amount}mm and will be clipped when printing","crop.sampleNote":"No image set; the built-in sample shows positioning. Ranges are recalculated with a real image.","crop.verticalPosition":"Vertical position (%)","crop.horizontalPosition":"Horizontal position (%)","crop.scaleLabel":"Scale (%)","crop.originalValue":"Original template value kept; changing any field below replaces it with a new position","crop.movableBoth":"Horizontal range {x}mm, vertical range {y}mm: 0 = left/top, 100 = right/bottom","crop.movableX":"Horizontal range {x}mm; the vertical axis is already full","crop.movableY":"Vertical range {y}mm; the horizontal axis is already full","crop.noRoom":"At this scale the image exactly fits the box; neither axis has room to move","crop.top":"Top","crop.center":"Center","crop.bottom":"Bottom","crop.left":"Left","crop.right":"Right","crop.topLeft":"Top left","crop.topCenter":"Top center","crop.topRight":"Top right","crop.middleLeft":"Middle left","crop.middleRight":"Middle right","crop.bottomLeft":"Bottom left","crop.bottomCenter":"Bottom center","crop.bottomRight":"Bottom right","crop.fitContain":"Contain (keep ratio)","crop.fitCover":"Cover (fill and crop edges)","crop.fitFill":"Stretch to fill","crop.fitNone":"Original size","crop.fitScaleDown":"Scale down (keep ratio)","barcode.recommendOk":"At {dpi}dpi the recommended bar-width ratio is {rec} ({recDots} print dots per module = {width}mm, the smallest step reaching the {min}mm minimum); current ratio {current} works out to {curDots} dots / {curWidth}mm, which meets the minimum. Informational only — your value is not changed.","barcode.recommendLow":"At {dpi}dpi the recommended bar-width ratio is {rec} ({recDots} print dots per module = {width}mm, the smallest step reaching the {min}mm minimum); current ratio {current} works out to {curDots} dots / {curWidth}mm, which is below the minimum. Informational only — your value is not changed.","code.rotateNote":"Barcodes and QR codes support 90° steps only; arbitrary angles require a 385dpi+ print head","colorPicker.pickColor":"Pick a color","colorPicker.hexValue":"Color value","colorPicker.customColor":"Custom color","colorPicker.hue":"Hue","colorPicker.commonColors":"Common colors","colorPicker.clear":"Clear the selected color","colorPicker.clearShort":"Clear","save.geometryWarningConfirm":`Print warning: some content extends beyond the paper and will be clipped.
|
|
18
|
+
Accept clipping and continue saving?
|
|
19
|
+
Click OK to save, Cancel to go back and edit.
|
|
20
|
+
|
|
21
|
+
{warnings}`,"store.tilingSinglePage":"Tiling allows only one design page","elementGroup.chart":"Chart","service.printData.emptyArray":"Batch print data must be a non-empty array of objects","service.printData.tooMany":"Batch printing supports at most {max} copies, got {count}","service.printData.itemNotObject":"Batch print data item {index} must be an object","service.printData.notObjectOrArray":"printData must be an object or array",...{"binding.k1":"Upload image","binding.k2":"Only image files are supported","binding.k3":"Image upload is not configured","binding.k4":"Uploading...","binding.k5":"Image upload failed","binding.k6":"Image upload failed","binding.k7":"Upload image","binding.k8":"Supports jpg/png/gif/bmp/webp/svg images; enter a relative path after upload","binding.k9":"Content","binding.k10":"Enter content; supports {field} expressions","canvas.k11":"Header","canvas.k12":"Footer","canvas.k13":"+ Element","canvas.k14":"+ Static text","canvas.k15":"+ Data field","canvas.k16":"Copy","canvas.k17":"Cut","canvas.k18":"Paste","canvas.k19":"Delete","canvas.k20":"Bring to front","canvas.k21":"Move up","canvas.k22":"Move down","canvas.k23":"Send to back","canvas.k24":"Paste","canvas.k25":"Select all","canvas.k26":"Deselect","code.k27":"QR code","controls.k28":"Decrease","controls.k29":"Decrease","controls.k30":"Increase","controls.k31":"Increase","controls.k32":"Field description","controls.k33":"Restore default","controls.k34":"Restore default ({v0}{v1})","controls.k35":"{v0} (apply to all selected cells)","controls.k36":"Color picker","cropAnchor.k37":"Custom (keep original)","cropAnchor.k38":"Default 100","cropAnchor.k39":"Sample image","cropAnchor.k40":"Original image","elements.k41":"Text","elements.k42":"Long text content","elements.k43":"Image","flowList.k44":"Herb 20g","flowList.k45":"Herb 15g","flowList.k46":"Herb 10g","flowList.k47":"Herb 10g","flowList.k48":"Herb 10g","flowList.k49":"Herb 10g","flowList.k50":"Herb 10g","fontSelect.k51":"Default","fontSelect.k52":"{v0} (unknown)","fontSelect.k53":'Use "{v0}"',"formatBar.k54":"Solid","formatBar.k55":"Dashed","formatBar.k56":"Dotted","formatBar.k57":"Double","formatBar.k58":"Exit format painter (Esc)","formatBar.k59":"Format painter (not supported for table cells)","formatBar.k60":"Format painter (select an element first)","formatBar.k61":"Format painter (select exactly one source element)","formatBar.k62":"Format painter: single-click to paint once, double-click for continuous","formatBar.k63":"{v0} (select a text element)","formatBar.k64":"No border","formatBar.k65":"All borders","formatBar.k66":"Outside borders","formatBar.k67":"Inside borders","formatBar.k68":"Inside borders (table cells only)","formatBar.k69":"Top border","formatBar.k70":"Bottom border","formatBar.k71":"Left border","formatBar.k72":"Right border","formatBar.k73":"{v0} (click again to cancel, style = none)","formatBar.k74":"Width","formatBar.k75":"Mixed","formatBar.k76":"Color","formatBar.k77":"Border color","formatBar.k78":"The four borders are inconsistent: blank items are not misreported; presets/single sides use defaults (solid 0.75 / #333333)","formatBar.k79":"Align left","formatBar.k80":"Align center","formatBar.k81":"Align right","formatBar.k82":"Justify (fill line width, including last line)","formatBar.k83":"Align top","formatBar.k84":"Align middle","formatBar.k85":"Align bottom","formatBar.k86":"Mixed","formatBar.k87":"Default","formatBar.k88":"Mixed","formatBar.k89":"Default","formatBar.k90":"Bold","formatBar.k91":"Underline","formatBar.k92":"Strikethrough","formatBar.k93":"Font color {v0}","formatBar.fontDisabledHint":"(select or mix text elements)","formatBar.k94":"Background color","formatBar.k95":"Align","formatBar.k96":"Align (select a text element or cell)","formatBar.k97":"Align","formatBar.k98":"Border","formatBar.k99":"Border (select an element)","formatBar.k100":"Border","helpModal.k101":"Help","helpModal.k102":"Close","pageExtras.k103":"Upload background image","pageExtras.k104":"Only image files are supported","pageExtras.k105":"Design background upload is not configured","pageExtras.k106":"Uploading...","pageExtras.k107":"Design background upload failed","pageExtras.k108":"Design background upload failed","pageExtras.k109":"Upload background image","pageExtras.k110":"Design background","pageExtras.k111":"Designer only, for alignment; not shown in preview or print","pageExtras.k112":"Rotate ({v0}°)","pageExtras.k113":"Remove","pageExtras.k114":"Custom","pageExtras.k115":" Landscape","pageExtras.k116":" Portrait","pageExtras.k117":"Target sheet {v0}{v1} {v2}×{v3}mm · {v4} cols × {v5} rows = {v6} cells/sheet · each {v7}×{v8}mm","pageExtras.k118":"Tiling print","pageExtras.k119":"Arrange labels in rows × columns on a large sheet for batch printing","pageExtras.k120":"Enable tiling","pageExtras.k121":"Continuous paper does not support tiling","pageExtras.k122":"Target sheet","pageExtras.k123":"Custom","pageExtras.k124":"Target sheet size (mm)","pageExtras.k125":"Target sheet orientation","pageExtras.k126":"Portrait","pageExtras.k127":"Landscape","pageExtras.k128":"Tiling margins (mm)","pageExtras.k129":"Top","pageExtras.k130":"Bottom","pageExtras.k131":"Left","pageExtras.k132":"Right","pageExtras.k133":"Cell spacing & columns","pageExtras.k134":"Horizontal gap","pageExtras.k135":"Vertical gap","pageExtras.k136":"Columns","panels.k137":"Expand asset panel","panels.k138":"Elements","panels.k139":"Fields","panels.k140":"Layers","panels.k141":"Assets","panels.k142":"Collapse asset panel","panels.k143":"Elements","panels.k144":"Fields","panels.k145":"Layers","panels.k146":"Drag elements onto the canvas","panels.k147":"Business fields","panels.k148":"Search fields...","panels.k149":"Search fields","panels.k150":"{v0} ({v1}) · click to copy field name · hold Ctrl (⌘ on Mac) while dragging to insert field name","panels.k151":"Copied","panels.k152":"No fields","panels.k153":"Header","panels.k154":"Footer","panels.k155":"Layers","panels.k156":"Bring to front","panels.k157":"Move up","panels.k158":"Move down","panels.k159":"Send to back","panels.k160":"Group (Ctrl+G)","panels.k161":"Ungroup (Ctrl+Shift+G)","panels.k162":"Page {v0}","panels.k163":"{v0} (double-click to rename)","panels.k164":"Double-click to rename","panels.k165":"Page {v0}","panels.k166":"Tiling templates allow only one design page","panels.k167":"Add page (append a blank page after current)","panels.k168":"Tiling templates allow only one design page","panels.k169":'Duplicate current page "{v0}"',"panels.k170":'Delete current page "{v0}"',"panels.k171":"Only multi-page templates can delete pages","panels.k172":'Move "{v0}" forward',"panels.k173":'Move "{v0}" backward',"panels.k174":"Landscape","panels.k175":"Portrait","panels.k176":"Zoom {v0}%","propertyPanel.k177":"All","propertyPanel.k178":"Outside","propertyPanel.k179":"Inside","propertyPanel.k180":"None","propertyPanel.k181":"Top","propertyPanel.k182":"Right","propertyPanel.k183":"Bottom","propertyPanel.k184":"Left","propertyPanel.k185":"Position & size","propertyPanel.k186":"Margins (mm)","propertyPanel.k187":"Top","propertyPanel.k188":"Right","propertyPanel.k189":"Bottom","propertyPanel.k190":"Left","propertyPanel.k191":"Rotation (°)","propertyPanel.k192":"Counter-clockwise 90°","propertyPanel.k193":"Rotate counter-clockwise 90°","propertyPanel.k194":"Clockwise 90°","propertyPanel.k195":"Rotate clockwise 90°","propertyPanel.k196":"Appearance","propertyPanel.k197":"Font","propertyPanel.k198":"Default","propertyPanel.k199":"Font size","propertyPanel.k200":"Font weight","propertyPanel.k201":"Normal","propertyPanel.k202":"Bold","propertyPanel.k203":"Bolder","propertyPanel.k204":"Lighter","propertyPanel.k205":"Align","propertyPanel.k206":"Left","propertyPanel.k207":"Medium","propertyPanel.k208":"Right","propertyPanel.k209":"Justify","propertyPanel.k210":"Vertical align","propertyPanel.k211":"Top","propertyPanel.k212":"Medium","propertyPanel.k213":"Bottom","propertyPanel.k214":"Color","propertyPanel.k215":"Font color","propertyPanel.k216":"Background color","propertyPanel.k217":"Background color","propertyPanel.k218":"Line height","propertyPanel.k219":"Letter spacing","propertyPanel.k220":"Text overflow","propertyPanel.k221":"Truncate","propertyPanel.k222":"Shrink to fit","propertyPanel.k223":"Auto row height","propertyPanel.k224":"Min font size (pt)","propertyPanel.k225":"Default 6","propertyPanel.k226":"First-line indent (chars)","propertyPanel.k227":"Default 0","propertyPanel.k228":"Word wrap","propertyPanel.k229":"Keep line breaks","propertyPanel.k230":"Scale mode","propertyPanel.k231":"Crop anchor","propertyPanel.k232":"Appearance settings are not supported for this element","propertyPanel.k233":"Barcode settings","propertyPanel.k234":"Symbology","propertyPanel.k235":"CODE128 (general)","propertyPanel.k236":"EAN13 (retail)","propertyPanel.k237":"Printer DPI","propertyPanel.k238":"Unspecified (render by bar width)","propertyPanel.k239":"203 dpi (8 dots/mm)","propertyPanel.k240":"300 dpi (11.8 dots/mm)","propertyPanel.k241":"600 dpi (23.6 dots/mm)","propertyPanel.k242":"When set, bar width snaps to whole print dots: the barcode renders at bar width; if it fits it prints as-is, otherwise it scales down proportionally","propertyPanel.k243":"Bar width (ratio)","propertyPanel.k244":"Printer DPI set: bar width snaps to the nearest whole dot (DPI overrides mm); scales down if it does not fit","propertyPanel.k245":"Use 3+ for thermal/dot-matrix: sets the printed bar size; thicker bars are more stable","propertyPanel.k246":"Quiet zone (modules)","propertyPanel.k247":"Default 10","propertyPanel.k248":"Bar height (mm)","propertyPanel.k249":"Default 30 modules","propertyPanel.k250":"Show text","propertyPanel.k251":"Text size (relative to bar height 30)","propertyPanel.k252":"Default 10","propertyPanel.k253":"Error correction","propertyPanel.k254":"L (lowest, highest capacity)","propertyPanel.k255":"M (recommended)","propertyPanel.k256":"H (highest)","propertyPanel.k257":"Quiet zone (modules)","propertyPanel.k258":"Default 0","propertyPanel.k259":"Custom settings","propertyPanel.k260":"Barcode size is determined by bar width and printer DPI: prints at bar width if it fits, otherwise scales down; stretching would make non-integer bars, so no scale mode—use max width/height as a cap. To enlarge: raise bar width, narrow the quiet zone, or hide text for more room","propertyPanel.k261":"Scale mode","propertyPanel.k262":"Max width (mm)","propertyPanel.k263":"Default","propertyPanel.k264":"Max height (mm)","propertyPanel.k265":"Default","propertyPanel.k266":"Flow list","propertyPanel.k267":"Layout mode","propertyPanel.k268":"Fixed height","propertyPanel.k269":"Dynamic pagination","propertyPanel.k270":"Top padding (mm)","propertyPanel.k271":"Right padding (mm)","propertyPanel.k272":"Bottom padding (mm)","propertyPanel.k273":"Left padding (mm)","propertyPanel.k274":"Columns per row","propertyPanel.k275":"Row height (mm)","propertyPanel.k276":"Cell horizontal gap (mm)","propertyPanel.k277":"Span columns when content is long","propertyPanel.k278":"Max columns to span","propertyPanel.k279":"At the current font size and width, {v0} columns is tight (about {v1} fit). Value unchanged; print uses {v2} columns.","propertyPanel.k280":"Mixed","propertyPanel.k281":"Border & background","propertyPanel.k282":"Line style","propertyPanel.k283":"Border width","propertyPanel.k284":"Mixed","propertyPanel.k285":"Border color","propertyPanel.k286":"Border color","propertyPanel.k287":"Background color","propertyPanel.k288":"Background color","propertyPanel.k289":"Advanced settings","propertyPanel.k290":"Lock","propertyPanel.k291":"Repeat on every page","propertyPanel.k292":"Fix on every page","propertyPanel.k293":"Z-order","propertyPanel.k294":"Delete element","propertyPanel.k295":"Advanced settings notes","propertyPanel.k296":"Advanced settings notes","propertyPanel.k297":"Other","propertyPanel.k298":"Page setup","propertyPanel.k299":"Paper size","propertyPanel.k300":"Custom size","propertyPanel.k301":"Paper width (mm)","propertyPanel.k302":"Custom size (mm)","propertyPanel.k303":"Orientation","propertyPanel.k304":"Portrait","propertyPanel.k305":"Landscape","propertyPanel.k306":"Switching swaps paper width/height (content is laid out on the new size)","propertyPanel.k307":"Content rotation","propertyPanel.k308":"For tiling, each label rotates by this angle; at 90°/270° cell width/height swap and columns refill to the new cap; 0° means no rotation (default)","propertyPanel.k309":"The whole page rotates for printing; at 90°/270° paper width/height swap to fit without distortion or clipping; 0° means no rotation (default)","propertyPanel.k310":"Page background color","propertyPanel.k311":"Page background color","propertyPanel.k312":"Margins (mm)","propertyPanel.k313":"Top","propertyPanel.k314":"Bottom","propertyPanel.k315":"Left","propertyPanel.k316":"Right","propertyPanel.k317":"Header/footer height (mm)","propertyPanel.k318":"Header height","propertyPanel.k319":"Footer height","propertyPanel.k320":"Expand property panel","propertyPanel.k321":"Element properties","propertyPanel.k322":"Page properties","propertyPanel.k323":"Property panel","propertyPanel.k324":"Collapse property panel","propertyPanel.k325":"Element properties","propertyPanel.k326":"Page properties","propertyPanel.k327":"Select an element on the canvas","propertyPanel.k328":"Custom properties","propertySearch.k328":"Search properties...","propertySearch.k329":"Search properties","tableProps.k330":"Multi-level headers repeat as a whole; when checked, all header rows repeat at the top of each page","tableProps.k331":"Header row","tableProps.k332":"Data row","tableProps.k333":"Subtotal row (per page)","tableProps.k334":"Summary row","tableProps.k335":"CODE128 (general)","tableProps.k336":"EAN13 (retail)","tableProps.k337":"L (lowest, highest capacity)","tableProps.k338":"M (recommended)","tableProps.k339":"H (highest)","tableProps.k340":"Truncate","tableProps.k341":"Shrink to fit","tableProps.k342":"Auto row height","tableProps.k343":"Multi-select","tableProps.k344":"Row properties","tableProps.k345":"Row properties","tableProps.k346":"Row type","tableProps.k347":"Row height (mm)","tableProps.k348":"Repeat header on every page","tableProps.k349":"Table settings","tableProps.k350":"List data source field","tableProps.k351":"Default font","tableProps.k352":"Default","tableProps.k353":"Default font size (pt)","tableProps.k354":"Default","tableProps.k355":"Default text color","tableProps.k356":"Default text color","tableProps.k357":"Default padding (mm)","tableProps.k358":"Default","tableProps.k359":"Column width (mm)","tableProps.k360":"Column {v0}","tableProps.k361":"Table width cannot exceed the printable width {v0}mm; column {v1} was adjusted to {v2}mm","tableProps.k362":"Enable pagination","tableProps.k363":"Participate in pagination","tableProps.k364":"Same page as next element","tableProps.k365":"Pagination settings","tableProps.k366":"Top","tableProps.k367":"Right","tableProps.k368":"Bottom","tableProps.k369":"Left","tableProps.k370":"Cell","tableProps.k371":"Cell","tableProps.k372":"Multi-select","tableProps.k373":"Only data rows support merge by value","tableProps.k374":"Restore default (follow table default)","tableProps.k375":"Cell","tableProps.k376":"{v0} cells selected · batch settings: no per-cell display; changes apply to all selected cells","tableProps.k377":"Cell type","tableProps.k378":"Text","tableProps.k379":"Barcode","tableProps.k380":"QR code","tableProps.k381":"Image","tableProps.k382":"Symbology","tableProps.k383":"Show text","tableProps.k384":"Bar width (ratio)","tableProps.k385":"Printer DPI set: bar width snaps to whole dots (DPI overrides mm); scales down if the cell does not fit","tableProps.k386":"Use 3+ for thermal/dot-matrix: sets the printed bar size; thicker bars are more stable","tableProps.k387":"Quiet zone (modules)","tableProps.k388":"Default 10","tableProps.k389":"Bar height (mm)","tableProps.k390":"Default 30 modules","tableProps.k391":"Text size (relative to bar height 30)","tableProps.k392":"Default 10","tableProps.k393":"Printer DPI","tableProps.k394":"Unspecified (render by bar width)","tableProps.k395":"203 dpi (8 dots/mm)","tableProps.k396":"300 dpi (11.8 dots/mm)","tableProps.k397":"600 dpi (23.6 dots/mm)","tableProps.k398":"When set, bar width snaps to whole print dots: the barcode renders at bar width; if it fits it prints as-is, otherwise it scales down proportionally","tableProps.k399":"Error correction","tableProps.k400":"Quiet zone (modules)","tableProps.k401":"Default 0","tableProps.k402":"Cell barcode size is set by bar width and printer DPI: prints at bar width if it fits, otherwise scales down; no scale mode (would make non-integer bars)—use max width/height as a cap. To enlarge: raise bar width, narrow the quiet zone, or hide text","tableProps.k403":"Scale mode","tableProps.k404":"Crop anchor","tableProps.k405":"Max width (mm)","tableProps.k406":"Default","tableProps.k407":"Max height (mm)","tableProps.k408":"Default","tableProps.k409":"Content","tableProps.k410":"Multi-select (entry overrides all selected cells)","tableProps.k411":"Enter content; supports {field} expressions","tableProps.k412":"Horizontal align","tableProps.k413":"Left","tableProps.k414":"Medium","tableProps.k415":"Right","tableProps.k416":"Justify","tableProps.k417":"Vertical align","tableProps.k418":"Top","tableProps.k419":"Medium","tableProps.k420":"Bottom","tableProps.k421":"Font","tableProps.k422":"Inherit default","tableProps.k423":"Font size (pt)","tableProps.k424":"Default","tableProps.k425":"Bold","tableProps.k426":"Text color","tableProps.k427":"Text color","tableProps.k428":"Background color","tableProps.k429":"Background color","tableProps.k430":"Border","tableProps.k431":"Mixed","tableProps.k432":"Multi-select","tableProps.k433":"Mixed","tableProps.k434":"Border color","tableProps.k435":"All","tableProps.k436":"Outside","tableProps.k437":"Inside","tableProps.k438":"None","tableProps.k439":"Padding (mm)","tableProps.k440":"Default","tableProps.k441":"Word wrap","tableProps.k442":"Text overflow","tableProps.k443":"Min font size (pt)","tableProps.k444":"Default 6","tableProps.k445":"Merge cells","tableProps.k446":"Merge cells","tableProps.k447":"Split cells","tableProps.k448":"Merge by value","tableProps.k449":"Adjacent data rows with equal values merge vertically; across pages they segment per page and replay the value on continuation pages","table.k450":"H","table.k451":"D","table.k452":"S","table.k453":"T","table.k454":"Header row","table.k455":"Data row","table.k456":"Subtotal row","table.k457":"Summary row","table.k458":"Barcode","table.k459":"Image","table.k460":"After insert, table width {v0}mm exceeds printable width {v1}mm; reduce column widths first","table.k461":"Unspecified row type","table.k462":"No cell selected","table.k463":"Only data rows support merge by value","table.k464":"No cell selected","table.k465":"Row type supports single-row setting only","table.k466":"No cell selected","table.k467":"Insert row above","table.k468":"Insert row below","table.k469":"Delete row","table.k470":"Insert column left","table.k471":"Insert column right","table.k472":"Delete column","table.k473":"Merge cells","table.k474":"Split cells","table.k475":"Merge by value","table.k476":"Row type","table.k477":"Column width handle {v0}","toolbarOverflow.k478":"Clipboard","toolbarOverflow.k479":"Format painter","toolbarOverflow.k480":"Zoom","toolbarOverflow.k481":"Arrange / View","toolbarOverflow.k482":"Border","toolbarOverflow.k483":"Color","toolbarOverflow.k484":"Align","toolbarOverflow.k485":"Text style","toolbarOverflow.k486":"Font & size","toolbarOverflow.k487":"More","toolbarOverflow.k488":'{v0}<span class="tb-btn-text">More</span>{v1}',"toolbar.k489":"Edit template","toolbar.k490":"New template","toolbar.k491":"Align / Distribute","toolbar.k492":"Align left","toolbar.k493":"Align right","toolbar.k494":"Align top","toolbar.k495":"Align bottom","toolbar.k496":"Align center","toolbar.k497":"Align middle","toolbar.k498":"Distribute horizontally","toolbar.k499":"Distribute vertically","toolbar.k500":"Z-order","toolbar.k501":"Bring to front","toolbar.k502":"Bring forward","toolbar.k503":"Send backward","toolbar.k504":"Send to back","toolbar.k505":"Group","toolbar.k506":"Group (Ctrl+G)","toolbar.k507":"Ungroup (Ctrl+Shift+G)","toolbar.k508":"Ruler","toolbar.k509":"Show/hide ruler","toolbar.k510":"Grid","toolbar.k511":"Show/hide grid background","toolbar.k512":"Dashed frame","toolbar.k513":"Show/hide dashed guides for borderless tables","toolbar.k514":"Snap","toolbar.k515":"Toggle element snapping to grid","toolbar.k516":"Print Template Designer","toolbar.k517":"Undo","toolbar.k518":"Redo","toolbar.k519":"Arrange","toolbar.k520":"Arrange","toolbar.k521":"View","toolbar.k522":"View","toolbar.k523":"Fit to window","toolbar.k524":"Zoom out","toolbar.k525":"Zoom in","toolbar.k526":"Copy (Ctrl+C), select an element first","toolbar.k527":"Copy (Ctrl+C)","toolbar.k528":"Paste (Ctrl+V), select an element first","toolbar.k529":"Paste (Ctrl+V), clipboard is empty","toolbar.k530":"Paste (Ctrl+V)","toolbar.k531":"Delete (Delete), select an element first","toolbar.k532":"Delete (Delete)","toolbar.k533":"Help","toolbar.k534":"Preview print result","toolbar.k535":"Preview","toolbar.k536":"Save template","toolbar.k537":"Save","watermark.k538":"Watermark","watermark.k539":"Watermark expression","watermark.k540":"Enter text directly, or an expression: {order.no}, {printDate}","watermark.k541":'Double-click or click "Edit expression" to open the expression editor',"watermark.k542":"Edit expression","watermark.k543":"Test value","watermark.k544":"Shown in preview when the expression has no value","watermark.k545":"Rotation angle","watermark.k546":"Color","watermark.k547":"Watermark color","watermark.k548":"Opacity","watermark.k549":"Density","watermark.k550":"Custom","watermark.k551":"Tile width","watermark.k552":"Tile height","elementDefinitions.k553":"Text","elementDefinitions.k554":"Barcode","elementDefinitions.k555":"QR code","elementDefinitions.k556":"Image","elementDefinitions.k557":"Table","elementDefinitions.k558":"Long text","elementDefinitions.k559":"Flow list","elementDefinitions.k560":"Horizontal line","elementDefinitions.k561":"Vertical line","elementDefinitions.k562":"Rectangle","elementDefinitions.k563":"Ellipse","elementDefinitions.k564":"Page number","elementDefinitions.k565":"registerElementDefinition: type must be a non-empty string","elementDefinitions.k566":"registerElementDefinition: label must be a non-empty string","elementDefinitions.k567":"registerElementRenderer: requires type and render function","panels.paperRotated":" (rotated {rot}°)","panels.statusElements":"{count} elements{selected}","panels.statusSelected":" ({n} selected)"},...{"expression.tabField":"Fields","expression.tabVariable":"Variables","expression.tabFunction":"Functions","expression.placeholderField":"Search fields...","expression.placeholderVariable":"Search variables...","expression.placeholderFunction":"Search functions...","expression.fnSum":"Sum","expression.fnAvg":"Average","expression.fnCount":"Count","expression.fnMin":"Minimum","expression.fnMax":"Maximum","expression.fnAdd":"Add","expression.fnSub":"Subtract","expression.fnMul":"Multiply","expression.fnDiv":"Divide","expression.fnRound":"Round","expression.fnRoundUp":"Round up","expression.fnRoundDown":"Round down","expression.fnRoundBank":"Banker's rounding","expression.fnMoney":"Format amount","expression.fnDate":"Format date","expression.fnUpper":"Amount in words","expression.fnIf":"Conditional","expression.varPageIndex":"Current page","expression.varTotalPages":"Total pages","expression.varPrintDate":"Print date","expression.varPrintTime":"Print time","expression.groupAggregate":"Aggregate functions","expression.groupMath":"Math","expression.groupFormat":"Formatting","expression.previewEmpty":"(Preview after entering an expression)","expression.previewNoValue":"(Cannot compute)","expression.previewError":"(Expression error)","expression.k1":"Type","expression.k2":"How to input","expression.k3":"Double-click a field, variable or function on the left to insert it","expression.k4":"Hold Ctrl (⌘ on Mac) while double-clicking to insert the field name as static text","expression.k5":"Enter static text directly, e.g. Supplier name","expression.k6":"Dynamic fields, variables and functions must be wrapped in {}","expression.k7":"Example: {SUM(supplier.name)}","expression.k8":"Chinese keys can be written directly as {field}, e.g. {name}","expression.k9":"Note: only one level of nesting","expression.k10":"Functions","expression.k11":"SUM(field) - sum","expression.k12":"AVG(field) - average","expression.k13":"COUNT(field) - count","expression.k14":"IF(cond, true, false) - conditional","expression.k15":"Arithmetic: {qty * price}, {ADD(qty, 1)}","expression.k16":"Rounding: ROUND half-up / ROUNDUP up / ROUNDDOWN down / ROUNDBANK bankers","expression.k17":"System variables","expression.k18":"{pageIndex} - current page","expression.k19":"{totalPages} - total pages","expression.k20":"{printDate} - print date","expression.k21":"Examples","expression.k22":"Static text: Supplier name","expression.k23":"Dynamic field: {supplier.name}","expression.k24":"Function call: {SUM(amount)}","expression.k25":'Conditional: {IF(amount>1000, "Large", "Small")}',"expression.k26":"Arithmetic & rounding: {ROUND(qty * price, 2)}","expression.k27":"No fields","expression.k28":"Copied","expression.k29":"Type","expression.k30":"Help info","expression.k31":"How to input","expression.k32":"Preview result","expression.k33":"Edit expression","expression.k34":"Close","expression.k35":"Cancel","expression.k36":"Confirm"}},qS={"toolbar.save":"บันทึก","toolbar.preview":"ตัวอย่าง","diagnostic.expressionUnexpectedEnd":"นิพจน์สิ้นสุดโดยไม่คาดคิด","diagnostic.parser.trailingContent":"มีเนื้อหาเกินหลังนิพจน์: {value}","diagnostic.parser.expected":'ตำแหน่ง {pos}: คาดว่า "{value}"',"diagnostic.parser.memberName":"ตำแหน่ง {pos}: การเข้าถึงสมาชิกต้องมีชื่อคุณสมบัติ","diagnostic.parser.invalidNumber":"ตัวเลขไม่ถูกต้อง: {value}","diagnostic.parser.objectKey":"ตำแหน่ง {pos}: คีย์อ็อบเจกต์ต้องเป็นตัวระบุหรือสตริง","diagnostic.parser.unexpectedToken":"ตำแหน่ง {pos}: โทเค็นที่ไม่คาดคิด: {value}","diagnostic.lexer.unterminatedString":"สตริงไม่ปิด","diagnostic.lexer.keyword":"ไม่อนุญาตให้ใช้คำสงวน: {word}","diagnostic.lexer.forbidden":"ปฏิเสธการเข้าถึง: {word}","diagnostic.lexer.noFunctionDef":"ไม่อนุญาตให้กำหนดฟังก์ชัน","diagnostic.lexer.noAssignment":"ไม่อนุญาตให้กำหนดค่า","diagnostic.lexer.noMultipleStatements":"ไม่อนุญาตให้มีหลายคำสั่ง","diagnostic.lexer.invalidChar":"อักขระไม่ถูกต้อง: {ch}","diagnostic.evaluator.undefinedIdentifier":"ตัวระบุไม่ได้กำหนด: {name}","diagnostic.evaluator.unknownOperator":"ตัวดำเนินการไม่ทราบ: {op}","diagnostic.evaluator.unknownUnaryOperator":"ตัวดำเนินการยูนารีไม่ทราบ: {op}","diagnostic.evaluator.nullProperty":"ไม่สามารถอ่านคุณสมบัติของค่า null","diagnostic.evaluator.forbiddenProperty":"ปฏิเสธการเข้าถึงคุณสมบัติ: {property}","diagnostic.evaluator.mathNotMethod":"Math.{name} ไม่ใช่เมธอด","diagnostic.evaluator.noMethodCall":"ไม่รองรับการเรียกเมธอด ใช้ฟังก์ชันระดับบนสุดแทน","diagnostic.evaluator.notFunction":"{name} ไม่ใช่ฟังก์ชัน","diagnostic.evaluator.forbiddenCall":"ไม่อนุญาตให้เรียก: {name}","diagnostic.template.unclosedBrace":"ตำแหน่ง {pos}: วงเล็บปีกกาไม่ปิด","diagnostic.template.emptyExpression":"ตำแหน่ง {pos}: นิพจน์ว่าง","diagnostic.pagination.insufficientHeight":"ความสูงหน้าที่ใช้ได้ไม่เพียงพอ: paper={paper}mm, margins={margins}mm, header={header}mm, footer={footer}mm","diagnostic.pagination.repeatHeaderOverflow":"ตาราง {id}: ความสูงส่วนหัวที่ซ้ำ ({repeat}mm) เกินความสูงหน้าที่ใช้ได้ ({avail}mm) กรุณาลดจำนวนแถวหัวที่ซ้ำ","diagnostic.tiling.continuousUnsupported":"กระดาษต่อเนื่องไม่รองรับการจัดเรียงชิ้น ใช้กระดาษขนาดคงที่หรือปิดการจัดเรียงชิ้น","diagnostic.tiling.sheetContinuous":"แผ่นเป้าหมายของการจัดเรียงชิ้นไม่สามารถเป็นกระดาษต่อเนื่องได้","diagnostic.tiling.sheetSizeInvalid":"ความกว้างและความสูงของแผ่นกำหนดเองต้องเป็นตัวเลขมากกว่า 0 (mm)","diagnostic.tiling.columnsInvalid":"จำนวนคอลัมน์การจัดเรียงชิ้นต้องเป็นจำนวนเต็มมากกว่า 0","diagnostic.tiling.rotationNote":" (เนื้อหาหมุน {angle}° แต่ละชิ้น {width}×{height}mm)","diagnostic.tiling.columnsExceedWidth":"จำนวนคอลัมน์การจัดเรียงชิ้น {columns} เกินความกว้างแผ่นที่ใช้ได้: {sheet}mm − ระยะขอบข้าง {margin}mm = {avail}mm ได้มากสุด {max} คอลัมน์; ปัจจุบัน {columns} คอลัมน์ของฉลาก {label}mm รวมระยะห่างต้องการ {need}mm{rotation}","diagnostic.tiling.labelHeightExceed":"ความสูงฉลาก {height}mm เกินความสูงแผ่นที่ใช้ได้ {avail}mm จัดเรียงได้ 0 แถวต่อแผ่น; ลดความสูงฉลากหรือใช้กระดาษแนวนอน{rotation}","diagnostic.multiTemplate.emptyPages":"เทมเพลตหลายหน้าต้องมีอย่างน้อยหนึ่งหน้า","diagnostic.multiTemplate.continuous":"เทมเพลตหลายหน้าไม่รองรับกระดาษต่อเนื่อง ({page})","diagnostic.multiTemplate.tiling":"เทมเพลตหลายหน้าไม่รองรับการจัดเรียงฉลากเป็นชิ้น ({page})","diagnostic.multiTemplate.paperMismatch":"ทุกหน้าของเทมเพลตต้องใช้ขนาดกระดาษเท่ากัน ({page} {width}×{height}mm ไม่ตรงกับหน้าแรก {firstWidth}×{firstHeight}mm)","diagnostic.multiTemplate.emptyData":"เทมเพลตหลายหน้าต้องมีข้อมูลอย่างน้อยหนึ่งชุด","diagnostic.multiTemplate.pageLabelNamed":'หน้า {index} "{name}"',"diagnostic.multiTemplate.pageLabelPlain":"หน้า {index}","client.cancelled":"ยกเลิกการเชื่อมต่อแล้ว","client.invalidToken":"โทเค็นการจับคู่ไม่ถูกต้องหรือแหล่งที่มาไม่ได้รับอนุญาต","client.notRunning":"ไม่พบไคลเอนต์การพิมพ์ที่ทำงานอยู่ (ตรวจสอบช่วงพอร์ตเริ่มต้นแล้ว) กรุณาเริ่มไคลเอนต์","client.notConnected":"ไคลเอนต์การพิมพ์ไม่ได้เชื่อมต่อ","client.timeout":"คำขอ {type} หมดเวลา","client.closed":"ปิดการเชื่อมต่อแล้ว","client.disconnected":"การเชื่อมต่อกับไคลเอนต์ขาดแล้ว","client.unregisteredHandler":"ไม่ได้ลงทะเบียนตัวจัดการคำขอฝั่งเดสก์ท็อป","client.internalError":"ข้อผิดพลาดภายใน","table.atLeastTwoCells":"เลือกเซลล์อย่างน้อย 2 เซลล์","table.crossRowTypes":"พื้นที่ที่รวมไม่สามารถข้ามแถวที่ต่างประเภทกันได้","table.dataVerticalMerge":'แถวข้อมูลจะขยายเป็นรายการ ใช้ตัวเลือกเซลล์ "รวมตามค่า" สำหรับการรวมแนวตั้ง',"table.partialOverlap":"พื้นที่ที่เลือกทับซ้อนกับพื้นที่ที่รวมอยู่แล้วบางส่วน","table.lastRow":"ไม่สามารถลบแถวสุดท้ายได้","table.lastColumn":"ไม่สามารถลบคอลัมน์สุดท้ายได้","table.dataRowExists":"มีแถวข้อมูลอยู่แล้ว (แถว {row}) อนุญาตได้เพียงหนึ่งแถว","table.headerContinuous":"ต้องตั้งค่าแถวหัวต่อเนื่องจากด้านบนของตาราง","table.subtotalAfterData":"ตั้งค่าแถวข้อมูลก่อน แถวรวมย่อย/สรุปต้องอยู่หลังแถวข้อมูล","table.subtotalBeforeData":"แถวรวมย่อย/สรุปต้องอยู่หลังแถวข้อมูล","table.subtotalBeforeSummary":"แถวรวมย่อยต้องอยู่ก่อนแถวสรุป","table.summaryAfterSubtotal":"แถวสรุปต้องอยู่หลังแถวรวมย่อย","table.headerBreak":"การยกเลิกแถวหัวนี้จะทำให้แถวหัวไม่ต่อเนื่อง กรุณาปรับแถวหัวที่ตามมาก่อน","table.defaultHeader":"คอลัมน์ {index}","table.borderHint":'รูปแบบเส้น/ความกว้าง/สีเป็นค่าที่รอการใช้งาน: เส้นขอบที่มีอยู่สอดคล้องกันจะถูกเติมในสามบรรทัดนี้; รายการที่ไม่สอดคล้องกันแสดง "ผสม" และเส้นที่ไม่มีแสดง "ไม่มี / 0" คลิก ทั้งหมด/ด้านนอก/ด้านใน หรือทำเครื่องหมายด้านใดด้านหนึ่งเพื่อใช้งาน; "ไม่มี" จะลบเส้นขอบ',"table.borderHintMulti":'การเลือกหลายรายการไม่แสดงเส้นขอบของเซลล์เดี่ยว: รูปแบบเส้น/ความกว้าง/สีเป็นค่าสำหรับเขียนเป็นชุด; คลิก ทั้งหมด/ด้านนอก/ด้านใน หรือทำเครื่องหมายด้านใดด้านหนึ่งเพื่อใช้กับเซลล์ที่เลือกทั้งหมด; "ไม่มี" จะลบเส้นขอบ',"table.borderHintMixed":'เส้นขอบทั้งสี่ด้านไม่สอดคล้องกัน: รายการที่เครื่องหมาย "ผสม" ไม่ได้รายงานค่าผิด; รายการที่ไม่เปลี่ยนจะใช้ค่าเริ่มต้น (เส้นทึบ 0.75pt) เมื่อคลิก ทั้งหมด/ด้านนอก/ด้านใน หรือทำเครื่องหมายด้านเดียว; เปลี่ยนรายการใดจะเขียนค่านั้นเป็นชุด',"diagnostic.pagination.overflowTop":"องค์ประกอบ {id} หมุน {rot}° แล้วส่วนบนเกินขอบหน้ากระดาษ {amount}mm จะถูกตัดเมื่อพิมพ์","diagnostic.pagination.overflowRight":"องค์ประกอบ {id} เกินขอบขวาของหน้ากระดาษ {amount}mm จะถูกตัดเมื่อพิมพ์","diagnostic.pagination.overflowLeft":"องค์ประกอบ {id} เกินขอบซ้ายของหน้ากระดาษ {amount}mm จะถูกตัดเมื่อพิมพ์","crop.sampleNote":"ยังไม่ได้ตั้งรูปภาพ ด้านบนสาธิตการวางตำแหน่งด้วยรูปตัวอย่าง เมื่อใส่รูปจริงช่วงและระยะการเคลื่อนที่จะคำนวณใหม่","crop.verticalPosition":"ตำแหน่งแนวตั้ง (%)","crop.horizontalPosition":"ตำแหน่งแนวนอน (%)","crop.scaleLabel":"อัตราขยาย (%)","crop.originalValue":"คงค่าเดิมจากเทมเพลตไว้; เปลี่ยนรายการด้านล่างรายการใดจะแทนที่ด้วยตำแหน่งใหม่ทั้งชุด","crop.movableBoth":"เคลื่อนได้แนวนอน {x}mm แนวตั้ง {y}mm: 0 = ชิดซ้าย/บน 100 = ชิดขวา/ล่าง","crop.movableX":"เคลื่อนได้แนวนอน {x}mm; แนวตั้งเต็มแล้วเคลื่อนไม่ได้","crop.movableY":"เคลื่อนได้แนวตั้ง {y}mm; แนวนอนเต็มแล้วเคลื่อนไม่ได้","crop.noRoom":"ที่อัตราส่วนนี้รูปพอดีกับกรอบ ทั้งสองแกนไม่มีระยะให้เคลื่อน","crop.top":"บน","crop.center":"กลาง","crop.bottom":"ล่าง","crop.left":"ซ้าย","crop.right":"ขวา","crop.topLeft":"ซ้ายบน","crop.topCenter":"กลางบน","crop.topRight":"ขวาบน","crop.middleLeft":"กลางซ้าย","crop.middleRight":"กลางขวา","crop.bottomLeft":"ซ้ายล่าง","crop.bottomCenter":"กลางล่าง","crop.bottomRight":"ขวาล่าง","crop.fitContain":"พอดี (คงอัตราส่วน)","crop.fitCover":"ครอบ (เติมแล้วตัดขอบ)","crop.fitFill":"ดึงให้เต็ม","crop.fitNone":"ขนาดต้นฉบับ","crop.fitScaleDown":"ย่อ (คงอัตราส่วน)","barcode.recommendOk":"ที่ {dpi}dpi อัตราความกว้างแท่นที่แนะนำคือ {rec} ({recDots} จุดพิมพ์ต่อโมดูล = {width}mm ซึ่งเป็นขั้นน้อยสุดที่ถึงขีดต่ำสุด {min}mm); อัตราปัจจุบัน {current} คิดเป็น {curDots} จุด / {curWidth}mm ผ่านเกณฑ์แล้ว ข้อความนี้เป็นคำแนะนำเท่านั้น จะไม่เปลี่ยนค่าที่คุณใส่","barcode.recommendLow":"ที่ {dpi}dpi อัตราความกว้างแท่นที่แนะนำคือ {rec} ({recDots} จุดพิมพ์ต่อโมดูล = {width}mm ซึ่งเป็นขั้นน้อยสุดที่ถึงขีดต่ำสุด {min}mm); อัตราปัจจุบัน {current} คิดเป็น {curDots} จุด / {curWidth}mm ต่ำกว่าขีดต่ำสุด ข้อความนี้เป็นคำแนะนำเท่านั้น จะไม่เปลี่ยนค่าที่คุณใส่","code.rotateNote":"บาร์โค้ดและคิวอาร์โค้ดรองรับเฉพาะขั้น 90°; มุมอิสระต้องการหัวพิมพ์ 385dpi ขึ้นไป","colorPicker.pickColor":"เลือกสี","colorPicker.hexValue":"ค่าสี","colorPicker.customColor":"สีที่กำหนดเอง","colorPicker.hue":"เฉดสี","colorPicker.commonColors":"สีที่ใช้บ่อย","colorPicker.clear":"ล้างสีที่เลือก","colorPicker.clearShort":"ล้าง","save.geometryWarningConfirm":`คำเตือนการพิมพ์: เนื้อหาบางส่วนเกินขอบกระดาษและจะถูกตัดเมื่อพิมพ์
|
|
22
|
+
ยอมรับการตัดและบันทึกต่อหรือไม่?
|
|
23
|
+
คลิก ตกลง เพื่อบันทึก คลิก ยกเลิก เพื่อกลับไปแก้ไข
|
|
24
|
+
|
|
25
|
+
{warnings}`,"store.tilingSinglePage":"เมื่อเปิดการจัดเรียงชิ้น อนุญาตให้มีหน้าออกแบบได้เพียงหน้าเดียว","elementGroup.chart":"แผนภูมิ","service.printData.emptyArray":"ข้อมูลการพิมพ์เป็นชุดต้องเป็นอาร์เรย์อ็อบเจกต์ที่ไม่ว่างเปล่า","service.printData.tooMany":"การพิมพ์เป็นชุดรองรับได้มากสุด {max} ชุด ได้ {count} ชุด","service.printData.itemNotObject":"รายการข้อมูลการพิมพ์ชุดที่ {index} ต้องเป็นอ็อบเจกต์","service.printData.notObjectOrArray":"printData ต้องเป็นอ็อบเจกต์หรืออาร์เรย์",...{"binding.k1":"อัปโหลดรูปภาพ","binding.k2":"รองรับเฉพาะไฟล์รูปภาพ","binding.k3":"ไม่ได้ตั้งค่าการอัปโหลดรูปภาพ","binding.k4":"กำลังอัปโหลด...","binding.k5":"อัปโหลดรูปภาพล้มเหลว","binding.k6":"อัปโหลดรูปภาพล้มเหลว","binding.k7":"อัปโหลดรูปภาพ","binding.k8":"รองรับรูปภาพ jpg/png/gif/bmp/webp/svg; ป้อนเส้นทางสัมพัทธ์หลังอัปโหลด","binding.k9":"เนื้อหา","binding.k10":"ป้อนเนื้อหา รองรับนิพจน์ {field}","canvas.k11":"ส่วนหัว","canvas.k12":"ส่วนท้าย","canvas.k13":"+ องค์ประกอบ","canvas.k14":"+ ข้อความคงที่","canvas.k15":"+ ฟิลด์ข้อมูล","canvas.k16":"คัดลอก","canvas.k17":"ตัด","canvas.k18":"วาง","canvas.k19":"ลบ","canvas.k20":"นำไปด้านหน้าสุด","canvas.k21":"เลื่อนขึ้น","canvas.k22":"เลื่อนลง","canvas.k23":"ส่งไปด้านหลังสุด","canvas.k24":"วาง","canvas.k25":"เลือกทั้งหมด","canvas.k26":"ยกเลิกการเลือก","code.k27":"คิวอาร์โค้ด","controls.k28":"ลด","controls.k29":"ลด","controls.k30":"เพิ่ม","controls.k31":"เพิ่ม","controls.k32":"คำอธิบายฟิลด์","controls.k33":"คืนค่าเริ่มต้น","controls.k34":"คืนค่าเริ่มต้น ({v0}{v1})","controls.k35":"{v0} (ใช้กับเซลล์ที่เลือกทั้งหมด)","controls.k36":"ตัวเลือกสี","cropAnchor.k37":"กำหนดเอง (คงเดิม)","cropAnchor.k38":"ค่าเริ่มต้น 100","cropAnchor.k39":"รูปตัวอย่าง","cropAnchor.k40":"รูปต้นฉบับ","elements.k41":"ข้อความ","elements.k42":"เนื้อหาข้อความยาว","elements.k43":"รูปภาพ","flowList.k44":"สมุนไพร 20g","flowList.k45":"สมุนไพร 15g","flowList.k46":"สมุนไพร 10g","flowList.k47":"สมุนไพร 10g","flowList.k48":"สมุนไพร 10g","flowList.k49":"สมุนไพร 10g","flowList.k50":"สมุนไพร 10g","fontSelect.k51":"ค่าเริ่มต้น","fontSelect.k52":"{v0} (ไม่ทราบ)","fontSelect.k53":'ใช้ "{v0}"',"formatBar.k54":"เส้นทึบ","formatBar.k55":"เส้นประ","formatBar.k56":"เส้นจุด","formatBar.k57":"เส้นคู่","formatBar.k58":"ออกจากเครื่องมือถ่ายรูปแบบ (Esc)","formatBar.k59":"เครื่องมือถ่ายรูปแบบ (ไม่รองรับเซลล์ตาราง)","formatBar.k60":"เครื่องมือถ่ายรูปแบบ (เลือกองค์ประกอบก่อน)","formatBar.k61":"เครื่องมือถ่ายรูปแบบ (เลือกองค์ประกอบต้นทางเพียงหนึ่ง)","formatBar.k62":"เครื่องมือถ่ายรูปแบบ: คลิกครั้งเดียวเพื่อถ่ายครั้งเดียว คลิกสองครั้งเพื่อถ่ายต่อเนื่อง","formatBar.k63":"{v0} (เลือกองค์ประกอบข้อความ)","formatBar.k64":"ไม่มีเส้นขอบ","formatBar.k65":"เส้นขอบทั้งหมด","formatBar.k66":"เส้นขอบด้านนอก","formatBar.k67":"เส้นขอบด้านใน","formatBar.k68":"เส้นขอบด้านใน (เฉพาะเซลล์ตาราง)","formatBar.k69":"เส้นขอบบน","formatBar.k70":"เส้นขอบล่าง","formatBar.k71":"เส้นขอบซ้าย","formatBar.k72":"เส้นขอบขวา","formatBar.k73":"{v0} (คลิกอีกครั้งเพื่อยกเลิก, รูปแบบ = ไม่มี)","formatBar.k74":"ความกว้าง","formatBar.k75":"ผสม","formatBar.k76":"สี","formatBar.k77":"สีเส้นขอบ","formatBar.k78":"เส้นขอบทั้งสี่ด้านไม่สอดคล้องกัน: รายการที่เว้นไว้ไม่ได้รายงานค่าผิด; ค่าที่ตั้งไว้ล่วงหน้า/ด้านเดียวใช้ค่าเริ่มต้น (เส้นทึบ 0.75 / #333333)","formatBar.k79":"จัดชิดซ้าย","formatBar.k80":"จัดกึ่งกลาง","formatBar.k81":"จัดชิดขวา","formatBar.k82":"จัดชอบแนว (เติมความกว้างบรรทัด รวมบรรทัดสุดท้าย)","formatBar.k83":"จัดชิดบน","formatBar.k84":"จัดกึ่งกลางแนวตั้ง","formatBar.k85":"จัดชิดล่าง","formatBar.k86":"ผสม","formatBar.k87":"ค่าเริ่มต้น","formatBar.k88":"ผสม","formatBar.k89":"ค่าเริ่มต้น","formatBar.k90":"ตัวหนา","formatBar.k91":"ขีดเส้นใต้","formatBar.k92":"ขีดฆ่า","formatBar.k93":"สีตัวอักษร {v0}","formatBar.fontDisabledHint":"(เลือกหรือผสมองค์ประกอบข้อความ)","formatBar.k94":"สีพื้นหลัง","formatBar.k95":"การจัดตำแหน่ง","formatBar.k96":"การจัดตำแหน่ง (เลือกองค์ประกอบข้อความหรือเซลล์)","formatBar.k97":"การจัดตำแหน่ง","formatBar.k98":"เส้นขอบ","formatBar.k99":"เส้นขอบ (เลือกองค์ประกอบ)","formatBar.k100":"เส้นขอบ","helpModal.k101":"ช่วยเหลือ","helpModal.k102":"ปิด","pageExtras.k103":"อัปโหลดภาพพื้นหลัง","pageExtras.k104":"รองรับเฉพาะไฟล์รูปภาพ","pageExtras.k105":"ไม่ได้ตั้งค่าการอัปโหลดภาพพื้นหลังออกแบบ","pageExtras.k106":"กำลังอัปโหลด...","pageExtras.k107":"อัปโหลดภาพพื้นหลังออกแบบล้มเหลว","pageExtras.k108":"อัปโหลดภาพพื้นหลังออกแบบล้มเหลว","pageExtras.k109":"อัปโหลดภาพพื้นหลัง","pageExtras.k110":"พื้นหลังออกแบบ","pageExtras.k111":"เฉพาะในตัวออกแบบ เพื่อการจัดตำแหน่ง; ไม่แสดงในตัวอย่างหรือการพิมพ์","pageExtras.k112":"หมุน ({v0}°)","pageExtras.k113":"ลบ","pageExtras.k114":"กำหนดเอง","pageExtras.k115":" แนวนอน","pageExtras.k116":" แนวตั้ง","pageExtras.k117":"แผ่นเป้าหมาย {v0}{v1} {v2}×{v3}mm · {v4} คอลัมน์ × {v5} แถว = {v6} เซลล์/แผ่น · แต่ละเซลล์ {v7}×{v8}mm","pageExtras.k118":"การพิมพ์แบบจัดเรียงชิ้น","pageExtras.k119":"จัดเรียงฉลากเป็นแถว × คอลัมน์บนแผ่นใหญ่เพื่อพิมพ์เป็นชุด","pageExtras.k120":"เปิดใช้งานการจัดเรียงชิ้น","pageExtras.k121":"กระดาษต่อเนื่องไม่รองรับการจัดเรียงชิ้น","pageExtras.k122":"แผ่นเป้าหมาย","pageExtras.k123":"กำหนดเอง","pageExtras.k124":"ขนาดแผ่นเป้าหมาย (mm)","pageExtras.k125":"แนวของแผ่นเป้าหมาย","pageExtras.k126":"แนวตั้ง","pageExtras.k127":"แนวนอน","pageExtras.k128":"ระยะขอบการจัดเรียงชิ้น (mm)","pageExtras.k129":"บน","pageExtras.k130":"ล่าง","pageExtras.k131":"ซ้าย","pageExtras.k132":"ขวา","pageExtras.k133":"ระยะห่างและจำนวนคอลัมน์ของเซลล์","pageExtras.k134":"ระยะห่างแนวนอน","pageExtras.k135":"ระยะห่างแนวตั้ง","pageExtras.k136":"จำนวนคอลัมน์","panels.k137":"ขยายแผงทรัพยากร","panels.k138":"องค์ประกอบ","panels.k139":"ฟิลด์","panels.k140":"เลเยอร์","panels.k141":"ทรัพยากร","panels.k142":"ยุบแผงทรัพยากร","panels.k143":"องค์ประกอบ","panels.k144":"ฟิลด์","panels.k145":"เลเยอร์","panels.k146":"ลากองค์ประกอบไปยังพื้นที่ทำงาน","panels.k147":"ฟิลด์ธุรกิจ","panels.k148":"ค้นหาฟิลด์...","panels.k149":"ค้นหาฟิลด์","panels.k150":"{v0} ({v1}) · คลิกเพื่อคัดลอกชื่อฟิลด์ · ค้าง Ctrl (⌘ บน Mac) ขณะลากเพื่อแทรกชื่อฟิลด์","panels.k151":"คัดลอกแล้ว","panels.k152":"ไม่มีฟิลด์","panels.k153":"ส่วนหัว","panels.k154":"ส่วนท้าย","panels.k155":"เลเยอร์","panels.k156":"นำไปด้านหน้าสุด","panels.k157":"เลื่อนขึ้น","panels.k158":"เลื่อนลง","panels.k159":"ส่งไปด้านหลังสุด","panels.k160":"จัดกลุ่ม (Ctrl+G)","panels.k161":"ยกเลิกจัดกลุ่ม (Ctrl+Shift+G)","panels.k162":"หน้า {v0}","panels.k163":"{v0} (ดับเบิลคลิกเพื่อเปลี่ยนชื่อ)","panels.k164":"ดับเบิลคลิกเพื่อเปลี่ยนชื่อ","panels.k165":"หน้า {v0}","panels.k166":"เทมเพลตแบบจัดเรียงชิ้นอนุญาตให้มีหน้าออกแบบได้เพียงหน้าเดียว","panels.k167":"เพิ่มหน้า (ต่อหน้าเปล่าหลังหน้าปัจจุบัน)","panels.k168":"เทมเพลตแบบจัดเรียงชิ้นอนุญาตให้มีหน้าออกแบบได้เพียงหน้าเดียว","panels.k169":'ทำซ้ำหน้าปัจจุบัน "{v0}"',"panels.k170":'ลบหน้าปัจจุบัน "{v0}"',"panels.k171":"เฉพาะเทมเพลตหลายหน้าที่ลบหน้าได้","panels.k172":'ย้าย "{v0}" ไปหน้าถัดไป',"panels.k173":'ย้าย "{v0}" ไปหน้าก่อนหน้า',"panels.k174":"แนวนอน","panels.k175":"แนวตั้ง","panels.k176":"ซูม {v0}%","propertyPanel.k177":"ทั้งหมด","propertyPanel.k178":"ด้านนอก","propertyPanel.k179":"ด้านใน","propertyPanel.k180":"ไม่มี","propertyPanel.k181":"บน","propertyPanel.k182":"ขวา","propertyPanel.k183":"ล่าง","propertyPanel.k184":"ซ้าย","propertyPanel.k185":"ตำแหน่งและขนาด","propertyPanel.k186":"ระยะขอบ (mm)","propertyPanel.k187":"บน","propertyPanel.k188":"ขวา","propertyPanel.k189":"ล่าง","propertyPanel.k190":"ซ้าย","propertyPanel.k191":"การหมุน (°)","propertyPanel.k192":"ทวนเข็มนาฬิกา 90°","propertyPanel.k193":"หมุนทวนเข็มนาฬิกา 90°","propertyPanel.k194":"ตามเข็มนาฬิกา 90°","propertyPanel.k195":"หมุนตามเข็มนาฬิกา 90°","propertyPanel.k196":"ลักษณะ","propertyPanel.k197":"ฟอนต์","propertyPanel.k198":"ค่าเริ่มต้น","propertyPanel.k199":"ขนาดฟอนต์","propertyPanel.k200":"น้ำหนักฟอนต์","propertyPanel.k201":"ปกติ","propertyPanel.k202":"หนา","propertyPanel.k203":"หนาขึ้น","propertyPanel.k204":"บางลง","propertyPanel.k205":"การจัดตำแหน่ง","propertyPanel.k206":"ซ้าย","propertyPanel.k207":"กลาง","propertyPanel.k208":"ขวา","propertyPanel.k209":"ชิดสองด้าน","propertyPanel.k210":"จัดแนวตั้ง","propertyPanel.k211":"บน","propertyPanel.k212":"กลาง","propertyPanel.k213":"ล่าง","propertyPanel.k214":"สี","propertyPanel.k215":"สีตัวอักษร","propertyPanel.k216":"สีพื้นหลัง","propertyPanel.k217":"สีพื้นหลัง","propertyPanel.k218":"ระยะบรรทัด","propertyPanel.k219":"ระยะห่างตัวอักษร","propertyPanel.k220":"ข้อความล้น","propertyPanel.k221":"ตัดทิ้ง","propertyPanel.k222":"ย่อให้พอดี","propertyPanel.k223":"ความสูงแถวอัตโนมัติ","propertyPanel.k224":"ขนาดฟอนต์ขั้นต่ำ (pt)","propertyPanel.k225":"ค่าเริ่มต้น 6","propertyPanel.k226":"เว้นวรรคบรรทัดแรก (อักขระ)","propertyPanel.k227":"ค่าเริ่มต้น 0","propertyPanel.k228":"ตัดคำอัตโนมัติ","propertyPanel.k229":"คงการขึ้นบรรทัด","propertyPanel.k230":"โหมดการปรับขนาด","propertyPanel.k231":"จุดยึดการครอป","propertyPanel.k232":"ไม่รองรับการตั้งค่าลักษณะสำหรับองค์ประกอบนี้","propertyPanel.k233":"การตั้งค่าบาร์โค้ด","propertyPanel.k234":"ประเภทรหัส","propertyPanel.k235":"CODE128 (ทั่วไป)","propertyPanel.k236":"EAN13 (ค้าปลีก)","propertyPanel.k237":"DPI ของเครื่องพิมพ์","propertyPanel.k238":"ไม่ระบุ (แสดงตามความกว้างแท่น)","propertyPanel.k239":"203 dpi (8 จุด/mm)","propertyPanel.k240":"300 dpi (11.8 จุด/mm)","propertyPanel.k241":"600 dpi (23.6 จุด/mm)","propertyPanel.k242":"เมื่อตั้งค่า ความกว้างแท่นจะปรับเป็นจุดพิมพ์เต็ม: บาร์โค้ดแสดงตามความกว้างแท่น ถ้าพอดีจะพิมพ์ตามนั้น มิเช่นนั้นจะย่อขนาดตามสัดส่วน","propertyPanel.k243":"ความกว้างแท่น (อัตราส่วน)","propertyPanel.k244":"ตั้งค่า DPI ของเครื่องพิมพ์แล้ว: ความกว้างแท่นปรับเป็นจุดเต็มที่ใกล้ที่สุด (DPI แทนค่า mm) จะย่อขนาดถ้าไม่พอดี","propertyPanel.k245":"ใช้ 3+ สำหรับเครื่องพิมพ์ความร้อน/ดอทเมทริกซ์: กำหนดขนาดแท่นที่พิมพ์ แท่นหนาจะเสถียรกว่า","propertyPanel.k246":"โซนเงียบ (โมดูล)","propertyPanel.k247":"ค่าเริ่มต้น 10","propertyPanel.k248":"ความสูงแท่น (mm)","propertyPanel.k249":"ค่าเริ่มต้น 30 โมดูล","propertyPanel.k250":"แสดงข้อความ","propertyPanel.k251":"ขนาดข้อความ (เทียบความสูงแท่น 30)","propertyPanel.k252":"ค่าเริ่มต้น 10","propertyPanel.k253":"การแก้ไขข้อผิดพลาด","propertyPanel.k254":"L (ต่ำสุด ความจุสูงสุด)","propertyPanel.k255":"M (แนะนำ)","propertyPanel.k256":"H (สูงสุด)","propertyPanel.k257":"โซนเงียบ (โมดูล)","propertyPanel.k258":"ค่าเริ่มต้น 0","propertyPanel.k259":"การตั้งค่าแบบกำหนดเอง","propertyPanel.k260":"ขนาดบาร์โค้ดขึ้นกับความกว้างแท่นและ DPI ของเครื่องพิมพ์: พิมพ์ตามความกว้างแท่นถ้าพอดี มิเช่นนั้นย่อขนาด; การดึงจะทำให้แท่นไม่เป็นจำนวนเต็ม จึงไม่มีโหมดปรับขนาด—ใช้ความกว้าง/สูงสูงสุดเป็นขีดจำกัด หากต้องการให้ใหญ่ขึ้น: เพิ่มความกว้างแท่น ลดโซนเงียบ หรือซ่อนข้อความเพื่อพื้นที่มากขึ้น","propertyPanel.k261":"โหมดการปรับขนาด","propertyPanel.k262":"ความกว้างสูงสุด (mm)","propertyPanel.k263":"ค่าเริ่มต้น","propertyPanel.k264":"ความสูงสูงสุด (mm)","propertyPanel.k265":"ค่าเริ่มต้น","propertyPanel.k266":"รายการแบบไหล","propertyPanel.k267":"โหมดการจัดวาง","propertyPanel.k268":"ความสูงคงที่","propertyPanel.k269":"การแบ่งหน้าแบบไดนามิก","propertyPanel.k270":"ระยะบน (mm)","propertyPanel.k271":"ระยะขวา (mm)","propertyPanel.k272":"ระยะล่าง (mm)","propertyPanel.k273":"ระยะซ้าย (mm)","propertyPanel.k274":"จำนวนคอลัมน์ต่อแถว","propertyPanel.k275":"ความสูงแถว (mm)","propertyPanel.k276":"ระยะห่างแนวนอนของเซลล์ (mm)","propertyPanel.k277":"ขยายคอลัมน์เมื่อเนื้อหายาว","propertyPanel.k278":"จำนวนคอลัมน์ขยายสูงสุด","propertyPanel.k279":"ที่ขนาดฟอนต์และความกว้างปัจจุบัน {v0} คอลัมน์ค่อนข้างแคบ (พอดีประมาณ {v1}) ค่าไม่เปลี่ยน; การพิมพ์ใช้ {v2} คอลัมน์","propertyPanel.k280":"ผสม","propertyPanel.k281":"เส้นขอบและพื้นหลัง","propertyPanel.k282":"รูปแบบเส้น","propertyPanel.k283":"ความกว้างเส้นขอบ","propertyPanel.k284":"ผสม","propertyPanel.k285":"สีเส้นขอบ","propertyPanel.k286":"สีเส้นขอบ","propertyPanel.k287":"สีพื้นหลัง","propertyPanel.k288":"สีพื้นหลัง","propertyPanel.k289":"การตั้งค่าขั้นสูง","propertyPanel.k290":"ล็อก","propertyPanel.k291":"ทำซ้ำทุกหน้า","propertyPanel.k292":"ตรึงทุกหน้า","propertyPanel.k293":"ลำดับชั้น","propertyPanel.k294":"ลบองค์ประกอบ","propertyPanel.k295":"หมายเหตุการตั้งค่าขั้นสูง","propertyPanel.k296":"หมายเหตุการตั้งค่าขั้นสูง","propertyPanel.k297":"อื่นๆ","propertyPanel.k298":"การตั้งค่าหน้ากระดาษ","propertyPanel.k299":"ขนาดกระดาษ","propertyPanel.k300":"ขนาดกำหนดเอง","propertyPanel.k301":"ความกว้างกระดาษ (mm)","propertyPanel.k302":"ขนาดกำหนดเอง (mm)","propertyPanel.k303":"แนวกระดาษ","propertyPanel.k304":"แนวตั้ง","propertyPanel.k305":"แนวนอน","propertyPanel.k306":"การสลับจะเปลี่ยนความกว้าง/สูงของกระดาษ (เนื้อหาจัดวางบนขนาดใหม่)","propertyPanel.k307":"การหมุนเนื้อหา","propertyPanel.k308":"สำหรับการจัดเรียงชิ้น ฉลากแต่ละชิ้นหมุนตามมนี้; ที่ 90°/270° ความกว้าง/สูงของเซลล์สลับและคอลัมน์เติมตามขีดใหม่; 0° หมายถึงไม่หมุน (ค่าเริ่มต้น)","propertyPanel.k309":"ทั้งหน้าหมุนสำหรับการพิมพ์; ที่ 90°/270° ความกว้าง/สูงของกระดาษสลับเพื่อพอดีโดยไม่บิดเบือนหรือตัด; 0° หมายถึงไม่หมุน (ค่าเริ่มต้น)","propertyPanel.k310":"สีพื้นหลังหน้ากระดาษ","propertyPanel.k311":"สีพื้นหลังหน้ากระดาษ","propertyPanel.k312":"ระยะขอบ (mm)","propertyPanel.k313":"บน","propertyPanel.k314":"ล่าง","propertyPanel.k315":"ซ้าย","propertyPanel.k316":"ขวา","propertyPanel.k317":"ความสูงส่วนหัว/ท้าย (mm)","propertyPanel.k318":"ความสูงส่วนหัว","propertyPanel.k319":"ความสูงส่วนท้าย","propertyPanel.k320":"ขยายแผงคุณสมบัติ","propertyPanel.k321":"คุณสมบัติองค์ประกอบ","propertyPanel.k322":"คุณสมบัติหน้ากระดาษ","propertyPanel.k323":"แผงคุณสมบัติ","propertyPanel.k324":"ยุบแผงคุณสมบัติ","propertyPanel.k325":"คุณสมบัติองค์ประกอบ","propertyPanel.k326":"คุณสมบัติหน้ากระดาษ","propertyPanel.k327":"เลือกองค์ประกอบบนพื้นที่ทำงาน","propertyPanel.k328":"คุณสมบัติที่กำหนดเอง","propertySearch.k328":"ค้นหาคุณสมบัติ...","propertySearch.k329":"ค้นหาคุณสมบัติ","tableProps.k330":"ส่วนหัวหลายระดับทำซ้ำทั้งกลุ่ม เมื่อเลือก แถวหัวทั้งหมดจะซ้ำที่ด้านบนของทุกหน้า","tableProps.k331":"แถวหัว","tableProps.k332":"แถวข้อมูล","tableProps.k333":"แถวรวมย่อย (ต่อหน้า)","tableProps.k334":"แถวสรุป","tableProps.k335":"CODE128 (ทั่วไป)","tableProps.k336":"EAN13 (ค้าปลีก)","tableProps.k337":"L (ต่ำสุด ความจุสูงสุด)","tableProps.k338":"M (แนะนำ)","tableProps.k339":"H (สูงสุด)","tableProps.k340":"ตัดทิ้ง","tableProps.k341":"ย่อให้พอดี","tableProps.k342":"ความสูงแถวอัตโนมัติ","tableProps.k343":"เลือกหลายรายการ","tableProps.k344":"คุณสมบัติแถว","tableProps.k345":"คุณสมบัติแถว","tableProps.k346":"ประเภทแถว","tableProps.k347":"ความสูงแถว (mm)","tableProps.k348":"ทำซ้ำส่วนหัวทุกหน้า","tableProps.k349":"การตั้งค่าตาราง","tableProps.k350":"ฟิลด์แหล่งข้อมูลรายการ","tableProps.k351":"ฟอนต์เริ่มต้น","tableProps.k352":"ค่าเริ่มต้น","tableProps.k353":"ขนาดฟอนต์เริ่มต้น (pt)","tableProps.k354":"ค่าเริ่มต้น","tableProps.k355":"สีข้อความเริ่มต้น","tableProps.k356":"สีข้อความเริ่มต้น","tableProps.k357":"ระยะภายในเริ่มต้น (mm)","tableProps.k358":"ค่าเริ่มต้น","tableProps.k359":"ความกว้างคอลัมน์ (mm)","tableProps.k360":"คอลัมน์ {v0}","tableProps.k361":"ความกว้างตารางไม่เกินความกว้างที่พิมพ์ได้ {v0}mm; คอลัมน์ {v1} ปรับเป็น {v2}mm","tableProps.k362":"เปิดใช้งานการแบ่งหน้า","tableProps.k363":"เข้าร่วมการแบ่งหน้า","tableProps.k364":"หน้าเดียวกับองค์ประกอบถัดไป","tableProps.k365":"การตั้งค่าการแบ่งหน้า","tableProps.k366":"บน","tableProps.k367":"ขวา","tableProps.k368":"ล่าง","tableProps.k369":"ซ้าย","tableProps.k370":"เซลล์","tableProps.k371":"เซลล์","tableProps.k372":"เลือกหลายรายการ","tableProps.k373":"เฉพาะแถวข้อมูลที่รองรับการรวมตามค่า","tableProps.k374":"คืนค่าเริ่มต้น (ตามค่าตาราง)","tableProps.k375":"เซลล์","tableProps.k376":"เลือก {v0} เซลล์ · ตั้งค่าเป็นชุด: ไม่แสดงรายเซลล์ การเปลี่ยนใช้กับเซลล์ที่เลือกทั้งหมด","tableProps.k377":"ประเภทเซลล์","tableProps.k378":"ข้อความ","tableProps.k379":"บาร์โค้ด","tableProps.k380":"คิวอาร์โค้ด","tableProps.k381":"รูปภาพ","tableProps.k382":"ประเภทรหัส","tableProps.k383":"แสดงข้อความ","tableProps.k384":"ความกว้างแท่น (อัตราส่วน)","tableProps.k385":"ตั้งค่า DPI ของเครื่องพิมพ์แล้ว: ความกว้างแท่นปรับเป็นจุดเต็ม (DPI แทนค่า mm) จะย่อขนาดถ้าเซลล์ไม่พอดี","tableProps.k386":"ใช้ 3+ สำหรับเครื่องพิมพ์ความร้อน/ดอทเมทริกซ์: กำหนดขนาดแท่นที่พิมพ์ แท่นหนาจะเสถียรกว่า","tableProps.k387":"โซนเงียบ (โมดูล)","tableProps.k388":"ค่าเริ่มต้น 10","tableProps.k389":"ความสูงแท่น (mm)","tableProps.k390":"ค่าเริ่มต้น 30 โมดูล","tableProps.k391":"ขนาดข้อความ (เทียบความสูงแท่น 30)","tableProps.k392":"ค่าเริ่มต้น 10","tableProps.k393":"DPI ของเครื่องพิมพ์","tableProps.k394":"ไม่ระบุ (แสดงตามความกว้างแท่น)","tableProps.k395":"203 dpi (8 จุด/mm)","tableProps.k396":"300 dpi (11.8 จุด/mm)","tableProps.k397":"600 dpi (23.6 จุด/mm)","tableProps.k398":"เมื่อตั้งค่า ความกว้างแท่นจะปรับเป็นจุดพิมพ์เต็ม: บาร์โค้ดแสดงตามความกว้างแท่น ถ้าพอดีจะพิมพ์ตามนั้น มิเช่นนั้นจะย่อขนาดตามสัดส่วน","tableProps.k399":"การแก้ไขข้อผิดพลาด","tableProps.k400":"โซนเงียบ (โมดูล)","tableProps.k401":"ค่าเริ่มต้น 0","tableProps.k402":"ขนาดบาร์โค้ดของเซลล์ขึ้นกับความกว้างแท่นและ DPI ของเครื่องพิมพ์: พิมพ์ตามความกว้างแท่นถ้าพอดี มิเช่นนั้นย่อขนาด; ไม่มีโหมดปรับขนาด (จะทำให้แท่นไม่เป็นจำนวนเต็ม)—ใช้ความกว้าง/สูงสูงสุดเป็นขีดจำกัด หากต้องการให้ใหญ่ขึ้น: เพิ่มความกว้างแท่น ลดโซนเงียบ หรือซ่อนข้อความ","tableProps.k403":"โหมดการปรับขนาด","tableProps.k404":"จุดยึดการครอป","tableProps.k405":"ความกว้างสูงสุด (mm)","tableProps.k406":"ค่าเริ่มต้น","tableProps.k407":"ความสูงสูงสุด (mm)","tableProps.k408":"ค่าเริ่มต้น","tableProps.k409":"เนื้อหา","tableProps.k410":"เลือกหลายรายการ (รายการที่ป้อนจะแทนที่เซลล์ที่เลือกทั้งหมด)","tableProps.k411":"ป้อนเนื้อหา รองรับนิพจน์ {field}","tableProps.k412":"จัดแนวนอน","tableProps.k413":"ซ้าย","tableProps.k414":"กลาง","tableProps.k415":"ขวา","tableProps.k416":"ชิดสองด้าน","tableProps.k417":"จัดแนวตั้ง","tableProps.k418":"บน","tableProps.k419":"กลาง","tableProps.k420":"ล่าง","tableProps.k421":"ฟอนต์","tableProps.k422":"สืบทอดค่าเริ่มต้น","tableProps.k423":"ขนาดฟอนต์ (pt)","tableProps.k424":"ค่าเริ่มต้น","tableProps.k425":"หนา","tableProps.k426":"สีข้อความ","tableProps.k427":"สีข้อความ","tableProps.k428":"สีพื้นหลัง","tableProps.k429":"สีพื้นหลัง","tableProps.k430":"เส้นขอบ","tableProps.k431":"ผสม","tableProps.k432":"เลือกหลายรายการ","tableProps.k433":"ผสม","tableProps.k434":"สีเส้นขอบ","tableProps.k435":"ทั้งหมด","tableProps.k436":"ด้านนอก","tableProps.k437":"ด้านใน","tableProps.k438":"ไม่มี","tableProps.k439":"ระยะภายใน (mm)","tableProps.k440":"ค่าเริ่มต้น","tableProps.k441":"ตัดคำอัตโนมัติ","tableProps.k442":"ข้อความล้น","tableProps.k443":"ขนาดฟอนต์ขั้นต่ำ (pt)","tableProps.k444":"ค่าเริ่มต้น 6","tableProps.k445":"รวมเซลล์","tableProps.k446":"รวมเซลล์","tableProps.k447":"แยกเซลล์","tableProps.k448":"รวมตามค่า","tableProps.k449":"แถวข้อมูลที่อยู่ติดกันที่มีค่าเท่ากันจะรวมแนวตั้ง; ข้ามหน้าจะแบ่งตามหน้าและทำซ้ำค่าในหน้าต่อเนื่อง","table.k450":"หัว","table.k451":"ข้อมูล","table.k452":"ย่อย","table.k453":"รวม","table.k454":"แถวหัว","table.k455":"แถวข้อมูล","table.k456":"แถวรวมย่อย","table.k457":"แถวสรุป","table.k458":"บาร์โค้ด","table.k459":"รูปภาพ","table.k460":"หลังแทรก ความกว้างตาราง {v0}mm เกินความกว้างที่พิมพ์ได้ {v1}mm; ลดความกว้างคอลัมน์ก่อน","table.k461":"ประเภทแถวไม่ระบุ","table.k462":"ไม่มีเซลล์ที่เลือก","table.k463":"เฉพาะแถวข้อมูลที่รองรับการรวมตามค่า","table.k464":"ไม่มีเซลล์ที่เลือก","table.k465":"ประเภทแถวรองรับการตั้งค่าแถวเดียวเท่านั้น","table.k466":"ไม่มีเซลล์ที่เลือก","table.k467":"แทรกแถวด้านบน","table.k468":"แทรกแถวด้านล่าง","table.k469":"ลบแถว","table.k470":"แทรกคอลัมน์ด้านซ้าย","table.k471":"แทรกคอลัมน์ด้านขวา","table.k472":"ลบคอลัมน์","table.k473":"รวมเซลล์","table.k474":"แยกเซลล์","table.k475":"รวมตามค่า","table.k476":"ประเภทแถว","table.k477":"ตัวจับปรับความกว้างคอลัมน์ {v0}","toolbarOverflow.k478":"คลิปบอร์ด","toolbarOverflow.k479":"เครื่องมือถ่ายรูปแบบ","toolbarOverflow.k480":"ซูม","toolbarOverflow.k481":"จัดระเบียบ / มุมมอง","toolbarOverflow.k482":"เส้นขอบ","toolbarOverflow.k483":"สี","toolbarOverflow.k484":"การจัดตำแหน่ง","toolbarOverflow.k485":"รูปแบบข้อความ","toolbarOverflow.k486":"ฟอนต์และขนาด","toolbarOverflow.k487":"เพิ่มเติม","toolbarOverflow.k488":'{v0}<span class="tb-btn-text">เพิ่มเติม</span>{v1}',"toolbar.k489":"แก้ไขเทมเพลต","toolbar.k490":"เทมเพลตใหม่","toolbar.k491":"จัดตำแหน่ง / กระจาย","toolbar.k492":"จัดชิดซ้าย","toolbar.k493":"จัดชิดขวา","toolbar.k494":"จัดชิดบน","toolbar.k495":"จัดชิดล่าง","toolbar.k496":"จัดกึ่งกลาง","toolbar.k497":"จัดกึ่งกลางแนวตั้ง","toolbar.k498":"กระจายแนวนอน","toolbar.k499":"กระจายแนวตั้ง","toolbar.k500":"ลำดับชั้น","toolbar.k501":"นำไปด้านหน้าสุด","toolbar.k502":"เลื่อนไปข้างหน้า","toolbar.k503":"เลื่อนไปข้างหลัง","toolbar.k504":"ส่งไปด้านหลังสุด","toolbar.k505":"จัดกลุ่ม","toolbar.k506":"จัดกลุ่ม (Ctrl+G)","toolbar.k507":"ยกเลิกจัดกลุ่ม (Ctrl+Shift+G)","toolbar.k508":"ไม้บรรทัด","toolbar.k509":"แสดง/ซ่อนไม้บรรทัด","toolbar.k510":"ตารางนำทาง","toolbar.k511":"แสดง/ซ่อนพื้นหลังตารางนำทาง","toolbar.k512":"กรอบประ","toolbar.k513":"แสดง/ซ่อนแนวประสำหรับตารางไร้เส้นขอบ","toolbar.k514":"ดูดติด","toolbar.k515":"สลับการดูดองค์ประกอบเข้าตารางนำทาง","toolbar.k516":"ตัวออกแบบเทมเพลตการพิมพ์","toolbar.k517":"เลิกทำ","toolbar.k518":"ทำซ้ำ","toolbar.k519":"จัดระเบียบ","toolbar.k520":"จัดระเบียบ","toolbar.k521":"มุมมอง","toolbar.k522":"มุมมอง","toolbar.k523":"พอดีกับหน้าต่าง","toolbar.k524":"ซูมออก","toolbar.k525":"ซูมเข้า","toolbar.k526":"คัดลอก (Ctrl+C) เลือกองค์ประกอบก่อน","toolbar.k527":"คัดลอก (Ctrl+C)","toolbar.k528":"วาง (Ctrl+V) เลือกองค์ประกอบก่อน","toolbar.k529":"วาง (Ctrl+V) คลิปบอร์ดว่าง","toolbar.k530":"วาง (Ctrl+V)","toolbar.k531":"ลบ (Delete) เลือกองค์ประกอบก่อน","toolbar.k532":"ลบ (Delete)","toolbar.k533":"ช่วยเหลือ","toolbar.k534":"ดูตัวอย่างผลการพิมพ์","toolbar.k535":"ตัวอย่าง","toolbar.k536":"บันทึกเทมเพลต","toolbar.k537":"บันทึก","watermark.k538":"ลายน้ำ","watermark.k539":"นิพจน์ลายน้ำ","watermark.k540":"ป้อนข้อความได้เลย หรือนิพจน์: {order.no}, {printDate}","watermark.k541":'ดับเบิลคลิกหรือคลิก "แก้ไขนิพจน์" เพื่อเปิดตัวแก้ไขนิพจน์',"watermark.k542":"แก้ไขนิพจน์","watermark.k543":"ค่าทดสอบ","watermark.k544":"แสดงในตัวอย่างเมื่อนิพจน์ไม่มีค่า","watermark.k545":"มุมหมุน","watermark.k546":"สี","watermark.k547":"สีลายน้ำ","watermark.k548":"ความโปร่งใส","watermark.k549":"ความหนาแน่น","watermark.k550":"กำหนดเอง","watermark.k551":"ความกว้างชิ้น","watermark.k552":"ความสูงชิ้น","elementDefinitions.k553":"ข้อความ","elementDefinitions.k554":"บาร์โค้ด","elementDefinitions.k555":"คิวอาร์โค้ด","elementDefinitions.k556":"รูปภาพ","elementDefinitions.k557":"ตาราง","elementDefinitions.k558":"ข้อความยาว","elementDefinitions.k559":"รายการแบบไหล","elementDefinitions.k560":"เส้นแนวนอน","elementDefinitions.k561":"เส้นแนวตั้ง","elementDefinitions.k562":"สี่เหลี่ยมผืนผ้า","elementDefinitions.k563":"วงรี","elementDefinitions.k564":"หมายเลขหน้า","elementDefinitions.k565":"registerElementDefinition: type ต้องเป็นสตริงที่ไม่ว่างเปล่า","elementDefinitions.k566":"registerElementDefinition: label ต้องเป็นสตริงที่ไม่ว่างเปล่า","elementDefinitions.k567":"registerElementRenderer: ต้องการ type และฟังก์ชัน render","panels.paperRotated":" (หมุน {rot}°)","panels.statusElements":"{count} องค์ประกอบ{selected}","panels.statusSelected":" (เลือก {n})"},...{"expression.tabField":"ฟิลด์","expression.tabVariable":"ตัวแปร","expression.tabFunction":"ฟังก์ชัน","expression.placeholderField":"ค้นหาฟิลด์...","expression.placeholderVariable":"ค้นหาตัวแปร...","expression.placeholderFunction":"ค้นหาฟังก์ชัน...","expression.fnSum":"ผลรวม","expression.fnAvg":"ค่าเฉลี่ย","expression.fnCount":"จำนวน","expression.fnMin":"ค่าต่ำสุด","expression.fnMax":"ค่าสูงสุด","expression.fnAdd":"บวก","expression.fnSub":"ลบ","expression.fnMul":"คูณ","expression.fnDiv":"หาร","expression.fnRound":"ปัดเศษ","expression.fnRoundUp":"ปัดขึ้น","expression.fnRoundDown":"ปัดลง","expression.fnRoundBank":"ปัดเศษแบบธนาคาร","expression.fnMoney":"จัดรูปแบบจำนวนเงิน","expression.fnDate":"จัดรูปแบบวันที่","expression.fnUpper":"จำนวนเงินเป็นตัวอักษร","expression.fnIf":"เงื่อนไข","expression.varPageIndex":"หน้าปัจจุบัน","expression.varTotalPages":"จำนวนหน้าทั้งหมด","expression.varPrintDate":"วันที่พิมพ์","expression.varPrintTime":"เวลาพิมพ์","expression.groupAggregate":"ฟังก์ชันรวมค่า","expression.groupMath":"คณิตศาสตร์","expression.groupFormat":"การจัดรูปแบบ","expression.previewEmpty":"(ดูตัวอย่างหลังป้อนนิพจน์)","expression.previewNoValue":"(ไม่สามารถคำนวณได้)","expression.previewError":"(นิพจน์ผิดพลาด)","expression.k1":"ประเภท","expression.k2":"วิธีป้อน","expression.k3":"ดับเบิลคลิกฟิลด์ ตัวแปร หรือฟังก์ชันทางด้านซ้ายเพื่อแทรก","expression.k4":"ค้าง Ctrl (⌘ บน Mac) ขณะดับเบิลคลิกเพื่อแทรกชื่อฟิลด์เป็นข้อความคงที่","expression.k5":"ป้อนข้อความคงที่ได้เลย เช่น ชื่อผู้จัดจำหน่าย","expression.k6":"ฟิลด์ ตัวแปร และฟังก์ชันแบบไดนามิกต้องอยู่ใน {}","expression.k7":"ตัวอย่าง: {SUM(supplier.name)}","expression.k8":"ป้อนคีย์ภาษาไทยได้โดยตรงเป็น {field} เช่น {name}","expression.k9":"หมายเหตุ: ซ้อนได้เพียงหนึ่งระดับ","expression.k10":"ฟังก์ชัน","expression.k11":"SUM(field) - ผลรวม","expression.k12":"AVG(field) - ค่าเฉลี่ย","expression.k13":"COUNT(field) - จำนวน","expression.k14":"IF(cond, true, false) - เงื่อนไข","expression.k15":"เลขคณิต: {qty * price}, {ADD(qty, 1)}","expression.k16":"การปัดเศษ: ROUND ปัดครึ่งขึ้น / ROUNDUP ปัดขึ้น / ROUNDDOWN ปัดลง / ROUNDBANK แบบธนาคาร","expression.k17":"ตัวแปรระบบ","expression.k18":"{pageIndex} - หน้าปัจจุบัน","expression.k19":"{totalPages} - จำนวนหน้าทั้งหมด","expression.k20":"{printDate} - วันที่พิมพ์","expression.k21":"ตัวอย่าง","expression.k22":"ข้อความคงที่: ชื่อผู้จัดจำหน่าย","expression.k23":"ฟิลด์ไดนามิก: {supplier.name}","expression.k24":"เรียกใช้ฟังก์ชัน: {SUM(amount)}","expression.k25":'เงื่อนไข: {IF(amount>1000, "ใหญ่", "เล็ก")}',"expression.k26":"เลขคณิตและปัดเศษ: {ROUND(qty * price, 2)}","expression.k27":"ไม่มีฟิลด์","expression.k28":"คัดลอกแล้ว","expression.k29":"ประเภท","expression.k30":"ข้อมูลช่วยเหลือ","expression.k31":"วิธีป้อน","expression.k32":"ผลตัวอย่าง","expression.k33":"แก้ไขนิพจน์","expression.k34":"ปิด","expression.k35":"ยกเลิก","expression.k36":"ยืนยัน"}},jS={constants:{"constants.borderStyle.none":"无","constants.borderStyle.solid":"实线","constants.borderStyle.dashed":"虚线","constants.borderStyle.dotted":"点线","constants.borderStyle.double":"双线","constants.paper.A4.label":"A4 210×297mm","constants.paper.A3.label":"A3 297×420mm","constants.paper.A5.label":"A5 148×210mm","constants.paper.Letter.label":"Letter 216×279mm","constants.paper.Legal.label":"Legal 216×356mm","constants.paper.DOT_FULL.label":"全等分 241×279.4mm","constants.paper.DOT_HALF.label":"二等分 241×139.7mm","constants.paper.DOT_THIRD.label":"三等分 241×93.1mm","constants.paper.LABEL_80X60.label":"80×60mm","constants.paper.LABEL_60X40.label":"60×40mm","constants.paper.LABEL_40X30.label":"40×30mm","constants.paper.THERMAL_57.label":"57mm","constants.paper.THERMAL_80.label":"80mm","constants.paper.THERMAL_110.label":"110mm","constants.paper.CONTINUOUS.label":"连续纸(自定义宽度)","constants.paper.group.common":"常用纸张","constants.paper.group.dotMatrix":"针式打印纸","constants.paper.group.labels":"标签纸","constants.paper.group.receipt":"小票纸","constants.paper.group.continuous":"连续纸","constants.watermark.density.dense":"密","constants.watermark.density.medium":"中(默认)","constants.watermark.density.loose":"疏","constants.watermark.density.size":"({w}×{h})","constants.label.content":"内容","constants.hint.border.apply":"线型 / 宽度 / 颜色即时生效,这三行显示的就是当前生效规格:已有边框时任改一行都会按新规格铺满四边并清掉单边覆盖;上、下、左、右只给选中的边加框,撤掉一边会把它其余三边落成单边;「无」清除边框,「内部」仅表格单元格可用","constants.hint.border.pending":"线型 / 宽度 / 颜色是待应用规格:选中格已有的边框规格一致时会填进这三行;四边不一致的项显示「混合」,一条边都没有时显示「无 / 0」。改完点「全部 / 外侧 / 内部」或勾选上、下、左、右某条边才会写入选中的单元格;「无」是清除边框","constants.hint.border.multi":"多选时不回显单格边框:线型 / 宽度 / 颜色按当前设置作为批写规格,点「全部 / 外侧 / 内部」或勾选某条边后写入所有选中格;「无」是清除边框","constants.hint.border.mixed":"当前单元格四边边框规格不一致:带「混合」的项不谎报,未改项在点「全部 / 外侧 / 内部」或勾选单边时按缺省档(实线 0.75pt)写入,改任一项即按该值批写"}},ZS={constants:{"constants.borderStyle.none":"None","constants.borderStyle.solid":"Solid","constants.borderStyle.dashed":"Dashed","constants.borderStyle.dotted":"Dotted","constants.borderStyle.double":"Double","constants.paper.A4.label":"A4 210×297mm","constants.paper.A3.label":"A3 297×420mm","constants.paper.A5.label":"A5 148×210mm","constants.paper.Letter.label":"Letter 216×279mm","constants.paper.Legal.label":"Legal 216×356mm","constants.paper.DOT_FULL.label":"Full sheet 241×279.4mm","constants.paper.DOT_HALF.label":"Half sheet 241×139.7mm","constants.paper.DOT_THIRD.label":"Third sheet 241×93.1mm","constants.paper.LABEL_80X60.label":"80×60mm","constants.paper.LABEL_60X40.label":"60×40mm","constants.paper.LABEL_40X30.label":"40×30mm","constants.paper.THERMAL_57.label":"57mm","constants.paper.THERMAL_80.label":"80mm","constants.paper.THERMAL_110.label":"110mm","constants.paper.CONTINUOUS.label":"Continuous paper (custom width)","constants.paper.group.common":"Common","constants.paper.group.dotMatrix":"Dot-matrix","constants.paper.group.labels":"Labels","constants.paper.group.receipt":"Receipt","constants.paper.group.continuous":"Continuous","constants.watermark.density.dense":"Dense","constants.watermark.density.medium":"Medium (default)","constants.watermark.density.loose":"Sparse","constants.watermark.density.size":" ({w}×{h})","constants.label.content":"Content","constants.hint.border.apply":'Line style / width / color apply immediately; these three rows show the effective spec. With an existing border, changing any row fills all four sides and clears per-side overrides. Top / right / bottom / left add a border only to the selected side; removing one turns the other three into per-side borders. "None" clears the border; "Inside" is available for table cells only.',"constants.hint.border.pending":'Line style / width / color are a pending spec: they are prefilled when the selected cells share one border spec. Mixed values show "Mixed"; no border shows "None / 0". Click All / Outside / Inside or tick a side (top / right / bottom / left) to write to the selected cells; "None" clears the border.',"constants.hint.border.multi":'Multi-select does not show a single cell border: line style / width / color act as a batch spec. Click All / Outside / Inside or tick a side to apply to all selected cells; "None" clears the border.',"constants.hint.border.mixed":'The four sides of this cell have different border specs: "Mixed" is shown instead of a false value. Untouched fields fall back to the default (Solid 0.75pt) when you click All / Outside / Inside or tick a side; changing any field writes that value to the batch.'}},QS={constants:{"constants.borderStyle.none":"ไม่มี","constants.borderStyle.solid":"เส้นทึบ","constants.borderStyle.dashed":"เส้นประ","constants.borderStyle.dotted":"เส้นจุด","constants.borderStyle.double":"เส้นคู่","constants.paper.A4.label":"A4 210×297mm","constants.paper.A3.label":"A3 297×420mm","constants.paper.A5.label":"A5 148×210mm","constants.paper.Letter.label":"Letter 216×279mm","constants.paper.Legal.label":"Legal 216×356mm","constants.paper.DOT_FULL.label":"แผ่นเต็ม 241×279.4mm","constants.paper.DOT_HALF.label":"แผ่นครึ่ง 241×139.7mm","constants.paper.DOT_THIRD.label":"แผ่นหนึ่งในสาม 241×93.1mm","constants.paper.LABEL_80X60.label":"80×60mm","constants.paper.LABEL_60X40.label":"60×40mm","constants.paper.LABEL_40X30.label":"40×30mm","constants.paper.THERMAL_57.label":"57mm","constants.paper.THERMAL_80.label":"80mm","constants.paper.THERMAL_110.label":"110mm","constants.paper.CONTINUOUS.label":"กระดาษต่อเนื่อง (ความกว้างกำหนดเอง)","constants.paper.group.common":"กระดาษทั่วไป","constants.paper.group.dotMatrix":"กระดาษดอทเมทริกซ์","constants.paper.group.labels":"ฉลาก","constants.paper.group.receipt":"ใบเสร็จ","constants.paper.group.continuous":"กระดาษต่อเนื่อง","constants.watermark.density.dense":"หนาแน่น","constants.watermark.density.medium":"กลาง (ค่าเริ่มต้น)","constants.watermark.density.loose":"ห่าง","constants.watermark.density.size":" ({w}×{h})","constants.label.content":"เนื้อหา","constants.hint.border.apply":'รูปแบบเส้น/ความกว้าง/สีมีผลทันที สามบรรทัดนี้แสดงผลที่มีผลอยู่: เมื่อมีเส้นขอบอยู่แล้ว การเปลี่ยนแถวใดจะเติมสี่ด้านและลบการเขียนทับรายด้าน; บน/ขวา/ล่าง/ซ้ายเพิ่มเส้นเฉพาะด้านที่เลือก การลบด้านหนึ่งจะทำให้สามด้านที่เหลือเป็นเส้นแยก; "ไม่มี" ลบเส้นขอบ "ด้านใน" ใช้สำหรับเซลล์ตารางเท่านั้น',"constants.hint.border.pending":'รูปแบบเส้น/ความกว้าง/สีเป็นค่าที่รอใช้งาน: จะเติมในสามบรรทัดนี้เมื่อเซลล์ที่เลือกมีเส้นขอบสอดคล้องกัน; ค่าที่ไม่ตรงกันแสดง "ผสม" ไม่มีเส้นแสดง "ไม่มี / 0" แก้แล้วคลิก ทั้งหมด/ด้านนอก/ด้านใน หรือทำเครื่องหมายด้านใดด้านหนึ่งจึงเขียนลงเซลล์ที่เลือก; "ไม่มี" ลบเส้นขอบ',"constants.hint.border.multi":'การเลือกหลายรายการไม่แสดงเส้นขอบของเซลล์เดี่ยว: รูปแบบเส้น/ความกว้าง/สีเป็นค่าเขียนเป็นชุด คลิก ทั้งหมด/ด้านนอก/ด้านใน หรือทำเครื่องหมายด้านใดด้านหนึ่งเพื่อเขียนทุกเซลล์ที่เลือก; "ไม่มี" ลบเส้นขอบ',"constants.hint.border.mixed":'เส้นขอบสี่ด้านของเซลล์นี้ไม่สอดคล้องกัน: รายการ "ผสม" ไม่รายงานค่าผิด; รายการที่ไม่เปลี่ยนใช้ค่าเริ่มต้น (เส้นทึบ 0.75pt) เมื่อคลิก ทั้งหมด/ด้านนอก/ด้านใน หรือทำเครื่องหมายด้านเดียว; เปลี่ยนรายการใดจะเขียนค่านั้นเป็นชุด'}},JS={propertyTips:{"propertyTips.ap-long-text-indent":"长文本每段首行空出的宽度,单位「字符」:填 2 即缩进两个汉字宽(中文排版惯例),按 em 落纸——字号被「自动缩小」压小时缩进同步变窄。仅长文本元素生效,写在普通文本上不生效","propertyTips.ap-img-fit":"图片在元素框内的缩放方式:包含=完整显示、可能留白;剪裁=铺满框并按「裁剪锚点」取一块;拉伸=填满框会变形;原始尺寸与缩小不放大。画布与三条出纸链路同一口径(缺省包含)","propertyTips.ap-img-object-position":"取位(仅「剪裁」档有这一行):剪裁把图等比铺满元素框,多出来的那一条边按这里选的位置取舍。先选位置档(贴边/居中/贴另一头),再按百分比微调,0 贴左/贴顶,100 挪到另一头,水平与垂直各自独立;缺省取正中间(保住证件照头顶就选顶部)。其余缩放模式图比框小或刚好铺满,没有可裁的边,所以不出本行","propertyTips.ap-img-fit-scale":"剪裁放大:等比铺满之后把画面再推大这么多,两轴才真的各多出一条边可裁——图与框同比例时不放大就什么都裁不掉。100=不放大(缺省),上限 400;超出框的部分由元素框裁掉。锚点选中的那一点既是取位的钉住点、也是放大的中心,两者共用同一个值。仅「剪裁」档生效,其余缩放模式不出本行","propertyTips.ap-rotate":"元素绕自身中心旋转的角度(度,0~359):出纸时按旋转后外接盒分页与结算,底部放不下自动移页,超出纸面左右缘或顶部会被裁切并给出纸提示。表格、流式列表与表格下方跟随区的元素不支持旋转(这三类不出本行);条码与二维码的任意角度需 385dpi 以上打印头,低分辨率打印机只按 90° 步进出纸","propertyTips.fl-columns":"一行排几个单元,必须由你指定——不随内容自动算列数。填的列数乘单元宽放不下元素框时只给提示、不改你的数,出纸按你填的排","propertyTips.fl-row-height":"每个单元行的最低高度(毫米),与表格行高同一口径:内容比它高时这一行会撑高,不会裁字","propertyTips.fl-gap-x":"相邻单元之间的横向留白(毫米);纵向不留缝,行与行的距离由行高承担","propertyTips.fl-auto-span":"单元内容比一列还宽时,让它占掉两个或更多列位;当前行剩不够放就把整个单元挪到下一行行首(绝不把词切两半)。默认关——开着时出纸栏数由字号与框宽决定","propertyTips.fl-max-span":"跨列的列数上限,最大只能等于「每行列数」:把每行列数改小时,这里会被一并顶回去","propertyTips.fl-layout-mode":"容器高度由谁决定:固定高度=维持设计高度、一框一页,超高裁切(存量模板默认值,输出不变);动态分页=容器高度由内容撑开,内容满页后按行续页,每一页都画完整边框,元素下方的跟随区与表格同一套规则","propertyTips.fl-padding-top":"动态分页模式下容器顶部与第一行内容之间的留白(毫米),仅动态模式生效;每页切片都按它留白并计入分页预算,负值与非法值按 0 处理","propertyTips.fl-padding-right":"动态分页模式下容器右侧与内容之间的留白(毫米),会压缩参与列宽估算的内容宽度,仅动态模式生效","propertyTips.fl-padding-bottom":"动态分页模式下容器底部与最后一行内容之间的留白(毫米),每页切片都按它留白并计入分页预算,仅动态模式生效","propertyTips.fl-padding-left":"动态分页模式下容器左侧与内容之间的留白(毫米),会压缩参与列宽估算的内容宽度,仅动态模式生效","propertyTips.cd-bar-quiet-zone":"条形码左右两端的空白格数(1 格 = 1 条宽):缺省 10,正是一维码码制要求的下限;数值越小白边越窄、同样的框内条越粗(可放大)。填 0 即不留白边,但静区参与「条→空→条」跳变,紧邻文字或表格线时可能扫不出,需实打验证","propertyTips.cd-bar-height":"黑白条本体的目标高度(mm,不含下方文字):折算粒度就是每模块物理宽,所以只能精确到它的整数倍。条宽优先——可用框高装不下时期望条高让位,绝不把条宽挤窄(热敏出纸清晰度靠条宽)。与「最大高度」分工不同:那条限的是整图(含文字)的上限","propertyTips.cd-quiet-zone":"二维码四周留出的空白格数:0 即不留白边、码面等比铺满元素框(此时靠框外的白纸充当静区);数值越大白边越宽、码面在框内越小(缺省 0,需 ISO/IEC 18004 推荐静区时填 4)"}},e2={propertyTips:{"propertyTips.ap-long-text-indent":'First-line indent for each paragraph of a long-text element, in characters: 2 means two Chinese characters wide (a common CJK convention), laid out in em units — it scales down when "Auto shrink" reduces the font size. Applies to long-text elements only; setting it on plain text has no effect.',"propertyTips.ap-img-fit":"How the image is scaled inside the element box. Contain: show the whole image, possibly with blank space. Crop: fill the box and take a region based on the crop anchor. Stretch: fill the box and distort. Original size / Shrink: never enlarge. The canvas and all three print pipelines use the same rule (Contain by default).","propertyTips.ap-img-object-position":"Crop anchor (only shown for Crop mode): cropping scales the image to fill the box, and this picks which extra edge to keep. Choose a position preset (edge / center / opposite edge), then fine-tune with the percentage: 0 aligns left/top, 100 aligns to the other end; horizontal and vertical are independent. The default is centered (choose Top to keep the head in ID photos). Other fit modes have no crop edge, so this row is hidden.","propertyTips.ap-img-fit-scale":"Crop zoom: after filling the box, enlarge the image by this much so both axes gain a crop margin — when image and box have the same aspect ratio, no zoom means nothing can be cropped. 100 = no zoom (default), maximum 400; anything outside the box is clipped by the element frame. The chosen anchor is both the pinning point and the zoom center. Shown for Crop mode only.","propertyTips.ap-rotate":"Rotation of the element about its own center, in degrees (0–359). During printing, pagination and layout use the rotated bounding box: content that does not fit at the bottom moves to the next page, and content beyond the left/right/top paper edges is clipped with a print warning. Tables, flow lists and elements in the follow-up zone below a table do not support rotation (this row is hidden for them); arbitrary angles for barcodes and QR codes require a 385dpi+ print head — lower-resolution printers only output in 90° steps.","propertyTips.fl-columns":"The number of cells per row must be specified by you — it is never inferred from content. If the column count times the cell width does not fit the element box, you get a hint but your value is not changed, and print output follows what you entered.","propertyTips.fl-row-height":"Minimum height of each cell row, in millimetres, using the same rule as table row height: a row grows when its content is taller, and text is never clipped.","propertyTips.fl-gap-x":"Horizontal whitespace between adjacent cells, in millimetres. No vertical gap is inserted; the distance between rows comes from the row height.","propertyTips.fl-auto-span":"When a cell is wider than one column, let it span two or more columns; if the current row has too few columns left, move the whole cell to the start of the next row (never split a word). Off by default — when on, the printed column count depends on font size and box width.","propertyTips.fl-max-span":'Upper limit for column spanning; it can never exceed "Columns per row". Lowering the column count also pushes this value down.',"propertyTips.fl-layout-mode":"What decides the container height. Fixed height: keep the designed height, one box per page, clip overflow (the default for existing templates, output unchanged). Dynamic pagination: the container grows with its content, continues row by row after a page fills, draws a complete border on every page, and follows the same rules as tables for the follow-up zone below the element.","propertyTips.fl-padding-top":"Whitespace between the top of the container and the first content row in dynamic pagination mode, in millimetres. Only applies in dynamic mode; every page slice uses this padding and counts it in the pagination budget. Negative or invalid values are treated as 0.","propertyTips.fl-padding-right":"Whitespace between the right side of the container and the content in dynamic pagination mode, in millimetres; it reduces the content width available for column-width estimation. Only applies in dynamic mode.","propertyTips.fl-padding-bottom":"Whitespace between the bottom of the container and the last content row in dynamic pagination mode, in millimetres. Only applies in dynamic mode; every page slice uses this padding and counts it in the pagination budget.","propertyTips.fl-padding-left":"Whitespace between the left side of the container and the content in dynamic pagination mode, in millimetres; it reduces the content width available for column-width estimation. Only applies in dynamic mode.","propertyTips.cd-bar-quiet-zone":"Number of blank modules on each side of a barcode (1 module = 1 bar width): the default of 10 is the minimum required by 1D symbologies. Smaller values narrow the quiet zone and make bars thicker in the same box (they can be enlarged). Setting 0 removes the white margin, but the quiet zone participates in bar-space-bar transitions, so codes next to text or table lines may fail to scan — verify with a real print.","propertyTips.cd-bar-height":'Target height of the black bars themselves, in millimetres (excluding the text below). The granularity is the physical width of one module, so only integer multiples are exact. Bar width takes priority: if the available height cannot fit the desired bar height, the height gives way — bars are never narrowed (thermal print clarity depends on bar width). This differs from "Maximum height", which limits the whole image including text.',"propertyTips.cd-quiet-zone":"Number of blank modules around a QR code: 0 means no white margin and the code scales to fill the element box (the surrounding white paper acts as the quiet zone). Larger values widen the margin and make the code smaller in the box. The default is 0; use 4 for the quiet zone recommended by ISO/IEC 18004."}},t2={propertyTips:{"propertyTips.ap-long-text-indent":'ระยะเว้นบรรทัดแรกของแต่ละย่อหน้าในข้อความยาว หน่วยเป็นอักขระ: ใส่ 2 หมายถึงเว้นสองตัวอักษรจีน (ตามธรรมเนียม CJK) คำนวณเป็นหน่วย em — จะย่อตามเมื่อ "ย่ออัตโนมัติ" ลดขนาดฟอนต์ ใช้เฉพาะองค์ประกอบข้อความยาว การตั้งค่าบนข้อความธรรมดาไม่มีผล',"propertyTips.ap-img-fit":"วิธีปรับขนาดรูปภาพภายในกรอบองค์ประกอบ พอดี: แสดงรูปทั้งหมดอาจมีช่องว่าง ครอบ: เติมกรอบแล้วตัดตามจุดยึดการครอป ดึง: เติมกรอบและบิดเบือน ขนาดต้นฉบับ/ย่อ: ไม่ขยาย พื้นที่ทำงานและทั้งสามไปป์ไลน์การพิมพ์ใช้กฎเดียวกัน (ค่าเริ่มต้นพอดี)","propertyTips.ap-img-object-position":"จุดยึดการครอป (แสดงเฉพาะโหมดครอบ): การครอปปรับรูปให้เติมกรอบ ตัวเลือกนี้เลือกขอบส่วนเกินที่ต้องการคงไว้ เลือกระดับตำแหน่ง (ชิดขอบ/กลาง/ชิดอีกด้าน) แล้วปรับด้วยเปอร์เซ็นต์: 0 ชิดซ้าย/บน 100 ชิดขวา/ล่าง แนวนอนและแนวตั้งอิสระต่อกัน ค่าเริ่มต้นอยู่กึ่งกลาง (เลือก บน เพื่อคงศีรษะในรูปบัตรประจำตัว) โหมดอื่นไม่มีขอบให้ครอปจึงซ่อนบรรทัดนี้","propertyTips.ap-img-fit-scale":"ขยายการครอป: หลังเติมกรอบแล้วขยายภาพอีกมากน้อยเพียงนี้ เพื่อให้ทั้งสองแกนมีขอบให้ครอป — เมื่อรูปและกรอบมีอัตราส่วนเท่ากัน การไม่ขยายจะครอปไม่ได้เลย 100 = ไม่ขยาย (ค่าเริ่มต้น) สูงสุด 400 ส่วนที่เกินกรอบถูกตัดโดยกรอบองค์ประกอบ จุดยึดที่เลือกเป็นทั้งจุดตรึงและศูนย์กลางการขยาย แสดงเฉพาะโหมดครอบ","propertyTips.ap-rotate":"มุมหมุนขององค์ประกอบรอบจุดศูนย์กลางตัวเอง เป็นองศา (0–359) ขณะพิมพ์ การแบ่งหน้าและการจัดวางใช้กล่องล้อมรอบที่หมุนแล้ว: เนื้อหาที่ไม่พอด้านล่างย้ายไปหน้าถัดไป และเนื้อหาที่เกินขอบกระดาษซ้าย/ขวา/บนถูกตัดพร้อมคำเตือน ตาราง รายการแบบไหล และองค์ประกอบในโซนตามหลังตารางไม่รองรับการหมุน (ซ่อนบรรทัดนี้); มุมใดๆ ของบาร์โค้ดและคิวอาร์โค้ดต้องการหัวพิมพ์ 385dpi ขึ้นไป — เครื่องพิมพ์ความละเอียดต่ำกว่าส่งออกได้เฉพาะขั้น 90°","propertyTips.fl-columns":"จำนวนเซลล์ต่อแถวต้องระบุเองเสมอ — ไม่คำนวณจากเนื้อหา หากจำนวนคอลัมน์คูณความกว้างเซลล์ไม่พอดีกับกรอบองค์ประกอบจะมีคำแนะนำแต่ค่าไม่เปลี่ยน และผลการพิมพ์เป็นไปตามที่ป้อน","propertyTips.fl-row-height":"ความสูงขั้นต่ำของแถวเซลล์แต่ละแถว เป็นมิลลิเมตร ใช้กฎเดียวกับความสูงแถวตาราง: แถวจะสูงขึ้นเมื่อเนื้อหาสูงกว่า และข้อความไม่ถูกตัด","propertyTips.fl-gap-x":"ช่องว่างแนวนอนระหว่างเซลล์ที่อยู่ติดกัน เป็นมิลลิเมตร ไม่มีการเว้นช่องแนวตั้ง ระยะระหว่างแถวมาจากความสูงแถว","propertyTips.fl-auto-span":"เมื่อเซลล์กว้างกว่าหนึ่งคอลัมน์ ให้ขยายครอบสองคอลัมน์ขึ้นไป; หากแถวปัจจุบันเหลือคอลัมน์ไม่พอ ย้ายเซลล์ทั้งหมดไปขึ้นต้นแถวถัดไป (ไม่ตัดคำ) ปิดอยู่โดยค่าเริ่มต้น — เมื่อเปิด จำนวนคอลัมน์ที่พิมพ์ขึ้นกับขนาดฟอนต์และความกว้างกรอบ","propertyTips.fl-max-span":'ขีดจำกัดบนของการขยายคอลัมน์ ห้ามเกิน "จำนวนคอลัมน์ต่อแถว" การลดจำนวนคอลัมน์จะดันค่านี้ลงด้วย',"propertyTips.fl-layout-mode":"อะไรเป็นตัวกำหนดความสูงของคอนเทนเนอร์ ความสูงคงที่: คงความสูงที่ออกแบบ หนึ่งกรอบต่อหน้า ตัดส่วนเกิน (ค่าเริ่มต้นของเทมเพลตเดิม ผลไม่เปลี่ยน) การแบ่งหน้าแบบไดนามิก: คอนเทนเนอร์ ขยายตามเนื้อหา ดำเนินต่อเป็นแถวหลังหน้าเต็ม วาดเส้นขอบครบทุกหน้า และปฏิบัติตามกฎเดียวกับตารางสำหรับโซนตามหลังองค์ประกอบ","propertyTips.fl-padding-top":"ช่องว่างระหว่างด้านบนของคอนเทนเนอร์กับแถวเนื้อหาแรกในโหมดแบ่งหน้าแบบไดนามิก เป็นมิลลิเมตร ใช้เฉพาะโหมดไดนามิก ทุกชิ้นของหน้าใช้ระยะนี้และนับรวมในงบการแบ่งหน้า ค่าติดลบหรือไม่ถูกต้องถือเป็น 0","propertyTips.fl-padding-right":"ช่องว่างระหว่างด้านขวาของคอนเทนเนอร์กับเนื้อหาในโหมดแบ่งหน้าแบบไดนามิก เป็นมิลลิเมตร จะลดความกว้างเนื้อหาที่ใช้คำนวณความกว้างคอลัมน์ ใช้เฉพาะโหมดไดนามิก","propertyTips.fl-padding-bottom":"ช่องว่างระหว่างด้านล่างของคอนเทนเนอร์กับแถวเนื้อหาสุดท้ายในโหมดแบ่งหน้าแบบไดนามิก เป็นมิลลิเมตร ใช้เฉพาะโหมดไดนามิก ทุกชิ้นของหน้าใช้ระยะนี้และนับรวมในงบการแบ่งหน้า","propertyTips.fl-padding-left":"ช่องว่างระหว่างด้านซ้ายของคอนเทนเนอร์กับเนื้อหาในโหมดแบ่งหน้าแบบไดนามิก เป็นมิลลิเมตร จะลดความกว้างเนื้อหาที่ใช้คำนวณความกว้างคอลัมน์ ใช้เฉพาะโหมดไดนามิก","propertyTips.cd-bar-quiet-zone":"จำนวนโมดูลว่างสองข้างของบาร์โค้ด (1 โมดูล = 1 ความกว้างแท่น): ค่าเริ่มต้น 10 คือค่าต่ำสุดที่รหัสแบบหนึ่งมิติต้องการ ค่าที่เล็กลงทำให้โซนเงียบแคบและแท่นหนาขึ้นในกรอบเดียวกัน (สามารถขยายได้) การตั้ง 0 ลบขอบขาว แต่โซนเงียบมีส่วนในการเปลี่ยนแท่น-ช่อง-แท่น รหัสที่อยู่ติดข้อความหรือเส้นตารางอาจสแกนไม่ได้ — ตรวจด้วยการพิมพ์จริง","propertyTips.cd-bar-height":'ความสูงเป้าหมายของแท่นดำเอง เป็นมิลลิเมตร (ไม่รวมข้อความด้านล่าง) ความละเอียดคือความกว้างทางกายภาพของหนึ่งโมดูล จึงแม่นยำเฉพาะจำนวนเต็มเท่านั้น ความกว้างแท่นมีสิทธิ์ก่อน: หากความสูงที่มีไม่พอตามที่ต้องการ ความสูงจะยอมตาม — ไม่เคยทำให้แท่นแคบลง (ความชัดของการพิมพ์ความร้อนขึ้นกับความกว้างแท่น) ต่างจาก "ความสูงสูงสุด" ที่จำกัดทั้งภาพรวมข้อความ',"propertyTips.cd-quiet-zone":"จำนวนโมดูลว่างรอบคิวอาร์โค้ด: 0 หมายถึงไม่มีขอบขาวและรหัสขยายเติมกรอบ (กระดาษขาวรอบนอกทำหน้าที่โซนเงียบ) ค่าที่ใหญ่ขึ้นทำให้ขอบกว้างและรหัสเล็กลงในกรอบ ค่าเริ่มต้น 0 ใช้ 4 สำหรับโซนเงียบตามที่ ISO/IEC 18004 แนะนำ"}};function dg(t){if(typeof t!="string")return"zh-CN";const e=t.trim();return e?/^en([-_]|$)/i.test(e)?"en-US":/^th([-_]|$)/i.test(e)?"th-TH":e:"zh-CN"}function vg(){try{if(typeof navigator<"u"&&typeof navigator.language=="string")return dg(navigator.language)}catch{}return"zh-CN"}function r2(){const t=fg();return t.init({resources:{"zh-CN":{core:KS,constants:jS.constants,propertyTips:JS.propertyTips},"en-US":{core:XS,constants:ZS.constants,propertyTips:e2.propertyTips},"th-TH":{core:qS,constants:QS.constants,propertyTips:t2.propertyTips}},lng:vg(),fallbackLng:"zh-CN",ns:["core"],defaultNS:"core",keySeparator:!1,nsSeparator:!1,interpolation:{prefix:"{",suffix:"}",escapeValue:!1},returnNull:!1,returnEmptyString:!1,saveMissing:!0,missingKeyHandler:()=>{}}),t}const Ep=r2(),a2=new Set,n2=new Set;Ep.on("missingKey",(t,e,r)=>{Ep.exists(r,{lng:"zh-CN"})||a2.add(r)});function gg(){return vg()}function i2(){return gg()}function o2(t,e){return typeof t=="string"?t:t==null?e:String(t)}function s2(t,e,r){const a=Ep.getFixedT(dg(t),l2()),n=r?a(e,r):a(e);return o2(n,e)}function Se(t,e){return s2(gg(),t,e)}function l2(){return["user",...n2,"constants","propertyTips","core"]}function u2(t,e,r){return new Intl.NumberFormat(e,r).format(t)}function p2(){let t=0;return function(){return t+=1,`cell-${Date.now().toString(36)}-${t}`}}function c2(){let t=0;return function(){return t+=1,`row-${Date.now().toString(36)}-${t}`}}const f2=p2(),h2=c2(),Ts={width:.75,style:"solid",color:"#333333"};function d2(t){return{id:f2(),borders:{top:{...Ts},right:{...Ts},bottom:{...Ts},left:{...Ts}},...t}}function v2(){const t=[50,50,50],e=(a,n)=>({id:h2(),type:a,height:8,...n!==void 0?{repeatOnPage:n}:{},cells:t.map(()=>d2())}),r=e("header",!0);return r.cells.forEach((a,n)=>{a.formatter=Se("table.defaultHeader",{index:n+1}),a.align="center",a.fontWeight="bold"}),{rows:[r,e("data"),e("subtotal"),e("summary")],colWidths:t}}const mg=Symbol.for("worm-print-platform.element-capabilities.v1"),yg=globalThis;function Dn(){const t=yg[mg];if(t)return t;const e={entries:new Map,nextSeq:0,bootstrapped:!1};return yg[mg]=e,g2(e),e}const Ip=Object.freeze({text:{zoneAllowed:!0,defaultTextFit:"clip",bindings:[{targetPath:"options.formatter",label:"内容",labelKey:"constants.label.content",dataSource:"main"}],defaultOptions:()=>({formatter:"文本",exampleValue:"示例文本",fontSize:12,textAlign:"left",height:5.3}),title:"文本"},longText:{defaultTextFit:"autoHeight",bindings:[{targetPath:"options.formatter",label:"内容",labelKey:"constants.label.content",dataSource:"main"},{targetPath:"options.styler",label:"样式",dataSource:"main"}],defaultOptions:()=>({width:141.1,height:28.2,fontSize:12,lineHeight:18,exampleValue:"示例长文本内容"}),title:"长文"},barcode:{zoneAllowed:!0,codeRotationDpiGated:!0,bindings:[{targetPath:"options.formatter",label:"内容",labelKey:"constants.label.content",dataSource:"main"}],defaultOptions:()=>({width:56.4,height:14.1,title:"条形码",barcodeType:"code128",testData:"12345678",exampleValue:"12345678"}),title:"条形码"},qrcode:{zoneAllowed:!0,codeRotationDpiGated:!0,bindings:[{targetPath:"options.formatter",label:"内容",labelKey:"constants.label.content",dataSource:"main"}],defaultOptions:()=>({width:28.2,height:28.2,title:"二维码",testData:"qrcode",exampleValue:"qrcode"}),title:"二维码"},image:{zoneAllowed:!0,bindings:[{targetPath:"options.src",label:"内容",labelKey:"constants.label.content",dataSource:"main",placeholder:"输入图片路径,支持 /docfiles/... 相对路径、绝对 URL 或 {字段} 表达式"}],defaultOptions:()=>({width:28.2,height:28.2,fit:"contain"}),title:"图片"},table:{rotationExcluded:!0,acceptsElementBorder:!1,bindings:[],defaultOptions:()=>{const{rows:t,colWidths:e}=v2(),r=e.reduce((n,i)=>n+i,0),a=t.reduce((n,i)=>n+i.height,0);return{width:r,height:a,tableMode:"dynamic",tableRows:t,tableColWidths:e,tableDefaultFontSize:10,tableDefaultColor:"#333333",tableDefaultPadding:1,fields:[],tablePagination:{enabled:!0}}},title:"表格"},flowList:{rotationExcluded:!0,defaultTextFit:"clip",bindings:[{targetPath:"options.formatter",label:"单元模板",dataSource:"main",placeholder:"{drugs.name} {drugs.spec}"}],defaultOptions:()=>({width:141.1,height:21.2,fontSize:12,formatter:"{name} {spec}",flowColumns:4,flowRowHeight:8,flowGapX:4,flowAutoSpan:!1,flowMaxSpan:2,flowLayoutMode:"fixed",flowPaddingTop:0,flowPaddingRight:0,flowPaddingBottom:0,flowPaddingLeft:0}),title:"流式列表"},hline:{zoneAllowed:!0,acceptsElementBorder:!1,defaultOptions:()=>({width:70.6,height:1.8,borderWidth:.75}),title:"横线"},vline:{zoneAllowed:!0,acceptsElementBorder:!1,defaultOptions:()=>({width:1.8,height:35.3,borderWidth:.75}),title:"竖线"},rect:{zoneAllowed:!0,acceptsElementBorder:!1,defaultOptions:()=>({width:28.2,height:28.2,borderWidth:1,borderColor:"#333"}),title:"矩形"},oval:{zoneAllowed:!0,acceptsElementBorder:!1,defaultOptions:()=>({width:28.2,height:28.2,borderWidth:1,borderColor:"#333"}),title:"椭圆"},html:{blocked:!0,defaultOptions:()=>({width:28.2,height:28.2}),title:"HTML"},pageNumber:{title:"页码"}});function g2(t){if(!t.bootstrapped){t.bootstrapped=!0;for(const[e,r]of Object.entries(Ip))t.entries.has(e)||t.entries.set(e,{caps:r,seq:t.nextSeq++})}}function m2(t,e){if(!t||typeof t!="string")throw new Error("registerElementCapabilities: type 必须是非空字符串");if(!e||typeof e!="object")throw new Error("registerElementCapabilities: caps 必须是对象");const r=Dn(),a=r.nextSeq++;return r.entries.set(t,{caps:e,seq:a}),()=>{if(Dn().entries.get(t)?.caps!==e)return;const i=Ip[t];i?Dn().entries.set(t,{caps:i,seq:a}):Dn().entries.delete(t)}}function bg(t){return t?{...Dn().entries.get(t)?.caps??{},type:t}:{type:""}}function kg(){return[...Dn().entries.entries()].sort((t,e)=>t[1].seq-e[1].seq).map(([t])=>t)}const wg=Symbol.for("worm-print-platform.element-plugin-registry.v1"),_g=globalThis;function Cs(){const t=_g[wg];if(t)return t;const e={plugins:new Map,typeIndex:new Map,configs:new Map,legacyAliases:new Map};return _g[wg]=e,e}function xg(t){if(!t?.id||typeof t.id!="string")throw new Error("defineElementPlugin: id 必须是非空字符串");if(!t.version||typeof t.version!="string")throw new Error("defineElementPlugin: version 必须是非空字符串");if(!Array.isArray(t.kinds)||t.kinds.length===0)throw new Error("defineElementPlugin: kinds 必须是非空数组");const e=new Set;for(const r of t.kinds){if(!r?.type||typeof r.type!="string")throw new Error("defineElementPlugin: kinds[].type 必须是非空字符串");if(e.has(r.type))throw new Error(`defineElementPlugin: kinds 内 type 重复「${r.type}」`);e.add(r.type)}}function y2(t){return xg(t),t}function Pg(t){xg(t);const e=Cs();for(const[a,n]of[...e.typeIndex])n.plugin.id===t.id&&n.plugin!==t&&e.typeIndex.delete(a);e.plugins.set(t.id,t);for(const a of t.kinds)e.typeIndex.set(a.type,{plugin:t,kind:a});const r=[];for(const a of t.kinds){const n={...a.fixedHeight===!0?{fixedHeight:!0}:{},...a.blocked===!0?{blocked:!0}:{},...a.capabilities??{}};Object.keys(n).length!==0&&r.push(m2(a.type,n))}for(const[a,n]of Object.entries(t.legacyAliases??{}))e.legacyAliases.set(a,n);return()=>{if(e.plugins.get(t.id)===t){e.plugins.delete(t.id);for(const[a,n]of[...e.typeIndex])n.plugin===t&&e.typeIndex.delete(a);for(const a of r)a()}}}function b2(t){return Cs().plugins.get(t)}function k2(t,e){const r=Cs();r.configs.set(t,{...r.configs.get(t)??{},...e})}function w2(t){return{...Cs().configs.get(t)??{}}}function _2(){return kg().filter(t=>bg(t).blocked===!0)}_2();function x2(){return kg().filter(t=>bg(t).zoneAllowed===!0)}x2();const Sg=["#000000","#333333","#666666","#999999","#cccccc","#ffffff","#e53935","#fb8c00","#1e88e5","#43a047","#8d6e63","#00acc1"],P2=new Set(["constructor","__proto__","prototype","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__"]),S2=new Set(["new","function","class","this","delete","typeof","void","in","of","var","let","const","return","if","while","for"]);function Op(t){const e=[];let r=0;const a=t.length;for(;r<a;){const n=t[r];if(/\s/.test(n)){r++;continue}if(/[0-9]/.test(n)||n==="."&&r+1<a&&/[0-9]/.test(t[r+1])){let s=r;for(;s<a&&/[0-9.]/.test(t[s]);)s++;e.push({type:"num",value:t.slice(r,s),position:r}),r=s;continue}if(n==="'"||n==='"'){let s=r+1,l="";for(;s<a&&t[s]!==n;)t[s]==="\\"&&s+1<a?(l+=t[s+1],s+=2):(l+=t[s],s++);if(s>=a)throw new Error(Se("diagnostic.lexer.unterminatedString"));e.push({type:"str",value:l,position:r}),r=s+1;continue}if(/[A-Za-z_$\u4e00-\u9fff]/.test(n)){let s=r;for(;s<a&&/[A-Za-z0-9_$\u4e00-\u9fff]/.test(t[s]);)s++;const l=t.slice(r,s);if(S2.has(l))throw new Error(Se("diagnostic.lexer.keyword",{word:l}));if(P2.has(l))throw new Error(Se("diagnostic.lexer.forbidden",{word:l}));l==="true"||l==="false"?e.push({type:"bool",value:l,position:r}):e.push({type:"ident",value:l,position:r}),r=s;continue}const i=t.slice(r,r+3);if(i==="==="||i==="!=="){e.push({type:"punc",value:i,position:r}),r+=3;continue}const o=t.slice(r,r+2);if(o==="=>")throw new Error(Se("diagnostic.lexer.noFunctionDef"));if(["==","!=","<=",">=","&&","||"].includes(o)){e.push({type:"punc",value:o,position:r}),r+=2;continue}if(n==="=")throw new Error(Se("diagnostic.lexer.noAssignment"));if(n===";")throw new Error(Se("diagnostic.lexer.noMultipleStatements"));if("+-*/%()[]{},:.?!<>".includes(n)){e.push({type:"punc",value:n,position:r}),r++;continue}throw new Error(Se("diagnostic.lexer.invalidChar",{ch:n}))}return e}function Rp(t){return new T2(t).parse()}class T2{constructor(e){this.pos=0,this.tokens=e}parse(){const e=this.parseTernary();if(this.pos<this.tokens.length)throw new Error(Se("diagnostic.parser.trailingContent",{value:this.tokens[this.pos].value}));return e}peek(){return this.tokens[this.pos]}next(){const e=this.tokens[this.pos++];if(!e)throw new Error(Se("diagnostic.expressionUnexpectedEnd"));return e}eatPunc(e){const r=this.peek();return r&&r.type==="punc"&&r.value===e?(this.pos++,!0):!1}expectPunc(e){if(!this.eatPunc(e)){const r=this.peek()?.position??0;throw new Error(Se("diagnostic.parser.expected",{pos:r,value:e}))}}parseTernary(){const e=this.parseLogicalOr();if(this.eatPunc("?")){const r=this.parseTernary();this.expectPunc(":");const a=this.parseTernary();return{type:"ternary",cond:e,consequent:r,alternate:a}}return e}parseLogicalOr(){let e=this.parseLogicalAnd();for(;this.eatPunc("||");){const r=this.parseLogicalAnd();e={type:"binary",op:"||",left:e,right:r}}return e}parseLogicalAnd(){let e=this.parseEquality();for(;this.eatPunc("&&");){const r=this.parseEquality();e={type:"binary",op:"&&",left:e,right:r}}return e}parseEquality(){let e=this.parseRelational();for(;;){const r=this.peek();if(r?.type==="punc"&&["==","!=","===","!=="].includes(r.value)){this.pos++;const a=this.parseRelational();e={type:"binary",op:r.value,left:e,right:a}}else return e}}parseRelational(){let e=this.parseAdditive();for(;;){const r=this.peek();if(r?.type==="punc"&&["<",">","<=",">="].includes(r.value)){this.pos++;const a=this.parseAdditive();e={type:"binary",op:r.value,left:e,right:a}}else return e}}parseAdditive(){let e=this.parseMultiplicative();for(;;){const r=this.peek();if(r?.type==="punc"&&(r.value==="+"||r.value==="-")){this.pos++;const a=this.parseMultiplicative();e={type:"binary",op:r.value,left:e,right:a}}else return e}}parseMultiplicative(){let e=this.parseUnary();for(;;){const r=this.peek();if(r?.type==="punc"&&["*","/","%"].includes(r.value)){this.pos++;const a=this.parseUnary();e={type:"binary",op:r.value,left:e,right:a}}else return e}}parseUnary(){const e=this.peek();if(e?.type==="punc"&&["!","-","+"].includes(e.value)){this.pos++;const r=this.parseUnary();return{type:"unary",op:e.value,arg:r,prefix:!0}}return this.parsePostfix()}parsePostfix(){let e=this.parsePrimary();for(;;)if(this.eatPunc(".")){const r=this.next();if(r.type!=="ident")throw new Error(Se("diagnostic.parser.memberName",{pos:r.position}));e={type:"member",object:e,property:r.value,computed:!1}}else if(this.eatPunc("[")){const r=this.parseTernary();this.expectPunc("]"),r.type==="str"?e={type:"member",object:e,property:r.value,computed:!1}:e={type:"member",object:e,property:r.name??String(r.value),computed:!0}}else if(this.peek()?.type==="punc"&&this.peek()?.value==="("&&(e.type==="ident"||e.type==="member")){this.pos++;const r=this.parseArgs();e={type:"call",callee:e,args:r}}else return e}parseArgs(){const e=[];if(this.eatPunc(")"))return e;for(;;){if(e.push(this.parseTernary()),this.eatPunc(")"))return e;this.expectPunc(",")}}parsePrimary(){const e=this.next();if(e.type==="num"){const r=Number(e.value);if(isNaN(r))throw new Error(Se("diagnostic.parser.invalidNumber",{value:e.value}));return{type:"num",value:r}}if(e.type==="str")return{type:"str",value:e.value};if(e.type==="bool")return{type:"bool",value:e.value==="true"};if(e.type==="ident")return{type:"ident",name:e.value};if(e.value==="("){const r=this.parseTernary();return this.expectPunc(")"),r}if(e.value==="["){const r=[];if(!this.eatPunc("]"))for(;r.push(this.parseTernary()),!this.eatPunc("]");)this.expectPunc(",");return{type:"array",elements:r}}if(e.value==="{"){const r=[];if(!this.eatPunc("}"))for(;;){const a=this.next();if(a.type!=="ident"&&a.type!=="str")throw new Error(Se("diagnostic.parser.objectKey",{pos:a.position}));if(this.expectPunc(":"),r.push({key:a.value,value:this.parseTernary()}),this.eatPunc("}"))break;this.expectPunc(",")}return{type:"object",properties:r}}throw new Error(Se("diagnostic.parser.unexpectedToken",{pos:e.position,value:e.value}))}}const Tg=20,C2=8;function Pt(t,e=0){if(typeof t=="number")return Number.isFinite(t)?t:e;if(typeof t=="string"){const r=t.trim();if(r==="")return e;const a=Number(r);return Number.isFinite(a)?a:e}return t==null?e:typeof t=="boolean"?t?1:0:e}function D2(t){if(typeof t=="number")return Number.isFinite(t);if(typeof t=="string"){const e=t.trim();return e!==""&&Number.isFinite(Number(e))}return!1}function An(t){return!Number.isFinite(t)||Number.isInteger(t)||Math.abs(t)>=1e15?t:Number(t.toPrecision(12))}function Ln(t){if(!Number.isFinite(t)||Number.isInteger(t))return 0;const e=String(t);if(e.includes("e")||e.includes("E"))return 0;const r=e.indexOf(".");return r===-1?0:e.length-r-1}function Bp(t,e){if(!Number.isFinite(t))return 0;const r=Math.min(Math.max(e,0),12);if(r===0)return Math.round(t);const a=10**r,n=t*a;return!Number.isFinite(n)||Math.abs(n)>=1e15?An(t):Math.round(n)/a}function Np(t,e){const r=Pt(t),a=Pt(e),n=r+a;return Bp(n,Math.max(Ln(r),Ln(a)))}function Fp(t,e){const r=Pt(t),a=Pt(e),n=r-a;return Bp(n,Math.max(Ln(r),Ln(a)))}function Cg(t,e){const r=Pt(t),a=Pt(e),n=r*a;return Bp(n,Ln(r)+Ln(a))}function Dg(t,e){const r=Pt(t),a=Pt(e);return a===0?0:An(r/a)}function A2(t,e){const r=Pt(t),a=Pt(e);return a===0?0:An(r%a)}function L2(t){if(t==null)return 2;const e=Math.trunc(Pt(t,2));return Number.isFinite(e)?Math.min(Math.max(e,-Tg),Tg):2}function Ds(t,e,r){const a=Pt(t,0),n=L2(e);if(a===0)return 0;if(Math.abs(a)>=1e21)return An(a);const i=Math.max(n,0)+C2,o=a.toFixed(i);if(!/^-?\d+(\.\d+)?$/.test(o))return An(a);const s=o.startsWith("-"),l=o.replace("-","").replace(".","");let u=BigInt(l||"0");s&&(u=-u);const p=10n**BigInt(i-n),c=u<0n?-1n:1n,f=u<0n?-u:u;let h=f/p;const d=f%p,v=2n*d;r==="up"?d!==0n&&(h+=1n):r!=="down"&&v>=p&&(v>p||r==="half-up"||h%2n===1n)&&(h+=1n);const m=c*h;return An(n>=0?Number(m)/10**n:Number(m)*10**-n)}const zp={Math,Number,String,Boolean,parseInt,parseFloat,isNaN,true:!0,false:!1,null:null,undefined:void 0},M2=new Set(["constructor","__proto__","prototype","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__"]),E2=new Set(["Number","String","Boolean","parseInt","parseFloat","isNaN"]);function ot(t,e,r={}){switch(t.type){case"num":return t.value;case"str":return t.value;case"bool":return t.value;case"ident":return I2(t.name,e);case"binary":return O2(t,e,r);case"unary":return R2(t,e,r);case"ternary":return ot(t.cond,e,r)?ot(t.consequent,e,r):ot(t.alternate,e,r);case"member":return F2(t,e,r);case"call":return z2(t,e,r);case"array":return t.elements.map(a=>ot(a,e,r));case"object":return Object.fromEntries(t.properties.map(a=>[a.key,ot(a.value,e,r)]))}}function I2(t,e,r){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];if(Object.prototype.hasOwnProperty.call(zp,t))return zp[t];throw new Error(Se("diagnostic.evaluator.undefinedIdentifier",{name:t}))}function O2(t,e,r){const a=ot(t.left,e,r),n=ot(t.right,e,r);switch(t.op){case"+":return N2(a,n)?Np(a,n):B2(a,n);case"-":return Fp(a,n);case"*":return Cg(a,n);case"/":return Dg(a,n);case"%":return A2(a,n);case"<":return a<n;case">":return a>n;case"<=":return a<=n;case">=":return a>=n;case"==":return a==n;case"!=":return a!=n;case"===":return a===n;case"!==":return a!==n;case"&&":return a&&n;case"||":return a||n;default:throw new Error(Se("diagnostic.evaluator.unknownOperator",{op:t.op}))}}function R2(t,e,r){const a=ot(t.arg,e,r);switch(t.op){case"-":return Fp(0,a);case"+":return Pt(a);case"!":return!a;default:throw new Error(Se("diagnostic.evaluator.unknownUnaryOperator",{op:t.op}))}}function B2(t,e){return`${t==null?"":String(t)}${e==null?"":String(e)}`}function N2(t,e){const r=Ag(t),a=Ag(e);return r==="other"||a==="other"?!1:r==="num"||a==="num"}function Ag(t){return t==null||t===""?"neutral":D2(t)?"num":"other"}function F2(t,e,r){const a=ot(t.object,e,r);if(a==null)throw new Error(Se("diagnostic.evaluator.nullProperty"));if(M2.has(t.property))throw new Error(Se("diagnostic.evaluator.forbiddenProperty",{property:t.property}));return a[t.property]}function z2(t,e,r){if(t.callee.type==="ident"&&E2.has(t.callee.name)){const n=zp[t.callee.name],i=t.args.map(o=>ot(o,e,r));return n(...i)}if(t.callee.type==="member"&&t.callee.object.type==="ident"&&t.callee.object.name==="Math"){const n=Math[t.callee.property];if(typeof n!="function")throw new Error(Se("diagnostic.evaluator.mathNotMethod",{name:t.callee.property}));const i=t.args.map(o=>ot(o,e,r));return n(...i)}let a;if(t.callee.type==="ident")a=t.callee.name;else if(t.callee.type==="member")throw new Error(Se("diagnostic.evaluator.noMethodCall"));if(a&&r[a]){const n=t.args.map(i=>ot(i,e,r));return r[a](...n)}throw a&&Object.prototype.hasOwnProperty.call(e,a)?new Error(Se("diagnostic.evaluator.notFunction",{name:a})):new Error(Se("diagnostic.evaluator.forbiddenCall",{name:a??"表达式"}))}function H2(t){const e=[];let r=0;const a=t.length;for(;r<a;){if(t[r]==="{"){let i=1,o=r+1;for(;o<a&&i>0;)t[o]==="{"?i++:t[o]==="}"&&i--,o++;if(i!==0)throw new Error(Se("diagnostic.template.unclosedBrace",{pos:r}));const s=t.slice(r+1,o-1);if(s.trim()==="")throw new Error(Se("diagnostic.template.emptyExpression",{pos:r}));const l=Op(s),u=Rp(l);e.push({type:"expr",expression:u}),r=o;continue}let n=r;for(;n<a&&t[n]!=="{";)t[n]==="\\"&&n+1<a&&(t[n+1]==="{"||t[n+1]==="}")?n+=2:n++;e.push({type:"text",value:t.slice(r,n).replace(/\\([{}])/g,"$1")}),r=n}return{type:"template",parts:e}}function V2(t,e,r={}){let a="";for(const n of t.parts)if(n.type==="text")a+=n.value;else{const i=ot(n.expression,e,r);a+=String(i??"")}return a}function Lg(t,e={}){const r=H2(t);return a=>V2(r,a,e)}function Hp(t,e){if(t==null||e==null)return;if(typeof t=="object"&&e in t)return t[e];const r=e.split(".");let a=t;for(const n of r){if(a==null)return;a=a[n]}return a}function Mg(t){const e=Number(t);if(isNaN(e))return String(t);const r=e<0?"-":"",a=Math.abs(e),[n,i]=a.toFixed(2).split("."),o=n.replace(/\B(?=(\d{3})+(?!\d))/g,",");return`${r}${o}.${i}`}function Eg(t,e){let r;if(t instanceof Date)r=t;else if(typeof t=="number")r=new Date(t);else if(typeof t=="string")r=new Date(t);else return String(t);if(isNaN(r.getTime()))return String(t);const a=n=>String(n).padStart(2,"0");return e.replace("YYYY",String(r.getFullYear())).replace("MM",a(r.getMonth()+1)).replace("DD",a(r.getDate())).replace("HH",a(r.getHours())).replace("mm",a(r.getMinutes())).replace("ss",a(r.getSeconds()))}const Vp=["零","壹","贰","叁","肆","伍","陆","柒","捌","玖"],U2=["","拾","佰","仟"],G2=["","万","亿","万亿","亿亿"];function W2(t){let e="",r=!1;for(let a=3;a>=0;a--){const n=Math.floor(t/10**a)%10;if(n===0){e&&(r=!0);continue}r&&(e+="零",r=!1),e+=Vp[n]+U2[a]}return e}function Ig(t){const e=Number(t);if(isNaN(e))return String(t);if(e===0)return"零元整";const r=e<0?"负":"",[a,n]=Math.abs(e).toFixed(2).split("."),i=Math.ceil(a.length/4);let o="",s=!1;for(let p=i-1;p>=0;p--){const c=a.length-p*4,f=parseInt(a.slice(Math.max(0,c-4),c),10);if(f===0){o&&(s=!0);continue}o&&(s||f<1e3)&&(o+="零"),s=!1,o+=W2(f)+(G2[p]??"")}o=`${o||"零"}元`;const l=parseInt(n[0],10),u=parseInt(n[1],10);return l===0&&u===0?o+="整":(l===0?o+="零":o+=Vp[l]+"角",u>0&&(o+=Vp[u]+"分")),r+o}function Og(t,e,r){return t?e:r}function Rg(t,e){return t.reduce((r,a)=>r+(Number(Hp(a,e))||0),0)}function $2(t,e){return t.length===0?0:Rg(t,e)/t.length}function Y2(t,e){return t.length}function K2(t,e){return t.length===0?0:Math.min(...t.map(r=>Number(Hp(r,e))||0))}function X2(t,e){return t.length===0?0:Math.max(...t.map(r=>Number(Hp(r,e))||0))}function Bg(...t){return t.reduce((e,r)=>Np(e,r),0)}function Ng(...t){return t.length===0?0:t.slice(1).reduce((e,r)=>Fp(e,r),Np(t[0],0))}function Fg(...t){return t.length===0?0:t.reduce((e,r)=>Cg(e,r),1)}function zg(t,e){return Dg(t,e)}function Hg(t,e){return Ds(t,e,"half-up")}function As(t,e){return Ds(t,e,"up")}function Ls(t,e){return Ds(t,e,"down")}function Vg(t,e){return Ds(t,e,"half-even")}class q2{constructor(){this.functions={}}registerFunction(e,r){this.functions[e]=r}evaluate(e,r){const a=Op(e),n=Rp(a);return ot(n,r,this.functions)}render(e,r){return Lg(e,this.functions)(r)}}const Ug=new q2,j2={MONEY:Mg,DATE:Eg,UPPER:Ig,IF:Og,CONCAT:(...t)=>t.filter(e=>e!=null).map(String).join(""),IFEMPTY:(t,e)=>t!=null&&t!==""?String(t):e,LEN:t=>String(t).length,ADD:Bg,SUB:Ng,MUL:Fg,DIV:zg,ROUND:Hg,ROUNDUP:As,CEIL:As,ROUNDDOWN:Ls,FLOOR:Ls,ROUNDBANK:Vg};for(const[t,e]of Object.entries(j2))Ug.registerFunction(t,e);function Z2(t,e,r){switch(t.toUpperCase()){case"SUM":return Rg(r,e);case"AVG":return $2(r,e);case"COUNT":return Y2(r);case"MIN":return K2(r,e);case"MAX":return X2(r,e);default:return 0}}function Q2(t,e,r){if(!t)return"";if(!t.includes("{"))return t;const a=Array.isArray(e.rows)?e.rows:[],n=t.replace(/\{([^}]+)\}/g,(i,o)=>{let s=o.trim();return s=s.replace(/\b(SUM|AVG|COUNT|MIN|MAX)\(([^)]+)\)/g,(l,u,p)=>{const c=p.trim().replace(/^['"]|['"]$/g,"");return String(Z2(u,c,a))}),`{${s}}`});try{return Ug.render(n,e)}catch{return r??t}}class J2{constructor(e){this.functions={},e?.functions&&(this.functions={...e.functions})}registerFunction(e,r){this.functions[e]=r}evaluate(e,r){const a=Op(e),n=Rp(a);return ot(n,r,this.functions)}render(e,r){return Lg(e,this.functions)(r)}}const eT=new J2,tT={MONEY:Mg,CONCAT:(...t)=>t.filter(e=>e!=null).join(""),IF:Og,FORMAT:t=>typeof t!="number"?String(t):u2(t,i2(),{minimumFractionDigits:2,maximumFractionDigits:2}),SUBSTR:(t,e,r)=>String(t).slice(e,r?e+r:void 0),LEN:t=>String(t).length,ADD:Bg,SUB:Ng,MUL:Fg,DIV:zg,ROUND:Hg,ROUNDUP:As,CEIL:As,ROUNDDOWN:Ls,FLOOR:Ls,ROUNDBANK:Vg,NOW:()=>new Date().toISOString().split("T")[0],IFEMPTY:(t,e)=>t!=null&&t!==""?String(t):e,PAD:(t,e,r)=>String(t).padStart(e,r),REPLACE:(t,e,r)=>String(t).replace(new RegExp(e,"g"),r),JSON:t=>JSON.stringify(t,null,2),DATE:Eg,UPPER:Ig};for(const[t,e]of Object.entries(tT))eT.registerFunction(t,e);Object.fromEntries(Object.entries(Ip).filter(([,t])=>t.bindings!==void 0).map(([t,e])=>[t,[...e.bindings??[]]]));const vr=["left","top","width","height","chartOption"],Ms=["dataSource","categoryField","valueFields","seriesField"],gr=["title","legend","palette"],Es=[{type:"barChart",label:"柱状图",labelKey:"echarts.series.typeNames.bar",icon:"ChartColumn",seriesType:"bar",orientation:"vertical",fields:[...Ms,...gr,"stack","label"],requiredOptionKeys:vr,defaultWidth:100,defaultHeight:60,notes:"柱状图:类目 + 多个数值字段,每字段一个 series;series[].data 写 $data 占位;固定高,禁止 autoHeight",notesKey:"echarts.notes.bar"},{type:"barHChart",label:"条形图",labelKey:"echarts.series.typeNames.barH",icon:"ChartBar",seriesType:"bar",orientation:"horizontal",fields:[...Ms,...gr,"stack","label"],requiredOptionKeys:vr,defaultWidth:100,defaultHeight:60,notes:"横向条形图:xAxis 为数值、yAxis 为类目;类目写 yAxis.data 的 $data 占位",notesKey:"echarts.notes.barH"},{type:"lineChart",label:"折线图",labelKey:"echarts.series.typeNames.line",icon:"ChartLine",seriesType:"line",fields:[...Ms,...gr,"stack","label"],requiredOptionKeys:vr,defaultWidth:100,defaultHeight:60,notes:"折线图:类目 + 多个数值字段;不写 areaStyle",notesKey:"echarts.notes.line"},{type:"areaChart",label:"面积图",labelKey:"echarts.series.typeNames.area",icon:"ChartArea",seriesType:"line",fields:[...Ms,...gr,"stack","label"],requiredOptionKeys:vr,defaultWidth:100,defaultHeight:60,notes:"面积图:折线 + series[].areaStyle;其余同折线图",notesKey:"echarts.notes.area"},{type:"pieChart",label:"饼图",labelKey:"echarts.series.typeNames.pie",icon:"ChartPie",seriesType:"pie",fields:["dataSource","categoryField","valueFields",...gr,"label"],requiredOptionKeys:vr,defaultWidth:60,defaultHeight:60,notes:"饼图:类目 + 首个数值字段生成 { name, value };只需一个数值字段",notesKey:"echarts.notes.pie"},{type:"doughnutChart",label:"环形图",labelKey:"echarts.series.typeNames.doughnut",icon:"Donut",seriesType:"pie",fields:["dataSource","categoryField","valueFields",...gr,"innerRadius","label"],requiredOptionKeys:vr,defaultWidth:60,defaultHeight:60,notes:"环形图:饼图 + radius:[内径,外径];内径由面板配置",notesKey:"echarts.notes.doughnut"},{type:"scatterChart",label:"散点图",labelKey:"echarts.series.typeNames.scatter",icon:"ChartScatter",seriesType:"scatter",fields:["dataSource","categoryField","valueFields",...gr,"bubble","label"],requiredOptionKeys:vr,defaultWidth:80,defaultHeight:60,notes:"散点图:类目字段作 x、首个数值字段作 y;chartBubble 开启时用第二个数值字段作点大小",notesKey:"echarts.notes.scatter"},{type:"radarChart",label:"雷达图",labelKey:"echarts.series.typeNames.radar",icon:"Radar",seriesType:"radar",fields:["dataSource","categoryField","valueFields",...gr,"radius","label"],requiredOptionKeys:vr,defaultWidth:70,defaultHeight:60,notes:"雷达图:每个数值字段是一个维度(radar.indicator),每行数据是一个系列(类目字段作系列名);半径由面板写 radar.radius(%,默认 75)",notesKey:"echarts.notes.radar"},{type:"funnelChart",label:"漏斗图",labelKey:"echarts.series.typeNames.funnel",icon:"Funnel",seriesType:"funnel",fields:["dataSource","categoryField","valueFields",...gr,"padding","label"],requiredOptionKeys:vr,defaultWidth:60,defaultHeight:60,notes:"漏斗图:类目 + 首个数值字段,按数值降序;四边内边距由面板写 series.left/right/top/bottom(%,右侧需留外置标签空间)",notesKey:"echarts.notes.funnel"},{type:"gaugeChart",label:"仪表盘",labelKey:"echarts.series.typeNames.gauge",icon:"Gauge",seriesType:"gauge",fields:["dataSource","valueFields",...gr,"gaugeRange","label"],requiredOptionKeys:vr,defaultWidth:60,defaultHeight:60,notes:"仪表盘:取首行数据的首个数值字段作指针值;min/max 由面板写入 series[0].min/max",notesKey:"echarts.notes.gauge"}],Gg=Es.map(t=>t.type);function Je(t){return Es.find(e=>e.type===t)}function Wg(t){return Je(t)?.fields??[]}function rT(t){const e=typeof t=="number"?t:Number(t);return Number.isFinite(e)?e:0}function Up(t,e,r=!1){if(typeof t=="string")return t.startsWith("$data")||r?t:t.includes("{")?Q2(t,e):t;if(Array.isArray(t))return t.map(a=>Up(a,e,r));if(t&&typeof t=="object"){const a={};for(const[n,i]of Object.entries(t)){const o=r||n==="label"||n==="detail";a[n]=Up(i,e,o)}return a}return t}function Mn(t){return Array.isArray(t.data)&&t.data.includes("$data")}function aT(t,e){const r=t.dataSource;if(typeof r=="string"&&Array.isArray(e[r]))return e[r];for(const a of Object.values(e))if(Array.isArray(a))return a;return[]}function $g(t){return typeof t=="string"&&t.length>0?t:void 0}function nT(t){return Array.isArray(t)?t.filter(e=>typeof e=="string"&&e.length>0):[]}function Hi(t){return Array.isArray(t.series)?t.series:[]}function mr(t,e){return e?rT(t[e]):0}function Yg(t,e){for(const r of["xAxis","yAxis"]){const a=t[r],n=Array.isArray(a)?a:a?[a]:[];for(const i of n)i&&typeof i=="object"&&Array.isArray(i.data)&&i.data.includes("$data")&&(i.data=[...e])}}function iT(t,e,r,a,n){const i=Hi(t);if(!i.some(Mn))return;const o=e.map((u,p)=>r?u[r]:p+1),s=u=>a[Math.min(u,a.length-1)];if(n){const u=i[0],p=new Map;for(const f of e){const h=String(f[n]??""),d=p.get(h)??new Map,v=String(f[r??""]);d.set(v,(d.get(v)??0)+mr(f,s(0))),p.set(h,d)}const c=[...new Set(o)];t.series=[...p.entries()].map(([f,h])=>({...u,name:f,data:c.map(d=>h.get(String(d))??null)})),Yg(t,c);return}const l=i[i.length-1];for(;i.length<a.length;)i.push({...l,data:["$data"]});t.series=i.map((u,p)=>Mn(u)?{...u,data:e.map(c=>mr(c,s(p)))}:u),Yg(t,o)}function Kg(t,e,r,a,n){const i=Hi(t);if(!i.some(Mn))return;const o=e.map(s=>({name:r?String(s[r]??""):"",value:mr(s,a)}));n&&o.sort((s,l)=>l.value-s.value),t.series=i.map(s=>({...s,data:o}))}function oT(t,e,r,a,n){const i=Hi(t);if(!i.some(Mn))return;const o=a[0],s=n?a[1]:void 0,l=s?e.map(f=>mr(f,s)):[],u=l.length>0?Math.min(...l):0,p=l.length>0?Math.max(...l):0,c=f=>p===u?12:Math.round(6+(f-u)/(p-u)*18);t.series=i.map(f=>({...f,data:e.map(h=>{const d=[mr(h,r),mr(h,o)];return s?{value:d,symbolSize:c(mr(h,s))}:d})}))}function sT(t){if(t<=0)return 10;const e=10**Math.floor(Math.log10(t)),r=e>=10?e:10;return Math.ceil(t/r)*r}function lT(t,e,r,a){const n=Hi(t);if(!n.some(Mn))return;const i=a.map(o=>Math.max(0,...e.map(s=>mr(s,o))));t.radar={...t.radar??{},indicator:a.map((o,s)=>({name:o,max:sT(i[s])}))},t.series=n.map(o=>({...o,data:e.map(s=>({name:r?String(s[r]??""):"",value:a.map(l=>mr(s,l))}))}))}function uT(t,e,r){const a=Hi(t);if(!a.some(Mn))return;const n=e[0]??{};t.series=a.map(i=>({...i,data:[{value:mr(n,r),name:r}]}))}function Xg(t,e,r){const a=e.chartOption;if(!a||typeof a!="object"||Array.isArray(a))return{};const n=Up(a,r),i=nT(e.chartValueFields);if(i.length===0)return{_chartOption:n};const o=aT({...e,dataSource:e.chartDataSource??e.dataSource},r);if(o.length===0)return{_chartOption:n};const s=$g(e.chartCategoryField);switch(Je(t)?.seriesType){case"radar":lT(n,o,s,i);break;case"gauge":uT(n,o,i[0]);break;case"funnel":Kg(n,o,s,i[0],!0);break;case"pie":Kg(n,o,s,i[0],!1);break;case"scatter":oT(n,o,s,i,e.chartBubble===!0);break;default:iT(n,o,s,i,$g(e.chartSeriesField));break}return{_chartOption:n}}const Vi="@worm-print-platform/echarts",Gp=[{key:"default",label:"默认蓝",labelKey:"echarts.palette.default",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de"]},{key:"fresh",label:"清新绿",labelKey:"echarts.palette.fresh",colors:["#2f9e6e","#5cc9a7","#9ad6c1","#f2c94c","#4a90e2"]},{key:"warm",label:"暖橙红",labelKey:"echarts.palette.warm",colors:["#f2704e","#f7a35c","#f7d56d","#c54e3f","#8f5a4a"]},{key:"purple",label:"紫灰",labelKey:"echarts.palette.purple",colors:["#7b61ff","#9b8cff","#c3baff","#596275","#8d99ae"]}],pT=["示例一","示例二","示例三"],qg={top:6,right:25,bottom:6,left:5},jg=75,cT=50,Is={top:60,right:80,bottom:65,left:80},Zg={left:"8%",right:"8%",bottom:"12%",top:"18%",containLabel:!0};function fT(t){return{top:`${t.top}%`,right:`${t.right}%`,bottom:`${t.bottom}%`,left:`${t.left}%`}}function Os(t){const e=Je(t),r={text:""};switch(e?.seriesType){case"pie":return{title:r,tooltip:{trigger:"item"},series:[{type:"pie",name:"数量",data:["$data"],radius:t==="doughnutChart"?["40%","70%"]:"62%"}]};case"scatter":return{title:r,grid:Zg,tooltip:{trigger:"axis"},xAxis:{type:"value"},yAxis:{type:"value"},series:[{type:"scatter",name:"数量",data:["$data"],symbolSize:8}]};case"radar":return{title:r,tooltip:{trigger:"item"},radar:{indicator:[],radius:`${jg}%`},series:[{type:"radar",name:"数量",data:["$data"]}]};case"funnel":return{title:r,tooltip:{trigger:"item"},legend:{show:!1},series:[{type:"funnel",name:"数量",data:["$data"],sort:"descending",...fT(qg)}]};case"gauge":return{title:r,tooltip:{trigger:"item"},series:[{type:"gauge",name:"数量",min:0,max:100,data:[{value:0,name:"数量"}]}]};default:{const a=e?.orientation==="horizontal",n=e?.seriesType==="line"&&t==="areaChart",i=e?.seriesType==="line"?"line":"bar";return{title:r,grid:Zg,tooltip:{trigger:"axis"},xAxis:a?{type:"value"}:{type:"category",data:["$data"]},yAxis:a?{type:"category",data:["$data"]}:{type:"value"},series:[{type:i,name:"数量",data:["$data"],...n?{areaStyle:{}}:{}}]}}}}function hT(t){k2(Vi,t)}function Ui(){return w2(Vi)}function Qg(){const t=Ui().palettes??{},e=Gp.map(a=>{const n=t[a.key];return n?{key:a.key,label:n.label??a.label,labelKey:n.label?void 0:a.labelKey,colors:n.colors}:{key:a.key,label:a.label,labelKey:a.labelKey,colors:a.colors}}),r=Object.entries(t).filter(([a])=>!Gp.some(n=>n.key===a)).map(([a,n])=>({key:a,label:n.label??a,colors:n.colors}));return[...e,...r]}function Jg(){const t=Ui().sampleCategories;return Array.isArray(t)&&t.length>0?t:pT}function em(t,e){const r=Ui(),a=Je(t);return{width:typeof r.defaultWidth=="number"?r.defaultWidth:a?.defaultWidth??100,height:typeof r.defaultHeight=="number"?r.defaultHeight:a?.defaultHeight??60,title:a?.label??"图表",chartOption:Os(t),chartDataSource:"",chartCategoryField:"name",chartValueFields:["value"],chartSeriesField:"",...e}}var Wp=function(t,e){return Wp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(r[n]=a[n])},Wp(t,e)};function V(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Wp(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var $p=12,tm="sans-serif",Nr=$p+"px "+tm,dT=20,vT=100,gT="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function mT(t){var e={};if(typeof JSON>"u")return e;for(var r=0;r<t.length;r++){var a=String.fromCharCode(r+32),n=(t.charCodeAt(r)-dT)/vT;e[a]=n}return e}var yT=mT(gT),yr={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var t,e;return function(r,a){if(!t){var n=yr.createCanvas();t=n&&n.getContext("2d")}if(t)return e!==a&&(e=t.font=a||Nr),t.measureText(r);r=r||"",a=a||Nr;var i=/((?:\d+)?\.?\d*)px/.exec(a),o=i&&+i[1]||$p,s=0;if(a.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=yT[r[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(t,e,r){var a=new Image;return a.onload=e,a.onerror=r,a.src=t,a},getTime:function(){return Date.now?Date.now():+new Date}},rm=ea(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),am=ea(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),Gi=Object.prototype.toString,Rs=Array.prototype,bT=Rs.forEach,kT=Rs.filter,Yp=Rs.slice,wT=Rs.map,nm=(function(){}).constructor,Bs=nm?nm.prototype:null,Kp="__proto__",Xp=2311,_T=Math.pow(2,53)-1;function im(){return Xp>=_T&&(Xp=0),Xp++}function om(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function le(t){if(t==null||typeof t!="object")return t;var e=t,r=Gi.call(t);if(r==="[object Array]"){if(!Yi(t)){e=[];for(var a=0,n=t.length;a<n;a++)e[a]=le(t[a])}}else if(am[r]){if(!Yi(t)){var i=t.constructor;if(i.from)e=i.from(t);else{e=new i(t.length);for(var a=0,n=t.length;a<n;a++)e[a]=t[a]}}}else if(!rm[r]&&!Yi(t)&&!Wi(t)){e={};for(var o in t)t.hasOwnProperty(o)&&o!==Kp&&(e[o]=le(t[o]))}return e}function Pe(t,e,r){if(!J(e)||!J(t))return r?le(e):t;for(var a in e)if(e.hasOwnProperty(a)&&a!==Kp){var n=t[a],i=e[a];J(i)&&J(n)&&!W(i)&&!W(n)&&!Wi(i)&&!Wi(n)&&!lm(i)&&!lm(n)&&!Yi(i)&&!Yi(n)?Pe(n,i,r):(r||!(a in t))&&(t[a]=le(e[a]))}return t}function H(t,e){if(Object.assign)Object.assign(t,e);else for(var r in e)e.hasOwnProperty(r)&&r!==Kp&&(t[r]=e[r]);return t}function xT(t,e,r){t=t||{};for(var a=0;a<r.length;a++){var n=r[a];t[n]=e[n]}return t}function pe(t,e,r){for(var a=he(e),n=0,i=a.length;n<i;n++){var o=a[n];t[o]==null&&(t[o]=e[o])}return t}function fe(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var r=0,a=t.length;r<a;r++)if(t[r]===e)return r}return-1}function PT(t,e){var r=t.prototype;function a(){}a.prototype=e.prototype,t.prototype=new a;for(var n in r)r.hasOwnProperty(n)&&(t.prototype[n]=r[n]);t.prototype.constructor=t,t.superClass=e}function Qt(t,e,r){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var a=Object.getOwnPropertyNames(e),n=0;n<a.length;n++){var i=a[n];i!=="constructor"&&t[i]==null&&(t[i]=e[i])}else pe(t,e)}function mt(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function A(t,e,r){if(t&&e)if(t.forEach&&t.forEach===bT)t.forEach(e,r);else if(t.length===+t.length)for(var a=0,n=t.length;a<n;a++)e.call(r,t[a],a,t);else for(var i in t)t.hasOwnProperty(i)&&e.call(r,t[i],i,t)}function K(t,e,r){if(!t)return[];if(!e)return Zp(t);if(t.map&&t.map===wT)return t.map(e,r);for(var a=[],n=0,i=t.length;n<i;n++)a.push(e.call(r,t[n],n,t));return a}function ea(t,e,r,a){if(t&&e){for(var n=0,i=t.length;n<i;n++)r=e.call(a,r,t[n],n,t);return r}}function Xe(t,e,r){if(!t)return[];if(!e)return Zp(t);if(t.filter&&t.filter===kT)return t.filter(e,r);for(var a=[],n=0,i=t.length;n<i;n++)e.call(r,t[n],n,t)&&a.push(t[n]);return a}function sm(t,e,r){if(t&&e){for(var a=0,n=t.length;a<n;a++)if(e.call(r,t[a],a,t))return t[a]}}function he(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r);return e}function ST(t,e){for(var r=[],a=2;a<arguments.length;a++)r[a-2]=arguments[a];return function(){return t.apply(e,r.concat(Yp.call(arguments)))}}var ge=Bs&&re(Bs.bind)?Bs.call.bind(Bs.bind):ST;function ze(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return function(){return t.apply(this,e.concat(Yp.call(arguments)))}}function W(t){return Array.isArray?Array.isArray(t):Gi.call(t)==="[object Array]"}function re(t){return typeof t=="function"}function q(t){return typeof t=="string"}function qp(t){return Gi.call(t)==="[object String]"}function be(t){return typeof t=="number"}function J(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function lm(t){return!!rm[Gi.call(t)]}function yt(t){return!!am[Gi.call(t)]}function Wi(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function jp(t){return t.colorStops!=null}function $i(t){return t!==t}function Ns(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0,a=t.length;r<a;r++)if(t[r]!=null)return t[r]}function Z(t,e){return t??e}function Da(t,e,r){return t??e??r}function Zp(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return Yp.apply(t,e)}function Qp(t){if(typeof t=="number")return[t,t,t,t];var e=t.length;return e===2?[t[0],t[1],t[0],t[1]]:e===3?[t[0],t[1],t[2],t[1]]:t}function Jt(t,e){if(!t)throw new Error(e)}function br(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var um="__ec_primitive__";function Fs(t){t[um]=!0}function Yi(t){return t[um]}var TT=(function(){function t(){this.data={}}return t.prototype.delete=function(e){var r=this.has(e);return r&&delete this.data[e],r},t.prototype.has=function(e){return this.data.hasOwnProperty(e)},t.prototype.get=function(e){return this.data[e]},t.prototype.set=function(e,r){return this.data[e]=r,this},t.prototype.keys=function(){return he(this.data)},t.prototype.forEach=function(e){var r=this.data;for(var a in r)r.hasOwnProperty(a)&&e(r[a],a)},t})(),pm=typeof Map=="function";function CT(){return pm?new Map:new TT}var DT=(function(){function t(e){var r=W(e);this.data=CT();var a=this;e instanceof t?e.each(n):e&&A(e,n);function n(i,o){r?a.set(i,o):a.set(o,i)}}return t.prototype.hasKey=function(e){return this.data.has(e)},t.prototype.get=function(e){return this.data.get(e)},t.prototype.set=function(e,r){return this.data.set(e,r),r},t.prototype.each=function(e,r){this.data.forEach(function(a,n){e.call(r,a,n)})},t.prototype.keys=function(){var e=this.data.keys();return pm?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t})();function ae(t){return new DT(t)}function AT(t,e){for(var r=new t.constructor(t.length+e.length),a=0;a<t.length;a++)r[a]=t[a];for(var n=t.length,a=0;a<e.length;a++)r[a+n]=e[a];return r}function zs(t,e){var r;if(Object.create)r=Object.create(t);else{var a=function(){};a.prototype=t,r=new a}return e&&H(r,e),r}function st(t,e){return t.hasOwnProperty(e)}function qe(){}var Hs=180/Math.PI,LT=(function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t})(),MT=(function(){function t(){this.browser=new LT,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 t})(),se=new MT;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(se.wxa=!0,se.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?se.worker=!0:!se.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(se.node=!0,se.svgSupported=!0):ET(navigator.userAgent,se);function ET(t,e){var r=e.browser,a=t.match(/Firefox\/([\d.]+)/),n=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),i=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);a&&(r.firefox=!0,r.version=a[1]),n&&(r.ie=!0,r.version=n[1]),i&&(r.edge=!0,r.version=i[1],r.newEdge=+i[1].split(".")[0]>18),o&&(r.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,e.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11);var s=e.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;e.transform3dSupported=(r.ie&&"transition"in l||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}}var IT=".",Aa="___EC__COMPONENT__CONTAINER___",cm="___EC__EXTENDED_CLASS___";function kr(t){var e={main:"",sub:""};if(t){var r=t.split(IT);e.main=r[0]||"",e.sub=r[1]||""}return e}function OT(t){Jt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function RT(t){return!!(t&&t[cm])}function Jp(t,e){t.$constructor=t,t.extend=function(r){var a=this,n;return BT(a)?n=(function(i){V(o,i);function o(){return i.apply(this,arguments)||this}return o})(a):(n=function(){(r.$constructor||a).apply(this,arguments)},PT(n,this)),H(n.prototype,r),n[cm]=!0,n.extend=this.extend,n.superCall=zT,n.superApply=HT,n.superClass=a,n}}function BT(t){return re(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function fm(t,e){t.extend=e.extend}var NT=Math.round(Math.random()*10);function FT(t){var e=["__\0is_clz",NT++].join("_");t.prototype[e]=!0,t.isInstance=function(r){return!!(r&&r[e])}}function zT(t,e){for(var r=[],a=2;a<arguments.length;a++)r[a-2]=arguments[a];return this.superClass.prototype[e].apply(t,r)}function HT(t,e,r){return this.superClass.prototype[e].apply(t,r)}function Vs(t){var e={};t.registerClass=function(a){var n=a.type||a.prototype.type;if(n){OT(n),a.prototype.type=n;var i=kr(n);if(!i.sub)e[i.main]=a;else if(i.sub!==Aa){var o=r(i);o[i.sub]=a}}return a},t.getClass=function(a,n,i){var o=e[a];if(o&&o[Aa]&&(o=n?o[n]:null),i&&!o)throw new Error(n?"Component "+a+"."+(n||"")+" is used but not imported.":a+".type should be specified.");return o},t.getClassesByMainType=function(a){var n=kr(a),i=[],o=e[n.main];return o&&o[Aa]?A(o,function(s,l){l!==Aa&&i.push(s)}):i.push(o),i},t.hasClass=function(a){var n=kr(a);return!!e[n.main]},t.getAllClassMainTypes=function(){var a=[];return A(e,function(n,i){a.push(i)}),a},t.hasSubTypes=function(a){var n=kr(a),i=e[n.main];return i&&i[Aa]};function r(a){var n=e[a.main];return(!n||!n[Aa])&&(n=e[a.main]={},n[Aa]=!0),n}}function Ki(t,e){for(var r=0;r<t.length;r++)t[r][1]||(t[r][1]=t[r][0]);return e=e||!1,function(a,n,i){for(var o={},s=0;s<t.length;s++){var l=t[s][1];if(!(n&&fe(n,l)>=0||i&&fe(i,l)<0)){var u=a.getShallow(l,e);u!=null&&(o[t[s][0]]=u)}}return o}}var VT=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],UT=Ki(VT),GT=(function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return UT(this,e,r)},t})(),hm=(function(){function t(e){this.value=e}return t})(),WT=(function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new hm(e);return this.insertEntry(r),r},t.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},t.prototype.remove=function(e){var r=e.prev,a=e.next;r?r.next=a:this.head=a,a?a.prev=r:this.tail=r,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t})(),En=(function(){function t(e){this._list=new WT,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,r){var a=this._list,n=this._map,i=null;if(n[e]==null){var o=a.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=a.head;a.remove(l),delete n[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new hm(r),s.key=e,a.insertEntry(s),n[e]=s}return i},t.prototype.get=function(e){var r=this._map[e],a=this._list;if(r!=null)return r!==a.tail&&(a.remove(r),a.insertEntry(r)),r.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t})(),ec=new En(50);function $T(t){if(typeof t=="string"){var e=ec.get(t);return e&&e.image}else return t}function tc(t,e,r,a,n){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!r)return e;var i=ec.get(t),o={hostEl:r,cb:a,cbPayload:n};return i?(e=i.image,!Us(e)&&i.pending.push(o)):(e=yr.loadImage(t,dm,dm),e.__zrImageSrc=t,ec.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}else return t;else return e}function dm(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var r=t.pending[e],a=r.cb;a&&a(this,r.cbPayload),r.hostEl.dirty()}t.pending.length=0}function Us(t){return t&&t.width&&t.height}function wr(){return[1,0,0,1,0,0]}function Xi(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function rc(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function qi(t,e,r){var a=e[0]*r[0]+e[2]*r[1],n=e[1]*r[0]+e[3]*r[1],i=e[0]*r[2]+e[2]*r[3],o=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],l=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=a,t[1]=n,t[2]=i,t[3]=o,t[4]=s,t[5]=l,t}function ac(t,e,r){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+r[0],t[5]=e[5]+r[1],t}function nc(t,e,r,a){a===void 0&&(a=[0,0]);var n=e[0],i=e[2],o=e[4],s=e[1],l=e[3],u=e[5],p=Math.sin(r),c=Math.cos(r);return t[0]=n*c+s*p,t[1]=-n*p+s*c,t[2]=i*c+l*p,t[3]=-i*p+c*l,t[4]=c*(o-a[0])+p*(u-a[1])+a[0],t[5]=c*(u-a[1])-p*(o-a[0])+a[1],t}function YT(t,e,r){var a=r[0],n=r[1];return t[0]=e[0]*a,t[1]=e[1]*n,t[2]=e[2]*a,t[3]=e[3]*n,t[4]=e[4]*a,t[5]=e[5]*n,t}function ji(t,e){var r=e[0],a=e[2],n=e[4],i=e[1],o=e[3],s=e[5],l=r*o-i*a;return l?(l=1/l,t[0]=o*l,t[1]=-i*l,t[2]=-a*l,t[3]=r*l,t[4]=(a*s-o*n)*l,t[5]=(i*n-r*s)*l,t):null}function In(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function KT(t){return[t[0],t[1]]}function ic(t,e,r){return t[0]=e,t[1]=r,t}function vm(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function XT(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function qT(t){return Math.sqrt(jT(t))}function jT(t){return t[0]*t[0]+t[1]*t[1]}function oc(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function ZT(t,e){var r=qT(e);return r===0?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t}function sc(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var lc=sc;function QT(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var On=QT;function uc(t,e,r,a){return t[0]=e[0]+a*(r[0]-e[0]),t[1]=e[1]+a*(r[1]-e[1]),t}function Lt(t,e,r){var a=e[0],n=e[1];return t[0]=r[0]*a+r[2]*n+r[4],t[1]=r[1]*a+r[3]*n+r[5],t}function Rn(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function Bn(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}var ie=(function(){function t(e,r){this.x=e||0,this.y=r||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,r){return this.x=e,this.y=r,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,r){this.x+=e.x*r,this.y+=e.y*r},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var r=this.x-e.x,a=this.y-e.y;return Math.sqrt(r*r+a*a)},t.prototype.distanceSquare=function(e){var r=this.x-e.x,a=this.y-e.y;return r*r+a*a},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var r=this.x,a=this.y;return this.x=e[0]*r+e[2]*a+e[4],this.y=e[1]*r+e[3]*a+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,r,a){e.x=r,e.y=a},t.copy=function(e,r){e.x=r.x,e.y=r.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,r){return e.x*r.x+e.y*r.y},t.add=function(e,r,a){e.x=r.x+a.x,e.y=r.y+a.y},t.sub=function(e,r,a){e.x=r.x-a.x,e.y=r.y-a.y},t.scale=function(e,r,a){e.x=r.x*a,e.y=r.y*a},t.scaleAndAdd=function(e,r,a,n){e.x=r.x+a.x*n,e.y=r.y+a.y*n},t.lerp=function(e,r,a,n){var i=1-n;e.x=i*r.x+n*a.x,e.y=i*r.y+n*a.y},t})(),La=Math.min,Nn=Math.max,pc=Math.abs,gm=["x","y"],JT=["width","height"],Ma=new ie,Ea=new ie,Ia=new ie,Oa=new ie,St=bm(),Zi=St.minTv,cc=St.maxTv,Qi=[0,0],oe=(function(){function t(e,r,a,n){fc(this,e,r,a,n)}return t.set=function(e,r,a,n,i){return n<0&&(r=r+n,n=-n),i<0&&(a=a+i,i=-i),e.x=r,e.y=a,e.width=n,e.height=i,e},t.prototype.union=function(e){var r=La(e.x,this.x),a=La(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Nn(e.x+e.width,this.x+this.width)-r:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Nn(e.y+e.height,this.y+this.height)-a:this.height=e.height,this.x=r,this.y=a},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){return eC(wr(),this,e)},t.prototype.intersect=function(e,r,a){return t.intersect(this,e,r,a)},t.intersect=function(e,r,a,n){a&&ie.set(a,0,0);var i=n&&n.outIntersectRect||null,o=n&&n.clamp;if(i&&(i.x=i.y=i.width=i.height=NaN),!e||!r)return!1;e instanceof t||(e=fc(tC,e.x,e.y,e.width,e.height)),r instanceof t||(r=fc(rC,r.x,r.y,r.width,r.height));var s=!!a;St.reset(n,s);var l=St.touchThreshold,u=e.x+l,p=e.x+e.width-l,c=e.y+l,f=e.y+e.height-l,h=r.x+l,d=r.x+r.width-l,v=r.y+l,m=r.y+r.height-l;if(u>p||c>f||h>d||v>m)return!1;var g=!(p<h||d<u||f<v||m<c);return(s||i)&&(Qi[0]=1/0,Qi[1]=0,ym(u,p,h,d,0,s,i,o),ym(c,f,v,m,1,s,i,o),s&&ie.copy(a,g?St.useDir?St.dirMinTv:Zi:cc)),g},t.contain=function(e,r,a){return r>=e.x&&r<=e.x+e.width&&a>=e.y&&a<=e.y+e.height},t.prototype.contain=function(e,r){return t.contain(this,e,r)},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){mm(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return this.width===0||this.height===0},t.create=function(e){return new t(e?e.x:0,e?e.y:0,e?e.width:0,e?e.height:0)},t.copy=function(e,r){return e.x=r.x,e.y=r.y,e.width=r.width,e.height=r.height,e},t.applyTransform=function(e,r,a){if(!a){e!==r&&mm(e,r);return}if(a[1]<1e-5&&a[1]>-1e-5&&a[2]<1e-5&&a[2]>-1e-5){var n=a[0],i=a[3],o=a[4],s=a[5];e.x=r.x*n+o,e.y=r.y*i+s,e.width=r.width*n,e.height=r.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Ma.x=Ia.x=r.x,Ma.y=Oa.y=r.y,Ea.x=Oa.x=r.x+r.width,Ea.y=Ia.y=r.y+r.height,Ma.transform(a),Oa.transform(a),Ea.transform(a),Ia.transform(a),e.x=La(Ma.x,Ea.x,Ia.x,Oa.x),e.y=La(Ma.y,Ea.y,Ia.y,Oa.y);var l=Nn(Ma.x,Ea.x,Ia.x,Oa.x),u=Nn(Ma.y,Ea.y,Ia.y,Oa.y);e.width=l-e.x,e.height=u-e.y},t.calculateTransform=function(e,r,a){var n=a.width/r.width,i=a.height/r.height;return e=Xi(e||[]),ac(e,e,ic(hc,-r.x,-r.y)),YT(e,e,ic(hc,n,i)),ac(e,e,ic(hc,a.x,a.y)),e},t})();oe.create;var fc=oe.set,mm=oe.copy,eC=oe.calculateTransform;oe.applyTransform,oe.contain;var tC=new oe(0,0,0,0),rC=new oe(0,0,0,0),hc=[];function ym(t,e,r,a,n,i,o,s){var l=pc(e-r),u=pc(a-t),p=La(l,u),c=gm[n],f=gm[1-n],h=JT[n];e<r||a<t?l<u?(i&&(cc[c]=-l),s&&(o[c]=e,o[h]=0)):(i&&(cc[c]=u),s&&(o[c]=t,o[h]=0)):(o&&(o[c]=Nn(t,r),o[h]=La(e,a)-o[c]),i&&(p<Qi[0]||St.useDir)&&(Qi[0]=La(p,Qi[0]),(l<u||!St.bidirectional)&&(Zi[c]=l,Zi[f]=0,St.useDir&&St.calcDirMTV()),(l>=u||!St.bidirectional)&&(Zi[c]=-u,Zi[f]=0,St.useDir&&St.calcDirMTV())))}function bm(){var t=0,e=new ie,r=new ie,a={minTv:new ie,maxTv:new ie,useDir:!1,dirMinTv:new ie,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,o){a.touchThreshold=0,i&&i.touchThreshold!=null&&(a.touchThreshold=Nn(0,i.touchThreshold)),a.negativeSize=!1,o&&(a.minTv.set(1/0,1/0),a.maxTv.set(0,0),a.useDir=!1,i&&i.direction!=null&&(a.useDir=!0,a.dirMinTv.copy(a.minTv),r.copy(a.minTv),t=i.direction,a.bidirectional=i.bidirectional==null||!!i.bidirectional,a.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var i=a.minTv,o=a.dirMinTv,s=i.y*i.y+i.x*i.x,l=Math.sin(t),u=Math.cos(t),p=l*i.y+u*i.x;if(n(p)){n(i.x)&&n(i.y)&&o.set(0,0);return}if(r.x=s*u/p,r.y=s*l/p,n(r.x)&&n(r.y)){o.set(0,0);return}(a.bidirectional||e.dot(r)>0)&&r.len()<o.len()&&o.copy(r)}};function n(i){return pc(i)<1e-10}return a}function _r(t){Gs||(Gs=new En(100)),t=t||Nr;var e=Gs.get(t);return e||(e={font:t,strWidthCache:new En(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:yr.measureText("国",t).width,asciiCharWidth:yr.measureText("a",t).width},Gs.put(t,e)),e}var Gs;function aC(t){if(!(dc>=km)){t=t||Nr;for(var e=[],r=+new Date,a=0;a<=127;a++)e[a]=yr.measureText(String.fromCharCode(a),t).width;var n=+new Date-r;return n>16?dc=km:n>2&&dc++,e}}var dc=0,km=5;function wm(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=aC(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?t.asciiWidthMap!=null?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function xr(t,e){var r=t.strWidthCache,a=r.get(e);return a==null&&(a=yr.measureText(e,t.font).width,r.put(e,a)),a}function _m(t,e,r,a){var n=xr(_r(e),t),i=Ji(e),o=Fn(0,n,r),s=Ra(0,i,a),l=new oe(o,s,n,i);return l}function xm(t,e,r,a){var n=((t||"")+"").split(`
|
|
26
|
+
`),i=n.length;if(i===1)return _m(n[0],e,r,a);for(var o=new oe(0,0,0,0),s=0;s<n.length;s++){var l=_m(n[s],e,r,a);s===0?o.copy(l):o.union(l)}return o}function Fn(t,e,r,a){return r==="right"?a?t+=e:t-=e:r==="center"&&(a?t+=e/2:t-=e/2),t}function Ra(t,e,r,a){return r==="middle"?a?t+=e/2:t-=e/2:r==="bottom"&&(a?t+=e:t-=e),t}function Ji(t){return _r(t).stWideCharWidth}function Ba(t,e){return typeof t=="string"?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function Ws(t,e,r){var a=e.position||"inside",n=e.distance!=null?e.distance:5,i=r.height,o=r.width,s=i/2,l=r.x,u=r.y,p="left",c="top";if(a instanceof Array)l+=Ba(a[0],r.width),u+=Ba(a[1],r.height),p=null,c=null;else switch(a){case"left":l-=n,u+=s,p="right",c="middle";break;case"right":l+=n+o,u+=s,c="middle";break;case"top":l+=o/2,u-=n,p="center",c="bottom";break;case"bottom":l+=o/2,u+=i+n,p="center";break;case"inside":l+=o/2,u+=s,p="center",c="middle";break;case"insideLeft":l+=n,u+=s,c="middle";break;case"insideRight":l+=o-n,u+=s,p="right",c="middle";break;case"insideTop":l+=o/2,u+=n,p="center";break;case"insideBottom":l+=o/2,u+=i-n,p="center",c="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,p="right";break;case"insideBottomLeft":l+=n,u+=i-n,c="bottom";break;case"insideBottomRight":l+=o-n,u+=i-n,p="right",c="bottom";break}return t=t||{},t.x=l,t.y=u,t.align=p,t.verticalAlign=c,t}var vc=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function nC(t,e,r,a,n,i){if(!r){t.text="",t.isTruncated=!1;return}var o=(e+"").split(`
|
|
27
|
+
`);i=Pm(r,a,n,i);for(var s=!1,l={},u=0,p=o.length;u<p;u++)Sm(l,o[u],i),o[u]=l.textLine,s=s||l.isTruncated;t.text=o.join(`
|
|
28
|
+
`),t.isTruncated=s}function Pm(t,e,r,a){a=a||{};var n=H({},a);r=Z(r,"..."),n.maxIterations=Z(a.maxIterations,2);var i=n.minChar=Z(a.minChar,0),o=n.fontMeasureInfo=_r(e),s=o.asciiCharWidth;n.placeholder=Z(a.placeholder,"");for(var l=t=Math.max(0,t-1),u=0;u<i&&l>=s;u++)l-=s;var p=xr(o,r);return p>l&&(r="",p=0),l=t-p,n.ellipsis=r,n.ellipsisWidth=p,n.contentWidth=l,n.containerWidth=t,n}function Sm(t,e,r){var a=r.containerWidth,n=r.contentWidth,i=r.fontMeasureInfo;if(!a){t.textLine="",t.isTruncated=!1;return}var o=xr(i,e);if(o<=a){t.textLine=e,t.isTruncated=!1;return}for(var s=0;;s++){if(o<=n||s>=r.maxIterations){e+=r.ellipsis;break}var l=s===0?iC(e,n,i):o>0?Math.floor(e.length*n/o):0;e=e.substr(0,l),o=xr(i,e)}e===""&&(e=r.placeholder),t.textLine=e,t.isTruncated=!0}function iC(t,e,r){for(var a=0,n=0,i=t.length;n<i&&a<e;n++)a+=wm(r,t.charCodeAt(n));return n}function oC(t,e,r,a){var n=mc(t),i=e.overflow,o=e.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=e.font,p=i==="truncate",c=Ji(u),f=Z(e.lineHeight,c),h=e.lineOverflow==="truncate",d=!1,v=e.width;v==null&&r!=null&&(v=r-s);var m=e.height;m==null&&a!=null&&(m=a-l);var g;v!=null&&(i==="break"||i==="breakAll")?g=n?Cm(n,e.font,v,i==="breakAll",0).lines:[]:g=n?n.split(`
|
|
29
|
+
`):[];var y=g.length*f;if(m==null&&(m=y),y>m&&h){var b=Math.floor(m/f);d=d||g.length>b,g=g.slice(0,b),y=g.length*f}if(n&&p&&v!=null)for(var k=Pm(v,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),w={},_=0;_<g.length;_++)Sm(w,g[_],k),g[_]=w.textLine,d=d||w.isTruncated;for(var x=m,T=0,C=_r(u),_=0;_<g.length;_++)T=Math.max(xr(C,g[_]),T);v==null&&(v=T);var P=v;return x+=l,P+=s,{lines:g,height:m,outerWidth:P,outerHeight:x,lineHeight:f,calculatedLineHeight:c,contentWidth:T,contentHeight:y,width:v,isTruncated:d}}var sC=(function(){function t(){}return t})(),Tm=(function(){function t(e){this.tokens=[],e&&(this.tokens=e)}return t})(),lC=(function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return t})();function uC(t,e,r,a,n){var i=new lC,o=mc(t);if(!o)return i;var s=e.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,p=e.width;p==null&&r!=null&&(p=r-l);var c=e.height;c==null&&a!=null&&(c=a-u);for(var f=e.overflow,h=(f==="break"||f==="breakAll")&&p!=null?{width:p,accumWidth:0,breakAll:f==="breakAll"}:null,d=vc.lastIndex=0,v;(v=vc.exec(o))!=null;){var m=v.index;m>d&&gc(i,o.substring(d,m),e,h),gc(i,v[2],e,h,v[1]),d=vc.lastIndex}d<o.length&&gc(i,o.substring(d,o.length),e,h);var g=[],y=0,b=0,k=f==="truncate",w=e.lineOverflow==="truncate",_={};function x(ne,De,Ee){ne.width=De,ne.lineHeight=Ee,y+=Ee,b=Math.max(b,De)}e:for(var T=0;T<i.lines.length;T++){for(var C=i.lines[T],P=0,S=0,L=0;L<C.tokens.length;L++){var D=C.tokens[L],M=D.styleName&&e.rich[D.styleName]||{},I=D.textPadding=M.padding,E=I?I[1]+I[3]:0,O=D.font=M.font||e.font;D.contentHeight=Ji(O);var R=Z(M.height,D.contentHeight);if(D.innerHeight=R,I&&(R+=I[0]+I[2]),D.height=R,D.lineHeight=Da(M.lineHeight,e.lineHeight,R),D.align=M&&M.align||n,D.verticalAlign=M&&M.verticalAlign||"middle",w&&c!=null&&y+D.lineHeight>c){var B=i.lines.length;L>0?(C.tokens=C.tokens.slice(0,L),x(C,S,P),i.lines=i.lines.slice(0,T+1)):i.lines=i.lines.slice(0,T),i.isTruncated=i.isTruncated||i.lines.length<B;break e}var N=M.width,F=N==null||N==="auto";if(typeof N=="string"&&N.charAt(N.length-1)==="%")D.percentWidth=N,g.push(D),D.contentWidth=xr(_r(O),D.text);else{if(F){var U=M.backgroundColor,Y=U&&U.image;Y&&(Y=$T(Y),Us(Y)&&(D.width=Math.max(D.width,Y.width*R/Y.height)))}var z=k&&p!=null?p-S:null;z!=null&&z<D.width?!F||z<E?(D.text="",D.width=D.contentWidth=0):(nC(_,D.text,z-E,O,e.ellipsis,{minChar:e.truncateMinChar}),D.text=_.text,i.isTruncated=i.isTruncated||_.isTruncated,D.width=D.contentWidth=xr(_r(O),D.text)):D.contentWidth=xr(_r(O),D.text)}D.width+=E,S+=D.width,M&&(P=Math.max(P,D.lineHeight))}x(C,S,P)}i.outerWidth=i.width=Z(p,b),i.outerHeight=i.height=Z(c,y),i.contentHeight=y,i.contentWidth=b,i.outerWidth+=l,i.outerHeight+=u;for(var T=0;T<g.length;T++){var D=g[T],j=D.percentWidth;D.width=parseInt(j,10)/100*i.width}return i}function gc(t,e,r,a,n){var i=e==="",o=n&&r.rich[n]||{},s=t.lines,l=o.font||r.font,u=!1,p,c;if(a){var f=o.padding,h=f?f[1]+f[3]:0;if(o.width!=null&&o.width!=="auto"){var d=Ba(o.width,a.width)+h;s.length>0&&d+a.accumWidth>a.width&&(p=e.split(`
|
|
30
|
+
`),u=!0),a.accumWidth=d}else{var v=Cm(e,l,a.width,a.breakAll,a.accumWidth);a.accumWidth=v.accumWidth+h,c=v.linesWidths,p=v.lines}}p||(p=e.split(`
|
|
31
|
+
`));for(var m=_r(l),g=0;g<p.length;g++){var y=p[g],b=new sC;if(b.styleName=n,b.text=y,b.isLineHolder=!y&&!i,typeof o.width=="number"?b.width=o.width:b.width=c?c[g]:xr(m,y),!g&&!u){var k=(s[s.length-1]||(s[0]=new Tm)).tokens,w=k.length;w===1&&k[0].isLineHolder?k[0]=b:(y||!w||i)&&k.push(b)}else s.push(new Tm([b]))}}function pC(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var cC=ea(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function fC(t){return pC(t)?!!cC[t]:!0}function Cm(t,e,r,a,n){for(var i=[],o=[],s="",l="",u=0,p=0,c=_r(e),f=0;f<t.length;f++){var h=t.charAt(f);if(h===`
|
|
32
|
+
`){l&&(s+=l,p+=u),i.push(s),o.push(p),s="",l="",u=0,p=0;continue}var d=wm(c,h.charCodeAt(0)),v=a?!1:!fC(h);if(i.length?p+d>r:n+p+d>r){p?(s||l)&&(v?(s||(s=l,l="",u=0,p=u),i.push(s),o.push(p-u),l+=h,u+=d,s="",p=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(p),s=h,p=d)):v?(i.push(l),o.push(u),l=h,u=d):(i.push(h),o.push(d));continue}p+=d,v?(l+=h,u+=d):(l&&(s+=l,l="",u=0),s+=h)}return l&&(s+=l),s&&(i.push(s),o.push(p)),i.length===1&&(p+=n),{accumWidth:p,lines:i,linesWidths:o}}function Dm(t,e,r,a,n,i){if(t.baseX=r,t.baseY=a,t.outerWidth=t.outerHeight=null,!!e){var o=e.width*2,s=e.height*2;oe.set(Am,Fn(r,o,n),Ra(a,s,i),o,s),oe.intersect(e,Am,null,Lm);var l=Lm.outIntersectRect;t.outerWidth=l.width,t.outerHeight=l.height,t.baseX=Fn(l.x,l.width,n,!0),t.baseY=Ra(l.y,l.height,i,!0)}}var Am=new oe(0,0,0,0),Lm={outIntersectRect:{},clamp:!0};function mc(t){return t!=null?t+="":t=""}function hC(t){var e=mc(t.text),r=t.font,a=xr(_r(r),e),n=Ji(r);return yc(t,a,n,null)}function yc(t,e,r,a){var n=new oe(Fn(t.x||0,e,t.textAlign),Ra(t.y||0,r,t.textBaseline),e,r),i=a??(Mm(t)?t.lineWidth:0);return i>0&&(n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i),n}function Mm(t){var e=t.stroke;return e!=null&&e!=="none"&&t.lineWidth>0}var Em=Xi,Im=5e-5;function Na(t){return t>Im||t<-Im}var Fa=[],zn=[],bc=wr(),kc=Math.abs,eo=(function(){function t(){}return t.prototype.getLocalTransform=function(e){return dC(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return Na(this.rotation)||Na(this.x)||Na(this.y)||Na(this.scaleX-1)||Na(this.scaleY-1)||Na(this.skewX)||Na(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,r=this.needLocalTransform(),a=this.transform;if(!(r||e)){a&&(Em(a),this.invTransform=null);return}a=a||wr(),r?this.getLocalTransform(a):Em(a),e&&(r?qi(a,e,a):rc(a,e)),this.transform=a,this._resolveGlobalScaleRatio(a),this.invTransform=this.invTransform||wr(),ji(this.invTransform,a)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Fa);var a=Fa[0]<0?-1:1,n=Fa[1]<0?-1:1,i=((Fa[0]-a)*r+a)/Fa[0]||0,o=((Fa[1]-n)*r+n)/Fa[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}},t.prototype.getComputedTransform=function(){for(var e=this,r=[];e;)r.push(e),e=e.parent;for(;e=r.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var r=e[0]*e[0]+e[1]*e[1],a=e[2]*e[2]+e[3]*e[3],n=Math.atan2(e[1],e[0]),i=Math.PI/2+n-Math.atan2(e[3],e[2]);a=Math.sqrt(a)*Math.cos(i),r=Math.sqrt(r),this.skewX=i,this.skewY=0,this.rotation=-n,this.x=+e[4],this.y=+e[5],this.scaleX=r,this.scaleY=a,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,r=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||wr(),qi(zn,e.invTransform,r),r=zn);var a=this.originX,n=this.originY;(a||n)&&(bc[4]=a,bc[5]=n,qi(zn,r,bc),zn[4]-=a,zn[5]-=n,r=zn),this.setLocalTransform(r)}},t.prototype.getGlobalScale=function(e){var r=this.transform;return e=e||[],r?(e[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),e[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(e[0]=-e[0]),r[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,r){var a=[e,r],n=this.invTransform;return n&&Lt(a,a,n),a},t.prototype.transformCoordToGlobal=function(e,r){var a=[e,r],n=this.transform;return n&&Lt(a,a,n),a},t.prototype.getLineScale=function(){var e=this.transform;return e&&kc(e[0]-1)>1e-10&&kc(e[3]-1)>1e-10?Math.sqrt(kc(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){to(this,e)},t.getLocalTransform=function(e,r){r=r||[];var a=e.originX||0,n=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,p=e.x,c=e.y,f=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(a||n||s||l){var d=a+s,v=n+l;r[4]=-d*i-f*v*o,r[5]=-v*o-h*d*i}else r[4]=r[5]=0;return r[0]=i,r[3]=o,r[1]=h*i,r[2]=f*o,u&&nc(r,r,u),r[4]+=a+p,r[5]+=n+c,r},t.initDefaultProps=(function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0})(),t})(),dC=eo.getLocalTransform,$s=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function to(t,e){return xT(t,e,$s)}var ro={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,r=.1,a=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=a/4):e=a*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/a)))},elasticOut:function(t){var e,r=.1,a=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=a/4):e=a*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/a)+1)},elasticInOut:function(t){var e,r=.1,a=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=a/4):e=a*Math.asin(1/r)/(2*Math.PI),(t*=2)<1?-.5*(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/a)):r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/a)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-ro.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?ro.bounceIn(t*2)*.5:ro.bounceOut(t*2-1)*.5+.5}},Ys=Math.pow,ta=Math.sqrt,Ks=1e-8,Om=1e-4,Rm=ta(3),Xs=1/3,Pr=In(),Mt=In(),Hn=In();function ra(t){return t>-Ks&&t<Ks}function Bm(t){return t>Ks||t<-Ks}function je(t,e,r,a,n){var i=1-n;return i*i*(i*t+3*n*e)+n*n*(n*a+3*i*r)}function Nm(t,e,r,a,n){var i=1-n;return 3*(((e-t)*i+2*(r-e)*n)*i+(a-r)*n*n)}function qs(t,e,r,a,n,i){var o=a+3*(e-r)-t,s=3*(r-e*2+t),l=3*(e-t),u=t-n,p=s*s-3*o*l,c=s*l-9*o*u,f=l*l-3*s*u,h=0;if(ra(p)&&ra(c))if(ra(s))i[0]=0;else{var d=-l/s;d>=0&&d<=1&&(i[h++]=d)}else{var v=c*c-4*p*f;if(ra(v)){var m=c/p,d=-s/o+m,g=-m/2;d>=0&&d<=1&&(i[h++]=d),g>=0&&g<=1&&(i[h++]=g)}else if(v>0){var y=ta(v),b=p*s+1.5*o*(-c+y),k=p*s+1.5*o*(-c-y);b<0?b=-Ys(-b,Xs):b=Ys(b,Xs),k<0?k=-Ys(-k,Xs):k=Ys(k,Xs);var d=(-s-(b+k))/(3*o);d>=0&&d<=1&&(i[h++]=d)}else{var w=(2*p*s-3*o*c)/(2*ta(p*p*p)),_=Math.acos(w)/3,x=ta(p),T=Math.cos(_),d=(-s-2*x*T)/(3*o),g=(-s+x*(T+Rm*Math.sin(_)))/(3*o),C=(-s+x*(T-Rm*Math.sin(_)))/(3*o);d>=0&&d<=1&&(i[h++]=d),g>=0&&g<=1&&(i[h++]=g),C>=0&&C<=1&&(i[h++]=C)}}return h}function Fm(t,e,r,a,n){var i=6*r-12*e+6*t,o=9*e+3*a-3*t-9*r,s=3*e-3*t,l=0;if(ra(o)){if(Bm(i)){var u=-s/i;u>=0&&u<=1&&(n[l++]=u)}}else{var p=i*i-4*o*s;if(ra(p))n[0]=-i/(2*o);else if(p>0){var c=ta(p),u=(-i+c)/(2*o),f=(-i-c)/(2*o);u>=0&&u<=1&&(n[l++]=u),f>=0&&f<=1&&(n[l++]=f)}}return l}function js(t,e,r,a,n,i){var o=(e-t)*n+t,s=(r-e)*n+e,l=(a-r)*n+r,u=(s-o)*n+o,p=(l-s)*n+s,c=(p-u)*n+u;i[0]=t,i[1]=o,i[2]=u,i[3]=c,i[4]=c,i[5]=p,i[6]=l,i[7]=a}function vC(t,e,r,a,n,i,o,s,l,u,p){var c,f=.005,h=1/0,d,v,m,g;Pr[0]=l,Pr[1]=u;for(var y=0;y<1;y+=.05)Mt[0]=je(t,r,n,o,y),Mt[1]=je(e,a,i,s,y),m=On(Pr,Mt),m<h&&(c=y,h=m);h=1/0;for(var b=0;b<32&&!(f<Om);b++)d=c-f,v=c+f,Mt[0]=je(t,r,n,o,d),Mt[1]=je(e,a,i,s,d),m=On(Mt,Pr),d>=0&&m<h?(c=d,h=m):(Hn[0]=je(t,r,n,o,v),Hn[1]=je(e,a,i,s,v),g=On(Hn,Pr),v<=1&&g<h?(c=v,h=g):f*=.5);return ta(h)}function gC(t,e,r,a,n,i,o,s,l){for(var u=t,p=e,c=0,f=1/l,h=1;h<=l;h++){var d=h*f,v=je(t,r,n,o,d),m=je(e,a,i,s,d),g=v-u,y=m-p;c+=Math.sqrt(g*g+y*y),u=v,p=m}return c}function bt(t,e,r,a){var n=1-a;return n*(n*t+2*a*e)+a*a*r}function zm(t,e,r,a){return 2*((1-a)*(e-t)+a*(r-e))}function mC(t,e,r,a,n){var i=t-2*e+r,o=2*(e-t),s=t-a,l=0;if(ra(i)){if(Bm(o)){var u=-s/o;u>=0&&u<=1&&(n[l++]=u)}}else{var p=o*o-4*i*s;if(ra(p)){var u=-o/(2*i);u>=0&&u<=1&&(n[l++]=u)}else if(p>0){var c=ta(p),u=(-o+c)/(2*i),f=(-o-c)/(2*i);u>=0&&u<=1&&(n[l++]=u),f>=0&&f<=1&&(n[l++]=f)}}return l}function Hm(t,e,r){var a=t+r-2*e;return a===0?.5:(t-e)/a}function Zs(t,e,r,a,n){var i=(e-t)*a+t,o=(r-e)*a+e,s=(o-i)*a+i;n[0]=t,n[1]=i,n[2]=s,n[3]=s,n[4]=o,n[5]=r}function yC(t,e,r,a,n,i,o,s,l){var u,p=.005,c=1/0;Pr[0]=o,Pr[1]=s;for(var f=0;f<1;f+=.05){Mt[0]=bt(t,r,n,f),Mt[1]=bt(e,a,i,f);var h=On(Pr,Mt);h<c&&(u=f,c=h)}c=1/0;for(var d=0;d<32&&!(p<Om);d++){var v=u-p,m=u+p;Mt[0]=bt(t,r,n,v),Mt[1]=bt(e,a,i,v);var h=On(Mt,Pr);if(v>=0&&h<c)u=v,c=h;else{Hn[0]=bt(t,r,n,m),Hn[1]=bt(e,a,i,m);var g=On(Hn,Pr);m<=1&&g<c?(u=m,c=g):p*=.5}}return ta(c)}function bC(t,e,r,a,n,i,o){for(var s=t,l=e,u=0,p=1/o,c=1;c<=o;c++){var f=c*p,h=bt(t,r,n,f),d=bt(e,a,i,f),v=h-s,m=d-l;u+=Math.sqrt(v*v+m*m),s=h,l=d}return u}var kC=/cubic-bezier\(([0-9,\.e ]+)\)/;function wc(t){var e=t&&kC.exec(t);if(e){var r=e[1].split(","),a=+br(r[0]),n=+br(r[1]),i=+br(r[2]),o=+br(r[3]);if(isNaN(a+n+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:qs(0,a,i,1,l,s)&&je(0,n,o,1,s[0])}}}var wC=(function(){function t(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||qe,this.ondestroy=e.ondestroy||qe,this.onrestart=e.onrestart||qe,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,r){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var a=this._life,n=e-this._startTime-this._pausedTime,i=n/a;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=n%a;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=re(e)?e:ro[e]||wc(e)},t})(),Vm={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 aa(t){return t=Math.round(t),t<0?0:t>255?255:t}function _c(t){return t<0?0:t>1?1:t}function xc(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?aa(parseFloat(e)/100*255):aa(parseInt(e,10))}function za(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?_c(parseFloat(e)/100):_c(parseFloat(e))}function Pc(t,e,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?t+(e-t)*r*6:r*2<1?e:r*3<2?t+(e-t)*(2/3-r)*6:t}function Qs(t,e,r){return t+(e-t)*r}function Et(t,e,r,a,n){return t[0]=e,t[1]=r,t[2]=a,t[3]=n,t}function Sc(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var Um=new En(20),Js=null;function Vn(t,e){Js&&Sc(Js,e),Js=Um.put(t,Js||e.slice())}function er(t,e){if(t){e=e||[];var r=Um.get(t);if(r)return Sc(e,r);t=t+"";var a=t.replace(/ /g,"").toLowerCase();if(a in Vm)return Sc(e,Vm[a]),Vn(t,e),e;var n=a.length;if(a.charAt(0)==="#"){if(n===4||n===5){var i=parseInt(a.slice(1,4),16);if(!(i>=0&&i<=4095)){Et(e,0,0,0,1);return}return Et(e,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,n===5?parseInt(a.slice(4),16)/15:1),Vn(t,e),e}else if(n===7||n===9){var i=parseInt(a.slice(1,7),16);if(!(i>=0&&i<=16777215)){Et(e,0,0,0,1);return}return Et(e,(i&16711680)>>16,(i&65280)>>8,i&255,n===9?parseInt(a.slice(7),16)/255:1),Vn(t,e),e}return}var o=a.indexOf("("),s=a.indexOf(")");if(o!==-1&&s+1===n){var l=a.substr(0,o),u=a.substr(o+1,s-(o+1)).split(","),p=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Et(e,+u[0],+u[1],+u[2],1):Et(e,0,0,0,1);p=za(u.pop());case"rgb":if(u.length>=3)return Et(e,xc(u[0]),xc(u[1]),xc(u[2]),u.length===3?p:za(u[3])),Vn(t,e),e;Et(e,0,0,0,1);return;case"hsla":if(u.length!==4){Et(e,0,0,0,1);return}return u[3]=za(u[3]),Tc(u,e),Vn(t,e),e;case"hsl":if(u.length!==3){Et(e,0,0,0,1);return}return Tc(u,e),Vn(t,e),e;default:return}}Et(e,0,0,0,1)}}function Tc(t,e){var r=(parseFloat(t[0])%360+360)%360/360,a=za(t[1]),n=za(t[2]),i=n<=.5?n*(a+1):n+a-n*a,o=n*2-i;return e=e||[],Et(e,aa(Pc(o,i,r+1/3)*255),aa(Pc(o,i,r)*255),aa(Pc(o,i,r-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function _C(t){if(t){var e=t[0]/255,r=t[1]/255,a=t[2]/255,n=Math.min(e,r,a),i=Math.max(e,r,a),o=i-n,s=(i+n)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+n):u=o/(2-i-n);var p=((i-e)/6+o/2)/o,c=((i-r)/6+o/2)/o,f=((i-a)/6+o/2)/o;e===i?l=f-c:r===i?l=1/3+p-f:a===i&&(l=2/3+c-p),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return t[3]!=null&&h.push(t[3]),h}}function Gm(t,e){var r=er(t);if(r){for(var a=0;a<3;a++)r[a]=r[a]*(1-e)|0,r[a]>255?r[a]=255:r[a]<0&&(r[a]=0);return ao(r,r.length===4?"rgba":"rgb")}}function xC(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){var a=t*(e.length-1),n=Math.floor(a),i=Math.ceil(a),o=er(e[n]),s=er(e[i]),l=a-n,u=ao([aa(Qs(o[0],s[0],l)),aa(Qs(o[1],s[1],l)),aa(Qs(o[2],s[2],l)),_c(Qs(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:n,rightIndex:i,value:a}:u}}function Cc(t,e,r,a){var n=er(t);if(t)return n=_C(n),r!=null&&(n[1]=za(re(r)?r(n[1]):r)),a!=null&&(n[2]=za(re(a)?a(n[2]):a)),ao(Tc(n),"rgba")}function ao(t,e){if(!(!t||!t.length)){var r=t[0]+","+t[1]+","+t[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(r+=","+t[3]),e+"("+r+")"}}function el(t,e){var r=er(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}var Wm=new En(100);function Dc(t){if(q(t)){var e=Wm.get(t);return e||(e=Gm(t,-.1),Wm.put(t,e)),e}else if(jp(t)){var r=H({},t);return r.colorStops=K(t.colorStops,function(a){return{offset:a.offset,color:Gm(a.color,-.1)}}),r}return t}var tl=Math.round;function no(t){var e;if(!t||t==="transparent")t="none";else if(typeof t=="string"&&t.indexOf("rgba")>-1){var r=er(t);r&&(t="rgb("+r[0]+","+r[1]+","+r[2]+")",e=r[3])}return{color:t,opacity:e??1}}var $m=1e-4;function na(t){return t<$m&&t>-$m}function rl(t){return tl(t*1e3)/1e3}function Ac(t){return tl(t*1e4)/1e4}function PC(t){return"matrix("+rl(t[0])+","+rl(t[1])+","+rl(t[2])+","+rl(t[3])+","+Ac(t[4])+","+Ac(t[5])+")"}var SC={left:"start",right:"end",center:"middle",middle:"middle"};function TC(t,e,r){return r==="top"?t+=e/2:r==="bottom"&&(t-=e/2),t}function CC(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function DC(t){var e=t.style,r=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function Ym(t){return t&&!!t.image}function AC(t){return t&&!!t.svgElement}function Lc(t){return Ym(t)||AC(t)}function Km(t){return t.type==="linear"}function Xm(t){return t.type==="radial"}function qm(t){return t&&(t.type==="linear"||t.type==="radial")}function al(t){return"url(#"+t+")"}function jm(t){var e=t.getGlobalScale(),r=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function Zm(t){var e=t.x||0,r=t.y||0,a=(t.rotation||0)*Hs,n=Z(t.scaleX,1),i=Z(t.scaleY,1),o=t.skewX||0,s=t.skewY||0,l=[];return(e||r)&&l.push("translate("+e+"px,"+r+"px)"),a&&l.push("rotate("+a+")"),(n!==1||i!==1)&&l.push("scale("+n+","+i+")"),(o||s)&&l.push("skew("+tl(o*Hs)+"deg, "+tl(s*Hs)+"deg)"),l.join(" ")}var LC=(function(){return typeof Buffer<"u"&&typeof Buffer.from=="function"?function(t){return Buffer.from(t).toString("base64")}:typeof btoa=="function"&&typeof unescape=="function"&&typeof encodeURIComponent=="function"?function(t){return btoa(unescape(encodeURIComponent(t)))}:function(t){return null}})(),Mc=Array.prototype.slice;function Fr(t,e,r){return(e-t)*r+t}function Ec(t,e,r,a){for(var n=e.length,i=0;i<n;i++)t[i]=Fr(e[i],r[i],a);return t}function MC(t,e,r,a){for(var n=e.length,i=n&&e[0].length,o=0;o<n;o++){t[o]||(t[o]=[]);for(var s=0;s<i;s++)t[o][s]=Fr(e[o][s],r[o][s],a)}return t}function nl(t,e,r,a){for(var n=e.length,i=0;i<n;i++)t[i]=e[i]+r[i]*a;return t}function Qm(t,e,r,a){for(var n=e.length,i=n&&e[0].length,o=0;o<n;o++){t[o]||(t[o]=[]);for(var s=0;s<i;s++)t[o][s]=e[o][s]+r[o][s]*a}return t}function EC(t,e){for(var r=t.length,a=e.length,n=r>a?e:t,i=Math.min(r,a),o=n[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(r,a);s++)n.push({offset:o.offset,color:o.color.slice()})}function IC(t,e,r){var a=t,n=e;if(!(!a.push||!n.push)){var i=a.length,o=n.length;if(i!==o){var s=i>o;if(s)a.length=o;else for(var l=i;l<o;l++)a.push(r===1?n[l]:Mc.call(n[l]))}for(var u=a[0]&&a[0].length,l=0;l<a.length;l++)if(r===1)isNaN(a[l])&&(a[l]=n[l]);else for(var p=0;p<u;p++)isNaN(a[l][p])&&(a[l][p]=n[l][p])}}function il(t){if(mt(t)){var e=t.length;if(mt(t[0])){for(var r=[],a=0;a<e;a++)r.push(Mc.call(t[a]));return r}return Mc.call(t)}return t}function ol(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=t[3]==null?1:t[3],"rgba("+t.join(",")+")"}function OC(t){return mt(t&&t[0])?2:1}var sl=0,ll=1,Jm=2,io=3,Ic=4,Oc=5,ey=6;function ty(t){return t===Ic||t===Oc}function ul(t){return t===ll||t===Jm}var oo=[0,0,0,0],RC=(function(){function t(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,r,a){this._needsSort=!0;var n=this.keyframes,i=n.length,o=!1,s=ey,l=r;if(mt(r)){var u=OC(r);s=u,(u===1&&!be(r[0])||u===2&&!be(r[0][0]))&&(o=!0)}else if(be(r)&&!$i(r))s=sl;else if(q(r))if(!isNaN(+r))s=sl;else{var p=er(r);p&&(l=p,s=io)}else if(jp(r)){var c=H({},l);c.colorStops=K(r.colorStops,function(h){return{offset:h.offset,color:er(h.color)}}),Km(r)?s=Ic:Xm(r)&&(s=Oc),l=c}i===0?this.valType=s:(s!==this.valType||s===ey)&&(o=!0),this.discrete=this.discrete||o;var f={time:e,value:l,rawValue:r,percent:0};return a&&(f.easing=a,f.easingFunc=re(a)?a:ro[a]||wc(a)),n.push(f),f},t.prototype.prepare=function(e,r){var a=this.keyframes;this._needsSort&&a.sort(function(v,m){return v.time-m.time});for(var n=this.valType,i=a.length,o=a[i-1],s=this.discrete,l=ul(n),u=ty(n),p=0;p<i;p++){var c=a[p],f=c.value,h=o.value;c.percent=c.time/e,s||(l&&p!==i-1?IC(f,h,n):u&&EC(f.colorStops,h.colorStops))}if(!s&&n!==Oc&&r&&this.needsAnimate()&&r.needsAnimate()&&n===r.valType&&!r._finished){this._additiveTrack=r;for(var d=a[0].value,p=0;p<i;p++)n===sl?a[p].additiveValue=a[p].value-d:n===io?a[p].additiveValue=nl([],a[p].value,d,-1):ul(n)&&(a[p].additiveValue=n===ll?nl([],a[p].value,d,-1):Qm([],a[p].value,d,-1))}},t.prototype.step=function(e,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var a=this._additiveTrack!=null,n=a?"additiveValue":"value",i=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=i===io,p,c=this._lastFr,f=Math.min,h,d;if(s===1)h=d=o[0];else{if(r<0)p=0;else if(r<this._lastFrP){var v=f(c+1,s-1);for(p=v;p>=0&&!(o[p].percent<=r);p--);p=f(p,s-2)}else{for(p=c;p<s&&!(o[p].percent>r);p++);p=f(p-1,s-2)}d=o[p+1],h=o[p]}if(h&&d){this._lastFr=p,this._lastFrP=r;var m=d.percent-h.percent,g=m===0?1:f((r-h.percent)/m,1);d.easingFunc&&(g=d.easingFunc(g));var y=a?this._additiveValue:u?oo:e[l];if((ul(i)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)e[l]=g<1?h.rawValue:d.rawValue;else if(ul(i))i===ll?Ec(y,h[n],d[n],g):MC(y,h[n],d[n],g);else if(ty(i)){var b=h[n],k=d[n],w=i===Ic;e[l]={type:w?"linear":"radial",x:Fr(b.x,k.x,g),y:Fr(b.y,k.y,g),colorStops:K(b.colorStops,function(x,T){var C=k.colorStops[T];return{offset:Fr(x.offset,C.offset,g),color:ol(Ec([],x.color,C.color,g))}}),global:k.global},w?(e[l].x2=Fr(b.x2,k.x2,g),e[l].y2=Fr(b.y2,k.y2,g)):e[l].r=Fr(b.r,k.r,g)}else if(u)Ec(y,h[n],d[n],g),a||(e[l]=ol(y));else{var _=Fr(h[n],d[n],g);a?this._additiveValue=_:e[l]=_}a&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var r=this.valType,a=this.propName,n=this._additiveValue;r===sl?e[a]=e[a]+n:r===io?(er(e[a],oo),nl(oo,oo,n,1),e[a]=ol(oo)):r===ll?nl(e[a],e[a],n,1):r===Jm&&Qm(e[a],e[a],n,1)},t})(),Rc=(function(){function t(e,r,a,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=r,r&&n){om("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=a}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,r,a){return this.whenWithKeys(e,r,he(r),a)},t.prototype.whenWithKeys=function(e,r,a,n){for(var i=this._tracks,o=0;o<a.length;o++){var s=a[o],l=i[s];if(!l){l=i[s]=new RC(s);var u=void 0,p=this._getAdditiveTrack(s);if(p){var c=p.keyframes,f=c[c.length-1];u=f&&f.value,p.valType===io&&u&&(u=ol(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,il(u),n),this._trackKeys.push(s)}l.addKeyframe(e,il(r[s]),n)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var r=e.length,a=0;a<r;a++)e[a].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,r=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,r)for(var a=0;a<r.length;a++)r[a].call(this)},t.prototype._setTracksFinished=function(){for(var e=this._tracks,r=this._trackKeys,a=0;a<r.length;a++)e[r[a]].setFinished()},t.prototype._getAdditiveTrack=function(e){var r,a=this._additiveAnimators;if(a)for(var n=0;n<a.length;n++){var i=a[n].getTrack(e);i&&(r=i)}return r},t.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var r=this,a=[],n=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,p=u.length;if(s.prepare(n,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var c=u[p-1];c&&(r._target[s.propName]=c.rawValue),s.setFinished()}else a.push(s)}if(a.length||this._force){var f=new wC({life:n,loop:this._loop,delay:this._delay||0,onframe:function(h){r._started=2;var d=r._additiveAnimators;if(d){for(var v=!1,m=0;m<d.length;m++)if(d[m]._clip){v=!0;break}v||(r._additiveAnimators=null)}for(var m=0;m<a.length;m++)a[m].step(r._target,h);var g=r._onframeCbs;if(g)for(var m=0;m<g.length;m++)g[m](r._target,h)},ondestroy:function(){r._doneCallback()}});this._clip=f,this.animation&&this.animation.addClip(f),e&&f.setEasing(e)}else this._doneCallback();return this}},t.prototype.stop=function(e){if(this._clip){var r=this._clip;e&&r.onframe(1),this._abortedCallback()}},t.prototype.delay=function(e){return this._delay=e,this},t.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},t.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},t.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(e){return this._tracks[e]},t.prototype.getTracks=function(){var e=this;return K(this._trackKeys,function(r){return e._tracks[r]})},t.prototype.stopTracks=function(e,r){if(!e.length||!this._clip)return!0;for(var a=this._tracks,n=this._trackKeys,i=0;i<e.length;i++){var o=a[e[i]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,i=0;i<n.length;i++)if(!a[n[i]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},t.prototype.saveTo=function(e,r,a){if(e){r=r||this._trackKeys;for(var n=0;n<r.length;n++){var i=r[n],o=this._tracks[i];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[a?0:s.length-1];l&&(e[i]=il(l.rawValue))}}}},t.prototype.__changeFinalValue=function(e,r){r=r||he(e);for(var a=0;a<r.length;a++){var n=r[a],i=this._tracks[n];if(i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,e[n]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},t})(),zr=(function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,r,a,n){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof r=="function"&&(n=a,a=r,r=null),!a||!e)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),i[e]||(i[e]=[]);for(var s=0;s<i[e].length;s++)if(i[e][s].h===a)return this;var l={h:a,query:r,ctx:n||this,callAtLast:a.zrEventfulCallAtLast},u=i[e].length-1,p=i[e][u];return p&&p.callAtLast?i[e].splice(u,0,l):i[e].push(l),this},t.prototype.isSilent=function(e){var r=this._$handlers;return!r||!r[e]||!r[e].length},t.prototype.off=function(e,r){var a=this._$handlers;if(!a)return this;if(!e)return this._$handlers={},this;if(r){if(a[e]){for(var n=[],i=0,o=a[e].length;i<o;i++)a[e][i].h!==r&&n.push(a[e][i]);a[e]=n}a[e]&&a[e].length===0&&delete a[e]}else delete a[e];return this},t.prototype.trigger=function(e){for(var r=[],a=1;a<arguments.length;a++)r[a-1]=arguments[a];if(!this._$handlers)return this;var n=this._$handlers[e],i=this._$eventProcessor;if(n)for(var o=r.length,s=n.length,l=0;l<s;l++){var u=n[l];if(!(i&&i.filter&&u.query!=null&&!i.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},t.prototype.triggerWithContext=function(e){for(var r=[],a=1;a<arguments.length;a++)r[a-1]=arguments[a];if(!this._$handlers)return this;var n=this._$handlers[e],i=this._$eventProcessor;if(n)for(var o=r.length,s=r[o-1],l=n.length,u=0;u<l;u++){var p=n[u];if(!(i&&i.filter&&p.query!=null&&!i.filter(e,p.query)))switch(o){case 0:p.h.call(s);break;case 1:p.h.call(s,r[0]);break;case 2:p.h.call(s,r[0],r[1]);break;default:p.h.apply(s,r.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},t})(),ry=1;se.hasGlobalWindow&&(ry=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var ay=ry,Bc=.4,Nc="#333",Fc="#ccc",BC="#eee",tr=1,so=2,Un=4,zc="__zr_normal__",Hc=$s.concat(["ignore"]),NC=ea($s,function(t,e){return t[e]=!0,t},{ignore:!1}),Gn={},FC=new oe(0,0,0,0),pl=[],cl=0,fl=1,hl=(function(){function t(e){this.id=im(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,r,a){switch(this.draggable){case"horizontal":r=0;break;case"vertical":e=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=e,n[5]+=r,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(e){var r=this._textContent;if(r&&(!r.ignore||e)){this.textConfig||(this.textConfig={});var a=this.textConfig,n=a.local,i=r.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=n?this:null;var u=!1;i.copyTransform(r);var p=a.position!=null,c=a.autoOverflowArea,f=void 0;if((c||p)&&(f=FC,a.layoutRect?f.copy(a.layoutRect):f.copy(this.getBoundingRect()),n||f.applyTransform(this.transform)),p){this.calculateTextPosition?this.calculateTextPosition(Gn,a,f):Ws(Gn,a,f),i.x=Gn.x,i.y=Gn.y,o=Gn.align,s=Gn.verticalAlign;var h=a.origin;if(h&&a.rotation!=null){var d=void 0,v=void 0;h==="center"?(d=f.width*.5,v=f.height*.5):(d=Ba(h[0],f.width),v=Ba(h[1],f.height)),u=!0,i.originX=-i.x+d+(n?0:f.x),i.originY=-i.y+v+(n?0:f.y)}}a.rotation!=null&&(i.rotation=a.rotation);var m=a.offset;m&&(i.x+=m[0],i.y+=m[1],u||(i.originX=-m[0],i.originY=-m[1]));var g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(c){var y=g.overflowRect=g.overflowRect||new oe(0,0,0,0);i.getLocalTransform(pl),ji(pl,pl),oe.copy(y,f),y.applyTransform(pl)}else g.overflowRect=null;var b=a.inside==null?typeof a.position=="string"&&a.position.indexOf("inside")>=0:a.inside,k=void 0,w=void 0,_=void 0;b&&this.canBeInsideText()?(k=a.insideFill,w=a.insideStroke,(k==null||k==="auto")&&(k=this.getInsideTextFill()),(w==null||w==="auto")&&(w=this.getInsideTextStroke(k),_=!0)):(k=a.outsideFill,w=a.outsideStroke,(k==null||k==="auto")&&(k=this.getOutsideFill()),(w==null||w==="auto")&&(w=this.getOutsideStroke(k),_=!0)),k=k||"#000",(k!==g.fill||w!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=k,g.stroke=w,g.autoStroke=_,g.align=o,g.verticalAlign=s,r.setDefaultTextStyle(g)),r.__dirty|=tr,l&&r.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(e){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Fc:Nc},t.prototype.getOutsideStroke=function(e){var r=this.__zr&&this.__zr.getBackgroundColor(),a=typeof r=="string"&&er(r);a||(a=[255,255,255,1]);for(var n=a[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)a[o]=a[o]*n+(i?0:255)*(1-n);return a[3]=1,ao(a,"rgba")},t.prototype.traverse=function(e,r){},t.prototype.attrKV=function(e,r){e==="textConfig"?this.setTextConfig(r):e==="textContent"?this.setTextContent(r):e==="clipPath"?this.setClipPath(r):e==="extra"?(this.extra=this.extra||{},H(this.extra,r)):this[e]=r},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(e,r){if(typeof e=="string")this.attrKV(e,r);else if(J(e))for(var a=e,n=he(a),i=0;i<n.length;i++){var o=n[i];this.attrKV(o,e[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var r=this._normalState,a=0;a<this.animators.length;a++){var n=this.animators[a],i=n.__fromStateTransition;if(!(n.getLoop()||i&&i!==zc)){var o=n.targetName,s=o?r[o]:r;n.saveTo(s)}}},t.prototype._innerSaveToNormal=function(e){var r=this._normalState;r||(r=this._normalState={}),e.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(e,r,Hc)},t.prototype._savePrimaryToNormal=function(e,r,a){for(var n=0;n<a.length;n++){var i=a[n];e[i]!=null&&!(i in r)&&(r[i]=this[i])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var r=this.states;return r[e]||(r[e]={}),r[e]},t.prototype.clearStates=function(e){this.useState(zc,!1,e)},t.prototype.useState=function(e,r,a,n){var i=e===zc,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(fe(s,e)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!i){om("State "+e+" not exists.");return}i||this.saveCurrentToNormalState(u);var p=this._textContent,c=iy(this,p,u,n);c&&!this.__inHover&&(this.__inHover=c),this._applyStateObj(e,u,this._normalState,r,sy(this,a,l),l);var f=this._textGuide;return p&&p.useState(e,r,a,!!c),f&&f.useState(e,r,a,!!c),i?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this.__inHover=cl,this.__dirty&=~tr),u}}},t.prototype.useStates=function(e,r,a){if(!e.length)this.clearStates();else{var n=[],i=this.currentStates,o=e.length,s=o===i.length;if(s){for(var l=0;l<o;l++)if(e[l]!==i[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=e[l],p=void 0;this.stateProxy&&(p=this.stateProxy(u,e)),p||(p=this.states[u]),p&&n.push(p)}var c=n[o-1],f=this._textContent,h=iy(this,f,c,a);h&&!this.__inHover&&(this.__inHover=h);var d=this._mergeStates(n),v=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(e.join(","),d,this._normalState,!1,sy(this,r,v),v);var m=this._textGuide;f&&f.useStates(e,r,!!h),m&&m.useStates(e,r,!!h),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!h&&this.__inHover&&(this.__inHover=cl,this.__dirty&=~tr)}},t.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var r=e.__hostTarget;e=r?e.ignoreHostSilent?null:r:e.parent}return!1},t.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var r=this.animators[e];r.targetName&&r.changeTarget(this[r.targetName])}},t.prototype.removeState=function(e){var r=fe(this.currentStates,e);if(r>=0){var a=this.currentStates.slice();a.splice(r,1),this.useStates(a)}},t.prototype.replaceState=function(e,r,a){var n=this.currentStates.slice(),i=fe(n,e),o=fe(n,r)>=0;i>=0?o?n.splice(i,1):n[i]=r:a&&!o&&n.push(r),this.useStates(n)},t.prototype.toggleState=function(e,r){r?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var r={},a,n=0;n<e.length;n++){var i=e[n];H(r,i),i.textConfig&&(a=a||{},H(a,i.textConfig))}return a&&(r.textConfig=a),r},t.prototype._applyStateObj=function(e,r,a,n,i,o){if(this.__inHover!==fl){var s=!(r&&n);r&&r.textConfig?(this.textConfig=H({},n?this.textConfig:a.textConfig),H(this.textConfig,r.textConfig)):s&&a.textConfig&&(this.textConfig=a.textConfig);for(var l={},u=!1,p=0;p<Hc.length;p++){var c=Hc[p],f=i&&NC[c];r&&r[c]!=null?f?(u=!0,l[c]=r[c]):this[c]=r[c]:s&&a[c]!=null&&(f?(u=!0,l[c]=a[c]):this[c]=a[c])}if(!i)for(var p=0;p<this.animators.length;p++){var h=this.animators[p],d=h.targetName;h.getLoop()||h.__changeFinalValue(d?(r||a)[d]:r||a)}u&&this._transitionState(e,l,o)}},t.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var r=this.__zr;r&&e.addSelfToZr(r),e.__zr=r,e.__hostTarget=this}},t.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},t.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(e){var r=this._textContent;r!==e&&(r&&r!==e&&this.removeTextContent(),e.innerTransformable=new eo,this._attachComponent(e),this._textContent=e,this.markRedraw())},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),H(this.textConfig,e),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=tr;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var r=this.animators;if(r)for(var a=0;a<r.length;a++)e.animation.addAnimator(r[a]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var a=0;a<r.length;a++)e.animation.removeAnimator(r[a]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},t.prototype.animate=function(e,r,a){var n=e?this[e]:this,i=new Rc(n,r,a);return e&&(i.targetName=e),this.addAnimator(i,e),i},t.prototype.addAnimator=function(e,r){var a=this.__zr,n=this;e.during(function(){n.updateDuringAnimation(r)}).done(function(){var i=n.animators,o=fe(i,e);o>=0&&i.splice(o,1)}),this.animators.push(e),a&&a.animation.addAnimator(e),a&&a.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,r){for(var a=this.animators,n=a.length,i=[],o=0;o<n;o++){var s=a[o];!e||e===s.scope?s.stop(r):i.push(s)}return this.animators=i,this},t.prototype.animateTo=function(e,r,a){Vc(this,e,r,a)},t.prototype.animateFrom=function(e,r,a){Vc(this,e,r,a,!0)},t.prototype._transitionState=function(e,r,a,n){for(var i=Vc(this,r,a,n),o=0;o<i.length;o++)i[o].__fromStateTransition=e},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=(function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=!1,e.__inHover=cl,e.__dirty=tr;function r(a,n,i,o){Object.defineProperty(e,a,{get:function(){if(!this[n]){var l=this[n]=[];s(this,l)}return this[n]},set:function(l){this[i]=l[0],this[o]=l[1],this[n]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[i]},set:function(p){l[i]=p}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(p){l[o]=p}})}}Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))})(),t})();Qt(hl,zr),Qt(hl,eo);function Vc(t,e,r,a,n){r=r||{};var i=[];ny(t,"",t,e,r,a,i,n);var o=i.length,s=!1,l=r.done,u=r.aborted,p=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},c=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),i.length>0&&r.during&&i[0].during(function(d,v){r.during(v)});for(var f=0;f<i.length;f++){var h=i[f];p&&h.done(p),c&&h.aborted(c),r.force&&h.duration(r.duration),h.start(r.easing)}return i}function Uc(t,e,r){for(var a=0;a<r;a++)t[a]=e[a]}function zC(t){return mt(t[0])}function HC(t,e,r){if(mt(e[r]))if(mt(t[r])||(t[r]=[]),yt(e[r])){var a=e[r].length;t[r].length!==a&&(t[r]=new e[r].constructor(a),Uc(t[r],e[r],a))}else{var n=e[r],i=t[r],o=n.length;if(zC(n))for(var s=n[0].length,l=0;l<o;l++)i[l]?Uc(i[l],n[l],s):i[l]=Array.prototype.slice.call(n[l]);else Uc(i,n,o);i.length=n.length}else t[r]=e[r]}function VC(t,e){return t===e||mt(t)&&mt(e)&&UC(t,e)}function UC(t,e){var r=t.length;if(r!==e.length)return!1;for(var a=0;a<r;a++)if(t[a]!==e[a])return!1;return!0}function ny(t,e,r,a,n,i,o,s){for(var l=he(a),u=n.duration,p=n.delay,c=n.additive,f=n.setToFinal,h=!J(i),d=t.animators,v=[],m=0;m<l.length;m++){var g=l[m],y=a[g];if(y!=null&&r[g]!=null&&(h||i[g]))if(J(y)&&!mt(y)&&!jp(y)){if(e){s||(r[g]=y,t.updateDuringAnimation(e));continue}ny(t,g,r[g],y,n,i&&i[g],o,s)}else v.push(g);else s||(r[g]=y,t.updateDuringAnimation(e),v.push(g))}var b=v.length;if(!c&&b)for(var k=0;k<d.length;k++){var w=d[k];if(w.targetName===e){var _=w.stopTracks(v);if(_){var x=fe(d,w);d.splice(x,1)}}}if(n.force||(v=Xe(v,function(S){return!VC(a[S],r[S])}),b=v.length),b>0||n.force&&!o.length){var T=void 0,C=void 0,P=void 0;if(s){C={},f&&(T={});for(var k=0;k<b;k++){var g=v[k];C[g]=r[g],f?T[g]=a[g]:r[g]=a[g]}}else if(f){P={};for(var k=0;k<b;k++){var g=v[k];P[g]=il(r[g]),HC(r,a,g)}}var w=new Rc(r,!1,!1,c?Xe(d,function(L){return L.targetName===e}):null);w.targetName=e,n.scope&&(w.scope=n.scope),f&&T&&w.whenWithKeys(0,T,v),P&&w.whenWithKeys(0,P,v),w.whenWithKeys(u??500,s?C:a,v).delay(p||0),t.addAnimator(w,e),o.push(w)}}function iy(t,e,r,a){return!(r&&r.hoverLayer||a)||oy(t)||e&&oy(e)?cl:fl}function oy(t){return t.type==="text"||t.type==="tspan"}function sy(t,e,r){return!e&&!t.__inHover&&r&&r.duration>0}var Gc="__zr_style_"+Math.round(Math.random()*10),Ha={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},dl={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Ha[Gc]=!0;var ly=["z","z2","invisible"],GC=["invisible"],lo=(function(t){V(e,t);function e(r){return t.call(this,r)||this}return e.prototype._init=function(r){for(var a=he(r),n=0;n<a.length;n++){var i=a[n];i==="style"?this.useStyle(r[i]):t.prototype.attrKV.call(this,i,r[i])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(r){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(r,a,n,i){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&WC(this,r,a)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(i&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(r,a){return this.rectContain(r,a)},e.prototype.traverse=function(r,a){r.call(a,this)},e.prototype.rectContain=function(r,a){var n=this.transformCoordToLocal(r,a),i=this.getBoundingRect();return i.contain(n[0],n[1])},e.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var a=this.transform,n=this.getBoundingRect(),i=this.style,o=i.shadowBlur||0,s=i.shadowOffsetX||0,l=i.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new oe(0,0,0,0)),a?oe.applyTransform(r,n,a):r.copy(n),(o||s||l)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+l-o));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+u*2),r.height=Math.ceil(r.height+1+u*2))}return r},e.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new oe(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(r){return this.animate("style",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(r,a){r!=="style"?t.prototype.attrKV.call(this,r,a):this.style?this.setStyle(a):this.useStyle(a)},e.prototype.setStyle=function(r,a){return typeof r=="string"?this.style[r]=a:H(this.style,r),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=so,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&so)},e.prototype.styleUpdated=function(){this.__dirty&=~so},e.prototype.createStyle=function(r){return zs(Ha,r)},e.prototype.useStyle=function(r){r[Gc]||(r=this.createStyle(r)),this.style=r,this.dirtyStyle()},e.prototype._useHoverStyle=function(r){this.__hoverStyle=r},e.prototype.isStyleObject=function(r){return r[Gc]},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var a=this._normalState;r.style&&!a.style&&(a.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,a,ly)},e.prototype._applyStateObj=function(r,a,n,i,o,s){t.prototype._applyStateObj.call(this,r,a,n,i,o,s);var l=!(a&&i),u=this.__inHover===fl,p;if(a&&a.style?o?i?p=a.style:(p=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(p,a.style)):(p=this._mergeStyle(this.createStyle(),i?this.style:n.style),this._mergeStyle(p,a.style)):l&&(p=n.style),p)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var f=he(c),h=0;h<f.length;h++){var d=f[h];d in p&&(p[d]=p[d],this.style[d]=c[d])}for(var v=he(p),h=0;h<v.length;h++){var d=v[h];this.style[d]=this.style[d]}this._transitionState(r,{style:p},s,this.getAnimationStyleProps())}else u?this._useHoverStyle(p):this.useStyle(p);if(!u)for(var m=this.__inHover?GC:ly,h=0;h<m.length;h++){var d=m[h];a&&a[d]!=null?this[d]=a[d]:l&&n[d]!=null&&(this[d]=n[d])}},e.prototype._mergeStates=function(r){for(var a=t.prototype._mergeStates.call(this,r),n,i=0;i<r.length;i++){var o=r[i];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(a.style=n),a},e.prototype._mergeStyle=function(r,a){return H(r,a),r},e.prototype.getAnimationStyleProps=function(){return dl},e.initDefaultProps=(function(){var r=e.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=0,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=tr|so})(),e})(hl),Wc=new oe(0,0,0,0),$c=new oe(0,0,0,0);function WC(t,e,r){return Wc.copy(t.getBoundingRect()),t.transform&&Wc.applyTransform(t.transform),$c.width=e,$c.height=r,!Wc.intersect($c)}var It=Math.min,Ot=Math.max,Yc=Math.sin,Kc=Math.cos,Va=Math.PI*2,vl=In(),gl=In(),ml=In();function uy(t,e,r,a,n,i){n[0]=It(t,r),n[1]=It(e,a),i[0]=Ot(t,r),i[1]=Ot(e,a)}var py=[],cy=[];function $C(t,e,r,a,n,i,o,s,l,u){var p=Fm,c=je,f=p(t,r,n,o,py);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<f;h++){var d=c(t,r,n,o,py[h]);l[0]=It(d,l[0]),u[0]=Ot(d,u[0])}f=p(e,a,i,s,cy);for(var h=0;h<f;h++){var v=c(e,a,i,s,cy[h]);l[1]=It(v,l[1]),u[1]=Ot(v,u[1])}l[0]=It(t,l[0]),u[0]=Ot(t,u[0]),l[0]=It(o,l[0]),u[0]=Ot(o,u[0]),l[1]=It(e,l[1]),u[1]=Ot(e,u[1]),l[1]=It(s,l[1]),u[1]=Ot(s,u[1])}function YC(t,e,r,a,n,i,o,s){var l=Hm,u=bt,p=Ot(It(l(t,r,n),1),0),c=Ot(It(l(e,a,i),1),0),f=u(t,r,n,p),h=u(e,a,i,c);o[0]=It(t,n,f),o[1]=It(e,i,h),s[0]=Ot(t,n,f),s[1]=Ot(e,i,h)}function KC(t,e,r,a,n,i,o,s,l){var u=Rn,p=Bn,c=Math.abs(n-i);if(c%Va<1e-4&&c>1e-4){s[0]=t-r,s[1]=e-a,l[0]=t+r,l[1]=e+a;return}if(vl[0]=Kc(n)*r+t,vl[1]=Yc(n)*a+e,gl[0]=Kc(i)*r+t,gl[1]=Yc(i)*a+e,u(s,vl,gl),p(l,vl,gl),n=n%Va,n<0&&(n=n+Va),i=i%Va,i<0&&(i=i+Va),n>i&&!o?i+=Va:n<i&&o&&(n+=Va),o){var f=i;i=n,n=f}for(var h=0;h<i;h+=Math.PI/2)h>n&&(ml[0]=Kc(h)*r+t,ml[1]=Yc(h)*a+e,u(s,ml,s),p(l,ml,l))}var we={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ua=[],Ga=[],Sr=[],ia=[],Tr=[],Cr=[],Xc=Math.min,qc=Math.max,Wa=Math.cos,$a=Math.sin,Hr=Math.abs,jc=Math.PI,oa=jc*2,Zc=typeof Float32Array<"u",uo=[];function Qc(t){var e=Math.round(t/jc*1e8)/1e8;return e%2*jc}function Jc(t,e){var r=Qc(t[0]);r<0&&(r+=oa);var a=r-t[0],n=t[1];n+=a,!e&&n-r>=oa?n=r+oa:e&&r-n>=oa?n=r-oa:!e&&r>n?n=r+(oa-Qc(r-n)):e&&r<n&&(n=r-(oa-Qc(n-r))),t[0]=r,t[1]=n}var sa=(function(){function t(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(e,r,a){a=a||0,a>0&&(this._ux=Hr(a/ay/e)||0,this._uy=Hr(a/ay/r)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,r){return this._drawPendingPt(),this.addData(we.M,e,r),this._ctx&&this._ctx.moveTo(e,r),this._x0=e,this._y0=r,this._xi=e,this._yi=r,this},t.prototype.lineTo=function(e,r){var a=Hr(e-this._xi),n=Hr(r-this._yi),i=a>this._ux||n>this._uy;if(this.addData(we.L,e,r),this._ctx&&i&&this._ctx.lineTo(e,r),i)this._xi=e,this._yi=r,this._pendingPtDist=0;else{var o=a*a+n*n;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=r,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(e,r,a,n,i,o){return this._drawPendingPt(),this.addData(we.C,e,r,a,n,i,o),this._ctx&&this._ctx.bezierCurveTo(e,r,a,n,i,o),this._xi=i,this._yi=o,this},t.prototype.quadraticCurveTo=function(e,r,a,n){return this._drawPendingPt(),this.addData(we.Q,e,r,a,n),this._ctx&&this._ctx.quadraticCurveTo(e,r,a,n),this._xi=a,this._yi=n,this},t.prototype.arc=function(e,r,a,n,i,o){this._drawPendingPt(),uo[0]=n,uo[1]=i,Jc(uo,o),n=uo[0],i=uo[1];var s=i-n;return this.addData(we.A,e,r,a,a,n,s,0,o?0:1),this._ctx&&this._ctx.arc(e,r,a,n,i,o),this._xi=Wa(i)*a+e,this._yi=$a(i)*a+r,this},t.prototype.arcTo=function(e,r,a,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,r,a,n,i),this},t.prototype.rect=function(e,r,a,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,r,a,n),this.addData(we.R,e,r,a,n),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(we.Z);var e=this._ctx,r=this._x0,a=this._y0;return e&&e.closePath(),this._xi=r,this._yi=a,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){if(this._saveData){var r=e.length;!(this.data&&this.data.length===r)&&Zc&&(this.data=new Float32Array(r));for(var a=0;a<r;a++)this.data[a]=e[a];this._len=r}},t.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var r=e.length,a=0,n=this._len,i=0;i<r;i++)a+=e[i].len();var o=this.data;if(Zc&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(n+a),n>0&&o))for(var s=0;s<n;s++)this.data[s]=o[s];for(var i=0;i<r;i++)for(var l=e[i].data,s=0;s<l.length;s++)this.data[n++]=l[s];this._len=n}},t.prototype.addData=function(e,r,a,n,i,o,s,l,u){if(this._saveData){var p=this.data;this._len+arguments.length>p.length&&(this._expandData(),p=this.data);for(var c=0;c<arguments.length;c++)p[this._len++]=arguments[c]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],r=0;r<this._len;r++)e[r]=this.data[r];this.data=e}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,Zc&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){Sr[0]=Sr[1]=Tr[0]=Tr[1]=Number.MAX_VALUE,ia[0]=ia[1]=Cr[0]=Cr[1]=-Number.MAX_VALUE;var e=this.data,r=0,a=0,n=0,i=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(r=e[o],a=e[o+1],n=r,i=a),s){case we.M:r=n=e[o++],a=i=e[o++],Tr[0]=n,Tr[1]=i,Cr[0]=n,Cr[1]=i;break;case we.L:uy(r,a,e[o],e[o+1],Tr,Cr),r=e[o++],a=e[o++];break;case we.C:$C(r,a,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],Tr,Cr),r=e[o++],a=e[o++];break;case we.Q:YC(r,a,e[o++],e[o++],e[o],e[o+1],Tr,Cr),r=e[o++],a=e[o++];break;case we.A:var u=e[o++],p=e[o++],c=e[o++],f=e[o++],h=e[o++],d=e[o++]+h;o+=1;var v=!e[o++];l&&(n=Wa(h)*c+u,i=$a(h)*f+p),KC(u,p,c,f,h,d,v,Tr,Cr),r=Wa(d)*c+u,a=$a(d)*f+p;break;case we.R:n=r=e[o++],i=a=e[o++];var m=e[o++],g=e[o++];uy(n,i,n+m,i+g,Tr,Cr);break;case we.Z:r=n,a=i;break}Rn(Sr,Sr,Tr),Bn(ia,ia,Cr)}return o===0&&(Sr[0]=Sr[1]=ia[0]=ia[1]=0),new oe(Sr[0],Sr[1],ia[0]-Sr[0],ia[1]-Sr[1])},t.prototype._calculateLength=function(){var e=this.data,r=this._len,a=this._ux,n=this._uy,i=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,p=0,c=0,f=0;f<r;){var h=e[f++],d=f===1;d&&(i=e[f],o=e[f+1],s=i,l=o);var v=-1;switch(h){case we.M:i=s=e[f++],o=l=e[f++];break;case we.L:{var m=e[f++],g=e[f++],y=m-i,b=g-o;(Hr(y)>a||Hr(b)>n||f===r-1)&&(v=Math.sqrt(y*y+b*b),i=m,o=g);break}case we.C:{var k=e[f++],w=e[f++],m=e[f++],g=e[f++],_=e[f++],x=e[f++];v=gC(i,o,k,w,m,g,_,x,10),i=_,o=x;break}case we.Q:{var k=e[f++],w=e[f++],m=e[f++],g=e[f++];v=bC(i,o,k,w,m,g,10),i=m,o=g;break}case we.A:var T=e[f++],C=e[f++],P=e[f++],S=e[f++],L=e[f++],D=e[f++],M=D+L;f+=1,d&&(s=Wa(L)*P+T,l=$a(L)*S+C),v=qc(P,S)*Xc(oa,Math.abs(D)),i=Wa(M)*P+T,o=$a(M)*S+C;break;case we.R:{s=i=e[f++],l=o=e[f++];var I=e[f++],E=e[f++];v=I*2+E*2;break}case we.Z:{var y=s-i,b=l-o;v=Math.sqrt(y*y+b*b),i=s,o=l;break}}v>=0&&(u[c++]=v,p+=v)}return this._pathLen=p,p},t.prototype.rebuildPath=function(e,r){var a=this.data,n=this._ux,i=this._uy,o=this._len,s,l,u,p,c,f,h=r<1,d,v,m=0,g=0,y,b=0,k,w;if(!(h&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,v=this._pathLen,y=r*v,!y)))e:for(var _=0;_<o;){var x=a[_++],T=_===1;switch(T&&(u=a[_],p=a[_+1],s=u,l=p),x!==we.L&&b>0&&(e.lineTo(k,w),b=0),x){case we.M:s=u=a[_++],l=p=a[_++],e.moveTo(u,p);break;case we.L:{c=a[_++],f=a[_++];var C=Hr(c-u),P=Hr(f-p);if(C>n||P>i){if(h){var S=d[g++];if(m+S>y){var L=(y-m)/S;e.lineTo(u*(1-L)+c*L,p*(1-L)+f*L);break e}m+=S}e.lineTo(c,f),u=c,p=f,b=0}else{var D=C*C+P*P;D>b&&(k=c,w=f,b=D)}break}case we.C:{var M=a[_++],I=a[_++],E=a[_++],O=a[_++],R=a[_++],B=a[_++];if(h){var S=d[g++];if(m+S>y){var L=(y-m)/S;js(u,M,E,R,L,Ua),js(p,I,O,B,L,Ga),e.bezierCurveTo(Ua[1],Ga[1],Ua[2],Ga[2],Ua[3],Ga[3]);break e}m+=S}e.bezierCurveTo(M,I,E,O,R,B),u=R,p=B;break}case we.Q:{var M=a[_++],I=a[_++],E=a[_++],O=a[_++];if(h){var S=d[g++];if(m+S>y){var L=(y-m)/S;Zs(u,M,E,L,Ua),Zs(p,I,O,L,Ga),e.quadraticCurveTo(Ua[1],Ga[1],Ua[2],Ga[2]);break e}m+=S}e.quadraticCurveTo(M,I,E,O),u=E,p=O;break}case we.A:var N=a[_++],F=a[_++],U=a[_++],Y=a[_++],z=a[_++],j=a[_++],ne=a[_++],De=!a[_++],Ee=U>Y?U:Y,de=Hr(U-Y)>.001,Ce=z+j,te=!1;if(h){var S=d[g++];m+S>y&&(Ce=z+j*(y-m)/S,te=!0),m+=S}if(de&&e.ellipse?e.ellipse(N,F,U,Y,ne,z,Ce,De):e.arc(N,F,Ee,z,Ce,De),te)break e;T&&(s=Wa(z)*U+N,l=$a(z)*Y+F),u=Wa(Ce)*U+N,p=$a(Ce)*Y+F;break;case we.R:s=u=a[_],l=p=a[_+1],c=a[_++],f=a[_++];var ue=a[_++],_t=a[_++];if(h){var S=d[g++];if(m+S>y){var Fe=y-m;e.moveTo(c,f),e.lineTo(c+Xc(Fe,ue),f),Fe-=ue,Fe>0&&e.lineTo(c+ue,f+Xc(Fe,_t)),Fe-=_t,Fe>0&&e.lineTo(c+qc(ue-Fe,0),f+_t),Fe-=ue,Fe>0&&e.lineTo(c,f+qc(_t-Fe,0));break e}m+=S}e.rect(c,f,ue,_t);break;case we.Z:if(h){var S=d[g++];if(m+S>y){var L=(y-m)/S;e.lineTo(u*(1-L)+s*L,p*(1-L)+l*L);break e}m+=S}e.closePath(),u=s,p=l}}},t.prototype.clone=function(){var e=new t,r=this.data;return e.data=r.slice?r.slice():Array.prototype.slice.call(r),e._len=this._len,e},t.prototype.canSave=function(){return!!this._saveData},t.CMD=we,t.initDefaultProps=(function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0})(),t})();function Wn(t,e,r,a,n,i,o){if(n===0)return!1;var s=n,l=0,u=t;if(o>e+s&&o>a+s||o<e-s&&o<a-s||i>t+s&&i>r+s||i<t-s&&i<r-s)return!1;if(t!==r)l=(e-a)/(t-r),u=(t*a-r*e)/(t-r);else return Math.abs(i-t)<=s/2;var p=l*i-o+u,c=p*p/(l*l+1);return c<=s/2*s/2}function XC(t,e,r,a,n,i,o,s,l,u,p){if(l===0)return!1;var c=l;if(p>e+c&&p>a+c&&p>i+c&&p>s+c||p<e-c&&p<a-c&&p<i-c&&p<s-c||u>t+c&&u>r+c&&u>n+c&&u>o+c||u<t-c&&u<r-c&&u<n-c&&u<o-c)return!1;var f=vC(t,e,r,a,n,i,o,s,u,p);return f<=c/2}function qC(t,e,r,a,n,i,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>a+u&&l>i+u||l<e-u&&l<a-u&&l<i-u||s>t+u&&s>r+u&&s>n+u||s<t-u&&s<r-u&&s<n-u)return!1;var p=yC(t,e,r,a,n,i,s,l);return p<=u/2}var fy=Math.PI*2;function yl(t){return t%=fy,t<0&&(t+=fy),t}var po=Math.PI*2;function jC(t,e,r,a,n,i,o,s,l){if(o===0)return!1;var u=o;s-=t,l-=e;var p=Math.sqrt(s*s+l*l);if(p-u>r||p+u<r)return!1;if(Math.abs(a-n)%po<1e-4)return!0;if(i){var c=a;a=yl(n),n=yl(c)}else a=yl(a),n=yl(n);a>n&&(n+=po);var f=Math.atan2(l,s);return f<0&&(f+=po),f>=a&&f<=n||f+po>=a&&f+po<=n}function Ya(t,e,r,a,n,i){if(i>e&&i>a||i<e&&i<a||a===e)return 0;var o=(i-e)/(a-e),s=a<e?1:-1;(o===1||o===0)&&(s=a<e?.5:-.5);var l=o*(r-t)+t;return l===n?1/0:l>n?s:0}var la=sa.CMD,Ka=Math.PI*2,ZC=1e-4;function QC(t,e){return Math.abs(t-e)<ZC}var lt=[-1,-1,-1],Rt=[-1,-1];function JC(){var t=Rt[0];Rt[0]=Rt[1],Rt[1]=t}function eD(t,e,r,a,n,i,o,s,l,u){if(u>e&&u>a&&u>i&&u>s||u<e&&u<a&&u<i&&u<s)return 0;var p=qs(e,a,i,s,u,lt);if(p===0)return 0;for(var c=0,f=-1,h=void 0,d=void 0,v=0;v<p;v++){var m=lt[v],g=m===0||m===1?.5:1,y=je(t,r,n,o,m);y<l||(f<0&&(f=Fm(e,a,i,s,Rt),Rt[1]<Rt[0]&&f>1&&JC(),h=je(e,a,i,s,Rt[0]),f>1&&(d=je(e,a,i,s,Rt[1]))),f===2?m<Rt[0]?c+=h<e?g:-g:m<Rt[1]?c+=d<h?g:-g:c+=s<d?g:-g:m<Rt[0]?c+=h<e?g:-g:c+=s<h?g:-g)}return c}function tD(t,e,r,a,n,i,o,s){if(s>e&&s>a&&s>i||s<e&&s<a&&s<i)return 0;var l=mC(e,a,i,s,lt);if(l===0)return 0;var u=Hm(e,a,i);if(u>=0&&u<=1){for(var p=0,c=bt(e,a,i,u),f=0;f<l;f++){var h=lt[f]===0||lt[f]===1?.5:1,d=bt(t,r,n,lt[f]);d<o||(lt[f]<u?p+=c<e?h:-h:p+=i<c?h:-h)}return p}else{var h=lt[0]===0||lt[0]===1?.5:1,d=bt(t,r,n,lt[0]);return d<o?0:i<e?h:-h}}function rD(t,e,r,a,n,i,o,s){if(s-=e,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);lt[0]=-l,lt[1]=l;var u=Math.abs(a-n);if(u<1e-4)return 0;if(u>=Ka-1e-4){a=0,n=Ka;var p=i?1:-1;return o>=lt[0]+t&&o<=lt[1]+t?p:0}if(a>n){var c=a;a=n,n=c}a<0&&(a+=Ka,n+=Ka);for(var f=0,h=0;h<2;h++){var d=lt[h];if(d+t>o){var v=Math.atan2(s,d),p=i?1:-1;v<0&&(v=Ka+v),(v>=a&&v<=n||v+Ka>=a&&v+Ka<=n)&&(v>Math.PI/2&&v<Math.PI*1.5&&(p=-p),f+=p)}}return f}function hy(t,e,r,a,n){for(var i=t.data,o=t.len(),s=0,l=0,u=0,p=0,c=0,f,h,d=0;d<o;){var v=i[d++],m=d===1;switch(v===la.M&&d>1&&(r||(s+=Ya(l,u,p,c,a,n))),m&&(l=i[d],u=i[d+1],p=l,c=u),v){case la.M:p=i[d++],c=i[d++],l=p,u=c;break;case la.L:if(r){if(Wn(l,u,i[d],i[d+1],e,a,n))return!0}else s+=Ya(l,u,i[d],i[d+1],a,n)||0;l=i[d++],u=i[d++];break;case la.C:if(r){if(XC(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],e,a,n))return!0}else s+=eD(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],a,n)||0;l=i[d++],u=i[d++];break;case la.Q:if(r){if(qC(l,u,i[d++],i[d++],i[d],i[d+1],e,a,n))return!0}else s+=tD(l,u,i[d++],i[d++],i[d],i[d+1],a,n)||0;l=i[d++],u=i[d++];break;case la.A:var g=i[d++],y=i[d++],b=i[d++],k=i[d++],w=i[d++],_=i[d++];d+=1;var x=!!(1-i[d++]);f=Math.cos(w)*b+g,h=Math.sin(w)*k+y,m?(p=f,c=h):s+=Ya(l,u,f,h,a,n);var T=(a-g)*k/b+g;if(r){if(jC(g,y,k,w,w+_,x,e,T,n))return!0}else s+=rD(g,y,k,w,w+_,x,T,n);l=Math.cos(w+_)*b+g,u=Math.sin(w+_)*k+y;break;case la.R:p=l=i[d++],c=u=i[d++];var C=i[d++],P=i[d++];if(f=p+C,h=c+P,r){if(Wn(p,c,f,c,e,a,n)||Wn(f,c,f,h,e,a,n)||Wn(f,h,p,h,e,a,n)||Wn(p,h,p,c,e,a,n))return!0}else s+=Ya(f,c,f,h,a,n),s+=Ya(p,h,p,c,a,n);break;case la.Z:if(r){if(Wn(l,u,p,c,e,a,n))return!0}else s+=Ya(l,u,p,c,a,n);l=p,u=c;break}}return!r&&!QC(u,c)&&(s+=Ya(l,u,p,c,a,n)||0),s!==0}function aD(t,e,r){return hy(t,0,!1,e,r)}function nD(t,e,r,a){return hy(t,e,!0,r,a)}var bl=pe({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Ha),iD={style:pe({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},dl.style)},ef=$s.concat(["invisible","culling","z","z2","zlevel","parent"]),me=(function(t){V(e,t);function e(r){return t.call(this,r)||this}return e.prototype.update=function(){var r=this;t.prototype.update.call(this);var a=this.style;if(a.decal){var n=this._decalEl=this._decalEl||new e;n.buildPath===e.prototype.buildPath&&(n.buildPath=function(l){r.buildPath(l,r.shape)}),n.silent=!0;var i=n.style;for(var o in a)i[o]!==a[o]&&(i[o]=a[o]);i.fill=a.fill?a.decal:null,i.decal=null,i.shadowColor=null,a.strokeFirst&&(i.stroke=null);for(var s=0;s<ef.length;++s)n[ef[s]]=this[ef[s]];n.__dirty|=tr}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(r){var a=he(r);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var i=0;i<a.length;i++){var o=a[i],s=r[o];o==="style"?this.style?H(this.style,s):this.useStyle(s):o==="shape"?H(this.shape,s):t.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(q(r)){var a=el(r,0);return a>.5?Nc:a>.2?BC:Fc}else if(r)return Fc}return Nc},e.prototype.getInsideTextStroke=function(r){var a=this.style.fill;if(q(a)){var n=this.__zr,i=!!(n&&n.isDarkMode()),o=el(r,0)<Bc;if(i===o)return a}},e.prototype.buildPath=function(r,a,n){},e.prototype.pathUpdated=function(){this.__dirty&=~Un},e.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},e.prototype.createPathProxy=function(){this.path=new sa(!1)},e.prototype.hasStroke=function(){var r=this.style,a=r.stroke;return!(a==null||a==="none"||!(r.lineWidth>0))},e.prototype.hasFill=function(){var r=this.style,a=r.fill;return a!=null&&a!=="none"},e.prototype.getBoundingRect=function(){var r=this._rect,a=this.style,n=!r;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&Un)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||n){s.copy(r);var l=a.strokeNoScale?this.getLineScale():1,u=a.lineWidth;if(!this.hasFill()){var p=this.strokeContainThreshold;u=Math.max(u,p??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},e.prototype.contain=function(r,a){var n=this.transformCoordToLocal(r,a),i=this.getBoundingRect(),o=this.style;if(r=n[0],a=n[1],i.contain(r,a)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),nD(s,l/u,r,a)))return!0}if(this.hasFill())return aD(s,r,a)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Un,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(r){return this.animate("shape",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(r,a){r==="shape"?this.setShape(a):t.prototype.attrKV.call(this,r,a)},e.prototype.setShape=function(r,a){var n=this.shape;return n||(n=this.shape={}),typeof r=="string"?n[r]=a:H(n,r),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Un)},e.prototype.createStyle=function(r){return zs(bl,r)},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var a=this._normalState;r.shape&&!a.shape&&(a.shape=H({},this.shape))},e.prototype._applyStateObj=function(r,a,n,i,o,s){if(t.prototype._applyStateObj.call(this,r,a,n,i,o,s),this.__inHover!==fl){var l=!(a&&i),u;if(a&&a.shape?o?i?u=a.shape:(u=H({},n.shape),H(u,a.shape)):(u=H({},i?this.shape:n.shape),H(u,a.shape)):l&&(u=n.shape),u)if(o){this.shape=H({},this.shape);for(var p={},c=he(u),f=0;f<c.length;f++){var h=c[f];typeof u[h]=="object"?this.shape[h]=u[h]:p[h]=u[h]}this._transitionState(r,{shape:p},s)}else this.shape=u,this.dirtyShape()}},e.prototype._mergeStates=function(r){for(var a=t.prototype._mergeStates.call(this,r),n,i=0;i<r.length;i++){var o=r[i];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(a.shape=n),a},e.prototype.getAnimationStyleProps=function(){return iD},e.prototype.isZeroArea=function(){return!1},e.extend=function(r){var a=(function(i){V(o,i);function o(s){var l=i.call(this,s)||this;return r.init&&r.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return le(r.style)},o.prototype.getDefaultShape=function(){return le(r.shape)},o})(e);for(var n in r)typeof r[n]=="function"&&(a.prototype[n]=r[n]);return a},e.initDefaultProps=(function(){var r=e.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=tr|so|Un})(),e})(lo),oD=pe({strokeFirst:!0,font:Nr,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},bl),co=(function(t){V(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.hasStroke=function(){return Mm(this.style)},e.prototype.hasFill=function(){var r=this.style,a=r.fill;return a!=null&&a!=="none"},e.prototype.createStyle=function(r){return zs(oD,r)},e.prototype.setBoundingRect=function(r){this._rect=r},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=hC(this.style)),this._rect},e.initDefaultProps=(function(){var r=e.prototype;r.dirtyRectTolerance=10})(),e})(lo);co.prototype.type="tspan";var sD=pe({x:0,y:0},Ha),lD={style:pe({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},dl.style)};function uD(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var Bt=(function(t){V(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(r){return zs(sD,r)},e.prototype._getSize=function(r){var a=this.style,n=a[r];if(n!=null)return n;var i=uD(a.image)?a.image:this.__image;if(!i)return 0;var o=r==="width"?"height":"width",s=a[o];return s==null?i[r]:i[r]/i[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return lD},e.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new oe(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},e})(lo);Bt.prototype.type="image";function pD(t,e){var r=e.x,a=e.y,n=e.width,i=e.height,o=e.r,s,l,u,p;n<0&&(r=r+n,n=-n),i<0&&(a=a+i,i=-i),typeof o=="number"?s=l=u=p=o:o instanceof Array?o.length===1?s=l=u=p=o[0]:o.length===2?(s=u=o[0],l=p=o[1]):o.length===3?(s=o[0],l=p=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],p=o[3]):s=l=u=p=0;var c;s+l>n&&(c=s+l,s*=n/c,l*=n/c),u+p>n&&(c=u+p,u*=n/c,p*=n/c),l+u>i&&(c=l+u,l*=i/c,u*=i/c),s+p>i&&(c=s+p,s*=i/c,p*=i/c),t.moveTo(r+s,a),t.lineTo(r+n-l,a),l!==0&&t.arc(r+n-l,a+l,l,-Math.PI/2,0),t.lineTo(r+n,a+i-u),u!==0&&t.arc(r+n-u,a+i-u,u,0,Math.PI/2),t.lineTo(r+p,a+i),p!==0&&t.arc(r+p,a+i-p,p,Math.PI/2,Math.PI),t.lineTo(r,a+s),s!==0&&t.arc(r+s,a+s,s,Math.PI,Math.PI*1.5),t.closePath()}var $n=Math.round;function dy(t,e,r){if(e){var a=e.x1,n=e.x2,i=e.y1,o=e.y2;t.x1=a,t.x2=n,t.y1=i,t.y2=o;var s=r&&r.lineWidth;return s&&($n(a*2)===$n(n*2)&&(t.x1=t.x2=Xa(a,s,!0)),$n(i*2)===$n(o*2)&&(t.y1=t.y2=Xa(i,s,!0))),t}}function vy(t,e,r){if(e){var a=e.x,n=e.y,i=e.width,o=e.height;t.x=a,t.y=n,t.width=i,t.height=o;var s=r&&r.lineWidth;return s&&(t.x=Xa(a,s,!0),t.y=Xa(n,s,!0),t.width=Math.max(Xa(a+i,s,!1)-t.x,i===0?0:1),t.height=Math.max(Xa(n+o,s,!1)-t.y,o===0?0:1)),t}}function Xa(t,e,r){if(!e)return t;var a=$n(t*2);return(a+$n(e))%2===0?a/2:(a+(r?1:-1))/2}var cD=(function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t})(),fD={},Ie=(function(t){V(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new cD},e.prototype.buildPath=function(r,a){var n,i,o,s;if(this.subPixelOptimize){var l=vy(fD,a,this.style);n=l.x,i=l.y,o=l.width,s=l.height,l.r=a.r,a=l}else n=a.x,i=a.y,o=a.width,s=a.height;a.r?pD(r,a):r.rect(n,i,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e})(me);Ie.prototype.type="rect";var gy={fill:"#000"},my=2,Dr={},hD={style:pe({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},dl.style)},Oe=(function(t){V(e,t);function e(r){var a=t.call(this)||this;return a.type="text",a._children=[],a._defaultStyle=gy,a.attr(r),a}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var a=this._children[r];a.zlevel=this.zlevel,a.z=this.z,a.z2=this.z2,a.culling=this.culling,a.cursor=this.cursor,a.invisible=this.invisible}},e.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(r){var a=this.innerTransformable;return a?a.getLocalTransform(r):t.prototype.getLocalTransform.call(this,r)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,gD(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var a=0;a<this._children.length;a++)this._children[a].__zr=r},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var a=0;a<this._children.length;a++)this._children[a].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new oe(0,0,0,0),a=this._children,n=[],i=null,o=0;o<a.length;o++){var s=a[o],l=s.getBoundingRect(),u=s.getLocalTransform(n);u?(r.copy(l),r.applyTransform(u),i=i||r.clone(),i.union(r)):(i=i||l.clone(),i.union(l))}this._rect=i||r}return this._rect},e.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||gy},e.prototype.setTextContent=function(r){},e.prototype._mergeStyle=function(r,a){if(!a)return r;var n=a.rich,i=r.rich||n&&{};return H(r,a),n&&i?(this._mergeRich(i,n),r.rich=i):i&&(r.rich=i),r},e.prototype._mergeRich=function(r,a){for(var n=he(a),i=0;i<n.length;i++){var o=n[i];r[o]=r[o]||{},H(r[o],a[o])}},e.prototype.getAnimationStyleProps=function(){return hD},e.prototype._getOrCreateChild=function(r){var a=this._children[this._childCursor];return(!a||!(a instanceof r))&&(a=new r),this._children[this._childCursor++]=a,a.__zr=this.__zr,a.parent=this,a},e.prototype._updatePlainTexts=function(){var r=this.style,a=r.font||Nr,n=r.padding,i=this._defaultStyle,o=r.x||0,s=r.y||0,l=r.align||i.align||"left",u=r.verticalAlign||i.verticalAlign||"top";Dm(Dr,i.overflowRect,o,s,l,u),o=Dr.baseX,s=Dr.baseY;var p=Ty(r),c=oC(p,r,Dr.outerWidth,Dr.outerHeight),f=tf(r),h=!!r.backgroundColor,d=c.outerHeight,v=c.outerWidth,m=c.lines,g=c.lineHeight;this.isTruncated=!!c.isTruncated;var y=o,b=Ra(s,c.contentHeight,u);if(f||n){var k=Fn(o,v,l),w=Ra(s,d,u);f&&this._renderBackground(r,r,k,w,v,d)}b+=g/2,n&&(y=Sy(o,l,n),u==="top"?b+=n[0]:u==="bottom"&&(b-=n[2]));for(var _=0,x=!1,T=!1,C=Py("fill"in r?r.fill:(T=!0,i.fill)),P=xy("stroke"in r?r.stroke:!h&&(!i.autoStroke||T)?(_=my,x=!0,i.stroke):null),S=r.textShadowBlur>0,L=0;L<m.length;L++){var D=this._getOrCreateChild(co),M=D.createStyle();D.useStyle(M),M.text=m[L],M.x=y,M.y=b,M.textAlign=l,M.textBaseline="middle",M.opacity=r.opacity,M.strokeFirst=!0,S&&(M.shadowBlur=r.textShadowBlur||0,M.shadowColor=r.textShadowColor||"transparent",M.shadowOffsetX=r.textShadowOffsetX||0,M.shadowOffsetY=r.textShadowOffsetY||0),M.stroke=P,M.fill=C,P&&(M.lineWidth=r.lineWidth||_,M.lineDash=r.lineDash,M.lineDashOffset=r.lineDashOffset||0),M.font=a,ky(M,r),b+=g,D.setBoundingRect(yc(M,c.contentWidth,c.calculatedLineHeight,x?0:null))}},e.prototype._updateRichTexts=function(){var r=this.style,a=this._defaultStyle,n=r.align||a.align,i=r.verticalAlign||a.verticalAlign,o=r.x||0,s=r.y||0;Dm(Dr,a.overflowRect,o,s,n,i),o=Dr.baseX,s=Dr.baseY;var l=Ty(r),u=uC(l,r,Dr.outerWidth,Dr.outerHeight,n),p=u.width,c=u.outerWidth,f=u.outerHeight,h=r.padding;this.isTruncated=!!u.isTruncated;var d=Fn(o,c,n),v=Ra(s,f,i),m=d,g=v;h&&(m+=h[3],g+=h[0]);var y=m+p;tf(r)&&this._renderBackground(r,r,d,v,c,f);for(var b=!!r.backgroundColor,k=0;k<u.lines.length;k++){for(var w=u.lines[k],_=w.tokens,x=_.length,T=w.lineHeight,C=w.width,P=0,S=m,L=y,D=x-1,M=void 0;P<x&&(M=_[P],!M.align||M.align==="left");)this._placeToken(M,r,T,g,S,"left",b),C-=M.width,S+=M.width,P++;for(;D>=0&&(M=_[D],M.align==="right");)this._placeToken(M,r,T,g,L,"right",b),C-=M.width,L-=M.width,D--;for(S+=(p-(S-m)-(y-L)-C)/2;P<=D;)M=_[P],this._placeToken(M,r,T,g,S+M.width/2,"center",b),S+=M.width,P++;g+=T}},e.prototype._placeToken=function(r,a,n,i,o,s,l){var u=a.rich[r.styleName]||{};u.text=r.text;var p=r.verticalAlign,c=i+n/2;p==="top"?c=i+r.height/2:p==="bottom"&&(c=i+n-r.height/2);var f=!r.isLineHolder&&tf(u);f&&this._renderBackground(u,a,s==="right"?o-r.width:s==="center"?o-r.width/2:o,c-r.height/2,r.width,r.height);var h=!!u.backgroundColor,d=r.textPadding;d&&(o=Sy(o,s,d),c-=r.height/2-d[0]-r.innerHeight/2);var v=this._getOrCreateChild(co),m=v.createStyle();v.useStyle(m);var g=this._defaultStyle,y=!1,b=0,k=!1,w=Py("fill"in u?u.fill:"fill"in a?a.fill:(y=!0,g.fill)),_=xy("stroke"in u?u.stroke:"stroke"in a?a.stroke:!h&&!l&&(!g.autoStroke||y)?(b=my,k=!0,g.stroke):null),x=u.textShadowBlur>0||a.textShadowBlur>0;m.text=r.text,m.x=o,m.y=c,x&&(m.shadowBlur=u.textShadowBlur||a.textShadowBlur||0,m.shadowColor=u.textShadowColor||a.textShadowColor||"transparent",m.shadowOffsetX=u.textShadowOffsetX||a.textShadowOffsetX||0,m.shadowOffsetY=u.textShadowOffsetY||a.textShadowOffsetY||0),m.textAlign=s,m.textBaseline="middle",m.font=r.font||Nr,m.opacity=Da(u.opacity,a.opacity,1),ky(m,u),_&&(m.lineWidth=Da(u.lineWidth,a.lineWidth,b),m.lineDash=Z(u.lineDash,a.lineDash),m.lineDashOffset=a.lineDashOffset||0,m.stroke=_),w&&(m.fill=w),v.setBoundingRect(yc(m,r.contentWidth,r.contentHeight,k?0:null))},e.prototype._renderBackground=function(r,a,n,i,o,s){var l=r.backgroundColor,u=r.borderWidth,p=r.borderColor,c=l&&l.image,f=l&&!c,h=r.borderRadius,d=this,v,m;if(f||r.lineHeight||u&&p){v=this._getOrCreateChild(Ie),v.useStyle(v.createStyle()),v.style.fill=null;var g=v.shape;g.x=n,g.y=i,g.width=o,g.height=s,g.r=h,v.dirtyShape()}if(f){var y=v.style;y.fill=l||null,y.fillOpacity=Z(r.fillOpacity,1)}else if(c){m=this._getOrCreateChild(Bt),m.onload=function(){d.dirtyStyle()};var b=m.style;b.image=l.image,b.x=n,b.y=i,b.width=o,b.height=s}if(u&&p){var y=v.style;y.lineWidth=u,y.stroke=p,y.strokeOpacity=Z(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,v.strokeContainThreshold=0,v.hasFill()&&v.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var k=(v||m).style;k.shadowBlur=r.shadowBlur||0,k.shadowColor=r.shadowColor||"transparent",k.shadowOffsetX=r.shadowOffsetX||0,k.shadowOffsetY=r.shadowOffsetY||0,k.opacity=Da(r.opacity,a.opacity,1)},e.makeFont=function(r){var a="";return wy(r)&&(a=[r.fontStyle,r.fontWeight,by(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),a&&br(a)||r.textFont||r.font},e})(lo),dD={left:!0,right:1,center:1},vD={top:1,bottom:1,middle:1},yy=["fontStyle","fontWeight","fontSize","fontFamily"];function by(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?$p+"px":t+"px"}function ky(t,e){for(var r=0;r<yy.length;r++){var a=yy[r],n=e[a];n!=null&&(t[a]=n)}}function wy(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function gD(t){return _y(t),A(t.rich,_y),t}function _y(t){if(t){t.font=Oe.makeFont(t);var e=t.align;e==="middle"&&(e="center"),t.align=e==null||dD[e]?e:"left";var r=t.verticalAlign;r==="center"&&(r="middle"),t.verticalAlign=r==null||vD[r]?r:"top";var a=t.padding;a&&(t.padding=Qp(t.padding))}}function xy(t,e){return t==null||e<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function Py(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function Sy(t,e,r){return e==="right"?t-r[1]:e==="center"?t+r[3]/2-r[1]/2:t+r[3]}function Ty(t){var e=t.text;return e!=null&&(e+=""),e}function tf(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var Cy=1e-4,Dy=20,mD=14;function yD(t){return t.replace(/^\s+|\s+$/g,"")}var et=Math.min,ye=Math.max,Ve=Math.abs,Vr=Math.round,qa=Math.floor,fo=Math.ceil,ja=Math.pow,ho=Math.log,rf=Math.LN10,bD=Math.PI,kD=Math.random;function Nt(t,e,r,a){var n=e[0],i=e[1],o=r[0],s=r[1],l=i-n,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(a)if(l>0){if(t<=n)return o;if(t>=i)return s}else{if(t>=n)return o;if(t<=i)return s}else{if(t===n)return o;if(t===i)return s}return(t-n)/l*u+o}var ee=wD;function wD(t,e,r){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return af(t,e,r)}function af(t,e,r){return q(t)?_D(t)?parseFloat(t)/100*e+(r||0):parseFloat(t):t==null?NaN:+t}function _D(t){return!!yD(t).match(/%$/)}function ve(t,e,r){return isNaN(e)?r?""+t:+t:(e=et(ye(0,e),Dy),t=(+t).toFixed(e),r?t:+t)}function nf(t){return t.sort(function(e,r){return e-r}),t}function ua(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var e=1,r=0;r<15;r++,e*=10)if(Vr(t*e)/e===t)return r}return xD(t)}function xD(t){var e=t.toString().toLowerCase(),r=e.indexOf("e"),a=r>0?+e.slice(r+1):0,n=r>0?r:e.length,i=e.indexOf("."),o=i<0?0:n-1-i;return ye(0,o-a)}function PD(t,e,r){var a=Ve(t[1]-t[0]);if(!isFinite(a)||a===0)return NaN;var n=ho(2*Ve(r||1)*Ve(a))/rf,i=ho(Ve(e))/rf,o=ye(0,fo(-n+i));return isFinite(o)||(o=NaN),o}function SD(t,e){var r=ea(t,function(h,d){return h+(isNaN(d)?0:d)},0);if(r===0)return[];for(var a=ja(10,e),n=K(t,function(h){return(isNaN(h)?0:h)/r*a*100}),i=a*100,o=K(n,function(h){return qa(h)}),s=ea(o,function(h,d){return h+d},0),l=K(n,function(h,d){return h-o[d]});s<i;){for(var u=Number.NEGATIVE_INFINITY,p=null,c=0,f=l.length;c<f;++c)l[c]>u&&(u=l[c],p=c);++o[p],l[p]=0,++s}return K(o,function(h){return h/a})}function TD(t,e){var r=ye(ua(t),ua(e)),a=t+e;return r>Dy?a:ve(a,r)}var Ay=ja(2,53)-1;function Ly(t){var e=bD*2;return(t%e+e)%e}function kl(t){return t>-Cy&&t<Cy}var CD=/^(?:(\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 Yn(t){if(t instanceof Date)return t;if(q(t)){var e=CD.exec(t);if(!e)return new Date(NaN);if(e[8]){var r=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(r-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,r,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(t==null)return new Date(NaN);return new Date(Vr(t))}function My(t){return ja(10,of(t))}function of(t){if(t===0)return 0;var e=qa(ho(t)/rf);return t/ja(10,e)>=10&&e++,e}var Ey=2;function sf(t,e){var r=of(t),a=ja(10,r),n=t/a,i;return e===Ey?i=1:e?n<1.5?i=1:n<2.5?i=2:n<4?i=3:n<7?i=5:i=10:n<1?i=1:n<2?i=2:n<3?i=3:n<5?i=5:i=10,t=i*a,ve(t,-r)}function wl(t){var e=parseFloat(t);return e==t&&(e!==0||!q(t)||t.indexOf("x")<=0)?e:NaN}function DD(t){return!isNaN(wl(t))}function lf(){return Vr(kD()*9)}function Iy(t,e){return e===0?t:Iy(e,t%e)}function Oy(t,e){return t==null?e:e==null?t:t*e/Iy(t,e)}function Ft(t){return t!=null&&isFinite(t)}var AD="[ECharts] ",LD=typeof console<"u"&&console.warn&&console.log;function MD(t,e,r){LD&&console[t](AD+e)}function Ry(t,e){MD("error",t)}function kt(t){throw new Error(t)}function By(t,e,r){return(e-t)*r+t}var Ny="series\0",ED="\0_ec_\0";function ut(t){return t instanceof Array?t:t==null?[]:[t]}function _l(t,e,r){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var a=0,n=r.length;a<n;a++){var i=r[a];!t.emphasis[e].hasOwnProperty(i)&&t[e].hasOwnProperty(i)&&(t.emphasis[e][i]=t[e][i])}}}var Fy=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function vo(t){return J(t)&&!W(t)&&!(t instanceof Date)?t.value:t}function ID(t){return J(t)&&!(t instanceof Array)}function OD(t,e,r){var a=r==="normalMerge",n=r==="replaceMerge",i=r==="replaceAll";t=t||[],e=(e||[]).slice();var o=ae();A(e,function(l,u){if(!J(l)){e[u]=null;return}});var s=RD(t,o,r);return(a||n)&&BD(s,t,o,e),a&&ND(s,e),a||n?FD(s,e,n):i&&zD(s,e),HD(s),s}function RD(t,e,r){var a=[];if(r==="replaceAll")return a;for(var n=0;n<t.length;n++){var i=t[n];i&&i.id!=null&&e.set(i.id,n),a.push({existing:r==="replaceMerge"||mo(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return a}function BD(t,e,r,a){A(a,function(n,i){if(!(!n||n.id==null)){var o=go(n.id),s=r.get(o);if(s!=null){var l=t[s];Jt(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=n,l.existing=e[s],a[i]=null}}})}function ND(t,e){A(e,function(r,a){if(!(!r||r.name==null))for(var n=0;n<t.length;n++){var i=t[n].existing;if(!t[n].newOption&&i&&(i.id==null||r.id==null)&&!mo(r)&&!mo(i)&&zy("name",i,r)){t[n].newOption=r,e[a]=null;return}}})}function FD(t,e,r){A(e,function(a){if(a){for(var n,i=0;(n=t[i])&&(n.newOption||mo(n.existing)||n.existing&&a.id!=null&&!zy("id",a,n.existing));)i++;n?(n.newOption=a,n.brandNew=r):t.push({newOption:a,brandNew:r,existing:null,keyInfo:null}),i++}})}function zD(t,e){A(e,function(r){t.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function HD(t){var e=ae();A(t,function(r){var a=r.existing;a&&e.set(a.id,r)}),A(t,function(r){var a=r.newOption;Jt(!a||a.id==null||!e.get(a.id)||e.get(a.id)===r,"id duplicates: "+(a&&a.id)),a&&a.id!=null&&e.set(a.id,r),!r.keyInfo&&(r.keyInfo={})}),A(t,function(r,a){var n=r.existing,i=r.newOption,o=r.keyInfo;if(J(i)){if(o.name=i.name!=null?go(i.name):n?n.name:Ny+a,n)o.id=go(n.id);else if(i.id!=null)o.id=go(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,r)}})}function zy(t,e,r){var a=Ar(e[t],null),n=Ar(r[t],null);return a!=null&&n!=null&&a===n}function go(t){return Ar(t,"")}function Ar(t,e){return t==null?e:q(t)?t:be(t)||qp(t)?t+"":e}function uf(t){var e=t.name;return!!(e&&e.indexOf(Ny))}function mo(t){return t&&t.id!=null&&go(t.id).indexOf(ED)===0}function VD(t,e,r){A(t,function(a){var n=a.newOption;J(n)&&(a.keyInfo.mainType=e,a.keyInfo.subType=UD(e,n,a.existing,r))})}function UD(t,e,r,a){var n=e.type?e.type:r?r.subType:a.determineSubType(t,e);return n}function Za(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return W(e.dataIndex)?K(e.dataIndex,function(r){return t.indexOfRawIndex(r)}):t.indexOfRawIndex(e.dataIndex);if(e.name!=null)return W(e.name)?K(e.name,function(r){return t.indexOfName(r)}):t.indexOfName(e.name)}function _e(){var t="__ec_inner_"+GD++;return function(e){return e[t]||(e[t]={})}}var GD=lf();function pf(t,e,r){var a=cf(e,r),n=a.mainTypeSpecified,i=a.queryOptionMap,o=a.others,s=o,l=r?r.defaultMainType:null;return!n&&l&&i.set(l,{}),i.each(function(u,p){var c=yo(t,p,u,{useDefault:l===p,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[p+"Models"]=c.models,s[p+"Model"]=c.models[0]}),s}function cf(t,e){var r;if(q(t)){var a={};a[t+"Index"]=0,r=a}else r=t;var n=ae(),i={},o=!1;return A(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],p=u[1],c=(u[2]||"").toLowerCase();if(!(!p||!c||e&&e.includeMainTypes&&fe(e.includeMainTypes,p)<0)){o=o||!!p;var f=n.get(p)||n.set(p,{});f[c]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:i}}var zt={useDefault:!0,enableAll:!1,enableNone:!1};function yo(t,e,r,a){a=a||zt;var n=r.index,i=r.id,o=r.name,s={models:null,specified:n!=null||i!=null||o!=null};if(!s.specified){var l=void 0;return s.models=a.useDefault&&(l=t.getComponent(e))?[l]:[],s}if(n==="none"||n===!1){if(a.enableNone)return s.models=[],s;n=-1}return n==="all"&&(a.enableAll?n=i=o=null:n=-1),s.models=t.queryComponents({mainType:e,index:n,id:i,name:o}),s}function WD(t,e,r){var a={};a[e+"Id"]=t[e+"Id"],a[e+"Index"]=t[e+"Index"],a[e+"Name"]=t[e+"Name"];var n={mainType:e,query:a};return r&&(n.subType=r),n}function Hy(t,e,r){t.setAttribute?t.setAttribute(e,r):t[e]=r}function $D(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function YD(t){return t==="auto"?se.domSupported?"html":"richText":t||"html"}function Vy(t,e,r,a,n){var i=e==null||e==="auto";if(a==null)return a;if(be(a)){var o=By(r||0,a,n);return ve(o,i?Math.max(ua(r||0),ua(a)):e)}else{if(q(a))return n<1?r:a;for(var s=[],l=r,u=a,p=Math.max(l?l.length:0,u.length),c=0;c<p;++c){var f=t.getDimensionInfo(c);if(f&&f.type==="ordinal")s[c]=(n<1&&l?l:u)[c];else{var h=l&&l[c]?l[c]:0,d=u[c],o=By(h,d,n);s[c]=ve(o,i?Math.max(ua(h),ua(d)):e)}}return s}}function Ht(){return[1/0,-1/0]}function ff(t,e){Ur(e)&&(e<t[0]&&(t[0]=e),e>t[1]&&(t[1]=e))}function Uy(t,e){Ur(e)&&e<t[0]&&(t[0]=e)}function Gy(t,e){Ur(e)&&e>t[1]&&(t[1]=e)}function KD(t,e){Kn(e[0],e[1])&&(e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]))}function Ur(t){return t!=null&&isFinite(t)}function Kn(t,e){return Ur(t)&&Ur(e)&&t<=e}function XD(t){var e=t[1]-t[0];return isFinite(e)&&e>=0}function qD(t){Kn(t[0],t[1])&&t[0]>t[1]&&(t[0]=t[1])}function Wy(){var t="__ec_once_"+jD++;return function(e,r){st(e,t)||(e[t]=1,r())}}var jD=lf();function hf(t,e,r){var a=ae(),n=0;A(t,function(i){var o=e(i),s=a.get(o)||0;r&&r(i,s),!s&&!r&&(t[n++]=i),a.set(o,s+1)}),r||(t.length=n)}function ZD(t){return t.value+""}function QD(t){return t+""}function $y(t,e){return Z(e,!0)?t.seriesIndex+2:0}function Yy(t,e,r){var a=t.getData().count();return{progressiveRender:r.progressiveEnabled&&e.incrementalPrepareRender&&a>=r.threshold,large:t.get("large")&&a>=t.get("largeThreshold"),modDataCount:t.get("progressiveChunkMode")==="mod"?t.getData().count():null}}function df(t,e){return{seriesType:t,overallReset:e}}function vf(t){return{overallReset:t}}var ce=_e(),gf=function(t,e,r,a){if(a){var n=ce(a);n.dataIndex=r,n.dataType=e,n.seriesIndex=t,n.ssrType="chart",a.type==="group"&&a.traverse(function(i){var o=ce(i);o.seriesIndex=t,o.dataIndex=r,o.dataType=e,o.ssrType="chart"})}},Xn="undefined",Ky="series",Xy=ae(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Tt="original",tt="arrayRows",Vt="objectRows",rr="keyedColumns",pa="typedArray",qy="unknown",ar="column",Qa="row",JD=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],jy=(function(){function t(e){A(JD,function(r){this[r]=ge(e[r],e)},this)}return t})();function eA(t,e){return e.mainType===Ky?t.getViewOfSeriesModel(e):t.getViewOfComponentModel(e)}var Zy=1,Qy={},Jy=_e(),mf=_e(),yf=0,xl=1,Pl=2,Ut=["emphasis","blur","select"],Sl=["normal","emphasis","blur","select"],tA=10,rA=9,Ja="highlight",Tl="downplay",Cl="select",bf="unselect",Dl="toggleSelect",kf="selectchanged";function qn(t){return t!=null&&t!=="none"}function Al(t,e,r){t.onHoverStateChange&&(t.hoverState||0)!==r&&t.onHoverStateChange(e),t.hoverState=r}function e0(t){Al(t,"emphasis",Pl)}function t0(t){t.hoverState===Pl&&Al(t,"normal",yf)}function wf(t){Al(t,"blur",xl)}function r0(t){t.hoverState===xl&&Al(t,"normal",yf)}function aA(t){t.selected=!0}function nA(t){t.selected=!1}function a0(t,e,r){e(t,r)}function Gr(t,e,r){a0(t,e,r),t.isGroup&&t.traverse(function(a){a0(a,e,r)})}function n0(t,e){switch(e){case"emphasis":t.hoverState=Pl;break;case"normal":t.hoverState=yf;break;case"blur":t.hoverState=xl;break;case"select":t.selected=!0}}function iA(t,e,r,a){for(var n=t.style,i={},o=0;o<e.length;o++){var s=e[o],l=n[s];i[s]=l??(a&&a[s])}for(var o=0;o<t.animators.length;o++){var u=t.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style"&&u.saveTo(i,e)}return i}function oA(t,e,r,a){var n=r&&fe(r,"select")>=0,i=!1;if(t instanceof me){var o=Jy(t),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(qn(s)||qn(l)){a=a||{};var u=a.style||{};u.fill==="inherit"?(i=!0,a=H({},a),u=H({},u),u.fill=s):!qn(u.fill)&&qn(s)?(i=!0,a=H({},a),u=H({},u),u.fill=Dc(s)):!qn(u.stroke)&&qn(l)&&(i||(a=H({},a),u=H({},u)),u.stroke=Dc(l)),a.style=u}}if(a&&a.z2==null){i||(a=H({},a));var p=t.z2EmphasisLift;a.z2=t.z2+(p??tA)}return a}function sA(t,e,r){if(r&&r.z2==null){r=H({},r);var a=t.z2SelectLift;r.z2=t.z2+(a??rA)}return r}function lA(t,e,r){var a=fe(t.currentStates,e)>=0,n=t.style.opacity,i=a?null:iA(t,["opacity"],e,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=H({},r),o=H({opacity:a?n:i.opacity*.1},o),r.style=o),r}function _f(t,e){var r=this.states[t];if(this.style){if(t==="emphasis")return oA(this,t,e,r);if(t==="blur")return lA(this,t,r);if(t==="select")return sA(this,t,r)}return r}function uA(t){t.stateProxy=_f;var e=t.getTextContent(),r=t.getTextGuideLine();e&&(e.stateProxy=_f),r&&(r.stateProxy=_f)}function i0(t,e){!p0(t,e)&&!t.__highByOuter&&Gr(t,e0)}function o0(t,e){!p0(t,e)&&!t.__highByOuter&&Gr(t,t0)}function Ll(t,e){t.__highByOuter|=1<<(e||0),Gr(t,e0)}function Ml(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Gr(t,t0)}function pA(t){Gr(t,wf)}function s0(t){Gr(t,r0)}function l0(t){Gr(t,aA)}function u0(t){Gr(t,nA)}function p0(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function c0(t){var e=t.getModel(),r=[],a=[];e.eachComponent(function(n,i){var o=mf(i),s=eA(t,i),l=n==="series";!l&&a.push(s),o.isBlured&&(s.group.traverse(function(u){r0(u)}),l&&r.push(i)),o.isBlured=!1}),A(a,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(r,!1,e)})}function xf(t,e,r,a){var n=a.getModel();r=r||"coordinateSystem";function i(u,p){for(var c=0;c<p.length;c++){var f=u.getItemGraphicEl(p[c]);f&&s0(f)}}if(t!=null&&!(!e||e==="none")){var o=n.getSeriesByIndex(t),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];n.eachSeries(function(u){var p=o===u,c=u.coordinateSystem;c&&c.master&&(c=c.master);var f=c&&s?c===s:p;if(!(r==="series"&&!p||r==="coordinateSystem"&&!f||e==="series"&&p)){var h=a.getViewOfSeriesModel(u);if(h.group.traverse(function(m){m.__highByOuter&&p&&e==="self"||wf(m)}),mt(e))i(u.getData(),e);else if(J(e))for(var d=he(e),v=0;v<d.length;v++)i(u.getData(d[v]),e[d[v]]);l.push(u),mf(u).isBlured=!0}}),n.eachComponent(function(u,p){if(u!=="series"){var c=a.getViewOfComponentModel(p);c&&c.toggleBlurSeries&&c.toggleBlurSeries(l,!0,n)}})}}function Pf(t,e,r){if(!(t==null||e==null)){var a=r.getModel().getComponent(t,e);if(a){mf(a).isBlured=!0;var n=r.getViewOfComponentModel(a);!n||!n.focusBlurEnabled||n.group.traverse(function(i){wf(i)})}}}function cA(t,e,r){var a=t.seriesIndex,n=t.getData(e.dataType);if(n){var i=Za(n,e);i=(W(i)?i[0]:i)||0;var o=n.getItemGraphicEl(i);if(!o)for(var s=n.count(),l=0;!o&&l<s;)o=n.getItemGraphicEl(l++);if(o){var u=ce(o);xf(a,u.focus,u.blurScope,r)}else{var p=t.get(["emphasis","focus"]),c=t.get(["emphasis","blurScope"]);p!=null&&xf(a,p,c,r)}}}function Sf(t,e,r,a){var n={focusSelf:!1,dispatchers:null};if(t==null||t==="series"||e==null||r==null)return n;var i=a.getModel().getComponent(t,e);if(!i)return n;var o=a.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return n;for(var s=o.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if(ce(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function fA(t,e,r){var a=ce(t),n=Sf(a.componentMainType,a.componentIndex,a.componentHighDownName,r),i=n.dispatchers,o=n.focusSelf;i?(o&&Pf(a.componentMainType,a.componentIndex,r),A(i,function(s){return i0(s,e)})):(xf(a.seriesIndex,a.focus,a.blurScope,r),a.focus==="self"&&Pf(a.componentMainType,a.componentIndex,r),i0(t,e))}function hA(t,e,r){c0(r);var a=ce(t),n=Sf(a.componentMainType,a.componentIndex,a.componentHighDownName,r).dispatchers;n?A(n,function(i){return o0(i,e)}):o0(t,e)}function dA(t,e,r){if(Df(e)){var a=e.dataType,n=t.getData(a),i=Za(n,e);W(i)||(i=[i]),t[e.type===Dl?"toggleSelect":e.type===Cl?"select":"unselect"](i,a)}}function f0(t){var e=t.getAllData();A(e,function(r){var a=r.data,n=r.type;a.eachItemGraphicEl(function(i,o){t.isSelected(o,n)?l0(i):u0(i)})})}function vA(t){var e=[];return t.eachSeries(function(r){var a=r.getAllData();A(a,function(n){n.data;var i=n.type,o=r.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:r.seriesIndex};i!=null&&(s.dataType=i),e.push(s)}})}),e}function Tf(t,e,r){d0(t,!0),Gr(t,uA),mA(t,e,r)}function gA(t){d0(t,!1)}function Wr(t,e,r,a){a?gA(t):Tf(t,e,r)}function mA(t,e,r){var a=ce(t);e!=null?(a.focus=e,a.blurScope=r):a.focus&&(a.focus=null)}var h0=["emphasis","blur","select"],yA={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function $r(t,e,r,a){r=r||"itemStyle";for(var n=0;n<h0.length;n++){var i=h0[n],o=e.getModel([i,r]),s=t.ensureState(i);s.style=o[yA[r]]()}}function d0(t,e){var r=e===!1,a=t;t.highDownSilentOnTouch&&(a.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!r||a.__highDownDispatcher)&&(a.__highByOuter=a.__highByOuter||0,a.__highDownDispatcher=!r)}function Cf(t){return!!(t&&t.__highDownDispatcher)}function bA(t){var e=Qy[t];return e==null&&Zy<=32&&(e=Qy[t]=Zy++),e}function Df(t){var e=t.type;return e===Cl||e===bf||e===Dl}function v0(t){var e=t.type;return e===Ja||e===Tl}function kA(t){var e=Jy(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var r=t.states.select||{};e.selectFill=r.style&&r.style.fill||null,e.selectStroke=r.style&&r.style.stroke||null}var jn=sa.CMD,wA=[[],[],[]],g0=Math.sqrt,_A=Math.atan2;function xA(t,e){if(e){var r=t.data,a=t.len(),n,i,o,s,l,u,p=jn.M,c=jn.C,f=jn.L,h=jn.R,d=jn.A,v=jn.Q;for(o=0,s=0;o<a;){switch(n=r[o++],s=o,i=0,n){case p:i=1;break;case f:i=1;break;case c:i=3;break;case v:i=2;break;case d:var m=e[4],g=e[5],y=g0(e[0]*e[0]+e[1]*e[1]),b=g0(e[2]*e[2]+e[3]*e[3]),k=_A(-e[1]/b,e[0]/y);r[o]*=y,r[o++]+=m,r[o]*=b,r[o++]+=g,r[o++]*=y,r[o++]*=b,r[o++]+=k,r[o++]+=k,o+=2,s=o;break;case h:u[0]=r[o++],u[1]=r[o++],Lt(u,u,e),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],Lt(u,u,e),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<i;l++){var w=wA[l];w[0]=r[o++],w[1]=r[o++],Lt(w,w,e),r[s++]=w[0],r[s++]=w[1]}}t.increaseVersion()}}var Af=Math.sqrt,El=Math.sin,Il=Math.cos,bo=Math.PI;function m0(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Lf(t,e){return(t[0]*e[0]+t[1]*e[1])/(m0(t)*m0(e))}function y0(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Lf(t,e))}function b0(t,e,r,a,n,i,o,s,l,u,p){var c=l*(bo/180),f=Il(c)*(t-r)/2+El(c)*(e-a)/2,h=-1*El(c)*(t-r)/2+Il(c)*(e-a)/2,d=f*f/(o*o)+h*h/(s*s);d>1&&(o*=Af(d),s*=Af(d));var v=(n===i?-1:1)*Af((o*o*(s*s)-o*o*(h*h)-s*s*(f*f))/(o*o*(h*h)+s*s*(f*f)))||0,m=v*o*h/s,g=v*-s*f/o,y=(t+r)/2+Il(c)*m-El(c)*g,b=(e+a)/2+El(c)*m+Il(c)*g,k=y0([1,0],[(f-m)/o,(h-g)/s]),w=[(f-m)/o,(h-g)/s],_=[(-1*f-m)/o,(-1*h-g)/s],x=y0(w,_);if(Lf(w,_)<=-1&&(x=bo),Lf(w,_)>=1&&(x=0),x<0){var T=Math.round(x/bo*1e6)/1e6;x=bo*2+T%2*bo}p.addData(u,y,b,o,s,k,x,c,i)}var PA=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,SA=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function TA(t){var e=new sa;if(!t)return e;var r=0,a=0,n=r,i=a,o,s=sa.CMD,l=t.match(PA);if(!l)return e;for(var u=0;u<l.length;u++){for(var p=l[u],c=p.charAt(0),f=void 0,h=p.match(SA)||[],d=h.length,v=0;v<d;v++)h[v]=parseFloat(h[v]);for(var m=0;m<d;){var g=void 0,y=void 0,b=void 0,k=void 0,w=void 0,_=void 0,x=void 0,T=r,C=a,P=void 0,S=void 0;switch(c){case"l":r+=h[m++],a+=h[m++],f=s.L,e.addData(f,r,a);break;case"L":r=h[m++],a=h[m++],f=s.L,e.addData(f,r,a);break;case"m":r+=h[m++],a+=h[m++],f=s.M,e.addData(f,r,a),n=r,i=a,c="l";break;case"M":r=h[m++],a=h[m++],f=s.M,e.addData(f,r,a),n=r,i=a,c="L";break;case"h":r+=h[m++],f=s.L,e.addData(f,r,a);break;case"H":r=h[m++],f=s.L,e.addData(f,r,a);break;case"v":a+=h[m++],f=s.L,e.addData(f,r,a);break;case"V":a=h[m++],f=s.L,e.addData(f,r,a);break;case"C":f=s.C,e.addData(f,h[m++],h[m++],h[m++],h[m++],h[m++],h[m++]),r=h[m-2],a=h[m-1];break;case"c":f=s.C,e.addData(f,h[m++]+r,h[m++]+a,h[m++]+r,h[m++]+a,h[m++]+r,h[m++]+a),r+=h[m-2],a+=h[m-1];break;case"S":g=r,y=a,P=e.len(),S=e.data,o===s.C&&(g+=r-S[P-4],y+=a-S[P-3]),f=s.C,T=h[m++],C=h[m++],r=h[m++],a=h[m++],e.addData(f,g,y,T,C,r,a);break;case"s":g=r,y=a,P=e.len(),S=e.data,o===s.C&&(g+=r-S[P-4],y+=a-S[P-3]),f=s.C,T=r+h[m++],C=a+h[m++],r+=h[m++],a+=h[m++],e.addData(f,g,y,T,C,r,a);break;case"Q":T=h[m++],C=h[m++],r=h[m++],a=h[m++],f=s.Q,e.addData(f,T,C,r,a);break;case"q":T=h[m++]+r,C=h[m++]+a,r+=h[m++],a+=h[m++],f=s.Q,e.addData(f,T,C,r,a);break;case"T":g=r,y=a,P=e.len(),S=e.data,o===s.Q&&(g+=r-S[P-4],y+=a-S[P-3]),r=h[m++],a=h[m++],f=s.Q,e.addData(f,g,y,r,a);break;case"t":g=r,y=a,P=e.len(),S=e.data,o===s.Q&&(g+=r-S[P-4],y+=a-S[P-3]),r+=h[m++],a+=h[m++],f=s.Q,e.addData(f,g,y,r,a);break;case"A":b=h[m++],k=h[m++],w=h[m++],_=h[m++],x=h[m++],T=r,C=a,r=h[m++],a=h[m++],f=s.A,b0(T,C,r,a,_,x,b,k,w,f,e);break;case"a":b=h[m++],k=h[m++],w=h[m++],_=h[m++],x=h[m++],T=r,C=a,r+=h[m++],a+=h[m++],f=s.A,b0(T,C,r,a,_,x,b,k,w,f,e);break}}(c==="z"||c==="Z")&&(f=s.Z,e.addData(f),r=n,a=i),o=f}return e.toStatic(),e}var k0=(function(t){V(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(r){},e})(me);function w0(t){return t.setData!=null}function _0(t,e){var r=TA(t),a=H({},e);return a.buildPath=function(n){var i=w0(n);if(i&&n.canSave()){n.appendPath(r);var o=n.getContext();o&&n.rebuildPath(o,1)}else{var o=i?n.getContext():n;o&&r.rebuildPath(o,1)}},a.applyTransform=function(n){xA(r,n),this.dirtyShape()},a}function CA(t,e){return new k0(_0(t,e))}function DA(t,e){var r=_0(t,e),a=(function(n){V(i,n);function i(o){var s=n.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return i})(k0);return a}function AA(t,e){for(var r=[],a=t.length,n=0;n<a;n++){var i=t[n];r.push(i.getUpdatedPathProxy(!0))}var o=new me(e);return o.createPathProxy(),o.buildPath=function(s){if(w0(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var Me=(function(t){V(e,t);function e(r){var a=t.call(this)||this;return a.isGroup=!0,a._children=[],a.attr(r),a}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(r){return this._children[r]},e.prototype.childOfName=function(r){for(var a=this._children,n=0;n<a.length;n++)if(a[n].name===r)return a[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},e.prototype.addBefore=function(r,a){if(r&&r!==this&&r.parent!==this&&a&&a.parent===this){var n=this._children,i=n.indexOf(a);i>=0&&(n.splice(i,0,r),this._doAdd(r))}return this},e.prototype.replace=function(r,a){var n=fe(this._children,r);return n>=0&&this.replaceAt(a,n),this},e.prototype.replaceAt=function(r,a){var n=this._children,i=n[a];if(r&&r!==this&&r.parent!==this&&r!==i){n[a]=r,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(r)}return this},e.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var a=this.__zr;a&&a!==r.__zr&&r.addSelfToZr(a),a&&a.refresh()},e.prototype.remove=function(r){var a=this.__zr,n=this._children,i=fe(n,r);return i<0?this:(n.splice(i,1),r.parent=null,a&&r.removeSelfFromZr(a),a&&a.refresh(),this)},e.prototype.removeAll=function(){for(var r=this._children,a=this.__zr,n=0;n<r.length;n++){var i=r[n];a&&i.removeSelfFromZr(a),i.parent=null}return r.length=0,this},e.prototype.eachChild=function(r,a){for(var n=this._children,i=0;i<n.length;i++){var o=n[i];r.call(a,o,i)}return this},e.prototype.traverse=function(r,a){for(var n=0;n<this._children.length;n++){var i=this._children[n],o=r.call(a,i);i.isGroup&&!o&&i.traverse(r,a)}return this},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var a=0;a<this._children.length;a++){var n=this._children[a];n.addSelfToZr(r)}},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var a=0;a<this._children.length;a++){var n=this._children[a];n.removeSelfFromZr(r)}},e.prototype.getBoundingRect=function(r){for(var a=new oe(0,0,0,0),n=r||this._children,i=[],o=null,s=0;s<n.length;s++){var l=n[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),p=l.getLocalTransform(i);p?(oe.applyTransform(a,u,p),o=o||a.clone(),o.union(a)):(o=o||u.clone(),o.union(u))}}return o||a},e})(hl);Me.prototype.type="group";var LA=(function(){function t(){this.cx=0,this.cy=0,this.r=0}return t})(),ko=(function(t){V(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new LA},e.prototype.buildPath=function(r,a){r.moveTo(a.cx+a.r,a.cy),r.arc(a.cx,a.cy,a.r,0,Math.PI*2)},e})(me);ko.prototype.type="circle";var MA=(function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t})(),Mf=(function(t){V(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new MA},e.prototype.buildPath=function(r,a){var n=.5522848,i=a.cx,o=a.cy,s=a.rx,l=a.ry,u=s*n,p=l*n;r.moveTo(i-s,o),r.bezierCurveTo(i-s,o-p,i-u,o-l,i,o-l),r.bezierCurveTo(i+u,o-l,i+s,o-p,i+s,o),r.bezierCurveTo(i+s,o+p,i+u,o+l,i,o+l),r.bezierCurveTo(i-u,o+l,i-s,o+p,i-s,o),r.closePath()},e})(me);Mf.prototype.type="ellipse";var x0=Math.PI,Ef=x0*2,en=Math.sin,Zn=Math.cos,EA=Math.acos,rt=Math.atan2,P0=Math.abs,wo=Math.sqrt,_o=Math.max,Lr=Math.min,nr=1e-4;function IA(t,e,r,a,n,i,o,s){var l=r-t,u=a-e,p=o-n,c=s-i,f=c*l-p*u;if(!(f*f<nr))return f=(p*(e-i)-c*(t-n))/f,[t+f*l,e+f*u]}function Ol(t,e,r,a,n,i,o){var s=t-r,l=e-a,u=(o?i:-i)/wo(s*s+l*l),p=u*l,c=-u*s,f=t+p,h=e+c,d=r+p,v=a+c,m=(f+d)/2,g=(h+v)/2,y=d-f,b=v-h,k=y*y+b*b,w=n-i,_=f*v-d*h,x=(b<0?-1:1)*wo(_o(0,w*w*k-_*_)),T=(_*b-y*x)/k,C=(-_*y-b*x)/k,P=(_*b+y*x)/k,S=(-_*y+b*x)/k,L=T-m,D=C-g,M=P-m,I=S-g;return L*L+D*D>M*M+I*I&&(T=P,C=S),{cx:T,cy:C,x0:-p,y0:-c,x1:T*(n/w-1),y1:C*(n/w-1)}}function OA(t){var e;if(W(t)){var r=t.length;if(!r)return t;r===1?e=[t[0],t[0],0,0]:r===2?e=[t[0],t[0],t[1],t[1]]:r===3?e=t.concat(t[2]):e=t}else e=[t,t,t,t];return e}function RA(t,e){var r,a=_o(e.r,0),n=_o(e.r0||0,0),i=a>0,o=n>0;if(!(!i&&!o)){if(i||(a=n,n=0),n>a){var s=a;a=n,n=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var p=e.cx,c=e.cy,f=!!e.clockwise,h=P0(u-l),d=h>Ef&&h%Ef;if(d>nr&&(h=d),!(a>nr))t.moveTo(p,c);else if(h>Ef-nr)t.moveTo(p+a*Zn(l),c+a*en(l)),t.arc(p,c,a,l,u,!f),n>nr&&(t.moveTo(p+n*Zn(u),c+n*en(u)),t.arc(p,c,n,u,l,f));else{var v=void 0,m=void 0,g=void 0,y=void 0,b=void 0,k=void 0,w=void 0,_=void 0,x=void 0,T=void 0,C=void 0,P=void 0,S=void 0,L=void 0,D=void 0,M=void 0,I=a*Zn(l),E=a*en(l),O=n*Zn(u),R=n*en(u),B=h>nr;if(B){var N=e.cornerRadius;N&&(r=OA(N),v=r[0],m=r[1],g=r[2],y=r[3]);var F=P0(a-n)/2;if(b=Lr(F,g),k=Lr(F,y),w=Lr(F,v),_=Lr(F,m),C=x=_o(b,k),P=T=_o(w,_),(x>nr||T>nr)&&(S=a*Zn(u),L=a*en(u),D=n*Zn(l),M=n*en(l),h<x0)){var U=IA(I,E,D,M,S,L,O,R);if(U){var Y=I-U[0],z=E-U[1],j=S-U[0],ne=L-U[1],De=1/en(EA((Y*j+z*ne)/(wo(Y*Y+z*z)*wo(j*j+ne*ne)))/2),Ee=wo(U[0]*U[0]+U[1]*U[1]);C=Lr(x,(a-Ee)/(De+1)),P=Lr(T,(n-Ee)/(De-1))}}}if(!B)t.moveTo(p+I,c+E);else if(C>nr){var de=Lr(g,C),Ce=Lr(y,C),te=Ol(D,M,I,E,a,de,f),ue=Ol(S,L,O,R,a,Ce,f);t.moveTo(p+te.cx+te.x0,c+te.cy+te.y0),C<x&&de===Ce?t.arc(p+te.cx,c+te.cy,C,rt(te.y0,te.x0),rt(ue.y0,ue.x0),!f):(de>0&&t.arc(p+te.cx,c+te.cy,de,rt(te.y0,te.x0),rt(te.y1,te.x1),!f),t.arc(p,c,a,rt(te.cy+te.y1,te.cx+te.x1),rt(ue.cy+ue.y1,ue.cx+ue.x1),!f),Ce>0&&t.arc(p+ue.cx,c+ue.cy,Ce,rt(ue.y1,ue.x1),rt(ue.y0,ue.x0),!f))}else t.moveTo(p+I,c+E),t.arc(p,c,a,l,u,!f);if(!(n>nr)||!B)t.lineTo(p+O,c+R);else if(P>nr){var de=Lr(v,P),Ce=Lr(m,P),te=Ol(O,R,S,L,n,-Ce,f),ue=Ol(I,E,D,M,n,-de,f);t.lineTo(p+te.cx+te.x0,c+te.cy+te.y0),P<T&&de===Ce?t.arc(p+te.cx,c+te.cy,P,rt(te.y0,te.x0),rt(ue.y0,ue.x0),!f):(Ce>0&&t.arc(p+te.cx,c+te.cy,Ce,rt(te.y0,te.x0),rt(te.y1,te.x1),!f),t.arc(p,c,n,rt(te.cy+te.y1,te.cx+te.x1),rt(ue.cy+ue.y1,ue.cx+ue.x1),f),de>0&&t.arc(p+ue.cx,c+ue.cy,de,rt(ue.y1,ue.x1),rt(ue.y0,ue.x0),!f))}else t.lineTo(p+O,c+R),t.arc(p,c,n,u,l,f)}t.closePath()}}}var BA=(function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return t})(),Mr=(function(t){V(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new BA},e.prototype.buildPath=function(r,a){RA(r,a)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e})(me);Mr.prototype.type="sector";var NA=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t})(),Rl=(function(t){V(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new NA},e.prototype.buildPath=function(r,a){var n=a.cx,i=a.cy,o=Math.PI*2;r.moveTo(n+a.r,i),r.arc(n,i,a.r,0,o,!1),r.moveTo(n+a.r0,i),r.arc(n,i,a.r0,0,o,!0)},e})(me);Rl.prototype.type="ring";function FA(t,e,r,a){var n=[],i=[],o=[],s=[],l,u,p,c;if(a){p=[1/0,1/0],c=[-1/0,-1/0];for(var f=0,h=t.length;f<h;f++)Rn(p,p,t[f]),Bn(c,c,t[f]);Rn(p,p,a[0]),Bn(c,c,a[1])}for(var f=0,h=t.length;f<h;f++){var d=t[f];if(r)l=t[f?f-1:h-1],u=t[(f+1)%h];else if(f===0||f===h-1){n.push(KT(t[f]));continue}else l=t[f-1],u=t[f+1];XT(i,u,l),oc(i,i,e);var v=sc(d,l),m=sc(d,u),g=v+m;g!==0&&(v/=g,m/=g),oc(o,i,-v),oc(s,i,m);var y=vm([],d,o),b=vm([],d,s);a&&(Bn(y,y,p),Rn(y,y,c),Bn(b,b,p),Rn(b,b,c)),n.push(y),n.push(b)}return r&&n.push(n.shift()),n}function S0(t,e,r){var a=e.smooth,n=e.points;if(n&&n.length>=2){if(a){var i=FA(n,a,r,e.smoothConstraint);t.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(r?o:o-1);s++){var l=i[s*2],u=i[s*2+1],p=n[(s+1)%o];t.bezierCurveTo(l[0],l[1],u[0],u[1],p[0],p[1])}}else{t.moveTo(n[0][0],n[0][1]);for(var s=1,c=n.length;s<c;s++)t.lineTo(n[s][0],n[s][1])}r&&t.closePath()}}var zA=(function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t})(),Qn=(function(t){V(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new zA},e.prototype.buildPath=function(r,a){S0(r,a,!0)},e})(me);Qn.prototype.type="polygon";var HA=(function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t})(),ca=(function(t){V(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new HA},e.prototype.buildPath=function(r,a){S0(r,a,!1)},e})(me);ca.prototype.type="polyline";var VA={},UA=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t})(),Er=(function(t){V(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new UA},e.prototype.buildPath=function(r,a){var n,i,o,s;if(this.subPixelOptimize){var l=dy(VA,a,this.style);n=l.x1,i=l.y1,o=l.x2,s=l.y2}else n=a.x1,i=a.y1,o=a.x2,s=a.y2;var u=a.percent;u!==0&&(r.moveTo(n,i),u<1&&(o=n*(1-u)+o*u,s=i*(1-u)+s*u),r.lineTo(o,s))},e.prototype.pointAt=function(r){var a=this.shape;return[a.x1*(1-r)+a.x2*r,a.y1*(1-r)+a.y2*r]},e})(me);Er.prototype.type="line";var wt=[],GA=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t})();function T0(t,e,r){var a=t.cpx2,n=t.cpy2;return a!=null||n!=null?[(r?Nm:je)(t.x1,t.cpx1,t.cpx2,t.x2,e),(r?Nm:je)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(r?zm:bt)(t.x1,t.cpx1,t.x2,e),(r?zm:bt)(t.y1,t.cpy1,t.y2,e)]}var If=(function(t){V(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new GA},e.prototype.buildPath=function(r,a){var n=a.x1,i=a.y1,o=a.x2,s=a.y2,l=a.cpx1,u=a.cpy1,p=a.cpx2,c=a.cpy2,f=a.percent;f!==0&&(r.moveTo(n,i),p==null||c==null?(f<1&&(Zs(n,l,o,f,wt),l=wt[1],o=wt[2],Zs(i,u,s,f,wt),u=wt[1],s=wt[2]),r.quadraticCurveTo(l,u,o,s)):(f<1&&(js(n,l,p,o,f,wt),l=wt[1],p=wt[2],o=wt[3],js(i,u,c,s,f,wt),u=wt[1],c=wt[2],s=wt[3]),r.bezierCurveTo(l,u,p,c,o,s)))},e.prototype.pointAt=function(r){return T0(this.shape,r,!1)},e.prototype.tangentAt=function(r){var a=T0(this.shape,r,!0);return ZT(a,a)},e})(me);If.prototype.type="bezier-curve";var WA=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t})(),Bl=(function(t){V(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new WA},e.prototype.buildPath=function(r,a){var n=a.cx,i=a.cy,o=Math.max(a.r,0),s=a.startAngle,l=a.endAngle,u=a.clockwise,p=Math.cos(s),c=Math.sin(s);r.moveTo(p*o+n,c*o+i),r.arc(n,i,o,s,l,!u)},e})(me);Bl.prototype.type="arc";var C0=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="compound",r}return e.prototype._updatePathDirty=function(){for(var r=this.shape.paths,a=this.shapeChanged(),n=0;n<r.length;n++)a=a||r[n].shapeChanged();a&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],a=this.getGlobalScale(),n=0;n<r.length;n++)r[n].path||r[n].createPathProxy(),r[n].path.setScale(a[0],a[1],r[n].segmentIgnoreThreshold)},e.prototype.buildPath=function(r,a){for(var n=a.paths||[],i=0;i<n.length;i++)n[i].buildPath(r,n[i].shape,!0)},e.prototype.afterBrush=function(){for(var r=this.shape.paths||[],a=0;a<r.length;a++)r[a].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),me.prototype.getBoundingRect.call(this)},e})(me),D0=(function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,r){this.colorStops.push({offset:e,color:r})},t})(),A0=(function(t){V(e,t);function e(r,a,n,i,o,s){var l=t.call(this,o)||this;return l.x=r??0,l.y=a??0,l.x2=n??1,l.y2=i??0,l.type="linear",l.global=s||!1,l}return e})(D0),$A=(function(t){V(e,t);function e(r,a,n,i,o){var s=t.call(this,i)||this;return s.x=r??.5,s.y=a??.5,s.r=n??.5,s.type="radial",s.global=o||!1,s}return e})(D0),Of=Math.min,YA=Math.max,Nl=Math.abs,tn=[0,0],rn=[0,0],$e=bm(),Fl=$e.minTv,zl=$e.maxTv,L0=(function(){function t(e,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var a=0;a<4;a++)this._corners[a]=new ie;for(var a=0;a<2;a++)this._axes[a]=new ie;e&&this.fromBoundingRect(e,r)}return t.prototype.fromBoundingRect=function(e,r){var a=this._corners,n=this._axes,i=e.x,o=e.y,s=i+e.width,l=o+e.height;if(a[0].set(i,o),a[1].set(s,o),a[2].set(s,l),a[3].set(i,l),r)for(var u=0;u<4;u++)a[u].transform(r);ie.sub(n[0],a[1],a[0]),ie.sub(n[1],a[3],a[0]),n[0].normalize(),n[1].normalize();for(var u=0;u<2;u++)this._origin[u]=n[u].dot(a[0])},t.prototype.intersect=function(e,r,a){var n=!0,i=!r;return r&&ie.set(r,0,0),$e.reset(a,!i),!this._intersectCheckOneSide(this,e,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(e,this,i,-1)&&(n=!1,i)||!i&&!$e.negativeSize&&ie.copy(r,n?$e.useDir?$e.dirMinTv:Fl:zl),n},t.prototype._intersectCheckOneSide=function(e,r,a,n){for(var i=!0,o=0;o<2;o++){var s=e._axes[o];if(e._getProjMinMaxOnAxis(o,e._corners,tn),e._getProjMinMaxOnAxis(o,r._corners,rn),$e.negativeSize||tn[1]<rn[0]||tn[0]>rn[1]){if(i=!1,$e.negativeSize||a)return i;var l=Nl(rn[0]-tn[1]),u=Nl(tn[0]-rn[1]);Of(l,u)>zl.len()&&(l<u?ie.scale(zl,s,-l*n):ie.scale(zl,s,u*n))}else if(!a){var l=Nl(rn[0]-tn[1]),u=Nl(tn[0]-rn[1]);($e.useDir||Of(l,u)<Fl.len())&&((l<u||!$e.bidirectional)&&(ie.scale(Fl,s,l*n),$e.useDir&&$e.calcDirMTV()),(l>=u||!$e.bidirectional)&&(ie.scale(Fl,s,-u*n),$e.useDir&&$e.calcDirMTV()))}}return i},t.prototype._getProjMinMaxOnAxis=function(e,r,a){for(var n=this._axes[e],i=this._origin,o=r[0].dot(n)+i[e],s=o,l=o,u=1;u<r.length;u++){var p=r[u].dot(n)+i[e];s=Of(p,s),l=YA(p,l)}a[0]=s+$e.touchThreshold,a[1]=l-$e.touchThreshold,$e.negativeSize=a[1]<a[0]},t})(),KA=1,XA=[],qA=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.notClear=!0,r.incremental=KA,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return e.prototype.traverse=function(r,a){r.call(a,this)},e.prototype.useStyle=function(){this.style={}},e.prototype._useHoverStyle=function(){this.__hoverStyle=null},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(r,a){a?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},e.prototype.addDisplayables=function(r,a){a=a||!1;for(var n=0;n<r.length;n++)this.addDisplayable(r[n],a)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(r){for(var a=this._cursor;a<this._displayables.length;a++)r&&r(this._displayables[a]);for(var a=0;a<this._temporaryDisplayables.length;a++)r&&r(this._temporaryDisplayables[a])},e.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var a=this._displayables[r];a.parent=this,a.update(),a.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var a=this._temporaryDisplayables[r];a.parent=this,a.update(),a.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new oe(1/0,1/0,-1/0,-1/0),a=0;a<this._displayables.length;a++){var n=this._displayables[a],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(XA)),r.union(i)}this._rect=r}return this._rect},e.prototype.contain=function(r,a){var n=this.transformCoordToLocal(r,a),i=this.getBoundingRect();if(i.contain(n[0],n[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,a))return!0}return!1},e})(lo),jA=_e();function ZA(t,e,r,a,n){var i;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();i=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=t==="update";if(s){var u=void 0,p=void 0,c=void 0;a?(u=Z(a.duration,200),p=Z(a.easing,"cubicOut"),c=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),p=e.getShallow(l?"animationEasingUpdate":"animationEasing"),c=e.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(u=i.duration),i.easing!=null&&(p=i.easing),i.delay!=null&&(c=i.delay)),re(c)&&(c=c(r,n)),re(u)&&(u=u(r));var f={duration:u||0,delay:c,easing:p};return f}else return null}function Rf(t,e,r,a,n,i,o){var s=!1,l;re(n)?(o=i,i=n,n=null):J(n)&&(i=n.cb,o=n.during,s=n.isFrom,l=n.removeOpt,n=n.dataIndex);var u=t==="leave";u||e.stopAnimation("leave");var p=ZA(t,a,n,u?l||{}:null,a&&a.getAnimationDelayParams?a.getAnimationDelayParams(e,n):null);if(p&&p.duration>0){var c=p.duration,f=p.delay,h=p.easing,d={duration:c,delay:f||0,easing:h,done:i,force:!!i||!!o,setToFinal:!u,scope:t,during:o};s?e.animateFrom(r,d):e.animateTo(r,d)}else e.stopAnimation(),!s&&e.attr(r),o&&o(1),i&&i()}function Re(t,e,r,a,n,i){Rf("update",t,e,r,a,n,i)}function Ye(t,e,r,a,n,i){Rf("enter",t,e,r,a,n,i)}function xo(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var r=t.animators[e];if(r.scope==="leave")return!0}return!1}function Hl(t,e,r,a,n,i){xo(t)||Rf("leave",t,e,r,a,n,i)}function M0(t,e,r,a){t.removeTextContent(),t.removeTextGuideLine(),Hl(t,{style:{opacity:0}},e,r,a)}function Jn(t,e,r){function a(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(n){n.isGroup||M0(n,e,r,a)}):M0(t,e,r,a)}function ei(t){jA(t).oldStyle=t.style}var Bf={},fa=["x","y"],ti=["width","height"],E0=0,I0=1,Nf=2;function QA(t){return me.extend(t)}var JA=DA;function e3(t,e){return JA(t,e)}function ir(t,e){Bf[t]=e}function t3(t){if(Bf.hasOwnProperty(t))return Bf[t]}function Ff(t,e,r,a){var n=CA(t,e);return r&&(a==="center"&&(r=R0(r,n.getBoundingRect())),B0(n,r)),n}function O0(t,e,r){var a=new Bt({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(n){if(r==="center"){var i={width:n.width,height:n.height};a.setStyle(R0(e,i))}}});return a}function R0(t,e){var r=e.width/e.height,a=t.height*r,n;a<=t.width?n=t.height:(a=t.width,n=a/r);var i=t.x+t.width/2,o=t.y+t.height/2;return{x:i-a/2,y:o-n/2,width:a,height:n}}var zf=AA;function B0(t,e){if(t.applyTransform){var r=t.getBoundingRect(),a=r.calculateTransform(e);t.applyTransform(a)}}function Po(t,e){return dy(t,t,{lineWidth:e}),t}function r3(t,e){return vy(t,t,e),t}var a3=Xa;function n3(t,e){for(var r=Xi([]);t&&t!==e;)qi(r,t.getLocalTransform(),r),t=t.parent;return r}function Hf(t,e,r){return e&&!mt(e)&&(e=eo.getLocalTransform(e)),r&&(e=ji([],e)),Lt([],t,e)}function i3(t,e,r){var a=e[4]===0||e[5]===0||e[0]===0?1:Ve(2*e[4]/e[0]),n=e[4]===0||e[5]===0||e[2]===0?1:Ve(2*e[4]/e[2]),i=[t==="left"?-a:t==="right"?a:0,t==="top"?-n:t==="bottom"?n:0];return i=Hf(i,e,r),Ve(i[0])>Ve(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function N0(t){return!t.isGroup}function o3(t){return t.shape!=null}function F0(t,e,r){if(!t||!e)return;function a(o){var s={};return o.traverse(function(l){N0(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return o3(o)&&(s.shape=le(o.shape)),s}var i=a(t);e.traverse(function(o){if(N0(o)&&o.anid){var s=i[o.anid];if(s){var l=n(o);o.attr(n(s)),Re(o,l,r,ce(o).dataIndex)}}})}function s3(t,e){return K(t,function(r){var a=r[0];a=ye(a,e.x),a=et(a,e.x+e.width);var n=r[1];return n=ye(n,e.y),n=et(n,e.y+e.height),[a,n]})}function l3(t,e){var r=ye(t.x,e.x),a=et(t.x+t.width,e.x+e.width),n=ye(t.y,e.y),i=et(t.y+t.height,e.y+e.height);if(a>=r&&i>=n)return{x:r,y:n,width:a-r,height:i-n}}function Vf(t,e,r){var a=H({rectHover:!0},e),n=a.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(n.image=t.slice(8),pe(n,r),new Bt(a)):Ff(t.replace("path://",""),a,r,"center")}function u3(t,e,r,a,n){for(var i=0,o=n[n.length-1];i<n.length;i++){var s=n[i];if(z0(t,e,r,a,s[0],s[1],o[0],o[1]))return!0;o=s}}function z0(t,e,r,a,n,i,o,s){var l=r-t,u=a-e,p=o-n,c=s-i,f=Uf(p,c,l,u);if(p3(f))return!1;var h=t-n,d=e-i,v=Uf(h,d,l,u)/f;if(v<0||v>1)return!1;var m=Uf(h,d,p,c)/f;return!(m<0||m>1)}function Uf(t,e,r,a){return t*a-r*e}function p3(t){return t<=1e-6&&t>=-1e-6}function Vl(t,e,r,a,n){return e==null||(be(e)?Te[0]=Te[1]=Te[2]=Te[3]=e:(Te[0]=e[0],Te[1]=e[1],Te[2]=e[2],Te[3]=e[3]),a&&(Te[0]=ye(0,Te[0]),Te[1]=ye(0,Te[1]),Te[2]=ye(0,Te[2]),Te[3]=ye(0,Te[3])),r&&(Te[0]=-Te[0],Te[1]=-Te[1],Te[2]=-Te[2],Te[3]=-Te[3]),H0(t,Te,"x","width",3,1,n&&n[0]||0),H0(t,Te,"y","height",0,2,n&&n[1]||0)),t}var Te=[0,0,0,0];function H0(t,e,r,a,n,i,o){var s=e[i]+e[n],l=t[a];t[a]+=s,o=ye(0,et(o,l)),t[a]<o?(t[a]=o,t[r]+=e[n]>=0?-e[n]:e[i]>=0?l+e[i]:Ve(s)>1e-8?(l-o)*e[n]/s:0):t[r]-=e[n]}function Ul(t){var e=t.itemTooltipOption,r=t.componentModel,a=t.itemName,n=q(e)?{formatter:e}:e,i=r.mainType,o=r.componentIndex,s={componentType:i,name:a,$vars:["name"]};s[i+"Index"]=o;var l=t.formatterParamsExtra;l&&A(he(l),function(p){st(s,p)||(s[p]=l[p],s.$vars.push(p))});var u=ce(t.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:a,option:pe({content:a,encodeHTMLContent:!0,formatterParams:s},n)}}function Gf(t,e){var r;t.isGroup&&(r=e(t)),r||t.traverse(e)}function Gl(t,e){if(t)if(W(t))for(var r=0;r<t.length;r++)Gf(t[r],e);else Gf(t,e)}function Wf(t){return!t||Ve(t[1])<Wl&&Ve(t[2])<Wl||Ve(t[0])<Wl&&Ve(t[3])<Wl}var Wl=1e-5;function So(t,e){return t?oe.copy(t,e):e.clone()}function $f(t,e){return e?rc(t||wr(),e):void 0}function V0(t){return{z:t.get("z")||0,zlevel:t.get("zlevel")||0}}function c3(t){var e=-1/0,r=1/0;Gf(t,function(i){a(i),a(i.getTextContent()),a(i.getTextGuideLine())});function a(i){if(!(!i||i.isGroup)){var o=i.currentStates;if(o.length)for(var s=0;s<o.length;s++)n(i.states[o[s]]);n(i)}}function n(i){if(i){var o=i.z2;o>e&&(e=o),o<r&&(r=o)}}return r>e&&(r=e=0),{min:r,max:e}}function U0(t,e,r){G0(t,e,r,-1/0)}function G0(t,e,r,a){if(t.ignoreModelZ)return a;var n=t.getTextContent(),i=t.getTextGuideLine(),o=t.isGroup;if(o)for(var s=t.childrenRef(),l=0;l<s.length;l++)a=ye(G0(s[l],e,r,a),a);else t.z=e,t.zlevel=r,a=ye(t.z2||0,a);if(n&&(n.z=e,n.zlevel=r,isFinite(a)&&(n.z2=a+2)),i){var u=t.textGuideLineConfig;i.z=e,i.zlevel=r,isFinite(a)&&(i.z2=a+(u&&u.showAbove?1:-1))}return a}function f3(t){return t.animation={duration:0},t}function h3(t,e){return e?rc(To.transform,e):Xi(To.transform),To.decomposeTransform(),to(t,To),t}var To=new eo;To.transform=wr();function d3(t){var e=t.getZr().painter;return e.getType()==="canvas"?e:null}ir("circle",ko),ir("ellipse",Mf),ir("sector",Mr),ir("ring",Rl),ir("polygon",Qn),ir("polyline",ca),ir("rect",Ie),ir("line",Er),ir("bezierCurve",If),ir("arc",Bl);const W0=Object.freeze(Object.defineProperty({__proto__:null,Arc:Bl,BezierCurve:If,BoundingRect:oe,Circle:ko,CompoundPath:C0,Ellipse:Mf,Group:Me,HOVER_LAYER_FOR_INCREMENTAL:Nf,HOVER_LAYER_FROM_THRESHOLD:I0,HOVER_LAYER_NO:E0,Image:Bt,IncrementalDisplayable:qA,Line:Er,LinearGradient:A0,OrientedBoundingRect:L0,Path:me,Point:ie,Polygon:Qn,Polyline:ca,RadialGradient:$A,Rect:Ie,Ring:Rl,Sector:Mr,Text:Oe,WH:ti,XY:fa,applyTransform:Hf,calcZ2Range:c3,clipPointsByRect:s3,clipRectByRect:l3,createIcon:Vf,decomposeTransform:h3,ensureCopyRect:So,ensureCopyTransform:$f,expandOrShrinkRect:Vl,extendPath:e3,extendShape:QA,getCurrentCanvasPainter:d3,getShapeClass:t3,getTransform:n3,groupTransition:F0,initProps:Ye,isBoundingRectAxisAligned:Wf,isElementRemoved:xo,lineLineIntersect:z0,linePolygonIntersect:u3,makeImage:O0,makePath:Ff,mergePath:zf,payloadDisableAnimation:f3,registerShape:ir,removeElement:Hl,removeElementWithFadeOut:Jn,resizePath:B0,retrieveZInfo:V0,setTooltipConfig:Ul,subPixelOptimize:a3,subPixelOptimizeLine:Po,subPixelOptimizeRect:r3,transformDirection:i3,traverseElements:Gl,traverseUpdateZ:U0,updateProps:Re},Symbol.toStringTag,{value:"Module"}));var $l={};function $0(t,e){for(var r=0;r<Ut.length;r++){var a=Ut[r],n=e[a],i=t.ensureState(a);i.style=i.style||{},i.style.text=n}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function Yf(t,e,r){var a=t.labelFetcher,n=t.labelDataIndex,i=t.labelDimIndex,o=e.normal,s;a&&(s=a.getFormattedLabel(n,"normal",null,i,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=re(t.defaultText)?t.defaultText(n,t,r):t.defaultText);for(var l={normal:s},u=0;u<Ut.length;u++){var p=Ut[u],c=e[p];l[p]=Z(a?a.getFormattedLabel(n,p,null,i,c&&c.get("formatter")):null,s)}return l}function an(t,e,r,a){r=r||$l;for(var n=t instanceof Oe,i=!1,o=0;o<Sl.length;o++){var s=e[Sl[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=n?t:t.getTextContent();if(i){n||(l||(l=new Oe,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=Yf(r,e),p=e.normal,c=!!p.getShallow("show"),f=Gt(p,a&&a.normal,r,!1,!n);f.text=u.normal,n||t.setTextConfig(Y0(p,r,!1));for(var o=0;o<Ut.length;o++){var h=Ut[o],s=e[h];if(s){var d=l.ensureState(h),v=!!Z(s.getShallow("show"),c);if(v!==c&&(d.ignore=!v),d.style=Gt(s,a&&a[h],r,!0,!n),d.style.text=u[h],!n){var m=t.ensureState(h);m.textConfig=Y0(s,r,!0)}}}l.silent=!!p.getShallow("silent"),l.style.x!=null&&(f.x=l.style.x),l.style.y!=null&&(f.y=l.style.y),l.ignore=!c,l.useStyle(f),l.dirty(),r.enableTextSetter&&(Co(l).setLabelText=function(g){var y=Yf(r,e,g);$0(l,y)})}else l&&(l.ignore=!0);t.dirty()}function nn(t,e){e=e||"label";for(var r={normal:t.getModel(e)},a=0;a<Ut.length;a++){var n=Ut[a];r[n]=t.getModel([n,e])}return r}function Gt(t,e,r,a,n){var i={};return v3(i,t,r,a,n),e&&H(i,e),i}function Y0(t,e,r){e=e||{};var a={},n,i=t.getShallow("rotate"),o=Z(t.getShallow("distance"),r?null:5),s=t.getShallow("offset");return n=t.getShallow("position")||(r?null:"inside"),n==="outside"&&(n=e.defaultOutsidePosition||"top"),n!=null&&(a.position=n),s!=null&&(a.offset=s),i!=null&&(i*=Math.PI/180,a.rotation=i),o!=null&&(a.distance=o),a.outsideFill=t.get("color")==="inherit"?e.inheritColor||null:"auto",e.autoOverflowArea!=null&&(a.autoOverflowArea=e.autoOverflowArea),e.layoutRect!=null&&(a.layoutRect=e.layoutRect),a}function v3(t,e,r,a,n){r=r||$l;var i=e.ecModel,o=i&&i.option.textStyle,s=g3(e),l;if(s){l={};var u="richInheritPlainLabel",p=Z(e.get(u),i?i.get(u):void 0);for(var c in s)if(s.hasOwnProperty(c)){var f=e.getModel(["rich",c]);j0(l[c]={},f,o,e,p,r,a,n,!1,!0)}}l&&(t.rich=l);var h=e.get("overflow");h&&(t.overflow=h);var d=e.get("lineOverflow");d&&(t.lineOverflow=d);var v=t,m=e.get("minMargin");if(m!=null)m=be(m)?m/2:0,v.margin=[m,m,m,m],v.__marginType=ri.minMargin;else{var g=e.get("textMargin");g!=null&&(v.margin=Qp(g),v.__marginType=ri.textMargin)}j0(t,e,o,null,null,r,a,n,!0,!1)}function g3(t){for(var e;t&&t!==t.ecModel;){var r=(t.option||$l).rich;if(r){e=e||{};for(var a=he(r),n=0;n<a.length;n++){var i=a[n];e[i]=1}}t=t.parentModel}return e}var K0=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],X0=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],q0=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function j0(t,e,r,a,n,i,o,s,l,u){r=!o&&r||$l;var p=i&&i.inheritColor,c=e.getShallow("color"),f=e.getShallow("textBorderColor"),h=Z(e.getShallow("opacity"),r.opacity);(c==="inherit"||c==="auto")&&(p?c=p:c=null),(f==="inherit"||f==="auto")&&(p?f=p:f=null),s||(c=c||r.color,f=f||r.textBorderColor),c!=null&&(t.fill=c),f!=null&&(t.stroke=f);var d=Z(e.getShallow("textBorderWidth"),r.textBorderWidth);d!=null&&(t.lineWidth=d);var v=Z(e.getShallow("textBorderType"),r.textBorderType);v!=null&&(t.lineDash=v);var m=Z(e.getShallow("textBorderDashOffset"),r.textBorderDashOffset);m!=null&&(t.lineDashOffset=m),!o&&h==null&&!u&&(h=i&&i.defaultOpacity),h!=null&&(t.opacity=h),!o&&!s&&t.fill==null&&i.inheritColor&&(t.fill=i.inheritColor);for(var g=0;g<K0.length;g++){var y=K0[g],b=n!==!1&&a?Da(e.getShallow(y),a.getShallow(y),r[y]):Z(e.getShallow(y),r[y]);b!=null&&(t[y]=b)}for(var g=0;g<X0.length;g++){var y=X0[g],b=e.getShallow(y);b!=null&&(t[y]=b)}if(t.verticalAlign==null){var k=e.getShallow("baseline");k!=null&&(t.verticalAlign=k)}if(!l||!i.disableBox){for(var g=0;g<q0.length;g++){var y=q0[g],b=e.getShallow(y);b!=null&&(t[y]=b)}var w=e.getShallow("borderType");w!=null&&(t.borderDash=w),(t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&p&&(t.backgroundColor=p),(t.borderColor==="auto"||t.borderColor==="inherit")&&p&&(t.borderColor=p)}}function m3(t,e){var r=e&&e.getModel("textStyle");return br([t.fontStyle||r&&r.getShallow("fontStyle")||"",t.fontWeight||r&&r.getShallow("fontWeight")||"",(t.fontSize||r&&r.getShallow("fontSize")||12)+"px",t.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var Co=_e();function Z0(t,e,r,a){if(t){var n=Co(t);n.prevValue=n.value,n.value=r;var i=e.normal;n.valueAnimation=i.get("valueAnimation"),n.valueAnimation&&(n.precision=i.get("precision"),n.defaultInterpolatedText=a,n.statesModels=e)}}function y3(t,e,r,a,n){var i=Co(t);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=Z(i.interpolatedValue,i.prevValue),l=i.value;function u(p){var c=Vy(r,i.precision,s,l,p);i.interpolatedValue=p===1?null:c;var f=Yf({labelDataIndex:e,labelFetcher:n,defaultText:o?o(c):c+""},i.statesModels,c);$0(t,f)}t.percent=0,(i.prevValue==null?Ye:Re)(t,{percent:1},a,e,null,u)}var ri={minMargin:1,textMargin:2},b3=["textStyle","color"],Kf=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Xf=new Oe,k3=(function(){function t(){}return t.prototype.getTextColor=function(e){var r=this.ecModel;return this.getShallow("color")||(!e&&r?r.get(b3):null)},t.prototype.getFont=function(){return m3({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(e){for(var r={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},a=0;a<Kf.length;a++)r[Kf[a]]=this.getShallow(Kf[a]);return Xf.useStyle(r),Xf.update(),Xf.getBoundingRect()},t})(),Q0=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],w3=Ki(Q0),_3=(function(){function t(){}return t.prototype.getLineStyle=function(e){return w3(this,e)},t})(),J0=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],x3=Ki(J0),P3=(function(){function t(){}return t.prototype.getItemStyle=function(e,r){return x3(this,e,r)},t})(),Ae=(function(){function t(e,r,a){this.parentModel=r,this.ecModel=a,this.option=e}return t.prototype.init=function(e,r,a){},t.prototype.mergeOption=function(e,r){Pe(this.option,e,!0)},t.prototype.get=function(e,r){return e==null?this.option:this._doGet(this.parsePath(e),!r&&this.parentModel)},t.prototype.getShallow=function(e,r){var a=this.option,n=a==null?a:a[e];if(n==null&&!r){var i=this.parentModel;i&&(n=i.getShallow(e))}return n},t.prototype.getModel=function(e,r){var a=e!=null,n=a?this.parsePath(e):null,i=a?this._doGet(n):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(n)),new t(i,r,this.ecModel)},t.prototype.isEmpty=function(){return this.option==null},t.prototype.restoreData=function(){},t.prototype.clone=function(){var e=this.constructor;return new e(le(this.option))},t.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},t.prototype.resolveParentPath=function(e){return e},t.prototype.isAnimationEnabled=function(){if(!se.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(e,r){var a=this.option;if(!e)return a;for(var n=0;n<e.length&&!(e[n]&&(a=a&&typeof a=="object"?a[e[n]]:null,a==null));n++);return a==null&&r&&(a=r._doGet(this.resolveParentPath(e),r.parentModel)),a},t})();Jp(Ae),FT(Ae),Qt(Ae,_3),Qt(Ae,P3),Qt(Ae,GT),Qt(Ae,k3);function Do(t){return t==null?0:t.length||1}function eb(t){return t}var S3=(function(){function t(e,r,a,n,i,o){this._old=e,this._new=r,this._oldKeyGetter=a||eb,this._newKeyGetter=n||eb,this.context=i,this._diffModeMultiple=o==="multiple"}return t.prototype.add=function(e){return this._add=e,this},t.prototype.update=function(e){return this._update=e,this},t.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},t.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},t.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},t.prototype.remove=function(e){return this._remove=e,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var e=this._old,r=this._new,a={},n=new Array(e.length),i=new Array(r.length);this._initIndexMap(e,null,n,"_oldKeyGetter"),this._initIndexMap(r,a,i,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=n[o],l=a[s],u=Do(l);if(u>1){var p=l.shift();l.length===1&&(a[s]=l[0]),this._update&&this._update(p,o)}else u===1?(a[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,a)},t.prototype._executeMultiple=function(){var e=this._old,r=this._new,a={},n={},i=[],o=[];this._initIndexMap(e,a,i,"_oldKeyGetter"),this._initIndexMap(r,n,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var l=i[s],u=a[l],p=n[l],c=Do(u),f=Do(p);if(c>1&&f===1)this._updateManyToOne&&this._updateManyToOne(p,u),n[l]=null;else if(c===1&&f>1)this._updateOneToMany&&this._updateOneToMany(p,u),n[l]=null;else if(c===1&&f===1)this._update&&this._update(p,u),n[l]=null;else if(c>1&&f>1)this._updateManyToMany&&this._updateManyToMany(p,u),n[l]=null;else if(c>1)for(var h=0;h<c;h++)this._remove&&this._remove(u[h]);else this._remove&&this._remove(u)}this._performRestAdd(o,n)},t.prototype._performRestAdd=function(e,r){for(var a=0;a<e.length;a++){var n=e[a],i=r[n],o=Do(i);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(i[s]);else o===1&&this._add&&this._add(i);r[n]=null}},t.prototype._initIndexMap=function(e,r,a,n){for(var i=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[n](e[o],o);if(i||(a[o]=s),!!r){var l=r[s],u=Do(l);u===0?(r[s]=o,i&&a.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},t})(),Ze={Must:1,Might:2,Not:3},tb=_e();function T3(t){tb(t).datasetMap=ae()}function C3(t,e,r){var a={},n=qf(e);if(!n||!t)return a;var i=[],o=[],s=e.ecModel,l=tb(s).datasetMap,u=n.uid+"_"+r.seriesLayoutBy,p,c;t=t.slice(),A(t,function(v,m){var g=J(v)?v:t[m]={name:v};g.type==="ordinal"&&p==null&&(p=m,c=d(g)),a[g.name]=[]});var f=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});A(t,function(v,m){var g=v.name,y=d(v);if(p==null){var b=f.valueWayDim;h(a[g],b,y),h(o,b,y),f.valueWayDim+=y}else if(p===m)h(a[g],0,y),h(i,0,y);else{var b=f.categoryWayDim;h(a[g],b,y),h(o,b,y),f.categoryWayDim+=y}});function h(v,m,g){for(var y=0;y<g;y++)v.push(m+y)}function d(v){var m=v.dimsDef;return m?m.length:1}return i.length&&(a.itemName=i),o.length&&(a.seriesName=o),a}function rb(t,e,r){var a={},n=qf(t);if(!n)return a;var i=e.sourceFormat,o=e.dimensionsDefine,s;(i===Vt||i===rr)&&A(o,function(p,c){(J(p)?p.name:p)==="name"&&(s=c)});var l=(function(){for(var p={},c={},f=[],h=0,d=Math.min(5,r);h<d;h++){var v=nb(e.data,i,e.seriesLayoutBy,o,e.startIndex,h);f.push(v);var m=v===Ze.Not;if(m&&p.v==null&&h!==s&&(p.v=h),(p.n==null||p.n===p.v||!m&&f[p.n]===Ze.Not)&&(p.n=h),g(p)&&f[p.n]!==Ze.Not)return p;m||(v===Ze.Might&&c.v==null&&h!==s&&(c.v=h),(c.n==null||c.n===c.v)&&(c.n=h))}function g(y){return y.v!=null&&y.n!=null}return g(p)?p:g(c)?c:null})();if(l){a.value=[l.v];var u=s??l.n;a.itemName=[u],a.seriesName=[u]}return a}function qf(t){var e=t.get("data",!0);if(!e)return yo(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},zt).models[0]}function D3(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:yo(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},zt).models}function ab(t,e){return nb(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function nb(t,e,r,a,n,i){var o,s=5;if(yt(t))return Ze.Not;var l,u;if(a){var p=a[i];J(p)?(l=p.name,u=p.type):q(p)&&(l=p)}if(u!=null)return u==="ordinal"?Ze.Must:Ze.Not;if(e===tt){var c=t;if(r===Qa){for(var f=c[i],h=0;h<(f||[]).length&&h<s;h++)if((o=k(f[n+h]))!=null)return o}else for(var h=0;h<c.length&&h<s;h++){var d=c[n+h];if(d&&(o=k(d[i]))!=null)return o}}else if(e===Vt){var v=t;if(!l)return Ze.Not;for(var h=0;h<v.length&&h<s;h++){var m=v[h];if(m&&(o=k(m[l]))!=null)return o}}else if(e===rr){var g=t;if(!l)return Ze.Not;var f=g[l];if(!f||yt(f))return Ze.Not;for(var h=0;h<f.length&&h<s;h++)if((o=k(f[h]))!=null)return o}else if(e===Tt)for(var y=t,h=0;h<y.length&&h<s;h++){var m=y[h],b=vo(m);if(!W(b))return Ze.Not;if((o=k(b[i]))!=null)return o}function k(w){var _=q(w);if(w!=null&&isFinite(Number(w))&&w!=="")return _?Ze.Might:Ze.Not;if(_&&w!=="-")return Ze.Must}return Ze.Not}var Yl=(function(){function t(e){this.data=e.data||(e.sourceFormat===rr?{}:[]),this.sourceFormat=e.sourceFormat||qy,this.seriesLayoutBy=e.seriesLayoutBy||ar,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var r=this.dimensionsDefine=e.dimensionsDefine;if(r)for(var a=0;a<r.length;a++){var n=r[a];n.type==null&&ab(this,a)===Ze.Must&&(n.type="ordinal")}}return t})();function jf(t){return t instanceof Yl}function Zf(t,e,r){r=r||ob(t);var a=e.seriesLayoutBy,n=L3(t,r,a,e.sourceHeader,e.dimensions),i=new Yl({data:t,sourceFormat:r,seriesLayoutBy:a,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:le(e)});return i}function ib(t){return new Yl({data:t,sourceFormat:yt(t)?pa:Tt})}function A3(t){return new Yl({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:le(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function ob(t){var e=qy;if(yt(t))e=pa;else if(W(t)){t.length===0&&(e=tt);for(var r=0,a=t.length;r<a;r++){var n=t[r];if(n!=null){if(W(n)||yt(n)){e=tt;break}else if(J(n)){e=Vt;break}}}}else if(J(t)){for(var i in t)if(st(t,i)&&mt(t[i])){e=rr;break}}return e}function L3(t,e,r,a,n){var i,o;if(!t)return{dimensionsDefine:sb(n),startIndex:o,dimensionsDetectedCount:i};if(e===tt){var s=t;a==="auto"||a==null?lb(function(u){u!=null&&u!=="-"&&(q(u)?o==null&&(o=1):o=0)},r,s,10):o=be(a)?a:a?1:0,!n&&o===1&&(n=[],lb(function(u,p){n[p]=u!=null?u+"":""},r,s,1/0)),i=n?n.length:r===Qa?s.length:s[0]?s[0].length:null}else if(e===Vt)n||(n=M3(t));else if(e===rr)n||(n=[],A(t,function(u,p){n.push(p)}));else if(e===Tt){var l=vo(t[0]);i=W(l)&&l.length||1}return{startIndex:o,dimensionsDefine:sb(n),dimensionsDetectedCount:i}}function M3(t){for(var e=0,r;e<t.length&&!(r=t[e++]););if(r)return he(r)}function sb(t){if(t){var e=ae();return K(t,function(r,a){r=J(r)?r:{name:r};var n={name:r.name,displayName:r.displayName,type:r.type};if(n.name==null)return n;n.name+="",n.displayName==null&&(n.displayName=n.name);var i=e.get(n.name);return i?n.name+="-"+i.count++:e.set(n.name,{count:1}),n})}}function lb(t,e,r,a){if(e===Qa)for(var n=0;n<r.length&&n<a;n++)t(r[n]?r[n][0]:null,n);else for(var i=r[0]||[],n=0;n<i.length&&n<a;n++)t(i[n],n)}function ub(t){var e=t.sourceFormat;return e===Vt||e===rr}var on,sn,ln,un,pb,cb,fb=(function(){function t(e,r){var a=jf(e)?e:ib(e);this._source=a;var n=this._data=a.data,i=a.sourceFormat;a.seriesLayoutBy,i===pa&&(this._offset=0,this._dimSize=r,this._data=n),cb(this,n,a)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,r){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=(function(){var e=t.prototype;e.pure=!1,e.persistent=!0})(),t.internalField=(function(){var e;cb=function(o,s,l){var u=l.sourceFormat,p=l.seriesLayoutBy,c=l.startIndex,f=l.dimensionsDefine,h=pb[Jf(u,p)];if(H(o,h),u===pa)o.getItem=r,o.count=n,o.fillStorage=a;else{var d=db(u,p);o.getItem=ge(d,null,s,c,f);var v=gb(u,p);o.count=ge(v,null,s,c,f)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,p=u*o,c=0;c<u;c++)s[c]=l[p+c];return s},a=function(o,s,l,u){for(var p=this._data,c=this._dimSize,f=0;f<c;f++){for(var h=u[f],d=h[0]==null?1/0:h[0],v=h[1]==null?-1/0:h[1],m=s-o,g=l[f],y=0;y<m;y++){var b=p[y*c+f];g[o+y]=b,b<d&&(d=b),b>v&&(v=b)}h[0]=d,h[1]=v}},n=function(){return this._data?this._data.length/this._dimSize:0};pb=(e={},e[tt+"_"+ar]={pure:!0,appendData:i},e[tt+"_"+Qa]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Vt]={pure:!0,appendData:i},e[rr]={pure:!0,appendData:function(o){var s=this._data;A(o,function(l,u){for(var p=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)p.push(l[c])})}},e[Tt]={appendData:i},e[pa]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),t})(),Kl=function(t){W(t)||Ry("series.data or dataset.source must be an array.")};on={},on[tt+"_"+ar]=Kl,on[tt+"_"+Qa]=Kl,on[Vt]=Kl,on[rr]=function(t,e){for(var r=0;r<e.length;r++){var a=e[r].name;a==null&&Ry("dimension name must not be null/undefined.")}},on[Tt]=Kl;var hb=function(t,e,r,a){return t[a]},E3=(sn={},sn[tt+"_"+ar]=function(t,e,r,a){return t[a+e]},sn[tt+"_"+Qa]=function(t,e,r,a,n){a+=e;for(var i=n||[],o=t,s=0;s<o.length;s++){var l=o[s];i[s]=l?l[a]:null}return i},sn[Vt]=hb,sn[rr]=function(t,e,r,a,n){for(var i=n||[],o=0;o<r.length;o++){var s=r[o].name,l=s!=null?t[s]:null;i[o]=l?l[a]:null}return i},sn[Tt]=hb,sn);function db(t,e){var r=E3[Jf(t,e)];return r}var vb=function(t,e,r){return t.length},I3=(ln={},ln[tt+"_"+ar]=function(t,e,r){return Math.max(0,t.length-e)},ln[tt+"_"+Qa]=function(t,e,r){var a=t[0];return a?Math.max(0,a.length-e):0},ln[Vt]=vb,ln[rr]=function(t,e,r){var a=r[0].name,n=a!=null?t[a]:null;return n?n.length:0},ln[Tt]=vb,ln);function gb(t,e){var r=I3[Jf(t,e)];return r}var Qf=function(t,e,r){return t[e]},O3=(un={},un[tt]=Qf,un[Vt]=function(t,e,r){return t[r]},un[rr]=Qf,un[Tt]=function(t,e,r){var a=vo(t);return a instanceof Array?a[e]:a},un[pa]=Qf,un);function mb(t){var e=O3[t];return e}function Jf(t,e){return t===tt?t+"_"+e:t}function ai(t,e,r){if(t){var a=t.getRawDataItem(e);if(a!=null){var n=t.getStore(),i=n.getSource().sourceFormat;if(r!=null){var o=t.getDimensionIndex(r),s=n.getDimensionProperty(o);return mb(i)(a,o,s)}else{var l=a;return i===Tt&&(l=vo(a)),l}}}}var R3=(function(){function t(e,r){this._encode=e,this._schema=r}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t})();function B3(t,e){var r={},a=r.encode={},n=ae(),i=[],o=[],s={};A(t.dimensions,function(f){var h=t.getDimensionInfo(f),d=h.coordDim;if(d){var v=h.coordDimIndex;eh(a,d)[v]=f,h.isExtraCoord||(n.set(d,1),F3(h.type)&&(i[0]=f),eh(s,d)[v]=t.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(f)}Xy.each(function(m,g){var y=eh(a,g),b=h.otherDims[g];b!=null&&b!==!1&&(y[b]=h.name)})});var l=[],u={};n.each(function(f,h){var d=a[h];u[h]=d[0],l=l.concat(d)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=K(l,function(f){return t.getDimensionInfo(f).storeDimIndex}),r.encodeFirstDimNotExtra=u;var p=a.label;p&&p.length&&(i=p.slice());var c=a.tooltip;return c&&c.length?o=c.slice():o.length||(o=i.slice()),a.defaultedLabel=i,a.defaultedTooltip=o,r.userOutput=new R3(s,e),r}function eh(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function N3(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function F3(t){return!(t==="ordinal"||t==="time")}var Xl=(function(){function t(e){this.otherDims={},e!=null&&H(this,e)}return t})();function ql(t,e){var r=e&&e.type;return r==="ordinal"?t:(r==="time"&&!be(t)&&t!=null&&t!=="-"&&(t=+Yn(t)),t==null||t===""?NaN:Number(t))}ae({number:function(t){return parseFloat(t)},time:function(t){return+Yn(t)},trim:function(t){return q(t)?br(t):t}});var z3=(function(){function t(e,r){var a=e==="desc";this._resultLT=a?1:-1,r==null&&(r=a?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return t.prototype.evaluate=function(e,r){var a=be(e)?e:wl(e),n=be(r)?r:wl(r),i=isNaN(a),o=isNaN(n);if(i&&(a=this._incomparable),o&&(n=this._incomparable),i&&o){var s=q(e),l=q(r);s&&(a=l?e:0),l&&(n=s?r:0)}return a<n?this._resultLT:a>n?-this._resultLT:0},t})();function yb(t){var e="",r=-1/0,a=-1/0,n=1/0,i=1/0;return t&&(t.g!=null&&(e+="G"+t.g,r=t.g),t.ge!=null&&(e+="GE"+t.ge,a=t.ge),t.l!=null&&(e+="L"+t.l,n=t.l),t.le!=null&&(e+="LE"+t.le,i=t.le)),{key:e,g:r,ge:a,l:n,le:i}}function bb(t,e){return e>t.g&&e>=t.ge&&e<t.l&&e<=t.le}var H3=typeof Uint32Array===Xn?Array:Uint32Array,V3=typeof Uint16Array===Xn?Array:Uint16Array,kb=typeof Int32Array===Xn?Array:Int32Array,wb=typeof Float64Array===Xn?Array:Float64Array,_b={float:wb,int:kb,ordinal:Array,number:Array,time:wb},th;function ni(t){return t>65535?H3:V3}function U3(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function xb(t,e,r,a,n){var i=_b[r||"float"];if(n){var o=t[e],s=o&&o.length;if(s!==a){for(var l=new i(a),u=0;u<s;u++)l[u]=o[u];t[e]=l}}else t[e]=new i(a)}var rh=(function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=ae()}return t.prototype.initData=function(e,r,a){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=e.getSource(),i=this.defaultDimValueGetter=th[n.sourceFormat];this._dimValueGetter=a||i,this._rawExtent=[],ub(n),this._dimensions=K(r,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,e.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(e,r){var a=this._calcDimNameToIdx,n=this._dimensions,i=a.get(e);if(i!=null){if(n[i].type===r)return i}else i=n.length;return n[i]={type:r},a.set(e,i),this._chunks[i]=new _b[r||"float"](this._rawCount),this._rawExtent[i]=Ht(),i},t.prototype.collectOrdinalMeta=function(e,r){var a=this._chunks[e],n=this._dimensions[e],i=this._rawExtent,o=n.ordinalOffset||0,s=a.length;o===0&&(i[e]=Ht());for(var l=i[e],u=o;u<s;u++){var p=a[u]=r.parseAndCollect(a[u]);isNaN(p)||(l[0]=Math.min(p,l[0]),l[1]=Math.max(p,l[1]))}n.ordinalMeta=r,n.ordinalOffset=s,n.type="ordinal"},t.prototype.getOrdinalMeta=function(e){var r=this._dimensions[e],a=r.ordinalMeta;return a},t.prototype.getDimensionProperty=function(e){var r=this._dimensions[e];return r&&r.property},t.prototype.appendData=function(e){var r=this._provider,a=this.count();r.appendData(e);var n=r.count();return r.persistent||(n+=a),a<n&&this._initDataFromProvider(a,n,!0),[a,n]},t.prototype.appendValues=function(e,r){for(var a=this._chunks,n=this._dimensions,i=n.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,r||0),u=0;u<i;u++){var p=n[u];xb(a,u,p.type,l,!0)}for(var c=[],f=s;f<l;f++)for(var h=f-s,d=0;d<i;d++){var p=n[d],v=th.arrayRows.call(this,e[h]||c,p.property,h,d);a[d][f]=v;var m=o[d];v<m[0]&&(m[0]=v),v>m[1]&&(m[1]=v)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(e,r,a){for(var n=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=K(o,function(y){return y.property}),p=0;p<s;p++){var c=o[p];l[p]||(l[p]=Ht()),xb(i,p,c.type,r,a)}if(n.fillStorage)n.fillStorage(e,r,i,l);else for(var f=[],h=e;h<r;h++){f=n.getItem(h,f);for(var d=0;d<s;d++){var v=i[d],m=this._dimValueGetter(f,u[d],h,d);v[h]=m;var g=l[d];m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=r,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,r){if(!(r>=0&&r<this._count))return NaN;var a=this._chunks[e];return a?a[this.getRawIndex(r)]:NaN},t.prototype.getValues=function(e,r){var a=[],n=[];if(r==null){r=e,e=[];for(var i=0;i<this._dimensions.length;i++)n.push(i)}else n=e;for(var i=0,o=n.length;i<o;i++)a.push(this.get(n[i],r));return a},t.prototype.getByRawIndex=function(e,r){if(!(r>=0&&r<this._rawCount))return NaN;var a=this._chunks[e];return a?a[r]:NaN},t.prototype.getSum=function(e){var r=this._chunks[e],a=0;if(r)for(var n=0,i=this.count();n<i;n++){var o=this.get(e,n);isNaN(o)||(a+=o)}return a},t.prototype.getMedian=function(e){var r=[];this.each([e],function(n){isNaN(n)||r.push(n)}),nf(r);var a=this.count();return a===0?0:a%2===1?r[(a-1)/2]:(r[a/2]+r[a/2-1])/2},t.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var r=this._indices,a=r[e];if(a!=null&&a<this._count&&a===e)return e;for(var n=0,i=this._count-1;n<=i;){var o=(n+i)/2|0;if(r[o]<e)n=o+1;else if(r[o]>e)i=o-1;else return o}return-1},t.prototype.getIndices=function(){var e,r=this._indices;if(r){var a=r.constructor,n=this._count;if(a===Array){e=new a(n);for(var i=0;i<n;i++)e[i]=r[i]}else e=new a(r.buffer,0,n)}else{var a=ni(this._rawCount);e=new a(this.count());for(var i=0;i<e.length;i++)e[i]=i}return e},t.prototype.filter=function(e,r){if(!this._count)return this;for(var a=this.clone(),n=a.count(),i=ni(a._rawCount),o=new i(n),s=[],l=e.length,u=0,p=e[0],c=a._chunks,f=0;f<n;f++){var h=void 0,d=a.getRawIndex(f);if(l===0)h=r(f);else if(l===1){var v=c[p][d];h=r(v,f)}else{for(var m=0;m<l;m++)s[m]=c[e[m]][d];s[m]=f,h=r.apply(null,s)}h&&(o[u++]=d)}return u<n&&(a._indices=o),a._count=u,a._extent=[],a._updateGetRawIdx(),a},t.prototype.selectRange=function(e){var r=this.clone(),a=r._count;if(!a)return this;var n=he(e),i=n.length;if(!i)return this;var o=r.count(),s=ni(r._rawCount),l=new s(o),u=0,p=n[0],c=e[p][0],f=e[p][1],h=r._chunks,d=!1;if(!r._indices){var v=0;if(i===1){for(var m=h[n[0]],g=0;g<a;g++){var y=m[g];(y>=c&&y<=f||isNaN(y))&&(l[u++]=v),v++}d=!0}else if(i===2){for(var m=h[n[0]],b=h[n[1]],k=e[n[1]][0],w=e[n[1]][1],g=0;g<a;g++){var y=m[g],_=b[g];(y>=c&&y<=f||isNaN(y))&&(_>=k&&_<=w||isNaN(_))&&(l[u++]=v),v++}d=!0}}if(!d)if(i===1)for(var g=0;g<o;g++){var x=r.getRawIndex(g),y=h[n[0]][x];(y>=c&&y<=f||isNaN(y))&&(l[u++]=x)}else for(var g=0;g<o;g++){for(var T=!0,x=r.getRawIndex(g),C=0;C<i;C++){var P=n[C],y=h[P][x];(y<e[P][0]||y>e[P][1])&&(T=!1)}T&&(l[u++]=r.getRawIndex(g))}return u<o&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},t.prototype.map=function(e,r){var a=this.clone(e);return this._updateDims(a,e,r),a},t.prototype.modify=function(e,r){this._updateDims(this,e,r)},t.prototype._updateDims=function(e,r,a){for(var n=e._chunks,i=[],o=r.length,s=e.count(),l=[],u=e._rawExtent,p=0;p<r.length;p++)u[r[p]]=Ht();for(var c=0;c<s;c++){for(var f=e.getRawIndex(c),h=0;h<o;h++)l[h]=n[r[h]][f];l[o]=c;var d=a&&a.apply(null,l);if(d!=null){typeof d!="object"&&(i[0]=d,d=i);for(var p=0;p<d.length;p++){var v=r[p],m=d[p],g=u[v],y=n[v];y&&(y[f]=m),m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}}}},t.prototype.lttbDownSample=function(e,r){var a=this.clone([e],!0),n=a._chunks,i=n[e],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),p,c,f,h=new(ni(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var d=1;d<o-1;d+=l){for(var v=Math.min(d+l,o-1),m=Math.min(d+l*2,o),g=(m+v)/2,y=0,b=v;b<m;b++){var k=this.getRawIndex(b),w=i[k];isNaN(w)||(y+=w)}y/=m-v;var _=d,x=Math.min(d+l,o),T=d-1,C=i[u];p=-1,f=_;for(var P=-1,S=0,b=_;b<x;b++){var k=this.getRawIndex(b),w=i[k];if(isNaN(w)){S++,P<0&&(P=k);continue}c=Math.abs((T-g)*(w-C)-(T-b)*(y-C)),c>p&&(p=c,f=k)}S>0&&S<x-_&&(h[s++]=Math.min(P,f),f=Math.max(P,f)),h[s++]=f,u=f}return h[s++]=this.getRawIndex(o-1),a._count=s,a._indices=h,a.getRawIndex=this._getRawIdx,a},t.prototype.minmaxDownSample=function(e,r){for(var a=this.clone([e],!0),n=a._chunks,i=Math.floor(1/r),o=n[e],s=this.count(),l=new(ni(this._rawCount))(Math.ceil(s/i)*2),u=0,p=0;p<s;p+=i){var c=p,f=o[this.getRawIndex(c)],h=p,d=o[this.getRawIndex(h)],v=i;p+i>s&&(v=s-p);for(var m=0;m<v;m++){var g=this.getRawIndex(p+m),y=o[g];y<f&&(f=y,c=p+m),y>d&&(d=y,h=p+m)}var b=this.getRawIndex(c),k=this.getRawIndex(h);c<h?(l[u++]=b,l[u++]=k):(l[u++]=k,l[u++]=b)}return a._count=u,a._indices=l,a._updateGetRawIdx(),a},t.prototype.downSample=function(e,r,a,n){for(var i=this.clone([e],!0),o=i._chunks,s=[],l=Math.floor(1/r),u=o[e],p=this.count(),c=i._rawExtent[e]=Ht(),f=new(ni(this._rawCount))(Math.ceil(p/l)),h=0,d=0;d<p;d+=l){l>p-d&&(l=p-d,s.length=l);for(var v=0;v<l;v++){var m=this.getRawIndex(d+v);s[v]=u[m]}var g=a(s),y=this.getRawIndex(Math.min(d+n(s,g)||0,p-1));u[y]=g,g<c[0]&&(c[0]=g),g>c[1]&&(c[1]=g),f[h++]=y}return i._count=h,i._indices=f,i._updateGetRawIdx(),i},t.prototype.each=function(e,r){if(this._count)for(var a=e.length,n=this._chunks,i=0,o=this.count();i<o;i++){var s=this.getRawIndex(i);switch(a){case 0:r(i);break;case 1:r(n[e[0]][s],i);break;case 2:r(n[e[0]][s],n[e[1]][s],i);break;default:for(var l=0,u=[];l<a;l++)u[l]=n[e[l]][s];u[l]=i,r.apply(null,u)}}},t.prototype.getDataExtent=function(e,r){var a=this._chunks[e],n=Ht();if(!a)return n;var i=this.count(),o=!this._indices&&!r;if(o)return this._rawExtent[e].slice();var s=this._extent,l=s[e]||(s[e]={}),u=yb(r),p=u.key,c=l[p];if(c)return c.slice();for(var f=n[0],h=n[1],d=0;d<i;d++){var v=this.getRawIndex(d),m=a[v];(!r||bb(u,m))&&(m<f&&(f=m),m>h&&(h=m))}return l[p]=[f,h]},t.prototype.getRawDataItem=function(e){var r=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(r);for(var a=[],n=this._chunks,i=0;i<n.length;i++)a.push(n[i][r]);return a},t.prototype.clone=function(e,r){var a=new t,n=this._chunks,i=e&&ea(e,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<n.length;o++)a._chunks[o]=i[o]?U3(n[o]):n[o];else a._chunks=n;return this._copyCommonProps(a),r||(a._indices=this._cloneIndices()),a._updateGetRawIdx(),a},t.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=le(this._extent),e._rawExtent=le(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,r=void 0;if(e===Array){var a=this._indices.length;r=new e(a);for(var n=0;n<a;n++)r[n]=this._indices[n]}else r=new e(this._indices);return r}return null},t.prototype._getRawIdxIdentity=function(e){return e},t.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=(function(){function e(r,a,n,i){return ql(r[i],this._dimensions[i])}th={arrayRows:e,objectRows:function(r,a,n,i){return ql(r[a],this._dimensions[i])},keyedColumns:e,original:function(r,a,n,i){var o=r&&(r.value==null?r:r.value);return ql(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(r,a,n,i){return r[i]}}})(),t})(),G3=_e(),W3={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Pb=(function(){function t(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=Tb(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return Z(this._dimNameMap.get(e),-1)},t.prototype.getSourceDimension=function(e){var r=this.source.dimensionsDefine;if(r)return r[e]},t.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,r=ub(this.source),a=!Cb(e),n="",i=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,p=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)l=r?c.name:null,u=c.type,p=c.ordinalMeta,s++;else{var f=this.getSourceDimension(o);f&&(l=r?f.name:null,u=f.type)}i.push({property:l,type:u,ordinalMeta:p}),r&&l!=null&&(!c||!c.isCalculationCoord)&&(n+=a?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),n+="$",n+=W3[u]||"f",p&&(n+=p.uid),n+="$"}var h=this.source,d=[h.seriesLayoutBy,h.startIndex,n].join("$$");return{dimensions:i,hash:d}},t.prototype.makeOutputDimensionNames=function(){for(var e=[],r=0,a=0;r<this._fullDimCount;r++){var n=void 0,i=this.dimensions[a];if(i&&i.storeDimIndex===r)i.isCalculationCoord||(n=i.name),a++;else{var o=this.getSourceDimension(r);o&&(n=o.name)}e.push(n)}return e},t.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t})();function Sb(t){return t instanceof Pb}function ah(t){for(var e=ae(),r=0;r<(t||[]).length;r++){var a=t[r],n=J(a)?a.name:a;n!=null&&e.get(n)==null&&e.set(n,r)}return e}function Tb(t){var e=G3(t);return e.dimNameMap||(e.dimNameMap=ah(t.dimensionsDefine))}function Cb(t){return t>30}var Ao=J,ha=K,$3=typeof Int32Array>"u"?Array:Int32Array,Y3="e\0\0",Db=-1,K3=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],X3=["_approximateExtent"],Ab,jl,Lo,Mo,nh,Eo,ih,Lb=(function(){function t(e,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var a,n=!1;Sb(e)?(a=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(n=!0,a=e),a=a||["x","y"];for(var i={},o=[],s={},l=!1,u={},p=0;p<a.length;p++){var c=a[p],f=q(c)?new Xl({name:c}):c instanceof Xl?c:new Xl(c),h=f.name;f.type=f.type||"float",f.coordDim||(f.coordDim=h,f.coordDimIndex=0);var d=f.otherDims=f.otherDims||{};o.push(h),i[h]=f,u[h]!=null&&(l=!0),f.createInvertedIndices&&(s[h]=[]),n&&(f.storeDimIndex=p),d.itemName===0&&(this._nameDimIdx=f.storeDimIndex),d.itemId===0&&(this._idDimIdx=f.storeDimIndex)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var v=this._dimIdxToName=ae();A(o,function(m){v.set(i[m].storeDimIndex,m)})}}return t.prototype.getDimension=function(e){var r=this._recognizeDimIndex(e);if(r==null)return e;if(r=e,!this._dimOmitted)return this.dimensions[r];var a=this._dimIdxToName.get(r);if(a!=null)return a;var n=this._schema.getSourceDimension(r);if(n)return n.name},t.prototype.getDimensionIndex=function(e){var r=this._recognizeDimIndex(e);if(r!=null)return r;if(e==null)return-1;var a=this._getDimInfo(e);return a?a.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},t.prototype._recognizeDimIndex=function(e){if(be(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},t.prototype._getStoreDimIndex=function(e){var r=this.getDimensionIndex(e);return r},t.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},t.prototype._initGetDimensionInfo=function(e){var r=this._dimInfos;this._getDimInfo=e?function(a){return r.hasOwnProperty(a)?r[a]:void 0}:function(a){return r[a]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(e,r){var a=this._dimSummary;if(r==null)return a.encodeFirstDimNotExtra[e];var n=a.encode[e];return n?n[r]:null},t.prototype.mapDimensionsAll=function(e){var r=this._dimSummary,a=r.encode[e];return(a||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(e,r,a){var n=this,i;if(e instanceof rh&&(i=e),!i){var o=this.dimensions,s=jf(e)||mt(e)?new fb(e,o.length):e;i=new rh;var l=ha(o,function(u){return{type:n._dimInfos[u].type,property:u}});i.initData(s,l,a)}this._store=i,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=B3(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(e){var r=this._store.appendData(e);this._doInit(r[0],r[1])},t.prototype.appendValues=function(e,r){var a=this._store.appendValues(e,r&&r.length),n=a.start,i=a.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=n;s<i;s++){var l=s-n;this._nameList[s]=r[l],o&&ih(this,s)}},t.prototype._updateOrdinalMeta=function(){for(var e=this._store,r=this.dimensions,a=0;a<r.length;a++){var n=this._dimInfos[r[a]];n.ordinalMeta&&e.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==pa&&!e.fillStorage},t.prototype._doInit=function(e,r){if(!(e>=r)){var a=this._store,n=a.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===Tt;if(l&&!n.pure)for(var u=[],p=e;p<r;p++){var c=n.getItem(p,u);if(!this.hasItemOption&&ID(c)&&(this.hasItemOption=!0),c){var f=c.name;i[p]==null&&f!=null&&(i[p]=Ar(f,null));var h=c.id;o[p]==null&&h!=null&&(o[p]=Ar(h,null))}}if(this._shouldMakeIdFromName())for(var p=e;p<r;p++)ih(this,p);Ab(this)}},t.prototype.getApproximateExtent=function(e,r){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e),r)},t.prototype.setApproximateExtent=function(e,r){r=this.getDimension(r),this._approximateExtent[r]=e.slice()},t.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},t.prototype.setCalculationInfo=function(e,r){Ao(e)?H(this._calculationInfo,e):this._calculationInfo[e]=r},t.prototype.getName=function(e){var r=this.getRawIndex(e),a=this._nameList[r];return a==null&&this._nameDimIdx!=null&&(a=Lo(this,this._nameDimIdx,r)),a==null&&(a=""),a},t.prototype._getCategory=function(e,r){var a=this._store.get(e,r),n=this._store.getOrdinalMeta(e);return n?n.categories[a]:a},t.prototype.getId=function(e){return jl(this,this.getRawIndex(e))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(e,r){var a=this._store,n=this._dimInfos[e];if(n)return a.get(n.storeDimIndex,r)},t.prototype.getByRawIndex=function(e,r){var a=this._store,n=this._dimInfos[e];if(n)return a.getByRawIndex(n.storeDimIndex,r)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e),null)},t.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},t.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},t.prototype.getValues=function(e,r){var a=this,n=this._store;return W(e)?n.getValues(ha(e,function(i){return a._getStoreDimIndex(i)}),r):n.getValues(e)},t.prototype.hasValue=function(e){for(var r=this._dimSummary.dataDimIndicesOnCoord,a=0,n=r.length;a<n;a++)if(isNaN(this._store.get(r[a],e)))return!1;return!0},t.prototype.indexOfName=function(e){for(var r=0,a=this._store.count();r<a;r++)if(this.getName(r)===e)return r;return-1},t.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},t.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},t.prototype.rawIndexOf=function(e,r){var a=e&&this._invertedIndicesMap[e],n=a&&a[r];return n==null||isNaN(n)?Db:n},t.prototype.each=function(e,r,a){re(e)&&(a=r,r=e,e=[]);var n=a||this,i=ha(Mo(e),this._getStoreDimIndex,this);this._store.each(i,n?ge(r,n):r)},t.prototype.filterSelf=function(e,r,a){re(e)&&(a=r,r=e,e=[]);var n=a||this,i=ha(Mo(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,n?ge(r,n):r),this},t.prototype.selectRange=function(e){var r=this,a={},n=he(e);return A(n,function(i){var o=r._getStoreDimIndex(i);a[o]=e[i]}),this._store=this._store.selectRange(a),this},t.prototype.mapArray=function(e,r,a){re(e)&&(a=r,r=e,e=[]),a=a||this;var n=[];return this.each(e,function(){n.push(r&&r.apply(this,arguments))},a),n},t.prototype.map=function(e,r,a,n){var i=a||n||this,o=ha(Mo(e),this._getStoreDimIndex,this),s=Eo(this);return s._store=this._store.map(o,i?ge(r,i):r),s},t.prototype.modify=function(e,r,a,n){var i=a||n||this,o=ha(Mo(e),this._getStoreDimIndex,this);this._store.modify(o,i?ge(r,i):r)},t.prototype.downSample=function(e,r,a,n){var i=Eo(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),r,a,n),i},t.prototype.minmaxDownSample=function(e,r){var a=Eo(this);return a._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),r),a},t.prototype.lttbDownSample=function(e,r){var a=Eo(this);return a._store=this._store.lttbDownSample(this._getStoreDimIndex(e),r),a},t.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},t.prototype.getItemModel=function(e){var r=this.hostModel,a=this.getRawDataItem(e);return new Ae(a,r,r&&r.ecModel)},t.prototype.diff=function(e){var r=this;return new S3(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(a){return jl(e,a)},function(a){return jl(r,a)})},t.prototype.getVisual=function(e){var r=this._visual;return r&&r[e]},t.prototype.setVisual=function(e,r){this._visual=this._visual||{},Ao(e)?H(this._visual,e):this._visual[e]=r},t.prototype.getItemVisual=function(e,r){var a=this._itemVisuals[e],n=a&&a[r];return n??this.getVisual(r)},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(e,r){var a=this._itemVisuals,n=a[e];n||(n=a[e]={});var i=n[r];return i==null&&(i=this.getVisual(r),W(i)?i=i.slice():Ao(i)&&(i=H({},i)),n[r]=i),i},t.prototype.setItemVisual=function(e,r,a){var n=this._itemVisuals[e]||{};this._itemVisuals[e]=n,Ao(r)?H(n,r):n[r]=a},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){Ao(e)?H(this._layout,e):this._layout[e]=r},t.prototype.getLayout=function(e){return this._layout[e]},t.prototype.getItemLayout=function(e){return this._itemLayouts[e]},t.prototype.setItemLayout=function(e,r,a){this._itemLayouts[e]=a?H(this._itemLayouts[e]||{},r):r},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,r){var a=this.hostModel&&this.hostModel.seriesIndex;gf(a,this.dataType,e,r),this._graphicEls[e]=r},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,r){A(this._graphicEls,function(a,n){a&&e&&e.call(r,a,n)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:ha(this.dimensions,this._getDimInfo,this),this.hostModel)),nh(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,r){var a=this[e];re(a)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var n=a.apply(this,arguments);return r.apply(this,[n].concat(Zp(arguments)))})},t.internalField=(function(){Ab=function(e){var r=e._invertedIndicesMap;A(r,function(a,n){var i=e._dimInfos[n],o=i.ordinalMeta,s=e._store;if(o){a=r[n]=new $3(o.categories.length);for(var l=0;l<a.length;l++)a[l]=Db;for(var l=0;l<s.count();l++)a[s.get(i.storeDimIndex,l)]=l}})},Lo=function(e,r,a){return Ar(e._getCategory(r,a),null)},jl=function(e,r){var a=e._idList[r];return a==null&&e._idDimIdx!=null&&(a=Lo(e,e._idDimIdx,r)),a==null&&(a=Y3+r),a},Mo=function(e){return W(e)||(e=e!=null?[e]:[]),e},Eo=function(e){var r=new t(e._schema?e._schema:ha(e.dimensions,e._getDimInfo,e),e.hostModel);return nh(r,e),r},nh=function(e,r){A(K3.concat(r.__wrappedMethods||[]),function(a){r.hasOwnProperty(a)&&(e[a]=r[a])}),e.__wrappedMethods=r.__wrappedMethods,A(X3,function(a){e[a]=le(r[a])}),e._calculationInfo=H({},r._calculationInfo)},ih=function(e,r){var a=e._nameList,n=e._idList,i=e._nameDimIdx,o=e._idDimIdx,s=a[r],l=n[r];if(s==null&&i!=null&&(a[r]=s=Lo(e,i,r)),l==null&&o!=null&&(n[r]=l=Lo(e,o,r)),l==null&&s!=null){var u=e._nameRepeatCount,p=u[s]=(u[s]||0)+1;l=s,p>1&&(l+="__ec__"+p),n[r]=l}}})(),t})();function Mb(t,e){jf(t)||(t=ib(t)),e=e||{};var r=e.coordDimensions||[],a=e.dimensionsDefine||t.dimensionsDefine||[],n=ae(),i=[],o=q3(t,r,a,e.dimensionsCount),s=e.canOmitUnusedDimensions&&Cb(o),l=a===t.dimensionsDefine,u=l?Tb(t):ah(a),p=e.encodeDefine;!p&&e.encodeDefaulter&&(p=e.encodeDefaulter(t,o));for(var c=ae(p),f=new kb(o),h=0;h<f.length;h++)f[h]=-1;function d(C){var P=f[C];if(P<0){var S=a[C],L=J(S)?S:{name:S},D=new Xl,M=L.name;M!=null&&u.get(M)!=null&&(D.name=D.displayName=M),L.type!=null&&(D.type=L.type),L.displayName!=null&&(D.displayName=L.displayName);var I=i.length;return f[C]=I,D.storeDimIndex=C,i.push(D),D}return i[P]}if(!s)for(var h=0;h<o;h++)d(h);c.each(function(C,P){var S=ut(C).slice();if(S.length===1&&!q(S[0])&&S[0]<0){c.set(P,!1);return}var L=c.set(P,[]);A(S,function(D,M){var I=q(D)?u.get(D):D;I!=null&&I<o&&(L[M]=I,m(d(I),P,M))})});var v=0;A(r,function(C){var P,S,L,D;if(q(C))P=C,D={};else{D=C,P=D.name;var M=D.ordinalMeta;D.ordinalMeta=null,D=H({},D),D.ordinalMeta=M,S=D.dimsDef,L=D.otherDims,D.name=D.coordDim=D.coordDimIndex=D.dimsDef=D.otherDims=null}var I=c.get(P);if(I!==!1){if(I=ut(I),!I.length)for(var E=0;E<(S&&S.length||1);E++){for(;v<o&&d(v).coordDim!=null;)v++;v<o&&I.push(v++)}A(I,function(O,R){var B=d(O);if(l&&D.type!=null&&(B.type=D.type),m(pe(B,D),P,R),B.name==null&&S){var N=S[R];!J(N)&&(N={name:N}),B.name=B.displayName=N.name,B.defaultTooltip=N.defaultTooltip}L&&pe(B.otherDims,L)})}});function m(C,P,S){Xy.get(P)!=null?C.otherDims[P]=S:(C.coordDim=P,C.coordDimIndex=S,n.set(P,!0))}var g=e.generateCoord,y=e.generateCoordCount,b=y!=null;y=g?y||1:0;var k=g||"value";function w(C){C.name==null&&(C.name=C.coordDim)}if(s)A(i,function(C){w(C)}),i.sort(function(C,P){return C.storeDimIndex-P.storeDimIndex});else for(var _=0;_<o;_++){var x=d(_),T=x.coordDim;T==null&&(x.coordDim=j3(k,n,b),x.coordDimIndex=0,(!g||y<=0)&&(x.isExtraCoord=!0),y--),w(x),x.type==null&&(ab(t,_)===Ze.Must||x.isExtraCoord&&(x.otherDims.itemName!=null||x.otherDims.seriesName!=null))&&(x.type="ordinal")}return hf(i,function(C){return C.name},function(C,P){P>0&&(C.name=C.name+(P-1))}),new Pb({source:t,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function q3(t,e,r,a){var n=Math.max(t.dimensionsDetectedCount||1,e.length,r.length,a||0);return A(e,function(i){var o;J(i)&&(o=i.dimsDef)&&(n=Math.max(n,o.length))}),n}function j3(t,e,r){if(r||e.hasKey(t)){for(var a=0;e.hasKey(t+a);)a++;t+=a}return e.set(t,!0),t}var Zl={},oh={},sh=(function(){function t(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return t.prototype.create=function(e,r){this._nonSeriesBoxMasterList=a(Zl),this._normalMasterList=a(oh);function a(n,i){var o=[];return A(n,function(s,l){var u=s.create(e,r);o=o.concat(u||[])}),o}},t.prototype.update=function(e,r){A(this._normalMasterList,function(a){a.update&&a.update(e,r)})},t.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},t.register=function(e,r){if(e==="matrix"||e==="calendar"){Zl[e]=r;return}oh[e]=r},t.get=function(e){return oh[e]||Zl[e]},t})();function Z3(t){return!!Zl[t]}var Q3=1,Eb=2;function J3(t){Ib.set(t.fullType,{getCoord2:void 0}).getCoord2=t.getCoord2}var Ib=ae();function Ob(t){var e=t.getShallow("coord",!0),r=Q3;if(e==null){var a=Ib.get(t.type);a&&a.getCoord2&&(r=Eb,e=a.getCoord2(t))}return{coord:e,from:r}}var ii=0,Ql=1,eL=2;function tL(t,e){var r=t.getShallow("coordinateSystem"),a=t.getShallow("coordinateSystemUsage",!0),n=ii;if(r){var i=t.mainType==="series";a==null&&(a=i?"data":"box"),a==="data"?(n=Ql,i||(n=ii)):a==="box"&&(n=eL,!i&&!Z3(r)&&(n=ii))}return{coordSysType:r,kind:n}}function rL(t){var e=t.targetModel,r=t.coordSysType,a=t.coordSysProvider,n=t.isDefaultDataCoordSys,i=tL(e),o=i.kind,s=i.coordSysType;if(n&&o!==Ql&&(o=Ql,s=r),o===ii||s!==r)return ii;var l=a(r,e);return l?(o===Ql?e.coordinateSystem=l:e.boxCoordinateSystem=l,o):ii}var aL=(function(){function t(e){this.coordSysDims=[],this.axisMap=ae(),this.categoryAxisMap=ae(),this.coordSysName=e}return t})();function nL(t){var e=t.get("coordinateSystem"),r=new aL(e),a=iL[e];if(a)return a(t,r,r.axisMap,r.categoryAxisMap),r}var iL={cartesian2d:function(t,e,r,a){var n=t.getReferringComponents("xAxis",zt).models[0],i=t.getReferringComponents("yAxis",zt).models[0];e.coordSysDims=["x","y"],r.set("x",n),r.set("y",i),oi(n)&&(a.set("x",n),e.firstCategoryDimIndex=0),oi(i)&&(a.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,r,a){var n=t.getReferringComponents("singleAxis",zt).models[0];e.coordSysDims=["single"],r.set("single",n),oi(n)&&(a.set("single",n),e.firstCategoryDimIndex=0)},polar:function(t,e,r,a){var n=t.getReferringComponents("polar",zt).models[0],i=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],r.set("radius",i),r.set("angle",o),oi(i)&&(a.set("radius",i),e.firstCategoryDimIndex=0),oi(o)&&(a.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(t,e,r,a){e.coordSysDims=["lng","lat"]},parallel:function(t,e,r,a){var n=t.ecModel,i=n.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();A(i.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),p=o[l];r.set(p,u),oi(u)&&(a.set(p,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})},matrix:function(t,e,r,a){var n=t.getReferringComponents("matrix",zt).models[0];e.coordSysDims=["x","y"];var i=n.getDimensionModel("x"),o=n.getDimensionModel("y");r.set("x",i),r.set("y",o),a.set("x",i),a.set("y",o)}};function oi(t){return t.get("type")==="category"}function oL(t,e,r){r=r||{};var a=r.byIndex,n=r.stackedCoordDimension,i,o,s;sL(e)?i=e:(o=e.schema,i=o.dimensions,s=e.store);var l=!!(t&&t.get("stack")),u,p,c,f,h=!0;function d(k){return k.type!=="ordinal"&&k.type!=="time"}if(A(i,function(k,w){q(k)&&(i[w]=k={name:k}),d(k)||(h=!1)}),A(i,function(k,w){l&&!k.isExtraCoord&&(!a&&!u&&k.ordinalMeta&&(u=k),!p&&d(k)&&(!h||k.coordDim!=="x"&&k.coordDim!=="angle")&&(!n||n===k.coordDim)&&(p=k))}),p&&!a&&!u&&(a=!0),p){c="__\0ecstackresult_"+t.id,f="__\0ecstackedover_"+t.id,u&&(u.createInvertedIndices=!0);var v=p.coordDim,m=p.type,g=0;A(i,function(k){k.coordDim===v&&g++});var y={name:c,coordDim:v,coordDimIndex:g,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},b={name:f,coordDim:f,coordDimIndex:g+1,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(y.storeDimIndex=s.ensureCalculationDimension(f,m),b.storeDimIndex=s.ensureCalculationDimension(c,m)),o.appendCalculationDimension(y),o.appendCalculationDimension(b)):(i.push(y),i.push(b))}return{stackedDimension:p&&p.name,stackedByDimension:u&&u.name,isStackedByIndex:a,stackedOverDimension:f,stackResultDimension:c}}function sL(t){return!Sb(t.schema)}function si(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function lL(t,e){return si(t,e)?t.getCalculationInfo("stackResultDimension"):e}function uL(t,e){var r=t.get("coordinateSystem"),a=sh.get(r),n;return e&&e.coordSysDims&&(n=K(e.coordSysDims,function(i){var o={name:i},s=e.axisMap.get(i);if(s){var l=s.get("type");o.type=N3(l)}return o})),n||(n=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),n}function pL(t,e,r){var a,n;return r&&A(t,function(i,o){var s=i.coordDim,l=r.categoryAxisMap.get(s);l&&(a==null&&(a=o),i.ordinalMeta=l.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(n=!0)}),!n&&a!=null&&(t[a].otherDims.itemName=0),a}function Jl(t,e,r){r=r||{};var a=e.getSourceManager(),n,i=!1;n=a.getSource(),i=n.sourceFormat===Tt;var o=nL(e),s=uL(e,o),l=r.useEncodeDefaulter,u=re(l)?l:l?ze(C3,s,e):null,p={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},c=Mb(n,p),f=pL(c.dimensions,r.createInvertedIndices,o),h=i?null:a.getSharedDataStore(c),d=oL(e,{schema:c,store:h}),v=new Lb(c,e);v.setCalculationInfo(d);var m=f!=null&&cL(n)?function(g,y,b,k){return k===f?b:this.defaultDimValueGetter(g,y,b,k)}:null;return v.hasItemOption=!1,v.initData(i?n:h,null,m),v}function cL(t){if(t.sourceFormat===Tt){var e=fL(t.data||[]);return!W(vo(e))}}function fL(t){for(var e=0;e<t.length&&t[e]==null;)e++;return t[e]}var hL=Math.round(Math.random()*10);function Io(t){return[t||"",hL++].join("_")}function dL(t){var e={};t.registerSubTypeDefaulter=function(r,a){var n=kr(r);e[n.main]=a},t.determineSubType=function(r,a){var n=a.type;if(!n){var i=kr(r).main;t.hasSubTypes(r)&&e[i]&&(n=e[i](a))}return n}}function vL(t,e){t.topologicalTravel=function(i,o,s,l){if(!i.length)return;var u=r(o),p=u.graph,c=u.noEntryList,f={};for(A(i,function(y){f[y]=!0});c.length;){var h=c.pop(),d=p[h],v=!!f[h];v&&(s.call(l,h,d.originalDeps.slice()),delete f[h]),A(d.successor,v?g:m)}A(f,function(){var y="";throw new Error(y)});function m(y){p[y].entryCount--,p[y].entryCount===0&&c.push(y)}function g(y){f[y]=!0,m(y)}};function r(i){var o={},s=[];return A(i,function(l){var u=a(o,l),p=u.originalDeps=e(l),c=n(p,i);u.entryCount=c.length,u.entryCount===0&&s.push(l),A(c,function(f){fe(u.predecessor,f)<0&&u.predecessor.push(f);var h=a(o,f);fe(h.successor,f)<0&&h.successor.push(l)})}),{graph:o,noEntryList:s}}function a(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}function n(i,o){var s=[];return A(i,function(l){fe(o,l)>=0&&s.push(l)}),s}}function Rb(t,e){return Pe(Pe({},t,!0),e,!0)}var gL=Math.log(2);function lh(t,e,r,a,n,i){var o=a+"-"+n,s=t.length;if(i.hasOwnProperty(o))return i[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~n)/gL);return t[r][l]}for(var u=a|1<<r,p=r+1;a&1<<p;)p++;for(var c=0,f=0,h=0;f<s;f++){var d=1<<f;d&n||(c+=(h%2?-1:1)*t[r][f]*lh(t,e-1,p,u,n|d,i),h++)}return i[o]=c,c}function Bb(t,e){var r=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],a={},n=lh(r,8,0,0,0,a);if(n!==0){for(var i=[],o=0;o<8;o++)for(var s=0;s<8;s++)i[s]==null&&(i[s]=0),i[s]+=((o+s)%2?-1:1)*lh(r,7,o===0?1:0,1<<o,1<<s,a)/n*e[o];return function(l,u,p){var c=u*i[6]+p*i[7]+1;l[0]=(u*i[0]+p*i[1]+i[2])/c,l[1]=(u*i[3]+p*i[4]+i[5])/c}}}var eu="___zrEVENTSAVED",uh=[];function mL(t,e,r,a,n){return ph(uh,e,a,n,!0)&&ph(t,r,uh[0],uh[1])}function yL(t,e){t&&r(t),e&&r(e);function r(a){var n=a[eu];n&&(n.clearMarkers&&n.clearMarkers(),delete a[eu])}}function ph(t,e,r,a,n){if(e.getBoundingClientRect&&se.domSupported&&!Nb(e)){var i=e[eu]||(e[eu]={}),o=bL(e,i),s=kL(o,i,n);if(s)return s(t,r,a),!0}return!1}function bL(t,e){var r=e.markers;if(r)return r;r=e.markers=[];for(var a=["left","right"],n=["top","bottom"],i=0;i<4;i++){var o=document.createElement("div"),s=o.style,l=i%2,u=(i>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",a[l]+":0",n[u]+":0",a[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),t.appendChild(o),r.push(o)}return e.clearMarkers=function(){A(r,function(p){p.parentNode&&p.parentNode.removeChild(p)})},r}function kL(t,e,r){for(var a=r?"invTrans":"trans",n=e[a],i=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var p=t[u].getBoundingClientRect(),c=2*u,f=p.left,h=p.top;o.push(f,h),l=l&&i&&f===i[c]&&h===i[c+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&n?n:(e.srcCoords=o,e[a]=r?Bb(s,o):Bb(o,s))}function Nb(t){return t.nodeName.toUpperCase()==="CANVAS"}var wL=/([&<>"'])/g,_L={"&":"&","<":"<",">":">",'"':""","'":"'"};function pt(t){return t==null?"":(t+"").replace(wL,function(e,r){return _L[r]})}const xL={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:". "}}}},PL={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:""}}}};var tu="ZH",ch="EN",li=ch,ru={},fh={},Fb=se.domSupported?(function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||li).toUpperCase();return t.indexOf(tu)>-1?tu:li})():li;function zb(t,e){t=t.toUpperCase(),fh[t]=new Ae(e),ru[t]=e}function SL(t){if(q(t)){var e=ru[t.toUpperCase()]||{};return t===tu||t===ch?le(e):Pe(le(e),le(ru[li]),!1)}else return Pe(le(t),le(ru[li]),!1)}function TL(t){return fh[t]}function CL(){return fh[li]}zb(ch,xL),zb(tu,PL);var DL=null;function ct(){return DL}function Hb(t,e){var r=ct(),a=e.breakOption,n=e.breakParsed;return!n&&r&&(n=r.parseAxisBreakOption(a,t)),n}function au(t){var e=t.brk;return e?e.breaks:[]}function nu(t){var e=t.brk;return e?e.hasBreaks():!1}var hh=1e3,dh=hh*60,Oo=dh*60,Wt=Oo*24,Vb=Wt*365,AL={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})/},iu={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},LL="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",ou="{yyyy}-{MM}-{dd}",Ub={year:"{yyyy}",month:"{yyyy}-{MM}",day:ou,hour:ou+" "+iu.hour,minute:ou+" "+iu.minute,second:ou+" "+iu.second,millisecond:LL},Ct=["year","month","day","hour","minute","second","millisecond"],ML=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function EL(t){return!q(t)&&!re(t)?IL(t):t}function IL(t){t=t||{};var e={},r=!0;return A(Ct,function(a){r&&(r=t[a]==null)}),A(Ct,function(a,n){var i=t[a];e[a]={};for(var o=null,s=n;s>=0;s--){var l=Ct[s],u=J(i)&&!W(i)?i[l]:i,p=void 0;W(u)?(p=u.slice(),o=p[0]||""):q(u)?(o=u,p=[o]):(o==null?o=iu[a]:AL[l].test(o)||(o=e[l][l][0]+" "+o),p=[o],r&&(p[1]="{primary|"+o+"}")),e[a][l]=p}}),e}function da(t,e){return t+="","0000".substr(0,e-t.length)+t}function Ro(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function OL(t){return t===Ro(t)}function RL(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function su(t,e,r,a){var n=Yn(t),i=n[Gb(r)](),o=n[gh(r)]()+1,s=Math.floor((o-1)/3)+1,l=n[mh(r)](),u=n["get"+(r?"UTC":"")+"Day"](),p=n[yh(r)](),c=(p-1)%12+1,f=n[bh(r)](),h=n[kh(r)](),d=n[wh(r)](),v=p>=12?"pm":"am",m=v.toUpperCase(),g=a instanceof Ae?a:TL(a||Fb)||CL(),y=g.getModel("time"),b=y.get("month"),k=y.get("monthAbbr"),w=y.get("dayOfWeek"),_=y.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,v+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,da(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,b[o-1]).replace(/{MMM}/g,k[o-1]).replace(/{MM}/g,da(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,da(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,w[u]).replace(/{ee}/g,_[u]).replace(/{e}/g,u+"").replace(/{HH}/g,da(p,2)).replace(/{H}/g,p+"").replace(/{hh}/g,da(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,da(f,2)).replace(/{m}/g,f+"").replace(/{ss}/g,da(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,da(d,3)).replace(/{S}/g,d+"")}function BL(t,e,r,a,n){var i=null;if(q(r))i=r;else if(re(r)){var o={time:t.time,level:t.time?t.time.level:0},s=ct();s&&s.makeAxisLabelFormatterParamBreak(o,t.break),i=r(t.value,e,o)}else{var l=t.time;if(l){var u=r[l.lowerTimeUnit][l.upperTimeUnit];i=u[Math.min(l.level,u.length-1)]||""}else{var p=ui(t.value,n);i=r[p][p][0]}}return su(new Date(t.value),i,n,a)}function ui(t,e){var r=Yn(t),a=r[gh(e)]()+1,n=r[mh(e)](),i=r[yh(e)](),o=r[bh(e)](),s=r[kh(e)](),l=r[wh(e)](),u=l===0,p=u&&s===0,c=p&&o===0,f=c&&i===0,h=f&&n===1,d=h&&a===1;return d?"year":h?"month":f?"day":c?"hour":p?"minute":u?"second":"millisecond"}function vh(t,e,r){switch(e){case"year":t[Wb(r)](0);case"month":t[$b(r)](1);case"day":t[Yb(r)](0);case"hour":t[Kb(r)](0);case"minute":t[Xb(r)](0);case"second":t[qb(r)](0)}return t}function Gb(t){return t?"getUTCFullYear":"getFullYear"}function gh(t){return t?"getUTCMonth":"getMonth"}function mh(t){return t?"getUTCDate":"getDate"}function yh(t){return t?"getUTCHours":"getHours"}function bh(t){return t?"getUTCMinutes":"getMinutes"}function kh(t){return t?"getUTCSeconds":"getSeconds"}function wh(t){return t?"getUTCMilliseconds":"getMilliseconds"}function NL(t){return t?"setUTCFullYear":"setFullYear"}function Wb(t){return t?"setUTCMonth":"setMonth"}function $b(t){return t?"setUTCDate":"setDate"}function Yb(t){return t?"setUTCHours":"setHours"}function Kb(t){return t?"setUTCMinutes":"setMinutes"}function Xb(t){return t?"setUTCSeconds":"setSeconds"}function qb(t){return t?"setUTCMilliseconds":"setMilliseconds"}function jb(t){if(!DD(t))return q(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Zb(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(r,a){return a.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var lu=Qp;function _h(t,e,r){var a="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(p){return p&&br(p)?p:"-"}function i(p){return Ft(p)}var o=e==="time",s=t instanceof Date;if(o||s){var l=o?Yn(t):t;if(isNaN(+l)){if(s)return"-"}else return su(l,a,r)}if(e==="ordinal")return qp(t)?n(t):be(t)&&i(t)?t+"":"-";var u=wl(t);return i(u)?jb(u):qp(t)?n(t):typeof t=="boolean"?t+"":"-"}var Qb=["a","b","c","d","e","f","g"],xh=function(t,e){return"{"+t+(e??"")+"}"};function Jb(t,e,r){W(e)||(e=[e]);var a=e.length;if(!a)return"";for(var n=e[0].$vars||[],i=0;i<n.length;i++){var o=Qb[i];t=t.replace(xh(o),xh(o,0))}for(var s=0;s<a;s++)for(var l=0;l<n.length;l++){var u=e[s][n[l]];t=t.replace(xh(Qb[l],s),r?pt(u):u)}return t}function FL(t,e){var r=q(t)?{color:t,extraCssText:e}:t||{},a=r.color,n=r.type;e=r.extraCssText;var i=r.renderMode||"html";if(!a)return"";if(i==="html")return n==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+pt(a)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+pt(a)+";"+(e||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:a}:{width:10,height:10,borderRadius:5,backgroundColor:a}}}function pn(t,e){return e=e||"transparent",q(t)?t:J(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function ek(t,e){if(e==="_blank"||e==="blank"){var r=window.open();r.opener=null,r.location.href=t}else window.open(t,e)}var uu=A,zL=["left","right","top","bottom","width","height"],pu=[["width","left","right"],["height","top","bottom"]];function Ph(t,e,r,a,n){var i=0,o=0;a==null&&(a=1/0),n==null&&(n=1/0);var s=0;e.eachChild(function(l,u){var p=l.getBoundingRect(),c=e.childAt(u+1),f=c&&c.getBoundingRect(),h,d;if(t==="horizontal"){var v=p.width+(f?-f.x+p.x:0);h=i+v,h>a||l.newline?(i=0,h=v,o+=s+r,s=p.height):s=Math.max(s,p.height)}else{var m=p.height+(f?-f.y+p.y:0);d=o+m,d>n||l.newline?(i+=s+r,o=0,d=m,s=p.width):s=Math.max(s,p.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),t==="horizontal"?i=h+r:o=d+r)})}var Bo=Ph;ze(Ph,"vertical"),ze(Ph,"horizontal");function HL(t,e){return{left:t.getShallow("left",e),top:t.getShallow("top",e),right:t.getShallow("right",e),bottom:t.getShallow("bottom",e),width:t.getShallow("width",e),height:t.getShallow("height",e)}}function VL(t,e){var r=pi(t,e,{enableLayoutOnlyByCenter:!0}),a=t.getBoxLayoutParams(),n,i;if(r.type===No.point)i=r.refPoint,n=Yr(a,{width:e.getWidth(),height:e.getHeight()});else{var o=t.get("center"),s=W(o)?o:[o,o];n=Yr(a,r.refContainer),i=r.boxCoordFrom===Eb?r.refPoint:[ee(s[0],n.width)+n.x,ee(s[1],n.height)+n.y]}return{viewRect:n,center:i}}function UL(t,e){var r=VL(t,e),a=r.viewRect,n=r.center,i=t.get("radius");W(i)||(i=[0,i]);var o=ee(a.width,e.getWidth()),s=ee(a.height,e.getHeight()),l=Math.min(o,s),u=ee(i[0],l/2),p=ee(i[1],l/2);return{cx:n[0],cy:n[1],r0:u,r:p,viewRect:a}}function Yr(t,e,r){r=lu(r||0);var a=e.width,n=e.height,i=ee(t.left,a),o=ee(t.top,n),s=ee(t.right,a),l=ee(t.bottom,n),u=ee(t.width,a),p=ee(t.height,n),c=r[2]+r[0],f=r[1]+r[3],h=t.aspect;switch(isNaN(u)&&(u=a-s-f-i),isNaN(p)&&(p=n-l-c-o),h!=null&&(isNaN(u)&&isNaN(p)&&(h>a/n?u=a*.8:p=n*.8),isNaN(u)&&(u=h*p),isNaN(p)&&(p=u/h)),isNaN(i)&&(i=a-s-u-f),isNaN(o)&&(o=n-l-p-c),t.left||t.right){case"center":i=a/2-u/2-r[3];break;case"right":i=a-u-f;break}switch(t.top||t.bottom){case"middle":case"center":o=n/2-p/2-r[0];break;case"bottom":o=n-p-c;break}i=i||0,o=o||0,isNaN(u)&&(u=a-f-i-(s||0)),isNaN(p)&&(p=n-c-o-(l||0));var d=new oe((e.x||0)+i+r[3],(e.y||0)+o+r[0],u,p);return d.margin=r,d}var No={rect:1,point:2};function pi(t,e,r){var a,n,i,o=t.boxCoordinateSystem,s;if(o){var l=Ob(t),u=l.coord,p=l.from;if(o.dataToLayout){i=No.rect,s=p;var c=o.dataToLayout(u);a=c.contentRect||c.rect}else r&&r.enableLayoutOnlyByCenter&&o.dataToPoint&&(i=No.point,s=p,n=o.dataToPoint(u))}return i==null&&(i=No.rect),i===No.rect&&(a||(a={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),n=[a.x+a.width/2,a.y+a.height/2]),{type:i,refContainer:a,refPoint:n,boxCoordFrom:s}}function Fo(t){var e=t.layoutMode||t.constructor.layoutMode;return J(e)?e:e?{type:e}:null}function va(t,e,r){var a=r&&r.ignoreSize;!W(a)&&(a=[a,a]);var n=o(pu[0],0),i=o(pu[1],1);l(pu[0],t,n),l(pu[1],t,i);function o(u,p){var c={},f=0,h={},d=0,v=2;if(uu(u,function(y){h[y]=t[y]}),uu(u,function(y){st(e,y)&&(c[y]=h[y]=e[y]),s(c,y)&&f++,s(h,y)&&d++}),a[p])return s(e,u[1])?h[u[2]]=null:s(e,u[2])&&(h[u[1]]=null),h;if(d===v||!f)return h;if(f>=v)return c;for(var m=0;m<u.length;m++){var g=u[m];if(!st(c,g)&&st(t,g)){c[g]=t[g];break}}return c}function s(u,p){return u[p]!=null&&u[p]!=="auto"}function l(u,p,c){uu(u,function(f){p[f]=c[f]})}}function zo(t){return GL({},t)}function GL(t,e){return e&&t&&uu(zL,function(r){st(e,r)&&(t[r]=e[r])}),t}var WL=_e(),ke=(function(t){V(e,t);function e(r,a,n){var i=t.call(this,r,a,n)||this;return i.uid=Io("ec_cpt_model"),i}return e.prototype.init=function(r,a,n){this.mergeDefaultAndTheme(r,n)},e.prototype.mergeDefaultAndTheme=function(r,a){var n=Fo(this),i=n?zo(r):{},o=a.getTheme();Pe(r,o.get(this.mainType)),Pe(r,this.getDefaultOption()),n&&va(r,i,n)},e.prototype.mergeOption=function(r,a){Pe(this.option,r,!0);var n=Fo(this);n&&va(this.option,r,n)},e.prototype.optionUpdated=function(r,a){},e.prototype.getDefaultOption=function(){var r=this.constructor;if(!RT(r))return r.defaultOption;var a=WL(this);if(!a.defaultOption){for(var n=[],i=r;i;){var o=i.prototype.defaultOption;o&&n.push(o),i=i.superClass}for(var s={},l=n.length-1;l>=0;l--)s=Pe(s,n[l],!0);a.defaultOption=s}return a.defaultOption},e.prototype.getReferringComponents=function(r,a){var n=r+"Index",i=r+"Id";return yo(this.ecModel,r,{index:this.get(n,!0),id:this.get(i,!0)},a)},e.prototype.getBoxLayoutParams=function(){return HL(this,!1)},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(r){this.option.zlevel=r},e.protoInitialize=(function(){var r=e.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0})(),e})(Ae);fm(ke,Ae),Vs(ke),dL(ke),vL(ke,$L);function $L(t){var e=[];return A(ke.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.dependencies||[])}),e=K(e,function(r){return kr(r).main}),t!=="dataset"&&fe(e,"dataset")<=0&&e.unshift("dataset"),e}var tk=_e();_e();var Sh=(function(){function t(){}return t.prototype.getColorFromPalette=function(e,r,a){var n=ut(this.get("color",!0)),i=this.get("colorLayer",!0);return KL(this,tk,n,i,e,r,a)},t.prototype.clearColorPalette=function(){XL(this,tk)},t})();function YL(t,e){for(var r=t.length,a=0;a<r;a++)if(t[a].length>e)return t[a];return t[r-1]}function KL(t,e,r,a,n,i,o){i=i||t;var s=e(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var p=o==null||!a?r:YL(a,o);if(p=p||r,!(!p||!p.length)){var c=p[l];return n&&(u[n]=c),s.paletteIdx=(l+1)%p.length,c}}function XL(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var qL=/\{@(.+?)\}/g,jL=(function(){function t(){}return t.prototype.getDataParams=function(e,r){var a=this.getData(r),n=this.getRawValue(e,r),i=a.getRawIndex(e),o=a.getName(e),s=a.getRawDataItem(e),l=a.getItemVisual(e,"style"),u=l&&l[a.getItemVisual(e,"drawType")||"fill"],p=l&&l.stroke,c=this.mainType,f=c==="series",h=a.userOutput&&a.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:f?this.subType:null,seriesIndex:this.seriesIndex,seriesId:f?this.id:null,seriesName:f?this.name:null,name:o,dataIndex:i,data:s,dataType:r,value:n,color:u,borderColor:p,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(e,r,a,n,i,o){r=r||"normal";var s=this.getData(a),l=this.getDataParams(e,a);if(o&&(l.value=o.interpolatedValue),n!=null&&W(l.value)&&(l.value=l.value[n]),!i){var u=s.getItemModel(e);i=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(re(i))return l.status=r,l.dimensionIndex=n,i(l);if(q(i)){var p=Jb(i,l);return p.replace(qL,function(c,f){var h=f.length,d=f;d.charAt(0)==="["&&d.charAt(h-1)==="]"&&(d=+d.slice(1,h-1));var v=ai(s,e,d);if(o&&W(o.interpolatedValue)){var m=s.getDimensionIndex(d);m>=0&&(v=o.interpolatedValue[m])}return v!=null?v+"":""})}},t.prototype.getRawValue=function(e,r){return ai(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,a){},t})();function rk(t){var e,r;return J(t)?t.type&&(r=t):e=t,{text:e,frag:r}}function Ho(t){return new ZL(t)}var ZL=(function(){function t(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var r=this._upstream,a=e&&e.skip;if(this._dirty&&r){var n=this.context;n.data=n.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!a&&(i=this._plan(this.context));var o=p(this._modBy),s=this._modDataCount||0,l=p(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(i="reset");function p(y){return!(y>=1)&&(y=1),y}var c;(this._dirty||i==="reset")&&(this._dirty=!1,c=this._doReset(a)),this._modBy=l,this._modDataCount=u;var f=e&&e.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,d=Math.min(f!=null?this._dueIndex+f:1/0,this._dueEnd);if(!a&&(c||h<d)){var v=this._progress;if(W(v))for(var m=0;m<v.length;m++)this._doProgress(v[m],h,d,l,u);else this._doProgress(v,h,d,l,u)}this._dueIndex=d;var g=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(e,r,a,n,i){ak.reset(r,a,n,i),this._callingProgress=e,this._callingProgress({start:r,end:a,count:a-r,next:ak.next},this.context)},t.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,a;!e&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(a=r.forceFirstProgress,r=r.progress),W(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),a},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t})(),ak=(function(){var t,e,r,a,n,i={reset:function(l,u,p,c){e=l,t=u,r=p,a=c,n=Math.ceil(a/r),i.next=r>1&&a>0?s:o}};return i;function o(){return e<t?e++:null}function s(){var l=e%n*r+Math.ceil(e/n),u=e>=t?null:l<a?l:e;return e++,u}})(),QL=(function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(e){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(e){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(e,r){},t.prototype.retrieveValueFromItem=function(e,r){},t.prototype.convertValue=function(e,r){return ql(e,r)},t})();function JL(t,e){var r=new QL,a=t.data,n=r.sourceFormat=t.sourceFormat,i=t.startIndex,o="";t.seriesLayoutBy!==ar&&kt(o);var s=[],l={},u=t.dimensionsDefine;if(u)A(u,function(v,m){var g=v.name,y={index:m,name:g,displayName:v.displayName};if(s.push(y),g!=null){var b="";st(l,g)&&kt(b),l[g]=y}});else for(var p=0;p<t.dimensionsDetectedCount;p++)s.push({index:p});var c=db(n,ar);e.__isBuiltIn&&(r.getRawDataItem=function(v){return c(a,i,s,v)},r.getRawData=ge(eM,null,t)),r.cloneRawData=ge(tM,null,t);var f=gb(n,ar);r.count=ge(f,null,a,i,s);var h=mb(n);r.retrieveValue=function(v,m){var g=c(a,i,s,v);return d(g,m)};var d=r.retrieveValueFromItem=function(v,m){if(v!=null){var g=s[m];if(g)return h(v,m,g.name)}};return r.getDimensionInfo=ge(rM,null,s,l),r.cloneAllDimensionInfo=ge(aM,null,s),r}function eM(t){var e=t.sourceFormat;if(!Th(e)){var r="";kt(r)}return t.data}function tM(t){var e=t.sourceFormat,r=t.data;if(!Th(e)){var a="";kt(a)}if(e===tt){for(var n=[],i=0,o=r.length;i<o;i++)n.push(r[i].slice());return n}else if(e===Vt){for(var n=[],i=0,o=r.length;i<o;i++)n.push(H({},r[i]));return n}}function rM(t,e,r){if(r!=null){if(be(r)||!isNaN(r)&&!st(e,r))return t[r];if(st(e,r))return e[r]}}function aM(t){return le(t)}var nk=ae();function nM(t){t=le(t);var e=t.type,r="";e||kt(r);var a=e.split(":");a.length!==2&&kt(r);var n=!1;a[0]==="echarts"&&(e=a[1],n=!0),t.__isBuiltIn=n,nk.set(e,t)}function iM(t,e,r){var a=ut(t),n=a.length,i="";n||kt(i);for(var o=0,s=n;o<s;o++){var l=a[o];e=oM(l,e),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function oM(t,e,r,a){var n="";e.length||kt(n),J(t)||kt(n);var i=t.type,o=nk.get(i);o||kt(n);var s=K(e,function(u){return JL(u,o)}),l=ut(o.transform({upstream:s[0],upstreamList:s,config:le(t.config)}));return K(l,function(u,p){var c="";J(u)||kt(c),u.data||kt(c);var f=ob(u.data);Th(f)||kt(c);var h,d=e[0];if(d&&p===0&&!u.dimensions){var v=d.startIndex;v&&(u.data=d.data.slice(0,v).concat(u.data)),h={seriesLayoutBy:ar,sourceHeader:v,dimensions:d.metaRawOption.dimensions}}else h={seriesLayoutBy:ar,sourceHeader:0,dimensions:u.dimensions};return Zf(u.data,h,null)})}function Th(t){return t===tt||t===Vt}var ik=(function(){function t(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(e,r){this._sourceList=e,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,r=this._getUpstreamSourceManagers(),a=!!r.length,n,i;if(cu(e)){var o=e,s=void 0,l=void 0,u=void 0;if(a){var p=r[0];p.prepareSource(),u=p.getSource(),s=u.data,l=u.sourceFormat,i=[p._getVersionSign()]}else s=o.get("data",!0),l=yt(s)?pa:Tt,i=[];var c=this._getSourceMetaRawOption()||{},f=u&&u.metaRawOption||{},h=Z(c.seriesLayoutBy,f.seriesLayoutBy)||null,d=Z(c.sourceHeader,f.sourceHeader),v=Z(c.dimensions,f.dimensions),m=h!==f.seriesLayoutBy||!!d!=!!f.sourceHeader||v;n=m?[Zf(s,{seriesLayoutBy:h,sourceHeader:d,dimensions:v},l)]:[]}else{var g=e;if(a){var y=this._applyTransform(r);n=y.sourceList,i=y.upstreamSignList}else{var b=g.get("source",!0);n=[Zf(b,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(n,i)},t.prototype._applyTransform=function(e){var r=this._sourceHost,a=r.get("transform",!0),n=r.get("fromTransformResult",!0);if(n!=null){var i="";e.length!==1&&sk(i)}var o,s=[],l=[];return A(e,function(u){u.prepareSource();var p=u.getSource(n||0),c="";n!=null&&!p&&sk(c),s.push(p),l.push(u._getVersionSign())}),a?o=iM(a,s,{datasetIndex:r.componentIndex}):n!=null&&(o=[A3(s[0])]),{sourceList:o,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),r=0;r<e.length;r++){var a=e[r];if(a._isDirty()||this._upstreamSignList[r]!==a._getVersionSign())return!0}},t.prototype.getSource=function(e){e=e||0;var r=this._sourceList[e];if(!r){var a=this._getUpstreamSourceManagers();return a[0]&&a[0].getSource(e)}return r},t.prototype.getSharedDataStore=function(e){var r=e.makeStoreSchema();return this._innerGetDataStore(r.dimensions,e.source,r.hash)},t.prototype._innerGetDataStore=function(e,r,a){var n=0,i=this._storeList,o=i[n];o||(o=i[n]={});var s=o[a];if(!s){var l=this._getUpstreamSourceManagers()[0];cu(this._sourceHost)&&l?s=l._innerGetDataStore(e,r,a):(s=new rh,s.initData(new fb(r,e.length),e)),o[a]=s}return s},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(cu(e)){var r=qf(e);return r?[r.getSourceManager()]:[]}else return K(D3(e),function(a){return a.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,r,a,n;if(cu(e))r=e.get("seriesLayoutBy",!0),a=e.get("sourceHeader",!0),n=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=e;r=i.get("seriesLayoutBy",!0),a=i.get("sourceHeader",!0),n=i.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:a,dimensions:n}},t})();function ok(t){var e=t.option.transform;e&&Fs(t.option.transform)}function cu(t){return t.mainType==="series"}function sk(t){throw new Error(t)}var $={color:{},darkColor:{},size:{}},Be=$.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)"};H(Be,{primary:Be.neutral80,secondary:Be.neutral70,tertiary:Be.neutral60,quaternary:Be.neutral50,disabled:Be.neutral20,border:Be.neutral30,borderTint:Be.neutral20,borderShade:Be.neutral40,background:Be.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:Be.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:Be.neutral70,axisLineTint:Be.neutral40,axisTick:Be.neutral70,axisTickMinor:Be.neutral60,axisLabel:Be.neutral70,axisSplitLine:Be.neutral15,axisMinorSplitLine:Be.neutral05});for(var cn in Be)if(Be.hasOwnProperty(cn)){var lk=Be[cn];cn==="theme"?$.darkColor.theme=Be.theme.slice():cn==="highlight"?$.darkColor.highlight="rgba(255,231,130,0.4)":cn.indexOf("accent")===0?$.darkColor[cn]=Cc(lk,null,function(t){return t*.5},function(t){return Math.min(1,1.3-t)}):$.darkColor[cn]=Cc(lk,null,function(t){return t*.9},function(t){return 1-Math.pow(t,1.5)})}$.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var sM="line-height:1";function uk(t){var e=t.lineHeight;return e==null?sM:"line-height:"+pt(e+"")+"px"}function pk(t,e){var r=t.color||$.color.tertiary,a=t.fontSize||12,n=t.fontWeight||"400",i=t.color||$.color.secondary,o=t.fontSize||14,s=t.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+pt(a+"")+"px;color:"+pt(r)+";font-weight:"+pt(n+""),valueStyle:"font-size:"+pt(o+"")+"px;color:"+pt(i)+";font-weight:"+pt(s+"")}:{nameStyle:{fontSize:a,fill:r,fontWeight:n},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var lM=[0,10,20,30],uM=["",`
|
|
9
33
|
`,`
|
|
10
34
|
|
|
11
35
|
`,`
|
|
12
36
|
|
|
13
37
|
|
|
14
|
-
`];function ii(t,e){return e.type=t,e}function Hh(t){return t.type==="section"}function X0(t){return Hh(t)?EL:kL}function q0(t){if(Hh(t)){var e=0,r=t.blocks.length,n=r>1||r>0&&!t.noHeader;return I(t.blocks,function(i){var a=q0(i);a>=e&&(e=a+ +(n&&(!a||Hh(i)&&!i.noHeader)))}),e}return 0}function EL(t,e,r,n){var i=e.noHeader,a=RL(q0(e)),o=[],s=e.blocks||[];Wt(!s||W(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(tt(u,l)){var f=new sI(u[l],null);s.sort(function(p,g){return f.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}I(s,function(p,g){var m=e.valueFormatter,y=X0(p)(m?z(z({},t),{valueFormatter:m}):t,p,g>0?a.html:0,n);y!=null&&o.push(y)});var c=t.renderMode==="richText"?o.join(a.richText):Uh(n,o.join(""),i?r:a.html);if(i)return c;var v=Bh(e.header,"ordinal",t.useUTC),h=$0(n,t.renderMode).nameStyle,d=Y0(n);return t.renderMode==="richText"?K0(t,v,h)+a.richText+c:Uh(n,'<div style="'+h+";"+d+';">'+it(v)+"</div>"+c,r)}function kL(t,e,r,n){var i=t.renderMode,a=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,f=e.valueFormatter||t.valueFormatter||function(S){return S=W(S)?S:[S],$(S,function(b,w){return Bh(b,W(h)?h[w]:h,u)})};if(!(a&&o)){var c=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||Y.color.secondary,i),v=a?"":Bh(l,"ordinal",u),h=e.valueType,d=o?[]:f(e.value,e.rawDataIndex),p=!s||!a,g=!s&&a,m=$0(n,i),y=m.nameStyle,_=m.valueStyle;return i==="richText"?(s?"":c)+(a?"":K0(t,v,y))+(o?"":BL(t,d,p,g,_)):Uh(n,(s?"":c)+(a?"":OL(v,!s,y))+(o?"":NL(d,p,g,_)),r)}}function Z0(t,e,r,n,i,a){if(t){var o=X0(t),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:e,valueFormatter:t.valueFormatter};return o(s,t,0,a)}}function RL(t){return{html:LL[t],richText:PL[t]}}function Uh(t,e,r){var n='<div style="clear:both"></div>',i="margin: "+r+"px 0 0",a=Y0(t);return'<div style="'+i+";"+a+';">'+e+n+"</div>"}function OL(t,e,r){var n=e?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+it(t)+"</span>"}function NL(t,e,r,n){var i=r?"10px":"20px",a=e?"float:right;margin-left:"+i:"";return t=W(t)?t:[t],'<span style="'+a+";"+n+'">'+$(t,function(o){return it(o)}).join(" ")+"</span>"}function K0(t,e,r){return t.markupStyleCreator.wrapRichTextStyle(e,r)}function BL(t,e,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(W(e)?e.join(" "):e,a)}function j0(t,e){var r=t.getData().getItemVisual(e,"style"),n=r[t.visualDrawType];return ri(n)}function Q0(t,e){var r=t.get("padding");return r??(e==="richText"?[8,10]:10)}var Wh=(function(){function t(){this.richTextStyles={},this._nextStyleNameId=Tc()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,r,n){var i=n==="richText"?this._generateStyleName():null,a=oL({color:r,type:e,renderMode:n,markerId:i});return q(a)?a:(this.richTextStyles[i]=a.style,a.content)},t.prototype.wrapRichTextStyle=function(e,r){var n={};W(r)?I(r,function(a){return z(n,a)}):z(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+e+"}"},t})();function FL(t){var e=t.series,r=t.dataIndex,n=t.multipleSeries,i=e.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=e.getRawValue(r),l=W(s),u=j0(e,r),f,c,v,h;if(o>1||l&&!o){var d=zL(s,e,r,a,u);f=d.inlineValues,c=d.inlineValueTypes,v=d.blocks,h=d.inlineValues[0]}else if(o){var p=i.getDimensionInfo(a[0]);h=f=$i(i,r,a[0]),c=p.type}else h=f=l?s[0]:s;var g=xc(e),m=g&&e.name||"",y=i.getName(r),_=n?m:y;return ii("section",{header:m,noHeader:n||!g,sortParam:h,blocks:[ii("nameValue",{markerType:"item",markerColor:u,name:_,noName:!hr(_),value:f,valueType:c,rawDataIndex:i.getRawIndex(r)})].concat(v||[])})}function zL(t,e,r,n,i){var a=e.getData(),o=qr(t,function(c,v,h){var d=a.getDimensionInfo(h);return c=c||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?I(n,function(c){f($i(a,r,c),c)}):I(t,f);function f(c,v){var h=a.getDimensionInfo(v);!h||h.otherDims.tooltip===!1||(o?u.push(ii("nameValue",{markerType:"subItem",markerColor:i,name:h.displayName,value:c,valueType:h.type})):(s.push(c),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var cn=Se();function Gl(t,e){return t.getName(e)||t.getId(e)}var VL="__universalTransitionEnabled",ot=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return e.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=bo({count:HL,reset:UL}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=cn(this).sourceManager=new G0(this);a.prepareSource();var o=this.getInitialData(r,i);e_(o,this),this.dataTask.context.data=o,cn(this).dataBeforeProcessed=o,J0(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(r,n){var i=_o(this),a=i?So(r):{},o=this.subType;ye.hasClass(o)&&(o+="Series"),be(r,n.getTheme().get(this.subType)),be(r,this.getDefaultOption()),js(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&fn(r,a,i)},e.prototype.mergeOption=function(r,n){r=be(this.option,r,!0),this.fillDataTextStyle(r.data);var i=_o(this);i&&fn(this.option,r,i);var a=cn(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);e_(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,cn(this).dataBeforeProcessed=o,J0(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(r){if(r&&!ft(r))for(var n=["show"],i=0;i<r.length;i++)r[i]&&r[i].label&&js(r[i],"label",n)},e.prototype.getInitialData=function(r,n){},e.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},e.prototype.getData=function(r){var n=Yh(this);if(n){var i=n.context.data;return r==null||!i.getLinkedData?i:i.getLinkedData(r)}else return cn(this).data},e.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},e.prototype.setData=function(r){var n=Yh(this);if(n){var i=n.context;i.outputData=r,n!==this.dataTask&&(i.data=r)}cn(this).data=r},e.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return te(r)},e.prototype.getSourceManager=function(){return cn(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return cn(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},e.prototype.indicesOfNearest=function(r,n,i,a){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(r);if(!s||!l)return[];var u=l.dataToCoord(i);a==null&&(a=1/0);for(var f=[],c=1/0,v=-1,h=0,d=o.getDimensionIndex(n),p=o.getStore(),g=0,m=p.count();g<m;g++){var y=p.get(d,g),_=l.dataToCoord(y),S=u-_,b=Math.abs(S);b<=a&&((b<c||b===c&&S>=0&&v<0)&&(c=b,v=S,h=0),S===v&&(f[h++]=g))}return f.length=h,f},e.prototype.formatTooltip=function(r,n,i){return FL({series:this,dataIndex:r,multipleSeries:n})},e.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(ie.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=Vh.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},e.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},e.prototype.unselect=function(r,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],u=Gl(o,l);i[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(r,n){for(var i=[],a=0;a<r.length;a++)i[0]=r[a],this.isSelected(r[a],n)?this.unselect(i,n):this.select(i,n)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=ce(r),i=[],a=0;a<n.length;a++){var o=r[n[a]];o>=0&&i.push(o)}return i},e.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[Gl(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[VL])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},e.prototype._innerSelect=function(r,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){j(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var c=n[f],v=Gl(r,c);u[v]=!0,this._selectedDataIndicesMap[v]=r.getRawIndex(c)}}else if(s==="single"||s===!0){var h=n[l-1],v=Gl(r,h);o.selectedMap=(i={},i[v]=!0,i),this._selectedDataIndicesMap=(a={},a[v]=r.getRawIndex(h),a)}}},e.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(i){var a=r.getRawDataItem(i);a&&a.selected&&n.push(i)}),n.length>0&&this._innerSelect(r,n)}},e.registerClass=function(r){return ye.registerClass(r)},e.protoInitialize=(function(){var r=e.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"})(),e})(ye);Ut(ot,yL),Ut(ot,Vh),qp(ot,ye);function J0(t){var e=t.name;xc(t)||(t.name=GL(t)||e)}function GL(t){var e=t.getRawData(),r=e.mapDimensionsAll("seriesName"),n=[];return I(r,function(i){var a=e.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function HL(t){return t.model.getRawData().count()}function UL(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),WL}function WL(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function e_(t,e){I(jx(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,Oe(YL,e))})}function YL(t,e){var r=Yh(t);return r&&r.setOutputEnd((e||this).count()),e}function Yh(t){var e=(t.ecModel||{}).scheduler,r=e&&e.getPipeline(t.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(t.uid))}return n}}var $L=pe.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,i=e.width/2,a=e.height/2;t.moveTo(r,n-a),t.lineTo(r+i,n+a),t.lineTo(r-i,n+a),t.closePath()}}),XL=pe.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,i=e.width/2,a=e.height/2;t.moveTo(r,n-a),t.lineTo(r+i,n),t.lineTo(r,n+a),t.lineTo(r-i,n),t.closePath()}}),qL=pe.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.x,n=e.y,i=e.width/5*3,a=Math.max(i,e.height),o=i/2,s=o*o/(a-o),l=n-a+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,c=Math.sin(u),v=Math.cos(u),h=o*.6,d=o*.7;t.moveTo(r-f,l+s),t.arc(r,l,o,Math.PI-u,Math.PI*2+u),t.bezierCurveTo(r+f-c*h,l+s+v*h,r,n-d,r,n),t.bezierCurveTo(r,n-d,r-f+c*h,l+s+v*h,r-f,l+s),t.closePath()}}),ZL=pe.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.height,n=e.width,i=e.x,a=e.y,o=n/3*2;t.moveTo(i,a),t.lineTo(i+o,a+r),t.lineTo(i,a+r/4*3),t.lineTo(i-o,a+r),t.lineTo(i,a),t.closePath()}}),KL={line:Cr,rect:De,roundRect:De,square:De,circle:eo,diamond:XL,pin:qL,arrow:ZL,triangle:$L},jL={line:function(t,e,r,n,i){i.x1=t,i.y1=e+n/2,i.x2=t+r,i.y2=e+n/2},rect:function(t,e,r,n,i){i.x=t,i.y=e,i.width=r,i.height=n},roundRect:function(t,e,r,n,i){i.x=t,i.y=e,i.width=r,i.height=n,i.r=Math.min(r,n)/4},square:function(t,e,r,n,i){var a=Math.min(r,n);i.x=t,i.y=e,i.width=a,i.height=a},circle:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.r=Math.min(r,n)/2},diamond:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.width=r,i.height=n},pin:function(t,e,r,n,i){i.x=t+r/2,i.y=e+n/2,i.width=r,i.height=n},arrow:function(t,e,r,n,i){i.x=t+r/2,i.y=e+n/2,i.width=r,i.height=n},triangle:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.width=r,i.height=n}},$h={};I(KL,function(t,e){$h[e]=new t});var QL=pe.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,r){var n=_s(t,e,r),i=this.shape;return i&&i.symbolType==="pin"&&e.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(t,e,r){var n=e.symbolType;if(n!=="none"){var i=$h[n];i||(n="rect",i=$h[n]),jL[n](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,r)}}});function JL(t,e){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=t,r.fill=e||Y.color.neutral00,r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=t:r.fill=t,this.markRedraw()}}function Ar(t,e,r,n,i,a,o){var s=t.indexOf("empty")===0;s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var l;return t.indexOf("image://")===0?l=gy(t.slice(8),new ne(e,r,n,i),o?"center":"cover"):t.indexOf("path://")===0?l=Jc(t.slice(7),{},new ne(e,r,n,i),o?"center":"cover"):l=new QL({shape:{symbolType:t,x:e,y:r,width:n,height:i}}),l.__isEmptyBrush=s,l.setColor=JL,a&&l.setColor(a),l}function t_(t){return W(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function r_(t,e){if(t!=null)return W(t)||(t=[t,t]),[Q(t[0],e[0])||0,Q(Z(t[1],t[0]),e[1])||0]}var eP=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r){return Ml(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(r){var n=new Ce,i=Ar("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);n.add(i),i.setStyle(r.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=r.itemHeight*.8,u=Ar(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);n.add(u),u.setStyle(r.itemStyle);var f=r.iconRotate==="inherit"?o:r.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill=Y.color.neutral00,u.style.lineWidth=2),n},e.type="series.line",e.dependencies=["grid","polar"],e.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},e})(ot);function Xh(t,e){var r=t.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=$i(t,e,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<r.length;o++)a.push($i(t,e,r[o]));return a.join(" ")}}function n_(t,e){var r=t.mapDimensionsAll("defaultedLabel");if(!W(e))return e+"";for(var n=[],i=0;i<r.length;i++){var a=t.getDimensionIndex(r[i]);a>=0&&n.push(e[a])}return n.join(" ")}var qh=(function(t){V(e,t);function e(r,n,i,a){var o=t.call(this)||this;return o.updateData(r,n,i,a),o}return e.prototype._createSymbol=function(r,n,i,a,o,s){this.removeAll();var l=Ar(r,-1,-1,2,2,null,s);l.attr({z2:Z(o,100),culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),l.drift=tP,this._symbolType=r,this.add(l)},e.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){al(this.childAt(0))},e.prototype.downplay=function(){ol(this.childAt(0))},e.prototype.setZ=function(r,n){var i=this.childAt(0);i.zlevel=r,i.z=n},e.prototype.setDraggable=function(r,n){var i=this.childAt(0);i.draggable=r,i.cursor=!n&&r?"move":i.cursor},e.prototype.updateData=function(r,n,i,a){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=e.getSymbolSize(r,n),u=e.getSymbolZ2(r,n),f=o!==this._symbolType,c=a&&a.disableAnimation;if(f){var v=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,l,u,v)}else{var h=this.childAt(0);h.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};c?h.attr(d):Ie(h,d,s,n),Ui(h)}if(this._updateCommon(r,n,l,i,a),f){var h=this.childAt(0);if(!c){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,Ge(h,d,s,n)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(r,n,i,a,o){var s=this.childAt(0),l=r.hostModel,u,f,c,v,h,d,p,g,m;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,c=a.selectItemStyle,v=a.focus,h=a.blurScope,p=a.labelStatesModels,g=a.hoverScale,m=a.cursorStyle,d=a.emphasisDisabled),!a||r.hasItemOption){var y=a&&a.itemModel?a.itemModel:r.getItemModel(n),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),c=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),v=_.get("focus"),h=_.get("blurScope"),d=_.get("disabled"),p=jn(y),g=_.getShallow("scale"),m=y.getShallow("cursor")}var S=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=r_(r.getItemVisual(n,"symbolOffset"),i);b&&(s.x=b[0],s.y=b[1]),m&&s.attr("cursor",m);var w=r.getItemVisual(n,"style"),T=w.fill;if(s instanceof Mt){var C=s.style;s.useStyle(z({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},w))}else s.__isEmptyBrush?s.useStyle(z({},w)):s.useStyle(w),s.style.decal=null,s.setColor(T,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var D=r.getItemVisual(n,"liftZ"),x=this._z2;D!=null?x==null&&(this._z2=s.z2,s.z2+=D):x!=null&&(s.z2=x,this._z2=null);var A=o&&o.useNameLabel;Kn(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:L,inheritColor:T,defaultOpacity:w.opacity});function L(E){return A?r.getName(E):Xh(r,E)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var M=s.ensureState("emphasis");M.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var P=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;M.scaleX=this._sizeX*P,M.scaleY=this._sizeY*P,this.setSymbolScale(1),Fr(this,v,h,d)},e.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},e.prototype.fadeOut=function(r,n,i){var a=this.childAt(0),o=ue(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&pl(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();pl(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},e.getSymbolSize=function(r,n){return t_(r.getItemVisual(n,"symbolSize"))},e.getSymbolZ2=function(r,n){return r.getItemVisual(n,"z2")},e})(Ce);function tP(t,e){this.parent.drift(t,e)}function Hl(t,e,r,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n&&n.isIgnore&&n.isIgnore(r))&&!(n&&n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&t.getItemVisual(r,"symbol")!=="none"}function i_(t){return t!=null&&!j(t)&&(t={isIgnore:t}),t||{}}function a_(t){var e=t.hostModel,r=e.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:jn(e),cursorStyle:e.get("cursor")}}function o_(t,e,r,n,i,a,o){var s=new t(e,r,n,i);return s.setPosition(a),e.setItemGraphicEl(r,s),o.add(s),s}var s_=(function(){function t(e){this.group=new Ce,this._SymbolCtor=e||qh}return t.prototype.updateData=function(e,r){this._progressiveEls=null,r=i_(r);var n=this.group,i=e.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=this._seriesScope=a_(e),u={disableAnimation:s},f=r.getSymbolPoint||function(c){return e.getItemLayout(c)};a||n.removeAll(),e.diff(a).add(function(c){var v=f(c);Hl(e,v,c,r)&&o_(o,e,c,l,u,v,n)}).update(function(c,v){var h=a.getItemGraphicEl(v),d=f(c);if(!Hl(e,d,c,r)){n.remove(h);return}var p=e.getItemVisual(c,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==p)n.remove(h),h=new o(e,c,l,u),h.setPosition(d);else{h.updateData(e,c,l,u);var m={x:d[0],y:d[1]};s?h.attr(m):Ie(h,m,i)}n.add(h),e.setItemGraphicEl(c,h)}).remove(function(c){var v=a.getItemGraphicEl(c);v&&v.fadeOut(function(){n.remove(v)},i)}).execute(),this._getSymbolPoint=f,this._data=e},t.prototype.updateLayout=function(e){var r=this._data;if(r)for(var n=this,i=r.getStore(),a=0,o=i.count();a<o;a++){var s=r.getItemGraphicEl(a),l=n._getSymbolPoint(a);Hl(r,l,a,e)?(s=s||o_(n._SymbolCtor,r,a,n._seriesScope,{disableAnimation:!0},l,n.group),s.stopAnimation(),s.setPosition(l),s.markRedraw()):s&&(n.group.remove(s),r.setItemGraphicEl(a,null))}},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=a_(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r,n,i){this._progressiveEls=[],i=i_(i);function a(u){u.isGroup||(u.incremental=n,u.ensureState("emphasis").hoverLayer=Qc)}for(var o=e.start;o<e.end;o++){var s=r.getItemLayout(o);if(Hl(r,s,o,i)){var l=new this._SymbolCtor(r,o,this._seriesScope);l.traverse(a),l.setPosition(s),this.group.add(l),r.setItemGraphicEl(o,l),this._progressiveEls.push(l)}}},t.prototype.eachRendered=function(e){yl(this._progressiveEls||this.group,e)},t.prototype.remove=function(e){var r=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(i){i.fadeOut(function(){r.remove(i)},n.hostModel)}):r.removeAll()},t})();function l_(t,e,r){var n=t.getBaseAxis(),i=t.getOtherAxis(n),a=rP(i,r),o=n.dim,s=i.dim,l=e.mapDimension(s),u=e.mapDimension(o),f=s==="x"||s==="radius"?1:0,c=$(t.dimensions,function(d){return e.mapDimension(d)}),v=!1,h=e.getCalculationInfo("stackResultDimension");return Ki(e,c[0])&&(v=!0,c[0]=h),Ki(e,c[1])&&(v=!0,c[1]=h),{dataDimsForPoint:c,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!v,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function rP(t,e){var r=0,n=t.scale.getExtent();return e==="start"?r=n[0]:e==="end"?r=n[1]:me(e)&&!isNaN(e)?r=e:n[0]>0?r=n[0]:n[1]<0&&(r=n[1]),r}function u_(t,e,r,n){var i=NaN;t.stacked&&(i=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=t.valueStart);var a=t.baseDataOffset,o=[];return o[a]=r.get(t.baseDim,n),o[1-a]=i,e.dataToPoint(o)}function Bt(t,e){return!isFinite(t)||!isFinite(e)}var nP=typeof Float32Array!==Bi?Float32Array:void 0,iP=typeof Float64Array!==Bi?Float64Array:void 0;function Gr(t){return Zh({ctor:nP},t).arr}function Zh(t,e){var r=t.arr,n=t.ctor;if(e>cm&&(e=cm),!r||t.typed&&r.length<e){var i=void 0;if(n)try{i=new n(e),t.typed=!0,r&&i.set(r)}catch{}if(!i&&(i=[],t.typed=!1,r))for(var a=0,o=r.length;a<o;a++)i[a]=r[a];t.arr=i}return t}function aP(t,e){var r=[];return e.diff(t).add(function(n){r.push({cmd:"+",idx:n})}).update(function(n,i){r.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){r.push({cmd:"-",idx:n})}).execute(),r}function oP(t,e,r,n,i,a,o,s){for(var l=aP(t,e),u=[],f=[],c=[],v=[],h=[],d=[],p=[],g=l_(i,e,o),m=t.getLayout("points")||[],y=e.getLayout("points")||[],_=0;_<l.length;_++){var S=l[_],b=!0,w=void 0,T=void 0;switch(S.cmd){case"=":w=S.idx*2,T=S.idx1*2;var C=m[w],D=m[w+1],x=y[T],A=y[T+1];(isNaN(C)||isNaN(D))&&(C=x,D=A),u.push(C,D),f.push(x,A),c.push(r[w],r[w+1]),v.push(n[T],n[T+1]),p.push(e.getRawIndex(S.idx1));break;case"+":var L=S.idx,M=g.dataDimsForPoint,P=i.dataToPoint([e.get(M[0],L),e.get(M[1],L)]);T=L*2,u.push(P[0],P[1]),f.push(y[T],y[T+1]);var E=u_(g,i,e,L);c.push(E[0],E[1]),v.push(n[T],n[T+1]),p.push(e.getRawIndex(L));break;case"-":b=!1}b&&(h.push(S),d.push(d.length))}d.sort(function(K,ae){return p[K]-p[ae]});for(var k=u.length,O=Gr(k),R=Gr(k),N=Gr(k),F=Gr(k),B=[],_=0;_<d.length;_++){var G=d[_],X=_*2,H=G*2;O[X]=u[H],O[X+1]=u[H+1],R[X]=f[H],R[X+1]=f[H+1],N[X]=c[H],N[X+1]=c[H+1],F[X]=v[H],F[X+1]=v[H+1],B[_]=h[G]}return{current:O,next:R,stackedOnCurrent:N,stackedOnNext:F,status:B}}var hn=Math.min,vn=Math.max;function Kh(t,e,r,n,i,a,o,s,l){for(var u,f,c,v,h,d,p=r,g=0;g<n;g++){var m=e[p*2],y=e[p*2+1];if(p>=i||p<0)break;if(Bt(m,y)){if(l){p+=a;continue}break}if(p===r)t[a>0?"moveTo":"lineTo"](m,y),c=m,v=y;else{var _=m-u,S=y-f;if(_*_+S*S<.5){p+=a;continue}if(o>0){for(var b=p+a,w=e[b*2],T=e[b*2+1];w===m&&T===y&&g<n;)g++,b+=a,p+=a,w=e[b*2],T=e[b*2+1],m=e[p*2],y=e[p*2+1],_=m-u,S=y-f;var C=g+1;if(l)for(;Bt(w,T)&&C<n;)C++,b+=a,w=e[b*2],T=e[b*2+1];var D=.5,x=0,A=0,L=void 0,M=void 0;if(C>=n||Bt(w,T))h=m,d=y;else{x=w-u,A=T-f;var P=m-u,E=w-m,k=y-f,O=T-y,R=void 0,N=void 0;if(s==="x"){R=Math.abs(P),N=Math.abs(E);var F=x>0?1:-1;h=m-F*R*o,d=y,L=m+F*N*o,M=y}else if(s==="y"){R=Math.abs(k),N=Math.abs(O);var B=A>0?1:-1;h=m,d=y-B*R*o,L=m,M=y+B*N*o}else R=Math.sqrt(P*P+k*k),N=Math.sqrt(E*E+O*O),D=N/(N+R),h=m-x*o*(1-D),d=y-A*o*(1-D),L=m+x*o*D,M=y+A*o*D,L=hn(L,vn(w,m)),M=hn(M,vn(T,y)),L=vn(L,hn(w,m)),M=vn(M,hn(T,y)),x=L-m,A=M-y,h=m-x*R/N,d=y-A*R/N,h=hn(h,vn(u,m)),d=hn(d,vn(f,y)),h=vn(h,hn(u,m)),d=vn(d,hn(f,y)),x=m-h,A=y-d,L=m+x*N/R,M=y+A*N/R}t.bezierCurveTo(c,v,h,d,m,y),c=L,v=M}else t.lineTo(m,y)}u=m,f=y,p+=a}return g}var f_=(function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t})(),sP=(function(t){V(e,t);function e(r){var n=t.call(this,r)||this;return n.type="ec-polyline",n}return e.prototype.getDefaultStyle=function(){return{stroke:Y.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new f_},e.prototype.buildPath=function(r,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&Bt(i[o*2-2],i[o*2-1]);o--);for(;a<o&&Bt(i[a*2],i[a*2+1]);a++);}for(;a<o;)a+=Kh(r,i,a,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},e.prototype.getPointOn=function(r,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i=this.path,a=i.data,o=tn.CMD,s,l,u=n==="x",f=[],c=0;c<a.length;){var v=a[c++],h=void 0,d=void 0,p=void 0,g=void 0,m=void 0,y=void 0,_=void 0;switch(v){case o.M:s=a[c++],l=a[c++];break;case o.L:if(h=a[c++],d=a[c++],_=u?(r-s)/(h-s):(r-l)/(d-l),_<=1&&_>=0){var S=u?(d-l)*_+l:(h-s)*_+s;return u?[r,S]:[S,r]}s=h,l=d;break;case o.C:h=a[c++],d=a[c++],p=a[c++],g=a[c++],m=a[c++],y=a[c++];var b=u?xs(s,h,p,m,r,f):xs(l,d,g,y,r,f);if(b>0)for(var w=0;w<b;w++){var T=f[w];if(T<=1&&T>=0){var S=u?Ye(l,d,g,y,T):Ye(s,h,p,m,T);return u?[r,S]:[S,r]}}s=m,l=y;break}}},e})(pe),lP=(function(t){V(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(f_),uP=(function(t){V(e,t);function e(r){var n=t.call(this,r)||this;return n.type="ec-polygon",n}return e.prototype.getDefaultShape=function(){return new lP},e.prototype.buildPath=function(r,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&Bt(i[s*2-2],i[s*2-1]);s--);for(;o<s&&Bt(i[o*2],i[o*2+1]);o++);}for(;o<s;){var u=Kh(r,i,o,s,s,1,n.smooth,l,n.connectNulls);Kh(r,a,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,r.closePath()}},e})(pe);function jh(){var t=Se();return function(e){var r=t(e),n=e.pipelineContext,i=!!r.large,a=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var c_=Se(),fP=jh(),je=(function(){function t(){this.group=new Ce,this.uid=vo("viewChart"),this.renderTask=bo({plan:cP,reset:hP}),this.renderTask.context={view:this}}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,i){},t.prototype.highlight=function(e,r,n,i){var a=e.getData(i&&i.dataType);a&&v_(a,i,"emphasis")},t.prototype.downplay=function(e,r,n,i){var a=e.getData(i&&i.dataType);a&&v_(a,i,"normal")},t.prototype.remove=function(e,r){this.group.removeAll()},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.updateVisual=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.eachRendered=function(e){yl(this.group,e)},t.markUpdateMethod=function(e,r){c_(e).updateMethod=r},t.protoInitialize=(function(){var e=t.prototype;e.type="chart"})(),t})();function h_(t,e,r){t&&Hc(t)&&(e==="emphasis"?al:ol)(t,r)}function v_(t,e,r){var n=Wn(t,e),i=e&&e.highlightKey!=null?GD(e.highlightKey):null;n!=null?I(nt(n),function(a){h_(t.getItemGraphicEl(a),r,i)}):t.eachItemGraphicEl(function(a){h_(a,r,i)})}pf(je),gs(je);function cP(t){return fP(t.model)}function hP(t){var e=t.model,r=t.ecModel,n=t.api,i=t.payload,a=e.pipelineContext.progressiveRender,o=t.view,s=i&&c_(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,r,n,i),vP[l]}var vP={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};function d_(t,e,r,n,i){var a=t.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,f=r.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,l+=f,u+=f,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var c=new De({shape:{x:o,y:s,width:l,height:u}});if(e){var v=t.getBaseAxis(),h=v.isHorizontal(),d=v.inverse;h?(d&&(c.shape.x+=l),c.shape.width=0):(d||(c.shape.y+=u),c.shape.height=0);var p=ee(i)?function(g){i(g,c)}:null;Ge(c,{shape:{width:l,height:u,x:o,y:s}},r,null,n,p)}return c}function p_(t,e,r){var n=t.getArea(),i=ve(n.r0,1),a=ve(n.r,1),o=new xr({shape:{cx:ve(t.cx,1),cy:ve(t.cy,1),r0:i,r:a,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(e){var s=t.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=i,Ge(o,{shape:{endAngle:n.endAngle,r:a}},r)}return o}function dP(t,e,r,n,i){if(t){if(t.type==="polar")return p_(t,e,r);if(t.type==="cartesian2d")return d_(t,e,r,n,i)}else return null;return null}function pP(t){var e=t.coordinateSystem;if(t.get("clip",!0)&&e&&(!e.shouldClip||e.shouldClip()))return e.getArea&&e.getArea(.1)}function g_(t,e){return t.type===e}var jt=(function(){function t(){}return t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t})();gs(jt);var gP=0,Qh=(function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++gP,this._onCollect=e.onCollect}return t.createByAxisModel=function(e){var r=e.option,n=r.data,i=n&&$(n,mP);return new t({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var r,n=this._needCollect;if(!q(e)&&!n)return e;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=e,this._onCollect&&this._onCollect(e,r),r;var i=this._getOrCreateMap();return r=i.get(e),r==null&&(n?(r=this.categories.length,this.categories[r]=e,i.set(e,r),this._onCollect&&this._onCollect(e,r)):r=NaN),r},t.prototype._getOrCreateMap=function(){return this._map||(this._map=te(this.categories))},t})();function mP(t){return j(t)&&t.value!=null?t.value:t+""}var Ft=0,wo=1,yP={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},m_=ce(yP),Ul=2,y_=3;function Jh(t,e,r){var n;t=t||{};var i=at();if(i){var a=i.createBreakScaleMapper(e,r);a.hasBreaks()&&(I(m_,function(o){a[o]&&(t[o]=de(a[o],a))}),n=a)}return n==null&&SP(t,r),{brk:n,mapper:t}}function __(t,e){I(m_,function(r){t[r]=e[r]})}function S_(t,e){t.freeze=We}function To(t){return t.getExtentUnsafe(Ft,Ul)}function Wl(t,e){return t.getExtentUnsafe(wo,e)||t.getExtentUnsafe(Ft,e)}function _P(t){var e=Wl(t,y_);return e[1]-e[0]}function Yl(t){var e=t.getExtentUnsafe(Ft,y_);return e[1]-e[0]}function SP(t,e){var r=t||{},n=[];return r._extents=n,n[Ft]=e?e.slice():Et(),z(r,bP),r}var bP={needTransform:function(){return!1},normalize:function(t){var e=this._extents[wo]||this._extents[Ft];return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},scale:function(t){var e=this._extents[wo]||this._extents[Ft];return t*(e[1]-e[0])+e[0]},transformIn:function(t){return t},transformOut:function(t){return t},contain:function(t){var e=Wl(this,null);return t>=e[0]&&t<=e[1]},getExtent:function(){return this._extents[Ft].slice()},getExtentUnsafe:function(t){return this._extents[t]},setExtent:function(t,e){b_(this._extents,Ft,t,e)},setExtent2:function(t,e,r){var n=this._extents;n[t]||(n[t]=n[Ft].slice()),b_(n,t,e,r)},freeze:function(){}};function b_(t,e,r,n){Ni(r,n)&&(t[e][0]=r,t[e][1]=n)}function w_(t){return $l(t)||ea(t)}function $l(t){return t.type==="interval"}function ev(t){return t.type==="time"}function ea(t){return t.type==="log"}function Qt(t){return t.type==="ordinal"}function wP(t){var e=bc(t),r=Un(10,e),n=Or(t/r);return n?n===2?n=3:n===3?n=5:n*=2:n=1,ve(n*r,-e)}function ai(t){return nn(t)+2}function Xl(t,e){return qa(t)/qa(e)}function tv(t,e,r){var n=r&&r.lookup;if(n){for(var i=0;i<n.from.length;i++)if(t===n.from[i])return n.to[i]}return Un(e,t)}function T_(t,e,r){var n=t.slice();if(n[0]===n[1]){var i=r&&r.ctnShp;if(n[0]!==0){var a=Be(n[0]);e[1]||(n[1]+=a/2),n[0]-=a/2}else i&&(n[0]=-1),n[1]=1}return(!Nr(n[0])||!Nr(n[1]))&&(n[0]=0,n[1]=1),n[1]<n[0]&&n.reverse(),n}function TP(t,e){return[t[0]!==e[0],t[1]!==e[1]]}function ql(t,e){return t=t||e,Or(ge(t,1))}function x_(t,e,r){var n=To(t),i=n[0],a=t.count(),o=Math.max((e||0)+1,1);i!==0&&o>1&&a/o>2&&(i=Math.round(Math.ceil(i/o)*o)),i!==n[0]&&l(n[0],!0,!0);for(var s=i;s<=n[1];s+=o)l(s,!1,s===n[0]||s===n[1]);s-o!==n[1]&&l(n[1],!0,!0);function l(u,f,c){r({value:u,offInterval:f},c)}}var C_=(function(t){V(e,t);function e(r){var n=t.call(this)||this;n.type="ordinal",n.parse=e.parse,__(n,e.decoratedMethods);var i=r.ordinalMeta;i||(i=new Qh({})),W(i)&&(i=new Qh({categories:$(i,function(o){return j(o)?o.value:o})})),n._ordinalMeta=i;var a=Jh(null,null,r.extent||[0,i.categories.length-1]);return n._mapper=a.mapper,S_(n),n}return e.parse=function(r){return r==null?r=NaN:q(r)?(r=this._ordinalMeta.getOrdinal(r),r==null&&(r=NaN)):r=Or(r),r},e.prototype.getTicks=function(){var r=[];return x_(this,0,function(n){r.push(n)}),r},e.prototype.getMinorTicks=function(r){},e.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=qe(s,n.length);o<l;++o){var u=i[o]=n[o];a[u]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;i[o]=f,a[f]=o}},e.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},e.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},e.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),i=this._ordinalMeta.categories[n];return i==null?"":i+""}},e.prototype.count=function(){var r=To(this._mapper);return r[1]-r[0]+1},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.type="ordinal",e.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(r){return this._mapper.contain(this._getTickNumber(r))&&r>=0&&r<this._ordinalMeta.categories.length},normalize:function(r){return this._mapper.normalize(this._getTickNumber(r))},scale:function(r){return this.getRawOrdinalNumber(Or(this._mapper.scale(r)))},transformIn:function(r,n){return this._mapper.transformIn(this._getTickNumber(r),n)},transformOut:function(r,n){return this.getRawOrdinalNumber(this._mapper.transformOut(r,n))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(r,n){return this._mapper.getExtentUnsafe(r,n)},setExtent:function(r,n){return this._mapper.setExtent(r,n)},setExtent2:function(r,n,i){return this._mapper.setExtent2(r,n,i)}},e})(jt);jt.registerClass(C_);function rv(t,e,r,n){for(var i=t.getTicks({expandToNicedExtent:!0}),a=[],o=t.getExtent(),s=1;s<i.length;s++){var l=i[s],u=i[s-1];if(!(u.break||l.break)){for(var f=0,c=[],v=l.value-u.value,h=v/e,d=ai(h);f<e-1;){var p=ve(u.value+(f+1)*h,d);p>o[0]&&p<o[1]&&c.push(p),f++}var g=at();g&&g.pruneTicksByBreak("auto",c,r,function(m){return m},n,o),a.push(c)}}return a}var dn=(function(t){V(e,t);function e(r){var n=t.call(this)||this;n.type="interval",n.parse=e.parse,r=r||{};var i=w0(n,r),a=Jh(n,i,null);return n.brk=a.brk,n._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},n}return e.parse=function(r){return r==null||r===""?NaN:Number(r)},e.prototype.getConfig=function(){return oe(this._cfg)},e.prototype.setConfig=function(r){var n=To(this);this._cfg=r=oe(r),r.niceExtent==null&&(r.niceExtent=n.slice()),r.intervalPrecision==null&&(r.intervalPrecision=ai(r.interval))},e.prototype.getTicks=function(r){r=r||{};var n=this._cfg,i=n.interval,a=To(this),o=n.niceExtent,s=n.intervalPrecision,l=at(),u=this.brk,f=l&&u,c=[];if(!i)return c;if(r.breakTicks==="only_break"&&f)return l.addBreaksToTicks(c,u.breaks,a),c;var v=3e3;a[0]<o[0]&&c.push({value:r.expandToNicedExtent?ve(o[0]-i,s):a[0]});for(var h=function(_,S){return Or((S-_)/i)},d=n.intervalCount,p=o[0],g=0;;g++){if(d==null){if(p>o[1]||!isFinite(p)||!isFinite(o[1]))break}else{if(g>d)break;p=qe(p,o[1]),g===d&&(p=o[1])}if(c.push({value:p}),p=ve(p+i,s),u){var m=u.calcNiceTickMultiple(p,h);m>=0&&(p=ve(p+m*i,s))}if(c.length>0&&p===c[c.length-1].value)break;if(c.length>v)return[]}var y=c.length?c[c.length-1].value:o[1];return a[1]>y&&c.push({value:r.expandToNicedExtent?ve(y+i,s):a[1]}),f&&l.pruneTicksByBreak(r.pruneByBreak,c,u.breaks,function(_){return _.value},n.interval,a),f&&r.breakTicks!=="none"&&l.addBreaksToTicks(c,u.breaks,a),c},e.prototype.getMinorTicks=function(r){return rv(this,r,El(this),this._cfg.interval)},e.prototype.getLabel=function(r,n){if(r==null)return"";var i=n&&n.precision;i==null?i=nn(r.value)||0:i==="auto"&&(i=this._cfg.intervalPrecision);var a=ve(r.value,i,!0);return E0(a)},e.type="interval",e})(jt);jt.registerClass(dn);var xP=function(t,e,r,n){for(;r<n;){var i=r+n>>>1;t[i][1]<e?r=i+1:n=i}return r},A_=(function(t){V(e,t);function e(r){var n=t.call(this)||this;n.type="time",n.parse=e.parse,n._locale=r.locale,n._useUTC=r.useUTC,n._interval=0;var i=w0(n,r),a=Jh(n,i,null);return n.brk=a.brk,n}return e.prototype.getLabel=function(r){return Nl(r.value,x0[nL(go(this._minLevelUnit))]||x0.second,this._useUTC,this._locale)},e.prototype.getFormattedLabel=function(r,n,i){return iL(r,n,i,this._locale,this._useUTC)},e.prototype.getTicks=function(r){r=r||{};var n=this._interval,i=To(this),a=at(),o=this.brk,s=a&&o,l=[];if(!n)return l;var u=this._useUTC;if(s&&r.breakTicks==="only_break")return at().addBreaksToTicks(l,o.breaks,i),l;l=PP(this._minLevelUnit,this._approxInterval,u,i,Yl(this),o);var f=St.length-1,c=0;return I(l,function(v){v.time&&(f=Math.min(f,fe(St,v.time.upperTimeUnit)),c=Math.max(c,v.time.level))}),s&&at().pruneTicksByBreak(r.pruneByBreak,l,o.breaks,function(v){return v.value},this._approxInterval,i),s&&r.breakTicks!=="none"&&at().addBreaksToTicks(l,o.breaks,i,function(v){for(var h=Math.max(fe(St,Qi(v.vmin,u)),fe(St,Qi(v.vmax,u))),d=0,p=0;p<St.length;p++)if(!D_(St[p],v.vmin,v.vmax,u)){d=p;break}var g=Math.min(d,f),m=Math.max(g,h);return{level:c,lowerTimeUnit:St[m],upperTimeUnit:St[g]}}),l},e.prototype.getMinorTicks=function(r){return rv(this,r,El(this),this._interval)},e.prototype.setTimeInterval=function(r){this._interval=r.interval,this._approxInterval=r.approxInterval,this._minLevelUnit=r.minLevelUnit},e.parse=function(r){return me(r)?Math.round(r):+Oi(r)},e.type="time",e})(jt),Zl=[["second",Mh],["minute",Ih],["hour",po],["quarter-day",po*6],["half-day",po*12],["day",Nt*1.2],["half-week",Nt*3.5],["week",Nt*7],["month",Nt*31],["quarter",Nt*95],["half-year",T0/2],["year",T0]];function D_(t,e,r,n){return Lh(new Date(e),t,n).getTime()===Lh(new Date(r),t,n).getTime()}function CP(t,e){return t/=Nt,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function AP(t){var e=30*Nt;return t/=e,t>6?6:t>3?3:t>2?2:1}function DP(t){return t/=po,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function M_(t,e){return t/=e?Ih:Mh,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function MP(t){return ge(wc(t,!0),1)}function IP(t,e,r){var n=Math.max(0,fe(St,e)-1);return Lh(new Date(t),St[n],r).getTime()}function LP(t,e){var r=new Date(0);r[t](1);var n=r.getTime();r[t](1+e);var i=r.getTime()-n;return function(a,o){return Math.max(0,Math.round((o-a)/i))}}function PP(t,e,r,n,i,a){var o=3e3,s=JI,l=0;function u(k,O,R,N,F,B,G){for(var X=LP(F,k),H=O,K=new Date(H);H<R&&H<=n[1]&&(G.push({value:H}),!(l++>o));)if(K[F](K[N]()+k),H=K.getTime(),a){var ae=a.calcNiceTickMultiple(H,X);ae>0&&(K[F](K[N]()+ae*k),H=K.getTime())}G.push({value:H,notAdd:H>n[1]})}function f(k,O,R){var N=[],F=!O.length;if(!D_(go(k),n[0],n[1],r)){F&&(O=[{value:IP(n[0],k,r)},{value:n[1]}]);for(var B=0;B<O.length-1;B++){var G=O[B].value,X=O[B+1].value;if(G!==X){var H=void 0,K=void 0,ae=void 0,ke=!1;switch(k){case"year":H=Math.max(1,Math.round(e/Nt/365)),K=C0(r),ae=aL(r);break;case"half-year":case"quarter":case"month":H=AP(e),K=Ph(r),ae=A0(r);break;case"week":case"half-week":case"day":H=CP(e),K=Eh(r),ae=D0(r),ke=!0;break;case"half-day":case"quarter-day":case"hour":H=DP(e),K=kh(r),ae=M0(r);break;case"minute":H=M_(e,!0),K=Rh(r),ae=I0(r);break;case"second":H=M_(e,!1),K=Oh(r),ae=L0(r);break;case"millisecond":H=MP(e),K=Nh(r),ae=P0(r);break}X>=n[0]&&G<=n[1]&&u(H,G,X,K,ae,ke,N),k==="year"&&R.length>1&&B===0&&R.unshift({value:R[0].value-H})}}for(var B=0;B<N.length;B++)R.push(N[B])}}for(var c=[],v=[],h=0,d=0,p=0;p<s.length;++p){var g=go(s[p]);if(rL(s[p])){f(s[p],c[c.length-1]||[],v);var m=s[p+1]?go(s[p+1]):null;if(g!==m){if(v.length){d=h,v.sort(function(k,O){return k.value-O.value});for(var y=[],_=0;_<v.length;++_){var S=v[_].value;(_===0||v[_-1].value!==S)&&(y.push(v[_]),S>=n[0]&&S<=n[1]&&h++)}var b=i/e;if(h>b*1.5&&d>b/1.5||(c.push(y),h>b||t===s[p]))break}v=[]}}}for(var w=Ue($(c,function(k){return Ue(k,function(O){return O.value>=n[0]&&O.value<=n[1]&&!O.notAdd})}),function(k){return k.length>0}),T=w.length-1,C=[],p=0;p<w.length;++p)for(var D=w[p],x=0;x<D.length;++x){var A=Qi(D[x].value,r);C.push({value:D[x].value,time:{level:T-p,upperTimeUnit:A,lowerTimeUnit:A}})}Mc(C,_D,null),C.sort(function(k,O){return k.value-O.value});var L=C[0],M=C[C.length-1],P=Qi(n[0],r),E=Qi(n[1],r);return(!L||L.value>n[0])&&C.unshift({value:n[0],time:{level:0,upperTimeUnit:P,lowerTimeUnit:P},notNice:!0}),(!M||M.value<n[1])&&C.push({value:n[1],time:{level:0,upperTimeUnit:E,lowerTimeUnit:E},notNice:!0}),C}var EP=function(t,e){var r=t.getExtent();if(r[0]===r[1]&&(r[0]-=Nt,r[1]+=Nt),r[1]===-1/0&&r[0]===1/0){var n=new Date;r[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),r[0]=r[1]-Nt}t.setExtent(r[0],r[1]);var i=ql(e.splitNumber,10),a=Yl(t)/i,o=e.minInterval,s=e.maxInterval;o!=null&&a<o&&(a=o),s!=null&&a>s&&(a=s);var l=Zl.length,u=Math.min(xP(Zl,a,0,l),l-1),f=Zl[u][1],c=Zl[Math.max(u-1,0)][0];t.setTimeInterval({approxInterval:a,interval:f,minLevelUnit:c})};jt.registerClass(A_);var Kl=0,jl=1,kP=2,I_=(function(t){V(e,t);function e(r){var n=t.call(this)||this;n.type="log",n.parse=dn.parse,n.base=r.logBase||10;var i=[],a=[],o=n._lookup={from:i,to:a};i[Kl]=i[jl]=a[Kl]=a[jl]=NaN,__(n,e.mapperMethods);var s=at(),l=r.breakOption,u={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(l,n,{noNegative:!0},kP,u),n.powStub=new dn({breakParsed:u.original}),n.intervalStub=new dn({breakParsed:u.transformed}),S_(n,n.intervalStub),n}return e.prototype.getTicks=function(r){var n=this.base,i=this.powStub,a=at(),o=this.intervalStub,s=o.getExtent(),l=i.getExtent(),u={lookup:{from:s,to:l}};return $(o.getTicks(r||{}),function(f){var c=f.value,v=tv(c,n,u),h;if(a){var d=a.getTicksBreakOutwardTransform(this,f,El(i),this._lookup);d&&(h=d.vBreak,v=d.tickVal)}return{value:v,break:h}},this)},e.prototype.getMinorTicks=function(r){return rv(this,r,El(this.powStub),this.intervalStub.getConfig().interval)},e.prototype.getLabel=function(r,n){return this.intervalStub.getLabel(r,n)},e.type="log",e.mapperMethods={needTransform:function(){return!0},normalize:function(r){return this.intervalStub.normalize(Xl(r,this.base))},scale:function(r){return tv(this.intervalStub.scale(r),this.base,null)},transformIn:function(r,n){return r=Xl(r,this.base),n&&n.depth===Ul?r:this.intervalStub.transformIn(r,n)},transformOut:function(r,n){var i=n?n.depth:null;return L_.depth=i,P_.lookup=this._lookup,tv(i===Ul?r:this.intervalStub.transformOut(r,L_),this.base,P_)},contain:function(r){return this.powStub.contain(r)},setExtent:function(r,n){this.setExtent2(Ft,r,n)},setExtent2:function(r,n,i){if(!(!Ni(n,i)||n<=0||i<=0)){var a=E_,o=E_;if(r===Ft){var s=this._lookup;a=s.to,o=s.from}this.powStub.setExtent2(r,a[Kl]=n,a[jl]=i);var l=this.base;this.intervalStub.setExtent2(r,o[Kl]=Xl(n,l),o[jl]=Xl(i,l))}},getFilter:function(){return{g:0}},sanitize:function(r,n){return Ni(n[0],n[1])&&Lt(r)&&r<=0&&(r=n[0]),r},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(r,n){return n===null?this.powStub.getExtentUnsafe(r,null):this.intervalStub.getExtentUnsafe(r,n)}},e})(jt);jt.registerClass(I_);var L_={},P_={},E_=[],k_={value:1,category:1,time:1,log:1},R_=Se();function RP(t){var e=t.get("type");return(e==null||!tt(k_,e)&&!jt.getClass(e))&&(e="value"),e}function OP(t,e,r){var n=at(),i;switch(n&&(i=O_(t,e)),e){case"category":return new C_({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:Et()});case"time":return new A_({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC"),breakOption:i});case"log":return new I_({logBase:t.get("logBase"),breakOption:i});case"value":return new dn({breakOption:i});default:return new(jt.getClass(e)||dn)({})}}function NP(t,e,r){var n=t.getExtentUnsafe(Ft,null),i=n[0],a=n[1];return Ni(i,a)?i===e||a===e?FP:i<e&&a>e?BP:nv:nv}var BP=1,FP=2,nv=3;function zP(t){R_(t).noOnMyZero=!0}function VP(t){return R_(t).noOnMyZero}function Ql(t){var e=t.getLabelModel().get("formatter");if(t.type==="time"){var r=eL(e);return function(i,a){return t.scale.getFormattedLabel(i,a,r)}}else{if(q(e))return function(i){var a=t.scale.getLabel(i),o=e.replace("{value}",a??"");return o};if(ee(e)){if(t.type==="category")return function(i,a){return e(Jl(t,i),i.value-t.scale.getExtent()[0],null)};var n=at();return function(i,a){var o=null;return n&&(o=n.makeAxisLabelFormatterParamBreak(o,i.break)),e(Jl(t,i),a,o)}}else return function(i){return t.scale.getLabel(i)}}}function Jl(t,e){var r=t.scale;return Qt(r)?r.getLabel(e):e.value}function iv(t){var e=t.get("interval");return e??"auto"}function GP(t){return t.type==="category"&&iv(t.getLabelModel())===0}function HP(t,e){var r={};return I(t.mapDimensionsAll(e),function(n){r[LI(t,n)]=!0}),ce(r)}function ta(t){return t==="middle"||t==="center"}function xo(t){return t.getShallow("show")}function O_(t,e,r){var n=t.get("breaks",!0);if(n!=null)return!at()||!UP(e)?void 0:n}function UP(t){return t!=="category"}function N_(t,e,r,n,i,a){var o=ea(t),s=o?t.intervalStub:t;if(s.setExtent(n[0],n[1]),o){var l=t.powStub,u={depth:Ul},f=t.transformOut(n[0],u),c=t.transformOut(n[1],u),v=TP(r,n);e[0]&&!v[0]&&(f=i[0]),e[1]&&!v[1]&&(c=i[1]),l.setExtent(f,c)}s.setConfig(a)}function Co(t,e){return Qt(t)?t.getRawOrdinalNumber(e.value):e.value}function B_(t,e){return Qt(t)&&!!e.get("boundaryGap")}function F_(t,e){if(t.length===e.length){for(var r=0;r<t.length;r++)if(t[r]!==e[r])return;return!0}}function z_(t){for(var e=Et(),r=Et(),n=0;n<t.length;){var i=t[n++],a=t[n++];Bt(i,a)||(Dc(e,i),Dc(r,a))}return[e,r]}function V_(t,e){var r=z_(t),n=r[0],i=r[1],a=z_(e),o=a[0],s=a[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(i[0]-s[0]),Math.abs(n[1]-o[1]),Math.abs(i[1]-s[1]))}function G_(t){return me(t)?t:t?.5:0}function WP(t,e,r){if(r.valueDim==null)return[];for(var n=e.count(),i=Gr(n*2),a=0;a<n;a++){var o=u_(r,t,e,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function pn(t,e,r,n,i){var a=r.getBaseAxis(),o=a.dim==="x"||a.dim==="radius"?0:1,s=[],l=0,u=[],f=[],c=[],v=[];if(i){for(l=0;l<t.length;l+=2){var h=e||t;Bt(h[l],h[l+1])||v.push(t[l],t[l+1])}t=v}for(l=0;l<t.length-2;l+=2)switch(c[0]=t[l+2],c[1]=t[l+3],f[0]=t[l],f[1]=t[l+1],s.push(f[0],f[1]),n){case"end":u[o]=c[o],u[1-o]=f[1-o],s.push(u[0],u[1]);break;case"middle":var d=(f[o]+c[o])/2,p=[];u[o]=p[o]=d,u[1-o]=f[1-o],p[1-o]=c[1-o],s.push(u[0],u[1]),s.push(p[0],p[1]);break;default:u[o]=f[o],u[1-o]=c[1-o],s.push(u[0],u[1])}return s.push(t[l++],t[l++]),s}function YP(t,e){var r=[],n=t.length,i,a;function o(f,c,v){var h=f.coord,d=(v-h)/(c.coord-h),p=YC(d,[f.color,c.color]);return{coord:v,color:p}}for(var s=0;s<n;s++){var l=t[s],u=l.coord;if(u<0)i=l;else if(u>e){a?r.push(o(a,l,e)):i&&r.push(o(i,l,0),o(i,l,e));break}else i&&(r.push(o(i,l,0)),i=null),r.push(l),a=l}return r}function $P(t,e,r){var n=t.getVisual("visualMeta");if(!(!n||!n.length||!t.count())&&e.type==="cartesian2d"){for(var i,a,o=n.length-1;o>=0;o--){var s=t.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(a){var l=e.getAxis(i),u=$(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,c=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var v=YP(u,i==="x"?r.getWidth():r.getHeight()),h=v.length;if(!h&&f)return u[0].coord<0?c[1]?c[1]:u[f-1].color:c[0]?c[0]:u[0].color;var d=10,p=v[0].coord-d,g=v[h-1].coord+d,m=g-p;if(m<.001)return"transparent";I(v,function(_){_.offset=(_.coord-p)/m}),v.push({offset:h?v[h-1].offset:.5,color:c[1]||"transparent"}),v.unshift({offset:h?v[0].offset:.5,color:c[0]||"transparent"});var y=new cy(0,0,0,0,v,!0);return y[i]=p,y[i+"2"]=g,y}}}function XP(t,e,r){var n=t.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(i&&qP(a,e))){var o=e.mapDimension(a.dim),s={};return I(a.getViewLabels(),function(l){l.tick.offInterval||(s[Co(a.scale,l.tick)]=1)}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function qP(t,e){var r=t.getExtent(),n=Math.abs(r[1]-r[0])/t.scale.count();isNaN(n)&&(n=0);for(var i=e.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(qh.getSymbolSize(e,o)[t.isHorizontal()?1:0]*1.5>n)return!1;return!0}function ZP(t){for(var e=t.length/2;e>0&&Bt(t[e*2-2],t[e*2-1]);e--);return e-1}function H_(t,e){return[t[e*2],t[e*2+1]]}function KP(t,e,r){for(var n=t.length/2,i=r==="x"?0:1,a,o,s=0,l=-1,u=0;u<n;u++)if(o=t[u*2+i],!Bt(o,t[u*2+1-i])){if(u===0){a=o;continue}if(a<=e&&o>=e||a>=e&&o<=e){l=u;break}s=u,a=o}return{range:[s,l],t:(e-a)/(o-a)}}function U_(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<Rt.length;e++)if(t.get([Rt[e],"endLabel","show"]))return!0;return!1}function av(t,e,r,n){if(g_(e,"cartesian2d")){var i=n.getModel("endLabel"),a=i.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=U_(n)?function(h,d){t._endLabelOnDuring(h,d,o,s,a,i,e)}:null,u=e.getBaseAxis().isHorizontal(),f=d_(e,r,n,function(){var h=t._endLabel;h&&r&&s.originalX!=null&&h.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var c=f.shape,v=Math.max(c.width,c.height);u?(c.y-=v,c.height+=v*2):(c.x-=v,c.width+=v*2)}return l&&l(1,f),f}else return p_(e,r,n)}function jP(t,e){var r=e.getBaseAxis(),n=r.isHorizontal(),i=r.inverse,a=n?i?"right":"left":"center",o=n?"middle":i?"top":"bottom";return{normal:{align:t.get("align")||a,verticalAlign:t.get("verticalAlign")||o}}}var QP=(function(t){V(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(){var r=new Ce,n=new s_;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=r,this._changePolyState=de(this._changePolyState,this)},e.prototype.render=function(r,n,i){var a=r.coordinateSystem,o=this.group,s=r.getData(),l=r.getModel("lineStyle"),u=r.getModel("areaStyle"),f=s.getLayout("points")||[],c=a.type==="polar",v=this._coordSys,h=this._symbolDraw,d=this._polyline,p=this._polygon,g=this._lineGroup,m=!n.ssr&&r.get("animation"),y=!u.isEmpty(),_=u.get("origin"),S=l_(a,s,_),b=y&&WP(a,s,S),w=r.get("showSymbol"),T=r.get("connectNulls"),C=w&&!c&&XP(r,s,a),D=this._data;D&&D.eachItemGraphicEl(function(he,Te){he.__temp&&(o.remove(he),D.setItemGraphicEl(Te,null))}),w||h.remove(),o.add(g);var x=c?!1:r.get("step"),A;a&&a.getArea&&r.get("clip",!0)&&(A=a.getArea(),A.width!=null?(A.x-=.1,A.y-=.1,A.width+=.2,A.height+=.2):A.r0&&(A.r0-=.5,A.r+=.5)),this._clipShapeForSymbol=A;var L=$P(s,a,i)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&v.type===a.type&&x===this._step))w&&h.updateData(s,{isIgnore:C,clipShape:A,disableAnimation:!0,getSymbolPoint:function(he){return[f[he*2],f[he*2+1]]}}),m&&this._initSymbolLabelAnimation(s,a,A),x&&(b&&(b=pn(b,f,a,x,T)),f=pn(f,null,a,x,T)),d=this._newPolyline(f),y?p=this._newPolygon(f,b):p&&(g.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(r,a,ri(L)),g.setClipPath(av(this,a,!0,r));else{y&&!p?p=this._newPolygon(f,b):p&&!y&&(g.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(r,a,ri(L));var M=g.getClipPath();if(M){var P=av(this,a,!1,r);Ge(M,{shape:P.shape},r)}else g.setClipPath(av(this,a,!0,r));w&&h.updateData(s,{isIgnore:C,clipShape:A,disableAnimation:!0,getSymbolPoint:function(he){return[f[he*2],f[he*2+1]]}}),(!F_(this._stackedOnPoints,b)||!F_(this._points,f))&&(m?this._doUpdateAnimation(s,b,a,i,x,_,T):(x&&(b&&(b=pn(b,f,a,x,T)),f=pn(f,null,a,x,T)),d.setShape({points:f}),p&&p.setShape({points:f,stackedOnPoints:b})))}var E=r.getModel("emphasis"),k=E.get("focus"),O=E.get("blurScope"),R=E.get("disabled");if(d.useStyle(le(l.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),zr(d,r,"lineStyle"),d.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var N=d.getState("emphasis").style;N.lineWidth=+d.style.lineWidth+1}ue(d).seriesIndex=r.seriesIndex,Fr(d,k,O,R);var F=G_(r.get("smooth")),B=r.get("smoothMonotone");if(d.setShape({smooth:F,smoothMonotone:B,connectNulls:T}),p){var G=s.getCalculationInfo("stackedOnSeries"),X=0;p.useStyle(le(u.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),G&&(X=G_(G.get("smooth"))),p.setShape({smooth:F,stackedOnSmooth:X,smoothMonotone:B,connectNulls:T}),zr(p,r,"areaStyle"),ue(p).seriesIndex=r.seriesIndex,Fr(p,k,O,R)}var H=this._changePolyState;s.eachItemGraphicEl(function(he){he&&(he.onHoverStateChange=H)}),this._polyline.onHoverStateChange=H,this._data=s,this._coordSys=a,this._stackedOnPoints=b,this._points=f,this._step=x,this._valueOrigin=_;var K=r.get("triggerEvent"),ae=r.get("triggerLineEvent"),ke=ae===!0||K===!0||K==="line",Ae=ae===!0||K===!0||K==="area";this.packEventData(r,d,ke),p&&this.packEventData(r,p,Ae)},e.prototype.packEventData=function(r,n,i){ue(n).eventData=i?{componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line",selfType:n===this._polygon?"area":"line"}:null},e.prototype.highlight=function(r,n,i,a){var o=r.getData(),s=Wn(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],c=l[s*2+1];if(Bt(f,c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var v=r.get("zlevel")||0,h=r.get("z")||0;u=new qh(o,s),u.x=f,u.y=c,u.setZ(v,h);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=v,d.z=h,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else je.prototype.highlight.call(this,r,n,i,a)},e.prototype.downplay=function(r,n,i,a){var o=r.getData(),s=Wn(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else je.prototype.downplay.call(this,r,n,i,a)},e.prototype._changePolyState=function(r){var n=this._polygon;Vm(this._polyline,r),n&&Vm(n,r)},e.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new sP({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},e.prototype._newPolygon=function(r,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new uP({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},e.prototype._initSymbolLabelAnimation=function(r,n,i){var a,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var u=r.hostModel,f=u.get("animationDuration");ee(f)&&(f=f(null));var c=u.get("animationDelay")||0,v=ee(c)?c(null):c;r.eachItemGraphicEl(function(h,d){var p=h;if(p){var g=[h.x,h.y],m=void 0,y=void 0,_=void 0;if(i)if(o){var S=i,b=n.pointToCoord(g);a?(m=S.startAngle,y=S.endAngle,_=-b[1]/180*Math.PI):(m=S.r0,y=S.r,_=b[0])}else{var w=i;a?(m=w.x,y=w.x+w.width,_=h.x):(m=w.y+w.height,y=w.y,_=h.y)}var T=y===m?0:(_-m)/(y-m);l&&(T=1-T);var C=ee(c)?c(d):f*T+v,D=p.getSymbolPath(),x=D.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:C}),x&&x.animateFrom({style:{opacity:0}},{duration:300,delay:C}),D.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(r,n,i){var a=r.getModel("endLabel");if(U_(r)){var o=r.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Me({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=ZP(l);f>=0&&(Kn(s,jn(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:f,defaultText:function(c,v,h){return h!=null?n_(o,h):Xh(o,c)},enableTextSetter:!0},jP(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(r,n,i,a,o,s,l){var u=this._endLabel,f=this._polyline;if(u){r<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var c=i.getLayout("points"),v=i.hostModel,h=v.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),m=g.isHorizontal(),y=g.inverse,_=n.shape,S=y?m?_.x:_.y+_.height:m?_.x+_.width:_.y,b=(m?p:0)*(y?-1:1),w=(m?0:-p)*(y?-1:1),T=m?"x":"y",C=KP(c,S,T),D=C.range,x=D[1]-D[0],A=void 0;if(x>=1){if(x>1&&!h){var L=H_(c,D[0]);u.attr({x:L[0]+b,y:L[1]+w}),o&&(A=v.getRawValue(D[0]))}else{var L=f.getPointOn(S,T);L&&u.attr({x:L[0]+b,y:L[1]+w});var M=v.getRawValue(D[0]),P=v.getRawValue(D[1]);o&&(A=Tm(i,d,M,P,C.t))}a.lastFrameIndex=D[0]}else{var E=r===1||a.lastFrameIndex>0?D[0]:0,L=H_(c,E);o&&(A=v.getRawValue(E)),u.attr({x:L[0]+b,y:L[1]+w})}if(o){var k=so(u);typeof k.setLabelText=="function"&&k.setLabelText(A)}}},e.prototype._doUpdateAnimation=function(r,n,i,a,o,s,l){var u=this._polyline,f=this._polygon,c=r.hostModel,v=oP(this._data,r,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),h=v.current,d=v.stackedOnCurrent,p=v.next,g=v.stackedOnNext;if(o&&(d=pn(v.stackedOnCurrent,v.current,i,o,l),h=pn(v.current,null,i,o,l),g=pn(v.stackedOnNext,v.next,i,o,l),p=pn(v.next,null,i,o,l)),V_(h,p)>3e3||f&&V_(d,g)>3e3){u.stopAnimation(),u.setShape({points:p}),f&&(f.stopAnimation(),f.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=v.current,u.shape.points=h;var m={shape:{points:p}};v.current!==h&&(m.shape.__points=v.next),u.stopAnimation(),Ie(u,m,c),f&&(f.setShape({points:h,stackedOnPoints:d}),f.stopAnimation(),Ie(f,{shape:{stackedOnPoints:g}},c),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var y=[],_=v.status,S=0;S<_.length;S++){var b=_[S].cmd;if(b==="="){var w=r.getItemGraphicEl(_[S].idx1);w&&y.push({el:w,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var T=u.shape.__points,C=0;C<y.length;C++){var D=y[C].el,x=y[C].ptIdx*2;D.x=T[x],D.y=T[x+1],D.markRedraw()}})},e.prototype.remove=function(r){var n=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(a,o){a.__temp&&(n.remove(a),i.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e})(je);function ov(t,e){return{seriesType:t,plan:jh(),reset:function(r){var n=r.getData(),i=r.coordinateSystem,a=r.pipelineContext,o=e||a.large;if(i){var s=$(i.dimensions,function(h){return n.mapDimension(h)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");Ki(n,s[0])&&(s[0]=u),Ki(n,s[1])&&(s[1]=u);var f=n.getStore(),c=n.getDimensionIndex(s[0]),v=n.getDimensionIndex(s[1]);return l&&{progress:function(h,d){for(var p=h.end-h.start,g=o&&Gr(p*l),m=[],y=[],_=h.start,S=0;_<h.end;_++){var b=void 0;if(l===1){var w=f.get(c,_);b=i.dataToPoint(w,null,y)}else m[0]=f.get(c,_),m[1]=f.get(v,_),b=i.dataToPoint(m,null,y);o?(g[S++]=b[0],g[S++]=b[1]):d.setItemLayout(_,b.slice())}o&&(d.setLayout("points",g),d.setLayout("pointsRange",{start:h.start,end:h.end}))}}}}}}var JP={average:function(t){for(var e=0,r=0,n=0;n<t.length;n++)isNaN(t[n])||(e+=t[n],r++);return r===0?NaN:e/r},sum:function(t){for(var e=0,r=0;r<t.length;r++)e+=t[r]||0;return e},max:function(t){for(var e=-1/0,r=0;r<t.length;r++)t[r]>e&&(e=t[r]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,r=0;r<t.length;r++)t[r]<e&&(e=t[r]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},e2=function(t){return Math.round(t.length/2)};function W_(t){return{seriesType:t,reset:function(e,r,n){var i=e.getData(),a=e.get("sampling"),o=e.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=n.getDevicePixelRatio(),v=Math.abs(f[1]-f[0])*(c||1),h=Math.round(s/v);if(isFinite(h)&&h>1){a==="lttb"?e.setData(i.lttbDownSample(i.mapDimension(u.dim),1/h)):a==="minmax"&&e.setData(i.minmaxDownSample(i.mapDimension(u.dim),1/h));var d=void 0;q(a)?d=JP[a]:ee(a)&&(d=a),d&&e.setData(i.downSample(i.mapDimension(u.dim),1/h,d,e2))}}}}}function t2(t){t.registerChartView(QP),t.registerSeriesModel(eP),t.registerLayout(ov("line",!0)),t.registerVisual({seriesType:"line",reset:function(e){var r=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,W_("line"))}var r2=Se(),Ao=Se(),Jt={estimate:1,determine:2};function eu(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function n2(t,e){var r=t.getLabelModel().get("customValues");if(r){var n=t.scale;return{labels:$(Y_(r,n),function(i,a){return{formattedLabel:Ql(t)(i,a),rawLabel:n.getLabel(i),tick:i}})}}return t.type==="category"?a2(t,e):s2(t)}function i2(t,e,r){var n=t.scale,i=t.getTickModel().get("customValues");return i?{ticks:Y_(i,n)}:t.type==="category"?o2(t,e):{ticks:n.getTicks(r)}}function Y_(t,e){var r=e.getExtent(),n=[];return I(t,function(i){i=e.parse(i),i>=r[0]&&i<=r[1]&&n.push(i)}),Mc(n,SD,null),Sc(n),$(n,function(i){return{value:i}})}function a2(t,e){var r=t.getLabelModel(),n=$_(t,r,e);return!r.get("show")||t.scale.isBlank()?{labels:[]}:n}function $_(t,e,r){var n=u2(t),i=iv(e),a=r.kind===Jt.estimate;if(!a){var o=q_(n,i);if(o)return o}var s,l;ee(i)?s=tu(t,i,!1):(l=i==="auto"?f2(t,r):i,s=tu(t,l,!1));var u={labels:s,labelCategoryInterval:l};return a?r.out.noPxChangeTryDetermine.push(function(){return sv(n,i,u),!0}):sv(n,i,u),u}function o2(t,e){var r=l2(t),n=iv(e),i=q_(r,n);if(i)return i;var a,o;if((!e.get("show")||t.scale.isBlank())&&(a=[]),ee(n))a=tu(t,n,!0);else if(n==="auto"){var s=$_(t,t.getLabelModel(),eu(Jt.determine));o=s.labelCategoryInterval,a=$(s.labels,function(l){return l.tick})}else o=n,a=tu(t,o,!0);return sv(r,n,{ticks:a,tickCategoryInterval:o})}function s2(t){var e=t.scale.getTicks(),r=Ql(t);return{labels:$(e,function(n,i){return{formattedLabel:r(n,i),rawLabel:t.scale.getLabel(n),tick:n}})}}var l2=X_("axisTick"),u2=X_("axisLabel");function X_(t){return function(r){return Ao(r)[t]||(Ao(r)[t]={list:[]})}}function q_(t,e){for(var r=0;r<t.list.length;r++)if(t.list[r].key===e)return t.list[r].value}function sv(t,e,r){return t.list.push({key:e,value:r}),r}function f2(t,e){if(e.kind===Jt.estimate){var r=t.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return Ao(t).autoInterval=r,!0}),r}var n=Ao(t).autoInterval;return n??(Ao(t).autoInterval=t.calculateCategoryInterval(e))}function c2(t,e){var r=e.kind,n=v2(t),i=Ql(t),a=(n.axisRotate-n.labelRotate)/180*Math.PI,o=t.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1,f=40;l>f&&(u=Math.max(1,Math.floor(l/f)));for(var c=s[0],v=t.dataToCoord(c+1)-t.dataToCoord(c),h=Math.abs(v*Math.cos(a)),d=Math.abs(v*Math.sin(a)),p=0,g=0;c<=s[1];c+=u){var m=0,y=0,_=ag(i({value:c}),n.font,"center","top");m=_.width*1.3,y=_.height*1.3,p=Math.max(p,m,7),g=Math.max(g,y,7)}var S=p/h,b=g/d;isNaN(S)&&(S=1/0),isNaN(b)&&(b=1/0);var w=Math.max(0,Math.floor(Math.min(S,b)));if(r===Jt.estimate)return e.out.noPxChangeTryDetermine.push(de(h2,null,t,w,l)),w;var T=Z_(t,w,l);return T??w}function h2(t,e,r){return Z_(t,e,r)==null}function Z_(t,e,r){var n=r2(t.model),i=t.getExtent(),a=n.lastAutoInterval,o=n.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-e)<=1&&Math.abs(o-r)<=1&&a>e&&n.axisExtent0===i[0]&&n.axisExtent1===i[1])return a;n.lastTickCount=r,n.lastAutoInterval=e,n.axisExtent0=i[0],n.axisExtent1=i[1]}function v2(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function tu(t,e,r){var n=Ql(t),i=t.scale,a=[],o=ee(e);return x_(i,o?0:e,function(s,l){var u=i.getLabel(s);if(o){var f=!!e(s.value,u);if(s.offInterval=!f,!f&&!l)return}a.push(r?s:{formattedLabel:n(s),rawLabel:u,tick:s})}),a}var ru=Se();function d2(t){ru(t).prepare={}}function p2(t){ru(t).fullUpdate={}}function g2(t){return ru(t).prepare}function ra(t){return ru(t).fullUpdate}var m2=Am(),lv="|&",na=Se(),K_=-2,y2=-1,_2=Se();function j_(t,e){var r=t.model,n=na(ra(r.ecModel)).keyed,i=n&&n.get(e);return i&&i.get(r.uid)}function S2(t,e){return J_(j_(t,e))}function b2(t,e){var r=[];return Q_(t.model.ecModel,function(n){for(var i=0;i<e.length;i++)e[i]&&n.serByIdx[e[i].seriesIndex]&&r.push(J_(n))}),r}function Q_(t,e){var r=na(ra(t)).keyed;r&&r.each(function(n,i){n.each(function(a,o){e(a,i,o)})})}function J_(t){return{liPosMinGap:t?t.liPosMinGap:void 0}}function w2(t,e){var r=t.model.ecModel,n=na(ra(r)).axSer;n&&uv(r,n.get(t.model.uid),e)}function eS(t,e,r){var n=j_(t,e);n&&uv(t.model.ecModel,n.sers,r)}function uv(t,e,r){if(e)for(var n=0;n<e.length;n++){var i=e[n];t.isSeriesFiltered(i)||r(i)}}function T2(t,e,r){var n=na(ra(t)).keyed,i=n&&n.get(e);i&&i.each(function(a){r(a.axis)})}function tS(t,e){var r=t.model,n=na(ra(r.ecModel)).keys;n&&I(n.get(r.uid),function(i){e(i)})}function x2(t){var e=_2(g2(t)),r=e.keyed||(e.keyed=te());Q_(t,function(n,i,a){var o=r.get(i)||r.set(i,te()),s=o.get(a)||o.set(a,{});n.metrics.liPosMinGap&&rS.liPosMinGap(t,n,s)})}function C2(t,e){rS[t]=e}var rS={};function fv(t,e,r){if(t){var n=e.ecModel,i=na(ra(n)),a=t.model.uid,o=i.axSer||(i.axSer=te()),s=o.get(a)||o.set(a,[]);s.push(e);var l=e.subType,u=e.getBaseAxis()===t,f=hv.get(cv(l,u,r))||hv.get(cv(l,u,null));if(f){var c=i.keyed||(i.keyed=te()),v=i.keys||(i.keys=te()),h=f.key,d=c.get(h)||c.set(h,te()),p=d.get(a);p||(p=d.set(a,{axis:t,sers:[],serByIdx:[]}),p.metrics=f.getMetrics(t),(v.get(a)||v.set(a,[])).push(h)),p.sers.push(e),p.serByIdx[e.seriesIndex]=e}}}function cv(t,e,r){return t+lv+Z(e,!0)+lv+(r||"")}function A2(t,e){var r=cv(e.seriesType,e.baseAxis,e.coordSysType);hv.set(r,e),m2(t,function(){t.registerProcessor(t.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:x2})})}var hv=te(),D2=.8;function ia(t,e){e=e||{};var r={w:NaN,w2:NaN},n=t.scale,i=e.fromStat,a=e.min,o=_P(n);Lt(o)||(o=NaN);var s=t.getExtent(),l=Be(s[1]-s[0]);return Qt(n)?M2(r,t,o,l):i&&I2(r,t,o,l,i),a!=null&&(r.w=Lt(r.w)?ge(a,r.w):a),r}function M2(t,e,r,n){var i=e.onBand,a=r+(i?1:0);a===0&&(a=1),t.w=n/a,!i&&r&&n&&(t.w2=t.w*r/n)}function I2(t,e,r,n,i){var a=!1,o=-1/0;I(i.key?[S2(e,i.key)]:b2(e,i.sers||[]),function(s){var l=s.liPosMinGap;l!=null&&(l>0?(l>o&&(o=l),a=!1):l===K_&&(a=!0))}),Lt(r)&&r>0&&Lt(o)?(t.w=n/r*o,t.w2=o):a&&(t.w=n*D2,t.w2=t.w*r/n)}var nS=[0,1],iS=(function(){function t(e,r,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=r,this._extent=n||[0,0]}return t.prototype.contain=function(e){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return e>=n&&e<=i},t.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(e,r){var n=this._extent;n[0]=e,n[1]=r},t.prototype.dataToCoord=function(e,r){var n=this.scale;return e=n.normalize(n.parse(e)),It(e,nS,aS(this),r)},t.prototype.coordToData=function(e,r){var n=It(e,aS(this),nS,r);return this.scale.scale(n)},t.prototype.pointToData=function(e,r){},t.prototype.getTicksCoords=function(e){e=e||{};var r=e.tickModel||this.getTickModel(),n=i2(this,r,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),i=$(n.ticks,function(s){return{coord:this.dataToCoord(Co(this.scale,s)),tick:s}},this),a=r.get("alignWithLabel"),o=L2(this,i,a);return $(i,function(s){return{coord:s.coord,tickValue:s.tick.value,onBand:o}})},t.prototype.getMinorTicksCoords=function(){if(Qt(this.scale))return[];var e=this.model.getModel("minorTick"),r=e.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),i=$(n,function(a){return $(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},t.prototype.getViewLabels=function(e){return e=e||eu(Jt.determine),n2(this,e).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){return ia(this,{min:1}).w},t.prototype.calculateCategoryInterval=function(e){return e=e||eu(Jt.determine),c2(this,e)},t})();function aS(t){var e=t.getExtent();if(t.onBand){var r=e[1]-e[0],n=r/t.scale.count()/2;e[0]+=n,e[1]-=n}return e}function L2(t,e,r){var n=e.length;if(!t.onBand||r||!n)return!1;var i=ia(t).w;if(!i)return!1;I(e,function(s){s.coord-=i/2});var a=t.scale.getExtent(),o=e[n-1];return o.tick.offInterval&&e.pop(),e.push({coord:o.coord+i,tick:{value:a[1]+1}}),!0}var P2=(function(t){V(e,t);function e(r,n,i,a,o){var s=t.call(this,r,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},e.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},e.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},e.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},e})(iS),oS=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],E2=1,nu=2,sS=E2|nu;function iu(t,e,r){r=r||sS,e?t.dirty|=r:t.dirty&=~r}function lS(t,e){return e=e||sS,t.dirty==null||!!(t.dirty&e)}function Dr(t){if(t)return lS(t)&&uS(t,t.label,t),t}function uS(t,e,r){var n=e.getComputedTransform();t.transform=oh(t.transform,n);var i=t.localRect=ao(t.localRect,e.getBoundingRect()),a=e.style,o=a.margin,s=r&&r.marginForce,l=r&&r.minMarginForce,u=r&&r.marginDefault,f=a.__marginType;f==null&&u&&(o=u,f=Yi.textMargin);for(var c=0;c<4;c++)vv[c]=f===Yi.minMargin&&l&&l[c]!=null?l[c]:s&&s[c]!=null?s[c]:o?o[c]:0;f===Yi.textMargin&&gl(i,vv,!1,!1);var v=t.rect=ao(t.rect,i);return n&&v.applyTransform(n),f===Yi.minMargin&&gl(v,vv,!1,!1),t.axisAligned=ah(n),(t.label=t.label||{}).ignore=e.ignore,iu(t,!1),iu(t,!0,nu),t}var vv=[0,0,0,0];function k2(t,e,r){return t.transform=oh(t.transform,r),t.localRect=ao(t.localRect,e),t.rect=ao(t.rect,e),r&&t.rect.applyTransform(r),t.axisAligned=ah(r),t.obb=void 0,(t.label=t.label||{}).ignore=!1,t}function R2(t,e){if(t){t.label.x+=e.x,t.label.y+=e.y,t.label.markRedraw();var r=t.transform;r&&(r[4]+=e.x,r[5]+=e.y);var n=t.rect;n&&(n.x+=e.x,n.y+=e.y);var i=t.obb;i&&i.fromBoundingRect(t.localRect,r)}}function fS(t,e){for(var r=0;r<oS.length;r++){var n=oS[r];t[n]==null&&(t[n]=e[n])}return Dr(t)}function cS(t){var e=t.obb;return(!e||lS(t,nu))&&(t.obb=e=e||new hy,e.fromBoundingRect(t.localRect,t.transform),iu(t,!1,nu)),e}function O2(t,e,r,n,i){var a=t.length,o=sn[e],s=Wi[e];if(a<2)return!1;t.sort(function(T,C){return T.rect[o]-C.rect[o]});for(var l=0,u,f=!1,c=0;c<a;c++){var v=t[c],h=v.rect;u=h[o]-l,u<0&&(h[o]-=u,v.label[o]-=u,f=!0),l=h[o]+h[s]}var d=t[0],p=t[a-1],g,m;y(),g<0&&b(-g,.8),m<0&&b(m,.8),y(),_(g,m,1),_(m,g,-1),y(),g<0&&w(-g),m<0&&w(m);function y(){g=d.rect[o]-r,m=n-p.rect[o]-p.rect[s]}function _(T,C,D){if(T<0){var x=Math.min(C,-T);if(x>0){S(x*D,0,a);var A=x+T;A<0&&b(-A*D,1)}else b(-T*D,1)}}function S(T,C,D){T!==0&&(f=!0);for(var x=C;x<D;x++){var A=t[x],L=A.rect;L[o]+=T,A.label[o]+=T}}function b(T,C){for(var D=[],x=0,A=1;A<a;A++){var L=t[A-1].rect,M=Math.max(t[A].rect[o]-L[o]-L[s],0);D.push(M),x+=M}if(x){var P=Math.min(Math.abs(T)/x,C);if(T>0)for(var A=0;A<a-1;A++){var E=D[A]*P;S(E,0,A+1)}else for(var A=a-1;A>0;A--){var E=D[A-1]*P;S(-E,A,a)}}}function w(T){var C=T<0?-1:1;T=Math.abs(T);for(var D=Math.ceil(T/(a-1)),x=0;x<a-1;x++)if(C>0?S(D,0,x+1):S(-D,a-x-1,a),T-=D,T<=0)return}return f}function N2(t){var e=[];t.sort(function(u,f){return(f.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||f.priority-u.priority});function r(u){if(!u.ignore){var f=u.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}u.ignore=!0}for(var n=0;n<t.length;n++){var i=Dr(t[n]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,l=0;l<e.length;l++)if(dv(i,e[l],null,{touchThreshold:.05})){s=!0;break}s?(r(a),o&&r(o)):e.push(i)}}}function dv(t,e,r,n){return!t||!e||t.label&&t.label.ignore||e.label&&e.label.ignore||!t.rect.intersect(e.rect,r,n)?!1:t.axisAligned&&e.axisAligned?!0:cS(t).intersect(cS(e),r,n)}var B2=null;function au(){return B2}var F2="expandAxisBreak",gn=Math.PI,z2=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],V2=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],oi=Se(),hS=Se(),vS=(function(){function t(e){this.recordMap={},this.resolveAxisNameOverlap=e}return t.prototype.ensureRecord=function(e){var r=e.axis.dim,n=e.componentIndex,i=this.recordMap,a=i[r]||(i[r]=[]);return a[n]||(a[n]={ready:{}})},t})();function G2(t,e,r,n){var i=r.axis,a=e.ensureRecord(r),o=[],s,l=gv(t.axisName)&&ta(t.nameLocation);I(n,function(d){var p=Dr(d);if(!(!p||p.label.ignore)){o.push(p);var g=a.transGroup;l&&(g.transform?Pa(Do,g.transform):Ia(Do),p.transform&&La(Do,Do,p.transform),ne.copy(ou,p.localRect),ou.applyTransform(Do),s?s.union(ou):ne.copy(s=new ne(0,0,0,0),ou))}});var u=Math.abs(a.dirVec.x)>.1?"x":"y",f=a.transGroup[u];if(o.sort(function(d,p){return Math.abs(d.label[u]-f)-Math.abs(p.label[u]-f)}),l&&s){var c=i.getExtent(),v=Math.min(c[0],c[1]),h=Math.max(c[0],c[1])-v;s.union(new ne(v,0,h,1))}a.stOccupiedRect=s,a.labelInfoList=o}var Do=dr(),ou=new ne(0,0,0,0),dS=function(t,e,r,n,i,a){if(ta(t.nameLocation)){var o=a.stOccupiedRect;o&&pS(k2({},o,a.transGroup.transform),n,i)}else gS(a.labelInfoList,a.dirVec,n,i)};function pS(t,e,r){var n=new re;dv(t,e,n,{direction:Math.atan2(r.y,r.x),bidirectional:!1,touchThreshold:.05})&&R2(e,n)}function gS(t,e,r,n){for(var i=re.dot(n,e)>=0,a=0,o=t.length;a<o;a++){var s=t[i?a:o-1-a];s.label.ignore||pS(s,r,n)}}var Hr=(function(){function t(e,r,n,i){this.group=new Ce,this._axisModel=e,this._api=r,this._local={},this._shared=i||new vS(dS),this._resetCfgDetermined(n)}return t.prototype.updateCfg=function(e){var r=this._cfg.raw;r.position=e.position,r.labelOffset=e.labelOffset,this._resetCfgDetermined(r)},t.prototype.__getRawCfg=function(){return this._cfg.raw},t.prototype._resetCfgDetermined=function(e){var r=this._axisModel,n=r.getDefaultOption?r.getDefaultOption():{},i=Z(e.axisName,r.get("name")),a=r.get("nameMoveOverlap");(a==null||a==="auto")&&(a=Z(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:Z(e.nameDirection,1),tickDirection:Z(e.tickDirection,1),labelDirection:Z(e.labelDirection,1),labelOffset:Z(e.labelOffset,0),silent:Z(e.silent,!0),axisName:i,nameLocation:bn(r.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:gv(i)&&a,optionHideOverlap:r.get(["axisLabel","hideOverlap"]),showMinorTicks:r.get(["minorTick","show"])};this._cfg=o;var s=new Ce({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(r);l.transGroup=this._transformGroup,l.dirVec=new re(Math.cos(-o.rotation),Math.sin(-o.rotation))},t.prototype.build=function(e,r){var n=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),I(H2,function(i){e[i]&&U2[i](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,r||{})}),this},t.innerTextLayout=function(e,r,n){var i=hm(r-e),a,o;return Zs(i)?(o=n>0?"top":"bottom",a="center"):Zs(i-gn)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<gn?a=n>0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},t.makeAxisEventDataBase=function(e){var r={componentType:e.mainType,componentIndex:e.componentIndex};return r[e.mainType+"Index"]=e.componentIndex,r},t.isLabelSilent=function(e){var r=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||r&&r.show)},t})(),H2=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],U2={axisLine:function(t,e,r,n,i,a,o){var s=n.get(["axisLine","show"]);if(s==="auto"&&(s=!0,t.raw.axisLineAutoShow!=null&&(s=!!t.raw.axisLineAutoShow)),!!s){var l=n.axis.getExtent(),u=a.transform,f=[l[0],0],c=[l[1],0],v=f[0]>c[0];u&&(wt(f,f,u),wt(c,c,u));var h=z({lineCap:"round"},n.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:t.raw.strokeContainThreshold||5,silent:!0,z2:1,style:h};if(n.get(["axisLine","breakLine"])&&kl(n.axis.scale))au().buildAxisBreakLine(n,i,a,d);else{var p=new Cr(z({shape:{x1:f[0],y1:f[1],x2:c[0],y2:c[1]}},d));io(p.shape,p.style.lineWidth),p.anid="line",i.add(p)}var g=n.get(["axisLine","symbol"]);if(g!=null){var m=n.get(["axisLine","symbolSize"]);q(g)&&(g=[g,g]),(q(m)||me(m))&&(m=[m,m]);var y=r_(n.get(["axisLine","symbolOffset"])||0,m),_=m[0],S=m[1];I([{rotate:t.rotation+Math.PI/2,offset:y[0],r:0},{rotate:t.rotation-Math.PI/2,offset:y[1],r:Math.sqrt((f[0]-c[0])*(f[0]-c[0])+(f[1]-c[1])*(f[1]-c[1]))}],function(b,w){if(g[w]!=="none"&&g[w]!=null){var T=Ar(g[w],-_/2,-S/2,_,S,h.stroke,!0),C=b.r+b.offset,D=v?c:f;T.attr({rotation:b.rotate,x:D[0]+C*Math.cos(t.rotation),y:D[1]-C*Math.sin(t.rotation),silent:!0,z2:11}),i.add(T)}})}}},axisTickLabelEstimate:function(t,e,r,n,i,a,o,s){var l=_S(e,i,s);l&&mS(t,e,r,n,i,a,o,Jt.estimate)},axisTickLabelDetermine:function(t,e,r,n,i,a,o,s){var l=_S(e,i,s);l&&mS(t,e,r,n,i,a,o,Jt.determine);var u=X2(t,i,a,n);$2(t,e.labelLayoutList,u),q2(t,i,a,n,t.tickDirection)},axisName:function(t,e,r,n,i,a,o,s){var l=r.ensureRecord(n);e.nameEl&&(i.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var u=t.axisName;if(gv(u)){var f=t.nameLocation,c=t.nameDirection,v=n.getModel("nameTextStyle"),h=n.get("nameGap")||0,d=n.axis.getExtent(),p=n.axis.inverse?-1:1,g=new re(0,0),m=new re(0,0);f==="start"?(g.x=d[0]-p*h,m.x=-p):f==="end"?(g.x=d[1]+p*h,m.x=p):(g.x=(d[0]+d[1])/2,g.y=t.labelOffset+c*h,m.y=c);var y=dr();m.transform(Sf(y,y,t.rotation));var _=n.get("nameRotate");_!=null&&(_=_*gn/180);var S,b;ta(f)?S=Hr.innerTextLayout(t.rotation,_??t.rotation,c):(S=W2(t.rotation,f,_||0,d),b=t.raw.axisNameAvailableWidth,b!=null&&(b=Math.abs(b/Math.sin(S.rotation)),!isFinite(b)&&(b=null)));var w=v.getFont(),T=n.get("nameTruncate",!0)||{},C=T.ellipsis,D=hs(t.raw.nameTruncateMaxWidth,T.maxWidth,b),x=s.nameMarginLevel||0,A=new Me({x:g.x,y:g.y,rotation:S.rotation,silent:Hr.isLabelSilent(n),style:Ot(v,{text:u,font:w,overflow:"truncate",width:D,ellipsis:C,fill:v.getTextColor()||n.get(["axisLine","lineStyle","color"]),align:v.get("align")||S.textAlign,verticalAlign:v.get("verticalAlign")||S.textVerticalAlign}),z2:1});if(ml({el:A,componentModel:n,itemName:u}),A.__fullText=u,A.anid="name",n.get("triggerEvent")){var L=Hr.makeAxisEventDataBase(n);L.targetType="axisName",L.name=u,ue(A).eventData=L}a.add(A),A.updateTransform(),e.nameEl=A;var M=l.nameLayout=Dr({label:A,priority:A.z2,defaultAttr:{ignore:A.ignore},marginDefault:ta(f)?z2[x]:V2[x]});if(l.nameLocation=f,i.add(A),A.decomposeTransform(),t.shouldNameMoveOverlap&&M){var P=r.ensureRecord(n);r.resolveAxisNameOverlap(t,r,n,M,m,P)}}}};function mS(t,e,r,n,i,a,o,s){SS(e)||Z2(t,e,i,s,n,o);var l=e.labelLayoutList;K2(t,n,l,a),J2(n,t.rotation,l);var u=t.optionHideOverlap;Y2(n,l,u),u&&N2(Ue(l,function(f){return f&&!f.label.ignore})),G2(t,r,n,l)}function W2(t,e,r,n){var i=hm(r-t),a,o,s=n[0]>n[1],l=e==="start"&&!s||e!=="start"&&s;return Zs(i-gn/2)?(o=l?"bottom":"top",a="center"):Zs(i-gn*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<gn*1.5&&i>gn/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function Y2(t,e,r){var n=t.axis,i=t.get(["axisLabel","customValues"]);if(GP(n))return;function a(u,f,c){var v=Dr(e[f]),h=Dr(e[c]),d=n.scale;if(!(!v||!h)){if(u==null){if(!r&&i)return;var p=oi(v.label).labelInfo.tick;if(ev(d)&&p.notNice||Qt(d)&&p.offInterval){aa(v.label);return}}if(u===!1||v.suggestIgnore){aa(v.label);return}if(h.suggestIgnore){aa(h.label);return}var g=.1;if(!r){var m=[0,0,0,0];v=fS({marginForce:m},v),h=fS({marginForce:m},h)}dv(v,h,null,{touchThreshold:g})&&aa(u?h.label:v.label)}}var o=t.get(["axisLabel","showMinLabel"]),s=t.get(["axisLabel","showMaxLabel"]),l=e.length;a(o,0,1),a(s,l-1,l-2)}function $2(t,e,r){t.showMinorTicks||I(e,function(n){if(n&&n.label.ignore)for(var i=0;i<r.length;i++){var a=r[i],o=hS(a),s=oi(n.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.labelInfo.tick.value){aa(a);return}}})}function aa(t){t&&(t.ignore=!0)}function yS(t,e,r,n,i){for(var a=[],o=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=r,e&&(wt(o,o,e),wt(s,s,e));var f=new Cr({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});io(f.shape,f.style.lineWidth),f.anid=i+"_"+t[l].tickValue,a.push(f);var c=hS(f);c.onBand=!!t[l].onBand,c.tickValue=t[l].tickValue}return a}function X2(t,e,r,n){var i=n.axis,a=n.getModel("axisTick"),o=a.get("show");if(o==="auto"&&(o=!0,t.raw.axisTickAutoShow!=null&&(o=!!t.raw.axisTickAutoShow)),!o||i.scale.isBlank())return[];for(var s=a.getModel("lineStyle"),l=t.tickDirection*a.get("length"),u=i.getTicksCoords(),f=yS(u,r.transform,l,le(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)e.add(f[c]);return f}function q2(t,e,r,n,i){var a=n.axis,o=n.getModel("minorTick");if(!(!t.showMinorTicks||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=i*o.get("length"),f=le(l.getLineStyle(),le(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<s.length;c++)for(var v=yS(s[c],r.transform,u,f,"minorticks_"+c),h=0;h<v.length;h++)e.add(v[h])}}function _S(t,e,r){if(SS(t)){var n=t.axisLabelsCreationContext,i=n.out.noPxChangeTryDetermine;if(r.noPxChange){for(var a=!0,o=0;o<i.length;o++)a=a&&i[o]();if(a)return!1}i.length&&(e.remove(t.labelGroup),pv(t,null,null,null))}return!0}function Z2(t,e,r,n,i,a){var o=i.axis,s=hs(t.raw.axisLabelShow,i.get(["axisLabel","show"])),l=new Ce;r.add(l);var u=eu(n);if(!s||o.scale.isBlank()){pv(e,[],l,u);return}var f=i.getModel("axisLabel"),c=o.getViewLabels(u),v=(hs(t.raw.labelRotate,f.get("rotate"))||0)*gn/180,h=Hr.innerTextLayout(t.rotation,v,t.labelDirection),d=i.getCategories&&i.getCategories(!0),p=[],g=i.get("triggerEvent"),m=1/0,y=-1/0;I(c,function(S,b){var w,T=S.tick,C=S.formattedLabel,D=S.rawLabel,x=f,A=Co(o.scale,T);if(d&&d[A]){var L=d[A];j(L)&&L.textStyle&&(x=new xe(L.textStyle,f,i.ecModel))}var M=x.getTextColor()||i.get(["axisLine","lineStyle","color"]),P=x.getShallow("align",!0)||h.textAlign,E=Z(x.getShallow("alignMinLabel",!0),P),k=Z(x.getShallow("alignMaxLabel",!0),P),O=x.getShallow("verticalAlign",!0)||x.getShallow("baseline",!0)||h.textVerticalAlign,R=Z(x.getShallow("verticalAlignMinLabel",!0),O),N=Z(x.getShallow("verticalAlignMaxLabel",!0),O),F=10+(((w=T.time)===null||w===void 0?void 0:w.level)||0);m=Math.min(m,F),y=Math.max(y,F);var B=new Me({x:0,y:0,rotation:0,silent:Hr.isLabelSilent(i),z2:F,style:Ot(x,{text:C,align:b===0?E:b===c.length-1?k:P,verticalAlign:b===0?R:b===c.length-1?N:O,fill:ee(M)?M(o.type==="category"?D:o.type==="value"?A+"":A,b):M})});B.anid="label_"+A;var G=oi(B);if(G.labelInfo=S,G.layoutRotation=h.rotation,ml({el:B,componentModel:i,itemName:C,formatterParamsExtra:{isTruncated:function(){return B.isTruncated},value:D,tickIndex:b}}),g){var X=Hr.makeAxisEventDataBase(i);X.targetType="axisLabel",X.value=D,X.tickIndex=b;var H=S.tick.break;if(H){var K=H.parsedBreak;X.break={start:K.vmin,end:K.vmax}}o.type==="category"&&(X.dataIndex=A),ue(B).eventData=X,H&&Q2(i,a,B,H)}p.push(B),l.add(B)});var _=$(p,function(S){return{label:S,priority:oi(S).labelInfo.tick.break?S.z2+(y-m+1):S.z2,defaultAttr:{ignore:S.ignore}}});pv(e,_,l,u)}function SS(t){return!!t.labelLayoutList}function pv(t,e,r,n){t.labelLayoutList=e,t.labelGroup=r,t.axisLabelsCreationContext=n}function K2(t,e,r,n){var i=e.get(["axisLabel","margin"]);I(r,function(a,o){var s=Dr(a);if(s){var l=s.label,u=oi(l);s.suggestIgnore=l.ignore,l.ignore=!1,Na(Ur,j2);var f=e.axis;Ur.x=f.dataToCoord(Co(f.scale,u.labelInfo.tick)),Ur.y=t.labelOffset+t.labelDirection*i,Ur.rotation=u.layoutRotation,n.add(Ur),Ur.updateTransform(),n.remove(Ur),Ur.decomposeTransform(),Na(l,Ur),l.markRedraw(),iu(s,!0),Dr(s)}})}var Ur=new De,j2=new De;function gv(t){return!!t}function Q2(t,e,r,n){r.on("click",function(i){var a={type:F2,breaks:[{start:n.parsedBreak.breakOption.start,end:n.parsedBreak.breakOption.end}]};a[t.axis.dim+"AxisIndex"]=t.componentIndex,e.dispatchAction(a)})}function J2(t,e,r){var n=at();if(n){var i=n.retrieveAxisBreakPairs(r,function(o){return o&&oi(o.label).labelInfo.tick.break},!0),a=t.get(["breakLabelLayout","moveOverlap"],!0);(a===!0||a==="auto")&&I(i,function(o){au().adjustBreakLabelPair(t.axis.inverse,e,[Dr(r[o[0]]),Dr(r[o[1]])])})}}function su(t,e,r){r=r||{};var n=e.axis,i={},a=n.getAxesOnZeroOf()[0],o=n.position,s=a?"onZero":o,l=n.dim,u=[t.x,t.x+t.width,t.y,t.y+t.height],f={left:0,right:1,top:0,bottom:1,onZero:2},c=e.get("offset")||0,v=l==="x"?[u[2]-c,u[3]+c]:[u[0]-c,u[1]+c];if(a){var h=a.toGlobalCoord(a.dataToCoord(0));v[f.onZero]=Math.max(Math.min(h,v[1]),v[0])}i.position=[l==="y"?v[f[s]]:u[0],l==="x"?v[f[s]]:u[3]],i.rotation=Math.PI/2*(l==="x"?0:1);var d={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=d[o],i.labelOffset=a?v[f[o]]-v[f.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),hs(r.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var p=e.get(["axisLabel","rotate"]);return i.labelRotate=s==="top"?-p:p,i.z2=1,i}function eE(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function tE(t){var e={xAxisModel:null,yAxisModel:null};return I(e,function(r,n){var i=n.replace(/Model$/,""),a=t.getReferringComponents(i,Pt).models[0];e[n]=a}),e}function rE(t,e,r,n,i,a){for(var o=su(t,r),s=!1,l=!1,u=0;u<e.length;u++)w_(e[u].getOtherAxis(r.axis).scale)&&(s=l=!0,r.axis.type==="category"&&r.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=a,new Hr(r,n,o,i)}function nE(t,e,r){var n=su(e,r);t.updateCfg(n)}var iE=Se(),bS=1,aE=3,wS=(function(){function t(e,r,n,i,a){var o=Qt(e),s=o?r.getCategories().length:null,l;if(o){var u=r.getCategories(!0);l=u&&!u.length}var f=n.slice();($l(e)||ea(e)||ev(e))&&(xm(f,Mo(e,r.get("dataMin",!0))),Cm(f,Mo(e,r.get("dataMax",!0)))),gD(f)||(f[0]=f[1]=NaN);var c=[],v=[!1,!1],h=r.get("min",!0);h==="dataMin"?(c[0]=f[0],v[0]=!0):(c[0]=Mo(e,ee(h)?h({min:f[0],max:f[1]}):h),v[0]=c[0]!=null);var d=r.get("max",!0);d==="dataMax"?(c[1]=f[1],v[1]=!0):(c[1]=Mo(e,ee(d)?d({min:f[0],max:f[1]}):d),v[1]=c[1]!=null);var p=oE(e,r),g=o?null:f[1]-f[0]||Math.abs(f[0]);c[0]==null&&(c[0]=o?l?f[0]:s?0:NaN:f[0]-p[0]*g),c[1]==null&&(c[1]=o?l?f[1]:s?s-1:NaN:f[1]+p[1]*g),!Nr(c[0])&&(c[0]=NaN),!Nr(c[1])&&(c[1]=NaN);var m=l||Aa(c[0])||Aa(c[1])||o&&!s,y=$l(e),_=y&&r.needIncludeZero&&r.needIncludeZero();_&&(c[0]>0&&c[1]>0&&!v[0]&&(c[0]=0),c[0]<0&&c[1]<0&&!v[1]&&(c[1]=0));var S=!1;c[0]>c[1]&&(c.reverse(),S=!0);var b=Mo(e,r.get("startValue",!0)),w=b!=null;!Lt(b)&&i&&(b=e.getDefaultStartValue?e.getDefaultStartValue():0),Lt(b)&&(w||!y||_)&&(b<c[0]&&!v[0]?(c[0]=b,v[0]=!0):b>c[1]&&!v[1]&&(c[1]=b,v[1]=!0));var T=this._i={scale:e,dataMM:f,noZoomEffMM:c,zoomMM:[],fixMM:v,zoomFixMM:[!1,!1],startValue:b,isBlank:m,incl0:_,tggAxInv:S,ctnShp:a};TS(T,c)}return t.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},t.prototype.makeFinal=function(){var e=this._i,r=e.zoomMM,n=e.noZoomEffMM,i=e.zoomFixMM,a=e.fixMM,o={fixMM:a,zoomFixMM:i,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:n.slice()},s=o.effMM;return r[0]!=null&&(s[0]=r[0],a[0]=i[0]=!0),r[1]!=null&&(s[1]=r[1],a[1]=i[1]=!0),TS(e,s),o},t.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},t.prototype.setZoomMM=function(e,r){this._i.zoomMM[e]=r},t})();function TS(t,e){var r=t.scale,n=t.dataMM;r.sanitize&&(e[0]=r.sanitize(e[0],n),e[1]=r.sanitize(e[1],n),mD(e))}function Mo(t,e){return e==null?null:Aa(e)?NaN:t.parse(e)}function oE(t,e){var r;if(Qt(t))r=[0,0];else{var n=e.get("boundaryGap");typeof n=="boolean"&&(n=null),r=W(n)?n:[n,n]}return[xS(r[0]),xS(r[1])]}function xS(t){return In(typeof t=="boolean"?0:t,1)||0}function CS(t){var e=iE(t.scale);return e.extent||(e.extent=Et()),e}function sE(t,e){CS(t).dimIdxInCoord=e.get(t.dim)}function AS(t,e){var r=t.scale,n=t.model,i=t.dim;r.rawExtentInfo||lE(r,t,i,n,e)}function lE(t,e,r,n,i){var a=CS(e),o=a.extent,s=!1;w2(e,function(f){if(f.boxCoordinateSystem){var c=g0(f).coord,v=a.dimIdxInCoord;if(v>=0){if(W(c)){var h=c[v];h!=null&&!W(h)&&Dc(o,t.parse(h))}}}else if(f.coordinateSystem){var d=f.getData();if(d){var p=t.getFilter?t.getFilter():null;I(HP(d,r),function(g){pD(o,d.getApproximateExtent(g,p))})}f.__requireStartValue&&f.__requireStartValue(e)&&(s=!0)}});var l=cE(t,e,n),u=new wS(t,n,o,s,l);DS(t,u,i),a.extent=null}function uE(t,e){var r=t.scale;DS(r,new wS(r,t.model,e,!1,!1),aE)}function DS(t,e,r){t.rawExtentInfo=e,e.from=r}function fE(t,e){mv.set(t,e)}var mv=te();function MS(t,e,r,n,i){t.rawExtentInfo||uE({scale:t,model:e},Et());var a=t.rawExtentInfo.makeFinal(),o=a.effMM;return t.setExtent(o[0],o[1]),t.setBlank(a.isBlank),n&&a.tggAxInv&&r&&!r.get("legacyMinMaxDontInverseAxis")&&(n.inverse=!n.inverse),a}function cE(t,e,r){var n=B_(t,r),i=r.get("containShape",!0);if(i==null&&!n&&(i=!0),!i)return!1;var a=!1;return tS(e,function(o){a=!!mv.get(o)||a}),a}function hE(t,e,r,n){if(r.ctnShp){var i;if(tS(t,function(s){var l=mv.get(s);if(l){var u=l(t,n);u&&(i=i||[0,0],xm(i,u[0]),Cm(i,u[1]),zP(t))}}),!!i){var a=e.getExtent();if(Qt(e))t.onBand||e.setExtent2(wo,qe(a[0],a[0]+i[0]),ge(a[1],a[1]+i[1]));else{var o=a.slice();r.zoomFixMM[0]||(o[0]=qe(o[0],e.transformOut(e.transformIn(o[0],null)+i[0],null))),r.zoomFixMM[1]||(o[1]=ge(o[1],e.transformOut(e.transformIn(o[1],null)+i[1],null))),(o[0]<a[0]||o[1]>a[1])&&e.setExtent2(wo,o[0],o[1])}}}}function vE(){C2("liPosMinGap",dE)}function dE(t,e,r){var n=te(),i=r.serUids,a=r.liPosMinGap,o,s=e.axis,l=s.scale,u=l.needTransform(),f=l.getFilter?l.getFilter():null,c=e0(f);function v(_){uv(t,e.sers,function(S){var b=S.getRawData(),w=b.getDimensionIndex(b.mapDimension(s.dim));w>=0&&_(w,S,b.getStore())})}var h=0;if(v(function(_,S,b){n.set(S.uid,1),(!i||!i.hasKey(S.uid))&&(o=!0),h+=b.count()}),(!i||i.keys().length!==n.keys().length)&&(o=!0),!o&&a!=null){e.liPosMinGap=a;return}Zh(si,h);var d=0;v(function(_,S,b){for(var w=0,T=b.count();w<T;++w){var C=b.get(_,w);isFinite(C)&&(!f||t0(c,C))&&(u&&(C=l.transformIn(C,null)),si.arr[d++]=C)}});var p=si.typed?si.arr.subarray(0,d):(si.arr.length=d,si.arr);si.typed?p.sort():Sc(p);for(var g=1/0,m=1;m<d;++m){var y=p[m]-p[m-1];y>0&&y<g&&(g=y)}r.liPosMinGap=e.liPosMinGap=Lt(g)?g:d>0?K_:y2,r.serUids=n}var si=Zh({ctor:iP},50);function pE(t){return function(e,r){var n=ia(e,{fromStat:{key:t}});if(Lt(n.w2))return[-n.w2/2,n.w2/2]}}function lu(t,e){return t+lv+e}function gE(t){return vE(),{liPosMinGap:!Qt(t.scale)}}var oa="bar";function mE(t,e,r,n){A2(t,{key:e,seriesType:r,coordSysType:n,getMetrics:gE})}function yE(t){var e=t.scale.rawExtentInfo.makeRenderInfo().startValue;return e}var IS={left:0,right:0,top:0,bottom:0},uu=["25%","25%"],Wr="cartesian2d",_E=(function(t){V(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(r,n){var i=So(r.outerBounds);t.prototype.mergeDefaultAndTheme.apply(this,arguments),i&&r.outerBounds&&fn(r.outerBounds,i)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&r.outerBounds&&fn(this.option.outerBounds,r.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:IS,outerBoundsContain:"all",outerBoundsClampWidth:uu[0],outerBoundsClampHeight:uu[1],backgroundColor:Y.color.transparent,borderWidth:1,borderColor:Y.color.neutral30},e})(ye),SE=Am(),bE="__ec_stack_";function LS(t){return t.get("stack")||bE+t.seriesIndex}function wE(t,e){var r=TE(t,e);return r.columnMap=xE(r),r}function TE(t,e){var r=lu(e,Wr),n=[],i=ia(t,{fromStat:{key:r},min:1});return eS(t,r,function(a){n.push({barWidth:Q(a.get("barWidth"),i.w),barMaxWidth:Q(a.get("barMaxWidth"),i.w),barMinWidth:Q(a.get("barMinWidth")||(PS(a)?.5:1),i.w),barGap:a.get("barGap"),barCategoryGap:a.get("barCategoryGap"),defaultBarGap:a.get("defaultBarGap"),stackId:LS(a)})}),{bandWidthResult:i,seriesInfo:n}}function xE(t){var e=t.bandWidthResult.w,r=e,n=0,i,a,o=[],s={};I(t.seriesInfo,function(p,g){g||(a=p.defaultBarGap||0);var m=p.stackId;tt(s,m)||n++;var y=s[m];y||(y=s[m]={width:0,maxWidth:0},o.push(m));var _=p.barWidth;_&&!y.width&&(y.width=_,_=qe(r,_),r-=_);var S=p.barMaxWidth;S&&(y.maxWidth=S);var b=p.barMinWidth;b&&(y.minWidth=b);var w=p.barGap;w!=null&&(a=w);var T=p.barCategoryGap;T!=null&&(i=T)}),i==null&&(i=ge(35-o.length*4,15)+"%");var l=Q(i,e),u=Q(a,1),f=(r-l)/(n+(n-1)*u);f=ge(f,0),I(o,function(p){var g=s[p],m=g.maxWidth,y=g.minWidth;if(g.width){var _=g.width;m&&(_=qe(_,m)),y&&(_=ge(_,y)),g.width=_,r-=_+u*_,n--}else{var _=f;m&&m<_&&(_=qe(m,r)),y&&y>_&&(_=y),_!==f&&(g.width=_,r-=_+u*_,n--)}}),f=(r-l)/(n+(n-1)*u),f=ge(f,0);var c=0,v;I(o,function(p){var g=s[p];g.width||(g.width=f),v=g,c+=g.width*(1+u)}),v&&(c-=v.width*u);var h={},d=-c/2;return I(o,function(p){var g=s[p];h[p]=h[p]||{bandWidth:e,offset:d,width:g.width},d+=g.width*(1+u)}),h}function CE(t){return{seriesType:t,overallReset:function(e){var r=lu(t,Wr);T2(e,r,function(n){var i=wE(n,t);eS(n,r,function(a){var o=i.columnMap[LS(a)];a.getData().setLayout({bandWidth:o.bandWidth,offset:o.offset,size:o.width})})})}}}function AE(t){return{seriesType:t,plan:jh(),reset:function(e){if(eE(e)){var r=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(i.dim)),l=e.get("showBackground",!0),u=r.mapDimension(a.dim),f=r.getCalculationInfo("stackResultDimension"),c=Ki(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),v=a.isHorizontal(),h=a.toGlobalCoord(a.dataToCoord(yE(a))),d=PS(e),p=e.get("barMinHeight")||0,g=f&&r.getDimensionIndex(f),m=r.getLayout("size"),y=r.getLayout("offset");return{progress:function(_,S){for(var b=_.count,w=d&&Gr(b*3),T=d&&l&&Gr(b*3),C=d&&Gr(b),D=n.master.getRect(),x=v?D.width:D.height,A,L=S.getStore(),M=0;(A=_.next())!=null;){var P=L.get(c?g:o,A),E=L.get(s,A),k=h,O=void 0;c&&(O=+P-L.get(o,A));var R=void 0,N=void 0,F=void 0,B=void 0;if(v){var G=n.dataToPoint([P,E]);c&&(k=n.dataToPoint([O,E])[0]),R=k,N=G[1]+y,F=G[0]-k,B=m,Be(F)<p&&(F=(F<0?-1:1)*p)}else{var G=n.dataToPoint([E,P]);c&&(k=n.dataToPoint([E,O])[1]),R=G[0]+y,N=k,F=m,B=G[1]-k,Be(B)<p&&(B=(B<=0?-1:1)*p)}d?(w[M]=R,w[M+1]=N,w[M+2]=v?F:B,T&&(T[M]=v?D.x:R,T[M+1]=v?N:D.y,T[M+2]=x),C[A]=A):S.setItemLayout(A,{x:R,y:N,width:F,height:B}),M+=3}d&&S.setLayout({largePoints:w,largeDataIndices:C,largeBackgroundPoints:T,valueAxisHorizontal:v})}}}}}}function PS(t){return t.pipelineContext&&t.pipelineContext.large}function DE(t){return pE(lu(t,Wr))}function ME(t){SE(t,function(){function e(r){var n=lu(r,Wr);mE(t,n,r,Wr),fE(n,DE(r))}e("bar"),e("pictorialBar")})}var yv=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(r,n){return Ml(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(r,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(r),s=a.dataToPoint(o);if(i)I(a.getAxes(),function(v,h){if(v.type==="category"&&n!=null){var d=v.getTicksCoords(),p=v.getTickModel().get("alignWithLabel"),g=o[h],m=n[h]==="x1"||n[h]==="y1";if(m&&!p&&(g+=1),d.length<2)return;if(d.length===2){s[h]=v.toGlobalCoord(v.getExtent()[m?1:0]);return}for(var y=void 0,_=void 0,S=1,b=0;b<d.length;b++){var w=d[b].coord,T=b===d.length-1?d[b-1].tickValue+S:d[b].tickValue;if(T===g){_=w;break}else if(T<g)y=w;else if(y!=null&&T>g){_=(w+y)/2;break}b===1&&(S=T-d[0].tickValue)}_==null&&(y?y&&(_=d[d.length-1].coord):_=d[0].coord),s[h]=v.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),c=a.getBaseAxis().isHorizontal()?0:1;s[c]+=u+f/2}return s}return[NaN,NaN]},e.prototype.__requireStartValue=function(r){return this.getBaseAxis()!==r},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},e})(ot);ot.registerClass(yv);var IE=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(){return Ml(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.__preparePipelineContext=function(r,n){var i=Mm(this,r,n);return i.progressiveRender&&(i.large=!0),i},e.prototype.brushSelector=function(r,n,i){return i.rect(n.getItemLayout(r))},e.type="series."+oa,e.dependencies=["grid","polar"],e.defaultOption=m0(yv.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:Y.color.primary,borderWidth:2}},realtimeSort:!1}),e})(yv),fu="\0__throttleOriginMethod",ES="\0__throttleRate",kS="\0__throttleType";function _v(t,e,r){var n,i=0,a=0,o=null,s,l,u,f;e=e||0;function c(){a=new Date().getTime(),o=null,t.apply(l,u||[])}var v=function(){for(var h=[],d=0;d<arguments.length;d++)h[d]=arguments[d];n=new Date().getTime(),l=this,u=h;var p=f||e,g=f||r;f=null,s=n-(g?i:a)-p,clearTimeout(o),g?o=setTimeout(c,p):s>=0?c():o=setTimeout(c,-s),i=n};return v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(h){f=h},v}function RS(t,e,r,n){var i=t[e];if(i){var a=i[fu]||i,o=i[kS],s=i[ES];if(s!==r||o!==n){if(r==null||!n)return t[e]=a;i=t[e]=_v(a,r,n==="debounce"),i[fu]=a,i[kS]=n,i[ES]=r}return i}}function Sv(t,e){var r=t[e];r&&r[fu]&&(r.clear&&r.clear(),t[e]=r[fu])}var LE=(function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t})(),cu=(function(t){V(e,t);function e(r){var n=t.call(this,r)||this;return n.type="sausage",n}return e.prototype.getDefaultShape=function(){return new LE},e.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,f=n.startAngle,c=n.endAngle,v=n.clockwise,h=Math.PI*2,d=v?c-f<h:f-c<h;d||(f=c-(v?h:-h));var p=Math.cos(f),g=Math.sin(f),m=Math.cos(c),y=Math.sin(c);d?(r.moveTo(p*o+i,g*o+a),r.arc(p*u+i,g*u+a,l,-Math.PI+f,f,!v)):r.moveTo(p*s+i,g*s+a),r.arc(i,a,s,f,c,!v),r.arc(m*u+i,y*u+a,l,c-Math.PI*2,c-Math.PI,!v),o!==0&&r.arc(i,a,o,c,f,v)},e})(pe);function PE(t,e){e=e||{};var r=e.isRoundCap;return function(n,i,a){var o=i.position;if(!o||o instanceof Array)return _s(n,i,a);var s=t(o),l=i.distance!=null?i.distance:5,u=this.shape,f=u.cx,c=u.cy,v=u.r,h=u.r0,d=(v+h)/2,p=u.startAngle,g=u.endAngle,m=(p+g)/2,y=r?Math.abs(v-h)/2:0,_=Math.cos,S=Math.sin,b=f+v*_(p),w=c+v*S(p),T="left",C="top";switch(s){case"startArc":b=f+(h-l)*_(m),w=c+(h-l)*S(m),T="center",C="top";break;case"insideStartArc":b=f+(h+l)*_(m),w=c+(h+l)*S(m),T="center",C="bottom";break;case"startAngle":b=f+d*_(p)+hu(p,l+y,!1),w=c+d*S(p)+vu(p,l+y,!1),T="right",C="middle";break;case"insideStartAngle":b=f+d*_(p)+hu(p,-l+y,!1),w=c+d*S(p)+vu(p,-l+y,!1),T="left",C="middle";break;case"middle":b=f+d*_(m),w=c+d*S(m),T="center",C="middle";break;case"endArc":b=f+(v+l)*_(m),w=c+(v+l)*S(m),T="center",C="bottom";break;case"insideEndArc":b=f+(v-l)*_(m),w=c+(v-l)*S(m),T="center",C="top";break;case"endAngle":b=f+d*_(g)+hu(g,l+y,!0),w=c+d*S(g)+vu(g,l+y,!0),T="left",C="middle";break;case"insideEndAngle":b=f+d*_(g)+hu(g,-l+y,!0),w=c+d*S(g)+vu(g,-l+y,!0),T="right",C="middle";break;default:return _s(n,i,a)}return n=n||{},n.x=b,n.y=w,n.align=T,n.verticalAlign=C,n}}function EE(t,e,r,n){if(me(n)){t.setTextConfig({rotation:n});return}else if(W(e)){t.setTextConfig({rotation:0});return}var i=t.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,l,u=r(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=a;break;case"endAngle":case"insideEndAngle":l=o;break;default:t.setTextConfig({rotation:0});return}var f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),t.setTextConfig({rotation:f})}function hu(t,e,r){return e*Math.sin(t)*(r?-1:1)}function vu(t,e,r){return e*Math.cos(t)*(r?1:-1)}function Io(t,e,r){var n=t.get("borderRadius");if(n==null)return r?{cornerRadius:0}:null;W(n)||(n=[n,n,n,n]);var i=Math.abs(e.r||0-e.r0||0);return{cornerRadius:$(n,function(a){return In(a,i)})}}var bv=Math.max,wv=Math.min,kE=(function(t){V(e,t);function e(){var r=t.call(this)||this;return r.type=oa,r._isFirstFrame=!0,r}return e.prototype.render=function(r,n,i,a){this._model=r,this._removeOnRenderedListener(i),this._updateDrawMode(r);var o=r.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,n,i):this._renderNormal(r,n,i,a))},e.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},e.prototype.incrementalRender=function(r,n){this._progressiveEls=[],this._incrementalRenderLarge(r,n)},e.prototype.eachRendered=function(r){yl(this._progressiveEls||this.group,r)},e.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},e.prototype._renderNormal=function(r,n,i,a){var o=this.group,s=r.getData(),l=this._data,u=r.coordinateSystem,f=u.getBaseAxis(),c;u.type==="cartesian2d"?c=f.isHorizontal():u.type==="polar"&&(c=f.dim==="angle");var v=r.isAnimationEnabled()?r:null,h=RE(r,u);h&&this._enableRealtimeSort(h,s,i);var d=r.get("clip",!0)||h,p=u.getArea();o.removeClipPath();var g=r.get("roundCap",!0),m=r.get("showBackground",!0),y=r.getModel("backgroundStyle"),_=y.get("borderRadius")||0,S=[],b=this._backgroundEls,w=a&&a.isInitSort,T=a&&a.type==="changeAxisOrder";function C(A){var L=du[u.type](s,A);if(!L)return null;var M=GE(u,c,L);return M.useStyle(y.getItemStyle()),u.type==="cartesian2d"?M.setShape("r",_):M.setShape("cornerRadius",_),S[A]=M,M}s.diff(l).add(function(A){var L=s.getItemModel(A),M=du[u.type](s,A,L);if(M&&(m&&C(A),!(!s.hasValue(A)||!zS[u.type](M)))){var P=!1;d&&(P=OS[u.type](p,M));var E=NS[u.type](r,s,A,M,c,v,f.model,!1,g);h&&(E.forceLabelAnimation=!0),GS(E,s,A,L,M,r,c,u.type==="polar"),w?E.attr({shape:M}):h?BS(h,v,E,M,A,c,!1,!1):Ge(E,{shape:M},r,A),s.setItemGraphicEl(A,E),o.add(E),E.ignore=P}}).update(function(A,L){var M=s.getItemModel(A),P=du[u.type](s,A,M);if(P){if(m){var E=void 0;b.length===0?E=C(L):(E=b[L],E.useStyle(y.getItemStyle()),u.type==="cartesian2d"?E.setShape("r",_):E.setShape("cornerRadius",_),S[A]=E);var k=du[u.type](s,A),O=YS(c,k,u);Ie(E,{shape:O},v,A)}var R=l.getItemGraphicEl(L);if(!s.hasValue(A)||!zS[u.type](P)){o.remove(R);return}var N=!1;d&&(N=OS[u.type](p,P),N&&o.remove(R));var F=R&&(R.type==="sector"&&g||R.type==="sausage"&&!g);if(F&&(R&&Hi(R,r,L),R=null),R?Ui(R):R=NS[u.type](r,s,A,P,c,v,f.model,!0,g),h&&(R.forceLabelAnimation=!0),T){var B=R.getTextContent();if(B){var G=so(B);G.prevValue!=null&&(G.prevValue=G.value)}}else GS(R,s,A,M,P,r,c,u.type==="polar");w?R.attr({shape:P}):h?BS(h,v,R,P,A,c,!0,T):Ie(R,{shape:P},r,A,null),s.setItemGraphicEl(A,R),R.ignore=N,o.add(R)}}).remove(function(A){var L=l.getItemGraphicEl(A);L&&Hi(L,r,A)}).execute();var D=this._backgroundGroup||(this._backgroundGroup=new Ce);D.removeAll();for(var x=0;x<S.length;++x)D.add(S[x]);o.add(D),this._backgroundEls=S,this._data=s},e.prototype._renderLarge=function(r,n,i){this._clear(),US(r,this.group),this._updateLargeClip(r)},e.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),US(n,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&dP(r.coordinateSystem,!1,r),i=this.group;n?i.setClipPath(n):i.removeClipPath()},e.prototype._enableRealtimeSort=function(r,n,i){var a=this;if(n.count()){var o=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,r,i),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){a._updateSortWithinSameData(n,s,o,i)},i.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(r,n,i){var a=[];return r.each(r.mapDimension(n.dim),function(o,s){var l=i(s);l=l??NaN,a.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:$(a,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(r,n,i){for(var a=i.scale,o=r.mapDimension(i.dim),s=Number.MAX_VALUE,l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var f=r.rawIndexOf(o,a.getRawOrdinalNumber(l)),c=f<0?Number.MIN_VALUE:n(r.indexOfRawIndex(f));if(c>s)return!0;s=c}return!1},e.prototype._isOrderDifferentInView=function(r,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(r,n,i,a){if(this._isOrderChangedWithinSameData(r,n,i)){var o=this._dataSort(r,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(r,n,i){var a=n.baseAxis,o=this._dataSort(r,a,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},e.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},e.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},e.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(r){var n=this.group,i=this._data;r&&r.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){Hi(a,r,ue(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type=oa,e})(je),OS={cartesian2d:function(t,e){var r=e.width<0?-1:1,n=e.height<0?-1:1;r<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height);var i=t.x+t.width,a=t.y+t.height,o=bv(e.x,t.x),s=wv(e.x+e.width,i),l=bv(e.y,t.y),u=wv(e.y+e.height,a),f=s<o,c=u<l;return e.x=f&&o>i?s:o,e.y=c&&l>a?u:l,e.width=f?0:s-o,e.height=c?0:u-l,r<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height),f||c},polar:function(t,e){var r=e.r0<=e.r?1:-1;if(r<0){var n=e.r;e.r=e.r0,e.r0=n}var i=wv(e.r,t.r),a=bv(e.r0,t.r0);e.r=i,e.r0=a;var o=i-a<0;if(r<0){var n=e.r;e.r=e.r0,e.r0=n}return o}},NS={cartesian2d:function(t,e,r,n,i,a,o,s,l){var u=new De({shape:z({},n),z2:1});if(u.__dataIndex=r,u.name="item",a){var f=u.shape,c=i?"height":"width";f[c]=0}return u},polar:function(t,e,r,n,i,a,o,s,l){var u=!i&&l?cu:xr,f=new u({shape:n,z2:1});f.name="item";var c=VS(i);if(f.calculateTextPosition=PE(c,{isRoundCap:u===cu}),a){var v=f.shape,h=i?"r":"endAngle",d={};v[h]=i?n.r0:n.startAngle,d[h]=n[h],(s?Ie:Ge)(f,{shape:d},a)}return f}};function RE(t,e){var r=t.get("realtimeSort",!0),n=e.getBaseAxis();if(r&&n.type==="category"&&e.type==="cartesian2d")return{baseAxis:n,otherAxis:e.getOtherAxis(n)}}function BS(t,e,r,n,i,a,o,s){var l,u;a?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?Ie:Ge)(r,{shape:l},e,i,null);var f=e?t.baseAxis.model:null;(o?Ie:Ge)(r,{shape:u},f,i)}function FS(t,e){for(var r=0;r<e.length;r++)if(!isFinite(t[e[r]]))return!0;return!1}var OE=["x","y","width","height"],NE=["cx","cy","r","startAngle","endAngle"],zS={cartesian2d:function(t){return!FS(t,OE)},polar:function(t){return!FS(t,NE)}},du={cartesian2d:function(t,e,r){var n=t.getItemLayout(e);if(!n)return null;var i=r?FE(r,n):0,a=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},polar:function(t,e,r){var n=t.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function BE(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function VS(t){return(function(e){var r=e?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}})(t)}function GS(t,e,r,n,i,a,o,s){var l=e.getItemVisual(r,"style");if(s){if(!a.get("roundCap")){var f=t.shape,c=Io(n.getModel("itemStyle"),f,!0);z(f,c),t.setShape(f)}}else{var u=n.get(["itemStyle","borderRadius"])||0;t.setShape("r",u)}t.useStyle(l);var v=n.getShallow("cursor");v&&t.attr("cursor",v);var h=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?HE(i,a.coordinateSystem):UE(i,a.coordinateSystem),d=jn(n);Kn(t,d,{labelFetcher:a,labelDataIndex:r,defaultText:Xh(a.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var p=t.getTextContent();if(s&&p){var g=n.get(["label","position"]);t.textConfig.inside=g==="middle"?!0:null,EE(t,g==="outside"?h:g,VS(o),n.get(["label","rotate"]))}ky(p,d,a.getRawValue(r),function(y){return n_(e,y)});var m=n.getModel(["emphasis"]);Fr(t,m.get("focus"),m.get("blurScope"),m.get("disabled")),zr(t,n),BE(i)&&(t.style.fill="none",t.style.stroke="none",I(t.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function FE(t,e){var r=t.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=t.get(["itemStyle","borderWidth"])||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),a=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(n,i,a)}var zE=(function(){function t(){}return t})(),HS=(function(t){V(e,t);function e(r){var n=t.call(this,r)||this;return n.type="largeBar",n}return e.prototype.getDefaultShape=function(){return new zE},e.prototype.buildPath=function(r,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<i.length;f+=3)l[a]=u,l[o]=i[f+2],s[a]=i[f+a],s[o]=i[f+o],r.rect(s[0],s[1],l[0],l[1])},e})(pe);function US(t,e,r,n){var i=t.getData(),a=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=t.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints"),f=n?Dm(t):0;if(u){var c=new HS({shape:{points:u},incremental:f,silent:!0,z2:0});c.baseDimIdx=a,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),r&&r.push(c)}var v=new HS({shape:{points:i.getLayout("largePoints")},incremental:f,ignoreCoarsePointer:!0,z2:1});v.baseDimIdx=a,v.largeDataIndices=o,v.barWidth=s,e.add(v),v.useStyle(i.getVisual("style")),v.style.stroke=null,ue(v).seriesIndex=t.seriesIndex,t.get("silent")||(v.on("mousedown",WS),v.on("mousemove",WS)),r&&r.push(v)}var WS=_v(function(t){var e=this,r=VE(e,t.offsetX,t.offsetY);ue(e).dataIndex=r>=0?r:null},30,!1);function VE(t,e,r){for(var n=t.baseDimIdx,i=1-n,a=t.shape.points,o=t.largeDataIndices,s=[],l=[],u=t.barWidth,f=0,c=a.length/3;f<c;f++){var v=f*3;if(l[n]=u,l[i]=a[v+2],s[n]=a[v+n],s[i]=a[v+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),e>=s[0]&&e<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[f]}return-1}function YS(t,e,r){if(g_(r,"cartesian2d")){var n=e,i=r.getArea();return{x:t?n.x:i.x,y:t?i.y:n.y,width:t?n.width:i.width,height:t?i.height:n.height}}else{var i=r.getArea(),a=e;return{cx:i.cx,cy:i.cy,r0:t?i.r0:a.r0,r:t?i.r:a.r,startAngle:t?a.startAngle:0,endAngle:t?a.endAngle:Math.PI*2}}}function GE(t,e,r){var n=t.type==="polar"?xr:De;return new n({shape:YS(e,r,t),silent:!0,z2:0})}function HE(t,e){if(t.height===0){var r=e.getOtherAxis(e.getBaseAxis());return r.inverse?"bottom":"top"}return t.height>0?"bottom":"top"}function UE(t,e){if(t.width===0){var r=e.getOtherAxis(e.getBaseAxis());return r.inverse?"left":"right"}return t.width>=0?"right":"left"}function WE(t){t.registerChartView(kE),t.registerSeriesModel(IE),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,CE(oa)),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,AE(oa)),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,W_(oa)),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,r){var n=e.componentType||"series";r.eachComponent({mainType:n,query:e},function(i){e.sortInfo&&i.axis.setCategorySortInfo(e.sortInfo)})}),ME(t)}function YE(t,e){function r(n,i){var a=[];return n.eachComponent({mainType:"series",subType:t,query:i},function(o){a.push(o.seriesIndex)}),a}I([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(n){e(n[0],function(i,a,o){i=z({},i),o.dispatchAction(z(i,{type:n[1],seriesIndex:r(a,i)}))})})}function sa(t,e,r,n,i){var a=t+e;r.isSilent(a)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=i.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var c=o.getData(),v=Wn(c,i.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:W(v)?c.getName(v[0]):c.getName(v),selected:q(l)?l:z({},l)})}})}function $E(t,e,r){t.on("selectchanged",function(n){var i=r.getModel();n.isFromClick?(sa("map","selectchanged",e,i,n),sa("pie","selectchanged",e,i,n)):n.fromAction==="select"?(sa("map","selected",e,i,n),sa("pie","selected",e,i,n)):n.fromAction==="unselect"&&(sa("map","unselected",e,i,n),sa("pie","unselected",e,i,n))})}function Tv(t){return{seriesType:t,reset:function(e,r){var n=r.findComponents({mainType:"legend"});if(!(!n||!n.length)){var i=e.getData();i.filterSelf(function(a){for(var o=i.getName(a),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}function pu(t,e,r){e=W(e)&&{coordDimensions:e}||z({encodeDefine:t.getEncode()},e);var n=t.getSource(),i=v0(n,e).dimensions,a=new h0(i,t);return a.initData(n,r),a}var xv=(function(){function t(e,r){this._getDataWithEncodedVisual=e,this._getRawData=r}return t.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},t.prototype.containName=function(e){var r=this._getRawData();return r.indexOfName(e)>=0},t.prototype.indexOfName=function(e){var r=this._getDataWithEncodedVisual();return r.indexOfName(e)},t.prototype.getItemVisual=function(e,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(e,r)},t})(),mn="pie",XE=Se(),$S=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new xv(de(this.getData,this),de(this.getRawData,this)),this._defaultLabelLine(r)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return pu(this,{coordDimensions:["value"],encodeDefaulter:Oe(Fy,this)})},e.prototype.getDataParams=function(r){var n=this.getData(),i=XE(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=XA(o,n.hostModel.get("percentPrecision"))}var s=t.prototype.getDataParams.call(this,r);return s.percent=a[r]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(r){js(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},e.type="series."+mn,e.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"},e})(ot);bI({fullType:$S.type,getCoord2:function(t){return t.getShallow("center")}});function XS(t,e,r,n,i,a,o,s){var l=i-t,u=a-e,f=r-t,c=n-e,v=Math.sqrt(f*f+c*c);f/=v,c/=v;var h=l*f+u*c,d=h/v;d*=v;var p=o[0]=t+d*f,g=o[1]=e+d*c;return Math.sqrt((p-i)*(p-i)+(g-a)*(g-a))}var yn=new re,Pe=new re,Xe=new re,_n=new re,Mr=new re,gu=[],st=new re;function qE(t,e){if(e<=180&&e>0){e=e/180*Math.PI,yn.fromArray(t[0]),Pe.fromArray(t[1]),Xe.fromArray(t[2]),re.sub(_n,yn,Pe),re.sub(Mr,Xe,Pe);var r=_n.len(),n=Mr.len();if(!(r<.001||n<.001)){_n.scale(1/r),Mr.scale(1/n);var i=_n.dot(Mr),a=Math.cos(e);if(a<i){var o=XS(Pe.x,Pe.y,Xe.x,Xe.y,yn.x,yn.y,gu);st.fromArray(gu),st.scaleAndAdd(Mr,o/Math.tan(Math.PI-e));var s=Xe.x!==Pe.x?(st.x-Pe.x)/(Xe.x-Pe.x):(st.y-Pe.y)/(Xe.y-Pe.y);if(isNaN(s))return;s<0?re.copy(st,Pe):s>1&&re.copy(st,Xe),st.toArray(t[1])}}}}function ZE(t,e,r){if(r<=180&&r>0){r=r/180*Math.PI,yn.fromArray(t[0]),Pe.fromArray(t[1]),Xe.fromArray(t[2]),re.sub(_n,Pe,yn),re.sub(Mr,Xe,Pe);var n=_n.len(),i=Mr.len();if(!(n<.001||i<.001)){_n.scale(1/n),Mr.scale(1/i);var a=_n.dot(e),o=Math.cos(r);if(a<o){var s=XS(Pe.x,Pe.y,Xe.x,Xe.y,yn.x,yn.y,gu);st.fromArray(gu);var l=Math.PI/2,u=Math.acos(Mr.dot(e)),f=l+u-r;if(f>=l)re.copy(st,Xe);else{st.scaleAndAdd(Mr,s/Math.tan(Math.PI/2-f));var c=Xe.x!==Pe.x?(st.x-Pe.x)/(Xe.x-Pe.x):(st.y-Pe.y)/(Xe.y-Pe.y);if(isNaN(c))return;c<0?re.copy(st,Pe):c>1&&re.copy(st,Xe)}st.toArray(t[1])}}}}function Cv(t,e,r,n){var i=r==="normal",a=i?t:t.ensureState(r);a.ignore=e;var o=n.get("smooth");o=o===!0?.3:Math.max(+o,0)||0,a.shape=a.shape||{},a.shape.smooth=o;var s=n.getModel("lineStyle").getLineStyle();i?t.useStyle(s):a.style=s}function KE(t,e){var r=e.smooth,n=e.points;if(n)if(t.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var i=xf(n[0],n[1]),a=xf(n[1],n[2]);if(!i||!a){t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*r,s=Cf([],n[1],n[0],o/i),l=Cf([],n[1],n[2],o/a),u=Cf([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var f=1;f<n.length;f++)t.lineTo(n[f][0],n[f][1])}function qS(t,e,r){var n=t.getTextGuideLine(),i=t.getTextContent();if(!i){n&&t.removeTextGuideLine();return}for(var a=e.normal,o=a.get("show"),s=i.ignore,l=0;l<el.length;l++){var u=el[l],f=e[u],c=u==="normal";if(f){var v=f.get("show"),h=c?s:Z(i.states[u]&&i.states[u].ignore,s);if(h||!Z(v,o)){var d=c?n:n&&n.states[u];d&&(d.ignore=!0),n&&Cv(n,!0,u,f);continue}n||(n=new on,t.setTextGuideLine(n),!c&&(s||!o)&&Cv(n,!0,"normal",e.normal),t.stateProxy&&(n.stateProxy=t.stateProxy)),Cv(n,!1,u,f)}}if(n){le(n.style,r),n.style.fill=null;var p=a.get("showAbove"),g=t.textGuideLineConfig=t.textGuideLineConfig||{};g.showAbove=p||!1,n.buildPath=KE}}function ZS(t,e){e=e||"labelLine";for(var r={normal:t.getModel(e)},n=0;n<Rt.length;n++){var i=Rt[n];r[i]=t.getModel([i,e])}return r}var jE=Math.PI/180;function KS(t,e,r,n,i,a,o,s,l,u){if(t.length<2)return;function f(p){for(var g=p.rB,m=g*g,y=0;y<p.list.length;y++){var _=p.list[y],S=Math.abs(_.label.y-r),b=n+_.len,w=b*b,T=Math.sqrt(Math.abs((1-S*S/m)*w)),C=e+(T+_.len2)*i,D=C-_.label.x,x=_.targetTextWidth-D*i;jS(_,x,!0),_.label.x=C}}function c(p){for(var g={list:[],maxY:0},m={list:[],maxY:0},y=0;y<p.length;y++)if(p[y].labelAlignTo==="none"){var _=p[y],S=_.label.y>r?m:g,b=Math.abs(_.label.y-r);if(b>=S.maxY){var w=_.label.x-e-_.len2*i,T=n+_.len,C=Math.abs(w)<T?Math.sqrt(b*b/(1-w*w/T/T)):T;S.rB=C,S.maxY=b}S.list.push(_)}f(g),f(m)}for(var v=t.length,h=0;h<v;h++)if(t[h].position==="outer"&&t[h].labelAlignTo==="labelLine"){var d=t[h].label.x-u;t[h].linePoints[1][0]+=d,t[h].label.x=u}O2(t,1,l,l+o)&&c(t)}function QE(t,e,r,n,i,a,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,c=-Number.MAX_VALUE,v=0;v<t.length;v++){var h=t[v].label;Av(t[v])||(h.x<e?(f=Math.min(f,h.x),l.push(t[v])):(c=Math.max(c,h.x),u.push(t[v])))}for(var v=0;v<t.length;v++){var d=t[v];if(!Av(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var h=d.label,p=d.linePoints,g=void 0;d.labelAlignTo==="edge"?h.x<e?g=p[2][0]-d.labelDistance-o-d.edgeDistance:g=o+i-d.edgeDistance-p[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?h.x<e?g=f-o-d.bleedMargin:g=o+i-c-d.bleedMargin:h.x<e?g=h.x-o-d.bleedMargin:g=o+i-h.x-d.bleedMargin,d.targetTextWidth=g,jS(d,g,!1)}}KS(u,e,r,n,1,i,a,o,s,c),KS(l,e,r,n,-1,i,a,o,s,f);for(var v=0;v<t.length;v++){var d=t[v];if(!Av(d)&&d.linePoints){var h=d.label,p=d.linePoints,m=d.labelAlignTo==="edge",y=h.style.padding,_=y?y[1]+y[3]:0,S=h.style.backgroundColor?0:_,b=d.rect.width+S,w=p[1][0]-p[2][0];m?h.x<e?p[2][0]=o+d.edgeDistance+b+d.labelDistance:p[2][0]=o+i-d.edgeDistance-b-d.labelDistance:(h.x<e?p[2][0]=h.x+d.labelDistance:p[2][0]=h.x-d.labelDistance,p[1][0]=p[2][0]+w),p[1][1]=p[2][1]=h.y}}}function jS(t,e,r){if(t.labelStyleWidth==null){var n=t.label,i=n.style,a=t.rect,o=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,f=a.width+(o?0:l);if(e<f||r){if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",e-l);var c=n.getBoundingRect();n.setStyle("width",Math.ceil(c.width)),n.setStyle("backgroundColor",o)}else{var v=e-l,h=e<f?v:r?v>t.unconstrainedWidth?null:v:null;n.setStyle("width",h)}QS(a,n)}}}function QS(t,e){JS.rect=t,uS(JS,e,JE)}var JE={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},JS={};function Av(t){return t.position==="center"}function ek(t){var e=t.getData(),r=[],n,i,a=!1,o=(t.get("minShowLabelAngle")||0)*jE,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,f=s.x,c=s.y,v=s.height;function h(w){w.ignore=!0}function d(w){if(!w.ignore)return!0;for(var T in w.states)if(w.states[T].ignore===!1)return!0;return!1}e.each(function(w){var T=e.getItemGraphicEl(w),C=T.shape,D=T.getTextContent(),x=T.getTextGuideLine(),A=e.getItemModel(w),L=A.getModel("label"),M=L.get("position")||A.get(["emphasis","label","position"]),P=L.get("distanceToLabelLine"),E=L.get("alignTo"),k=Q(L.get("edgeDistance"),u),O=L.get("bleedMargin");O==null&&(O=Math.min(u,v)>200?10:2);var R=A.getModel("labelLine"),N=R.get("length");N=Q(N,u);var F=R.get("length2");if(F=Q(F,u),Math.abs(C.endAngle-C.startAngle)<o){I(D.states,h),D.ignore=!0,x&&(I(x.states,h),x.ignore=!0);return}if(d(D)){var B=(C.startAngle+C.endAngle)/2,G=Math.cos(B),X=Math.sin(B),H,K,ae,ke;n=C.cx,i=C.cy;var Ae=M==="inside"||M==="inner";if(M==="center")H=C.cx,K=C.cy,ke="center";else{var he=(Ae?(C.r+C.r0)/2*G:C.r*G)+n,Te=(Ae?(C.r+C.r0)/2*X:C.r*X)+i;if(H=he+G*3,K=Te+X*3,!Ae){var J=he+G*(N+l-C.r),se=Te+X*(N+l-C.r),pt=J+(G<0?-1:1)*F,Re=se;E==="edge"?H=G<0?f+k:f+u-k:H=pt+(G<0?-P:P),K=Re,ae=[[he,Te],[J,se],[pt,Re]]}ke=Ae?"center":E==="edge"?G>0?"right":"left":G>0?"left":"right"}var ir=Math.PI,gt=0,ar=L.get("rotate");if(me(ar))gt=ar*(ir/180);else if(M==="center")gt=0;else if(ar==="radial"||ar===!0){var _a=G<0?-B+ir:-B;gt=_a}else if(ar==="tangential"||ar==="tangential-noflip"&&M!=="outside"&&M!=="outer"){var or=Math.atan2(G,X);or<0&&(or=ir*2+or);var Xu=X>0;Xu&&ar!=="tangential-noflip"&&(or=ir+or),gt=or-ir}if(a=!!gt,D.x=H,D.y=K,D.rotation=gt,D.setStyle({verticalAlign:"middle"}),Ae){D.setStyle({align:ke});var Jd=D.states.select;Jd&&(Jd.x+=D.x,Jd.y+=D.y)}else{var Sa=new ne(0,0,0,0);QS(Sa,D),r.push({label:D,labelLine:x,position:M,len:N,len2:F,minTurnAngle:R.get("minTurnAngle"),maxSurfaceAngle:R.get("maxSurfaceAngle"),surfaceNormal:new re(G,X),linePoints:ae,textAlign:ke,labelDistance:P,labelAlignTo:E,edgeDistance:k,bleedMargin:O,rect:Sa,unconstrainedWidth:Sa.width,labelStyleWidth:D.style.width})}T.setTextConfig({inside:Ae})}}),!a&&t.get("avoidLabelOverlap")&&QE(r,n,i,l,u,v,f,c);for(var p=0;p<r.length;p++){var g=r[p],m=g.label,y=g.labelLine,_=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:g.textAlign}),_&&(I(m.states,h),m.ignore=!0);var S=m.states.select;S&&(S.x+=m.x,S.y+=m.y)}if(y){var b=g.linePoints;_||!b?(I(y.states,h),y.ignore=!0):(qE(b,g.minTurnAngle),ZE(b,g.surfaceNormal,g.maxSurfaceAngle),y.setShape({points:b}),m.__hostTarget.textGuideLineConfig={anchor:new re(b[0][0],b[0][1])})}}}var e1=Math.PI*2,mu=Math.PI/180,tk=Ic(mn,rk);function rk(t,e){t.eachSeriesByType(mn,function(r){var n=r.getData(),i=n.mapDimension("value"),a=fL(r,e),o=a.cx,s=a.cy,l=a.r,u=a.r0,f=a.viewRect,c=-r.get("startAngle")*mu,v=r.get("endAngle"),h=r.get("padAngle")*mu;v=v==="auto"?c-e1:-v*mu;var d=r.get("minAngle")*mu,p=d+h,g=0;n.each(i,function(k){!isNaN(k)&&g++});var m=n.getSum(i),y=Math.PI/(m||g)*2,_=r.get("clockwise"),S=r.get("roseType"),b=r.get("stillShowZeroSum"),w=n.getDataExtent(i);w[0]=0;var T=_?1:-1,C=[c,v],D=T*h/2;pc(C,!_),c=C[0],v=C[1];var x=t1(r);x.startAngle=c,x.endAngle=v,x.clockwise=_,x.cx=o,x.cy=s,x.r=l,x.r0=u;var A=Math.abs(v-c),L=A,M=0,P=c;if(n.setLayout({viewRect:f,r:l}),n.each(i,function(k,O){var R;if(isNaN(k)){n.setItemLayout(O,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:o,cy:s,r0:u,r:S?NaN:l});return}S!=="area"?R=m===0&&b?y:k*y:R=A/g,R<p?(R=p,L-=p):M+=k;var N=P+T*R,F=0,B=0;h>R?(F=P+T*R/2,B=F):(F=P+D,B=N-D),n.setItemLayout(O,{angle:R,startAngle:F,endAngle:B,clockwise:_,cx:o,cy:s,r0:u,r:S?It(k,w,[u,l]):l}),P=N}),L<e1&&g)if(L<=.001){var E=A/g;n.each(i,function(k,O){if(!isNaN(k)){var R=n.getItemLayout(O);R.angle=E;var N=0,F=0;E<h?(N=c+T*(O+1/2)*E,F=N):(N=c+T*O*E+D,F=c+T*(O+1)*E-D),R.startAngle=N,R.endAngle=F}})}else y=L/M,P=c,n.each(i,function(k,O){if(!isNaN(k)){var R=n.getItemLayout(O),N=R.angle===p?p:k*y,F=0,B=0;N<h?(F=P+T*N/2,B=F):(F=P+D,B=P+T*N-D),R.startAngle=F,R.endAngle=B,P+=T*N}})})}var t1=Se(),nk=(function(t){V(e,t);function e(r,n,i){var a=t.call(this)||this;a.z2=2;var o=new Me;return a.setTextContent(o),a.updateData(r,n,i,!0),a}return e.prototype.updateData=function(r,n,i,a){var o=this,s=r.hostModel,l=r.getItemModel(n),u=l.getModel("emphasis"),f=r.getItemLayout(n),c=z(Io(l.getModel("itemStyle"),f,!0),f);if(isNaN(c.startAngle)){o.setShape(c);return}if(a){o.setShape(c);var v=s.getShallow("animationType");s.ecModel.ssr?(Ge(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=c.cx,o.originY=c.cy):v==="scale"?(o.shape.r=f.r0,Ge(o,{shape:{r:f.r}},s,n)):i!=null?(o.setShape({startAngle:i,endAngle:i}),Ge(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,n)):(o.shape.endAngle=f.startAngle,Ie(o,{shape:{endAngle:f.endAngle}},s,n))}else Ui(o),Ie(o,{shape:c},s,n);o.useStyle(r.getItemVisual(n,"style")),zr(o,l);var h=(f.startAngle+f.endAngle)/2,d=s.get("selectedOffset"),p=Math.cos(h)*d,g=Math.sin(h)*d,m=l.getShallow("cursor");m&&o.attr("cursor",m),this._updateLabel(s,r,n),o.ensureState("emphasis").shape=z({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},Io(u.getModel("itemStyle"),f)),z(o.ensureState("select"),{x:p,y:g,shape:Io(l.getModel(["select","itemStyle"]),f)}),z(o.ensureState("blur"),{shape:Io(l.getModel(["blur","itemStyle"]),f)});var y=o.getTextGuideLine(),_=o.getTextContent();y&&z(y.ensureState("select"),{x:p,y:g}),z(_.ensureState("select"),{x:p,y:g}),Fr(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(r,n,i){var a=this,o=n.getItemModel(i),s=o.getModel("labelLine"),l=n.getItemVisual(i,"style"),u=l&&l.fill,f=l&&l.opacity;Kn(a,jn(o),{labelFetcher:n.hostModel,labelDataIndex:i,inheritColor:u,defaultOpacity:f,defaultText:r.getFormattedLabel(i,"normal")||n.getName(i)});var c=a.getTextContent();a.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var v=o.get(["label","position"]);if(v!=="outside"&&v!=="outer")a.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new on,this.setTextGuideLine(h)),qS(this,ZS(o),{stroke:u,opacity:bn(s.get(["lineStyle","opacity"]),f,1)})}},e})(xr),ik=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=mn,r.ignoreLabelLineUpdate=!0,r}return e.prototype.render=function(r,n,i,a){var o=r.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),c=1;isNaN(f&&f.startAngle)&&c<o.count();++c)f=o.getItemLayout(c);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&r.get("showEmptyCircle")){var v=t1(r),h=new xr({shape:oe(v)});h.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,l.add(h)}o.diff(s).add(function(d){var p=new nk(o,d,u);o.setItemGraphicEl(d,p),l.add(p)}).update(function(d,p){var g=s.getItemGraphicEl(p);g.updateData(o,d,u),g.off("click"),l.add(g),o.setItemGraphicEl(d,g)}).remove(function(d){var p=s.getItemGraphicEl(d);Hi(p,r,d)}).execute(),ek(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(r,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=r[0]-a.cx,s=r[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},e.type=mn,e})(je);function ak(t){return{seriesType:t,reset:function(e,r){var n=e.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(me(o)&&!isNaN(o)&&o<0)})}}}function ok(t){t.registerChartView(ik),t.registerSeriesModel($S),YE(mn,t.registerAction),t.registerLayout(tk),t.registerProcessor(Tv(mn)),t.registerProcessor(ak(mn))}var la=(function(){function t(e,r){this.target=e,this.topTarget=r&&r.topTarget}return t})(),sk=(function(){function t(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(e){for(var r=e.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new la(r,e),"dragstart",e.event))},t.prototype._drag=function(e){var r=this._draggingTarget;if(r){var n=e.offsetX,i=e.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,r.drift(a,o,e),this.handler.dispatchToElement(new la(r,e),"drag",e.event);var s=this.handler.findHover(n,i,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new la(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new la(s,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new la(r,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new la(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t})(),lk=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Dv=[],uk=ie.browser.firefox&&+ie.browser.version.split(".")[0]<39;function Mv(t,e,r,n){return r=r||{},n?r1(t,e,r):uk&&e.layerX!=null&&e.layerX!==e.offsetX?(r.zrX=e.layerX,r.zrY=e.layerY):e.offsetX!=null?(r.zrX=e.offsetX,r.zrY=e.offsetY):r1(t,e,r),r}function r1(t,e,r){if(ie.domSupported&&t.getBoundingClientRect){var n=e.clientX,i=e.clientY;if(_0(t)){var a=t.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(Ch(Dv,t,n,i)){r.zrX=Dv[0],r.zrY=Dv[1];return}}r.zrX=r.zrY=0}function Iv(t){return t||window.event}function zt(t,e,r){if(e=Iv(e),e.zrX!=null)return e;var n=e.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&Mv(t,o,e,r)}else{Mv(t,e,e,r);var a=fk(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&lk.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function fk(t){var e=t.wheelDelta;if(e)return e;var r=t.deltaX,n=t.deltaY;if(r==null||n==null)return e;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function ck(t,e,r,n){t.addEventListener(e,r,n)}function hk(t,e,r,n){t.removeEventListener(e,r,n)}var n1=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},vk=(function(){function t(){this._track=[]}return t.prototype.recognize=function(e,r,n){return this._doTrack(e,r,n),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,r,n){var i=e.touches;if(i){for(var a={points:[],touches:[],target:r,event:e},o=0,s=i.length;o<s;o++){var l=i[o],u=Mv(n,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},t.prototype._recognize=function(e){for(var r in Lv)if(Lv.hasOwnProperty(r)){var n=Lv[r](this._track,e);if(n)return n}},t})();function i1(t){var e=t[1][0]-t[0][0],r=t[1][1]-t[0][1];return Math.sqrt(e*e+r*r)}function dk(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var Lv={pinch:function(t,e){var r=t.length;if(r){var n=(t[r-1]||{}).points,i=(t[r-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=i1(n)/i1(i);!isFinite(a)&&(a=1),e.pinchScale=a;var o=dk(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}},a1="silent";function pk(t,e,r){return{type:t,event:r,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:gk}}function gk(){n1(this.event)}var mk=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.handler=null,r}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e})(kr),Lo=(function(){function t(e,r){this.x=e,this.y=r}return t})(),yk=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Pv=new ne(0,0,0,0),o1=(function(t){V(e,t);function e(r,n,i,a,o){var s=t.call(this)||this;return s._hovered=new Lo(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new mk,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new sk(s),s}return e.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(I(yk,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},e.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=l1(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new Lo(n,i):this.findHover(n,i),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},e.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},e.prototype.resize=function(){this._hovered=new Lo(0,0)},e.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},e.prototype.dispatchToElement=function(r,n,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=pk(n,r,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},e.prototype.findHover=function(r,n,i){var a=this.storage.getDisplayList(),o=new Lo(r,n);if(s1(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new ne(r-u,n-u,l,l),c=a.length-1;c>=0;c--){var v=a[c];v!==i&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(Pv.copy(v.getBoundingRect()),v.transform&&Pv.applyTransform(v.transform),Pv.intersect(f)&&s.push(v))}if(s.length)for(var h=4,d=Math.PI/12,p=Math.PI*2,g=0;g<u;g+=h)for(var m=0;m<p;m+=d){var y=r+g*Math.cos(m),_=n+g*Math.sin(m);if(s1(s,o,y,_,i),o.target)return o}}return o},e.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new vk);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;r.gestureEvent=o;var s=new Lo;s.target=a.target,this.dispatchToElement(s,o,a.event)}},e})(kr);I(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){o1.prototype[t]=function(e){var r=e.zrX,n=e.zrY,i=l1(this,r,n),a,o;if((t!=="mouseup"||!i)&&(a=this.findHover(r,n),o=a.target),t==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(t==="mouseup")this._upEl=o;else if(t==="click"){if(this._downEl!==this._upEl||!this._downPoint||xf(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,t,e)}});function _k(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){for(var n=t,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(e,r))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s?n.ignoreHostSilent?null:s:n.parent}return i?a1:!0}return!1}function s1(t,e,r,n,i){for(var a=t.length-1;a>=0;a--){var o=t[a],s=void 0;if(o!==i&&!o.ignore&&(s=_k(o,r,n))&&(!e.topTarget&&(e.topTarget=o),s!==a1)){e.target=o;break}}}function l1(t,e,r){var n=t.painter;return e<0||e>n.getWidth()||r<0||r>n.getHeight()}var u1=32,Po=7;function Sk(t){for(var e=0;t>=u1;)e|=t&1,t>>=1;return t+e}function f1(t,e,r,n){var i=e+1;if(i===r)return 1;if(n(t[i++],t[e])<0){for(;i<r&&n(t[i],t[i-1])<0;)i++;bk(t,e,i)}else for(;i<r&&n(t[i],t[i-1])>=0;)i++;return i-e}function bk(t,e,r){for(r--;e<r;){var n=t[e];t[e++]=t[r],t[r--]=n}}function c1(t,e,r,n,i){for(n===e&&n++;n<r;n++){for(var a=t[n],o=e,s=n,l;o<s;)l=o+s>>>1,i(a,t[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:t[o+3]=t[o+2];case 2:t[o+2]=t[o+1];case 1:t[o+1]=t[o];break;default:for(;u>0;)t[o+u]=t[o+u-1],u--}t[o]=a}}function Ev(t,e,r,n,i,a){var o=0,s=0,l=1;if(a(t,e[r+i])>0){for(s=n-i;l<s&&a(t,e[r+i+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;l<s&&a(t,e[r+i-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o<l;){var f=o+(l-o>>>1);a(t,e[r+f])>0?o=f+1:l=f}return l}function kv(t,e,r,n,i,a){var o=0,s=0,l=1;if(a(t,e[r+i])<0){for(s=i+1;l<s&&a(t,e[r+i-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l<s&&a(t,e[r+i+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o<l;){var f=o+(l-o>>>1);a(t,e[r+f])<0?l=f:o=f+1}return l}function wk(t,e){var r=Po,n,i,a=0,o=[];n=[],i=[];function s(h,d){n[a]=h,i[a]=d,a+=1}function l(){for(;a>1;){var h=a-2;if(h>=1&&i[h-1]<=i[h]+i[h+1]||h>=2&&i[h-2]<=i[h]+i[h-1])i[h-1]<i[h+1]&&h--;else if(i[h]>i[h+1])break;f(h)}}function u(){for(;a>1;){var h=a-2;h>0&&i[h-1]<i[h+1]&&h--,f(h)}}function f(h){var d=n[h],p=i[h],g=n[h+1],m=i[h+1];i[h]=p+m,h===a-3&&(n[h+1]=n[h+2],i[h+1]=i[h+2]),a--;var y=kv(t[g],t,d,p,0,e);d+=y,p-=y,p!==0&&(m=Ev(t[d+p-1],t,g,m,m-1,e),m!==0&&(p<=m?c(d,p,g,m):v(d,p,g,m)))}function c(h,d,p,g){var m=0;for(m=0;m<d;m++)o[m]=t[h+m];var y=0,_=p,S=h;if(t[S++]=t[_++],--g===0){for(m=0;m<d;m++)t[S+m]=o[y+m];return}if(d===1){for(m=0;m<g;m++)t[S+m]=t[_+m];t[S+g]=o[y];return}for(var b=r,w,T,C;;){w=0,T=0,C=!1;do if(e(t[_],o[y])<0){if(t[S++]=t[_++],T++,w=0,--g===0){C=!0;break}}else if(t[S++]=o[y++],w++,T=0,--d===1){C=!0;break}while((w|T)<b);if(C)break;do{if(w=kv(t[_],o,y,d,0,e),w!==0){for(m=0;m<w;m++)t[S+m]=o[y+m];if(S+=w,y+=w,d-=w,d<=1){C=!0;break}}if(t[S++]=t[_++],--g===0){C=!0;break}if(T=Ev(o[y],t,_,g,0,e),T!==0){for(m=0;m<T;m++)t[S+m]=t[_+m];if(S+=T,_+=T,g-=T,g===0){C=!0;break}}if(t[S++]=o[y++],--d===1){C=!0;break}b--}while(w>=Po||T>=Po);if(C)break;b<0&&(b=0),b+=2}if(r=b,r<1&&(r=1),d===1){for(m=0;m<g;m++)t[S+m]=t[_+m];t[S+g]=o[y]}else{if(d===0)throw new Error;for(m=0;m<d;m++)t[S+m]=o[y+m]}}function v(h,d,p,g){var m=0;for(m=0;m<g;m++)o[m]=t[p+m];var y=h+d-1,_=g-1,S=p+g-1,b=0,w=0;if(t[S--]=t[y--],--d===0){for(b=S-(g-1),m=0;m<g;m++)t[b+m]=o[m];return}if(g===1){for(S-=d,y-=d,w=S+1,b=y+1,m=d-1;m>=0;m--)t[w+m]=t[b+m];t[S]=o[_];return}for(var T=r;;){var C=0,D=0,x=!1;do if(e(o[_],t[y])<0){if(t[S--]=t[y--],C++,D=0,--d===0){x=!0;break}}else if(t[S--]=o[_--],D++,C=0,--g===1){x=!0;break}while((C|D)<T);if(x)break;do{if(C=d-kv(o[_],t,h,d,d-1,e),C!==0){for(S-=C,y-=C,d-=C,w=S+1,b=y+1,m=C-1;m>=0;m--)t[w+m]=t[b+m];if(d===0){x=!0;break}}if(t[S--]=o[_--],--g===1){x=!0;break}if(D=g-Ev(t[y],o,0,g,g-1,e),D!==0){for(S-=D,_-=D,g-=D,w=S+1,b=_+1,m=0;m<D;m++)t[w+m]=o[b+m];if(g<=1){x=!0;break}}if(t[S--]=t[y--],--d===0){x=!0;break}T--}while(C>=Po||D>=Po);if(x)break;T<0&&(T=0),T+=2}if(r=T,r<1&&(r=1),g===1){for(S-=d,y-=d,w=S+1,b=y+1,m=d-1;m>=0;m--)t[w+m]=t[b+m];t[S]=o[_]}else{if(g===0)throw new Error;for(b=S-(g-1),m=0;m<g;m++)t[b+m]=o[m]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function yu(t,e,r,n){r||(r=0),n||(n=t.length);var i=n-r;if(!(i<2)){var a=0;if(i<u1){a=f1(t,r,n,e),c1(t,r,n,r+a,e);return}var o=wk(t,e),s=Sk(i);do{if(a=f1(t,r,n,e),a<s){var l=i;l>s&&(l=s),c1(t,r,r+l,r+a,e),a=l}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var h1=!1;function Rv(){h1||(h1=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function v1(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var Tk=(function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=v1}return t.prototype.traverse=function(e,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,r)},t.prototype.getDisplayList=function(e,r){r=r||!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(r),n},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var r=this._roots,n=this._displayList,i=0,a=r.length;i<a;i++)this._updateAndAddDisplayable(r[i],null,e);n.length=this._displayListLen,yu(n,v1)},t.prototype._updateAndAddDisplayable=function(e,r,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var i=e.getClipPath(),a=r&&r.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(a||i)){if(s||(s=e.__clipPaths=[]),a)for(var l=0;l<r.length;l++)s[o++]=r[l];for(var u=i,f=e;u;)u.parent=f,u.updateTransform(),s[o++]=u,f=u,u=u.getClipPath()}if(s&&(s.length=o),e.childrenRef){for(var c=e.childrenRef(),v=0;v<c.length;v++){var h=c[v];e.__dirty&&(h.__dirty|=$t),this._updateAndAddDisplayable(h,s,n)}e.__dirty=0}else{var d=e;isNaN(d.z)&&(Rv(),d.z=0),isNaN(d.z2)&&(Rv(),d.z2=0),isNaN(d.zlevel)&&(Rv(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var p=e.getDecalElement&&e.getDecalElement();p&&this._updateAndAddDisplayable(p,s,n);var g=e.getTextGuideLine();g&&this._updateAndAddDisplayable(g,s,n);var m=e.getTextContent();m&&this._updateAndAddDisplayable(m,s,n)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var r=0,n=e.length;r<n;r++)this.delRoot(e[r]);return}var i=fe(this._roots,e);i>=0&&this._roots.splice(i,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t})(),Ov;Ov=ie.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};function ua(){return new Date().getTime()}var xk=(function(t){V(e,t);function e(r){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return e.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},e.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},e.prototype.removeClip=function(r){if(r.animation){var n=r.prev,i=r.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},e.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},e.prototype.update=function(r){for(var n=ua()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,r||(this.trigger("frame",i),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(Ov(n),!r._paused&&r.update())}Ov(n)},e.prototype.start=function(){this._running||(this._time=ua(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=ua(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=ua()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(r,n){n=n||{},this.start();var i=new jf(r,n.loop);return this.addAnimator(i),i},e})(kr),Ck=300,Nv=ie.domSupported,Bv=(function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=$(t,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:t,touch:e,pointer:n}})(),d1={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},p1=!1;function Fv(t){var e=t.pointerType;return e==="pen"||e==="touch"}function Ak(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function zv(t){t&&(t.zrByTouch=!0)}function Dk(t,e){return zt(t.dom,new Mk(t,e),!0)}function g1(t,e){for(var r=e,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==e&&r===t.painterRoot);)r=r.parentNode;return n}var Mk=(function(){function t(e,r){this.stopPropagation=We,this.stopImmediatePropagation=We,this.preventDefault=We,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return t})(),er={mousedown:function(t){t=zt(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=zt(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=zt(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=zt(this.dom,t);var e=t.toElement||t.relatedTarget;g1(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){p1=!0,t=zt(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){p1||(t=zt(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=zt(this.dom,t),zv(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),er.mousemove.call(this,t),er.mousedown.call(this,t)},touchmove:function(t){t=zt(this.dom,t),zv(t),this.handler.processGesture(t,"change"),er.mousemove.call(this,t)},touchend:function(t){t=zt(this.dom,t),zv(t),this.handler.processGesture(t,"end"),er.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<Ck&&er.click.call(this,t)},pointerdown:function(t){er.mousedown.call(this,t)},pointermove:function(t){Fv(t)||er.mousemove.call(this,t)},pointerup:function(t){er.mouseup.call(this,t)},pointerout:function(t){Fv(t)||er.mouseout.call(this,t)}};I(["click","dblclick","contextmenu"],function(t){er[t]=function(e){e=zt(this.dom,e),this.trigger(t,e)}});var Vv={pointermove:function(t){Fv(t)||Vv.mousemove.call(this,t)},pointerup:function(t){Vv.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function Ik(t,e){var r=e.domHandlers;ie.pointerEventsSupported?I(Bv.pointer,function(n){_u(e,n,function(i){r[n].call(t,i)})}):(ie.touchEventsSupported&&I(Bv.touch,function(n){_u(e,n,function(i){r[n].call(t,i),Ak(e)})}),I(Bv.mouse,function(n){_u(e,n,function(i){i=Iv(i),e.touching||r[n].call(t,i)})}))}function Lk(t,e){ie.pointerEventsSupported?I(d1.pointer,r):ie.touchEventsSupported||I(d1.mouse,r);function r(n){function i(a){a=Iv(a),g1(t,a.target)||(a=Dk(t,a),e.domHandlers[n].call(t,a))}_u(e,n,i,{capture:!0})}}function _u(t,e,r,n){t.mounted[e]=r,t.listenerOpts[e]=n,ck(t.domTarget,e,r,n)}function Gv(t){var e=t.mounted;for(var r in e)e.hasOwnProperty(r)&&hk(t.domTarget,r,e[r],t.listenerOpts[r]);t.mounted={}}var m1=(function(){function t(e,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=r}return t})(),Pk=(function(t){V(e,t);function e(r,n){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=r,i.painterRoot=n,i._localHandlerScope=new m1(r,er),Nv&&(i._globalHandlerScope=new m1(document,Vv)),Ik(i,i._localHandlerScope),i}return e.prototype.dispose=function(){Gv(this._localHandlerScope),Nv&&Gv(this._globalHandlerScope)},e.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},e.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,Nv&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?Lk(this,n):Gv(n)}},e})(kr);var Su={},y1={};function Ek(t){delete y1[t]}function kk(t){if(!t)return!1;if(typeof t=="string")return Is(t,1)<Qf;if(t.colorStops){for(var e=t.colorStops,r=0,n=e.length,i=0;i<n;i++)r+=Is(e[i].color,1);return r/=n,r<Qf}return!1}var Rk=(function(){function t(e,r,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,n=n||{},this.dom=r,this.id=e;var a=new Tk,o=n.renderer||"canvas";Su[o]||(o=ce(Su)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new Su[o](r,a,n,e),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!ie.node&&!ie.worker&&!l?new Pk(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,c=f==null||f==="auto"?ie.touchEventsSupported:!!f,v=44,h;c&&(h=Z(n.pointerSize,v)),this.handler=new o1(a,s,u,s.root,h),this.animation=new xk({stage:{update:l?null:function(){return i._flush(!1)}}}),l||this.animation.start()}return t.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},t.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(e,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,r),this.refresh())},t.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=kk(e))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(e){this._darkMode=e},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(e){this._disposed||this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},t.prototype._refresh=function(e){e.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:e.refresh,refreshHover:e.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!0)},t.prototype._flush=function(e){var r,n=ua(),i=this._needsRefresh,a=this._needsRefreshHover;(i||a)&&(r=!0,this._refresh({animUpdate:e,refresh:i,refreshHover:a}));var o=ua();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:o-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},t.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,r){if(!this._disposed)return this.handler.findHover(e,r)},t.prototype.on=function(e,r,n){return this._disposed||this.handler.on(e,r,n),this},t.prototype.off=function(e,r){this._disposed||this.handler.off(e,r)},t.prototype.trigger=function(e,r){this._disposed||this.handler.trigger(e,r)},t.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),r=0;r<e.length;r++)e[r]instanceof Ce&&e[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,Ek(this.id))},t})();function _1(t,e){var r=new Rk(Gp(),t,e);return y1[r.id]=r,r}function Ok(t,e){Su[t]=e}var Hv;function Nk(t){if(typeof Hv=="function")return Hv(t)}function Bk(t){Hv=t}var S1="";typeof navigator<"u"&&(S1=navigator.platform||"");var fa="rgba(0, 0, 0, 0.2)",b1=Y.color.theme[0],Fk=Uf(b1,null,null,.9);const w1={darkMode:"auto",colorBy:"series",color:Y.color.theme,gradientColor:[Fk,b1],aria:{decal:{decals:[{color:fa,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:fa,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:fa,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:fa,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:fa,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:fa,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:S1.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var zk=te();function Vk(t,e,r){var n=zk.get(e);if(!n)return r;var i=n(t);return i?r.concat(i):r}var bu,Eo,T1,x1="\0_ec_inner",Gk=1,Uv=(function(t){V(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new xe(a),this._locale=new xe(o),this._optionManager=s},e.prototype.setOption=function(r,n,i){var a=D1(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},e.prototype.resetOption=function(r,n){return this._resetOption(r,D1(n))},e.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?T1(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);l.length&&I(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},e.prototype.mergeOption=function(r){this._mergeOption(r,null)},e.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=te(),u=n&&n.replaceMergeMainTypeMap;qM(this),I(r,function(c,v){c!=null&&(ye.hasClass(v)?v&&(s.push(v),l.set(v,!0)):i[v]=i[v]==null?oe(c):be(i[v],c,!0))}),u&&u.each(function(c,v){ye.hasClass(v)&&!l.get(v)&&(s.push(v),l.set(v,!0))}),ye.topologicalTravel(s,ye.getAllClassMainTypes(),f,this);function f(c){var v=Vk(this,c,nt(r[c])),h=a.get(c),d=h?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",p=rD(h,v,d);uD(p,c,ye),i[c]=null,a.set(c,null),o.set(c,0);var g=[],m=[],y=0,_;I(p,function(S,b){var w=S.existing,T=S.newOption;if(!T)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var C=c==="series",D=ye.getClass(c,S.keyInfo.subType,!C);if(!D)return;if(c==="tooltip"){if(_)return;_=!0}if(w&&w.constructor===D)w.name=S.keyInfo.name,w.mergeOption(T,this),w.optionUpdated(T,!1);else{var x=z({componentIndex:b},S.keyInfo);w=new D(T,this,this,x),z(w,x),S.brandNew&&(w.__requireNewView=!0),w.init(T,this,this),w.optionUpdated(null,!0)}}w?(g.push(w.option),m.push(w),y++):(g.push(void 0),m.push(void 0))},this),i[c]=g,a.set(c,m),o.set(c,y),c==="series"&&bu(this)}this._seriesIndices||bu(this)},e.prototype.getOption=function(){var r=oe(this.option);return I(r,function(n,i){if(ye.hasClass(i)){for(var a=nt(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!ja(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[x1],r},e.prototype.setTheme=function(r){this._theme=new xe(r),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(r){this._payload=r},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(r,n){var i=this._componentsMap.get(r);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o<i.length;o++)if(i[o])return i[o]}}},e.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var i=r.index,a=r.id,o=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return i!=null?(l=[],I(nt(i),function(u){s[u]&&l.push(s[u])})):a!=null?l=C1("id",a,s):o!=null?l=C1("name",o,s):l=Ue(s,function(u){return!!u}),A1(l,r)},e.prototype.findComponents=function(r){var n=r.query,i=r.mainType,a=s(n),o=a?this.queryComponents(a):Ue(this._componentsMap.get(i),function(u){return!!u});return l(A1(o,r));function s(u){var f=i+"Index",c=i+"Id",v=i+"Name";return u&&(u[f]!=null||u[c]!=null||u[v]!=null)?{mainType:i,index:u[f],id:u[c],name:u[v]}:null}function l(u){return r.filter?Ue(u,r.filter):u}},e.prototype.eachComponent=function(r,n,i){var a=this._componentsMap;if(ee(r)){var o=n,s=r;a.each(function(c,v){for(var h=0;c&&h<c.length;h++){var d=c[h];d&&s.call(o,v,d,d.componentIndex)}})}else for(var l=q(r)?a.get(r):j(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var f=l[u];f&&n.call(i,f,f.componentIndex)}},e.prototype.getSeriesByName=function(r){var n=wr(r,null);return Ue(this._componentsMap.get("series"),function(i){return!!i&&n!=null&&i.name===n})},e.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},e.prototype.getSeriesByType=function(r){return Ue(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},e.prototype.getSeries=function(){return Ue(this._componentsMap.get("series"),function(r){return!!r})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(r,n){Eo(this),I(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];r.call(n,a,i)},this)},e.prototype.eachRawSeries=function(r,n){I(this._componentsMap.get("series"),function(i){i&&r.call(n,i,i.componentIndex)})},e.prototype.eachSeriesByType=function(r,n,i){Eo(this),I(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===r&&n.call(i,o,a)},this)},e.prototype.eachRawSeriesByType=function(r,n,i){return I(this.getSeriesByType(r),n,i)},e.prototype.isSeriesFiltered=function(r){return Eo(this),this._seriesIndicesMap.get(r.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(r,n){Eo(this);var i=[];I(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];r.call(n,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=te(i)},e.prototype.restoreData=function(r){bu(this);var n=this._componentsMap,i=[];n.each(function(a,o){ye.hasClass(o)&&i.push(o)}),ye.topologicalTravel(i,ye.getAllClassMainTypes(),function(a){I(n.get(a),function(o){o&&(a!=="series"||!Hk(o,r))&&o.restoreData()})})},e.internalField=(function(){bu=function(r){var n=r._seriesIndices=[];I(r._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),r._seriesIndicesMap=te(n)},Eo=function(r){},T1=function(r,n){r.option={},r.option[x1]=Gk,r._componentsMap=te({series:[]}),r._componentsCount=te();var i=n.aria;j(i)&&i.enabled==null&&(i.enabled=!0),Uk(n,r._theme.option),be(n,w1,!1),r._mergeOption(n,null)}})(),e})(xe);function Hk(t,e){if(e){var r=e.seriesIndex,n=e.seriesId,i=e.seriesName;return r!=null&&t.componentIndex!==r||n!=null&&t.id!==n||i!=null&&t.name!==i}}function Uk(t,e){var r=t.color&&!t.colorLayer;I(e,function(n,i){i==="colorLayer"&&r||i==="color"&&t.color||ye.hasClass(i)||(typeof n=="object"?t[i]=t[i]?be(t[i],n,!1):oe(n):t[i]==null&&(t[i]=n))})}function C1(t,e,r){if(W(e)){var n=te();return I(e,function(a){if(a!=null){var o=wr(a,null);o!=null&&n.set(a,!0)}}),Ue(r,function(a){return a&&n.get(a[t])})}else{var i=wr(e,null);return Ue(r,function(a){return a&&i!=null&&a[t]===i})}}function A1(t,e){return e.hasOwnProperty("subType")?Ue(t,function(r){return r&&r.subType===e.subType}):t}function D1(t){var e=te();return t&&I(nt(t.replaceMerge),function(r){e.set(r,!0)}),{replaceMergeMainTypeMap:e}}Ut(Uv,Vh);var Wk=/^(min|max)?(.+)$/,Yk=(function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,r,n){e&&(I(nt(e.series),function(o){o&&o.data&&ft(o.data)&&vs(o.data)}),I(nt(e.dataset),function(o){o&&o.source&&ft(o.source)&&vs(o.source)})),e=oe(e);var i=this._optionBackup,a=$k(e,r,!i);this._newBaseOption=a.baseOption,i?(a.timelineOptions.length&&(i.timelineOptions=a.timelineOptions),a.mediaList.length&&(i.mediaList=a.mediaList),a.mediaDefault&&(i.mediaDefault=a.mediaDefault)):this._optionBackup=a},t.prototype.mountOption=function(e){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],oe(e?r.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var r,n=this._timelineOptions;if(n.length){var i=e.getComponent("timeline");i&&(r=oe(n[i.getCurrentIndex()]))}return r},t.prototype.getMediaOption=function(e){var r=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!i.length&&!a)return s;for(var l=0,u=i.length;l<u;l++)Xk(i[l].query,r,n)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!Zk(o,this._currentMediaIndices)&&(s=$(o,function(f){return oe(f===-1?a.option:i[f].option)})),this._currentMediaIndices=o,s},t})();function $k(t,e,r){var n=[],i,a,o=t.baseOption,s=t.timeline,l=t.options,u=t.media,f=!!t.media,c=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((c||f)&&(t.options=t.media=null),a=t),f&&W(u)&&I(u,function(h){h&&h.option&&(h.query?n.push(h):i||(i=h))}),v(a),I(l,function(h){return v(h)}),I(n,function(h){return v(h.option)});function v(h){I(e,function(d){d(h,r)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:i,mediaList:n}}function Xk(t,e,r){var n={width:e,height:r,aspectratio:e/r},i=!0;return I(t,function(a,o){var s=o.match(Wk);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();qk(n[u],a,l)||(i=!1)}}),i}function qk(t,e,r){return r==="min"?t>=e:r==="max"?t<=e:t===e}function Zk(t,e){return t.join(",")===e.join(",")}var tr=I,ko=j,M1=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Wv(t){var e=t&&t.itemStyle;if(e)for(var r=0,n=M1.length;r<n;r++){var i=M1[r],a=e.normal,o=e.emphasis;a&&a[i]&&(t[i]=t[i]||{},t[i].normal?be(t[i].normal,a[i]):t[i].normal=a[i],a[i]=null),o&&o[i]&&(t[i]=t[i]||{},t[i].emphasis?be(t[i].emphasis,o[i]):t[i].emphasis=o[i],o[i]=null)}}function Qe(t,e,r){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var n=t[e].normal,i=t[e].emphasis;n&&(r?(t[e].normal=t[e].emphasis=null,le(t[e],n)):t[e]=n),i&&(t.emphasis=t.emphasis||{},t.emphasis[e]=i,i.focus&&(t.emphasis.focus=i.focus),i.blurScope&&(t.emphasis.blurScope=i.blurScope))}}function Ro(t){Qe(t,"itemStyle"),Qe(t,"lineStyle"),Qe(t,"areaStyle"),Qe(t,"label"),Qe(t,"labelLine"),Qe(t,"upperLabel"),Qe(t,"edgeLabel")}function Ne(t,e){var r=ko(t)&&t[e],n=ko(r)&&r.textStyle;if(n)for(var i=0,a=Sm.length;i<a;i++){var o=Sm[i];n.hasOwnProperty(o)&&(r[o]=n[o])}}function Vt(t){t&&(Ro(t),Ne(t,"label"),t.emphasis&&Ne(t.emphasis,"label"))}function Kk(t){if(ko(t)){Wv(t),Ro(t),Ne(t,"label"),Ne(t,"upperLabel"),Ne(t,"edgeLabel"),t.emphasis&&(Ne(t.emphasis,"label"),Ne(t.emphasis,"upperLabel"),Ne(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(Wv(e),Vt(e));var r=t.markLine;r&&(Wv(r),Vt(r));var n=t.markArea;n&&Vt(n);var i=t.data;if(t.type==="graph"){i=i||t.nodes;var a=t.links||t.edges;if(a&&!ft(a))for(var o=0;o<a.length;o++)Vt(a[o]);I(t.categories,function(u){Ro(u)})}if(i&&!ft(i))for(var o=0;o<i.length;o++)Vt(i[o]);if(e=t.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)Vt(s[o]);if(r=t.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)W(l[o])?(Vt(l[o][0]),Vt(l[o][1])):Vt(l[o]);t.type==="gauge"?(Ne(t,"axisLabel"),Ne(t,"title"),Ne(t,"detail")):t.type==="treemap"?(Qe(t.breadcrumb,"itemStyle"),I(t.levels,function(u){Ro(u)})):t.type==="tree"&&Ro(t.leaves)}}function Yr(t){return W(t)?t:t?[t]:[]}function I1(t){return(W(t)?t[0]:t)||{}}function jk(t,e){tr(Yr(t.series),function(n){ko(n)&&Kk(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),tr(r,function(n){tr(Yr(t[n]),function(i){i&&(Ne(i,"axisLabel"),Ne(i.axisPointer,"label"))})}),tr(Yr(t.parallel),function(n){var i=n&&n.parallelAxisDefault;Ne(i,"axisLabel"),Ne(i&&i.axisPointer,"label")}),tr(Yr(t.calendar),function(n){Qe(n,"itemStyle"),Ne(n,"dayLabel"),Ne(n,"monthLabel"),Ne(n,"yearLabel")}),tr(Yr(t.radar),function(n){Ne(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap)}),tr(Yr(t.geo),function(n){ko(n)&&(Vt(n),tr(Yr(n.regions),function(i){Vt(i)}))}),tr(Yr(t.timeline),function(n){Vt(n),Qe(n,"label"),Qe(n,"itemStyle"),Qe(n,"controlStyle",!0);var i=n.data;W(i)&&I(i,function(a){j(a)&&(Qe(a,"label"),Qe(a,"itemStyle"))})}),tr(Yr(t.toolbox),function(n){Qe(n,"iconStyle"),tr(n.feature,function(i){Qe(i,"iconStyle")})}),Ne(I1(t.axisPointer),"label"),Ne(I1(t.tooltip).axisPointer,"label")}function Qk(t,e){for(var r=e.split(","),n=t,i=0;i<r.length&&(n=n&&n[r[i]],n!=null);i++);return n}function Jk(t,e,r,n){for(var i=e.split(","),a=t,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];a[i[s]]==null&&(a[i[s]]=r)}function L1(t){t&&I(eR,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var eR=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],tR=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Yv=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Oo(t){var e=t&&t.itemStyle;if(e)for(var r=0;r<Yv.length;r++){var n=Yv[r][1],i=Yv[r][0];e[n]!=null&&(e[i]=e[n])}}function P1(t){t&&t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(t.edgeDistance=t.margin)}function E1(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function rR(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(t.emphasis.focus="adjacency"))}function k1(t,e){if(t)for(var r=0;r<t.length;r++)e(t[r]),t[r]&&k1(t[r].children,e)}function R1(t,e){jk(t,e),t.series=nt(t.series),I(t.series,function(r){if(j(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),P1(r.label);var i=r.data;if(i&&!ft(i))for(var a=0;a<i.length;a++)P1(i[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=Qk(r,"pointer.color");o!=null&&Jk(r,"itemStyle.color",o)}else if(n==="bar"){Oo(r),Oo(r.backgroundStyle),Oo(r.emphasis);var i=r.data;if(i&&!ft(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(Oo(i[a]),Oo(i[a]&&i[a].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),E1(r),k1(r.data,E1)}else n==="graph"||n==="sankey"?rR(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&le(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),L1(r)}}),t.dataRange&&(t.visualMap=t.dataRange),I(tR,function(r){var n=t[r];n&&(W(n)||(n=[n]),I(n,function(i){L1(i)}))})}var nR=Lc(iR);function iR(t){var e=te();t.eachSeries(function(r){var n=r.get("stack");if(n){var i=e.get(n)||e.set(n,[]),a=r.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.push(o)}}),e.each(function(r){if(r.length!==0){var n=r[0].seriesModel,i=n.get("stackOrder")||"seriesAsc";i==="seriesDesc"&&r.reverse(),I(r,function(a,o){a.data.setCalculationInfo("stackedOnSeries",o>0?r[o-1].seriesModel:null)}),aR(r)}})}function aR(t){I(t,function(e,r){var n=[],i=[NaN,NaN],a=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,f,c){var v=o.get(e.stackedDimension,c);if(isNaN(v))return i;var h,d;s?d=o.getRawIndex(c):h=o.get(e.stackedByDimension,c);for(var p=NaN,g=r-1;g>=0;g--){var m=t[g];if(s||(d=m.data.rawIndexOf(m.stackedByDimension,h)),d>=0){var y=m.data.getByRawIndex(m.stackResultDimension,d);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&v>=0&&y>0||l==="samesign"&&v<=0&&y<0){v=qA(v,y),p=y;break}}}return n[0]=v,n[1]=p,n})})}var bt=(function(){function t(){this.group=new Ce,this.uid=vo("viewComponent")}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,i){},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,i){},t.prototype.updateLayout=function(e,r,n,i){},t.prototype.updateVisual=function(e,r,n,i){},t.prototype.toggleBlurSeries=function(e,r,n){},t.prototype.eachRendered=function(e){var r=this.group;r&&r.traverse(e)},t})();pf(bt),gs(bt);var O1=Se(),N1={itemStyle:Ma(Oy,!0),lineStyle:Ma(Ry,!0)},oR={lineStyle:"stroke",itemStyle:"fill"};function B1(t,e){var r=t.visualStyleMapper||N1[e];return r||(console.warn("Unknown style type '"+e+"'."),N1.itemStyle)}function F1(t,e){var r=t.visualDrawType||oR[e];return r||(console.warn("Unknown style type '"+e+"'."),"fill")}var sR={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=t.getModel(n),a=B1(t,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=F1(t,n),u=o[l],f=ee(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var v=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[l]||(o[l]=v,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||ee(o.fill)?v:o.fill,o.stroke=o.stroke==="auto"||ee(o.stroke)?v:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!e.isSeriesFiltered(t)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,d){var p=t.getDataParams(d),g=z({},o);g[l]=f(p),h.setItemVisual(d,"style",g)}}}},No=new xe,lR={createOnAllSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=B1(t,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){No.option=l[n];var u=i(No),f=o.ensureUniqueItemVisual(s,"style");z(f,u),No.option.decal&&(o.setItemVisual(s,"decal",No.option.decal),No.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},uR={performRawSeries:!0,overallReset:function(t){var e=te();t.eachSeries(function(r){if(!r.isColorBySeries()){var n=r.type+"-"+r.getColorBy();O1(r).scope=e.get(n)||e.set(n,{})}}),t.eachSeries(function(r){if(!r.isColorBySeries()){var n=r.getRawData(),i={},a=r.getData(),o=O1(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=F1(r,s);a.each(function(u){var f=a.getRawIndex(u);i[f]=u}),n.each(function(u){var f=i[u],c=a.getItemVisual(f,"colorFromPalette");if(c){var v=a.ensureUniqueItemVisual(f,"style"),h=n.getName(u)||u+"",d=n.count();v[l]=r.getColorFromPalette(h,o,d)}})}})}},wu=Math.PI;function fR(t,e){e=e||{},le(e,{text:"loading",textColor:Y.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:Y.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new Ce,n=new De({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(n);var i=new Me({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new De({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});r.add(a);var o;return e.showSpinner&&(o=new cl({shape:{startAngle:-wu/2,endAngle:-wu/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:wu*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:wu*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(t.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),f=t.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},r.resize(),r}var z1=(function(){function t(e,r,n,i){this._stageTaskMap=te(),this.ecInstance=e,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(e,r){e.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},t.prototype.getPerformArgs=function(e,r){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,r){var n=this._pipelineMap.get(e.uid),i=e.__preparePipelineContext?e.__preparePipelineContext(r,n):Mm(e,r,n);e.pipelineContext=n.context=i},t.prototype.restorePipelines=function(e,r){var n=this,i=n._pipelineMap=te();r.eachSeries(function(a){var o=e.painter.type==="canvas"&&a.getProgressive(),s=a.uid;i.set(s,{id:s,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:o&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),n._pipe(a,a.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,r=this.api.getModel(),n=this.api;I(this._allHandlers,function(i){var a=e.get(i.uid)||e.set(i.uid,{}),o="";Wt(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},t.prototype.prepareView=function(e,r,n,i){var a=e.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!e.incrementalPrepareRender,this._pipe(r,a)},t.prototype.performDataProcessorTasks=function(e,r){this._performStageTasks(this._dataProcessorHandlers,e,r,{block:!0})},t.prototype.performVisualTasks=function(e,r,n){this._performStageTasks(this._visualHandlers,e,r,n)},t.prototype._performStageTasks=function(e,r,n,i){i=i||{};var a=!1,o=this;I(e,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,v=f.overallTask;if(v){var h,d=v.agentStubMap;d.each(function(g){s(i,g)&&(g.dirty(),h=!0)}),h&&v.dirty(),o.updatePayload(v,n);var p=o.getPerformArgs(v,i.block);d.each(function(g){g.perform(p)}),v.perform(p)&&(a=!0)}else c&&c.each(function(g,m){s(i,g)&&g.dirty();var y=o.getPerformArgs(g,i.block);y.skip=!l.performRawSeries&&r.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(y)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},t.prototype.performSeriesTasks=function(e){var r;e.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var r=e.tail;do{if(r.__block){e.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},t.prototype.updatePayload=function(e,r){r!=="remain"&&(e.context.payload=r)},t.prototype._createSeriesStageTask=function(e,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=te(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,i).each(f);function f(c){var v=c.uid,h=s.set(v,o&&o.get(v)||bo({plan:pR,reset:gR,count:yR}));h.context={model:c,ecModel:n,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:a},a._pipe(c,h)}},t.prototype._createOverallStageTask=function(e,r,n,i){var a=this,o=r.overallTask=r.overallTask||bo({reset:cR});o.context={ecModel:n,api:i,overallReset:e.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=te(),u=e.seriesType,f=e.getTargetSeries,c=e.dirtyOnOverallProgress,v=!1,h="";Wt(!e.createOnAllSeries,h),u?n.eachRawSeriesByType(u,d):f?f(n,i).each(d):I(n.getSeries(),d);function d(p){var g=p.uid,m=l.set(g,s&&s.get(g)||(v=!0,bo({reset:hR,onDirty:dR})));m.context={model:p,dirtyOnOverallProgress:c},m.agent=o,m.__block=c,a._pipe(p,m)}v&&o.dirty()},t.prototype._pipe=function(e,r){var n=e.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=r),i.tail&&i.tail.pipe(r),i.tail=r,r.__idxInPipeline=i.count++,r.__pipeline=i},t.wrapStageHandler=function(e,r){return ee(e)&&(e={overallReset:e,seriesType:_R(e)}),e.uid=vo("stageHandler"),r&&(e.visualType=r),e},t})();function cR(t){t.overallReset(t.ecModel,t.api,t.payload)}function hR(t){return t.dirtyOnOverallProgress&&vR}function vR(){this.agent.dirty(),this.getDownstream().dirty()}function dR(){this.agent&&this.agent.dirty()}function pR(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function gR(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=nt(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?$(e,function(r,n){return V1(n)}):mR}var mR=V1(0);function V1(t){return function(e,r){var n=r.data,i=r.resetDefines[t];if(i&&i.dataEach)for(var a=e.start;a<e.end;a++)i.dataEach(n,a);else i&&i.progress&&i.progress(e,n)}}function yR(t){return t.data.count()}function _R(t){Tu=null;try{t(Bo,G1)}catch{}return Tu}var Bo={},G1={},Tu;H1(Bo,Uv),H1(G1,Em),Bo.eachSeriesByType=Bo.eachRawSeriesByType=function(t){Tu=t},Bo.eachComponent=function(t){t.mainType==="series"&&t.subType&&(Tu=t.subType)};function H1(t,e){for(var r in e.prototype)t[r]=We}var U=Y.darkColor,U1=U.background,Fo=function(){return{axisLine:{lineStyle:{color:U.axisLine}},splitLine:{lineStyle:{color:U.axisSplitLine}},splitArea:{areaStyle:{color:[U.backgroundTint,U.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:U.axisMinorSplitLine}},axisLabel:{color:U.axisLabel},axisName:{}}},W1={label:{color:U.secondary},itemStyle:{borderColor:U.borderTint},dividerLineStyle:{color:U.border}},Y1={darkMode:!0,color:U.theme,backgroundColor:U1,axisPointer:{lineStyle:{color:U.border},crossStyle:{color:U.borderShade},label:{color:U.tertiary}},legend:{textStyle:{color:U.secondary},pageTextStyle:{color:U.tertiary}},textStyle:{color:U.secondary},title:{textStyle:{color:U.primary},subtextStyle:{color:U.quaternary}},toolbox:{iconStyle:{borderColor:U.accent50},feature:{dataView:{backgroundColor:U1,textColor:U.primary,textareaColor:U.background,textareaBorderColor:U.border,buttonColor:U.accent50,buttonTextColor:U.neutral00}}},tooltip:{backgroundColor:U.neutral20,defaultBorderColor:U.border,textStyle:{color:U.tertiary}},dataZoom:{borderColor:U.accent10,textStyle:{color:U.tertiary},brushStyle:{color:U.backgroundTint},handleStyle:{color:U.neutral00,borderColor:U.accent20},moveHandleStyle:{color:U.accent40},emphasis:{handleStyle:{borderColor:U.accent50}},dataBackground:{lineStyle:{color:U.accent30},areaStyle:{color:U.accent20}},selectedDataBackground:{lineStyle:{color:U.accent50},areaStyle:{color:U.accent30}}},visualMap:{textStyle:{color:U.secondary},handleStyle:{borderColor:U.neutral30}},timeline:{lineStyle:{color:U.accent10},label:{color:U.tertiary},controlStyle:{color:U.accent30,borderColor:U.accent30}},calendar:{itemStyle:{color:U.neutral00,borderColor:U.neutral20},dayLabel:{color:U.tertiary},monthLabel:{color:U.secondary},yearLabel:{color:U.secondary}},matrix:{x:W1,y:W1,backgroundColor:{borderColor:U.axisLine},body:{itemStyle:{borderColor:U.borderTint}}},timeAxis:Fo(),logAxis:Fo(),valueAxis:Fo(),categoryAxis:Fo(),line:{symbol:"circle"},graph:{color:U.theme},gauge:{title:{color:U.secondary},axisLine:{lineStyle:{color:[[1,U.neutral05]]}},axisLabel:{color:U.axisLabel},detail:{color:U.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:U.background}},radar:(function(){var t=Fo();return t.axisName={color:U.axisLabel},t.axisLine.lineStyle.color=U.neutral20,t})(),treemap:{breadcrumb:{itemStyle:{color:U.neutral20,textStyle:{color:U.secondary}},emphasis:{itemStyle:{color:U.neutral30}}}},sunburst:{itemStyle:{borderColor:U.background}},map:{itemStyle:{borderColor:U.border,areaColor:U.neutral10},label:{color:U.tertiary},emphasis:{label:{color:U.primary},itemStyle:{areaColor:U.highlight}},select:{label:{color:U.primary},itemStyle:{areaColor:U.highlight}}},geo:{itemStyle:{borderColor:U.border,areaColor:U.neutral10},emphasis:{label:{color:U.primary},itemStyle:{areaColor:U.highlight}},select:{label:{color:U.primary},itemStyle:{color:U.highlight}}}};Y1.categoryAxis.splitLine.show=!1;var SR=(function(){function t(){}return t.prototype.normalizeQuery=function(e){var r={},n={},i={};if(q(e)){var a=vr(e);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};I(e,function(l,u){for(var f=!1,c=0;c<o.length;c++){var v=o[c],h=u.lastIndexOf(v);if(h>0&&h===u.length-v.length){var d=u.slice(0,h);d!=="data"&&(r.mainType=d,r[v.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(i[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},t.prototype.filter=function(e,r){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,r.otherQuery,i,a));function f(c,v,h,d){return c[h]==null||v[d||h]===c[h]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t})(),$v=["symbol","symbolSize","symbolRotate","symbolOffset"],$1=$v.concat(["symbolKeepAspect"]),bR={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData();if(t.legendIcon&&r.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o<$v.length;o++){var s=$v[o],l=t.get(s);ee(l)?(a=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||t.defaultSymbol,r.setVisual(z({legendIcon:t.legendIcon||n.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},n)),e.isSeriesFiltered(t))return;var u=ce(i);function f(c,v){for(var h=t.getRawValue(v),d=t.getDataParams(v),p=0;p<u.length;p++){var g=u[p];c.setItemVisual(v,g,i[g](h,d))}}return{dataEach:a?f:null}}},wR={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.hasSymbolVisual||e.isSeriesFiltered(t))return;var r=t.getData();function n(i,a){for(var o=i.getItemModel(a),s=0;s<$1.length;s++){var l=$1[s],u=o.getShallow(l,!0);u!=null&&i.setItemVisual(a,l,u)}}return{dataEach:r.hasItemOption?n:null}}};function TR(t,e,r){switch(r){case"color":var n=t.getItemVisual(e,"style");return n[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,r)}}function xR(t,e){switch(e){case"color":var r=t.getVisual("style");return r[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function zo(t,e,r){for(var n;t&&!(e(t)&&(n=t,r));)t=t.__hostTarget||t.parent;return n}var Gt=new kr,X1={};function CR(t,e){X1[t]=e}function AR(t){return X1[t]}var DR=Math.round(Math.random()*9),MR=typeof Object.defineProperty=="function",IR=(function(){function t(){this._id="__ec_inner_"+DR++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,r){var n=this._guard(e);return MR?Object.defineProperty(n,this._id,{value:r,enumerable:!1,configurable:!0}):n[this._id]=r,this},t.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},t.prototype.has=function(e){return!!this._guard(e)[this._id]},t.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},t})();function li(t){return isFinite(t)}function LR(t,e,r){var n=e.x==null?0:e.x,i=e.x2==null?1:e.x2,a=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(n=n*r.width+r.x,i=i*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),n=li(n)?n:0,i=li(i)?i:1,a=li(a)?a:0,o=li(o)?o:0;var s=t.createLinearGradient(n,a,i,o);return s}function PR(t,e,r){var n=r.width,i=r.height,a=Math.min(n,i),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,l=e.r==null?.5:e.r;e.global||(o=o*n+r.x,s=s*i+r.y,l=l*a),o=li(o)?o:.5,s=li(s)?s:.5,l=l>=0&&li(l)?l:.5;var u=t.createRadialGradient(o,s,0,o,s,l);return u}function q1(t,e,r){for(var n=e.type==="radial"?PR(t,e,r):LR(t,e,r),i=e.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function ER(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!0;return!1}function xu(t){return parseInt(t,10)}function Z1(t,e,r){var n=["width","height"][e],i=["clientWidth","clientHeight"][e],a=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(t);return(t[i]||xu(s[n])||xu(t.style[n]))-(xu(s[a])||0)-(xu(s[o])||0)||0}function kR(t,e){return!t||t==="solid"||!(e>0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:me(t)?[t]:W(t)?t:null}function Xv(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&kR(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(r){var i=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;i&&i!==1&&(r=$(r,function(a){return a/i}),n/=i)}return[r,n]}var RR=new tn(!0);function Cu(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function K1(t){return typeof t=="string"&&t!=="none"}function Au(t){var e=t.fill;return e!=null&&e!=="none"}function j1(t,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=r}else t.fill()}function Q1(t,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=r}else t.stroke()}function J1(t,e,r){var n=mf(e.image,e.__image,r);if(ms(n)){var i=t.createPattern(n,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*ps),a.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(a)}return i}}function OR(t,e,r,n,i){var a,o=Cu(r),s=Au(r),l=r.strokePercent,u=l<1,f=!e.path;(!e.silent||u)&&f&&e.createPathProxy();var c=e.path||RR,v=e.__dirty;if(!n){var h=r.fill,d=r.stroke,p=s&&!!h.colorStops,g=o&&!!d.colorStops,m=s&&!!h.image,y=o&&!!d.image,_=void 0,S=void 0,b=void 0,w=void 0,T=void 0;(p||g)&&(T=e.getBoundingRect()),p&&(_=v?q1(t,h,T):e.__canvasFillGradient,e.__canvasFillGradient=_),g&&(S=v?q1(t,d,T):e.__canvasStrokeGradient,e.__canvasStrokeGradient=S),m&&(b=v||!e.__canvasFillPattern?J1(t,h,e):e.__canvasFillPattern,e.__canvasFillPattern=b),y&&(w=v||!e.__canvasStrokePattern?J1(t,d,e):e.__canvasStrokePattern,e.__canvasStrokePattern=w),p?t.fillStyle=_:m&&(b?t.fillStyle=b:s=!1),g?t.strokeStyle=S:y&&(w?t.strokeStyle=w:o=!1)}var C=e.getGlobalScale();c.setScale(C[0],C[1],e.segmentIgnoreThreshold);var D,x;t.setLineDash&&r.lineDash&&(a=Xv(e),D=a[0],x=a[1]);var A=!0;(f||v&Pi)&&(c.setDPR(t.dpr),u?c.setContext(null):(c.setContext(t),A=!1),c.reset(),e.buildPath(c,e.shape,n),c.toStatic(),e.pathUpdated()),A&&c.rebuildPath(t,u?l:1),D&&(t.setLineDash(D),t.lineDashOffset=x),n?(i.batchFill=s,i.batchStroke=o):r.strokeFirst?(o&&Q1(t,r),s&&j1(t,r)):(s&&j1(t,r),o&&Q1(t,r)),D&&t.setLineDash([])}function NR(t,e,r){var n=e.__image=mf(r.image,e.__image,e,e.onload);if(!(!n||!ms(n))){var i=r.x||0,a=r.y||0,o=e.getWidth(),s=e.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,f=r.sy||0;t.drawImage(n,u,f,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,f=r.sy,c=o-u,v=s-f;t.drawImage(n,u,f,c,v,i,a,o,s)}else t.drawImage(n,i,a,o,s)}}function BR(t,e,r){var n,i=r.text;if(i!=null&&(i+=""),i){t.font=r.font||Pr,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var a=void 0,o=void 0;t.setLineDash&&r.lineDash&&(n=Xv(e),a=n[0],o=n[1]),a&&(t.setLineDash(a),t.lineDashOffset=o),r.strokeFirst?(Cu(r)&&t.strokeText(i,r.x,r.y),Au(r)&&t.fillText(i,r.x,r.y)):(Au(r)&&t.fillText(i,r.x,r.y),Cu(r)&&t.strokeText(i,r.x,r.y)),a&&t.setLineDash([])}}var eb=["shadowBlur","shadowOffsetX","shadowOffsetY"],tb=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function rb(t,e,r,n,i){var a=!1;if(!n&&(r=r||{},e===r))return!1;if(n||e.opacity!==r.opacity){lt(t,i),a=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?kn.opacity:o}(n||e.blend!==r.blend)&&(a||(lt(t,i),a=!0),t.globalCompositeOperation=e.blend||kn.blend);for(var s=0;s<eb.length;s++){var l=eb[s];(n||e[l]!==r[l])&&(a||(lt(t,i),a=!0),t[l]=t.dpr*(e[l]||0))}return(n||e.shadowColor!==r.shadowColor)&&(a||(lt(t,i),a=!0),t.shadowColor=e.shadowColor||kn.shadowColor),a}function nb(t,e,r,n,i){var a=e.style,o=n?null:r&&r.style||{};if(a===o)return!1;var s=rb(t,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(lt(t,i),s=!0),K1(a.fill)&&(t.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(lt(t,i),s=!0),K1(a.stroke)&&(t.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(lt(t,i),s=!0),t.globalAlpha=a.opacity==null?1:a.opacity),e.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(lt(t,i),s=!0),t.lineWidth=u)}for(var f=0;f<tb.length;f++){var c=tb[f],v=c[0];(n||a[v]!==o[v])&&(s||(lt(t,i),s=!0),t[v]=a[v]||c[1])}return s}function FR(t,e,r,n,i){return rb(t,e.style,r&&r.style,n,i)}function ib(t,e){var r=e.transform,n=t.dpr||1;r?t.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):t.setTransform(n,0,0,n,0,0)}function zR(t,e,r){for(var n=!1,i=0;i<t.length;i++){var a=t[i];n=n||a.isZeroArea(),ib(e,a),e.beginPath(),a.buildPath(e,a.shape),e.clip()}r.allClipped=n}function VR(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||t[4]!==e[4]||t[5]!==e[5]:!(!t&&!e)}var ab=1,ob=2,sb=3,lb=4;function GR(t){var e=Au(t),r=Cu(t);return!(t.lineDash||!(+e^+r)||e&&typeof t.fill!="string"||r&&typeof t.stroke!="string"||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function lt(t,e){e.batchFill&&(e.batchFill=!1,t.fill()),e.batchStroke&&(e.batchStroke=!1,t.stroke())}function HR(t,e){var r={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};qv(t,e,r),Zv(t,r)}function qv(t,e,r){var n=e.transform;if(!e.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){e.__dirty&=~$t,e.__isRendered=!1;return}var i=e.__clipPaths,a=r.prevElClipPaths,o=e.style,s=!1,l=!1;if((!a||ER(i,a))&&(a&&(lt(t,r),t.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),i&&i.length&&(lt(t,r),t.save(),zR(i,t,r),s=!0,r.prevElClipPaths=i)),r.allClipped){e.__dirty&=~$t,e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(r.beforeBrushParam),e.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var f=e instanceof pe&&e.autoBatch&&GR(o);s||VR(n,u.transform)?(lt(t,r),ib(t,e)):f||lt(t,r),e instanceof pe?(r.lastDrawType!==ab&&(l=!0,r.lastDrawType=ab),nb(t,e,u,l,r),(!f||!r.batchFill&&!r.batchStroke)&&t.beginPath(),OR(t,e,o,f,r)):e instanceof $a?(r.lastDrawType!==sb&&(l=!0,r.lastDrawType=sb),nb(t,e,u,l,r),BR(t,e,o)):e instanceof Mt?(r.lastDrawType!==ob&&(l=!0,r.lastDrawType=ob),FR(t,e,u,l,r),NR(t,e,o)):e.getTemporalDisplayables&&(r.lastDrawType!==lb&&(l=!0,r.lastDrawType=lb),UR(t,e,r)),e.innerAfterBrush(),e.afterBrush&&(f&<(t,r),e.afterBrush()),r.prevEl=e,e.__dirty=0,e.__isRendered=!0}function Zv(t,e){lt(t,e),e.prevElClipPaths&&t.restore()}function UR(t,e,r){var n=e.getDisplayables(),i=e.getTemporalDisplayables();t.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover,beforeBrushParam:{}},o,s;for(o=e.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(r.beforeBrushParam),l.innerBeforeBrush(),qv(t,l,a),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}Zv(t,a);for(var u=0,f=i.length;u<f;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(r.beforeBrushParam),l.innerBeforeBrush(),qv(t,l,a),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}Zv(t,a),e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var Kv=new IR,ub=new bi(100),fb=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function jv(t,e){if(t==="none")return null;var r=e.getDevicePixelRatio(),n=e.getZr(),i=n.painter.type==="svg";t.dirty&&Kv.delete(t);var a=Kv.get(t);if(a)return a;var o=le(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/r,Kv.set(t,s),t.dirty=!1,s;function l(u){for(var f=[r],c=!0,v=0;v<fb.length;++v){var h=o[fb[v]];if(h!=null&&!W(h)&&!q(h)&&!me(h)&&typeof h!="boolean"){c=!1;break}f.push(h)}var d;if(c){d=f.join(",")+(i?"-svg":"");var p=ub.get(d);p&&(i?u.svgElement=p:u.image=p)}var g=hb(o.dashArrayX),m=WR(o.dashArrayY),y=cb(o.symbol),_=YR(g),S=vb(m),b=!i&&cr.createCanvas(),w=i&&{tag:"g",attrs:{},key:"dcl",children:[]},T=D(),C;b&&(b.width=T.width*r,b.height=T.height*r,C=b.getContext("2d")),x(),c&&ub.put(d,b||w),u.image=b,u.svgElement=w,u.svgWidth=T.width,u.svgHeight=T.height;function D(){for(var A=1,L=0,M=_.length;L<M;++L)A=gm(A,_[L]);for(var P=1,L=0,M=y.length;L<M;++L)P=gm(P,y[L].length);A*=P;var E=S*_.length*y.length;return{width:Math.max(1,Math.min(A,o.maxTileWidth)),height:Math.max(1,Math.min(E,o.maxTileHeight))}}function x(){C&&(C.clearRect(0,0,b.width,b.height),o.backgroundColor&&(C.fillStyle=o.backgroundColor,C.fillRect(0,0,b.width,b.height)));for(var A=0,L=0;L<m.length;++L)A+=m[L];if(A<=0)return;for(var M=-S,P=0,E=0,k=0;M<T.height;){if(P%2===0){for(var O=E/2%y.length,R=0,N=0,F=0;R<T.width*2;){for(var B=0,L=0;L<g[k].length;++L)B+=g[k][L];if(B<=0)break;if(N%2===0){var G=(1-o.symbolSize)*.5,X=R+g[k][N]*G,H=M+m[P]*G,K=g[k][N]*o.symbolSize,ae=m[P]*o.symbolSize,ke=F/2%y[O].length;Ae(X,H,K,ae,y[O][ke])}R+=g[k][N],++F,++N,N===g[k].length&&(N=0)}++k,k===g.length&&(k=0)}M+=m[P],++E,++P,P===m.length&&(P=0)}function Ae(he,Te,J,se,pt){var Re=i?1:r,ir=Ar(pt,he*Re,Te*Re,J*Re,se*Re,o.color,o.symbolKeepAspect);if(i){var gt=n.painter.renderOneToVNode(ir);gt&&w.children.push(gt)}else HR(C,ir)}}}}function cb(t){if(!t||t.length===0)return[["rect"]];if(q(t))return[[t]];for(var e=!0,r=0;r<t.length;++r)if(!q(t[r])){e=!1;break}if(e)return cb([t]);for(var n=[],r=0;r<t.length;++r)q(t[r])?n.push([t[r]]):n.push(t[r]);return n}function hb(t){if(!t||t.length===0)return[[0,0]];if(me(t)){var e=Math.ceil(t);return[[e,e]]}for(var r=!0,n=0;n<t.length;++n)if(!me(t[n])){r=!1;break}if(r)return hb([t]);for(var i=[],n=0;n<t.length;++n)if(me(t[n])){var e=Math.ceil(t[n]);i.push([e,e])}else{var e=$(t[n],function(s){return Math.ceil(s)});e.length%2===1?i.push(e.concat(e)):i.push(e)}return i}function WR(t){if(!t||typeof t=="object"&&t.length===0)return[0,0];if(me(t)){var e=Math.ceil(t);return[e,e]}var r=$(t,function(n){return Math.ceil(n)});return t.length%2?r.concat(r):r}function YR(t){return $(t,function(e){return vb(e)})}function vb(t){for(var e=0,r=0;r<t.length;++r)e+=t[r];return t.length%2===1?e*2:e}var $R=Lc(XR);function XR(t,e){t.eachRawSeries(function(r){if(!t.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=jv(s,e)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=jv(i,e)}}})}var qR=1,ZR=800,KR=900,jR=920,QR=1e3,JR=2e3,db=5e3,pb=1e3,eO=1100,Qv=2e3,gb=3e3,tO=4e3,Du=4500,rO=4600,nO=5e3,iO=6e3,mb=7e3,aO={PROCESSOR:{SERIES_FILTER:ZR,AXIS_STATISTICS:jR,FILTER:QR,STATISTIC:db,STATISTICS:db},VISUAL:{LAYOUT:pb,PROGRESSIVE_LAYOUT:eO,GLOBAL:Qv,CHART:gb,POST_CHART_LAYOUT:rO,COMPONENT:tO,BRUSH:nO,CHART_ITEM:Du,ARIA:iO,DECAL:mb}},Fe="__flagInMainProcess",Mu="__mainProcessVersion",He="__pendingUpdate",Jv="__needsUpdateStatus",yb=/^[a-zA-Z0-9_]+$/,ed="__connectUpdateStatus",_b=0,oO=1,sO=2;function Sb(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(this.isDisposed()){this.id;return}return wb(this,t,e)}}function bb(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return wb(this,t,e)}}function wb(t,e,r){return r[0]=r[0]&&r[0].toLowerCase(),kr.prototype[e].apply(t,r)}var Tb=(function(t){V(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(kr),xb=Tb.prototype;xb.on=bb("on"),xb.off=bb("off");var ui,td,Iu,$r,Lu,rd,nd,ca,ha,Cb,Ab,id,Db,Pu,Mb,Ib,Ht,Lb,va,Pb=(function(t){V(e,t);function e(r,n,i){var a=t.call(this,new SR)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},a.__v_skip=!0,a._dom=r;var o="canvas",s="auto",l=!1;a[Mu]=1,i.ssr&&Bk(function(v){var h=ue(v),d=h.dataIndex;if(d!=null){var p=te();return p.set("series_index",h.seriesIndex),p.set("data_index",d),h.ssrType&&p.set("ssr_type",h.ssrType),p}});var u=a._zr=_1(r,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:Z(i.useDirtyRect,l),useCoarsePointer:Z(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=_v(de(u.flush,u),17),a._updateTheme(n),a._locale=XI(i.locale||S0),a._coordSysMgr=new wh;var f=a._api=Mb(a);function c(v,h){return v.__prio-h.__prio}return yu(ku,c),yu(ld,c),a._scheduler=new z1(a,f,ld,ku),a._messageCenter=new Tb,a._initEvents(),a.resize=de(a.resize,a),u.animation.on("frame",a._onframe,a),Cb(u,a),Ab(u,a),vs(a),a}return e.prototype._onframe=function(){if(!this._disposed){var r=this._scheduler,n=this._model,i=this._api;if(Lb(this),this[He]){var a=this[He].silent;this[Fe]=!0,va(this);try{ui(this),$r.update.call(this,null,this[He].updateParams)}catch(l){throw this[Fe]=!1,this[He]=null,l}this._zr.flush(),this[Fe]=!1,this[He]=null,ca.call(this,a),ha.call(this,a)}else if(r.unfinished){var o=qR;do{r.unfinished=!1;var s=cr.getTime();r.performSeriesTasks(n),r.performDataProcessorTasks(n),rd(this,n),r.performVisualTasks(n),Pu(this,this._model,i,"remain",{}),o-=cr.getTime()-s}while(o>0&&r.unfinished);r.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(r,n,i){if(!this[Fe]){if(this._disposed){this.id;return}var a,o,s;if(j(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Fe]=!0,va(this),!this._model||n){var l=new Yk(this._api),u=this._theme,f=this._model=new Uv;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},ud);var c={seriesTransition:s,optionChanged:!0};if(i)this[He]={silent:a,updateParams:c},this[Fe]=!1,this.getZr().wakeUp();else{try{ui(this),$r.update.call(this,null,c)}catch(v){throw this[He]=null,this[Fe]=!1,v}this._ssr||this._zr.flush(),this[He]=null,this[Fe]=!1,ca.call(this,a),ha.call(this,a)}}},e.prototype.setTheme=function(r,n){if(!this[Fe]){if(this._disposed){this.id;return}var i=this._model;if(i){var a=n&&n.silent,o=null;this[He]&&(a==null&&(a=this[He].silent),o=this[He].updateParams,this[He]=null),this[Fe]=!0,va(this);try{this._updateTheme(r),i.setTheme(this._theme),ui(this),$r.update.call(this,{type:"setTheme"},o)}catch(s){throw this[Fe]=!1,s}this[Fe]=!1,ca.call(this,a),ha.call(this,a)}}},e.prototype._updateTheme=function(r){q(r)&&(r=Eb[r]),r&&(r=oe(r),r&&R1(r,!0),this._theme=r)},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||ie.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},e.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},e.prototype.getSvgDataURL=function(){var r=this._zr,n=r.storage.getDisplayList();return I(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()},e.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;I(n,function(l){i.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return I(a,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(kb[i]){var l=s,u=s,f=-s,c=-s,v=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();I(Vo,function(_,S){if(_.group===i){var b=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(oe(r)),w=_.getDom().getBoundingClientRect();l=a(w.left,l),u=a(w.top,u),f=o(w.right,f),c=o(w.bottom,c),v.push({dom:b,left:w.left,top:w.top})}}),l*=h,u*=h,f*=h,c*=h;var d=f-l,p=c-u,g=cr.createCanvas(),m=_1(g,{renderer:n?"svg":"canvas"});if(m.resize({width:d,height:p}),n){var y="";return I(v,function(_){var S=_.left-l,b=_.top-u;y+='<g transform="translate('+S+","+b+')">'+_.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&m.painter.setBackgroundColor(r.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return r.connectedBackgroundColor&&m.add(new De({shape:{x:0,y:0,width:d,height:p},style:{fill:r.connectedBackgroundColor}})),I(v,function(_){var S=new Mt({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});m.add(S)}),m.refreshImmediately(),g.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},e.prototype.convertToPixel=function(r,n,i){return Lu(this,"convertToPixel",r,n,i)},e.prototype.convertToLayout=function(r,n,i){return Lu(this,"convertToLayout",r,n,i)},e.prototype.convertFromPixel=function(r,n,i){return Lu(this,"convertFromPixel",r,n,i)},e.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=Cc(i,r);return I(o,function(s,l){l.indexOf("Models")>=0&&I(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(a=a||c.containPoint(n,u))}},this)},this),!!a},e.prototype.getVisual=function(r,n){var i=this._model,a=Cc(i,r,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?TR(s,l,n):xR(s,n)},e.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},e.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},e.prototype._initEvents=function(){var r=this;I(lO,function(i){var a=function(o){var s=r.getModel(),l=o.target,u,f=i==="globalout";if(f?u={}:l&&zo(l,function(p){var g=ue(p);if(g&&g.dataIndex!=null){var m=g.dataModel||s.getSeriesByIndex(g.seriesIndex);return u=m&&m.getDataParams(g.dataIndex,g.dataType,l)||{},!0}else if(g.eventData)return u=z({},g.eventData),!0},!0),u){var c=u.componentType,v=u.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",v=u.seriesIndex);var h=c&&v!=null&&s.getComponent(c,v),d=h&&r[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];u.event=o,u.type=i,r._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:h,view:d},r.trigger(i,u)}};a.zrEventfulCallAtLast=!0,r._zr.on(i,a,r)});var n=this._messageCenter;I(sd,function(i,a){n.on(a,function(o){r.trigger(a,o)})}),$E(n,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&wm(this.getDom(),cd,"");var n=this,i=n._api,a=n._model;I(n._componentsViews,function(o){o.dispose(a,i)}),I(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Vo[n.id]},e.prototype.resize=function(r){if(!this[Fe]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=r&&r.silent;this[He]&&(a==null&&(a=this[He].silent),i=!0,this[He]=null),this[Fe]=!0,va(this);try{i&&ui(this),$r.update.call(this,{type:"resize",animation:z({duration:0},r&&r.animation)})}catch(o){throw this[Fe]=!1,o}this[Fe]=!1,ca.call(this,a),ha.call(this,a)}}},e.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(j(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!fd[r]){var i=fd[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(r){var n=z({},r);return n.type=od[r.type],n},e.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(j(n)||(n={silent:!!n}),!!Eu[r.type]&&this._model){if(this[Fe]){this._pendingActions.push(r);return}var i=n.silent;nd.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&ie.browser.weChat&&this._throttledZrFlush(),ca.call(this,i),ha.call(this,i)}},e.prototype.updateLabelLayout=function(){Gt.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=(function(){ui=function(c){d2(c._model);var v=c._scheduler;v.restorePipelines(c._zr,c._model),v.prepareStageTasks(),td(c,!0),td(c,!1),v.plan()},td=function(c,v){for(var h=c._model,d=c._scheduler,p=v?c._componentsViews:c._chartsViews,g=v?c._componentsMap:c._chartsMap,m=c._zr,y=c._api,_=0;_<p.length;_++)p[_].__alive=!1;v?h.eachComponent(function(w,T){w!=="series"&&S(T)}):h.eachSeries(S);function S(w){var T=w.__requireNewView;w.__requireNewView=!1;var C="_ec_"+w.id+"_"+w.type,D=!T&&g[C];if(!D){var x=vr(w.type),A=v?bt.getClass(x.main,x.sub):je.getClass(x.sub);D=new A,D.init(h,y),g[C]=D,p.push(D),m.add(D.group)}w.__viewId=D.__id=C,D.__alive=!0,D.__model=w,D.group.__ecComponentInfo={mainType:w.mainType,index:w.componentIndex},!v&&d.prepareView(D,w,h,y)}for(var _=0;_<p.length;){var b=p[_];b.__alive?_++:(!v&&b.renderTask.dispose(),m.remove(b.group),b.dispose(h,y),p.splice(_,1),g[b.__id]===b&&delete g[b.__id],b.__id=b.group.__ecComponentInfo=null)}},Iu=function(c,v,h,d,p){var g=c._model;if(g.setUpdatePayload(h),!d){I([].concat(c._componentsViews).concat(c._chartsViews),S);return}var m=hD(h,d,p),y=h.excludeSeriesId,_;y!=null&&(_=te(),I(nt(y),function(b){var w=wr(b,null);w!=null&&_.set(w,!0)})),g&&g.eachComponent(m,function(b){var w=_&&_.get(b.id)!=null;if(!w)if(jm(h))if(b instanceof ot)h.type===$n&&!h.notBlur&&!b.get(["emphasis","disabled"])&&kD(b,h,c._api);else{var T=Vc(b.mainType,b.componentIndex,h.name,c._api),C=T.focusSelf,D=T.dispatchers;h.type===$n&&C&&!h.notBlur&&zc(b.mainType,b.componentIndex,c._api),D&&I(D,function(x){h.type===$n?al(x):ol(x)})}else Uc(h)&&b instanceof ot&&(ND(b,h,c._api),qm(b),Ht(c))},c),g&&g.eachComponent(m,function(b){var w=_&&_.get(b.id)!=null;w||S(c[d==="series"?"_chartsMap":"_componentsMap"][b.__viewId])},c);function S(b){b&&b.__alive&&b[v]&&b[v](b.__model,g,c._api,h)}},$r={prepareAndUpdate:function(c){ui(this),$r.update.call(this,c,c&&{optionChanged:c.newOption!=null})},update:function(c,v){var h=this._model,d=this._api,p=this._zr,g=this._coordSysMgr,m=this._scheduler;if(h){p2(h),h.setUpdatePayload(c),m.restoreData(h,c),m.performSeriesTasks(h),g.create(h,d),Gt.trigger("coordsys:aftercreate",h,d),m.performDataProcessorTasks(h,c),rd(this,h),g.update(h,d),n(h),m.performVisualTasks(h,c);var y=h.get("backgroundColor")||"transparent";p.setBackgroundColor(y);var _=h.get("darkMode");_!=null&&_!=="auto"&&p.setDarkMode(_),id(this,h,d,c,v),Gt.trigger("afterupdate",h,d)}},updateTransform:function(c){var v=this,h=v._model,d=v._api;if(h){h.setUpdatePayload(c);var p=[];h.eachComponent(function(m,y){if(m!==Im){var _=v.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(y,h,d,c);S&&S.update&&p.push(_)}else p.push(_)}});var g=te();h.eachSeries(function(m){var y=v._chartsMap[m.__viewId],_=m.pipelineContext;if(y.updateTransform&&!_.progressiveRender){var S=y.updateTransform(m,h,d,c);S&&S.update&&g.set(m.uid,1)}else g.set(m.uid,1)}),v._scheduler.performVisualTasks(h,c,{setDirty:!0,dirtyMap:g}),Pu(v,h,d,c,{},g),Gt.trigger("afterupdate",h,d)}},updateView:function(c){var v=this._model;v&&(v.setUpdatePayload(c),je.markUpdateMethod(c,"updateView"),n(v),this._scheduler.performVisualTasks(v,c,{setDirty:!0}),id(this,v,this._api,c,{}),Gt.trigger("afterupdate",v,this._api))},updateVisual:function(c){var v=this,h=this._model;h&&(h.setUpdatePayload(c),h.eachSeries(function(d){d.getData().clearAllVisual()}),je.markUpdateMethod(c,"updateVisual"),n(h),this._scheduler.performVisualTasks(h,c,{visualType:"visual",setDirty:!0}),h.eachComponent(function(d,p){if(d!=="series"){var g=v.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,h,v._api,c)}}),h.eachSeries(function(d){var p=v._chartsMap[d.__viewId];p.updateVisual(d,h,v._api,c)}),Gt.trigger("afterupdate",h,this._api))},updateLayout:function(c){$r.update.call(this,c)}};function r(c,v,h,d,p){if(c._disposed){c.id;return}for(var g=c._model,m=c._coordSysMgr.getCoordinateSystems(),y,_=Cc(g,h),S=0;S<m.length;S++){var b=m[S];if(b[v]&&(y=b[v](g,_,d,p))!=null)return y}}Lu=r,rd=function(c,v){var h=c._chartsMap,d=c._scheduler;v.eachSeries(function(p){d.updateStreamModes(p,h[p.__viewId])})},nd=function(c,v){var h=this,d=this.getModel(),p=c.type,g=c.escapeConnect,m=Eu[p],y=(m.update||"update").split(":"),_=y.pop(),S=y[0]!=null&&vr(y[0]);this[Fe]=!0,va(this);var b=[c],w=!1;c.batch&&(w=!0,b=$(c.batch,function(k){return k=le(z({},k),c),k.batch=null,k}));var T=[],C,D=[],x=m.nonRefinedEventType,A=Uc(c),L=jm(c);if(L&&Xm(this._api),I(b,function(k){var O=m.action(k,d,h._api);if(m.refineEvent?D.push(O):C=O,C=C||z({},k),C.type=x,T.push(C),L){var R=Ac(c),N=R.queryOptionMap,F=R.mainTypeSpecified,B=F?N.keys()[0]:"series";Iu(h,_,k,B),Ht(h)}else A?(Iu(h,_,k,"series"),Ht(h)):S&&Iu(h,_,k,S.main,S.sub)}),_!=="none"&&!L&&!A&&!S)try{this[He]?(ui(this),$r.update.call(this,c),this[He]=null):$r[_].call(this,c)}catch(k){throw this[Fe]=!1,k}if(w?C={type:x,escapeConnect:g,batch:T}:C=T[0],this[Fe]=!1,!v){var M=void 0;if(m.refineEvent){var P=m.refineEvent(D,c,d,this._api).eventContent;Wt(j(P)),M=le({type:m.refinedEventType},P),M.fromAction=c.type,M.fromActionPayload=c,M.escapeConnect=!0}var E=this._messageCenter;E.trigger(C.type,C),M&&E.trigger(M.type,M)}},ca=function(c){for(var v=this._pendingActions;v.length;){var h=v.shift();nd.call(this,h,c)}},ha=function(c){!c&&this.trigger("updated")},Cb=function(c,v){c.on("rendered",function(h){v.trigger("rendered",h),c.animation.isFinished()&&!v[He]&&!v._scheduler.unfinished&&!v._pendingActions.length?v.trigger("finished"):c.refresh()})},Ab=function(c,v){c.on("mouseover",function(h){var d=h.target,p=zo(d,Hc);p&&(RD(p,h,v._api),Ht(v))}).on("mouseout",function(h){var d=h.target,p=zo(d,Hc);p&&(OD(p,h,v._api),Ht(v))}).on("click",function(h){var d=h.target,p=zo(d,function(y){return ue(y).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",m=ue(p);v._api.dispatchAction({type:g,dataType:m.dataType,dataIndexInside:m.dataIndex,seriesIndex:m.seriesIndex,isFromClick:!0})}})};function n(c){c.clearColorPalette(),c.eachSeries(function(v){v.clearColorPalette()})}function i(c){var v=[],h=[],d=!1;if(c.eachComponent(function(y,_){var S=_.get("zlevel")||0,b=_.get("z")||0,w=_.getZLevelKey();d=d||!!w,(y==="series"?h:v).push({zlevel:S,z:b,idx:_.componentIndex,type:y,key:w})}),d){var p=v.concat(h),g,m;yu(p,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),I(p,function(y){var _=c.getComponent(y.type,y.idx),S=y.zlevel,b=y.key;g!=null&&(S=Math.max(g,S)),b?(S===g&&b!==m&&S++,m=b):m&&(S===g&&S++,m=""),g=S,_.setZLevel(S)})}}id=function(c,v,h,d,p){i(v),Db(c,v,h,d,p),I(c._chartsViews,function(g){g.__alive=!1}),Pu(c,v,h,d,p),I(c._chartsViews,function(g){g.__alive||g.remove(v,h)})},Db=function(c,v,h,d,p,g){I(g||c._componentsViews,function(m){var y=m.__model;u(y,m),m.render(y,v,h,d),l(y,m),f(y,m)})},Pu=function(c,v,h,d,p,g){var m=c._scheduler;p=z(p||{},{updatedSeries:v.getSeries()}),Gt.trigger("series:beforeupdate",v,h,p);var y=!1;v.eachSeries(function(_){var S=c._chartsMap[_.__viewId];S.__alive=!0;var b=S.renderTask;m.updatePayload(b,d),u(_,S),g&&g.get(_.uid)&&b.dirty(),b.perform(m.getPerformArgs(b))&&(y=!0),S.group.silent=!!_.get("silent"),s(_,S),qm(_)}),m.unfinished=y||m.unfinished,Gt.trigger("series:layoutlabels",v,h,p),Gt.trigger("series:transition",v,h,p),v.eachSeries(function(_){var S=c._chartsMap[_.__viewId];l(_,S),f(_,S)}),o(c,v),Gt.trigger("series:afterupdate",v,h,p)},Ht=function(c){c[Jv]=!0,c.getZr().wakeUp()},va=function(c){c[Mu]=(c[Mu]+1)%1e6},Lb=function(c){c[Jv]&&(c.getZr().storage.traverse(function(v){no(v)||a(v)}),c[Jv]=!1)};function a(c){for(var v=[],h=c.currentStates,d=0;d<h.length;d++){var p=h[d];p==="emphasis"||p==="blur"||p==="select"||v.push(p)}c.selected&&c.states.select&&v.push("select"),c.hoverState===Js&&c.states.emphasis?v.push("emphasis"):c.hoverState===Qs&&c.states.blur&&v.push("blur"),c.useStates(v)}function o(c,v){var h=c._zr;if(h.painter.type==="canvas"){var d=h.storage,p=0;d.traverse(function(m){m.isGroup||p++});var g=p>Z(v.get("hoverLayerThreshold"),w1.hoverLayerThreshold)&&!ie.node&&!ie.worker;(c._usingTHL||g)&&(v.eachSeries(function(m){if(!m.preventUsingHoverLayer){var y=c._chartsMap[m.__viewId];y.__alive&&y.eachRendered(function(_){var S=_.states.emphasis;S&&S.hoverLayer!==Qc&&(S.hoverLayer=g?py:dy)})}}),c._usingTHL=g)}}function s(c,v){var h=c.get("blendMode")||null;v.eachRendered(function(d){d.isGroup||(d.style.blend=h)})}function l(c,v){if(!c.preventAutoZ){var h=Ty(c);v.eachRendered(function(d){return xy(d,h.z,h.zlevel),!0})}}function u(c,v){v.eachRendered(function(h){if(!no(h)){var d=h.getTextContent(),p=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function f(c,v){var h=c.getModel("stateAnimation"),d=c.isAnimationEnabled(),p=h.get("duration"),g=p>0?{duration:p,delay:h.get("delay"),easing:h.get("easing")}:null;v.eachRendered(function(m){if(m.states&&m.states.emphasis){if(no(m))return;if(m instanceof pe&&HD(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(d){m.stateTransition=g;var _=m.getTextContent(),S=m.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}m.__dirty&&a(m)}})}Mb=function(c){return new((function(v){V(h,v);function h(){return v!==null&&v.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return c._model.getComponent(p.mainType,p.index);d=d.parent}},h.prototype.enterEmphasis=function(d,p){al(d,p),Ht(c)},h.prototype.leaveEmphasis=function(d,p){ol(d,p),Ht(c)},h.prototype.enterBlur=function(d){ED(d),Ht(c)},h.prototype.leaveBlur=function(d){Um(d),Ht(c)},h.prototype.enterSelect=function(d){Wm(d),Ht(c)},h.prototype.leaveSelect=function(d){Ym(d),Ht(c)},h.prototype.getModel=function(){return c.getModel()},h.prototype.getViewOfComponentModel=function(d){return c.getViewOfComponentModel(d)},h.prototype.getViewOfSeriesModel=function(d){return c.getViewOfSeriesModel(d)},h.prototype.getECUpdateCycleVersion=function(){return c[Mu]},h.prototype.usingTHL=function(){return c._usingTHL},h})(Em))(c)},Ib=function(c){function v(h,d){for(var p=0;p<h.length;p++){var g=h[p];g[ed]=d}}I(od,function(h,d){c._messageCenter.on(d,function(p){if(kb[c.group]&&c[ed]!==_b){if(p&&p.escapeConnect)return;var g=c.makeActionFromEvent(p),m=[];I(Vo,function(y){y!==c&&y.group===c.group&&m.push(y)}),v(m,_b),I(m,function(y){y[ed]!==oO&&y.dispatchAction(g)}),v(m,sO)}})})}})(),e})(kr),ad=Pb.prototype;ad.on=Sb("on"),ad.off=Sb("off"),ad.one=function(t,e,r){var n=this;function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];e&&e.apply&&e.apply(this,a),n.off(t,i)}this.on.call(this,t,i,r)};var lO=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function r5(t){}var Eu={},od={},sd={},ld=[],ud=[],ku=[],Eb={},fd={},Vo={},kb={},uO=+new Date-0,cd="_echarts_instance_";function fO(t,e,r){var n=!(r&&r.ssr);if(n){var i=cO(t);if(i)return i}var a=new Pb(t,e,r);return a.id="ec_"+uO++,Vo[a.id]=a,n&&wm(t,cd,a.id),Ib(a),Gt.trigger("afterinit",a),a}function cO(t){return Vo[vD(t,cd)]}function Rb(t,e){Eb[t]=e}function Ob(t){fe(ud,t)<0&&ud.push(t)}function Nb(t,e){vd(ld,t,e,JR)}function hO(t){hd("afterinit",t)}function vO(t){hd("afterupdate",t)}function hd(t,e){Gt.on(t,e)}function da(t,e,r){var n,i,a,o,s;ee(e)&&(r=e,e=""),j(t)?(n=t.type,i=t.event,o=t.update,s=t.publishNonRefinedEvent,r||(r=t.action),a=t.refineEvent):(n=t,i=e);function l(f){return f.toLowerCase()}i=l(i||n);var u=a?l(n):i;Eu[n]||(Wt(yb.test(n)&&yb.test(i)),a&&Wt(i!==n),Eu[n]={actionType:n,refinedEventType:i,nonRefinedEventType:u,update:o,action:r,refineEvent:a},sd[i]=1,a&&s&&(sd[u]=1),od[u]=n)}function dO(t,e){wh.register(t,e)}function pO(t,e){vd(ku,t,e,pb,"layout")}function fi(t,e){vd(ku,t,e,gb,"visual")}var Bb=[];function vd(t,e,r,n,i,a){if((ee(e)||j(e))&&(r=e,e=n),!(fe(Bb,r)>=0)){Bb.push(r);var o=z1.wrapStageHandler(r,i);o.__prio=e,o.__raw=r,t.push(o)}}function Fb(t,e){fd[t]=e}function gO(t,e,r){var n=AR("registerMap");n&&n(t,e,r)}var mO=AL;fi(Qv,sR),fi(Du,lR),fi(Du,uR),fi(Qv,bR),fi(Du,wR),fi(mb,$R),Ob(R1),Nb(KR,nR),Fb("default",fR),da({type:$n,event:$n,update:$n},We),da({type:tl,event:tl,update:tl},We),da({type:rl,event:Oc,update:rl,action:We,refineEvent:dd,publishNonRefinedEvent:!0}),da({type:Rc,event:Oc,update:Rc,action:We,refineEvent:dd,publishNonRefinedEvent:!0}),da({type:nl,event:Oc,update:nl,action:We,refineEvent:dd,publishNonRefinedEvent:!0});function dd(t,e,r,n){return{eventContent:{selected:BD(r),isFromClick:e.isFromClick||!1}}}Rb("default",{}),Rb("dark",Y1);var zb=[],yO={registerPreprocessor:Ob,registerProcessor:Nb,registerPostInit:hO,registerPostUpdate:vO,registerUpdateLifecycle:hd,registerAction:da,registerCoordinateSystem:dO,registerLayout:pO,registerVisual:fi,registerTransform:mO,registerLoading:Fb,registerMap:gO,registerImpl:CR,PRIORITY:aO,ComponentModel:ye,ComponentView:bt,SeriesModel:ot,ChartView:je,registerComponentModel:function(t){ye.registerClass(t)},registerComponentView:function(t){bt.registerClass(t)},registerSeriesModel:function(t){ot.registerClass(t)},registerChartView:function(t){je.registerClass(t)},registerCustomSeries:function(t,e){},registerSubTypeDefaulter:function(t,e){ye.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Ok(t,e)}};function rr(t){if(W(t)){I(t,function(e){rr(e)});return}fe(zb,t)>=0||(zb.push(t),ee(t)&&(t={install:t}),t.install(yO))}var _O=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r,n){return Ml(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(r,n,i){return i.point(n.getItemLayout(r))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:Y.color.primary}},universalTransition:{divideShape:"clone"}},e})(ot),Vb=4,SO=(function(){function t(){}return t})(),bO=(function(t){V(e,t);function e(r){var n=t.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return e.prototype.getDefaultShape=function(){return new SO},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.beforeBrush=function(r){r&&!r.contentRetained&&this.reset()},e.prototype.buildPath=function(r,n){var i=n.points,a=n.size,o=this.symbolProxy,s=o.shape,l=r.getContext?r.getContext():r,u=l&&a[0]<Vb,f=this.softClipShape,c;if(u){this._ctx=l;return}for(this._ctx=null,c=this._off;c<i.length;){var v=i[c++],h=i[c++];isNaN(v)||isNaN(h)||f&&!f.contain(v,h)||(s.x=v-a[0]/2,s.y=h-a[1]/2,s.width=a[0],s.height=a[1],o.buildPath(r,s,!0))}this.incremental&&(this._off=c,this.notClear=!0)},e.prototype.afterBrush=function(){var r=this.shape,n=r.points,i=r.size,a=this._ctx,o=this.softClipShape,s;if(a){for(s=this._off;s<n.length;){var l=n[s++],u=n[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||a.fillRect(l-i[0]/2,u-i[1]/2,i[0],i[1])}this.incremental&&(this._off=s,this.notClear=!0)}},e.prototype.findDataIndex=function(r,n){for(var i=this.shape,a=i.points,o=i.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=a.length/2-1;u>=0;u--){var f=u*2,c=a[f]-s/2,v=a[f+1]-l/2;if(r>=c&&n>=v&&r<=c+s&&n<=v+l)return u}return-1},e.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(r=i[0],n=i[1],a.contain(r,n)){var o=this.hoverDataIdx=this.findDataIndex(r,n);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,i=n.points,a=n.size,o=a[0],s=a[1],l=1/0,u=1/0,f=-1/0,c=-1/0,v=0;v<i.length;){var h=i[v++],d=i[v++];l=Math.min(h,l),f=Math.max(h,f),u=Math.min(d,u),c=Math.max(d,c)}r=this._rect=new ne(l-o/2,u-s/2,f-l+o,c-u+s)}return r},e})(pe),wO=(function(){function t(){this.group=new Ce}return t.prototype.updateData=function(e,r){this._clear(),this._data=e;var n=this._create();n.setShape({points:e.getLayout("points")}),this._setCommon(n,e,r)},t.prototype.updateLayout=function(e){var r=this._data;if(r){var n=r.getLayout("points");this.group.eachChild(function(i){if(i.startIndex!=null){var a=(i.endIndex-i.startIndex)*2,o=i.startIndex*4*2;n=new Float32Array(n.buffer,o,a)}i.setShape("points",n),i.reset(),i.stopAnimation()})}},t.prototype.incrementalPrepareUpdate=function(e){this._clear()},t.prototype.incrementalUpdate=function(e,r,n,i){var a=this._newAdded[0],o=r.getLayout("points"),s=a&&a.shape.points;if(s&&s.length<2e4){var l=s.length,u=new Float32Array(l+o.length);u.set(s),u.set(o,l),a.endIndex=e.end,a.setShape({points:u})}else{this._newAdded=[];var f=this._create();f.startIndex=e.start,f.endIndex=e.end,f.incremental=n,f.setShape({points:o}),this._setCommon(f,r,i)}},t.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},t.prototype._create=function(){var e=new bO({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},t.prototype._setCommon=function(e,r,n){var i=r.hostModel;n=n||{};var a=r.getVisual("symbolSize");e.setShape("size",a instanceof Array?a:[a,a]),e.softClipShape=n.clipShape||null,e.symbolProxy=Ar(r.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<Vb;e.useStyle(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=r.getVisual("style"),l=s&&s.fill;l&&e.setColor(l);var u=ue(e);u.seriesIndex=i.seriesIndex,e.on("mousemove",function(f){u.dataIndex=null;var c=e.hoverDataIdx;c>=0&&(u.dataIndex=c+(e.startIndex||0))})},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t})(),TO=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.updateData(a,pd(r)),this._finished=!0},e.prototype.incrementalPrepareRender=function(r,n,i){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.incrementalPrepareUpdate(a),this._finished=!1},e.prototype.incrementalRender=function(r,n,i){this._symbolDraw.incrementalUpdate(r,n.getData(),Dm(n),pd(n)),this._finished=r.end===n.getData().count()},e.prototype.updateTransform=function(r,n,i){var a=r.getData();if(this.group.dirty(),this._finished){var o=ov("").reset(r,n,i);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(pd(r))}else return{update:!0}},e.prototype.eachRendered=function(r){this._symbolDraw&&this._symbolDraw.eachRendered(r)},e.prototype._updateSymbolDraw=function(r,n){var i=this._symbolDraw,a=n.pipelineContext,o=a.large;return(!i||o!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=o?new wO:new s_,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},e.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e})(je);function pd(t){return{clipShape:pP(t)}}var Gb=(function(){function t(){}return t.prototype.needIncludeZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t})(),gd=(function(t){V(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Pt).models[0]},e.type="cartesian2dAxis",e})(ye);Ut(gd,Gb);var Hb={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:Y.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:Y.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:Y.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[Y.color.backgroundTint,Y.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:Y.color.neutral00,borderColor:Y.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},xO=be({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},Hb),md=be({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:Y.color.axisMinorSplitLine,width:1}}},Hb),CO=be({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},md),AO=le({logBase:10},md);const Ub={category:xO,value:md,time:CO,log:AO};function Wb(t,e,r,n){I(k_,function(i,a){var o=be(be({},Ub[a],!0),n,!0),s=(function(l){V(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=e+"Axis."+a,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var v=_o(this),h=v?So(f):{},d=c.getTheme();be(f,d.get(a+"Axis")),be(f,this.getDefaultOption()),f.type=Yb(f),v&&fn(f,h,v)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Qh.createByAxisModel(this))},u.prototype.getCategories=function(f){var c=this.option;if(c.type==="category")return f?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(f){var c=au();return c?c.updateModelAxisBreak(this,f):{breaks:[]}},u.type=e+"Axis."+a,u.defaultOption=o,u})(r);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",Yb)}function Yb(t){return t.type||(t.data?"category":"value")}var DO=(function(){function t(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return t.prototype.getAxis=function(e){return this._axes[e]},t.prototype.getAxes=function(){return $(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Ue(this.getAxes(),function(r){return r.scale.type===e})},t.prototype.addAxis=function(e){var r=e.dim;this._axes[r]=e,this._dimList.push(r)},t})(),Ru=["x","y"];function $b(t){return(t.type==="interval"||t.type==="time")&&!kl(t)}var MO=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Wr,r.dimensions=Ru,r}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!$b(r)||!$b(n))){var i=Wl(r,null),a=Wl(n,null),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,v=o[0]-i[0]*f,h=o[1]-a[0]*c,d=this._transform=[f,0,0,c,v,h];this._invTransform=Pa([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(r){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&i.contain(i.toLocalCoord(r[1]))},e.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},e.prototype.containZone=function(r,n){var i=this.dataToPoint(r),a=this.dataToPoint(n),o=this.getArea(),s=new ne(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},e.prototype.dataToPoint=function(r,n,i){i=i||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return wt(i,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=l.toGlobalCoord(l.dataToCoord(o,n)),i},e.prototype.clampData=function(r,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(r[0]),u=a.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},e.prototype.pointToData=function(r,n,i){if(i=i||[],this._invTransform)return wt(i,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(r[0]),n),i[1]=o.coordToData(o.toLocalCoord(r[1]),n),i},e.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},e.prototype.getArea=function(r){r=r||0;var n=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(n[0],n[1])-r,o=Math.min(i[0],i[1])-r,s=Math.max(n[0],n[1])-a+r,l=Math.max(i[0],i[1])-o+r;return new ne(a,o,s,l)},e})(DO);function Xb(t,e){var r=t.scale,n=t.model,i=MS(r,n,n.ecModel,t),a=ea(r),o=ea(e)?e.intervalStub:e,s=a?r.intervalStub:r,l=r.base,u=o.getTicks(),f=o.getTicks({expandToNicedExtent:!0}),c=u.length-1,v,h,d;if(c===1)v=h=0,d=1;else if(c===2){var p=Be(u[0].value-u[1].value),g=Be(u[1].value-u[2].value);v=h=0,p===g?d=2:(d=1,p<g?v=p/g:h=g/p)}else{var m=o.getConfig().interval;v=(1-(u[0].value-f[0].value)/m)%1,h=(1-(f[c].value-u[c].value)/m)%1,d=c-(v?1:0)-(h?1:0)}var y=i.zoomFixMM,_=y[0]||y[1],S=[i.fixMM[0]||_,i.fixMM[1]||_],b=r.getExtent(),w=s.getExtent(),T=T_(w,S),C,D,x,A,L,M;function P(G){for(var X=50,H=0;H<X&&!G();H++)x=a?x*ge(l,2):wP(x),A=ai(x)}function E(){C=ve(M-x*v,A)}function k(){D=ve(L+x*h,A)}function O(){M=v?ve(C+x*v,A):C}function R(){L=h?ve(D-x*h,A):D}if(S[0]&&S[1]){C=T[0],D=T[1],x=(D-C)/(d+v+h);var N=t.getExtent(),F=Be(N[1]-N[0]);A=$A([D,C],F,.5/d),O(),R(),Lt(A)&&(x=ve(x,A))}else{var B=T[1]-T[0];x=a?ge(vm(B),1):wc(B/d,dm),A=ai(x),S[0]?(C=T[0],P(function(){if(O(),L=ve(M+x*d,A),k(),D>=T[1])return!0})):S[1]?(D=T[1],P(function(){if(R(),M=ve(L-x*d,A),E(),C<=T[0])return!0})):P(function(){M=ve(Xa(T[0]/x)*x,A),L=ve(Hn(T[1]/x)*x,A);var G=Or((L-M)/x);if(G<=d){var X=d-G,H=void 0,K=i.incl0||a;if(K&&T[0]===0)H=[0,X];else if(K&&T[1]===0)H=[X,0];else{var ae=Hn(X/2);H=X%2===0?[ae,ae]:C+D<T[0]+T[1]?[ae,ae+1]:[ae+1,ae]}if(M=ve(M-x*H[0],A),L=ve(L+x*H[1],A),E(),k(),C<=T[0]&&D>=T[1])return!0}})}N_(r,S,w,[C,D],b,{interval:x,intervalCount:d,intervalPrecision:A,niceExtent:[M,L]})}function qb(t,e){var r=ea(t),n=r?t.intervalStub:t,i=e.fixMinMax||[],a=r?t.getExtent():null,o=n.getExtent(),s=T_(o,i,e.rawExtentResult);n.setExtent(s[0],s[1]),s=n.getExtent();var l=r?LO(n,e):IO(n,e),u=l.intervalPrecision,f=l.interval,c=e.userInterval;c!=null&&(l.interval=c,l.intervalPrecision=ai(c)),i[0]||(s[0]=ve(Hn(s[0]/f)*f,u)),i[1]||(s[1]=ve(Xa(s[1]/f)*f,u)),c!=null&&(l.niceExtent=s.slice()),N_(t,i,o,s,a,l)}function IO(t,e){var r=ql(e.splitNumber,5),n=Yl(t),i=e.minInterval,a=e.maxInterval,o=wc(n/r,!0);i!=null&&o<i&&(o=i),a!=null&&o>a&&(o=a);var s=ai(o),l=t.getExtent(),u=[ve(Xa(l[0]/o)*o,s),ve(Hn(l[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:u}}function LO(t,e){var r=ql(e.splitNumber,10),n=t.getExtent(),i=Yl(t),a=ge(vm(i),1),o=r/i*a;o<=.5&&(a*=10);var s=ai(a),l=[ve(Xa(n[0]/a)*a,s),ve(Hn(n[1]/a)*a,s)];return{intervalPrecision:s,interval:a,niceExtent:l}}function Zb(t){var e=t.scale,r=t.model,n=r.axis,i=r.ecModel;PO(e,r,n,i)}function PO(t,e,r,n,i){var a=MS(t,e,n,r),o=$l(t)||ev(t);EO(t,{splitNumber:e.get("splitNumber"),fixMinMax:a.fixMM,userInterval:e.get("interval"),minInterval:o?e.get("minInterval"):null,maxInterval:o?e.get("maxInterval"):null,rawExtentResult:a}),r&&n&&hE(r,t,a,n)}function EO(t,e){kO[t.type](t,e)}var kO={interval:qb,log:qb,time:EP,ordinal:We},Kb=[[3,1],[0,2]],RO=(function(){function t(e,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Ru,this._initCartesian(e,r,n),this.model=e}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(e,r){var n=this._axesMap;I(this._axesList,function(o){AS(o,bS);var s=o.scale;Qt(s)&&s.setSortInfo(o.model.get("categorySortInfo"))});function i(o){for(var s=ce(o),l=[],u=s.length-1;u>=0;u--){var f=o[+s[u]];f.__alignTo?l.push(f):Zb(f)}I(l,function(c){NO(c,c.__alignTo)?Zb(c):Xb(c,c.__alignTo.scale)})}i(n.x),i(n.y);var a={};I(n.x,function(o){jb(n,"y",o,a)}),I(n.y,function(o){jb(n,"x",o,a)}),this.resize(this.model,r)},t.prototype.resize=function(e,r,n){var i=Ji(e,r),a=this._rect=Vr(e.getBoxLayoutParams(),i.refContainer),o=this._axesMap,s=this._coordsList,l=e.get("containLabel");if(ew(o,a),!n){var u=FO(a,s,o,l,r),f=void 0;if(l)f=rw(a.clone(),"axisLabel",null,a,o,u,i);else{var c=zO(e,a,i),v=c.outerBoundsRect,h=c.parsedOuterBoundsContain,d=c.outerBoundsClamp;v&&(f=rw(v,h,d,a,o,u,i))}nw(a,o,Jt.determine,null,f,i),I(this._coordsList,function(p){p.calcAffineTransform()})}},t.prototype.getAxis=function(e,r){var n=this._axesMap[e];if(n!=null)return n[r||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(e,r){if(e!=null&&r!=null){var n="x"+e+"y"+r;return this._coordsMap[n]}j(e)&&(r=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,a=this._coordsList;i<a.length;i++)if(a[i].getAxis("x").index===e||a[i].getAxis("y").index===r)return a[i]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(e,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(e,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(e){var r=e.seriesModel,n=e.xAxisModel||r&&r.getReferringComponents("xAxis",Pt).models[0],i=e.yAxisModel||r&&r.getReferringComponents("yAxis",Pt).models[0],a=e.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,fe(o,s)<0&&(s=null);else if(n&&i)s=this.getCartesian(n.componentIndex,i.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(i)l=this.getAxis("y",i.componentIndex);else if(a){var u=a.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},t.prototype.containPoint=function(e){var r=this._coordsList[0];if(r)return r.containPoint(e)},t.prototype._initCartesian=function(e,r,n){var i=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent("xAxis",u("x"),this),r.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,I(s.x,function(f,c){I(s.y,function(v,h){var d="x"+c+"y"+h,p=new MO(d);p.master=i,p.model=e,i._coordsMap[d]=p,i._coordsList.push(p),p.addAxis(f),p.addAxis(v)})}),Jb(s.x),Jb(s.y);function u(f){return function(c,v){if(OO(c,e)){var h=c.get("position");f==="x"?h!=="top"&&h!=="bottom"&&(h=o.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=o.left?"right":"left"),o[h]=!0;var d=RP(c),p=new P2(f,OP(c,d),[0,0],d,h);p.onBand=B_(p.scale,c),p.inverse=c.get("inverse"),c.axis=p,p.model=c,p.grid=a,p.index=v,a._axesList.push(p),s[f][v]=p,l[f]++}}}},t.prototype.getTooltipAxes=function(e){var r=[],n=[];return I(this.getCartesians(),function(i){var a=e!=null&&e!=="auto"?i.getAxis(e):i.getBaseAxis(),o=i.getOtherAxis(a);fe(r,a)<0&&r.push(a),fe(n,o)<0&&n.push(o)}),{baseAxes:r,otherAxes:n}},t.create=function(e,r){var n=[];return e.eachComponent("grid",function(i,a){var o=new t(i,e,r);o.name="grid_"+a,o.resize(i,r,!0),i.coordinateSystem=o,n.push(o),I(o._axesList,function(s){sE(s,t.dimIdxMap)})}),e.eachSeries(function(i){var a,o;xI({targetModel:i,coordSysType:Wr,coordSysProvider:s});function s(){var l=tE(i),u=l.xAxisModel,f=l.yAxisModel;a=u.axis,o=f.axis;var c=u.getCoordSysModel(),v=c.coordinateSystem;return v.getCartesian(u.componentIndex,f.componentIndex)}a&&o&&(fv(a,i,Wr),fv(o,i,Wr))},this),n},t.dimensions=Ru,t.dimIdxMap=yh(Ru),t})();function OO(t,e){return t.getCoordSysModel()===e}function jb(t,e,r,n){r.getAxesOnZeroOf=function(){return a?[a]:[]};var i=t[e],a,o=r.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)Qb(s,i[l])&&(a=i[l]);else for(var u in i)if(tt(i,u)&&Qb(s,i[u])&&!n[f(i[u])]){a=i[u];break}a&&(n[f(a)]=!0);function f(c){return c.dim+"_"+c.index}}function Qb(t,e){if(!e)return!1;var r=e.scale,n=NP(r,0),i=e&&e.type!=="category"&&e.type!=="time"&&n!==nv;return i&&t==="auto"&&VP(e)&&(i=!1),i}function Jb(t){for(var e=ce(t),r,n=[],i=e.length-1;i>=0;i--){var a=t[+e[i]];w_(a.scale)&&O_(a.model,a.type)==null&&(a.model.get("alignTicks")&&a.model.get("interval")==null?n.push(a):r=a)}r||(r=n.pop()),r&&I(n,function(o){o.__alignTo=r})}function NO(t,e){return kl(t.scale)||kl(e.scale)||e.scale.getTicks().length<2}function BO(t,e){var r=t.getExtent(),n=r[0]+r[1];t.toGlobalCoord=t.dim==="x"?function(i){return i+e}:function(i){return n-i+e},t.toLocalCoord=t.dim==="x"?function(i){return i-e}:function(i){return n-i+e}}function ew(t,e){I(t.x,function(r){return tw(r,e.x,e.width)}),I(t.y,function(r){return tw(r,e.y,e.height)})}function tw(t,e,r){var n=[0,r],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),BO(t,e)}function rw(t,e,r,n,i,a,o){nw(n,i,Jt.estimate,e,!1,o);var s=[0,0,0,0];u(0),u(1),f(n,0,NaN),f(n,1,NaN);var l=Up(s,function(v){return v>0})==null;return gl(n,s,!0,!0,r),ew(i,n),l;function u(v){I(i[sn[v]],function(h){if(xo(h.model)){var d=a.ensureRecord(h.model),p=d.labelInfoList;if(p)for(var g=0;g<p.length;g++){var m=p[g],y=h.scale.normalize(Co(h.scale,oi(m.label).labelInfo.tick));y=v===1?1-y:y,f(m.rect,v,y),f(m.rect,1-v,NaN)}var _=d.nameLayout;if(_){var y=ta(d.nameLocation)?.5:NaN;f(_.rect,v,y),f(_.rect,1-v,NaN)}}})}function f(v,h,d){var p=t[sn[h]]-v[sn[h]],g=v[Wi[h]]+v[sn[h]]-(t[Wi[h]]+t[sn[h]]);p=c(p,1-d),g=c(g,d);var m=Kb[h][0],y=Kb[h][1];s[m]=ge(s[m],p),s[y]=ge(s[y],g)}function c(v,h){return v>0&&!Aa(h)&&h>1e-4&&(v/=h),v}}function FO(t,e,r,n,i){var a=new vS(VO);return I(r,function(o){return I(o,function(s){if(xo(s.model)){var l=!n;s.axisBuilder=rE(t,e,s.model,i,a,l)}})}),a}function nw(t,e,r,n,i,a){var o=r===Jt.determine;I(e,function(u){return I(u,function(f){xo(f.model)&&(nE(f.axisBuilder,t,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[sn[1-u]]=t[Wi[u]]<=a.refContainer[Wi[u]]*.5?0:1-u===1?2:1}I(e,function(u,f){return I(u,function(c){xo(c.model)&&((n==="all"||o)&&c.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&c.axisBuilder.build({axisLine:!0}))})})}function zO(t,e,r){var n,i=t.get("outerBoundsMode",!0);i==="same"?n=e.clone():(i==null||i==="auto")&&(n=Vr(t.get("outerBounds",!0)||IS,r.refContainer));var a=t.get("outerBoundsContain",!0),o;a==null||a==="auto"||fe(["all","axisLabel"],a)<0?o="all":o=a;var s=[_c(Z(t.get("outerBoundsClampWidth",!0),uu[0]),e.width),_c(Z(t.get("outerBoundsClampHeight",!0),uu[1]),e.height)];return{outerBoundsRect:n,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var VO=function(t,e,r,n,i,a){var o=r.axis.dim==="x"?"y":"x";dS(t,e,r,n,i,a),ta(t.nameLocation)||I(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&gS(s.labelInfoList,s.dirVec,n,i)})};function GO(t,e){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return HO(r,t,e),r.seriesInvolved&&WO(r,t),r}function HO(t,e,r){var n=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];I(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Go(s.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",n);if(I(s.getAxes(),Oe(p,!1,null)),s.getTooltipAxes&&n&&c.get("show")){var v=c.get("trigger")==="axis",h=c.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(c.get(["axisPointer","axis"]));(v||h)&&I(d.baseAxes,Oe(p,h?"cross":!0,v)),h&&I(d.otherAxes,Oe(p,"cross",!1))}function p(g,m,y){var _=y.model.getModel("axisPointer",i),S=_.get("show");if(!(!S||S==="auto"&&!g&&!Sd(_))){m==null&&(m=_.get("triggerTooltip")),_=g?UO(y,c,i,e,g,m):_;var b=_.get("snap"),w=_.get("triggerEmphasis"),T=Go(y.model),C=m||b||y.type==="category",D=t.axesInfo[T]={key:T,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:m,triggerEmphasis:w,involveSeries:C,snap:b,useHandle:Sd(_),seriesModels:[],linkGroup:null};u[T]=D,t.seriesInvolved=t.seriesInvolved||C;var x=YO(a,y);if(x!=null){var A=o[x]||(o[x]={axesInfo:{}});A.axesInfo[T]=D,A.mapper=a[x].mapper,D.linkGroup=A}}}})}function UO(t,e,r,n,i,a){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};I(s,function(v){l[v]=oe(o.get(v))}),l.snap=t.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),i==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!a){var c=l.lineStyle=o.get("crossStyle");c&&le(u,c.textStyle)}}return t.model.getModel("axisPointer",new xe(l,r,n))}function WO(t,e){e.eachSeries(function(r){var n=r.coordinateSystem,i=r.get(["tooltip","trigger"],!0),a=r.get(["tooltip","show"],!0);!n||!n.model||i==="none"||i===!1||i==="item"||a===!1||r.get(["axisPointer","show"],!0)===!1||I(t.coordSysAxesInfo[Go(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function YO(t,e){for(var r=e.model,n=e.dim,i=0;i<t.length;i++){var a=t[i]||{};if(yd(a[n+"AxisId"],r.id)||yd(a[n+"AxisIndex"],r.componentIndex)||yd(a[n+"AxisName"],r.name))return i}}function yd(t,e){return t==="all"||W(t)&&fe(t,e)>=0||t===e}function $O(t){var e=_d(t);if(e){var r=e.axisPointerModel,n=e.axis.scale,i=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=Sd(r);a==null&&(i.status=s?"show":"hide");var l=n.getExtent();(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),i.value=o,s&&(i.status=e.axis.scale.isBlank()?"hide":"show")}}function _d(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Go(t)]}function XO(t){var e=_d(t);return e&&e.axisPointerModel}function Sd(t){return!!t.get(["handle","show"])}function Go(t){return t.type+"||"+t.id}var iw={},aw=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i,a){this.axisPointerClass&&$O(r),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,i,!0)},e.prototype.updateAxisPointer=function(r,n,i,a){this._doUpdateAxisPointerClass(r,i,!1)},e.prototype.remove=function(r,n){var i=this._axisPointer;i&&i.remove(n)},e.prototype.dispose=function(r,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(r,n,i){var a=e.getAxisPointerClass(this.axisPointerClass);if(a){var o=XO(r);o?(this._axisPointer||(this._axisPointer=new a)).render(r,o,n,i):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},e.registerAxisPointerClass=function(r,n){iw[r]=n},e.getAxisPointerClass=function(r){return r&&iw[r]},e.type="axis",e})(bt),bd=Se();function qO(t,e,r,n){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:a,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var f=s.length,c=bd(t).splitAreaColors,v=te(),h=0;if(c)for(var d=0;d<u.length;d++){var p=c.get(u[d].tickValue);if(p!=null){h=(p+(f-1)*d)%f;break}}var g=i.toGlobalCoord(u[0].coord),m=o.getAreaStyle();s=W(s)?s:[s];for(var d=1;d<u.length;d++){var y=i.toGlobalCoord(u[d].coord),_=void 0,S=void 0,b=void 0,w=void 0;i.isHorizontal()?(_=g,S=l.y,b=y-_,w=l.height,g=_+b):(_=l.x,S=g,b=l.width,w=y-S,g=S+w);var T=u[d-1].tickValue;T!=null&&v.set(T,h),e.add(new De({anid:T!=null?"area_"+T:null,shape:{x:_,y:S,width:b,height:w},style:le({fill:s[h]},m),autoBatch:!0,silent:!0})),h=(h+1)%f}bd(t).splitAreaColors=v}}}function ZO(t){bd(t).splitAreaColors=null}var KO=["splitArea","splitLine","minorSplitLine","breakArea"],ow=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.axisPointerClass="CartesianAxisPointer",r}return e.prototype.render=function(r,n,i,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Ce,this.group.add(this._axisGroup),!!xo(r)){this._axisGroup.add(r.axis.axisBuilder.group),I(KO,function(l){r.get([l,"show"])&&jO[l](this,this._axisGroup,r,r.getCoordSysModel(),i)},this);var s=a&&a.type==="changeAxisOrder"&&a.isInitSort;s||Sy(o,this._axisGroup,r),t.prototype.render.call(this,r,n,i,a)}},e.prototype.remove=function(){ZO(this)},e.type="cartesianAxis",e})(aw),jO={splitLine:function(t,e,r,n,i){var a=r.axis;if(!a.scale.isBlank()){var o=r.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,f=o.get("showMaxLine")!==!1;l=W(l)?l:[l];for(var c=n.coordinateSystem.getRect(),v=a.isHorizontal(),h=0,d=a.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),p=[],g=[],m=s.getLineStyle(),y=0;y<d.length;y++){var _=a.toGlobalCoord(d[y].coord);if(!(y===0&&!u||y===d.length-1&&!f)){var S=d[y].tickValue;v?(p[0]=_,p[1]=c.y,g[0]=_,g[1]=c.y+c.height):(p[0]=c.x,p[1]=_,g[0]=c.x+c.width,g[1]=_);var b=h++%l.length,w=new Cr({anid:S!=null?"line_"+S:null,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:g[0],y2:g[1]},style:le({stroke:l[b]},m),silent:!0});io(w.shape,m.lineWidth),e.add(w)}}}},minorSplitLine:function(t,e,r,n,i){var a=r.axis,o=r.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=n.coordinateSystem.getRect(),u=a.isHorizontal(),f=a.getMinorTicksCoords();if(f.length)for(var c=[],v=[],h=s.getLineStyle(),d=0;d<f.length;d++)for(var p=0;p<f[d].length;p++){var g=a.toGlobalCoord(f[d][p].coord);u?(c[0]=g,c[1]=l.y,v[0]=g,v[1]=l.y+l.height):(c[0]=l.x,c[1]=g,v[0]=l.x+l.width,v[1]=g);var m=new Cr({anid:"minor_line_"+f[d][p].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:v[0],y2:v[1]},style:h,silent:!0});io(m.shape,h.lineWidth),e.add(m)}},splitArea:function(t,e,r,n,i){qO(t,e,r,n)},breakArea:function(t,e,r,n,i){var a=au(),o=r.axis.scale;a&&o.type!=="ordinal"&&a.rectCoordBuildBreakAxis(e,t,r,n.coordinateSystem.getRect(),i)}},sw=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="xAxis",e})(ow),QO=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=sw.type,r}return e.type="yAxis",e})(ow),JO=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="grid",r}return e.prototype.render=function(r,n){this.group.removeAll(),r.get("show")&&this.group.add(new De({shape:r.coordinateSystem.getRect(),style:le({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e})(bt),lw={offset:0};function uw(t){t.registerComponentView(JO),t.registerComponentModel(_E),t.registerCoordinateSystem("cartesian2d",RO),Wb(t,"x",gd,lw),Wb(t,"y",gd,lw),t.registerComponentView(sw),t.registerComponentView(QO),t.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function eN(t){rr(uw),t.registerSeriesModel(_O),t.registerChartView(TO),t.registerLayout(ov("scatter"))}function tN(t){var e=t.polar;if(e){W(e)||(e=[e]);var r=[];I(e,function(n,i){n.indicator?(n.type&&!n.shape&&(n.shape=n.type),t.radar=t.radar||[],W(t.radar)||(t.radar=[t.radar]),t.radar.push(n)):r.push(n)}),t.polar=r}I(t.series,function(n){n&&n.type==="radar"&&n.polarIndex&&(n.radarIndex=n.polarIndex)})}var Ho="radar",rN=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new xv(de(this.getData,this),de(this.getRawData,this))},e.prototype.getInitialData=function(r,n){return pu(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(r,n,i){var a=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(r),u=l===""?this.name:l,f=j0(this,r);return ii("section",{header:u,sortBlocks:!0,blocks:$(s,function(c){var v=a.get(a.mapDimension(c.dim),r);return ii("nameValue",{markerType:"subItem",markerColor:f,name:c.name,value:v,sortParam:v})})})},e.prototype.getTooltipPosition=function(r){if(r!=null){for(var n=this.getData(),i=this.coordinateSystem,a=n.getValues($(i.dimensions,function(u){return n.mapDimension(u)}),r),o=0,s=a.length;o<s;o++)if(!isNaN(a[o])){var l=i.getIndicatorAxes();return i.coordToPoint(l[o].dataToCoord(a[o]),o)}}},e.type="series."+Ho,e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e})(ot),nN=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Ho,r}return e.prototype.render=function(r,n,i){var a=r.coordinateSystem,o=this.group,s=r.getData(),l=this._data;function u(v,h){var d=v.getItemVisual(h,"symbol")||"circle";if(d!=="none"){var p=t_(v.getItemVisual(h,"symbolSize")),g=Ar(d,-1,-1,2,2),m=v.getItemVisual(h,"symbolRotate")||0;return g.attr({style:{strokeNoScale:!0},z2:100,scaleX:p[0]/2,scaleY:p[1]/2,rotation:m*Math.PI/180||0}),g}}function f(v,h,d,p,g,m){d.removeAll();for(var y=0;y<h.length-1;y++){var _=u(p,g);_&&(_.__dimIdx=y,v[y]?(_.setPosition(v[y]),Ay[m?"initProps":"updateProps"](_,{x:h[y][0],y:h[y][1]},r,g)):_.setPosition(h[y]),d.add(_))}}function c(v){return $(v,function(h){return[a.cx,a.cy]})}s.diff(l).add(function(v){var h=s.getItemLayout(v);if(h){var d=new Gi,p=new on,g={shape:{points:h}};d.shape.points=c(h),p.shape.points=c(h),Ge(d,g,r,v),Ge(p,g,r,v);var m=new Ce,y=new Ce;m.add(p),m.add(d),m.add(y),f(p.shape.points,h,y,s,v,!0),s.setItemGraphicEl(v,m)}}).update(function(v,h){var d=l.getItemGraphicEl(h),p=d.childAt(0),g=d.childAt(1),m=d.childAt(2),y={shape:{points:s.getItemLayout(v)}};y.shape.points&&(f(p.shape.points,y.shape.points,m,s,v,!1),Ui(g),Ui(p),Ie(p,y,r),Ie(g,y,r),s.setItemGraphicEl(v,d))}).remove(function(v){o.remove(l.getItemGraphicEl(v))}).execute(),s.eachItemGraphicEl(function(v,h){var d=s.getItemModel(h),p=v.childAt(0),g=v.childAt(1),m=v.childAt(2),y=s.getItemVisual(h,"style"),_=y.fill;o.add(v),p.useStyle(le(d.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:_})),zr(p,d,"lineStyle"),zr(g,d,"areaStyle");var S=d.getModel("areaStyle"),b=S.isEmpty()&&S.parentModel.isEmpty();g.ignore=b,I(["emphasis","select","blur"],function(T){var C=d.getModel([T,"areaStyle"]),D=C.isEmpty()&&C.parentModel.isEmpty();g.ensureState(T).ignore=D&&b;var x=d.getModel([T,"lineStyle"]).getLineStyle();p.ensureState(T).style=x;var A=C.getAreaStyle();g.ensureState(T).style=A;var L=d.getModel([T,"itemStyle"]).getItemStyle();m.eachChild(function(M){M.ensureState(T).style=oe(L)})}),g.useStyle(le(d.getModel("areaStyle").getAreaStyle(),{fill:_,opacity:.7,decal:y.decal}));var w=d.getModel("emphasis");m.eachChild(function(T){if(T instanceof Mt){var C=T.style;T.useStyle(z({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},y))}else T.useStyle(y),T.setColor(_),T.style.strokeNoScale=!0;var D=s.getStore().get(s.getDimensionIndex(T.__dimIdx),h);(D==null||isNaN(D))&&(D=""),Kn(T,jn(d),{labelFetcher:s.hostModel,labelDataIndex:h,labelDimIndex:T.__dimIdx,defaultText:D,inheritColor:_,defaultOpacity:y.opacity})}),Fr(v,w.get("focus"),w.get("blurScope"),w.get("disabled"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type=Ho,e})(je),Uo=Ub.value,Wo="radar",fw=Wo,iN=Wo,cw=5;function Ou(t,e){return le({show:e},t)}var aN=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.optionUpdated=function(){var r=this.get("boundaryGap"),n=this.get("splitNumber"),i=this.get("clockwise"),a=this.get("scale"),o=this.get("axisLine"),s=this.get("axisTick"),l=this.get("axisLabel"),u=this.get("axisName"),f=this.get(["axisName","show"]),c=this.get(["axisName","formatter"]),v=this.get("axisNameGap"),h=this.get("triggerEvent"),d=$(this.get("indicator")||[],function(p){p.max!=null&&p.max>0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var g=u;p.color!=null&&(g=le({color:p.color},u));var m=be(oe(p),{boundaryGap:r,splitNumber:n,clockwise:i,scale:a,axisLine:o,axisTick:s,axisLabel:l,name:p.text,showName:f,nameLocation:"end",nameGap:v,nameTextStyle:g,triggerEvent:h},!1);if(q(c)){var y=m.name;m.name=c.replace("{value}",y??"")}else ee(c)&&(m.name=c(m.name,m));var _=new xe(m,null,this.ecModel);return Ut(_,Gb.prototype),_.mainType="radar",_.componentIndex=this.componentIndex,_.uid=vo("ec_radar"),_},this);this._indicatorModels=d},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type=fw,e.defaultOption={z:0,center:["50%","50%"],radius:"50%",startAngle:90,clockwise:!1,axisName:{show:!0,color:Y.color.axisLabel},boundaryGap:[0,0],splitNumber:cw,axisNameGap:15,scale:!1,shape:"polygon",axisLine:be({lineStyle:{color:Y.color.neutral20}},Uo.axisLine),axisLabel:Ou(Uo.axisLabel,!1),axisTick:Ou(Uo.axisTick,!1),splitLine:Ou(Uo.splitLine,!0),splitArea:Ou(Uo.splitArea,!0),indicator:[]},e})(ye),oN=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){var a=this.group;a.removeAll(),this._buildAxes(r,i),this._buildSplitLineAndArea(r)},e.prototype._buildAxes=function(r,n){var i=r.coordinateSystem,a=i.getIndicatorAxes(),o=$(a,function(s){var l=s.model.get("showName")?s.name:"",u=new Hr(s.model,n,{axisName:l,position:[i.cx,i.cy],rotation:s.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return u});I(o,function(s){s.build(),this.group.add(s.group)},this)},e.prototype._buildSplitLineAndArea=function(r){var n=r.coordinateSystem,i=n.getIndicatorAxes();if(!i.length)return;var a=r.get("shape"),o=r.getModel("splitLine"),s=r.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),c=s.get("show"),v=l.get("color"),h=u.get("color"),d=W(v)?v:[v],p=W(h)?h:[h],g=[],m=[];function y(E,k,O){var R=O%k.length;return E[R]=E[R]||[],R}if(a==="circle")for(var _=i[0].getTicksCoords(),S=n.cx,b=n.cy,w=0;w<_.length;w++){if(f){var T=y(g,d,w);g[T].push(new eo({shape:{cx:S,cy:b,r:_[w].coord}}))}if(c&&w<_.length-1){var T=y(m,p,w);m[T].push(new fl({shape:{cx:S,cy:b,r0:_[w].coord,r:_[w+1].coord}}))}}else for(var C,D=$(i,function(E,k){var O=E.getTicksCoords();return C=C==null?O.length-1:Math.min(O.length-1,C),$(O,function(R){return n.coordToPoint(R.coord,k)})}),x=[],w=0;w<=C;w++){for(var A=[],L=0;L<i.length;L++)A.push(D[L][w]);if(A[0]&&A.push(A[0].slice()),f){var T=y(g,d,w);g[T].push(new on({shape:{points:A}}))}if(c&&x){var T=y(m,p,w-1);m[T].push(new Gi({shape:{points:A.concat(x)}}))}x=A.slice().reverse()}var M=l.getLineStyle(),P=u.getAreaStyle();I(m,function(E,k){this.group.add(eh(E,{style:le({stroke:"none",fill:p[k%p.length]},P),silent:!0}))},this),I(g,function(E,k){this.group.add(eh(E,{style:le({fill:"none",stroke:d[k%d.length]},M),silent:!0}))},this)},e.type="radar",e})(bt),sN=(function(t){V(e,t);function e(r,n,i){var a=t.call(this,r,n,i)||this;return a.type="value",a.angle=0,a.name="",a}return e})(iS),lN=(function(){function t(e,r,n){this.type=Wo,this.dimensions=[],this._model=e,this._indicatorAxes=$(e.getIndicatorModels(),function(i,a){var o="indicator_"+a,s=new sN(o,new dn);return s.name=i.get("name"),s.model=i,i.axis=s,this.dimensions.push(o),s},this),this.resize(e,n)}return t.prototype.getIndicatorAxes=function(){return this._indicatorAxes},t.prototype.dataToPoint=function(e,r){var n=this._indicatorAxes[r];return this.coordToPoint(n.dataToCoord(e),r)},t.prototype.coordToPoint=function(e,r){var n=this._indicatorAxes[r],i=n.angle,a=this.cx+e*Math.cos(i),o=this.cy-e*Math.sin(i);return[a,o]},t.prototype.pointToData=function(e){var r=e[0]-this.cx,n=e[1]-this.cy,i=Math.sqrt(r*r+n*n);r/=i,n/=i;for(var a=Math.atan2(-n,r),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var f=this._indicatorAxes[u],c=Math.abs(a-f.angle);c<o&&(s=f,l=u,o=c)}return[l,+(s&&s.coordToData(i))]},t.prototype.resize=function(e,r){var n=Ji(e,r).refContainer,i=e.get("center"),a=e.get("clockwise")||!1,o=Math.min(n.width,n.height)/2;this.cx=Q(i[0],n.width)+n.x,this.cy=Q(i[1],n.height)+n.y,this.startAngle=e.get("startAngle")*Math.PI/180;var s=e.get("radius");(q(s)||me(s))&&(s=[0,s]),this.r0=Q(s[0],o),this.r=Q(s[1],o);var l=a?-1:1;I(this._indicatorAxes,function(u,f){u.setExtent(this.r0,this.r);var c=this.startAngle+l*f*Math.PI*2/this._indicatorAxes.length;c=Math.atan2(Math.sin(c),Math.cos(c)),u.angle=c},this)},t.prototype.update=function(e,r){var n=this._indicatorAxes,i=this._model,a=ql(i.get("splitNumber"),cw),o=new dn;o.setExtent(0,a),o.setConfig({interval:1}),I(n,function(s){AS(s,bS),Xb(s,o)})},t.prototype.convertToPixel=function(e,r,n){return console.warn("Not implemented."),null},t.prototype.convertFromPixel=function(e,r,n){return console.warn("Not implemented."),null},t.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},t.create=function(e,r){var n=[];return e.eachComponent(fw,function(i){var a=new t(i,e,r);n.push(a),i.coordinateSystem=a}),e.eachSeriesByType(iN,function(i){if(i.get("coordinateSystem")===Wo){var a=i.coordinateSystem=n[i.get("radarIndex")||0];a&&I(a.getIndicatorAxes(),function(o){fv(o,i,Wo)})}}),n},t.dimensions=[],t})();function uN(t){t.registerCoordinateSystem("radar",lN),t.registerComponentModel(aN),t.registerComponentView(oN),t.registerVisual({seriesType:"radar",reset:function(e){var r=e.getData();r.each(function(n){r.setItemVisual(n,"legendIcon","roundRect")}),r.setVisual("legendIcon","roundRect")}})}var fN=Ic(Ho,cN);function cN(t){t.eachSeriesByType(Ho,function(e){var r=e.getData(),n=[],i=e.coordinateSystem;if(i){var a=i.getIndicatorAxes();I(a,function(o,s){r.each(r.mapDimension(a[s].dim),function(l,u){n[u]=n[u]||[];var f=i.dataToPoint(l,s);n[u][s]=hw(f)?f:vw(i)})}),r.each(function(o){var s=Up(n[o],function(l){return hw(l)})||vw(i);n[o].push(s.slice()),r.setItemLayout(o,n[o])})}})}function hw(t){return!isNaN(t[0])&&!isNaN(t[1])}function vw(t){return[t.cx,t.cy]}function hN(t){rr(uN),t.registerChartView(nN),t.registerSeriesModel(rN),t.registerLayout(fN),t.registerProcessor(Tv("radar")),t.registerPreprocessor(tN)}var vN=(function(){function t(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return t})(),dN=(function(t){V(e,t);function e(r){var n=t.call(this,r)||this;return n.type="pointer",n}return e.prototype.getDefaultShape=function(){return new vN},e.prototype.buildPath=function(r,n){var i=Math.cos,a=Math.sin,o=n.r,s=n.width,l=n.angle,u=n.x-i(l)*s*(s>=o/3?1:2),f=n.y-a(l)*s*(s>=o/3?1:2);l=n.angle-Math.PI/2,r.moveTo(u,f),r.lineTo(n.x+i(l)*s,n.y+a(l)*s),r.lineTo(n.x+i(n.angle)*o,n.y+a(n.angle)*o),r.lineTo(n.x-i(l)*s,n.y-a(l)*s),r.lineTo(u,f)},e})(pe);function pN(t,e){var r=t.get("center"),n=e.getWidth(),i=e.getHeight(),a=Math.min(n,i),o=Q(r[0],e.getWidth()),s=Q(r[1],e.getHeight()),l=Q(t.get("radius"),a/2);return{cx:o,cy:s,r:l}}function Nu(t,e){var r=t==null?"":t+"";return e&&(q(e)?r=e.replace("{value}",r):ee(e)&&(r=e(t))),r}var gN=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){this.group.removeAll();var a=r.get(["axisLine","lineStyle","color"]),o=pN(r,i);this._renderMain(r,n,i,a,o),this._data=r.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(r,n,i,a,o){var s=this.group,l=r.get("clockwise"),u=-r.get("startAngle")/180*Math.PI,f=-r.get("endAngle")/180*Math.PI,c=r.getModel("axisLine"),v=c.get("roundCap"),h=v?cu:xr,d=c.get("show"),p=c.getModel("lineStyle"),g=p.get("width"),m=[u,f];pc(m,!l),u=m[0],f=m[1];for(var y=f-u,_=u,S=[],b=0;d&&b<a.length;b++){var w=Math.min(Math.max(a[b][0],0),1);f=u+y*w;var T=new h({shape:{startAngle:_,endAngle:f,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-g,r:o.r},silent:!0});T.setStyle({fill:a[b][1]}),T.setStyle(p.getLineStyle(["color","width"])),S.push(T),_=f}S.reverse(),I(S,function(D){return s.add(D)});var C=function(D){if(D<=0)return a[0][1];var x;for(x=0;x<a.length;x++)if(a[x][0]>=D&&(x===0?0:a[x-1][0])<D)return a[x][1];return a[x-1][1]};this._renderTicks(r,n,i,C,o,u,f,l,g),this._renderTitleAndDetail(r,n,i,C,o),this._renderAnchor(r,o),this._renderPointer(r,n,i,C,o,u,f,l,g)},e.prototype._renderTicks=function(r,n,i,a,o,s,l,u,f){for(var c=this.group,v=o.cx,h=o.cy,d=o.r,p=+r.get("min"),g=+r.get("max"),m=r.getModel("splitLine"),y=r.getModel("axisTick"),_=r.getModel("axisLabel"),S=r.get("splitNumber"),b=y.get("splitNumber"),w=Q(m.get("length"),d),T=Q(y.get("length"),d),C=s,D=(l-s)/S,x=D/b,A=m.getModel("lineStyle").getLineStyle(),L=y.getModel("lineStyle").getLineStyle(),M=m.get("distance"),P,E,k=0;k<=S;k++){if(P=Math.cos(C),E=Math.sin(C),m.get("show")){var O=M?M+f:f,R=new Cr({shape:{x1:P*(d-O)+v,y1:E*(d-O)+h,x2:P*(d-w-O)+v,y2:E*(d-w-O)+h},style:A,silent:!0});A.stroke==="auto"&&R.setStyle({stroke:a(k/S)}),c.add(R)}if(_.get("show")){var O=_.get("distance")+M,N=Nu(ve(k*(g-p)/S+p,zA),_.get("formatter")),F=a(k/S),B=P*(d-w-O)+v,G=E*(d-w-O)+h,X=_.get("rotate"),H=0;X==="radial"?(H=-C+2*Math.PI,H>Math.PI/2&&(H+=Math.PI)):X==="tangential"?H=-C-Math.PI/2:me(X)&&(H=X*Math.PI/180),H===0?c.add(new Me({style:Ot(_,{text:N,x:B,y:G,verticalAlign:E<-.8?"top":E>.8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:F}),silent:!0})):c.add(new Me({style:Ot(_,{text:N,x:B,y:G,verticalAlign:"middle",align:"center"},{inheritColor:F}),silent:!0,originX:B,originY:G,rotation:H}))}if(y.get("show")&&k!==S){var O=y.get("distance");O=O?O+f:f;for(var K=0;K<=b;K++){P=Math.cos(C),E=Math.sin(C);var ae=new Cr({shape:{x1:P*(d-O)+v,y1:E*(d-O)+h,x2:P*(d-T-O)+v,y2:E*(d-T-O)+h},silent:!0,style:L});L.stroke==="auto"&&ae.setStyle({stroke:a((k+K/b)/S)}),c.add(ae),C+=x}C-=x}else C+=D}},e.prototype._renderPointer=function(r,n,i,a,o,s,l,u,f){var c=this.group,v=this._data,h=this._progressEls,d=[],p=r.get(["pointer","show"]),g=r.getModel("progress"),m=g.get("show"),y=r.getData(),_=y.mapDimension("value"),S=+r.get("min"),b=+r.get("max"),w=[S,b],T=[s,l];function C(x,A){var L=y.getItemModel(x),M=L.getModel("pointer"),P=Q(M.get("width"),o.r),E=Q(M.get("length"),o.r),k=r.get(["pointer","icon"]),O=M.get("offsetCenter"),R=Q(O[0],o.r),N=Q(O[1],o.r),F=M.get("keepAspect"),B;return k?B=Ar(k,R-P/2,N-E,P,E,null,F):B=new dN({shape:{angle:-Math.PI/2,width:P,r:E,x:R,y:N}}),B.rotation=-(A+Math.PI/2),B.x=o.cx,B.y=o.cy,B}function D(x,A){var L=g.get("roundCap"),M=L?cu:xr,P=g.get("overlap"),E=P?g.get("width"):f/y.count(),k=P?o.r-E:o.r-(x+1)*E,O=P?o.r:o.r-x*E,R=new M({shape:{startAngle:s,endAngle:A,cx:o.cx,cy:o.cy,clockwise:u,r0:k,r:O}});return P&&(R.z2=It(y.get(_,x),[S,b],[100,0],!0)),R}(m||p)&&(y.diff(v).add(function(x){var A=y.get(_,x);if(p){var L=C(x,s);Ge(L,{rotation:-((isNaN(+A)?T[0]:It(A,w,T,!0))+Math.PI/2)},r),c.add(L),y.setItemGraphicEl(x,L)}if(m){var M=D(x,s),P=g.get("clip");Ge(M,{shape:{endAngle:It(A,w,T,P)}},r),c.add(M),Pc(r.seriesIndex,y.dataType,x,M),d[x]=M}}).update(function(x,A){var L=y.get(_,x);if(p){var M=v.getItemGraphicEl(A),P=M?M.rotation:s,E=C(x,P);E.rotation=P,Ie(E,{rotation:-((isNaN(+L)?T[0]:It(L,w,T,!0))+Math.PI/2)},r),c.add(E),y.setItemGraphicEl(x,E)}if(m){var k=h[A],O=k?k.shape.endAngle:s,R=D(x,O),N=g.get("clip");Ie(R,{shape:{endAngle:It(L,w,T,N)}},r),c.add(R),Pc(r.seriesIndex,y.dataType,x,R),d[x]=R}}).execute(),y.each(function(x){var A=y.getItemModel(x),L=A.getModel("emphasis"),M=L.get("focus"),P=L.get("blurScope"),E=L.get("disabled"),k=a(It(y.get(_,x),w,[0,1],!0));if(p){var O=y.getItemGraphicEl(x),R=y.getItemVisual(x,"style"),N=R.fill;if(O instanceof Mt){var F=O.style;O.useStyle(z({image:F.image,x:F.x,y:F.y,width:F.width,height:F.height},R))}else O.useStyle(R),O.type!=="pointer"&&O.setColor(N);O.setStyle(A.getModel(["pointer","itemStyle"]).getItemStyle()),O.style.fill==="auto"&&O.setStyle("fill",k),O.z2EmphasisLift=0,zr(O,A),Fr(O,M,P,E)}if(m){var B=d[x];B.useStyle(y.getItemVisual(x,"style")),B.setStyle(A.getModel(["progress","itemStyle"]).getItemStyle()),B.style.fill==="auto"&&B.setStyle("fill",k),B.z2EmphasisLift=0,zr(B,A),Fr(B,M,P,E)}}),this._progressEls=d)},e.prototype._renderAnchor=function(r,n){var i=r.getModel("anchor"),a=i.get("show");if(a){var o=i.get("size"),s=i.get("icon"),l=i.get("offsetCenter"),u=i.get("keepAspect"),f=Ar(s,n.cx-o/2+Q(l[0],n.r),n.cy-o/2+Q(l[1],n.r),o,o,null,u);f.z2=i.get("showAbove")?1:0,f.setStyle(i.getModel("itemStyle").getItemStyle()),this.group.add(f)}},e.prototype._renderTitleAndDetail=function(r,n,i,a,o){var s=this,l=r.getData(),u=l.mapDimension("value"),f=+r.get("min"),c=+r.get("max"),v=new Ce,h=[],d=[],p=r.isAnimationEnabled(),g=r.get(["pointer","showAbove"]);l.diff(this._data).add(function(m){h[m]=new Me({silent:!0}),d[m]=new Me({silent:!0})}).update(function(m,y){h[m]=s._titleEls[y],d[m]=s._detailEls[y]}).execute(),l.each(function(m){var y=l.getItemModel(m),_=l.get(u,m),S=new Ce,b=a(It(_,[f,c],[0,1],!0)),w=y.getModel("title");if(w.get("show")){var T=w.get("offsetCenter"),C=o.cx+Q(T[0],o.r),D=o.cy+Q(T[1],o.r),x=h[m];x.attr({z2:g?0:2,style:Ot(w,{x:C,y:D,text:l.getName(m),align:"center",verticalAlign:"middle"},{inheritColor:b})}),S.add(x)}var A=y.getModel("detail");if(A.get("show")){var L=A.get("offsetCenter"),M=o.cx+Q(L[0],o.r),P=o.cy+Q(L[1],o.r),E=Q(A.get("width"),o.r),k=Q(A.get("height"),o.r),O=r.get(["progress","show"])?l.getItemVisual(m,"style").fill:b,x=d[m],R=A.get("formatter");x.attr({z2:g?0:2,style:Ot(A,{x:M,y:P,text:Nu(_,R),width:isNaN(E)?null:E,height:isNaN(k)?null:k,align:"center",verticalAlign:"middle"},{inheritColor:O})}),ky(x,{normal:A},_,function(F){return Nu(F,R)}),p&&VM(x,m,l,r,{getFormattedLabel:function(F,B,G,X,H,K){return Nu(K?K.interpolatedValue:_,R)}}),S.add(x)}v.add(S)}),this.group.add(v),this._titleEls=h,this._detailEls=d},e.type="gauge",e})(je),mN=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.visualStyleAccessPath="itemStyle",r}return e.prototype.getInitialData=function(r,n){return pu(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,Y.color.neutral10]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:Y.color.axisTick,width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:Y.color.axisTickMinor,width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:Y.color.axisLabel,fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:Y.color.neutral00,borderWidth:0,borderColor:Y.color.theme[0]}},title:{show:!0,offsetCenter:[0,"20%"],color:Y.color.secondary,fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:Y.color.transparent,borderWidth:0,borderColor:Y.color.neutral40,width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:Y.color.primary,fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e})(ot);function yN(t){t.registerChartView(gN),t.registerSeriesModel(mN)}var pa="funnel",_N=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new xv(de(this.getData,this),de(this.getRawData,this)),this._defaultLabelLine(r)},e.prototype.getInitialData=function(r,n){return pu(this,{coordDimensions:["value"],encodeDefaulter:Oe(Fy,this)})},e.prototype._defaultLabelLine=function(r){js(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},e.prototype.getDataParams=function(r){var n=this.getData(),i=t.prototype.getDataParams.call(this,r),a=n.mapDimension("value"),o=n.getSum(a);return i.percent=o?+(n.get(a,r)/o*100).toFixed(2):0,i.$vars.push("percent"),i},e.type="series."+pa,e.defaultOption={coordinateSystemUsage:"box",z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:65,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:Y.color.neutral00,borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:Y.color.primary}}},e})(ot),SN=["itemStyle","opacity"],bN=(function(t){V(e,t);function e(r,n){var i=t.call(this)||this,a=i,o=new on,s=new Me;return a.setTextContent(s),i.setTextGuideLine(o),i.updateData(r,n,!0),i}return e.prototype.updateData=function(r,n,i){var a=this,o=r.hostModel,s=r.getItemModel(n),l=r.getItemLayout(n),u=s.getModel("emphasis"),f=s.get(SN);f=f??1,i||Ui(a),a.useStyle(r.getItemVisual(n,"style")),a.style.lineJoin="round",i?(a.setShape({points:l.points}),a.style.opacity=0,Ge(a,{style:{opacity:f}},o,n)):Ie(a,{style:{opacity:f},shape:{points:l.points}},o,n),zr(a,s),this._updateLabel(r,n),Fr(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(r,n){var i=this,a=this.getTextGuideLine(),o=i.getTextContent(),s=r.hostModel,l=r.getItemModel(n),u=r.getItemLayout(n),f=u.label,c=r.getItemVisual(n,"style"),v=c.fill;Kn(o,jn(l),{labelFetcher:r.hostModel,labelDataIndex:n,defaultOpacity:c.opacity,defaultText:r.getName(n)},{normal:{align:f.textAlign,verticalAlign:f.verticalAlign}});var h=l.getModel("label"),d=h.get("color"),p=d==="inherit"?v:null;i.setTextConfig({local:!0,inside:!!f.inside,insideStroke:p,outsideFill:p});var g=f.linePoints;a.setShape({points:g}),i.textGuideLineConfig={anchor:g?new re(g[0][0],g[0][1]):null},Ie(o,{style:{x:f.x,y:f.y}},s,n),o.attr({rotation:f.rotation,originX:f.x,originY:f.y,z2:10}),qS(i,ZS(l),{stroke:v})},e})(Gi),wN=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=pa,r.ignoreLabelLineUpdate=!0,r}return e.prototype.render=function(r,n,i){var a=r.getData(),o=this._data,s=this.group;a.diff(o).add(function(l){var u=new bN(a,l);a.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(a,l),s.add(f),a.setItemGraphicEl(l,f)}).remove(function(l){var u=o.getItemGraphicEl(l);Hi(u,r,l)}).execute(),this._data=a},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type=pa,e})(je);function TN(t,e){for(var r=t.mapDimension("value"),n=t.mapArray(r,function(l){return l}),i=[],a=e==="ascending",o=0,s=t.count();o<s;o++)i[o]=o;return ee(e)?i.sort(e):e!=="none"&&i.sort(function(l,u){return a?n[l]-n[u]:n[u]-n[l]}),i}function xN(t){var e=t.hostModel,r=dw(e);t.each(function(n){var i=t.getItemModel(n),a=i.getModel("label"),o=a.get("position"),s=i.getModel("labelLine"),l=t.getItemLayout(n),u=l.points,f=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",c,v,h,d;if(f)o==="insideLeft"?(v=(u[0][0]+u[3][0])/2+5,h=(u[0][1]+u[3][1])/2,c="left"):o==="insideRight"?(v=(u[1][0]+u[2][0])/2-5,h=(u[1][1]+u[2][1])/2,c="right"):(v=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,h=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,c="center"),d=[[v,h],[v,h]];else{var p=void 0,g=void 0,m=void 0,y=void 0,_=s.get("length");q(o)&&(!r&&fe(["top","bottom"],o)>-1&&(o="left"),r&&fe(["left","right"],o)>-1&&(o="bottom")),o==="left"?(p=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,m=p-_,v=m-5,c="right"):o==="right"?(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,m=p+_,v=m+5,c="left"):o==="top"?(p=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,y=g-_,h=y-5,c="center"):o==="bottom"?(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,y=g+_,h=y+5,c="center"):o==="rightTop"?(p=r?u[3][0]:u[1][0],g=r?u[3][1]:u[1][1],r?(y=g-_,h=y-5,c="center"):(m=p+_,v=m+5,c="top")):o==="rightBottom"?(p=u[2][0],g=u[2][1],r?(y=g+_,h=y+5,c="center"):(m=p+_,v=m+5,c="bottom")):o==="leftTop"?(p=u[0][0],g=r?u[0][1]:u[1][1],r?(y=g-_,h=y-5,c="center"):(m=p-_,v=m-5,c="right")):o==="leftBottom"?(p=r?u[1][0]:u[3][0],g=r?u[1][1]:u[2][1],r?(y=g+_,h=y+5,c="center"):(m=p-_,v=m-5,c="right")):(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,r?(y=g+_,h=y+5,c="center"):(m=p+_,v=m+5,c="left")),r?(m=p,v=m):(y=g,h=y),d=[[p,g],[m,y]]}l.label={linePoints:d,x:v,y:h,verticalAlign:"middle",textAlign:c,inside:f}})}var CN=Ic(pa,AN);function AN(t,e){t.eachSeriesByType(pa,function(r){var n=r.getData(),i=n.mapDimension("value"),a=r.get("sort"),o=Ji(r,e),s=Vr(r.getBoxLayoutParams(),o.refContainer),l=dw(r),u=s.width,f=s.height,c=TN(n,a),v=s.x,h=s.y,d=l?[Q(r.get("minSize"),f),Q(r.get("maxSize"),f)]:[Q(r.get("minSize"),u),Q(r.get("maxSize"),u)],p=n.getDataExtent(i),g=r.get("min"),m=r.get("max");g==null&&(g=Math.min(p[0],0)),m==null&&(m=p[1]);var y=r.get("funnelAlign"),_=r.get("gap"),S=l?u:f,b=(S-_*(n.count()-1))/n.count(),w=function(E,k){if(l){var O=n.get(i,E)||0,R=It(O,[g,m],d,!0),N=void 0;switch(y){case"top":N=h;break;case"center":N=h+(f-R)/2;break;case"bottom":N=h+(f-R);break}return[[k,N],[k,N+R]]}var F=n.get(i,E)||0,B=It(F,[g,m],d,!0),G;switch(y){case"left":G=v;break;case"center":G=v+(u-B)/2;break;case"right":G=v+u-B;break}return[[G,k],[G+B,k]]};a==="ascending"&&(b=-b,_=-_,l?v+=u:h+=f,c=c.reverse());for(var T=0;T<c.length;T++){var C=c[T],D=c[T+1],x=n.getItemModel(C);if(l){var A=x.get(["itemStyle","width"]);A==null?A=b:(A=Q(A,u),a==="ascending"&&(A=-A));var L=w(C,v),M=w(D,v+A);v+=A+_,n.setItemLayout(C,{points:L.concat(M.slice().reverse())})}else{var P=x.get(["itemStyle","height"]);P==null?P=b:(P=Q(P,f),a==="ascending"&&(P=-P));var L=w(C,h),M=w(D,h+P);h+=P+_,n.setItemLayout(C,{points:L.concat(M.slice().reverse())})}}xN(n)})}function dw(t){return t.get("orient")==="horizontal"}function DN(t){t.registerChartView(wN),t.registerSeriesModel(_N),t.registerLayout(CN),t.registerProcessor(Tv(pa))}var ci=Se(),pw=oe,wd=de,MN=(function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,r,n,i){var a=r.get("value"),o=r.get("status");if(this._axisModel=e,this._axisPointerModel=r,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,e,r,n);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(e,r);if(!s)s=this._group=new Ce,this.createPointerEl(s,u,e,r),this.createLabelEl(s,u,e,r),n.getZr().add(s);else{var v=Oe(gw,r,c);this.updatePointerEl(s,u,v),this.updateLabelEl(s,u,v,r)}_w(s,r,!0),this._renderHandle(a)}},t.prototype.remove=function(e){this.clear(e)},t.prototype.dispose=function(e){this.clear(e)},t.prototype.determineAnimation=function(e,r){var n=r.get("animation"),i=e.axis,a=i.type==="category",o=r.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&ia(i).w>s)return!0;if(o){var l=_d(e).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},t.prototype.makeElOption=function(e,r,n,i,a){},t.prototype.createPointerEl=function(e,r,n,i){var a=r.pointer;if(a){var o=ci(e).pointerEl=new Ay[a.type](pw(r.pointer));e.add(o)}},t.prototype.createLabelEl=function(e,r,n,i){if(r.label){var a=ci(e).labelEl=new Me(pw(r.label));e.add(a),yw(a,i)}},t.prototype.updatePointerEl=function(e,r,n){var i=ci(e).pointerEl;i&&r.pointer&&(i.setStyle(r.pointer.style),n(i,{shape:r.pointer.shape}))},t.prototype.updateLabelEl=function(e,r,n,i){var a=ci(e).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),yw(a,i))},t.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=rh(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){n1(u.event)},onmousedown:wd(this._onHandleDragMove,this,0,0),drift:wd(this._onHandleDragMove,this),ondragend:wd(this._onHandleDragEnd,this)}),n.add(i)),_w(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");W(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,RS(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},t.prototype._moveHandleToValue=function(e,r){gw(this._axisPointerModel,!r&&this._moveAnimation,this._handle,Td(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,r){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(Td(n),[e,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(Td(i)),ci(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var r=e.getZr(),n=this._group,i=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),i&&r.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),Sv(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(e,r,n){return n=n||0,{x:e[n],y:e[1-n],width:r[n],height:r[1-n]}},t})();function gw(t,e,r,n){mw(ci(r).lastProp,n)||(ci(r).lastProp=n,e?Ie(r,n,t):(r.stopAnimation(),r.attr(n)))}function mw(t,e){if(j(t)&&j(e)){var r=!0;return I(e,function(n,i){r=r&&mw(t[i],n)}),!!r}else return t===e}function yw(t,e){t[e.get(["label","show"])?"show":"hide"]()}function Td(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function _w(t,e,r){var n=e.get("z"),i=e.get("zlevel");t&&t.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=r)})}function IN(t){var e=t.get("type"),r=t.getModel(e+"Style"),n;return e==="line"?(n=r.getLineStyle(),n.fill=null):e==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function LN(t,e,r,n,i){var a=r.get("value"),o=Sw(a,e.axis,e.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=Bl(s.get("padding")||0),u=s.getFont(),f=ag(o,u),c=i.position,v=f.width+l[1]+l[3],h=f.height+l[0]+l[2],d=i.align;d==="right"&&(c[0]-=v),d==="center"&&(c[0]-=v/2);var p=i.verticalAlign;p==="bottom"&&(c[1]-=h),p==="middle"&&(c[1]-=h/2),PN(c,v,h,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:Ot(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function PN(t,e,r,n){var i=n.getWidth(),a=n.getHeight();t[0]=Math.min(t[0]+e,i)-e,t[1]=Math.min(t[1]+r,a)-r,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function Sw(t,e,r,n,i){t=e.scale.parse(t);var a=e.scale.getLabel({value:t},{precision:i.precision}),o=i.formatter;if(o){var s={value:Jl(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};I(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),q(o)?a=o.replace("{value}",a):ee(o)&&(a=o(s))}return a}function bw(t,e,r){var n=dr();return Sf(n,n,r.rotation),_f(n,n,r.position),th([t.dataToCoord(e),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function EN(t,e,r,n,i,a){var o=Hr.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),LN(e,n,i,a,{position:bw(n.axis,t,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function kN(t,e,r){return r=r||0,{x1:t[r],y1:t[1-r],x2:e[r],y2:e[1-r]}}function RN(t,e,r){return r=r||0,{x:t[r],y:t[1-r],width:e[r],height:e[1-r]}}function ON(t,e,r){return ia(t,{fromStat:{sers:$(e,function(n){return r.getSeriesByIndex(n.seriesIndex)})},min:1}).w}function NN(t,e,r){return[ge(qe(e[0],e[1]),t-r/2),qe(t+r/2,ge(e[0],e[1]))]}var BN=(function(t){V(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),f=s.getGlobalExtent(),c=ww(l,s).getOtherAxis(s).getGlobalExtent(),v=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=IN(a),d=FN[u](s,v,f,c,a.get("seriesDataIndices"),a.ecModel);d.style=h,r.graphicKey=d.type,r.pointer=d}var p=su(l.getRect(),i);EN(n,r,p,i,a,o)},e.prototype.getHandleTransform=function(r,n,i){var a=su(n.axis.grid.getRect(),n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=bw(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=ww(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[r.x,r.y];c[f]+=n[f],c[f]=qe(l[1],c[f]),c[f]=ge(l[0],c[f]);var v=(u[1]+u[0])/2,h=[v,v];h[f]=c[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:h,tooltipOption:d[f]}},e})(MN);function ww(t,e){var r={};return r[e.dim+"AxisIndex"]=e.index,t.getCartesian(r)}var FN={line:function(t,e,r,n){var i=kN([e,n[0]],[e,n[1]],Tw(t));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(t,e,r,n,i,a){var o=ON(t,i,a),s=n[1]-n[0],l=NN(e,r,o),u=l[0],f=l[1];return{type:"Rect",shape:RN([u,n[0]],[f-u,s],Tw(t))}}};function Tw(t){return t.dim==="x"?0:1}var zN=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:Y.color.border,width:1,type:"dashed"},shadowStyle:{color:Y.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:Y.color.neutral00,padding:[5,7,5,7],backgroundColor:Y.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:Y.color.accent40,throttle:40}},e})(ye),Xr=Se(),VN=I;function xw(t,e,r){if(!ie.node){var n=e.getZr();Xr(n).records||(Xr(n).records={}),GN(n,e);var i=Xr(n).records[t]||(Xr(n).records[t]={});i.handler=r}}function GN(t,e){if(Xr(t).initialized)return;Xr(t).initialized=!0,r("click",Oe(xd,"click")),r("mousemove",Oe(xd,"mousemove")),r("mousewheel",Oe(xd,"mousewheel")),r("globalout",UN);function r(n,i){t.on(n,function(a){var o=WN(e);VN(Xr(t).records,function(s){s&&i(s,a,o.dispatchAction)}),HN(o.pendings,e)})}}function HN(t,e){var r=t.showTip.length,n=t.hideTip.length,i;r?i=t.showTip[r-1]:n&&(i=t.hideTip[n-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function UN(t,e,r){t.handler("leave",null,r)}function xd(t,e,r,n){e.handler(t,r,n)}function WN(t){var e={showTip:[],hideTip:[]},r=function(n){var i=e[n.type];i?i.push(n):(n.dispatchAction=r,t.dispatchAction(n))};return{dispatchAction:r,pendings:e}}function Cd(t,e){if(!ie.node){var r=e.getZr(),n=(Xr(r).records||{})[t];n&&(Xr(r).records[t]=null)}}var YN=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){var a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click|mousewheel";xw("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(r,n){Cd("axisPointer",n)},e.prototype.dispose=function(r,n){Cd("axisPointer",n)},e.type="axisPointer",e})(bt);function Cw(t,e){var r=[],n=t.seriesIndex,i;if(n==null||!(i=e.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=Wn(a,t);if(o==null||o<0||W(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,v=u.dim,h=c==="x"||c==="radius"?1:0,d=a.mapDimension(v),p=[];p[h]=a.get(d,o),p[1-h]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(p)||[]}else r=l.dataToPoint(a.getValues($(l.dimensions,function(m){return a.mapDimension(m)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),r=[g.x+g.width/2,g.y+g.height/2]}return{point:r,el:s}}var Aw=Se();function $N(t,e,r){var n=t.currTrigger,i=[t.x,t.y],a=t,o=t.dispatchAction||de(r.dispatchAction,r),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Bu(i)&&(i=Cw({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var l=Bu(i),u=a.axesInfo,f=s.axesInfo,c=n==="leave"||Bu(i),v={},h={},d={list:[],map:{}},p={showPointer:Oe(qN,h),showTooltip:Oe(ZN,d)};I(s.coordSysMap,function(m,y){var _=l||m.containPoint(i);I(s.coordSysAxesInfo[y],function(S,b){var w=S.axis,T=JN(u,S);if(!c&&_&&(!u||T)){var C=T&&T.value;C==null&&!l&&(C=w.pointToData(i)),C!=null&&Dw(S,C,p,!1,v)}})});var g={};return I(f,function(m,y){var _=m.linkGroup;_&&!h[y]&&I(_.axesInfo,function(S,b){var w=h[b];if(S!==m&&w){var T=w.value;_.mapper&&(T=m.axis.scale.parse(_.mapper(T,Mw(S),Mw(m)))),g[m.key]=T}})}),I(g,function(m,y){Dw(f[y],m,p,!0,v)}),KN(h,f,v),jN(d,i,t,o),QN(f,o,r),v}}function Dw(t,e,r,n,i){var a=t.axis;if(!(a.scale.isBlank()||!a.containData(e))){if(!t.involveSeries){r.showPointer(t,e);return}var o=XN(e,t),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&z(i,s[0]),!n&&t.snap&&a.containData(l)&&l!=null&&(e=l),r.showPointer(t,e,s),r.showTooltip(t,o,l)}}function XN(t,e){var r=e.axis,n=r.dim,i=t,a=[],o=Number.MAX_VALUE,s=-1;return I(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),c,v;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(f,t,r);v=h.dataIndices,c=h.nestestValue}else{if(v=l.indicesOfNearest(n,f[0],t,r.type==="category"?.5:null),!v.length)return;c=l.getData().get(f[0],v[0])}if(Lt(c)){var d=t-c,p=Math.abs(d);p<=o&&((p<o||d>=0&&s<0)&&(o=p,s=d,i=c,a.length=0),I(v,function(g){a.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:i}}function qN(t,e,r,n){t[e.key]={value:r,payloadBatch:n}}function ZN(t,e,r,n){var i=r.payloadBatch,a=e.axis,o=a.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!i.length)){var l=e.coordSys.model,u=Go(l),f=t.map[u];f||(f=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function KN(t,e,r){var n=r.axesInfo=[];I(e,function(i,a){var o=i.axisPointerModel.option,s=t[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function jN(t,e,r,n){if(Bu(e)||!t.list.length){n({type:"hideTip"});return}var i=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:t.list})}function QN(t,e,r){var n=r.getZr(),i="axisPointerLastHighlights",a=Aw(n)[i]||{},o=Aw(n)[i]={};I(t,function(f,c){var v=f.axisPointerModel.option;v.status==="show"&&f.triggerEmphasis&&I(v.seriesDataIndices,function(h){o[h.seriesIndex+"|"+h.dataIndex]=h})});var s=[],l=[];function u(f){return{seriesIndex:f.seriesIndex,dataIndex:f.dataIndex}}I(a,function(f,c){!o[c]&&l.push(u(f))}),I(o,function(f,c){!a[c]&&s.push(u(f))}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function JN(t,e){for(var r=0;r<(t||[]).length;r++){var n=t[r];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function Mw(t){var e=t.axis.model,r={},n=r.axisDim=t.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=e.componentIndex,r.axisName=r[n+"AxisName"]=e.name,r.axisId=r[n+"AxisId"]=e.id,r}function Bu(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function Iw(t){aw.registerAxisPointerClass("CartesianAxisPointer",BN),t.registerComponentModel(zN),t.registerComponentView(YN),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var r=e.axisPointer.link;r&&!W(r)&&(e.axisPointer.link=[r])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,r){e.getComponent("axisPointer").coordSysAxesInfo=GO(e,r)}}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},$N)}function eB(t){rr(uw),rr(Iw)}function tB(t,e){var r=Bl(e.get("padding")),n=e.getItemStyle(["color","opacity"]);n.fill=e.get("backgroundColor");var i=new De({shape:{x:t.x-r[3],y:t.y-r[0],width:t.width+r[1]+r[3],height:t.height+r[0]+r[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1});return i}var rB=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click|mousewheel",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:Y.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:Y.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:Y.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:Y.color.tertiary,fontSize:14}},e})(ye);function Lw(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function Pw(t){if(ie.domSupported){for(var e=document.documentElement.style,r=0,n=t.length;r<n;r++)if(t[r]in e)return t[r]}}var Ew=Pw(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),nB=Pw(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function kw(t,e){if(!t)return e;e=k0(e,!0);var r=t.indexOf(e);return t=r===-1?e:"-"+t.slice(0,r)+"-"+e,t.toLowerCase()}function iB(t,e){var r=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return r?r[e]:null}var aB=kw(nB,"transition"),Ad=kw(Ew,"transform"),oB="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(ie.transform3dSupported?"will-change:transform;":"");function sB(t){return t=t==="left"?"right":t==="right"?"left":t==="top"?"bottom":"top",t}function lB(t,e,r){if(!q(r)||r==="inside")return"";var n=t.get("backgroundColor"),i=t.get("borderWidth");e=ri(e);var a=sB(r),o=Math.max(Math.round(i)*1.5,6),s="",l=Ad+":",u;fe(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var f=u*Math.PI/180,c=o+i,v=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),h=Math.round(((v-Math.SQRT2*i)/2+Math.SQRT2*i-(v-c)/2)*100)/100;s+=";"+a+":-"+h+"px";var d=e+" solid "+i+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'<div style="'+p.join("")+'"></div>'}function uB(t,e,r){var n="cubic-bezier(0.23,1,0.32,1)",i="",a="";return r&&(i=" "+t/2+"s "+n,a="opacity"+i+",visibility"+i),e||(i=" "+t+"s "+n,a+=(a.length?",":"")+(ie.transformSupported?""+Ad+i:",left"+i+",top"+i)),aB+":"+a}function Rw(t,e,r){var n=t.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!ie.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=ie.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+Ad+":"+o+";":[["top",0],["left",0],[Ew,o]]}function fB(t){var e=[],r=t.get("fontSize"),n=t.getTextColor();n&&e.push("color:"+n),e.push("font:"+t.getFont());var i=Z(t.get("lineHeight"),Math.round(r*3/2));r&&e.push("line-height:"+i+"px");var a=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,l=t.get("textShadowOffsetY")||0;return a&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),I(["decoration","align"],function(u){var f=t.get(u);f&&e.push("text-"+u+":"+f)}),e.join(";")}function cB(t,e,r,n){var i=[],a=t.get("transitionDuration"),o=t.get("backgroundColor"),s=t.get("shadowBlur"),l=t.get("shadowColor"),u=t.get("shadowOffsetX"),f=t.get("shadowOffsetY"),c=t.getModel("textStyle"),v=Q0(t,"html"),h=u+"px "+f+"px "+s+"px "+l;return i.push("box-shadow:"+h),e&&a>0&&i.push(uB(a,r,n)),o&&i.push("background-color:"+o),I(["width","color","radius"],function(d){var p="border-"+d,g=k0(p),m=t.get(g);m!=null&&i.push(p+":"+m+(d==="color"?"":"px"))}),i.push(fB(c)),v!=null&&i.push("padding:"+Bl(v).join("px ")+"px"),i.join(";")+";"}function Ow(t,e,r,n,i){var a=e&&e.painter;if(r){var o=a&&a.getViewportRoot();o&&zI(t,o,r,n,i)}else{t[0]=n,t[1]=i;var s=a&&a.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var hB=(function(){function t(e,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,ie.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=e.getZr(),a=r.appendTo,o=a&&(q(a)?document.querySelector(a):Ca(a)?a:ee(a)&&a(e.getDom()));Ow(this._styleCoord,i,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(n),this._api=e,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,f=i.painter.getViewportRoot();zt(f,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return t.prototype.update=function(e){if(!this._container){var r=this._api.getDom(),n=iB(r,"position"),i=r.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative")}var a=e.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this._enableDisplayTransition=e.get("displayTransition")&&e.get("transitionDuration")>0,this.el.className=e.get("className")||""},t.prototype.show=function(e,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=oB+cB(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+Rw(a[0],a[1],!0)+("border-color:"+ri(r)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,r,n,i,a){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(q(a)&&n.get("trigger")==="item"&&!Lw(n)&&(s=lB(n,i,a)),q(e))o.innerHTML=e+s;else if(e){o.innerHTML="",W(e)||(e=[e]);for(var l=0;l<e.length;l++)Ca(e[l])&&e[l].parentNode!==o&&o.appendChild(e[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},t.prototype.moveTo=function(e,r){if(this.el){var n=this._styleCoord;if(Ow(n,this._zr,this._container,e,r),n[0]!=null&&n[1]!=null){var i=this.el.style,a=Rw(n[0],n[1]);I(a,function(o){i[o[0]]=o[1]})}}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){var e=this,r=this.el.style;this._enableDisplayTransition?(r.visibility="hidden",r.opacity="0"):r.display="none",ie.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(de(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;VI(e&&e.painter&&e.painter.getViewportRoot(),this._container);var r=this.el;if(r){r.onmouseenter=r.onmousemove=r.onmouseleave=null;var n=r.parentNode;n&&n.removeChild(r)}this.el=this._container=null},t})(),vB=(function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),Bw(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return t.prototype.update=function(e){var r=e.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(e,r,n,i,a){var o=this;j(e)&&ht(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new Me({style:{rich:r.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Q0(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),I(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),I(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el,r=this.el.getBoundingRect(),n=Nw(e.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},t.prototype.moveTo=function(e,r){var n=this.el;if(n){var i=this._styleCoord;Bw(i,this._zr,e,r),e=i[0],r=i[1];var a=n.style,o=Sn(a.borderWidth||0),s=Nw(a);n.x=e+o+s.left,n.y=r+o+s.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(de(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t})();function Sn(t){return Math.max(0,t)}function Nw(t){var e=Sn(t.shadowBlur||0),r=Sn(t.shadowOffsetX||0),n=Sn(t.shadowOffsetY||0);return{left:Sn(e-r),right:Sn(e+r),top:Sn(e-n),bottom:Sn(e+n)}}function Bw(t,e,r,n){t[0]=r,t[1]=n,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var dB=new De({shape:{x:-1,y:-1,width:2,height:2}}),pB=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,n){if(!(ie.node||!n.getDom())){var i=r.getComponent("tooltip"),a=this._renderMode=dD(i.get("renderMode"));this._tooltipContent=a==="richText"?new vB(n):new hB(n,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},e.prototype.render=function(r,n,i){if(!(ie.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=i;var a=this._tooltipContent;a.update(r),a.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?RS(this,"_updatePosition",50,"fixRate"):Sv(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");xw("itemTooltip",this._api,de(function(i,a,o){n!=="none"&&(n.indexOf(i)>=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,i=this._api,a=r.get("triggerOn");if(r.get("trigger")!=="axis"&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(r,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(r,n,i,a){if(!(a.from===this.uid||ie.node||!i.getDom())){var o=Fw(a,i);this._ticket="";var s=a.dataByCoordSys,l=_B(a,n,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=dB;f.x=a.x,f.y=a.y,f.update(),ue(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,i,a))return;var c=Cw(a,n),v=c.point[0],h=c.point[1];v!=null&&h!=null&&this._tryShow({offsetX:v,offsetY:h,target:c.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},e.prototype.manuallyHideTip=function(r,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,a.from!==this.uid&&this._hide(Fw(a,i))},e.prototype._manuallyAxisShowTip=function(r,n,i,a){var o=a.seriesIndex,s=a.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var f=u.getData(),c=Yo([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},e.prototype._tryShow=function(r,n){var i=r.target,a=this._tooltipModel;if(a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(i){var s=ue(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null,this._cbParamsList=null;var l,u;zo(i,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(ue(f).dataIndex!=null?l=f:ue(f).tooltipConfig!=null&&(u=f))},!0),l?this._showSeriesItemTooltip(r,l,n):u?this._showComponentItemTooltip(r,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(n)}},e.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=de(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},e.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=Yo([n.tooltipOption],a),l=this._renderMode,u=[],f=ii("section",{blocks:[],noHeader:!0}),c=[],v=new Wh;I(r,function(y){I(y.dataByAxis,function(_){var S=i.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value,w=S.axis,T=w.scale.parse(b);if(!(!S||b==null)){var C=Sw(b,w,i,_.seriesDataIndices,_.valueLabelOpt),D=ii("section",{header:C,noHeader:!hr(C),sortBlocks:!0,blocks:[]});f.blocks.push(D),I(_.seriesDataIndices,function(x){var A=i.getSeriesByIndex(x.seriesIndex),L=x.dataIndexInside,M=A.getDataParams(L);if(!(M.dataIndex<0)){M.axisDim=_.axisDim,M.axisIndex=_.axisIndex,M.axisType=_.axisType,M.axisId=_.axisId,M.axisValue=Jl(S.axis,{value:T}),M.axisValueLabel=C,M.marker=v.makeTooltipMarker("item",ri(M.color),l);var P=F0(A.formatTooltip(L,!0,null)),E=P.frag;if(E){var k=Yo([A],a).get("valueFormatter");D.blocks.push(k?z({valueFormatter:k},E):E)}P.text&&c.push(P.text),u.push(M)}})}})}),f.blocks.reverse(),c.reverse();var h=n.position,d=s.get("order"),p=Z0(f,v,l,d,i.get("useUTC"),s.get("textStyle"));p&&c.unshift(p);var g=l==="richText"?`
|
|
38
|
+
`];function fn(t,e){return e.type=t,e}function Ch(t){return t.type==="section"}function ck(t){return Ch(t)?pM:cM}function fk(t){if(Ch(t)){var e=0,r=t.blocks.length,a=r>1||r>0&&!t.noHeader;return A(t.blocks,function(n){var i=fk(n);i>=e&&(e=i+ +(a&&(!i||Ch(n)&&!n.noHeader)))}),e}return 0}function pM(t,e,r,a){var n=e.noHeader,i=fM(fk(e)),o=[],s=e.blocks||[];Jt(!s||W(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(st(u,l)){var p=new z3(u[l],null);s.sort(function(v,m){return p.evaluate(v.sortParam,m.sortParam)})}else l==="seriesDesc"&&s.reverse()}A(s,function(v,m){var g=e.valueFormatter,y=ck(v)(g?H(H({},t),{valueFormatter:g}):t,v,m>0?i.html:0,a);y!=null&&o.push(y)});var c=t.renderMode==="richText"?o.join(i.richText):Dh(a,o.join(""),n?r:i.html);if(n)return c;var f=_h(e.header,"ordinal",t.useUTC),h=pk(a,t.renderMode).nameStyle,d=uk(a);return t.renderMode==="richText"?dk(t,f,h)+i.richText+c:Dh(a,'<div style="'+h+";"+d+';">'+pt(f)+"</div>"+c,r)}function cM(t,e,r,a){var n=t.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,p=e.valueFormatter||t.valueFormatter||function(k){return k=W(k)?k:[k],K(k,function(w,_){return _h(w,W(h)?h[_]:h,u)})};if(!(i&&o)){var c=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||$.color.secondary,n),f=i?"":_h(l,"ordinal",u),h=e.valueType,d=o?[]:p(e.value,e.rawDataIndex),v=!s||!i,m=!s&&i,g=pk(a,n),y=g.nameStyle,b=g.valueStyle;return n==="richText"?(s?"":c)+(i?"":dk(t,f,y))+(o?"":vM(t,d,v,m,b)):Dh(a,(s?"":c)+(i?"":hM(f,!s,y))+(o?"":dM(d,v,m,b)),r)}}function hk(t,e,r,a,n,i){if(t){var o=ck(t),s={useUTC:n,renderMode:r,orderMode:a,markupStyleCreator:e,valueFormatter:t.valueFormatter};return o(s,t,0,i)}}function fM(t){return{html:lM[t],richText:uM[t]}}function Dh(t,e,r){var a='<div style="clear:both"></div>',n="margin: "+r+"px 0 0",i=uk(t);return'<div style="'+n+";"+i+';">'+e+a+"</div>"}function hM(t,e,r){var a=e?"margin-left:2px":"";return'<span style="'+r+";"+a+'">'+pt(t)+"</span>"}function dM(t,e,r,a){var n=r?"10px":"20px",i=e?"float:right;margin-left:"+n:"";return t=W(t)?t:[t],'<span style="'+i+";"+a+'">'+K(t,function(o){return pt(o)}).join(" ")+"</span>"}function dk(t,e,r){return t.markupStyleCreator.wrapRichTextStyle(e,r)}function vM(t,e,r,a,n){var i=[n],o=a?10:20;return r&&i.push({padding:[0,0,0,o],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(W(e)?e.join(" "):e,i)}function vk(t,e){var r=t.getData().getItemVisual(e,"style"),a=r[t.visualDrawType];return pn(a)}function gk(t,e){var r=t.get("padding");return r??(e==="richText"?[8,10]:10)}var Ah=(function(){function t(){this.richTextStyles={},this._nextStyleNameId=lf()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,r,a){var n=a==="richText"?this._generateStyleName():null,i=FL({color:r,type:e,renderMode:a,markerId:n});return q(i)?i:(this.richTextStyles[n]=i.style,i.content)},t.prototype.wrapRichTextStyle=function(e,r){var a={};W(r)?A(r,function(i){return H(a,i)}):H(a,r);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+e+"}"},t})();function gM(t){var e=t.series,r=t.dataIndex,a=t.multipleSeries,n=e.getData(),i=n.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(r),l=W(s),u=vk(e,r),p,c,f,h;if(o>1||l&&!o){var d=mM(s,e,r,i,u);p=d.inlineValues,c=d.inlineValueTypes,f=d.blocks,h=d.inlineValues[0]}else if(o){var v=n.getDimensionInfo(i[0]);h=p=ai(n,r,i[0]),c=v.type}else h=p=l?s[0]:s;var m=uf(e),g=m&&e.name||"",y=n.getName(r),b=a?g:y;return fn("section",{header:g,noHeader:a||!m,sortParam:h,blocks:[fn("nameValue",{markerType:"item",markerColor:u,name:b,noName:!br(b),value:p,valueType:c,rawDataIndex:n.getRawIndex(r)})].concat(f||[])})}function mM(t,e,r,a,n){var i=e.getData(),o=ea(t,function(c,f,h){var d=i.getDimensionInfo(h);return c=c||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];a.length?A(a,function(c){p(ai(i,r,c),c)}):A(t,p);function p(c,f){var h=i.getDimensionInfo(f);!h||h.otherDims.tooltip===!1||(o?u.push(fn("nameValue",{markerType:"subItem",markerColor:n,name:h.displayName,value:c,valueType:h.type})):(s.push(c),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var ga=_e();function fu(t,e){return t.getName(e)||t.getId(e)}var yM="__universalTransitionEnabled",ft=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return e.prototype.init=function(r,a,n){this.seriesIndex=this.componentIndex,this.dataTask=Ho({count:kM,reset:wM}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,n);var i=ga(this).sourceManager=new ik(this);i.prepareSource();var o=this.getInitialData(r,n);yk(o,this),this.dataTask.context.data=o,ga(this).dataBeforeProcessed=o,mk(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(r,a){var n=Fo(this),i=n?zo(r):{},o=this.subType;ke.hasClass(o)&&(o+="Series"),Pe(r,a.getTheme().get(this.subType)),Pe(r,this.getDefaultOption()),_l(r,"label",["show"]),this.fillDataTextStyle(r.data),n&&va(r,i,n)},e.prototype.mergeOption=function(r,a){r=Pe(this.option,r,!0),this.fillDataTextStyle(r.data);var n=Fo(this);n&&va(this.option,r,n);var i=ga(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(r,a);yk(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,ga(this).dataBeforeProcessed=o,mk(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(r){if(r&&!yt(r))for(var a=["show"],n=0;n<r.length;n++)r[n]&&r[n].label&&_l(r[n],"label",a)},e.prototype.getInitialData=function(r,a){},e.prototype.appendData=function(r){var a=this.getRawData();a.appendData(r.data)},e.prototype.getData=function(r){var a=Lh(this);if(a){var n=a.context.data;return r==null||!n.getLinkedData?n:n.getLinkedData(r)}else return ga(this).data},e.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},e.prototype.setData=function(r){var a=Lh(this);if(a){var n=a.context;n.outputData=r,a!==this.dataTask&&(n.data=r)}ga(this).data=r},e.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return ae(r)},e.prototype.getSourceManager=function(){return ga(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return ga(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},e.prototype.indicesOfNearest=function(r,a,n,i){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(r);if(!s||!l)return[];var u=l.dataToCoord(n);i==null&&(i=1/0);for(var p=[],c=1/0,f=-1,h=0,d=o.getDimensionIndex(a),v=o.getStore(),m=0,g=v.count();m<g;m++){var y=v.get(d,m),b=l.dataToCoord(y),k=u-b,w=Math.abs(k);w<=i&&((w<c||w===c&&k>=0&&f<0)&&(c=w,f=k,h=0),k===f&&(p[h++]=m))}return p.length=h,p},e.prototype.formatTooltip=function(r,a,n){return gM({series:this,dataIndex:r,multipleSeries:a})},e.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(se.node&&!(r&&r.ssr))return!1;var a=this.getShallow("animation");return a&&this.getData().count()>this.getShallow("animationThreshold")&&(a=!1),!!a},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(r,a,n){var i=this.ecModel,o=Sh.prototype.getColorFromPalette.call(this,r,a,n);return o||(o=i.getColorFromPalette(r,a,n)),o},e.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(r,a){this._innerSelect(this.getData(a),r)},e.prototype.unselect=function(r,a){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,o=this.getData(a);if(i==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],u=fu(o,l);n[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(r,a){for(var n=[],i=0;i<r.length;i++)n[0]=r[i],this.isSelected(r[i],a)?this.unselect(n,a):this.select(n,a)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,a=he(r),n=[],i=0;i<a.length;i++){var o=r[a[i]];o>=0&&n.push(o)}return n},e.prototype.isSelected=function(r,a){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(a);return(n==="all"||n[fu(i,r)])&&!i.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[yM])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},e.prototype._innerSelect=function(r,a){var n,i,o=this.option,s=o.selectedMode,l=a.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){J(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,p=0;p<l;p++){var c=a[p],f=fu(r,c);u[f]=!0,this._selectedDataIndicesMap[f]=r.getRawIndex(c)}}else if(s==="single"||s===!0){var h=a[l-1],f=fu(r,h);o.selectedMap=(n={},n[f]=!0,n),this._selectedDataIndicesMap=(i={},i[f]=r.getRawIndex(h),i)}}},e.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var a=[];r.hasItemOption&&r.each(function(n){var i=r.getRawDataItem(n);i&&i.selected&&a.push(n)}),a.length>0&&this._innerSelect(r,a)}},e.registerClass=function(r){return ke.registerClass(r)},e.protoInitialize=(function(){var r=e.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"})(),e})(ke);Qt(ft,jL),Qt(ft,Sh),fm(ft,ke);function mk(t){var e=t.name;uf(t)||(t.name=bM(t)||e)}function bM(t){var e=t.getRawData(),r=e.mapDimensionsAll("seriesName"),a=[];return A(r,function(n){var i=e.getDimensionInfo(n);i.displayName&&a.push(i.displayName)}),a.join(" ")}function kM(t){return t.model.getRawData().count()}function wM(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),_M}function _M(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function yk(t,e){A(AT(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,ze(xM,e))})}function xM(t,e){var r=Lh(t);return r&&r.setOutputEnd((e||this).count()),e}function Lh(t){var e=(t.ecModel||{}).scheduler,r=e&&e.getPipeline(t.uid);if(r){var a=r.currentTask;if(a){var n=a.agentStubMap;n&&(a=n.get(t.uid))}return a}}var PM=me.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,a=e.cy,n=e.width/2,i=e.height/2;t.moveTo(r,a-i),t.lineTo(r+n,a+i),t.lineTo(r-n,a+i),t.closePath()}}),SM=me.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,a=e.cy,n=e.width/2,i=e.height/2;t.moveTo(r,a-i),t.lineTo(r+n,a),t.lineTo(r,a+i),t.lineTo(r-n,a),t.closePath()}}),TM=me.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.x,a=e.y,n=e.width/5*3,i=Math.max(n,e.height),o=n/2,s=o*o/(i-o),l=a-i+o+s,u=Math.asin(s/o),p=Math.cos(u)*o,c=Math.sin(u),f=Math.cos(u),h=o*.6,d=o*.7;t.moveTo(r-p,l+s),t.arc(r,l,o,Math.PI-u,Math.PI*2+u),t.bezierCurveTo(r+p-c*h,l+s+f*h,r,a-d,r,a),t.bezierCurveTo(r,a-d,r-p+c*h,l+s+f*h,r-p,l+s),t.closePath()}}),CM=me.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.height,a=e.width,n=e.x,i=e.y,o=a/3*2;t.moveTo(n,i),t.lineTo(n+o,i+r),t.lineTo(n,i+r/4*3),t.lineTo(n-o,i+r),t.lineTo(n,i),t.closePath()}}),DM={line:Er,rect:Ie,roundRect:Ie,square:Ie,circle:ko,diamond:SM,pin:TM,arrow:CM,triangle:PM},AM={line:function(t,e,r,a,n){n.x1=t,n.y1=e+a/2,n.x2=t+r,n.y2=e+a/2},rect:function(t,e,r,a,n){n.x=t,n.y=e,n.width=r,n.height=a},roundRect:function(t,e,r,a,n){n.x=t,n.y=e,n.width=r,n.height=a,n.r=Math.min(r,a)/4},square:function(t,e,r,a,n){var i=Math.min(r,a);n.x=t,n.y=e,n.width=i,n.height=i},circle:function(t,e,r,a,n){n.cx=t+r/2,n.cy=e+a/2,n.r=Math.min(r,a)/2},diamond:function(t,e,r,a,n){n.cx=t+r/2,n.cy=e+a/2,n.width=r,n.height=a},pin:function(t,e,r,a,n){n.x=t+r/2,n.y=e+a/2,n.width=r,n.height=a},arrow:function(t,e,r,a,n){n.x=t+r/2,n.y=e+a/2,n.width=r,n.height=a},triangle:function(t,e,r,a,n){n.cx=t+r/2,n.cy=e+a/2,n.width=r,n.height=a}},Mh={};A(DM,function(t,e){Mh[e]=new t});var LM=me.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,r){var a=Ws(t,e,r),n=this.shape;return n&&n.symbolType==="pin"&&e.position==="inside"&&(a.y=r.y+r.height*.4),a},buildPath:function(t,e,r){var a=e.symbolType;if(a!=="none"){var n=Mh[a];n||(a="rect",n=Mh[a]),AM[a](e.x,e.y,e.width,e.height,n.shape),n.buildPath(t,n.shape,r)}}});function MM(t,e){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=t,r.fill=e||$.color.neutral00,r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=t:r.fill=t,this.markRedraw()}}function Ir(t,e,r,a,n,i,o){var s=t.indexOf("empty")===0;s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var l;return t.indexOf("image://")===0?l=O0(t.slice(8),new oe(e,r,a,n),o?"center":"cover"):t.indexOf("path://")===0?l=Ff(t.slice(7),{},new oe(e,r,a,n),o?"center":"cover"):l=new LM({shape:{symbolType:t,x:e,y:r,width:a,height:n}}),l.__isEmptyBrush=s,l.setColor=MM,i&&l.setColor(i),l}function bk(t){return W(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function kk(t,e){if(t!=null)return W(t)||(t=[t,t]),[ee(t[0],e[0])||0,ee(Z(t[1],t[0]),e[1])||0]}var EM=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r){return Jl(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(r){var a=new Me,n=Ir("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);a.add(n),n.setStyle(r.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,l=r.itemHeight*.8,u=Ir(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);a.add(u),u.setStyle(r.itemStyle);var p=r.iconRotate==="inherit"?o:r.iconRotate||0;return u.rotation=p*Math.PI/180,u.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill=$.color.neutral00,u.style.lineWidth=2),a},e.type="series.line",e.dependencies=["grid","polar"],e.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},e})(ft);function Eh(t,e){var r=t.mapDimensionsAll("defaultedLabel"),a=r.length;if(a===1){var n=ai(t,e,r[0]);return n!=null?n+"":null}else if(a){for(var i=[],o=0;o<r.length;o++)i.push(ai(t,e,r[o]));return i.join(" ")}}function wk(t,e){var r=t.mapDimensionsAll("defaultedLabel");if(!W(e))return e+"";for(var a=[],n=0;n<r.length;n++){var i=t.getDimensionIndex(r[n]);i>=0&&a.push(e[i])}return a.join(" ")}var Ih=(function(t){V(e,t);function e(r,a,n,i){var o=t.call(this)||this;return o.updateData(r,a,n,i),o}return e.prototype._createSymbol=function(r,a,n,i,o,s){this.removeAll();var l=Ir(r,-1,-1,2,2,null,s);l.attr({z2:Z(o,100),culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),l.drift=IM,this._symbolType=r,this.add(l)},e.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){Ll(this.childAt(0))},e.prototype.downplay=function(){Ml(this.childAt(0))},e.prototype.setZ=function(r,a){var n=this.childAt(0);n.zlevel=r,n.z=a},e.prototype.setDraggable=function(r,a){var n=this.childAt(0);n.draggable=r,n.cursor=!a&&r?"move":n.cursor},e.prototype.updateData=function(r,a,n,i){this.silent=!1;var o=r.getItemVisual(a,"symbol")||"circle",s=r.hostModel,l=e.getSymbolSize(r,a),u=e.getSymbolZ2(r,a),p=o!==this._symbolType,c=i&&i.disableAnimation;if(p){var f=r.getItemVisual(a,"symbolKeepAspect");this._createSymbol(o,r,a,l,u,f)}else{var h=this.childAt(0);h.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};c?h.attr(d):Re(h,d,s,a),ei(h)}if(this._updateCommon(r,a,l,n,i),p){var h=this.childAt(0);if(!c){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,Ye(h,d,s,a)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(r,a,n,i,o){var s=this.childAt(0),l=r.hostModel,u,p,c,f,h,d,v,m,g;if(i&&(u=i.emphasisItemStyle,p=i.blurItemStyle,c=i.selectItemStyle,f=i.focus,h=i.blurScope,v=i.labelStatesModels,m=i.hoverScale,g=i.cursorStyle,d=i.emphasisDisabled),!i||r.hasItemOption){var y=i&&i.itemModel?i.itemModel:r.getItemModel(a),b=y.getModel("emphasis");u=b.getModel("itemStyle").getItemStyle(),c=y.getModel(["select","itemStyle"]).getItemStyle(),p=y.getModel(["blur","itemStyle"]).getItemStyle(),f=b.get("focus"),h=b.get("blurScope"),d=b.get("disabled"),v=nn(y),m=b.getShallow("scale"),g=y.getShallow("cursor")}var k=r.getItemVisual(a,"symbolRotate");s.attr("rotation",(k||0)*Math.PI/180||0);var w=kk(r.getItemVisual(a,"symbolOffset"),n);w&&(s.x=w[0],s.y=w[1]),g&&s.attr("cursor",g);var _=r.getItemVisual(a,"style"),x=_.fill;if(s instanceof Bt){var T=s.style;s.useStyle(H({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},_))}else s.__isEmptyBrush?s.useStyle(H({},_)):s.useStyle(_),s.style.decal=null,s.setColor(x,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=r.getItemVisual(a,"liftZ"),P=this._z2;C!=null?P==null&&(this._z2=s.z2,s.z2+=C):P!=null&&(s.z2=P,this._z2=null);var S=o&&o.useNameLabel;an(s,v,{labelFetcher:l,labelDataIndex:a,defaultText:L,inheritColor:x,defaultOpacity:_.opacity});function L(I){return S?r.getName(I):Eh(r,I)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var D=s.ensureState("emphasis");D.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=p;var M=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;D.scaleX=this._sizeX*M,D.scaleY=this._sizeY*M,this.setSymbolScale(1),Wr(this,f,h,d)},e.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},e.prototype.fadeOut=function(r,a,n){var i=this.childAt(0),o=ce(this).dataIndex,s=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var l=i.getTextContent();l&&Hl(l,{style:{opacity:0}},a,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Hl(i,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:r,removeOpt:s})},e.getSymbolSize=function(r,a){return bk(r.getItemVisual(a,"symbolSize"))},e.getSymbolZ2=function(r,a){return r.getItemVisual(a,"z2")},e})(Me);function IM(t,e){this.parent.drift(t,e)}function hu(t,e,r,a){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(a&&a.isIgnore&&a.isIgnore(r))&&!(a&&a.clipShape&&!a.clipShape.contain(e[0],e[1]))&&t.getItemVisual(r,"symbol")!=="none"}function _k(t){return t!=null&&!J(t)&&(t={isIgnore:t}),t||{}}function xk(t){var e=t.hostModel,r=e.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:nn(e),cursorStyle:e.get("cursor")}}function Pk(t,e,r,a,n,i,o){var s=new t(e,r,a,n);return s.setPosition(i),e.setItemGraphicEl(r,s),o.add(s),s}var Sk=(function(){function t(e){this.group=new Me,this._SymbolCtor=e||Ih}return t.prototype.updateData=function(e,r){this._progressiveEls=null,r=_k(r);var a=this.group,n=e.hostModel,i=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=this._seriesScope=xk(e),u={disableAnimation:s},p=r.getSymbolPoint||function(c){return e.getItemLayout(c)};i||a.removeAll(),e.diff(i).add(function(c){var f=p(c);hu(e,f,c,r)&&Pk(o,e,c,l,u,f,a)}).update(function(c,f){var h=i.getItemGraphicEl(f),d=p(c);if(!hu(e,d,c,r)){a.remove(h);return}var v=e.getItemVisual(c,"symbol")||"circle",m=h&&h.getSymbolType&&h.getSymbolType();if(!h||m&&m!==v)a.remove(h),h=new o(e,c,l,u),h.setPosition(d);else{h.updateData(e,c,l,u);var g={x:d[0],y:d[1]};s?h.attr(g):Re(h,g,n)}a.add(h),e.setItemGraphicEl(c,h)}).remove(function(c){var f=i.getItemGraphicEl(c);f&&f.fadeOut(function(){a.remove(f)},n)}).execute(),this._getSymbolPoint=p,this._data=e},t.prototype.updateLayout=function(e){var r=this._data;if(r)for(var a=this,n=r.getStore(),i=0,o=n.count();i<o;i++){var s=r.getItemGraphicEl(i),l=a._getSymbolPoint(i);hu(r,l,i,e)?(s=s||Pk(a._SymbolCtor,r,i,a._seriesScope,{disableAnimation:!0},l,a.group),s.stopAnimation(),s.setPosition(l),s.markRedraw()):s&&(a.group.remove(s),r.setItemGraphicEl(i,null))}},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=xk(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r,a,n){this._progressiveEls=[],n=_k(n);function i(u){u.isGroup||(u.incremental=a,u.ensureState("emphasis").hoverLayer=Nf)}for(var o=e.start;o<e.end;o++){var s=r.getItemLayout(o);if(hu(r,s,o,n)){var l=new this._SymbolCtor(r,o,this._seriesScope);l.traverse(i),l.setPosition(s),this.group.add(l),r.setItemGraphicEl(o,l),this._progressiveEls.push(l)}}},t.prototype.eachRendered=function(e){Gl(this._progressiveEls||this.group,e)},t.prototype.remove=function(e){var r=this.group,a=this._data;a&&e?a.eachItemGraphicEl(function(n){n.fadeOut(function(){r.remove(n)},a.hostModel)}):r.removeAll()},t})();function Tk(t,e,r){var a=t.getBaseAxis(),n=t.getOtherAxis(a),i=OM(n,r),o=a.dim,s=n.dim,l=e.mapDimension(s),u=e.mapDimension(o),p=s==="x"||s==="radius"?1:0,c=K(t.dimensions,function(d){return e.mapDimension(d)}),f=!1,h=e.getCalculationInfo("stackResultDimension");return si(e,c[0])&&(f=!0,c[0]=h),si(e,c[1])&&(f=!0,c[1]=h),{dataDimsForPoint:c,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!f,valueDim:l,baseDim:u,baseDataOffset:p,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function OM(t,e){var r=0,a=t.scale.getExtent();return e==="start"?r=a[0]:e==="end"?r=a[1]:be(e)&&!isNaN(e)?r=e:a[0]>0?r=a[0]:a[1]<0&&(r=a[1]),r}function Ck(t,e,r,a){var n=NaN;t.stacked&&(n=r.get(r.getCalculationInfo("stackedOverDimension"),a)),isNaN(n)&&(n=t.valueStart);var i=t.baseDataOffset,o=[];return o[i]=r.get(t.baseDim,a),o[1-i]=n,e.dataToPoint(o)}function $t(t,e){return!isFinite(t)||!isFinite(e)}var RM=typeof Float32Array!==Xn?Float32Array:void 0,BM=typeof Float64Array!==Xn?Float64Array:void 0;function Kr(t){return Oh({ctor:RM},t).arr}function Oh(t,e){var r=t.arr,a=t.ctor;if(e>Ay&&(e=Ay),!r||t.typed&&r.length<e){var n=void 0;if(a)try{n=new a(e),t.typed=!0,r&&n.set(r)}catch{}if(!n&&(n=[],t.typed=!1,r))for(var i=0,o=r.length;i<o;i++)n[i]=r[i];t.arr=n}return t}function NM(t,e){var r=[];return e.diff(t).add(function(a){r.push({cmd:"+",idx:a})}).update(function(a,n){r.push({cmd:"=",idx:n,idx1:a})}).remove(function(a){r.push({cmd:"-",idx:a})}).execute(),r}function FM(t,e,r,a,n,i,o,s){for(var l=NM(t,e),u=[],p=[],c=[],f=[],h=[],d=[],v=[],m=Tk(n,e,o),g=t.getLayout("points")||[],y=e.getLayout("points")||[],b=0;b<l.length;b++){var k=l[b],w=!0,_=void 0,x=void 0;switch(k.cmd){case"=":_=k.idx*2,x=k.idx1*2;var T=g[_],C=g[_+1],P=y[x],S=y[x+1];(isNaN(T)||isNaN(C))&&(T=P,C=S),u.push(T,C),p.push(P,S),c.push(r[_],r[_+1]),f.push(a[x],a[x+1]),v.push(e.getRawIndex(k.idx1));break;case"+":var L=k.idx,D=m.dataDimsForPoint,M=n.dataToPoint([e.get(D[0],L),e.get(D[1],L)]);x=L*2,u.push(M[0],M[1]),p.push(y[x],y[x+1]);var I=Ck(m,n,e,L);c.push(I[0],I[1]),f.push(a[x],a[x+1]),v.push(e.getRawIndex(L));break;case"-":w=!1}w&&(h.push(k),d.push(d.length))}d.sort(function(j,ne){return v[j]-v[ne]});for(var E=u.length,O=Kr(E),R=Kr(E),B=Kr(E),N=Kr(E),F=[],b=0;b<d.length;b++){var U=d[b],Y=b*2,z=U*2;O[Y]=u[z],O[Y+1]=u[z+1],R[Y]=p[z],R[Y+1]=p[z+1],B[Y]=c[z],B[Y+1]=c[z+1],N[Y]=f[z],N[Y+1]=f[z+1],F[b]=h[U]}return{current:O,next:R,stackedOnCurrent:B,stackedOnNext:N,status:F}}var ma=Math.min,ya=Math.max;function Rh(t,e,r,a,n,i,o,s,l){for(var u,p,c,f,h,d,v=r,m=0;m<a;m++){var g=e[v*2],y=e[v*2+1];if(v>=n||v<0)break;if($t(g,y)){if(l){v+=i;continue}break}if(v===r)t[i>0?"moveTo":"lineTo"](g,y),c=g,f=y;else{var b=g-u,k=y-p;if(b*b+k*k<.5){v+=i;continue}if(o>0){for(var w=v+i,_=e[w*2],x=e[w*2+1];_===g&&x===y&&m<a;)m++,w+=i,v+=i,_=e[w*2],x=e[w*2+1],g=e[v*2],y=e[v*2+1],b=g-u,k=y-p;var T=m+1;if(l)for(;$t(_,x)&&T<a;)T++,w+=i,_=e[w*2],x=e[w*2+1];var C=.5,P=0,S=0,L=void 0,D=void 0;if(T>=a||$t(_,x))h=g,d=y;else{P=_-u,S=x-p;var M=g-u,I=_-g,E=y-p,O=x-y,R=void 0,B=void 0;if(s==="x"){R=Math.abs(M),B=Math.abs(I);var N=P>0?1:-1;h=g-N*R*o,d=y,L=g+N*B*o,D=y}else if(s==="y"){R=Math.abs(E),B=Math.abs(O);var F=S>0?1:-1;h=g,d=y-F*R*o,L=g,D=y+F*B*o}else R=Math.sqrt(M*M+E*E),B=Math.sqrt(I*I+O*O),C=B/(B+R),h=g-P*o*(1-C),d=y-S*o*(1-C),L=g+P*o*C,D=y+S*o*C,L=ma(L,ya(_,g)),D=ma(D,ya(x,y)),L=ya(L,ma(_,g)),D=ya(D,ma(x,y)),P=L-g,S=D-y,h=g-P*R/B,d=y-S*R/B,h=ma(h,ya(u,g)),d=ma(d,ya(p,y)),h=ya(h,ma(u,g)),d=ya(d,ma(p,y)),P=g-h,S=y-d,L=g+P*B/R,D=y+S*B/R}t.bezierCurveTo(c,f,h,d,g,y),c=L,f=D}else t.lineTo(g,y)}u=g,p=y,v+=i}return m}var Dk=(function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t})(),zM=(function(t){V(e,t);function e(r){var a=t.call(this,r)||this;return a.type="ec-polyline",a}return e.prototype.getDefaultStyle=function(){return{stroke:$.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new Dk},e.prototype.buildPath=function(r,a){var n=a.points,i=0,o=n.length/2;if(a.connectNulls){for(;o>0&&$t(n[o*2-2],n[o*2-1]);o--);for(;i<o&&$t(n[i*2],n[i*2+1]);i++);}for(;i<o;)i+=Rh(r,n,i,o,o,1,a.smooth,a.smoothMonotone,a.connectNulls)+1},e.prototype.getPointOn=function(r,a){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path,i=n.data,o=sa.CMD,s,l,u=a==="x",p=[],c=0;c<i.length;){var f=i[c++],h=void 0,d=void 0,v=void 0,m=void 0,g=void 0,y=void 0,b=void 0;switch(f){case o.M:s=i[c++],l=i[c++];break;case o.L:if(h=i[c++],d=i[c++],b=u?(r-s)/(h-s):(r-l)/(d-l),b<=1&&b>=0){var k=u?(d-l)*b+l:(h-s)*b+s;return u?[r,k]:[k,r]}s=h,l=d;break;case o.C:h=i[c++],d=i[c++],v=i[c++],m=i[c++],g=i[c++],y=i[c++];var w=u?qs(s,h,v,g,r,p):qs(l,d,m,y,r,p);if(w>0)for(var _=0;_<w;_++){var x=p[_];if(x<=1&&x>=0){var k=u?je(l,d,m,y,x):je(s,h,v,g,x);return u?[r,k]:[k,r]}}s=g,l=y;break}}},e})(me),HM=(function(t){V(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(Dk),VM=(function(t){V(e,t);function e(r){var a=t.call(this,r)||this;return a.type="ec-polygon",a}return e.prototype.getDefaultShape=function(){return new HM},e.prototype.buildPath=function(r,a){var n=a.points,i=a.stackedOnPoints,o=0,s=n.length/2,l=a.smoothMonotone;if(a.connectNulls){for(;s>0&&$t(n[s*2-2],n[s*2-1]);s--);for(;o<s&&$t(n[o*2],n[o*2+1]);o++);}for(;o<s;){var u=Rh(r,n,o,s,s,1,a.smooth,l,a.connectNulls);Rh(r,i,o+u-1,u,s,-1,a.stackedOnSmooth,l,a.connectNulls),o+=u+1,r.closePath()}},e})(me);function Bh(){var t=_e();return function(e){var r=t(e),a=e.pipelineContext,n=!!r.large,i=!!r.progressiveRender,o=r.large=!!(a&&a.large),s=r.progressiveRender=!!(a&&a.progressiveRender);return(n!==o||i!==s)&&"reset"}}var Ak=_e(),UM=Bh(),at=(function(){function t(){this.group=new Me,this.uid=Io("viewChart"),this.renderTask=Ho({plan:GM,reset:WM}),this.renderTask.context={view:this}}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,a,n){},t.prototype.highlight=function(e,r,a,n){var i=e.getData(n&&n.dataType);i&&Mk(i,n,"emphasis")},t.prototype.downplay=function(e,r,a,n){var i=e.getData(n&&n.dataType);i&&Mk(i,n,"normal")},t.prototype.remove=function(e,r){this.group.removeAll()},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,a,n){this.render(e,r,a,n)},t.prototype.updateVisual=function(e,r,a,n){this.render(e,r,a,n)},t.prototype.eachRendered=function(e){Gl(this.group,e)},t.markUpdateMethod=function(e,r){Ak(e).updateMethod=r},t.protoInitialize=(function(){var e=t.prototype;e.type="chart"})(),t})();function Lk(t,e,r){t&&Cf(t)&&(e==="emphasis"?Ll:Ml)(t,r)}function Mk(t,e,r){var a=Za(t,e),n=e&&e.highlightKey!=null?bA(e.highlightKey):null;a!=null?A(ut(a),function(i){Lk(t.getItemGraphicEl(i),r,n)}):t.eachItemGraphicEl(function(i){Lk(i,r,n)})}Jp(at),Vs(at);function GM(t){return UM(t.model)}function WM(t){var e=t.model,r=t.ecModel,a=t.api,n=t.payload,i=e.pipelineContext.progressiveRender,o=t.view,s=n&&Ak(n).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,r,a,n),$M[l]}var $M={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};function Ek(t,e,r,a,n){var i=t.getArea(),o=i.x,s=i.y,l=i.width,u=i.height,p=r.get(["lineStyle","width"])||0;o-=p/2,s-=p/2,l+=p,u+=p,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var c=new Ie({shape:{x:o,y:s,width:l,height:u}});if(e){var f=t.getBaseAxis(),h=f.isHorizontal(),d=f.inverse;h?(d&&(c.shape.x+=l),c.shape.width=0):(d||(c.shape.y+=u),c.shape.height=0);var v=re(n)?function(m){n(m,c)}:null;Ye(c,{shape:{width:l,height:u,x:o,y:s}},r,null,a,v)}return c}function Ik(t,e,r){var a=t.getArea(),n=ve(a.r0,1),i=ve(a.r,1),o=new Mr({shape:{cx:ve(t.cx,1),cy:ve(t.cy,1),r0:n,r:i,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}});if(e){var s=t.getBaseAxis().dim==="angle";s?o.shape.endAngle=a.startAngle:o.shape.r=n,Ye(o,{shape:{endAngle:a.endAngle,r:i}},r)}return o}function YM(t,e,r,a,n){if(t){if(t.type==="polar")return Ik(t,e,r);if(t.type==="cartesian2d")return Ek(t,e,r,a,n)}else return null;return null}function KM(t){var e=t.coordinateSystem;if(t.get("clip",!0)&&e&&(!e.shouldClip||e.shouldClip()))return e.getArea&&e.getArea(.1)}function Ok(t,e){return t.type===e}var or=(function(){function t(){}return t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t})();Vs(or);var XM=0,Nh=(function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++XM,this._onCollect=e.onCollect}return t.createByAxisModel=function(e){var r=e.option,a=r.data,n=a&&K(a,qM);return new t({categories:n,needCollect:!n,deduplication:r.dedplication!==!1})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var r,a=this._needCollect;if(!q(e)&&!a)return e;if(a&&!this._deduplication)return r=this.categories.length,this.categories[r]=e,this._onCollect&&this._onCollect(e,r),r;var n=this._getOrCreateMap();return r=n.get(e),r==null&&(a?(r=this.categories.length,this.categories[r]=e,n.set(e,r),this._onCollect&&this._onCollect(e,r)):r=NaN),r},t.prototype._getOrCreateMap=function(){return this._map||(this._map=ae(this.categories))},t})();function qM(t){return J(t)&&t.value!=null?t.value:t+""}var Yt=0,Vo=1,jM={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},Rk=he(jM),du=2,Bk=3;function Fh(t,e,r){var a;t=t||{};var n=ct();if(n){var i=n.createBreakScaleMapper(e,r);i.hasBreaks()&&(A(Rk,function(o){i[o]&&(t[o]=ge(i[o],i))}),a=i)}return a==null&&QM(t,r),{brk:a,mapper:t}}function Nk(t,e){A(Rk,function(r){t[r]=e[r]})}function Fk(t,e){t.freeze=qe}function Uo(t){return t.getExtentUnsafe(Yt,du)}function vu(t,e){return t.getExtentUnsafe(Vo,e)||t.getExtentUnsafe(Yt,e)}function ZM(t){var e=vu(t,Bk);return e[1]-e[0]}function gu(t){var e=t.getExtentUnsafe(Yt,Bk);return e[1]-e[0]}function QM(t,e){var r=t||{},a=[];return r._extents=a,a[Yt]=e?e.slice():Ht(),H(r,JM),r}var JM={needTransform:function(){return!1},normalize:function(t){var e=this._extents[Vo]||this._extents[Yt];return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},scale:function(t){var e=this._extents[Vo]||this._extents[Yt];return t*(e[1]-e[0])+e[0]},transformIn:function(t){return t},transformOut:function(t){return t},contain:function(t){var e=vu(this,null);return t>=e[0]&&t<=e[1]},getExtent:function(){return this._extents[Yt].slice()},getExtentUnsafe:function(t){return this._extents[t]},setExtent:function(t,e){zk(this._extents,Yt,t,e)},setExtent2:function(t,e,r){var a=this._extents;a[t]||(a[t]=a[Yt].slice()),zk(a,t,e,r)},freeze:function(){}};function zk(t,e,r,a){Kn(r,a)&&(t[e][0]=r,t[e][1]=a)}function Hk(t){return mu(t)||ci(t)}function mu(t){return t.type==="interval"}function zh(t){return t.type==="time"}function ci(t){return t.type==="log"}function sr(t){return t.type==="ordinal"}function e5(t){var e=of(t),r=ja(10,e),a=Vr(t/r);return a?a===2?a=3:a===3?a=5:a*=2:a=1,ve(a*r,-e)}function hn(t){return ua(t)+2}function yu(t,e){return ho(t)/ho(e)}function Hh(t,e,r){var a=r&&r.lookup;if(a){for(var n=0;n<a.from.length;n++)if(t===a.from[n])return a.to[n]}return ja(e,t)}function Vk(t,e,r){var a=t.slice();if(a[0]===a[1]){var n=r&&r.ctnShp;if(a[0]!==0){var i=Ve(a[0]);e[1]||(a[1]+=i/2),a[0]-=i/2}else n&&(a[0]=-1),a[1]=1}return(!Ur(a[0])||!Ur(a[1]))&&(a[0]=0,a[1]=1),a[1]<a[0]&&a.reverse(),a}function t5(t,e){return[t[0]!==e[0],t[1]!==e[1]]}function bu(t,e){return t=t||e,Vr(ye(t,1))}function Uk(t,e,r){var a=Uo(t),n=a[0],i=t.count(),o=Math.max((e||0)+1,1);n!==0&&o>1&&i/o>2&&(n=Math.round(Math.ceil(n/o)*o)),n!==a[0]&&l(a[0],!0,!0);for(var s=n;s<=a[1];s+=o)l(s,!1,s===a[0]||s===a[1]);s-o!==a[1]&&l(a[1],!0,!0);function l(u,p,c){r({value:u,offInterval:p},c)}}var Gk=(function(t){V(e,t);function e(r){var a=t.call(this)||this;a.type="ordinal",a.parse=e.parse,Nk(a,e.decoratedMethods);var n=r.ordinalMeta;n||(n=new Nh({})),W(n)&&(n=new Nh({categories:K(n,function(o){return J(o)?o.value:o})})),a._ordinalMeta=n;var i=Fh(null,null,r.extent||[0,n.categories.length-1]);return a._mapper=i.mapper,Fk(a),a}return e.parse=function(r){return r==null?r=NaN:q(r)?(r=this._ordinalMeta.getOrdinal(r),r==null&&(r=NaN)):r=Vr(r),r},e.prototype.getTicks=function(){var r=[];return Uk(this,0,function(a){r.push(a)}),r},e.prototype.getMinorTicks=function(r){},e.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var a=r.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=et(s,a.length);o<l;++o){var u=n[o]=a[o];i[u]=o}for(var p=0;o<s;++o){for(;i[p]!=null;)p++;n[o]=p,i[p]=o}},e.prototype._getTickNumber=function(r){var a=this._ticksByOrdinalNumber;return a&&r>=0&&r<a.length?a[r]:r},e.prototype.getRawOrdinalNumber=function(r){var a=this._ordinalNumbersByTick;return a&&r>=0&&r<a.length?a[r]:r},e.prototype.getLabel=function(r){if(!this.isBlank()){var a=this.getRawOrdinalNumber(r.value),n=this._ordinalMeta.categories[a];return n==null?"":n+""}},e.prototype.count=function(){var r=Uo(this._mapper);return r[1]-r[0]+1},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.type="ordinal",e.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(r){return this._mapper.contain(this._getTickNumber(r))&&r>=0&&r<this._ordinalMeta.categories.length},normalize:function(r){return this._mapper.normalize(this._getTickNumber(r))},scale:function(r){return this.getRawOrdinalNumber(Vr(this._mapper.scale(r)))},transformIn:function(r,a){return this._mapper.transformIn(this._getTickNumber(r),a)},transformOut:function(r,a){return this.getRawOrdinalNumber(this._mapper.transformOut(r,a))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(r,a){return this._mapper.getExtentUnsafe(r,a)},setExtent:function(r,a){return this._mapper.setExtent(r,a)},setExtent2:function(r,a,n){return this._mapper.setExtent2(r,a,n)}},e})(or);or.registerClass(Gk);function Vh(t,e,r,a){for(var n=t.getTicks({expandToNicedExtent:!0}),i=[],o=t.getExtent(),s=1;s<n.length;s++){var l=n[s],u=n[s-1];if(!(u.break||l.break)){for(var p=0,c=[],f=l.value-u.value,h=f/e,d=hn(h);p<e-1;){var v=ve(u.value+(p+1)*h,d);v>o[0]&&v<o[1]&&c.push(v),p++}var m=ct();m&&m.pruneTicksByBreak("auto",c,r,function(g){return g},a,o),i.push(c)}}return i}var ba=(function(t){V(e,t);function e(r){var a=t.call(this)||this;a.type="interval",a.parse=e.parse,r=r||{};var n=Hb(a,r),i=Fh(a,n,null);return a.brk=i.brk,a._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},a}return e.parse=function(r){return r==null||r===""?NaN:Number(r)},e.prototype.getConfig=function(){return le(this._cfg)},e.prototype.setConfig=function(r){var a=Uo(this);this._cfg=r=le(r),r.niceExtent==null&&(r.niceExtent=a.slice()),r.intervalPrecision==null&&(r.intervalPrecision=hn(r.interval))},e.prototype.getTicks=function(r){r=r||{};var a=this._cfg,n=a.interval,i=Uo(this),o=a.niceExtent,s=a.intervalPrecision,l=ct(),u=this.brk,p=l&&u,c=[];if(!n)return c;if(r.breakTicks==="only_break"&&p)return l.addBreaksToTicks(c,u.breaks,i),c;var f=3e3;i[0]<o[0]&&c.push({value:r.expandToNicedExtent?ve(o[0]-n,s):i[0]});for(var h=function(b,k){return Vr((k-b)/n)},d=a.intervalCount,v=o[0],m=0;;m++){if(d==null){if(v>o[1]||!isFinite(v)||!isFinite(o[1]))break}else{if(m>d)break;v=et(v,o[1]),m===d&&(v=o[1])}if(c.push({value:v}),v=ve(v+n,s),u){var g=u.calcNiceTickMultiple(v,h);g>=0&&(v=ve(v+g*n,s))}if(c.length>0&&v===c[c.length-1].value)break;if(c.length>f)return[]}var y=c.length?c[c.length-1].value:o[1];return i[1]>y&&c.push({value:r.expandToNicedExtent?ve(y+n,s):i[1]}),p&&l.pruneTicksByBreak(r.pruneByBreak,c,u.breaks,function(b){return b.value},a.interval,i),p&&r.breakTicks!=="none"&&l.addBreaksToTicks(c,u.breaks,i),c},e.prototype.getMinorTicks=function(r){return Vh(this,r,au(this),this._cfg.interval)},e.prototype.getLabel=function(r,a){if(r==null)return"";var n=a&&a.precision;n==null?n=ua(r.value)||0:n==="auto"&&(n=this._cfg.intervalPrecision);var i=ve(r.value,n,!0);return jb(i)},e.type="interval",e})(or);or.registerClass(ba);var r5=function(t,e,r,a){for(;r<a;){var n=r+a>>>1;t[n][1]<e?r=n+1:a=n}return r},Wk=(function(t){V(e,t);function e(r){var a=t.call(this)||this;a.type="time",a.parse=e.parse,a._locale=r.locale,a._useUTC=r.useUTC,a._interval=0;var n=Hb(a,r),i=Fh(a,n,null);return a.brk=i.brk,a}return e.prototype.getLabel=function(r){return su(r.value,Ub[RL(Ro(this._minLevelUnit))]||Ub.second,this._useUTC,this._locale)},e.prototype.getFormattedLabel=function(r,a,n){return BL(r,a,n,this._locale,this._useUTC)},e.prototype.getTicks=function(r){r=r||{};var a=this._interval,n=Uo(this),i=ct(),o=this.brk,s=i&&o,l=[];if(!a)return l;var u=this._useUTC;if(s&&r.breakTicks==="only_break")return ct().addBreaksToTicks(l,o.breaks,n),l;l=u5(this._minLevelUnit,this._approxInterval,u,n,gu(this),o);var p=Ct.length-1,c=0;return A(l,function(f){f.time&&(p=Math.min(p,fe(Ct,f.time.upperTimeUnit)),c=Math.max(c,f.time.level))}),s&&ct().pruneTicksByBreak(r.pruneByBreak,l,o.breaks,function(f){return f.value},this._approxInterval,n),s&&r.breakTicks!=="none"&&ct().addBreaksToTicks(l,o.breaks,n,function(f){for(var h=Math.max(fe(Ct,ui(f.vmin,u)),fe(Ct,ui(f.vmax,u))),d=0,v=0;v<Ct.length;v++)if(!$k(Ct[v],f.vmin,f.vmax,u)){d=v;break}var m=Math.min(d,p),g=Math.max(m,h);return{level:c,lowerTimeUnit:Ct[g],upperTimeUnit:Ct[m]}}),l},e.prototype.getMinorTicks=function(r){return Vh(this,r,au(this),this._interval)},e.prototype.setTimeInterval=function(r){this._interval=r.interval,this._approxInterval=r.approxInterval,this._minLevelUnit=r.minLevelUnit},e.parse=function(r){return be(r)?Math.round(r):+Yn(r)},e.type="time",e})(or),ku=[["second",hh],["minute",dh],["hour",Oo],["quarter-day",Oo*6],["half-day",Oo*12],["day",Wt*1.2],["half-week",Wt*3.5],["week",Wt*7],["month",Wt*31],["quarter",Wt*95],["half-year",Vb/2],["year",Vb]];function $k(t,e,r,a){return vh(new Date(e),t,a).getTime()===vh(new Date(r),t,a).getTime()}function a5(t,e){return t/=Wt,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function n5(t){var e=30*Wt;return t/=e,t>6?6:t>3?3:t>2?2:1}function i5(t){return t/=Oo,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function Yk(t,e){return t/=e?dh:hh,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function o5(t){return ye(sf(t,!0),1)}function s5(t,e,r){var a=Math.max(0,fe(Ct,e)-1);return vh(new Date(t),Ct[a],r).getTime()}function l5(t,e){var r=new Date(0);r[t](1);var a=r.getTime();r[t](1+e);var n=r.getTime()-a;return function(i,o){return Math.max(0,Math.round((o-i)/n))}}function u5(t,e,r,a,n,i){var o=3e3,s=ML,l=0;function u(E,O,R,B,N,F,U){for(var Y=l5(N,E),z=O,j=new Date(z);z<R&&z<=a[1]&&(U.push({value:z}),!(l++>o));)if(j[N](j[B]()+E),z=j.getTime(),i){var ne=i.calcNiceTickMultiple(z,Y);ne>0&&(j[N](j[B]()+ne*E),z=j.getTime())}U.push({value:z,notAdd:z>a[1]})}function p(E,O,R){var B=[],N=!O.length;if(!$k(Ro(E),a[0],a[1],r)){N&&(O=[{value:s5(a[0],E,r)},{value:a[1]}]);for(var F=0;F<O.length-1;F++){var U=O[F].value,Y=O[F+1].value;if(U!==Y){var z=void 0,j=void 0,ne=void 0,De=!1;switch(E){case"year":z=Math.max(1,Math.round(e/Wt/365)),j=Gb(r),ne=NL(r);break;case"half-year":case"quarter":case"month":z=n5(e),j=gh(r),ne=Wb(r);break;case"week":case"half-week":case"day":z=a5(e),j=mh(r),ne=$b(r),De=!0;break;case"half-day":case"quarter-day":case"hour":z=i5(e),j=yh(r),ne=Yb(r);break;case"minute":z=Yk(e,!0),j=bh(r),ne=Kb(r);break;case"second":z=Yk(e,!1),j=kh(r),ne=Xb(r);break;case"millisecond":z=o5(e),j=wh(r),ne=qb(r);break}Y>=a[0]&&U<=a[1]&&u(z,U,Y,j,ne,De,B),E==="year"&&R.length>1&&F===0&&R.unshift({value:R[0].value-z})}}for(var F=0;F<B.length;F++)R.push(B[F])}}for(var c=[],f=[],h=0,d=0,v=0;v<s.length;++v){var m=Ro(s[v]);if(OL(s[v])){p(s[v],c[c.length-1]||[],f);var g=s[v+1]?Ro(s[v+1]):null;if(m!==g){if(f.length){d=h,f.sort(function(E,O){return E.value-O.value});for(var y=[],b=0;b<f.length;++b){var k=f[b].value;(b===0||f[b-1].value!==k)&&(y.push(f[b]),k>=a[0]&&k<=a[1]&&h++)}var w=n/e;if(h>w*1.5&&d>w/1.5||(c.push(y),h>w||t===s[v]))break}f=[]}}}for(var _=Xe(K(c,function(E){return Xe(E,function(O){return O.value>=a[0]&&O.value<=a[1]&&!O.notAdd})}),function(E){return E.length>0}),x=_.length-1,T=[],v=0;v<_.length;++v)for(var C=_[v],P=0;P<C.length;++P){var S=ui(C[P].value,r);T.push({value:C[P].value,time:{level:x-v,upperTimeUnit:S,lowerTimeUnit:S}})}hf(T,ZD,null),T.sort(function(E,O){return E.value-O.value});var L=T[0],D=T[T.length-1],M=ui(a[0],r),I=ui(a[1],r);return(!L||L.value>a[0])&&T.unshift({value:a[0],time:{level:0,upperTimeUnit:M,lowerTimeUnit:M},notNice:!0}),(!D||D.value<a[1])&&T.push({value:a[1],time:{level:0,upperTimeUnit:I,lowerTimeUnit:I},notNice:!0}),T}var p5=function(t,e){var r=t.getExtent();if(r[0]===r[1]&&(r[0]-=Wt,r[1]+=Wt),r[1]===-1/0&&r[0]===1/0){var a=new Date;r[1]=+new Date(a.getFullYear(),a.getMonth(),a.getDate()),r[0]=r[1]-Wt}t.setExtent(r[0],r[1]);var n=bu(e.splitNumber,10),i=gu(t)/n,o=e.minInterval,s=e.maxInterval;o!=null&&i<o&&(i=o),s!=null&&i>s&&(i=s);var l=ku.length,u=Math.min(r5(ku,i,0,l),l-1),p=ku[u][1],c=ku[Math.max(u-1,0)][0];t.setTimeInterval({approxInterval:i,interval:p,minLevelUnit:c})};or.registerClass(Wk);var wu=0,_u=1,c5=2,Kk=(function(t){V(e,t);function e(r){var a=t.call(this)||this;a.type="log",a.parse=ba.parse,a.base=r.logBase||10;var n=[],i=[],o=a._lookup={from:n,to:i};n[wu]=n[_u]=i[wu]=i[_u]=NaN,Nk(a,e.mapperMethods);var s=ct(),l=r.breakOption,u={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(l,a,{noNegative:!0},c5,u),a.powStub=new ba({breakParsed:u.original}),a.intervalStub=new ba({breakParsed:u.transformed}),Fk(a,a.intervalStub),a}return e.prototype.getTicks=function(r){var a=this.base,n=this.powStub,i=ct(),o=this.intervalStub,s=o.getExtent(),l=n.getExtent(),u={lookup:{from:s,to:l}};return K(o.getTicks(r||{}),function(p){var c=p.value,f=Hh(c,a,u),h;if(i){var d=i.getTicksBreakOutwardTransform(this,p,au(n),this._lookup);d&&(h=d.vBreak,f=d.tickVal)}return{value:f,break:h}},this)},e.prototype.getMinorTicks=function(r){return Vh(this,r,au(this.powStub),this.intervalStub.getConfig().interval)},e.prototype.getLabel=function(r,a){return this.intervalStub.getLabel(r,a)},e.type="log",e.mapperMethods={needTransform:function(){return!0},normalize:function(r){return this.intervalStub.normalize(yu(r,this.base))},scale:function(r){return Hh(this.intervalStub.scale(r),this.base,null)},transformIn:function(r,a){return r=yu(r,this.base),a&&a.depth===du?r:this.intervalStub.transformIn(r,a)},transformOut:function(r,a){var n=a?a.depth:null;return Xk.depth=n,qk.lookup=this._lookup,Hh(n===du?r:this.intervalStub.transformOut(r,Xk),this.base,qk)},contain:function(r){return this.powStub.contain(r)},setExtent:function(r,a){this.setExtent2(Yt,r,a)},setExtent2:function(r,a,n){if(!(!Kn(a,n)||a<=0||n<=0)){var i=jk,o=jk;if(r===Yt){var s=this._lookup;i=s.to,o=s.from}this.powStub.setExtent2(r,i[wu]=a,i[_u]=n);var l=this.base;this.intervalStub.setExtent2(r,o[wu]=yu(a,l),o[_u]=yu(n,l))}},getFilter:function(){return{g:0}},sanitize:function(r,a){return Kn(a[0],a[1])&&Ft(r)&&r<=0&&(r=a[0]),r},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(r,a){return a===null?this.powStub.getExtentUnsafe(r,null):this.intervalStub.getExtentUnsafe(r,a)}},e})(or);or.registerClass(Kk);var Xk={},qk={},jk=[],Zk={value:1,category:1,time:1,log:1},Qk=_e();function f5(t){var e=t.get("type");return(e==null||!st(Zk,e)&&!or.getClass(e))&&(e="value"),e}function h5(t,e,r){var a=ct(),n;switch(a&&(n=Jk(t,e)),e){case"category":return new Gk({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:Ht()});case"time":return new Wk({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC"),breakOption:n});case"log":return new Kk({logBase:t.get("logBase"),breakOption:n});case"value":return new ba({breakOption:n});default:return new(or.getClass(e)||ba)({})}}function d5(t,e,r){var a=t.getExtentUnsafe(Yt,null),n=a[0],i=a[1];return Kn(n,i)?n===e||i===e?g5:n<e&&i>e?v5:Uh:Uh}var v5=1,g5=2,Uh=3;function m5(t){Qk(t).noOnMyZero=!0}function y5(t){return Qk(t).noOnMyZero}function xu(t){var e=t.getLabelModel().get("formatter");if(t.type==="time"){var r=EL(e);return function(n,i){return t.scale.getFormattedLabel(n,i,r)}}else{if(q(e))return function(n){var i=t.scale.getLabel(n),o=e.replace("{value}",i??"");return o};if(re(e)){if(t.type==="category")return function(n,i){return e(Pu(t,n),n.value-t.scale.getExtent()[0],null)};var a=ct();return function(n,i){var o=null;return a&&(o=a.makeAxisLabelFormatterParamBreak(o,n.break)),e(Pu(t,n),i,o)}}else return function(n){return t.scale.getLabel(n)}}}function Pu(t,e){var r=t.scale;return sr(r)?r.getLabel(e):e.value}function Gh(t){var e=t.get("interval");return e??"auto"}function b5(t){return t.type==="category"&&Gh(t.getLabelModel())===0}function k5(t,e){var r={};return A(t.mapDimensionsAll(e),function(a){r[lL(t,a)]=!0}),he(r)}function fi(t){return t==="middle"||t==="center"}function Go(t){return t.getShallow("show")}function Jk(t,e,r){var a=t.get("breaks",!0);if(a!=null)return!ct()||!w5(e)?void 0:a}function w5(t){return t!=="category"}function e1(t,e,r,a,n,i){var o=ci(t),s=o?t.intervalStub:t;if(s.setExtent(a[0],a[1]),o){var l=t.powStub,u={depth:du},p=t.transformOut(a[0],u),c=t.transformOut(a[1],u),f=t5(r,a);e[0]&&!f[0]&&(p=n[0]),e[1]&&!f[1]&&(c=n[1]),l.setExtent(p,c)}s.setConfig(i)}function Wo(t,e){return sr(t)?t.getRawOrdinalNumber(e.value):e.value}function t1(t,e){return sr(t)&&!!e.get("boundaryGap")}function r1(t,e){if(t.length===e.length){for(var r=0;r<t.length;r++)if(t[r]!==e[r])return;return!0}}function a1(t){for(var e=Ht(),r=Ht(),a=0;a<t.length;){var n=t[a++],i=t[a++];$t(n,i)||(ff(e,n),ff(r,i))}return[e,r]}function n1(t,e){var r=a1(t),a=r[0],n=r[1],i=a1(e),o=i[0],s=i[1];return Math.max(Math.abs(a[0]-o[0]),Math.abs(n[0]-s[0]),Math.abs(a[1]-o[1]),Math.abs(n[1]-s[1]))}function i1(t){return be(t)?t:t?.5:0}function _5(t,e,r){if(r.valueDim==null)return[];for(var a=e.count(),n=Kr(a*2),i=0;i<a;i++){var o=Ck(r,t,e,i);n[i*2]=o[0],n[i*2+1]=o[1]}return n}function ka(t,e,r,a,n){var i=r.getBaseAxis(),o=i.dim==="x"||i.dim==="radius"?0:1,s=[],l=0,u=[],p=[],c=[],f=[];if(n){for(l=0;l<t.length;l+=2){var h=e||t;$t(h[l],h[l+1])||f.push(t[l],t[l+1])}t=f}for(l=0;l<t.length-2;l+=2)switch(c[0]=t[l+2],c[1]=t[l+3],p[0]=t[l],p[1]=t[l+1],s.push(p[0],p[1]),a){case"end":u[o]=c[o],u[1-o]=p[1-o],s.push(u[0],u[1]);break;case"middle":var d=(p[o]+c[o])/2,v=[];u[o]=v[o]=d,u[1-o]=p[1-o],v[1-o]=c[1-o],s.push(u[0],u[1]),s.push(v[0],v[1]);break;default:u[o]=p[o],u[1-o]=c[1-o],s.push(u[0],u[1])}return s.push(t[l++],t[l++]),s}function x5(t,e){var r=[],a=t.length,n,i;function o(p,c,f){var h=p.coord,d=(f-h)/(c.coord-h),v=xC(d,[p.color,c.color]);return{coord:f,color:v}}for(var s=0;s<a;s++){var l=t[s],u=l.coord;if(u<0)n=l;else if(u>e){i?r.push(o(i,l,e)):n&&r.push(o(n,l,0),o(n,l,e));break}else n&&(r.push(o(n,l,0)),n=null),r.push(l),i=l}return r}function P5(t,e,r){var a=t.getVisual("visualMeta");if(!(!a||!a.length||!t.count())&&e.type==="cartesian2d"){for(var n,i,o=a.length-1;o>=0;o--){var s=t.getDimensionInfo(a[o].dimension);if(n=s&&s.coordDim,n==="x"||n==="y"){i=a[o];break}}if(i){var l=e.getAxis(n),u=K(i.stops,function(b){return{coord:l.toGlobalCoord(l.dataToCoord(b.value)),color:b.color}}),p=u.length,c=i.outerColors.slice();p&&u[0].coord>u[p-1].coord&&(u.reverse(),c.reverse());var f=x5(u,n==="x"?r.getWidth():r.getHeight()),h=f.length;if(!h&&p)return u[0].coord<0?c[1]?c[1]:u[p-1].color:c[0]?c[0]:u[0].color;var d=10,v=f[0].coord-d,m=f[h-1].coord+d,g=m-v;if(g<.001)return"transparent";A(f,function(b){b.offset=(b.coord-v)/g}),f.push({offset:h?f[h-1].offset:.5,color:c[1]||"transparent"}),f.unshift({offset:h?f[0].offset:.5,color:c[0]||"transparent"});var y=new A0(0,0,0,0,f,!0);return y[n]=v,y[n+"2"]=m,y}}}function S5(t,e,r){var a=t.get("showAllSymbol"),n=a==="auto";if(!(a&&!n)){var i=r.getAxesByScale("ordinal")[0];if(i&&!(n&&T5(i,e))){var o=e.mapDimension(i.dim),s={};return A(i.getViewLabels(),function(l){l.tick.offInterval||(s[Wo(i.scale,l.tick)]=1)}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function T5(t,e){var r=t.getExtent(),a=Math.abs(r[1]-r[0])/t.scale.count();isNaN(a)&&(a=0);for(var n=e.count(),i=Math.max(1,Math.round(n/5)),o=0;o<n;o+=i)if(Ih.getSymbolSize(e,o)[t.isHorizontal()?1:0]*1.5>a)return!1;return!0}function C5(t){for(var e=t.length/2;e>0&&$t(t[e*2-2],t[e*2-1]);e--);return e-1}function o1(t,e){return[t[e*2],t[e*2+1]]}function D5(t,e,r){for(var a=t.length/2,n=r==="x"?0:1,i,o,s=0,l=-1,u=0;u<a;u++)if(o=t[u*2+n],!$t(o,t[u*2+1-n])){if(u===0){i=o;continue}if(i<=e&&o>=e||i>=e&&o<=e){l=u;break}s=u,i=o}return{range:[s,l],t:(e-i)/(o-i)}}function s1(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<Ut.length;e++)if(t.get([Ut[e],"endLabel","show"]))return!0;return!1}function Wh(t,e,r,a){if(Ok(e,"cartesian2d")){var n=a.getModel("endLabel"),i=n.get("valueAnimation"),o=a.getData(),s={lastFrameIndex:0},l=s1(a)?function(h,d){t._endLabelOnDuring(h,d,o,s,i,n,e)}:null,u=e.getBaseAxis().isHorizontal(),p=Ek(e,r,a,function(){var h=t._endLabel;h&&r&&s.originalX!=null&&h.attr({x:s.originalX,y:s.originalY})},l);if(!a.get("clip",!0)){var c=p.shape,f=Math.max(c.width,c.height);u?(c.y-=f,c.height+=f*2):(c.x-=f,c.width+=f*2)}return l&&l(1,p),p}else return Ik(e,r,a)}function A5(t,e){var r=e.getBaseAxis(),a=r.isHorizontal(),n=r.inverse,i=a?n?"right":"left":"center",o=a?"middle":n?"top":"bottom";return{normal:{align:t.get("align")||i,verticalAlign:t.get("verticalAlign")||o}}}var L5=(function(t){V(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(){var r=new Me,a=new Sk;this.group.add(a.group),this._symbolDraw=a,this._lineGroup=r,this._changePolyState=ge(this._changePolyState,this)},e.prototype.render=function(r,a,n){var i=r.coordinateSystem,o=this.group,s=r.getData(),l=r.getModel("lineStyle"),u=r.getModel("areaStyle"),p=s.getLayout("points")||[],c=i.type==="polar",f=this._coordSys,h=this._symbolDraw,d=this._polyline,v=this._polygon,m=this._lineGroup,g=!a.ssr&&r.get("animation"),y=!u.isEmpty(),b=u.get("origin"),k=Tk(i,s,b),w=y&&_5(i,s,k),_=r.get("showSymbol"),x=r.get("connectNulls"),T=_&&!c&&S5(r,s,i),C=this._data;C&&C.eachItemGraphicEl(function(de,Ce){de.__temp&&(o.remove(de),C.setItemGraphicEl(Ce,null))}),_||h.remove(),o.add(m);var P=c?!1:r.get("step"),S;i&&i.getArea&&r.get("clip",!0)&&(S=i.getArea(),S.width!=null?(S.x-=.1,S.y-=.1,S.width+=.2,S.height+=.2):S.r0&&(S.r0-=.5,S.r+=.5)),this._clipShapeForSymbol=S;var L=P5(s,i,n)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&f.type===i.type&&P===this._step))_&&h.updateData(s,{isIgnore:T,clipShape:S,disableAnimation:!0,getSymbolPoint:function(de){return[p[de*2],p[de*2+1]]}}),g&&this._initSymbolLabelAnimation(s,i,S),P&&(w&&(w=ka(w,p,i,P,x)),p=ka(p,null,i,P,x)),d=this._newPolyline(p),y?v=this._newPolygon(p,w):v&&(m.remove(v),v=this._polygon=null),c||this._initOrUpdateEndLabel(r,i,pn(L)),m.setClipPath(Wh(this,i,!0,r));else{y&&!v?v=this._newPolygon(p,w):v&&!y&&(m.remove(v),v=this._polygon=null),c||this._initOrUpdateEndLabel(r,i,pn(L));var D=m.getClipPath();if(D){var M=Wh(this,i,!1,r);Ye(D,{shape:M.shape},r)}else m.setClipPath(Wh(this,i,!0,r));_&&h.updateData(s,{isIgnore:T,clipShape:S,disableAnimation:!0,getSymbolPoint:function(de){return[p[de*2],p[de*2+1]]}}),(!r1(this._stackedOnPoints,w)||!r1(this._points,p))&&(g?this._doUpdateAnimation(s,w,i,n,P,b,x):(P&&(w&&(w=ka(w,p,i,P,x)),p=ka(p,null,i,P,x)),d.setShape({points:p}),v&&v.setShape({points:p,stackedOnPoints:w})))}var I=r.getModel("emphasis"),E=I.get("focus"),O=I.get("blurScope"),R=I.get("disabled");if(d.useStyle(pe(l.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),$r(d,r,"lineStyle"),d.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var B=d.getState("emphasis").style;B.lineWidth=+d.style.lineWidth+1}ce(d).seriesIndex=r.seriesIndex,Wr(d,E,O,R);var N=i1(r.get("smooth")),F=r.get("smoothMonotone");if(d.setShape({smooth:N,smoothMonotone:F,connectNulls:x}),v){var U=s.getCalculationInfo("stackedOnSeries"),Y=0;v.useStyle(pe(u.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),U&&(Y=i1(U.get("smooth"))),v.setShape({smooth:N,stackedOnSmooth:Y,smoothMonotone:F,connectNulls:x}),$r(v,r,"areaStyle"),ce(v).seriesIndex=r.seriesIndex,Wr(v,E,O,R)}var z=this._changePolyState;s.eachItemGraphicEl(function(de){de&&(de.onHoverStateChange=z)}),this._polyline.onHoverStateChange=z,this._data=s,this._coordSys=i,this._stackedOnPoints=w,this._points=p,this._step=P,this._valueOrigin=b;var j=r.get("triggerEvent"),ne=r.get("triggerLineEvent"),De=ne===!0||j===!0||j==="line",Ee=ne===!0||j===!0||j==="area";this.packEventData(r,d,De),v&&this.packEventData(r,v,Ee)},e.prototype.packEventData=function(r,a,n){ce(a).eventData=n?{componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line",selfType:a===this._polygon?"area":"line"}:null},e.prototype.highlight=function(r,a,n,i){var o=r.getData(),s=Za(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var p=l[s*2],c=l[s*2+1];if($t(p,c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(p,c))return;var f=r.get("zlevel")||0,h=r.get("z")||0;u=new Ih(o,s),u.x=p,u.y=c,u.setZ(f,h);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=f,d.z=h,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else at.prototype.highlight.call(this,r,a,n,i)},e.prototype.downplay=function(r,a,n,i){var o=r.getData(),s=Za(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else at.prototype.downplay.call(this,r,a,n,i)},e.prototype._changePolyState=function(r){var a=this._polygon;n0(this._polyline,r),a&&n0(a,r)},e.prototype._newPolyline=function(r){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new zM({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(a),this._polyline=a,a},e.prototype._newPolygon=function(r,a){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new VM({shape:{points:r,stackedOnPoints:a},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(r,a,n){var i,o,s=a.getBaseAxis(),l=s.inverse;a.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):a.type==="polar"&&(i=s.dim==="angle",o=!0);var u=r.hostModel,p=u.get("animationDuration");re(p)&&(p=p(null));var c=u.get("animationDelay")||0,f=re(c)?c(null):c;r.eachItemGraphicEl(function(h,d){var v=h;if(v){var m=[h.x,h.y],g=void 0,y=void 0,b=void 0;if(n)if(o){var k=n,w=a.pointToCoord(m);i?(g=k.startAngle,y=k.endAngle,b=-w[1]/180*Math.PI):(g=k.r0,y=k.r,b=w[0])}else{var _=n;i?(g=_.x,y=_.x+_.width,b=h.x):(g=_.y+_.height,y=_.y,b=h.y)}var x=y===g?0:(b-g)/(y-g);l&&(x=1-x);var T=re(c)?c(d):p*x+f,C=v.getSymbolPath(),P=C.getTextContent();v.attr({scaleX:0,scaleY:0}),v.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),P&&P.animateFrom({style:{opacity:0}},{duration:300,delay:T}),C.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(r,a,n){var i=r.getModel("endLabel");if(s1(r)){var o=r.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Oe({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var p=C5(l);p>=0&&(an(s,nn(r,"endLabel"),{inheritColor:n,labelFetcher:r,labelDataIndex:p,defaultText:function(c,f,h){return h!=null?wk(o,h):Eh(o,c)},enableTextSetter:!0},A5(i,a)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(r,a,n,i,o,s,l){var u=this._endLabel,p=this._polyline;if(u){r<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var c=n.getLayout("points"),f=n.hostModel,h=f.get("connectNulls"),d=s.get("precision"),v=s.get("distance")||0,m=l.getBaseAxis(),g=m.isHorizontal(),y=m.inverse,b=a.shape,k=y?g?b.x:b.y+b.height:g?b.x+b.width:b.y,w=(g?v:0)*(y?-1:1),_=(g?0:-v)*(y?-1:1),x=g?"x":"y",T=D5(c,k,x),C=T.range,P=C[1]-C[0],S=void 0;if(P>=1){if(P>1&&!h){var L=o1(c,C[0]);u.attr({x:L[0]+w,y:L[1]+_}),o&&(S=f.getRawValue(C[0]))}else{var L=p.getPointOn(k,x);L&&u.attr({x:L[0]+w,y:L[1]+_});var D=f.getRawValue(C[0]),M=f.getRawValue(C[1]);o&&(S=Vy(n,d,D,M,T.t))}i.lastFrameIndex=C[0]}else{var I=r===1||i.lastFrameIndex>0?C[0]:0,L=o1(c,I);o&&(S=f.getRawValue(I)),u.attr({x:L[0]+w,y:L[1]+_})}if(o){var E=Co(u);typeof E.setLabelText=="function"&&E.setLabelText(S)}}},e.prototype._doUpdateAnimation=function(r,a,n,i,o,s,l){var u=this._polyline,p=this._polygon,c=r.hostModel,f=FM(this._data,r,this._stackedOnPoints,a,this._coordSys,n,this._valueOrigin),h=f.current,d=f.stackedOnCurrent,v=f.next,m=f.stackedOnNext;if(o&&(d=ka(f.stackedOnCurrent,f.current,n,o,l),h=ka(f.current,null,n,o,l),m=ka(f.stackedOnNext,f.next,n,o,l),v=ka(f.next,null,n,o,l)),n1(h,v)>3e3||p&&n1(d,m)>3e3){u.stopAnimation(),u.setShape({points:v}),p&&(p.stopAnimation(),p.setShape({points:v,stackedOnPoints:m}));return}u.shape.__points=f.current,u.shape.points=h;var g={shape:{points:v}};f.current!==h&&(g.shape.__points=f.next),u.stopAnimation(),Re(u,g,c),p&&(p.setShape({points:h,stackedOnPoints:d}),p.stopAnimation(),Re(p,{shape:{stackedOnPoints:m}},c),u.shape.points!==p.shape.points&&(p.shape.points=u.shape.points));for(var y=[],b=f.status,k=0;k<b.length;k++){var w=b[k].cmd;if(w==="="){var _=r.getItemGraphicEl(b[k].idx1);_&&y.push({el:_,ptIdx:k})}}u.animators&&u.animators.length&&u.animators[0].during(function(){p&&p.dirtyShape();for(var x=u.shape.__points,T=0;T<y.length;T++){var C=y[T].el,P=y[T].ptIdx*2;C.x=x[P],C.y=x[P+1],C.markRedraw()}})},e.prototype.remove=function(r){var a=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(i,o){i.__temp&&(a.remove(i),n.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e})(at);function $h(t,e){return{seriesType:t,plan:Bh(),reset:function(r){var a=r.getData(),n=r.coordinateSystem,i=r.pipelineContext,o=e||i.large;if(n){var s=K(n.dimensions,function(h){return a.mapDimension(h)}).slice(0,2),l=s.length,u=a.getCalculationInfo("stackResultDimension");si(a,s[0])&&(s[0]=u),si(a,s[1])&&(s[1]=u);var p=a.getStore(),c=a.getDimensionIndex(s[0]),f=a.getDimensionIndex(s[1]);return l&&{progress:function(h,d){for(var v=h.end-h.start,m=o&&Kr(v*l),g=[],y=[],b=h.start,k=0;b<h.end;b++){var w=void 0;if(l===1){var _=p.get(c,b);w=n.dataToPoint(_,null,y)}else g[0]=p.get(c,b),g[1]=p.get(f,b),w=n.dataToPoint(g,null,y);o?(m[k++]=w[0],m[k++]=w[1]):d.setItemLayout(b,w.slice())}o&&(d.setLayout("points",m),d.setLayout("pointsRange",{start:h.start,end:h.end}))}}}}}}var M5={average:function(t){for(var e=0,r=0,a=0;a<t.length;a++)isNaN(t[a])||(e+=t[a],r++);return r===0?NaN:e/r},sum:function(t){for(var e=0,r=0;r<t.length;r++)e+=t[r]||0;return e},max:function(t){for(var e=-1/0,r=0;r<t.length;r++)t[r]>e&&(e=t[r]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,r=0;r<t.length;r++)t[r]<e&&(e=t[r]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},E5=function(t){return Math.round(t.length/2)};function l1(t){return{seriesType:t,reset:function(e,r,a){var n=e.getData(),i=e.get("sampling"),o=e.coordinateSystem,s=n.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),p=l.getExtent(),c=a.getDevicePixelRatio(),f=Math.abs(p[1]-p[0])*(c||1),h=Math.round(s/f);if(isFinite(h)&&h>1){i==="lttb"?e.setData(n.lttbDownSample(n.mapDimension(u.dim),1/h)):i==="minmax"&&e.setData(n.minmaxDownSample(n.mapDimension(u.dim),1/h));var d=void 0;q(i)?d=M5[i]:re(i)&&(d=i),d&&e.setData(n.downSample(n.mapDimension(u.dim),1/h,d,E5))}}}}}function I5(t){t.registerChartView(L5),t.registerSeriesModel(EM),t.registerLayout($h("line",!0)),t.registerVisual({seriesType:"line",reset:function(e){var r=e.getData(),a=e.getModel("lineStyle").getLineStyle();a&&!a.stroke&&(a.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",a)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,l1("line"))}var O5=_e(),$o=_e(),lr={estimate:1,determine:2};function Su(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function R5(t,e){var r=t.getLabelModel().get("customValues");if(r){var a=t.scale;return{labels:K(u1(r,a),function(n,i){return{formattedLabel:xu(t)(n,i),rawLabel:a.getLabel(n),tick:n}})}}return t.type==="category"?N5(t,e):z5(t)}function B5(t,e,r){var a=t.scale,n=t.getTickModel().get("customValues");return n?{ticks:u1(n,a)}:t.type==="category"?F5(t,e):{ticks:a.getTicks(r)}}function u1(t,e){var r=e.getExtent(),a=[];return A(t,function(n){n=e.parse(n),n>=r[0]&&n<=r[1]&&a.push(n)}),hf(a,QD,null),nf(a),K(a,function(n){return{value:n}})}function N5(t,e){var r=t.getLabelModel(),a=p1(t,r,e);return!r.get("show")||t.scale.isBlank()?{labels:[]}:a}function p1(t,e,r){var a=V5(t),n=Gh(e),i=r.kind===lr.estimate;if(!i){var o=f1(a,n);if(o)return o}var s,l;re(n)?s=Tu(t,n,!1):(l=n==="auto"?U5(t,r):n,s=Tu(t,l,!1));var u={labels:s,labelCategoryInterval:l};return i?r.out.noPxChangeTryDetermine.push(function(){return Yh(a,n,u),!0}):Yh(a,n,u),u}function F5(t,e){var r=H5(t),a=Gh(e),n=f1(r,a);if(n)return n;var i,o;if((!e.get("show")||t.scale.isBlank())&&(i=[]),re(a))i=Tu(t,a,!0);else if(a==="auto"){var s=p1(t,t.getLabelModel(),Su(lr.determine));o=s.labelCategoryInterval,i=K(s.labels,function(l){return l.tick})}else o=a,i=Tu(t,o,!0);return Yh(r,a,{ticks:i,tickCategoryInterval:o})}function z5(t){var e=t.scale.getTicks(),r=xu(t);return{labels:K(e,function(a,n){return{formattedLabel:r(a,n),rawLabel:t.scale.getLabel(a),tick:a}})}}var H5=c1("axisTick"),V5=c1("axisLabel");function c1(t){return function(r){return $o(r)[t]||($o(r)[t]={list:[]})}}function f1(t,e){for(var r=0;r<t.list.length;r++)if(t.list[r].key===e)return t.list[r].value}function Yh(t,e,r){return t.list.push({key:e,value:r}),r}function U5(t,e){if(e.kind===lr.estimate){var r=t.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return $o(t).autoInterval=r,!0}),r}var a=$o(t).autoInterval;return a??($o(t).autoInterval=t.calculateCategoryInterval(e))}function G5(t,e){var r=e.kind,a=$5(t),n=xu(t),i=(a.axisRotate-a.labelRotate)/180*Math.PI,o=t.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1,p=40;l>p&&(u=Math.max(1,Math.floor(l/p)));for(var c=s[0],f=t.dataToCoord(c+1)-t.dataToCoord(c),h=Math.abs(f*Math.cos(i)),d=Math.abs(f*Math.sin(i)),v=0,m=0;c<=s[1];c+=u){var g=0,y=0,b=xm(n({value:c}),a.font,"center","top");g=b.width*1.3,y=b.height*1.3,v=Math.max(v,g,7),m=Math.max(m,y,7)}var k=v/h,w=m/d;isNaN(k)&&(k=1/0),isNaN(w)&&(w=1/0);var _=Math.max(0,Math.floor(Math.min(k,w)));if(r===lr.estimate)return e.out.noPxChangeTryDetermine.push(ge(W5,null,t,_,l)),_;var x=h1(t,_,l);return x??_}function W5(t,e,r){return h1(t,e,r)==null}function h1(t,e,r){var a=O5(t.model),n=t.getExtent(),i=a.lastAutoInterval,o=a.lastTickCount;if(i!=null&&o!=null&&Math.abs(i-e)<=1&&Math.abs(o-r)<=1&&i>e&&a.axisExtent0===n[0]&&a.axisExtent1===n[1])return i;a.lastTickCount=r,a.lastAutoInterval=e,a.axisExtent0=n[0],a.axisExtent1=n[1]}function $5(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function Tu(t,e,r){var a=xu(t),n=t.scale,i=[],o=re(e);return Uk(n,o?0:e,function(s,l){var u=n.getLabel(s);if(o){var p=!!e(s.value,u);if(s.offInterval=!p,!p&&!l)return}i.push(r?s:{formattedLabel:a(s),rawLabel:u,tick:s})}),i}var Cu=_e();function Y5(t){Cu(t).prepare={}}function K5(t){Cu(t).fullUpdate={}}function X5(t){return Cu(t).prepare}function hi(t){return Cu(t).fullUpdate}var q5=Wy(),Kh="|&",di=_e(),d1=-2,j5=-1,Z5=_e();function v1(t,e){var r=t.model,a=di(hi(r.ecModel)).keyed,n=a&&a.get(e);return n&&n.get(r.uid)}function Q5(t,e){return m1(v1(t,e))}function J5(t,e){var r=[];return g1(t.model.ecModel,function(a){for(var n=0;n<e.length;n++)e[n]&&a.serByIdx[e[n].seriesIndex]&&r.push(m1(a))}),r}function g1(t,e){var r=di(hi(t)).keyed;r&&r.each(function(a,n){a.each(function(i,o){e(i,n,o)})})}function m1(t){return{liPosMinGap:t?t.liPosMinGap:void 0}}function eE(t,e){var r=t.model.ecModel,a=di(hi(r)).axSer;a&&Xh(r,a.get(t.model.uid),e)}function y1(t,e,r){var a=v1(t,e);a&&Xh(t.model.ecModel,a.sers,r)}function Xh(t,e,r){if(e)for(var a=0;a<e.length;a++){var n=e[a];t.isSeriesFiltered(n)||r(n)}}function tE(t,e,r){var a=di(hi(t)).keyed,n=a&&a.get(e);n&&n.each(function(i){r(i.axis)})}function b1(t,e){var r=t.model,a=di(hi(r.ecModel)).keys;a&&A(a.get(r.uid),function(n){e(n)})}function rE(t){var e=Z5(X5(t)),r=e.keyed||(e.keyed=ae());g1(t,function(a,n,i){var o=r.get(n)||r.set(n,ae()),s=o.get(i)||o.set(i,{});a.metrics.liPosMinGap&&k1.liPosMinGap(t,a,s)})}function aE(t,e){k1[t]=e}var k1={};function qh(t,e,r){if(t){var a=e.ecModel,n=di(hi(a)),i=t.model.uid,o=n.axSer||(n.axSer=ae()),s=o.get(i)||o.set(i,[]);s.push(e);var l=e.subType,u=e.getBaseAxis()===t,p=Zh.get(jh(l,u,r))||Zh.get(jh(l,u,null));if(p){var c=n.keyed||(n.keyed=ae()),f=n.keys||(n.keys=ae()),h=p.key,d=c.get(h)||c.set(h,ae()),v=d.get(i);v||(v=d.set(i,{axis:t,sers:[],serByIdx:[]}),v.metrics=p.getMetrics(t),(f.get(i)||f.set(i,[])).push(h)),v.sers.push(e),v.serByIdx[e.seriesIndex]=e}}}function jh(t,e,r){return t+Kh+Z(e,!0)+Kh+(r||"")}function nE(t,e){var r=jh(e.seriesType,e.baseAxis,e.coordSysType);Zh.set(r,e),q5(t,function(){t.registerProcessor(t.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:rE})})}var Zh=ae(),iE=.8;function vi(t,e){e=e||{};var r={w:NaN,w2:NaN},a=t.scale,n=e.fromStat,i=e.min,o=ZM(a);Ft(o)||(o=NaN);var s=t.getExtent(),l=Ve(s[1]-s[0]);return sr(a)?oE(r,t,o,l):n&&sE(r,t,o,l,n),i!=null&&(r.w=Ft(r.w)?ye(i,r.w):i),r}function oE(t,e,r,a){var n=e.onBand,i=r+(n?1:0);i===0&&(i=1),t.w=a/i,!n&&r&&a&&(t.w2=t.w*r/a)}function sE(t,e,r,a,n){var i=!1,o=-1/0;A(n.key?[Q5(e,n.key)]:J5(e,n.sers||[]),function(s){var l=s.liPosMinGap;l!=null&&(l>0?(l>o&&(o=l),i=!1):l===d1&&(i=!0))}),Ft(r)&&r>0&&Ft(o)?(t.w=a/r*o,t.w2=o):i&&(t.w=a*iE,t.w2=t.w*r/a)}var w1=[0,1],_1=(function(){function t(e,r,a){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=r,this._extent=a||[0,0]}return t.prototype.contain=function(e){var r=this._extent,a=Math.min(r[0],r[1]),n=Math.max(r[0],r[1]);return e>=a&&e<=n},t.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(e,r){var a=this._extent;a[0]=e,a[1]=r},t.prototype.dataToCoord=function(e,r){var a=this.scale;return e=a.normalize(a.parse(e)),Nt(e,w1,x1(this),r)},t.prototype.coordToData=function(e,r){var a=Nt(e,x1(this),w1,r);return this.scale.scale(a)},t.prototype.pointToData=function(e,r){},t.prototype.getTicksCoords=function(e){e=e||{};var r=e.tickModel||this.getTickModel(),a=B5(this,r,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),n=K(a.ticks,function(s){return{coord:this.dataToCoord(Wo(this.scale,s)),tick:s}},this),i=r.get("alignWithLabel"),o=lE(this,n,i);return K(n,function(s){return{coord:s.coord,tickValue:s.tick.value,onBand:o}})},t.prototype.getMinorTicksCoords=function(){if(sr(this.scale))return[];var e=this.model.getModel("minorTick"),r=e.get("splitNumber");r>0&&r<100||(r=5);var a=this.scale.getMinorTicks(r),n=K(a,function(i){return K(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},t.prototype.getViewLabels=function(e){return e=e||Su(lr.determine),R5(this,e).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){return vi(this,{min:1}).w},t.prototype.calculateCategoryInterval=function(e){return e=e||Su(lr.determine),G5(this,e)},t})();function x1(t){var e=t.getExtent();if(t.onBand){var r=e[1]-e[0],a=r/t.scale.count()/2;e[0]+=a,e[1]-=a}return e}function lE(t,e,r){var a=e.length;if(!t.onBand||r||!a)return!1;var n=vi(t).w;if(!n)return!1;A(e,function(s){s.coord-=n/2});var i=t.scale.getExtent(),o=e[a-1];return o.tick.offInterval&&e.pop(),e.push({coord:o.coord+n,tick:{value:i[1]+1}}),!0}var uE=(function(t){V(e,t);function e(r,a,n,i,o){var s=t.call(this,r,a,n)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},e.prototype.getGlobalExtent=function(r){var a=this.getExtent();return a[0]=this.toGlobalCoord(a[0]),a[1]=this.toGlobalCoord(a[1]),r&&a[0]>a[1]&&a.reverse(),a},e.prototype.pointToData=function(r,a){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),a)},e.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},e})(_1),P1=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],pE=1,Du=2,S1=pE|Du;function Au(t,e,r){r=r||S1,e?t.dirty|=r:t.dirty&=~r}function T1(t,e){return e=e||S1,t.dirty==null||!!(t.dirty&e)}function Or(t){if(t)return T1(t)&&C1(t,t.label,t),t}function C1(t,e,r){var a=e.getComputedTransform();t.transform=$f(t.transform,a);var n=t.localRect=So(t.localRect,e.getBoundingRect()),i=e.style,o=i.margin,s=r&&r.marginForce,l=r&&r.minMarginForce,u=r&&r.marginDefault,p=i.__marginType;p==null&&u&&(o=u,p=ri.textMargin);for(var c=0;c<4;c++)Qh[c]=p===ri.minMargin&&l&&l[c]!=null?l[c]:s&&s[c]!=null?s[c]:o?o[c]:0;p===ri.textMargin&&Vl(n,Qh,!1,!1);var f=t.rect=So(t.rect,n);return a&&f.applyTransform(a),p===ri.minMargin&&Vl(f,Qh,!1,!1),t.axisAligned=Wf(a),(t.label=t.label||{}).ignore=e.ignore,Au(t,!1),Au(t,!0,Du),t}var Qh=[0,0,0,0];function cE(t,e,r){return t.transform=$f(t.transform,r),t.localRect=So(t.localRect,e),t.rect=So(t.rect,e),r&&t.rect.applyTransform(r),t.axisAligned=Wf(r),t.obb=void 0,(t.label=t.label||{}).ignore=!1,t}function fE(t,e){if(t){t.label.x+=e.x,t.label.y+=e.y,t.label.markRedraw();var r=t.transform;r&&(r[4]+=e.x,r[5]+=e.y);var a=t.rect;a&&(a.x+=e.x,a.y+=e.y);var n=t.obb;n&&n.fromBoundingRect(t.localRect,r)}}function D1(t,e){for(var r=0;r<P1.length;r++){var a=P1[r];t[a]==null&&(t[a]=e[a])}return Or(t)}function A1(t){var e=t.obb;return(!e||T1(t,Du))&&(t.obb=e=e||new L0,e.fromBoundingRect(t.localRect,t.transform),Au(t,!1,Du)),e}function hE(t,e,r,a,n){var i=t.length,o=fa[e],s=ti[e];if(i<2)return!1;t.sort(function(x,T){return x.rect[o]-T.rect[o]});for(var l=0,u,p=!1,c=0;c<i;c++){var f=t[c],h=f.rect;u=h[o]-l,u<0&&(h[o]-=u,f.label[o]-=u,p=!0),l=h[o]+h[s]}var d=t[0],v=t[i-1],m,g;y(),m<0&&w(-m,.8),g<0&&w(g,.8),y(),b(m,g,1),b(g,m,-1),y(),m<0&&_(-m),g<0&&_(g);function y(){m=d.rect[o]-r,g=a-v.rect[o]-v.rect[s]}function b(x,T,C){if(x<0){var P=Math.min(T,-x);if(P>0){k(P*C,0,i);var S=P+x;S<0&&w(-S*C,1)}else w(-x*C,1)}}function k(x,T,C){x!==0&&(p=!0);for(var P=T;P<C;P++){var S=t[P],L=S.rect;L[o]+=x,S.label[o]+=x}}function w(x,T){for(var C=[],P=0,S=1;S<i;S++){var L=t[S-1].rect,D=Math.max(t[S].rect[o]-L[o]-L[s],0);C.push(D),P+=D}if(P){var M=Math.min(Math.abs(x)/P,T);if(x>0)for(var S=0;S<i-1;S++){var I=C[S]*M;k(I,0,S+1)}else for(var S=i-1;S>0;S--){var I=C[S-1]*M;k(-I,S,i)}}}function _(x){var T=x<0?-1:1;x=Math.abs(x);for(var C=Math.ceil(x/(i-1)),P=0;P<i-1;P++)if(T>0?k(C,0,P+1):k(-C,i-P-1,i),x-=C,x<=0)return}return p}function dE(t){var e=[];t.sort(function(u,p){return(p.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||p.priority-u.priority});function r(u){if(!u.ignore){var p=u.ensureState("emphasis");p.ignore==null&&(p.ignore=!1)}u.ignore=!0}for(var a=0;a<t.length;a++){var n=Or(t[a]);if(!n.label.ignore){for(var i=n.label,o=n.labelLine,s=!1,l=0;l<e.length;l++)if(Jh(n,e[l],null,{touchThreshold:.05})){s=!0;break}s?(r(i),o&&r(o)):e.push(n)}}}function Jh(t,e,r,a){return!t||!e||t.label&&t.label.ignore||e.label&&e.label.ignore||!t.rect.intersect(e.rect,r,a)?!1:t.axisAligned&&e.axisAligned?!0:A1(t).intersect(A1(e),r,a)}var vE=null;function Lu(){return vE}var gE="expandAxisBreak",wa=Math.PI,mE=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],yE=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],dn=_e(),L1=_e(),M1=(function(){function t(e){this.recordMap={},this.resolveAxisNameOverlap=e}return t.prototype.ensureRecord=function(e){var r=e.axis.dim,a=e.componentIndex,n=this.recordMap,i=n[r]||(n[r]=[]);return i[a]||(i[a]={ready:{}})},t})();function bE(t,e,r,a){var n=r.axis,i=e.ensureRecord(r),o=[],s,l=td(t.axisName)&&fi(t.nameLocation);A(a,function(d){var v=Or(d);if(!(!v||v.label.ignore)){o.push(v);var m=i.transGroup;l&&(m.transform?ji(Yo,m.transform):Xi(Yo),v.transform&&qi(Yo,Yo,v.transform),oe.copy(Mu,v.localRect),Mu.applyTransform(Yo),s?s.union(Mu):oe.copy(s=new oe(0,0,0,0),Mu))}});var u=Math.abs(i.dirVec.x)>.1?"x":"y",p=i.transGroup[u];if(o.sort(function(d,v){return Math.abs(d.label[u]-p)-Math.abs(v.label[u]-p)}),l&&s){var c=n.getExtent(),f=Math.min(c[0],c[1]),h=Math.max(c[0],c[1])-f;s.union(new oe(f,0,h,1))}i.stOccupiedRect=s,i.labelInfoList=o}var Yo=wr(),Mu=new oe(0,0,0,0),E1=function(t,e,r,a,n,i){if(fi(t.nameLocation)){var o=i.stOccupiedRect;o&&I1(cE({},o,i.transGroup.transform),a,n)}else O1(i.labelInfoList,i.dirVec,a,n)};function I1(t,e,r){var a=new ie;Jh(t,e,a,{direction:Math.atan2(r.y,r.x),bidirectional:!1,touchThreshold:.05})&&fE(e,a)}function O1(t,e,r,a){for(var n=ie.dot(a,e)>=0,i=0,o=t.length;i<o;i++){var s=t[n?i:o-1-i];s.label.ignore||I1(s,r,a)}}var Xr=(function(){function t(e,r,a,n){this.group=new Me,this._axisModel=e,this._api=r,this._local={},this._shared=n||new M1(E1),this._resetCfgDetermined(a)}return t.prototype.updateCfg=function(e){var r=this._cfg.raw;r.position=e.position,r.labelOffset=e.labelOffset,this._resetCfgDetermined(r)},t.prototype.__getRawCfg=function(){return this._cfg.raw},t.prototype._resetCfgDetermined=function(e){var r=this._axisModel,a=r.getDefaultOption?r.getDefaultOption():{},n=Z(e.axisName,r.get("name")),i=r.get("nameMoveOverlap");(i==null||i==="auto")&&(i=Z(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:Z(e.nameDirection,1),tickDirection:Z(e.tickDirection,1),labelDirection:Z(e.labelDirection,1),labelOffset:Z(e.labelOffset,0),silent:Z(e.silent,!0),axisName:n,nameLocation:Da(r.get("nameLocation"),a.nameLocation,"end"),shouldNameMoveOverlap:td(n)&&i,optionHideOverlap:r.get(["axisLabel","hideOverlap"]),showMinorTicks:r.get(["minorTick","show"])};this._cfg=o;var s=new Me({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(r);l.transGroup=this._transformGroup,l.dirVec=new ie(Math.cos(-o.rotation),Math.sin(-o.rotation))},t.prototype.build=function(e,r){var a=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),A(kE,function(n){e[n]&&wE[n](a._cfg,a._local,a._shared,a._axisModel,a.group,a._transformGroup,a._api,r||{})}),this},t.innerTextLayout=function(e,r,a){var n=Ly(r-e),i,o;return kl(n)?(o=a>0?"top":"bottom",i="center"):kl(n-wa)?(o=a>0?"bottom":"top",i="center"):(o="middle",n>0&&n<wa?i=a>0?"right":"left":i=a>0?"left":"right"),{rotation:n,textAlign:i,textVerticalAlign:o}},t.makeAxisEventDataBase=function(e){var r={componentType:e.mainType,componentIndex:e.componentIndex};return r[e.mainType+"Index"]=e.componentIndex,r},t.isLabelSilent=function(e){var r=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||r&&r.show)},t})(),kE=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],wE={axisLine:function(t,e,r,a,n,i,o){var s=a.get(["axisLine","show"]);if(s==="auto"&&(s=!0,t.raw.axisLineAutoShow!=null&&(s=!!t.raw.axisLineAutoShow)),!!s){var l=a.axis.getExtent(),u=i.transform,p=[l[0],0],c=[l[1],0],f=p[0]>c[0];u&&(Lt(p,p,u),Lt(c,c,u));var h=H({lineCap:"round"},a.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:t.raw.strokeContainThreshold||5,silent:!0,z2:1,style:h};if(a.get(["axisLine","breakLine"])&&nu(a.axis.scale))Lu().buildAxisBreakLine(a,n,i,d);else{var v=new Er(H({shape:{x1:p[0],y1:p[1],x2:c[0],y2:c[1]}},d));Po(v.shape,v.style.lineWidth),v.anid="line",n.add(v)}var m=a.get(["axisLine","symbol"]);if(m!=null){var g=a.get(["axisLine","symbolSize"]);q(m)&&(m=[m,m]),(q(g)||be(g))&&(g=[g,g]);var y=kk(a.get(["axisLine","symbolOffset"])||0,g),b=g[0],k=g[1];A([{rotate:t.rotation+Math.PI/2,offset:y[0],r:0},{rotate:t.rotation-Math.PI/2,offset:y[1],r:Math.sqrt((p[0]-c[0])*(p[0]-c[0])+(p[1]-c[1])*(p[1]-c[1]))}],function(w,_){if(m[_]!=="none"&&m[_]!=null){var x=Ir(m[_],-b/2,-k/2,b,k,h.stroke,!0),T=w.r+w.offset,C=f?c:p;x.attr({rotation:w.rotate,x:C[0]+T*Math.cos(t.rotation),y:C[1]-T*Math.sin(t.rotation),silent:!0,z2:11}),n.add(x)}})}}},axisTickLabelEstimate:function(t,e,r,a,n,i,o,s){var l=N1(e,n,s);l&&R1(t,e,r,a,n,i,o,lr.estimate)},axisTickLabelDetermine:function(t,e,r,a,n,i,o,s){var l=N1(e,n,s);l&&R1(t,e,r,a,n,i,o,lr.determine);var u=SE(t,n,i,a);PE(t,e.labelLayoutList,u),TE(t,n,i,a,t.tickDirection)},axisName:function(t,e,r,a,n,i,o,s){var l=r.ensureRecord(a);e.nameEl&&(n.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var u=t.axisName;if(td(u)){var p=t.nameLocation,c=t.nameDirection,f=a.getModel("nameTextStyle"),h=a.get("nameGap")||0,d=a.axis.getExtent(),v=a.axis.inverse?-1:1,m=new ie(0,0),g=new ie(0,0);p==="start"?(m.x=d[0]-v*h,g.x=-v):p==="end"?(m.x=d[1]+v*h,g.x=v):(m.x=(d[0]+d[1])/2,m.y=t.labelOffset+c*h,g.y=c);var y=wr();g.transform(nc(y,y,t.rotation));var b=a.get("nameRotate");b!=null&&(b=b*wa/180);var k,w;fi(p)?k=Xr.innerTextLayout(t.rotation,b??t.rotation,c):(k=_E(t.rotation,p,b||0,d),w=t.raw.axisNameAvailableWidth,w!=null&&(w=Math.abs(w/Math.sin(k.rotation)),!isFinite(w)&&(w=null)));var _=f.getFont(),x=a.get("nameTruncate",!0)||{},T=x.ellipsis,C=Ns(t.raw.nameTruncateMaxWidth,x.maxWidth,w),P=s.nameMarginLevel||0,S=new Oe({x:m.x,y:m.y,rotation:k.rotation,silent:Xr.isLabelSilent(a),style:Gt(f,{text:u,font:_,overflow:"truncate",width:C,ellipsis:T,fill:f.getTextColor()||a.get(["axisLine","lineStyle","color"]),align:f.get("align")||k.textAlign,verticalAlign:f.get("verticalAlign")||k.textVerticalAlign}),z2:1});if(Ul({el:S,componentModel:a,itemName:u}),S.__fullText=u,S.anid="name",a.get("triggerEvent")){var L=Xr.makeAxisEventDataBase(a);L.targetType="axisName",L.name=u,ce(S).eventData=L}i.add(S),S.updateTransform(),e.nameEl=S;var D=l.nameLayout=Or({label:S,priority:S.z2,defaultAttr:{ignore:S.ignore},marginDefault:fi(p)?mE[P]:yE[P]});if(l.nameLocation=p,n.add(S),S.decomposeTransform(),t.shouldNameMoveOverlap&&D){var M=r.ensureRecord(a);r.resolveAxisNameOverlap(t,r,a,D,g,M)}}}};function R1(t,e,r,a,n,i,o,s){F1(e)||CE(t,e,n,s,a,o);var l=e.labelLayoutList;DE(t,a,l,i),ME(a,t.rotation,l);var u=t.optionHideOverlap;xE(a,l,u),u&&dE(Xe(l,function(p){return p&&!p.label.ignore})),bE(t,r,a,l)}function _E(t,e,r,a){var n=Ly(r-t),i,o,s=a[0]>a[1],l=e==="start"&&!s||e!=="start"&&s;return kl(n-wa/2)?(o=l?"bottom":"top",i="center"):kl(n-wa*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",n<wa*1.5&&n>wa/2?i=l?"left":"right":i=l?"right":"left"),{rotation:n,textAlign:i,textVerticalAlign:o}}function xE(t,e,r){var a=t.axis,n=t.get(["axisLabel","customValues"]);if(b5(a))return;function i(u,p,c){var f=Or(e[p]),h=Or(e[c]),d=a.scale;if(!(!f||!h)){if(u==null){if(!r&&n)return;var v=dn(f.label).labelInfo.tick;if(zh(d)&&v.notNice||sr(d)&&v.offInterval){gi(f.label);return}}if(u===!1||f.suggestIgnore){gi(f.label);return}if(h.suggestIgnore){gi(h.label);return}var m=.1;if(!r){var g=[0,0,0,0];f=D1({marginForce:g},f),h=D1({marginForce:g},h)}Jh(f,h,null,{touchThreshold:m})&&gi(u?h.label:f.label)}}var o=t.get(["axisLabel","showMinLabel"]),s=t.get(["axisLabel","showMaxLabel"]),l=e.length;i(o,0,1),i(s,l-1,l-2)}function PE(t,e,r){t.showMinorTicks||A(e,function(a){if(a&&a.label.ignore)for(var n=0;n<r.length;n++){var i=r[n],o=L1(i),s=dn(a.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.labelInfo.tick.value){gi(i);return}}})}function gi(t){t&&(t.ignore=!0)}function B1(t,e,r,a,n){for(var i=[],o=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=r,e&&(Lt(o,o,e),Lt(s,s,e));var p=new Er({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:a,z2:2,autoBatch:!0,silent:!0});Po(p.shape,p.style.lineWidth),p.anid=n+"_"+t[l].tickValue,i.push(p);var c=L1(p);c.onBand=!!t[l].onBand,c.tickValue=t[l].tickValue}return i}function SE(t,e,r,a){var n=a.axis,i=a.getModel("axisTick"),o=i.get("show");if(o==="auto"&&(o=!0,t.raw.axisTickAutoShow!=null&&(o=!!t.raw.axisTickAutoShow)),!o||n.scale.isBlank())return[];for(var s=i.getModel("lineStyle"),l=t.tickDirection*i.get("length"),u=n.getTicksCoords(),p=B1(u,r.transform,l,pe(s.getLineStyle(),{stroke:a.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<p.length;c++)e.add(p[c]);return p}function TE(t,e,r,a,n){var i=a.axis,o=a.getModel("minorTick");if(!(!t.showMinorTicks||i.scale.isBlank())){var s=i.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=n*o.get("length"),p=pe(l.getLineStyle(),pe(a.getModel("axisTick").getLineStyle(),{stroke:a.get(["axisLine","lineStyle","color"])})),c=0;c<s.length;c++)for(var f=B1(s[c],r.transform,u,p,"minorticks_"+c),h=0;h<f.length;h++)e.add(f[h])}}function N1(t,e,r){if(F1(t)){var a=t.axisLabelsCreationContext,n=a.out.noPxChangeTryDetermine;if(r.noPxChange){for(var i=!0,o=0;o<n.length;o++)i=i&&n[o]();if(i)return!1}n.length&&(e.remove(t.labelGroup),ed(t,null,null,null))}return!0}function CE(t,e,r,a,n,i){var o=n.axis,s=Ns(t.raw.axisLabelShow,n.get(["axisLabel","show"])),l=new Me;r.add(l);var u=Su(a);if(!s||o.scale.isBlank()){ed(e,[],l,u);return}var p=n.getModel("axisLabel"),c=o.getViewLabels(u),f=(Ns(t.raw.labelRotate,p.get("rotate"))||0)*wa/180,h=Xr.innerTextLayout(t.rotation,f,t.labelDirection),d=n.getCategories&&n.getCategories(!0),v=[],m=n.get("triggerEvent"),g=1/0,y=-1/0;A(c,function(k,w){var _,x=k.tick,T=k.formattedLabel,C=k.rawLabel,P=p,S=Wo(o.scale,x);if(d&&d[S]){var L=d[S];J(L)&&L.textStyle&&(P=new Ae(L.textStyle,p,n.ecModel))}var D=P.getTextColor()||n.get(["axisLine","lineStyle","color"]),M=P.getShallow("align",!0)||h.textAlign,I=Z(P.getShallow("alignMinLabel",!0),M),E=Z(P.getShallow("alignMaxLabel",!0),M),O=P.getShallow("verticalAlign",!0)||P.getShallow("baseline",!0)||h.textVerticalAlign,R=Z(P.getShallow("verticalAlignMinLabel",!0),O),B=Z(P.getShallow("verticalAlignMaxLabel",!0),O),N=10+(((_=x.time)===null||_===void 0?void 0:_.level)||0);g=Math.min(g,N),y=Math.max(y,N);var F=new Oe({x:0,y:0,rotation:0,silent:Xr.isLabelSilent(n),z2:N,style:Gt(P,{text:T,align:w===0?I:w===c.length-1?E:M,verticalAlign:w===0?R:w===c.length-1?B:O,fill:re(D)?D(o.type==="category"?C:o.type==="value"?S+"":S,w):D})});F.anid="label_"+S;var U=dn(F);if(U.labelInfo=k,U.layoutRotation=h.rotation,Ul({el:F,componentModel:n,itemName:T,formatterParamsExtra:{isTruncated:function(){return F.isTruncated},value:C,tickIndex:w}}),m){var Y=Xr.makeAxisEventDataBase(n);Y.targetType="axisLabel",Y.value=C,Y.tickIndex=w;var z=k.tick.break;if(z){var j=z.parsedBreak;Y.break={start:j.vmin,end:j.vmax}}o.type==="category"&&(Y.dataIndex=S),ce(F).eventData=Y,z&&LE(n,i,F,z)}v.push(F),l.add(F)});var b=K(v,function(k){return{label:k,priority:dn(k).labelInfo.tick.break?k.z2+(y-g+1):k.z2,defaultAttr:{ignore:k.ignore}}});ed(e,b,l,u)}function F1(t){return!!t.labelLayoutList}function ed(t,e,r,a){t.labelLayoutList=e,t.labelGroup=r,t.axisLabelsCreationContext=a}function DE(t,e,r,a){var n=e.get(["axisLabel","margin"]);A(r,function(i,o){var s=Or(i);if(s){var l=s.label,u=dn(l);s.suggestIgnore=l.ignore,l.ignore=!1,to(qr,AE);var p=e.axis;qr.x=p.dataToCoord(Wo(p.scale,u.labelInfo.tick)),qr.y=t.labelOffset+t.labelDirection*n,qr.rotation=u.layoutRotation,a.add(qr),qr.updateTransform(),a.remove(qr),qr.decomposeTransform(),to(l,qr),l.markRedraw(),Au(s,!0),Or(s)}})}var qr=new Ie,AE=new Ie;function td(t){return!!t}function LE(t,e,r,a){r.on("click",function(n){var i={type:gE,breaks:[{start:a.parsedBreak.breakOption.start,end:a.parsedBreak.breakOption.end}]};i[t.axis.dim+"AxisIndex"]=t.componentIndex,e.dispatchAction(i)})}function ME(t,e,r){var a=ct();if(a){var n=a.retrieveAxisBreakPairs(r,function(o){return o&&dn(o.label).labelInfo.tick.break},!0),i=t.get(["breakLabelLayout","moveOverlap"],!0);(i===!0||i==="auto")&&A(n,function(o){Lu().adjustBreakLabelPair(t.axis.inverse,e,[Or(r[o[0]]),Or(r[o[1]])])})}}function Eu(t,e,r){r=r||{};var a=e.axis,n={},i=a.getAxesOnZeroOf()[0],o=a.position,s=i?"onZero":o,l=a.dim,u=[t.x,t.x+t.width,t.y,t.y+t.height],p={left:0,right:1,top:0,bottom:1,onZero:2},c=e.get("offset")||0,f=l==="x"?[u[2]-c,u[3]+c]:[u[0]-c,u[1]+c];if(i){var h=i.toGlobalCoord(i.dataToCoord(0));f[p.onZero]=Math.max(Math.min(h,f[1]),f[0])}n.position=[l==="y"?f[p[s]]:u[0],l==="x"?f[p[s]]:u[3]],n.rotation=Math.PI/2*(l==="x"?0:1);var d={top:-1,bottom:1,left:-1,right:1};n.labelDirection=n.tickDirection=n.nameDirection=d[o],n.labelOffset=i?f[p[o]]-f[p.onZero]:0,e.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),Ns(r.labelInside,e.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var v=e.get(["axisLabel","rotate"]);return n.labelRotate=s==="top"?-v:v,n.z2=1,n}function EE(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function IE(t){var e={xAxisModel:null,yAxisModel:null};return A(e,function(r,a){var n=a.replace(/Model$/,""),i=t.getReferringComponents(n,zt).models[0];e[a]=i}),e}function OE(t,e,r,a,n,i){for(var o=Eu(t,r),s=!1,l=!1,u=0;u<e.length;u++)Hk(e[u].getOtherAxis(r.axis).scale)&&(s=l=!0,r.axis.type==="category"&&r.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=i,new Xr(r,a,o,n)}function RE(t,e,r){var a=Eu(e,r);t.updateCfg(a)}var BE=_e(),z1=1,NE=3,H1=(function(){function t(e,r,a,n,i){var o=sr(e),s=o?r.getCategories().length:null,l;if(o){var u=r.getCategories(!0);l=u&&!u.length}var p=a.slice();(mu(e)||ci(e)||zh(e))&&(Uy(p,Ko(e,r.get("dataMin",!0))),Gy(p,Ko(e,r.get("dataMax",!0)))),XD(p)||(p[0]=p[1]=NaN);var c=[],f=[!1,!1],h=r.get("min",!0);h==="dataMin"?(c[0]=p[0],f[0]=!0):(c[0]=Ko(e,re(h)?h({min:p[0],max:p[1]}):h),f[0]=c[0]!=null);var d=r.get("max",!0);d==="dataMax"?(c[1]=p[1],f[1]=!0):(c[1]=Ko(e,re(d)?d({min:p[0],max:p[1]}):d),f[1]=c[1]!=null);var v=FE(e,r),m=o?null:p[1]-p[0]||Math.abs(p[0]);c[0]==null&&(c[0]=o?l?p[0]:s?0:NaN:p[0]-v[0]*m),c[1]==null&&(c[1]=o?l?p[1]:s?s-1:NaN:p[1]+v[1]*m),!Ur(c[0])&&(c[0]=NaN),!Ur(c[1])&&(c[1]=NaN);var g=l||$i(c[0])||$i(c[1])||o&&!s,y=mu(e),b=y&&r.needIncludeZero&&r.needIncludeZero();b&&(c[0]>0&&c[1]>0&&!f[0]&&(c[0]=0),c[0]<0&&c[1]<0&&!f[1]&&(c[1]=0));var k=!1;c[0]>c[1]&&(c.reverse(),k=!0);var w=Ko(e,r.get("startValue",!0)),_=w!=null;!Ft(w)&&n&&(w=e.getDefaultStartValue?e.getDefaultStartValue():0),Ft(w)&&(_||!y||b)&&(w<c[0]&&!f[0]?(c[0]=w,f[0]=!0):w>c[1]&&!f[1]&&(c[1]=w,f[1]=!0));var x=this._i={scale:e,dataMM:p,noZoomEffMM:c,zoomMM:[],fixMM:f,zoomFixMM:[!1,!1],startValue:w,isBlank:g,incl0:b,tggAxInv:k,ctnShp:i};V1(x,c)}return t.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},t.prototype.makeFinal=function(){var e=this._i,r=e.zoomMM,a=e.noZoomEffMM,n=e.zoomFixMM,i=e.fixMM,o={fixMM:i,zoomFixMM:n,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:a.slice()},s=o.effMM;return r[0]!=null&&(s[0]=r[0],i[0]=n[0]=!0),r[1]!=null&&(s[1]=r[1],i[1]=n[1]=!0),V1(e,s),o},t.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},t.prototype.setZoomMM=function(e,r){this._i.zoomMM[e]=r},t})();function V1(t,e){var r=t.scale,a=t.dataMM;r.sanitize&&(e[0]=r.sanitize(e[0],a),e[1]=r.sanitize(e[1],a),qD(e))}function Ko(t,e){return e==null?null:$i(e)?NaN:t.parse(e)}function FE(t,e){var r;if(sr(t))r=[0,0];else{var a=e.get("boundaryGap");typeof a=="boolean"&&(a=null),r=W(a)?a:[a,a]}return[U1(r[0]),U1(r[1])]}function U1(t){return Ba(typeof t=="boolean"?0:t,1)||0}function G1(t){var e=BE(t.scale);return e.extent||(e.extent=Ht()),e}function zE(t,e){G1(t).dimIdxInCoord=e.get(t.dim)}function W1(t,e){var r=t.scale,a=t.model,n=t.dim;r.rawExtentInfo||HE(r,t,n,a,e)}function HE(t,e,r,a,n){var i=G1(e),o=i.extent,s=!1;eE(e,function(p){if(p.boxCoordinateSystem){var c=Ob(p).coord,f=i.dimIdxInCoord;if(f>=0){if(W(c)){var h=c[f];h!=null&&!W(h)&&ff(o,t.parse(h))}}}else if(p.coordinateSystem){var d=p.getData();if(d){var v=t.getFilter?t.getFilter():null;A(k5(d,r),function(m){KD(o,d.getApproximateExtent(m,v))})}p.__requireStartValue&&p.__requireStartValue(e)&&(s=!0)}});var l=GE(t,e,a),u=new H1(t,a,o,s,l);$1(t,u,n),i.extent=null}function VE(t,e){var r=t.scale;$1(r,new H1(r,t.model,e,!1,!1),NE)}function $1(t,e,r){t.rawExtentInfo=e,e.from=r}function UE(t,e){rd.set(t,e)}var rd=ae();function Y1(t,e,r,a,n){t.rawExtentInfo||VE({scale:t,model:e},Ht());var i=t.rawExtentInfo.makeFinal(),o=i.effMM;return t.setExtent(o[0],o[1]),t.setBlank(i.isBlank),a&&i.tggAxInv&&r&&!r.get("legacyMinMaxDontInverseAxis")&&(a.inverse=!a.inverse),i}function GE(t,e,r){var a=t1(t,r),n=r.get("containShape",!0);if(n==null&&!a&&(n=!0),!n)return!1;var i=!1;return b1(e,function(o){i=!!rd.get(o)||i}),i}function WE(t,e,r,a){if(r.ctnShp){var n;if(b1(t,function(s){var l=rd.get(s);if(l){var u=l(t,a);u&&(n=n||[0,0],Uy(n,u[0]),Gy(n,u[1]),m5(t))}}),!!n){var i=e.getExtent();if(sr(e))t.onBand||e.setExtent2(Vo,et(i[0],i[0]+n[0]),ye(i[1],i[1]+n[1]));else{var o=i.slice();r.zoomFixMM[0]||(o[0]=et(o[0],e.transformOut(e.transformIn(o[0],null)+n[0],null))),r.zoomFixMM[1]||(o[1]=ye(o[1],e.transformOut(e.transformIn(o[1],null)+n[1],null))),(o[0]<i[0]||o[1]>i[1])&&e.setExtent2(Vo,o[0],o[1])}}}}function $E(){aE("liPosMinGap",YE)}function YE(t,e,r){var a=ae(),n=r.serUids,i=r.liPosMinGap,o,s=e.axis,l=s.scale,u=l.needTransform(),p=l.getFilter?l.getFilter():null,c=yb(p);function f(b){Xh(t,e.sers,function(k){var w=k.getRawData(),_=w.getDimensionIndex(w.mapDimension(s.dim));_>=0&&b(_,k,w.getStore())})}var h=0;if(f(function(b,k,w){a.set(k.uid,1),(!n||!n.hasKey(k.uid))&&(o=!0),h+=w.count()}),(!n||n.keys().length!==a.keys().length)&&(o=!0),!o&&i!=null){e.liPosMinGap=i;return}Oh(vn,h);var d=0;f(function(b,k,w){for(var _=0,x=w.count();_<x;++_){var T=w.get(b,_);isFinite(T)&&(!p||bb(c,T))&&(u&&(T=l.transformIn(T,null)),vn.arr[d++]=T)}});var v=vn.typed?vn.arr.subarray(0,d):(vn.arr.length=d,vn.arr);vn.typed?v.sort():nf(v);for(var m=1/0,g=1;g<d;++g){var y=v[g]-v[g-1];y>0&&y<m&&(m=y)}r.liPosMinGap=e.liPosMinGap=Ft(m)?m:d>0?d1:j5,r.serUids=a}var vn=Oh({ctor:BM},50);function KE(t){return function(e,r){var a=vi(e,{fromStat:{key:t}});if(Ft(a.w2))return[-a.w2/2,a.w2/2]}}function Iu(t,e){return t+Kh+e}function XE(t){return $E(),{liPosMinGap:!sr(t.scale)}}var mi="bar";function qE(t,e,r,a){nE(t,{key:e,seriesType:r,coordSysType:a,getMetrics:XE})}function jE(t){var e=t.scale.rawExtentInfo.makeRenderInfo().startValue;return e}var K1={left:0,right:0,top:0,bottom:0},Ou=["25%","25%"],jr="cartesian2d",ZE=(function(t){V(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(r,a){var n=zo(r.outerBounds);t.prototype.mergeDefaultAndTheme.apply(this,arguments),n&&r.outerBounds&&va(r.outerBounds,n)},e.prototype.mergeOption=function(r,a){t.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&r.outerBounds&&va(this.option.outerBounds,r.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:K1,outerBoundsContain:"all",outerBoundsClampWidth:Ou[0],outerBoundsClampHeight:Ou[1],backgroundColor:$.color.transparent,borderWidth:1,borderColor:$.color.neutral30},e})(ke),QE=Wy(),JE="__ec_stack_";function X1(t){return t.get("stack")||JE+t.seriesIndex}function e4(t,e){var r=t4(t,e);return r.columnMap=r4(r),r}function t4(t,e){var r=Iu(e,jr),a=[],n=vi(t,{fromStat:{key:r},min:1});return y1(t,r,function(i){a.push({barWidth:ee(i.get("barWidth"),n.w),barMaxWidth:ee(i.get("barMaxWidth"),n.w),barMinWidth:ee(i.get("barMinWidth")||(q1(i)?.5:1),n.w),barGap:i.get("barGap"),barCategoryGap:i.get("barCategoryGap"),defaultBarGap:i.get("defaultBarGap"),stackId:X1(i)})}),{bandWidthResult:n,seriesInfo:a}}function r4(t){var e=t.bandWidthResult.w,r=e,a=0,n,i,o=[],s={};A(t.seriesInfo,function(v,m){m||(i=v.defaultBarGap||0);var g=v.stackId;st(s,g)||a++;var y=s[g];y||(y=s[g]={width:0,maxWidth:0},o.push(g));var b=v.barWidth;b&&!y.width&&(y.width=b,b=et(r,b),r-=b);var k=v.barMaxWidth;k&&(y.maxWidth=k);var w=v.barMinWidth;w&&(y.minWidth=w);var _=v.barGap;_!=null&&(i=_);var x=v.barCategoryGap;x!=null&&(n=x)}),n==null&&(n=ye(35-o.length*4,15)+"%");var l=ee(n,e),u=ee(i,1),p=(r-l)/(a+(a-1)*u);p=ye(p,0),A(o,function(v){var m=s[v],g=m.maxWidth,y=m.minWidth;if(m.width){var b=m.width;g&&(b=et(b,g)),y&&(b=ye(b,y)),m.width=b,r-=b+u*b,a--}else{var b=p;g&&g<b&&(b=et(g,r)),y&&y>b&&(b=y),b!==p&&(m.width=b,r-=b+u*b,a--)}}),p=(r-l)/(a+(a-1)*u),p=ye(p,0);var c=0,f;A(o,function(v){var m=s[v];m.width||(m.width=p),f=m,c+=m.width*(1+u)}),f&&(c-=f.width*u);var h={},d=-c/2;return A(o,function(v){var m=s[v];h[v]=h[v]||{bandWidth:e,offset:d,width:m.width},d+=m.width*(1+u)}),h}function a4(t){return{seriesType:t,overallReset:function(e){var r=Iu(t,jr);tE(e,r,function(a){var n=e4(a,t);y1(a,r,function(i){var o=n.columnMap[X1(i)];i.getData().setLayout({bandWidth:o.bandWidth,offset:o.offset,size:o.width})})})}}}function n4(t){return{seriesType:t,plan:Bh(),reset:function(e){if(EE(e)){var r=e.getData(),a=e.coordinateSystem,n=a.getBaseAxis(),i=a.getOtherAxis(n),o=r.getDimensionIndex(r.mapDimension(i.dim)),s=r.getDimensionIndex(r.mapDimension(n.dim)),l=e.get("showBackground",!0),u=r.mapDimension(i.dim),p=r.getCalculationInfo("stackResultDimension"),c=si(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),f=i.isHorizontal(),h=i.toGlobalCoord(i.dataToCoord(jE(i))),d=q1(e),v=e.get("barMinHeight")||0,m=p&&r.getDimensionIndex(p),g=r.getLayout("size"),y=r.getLayout("offset");return{progress:function(b,k){for(var w=b.count,_=d&&Kr(w*3),x=d&&l&&Kr(w*3),T=d&&Kr(w),C=a.master.getRect(),P=f?C.width:C.height,S,L=k.getStore(),D=0;(S=b.next())!=null;){var M=L.get(c?m:o,S),I=L.get(s,S),E=h,O=void 0;c&&(O=+M-L.get(o,S));var R=void 0,B=void 0,N=void 0,F=void 0;if(f){var U=a.dataToPoint([M,I]);c&&(E=a.dataToPoint([O,I])[0]),R=E,B=U[1]+y,N=U[0]-E,F=g,Ve(N)<v&&(N=(N<0?-1:1)*v)}else{var U=a.dataToPoint([I,M]);c&&(E=a.dataToPoint([I,O])[1]),R=U[0]+y,B=E,N=g,F=U[1]-E,Ve(F)<v&&(F=(F<=0?-1:1)*v)}d?(_[D]=R,_[D+1]=B,_[D+2]=f?N:F,x&&(x[D]=f?C.x:R,x[D+1]=f?B:C.y,x[D+2]=P),T[S]=S):k.setItemLayout(S,{x:R,y:B,width:N,height:F}),D+=3}d&&k.setLayout({largePoints:_,largeDataIndices:T,largeBackgroundPoints:x,valueAxisHorizontal:f})}}}}}}function q1(t){return t.pipelineContext&&t.pipelineContext.large}function i4(t){return KE(Iu(t,jr))}function o4(t){QE(t,function(){function e(r){var a=Iu(r,jr);qE(t,a,r,jr),UE(a,i4(r))}e("bar"),e("pictorialBar")})}var ad=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(r,a){return Jl(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(r,a,n){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(r),s=i.dataToPoint(o);if(n)A(i.getAxes(),function(f,h){if(f.type==="category"&&a!=null){var d=f.getTicksCoords(),v=f.getTickModel().get("alignWithLabel"),m=o[h],g=a[h]==="x1"||a[h]==="y1";if(g&&!v&&(m+=1),d.length<2)return;if(d.length===2){s[h]=f.toGlobalCoord(f.getExtent()[g?1:0]);return}for(var y=void 0,b=void 0,k=1,w=0;w<d.length;w++){var _=d[w].coord,x=w===d.length-1?d[w-1].tickValue+k:d[w].tickValue;if(x===m){b=_;break}else if(x<m)y=_;else if(y!=null&&x>m){b=(_+y)/2;break}w===1&&(k=x-d[0].tickValue)}b==null&&(y?y&&(b=d[d.length-1].coord):b=d[0].coord),s[h]=f.toGlobalCoord(b)}});else{var l=this.getData(),u=l.getLayout("offset"),p=l.getLayout("size"),c=i.getBaseAxis().isHorizontal()?0:1;s[c]+=u+p/2}return s}return[NaN,NaN]},e.prototype.__requireStartValue=function(r){return this.getBaseAxis()!==r},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},e})(ft);ft.registerClass(ad);var s4=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(){return Jl(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.__preparePipelineContext=function(r,a){var n=Yy(this,r,a);return n.progressiveRender&&(n.large=!0),n},e.prototype.brushSelector=function(r,a,n){return n.rect(a.getItemLayout(r))},e.type="series."+mi,e.dependencies=["grid","polar"],e.defaultOption=Rb(ad.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:$.color.primary,borderWidth:2}},realtimeSort:!1}),e})(ad),Ru="\0__throttleOriginMethod",j1="\0__throttleRate",Z1="\0__throttleType";function nd(t,e,r){var a,n=0,i=0,o=null,s,l,u,p;e=e||0;function c(){i=new Date().getTime(),o=null,t.apply(l,u||[])}var f=function(){for(var h=[],d=0;d<arguments.length;d++)h[d]=arguments[d];a=new Date().getTime(),l=this,u=h;var v=p||e,m=p||r;p=null,s=a-(m?n:i)-v,clearTimeout(o),m?o=setTimeout(c,v):s>=0?c():o=setTimeout(c,-s),n=a};return f.clear=function(){o&&(clearTimeout(o),o=null)},f.debounceNextCall=function(h){p=h},f}function Q1(t,e,r,a){var n=t[e];if(n){var i=n[Ru]||n,o=n[Z1],s=n[j1];if(s!==r||o!==a){if(r==null||!a)return t[e]=i;n=t[e]=nd(i,r,a==="debounce"),n[Ru]=i,n[Z1]=a,n[j1]=r}return n}}function id(t,e){var r=t[e];r&&r[Ru]&&(r.clear&&r.clear(),t[e]=r[Ru])}var l4=(function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t})(),Bu=(function(t){V(e,t);function e(r){var a=t.call(this,r)||this;return a.type="sausage",a}return e.prototype.getDefaultShape=function(){return new l4},e.prototype.buildPath=function(r,a){var n=a.cx,i=a.cy,o=Math.max(a.r0||0,0),s=Math.max(a.r,0),l=(s-o)*.5,u=o+l,p=a.startAngle,c=a.endAngle,f=a.clockwise,h=Math.PI*2,d=f?c-p<h:p-c<h;d||(p=c-(f?h:-h));var v=Math.cos(p),m=Math.sin(p),g=Math.cos(c),y=Math.sin(c);d?(r.moveTo(v*o+n,m*o+i),r.arc(v*u+n,m*u+i,l,-Math.PI+p,p,!f)):r.moveTo(v*s+n,m*s+i),r.arc(n,i,s,p,c,!f),r.arc(g*u+n,y*u+i,l,c-Math.PI*2,c-Math.PI,!f),o!==0&&r.arc(n,i,o,c,p,f)},e})(me);function u4(t,e){e=e||{};var r=e.isRoundCap;return function(a,n,i){var o=n.position;if(!o||o instanceof Array)return Ws(a,n,i);var s=t(o),l=n.distance!=null?n.distance:5,u=this.shape,p=u.cx,c=u.cy,f=u.r,h=u.r0,d=(f+h)/2,v=u.startAngle,m=u.endAngle,g=(v+m)/2,y=r?Math.abs(f-h)/2:0,b=Math.cos,k=Math.sin,w=p+f*b(v),_=c+f*k(v),x="left",T="top";switch(s){case"startArc":w=p+(h-l)*b(g),_=c+(h-l)*k(g),x="center",T="top";break;case"insideStartArc":w=p+(h+l)*b(g),_=c+(h+l)*k(g),x="center",T="bottom";break;case"startAngle":w=p+d*b(v)+Nu(v,l+y,!1),_=c+d*k(v)+Fu(v,l+y,!1),x="right",T="middle";break;case"insideStartAngle":w=p+d*b(v)+Nu(v,-l+y,!1),_=c+d*k(v)+Fu(v,-l+y,!1),x="left",T="middle";break;case"middle":w=p+d*b(g),_=c+d*k(g),x="center",T="middle";break;case"endArc":w=p+(f+l)*b(g),_=c+(f+l)*k(g),x="center",T="bottom";break;case"insideEndArc":w=p+(f-l)*b(g),_=c+(f-l)*k(g),x="center",T="top";break;case"endAngle":w=p+d*b(m)+Nu(m,l+y,!0),_=c+d*k(m)+Fu(m,l+y,!0),x="left",T="middle";break;case"insideEndAngle":w=p+d*b(m)+Nu(m,-l+y,!0),_=c+d*k(m)+Fu(m,-l+y,!0),x="right",T="middle";break;default:return Ws(a,n,i)}return a=a||{},a.x=w,a.y=_,a.align=x,a.verticalAlign=T,a}}function p4(t,e,r,a){if(be(a)){t.setTextConfig({rotation:a});return}else if(W(e)){t.setTextConfig({rotation:0});return}var n=t.shape,i=n.clockwise?n.startAngle:n.endAngle,o=n.clockwise?n.endAngle:n.startAngle,s=(i+o)/2,l,u=r(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=i;break;case"endAngle":case"insideEndAngle":l=o;break;default:t.setTextConfig({rotation:0});return}var p=Math.PI*1.5-l;u==="middle"&&p>Math.PI/2&&p<Math.PI*1.5&&(p-=Math.PI),t.setTextConfig({rotation:p})}function Nu(t,e,r){return e*Math.sin(t)*(r?-1:1)}function Fu(t,e,r){return e*Math.cos(t)*(r?1:-1)}function Xo(t,e,r){var a=t.get("borderRadius");if(a==null)return r?{cornerRadius:0}:null;W(a)||(a=[a,a,a,a]);var n=Math.abs(e.r||0-e.r0||0);return{cornerRadius:K(a,function(i){return Ba(i,n)})}}var od=Math.max,sd=Math.min,c4=(function(t){V(e,t);function e(){var r=t.call(this)||this;return r.type=mi,r._isFirstFrame=!0,r}return e.prototype.render=function(r,a,n,i){this._model=r,this._removeOnRenderedListener(n),this._updateDrawMode(r);var o=r.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,a,n):this._renderNormal(r,a,n,i))},e.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},e.prototype.incrementalRender=function(r,a){this._progressiveEls=[],this._incrementalRenderLarge(r,a)},e.prototype.eachRendered=function(r){Gl(this._progressiveEls||this.group,r)},e.prototype._updateDrawMode=function(r){var a=r.pipelineContext.large;(this._isLargeDraw==null||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},e.prototype._renderNormal=function(r,a,n,i){var o=this.group,s=r.getData(),l=this._data,u=r.coordinateSystem,p=u.getBaseAxis(),c;u.type==="cartesian2d"?c=p.isHorizontal():u.type==="polar"&&(c=p.dim==="angle");var f=r.isAnimationEnabled()?r:null,h=f4(r,u);h&&this._enableRealtimeSort(h,s,n);var d=r.get("clip",!0)||h,v=u.getArea();o.removeClipPath();var m=r.get("roundCap",!0),g=r.get("showBackground",!0),y=r.getModel("backgroundStyle"),b=y.get("borderRadius")||0,k=[],w=this._backgroundEls,_=i&&i.isInitSort,x=i&&i.type==="changeAxisOrder";function T(S){var L=zu[u.type](s,S);if(!L)return null;var D=b4(u,c,L);return D.useStyle(y.getItemStyle()),u.type==="cartesian2d"?D.setShape("r",b):D.setShape("cornerRadius",b),k[S]=D,D}s.diff(l).add(function(S){var L=s.getItemModel(S),D=zu[u.type](s,S,L);if(D&&(g&&T(S),!(!s.hasValue(S)||!aw[u.type](D)))){var M=!1;d&&(M=J1[u.type](v,D));var I=ew[u.type](r,s,S,D,c,f,p.model,!1,m);h&&(I.forceLabelAnimation=!0),iw(I,s,S,L,D,r,c,u.type==="polar"),_?I.attr({shape:D}):h?tw(h,f,I,D,S,c,!1,!1):Ye(I,{shape:D},r,S),s.setItemGraphicEl(S,I),o.add(I),I.ignore=M}}).update(function(S,L){var D=s.getItemModel(S),M=zu[u.type](s,S,D);if(M){if(g){var I=void 0;w.length===0?I=T(L):(I=w[L],I.useStyle(y.getItemStyle()),u.type==="cartesian2d"?I.setShape("r",b):I.setShape("cornerRadius",b),k[S]=I);var E=zu[u.type](s,S),O=uw(c,E,u);Re(I,{shape:O},f,S)}var R=l.getItemGraphicEl(L);if(!s.hasValue(S)||!aw[u.type](M)){o.remove(R);return}var B=!1;d&&(B=J1[u.type](v,M),B&&o.remove(R));var N=R&&(R.type==="sector"&&m||R.type==="sausage"&&!m);if(N&&(R&&Jn(R,r,L),R=null),R?ei(R):R=ew[u.type](r,s,S,M,c,f,p.model,!0,m),h&&(R.forceLabelAnimation=!0),x){var F=R.getTextContent();if(F){var U=Co(F);U.prevValue!=null&&(U.prevValue=U.value)}}else iw(R,s,S,D,M,r,c,u.type==="polar");_?R.attr({shape:M}):h?tw(h,f,R,M,S,c,!0,x):Re(R,{shape:M},r,S,null),s.setItemGraphicEl(S,R),R.ignore=B,o.add(R)}}).remove(function(S){var L=l.getItemGraphicEl(S);L&&Jn(L,r,S)}).execute();var C=this._backgroundGroup||(this._backgroundGroup=new Me);C.removeAll();for(var P=0;P<k.length;++P)C.add(k[P]);o.add(C),this._backgroundEls=k,this._data=s},e.prototype._renderLarge=function(r,a,n){this._clear(),sw(r,this.group),this._updateLargeClip(r)},e.prototype._incrementalRenderLarge=function(r,a){this._removeBackground(),sw(a,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(r){var a=r.get("clip",!0)&&YM(r.coordinateSystem,!1,r),n=this.group;a?n.setClipPath(a):n.removeClipPath()},e.prototype._enableRealtimeSort=function(r,a,n){var i=this;if(a.count()){var o=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(a,r,n),this._isFirstFrame=!1;else{var s=function(l){var u=a.getItemGraphicEl(l),p=u&&u.shape;return p&&Math.abs(o.isHorizontal()?p.height:p.width)||0};this._onRendered=function(){i._updateSortWithinSameData(a,s,o,n)},n.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(r,a,n){var i=[];return r.each(r.mapDimension(a.dim),function(o,s){var l=n(s);l=l??NaN,i.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),i.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:K(i,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(r,a,n){for(var i=n.scale,o=r.mapDimension(n.dim),s=Number.MAX_VALUE,l=0,u=i.getOrdinalMeta().categories.length;l<u;++l){var p=r.rawIndexOf(o,i.getRawOrdinalNumber(l)),c=p<0?Number.MIN_VALUE:a(r.indexOfRawIndex(p));if(c>s)return!0;s=c}return!1},e.prototype._isOrderDifferentInView=function(r,a){for(var n=a.scale,i=n.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],n.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(r,a,n,i){if(this._isOrderChangedWithinSameData(r,a,n)){var o=this._dataSort(r,n,a);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(r,a,n){var i=a.baseAxis,o=this._dataSort(r,i,function(s){return r.get(r.mapDimension(a.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(r,a){this._clear(this._model),this._removeOnRenderedListener(a)},e.prototype.dispose=function(r,a){this._removeOnRenderedListener(a)},e.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(r){var a=this.group,n=this._data;r&&r.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(i){Jn(i,r,ce(i).dataIndex)})):a.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type=mi,e})(at),J1={cartesian2d:function(t,e){var r=e.width<0?-1:1,a=e.height<0?-1:1;r<0&&(e.x+=e.width,e.width=-e.width),a<0&&(e.y+=e.height,e.height=-e.height);var n=t.x+t.width,i=t.y+t.height,o=od(e.x,t.x),s=sd(e.x+e.width,n),l=od(e.y,t.y),u=sd(e.y+e.height,i),p=s<o,c=u<l;return e.x=p&&o>n?s:o,e.y=c&&l>i?u:l,e.width=p?0:s-o,e.height=c?0:u-l,r<0&&(e.x+=e.width,e.width=-e.width),a<0&&(e.y+=e.height,e.height=-e.height),p||c},polar:function(t,e){var r=e.r0<=e.r?1:-1;if(r<0){var a=e.r;e.r=e.r0,e.r0=a}var n=sd(e.r,t.r),i=od(e.r0,t.r0);e.r=n,e.r0=i;var o=n-i<0;if(r<0){var a=e.r;e.r=e.r0,e.r0=a}return o}},ew={cartesian2d:function(t,e,r,a,n,i,o,s,l){var u=new Ie({shape:H({},a),z2:1});if(u.__dataIndex=r,u.name="item",i){var p=u.shape,c=n?"height":"width";p[c]=0}return u},polar:function(t,e,r,a,n,i,o,s,l){var u=!n&&l?Bu:Mr,p=new u({shape:a,z2:1});p.name="item";var c=nw(n);if(p.calculateTextPosition=u4(c,{isRoundCap:u===Bu}),i){var f=p.shape,h=n?"r":"endAngle",d={};f[h]=n?a.r0:a.startAngle,d[h]=a[h],(s?Re:Ye)(p,{shape:d},i)}return p}};function f4(t,e){var r=t.get("realtimeSort",!0),a=e.getBaseAxis();if(r&&a.type==="category"&&e.type==="cartesian2d")return{baseAxis:a,otherAxis:e.getOtherAxis(a)}}function tw(t,e,r,a,n,i,o,s){var l,u;i?(u={x:a.x,width:a.width},l={y:a.y,height:a.height}):(u={y:a.y,height:a.height},l={x:a.x,width:a.width}),s||(o?Re:Ye)(r,{shape:l},e,n,null);var p=e?t.baseAxis.model:null;(o?Re:Ye)(r,{shape:u},p,n)}function rw(t,e){for(var r=0;r<e.length;r++)if(!isFinite(t[e[r]]))return!0;return!1}var h4=["x","y","width","height"],d4=["cx","cy","r","startAngle","endAngle"],aw={cartesian2d:function(t){return!rw(t,h4)},polar:function(t){return!rw(t,d4)}},zu={cartesian2d:function(t,e,r){var a=t.getItemLayout(e);if(!a)return null;var n=r?g4(r,a):0,i=a.width>0?1:-1,o=a.height>0?1:-1;return{x:a.x+i*n/2,y:a.y+o*n/2,width:a.width-i*n,height:a.height-o*n}},polar:function(t,e,r){var a=t.getItemLayout(e);return{cx:a.cx,cy:a.cy,r0:a.r0,r:a.r,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}}};function v4(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function nw(t){return(function(e){var r=e?"Arc":"Angle";return function(a){switch(a){case"start":case"insideStart":case"end":case"insideEnd":return a+r;default:return a}}})(t)}function iw(t,e,r,a,n,i,o,s){var l=e.getItemVisual(r,"style");if(s){if(!i.get("roundCap")){var p=t.shape,c=Xo(a.getModel("itemStyle"),p,!0);H(p,c),t.setShape(p)}}else{var u=a.get(["itemStyle","borderRadius"])||0;t.setShape("r",u)}t.useStyle(l);var f=a.getShallow("cursor");f&&t.attr("cursor",f);var h=s?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?k4(n,i.coordinateSystem):w4(n,i.coordinateSystem),d=nn(a);an(t,d,{labelFetcher:i,labelDataIndex:r,defaultText:Eh(i.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var v=t.getTextContent();if(s&&v){var m=a.get(["label","position"]);t.textConfig.inside=m==="middle"?!0:null,p4(t,m==="outside"?h:m,nw(o),a.get(["label","rotate"]))}Z0(v,d,i.getRawValue(r),function(y){return wk(e,y)});var g=a.getModel(["emphasis"]);Wr(t,g.get("focus"),g.get("blurScope"),g.get("disabled")),$r(t,a),v4(n)&&(t.style.fill="none",t.style.stroke="none",A(t.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function g4(t,e){var r=t.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var a=t.get(["itemStyle","borderWidth"])||0,n=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),i=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(a,n,i)}var m4=(function(){function t(){}return t})(),ow=(function(t){V(e,t);function e(r){var a=t.call(this,r)||this;return a.type="largeBar",a}return e.prototype.getDefaultShape=function(){return new m4},e.prototype.buildPath=function(r,a){for(var n=a.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,p=0;p<n.length;p+=3)l[i]=u,l[o]=n[p+2],s[i]=n[p+i],s[o]=n[p+o],r.rect(s[0],s[1],l[0],l[1])},e})(me);function sw(t,e,r,a){var n=t.getData(),i=n.getLayout("valueAxisHorizontal")?1:0,o=n.getLayout("largeDataIndices"),s=n.getLayout("size"),l=t.getModel("backgroundStyle"),u=n.getLayout("largeBackgroundPoints"),p=a?$y(t):0;if(u){var c=new ow({shape:{points:u},incremental:p,silent:!0,z2:0});c.baseDimIdx=i,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),r&&r.push(c)}var f=new ow({shape:{points:n.getLayout("largePoints")},incremental:p,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=i,f.largeDataIndices=o,f.barWidth=s,e.add(f),f.useStyle(n.getVisual("style")),f.style.stroke=null,ce(f).seriesIndex=t.seriesIndex,t.get("silent")||(f.on("mousedown",lw),f.on("mousemove",lw)),r&&r.push(f)}var lw=nd(function(t){var e=this,r=y4(e,t.offsetX,t.offsetY);ce(e).dataIndex=r>=0?r:null},30,!1);function y4(t,e,r){for(var a=t.baseDimIdx,n=1-a,i=t.shape.points,o=t.largeDataIndices,s=[],l=[],u=t.barWidth,p=0,c=i.length/3;p<c;p++){var f=p*3;if(l[a]=u,l[n]=i[f+2],s[a]=i[f+a],s[n]=i[f+n],l[n]<0&&(s[n]+=l[n],l[n]=-l[n]),e>=s[0]&&e<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[p]}return-1}function uw(t,e,r){if(Ok(r,"cartesian2d")){var a=e,n=r.getArea();return{x:t?a.x:n.x,y:t?n.y:a.y,width:t?a.width:n.width,height:t?n.height:a.height}}else{var n=r.getArea(),i=e;return{cx:n.cx,cy:n.cy,r0:t?n.r0:i.r0,r:t?n.r:i.r,startAngle:t?i.startAngle:0,endAngle:t?i.endAngle:Math.PI*2}}}function b4(t,e,r){var a=t.type==="polar"?Mr:Ie;return new a({shape:uw(e,r,t),silent:!0,z2:0})}function k4(t,e){if(t.height===0){var r=e.getOtherAxis(e.getBaseAxis());return r.inverse?"bottom":"top"}return t.height>0?"bottom":"top"}function w4(t,e){if(t.width===0){var r=e.getOtherAxis(e.getBaseAxis());return r.inverse?"left":"right"}return t.width>=0?"right":"left"}function _4(t){t.registerChartView(c4),t.registerSeriesModel(s4),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,a4(mi)),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,n4(mi)),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,l1(mi)),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,r){var a=e.componentType||"series";r.eachComponent({mainType:a,query:e},function(n){e.sortInfo&&n.axis.setCategorySortInfo(e.sortInfo)})}),o4(t)}function x4(t,e){function r(a,n){var i=[];return a.eachComponent({mainType:"series",subType:t,query:n},function(o){i.push(o.seriesIndex)}),i}A([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(a){e(a[0],function(n,i,o){n=H({},n),o.dispatchAction(H(n,{type:a[1],seriesIndex:r(i,n)}))})})}function yi(t,e,r,a,n){var i=t+e;r.isSilent(i)||a.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=n.selected,p=0;p<u.length;p++)if(u[p].seriesIndex===s){var c=o.getData(),f=Za(c,n.fromActionPayload);r.trigger(i,{type:i,seriesId:o.id,name:W(f)?c.getName(f[0]):c.getName(f),selected:q(l)?l:H({},l)})}})}function P4(t,e,r){t.on("selectchanged",function(a){var n=r.getModel();a.isFromClick?(yi("map","selectchanged",e,n,a),yi("pie","selectchanged",e,n,a)):a.fromAction==="select"?(yi("map","selected",e,n,a),yi("pie","selected",e,n,a)):a.fromAction==="unselect"&&(yi("map","unselected",e,n,a),yi("pie","unselected",e,n,a))})}function ld(t){return{seriesType:t,reset:function(e,r){var a=r.findComponents({mainType:"legend"});if(!(!a||!a.length)){var n=e.getData();n.filterSelf(function(i){for(var o=n.getName(i),s=0;s<a.length;s++)if(!a[s].isSelected(o))return!1;return!0})}}}}function Hu(t,e,r){e=W(e)&&{coordDimensions:e}||H({encodeDefine:t.getEncode()},e);var a=t.getSource(),n=Mb(a,e).dimensions,i=new Lb(n,t);return i.initData(a,r),i}var ud=(function(){function t(e,r){this._getDataWithEncodedVisual=e,this._getRawData=r}return t.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},t.prototype.containName=function(e){var r=this._getRawData();return r.indexOfName(e)>=0},t.prototype.indexOfName=function(e){var r=this._getDataWithEncodedVisual();return r.indexOfName(e)},t.prototype.getItemVisual=function(e,r){var a=this._getDataWithEncodedVisual();return a.getItemVisual(e,r)},t})(),_a="pie",S4=_e(),pw=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new ud(ge(this.getData,this),ge(this.getRawData,this)),this._defaultLabelLine(r)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return Hu(this,{coordDimensions:["value"],encodeDefaulter:ze(rb,this)})},e.prototype.getDataParams=function(r){var a=this.getData(),n=S4(a),i=n.seats;if(!i){var o=[];a.each(a.mapDimension("value"),function(l){o.push(l)}),i=n.seats=SD(o,a.hostModel.get("percentPrecision"))}var s=t.prototype.getDataParams.call(this,r);return s.percent=i[r]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(r){_l(r,"labelLine",["show"]);var a=r.labelLine,n=r.emphasis.labelLine;a.show=a.show&&r.label.show,n.show=n.show&&r.emphasis.label.show},e.type="series."+_a,e.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"},e})(ft);J3({fullType:pw.type,getCoord2:function(t){return t.getShallow("center")}});function cw(t,e,r,a,n,i,o,s){var l=n-t,u=i-e,p=r-t,c=a-e,f=Math.sqrt(p*p+c*c);p/=f,c/=f;var h=l*p+u*c,d=h/f;d*=f;var v=o[0]=t+d*p,m=o[1]=e+d*c;return Math.sqrt((v-n)*(v-n)+(m-i)*(m-i))}var xa=new ie,Ne=new ie,Qe=new ie,Pa=new ie,Rr=new ie,Vu=[],ht=new ie;function T4(t,e){if(e<=180&&e>0){e=e/180*Math.PI,xa.fromArray(t[0]),Ne.fromArray(t[1]),Qe.fromArray(t[2]),ie.sub(Pa,xa,Ne),ie.sub(Rr,Qe,Ne);var r=Pa.len(),a=Rr.len();if(!(r<.001||a<.001)){Pa.scale(1/r),Rr.scale(1/a);var n=Pa.dot(Rr),i=Math.cos(e);if(i<n){var o=cw(Ne.x,Ne.y,Qe.x,Qe.y,xa.x,xa.y,Vu);ht.fromArray(Vu),ht.scaleAndAdd(Rr,o/Math.tan(Math.PI-e));var s=Qe.x!==Ne.x?(ht.x-Ne.x)/(Qe.x-Ne.x):(ht.y-Ne.y)/(Qe.y-Ne.y);if(isNaN(s))return;s<0?ie.copy(ht,Ne):s>1&&ie.copy(ht,Qe),ht.toArray(t[1])}}}}function C4(t,e,r){if(r<=180&&r>0){r=r/180*Math.PI,xa.fromArray(t[0]),Ne.fromArray(t[1]),Qe.fromArray(t[2]),ie.sub(Pa,Ne,xa),ie.sub(Rr,Qe,Ne);var a=Pa.len(),n=Rr.len();if(!(a<.001||n<.001)){Pa.scale(1/a),Rr.scale(1/n);var i=Pa.dot(e),o=Math.cos(r);if(i<o){var s=cw(Ne.x,Ne.y,Qe.x,Qe.y,xa.x,xa.y,Vu);ht.fromArray(Vu);var l=Math.PI/2,u=Math.acos(Rr.dot(e)),p=l+u-r;if(p>=l)ie.copy(ht,Qe);else{ht.scaleAndAdd(Rr,s/Math.tan(Math.PI/2-p));var c=Qe.x!==Ne.x?(ht.x-Ne.x)/(Qe.x-Ne.x):(ht.y-Ne.y)/(Qe.y-Ne.y);if(isNaN(c))return;c<0?ie.copy(ht,Ne):c>1&&ie.copy(ht,Qe)}ht.toArray(t[1])}}}}function pd(t,e,r,a){var n=r==="normal",i=n?t:t.ensureState(r);i.ignore=e;var o=a.get("smooth");o=o===!0?.3:Math.max(+o,0)||0,i.shape=i.shape||{},i.shape.smooth=o;var s=a.getModel("lineStyle").getLineStyle();n?t.useStyle(s):i.style=s}function D4(t,e){var r=e.smooth,a=e.points;if(a)if(t.moveTo(a[0][0],a[0][1]),r>0&&a.length>=3){var n=lc(a[0],a[1]),i=lc(a[1],a[2]);if(!n||!i){t.lineTo(a[1][0],a[1][1]),t.lineTo(a[2][0],a[2][1]);return}var o=Math.min(n,i)*r,s=uc([],a[1],a[0],o/n),l=uc([],a[1],a[2],o/i),u=uc([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],a[2][0],a[2][1])}else for(var p=1;p<a.length;p++)t.lineTo(a[p][0],a[p][1])}function fw(t,e,r){var a=t.getTextGuideLine(),n=t.getTextContent();if(!n){a&&t.removeTextGuideLine();return}for(var i=e.normal,o=i.get("show"),s=n.ignore,l=0;l<Sl.length;l++){var u=Sl[l],p=e[u],c=u==="normal";if(p){var f=p.get("show"),h=c?s:Z(n.states[u]&&n.states[u].ignore,s);if(h||!Z(f,o)){var d=c?a:a&&a.states[u];d&&(d.ignore=!0),a&&pd(a,!0,u,p);continue}a||(a=new ca,t.setTextGuideLine(a),!c&&(s||!o)&&pd(a,!0,"normal",e.normal),t.stateProxy&&(a.stateProxy=t.stateProxy)),pd(a,!1,u,p)}}if(a){pe(a.style,r),a.style.fill=null;var v=i.get("showAbove"),m=t.textGuideLineConfig=t.textGuideLineConfig||{};m.showAbove=v||!1,a.buildPath=D4}}function hw(t,e){e=e||"labelLine";for(var r={normal:t.getModel(e)},a=0;a<Ut.length;a++){var n=Ut[a];r[n]=t.getModel([n,e])}return r}var A4=Math.PI/180;function dw(t,e,r,a,n,i,o,s,l,u){if(t.length<2)return;function p(v){for(var m=v.rB,g=m*m,y=0;y<v.list.length;y++){var b=v.list[y],k=Math.abs(b.label.y-r),w=a+b.len,_=w*w,x=Math.sqrt(Math.abs((1-k*k/g)*_)),T=e+(x+b.len2)*n,C=T-b.label.x,P=b.targetTextWidth-C*n;vw(b,P,!0),b.label.x=T}}function c(v){for(var m={list:[],maxY:0},g={list:[],maxY:0},y=0;y<v.length;y++)if(v[y].labelAlignTo==="none"){var b=v[y],k=b.label.y>r?g:m,w=Math.abs(b.label.y-r);if(w>=k.maxY){var _=b.label.x-e-b.len2*n,x=a+b.len,T=Math.abs(_)<x?Math.sqrt(w*w/(1-_*_/x/x)):x;k.rB=T,k.maxY=w}k.list.push(b)}p(m),p(g)}for(var f=t.length,h=0;h<f;h++)if(t[h].position==="outer"&&t[h].labelAlignTo==="labelLine"){var d=t[h].label.x-u;t[h].linePoints[1][0]+=d,t[h].label.x=u}hE(t,1,l,l+o)&&c(t)}function L4(t,e,r,a,n,i,o,s){for(var l=[],u=[],p=Number.MAX_VALUE,c=-Number.MAX_VALUE,f=0;f<t.length;f++){var h=t[f].label;cd(t[f])||(h.x<e?(p=Math.min(p,h.x),l.push(t[f])):(c=Math.max(c,h.x),u.push(t[f])))}for(var f=0;f<t.length;f++){var d=t[f];if(!cd(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var h=d.label,v=d.linePoints,m=void 0;d.labelAlignTo==="edge"?h.x<e?m=v[2][0]-d.labelDistance-o-d.edgeDistance:m=o+n-d.edgeDistance-v[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?h.x<e?m=p-o-d.bleedMargin:m=o+n-c-d.bleedMargin:h.x<e?m=h.x-o-d.bleedMargin:m=o+n-h.x-d.bleedMargin,d.targetTextWidth=m,vw(d,m,!1)}}dw(u,e,r,a,1,n,i,o,s,c),dw(l,e,r,a,-1,n,i,o,s,p);for(var f=0;f<t.length;f++){var d=t[f];if(!cd(d)&&d.linePoints){var h=d.label,v=d.linePoints,g=d.labelAlignTo==="edge",y=h.style.padding,b=y?y[1]+y[3]:0,k=h.style.backgroundColor?0:b,w=d.rect.width+k,_=v[1][0]-v[2][0];g?h.x<e?v[2][0]=o+d.edgeDistance+w+d.labelDistance:v[2][0]=o+n-d.edgeDistance-w-d.labelDistance:(h.x<e?v[2][0]=h.x+d.labelDistance:v[2][0]=h.x-d.labelDistance,v[1][0]=v[2][0]+_),v[1][1]=v[2][1]=h.y}}}function vw(t,e,r){if(t.labelStyleWidth==null){var a=t.label,n=a.style,i=t.rect,o=n.backgroundColor,s=n.padding,l=s?s[1]+s[3]:0,u=n.overflow,p=i.width+(o?0:l);if(e<p||r){if(u&&u.match("break")){a.setStyle("backgroundColor",null),a.setStyle("width",e-l);var c=a.getBoundingRect();a.setStyle("width",Math.ceil(c.width)),a.setStyle("backgroundColor",o)}else{var f=e-l,h=e<p?f:r?f>t.unconstrainedWidth?null:f:null;a.setStyle("width",h)}gw(i,a)}}}function gw(t,e){mw.rect=t,C1(mw,e,M4)}var M4={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},mw={};function cd(t){return t.position==="center"}function E4(t){var e=t.getData(),r=[],a,n,i=!1,o=(t.get("minShowLabelAngle")||0)*A4,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,p=s.x,c=s.y,f=s.height;function h(_){_.ignore=!0}function d(_){if(!_.ignore)return!0;for(var x in _.states)if(_.states[x].ignore===!1)return!0;return!1}e.each(function(_){var x=e.getItemGraphicEl(_),T=x.shape,C=x.getTextContent(),P=x.getTextGuideLine(),S=e.getItemModel(_),L=S.getModel("label"),D=L.get("position")||S.get(["emphasis","label","position"]),M=L.get("distanceToLabelLine"),I=L.get("alignTo"),E=ee(L.get("edgeDistance"),u),O=L.get("bleedMargin");O==null&&(O=Math.min(u,f)>200?10:2);var R=S.getModel("labelLine"),B=R.get("length");B=ee(B,u);var N=R.get("length2");if(N=ee(N,u),Math.abs(T.endAngle-T.startAngle)<o){A(C.states,h),C.ignore=!0,P&&(A(P.states,h),P.ignore=!0);return}if(d(C)){var F=(T.startAngle+T.endAngle)/2,U=Math.cos(F),Y=Math.sin(F),z,j,ne,De;a=T.cx,n=T.cy;var Ee=D==="inside"||D==="inner";if(D==="center")z=T.cx,j=T.cy,De="center";else{var de=(Ee?(T.r+T.r0)/2*U:T.r*U)+a,Ce=(Ee?(T.r+T.r0)/2*Y:T.r*Y)+n;if(z=de+U*3,j=Ce+Y*3,!Ee){var te=de+U*(B+l-T.r),ue=Ce+Y*(B+l-T.r),_t=te+(U<0?-1:1)*N,Fe=ue;I==="edge"?z=U<0?p+E:p+u-E:z=_t+(U<0?-M:M),j=Fe,ne=[[de,Ce],[te,ue],[_t,Fe]]}De=Ee?"center":I==="edge"?U>0?"right":"left":U>0?"left":"right"}var fr=Math.PI,xt=0,hr=L.get("rotate");if(be(hr))xt=hr*(fr/180);else if(D==="center")xt=0;else if(hr==="radial"||hr===!0){var Ii=U<0?-F+fr:-F;xt=Ii}else if(hr==="tangential"||hr==="tangential-noflip"&&D!=="outside"&&D!=="outer"){var dr=Math.atan2(U,Y);dr<0&&(dr=fr*2+dr);var Pp=Y>0;Pp&&hr!=="tangential-noflip"&&(dr=fr+dr),xt=dr-fr}if(i=!!xt,C.x=z,C.y=j,C.rotation=xt,C.setStyle({verticalAlign:"middle"}),Ee){C.setStyle({align:De});var Kv=C.states.select;Kv&&(Kv.x+=C.x,Kv.y+=C.y)}else{var Oi=new oe(0,0,0,0);gw(Oi,C),r.push({label:C,labelLine:P,position:D,len:B,len2:N,minTurnAngle:R.get("minTurnAngle"),maxSurfaceAngle:R.get("maxSurfaceAngle"),surfaceNormal:new ie(U,Y),linePoints:ne,textAlign:De,labelDistance:M,labelAlignTo:I,edgeDistance:E,bleedMargin:O,rect:Oi,unconstrainedWidth:Oi.width,labelStyleWidth:C.style.width})}x.setTextConfig({inside:Ee})}}),!i&&t.get("avoidLabelOverlap")&&L4(r,a,n,l,u,f,p,c);for(var v=0;v<r.length;v++){var m=r[v],g=m.label,y=m.labelLine,b=isNaN(g.x)||isNaN(g.y);if(g){g.setStyle({align:m.textAlign}),b&&(A(g.states,h),g.ignore=!0);var k=g.states.select;k&&(k.x+=g.x,k.y+=g.y)}if(y){var w=m.linePoints;b||!w?(A(y.states,h),y.ignore=!0):(T4(w,m.minTurnAngle),C4(w,m.surfaceNormal,m.maxSurfaceAngle),y.setShape({points:w}),g.__hostTarget.textGuideLineConfig={anchor:new ie(w[0][0],w[0][1])})}}}var yw=Math.PI*2,Uu=Math.PI/180,I4=df(_a,O4);function O4(t,e){t.eachSeriesByType(_a,function(r){var a=r.getData(),n=a.mapDimension("value"),i=UL(r,e),o=i.cx,s=i.cy,l=i.r,u=i.r0,p=i.viewRect,c=-r.get("startAngle")*Uu,f=r.get("endAngle"),h=r.get("padAngle")*Uu;f=f==="auto"?c-yw:-f*Uu;var d=r.get("minAngle")*Uu,v=d+h,m=0;a.each(n,function(E){!isNaN(E)&&m++});var g=a.getSum(n),y=Math.PI/(g||m)*2,b=r.get("clockwise"),k=r.get("roseType"),w=r.get("stillShowZeroSum"),_=a.getDataExtent(n);_[0]=0;var x=b?1:-1,T=[c,f],C=x*h/2;Jc(T,!b),c=T[0],f=T[1];var P=bw(r);P.startAngle=c,P.endAngle=f,P.clockwise=b,P.cx=o,P.cy=s,P.r=l,P.r0=u;var S=Math.abs(f-c),L=S,D=0,M=c;if(a.setLayout({viewRect:p,r:l}),a.each(n,function(E,O){var R;if(isNaN(E)){a.setItemLayout(O,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:b,cx:o,cy:s,r0:u,r:k?NaN:l});return}k!=="area"?R=g===0&&w?y:E*y:R=S/m,R<v?(R=v,L-=v):D+=E;var B=M+x*R,N=0,F=0;h>R?(N=M+x*R/2,F=N):(N=M+C,F=B-C),a.setItemLayout(O,{angle:R,startAngle:N,endAngle:F,clockwise:b,cx:o,cy:s,r0:u,r:k?Nt(E,_,[u,l]):l}),M=B}),L<yw&&m)if(L<=.001){var I=S/m;a.each(n,function(E,O){if(!isNaN(E)){var R=a.getItemLayout(O);R.angle=I;var B=0,N=0;I<h?(B=c+x*(O+1/2)*I,N=B):(B=c+x*O*I+C,N=c+x*(O+1)*I-C),R.startAngle=B,R.endAngle=N}})}else y=L/D,M=c,a.each(n,function(E,O){if(!isNaN(E)){var R=a.getItemLayout(O),B=R.angle===v?v:E*y,N=0,F=0;B<h?(N=M+x*B/2,F=N):(N=M+C,F=M+x*B-C),R.startAngle=N,R.endAngle=F,M+=x*B}})})}var bw=_e(),R4=(function(t){V(e,t);function e(r,a,n){var i=t.call(this)||this;i.z2=2;var o=new Oe;return i.setTextContent(o),i.updateData(r,a,n,!0),i}return e.prototype.updateData=function(r,a,n,i){var o=this,s=r.hostModel,l=r.getItemModel(a),u=l.getModel("emphasis"),p=r.getItemLayout(a),c=H(Xo(l.getModel("itemStyle"),p,!0),p);if(isNaN(c.startAngle)){o.setShape(c);return}if(i){o.setShape(c);var f=s.getShallow("animationType");s.ecModel.ssr?(Ye(o,{scaleX:0,scaleY:0},s,{dataIndex:a,isFrom:!0}),o.originX=c.cx,o.originY=c.cy):f==="scale"?(o.shape.r=p.r0,Ye(o,{shape:{r:p.r}},s,a)):n!=null?(o.setShape({startAngle:n,endAngle:n}),Ye(o,{shape:{startAngle:p.startAngle,endAngle:p.endAngle}},s,a)):(o.shape.endAngle=p.startAngle,Re(o,{shape:{endAngle:p.endAngle}},s,a))}else ei(o),Re(o,{shape:c},s,a);o.useStyle(r.getItemVisual(a,"style")),$r(o,l);var h=(p.startAngle+p.endAngle)/2,d=s.get("selectedOffset"),v=Math.cos(h)*d,m=Math.sin(h)*d,g=l.getShallow("cursor");g&&o.attr("cursor",g),this._updateLabel(s,r,a),o.ensureState("emphasis").shape=H({r:p.r+(u.get("scale")&&u.get("scaleSize")||0)},Xo(u.getModel("itemStyle"),p)),H(o.ensureState("select"),{x:v,y:m,shape:Xo(l.getModel(["select","itemStyle"]),p)}),H(o.ensureState("blur"),{shape:Xo(l.getModel(["blur","itemStyle"]),p)});var y=o.getTextGuideLine(),b=o.getTextContent();y&&H(y.ensureState("select"),{x:v,y:m}),H(b.ensureState("select"),{x:v,y:m}),Wr(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(r,a,n){var i=this,o=a.getItemModel(n),s=o.getModel("labelLine"),l=a.getItemVisual(n,"style"),u=l&&l.fill,p=l&&l.opacity;an(i,nn(o),{labelFetcher:a.hostModel,labelDataIndex:n,inheritColor:u,defaultOpacity:p,defaultText:r.getFormattedLabel(n,"normal")||a.getName(n)});var c=i.getTextContent();i.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var f=o.get(["label","position"]);if(f!=="outside"&&f!=="outer")i.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new ca,this.setTextGuideLine(h)),fw(this,hw(o),{stroke:u,opacity:Da(s.get(["lineStyle","opacity"]),p,1)})}},e})(Mr),B4=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=_a,r.ignoreLabelLineUpdate=!0,r}return e.prototype.render=function(r,a,n,i){var o=r.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var p=o.getItemLayout(0),c=1;isNaN(p&&p.startAngle)&&c<o.count();++c)p=o.getItemLayout(c);p&&(u=p.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&r.get("showEmptyCircle")){var f=bw(r),h=new Mr({shape:le(f)});h.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,l.add(h)}o.diff(s).add(function(d){var v=new R4(o,d,u);o.setItemGraphicEl(d,v),l.add(v)}).update(function(d,v){var m=s.getItemGraphicEl(v);m.updateData(o,d,u),m.off("click"),l.add(m),o.setItemGraphicEl(d,m)}).remove(function(d){var v=s.getItemGraphicEl(d);Jn(v,r,d)}).execute(),E4(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(r,a){var n=a.getData(),i=n.getItemLayout(0);if(i){var o=r[0]-i.cx,s=r[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type=_a,e})(at);function N4(t){return{seriesType:t,reset:function(e,r){var a=e.getData();a.filterSelf(function(n){var i=a.mapDimension("value"),o=a.get(i,n);return!(be(o)&&!isNaN(o)&&o<0)})}}}function F4(t){t.registerChartView(B4),t.registerSeriesModel(pw),x4(_a,t.registerAction),t.registerLayout(I4),t.registerProcessor(ld(_a)),t.registerProcessor(N4(_a))}var bi=(function(){function t(e,r){this.target=e,this.topTarget=r&&r.topTarget}return t})(),z4=(function(){function t(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(e){for(var r=e.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new bi(r,e),"dragstart",e.event))},t.prototype._drag=function(e){var r=this._draggingTarget;if(r){var a=e.offsetX,n=e.offsetY,i=a-this._x,o=n-this._y;this._x=a,this._y=n,r.drift(i,o,e),this.handler.dispatchToElement(new bi(r,e),"drag",e.event);var s=this.handler.findHover(a,n,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new bi(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new bi(s,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new bi(r,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new bi(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t})(),H4=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,fd=[],V4=se.browser.firefox&&+se.browser.version.split(".")[0]<39;function hd(t,e,r,a){return r=r||{},a?kw(t,e,r):V4&&e.layerX!=null&&e.layerX!==e.offsetX?(r.zrX=e.layerX,r.zrY=e.layerY):e.offsetX!=null?(r.zrX=e.offsetX,r.zrY=e.offsetY):kw(t,e,r),r}function kw(t,e,r){if(se.domSupported&&t.getBoundingClientRect){var a=e.clientX,n=e.clientY;if(Nb(t)){var i=t.getBoundingClientRect();r.zrX=a-i.left,r.zrY=n-i.top;return}else if(ph(fd,t,a,n)){r.zrX=fd[0],r.zrY=fd[1];return}}r.zrX=r.zrY=0}function dd(t){return t||window.event}function Kt(t,e,r){if(e=dd(e),e.zrX!=null)return e;var a=e.type,n=a&&a.indexOf("touch")>=0;if(n){var o=a!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&hd(t,o,e,r)}else{hd(t,e,e,r);var i=U4(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&H4.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function U4(t){var e=t.wheelDelta;if(e)return e;var r=t.deltaX,a=t.deltaY;if(r==null||a==null)return e;var n=Math.abs(a!==0?a:r),i=a>0?-1:a<0?1:r>0?-1:1;return 3*n*i}function G4(t,e,r,a){t.addEventListener(e,r,a)}function W4(t,e,r,a){t.removeEventListener(e,r,a)}var ww=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},$4=(function(){function t(){this._track=[]}return t.prototype.recognize=function(e,r,a){return this._doTrack(e,r,a),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,r,a){var n=e.touches;if(n){for(var i={points:[],touches:[],target:r,event:e},o=0,s=n.length;o<s;o++){var l=n[o],u=hd(a,l,{});i.points.push([u.zrX,u.zrY]),i.touches.push(l)}this._track.push(i)}},t.prototype._recognize=function(e){for(var r in vd)if(vd.hasOwnProperty(r)){var a=vd[r](this._track,e);if(a)return a}},t})();function _w(t){var e=t[1][0]-t[0][0],r=t[1][1]-t[0][1];return Math.sqrt(e*e+r*r)}function Y4(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var vd={pinch:function(t,e){var r=t.length;if(r){var a=(t[r-1]||{}).points,n=(t[r-2]||{}).points||a;if(n&&n.length>1&&a&&a.length>1){var i=_w(a)/_w(n);!isFinite(i)&&(i=1),e.pinchScale=i;var o=Y4(a);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}},xw="silent";function K4(t,e,r){return{type:t,event:r,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:X4}}function X4(){ww(this.event)}var q4=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.handler=null,r}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e})(zr),qo=(function(){function t(e,r){this.x=e,this.y=r}return t})(),j4=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],gd=new oe(0,0,0,0),Pw=(function(t){V(e,t);function e(r,a,n,i,o){var s=t.call(this)||this;return s._hovered=new qo(0,0),s.storage=r,s.painter=a,s.painterRoot=i,s._pointerSize=o,n=n||new q4,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new z4(s),s}return e.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(A(j4,function(a){r.on&&r.on(a,this[a],this)},this),r.handler=this),this.proxy=r},e.prototype.mousemove=function(r){var a=r.zrX,n=r.zrY,i=Tw(this,a,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new qo(a,n):this.findHover(a,n),u=l.target,p=this.proxy;p.setCursor&&p.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},e.prototype.mouseout=function(r){var a=r.zrEventControl;a!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),a!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},e.prototype.resize=function(){this._hovered=new qo(0,0)},e.prototype.dispatch=function(r,a){var n=this[r];n&&n.call(this,a)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(r){var a=this.proxy;a.setCursor&&a.setCursor(r)},e.prototype.dispatchToElement=function(r,a,n){r=r||{};var i=r.target;if(!(i&&i.silent)){for(var o="on"+a,s=K4(a,r,n);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(a,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(a,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(a,s)}))}},e.prototype.findHover=function(r,a,n){var i=this.storage.getDisplayList(),o=new qo(r,a);if(Sw(i,o,r,a,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,p=new oe(r-u,a-u,l,l),c=i.length-1;c>=0;c--){var f=i[c];f!==n&&!f.ignore&&!f.ignoreCoarsePointer&&(!f.parent||!f.parent.ignoreCoarsePointer)&&(gd.copy(f.getBoundingRect()),f.transform&&gd.applyTransform(f.transform),gd.intersect(p)&&s.push(f))}if(s.length)for(var h=4,d=Math.PI/12,v=Math.PI*2,m=0;m<u;m+=h)for(var g=0;g<v;g+=d){var y=r+m*Math.cos(g),b=a+m*Math.sin(g);if(Sw(s,o,y,b,n),o.target)return o}}return o},e.prototype.processGesture=function(r,a){this._gestureMgr||(this._gestureMgr=new $4);var n=this._gestureMgr;a==="start"&&n.clear();var i=n.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(a==="end"&&n.clear(),i){var o=i.type;r.gestureEvent=o;var s=new qo;s.target=i.target,this.dispatchToElement(s,o,i.event)}},e})(zr);A(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){Pw.prototype[t]=function(e){var r=e.zrX,a=e.zrY,n=Tw(this,r,a),i,o;if((t!=="mouseup"||!n)&&(i=this.findHover(r,a),o=i.target),t==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(t==="mouseup")this._upEl=o;else if(t==="click"){if(this._downEl!==this._upEl||!this._downPoint||lc(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,t,e)}});function Z4(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){for(var a=t,n=void 0,i=!1;a;){if(a.ignoreClip&&(i=!0),!i){var o=a.getClipPath();if(o&&!o.contain(e,r))return!1}a.silent&&(n=!0);var s=a.__hostTarget;a=s?a.ignoreHostSilent?null:s:a.parent}return n?xw:!0}return!1}function Sw(t,e,r,a,n){for(var i=t.length-1;i>=0;i--){var o=t[i],s=void 0;if(o!==n&&!o.ignore&&(s=Z4(o,r,a))&&(!e.topTarget&&(e.topTarget=o),s!==xw)){e.target=o;break}}}function Tw(t,e,r){var a=t.painter;return e<0||e>a.getWidth()||r<0||r>a.getHeight()}var Cw=32,jo=7;function Q4(t){for(var e=0;t>=Cw;)e|=t&1,t>>=1;return t+e}function Dw(t,e,r,a){var n=e+1;if(n===r)return 1;if(a(t[n++],t[e])<0){for(;n<r&&a(t[n],t[n-1])<0;)n++;J4(t,e,n)}else for(;n<r&&a(t[n],t[n-1])>=0;)n++;return n-e}function J4(t,e,r){for(r--;e<r;){var a=t[e];t[e++]=t[r],t[r--]=a}}function Aw(t,e,r,a,n){for(a===e&&a++;a<r;a++){for(var i=t[a],o=e,s=a,l;o<s;)l=o+s>>>1,n(i,t[l])<0?s=l:o=l+1;var u=a-o;switch(u){case 3:t[o+3]=t[o+2];case 2:t[o+2]=t[o+1];case 1:t[o+1]=t[o];break;default:for(;u>0;)t[o+u]=t[o+u-1],u--}t[o]=i}}function md(t,e,r,a,n,i){var o=0,s=0,l=1;if(i(t,e[r+n])>0){for(s=a-n;l<s&&i(t,e[r+n+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;l<s&&i(t,e[r+n-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o<l;){var p=o+(l-o>>>1);i(t,e[r+p])>0?o=p+1:l=p}return l}function yd(t,e,r,a,n,i){var o=0,s=0,l=1;if(i(t,e[r+n])<0){for(s=n+1;l<s&&i(t,e[r+n-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=a-n;l<s&&i(t,e[r+n+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o<l;){var p=o+(l-o>>>1);i(t,e[r+p])<0?l=p:o=p+1}return l}function eI(t,e){var r=jo,a,n,i=0,o=[];a=[],n=[];function s(h,d){a[i]=h,n[i]=d,i+=1}function l(){for(;i>1;){var h=i-2;if(h>=1&&n[h-1]<=n[h]+n[h+1]||h>=2&&n[h-2]<=n[h]+n[h-1])n[h-1]<n[h+1]&&h--;else if(n[h]>n[h+1])break;p(h)}}function u(){for(;i>1;){var h=i-2;h>0&&n[h-1]<n[h+1]&&h--,p(h)}}function p(h){var d=a[h],v=n[h],m=a[h+1],g=n[h+1];n[h]=v+g,h===i-3&&(a[h+1]=a[h+2],n[h+1]=n[h+2]),i--;var y=yd(t[m],t,d,v,0,e);d+=y,v-=y,v!==0&&(g=md(t[d+v-1],t,m,g,g-1,e),g!==0&&(v<=g?c(d,v,m,g):f(d,v,m,g)))}function c(h,d,v,m){var g=0;for(g=0;g<d;g++)o[g]=t[h+g];var y=0,b=v,k=h;if(t[k++]=t[b++],--m===0){for(g=0;g<d;g++)t[k+g]=o[y+g];return}if(d===1){for(g=0;g<m;g++)t[k+g]=t[b+g];t[k+m]=o[y];return}for(var w=r,_,x,T;;){_=0,x=0,T=!1;do if(e(t[b],o[y])<0){if(t[k++]=t[b++],x++,_=0,--m===0){T=!0;break}}else if(t[k++]=o[y++],_++,x=0,--d===1){T=!0;break}while((_|x)<w);if(T)break;do{if(_=yd(t[b],o,y,d,0,e),_!==0){for(g=0;g<_;g++)t[k+g]=o[y+g];if(k+=_,y+=_,d-=_,d<=1){T=!0;break}}if(t[k++]=t[b++],--m===0){T=!0;break}if(x=md(o[y],t,b,m,0,e),x!==0){for(g=0;g<x;g++)t[k+g]=t[b+g];if(k+=x,b+=x,m-=x,m===0){T=!0;break}}if(t[k++]=o[y++],--d===1){T=!0;break}w--}while(_>=jo||x>=jo);if(T)break;w<0&&(w=0),w+=2}if(r=w,r<1&&(r=1),d===1){for(g=0;g<m;g++)t[k+g]=t[b+g];t[k+m]=o[y]}else{if(d===0)throw new Error;for(g=0;g<d;g++)t[k+g]=o[y+g]}}function f(h,d,v,m){var g=0;for(g=0;g<m;g++)o[g]=t[v+g];var y=h+d-1,b=m-1,k=v+m-1,w=0,_=0;if(t[k--]=t[y--],--d===0){for(w=k-(m-1),g=0;g<m;g++)t[w+g]=o[g];return}if(m===1){for(k-=d,y-=d,_=k+1,w=y+1,g=d-1;g>=0;g--)t[_+g]=t[w+g];t[k]=o[b];return}for(var x=r;;){var T=0,C=0,P=!1;do if(e(o[b],t[y])<0){if(t[k--]=t[y--],T++,C=0,--d===0){P=!0;break}}else if(t[k--]=o[b--],C++,T=0,--m===1){P=!0;break}while((T|C)<x);if(P)break;do{if(T=d-yd(o[b],t,h,d,d-1,e),T!==0){for(k-=T,y-=T,d-=T,_=k+1,w=y+1,g=T-1;g>=0;g--)t[_+g]=t[w+g];if(d===0){P=!0;break}}if(t[k--]=o[b--],--m===1){P=!0;break}if(C=m-md(t[y],o,0,m,m-1,e),C!==0){for(k-=C,b-=C,m-=C,_=k+1,w=b+1,g=0;g<C;g++)t[_+g]=o[w+g];if(m<=1){P=!0;break}}if(t[k--]=t[y--],--d===0){P=!0;break}x--}while(T>=jo||C>=jo);if(P)break;x<0&&(x=0),x+=2}if(r=x,r<1&&(r=1),m===1){for(k-=d,y-=d,_=k+1,w=y+1,g=d-1;g>=0;g--)t[_+g]=t[w+g];t[k]=o[b]}else{if(m===0)throw new Error;for(w=k-(m-1),g=0;g<m;g++)t[w+g]=o[g]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Gu(t,e,r,a){r||(r=0),a||(a=t.length);var n=a-r;if(!(n<2)){var i=0;if(n<Cw){i=Dw(t,r,a,e),Aw(t,r,a,r+i,e);return}var o=eI(t,e),s=Q4(n);do{if(i=Dw(t,r,a,e),i<s){var l=n;l>s&&(l=s),Aw(t,r,r+l,r+i,e),i=l}o.pushRun(r,i),o.mergeRuns(),n-=i,r+=i}while(n!==0);o.forceMergeRuns()}}var Lw=!1;function bd(){Lw||(Lw=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Mw(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var tI=(function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Mw}return t.prototype.traverse=function(e,r){for(var a=0;a<this._roots.length;a++)this._roots[a].traverse(e,r)},t.prototype.getDisplayList=function(e,r){r=r||!1;var a=this._displayList;return(e||!a.length)&&this.updateDisplayList(r),a},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var r=this._roots,a=this._displayList,n=0,i=r.length;n<i;n++)this._updateAndAddDisplayable(r[n],null,e);a.length=this._displayListLen,Gu(a,Mw)},t.prototype._updateAndAddDisplayable=function(e,r,a){if(!(e.ignore&&!a)){e.beforeUpdate(),e.update(),e.afterUpdate();var n=e.getClipPath(),i=r&&r.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(i||n)){if(s||(s=e.__clipPaths=[]),i)for(var l=0;l<r.length;l++)s[o++]=r[l];for(var u=n,p=e;u;)u.parent=p,u.updateTransform(),s[o++]=u,p=u,u=u.getClipPath()}if(s&&(s.length=o),e.childrenRef){for(var c=e.childrenRef(),f=0;f<c.length;f++){var h=c[f];e.__dirty&&(h.__dirty|=tr),this._updateAndAddDisplayable(h,s,a)}e.__dirty=0}else{var d=e;isNaN(d.z)&&(bd(),d.z=0),isNaN(d.z2)&&(bd(),d.z2=0),isNaN(d.zlevel)&&(bd(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var v=e.getDecalElement&&e.getDecalElement();v&&this._updateAndAddDisplayable(v,s,a);var m=e.getTextGuideLine();m&&this._updateAndAddDisplayable(m,s,a);var g=e.getTextContent();g&&this._updateAndAddDisplayable(g,s,a)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var r=0,a=e.length;r<a;r++)this.delRoot(e[r]);return}var n=fe(this._roots,e);n>=0&&this._roots.splice(n,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t})(),kd;kd=se.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};function ki(){return new Date().getTime()}var rI=(function(t){V(e,t);function e(r){var a=t.call(this)||this;return a._running=!1,a._time=0,a._pausedTime=0,a._pauseStart=0,a._paused=!1,r=r||{},a.stage=r.stage||{},a}return e.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},e.prototype.addAnimator=function(r){r.animation=this;var a=r.getClip();a&&this.addClip(a)},e.prototype.removeClip=function(r){if(r.animation){var a=r.prev,n=r.next;a?a.next=n:this._head=n,n?n.prev=a:this._tail=a,r.next=r.prev=r.animation=null}},e.prototype.removeAnimator=function(r){var a=r.getClip();a&&this.removeClip(a),r.animation=null},e.prototype.update=function(r){for(var a=ki()-this._pausedTime,n=a-this._time,i=this._head;i;){var o=i.next,s=i.step(a,n);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=a,r||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var r=this;this._running=!0;function a(){r._running&&(kd(a),!r._paused&&r.update())}kd(a)},e.prototype.start=function(){this._running||(this._time=ki(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=ki(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=ki()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var r=this._head;r;){var a=r.next;r.prev=r.next=r.animation=null,r=a}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(r,a){a=a||{},this.start();var n=new Rc(r,a.loop);return this.addAnimator(n),n},e})(zr),aI=300,wd=se.domSupported,_d=(function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},a=K(t,function(n){var i=n.replace("mouse","pointer");return r.hasOwnProperty(i)?i:n});return{mouse:t,touch:e,pointer:a}})(),Ew={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Iw=!1;function xd(t){var e=t.pointerType;return e==="pen"||e==="touch"}function nI(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function Pd(t){t&&(t.zrByTouch=!0)}function iI(t,e){return Kt(t.dom,new oI(t,e),!0)}function Ow(t,e){for(var r=e,a=!1;r&&r.nodeType!==9&&!(a=r.domBelongToZr||r!==e&&r===t.painterRoot);)r=r.parentNode;return a}var oI=(function(){function t(e,r){this.stopPropagation=qe,this.stopImmediatePropagation=qe,this.preventDefault=qe,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return t})(),ur={mousedown:function(t){t=Kt(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Kt(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=Kt(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=Kt(this.dom,t);var e=t.toElement||t.relatedTarget;Ow(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Iw=!0,t=Kt(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Iw||(t=Kt(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=Kt(this.dom,t),Pd(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),ur.mousemove.call(this,t),ur.mousedown.call(this,t)},touchmove:function(t){t=Kt(this.dom,t),Pd(t),this.handler.processGesture(t,"change"),ur.mousemove.call(this,t)},touchend:function(t){t=Kt(this.dom,t),Pd(t),this.handler.processGesture(t,"end"),ur.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<aI&&ur.click.call(this,t)},pointerdown:function(t){ur.mousedown.call(this,t)},pointermove:function(t){xd(t)||ur.mousemove.call(this,t)},pointerup:function(t){ur.mouseup.call(this,t)},pointerout:function(t){xd(t)||ur.mouseout.call(this,t)}};A(["click","dblclick","contextmenu"],function(t){ur[t]=function(e){e=Kt(this.dom,e),this.trigger(t,e)}});var Sd={pointermove:function(t){xd(t)||Sd.mousemove.call(this,t)},pointerup:function(t){Sd.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function sI(t,e){var r=e.domHandlers;se.pointerEventsSupported?A(_d.pointer,function(a){Wu(e,a,function(n){r[a].call(t,n)})}):(se.touchEventsSupported&&A(_d.touch,function(a){Wu(e,a,function(n){r[a].call(t,n),nI(e)})}),A(_d.mouse,function(a){Wu(e,a,function(n){n=dd(n),e.touching||r[a].call(t,n)})}))}function lI(t,e){se.pointerEventsSupported?A(Ew.pointer,r):se.touchEventsSupported||A(Ew.mouse,r);function r(a){function n(i){i=dd(i),Ow(t,i.target)||(i=iI(t,i),e.domHandlers[a].call(t,i))}Wu(e,a,n,{capture:!0})}}function Wu(t,e,r,a){t.mounted[e]=r,t.listenerOpts[e]=a,G4(t.domTarget,e,r,a)}function Td(t){var e=t.mounted;for(var r in e)e.hasOwnProperty(r)&&W4(t.domTarget,r,e[r],t.listenerOpts[r]);t.mounted={}}var Rw=(function(){function t(e,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=r}return t})(),uI=(function(t){V(e,t);function e(r,a){var n=t.call(this)||this;return n.__pointerCapturing=!1,n.dom=r,n.painterRoot=a,n._localHandlerScope=new Rw(r,ur),wd&&(n._globalHandlerScope=new Rw(document,Sd)),sI(n,n._localHandlerScope),n}return e.prototype.dispose=function(){Td(this._localHandlerScope),wd&&Td(this._globalHandlerScope)},e.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},e.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,wd&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var a=this._globalHandlerScope;r?lI(this,a):Td(a)}},e})(zr);var $u={},Bw={};function pI(t){delete Bw[t]}function cI(t){if(!t)return!1;if(typeof t=="string")return el(t,1)<Bc;if(t.colorStops){for(var e=t.colorStops,r=0,a=e.length,n=0;n<a;n++)r+=el(e[n].color,1);return r/=a,r<Bc}return!1}var fI=(function(){function t(e,r,a){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,a=a||{},this.dom=r,this.id=e;var i=new tI,o=a.renderer||"canvas";$u[o]||(o=he($u)[0]),a.useDirtyRect=a.useDirtyRect==null?!1:a.useDirtyRect;var s=new $u[o](r,i,a,e),l=a.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!se.node&&!se.worker&&!l?new uI(s.getViewportRoot(),s.root):null,p=a.useCoarsePointer,c=p==null||p==="auto"?se.touchEventsSupported:!!p,f=44,h;c&&(h=Z(a.pointerSize,f)),this.handler=new Pw(i,s,u,s.root,h),this.animation=new rI({stage:{update:l?null:function(){return n._flush(!1)}}}),l||this.animation.start()}return t.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},t.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(e,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,r),this.refresh())},t.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=cI(e))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(e){this._darkMode=e},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(e){this._disposed||this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},t.prototype._refresh=function(e){e.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:e.refresh,refreshHover:e.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!0)},t.prototype._flush=function(e){var r,a=ki(),n=this._needsRefresh,i=this._needsRefreshHover;(n||i)&&(r=!0,this._refresh({animUpdate:e,refresh:n,refreshHover:i}));var o=ki();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:o-a})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},t.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,r){if(!this._disposed)return this.handler.findHover(e,r)},t.prototype.on=function(e,r,a){return this._disposed||this.handler.on(e,r,a),this},t.prototype.off=function(e,r){this._disposed||this.handler.off(e,r)},t.prototype.trigger=function(e,r){this._disposed||this.handler.trigger(e,r)},t.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),r=0;r<e.length;r++)e[r]instanceof Me&&e[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,pI(this.id))},t})();function Nw(t,e){var r=new fI(im(),t,e);return Bw[r.id]=r,r}function hI(t,e){$u[t]=e}var Cd;function dI(t){if(typeof Cd=="function")return Cd(t)}function vI(t){Cd=t}var Fw="";typeof navigator<"u"&&(Fw=navigator.platform||"");var wi="rgba(0, 0, 0, 0.2)",zw=$.color.theme[0],gI=Cc(zw,null,null,.9);const Hw={darkMode:"auto",colorBy:"series",color:$.color.theme,gradientColor:[gI,zw],aria:{decal:{decals:[{color:wi,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:wi,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:wi,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:wi,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:wi,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:wi,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Fw.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var mI=ae();function yI(t,e,r){var a=mI.get(e);if(!a)return r;var n=a(t);return n?r.concat(n):r}var Yu,Zo,Vw,Uw="\0_ec_inner",bI=1,Dd=(function(t){V(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r,a,n,i,o,s){i=i||{},this.option=null,this._theme=new Ae(i),this._locale=new Ae(o),this._optionManager=s},e.prototype.setOption=function(r,a,n){var i=$w(a);this._optionManager.setOption(r,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(r,a){return this._resetOption(r,$w(a))},e.prototype._resetOption=function(r,a){var n=!1,i=this._optionManager;if(!r||r==="recreate"){var o=i.mountOption(r==="recreate");!this.option||r==="recreate"?Vw(this,o):(this.restoreData(),this._mergeOption(o,a)),n=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=i.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,a))}if(!r||r==="recreate"||r==="media"){var l=i.getMediaOption(this);l.length&&A(l,function(u){n=!0,this._mergeOption(u,a)},this)}return n},e.prototype.mergeOption=function(r){this._mergeOption(r,null)},e.prototype._mergeOption=function(r,a){var n=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=ae(),u=a&&a.replaceMergeMainTypeMap;T3(this),A(r,function(c,f){c!=null&&(ke.hasClass(f)?f&&(s.push(f),l.set(f,!0)):n[f]=n[f]==null?le(c):Pe(n[f],c,!0))}),u&&u.each(function(c,f){ke.hasClass(f)&&!l.get(f)&&(s.push(f),l.set(f,!0))}),ke.topologicalTravel(s,ke.getAllClassMainTypes(),p,this);function p(c){var f=yI(this,c,ut(r[c])),h=i.get(c),d=h?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",v=OD(h,f,d);VD(v,c,ke),n[c]=null,i.set(c,null),o.set(c,0);var m=[],g=[],y=0,b;A(v,function(k,w){var _=k.existing,x=k.newOption;if(!x)_&&(_.mergeOption({},this),_.optionUpdated({},!1));else{var T=c==="series",C=ke.getClass(c,k.keyInfo.subType,!T);if(!C)return;if(c==="tooltip"){if(b)return;b=!0}if(_&&_.constructor===C)_.name=k.keyInfo.name,_.mergeOption(x,this),_.optionUpdated(x,!1);else{var P=H({componentIndex:w},k.keyInfo);_=new C(x,this,this,P),H(_,P),k.brandNew&&(_.__requireNewView=!0),_.init(x,this,this),_.optionUpdated(null,!0)}}_?(m.push(_.option),g.push(_),y++):(m.push(void 0),g.push(void 0))},this),n[c]=m,i.set(c,g),o.set(c,y),c==="series"&&Yu(this)}this._seriesIndices||Yu(this)},e.prototype.getOption=function(){var r=le(this.option);return A(r,function(a,n){if(ke.hasClass(n)){for(var i=ut(a),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!mo(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,r[n]=i}}),delete r[Uw],r},e.prototype.setTheme=function(r){this._theme=new Ae(r),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(r){this._payload=r},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(r,a){var n=this._componentsMap.get(r);if(n){var i=n[a||0];if(i)return i;if(a==null){for(var o=0;o<n.length;o++)if(n[o])return n[o]}}},e.prototype.queryComponents=function(r){var a=r.mainType;if(!a)return[];var n=r.index,i=r.id,o=r.name,s=this._componentsMap.get(a);if(!s||!s.length)return[];var l;return n!=null?(l=[],A(ut(n),function(u){s[u]&&l.push(s[u])})):i!=null?l=Gw("id",i,s):o!=null?l=Gw("name",o,s):l=Xe(s,function(u){return!!u}),Ww(l,r)},e.prototype.findComponents=function(r){var a=r.query,n=r.mainType,i=s(a),o=i?this.queryComponents(i):Xe(this._componentsMap.get(n),function(u){return!!u});return l(Ww(o,r));function s(u){var p=n+"Index",c=n+"Id",f=n+"Name";return u&&(u[p]!=null||u[c]!=null||u[f]!=null)?{mainType:n,index:u[p],id:u[c],name:u[f]}:null}function l(u){return r.filter?Xe(u,r.filter):u}},e.prototype.eachComponent=function(r,a,n){var i=this._componentsMap;if(re(r)){var o=a,s=r;i.each(function(c,f){for(var h=0;c&&h<c.length;h++){var d=c[h];d&&s.call(o,f,d,d.componentIndex)}})}else for(var l=q(r)?i.get(r):J(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var p=l[u];p&&a.call(n,p,p.componentIndex)}},e.prototype.getSeriesByName=function(r){var a=Ar(r,null);return Xe(this._componentsMap.get("series"),function(n){return!!n&&a!=null&&n.name===a})},e.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},e.prototype.getSeriesByType=function(r){return Xe(this._componentsMap.get("series"),function(a){return!!a&&a.subType===r})},e.prototype.getSeries=function(){return Xe(this._componentsMap.get("series"),function(r){return!!r})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(r,a){Zo(this),A(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];r.call(a,i,n)},this)},e.prototype.eachRawSeries=function(r,a){A(this._componentsMap.get("series"),function(n){n&&r.call(a,n,n.componentIndex)})},e.prototype.eachSeriesByType=function(r,a,n){Zo(this),A(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===r&&a.call(n,o,i)},this)},e.prototype.eachRawSeriesByType=function(r,a,n){return A(this.getSeriesByType(r),a,n)},e.prototype.isSeriesFiltered=function(r){return Zo(this),this._seriesIndicesMap.get(r.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(r,a){Zo(this);var n=[];A(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];r.call(a,o,i)&&n.push(i)},this),this._seriesIndices=n,this._seriesIndicesMap=ae(n)},e.prototype.restoreData=function(r){Yu(this);var a=this._componentsMap,n=[];a.each(function(i,o){ke.hasClass(o)&&n.push(o)}),ke.topologicalTravel(n,ke.getAllClassMainTypes(),function(i){A(a.get(i),function(o){o&&(i!=="series"||!kI(o,r))&&o.restoreData()})})},e.internalField=(function(){Yu=function(r){var a=r._seriesIndices=[];A(r._componentsMap.get("series"),function(n){n&&a.push(n.componentIndex)}),r._seriesIndicesMap=ae(a)},Zo=function(r){},Vw=function(r,a){r.option={},r.option[Uw]=bI,r._componentsMap=ae({series:[]}),r._componentsCount=ae();var n=a.aria;J(n)&&n.enabled==null&&(n.enabled=!0),wI(a,r._theme.option),Pe(a,Hw,!1),r._mergeOption(a,null)}})(),e})(Ae);function kI(t,e){if(e){var r=e.seriesIndex,a=e.seriesId,n=e.seriesName;return r!=null&&t.componentIndex!==r||a!=null&&t.id!==a||n!=null&&t.name!==n}}function wI(t,e){var r=t.color&&!t.colorLayer;A(e,function(a,n){n==="colorLayer"&&r||n==="color"&&t.color||ke.hasClass(n)||(typeof a=="object"?t[n]=t[n]?Pe(t[n],a,!1):le(a):t[n]==null&&(t[n]=a))})}function Gw(t,e,r){if(W(e)){var a=ae();return A(e,function(i){if(i!=null){var o=Ar(i,null);o!=null&&a.set(i,!0)}}),Xe(r,function(i){return i&&a.get(i[t])})}else{var n=Ar(e,null);return Xe(r,function(i){return i&&n!=null&&i[t]===n})}}function Ww(t,e){return e.hasOwnProperty("subType")?Xe(t,function(r){return r&&r.subType===e.subType}):t}function $w(t){var e=ae();return t&&A(ut(t.replaceMerge),function(r){e.set(r,!0)}),{replaceMergeMainTypeMap:e}}Qt(Dd,Sh);var _I=/^(min|max)?(.+)$/,xI=(function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,r,a){e&&(A(ut(e.series),function(o){o&&o.data&&yt(o.data)&&Fs(o.data)}),A(ut(e.dataset),function(o){o&&o.source&&yt(o.source)&&Fs(o.source)})),e=le(e);var n=this._optionBackup,i=PI(e,r,!n);this._newBaseOption=i.baseOption,n?(i.timelineOptions.length&&(n.timelineOptions=i.timelineOptions),i.mediaList.length&&(n.mediaList=i.mediaList),i.mediaDefault&&(n.mediaDefault=i.mediaDefault)):this._optionBackup=i},t.prototype.mountOption=function(e){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],le(e?r.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var r,a=this._timelineOptions;if(a.length){var n=e.getComponent("timeline");n&&(r=le(a[n.getCurrentIndex()]))}return r},t.prototype.getMediaOption=function(e){var r=this._api.getWidth(),a=this._api.getHeight(),n=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!n.length&&!i)return s;for(var l=0,u=n.length;l<u;l++)SI(n[l].query,r,a)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!CI(o,this._currentMediaIndices)&&(s=K(o,function(p){return le(p===-1?i.option:n[p].option)})),this._currentMediaIndices=o,s},t})();function PI(t,e,r){var a=[],n,i,o=t.baseOption,s=t.timeline,l=t.options,u=t.media,p=!!t.media,c=!!(l||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((c||p)&&(t.options=t.media=null),i=t),p&&W(u)&&A(u,function(h){h&&h.option&&(h.query?a.push(h):n||(n=h))}),f(i),A(l,function(h){return f(h)}),A(a,function(h){return f(h.option)});function f(h){A(e,function(d){d(h,r)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:n,mediaList:a}}function SI(t,e,r){var a={width:e,height:r,aspectratio:e/r},n=!0;return A(t,function(i,o){var s=o.match(_I);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();TI(a[u],i,l)||(n=!1)}}),n}function TI(t,e,r){return r==="min"?t>=e:r==="max"?t<=e:t===e}function CI(t,e){return t.join(",")===e.join(",")}var pr=A,Qo=J,Yw=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Ad(t){var e=t&&t.itemStyle;if(e)for(var r=0,a=Yw.length;r<a;r++){var n=Yw[r],i=e.normal,o=e.emphasis;i&&i[n]&&(t[n]=t[n]||{},t[n].normal?Pe(t[n].normal,i[n]):t[n].normal=i[n],i[n]=null),o&&o[n]&&(t[n]=t[n]||{},t[n].emphasis?Pe(t[n].emphasis,o[n]):t[n].emphasis=o[n],o[n]=null)}}function nt(t,e,r){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var a=t[e].normal,n=t[e].emphasis;a&&(r?(t[e].normal=t[e].emphasis=null,pe(t[e],a)):t[e]=a),n&&(t.emphasis=t.emphasis||{},t.emphasis[e]=n,n.focus&&(t.emphasis.focus=n.focus),n.blurScope&&(t.emphasis.blurScope=n.blurScope))}}function Jo(t){nt(t,"itemStyle"),nt(t,"lineStyle"),nt(t,"areaStyle"),nt(t,"label"),nt(t,"labelLine"),nt(t,"upperLabel"),nt(t,"edgeLabel")}function He(t,e){var r=Qo(t)&&t[e],a=Qo(r)&&r.textStyle;if(a)for(var n=0,i=Fy.length;n<i;n++){var o=Fy[n];a.hasOwnProperty(o)&&(r[o]=a[o])}}function Xt(t){t&&(Jo(t),He(t,"label"),t.emphasis&&He(t.emphasis,"label"))}function DI(t){if(Qo(t)){Ad(t),Jo(t),He(t,"label"),He(t,"upperLabel"),He(t,"edgeLabel"),t.emphasis&&(He(t.emphasis,"label"),He(t.emphasis,"upperLabel"),He(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(Ad(e),Xt(e));var r=t.markLine;r&&(Ad(r),Xt(r));var a=t.markArea;a&&Xt(a);var n=t.data;if(t.type==="graph"){n=n||t.nodes;var i=t.links||t.edges;if(i&&!yt(i))for(var o=0;o<i.length;o++)Xt(i[o]);A(t.categories,function(u){Jo(u)})}if(n&&!yt(n))for(var o=0;o<n.length;o++)Xt(n[o]);if(e=t.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)Xt(s[o]);if(r=t.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)W(l[o])?(Xt(l[o][0]),Xt(l[o][1])):Xt(l[o]);t.type==="gauge"?(He(t,"axisLabel"),He(t,"title"),He(t,"detail")):t.type==="treemap"?(nt(t.breadcrumb,"itemStyle"),A(t.levels,function(u){Jo(u)})):t.type==="tree"&&Jo(t.leaves)}}function Zr(t){return W(t)?t:t?[t]:[]}function Kw(t){return(W(t)?t[0]:t)||{}}function AI(t,e){pr(Zr(t.series),function(a){Qo(a)&&DI(a)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),pr(r,function(a){pr(Zr(t[a]),function(n){n&&(He(n,"axisLabel"),He(n.axisPointer,"label"))})}),pr(Zr(t.parallel),function(a){var n=a&&a.parallelAxisDefault;He(n,"axisLabel"),He(n&&n.axisPointer,"label")}),pr(Zr(t.calendar),function(a){nt(a,"itemStyle"),He(a,"dayLabel"),He(a,"monthLabel"),He(a,"yearLabel")}),pr(Zr(t.radar),function(a){He(a,"name"),a.name&&a.axisName==null&&(a.axisName=a.name,delete a.name),a.nameGap!=null&&a.axisNameGap==null&&(a.axisNameGap=a.nameGap,delete a.nameGap)}),pr(Zr(t.geo),function(a){Qo(a)&&(Xt(a),pr(Zr(a.regions),function(n){Xt(n)}))}),pr(Zr(t.timeline),function(a){Xt(a),nt(a,"label"),nt(a,"itemStyle"),nt(a,"controlStyle",!0);var n=a.data;W(n)&&A(n,function(i){J(i)&&(nt(i,"label"),nt(i,"itemStyle"))})}),pr(Zr(t.toolbox),function(a){nt(a,"iconStyle"),pr(a.feature,function(n){nt(n,"iconStyle")})}),He(Kw(t.axisPointer),"label"),He(Kw(t.tooltip).axisPointer,"label")}function LI(t,e){for(var r=e.split(","),a=t,n=0;n<r.length&&(a=a&&a[r[n]],a!=null);n++);return a}function MI(t,e,r,a){for(var n=e.split(","),i=t,o,s=0;s<n.length-1;s++)o=n[s],i[o]==null&&(i[o]={}),i=i[o];i[n[s]]==null&&(i[n[s]]=r)}function Xw(t){t&&A(EI,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var EI=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],II=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Ld=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function es(t){var e=t&&t.itemStyle;if(e)for(var r=0;r<Ld.length;r++){var a=Ld[r][1],n=Ld[r][0];e[a]!=null&&(e[n]=e[a])}}function qw(t){t&&t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(t.edgeDistance=t.margin)}function jw(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function OI(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(t.emphasis.focus="adjacency"))}function Zw(t,e){if(t)for(var r=0;r<t.length;r++)e(t[r]),t[r]&&Zw(t[r].children,e)}function Qw(t,e){AI(t,e),t.series=ut(t.series),A(t.series,function(r){if(J(r)){var a=r.type;if(a==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(a==="pie"||a==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),qw(r.label);var n=r.data;if(n&&!yt(n))for(var i=0;i<n.length;i++)qw(n[i]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(a==="gauge"){var o=LI(r,"pointer.color");o!=null&&MI(r,"itemStyle.color",o)}else if(a==="bar"){es(r),es(r.backgroundStyle),es(r.emphasis);var n=r.data;if(n&&!yt(n))for(var i=0;i<n.length;i++)typeof n[i]=="object"&&(es(n[i]),es(n[i]&&n[i].emphasis))}else if(a==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),jw(r),Zw(r.data,jw)}else a==="graph"||a==="sankey"?OI(r):a==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&pe(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),Xw(r)}}),t.dataRange&&(t.visualMap=t.dataRange),A(II,function(r){var a=t[r];a&&(W(a)||(a=[a]),A(a,function(n){Xw(n)}))})}var RI=vf(BI);function BI(t){var e=ae();t.eachSeries(function(r){var a=r.get("stack");if(a){var n=e.get(a)||e.set(a,[]),i=r.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;n.push(o)}}),e.each(function(r){if(r.length!==0){var a=r[0].seriesModel,n=a.get("stackOrder")||"seriesAsc";n==="seriesDesc"&&r.reverse(),A(r,function(i,o){i.data.setCalculationInfo("stackedOnSeries",o>0?r[o-1].seriesModel:null)}),NI(r)}})}function NI(t){A(t,function(e,r){var a=[],n=[NaN,NaN],i=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,p,c){var f=o.get(e.stackedDimension,c);if(isNaN(f))return n;var h,d;s?d=o.getRawIndex(c):h=o.get(e.stackedByDimension,c);for(var v=NaN,m=r-1;m>=0;m--){var g=t[m];if(s||(d=g.data.rawIndexOf(g.stackedByDimension,h)),d>=0){var y=g.data.getByRawIndex(g.stackResultDimension,d);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&f>=0&&y>0||l==="samesign"&&f<=0&&y<0){f=TD(f,y),v=y;break}}}return a[0]=f,a[1]=v,a})})}var Dt=(function(){function t(){this.group=new Me,this.uid=Io("viewComponent")}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,a,n){},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,a,n){},t.prototype.updateLayout=function(e,r,a,n){},t.prototype.updateVisual=function(e,r,a,n){},t.prototype.toggleBlurSeries=function(e,r,a){},t.prototype.eachRendered=function(e){var r=this.group;r&&r.traverse(e)},t})();Jp(Dt),Vs(Dt);var Jw=_e(),e_={itemStyle:Ki(J0,!0),lineStyle:Ki(Q0,!0)},FI={lineStyle:"stroke",itemStyle:"fill"};function t_(t,e){var r=t.visualStyleMapper||e_[e];return r||(console.warn("Unknown style type '"+e+"'."),e_.itemStyle)}function r_(t,e){var r=t.visualDrawType||FI[e];return r||(console.warn("Unknown style type '"+e+"'."),"fill")}var zI={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),a=t.visualStyleAccessPath||"itemStyle",n=t.getModel(a),i=t_(t,a),o=i(n),s=n.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=r_(t,a),u=o[l],p=re(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||p||c){var f=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[l]||(o[l]=f,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||re(o.fill)?f:o.fill,o.stroke=o.stroke==="auto"||re(o.stroke)?f:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!e.isSeriesFiltered(t)&&p)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,d){var v=t.getDataParams(d),m=H({},o);m[l]=p(v),h.setItemVisual(d,"style",m)}}}},ts=new Ae,HI={createOnAllSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData){var r=t.getData(),a=t.visualStyleAccessPath||"itemStyle",n=t_(t,a),i=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[a]){ts.option=l[a];var u=n(ts),p=o.ensureUniqueItemVisual(s,"style");H(p,u),ts.option.decal&&(o.setItemVisual(s,"decal",ts.option.decal),ts.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},VI={performRawSeries:!0,overallReset:function(t){var e=ae();t.eachSeries(function(r){if(!r.isColorBySeries()){var a=r.type+"-"+r.getColorBy();Jw(r).scope=e.get(a)||e.set(a,{})}}),t.eachSeries(function(r){if(!r.isColorBySeries()){var a=r.getRawData(),n={},i=r.getData(),o=Jw(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=r_(r,s);i.each(function(u){var p=i.getRawIndex(u);n[p]=u}),a.each(function(u){var p=n[u],c=i.getItemVisual(p,"colorFromPalette");if(c){var f=i.ensureUniqueItemVisual(p,"style"),h=a.getName(u)||u+"",d=a.count();f[l]=r.getColorFromPalette(h,o,d)}})}})}},Ku=Math.PI;function UI(t,e){e=e||{},pe(e,{text:"loading",textColor:$.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:$.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new Me,a=new Ie({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(a);var n=new Oe({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),i=new Ie({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});r.add(i);var o;return e.showSpinner&&(o=new Bl({shape:{startAngle:-Ku/2,endAngle:-Ku/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Ku*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Ku*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=n.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(t.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),p=t.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:p}),i.setShape({x:u-l,y:p-l,width:l*2,height:l*2}),a.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},r.resize(),r}var a_=(function(){function t(e,r,a,n){this._stageTaskMap=ae(),this.ecInstance=e,this.api=r,a=this._dataProcessorHandlers=a.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=a.concat(n)}return t.prototype.restoreData=function(e,r){e.restoreData(r),this._stageTaskMap.each(function(a){var n=a.overallTask;n&&n.dirty()})},t.prototype.getPerformArgs=function(e,r){if(e.__pipeline){var a=this._pipelineMap.get(e.__pipeline.id),n=a.context,i=!r&&a.progressiveEnabled&&(!n||n.progressiveRender)&&e.__idxInPipeline>a.blockIndex,o=i?a.step:null,s=n&&n.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,r){var a=this._pipelineMap.get(e.uid),n=e.__preparePipelineContext?e.__preparePipelineContext(r,a):Yy(e,r,a);e.pipelineContext=a.context=n},t.prototype.restorePipelines=function(e,r){var a=this,n=a._pipelineMap=ae();r.eachSeries(function(i){var o=e.painter.type==="canvas"&&i.getProgressive(),s=i.uid;n.set(s,{id:s,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:o&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),a._pipe(i,i.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,r=this.api.getModel(),a=this.api;A(this._allHandlers,function(n){var i=e.get(n.uid)||e.set(n.uid,{}),o="";Jt(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,i,r,a),n.overallReset&&this._createOverallStageTask(n,i,r,a)},this)},t.prototype.prepareView=function(e,r,a,n){var i=e.renderTask,o=i.context;o.model=r,o.ecModel=a,o.api=n,i.__block=!e.incrementalPrepareRender,this._pipe(r,i)},t.prototype.performDataProcessorTasks=function(e,r){this._performStageTasks(this._dataProcessorHandlers,e,r,{block:!0})},t.prototype.performVisualTasks=function(e,r,a){this._performStageTasks(this._visualHandlers,e,r,a)},t.prototype._performStageTasks=function(e,r,a,n){n=n||{};var i=!1,o=this;A(e,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var p=o._stageTaskMap.get(l.uid),c=p.seriesTaskMap,f=p.overallTask;if(f){var h,d=f.agentStubMap;d.each(function(m){s(n,m)&&(m.dirty(),h=!0)}),h&&f.dirty(),o.updatePayload(f,a);var v=o.getPerformArgs(f,n.block);d.each(function(m){m.perform(v)}),f.perform(v)&&(i=!0)}else c&&c.each(function(m,g){s(n,m)&&m.dirty();var y=o.getPerformArgs(m,n.block);y.skip=!l.performRawSeries&&r.isSeriesFiltered(m.context.model),o.updatePayload(m,a),m.perform(y)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},t.prototype.performSeriesTasks=function(e){var r;e.eachSeries(function(a){r=a.dataTask.perform()||r}),this.unfinished=r||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var r=e.tail;do{if(r.__block){e.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},t.prototype.updatePayload=function(e,r){r!=="remain"&&(e.context.payload=r)},t.prototype._createSeriesStageTask=function(e,r,a,n){var i=this,o=r.seriesTaskMap,s=r.seriesTaskMap=ae(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?a.eachRawSeries(p):l?a.eachRawSeriesByType(l,p):u&&u(a,n).each(p);function p(c){var f=c.uid,h=s.set(f,o&&o.get(f)||Ho({plan:KI,reset:XI,count:jI}));h.context={model:c,ecModel:a,api:n,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(c,h)}},t.prototype._createOverallStageTask=function(e,r,a,n){var i=this,o=r.overallTask=r.overallTask||Ho({reset:GI});o.context={ecModel:a,api:n,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=ae(),u=e.seriesType,p=e.getTargetSeries,c=e.dirtyOnOverallProgress,f=!1,h="";Jt(!e.createOnAllSeries,h),u?a.eachRawSeriesByType(u,d):p?p(a,n).each(d):A(a.getSeries(),d);function d(v){var m=v.uid,g=l.set(m,s&&s.get(m)||(f=!0,Ho({reset:WI,onDirty:YI})));g.context={model:v,dirtyOnOverallProgress:c},g.agent=o,g.__block=c,i._pipe(v,g)}f&&o.dirty()},t.prototype._pipe=function(e,r){var a=e.uid,n=this._pipelineMap.get(a);!n.head&&(n.head=r),n.tail&&n.tail.pipe(r),n.tail=r,r.__idxInPipeline=n.count++,r.__pipeline=n},t.wrapStageHandler=function(e,r){return re(e)&&(e={overallReset:e,seriesType:ZI(e)}),e.uid=Io("stageHandler"),r&&(e.visualType=r),e},t})();function GI(t){t.overallReset(t.ecModel,t.api,t.payload)}function WI(t){return t.dirtyOnOverallProgress&&$I}function $I(){this.agent.dirty(),this.getDownstream().dirty()}function YI(){this.agent&&this.agent.dirty()}function KI(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function XI(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=ut(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?K(e,function(r,a){return n_(a)}):qI}var qI=n_(0);function n_(t){return function(e,r){var a=r.data,n=r.resetDefines[t];if(n&&n.dataEach)for(var i=e.start;i<e.end;i++)n.dataEach(a,i);else n&&n.progress&&n.progress(e,a)}}function jI(t){return t.data.count()}function ZI(t){Xu=null;try{t(rs,i_)}catch{}return Xu}var rs={},i_={},Xu;o_(rs,Dd),o_(i_,jy),rs.eachSeriesByType=rs.eachRawSeriesByType=function(t){Xu=t},rs.eachComponent=function(t){t.mainType==="series"&&t.subType&&(Xu=t.subType)};function o_(t,e){for(var r in e.prototype)t[r]=qe}var G=$.darkColor,s_=G.background,as=function(){return{axisLine:{lineStyle:{color:G.axisLine}},splitLine:{lineStyle:{color:G.axisSplitLine}},splitArea:{areaStyle:{color:[G.backgroundTint,G.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:G.axisMinorSplitLine}},axisLabel:{color:G.axisLabel},axisName:{}}},l_={label:{color:G.secondary},itemStyle:{borderColor:G.borderTint},dividerLineStyle:{color:G.border}},u_={darkMode:!0,color:G.theme,backgroundColor:s_,axisPointer:{lineStyle:{color:G.border},crossStyle:{color:G.borderShade},label:{color:G.tertiary}},legend:{textStyle:{color:G.secondary},pageTextStyle:{color:G.tertiary}},textStyle:{color:G.secondary},title:{textStyle:{color:G.primary},subtextStyle:{color:G.quaternary}},toolbox:{iconStyle:{borderColor:G.accent50},feature:{dataView:{backgroundColor:s_,textColor:G.primary,textareaColor:G.background,textareaBorderColor:G.border,buttonColor:G.accent50,buttonTextColor:G.neutral00}}},tooltip:{backgroundColor:G.neutral20,defaultBorderColor:G.border,textStyle:{color:G.tertiary}},dataZoom:{borderColor:G.accent10,textStyle:{color:G.tertiary},brushStyle:{color:G.backgroundTint},handleStyle:{color:G.neutral00,borderColor:G.accent20},moveHandleStyle:{color:G.accent40},emphasis:{handleStyle:{borderColor:G.accent50}},dataBackground:{lineStyle:{color:G.accent30},areaStyle:{color:G.accent20}},selectedDataBackground:{lineStyle:{color:G.accent50},areaStyle:{color:G.accent30}}},visualMap:{textStyle:{color:G.secondary},handleStyle:{borderColor:G.neutral30}},timeline:{lineStyle:{color:G.accent10},label:{color:G.tertiary},controlStyle:{color:G.accent30,borderColor:G.accent30}},calendar:{itemStyle:{color:G.neutral00,borderColor:G.neutral20},dayLabel:{color:G.tertiary},monthLabel:{color:G.secondary},yearLabel:{color:G.secondary}},matrix:{x:l_,y:l_,backgroundColor:{borderColor:G.axisLine},body:{itemStyle:{borderColor:G.borderTint}}},timeAxis:as(),logAxis:as(),valueAxis:as(),categoryAxis:as(),line:{symbol:"circle"},graph:{color:G.theme},gauge:{title:{color:G.secondary},axisLine:{lineStyle:{color:[[1,G.neutral05]]}},axisLabel:{color:G.axisLabel},detail:{color:G.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:G.background}},radar:(function(){var t=as();return t.axisName={color:G.axisLabel},t.axisLine.lineStyle.color=G.neutral20,t})(),treemap:{breadcrumb:{itemStyle:{color:G.neutral20,textStyle:{color:G.secondary}},emphasis:{itemStyle:{color:G.neutral30}}}},sunburst:{itemStyle:{borderColor:G.background}},map:{itemStyle:{borderColor:G.border,areaColor:G.neutral10},label:{color:G.tertiary},emphasis:{label:{color:G.primary},itemStyle:{areaColor:G.highlight}},select:{label:{color:G.primary},itemStyle:{areaColor:G.highlight}}},geo:{itemStyle:{borderColor:G.border,areaColor:G.neutral10},emphasis:{label:{color:G.primary},itemStyle:{areaColor:G.highlight}},select:{label:{color:G.primary},itemStyle:{color:G.highlight}}}};u_.categoryAxis.splitLine.show=!1;var QI=(function(){function t(){}return t.prototype.normalizeQuery=function(e){var r={},a={},n={};if(q(e)){var i=kr(e);r.mainType=i.main||null,r.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};A(e,function(l,u){for(var p=!1,c=0;c<o.length;c++){var f=o[c],h=u.lastIndexOf(f);if(h>0&&h===u.length-f.length){var d=u.slice(0,h);d!=="data"&&(r.mainType=d,r[f.toLowerCase()]=l,p=!0)}}s.hasOwnProperty(u)&&(a[u]=l,p=!0),p||(n[u]=l)})}return{cptQuery:r,dataQuery:a,otherQuery:n}},t.prototype.filter=function(e,r){var a=this.eventInfo;if(!a)return!0;var n=a.targetEl,i=a.packedEvent,o=a.model,s=a.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return p(l,o,"mainType")&&p(l,o,"subType")&&p(l,o,"index","componentIndex")&&p(l,o,"name")&&p(l,o,"id")&&p(u,i,"name")&&p(u,i,"dataIndex")&&p(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,r.otherQuery,n,i));function p(c,f,h,d){return c[h]==null||f[d||h]===c[h]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t})(),Md=["symbol","symbolSize","symbolRotate","symbolOffset"],p_=Md.concat(["symbolKeepAspect"]),JI={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData();if(t.legendIcon&&r.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var a={},n={},i=!1,o=0;o<Md.length;o++){var s=Md[o],l=t.get(s);re(l)?(i=!0,n[s]=l):a[s]=l}if(a.symbol=a.symbol||t.defaultSymbol,r.setVisual(H({legendIcon:t.legendIcon||a.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},a)),e.isSeriesFiltered(t))return;var u=he(n);function p(c,f){for(var h=t.getRawValue(f),d=t.getDataParams(f),v=0;v<u.length;v++){var m=u[v];c.setItemVisual(f,m,n[m](h,d))}}return{dataEach:i?p:null}}},eO={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.hasSymbolVisual||e.isSeriesFiltered(t))return;var r=t.getData();function a(n,i){for(var o=n.getItemModel(i),s=0;s<p_.length;s++){var l=p_[s],u=o.getShallow(l,!0);u!=null&&n.setItemVisual(i,l,u)}}return{dataEach:r.hasItemOption?a:null}}};function tO(t,e,r){switch(r){case"color":var a=t.getItemVisual(e,"style");return a[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,r)}}function rO(t,e){switch(e){case"color":var r=t.getVisual("style");return r[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function ns(t,e,r){for(var a;t&&!(e(t)&&(a=t,r));)t=t.__hostTarget||t.parent;return a}var qt=new zr,c_={};function aO(t,e){c_[t]=e}function nO(t){return c_[t]}var iO=Math.round(Math.random()*9),oO=typeof Object.defineProperty=="function",sO=(function(){function t(){this._id="__ec_inner_"+iO++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,r){var a=this._guard(e);return oO?Object.defineProperty(a,this._id,{value:r,enumerable:!1,configurable:!0}):a[this._id]=r,this},t.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},t.prototype.has=function(e){return!!this._guard(e)[this._id]},t.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},t})();function gn(t){return isFinite(t)}function lO(t,e,r){var a=e.x==null?0:e.x,n=e.x2==null?1:e.x2,i=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(a=a*r.width+r.x,n=n*r.width+r.x,i=i*r.height+r.y,o=o*r.height+r.y),a=gn(a)?a:0,n=gn(n)?n:1,i=gn(i)?i:0,o=gn(o)?o:0;var s=t.createLinearGradient(a,i,n,o);return s}function uO(t,e,r){var a=r.width,n=r.height,i=Math.min(a,n),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,l=e.r==null?.5:e.r;e.global||(o=o*a+r.x,s=s*n+r.y,l=l*i),o=gn(o)?o:.5,s=gn(s)?s:.5,l=l>=0&&gn(l)?l:.5;var u=t.createRadialGradient(o,s,0,o,s,l);return u}function f_(t,e,r){for(var a=e.type==="radial"?uO(t,e,r):lO(t,e,r),n=e.colorStops,i=0;i<n.length;i++)a.addColorStop(n[i].offset,n[i].color);return a}function pO(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!0;return!1}function qu(t){return parseInt(t,10)}function h_(t,e,r){var a=["width","height"][e],n=["clientWidth","clientHeight"][e],i=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(r[a]!=null&&r[a]!=="auto")return parseFloat(r[a]);var s=document.defaultView.getComputedStyle(t);return(t[n]||qu(s[a])||qu(t.style[a]))-(qu(s[i])||0)-(qu(s[o])||0)||0}function cO(t,e){return!t||t==="solid"||!(e>0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:be(t)?[t]:W(t)?t:null}function Ed(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&cO(e.lineDash,e.lineWidth),a=e.lineDashOffset;if(r){var n=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;n&&n!==1&&(r=K(r,function(i){return i/n}),a/=n)}return[r,a]}var fO=new sa(!0);function ju(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function d_(t){return typeof t=="string"&&t!=="none"}function Zu(t){var e=t.fill;return e!=null&&e!=="none"}function v_(t,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=r}else t.fill()}function g_(t,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=r}else t.stroke()}function m_(t,e,r){var a=tc(e.image,e.__image,r);if(Us(a)){var n=t.createPattern(a,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var i=new DOMMatrix;i.translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*Hs),i.scaleSelf(e.scaleX||1,e.scaleY||1),n.setTransform(i)}return n}}function hO(t,e,r,a,n){var i,o=ju(r),s=Zu(r),l=r.strokePercent,u=l<1,p=!e.path;(!e.silent||u)&&p&&e.createPathProxy();var c=e.path||fO,f=e.__dirty;if(!a){var h=r.fill,d=r.stroke,v=s&&!!h.colorStops,m=o&&!!d.colorStops,g=s&&!!h.image,y=o&&!!d.image,b=void 0,k=void 0,w=void 0,_=void 0,x=void 0;(v||m)&&(x=e.getBoundingRect()),v&&(b=f?f_(t,h,x):e.__canvasFillGradient,e.__canvasFillGradient=b),m&&(k=f?f_(t,d,x):e.__canvasStrokeGradient,e.__canvasStrokeGradient=k),g&&(w=f||!e.__canvasFillPattern?m_(t,h,e):e.__canvasFillPattern,e.__canvasFillPattern=w),y&&(_=f||!e.__canvasStrokePattern?m_(t,d,e):e.__canvasStrokePattern,e.__canvasStrokePattern=_),v?t.fillStyle=b:g&&(w?t.fillStyle=w:s=!1),m?t.strokeStyle=k:y&&(_?t.strokeStyle=_:o=!1)}var T=e.getGlobalScale();c.setScale(T[0],T[1],e.segmentIgnoreThreshold);var C,P;t.setLineDash&&r.lineDash&&(i=Ed(e),C=i[0],P=i[1]);var S=!0;(p||f&Un)&&(c.setDPR(t.dpr),u?c.setContext(null):(c.setContext(t),S=!1),c.reset(),e.buildPath(c,e.shape,a),c.toStatic(),e.pathUpdated()),S&&c.rebuildPath(t,u?l:1),C&&(t.setLineDash(C),t.lineDashOffset=P),a?(n.batchFill=s,n.batchStroke=o):r.strokeFirst?(o&&g_(t,r),s&&v_(t,r)):(s&&v_(t,r),o&&g_(t,r)),C&&t.setLineDash([])}function dO(t,e,r){var a=e.__image=tc(r.image,e.__image,e,e.onload);if(!(!a||!Us(a))){var n=r.x||0,i=r.y||0,o=e.getWidth(),s=e.getHeight(),l=a.width/a.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=a.width,s=a.height),r.sWidth&&r.sHeight){var u=r.sx||0,p=r.sy||0;t.drawImage(a,u,p,r.sWidth,r.sHeight,n,i,o,s)}else if(r.sx&&r.sy){var u=r.sx,p=r.sy,c=o-u,f=s-p;t.drawImage(a,u,p,c,f,n,i,o,s)}else t.drawImage(a,n,i,o,s)}}function vO(t,e,r){var a,n=r.text;if(n!=null&&(n+=""),n){t.font=r.font||Nr,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var i=void 0,o=void 0;t.setLineDash&&r.lineDash&&(a=Ed(e),i=a[0],o=a[1]),i&&(t.setLineDash(i),t.lineDashOffset=o),r.strokeFirst?(ju(r)&&t.strokeText(n,r.x,r.y),Zu(r)&&t.fillText(n,r.x,r.y)):(Zu(r)&&t.fillText(n,r.x,r.y),ju(r)&&t.strokeText(n,r.x,r.y)),i&&t.setLineDash([])}}var y_=["shadowBlur","shadowOffsetX","shadowOffsetY"],b_=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function k_(t,e,r,a,n){var i=!1;if(!a&&(r=r||{},e===r))return!1;if(a||e.opacity!==r.opacity){dt(t,n),i=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?Ha.opacity:o}(a||e.blend!==r.blend)&&(i||(dt(t,n),i=!0),t.globalCompositeOperation=e.blend||Ha.blend);for(var s=0;s<y_.length;s++){var l=y_[s];(a||e[l]!==r[l])&&(i||(dt(t,n),i=!0),t[l]=t.dpr*(e[l]||0))}return(a||e.shadowColor!==r.shadowColor)&&(i||(dt(t,n),i=!0),t.shadowColor=e.shadowColor||Ha.shadowColor),i}function w_(t,e,r,a,n){var i=e.style,o=a?null:r&&r.style||{};if(i===o)return!1;var s=k_(t,i,o,a,n);if((a||i.fill!==o.fill)&&(s||(dt(t,n),s=!0),d_(i.fill)&&(t.fillStyle=i.fill)),(a||i.stroke!==o.stroke)&&(s||(dt(t,n),s=!0),d_(i.stroke)&&(t.strokeStyle=i.stroke)),(a||i.opacity!==o.opacity)&&(s||(dt(t,n),s=!0),t.globalAlpha=i.opacity==null?1:i.opacity),e.hasStroke()){var l=i.lineWidth,u=l/(i.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(dt(t,n),s=!0),t.lineWidth=u)}for(var p=0;p<b_.length;p++){var c=b_[p],f=c[0];(a||i[f]!==o[f])&&(s||(dt(t,n),s=!0),t[f]=i[f]||c[1])}return s}function gO(t,e,r,a,n){return k_(t,e.style,r&&r.style,a,n)}function __(t,e){var r=e.transform,a=t.dpr||1;r?t.setTransform(a*r[0],a*r[1],a*r[2],a*r[3],a*r[4],a*r[5]):t.setTransform(a,0,0,a,0,0)}function mO(t,e,r){for(var a=!1,n=0;n<t.length;n++){var i=t[n];a=a||i.isZeroArea(),__(e,i),e.beginPath(),i.buildPath(e,i.shape),e.clip()}r.allClipped=a}function yO(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||t[4]!==e[4]||t[5]!==e[5]:!(!t&&!e)}var x_=1,P_=2,S_=3,T_=4;function bO(t){var e=Zu(t),r=ju(t);return!(t.lineDash||!(+e^+r)||e&&typeof t.fill!="string"||r&&typeof t.stroke!="string"||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function dt(t,e){e.batchFill&&(e.batchFill=!1,t.fill()),e.batchStroke&&(e.batchStroke=!1,t.stroke())}function kO(t,e){var r={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};Id(t,e,r),Od(t,r)}function Id(t,e,r){var a=e.transform;if(!e.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){e.__dirty&=~tr,e.__isRendered=!1;return}var n=e.__clipPaths,i=r.prevElClipPaths,o=e.style,s=!1,l=!1;if((!i||pO(n,i))&&(i&&(dt(t,r),t.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),n&&n.length&&(dt(t,r),t.save(),mO(n,t,r),s=!0,r.prevElClipPaths=n)),r.allClipped){e.__dirty&=~tr,e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(r.beforeBrushParam),e.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var p=e instanceof me&&e.autoBatch&&bO(o);s||yO(a,u.transform)?(dt(t,r),__(t,e)):p||dt(t,r),e instanceof me?(r.lastDrawType!==x_&&(l=!0,r.lastDrawType=x_),w_(t,e,u,l,r),(!p||!r.batchFill&&!r.batchStroke)&&t.beginPath(),hO(t,e,o,p,r)):e instanceof co?(r.lastDrawType!==S_&&(l=!0,r.lastDrawType=S_),w_(t,e,u,l,r),vO(t,e,o)):e instanceof Bt?(r.lastDrawType!==P_&&(l=!0,r.lastDrawType=P_),gO(t,e,u,l,r),dO(t,e,o)):e.getTemporalDisplayables&&(r.lastDrawType!==T_&&(l=!0,r.lastDrawType=T_),wO(t,e,r)),e.innerAfterBrush(),e.afterBrush&&(p&&dt(t,r),e.afterBrush()),r.prevEl=e,e.__dirty=0,e.__isRendered=!0}function Od(t,e){dt(t,e),e.prevElClipPaths&&t.restore()}function wO(t,e,r){var a=e.getDisplayables(),n=e.getTemporalDisplayables();t.save();var i={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover,beforeBrushParam:{}},o,s;for(o=e.getCursor(),s=a.length;o<s;o++){var l=a[o];l.beforeBrush&&l.beforeBrush(r.beforeBrushParam),l.innerBeforeBrush(),Id(t,l,i),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}Od(t,i);for(var u=0,p=n.length;u<p;u++){var l=n[u];l.beforeBrush&&l.beforeBrush(r.beforeBrushParam),l.innerBeforeBrush(),Id(t,l,i),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}Od(t,i),e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var Rd=new sO,C_=new En(100),D_=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Bd(t,e){if(t==="none")return null;var r=e.getDevicePixelRatio(),a=e.getZr(),n=a.painter.type==="svg";t.dirty&&Rd.delete(t);var i=Rd.get(t);if(i)return i;var o=pe(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=n?1:1/r,Rd.set(t,s),t.dirty=!1,s;function l(u){for(var p=[r],c=!0,f=0;f<D_.length;++f){var h=o[D_[f]];if(h!=null&&!W(h)&&!q(h)&&!be(h)&&typeof h!="boolean"){c=!1;break}p.push(h)}var d;if(c){d=p.join(",")+(n?"-svg":"");var v=C_.get(d);v&&(n?u.svgElement=v:u.image=v)}var m=L_(o.dashArrayX),g=_O(o.dashArrayY),y=A_(o.symbol),b=xO(m),k=M_(g),w=!n&&yr.createCanvas(),_=n&&{tag:"g",attrs:{},key:"dcl",children:[]},x=C(),T;w&&(w.width=x.width*r,w.height=x.height*r,T=w.getContext("2d")),P(),c&&C_.put(d,w||_),u.image=w,u.svgElement=_,u.svgWidth=x.width,u.svgHeight=x.height;function C(){for(var S=1,L=0,D=b.length;L<D;++L)S=Oy(S,b[L]);for(var M=1,L=0,D=y.length;L<D;++L)M=Oy(M,y[L].length);S*=M;var I=k*b.length*y.length;return{width:Math.max(1,Math.min(S,o.maxTileWidth)),height:Math.max(1,Math.min(I,o.maxTileHeight))}}function P(){T&&(T.clearRect(0,0,w.width,w.height),o.backgroundColor&&(T.fillStyle=o.backgroundColor,T.fillRect(0,0,w.width,w.height)));for(var S=0,L=0;L<g.length;++L)S+=g[L];if(S<=0)return;for(var D=-k,M=0,I=0,E=0;D<x.height;){if(M%2===0){for(var O=I/2%y.length,R=0,B=0,N=0;R<x.width*2;){for(var F=0,L=0;L<m[E].length;++L)F+=m[E][L];if(F<=0)break;if(B%2===0){var U=(1-o.symbolSize)*.5,Y=R+m[E][B]*U,z=D+g[M]*U,j=m[E][B]*o.symbolSize,ne=g[M]*o.symbolSize,De=N/2%y[O].length;Ee(Y,z,j,ne,y[O][De])}R+=m[E][B],++N,++B,B===m[E].length&&(B=0)}++E,E===m.length&&(E=0)}D+=g[M],++I,++M,M===g.length&&(M=0)}function Ee(de,Ce,te,ue,_t){var Fe=n?1:r,fr=Ir(_t,de*Fe,Ce*Fe,te*Fe,ue*Fe,o.color,o.symbolKeepAspect);if(n){var xt=a.painter.renderOneToVNode(fr);xt&&_.children.push(xt)}else kO(T,fr)}}}}function A_(t){if(!t||t.length===0)return[["rect"]];if(q(t))return[[t]];for(var e=!0,r=0;r<t.length;++r)if(!q(t[r])){e=!1;break}if(e)return A_([t]);for(var a=[],r=0;r<t.length;++r)q(t[r])?a.push([t[r]]):a.push(t[r]);return a}function L_(t){if(!t||t.length===0)return[[0,0]];if(be(t)){var e=Math.ceil(t);return[[e,e]]}for(var r=!0,a=0;a<t.length;++a)if(!be(t[a])){r=!1;break}if(r)return L_([t]);for(var n=[],a=0;a<t.length;++a)if(be(t[a])){var e=Math.ceil(t[a]);n.push([e,e])}else{var e=K(t[a],function(s){return Math.ceil(s)});e.length%2===1?n.push(e.concat(e)):n.push(e)}return n}function _O(t){if(!t||typeof t=="object"&&t.length===0)return[0,0];if(be(t)){var e=Math.ceil(t);return[e,e]}var r=K(t,function(a){return Math.ceil(a)});return t.length%2?r.concat(r):r}function xO(t){return K(t,function(e){return M_(e)})}function M_(t){for(var e=0,r=0;r<t.length;++r)e+=t[r];return t.length%2===1?e*2:e}var PO=vf(SO);function SO(t,e){t.eachRawSeries(function(r){if(!t.isSeriesFiltered(r)){var a=r.getData();a.hasItemVisual()&&a.each(function(o){var s=a.getItemVisual(o,"decal");if(s){var l=a.ensureUniqueItemVisual(o,"style");l.decal=Bd(s,e)}});var n=a.getVisual("decal");if(n){var i=a.getVisual("style");i.decal=Bd(n,e)}}})}var TO=1,CO=800,DO=900,AO=920,LO=1e3,MO=2e3,E_=5e3,I_=1e3,EO=1100,Nd=2e3,O_=3e3,IO=4e3,Qu=4500,OO=4600,RO=5e3,BO=6e3,R_=7e3,NO={PROCESSOR:{SERIES_FILTER:CO,AXIS_STATISTICS:AO,FILTER:LO,STATISTIC:E_,STATISTICS:E_},VISUAL:{LAYOUT:I_,PROGRESSIVE_LAYOUT:EO,GLOBAL:Nd,CHART:O_,POST_CHART_LAYOUT:OO,COMPONENT:IO,BRUSH:RO,CHART_ITEM:Qu,ARIA:BO,DECAL:R_}},Ue="__flagInMainProcess",Ju="__mainProcessVersion",Ke="__pendingUpdate",Fd="__needsUpdateStatus",B_=/^[a-zA-Z0-9_]+$/,zd="__connectUpdateStatus",N_=0,FO=1,zO=2;function F_(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(this.isDisposed()){this.id;return}return H_(this,t,e)}}function z_(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return H_(this,t,e)}}function H_(t,e,r){return r[0]=r[0]&&r[0].toLowerCase(),zr.prototype[e].apply(t,r)}var V_=(function(t){V(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(zr),U_=V_.prototype;U_.on=z_("on"),U_.off=z_("off");var mn,Hd,ep,Qr,tp,Vd,Ud,_i,xi,G_,W_,Gd,$_,rp,Y_,K_,jt,X_,Pi,q_=(function(t){V(e,t);function e(r,a,n){var i=t.call(this,new QI)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],n=n||{},i.__v_skip=!0,i._dom=r;var o="canvas",s="auto",l=!1;i[Ju]=1,n.ssr&&vI(function(f){var h=ce(f),d=h.dataIndex;if(d!=null){var v=ae();return v.set("series_index",h.seriesIndex),v.set("data_index",d),h.ssrType&&v.set("ssr_type",h.ssrType),v}});var u=i._zr=Nw(r,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:Z(n.useDirtyRect,l),useCoarsePointer:Z(n.useCoarsePointer,s),pointerSize:n.pointerSize});i._ssr=n.ssr,i._throttledZrFlush=nd(ge(u.flush,u),17),i._updateTheme(a),i._locale=SL(n.locale||Fb),i._coordSysMgr=new sh;var p=i._api=Y_(i);function c(f,h){return f.__prio-h.__prio}return Gu(np,c),Gu(Kd,c),i._scheduler=new a_(i,p,Kd,np),i._messageCenter=new V_,i._initEvents(),i.resize=ge(i.resize,i),u.animation.on("frame",i._onframe,i),G_(u,i),W_(u,i),Fs(i),i}return e.prototype._onframe=function(){if(!this._disposed){var r=this._scheduler,a=this._model,n=this._api;if(X_(this),this[Ke]){var i=this[Ke].silent;this[Ue]=!0,Pi(this);try{mn(this),Qr.update.call(this,null,this[Ke].updateParams)}catch(l){throw this[Ue]=!1,this[Ke]=null,l}this._zr.flush(),this[Ue]=!1,this[Ke]=null,_i.call(this,i),xi.call(this,i)}else if(r.unfinished){var o=TO;do{r.unfinished=!1;var s=yr.getTime();r.performSeriesTasks(a),r.performDataProcessorTasks(a),Vd(this,a),r.performVisualTasks(a),rp(this,this._model,n,"remain",{}),o-=yr.getTime()-s}while(o>0&&r.unfinished);r.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(r,a,n){if(!this[Ue]){if(this._disposed){this.id;return}var i,o,s;if(J(a)&&(n=a.lazyUpdate,i=a.silent,o=a.replaceMerge,s=a.transition,a=a.notMerge),this[Ue]=!0,Pi(this),!this._model||a){var l=new xI(this._api),u=this._theme,p=this._model=new Dd;p.scheduler=this._scheduler,p.ssr=this._ssr,p.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},Xd);var c={seriesTransition:s,optionChanged:!0};if(n)this[Ke]={silent:i,updateParams:c},this[Ue]=!1,this.getZr().wakeUp();else{try{mn(this),Qr.update.call(this,null,c)}catch(f){throw this[Ke]=null,this[Ue]=!1,f}this._ssr||this._zr.flush(),this[Ke]=null,this[Ue]=!1,_i.call(this,i),xi.call(this,i)}}},e.prototype.setTheme=function(r,a){if(!this[Ue]){if(this._disposed){this.id;return}var n=this._model;if(n){var i=a&&a.silent,o=null;this[Ke]&&(i==null&&(i=this[Ke].silent),o=this[Ke].updateParams,this[Ke]=null),this[Ue]=!0,Pi(this);try{this._updateTheme(r),n.setTheme(this._theme),mn(this),Qr.update.call(this,{type:"setTheme"},o)}catch(s){throw this[Ue]=!1,s}this[Ue]=!1,_i.call(this,i),xi.call(this,i)}}},e.prototype._updateTheme=function(r){q(r)&&(r=j_[r]),r&&(r=le(r),r&&Qw(r,!0),this._theme=r)},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||se.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},e.prototype.renderToCanvas=function(r){r=r||{};var a=this._zr.painter;return a.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(r){r=r||{};var a=this._zr.painter;return a.renderToString({useViewBox:r.useViewBox})},e.prototype.getSvgDataURL=function(){var r=this._zr,a=r.storage.getDisplayList();return A(a,function(n){n.stopAnimation(null,!0)}),r.painter.toDataURL()},e.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var a=r.excludeComponents,n=this._model,i=[],o=this;A(a,function(l){n.eachComponent({mainType:l},function(u){var p=o._componentsMap[u.__viewId];p.group.ignore||(i.push(p),p.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return A(i,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var a=r.type==="svg",n=this.group,i=Math.min,o=Math.max,s=1/0;if(Z_[n]){var l=s,u=s,p=-s,c=-s,f=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();A(is,function(b,k){if(b.group===n){var w=a?b.getZr().painter.getSvgDom().innerHTML:b.renderToCanvas(le(r)),_=b.getDom().getBoundingClientRect();l=i(_.left,l),u=i(_.top,u),p=o(_.right,p),c=o(_.bottom,c),f.push({dom:w,left:_.left,top:_.top})}}),l*=h,u*=h,p*=h,c*=h;var d=p-l,v=c-u,m=yr.createCanvas(),g=Nw(m,{renderer:a?"svg":"canvas"});if(g.resize({width:d,height:v}),a){var y="";return A(f,function(b){var k=b.left-l,w=b.top-u;y+='<g transform="translate('+k+","+w+')">'+b.dom+"</g>"}),g.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&g.painter.setBackgroundColor(r.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return r.connectedBackgroundColor&&g.add(new Ie({shape:{x:0,y:0,width:d,height:v},style:{fill:r.connectedBackgroundColor}})),A(f,function(b){var k=new Bt({style:{x:b.left*h-l,y:b.top*h-u,image:b.dom}});g.add(k)}),g.refreshImmediately(),m.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},e.prototype.convertToPixel=function(r,a,n){return tp(this,"convertToPixel",r,a,n)},e.prototype.convertToLayout=function(r,a,n){return tp(this,"convertToLayout",r,a,n)},e.prototype.convertFromPixel=function(r,a,n){return tp(this,"convertFromPixel",r,a,n)},e.prototype.containPixel=function(r,a){if(this._disposed){this.id;return}var n=this._model,i,o=pf(n,r);return A(o,function(s,l){l.indexOf("Models")>=0&&A(s,function(u){var p=u.coordinateSystem;if(p&&p.containPoint)i=i||!!p.containPoint(a);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(i=i||c.containPoint(a,u))}},this)},this),!!i},e.prototype.getVisual=function(r,a){var n=this._model,i=pf(n,r,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?tO(s,l,a):rO(s,a)},e.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},e.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},e.prototype._initEvents=function(){var r=this;A(HO,function(n){var i=function(o){var s=r.getModel(),l=o.target,u,p=n==="globalout";if(p?u={}:l&&ns(l,function(v){var m=ce(v);if(m&&m.dataIndex!=null){var g=m.dataModel||s.getSeriesByIndex(m.seriesIndex);return u=g&&g.getDataParams(m.dataIndex,m.dataType,l)||{},!0}else if(m.eventData)return u=H({},m.eventData),!0},!0),u){var c=u.componentType,f=u.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=u.seriesIndex);var h=c&&f!=null&&s.getComponent(c,f),d=h&&r[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];u.event=o,u.type=n,r._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:h,view:d},r.trigger(n,u)}};i.zrEventfulCallAtLast=!0,r._zr.on(n,i,r)});var a=this._messageCenter;A(Yd,function(n,i){a.on(i,function(o){r.trigger(i,o)})}),P4(a,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&Hy(this.getDom(),jd,"");var a=this,n=a._api,i=a._model;A(a._componentsViews,function(o){o.dispose(i,n)}),A(a._chartsViews,function(o){o.dispose(i,n)}),a._zr.dispose(),a._dom=a._model=a._chartsMap=a._componentsMap=a._chartsViews=a._componentsViews=a._scheduler=a._api=a._zr=a._throttledZrFlush=a._theme=a._coordSysMgr=a._messageCenter=null,delete is[a.id]},e.prototype.resize=function(r){if(!this[Ue]){if(this._disposed){this.id;return}this._zr.resize(r);var a=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!a){var n=a.resetOption("media"),i=r&&r.silent;this[Ke]&&(i==null&&(i=this[Ke].silent),n=!0,this[Ke]=null),this[Ue]=!0,Pi(this);try{n&&mn(this),Qr.update.call(this,{type:"resize",animation:H({duration:0},r&&r.animation)})}catch(o){throw this[Ue]=!1,o}this[Ue]=!1,_i.call(this,i),xi.call(this,i)}}},e.prototype.showLoading=function(r,a){if(this._disposed){this.id;return}if(J(r)&&(a=r,r=""),r=r||"default",this.hideLoading(),!!qd[r]){var n=qd[r](this._api,a),i=this._zr;this._loadingFX=n,i.add(n)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(r){var a=H({},r);return a.type=$d[r.type],a},e.prototype.dispatchAction=function(r,a){if(this._disposed){this.id;return}if(J(a)||(a={silent:!!a}),!!ap[r.type]&&this._model){if(this[Ue]){this._pendingActions.push(r);return}var n=a.silent;Ud.call(this,r,n);var i=a.flush;i?this._zr.flush():i!==!1&&se.browser.weChat&&this._throttledZrFlush(),_i.call(this,n),xi.call(this,n)}},e.prototype.updateLabelLayout=function(){qt.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(r){if(this._disposed){this.id;return}var a=r.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(a);i.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=(function(){mn=function(c){Y5(c._model);var f=c._scheduler;f.restorePipelines(c._zr,c._model),f.prepareStageTasks(),Hd(c,!0),Hd(c,!1),f.plan()},Hd=function(c,f){for(var h=c._model,d=c._scheduler,v=f?c._componentsViews:c._chartsViews,m=f?c._componentsMap:c._chartsMap,g=c._zr,y=c._api,b=0;b<v.length;b++)v[b].__alive=!1;f?h.eachComponent(function(_,x){_!=="series"&&k(x)}):h.eachSeries(k);function k(_){var x=_.__requireNewView;_.__requireNewView=!1;var T="_ec_"+_.id+"_"+_.type,C=!x&&m[T];if(!C){var P=kr(_.type),S=f?Dt.getClass(P.main,P.sub):at.getClass(P.sub);C=new S,C.init(h,y),m[T]=C,v.push(C),g.add(C.group)}_.__viewId=C.__id=T,C.__alive=!0,C.__model=_,C.group.__ecComponentInfo={mainType:_.mainType,index:_.componentIndex},!f&&d.prepareView(C,_,h,y)}for(var b=0;b<v.length;){var w=v[b];w.__alive?b++:(!f&&w.renderTask.dispose(),g.remove(w.group),w.dispose(h,y),v.splice(b,1),m[w.__id]===w&&delete m[w.__id],w.__id=w.group.__ecComponentInfo=null)}},ep=function(c,f,h,d,v){var m=c._model;if(m.setUpdatePayload(h),!d){A([].concat(c._componentsViews).concat(c._chartsViews),k);return}var g=WD(h,d,v),y=h.excludeSeriesId,b;y!=null&&(b=ae(),A(ut(y),function(w){var _=Ar(w,null);_!=null&&b.set(_,!0)})),m&&m.eachComponent(g,function(w){var _=b&&b.get(w.id)!=null;if(!_)if(v0(h))if(w instanceof ft)h.type===Ja&&!h.notBlur&&!w.get(["emphasis","disabled"])&&cA(w,h,c._api);else{var x=Sf(w.mainType,w.componentIndex,h.name,c._api),T=x.focusSelf,C=x.dispatchers;h.type===Ja&&T&&!h.notBlur&&Pf(w.mainType,w.componentIndex,c._api),C&&A(C,function(P){h.type===Ja?Ll(P):Ml(P)})}else Df(h)&&w instanceof ft&&(dA(w,h,c._api),f0(w),jt(c))},c),m&&m.eachComponent(g,function(w){var _=b&&b.get(w.id)!=null;_||k(c[d==="series"?"_chartsMap":"_componentsMap"][w.__viewId])},c);function k(w){w&&w.__alive&&w[f]&&w[f](w.__model,m,c._api,h)}},Qr={prepareAndUpdate:function(c){mn(this),Qr.update.call(this,c,c&&{optionChanged:c.newOption!=null})},update:function(c,f){var h=this._model,d=this._api,v=this._zr,m=this._coordSysMgr,g=this._scheduler;if(h){K5(h),h.setUpdatePayload(c),g.restoreData(h,c),g.performSeriesTasks(h),m.create(h,d),qt.trigger("coordsys:aftercreate",h,d),g.performDataProcessorTasks(h,c),Vd(this,h),m.update(h,d),a(h),g.performVisualTasks(h,c);var y=h.get("backgroundColor")||"transparent";v.setBackgroundColor(y);var b=h.get("darkMode");b!=null&&b!=="auto"&&v.setDarkMode(b),Gd(this,h,d,c,f),qt.trigger("afterupdate",h,d)}},updateTransform:function(c){var f=this,h=f._model,d=f._api;if(h){h.setUpdatePayload(c);var v=[];h.eachComponent(function(g,y){if(g!==Ky){var b=f.getViewOfComponentModel(y);if(b&&b.__alive)if(b.updateTransform){var k=b.updateTransform(y,h,d,c);k&&k.update&&v.push(b)}else v.push(b)}});var m=ae();h.eachSeries(function(g){var y=f._chartsMap[g.__viewId],b=g.pipelineContext;if(y.updateTransform&&!b.progressiveRender){var k=y.updateTransform(g,h,d,c);k&&k.update&&m.set(g.uid,1)}else m.set(g.uid,1)}),f._scheduler.performVisualTasks(h,c,{setDirty:!0,dirtyMap:m}),rp(f,h,d,c,{},m),qt.trigger("afterupdate",h,d)}},updateView:function(c){var f=this._model;f&&(f.setUpdatePayload(c),at.markUpdateMethod(c,"updateView"),a(f),this._scheduler.performVisualTasks(f,c,{setDirty:!0}),Gd(this,f,this._api,c,{}),qt.trigger("afterupdate",f,this._api))},updateVisual:function(c){var f=this,h=this._model;h&&(h.setUpdatePayload(c),h.eachSeries(function(d){d.getData().clearAllVisual()}),at.markUpdateMethod(c,"updateVisual"),a(h),this._scheduler.performVisualTasks(h,c,{visualType:"visual",setDirty:!0}),h.eachComponent(function(d,v){if(d!=="series"){var m=f.getViewOfComponentModel(v);m&&m.__alive&&m.updateVisual(v,h,f._api,c)}}),h.eachSeries(function(d){var v=f._chartsMap[d.__viewId];v.updateVisual(d,h,f._api,c)}),qt.trigger("afterupdate",h,this._api))},updateLayout:function(c){Qr.update.call(this,c)}};function r(c,f,h,d,v){if(c._disposed){c.id;return}for(var m=c._model,g=c._coordSysMgr.getCoordinateSystems(),y,b=pf(m,h),k=0;k<g.length;k++){var w=g[k];if(w[f]&&(y=w[f](m,b,d,v))!=null)return y}}tp=r,Vd=function(c,f){var h=c._chartsMap,d=c._scheduler;f.eachSeries(function(v){d.updateStreamModes(v,h[v.__viewId])})},Ud=function(c,f){var h=this,d=this.getModel(),v=c.type,m=c.escapeConnect,g=ap[v],y=(g.update||"update").split(":"),b=y.pop(),k=y[0]!=null&&kr(y[0]);this[Ue]=!0,Pi(this);var w=[c],_=!1;c.batch&&(_=!0,w=K(c.batch,function(E){return E=pe(H({},E),c),E.batch=null,E}));var x=[],T,C=[],P=g.nonRefinedEventType,S=Df(c),L=v0(c);if(L&&c0(this._api),A(w,function(E){var O=g.action(E,d,h._api);if(g.refineEvent?C.push(O):T=O,T=T||H({},E),T.type=P,x.push(T),L){var R=cf(c),B=R.queryOptionMap,N=R.mainTypeSpecified,F=N?B.keys()[0]:"series";ep(h,b,E,F),jt(h)}else S?(ep(h,b,E,"series"),jt(h)):k&&ep(h,b,E,k.main,k.sub)}),b!=="none"&&!L&&!S&&!k)try{this[Ke]?(mn(this),Qr.update.call(this,c),this[Ke]=null):Qr[b].call(this,c)}catch(E){throw this[Ue]=!1,E}if(_?T={type:P,escapeConnect:m,batch:x}:T=x[0],this[Ue]=!1,!f){var D=void 0;if(g.refineEvent){var M=g.refineEvent(C,c,d,this._api).eventContent;Jt(J(M)),D=pe({type:g.refinedEventType},M),D.fromAction=c.type,D.fromActionPayload=c,D.escapeConnect=!0}var I=this._messageCenter;I.trigger(T.type,T),D&&I.trigger(D.type,D)}},_i=function(c){for(var f=this._pendingActions;f.length;){var h=f.shift();Ud.call(this,h,c)}},xi=function(c){!c&&this.trigger("updated")},G_=function(c,f){c.on("rendered",function(h){f.trigger("rendered",h),c.animation.isFinished()&&!f[Ke]&&!f._scheduler.unfinished&&!f._pendingActions.length?f.trigger("finished"):c.refresh()})},W_=function(c,f){c.on("mouseover",function(h){var d=h.target,v=ns(d,Cf);v&&(fA(v,h,f._api),jt(f))}).on("mouseout",function(h){var d=h.target,v=ns(d,Cf);v&&(hA(v,h,f._api),jt(f))}).on("click",function(h){var d=h.target,v=ns(d,function(y){return ce(y).dataIndex!=null},!0);if(v){var m=v.selected?"unselect":"select",g=ce(v);f._api.dispatchAction({type:m,dataType:g.dataType,dataIndexInside:g.dataIndex,seriesIndex:g.seriesIndex,isFromClick:!0})}})};function a(c){c.clearColorPalette(),c.eachSeries(function(f){f.clearColorPalette()})}function n(c){var f=[],h=[],d=!1;if(c.eachComponent(function(y,b){var k=b.get("zlevel")||0,w=b.get("z")||0,_=b.getZLevelKey();d=d||!!_,(y==="series"?h:f).push({zlevel:k,z:w,idx:b.componentIndex,type:y,key:_})}),d){var v=f.concat(h),m,g;Gu(v,function(y,b){return y.zlevel===b.zlevel?y.z-b.z:y.zlevel-b.zlevel}),A(v,function(y){var b=c.getComponent(y.type,y.idx),k=y.zlevel,w=y.key;m!=null&&(k=Math.max(m,k)),w?(k===m&&w!==g&&k++,g=w):g&&(k===m&&k++,g=""),m=k,b.setZLevel(k)})}}Gd=function(c,f,h,d,v){n(f),$_(c,f,h,d,v),A(c._chartsViews,function(m){m.__alive=!1}),rp(c,f,h,d,v),A(c._chartsViews,function(m){m.__alive||m.remove(f,h)})},$_=function(c,f,h,d,v,m){A(m||c._componentsViews,function(g){var y=g.__model;u(y,g),g.render(y,f,h,d),l(y,g),p(y,g)})},rp=function(c,f,h,d,v,m){var g=c._scheduler;v=H(v||{},{updatedSeries:f.getSeries()}),qt.trigger("series:beforeupdate",f,h,v);var y=!1;f.eachSeries(function(b){var k=c._chartsMap[b.__viewId];k.__alive=!0;var w=k.renderTask;g.updatePayload(w,d),u(b,k),m&&m.get(b.uid)&&w.dirty(),w.perform(g.getPerformArgs(w))&&(y=!0),k.group.silent=!!b.get("silent"),s(b,k),f0(b)}),g.unfinished=y||g.unfinished,qt.trigger("series:layoutlabels",f,h,v),qt.trigger("series:transition",f,h,v),f.eachSeries(function(b){var k=c._chartsMap[b.__viewId];l(b,k),p(b,k)}),o(c,f),qt.trigger("series:afterupdate",f,h,v)},jt=function(c){c[Fd]=!0,c.getZr().wakeUp()},Pi=function(c){c[Ju]=(c[Ju]+1)%1e6},X_=function(c){c[Fd]&&(c.getZr().storage.traverse(function(f){xo(f)||i(f)}),c[Fd]=!1)};function i(c){for(var f=[],h=c.currentStates,d=0;d<h.length;d++){var v=h[d];v==="emphasis"||v==="blur"||v==="select"||f.push(v)}c.selected&&c.states.select&&f.push("select"),c.hoverState===Pl&&c.states.emphasis?f.push("emphasis"):c.hoverState===xl&&c.states.blur&&f.push("blur"),c.useStates(f)}function o(c,f){var h=c._zr;if(h.painter.type==="canvas"){var d=h.storage,v=0;d.traverse(function(g){g.isGroup||v++});var m=v>Z(f.get("hoverLayerThreshold"),Hw.hoverLayerThreshold)&&!se.node&&!se.worker;(c._usingTHL||m)&&(f.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=c._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(b){var k=b.states.emphasis;k&&k.hoverLayer!==Nf&&(k.hoverLayer=m?I0:E0)})}}),c._usingTHL=m)}}function s(c,f){var h=c.get("blendMode")||null;f.eachRendered(function(d){d.isGroup||(d.style.blend=h)})}function l(c,f){if(!c.preventAutoZ){var h=V0(c);f.eachRendered(function(d){return U0(d,h.z,h.zlevel),!0})}}function u(c,f){f.eachRendered(function(h){if(!xo(h)){var d=h.getTextContent(),v=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function p(c,f){var h=c.getModel("stateAnimation"),d=c.isAnimationEnabled(),v=h.get("duration"),m=v>0?{duration:v,delay:h.get("delay"),easing:h.get("easing")}:null;f.eachRendered(function(g){if(g.states&&g.states.emphasis){if(xo(g))return;if(g instanceof me&&kA(g),g.__dirty){var y=g.prevStates;y&&g.useStates(y)}if(d){g.stateTransition=m;var b=g.getTextContent(),k=g.getTextGuideLine();b&&(b.stateTransition=m),k&&(k.stateTransition=m)}g.__dirty&&i(g)}})}Y_=function(c){return new((function(f){V(h,f);function h(){return f!==null&&f.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(d){for(;d;){var v=d.__ecComponentInfo;if(v!=null)return c._model.getComponent(v.mainType,v.index);d=d.parent}},h.prototype.enterEmphasis=function(d,v){Ll(d,v),jt(c)},h.prototype.leaveEmphasis=function(d,v){Ml(d,v),jt(c)},h.prototype.enterBlur=function(d){pA(d),jt(c)},h.prototype.leaveBlur=function(d){s0(d),jt(c)},h.prototype.enterSelect=function(d){l0(d),jt(c)},h.prototype.leaveSelect=function(d){u0(d),jt(c)},h.prototype.getModel=function(){return c.getModel()},h.prototype.getViewOfComponentModel=function(d){return c.getViewOfComponentModel(d)},h.prototype.getViewOfSeriesModel=function(d){return c.getViewOfSeriesModel(d)},h.prototype.getECUpdateCycleVersion=function(){return c[Ju]},h.prototype.usingTHL=function(){return c._usingTHL},h})(jy))(c)},K_=function(c){function f(h,d){for(var v=0;v<h.length;v++){var m=h[v];m[zd]=d}}A($d,function(h,d){c._messageCenter.on(d,function(v){if(Z_[c.group]&&c[zd]!==N_){if(v&&v.escapeConnect)return;var m=c.makeActionFromEvent(v),g=[];A(is,function(y){y!==c&&y.group===c.group&&g.push(y)}),f(g,N_),A(g,function(y){y[zd]!==FO&&y.dispatchAction(m)}),f(g,zO)}})})}})(),e})(zr),Wd=q_.prototype;Wd.on=F_("on"),Wd.off=F_("off"),Wd.one=function(t,e,r){var a=this;function n(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];e&&e.apply&&e.apply(this,i),a.off(t,n)}this.on.call(this,t,n,r)};var HO=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function EF(t){}var ap={},$d={},Yd={},Kd=[],Xd=[],np=[],j_={},qd={},is={},Z_={},VO=+new Date-0,jd="_echarts_instance_";function UO(t,e,r){var a=!(r&&r.ssr);if(a){var n=GO(t);if(n)return n}var i=new q_(t,e,r);return i.id="ec_"+VO++,is[i.id]=i,a&&Hy(t,jd,i.id),K_(i),qt.trigger("afterinit",i),i}function GO(t){return is[$D(t,jd)]}function Q_(t,e){j_[t]=e}function J_(t){fe(Xd,t)<0&&Xd.push(t)}function ex(t,e){Qd(Kd,t,e,MO)}function WO(t){Zd("afterinit",t)}function $O(t){Zd("afterupdate",t)}function Zd(t,e){qt.on(t,e)}function Si(t,e,r){var a,n,i,o,s;re(e)&&(r=e,e=""),J(t)?(a=t.type,n=t.event,o=t.update,s=t.publishNonRefinedEvent,r||(r=t.action),i=t.refineEvent):(a=t,n=e);function l(p){return p.toLowerCase()}n=l(n||a);var u=i?l(a):n;ap[a]||(Jt(B_.test(a)&&B_.test(n)),i&&Jt(n!==a),ap[a]={actionType:a,refinedEventType:n,nonRefinedEventType:u,update:o,action:r,refineEvent:i},Yd[n]=1,i&&s&&(Yd[u]=1),$d[u]=a)}function YO(t,e){sh.register(t,e)}function KO(t,e){Qd(np,t,e,I_,"layout")}function yn(t,e){Qd(np,t,e,O_,"visual")}var tx=[];function Qd(t,e,r,a,n,i){if((re(e)||J(e))&&(r=e,e=a),!(fe(tx,r)>=0)){tx.push(r);var o=a_.wrapStageHandler(r,n);o.__prio=e,o.__raw=r,t.push(o)}}function rx(t,e){qd[t]=e}function XO(t,e,r){var a=nO("registerMap");a&&a(t,e,r)}var qO=nM;yn(Nd,zI),yn(Qu,HI),yn(Qu,VI),yn(Nd,JI),yn(Qu,eO),yn(R_,PO),J_(Qw),ex(DO,RI),rx("default",UI),Si({type:Ja,event:Ja,update:Ja},qe),Si({type:Tl,event:Tl,update:Tl},qe),Si({type:Cl,event:kf,update:Cl,action:qe,refineEvent:Jd,publishNonRefinedEvent:!0}),Si({type:bf,event:kf,update:bf,action:qe,refineEvent:Jd,publishNonRefinedEvent:!0}),Si({type:Dl,event:kf,update:Dl,action:qe,refineEvent:Jd,publishNonRefinedEvent:!0});function Jd(t,e,r,a){return{eventContent:{selected:vA(r),isFromClick:e.isFromClick||!1}}}Q_("default",{}),Q_("dark",u_);var ax=[],jO={registerPreprocessor:J_,registerProcessor:ex,registerPostInit:WO,registerPostUpdate:$O,registerUpdateLifecycle:Zd,registerAction:Si,registerCoordinateSystem:YO,registerLayout:KO,registerVisual:yn,registerTransform:qO,registerLoading:rx,registerMap:XO,registerImpl:aO,PRIORITY:NO,ComponentModel:ke,ComponentView:Dt,SeriesModel:ft,ChartView:at,registerComponentModel:function(t){ke.registerClass(t)},registerComponentView:function(t){Dt.registerClass(t)},registerSeriesModel:function(t){ft.registerClass(t)},registerChartView:function(t){at.registerClass(t)},registerCustomSeries:function(t,e){},registerSubTypeDefaulter:function(t,e){ke.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){hI(t,e)}};function cr(t){if(W(t)){A(t,function(e){cr(e)});return}fe(ax,t)>=0||(ax.push(t),re(t)&&(t={install:t}),t.install(jO))}var ZO=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r,a){return Jl(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(r,a,n){return n.point(a.getItemLayout(r))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:$.color.primary}},universalTransition:{divideShape:"clone"}},e})(ft),nx=4,QO=(function(){function t(){}return t})(),JO=(function(t){V(e,t);function e(r){var a=t.call(this,r)||this;return a._off=0,a.hoverDataIdx=-1,a}return e.prototype.getDefaultShape=function(){return new QO},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.beforeBrush=function(r){r&&!r.contentRetained&&this.reset()},e.prototype.buildPath=function(r,a){var n=a.points,i=a.size,o=this.symbolProxy,s=o.shape,l=r.getContext?r.getContext():r,u=l&&i[0]<nx,p=this.softClipShape,c;if(u){this._ctx=l;return}for(this._ctx=null,c=this._off;c<n.length;){var f=n[c++],h=n[c++];isNaN(f)||isNaN(h)||p&&!p.contain(f,h)||(s.x=f-i[0]/2,s.y=h-i[1]/2,s.width=i[0],s.height=i[1],o.buildPath(r,s,!0))}this.incremental&&(this._off=c,this.notClear=!0)},e.prototype.afterBrush=function(){var r=this.shape,a=r.points,n=r.size,i=this._ctx,o=this.softClipShape,s;if(i){for(s=this._off;s<a.length;){var l=a[s++],u=a[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||i.fillRect(l-n[0]/2,u-n[1]/2,n[0],n[1])}this.incremental&&(this._off=s,this.notClear=!0)}},e.prototype.findDataIndex=function(r,a){for(var n=this.shape,i=n.points,o=n.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=i.length/2-1;u>=0;u--){var p=u*2,c=i[p]-s/2,f=i[p+1]-l/2;if(r>=c&&a>=f&&r<=c+s&&a<=f+l)return u}return-1},e.prototype.contain=function(r,a){var n=this.transformCoordToLocal(r,a),i=this.getBoundingRect();if(r=n[0],a=n[1],i.contain(r,a)){var o=this.hoverDataIdx=this.findDataIndex(r,a);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var a=this.shape,n=a.points,i=a.size,o=i[0],s=i[1],l=1/0,u=1/0,p=-1/0,c=-1/0,f=0;f<n.length;){var h=n[f++],d=n[f++];l=Math.min(h,l),p=Math.max(h,p),u=Math.min(d,u),c=Math.max(d,c)}r=this._rect=new oe(l-o/2,u-s/2,p-l+o,c-u+s)}return r},e})(me),eR=(function(){function t(){this.group=new Me}return t.prototype.updateData=function(e,r){this._clear(),this._data=e;var a=this._create();a.setShape({points:e.getLayout("points")}),this._setCommon(a,e,r)},t.prototype.updateLayout=function(e){var r=this._data;if(r){var a=r.getLayout("points");this.group.eachChild(function(n){if(n.startIndex!=null){var i=(n.endIndex-n.startIndex)*2,o=n.startIndex*4*2;a=new Float32Array(a.buffer,o,i)}n.setShape("points",a),n.reset(),n.stopAnimation()})}},t.prototype.incrementalPrepareUpdate=function(e){this._clear()},t.prototype.incrementalUpdate=function(e,r,a,n){var i=this._newAdded[0],o=r.getLayout("points"),s=i&&i.shape.points;if(s&&s.length<2e4){var l=s.length,u=new Float32Array(l+o.length);u.set(s),u.set(o,l),i.endIndex=e.end,i.setShape({points:u})}else{this._newAdded=[];var p=this._create();p.startIndex=e.start,p.endIndex=e.end,p.incremental=a,p.setShape({points:o}),this._setCommon(p,r,n)}},t.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},t.prototype._create=function(){var e=new JO({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},t.prototype._setCommon=function(e,r,a){var n=r.hostModel;a=a||{};var i=r.getVisual("symbolSize");e.setShape("size",i instanceof Array?i:[i,i]),e.softClipShape=a.clipShape||null,e.symbolProxy=Ir(r.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<nx;e.useStyle(n.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=r.getVisual("style"),l=s&&s.fill;l&&e.setColor(l);var u=ce(e);u.seriesIndex=n.seriesIndex,e.on("mousemove",function(p){u.dataIndex=null;var c=e.hoverDataIdx;c>=0&&(u.dataIndex=c+(e.startIndex||0))})},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t})(),tR=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,a,n){var i=r.getData(),o=this._updateSymbolDraw(i,r);o.updateData(i,ev(r)),this._finished=!0},e.prototype.incrementalPrepareRender=function(r,a,n){var i=r.getData(),o=this._updateSymbolDraw(i,r);o.incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(r,a,n){this._symbolDraw.incrementalUpdate(r,a.getData(),$y(a),ev(a)),this._finished=r.end===a.getData().count()},e.prototype.updateTransform=function(r,a,n){var i=r.getData();if(this.group.dirty(),this._finished){var o=$h("").reset(r,a,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(ev(r))}else return{update:!0}},e.prototype.eachRendered=function(r){this._symbolDraw&&this._symbolDraw.eachRendered(r)},e.prototype._updateSymbolDraw=function(r,a){var n=this._symbolDraw,i=a.pipelineContext,o=i.large;return(!n||o!==this._isLargeDraw)&&(n&&n.remove(),n=this._symbolDraw=o?new eR:new Sk,this._isLargeDraw=o,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(r,a){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e})(at);function ev(t){return{clipShape:KM(t)}}var ix=(function(){function t(){}return t.prototype.needIncludeZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t})(),tv=(function(t){V(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",zt).models[0]},e.type="cartesian2dAxis",e})(ke);Qt(tv,ix);var ox={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:$.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:$.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:$.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[$.color.backgroundTint,$.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:$.color.neutral00,borderColor:$.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},rR=Pe({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},ox),rv=Pe({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:$.color.axisMinorSplitLine,width:1}}},ox),aR=Pe({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},rv),nR=pe({logBase:10},rv);const sx={category:rR,value:rv,time:aR,log:nR};function lx(t,e,r,a){A(Zk,function(n,i){var o=Pe(Pe({},sx[i],!0),a,!0),s=(function(l){V(u,l);function u(){var p=l!==null&&l.apply(this,arguments)||this;return p.type=e+"Axis."+i,p}return u.prototype.mergeDefaultAndTheme=function(p,c){var f=Fo(this),h=f?zo(p):{},d=c.getTheme();Pe(p,d.get(i+"Axis")),Pe(p,this.getDefaultOption()),p.type=ux(p),f&&va(p,h,f)},u.prototype.optionUpdated=function(){var p=this.option;p.type==="category"&&(this.__ordinalMeta=Nh.createByAxisModel(this))},u.prototype.getCategories=function(p){var c=this.option;if(c.type==="category")return p?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(p){var c=Lu();return c?c.updateModelAxisBreak(this,p):{breaks:[]}},u.type=e+"Axis."+i,u.defaultOption=o,u})(r);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",ux)}function ux(t){return t.type||(t.data?"category":"value")}var iR=(function(){function t(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return t.prototype.getAxis=function(e){return this._axes[e]},t.prototype.getAxes=function(){return K(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Xe(this.getAxes(),function(r){return r.scale.type===e})},t.prototype.addAxis=function(e){var r=e.dim;this._axes[r]=e,this._dimList.push(r)},t})(),ip=["x","y"];function px(t){return(t.type==="interval"||t.type==="time")&&!nu(t)}var oR=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=jr,r.dimensions=ip,r}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,a=this.getAxis("y").scale;if(!(!px(r)||!px(a))){var n=vu(r,null),i=vu(a,null),o=this.dataToPoint([n[0],i[0]]),s=this.dataToPoint([n[1],i[1]]),l=n[1]-n[0],u=i[1]-i[0];if(!(!l||!u)){var p=(s[0]-o[0])/l,c=(s[1]-o[1])/u,f=o[0]-n[0]*p,h=o[1]-i[0]*c,d=this._transform=[p,0,0,c,f,h];this._invTransform=ji([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(r){var a=this.getAxis("x"),n=this.getAxis("y");return a.contain(a.toLocalCoord(r[0]))&&n.contain(n.toLocalCoord(r[1]))},e.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},e.prototype.containZone=function(r,a){var n=this.dataToPoint(r),i=this.dataToPoint(a),o=this.getArea(),s=new oe(n[0],n[1],i[0]-n[0],i[1]-n[1]);return o.intersect(s)},e.prototype.dataToPoint=function(r,a,n){n=n||[];var i=r[0],o=r[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return Lt(n,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(i,a)),n[1]=l.toGlobalCoord(l.dataToCoord(o,a)),n},e.prototype.clampData=function(r,a){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,o=n.getExtent(),s=i.getExtent(),l=n.parse(r[0]),u=i.parse(r[1]);return a=a||[],a[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),a[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),a},e.prototype.pointToData=function(r,a,n){if(n=n||[],this._invTransform)return Lt(n,r,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(r[0]),a),n[1]=o.coordToData(o.toLocalCoord(r[1]),a),n},e.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},e.prototype.getArea=function(r){r=r||0;var a=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(a[0],a[1])-r,o=Math.min(n[0],n[1])-r,s=Math.max(a[0],a[1])-i+r,l=Math.max(n[0],n[1])-o+r;return new oe(i,o,s,l)},e})(iR);function cx(t,e){var r=t.scale,a=t.model,n=Y1(r,a,a.ecModel,t),i=ci(r),o=ci(e)?e.intervalStub:e,s=i?r.intervalStub:r,l=r.base,u=o.getTicks(),p=o.getTicks({expandToNicedExtent:!0}),c=u.length-1,f,h,d;if(c===1)f=h=0,d=1;else if(c===2){var v=Ve(u[0].value-u[1].value),m=Ve(u[1].value-u[2].value);f=h=0,v===m?d=2:(d=1,v<m?f=v/m:h=m/v)}else{var g=o.getConfig().interval;f=(1-(u[0].value-p[0].value)/g)%1,h=(1-(p[c].value-u[c].value)/g)%1,d=c-(f?1:0)-(h?1:0)}var y=n.zoomFixMM,b=y[0]||y[1],k=[n.fixMM[0]||b,n.fixMM[1]||b],w=r.getExtent(),_=s.getExtent(),x=Vk(_,k),T,C,P,S,L,D;function M(U){for(var Y=50,z=0;z<Y&&!U();z++)P=i?P*ye(l,2):e5(P),S=hn(P)}function I(){T=ve(D-P*f,S)}function E(){C=ve(L+P*h,S)}function O(){D=f?ve(T+P*f,S):T}function R(){L=h?ve(C-P*h,S):C}if(k[0]&&k[1]){T=x[0],C=x[1],P=(C-T)/(d+f+h);var B=t.getExtent(),N=Ve(B[1]-B[0]);S=PD([C,T],N,.5/d),O(),R(),Ft(S)&&(P=ve(P,S))}else{var F=x[1]-x[0];P=i?ye(My(F),1):sf(F/d,Ey),S=hn(P),k[0]?(T=x[0],M(function(){if(O(),L=ve(D+P*d,S),E(),C>=x[1])return!0})):k[1]?(C=x[1],M(function(){if(R(),D=ve(L-P*d,S),I(),T<=x[0])return!0})):M(function(){D=ve(fo(x[0]/P)*P,S),L=ve(qa(x[1]/P)*P,S);var U=Vr((L-D)/P);if(U<=d){var Y=d-U,z=void 0,j=n.incl0||i;if(j&&x[0]===0)z=[0,Y];else if(j&&x[1]===0)z=[Y,0];else{var ne=qa(Y/2);z=Y%2===0?[ne,ne]:T+C<x[0]+x[1]?[ne,ne+1]:[ne+1,ne]}if(D=ve(D-P*z[0],S),L=ve(L+P*z[1],S),I(),E(),T<=x[0]&&C>=x[1])return!0}})}e1(r,k,_,[T,C],w,{interval:P,intervalCount:d,intervalPrecision:S,niceExtent:[D,L]})}function fx(t,e){var r=ci(t),a=r?t.intervalStub:t,n=e.fixMinMax||[],i=r?t.getExtent():null,o=a.getExtent(),s=Vk(o,n,e.rawExtentResult);a.setExtent(s[0],s[1]),s=a.getExtent();var l=r?lR(a,e):sR(a,e),u=l.intervalPrecision,p=l.interval,c=e.userInterval;c!=null&&(l.interval=c,l.intervalPrecision=hn(c)),n[0]||(s[0]=ve(qa(s[0]/p)*p,u)),n[1]||(s[1]=ve(fo(s[1]/p)*p,u)),c!=null&&(l.niceExtent=s.slice()),e1(t,n,o,s,i,l)}function sR(t,e){var r=bu(e.splitNumber,5),a=gu(t),n=e.minInterval,i=e.maxInterval,o=sf(a/r,!0);n!=null&&o<n&&(o=n),i!=null&&o>i&&(o=i);var s=hn(o),l=t.getExtent(),u=[ve(fo(l[0]/o)*o,s),ve(qa(l[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:u}}function lR(t,e){var r=bu(e.splitNumber,10),a=t.getExtent(),n=gu(t),i=ye(My(n),1),o=r/n*i;o<=.5&&(i*=10);var s=hn(i),l=[ve(fo(a[0]/i)*i,s),ve(qa(a[1]/i)*i,s)];return{intervalPrecision:s,interval:i,niceExtent:l}}function hx(t){var e=t.scale,r=t.model,a=r.axis,n=r.ecModel;uR(e,r,a,n)}function uR(t,e,r,a,n){var i=Y1(t,e,a,r),o=mu(t)||zh(t);pR(t,{splitNumber:e.get("splitNumber"),fixMinMax:i.fixMM,userInterval:e.get("interval"),minInterval:o?e.get("minInterval"):null,maxInterval:o?e.get("maxInterval"):null,rawExtentResult:i}),r&&a&&WE(r,t,i,a)}function pR(t,e){cR[t.type](t,e)}var cR={interval:fx,log:fx,time:p5,ordinal:qe},dx=[[3,1],[0,2]],fR=(function(){function t(e,r,a){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=ip,this._initCartesian(e,r,a),this.model=e}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(e,r){var a=this._axesMap;A(this._axesList,function(o){W1(o,z1);var s=o.scale;sr(s)&&s.setSortInfo(o.model.get("categorySortInfo"))});function n(o){for(var s=he(o),l=[],u=s.length-1;u>=0;u--){var p=o[+s[u]];p.__alignTo?l.push(p):hx(p)}A(l,function(c){dR(c,c.__alignTo)?hx(c):cx(c,c.__alignTo.scale)})}n(a.x),n(a.y);var i={};A(a.x,function(o){vx(a,"y",o,i)}),A(a.y,function(o){vx(a,"x",o,i)}),this.resize(this.model,r)},t.prototype.resize=function(e,r,a){var n=pi(e,r),i=this._rect=Yr(e.getBoxLayoutParams(),n.refContainer),o=this._axesMap,s=this._coordsList,l=e.get("containLabel");if(yx(o,i),!a){var u=gR(i,s,o,l,r),p=void 0;if(l)p=kx(i.clone(),"axisLabel",null,i,o,u,n);else{var c=mR(e,i,n),f=c.outerBoundsRect,h=c.parsedOuterBoundsContain,d=c.outerBoundsClamp;f&&(p=kx(f,h,d,i,o,u,n))}_x(i,o,lr.determine,null,p,n),A(this._coordsList,function(v){v.calcAffineTransform()})}},t.prototype.getAxis=function(e,r){var a=this._axesMap[e];if(a!=null)return a[r||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(e,r){if(e!=null&&r!=null){var a="x"+e+"y"+r;return this._coordsMap[a]}J(e)&&(r=e.yAxisIndex,e=e.xAxisIndex);for(var n=0,i=this._coordsList;n<i.length;n++)if(i[n].getAxis("x").index===e||i[n].getAxis("y").index===r)return i[n]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(e,r,a){var n=this._findConvertTarget(r);return n.cartesian?n.cartesian.dataToPoint(a):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(a)):null},t.prototype.convertFromPixel=function(e,r,a){var n=this._findConvertTarget(r);return n.cartesian?n.cartesian.pointToData(a):n.axis?n.axis.coordToData(n.axis.toLocalCoord(a)):null},t.prototype._findConvertTarget=function(e){var r=e.seriesModel,a=e.xAxisModel||r&&r.getReferringComponents("xAxis",zt).models[0],n=e.yAxisModel||r&&r.getReferringComponents("yAxis",zt).models[0],i=e.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,fe(o,s)<0&&(s=null);else if(a&&n)s=this.getCartesian(a.componentIndex,n.componentIndex);else if(a)l=this.getAxis("x",a.componentIndex);else if(n)l=this.getAxis("y",n.componentIndex);else if(i){var u=i.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},t.prototype.containPoint=function(e){var r=this._coordsList[0];if(r)return r.containPoint(e)},t.prototype._initCartesian=function(e,r,a){var n=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent("xAxis",u("x"),this),r.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,A(s.x,function(p,c){A(s.y,function(f,h){var d="x"+c+"y"+h,v=new oR(d);v.master=n,v.model=e,n._coordsMap[d]=v,n._coordsList.push(v),v.addAxis(p),v.addAxis(f)})}),mx(s.x),mx(s.y);function u(p){return function(c,f){if(hR(c,e)){var h=c.get("position");p==="x"?h!=="top"&&h!=="bottom"&&(h=o.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=o.left?"right":"left"),o[h]=!0;var d=f5(c),v=new uE(p,h5(c,d),[0,0],d,h);v.onBand=t1(v.scale,c),v.inverse=c.get("inverse"),c.axis=v,v.model=c,v.grid=i,v.index=f,i._axesList.push(v),s[p][f]=v,l[p]++}}}},t.prototype.getTooltipAxes=function(e){var r=[],a=[];return A(this.getCartesians(),function(n){var i=e!=null&&e!=="auto"?n.getAxis(e):n.getBaseAxis(),o=n.getOtherAxis(i);fe(r,i)<0&&r.push(i),fe(a,o)<0&&a.push(o)}),{baseAxes:r,otherAxes:a}},t.create=function(e,r){var a=[];return e.eachComponent("grid",function(n,i){var o=new t(n,e,r);o.name="grid_"+i,o.resize(n,r,!0),n.coordinateSystem=o,a.push(o),A(o._axesList,function(s){zE(s,t.dimIdxMap)})}),e.eachSeries(function(n){var i,o;rL({targetModel:n,coordSysType:jr,coordSysProvider:s});function s(){var l=IE(n),u=l.xAxisModel,p=l.yAxisModel;i=u.axis,o=p.axis;var c=u.getCoordSysModel(),f=c.coordinateSystem;return f.getCartesian(u.componentIndex,p.componentIndex)}i&&o&&(qh(i,n,jr),qh(o,n,jr))},this),a},t.dimensions=ip,t.dimIdxMap=ah(ip),t})();function hR(t,e){return t.getCoordSysModel()===e}function vx(t,e,r,a){r.getAxesOnZeroOf=function(){return i?[i]:[]};var n=t[e],i,o=r.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)gx(s,n[l])&&(i=n[l]);else for(var u in n)if(st(n,u)&&gx(s,n[u])&&!a[p(n[u])]){i=n[u];break}i&&(a[p(i)]=!0);function p(c){return c.dim+"_"+c.index}}function gx(t,e){if(!e)return!1;var r=e.scale,a=d5(r,0),n=e&&e.type!=="category"&&e.type!=="time"&&a!==Uh;return n&&t==="auto"&&y5(e)&&(n=!1),n}function mx(t){for(var e=he(t),r,a=[],n=e.length-1;n>=0;n--){var i=t[+e[n]];Hk(i.scale)&&Jk(i.model,i.type)==null&&(i.model.get("alignTicks")&&i.model.get("interval")==null?a.push(i):r=i)}r||(r=a.pop()),r&&A(a,function(o){o.__alignTo=r})}function dR(t,e){return nu(t.scale)||nu(e.scale)||e.scale.getTicks().length<2}function vR(t,e){var r=t.getExtent(),a=r[0]+r[1];t.toGlobalCoord=t.dim==="x"?function(n){return n+e}:function(n){return a-n+e},t.toLocalCoord=t.dim==="x"?function(n){return n-e}:function(n){return a-n+e}}function yx(t,e){A(t.x,function(r){return bx(r,e.x,e.width)}),A(t.y,function(r){return bx(r,e.y,e.height)})}function bx(t,e,r){var a=[0,r],n=t.inverse?1:0;t.setExtent(a[n],a[1-n]),vR(t,e)}function kx(t,e,r,a,n,i,o){_x(a,n,lr.estimate,e,!1,o);var s=[0,0,0,0];u(0),u(1),p(a,0,NaN),p(a,1,NaN);var l=sm(s,function(f){return f>0})==null;return Vl(a,s,!0,!0,r),yx(n,a),l;function u(f){A(n[fa[f]],function(h){if(Go(h.model)){var d=i.ensureRecord(h.model),v=d.labelInfoList;if(v)for(var m=0;m<v.length;m++){var g=v[m],y=h.scale.normalize(Wo(h.scale,dn(g.label).labelInfo.tick));y=f===1?1-y:y,p(g.rect,f,y),p(g.rect,1-f,NaN)}var b=d.nameLayout;if(b){var y=fi(d.nameLocation)?.5:NaN;p(b.rect,f,y),p(b.rect,1-f,NaN)}}})}function p(f,h,d){var v=t[fa[h]]-f[fa[h]],m=f[ti[h]]+f[fa[h]]-(t[ti[h]]+t[fa[h]]);v=c(v,1-d),m=c(m,d);var g=dx[h][0],y=dx[h][1];s[g]=ye(s[g],v),s[y]=ye(s[y],m)}function c(f,h){return f>0&&!$i(h)&&h>1e-4&&(f/=h),f}}function gR(t,e,r,a,n){var i=new M1(yR);return A(r,function(o){return A(o,function(s){if(Go(s.model)){var l=!a;s.axisBuilder=OE(t,e,s.model,n,i,l)}})}),i}function _x(t,e,r,a,n,i){var o=r===lr.determine;A(e,function(u){return A(u,function(p){Go(p.model)&&(RE(p.axisBuilder,t,p.model),p.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:n}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[fa[1-u]]=t[ti[u]]<=i.refContainer[ti[u]]*.5?0:1-u===1?2:1}A(e,function(u,p){return A(u,function(c){Go(c.model)&&((a==="all"||o)&&c.axisBuilder.build({axisName:!0},{nameMarginLevel:s[p]}),o&&c.axisBuilder.build({axisLine:!0}))})})}function mR(t,e,r){var a,n=t.get("outerBoundsMode",!0);n==="same"?a=e.clone():(n==null||n==="auto")&&(a=Yr(t.get("outerBounds",!0)||K1,r.refContainer));var i=t.get("outerBoundsContain",!0),o;i==null||i==="auto"||fe(["all","axisLabel"],i)<0?o="all":o=i;var s=[af(Z(t.get("outerBoundsClampWidth",!0),Ou[0]),e.width),af(Z(t.get("outerBoundsClampHeight",!0),Ou[1]),e.height)];return{outerBoundsRect:a,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var yR=function(t,e,r,a,n,i){var o=r.axis.dim==="x"?"y":"x";E1(t,e,r,a,n,i),fi(t.nameLocation)||A(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&O1(s.labelInfoList,s.dirVec,a,n)})};function bR(t,e){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return kR(r,t,e),r.seriesInvolved&&_R(r,t),r}function kR(t,e,r){var a=e.getComponent("tooltip"),n=e.getComponent("axisPointer"),i=n.get("link",!0)||[],o=[];A(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=os(s.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=s;var p=s.model,c=p.getModel("tooltip",a);if(A(s.getAxes(),ze(v,!1,null)),s.getTooltipAxes&&a&&c.get("show")){var f=c.get("trigger")==="axis",h=c.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(c.get(["axisPointer","axis"]));(f||h)&&A(d.baseAxes,ze(v,h?"cross":!0,f)),h&&A(d.otherAxes,ze(v,"cross",!1))}function v(m,g,y){var b=y.model.getModel("axisPointer",n),k=b.get("show");if(!(!k||k==="auto"&&!m&&!iv(b))){g==null&&(g=b.get("triggerTooltip")),b=m?wR(y,c,n,e,m,g):b;var w=b.get("snap"),_=b.get("triggerEmphasis"),x=os(y.model),T=g||w||y.type==="category",C=t.axesInfo[x]={key:x,axis:y,coordSys:s,axisPointerModel:b,triggerTooltip:g,triggerEmphasis:_,involveSeries:T,snap:w,useHandle:iv(b),seriesModels:[],linkGroup:null};u[x]=C,t.seriesInvolved=t.seriesInvolved||T;var P=xR(i,y);if(P!=null){var S=o[P]||(o[P]={axesInfo:{}});S.axesInfo[x]=C,S.mapper=i[P].mapper,C.linkGroup=S}}}})}function wR(t,e,r,a,n,i){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};A(s,function(f){l[f]=le(o.get(f))}),l.snap=t.type!=="category"&&!!i,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),n==="cross"){var p=o.get(["label","show"]);if(u.show=p??!0,!i){var c=l.lineStyle=o.get("crossStyle");c&&pe(u,c.textStyle)}}return t.model.getModel("axisPointer",new Ae(l,r,a))}function _R(t,e){e.eachSeries(function(r){var a=r.coordinateSystem,n=r.get(["tooltip","trigger"],!0),i=r.get(["tooltip","show"],!0);!a||!a.model||n==="none"||n===!1||n==="item"||i===!1||r.get(["axisPointer","show"],!0)===!1||A(t.coordSysAxesInfo[os(a.model)],function(o){var s=o.axis;a.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function xR(t,e){for(var r=e.model,a=e.dim,n=0;n<t.length;n++){var i=t[n]||{};if(av(i[a+"AxisId"],r.id)||av(i[a+"AxisIndex"],r.componentIndex)||av(i[a+"AxisName"],r.name))return n}}function av(t,e){return t==="all"||W(t)&&fe(t,e)>=0||t===e}function PR(t){var e=nv(t);if(e){var r=e.axisPointerModel,a=e.axis.scale,n=r.option,i=r.get("status"),o=r.get("value");o!=null&&(o=a.parse(o));var s=iv(r);i==null&&(n.status=s?"show":"hide");var l=a.getExtent();(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),n.value=o,s&&(n.status=e.axis.scale.isBlank()?"hide":"show")}}function nv(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[os(t)]}function SR(t){var e=nv(t);return e&&e.axisPointerModel}function iv(t){return!!t.get(["handle","show"])}function os(t){return t.type+"||"+t.id}var xx={},Px=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,a,n,i){this.axisPointerClass&&PR(r),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,n,!0)},e.prototype.updateAxisPointer=function(r,a,n,i){this._doUpdateAxisPointerClass(r,n,!1)},e.prototype.remove=function(r,a){var n=this._axisPointer;n&&n.remove(a)},e.prototype.dispose=function(r,a){this._disposeAxisPointer(a),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(r,a,n){var i=e.getAxisPointerClass(this.axisPointerClass);if(i){var o=SR(r);o?(this._axisPointer||(this._axisPointer=new i)).render(r,o,a,n):this._disposeAxisPointer(a)}},e.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},e.registerAxisPointerClass=function(r,a){xx[r]=a},e.getAxisPointerClass=function(r){return r&&xx[r]},e.type="axis",e})(Dt),ov=_e();function TR(t,e,r,a){var n=r.axis;if(!n.scale.isBlank()){var i=r.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),l=a.coordinateSystem.getRect(),u=n.getTicksCoords({tickModel:i,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var p=s.length,c=ov(t).splitAreaColors,f=ae(),h=0;if(c)for(var d=0;d<u.length;d++){var v=c.get(u[d].tickValue);if(v!=null){h=(v+(p-1)*d)%p;break}}var m=n.toGlobalCoord(u[0].coord),g=o.getAreaStyle();s=W(s)?s:[s];for(var d=1;d<u.length;d++){var y=n.toGlobalCoord(u[d].coord),b=void 0,k=void 0,w=void 0,_=void 0;n.isHorizontal()?(b=m,k=l.y,w=y-b,_=l.height,m=b+w):(b=l.x,k=m,w=l.width,_=y-k,m=k+_);var x=u[d-1].tickValue;x!=null&&f.set(x,h),e.add(new Ie({anid:x!=null?"area_"+x:null,shape:{x:b,y:k,width:w,height:_},style:pe({fill:s[h]},g),autoBatch:!0,silent:!0})),h=(h+1)%p}ov(t).splitAreaColors=f}}}function CR(t){ov(t).splitAreaColors=null}var DR=["splitArea","splitLine","minorSplitLine","breakArea"],Sx=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.axisPointerClass="CartesianAxisPointer",r}return e.prototype.render=function(r,a,n,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Me,this.group.add(this._axisGroup),!!Go(r)){this._axisGroup.add(r.axis.axisBuilder.group),A(DR,function(l){r.get([l,"show"])&&AR[l](this,this._axisGroup,r,r.getCoordSysModel(),n)},this);var s=i&&i.type==="changeAxisOrder"&&i.isInitSort;s||F0(o,this._axisGroup,r),t.prototype.render.call(this,r,a,n,i)}},e.prototype.remove=function(){CR(this)},e.type="cartesianAxis",e})(Px),AR={splitLine:function(t,e,r,a,n){var i=r.axis;if(!i.scale.isBlank()){var o=r.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,p=o.get("showMaxLine")!==!1;l=W(l)?l:[l];for(var c=a.coordinateSystem.getRect(),f=i.isHorizontal(),h=0,d=i.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),v=[],m=[],g=s.getLineStyle(),y=0;y<d.length;y++){var b=i.toGlobalCoord(d[y].coord);if(!(y===0&&!u||y===d.length-1&&!p)){var k=d[y].tickValue;f?(v[0]=b,v[1]=c.y,m[0]=b,m[1]=c.y+c.height):(v[0]=c.x,v[1]=b,m[0]=c.x+c.width,m[1]=b);var w=h++%l.length,_=new Er({anid:k!=null?"line_"+k:null,autoBatch:!0,shape:{x1:v[0],y1:v[1],x2:m[0],y2:m[1]},style:pe({stroke:l[w]},g),silent:!0});Po(_.shape,g.lineWidth),e.add(_)}}}},minorSplitLine:function(t,e,r,a,n){var i=r.axis,o=r.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=a.coordinateSystem.getRect(),u=i.isHorizontal(),p=i.getMinorTicksCoords();if(p.length)for(var c=[],f=[],h=s.getLineStyle(),d=0;d<p.length;d++)for(var v=0;v<p[d].length;v++){var m=i.toGlobalCoord(p[d][v].coord);u?(c[0]=m,c[1]=l.y,f[0]=m,f[1]=l.y+l.height):(c[0]=l.x,c[1]=m,f[0]=l.x+l.width,f[1]=m);var g=new Er({anid:"minor_line_"+p[d][v].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:f[0],y2:f[1]},style:h,silent:!0});Po(g.shape,h.lineWidth),e.add(g)}},splitArea:function(t,e,r,a,n){TR(t,e,r,a)},breakArea:function(t,e,r,a,n){var i=Lu(),o=r.axis.scale;i&&o.type!=="ordinal"&&i.rectCoordBuildBreakAxis(e,t,r,a.coordinateSystem.getRect(),n)}},Tx=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="xAxis",e})(Sx),LR=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Tx.type,r}return e.type="yAxis",e})(Sx),MR=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="grid",r}return e.prototype.render=function(r,a){this.group.removeAll(),r.get("show")&&this.group.add(new Ie({shape:r.coordinateSystem.getRect(),style:pe({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e})(Dt),Cx={offset:0};function Dx(t){t.registerComponentView(MR),t.registerComponentModel(ZE),t.registerCoordinateSystem("cartesian2d",fR),lx(t,"x",tv,Cx),lx(t,"y",tv,Cx),t.registerComponentView(Tx),t.registerComponentView(LR),t.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function ER(t){cr(Dx),t.registerSeriesModel(ZO),t.registerChartView(tR),t.registerLayout($h("scatter"))}function IR(t){var e=t.polar;if(e){W(e)||(e=[e]);var r=[];A(e,function(a,n){a.indicator?(a.type&&!a.shape&&(a.shape=a.type),t.radar=t.radar||[],W(t.radar)||(t.radar=[t.radar]),t.radar.push(a)):r.push(a)}),t.polar=r}A(t.series,function(a){a&&a.type==="radar"&&a.polarIndex&&(a.radarIndex=a.polarIndex)})}var ss="radar",OR=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new ud(ge(this.getData,this),ge(this.getRawData,this))},e.prototype.getInitialData=function(r,a){return Hu(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(r,a,n){var i=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(r),u=l===""?this.name:l,p=vk(this,r);return fn("section",{header:u,sortBlocks:!0,blocks:K(s,function(c){var f=i.get(i.mapDimension(c.dim),r);return fn("nameValue",{markerType:"subItem",markerColor:p,name:c.name,value:f,sortParam:f})})})},e.prototype.getTooltipPosition=function(r){if(r!=null){for(var a=this.getData(),n=this.coordinateSystem,i=a.getValues(K(n.dimensions,function(u){return a.mapDimension(u)}),r),o=0,s=i.length;o<s;o++)if(!isNaN(i[o])){var l=n.getIndicatorAxes();return n.coordToPoint(l[o].dataToCoord(i[o]),o)}}},e.type="series."+ss,e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e})(ft),RR=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=ss,r}return e.prototype.render=function(r,a,n){var i=r.coordinateSystem,o=this.group,s=r.getData(),l=this._data;function u(f,h){var d=f.getItemVisual(h,"symbol")||"circle";if(d!=="none"){var v=bk(f.getItemVisual(h,"symbolSize")),m=Ir(d,-1,-1,2,2),g=f.getItemVisual(h,"symbolRotate")||0;return m.attr({style:{strokeNoScale:!0},z2:100,scaleX:v[0]/2,scaleY:v[1]/2,rotation:g*Math.PI/180||0}),m}}function p(f,h,d,v,m,g){d.removeAll();for(var y=0;y<h.length-1;y++){var b=u(v,m);b&&(b.__dimIdx=y,f[y]?(b.setPosition(f[y]),W0[g?"initProps":"updateProps"](b,{x:h[y][0],y:h[y][1]},r,m)):b.setPosition(h[y]),d.add(b))}}function c(f){return K(f,function(h){return[i.cx,i.cy]})}s.diff(l).add(function(f){var h=s.getItemLayout(f);if(h){var d=new Qn,v=new ca,m={shape:{points:h}};d.shape.points=c(h),v.shape.points=c(h),Ye(d,m,r,f),Ye(v,m,r,f);var g=new Me,y=new Me;g.add(v),g.add(d),g.add(y),p(v.shape.points,h,y,s,f,!0),s.setItemGraphicEl(f,g)}}).update(function(f,h){var d=l.getItemGraphicEl(h),v=d.childAt(0),m=d.childAt(1),g=d.childAt(2),y={shape:{points:s.getItemLayout(f)}};y.shape.points&&(p(v.shape.points,y.shape.points,g,s,f,!1),ei(m),ei(v),Re(v,y,r),Re(m,y,r),s.setItemGraphicEl(f,d))}).remove(function(f){o.remove(l.getItemGraphicEl(f))}).execute(),s.eachItemGraphicEl(function(f,h){var d=s.getItemModel(h),v=f.childAt(0),m=f.childAt(1),g=f.childAt(2),y=s.getItemVisual(h,"style"),b=y.fill;o.add(f),v.useStyle(pe(d.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:b})),$r(v,d,"lineStyle"),$r(m,d,"areaStyle");var k=d.getModel("areaStyle"),w=k.isEmpty()&&k.parentModel.isEmpty();m.ignore=w,A(["emphasis","select","blur"],function(x){var T=d.getModel([x,"areaStyle"]),C=T.isEmpty()&&T.parentModel.isEmpty();m.ensureState(x).ignore=C&&w;var P=d.getModel([x,"lineStyle"]).getLineStyle();v.ensureState(x).style=P;var S=T.getAreaStyle();m.ensureState(x).style=S;var L=d.getModel([x,"itemStyle"]).getItemStyle();g.eachChild(function(D){D.ensureState(x).style=le(L)})}),m.useStyle(pe(d.getModel("areaStyle").getAreaStyle(),{fill:b,opacity:.7,decal:y.decal}));var _=d.getModel("emphasis");g.eachChild(function(x){if(x instanceof Bt){var T=x.style;x.useStyle(H({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},y))}else x.useStyle(y),x.setColor(b),x.style.strokeNoScale=!0;var C=s.getStore().get(s.getDimensionIndex(x.__dimIdx),h);(C==null||isNaN(C))&&(C=""),an(x,nn(d),{labelFetcher:s.hostModel,labelDataIndex:h,labelDimIndex:x.__dimIdx,defaultText:C,inheritColor:b,defaultOpacity:y.opacity})}),Wr(f,_.get("focus"),_.get("blurScope"),_.get("disabled"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type=ss,e})(at),ls=sx.value,us="radar",Ax=us,BR=us,Lx=5;function op(t,e){return pe({show:e},t)}var NR=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.optionUpdated=function(){var r=this.get("boundaryGap"),a=this.get("splitNumber"),n=this.get("clockwise"),i=this.get("scale"),o=this.get("axisLine"),s=this.get("axisTick"),l=this.get("axisLabel"),u=this.get("axisName"),p=this.get(["axisName","show"]),c=this.get(["axisName","formatter"]),f=this.get("axisNameGap"),h=this.get("triggerEvent"),d=K(this.get("indicator")||[],function(v){v.max!=null&&v.max>0&&!v.min?v.min=0:v.min!=null&&v.min<0&&!v.max&&(v.max=0);var m=u;v.color!=null&&(m=pe({color:v.color},u));var g=Pe(le(v),{boundaryGap:r,splitNumber:a,clockwise:n,scale:i,axisLine:o,axisTick:s,axisLabel:l,name:v.text,showName:p,nameLocation:"end",nameGap:f,nameTextStyle:m,triggerEvent:h},!1);if(q(c)){var y=g.name;g.name=c.replace("{value}",y??"")}else re(c)&&(g.name=c(g.name,g));var b=new Ae(g,null,this.ecModel);return Qt(b,ix.prototype),b.mainType="radar",b.componentIndex=this.componentIndex,b.uid=Io("ec_radar"),b},this);this._indicatorModels=d},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type=Ax,e.defaultOption={z:0,center:["50%","50%"],radius:"50%",startAngle:90,clockwise:!1,axisName:{show:!0,color:$.color.axisLabel},boundaryGap:[0,0],splitNumber:Lx,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Pe({lineStyle:{color:$.color.neutral20}},ls.axisLine),axisLabel:op(ls.axisLabel,!1),axisTick:op(ls.axisTick,!1),splitLine:op(ls.splitLine,!0),splitArea:op(ls.splitArea,!0),indicator:[]},e})(ke),FR=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,a,n){var i=this.group;i.removeAll(),this._buildAxes(r,n),this._buildSplitLineAndArea(r)},e.prototype._buildAxes=function(r,a){var n=r.coordinateSystem,i=n.getIndicatorAxes(),o=K(i,function(s){var l=s.model.get("showName")?s.name:"",u=new Xr(s.model,a,{axisName:l,position:[n.cx,n.cy],rotation:s.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return u});A(o,function(s){s.build(),this.group.add(s.group)},this)},e.prototype._buildSplitLineAndArea=function(r){var a=r.coordinateSystem,n=a.getIndicatorAxes();if(!n.length)return;var i=r.get("shape"),o=r.getModel("splitLine"),s=r.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),p=o.get("show"),c=s.get("show"),f=l.get("color"),h=u.get("color"),d=W(f)?f:[f],v=W(h)?h:[h],m=[],g=[];function y(I,E,O){var R=O%E.length;return I[R]=I[R]||[],R}if(i==="circle")for(var b=n[0].getTicksCoords(),k=a.cx,w=a.cy,_=0;_<b.length;_++){if(p){var x=y(m,d,_);m[x].push(new ko({shape:{cx:k,cy:w,r:b[_].coord}}))}if(c&&_<b.length-1){var x=y(g,v,_);g[x].push(new Rl({shape:{cx:k,cy:w,r0:b[_].coord,r:b[_+1].coord}}))}}else for(var T,C=K(n,function(I,E){var O=I.getTicksCoords();return T=T==null?O.length-1:Math.min(O.length-1,T),K(O,function(R){return a.coordToPoint(R.coord,E)})}),P=[],_=0;_<=T;_++){for(var S=[],L=0;L<n.length;L++)S.push(C[L][_]);if(S[0]&&S.push(S[0].slice()),p){var x=y(m,d,_);m[x].push(new ca({shape:{points:S}}))}if(c&&P){var x=y(g,v,_-1);g[x].push(new Qn({shape:{points:S.concat(P)}}))}P=S.slice().reverse()}var D=l.getLineStyle(),M=u.getAreaStyle();A(g,function(I,E){this.group.add(zf(I,{style:pe({stroke:"none",fill:v[E%v.length]},M),silent:!0}))},this),A(m,function(I,E){this.group.add(zf(I,{style:pe({fill:"none",stroke:d[E%d.length]},D),silent:!0}))},this)},e.type="radar",e})(Dt),zR=(function(t){V(e,t);function e(r,a,n){var i=t.call(this,r,a,n)||this;return i.type="value",i.angle=0,i.name="",i}return e})(_1),HR=(function(){function t(e,r,a){this.type=us,this.dimensions=[],this._model=e,this._indicatorAxes=K(e.getIndicatorModels(),function(n,i){var o="indicator_"+i,s=new zR(o,new ba);return s.name=n.get("name"),s.model=n,n.axis=s,this.dimensions.push(o),s},this),this.resize(e,a)}return t.prototype.getIndicatorAxes=function(){return this._indicatorAxes},t.prototype.dataToPoint=function(e,r){var a=this._indicatorAxes[r];return this.coordToPoint(a.dataToCoord(e),r)},t.prototype.coordToPoint=function(e,r){var a=this._indicatorAxes[r],n=a.angle,i=this.cx+e*Math.cos(n),o=this.cy-e*Math.sin(n);return[i,o]},t.prototype.pointToData=function(e){var r=e[0]-this.cx,a=e[1]-this.cy,n=Math.sqrt(r*r+a*a);r/=n,a/=n;for(var i=Math.atan2(-a,r),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var p=this._indicatorAxes[u],c=Math.abs(i-p.angle);c<o&&(s=p,l=u,o=c)}return[l,+(s&&s.coordToData(n))]},t.prototype.resize=function(e,r){var a=pi(e,r).refContainer,n=e.get("center"),i=e.get("clockwise")||!1,o=Math.min(a.width,a.height)/2;this.cx=ee(n[0],a.width)+a.x,this.cy=ee(n[1],a.height)+a.y,this.startAngle=e.get("startAngle")*Math.PI/180;var s=e.get("radius");(q(s)||be(s))&&(s=[0,s]),this.r0=ee(s[0],o),this.r=ee(s[1],o);var l=i?-1:1;A(this._indicatorAxes,function(u,p){u.setExtent(this.r0,this.r);var c=this.startAngle+l*p*Math.PI*2/this._indicatorAxes.length;c=Math.atan2(Math.sin(c),Math.cos(c)),u.angle=c},this)},t.prototype.update=function(e,r){var a=this._indicatorAxes,n=this._model,i=bu(n.get("splitNumber"),Lx),o=new ba;o.setExtent(0,i),o.setConfig({interval:1}),A(a,function(s){W1(s,z1),cx(s,o)})},t.prototype.convertToPixel=function(e,r,a){return console.warn("Not implemented."),null},t.prototype.convertFromPixel=function(e,r,a){return console.warn("Not implemented."),null},t.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},t.create=function(e,r){var a=[];return e.eachComponent(Ax,function(n){var i=new t(n,e,r);a.push(i),n.coordinateSystem=i}),e.eachSeriesByType(BR,function(n){if(n.get("coordinateSystem")===us){var i=n.coordinateSystem=a[n.get("radarIndex")||0];i&&A(i.getIndicatorAxes(),function(o){qh(o,n,us)})}}),a},t.dimensions=[],t})();function VR(t){t.registerCoordinateSystem("radar",HR),t.registerComponentModel(NR),t.registerComponentView(FR),t.registerVisual({seriesType:"radar",reset:function(e){var r=e.getData();r.each(function(a){r.setItemVisual(a,"legendIcon","roundRect")}),r.setVisual("legendIcon","roundRect")}})}var UR=df(ss,GR);function GR(t){t.eachSeriesByType(ss,function(e){var r=e.getData(),a=[],n=e.coordinateSystem;if(n){var i=n.getIndicatorAxes();A(i,function(o,s){r.each(r.mapDimension(i[s].dim),function(l,u){a[u]=a[u]||[];var p=n.dataToPoint(l,s);a[u][s]=Mx(p)?p:Ex(n)})}),r.each(function(o){var s=sm(a[o],function(l){return Mx(l)})||Ex(n);a[o].push(s.slice()),r.setItemLayout(o,a[o])})}})}function Mx(t){return!isNaN(t[0])&&!isNaN(t[1])}function Ex(t){return[t.cx,t.cy]}function WR(t){cr(VR),t.registerChartView(RR),t.registerSeriesModel(OR),t.registerLayout(UR),t.registerProcessor(ld("radar")),t.registerPreprocessor(IR)}var $R=(function(){function t(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return t})(),YR=(function(t){V(e,t);function e(r){var a=t.call(this,r)||this;return a.type="pointer",a}return e.prototype.getDefaultShape=function(){return new $R},e.prototype.buildPath=function(r,a){var n=Math.cos,i=Math.sin,o=a.r,s=a.width,l=a.angle,u=a.x-n(l)*s*(s>=o/3?1:2),p=a.y-i(l)*s*(s>=o/3?1:2);l=a.angle-Math.PI/2,r.moveTo(u,p),r.lineTo(a.x+n(l)*s,a.y+i(l)*s),r.lineTo(a.x+n(a.angle)*o,a.y+i(a.angle)*o),r.lineTo(a.x-n(l)*s,a.y-i(l)*s),r.lineTo(u,p)},e})(me);function KR(t,e){var r=t.get("center"),a=e.getWidth(),n=e.getHeight(),i=Math.min(a,n),o=ee(r[0],e.getWidth()),s=ee(r[1],e.getHeight()),l=ee(t.get("radius"),i/2);return{cx:o,cy:s,r:l}}function sp(t,e){var r=t==null?"":t+"";return e&&(q(e)?r=e.replace("{value}",r):re(e)&&(r=e(t))),r}var XR=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,a,n){this.group.removeAll();var i=r.get(["axisLine","lineStyle","color"]),o=KR(r,n);this._renderMain(r,a,n,i,o),this._data=r.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(r,a,n,i,o){var s=this.group,l=r.get("clockwise"),u=-r.get("startAngle")/180*Math.PI,p=-r.get("endAngle")/180*Math.PI,c=r.getModel("axisLine"),f=c.get("roundCap"),h=f?Bu:Mr,d=c.get("show"),v=c.getModel("lineStyle"),m=v.get("width"),g=[u,p];Jc(g,!l),u=g[0],p=g[1];for(var y=p-u,b=u,k=[],w=0;d&&w<i.length;w++){var _=Math.min(Math.max(i[w][0],0),1);p=u+y*_;var x=new h({shape:{startAngle:b,endAngle:p,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-m,r:o.r},silent:!0});x.setStyle({fill:i[w][1]}),x.setStyle(v.getLineStyle(["color","width"])),k.push(x),b=p}k.reverse(),A(k,function(C){return s.add(C)});var T=function(C){if(C<=0)return i[0][1];var P;for(P=0;P<i.length;P++)if(i[P][0]>=C&&(P===0?0:i[P-1][0])<C)return i[P][1];return i[P-1][1]};this._renderTicks(r,a,n,T,o,u,p,l,m),this._renderTitleAndDetail(r,a,n,T,o),this._renderAnchor(r,o),this._renderPointer(r,a,n,T,o,u,p,l,m)},e.prototype._renderTicks=function(r,a,n,i,o,s,l,u,p){for(var c=this.group,f=o.cx,h=o.cy,d=o.r,v=+r.get("min"),m=+r.get("max"),g=r.getModel("splitLine"),y=r.getModel("axisTick"),b=r.getModel("axisLabel"),k=r.get("splitNumber"),w=y.get("splitNumber"),_=ee(g.get("length"),d),x=ee(y.get("length"),d),T=s,C=(l-s)/k,P=C/w,S=g.getModel("lineStyle").getLineStyle(),L=y.getModel("lineStyle").getLineStyle(),D=g.get("distance"),M,I,E=0;E<=k;E++){if(M=Math.cos(T),I=Math.sin(T),g.get("show")){var O=D?D+p:p,R=new Er({shape:{x1:M*(d-O)+f,y1:I*(d-O)+h,x2:M*(d-_-O)+f,y2:I*(d-_-O)+h},style:S,silent:!0});S.stroke==="auto"&&R.setStyle({stroke:i(E/k)}),c.add(R)}if(b.get("show")){var O=b.get("distance")+D,B=sp(ve(E*(m-v)/k+v,mD),b.get("formatter")),N=i(E/k),F=M*(d-_-O)+f,U=I*(d-_-O)+h,Y=b.get("rotate"),z=0;Y==="radial"?(z=-T+2*Math.PI,z>Math.PI/2&&(z+=Math.PI)):Y==="tangential"?z=-T-Math.PI/2:be(Y)&&(z=Y*Math.PI/180),z===0?c.add(new Oe({style:Gt(b,{text:B,x:F,y:U,verticalAlign:I<-.8?"top":I>.8?"bottom":"middle",align:M<-.4?"left":M>.4?"right":"center"},{inheritColor:N}),silent:!0})):c.add(new Oe({style:Gt(b,{text:B,x:F,y:U,verticalAlign:"middle",align:"center"},{inheritColor:N}),silent:!0,originX:F,originY:U,rotation:z}))}if(y.get("show")&&E!==k){var O=y.get("distance");O=O?O+p:p;for(var j=0;j<=w;j++){M=Math.cos(T),I=Math.sin(T);var ne=new Er({shape:{x1:M*(d-O)+f,y1:I*(d-O)+h,x2:M*(d-x-O)+f,y2:I*(d-x-O)+h},silent:!0,style:L});L.stroke==="auto"&&ne.setStyle({stroke:i((E+j/w)/k)}),c.add(ne),T+=P}T-=P}else T+=C}},e.prototype._renderPointer=function(r,a,n,i,o,s,l,u,p){var c=this.group,f=this._data,h=this._progressEls,d=[],v=r.get(["pointer","show"]),m=r.getModel("progress"),g=m.get("show"),y=r.getData(),b=y.mapDimension("value"),k=+r.get("min"),w=+r.get("max"),_=[k,w],x=[s,l];function T(P,S){var L=y.getItemModel(P),D=L.getModel("pointer"),M=ee(D.get("width"),o.r),I=ee(D.get("length"),o.r),E=r.get(["pointer","icon"]),O=D.get("offsetCenter"),R=ee(O[0],o.r),B=ee(O[1],o.r),N=D.get("keepAspect"),F;return E?F=Ir(E,R-M/2,B-I,M,I,null,N):F=new YR({shape:{angle:-Math.PI/2,width:M,r:I,x:R,y:B}}),F.rotation=-(S+Math.PI/2),F.x=o.cx,F.y=o.cy,F}function C(P,S){var L=m.get("roundCap"),D=L?Bu:Mr,M=m.get("overlap"),I=M?m.get("width"):p/y.count(),E=M?o.r-I:o.r-(P+1)*I,O=M?o.r:o.r-P*I,R=new D({shape:{startAngle:s,endAngle:S,cx:o.cx,cy:o.cy,clockwise:u,r0:E,r:O}});return M&&(R.z2=Nt(y.get(b,P),[k,w],[100,0],!0)),R}(g||v)&&(y.diff(f).add(function(P){var S=y.get(b,P);if(v){var L=T(P,s);Ye(L,{rotation:-((isNaN(+S)?x[0]:Nt(S,_,x,!0))+Math.PI/2)},r),c.add(L),y.setItemGraphicEl(P,L)}if(g){var D=C(P,s),M=m.get("clip");Ye(D,{shape:{endAngle:Nt(S,_,x,M)}},r),c.add(D),gf(r.seriesIndex,y.dataType,P,D),d[P]=D}}).update(function(P,S){var L=y.get(b,P);if(v){var D=f.getItemGraphicEl(S),M=D?D.rotation:s,I=T(P,M);I.rotation=M,Re(I,{rotation:-((isNaN(+L)?x[0]:Nt(L,_,x,!0))+Math.PI/2)},r),c.add(I),y.setItemGraphicEl(P,I)}if(g){var E=h[S],O=E?E.shape.endAngle:s,R=C(P,O),B=m.get("clip");Re(R,{shape:{endAngle:Nt(L,_,x,B)}},r),c.add(R),gf(r.seriesIndex,y.dataType,P,R),d[P]=R}}).execute(),y.each(function(P){var S=y.getItemModel(P),L=S.getModel("emphasis"),D=L.get("focus"),M=L.get("blurScope"),I=L.get("disabled"),E=i(Nt(y.get(b,P),_,[0,1],!0));if(v){var O=y.getItemGraphicEl(P),R=y.getItemVisual(P,"style"),B=R.fill;if(O instanceof Bt){var N=O.style;O.useStyle(H({image:N.image,x:N.x,y:N.y,width:N.width,height:N.height},R))}else O.useStyle(R),O.type!=="pointer"&&O.setColor(B);O.setStyle(S.getModel(["pointer","itemStyle"]).getItemStyle()),O.style.fill==="auto"&&O.setStyle("fill",E),O.z2EmphasisLift=0,$r(O,S),Wr(O,D,M,I)}if(g){var F=d[P];F.useStyle(y.getItemVisual(P,"style")),F.setStyle(S.getModel(["progress","itemStyle"]).getItemStyle()),F.style.fill==="auto"&&F.setStyle("fill",E),F.z2EmphasisLift=0,$r(F,S),Wr(F,D,M,I)}}),this._progressEls=d)},e.prototype._renderAnchor=function(r,a){var n=r.getModel("anchor"),i=n.get("show");if(i){var o=n.get("size"),s=n.get("icon"),l=n.get("offsetCenter"),u=n.get("keepAspect"),p=Ir(s,a.cx-o/2+ee(l[0],a.r),a.cy-o/2+ee(l[1],a.r),o,o,null,u);p.z2=n.get("showAbove")?1:0,p.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(p)}},e.prototype._renderTitleAndDetail=function(r,a,n,i,o){var s=this,l=r.getData(),u=l.mapDimension("value"),p=+r.get("min"),c=+r.get("max"),f=new Me,h=[],d=[],v=r.isAnimationEnabled(),m=r.get(["pointer","showAbove"]);l.diff(this._data).add(function(g){h[g]=new Oe({silent:!0}),d[g]=new Oe({silent:!0})}).update(function(g,y){h[g]=s._titleEls[y],d[g]=s._detailEls[y]}).execute(),l.each(function(g){var y=l.getItemModel(g),b=l.get(u,g),k=new Me,w=i(Nt(b,[p,c],[0,1],!0)),_=y.getModel("title");if(_.get("show")){var x=_.get("offsetCenter"),T=o.cx+ee(x[0],o.r),C=o.cy+ee(x[1],o.r),P=h[g];P.attr({z2:m?0:2,style:Gt(_,{x:T,y:C,text:l.getName(g),align:"center",verticalAlign:"middle"},{inheritColor:w})}),k.add(P)}var S=y.getModel("detail");if(S.get("show")){var L=S.get("offsetCenter"),D=o.cx+ee(L[0],o.r),M=o.cy+ee(L[1],o.r),I=ee(S.get("width"),o.r),E=ee(S.get("height"),o.r),O=r.get(["progress","show"])?l.getItemVisual(g,"style").fill:w,P=d[g],R=S.get("formatter");P.attr({z2:m?0:2,style:Gt(S,{x:D,y:M,text:sp(b,R),width:isNaN(I)?null:I,height:isNaN(E)?null:E,align:"center",verticalAlign:"middle"},{inheritColor:O})}),Z0(P,{normal:S},b,function(N){return sp(N,R)}),v&&y3(P,g,l,r,{getFormattedLabel:function(N,F,U,Y,z,j){return sp(j?j.interpolatedValue:b,R)}}),k.add(P)}f.add(k)}),this.group.add(f),this._titleEls=h,this._detailEls=d},e.type="gauge",e})(at),qR=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.visualStyleAccessPath="itemStyle",r}return e.prototype.getInitialData=function(r,a){return Hu(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,$.color.neutral10]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:$.color.axisTick,width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:$.color.axisTickMinor,width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:$.color.axisLabel,fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:$.color.neutral00,borderWidth:0,borderColor:$.color.theme[0]}},title:{show:!0,offsetCenter:[0,"20%"],color:$.color.secondary,fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:$.color.transparent,borderWidth:0,borderColor:$.color.neutral40,width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:$.color.primary,fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e})(ft);function jR(t){t.registerChartView(XR),t.registerSeriesModel(qR)}var Ti="funnel",ZR=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new ud(ge(this.getData,this),ge(this.getRawData,this)),this._defaultLabelLine(r)},e.prototype.getInitialData=function(r,a){return Hu(this,{coordDimensions:["value"],encodeDefaulter:ze(rb,this)})},e.prototype._defaultLabelLine=function(r){_l(r,"labelLine",["show"]);var a=r.labelLine,n=r.emphasis.labelLine;a.show=a.show&&r.label.show,n.show=n.show&&r.emphasis.label.show},e.prototype.getDataParams=function(r){var a=this.getData(),n=t.prototype.getDataParams.call(this,r),i=a.mapDimension("value"),o=a.getSum(i);return n.percent=o?+(a.get(i,r)/o*100).toFixed(2):0,n.$vars.push("percent"),n},e.type="series."+Ti,e.defaultOption={coordinateSystemUsage:"box",z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:65,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:$.color.neutral00,borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:$.color.primary}}},e})(ft),QR=["itemStyle","opacity"],JR=(function(t){V(e,t);function e(r,a){var n=t.call(this)||this,i=n,o=new ca,s=new Oe;return i.setTextContent(s),n.setTextGuideLine(o),n.updateData(r,a,!0),n}return e.prototype.updateData=function(r,a,n){var i=this,o=r.hostModel,s=r.getItemModel(a),l=r.getItemLayout(a),u=s.getModel("emphasis"),p=s.get(QR);p=p??1,n||ei(i),i.useStyle(r.getItemVisual(a,"style")),i.style.lineJoin="round",n?(i.setShape({points:l.points}),i.style.opacity=0,Ye(i,{style:{opacity:p}},o,a)):Re(i,{style:{opacity:p},shape:{points:l.points}},o,a),$r(i,s),this._updateLabel(r,a),Wr(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(r,a){var n=this,i=this.getTextGuideLine(),o=n.getTextContent(),s=r.hostModel,l=r.getItemModel(a),u=r.getItemLayout(a),p=u.label,c=r.getItemVisual(a,"style"),f=c.fill;an(o,nn(l),{labelFetcher:r.hostModel,labelDataIndex:a,defaultOpacity:c.opacity,defaultText:r.getName(a)},{normal:{align:p.textAlign,verticalAlign:p.verticalAlign}});var h=l.getModel("label"),d=h.get("color"),v=d==="inherit"?f:null;n.setTextConfig({local:!0,inside:!!p.inside,insideStroke:v,outsideFill:v});var m=p.linePoints;i.setShape({points:m}),n.textGuideLineConfig={anchor:m?new ie(m[0][0],m[0][1]):null},Re(o,{style:{x:p.x,y:p.y}},s,a),o.attr({rotation:p.rotation,originX:p.x,originY:p.y,z2:10}),fw(n,hw(l),{stroke:f})},e})(Qn),eB=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Ti,r.ignoreLabelLineUpdate=!0,r}return e.prototype.render=function(r,a,n){var i=r.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new JR(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var p=o.getItemGraphicEl(u);p.updateData(i,l),s.add(p),i.setItemGraphicEl(l,p)}).remove(function(l){var u=o.getItemGraphicEl(l);Jn(u,r,l)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type=Ti,e})(at);function tB(t,e){for(var r=t.mapDimension("value"),a=t.mapArray(r,function(l){return l}),n=[],i=e==="ascending",o=0,s=t.count();o<s;o++)n[o]=o;return re(e)?n.sort(e):e!=="none"&&n.sort(function(l,u){return i?a[l]-a[u]:a[u]-a[l]}),n}function rB(t){var e=t.hostModel,r=Ix(e);t.each(function(a){var n=t.getItemModel(a),i=n.getModel("label"),o=i.get("position"),s=n.getModel("labelLine"),l=t.getItemLayout(a),u=l.points,p=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",c,f,h,d;if(p)o==="insideLeft"?(f=(u[0][0]+u[3][0])/2+5,h=(u[0][1]+u[3][1])/2,c="left"):o==="insideRight"?(f=(u[1][0]+u[2][0])/2-5,h=(u[1][1]+u[2][1])/2,c="right"):(f=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,h=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,c="center"),d=[[f,h],[f,h]];else{var v=void 0,m=void 0,g=void 0,y=void 0,b=s.get("length");q(o)&&(!r&&fe(["top","bottom"],o)>-1&&(o="left"),r&&fe(["left","right"],o)>-1&&(o="bottom")),o==="left"?(v=(u[3][0]+u[0][0])/2,m=(u[3][1]+u[0][1])/2,g=v-b,f=g-5,c="right"):o==="right"?(v=(u[1][0]+u[2][0])/2,m=(u[1][1]+u[2][1])/2,g=v+b,f=g+5,c="left"):o==="top"?(v=(u[3][0]+u[0][0])/2,m=(u[3][1]+u[0][1])/2,y=m-b,h=y-5,c="center"):o==="bottom"?(v=(u[1][0]+u[2][0])/2,m=(u[1][1]+u[2][1])/2,y=m+b,h=y+5,c="center"):o==="rightTop"?(v=r?u[3][0]:u[1][0],m=r?u[3][1]:u[1][1],r?(y=m-b,h=y-5,c="center"):(g=v+b,f=g+5,c="top")):o==="rightBottom"?(v=u[2][0],m=u[2][1],r?(y=m+b,h=y+5,c="center"):(g=v+b,f=g+5,c="bottom")):o==="leftTop"?(v=u[0][0],m=r?u[0][1]:u[1][1],r?(y=m-b,h=y-5,c="center"):(g=v-b,f=g-5,c="right")):o==="leftBottom"?(v=r?u[1][0]:u[3][0],m=r?u[1][1]:u[2][1],r?(y=m+b,h=y+5,c="center"):(g=v-b,f=g-5,c="right")):(v=(u[1][0]+u[2][0])/2,m=(u[1][1]+u[2][1])/2,r?(y=m+b,h=y+5,c="center"):(g=v+b,f=g+5,c="left")),r?(g=v,f=g):(y=m,h=y),d=[[v,m],[g,y]]}l.label={linePoints:d,x:f,y:h,verticalAlign:"middle",textAlign:c,inside:p}})}var aB=df(Ti,nB);function nB(t,e){t.eachSeriesByType(Ti,function(r){var a=r.getData(),n=a.mapDimension("value"),i=r.get("sort"),o=pi(r,e),s=Yr(r.getBoxLayoutParams(),o.refContainer),l=Ix(r),u=s.width,p=s.height,c=tB(a,i),f=s.x,h=s.y,d=l?[ee(r.get("minSize"),p),ee(r.get("maxSize"),p)]:[ee(r.get("minSize"),u),ee(r.get("maxSize"),u)],v=a.getDataExtent(n),m=r.get("min"),g=r.get("max");m==null&&(m=Math.min(v[0],0)),g==null&&(g=v[1]);var y=r.get("funnelAlign"),b=r.get("gap"),k=l?u:p,w=(k-b*(a.count()-1))/a.count(),_=function(I,E){if(l){var O=a.get(n,I)||0,R=Nt(O,[m,g],d,!0),B=void 0;switch(y){case"top":B=h;break;case"center":B=h+(p-R)/2;break;case"bottom":B=h+(p-R);break}return[[E,B],[E,B+R]]}var N=a.get(n,I)||0,F=Nt(N,[m,g],d,!0),U;switch(y){case"left":U=f;break;case"center":U=f+(u-F)/2;break;case"right":U=f+u-F;break}return[[U,E],[U+F,E]]};i==="ascending"&&(w=-w,b=-b,l?f+=u:h+=p,c=c.reverse());for(var x=0;x<c.length;x++){var T=c[x],C=c[x+1],P=a.getItemModel(T);if(l){var S=P.get(["itemStyle","width"]);S==null?S=w:(S=ee(S,u),i==="ascending"&&(S=-S));var L=_(T,f),D=_(C,f+S);f+=S+b,a.setItemLayout(T,{points:L.concat(D.slice().reverse())})}else{var M=P.get(["itemStyle","height"]);M==null?M=w:(M=ee(M,p),i==="ascending"&&(M=-M));var L=_(T,h),D=_(C,h+M);h+=M+b,a.setItemLayout(T,{points:L.concat(D.slice().reverse())})}}rB(a)})}function Ix(t){return t.get("orient")==="horizontal"}function iB(t){t.registerChartView(eB),t.registerSeriesModel(ZR),t.registerLayout(aB),t.registerProcessor(ld(Ti))}var bn=_e(),Ox=le,sv=ge,oB=(function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,r,a,n){var i=r.get("value"),o=r.get("status");if(this._axisModel=e,this._axisPointerModel=r,this._api=a,!(!n&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,e,r,a);var p=u.graphicKey;p!==this._lastGraphicKey&&this.clear(a),this._lastGraphicKey=p;var c=this._moveAnimation=this.determineAnimation(e,r);if(!s)s=this._group=new Me,this.createPointerEl(s,u,e,r),this.createLabelEl(s,u,e,r),a.getZr().add(s);else{var f=ze(Rx,r,c);this.updatePointerEl(s,u,f),this.updateLabelEl(s,u,f,r)}Fx(s,r,!0),this._renderHandle(i)}},t.prototype.remove=function(e){this.clear(e)},t.prototype.dispose=function(e){this.clear(e)},t.prototype.determineAnimation=function(e,r){var a=r.get("animation"),n=e.axis,i=n.type==="category",o=r.get("snap");if(!o&&!i)return!1;if(a==="auto"||a==null){var s=this.animationThreshold;if(i&&vi(n).w>s)return!0;if(o){var l=nv(e).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return a===!0},t.prototype.makeElOption=function(e,r,a,n,i){},t.prototype.createPointerEl=function(e,r,a,n){var i=r.pointer;if(i){var o=bn(e).pointerEl=new W0[i.type](Ox(r.pointer));e.add(o)}},t.prototype.createLabelEl=function(e,r,a,n){if(r.label){var i=bn(e).labelEl=new Oe(Ox(r.label));e.add(i),Nx(i,n)}},t.prototype.updatePointerEl=function(e,r,a){var n=bn(e).pointerEl;n&&r.pointer&&(n.setStyle(r.pointer.style),a(n,{shape:r.pointer.shape}))},t.prototype.updateLabelEl=function(e,r,a,n){var i=bn(e).labelEl;i&&(i.setStyle(r.label.style),a(i,{x:r.label.x,y:r.label.y}),Nx(i,n))},t.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,a=this._api.getZr(),n=this._handle,i=r.getModel("handle"),o=r.get("status");if(!i.get("show")||!o||o==="hide"){n&&a.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=Vf(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){ww(u.event)},onmousedown:sv(this._onHandleDragMove,this,0,0),drift:sv(this._onHandleDragMove,this),ondragend:sv(this._onHandleDragEnd,this)}),a.add(n)),Fx(n,r,!1),n.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");W(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,Q1(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},t.prototype._moveHandleToValue=function(e,r){Rx(this._axisPointerModel,!r&&this._moveAnimation,this._handle,lv(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,r){var a=this._handle;if(a){this._dragging=!0;var n=this.updateHandleTransform(lv(a),[e,r],this._axisModel,this._axisPointerModel);this._payloadInfo=n,a.stopAnimation(),a.attr(lv(n)),bn(a).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var r=this._payloadInfo,a=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:a.axis.dim,axisIndex:a.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var r=e.getZr(),a=this._group,n=this._handle;r&&a&&(this._lastGraphicKey=null,a&&r.remove(a),n&&r.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),id(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(e,r,a){return a=a||0,{x:e[a],y:e[1-a],width:r[a],height:r[1-a]}},t})();function Rx(t,e,r,a){Bx(bn(r).lastProp,a)||(bn(r).lastProp=a,e?Re(r,a,t):(r.stopAnimation(),r.attr(a)))}function Bx(t,e){if(J(t)&&J(e)){var r=!0;return A(e,function(a,n){r=r&&Bx(t[n],a)}),!!r}else return t===e}function Nx(t,e){t[e.get(["label","show"])?"show":"hide"]()}function lv(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function Fx(t,e,r){var a=e.get("z"),n=e.get("zlevel");t&&t.traverse(function(i){i.type!=="group"&&(a!=null&&(i.z=a),n!=null&&(i.zlevel=n),i.silent=r)})}function sB(t){var e=t.get("type"),r=t.getModel(e+"Style"),a;return e==="line"?(a=r.getLineStyle(),a.fill=null):e==="shadow"&&(a=r.getAreaStyle(),a.stroke=null),a}function lB(t,e,r,a,n){var i=r.get("value"),o=zx(i,e.axis,e.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=lu(s.get("padding")||0),u=s.getFont(),p=xm(o,u),c=n.position,f=p.width+l[1]+l[3],h=p.height+l[0]+l[2],d=n.align;d==="right"&&(c[0]-=f),d==="center"&&(c[0]-=f/2);var v=n.verticalAlign;v==="bottom"&&(c[1]-=h),v==="middle"&&(c[1]-=h/2),uB(c,f,h,a);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:Gt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function uB(t,e,r,a){var n=a.getWidth(),i=a.getHeight();t[0]=Math.min(t[0]+e,n)-e,t[1]=Math.min(t[1]+r,i)-r,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function zx(t,e,r,a,n){t=e.scale.parse(t);var i=e.scale.getLabel({value:t},{precision:n.precision}),o=n.formatter;if(o){var s={value:Pu(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};A(a,function(l){var u=r.getSeriesByIndex(l.seriesIndex),p=l.dataIndexInside,c=u&&u.getDataParams(p);c&&s.seriesData.push(c)}),q(o)?i=o.replace("{value}",i):re(o)&&(i=o(s))}return i}function Hx(t,e,r){var a=wr();return nc(a,a,r.rotation),ac(a,a,r.position),Hf([t.dataToCoord(e),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],a)}function pB(t,e,r,a,n,i){var o=Xr.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=n.get(["label","margin"]),lB(e,a,n,i,{position:Hx(a.axis,t,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function cB(t,e,r){return r=r||0,{x1:t[r],y1:t[1-r],x2:e[r],y2:e[1-r]}}function fB(t,e,r){return r=r||0,{x:t[r],y:t[1-r],width:e[r],height:e[1-r]}}function hB(t,e,r){return vi(t,{fromStat:{sers:K(e,function(a){return r.getSeriesByIndex(a.seriesIndex)})},min:1}).w}function dB(t,e,r){return[ye(et(e[0],e[1]),t-r/2),et(t+r/2,ye(e[0],e[1]))]}var vB=(function(t){V(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(r,a,n,i,o){var s=n.axis,l=s.grid,u=i.get("type"),p=s.getGlobalExtent(),c=Vx(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(a,!0));if(u&&u!=="none"){var h=sB(i),d=gB[u](s,f,p,c,i.get("seriesDataIndices"),i.ecModel);d.style=h,r.graphicKey=d.type,r.pointer=d}var v=Eu(l.getRect(),n);pB(a,r,v,n,i,o)},e.prototype.getHandleTransform=function(r,a,n){var i=Eu(a.axis.grid.getRect(),a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=Hx(a.axis,r,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(r,a,n,i){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),u=Vx(s,o).getOtherAxis(o).getGlobalExtent(),p=o.dim==="x"?0:1,c=[r.x,r.y];c[p]+=a[p],c[p]=et(l[1],c[p]),c[p]=ye(l[0],c[p]);var f=(u[1]+u[0])/2,h=[f,f];h[p]=c[p];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:h,tooltipOption:d[p]}},e})(oB);function Vx(t,e){var r={};return r[e.dim+"AxisIndex"]=e.index,t.getCartesian(r)}var gB={line:function(t,e,r,a){var n=cB([e,a[0]],[e,a[1]],Ux(t));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(t,e,r,a,n,i){var o=hB(t,n,i),s=a[1]-a[0],l=dB(e,r,o),u=l[0],p=l[1];return{type:"Rect",shape:fB([u,a[0]],[p-u,s],Ux(t))}}};function Ux(t){return t.dim==="x"?0:1}var mB=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:$.color.border,width:1,type:"dashed"},shadowStyle:{color:$.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:$.color.neutral00,padding:[5,7,5,7],backgroundColor:$.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:$.color.accent40,throttle:40}},e})(ke),Jr=_e(),yB=A;function Gx(t,e,r){if(!se.node){var a=e.getZr();Jr(a).records||(Jr(a).records={}),bB(a,e);var n=Jr(a).records[t]||(Jr(a).records[t]={});n.handler=r}}function bB(t,e){if(Jr(t).initialized)return;Jr(t).initialized=!0,r("click",ze(uv,"click")),r("mousemove",ze(uv,"mousemove")),r("mousewheel",ze(uv,"mousewheel")),r("globalout",wB);function r(a,n){t.on(a,function(i){var o=_B(e);yB(Jr(t).records,function(s){s&&n(s,i,o.dispatchAction)}),kB(o.pendings,e)})}}function kB(t,e){var r=t.showTip.length,a=t.hideTip.length,n;r?n=t.showTip[r-1]:a&&(n=t.hideTip[a-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function wB(t,e,r){t.handler("leave",null,r)}function uv(t,e,r,a){e.handler(t,r,a)}function _B(t){var e={showTip:[],hideTip:[]},r=function(a){var n=e[a.type];n?n.push(a):(a.dispatchAction=r,t.dispatchAction(a))};return{dispatchAction:r,pendings:e}}function pv(t,e){if(!se.node){var r=e.getZr(),a=(Jr(r).records||{})[t];a&&(Jr(r).records[t]=null)}}var xB=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,a,n){var i=a.getComponent("tooltip"),o=r.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click|mousewheel";Gx("axisPointer",n,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(r,a){pv("axisPointer",a)},e.prototype.dispose=function(r,a){pv("axisPointer",a)},e.type="axisPointer",e})(Dt);function Wx(t,e){var r=[],a=t.seriesIndex,n;if(a==null||!(n=e.getSeriesByIndex(a)))return{point:[]};var i=n.getData(),o=Za(i,t);if(o==null||o<0||W(o))return{point:[]};var s=i.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),p=l.getOtherAxis(u),c=p.dim,f=u.dim,h=c==="x"||c==="radius"?1:0,d=i.mapDimension(f),v=[];v[h]=i.get(d,o),v[1-h]=i.get(i.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(v)||[]}else r=l.dataToPoint(i.getValues(K(l.dimensions,function(g){return i.mapDimension(g)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),r=[m.x+m.width/2,m.y+m.height/2]}return{point:r,el:s}}var $x=_e();function PB(t,e,r){var a=t.currTrigger,n=[t.x,t.y],i=t,o=t.dispatchAction||ge(r.dispatchAction,r),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){lp(n)&&(n=Wx({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var l=lp(n),u=i.axesInfo,p=s.axesInfo,c=a==="leave"||lp(n),f={},h={},d={list:[],map:{}},v={showPointer:ze(TB,h),showTooltip:ze(CB,d)};A(s.coordSysMap,function(g,y){var b=l||g.containPoint(n);A(s.coordSysAxesInfo[y],function(k,w){var _=k.axis,x=MB(u,k);if(!c&&b&&(!u||x)){var T=x&&x.value;T==null&&!l&&(T=_.pointToData(n)),T!=null&&Yx(k,T,v,!1,f)}})});var m={};return A(p,function(g,y){var b=g.linkGroup;b&&!h[y]&&A(b.axesInfo,function(k,w){var _=h[w];if(k!==g&&_){var x=_.value;b.mapper&&(x=g.axis.scale.parse(b.mapper(x,Kx(k),Kx(g)))),m[g.key]=x}})}),A(m,function(g,y){Yx(p[y],g,v,!0,f)}),DB(h,p,f),AB(d,n,t,o),LB(p,o,r),f}}function Yx(t,e,r,a,n){var i=t.axis;if(!(i.scale.isBlank()||!i.containData(e))){if(!t.involveSeries){r.showPointer(t,e);return}var o=SB(e,t),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&H(n,s[0]),!a&&t.snap&&i.containData(l)&&l!=null&&(e=l),r.showPointer(t,e,s),r.showTooltip(t,o,l)}}function SB(t,e){var r=e.axis,a=r.dim,n=t,i=[],o=Number.MAX_VALUE,s=-1;return A(e.seriesModels,function(l,u){var p=l.getData().mapDimensionsAll(a),c,f;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(p,t,r);f=h.dataIndices,c=h.nestestValue}else{if(f=l.indicesOfNearest(a,p[0],t,r.type==="category"?.5:null),!f.length)return;c=l.getData().get(p[0],f[0])}if(Ft(c)){var d=t-c,v=Math.abs(d);v<=o&&((v<o||d>=0&&s<0)&&(o=v,s=d,n=c,i.length=0),A(f,function(m){i.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:i,snapToValue:n}}function TB(t,e,r,a){t[e.key]={value:r,payloadBatch:a}}function CB(t,e,r,a){var n=r.payloadBatch,i=e.axis,o=i.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!n.length)){var l=e.coordSys.model,u=os(l),p=t.map[u];p||(p=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(p)),p.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:a,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function DB(t,e,r){var a=r.axesInfo=[];A(e,function(n,i){var o=n.axisPointerModel.option,s=t[i];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&a.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function AB(t,e,r,a){if(lp(e)||!t.list.length){a({type:"hideTip"});return}var n=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};a({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:t.list})}function LB(t,e,r){var a=r.getZr(),n="axisPointerLastHighlights",i=$x(a)[n]||{},o=$x(a)[n]={};A(t,function(p,c){var f=p.axisPointerModel.option;f.status==="show"&&p.triggerEmphasis&&A(f.seriesDataIndices,function(h){o[h.seriesIndex+"|"+h.dataIndex]=h})});var s=[],l=[];function u(p){return{seriesIndex:p.seriesIndex,dataIndex:p.dataIndex}}A(i,function(p,c){!o[c]&&l.push(u(p))}),A(o,function(p,c){!i[c]&&s.push(u(p))}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function MB(t,e){for(var r=0;r<(t||[]).length;r++){var a=t[r];if(e.axis.dim===a.axisDim&&e.axis.model.componentIndex===a.axisIndex)return a}}function Kx(t){var e=t.axis.model,r={},a=r.axisDim=t.axis.dim;return r.axisIndex=r[a+"AxisIndex"]=e.componentIndex,r.axisName=r[a+"AxisName"]=e.name,r.axisId=r[a+"AxisId"]=e.id,r}function lp(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function Xx(t){Px.registerAxisPointerClass("CartesianAxisPointer",vB),t.registerComponentModel(mB),t.registerComponentView(xB),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var r=e.axisPointer.link;r&&!W(r)&&(e.axisPointer.link=[r])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,r){e.getComponent("axisPointer").coordSysAxesInfo=bR(e,r)}}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},PB)}function EB(t){cr(Dx),cr(Xx)}function IB(t,e){var r=lu(e.get("padding")),a=e.getItemStyle(["color","opacity"]);a.fill=e.get("backgroundColor");var n=new Ie({shape:{x:t.x-r[3],y:t.y-r[0],width:t.width+r[1]+r[3],height:t.height+r[0]+r[2],r:e.get("borderRadius")},style:a,silent:!0,z2:-1});return n}var OB=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click|mousewheel",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:$.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:$.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:$.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:$.color.tertiary,fontSize:14}},e})(ke);function qx(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function jx(t){if(se.domSupported){for(var e=document.documentElement.style,r=0,a=t.length;r<a;r++)if(t[r]in e)return t[r]}}var Zx=jx(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),RB=jx(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function Qx(t,e){if(!t)return e;e=Zb(e,!0);var r=t.indexOf(e);return t=r===-1?e:"-"+t.slice(0,r)+"-"+e,t.toLowerCase()}function BB(t,e){var r=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return r?r[e]:null}var NB=Qx(RB,"transition"),cv=Qx(Zx,"transform"),FB="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(se.transform3dSupported?"will-change:transform;":"");function zB(t){return t=t==="left"?"right":t==="right"?"left":t==="top"?"bottom":"top",t}function HB(t,e,r){if(!q(r)||r==="inside")return"";var a=t.get("backgroundColor"),n=t.get("borderWidth");e=pn(e);var i=zB(r),o=Math.max(Math.round(n)*1.5,6),s="",l=cv+":",u;fe(["left","right"],i)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var p=u*Math.PI/180,c=o+n,f=c*Math.abs(Math.cos(p))+c*Math.abs(Math.sin(p)),h=Math.round(((f-Math.SQRT2*n)/2+Math.SQRT2*n-(f-c)/2)*100)/100;s+=";"+i+":-"+h+"px";var d=e+" solid "+n+"px;",v=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+a+";"];return'<div style="'+v.join("")+'"></div>'}function VB(t,e,r){var a="cubic-bezier(0.23,1,0.32,1)",n="",i="";return r&&(n=" "+t/2+"s "+a,i="opacity"+n+",visibility"+n),e||(n=" "+t+"s "+a,i+=(i.length?",":"")+(se.transformSupported?""+cv+n:",left"+n+",top"+n)),NB+":"+i}function Jx(t,e,r){var a=t.toFixed(0)+"px",n=e.toFixed(0)+"px";if(!se.transformSupported)return r?"top:"+n+";left:"+a+";":[["top",n],["left",a]];var i=se.transform3dSupported,o="translate"+(i?"3d":"")+"("+a+","+n+(i?",0":"")+")";return r?"top:0;left:0;"+cv+":"+o+";":[["top",0],["left",0],[Zx,o]]}function UB(t){var e=[],r=t.get("fontSize"),a=t.getTextColor();a&&e.push("color:"+a),e.push("font:"+t.getFont());var n=Z(t.get("lineHeight"),Math.round(r*3/2));r&&e.push("line-height:"+n+"px");var i=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,l=t.get("textShadowOffsetY")||0;return i&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+i),A(["decoration","align"],function(u){var p=t.get(u);p&&e.push("text-"+u+":"+p)}),e.join(";")}function GB(t,e,r,a){var n=[],i=t.get("transitionDuration"),o=t.get("backgroundColor"),s=t.get("shadowBlur"),l=t.get("shadowColor"),u=t.get("shadowOffsetX"),p=t.get("shadowOffsetY"),c=t.getModel("textStyle"),f=gk(t,"html"),h=u+"px "+p+"px "+s+"px "+l;return n.push("box-shadow:"+h),e&&i>0&&n.push(VB(i,r,a)),o&&n.push("background-color:"+o),A(["width","color","radius"],function(d){var v="border-"+d,m=Zb(v),g=t.get(m);g!=null&&n.push(v+":"+g+(d==="color"?"":"px"))}),n.push(UB(c)),f!=null&&n.push("padding:"+lu(f).join("px ")+"px"),n.join(";")+";"}function eP(t,e,r,a,n){var i=e&&e.painter;if(r){var o=i&&i.getViewportRoot();o&&mL(t,o,r,a,n)}else{t[0]=a,t[1]=n;var s=i&&i.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var WB=(function(){function t(e,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,se.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var n=this._zr=e.getZr(),i=r.appendTo,o=i&&(q(i)?document.querySelector(i):Wi(i)?i:re(i)&&i(e.getDom()));eP(this._styleCoord,n,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(a),this._api=e,this._container=o;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=n.handler,p=n.painter.getViewportRoot();Kt(p,l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return t.prototype.update=function(e){if(!this._container){var r=this._api.getDom(),a=BB(r,"position"),n=r.style;n.position!=="absolute"&&a!=="absolute"&&(n.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")||""},t.prototype.show=function(e,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var a=this.el,n=a.style,i=this._styleCoord;a.innerHTML?n.cssText=FB+GB(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+Jx(i[0],i[1],!0)+("border-color:"+pn(r)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,r,a,n,i){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(q(i)&&a.get("trigger")==="item"&&!qx(a)&&(s=HB(a,n,i)),q(e))o.innerHTML=e+s;else if(e){o.innerHTML="",W(e)||(e=[e]);for(var l=0;l<e.length;l++)Wi(e[l])&&e[l].parentNode!==o&&o.appendChild(e[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},t.prototype.moveTo=function(e,r){if(this.el){var a=this._styleCoord;if(eP(a,this._zr,this._container,e,r),a[0]!=null&&a[1]!=null){var n=this.el.style,i=Jx(a[0],a[1]);A(i,function(o){n[o[0]]=o[1]})}}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){var e=this,r=this.el.style;this._enableDisplayTransition?(r.visibility="hidden",r.opacity="0"):r.display="none",se.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(ge(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;yL(e&&e.painter&&e.painter.getViewportRoot(),this._container);var r=this.el;if(r){r.onmouseenter=r.onmousemove=r.onmouseleave=null;var a=r.parentNode;a&&a.removeChild(r)}this.el=this._container=null},t})(),$B=(function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),rP(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return t.prototype.update=function(e){var r=e.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(e,r,a,n,i){var o=this;J(e)&&kt(""),this.el&&this._zr.remove(this.el);var s=a.getModel("textStyle");this.el=new Oe({style:{rich:r.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:s.get("textShadowColor"),fill:a.get(["textStyle","color"]),padding:gk(a,"richText"),verticalAlign:"top",align:"left"},z:a.get("z")}),A(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=a.get(u)}),A(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el,r=this.el.getBoundingRect(),a=tP(e.style);return[r.width+a.left+a.right,r.height+a.top+a.bottom]},t.prototype.moveTo=function(e,r){var a=this.el;if(a){var n=this._styleCoord;rP(n,this._zr,e,r),e=n[0],r=n[1];var i=a.style,o=Sa(i.borderWidth||0),s=tP(i);a.x=e+o+s.left,a.y=r+o+s.top,a.markRedraw()}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(ge(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t})();function Sa(t){return Math.max(0,t)}function tP(t){var e=Sa(t.shadowBlur||0),r=Sa(t.shadowOffsetX||0),a=Sa(t.shadowOffsetY||0);return{left:Sa(e-r),right:Sa(e+r),top:Sa(e-a),bottom:Sa(e+a)}}function rP(t,e,r,a){t[0]=r,t[1]=a,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var YB=new Ie({shape:{x:-1,y:-1,width:2,height:2}}),KB=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,a){if(!(se.node||!a.getDom())){var n=r.getComponent("tooltip"),i=this._renderMode=YD(n.get("renderMode"));this._tooltipContent=i==="richText"?new $B(a):new WB(a,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},e.prototype.render=function(r,a,n){if(!(se.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=a,this._api=n;var i=this._tooltipContent;i.update(r),i.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?Q1(this,"_updatePosition",50,"fixRate"):id(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var r=this._tooltipModel,a=r.get("triggerOn");Gx("itemTooltip",this._api,ge(function(n,i,o){a!=="none"&&(a.indexOf(n)>=0?this._tryShow(i,o):n==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var r=this._tooltipModel,a=this._ecModel,n=this._api,i=r.get("triggerOn");if(r.get("trigger")!=="axis"&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(r,a,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(r,a,n,i){if(!(i.from===this.uid||se.node||!n.getDom())){var o=aP(i,n);this._ticket="";var s=i.dataByCoordSys,l=ZB(i,a,n);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var p=YB;p.x=i.x,p.y=i.y,p.update(),ce(p).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:p},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(r,a,n,i))return;var c=Wx(i,a),f=c.point[0],h=c.point[1];f!=null&&h!=null&&this._tryShow({offsetX:f,offsetY:h,target:c.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},o))}},e.prototype.manuallyHideTip=function(r,a,n,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,i.from!==this.uid&&this._hide(aP(i,n))},e.prototype._manuallyAxisShowTip=function(r,a,n,i){var o=i.seriesIndex,s=i.dataIndex,l=a.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=a.getSeriesByIndex(o);if(u){var p=u.getData(),c=ps([p.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},e.prototype._tryShow=function(r,a){var n=r.target,i=this._tooltipModel;if(i){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(n){var s=ce(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null,this._cbParamsList=null;var l,u;ns(n,function(p){if(p.tooltipDisabled)return l=u=null,!0;l||u||(ce(p).dataIndex!=null?l=p:ce(p).tooltipConfig!=null&&(u=p))},!0),l?this._showSeriesItemTooltip(r,l,a):u?this._showComponentItemTooltip(r,u,a):this._hide(a)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(a)}},e.prototype._showOrMove=function(r,a){var n=r.get("showDelay");a=ge(a,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(a,n):a()},e.prototype._showAxisTooltip=function(r,a){var n=this._ecModel,i=this._tooltipModel,o=[a.offsetX,a.offsetY],s=ps([a.tooltipOption],i),l=this._renderMode,u=[],p=fn("section",{blocks:[],noHeader:!0}),c=[],f=new Ah;A(r,function(y){A(y.dataByAxis,function(b){var k=n.getComponent(b.axisDim+"Axis",b.axisIndex),w=b.value,_=k.axis,x=_.scale.parse(w);if(!(!k||w==null)){var T=zx(w,_,n,b.seriesDataIndices,b.valueLabelOpt),C=fn("section",{header:T,noHeader:!br(T),sortBlocks:!0,blocks:[]});p.blocks.push(C),A(b.seriesDataIndices,function(P){var S=n.getSeriesByIndex(P.seriesIndex),L=P.dataIndexInside,D=S.getDataParams(L);if(!(D.dataIndex<0)){D.axisDim=b.axisDim,D.axisIndex=b.axisIndex,D.axisType=b.axisType,D.axisId=b.axisId,D.axisValue=Pu(k.axis,{value:x}),D.axisValueLabel=T,D.marker=f.makeTooltipMarker("item",pn(D.color),l);var M=rk(S.formatTooltip(L,!0,null)),I=M.frag;if(I){var E=ps([S],i).get("valueFormatter");C.blocks.push(E?H({valueFormatter:E},I):I)}M.text&&c.push(M.text),u.push(D)}})}})}),p.blocks.reverse(),c.reverse();var h=a.position,d=s.get("order"),v=hk(p,f,l,d,n.get("useUTC"),s.get("textStyle"));v&&c.unshift(v);var m=l==="richText"?`
|
|
15
39
|
|
|
16
|
-
`:"<br/>",m=c.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],h,null,v)})},e.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=ue(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,v=u.getData(c),h=this._renderMode,d=r.positionDefault,p=Yo([v.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var m=u.getDataParams(f,c),y=new Wh;m.marker=y.makeTooltipMarker("item",ri(m.color),h);var _=F0(u.formatTooltip(f,!1,c)),S=p.get("order"),b=p.get("valueFormatter"),w=_.frag,T=w?Z0(b?z({valueFormatter:b},w):w,y,h,S,a.get("useUTC"),p.get("textStyle")):_.text,C="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,T,m,C,r.offsetX,r.offsetY,r.position,r.target,y)}),i({type:"showTip",dataIndexInside:f,dataIndex:v.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(r,n,i){var a=this._renderMode==="html",o=ue(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(q(l)){var f=l;l={content:f,formatter:f},u=!0}u&&a&&l.content&&(l=oe(l),l.content=it(l.content));var c=[l],v=this._ecModel.getComponent(o.componentMainType,o.componentIndex);v&&c.push(v),c.push({formatter:l.content});var h=r.positionDefault,d=Yo(c,this._tooltipModel,h?{position:h}:null),p=d.get("content"),g=Math.random()+"",m=new Wh;this._showOrMove(d,function(){var y=oe(d.get("formatterParams")||{});this._showTooltipContent(d,p,y,g,r.offsetX,r.offsetY,r.position,n,m)}),i({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(r,n,i,a,o,s,l,u,f){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var c=this._tooltipContent;c.setEnterable(r.get("enterable"));var v=r.get("formatter");l=l||r.get("position");var h=n,d=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor"),r.get("defaultBorderColor",!0)),p=d.color;if(v)if(q(v)){var g=r.ecModel.get("useUTC"),m=W(i)?i[0]:i,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;h=v,y&&(h=Nl(m.axisValue,h,g)),h=O0(h,i,!0)}else if(ee(v)){var _=de(function(S,b){S===this._ticket&&(c.setContent(b,f,r,p,l),this._updatePosition(r,l,o,s,c,i,u))},this);this._ticket=a,h=v(i,a,_)}else h=v;c.setContent(h,f,r,p,l),c.show(r,p),this._updatePosition(r,l,o,s,c,i,u)}},e.prototype._getNearestPoint=function(r,n,i,a,o){if(i==="axis"||W(n))return{color:a||o};if(!W(n))return{color:a||n.color||n.borderColor}},e.prototype._updatePosition=function(r,n,i,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||r.get("position");var c=o.getSize(),v=r.get("align"),h=r.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),ee(n)&&(n=n([i,a],s,o.el,d,{viewSize:[u,f],contentSize:c.slice()})),W(n))i=Q(n[0],u),a=Q(n[1],f);else if(j(n)){var p=n;p.width=c[0],p.height=c[1];var g=Vr(p,{width:u,height:f});i=g.x,a=g.y,v=null,h=null}else if(q(n)&&l){var m=yB(n,d,c,r.get("borderWidth"));i=m[0],a=m[1]}else{var m=gB(i,a,o,u,f,v?null:20,h?null:20);i=m[0],a=m[1]}if(v&&(i-=zw(v)?c[0]/2:v==="right"?c[0]:0),h&&(a-=zw(h)?c[1]/2:h==="bottom"?c[1]:0),Lw(r)){var m=mB(i,a,o,u,f);i=m[0],a=m[1]}o.moveTo(i,a)},e.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&I(i,function(s,l){var u=s.dataByAxis||[],f=r[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&I(u,function(v,h){var d=c[h]||{},p=v.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&v.value===d.value&&v.axisType===d.axisType&&v.axisId===d.axisId&&p.length===g.length,o&&I(p,function(m,y){var _=g[y];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),a&&I(v.seriesDataIndices,function(m){var y=m.seriesIndex,_=n[y],S=a[y];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},e.prototype._hide=function(r){this._lastDataByCoordSys=null,this._cbParamsList=null,r({type:"hideTip",from:this.uid})},e.prototype.dispose=function(r,n){ie.node||!n.getDom()||(Sv(this,"_updatePosition"),this._tooltipContent.dispose(),Cd("itemTooltip",n),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},e.type="tooltip",e})(bt);function Yo(t,e,r){var n=e.ecModel,i;r?(i=new xe(r,n,n),i=new xe(e.option,i,n)):i=e;for(var a=t.length-1;a>=0;a--){var o=t[a];o&&(o instanceof xe&&(o=o.get("tooltip",!0)),q(o)&&(o={formatter:o}),o&&(i=new xe(o,i,n)))}return i}function Fw(t,e){return t.dispatchAction||de(e.dispatchAction,e)}function gB(t,e,r,n,i,a,o){var s=r.getSize(),l=s[0],u=s[1];return a!=null&&(t+l+a+2>n?t-=l+a:t+=a),o!=null&&(e+u+o>i?e-=u+o:e+=o),[t,e]}function mB(t,e,r,n,i){var a=r.getSize(),o=a[0],s=a[1];return t=Math.min(t+o,n)-o,e=Math.min(e+s,i)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function yB(t,e,r,n){var i=r[0],a=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=e.width,f=e.height;switch(t){case"inside":s=e.x+u/2-i/2,l=e.y+f/2-a/2;break;case"top":s=e.x+u/2-i/2,l=e.y-a-o;break;case"bottom":s=e.x+u/2-i/2,l=e.y+f+o;break;case"left":s=e.x-i-o,l=e.y+f/2-a/2;break;case"right":s=e.x+u+o,l=e.y+f/2-a/2}return[s,l]}function zw(t){return t==="center"||t==="middle"}function _B(t,e,r){var n=Ac(t).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=Qa(e,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=ue(u).tooltipConfig;if(f&&f.name===t.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}function SB(t){rr(Iw),t.registerComponentModel(rB),t.registerComponentView(pB),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},We),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},We)}var bB=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:Y.size.m,backgroundColor:Y.color.transparent,borderColor:Y.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:Y.color.primary},subtextStyle:{fontSize:12,color:Y.color.quaternary}},e})(ye),wB=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){if(this.group.removeAll(),!!r.get("show")){var a=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=Z(r.get("textBaseline"),r.get("textVerticalAlign")),f=new Me({style:Ot(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),v=r.get("subtext"),h=new Me({style:Ot(s,{text:v,fill:s.getTextColor(),y:c.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=r.get("link"),p=r.get("sublink"),g=r.get("triggerEvent",!0);f.silent=!d&&!g,h.silent=!p&&!g,d&&f.on("click",function(){N0(d,"_"+r.get("target"))}),p&&h.on("click",function(){N0(p,"_"+r.get("subtarget"))}),ue(f).eventData=ue(h).eventData=g?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(f),v&&a.add(h);var m=a.getBoundingRect(),y=r.getBoxLayoutParams();y.width=m.width,y.height=m.height;var _=Ji(r,i),S=Vr(y,_.refContainer,r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?S.x+=S.width:l==="center"&&(S.x+=S.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?S.y+=S.height:u==="middle"&&(S.y+=S.height/2),u=u||"top"),a.x=S.x,a.y=S.y,a.markRedraw();var b={align:l,verticalAlign:u};f.setStyle(b),h.setStyle(b),m=a.getBoundingRect();var w=S.margin,T=r.getItemStyle(["color","opacity"]);T.fill=r.get("backgroundColor");var C=new De({shape:{x:m.x-w[3],y:m.y-w[0],width:m.width+w[1]+w[3],height:m.height+w[0]+w[2],r:r.get("borderRadius")},style:T,subPixelOptimize:!0,silent:!0});a.add(C)}},e.type="title",e})(bt);function TB(t){t.registerComponentModel(bB),t.registerComponentView(wB)}var xB=function(t,e){if(e==="all")return{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}},Dd=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),r.selected=r.selected||{},this._updateSelector(r)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},e.prototype._updateSelector=function(r){var n=r.selector,i=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),W(n)&&I(n,function(a,o){q(a)&&(a={type:a}),n[o]=be(a,xB(i,a.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i<r.length;i++){var a=r[i].get("name");if(this.isSelected(a)){this.select(a),n=!0;break}}!n&&this.select(r[0].get("name"))}},e.prototype._updateData=function(r){var n=[],i=[];r.eachRawSeries(function(l){var u=l.name;i.push(u);var f;if(l.legendVisualProvider){var c=l.legendVisualProvider,v=c.getAllNames();r.isSeriesFiltered(l)||(i=i.concat(v)),v.length?n=n.concat(v):f=!0}else f=!0;f&&xc(l)&&n.push(l.name)}),this._availableNames=i;var a=this.get("data")||n,o=te(),s=$(a,function(l){return(q(l)||me(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new xe(l,this,this.ecModel))},this);this._data=Ue(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(r){var n=this.option.selected,i=this.get("selectedMode");if(i==="single"){var a=this._data;I(a,function(o){n[o.get("name")]=!1})}n[r]=!0},e.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},e.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},e.prototype.allSelect=function(){var r=this._data,n=this.option.selected;I(r,function(i){n[i.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;I(r,function(i){var a=i.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},e.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&fe(this._availableNames,r)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:Y.size.m,align:"auto",backgroundColor:Y.color.transparent,borderColor:Y.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:Y.color.disabled,inactiveBorderColor:Y.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:Y.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:Y.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:Y.color.tertiary,borderWidth:1,borderColor:Y.color.border},emphasis:{selectorLabel:{show:!0,color:Y.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e})(ye),ga=Oe,Md=I,Fu=Ce,Vw=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!1,r}return e.prototype.init=function(){this.group.add(this._contentGroup=new Fu),this.group.add(this._selectorGroup=new Fu),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(r,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,i,l,s,u);var f=Ji(r,i).refContainer,c=r.getBoxLayoutParams(),v=r.get("padding"),h=Vr(c,f,v),d=this.layoutInner(r,o,h,a,l,u),p=Vr(le({width:d.width,height:d.height},c),f,v);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=tB(d,r))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this.getContentGroup(),f=te(),c=n.get("selectedMode"),v=n.get("triggerEvent"),h=[];i.eachRawSeries(function(d){!d.get("legendHoverLink")&&h.push(d.id)}),Md(n.getData(),function(d,p){var g=this,m=d.get("name");if(!this.newlineDisabled&&(m===""||m===`
|
|
17
|
-
`)){var y=new
|
|
18
|
-
`||i==="")){var a=t.isSelected(i);tt(r,i)?r[i]=r[i]&&a:r[i]=a}}),r}function DB(t){t.registerAction("legendToggleSelect","legendselectchanged",Oe($o,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",Oe($o,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",Oe($o,"inverseSelect")),t.registerAction("legendSelect","legendselected",Oe($o,"select")),t.registerAction("legendUnSelect","legendunselected",Oe($o,"unSelect"))}var MB=Lc(IB);function IB(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(r){for(var n=0;n<e.length;n++)if(!e[n].isSelected(r.name))return!1;return!0})}function Uw(t){t.registerComponentModel(Dd),t.registerComponentView(Vw),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,MB),t.registerSubTypeDefaulter("legend",function(){return"plain"}),DB(t)}var LB=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},e.prototype.init=function(r,n,i){var a=So(r);t.prototype.init.call(this,r,n,i),Ww(this,r,a)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),Ww(this,this.option,r)},e.type="legend.scroll",e.defaultOption=m0(Dd.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:Y.color.accent50,pageIconInactiveColor:Y.color.accent10,pageIconSize:15,pageTextStyle:{color:Y.color.tertiary},animationDurationUpdate:800}),e})(Dd);function Ww(t,e,r){var n=t.getOrient(),i=[1,1];i[n.index]=0,fn(e,r,{type:"box",ignoreSize:!!i})}var Yw=Ce,Pd=["width","height"],Ed=["x","y"],PB=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!0,r._currentIndex=0,r}return e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new Yw),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Yw)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this;t.prototype.renderInner.call(this,r,n,i,a,o,s,l);var f=this._controllerGroup,c=n.get("pageIconSize",!0),v=W(c)?c:[c,c];d("pagePrev",0);var h=n.getModel("pageTextStyle");f.add(new Me({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(p,g){var m=p+"DataIndex",y=rh(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:de(u._pageGo,u,m,n,a)},{x:-v[0]/2,y:-v[1]/2,width:v[0],height:v[1]});y.name=p,f.add(y)}},e.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,f=Pd[u],c=Ed[u],v=Pd[1-u],h=Ed[1-u];o&&mo("horizontal",l,r.get("selectorItemGap",!0));var d=r.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],m=oe(i);o&&(m[f]=i[f]-p[f]-d);var y=this._layoutContentAndController(r,a,m,u,f,v,h,c);if(o){if(s==="end")g[u]+=y[f]+d;else{var _=p[f]+d;g[u]-=_,y[c]-=_}y[f]+=p[f]+d,g[1-u]+=y[h]+y[v]/2-p[v]/2,y[v]=Math.max(y[v],p[v]),y[h]=Math.min(y[h],p[h]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return y},e.prototype._layoutContentAndController=function(r,n,i,a,o,s,l,u){var f=this.getContentGroup(),c=this._containerGroup,v=this._controllerGroup;mo(r.get("orient"),f,r.get("itemGap"),a?i.width:null,a?null:i.height),mo("horizontal",v,r.get("pageButtonItemGap",!0));var h=f.getBoundingRect(),d=v.getBoundingRect(),p=this._showController=h[o]>i[o],g=[-h.x,-h.y];n||(g[a]=f[u]);var m=[0,0],y=[-d.x,-d.y],_=Z(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(p){var S=r.get("pageButtonPosition",!0);S==="end"?y[a]+=i[o]-d[o]:m[a]+=d[o]+_}y[1-a]+=h[s]/2-d[s]/2,f.setPosition(g),c.setPosition(m),v.setPosition(y);var b={x:0,y:0};if(b[o]=p?i[o]:h[o],b[s]=Math.max(h[s],d[s]),b[l]=Math.min(0,d[l]+y[1-a]),c.__rectSize=i[o],p){var w={x:0,y:0};w[o]=Math.max(i[o]-d[o]-_,0),w[s]=b[s],c.setClipPath(new De({shape:w})),c.__rectSize=w[o]}else v.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(r);return T.pageIndex!=null&&Ie(f,{x:T.contentPosition[0],y:T.contentPosition[1]},p?r:null),this._updatePageInfoView(r,T),b},e.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},e.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;I(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",v=n[c]!=null,h=i.childOfName(f);h&&(h.setStyle("fill",v?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),h.cursor=v?"pointer":"default")});var a=i.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",q(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=Pd[o],l=Ed[o],u=this._findTargetItemIndex(n),f=i.children(),c=f[u],v=f.length,h=v?1:0,d={contentPosition:[i.x,i.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var p=S(c);d.contentPosition[o]=-p.s;for(var g=u+1,m=p,y=p,_=null;g<=v;++g)_=S(f[g]),(!_&&y.e>m.s+a||_&&!b(_,m.s))&&(y.i>m.i?m=y:m=_,m&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=m.i),++d.pageCount)),y=_;for(var g=u-1,m=p,y=p,_=null;g>=-1;--g)_=S(f[g]),(!_||!b(y,_.s))&&m.i<y.i&&(y=m,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=m.i),++d.pageCount,++d.pageIndex),m=_;return d;function S(w){if(w){var T=w.getBoundingRect(),C=T[l]+w[l];return{s:C,e:C+T[s],i:w.__legendDataIndex}}}function b(w,T){return w.e>=T&&w.s<=T+a}},e.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===r&&(n=s)}),n??a},e.type="legend.scroll",e})(Vw);function EB(t){t.registerAction("legendScroll","legendscroll",function(e,r){var n=e.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:e},function(i){i.setScrollDataIndex(n)})})}function kB(t){rr(Uw),t.registerComponentModel(LB),t.registerComponentView(PB),EB(t)}function RB(t){rr(Uw),rr(kB)}var OB=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="dataset",r}return e.prototype.init=function(r,n,i){t.prototype.init.call(this,r,n,i),this._sourceManager=new G0(this),H0(this)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),H0(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:qt},e})(ye),NB=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="dataset",r}return e.type="dataset",e})(bt);function BB(t){t.registerComponentModel(OB),t.registerComponentView(NB)}var kd=Math.sin,Rd=Math.cos,$w=Math.PI,hi=Math.PI*2,FB=180/$w,Xw=(function(){function t(){}return t.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},t.prototype.moveTo=function(e,r){this._add("M",e,r)},t.prototype.lineTo=function(e,r){this._add("L",e,r)},t.prototype.bezierCurveTo=function(e,r,n,i,a,o){this._add("C",e,r,n,i,a,o)},t.prototype.quadraticCurveTo=function(e,r,n,i){this._add("Q",e,r,n,i)},t.prototype.arc=function(e,r,n,i,a,o){this.ellipse(e,r,n,n,0,i,a,o)},t.prototype.ellipse=function(e,r,n,i,a,o,s,l){var u=s-o,f=!l,c=Math.abs(u),v=Qr(c-hi)||(f?u>=hi:-u>=hi),h=u>0?u%hi:u%hi+hi,d=!1;v?d=!0:Qr(c)?d=!1:d=h>=$w==!!f;var p=e+n*Rd(o),g=r+i*kd(o);this._start&&this._add("M",p,g);var m=Math.round(a*FB);if(v){var y=1/this._p,_=(f?1:-1)*(hi-y);this._add("A",n,i,m,1,+f,e+n*Rd(o+_),r+i*kd(o+_)),y>.01&&this._add("A",n,i,m,0,+f,p,g)}else{var S=e+n*Rd(s),b=r+i*kd(s);this._add("A",n,i,m,+d,+f,S,b)}},t.prototype.rect=function(e,r,n,i){this._add("M",e,r),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(e,r,n,i,a,o,s,l,u){for(var f=[],c=this._p,v=1;v<arguments.length;v++){var h=arguments[v];if(isNaN(h)){this._invalid=!0;return}f.push(Math.round(h*c)/c)}this._d.push(e+f.join(" ")),this._start=e==="Z"},t.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},t.prototype.getStr=function(){return this._str},t})(),Od="none",zB=Math.round;function VB(t){var e=t.fill;return e!=null&&e!==Od}function GB(t){var e=t.stroke;return e!=null&&e!==Od}var Nd=["lineCap","miterLimit","lineJoin"],HB=$(Nd,function(t){return"stroke-"+t.toLowerCase()});function UB(t,e,r,n){var i=e.opacity==null?1:e.opacity;if(r instanceof Mt){t("opacity",i);return}if(VB(e)){var a=za(e.fill);t("fill",a.color);var o=e.fillOpacity!=null?e.fillOpacity*a.opacity*i:a.opacity*i;o<1&&t("fill-opacity",o)}else t("fill",Od);if(GB(e)){var s=za(e.stroke);t("stroke",s.color);var l=e.strokeNoScale?r.getLineScale():1,u=l?(e.lineWidth||0)/l:0,f=e.strokeOpacity!=null?e.strokeOpacity*s.opacity*i:s.opacity*i,c=e.strokeFirst;if(u!==1&&t("stroke-width",u),c&&t("paint-order",c?"stroke":"fill"),f<1&&t("stroke-opacity",f),e.lineDash){var v=Xv(r),h=v[0],d=v[1];h&&(d=zB(d||0),t("stroke-dasharray",h.join(",")),(d||n)&&t("stroke-dashoffset",d))}for(var p=0;p<Nd.length;p++){var g=Nd[p];if(e[g]!==qs[g]){var m=e[g]||qs[g];m&&t(HB[p],m)}}}}var qw="http://www.w3.org/2000/svg",Zw="http://www.w3.org/1999/xlink",WB="http://www.w3.org/2000/xmlns/",YB="http://www.w3.org/XML/1998/namespace",Kw="ecmeta_";function jw(t){return document.createElementNS(qw,t)}function ze(t,e,r,n,i){return{tag:t,attrs:r||{},children:n,text:i,key:e}}function $B(t,e){var r=[];if(e)for(var n in e){var i=e[n],a=n;i!==!1&&(i!==!0&&i!=null&&(a+='="'+i+'"'),r.push(a))}return"<"+t+" "+r.join(" ")+">"}function XB(t){return"</"+t+">"}function Bd(t,e){e=e||{};var r=e.newline?`
|
|
19
|
-
`:"";function n
|
|
20
|
-
`:"",i=" {"+n,a=n+"}",o=$(ce(t),function(l){return l+i+$(ce(t[l]),function(u){return u+":"+t[l][u]+";"}).join(n)+a}).join(n),s=$(ce(e),function(l){return"@keyframes "+l+i+$(ce(e[l]),function(u){return u+i+$(ce(e[l][u]),function(f){var c=e[l][u][f];return f==="d"&&(c='path("'+c+'")'),f+":"+c+";"}).join(n)+a}).join(n)+a}).join(n);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(n)}function Fd(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Qw(t,e,r,n){return ze("svg","root",{width:t,height:e,xmlns:qw,"xmlns:xlink":Zw,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+t+" "+e:!1},r)}var ZB=0;function Jw(){return ZB++}var eT={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"},vi="transform-origin";function KB(t,e,r){var n=z({},t.shape);z(n,e),t.buildPath(r,n);var i=new Xw;return i.reset(Eg(t)),r.rebuildPath(i,1),i.generateStr(),i.getStr()}function jB(t,e){var r=e.originX,n=e.originY;(r||n)&&(t[vi]=r+"px "+n+"px")}var QB={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function tT(t,e){var r=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[r]=t,r}function JB(t,e,r){var n=t.shape.paths,i={},a,o;if(I(n,function(l){var u=Fd(r.zrId);u.animation=!0,zu(l,{},u,!0);var f=u.cssAnims,c=u.cssNodes,v=ce(f),h=v.length;if(h){o=v[h-1];var d=f[o];for(var p in d){var g=d[p];i[p]=i[p]||{d:""},i[p].d+=g.d||""}for(var m in c){var y=c[m].animation;y.indexOf(o)>=0&&(a=y)}}}),!!a){e.d=!1;var s=tT(i,r);return a.replace(o,s)}}function rT(t){return q(t)?eT[t]?"cubic-bezier("+eT[t]+")":Bf(t)?t:"":""}function zu(t,e,r,n){var i=t.animators,a=i.length,o=[];if(t instanceof uy){var s=JB(t,e,r);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var l={},u=0;u<a;u++){var f=i[u],c=[f.getMaxTime()/1e3+"s"],v=rT(f.getClip().easing),h=f.getDelay();v?c.push(v):c.push("linear"),h&&c.push(h/1e3+"s"),f.getLoop()&&c.push("infinite");var d=c.join(" ");l[d]=l[d]||[d,[]],l[d][1].push(f)}function p(y){var _=y[1],S=_.length,b={},w={},T={},C="animation-timing-function";function D(Ae,he,Te){for(var J=Ae.getTracks(),se=Ae.getMaxTime(),pt=0;pt<J.length;pt++){var Re=J[pt];if(Re.needsAnimate()){var ir=Re.keyframes,gt=Re.propName;if(Te&&(gt=Te(gt)),gt)for(var ar=0;ar<ir.length;ar++){var _a=ir[ar],or=Math.round(_a.time/se*100)+"%",Xu=rT(_a.easing),Sa=_a.rawValue;(q(Sa)||me(Sa))&&(he[or]=he[or]||{},he[or][gt]=_a.rawValue,Xu&&(he[or][C]=Xu))}}}}for(var x=0;x<S;x++){var A=_[x],L=A.targetName;L?L==="shape"&&D(A,w):!n&&D(A,b)}for(var M in b){var P={};Na(P,t),z(P,b[M]);var E=kg(P),k=b[M][C];T[M]=E?{transform:E}:{},jB(T[M],P),k&&(T[M][C]=k)}var O,R=!0;for(var M in w){T[M]=T[M]||{};var N=!O,k=w[M][C];N&&(O=new tn);var F=O.len();O.reset(),T[M].d=KB(t,w[M],O);var B=O.len();if(!N&&F!==B){R=!1;break}k&&(T[M][C]=k)}if(!R)for(var M in T)delete T[M].d;if(!n)for(var x=0;x<S;x++){var A=_[x],L=A.targetName;L==="style"&&D(A,T,function(J){return QB[J]})}for(var G=ce(T),X=!0,H,x=1;x<G.length;x++){var K=G[x-1],ae=G[x];if(T[K][vi]!==T[ae][vi]){X=!1;break}H=T[K][vi]}if(X&&H){for(var M in T)T[M][vi]&&delete T[M][vi];e[vi]=H}if(Ue(G,function(Ae){return ce(T[Ae]).length>0}).length){var ke=tT(T,r);return ke+" "+y[0]+" both"}}for(var g in l){var s=p(l[g]);s&&o.push(s)}if(o.length){var m=r.zrId+"-cls-"+Jw();r.cssNodes["."+m]={animation:o.join(",")},e.class=m}}function eF(t,e,r){if(!t.ignore)if(t.isSilent()){var n={"pointer-events":"none"};nT(n,e,r)}else{var i=t.states.emphasis&&t.states.emphasis.style?t.states.emphasis.style:{},a=i.fill;if(!a){var o=t.style&&t.style.fill,s=t.states.select&&t.states.select.style&&t.states.select.style.fill,l=t.currentStates.indexOf("select")>=0&&s||o;l&&(a=Wf(l))}var u=i.lineWidth;if(u){var f=!i.strokeNoScale&&t.transform?t.transform[0]:1;u=u/f}var n={cursor:"pointer"};a&&(n.fill=a),i.stroke&&(n.stroke=i.stroke),u&&(n["stroke-width"]=u),nT(n,e,r)}}function nT(t,e,r,n){var i=JSON.stringify(t),a=r.cssStyleCache[i];a||(a=r.zrId+"-cls-"+Jw(),r.cssStyleCache[i]=a,r.cssNodes["."+a+":hover"]=t),e.class=e.class?e.class+" "+a:a}var Xo=Math.round;function iT(t){return t&&q(t.src)}function aT(t){return t&&ee(t.toDataURL)}function zd(t,e,r,n){UB(function(i,a){var o=i==="fill"||i==="stroke";o&&Pg(a)?cT(e,t,i,n):o&&$f(a)?hT(r,t,i,n):t[i]=a,o&&n.ssr&&a==="none"&&(t["pointer-events"]="visible")},e,r,!1),sF(r,t,n)}function Vd(t,e){var r=Nk(e);r&&(r.each(function(n,i){n!=null&&(t[(Kw+i).toLowerCase()]=n+"")}),e.isSilent()&&(t[Kw+"silent"]="true"))}function oT(t){return Qr(t[0]-1)&&Qr(t[1])&&Qr(t[2])&&Qr(t[3]-1)}function tF(t){return Qr(t[4])&&Qr(t[5])}function Gd(t,e,r){if(e&&!(tF(e)&&oT(e))){var n=1e4;t.transform=oT(e)?"translate("+Xo(e[4]*n)/n+" "+Xo(e[5]*n)/n+")":$C(e)}}function sT(t,e,r){for(var n=t.points,i=[],a=0;a<n.length;a++)i.push(Xo(n[a][0]*r)/r),i.push(Xo(n[a][1]*r)/r);e.points=i.join(" ")}function lT(t){return!t.smooth}function rF(t){var e=$(t,function(r){return typeof r=="string"?[r,r]:r});return function(r,n,i){for(var a=0;a<e.length;a++){var o=e[a],s=r[o[0]];s!=null&&(n[o[1]]=Xo(s*i)/i)}}}var nF={circle:[rF(["cx","cy","r"])],polyline:[sT,lT],polygon:[sT,lT]};function iF(t){for(var e=t.animators,r=0;r<e.length;r++)if(e[r].targetName==="shape")return!0;return!1}function uT(t,e){var r=t.style,n=t.shape,i=nF[t.type],a={},o=e.animation,s="path",l=t.style.strokePercent,u=e.compress&&Eg(t)||4;if(i&&!e.willUpdate&&!(i[1]&&!i[1](n))&&!(o&&iF(t))&&!(l<1)){s=t.type;var f=Math.pow(10,u);i[0](n,a,f)}else{var c=!t.path||t.shapeChanged();t.path||t.createPathProxy();var v=t.path;c&&(v.beginPath(),t.buildPath(v,t.shape),t.pathUpdated());var h=v.getVersion(),d=t,p=d.__svgPathBuilder;(d.__svgPathVersion!==h||!p||l!==d.__svgPathStrokePercent)&&(p||(p=d.__svgPathBuilder=new Xw),p.reset(u),v.rebuildPath(p,l),p.generateStr(),d.__svgPathVersion=h,d.__svgPathStrokePercent=l),a.d=p.getStr()}return Gd(a,t.transform),zd(a,r,t,e),Vd(a,t),e.animation&&zu(t,a,e),e.emphasis&&eF(t,a,e),ze(s,t.id+"",a)}function aF(t,e){var r=t.style,n=r.image;if(n&&!q(n)&&(iT(n)?n=n.src:aT(n)&&(n=n.toDataURL())),!!n){var i=r.x||0,a=r.y||0,o=r.width,s=r.height,l={href:n,width:o,height:s};return i&&(l.x=i),a&&(l.y=a),Gd(l,t.transform),zd(l,r,t,e),Vd(l,t),e.animation&&zu(t,l,e),ze("image",t.id+"",l)}}function oF(t,e){var r=t.style,n=r.text;if(n!=null&&(n+=""),!(!n||isNaN(r.x)||isNaN(r.y))){var i=r.font||Pr,a=r.x||0,o=qC(r.y||0,Ra(i),r.textBaseline),s=XC[r.textAlign]||r.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(nm(r)){var u="",f=r.fontStyle,c=tm(r.fontSize);if(!parseFloat(c))return;var v=r.fontFamily||Bp,h=r.fontWeight;u+="font-size:"+c+";font-family:"+v+";",f&&f!=="normal"&&(u+="font-style:"+f+";"),h&&h!=="normal"&&(u+="font-weight:"+h+";"),l.style=u}else l.style="font: "+i;return n.match(/\s/)&&(l["xml:space"]="preserve"),a&&(l.x=a),o&&(l.y=o),Gd(l,t.transform),zd(l,r,t,e),Vd(l,t),e.animation&&zu(t,l,e),ze("text",t.id+"",l,void 0,n)}}function fT(t,e){if(t instanceof pe)return uT(t,e);if(t instanceof Mt)return aF(t,e);if(t instanceof $a)return oF(t,e)}function sF(t,e,r){var n=t.style;if(ZC(n)){var i=KC(t),a=r.shadowCache,o=a[i];if(!o){var s=t.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var f=n.shadowOffsetX||0,c=n.shadowOffsetY||0,v=n.shadowBlur,h=za(n.shadowColor),d=h.opacity,p=h.color,g=v/2/l,m=v/2/u,y=g+" "+m;o=r.zrId+"-s"+r.shadowIdx++,r.defs[o]=ze("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[ze("feDropShadow","",{dx:f/l,dy:c/u,stdDeviation:y,"flood-color":p,"flood-opacity":d})]),a[i]=o}e.filter=Es(o)}}function cT(t,e,r,n){var i=t[r],a,o={gradientUnits:i.global?"userSpaceOnUse":"objectBoundingBox"};if(Ig(i))a="linearGradient",o.x1=i.x,o.y1=i.y,o.x2=i.x2,o.y2=i.y2;else if(Lg(i))a="radialGradient",o.cx=Z(i.x,.5),o.cy=Z(i.y,.5),o.r=Z(i.r,.5);else return;for(var s=i.colorStops,l=[],u=0,f=s.length;u<f;++u){var c=Yf(s[u].offset)*100+"%",v=s[u].color,h=za(v),d=h.color,p=h.opacity,g={offset:c};g["stop-color"]=d,p<1&&(g["stop-opacity"]=p),l.push(ze("stop",u+"",g))}var m=ze(a,"",o,l),y=Bd(m),_=n.gradientCache,S=_[y];S||(S=n.zrId+"-g"+n.gradientIdx++,_[y]=S,o.id=S,n.defs[S]=ze(a,S,o,l)),e[r]=Es(S)}function hT(t,e,r,n){var i=t.style[r],a=t.getBoundingRect(),o={},s=i.repeat,l=s==="no-repeat",u=s==="repeat-x",f=s==="repeat-y",c;if(Mg(i)){var v=i.imageWidth,h=i.imageHeight,d=void 0,p=i.image;if(q(p)?d=p:iT(p)?d=p.src:aT(p)&&(d=p.toDataURL()),typeof Image>"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";Wt(v,g),Wt(h,g)}else if(v==null||h==null){var m=function(x,A){if(x){var L=x.elm,M=v||A.width,P=h||A.height;x.tag==="pattern"&&(u?(P=1,M/=a.width):f&&(M=1,P/=a.height)),x.attrs.width=M,x.attrs.height=P,L&&(L.setAttribute("width",M),L.setAttribute("height",P))}},y=mf(d,null,t,function(x){l||m(w,x),m(c,x)});y&&y.width&&y.height&&(v=v||y.width,h=h||y.height)}c=ze("image","img",{href:d,width:v,height:h}),o.width=v,o.height=h}else i.svgElement&&(c=oe(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(c){var _,S;l?_=S=1:u?(S=1,_=o.width/a.width):f?(_=1,S=o.height/a.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),S!=null&&!isNaN(S)&&(o.height=S);var b=kg(i);b&&(o.patternTransform=b);var w=ze("pattern","",o,[c]),T=Bd(w),C=n.patternCache,D=C[T];D||(D=n.zrId+"-p"+n.patternIdx++,C[T]=D,o.id=D,w=n.defs[D]=ze("pattern",D,o,[c])),e[r]=Es(D)}}function lF(t,e,r){var n=r.clipPathCache,i=r.defs,a=n[t.id];if(!a){a=r.zrId+"-c"+r.clipPathIdx++;var o={id:a};n[t.id]=a,i[a]=ze("clipPath",a,o,[uT(t,r)])}e["clip-path"]=Es(a)}function vT(t){return document.createTextNode(t)}function di(t,e,r){t.insertBefore(e,r)}function dT(t,e){t.removeChild(e)}function pT(t,e){t.appendChild(e)}function gT(t){return t.parentNode}function mT(t){return t.nextSibling}function Hd(t,e){t.textContent=e}var yT=58,uF=120,fF=ze("","");function Ud(t){return t===void 0}function Ir(t){return t!==void 0}function cF(t,e,r){for(var n={},i=e;i<=r;++i){var a=t[i].key;a!==void 0&&(n[a]=i)}return n}function qo(t,e){var r=t.key===e.key,n=t.tag===e.tag;return n&&r}function Zo(t){var e,r=t.children,n=t.tag;if(Ir(n)){var i=t.elm=jw(n);if(Wd(fF,t),W(r))for(e=0;e<r.length;++e){var a=r[e];a!=null&&pT(i,Zo(a))}else Ir(t.text)&&!j(t.text)&&pT(i,vT(t.text))}else t.elm=vT(t.text);return t.elm}function _T(t,e,r,n,i){for(;n<=i;++n){var a=r[n];a!=null&&di(t,Zo(a),e)}}function Vu(t,e,r,n){for(;r<=n;++r){var i=e[r];if(i!=null)if(Ir(i.tag)){var a=gT(i.elm);dT(a,i.elm)}else dT(t,i.elm)}}function Wd(t,e){var r,n=e.elm,i=t&&t.attrs||{},a=e.attrs||{};if(i!==a){for(r in a){var o=a[r],s=i[r];s!==o&&(o===!0?n.setAttribute(r,""):o===!1?n.removeAttribute(r):r==="style"?n.style.cssText=o:r.charCodeAt(0)!==uF?n.setAttribute(r,o):r==="xmlns:xlink"||r==="xmlns"?n.setAttributeNS(WB,r,o):r.charCodeAt(3)===yT?n.setAttributeNS(YB,r,o):r.charCodeAt(5)===yT?n.setAttributeNS(Zw,r,o):n.setAttribute(r,o))}for(r in i)r in a||n.removeAttribute(r)}}function hF(t,e,r){for(var n=0,i=0,a=e.length-1,o=e[0],s=e[a],l=r.length-1,u=r[0],f=r[l],c,v,h,d;n<=a&&i<=l;)o==null?o=e[++n]:s==null?s=e[--a]:u==null?u=r[++i]:f==null?f=r[--l]:qo(o,u)?(ma(o,u),o=e[++n],u=r[++i]):qo(s,f)?(ma(s,f),s=e[--a],f=r[--l]):qo(o,f)?(ma(o,f),di(t,o.elm,mT(s.elm)),o=e[++n],f=r[--l]):qo(s,u)?(ma(s,u),di(t,s.elm,o.elm),s=e[--a],u=r[++i]):(Ud(c)&&(c=cF(e,n,a)),v=c[u.key],Ud(v)?di(t,Zo(u),o.elm):(h=e[v],h.tag!==u.tag?di(t,Zo(u),o.elm):(ma(h,u),e[v]=void 0,di(t,h.elm,o.elm))),u=r[++i]);(n<=a||i<=l)&&(n>a?(d=r[l+1]==null?null:r[l+1].elm,_T(t,d,r,i,l)):Vu(t,e,n,a))}function ma(t,e){var r=e.elm=t.elm,n=t.children,i=e.children;t!==e&&(Wd(t,e),Ud(e.text)?Ir(n)&&Ir(i)?n!==i&&hF(r,n,i):Ir(i)?(Ir(t.text)&&Hd(r,""),_T(r,null,i,0,i.length-1)):Ir(n)?Vu(r,n,0,n.length-1):Ir(t.text)&&Hd(r,""):t.text!==e.text&&(Ir(n)&&Vu(r,n,0,n.length-1),Hd(r,e.text)))}function vF(t,e){if(qo(t,e))ma(t,e);else{var r=t.elm,n=gT(r);Zo(e),n!==null&&(di(n,e.elm,mT(r)),Vu(n,[t],0,0))}return e}var dF=0,pF=(function(){function t(e,r,n){if(this.type="svg",this.configLayer=gF(),this.storage=r,this._opts=n=z({},n),this.root=e,this._id="zr"+dF++,this._oldVNode=Qw(n.width,n.height),e&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=jw("svg");Wd(null,this._oldVNode),i.appendChild(a),e.appendChild(i)}this.resize(n.width,n.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",vF(this._oldVNode,e),this._oldVNode=e}},t.prototype.renderOneToVNode=function(e){return fT(e,Fd(this._id))},t.prototype.renderToVNode=function(e){e=e||{};var r=this.storage.getDisplayList(!0),n=this._width,i=this._height,a=Fd(this._id);a.animation=e.animation,a.willUpdate=e.willUpdate,a.compress=e.compress,a.emphasis=e.emphasis,a.ssr=this._opts.ssr;var o=[],s=this._bgVNode=mF(n,i,this._backgroundColor,a);s&&o.push(s);var l=e.compress?null:this._mainVNode=ze("g","main",{},[]);this._paintList(r,a,l?l.children:o),l&&o.push(l);var u=$(ce(a.defs),function(v){return a.defs[v]});if(u.length&&o.push(ze("defs","defs",{},u)),e.animation){var f=qB(a.cssNodes,a.cssAnims,{newline:!0});if(f){var c=ze("style","stl",{},[],f);o.push(c)}}return Qw(n,i,o,e.useViewBox)},t.prototype.renderToString=function(e){return e=e||{},Bd(this.renderToVNode({animation:Z(e.cssAnimation,!0),emphasis:Z(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Z(e.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(e,r,n){for(var i=e.length,a=[],o=0,s,l,u=0,f=0;f<i;f++){var c=e[f];if(!c.invisible){var v=c.__clipPaths,h=v&&v.length||0,d=l&&l.length||0,p=void 0;for(p=Math.max(h-1,d-1);p>=0&&!(v&&l&&v[p]===l[p]);p--);for(var g=d-1;g>p;g--)o--,s=a[o-1];for(var m=p+1;m<h;m++){var y={};lF(v[m],y,r);var _=ze("g","clip-g-"+u++,y,[]);(s?s.children:n).push(_),a[o++]=_,s=_}l=v;var S=fT(c,r);S&&(s?s.children:n).push(S)}}},t.prototype.resize=function(e,r){var n=this._opts,i=this.root,a=this._viewport;if(e!=null&&(n.width=e),r!=null&&(n.height=r),i&&a&&(a.style.display="none",e=Z1(i,0,n),r=Z1(i,1,n),a.style.display=""),this._width!==e||this._height!==r){if(this._width=e,this._height=r,a){var o=a.style;o.width=e+"px",o.height=r+"px"}if($f(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",e),s.setAttribute("height",r));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",e),l.setAttribute("height",r))}}},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},t.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},t.prototype.toDataURL=function(e){var r=this.renderToString(),n="data:image/svg+xml;";return e?(r=QC(r),r&&n+"base64,"+r):n+"charset=UTF-8,"+encodeURIComponent(r)},t})();function gF(t){return function(){}}function mF(t,e,r,n){var i;if(r&&r!=="none")if(i=ze("rect","bg",{width:t,height:e,x:"0",y:"0"}),Pg(r))cT({fill:r},i.attrs,"fill",n);else if($f(r))hT({style:{fill:r},dirty:We,getBoundingRect:function(){return{width:t,height:e}}},i.attrs,"fill",n);else{var a=za(r),o=a.color,s=a.opacity;i.attrs.fill=o,s<1&&(i.attrs["fill-opacity"]=s)}return i}function yF(t){t.registerPainter("svg",pF)}rr([WE,t2,ok,eN,hN,DN,yN,eB,SB,RB,TB,BB,yF]);const ST=new Set;function _F(){const e=(Ta().components??[]).filter(r=>r!=null&&!ST.has(r));if(e.length!==0){rr(e);for(const r of e)ST.add(r)}}function SF(t){return Array.isArray(t)?t.map(e=>({...e})):[]}function bF(t,e){const r={...t,type:e?"value":"category"};return e?delete r.data:Array.isArray(r.data)||(r.data=["$data"]),r}function wF(t,e){const r={...t,type:e?"category":"value"};return e&&!Array.isArray(r.data)&&(r.data=["$data"]),e||delete r.data,r}function Gu(t,e){return Array.isArray(t)?t.map(r=>e({...r})):e(t&&typeof t=="object"?{...t}:{})}function Hu(t,e){const r=ur(t);if(!r)return e;const n=structuredClone(e),i=SF(n.series);if(i.length===0)return n;if(r.seriesType==="pie")return n.series=i.map(s=>({...s,type:"pie",...t==="doughnutChart"?{radius:s.radius??["40%","70%"]}:{}})),delete n.xAxis,delete n.yAxis,n;if(r.seriesType==="scatter")return n.series=i.map(s=>({...s,type:"scatter"})),n.xAxis=Gu(n.xAxis,s=>({...s,type:"value",data:void 0})),n.yAxis=Gu(n.yAxis,s=>({...s,type:"value",data:void 0})),n;if(r.seriesType==="radar")return n.series=i.map(s=>({...s,type:"radar"})),n;if(r.seriesType==="funnel")return n.series=i.map(s=>({...s,type:"funnel",sort:"descending"})),n;if(r.seriesType==="gauge")return n.series=i.map(s=>({...s,type:"gauge"})),n;const a=r.orientation==="horizontal",o=r.seriesType==="line"?"line":"bar";return n.xAxis=Gu(n.xAxis,s=>bF(s,a)),n.yAxis=Gu(n.yAxis,s=>wF(s,a)),n.series=i.map(s=>{const l={...s,type:o};return t==="areaChart"?l.areaStyle=s.areaStyle??{}:delete l.areaStyle,l}),n}const TF=96/25.4;function pi(t){const e=Number.isFinite(t)?t:0;return Math.max(1,Math.round(e*TF))}function bT(t,e,r){const n=/<svg\b[^>]*>/i.exec(t);if(!n)return t;const i=n[0],a=i.slice(4,-1),s=(/\sstyle\s*=\s*"([^"]*)"/i.exec(a)?.[1]??"").split(";").map(c=>c.trim()).filter(c=>c&&!/^(width|height|display)\s*:/i.test(c)).join(";"),l=a.replace(/\s(width|height|style|viewBox)\s*=\s*"[^"]*"/gi,"").trimEnd(),u=["display:block","width:100%","height:100%",s].filter(Boolean).join(";"),f=`<svg${l} width="100%" height="100%" viewBox="0 0 ${e} ${r}" style="${u}">`;return t.slice(0,n.index)+f+t.slice(n.index+i.length)}function Yd(t){_F();const e=Hu(t.type,t.option);if(!e||typeof e!="object"||Array.isArray(e))throw new Error("图表 option 非法:需要对象");const r=pi(t.widthMm),n=pi(t.heightMm),i=fO(null,null,{renderer:"svg",ssr:!0,width:r,height:n});try{const a=e.textStyle&&typeof e.textStyle=="object"&&!Array.isArray(e.textStyle)?e.textStyle:void 0,o={...t.fontFamily?{fontFamily:t.fontFamily}:{},...a??{}};return i.setOption({animation:!1,...e,...Object.keys(o).length>0?{textStyle:o}:{}}),bT(i.renderToSVGString(),r,n)}finally{i.dispose()}}function xF(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function $d(t){const e=t._chartOption??t.chartOption,r=`<span>${xF(String(t.title??"图表"))}</span>`;if(!e||typeof e!="object"||Array.isArray(e))return r;try{return Yd({key:String(t.key??""),type:String(t.type??""),option:e,widthMm:Number(t.widthMm??0),heightMm:Number(t.heightMm??0),fontFamily:typeof t.fontFamily=="string"?t.fontFamily:void 0})}catch{return r}}const CF="2",wT={chartOption:{kind:"object",label:"图表 option"},chartDataSource:{kind:"text",label:"数据源"},chartCategoryField:{kind:"text",label:"类目字段"},chartValueFields:{kind:"object",label:"数值字段"},chartSeriesField:{kind:"text",label:"系列拆分字段"}},AF={...wT,chartBubble:{kind:"bool",label:"气泡大小"}},Ko=zT({id:wa,version:CF,kinds:ss.map(t=>({type:t.type,label:t.label,icon:t.icon,fixedHeight:!0,requiredOptionKeys:t.requiredOptionKeys,notes:t.notes,optionMeta:t.type==="scatterChart"?AF:wT,defaultOptions:e=>Np(t.type,e),binding:{bind:(e,r)=>Lp(t.type,e,r)}})),render:{html:$d,createRenderer:()=>({render:$d})}});let Uu;function jo(t,e){const r=VT(wa);if(!t&&!e){const a=sp(Ko);return Uu=a,a}const n={...Ko,designer:t??r?.designer??Ko.designer,render:{...Ko.render,...r?.render,...e}},i=sp(n);return Uu=i,i}function DF(t){return jo(t)}function MF(t){return jo(void 0,{executorBundle:t})}function IF(){Uu?.(),Uu=void 0}jo(),jo();const LF=Object.freeze(Object.defineProperty({__proto__:null,CHART_KINDS:Cp,CHART_KIND_DEFINITIONS:ss,CHART_PALETTES:af,CHART_PLUGIN:Ko,CHART_PLUGIN_ID:wa,bindChartData:Lp,chartFactoryDefaults:Np,configureChartPlugin:Ox,createDefaultChartOption:us,fitSvgRoot:bT,getChartKindDefinition:ur,getChartPalettes:Rp,getChartPluginConfig:Ta,getSampleCategories:Op,mmToChartPx:pi,normalizeChartOption:Hu,registerChartDesigner:DF,registerChartExecutorBundle:MF,registerChartPlugin:jo,renderChartElement:$d,renderChartToSvg:Yd,resolveChartPanelFields:Ap,uninstallChartPlugin:IF},Symbol.toStringTag,{value:"Module"})),TT=Symbol.for("worm-print-platform.element-ui-registry.v1"),xT=globalThis;function CT(){const t=xT[TT];if(t)return t;const e={entries:new Map,listeners:new Set,nextSeq:0};return xT[TT]=e,e}function AT(){for(const t of[...CT().listeners])try{t()}catch{}}function DT(t){if(!t||typeof t!="object")throw new Error("registerElementUI: 需要 ElementUI 对象");if(!Array.isArray(t.types)||t.types.length===0)throw new Error("registerElementUI: types 必须是非空数组");for(const e of t.types)if(!e||typeof e!="string")throw new Error("registerElementUI: types 内每项必须是非空字符串");if(typeof t.renderCanvas!="function")throw new Error(`registerElementUI: ${t.types.join(",")} 缺少 renderCanvas`);if(t.renderProperty!==void 0&&typeof t.renderProperty!="function")throw new Error(`registerElementUI: ${t.types.join(",")} 的 renderProperty 必须是函数`)}function PF(t){return DT(t),t}function EF(t){DT(t);const e=CT(),r=e.nextSeq++;for(const n of t.types)e.entries.set(n,{ui:t,seq:r});return AT(),()=>{let n=!1;for(const i of t.types)e.entries.get(i)?.ui===t&&(e.entries.delete(i),n=!0);n&&AT()}}const kF=[12,20,15];function Qo(t){try{return JSON.parse(JSON.stringify(t))}catch{return t}}function RF(t,e){if(!e||typeof e!="object"||Array.isArray(e))return{};const r=Qo(e),n=ur(t),i=[...Op()],a=[...kF],o=Array.isArray(r.series)?r.series:[],s=u=>{for(const f of o)Array.isArray(f.data)&&f.data.includes("$data")&&(f.data=u(f))},l=()=>{for(const u of["xAxis","yAxis"]){const f=Array.isArray(r[u])?r[u]:r[u]?[r[u]]:[];for(const c of f)c&&Array.isArray(c.data)&&c.data.includes("$data")&&(c.data=[...i])}};switch(n?.seriesType){case"pie":s(()=>i.map((u,f)=>({name:u,value:a[f]??10})));break;case"funnel":s(()=>i.map((u,f)=>({name:u,value:a[f]??10})));break;case"scatter":s(()=>a.map(u=>[u,u+6]));break;case"radar":r.radar={...r.radar??{},indicator:i.map(u=>({name:u,max:30}))},s(()=>[{name:"示例",value:a}]);break;case"gauge":s(()=>[{value:a[0]??40,name:"数量"}]);break;default:s(()=>[...a]),l();break}return r}function OF(t,e){const r=Array.isArray(t?.color)?(t?.color).map(String):[];return e.find(i=>i.colors.every((a,o)=>a===r[o])&&r.length===i.colors.length)?.key??"default"}function ya(t){return Array.isArray(t)?t[0]&&typeof t[0]=="object"?{...t[0]}:{}:t&&typeof t=="object"?{...t}:{}}function NF(t,e,r){const n=Qo(t),i=Array.isArray(n.series)?n.series:[],a=ur(r),o=i[0]??{type:a?.seriesType==="line"?"line":"bar",data:["$data"]};return n.series=Array.from({length:Math.max(e,1)},(s,l)=>({...o,...i[l]??{},data:["$data"]})),n}const Wu=t=>Math.round(t*10)/10;function Xd(t,e){return e>0?Wu(t/e*100):0}function Yu(t,e,r){if(typeof t=="string"&&t.trim().endsWith("%")){const n=Number.parseFloat(t);if(Number.isFinite(n))return Wu(n)}return typeof t=="number"&&Number.isFinite(t)?Xd(t,e):Xd(r,e)}function MT(t,e,r){return Math.min(r,Math.max(e,t))}function Jo(t){return`${MT(Wu(t),0,100)}%`}function BF(t){const r=(Array.isArray(t.series)?t.series:[])[0];return r&&typeof r=="object"?r:{}}function IT(t,e,r){const i=BF(t&&typeof t=="object"?t:{}),a=pi(e),o=pi(r);return{top:Yu(i.top,o,ls.top),right:Yu(i.right,a,ls.right),bottom:Yu(i.bottom,o,ls.bottom),left:Yu(i.left,a,ls.left)}}function FF(t,e){const r=Qo(t),n=Array.isArray(r.series)?r.series:[];n.length===0&&n.push({type:"funnel",data:["$data"]});const i=n[0];return i.top=Jo(e.top),i.right=Jo(e.right),i.bottom=Jo(e.bottom),i.left=Jo(e.left),r.series=n,r}function zF(t,e,r){const i=ya((t&&typeof t=="object"?t:{}).radar).radius,a=Array.isArray(i)?i[i.length-1]:i,o=pi(e),s=pi(r),l=Math.min(o,s)/2;if(typeof a=="string"&&a.trim().endsWith("%")){const u=Number.parseFloat(a);if(Number.isFinite(u))return Wu(u)}return typeof a=="number"&&Number.isFinite(a)?Xd(a,l):kx}function VF(t,e){const r=Qo(t);return r.radar={...ya(r.radar),radius:Jo(MT(e,20,100))},r}const LT="width:100%;height:100%;min-width:0;min-height:0;pointer-events:none",GF=[".echarts-canvas-element{overflow:hidden}",".echarts-field-row{display:flex;gap:6px;align-items:center}",".echarts-field-row>.pd-input{flex:1;min-width:0}",".echarts-field-row>.pd-button{flex:none}"].join(""),HF=["chartOption","chartDataSource","chartCategoryField","chartValueFields","chartSeriesField","chartBubble"],UF=["图表","echarts","option","配置","数据源","类目","数值","系列","柱状","条形","折线","面积","饼","环形","散点","雷达","漏斗","仪表"],WF="数据由模板绑定阶段注入:series/xAxis 的 data 保留 `$data` 占位即可;复杂样式可在模板 JSON 中手写 chartOption。";let YF=0;function $F(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function qd(t){return t.printElementType?.type??""}function PT(t){const e=t.options.chartOption;return e&&typeof e=="object"&&!Array.isArray(e)?e:void 0}function Ee(t){const e=PT(t);return Qo(e??us(qd(t)))}function XF(t){const e=t?.options;if(!e||typeof e!="object")return!1;const r=e;return HF.some(n=>r[n]!==void 0)}function dt(t,e,r,n={}){t.update({chartOption:Hu(e,r),...n})}function $u(t){const e=t.options.chartValueFields;return Array.isArray(e)?e.map(String):[]}function qF(t){switch(t?.seriesType){case"pie":case"funnel":case"gauge":return 1;case"scatter":return 2;default:return 8}}function ZF(t,e){return t?.seriesType==="radar"?"维度字段(每个字段一个维度)":e===1?"数值字段":"数值字段(多值多系列)"}function KF(t){const e=t?.[0];return e?Object.keys(e).filter(r=>Array.isArray(e[r])):[]}function gi(t){return Array.isArray(t.series)?t.series:[]}function Zd(t,e,r){return Math.min(r,Math.max(e,t))}function Kd(t,e,r){const n=NF(Ee(t.element),r.length,e);(Array.isArray(n.series)?n.series:[]).forEach((a,o)=>{const s=r[o]?.trim();s&&(a.name=s)}),dt(t,e,n,{chartValueFields:r})}function jF(t){const e=t.element,r=qd(e),n=e.options,i=Number(n.width)||0,a=Number(n.height)||0;try{const o=RF(r,PT(e)??us(r)),s=Hu(r,o);if(!s||typeof s!="object"||Array.isArray(s))throw new Error("图表 option 非法:需要对象");const l=typeof n.fontFamily=="string"&&n.fontFamily?n.fontFamily:void 0,u=Yd({key:e.id,type:r,option:s,widthMm:i,heightMm:a,fontFamily:l});return`<div class="echarts-canvas-element" style="${LT}">${u}</div>`}catch{const o=typeof n.title=="string"&&n.title.trim()?n.title:ur(r)?.label??"图表";return`<div class="echarts-canvas-element" style="${LT}">${$F(o)}</div>`}}function Je(t,e,r){const n=document.createElement(t);return e&&(n.className=e),r!==void 0&&(n.textContent=r),n}function nr(t){const e=Je("div","pd-field");return e.appendChild(Je("span","pd-label",t)),e}function Lr(t,e){const r=Je("input","pd-input");return t.type&&(r.type=t.type),t.placeholder&&(r.placeholder=t.placeholder),t.min!==void 0&&(r.min=String(t.min)),t.max!==void 0&&(r.max=String(t.max)),t.title&&(r.title=t.title),t.list&&r.setAttribute("list",t.list),r.value=t.value,r.addEventListener("change",()=>e(r.value)),r}function jd(t,e,r){const n=nr(t);n.style.cssText="flex-direction:row;align-items:center;justify-content:space-between";const i=Je("input","pd-switch");return i.type="checkbox",i.checked=e,i.addEventListener("change",()=>r(i.checked)),n.appendChild(i),n}function QF(t){const e=t.element,r=qd(e),n=ur(r),i=Ap(r),a=h=>i.includes(h),o=e.options,s=Number(o.width)||0,l=Number(o.height)||0,u=qF(n),f=Rp(),c=Je("div","echarts-property"),v=Je("form","pd-form");if(v.addEventListener("submit",h=>h.preventDefault()),c.appendChild(v),a("dataSource")){const h=nr("数据源"),d=KF(t.data);let p;if(d.length>0){p=Je("datalist"),p.id=`echarts-ds-${++YF}`;for(const g of d){const m=Je("option");m.value=g,p.appendChild(m)}}h.appendChild(Lr({value:String(o.chartDataSource??""),placeholder:"数据集路径(留空取顶层第一个数组)",list:p?.id},g=>dt(t,r,Ee(e),{chartDataSource:g}))),p&&h.appendChild(p),v.appendChild(h)}if(a("categoryField")){const h=nr("类目字段");h.appendChild(Lr({value:String(o.chartCategoryField??""),placeholder:"如 name"},d=>dt(t,r,Ee(e),{chartCategoryField:d}))),v.appendChild(h)}if(a("valueFields")){const h=nr(ZF(n,u)),d=$u(e);if(d.forEach((p,g)=>{const m=Je("div","echarts-field-row");if(m.appendChild(Lr({value:p,placeholder:"如 value"},y=>{const _=$u(e);_[g]=y,Kd(t,r,_)})),d.length>1){const y=Je("button","pd-button small","−");y.type="button",y.title="删除该字段",y.addEventListener("click",()=>Kd(t,r,$u(e).filter((_,S)=>S!==g))),m.appendChild(y)}h.appendChild(m)}),d.length<u){const p=Je("button","pd-button small","+ 添加字段");p.type="button",p.addEventListener("click",()=>Kd(t,r,[...$u(e),""])),h.appendChild(p)}v.appendChild(h)}if(a("seriesField")){const h=nr("系列拆分字段");h.appendChild(Lr({value:String(o.chartSeriesField??""),placeholder:"可选,如 region(按值拆成多系列)"},d=>dt(t,r,Ee(e),{chartSeriesField:d}))),v.appendChild(h)}if(a("bubble")&&v.appendChild(jd("气泡大小",o.chartBubble===!0,h=>{dt(t,r,Ee(e),{chartBubble:h})})),a("title")){const h=nr("图表标题");h.appendChild(Lr({value:String(ya(Ee(e).title).text??""),placeholder:"留空不显示标题"},d=>{const p=Ee(e);p.title={...ya(p.title),text:d},dt(t,r,p)})),v.appendChild(h)}if(a("legend")){const h=ya(Ee(e).legend).show!==!1;v.appendChild(jd("显示图例",h,d=>{const p=Ee(e);p.legend={...ya(p.legend),show:d},dt(t,r,p)}))}if(a("palette")){const h=nr("配色"),d=Je("select","pd-select");for(const p of f){const g=Je("option");g.value=p.key,g.textContent=p.label,d.appendChild(g)}d.value=OF(Ee(e),f),d.addEventListener("change",()=>{const p=f.find(m=>m.key===d.value)??f[0],g=Ee(e);g.color=[...p.colors],dt(t,r,g)}),h.appendChild(d),v.appendChild(h)}if(a("stack")){const d=gi(Ee(e)).some(p=>p.stack!==void 0&&p.stack!==null&&p.stack!=="");v.appendChild(jd("堆叠显示",d,p=>{const g=Ee(e);for(const m of gi(g))p?m.stack="total":delete m.stack;dt(t,r,g)}))}if(a("innerRadius")){const h=nr("内径(%)"),d=gi(Ee(e))[0]?.radius,p=Array.isArray(d)&&Number(String(d[0]??"40%").replace("%",""))||40;h.appendChild(Lr({value:String(p),type:"number",min:0,max:90},g=>{const m=Ee(e),y=gi(m);y[0]&&(y[0].radius=[`${Zd(Number(g)||0,0,90)}%`,"70%"]),dt(t,r,m)})),v.appendChild(h)}if(a("padding")){const h=nr("内边距 上/右/下/左 (%)"),d=IT(Ee(e),s,l),p=Je("div","echarts-field-row"),g=[{side:"top",title:"上边距"},{side:"right",title:"右边距(留外置标签)"},{side:"bottom",title:"下边距"},{side:"left",title:"左边距"}];for(const{side:m,title:y}of g)p.appendChild(Lr({value:String(d[m]),type:"number",min:0,max:60,title:y},_=>{const S=Number(_),b=Number.isFinite(S)?Zd(S,0,60):Pp[m],w=Ee(e),T=IT(w,s,l);dt(t,r,FF(w,{...T,[m]:b}))}));h.appendChild(p),v.appendChild(h)}if(a("radius")){const h=nr("半径(%)");h.appendChild(Lr({value:String(zF(Ee(e),s,l)),type:"number",min:20,max:100},d=>{const p=Number(d),g=Number.isFinite(p)?Zd(p,20,100):Ep;dt(t,r,VF(Ee(e),g))})),v.appendChild(h)}if(a("gaugeRange")){const h=nr("最小 / 最大值"),d=gi(Ee(e)),p=Je("div","echarts-field-row");p.appendChild(Lr({value:String(Number(d[0]?.min??0)),type:"number"},g=>{const m=Ee(e),y=gi(m);y[0]&&(y[0].min=Number(g)||0),dt(t,r,m)})),p.appendChild(Lr({value:String(Number(d[0]?.max??100)),type:"number"},g=>{const m=Ee(e),y=gi(m);y[0]&&(y[0].max=Number(g)||100),dt(t,r,m)})),h.appendChild(p),v.appendChild(h)}return v.appendChild(Je("p","pd-hint",WF)),c}const JF=PF({types:Cp,renderCanvas:jF,renderProperty:QF,hasProperties:XF,group:"图表",searchKeywords:UF,styles:GF});let Qd;function e5(){return Qd?.(),Qd=EF(JF),Qd}e5();const t5={...LF};globalThis.WormPrintEcharts??=t5}));
|
|
40
|
+
`:"<br/>",g=c.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,g,u,Math.random()+"",o[0],o[1],h,null,f)})},e.prototype._showSeriesItemTooltip=function(r,a,n){var i=this._ecModel,o=ce(a),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,p=o.dataIndex,c=o.dataType,f=u.getData(c),h=this._renderMode,d=r.positionDefault,v=ps([f.getItemModel(p),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),m=v.get("trigger");if(!(m!=null&&m!=="item")){var g=u.getDataParams(p,c),y=new Ah;g.marker=y.makeTooltipMarker("item",pn(g.color),h);var b=rk(u.formatTooltip(p,!1,c)),k=v.get("order"),w=v.get("valueFormatter"),_=b.frag,x=_?hk(w?H({valueFormatter:w},_):_,y,h,k,i.get("useUTC"),v.get("textStyle")):b.text,T="item_"+u.name+"_"+p;this._showOrMove(v,function(){this._showTooltipContent(v,x,g,T,r.offsetX,r.offsetY,r.position,r.target,y)}),n({type:"showTip",dataIndexInside:p,dataIndex:f.getRawIndex(p),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(r,a,n){var i=this._renderMode==="html",o=ce(a),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(q(l)){var p=l;l={content:p,formatter:p},u=!0}u&&i&&l.content&&(l=le(l),l.content=pt(l.content));var c=[l],f=this._ecModel.getComponent(o.componentMainType,o.componentIndex);f&&c.push(f),c.push({formatter:l.content});var h=r.positionDefault,d=ps(c,this._tooltipModel,h?{position:h}:null),v=d.get("content"),m=Math.random()+"",g=new Ah;this._showOrMove(d,function(){var y=le(d.get("formatterParams")||{});this._showTooltipContent(d,v,y,m,r.offsetX,r.offsetY,r.position,a,g)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(r,a,n,i,o,s,l,u,p){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var c=this._tooltipContent;c.setEnterable(r.get("enterable"));var f=r.get("formatter");l=l||r.get("position");var h=a,d=this._getNearestPoint([o,s],n,r.get("trigger"),r.get("borderColor"),r.get("defaultBorderColor",!0)),v=d.color;if(f)if(q(f)){var m=r.ecModel.get("useUTC"),g=W(n)?n[0]:n,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;h=f,y&&(h=su(g.axisValue,h,m)),h=Jb(h,n,!0)}else if(re(f)){var b=ge(function(k,w){k===this._ticket&&(c.setContent(w,p,r,v,l),this._updatePosition(r,l,o,s,c,n,u))},this);this._ticket=i,h=f(n,i,b)}else h=f;c.setContent(h,p,r,v,l),c.show(r,v),this._updatePosition(r,l,o,s,c,n,u)}},e.prototype._getNearestPoint=function(r,a,n,i,o){if(n==="axis"||W(a))return{color:i||o};if(!W(a))return{color:i||a.color||a.borderColor}},e.prototype._updatePosition=function(r,a,n,i,o,s,l){var u=this._api.getWidth(),p=this._api.getHeight();a=a||r.get("position");var c=o.getSize(),f=r.get("align"),h=r.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),re(a)&&(a=a([n,i],s,o.el,d,{viewSize:[u,p],contentSize:c.slice()})),W(a))n=ee(a[0],u),i=ee(a[1],p);else if(J(a)){var v=a;v.width=c[0],v.height=c[1];var m=Yr(v,{width:u,height:p});n=m.x,i=m.y,f=null,h=null}else if(q(a)&&l){var g=jB(a,d,c,r.get("borderWidth"));n=g[0],i=g[1]}else{var g=XB(n,i,o,u,p,f?null:20,h?null:20);n=g[0],i=g[1]}if(f&&(n-=nP(f)?c[0]/2:f==="right"?c[0]:0),h&&(i-=nP(h)?c[1]/2:h==="bottom"?c[1]:0),qx(r)){var g=qB(n,i,o,u,p);n=g[0],i=g[1]}o.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(r,a){var n=this._lastDataByCoordSys,i=this._cbParamsList,o=!!n&&n.length===r.length;return o&&A(n,function(s,l){var u=s.dataByAxis||[],p=r[l]||{},c=p.dataByAxis||[];o=o&&u.length===c.length,o&&A(u,function(f,h){var d=c[h]||{},v=f.seriesDataIndices||[],m=d.seriesDataIndices||[];o=o&&f.value===d.value&&f.axisType===d.axisType&&f.axisId===d.axisId&&v.length===m.length,o&&A(v,function(g,y){var b=m[y];o=o&&g.seriesIndex===b.seriesIndex&&g.dataIndex===b.dataIndex}),i&&A(f.seriesDataIndices,function(g){var y=g.seriesIndex,b=a[y],k=i[y];b&&k&&k.data!==b.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=a,!!o},e.prototype._hide=function(r){this._lastDataByCoordSys=null,this._cbParamsList=null,r({type:"hideTip",from:this.uid})},e.prototype.dispose=function(r,a){se.node||!a.getDom()||(id(this,"_updatePosition"),this._tooltipContent.dispose(),pv("itemTooltip",a),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},e.type="tooltip",e})(Dt);function ps(t,e,r){var a=e.ecModel,n;r?(n=new Ae(r,a,a),n=new Ae(e.option,n,a)):n=e;for(var i=t.length-1;i>=0;i--){var o=t[i];o&&(o instanceof Ae&&(o=o.get("tooltip",!0)),q(o)&&(o={formatter:o}),o&&(n=new Ae(o,n,a)))}return n}function aP(t,e){return t.dispatchAction||ge(e.dispatchAction,e)}function XB(t,e,r,a,n,i,o){var s=r.getSize(),l=s[0],u=s[1];return i!=null&&(t+l+i+2>a?t-=l+i:t+=i),o!=null&&(e+u+o>n?e-=u+o:e+=o),[t,e]}function qB(t,e,r,a,n){var i=r.getSize(),o=i[0],s=i[1];return t=Math.min(t+o,a)-o,e=Math.min(e+s,n)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function jB(t,e,r,a){var n=r[0],i=r[1],o=Math.ceil(Math.SQRT2*a)+8,s=0,l=0,u=e.width,p=e.height;switch(t){case"inside":s=e.x+u/2-n/2,l=e.y+p/2-i/2;break;case"top":s=e.x+u/2-n/2,l=e.y-i-o;break;case"bottom":s=e.x+u/2-n/2,l=e.y+p+o;break;case"left":s=e.x-n-o,l=e.y+p/2-i/2;break;case"right":s=e.x+u+o,l=e.y+p/2-i/2}return[s,l]}function nP(t){return t==="center"||t==="middle"}function ZB(t,e,r){var a=cf(t).queryOptionMap,n=a.keys()[0];if(!(!n||n==="series")){var i=yo(e,n,a.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var p=ce(u).tooltipConfig;if(p&&p.name===t.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}function QB(t){cr(Xx),t.registerComponentModel(OB),t.registerComponentView(KB),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},qe),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},qe)}var JB=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:$.size.m,backgroundColor:$.color.transparent,borderColor:$.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:$.color.primary},subtextStyle:{fontSize:12,color:$.color.quaternary}},e})(ke),eN=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,a,n){if(this.group.removeAll(),!!r.get("show")){var i=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=Z(r.get("textBaseline"),r.get("textVerticalAlign")),p=new Oe({style:Gt(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=p.getBoundingRect(),f=r.get("subtext"),h=new Oe({style:Gt(s,{text:f,fill:s.getTextColor(),y:c.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=r.get("link"),v=r.get("sublink"),m=r.get("triggerEvent",!0);p.silent=!d&&!m,h.silent=!v&&!m,d&&p.on("click",function(){ek(d,"_"+r.get("target"))}),v&&h.on("click",function(){ek(v,"_"+r.get("subtarget"))}),ce(p).eventData=ce(h).eventData=m?{componentType:"title",componentIndex:r.componentIndex}:null,i.add(p),f&&i.add(h);var g=i.getBoundingRect(),y=r.getBoxLayoutParams();y.width=g.width,y.height=g.height;var b=pi(r,n),k=Yr(y,b.refContainer,r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?k.x+=k.width:l==="center"&&(k.x+=k.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?k.y+=k.height:u==="middle"&&(k.y+=k.height/2),u=u||"top"),i.x=k.x,i.y=k.y,i.markRedraw();var w={align:l,verticalAlign:u};p.setStyle(w),h.setStyle(w),g=i.getBoundingRect();var _=k.margin,x=r.getItemStyle(["color","opacity"]);x.fill=r.get("backgroundColor");var T=new Ie({shape:{x:g.x-_[3],y:g.y-_[0],width:g.width+_[1]+_[3],height:g.height+_[0]+_[2],r:r.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});i.add(T)}},e.type="title",e})(Dt);function tN(t){t.registerComponentModel(JB),t.registerComponentView(eN)}var rN=function(t,e){if(e==="all")return{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}},fv=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.prototype.init=function(r,a,n){this.mergeDefaultAndTheme(r,n),r.selected=r.selected||{},this._updateSelector(r)},e.prototype.mergeOption=function(r,a){t.prototype.mergeOption.call(this,r,a),this._updateSelector(r)},e.prototype._updateSelector=function(r){var a=r.selector,n=this.ecModel;a===!0&&(a=r.selector=["all","inverse"]),W(a)&&A(a,function(i,o){q(i)&&(i={type:i}),a[o]=Pe(i,rN(n,i.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var a=!1,n=0;n<r.length;n++){var i=r[n].get("name");if(this.isSelected(i)){this.select(i),a=!0;break}}!a&&this.select(r[0].get("name"))}},e.prototype._updateData=function(r){var a=[],n=[];r.eachRawSeries(function(l){var u=l.name;n.push(u);var p;if(l.legendVisualProvider){var c=l.legendVisualProvider,f=c.getAllNames();r.isSeriesFiltered(l)||(n=n.concat(f)),f.length?a=a.concat(f):p=!0}else p=!0;p&&uf(l)&&a.push(l.name)}),this._availableNames=n;var i=this.get("data")||a,o=ae(),s=K(i,function(l){return(q(l)||be(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Ae(l,this,this.ecModel))},this);this._data=Xe(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(r){var a=this.option.selected,n=this.get("selectedMode");if(n==="single"){var i=this._data;A(i,function(o){a[o.get("name")]=!1})}a[r]=!0},e.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},e.prototype.toggleSelected=function(r){var a=this.option.selected;a.hasOwnProperty(r)||(a[r]=!0),this[a[r]?"unSelect":"select"](r)},e.prototype.allSelect=function(){var r=this._data,a=this.option.selected;A(r,function(n){a[n.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var r=this._data,a=this.option.selected;A(r,function(n){var i=n.get("name",!0);a.hasOwnProperty(i)||(a[i]=!0),a[i]=!a[i]})},e.prototype.isSelected=function(r){var a=this.option.selected;return!(a.hasOwnProperty(r)&&!a[r])&&fe(this._availableNames,r)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:$.size.m,align:"auto",backgroundColor:$.color.transparent,borderColor:$.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:$.color.disabled,inactiveBorderColor:$.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:$.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:$.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:$.color.tertiary,borderWidth:1,borderColor:$.color.border},emphasis:{selectorLabel:{show:!0,color:$.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e})(ke),Ci=ze,hv=A,up=Me,iP=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!1,r}return e.prototype.init=function(){this.group.add(this._contentGroup=new up),this.group.add(this._selectorGroup=new up),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(r,a,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,a,n,l,s,u);var p=pi(r,n).refContainer,c=r.getBoxLayoutParams(),f=r.get("padding"),h=Yr(c,p,f),d=this.layoutInner(r,o,h,i,l,u),v=Yr(pe({width:d.width,height:d.height},c),p,f);this.group.x=v.x-d.x,this.group.y=v.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=IB(d,r))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(r,a,n,i,o,s,l){var u=this.getContentGroup(),p=ae(),c=a.get("selectedMode"),f=a.get("triggerEvent"),h=[];n.eachRawSeries(function(d){!d.get("legendHoverLink")&&h.push(d.id)}),hv(a.getData(),function(d,v){var m=this,g=d.get("name");if(!this.newlineDisabled&&(g===""||g===`
|
|
41
|
+
`)){var y=new up;y.newline=!0,u.add(y);return}var b=n.getSeriesByName(g)[0];if(!p.get(g))if(b){var k=b.getData(),w=k.getVisual("legendLineStyle")||{},_=k.getVisual("legendIcon"),x=k.getVisual("style"),T=this._createItem(b,g,v,d,a,r,w,x,_,c,i);T.on("click",Ci(oP,g,null,i,h)).on("mouseover",Ci(dv,b.name,null,i,h)).on("mouseout",Ci(vv,b.name,null,i,h)),n.ssr&&T.eachChild(function(C){var P=ce(C);P.seriesIndex=b.seriesIndex,P.dataIndex=v,P.ssrType="legend"}),f&&T.eachChild(function(C){m.packEventData(C,a,b,v,g)}),p.set(g,!0)}else n.eachRawSeries(function(C){var P=this;if(!p.get(g)&&C.legendVisualProvider){var S=C.legendVisualProvider;if(!S.containName(g))return;var L=S.indexOfName(g),D=S.getItemVisual(L,"style"),M=S.getItemVisual(L,"legendIcon"),I=er(D.fill);I&&I[3]===0&&(I[3]=.2,D=H(H({},D),{fill:ao(I,"rgba")}));var E=this._createItem(C,g,v,d,a,r,{},D,M,c,i);E.on("click",Ci(oP,null,g,i,h)).on("mouseover",Ci(dv,null,g,i,h)).on("mouseout",Ci(vv,null,g,i,h)),n.ssr&&E.eachChild(function(O){var R=ce(O);R.seriesIndex=C.seriesIndex,R.dataIndex=v,R.ssrType="legend"}),f&&E.eachChild(function(O){P.packEventData(O,a,C,v,g)}),p.set(g,!0)}},this)},this),o&&this._createSelector(o,a,i,s,l)},e.prototype.packEventData=function(r,a,n,i,o){var s={componentType:"legend",componentIndex:a.componentIndex,dataIndex:i,value:o,seriesIndex:n.seriesIndex};ce(r).eventData=s},e.prototype._createSelector=function(r,a,n,i,o){var s=this.getSelectorGroup();hv(r,function(u){var p=u.type,c=new Oe({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:p==="all"?"legendAllSelect":"legendInverseSelect",legendId:a.id})}});s.add(c);var f=a.getModel("selectorLabel"),h=a.getModel(["emphasis","selectorLabel"]);an(c,{normal:f,emphasis:h},{defaultText:u.title}),Tf(c)})},e.prototype._createItem=function(r,a,n,i,o,s,l,u,p,c,f){var h=r.visualDrawType,d=o.get("itemWidth"),v=o.get("itemHeight"),m=o.isSelected(a),g=i.get("symbolRotate"),y=i.get("symbolKeepAspect"),b=i.get("icon");p=b||p||"roundRect";var k=aN(p,i,l,u,h,m,f),w=new up,_=i.getModel("textStyle");if(re(r.getLegendIcon)&&(!b||b==="inherit"))w.add(r.getLegendIcon({itemWidth:d,itemHeight:v,icon:p,iconRotate:g,itemStyle:k.itemStyle,lineStyle:k.lineStyle,symbolKeepAspect:y}));else{var x=b==="inherit"&&r.getData().getVisual("symbol")?g==="inherit"?r.getData().getVisual("symbolRotate"):g:0;w.add(nN({itemWidth:d,itemHeight:v,icon:p,iconRotate:x,itemStyle:k.itemStyle,symbolKeepAspect:y}))}var T=s==="left"?d+5:-5,C=s,P=o.get("formatter"),S=a;q(P)&&P?S=P.replace("{name}",a??""):re(P)&&(S=P(a));var L=m?_.getTextColor():i.get("inactiveColor");w.add(new Oe({style:Gt(_,{text:S,x:T,y:v/2,fill:L,align:C,verticalAlign:"middle"},{inheritColor:L})}));var D=new Ie({shape:w.getBoundingRect(),style:{fill:"transparent"}}),M=i.getModel("tooltip");return M.get("show")&&Ul({el:D,componentModel:o,itemName:a,itemTooltipOption:M.option}),w.add(D),w.eachChild(function(I){I.silent=!0}),D.silent=!c,this.getContentGroup().add(w),Tf(w),w.__legendDataIndex=n,w},e.prototype.layoutInner=function(r,a,n,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Bo(r.get("orient"),l,r.get("itemGap"),n.width,n.height);var p=l.getBoundingRect(),c=[-p.x,-p.y];if(u.markRedraw(),l.markRedraw(),o){Bo("horizontal",u,r.get("selectorItemGap",!0));var f=u.getBoundingRect(),h=[-f.x,-f.y],d=r.get("selectorButtonGap",!0),v=r.getOrient().index,m=v===0?"width":"height",g=v===0?"height":"width",y=v===0?"y":"x";s==="end"?h[v]+=p[m]+d:c[v]+=f[m]+d,h[1-v]+=p[g]/2-f[g]/2,u.x=h[0],u.y=h[1],l.x=c[0],l.y=c[1];var b={x:0,y:0};return b[m]=p[m]+d+f[m],b[g]=Math.max(p[g],f[g]),b[y]=Math.min(0,f[y]+h[1-v]),b}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e})(Dt);function aN(t,e,r,a,n,i,o){function s(m,g){m.lineWidth==="auto"&&(m.lineWidth=g.lineWidth>0?2:0),hv(m,function(y,b){m[b]==="inherit"&&(m[b]=g[b])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),p=t.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?a.decal:Bd(c,o),u.fill==="inherit"&&(u.fill=a[n]),u.stroke==="inherit"&&(u.stroke=a[p]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?a:r).opacity),s(u,a);var f=e.getModel("lineStyle"),h=f.getLineStyle();if(s(h,r),u.fill==="auto"&&(u.fill=a.fill),u.stroke==="auto"&&(u.stroke=a.fill),h.stroke==="auto"&&(h.stroke=a.fill),!i){var d=e.get("inactiveBorderWidth"),v=u[p];u.lineWidth=d==="auto"?a.lineWidth>0&&v?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),h.stroke=f.get("inactiveColor"),h.lineWidth=f.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function nN(t){var e=t.icon||"roundRect",r=Ir(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return r.setStyle(t.itemStyle),r.rotation=(t.iconRotate||0)*Math.PI/180,r.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill=$.color.neutral00,r.style.lineWidth=2),r}function oP(t,e,r,a){vv(t,e,r,a),r.dispatchAction({type:"legendToggleSelect",name:t??e}),dv(t,e,r,a)}function dv(t,e,r,a){r.usingTHL()||r.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:a})}function vv(t,e,r,a){r.usingTHL()||r.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:a})}function cs(t,e,r){var a=t==="allSelect"||t==="inverseSelect",n={},i=[];r.eachComponent({mainType:"legend",query:e},function(s){a?s[t]():s[t](e.name),sP(s,n),i.push(s.componentIndex)});var o={};return r.eachComponent("legend",function(s){A(n,function(l,u){s[l?"select":"unSelect"](u)}),sP(s,o)}),a?{selected:o,legendIndex:i}:{name:e.name,selected:o}}function sP(t,e){var r=e||{};return A(t.getData(),function(a){var n=a.get("name");if(!(n===`
|
|
42
|
+
`||n==="")){var i=t.isSelected(n);st(r,n)?r[n]=r[n]&&i:r[n]=i}}),r}function iN(t){t.registerAction("legendToggleSelect","legendselectchanged",ze(cs,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",ze(cs,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",ze(cs,"inverseSelect")),t.registerAction("legendSelect","legendselected",ze(cs,"select")),t.registerAction("legendUnSelect","legendunselected",ze(cs,"unSelect"))}var oN=vf(sN);function sN(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(r){for(var a=0;a<e.length;a++)if(!e[a].isSelected(r.name))return!1;return!0})}function lP(t){t.registerComponentModel(fv),t.registerComponentView(iP),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,oN),t.registerSubTypeDefaulter("legend",function(){return"plain"}),iN(t)}var lN=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},e.prototype.init=function(r,a,n){var i=zo(r);t.prototype.init.call(this,r,a,n),uP(this,r,i)},e.prototype.mergeOption=function(r,a){t.prototype.mergeOption.call(this,r,a),uP(this,this.option,r)},e.type="legend.scroll",e.defaultOption=Rb(fv.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:$.color.accent50,pageIconInactiveColor:$.color.accent10,pageIconSize:15,pageTextStyle:{color:$.color.tertiary},animationDurationUpdate:800}),e})(fv);function uP(t,e,r){var a=t.getOrient(),n=[1,1];n[a.index]=0,va(e,r,{type:"box",ignoreSize:!!n})}var pP=Me,gv=["width","height"],mv=["x","y"],uN=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!0,r._currentIndex=0,r}return e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new pP),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new pP)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(r,a,n,i,o,s,l){var u=this;t.prototype.renderInner.call(this,r,a,n,i,o,s,l);var p=this._controllerGroup,c=a.get("pageIconSize",!0),f=W(c)?c:[c,c];d("pagePrev",0);var h=a.getModel("pageTextStyle");p.add(new Oe({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(v,m){var g=v+"DataIndex",y=Vf(a.get("pageIcons",!0)[a.getOrient().name][m],{onclick:ge(u._pageGo,u,g,a,i)},{x:-f[0]/2,y:-f[1]/2,width:f[0],height:f[1]});y.name=v,p.add(y)}},e.prototype.layoutInner=function(r,a,n,i,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,p=gv[u],c=mv[u],f=gv[1-u],h=mv[1-u];o&&Bo("horizontal",l,r.get("selectorItemGap",!0));var d=r.get("selectorButtonGap",!0),v=l.getBoundingRect(),m=[-v.x,-v.y],g=le(n);o&&(g[p]=n[p]-v[p]-d);var y=this._layoutContentAndController(r,i,g,u,p,f,h,c);if(o){if(s==="end")m[u]+=y[p]+d;else{var b=v[p]+d;m[u]-=b,y[c]-=b}y[p]+=v[p]+d,m[1-u]+=y[h]+y[f]/2-v[f]/2,y[f]=Math.max(y[f],v[f]),y[h]=Math.min(y[h],v[h]+m[1-u]),l.x=m[0],l.y=m[1],l.markRedraw()}return y},e.prototype._layoutContentAndController=function(r,a,n,i,o,s,l,u){var p=this.getContentGroup(),c=this._containerGroup,f=this._controllerGroup;Bo(r.get("orient"),p,r.get("itemGap"),i?n.width:null,i?null:n.height),Bo("horizontal",f,r.get("pageButtonItemGap",!0));var h=p.getBoundingRect(),d=f.getBoundingRect(),v=this._showController=h[o]>n[o],m=[-h.x,-h.y];a||(m[i]=p[u]);var g=[0,0],y=[-d.x,-d.y],b=Z(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(v){var k=r.get("pageButtonPosition",!0);k==="end"?y[i]+=n[o]-d[o]:g[i]+=d[o]+b}y[1-i]+=h[s]/2-d[s]/2,p.setPosition(m),c.setPosition(g),f.setPosition(y);var w={x:0,y:0};if(w[o]=v?n[o]:h[o],w[s]=Math.max(h[s],d[s]),w[l]=Math.min(0,d[l]+y[1-i]),c.__rectSize=n[o],v){var _={x:0,y:0};_[o]=Math.max(n[o]-d[o]-b,0),_[s]=w[s],c.setClipPath(new Ie({shape:_})),c.__rectSize=_[o]}else f.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var x=this._getPageInfo(r);return x.pageIndex!=null&&Re(p,{x:x.contentPosition[0],y:x.contentPosition[1]},v?r:null),this._updatePageInfoView(r,x),w},e.prototype._pageGo=function(r,a,n){var i=this._getPageInfo(a)[r];i!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:a.id})},e.prototype._updatePageInfoView=function(r,a){var n=this._controllerGroup;A(["pagePrev","pageNext"],function(p){var c=p+"DataIndex",f=a[c]!=null,h=n.childOfName(p);h&&(h.setStyle("fill",f?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),h.cursor=f?"pointer":"default")});var i=n.childOfName("pageText"),o=r.get("pageFormatter"),s=a.pageIndex,l=s!=null?s+1:0,u=a.pageCount;i&&o&&i.setStyle("text",q(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(r){var a=r.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=r.getOrient().index,s=gv[o],l=mv[o],u=this._findTargetItemIndex(a),p=n.children(),c=p[u],f=p.length,h=f?1:0,d={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var v=k(c);d.contentPosition[o]=-v.s;for(var m=u+1,g=v,y=v,b=null;m<=f;++m)b=k(p[m]),(!b&&y.e>g.s+i||b&&!w(b,g.s))&&(y.i>g.i?g=y:g=b,g&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=g.i),++d.pageCount)),y=b;for(var m=u-1,g=v,y=v,b=null;m>=-1;--m)b=k(p[m]),(!b||!w(y,b.s))&&g.i<y.i&&(y=g,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=g.i),++d.pageCount,++d.pageIndex),g=b;return d;function k(_){if(_){var x=_.getBoundingRect(),T=x[l]+_[l];return{s:T,e:T+x[s],i:_.__legendDataIndex}}}function w(_,x){return _.e>=x&&_.s<=x+i}},e.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var a,n=this.getContentGroup(),i;return n.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===r&&(a=s)}),a??i},e.type="legend.scroll",e})(iP);function pN(t){t.registerAction("legendScroll","legendscroll",function(e,r){var a=e.scrollDataIndex;a!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:e},function(n){n.setScrollDataIndex(a)})})}function cN(t){cr(lP),t.registerComponentModel(lN),t.registerComponentView(uN),pN(t)}function fN(t){cr(lP),cr(cN)}var hN=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="dataset",r}return e.prototype.init=function(r,a,n){t.prototype.init.call(this,r,a,n),this._sourceManager=new ik(this),ok(this)},e.prototype.mergeOption=function(r,a){t.prototype.mergeOption.call(this,r,a),ok(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:ar},e})(ke),dN=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="dataset",r}return e.type="dataset",e})(Dt);function vN(t){t.registerComponentModel(hN),t.registerComponentView(dN)}var yv=Math.sin,bv=Math.cos,cP=Math.PI,kn=Math.PI*2,gN=180/cP,fP=(function(){function t(){}return t.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},t.prototype.moveTo=function(e,r){this._add("M",e,r)},t.prototype.lineTo=function(e,r){this._add("L",e,r)},t.prototype.bezierCurveTo=function(e,r,a,n,i,o){this._add("C",e,r,a,n,i,o)},t.prototype.quadraticCurveTo=function(e,r,a,n){this._add("Q",e,r,a,n)},t.prototype.arc=function(e,r,a,n,i,o){this.ellipse(e,r,a,a,0,n,i,o)},t.prototype.ellipse=function(e,r,a,n,i,o,s,l){var u=s-o,p=!l,c=Math.abs(u),f=na(c-kn)||(p?u>=kn:-u>=kn),h=u>0?u%kn:u%kn+kn,d=!1;f?d=!0:na(c)?d=!1:d=h>=cP==!!p;var v=e+a*bv(o),m=r+n*yv(o);this._start&&this._add("M",v,m);var g=Math.round(i*gN);if(f){var y=1/this._p,b=(p?1:-1)*(kn-y);this._add("A",a,n,g,1,+p,e+a*bv(o+b),r+n*yv(o+b)),y>.01&&this._add("A",a,n,g,0,+p,v,m)}else{var k=e+a*bv(s),w=r+n*yv(s);this._add("A",a,n,g,+d,+p,k,w)}},t.prototype.rect=function(e,r,a,n){this._add("M",e,r),this._add("l",a,0),this._add("l",0,n),this._add("l",-a,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(e,r,a,n,i,o,s,l,u){for(var p=[],c=this._p,f=1;f<arguments.length;f++){var h=arguments[f];if(isNaN(h)){this._invalid=!0;return}p.push(Math.round(h*c)/c)}this._d.push(e+p.join(" ")),this._start=e==="Z"},t.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},t.prototype.getStr=function(){return this._str},t})(),kv="none",mN=Math.round;function yN(t){var e=t.fill;return e!=null&&e!==kv}function bN(t){var e=t.stroke;return e!=null&&e!==kv}var wv=["lineCap","miterLimit","lineJoin"],kN=K(wv,function(t){return"stroke-"+t.toLowerCase()});function wN(t,e,r,a){var n=e.opacity==null?1:e.opacity;if(r instanceof Bt){t("opacity",n);return}if(yN(e)){var i=no(e.fill);t("fill",i.color);var o=e.fillOpacity!=null?e.fillOpacity*i.opacity*n:i.opacity*n;o<1&&t("fill-opacity",o)}else t("fill",kv);if(bN(e)){var s=no(e.stroke);t("stroke",s.color);var l=e.strokeNoScale?r.getLineScale():1,u=l?(e.lineWidth||0)/l:0,p=e.strokeOpacity!=null?e.strokeOpacity*s.opacity*n:s.opacity*n,c=e.strokeFirst;if(u!==1&&t("stroke-width",u),c&&t("paint-order",c?"stroke":"fill"),p<1&&t("stroke-opacity",p),e.lineDash){var f=Ed(r),h=f[0],d=f[1];h&&(d=mN(d||0),t("stroke-dasharray",h.join(",")),(d||a)&&t("stroke-dashoffset",d))}for(var v=0;v<wv.length;v++){var m=wv[v];if(e[m]!==bl[m]){var g=e[m]||bl[m];g&&t(kN[v],g)}}}}var hP="http://www.w3.org/2000/svg",dP="http://www.w3.org/1999/xlink",_N="http://www.w3.org/2000/xmlns/",xN="http://www.w3.org/XML/1998/namespace",vP="ecmeta_";function gP(t){return document.createElementNS(hP,t)}function We(t,e,r,a,n){return{tag:t,attrs:r||{},children:a,text:n,key:e}}function PN(t,e){var r=[];if(e)for(var a in e){var n=e[a],i=a;n!==!1&&(n!==!0&&n!=null&&(i+='="'+n+'"'),r.push(i))}return"<"+t+" "+r.join(" ")+">"}function SN(t){return"</"+t+">"}function _v(t,e){e=e||{};var r=e.newline?`
|
|
43
|
+
`:"";function a(n){var i=n.children,o=n.tag,s=n.attrs,l=n.text;return PN(o,s)+(o!=="style"?pt(l):l||"")+(i?""+r+K(i,function(u){return a(u)}).join(r)+r:"")+SN(o)}return a(t)}function TN(t,e,r){r=r||{};var a=r.newline?`
|
|
44
|
+
`:"",n=" {"+a,i=a+"}",o=K(he(t),function(l){return l+n+K(he(t[l]),function(u){return u+":"+t[l][u]+";"}).join(a)+i}).join(a),s=K(he(e),function(l){return"@keyframes "+l+n+K(he(e[l]),function(u){return u+n+K(he(e[l][u]),function(p){var c=e[l][u][p];return p==="d"&&(c='path("'+c+'")'),p+":"+c+";"}).join(a)+i}).join(a)+i}).join(a);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(a)}function xv(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function mP(t,e,r,a){return We("svg","root",{width:t,height:e,xmlns:hP,"xmlns:xlink":dP,version:"1.1",baseProfile:"full",viewBox:a?"0 0 "+t+" "+e:!1},r)}var CN=0;function yP(){return CN++}var bP={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"},wn="transform-origin";function DN(t,e,r){var a=H({},t.shape);H(a,e),t.buildPath(r,a);var n=new fP;return n.reset(jm(t)),r.rebuildPath(n,1),n.generateStr(),n.getStr()}function AN(t,e){var r=e.originX,a=e.originY;(r||a)&&(t[wn]=r+"px "+a+"px")}var LN={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function kP(t,e){var r=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[r]=t,r}function MN(t,e,r){var a=t.shape.paths,n={},i,o;if(A(a,function(l){var u=xv(r.zrId);u.animation=!0,pp(l,{},u,!0);var p=u.cssAnims,c=u.cssNodes,f=he(p),h=f.length;if(h){o=f[h-1];var d=p[o];for(var v in d){var m=d[v];n[v]=n[v]||{d:""},n[v].d+=m.d||""}for(var g in c){var y=c[g].animation;y.indexOf(o)>=0&&(i=y)}}}),!!i){e.d=!1;var s=kP(n,r);return i.replace(o,s)}}function wP(t){return q(t)?bP[t]?"cubic-bezier("+bP[t]+")":wc(t)?t:"":""}function pp(t,e,r,a){var n=t.animators,i=n.length,o=[];if(t instanceof C0){var s=MN(t,e,r);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u<i;u++){var p=n[u],c=[p.getMaxTime()/1e3+"s"],f=wP(p.getClip().easing),h=p.getDelay();f?c.push(f):c.push("linear"),h&&c.push(h/1e3+"s"),p.getLoop()&&c.push("infinite");var d=c.join(" ");l[d]=l[d]||[d,[]],l[d][1].push(p)}function v(y){var b=y[1],k=b.length,w={},_={},x={},T="animation-timing-function";function C(Ee,de,Ce){for(var te=Ee.getTracks(),ue=Ee.getMaxTime(),_t=0;_t<te.length;_t++){var Fe=te[_t];if(Fe.needsAnimate()){var fr=Fe.keyframes,xt=Fe.propName;if(Ce&&(xt=Ce(xt)),xt)for(var hr=0;hr<fr.length;hr++){var Ii=fr[hr],dr=Math.round(Ii.time/ue*100)+"%",Pp=wP(Ii.easing),Oi=Ii.rawValue;(q(Oi)||be(Oi))&&(de[dr]=de[dr]||{},de[dr][xt]=Ii.rawValue,Pp&&(de[dr][T]=Pp))}}}}for(var P=0;P<k;P++){var S=b[P],L=S.targetName;L?L==="shape"&&C(S,_):!a&&C(S,w)}for(var D in w){var M={};to(M,t),H(M,w[D]);var I=Zm(M),E=w[D][T];x[D]=I?{transform:I}:{},AN(x[D],M),E&&(x[D][T]=E)}var O,R=!0;for(var D in _){x[D]=x[D]||{};var B=!O,E=_[D][T];B&&(O=new sa);var N=O.len();O.reset(),x[D].d=DN(t,_[D],O);var F=O.len();if(!B&&N!==F){R=!1;break}E&&(x[D][T]=E)}if(!R)for(var D in x)delete x[D].d;if(!a)for(var P=0;P<k;P++){var S=b[P],L=S.targetName;L==="style"&&C(S,x,function(te){return LN[te]})}for(var U=he(x),Y=!0,z,P=1;P<U.length;P++){var j=U[P-1],ne=U[P];if(x[j][wn]!==x[ne][wn]){Y=!1;break}z=x[j][wn]}if(Y&&z){for(var D in x)x[D][wn]&&delete x[D][wn];e[wn]=z}if(Xe(U,function(Ee){return he(x[Ee]).length>0}).length){var De=kP(x,r);return De+" "+y[0]+" both"}}for(var m in l){var s=v(l[m]);s&&o.push(s)}if(o.length){var g=r.zrId+"-cls-"+yP();r.cssNodes["."+g]={animation:o.join(",")},e.class=g}}function EN(t,e,r){if(!t.ignore)if(t.isSilent()){var a={"pointer-events":"none"};_P(a,e,r)}else{var n=t.states.emphasis&&t.states.emphasis.style?t.states.emphasis.style:{},i=n.fill;if(!i){var o=t.style&&t.style.fill,s=t.states.select&&t.states.select.style&&t.states.select.style.fill,l=t.currentStates.indexOf("select")>=0&&s||o;l&&(i=Dc(l))}var u=n.lineWidth;if(u){var p=!n.strokeNoScale&&t.transform?t.transform[0]:1;u=u/p}var a={cursor:"pointer"};i&&(a.fill=i),n.stroke&&(a.stroke=n.stroke),u&&(a["stroke-width"]=u),_P(a,e,r)}}function _P(t,e,r,a){var n=JSON.stringify(t),i=r.cssStyleCache[n];i||(i=r.zrId+"-cls-"+yP(),r.cssStyleCache[n]=i,r.cssNodes["."+i+":hover"]=t),e.class=e.class?e.class+" "+i:i}var fs=Math.round;function xP(t){return t&&q(t.src)}function PP(t){return t&&re(t.toDataURL)}function Pv(t,e,r,a){wN(function(n,i){var o=n==="fill"||n==="stroke";o&&qm(i)?LP(e,t,n,a):o&&Lc(i)?MP(r,t,n,a):t[n]=i,o&&a.ssr&&i==="none"&&(t["pointer-events"]="visible")},e,r,!1),zN(r,t,a)}function Sv(t,e){var r=dI(e);r&&(r.each(function(a,n){a!=null&&(t[(vP+n).toLowerCase()]=a+"")}),e.isSilent()&&(t[vP+"silent"]="true"))}function SP(t){return na(t[0]-1)&&na(t[1])&&na(t[2])&&na(t[3]-1)}function IN(t){return na(t[4])&&na(t[5])}function Tv(t,e,r){if(e&&!(IN(e)&&SP(e))){var a=1e4;t.transform=SP(e)?"translate("+fs(e[4]*a)/a+" "+fs(e[5]*a)/a+")":PC(e)}}function TP(t,e,r){for(var a=t.points,n=[],i=0;i<a.length;i++)n.push(fs(a[i][0]*r)/r),n.push(fs(a[i][1]*r)/r);e.points=n.join(" ")}function CP(t){return!t.smooth}function ON(t){var e=K(t,function(r){return typeof r=="string"?[r,r]:r});return function(r,a,n){for(var i=0;i<e.length;i++){var o=e[i],s=r[o[0]];s!=null&&(a[o[1]]=fs(s*n)/n)}}}var RN={circle:[ON(["cx","cy","r"])],polyline:[TP,CP],polygon:[TP,CP]};function BN(t){for(var e=t.animators,r=0;r<e.length;r++)if(e[r].targetName==="shape")return!0;return!1}function DP(t,e){var r=t.style,a=t.shape,n=RN[t.type],i={},o=e.animation,s="path",l=t.style.strokePercent,u=e.compress&&jm(t)||4;if(n&&!e.willUpdate&&!(n[1]&&!n[1](a))&&!(o&&BN(t))&&!(l<1)){s=t.type;var p=Math.pow(10,u);n[0](a,i,p)}else{var c=!t.path||t.shapeChanged();t.path||t.createPathProxy();var f=t.path;c&&(f.beginPath(),t.buildPath(f,t.shape),t.pathUpdated());var h=f.getVersion(),d=t,v=d.__svgPathBuilder;(d.__svgPathVersion!==h||!v||l!==d.__svgPathStrokePercent)&&(v||(v=d.__svgPathBuilder=new fP),v.reset(u),f.rebuildPath(v,l),v.generateStr(),d.__svgPathVersion=h,d.__svgPathStrokePercent=l),i.d=v.getStr()}return Tv(i,t.transform),Pv(i,r,t,e),Sv(i,t),e.animation&&pp(t,i,e),e.emphasis&&EN(t,i,e),We(s,t.id+"",i)}function NN(t,e){var r=t.style,a=r.image;if(a&&!q(a)&&(xP(a)?a=a.src:PP(a)&&(a=a.toDataURL())),!!a){var n=r.x||0,i=r.y||0,o=r.width,s=r.height,l={href:a,width:o,height:s};return n&&(l.x=n),i&&(l.y=i),Tv(l,t.transform),Pv(l,r,t,e),Sv(l,t),e.animation&&pp(t,l,e),We("image",t.id+"",l)}}function FN(t,e){var r=t.style,a=r.text;if(a!=null&&(a+=""),!(!a||isNaN(r.x)||isNaN(r.y))){var n=r.font||Nr,i=r.x||0,o=TC(r.y||0,Ji(n),r.textBaseline),s=SC[r.textAlign]||r.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(wy(r)){var u="",p=r.fontStyle,c=by(r.fontSize);if(!parseFloat(c))return;var f=r.fontFamily||tm,h=r.fontWeight;u+="font-size:"+c+";font-family:"+f+";",p&&p!=="normal"&&(u+="font-style:"+p+";"),h&&h!=="normal"&&(u+="font-weight:"+h+";"),l.style=u}else l.style="font: "+n;return a.match(/\s/)&&(l["xml:space"]="preserve"),i&&(l.x=i),o&&(l.y=o),Tv(l,t.transform),Pv(l,r,t,e),Sv(l,t),e.animation&&pp(t,l,e),We("text",t.id+"",l,void 0,a)}}function AP(t,e){if(t instanceof me)return DP(t,e);if(t instanceof Bt)return NN(t,e);if(t instanceof co)return FN(t,e)}function zN(t,e,r){var a=t.style;if(CC(a)){var n=DC(t),i=r.shadowCache,o=i[n];if(!o){var s=t.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var p=a.shadowOffsetX||0,c=a.shadowOffsetY||0,f=a.shadowBlur,h=no(a.shadowColor),d=h.opacity,v=h.color,m=f/2/l,g=f/2/u,y=m+" "+g;o=r.zrId+"-s"+r.shadowIdx++,r.defs[o]=We("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[We("feDropShadow","",{dx:p/l,dy:c/u,stdDeviation:y,"flood-color":v,"flood-opacity":d})]),i[n]=o}e.filter=al(o)}}function LP(t,e,r,a){var n=t[r],i,o={gradientUnits:n.global?"userSpaceOnUse":"objectBoundingBox"};if(Km(n))i="linearGradient",o.x1=n.x,o.y1=n.y,o.x2=n.x2,o.y2=n.y2;else if(Xm(n))i="radialGradient",o.cx=Z(n.x,.5),o.cy=Z(n.y,.5),o.r=Z(n.r,.5);else return;for(var s=n.colorStops,l=[],u=0,p=s.length;u<p;++u){var c=Ac(s[u].offset)*100+"%",f=s[u].color,h=no(f),d=h.color,v=h.opacity,m={offset:c};m["stop-color"]=d,v<1&&(m["stop-opacity"]=v),l.push(We("stop",u+"",m))}var g=We(i,"",o,l),y=_v(g),b=a.gradientCache,k=b[y];k||(k=a.zrId+"-g"+a.gradientIdx++,b[y]=k,o.id=k,a.defs[k]=We(i,k,o,l)),e[r]=al(k)}function MP(t,e,r,a){var n=t.style[r],i=t.getBoundingRect(),o={},s=n.repeat,l=s==="no-repeat",u=s==="repeat-x",p=s==="repeat-y",c;if(Ym(n)){var f=n.imageWidth,h=n.imageHeight,d=void 0,v=n.image;if(q(v)?d=v:xP(v)?d=v.src:PP(v)&&(d=v.toDataURL()),typeof Image>"u"){var m="Image width/height must been given explictly in svg-ssr renderer.";Jt(f,m),Jt(h,m)}else if(f==null||h==null){var g=function(P,S){if(P){var L=P.elm,D=f||S.width,M=h||S.height;P.tag==="pattern"&&(u?(M=1,D/=i.width):p&&(D=1,M/=i.height)),P.attrs.width=D,P.attrs.height=M,L&&(L.setAttribute("width",D),L.setAttribute("height",M))}},y=tc(d,null,t,function(P){l||g(_,P),g(c,P)});y&&y.width&&y.height&&(f=f||y.width,h=h||y.height)}c=We("image","img",{href:d,width:f,height:h}),o.width=f,o.height=h}else n.svgElement&&(c=le(n.svgElement),o.width=n.svgWidth,o.height=n.svgHeight);if(c){var b,k;l?b=k=1:u?(k=1,b=o.width/i.width):p?(b=1,k=o.height/i.height):o.patternUnits="userSpaceOnUse",b!=null&&!isNaN(b)&&(o.width=b),k!=null&&!isNaN(k)&&(o.height=k);var w=Zm(n);w&&(o.patternTransform=w);var _=We("pattern","",o,[c]),x=_v(_),T=a.patternCache,C=T[x];C||(C=a.zrId+"-p"+a.patternIdx++,T[x]=C,o.id=C,_=a.defs[C]=We("pattern",C,o,[c])),e[r]=al(C)}}function HN(t,e,r){var a=r.clipPathCache,n=r.defs,i=a[t.id];if(!i){i=r.zrId+"-c"+r.clipPathIdx++;var o={id:i};a[t.id]=i,n[i]=We("clipPath",i,o,[DP(t,r)])}e["clip-path"]=al(i)}function EP(t){return document.createTextNode(t)}function _n(t,e,r){t.insertBefore(e,r)}function IP(t,e){t.removeChild(e)}function OP(t,e){t.appendChild(e)}function RP(t){return t.parentNode}function BP(t){return t.nextSibling}function Cv(t,e){t.textContent=e}var NP=58,VN=120,UN=We("","");function Dv(t){return t===void 0}function Br(t){return t!==void 0}function GN(t,e,r){for(var a={},n=e;n<=r;++n){var i=t[n].key;i!==void 0&&(a[i]=n)}return a}function hs(t,e){var r=t.key===e.key,a=t.tag===e.tag;return a&&r}function ds(t){var e,r=t.children,a=t.tag;if(Br(a)){var n=t.elm=gP(a);if(Av(UN,t),W(r))for(e=0;e<r.length;++e){var i=r[e];i!=null&&OP(n,ds(i))}else Br(t.text)&&!J(t.text)&&OP(n,EP(t.text))}else t.elm=EP(t.text);return t.elm}function FP(t,e,r,a,n){for(;a<=n;++a){var i=r[a];i!=null&&_n(t,ds(i),e)}}function cp(t,e,r,a){for(;r<=a;++r){var n=e[r];if(n!=null)if(Br(n.tag)){var i=RP(n.elm);IP(i,n.elm)}else IP(t,n.elm)}}function Av(t,e){var r,a=e.elm,n=t&&t.attrs||{},i=e.attrs||{};if(n!==i){for(r in i){var o=i[r],s=n[r];s!==o&&(o===!0?a.setAttribute(r,""):o===!1?a.removeAttribute(r):r==="style"?a.style.cssText=o:r.charCodeAt(0)!==VN?a.setAttribute(r,o):r==="xmlns:xlink"||r==="xmlns"?a.setAttributeNS(_N,r,o):r.charCodeAt(3)===NP?a.setAttributeNS(xN,r,o):r.charCodeAt(5)===NP?a.setAttributeNS(dP,r,o):a.setAttribute(r,o))}for(r in n)r in i||a.removeAttribute(r)}}function WN(t,e,r){for(var a=0,n=0,i=e.length-1,o=e[0],s=e[i],l=r.length-1,u=r[0],p=r[l],c,f,h,d;a<=i&&n<=l;)o==null?o=e[++a]:s==null?s=e[--i]:u==null?u=r[++n]:p==null?p=r[--l]:hs(o,u)?(Di(o,u),o=e[++a],u=r[++n]):hs(s,p)?(Di(s,p),s=e[--i],p=r[--l]):hs(o,p)?(Di(o,p),_n(t,o.elm,BP(s.elm)),o=e[++a],p=r[--l]):hs(s,u)?(Di(s,u),_n(t,s.elm,o.elm),s=e[--i],u=r[++n]):(Dv(c)&&(c=GN(e,a,i)),f=c[u.key],Dv(f)?_n(t,ds(u),o.elm):(h=e[f],h.tag!==u.tag?_n(t,ds(u),o.elm):(Di(h,u),e[f]=void 0,_n(t,h.elm,o.elm))),u=r[++n]);(a<=i||n<=l)&&(a>i?(d=r[l+1]==null?null:r[l+1].elm,FP(t,d,r,n,l)):cp(t,e,a,i))}function Di(t,e){var r=e.elm=t.elm,a=t.children,n=e.children;t!==e&&(Av(t,e),Dv(e.text)?Br(a)&&Br(n)?a!==n&&WN(r,a,n):Br(n)?(Br(t.text)&&Cv(r,""),FP(r,null,n,0,n.length-1)):Br(a)?cp(r,a,0,a.length-1):Br(t.text)&&Cv(r,""):t.text!==e.text&&(Br(a)&&cp(r,a,0,a.length-1),Cv(r,e.text)))}function $N(t,e){if(hs(t,e))Di(t,e);else{var r=t.elm,a=RP(r);ds(e),a!==null&&(_n(a,e.elm,BP(r)),cp(a,[t],0,0))}return e}var YN=0,KN=(function(){function t(e,r,a){if(this.type="svg",this.configLayer=XN(),this.storage=r,this._opts=a=H({},a),this.root=e,this._id="zr"+YN++,this._oldVNode=mP(a.width,a.height),e&&!a.ssr){var n=this._viewport=document.createElement("div");n.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=gP("svg");Av(null,this._oldVNode),n.appendChild(i),e.appendChild(n)}this.resize(a.width,a.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",$N(this._oldVNode,e),this._oldVNode=e}},t.prototype.renderOneToVNode=function(e){return AP(e,xv(this._id))},t.prototype.renderToVNode=function(e){e=e||{};var r=this.storage.getDisplayList(!0),a=this._width,n=this._height,i=xv(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var o=[],s=this._bgVNode=qN(a,n,this._backgroundColor,i);s&&o.push(s);var l=e.compress?null:this._mainVNode=We("g","main",{},[]);this._paintList(r,i,l?l.children:o),l&&o.push(l);var u=K(he(i.defs),function(f){return i.defs[f]});if(u.length&&o.push(We("defs","defs",{},u)),e.animation){var p=TN(i.cssNodes,i.cssAnims,{newline:!0});if(p){var c=We("style","stl",{},[],p);o.push(c)}}return mP(a,n,o,e.useViewBox)},t.prototype.renderToString=function(e){return e=e||{},_v(this.renderToVNode({animation:Z(e.cssAnimation,!0),emphasis:Z(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Z(e.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(e,r,a){for(var n=e.length,i=[],o=0,s,l,u=0,p=0;p<n;p++){var c=e[p];if(!c.invisible){var f=c.__clipPaths,h=f&&f.length||0,d=l&&l.length||0,v=void 0;for(v=Math.max(h-1,d-1);v>=0&&!(f&&l&&f[v]===l[v]);v--);for(var m=d-1;m>v;m--)o--,s=i[o-1];for(var g=v+1;g<h;g++){var y={};HN(f[g],y,r);var b=We("g","clip-g-"+u++,y,[]);(s?s.children:a).push(b),i[o++]=b,s=b}l=f;var k=AP(c,r);k&&(s?s.children:a).push(k)}}},t.prototype.resize=function(e,r){var a=this._opts,n=this.root,i=this._viewport;if(e!=null&&(a.width=e),r!=null&&(a.height=r),n&&i&&(i.style.display="none",e=h_(n,0,a),r=h_(n,1,a),i.style.display=""),this._width!==e||this._height!==r){if(this._width=e,this._height=r,i){var o=i.style;o.width=e+"px",o.height=r+"px"}if(Lc(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",e),s.setAttribute("height",r));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",e),l.setAttribute("height",r))}}},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},t.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},t.prototype.toDataURL=function(e){var r=this.renderToString(),a="data:image/svg+xml;";return e?(r=LC(r),r&&a+"base64,"+r):a+"charset=UTF-8,"+encodeURIComponent(r)},t})();function XN(t){return function(){}}function qN(t,e,r,a){var n;if(r&&r!=="none")if(n=We("rect","bg",{width:t,height:e,x:"0",y:"0"}),qm(r))LP({fill:r},n.attrs,"fill",a);else if(Lc(r))MP({style:{fill:r},dirty:qe,getBoundingRect:function(){return{width:t,height:e}}},n.attrs,"fill",a);else{var i=no(r),o=i.color,s=i.opacity;n.attrs.fill=o,s<1&&(n.attrs["fill-opacity"]=s)}return n}function jN(t){t.registerPainter("svg",KN)}cr([_4,I5,F4,ER,WR,iB,jR,EB,QB,fN,tN,vN,jN]);const zP=new Set;function ZN(){const e=(Ui().components??[]).filter(r=>r!=null&&!zP.has(r));if(e.length!==0){cr(e);for(const r of e)zP.add(r)}}const QN=96/25.4;function xn(t){const e=Number.isFinite(t)?t:0;return Math.max(1,Math.round(e*QN))}const JN=[12,20,15];function Ai(t){try{return JSON.parse(JSON.stringify(t))}catch{return t}}function e6(t,e){if(!e||typeof e!="object"||Array.isArray(e))return{};const r=Ai(e),a=Je(t),n=[...Jg()],i=[...JN],o=Array.isArray(r.series)?r.series:[],s=u=>{for(const p of o)Array.isArray(p.data)&&p.data.includes("$data")&&(p.data=u(p))},l=()=>{for(const u of["xAxis","yAxis"]){const p=Array.isArray(r[u])?r[u]:r[u]?[r[u]]:[];for(const c of p)c&&Array.isArray(c.data)&&c.data.includes("$data")&&(c.data=[...n])}};switch(a?.seriesType){case"pie":s(()=>n.map((u,p)=>({name:u,value:i[p]??10})));break;case"funnel":s(()=>n.map((u,p)=>({name:u,value:i[p]??10})));break;case"scatter":s(()=>i.map(u=>[u,u+6]));break;case"radar":r.radar={...r.radar??{},indicator:n.map(u=>({name:u,max:30}))},s(()=>[{name:"示例",value:i}]);break;case"gauge":s(()=>[{value:i[0]??40,name:"数量"}]);break;default:s(()=>[...i]),l();break}return r}function t6(t,e){const r=Array.isArray(t?.color)?(t?.color).map(String):[];return e.find(n=>n.colors.every((i,o)=>i===r[o])&&r.length===n.colors.length)?.key??"default"}function Li(t){return Array.isArray(t)?t[0]&&typeof t[0]=="object"?{...t[0]}:{}:t&&typeof t=="object"?{...t}:{}}function r6(t,e,r){const a=Ai(t),n=Array.isArray(a.series)?a.series:[],i=Je(r),o=n[0]??{type:i?.seriesType==="line"?"line":"bar",data:["$data"]};return a.series=Array.from({length:Math.max(e,1)},(s,l)=>({...o,...n[l]??{},data:["$data"]})),a}const fp=t=>Math.round(t*10)/10;function Lv(t,e){return e>0?fp(t/e*100):0}function hp(t,e,r){if(typeof t=="string"&&t.trim().endsWith("%")){const a=Number.parseFloat(t);if(Number.isFinite(a))return fp(a)}return typeof t=="number"&&Number.isFinite(t)?Lv(t,e):Lv(r,e)}function HP(t,e,r){return Math.min(r,Math.max(e,t))}function vs(t){return`${HP(fp(t),0,100)}%`}function a6(t){const r=(Array.isArray(t.series)?t.series:[])[0];return r&&typeof r=="object"?r:{}}function VP(t,e,r){const n=a6(t&&typeof t=="object"?t:{}),i=xn(e),o=xn(r);return{top:hp(n.top,o,Is.top),right:hp(n.right,i,Is.right),bottom:hp(n.bottom,o,Is.bottom),left:hp(n.left,i,Is.left)}}function n6(t,e){const r=Ai(t),a=Array.isArray(r.series)?r.series:[];a.length===0&&a.push({type:"funnel",data:["$data"]});const n=a[0];return n.top=vs(e.top),n.right=vs(e.right),n.bottom=vs(e.bottom),n.left=vs(e.left),r.series=a,r}function i6(t,e,r){const n=Li((t&&typeof t=="object"?t:{}).radar).radius,i=Array.isArray(n)?n[n.length-1]:n,o=xn(e),s=xn(r),l=Math.min(o,s)/2;if(typeof i=="string"&&i.trim().endsWith("%")){const u=Number.parseFloat(i);if(Number.isFinite(u))return fp(u)}return typeof i=="number"&&Number.isFinite(i)?Lv(i,l):cT}function o6(t,e){const r=Ai(t);return r.radar={...Li(r.radar),radius:vs(HP(e,20,100))},r}const s6=[{key:"value",label:"数值",labelKey:"echarts.label.formatter.value",formatter:"{c}"},{key:"name-value",label:"名称: 数值",labelKey:"echarts.label.formatter.nameValue",formatter:"{b}: {c}"},{key:"name",label:"名称",labelKey:"echarts.label.formatter.name",formatter:"{b}"},{key:"percent",label:"百分比",labelKey:"echarts.label.formatter.percent",formatter:"{d}%"}],l6={bar:[{value:"top",label:"顶部",labelKey:"echarts.label.position.bar.top"},{value:"inside",label:"内部",labelKey:"echarts.label.position.bar.inside"},{value:"insideTop",label:"内部顶端",labelKey:"echarts.label.position.bar.insideTop"},{value:"bottom",label:"底部",labelKey:"echarts.label.position.bar.bottom"},{value:"insideBottom",label:"内部底端",labelKey:"echarts.label.position.bar.insideBottom"},{value:"right",label:"右侧",labelKey:"echarts.label.position.bar.right"},{value:"left",label:"左侧",labelKey:"echarts.label.position.bar.left"},{value:"middle",label:"居中",labelKey:"echarts.label.position.bar.middle"}],line:[{value:"top",label:"顶部",labelKey:"echarts.label.position.line.top"},{value:"bottom",label:"底部",labelKey:"echarts.label.position.line.bottom"},{value:"inside",label:"内部",labelKey:"echarts.label.position.line.inside"},{value:"left",label:"左侧",labelKey:"echarts.label.position.line.left"},{value:"right",label:"右侧",labelKey:"echarts.label.position.line.right"}],pie:[{value:"outside",label:"外侧",labelKey:"echarts.label.position.pie.outside"},{value:"inside",label:"内部",labelKey:"echarts.label.position.pie.inside"},{value:"center",label:"中心",labelKey:"echarts.label.position.pie.center"}],scatter:[{value:"top",label:"顶部",labelKey:"echarts.label.position.scatter.top"},{value:"bottom",label:"底部",labelKey:"echarts.label.position.scatter.bottom"},{value:"left",label:"左侧",labelKey:"echarts.label.position.scatter.left"},{value:"right",label:"右侧",labelKey:"echarts.label.position.scatter.right"},{value:"inside",label:"内部",labelKey:"echarts.label.position.scatter.inside"}],radar:[{value:"top",label:"顶部",labelKey:"echarts.label.position.radar.top"},{value:"bottom",label:"底部",labelKey:"echarts.label.position.radar.bottom"},{value:"left",label:"左侧",labelKey:"echarts.label.position.radar.left"},{value:"right",label:"右侧",labelKey:"echarts.label.position.radar.right"},{value:"inside",label:"内部",labelKey:"echarts.label.position.radar.inside"}],funnel:[{value:"outer",label:"外侧",labelKey:"echarts.label.position.funnel.outer"},{value:"inner",label:"内部",labelKey:"echarts.label.position.funnel.inner"},{value:"left",label:"左侧",labelKey:"echarts.label.position.funnel.left"},{value:"right",label:"右侧",labelKey:"echarts.label.position.funnel.right"},{value:"top",label:"顶部",labelKey:"echarts.label.position.funnel.top"},{value:"bottom",label:"底部",labelKey:"echarts.label.position.funnel.bottom"}],gauge:[]},u6={bar:!1,line:!1,pie:!0,scatter:!1,radar:!1,funnel:!0,gauge:!0},p6={bar:{position:"top",fontSize:12},line:{position:"top",fontSize:12},pie:{position:"outside",overflow:"none",fontSize:11},scatter:{position:"top",fontSize:11},radar:{position:"top",fontSize:10},funnel:{position:"outer",fontSize:11},gauge:{fontSize:14}},c6={barHChart:{position:"right",fontSize:12}},f6={bar:["formatter","overflow","position","rotate","offset","fontSize","fontWeight","color","backgroundColor","borderColor","borderWidth","borderRadius","padding"],line:["formatter","overflow","position","rotate","offset","fontSize","fontWeight","color","backgroundColor","borderColor","borderWidth","borderRadius","padding"],pie:["formatter","overflow","position","distance","offset","fontSize","fontWeight","color","backgroundColor","borderColor","borderWidth","borderRadius","padding","labelLine.show","labelLine.length","labelLine.length2","labelLine.smooth"],scatter:["formatter","overflow","position","distance","rotate","offset","fontSize","fontWeight","color","backgroundColor","borderColor","borderWidth","borderRadius","padding"],radar:["formatter","fontSize","fontWeight","color"],funnel:["formatter","overflow","position","distance","fontSize","fontWeight","color","labelLine.show","labelLine.length","labelLine.smooth"],gauge:["formatter","fontSize","fontWeight","color","offset"]},h6=["formatter","overflow","position","distance","rotate","offset","fontSize","fontWeight","color","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function d6(t){const e=t?.series;return Array.isArray(e)?e:[]}function dp(t){return t&&typeof t=="object"&&!Array.isArray(t)?{...t}:{}}function Mv(t){typeof t.offsetX!="number"&&typeof t.offsetY!="number"||(Array.isArray(t.offset)||(t.offset=[typeof t.offsetX=="number"?t.offsetX:0,typeof t.offsetY=="number"?t.offsetY:0]),delete t.offsetX,delete t.offsetY)}function Ev(t){return Je(t)?.seriesType==="gauge"?"detail":"label"}function v6(t){const e=Je(t);return e?f6[e.seriesType]:[]}function g6(t,e){const r=Je(e),a=d6(t),n=dp(a[0]?.[Ev(e)]);Mv(n);const i={show:typeof n.show=="boolean"?n.show:r?u6[r.seriesType]:!1,labelLine:dp(a[0]?.labelLine)};for(const s of h6){const l=n[s];s!=="offset"&&(typeof l=="string"||typeof l=="number")&&(i[s]=l)}const o=n.offset;return Array.isArray(o)&&typeof o[0]=="number"&&typeof o[1]=="number"&&(i.offset=[o[0],o[1]]),i}function m6(t){const e=Je(t);return e?{...p6[e.seriesType],...c6[t]}:{}}function UP(t){return t==null||t===""}function y6(t,e,r){const a=Ai(t??{}),n=Array.isArray(a.series)?a.series:[];if(!Je(e)||n.length===0)return a;const o=Ev(e),{enabled:s,labelLine:l,...u}=r;for(const p of n){if(!p||typeof p!="object")continue;const c=dp(p[o]);Mv(c),s===!0?Object.assign(c,{...m6(e),...c,show:!0}):s===!1&&(c.show=!1);for(const[f,h]of Object.entries(u))UP(h)?delete c[f]:c[f]=h;if(l){const f=dp(p.labelLine);for(const[h,d]of Object.entries(l))UP(d)?delete f[h]:f[h]=d;p.labelLine=f}p[o]=c}return a}function b6(t){return Array.isArray(t)?t.map(e=>({...e})):[]}function k6(t,e){const r={...t,type:e?"value":"category"};return e?delete r.data:Array.isArray(r.data)||(r.data=["$data"]),r}function w6(t,e){const r={...t,type:e?"category":"value"};return e&&!Array.isArray(r.data)&&(r.data=["$data"]),e||delete r.data,r}function vp(t,e){return Array.isArray(t)?t.map(r=>e({...r})):e(t&&typeof t=="object"?{...t}:{})}function gp(t,e){const r=Je(t);if(!r)return e;const a=structuredClone(e),n=b6(a.series);if(n.length===0)return a;const i=Ev(t);for(const l of n){const u=l[i];if(u&&typeof u=="object"&&!Array.isArray(u)){const p={...u};Mv(p),l[i]=p}}if(r.seriesType==="pie")return a.series=n.map(l=>({...l,type:"pie",...t==="doughnutChart"?{radius:l.radius??["40%","70%"]}:{}})),delete a.xAxis,delete a.yAxis,a;if(r.seriesType==="scatter")return a.series=n.map(l=>({...l,type:"scatter"})),a.xAxis=vp(a.xAxis,l=>({...l,type:"value",data:void 0})),a.yAxis=vp(a.yAxis,l=>({...l,type:"value",data:void 0})),a;if(r.seriesType==="radar")return a.series=n.map(l=>({...l,type:"radar"})),a;if(r.seriesType==="funnel")return a.series=n.map(l=>({...l,type:"funnel",sort:"descending"})),a;if(r.seriesType==="gauge")return a.series=n.map(l=>({...l,type:"gauge"})),a;const o=r.orientation==="horizontal",s=r.seriesType==="line"?"line":"bar";return a.xAxis=vp(a.xAxis,l=>k6(l,o)),a.yAxis=vp(a.yAxis,l=>w6(l,o)),a.series=n.map(l=>{const u={...l,type:s};return t==="areaChart"?u.areaStyle=l.areaStyle??{}:delete u.areaStyle,u}),a}function GP(t,e,r){const a=/<svg\b[^>]*>/i.exec(t);if(!a)return t;const n=a[0],i=n.slice(4,-1),s=(/\sstyle\s*=\s*"([^"]*)"/i.exec(i)?.[1]??"").split(";").map(c=>c.trim()).filter(c=>c&&!/^(width|height|display)\s*:/i.test(c)).join(";"),l=i.replace(/\s(width|height|style|viewBox)\s*=\s*"[^"]*"/gi,"").trimEnd(),u=["display:block","width:100%","height:100%",s].filter(Boolean).join(";"),p=`<svg${l} width="100%" height="100%" viewBox="0 0 ${e} ${r}" style="${u}">`;return t.slice(0,a.index)+p+t.slice(a.index+n.length)}function Iv(t){ZN();const e=gp(t.type,t.option);if(!e||typeof e!="object"||Array.isArray(e))throw new Error("图表 option 非法:需要对象");const r=xn(t.widthMm),a=xn(t.heightMm),n=UO(null,null,{renderer:"svg",ssr:!0,width:r,height:a});try{const i=e.textStyle&&typeof e.textStyle=="object"&&!Array.isArray(e.textStyle)?e.textStyle:void 0,o={...t.fontFamily?{fontFamily:t.fontFamily}:{},...i??{}};return n.setOption({animation:!1,...e,...Object.keys(o).length>0?{textStyle:o}:{}}),GP(n.renderToSVGString(),r,a)}finally{n.dispose()}}function _6(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Ov(t){const e=t._chartOption??t.chartOption,r=`<span>${_6(String(t.title??"图表"))}</span>`;if(!e||typeof e!="object"||Array.isArray(e))return r;try{return Iv({key:String(t.key??""),type:String(t.type??""),option:e,widthMm:Number(t.widthMm??0),heightMm:Number(t.heightMm??0),fontFamily:typeof t.fontFamily=="string"?t.fontFamily:void 0})}catch{return r}}const x6="2",WP={chartOption:{kind:"object",label:Zt("echarts.meta.chartOption")},chartDataSource:{kind:"text",label:Zt("echarts.meta.dataSource")},chartCategoryField:{kind:"text",label:Zt("echarts.meta.categoryField")},chartValueFields:{kind:"object",label:Zt("echarts.meta.valueFields")},chartSeriesField:{kind:"text",label:Zt("echarts.meta.seriesField")}},P6={...WP,chartBubble:{kind:"bool",label:Zt("echarts.meta.bubbleSize")}},gs=y2({id:Vi,version:x6,kinds:Es.map(t=>({type:t.type,get label(){return Zt(t.labelKey)},icon:t.icon,fixedHeight:!0,requiredOptionKeys:t.requiredOptionKeys,get notes(){return Zt(t.notesKey)},optionMeta:t.type==="scatterChart"?P6:WP,defaultOptions:e=>em(t.type,e),binding:{bind:(e,r)=>Xg(t.type,e,r)}})),render:{html:Ov,createRenderer:()=>({render:Ov})}});let mp;function ms(t,e){const r=b2(Vi);if(!t&&!e){const i=Pg(gs);return mp=i,i}const a={...gs,designer:t??r?.designer??gs.designer,render:{...gs.render,...r?.render,...e}},n=Pg(a);return mp=n,n}function S6(t){return ms(t)}function T6(t){return ms(void 0,{executorBundle:t})}function C6(){mp?.(),mp=void 0}ms(),ms();const D6=Object.freeze(Object.defineProperty({__proto__:null,CHART_KINDS:Gg,CHART_KIND_DEFINITIONS:Es,CHART_PALETTES:Gp,CHART_PLUGIN:gs,CHART_PLUGIN_ID:Vi,bindChartData:Xg,chartFactoryDefaults:em,configureChartPlugin:hT,createDefaultChartOption:Os,fitSvgRoot:GP,getChartKindDefinition:Je,getChartPalettes:Qg,getChartPluginConfig:Ui,getSampleCategories:Jg,mmToChartPx:xn,normalizeChartOption:gp,registerChartDesigner:S6,registerChartExecutorBundle:T6,registerChartPlugin:ms,renderChartElement:Ov,renderChartToSvg:Iv,resolveChartPanelFields:Wg,uninstallChartPlugin:C6},Symbol.toStringTag,{value:"Module"})),A6={echarts:{"echarts.panel.chart":"图表","echarts.panel.config":"配置","echarts.panel.dataSource":"数据源","echarts.panel.category":"类目","echarts.panel.value":"数值","echarts.panel.series":"系列","echarts.panel.chartType.bar":"柱状","echarts.panel.chartType.barH":"条形","echarts.panel.chartType.line":"折线","echarts.panel.chartType.area":"面积","echarts.panel.chartType.pie":"饼","echarts.panel.chartType.doughnut":"环形","echarts.panel.chartType.scatter":"散点","echarts.panel.chartType.radar":"雷达","echarts.panel.chartType.funnel":"漏斗","echarts.panel.chartType.gauge":"仪表","echarts.panel.dataLabel":"数据标签","echarts.panel.valueLabel":"数值标签","echarts.panel.hint.dataBinding":"数据由模板绑定阶段注入:series/xAxis 的 data 保留 `$data` 占位即可;复杂样式可在模板 JSON 中手写 chartOption。","echarts.panel.field.dimension":"维度字段(每个字段一个维度)","echarts.panel.field.value":"数值字段","echarts.panel.field.valueMulti":"数值字段(多值多系列)","echarts.panel.default":"(默认)","echarts.panel.current":"(当前)","echarts.panel.defaultFirstArray":"(默认:顶层第一个数组)","echarts.panel.error.invalidOption":"图表 option 非法:需要对象","echarts.panel.chartFallback":"图表","echarts.panel.optionDefault":"(默认)","echarts.panel.overflow.default":"默认","echarts.panel.overflow.none":"不处理(显示完整)","echarts.panel.overflow.truncate":"截断","echarts.panel.overflow.break":"换行","echarts.panel.fontWeight.default":"默认","echarts.panel.fontWeight.normal":"常规","echarts.panel.fontWeight.bold":"加粗","echarts.panel.label.distance":"距离","echarts.panel.label.rotate":"旋转(度)","echarts.panel.label.fontSize":"字号","echarts.panel.label.fontWeight":"字重","echarts.panel.label.color":"文字颜色","echarts.panel.label.backgroundColor":"背景色","echarts.panel.label.borderColor":"边框色","echarts.panel.label.borderWidth":"边框宽度","echarts.panel.label.borderRadius":"圆角","echarts.panel.label.padding":"内边距","echarts.panel.label.show":"显示数据标签","echarts.panel.label.content":"内容","echarts.panel.label.formatterTitle":"数据标签内容","echarts.panel.label.formatterCustom":"自定义 / 默认","echarts.panel.label.formatterPlaceholder":"如 {b}: {c}","echarts.panel.label.overflow":"溢出处理","echarts.panel.label.position":"位置","echarts.panel.label.positionTitle":"标签位置","echarts.panel.label.positionDefault":"默认","echarts.panel.label.offset":"偏移 X / Y","echarts.panel.label.style":"样式","echarts.panel.labelLine.fontWeight":"字重","echarts.panel.labelLine":"引导线","echarts.panel.labelLine.show":"显示引导线","echarts.panel.labelLine.length":"引导线长度","echarts.panel.labelLine.length2":"第二段长度","echarts.panel.labelLine.smooth":"平滑引导线","echarts.panel.dataSourceTitle":"数据源","echarts.panel.categoryField":"类目字段","echarts.panel.removeField":"删除该字段","echarts.panel.addField":"+ 添加字段","echarts.panel.seriesField":"系列拆分字段","echarts.panel.seriesFieldHint":"可选,如 region(按值拆成多系列)","echarts.panel.bubbleSize":"气泡大小","echarts.panel.title":"图表标题","echarts.panel.titleHint":"留空不显示标题","echarts.panel.legend":"显示图例","echarts.panel.palette":"配色","echarts.palette.default":"默认蓝","echarts.palette.fresh":"清新绿","echarts.palette.warm":"暖橙红","echarts.palette.purple":"紫灰","echarts.panel.stack":"堆叠显示","echarts.panel.innerRadius":"内径(%)","echarts.panel.paddingTRBL":"内边距 上/右/下/左 (%)","echarts.panel.paddingTop":"上边距","echarts.panel.paddingRight":"右边距(留外置标签)","echarts.panel.paddingBottom":"下边距","echarts.panel.paddingLeft":"左边距","echarts.panel.radius":"半径(%)","echarts.panel.minMax":"最小 / 最大值","echarts.panel.group":"图表","echarts.series.typeNames.bar":"柱状图","echarts.series.typeNames.barH":"条形图","echarts.series.typeNames.line":"折线图","echarts.series.typeNames.area":"面积图","echarts.series.typeNames.pie":"饼图","echarts.series.typeNames.doughnut":"环形图","echarts.series.typeNames.scatter":"散点图","echarts.series.typeNames.radar":"雷达图","echarts.series.typeNames.funnel":"漏斗图","echarts.series.typeNames.gauge":"仪表盘","echarts.label.formatter.value":"数值","echarts.label.formatter.nameValue":"名称: 数值","echarts.label.formatter.name":"名称","echarts.label.formatter.percent":"百分比","echarts.label.position.bar.top":"顶部","echarts.label.position.bar.inside":"内部","echarts.label.position.bar.insideTop":"内部顶端","echarts.label.position.bar.bottom":"底部","echarts.label.position.bar.insideBottom":"内部底端","echarts.label.position.bar.right":"右侧","echarts.label.position.bar.left":"左侧","echarts.label.position.bar.middle":"居中","echarts.label.position.line.top":"顶部","echarts.label.position.line.bottom":"底部","echarts.label.position.line.inside":"内部","echarts.label.position.line.left":"左侧","echarts.label.position.line.right":"右侧","echarts.label.position.pie.outside":"外侧","echarts.label.position.pie.inside":"内部","echarts.label.position.pie.center":"中心","echarts.label.position.scatter.top":"顶部","echarts.label.position.scatter.bottom":"底部","echarts.label.position.scatter.left":"左侧","echarts.label.position.scatter.right":"右侧","echarts.label.position.scatter.inside":"内部","echarts.label.position.radar.top":"顶部","echarts.label.position.radar.bottom":"底部","echarts.label.position.radar.left":"左侧","echarts.label.position.radar.right":"右侧","echarts.label.position.radar.inside":"内部","echarts.label.position.funnel.outer":"外侧","echarts.label.position.funnel.inner":"内部","echarts.label.position.funnel.left":"左侧","echarts.label.position.funnel.right":"右侧","echarts.label.position.funnel.top":"顶部","echarts.label.position.funnel.bottom":"底部","echarts.meta.chartOption":"图表 option","echarts.meta.dataSource":"数据源","echarts.meta.categoryField":"类目字段","echarts.meta.valueFields":"数值字段","echarts.meta.seriesField":"系列拆分字段","echarts.meta.bubbleSize":"气泡大小","echarts.notes.bar":"柱状图:类目 + 多个数值字段,每字段一个 series;series[].data 写 $data 占位;固定高,禁止 autoHeight","echarts.notes.barH":"横向条形图:xAxis 为数值、yAxis 为类目;类目写 yAxis.data 的 $data 占位","echarts.notes.line":"折线图:类目 + 多个数值字段;不写 areaStyle","echarts.notes.area":"面积图:折线 + series[].areaStyle;其余同折线图","echarts.notes.pie":"饼图:类目 + 首个数值字段生成 { name, value };只需一个数值字段","echarts.notes.doughnut":"环形图:饼图 + radius:[内径,外径];内径由面板配置","echarts.notes.scatter":"散点图:类目字段作 x、首个数值字段作 y;chartBubble 开启时用第二个数值字段作点大小","echarts.notes.radar":"雷达图:每个数值字段是一个维度(radar.indicator),每行数据是一个系列(类目字段作系列名);半径由面板写 radar.radius(%,默认 75)","echarts.notes.funnel":"漏斗图:类目 + 首个数值字段,按数值降序;四边内边距由面板写 series.left/right/top/bottom(%,右侧需留外置标签空间)","echarts.notes.gauge":"仪表盘:取首行数据的首个数值字段作指针值;min/max 由面板写入 series[0].min/max"}},L6={echarts:{"echarts.panel.chart":"Chart","echarts.panel.config":"Config","echarts.panel.dataSource":"Data source","echarts.panel.category":"Category","echarts.panel.value":"Value","echarts.panel.series":"Series","echarts.panel.chartType.bar":"Bar","echarts.panel.chartType.barH":"Horizontal bar","echarts.panel.chartType.line":"Line","echarts.panel.chartType.area":"Area","echarts.panel.chartType.pie":"Pie","echarts.panel.chartType.doughnut":"Doughnut","echarts.panel.chartType.scatter":"Scatter","echarts.panel.chartType.radar":"Radar","echarts.panel.chartType.funnel":"Funnel","echarts.panel.chartType.gauge":"Gauge","echarts.panel.dataLabel":"Data label","echarts.panel.valueLabel":"Value label","echarts.panel.hint.dataBinding":"Data is injected at template binding; keep the `$data` placeholder in series/xAxis data; advanced styles can be written in chartOption in the template JSON.","echarts.panel.field.dimension":"Dimension fields (one per dimension)","echarts.panel.field.value":"Value fields","echarts.panel.field.valueMulti":"Value fields (multiple values, multiple series)","echarts.panel.default":"(default)","echarts.panel.current":"(current)","echarts.panel.defaultFirstArray":"(default: first top-level array)","echarts.panel.error.invalidOption":"Invalid chart option: expected an object","echarts.panel.chartFallback":"Chart","echarts.panel.optionDefault":"(default)","echarts.panel.overflow.default":"Default","echarts.panel.overflow.none":"None (show full)","echarts.panel.overflow.truncate":"Truncate","echarts.panel.overflow.break":"Wrap","echarts.panel.fontWeight.default":"Default","echarts.panel.fontWeight.normal":"Regular","echarts.panel.fontWeight.bold":"Bold","echarts.panel.label.distance":"Distance","echarts.panel.label.rotate":"Rotation (deg)","echarts.panel.label.fontSize":"Font size","echarts.panel.label.fontWeight":"Font weight","echarts.panel.label.color":"Text color","echarts.panel.label.backgroundColor":"Background color","echarts.panel.label.borderColor":"Border color","echarts.panel.label.borderWidth":"Border width","echarts.panel.label.borderRadius":"Radius","echarts.panel.label.padding":"Padding","echarts.panel.label.show":"Show data labels","echarts.panel.label.content":"Content","echarts.panel.label.formatterTitle":"Data label content","echarts.panel.label.formatterCustom":"Custom / Default","echarts.panel.label.formatterPlaceholder":"e.g. {b}: {c}","echarts.panel.label.overflow":"Overflow","echarts.panel.label.position":"Position","echarts.panel.label.positionTitle":"Label position","echarts.panel.label.positionDefault":"Default","echarts.panel.label.offset":"Offset X / Y","echarts.panel.label.style":"Style","echarts.panel.labelLine.fontWeight":"Font weight","echarts.panel.labelLine":"Label line","echarts.panel.labelLine.show":"Show label line","echarts.panel.labelLine.length":"Label line length","echarts.panel.labelLine.length2":"Second segment length","echarts.panel.labelLine.smooth":"Smooth label line","echarts.panel.dataSourceTitle":"Data source","echarts.panel.categoryField":"Category field","echarts.panel.removeField":"Remove this field","echarts.panel.addField":"+ Add field","echarts.panel.seriesField":"Series split field","echarts.panel.seriesFieldHint":"Optional, e.g. region (splits into series by value)","echarts.panel.bubbleSize":"Bubble size","echarts.panel.title":"Chart title","echarts.panel.titleHint":"Leave empty to hide the title","echarts.panel.legend":"Show legend","echarts.panel.palette":"Color palette","echarts.palette.default":"Default blue","echarts.palette.fresh":"Fresh green","echarts.palette.warm":"Warm orange-red","echarts.palette.purple":"Purple grey","echarts.panel.stack":"Stacked","echarts.panel.innerRadius":"Inner radius (%)","echarts.panel.paddingTRBL":"Padding top/right/bottom/left (%)","echarts.panel.paddingTop":"Top padding","echarts.panel.paddingRight":"Right padding (for outer labels)","echarts.panel.paddingBottom":"Bottom padding","echarts.panel.paddingLeft":"Left padding","echarts.panel.radius":"Radius (%)","echarts.panel.minMax":"Min / max","echarts.panel.group":"Chart","echarts.series.typeNames.bar":"Bar chart","echarts.series.typeNames.barH":"Horizontal bar chart","echarts.series.typeNames.line":"Line chart","echarts.series.typeNames.area":"Area chart","echarts.series.typeNames.pie":"Pie chart","echarts.series.typeNames.doughnut":"Doughnut chart","echarts.series.typeNames.scatter":"Scatter chart","echarts.series.typeNames.radar":"Radar chart","echarts.series.typeNames.funnel":"Funnel chart","echarts.series.typeNames.gauge":"Gauge chart","echarts.label.formatter.value":"Value","echarts.label.formatter.nameValue":"Name: Value","echarts.label.formatter.name":"Name","echarts.label.formatter.percent":"Percentage","echarts.label.position.bar.top":"Top","echarts.label.position.bar.inside":"Inside","echarts.label.position.bar.insideTop":"Inside top","echarts.label.position.bar.bottom":"Bottom","echarts.label.position.bar.insideBottom":"Inside bottom","echarts.label.position.bar.right":"Right","echarts.label.position.bar.left":"Left","echarts.label.position.bar.middle":"Center","echarts.label.position.line.top":"Top","echarts.label.position.line.bottom":"Bottom","echarts.label.position.line.inside":"Inside","echarts.label.position.line.left":"Left","echarts.label.position.line.right":"Right","echarts.label.position.pie.outside":"Outside","echarts.label.position.pie.inside":"Inside","echarts.label.position.pie.center":"Center","echarts.label.position.scatter.top":"Top","echarts.label.position.scatter.bottom":"Bottom","echarts.label.position.scatter.left":"Left","echarts.label.position.scatter.right":"Right","echarts.label.position.scatter.inside":"Inside","echarts.label.position.radar.top":"Top","echarts.label.position.radar.bottom":"Bottom","echarts.label.position.radar.left":"Left","echarts.label.position.radar.right":"Right","echarts.label.position.radar.inside":"Inside","echarts.label.position.funnel.outer":"Outside","echarts.label.position.funnel.inner":"Inside","echarts.label.position.funnel.left":"Left","echarts.label.position.funnel.right":"Right","echarts.label.position.funnel.top":"Top","echarts.label.position.funnel.bottom":"Bottom","echarts.meta.chartOption":"Chart option","echarts.meta.dataSource":"Data source","echarts.meta.categoryField":"Category field","echarts.meta.valueFields":"Value fields","echarts.meta.seriesField":"Series split field","echarts.meta.bubbleSize":"Bubble size","echarts.notes.bar":"Bar chart: category + multiple value fields, one series per field; write the $data placeholder in series[].data; fixed height, autoHeight is forbidden","echarts.notes.barH":"Horizontal bar: xAxis is the value axis, yAxis is the category axis; write the $data placeholder in yAxis.data for categories","echarts.notes.line":"Line chart: category + multiple value fields; do not write areaStyle","echarts.notes.area":"Area chart: line + series[].areaStyle; otherwise same as the line chart","echarts.notes.pie":"Pie chart: category + the first value field produce { name, value }; only one value field is needed","echarts.notes.doughnut":"Doughnut: pie + radius:[inner, outer]; the inner radius is configured in the panel","echarts.notes.scatter":"Scatter: the category field is x, the first value field is y; when chartBubble is on, the second value field is the point size","echarts.notes.radar":"Radar: each value field is a dimension (radar.indicator), each data row is a series (the category field is the series name); the radius is written by the panel to radar.radius (%, default 75)","echarts.notes.funnel":"Funnel: category + the first value field, sorted descending; the four insets are written by the panel to series.left/right/top/bottom (%, reserve room on the right for outer labels)","echarts.notes.gauge":"Gauge: the first value field of the first data row is the pointer value; min/max are written by the panel to series[0].min/max"}},M6={echarts:{"echarts.panel.chart":"แผนภูมิ","echarts.panel.config":"การกำหนดค่า","echarts.panel.dataSource":"แหล่งข้อมูล","echarts.panel.category":"หมวดหมู่","echarts.panel.value":"ค่า","echarts.panel.series":"ชุดข้อมูล","echarts.panel.chartType.bar":"แท่ง","echarts.panel.chartType.barH":"แท่งแนวนอน","echarts.panel.chartType.line":"เส้น","echarts.panel.chartType.area":"พื้นที่","echarts.panel.chartType.pie":"วงกลม","echarts.panel.chartType.doughnut":"วงกลมวงแหวน","echarts.panel.chartType.scatter":"จุดกระจาย","echarts.panel.chartType.radar":"เรดาร์","echarts.panel.chartType.funnel":"ช่องทาง","echarts.panel.chartType.gauge":"เกจวัด","echarts.panel.dataLabel":"ป้ายข้อมูล","echarts.panel.valueLabel":"ป้ายค่า","echarts.panel.hint.dataBinding":"ข้อมูลถูกแทรกตอนผูกเทมเพลต; คงตัวแทน `$data` ไว้ในข้อมูล series/xAxis; สามารถเขียนสไตล์ขั้นสูงใน chartOption ของ JSON เทมเพลตได้","echarts.panel.field.dimension":"ฟิลด์มิติ (หนึ่งฟิลด์ต่อหนึ่งมิติ)","echarts.panel.field.value":"ฟิลด์ค่า","echarts.panel.field.valueMulti":"ฟิลด์ค่า (หลายค่า หลายชุดข้อมูล)","echarts.panel.default":"(ค่าเริ่มต้น)","echarts.panel.current":"(ปัจจุบัน)","echarts.panel.defaultFirstArray":"(ค่าเริ่มต้น: อาร์เรย์ระดับบนตัวแรก)","echarts.panel.error.invalidOption":"ตัวเลือกแผนภูมิไม่ถูกต้อง: คาดว่าเป็นอ็อบเจกต์","echarts.panel.chartFallback":"แผนภูมิ","echarts.panel.optionDefault":"(ค่าเริ่มต้น)","echarts.panel.overflow.default":"ค่าเริ่มต้น","echarts.panel.overflow.none":"ไม่มี (แสดงทั้งหมด)","echarts.panel.overflow.truncate":"ตัดทิ้ง","echarts.panel.overflow.break":"ตัดคำ","echarts.panel.fontWeight.default":"ค่าเริ่มต้น","echarts.panel.fontWeight.normal":"ปกติ","echarts.panel.fontWeight.bold":"หนา","echarts.panel.label.distance":"ระยะห่าง","echarts.panel.label.rotate":"การหมุน (องศา)","echarts.panel.label.fontSize":"ขนาดฟอนต์","echarts.panel.label.fontWeight":"น้ำหนักฟอนต์","echarts.panel.label.color":"สีข้อความ","echarts.panel.label.backgroundColor":"สีพื้นหลัง","echarts.panel.label.borderColor":"สีเส้นขอบ","echarts.panel.label.borderWidth":"ความกว้างเส้นขอบ","echarts.panel.label.borderRadius":"รัศมี","echarts.panel.label.padding":"ระยะภายใน","echarts.panel.label.show":"แสดงป้ายข้อมูล","echarts.panel.label.content":"เนื้อหา","echarts.panel.label.formatterTitle":"เนื้อหาป้ายข้อมูล","echarts.panel.label.formatterCustom":"กำหนดเอง / ค่าเริ่มต้น","echarts.panel.label.formatterPlaceholder":"เช่น {b}: {c}","echarts.panel.label.overflow":"ล้น","echarts.panel.label.position":"ตำแหน่ง","echarts.panel.label.positionTitle":"ตำแหน่งป้าย","echarts.panel.label.positionDefault":"ค่าเริ่มต้น","echarts.panel.label.offset":"ออฟเซ็ต X / Y","echarts.panel.label.style":"สไตล์","echarts.panel.labelLine.fontWeight":"น้ำหนักฟอนต์","echarts.panel.labelLine":"เส้นป้าย","echarts.panel.labelLine.show":"แสดงเส้นป้าย","echarts.panel.labelLine.length":"ความยาวเส้นป้าย","echarts.panel.labelLine.length2":"ความยาวท่อนที่สอง","echarts.panel.labelLine.smooth":"เส้นป้ายโค้ง","echarts.panel.dataSourceTitle":"แหล่งข้อมูล","echarts.panel.categoryField":"ฟิลด์หมวดหมู่","echarts.panel.removeField":"ลบฟิลด์นี้","echarts.panel.addField":"+ เพิ่มฟิลด์","echarts.panel.seriesField":"ฟิลด์แยกชุดข้อมูล","echarts.panel.seriesFieldHint":"ไม่บังคับ เช่น region (แยกเป็นชุดข้อมูลตามค่า)","echarts.panel.bubbleSize":"ขนาดฟอง","echarts.panel.title":"ชื่อแผนภูมิ","echarts.panel.titleHint":"เว้นว่างเพื่อซ่อนชื่อ","echarts.panel.legend":"แสดงคำอธิบาย","echarts.panel.palette":"ชุดสี","echarts.palette.default":"สีน้ำเงินเริ่มต้น","echarts.palette.fresh":"สีเขียวสดชื่น","echarts.palette.warm":"สีส้มแดงอบอุ่น","echarts.palette.purple":"สีมูฟเทา","echarts.panel.stack":"ซ้อนกัน","echarts.panel.innerRadius":"รัศมีใน (%)","echarts.panel.paddingTRBL":"ระยะบน/ขวา/ล่าง/ซ้าย (%)","echarts.panel.paddingTop":"ระยะบน","echarts.panel.paddingRight":"ระยะขวา (สำหรับป้ายด้านนอก)","echarts.panel.paddingBottom":"ระยะล่าง","echarts.panel.paddingLeft":"ระยะซ้าย","echarts.panel.radius":"รัศมี (%)","echarts.panel.minMax":"ต่ำสุด / สูงสุด","echarts.panel.group":"แผนภูมิ","echarts.series.typeNames.bar":"แผนภูมิแท่ง","echarts.series.typeNames.barH":"แผนภูมิแท่งแนวนอน","echarts.series.typeNames.line":"แผนภูมิเส้น","echarts.series.typeNames.area":"แผนภูมิพื้นที่","echarts.series.typeNames.pie":"แผนภูมิวงกลม","echarts.series.typeNames.doughnut":"แผนภูมิวงกลมวงแหวน","echarts.series.typeNames.scatter":"แผนภูมิกระจาย","echarts.series.typeNames.radar":"แผนภูมิเรดาร์","echarts.series.typeNames.funnel":"แผนภูมิช่องทาง","echarts.series.typeNames.gauge":"แผนภูมิเกจวัด","echarts.label.formatter.value":"ค่า","echarts.label.formatter.nameValue":"ชื่อ: ค่า","echarts.label.formatter.name":"ชื่อ","echarts.label.formatter.percent":"เปอร์เซ็นต์","echarts.label.position.bar.top":"บน","echarts.label.position.bar.inside":"ด้านใน","echarts.label.position.bar.insideTop":"ด้านในบน","echarts.label.position.bar.bottom":"ล่าง","echarts.label.position.bar.insideBottom":"ด้านในล่าง","echarts.label.position.bar.right":"ขวา","echarts.label.position.bar.left":"ซ้าย","echarts.label.position.bar.middle":"กลาง","echarts.label.position.line.top":"บน","echarts.label.position.line.bottom":"ล่าง","echarts.label.position.line.inside":"ด้านใน","echarts.label.position.line.left":"ซ้าย","echarts.label.position.line.right":"ขวา","echarts.label.position.pie.outside":"ด้านนอก","echarts.label.position.pie.inside":"ด้านใน","echarts.label.position.pie.center":"กลาง","echarts.label.position.scatter.top":"บน","echarts.label.position.scatter.bottom":"ล่าง","echarts.label.position.scatter.left":"ซ้าย","echarts.label.position.scatter.right":"ขวา","echarts.label.position.scatter.inside":"ด้านใน","echarts.label.position.radar.top":"บน","echarts.label.position.radar.bottom":"ล่าง","echarts.label.position.radar.left":"ซ้าย","echarts.label.position.radar.right":"ขวา","echarts.label.position.radar.inside":"ด้านใน","echarts.label.position.funnel.outer":"ด้านนอก","echarts.label.position.funnel.inner":"ด้านใน","echarts.label.position.funnel.left":"ซ้าย","echarts.label.position.funnel.right":"ขวา","echarts.label.position.funnel.top":"บน","echarts.label.position.funnel.bottom":"ล่าง","echarts.meta.chartOption":"ตัวเลือกแผนภูมิ","echarts.meta.dataSource":"แหล่งข้อมูล","echarts.meta.categoryField":"ฟิลด์หมวดหมู่","echarts.meta.valueFields":"ฟิลด์ค่า","echarts.meta.seriesField":"ฟิลด์แยกชุดข้อมูล","echarts.meta.bubbleSize":"ขนาดฟอง","echarts.notes.bar":"แผนภูมิแท่ง: หมวดหมู่ + ฟิลด์ค่าหลายตัว หนึ่งฟิลด์ต่อหนึ่ง series; เขียนตัวแทน $data ใน series[].data; ความสูงคงที่ ห้ามใช้ autoHeight","echarts.notes.barH":"แท่งแนวนอน: xAxis เป็นแกนค่า yAxis เป็นแกนหมวดหมู่; เขียนตัวแทน $data ใน yAxis.data สำหรับหมวดหมู่","echarts.notes.line":"แผนภูมิเส้น: หมวดหมู่ + ฟิลด์ค่าหลายตัว; ไม่เขียน areaStyle","echarts.notes.area":"แผนภูมิพื้นที่: เส้น + series[].areaStyle; นอกนั้นเหมือนแผนภูมิเส้น","echarts.notes.pie":"แผนภูมิวงกลม: หมวดหมู่ + ฟิลด์ค่าตัวแรกสร้าง { name, value }; ต้องการเพียงหนึ่งฟิลด์ค่า","echarts.notes.doughnut":"วงกลมวงแหวน: วงกลม + radius:[รัศมีใน, รัศมีนอก]; รัศมีในกำหนดในแผง","echarts.notes.scatter":"แผนภูมิกระจาย: ฟิลด์หมวดหมู่เป็น x ฟิลด์ค่าตัวแรกเป็น y; เมื่อเปิด chartBubble ฟิลด์ค่าตัวที่สองเป็นขนาดจุด","echarts.notes.radar":"แผนภูมิเรดาร์: ฟิลด์ค่าทุกตัวคือหนึ่งมิติ (radar.indicator) ข้อมูลแต่ละแถวคือหนึ่ง series (ฟิลด์หมวดหมู่เป็นชื่อ series); รัศมีเขียนโดยแผงไปที่ radar.radius (%, ค่าเริ่มต้น 75)","echarts.notes.funnel":"แผนภูมิช่องทาง: หมวดหมู่ + ฟิลด์ค่าตัวแรก เรียงตามค่าลงมา; ระยะภายในสี่ด้านเขียนโดยแผงไปที่ series.left/right/top/bottom (%, เผื่อพื้นที่ด้านขวาสำหรับป้ายด้านนอก)","echarts.notes.gauge":"แผนภูมิเกจวัด: ฟิลด์ค่าตัวแรกของแถวข้อมูลแรกเป็นค่าผลักดัน; min/max เขียนโดยแผงไปที่ series[0].min/max"}},$P=Symbol.for("worm-print-platform.element-ui-registry.v1"),YP=globalThis;function KP(){const t=YP[$P];if(t)return t;const e={entries:new Map,listeners:new Set,nextSeq:0};return YP[$P]=e,e}function XP(){for(const t of[...KP().listeners])try{t()}catch{}}function qP(t){if(!t||typeof t!="object")throw new Error("registerElementUI: 需要 ElementUI 对象");if(!Array.isArray(t.types)||t.types.length===0)throw new Error("registerElementUI: types 必须是非空数组");for(const e of t.types)if(!e||typeof e!="string")throw new Error("registerElementUI: types 内每项必须是非空字符串");if(typeof t.renderCanvas!="function")throw new Error(`registerElementUI: ${t.types.join(",")} 缺少 renderCanvas`);if(t.renderProperty!==void 0&&typeof t.renderProperty!="function")throw new Error(`registerElementUI: ${t.types.join(",")} 的 renderProperty 必须是函数`);if(t.locales!==void 0){if(typeof t.locales!="object"||t.locales===null)throw new Error("registerElementUI: locales 必须是对象");const e=`${t.i18nId??t.types[0]}.`;for(const r of Object.values(t.locales)){if(typeof r!="object"||r===null)throw new Error("registerElementUI: locales 的每个语言包必须是对象");for(const a of Object.keys(r))if(!a.startsWith(e))throw new Error(`registerElementUI: 语言包键必须以 "${e}" 开头,收到 "${a}"`)}}}function E6(t){return qP(t),t}function I6(t){qP(t);const e=KP(),r=e.nextSeq++,a=t.i18nId??t.types[0],n=t.locales?Object.entries(t.locales).map(([i,o])=>YS(i,a,o)):[];for(const i of t.types)e.entries.set(i,{ui:t,seq:r,disposeLocales:n});return XP(),()=>{for(const o of n)o();let i=!1;for(const o of t.types)e.entries.get(o)?.ui===t&&(e.entries.delete(o),i=!0);i&&XP()}}function it(t,e={},r=[]){return{tag:t,props:e,children:r}}var jP="http://www.w3.org/2000/svg",O6=new Set(["draggable","contenteditable","spellcheck"]),R6=new Set(["indeterminate"]);function B6(t){return t==="svg"||t==="path"||t==="circle"||t==="rect"||t==="line"||t==="g"}function N6(t){return t instanceof Element&&t.namespaceURI===jP}function Rv(t,e){if(typeof t=="string"){const o=document.createTextNode(t);return e.appendChild(o),o}if(t instanceof Node)return e.appendChild(t),t;const{tag:r,props:a,children:n}=t,i=B6(r)||N6(e)?document.createElementNS(jP,r):document.createElement(r);for(const[o,s]of Object.entries(a))if(!(s==null||s===!1))if(o==="class")i.setAttribute("class",String(s));else if(o==="style")typeof s=="string"?i.style.cssText=s:Object.assign(i.style,s);else if(o==="html")i.innerHTML=String(s);else if(o==="text")i.textContent=String(s);else if(o.startsWith("on")&&typeof s=="function")i.addEventListener(o.slice(2).toLowerCase(),s);else if(o==="dataset")for(const[l,u]of Object.entries(s))i.dataset[l]=u;else R6.has(o)?i[o]=!0:typeof s=="boolean"?s&&i.setAttribute(o,O6.has(o)?"true":""):i.setAttribute(o,String(s));for(const o of n)Rv(o,i);return e.appendChild(i),i}var Pn=null;function Bv(t){const e=/^#?([0-9a-f]{3}|[0-9a-f]{6})$/i.exec(t.trim());if(!e)return null;const r=e[1],a=r.length===3?r.split("").map(n=>n+n).join(""):r;return{r:Number.parseInt(a.slice(0,2),16),g:Number.parseInt(a.slice(2,4),16),b:Number.parseInt(a.slice(4,6),16)}}function Nv(t){const e=Bv(t);return e?ZP(e):"#000000"}function ZP({r:t,g:e,b:r}){return`#${[t,e,r].map(a=>Math.round(ys(a/255)*255).toString(16).padStart(2,"0")).join("")}`}function F6(t,e,r){const a=t/255,n=e/255,i=r/255,o=Math.max(a,n,i),s=Math.min(a,n,i),l=o-s;let u=0;return l!==0&&(o===a?u=(n-i)/l%6:o===n?u=(i-a)/l+2:u=(a-n)/l+4,u*=60,u<0&&(u+=360)),{h:u,s:o===0?0:l/o,v:o}}function z6(t,e,r){const a=r*e,n=(t%360+360)%360/60,i=a*(1-Math.abs(n%2-1)),[o,s,l]=n<1?[a,i,0]:n<2?[i,a,0]:n<3?[0,a,i]:n<4?[0,i,a]:n<5?[i,0,a]:[a,0,i],u=r-a;return{r:(o+u)*255,g:(s+u)*255,b:(l+u)*255}}function H6(t){return((Number.isFinite(t)?t:0)%360+360)%360}function ys(t){return Math.min(1,Math.max(0,Number.isFinite(t)?t:0))}function V6(t){const e=t.translator??Zt,r=t.title??e("colorPicker.pickColor");return it("button",{type:"button",class:`preset-color-trigger${t.triggerClass?` ${t.triggerClass}`:""}`,"aria-expanded":"false","aria-haspopup":"dialog",title:r,onClick:a=>{const n=a.currentTarget??a.target,i=n.getRootNode();if(!!Pn&&Pn.root===i&&Pn.title===r&&Pn.trigger===n){bs();return}bs(),U6(n,t,e)}},[it("span",{class:"preset-color-swatch",style:t.value?{background:t.value}:{background:"transparent"}})])}function bs(){const t=Pn;t&&(Pn=null,t.teardowns.forEach(e=>e()),t.trigger.setAttribute("aria-expanded","false"),t.panel.remove())}function U6(t,e,r){const a=t.getRootNode(),n=a instanceof ShadowRoot?a:document.body,i={root:a,title:e.title??r("colorPicker.pickColor"),trigger:t,panel:null,clearable:e.clearable!==!1,onChange:e.onChange,model:e.value||void 0,hue:0,saturation:0,value_:0,hexText:"",dragging:!1,current:null,hex:null,area:null,handle:null,hueRange:null,clearBtn:null,translator:r,items:[],teardowns:[]};e.value&&zv(i,e.value)?i.hexText=Nv(e.value).toUpperCase():i.hexText=e.value?String(e.value):"",i.panel=Rv(Y6(i),n),i.current=i.panel.querySelector(".picker-current"),i.hex=i.panel.querySelector(".picker-hex"),i.area=i.panel.querySelector(".picker-area"),i.handle=i.panel.querySelector(".picker-handle"),i.hueRange=i.panel.querySelector(".picker-hue"),i.clearBtn=i.panel.querySelector(".picker-clear"),i.items=Array.from(i.panel.querySelectorAll(".preset-color-item")).map((o,s)=>({el:o,color:Sg[s]})),yp(i),G6(i),W6(i),Pn=i,t.setAttribute("aria-expanded","true")}function G6(t){const e=t.trigger.getBoundingClientRect(),r=190,a=t.panel.offsetHeight||216,n=8,i=Math.max(n,Math.min(e.left,window.innerWidth-r-n)),o=e.bottom+6,s=o+a>window.innerHeight-n?Math.max(n,e.top-a-6):o;t.panel.style.left=`${i}px`,t.panel.style.top=`${s}px`}function W6(t){const e=n=>{const i=$6(n);i.includes(t.trigger)||i.includes(t.panel)||bs()},r=n=>{n.key==="Escape"&&bs()},a=()=>bs();document.addEventListener("pointerdown",e,!0),document.addEventListener("keydown",r),window.addEventListener("scroll",a,!0),window.addEventListener("resize",a),t.root.addEventListener("scroll",a,!0),t.teardowns.push(()=>document.removeEventListener("pointerdown",e,!0),()=>document.removeEventListener("keydown",r),()=>window.removeEventListener("scroll",a,!0),()=>window.removeEventListener("resize",a),()=>t.root.removeEventListener("scroll",a,!0))}function $6(t){const e=typeof t.composedPath=="function"?t.composedPath():[];return e.length?e:[t.target]}function Y6(t){const e=t.translator;return it("div",{class:"preset-color-panel",role:"dialog","aria-label":e("colorPicker.pickColor"),style:{position:"fixed"},onPointerdown:r=>r.stopPropagation()},[it("div",{class:"picker-preview"},[it("span",{class:"picker-current"}),it("input",{class:"picker-hex",type:"text",maxlength:7,spellcheck:"false","aria-label":e("colorPicker.hexValue"),onInput:r=>X6(t,r.target.value)})]),it("div",{class:"picker-area","aria-label":e("colorPicker.customColor"),tabindex:0,onPointerdown:r=>q6(t,r),onKeydown:r=>j6(t,r)},[it("span",{class:"picker-handle"})]),it("input",{class:"picker-hue",type:"range",min:0,max:360,step:1,"aria-label":e("colorPicker.hue"),onInput:r=>Z6(t,Number(r.target.value)),onChange:()=>Hv(t)}),it("div",{class:"picker-heading"},[it("span",{text:e("colorPicker.commonColors")}),t.clearable?it("button",{type:"button",class:"picker-clear",title:e("colorPicker.clear"),onClick:()=>bp(t,void 0)},[it("svg",{viewBox:"0 0 16 16",width:12,height:12,"aria-hidden":"true"},[it("path",{d:"M3 3l10 10M13 3L3 13",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round",fill:"none"})]),e("colorPicker.clearShort")]):""].filter(Boolean)),it("div",{class:"preset-color-grid"},Sg.map(r=>it("button",{type:"button",class:"preset-color-item",style:{background:r},title:r,"aria-label":r,onClick:()=>K6(t,r)})))])}function Fv(t){return ZP(z6(t.hue,t.saturation,t.value_))}function yp(t){const e=Fv(t);t.hex.value!==t.hexText&&(t.hex.value=t.hexText),t.current.className=t.model?"picker-current":"picker-current is-empty",t.model?t.current.style.background=e:t.current.style.removeProperty("background"),t.area.style.setProperty("--picker-hue",`${Math.round(t.hue)}deg`),t.handle.style.left=`${t.saturation*100}%`,t.handle.style.top=`${(1-t.value_)*100}%`,t.handle.style.background=e;const r=String(Math.round(t.hue));t.hueRange.value!==r&&(t.hueRange.value=r),t.clearBtn&&(t.clearBtn.disabled=!t.model);for(const a of t.items)a.el.className=t.model&&a.color.toLowerCase()===t.model.toLowerCase()?"preset-color-item active":"preset-color-item"}function zv(t,e){const r=Bv(e);if(!r)return!1;const a=F6(r.r,r.g,r.b);return t.hue=a.h,t.saturation=a.s,t.value_=a.v,t.hexText=Nv(e).toUpperCase(),!0}function Mi(t,e,r,a){t.hue=H6(e),t.saturation=ys(r),t.value_=ys(a),t.hexText=Fv(t).toUpperCase(),yp(t)}function Hv(t){const e=Fv(t);t.model=e,yp(t),t.onChange(e)}function bp(t,e){t.model=e,e||(t.hexText=""),yp(t),t.onChange(e)}function K6(t,e){zv(t,e),bp(t,e)}function X6(t,e){const r=e.trim();if(!r){t.clearable&&bp(t,void 0);return}Bv(r)&&(zv(t,r),bp(t,Nv(r)))}function q6(t,e){t.dragging=!0,QP(t,e);const r=n=>{t.dragging&&QP(t,n)},a=()=>{t.dragging&&(t.dragging=!1,document.removeEventListener("pointermove",r),document.removeEventListener("pointerup",a),document.removeEventListener("pointercancel",a),Hv(t))};document.addEventListener("pointermove",r),document.addEventListener("pointerup",a),document.addEventListener("pointercancel",a)}function QP(t,e){const r=t.area.getBoundingClientRect();if(!r.width||!r.height)return;const a=ys((e.clientX-r.left)/r.width),n=ys(1-(e.clientY-r.top)/r.height);Mi(t,t.hue,a,n)}function j6(t,e){const r=e.shiftKey?.1:.02;let a=!0;e.key==="ArrowLeft"?Mi(t,t.hue,t.saturation-r,t.value_):e.key==="ArrowRight"?Mi(t,t.hue,t.saturation+r,t.value_):e.key==="ArrowUp"?Mi(t,t.hue,t.saturation,t.value_+r):e.key==="ArrowDown"?Mi(t,t.hue,t.saturation,t.value_-r):a=!1,a&&(e.preventDefault(),Hv(t))}function Z6(t,e){Mi(t,e,t.saturation,t.value_)}let kp=Zt;const X=(t,e)=>kp(t,e);function Q6(t,e){const r=kp;kp=t??Zt;try{return e()}finally{kp=r}}const JP="width:100%;height:100%;min-width:0;min-height:0;pointer-events:none",J6=[".echarts-canvas-element{overflow:hidden}",".echarts-field-row{display:flex;gap:6px;align-items:center}",".echarts-field-row>.pd-input{flex:1;min-width:0}",".echarts-field-row>.pd-button{flex:none}",".echarts-dropdown-trigger{display:flex;align-items:center;justify-content:space-between;gap:6px;width:100%;height:26px;min-height:26px;padding:3px 6px;border:1px solid var(--pd-border,#d9dde6);border-radius:6px;background:var(--pd-input-bg,#fff);color:inherit;font:inherit;box-sizing:border-box;cursor:pointer;text-align:left}",".echarts-dropdown-trigger:hover{border-color:var(--pd-text-faint,#b4b9c4)}",'.echarts-dropdown-trigger[aria-expanded="true"]{border-color:var(--pd-accent,#165dff);box-shadow:0 0 0 2px rgb(22 93 255 / 12%)}',".echarts-dropdown-value{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}",".echarts-dropdown-arrow{flex:none;color:var(--pd-text-muted,#909399);font-size:10px;transition:transform .14s}",'.echarts-dropdown-trigger[aria-expanded="true"] .echarts-dropdown-arrow{transform:rotate(180deg)}',".echarts-dropdown-panel{position:fixed;z-index:1200;max-height:240px;overflow:auto;padding:3px;border:1px solid var(--pd-border,#d9dde6);border-radius:6px;background:var(--pd-input-bg,#fff);box-shadow:0 6px 18px rgb(0 0 0 / 14%);box-sizing:border-box}",".echarts-dropdown-option{padding:5px 8px;border-radius:4px;cursor:pointer;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}",".echarts-dropdown-option:hover{background:var(--pd-accent-soft,rgb(22 93 255 / 9%))}",".echarts-dropdown-option.is-active{background:var(--pd-accent-soft,rgb(22 93 255 / 9%));color:var(--pd-accent,#165dff)}",".echarts-label-group{margin-top:8px;border-top:1px solid var(--pd-border,#e5e7eb);padding-top:8px}",".echarts-label-group>summary{display:flex;align-items:center;cursor:pointer;list-style:none;font-size:12px;font-weight:600}",".echarts-label-summary>.pd-field{flex:1;margin:0;font-weight:400}",".echarts-label-sub{font-size:11px;color:var(--pd-text-secondary,#6b7280);margin:8px 0 4px}"].join(""),eF=["chartOption","chartDataSource","chartCategoryField","chartValueFields","chartSeriesField","chartBubble"],tF=["图表","echarts","option","配置","数据源","类目","数值","系列","柱状","条形","折线","面积","饼","环形","散点","雷达","漏斗","仪表","数据标签","数值标签","label"],rF=()=>X("echarts.panel.hint.dataBinding");function aF(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Vv(t){return t.printElementType?.type??""}function eS(t){const e=t.options.chartOption;return e&&typeof e=="object"&&!Array.isArray(e)?e:void 0}function Le(t){const e=eS(t);return Ai(e??Os(Vv(t)))}function nF(t){const e=t?.options;if(!e||typeof e!="object")return!1;const r=e;return eF.some(a=>r[a]!==void 0)}function vt(t,e,r,a={}){t.update({chartOption:gp(e,r),...a})}function wp(t){const e=t.options.chartValueFields;return Array.isArray(e)?e.map(String):[]}function iF(t){switch(t?.seriesType){case"pie":case"funnel":case"gauge":return 1;case"scatter":return 2;default:return 8}}function oF(t,e){return t?.seriesType==="radar"?X("echarts.panel.field.dimension"):X(e===1?"echarts.panel.field.value":"echarts.panel.field.valueMulti")}function sF(t){const e=t?.[0];return e?Object.keys(e).filter(r=>Array.isArray(e[r])):[]}function tS(t,e){const r=t?.[0];if(!r)return[];const a=e&&Array.isArray(r[e])?e:Object.keys(r).find(i=>Array.isArray(r[i]));if(!a)return[];const n=r[a];return n.length>0&&typeof n[0]=="object"&&n[0]!==null?Object.keys(n[0]):[]}function lF(t){const e=new Map;for(const r of t??[])r.fieldKey&&r.fieldLabel&&e.set(r.fieldKey,r.fieldLabel);return e}function rS(t,e,r){if(!t)return r??X("echarts.panel.default");const a=e.get(t),n=a?`${a}(${t})`:t;return r?`${n}${r}`:n}function Uv(t,e,r=new Map){const a=t.map(n=>({value:n,label:rS(n,r)}));return e&&!t.includes(e)&&a.unshift({value:e,label:rS(e,r,X("echarts.panel.current"))}),e||a.unshift({value:"",label:X("echarts.panel.defaultFirstArray")}),a}function Sn(t){return Array.isArray(t.series)?t.series:[]}function Gv(t,e,r){return Math.min(r,Math.max(e,t))}function Wv(t,e,r){const a=r6(Le(t.element),r.length,e);(Array.isArray(a.series)?a.series:[]).forEach((i,o)=>{const s=r[o]?.trim();s&&(i.name=s)}),vt(t,e,a,{chartValueFields:r})}function uF(t){const e=t.element,r=Vv(e),a=e.options,n=Number(a.width)||0,i=Number(a.height)||0;try{const o=e6(r,eS(e)??Os(r)),s=gp(r,o);if(!s||typeof s!="object"||Array.isArray(s))throw new Error(X("echarts.panel.error.invalidOption"));const l=typeof a.fontFamily=="string"&&a.fontFamily?a.fontFamily:void 0,u=Iv({key:e.id,type:r,option:s,widthMm:n,heightMm:i,fontFamily:l});return`<div class="echarts-canvas-element" style="${JP}">${u}</div>`}catch{const o=typeof a.title=="string"&&a.title.trim()?a.title:Je(r)?.label??X("echarts.panel.chartFallback");return`<div class="echarts-canvas-element" style="${JP}">${aF(o)}</div>`}}function xe(t,e,r){const a=document.createElement(t);return e&&(a.className=e),r!==void 0&&(a.textContent=r),a}function Ge(t){const e=xe("div","pd-field");return e.appendChild(xe("span","pd-label",t)),e}function At(t,e){const r=xe("input","pd-input");return t.type&&(r.type=t.type),t.placeholder&&(r.placeholder=t.placeholder),t.min!==void 0&&(r.min=String(t.min)),t.max!==void 0&&(r.max=String(t.max)),t.title&&(r.title=t.title),t.list&&r.setAttribute("list",t.list),r.value=t.value,r.addEventListener("change",()=>e(r.value)),r}function Ei(t,e,r){const a=Ge(t);a.style.cssText="flex-direction:row;align-items:center;justify-content:space-between";const n=xe("input","pd-switch");return n.type="checkbox",n.checked=e,n.addEventListener("change",()=>r(n.checked)),a.appendChild(n),a}function _p(t,e,r){const a=xe("select","pd-select");for(const n of t){const i=xe("option");i.value=n.value,i.textContent=n.label,a.appendChild(i)}return a.value=e,a.addEventListener("change",()=>r(a.value)),a}let xp=null;function pF(t){const e=typeof t.composedPath=="function"?t.composedPath():[];return e.length?e:[t.target]}function $v(t,e,r){const a=t.find(c=>c.value===e)??{label:e||X("echarts.panel.optionDefault")},n=xe("button","echarts-dropdown-trigger");n.type="button",n.setAttribute("aria-haspopup","listbox"),n.setAttribute("aria-expanded","false");const i=xe("span","echarts-dropdown-value",a.label),o=xe("span","echarts-dropdown-arrow","▾");n.appendChild(i),n.appendChild(o);let s=null,l=[];const u=()=>{l.forEach(c=>c()),l=[],s?.remove(),s=null,n.setAttribute("aria-expanded","false"),xp?.close===u&&(xp=null)},p=()=>{xp?.close();const c=n.getRootNode(),f=c instanceof ShadowRoot?c:document.body;s=xe("div","echarts-dropdown-panel"),s.setAttribute("role","listbox");for(const g of t){const y=xe("div",`echarts-dropdown-option${g.value===e?" is-active":""}`,g.label);y.setAttribute("role","option"),y.setAttribute("aria-selected",g.value===e?"true":"false"),y.addEventListener("click",b=>{b.stopPropagation(),u(),r(g.value)}),s.appendChild(y)}f.appendChild(s);const h=n.getBoundingClientRect();s.style.left=`${h.left}px`,s.style.top=`${h.bottom+4}px`,s.style.minWidth=`${h.width}px`,n.setAttribute("aria-expanded","true"),xp={close:u};const d=g=>{const y=pF(g);y.includes(n)||y.includes(s)||u()},v=g=>{g.key==="Escape"&&u()},m=()=>u();document.addEventListener("pointerdown",d,!0),document.addEventListener("keydown",v),window.addEventListener("scroll",m,!0),window.addEventListener("resize",m),c.addEventListener("scroll",m,!0),l.push(()=>document.removeEventListener("pointerdown",d,!0),()=>document.removeEventListener("keydown",v),()=>window.removeEventListener("scroll",m,!0),()=>window.removeEventListener("resize",m),()=>c.removeEventListener("scroll",m,!0))};return n.addEventListener("click",c=>{c.stopPropagation(),s?u():p()}),n}const cF=()=>[{value:"",label:X("echarts.panel.overflow.default")},{value:"none",label:X("echarts.panel.overflow.none")},{value:"truncate",label:X("echarts.panel.overflow.truncate")},{value:"break",label:X("echarts.panel.overflow.break")}],fF=()=>[{value:"",label:X("echarts.panel.fontWeight.default")},{value:"normal",label:X("echarts.panel.fontWeight.normal")},{value:"bold",label:X("echarts.panel.fontWeight.bold")}],hF=()=>({distance:X("echarts.panel.label.distance"),rotate:X("echarts.panel.label.rotate"),fontSize:X("echarts.panel.label.fontSize"),fontWeight:X("echarts.panel.label.fontWeight"),color:X("echarts.panel.label.color"),backgroundColor:X("echarts.panel.label.backgroundColor"),borderColor:X("echarts.panel.label.borderColor"),borderWidth:X("echarts.panel.label.borderWidth"),borderRadius:X("echarts.panel.label.borderRadius"),padding:X("echarts.panel.label.padding")});function dF(t,e){const r=t.element,a=Je(e),n=v6(e),i=g=>n.includes(g),o=g6(Le(r),e),s=hF(),l=g=>{vt(t,e,y6(Le(r),e,g))},u=(g,y)=>{if(y.trim()==="")return l({[g]:null});const b=Number(y);Number.isFinite(b)&&l({[g]:b})},p=(g,y)=>{if(y.trim()==="")return l({labelLine:{[g]:null}});const b=Number(y);Number.isFinite(b)&&l({labelLine:{[g]:b}})},c=(g,y)=>{const b=Ge(s[g]??g);return b.appendChild(At({value:y===void 0?"":String(y),type:"number"},k=>u(g,k))),b},f=(g,y)=>{const b=Ge(s[g]??g),k=xe("span");return Rv(V6({value:y??"",title:s[g]??g,translator:t.t,onChange:w=>l({[g]:w??""})}),k),b.appendChild(k),b},h=xe("details","echarts-label-group");h.open=o.show;const d=xe("summary","echarts-label-summary"),v=Ei(X("echarts.panel.label.show"),o.show,g=>l({enabled:g}));if(v.querySelector("input")?.addEventListener("click",g=>g.stopPropagation()),d.appendChild(v),h.appendChild(d),i("formatter")||i("overflow")){if(h.appendChild(xe("div","echarts-label-sub",X("echarts.panel.label.content"))),i("formatter")){const g=Ge(X("echarts.panel.label.formatterTitle"));g.appendChild(_p([{value:"",label:X("echarts.panel.label.formatterCustom")},...s6.map(y=>({value:y.formatter,label:X(y.labelKey)}))],o.formatter??"",y=>l({formatter:y}))),g.appendChild(At({value:o.formatter??"",placeholder:X("echarts.panel.label.formatterPlaceholder")},y=>l({formatter:y}))),h.appendChild(g)}if(i("overflow")){const g=Ge(X("echarts.panel.label.overflow"));g.appendChild(_p(cF(),o.overflow??"",y=>l({overflow:y}))),h.appendChild(g)}}if(i("position")||i("distance")||i("rotate")||i("offset")){if(h.appendChild(xe("div","echarts-label-sub",X("echarts.panel.label.position"))),i("position")){const g=Ge(X("echarts.panel.label.positionTitle")),y=a?l6[a.seriesType]??[]:[];g.appendChild(_p([{value:"",label:X("echarts.panel.label.positionDefault")},...y.map(b=>({value:b.value,label:X(b.labelKey)}))],o.position??"",b=>l({position:b}))),h.appendChild(g)}if(i("distance")&&h.appendChild(c("distance",o.distance)),i("rotate")&&h.appendChild(c("rotate",o.rotate)),i("offset")){let g=function(){const x=(T,C)=>{const P=T.value.trim();if(P==="")return 0;const S=Number(P);return Number.isFinite(S)?S:C};l({offset:[x(w,k[0]??0),x(_,k[1]??0)]})};const y=Ge(X("echarts.panel.label.offset")),b=xe("div","echarts-field-row"),k=o.offset??[0,0],w=At({value:String(k[0]??0),type:"number"},()=>g()),_=At({value:String(k[1]??0),type:"number"},()=>g());b.appendChild(w),b.appendChild(_),y.appendChild(b),h.appendChild(y)}}if(["fontSize","fontWeight","color","backgroundColor","borderColor","borderWidth","borderRadius","padding"].some(i)){if(h.appendChild(xe("div","echarts-label-sub",X("echarts.panel.label.style"))),i("fontSize")&&h.appendChild(c("fontSize",o.fontSize)),i("fontWeight")){const g=Ge(X("echarts.panel.labelLine.fontWeight"));g.appendChild(_p(fF(),o.fontWeight??"",y=>l({fontWeight:y}))),h.appendChild(g)}for(const g of["color","backgroundColor","borderColor"])i(g)&&h.appendChild(f(g,o[g]));for(const g of["borderWidth","borderRadius","padding"])i(g)&&h.appendChild(c(g,o[g]))}if(i("labelLine.show")){if(h.appendChild(xe("div","echarts-label-sub",X("echarts.panel.labelLine"))),h.appendChild(Ei(X("echarts.panel.labelLine.show"),o.labelLine.show===!0,g=>l({labelLine:{show:g}}))),i("labelLine.length")){const g=Ge(X("echarts.panel.labelLine.length"));g.appendChild(At({value:o.labelLine.length===void 0?"":String(o.labelLine.length),type:"number"},y=>p("length",y))),h.appendChild(g)}if(i("labelLine.length2")){const g=Ge(X("echarts.panel.labelLine.length2"));g.appendChild(At({value:o.labelLine.length2===void 0?"":String(o.labelLine.length2),type:"number"},y=>p("length2",y))),h.appendChild(g)}i("labelLine.smooth")&&h.appendChild(Ei(X("echarts.panel.labelLine.smooth"),o.labelLine.smooth===!0,g=>l({labelLine:{smooth:g}})))}return h}function vF(t){return Q6(t.t,()=>gF(t))}function gF(t){const e=t.element,r=Vv(e),a=Je(r),n=Wg(r),i=d=>n.includes(d),o=e.options,s=Number(o.width)||0,l=Number(o.height)||0,u=iF(a),p=Qg(),c=lF(t.fields),f=xe("div","echarts-property"),h=xe("form","pd-form");if(h.addEventListener("submit",d=>d.preventDefault()),f.appendChild(h),i("dataSource")){const d=Ge(X("echarts.panel.dataSourceTitle")),v=String(o.chartDataSource??"");d.appendChild($v(Uv(sF(t.data),v,c),v,m=>vt(t,r,Le(e),{chartDataSource:m}))),h.appendChild(d)}if(i("categoryField")){const d=Ge(X("echarts.panel.categoryField")),v=String(o.chartCategoryField??"");d.appendChild($v(Uv(tS(t.data,String(o.chartDataSource??"")),v,c),v,m=>vt(t,r,Le(e),{chartCategoryField:m}))),h.appendChild(d)}if(i("valueFields")){const d=Ge(oF(a,u)),v=wp(e);if(v.forEach((m,g)=>{const y=xe("div","echarts-field-row");if(y.appendChild($v(Uv(tS(t.data,String(o.chartDataSource??"")),m,c),m,b=>{const k=wp(e);k[g]=b,Wv(t,r,k)})),v.length>1){const b=xe("button","pd-button small","−");b.type="button",b.title=X("echarts.panel.removeField"),b.addEventListener("click",()=>Wv(t,r,wp(e).filter((k,w)=>w!==g))),y.appendChild(b)}d.appendChild(y)}),v.length<u){const m=xe("button","pd-button small",X("echarts.panel.addField"));m.type="button",m.addEventListener("click",()=>Wv(t,r,[...wp(e),""])),d.appendChild(m)}h.appendChild(d)}if(i("seriesField")){const d=Ge(X("echarts.panel.seriesField"));d.appendChild(At({value:String(o.chartSeriesField??""),placeholder:X("echarts.panel.seriesFieldHint")},v=>vt(t,r,Le(e),{chartSeriesField:v}))),h.appendChild(d)}if(i("bubble")&&h.appendChild(Ei(X("echarts.panel.bubbleSize"),o.chartBubble===!0,d=>{vt(t,r,Le(e),{chartBubble:d})})),i("title")){const d=Ge(X("echarts.panel.title"));d.appendChild(At({value:String(Li(Le(e).title).text??""),placeholder:X("echarts.panel.titleHint")},v=>{const m=Le(e);m.title={...Li(m.title),text:v},vt(t,r,m)})),h.appendChild(d)}if(i("legend")){const d=Li(Le(e).legend).show!==!1;h.appendChild(Ei(X("echarts.panel.legend"),d,v=>{const m=Le(e);m.legend={...Li(m.legend),show:v},vt(t,r,m)}))}if(i("palette")){const d=Ge(X("echarts.panel.palette")),v=xe("select","pd-select");for(const m of p){const g=xe("option");g.value=m.key,g.textContent=m.labelKey?X(m.labelKey):m.label,v.appendChild(g)}v.value=t6(Le(e),p),v.addEventListener("change",()=>{const m=p.find(y=>y.key===v.value)??p[0],g=Le(e);g.color=[...m.colors],vt(t,r,g)}),d.appendChild(v),h.appendChild(d)}if(i("label")&&h.appendChild(dF(t,r)),i("stack")){const v=Sn(Le(e)).some(m=>m.stack!==void 0&&m.stack!==null&&m.stack!=="");h.appendChild(Ei(X("echarts.panel.stack"),v,m=>{const g=Le(e);for(const y of Sn(g))m?y.stack="total":delete y.stack;vt(t,r,g)}))}if(i("innerRadius")){const d=Ge(X("echarts.panel.innerRadius")),v=Sn(Le(e))[0]?.radius,m=Array.isArray(v)&&Number(String(v[0]??"40%").replace("%",""))||40;d.appendChild(At({value:String(m),type:"number",min:0,max:90},g=>{const y=Le(e),b=Sn(y);b[0]&&(b[0].radius=[`${Gv(Number(g)||0,0,90)}%`,"70%"]),vt(t,r,y)})),h.appendChild(d)}if(i("padding")){const d=Ge(X("echarts.panel.paddingTRBL")),v=VP(Le(e),s,l),m=xe("div","echarts-field-row"),g=[{side:"top",title:X("echarts.panel.paddingTop")},{side:"right",title:X("echarts.panel.paddingRight")},{side:"bottom",title:X("echarts.panel.paddingBottom")},{side:"left",title:X("echarts.panel.paddingLeft")}];for(const{side:y,title:b}of g)m.appendChild(At({value:String(v[y]),type:"number",min:0,max:60,title:b},k=>{const w=Number(k),_=Number.isFinite(w)?Gv(w,0,60):qg[y],x=Le(e),T=VP(x,s,l);vt(t,r,n6(x,{...T,[y]:_}))}));d.appendChild(m),h.appendChild(d)}if(i("radius")){const d=Ge(X("echarts.panel.radius"));d.appendChild(At({value:String(i6(Le(e),s,l)),type:"number",min:20,max:100},v=>{const m=Number(v),g=Number.isFinite(m)?Gv(m,20,100):jg;vt(t,r,o6(Le(e),g))})),h.appendChild(d)}if(i("gaugeRange")){const d=Ge(X("echarts.panel.minMax")),v=Sn(Le(e)),m=xe("div","echarts-field-row");m.appendChild(At({value:String(Number(v[0]?.min??0)),type:"number"},g=>{const y=Le(e),b=Sn(y);b[0]&&(b[0].min=Number(g)||0),vt(t,r,y)})),m.appendChild(At({value:String(Number(v[0]?.max??100)),type:"number"},g=>{const y=Le(e),b=Sn(y);b[0]&&(b[0].max=Number(g)||100),vt(t,r,y)})),d.appendChild(m),h.appendChild(d)}return h.appendChild(xe("p","pd-hint",rF())),f}const mF=E6({types:Gg,renderCanvas:uF,renderProperty:vF,hasProperties:nF,group:X("echarts.panel.group"),searchKeywords:tF,styles:J6,i18nId:"echarts",locales:{"zh-CN":A6.echarts,"en-US":L6.echarts,"th-TH":M6.echarts}});let Yv;function yF(){return Yv?.(),Yv=I6(mF),Yv}yF();const bF={...D6};globalThis.WormPrintEcharts??=bF}));
|