shopport 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +108 -0
- package/dist/cli.js +2 -0
- package/dist/dashboard-ui/assets/index-CNEU9OYf.css +1 -0
- package/dist/dashboard-ui/assets/index-CTf-NIWh.js +291 -0
- package/dist/dashboard-ui/index.html +13 -0
- package/dist/skills/README.md +35 -0
- package/dist/skills/inventory-sync/SKILL.md +78 -0
- package/dist/skills/order-fulfill/SKILL.md +90 -0
- package/dist/skills/price-monitor/SKILL.md +96 -0
- package/dist/skills/product-parse/SKILL.md +114 -0
- package/dist/skills/promo-research/SKILL.md +160 -0
- package/dist/skills/source-to-register/SKILL.md +85 -0
- package/dist/skills/waterfall-source/SKILL.md +73 -0
- package/package.json +52 -0
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
var tk=r=>{throw TypeError(r)};var LS=(r,e,t)=>e.has(r)||tk("Cannot "+t);var J=(r,e,t)=>(LS(r,e,"read from private field"),t?t.call(r):e.get(r)),qe=(r,e,t)=>e.has(r)?tk("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(r):e.set(r,t),Pe=(r,e,t,n)=>(LS(r,e,"write to private field"),n?n.call(r,t):e.set(r,t),t),yt=(r,e,t)=>(LS(r,e,"access private method"),t);var uy=(r,e,t,n)=>({set _(a){Pe(r,e,a,t)},get _(){return J(r,e,n)}});function vX(r,e){for(var t=0;t<e.length;t++){const n=e[t];if(typeof n!="string"&&!Array.isArray(n)){for(const a in n)if(a!=="default"&&!(a in r)){const i=Object.getOwnPropertyDescriptor(n,a);i&&Object.defineProperty(r,a,i.get?i:{enumerable:!0,get:()=>n[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function t(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(a){if(a.ep)return;a.ep=!0;const i=t(a);fetch(a.href,i)}})();function tM(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var NS={exports:{}},fv={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var rk;function pX(){if(rk)return fv;rk=1;var r=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function t(n,a,i){var o=null;if(i!==void 0&&(o=""+i),a.key!==void 0&&(o=""+a.key),"key"in a){i={};for(var s in a)s!=="key"&&(i[s]=a[s])}else i=a;return a=i.ref,{$$typeof:r,type:n,key:o,ref:a!==void 0?a:null,props:i}}return fv.Fragment=e,fv.jsx=t,fv.jsxs=t,fv}var nk;function gX(){return nk||(nk=1,NS.exports=pX()),NS.exports}var w=gX(),Cg=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(r){return this.listeners.add(r),this.onSubscribe(),()=>{this.listeners.delete(r),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Gu,Us,fh,Y4,mX=(Y4=class extends Cg{constructor(){super();qe(this,Gu);qe(this,Us);qe(this,fh);Pe(this,fh,e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}})}onSubscribe(){J(this,Us)||this.setEventListener(J(this,fh))}onUnsubscribe(){var e;this.hasListeners()||((e=J(this,Us))==null||e.call(this),Pe(this,Us,void 0))}setEventListener(e){var t;Pe(this,fh,e),(t=J(this,Us))==null||t.call(this),Pe(this,Us,e(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(e){J(this,Gu)!==e&&(Pe(this,Gu,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){var e;return typeof J(this,Gu)=="boolean"?J(this,Gu):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},Gu=new WeakMap,Us=new WeakMap,fh=new WeakMap,Y4),rM=new mX,yX={setTimeout:(r,e)=>setTimeout(r,e),clearTimeout:r=>clearTimeout(r),setInterval:(r,e)=>setInterval(r,e),clearInterval:r=>clearInterval(r)},Ys,eM,W4,xX=(W4=class{constructor(){qe(this,Ys,yX);qe(this,eM,!1)}setTimeoutProvider(r){Pe(this,Ys,r)}setTimeout(r,e){return J(this,Ys).setTimeout(r,e)}clearTimeout(r){J(this,Ys).clearTimeout(r)}setInterval(r,e){return J(this,Ys).setInterval(r,e)}clearInterval(r){J(this,Ys).clearInterval(r)}},Ys=new WeakMap,eM=new WeakMap,W4),Iu=new xX;function bX(r){setTimeout(r,0)}var _X=typeof window>"u"||"Deno"in globalThis;function Mn(){}function SX(r,e){return typeof r=="function"?r(e):r}function b2(r){return typeof r=="number"&&r>=0&&r!==1/0}function tV(r,e){return Math.max(r+(e||0)-Date.now(),0)}function il(r,e){return typeof r=="function"?r(e):r}function Ta(r,e){return typeof r=="function"?r(e):r}function ak(r,e){const{type:t="all",exact:n,fetchStatus:a,predicate:i,queryKey:o,stale:s}=r;if(o){if(n){if(e.queryHash!==nM(o,e.options))return!1}else if(!Pp(e.queryKey,o))return!1}if(t!=="all"){const l=e.isActive();if(t==="active"&&!l||t==="inactive"&&l)return!1}return!(typeof s=="boolean"&&e.isStale()!==s||a&&a!==e.state.fetchStatus||i&&!i(e))}function ik(r,e){const{exact:t,status:n,predicate:a,mutationKey:i}=r;if(i){if(!e.options.mutationKey)return!1;if(t){if(Op(e.options.mutationKey)!==Op(i))return!1}else if(!Pp(e.options.mutationKey,i))return!1}return!(n&&e.state.status!==n||a&&!a(e))}function nM(r,e){return((e==null?void 0:e.queryKeyHashFn)||Op)(r)}function Op(r){return JSON.stringify(r,(e,t)=>S2(t)?Object.keys(t).sort().reduce((n,a)=>(n[a]=t[a],n),{}):t)}function Pp(r,e){return r===e?!0:typeof r!=typeof e?!1:r&&e&&typeof r=="object"&&typeof e=="object"?Object.keys(e).every(t=>Pp(r[t],e[t])):!1}var wX=Object.prototype.hasOwnProperty;function rV(r,e,t=0){if(r===e)return r;if(t>500)return e;const n=ok(r)&&ok(e);if(!n&&!(S2(r)&&S2(e)))return e;const i=(n?r:Object.keys(r)).length,o=n?e:Object.keys(e),s=o.length,l=n?new Array(s):{};let u=0;for(let c=0;c<s;c++){const f=n?c:o[c],d=r[f],v=e[f];if(d===v){l[f]=d,(n?c<i:wX.call(r,f))&&u++;continue}if(d===null||v===null||typeof d!="object"||typeof v!="object"){l[f]=v;continue}const g=rV(d,v,t+1);l[f]=g,g===d&&u++}return i===s&&u===i?r:l}function _2(r,e){if(!e||Object.keys(r).length!==Object.keys(e).length)return!1;for(const t in r)if(r[t]!==e[t])return!1;return!0}function ok(r){return Array.isArray(r)&&r.length===Object.keys(r).length}function S2(r){if(!sk(r))return!1;const e=r.constructor;if(e===void 0)return!0;const t=e.prototype;return!(!sk(t)||!t.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(r)!==Object.prototype)}function sk(r){return Object.prototype.toString.call(r)==="[object Object]"}function TX(r){return new Promise(e=>{Iu.setTimeout(e,r)})}function w2(r,e,t){return typeof t.structuralSharing=="function"?t.structuralSharing(r,e):t.structuralSharing!==!1?rV(r,e):e}function CX(r,e,t=0){const n=[...r,e];return t&&n.length>t?n.slice(1):n}function AX(r,e,t=0){const n=[e,...r];return t&&n.length>t?n.slice(0,-1):n}var aM=Symbol();function nV(r,e){return!r.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!r.queryFn||r.queryFn===aM?()=>Promise.reject(new Error(`Missing queryFn: '${r.queryHash}'`)):r.queryFn}function aV(r,e){return typeof r=="function"?r(...e):!!r}function MX(r,e,t){let n=!1,a;return Object.defineProperty(r,"signal",{enumerable:!0,get:()=>(a??(a=e()),n||(n=!0,a.aborted?t():a.addEventListener("abort",t,{once:!0})),a)}),r}var zp=(()=>{let r=()=>_X;return{isServer(){return r()},setIsServer(e){r=e}}})();function T2(){let r,e;const t=new Promise((a,i)=>{r=a,e=i});t.status="pending",t.catch(()=>{});function n(a){Object.assign(t,a),delete t.resolve,delete t.reject}return t.resolve=a=>{n({status:"fulfilled",value:a}),r(a)},t.reject=a=>{n({status:"rejected",reason:a}),e(a)},t}var DX=bX;function LX(){let r=[],e=0,t=s=>{s()},n=s=>{s()},a=DX;const i=s=>{e?r.push(s):a(()=>{t(s)})},o=()=>{const s=r;r=[],s.length&&a(()=>{n(()=>{s.forEach(l=>{t(l)})})})};return{batch:s=>{let l;e++;try{l=s()}finally{e--,e||o()}return l},batchCalls:s=>(...l)=>{i(()=>{s(...l)})},schedule:i,setNotifyFunction:s=>{t=s},setBatchNotifyFunction:s=>{n=s},setScheduler:s=>{a=s}}}var qr=LX(),hh,Ws,dh,X4,NX=(X4=class extends Cg{constructor(){super();qe(this,hh,!0);qe(this,Ws);qe(this,dh);Pe(this,dh,e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}})}onSubscribe(){J(this,Ws)||this.setEventListener(J(this,dh))}onUnsubscribe(){var e;this.hasListeners()||((e=J(this,Ws))==null||e.call(this),Pe(this,Ws,void 0))}setEventListener(e){var t;Pe(this,dh,e),(t=J(this,Ws))==null||t.call(this),Pe(this,Ws,e(this.setOnline.bind(this)))}setOnline(e){J(this,hh)!==e&&(Pe(this,hh,e),this.listeners.forEach(n=>{n(e)}))}isOnline(){return J(this,hh)}},hh=new WeakMap,Ws=new WeakMap,dh=new WeakMap,X4),ix=new NX;function RX(r){return Math.min(1e3*2**r,3e4)}function iV(r){return(r??"online")==="online"?ix.isOnline():!0}var C2=class extends Error{constructor(r){super("CancelledError"),this.revert=r==null?void 0:r.revert,this.silent=r==null?void 0:r.silent}};function oV(r){let e=!1,t=0,n;const a=T2(),i=()=>a.status!=="pending",o=x=>{var y;if(!i()){const b=new C2(x);d(b),(y=r.onCancel)==null||y.call(r,b)}},s=()=>{e=!0},l=()=>{e=!1},u=()=>rM.isFocused()&&(r.networkMode==="always"||ix.isOnline())&&r.canRun(),c=()=>iV(r.networkMode)&&r.canRun(),f=x=>{i()||(n==null||n(),a.resolve(x))},d=x=>{i()||(n==null||n(),a.reject(x))},v=()=>new Promise(x=>{var y;n=b=>{(i()||u())&&x(b)},(y=r.onPause)==null||y.call(r)}).then(()=>{var x;n=void 0,i()||(x=r.onContinue)==null||x.call(r)}),g=()=>{if(i())return;let x;const y=t===0?r.initialPromise:void 0;try{x=y??r.fn()}catch(b){x=Promise.reject(b)}Promise.resolve(x).then(f).catch(b=>{var D;if(i())return;const S=r.retry??(zp.isServer()?0:3),T=r.retryDelay??RX,C=typeof T=="function"?T(t,b):T,M=S===!0||typeof S=="number"&&t<S||typeof S=="function"&&S(t,b);if(e||!M){d(b);return}t++,(D=r.onFail)==null||D.call(r,t,b),TX(C).then(()=>u()?void 0:v()).then(()=>{e?d(b):g()})})};return{promise:a,status:()=>a.status,cancel:o,continue:()=>(n==null||n(),a),cancelRetry:s,continueRetry:l,canStart:c,start:()=>(c()?g():v().then(g),a)}}var Hu,q4,sV=(q4=class{constructor(){qe(this,Hu)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),b2(this.gcTime)&&Pe(this,Hu,Iu.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(r){this.gcTime=Math.max(this.gcTime||0,r??(zp.isServer()?1/0:300*1e3))}clearGcTimeout(){J(this,Hu)!==void 0&&(Iu.clearTimeout(J(this,Hu)),Pe(this,Hu,void 0))}},Hu=new WeakMap,q4),Fu,vh,_a,Uu,zr,bg,Yu,Xn,lV,Co,Z4,EX=(Z4=class extends sV{constructor(e){super();qe(this,Xn);qe(this,Fu);qe(this,vh);qe(this,_a);qe(this,Uu);qe(this,zr);qe(this,bg);qe(this,Yu);Pe(this,Yu,!1),Pe(this,bg,e.defaultOptions),this.setOptions(e.options),this.observers=[],Pe(this,Uu,e.client),Pe(this,_a,J(this,Uu).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,Pe(this,Fu,uk(this.options)),this.state=e.state??J(this,Fu),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=J(this,zr))==null?void 0:e.promise}setOptions(e){if(this.options={...J(this,bg),...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=uk(this.options);t.data!==void 0&&(this.setState(lk(t.data,t.dataUpdatedAt)),Pe(this,Fu,t))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&J(this,_a).remove(this)}setData(e,t){const n=w2(this.state.data,e,this.options);return yt(this,Xn,Co).call(this,{data:n,type:"success",dataUpdatedAt:t==null?void 0:t.updatedAt,manual:t==null?void 0:t.manual}),n}setState(e,t){yt(this,Xn,Co).call(this,{type:"setState",state:e,setStateOptions:t})}cancel(e){var n,a;const t=(n=J(this,zr))==null?void 0:n.promise;return(a=J(this,zr))==null||a.cancel(e),t?t.then(Mn).catch(Mn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return J(this,Fu)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>Ta(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===aM||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>il(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!tV(this.state.dataUpdatedAt,e)}onFocus(){var t;const e=this.observers.find(n=>n.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(t=J(this,zr))==null||t.continue()}onOnline(){var t;const e=this.observers.find(n=>n.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(t=J(this,zr))==null||t.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),J(this,_a).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(J(this,zr)&&(J(this,Yu)||yt(this,Xn,lV).call(this)?J(this,zr).cancel({revert:!0}):J(this,zr).cancelRetry()),this.scheduleGc()),J(this,_a).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||yt(this,Xn,Co).call(this,{type:"invalidate"})}async fetch(e,t){var l,u,c,f,d,v,g,x,y,b,S,T;if(this.state.fetchStatus!=="idle"&&((l=J(this,zr))==null?void 0:l.status())!=="rejected"){if(this.state.data!==void 0&&(t!=null&&t.cancelRefetch))this.cancel({silent:!0});else if(J(this,zr))return J(this,zr).continueRetry(),J(this,zr).promise}if(e&&this.setOptions(e),!this.options.queryFn){const C=this.observers.find(M=>M.options.queryFn);C&&this.setOptions(C.options)}const n=new AbortController,a=C=>{Object.defineProperty(C,"signal",{enumerable:!0,get:()=>(Pe(this,Yu,!0),n.signal)})},i=()=>{const C=nV(this.options,t),D=(()=>{const L={client:J(this,Uu),queryKey:this.queryKey,meta:this.meta};return a(L),L})();return Pe(this,Yu,!1),this.options.persister?this.options.persister(C,D,this):C(D)},s=(()=>{const C={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:J(this,Uu),state:this.state,fetchFn:i};return a(C),C})();(u=this.options.behavior)==null||u.onFetch(s,this),Pe(this,vh,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=s.fetchOptions)==null?void 0:c.meta))&&yt(this,Xn,Co).call(this,{type:"fetch",meta:(f=s.fetchOptions)==null?void 0:f.meta}),Pe(this,zr,oV({initialPromise:t==null?void 0:t.initialPromise,fn:s.fetchFn,onCancel:C=>{C instanceof C2&&C.revert&&this.setState({...J(this,vh),fetchStatus:"idle"}),n.abort()},onFail:(C,M)=>{yt(this,Xn,Co).call(this,{type:"failed",failureCount:C,error:M})},onPause:()=>{yt(this,Xn,Co).call(this,{type:"pause"})},onContinue:()=>{yt(this,Xn,Co).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0}));try{const C=await J(this,zr).start();if(C===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(C),(v=(d=J(this,_a).config).onSuccess)==null||v.call(d,C,this),(x=(g=J(this,_a).config).onSettled)==null||x.call(g,C,this.state.error,this),C}catch(C){if(C instanceof C2){if(C.silent)return J(this,zr).promise;if(C.revert){if(this.state.data===void 0)throw C;return this.state.data}}throw yt(this,Xn,Co).call(this,{type:"error",error:C}),(b=(y=J(this,_a).config).onError)==null||b.call(y,C,this),(T=(S=J(this,_a).config).onSettled)==null||T.call(S,this.state.data,C,this),C}finally{this.scheduleGc()}}},Fu=new WeakMap,vh=new WeakMap,_a=new WeakMap,Uu=new WeakMap,zr=new WeakMap,bg=new WeakMap,Yu=new WeakMap,Xn=new WeakSet,lV=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},Co=function(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...uV(n.data,this.options),fetchMeta:e.meta??null};case"success":const a={...n,...lk(e.data,e.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return Pe(this,vh,e.manual?a:void 0),a;case"error":const i=e.error;return{...n,error:i,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),qr.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),J(this,_a).notify({query:this,type:"updated",action:e})})},Z4);function uV(r,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:iV(e.networkMode)?"fetching":"paused",...r===void 0&&{error:null,status:"pending"}}}function lk(r,e){return{data:r,dataUpdatedAt:e??Date.now(),error:null,isInvalidated:!1,status:"success"}}function uk(r){const e=typeof r.initialData=="function"?r.initialData():r.initialData,t=e!==void 0,n=t?typeof r.initialDataUpdatedAt=="function"?r.initialDataUpdatedAt():r.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:t?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:t?"success":"pending",fetchStatus:"idle"}}var An,bt,_g,dn,Wu,ph,Lo,Xs,Sg,gh,mh,Xu,qu,qs,yh,Et,np,A2,M2,D2,L2,N2,R2,E2,cV,$4,IX=($4=class extends Cg{constructor(e,t){super();qe(this,Et);qe(this,An);qe(this,bt);qe(this,_g);qe(this,dn);qe(this,Wu);qe(this,ph);qe(this,Lo);qe(this,Xs);qe(this,Sg);qe(this,gh);qe(this,mh);qe(this,Xu);qe(this,qu);qe(this,qs);qe(this,yh,new Set);this.options=t,Pe(this,An,e),Pe(this,Xs,null),Pe(this,Lo,T2()),this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(J(this,bt).addObserver(this),ck(J(this,bt),this.options)?yt(this,Et,np).call(this):this.updateResult(),yt(this,Et,L2).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return I2(J(this,bt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return I2(J(this,bt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,yt(this,Et,N2).call(this),yt(this,Et,R2).call(this),J(this,bt).removeObserver(this)}setOptions(e){const t=this.options,n=J(this,bt);if(this.options=J(this,An).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ta(this.options.enabled,J(this,bt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");yt(this,Et,E2).call(this),J(this,bt).setOptions(this.options),t._defaulted&&!_2(this.options,t)&&J(this,An).getQueryCache().notify({type:"observerOptionsUpdated",query:J(this,bt),observer:this});const a=this.hasListeners();a&&fk(J(this,bt),n,this.options,t)&&yt(this,Et,np).call(this),this.updateResult(),a&&(J(this,bt)!==n||Ta(this.options.enabled,J(this,bt))!==Ta(t.enabled,J(this,bt))||il(this.options.staleTime,J(this,bt))!==il(t.staleTime,J(this,bt)))&&yt(this,Et,A2).call(this);const i=yt(this,Et,M2).call(this);a&&(J(this,bt)!==n||Ta(this.options.enabled,J(this,bt))!==Ta(t.enabled,J(this,bt))||i!==J(this,qs))&&yt(this,Et,D2).call(this,i)}getOptimisticResult(e){const t=J(this,An).getQueryCache().build(J(this,An),e),n=this.createResult(t,e);return OX(this,n)&&(Pe(this,dn,n),Pe(this,ph,this.options),Pe(this,Wu,J(this,bt).state)),n}getCurrentResult(){return J(this,dn)}trackResult(e,t){return new Proxy(e,{get:(n,a)=>(this.trackProp(a),t==null||t(a),a==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&J(this,Lo).status==="pending"&&J(this,Lo).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,a))})}trackProp(e){J(this,yh).add(e)}getCurrentQuery(){return J(this,bt)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=J(this,An).defaultQueryOptions(e),n=J(this,An).getQueryCache().build(J(this,An),t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return yt(this,Et,np).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),J(this,dn)))}createResult(e,t){var R;const n=J(this,bt),a=this.options,i=J(this,dn),o=J(this,Wu),s=J(this,ph),u=e!==n?e.state:J(this,_g),{state:c}=e;let f={...c},d=!1,v;if(t._optimisticResults){const I=this.hasListeners(),k=!I&&ck(e,t),z=I&&fk(e,n,t,a);(k||z)&&(f={...f,...uV(c.data,e.options)}),t._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:g,errorUpdatedAt:x,status:y}=f;v=f.data;let b=!1;if(t.placeholderData!==void 0&&v===void 0&&y==="pending"){let I;i!=null&&i.isPlaceholderData&&t.placeholderData===(s==null?void 0:s.placeholderData)?(I=i.data,b=!0):I=typeof t.placeholderData=="function"?t.placeholderData((R=J(this,mh))==null?void 0:R.state.data,J(this,mh)):t.placeholderData,I!==void 0&&(y="success",v=w2(i==null?void 0:i.data,I,t),d=!0)}if(t.select&&v!==void 0&&!b)if(i&&v===(o==null?void 0:o.data)&&t.select===J(this,Sg))v=J(this,gh);else try{Pe(this,Sg,t.select),v=t.select(v),v=w2(i==null?void 0:i.data,v,t),Pe(this,gh,v),Pe(this,Xs,null)}catch(I){Pe(this,Xs,I)}J(this,Xs)&&(g=J(this,Xs),v=J(this,gh),x=Date.now(),y="error");const S=f.fetchStatus==="fetching",T=y==="pending",C=y==="error",M=T&&S,D=v!==void 0,E={status:y,fetchStatus:f.fetchStatus,isPending:T,isSuccess:y==="success",isError:C,isInitialLoading:M,isLoading:M,data:v,dataUpdatedAt:f.dataUpdatedAt,error:g,errorUpdatedAt:x,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:f.dataUpdateCount>u.dataUpdateCount||f.errorUpdateCount>u.errorUpdateCount,isFetching:S,isRefetching:S&&!T,isLoadingError:C&&!D,isPaused:f.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:C&&D,isStale:iM(e,t),refetch:this.refetch,promise:J(this,Lo),isEnabled:Ta(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const I=E.data!==void 0,k=E.status==="error"&&!I,z=F=>{k?F.reject(E.error):I&&F.resolve(E.data)},O=()=>{const F=Pe(this,Lo,E.promise=T2());z(F)},G=J(this,Lo);switch(G.status){case"pending":e.queryHash===n.queryHash&&z(G);break;case"fulfilled":(k||E.data!==G.value)&&O();break;case"rejected":(!k||E.error!==G.reason)&&O();break}}return E}updateResult(){const e=J(this,dn),t=this.createResult(J(this,bt),this.options);if(Pe(this,Wu,J(this,bt).state),Pe(this,ph,this.options),J(this,Wu).data!==void 0&&Pe(this,mh,J(this,bt)),_2(t,e))return;Pe(this,dn,t);const n=()=>{if(!e)return!0;const{notifyOnChangeProps:a}=this.options,i=typeof a=="function"?a():a;if(i==="all"||!i&&!J(this,yh).size)return!0;const o=new Set(i??J(this,yh));return this.options.throwOnError&&o.add("error"),Object.keys(J(this,dn)).some(s=>{const l=s;return J(this,dn)[l]!==e[l]&&o.has(l)})};yt(this,Et,cV).call(this,{listeners:n()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&yt(this,Et,L2).call(this)}},An=new WeakMap,bt=new WeakMap,_g=new WeakMap,dn=new WeakMap,Wu=new WeakMap,ph=new WeakMap,Lo=new WeakMap,Xs=new WeakMap,Sg=new WeakMap,gh=new WeakMap,mh=new WeakMap,Xu=new WeakMap,qu=new WeakMap,qs=new WeakMap,yh=new WeakMap,Et=new WeakSet,np=function(e){yt(this,Et,E2).call(this);let t=J(this,bt).fetch(this.options,e);return e!=null&&e.throwOnError||(t=t.catch(Mn)),t},A2=function(){yt(this,Et,N2).call(this);const e=il(this.options.staleTime,J(this,bt));if(zp.isServer()||J(this,dn).isStale||!b2(e))return;const n=tV(J(this,dn).dataUpdatedAt,e)+1;Pe(this,Xu,Iu.setTimeout(()=>{J(this,dn).isStale||this.updateResult()},n))},M2=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(J(this,bt)):this.options.refetchInterval)??!1},D2=function(e){yt(this,Et,R2).call(this),Pe(this,qs,e),!(zp.isServer()||Ta(this.options.enabled,J(this,bt))===!1||!b2(J(this,qs))||J(this,qs)===0)&&Pe(this,qu,Iu.setInterval(()=>{(this.options.refetchIntervalInBackground||rM.isFocused())&&yt(this,Et,np).call(this)},J(this,qs)))},L2=function(){yt(this,Et,A2).call(this),yt(this,Et,D2).call(this,yt(this,Et,M2).call(this))},N2=function(){J(this,Xu)!==void 0&&(Iu.clearTimeout(J(this,Xu)),Pe(this,Xu,void 0))},R2=function(){J(this,qu)!==void 0&&(Iu.clearInterval(J(this,qu)),Pe(this,qu,void 0))},E2=function(){const e=J(this,An).getQueryCache().build(J(this,An),this.options);if(e===J(this,bt))return;const t=J(this,bt);Pe(this,bt,e),Pe(this,_g,e.state),this.hasListeners()&&(t==null||t.removeObserver(this),e.addObserver(this))},cV=function(e){qr.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(J(this,dn))}),J(this,An).getQueryCache().notify({query:J(this,bt),type:"observerResultsUpdated"})})},$4);function kX(r,e){return Ta(e.enabled,r)!==!1&&r.state.data===void 0&&!(r.state.status==="error"&&e.retryOnMount===!1)}function ck(r,e){return kX(r,e)||r.state.data!==void 0&&I2(r,e,e.refetchOnMount)}function I2(r,e,t){if(Ta(e.enabled,r)!==!1&&il(e.staleTime,r)!=="static"){const n=typeof t=="function"?t(r):t;return n==="always"||n!==!1&&iM(r,e)}return!1}function fk(r,e,t,n){return(r!==e||Ta(n.enabled,r)===!1)&&(!t.suspense||r.state.status!=="error")&&iM(r,t)}function iM(r,e){return Ta(e.enabled,r)!==!1&&r.isStaleByTime(il(e.staleTime,r))}function OX(r,e){return!_2(r.getCurrentResult(),e)}function hk(r){return{onFetch:(e,t)=>{var c,f,d,v,g;const n=e.options,a=(d=(f=(c=e.fetchOptions)==null?void 0:c.meta)==null?void 0:f.fetchMore)==null?void 0:d.direction,i=((v=e.state.data)==null?void 0:v.pages)||[],o=((g=e.state.data)==null?void 0:g.pageParams)||[];let s={pages:[],pageParams:[]},l=0;const u=async()=>{let x=!1;const y=T=>{MX(T,()=>e.signal,()=>x=!0)},b=nV(e.options,e.fetchOptions),S=async(T,C,M)=>{if(x)return Promise.reject();if(C==null&&T.pages.length)return Promise.resolve(T);const L=(()=>{const k={client:e.client,queryKey:e.queryKey,pageParam:C,direction:M?"backward":"forward",meta:e.options.meta};return y(k),k})(),E=await b(L),{maxPages:R}=e.options,I=M?AX:CX;return{pages:I(T.pages,E,R),pageParams:I(T.pageParams,C,R)}};if(a&&i.length){const T=a==="backward",C=T?PX:dk,M={pages:i,pageParams:o},D=C(n,M);s=await S(M,D,T)}else{const T=r??i.length;do{const C=l===0?o[0]??n.initialPageParam:dk(n,s);if(l>0&&C==null)break;s=await S(s,C),l++}while(l<T)}return s};e.options.persister?e.fetchFn=()=>{var x,y;return(y=(x=e.options).persister)==null?void 0:y.call(x,u,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},t)}:e.fetchFn=u}}}function dk(r,{pages:e,pageParams:t}){const n=e.length-1;return e.length>0?r.getNextPageParam(e[n],e,t[n],t):void 0}function PX(r,{pages:e,pageParams:t}){var n;return e.length>0?(n=r.getPreviousPageParam)==null?void 0:n.call(r,e[0],e,t[0],t):void 0}var wg,Ti,an,Zu,Ci,js,K4,zX=(K4=class extends sV{constructor(e){super();qe(this,Ci);qe(this,wg);qe(this,Ti);qe(this,an);qe(this,Zu);Pe(this,wg,e.client),this.mutationId=e.mutationId,Pe(this,an,e.mutationCache),Pe(this,Ti,[]),this.state=e.state||BX(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){J(this,Ti).includes(e)||(J(this,Ti).push(e),this.clearGcTimeout(),J(this,an).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){Pe(this,Ti,J(this,Ti).filter(t=>t!==e)),this.scheduleGc(),J(this,an).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){J(this,Ti).length||(this.state.status==="pending"?this.scheduleGc():J(this,an).remove(this))}continue(){var e;return((e=J(this,Zu))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var o,s,l,u,c,f,d,v,g,x,y,b,S,T,C,M,D,L;const t=()=>{yt(this,Ci,js).call(this,{type:"continue"})},n={client:J(this,wg),meta:this.options.meta,mutationKey:this.options.mutationKey};Pe(this,Zu,oV({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(E,R)=>{yt(this,Ci,js).call(this,{type:"failed",failureCount:E,error:R})},onPause:()=>{yt(this,Ci,js).call(this,{type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>J(this,an).canRun(this)}));const a=this.state.status==="pending",i=!J(this,Zu).canStart();try{if(a)t();else{yt(this,Ci,js).call(this,{type:"pending",variables:e,isPaused:i}),J(this,an).config.onMutate&&await J(this,an).config.onMutate(e,this,n);const R=await((s=(o=this.options).onMutate)==null?void 0:s.call(o,e,n));R!==this.state.context&&yt(this,Ci,js).call(this,{type:"pending",context:R,variables:e,isPaused:i})}const E=await J(this,Zu).start();return await((u=(l=J(this,an).config).onSuccess)==null?void 0:u.call(l,E,e,this.state.context,this,n)),await((f=(c=this.options).onSuccess)==null?void 0:f.call(c,E,e,this.state.context,n)),await((v=(d=J(this,an).config).onSettled)==null?void 0:v.call(d,E,null,this.state.variables,this.state.context,this,n)),await((x=(g=this.options).onSettled)==null?void 0:x.call(g,E,null,e,this.state.context,n)),yt(this,Ci,js).call(this,{type:"success",data:E}),E}catch(E){try{await((b=(y=J(this,an).config).onError)==null?void 0:b.call(y,E,e,this.state.context,this,n))}catch(R){Promise.reject(R)}try{await((T=(S=this.options).onError)==null?void 0:T.call(S,E,e,this.state.context,n))}catch(R){Promise.reject(R)}try{await((M=(C=J(this,an).config).onSettled)==null?void 0:M.call(C,void 0,E,this.state.variables,this.state.context,this,n))}catch(R){Promise.reject(R)}try{await((L=(D=this.options).onSettled)==null?void 0:L.call(D,void 0,E,e,this.state.context,n))}catch(R){Promise.reject(R)}throw yt(this,Ci,js).call(this,{type:"error",error:E}),E}finally{J(this,an).runNext(this)}}},wg=new WeakMap,Ti=new WeakMap,an=new WeakMap,Zu=new WeakMap,Ci=new WeakSet,js=function(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),qr.batch(()=>{J(this,Ti).forEach(n=>{n.onMutationUpdate(e)}),J(this,an).notify({mutation:this,type:"updated",action:e})})},K4);function BX(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var No,Xa,Tg,Q4,jX=(Q4=class extends Cg{constructor(e={}){super();qe(this,No);qe(this,Xa);qe(this,Tg);this.config=e,Pe(this,No,new Set),Pe(this,Xa,new Map),Pe(this,Tg,0)}build(e,t,n){const a=new zX({client:e,mutationCache:this,mutationId:++uy(this,Tg)._,options:e.defaultMutationOptions(t),state:n});return this.add(a),a}add(e){J(this,No).add(e);const t=cy(e);if(typeof t=="string"){const n=J(this,Xa).get(t);n?n.push(e):J(this,Xa).set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(J(this,No).delete(e)){const t=cy(e);if(typeof t=="string"){const n=J(this,Xa).get(t);if(n)if(n.length>1){const a=n.indexOf(e);a!==-1&&n.splice(a,1)}else n[0]===e&&J(this,Xa).delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=cy(e);if(typeof t=="string"){const n=J(this,Xa).get(t),a=n==null?void 0:n.find(i=>i.state.status==="pending");return!a||a===e}else return!0}runNext(e){var n;const t=cy(e);if(typeof t=="string"){const a=(n=J(this,Xa).get(t))==null?void 0:n.find(i=>i!==e&&i.state.isPaused);return(a==null?void 0:a.continue())??Promise.resolve()}else return Promise.resolve()}clear(){qr.batch(()=>{J(this,No).forEach(e=>{this.notify({type:"removed",mutation:e})}),J(this,No).clear(),J(this,Xa).clear()})}getAll(){return Array.from(J(this,No))}find(e){const t={exact:!0,...e};return this.getAll().find(n=>ik(t,n))}findAll(e={}){return this.getAll().filter(t=>ik(e,t))}notify(e){qr.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return qr.batch(()=>Promise.all(e.map(t=>t.continue().catch(Mn))))}},No=new WeakMap,Xa=new WeakMap,Tg=new WeakMap,Q4);function cy(r){var e;return(e=r.options.scope)==null?void 0:e.id}var Ai,J4,VX=(J4=class extends Cg{constructor(e={}){super();qe(this,Ai);this.config=e,Pe(this,Ai,new Map)}build(e,t,n){const a=t.queryKey,i=t.queryHash??nM(a,t);let o=this.get(i);return o||(o=new EX({client:e,queryKey:a,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(a)}),this.add(o)),o}add(e){J(this,Ai).has(e.queryHash)||(J(this,Ai).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=J(this,Ai).get(e.queryHash);t&&(e.destroy(),t===e&&J(this,Ai).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){qr.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return J(this,Ai).get(e)}getAll(){return[...J(this,Ai).values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>ak(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>ak(e,n)):t}notify(e){qr.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){qr.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){qr.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Ai=new WeakMap,J4),rr,Zs,$s,xh,bh,Ks,_h,Sh,eV,GX=(eV=class{constructor(r={}){qe(this,rr);qe(this,Zs);qe(this,$s);qe(this,xh);qe(this,bh);qe(this,Ks);qe(this,_h);qe(this,Sh);Pe(this,rr,r.queryCache||new VX),Pe(this,Zs,r.mutationCache||new jX),Pe(this,$s,r.defaultOptions||{}),Pe(this,xh,new Map),Pe(this,bh,new Map),Pe(this,Ks,0)}mount(){uy(this,Ks)._++,J(this,Ks)===1&&(Pe(this,_h,rM.subscribe(async r=>{r&&(await this.resumePausedMutations(),J(this,rr).onFocus())})),Pe(this,Sh,ix.subscribe(async r=>{r&&(await this.resumePausedMutations(),J(this,rr).onOnline())})))}unmount(){var r,e;uy(this,Ks)._--,J(this,Ks)===0&&((r=J(this,_h))==null||r.call(this),Pe(this,_h,void 0),(e=J(this,Sh))==null||e.call(this),Pe(this,Sh,void 0))}isFetching(r){return J(this,rr).findAll({...r,fetchStatus:"fetching"}).length}isMutating(r){return J(this,Zs).findAll({...r,status:"pending"}).length}getQueryData(r){var t;const e=this.defaultQueryOptions({queryKey:r});return(t=J(this,rr).get(e.queryHash))==null?void 0:t.state.data}ensureQueryData(r){const e=this.defaultQueryOptions(r),t=J(this,rr).build(this,e),n=t.state.data;return n===void 0?this.fetchQuery(r):(r.revalidateIfStale&&t.isStaleByTime(il(e.staleTime,t))&&this.prefetchQuery(e),Promise.resolve(n))}getQueriesData(r){return J(this,rr).findAll(r).map(({queryKey:e,state:t})=>{const n=t.data;return[e,n]})}setQueryData(r,e,t){const n=this.defaultQueryOptions({queryKey:r}),a=J(this,rr).get(n.queryHash),i=a==null?void 0:a.state.data,o=SX(e,i);if(o!==void 0)return J(this,rr).build(this,n).setData(o,{...t,manual:!0})}setQueriesData(r,e,t){return qr.batch(()=>J(this,rr).findAll(r).map(({queryKey:n})=>[n,this.setQueryData(n,e,t)]))}getQueryState(r){var t;const e=this.defaultQueryOptions({queryKey:r});return(t=J(this,rr).get(e.queryHash))==null?void 0:t.state}removeQueries(r){const e=J(this,rr);qr.batch(()=>{e.findAll(r).forEach(t=>{e.remove(t)})})}resetQueries(r,e){const t=J(this,rr);return qr.batch(()=>(t.findAll(r).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...r},e)))}cancelQueries(r,e={}){const t={revert:!0,...e},n=qr.batch(()=>J(this,rr).findAll(r).map(a=>a.cancel(t)));return Promise.all(n).then(Mn).catch(Mn)}invalidateQueries(r,e={}){return qr.batch(()=>(J(this,rr).findAll(r).forEach(t=>{t.invalidate()}),(r==null?void 0:r.refetchType)==="none"?Promise.resolve():this.refetchQueries({...r,type:(r==null?void 0:r.refetchType)??(r==null?void 0:r.type)??"active"},e)))}refetchQueries(r,e={}){const t={...e,cancelRefetch:e.cancelRefetch??!0},n=qr.batch(()=>J(this,rr).findAll(r).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let i=a.fetch(void 0,t);return t.throwOnError||(i=i.catch(Mn)),a.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(n).then(Mn)}fetchQuery(r){const e=this.defaultQueryOptions(r);e.retry===void 0&&(e.retry=!1);const t=J(this,rr).build(this,e);return t.isStaleByTime(il(e.staleTime,t))?t.fetch(e):Promise.resolve(t.state.data)}prefetchQuery(r){return this.fetchQuery(r).then(Mn).catch(Mn)}fetchInfiniteQuery(r){return r.behavior=hk(r.pages),this.fetchQuery(r)}prefetchInfiniteQuery(r){return this.fetchInfiniteQuery(r).then(Mn).catch(Mn)}ensureInfiniteQueryData(r){return r.behavior=hk(r.pages),this.ensureQueryData(r)}resumePausedMutations(){return ix.isOnline()?J(this,Zs).resumePausedMutations():Promise.resolve()}getQueryCache(){return J(this,rr)}getMutationCache(){return J(this,Zs)}getDefaultOptions(){return J(this,$s)}setDefaultOptions(r){Pe(this,$s,r)}setQueryDefaults(r,e){J(this,xh).set(Op(r),{queryKey:r,defaultOptions:e})}getQueryDefaults(r){const e=[...J(this,xh).values()],t={};return e.forEach(n=>{Pp(r,n.queryKey)&&Object.assign(t,n.defaultOptions)}),t}setMutationDefaults(r,e){J(this,bh).set(Op(r),{mutationKey:r,defaultOptions:e})}getMutationDefaults(r){const e=[...J(this,bh).values()],t={};return e.forEach(n=>{Pp(r,n.mutationKey)&&Object.assign(t,n.defaultOptions)}),t}defaultQueryOptions(r){if(r._defaulted)return r;const e={...J(this,$s).queries,...this.getQueryDefaults(r.queryKey),...r,_defaulted:!0};return e.queryHash||(e.queryHash=nM(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===aM&&(e.enabled=!1),e}defaultMutationOptions(r){return r!=null&&r._defaulted?r:{...J(this,$s).mutations,...(r==null?void 0:r.mutationKey)&&this.getMutationDefaults(r.mutationKey),...r,_defaulted:!0}}clear(){J(this,rr).clear(),J(this,Zs).clear()}},rr=new WeakMap,Zs=new WeakMap,$s=new WeakMap,xh=new WeakMap,bh=new WeakMap,Ks=new WeakMap,_h=new WeakMap,Sh=new WeakMap,eV),RS={exports:{}},lt={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var vk;function HX(){if(vk)return lt;vk=1;var r=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),o=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),f=Symbol.iterator;function d(V){return V===null||typeof V!="object"?null:(V=f&&V[f]||V["@@iterator"],typeof V=="function"?V:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,x={};function y(V,W,$){this.props=V,this.context=W,this.refs=x,this.updater=$||v}y.prototype.isReactComponent={},y.prototype.setState=function(V,W){if(typeof V!="object"&&typeof V!="function"&&V!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,V,W,"setState")},y.prototype.forceUpdate=function(V){this.updater.enqueueForceUpdate(this,V,"forceUpdate")};function b(){}b.prototype=y.prototype;function S(V,W,$){this.props=V,this.context=W,this.refs=x,this.updater=$||v}var T=S.prototype=new b;T.constructor=S,g(T,y.prototype),T.isPureReactComponent=!0;var C=Array.isArray,M={H:null,A:null,T:null,S:null,V:null},D=Object.prototype.hasOwnProperty;function L(V,W,$,te,le,ge){return $=ge.ref,{$$typeof:r,type:V,key:W,ref:$!==void 0?$:null,props:ge}}function E(V,W){return L(V.type,W,void 0,void 0,void 0,V.props)}function R(V){return typeof V=="object"&&V!==null&&V.$$typeof===r}function I(V){var W={"=":"=0",":":"=2"};return"$"+V.replace(/[=:]/g,function($){return W[$]})}var k=/\/+/g;function z(V,W){return typeof V=="object"&&V!==null&&V.key!=null?I(""+V.key):W.toString(36)}function O(){}function G(V){switch(V.status){case"fulfilled":return V.value;case"rejected":throw V.reason;default:switch(typeof V.status=="string"?V.then(O,O):(V.status="pending",V.then(function(W){V.status==="pending"&&(V.status="fulfilled",V.value=W)},function(W){V.status==="pending"&&(V.status="rejected",V.reason=W)})),V.status){case"fulfilled":return V.value;case"rejected":throw V.reason}}throw V}function F(V,W,$,te,le){var ge=typeof V;(ge==="undefined"||ge==="boolean")&&(V=null);var we=!1;if(V===null)we=!0;else switch(ge){case"bigint":case"string":case"number":we=!0;break;case"object":switch(V.$$typeof){case r:case e:we=!0;break;case c:return we=V._init,F(we(V._payload),W,$,te,le)}}if(we)return le=le(V),we=te===""?"."+z(V,0):te,C(le)?($="",we!=null&&($=we.replace(k,"$&/")+"/"),F(le,W,$,"",function(be){return be})):le!=null&&(R(le)&&(le=E(le,$+(le.key==null||V&&V.key===le.key?"":(""+le.key).replace(k,"$&/")+"/")+we)),W.push(le)),1;we=0;var de=te===""?".":te+":";if(C(V))for(var ve=0;ve<V.length;ve++)te=V[ve],ge=de+z(te,ve),we+=F(te,W,$,ge,le);else if(ve=d(V),typeof ve=="function")for(V=ve.call(V),ve=0;!(te=V.next()).done;)te=te.value,ge=de+z(te,ve++),we+=F(te,W,$,ge,le);else if(ge==="object"){if(typeof V.then=="function")return F(G(V),W,$,te,le);throw W=String(V),Error("Objects are not valid as a React child (found: "+(W==="[object Object]"?"object with keys {"+Object.keys(V).join(", ")+"}":W)+"). If you meant to render a collection of children, use an array instead.")}return we}function B(V,W,$){if(V==null)return V;var te=[],le=0;return F(V,te,"","",function(ge){return W.call($,ge,le++)}),te}function Y(V){if(V._status===-1){var W=V._result;W=W(),W.then(function($){(V._status===0||V._status===-1)&&(V._status=1,V._result=$)},function($){(V._status===0||V._status===-1)&&(V._status=2,V._result=$)}),V._status===-1&&(V._status=0,V._result=W)}if(V._status===1)return V._result.default;throw V._result}var H=typeof reportError=="function"?reportError:function(V){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var W=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof V=="object"&&V!==null&&typeof V.message=="string"?String(V.message):String(V),error:V});if(!window.dispatchEvent(W))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",V);return}console.error(V)};function X(){}return lt.Children={map:B,forEach:function(V,W,$){B(V,function(){W.apply(this,arguments)},$)},count:function(V){var W=0;return B(V,function(){W++}),W},toArray:function(V){return B(V,function(W){return W})||[]},only:function(V){if(!R(V))throw Error("React.Children.only expected to receive a single React element child.");return V}},lt.Component=y,lt.Fragment=t,lt.Profiler=a,lt.PureComponent=S,lt.StrictMode=n,lt.Suspense=l,lt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,lt.__COMPILER_RUNTIME={__proto__:null,c:function(V){return M.H.useMemoCache(V)}},lt.cache=function(V){return function(){return V.apply(null,arguments)}},lt.cloneElement=function(V,W,$){if(V==null)throw Error("The argument must be a React element, but you passed "+V+".");var te=g({},V.props),le=V.key,ge=void 0;if(W!=null)for(we in W.ref!==void 0&&(ge=void 0),W.key!==void 0&&(le=""+W.key),W)!D.call(W,we)||we==="key"||we==="__self"||we==="__source"||we==="ref"&&W.ref===void 0||(te[we]=W[we]);var we=arguments.length-2;if(we===1)te.children=$;else if(1<we){for(var de=Array(we),ve=0;ve<we;ve++)de[ve]=arguments[ve+2];te.children=de}return L(V.type,le,void 0,void 0,ge,te)},lt.createContext=function(V){return V={$$typeof:o,_currentValue:V,_currentValue2:V,_threadCount:0,Provider:null,Consumer:null},V.Provider=V,V.Consumer={$$typeof:i,_context:V},V},lt.createElement=function(V,W,$){var te,le={},ge=null;if(W!=null)for(te in W.key!==void 0&&(ge=""+W.key),W)D.call(W,te)&&te!=="key"&&te!=="__self"&&te!=="__source"&&(le[te]=W[te]);var we=arguments.length-2;if(we===1)le.children=$;else if(1<we){for(var de=Array(we),ve=0;ve<we;ve++)de[ve]=arguments[ve+2];le.children=de}if(V&&V.defaultProps)for(te in we=V.defaultProps,we)le[te]===void 0&&(le[te]=we[te]);return L(V,ge,void 0,void 0,null,le)},lt.createRef=function(){return{current:null}},lt.forwardRef=function(V){return{$$typeof:s,render:V}},lt.isValidElement=R,lt.lazy=function(V){return{$$typeof:c,_payload:{_status:-1,_result:V},_init:Y}},lt.memo=function(V,W){return{$$typeof:u,type:V,compare:W===void 0?null:W}},lt.startTransition=function(V){var W=M.T,$={};M.T=$;try{var te=V(),le=M.S;le!==null&&le($,te),typeof te=="object"&&te!==null&&typeof te.then=="function"&&te.then(X,H)}catch(ge){H(ge)}finally{M.T=W}},lt.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},lt.use=function(V){return M.H.use(V)},lt.useActionState=function(V,W,$){return M.H.useActionState(V,W,$)},lt.useCallback=function(V,W){return M.H.useCallback(V,W)},lt.useContext=function(V){return M.H.useContext(V)},lt.useDebugValue=function(){},lt.useDeferredValue=function(V,W){return M.H.useDeferredValue(V,W)},lt.useEffect=function(V,W,$){var te=M.H;if(typeof $=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return te.useEffect(V,W)},lt.useId=function(){return M.H.useId()},lt.useImperativeHandle=function(V,W,$){return M.H.useImperativeHandle(V,W,$)},lt.useInsertionEffect=function(V,W){return M.H.useInsertionEffect(V,W)},lt.useLayoutEffect=function(V,W){return M.H.useLayoutEffect(V,W)},lt.useMemo=function(V,W){return M.H.useMemo(V,W)},lt.useOptimistic=function(V,W){return M.H.useOptimistic(V,W)},lt.useReducer=function(V,W,$){return M.H.useReducer(V,W,$)},lt.useRef=function(V){return M.H.useRef(V)},lt.useState=function(V){return M.H.useState(V)},lt.useSyncExternalStore=function(V,W,$){return M.H.useSyncExternalStore(V,W,$)},lt.useTransition=function(){return M.H.useTransition()},lt.version="19.1.0",lt}var pk;function oM(){return pk||(pk=1,RS.exports=HX()),RS.exports}var Z=oM();const fV=tM(Z),hV=vX({__proto__:null,default:fV},[Z]);var dV=Z.createContext(void 0),vV=r=>{const e=Z.useContext(dV);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},FX=({client:r,children:e})=>(Z.useEffect(()=>(r.mount(),()=>{r.unmount()}),[r]),w.jsx(dV.Provider,{value:r,children:e})),pV=Z.createContext(!1),UX=()=>Z.useContext(pV);pV.Provider;function YX(){let r=!1;return{clearReset:()=>{r=!1},reset:()=>{r=!0},isReset:()=>r}}var WX=Z.createContext(YX()),XX=()=>Z.useContext(WX),qX=(r,e,t)=>{const n=t!=null&&t.state.error&&typeof r.throwOnError=="function"?aV(r.throwOnError,[t.state.error,t]):r.throwOnError;(r.suspense||r.experimental_prefetchInRender||n)&&(e.isReset()||(r.retryOnMount=!1))},ZX=r=>{Z.useEffect(()=>{r.clearReset()},[r])},$X=({result:r,errorResetBoundary:e,throwOnError:t,query:n,suspense:a})=>r.isError&&!e.isReset()&&!r.isFetching&&n&&(a&&r.data===void 0||aV(t,[r.error,n])),KX=r=>{if(r.suspense){const t=a=>a==="static"?a:Math.max(a??1e3,1e3),n=r.staleTime;r.staleTime=typeof n=="function"?(...a)=>t(n(...a)):t(n),typeof r.gcTime=="number"&&(r.gcTime=Math.max(r.gcTime,1e3))}},QX=(r,e)=>r.isLoading&&r.isFetching&&!e,JX=(r,e)=>(r==null?void 0:r.suspense)&&e.isPending,gk=(r,e,t)=>e.fetchOptimistic(r).catch(()=>{t.clearReset()});function eq(r,e,t){var d,v,g,x;const n=UX(),a=XX(),i=vV(),o=i.defaultQueryOptions(r);(v=(d=i.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||v.call(d,o);const s=i.getQueryCache().get(o.queryHash);o._optimisticResults=n?"isRestoring":"optimistic",KX(o),qX(o,a,s),ZX(a);const l=!i.getQueryCache().get(o.queryHash),[u]=Z.useState(()=>new e(i,o)),c=u.getOptimisticResult(o),f=!n&&r.subscribed!==!1;if(Z.useSyncExternalStore(Z.useCallback(y=>{const b=f?u.subscribe(qr.batchCalls(y)):Mn;return u.updateResult(),b},[u,f]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),Z.useEffect(()=>{u.setOptions(o)},[o,u]),JX(o,c))throw gk(o,u,a);if($X({result:c,errorResetBoundary:a,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw c.error;if((x=(g=i.getDefaultOptions().queries)==null?void 0:g._experimental_afterQuery)==null||x.call(g,o,c),o.experimental_prefetchInRender&&!zp.isServer()&&QX(c,n)){const y=l?gk(o,u,a):s==null?void 0:s.promise;y==null||y.catch(Mn).finally(()=>{u.updateResult()})}return o.notifyOnChangeProps?c:u.trackResult(c)}function In(r,e){return eq(r,IX)}var ES={exports:{}},hv={},IS={exports:{}},kS={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var mk;function tq(){return mk||(mk=1,(function(r){function e(B,Y){var H=B.length;B.push(Y);e:for(;0<H;){var X=H-1>>>1,V=B[X];if(0<a(V,Y))B[X]=Y,B[H]=V,H=X;else break e}}function t(B){return B.length===0?null:B[0]}function n(B){if(B.length===0)return null;var Y=B[0],H=B.pop();if(H!==Y){B[0]=H;e:for(var X=0,V=B.length,W=V>>>1;X<W;){var $=2*(X+1)-1,te=B[$],le=$+1,ge=B[le];if(0>a(te,H))le<V&&0>a(ge,te)?(B[X]=ge,B[le]=H,X=le):(B[X]=te,B[$]=H,X=$);else if(le<V&&0>a(ge,H))B[X]=ge,B[le]=H,X=le;else break e}}return Y}function a(B,Y){var H=B.sortIndex-Y.sortIndex;return H!==0?H:B.id-Y.id}if(r.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;r.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();r.unstable_now=function(){return o.now()-s}}var l=[],u=[],c=1,f=null,d=3,v=!1,g=!1,x=!1,y=!1,b=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function C(B){for(var Y=t(u);Y!==null;){if(Y.callback===null)n(u);else if(Y.startTime<=B)n(u),Y.sortIndex=Y.expirationTime,e(l,Y);else break;Y=t(u)}}function M(B){if(x=!1,C(B),!g)if(t(l)!==null)g=!0,D||(D=!0,z());else{var Y=t(u);Y!==null&&F(M,Y.startTime-B)}}var D=!1,L=-1,E=5,R=-1;function I(){return y?!0:!(r.unstable_now()-R<E)}function k(){if(y=!1,D){var B=r.unstable_now();R=B;var Y=!0;try{e:{g=!1,x&&(x=!1,S(L),L=-1),v=!0;var H=d;try{t:{for(C(B),f=t(l);f!==null&&!(f.expirationTime>B&&I());){var X=f.callback;if(typeof X=="function"){f.callback=null,d=f.priorityLevel;var V=X(f.expirationTime<=B);if(B=r.unstable_now(),typeof V=="function"){f.callback=V,C(B),Y=!0;break t}f===t(l)&&n(l),C(B)}else n(l);f=t(l)}if(f!==null)Y=!0;else{var W=t(u);W!==null&&F(M,W.startTime-B),Y=!1}}break e}finally{f=null,d=H,v=!1}Y=void 0}}finally{Y?z():D=!1}}}var z;if(typeof T=="function")z=function(){T(k)};else if(typeof MessageChannel<"u"){var O=new MessageChannel,G=O.port2;O.port1.onmessage=k,z=function(){G.postMessage(null)}}else z=function(){b(k,0)};function F(B,Y){L=b(function(){B(r.unstable_now())},Y)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(B){B.callback=null},r.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<B?Math.floor(1e3/B):5},r.unstable_getCurrentPriorityLevel=function(){return d},r.unstable_next=function(B){switch(d){case 1:case 2:case 3:var Y=3;break;default:Y=d}var H=d;d=Y;try{return B()}finally{d=H}},r.unstable_requestPaint=function(){y=!0},r.unstable_runWithPriority=function(B,Y){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var H=d;d=B;try{return Y()}finally{d=H}},r.unstable_scheduleCallback=function(B,Y,H){var X=r.unstable_now();switch(typeof H=="object"&&H!==null?(H=H.delay,H=typeof H=="number"&&0<H?X+H:X):H=X,B){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5e3}return V=H+V,B={id:c++,callback:Y,priorityLevel:B,startTime:H,expirationTime:V,sortIndex:-1},H>X?(B.sortIndex=H,e(u,B),t(l)===null&&B===t(u)&&(x?(S(L),L=-1):x=!0,F(M,H-X))):(B.sortIndex=V,e(l,B),g||v||(g=!0,D||(D=!0,z()))),B},r.unstable_shouldYield=I,r.unstable_wrapCallback=function(B){var Y=d;return function(){var H=d;d=Y;try{return B.apply(this,arguments)}finally{d=H}}}})(kS)),kS}var yk;function rq(){return yk||(yk=1,IS.exports=tq()),IS.exports}var OS={exports:{}},rn={};/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var xk;function nq(){if(xk)return rn;xk=1;var r=oM();function e(l){var u="https://react.dev/errors/"+l;if(1<arguments.length){u+="?args[]="+encodeURIComponent(arguments[1]);for(var c=2;c<arguments.length;c++)u+="&args[]="+encodeURIComponent(arguments[c])}return"Minified React error #"+l+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function t(){}var n={d:{f:t,r:function(){throw Error(e(522))},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},a=Symbol.for("react.portal");function i(l,u,c){var f=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:f==null?null:""+f,children:l,containerInfo:u,implementation:c}}var o=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function s(l,u){if(l==="font")return"";if(typeof u=="string")return u==="use-credentials"?u:""}return rn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,rn.createPortal=function(l,u){var c=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11)throw Error(e(299));return i(l,u,null,c)},rn.flushSync=function(l){var u=o.T,c=n.p;try{if(o.T=null,n.p=2,l)return l()}finally{o.T=u,n.p=c,n.d.f()}},rn.preconnect=function(l,u){typeof l=="string"&&(u?(u=u.crossOrigin,u=typeof u=="string"?u==="use-credentials"?u:"":void 0):u=null,n.d.C(l,u))},rn.prefetchDNS=function(l){typeof l=="string"&&n.d.D(l)},rn.preinit=function(l,u){if(typeof l=="string"&&u&&typeof u.as=="string"){var c=u.as,f=s(c,u.crossOrigin),d=typeof u.integrity=="string"?u.integrity:void 0,v=typeof u.fetchPriority=="string"?u.fetchPriority:void 0;c==="style"?n.d.S(l,typeof u.precedence=="string"?u.precedence:void 0,{crossOrigin:f,integrity:d,fetchPriority:v}):c==="script"&&n.d.X(l,{crossOrigin:f,integrity:d,fetchPriority:v,nonce:typeof u.nonce=="string"?u.nonce:void 0})}},rn.preinitModule=function(l,u){if(typeof l=="string")if(typeof u=="object"&&u!==null){if(u.as==null||u.as==="script"){var c=s(u.as,u.crossOrigin);n.d.M(l,{crossOrigin:c,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0})}}else u==null&&n.d.M(l)},rn.preload=function(l,u){if(typeof l=="string"&&typeof u=="object"&&u!==null&&typeof u.as=="string"){var c=u.as,f=s(c,u.crossOrigin);n.d.L(l,c,{crossOrigin:f,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0,type:typeof u.type=="string"?u.type:void 0,fetchPriority:typeof u.fetchPriority=="string"?u.fetchPriority:void 0,referrerPolicy:typeof u.referrerPolicy=="string"?u.referrerPolicy:void 0,imageSrcSet:typeof u.imageSrcSet=="string"?u.imageSrcSet:void 0,imageSizes:typeof u.imageSizes=="string"?u.imageSizes:void 0,media:typeof u.media=="string"?u.media:void 0})}},rn.preloadModule=function(l,u){if(typeof l=="string")if(u){var c=s(u.as,u.crossOrigin);n.d.m(l,{as:typeof u.as=="string"&&u.as!=="script"?u.as:void 0,crossOrigin:c,integrity:typeof u.integrity=="string"?u.integrity:void 0})}else n.d.m(l)},rn.requestFormReset=function(l){n.d.r(l)},rn.unstable_batchedUpdates=function(l,u){return l(u)},rn.useFormState=function(l,u,c){return o.H.useFormState(l,u,c)},rn.useFormStatus=function(){return o.H.useHostTransitionStatus()},rn.version="19.1.0",rn}var bk;function gV(){if(bk)return OS.exports;bk=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(e){console.error(e)}}return r(),OS.exports=nq(),OS.exports}/**
|
|
34
|
+
* @license React
|
|
35
|
+
* react-dom-client.production.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/var _k;function aq(){if(_k)return hv;_k=1;var r=rq(),e=oM(),t=gV();function n(h){var p="https://react.dev/errors/"+h;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)p+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+h+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(h){return!(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)}function i(h){var p=h,m=h;if(h.alternate)for(;p.return;)p=p.return;else{h=p;do p=h,(p.flags&4098)!==0&&(m=p.return),h=p.return;while(h)}return p.tag===3?m:null}function o(h){if(h.tag===13){var p=h.memoizedState;if(p===null&&(h=h.alternate,h!==null&&(p=h.memoizedState)),p!==null)return p.dehydrated}return null}function s(h){if(i(h)!==h)throw Error(n(188))}function l(h){var p=h.alternate;if(!p){if(p=i(h),p===null)throw Error(n(188));return p!==h?null:h}for(var m=h,_=p;;){var A=m.return;if(A===null)break;var N=A.alternate;if(N===null){if(_=A.return,_!==null){m=_;continue}break}if(A.child===N.child){for(N=A.child;N;){if(N===m)return s(A),h;if(N===_)return s(A),p;N=N.sibling}throw Error(n(188))}if(m.return!==_.return)m=A,_=N;else{for(var j=!1,U=A.child;U;){if(U===m){j=!0,m=A,_=N;break}if(U===_){j=!0,_=A,m=N;break}U=U.sibling}if(!j){for(U=N.child;U;){if(U===m){j=!0,m=N,_=A;break}if(U===_){j=!0,_=N,m=A;break}U=U.sibling}if(!j)throw Error(n(189))}}if(m.alternate!==_)throw Error(n(190))}if(m.tag!==3)throw Error(n(188));return m.stateNode.current===m?h:p}function u(h){var p=h.tag;if(p===5||p===26||p===27||p===6)return h;for(h=h.child;h!==null;){if(p=u(h),p!==null)return p;h=h.sibling}return null}var c=Object.assign,f=Symbol.for("react.element"),d=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),b=Symbol.for("react.provider"),S=Symbol.for("react.consumer"),T=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),R=Symbol.for("react.activity"),I=Symbol.for("react.memo_cache_sentinel"),k=Symbol.iterator;function z(h){return h===null||typeof h!="object"?null:(h=k&&h[k]||h["@@iterator"],typeof h=="function"?h:null)}var O=Symbol.for("react.client.reference");function G(h){if(h==null)return null;if(typeof h=="function")return h.$$typeof===O?null:h.displayName||h.name||null;if(typeof h=="string")return h;switch(h){case g:return"Fragment";case y:return"Profiler";case x:return"StrictMode";case M:return"Suspense";case D:return"SuspenseList";case R:return"Activity"}if(typeof h=="object")switch(h.$$typeof){case v:return"Portal";case T:return(h.displayName||"Context")+".Provider";case S:return(h._context.displayName||"Context")+".Consumer";case C:var p=h.render;return h=h.displayName,h||(h=p.displayName||p.name||"",h=h!==""?"ForwardRef("+h+")":"ForwardRef"),h;case L:return p=h.displayName||null,p!==null?p:G(h.type)||"Memo";case E:p=h._payload,h=h._init;try{return G(h(p))}catch{}}return null}var F=Array.isArray,B=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H={pending:!1,data:null,method:null,action:null},X=[],V=-1;function W(h){return{current:h}}function $(h){0>V||(h.current=X[V],X[V]=null,V--)}function te(h,p){V++,X[V]=h.current,h.current=p}var le=W(null),ge=W(null),we=W(null),de=W(null);function ve(h,p){switch(te(we,p),te(ge,h),te(le,null),p.nodeType){case 9:case 11:h=(h=p.documentElement)&&(h=h.namespaceURI)?LI(h):0;break;default:if(h=p.tagName,p=p.namespaceURI)p=LI(p),h=NI(p,h);else switch(h){case"svg":h=1;break;case"math":h=2;break;default:h=0}}$(le),te(le,h)}function be(){$(le),$(ge),$(we)}function Oe(h){h.memoizedState!==null&&te(de,h);var p=le.current,m=NI(p,h.type);p!==m&&(te(ge,h),te(le,m))}function _e(h){ge.current===h&&($(le),$(ge)),de.current===h&&($(de),ov._currentValue=H)}var Le=Object.prototype.hasOwnProperty,st=r.unstable_scheduleCallback,Qe=r.unstable_cancelCallback,ct=r.unstable_shouldYield,xt=r.unstable_requestPaint,Tt=r.unstable_now,Hr=r.unstable_getCurrentPriorityLevel,Jt=r.unstable_ImmediatePriority,li=r.unstable_UserBlockingPriority,Ba=r.unstable_NormalPriority,dd=r.unstable_LowPriority,fN=r.unstable_IdlePriority,$9=r.log,K9=r.unstable_setDisableYieldValue,vd=null,On=null;function ns(h){if(typeof $9=="function"&&K9(h),On&&typeof On.setStrictMode=="function")try{On.setStrictMode(vd,h)}catch{}}var Pn=Math.clz32?Math.clz32:eY,Q9=Math.log,J9=Math.LN2;function eY(h){return h>>>=0,h===0?32:31-(Q9(h)/J9|0)|0}var $g=256,Kg=4194304;function Rl(h){var p=h&42;if(p!==0)return p;switch(h&-h){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return h&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return h&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return h}}function Qg(h,p,m){var _=h.pendingLanes;if(_===0)return 0;var A=0,N=h.suspendedLanes,j=h.pingedLanes;h=h.warmLanes;var U=_&134217727;return U!==0?(_=U&~N,_!==0?A=Rl(_):(j&=U,j!==0?A=Rl(j):m||(m=U&~h,m!==0&&(A=Rl(m))))):(U=_&~N,U!==0?A=Rl(U):j!==0?A=Rl(j):m||(m=_&~h,m!==0&&(A=Rl(m)))),A===0?0:p!==0&&p!==A&&(p&N)===0&&(N=A&-A,m=p&-p,N>=m||N===32&&(m&4194048)!==0)?p:A}function pd(h,p){return(h.pendingLanes&~(h.suspendedLanes&~h.pingedLanes)&p)===0}function tY(h,p){switch(h){case 1:case 2:case 4:case 8:case 64:return p+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return p+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function hN(){var h=$g;return $g<<=1,($g&4194048)===0&&($g=256),h}function dN(){var h=Kg;return Kg<<=1,(Kg&62914560)===0&&(Kg=4194304),h}function yb(h){for(var p=[],m=0;31>m;m++)p.push(h);return p}function gd(h,p){h.pendingLanes|=p,p!==268435456&&(h.suspendedLanes=0,h.pingedLanes=0,h.warmLanes=0)}function rY(h,p,m,_,A,N){var j=h.pendingLanes;h.pendingLanes=m,h.suspendedLanes=0,h.pingedLanes=0,h.warmLanes=0,h.expiredLanes&=m,h.entangledLanes&=m,h.errorRecoveryDisabledLanes&=m,h.shellSuspendCounter=0;var U=h.entanglements,q=h.expirationTimes,ae=h.hiddenUpdates;for(m=j&~m;0<m;){var fe=31-Pn(m),pe=1<<fe;U[fe]=0,q[fe]=-1;var oe=ae[fe];if(oe!==null)for(ae[fe]=null,fe=0;fe<oe.length;fe++){var se=oe[fe];se!==null&&(se.lane&=-536870913)}m&=~pe}_!==0&&vN(h,_,0),N!==0&&A===0&&h.tag!==0&&(h.suspendedLanes|=N&~(j&~p))}function vN(h,p,m){h.pendingLanes|=p,h.suspendedLanes&=~p;var _=31-Pn(p);h.entangledLanes|=p,h.entanglements[_]=h.entanglements[_]|1073741824|m&4194090}function pN(h,p){var m=h.entangledLanes|=p;for(h=h.entanglements;m;){var _=31-Pn(m),A=1<<_;A&p|h[_]&p&&(h[_]|=p),m&=~A}}function xb(h){switch(h){case 2:h=1;break;case 8:h=4;break;case 32:h=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:h=128;break;case 268435456:h=134217728;break;default:h=0}return h}function bb(h){return h&=-h,2<h?8<h?(h&134217727)!==0?32:268435456:8:2}function gN(){var h=Y.p;return h!==0?h:(h=window.event,h===void 0?32:ZI(h.type))}function nY(h,p){var m=Y.p;try{return Y.p=h,p()}finally{Y.p=m}}var as=Math.random().toString(36).slice(2),en="__reactFiber$"+as,bn="__reactProps$"+as,Dc="__reactContainer$"+as,_b="__reactEvents$"+as,aY="__reactListeners$"+as,iY="__reactHandles$"+as,mN="__reactResources$"+as,md="__reactMarker$"+as;function Sb(h){delete h[en],delete h[bn],delete h[_b],delete h[aY],delete h[iY]}function Lc(h){var p=h[en];if(p)return p;for(var m=h.parentNode;m;){if(p=m[Dc]||m[en]){if(m=p.alternate,p.child!==null||m!==null&&m.child!==null)for(h=kI(h);h!==null;){if(m=h[en])return m;h=kI(h)}return p}h=m,m=h.parentNode}return null}function Nc(h){if(h=h[en]||h[Dc]){var p=h.tag;if(p===5||p===6||p===13||p===26||p===27||p===3)return h}return null}function yd(h){var p=h.tag;if(p===5||p===26||p===27||p===6)return h.stateNode;throw Error(n(33))}function Rc(h){var p=h[mN];return p||(p=h[mN]={hoistableStyles:new Map,hoistableScripts:new Map}),p}function Rr(h){h[md]=!0}var yN=new Set,xN={};function El(h,p){Ec(h,p),Ec(h+"Capture",p)}function Ec(h,p){for(xN[h]=p,h=0;h<p.length;h++)yN.add(p[h])}var oY=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),bN={},_N={};function sY(h){return Le.call(_N,h)?!0:Le.call(bN,h)?!1:oY.test(h)?_N[h]=!0:(bN[h]=!0,!1)}function Jg(h,p,m){if(sY(p))if(m===null)h.removeAttribute(p);else{switch(typeof m){case"undefined":case"function":case"symbol":h.removeAttribute(p);return;case"boolean":var _=p.toLowerCase().slice(0,5);if(_!=="data-"&&_!=="aria-"){h.removeAttribute(p);return}}h.setAttribute(p,""+m)}}function em(h,p,m){if(m===null)h.removeAttribute(p);else{switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":h.removeAttribute(p);return}h.setAttribute(p,""+m)}}function Ji(h,p,m,_){if(_===null)h.removeAttribute(m);else{switch(typeof _){case"undefined":case"function":case"symbol":case"boolean":h.removeAttribute(m);return}h.setAttributeNS(p,m,""+_)}}var wb,SN;function Ic(h){if(wb===void 0)try{throw Error()}catch(m){var p=m.stack.trim().match(/\n( *(at )?)/);wb=p&&p[1]||"",SN=-1<m.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<m.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+wb+h+SN}var Tb=!1;function Cb(h,p){if(!h||Tb)return"";Tb=!0;var m=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var _={DetermineComponentFrameRoot:function(){try{if(p){var pe=function(){throw Error()};if(Object.defineProperty(pe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(pe,[])}catch(se){var oe=se}Reflect.construct(h,[],pe)}else{try{pe.call()}catch(se){oe=se}h.call(pe.prototype)}}else{try{throw Error()}catch(se){oe=se}(pe=h())&&typeof pe.catch=="function"&&pe.catch(function(){})}}catch(se){if(se&&oe&&typeof se.stack=="string")return[se.stack,oe.stack]}return[null,null]}};_.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var A=Object.getOwnPropertyDescriptor(_.DetermineComponentFrameRoot,"name");A&&A.configurable&&Object.defineProperty(_.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var N=_.DetermineComponentFrameRoot(),j=N[0],U=N[1];if(j&&U){var q=j.split(`
|
|
44
|
+
`),ae=U.split(`
|
|
45
|
+
`);for(A=_=0;_<q.length&&!q[_].includes("DetermineComponentFrameRoot");)_++;for(;A<ae.length&&!ae[A].includes("DetermineComponentFrameRoot");)A++;if(_===q.length||A===ae.length)for(_=q.length-1,A=ae.length-1;1<=_&&0<=A&&q[_]!==ae[A];)A--;for(;1<=_&&0<=A;_--,A--)if(q[_]!==ae[A]){if(_!==1||A!==1)do if(_--,A--,0>A||q[_]!==ae[A]){var fe=`
|
|
46
|
+
`+q[_].replace(" at new "," at ");return h.displayName&&fe.includes("<anonymous>")&&(fe=fe.replace("<anonymous>",h.displayName)),fe}while(1<=_&&0<=A);break}}}finally{Tb=!1,Error.prepareStackTrace=m}return(m=h?h.displayName||h.name:"")?Ic(m):""}function lY(h){switch(h.tag){case 26:case 27:case 5:return Ic(h.type);case 16:return Ic("Lazy");case 13:return Ic("Suspense");case 19:return Ic("SuspenseList");case 0:case 15:return Cb(h.type,!1);case 11:return Cb(h.type.render,!1);case 1:return Cb(h.type,!0);case 31:return Ic("Activity");default:return""}}function wN(h){try{var p="";do p+=lY(h),h=h.return;while(h);return p}catch(m){return`
|
|
47
|
+
Error generating stack: `+m.message+`
|
|
48
|
+
`+m.stack}}function oa(h){switch(typeof h){case"bigint":case"boolean":case"number":case"string":case"undefined":return h;case"object":return h;default:return""}}function TN(h){var p=h.type;return(h=h.nodeName)&&h.toLowerCase()==="input"&&(p==="checkbox"||p==="radio")}function uY(h){var p=TN(h)?"checked":"value",m=Object.getOwnPropertyDescriptor(h.constructor.prototype,p),_=""+h[p];if(!h.hasOwnProperty(p)&&typeof m<"u"&&typeof m.get=="function"&&typeof m.set=="function"){var A=m.get,N=m.set;return Object.defineProperty(h,p,{configurable:!0,get:function(){return A.call(this)},set:function(j){_=""+j,N.call(this,j)}}),Object.defineProperty(h,p,{enumerable:m.enumerable}),{getValue:function(){return _},setValue:function(j){_=""+j},stopTracking:function(){h._valueTracker=null,delete h[p]}}}}function tm(h){h._valueTracker||(h._valueTracker=uY(h))}function CN(h){if(!h)return!1;var p=h._valueTracker;if(!p)return!0;var m=p.getValue(),_="";return h&&(_=TN(h)?h.checked?"true":"false":h.value),h=_,h!==m?(p.setValue(h),!0):!1}function rm(h){if(h=h||(typeof document<"u"?document:void 0),typeof h>"u")return null;try{return h.activeElement||h.body}catch{return h.body}}var cY=/[\n"\\]/g;function sa(h){return h.replace(cY,function(p){return"\\"+p.charCodeAt(0).toString(16)+" "})}function Ab(h,p,m,_,A,N,j,U){h.name="",j!=null&&typeof j!="function"&&typeof j!="symbol"&&typeof j!="boolean"?h.type=j:h.removeAttribute("type"),p!=null?j==="number"?(p===0&&h.value===""||h.value!=p)&&(h.value=""+oa(p)):h.value!==""+oa(p)&&(h.value=""+oa(p)):j!=="submit"&&j!=="reset"||h.removeAttribute("value"),p!=null?Mb(h,j,oa(p)):m!=null?Mb(h,j,oa(m)):_!=null&&h.removeAttribute("value"),A==null&&N!=null&&(h.defaultChecked=!!N),A!=null&&(h.checked=A&&typeof A!="function"&&typeof A!="symbol"),U!=null&&typeof U!="function"&&typeof U!="symbol"&&typeof U!="boolean"?h.name=""+oa(U):h.removeAttribute("name")}function AN(h,p,m,_,A,N,j,U){if(N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"&&(h.type=N),p!=null||m!=null){if(!(N!=="submit"&&N!=="reset"||p!=null))return;m=m!=null?""+oa(m):"",p=p!=null?""+oa(p):m,U||p===h.value||(h.value=p),h.defaultValue=p}_=_??A,_=typeof _!="function"&&typeof _!="symbol"&&!!_,h.checked=U?h.checked:!!_,h.defaultChecked=!!_,j!=null&&typeof j!="function"&&typeof j!="symbol"&&typeof j!="boolean"&&(h.name=j)}function Mb(h,p,m){p==="number"&&rm(h.ownerDocument)===h||h.defaultValue===""+m||(h.defaultValue=""+m)}function kc(h,p,m,_){if(h=h.options,p){p={};for(var A=0;A<m.length;A++)p["$"+m[A]]=!0;for(m=0;m<h.length;m++)A=p.hasOwnProperty("$"+h[m].value),h[m].selected!==A&&(h[m].selected=A),A&&_&&(h[m].defaultSelected=!0)}else{for(m=""+oa(m),p=null,A=0;A<h.length;A++){if(h[A].value===m){h[A].selected=!0,_&&(h[A].defaultSelected=!0);return}p!==null||h[A].disabled||(p=h[A])}p!==null&&(p.selected=!0)}}function MN(h,p,m){if(p!=null&&(p=""+oa(p),p!==h.value&&(h.value=p),m==null)){h.defaultValue!==p&&(h.defaultValue=p);return}h.defaultValue=m!=null?""+oa(m):""}function DN(h,p,m,_){if(p==null){if(_!=null){if(m!=null)throw Error(n(92));if(F(_)){if(1<_.length)throw Error(n(93));_=_[0]}m=_}m==null&&(m=""),p=m}m=oa(p),h.defaultValue=m,_=h.textContent,_===m&&_!==""&&_!==null&&(h.value=_)}function Oc(h,p){if(p){var m=h.firstChild;if(m&&m===h.lastChild&&m.nodeType===3){m.nodeValue=p;return}}h.textContent=p}var fY=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function LN(h,p,m){var _=p.indexOf("--")===0;m==null||typeof m=="boolean"||m===""?_?h.setProperty(p,""):p==="float"?h.cssFloat="":h[p]="":_?h.setProperty(p,m):typeof m!="number"||m===0||fY.has(p)?p==="float"?h.cssFloat=m:h[p]=(""+m).trim():h[p]=m+"px"}function NN(h,p,m){if(p!=null&&typeof p!="object")throw Error(n(62));if(h=h.style,m!=null){for(var _ in m)!m.hasOwnProperty(_)||p!=null&&p.hasOwnProperty(_)||(_.indexOf("--")===0?h.setProperty(_,""):_==="float"?h.cssFloat="":h[_]="");for(var A in p)_=p[A],p.hasOwnProperty(A)&&m[A]!==_&&LN(h,A,_)}else for(var N in p)p.hasOwnProperty(N)&&LN(h,N,p[N])}function Db(h){if(h.indexOf("-")===-1)return!1;switch(h){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var hY=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),dY=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function nm(h){return dY.test(""+h)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":h}var Lb=null;function Nb(h){return h=h.target||h.srcElement||window,h.correspondingUseElement&&(h=h.correspondingUseElement),h.nodeType===3?h.parentNode:h}var Pc=null,zc=null;function RN(h){var p=Nc(h);if(p&&(h=p.stateNode)){var m=h[bn]||null;e:switch(h=p.stateNode,p.type){case"input":if(Ab(h,m.value,m.defaultValue,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name),p=m.name,m.type==="radio"&&p!=null){for(m=h;m.parentNode;)m=m.parentNode;for(m=m.querySelectorAll('input[name="'+sa(""+p)+'"][type="radio"]'),p=0;p<m.length;p++){var _=m[p];if(_!==h&&_.form===h.form){var A=_[bn]||null;if(!A)throw Error(n(90));Ab(_,A.value,A.defaultValue,A.defaultValue,A.checked,A.defaultChecked,A.type,A.name)}}for(p=0;p<m.length;p++)_=m[p],_.form===h.form&&CN(_)}break e;case"textarea":MN(h,m.value,m.defaultValue);break e;case"select":p=m.value,p!=null&&kc(h,!!m.multiple,p,!1)}}}var Rb=!1;function EN(h,p,m){if(Rb)return h(p,m);Rb=!0;try{var _=h(p);return _}finally{if(Rb=!1,(Pc!==null||zc!==null)&&(Hm(),Pc&&(p=Pc,h=zc,zc=Pc=null,RN(p),h)))for(p=0;p<h.length;p++)RN(h[p])}}function xd(h,p){var m=h.stateNode;if(m===null)return null;var _=m[bn]||null;if(_===null)return null;m=_[p];e:switch(p){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(_=!_.disabled)||(h=h.type,_=!(h==="button"||h==="input"||h==="select"||h==="textarea")),h=!_;break e;default:h=!1}if(h)return null;if(m&&typeof m!="function")throw Error(n(231,p,typeof m));return m}var eo=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Eb=!1;if(eo)try{var bd={};Object.defineProperty(bd,"passive",{get:function(){Eb=!0}}),window.addEventListener("test",bd,bd),window.removeEventListener("test",bd,bd)}catch{Eb=!1}var is=null,Ib=null,am=null;function IN(){if(am)return am;var h,p=Ib,m=p.length,_,A="value"in is?is.value:is.textContent,N=A.length;for(h=0;h<m&&p[h]===A[h];h++);var j=m-h;for(_=1;_<=j&&p[m-_]===A[N-_];_++);return am=A.slice(h,1<_?1-_:void 0)}function im(h){var p=h.keyCode;return"charCode"in h?(h=h.charCode,h===0&&p===13&&(h=13)):h=p,h===10&&(h=13),32<=h||h===13?h:0}function om(){return!0}function kN(){return!1}function _n(h){function p(m,_,A,N,j){this._reactName=m,this._targetInst=A,this.type=_,this.nativeEvent=N,this.target=j,this.currentTarget=null;for(var U in h)h.hasOwnProperty(U)&&(m=h[U],this[U]=m?m(N):N[U]);return this.isDefaultPrevented=(N.defaultPrevented!=null?N.defaultPrevented:N.returnValue===!1)?om:kN,this.isPropagationStopped=kN,this}return c(p.prototype,{preventDefault:function(){this.defaultPrevented=!0;var m=this.nativeEvent;m&&(m.preventDefault?m.preventDefault():typeof m.returnValue!="unknown"&&(m.returnValue=!1),this.isDefaultPrevented=om)},stopPropagation:function(){var m=this.nativeEvent;m&&(m.stopPropagation?m.stopPropagation():typeof m.cancelBubble!="unknown"&&(m.cancelBubble=!0),this.isPropagationStopped=om)},persist:function(){},isPersistent:om}),p}var Il={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(h){return h.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},sm=_n(Il),_d=c({},Il,{view:0,detail:0}),vY=_n(_d),kb,Ob,Sd,lm=c({},_d,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zb,button:0,buttons:0,relatedTarget:function(h){return h.relatedTarget===void 0?h.fromElement===h.srcElement?h.toElement:h.fromElement:h.relatedTarget},movementX:function(h){return"movementX"in h?h.movementX:(h!==Sd&&(Sd&&h.type==="mousemove"?(kb=h.screenX-Sd.screenX,Ob=h.screenY-Sd.screenY):Ob=kb=0,Sd=h),kb)},movementY:function(h){return"movementY"in h?h.movementY:Ob}}),ON=_n(lm),pY=c({},lm,{dataTransfer:0}),gY=_n(pY),mY=c({},_d,{relatedTarget:0}),Pb=_n(mY),yY=c({},Il,{animationName:0,elapsedTime:0,pseudoElement:0}),xY=_n(yY),bY=c({},Il,{clipboardData:function(h){return"clipboardData"in h?h.clipboardData:window.clipboardData}}),_Y=_n(bY),SY=c({},Il,{data:0}),PN=_n(SY),wY={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},TY={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},CY={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function AY(h){var p=this.nativeEvent;return p.getModifierState?p.getModifierState(h):(h=CY[h])?!!p[h]:!1}function zb(){return AY}var MY=c({},_d,{key:function(h){if(h.key){var p=wY[h.key]||h.key;if(p!=="Unidentified")return p}return h.type==="keypress"?(h=im(h),h===13?"Enter":String.fromCharCode(h)):h.type==="keydown"||h.type==="keyup"?TY[h.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zb,charCode:function(h){return h.type==="keypress"?im(h):0},keyCode:function(h){return h.type==="keydown"||h.type==="keyup"?h.keyCode:0},which:function(h){return h.type==="keypress"?im(h):h.type==="keydown"||h.type==="keyup"?h.keyCode:0}}),DY=_n(MY),LY=c({},lm,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),zN=_n(LY),NY=c({},_d,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zb}),RY=_n(NY),EY=c({},Il,{propertyName:0,elapsedTime:0,pseudoElement:0}),IY=_n(EY),kY=c({},lm,{deltaX:function(h){return"deltaX"in h?h.deltaX:"wheelDeltaX"in h?-h.wheelDeltaX:0},deltaY:function(h){return"deltaY"in h?h.deltaY:"wheelDeltaY"in h?-h.wheelDeltaY:"wheelDelta"in h?-h.wheelDelta:0},deltaZ:0,deltaMode:0}),OY=_n(kY),PY=c({},Il,{newState:0,oldState:0}),zY=_n(PY),BY=[9,13,27,32],Bb=eo&&"CompositionEvent"in window,wd=null;eo&&"documentMode"in document&&(wd=document.documentMode);var jY=eo&&"TextEvent"in window&&!wd,BN=eo&&(!Bb||wd&&8<wd&&11>=wd),jN=" ",VN=!1;function GN(h,p){switch(h){case"keyup":return BY.indexOf(p.keyCode)!==-1;case"keydown":return p.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function HN(h){return h=h.detail,typeof h=="object"&&"data"in h?h.data:null}var Bc=!1;function VY(h,p){switch(h){case"compositionend":return HN(p);case"keypress":return p.which!==32?null:(VN=!0,jN);case"textInput":return h=p.data,h===jN&&VN?null:h;default:return null}}function GY(h,p){if(Bc)return h==="compositionend"||!Bb&&GN(h,p)?(h=IN(),am=Ib=is=null,Bc=!1,h):null;switch(h){case"paste":return null;case"keypress":if(!(p.ctrlKey||p.altKey||p.metaKey)||p.ctrlKey&&p.altKey){if(p.char&&1<p.char.length)return p.char;if(p.which)return String.fromCharCode(p.which)}return null;case"compositionend":return BN&&p.locale!=="ko"?null:p.data;default:return null}}var HY={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function FN(h){var p=h&&h.nodeName&&h.nodeName.toLowerCase();return p==="input"?!!HY[h.type]:p==="textarea"}function UN(h,p,m,_){Pc?zc?zc.push(_):zc=[_]:Pc=_,p=qm(p,"onChange"),0<p.length&&(m=new sm("onChange","change",null,m,_),h.push({event:m,listeners:p}))}var Td=null,Cd=null;function FY(h){TI(h,0)}function um(h){var p=yd(h);if(CN(p))return h}function YN(h,p){if(h==="change")return p}var WN=!1;if(eo){var jb;if(eo){var Vb="oninput"in document;if(!Vb){var XN=document.createElement("div");XN.setAttribute("oninput","return;"),Vb=typeof XN.oninput=="function"}jb=Vb}else jb=!1;WN=jb&&(!document.documentMode||9<document.documentMode)}function qN(){Td&&(Td.detachEvent("onpropertychange",ZN),Cd=Td=null)}function ZN(h){if(h.propertyName==="value"&&um(Cd)){var p=[];UN(p,Cd,h,Nb(h)),EN(FY,p)}}function UY(h,p,m){h==="focusin"?(qN(),Td=p,Cd=m,Td.attachEvent("onpropertychange",ZN)):h==="focusout"&&qN()}function YY(h){if(h==="selectionchange"||h==="keyup"||h==="keydown")return um(Cd)}function WY(h,p){if(h==="click")return um(p)}function XY(h,p){if(h==="input"||h==="change")return um(p)}function qY(h,p){return h===p&&(h!==0||1/h===1/p)||h!==h&&p!==p}var zn=typeof Object.is=="function"?Object.is:qY;function Ad(h,p){if(zn(h,p))return!0;if(typeof h!="object"||h===null||typeof p!="object"||p===null)return!1;var m=Object.keys(h),_=Object.keys(p);if(m.length!==_.length)return!1;for(_=0;_<m.length;_++){var A=m[_];if(!Le.call(p,A)||!zn(h[A],p[A]))return!1}return!0}function $N(h){for(;h&&h.firstChild;)h=h.firstChild;return h}function KN(h,p){var m=$N(h);h=0;for(var _;m;){if(m.nodeType===3){if(_=h+m.textContent.length,h<=p&&_>=p)return{node:m,offset:p-h};h=_}e:{for(;m;){if(m.nextSibling){m=m.nextSibling;break e}m=m.parentNode}m=void 0}m=$N(m)}}function QN(h,p){return h&&p?h===p?!0:h&&h.nodeType===3?!1:p&&p.nodeType===3?QN(h,p.parentNode):"contains"in h?h.contains(p):h.compareDocumentPosition?!!(h.compareDocumentPosition(p)&16):!1:!1}function JN(h){h=h!=null&&h.ownerDocument!=null&&h.ownerDocument.defaultView!=null?h.ownerDocument.defaultView:window;for(var p=rm(h.document);p instanceof h.HTMLIFrameElement;){try{var m=typeof p.contentWindow.location.href=="string"}catch{m=!1}if(m)h=p.contentWindow;else break;p=rm(h.document)}return p}function Gb(h){var p=h&&h.nodeName&&h.nodeName.toLowerCase();return p&&(p==="input"&&(h.type==="text"||h.type==="search"||h.type==="tel"||h.type==="url"||h.type==="password")||p==="textarea"||h.contentEditable==="true")}var ZY=eo&&"documentMode"in document&&11>=document.documentMode,jc=null,Hb=null,Md=null,Fb=!1;function eR(h,p,m){var _=m.window===m?m.document:m.nodeType===9?m:m.ownerDocument;Fb||jc==null||jc!==rm(_)||(_=jc,"selectionStart"in _&&Gb(_)?_={start:_.selectionStart,end:_.selectionEnd}:(_=(_.ownerDocument&&_.ownerDocument.defaultView||window).getSelection(),_={anchorNode:_.anchorNode,anchorOffset:_.anchorOffset,focusNode:_.focusNode,focusOffset:_.focusOffset}),Md&&Ad(Md,_)||(Md=_,_=qm(Hb,"onSelect"),0<_.length&&(p=new sm("onSelect","select",null,p,m),h.push({event:p,listeners:_}),p.target=jc)))}function kl(h,p){var m={};return m[h.toLowerCase()]=p.toLowerCase(),m["Webkit"+h]="webkit"+p,m["Moz"+h]="moz"+p,m}var Vc={animationend:kl("Animation","AnimationEnd"),animationiteration:kl("Animation","AnimationIteration"),animationstart:kl("Animation","AnimationStart"),transitionrun:kl("Transition","TransitionRun"),transitionstart:kl("Transition","TransitionStart"),transitioncancel:kl("Transition","TransitionCancel"),transitionend:kl("Transition","TransitionEnd")},Ub={},tR={};eo&&(tR=document.createElement("div").style,"AnimationEvent"in window||(delete Vc.animationend.animation,delete Vc.animationiteration.animation,delete Vc.animationstart.animation),"TransitionEvent"in window||delete Vc.transitionend.transition);function Ol(h){if(Ub[h])return Ub[h];if(!Vc[h])return h;var p=Vc[h],m;for(m in p)if(p.hasOwnProperty(m)&&m in tR)return Ub[h]=p[m];return h}var rR=Ol("animationend"),nR=Ol("animationiteration"),aR=Ol("animationstart"),$Y=Ol("transitionrun"),KY=Ol("transitionstart"),QY=Ol("transitioncancel"),iR=Ol("transitionend"),oR=new Map,Yb="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Yb.push("scrollEnd");function ja(h,p){oR.set(h,p),El(p,[h])}var sR=new WeakMap;function la(h,p){if(typeof h=="object"&&h!==null){var m=sR.get(h);return m!==void 0?m:(p={value:h,source:p,stack:wN(p)},sR.set(h,p),p)}return{value:h,source:p,stack:wN(p)}}var ua=[],Gc=0,Wb=0;function cm(){for(var h=Gc,p=Wb=Gc=0;p<h;){var m=ua[p];ua[p++]=null;var _=ua[p];ua[p++]=null;var A=ua[p];ua[p++]=null;var N=ua[p];if(ua[p++]=null,_!==null&&A!==null){var j=_.pending;j===null?A.next=A:(A.next=j.next,j.next=A),_.pending=A}N!==0&&lR(m,A,N)}}function fm(h,p,m,_){ua[Gc++]=h,ua[Gc++]=p,ua[Gc++]=m,ua[Gc++]=_,Wb|=_,h.lanes|=_,h=h.alternate,h!==null&&(h.lanes|=_)}function Xb(h,p,m,_){return fm(h,p,m,_),hm(h)}function Hc(h,p){return fm(h,null,null,p),hm(h)}function lR(h,p,m){h.lanes|=m;var _=h.alternate;_!==null&&(_.lanes|=m);for(var A=!1,N=h.return;N!==null;)N.childLanes|=m,_=N.alternate,_!==null&&(_.childLanes|=m),N.tag===22&&(h=N.stateNode,h===null||h._visibility&1||(A=!0)),h=N,N=N.return;return h.tag===3?(N=h.stateNode,A&&p!==null&&(A=31-Pn(m),h=N.hiddenUpdates,_=h[A],_===null?h[A]=[p]:_.push(p),p.lane=m|536870912),N):null}function hm(h){if(50<Qd)throw Qd=0,J_=null,Error(n(185));for(var p=h.return;p!==null;)h=p,p=h.return;return h.tag===3?h.stateNode:null}var Fc={};function JY(h,p,m,_){this.tag=h,this.key=m,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=p,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=_,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bn(h,p,m,_){return new JY(h,p,m,_)}function qb(h){return h=h.prototype,!(!h||!h.isReactComponent)}function to(h,p){var m=h.alternate;return m===null?(m=Bn(h.tag,p,h.key,h.mode),m.elementType=h.elementType,m.type=h.type,m.stateNode=h.stateNode,m.alternate=h,h.alternate=m):(m.pendingProps=p,m.type=h.type,m.flags=0,m.subtreeFlags=0,m.deletions=null),m.flags=h.flags&65011712,m.childLanes=h.childLanes,m.lanes=h.lanes,m.child=h.child,m.memoizedProps=h.memoizedProps,m.memoizedState=h.memoizedState,m.updateQueue=h.updateQueue,p=h.dependencies,m.dependencies=p===null?null:{lanes:p.lanes,firstContext:p.firstContext},m.sibling=h.sibling,m.index=h.index,m.ref=h.ref,m.refCleanup=h.refCleanup,m}function uR(h,p){h.flags&=65011714;var m=h.alternate;return m===null?(h.childLanes=0,h.lanes=p,h.child=null,h.subtreeFlags=0,h.memoizedProps=null,h.memoizedState=null,h.updateQueue=null,h.dependencies=null,h.stateNode=null):(h.childLanes=m.childLanes,h.lanes=m.lanes,h.child=m.child,h.subtreeFlags=0,h.deletions=null,h.memoizedProps=m.memoizedProps,h.memoizedState=m.memoizedState,h.updateQueue=m.updateQueue,h.type=m.type,p=m.dependencies,h.dependencies=p===null?null:{lanes:p.lanes,firstContext:p.firstContext}),h}function dm(h,p,m,_,A,N){var j=0;if(_=h,typeof h=="function")qb(h)&&(j=1);else if(typeof h=="string")j=tX(h,m,le.current)?26:h==="html"||h==="head"||h==="body"?27:5;else e:switch(h){case R:return h=Bn(31,m,p,A),h.elementType=R,h.lanes=N,h;case g:return Pl(m.children,A,N,p);case x:j=8,A|=24;break;case y:return h=Bn(12,m,p,A|2),h.elementType=y,h.lanes=N,h;case M:return h=Bn(13,m,p,A),h.elementType=M,h.lanes=N,h;case D:return h=Bn(19,m,p,A),h.elementType=D,h.lanes=N,h;default:if(typeof h=="object"&&h!==null)switch(h.$$typeof){case b:case T:j=10;break e;case S:j=9;break e;case C:j=11;break e;case L:j=14;break e;case E:j=16,_=null;break e}j=29,m=Error(n(130,h===null?"null":typeof h,"")),_=null}return p=Bn(j,m,p,A),p.elementType=h,p.type=_,p.lanes=N,p}function Pl(h,p,m,_){return h=Bn(7,h,_,p),h.lanes=m,h}function Zb(h,p,m){return h=Bn(6,h,null,p),h.lanes=m,h}function $b(h,p,m){return p=Bn(4,h.children!==null?h.children:[],h.key,p),p.lanes=m,p.stateNode={containerInfo:h.containerInfo,pendingChildren:null,implementation:h.implementation},p}var Uc=[],Yc=0,vm=null,pm=0,ca=[],fa=0,zl=null,ro=1,no="";function Bl(h,p){Uc[Yc++]=pm,Uc[Yc++]=vm,vm=h,pm=p}function cR(h,p,m){ca[fa++]=ro,ca[fa++]=no,ca[fa++]=zl,zl=h;var _=ro;h=no;var A=32-Pn(_)-1;_&=~(1<<A),m+=1;var N=32-Pn(p)+A;if(30<N){var j=A-A%5;N=(_&(1<<j)-1).toString(32),_>>=j,A-=j,ro=1<<32-Pn(p)+A|m<<A|_,no=N+h}else ro=1<<N|m<<A|_,no=h}function Kb(h){h.return!==null&&(Bl(h,1),cR(h,1,0))}function Qb(h){for(;h===vm;)vm=Uc[--Yc],Uc[Yc]=null,pm=Uc[--Yc],Uc[Yc]=null;for(;h===zl;)zl=ca[--fa],ca[fa]=null,no=ca[--fa],ca[fa]=null,ro=ca[--fa],ca[fa]=null}var fn=null,er=null,At=!1,jl=null,ui=!1,Jb=Error(n(519));function Vl(h){var p=Error(n(418,""));throw Nd(la(p,h)),Jb}function fR(h){var p=h.stateNode,m=h.type,_=h.memoizedProps;switch(p[en]=h,p[bn]=_,m){case"dialog":mt("cancel",p),mt("close",p);break;case"iframe":case"object":case"embed":mt("load",p);break;case"video":case"audio":for(m=0;m<ev.length;m++)mt(ev[m],p);break;case"source":mt("error",p);break;case"img":case"image":case"link":mt("error",p),mt("load",p);break;case"details":mt("toggle",p);break;case"input":mt("invalid",p),AN(p,_.value,_.defaultValue,_.checked,_.defaultChecked,_.type,_.name,!0),tm(p);break;case"select":mt("invalid",p);break;case"textarea":mt("invalid",p),DN(p,_.value,_.defaultValue,_.children),tm(p)}m=_.children,typeof m!="string"&&typeof m!="number"&&typeof m!="bigint"||p.textContent===""+m||_.suppressHydrationWarning===!0||DI(p.textContent,m)?(_.popover!=null&&(mt("beforetoggle",p),mt("toggle",p)),_.onScroll!=null&&mt("scroll",p),_.onScrollEnd!=null&&mt("scrollend",p),_.onClick!=null&&(p.onclick=Zm),p=!0):p=!1,p||Vl(h)}function hR(h){for(fn=h.return;fn;)switch(fn.tag){case 5:case 13:ui=!1;return;case 27:case 3:ui=!0;return;default:fn=fn.return}}function Dd(h){if(h!==fn)return!1;if(!At)return hR(h),At=!0,!1;var p=h.tag,m;if((m=p!==3&&p!==27)&&((m=p===5)&&(m=h.type,m=!(m!=="form"&&m!=="button")||pS(h.type,h.memoizedProps)),m=!m),m&&er&&Vl(h),hR(h),p===13){if(h=h.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(n(317));e:{for(h=h.nextSibling,p=0;h;){if(h.nodeType===8)if(m=h.data,m==="/$"){if(p===0){er=Ga(h.nextSibling);break e}p--}else m!=="$"&&m!=="$!"&&m!=="$?"||p++;h=h.nextSibling}er=null}}else p===27?(p=er,_s(h.type)?(h=xS,xS=null,er=h):er=p):er=fn?Ga(h.stateNode.nextSibling):null;return!0}function Ld(){er=fn=null,At=!1}function dR(){var h=jl;return h!==null&&(Tn===null?Tn=h:Tn.push.apply(Tn,h),jl=null),h}function Nd(h){jl===null?jl=[h]:jl.push(h)}var e_=W(null),Gl=null,ao=null;function os(h,p,m){te(e_,p._currentValue),p._currentValue=m}function io(h){h._currentValue=e_.current,$(e_)}function t_(h,p,m){for(;h!==null;){var _=h.alternate;if((h.childLanes&p)!==p?(h.childLanes|=p,_!==null&&(_.childLanes|=p)):_!==null&&(_.childLanes&p)!==p&&(_.childLanes|=p),h===m)break;h=h.return}}function r_(h,p,m,_){var A=h.child;for(A!==null&&(A.return=h);A!==null;){var N=A.dependencies;if(N!==null){var j=A.child;N=N.firstContext;e:for(;N!==null;){var U=N;N=A;for(var q=0;q<p.length;q++)if(U.context===p[q]){N.lanes|=m,U=N.alternate,U!==null&&(U.lanes|=m),t_(N.return,m,h),_||(j=null);break e}N=U.next}}else if(A.tag===18){if(j=A.return,j===null)throw Error(n(341));j.lanes|=m,N=j.alternate,N!==null&&(N.lanes|=m),t_(j,m,h),j=null}else j=A.child;if(j!==null)j.return=A;else for(j=A;j!==null;){if(j===h){j=null;break}if(A=j.sibling,A!==null){A.return=j.return,j=A;break}j=j.return}A=j}}function Rd(h,p,m,_){h=null;for(var A=p,N=!1;A!==null;){if(!N){if((A.flags&524288)!==0)N=!0;else if((A.flags&262144)!==0)break}if(A.tag===10){var j=A.alternate;if(j===null)throw Error(n(387));if(j=j.memoizedProps,j!==null){var U=A.type;zn(A.pendingProps.value,j.value)||(h!==null?h.push(U):h=[U])}}else if(A===de.current){if(j=A.alternate,j===null)throw Error(n(387));j.memoizedState.memoizedState!==A.memoizedState.memoizedState&&(h!==null?h.push(ov):h=[ov])}A=A.return}h!==null&&r_(p,h,m,_),p.flags|=262144}function gm(h){for(h=h.firstContext;h!==null;){if(!zn(h.context._currentValue,h.memoizedValue))return!0;h=h.next}return!1}function Hl(h){Gl=h,ao=null,h=h.dependencies,h!==null&&(h.firstContext=null)}function tn(h){return vR(Gl,h)}function mm(h,p){return Gl===null&&Hl(h),vR(h,p)}function vR(h,p){var m=p._currentValue;if(p={context:p,memoizedValue:m,next:null},ao===null){if(h===null)throw Error(n(308));ao=p,h.dependencies={lanes:0,firstContext:p},h.flags|=524288}else ao=ao.next=p;return m}var eW=typeof AbortController<"u"?AbortController:function(){var h=[],p=this.signal={aborted:!1,addEventListener:function(m,_){h.push(_)}};this.abort=function(){p.aborted=!0,h.forEach(function(m){return m()})}},tW=r.unstable_scheduleCallback,rW=r.unstable_NormalPriority,wr={$$typeof:T,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function n_(){return{controller:new eW,data:new Map,refCount:0}}function Ed(h){h.refCount--,h.refCount===0&&tW(rW,function(){h.controller.abort()})}var Id=null,a_=0,Wc=0,Xc=null;function nW(h,p){if(Id===null){var m=Id=[];a_=0,Wc=oS(),Xc={status:"pending",value:void 0,then:function(_){m.push(_)}}}return a_++,p.then(pR,pR),p}function pR(){if(--a_===0&&Id!==null){Xc!==null&&(Xc.status="fulfilled");var h=Id;Id=null,Wc=0,Xc=null;for(var p=0;p<h.length;p++)(0,h[p])()}}function aW(h,p){var m=[],_={status:"pending",value:null,reason:null,then:function(A){m.push(A)}};return h.then(function(){_.status="fulfilled",_.value=p;for(var A=0;A<m.length;A++)(0,m[A])(p)},function(A){for(_.status="rejected",_.reason=A,A=0;A<m.length;A++)(0,m[A])(void 0)}),_}var gR=B.S;B.S=function(h,p){typeof p=="object"&&p!==null&&typeof p.then=="function"&&nW(h,p),gR!==null&&gR(h,p)};var Fl=W(null);function i_(){var h=Fl.current;return h!==null?h:Ut.pooledCache}function ym(h,p){p===null?te(Fl,Fl.current):te(Fl,p.pool)}function mR(){var h=i_();return h===null?null:{parent:wr._currentValue,pool:h}}var kd=Error(n(460)),yR=Error(n(474)),xm=Error(n(542)),o_={then:function(){}};function xR(h){return h=h.status,h==="fulfilled"||h==="rejected"}function bm(){}function bR(h,p,m){switch(m=h[m],m===void 0?h.push(p):m!==p&&(p.then(bm,bm),p=m),p.status){case"fulfilled":return p.value;case"rejected":throw h=p.reason,SR(h),h;default:if(typeof p.status=="string")p.then(bm,bm);else{if(h=Ut,h!==null&&100<h.shellSuspendCounter)throw Error(n(482));h=p,h.status="pending",h.then(function(_){if(p.status==="pending"){var A=p;A.status="fulfilled",A.value=_}},function(_){if(p.status==="pending"){var A=p;A.status="rejected",A.reason=_}})}switch(p.status){case"fulfilled":return p.value;case"rejected":throw h=p.reason,SR(h),h}throw Od=p,kd}}var Od=null;function _R(){if(Od===null)throw Error(n(459));var h=Od;return Od=null,h}function SR(h){if(h===kd||h===xm)throw Error(n(483))}var ss=!1;function s_(h){h.updateQueue={baseState:h.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function l_(h,p){h=h.updateQueue,p.updateQueue===h&&(p.updateQueue={baseState:h.baseState,firstBaseUpdate:h.firstBaseUpdate,lastBaseUpdate:h.lastBaseUpdate,shared:h.shared,callbacks:null})}function ls(h){return{lane:h,tag:0,payload:null,callback:null,next:null}}function us(h,p,m){var _=h.updateQueue;if(_===null)return null;if(_=_.shared,(It&2)!==0){var A=_.pending;return A===null?p.next=p:(p.next=A.next,A.next=p),_.pending=p,p=hm(h),lR(h,null,m),p}return fm(h,_,p,m),hm(h)}function Pd(h,p,m){if(p=p.updateQueue,p!==null&&(p=p.shared,(m&4194048)!==0)){var _=p.lanes;_&=h.pendingLanes,m|=_,p.lanes=m,pN(h,m)}}function u_(h,p){var m=h.updateQueue,_=h.alternate;if(_!==null&&(_=_.updateQueue,m===_)){var A=null,N=null;if(m=m.firstBaseUpdate,m!==null){do{var j={lane:m.lane,tag:m.tag,payload:m.payload,callback:null,next:null};N===null?A=N=j:N=N.next=j,m=m.next}while(m!==null);N===null?A=N=p:N=N.next=p}else A=N=p;m={baseState:_.baseState,firstBaseUpdate:A,lastBaseUpdate:N,shared:_.shared,callbacks:_.callbacks},h.updateQueue=m;return}h=m.lastBaseUpdate,h===null?m.firstBaseUpdate=p:h.next=p,m.lastBaseUpdate=p}var c_=!1;function zd(){if(c_){var h=Xc;if(h!==null)throw h}}function Bd(h,p,m,_){c_=!1;var A=h.updateQueue;ss=!1;var N=A.firstBaseUpdate,j=A.lastBaseUpdate,U=A.shared.pending;if(U!==null){A.shared.pending=null;var q=U,ae=q.next;q.next=null,j===null?N=ae:j.next=ae,j=q;var fe=h.alternate;fe!==null&&(fe=fe.updateQueue,U=fe.lastBaseUpdate,U!==j&&(U===null?fe.firstBaseUpdate=ae:U.next=ae,fe.lastBaseUpdate=q))}if(N!==null){var pe=A.baseState;j=0,fe=ae=q=null,U=N;do{var oe=U.lane&-536870913,se=oe!==U.lane;if(se?(St&oe)===oe:(_&oe)===oe){oe!==0&&oe===Wc&&(c_=!0),fe!==null&&(fe=fe.next={lane:0,tag:U.tag,payload:U.payload,callback:null,next:null});e:{var tt=h,Xe=U;oe=p;var Vt=m;switch(Xe.tag){case 1:if(tt=Xe.payload,typeof tt=="function"){pe=tt.call(Vt,pe,oe);break e}pe=tt;break e;case 3:tt.flags=tt.flags&-65537|128;case 0:if(tt=Xe.payload,oe=typeof tt=="function"?tt.call(Vt,pe,oe):tt,oe==null)break e;pe=c({},pe,oe);break e;case 2:ss=!0}}oe=U.callback,oe!==null&&(h.flags|=64,se&&(h.flags|=8192),se=A.callbacks,se===null?A.callbacks=[oe]:se.push(oe))}else se={lane:oe,tag:U.tag,payload:U.payload,callback:U.callback,next:null},fe===null?(ae=fe=se,q=pe):fe=fe.next=se,j|=oe;if(U=U.next,U===null){if(U=A.shared.pending,U===null)break;se=U,U=se.next,se.next=null,A.lastBaseUpdate=se,A.shared.pending=null}}while(!0);fe===null&&(q=pe),A.baseState=q,A.firstBaseUpdate=ae,A.lastBaseUpdate=fe,N===null&&(A.shared.lanes=0),ms|=j,h.lanes=j,h.memoizedState=pe}}function wR(h,p){if(typeof h!="function")throw Error(n(191,h));h.call(p)}function TR(h,p){var m=h.callbacks;if(m!==null)for(h.callbacks=null,h=0;h<m.length;h++)wR(m[h],p)}var qc=W(null),_m=W(0);function CR(h,p){h=ho,te(_m,h),te(qc,p),ho=h|p.baseLanes}function f_(){te(_m,ho),te(qc,qc.current)}function h_(){ho=_m.current,$(qc),$(_m)}var cs=0,ft=null,Bt=null,pr=null,Sm=!1,Zc=!1,Ul=!1,wm=0,jd=0,$c=null,iW=0;function ur(){throw Error(n(321))}function d_(h,p){if(p===null)return!1;for(var m=0;m<p.length&&m<h.length;m++)if(!zn(h[m],p[m]))return!1;return!0}function v_(h,p,m,_,A,N){return cs=N,ft=p,p.memoizedState=null,p.updateQueue=null,p.lanes=0,B.H=h===null||h.memoizedState===null?lE:uE,Ul=!1,N=m(_,A),Ul=!1,Zc&&(N=MR(p,m,_,A)),AR(h),N}function AR(h){B.H=Lm;var p=Bt!==null&&Bt.next!==null;if(cs=0,pr=Bt=ft=null,Sm=!1,jd=0,$c=null,p)throw Error(n(300));h===null||Er||(h=h.dependencies,h!==null&&gm(h)&&(Er=!0))}function MR(h,p,m,_){ft=h;var A=0;do{if(Zc&&($c=null),jd=0,Zc=!1,25<=A)throw Error(n(301));if(A+=1,pr=Bt=null,h.updateQueue!=null){var N=h.updateQueue;N.lastEffect=null,N.events=null,N.stores=null,N.memoCache!=null&&(N.memoCache.index=0)}B.H=hW,N=p(m,_)}while(Zc);return N}function oW(){var h=B.H,p=h.useState()[0];return p=typeof p.then=="function"?Vd(p):p,h=h.useState()[0],(Bt!==null?Bt.memoizedState:null)!==h&&(ft.flags|=1024),p}function p_(){var h=wm!==0;return wm=0,h}function g_(h,p,m){p.updateQueue=h.updateQueue,p.flags&=-2053,h.lanes&=~m}function m_(h){if(Sm){for(h=h.memoizedState;h!==null;){var p=h.queue;p!==null&&(p.pending=null),h=h.next}Sm=!1}cs=0,pr=Bt=ft=null,Zc=!1,jd=wm=0,$c=null}function Sn(){var h={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return pr===null?ft.memoizedState=pr=h:pr=pr.next=h,pr}function gr(){if(Bt===null){var h=ft.alternate;h=h!==null?h.memoizedState:null}else h=Bt.next;var p=pr===null?ft.memoizedState:pr.next;if(p!==null)pr=p,Bt=h;else{if(h===null)throw ft.alternate===null?Error(n(467)):Error(n(310));Bt=h,h={memoizedState:Bt.memoizedState,baseState:Bt.baseState,baseQueue:Bt.baseQueue,queue:Bt.queue,next:null},pr===null?ft.memoizedState=pr=h:pr=pr.next=h}return pr}function y_(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Vd(h){var p=jd;return jd+=1,$c===null&&($c=[]),h=bR($c,h,p),p=ft,(pr===null?p.memoizedState:pr.next)===null&&(p=p.alternate,B.H=p===null||p.memoizedState===null?lE:uE),h}function Tm(h){if(h!==null&&typeof h=="object"){if(typeof h.then=="function")return Vd(h);if(h.$$typeof===T)return tn(h)}throw Error(n(438,String(h)))}function x_(h){var p=null,m=ft.updateQueue;if(m!==null&&(p=m.memoCache),p==null){var _=ft.alternate;_!==null&&(_=_.updateQueue,_!==null&&(_=_.memoCache,_!=null&&(p={data:_.data.map(function(A){return A.slice()}),index:0})))}if(p==null&&(p={data:[],index:0}),m===null&&(m=y_(),ft.updateQueue=m),m.memoCache=p,m=p.data[p.index],m===void 0)for(m=p.data[p.index]=Array(h),_=0;_<h;_++)m[_]=I;return p.index++,m}function oo(h,p){return typeof p=="function"?p(h):p}function Cm(h){var p=gr();return b_(p,Bt,h)}function b_(h,p,m){var _=h.queue;if(_===null)throw Error(n(311));_.lastRenderedReducer=m;var A=h.baseQueue,N=_.pending;if(N!==null){if(A!==null){var j=A.next;A.next=N.next,N.next=j}p.baseQueue=A=N,_.pending=null}if(N=h.baseState,A===null)h.memoizedState=N;else{p=A.next;var U=j=null,q=null,ae=p,fe=!1;do{var pe=ae.lane&-536870913;if(pe!==ae.lane?(St&pe)===pe:(cs&pe)===pe){var oe=ae.revertLane;if(oe===0)q!==null&&(q=q.next={lane:0,revertLane:0,action:ae.action,hasEagerState:ae.hasEagerState,eagerState:ae.eagerState,next:null}),pe===Wc&&(fe=!0);else if((cs&oe)===oe){ae=ae.next,oe===Wc&&(fe=!0);continue}else pe={lane:0,revertLane:ae.revertLane,action:ae.action,hasEagerState:ae.hasEagerState,eagerState:ae.eagerState,next:null},q===null?(U=q=pe,j=N):q=q.next=pe,ft.lanes|=oe,ms|=oe;pe=ae.action,Ul&&m(N,pe),N=ae.hasEagerState?ae.eagerState:m(N,pe)}else oe={lane:pe,revertLane:ae.revertLane,action:ae.action,hasEagerState:ae.hasEagerState,eagerState:ae.eagerState,next:null},q===null?(U=q=oe,j=N):q=q.next=oe,ft.lanes|=pe,ms|=pe;ae=ae.next}while(ae!==null&&ae!==p);if(q===null?j=N:q.next=U,!zn(N,h.memoizedState)&&(Er=!0,fe&&(m=Xc,m!==null)))throw m;h.memoizedState=N,h.baseState=j,h.baseQueue=q,_.lastRenderedState=N}return A===null&&(_.lanes=0),[h.memoizedState,_.dispatch]}function __(h){var p=gr(),m=p.queue;if(m===null)throw Error(n(311));m.lastRenderedReducer=h;var _=m.dispatch,A=m.pending,N=p.memoizedState;if(A!==null){m.pending=null;var j=A=A.next;do N=h(N,j.action),j=j.next;while(j!==A);zn(N,p.memoizedState)||(Er=!0),p.memoizedState=N,p.baseQueue===null&&(p.baseState=N),m.lastRenderedState=N}return[N,_]}function DR(h,p,m){var _=ft,A=gr(),N=At;if(N){if(m===void 0)throw Error(n(407));m=m()}else m=p();var j=!zn((Bt||A).memoizedState,m);j&&(A.memoizedState=m,Er=!0),A=A.queue;var U=RR.bind(null,_,A,h);if(Gd(2048,8,U,[h]),A.getSnapshot!==p||j||pr!==null&&pr.memoizedState.tag&1){if(_.flags|=2048,Kc(9,Am(),NR.bind(null,_,A,m,p),null),Ut===null)throw Error(n(349));N||(cs&124)!==0||LR(_,p,m)}return m}function LR(h,p,m){h.flags|=16384,h={getSnapshot:p,value:m},p=ft.updateQueue,p===null?(p=y_(),ft.updateQueue=p,p.stores=[h]):(m=p.stores,m===null?p.stores=[h]:m.push(h))}function NR(h,p,m,_){p.value=m,p.getSnapshot=_,ER(p)&&IR(h)}function RR(h,p,m){return m(function(){ER(p)&&IR(h)})}function ER(h){var p=h.getSnapshot;h=h.value;try{var m=p();return!zn(h,m)}catch{return!0}}function IR(h){var p=Hc(h,2);p!==null&&Fn(p,h,2)}function S_(h){var p=Sn();if(typeof h=="function"){var m=h;if(h=m(),Ul){ns(!0);try{m()}finally{ns(!1)}}}return p.memoizedState=p.baseState=h,p.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:oo,lastRenderedState:h},p}function kR(h,p,m,_){return h.baseState=m,b_(h,Bt,typeof _=="function"?_:oo)}function sW(h,p,m,_,A){if(Dm(h))throw Error(n(485));if(h=p.action,h!==null){var N={payload:A,action:h,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(j){N.listeners.push(j)}};B.T!==null?m(!0):N.isTransition=!1,_(N),m=p.pending,m===null?(N.next=p.pending=N,OR(p,N)):(N.next=m.next,p.pending=m.next=N)}}function OR(h,p){var m=p.action,_=p.payload,A=h.state;if(p.isTransition){var N=B.T,j={};B.T=j;try{var U=m(A,_),q=B.S;q!==null&&q(j,U),PR(h,p,U)}catch(ae){w_(h,p,ae)}finally{B.T=N}}else try{N=m(A,_),PR(h,p,N)}catch(ae){w_(h,p,ae)}}function PR(h,p,m){m!==null&&typeof m=="object"&&typeof m.then=="function"?m.then(function(_){zR(h,p,_)},function(_){return w_(h,p,_)}):zR(h,p,m)}function zR(h,p,m){p.status="fulfilled",p.value=m,BR(p),h.state=m,p=h.pending,p!==null&&(m=p.next,m===p?h.pending=null:(m=m.next,p.next=m,OR(h,m)))}function w_(h,p,m){var _=h.pending;if(h.pending=null,_!==null){_=_.next;do p.status="rejected",p.reason=m,BR(p),p=p.next;while(p!==_)}h.action=null}function BR(h){h=h.listeners;for(var p=0;p<h.length;p++)(0,h[p])()}function jR(h,p){return p}function VR(h,p){if(At){var m=Ut.formState;if(m!==null){e:{var _=ft;if(At){if(er){t:{for(var A=er,N=ui;A.nodeType!==8;){if(!N){A=null;break t}if(A=Ga(A.nextSibling),A===null){A=null;break t}}N=A.data,A=N==="F!"||N==="F"?A:null}if(A){er=Ga(A.nextSibling),_=A.data==="F!";break e}}Vl(_)}_=!1}_&&(p=m[0])}}return m=Sn(),m.memoizedState=m.baseState=p,_={pending:null,lanes:0,dispatch:null,lastRenderedReducer:jR,lastRenderedState:p},m.queue=_,m=iE.bind(null,ft,_),_.dispatch=m,_=S_(!1),N=D_.bind(null,ft,!1,_.queue),_=Sn(),A={state:p,dispatch:null,action:h,pending:null},_.queue=A,m=sW.bind(null,ft,A,N,m),A.dispatch=m,_.memoizedState=h,[p,m,!1]}function GR(h){var p=gr();return HR(p,Bt,h)}function HR(h,p,m){if(p=b_(h,p,jR)[0],h=Cm(oo)[0],typeof p=="object"&&p!==null&&typeof p.then=="function")try{var _=Vd(p)}catch(j){throw j===kd?xm:j}else _=p;p=gr();var A=p.queue,N=A.dispatch;return m!==p.memoizedState&&(ft.flags|=2048,Kc(9,Am(),lW.bind(null,A,m),null)),[_,N,h]}function lW(h,p){h.action=p}function FR(h){var p=gr(),m=Bt;if(m!==null)return HR(p,m,h);gr(),p=p.memoizedState,m=gr();var _=m.queue.dispatch;return m.memoizedState=h,[p,_,!1]}function Kc(h,p,m,_){return h={tag:h,create:m,deps:_,inst:p,next:null},p=ft.updateQueue,p===null&&(p=y_(),ft.updateQueue=p),m=p.lastEffect,m===null?p.lastEffect=h.next=h:(_=m.next,m.next=h,h.next=_,p.lastEffect=h),h}function Am(){return{destroy:void 0,resource:void 0}}function UR(){return gr().memoizedState}function Mm(h,p,m,_){var A=Sn();_=_===void 0?null:_,ft.flags|=h,A.memoizedState=Kc(1|p,Am(),m,_)}function Gd(h,p,m,_){var A=gr();_=_===void 0?null:_;var N=A.memoizedState.inst;Bt!==null&&_!==null&&d_(_,Bt.memoizedState.deps)?A.memoizedState=Kc(p,N,m,_):(ft.flags|=h,A.memoizedState=Kc(1|p,N,m,_))}function YR(h,p){Mm(8390656,8,h,p)}function WR(h,p){Gd(2048,8,h,p)}function XR(h,p){return Gd(4,2,h,p)}function qR(h,p){return Gd(4,4,h,p)}function ZR(h,p){if(typeof p=="function"){h=h();var m=p(h);return function(){typeof m=="function"?m():p(null)}}if(p!=null)return h=h(),p.current=h,function(){p.current=null}}function $R(h,p,m){m=m!=null?m.concat([h]):null,Gd(4,4,ZR.bind(null,p,h),m)}function T_(){}function KR(h,p){var m=gr();p=p===void 0?null:p;var _=m.memoizedState;return p!==null&&d_(p,_[1])?_[0]:(m.memoizedState=[h,p],h)}function QR(h,p){var m=gr();p=p===void 0?null:p;var _=m.memoizedState;if(p!==null&&d_(p,_[1]))return _[0];if(_=h(),Ul){ns(!0);try{h()}finally{ns(!1)}}return m.memoizedState=[_,p],_}function C_(h,p,m){return m===void 0||(cs&1073741824)!==0?h.memoizedState=p:(h.memoizedState=m,h=tI(),ft.lanes|=h,ms|=h,m)}function JR(h,p,m,_){return zn(m,p)?m:qc.current!==null?(h=C_(h,m,_),zn(h,p)||(Er=!0),h):(cs&42)===0?(Er=!0,h.memoizedState=m):(h=tI(),ft.lanes|=h,ms|=h,p)}function eE(h,p,m,_,A){var N=Y.p;Y.p=N!==0&&8>N?N:8;var j=B.T,U={};B.T=U,D_(h,!1,p,m);try{var q=A(),ae=B.S;if(ae!==null&&ae(U,q),q!==null&&typeof q=="object"&&typeof q.then=="function"){var fe=aW(q,_);Hd(h,p,fe,Hn(h))}else Hd(h,p,_,Hn(h))}catch(pe){Hd(h,p,{then:function(){},status:"rejected",reason:pe},Hn())}finally{Y.p=N,B.T=j}}function uW(){}function A_(h,p,m,_){if(h.tag!==5)throw Error(n(476));var A=tE(h).queue;eE(h,A,p,H,m===null?uW:function(){return rE(h),m(_)})}function tE(h){var p=h.memoizedState;if(p!==null)return p;p={memoizedState:H,baseState:H,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:oo,lastRenderedState:H},next:null};var m={};return p.next={memoizedState:m,baseState:m,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:oo,lastRenderedState:m},next:null},h.memoizedState=p,h=h.alternate,h!==null&&(h.memoizedState=p),p}function rE(h){var p=tE(h).next.queue;Hd(h,p,{},Hn())}function M_(){return tn(ov)}function nE(){return gr().memoizedState}function aE(){return gr().memoizedState}function cW(h){for(var p=h.return;p!==null;){switch(p.tag){case 24:case 3:var m=Hn();h=ls(m);var _=us(p,h,m);_!==null&&(Fn(_,p,m),Pd(_,p,m)),p={cache:n_()},h.payload=p;return}p=p.return}}function fW(h,p,m){var _=Hn();m={lane:_,revertLane:0,action:m,hasEagerState:!1,eagerState:null,next:null},Dm(h)?oE(p,m):(m=Xb(h,p,m,_),m!==null&&(Fn(m,h,_),sE(m,p,_)))}function iE(h,p,m){var _=Hn();Hd(h,p,m,_)}function Hd(h,p,m,_){var A={lane:_,revertLane:0,action:m,hasEagerState:!1,eagerState:null,next:null};if(Dm(h))oE(p,A);else{var N=h.alternate;if(h.lanes===0&&(N===null||N.lanes===0)&&(N=p.lastRenderedReducer,N!==null))try{var j=p.lastRenderedState,U=N(j,m);if(A.hasEagerState=!0,A.eagerState=U,zn(U,j))return fm(h,p,A,0),Ut===null&&cm(),!1}catch{}finally{}if(m=Xb(h,p,A,_),m!==null)return Fn(m,h,_),sE(m,p,_),!0}return!1}function D_(h,p,m,_){if(_={lane:2,revertLane:oS(),action:_,hasEagerState:!1,eagerState:null,next:null},Dm(h)){if(p)throw Error(n(479))}else p=Xb(h,m,_,2),p!==null&&Fn(p,h,2)}function Dm(h){var p=h.alternate;return h===ft||p!==null&&p===ft}function oE(h,p){Zc=Sm=!0;var m=h.pending;m===null?p.next=p:(p.next=m.next,m.next=p),h.pending=p}function sE(h,p,m){if((m&4194048)!==0){var _=p.lanes;_&=h.pendingLanes,m|=_,p.lanes=m,pN(h,m)}}var Lm={readContext:tn,use:Tm,useCallback:ur,useContext:ur,useEffect:ur,useImperativeHandle:ur,useLayoutEffect:ur,useInsertionEffect:ur,useMemo:ur,useReducer:ur,useRef:ur,useState:ur,useDebugValue:ur,useDeferredValue:ur,useTransition:ur,useSyncExternalStore:ur,useId:ur,useHostTransitionStatus:ur,useFormState:ur,useActionState:ur,useOptimistic:ur,useMemoCache:ur,useCacheRefresh:ur},lE={readContext:tn,use:Tm,useCallback:function(h,p){return Sn().memoizedState=[h,p===void 0?null:p],h},useContext:tn,useEffect:YR,useImperativeHandle:function(h,p,m){m=m!=null?m.concat([h]):null,Mm(4194308,4,ZR.bind(null,p,h),m)},useLayoutEffect:function(h,p){return Mm(4194308,4,h,p)},useInsertionEffect:function(h,p){Mm(4,2,h,p)},useMemo:function(h,p){var m=Sn();p=p===void 0?null:p;var _=h();if(Ul){ns(!0);try{h()}finally{ns(!1)}}return m.memoizedState=[_,p],_},useReducer:function(h,p,m){var _=Sn();if(m!==void 0){var A=m(p);if(Ul){ns(!0);try{m(p)}finally{ns(!1)}}}else A=p;return _.memoizedState=_.baseState=A,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:h,lastRenderedState:A},_.queue=h,h=h.dispatch=fW.bind(null,ft,h),[_.memoizedState,h]},useRef:function(h){var p=Sn();return h={current:h},p.memoizedState=h},useState:function(h){h=S_(h);var p=h.queue,m=iE.bind(null,ft,p);return p.dispatch=m,[h.memoizedState,m]},useDebugValue:T_,useDeferredValue:function(h,p){var m=Sn();return C_(m,h,p)},useTransition:function(){var h=S_(!1);return h=eE.bind(null,ft,h.queue,!0,!1),Sn().memoizedState=h,[!1,h]},useSyncExternalStore:function(h,p,m){var _=ft,A=Sn();if(At){if(m===void 0)throw Error(n(407));m=m()}else{if(m=p(),Ut===null)throw Error(n(349));(St&124)!==0||LR(_,p,m)}A.memoizedState=m;var N={value:m,getSnapshot:p};return A.queue=N,YR(RR.bind(null,_,N,h),[h]),_.flags|=2048,Kc(9,Am(),NR.bind(null,_,N,m,p),null),m},useId:function(){var h=Sn(),p=Ut.identifierPrefix;if(At){var m=no,_=ro;m=(_&~(1<<32-Pn(_)-1)).toString(32)+m,p="«"+p+"R"+m,m=wm++,0<m&&(p+="H"+m.toString(32)),p+="»"}else m=iW++,p="«"+p+"r"+m.toString(32)+"»";return h.memoizedState=p},useHostTransitionStatus:M_,useFormState:VR,useActionState:VR,useOptimistic:function(h){var p=Sn();p.memoizedState=p.baseState=h;var m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return p.queue=m,p=D_.bind(null,ft,!0,m),m.dispatch=p,[h,p]},useMemoCache:x_,useCacheRefresh:function(){return Sn().memoizedState=cW.bind(null,ft)}},uE={readContext:tn,use:Tm,useCallback:KR,useContext:tn,useEffect:WR,useImperativeHandle:$R,useInsertionEffect:XR,useLayoutEffect:qR,useMemo:QR,useReducer:Cm,useRef:UR,useState:function(){return Cm(oo)},useDebugValue:T_,useDeferredValue:function(h,p){var m=gr();return JR(m,Bt.memoizedState,h,p)},useTransition:function(){var h=Cm(oo)[0],p=gr().memoizedState;return[typeof h=="boolean"?h:Vd(h),p]},useSyncExternalStore:DR,useId:nE,useHostTransitionStatus:M_,useFormState:GR,useActionState:GR,useOptimistic:function(h,p){var m=gr();return kR(m,Bt,h,p)},useMemoCache:x_,useCacheRefresh:aE},hW={readContext:tn,use:Tm,useCallback:KR,useContext:tn,useEffect:WR,useImperativeHandle:$R,useInsertionEffect:XR,useLayoutEffect:qR,useMemo:QR,useReducer:__,useRef:UR,useState:function(){return __(oo)},useDebugValue:T_,useDeferredValue:function(h,p){var m=gr();return Bt===null?C_(m,h,p):JR(m,Bt.memoizedState,h,p)},useTransition:function(){var h=__(oo)[0],p=gr().memoizedState;return[typeof h=="boolean"?h:Vd(h),p]},useSyncExternalStore:DR,useId:nE,useHostTransitionStatus:M_,useFormState:FR,useActionState:FR,useOptimistic:function(h,p){var m=gr();return Bt!==null?kR(m,Bt,h,p):(m.baseState=h,[h,m.queue.dispatch])},useMemoCache:x_,useCacheRefresh:aE},Qc=null,Fd=0;function Nm(h){var p=Fd;return Fd+=1,Qc===null&&(Qc=[]),bR(Qc,h,p)}function Ud(h,p){p=p.props.ref,h.ref=p!==void 0?p:null}function Rm(h,p){throw p.$$typeof===f?Error(n(525)):(h=Object.prototype.toString.call(p),Error(n(31,h==="[object Object]"?"object with keys {"+Object.keys(p).join(", ")+"}":h)))}function cE(h){var p=h._init;return p(h._payload)}function fE(h){function p(re,Q){if(h){var ne=re.deletions;ne===null?(re.deletions=[Q],re.flags|=16):ne.push(Q)}}function m(re,Q){if(!h)return null;for(;Q!==null;)p(re,Q),Q=Q.sibling;return null}function _(re){for(var Q=new Map;re!==null;)re.key!==null?Q.set(re.key,re):Q.set(re.index,re),re=re.sibling;return Q}function A(re,Q){return re=to(re,Q),re.index=0,re.sibling=null,re}function N(re,Q,ne){return re.index=ne,h?(ne=re.alternate,ne!==null?(ne=ne.index,ne<Q?(re.flags|=67108866,Q):ne):(re.flags|=67108866,Q)):(re.flags|=1048576,Q)}function j(re){return h&&re.alternate===null&&(re.flags|=67108866),re}function U(re,Q,ne,he){return Q===null||Q.tag!==6?(Q=Zb(ne,re.mode,he),Q.return=re,Q):(Q=A(Q,ne),Q.return=re,Q)}function q(re,Q,ne,he){var Be=ne.type;return Be===g?fe(re,Q,ne.props.children,he,ne.key):Q!==null&&(Q.elementType===Be||typeof Be=="object"&&Be!==null&&Be.$$typeof===E&&cE(Be)===Q.type)?(Q=A(Q,ne.props),Ud(Q,ne),Q.return=re,Q):(Q=dm(ne.type,ne.key,ne.props,null,re.mode,he),Ud(Q,ne),Q.return=re,Q)}function ae(re,Q,ne,he){return Q===null||Q.tag!==4||Q.stateNode.containerInfo!==ne.containerInfo||Q.stateNode.implementation!==ne.implementation?(Q=$b(ne,re.mode,he),Q.return=re,Q):(Q=A(Q,ne.children||[]),Q.return=re,Q)}function fe(re,Q,ne,he,Be){return Q===null||Q.tag!==7?(Q=Pl(ne,re.mode,he,Be),Q.return=re,Q):(Q=A(Q,ne),Q.return=re,Q)}function pe(re,Q,ne){if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return Q=Zb(""+Q,re.mode,ne),Q.return=re,Q;if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case d:return ne=dm(Q.type,Q.key,Q.props,null,re.mode,ne),Ud(ne,Q),ne.return=re,ne;case v:return Q=$b(Q,re.mode,ne),Q.return=re,Q;case E:var he=Q._init;return Q=he(Q._payload),pe(re,Q,ne)}if(F(Q)||z(Q))return Q=Pl(Q,re.mode,ne,null),Q.return=re,Q;if(typeof Q.then=="function")return pe(re,Nm(Q),ne);if(Q.$$typeof===T)return pe(re,mm(re,Q),ne);Rm(re,Q)}return null}function oe(re,Q,ne,he){var Be=Q!==null?Q.key:null;if(typeof ne=="string"&&ne!==""||typeof ne=="number"||typeof ne=="bigint")return Be!==null?null:U(re,Q,""+ne,he);if(typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case d:return ne.key===Be?q(re,Q,ne,he):null;case v:return ne.key===Be?ae(re,Q,ne,he):null;case E:return Be=ne._init,ne=Be(ne._payload),oe(re,Q,ne,he)}if(F(ne)||z(ne))return Be!==null?null:fe(re,Q,ne,he,null);if(typeof ne.then=="function")return oe(re,Q,Nm(ne),he);if(ne.$$typeof===T)return oe(re,Q,mm(re,ne),he);Rm(re,ne)}return null}function se(re,Q,ne,he,Be){if(typeof he=="string"&&he!==""||typeof he=="number"||typeof he=="bigint")return re=re.get(ne)||null,U(Q,re,""+he,Be);if(typeof he=="object"&&he!==null){switch(he.$$typeof){case d:return re=re.get(he.key===null?ne:he.key)||null,q(Q,re,he,Be);case v:return re=re.get(he.key===null?ne:he.key)||null,ae(Q,re,he,Be);case E:var dt=he._init;return he=dt(he._payload),se(re,Q,ne,he,Be)}if(F(he)||z(he))return re=re.get(ne)||null,fe(Q,re,he,Be,null);if(typeof he.then=="function")return se(re,Q,ne,Nm(he),Be);if(he.$$typeof===T)return se(re,Q,ne,mm(Q,he),Be);Rm(Q,he)}return null}function tt(re,Q,ne,he){for(var Be=null,dt=null,He=Q,Ze=Q=0,kr=null;He!==null&&Ze<ne.length;Ze++){He.index>Ze?(kr=He,He=null):kr=He.sibling;var Ct=oe(re,He,ne[Ze],he);if(Ct===null){He===null&&(He=kr);break}h&&He&&Ct.alternate===null&&p(re,He),Q=N(Ct,Q,Ze),dt===null?Be=Ct:dt.sibling=Ct,dt=Ct,He=kr}if(Ze===ne.length)return m(re,He),At&&Bl(re,Ze),Be;if(He===null){for(;Ze<ne.length;Ze++)He=pe(re,ne[Ze],he),He!==null&&(Q=N(He,Q,Ze),dt===null?Be=He:dt.sibling=He,dt=He);return At&&Bl(re,Ze),Be}for(He=_(He);Ze<ne.length;Ze++)kr=se(He,re,Ze,ne[Ze],he),kr!==null&&(h&&kr.alternate!==null&&He.delete(kr.key===null?Ze:kr.key),Q=N(kr,Q,Ze),dt===null?Be=kr:dt.sibling=kr,dt=kr);return h&&He.forEach(function(As){return p(re,As)}),At&&Bl(re,Ze),Be}function Xe(re,Q,ne,he){if(ne==null)throw Error(n(151));for(var Be=null,dt=null,He=Q,Ze=Q=0,kr=null,Ct=ne.next();He!==null&&!Ct.done;Ze++,Ct=ne.next()){He.index>Ze?(kr=He,He=null):kr=He.sibling;var As=oe(re,He,Ct.value,he);if(As===null){He===null&&(He=kr);break}h&&He&&As.alternate===null&&p(re,He),Q=N(As,Q,Ze),dt===null?Be=As:dt.sibling=As,dt=As,He=kr}if(Ct.done)return m(re,He),At&&Bl(re,Ze),Be;if(He===null){for(;!Ct.done;Ze++,Ct=ne.next())Ct=pe(re,Ct.value,he),Ct!==null&&(Q=N(Ct,Q,Ze),dt===null?Be=Ct:dt.sibling=Ct,dt=Ct);return At&&Bl(re,Ze),Be}for(He=_(He);!Ct.done;Ze++,Ct=ne.next())Ct=se(He,re,Ze,Ct.value,he),Ct!==null&&(h&&Ct.alternate!==null&&He.delete(Ct.key===null?Ze:Ct.key),Q=N(Ct,Q,Ze),dt===null?Be=Ct:dt.sibling=Ct,dt=Ct);return h&&He.forEach(function(dX){return p(re,dX)}),At&&Bl(re,Ze),Be}function Vt(re,Q,ne,he){if(typeof ne=="object"&&ne!==null&&ne.type===g&&ne.key===null&&(ne=ne.props.children),typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case d:e:{for(var Be=ne.key;Q!==null;){if(Q.key===Be){if(Be=ne.type,Be===g){if(Q.tag===7){m(re,Q.sibling),he=A(Q,ne.props.children),he.return=re,re=he;break e}}else if(Q.elementType===Be||typeof Be=="object"&&Be!==null&&Be.$$typeof===E&&cE(Be)===Q.type){m(re,Q.sibling),he=A(Q,ne.props),Ud(he,ne),he.return=re,re=he;break e}m(re,Q);break}else p(re,Q);Q=Q.sibling}ne.type===g?(he=Pl(ne.props.children,re.mode,he,ne.key),he.return=re,re=he):(he=dm(ne.type,ne.key,ne.props,null,re.mode,he),Ud(he,ne),he.return=re,re=he)}return j(re);case v:e:{for(Be=ne.key;Q!==null;){if(Q.key===Be)if(Q.tag===4&&Q.stateNode.containerInfo===ne.containerInfo&&Q.stateNode.implementation===ne.implementation){m(re,Q.sibling),he=A(Q,ne.children||[]),he.return=re,re=he;break e}else{m(re,Q);break}else p(re,Q);Q=Q.sibling}he=$b(ne,re.mode,he),he.return=re,re=he}return j(re);case E:return Be=ne._init,ne=Be(ne._payload),Vt(re,Q,ne,he)}if(F(ne))return tt(re,Q,ne,he);if(z(ne)){if(Be=z(ne),typeof Be!="function")throw Error(n(150));return ne=Be.call(ne),Xe(re,Q,ne,he)}if(typeof ne.then=="function")return Vt(re,Q,Nm(ne),he);if(ne.$$typeof===T)return Vt(re,Q,mm(re,ne),he);Rm(re,ne)}return typeof ne=="string"&&ne!==""||typeof ne=="number"||typeof ne=="bigint"?(ne=""+ne,Q!==null&&Q.tag===6?(m(re,Q.sibling),he=A(Q,ne),he.return=re,re=he):(m(re,Q),he=Zb(ne,re.mode,he),he.return=re,re=he),j(re)):m(re,Q)}return function(re,Q,ne,he){try{Fd=0;var Be=Vt(re,Q,ne,he);return Qc=null,Be}catch(He){if(He===kd||He===xm)throw He;var dt=Bn(29,He,null,re.mode);return dt.lanes=he,dt.return=re,dt}finally{}}}var Jc=fE(!0),hE=fE(!1),ha=W(null),ci=null;function fs(h){var p=h.alternate;te(Tr,Tr.current&1),te(ha,h),ci===null&&(p===null||qc.current!==null||p.memoizedState!==null)&&(ci=h)}function dE(h){if(h.tag===22){if(te(Tr,Tr.current),te(ha,h),ci===null){var p=h.alternate;p!==null&&p.memoizedState!==null&&(ci=h)}}else hs()}function hs(){te(Tr,Tr.current),te(ha,ha.current)}function so(h){$(ha),ci===h&&(ci=null),$(Tr)}var Tr=W(0);function Em(h){for(var p=h;p!==null;){if(p.tag===13){var m=p.memoizedState;if(m!==null&&(m=m.dehydrated,m===null||m.data==="$?"||yS(m)))return p}else if(p.tag===19&&p.memoizedProps.revealOrder!==void 0){if((p.flags&128)!==0)return p}else if(p.child!==null){p.child.return=p,p=p.child;continue}if(p===h)break;for(;p.sibling===null;){if(p.return===null||p.return===h)return null;p=p.return}p.sibling.return=p.return,p=p.sibling}return null}function L_(h,p,m,_){p=h.memoizedState,m=m(_,p),m=m==null?p:c({},p,m),h.memoizedState=m,h.lanes===0&&(h.updateQueue.baseState=m)}var N_={enqueueSetState:function(h,p,m){h=h._reactInternals;var _=Hn(),A=ls(_);A.payload=p,m!=null&&(A.callback=m),p=us(h,A,_),p!==null&&(Fn(p,h,_),Pd(p,h,_))},enqueueReplaceState:function(h,p,m){h=h._reactInternals;var _=Hn(),A=ls(_);A.tag=1,A.payload=p,m!=null&&(A.callback=m),p=us(h,A,_),p!==null&&(Fn(p,h,_),Pd(p,h,_))},enqueueForceUpdate:function(h,p){h=h._reactInternals;var m=Hn(),_=ls(m);_.tag=2,p!=null&&(_.callback=p),p=us(h,_,m),p!==null&&(Fn(p,h,m),Pd(p,h,m))}};function vE(h,p,m,_,A,N,j){return h=h.stateNode,typeof h.shouldComponentUpdate=="function"?h.shouldComponentUpdate(_,N,j):p.prototype&&p.prototype.isPureReactComponent?!Ad(m,_)||!Ad(A,N):!0}function pE(h,p,m,_){h=p.state,typeof p.componentWillReceiveProps=="function"&&p.componentWillReceiveProps(m,_),typeof p.UNSAFE_componentWillReceiveProps=="function"&&p.UNSAFE_componentWillReceiveProps(m,_),p.state!==h&&N_.enqueueReplaceState(p,p.state,null)}function Yl(h,p){var m=p;if("ref"in p){m={};for(var _ in p)_!=="ref"&&(m[_]=p[_])}if(h=h.defaultProps){m===p&&(m=c({},m));for(var A in h)m[A]===void 0&&(m[A]=h[A])}return m}var Im=typeof reportError=="function"?reportError:function(h){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var p=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof h=="object"&&h!==null&&typeof h.message=="string"?String(h.message):String(h),error:h});if(!window.dispatchEvent(p))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",h);return}console.error(h)};function gE(h){Im(h)}function mE(h){console.error(h)}function yE(h){Im(h)}function km(h,p){try{var m=h.onUncaughtError;m(p.value,{componentStack:p.stack})}catch(_){setTimeout(function(){throw _})}}function xE(h,p,m){try{var _=h.onCaughtError;_(m.value,{componentStack:m.stack,errorBoundary:p.tag===1?p.stateNode:null})}catch(A){setTimeout(function(){throw A})}}function R_(h,p,m){return m=ls(m),m.tag=3,m.payload={element:null},m.callback=function(){km(h,p)},m}function bE(h){return h=ls(h),h.tag=3,h}function _E(h,p,m,_){var A=m.type.getDerivedStateFromError;if(typeof A=="function"){var N=_.value;h.payload=function(){return A(N)},h.callback=function(){xE(p,m,_)}}var j=m.stateNode;j!==null&&typeof j.componentDidCatch=="function"&&(h.callback=function(){xE(p,m,_),typeof A!="function"&&(ys===null?ys=new Set([this]):ys.add(this));var U=_.stack;this.componentDidCatch(_.value,{componentStack:U!==null?U:""})})}function dW(h,p,m,_,A){if(m.flags|=32768,_!==null&&typeof _=="object"&&typeof _.then=="function"){if(p=m.alternate,p!==null&&Rd(p,m,A,!0),m=ha.current,m!==null){switch(m.tag){case 13:return ci===null?tS():m.alternate===null&&tr===0&&(tr=3),m.flags&=-257,m.flags|=65536,m.lanes=A,_===o_?m.flags|=16384:(p=m.updateQueue,p===null?m.updateQueue=new Set([_]):p.add(_),nS(h,_,A)),!1;case 22:return m.flags|=65536,_===o_?m.flags|=16384:(p=m.updateQueue,p===null?(p={transitions:null,markerInstances:null,retryQueue:new Set([_])},m.updateQueue=p):(m=p.retryQueue,m===null?p.retryQueue=new Set([_]):m.add(_)),nS(h,_,A)),!1}throw Error(n(435,m.tag))}return nS(h,_,A),tS(),!1}if(At)return p=ha.current,p!==null?((p.flags&65536)===0&&(p.flags|=256),p.flags|=65536,p.lanes=A,_!==Jb&&(h=Error(n(422),{cause:_}),Nd(la(h,m)))):(_!==Jb&&(p=Error(n(423),{cause:_}),Nd(la(p,m))),h=h.current.alternate,h.flags|=65536,A&=-A,h.lanes|=A,_=la(_,m),A=R_(h.stateNode,_,A),u_(h,A),tr!==4&&(tr=2)),!1;var N=Error(n(520),{cause:_});if(N=la(N,m),Kd===null?Kd=[N]:Kd.push(N),tr!==4&&(tr=2),p===null)return!0;_=la(_,m),m=p;do{switch(m.tag){case 3:return m.flags|=65536,h=A&-A,m.lanes|=h,h=R_(m.stateNode,_,h),u_(m,h),!1;case 1:if(p=m.type,N=m.stateNode,(m.flags&128)===0&&(typeof p.getDerivedStateFromError=="function"||N!==null&&typeof N.componentDidCatch=="function"&&(ys===null||!ys.has(N))))return m.flags|=65536,A&=-A,m.lanes|=A,A=bE(A),_E(A,h,m,_),u_(m,A),!1}m=m.return}while(m!==null);return!1}var SE=Error(n(461)),Er=!1;function Fr(h,p,m,_){p.child=h===null?hE(p,null,m,_):Jc(p,h.child,m,_)}function wE(h,p,m,_,A){m=m.render;var N=p.ref;if("ref"in _){var j={};for(var U in _)U!=="ref"&&(j[U]=_[U])}else j=_;return Hl(p),_=v_(h,p,m,j,N,A),U=p_(),h!==null&&!Er?(g_(h,p,A),lo(h,p,A)):(At&&U&&Kb(p),p.flags|=1,Fr(h,p,_,A),p.child)}function TE(h,p,m,_,A){if(h===null){var N=m.type;return typeof N=="function"&&!qb(N)&&N.defaultProps===void 0&&m.compare===null?(p.tag=15,p.type=N,CE(h,p,N,_,A)):(h=dm(m.type,null,_,p,p.mode,A),h.ref=p.ref,h.return=p,p.child=h)}if(N=h.child,!j_(h,A)){var j=N.memoizedProps;if(m=m.compare,m=m!==null?m:Ad,m(j,_)&&h.ref===p.ref)return lo(h,p,A)}return p.flags|=1,h=to(N,_),h.ref=p.ref,h.return=p,p.child=h}function CE(h,p,m,_,A){if(h!==null){var N=h.memoizedProps;if(Ad(N,_)&&h.ref===p.ref)if(Er=!1,p.pendingProps=_=N,j_(h,A))(h.flags&131072)!==0&&(Er=!0);else return p.lanes=h.lanes,lo(h,p,A)}return E_(h,p,m,_,A)}function AE(h,p,m){var _=p.pendingProps,A=_.children,N=h!==null?h.memoizedState:null;if(_.mode==="hidden"){if((p.flags&128)!==0){if(_=N!==null?N.baseLanes|m:m,h!==null){for(A=p.child=h.child,N=0;A!==null;)N=N|A.lanes|A.childLanes,A=A.sibling;p.childLanes=N&~_}else p.childLanes=0,p.child=null;return ME(h,p,_,m)}if((m&536870912)!==0)p.memoizedState={baseLanes:0,cachePool:null},h!==null&&ym(p,N!==null?N.cachePool:null),N!==null?CR(p,N):f_(),dE(p);else return p.lanes=p.childLanes=536870912,ME(h,p,N!==null?N.baseLanes|m:m,m)}else N!==null?(ym(p,N.cachePool),CR(p,N),hs(),p.memoizedState=null):(h!==null&&ym(p,null),f_(),hs());return Fr(h,p,A,m),p.child}function ME(h,p,m,_){var A=i_();return A=A===null?null:{parent:wr._currentValue,pool:A},p.memoizedState={baseLanes:m,cachePool:A},h!==null&&ym(p,null),f_(),dE(p),h!==null&&Rd(h,p,_,!0),null}function Om(h,p){var m=p.ref;if(m===null)h!==null&&h.ref!==null&&(p.flags|=4194816);else{if(typeof m!="function"&&typeof m!="object")throw Error(n(284));(h===null||h.ref!==m)&&(p.flags|=4194816)}}function E_(h,p,m,_,A){return Hl(p),m=v_(h,p,m,_,void 0,A),_=p_(),h!==null&&!Er?(g_(h,p,A),lo(h,p,A)):(At&&_&&Kb(p),p.flags|=1,Fr(h,p,m,A),p.child)}function DE(h,p,m,_,A,N){return Hl(p),p.updateQueue=null,m=MR(p,_,m,A),AR(h),_=p_(),h!==null&&!Er?(g_(h,p,N),lo(h,p,N)):(At&&_&&Kb(p),p.flags|=1,Fr(h,p,m,N),p.child)}function LE(h,p,m,_,A){if(Hl(p),p.stateNode===null){var N=Fc,j=m.contextType;typeof j=="object"&&j!==null&&(N=tn(j)),N=new m(_,N),p.memoizedState=N.state!==null&&N.state!==void 0?N.state:null,N.updater=N_,p.stateNode=N,N._reactInternals=p,N=p.stateNode,N.props=_,N.state=p.memoizedState,N.refs={},s_(p),j=m.contextType,N.context=typeof j=="object"&&j!==null?tn(j):Fc,N.state=p.memoizedState,j=m.getDerivedStateFromProps,typeof j=="function"&&(L_(p,m,j,_),N.state=p.memoizedState),typeof m.getDerivedStateFromProps=="function"||typeof N.getSnapshotBeforeUpdate=="function"||typeof N.UNSAFE_componentWillMount!="function"&&typeof N.componentWillMount!="function"||(j=N.state,typeof N.componentWillMount=="function"&&N.componentWillMount(),typeof N.UNSAFE_componentWillMount=="function"&&N.UNSAFE_componentWillMount(),j!==N.state&&N_.enqueueReplaceState(N,N.state,null),Bd(p,_,N,A),zd(),N.state=p.memoizedState),typeof N.componentDidMount=="function"&&(p.flags|=4194308),_=!0}else if(h===null){N=p.stateNode;var U=p.memoizedProps,q=Yl(m,U);N.props=q;var ae=N.context,fe=m.contextType;j=Fc,typeof fe=="object"&&fe!==null&&(j=tn(fe));var pe=m.getDerivedStateFromProps;fe=typeof pe=="function"||typeof N.getSnapshotBeforeUpdate=="function",U=p.pendingProps!==U,fe||typeof N.UNSAFE_componentWillReceiveProps!="function"&&typeof N.componentWillReceiveProps!="function"||(U||ae!==j)&&pE(p,N,_,j),ss=!1;var oe=p.memoizedState;N.state=oe,Bd(p,_,N,A),zd(),ae=p.memoizedState,U||oe!==ae||ss?(typeof pe=="function"&&(L_(p,m,pe,_),ae=p.memoizedState),(q=ss||vE(p,m,q,_,oe,ae,j))?(fe||typeof N.UNSAFE_componentWillMount!="function"&&typeof N.componentWillMount!="function"||(typeof N.componentWillMount=="function"&&N.componentWillMount(),typeof N.UNSAFE_componentWillMount=="function"&&N.UNSAFE_componentWillMount()),typeof N.componentDidMount=="function"&&(p.flags|=4194308)):(typeof N.componentDidMount=="function"&&(p.flags|=4194308),p.memoizedProps=_,p.memoizedState=ae),N.props=_,N.state=ae,N.context=j,_=q):(typeof N.componentDidMount=="function"&&(p.flags|=4194308),_=!1)}else{N=p.stateNode,l_(h,p),j=p.memoizedProps,fe=Yl(m,j),N.props=fe,pe=p.pendingProps,oe=N.context,ae=m.contextType,q=Fc,typeof ae=="object"&&ae!==null&&(q=tn(ae)),U=m.getDerivedStateFromProps,(ae=typeof U=="function"||typeof N.getSnapshotBeforeUpdate=="function")||typeof N.UNSAFE_componentWillReceiveProps!="function"&&typeof N.componentWillReceiveProps!="function"||(j!==pe||oe!==q)&&pE(p,N,_,q),ss=!1,oe=p.memoizedState,N.state=oe,Bd(p,_,N,A),zd();var se=p.memoizedState;j!==pe||oe!==se||ss||h!==null&&h.dependencies!==null&&gm(h.dependencies)?(typeof U=="function"&&(L_(p,m,U,_),se=p.memoizedState),(fe=ss||vE(p,m,fe,_,oe,se,q)||h!==null&&h.dependencies!==null&&gm(h.dependencies))?(ae||typeof N.UNSAFE_componentWillUpdate!="function"&&typeof N.componentWillUpdate!="function"||(typeof N.componentWillUpdate=="function"&&N.componentWillUpdate(_,se,q),typeof N.UNSAFE_componentWillUpdate=="function"&&N.UNSAFE_componentWillUpdate(_,se,q)),typeof N.componentDidUpdate=="function"&&(p.flags|=4),typeof N.getSnapshotBeforeUpdate=="function"&&(p.flags|=1024)):(typeof N.componentDidUpdate!="function"||j===h.memoizedProps&&oe===h.memoizedState||(p.flags|=4),typeof N.getSnapshotBeforeUpdate!="function"||j===h.memoizedProps&&oe===h.memoizedState||(p.flags|=1024),p.memoizedProps=_,p.memoizedState=se),N.props=_,N.state=se,N.context=q,_=fe):(typeof N.componentDidUpdate!="function"||j===h.memoizedProps&&oe===h.memoizedState||(p.flags|=4),typeof N.getSnapshotBeforeUpdate!="function"||j===h.memoizedProps&&oe===h.memoizedState||(p.flags|=1024),_=!1)}return N=_,Om(h,p),_=(p.flags&128)!==0,N||_?(N=p.stateNode,m=_&&typeof m.getDerivedStateFromError!="function"?null:N.render(),p.flags|=1,h!==null&&_?(p.child=Jc(p,h.child,null,A),p.child=Jc(p,null,m,A)):Fr(h,p,m,A),p.memoizedState=N.state,h=p.child):h=lo(h,p,A),h}function NE(h,p,m,_){return Ld(),p.flags|=256,Fr(h,p,m,_),p.child}var I_={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function k_(h){return{baseLanes:h,cachePool:mR()}}function O_(h,p,m){return h=h!==null?h.childLanes&~m:0,p&&(h|=da),h}function RE(h,p,m){var _=p.pendingProps,A=!1,N=(p.flags&128)!==0,j;if((j=N)||(j=h!==null&&h.memoizedState===null?!1:(Tr.current&2)!==0),j&&(A=!0,p.flags&=-129),j=(p.flags&32)!==0,p.flags&=-33,h===null){if(At){if(A?fs(p):hs(),At){var U=er,q;if(q=U){e:{for(q=U,U=ui;q.nodeType!==8;){if(!U){U=null;break e}if(q=Ga(q.nextSibling),q===null){U=null;break e}}U=q}U!==null?(p.memoizedState={dehydrated:U,treeContext:zl!==null?{id:ro,overflow:no}:null,retryLane:536870912,hydrationErrors:null},q=Bn(18,null,null,0),q.stateNode=U,q.return=p,p.child=q,fn=p,er=null,q=!0):q=!1}q||Vl(p)}if(U=p.memoizedState,U!==null&&(U=U.dehydrated,U!==null))return yS(U)?p.lanes=32:p.lanes=536870912,null;so(p)}return U=_.children,_=_.fallback,A?(hs(),A=p.mode,U=Pm({mode:"hidden",children:U},A),_=Pl(_,A,m,null),U.return=p,_.return=p,U.sibling=_,p.child=U,A=p.child,A.memoizedState=k_(m),A.childLanes=O_(h,j,m),p.memoizedState=I_,_):(fs(p),P_(p,U))}if(q=h.memoizedState,q!==null&&(U=q.dehydrated,U!==null)){if(N)p.flags&256?(fs(p),p.flags&=-257,p=z_(h,p,m)):p.memoizedState!==null?(hs(),p.child=h.child,p.flags|=128,p=null):(hs(),A=_.fallback,U=p.mode,_=Pm({mode:"visible",children:_.children},U),A=Pl(A,U,m,null),A.flags|=2,_.return=p,A.return=p,_.sibling=A,p.child=_,Jc(p,h.child,null,m),_=p.child,_.memoizedState=k_(m),_.childLanes=O_(h,j,m),p.memoizedState=I_,p=A);else if(fs(p),yS(U)){if(j=U.nextSibling&&U.nextSibling.dataset,j)var ae=j.dgst;j=ae,_=Error(n(419)),_.stack="",_.digest=j,Nd({value:_,source:null,stack:null}),p=z_(h,p,m)}else if(Er||Rd(h,p,m,!1),j=(m&h.childLanes)!==0,Er||j){if(j=Ut,j!==null&&(_=m&-m,_=(_&42)!==0?1:xb(_),_=(_&(j.suspendedLanes|m))!==0?0:_,_!==0&&_!==q.retryLane))throw q.retryLane=_,Hc(h,_),Fn(j,h,_),SE;U.data==="$?"||tS(),p=z_(h,p,m)}else U.data==="$?"?(p.flags|=192,p.child=h.child,p=null):(h=q.treeContext,er=Ga(U.nextSibling),fn=p,At=!0,jl=null,ui=!1,h!==null&&(ca[fa++]=ro,ca[fa++]=no,ca[fa++]=zl,ro=h.id,no=h.overflow,zl=p),p=P_(p,_.children),p.flags|=4096);return p}return A?(hs(),A=_.fallback,U=p.mode,q=h.child,ae=q.sibling,_=to(q,{mode:"hidden",children:_.children}),_.subtreeFlags=q.subtreeFlags&65011712,ae!==null?A=to(ae,A):(A=Pl(A,U,m,null),A.flags|=2),A.return=p,_.return=p,_.sibling=A,p.child=_,_=A,A=p.child,U=h.child.memoizedState,U===null?U=k_(m):(q=U.cachePool,q!==null?(ae=wr._currentValue,q=q.parent!==ae?{parent:ae,pool:ae}:q):q=mR(),U={baseLanes:U.baseLanes|m,cachePool:q}),A.memoizedState=U,A.childLanes=O_(h,j,m),p.memoizedState=I_,_):(fs(p),m=h.child,h=m.sibling,m=to(m,{mode:"visible",children:_.children}),m.return=p,m.sibling=null,h!==null&&(j=p.deletions,j===null?(p.deletions=[h],p.flags|=16):j.push(h)),p.child=m,p.memoizedState=null,m)}function P_(h,p){return p=Pm({mode:"visible",children:p},h.mode),p.return=h,h.child=p}function Pm(h,p){return h=Bn(22,h,null,p),h.lanes=0,h.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},h}function z_(h,p,m){return Jc(p,h.child,null,m),h=P_(p,p.pendingProps.children),h.flags|=2,p.memoizedState=null,h}function EE(h,p,m){h.lanes|=p;var _=h.alternate;_!==null&&(_.lanes|=p),t_(h.return,p,m)}function B_(h,p,m,_,A){var N=h.memoizedState;N===null?h.memoizedState={isBackwards:p,rendering:null,renderingStartTime:0,last:_,tail:m,tailMode:A}:(N.isBackwards=p,N.rendering=null,N.renderingStartTime=0,N.last=_,N.tail=m,N.tailMode=A)}function IE(h,p,m){var _=p.pendingProps,A=_.revealOrder,N=_.tail;if(Fr(h,p,_.children,m),_=Tr.current,(_&2)!==0)_=_&1|2,p.flags|=128;else{if(h!==null&&(h.flags&128)!==0)e:for(h=p.child;h!==null;){if(h.tag===13)h.memoizedState!==null&&EE(h,m,p);else if(h.tag===19)EE(h,m,p);else if(h.child!==null){h.child.return=h,h=h.child;continue}if(h===p)break e;for(;h.sibling===null;){if(h.return===null||h.return===p)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}_&=1}switch(te(Tr,_),A){case"forwards":for(m=p.child,A=null;m!==null;)h=m.alternate,h!==null&&Em(h)===null&&(A=m),m=m.sibling;m=A,m===null?(A=p.child,p.child=null):(A=m.sibling,m.sibling=null),B_(p,!1,A,m,N);break;case"backwards":for(m=null,A=p.child,p.child=null;A!==null;){if(h=A.alternate,h!==null&&Em(h)===null){p.child=A;break}h=A.sibling,A.sibling=m,m=A,A=h}B_(p,!0,m,null,N);break;case"together":B_(p,!1,null,null,void 0);break;default:p.memoizedState=null}return p.child}function lo(h,p,m){if(h!==null&&(p.dependencies=h.dependencies),ms|=p.lanes,(m&p.childLanes)===0)if(h!==null){if(Rd(h,p,m,!1),(m&p.childLanes)===0)return null}else return null;if(h!==null&&p.child!==h.child)throw Error(n(153));if(p.child!==null){for(h=p.child,m=to(h,h.pendingProps),p.child=m,m.return=p;h.sibling!==null;)h=h.sibling,m=m.sibling=to(h,h.pendingProps),m.return=p;m.sibling=null}return p.child}function j_(h,p){return(h.lanes&p)!==0?!0:(h=h.dependencies,!!(h!==null&&gm(h)))}function vW(h,p,m){switch(p.tag){case 3:ve(p,p.stateNode.containerInfo),os(p,wr,h.memoizedState.cache),Ld();break;case 27:case 5:Oe(p);break;case 4:ve(p,p.stateNode.containerInfo);break;case 10:os(p,p.type,p.memoizedProps.value);break;case 13:var _=p.memoizedState;if(_!==null)return _.dehydrated!==null?(fs(p),p.flags|=128,null):(m&p.child.childLanes)!==0?RE(h,p,m):(fs(p),h=lo(h,p,m),h!==null?h.sibling:null);fs(p);break;case 19:var A=(h.flags&128)!==0;if(_=(m&p.childLanes)!==0,_||(Rd(h,p,m,!1),_=(m&p.childLanes)!==0),A){if(_)return IE(h,p,m);p.flags|=128}if(A=p.memoizedState,A!==null&&(A.rendering=null,A.tail=null,A.lastEffect=null),te(Tr,Tr.current),_)break;return null;case 22:case 23:return p.lanes=0,AE(h,p,m);case 24:os(p,wr,h.memoizedState.cache)}return lo(h,p,m)}function kE(h,p,m){if(h!==null)if(h.memoizedProps!==p.pendingProps)Er=!0;else{if(!j_(h,m)&&(p.flags&128)===0)return Er=!1,vW(h,p,m);Er=(h.flags&131072)!==0}else Er=!1,At&&(p.flags&1048576)!==0&&cR(p,pm,p.index);switch(p.lanes=0,p.tag){case 16:e:{h=p.pendingProps;var _=p.elementType,A=_._init;if(_=A(_._payload),p.type=_,typeof _=="function")qb(_)?(h=Yl(_,h),p.tag=1,p=LE(null,p,_,h,m)):(p.tag=0,p=E_(null,p,_,h,m));else{if(_!=null){if(A=_.$$typeof,A===C){p.tag=11,p=wE(null,p,_,h,m);break e}else if(A===L){p.tag=14,p=TE(null,p,_,h,m);break e}}throw p=G(_)||_,Error(n(306,p,""))}}return p;case 0:return E_(h,p,p.type,p.pendingProps,m);case 1:return _=p.type,A=Yl(_,p.pendingProps),LE(h,p,_,A,m);case 3:e:{if(ve(p,p.stateNode.containerInfo),h===null)throw Error(n(387));_=p.pendingProps;var N=p.memoizedState;A=N.element,l_(h,p),Bd(p,_,null,m);var j=p.memoizedState;if(_=j.cache,os(p,wr,_),_!==N.cache&&r_(p,[wr],m,!0),zd(),_=j.element,N.isDehydrated)if(N={element:_,isDehydrated:!1,cache:j.cache},p.updateQueue.baseState=N,p.memoizedState=N,p.flags&256){p=NE(h,p,_,m);break e}else if(_!==A){A=la(Error(n(424)),p),Nd(A),p=NE(h,p,_,m);break e}else{switch(h=p.stateNode.containerInfo,h.nodeType){case 9:h=h.body;break;default:h=h.nodeName==="HTML"?h.ownerDocument.body:h}for(er=Ga(h.firstChild),fn=p,At=!0,jl=null,ui=!0,m=hE(p,null,_,m),p.child=m;m;)m.flags=m.flags&-3|4096,m=m.sibling}else{if(Ld(),_===A){p=lo(h,p,m);break e}Fr(h,p,_,m)}p=p.child}return p;case 26:return Om(h,p),h===null?(m=BI(p.type,null,p.pendingProps,null))?p.memoizedState=m:At||(m=p.type,h=p.pendingProps,_=$m(we.current).createElement(m),_[en]=p,_[bn]=h,Yr(_,m,h),Rr(_),p.stateNode=_):p.memoizedState=BI(p.type,h.memoizedProps,p.pendingProps,h.memoizedState),null;case 27:return Oe(p),h===null&&At&&(_=p.stateNode=OI(p.type,p.pendingProps,we.current),fn=p,ui=!0,A=er,_s(p.type)?(xS=A,er=Ga(_.firstChild)):er=A),Fr(h,p,p.pendingProps.children,m),Om(h,p),h===null&&(p.flags|=4194304),p.child;case 5:return h===null&&At&&((A=_=er)&&(_=HW(_,p.type,p.pendingProps,ui),_!==null?(p.stateNode=_,fn=p,er=Ga(_.firstChild),ui=!1,A=!0):A=!1),A||Vl(p)),Oe(p),A=p.type,N=p.pendingProps,j=h!==null?h.memoizedProps:null,_=N.children,pS(A,N)?_=null:j!==null&&pS(A,j)&&(p.flags|=32),p.memoizedState!==null&&(A=v_(h,p,oW,null,null,m),ov._currentValue=A),Om(h,p),Fr(h,p,_,m),p.child;case 6:return h===null&&At&&((h=m=er)&&(m=FW(m,p.pendingProps,ui),m!==null?(p.stateNode=m,fn=p,er=null,h=!0):h=!1),h||Vl(p)),null;case 13:return RE(h,p,m);case 4:return ve(p,p.stateNode.containerInfo),_=p.pendingProps,h===null?p.child=Jc(p,null,_,m):Fr(h,p,_,m),p.child;case 11:return wE(h,p,p.type,p.pendingProps,m);case 7:return Fr(h,p,p.pendingProps,m),p.child;case 8:return Fr(h,p,p.pendingProps.children,m),p.child;case 12:return Fr(h,p,p.pendingProps.children,m),p.child;case 10:return _=p.pendingProps,os(p,p.type,_.value),Fr(h,p,_.children,m),p.child;case 9:return A=p.type._context,_=p.pendingProps.children,Hl(p),A=tn(A),_=_(A),p.flags|=1,Fr(h,p,_,m),p.child;case 14:return TE(h,p,p.type,p.pendingProps,m);case 15:return CE(h,p,p.type,p.pendingProps,m);case 19:return IE(h,p,m);case 31:return _=p.pendingProps,m=p.mode,_={mode:_.mode,children:_.children},h===null?(m=Pm(_,m),m.ref=p.ref,p.child=m,m.return=p,p=m):(m=to(h.child,_),m.ref=p.ref,p.child=m,m.return=p,p=m),p;case 22:return AE(h,p,m);case 24:return Hl(p),_=tn(wr),h===null?(A=i_(),A===null&&(A=Ut,N=n_(),A.pooledCache=N,N.refCount++,N!==null&&(A.pooledCacheLanes|=m),A=N),p.memoizedState={parent:_,cache:A},s_(p),os(p,wr,A)):((h.lanes&m)!==0&&(l_(h,p),Bd(p,null,null,m),zd()),A=h.memoizedState,N=p.memoizedState,A.parent!==_?(A={parent:_,cache:_},p.memoizedState=A,p.lanes===0&&(p.memoizedState=p.updateQueue.baseState=A),os(p,wr,_)):(_=N.cache,os(p,wr,_),_!==A.cache&&r_(p,[wr],m,!0))),Fr(h,p,p.pendingProps.children,m),p.child;case 29:throw p.pendingProps}throw Error(n(156,p.tag))}function uo(h){h.flags|=4}function OE(h,p){if(p.type!=="stylesheet"||(p.state.loading&4)!==0)h.flags&=-16777217;else if(h.flags|=16777216,!FI(p)){if(p=ha.current,p!==null&&((St&4194048)===St?ci!==null:(St&62914560)!==St&&(St&536870912)===0||p!==ci))throw Od=o_,yR;h.flags|=8192}}function zm(h,p){p!==null&&(h.flags|=4),h.flags&16384&&(p=h.tag!==22?dN():536870912,h.lanes|=p,nf|=p)}function Yd(h,p){if(!At)switch(h.tailMode){case"hidden":p=h.tail;for(var m=null;p!==null;)p.alternate!==null&&(m=p),p=p.sibling;m===null?h.tail=null:m.sibling=null;break;case"collapsed":m=h.tail;for(var _=null;m!==null;)m.alternate!==null&&(_=m),m=m.sibling;_===null?p||h.tail===null?h.tail=null:h.tail.sibling=null:_.sibling=null}}function Zt(h){var p=h.alternate!==null&&h.alternate.child===h.child,m=0,_=0;if(p)for(var A=h.child;A!==null;)m|=A.lanes|A.childLanes,_|=A.subtreeFlags&65011712,_|=A.flags&65011712,A.return=h,A=A.sibling;else for(A=h.child;A!==null;)m|=A.lanes|A.childLanes,_|=A.subtreeFlags,_|=A.flags,A.return=h,A=A.sibling;return h.subtreeFlags|=_,h.childLanes=m,p}function pW(h,p,m){var _=p.pendingProps;switch(Qb(p),p.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Zt(p),null;case 1:return Zt(p),null;case 3:return m=p.stateNode,_=null,h!==null&&(_=h.memoizedState.cache),p.memoizedState.cache!==_&&(p.flags|=2048),io(wr),be(),m.pendingContext&&(m.context=m.pendingContext,m.pendingContext=null),(h===null||h.child===null)&&(Dd(p)?uo(p):h===null||h.memoizedState.isDehydrated&&(p.flags&256)===0||(p.flags|=1024,dR())),Zt(p),null;case 26:return m=p.memoizedState,h===null?(uo(p),m!==null?(Zt(p),OE(p,m)):(Zt(p),p.flags&=-16777217)):m?m!==h.memoizedState?(uo(p),Zt(p),OE(p,m)):(Zt(p),p.flags&=-16777217):(h.memoizedProps!==_&&uo(p),Zt(p),p.flags&=-16777217),null;case 27:_e(p),m=we.current;var A=p.type;if(h!==null&&p.stateNode!=null)h.memoizedProps!==_&&uo(p);else{if(!_){if(p.stateNode===null)throw Error(n(166));return Zt(p),null}h=le.current,Dd(p)?fR(p):(h=OI(A,_,m),p.stateNode=h,uo(p))}return Zt(p),null;case 5:if(_e(p),m=p.type,h!==null&&p.stateNode!=null)h.memoizedProps!==_&&uo(p);else{if(!_){if(p.stateNode===null)throw Error(n(166));return Zt(p),null}if(h=le.current,Dd(p))fR(p);else{switch(A=$m(we.current),h){case 1:h=A.createElementNS("http://www.w3.org/2000/svg",m);break;case 2:h=A.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;default:switch(m){case"svg":h=A.createElementNS("http://www.w3.org/2000/svg",m);break;case"math":h=A.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;case"script":h=A.createElement("div"),h.innerHTML="<script><\/script>",h=h.removeChild(h.firstChild);break;case"select":h=typeof _.is=="string"?A.createElement("select",{is:_.is}):A.createElement("select"),_.multiple?h.multiple=!0:_.size&&(h.size=_.size);break;default:h=typeof _.is=="string"?A.createElement(m,{is:_.is}):A.createElement(m)}}h[en]=p,h[bn]=_;e:for(A=p.child;A!==null;){if(A.tag===5||A.tag===6)h.appendChild(A.stateNode);else if(A.tag!==4&&A.tag!==27&&A.child!==null){A.child.return=A,A=A.child;continue}if(A===p)break e;for(;A.sibling===null;){if(A.return===null||A.return===p)break e;A=A.return}A.sibling.return=A.return,A=A.sibling}p.stateNode=h;e:switch(Yr(h,m,_),m){case"button":case"input":case"select":case"textarea":h=!!_.autoFocus;break e;case"img":h=!0;break e;default:h=!1}h&&uo(p)}}return Zt(p),p.flags&=-16777217,null;case 6:if(h&&p.stateNode!=null)h.memoizedProps!==_&&uo(p);else{if(typeof _!="string"&&p.stateNode===null)throw Error(n(166));if(h=we.current,Dd(p)){if(h=p.stateNode,m=p.memoizedProps,_=null,A=fn,A!==null)switch(A.tag){case 27:case 5:_=A.memoizedProps}h[en]=p,h=!!(h.nodeValue===m||_!==null&&_.suppressHydrationWarning===!0||DI(h.nodeValue,m)),h||Vl(p)}else h=$m(h).createTextNode(_),h[en]=p,p.stateNode=h}return Zt(p),null;case 13:if(_=p.memoizedState,h===null||h.memoizedState!==null&&h.memoizedState.dehydrated!==null){if(A=Dd(p),_!==null&&_.dehydrated!==null){if(h===null){if(!A)throw Error(n(318));if(A=p.memoizedState,A=A!==null?A.dehydrated:null,!A)throw Error(n(317));A[en]=p}else Ld(),(p.flags&128)===0&&(p.memoizedState=null),p.flags|=4;Zt(p),A=!1}else A=dR(),h!==null&&h.memoizedState!==null&&(h.memoizedState.hydrationErrors=A),A=!0;if(!A)return p.flags&256?(so(p),p):(so(p),null)}if(so(p),(p.flags&128)!==0)return p.lanes=m,p;if(m=_!==null,h=h!==null&&h.memoizedState!==null,m){_=p.child,A=null,_.alternate!==null&&_.alternate.memoizedState!==null&&_.alternate.memoizedState.cachePool!==null&&(A=_.alternate.memoizedState.cachePool.pool);var N=null;_.memoizedState!==null&&_.memoizedState.cachePool!==null&&(N=_.memoizedState.cachePool.pool),N!==A&&(_.flags|=2048)}return m!==h&&m&&(p.child.flags|=8192),zm(p,p.updateQueue),Zt(p),null;case 4:return be(),h===null&&cS(p.stateNode.containerInfo),Zt(p),null;case 10:return io(p.type),Zt(p),null;case 19:if($(Tr),A=p.memoizedState,A===null)return Zt(p),null;if(_=(p.flags&128)!==0,N=A.rendering,N===null)if(_)Yd(A,!1);else{if(tr!==0||h!==null&&(h.flags&128)!==0)for(h=p.child;h!==null;){if(N=Em(h),N!==null){for(p.flags|=128,Yd(A,!1),h=N.updateQueue,p.updateQueue=h,zm(p,h),p.subtreeFlags=0,h=m,m=p.child;m!==null;)uR(m,h),m=m.sibling;return te(Tr,Tr.current&1|2),p.child}h=h.sibling}A.tail!==null&&Tt()>Vm&&(p.flags|=128,_=!0,Yd(A,!1),p.lanes=4194304)}else{if(!_)if(h=Em(N),h!==null){if(p.flags|=128,_=!0,h=h.updateQueue,p.updateQueue=h,zm(p,h),Yd(A,!0),A.tail===null&&A.tailMode==="hidden"&&!N.alternate&&!At)return Zt(p),null}else 2*Tt()-A.renderingStartTime>Vm&&m!==536870912&&(p.flags|=128,_=!0,Yd(A,!1),p.lanes=4194304);A.isBackwards?(N.sibling=p.child,p.child=N):(h=A.last,h!==null?h.sibling=N:p.child=N,A.last=N)}return A.tail!==null?(p=A.tail,A.rendering=p,A.tail=p.sibling,A.renderingStartTime=Tt(),p.sibling=null,h=Tr.current,te(Tr,_?h&1|2:h&1),p):(Zt(p),null);case 22:case 23:return so(p),h_(),_=p.memoizedState!==null,h!==null?h.memoizedState!==null!==_&&(p.flags|=8192):_&&(p.flags|=8192),_?(m&536870912)!==0&&(p.flags&128)===0&&(Zt(p),p.subtreeFlags&6&&(p.flags|=8192)):Zt(p),m=p.updateQueue,m!==null&&zm(p,m.retryQueue),m=null,h!==null&&h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(m=h.memoizedState.cachePool.pool),_=null,p.memoizedState!==null&&p.memoizedState.cachePool!==null&&(_=p.memoizedState.cachePool.pool),_!==m&&(p.flags|=2048),h!==null&&$(Fl),null;case 24:return m=null,h!==null&&(m=h.memoizedState.cache),p.memoizedState.cache!==m&&(p.flags|=2048),io(wr),Zt(p),null;case 25:return null;case 30:return null}throw Error(n(156,p.tag))}function gW(h,p){switch(Qb(p),p.tag){case 1:return h=p.flags,h&65536?(p.flags=h&-65537|128,p):null;case 3:return io(wr),be(),h=p.flags,(h&65536)!==0&&(h&128)===0?(p.flags=h&-65537|128,p):null;case 26:case 27:case 5:return _e(p),null;case 13:if(so(p),h=p.memoizedState,h!==null&&h.dehydrated!==null){if(p.alternate===null)throw Error(n(340));Ld()}return h=p.flags,h&65536?(p.flags=h&-65537|128,p):null;case 19:return $(Tr),null;case 4:return be(),null;case 10:return io(p.type),null;case 22:case 23:return so(p),h_(),h!==null&&$(Fl),h=p.flags,h&65536?(p.flags=h&-65537|128,p):null;case 24:return io(wr),null;case 25:return null;default:return null}}function PE(h,p){switch(Qb(p),p.tag){case 3:io(wr),be();break;case 26:case 27:case 5:_e(p);break;case 4:be();break;case 13:so(p);break;case 19:$(Tr);break;case 10:io(p.type);break;case 22:case 23:so(p),h_(),h!==null&&$(Fl);break;case 24:io(wr)}}function Wd(h,p){try{var m=p.updateQueue,_=m!==null?m.lastEffect:null;if(_!==null){var A=_.next;m=A;do{if((m.tag&h)===h){_=void 0;var N=m.create,j=m.inst;_=N(),j.destroy=_}m=m.next}while(m!==A)}}catch(U){Ht(p,p.return,U)}}function ds(h,p,m){try{var _=p.updateQueue,A=_!==null?_.lastEffect:null;if(A!==null){var N=A.next;_=N;do{if((_.tag&h)===h){var j=_.inst,U=j.destroy;if(U!==void 0){j.destroy=void 0,A=p;var q=m,ae=U;try{ae()}catch(fe){Ht(A,q,fe)}}}_=_.next}while(_!==N)}}catch(fe){Ht(p,p.return,fe)}}function zE(h){var p=h.updateQueue;if(p!==null){var m=h.stateNode;try{TR(p,m)}catch(_){Ht(h,h.return,_)}}}function BE(h,p,m){m.props=Yl(h.type,h.memoizedProps),m.state=h.memoizedState;try{m.componentWillUnmount()}catch(_){Ht(h,p,_)}}function Xd(h,p){try{var m=h.ref;if(m!==null){switch(h.tag){case 26:case 27:case 5:var _=h.stateNode;break;case 30:_=h.stateNode;break;default:_=h.stateNode}typeof m=="function"?h.refCleanup=m(_):m.current=_}}catch(A){Ht(h,p,A)}}function fi(h,p){var m=h.ref,_=h.refCleanup;if(m!==null)if(typeof _=="function")try{_()}catch(A){Ht(h,p,A)}finally{h.refCleanup=null,h=h.alternate,h!=null&&(h.refCleanup=null)}else if(typeof m=="function")try{m(null)}catch(A){Ht(h,p,A)}else m.current=null}function jE(h){var p=h.type,m=h.memoizedProps,_=h.stateNode;try{e:switch(p){case"button":case"input":case"select":case"textarea":m.autoFocus&&_.focus();break e;case"img":m.src?_.src=m.src:m.srcSet&&(_.srcset=m.srcSet)}}catch(A){Ht(h,h.return,A)}}function V_(h,p,m){try{var _=h.stateNode;zW(_,h.type,m,p),_[bn]=p}catch(A){Ht(h,h.return,A)}}function VE(h){return h.tag===5||h.tag===3||h.tag===26||h.tag===27&&_s(h.type)||h.tag===4}function G_(h){e:for(;;){for(;h.sibling===null;){if(h.return===null||VE(h.return))return null;h=h.return}for(h.sibling.return=h.return,h=h.sibling;h.tag!==5&&h.tag!==6&&h.tag!==18;){if(h.tag===27&&_s(h.type)||h.flags&2||h.child===null||h.tag===4)continue e;h.child.return=h,h=h.child}if(!(h.flags&2))return h.stateNode}}function H_(h,p,m){var _=h.tag;if(_===5||_===6)h=h.stateNode,p?(m.nodeType===9?m.body:m.nodeName==="HTML"?m.ownerDocument.body:m).insertBefore(h,p):(p=m.nodeType===9?m.body:m.nodeName==="HTML"?m.ownerDocument.body:m,p.appendChild(h),m=m._reactRootContainer,m!=null||p.onclick!==null||(p.onclick=Zm));else if(_!==4&&(_===27&&_s(h.type)&&(m=h.stateNode,p=null),h=h.child,h!==null))for(H_(h,p,m),h=h.sibling;h!==null;)H_(h,p,m),h=h.sibling}function Bm(h,p,m){var _=h.tag;if(_===5||_===6)h=h.stateNode,p?m.insertBefore(h,p):m.appendChild(h);else if(_!==4&&(_===27&&_s(h.type)&&(m=h.stateNode),h=h.child,h!==null))for(Bm(h,p,m),h=h.sibling;h!==null;)Bm(h,p,m),h=h.sibling}function GE(h){var p=h.stateNode,m=h.memoizedProps;try{for(var _=h.type,A=p.attributes;A.length;)p.removeAttributeNode(A[0]);Yr(p,_,m),p[en]=h,p[bn]=m}catch(N){Ht(h,h.return,N)}}var co=!1,cr=!1,F_=!1,HE=typeof WeakSet=="function"?WeakSet:Set,Ir=null;function mW(h,p){if(h=h.containerInfo,dS=ry,h=JN(h),Gb(h)){if("selectionStart"in h)var m={start:h.selectionStart,end:h.selectionEnd};else e:{m=(m=h.ownerDocument)&&m.defaultView||window;var _=m.getSelection&&m.getSelection();if(_&&_.rangeCount!==0){m=_.anchorNode;var A=_.anchorOffset,N=_.focusNode;_=_.focusOffset;try{m.nodeType,N.nodeType}catch{m=null;break e}var j=0,U=-1,q=-1,ae=0,fe=0,pe=h,oe=null;t:for(;;){for(var se;pe!==m||A!==0&&pe.nodeType!==3||(U=j+A),pe!==N||_!==0&&pe.nodeType!==3||(q=j+_),pe.nodeType===3&&(j+=pe.nodeValue.length),(se=pe.firstChild)!==null;)oe=pe,pe=se;for(;;){if(pe===h)break t;if(oe===m&&++ae===A&&(U=j),oe===N&&++fe===_&&(q=j),(se=pe.nextSibling)!==null)break;pe=oe,oe=pe.parentNode}pe=se}m=U===-1||q===-1?null:{start:U,end:q}}else m=null}m=m||{start:0,end:0}}else m=null;for(vS={focusedElem:h,selectionRange:m},ry=!1,Ir=p;Ir!==null;)if(p=Ir,h=p.child,(p.subtreeFlags&1024)!==0&&h!==null)h.return=p,Ir=h;else for(;Ir!==null;){switch(p=Ir,N=p.alternate,h=p.flags,p.tag){case 0:break;case 11:case 15:break;case 1:if((h&1024)!==0&&N!==null){h=void 0,m=p,A=N.memoizedProps,N=N.memoizedState,_=m.stateNode;try{var tt=Yl(m.type,A,m.elementType===m.type);h=_.getSnapshotBeforeUpdate(tt,N),_.__reactInternalSnapshotBeforeUpdate=h}catch(Xe){Ht(m,m.return,Xe)}}break;case 3:if((h&1024)!==0){if(h=p.stateNode.containerInfo,m=h.nodeType,m===9)mS(h);else if(m===1)switch(h.nodeName){case"HEAD":case"HTML":case"BODY":mS(h);break;default:h.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((h&1024)!==0)throw Error(n(163))}if(h=p.sibling,h!==null){h.return=p.return,Ir=h;break}Ir=p.return}}function FE(h,p,m){var _=m.flags;switch(m.tag){case 0:case 11:case 15:vs(h,m),_&4&&Wd(5,m);break;case 1:if(vs(h,m),_&4)if(h=m.stateNode,p===null)try{h.componentDidMount()}catch(j){Ht(m,m.return,j)}else{var A=Yl(m.type,p.memoizedProps);p=p.memoizedState;try{h.componentDidUpdate(A,p,h.__reactInternalSnapshotBeforeUpdate)}catch(j){Ht(m,m.return,j)}}_&64&&zE(m),_&512&&Xd(m,m.return);break;case 3:if(vs(h,m),_&64&&(h=m.updateQueue,h!==null)){if(p=null,m.child!==null)switch(m.child.tag){case 27:case 5:p=m.child.stateNode;break;case 1:p=m.child.stateNode}try{TR(h,p)}catch(j){Ht(m,m.return,j)}}break;case 27:p===null&&_&4&&GE(m);case 26:case 5:vs(h,m),p===null&&_&4&&jE(m),_&512&&Xd(m,m.return);break;case 12:vs(h,m);break;case 13:vs(h,m),_&4&&WE(h,m),_&64&&(h=m.memoizedState,h!==null&&(h=h.dehydrated,h!==null&&(m=AW.bind(null,m),UW(h,m))));break;case 22:if(_=m.memoizedState!==null||co,!_){p=p!==null&&p.memoizedState!==null||cr,A=co;var N=cr;co=_,(cr=p)&&!N?ps(h,m,(m.subtreeFlags&8772)!==0):vs(h,m),co=A,cr=N}break;case 30:break;default:vs(h,m)}}function UE(h){var p=h.alternate;p!==null&&(h.alternate=null,UE(p)),h.child=null,h.deletions=null,h.sibling=null,h.tag===5&&(p=h.stateNode,p!==null&&Sb(p)),h.stateNode=null,h.return=null,h.dependencies=null,h.memoizedProps=null,h.memoizedState=null,h.pendingProps=null,h.stateNode=null,h.updateQueue=null}var Xt=null,wn=!1;function fo(h,p,m){for(m=m.child;m!==null;)YE(h,p,m),m=m.sibling}function YE(h,p,m){if(On&&typeof On.onCommitFiberUnmount=="function")try{On.onCommitFiberUnmount(vd,m)}catch{}switch(m.tag){case 26:cr||fi(m,p),fo(h,p,m),m.memoizedState?m.memoizedState.count--:m.stateNode&&(m=m.stateNode,m.parentNode.removeChild(m));break;case 27:cr||fi(m,p);var _=Xt,A=wn;_s(m.type)&&(Xt=m.stateNode,wn=!1),fo(h,p,m),rv(m.stateNode),Xt=_,wn=A;break;case 5:cr||fi(m,p);case 6:if(_=Xt,A=wn,Xt=null,fo(h,p,m),Xt=_,wn=A,Xt!==null)if(wn)try{(Xt.nodeType===9?Xt.body:Xt.nodeName==="HTML"?Xt.ownerDocument.body:Xt).removeChild(m.stateNode)}catch(N){Ht(m,p,N)}else try{Xt.removeChild(m.stateNode)}catch(N){Ht(m,p,N)}break;case 18:Xt!==null&&(wn?(h=Xt,II(h.nodeType===9?h.body:h.nodeName==="HTML"?h.ownerDocument.body:h,m.stateNode),cv(h)):II(Xt,m.stateNode));break;case 4:_=Xt,A=wn,Xt=m.stateNode.containerInfo,wn=!0,fo(h,p,m),Xt=_,wn=A;break;case 0:case 11:case 14:case 15:cr||ds(2,m,p),cr||ds(4,m,p),fo(h,p,m);break;case 1:cr||(fi(m,p),_=m.stateNode,typeof _.componentWillUnmount=="function"&&BE(m,p,_)),fo(h,p,m);break;case 21:fo(h,p,m);break;case 22:cr=(_=cr)||m.memoizedState!==null,fo(h,p,m),cr=_;break;default:fo(h,p,m)}}function WE(h,p){if(p.memoizedState===null&&(h=p.alternate,h!==null&&(h=h.memoizedState,h!==null&&(h=h.dehydrated,h!==null))))try{cv(h)}catch(m){Ht(p,p.return,m)}}function yW(h){switch(h.tag){case 13:case 19:var p=h.stateNode;return p===null&&(p=h.stateNode=new HE),p;case 22:return h=h.stateNode,p=h._retryCache,p===null&&(p=h._retryCache=new HE),p;default:throw Error(n(435,h.tag))}}function U_(h,p){var m=yW(h);p.forEach(function(_){var A=MW.bind(null,h,_);m.has(_)||(m.add(_),_.then(A,A))})}function jn(h,p){var m=p.deletions;if(m!==null)for(var _=0;_<m.length;_++){var A=m[_],N=h,j=p,U=j;e:for(;U!==null;){switch(U.tag){case 27:if(_s(U.type)){Xt=U.stateNode,wn=!1;break e}break;case 5:Xt=U.stateNode,wn=!1;break e;case 3:case 4:Xt=U.stateNode.containerInfo,wn=!0;break e}U=U.return}if(Xt===null)throw Error(n(160));YE(N,j,A),Xt=null,wn=!1,N=A.alternate,N!==null&&(N.return=null),A.return=null}if(p.subtreeFlags&13878)for(p=p.child;p!==null;)XE(p,h),p=p.sibling}var Va=null;function XE(h,p){var m=h.alternate,_=h.flags;switch(h.tag){case 0:case 11:case 14:case 15:jn(p,h),Vn(h),_&4&&(ds(3,h,h.return),Wd(3,h),ds(5,h,h.return));break;case 1:jn(p,h),Vn(h),_&512&&(cr||m===null||fi(m,m.return)),_&64&&co&&(h=h.updateQueue,h!==null&&(_=h.callbacks,_!==null&&(m=h.shared.hiddenCallbacks,h.shared.hiddenCallbacks=m===null?_:m.concat(_))));break;case 26:var A=Va;if(jn(p,h),Vn(h),_&512&&(cr||m===null||fi(m,m.return)),_&4){var N=m!==null?m.memoizedState:null;if(_=h.memoizedState,m===null)if(_===null)if(h.stateNode===null){e:{_=h.type,m=h.memoizedProps,A=A.ownerDocument||A;t:switch(_){case"title":N=A.getElementsByTagName("title")[0],(!N||N[md]||N[en]||N.namespaceURI==="http://www.w3.org/2000/svg"||N.hasAttribute("itemprop"))&&(N=A.createElement(_),A.head.insertBefore(N,A.querySelector("head > title"))),Yr(N,_,m),N[en]=h,Rr(N),_=N;break e;case"link":var j=GI("link","href",A).get(_+(m.href||""));if(j){for(var U=0;U<j.length;U++)if(N=j[U],N.getAttribute("href")===(m.href==null||m.href===""?null:m.href)&&N.getAttribute("rel")===(m.rel==null?null:m.rel)&&N.getAttribute("title")===(m.title==null?null:m.title)&&N.getAttribute("crossorigin")===(m.crossOrigin==null?null:m.crossOrigin)){j.splice(U,1);break t}}N=A.createElement(_),Yr(N,_,m),A.head.appendChild(N);break;case"meta":if(j=GI("meta","content",A).get(_+(m.content||""))){for(U=0;U<j.length;U++)if(N=j[U],N.getAttribute("content")===(m.content==null?null:""+m.content)&&N.getAttribute("name")===(m.name==null?null:m.name)&&N.getAttribute("property")===(m.property==null?null:m.property)&&N.getAttribute("http-equiv")===(m.httpEquiv==null?null:m.httpEquiv)&&N.getAttribute("charset")===(m.charSet==null?null:m.charSet)){j.splice(U,1);break t}}N=A.createElement(_),Yr(N,_,m),A.head.appendChild(N);break;default:throw Error(n(468,_))}N[en]=h,Rr(N),_=N}h.stateNode=_}else HI(A,h.type,h.stateNode);else h.stateNode=VI(A,_,h.memoizedProps);else N!==_?(N===null?m.stateNode!==null&&(m=m.stateNode,m.parentNode.removeChild(m)):N.count--,_===null?HI(A,h.type,h.stateNode):VI(A,_,h.memoizedProps)):_===null&&h.stateNode!==null&&V_(h,h.memoizedProps,m.memoizedProps)}break;case 27:jn(p,h),Vn(h),_&512&&(cr||m===null||fi(m,m.return)),m!==null&&_&4&&V_(h,h.memoizedProps,m.memoizedProps);break;case 5:if(jn(p,h),Vn(h),_&512&&(cr||m===null||fi(m,m.return)),h.flags&32){A=h.stateNode;try{Oc(A,"")}catch(se){Ht(h,h.return,se)}}_&4&&h.stateNode!=null&&(A=h.memoizedProps,V_(h,A,m!==null?m.memoizedProps:A)),_&1024&&(F_=!0);break;case 6:if(jn(p,h),Vn(h),_&4){if(h.stateNode===null)throw Error(n(162));_=h.memoizedProps,m=h.stateNode;try{m.nodeValue=_}catch(se){Ht(h,h.return,se)}}break;case 3:if(Jm=null,A=Va,Va=Km(p.containerInfo),jn(p,h),Va=A,Vn(h),_&4&&m!==null&&m.memoizedState.isDehydrated)try{cv(p.containerInfo)}catch(se){Ht(h,h.return,se)}F_&&(F_=!1,qE(h));break;case 4:_=Va,Va=Km(h.stateNode.containerInfo),jn(p,h),Vn(h),Va=_;break;case 12:jn(p,h),Vn(h);break;case 13:jn(p,h),Vn(h),h.child.flags&8192&&h.memoizedState!==null!=(m!==null&&m.memoizedState!==null)&&($_=Tt()),_&4&&(_=h.updateQueue,_!==null&&(h.updateQueue=null,U_(h,_)));break;case 22:A=h.memoizedState!==null;var q=m!==null&&m.memoizedState!==null,ae=co,fe=cr;if(co=ae||A,cr=fe||q,jn(p,h),cr=fe,co=ae,Vn(h),_&8192)e:for(p=h.stateNode,p._visibility=A?p._visibility&-2:p._visibility|1,A&&(m===null||q||co||cr||Wl(h)),m=null,p=h;;){if(p.tag===5||p.tag===26){if(m===null){q=m=p;try{if(N=q.stateNode,A)j=N.style,typeof j.setProperty=="function"?j.setProperty("display","none","important"):j.display="none";else{U=q.stateNode;var pe=q.memoizedProps.style,oe=pe!=null&&pe.hasOwnProperty("display")?pe.display:null;U.style.display=oe==null||typeof oe=="boolean"?"":(""+oe).trim()}}catch(se){Ht(q,q.return,se)}}}else if(p.tag===6){if(m===null){q=p;try{q.stateNode.nodeValue=A?"":q.memoizedProps}catch(se){Ht(q,q.return,se)}}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===h)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===h)break e;for(;p.sibling===null;){if(p.return===null||p.return===h)break e;m===p&&(m=null),p=p.return}m===p&&(m=null),p.sibling.return=p.return,p=p.sibling}_&4&&(_=h.updateQueue,_!==null&&(m=_.retryQueue,m!==null&&(_.retryQueue=null,U_(h,m))));break;case 19:jn(p,h),Vn(h),_&4&&(_=h.updateQueue,_!==null&&(h.updateQueue=null,U_(h,_)));break;case 30:break;case 21:break;default:jn(p,h),Vn(h)}}function Vn(h){var p=h.flags;if(p&2){try{for(var m,_=h.return;_!==null;){if(VE(_)){m=_;break}_=_.return}if(m==null)throw Error(n(160));switch(m.tag){case 27:var A=m.stateNode,N=G_(h);Bm(h,N,A);break;case 5:var j=m.stateNode;m.flags&32&&(Oc(j,""),m.flags&=-33);var U=G_(h);Bm(h,U,j);break;case 3:case 4:var q=m.stateNode.containerInfo,ae=G_(h);H_(h,ae,q);break;default:throw Error(n(161))}}catch(fe){Ht(h,h.return,fe)}h.flags&=-3}p&4096&&(h.flags&=-4097)}function qE(h){if(h.subtreeFlags&1024)for(h=h.child;h!==null;){var p=h;qE(p),p.tag===5&&p.flags&1024&&p.stateNode.reset(),h=h.sibling}}function vs(h,p){if(p.subtreeFlags&8772)for(p=p.child;p!==null;)FE(h,p.alternate,p),p=p.sibling}function Wl(h){for(h=h.child;h!==null;){var p=h;switch(p.tag){case 0:case 11:case 14:case 15:ds(4,p,p.return),Wl(p);break;case 1:fi(p,p.return);var m=p.stateNode;typeof m.componentWillUnmount=="function"&&BE(p,p.return,m),Wl(p);break;case 27:rv(p.stateNode);case 26:case 5:fi(p,p.return),Wl(p);break;case 22:p.memoizedState===null&&Wl(p);break;case 30:Wl(p);break;default:Wl(p)}h=h.sibling}}function ps(h,p,m){for(m=m&&(p.subtreeFlags&8772)!==0,p=p.child;p!==null;){var _=p.alternate,A=h,N=p,j=N.flags;switch(N.tag){case 0:case 11:case 15:ps(A,N,m),Wd(4,N);break;case 1:if(ps(A,N,m),_=N,A=_.stateNode,typeof A.componentDidMount=="function")try{A.componentDidMount()}catch(ae){Ht(_,_.return,ae)}if(_=N,A=_.updateQueue,A!==null){var U=_.stateNode;try{var q=A.shared.hiddenCallbacks;if(q!==null)for(A.shared.hiddenCallbacks=null,A=0;A<q.length;A++)wR(q[A],U)}catch(ae){Ht(_,_.return,ae)}}m&&j&64&&zE(N),Xd(N,N.return);break;case 27:GE(N);case 26:case 5:ps(A,N,m),m&&_===null&&j&4&&jE(N),Xd(N,N.return);break;case 12:ps(A,N,m);break;case 13:ps(A,N,m),m&&j&4&&WE(A,N);break;case 22:N.memoizedState===null&&ps(A,N,m),Xd(N,N.return);break;case 30:break;default:ps(A,N,m)}p=p.sibling}}function Y_(h,p){var m=null;h!==null&&h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(m=h.memoizedState.cachePool.pool),h=null,p.memoizedState!==null&&p.memoizedState.cachePool!==null&&(h=p.memoizedState.cachePool.pool),h!==m&&(h!=null&&h.refCount++,m!=null&&Ed(m))}function W_(h,p){h=null,p.alternate!==null&&(h=p.alternate.memoizedState.cache),p=p.memoizedState.cache,p!==h&&(p.refCount++,h!=null&&Ed(h))}function hi(h,p,m,_){if(p.subtreeFlags&10256)for(p=p.child;p!==null;)ZE(h,p,m,_),p=p.sibling}function ZE(h,p,m,_){var A=p.flags;switch(p.tag){case 0:case 11:case 15:hi(h,p,m,_),A&2048&&Wd(9,p);break;case 1:hi(h,p,m,_);break;case 3:hi(h,p,m,_),A&2048&&(h=null,p.alternate!==null&&(h=p.alternate.memoizedState.cache),p=p.memoizedState.cache,p!==h&&(p.refCount++,h!=null&&Ed(h)));break;case 12:if(A&2048){hi(h,p,m,_),h=p.stateNode;try{var N=p.memoizedProps,j=N.id,U=N.onPostCommit;typeof U=="function"&&U(j,p.alternate===null?"mount":"update",h.passiveEffectDuration,-0)}catch(q){Ht(p,p.return,q)}}else hi(h,p,m,_);break;case 13:hi(h,p,m,_);break;case 23:break;case 22:N=p.stateNode,j=p.alternate,p.memoizedState!==null?N._visibility&2?hi(h,p,m,_):qd(h,p):N._visibility&2?hi(h,p,m,_):(N._visibility|=2,ef(h,p,m,_,(p.subtreeFlags&10256)!==0)),A&2048&&Y_(j,p);break;case 24:hi(h,p,m,_),A&2048&&W_(p.alternate,p);break;default:hi(h,p,m,_)}}function ef(h,p,m,_,A){for(A=A&&(p.subtreeFlags&10256)!==0,p=p.child;p!==null;){var N=h,j=p,U=m,q=_,ae=j.flags;switch(j.tag){case 0:case 11:case 15:ef(N,j,U,q,A),Wd(8,j);break;case 23:break;case 22:var fe=j.stateNode;j.memoizedState!==null?fe._visibility&2?ef(N,j,U,q,A):qd(N,j):(fe._visibility|=2,ef(N,j,U,q,A)),A&&ae&2048&&Y_(j.alternate,j);break;case 24:ef(N,j,U,q,A),A&&ae&2048&&W_(j.alternate,j);break;default:ef(N,j,U,q,A)}p=p.sibling}}function qd(h,p){if(p.subtreeFlags&10256)for(p=p.child;p!==null;){var m=h,_=p,A=_.flags;switch(_.tag){case 22:qd(m,_),A&2048&&Y_(_.alternate,_);break;case 24:qd(m,_),A&2048&&W_(_.alternate,_);break;default:qd(m,_)}p=p.sibling}}var Zd=8192;function tf(h){if(h.subtreeFlags&Zd)for(h=h.child;h!==null;)$E(h),h=h.sibling}function $E(h){switch(h.tag){case 26:tf(h),h.flags&Zd&&h.memoizedState!==null&&nX(Va,h.memoizedState,h.memoizedProps);break;case 5:tf(h);break;case 3:case 4:var p=Va;Va=Km(h.stateNode.containerInfo),tf(h),Va=p;break;case 22:h.memoizedState===null&&(p=h.alternate,p!==null&&p.memoizedState!==null?(p=Zd,Zd=16777216,tf(h),Zd=p):tf(h));break;default:tf(h)}}function KE(h){var p=h.alternate;if(p!==null&&(h=p.child,h!==null)){p.child=null;do p=h.sibling,h.sibling=null,h=p;while(h!==null)}}function $d(h){var p=h.deletions;if((h.flags&16)!==0){if(p!==null)for(var m=0;m<p.length;m++){var _=p[m];Ir=_,JE(_,h)}KE(h)}if(h.subtreeFlags&10256)for(h=h.child;h!==null;)QE(h),h=h.sibling}function QE(h){switch(h.tag){case 0:case 11:case 15:$d(h),h.flags&2048&&ds(9,h,h.return);break;case 3:$d(h);break;case 12:$d(h);break;case 22:var p=h.stateNode;h.memoizedState!==null&&p._visibility&2&&(h.return===null||h.return.tag!==13)?(p._visibility&=-3,jm(h)):$d(h);break;default:$d(h)}}function jm(h){var p=h.deletions;if((h.flags&16)!==0){if(p!==null)for(var m=0;m<p.length;m++){var _=p[m];Ir=_,JE(_,h)}KE(h)}for(h=h.child;h!==null;){switch(p=h,p.tag){case 0:case 11:case 15:ds(8,p,p.return),jm(p);break;case 22:m=p.stateNode,m._visibility&2&&(m._visibility&=-3,jm(p));break;default:jm(p)}h=h.sibling}}function JE(h,p){for(;Ir!==null;){var m=Ir;switch(m.tag){case 0:case 11:case 15:ds(8,m,p);break;case 23:case 22:if(m.memoizedState!==null&&m.memoizedState.cachePool!==null){var _=m.memoizedState.cachePool.pool;_!=null&&_.refCount++}break;case 24:Ed(m.memoizedState.cache)}if(_=m.child,_!==null)_.return=m,Ir=_;else e:for(m=h;Ir!==null;){_=Ir;var A=_.sibling,N=_.return;if(UE(_),_===m){Ir=null;break e}if(A!==null){A.return=N,Ir=A;break e}Ir=N}}}var xW={getCacheForType:function(h){var p=tn(wr),m=p.data.get(h);return m===void 0&&(m=h(),p.data.set(h,m)),m}},bW=typeof WeakMap=="function"?WeakMap:Map,It=0,Ut=null,gt=null,St=0,kt=0,Gn=null,gs=!1,rf=!1,X_=!1,ho=0,tr=0,ms=0,Xl=0,q_=0,da=0,nf=0,Kd=null,Tn=null,Z_=!1,$_=0,Vm=1/0,Gm=null,ys=null,Ur=0,xs=null,af=null,of=0,K_=0,Q_=null,eI=null,Qd=0,J_=null;function Hn(){if((It&2)!==0&&St!==0)return St&-St;if(B.T!==null){var h=Wc;return h!==0?h:oS()}return gN()}function tI(){da===0&&(da=(St&536870912)===0||At?hN():536870912);var h=ha.current;return h!==null&&(h.flags|=32),da}function Fn(h,p,m){(h===Ut&&(kt===2||kt===9)||h.cancelPendingCommit!==null)&&(sf(h,0),bs(h,St,da,!1)),gd(h,m),((It&2)===0||h!==Ut)&&(h===Ut&&((It&2)===0&&(Xl|=m),tr===4&&bs(h,St,da,!1)),di(h))}function rI(h,p,m){if((It&6)!==0)throw Error(n(327));var _=!m&&(p&124)===0&&(p&h.expiredLanes)===0||pd(h,p),A=_?wW(h,p):rS(h,p,!0),N=_;do{if(A===0){rf&&!_&&bs(h,p,0,!1);break}else{if(m=h.current.alternate,N&&!_W(m)){A=rS(h,p,!1),N=!1;continue}if(A===2){if(N=p,h.errorRecoveryDisabledLanes&N)var j=0;else j=h.pendingLanes&-536870913,j=j!==0?j:j&536870912?536870912:0;if(j!==0){p=j;e:{var U=h;A=Kd;var q=U.current.memoizedState.isDehydrated;if(q&&(sf(U,j).flags|=256),j=rS(U,j,!1),j!==2){if(X_&&!q){U.errorRecoveryDisabledLanes|=N,Xl|=N,A=4;break e}N=Tn,Tn=A,N!==null&&(Tn===null?Tn=N:Tn.push.apply(Tn,N))}A=j}if(N=!1,A!==2)continue}}if(A===1){sf(h,0),bs(h,p,0,!0);break}e:{switch(_=h,N=A,N){case 0:case 1:throw Error(n(345));case 4:if((p&4194048)!==p)break;case 6:bs(_,p,da,!gs);break e;case 2:Tn=null;break;case 3:case 5:break;default:throw Error(n(329))}if((p&62914560)===p&&(A=$_+300-Tt(),10<A)){if(bs(_,p,da,!gs),Qg(_,0,!0)!==0)break e;_.timeoutHandle=RI(nI.bind(null,_,m,Tn,Gm,Z_,p,da,Xl,nf,gs,N,2,-0,0),A);break e}nI(_,m,Tn,Gm,Z_,p,da,Xl,nf,gs,N,0,-0,0)}}break}while(!0);di(h)}function nI(h,p,m,_,A,N,j,U,q,ae,fe,pe,oe,se){if(h.timeoutHandle=-1,pe=p.subtreeFlags,(pe&8192||(pe&16785408)===16785408)&&(iv={stylesheets:null,count:0,unsuspend:rX},$E(p),pe=aX(),pe!==null)){h.cancelPendingCommit=pe(cI.bind(null,h,p,N,m,_,A,j,U,q,fe,1,oe,se)),bs(h,N,j,!ae);return}cI(h,p,N,m,_,A,j,U,q)}function _W(h){for(var p=h;;){var m=p.tag;if((m===0||m===11||m===15)&&p.flags&16384&&(m=p.updateQueue,m!==null&&(m=m.stores,m!==null)))for(var _=0;_<m.length;_++){var A=m[_],N=A.getSnapshot;A=A.value;try{if(!zn(N(),A))return!1}catch{return!1}}if(m=p.child,p.subtreeFlags&16384&&m!==null)m.return=p,p=m;else{if(p===h)break;for(;p.sibling===null;){if(p.return===null||p.return===h)return!0;p=p.return}p.sibling.return=p.return,p=p.sibling}}return!0}function bs(h,p,m,_){p&=~q_,p&=~Xl,h.suspendedLanes|=p,h.pingedLanes&=~p,_&&(h.warmLanes|=p),_=h.expirationTimes;for(var A=p;0<A;){var N=31-Pn(A),j=1<<N;_[N]=-1,A&=~j}m!==0&&vN(h,m,p)}function Hm(){return(It&6)===0?(Jd(0),!1):!0}function eS(){if(gt!==null){if(kt===0)var h=gt.return;else h=gt,ao=Gl=null,m_(h),Qc=null,Fd=0,h=gt;for(;h!==null;)PE(h.alternate,h),h=h.return;gt=null}}function sf(h,p){var m=h.timeoutHandle;m!==-1&&(h.timeoutHandle=-1,jW(m)),m=h.cancelPendingCommit,m!==null&&(h.cancelPendingCommit=null,m()),eS(),Ut=h,gt=m=to(h.current,null),St=p,kt=0,Gn=null,gs=!1,rf=pd(h,p),X_=!1,nf=da=q_=Xl=ms=tr=0,Tn=Kd=null,Z_=!1,(p&8)!==0&&(p|=p&32);var _=h.entangledLanes;if(_!==0)for(h=h.entanglements,_&=p;0<_;){var A=31-Pn(_),N=1<<A;p|=h[A],_&=~N}return ho=p,cm(),m}function aI(h,p){ft=null,B.H=Lm,p===kd||p===xm?(p=_R(),kt=3):p===yR?(p=_R(),kt=4):kt=p===SE?8:p!==null&&typeof p=="object"&&typeof p.then=="function"?6:1,Gn=p,gt===null&&(tr=1,km(h,la(p,h.current)))}function iI(){var h=B.H;return B.H=Lm,h===null?Lm:h}function oI(){var h=B.A;return B.A=xW,h}function tS(){tr=4,gs||(St&4194048)!==St&&ha.current!==null||(rf=!0),(ms&134217727)===0&&(Xl&134217727)===0||Ut===null||bs(Ut,St,da,!1)}function rS(h,p,m){var _=It;It|=2;var A=iI(),N=oI();(Ut!==h||St!==p)&&(Gm=null,sf(h,p)),p=!1;var j=tr;e:do try{if(kt!==0&>!==null){var U=gt,q=Gn;switch(kt){case 8:eS(),j=6;break e;case 3:case 2:case 9:case 6:ha.current===null&&(p=!0);var ae=kt;if(kt=0,Gn=null,lf(h,U,q,ae),m&&rf){j=0;break e}break;default:ae=kt,kt=0,Gn=null,lf(h,U,q,ae)}}SW(),j=tr;break}catch(fe){aI(h,fe)}while(!0);return p&&h.shellSuspendCounter++,ao=Gl=null,It=_,B.H=A,B.A=N,gt===null&&(Ut=null,St=0,cm()),j}function SW(){for(;gt!==null;)sI(gt)}function wW(h,p){var m=It;It|=2;var _=iI(),A=oI();Ut!==h||St!==p?(Gm=null,Vm=Tt()+500,sf(h,p)):rf=pd(h,p);e:do try{if(kt!==0&>!==null){p=gt;var N=Gn;t:switch(kt){case 1:kt=0,Gn=null,lf(h,p,N,1);break;case 2:case 9:if(xR(N)){kt=0,Gn=null,lI(p);break}p=function(){kt!==2&&kt!==9||Ut!==h||(kt=7),di(h)},N.then(p,p);break e;case 3:kt=7;break e;case 4:kt=5;break e;case 7:xR(N)?(kt=0,Gn=null,lI(p)):(kt=0,Gn=null,lf(h,p,N,7));break;case 5:var j=null;switch(gt.tag){case 26:j=gt.memoizedState;case 5:case 27:var U=gt;if(!j||FI(j)){kt=0,Gn=null;var q=U.sibling;if(q!==null)gt=q;else{var ae=U.return;ae!==null?(gt=ae,Fm(ae)):gt=null}break t}}kt=0,Gn=null,lf(h,p,N,5);break;case 6:kt=0,Gn=null,lf(h,p,N,6);break;case 8:eS(),tr=6;break e;default:throw Error(n(462))}}TW();break}catch(fe){aI(h,fe)}while(!0);return ao=Gl=null,B.H=_,B.A=A,It=m,gt!==null?0:(Ut=null,St=0,cm(),tr)}function TW(){for(;gt!==null&&!ct();)sI(gt)}function sI(h){var p=kE(h.alternate,h,ho);h.memoizedProps=h.pendingProps,p===null?Fm(h):gt=p}function lI(h){var p=h,m=p.alternate;switch(p.tag){case 15:case 0:p=DE(m,p,p.pendingProps,p.type,void 0,St);break;case 11:p=DE(m,p,p.pendingProps,p.type.render,p.ref,St);break;case 5:m_(p);default:PE(m,p),p=gt=uR(p,ho),p=kE(m,p,ho)}h.memoizedProps=h.pendingProps,p===null?Fm(h):gt=p}function lf(h,p,m,_){ao=Gl=null,m_(p),Qc=null,Fd=0;var A=p.return;try{if(dW(h,A,p,m,St)){tr=1,km(h,la(m,h.current)),gt=null;return}}catch(N){if(A!==null)throw gt=A,N;tr=1,km(h,la(m,h.current)),gt=null;return}p.flags&32768?(At||_===1?h=!0:rf||(St&536870912)!==0?h=!1:(gs=h=!0,(_===2||_===9||_===3||_===6)&&(_=ha.current,_!==null&&_.tag===13&&(_.flags|=16384))),uI(p,h)):Fm(p)}function Fm(h){var p=h;do{if((p.flags&32768)!==0){uI(p,gs);return}h=p.return;var m=pW(p.alternate,p,ho);if(m!==null){gt=m;return}if(p=p.sibling,p!==null){gt=p;return}gt=p=h}while(p!==null);tr===0&&(tr=5)}function uI(h,p){do{var m=gW(h.alternate,h);if(m!==null){m.flags&=32767,gt=m;return}if(m=h.return,m!==null&&(m.flags|=32768,m.subtreeFlags=0,m.deletions=null),!p&&(h=h.sibling,h!==null)){gt=h;return}gt=h=m}while(h!==null);tr=6,gt=null}function cI(h,p,m,_,A,N,j,U,q){h.cancelPendingCommit=null;do Um();while(Ur!==0);if((It&6)!==0)throw Error(n(327));if(p!==null){if(p===h.current)throw Error(n(177));if(N=p.lanes|p.childLanes,N|=Wb,rY(h,m,N,j,U,q),h===Ut&&(gt=Ut=null,St=0),af=p,xs=h,of=m,K_=N,Q_=A,eI=_,(p.subtreeFlags&10256)!==0||(p.flags&10256)!==0?(h.callbackNode=null,h.callbackPriority=0,DW(Ba,function(){return pI(),null})):(h.callbackNode=null,h.callbackPriority=0),_=(p.flags&13878)!==0,(p.subtreeFlags&13878)!==0||_){_=B.T,B.T=null,A=Y.p,Y.p=2,j=It,It|=4;try{mW(h,p,m)}finally{It=j,Y.p=A,B.T=_}}Ur=1,fI(),hI(),dI()}}function fI(){if(Ur===1){Ur=0;var h=xs,p=af,m=(p.flags&13878)!==0;if((p.subtreeFlags&13878)!==0||m){m=B.T,B.T=null;var _=Y.p;Y.p=2;var A=It;It|=4;try{XE(p,h);var N=vS,j=JN(h.containerInfo),U=N.focusedElem,q=N.selectionRange;if(j!==U&&U&&U.ownerDocument&&QN(U.ownerDocument.documentElement,U)){if(q!==null&&Gb(U)){var ae=q.start,fe=q.end;if(fe===void 0&&(fe=ae),"selectionStart"in U)U.selectionStart=ae,U.selectionEnd=Math.min(fe,U.value.length);else{var pe=U.ownerDocument||document,oe=pe&&pe.defaultView||window;if(oe.getSelection){var se=oe.getSelection(),tt=U.textContent.length,Xe=Math.min(q.start,tt),Vt=q.end===void 0?Xe:Math.min(q.end,tt);!se.extend&&Xe>Vt&&(j=Vt,Vt=Xe,Xe=j);var re=KN(U,Xe),Q=KN(U,Vt);if(re&&Q&&(se.rangeCount!==1||se.anchorNode!==re.node||se.anchorOffset!==re.offset||se.focusNode!==Q.node||se.focusOffset!==Q.offset)){var ne=pe.createRange();ne.setStart(re.node,re.offset),se.removeAllRanges(),Xe>Vt?(se.addRange(ne),se.extend(Q.node,Q.offset)):(ne.setEnd(Q.node,Q.offset),se.addRange(ne))}}}}for(pe=[],se=U;se=se.parentNode;)se.nodeType===1&&pe.push({element:se,left:se.scrollLeft,top:se.scrollTop});for(typeof U.focus=="function"&&U.focus(),U=0;U<pe.length;U++){var he=pe[U];he.element.scrollLeft=he.left,he.element.scrollTop=he.top}}ry=!!dS,vS=dS=null}finally{It=A,Y.p=_,B.T=m}}h.current=p,Ur=2}}function hI(){if(Ur===2){Ur=0;var h=xs,p=af,m=(p.flags&8772)!==0;if((p.subtreeFlags&8772)!==0||m){m=B.T,B.T=null;var _=Y.p;Y.p=2;var A=It;It|=4;try{FE(h,p.alternate,p)}finally{It=A,Y.p=_,B.T=m}}Ur=3}}function dI(){if(Ur===4||Ur===3){Ur=0,xt();var h=xs,p=af,m=of,_=eI;(p.subtreeFlags&10256)!==0||(p.flags&10256)!==0?Ur=5:(Ur=0,af=xs=null,vI(h,h.pendingLanes));var A=h.pendingLanes;if(A===0&&(ys=null),bb(m),p=p.stateNode,On&&typeof On.onCommitFiberRoot=="function")try{On.onCommitFiberRoot(vd,p,void 0,(p.current.flags&128)===128)}catch{}if(_!==null){p=B.T,A=Y.p,Y.p=2,B.T=null;try{for(var N=h.onRecoverableError,j=0;j<_.length;j++){var U=_[j];N(U.value,{componentStack:U.stack})}}finally{B.T=p,Y.p=A}}(of&3)!==0&&Um(),di(h),A=h.pendingLanes,(m&4194090)!==0&&(A&42)!==0?h===J_?Qd++:(Qd=0,J_=h):Qd=0,Jd(0)}}function vI(h,p){(h.pooledCacheLanes&=p)===0&&(p=h.pooledCache,p!=null&&(h.pooledCache=null,Ed(p)))}function Um(h){return fI(),hI(),dI(),pI()}function pI(){if(Ur!==5)return!1;var h=xs,p=K_;K_=0;var m=bb(of),_=B.T,A=Y.p;try{Y.p=32>m?32:m,B.T=null,m=Q_,Q_=null;var N=xs,j=of;if(Ur=0,af=xs=null,of=0,(It&6)!==0)throw Error(n(331));var U=It;if(It|=4,QE(N.current),ZE(N,N.current,j,m),It=U,Jd(0,!1),On&&typeof On.onPostCommitFiberRoot=="function")try{On.onPostCommitFiberRoot(vd,N)}catch{}return!0}finally{Y.p=A,B.T=_,vI(h,p)}}function gI(h,p,m){p=la(m,p),p=R_(h.stateNode,p,2),h=us(h,p,2),h!==null&&(gd(h,2),di(h))}function Ht(h,p,m){if(h.tag===3)gI(h,h,m);else for(;p!==null;){if(p.tag===3){gI(p,h,m);break}else if(p.tag===1){var _=p.stateNode;if(typeof p.type.getDerivedStateFromError=="function"||typeof _.componentDidCatch=="function"&&(ys===null||!ys.has(_))){h=la(m,h),m=bE(2),_=us(p,m,2),_!==null&&(_E(m,_,p,h),gd(_,2),di(_));break}}p=p.return}}function nS(h,p,m){var _=h.pingCache;if(_===null){_=h.pingCache=new bW;var A=new Set;_.set(p,A)}else A=_.get(p),A===void 0&&(A=new Set,_.set(p,A));A.has(m)||(X_=!0,A.add(m),h=CW.bind(null,h,p,m),p.then(h,h))}function CW(h,p,m){var _=h.pingCache;_!==null&&_.delete(p),h.pingedLanes|=h.suspendedLanes&m,h.warmLanes&=~m,Ut===h&&(St&m)===m&&(tr===4||tr===3&&(St&62914560)===St&&300>Tt()-$_?(It&2)===0&&sf(h,0):q_|=m,nf===St&&(nf=0)),di(h)}function mI(h,p){p===0&&(p=dN()),h=Hc(h,p),h!==null&&(gd(h,p),di(h))}function AW(h){var p=h.memoizedState,m=0;p!==null&&(m=p.retryLane),mI(h,m)}function MW(h,p){var m=0;switch(h.tag){case 13:var _=h.stateNode,A=h.memoizedState;A!==null&&(m=A.retryLane);break;case 19:_=h.stateNode;break;case 22:_=h.stateNode._retryCache;break;default:throw Error(n(314))}_!==null&&_.delete(p),mI(h,m)}function DW(h,p){return st(h,p)}var Ym=null,uf=null,aS=!1,Wm=!1,iS=!1,ql=0;function di(h){h!==uf&&h.next===null&&(uf===null?Ym=uf=h:uf=uf.next=h),Wm=!0,aS||(aS=!0,NW())}function Jd(h,p){if(!iS&&Wm){iS=!0;do for(var m=!1,_=Ym;_!==null;){if(h!==0){var A=_.pendingLanes;if(A===0)var N=0;else{var j=_.suspendedLanes,U=_.pingedLanes;N=(1<<31-Pn(42|h)+1)-1,N&=A&~(j&~U),N=N&201326741?N&201326741|1:N?N|2:0}N!==0&&(m=!0,_I(_,N))}else N=St,N=Qg(_,_===Ut?N:0,_.cancelPendingCommit!==null||_.timeoutHandle!==-1),(N&3)===0||pd(_,N)||(m=!0,_I(_,N));_=_.next}while(m);iS=!1}}function LW(){yI()}function yI(){Wm=aS=!1;var h=0;ql!==0&&(BW()&&(h=ql),ql=0);for(var p=Tt(),m=null,_=Ym;_!==null;){var A=_.next,N=xI(_,p);N===0?(_.next=null,m===null?Ym=A:m.next=A,A===null&&(uf=m)):(m=_,(h!==0||(N&3)!==0)&&(Wm=!0)),_=A}Jd(h)}function xI(h,p){for(var m=h.suspendedLanes,_=h.pingedLanes,A=h.expirationTimes,N=h.pendingLanes&-62914561;0<N;){var j=31-Pn(N),U=1<<j,q=A[j];q===-1?((U&m)===0||(U&_)!==0)&&(A[j]=tY(U,p)):q<=p&&(h.expiredLanes|=U),N&=~U}if(p=Ut,m=St,m=Qg(h,h===p?m:0,h.cancelPendingCommit!==null||h.timeoutHandle!==-1),_=h.callbackNode,m===0||h===p&&(kt===2||kt===9)||h.cancelPendingCommit!==null)return _!==null&&_!==null&&Qe(_),h.callbackNode=null,h.callbackPriority=0;if((m&3)===0||pd(h,m)){if(p=m&-m,p===h.callbackPriority)return p;switch(_!==null&&Qe(_),bb(m)){case 2:case 8:m=li;break;case 32:m=Ba;break;case 268435456:m=fN;break;default:m=Ba}return _=bI.bind(null,h),m=st(m,_),h.callbackPriority=p,h.callbackNode=m,p}return _!==null&&_!==null&&Qe(_),h.callbackPriority=2,h.callbackNode=null,2}function bI(h,p){if(Ur!==0&&Ur!==5)return h.callbackNode=null,h.callbackPriority=0,null;var m=h.callbackNode;if(Um()&&h.callbackNode!==m)return null;var _=St;return _=Qg(h,h===Ut?_:0,h.cancelPendingCommit!==null||h.timeoutHandle!==-1),_===0?null:(rI(h,_,p),xI(h,Tt()),h.callbackNode!=null&&h.callbackNode===m?bI.bind(null,h):null)}function _I(h,p){if(Um())return null;rI(h,p,!0)}function NW(){VW(function(){(It&6)!==0?st(Jt,LW):yI()})}function oS(){return ql===0&&(ql=hN()),ql}function SI(h){return h==null||typeof h=="symbol"||typeof h=="boolean"?null:typeof h=="function"?h:nm(""+h)}function wI(h,p){var m=p.ownerDocument.createElement("input");return m.name=p.name,m.value=p.value,h.id&&m.setAttribute("form",h.id),p.parentNode.insertBefore(m,p),h=new FormData(h),m.parentNode.removeChild(m),h}function RW(h,p,m,_,A){if(p==="submit"&&m&&m.stateNode===A){var N=SI((A[bn]||null).action),j=_.submitter;j&&(p=(p=j[bn]||null)?SI(p.formAction):j.getAttribute("formAction"),p!==null&&(N=p,j=null));var U=new sm("action","action",null,_,A);h.push({event:U,listeners:[{instance:null,listener:function(){if(_.defaultPrevented){if(ql!==0){var q=j?wI(A,j):new FormData(A);A_(m,{pending:!0,data:q,method:A.method,action:N},null,q)}}else typeof N=="function"&&(U.preventDefault(),q=j?wI(A,j):new FormData(A),A_(m,{pending:!0,data:q,method:A.method,action:N},N,q))},currentTarget:A}]})}}for(var sS=0;sS<Yb.length;sS++){var lS=Yb[sS],EW=lS.toLowerCase(),IW=lS[0].toUpperCase()+lS.slice(1);ja(EW,"on"+IW)}ja(rR,"onAnimationEnd"),ja(nR,"onAnimationIteration"),ja(aR,"onAnimationStart"),ja("dblclick","onDoubleClick"),ja("focusin","onFocus"),ja("focusout","onBlur"),ja($Y,"onTransitionRun"),ja(KY,"onTransitionStart"),ja(QY,"onTransitionCancel"),ja(iR,"onTransitionEnd"),Ec("onMouseEnter",["mouseout","mouseover"]),Ec("onMouseLeave",["mouseout","mouseover"]),Ec("onPointerEnter",["pointerout","pointerover"]),Ec("onPointerLeave",["pointerout","pointerover"]),El("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),El("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),El("onBeforeInput",["compositionend","keypress","textInput","paste"]),El("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),El("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),El("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ev="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),kW=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ev));function TI(h,p){p=(p&4)!==0;for(var m=0;m<h.length;m++){var _=h[m],A=_.event;_=_.listeners;e:{var N=void 0;if(p)for(var j=_.length-1;0<=j;j--){var U=_[j],q=U.instance,ae=U.currentTarget;if(U=U.listener,q!==N&&A.isPropagationStopped())break e;N=U,A.currentTarget=ae;try{N(A)}catch(fe){Im(fe)}A.currentTarget=null,N=q}else for(j=0;j<_.length;j++){if(U=_[j],q=U.instance,ae=U.currentTarget,U=U.listener,q!==N&&A.isPropagationStopped())break e;N=U,A.currentTarget=ae;try{N(A)}catch(fe){Im(fe)}A.currentTarget=null,N=q}}}}function mt(h,p){var m=p[_b];m===void 0&&(m=p[_b]=new Set);var _=h+"__bubble";m.has(_)||(CI(p,h,2,!1),m.add(_))}function uS(h,p,m){var _=0;p&&(_|=4),CI(m,h,_,p)}var Xm="_reactListening"+Math.random().toString(36).slice(2);function cS(h){if(!h[Xm]){h[Xm]=!0,yN.forEach(function(m){m!=="selectionchange"&&(kW.has(m)||uS(m,!1,h),uS(m,!0,h))});var p=h.nodeType===9?h:h.ownerDocument;p===null||p[Xm]||(p[Xm]=!0,uS("selectionchange",!1,p))}}function CI(h,p,m,_){switch(ZI(p)){case 2:var A=sX;break;case 8:A=lX;break;default:A=TS}m=A.bind(null,p,m,h),A=void 0,!Eb||p!=="touchstart"&&p!=="touchmove"&&p!=="wheel"||(A=!0),_?A!==void 0?h.addEventListener(p,m,{capture:!0,passive:A}):h.addEventListener(p,m,!0):A!==void 0?h.addEventListener(p,m,{passive:A}):h.addEventListener(p,m,!1)}function fS(h,p,m,_,A){var N=_;if((p&1)===0&&(p&2)===0&&_!==null)e:for(;;){if(_===null)return;var j=_.tag;if(j===3||j===4){var U=_.stateNode.containerInfo;if(U===A)break;if(j===4)for(j=_.return;j!==null;){var q=j.tag;if((q===3||q===4)&&j.stateNode.containerInfo===A)return;j=j.return}for(;U!==null;){if(j=Lc(U),j===null)return;if(q=j.tag,q===5||q===6||q===26||q===27){_=N=j;continue e}U=U.parentNode}}_=_.return}EN(function(){var ae=N,fe=Nb(m),pe=[];e:{var oe=oR.get(h);if(oe!==void 0){var se=sm,tt=h;switch(h){case"keypress":if(im(m)===0)break e;case"keydown":case"keyup":se=DY;break;case"focusin":tt="focus",se=Pb;break;case"focusout":tt="blur",se=Pb;break;case"beforeblur":case"afterblur":se=Pb;break;case"click":if(m.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":se=ON;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":se=gY;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":se=RY;break;case rR:case nR:case aR:se=xY;break;case iR:se=IY;break;case"scroll":case"scrollend":se=vY;break;case"wheel":se=OY;break;case"copy":case"cut":case"paste":se=_Y;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":se=zN;break;case"toggle":case"beforetoggle":se=zY}var Xe=(p&4)!==0,Vt=!Xe&&(h==="scroll"||h==="scrollend"),re=Xe?oe!==null?oe+"Capture":null:oe;Xe=[];for(var Q=ae,ne;Q!==null;){var he=Q;if(ne=he.stateNode,he=he.tag,he!==5&&he!==26&&he!==27||ne===null||re===null||(he=xd(Q,re),he!=null&&Xe.push(tv(Q,he,ne))),Vt)break;Q=Q.return}0<Xe.length&&(oe=new se(oe,tt,null,m,fe),pe.push({event:oe,listeners:Xe}))}}if((p&7)===0){e:{if(oe=h==="mouseover"||h==="pointerover",se=h==="mouseout"||h==="pointerout",oe&&m!==Lb&&(tt=m.relatedTarget||m.fromElement)&&(Lc(tt)||tt[Dc]))break e;if((se||oe)&&(oe=fe.window===fe?fe:(oe=fe.ownerDocument)?oe.defaultView||oe.parentWindow:window,se?(tt=m.relatedTarget||m.toElement,se=ae,tt=tt?Lc(tt):null,tt!==null&&(Vt=i(tt),Xe=tt.tag,tt!==Vt||Xe!==5&&Xe!==27&&Xe!==6)&&(tt=null)):(se=null,tt=ae),se!==tt)){if(Xe=ON,he="onMouseLeave",re="onMouseEnter",Q="mouse",(h==="pointerout"||h==="pointerover")&&(Xe=zN,he="onPointerLeave",re="onPointerEnter",Q="pointer"),Vt=se==null?oe:yd(se),ne=tt==null?oe:yd(tt),oe=new Xe(he,Q+"leave",se,m,fe),oe.target=Vt,oe.relatedTarget=ne,he=null,Lc(fe)===ae&&(Xe=new Xe(re,Q+"enter",tt,m,fe),Xe.target=ne,Xe.relatedTarget=Vt,he=Xe),Vt=he,se&&tt)t:{for(Xe=se,re=tt,Q=0,ne=Xe;ne;ne=cf(ne))Q++;for(ne=0,he=re;he;he=cf(he))ne++;for(;0<Q-ne;)Xe=cf(Xe),Q--;for(;0<ne-Q;)re=cf(re),ne--;for(;Q--;){if(Xe===re||re!==null&&Xe===re.alternate)break t;Xe=cf(Xe),re=cf(re)}Xe=null}else Xe=null;se!==null&&AI(pe,oe,se,Xe,!1),tt!==null&&Vt!==null&&AI(pe,Vt,tt,Xe,!0)}}e:{if(oe=ae?yd(ae):window,se=oe.nodeName&&oe.nodeName.toLowerCase(),se==="select"||se==="input"&&oe.type==="file")var Be=YN;else if(FN(oe))if(WN)Be=XY;else{Be=YY;var dt=UY}else se=oe.nodeName,!se||se.toLowerCase()!=="input"||oe.type!=="checkbox"&&oe.type!=="radio"?ae&&Db(ae.elementType)&&(Be=YN):Be=WY;if(Be&&(Be=Be(h,ae))){UN(pe,Be,m,fe);break e}dt&&dt(h,oe,ae),h==="focusout"&&ae&&oe.type==="number"&&ae.memoizedProps.value!=null&&Mb(oe,"number",oe.value)}switch(dt=ae?yd(ae):window,h){case"focusin":(FN(dt)||dt.contentEditable==="true")&&(jc=dt,Hb=ae,Md=null);break;case"focusout":Md=Hb=jc=null;break;case"mousedown":Fb=!0;break;case"contextmenu":case"mouseup":case"dragend":Fb=!1,eR(pe,m,fe);break;case"selectionchange":if(ZY)break;case"keydown":case"keyup":eR(pe,m,fe)}var He;if(Bb)e:{switch(h){case"compositionstart":var Ze="onCompositionStart";break e;case"compositionend":Ze="onCompositionEnd";break e;case"compositionupdate":Ze="onCompositionUpdate";break e}Ze=void 0}else Bc?GN(h,m)&&(Ze="onCompositionEnd"):h==="keydown"&&m.keyCode===229&&(Ze="onCompositionStart");Ze&&(BN&&m.locale!=="ko"&&(Bc||Ze!=="onCompositionStart"?Ze==="onCompositionEnd"&&Bc&&(He=IN()):(is=fe,Ib="value"in is?is.value:is.textContent,Bc=!0)),dt=qm(ae,Ze),0<dt.length&&(Ze=new PN(Ze,h,null,m,fe),pe.push({event:Ze,listeners:dt}),He?Ze.data=He:(He=HN(m),He!==null&&(Ze.data=He)))),(He=jY?VY(h,m):GY(h,m))&&(Ze=qm(ae,"onBeforeInput"),0<Ze.length&&(dt=new PN("onBeforeInput","beforeinput",null,m,fe),pe.push({event:dt,listeners:Ze}),dt.data=He)),RW(pe,h,ae,m,fe)}TI(pe,p)})}function tv(h,p,m){return{instance:h,listener:p,currentTarget:m}}function qm(h,p){for(var m=p+"Capture",_=[];h!==null;){var A=h,N=A.stateNode;if(A=A.tag,A!==5&&A!==26&&A!==27||N===null||(A=xd(h,m),A!=null&&_.unshift(tv(h,A,N)),A=xd(h,p),A!=null&&_.push(tv(h,A,N))),h.tag===3)return _;h=h.return}return[]}function cf(h){if(h===null)return null;do h=h.return;while(h&&h.tag!==5&&h.tag!==27);return h||null}function AI(h,p,m,_,A){for(var N=p._reactName,j=[];m!==null&&m!==_;){var U=m,q=U.alternate,ae=U.stateNode;if(U=U.tag,q!==null&&q===_)break;U!==5&&U!==26&&U!==27||ae===null||(q=ae,A?(ae=xd(m,N),ae!=null&&j.unshift(tv(m,ae,q))):A||(ae=xd(m,N),ae!=null&&j.push(tv(m,ae,q)))),m=m.return}j.length!==0&&h.push({event:p,listeners:j})}var OW=/\r\n?/g,PW=/\u0000|\uFFFD/g;function MI(h){return(typeof h=="string"?h:""+h).replace(OW,`
|
|
49
|
+
`).replace(PW,"")}function DI(h,p){return p=MI(p),MI(h)===p}function Zm(){}function jt(h,p,m,_,A,N){switch(m){case"children":typeof _=="string"?p==="body"||p==="textarea"&&_===""||Oc(h,_):(typeof _=="number"||typeof _=="bigint")&&p!=="body"&&Oc(h,""+_);break;case"className":em(h,"class",_);break;case"tabIndex":em(h,"tabindex",_);break;case"dir":case"role":case"viewBox":case"width":case"height":em(h,m,_);break;case"style":NN(h,_,N);break;case"data":if(p!=="object"){em(h,"data",_);break}case"src":case"href":if(_===""&&(p!=="a"||m!=="href")){h.removeAttribute(m);break}if(_==null||typeof _=="function"||typeof _=="symbol"||typeof _=="boolean"){h.removeAttribute(m);break}_=nm(""+_),h.setAttribute(m,_);break;case"action":case"formAction":if(typeof _=="function"){h.setAttribute(m,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof N=="function"&&(m==="formAction"?(p!=="input"&&jt(h,p,"name",A.name,A,null),jt(h,p,"formEncType",A.formEncType,A,null),jt(h,p,"formMethod",A.formMethod,A,null),jt(h,p,"formTarget",A.formTarget,A,null)):(jt(h,p,"encType",A.encType,A,null),jt(h,p,"method",A.method,A,null),jt(h,p,"target",A.target,A,null)));if(_==null||typeof _=="symbol"||typeof _=="boolean"){h.removeAttribute(m);break}_=nm(""+_),h.setAttribute(m,_);break;case"onClick":_!=null&&(h.onclick=Zm);break;case"onScroll":_!=null&&mt("scroll",h);break;case"onScrollEnd":_!=null&&mt("scrollend",h);break;case"dangerouslySetInnerHTML":if(_!=null){if(typeof _!="object"||!("__html"in _))throw Error(n(61));if(m=_.__html,m!=null){if(A.children!=null)throw Error(n(60));h.innerHTML=m}}break;case"multiple":h.multiple=_&&typeof _!="function"&&typeof _!="symbol";break;case"muted":h.muted=_&&typeof _!="function"&&typeof _!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(_==null||typeof _=="function"||typeof _=="boolean"||typeof _=="symbol"){h.removeAttribute("xlink:href");break}m=nm(""+_),h.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",m);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":_!=null&&typeof _!="function"&&typeof _!="symbol"?h.setAttribute(m,""+_):h.removeAttribute(m);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":_&&typeof _!="function"&&typeof _!="symbol"?h.setAttribute(m,""):h.removeAttribute(m);break;case"capture":case"download":_===!0?h.setAttribute(m,""):_!==!1&&_!=null&&typeof _!="function"&&typeof _!="symbol"?h.setAttribute(m,_):h.removeAttribute(m);break;case"cols":case"rows":case"size":case"span":_!=null&&typeof _!="function"&&typeof _!="symbol"&&!isNaN(_)&&1<=_?h.setAttribute(m,_):h.removeAttribute(m);break;case"rowSpan":case"start":_==null||typeof _=="function"||typeof _=="symbol"||isNaN(_)?h.removeAttribute(m):h.setAttribute(m,_);break;case"popover":mt("beforetoggle",h),mt("toggle",h),Jg(h,"popover",_);break;case"xlinkActuate":Ji(h,"http://www.w3.org/1999/xlink","xlink:actuate",_);break;case"xlinkArcrole":Ji(h,"http://www.w3.org/1999/xlink","xlink:arcrole",_);break;case"xlinkRole":Ji(h,"http://www.w3.org/1999/xlink","xlink:role",_);break;case"xlinkShow":Ji(h,"http://www.w3.org/1999/xlink","xlink:show",_);break;case"xlinkTitle":Ji(h,"http://www.w3.org/1999/xlink","xlink:title",_);break;case"xlinkType":Ji(h,"http://www.w3.org/1999/xlink","xlink:type",_);break;case"xmlBase":Ji(h,"http://www.w3.org/XML/1998/namespace","xml:base",_);break;case"xmlLang":Ji(h,"http://www.w3.org/XML/1998/namespace","xml:lang",_);break;case"xmlSpace":Ji(h,"http://www.w3.org/XML/1998/namespace","xml:space",_);break;case"is":Jg(h,"is",_);break;case"innerText":case"textContent":break;default:(!(2<m.length)||m[0]!=="o"&&m[0]!=="O"||m[1]!=="n"&&m[1]!=="N")&&(m=hY.get(m)||m,Jg(h,m,_))}}function hS(h,p,m,_,A,N){switch(m){case"style":NN(h,_,N);break;case"dangerouslySetInnerHTML":if(_!=null){if(typeof _!="object"||!("__html"in _))throw Error(n(61));if(m=_.__html,m!=null){if(A.children!=null)throw Error(n(60));h.innerHTML=m}}break;case"children":typeof _=="string"?Oc(h,_):(typeof _=="number"||typeof _=="bigint")&&Oc(h,""+_);break;case"onScroll":_!=null&&mt("scroll",h);break;case"onScrollEnd":_!=null&&mt("scrollend",h);break;case"onClick":_!=null&&(h.onclick=Zm);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!xN.hasOwnProperty(m))e:{if(m[0]==="o"&&m[1]==="n"&&(A=m.endsWith("Capture"),p=m.slice(2,A?m.length-7:void 0),N=h[bn]||null,N=N!=null?N[m]:null,typeof N=="function"&&h.removeEventListener(p,N,A),typeof _=="function")){typeof N!="function"&&N!==null&&(m in h?h[m]=null:h.hasAttribute(m)&&h.removeAttribute(m)),h.addEventListener(p,_,A);break e}m in h?h[m]=_:_===!0?h.setAttribute(m,""):Jg(h,m,_)}}}function Yr(h,p,m){switch(p){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":mt("error",h),mt("load",h);var _=!1,A=!1,N;for(N in m)if(m.hasOwnProperty(N)){var j=m[N];if(j!=null)switch(N){case"src":_=!0;break;case"srcSet":A=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(n(137,p));default:jt(h,p,N,j,m,null)}}A&&jt(h,p,"srcSet",m.srcSet,m,null),_&&jt(h,p,"src",m.src,m,null);return;case"input":mt("invalid",h);var U=N=j=A=null,q=null,ae=null;for(_ in m)if(m.hasOwnProperty(_)){var fe=m[_];if(fe!=null)switch(_){case"name":A=fe;break;case"type":j=fe;break;case"checked":q=fe;break;case"defaultChecked":ae=fe;break;case"value":N=fe;break;case"defaultValue":U=fe;break;case"children":case"dangerouslySetInnerHTML":if(fe!=null)throw Error(n(137,p));break;default:jt(h,p,_,fe,m,null)}}AN(h,N,U,q,ae,j,A,!1),tm(h);return;case"select":mt("invalid",h),_=j=N=null;for(A in m)if(m.hasOwnProperty(A)&&(U=m[A],U!=null))switch(A){case"value":N=U;break;case"defaultValue":j=U;break;case"multiple":_=U;default:jt(h,p,A,U,m,null)}p=N,m=j,h.multiple=!!_,p!=null?kc(h,!!_,p,!1):m!=null&&kc(h,!!_,m,!0);return;case"textarea":mt("invalid",h),N=A=_=null;for(j in m)if(m.hasOwnProperty(j)&&(U=m[j],U!=null))switch(j){case"value":_=U;break;case"defaultValue":A=U;break;case"children":N=U;break;case"dangerouslySetInnerHTML":if(U!=null)throw Error(n(91));break;default:jt(h,p,j,U,m,null)}DN(h,_,A,N),tm(h);return;case"option":for(q in m)if(m.hasOwnProperty(q)&&(_=m[q],_!=null))switch(q){case"selected":h.selected=_&&typeof _!="function"&&typeof _!="symbol";break;default:jt(h,p,q,_,m,null)}return;case"dialog":mt("beforetoggle",h),mt("toggle",h),mt("cancel",h),mt("close",h);break;case"iframe":case"object":mt("load",h);break;case"video":case"audio":for(_=0;_<ev.length;_++)mt(ev[_],h);break;case"image":mt("error",h),mt("load",h);break;case"details":mt("toggle",h);break;case"embed":case"source":case"link":mt("error",h),mt("load",h);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(ae in m)if(m.hasOwnProperty(ae)&&(_=m[ae],_!=null))switch(ae){case"children":case"dangerouslySetInnerHTML":throw Error(n(137,p));default:jt(h,p,ae,_,m,null)}return;default:if(Db(p)){for(fe in m)m.hasOwnProperty(fe)&&(_=m[fe],_!==void 0&&hS(h,p,fe,_,m,void 0));return}}for(U in m)m.hasOwnProperty(U)&&(_=m[U],_!=null&&jt(h,p,U,_,m,null))}function zW(h,p,m,_){switch(p){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var A=null,N=null,j=null,U=null,q=null,ae=null,fe=null;for(se in m){var pe=m[se];if(m.hasOwnProperty(se)&&pe!=null)switch(se){case"checked":break;case"value":break;case"defaultValue":q=pe;default:_.hasOwnProperty(se)||jt(h,p,se,null,_,pe)}}for(var oe in _){var se=_[oe];if(pe=m[oe],_.hasOwnProperty(oe)&&(se!=null||pe!=null))switch(oe){case"type":N=se;break;case"name":A=se;break;case"checked":ae=se;break;case"defaultChecked":fe=se;break;case"value":j=se;break;case"defaultValue":U=se;break;case"children":case"dangerouslySetInnerHTML":if(se!=null)throw Error(n(137,p));break;default:se!==pe&&jt(h,p,oe,se,_,pe)}}Ab(h,j,U,q,ae,fe,N,A);return;case"select":se=j=U=oe=null;for(N in m)if(q=m[N],m.hasOwnProperty(N)&&q!=null)switch(N){case"value":break;case"multiple":se=q;default:_.hasOwnProperty(N)||jt(h,p,N,null,_,q)}for(A in _)if(N=_[A],q=m[A],_.hasOwnProperty(A)&&(N!=null||q!=null))switch(A){case"value":oe=N;break;case"defaultValue":U=N;break;case"multiple":j=N;default:N!==q&&jt(h,p,A,N,_,q)}p=U,m=j,_=se,oe!=null?kc(h,!!m,oe,!1):!!_!=!!m&&(p!=null?kc(h,!!m,p,!0):kc(h,!!m,m?[]:"",!1));return;case"textarea":se=oe=null;for(U in m)if(A=m[U],m.hasOwnProperty(U)&&A!=null&&!_.hasOwnProperty(U))switch(U){case"value":break;case"children":break;default:jt(h,p,U,null,_,A)}for(j in _)if(A=_[j],N=m[j],_.hasOwnProperty(j)&&(A!=null||N!=null))switch(j){case"value":oe=A;break;case"defaultValue":se=A;break;case"children":break;case"dangerouslySetInnerHTML":if(A!=null)throw Error(n(91));break;default:A!==N&&jt(h,p,j,A,_,N)}MN(h,oe,se);return;case"option":for(var tt in m)if(oe=m[tt],m.hasOwnProperty(tt)&&oe!=null&&!_.hasOwnProperty(tt))switch(tt){case"selected":h.selected=!1;break;default:jt(h,p,tt,null,_,oe)}for(q in _)if(oe=_[q],se=m[q],_.hasOwnProperty(q)&&oe!==se&&(oe!=null||se!=null))switch(q){case"selected":h.selected=oe&&typeof oe!="function"&&typeof oe!="symbol";break;default:jt(h,p,q,oe,_,se)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Xe in m)oe=m[Xe],m.hasOwnProperty(Xe)&&oe!=null&&!_.hasOwnProperty(Xe)&&jt(h,p,Xe,null,_,oe);for(ae in _)if(oe=_[ae],se=m[ae],_.hasOwnProperty(ae)&&oe!==se&&(oe!=null||se!=null))switch(ae){case"children":case"dangerouslySetInnerHTML":if(oe!=null)throw Error(n(137,p));break;default:jt(h,p,ae,oe,_,se)}return;default:if(Db(p)){for(var Vt in m)oe=m[Vt],m.hasOwnProperty(Vt)&&oe!==void 0&&!_.hasOwnProperty(Vt)&&hS(h,p,Vt,void 0,_,oe);for(fe in _)oe=_[fe],se=m[fe],!_.hasOwnProperty(fe)||oe===se||oe===void 0&&se===void 0||hS(h,p,fe,oe,_,se);return}}for(var re in m)oe=m[re],m.hasOwnProperty(re)&&oe!=null&&!_.hasOwnProperty(re)&&jt(h,p,re,null,_,oe);for(pe in _)oe=_[pe],se=m[pe],!_.hasOwnProperty(pe)||oe===se||oe==null&&se==null||jt(h,p,pe,oe,_,se)}var dS=null,vS=null;function $m(h){return h.nodeType===9?h:h.ownerDocument}function LI(h){switch(h){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function NI(h,p){if(h===0)switch(p){case"svg":return 1;case"math":return 2;default:return 0}return h===1&&p==="foreignObject"?0:h}function pS(h,p){return h==="textarea"||h==="noscript"||typeof p.children=="string"||typeof p.children=="number"||typeof p.children=="bigint"||typeof p.dangerouslySetInnerHTML=="object"&&p.dangerouslySetInnerHTML!==null&&p.dangerouslySetInnerHTML.__html!=null}var gS=null;function BW(){var h=window.event;return h&&h.type==="popstate"?h===gS?!1:(gS=h,!0):(gS=null,!1)}var RI=typeof setTimeout=="function"?setTimeout:void 0,jW=typeof clearTimeout=="function"?clearTimeout:void 0,EI=typeof Promise=="function"?Promise:void 0,VW=typeof queueMicrotask=="function"?queueMicrotask:typeof EI<"u"?function(h){return EI.resolve(null).then(h).catch(GW)}:RI;function GW(h){setTimeout(function(){throw h})}function _s(h){return h==="head"}function II(h,p){var m=p,_=0,A=0;do{var N=m.nextSibling;if(h.removeChild(m),N&&N.nodeType===8)if(m=N.data,m==="/$"){if(0<_&&8>_){m=_;var j=h.ownerDocument;if(m&1&&rv(j.documentElement),m&2&&rv(j.body),m&4)for(m=j.head,rv(m),j=m.firstChild;j;){var U=j.nextSibling,q=j.nodeName;j[md]||q==="SCRIPT"||q==="STYLE"||q==="LINK"&&j.rel.toLowerCase()==="stylesheet"||m.removeChild(j),j=U}}if(A===0){h.removeChild(N),cv(p);return}A--}else m==="$"||m==="$?"||m==="$!"?A++:_=m.charCodeAt(0)-48;else _=0;m=N}while(m);cv(p)}function mS(h){var p=h.firstChild;for(p&&p.nodeType===10&&(p=p.nextSibling);p;){var m=p;switch(p=p.nextSibling,m.nodeName){case"HTML":case"HEAD":case"BODY":mS(m),Sb(m);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(m.rel.toLowerCase()==="stylesheet")continue}h.removeChild(m)}}function HW(h,p,m,_){for(;h.nodeType===1;){var A=m;if(h.nodeName.toLowerCase()!==p.toLowerCase()){if(!_&&(h.nodeName!=="INPUT"||h.type!=="hidden"))break}else if(_){if(!h[md])switch(p){case"meta":if(!h.hasAttribute("itemprop"))break;return h;case"link":if(N=h.getAttribute("rel"),N==="stylesheet"&&h.hasAttribute("data-precedence"))break;if(N!==A.rel||h.getAttribute("href")!==(A.href==null||A.href===""?null:A.href)||h.getAttribute("crossorigin")!==(A.crossOrigin==null?null:A.crossOrigin)||h.getAttribute("title")!==(A.title==null?null:A.title))break;return h;case"style":if(h.hasAttribute("data-precedence"))break;return h;case"script":if(N=h.getAttribute("src"),(N!==(A.src==null?null:A.src)||h.getAttribute("type")!==(A.type==null?null:A.type)||h.getAttribute("crossorigin")!==(A.crossOrigin==null?null:A.crossOrigin))&&N&&h.hasAttribute("async")&&!h.hasAttribute("itemprop"))break;return h;default:return h}}else if(p==="input"&&h.type==="hidden"){var N=A.name==null?null:""+A.name;if(A.type==="hidden"&&h.getAttribute("name")===N)return h}else return h;if(h=Ga(h.nextSibling),h===null)break}return null}function FW(h,p,m){if(p==="")return null;for(;h.nodeType!==3;)if((h.nodeType!==1||h.nodeName!=="INPUT"||h.type!=="hidden")&&!m||(h=Ga(h.nextSibling),h===null))return null;return h}function yS(h){return h.data==="$!"||h.data==="$?"&&h.ownerDocument.readyState==="complete"}function UW(h,p){var m=h.ownerDocument;if(h.data!=="$?"||m.readyState==="complete")p();else{var _=function(){p(),m.removeEventListener("DOMContentLoaded",_)};m.addEventListener("DOMContentLoaded",_),h._reactRetry=_}}function Ga(h){for(;h!=null;h=h.nextSibling){var p=h.nodeType;if(p===1||p===3)break;if(p===8){if(p=h.data,p==="$"||p==="$!"||p==="$?"||p==="F!"||p==="F")break;if(p==="/$")return null}}return h}var xS=null;function kI(h){h=h.previousSibling;for(var p=0;h;){if(h.nodeType===8){var m=h.data;if(m==="$"||m==="$!"||m==="$?"){if(p===0)return h;p--}else m==="/$"&&p++}h=h.previousSibling}return null}function OI(h,p,m){switch(p=$m(m),h){case"html":if(h=p.documentElement,!h)throw Error(n(452));return h;case"head":if(h=p.head,!h)throw Error(n(453));return h;case"body":if(h=p.body,!h)throw Error(n(454));return h;default:throw Error(n(451))}}function rv(h){for(var p=h.attributes;p.length;)h.removeAttributeNode(p[0]);Sb(h)}var va=new Map,PI=new Set;function Km(h){return typeof h.getRootNode=="function"?h.getRootNode():h.nodeType===9?h:h.ownerDocument}var vo=Y.d;Y.d={f:YW,r:WW,D:XW,C:qW,L:ZW,m:$W,X:QW,S:KW,M:JW};function YW(){var h=vo.f(),p=Hm();return h||p}function WW(h){var p=Nc(h);p!==null&&p.tag===5&&p.type==="form"?rE(p):vo.r(h)}var ff=typeof document>"u"?null:document;function zI(h,p,m){var _=ff;if(_&&typeof p=="string"&&p){var A=sa(p);A='link[rel="'+h+'"][href="'+A+'"]',typeof m=="string"&&(A+='[crossorigin="'+m+'"]'),PI.has(A)||(PI.add(A),h={rel:h,crossOrigin:m,href:p},_.querySelector(A)===null&&(p=_.createElement("link"),Yr(p,"link",h),Rr(p),_.head.appendChild(p)))}}function XW(h){vo.D(h),zI("dns-prefetch",h,null)}function qW(h,p){vo.C(h,p),zI("preconnect",h,p)}function ZW(h,p,m){vo.L(h,p,m);var _=ff;if(_&&h&&p){var A='link[rel="preload"][as="'+sa(p)+'"]';p==="image"&&m&&m.imageSrcSet?(A+='[imagesrcset="'+sa(m.imageSrcSet)+'"]',typeof m.imageSizes=="string"&&(A+='[imagesizes="'+sa(m.imageSizes)+'"]')):A+='[href="'+sa(h)+'"]';var N=A;switch(p){case"style":N=hf(h);break;case"script":N=df(h)}va.has(N)||(h=c({rel:"preload",href:p==="image"&&m&&m.imageSrcSet?void 0:h,as:p},m),va.set(N,h),_.querySelector(A)!==null||p==="style"&&_.querySelector(nv(N))||p==="script"&&_.querySelector(av(N))||(p=_.createElement("link"),Yr(p,"link",h),Rr(p),_.head.appendChild(p)))}}function $W(h,p){vo.m(h,p);var m=ff;if(m&&h){var _=p&&typeof p.as=="string"?p.as:"script",A='link[rel="modulepreload"][as="'+sa(_)+'"][href="'+sa(h)+'"]',N=A;switch(_){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":N=df(h)}if(!va.has(N)&&(h=c({rel:"modulepreload",href:h},p),va.set(N,h),m.querySelector(A)===null)){switch(_){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(m.querySelector(av(N)))return}_=m.createElement("link"),Yr(_,"link",h),Rr(_),m.head.appendChild(_)}}}function KW(h,p,m){vo.S(h,p,m);var _=ff;if(_&&h){var A=Rc(_).hoistableStyles,N=hf(h);p=p||"default";var j=A.get(N);if(!j){var U={loading:0,preload:null};if(j=_.querySelector(nv(N)))U.loading=5;else{h=c({rel:"stylesheet",href:h,"data-precedence":p},m),(m=va.get(N))&&bS(h,m);var q=j=_.createElement("link");Rr(q),Yr(q,"link",h),q._p=new Promise(function(ae,fe){q.onload=ae,q.onerror=fe}),q.addEventListener("load",function(){U.loading|=1}),q.addEventListener("error",function(){U.loading|=2}),U.loading|=4,Qm(j,p,_)}j={type:"stylesheet",instance:j,count:1,state:U},A.set(N,j)}}}function QW(h,p){vo.X(h,p);var m=ff;if(m&&h){var _=Rc(m).hoistableScripts,A=df(h),N=_.get(A);N||(N=m.querySelector(av(A)),N||(h=c({src:h,async:!0},p),(p=va.get(A))&&_S(h,p),N=m.createElement("script"),Rr(N),Yr(N,"link",h),m.head.appendChild(N)),N={type:"script",instance:N,count:1,state:null},_.set(A,N))}}function JW(h,p){vo.M(h,p);var m=ff;if(m&&h){var _=Rc(m).hoistableScripts,A=df(h),N=_.get(A);N||(N=m.querySelector(av(A)),N||(h=c({src:h,async:!0,type:"module"},p),(p=va.get(A))&&_S(h,p),N=m.createElement("script"),Rr(N),Yr(N,"link",h),m.head.appendChild(N)),N={type:"script",instance:N,count:1,state:null},_.set(A,N))}}function BI(h,p,m,_){var A=(A=we.current)?Km(A):null;if(!A)throw Error(n(446));switch(h){case"meta":case"title":return null;case"style":return typeof m.precedence=="string"&&typeof m.href=="string"?(p=hf(m.href),m=Rc(A).hoistableStyles,_=m.get(p),_||(_={type:"style",instance:null,count:0,state:null},m.set(p,_)),_):{type:"void",instance:null,count:0,state:null};case"link":if(m.rel==="stylesheet"&&typeof m.href=="string"&&typeof m.precedence=="string"){h=hf(m.href);var N=Rc(A).hoistableStyles,j=N.get(h);if(j||(A=A.ownerDocument||A,j={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},N.set(h,j),(N=A.querySelector(nv(h)))&&!N._p&&(j.instance=N,j.state.loading=5),va.has(h)||(m={rel:"preload",as:"style",href:m.href,crossOrigin:m.crossOrigin,integrity:m.integrity,media:m.media,hrefLang:m.hrefLang,referrerPolicy:m.referrerPolicy},va.set(h,m),N||eX(A,h,m,j.state))),p&&_===null)throw Error(n(528,""));return j}if(p&&_!==null)throw Error(n(529,""));return null;case"script":return p=m.async,m=m.src,typeof m=="string"&&p&&typeof p!="function"&&typeof p!="symbol"?(p=df(m),m=Rc(A).hoistableScripts,_=m.get(p),_||(_={type:"script",instance:null,count:0,state:null},m.set(p,_)),_):{type:"void",instance:null,count:0,state:null};default:throw Error(n(444,h))}}function hf(h){return'href="'+sa(h)+'"'}function nv(h){return'link[rel="stylesheet"]['+h+"]"}function jI(h){return c({},h,{"data-precedence":h.precedence,precedence:null})}function eX(h,p,m,_){h.querySelector('link[rel="preload"][as="style"]['+p+"]")?_.loading=1:(p=h.createElement("link"),_.preload=p,p.addEventListener("load",function(){return _.loading|=1}),p.addEventListener("error",function(){return _.loading|=2}),Yr(p,"link",m),Rr(p),h.head.appendChild(p))}function df(h){return'[src="'+sa(h)+'"]'}function av(h){return"script[async]"+h}function VI(h,p,m){if(p.count++,p.instance===null)switch(p.type){case"style":var _=h.querySelector('style[data-href~="'+sa(m.href)+'"]');if(_)return p.instance=_,Rr(_),_;var A=c({},m,{"data-href":m.href,"data-precedence":m.precedence,href:null,precedence:null});return _=(h.ownerDocument||h).createElement("style"),Rr(_),Yr(_,"style",A),Qm(_,m.precedence,h),p.instance=_;case"stylesheet":A=hf(m.href);var N=h.querySelector(nv(A));if(N)return p.state.loading|=4,p.instance=N,Rr(N),N;_=jI(m),(A=va.get(A))&&bS(_,A),N=(h.ownerDocument||h).createElement("link"),Rr(N);var j=N;return j._p=new Promise(function(U,q){j.onload=U,j.onerror=q}),Yr(N,"link",_),p.state.loading|=4,Qm(N,m.precedence,h),p.instance=N;case"script":return N=df(m.src),(A=h.querySelector(av(N)))?(p.instance=A,Rr(A),A):(_=m,(A=va.get(N))&&(_=c({},m),_S(_,A)),h=h.ownerDocument||h,A=h.createElement("script"),Rr(A),Yr(A,"link",_),h.head.appendChild(A),p.instance=A);case"void":return null;default:throw Error(n(443,p.type))}else p.type==="stylesheet"&&(p.state.loading&4)===0&&(_=p.instance,p.state.loading|=4,Qm(_,m.precedence,h));return p.instance}function Qm(h,p,m){for(var _=m.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),A=_.length?_[_.length-1]:null,N=A,j=0;j<_.length;j++){var U=_[j];if(U.dataset.precedence===p)N=U;else if(N!==A)break}N?N.parentNode.insertBefore(h,N.nextSibling):(p=m.nodeType===9?m.head:m,p.insertBefore(h,p.firstChild))}function bS(h,p){h.crossOrigin==null&&(h.crossOrigin=p.crossOrigin),h.referrerPolicy==null&&(h.referrerPolicy=p.referrerPolicy),h.title==null&&(h.title=p.title)}function _S(h,p){h.crossOrigin==null&&(h.crossOrigin=p.crossOrigin),h.referrerPolicy==null&&(h.referrerPolicy=p.referrerPolicy),h.integrity==null&&(h.integrity=p.integrity)}var Jm=null;function GI(h,p,m){if(Jm===null){var _=new Map,A=Jm=new Map;A.set(m,_)}else A=Jm,_=A.get(m),_||(_=new Map,A.set(m,_));if(_.has(h))return _;for(_.set(h,null),m=m.getElementsByTagName(h),A=0;A<m.length;A++){var N=m[A];if(!(N[md]||N[en]||h==="link"&&N.getAttribute("rel")==="stylesheet")&&N.namespaceURI!=="http://www.w3.org/2000/svg"){var j=N.getAttribute(p)||"";j=h+j;var U=_.get(j);U?U.push(N):_.set(j,[N])}}return _}function HI(h,p,m){h=h.ownerDocument||h,h.head.insertBefore(m,p==="title"?h.querySelector("head > title"):null)}function tX(h,p,m){if(m===1||p.itemProp!=null)return!1;switch(h){case"meta":case"title":return!0;case"style":if(typeof p.precedence!="string"||typeof p.href!="string"||p.href==="")break;return!0;case"link":if(typeof p.rel!="string"||typeof p.href!="string"||p.href===""||p.onLoad||p.onError)break;switch(p.rel){case"stylesheet":return h=p.disabled,typeof p.precedence=="string"&&h==null;default:return!0}case"script":if(p.async&&typeof p.async!="function"&&typeof p.async!="symbol"&&!p.onLoad&&!p.onError&&p.src&&typeof p.src=="string")return!0}return!1}function FI(h){return!(h.type==="stylesheet"&&(h.state.loading&3)===0)}var iv=null;function rX(){}function nX(h,p,m){if(iv===null)throw Error(n(475));var _=iv;if(p.type==="stylesheet"&&(typeof m.media!="string"||matchMedia(m.media).matches!==!1)&&(p.state.loading&4)===0){if(p.instance===null){var A=hf(m.href),N=h.querySelector(nv(A));if(N){h=N._p,h!==null&&typeof h=="object"&&typeof h.then=="function"&&(_.count++,_=ey.bind(_),h.then(_,_)),p.state.loading|=4,p.instance=N,Rr(N);return}N=h.ownerDocument||h,m=jI(m),(A=va.get(A))&&bS(m,A),N=N.createElement("link"),Rr(N);var j=N;j._p=new Promise(function(U,q){j.onload=U,j.onerror=q}),Yr(N,"link",m),p.instance=N}_.stylesheets===null&&(_.stylesheets=new Map),_.stylesheets.set(p,h),(h=p.state.preload)&&(p.state.loading&3)===0&&(_.count++,p=ey.bind(_),h.addEventListener("load",p),h.addEventListener("error",p))}}function aX(){if(iv===null)throw Error(n(475));var h=iv;return h.stylesheets&&h.count===0&&SS(h,h.stylesheets),0<h.count?function(p){var m=setTimeout(function(){if(h.stylesheets&&SS(h,h.stylesheets),h.unsuspend){var _=h.unsuspend;h.unsuspend=null,_()}},6e4);return h.unsuspend=p,function(){h.unsuspend=null,clearTimeout(m)}}:null}function ey(){if(this.count--,this.count===0){if(this.stylesheets)SS(this,this.stylesheets);else if(this.unsuspend){var h=this.unsuspend;this.unsuspend=null,h()}}}var ty=null;function SS(h,p){h.stylesheets=null,h.unsuspend!==null&&(h.count++,ty=new Map,p.forEach(iX,h),ty=null,ey.call(h))}function iX(h,p){if(!(p.state.loading&4)){var m=ty.get(h);if(m)var _=m.get(null);else{m=new Map,ty.set(h,m);for(var A=h.querySelectorAll("link[data-precedence],style[data-precedence]"),N=0;N<A.length;N++){var j=A[N];(j.nodeName==="LINK"||j.getAttribute("media")!=="not all")&&(m.set(j.dataset.precedence,j),_=j)}_&&m.set(null,_)}A=p.instance,j=A.getAttribute("data-precedence"),N=m.get(j)||_,N===_&&m.set(null,A),m.set(j,A),this.count++,_=ey.bind(this),A.addEventListener("load",_),A.addEventListener("error",_),N?N.parentNode.insertBefore(A,N.nextSibling):(h=h.nodeType===9?h.head:h,h.insertBefore(A,h.firstChild)),p.state.loading|=4}}var ov={$$typeof:T,Provider:null,Consumer:null,_currentValue:H,_currentValue2:H,_threadCount:0};function oX(h,p,m,_,A,N,j,U){this.tag=1,this.containerInfo=h,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=yb(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yb(0),this.hiddenUpdates=yb(null),this.identifierPrefix=_,this.onUncaughtError=A,this.onCaughtError=N,this.onRecoverableError=j,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=U,this.incompleteTransitions=new Map}function UI(h,p,m,_,A,N,j,U,q,ae,fe,pe){return h=new oX(h,p,m,j,U,q,ae,pe),p=1,N===!0&&(p|=24),N=Bn(3,null,null,p),h.current=N,N.stateNode=h,p=n_(),p.refCount++,h.pooledCache=p,p.refCount++,N.memoizedState={element:_,isDehydrated:m,cache:p},s_(N),h}function YI(h){return h?(h=Fc,h):Fc}function WI(h,p,m,_,A,N){A=YI(A),_.context===null?_.context=A:_.pendingContext=A,_=ls(p),_.payload={element:m},N=N===void 0?null:N,N!==null&&(_.callback=N),m=us(h,_,p),m!==null&&(Fn(m,h,p),Pd(m,h,p))}function XI(h,p){if(h=h.memoizedState,h!==null&&h.dehydrated!==null){var m=h.retryLane;h.retryLane=m!==0&&m<p?m:p}}function wS(h,p){XI(h,p),(h=h.alternate)&&XI(h,p)}function qI(h){if(h.tag===13){var p=Hc(h,67108864);p!==null&&Fn(p,h,67108864),wS(h,67108864)}}var ry=!0;function sX(h,p,m,_){var A=B.T;B.T=null;var N=Y.p;try{Y.p=2,TS(h,p,m,_)}finally{Y.p=N,B.T=A}}function lX(h,p,m,_){var A=B.T;B.T=null;var N=Y.p;try{Y.p=8,TS(h,p,m,_)}finally{Y.p=N,B.T=A}}function TS(h,p,m,_){if(ry){var A=CS(_);if(A===null)fS(h,p,_,ny,m),$I(h,_);else if(cX(A,h,p,m,_))_.stopPropagation();else if($I(h,_),p&4&&-1<uX.indexOf(h)){for(;A!==null;){var N=Nc(A);if(N!==null)switch(N.tag){case 3:if(N=N.stateNode,N.current.memoizedState.isDehydrated){var j=Rl(N.pendingLanes);if(j!==0){var U=N;for(U.pendingLanes|=2,U.entangledLanes|=2;j;){var q=1<<31-Pn(j);U.entanglements[1]|=q,j&=~q}di(N),(It&6)===0&&(Vm=Tt()+500,Jd(0))}}break;case 13:U=Hc(N,2),U!==null&&Fn(U,N,2),Hm(),wS(N,2)}if(N=CS(_),N===null&&fS(h,p,_,ny,m),N===A)break;A=N}A!==null&&_.stopPropagation()}else fS(h,p,_,null,m)}}function CS(h){return h=Nb(h),AS(h)}var ny=null;function AS(h){if(ny=null,h=Lc(h),h!==null){var p=i(h);if(p===null)h=null;else{var m=p.tag;if(m===13){if(h=o(p),h!==null)return h;h=null}else if(m===3){if(p.stateNode.current.memoizedState.isDehydrated)return p.tag===3?p.stateNode.containerInfo:null;h=null}else p!==h&&(h=null)}}return ny=h,null}function ZI(h){switch(h){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Hr()){case Jt:return 2;case li:return 8;case Ba:case dd:return 32;case fN:return 268435456;default:return 32}default:return 32}}var MS=!1,Ss=null,ws=null,Ts=null,sv=new Map,lv=new Map,Cs=[],uX="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function $I(h,p){switch(h){case"focusin":case"focusout":Ss=null;break;case"dragenter":case"dragleave":ws=null;break;case"mouseover":case"mouseout":Ts=null;break;case"pointerover":case"pointerout":sv.delete(p.pointerId);break;case"gotpointercapture":case"lostpointercapture":lv.delete(p.pointerId)}}function uv(h,p,m,_,A,N){return h===null||h.nativeEvent!==N?(h={blockedOn:p,domEventName:m,eventSystemFlags:_,nativeEvent:N,targetContainers:[A]},p!==null&&(p=Nc(p),p!==null&&qI(p)),h):(h.eventSystemFlags|=_,p=h.targetContainers,A!==null&&p.indexOf(A)===-1&&p.push(A),h)}function cX(h,p,m,_,A){switch(p){case"focusin":return Ss=uv(Ss,h,p,m,_,A),!0;case"dragenter":return ws=uv(ws,h,p,m,_,A),!0;case"mouseover":return Ts=uv(Ts,h,p,m,_,A),!0;case"pointerover":var N=A.pointerId;return sv.set(N,uv(sv.get(N)||null,h,p,m,_,A)),!0;case"gotpointercapture":return N=A.pointerId,lv.set(N,uv(lv.get(N)||null,h,p,m,_,A)),!0}return!1}function KI(h){var p=Lc(h.target);if(p!==null){var m=i(p);if(m!==null){if(p=m.tag,p===13){if(p=o(m),p!==null){h.blockedOn=p,nY(h.priority,function(){if(m.tag===13){var _=Hn();_=xb(_);var A=Hc(m,_);A!==null&&Fn(A,m,_),wS(m,_)}});return}}else if(p===3&&m.stateNode.current.memoizedState.isDehydrated){h.blockedOn=m.tag===3?m.stateNode.containerInfo:null;return}}}h.blockedOn=null}function ay(h){if(h.blockedOn!==null)return!1;for(var p=h.targetContainers;0<p.length;){var m=CS(h.nativeEvent);if(m===null){m=h.nativeEvent;var _=new m.constructor(m.type,m);Lb=_,m.target.dispatchEvent(_),Lb=null}else return p=Nc(m),p!==null&&qI(p),h.blockedOn=m,!1;p.shift()}return!0}function QI(h,p,m){ay(h)&&m.delete(p)}function fX(){MS=!1,Ss!==null&&ay(Ss)&&(Ss=null),ws!==null&&ay(ws)&&(ws=null),Ts!==null&&ay(Ts)&&(Ts=null),sv.forEach(QI),lv.forEach(QI)}function iy(h,p){h.blockedOn===p&&(h.blockedOn=null,MS||(MS=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,fX)))}var oy=null;function JI(h){oy!==h&&(oy=h,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){oy===h&&(oy=null);for(var p=0;p<h.length;p+=3){var m=h[p],_=h[p+1],A=h[p+2];if(typeof _!="function"){if(AS(_||m)===null)continue;break}var N=Nc(m);N!==null&&(h.splice(p,3),p-=3,A_(N,{pending:!0,data:A,method:m.method,action:_},_,A))}}))}function cv(h){function p(q){return iy(q,h)}Ss!==null&&iy(Ss,h),ws!==null&&iy(ws,h),Ts!==null&&iy(Ts,h),sv.forEach(p),lv.forEach(p);for(var m=0;m<Cs.length;m++){var _=Cs[m];_.blockedOn===h&&(_.blockedOn=null)}for(;0<Cs.length&&(m=Cs[0],m.blockedOn===null);)KI(m),m.blockedOn===null&&Cs.shift();if(m=(h.ownerDocument||h).$$reactFormReplay,m!=null)for(_=0;_<m.length;_+=3){var A=m[_],N=m[_+1],j=A[bn]||null;if(typeof N=="function")j||JI(m);else if(j){var U=null;if(N&&N.hasAttribute("formAction")){if(A=N,j=N[bn]||null)U=j.formAction;else if(AS(A)!==null)continue}else U=j.action;typeof U=="function"?m[_+1]=U:(m.splice(_,3),_-=3),JI(m)}}}function DS(h){this._internalRoot=h}sy.prototype.render=DS.prototype.render=function(h){var p=this._internalRoot;if(p===null)throw Error(n(409));var m=p.current,_=Hn();WI(m,_,h,p,null,null)},sy.prototype.unmount=DS.prototype.unmount=function(){var h=this._internalRoot;if(h!==null){this._internalRoot=null;var p=h.containerInfo;WI(h.current,2,null,h,null,null),Hm(),p[Dc]=null}};function sy(h){this._internalRoot=h}sy.prototype.unstable_scheduleHydration=function(h){if(h){var p=gN();h={blockedOn:null,target:h,priority:p};for(var m=0;m<Cs.length&&p!==0&&p<Cs[m].priority;m++);Cs.splice(m,0,h),m===0&&KI(h)}};var ek=e.version;if(ek!=="19.1.0")throw Error(n(527,ek,"19.1.0"));Y.findDOMNode=function(h){var p=h._reactInternals;if(p===void 0)throw typeof h.render=="function"?Error(n(188)):(h=Object.keys(h).join(","),Error(n(268,h)));return h=l(p),h=h!==null?u(h):null,h=h===null?null:h.stateNode,h};var hX={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ly=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ly.isDisabled&&ly.supportsFiber)try{vd=ly.inject(hX),On=ly}catch{}}return hv.createRoot=function(h,p){if(!a(h))throw Error(n(299));var m=!1,_="",A=gE,N=mE,j=yE,U=null;return p!=null&&(p.unstable_strictMode===!0&&(m=!0),p.identifierPrefix!==void 0&&(_=p.identifierPrefix),p.onUncaughtError!==void 0&&(A=p.onUncaughtError),p.onCaughtError!==void 0&&(N=p.onCaughtError),p.onRecoverableError!==void 0&&(j=p.onRecoverableError),p.unstable_transitionCallbacks!==void 0&&(U=p.unstable_transitionCallbacks)),p=UI(h,1,!1,null,null,m,_,A,N,j,U,null),h[Dc]=p.current,cS(h),new DS(p)},hv.hydrateRoot=function(h,p,m){if(!a(h))throw Error(n(299));var _=!1,A="",N=gE,j=mE,U=yE,q=null,ae=null;return m!=null&&(m.unstable_strictMode===!0&&(_=!0),m.identifierPrefix!==void 0&&(A=m.identifierPrefix),m.onUncaughtError!==void 0&&(N=m.onUncaughtError),m.onCaughtError!==void 0&&(j=m.onCaughtError),m.onRecoverableError!==void 0&&(U=m.onRecoverableError),m.unstable_transitionCallbacks!==void 0&&(q=m.unstable_transitionCallbacks),m.formState!==void 0&&(ae=m.formState)),p=UI(h,1,!0,p,m??null,_,A,N,j,U,q,ae),p.context=YI(null),m=p.current,_=Hn(),_=xb(_),A=ls(_),A.callback=null,us(m,A,_),m=_,p.current.lanes=m,gd(p,m),di(p),h[Dc]=p.current,cS(h),new sy(p)},hv.version="19.1.0",hv}var Sk;function iq(){if(Sk)return ES.exports;Sk=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(e){console.error(e)}}return r(),ES.exports=aq(),ES.exports}var oq=iq();function mV(r){var e,t,n="";if(typeof r=="string"||typeof r=="number")n+=r;else if(typeof r=="object")if(Array.isArray(r)){var a=r.length;for(e=0;e<a;e++)r[e]&&(t=mV(r[e]))&&(n&&(n+=" "),n+=t)}else for(t in r)r[t]&&(n&&(n+=" "),n+=t);return n}function sq(){for(var r,e,t=0,n="",a=arguments.length;t<a;t++)(r=arguments[t])&&(e=mV(r))&&(n&&(n+=" "),n+=e);return n}const sM="-",lq=r=>{const e=cq(r),{conflictingClassGroups:t,conflictingClassGroupModifiers:n}=r;return{getClassGroupId:o=>{const s=o.split(sM);return s[0]===""&&s.length!==1&&s.shift(),yV(s,e)||uq(o)},getConflictingClassGroupIds:(o,s)=>{const l=t[o]||[];return s&&n[o]?[...l,...n[o]]:l}}},yV=(r,e)=>{var o;if(r.length===0)return e.classGroupId;const t=r[0],n=e.nextPart.get(t),a=n?yV(r.slice(1),n):void 0;if(a)return a;if(e.validators.length===0)return;const i=r.join(sM);return(o=e.validators.find(({validator:s})=>s(i)))==null?void 0:o.classGroupId},wk=/^\[(.+)\]$/,uq=r=>{if(wk.test(r)){const e=wk.exec(r)[1],t=e==null?void 0:e.substring(0,e.indexOf(":"));if(t)return"arbitrary.."+t}},cq=r=>{const{theme:e,prefix:t}=r,n={nextPart:new Map,validators:[]};return hq(Object.entries(r.classGroups),t).forEach(([i,o])=>{k2(o,n,i,e)}),n},k2=(r,e,t,n)=>{r.forEach(a=>{if(typeof a=="string"){const i=a===""?e:Tk(e,a);i.classGroupId=t;return}if(typeof a=="function"){if(fq(a)){k2(a(n),e,t,n);return}e.validators.push({validator:a,classGroupId:t});return}Object.entries(a).forEach(([i,o])=>{k2(o,Tk(e,i),t,n)})})},Tk=(r,e)=>{let t=r;return e.split(sM).forEach(n=>{t.nextPart.has(n)||t.nextPart.set(n,{nextPart:new Map,validators:[]}),t=t.nextPart.get(n)}),t},fq=r=>r.isThemeGetter,hq=(r,e)=>e?r.map(([t,n])=>{const a=n.map(i=>typeof i=="string"?e+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,s])=>[e+o,s])):i);return[t,a]}):r,dq=r=>{if(r<1)return{get:()=>{},set:()=>{}};let e=0,t=new Map,n=new Map;const a=(i,o)=>{t.set(i,o),e++,e>r&&(e=0,n=t,t=new Map)};return{get(i){let o=t.get(i);if(o!==void 0)return o;if((o=n.get(i))!==void 0)return a(i,o),o},set(i,o){t.has(i)?t.set(i,o):a(i,o)}}},xV="!",vq=r=>{const{separator:e,experimentalParseClassName:t}=r,n=e.length===1,a=e[0],i=e.length,o=s=>{const l=[];let u=0,c=0,f;for(let y=0;y<s.length;y++){let b=s[y];if(u===0){if(b===a&&(n||s.slice(y,y+i)===e)){l.push(s.slice(c,y)),c=y+i;continue}if(b==="/"){f=y;continue}}b==="["?u++:b==="]"&&u--}const d=l.length===0?s:s.substring(c),v=d.startsWith(xV),g=v?d.substring(1):d,x=f&&f>c?f-c:void 0;return{modifiers:l,hasImportantModifier:v,baseClassName:g,maybePostfixModifierPosition:x}};return t?s=>t({className:s,parseClassName:o}):o},pq=r=>{if(r.length<=1)return r;const e=[];let t=[];return r.forEach(n=>{n[0]==="["?(e.push(...t.sort(),n),t=[]):t.push(n)}),e.push(...t.sort()),e},gq=r=>({cache:dq(r.cacheSize),parseClassName:vq(r),...lq(r)}),mq=/\s+/,yq=(r,e)=>{const{parseClassName:t,getClassGroupId:n,getConflictingClassGroupIds:a}=e,i=[],o=r.trim().split(mq);let s="";for(let l=o.length-1;l>=0;l-=1){const u=o[l],{modifiers:c,hasImportantModifier:f,baseClassName:d,maybePostfixModifierPosition:v}=t(u);let g=!!v,x=n(g?d.substring(0,v):d);if(!x){if(!g){s=u+(s.length>0?" "+s:s);continue}if(x=n(d),!x){s=u+(s.length>0?" "+s:s);continue}g=!1}const y=pq(c).join(":"),b=f?y+xV:y,S=b+x;if(i.includes(S))continue;i.push(S);const T=a(x,g);for(let C=0;C<T.length;++C){const M=T[C];i.push(b+M)}s=u+(s.length>0?" "+s:s)}return s};function xq(){let r=0,e,t,n="";for(;r<arguments.length;)(e=arguments[r++])&&(t=bV(e))&&(n&&(n+=" "),n+=t);return n}const bV=r=>{if(typeof r=="string")return r;let e,t="";for(let n=0;n<r.length;n++)r[n]&&(e=bV(r[n]))&&(t&&(t+=" "),t+=e);return t};function bq(r,...e){let t,n,a,i=o;function o(l){const u=e.reduce((c,f)=>f(c),r());return t=gq(u),n=t.cache.get,a=t.cache.set,i=s,s(l)}function s(l){const u=n(l);if(u)return u;const c=yq(l,t);return a(l,c),c}return function(){return i(xq.apply(null,arguments))}}const Wt=r=>{const e=t=>t[r]||[];return e.isThemeGetter=!0,e},_V=/^\[(?:([a-z-]+):)?(.+)\]$/i,_q=/^\d+\/\d+$/,Sq=new Set(["px","full","screen"]),wq=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Tq=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Cq=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Aq=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Mq=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,po=r=>th(r)||Sq.has(r)||_q.test(r),Ms=r=>Fh(r,"length",Oq),th=r=>!!r&&!Number.isNaN(Number(r)),PS=r=>Fh(r,"number",th),dv=r=>!!r&&Number.isInteger(Number(r)),Dq=r=>r.endsWith("%")&&th(r.slice(0,-1)),ut=r=>_V.test(r),Ds=r=>wq.test(r),Lq=new Set(["length","size","percentage"]),Nq=r=>Fh(r,Lq,SV),Rq=r=>Fh(r,"position",SV),Eq=new Set(["image","url"]),Iq=r=>Fh(r,Eq,zq),kq=r=>Fh(r,"",Pq),vv=()=>!0,Fh=(r,e,t)=>{const n=_V.exec(r);return n?n[1]?typeof e=="string"?n[1]===e:e.has(n[1]):t(n[2]):!1},Oq=r=>Tq.test(r)&&!Cq.test(r),SV=()=>!1,Pq=r=>Aq.test(r),zq=r=>Mq.test(r),Bq=()=>{const r=Wt("colors"),e=Wt("spacing"),t=Wt("blur"),n=Wt("brightness"),a=Wt("borderColor"),i=Wt("borderRadius"),o=Wt("borderSpacing"),s=Wt("borderWidth"),l=Wt("contrast"),u=Wt("grayscale"),c=Wt("hueRotate"),f=Wt("invert"),d=Wt("gap"),v=Wt("gradientColorStops"),g=Wt("gradientColorStopPositions"),x=Wt("inset"),y=Wt("margin"),b=Wt("opacity"),S=Wt("padding"),T=Wt("saturate"),C=Wt("scale"),M=Wt("sepia"),D=Wt("skew"),L=Wt("space"),E=Wt("translate"),R=()=>["auto","contain","none"],I=()=>["auto","hidden","clip","visible","scroll"],k=()=>["auto",ut,e],z=()=>[ut,e],O=()=>["",po,Ms],G=()=>["auto",th,ut],F=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],B=()=>["solid","dashed","dotted","double","none"],Y=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],H=()=>["start","end","center","between","around","evenly","stretch"],X=()=>["","0",ut],V=()=>["auto","avoid","all","avoid-page","page","left","right","column"],W=()=>[th,ut];return{cacheSize:500,separator:":",theme:{colors:[vv],spacing:[po,Ms],blur:["none","",Ds,ut],brightness:W(),borderColor:[r],borderRadius:["none","","full",Ds,ut],borderSpacing:z(),borderWidth:O(),contrast:W(),grayscale:X(),hueRotate:W(),invert:X(),gap:z(),gradientColorStops:[r],gradientColorStopPositions:[Dq,Ms],inset:k(),margin:k(),opacity:W(),padding:z(),saturate:W(),scale:W(),sepia:X(),skew:W(),space:z(),translate:z()},classGroups:{aspect:[{aspect:["auto","square","video",ut]}],container:["container"],columns:[{columns:[Ds]}],"break-after":[{"break-after":V()}],"break-before":[{"break-before":V()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...F(),ut]}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[x]}],"inset-x":[{"inset-x":[x]}],"inset-y":[{"inset-y":[x]}],start:[{start:[x]}],end:[{end:[x]}],top:[{top:[x]}],right:[{right:[x]}],bottom:[{bottom:[x]}],left:[{left:[x]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",dv,ut]}],basis:[{basis:k()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ut]}],grow:[{grow:X()}],shrink:[{shrink:X()}],order:[{order:["first","last","none",dv,ut]}],"grid-cols":[{"grid-cols":[vv]}],"col-start-end":[{col:["auto",{span:["full",dv,ut]},ut]}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":[vv]}],"row-start-end":[{row:["auto",{span:[dv,ut]},ut]}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ut]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ut]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...H()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...H(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...H(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[S]}],px:[{px:[S]}],py:[{py:[S]}],ps:[{ps:[S]}],pe:[{pe:[S]}],pt:[{pt:[S]}],pr:[{pr:[S]}],pb:[{pb:[S]}],pl:[{pl:[S]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[L]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[L]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ut,e]}],"min-w":[{"min-w":[ut,e,"min","max","fit"]}],"max-w":[{"max-w":[ut,e,"none","full","min","max","fit","prose",{screen:[Ds]},Ds]}],h:[{h:[ut,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ut,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ut,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ut,e,"auto","min","max","fit"]}],"font-size":[{text:["base",Ds,Ms]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",PS]}],"font-family":[{font:[vv]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ut]}],"line-clamp":[{"line-clamp":["none",th,PS]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",po,ut]}],"list-image":[{"list-image":["none",ut]}],"list-style-type":[{list:["none","disc","decimal",ut]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[r]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[r]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",po,Ms]}],"underline-offset":[{"underline-offset":["auto",po,ut]}],"text-decoration-color":[{decoration:[r]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ut]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ut]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...F(),Rq]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Nq]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Iq]}],"bg-color":[{bg:[r]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:[...B(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:B()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...B()]}],"outline-offset":[{"outline-offset":[po,ut]}],"outline-w":[{outline:[po,Ms]}],"outline-color":[{outline:[r]}],"ring-w":[{ring:O()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[r]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[po,Ms]}],"ring-offset-color":[{"ring-offset":[r]}],shadow:[{shadow:["","inner","none",Ds,kq]}],"shadow-color":[{shadow:[vv]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":[...Y(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Y()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Ds,ut]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[T]}],sepia:[{sepia:[M]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[T]}],"backdrop-sepia":[{"backdrop-sepia":[M]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ut]}],duration:[{duration:W()}],ease:[{ease:["linear","in","out","in-out",ut]}],delay:[{delay:W()}],animate:[{animate:["none","spin","ping","pulse","bounce",ut]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[C]}],"scale-x":[{"scale-x":[C]}],"scale-y":[{"scale-y":[C]}],rotate:[{rotate:[dv,ut]}],"translate-x":[{"translate-x":[E]}],"translate-y":[{"translate-y":[E]}],"skew-x":[{"skew-x":[D]}],"skew-y":[{"skew-y":[D]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ut]}],accent:[{accent:["auto",r]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ut]}],"caret-color":[{caret:[r]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":z()}],"scroll-mx":[{"scroll-mx":z()}],"scroll-my":[{"scroll-my":z()}],"scroll-ms":[{"scroll-ms":z()}],"scroll-me":[{"scroll-me":z()}],"scroll-mt":[{"scroll-mt":z()}],"scroll-mr":[{"scroll-mr":z()}],"scroll-mb":[{"scroll-mb":z()}],"scroll-ml":[{"scroll-ml":z()}],"scroll-p":[{"scroll-p":z()}],"scroll-px":[{"scroll-px":z()}],"scroll-py":[{"scroll-py":z()}],"scroll-ps":[{"scroll-ps":z()}],"scroll-pe":[{"scroll-pe":z()}],"scroll-pt":[{"scroll-pt":z()}],"scroll-pr":[{"scroll-pr":z()}],"scroll-pb":[{"scroll-pb":z()}],"scroll-pl":[{"scroll-pl":z()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ut]}],fill:[{fill:[r,"none"]}],"stroke-w":[{stroke:[po,Ms,PS]}],stroke:[{stroke:[r,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},jq=bq(Bq);function Ye(...r){return jq(sq(r))}function Do(r,e,{checkForDefaultPrevented:t=!0}={}){return function(a){if(r==null||r(a),t===!1||!a.defaultPrevented)return e==null?void 0:e(a)}}function Ck(r,e){if(typeof r=="function")return r(e);r!=null&&(r.current=e)}function wV(...r){return e=>{let t=!1;const n=r.map(a=>{const i=Ck(a,e);return!t&&typeof i=="function"&&(t=!0),i});if(t)return()=>{for(let a=0;a<n.length;a++){const i=n[a];typeof i=="function"?i():Ck(r[a],null)}}}}function yc(...r){return Z.useCallback(wV(...r),r)}function TV(r,e=[]){let t=[];function n(i,o){const s=Z.createContext(o),l=t.length;t=[...t,o];const u=f=>{var b;const{scope:d,children:v,...g}=f,x=((b=d==null?void 0:d[r])==null?void 0:b[l])||s,y=Z.useMemo(()=>g,Object.values(g));return w.jsx(x.Provider,{value:y,children:v})};u.displayName=i+"Provider";function c(f,d){var x;const v=((x=d==null?void 0:d[r])==null?void 0:x[l])||s,g=Z.useContext(v);if(g)return g;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[u,c]}const a=()=>{const i=t.map(o=>Z.createContext(o));return function(s){const l=(s==null?void 0:s[r])||i;return Z.useMemo(()=>({[`__scope${r}`]:{...s,[r]:l}}),[s,l])}};return a.scopeName=r,[n,Vq(a,...e)]}function Vq(...r){const e=r[0];if(r.length===1)return e;const t=()=>{const n=r.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(i){const o=n.reduce((s,{useScope:l,scopeName:u})=>{const f=l(i)[`__scope${u}`];return{...s,...f}},{});return Z.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return t.scopeName=e.scopeName,t}var lM=gV();const Gq=tM(lM);function Hq(r){const e=Fq(r),t=Z.forwardRef((n,a)=>{const{children:i,...o}=n,s=Z.Children.toArray(i),l=s.find(Yq);if(l){const u=l.props.children,c=s.map(f=>f===l?Z.Children.count(u)>1?Z.Children.only(null):Z.isValidElement(u)?u.props.children:null:f);return w.jsx(e,{...o,ref:a,children:Z.isValidElement(u)?Z.cloneElement(u,void 0,c):null})}return w.jsx(e,{...o,ref:a,children:i})});return t.displayName=`${r}.Slot`,t}function Fq(r){const e=Z.forwardRef((t,n)=>{const{children:a,...i}=t;if(Z.isValidElement(a)){const o=Xq(a),s=Wq(i,a.props);return a.type!==Z.Fragment&&(s.ref=n?wV(n,o):o),Z.cloneElement(a,s)}return Z.Children.count(a)>1?Z.Children.only(null):null});return e.displayName=`${r}.SlotClone`,e}var CV=Symbol("radix.slottable");function Uq(r){const e=({children:t})=>w.jsx(w.Fragment,{children:t});return e.displayName=`${r}.Slottable`,e.__radixId=CV,e}function Yq(r){return Z.isValidElement(r)&&typeof r.type=="function"&&"__radixId"in r.type&&r.type.__radixId===CV}function Wq(r,e){const t={...e};for(const n in e){const a=r[n],i=e[n];/^on[A-Z]/.test(n)?a&&i?t[n]=(...s)=>{const l=i(...s);return a(...s),l}:a&&(t[n]=a):n==="style"?t[n]={...a,...i}:n==="className"&&(t[n]=[a,i].filter(Boolean).join(" "))}return{...r,...t}}function Xq(r){var n,a;let e=(n=Object.getOwnPropertyDescriptor(r.props,"ref"))==null?void 0:n.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?r.ref:(e=(a=Object.getOwnPropertyDescriptor(r,"ref"))==null?void 0:a.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?r.props.ref:r.props.ref||r.ref)}var qq=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Tl=qq.reduce((r,e)=>{const t=Hq(`Primitive.${e}`),n=Z.forwardRef((a,i)=>{const{asChild:o,...s}=a,l=o?t:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(l,{...s,ref:i})});return n.displayName=`Primitive.${e}`,{...r,[e]:n}},{});function Zq(r,e){r&&lM.flushSync(()=>r.dispatchEvent(e))}function T1(r){const e=Z.useRef(r);return Z.useEffect(()=>{e.current=r}),Z.useMemo(()=>(...t)=>{var n;return(n=e.current)==null?void 0:n.call(e,...t)},[])}function $q(r,e=globalThis==null?void 0:globalThis.document){const t=T1(r);Z.useEffect(()=>{const n=a=>{a.key==="Escape"&&t(a)};return e.addEventListener("keydown",n,{capture:!0}),()=>e.removeEventListener("keydown",n,{capture:!0})},[t,e])}var Kq="DismissableLayer",O2="dismissableLayer.update",Qq="dismissableLayer.pointerDownOutside",Jq="dismissableLayer.focusOutside",Ak,AV=Z.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),MV=Z.forwardRef((r,e)=>{const{disableOutsidePointerEvents:t=!1,onEscapeKeyDown:n,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:o,onDismiss:s,...l}=r,u=Z.useContext(AV),[c,f]=Z.useState(null),d=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=Z.useState({}),g=yc(e,L=>f(L)),x=Array.from(u.layers),[y]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),b=x.indexOf(y),S=c?x.indexOf(c):-1,T=u.layersWithOutsidePointerEventsDisabled.size>0,C=S>=b,M=rZ(L=>{const E=L.target,R=[...u.branches].some(I=>I.contains(E));!C||R||(a==null||a(L),o==null||o(L),L.defaultPrevented||s==null||s())},d),D=nZ(L=>{const E=L.target;[...u.branches].some(I=>I.contains(E))||(i==null||i(L),o==null||o(L),L.defaultPrevented||s==null||s())},d);return $q(L=>{S===u.layers.size-1&&(n==null||n(L),!L.defaultPrevented&&s&&(L.preventDefault(),s()))},d),Z.useEffect(()=>{if(c)return t&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Ak=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),Mk(),()=>{t&&u.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=Ak)}},[c,d,t,u]),Z.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),Mk())},[c,u]),Z.useEffect(()=>{const L=()=>v({});return document.addEventListener(O2,L),()=>document.removeEventListener(O2,L)},[]),w.jsx(Tl.div,{...l,ref:g,style:{pointerEvents:T?C?"auto":"none":void 0,...r.style},onFocusCapture:Do(r.onFocusCapture,D.onFocusCapture),onBlurCapture:Do(r.onBlurCapture,D.onBlurCapture),onPointerDownCapture:Do(r.onPointerDownCapture,M.onPointerDownCapture)})});MV.displayName=Kq;var eZ="DismissableLayerBranch",tZ=Z.forwardRef((r,e)=>{const t=Z.useContext(AV),n=Z.useRef(null),a=yc(e,n);return Z.useEffect(()=>{const i=n.current;if(i)return t.branches.add(i),()=>{t.branches.delete(i)}},[t.branches]),w.jsx(Tl.div,{...r,ref:a})});tZ.displayName=eZ;function rZ(r,e=globalThis==null?void 0:globalThis.document){const t=T1(r),n=Z.useRef(!1),a=Z.useRef(()=>{});return Z.useEffect(()=>{const i=s=>{if(s.target&&!n.current){let l=function(){DV(Qq,t,u,{discrete:!0})};const u={originalEvent:s};s.pointerType==="touch"?(e.removeEventListener("click",a.current),a.current=l,e.addEventListener("click",a.current,{once:!0})):l()}else e.removeEventListener("click",a.current);n.current=!1},o=window.setTimeout(()=>{e.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),e.removeEventListener("pointerdown",i),e.removeEventListener("click",a.current)}},[e,t]),{onPointerDownCapture:()=>n.current=!0}}function nZ(r,e=globalThis==null?void 0:globalThis.document){const t=T1(r),n=Z.useRef(!1);return Z.useEffect(()=>{const a=i=>{i.target&&!n.current&&DV(Jq,t,{originalEvent:i},{discrete:!1})};return e.addEventListener("focusin",a),()=>e.removeEventListener("focusin",a)},[e,t]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Mk(){const r=new CustomEvent(O2);document.dispatchEvent(r)}function DV(r,e,t,{discrete:n}){const a=t.originalEvent.target,i=new CustomEvent(r,{bubbles:!1,cancelable:!0,detail:t});e&&a.addEventListener(r,e,{once:!0}),n?Zq(a,i):a.dispatchEvent(i)}var pl=globalThis!=null&&globalThis.document?Z.useLayoutEffect:()=>{},aZ=hV[" useId ".trim().toString()]||(()=>{}),iZ=0;function oZ(r){const[e,t]=Z.useState(aZ());return pl(()=>{t(n=>n??String(iZ++))},[r]),e?`radix-${e}`:""}const sZ=["top","right","bottom","left"],gl=Math.min,Zn=Math.max,ox=Math.round,fy=Math.floor,Bi=r=>({x:r,y:r}),lZ={left:"right",right:"left",bottom:"top",top:"bottom"};function P2(r,e,t){return Zn(r,gl(e,t))}function Fo(r,e){return typeof r=="function"?r(e):r}function Uo(r){return r.split("-")[0]}function Uh(r){return r.split("-")[1]}function uM(r){return r==="x"?"y":"x"}function cM(r){return r==="y"?"height":"width"}function Ei(r){const e=r[0];return e==="t"||e==="b"?"y":"x"}function fM(r){return uM(Ei(r))}function uZ(r,e,t){t===void 0&&(t=!1);const n=Uh(r),a=fM(r),i=cM(a);let o=a==="x"?n===(t?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(o=sx(o)),[o,sx(o)]}function cZ(r){const e=sx(r);return[z2(r),e,z2(e)]}function z2(r){return r.includes("start")?r.replace("start","end"):r.replace("end","start")}const Dk=["left","right"],Lk=["right","left"],fZ=["top","bottom"],hZ=["bottom","top"];function dZ(r,e,t){switch(r){case"top":case"bottom":return t?e?Lk:Dk:e?Dk:Lk;case"left":case"right":return e?fZ:hZ;default:return[]}}function vZ(r,e,t,n){const a=Uh(r);let i=dZ(Uo(r),t==="start",n);return a&&(i=i.map(o=>o+"-"+a),e&&(i=i.concat(i.map(z2)))),i}function sx(r){const e=Uo(r);return lZ[e]+r.slice(e.length)}function pZ(r){return{top:0,right:0,bottom:0,left:0,...r}}function LV(r){return typeof r!="number"?pZ(r):{top:r,right:r,bottom:r,left:r}}function lx(r){const{x:e,y:t,width:n,height:a}=r;return{width:n,height:a,top:t,left:e,right:e+n,bottom:t+a,x:e,y:t}}function Nk(r,e,t){let{reference:n,floating:a}=r;const i=Ei(e),o=fM(e),s=cM(o),l=Uo(e),u=i==="y",c=n.x+n.width/2-a.width/2,f=n.y+n.height/2-a.height/2,d=n[s]/2-a[s]/2;let v;switch(l){case"top":v={x:c,y:n.y-a.height};break;case"bottom":v={x:c,y:n.y+n.height};break;case"right":v={x:n.x+n.width,y:f};break;case"left":v={x:n.x-a.width,y:f};break;default:v={x:n.x,y:n.y}}switch(Uh(e)){case"start":v[o]-=d*(t&&u?-1:1);break;case"end":v[o]+=d*(t&&u?-1:1);break}return v}async function gZ(r,e){var t;e===void 0&&(e={});const{x:n,y:a,platform:i,rects:o,elements:s,strategy:l}=r,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:v=0}=Fo(e,r),g=LV(v),y=s[d?f==="floating"?"reference":"floating":f],b=lx(await i.getClippingRect({element:(t=await(i.isElement==null?void 0:i.isElement(y)))==null||t?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),S=f==="floating"?{x:n,y:a,width:o.floating.width,height:o.floating.height}:o.reference,T=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),C=await(i.isElement==null?void 0:i.isElement(T))?await(i.getScale==null?void 0:i.getScale(T))||{x:1,y:1}:{x:1,y:1},M=lx(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:S,offsetParent:T,strategy:l}):S);return{top:(b.top-M.top+g.top)/C.y,bottom:(M.bottom-b.bottom+g.bottom)/C.y,left:(b.left-M.left+g.left)/C.x,right:(M.right-b.right+g.right)/C.x}}const mZ=50,yZ=async(r,e,t)=>{const{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:o}=t,s=o.detectOverflow?o:{...o,detectOverflow:gZ},l=await(o.isRTL==null?void 0:o.isRTL(e));let u=await o.getElementRects({reference:r,floating:e,strategy:a}),{x:c,y:f}=Nk(u,n,l),d=n,v=0;const g={};for(let x=0;x<i.length;x++){const y=i[x];if(!y)continue;const{name:b,fn:S}=y,{x:T,y:C,data:M,reset:D}=await S({x:c,y:f,initialPlacement:n,placement:d,strategy:a,middlewareData:g,rects:u,platform:s,elements:{reference:r,floating:e}});c=T??c,f=C??f,g[b]={...g[b],...M},D&&v<mZ&&(v++,typeof D=="object"&&(D.placement&&(d=D.placement),D.rects&&(u=D.rects===!0?await o.getElementRects({reference:r,floating:e,strategy:a}):D.rects),{x:c,y:f}=Nk(u,d,l)),x=-1)}return{x:c,y:f,placement:d,strategy:a,middlewareData:g}},xZ=r=>({name:"arrow",options:r,async fn(e){const{x:t,y:n,placement:a,rects:i,platform:o,elements:s,middlewareData:l}=e,{element:u,padding:c=0}=Fo(r,e)||{};if(u==null)return{};const f=LV(c),d={x:t,y:n},v=fM(a),g=cM(v),x=await o.getDimensions(u),y=v==="y",b=y?"top":"left",S=y?"bottom":"right",T=y?"clientHeight":"clientWidth",C=i.reference[g]+i.reference[v]-d[v]-i.floating[g],M=d[v]-i.reference[v],D=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let L=D?D[T]:0;(!L||!await(o.isElement==null?void 0:o.isElement(D)))&&(L=s.floating[T]||i.floating[g]);const E=C/2-M/2,R=L/2-x[g]/2-1,I=gl(f[b],R),k=gl(f[S],R),z=I,O=L-x[g]-k,G=L/2-x[g]/2+E,F=P2(z,G,O),B=!l.arrow&&Uh(a)!=null&&G!==F&&i.reference[g]/2-(G<z?I:k)-x[g]/2<0,Y=B?G<z?G-z:G-O:0;return{[v]:d[v]+Y,data:{[v]:F,centerOffset:G-F-Y,...B&&{alignmentOffset:Y}},reset:B}}}),bZ=function(r){return r===void 0&&(r={}),{name:"flip",options:r,async fn(e){var t,n;const{placement:a,middlewareData:i,rects:o,initialPlacement:s,platform:l,elements:u}=e,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:x=!0,...y}=Fo(r,e);if((t=i.arrow)!=null&&t.alignmentOffset)return{};const b=Uo(a),S=Ei(s),T=Uo(s)===s,C=await(l.isRTL==null?void 0:l.isRTL(u.floating)),M=d||(T||!x?[sx(s)]:cZ(s)),D=g!=="none";!d&&D&&M.push(...vZ(s,x,g,C));const L=[s,...M],E=await l.detectOverflow(e,y),R=[];let I=((n=i.flip)==null?void 0:n.overflows)||[];if(c&&R.push(E[b]),f){const G=uZ(a,o,C);R.push(E[G[0]],E[G[1]])}if(I=[...I,{placement:a,overflows:R}],!R.every(G=>G<=0)){var k,z;const G=(((k=i.flip)==null?void 0:k.index)||0)+1,F=L[G];if(F&&(!(f==="alignment"?S!==Ei(F):!1)||I.every(H=>Ei(H.placement)===S?H.overflows[0]>0:!0)))return{data:{index:G,overflows:I},reset:{placement:F}};let B=(z=I.filter(Y=>Y.overflows[0]<=0).sort((Y,H)=>Y.overflows[1]-H.overflows[1])[0])==null?void 0:z.placement;if(!B)switch(v){case"bestFit":{var O;const Y=(O=I.filter(H=>{if(D){const X=Ei(H.placement);return X===S||X==="y"}return!0}).map(H=>[H.placement,H.overflows.filter(X=>X>0).reduce((X,V)=>X+V,0)]).sort((H,X)=>H[1]-X[1])[0])==null?void 0:O[0];Y&&(B=Y);break}case"initialPlacement":B=s;break}if(a!==B)return{reset:{placement:B}}}return{}}}};function Rk(r,e){return{top:r.top-e.height,right:r.right-e.width,bottom:r.bottom-e.height,left:r.left-e.width}}function Ek(r){return sZ.some(e=>r[e]>=0)}const _Z=function(r){return r===void 0&&(r={}),{name:"hide",options:r,async fn(e){const{rects:t,platform:n}=e,{strategy:a="referenceHidden",...i}=Fo(r,e);switch(a){case"referenceHidden":{const o=await n.detectOverflow(e,{...i,elementContext:"reference"}),s=Rk(o,t.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Ek(s)}}}case"escaped":{const o=await n.detectOverflow(e,{...i,altBoundary:!0}),s=Rk(o,t.floating);return{data:{escapedOffsets:s,escaped:Ek(s)}}}default:return{}}}}},NV=new Set(["left","top"]);async function SZ(r,e){const{placement:t,platform:n,elements:a}=r,i=await(n.isRTL==null?void 0:n.isRTL(a.floating)),o=Uo(t),s=Uh(t),l=Ei(t)==="y",u=NV.has(o)?-1:1,c=i&&l?-1:1,f=Fo(e,r);let{mainAxis:d,crossAxis:v,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&typeof g=="number"&&(v=s==="end"?g*-1:g),l?{x:v*c,y:d*u}:{x:d*u,y:v*c}}const wZ=function(r){return r===void 0&&(r=0),{name:"offset",options:r,async fn(e){var t,n;const{x:a,y:i,placement:o,middlewareData:s}=e,l=await SZ(e,r);return o===((t=s.offset)==null?void 0:t.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:a+l.x,y:i+l.y,data:{...l,placement:o}}}}},TZ=function(r){return r===void 0&&(r={}),{name:"shift",options:r,async fn(e){const{x:t,y:n,placement:a,platform:i}=e,{mainAxis:o=!0,crossAxis:s=!1,limiter:l={fn:b=>{let{x:S,y:T}=b;return{x:S,y:T}}},...u}=Fo(r,e),c={x:t,y:n},f=await i.detectOverflow(e,u),d=Ei(Uo(a)),v=uM(d);let g=c[v],x=c[d];if(o){const b=v==="y"?"top":"left",S=v==="y"?"bottom":"right",T=g+f[b],C=g-f[S];g=P2(T,g,C)}if(s){const b=d==="y"?"top":"left",S=d==="y"?"bottom":"right",T=x+f[b],C=x-f[S];x=P2(T,x,C)}const y=l.fn({...e,[v]:g,[d]:x});return{...y,data:{x:y.x-t,y:y.y-n,enabled:{[v]:o,[d]:s}}}}}},CZ=function(r){return r===void 0&&(r={}),{options:r,fn(e){const{x:t,y:n,placement:a,rects:i,middlewareData:o}=e,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=Fo(r,e),c={x:t,y:n},f=Ei(a),d=uM(f);let v=c[d],g=c[f];const x=Fo(s,e),y=typeof x=="number"?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(l){const T=d==="y"?"height":"width",C=i.reference[d]-i.floating[T]+y.mainAxis,M=i.reference[d]+i.reference[T]-y.mainAxis;v<C?v=C:v>M&&(v=M)}if(u){var b,S;const T=d==="y"?"width":"height",C=NV.has(Uo(a)),M=i.reference[f]-i.floating[T]+(C&&((b=o.offset)==null?void 0:b[f])||0)+(C?0:y.crossAxis),D=i.reference[f]+i.reference[T]+(C?0:((S=o.offset)==null?void 0:S[f])||0)-(C?y.crossAxis:0);g<M?g=M:g>D&&(g=D)}return{[d]:v,[f]:g}}}},AZ=function(r){return r===void 0&&(r={}),{name:"size",options:r,async fn(e){var t,n;const{placement:a,rects:i,platform:o,elements:s}=e,{apply:l=()=>{},...u}=Fo(r,e),c=await o.detectOverflow(e,u),f=Uo(a),d=Uh(a),v=Ei(a)==="y",{width:g,height:x}=i.floating;let y,b;f==="top"||f==="bottom"?(y=f,b=d===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(b=f,y=d==="end"?"top":"bottom");const S=x-c.top-c.bottom,T=g-c.left-c.right,C=gl(x-c[y],S),M=gl(g-c[b],T),D=!e.middlewareData.shift;let L=C,E=M;if((t=e.middlewareData.shift)!=null&&t.enabled.x&&(E=T),(n=e.middlewareData.shift)!=null&&n.enabled.y&&(L=S),D&&!d){const I=Zn(c.left,0),k=Zn(c.right,0),z=Zn(c.top,0),O=Zn(c.bottom,0);v?E=g-2*(I!==0||k!==0?I+k:Zn(c.left,c.right)):L=x-2*(z!==0||O!==0?z+O:Zn(c.top,c.bottom))}await l({...e,availableWidth:E,availableHeight:L});const R=await o.getDimensions(s.floating);return g!==R.width||x!==R.height?{reset:{rects:!0}}:{}}}};function C1(){return typeof window<"u"}function Yh(r){return RV(r)?(r.nodeName||"").toLowerCase():"#document"}function ra(r){var e;return(r==null||(e=r.ownerDocument)==null?void 0:e.defaultView)||window}function Zi(r){var e;return(e=(RV(r)?r.ownerDocument:r.document)||window.document)==null?void 0:e.documentElement}function RV(r){return C1()?r instanceof Node||r instanceof ra(r).Node:!1}function ti(r){return C1()?r instanceof Element||r instanceof ra(r).Element:!1}function Jo(r){return C1()?r instanceof HTMLElement||r instanceof ra(r).HTMLElement:!1}function Ik(r){return!C1()||typeof ShadowRoot>"u"?!1:r instanceof ShadowRoot||r instanceof ra(r).ShadowRoot}function Ag(r){const{overflow:e,overflowX:t,overflowY:n,display:a}=ri(r);return/auto|scroll|overlay|hidden|clip/.test(e+n+t)&&a!=="inline"&&a!=="contents"}function MZ(r){return/^(table|td|th)$/.test(Yh(r))}function A1(r){try{if(r.matches(":popover-open"))return!0}catch{}try{return r.matches(":modal")}catch{return!1}}const DZ=/transform|translate|scale|rotate|perspective|filter/,LZ=/paint|layout|strict|content/,Zl=r=>!!r&&r!=="none";let zS;function hM(r){const e=ti(r)?ri(r):r;return Zl(e.transform)||Zl(e.translate)||Zl(e.scale)||Zl(e.rotate)||Zl(e.perspective)||!dM()&&(Zl(e.backdropFilter)||Zl(e.filter))||DZ.test(e.willChange||"")||LZ.test(e.contain||"")}function NZ(r){let e=ml(r);for(;Jo(e)&&!wh(e);){if(hM(e))return e;if(A1(e))return null;e=ml(e)}return null}function dM(){return zS==null&&(zS=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),zS}function wh(r){return/^(html|body|#document)$/.test(Yh(r))}function ri(r){return ra(r).getComputedStyle(r)}function M1(r){return ti(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.scrollX,scrollTop:r.scrollY}}function ml(r){if(Yh(r)==="html")return r;const e=r.assignedSlot||r.parentNode||Ik(r)&&r.host||Zi(r);return Ik(e)?e.host:e}function EV(r){const e=ml(r);return wh(e)?r.ownerDocument?r.ownerDocument.body:r.body:Jo(e)&&Ag(e)?e:EV(e)}function Bp(r,e,t){var n;e===void 0&&(e=[]),t===void 0&&(t=!0);const a=EV(r),i=a===((n=r.ownerDocument)==null?void 0:n.body),o=ra(a);if(i){const s=B2(o);return e.concat(o,o.visualViewport||[],Ag(a)?a:[],s&&t?Bp(s):[])}else return e.concat(a,Bp(a,[],t))}function B2(r){return r.parent&&Object.getPrototypeOf(r.parent)?r.frameElement:null}function IV(r){const e=ri(r);let t=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const a=Jo(r),i=a?r.offsetWidth:t,o=a?r.offsetHeight:n,s=ox(t)!==i||ox(n)!==o;return s&&(t=i,n=o),{width:t,height:n,$:s}}function vM(r){return ti(r)?r:r.contextElement}function rh(r){const e=vM(r);if(!Jo(e))return Bi(1);const t=e.getBoundingClientRect(),{width:n,height:a,$:i}=IV(e);let o=(i?ox(t.width):t.width)/n,s=(i?ox(t.height):t.height)/a;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const RZ=Bi(0);function kV(r){const e=ra(r);return!dM()||!e.visualViewport?RZ:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function EZ(r,e,t){return e===void 0&&(e=!1),!t||e&&t!==ra(r)?!1:e}function ac(r,e,t,n){e===void 0&&(e=!1),t===void 0&&(t=!1);const a=r.getBoundingClientRect(),i=vM(r);let o=Bi(1);e&&(n?ti(n)&&(o=rh(n)):o=rh(r));const s=EZ(i,t,n)?kV(i):Bi(0);let l=(a.left+s.x)/o.x,u=(a.top+s.y)/o.y,c=a.width/o.x,f=a.height/o.y;if(i){const d=ra(i),v=n&&ti(n)?ra(n):n;let g=d,x=B2(g);for(;x&&n&&v!==g;){const y=rh(x),b=x.getBoundingClientRect(),S=ri(x),T=b.left+(x.clientLeft+parseFloat(S.paddingLeft))*y.x,C=b.top+(x.clientTop+parseFloat(S.paddingTop))*y.y;l*=y.x,u*=y.y,c*=y.x,f*=y.y,l+=T,u+=C,g=ra(x),x=B2(g)}}return lx({width:c,height:f,x:l,y:u})}function D1(r,e){const t=M1(r).scrollLeft;return e?e.left+t:ac(Zi(r)).left+t}function OV(r,e){const t=r.getBoundingClientRect(),n=t.left+e.scrollLeft-D1(r,t),a=t.top+e.scrollTop;return{x:n,y:a}}function IZ(r){let{elements:e,rect:t,offsetParent:n,strategy:a}=r;const i=a==="fixed",o=Zi(n),s=e?A1(e.floating):!1;if(n===o||s&&i)return t;let l={scrollLeft:0,scrollTop:0},u=Bi(1);const c=Bi(0),f=Jo(n);if((f||!f&&!i)&&((Yh(n)!=="body"||Ag(o))&&(l=M1(n)),f)){const v=ac(n);u=rh(n),c.x=v.x+n.clientLeft,c.y=v.y+n.clientTop}const d=o&&!f&&!i?OV(o,l):Bi(0);return{width:t.width*u.x,height:t.height*u.y,x:t.x*u.x-l.scrollLeft*u.x+c.x+d.x,y:t.y*u.y-l.scrollTop*u.y+c.y+d.y}}function kZ(r){return Array.from(r.getClientRects())}function OZ(r){const e=Zi(r),t=M1(r),n=r.ownerDocument.body,a=Zn(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=Zn(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let o=-t.scrollLeft+D1(r);const s=-t.scrollTop;return ri(n).direction==="rtl"&&(o+=Zn(e.clientWidth,n.clientWidth)-a),{width:a,height:i,x:o,y:s}}const kk=25;function PZ(r,e){const t=ra(r),n=Zi(r),a=t.visualViewport;let i=n.clientWidth,o=n.clientHeight,s=0,l=0;if(a){i=a.width,o=a.height;const c=dM();(!c||c&&e==="fixed")&&(s=a.offsetLeft,l=a.offsetTop)}const u=D1(n);if(u<=0){const c=n.ownerDocument,f=c.body,d=getComputedStyle(f),v=c.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,g=Math.abs(n.clientWidth-f.clientWidth-v);g<=kk&&(i-=g)}else u<=kk&&(i+=u);return{width:i,height:o,x:s,y:l}}function zZ(r,e){const t=ac(r,!0,e==="fixed"),n=t.top+r.clientTop,a=t.left+r.clientLeft,i=Jo(r)?rh(r):Bi(1),o=r.clientWidth*i.x,s=r.clientHeight*i.y,l=a*i.x,u=n*i.y;return{width:o,height:s,x:l,y:u}}function Ok(r,e,t){let n;if(e==="viewport")n=PZ(r,t);else if(e==="document")n=OZ(Zi(r));else if(ti(e))n=zZ(e,t);else{const a=kV(r);n={x:e.x-a.x,y:e.y-a.y,width:e.width,height:e.height}}return lx(n)}function PV(r,e){const t=ml(r);return t===e||!ti(t)||wh(t)?!1:ri(t).position==="fixed"||PV(t,e)}function BZ(r,e){const t=e.get(r);if(t)return t;let n=Bp(r,[],!1).filter(s=>ti(s)&&Yh(s)!=="body"),a=null;const i=ri(r).position==="fixed";let o=i?ml(r):r;for(;ti(o)&&!wh(o);){const s=ri(o),l=hM(o);!l&&s.position==="fixed"&&(a=null),(i?!l&&!a:!l&&s.position==="static"&&!!a&&(a.position==="absolute"||a.position==="fixed")||Ag(o)&&!l&&PV(r,o))?n=n.filter(c=>c!==o):a=s,o=ml(o)}return e.set(r,n),n}function jZ(r){let{element:e,boundary:t,rootBoundary:n,strategy:a}=r;const o=[...t==="clippingAncestors"?A1(e)?[]:BZ(e,this._c):[].concat(t),n],s=Ok(e,o[0],a);let l=s.top,u=s.right,c=s.bottom,f=s.left;for(let d=1;d<o.length;d++){const v=Ok(e,o[d],a);l=Zn(v.top,l),u=gl(v.right,u),c=gl(v.bottom,c),f=Zn(v.left,f)}return{width:u-f,height:c-l,x:f,y:l}}function VZ(r){const{width:e,height:t}=IV(r);return{width:e,height:t}}function GZ(r,e,t){const n=Jo(e),a=Zi(e),i=t==="fixed",o=ac(r,!0,i,e);let s={scrollLeft:0,scrollTop:0};const l=Bi(0);function u(){l.x=D1(a)}if(n||!n&&!i)if((Yh(e)!=="body"||Ag(a))&&(s=M1(e)),n){const v=ac(e,!0,i,e);l.x=v.x+e.clientLeft,l.y=v.y+e.clientTop}else a&&u();i&&!n&&a&&u();const c=a&&!n&&!i?OV(a,s):Bi(0),f=o.left+s.scrollLeft-l.x-c.x,d=o.top+s.scrollTop-l.y-c.y;return{x:f,y:d,width:o.width,height:o.height}}function BS(r){return ri(r).position==="static"}function Pk(r,e){if(!Jo(r)||ri(r).position==="fixed")return null;if(e)return e(r);let t=r.offsetParent;return Zi(r)===t&&(t=t.ownerDocument.body),t}function zV(r,e){const t=ra(r);if(A1(r))return t;if(!Jo(r)){let a=ml(r);for(;a&&!wh(a);){if(ti(a)&&!BS(a))return a;a=ml(a)}return t}let n=Pk(r,e);for(;n&&MZ(n)&&BS(n);)n=Pk(n,e);return n&&wh(n)&&BS(n)&&!hM(n)?t:n||NZ(r)||t}const HZ=async function(r){const e=this.getOffsetParent||zV,t=this.getDimensions,n=await t(r.floating);return{reference:GZ(r.reference,await e(r.floating),r.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function FZ(r){return ri(r).direction==="rtl"}const UZ={convertOffsetParentRelativeRectToViewportRelativeRect:IZ,getDocumentElement:Zi,getClippingRect:jZ,getOffsetParent:zV,getElementRects:HZ,getClientRects:kZ,getDimensions:VZ,getScale:rh,isElement:ti,isRTL:FZ};function BV(r,e){return r.x===e.x&&r.y===e.y&&r.width===e.width&&r.height===e.height}function YZ(r,e){let t=null,n;const a=Zi(r);function i(){var s;clearTimeout(n),(s=t)==null||s.disconnect(),t=null}function o(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),i();const u=r.getBoundingClientRect(),{left:c,top:f,width:d,height:v}=u;if(s||e(),!d||!v)return;const g=fy(f),x=fy(a.clientWidth-(c+d)),y=fy(a.clientHeight-(f+v)),b=fy(c),T={rootMargin:-g+"px "+-x+"px "+-y+"px "+-b+"px",threshold:Zn(0,gl(1,l))||1};let C=!0;function M(D){const L=D[0].intersectionRatio;if(L!==l){if(!C)return o();L?o(!1,L):n=setTimeout(()=>{o(!1,1e-7)},1e3)}L===1&&!BV(u,r.getBoundingClientRect())&&o(),C=!1}try{t=new IntersectionObserver(M,{...T,root:a.ownerDocument})}catch{t=new IntersectionObserver(M,T)}t.observe(r)}return o(!0),i}function WZ(r,e,t,n){n===void 0&&(n={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,u=vM(r),c=a||i?[...u?Bp(u):[],...e?Bp(e):[]]:[];c.forEach(b=>{a&&b.addEventListener("scroll",t,{passive:!0}),i&&b.addEventListener("resize",t)});const f=u&&s?YZ(u,t):null;let d=-1,v=null;o&&(v=new ResizeObserver(b=>{let[S]=b;S&&S.target===u&&v&&e&&(v.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var T;(T=v)==null||T.observe(e)})),t()}),u&&!l&&v.observe(u),e&&v.observe(e));let g,x=l?ac(r):null;l&&y();function y(){const b=ac(r);x&&!BV(x,b)&&t(),x=b,g=requestAnimationFrame(y)}return t(),()=>{var b;c.forEach(S=>{a&&S.removeEventListener("scroll",t),i&&S.removeEventListener("resize",t)}),f==null||f(),(b=v)==null||b.disconnect(),v=null,l&&cancelAnimationFrame(g)}}const XZ=wZ,qZ=TZ,ZZ=bZ,$Z=AZ,KZ=_Z,zk=xZ,QZ=CZ,JZ=(r,e,t)=>{const n=new Map,a={platform:UZ,...t},i={...a.platform,_c:n};return yZ(r,e,{...a,platform:i})};var e$=typeof document<"u",t$=function(){},k0=e$?Z.useLayoutEffect:t$;function ux(r,e){if(r===e)return!0;if(typeof r!=typeof e)return!1;if(typeof r=="function"&&r.toString()===e.toString())return!0;let t,n,a;if(r&&e&&typeof r=="object"){if(Array.isArray(r)){if(t=r.length,t!==e.length)return!1;for(n=t;n--!==0;)if(!ux(r[n],e[n]))return!1;return!0}if(a=Object.keys(r),t=a.length,t!==Object.keys(e).length)return!1;for(n=t;n--!==0;)if(!{}.hasOwnProperty.call(e,a[n]))return!1;for(n=t;n--!==0;){const i=a[n];if(!(i==="_owner"&&r.$$typeof)&&!ux(r[i],e[i]))return!1}return!0}return r!==r&&e!==e}function jV(r){return typeof window>"u"?1:(r.ownerDocument.defaultView||window).devicePixelRatio||1}function Bk(r,e){const t=jV(r);return Math.round(e*t)/t}function jS(r){const e=Z.useRef(r);return k0(()=>{e.current=r}),e}function r$(r){r===void 0&&(r={});const{placement:e="bottom",strategy:t="absolute",middleware:n=[],platform:a,elements:{reference:i,floating:o}={},transform:s=!0,whileElementsMounted:l,open:u}=r,[c,f]=Z.useState({x:0,y:0,strategy:t,placement:e,middlewareData:{},isPositioned:!1}),[d,v]=Z.useState(n);ux(d,n)||v(n);const[g,x]=Z.useState(null),[y,b]=Z.useState(null),S=Z.useCallback(H=>{H!==D.current&&(D.current=H,x(H))},[]),T=Z.useCallback(H=>{H!==L.current&&(L.current=H,b(H))},[]),C=i||g,M=o||y,D=Z.useRef(null),L=Z.useRef(null),E=Z.useRef(c),R=l!=null,I=jS(l),k=jS(a),z=jS(u),O=Z.useCallback(()=>{if(!D.current||!L.current)return;const H={placement:e,strategy:t,middleware:d};k.current&&(H.platform=k.current),JZ(D.current,L.current,H).then(X=>{const V={...X,isPositioned:z.current!==!1};G.current&&!ux(E.current,V)&&(E.current=V,lM.flushSync(()=>{f(V)}))})},[d,e,t,k,z]);k0(()=>{u===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,f(H=>({...H,isPositioned:!1})))},[u]);const G=Z.useRef(!1);k0(()=>(G.current=!0,()=>{G.current=!1}),[]),k0(()=>{if(C&&(D.current=C),M&&(L.current=M),C&&M){if(I.current)return I.current(C,M,O);O()}},[C,M,O,I,R]);const F=Z.useMemo(()=>({reference:D,floating:L,setReference:S,setFloating:T}),[S,T]),B=Z.useMemo(()=>({reference:C,floating:M}),[C,M]),Y=Z.useMemo(()=>{const H={position:t,left:0,top:0};if(!B.floating)return H;const X=Bk(B.floating,c.x),V=Bk(B.floating,c.y);return s?{...H,transform:"translate("+X+"px, "+V+"px)",...jV(B.floating)>=1.5&&{willChange:"transform"}}:{position:t,left:X,top:V}},[t,s,B.floating,c.x,c.y]);return Z.useMemo(()=>({...c,update:O,refs:F,elements:B,floatingStyles:Y}),[c,O,F,B,Y])}const n$=r=>{function e(t){return{}.hasOwnProperty.call(t,"current")}return{name:"arrow",options:r,fn(t){const{element:n,padding:a}=typeof r=="function"?r(t):r;return n&&e(n)?n.current!=null?zk({element:n.current,padding:a}).fn(t):{}:n?zk({element:n,padding:a}).fn(t):{}}}},a$=(r,e)=>{const t=XZ(r);return{name:t.name,fn:t.fn,options:[r,e]}},i$=(r,e)=>{const t=qZ(r);return{name:t.name,fn:t.fn,options:[r,e]}},o$=(r,e)=>({fn:QZ(r).fn,options:[r,e]}),s$=(r,e)=>{const t=ZZ(r);return{name:t.name,fn:t.fn,options:[r,e]}},l$=(r,e)=>{const t=$Z(r);return{name:t.name,fn:t.fn,options:[r,e]}},u$=(r,e)=>{const t=KZ(r);return{name:t.name,fn:t.fn,options:[r,e]}},c$=(r,e)=>{const t=n$(r);return{name:t.name,fn:t.fn,options:[r,e]}};var f$="Arrow",VV=Z.forwardRef((r,e)=>{const{children:t,width:n=10,height:a=5,...i}=r;return w.jsx(Tl.svg,{...i,ref:e,width:n,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:r.asChild?t:w.jsx("polygon",{points:"0,0 30,0 15,10"})})});VV.displayName=f$;var h$=VV;function d$(r){const[e,t]=Z.useState(void 0);return pl(()=>{if(r){t({width:r.offsetWidth,height:r.offsetHeight});const n=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const i=a[0];let o,s;if("borderBoxSize"in i){const l=i.borderBoxSize,u=Array.isArray(l)?l[0]:l;o=u.inlineSize,s=u.blockSize}else o=r.offsetWidth,s=r.offsetHeight;t({width:o,height:s})});return n.observe(r,{box:"border-box"}),()=>n.unobserve(r)}else t(void 0)},[r]),e}var pM="Popper",[GV,HV]=TV(pM),[v$,FV]=GV(pM),UV=r=>{const{__scopePopper:e,children:t}=r,[n,a]=Z.useState(null);return w.jsx(v$,{scope:e,anchor:n,onAnchorChange:a,children:t})};UV.displayName=pM;var YV="PopperAnchor",WV=Z.forwardRef((r,e)=>{const{__scopePopper:t,virtualRef:n,...a}=r,i=FV(YV,t),o=Z.useRef(null),s=yc(e,o),l=Z.useRef(null);return Z.useEffect(()=>{const u=l.current;l.current=(n==null?void 0:n.current)||o.current,u!==l.current&&i.onAnchorChange(l.current)}),n?null:w.jsx(Tl.div,{...a,ref:s})});WV.displayName=YV;var gM="PopperContent",[p$,g$]=GV(gM),XV=Z.forwardRef((r,e)=>{var de,ve,be,Oe,_e,Le;const{__scopePopper:t,side:n="bottom",sideOffset:a=0,align:i="center",alignOffset:o=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:f="partial",hideWhenDetached:d=!1,updatePositionStrategy:v="optimized",onPlaced:g,...x}=r,y=FV(gM,t),[b,S]=Z.useState(null),T=yc(e,st=>S(st)),[C,M]=Z.useState(null),D=d$(C),L=(D==null?void 0:D.width)??0,E=(D==null?void 0:D.height)??0,R=n+(i!=="center"?"-"+i:""),I=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},k=Array.isArray(u)?u:[u],z=k.length>0,O={padding:I,boundary:k.filter(y$),altBoundary:z},{refs:G,floatingStyles:F,placement:B,isPositioned:Y,middlewareData:H}=r$({strategy:"fixed",placement:R,whileElementsMounted:(...st)=>WZ(...st,{animationFrame:v==="always"}),elements:{reference:y.anchor},middleware:[a$({mainAxis:a+E,alignmentAxis:o}),l&&i$({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?o$():void 0,...O}),l&&s$({...O}),l$({...O,apply:({elements:st,rects:Qe,availableWidth:ct,availableHeight:xt})=>{const{width:Tt,height:Hr}=Qe.reference,Jt=st.floating.style;Jt.setProperty("--radix-popper-available-width",`${ct}px`),Jt.setProperty("--radix-popper-available-height",`${xt}px`),Jt.setProperty("--radix-popper-anchor-width",`${Tt}px`),Jt.setProperty("--radix-popper-anchor-height",`${Hr}px`)}}),C&&c$({element:C,padding:s}),x$({arrowWidth:L,arrowHeight:E}),d&&u$({strategy:"referenceHidden",...O})]}),[X,V]=$V(B),W=T1(g);pl(()=>{Y&&(W==null||W())},[Y,W]);const $=(de=H.arrow)==null?void 0:de.x,te=(ve=H.arrow)==null?void 0:ve.y,le=((be=H.arrow)==null?void 0:be.centerOffset)!==0,[ge,we]=Z.useState();return pl(()=>{b&&we(window.getComputedStyle(b).zIndex)},[b]),w.jsx("div",{ref:G.setFloating,"data-radix-popper-content-wrapper":"",style:{...F,transform:Y?F.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ge,"--radix-popper-transform-origin":[(Oe=H.transformOrigin)==null?void 0:Oe.x,(_e=H.transformOrigin)==null?void 0:_e.y].join(" "),...((Le=H.hide)==null?void 0:Le.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:r.dir,children:w.jsx(p$,{scope:t,placedSide:X,onArrowChange:M,arrowX:$,arrowY:te,shouldHideArrow:le,children:w.jsx(Tl.div,{"data-side":X,"data-align":V,...x,ref:T,style:{...x.style,animation:Y?void 0:"none"}})})})});XV.displayName=gM;var qV="PopperArrow",m$={top:"bottom",right:"left",bottom:"top",left:"right"},ZV=Z.forwardRef(function(e,t){const{__scopePopper:n,...a}=e,i=g$(qV,n),o=m$[i.placedSide];return w.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:w.jsx(h$,{...a,ref:t,style:{...a.style,display:"block"}})})});ZV.displayName=qV;function y$(r){return r!==null}var x$=r=>({name:"transformOrigin",options:r,fn(e){var y,b,S;const{placement:t,rects:n,middlewareData:a}=e,o=((y=a.arrow)==null?void 0:y.centerOffset)!==0,s=o?0:r.arrowWidth,l=o?0:r.arrowHeight,[u,c]=$V(t),f={start:"0%",center:"50%",end:"100%"}[c],d=(((b=a.arrow)==null?void 0:b.x)??0)+s/2,v=(((S=a.arrow)==null?void 0:S.y)??0)+l/2;let g="",x="";return u==="bottom"?(g=o?f:`${d}px`,x=`${-l}px`):u==="top"?(g=o?f:`${d}px`,x=`${n.floating.height+l}px`):u==="right"?(g=`${-l}px`,x=o?f:`${v}px`):u==="left"&&(g=`${n.floating.width+l}px`,x=o?f:`${v}px`),{data:{x:g,y:x}}}});function $V(r){const[e,t="center"]=r.split("-");return[e,t]}var b$=UV,_$=WV,S$=XV,w$=ZV,T$="Portal",KV=Z.forwardRef((r,e)=>{var s;const{container:t,...n}=r,[a,i]=Z.useState(!1);pl(()=>i(!0),[]);const o=t||a&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return o?Gq.createPortal(w.jsx(Tl.div,{...n,ref:e}),o):null});KV.displayName=T$;function C$(r,e){return Z.useReducer((t,n)=>e[t][n]??t,r)}var mM=r=>{const{present:e,children:t}=r,n=A$(e),a=typeof t=="function"?t({present:n.isPresent}):Z.Children.only(t),i=yc(n.ref,M$(a));return typeof t=="function"||n.isPresent?Z.cloneElement(a,{ref:i}):null};mM.displayName="Presence";function A$(r){const[e,t]=Z.useState(),n=Z.useRef(null),a=Z.useRef(r),i=Z.useRef("none"),o=r?"mounted":"unmounted",[s,l]=C$(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return Z.useEffect(()=>{const u=hy(n.current);i.current=s==="mounted"?u:"none"},[s]),pl(()=>{const u=n.current,c=a.current;if(c!==r){const d=i.current,v=hy(u);r?l("MOUNT"):v==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(c&&d!==v?"ANIMATION_OUT":"UNMOUNT"),a.current=r}},[r,l]),pl(()=>{if(e){let u;const c=e.ownerDocument.defaultView??window,f=v=>{const x=hy(n.current).includes(CSS.escape(v.animationName));if(v.target===e&&x&&(l("ANIMATION_END"),!a.current)){const y=e.style.animationFillMode;e.style.animationFillMode="forwards",u=c.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=y)})}},d=v=>{v.target===e&&(i.current=hy(n.current))};return e.addEventListener("animationstart",d),e.addEventListener("animationcancel",f),e.addEventListener("animationend",f),()=>{c.clearTimeout(u),e.removeEventListener("animationstart",d),e.removeEventListener("animationcancel",f),e.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[e,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:Z.useCallback(u=>{n.current=u?getComputedStyle(u):null,t(u)},[])}}function hy(r){return(r==null?void 0:r.animationName)||"none"}function M$(r){var n,a;let e=(n=Object.getOwnPropertyDescriptor(r.props,"ref"))==null?void 0:n.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?r.ref:(e=(a=Object.getOwnPropertyDescriptor(r,"ref"))==null?void 0:a.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?r.props.ref:r.props.ref||r.ref)}var D$=hV[" useInsertionEffect ".trim().toString()]||pl;function L$({prop:r,defaultProp:e,onChange:t=()=>{},caller:n}){const[a,i,o]=N$({defaultProp:e,onChange:t}),s=r!==void 0,l=s?r:a;{const c=Z.useRef(r!==void 0);Z.useEffect(()=>{const f=c.current;f!==s&&console.warn(`${n} is changing from ${f?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),c.current=s},[s,n])}const u=Z.useCallback(c=>{var f;if(s){const d=R$(c)?c(r):c;d!==r&&((f=o.current)==null||f.call(o,d))}else i(c)},[s,r,i,o]);return[l,u]}function N$({defaultProp:r,onChange:e}){const[t,n]=Z.useState(r),a=Z.useRef(t),i=Z.useRef(e);return D$(()=>{i.current=e},[e]),Z.useEffect(()=>{var o;a.current!==t&&((o=i.current)==null||o.call(i,t),a.current=t)},[t,a]),[t,n,i]}function R$(r){return typeof r=="function"}var E$=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),I$="VisuallyHidden",QV=Z.forwardRef((r,e)=>w.jsx(Tl.span,{...r,ref:e,style:{...E$,...r.style}}));QV.displayName=I$;var k$=QV,[L1]=TV("Tooltip",[HV]),N1=HV(),JV="TooltipProvider",O$=700,j2="tooltip.open",[P$,yM]=L1(JV),eG=r=>{const{__scopeTooltip:e,delayDuration:t=O$,skipDelayDuration:n=300,disableHoverableContent:a=!1,children:i}=r,o=Z.useRef(!0),s=Z.useRef(!1),l=Z.useRef(0);return Z.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),w.jsx(P$,{scope:e,isOpenDelayedRef:o,delayDuration:t,onOpen:Z.useCallback(()=>{window.clearTimeout(l.current),o.current=!1},[]),onClose:Z.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>o.current=!0,n)},[n]),isPointerInTransitRef:s,onPointerInTransitChange:Z.useCallback(u=>{s.current=u},[]),disableHoverableContent:a,children:i})};eG.displayName=JV;var jp="Tooltip",[z$,Mg]=L1(jp),tG=r=>{const{__scopeTooltip:e,children:t,open:n,defaultOpen:a,onOpenChange:i,disableHoverableContent:o,delayDuration:s}=r,l=yM(jp,r.__scopeTooltip),u=N1(e),[c,f]=Z.useState(null),d=oZ(),v=Z.useRef(0),g=o??l.disableHoverableContent,x=s??l.delayDuration,y=Z.useRef(!1),[b,S]=L$({prop:n,defaultProp:a??!1,onChange:L=>{L?(l.onOpen(),document.dispatchEvent(new CustomEvent(j2))):l.onClose(),i==null||i(L)},caller:jp}),T=Z.useMemo(()=>b?y.current?"delayed-open":"instant-open":"closed",[b]),C=Z.useCallback(()=>{window.clearTimeout(v.current),v.current=0,y.current=!1,S(!0)},[S]),M=Z.useCallback(()=>{window.clearTimeout(v.current),v.current=0,S(!1)},[S]),D=Z.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{y.current=!0,S(!0),v.current=0},x)},[x,S]);return Z.useEffect(()=>()=>{v.current&&(window.clearTimeout(v.current),v.current=0)},[]),w.jsx(b$,{...u,children:w.jsx(z$,{scope:e,contentId:d,open:b,stateAttribute:T,trigger:c,onTriggerChange:f,onTriggerEnter:Z.useCallback(()=>{l.isOpenDelayedRef.current?D():C()},[l.isOpenDelayedRef,D,C]),onTriggerLeave:Z.useCallback(()=>{g?M():(window.clearTimeout(v.current),v.current=0)},[M,g]),onOpen:C,onClose:M,disableHoverableContent:g,children:t})})};tG.displayName=jp;var V2="TooltipTrigger",rG=Z.forwardRef((r,e)=>{const{__scopeTooltip:t,...n}=r,a=Mg(V2,t),i=yM(V2,t),o=N1(t),s=Z.useRef(null),l=yc(e,s,a.onTriggerChange),u=Z.useRef(!1),c=Z.useRef(!1),f=Z.useCallback(()=>u.current=!1,[]);return Z.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),w.jsx(_$,{asChild:!0,...o,children:w.jsx(Tl.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...n,ref:l,onPointerMove:Do(r.onPointerMove,d=>{d.pointerType!=="touch"&&!c.current&&!i.isPointerInTransitRef.current&&(a.onTriggerEnter(),c.current=!0)}),onPointerLeave:Do(r.onPointerLeave,()=>{a.onTriggerLeave(),c.current=!1}),onPointerDown:Do(r.onPointerDown,()=>{a.open&&a.onClose(),u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:Do(r.onFocus,()=>{u.current||a.onOpen()}),onBlur:Do(r.onBlur,a.onClose),onClick:Do(r.onClick,a.onClose)})})});rG.displayName=V2;var xM="TooltipPortal",[B$,j$]=L1(xM,{forceMount:void 0}),nG=r=>{const{__scopeTooltip:e,forceMount:t,children:n,container:a}=r,i=Mg(xM,e);return w.jsx(B$,{scope:e,forceMount:t,children:w.jsx(mM,{present:t||i.open,children:w.jsx(KV,{asChild:!0,container:a,children:n})})})};nG.displayName=xM;var Th="TooltipContent",aG=Z.forwardRef((r,e)=>{const t=j$(Th,r.__scopeTooltip),{forceMount:n=t.forceMount,side:a="top",...i}=r,o=Mg(Th,r.__scopeTooltip);return w.jsx(mM,{present:n||o.open,children:o.disableHoverableContent?w.jsx(iG,{side:a,...i,ref:e}):w.jsx(V$,{side:a,...i,ref:e})})}),V$=Z.forwardRef((r,e)=>{const t=Mg(Th,r.__scopeTooltip),n=yM(Th,r.__scopeTooltip),a=Z.useRef(null),i=yc(e,a),[o,s]=Z.useState(null),{trigger:l,onClose:u}=t,c=a.current,{onPointerInTransitChange:f}=n,d=Z.useCallback(()=>{s(null),f(!1)},[f]),v=Z.useCallback((g,x)=>{const y=g.currentTarget,b={x:g.clientX,y:g.clientY},S=Y$(b,y.getBoundingClientRect()),T=W$(b,S),C=X$(x.getBoundingClientRect()),M=Z$([...T,...C]);s(M),f(!0)},[f]);return Z.useEffect(()=>()=>d(),[d]),Z.useEffect(()=>{if(l&&c){const g=y=>v(y,c),x=y=>v(y,l);return l.addEventListener("pointerleave",g),c.addEventListener("pointerleave",x),()=>{l.removeEventListener("pointerleave",g),c.removeEventListener("pointerleave",x)}}},[l,c,v,d]),Z.useEffect(()=>{if(o){const g=x=>{const y=x.target,b={x:x.clientX,y:x.clientY},S=(l==null?void 0:l.contains(y))||(c==null?void 0:c.contains(y)),T=!q$(b,o);S?d():T&&(d(),u())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[l,c,o,u,d]),w.jsx(iG,{...r,ref:i})}),[G$,H$]=L1(jp,{isInside:!1}),F$=Uq("TooltipContent"),iG=Z.forwardRef((r,e)=>{const{__scopeTooltip:t,children:n,"aria-label":a,onEscapeKeyDown:i,onPointerDownOutside:o,...s}=r,l=Mg(Th,t),u=N1(t),{onClose:c}=l;return Z.useEffect(()=>(document.addEventListener(j2,c),()=>document.removeEventListener(j2,c)),[c]),Z.useEffect(()=>{if(l.trigger){const f=d=>{const v=d.target;v!=null&&v.contains(l.trigger)&&c()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,c]),w.jsx(MV,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:f=>f.preventDefault(),onDismiss:c,children:w.jsxs(S$,{"data-state":l.stateAttribute,...u,...s,ref:e,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[w.jsx(F$,{children:n}),w.jsx(G$,{scope:t,isInside:!0,children:w.jsx(k$,{id:l.contentId,role:"tooltip",children:a||n})})]})})});aG.displayName=Th;var oG="TooltipArrow",U$=Z.forwardRef((r,e)=>{const{__scopeTooltip:t,...n}=r,a=N1(t);return H$(oG,t).isInside?null:w.jsx(w$,{...a,...n,ref:e})});U$.displayName=oG;function Y$(r,e){const t=Math.abs(e.top-r.y),n=Math.abs(e.bottom-r.y),a=Math.abs(e.right-r.x),i=Math.abs(e.left-r.x);switch(Math.min(t,n,a,i)){case i:return"left";case a:return"right";case t:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function W$(r,e,t=5){const n=[];switch(e){case"top":n.push({x:r.x-t,y:r.y+t},{x:r.x+t,y:r.y+t});break;case"bottom":n.push({x:r.x-t,y:r.y-t},{x:r.x+t,y:r.y-t});break;case"left":n.push({x:r.x+t,y:r.y-t},{x:r.x+t,y:r.y+t});break;case"right":n.push({x:r.x-t,y:r.y-t},{x:r.x-t,y:r.y+t});break}return n}function X$(r){const{top:e,right:t,bottom:n,left:a}=r;return[{x:a,y:e},{x:t,y:e},{x:t,y:n},{x:a,y:n}]}function q$(r,e){const{x:t,y:n}=r;let a=!1;for(let i=0,o=e.length-1;i<e.length;o=i++){const s=e[i],l=e[o],u=s.x,c=s.y,f=l.x,d=l.y;c>n!=d>n&&t<(f-u)*(n-c)/(d-c)+u&&(a=!a)}return a}function Z$(r){const e=r.slice();return e.sort((t,n)=>t.x<n.x?-1:t.x>n.x?1:t.y<n.y?-1:t.y>n.y?1:0),$$(e)}function $$(r){if(r.length<=1)return r.slice();const e=[];for(let n=0;n<r.length;n++){const a=r[n];for(;e.length>=2;){const i=e[e.length-1],o=e[e.length-2];if((i.x-o.x)*(a.y-o.y)>=(i.y-o.y)*(a.x-o.x))e.pop();else break}e.push(a)}e.pop();const t=[];for(let n=r.length-1;n>=0;n--){const a=r[n];for(;t.length>=2;){const i=t[t.length-1],o=t[t.length-2];if((i.x-o.x)*(a.y-o.y)>=(i.y-o.y)*(a.x-o.x))t.pop();else break}t.push(a)}return t.pop(),e.length===1&&t.length===1&&e[0].x===t[0].x&&e[0].y===t[0].y?e:e.concat(t)}var K$=eG,Q$=tG,J$=rG,eK=nG,sG=aG;const lG=K$,tK=Q$,rK=J$,uG=Z.forwardRef(({className:r,sideOffset:e=4,...t},n)=>w.jsx(eK,{children:w.jsx(sG,{ref:n,sideOffset:e,className:Ye("z-50 max-w-[280px] rounded-md bg-popover px-3 py-1.5 text-[11px] leading-relaxed text-popover-foreground shadow-md","animate-in fade-in-0 zoom-in-95","data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r),...t})}));uG.displayName=sG.displayName;function ol({children:r,content:e,delayDuration:t=200,side:n,contentClassName:a}){return w.jsxs(tK,{delayDuration:t,children:[w.jsx(rK,{asChild:!0,children:r}),w.jsx(uG,{side:n,className:a,children:e})]})}async function kn(r){const e=await fetch(`/api${r}`);if(!e.ok)throw new Error(`API ${r} failed: ${e.status}`);return e.json()}function bM(){return In({queryKey:["status"],queryFn:()=>kn("/status"),refetchInterval:3e4})}function nK(){return In({queryKey:["overview"],queryFn:()=>kn("/overview"),refetchInterval:3e4})}function aK(){return In({queryKey:["sessions"],queryFn:()=>kn("/session").then(r=>r.sessions),refetchInterval:3e3})}function iK(){return In({queryKey:["market-cache"],queryFn:()=>kn("/market-cache").then(r=>r.entries),refetchInterval:1e4})}function oK(){return In({queryKey:["supplier-verify"],queryFn:()=>kn("/supplier-verify").then(r=>r.entries),refetchInterval:15e3})}function cG(r){return In({queryKey:["imported-summary",r],queryFn:()=>{const e=r?new URLSearchParams(Object.fromEntries(Object.entries(r).filter(([,t])=>t))).toString():"";return kn(`/imported/summary${e?`?${e}`:""}`)},refetchInterval:15e3})}function sK(){return In({queryKey:["settlement-fee-rules"],queryFn:()=>kn("/settlement/fee-rules"),staleTime:1e4})}function lK(){return In({queryKey:["deposit-schedule"],queryFn:()=>kn("/settlement/deposit-schedule").then(r=>r.schedule),staleTime:3e4})}function uK(r){return In({queryKey:["orders",r],queryFn:()=>{const e=r?new URLSearchParams(r).toString():"";return kn(`/orders${e?`?${e}`:""}`)},staleTime:3e4})}function fG(r){return In({queryKey:["product-catalog",r],queryFn:()=>{const e=r?new URLSearchParams(r).toString():"";return kn(`/product-catalog${e?`?${e}`:""}`)},staleTime:3e4})}function cK(){return In({queryKey:["trend-status"],queryFn:()=>kn("/trend/status"),staleTime:3e4})}async function fK(r){const e=await fetch(`/api/trend/keyword?q=${encodeURIComponent(r)}`);if(!e.ok)throw new Error(`API /trend/keyword failed: ${e.status}`);return e.json()}async function hK(r,e=20){const t=await fetch(`/api/trend/platform?id=${encodeURIComponent(r)}&limit=${e}`);if(!t.ok)throw new Error(`API /trend/platform failed: ${t.status}`);return t.json()}async function dK(){const r=await fetch("/api/orders/sync",{method:"POST"});if(!r.ok)throw new Error(`API /orders/sync failed: ${r.status}`);return r.json()}function vK(){return In({queryKey:["config"],queryFn:()=>kn("/config"),staleTime:5e3})}function pK(){return In({queryKey:["weekly-stats"],queryFn:()=>kn("/stats/weekly"),staleTime:3e5})}function gK(){return In({queryKey:["period-stats"],queryFn:()=>kn("/stats/period"),refetchInterval:6e4})}async function mK(r){const e=await fetch("/api/config",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});if(!e.ok)throw new Error(`PUT /api/config failed: ${e.status}`);return e.json()}/**
|
|
50
|
+
* @license lucide-react v0.469.0 - ISC
|
|
51
|
+
*
|
|
52
|
+
* This source code is licensed under the ISC license.
|
|
53
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
54
|
+
*/const yK=r=>r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),hG=(...r)=>r.filter((e,t,n)=>!!e&&e.trim()!==""&&n.indexOf(e)===t).join(" ").trim();/**
|
|
55
|
+
* @license lucide-react v0.469.0 - ISC
|
|
56
|
+
*
|
|
57
|
+
* This source code is licensed under the ISC license.
|
|
58
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
59
|
+
*/var xK={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
60
|
+
* @license lucide-react v0.469.0 - ISC
|
|
61
|
+
*
|
|
62
|
+
* This source code is licensed under the ISC license.
|
|
63
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
64
|
+
*/const bK=Z.forwardRef(({color:r="currentColor",size:e=24,strokeWidth:t=2,absoluteStrokeWidth:n,className:a="",children:i,iconNode:o,...s},l)=>Z.createElement("svg",{ref:l,...xK,width:e,height:e,stroke:r,strokeWidth:n?Number(t)*24/Number(e):t,className:hG("lucide",a),...s},[...o.map(([u,c])=>Z.createElement(u,c)),...Array.isArray(i)?i:[i]]));/**
|
|
65
|
+
* @license lucide-react v0.469.0 - ISC
|
|
66
|
+
*
|
|
67
|
+
* This source code is licensed under the ISC license.
|
|
68
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
69
|
+
*/const Nt=(r,e)=>{const t=Z.forwardRef(({className:n,...a},i)=>Z.createElement(bK,{ref:i,iconNode:e,className:hG(`lucide-${yK(r)}`,n),...a}));return t.displayName=`${r}`,t};/**
|
|
70
|
+
* @license lucide-react v0.469.0 - ISC
|
|
71
|
+
*
|
|
72
|
+
* This source code is licensed under the ISC license.
|
|
73
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
74
|
+
*/const _K=Nt("Award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]]);/**
|
|
75
|
+
* @license lucide-react v0.469.0 - ISC
|
|
76
|
+
*
|
|
77
|
+
* This source code is licensed under the ISC license.
|
|
78
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
79
|
+
*/const cx=Nt("ChartNoAxesColumn",[["line",{x1:"18",x2:"18",y1:"20",y2:"10",key:"1xfpm4"}],["line",{x1:"12",x2:"12",y1:"20",y2:"4",key:"be30l9"}],["line",{x1:"6",x2:"6",y1:"20",y2:"14",key:"1r4le6"}]]);/**
|
|
80
|
+
* @license lucide-react v0.469.0 - ISC
|
|
81
|
+
*
|
|
82
|
+
* This source code is licensed under the ISC license.
|
|
83
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
84
|
+
*/const dG=Nt("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
85
|
+
* @license lucide-react v0.469.0 - ISC
|
|
86
|
+
*
|
|
87
|
+
* This source code is licensed under the ISC license.
|
|
88
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
89
|
+
*/const Ma=Nt("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
90
|
+
* @license lucide-react v0.469.0 - ISC
|
|
91
|
+
*
|
|
92
|
+
* This source code is licensed under the ISC license.
|
|
93
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
94
|
+
*/const SK=Nt("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
|
|
95
|
+
* @license lucide-react v0.469.0 - ISC
|
|
96
|
+
*
|
|
97
|
+
* This source code is licensed under the ISC license.
|
|
98
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
99
|
+
*/const qa=Nt("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
100
|
+
* @license lucide-react v0.469.0 - ISC
|
|
101
|
+
*
|
|
102
|
+
* This source code is licensed under the ISC license.
|
|
103
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
104
|
+
*/const Vp=Nt("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
|
|
105
|
+
* @license lucide-react v0.469.0 - ISC
|
|
106
|
+
*
|
|
107
|
+
* This source code is licensed under the ISC license.
|
|
108
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
109
|
+
*/const wK=Nt("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
110
|
+
* @license lucide-react v0.469.0 - ISC
|
|
111
|
+
*
|
|
112
|
+
* This source code is licensed under the ISC license.
|
|
113
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
114
|
+
*/const TK=Nt("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
|
|
115
|
+
* @license lucide-react v0.469.0 - ISC
|
|
116
|
+
*
|
|
117
|
+
* This source code is licensed under the ISC license.
|
|
118
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
119
|
+
*/const CK=Nt("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
|
|
120
|
+
* @license lucide-react v0.469.0 - ISC
|
|
121
|
+
*
|
|
122
|
+
* This source code is licensed under the ISC license.
|
|
123
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
124
|
+
*/const _M=Nt("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
|
|
125
|
+
* @license lucide-react v0.469.0 - ISC
|
|
126
|
+
*
|
|
127
|
+
* This source code is licensed under the ISC license.
|
|
128
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
129
|
+
*/const jk=Nt("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
|
|
130
|
+
* @license lucide-react v0.469.0 - ISC
|
|
131
|
+
*
|
|
132
|
+
* This source code is licensed under the ISC license.
|
|
133
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
134
|
+
*/const SM=Nt("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
|
|
135
|
+
* @license lucide-react v0.469.0 - ISC
|
|
136
|
+
*
|
|
137
|
+
* This source code is licensed under the ISC license.
|
|
138
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
139
|
+
*/const AK=Nt("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/**
|
|
140
|
+
* @license lucide-react v0.469.0 - ISC
|
|
141
|
+
*
|
|
142
|
+
* This source code is licensed under the ISC license.
|
|
143
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
144
|
+
*/const MK=Nt("Link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);/**
|
|
145
|
+
* @license lucide-react v0.469.0 - ISC
|
|
146
|
+
*
|
|
147
|
+
* This source code is licensed under the ISC license.
|
|
148
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
149
|
+
*/const DK=Nt("LockOpen",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 9.9-1",key:"1mm8w8"}]]);/**
|
|
150
|
+
* @license lucide-react v0.469.0 - ISC
|
|
151
|
+
*
|
|
152
|
+
* This source code is licensed under the ISC license.
|
|
153
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
154
|
+
*/const Vk=Nt("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
|
|
155
|
+
* @license lucide-react v0.469.0 - ISC
|
|
156
|
+
*
|
|
157
|
+
* This source code is licensed under the ISC license.
|
|
158
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
159
|
+
*/const vG=Nt("Package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",key:"yx3hmr"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);/**
|
|
160
|
+
* @license lucide-react v0.469.0 - ISC
|
|
161
|
+
*
|
|
162
|
+
* This source code is licensed under the ISC license.
|
|
163
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
164
|
+
*/const LK=Nt("Receipt",[["path",{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z",key:"q3az6g"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 17.5v-11",key:"1jc1ny"}]]);/**
|
|
165
|
+
* @license lucide-react v0.469.0 - ISC
|
|
166
|
+
*
|
|
167
|
+
* This source code is licensed under the ISC license.
|
|
168
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
169
|
+
*/const O0=Nt("RefreshCcw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]]);/**
|
|
170
|
+
* @license lucide-react v0.469.0 - ISC
|
|
171
|
+
*
|
|
172
|
+
* This source code is licensed under the ISC license.
|
|
173
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
174
|
+
*/const NK=Nt("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
|
|
175
|
+
* @license lucide-react v0.469.0 - ISC
|
|
176
|
+
*
|
|
177
|
+
* This source code is licensed under the ISC license.
|
|
178
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
179
|
+
*/const pG=Nt("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/**
|
|
180
|
+
* @license lucide-react v0.469.0 - ISC
|
|
181
|
+
*
|
|
182
|
+
* This source code is licensed under the ISC license.
|
|
183
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
184
|
+
*/const G2=Nt("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
185
|
+
* @license lucide-react v0.469.0 - ISC
|
|
186
|
+
*
|
|
187
|
+
* This source code is licensed under the ISC license.
|
|
188
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
189
|
+
*/const RK=Nt("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
190
|
+
* @license lucide-react v0.469.0 - ISC
|
|
191
|
+
*
|
|
192
|
+
* This source code is licensed under the ISC license.
|
|
193
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
194
|
+
*/const EK=Nt("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
195
|
+
* @license lucide-react v0.469.0 - ISC
|
|
196
|
+
*
|
|
197
|
+
* This source code is licensed under the ISC license.
|
|
198
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
199
|
+
*/const gG=Nt("ShoppingCart",[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]]);/**
|
|
200
|
+
* @license lucide-react v0.469.0 - ISC
|
|
201
|
+
*
|
|
202
|
+
* This source code is licensed under the ISC license.
|
|
203
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
204
|
+
*/const mG=Nt("TrendingDown",[["polyline",{points:"22 17 13.5 8.5 8.5 13.5 2 7",key:"1r2t7k"}],["polyline",{points:"16 17 22 17 22 11",key:"11uiuu"}]]);/**
|
|
205
|
+
* @license lucide-react v0.469.0 - ISC
|
|
206
|
+
*
|
|
207
|
+
* This source code is licensed under the ISC license.
|
|
208
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
209
|
+
*/const $u=Nt("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/**
|
|
210
|
+
* @license lucide-react v0.469.0 - ISC
|
|
211
|
+
*
|
|
212
|
+
* This source code is licensed under the ISC license.
|
|
213
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
214
|
+
*/const IK=Nt("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
215
|
+
* @license lucide-react v0.469.0 - ISC
|
|
216
|
+
*
|
|
217
|
+
* This source code is licensed under the ISC license.
|
|
218
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
219
|
+
*/const ic=Nt("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
|
|
220
|
+
* @license lucide-react v0.469.0 - ISC
|
|
221
|
+
*
|
|
222
|
+
* This source code is licensed under the ISC license.
|
|
223
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
224
|
+
*/const kK=Nt("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),OK={cafe24:"카페24",coupang:"쿠팡",smartstore:"스마트스토어",shopify:"Shopify",domeggook:"도매꾹",specialoffer:"특가몰",cjdropshipping:"CJ Dropshipping"},PK={cafe24:"bg-blue-500",coupang:"bg-orange-500",smartstore:"bg-green-500",shopify:"bg-emerald-600",domeggook:"bg-violet-500",specialoffer:"bg-pink-500",cjdropshipping:"bg-sky-500"};function zK({channel:r,connected:e,storeId:t,rateLimit:n,intervalMs:a,webhook:i,hint:o,keyExpiry:s,isSourcing:l,dailyLimit:u}){const c=OK[r]??r,f=PK[r]??"bg-muted",d=s!==void 0&&s<=14;return w.jsxs("div",{className:Ye("border border-border rounded-lg p-5",!e&&"opacity-60"),children:[w.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[w.jsx("div",{className:Ye("w-2 h-2 rounded-full",f)}),w.jsx("span",{className:"font-medium text-[14px]",children:c}),w.jsx("div",{className:"ml-auto",children:e?w.jsx(wK,{size:16,className:"text-green-500"}):w.jsx(TK,{size:16,className:"text-muted-foreground/50"})})]}),e?w.jsxs("div",{className:"space-y-2",children:[t&&w.jsxs("div",{className:"flex justify-between text-[12px]",children:[w.jsx("span",{className:"text-muted-foreground",children:"스토어 ID"}),w.jsx("span",{className:"font-mono text-[11px]",children:t})]}),w.jsxs("div",{className:"flex justify-between text-[12px]",children:[w.jsx("span",{className:"text-muted-foreground",children:"Rate limit"}),w.jsxs("span",{children:[n," rps"]})]}),u&&w.jsxs("div",{className:"flex justify-between text-[12px]",children:[w.jsx("span",{className:"text-muted-foreground",children:"일일 한도"}),w.jsxs("span",{children:[u.toLocaleString(),"회"]})]}),!l&&i!==void 0&&w.jsxs("div",{className:"flex justify-between text-[12px]",children:[w.jsx("span",{className:"text-muted-foreground",children:"웹훅"}),w.jsx("span",{className:i?"text-green-600":"text-muted-foreground",children:i?"지원":"미지원"})]}),d&&s!==void 0&&w.jsxs("div",{className:"flex items-center gap-1.5 mt-2 text-[11px] text-amber-600 bg-amber-50 dark:bg-amber-950/30 border border-amber-200 dark:border-amber-800 rounded px-2 py-1",children:[w.jsx(IK,{size:11}),"API 키 ",s,"일 후 만료"]})]}):w.jsxs("div",{className:"text-[11px] text-muted-foreground space-y-1",children:[w.jsx("div",{className:"mb-2",children:"연결되지 않은 채널"}),w.jsx("div",{className:"font-mono bg-muted/50 rounded px-2 py-1.5 break-all leading-relaxed",children:o}),w.jsxs("div",{className:"mt-2 text-[10px]",children:[w.jsx("code",{children:"sppt init"}),"으로 설정"]})]})]})}function BK(){const{data:r,isLoading:e}=bM(),t=(r==null?void 0:r.channels.filter(n=>n.connected).length)??0;return e?w.jsxs("div",{children:[w.jsx("h2",{className:"text-xl font-medium mb-6",children:"채널 연동"}),w.jsx("div",{className:"text-sm text-muted-foreground",children:"로딩 중..."})]}):w.jsxs("div",{children:[w.jsxs("div",{className:"flex items-center justify-between mb-6",children:[w.jsx("h2",{className:"text-xl font-medium",children:"채널 연동"}),w.jsxs("div",{className:"text-[12px] text-muted-foreground",children:["판매 ",t,"/5 연결"]})]}),w.jsxs("div",{children:[w.jsx("div",{className:"text-[11px] font-semibold text-muted-foreground uppercase tracking-wider mb-3",children:"판매 채널"}),w.jsx("div",{className:"grid grid-cols-2 gap-3",children:r==null?void 0:r.channels.map(n=>w.jsx(zK,{channel:n.channel,connected:n.connected,storeId:n.storeId,rateLimit:n.rateLimit,intervalMs:n.intervalMs,webhook:n.webhook,hint:n.hint,keyExpiry:n.keyExpiry},n.channel))})]})]})}const jK={cafe24:{label:"카페24",guide:"https://developers.cafe24.com",cliNote:"sppt config set cafe24 storeId <mallId>",fields:[{key:"storeId",label:"스토어 ID (mallId)",type:"text",placeholder:"mymall"},{key:"clientId",label:"Client ID",type:"text"},{key:"clientSecret",label:"Client Secret",type:"password"},{key:"accessToken",label:"Access Token",type:"text",readOnly:!0,hint:"OAuth 인증 후 자동 발급·갱신"}]},coupang:{label:"쿠팡",guide:"https://wing.coupang.com",cliNote:"sppt config set coupang storeId <vendorId>",fields:[{key:"storeId",label:"Vendor ID",type:"text",placeholder:"A00123456"},{key:"accessKey",label:"Access Key",type:"text"},{key:"secretKey",label:"Secret Key",type:"password"},{key:"keyExpiresAt",label:"키 만료일",type:"text",readOnly:!0,hint:"키 생성 후 180일. CLI에서 accessKey 입력 시 자동 계산"},{key:"vendorUserId",label:"Wing 포털 ID",type:"text",optional:!0},{key:"outboundShippingPlaceCode",label:"출고지 코드",type:"number",optional:!0,hint:"Wing → 판매자정보 → 출고지 관리"},{key:"returnCenterCode",label:"반품지 코드",type:"text",optional:!0}]},smartstore:{label:"스마트스토어",guide:"https://sell.smartstore.naver.com",cliNote:"sppt config set smartstore storeId <account_id>",fields:[{key:"storeId",label:"계정 ID (account_id)",type:"text"},{key:"clientId",label:"Client ID",type:"text"},{key:"clientSecret",label:"Client Secret",type:"password"},{key:"accessToken",label:"Access Token",type:"text",readOnly:!0,hint:"자동 발급·갱신"}]},shopify:{label:"Shopify",guide:"https://admin.shopify.com",cliNote:"sppt config set shopify storeId <domain>",fields:[{key:"storeId",label:"스토어 도메인",type:"text",placeholder:"mystore.myshopify.com"},{key:"accessToken",label:"Access Token",type:"password",hint:"Shopify Admin → Apps → 앱 개발 → Token 발급"},{key:"apiVersion",label:"API Version",type:"text",placeholder:"2024-10"}]},"toss-shopping":{label:"토스쇼핑",guide:"https://shopping-seller.toss.im/integration-key",cliNote:"sppt config set toss-shopping clientId <id>",fields:[{key:"clientId",label:"Client ID",type:"text",hint:"토스쇼핑 셀러 포털 → 연동 키 관리"},{key:"clientSecret",label:"Client Secret",type:"password"},{key:"accessToken",label:"Access Token",type:"text",readOnly:!0,hint:"자동 갱신"}]},"29cm":{label:"29CM",guide:"https://openapi.29cm.co.kr",cliNote:"sppt config set 29cm clientId <id>",fields:[{key:"clientId",label:"Client ID",type:"text",hint:"29CM 파트너 포털(29Connect)에서 발급"},{key:"clientSecret",label:"Client Secret",type:"password"},{key:"partnerKey",label:"Partner Key",type:"password",hint:"상품 API 전용 키 (별도 발급)"},{key:"accessToken",label:"Access Token",type:"text",readOnly:!0,hint:"자동 갱신"}]},musinsa:{label:"무신사",guide:"https://partners.musinsa.com",cliNote:"sppt config set musinsa apiKey <key>",fields:[{key:"apiKey",label:"API Key",type:"text",hint:"⚠️ 2026-04 현재 공개 API 미제공 — EDI 계약 필요"},{key:"apiSecret",label:"API Secret",type:"password"}]},oliveyoung:{label:"올리브영 파트너 · 브라우저",guide:"https://partner.oliveyoung.co.kr",cliNote:"sppt init browser oliveyoung",fields:[{key:"id",label:"파트너 ID",type:"text",hint:"partner.oliveyoung.co.kr 로그인 ID"},{key:"password",label:"비밀번호",type:"password"}]},kurly:{label:"컬리 파트너 오피스 · 브라우저",guide:"https://3p-partner.kurly.com",cliNote:"sppt init browser kurly",fields:[{key:"id",label:"파트너 ID (이메일)",type:"text"},{key:"password",label:"비밀번호",type:"password"}]},ohouse:{label:"오늘의집 파트너센터 · 브라우저",guide:"https://partner.ohou.se",cliNote:"sppt init browser ohouse",fields:[{key:"id",label:"파트너 ID",type:"text"},{key:"password",label:"비밀번호",type:"password"}]}},VK=new Set(["oliveyoung","kurly","ohouse"]),GK={domeggook:{label:"도매꾹",guide:"https://mobile.domeggook.com/openAPI/management",cliNote:"sppt config set domeggook apiKey <key>",fields:[{key:"apiKey",label:"API Key",type:"password"}]},domemae:{label:"도매매",cliNote:"sppt config set domemae apiKey <key>",fields:[{key:"apiKey",label:"API Key",type:"password",hint:"도매꾹 API Key 공유 (동일 계정)"}]},specialoffer:{label:"스페셜오퍼",cliNote:"sppt config set specialoffer apiKey <key>",fields:[{key:"apiKey",label:"API Key",type:"password"}]},cjdropshipping:{label:"CJ Dropshipping",guide:"https://cjdropshipping.com",cliNote:"sppt config set cjdropshipping accessToken <token>",fields:[{key:"accessToken",label:"Access Token",type:"password",hint:"CJ Dropshipping 셀러 센터에서 발급"}]}},HK={"naver-datalab":{label:"네이버 데이터랩",guide:"https://developers.naver.com/apps",cliNote:"sppt config set naver-datalab clientId <id>",proxyNote:"shopport 공용 키로 검색 트렌드를 조회합니다. 월 요청량이 많거나 전용 키가 필요하면 직접 설정하세요.",fields:[{key:"clientId",label:"Client ID",type:"text",hint:"네이버 개발자 센터 → 내 애플리케이션"},{key:"clientSecret",label:"Client Secret",type:"password"}]},"naver-searchad":{label:"네이버 검색광고",guide:"https://searchad.naver.com",cliNote:"sppt config set naver-searchad customerId <id>",proxyNote:"shopport 공용 키로 키워드 검색량을 조회합니다. 직접 계정을 연결하면 더 정확한 데이터를 얻을 수 있습니다.",fields:[{key:"customerId",label:"Customer ID",type:"text",hint:"네이버 검색광고 → API 관리"},{key:"accessLicense",label:"Access License",type:"text"},{key:"secretKey",label:"Secret Key",type:"password"}]},"naver-shopping":{label:"네이버 쇼핑",guide:"https://developers.naver.com/apps",cliNote:"sppt config set naver-shopping clientId <id>",proxyNote:"shopport 공용 키로 네이버 쇼핑 데이터를 조회합니다. 직접 설정 시 네이버 개발자 센터에서 발급하세요.",fields:[{key:"clientId",label:"Client ID",type:"text"},{key:"clientSecret",label:"Client Secret",type:"password"}]}},FK={"dada-erp":{label:"DADA ERP (세이고)",cliNote:"sppt config set dada-erp apiKey <key>",fields:[{key:"apiKey",label:"API Key",type:"password",hint:"세이고 ERP → 시스템설정 → API 관리"},{key:"apiSecret",label:"API Secret",type:"password"},{key:"companyCode",label:"업체 코드",type:"text",optional:!0}]},ezadmin:{label:"이지어드민",cliNote:"sppt config set ezadmin apiKey <key>",fields:[{key:"apiKey",label:"API Key",type:"password",hint:"이지어드민 → 환경설정 → API 연동 관리"},{key:"shopCode",label:"쇼핑몰 코드",type:"text",hint:"가입 시 부여된 코드 (예: SHOP001)"}]},onewms:{label:"OneWMS",cliNote:"sppt config set onewms apiKey <key>",fields:[{key:"apiKey",label:"API Key",type:"password",hint:"OneWMS → 관리 → API 설정"},{key:"warehouseCode",label:"창고 코드",type:"text"},{key:"clientCode",label:"고객사 코드",type:"text",optional:!0}]},sabangnet:{label:"사방넷",cliNote:"sppt config set sabangnet sabangId <id>",fields:[{key:"sabangId",label:"아이디",type:"text"},{key:"sabangKey",label:"API Key",type:"password",hint:"사방넷 → 기본설정 → API 설정"}]},boxhero:{label:"박스히어로",guide:"https://www.boxhero.io",cliNote:"sppt config set boxhero accessToken <token>",fields:[{key:"accessToken",label:"Access Token",type:"password",hint:"BoxHero → Settings → Integrations → Open API"},{key:"teamId",label:"팀 ID",type:"text",optional:!0}]},"ecount-erp":{label:"이카운트ERP",cliNote:"sppt config set ecount-erp companyCode <code>",fields:[{key:"companyCode",label:"회사 코드",type:"text",hint:"로그인 화면에서 확인"},{key:"userId",label:"아이디",type:"text"},{key:"apiKey",label:"API Key",type:"password",hint:"ERP → 시스템관리 → Open API 설정"},{key:"zoneCode",label:"Zone 코드 (A~E)",type:"text",optional:!0}]},"douzone-wehago":{label:"더존 WEHAGO",guide:"https://developer.wehago.com",cliNote:"sppt config set douzone-wehago clientId <id>",fields:[{key:"clientId",label:"Client ID",type:"text",hint:"더존 개발자 포털에서 발급"},{key:"clientSecret",label:"Client Secret",type:"password"},{key:"companyCode",label:"회사 코드",type:"text"},{key:"accessToken",label:"Access Token",type:"text",readOnly:!0,hint:"자동 갱신"}]},playauto:{label:"플레이오토",guide:"https://plto.com/additional/API/",cliNote:"sppt config set playauto apiKey <key>",fields:[{key:"apiKey",label:"API Key",type:"password"},{key:"apiSecret",label:"API Secret",type:"password"},{key:"shopId",label:"쇼핑몰 ID",type:"text",optional:!0}]},argo:{label:"아르고 풀필먼트",cliNote:"sppt config set argo apiKey <key>",fields:[{key:"apiKey",label:"API Key",type:"password"},{key:"clientCode",label:"고객사 코드",type:"text",optional:!0}]},poomgo:{label:"품고",cliNote:"sppt config set poomgo apiKey <key>",fields:[{key:"apiKey",label:"API Key",type:"password"},{key:"warehouseCode",label:"창고 코드",type:"text",optional:!0}]}};function pv({schema:r,current:e,onSave:t,saving:n,saved:a}){const i=r.fields.filter(y=>!y.readOnly),o=r.fields.filter(y=>y.readOnly),s=i.some(y=>{const b=e[y.key];return b!==void 0&&b!==""&&b!==null}),l=i.some(y=>{const b=e[y.key];return b!==void 0&&b!==""&&b!==null}),[u,c]=Z.useState(s),[f,d]=Z.useState(!r.proxyNote||l),[v,g]=Z.useState(()=>{const y={};for(const b of i){const S=e[b.key];b.type==="boolean"?y[b.key]=!!S:b.type==="number"?y[b.key]=S!==void 0&&S!==""?Number(S):"":y[b.key]=String(S??"")}return y});function x(){const y={...e};for(const b of i){const S=v[b.key];S!==""&&S!==void 0?y[b.key]=S:delete y[b.key]}t(y)}return w.jsxs("div",{className:"border border-border rounded-lg overflow-hidden bg-card",children:[w.jsxs("button",{type:"button",onClick:()=>c(y=>!y),className:"w-full flex items-center justify-between px-4 py-2.5 text-[13px] hover:bg-muted/30 transition-colors",children:[w.jsxs("span",{className:"flex items-center gap-2",children:[u?w.jsx(Ma,{size:13,className:"text-muted-foreground"}):w.jsx(qa,{size:13,className:"text-muted-foreground"}),w.jsx("span",{className:"font-medium",children:r.label}),s&&w.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-500 shrink-0"})]}),w.jsx("span",{className:"text-[11px] text-muted-foreground",children:s?w.jsx("span",{className:"text-emerald-600",children:"연결됨"}):r.proxyNote&&!l?w.jsxs("span",{className:"flex items-center gap-1",children:[w.jsx(Vk,{size:10})," 공용 키"]}):null})]}),u&&w.jsxs("div",{className:"border-t border-border bg-muted/10",children:[(r.guide||r.cliNote)&&w.jsxs("div",{className:"px-4 pt-3 pb-2 flex items-center gap-4 text-[11px] text-muted-foreground border-b border-border/50",children:[r.guide&&w.jsxs("a",{href:r.guide,target:"_blank",rel:"noreferrer",className:"flex items-center gap-1 hover:text-foreground transition-colors",onClick:y=>y.stopPropagation(),children:[w.jsx(_M,{size:10}),"자격증명 발급"]}),r.cliNote&&w.jsx("code",{className:"font-mono text-[10px] bg-muted px-1.5 py-0.5 rounded text-foreground/70",children:r.cliNote})]}),r.proxyNote&&!f?w.jsxs("div",{className:"px-4 py-4 flex items-start justify-between gap-4",children:[w.jsx("div",{className:"space-y-1",children:w.jsx("p",{className:"text-[12px] text-foreground/80",children:r.proxyNote})}),w.jsxs("button",{type:"button",onClick:()=>d(!0),className:"shrink-0 flex items-center gap-1.5 px-3 py-1.5 text-[11px] border border-border rounded hover:bg-muted transition-colors",children:[w.jsx(DK,{size:10}),"직접 설정"]})]}):w.jsxs("div",{className:"px-4 py-4 space-y-2.5",children:[r.proxyNote&&f&&w.jsxs("div",{className:"flex items-center justify-between pb-1 border-b border-border/50",children:[w.jsx("span",{className:"text-[11px] text-muted-foreground",children:"직접 설정 중"}),w.jsxs("button",{type:"button",onClick:()=>d(!1),className:"flex items-center gap-1 text-[11px] text-muted-foreground hover:text-foreground",children:[w.jsx(Vk,{size:10})," 공용 키로 전환"]})]}),i.map(y=>w.jsxs("div",{className:"grid grid-cols-[190px_1fr] items-start gap-3",children:[w.jsxs("span",{className:Ye("text-[12px] text-right pt-1.5 leading-tight",y.optional?"text-muted-foreground/60":"text-muted-foreground"),children:[y.label,y.optional&&w.jsx("span",{className:"ml-1 text-[10px]",children:"(선택)"})]}),w.jsxs("div",{className:"space-y-0.5",children:[y.type==="boolean"?w.jsx("input",{type:"checkbox",checked:!!v[y.key],onChange:b=>g(S=>({...S,[y.key]:b.target.checked})),className:"w-4 h-4 accent-primary mt-1.5"}):w.jsx("input",{type:y.type==="password"?"password":y.type==="number"?"number":"text",value:String(v[y.key]??""),placeholder:y.placeholder??"",onChange:b=>g(S=>({...S,[y.key]:b.target.value})),className:"h-7 px-2 text-[12px] border border-border rounded bg-background w-full font-mono focus:outline-none focus:ring-1 focus:ring-primary/50"}),y.hint&&w.jsx("p",{className:"text-[10px] text-muted-foreground/70 pl-0.5",children:y.hint})]})]},y.key)),o.filter(y=>e[y.key]!==void 0&&e[y.key]!=="").map(y=>w.jsxs("div",{className:"grid grid-cols-[190px_1fr] items-start gap-3",children:[w.jsx("span",{className:"text-[12px] text-right pt-1.5 text-muted-foreground/50",children:y.label}),w.jsxs("div",{className:"space-y-0.5",children:[w.jsx("div",{className:"h-7 px-2 flex items-center",children:w.jsx("span",{className:"text-[12px] font-mono text-muted-foreground/70 truncate",children:y.type==="password"?"••••••••":String(e[y.key])})}),y.hint&&w.jsx("p",{className:"text-[10px] text-muted-foreground/50 pl-0.5",children:y.hint})]})]},y.key)),w.jsxs("div",{className:"flex items-center justify-end gap-2 pt-1",children:[a&&w.jsxs("span",{className:"text-[11px] text-emerald-600 flex items-center gap-1",children:[w.jsx(dG,{size:11})," 저장됨"]}),w.jsxs("button",{type:"button",onClick:x,disabled:n,className:"flex items-center gap-1.5 px-3 py-1.5 text-[12px] bg-primary text-primary-foreground rounded hover:bg-primary/90 disabled:opacity-50 transition-colors",children:[w.jsx(pG,{size:11}),n?"저장 중...":"저장"]})]})]})]})]})}function vf({id:r,title:e,defaultOpen:t=!0,children:n}){const[a,i]=Z.useState(t);return w.jsxs("div",{id:r,className:"space-y-2 scroll-mt-4",children:[w.jsxs("button",{type:"button",onClick:()=>i(o=>!o),className:"flex items-center gap-1.5 text-[11px] font-semibold text-muted-foreground uppercase tracking-wider hover:text-foreground transition-colors w-full",children:[a?w.jsx(Ma,{size:11}):w.jsx(qa,{size:11}),e]}),a&&w.jsx("div",{className:"space-y-1.5",children:n})]})}const dy=[{id:"cfg-seller",label:"사업자 정보"},{id:"cfg-sell",label:"판매 채널"},{id:"cfg-source",label:"소싱 채널"},{id:"cfg-trend",label:"트렌드 · 외부 도구"},{id:"cfg-logistics",label:"물류 채널"},{id:"cfg-advanced",label:"고급 설정"}];function UK(){const[r,e]=Z.useState(dy[0].id);Z.useEffect(()=>{function n(){const a=window.innerHeight/3;let i=dy[0].id;for(const{id:o}of dy){const s=document.getElementById(o);s&&s.getBoundingClientRect().top<a&&(i=o)}e(i)}return window.addEventListener("scroll",n,{passive:!0}),()=>window.removeEventListener("scroll",n)},[]);function t(n){var a;(a=document.getElementById(n))==null||a.scrollIntoView({behavior:"smooth",block:"start"}),e(n)}return w.jsxs("nav",{className:"fixed top-8 right-6 w-36 z-20 pt-1",children:[w.jsx("p",{className:"text-[10px] font-semibold text-muted-foreground uppercase tracking-wider mb-2 px-2",children:"목차"}),w.jsx("ul",{className:"space-y-0.5",children:dy.map(n=>w.jsx("li",{children:w.jsx("button",{type:"button",onClick:()=>t(n.id),className:Ye("w-full text-left text-[12px] px-2 py-1.5 rounded border-l-2 transition-colors leading-tight",r===n.id?"border-primary text-foreground font-medium bg-muted/60":"border-transparent text-muted-foreground hover:text-foreground hover:bg-muted/30"),children:n.label})},n.id))})]})}function gv({title:r,description:e,fields:t,values:n,onSave:a,saving:i,saved:o,defaultOpen:s=!1,cliNote:l}){const[u,c]=Z.useState(s),[f,d]=Z.useState(()=>{const y={};for(const b of t){const S=n[b.key];b.type==="boolean"?y[b.key]=!!S:b.type==="number"?y[b.key]=S!==void 0&&S!==""?Number(S):"":y[b.key]=String(S??"")}return y}),[v,g]=Z.useState(n);if(n!==v){g(n);const y={};for(const b of t){const S=n[b.key];b.type==="boolean"?y[b.key]=!!S:b.type==="number"?y[b.key]=S!==void 0&&S!==""?Number(S):"":y[b.key]=String(S??"")}d(y)}function x(){const y={};for(const b of t){const S=f[b.key];S!==""&&S!==void 0&&(y[b.key]=S)}a(y)}return w.jsxs("div",{className:"border border-border rounded-lg overflow-hidden bg-card",children:[w.jsx("button",{type:"button",onClick:()=>c(y=>!y),className:"w-full flex items-center justify-between px-4 py-2.5 text-[13px] hover:bg-muted/30 transition-colors",children:w.jsxs("span",{className:"flex items-center gap-2",children:[u?w.jsx(Ma,{size:13,className:"text-muted-foreground"}):w.jsx(qa,{size:13,className:"text-muted-foreground"}),w.jsx("span",{className:"font-medium",children:r})]})}),u&&w.jsxs("div",{className:"border-t border-border bg-muted/10",children:[(e||l)&&w.jsxs("div",{className:"px-4 pt-3 pb-2 space-y-1 border-b border-border/50",children:[e&&w.jsx("p",{className:"text-[12px] text-muted-foreground leading-relaxed",children:e}),l&&w.jsx("code",{className:"text-[10px] font-mono bg-muted px-1.5 py-0.5 rounded text-foreground/70",children:l})]}),w.jsxs("div",{className:"px-4 py-4 space-y-2.5",children:[t.map(y=>w.jsxs("div",{className:"grid grid-cols-[190px_1fr] items-start gap-3",children:[w.jsxs("span",{className:Ye("text-[12px] text-right pt-1.5 leading-tight",y.optional?"text-muted-foreground/60":"text-muted-foreground"),children:[y.label,y.optional&&w.jsx("span",{className:"ml-1 text-[10px]",children:"(선택)"})]}),w.jsxs("div",{className:"space-y-0.5",children:[y.type==="boolean"?w.jsx("input",{type:"checkbox",checked:!!f[y.key],onChange:b=>d(S=>({...S,[y.key]:b.target.checked})),className:"w-4 h-4 accent-primary mt-1.5"}):w.jsx("input",{type:y.type==="password"?"password":y.type==="number"?"number":"text",value:String(f[y.key]??""),placeholder:y.placeholder??"",onChange:b=>d(S=>({...S,[y.key]:b.target.value})),className:"h-7 px-2 text-[12px] border border-border rounded bg-background w-full font-mono focus:outline-none focus:ring-1 focus:ring-primary/50"}),y.hint&&w.jsx("p",{className:"text-[10px] text-muted-foreground/70 pl-0.5",children:y.hint})]})]},y.key)),w.jsxs("div",{className:"flex items-center justify-end gap-2 pt-1",children:[o&&w.jsxs("span",{className:"text-[11px] text-emerald-600 flex items-center gap-1",children:[w.jsx(dG,{size:11})," 저장됨"]}),w.jsxs("button",{type:"button",onClick:x,disabled:i,className:"flex items-center gap-1.5 px-3 py-1.5 text-[12px] bg-primary text-primary-foreground rounded hover:bg-primary/90 disabled:opacity-50 transition-colors",children:[w.jsx(pG,{size:11}),i?"저장 중...":"저장"]})]})]})]})]})}function YK(){var d,v,g,x;const{data:r,isLoading:e,refetch:t}=vK(),[n,a]=Z.useState(null),[i,o]=Z.useState({}),[s,l]=Z.useState({});Z.useEffect(()=>{r&&a(r)},[r]);async function u(y,b){a(b),o(S=>({...S,[y]:!0}));try{await mK(b),l(S=>({...S,[y]:!0})),setTimeout(()=>l(S=>({...S,[y]:!1})),2e3),t()}finally{o(S=>({...S,[y]:!1}))}}function c(y,b){return S=>{var M;if(!n)return;const T=`${y}.${b}`,C=((M=n[y])==null?void 0:M[b])??{};u(T,{...n,[y]:{...n[y]??{},[b]:{...C,...S,channel:b}}})}}const f=y=>({saving:!!i[y],saved:!!s[y]});return e||!n?w.jsx("div",{className:"text-[13px] text-muted-foreground p-4",children:"설정 불러오는 중..."}):w.jsxs("div",{className:"flex gap-8 mx-auto max-w-[860px]",children:[w.jsxs("div",{className:"flex-1 min-w-0 space-y-8",children:[w.jsxs("div",{children:[w.jsx("h2",{className:"text-[17px] font-semibold",children:"설정"}),w.jsx("p",{className:"text-[12px] text-muted-foreground mt-0.5",children:"~/.shopport/config.json 과 양방향 동기화됩니다."}),w.jsxs("div",{className:"mt-2 px-3 py-2 bg-muted/50 rounded-lg border border-border/60 text-[11px] text-muted-foreground",children:["커맨드라인에서도 설정 가능:",w.jsx("code",{className:"ml-2 font-mono text-foreground/70",children:"sppt config set <채널> <키> <값>"}),w.jsx("span",{className:"mx-2 text-border",children:"·"}),w.jsx("code",{className:"font-mono text-foreground/70",children:"sppt config list"})]})]}),w.jsxs(vf,{id:"cfg-seller",title:"사업자 정보",children:[w.jsx(gv,{title:"사업자 기본 정보",description:"오픈마켓 입점 및 채널 온보딩에 활용됩니다. 사업자등록번호·통신판매업 신고번호는 쿠팡·스마트스토어 등 판매의 필수 전제 조건입니다.",cliNote:"sppt config set seller businessRegNumber <번호>",defaultOpen:!0,fields:[{key:"businessRegNumber",label:"사업자등록번호",type:"text",placeholder:"123-45-67890"},{key:"mailOrderRegNumber",label:"통신판매업 신고번호",type:"text",placeholder:"2024-서울강남-12345"},{key:"businessName",label:"상호명",type:"text"},{key:"representative",label:"대표자명",type:"text"}],values:n.seller??{},onSave:y=>u("seller",{...n,seller:y}),...f("seller")}),w.jsx(gv,{title:"연 매출 설정",description:"스마트스토어 Npay 등급, 카페24 카드 영중소 우대 등 채널별 수수료율이 연 매출 기준으로 결정됩니다. 대략적인 연 매출을 입력하면 정산 페이지의 수수료율 계산 정확도가 높아집니다.",defaultOpen:!0,fields:[{key:"annualRevenue",label:"연 매출 (원)",type:"number",placeholder:"500000000",optional:!0,hint:"정확하지 않아도 됩니다. 대략적인 구간만 맞아도 등급 판정에 충분합니다."}],values:{annualRevenue:((d=n.settlement)==null?void 0:d.annualRevenue)??""},onSave:y=>u("settlement.annualRevenue",{...n,settlement:{...n.settlement??{},annualRevenue:y.annualRevenue?Number(y.annualRevenue):void 0}}),...f("settlement.annualRevenue")})]}),w.jsx(vf,{id:"cfg-sell",title:"판매 채널",children:Object.entries(jK).map(([y,b])=>{var T,C;const S=VK.has(y);return w.jsx(pv,{schema:b,current:S?((T=n.browserChannels)==null?void 0:T[y])??{}:((C=n.channels)==null?void 0:C[y])??{},onSave:c(S?"browserChannels":"channels",y),...f(`${S?"browserChannels":"channels"}.${y}`)},y)})}),w.jsx(vf,{id:"cfg-source",title:"소싱 채널",children:Object.entries(GK).map(([y,b])=>{var S;return w.jsx(pv,{schema:b,current:((S=n.sourceChannels)==null?void 0:S[y])??{},onSave:c("sourceChannels",y),...f(`sourceChannels.${y}`)},y)})}),w.jsxs(vf,{id:"cfg-trend",title:"트렌드 · 외부 도구",children:[Object.entries(HK).map(([y,b])=>{var S;return w.jsx(pv,{schema:b,current:((S=n.trendChannels)==null?void 0:S[y])??{},onSave:c("trendChannels",y),...f(`trendChannels.${y}`)},y)}),w.jsx(pv,{schema:{label:"Apify",guide:"https://console.apify.com/account/integrations",cliNote:"sppt config set apify apiToken <token>",proxyNote:"shopport 공용 Apify 계정으로 전문몰 랭킹 등을 수집합니다. 크롤링 한도가 부족하거나 전용 계정이 필요하면 직접 설정하세요.",fields:[{key:"apiToken",label:"API Token",type:"password",hint:"Apify Console → Settings → Integrations"}]},current:n.apify??{},onSave:y=>u("apify",{...n,apify:y}),...f("apify")})]}),w.jsx(vf,{id:"cfg-logistics",title:"물류 채널",defaultOpen:!1,children:Object.entries(FK).map(([y,b])=>{var S;return w.jsx(pv,{schema:b,current:((S=n.logisticsChannels)==null?void 0:S[y])??{},onSave:c("logisticsChannels",y),...f(`logisticsChannels.${y}`)},y)})}),w.jsxs(vf,{id:"cfg-advanced",title:"고급 설정",defaultOpen:!1,children:[w.jsx(gv,{title:"소싱 환율 (USD → KRW)",description:"중국·해외 소싱 상품의 원가를 원화로 계산할 때 사용합니다.",fields:[{key:"usdToKrw",label:"환율",type:"number",placeholder:"1380",hint:"기본값: 1380",optional:!0}],values:{usdToKrw:n.usdToKrw??""},onSave:y=>u("usdToKrw",{...n,usdToKrw:y.usdToKrw?Number(y.usdToKrw):void 0}),...f("usdToKrw")}),w.jsx(gv,{title:"DB 연결",description:"PostgreSQL에 운영 이력, 상품 매핑, 주문 내역을 저장합니다. 설정하지 않으면 로컬 파일(JSONL)에 저장됩니다.",fields:[{key:"url",label:"Connection URL",type:"text",placeholder:"postgresql://user:pass@host:5432/db",optional:!0}],values:{url:((v=n.database)==null?void 0:v.url)??""},onSave:y=>u("database",{...n,database:y.url?{url:String(y.url)}:void 0}),...f("database")}),w.jsx(gv,{title:"프록시 설정",description:"Fly.io 정적 IP 프록시를 통해 쿠팡 IP 화이트리스트를 우회합니다.",fields:[{key:"enabled",label:"사용",type:"boolean"},{key:"baseUrl",label:"프록시 URL",type:"text",placeholder:"https://rocketsell-proxy.fly.dev",optional:!0}],values:{enabled:((g=n.proxy)==null?void 0:g.enabled)??!1,baseUrl:((x=n.proxy)==null?void 0:x.baseUrl)??""},onSave:y=>u("proxy",{...n,proxy:{enabled:!!y.enabled,baseUrl:y.baseUrl?String(y.baseUrl):void 0}}),...f("proxy")})]})]}),w.jsx("div",{className:"w-36 shrink-0","aria-hidden":"true"}),w.jsx(UK,{})]})}const Ls=r=>r.toISOString().slice(0,10),Gk=r=>{const e=new Date;return e.setDate(e.getDate()-r),e};function wM({from:r,to:e,onChange:t,className:n}){const a=!!r||!!e,i=[{label:"전체",fn:()=>t("","")},{label:"오늘",fn:()=>{const o=Ls(new Date);t(o,o)}},{label:"7일",fn:()=>t(Ls(Gk(7)),Ls(new Date))},{label:"이번 달",fn:()=>{const o=new Date;t(`${o.getFullYear()}-${String(o.getMonth()+1).padStart(2,"0")}-01`,Ls(o))}},{label:"지난 달",fn:()=>{const o=new Date;t(Ls(new Date(o.getFullYear(),o.getMonth()-1,1)),Ls(new Date(o.getFullYear(),o.getMonth(),0)))}},{label:"3개월",fn:()=>t(Ls(Gk(90)),Ls(new Date))}];return w.jsxs("div",{className:Ye("flex items-center gap-2 flex-wrap",n),children:[w.jsx("div",{className:"flex items-center gap-1",children:i.map(({label:o,fn:s})=>w.jsx("button",{type:"button",onClick:s,className:Ye("text-[11px] px-2 py-0.5 rounded border cursor-pointer transition-colors",o==="전체"&&!a?"border-primary/40 bg-primary/5 text-foreground":"border-border bg-card text-muted-foreground hover:text-foreground"),children:o},o))}),w.jsx("span",{className:"text-muted-foreground/30",children:"|"}),w.jsx("input",{type:"date",value:r,onChange:o=>t(o.target.value,e),className:"text-[12px] px-2 py-1 rounded-md border border-border bg-card outline-none"}),w.jsx("span",{className:"text-[11px] text-muted-foreground",children:"~"}),w.jsx("input",{type:"date",value:e,onChange:o=>t(r,o.target.value),className:"text-[12px] px-2 py-1 rounded-md border border-border bg-card outline-none"}),a&&w.jsxs("button",{type:"button",onClick:()=>t("",""),className:"text-[11px] text-muted-foreground hover:text-foreground flex items-center gap-0.5 cursor-pointer",children:[w.jsx(ic,{size:11})," 초기화"]})]})}const yG=6048e5,WK=864e5,xG=6e4,bG=36e5,vy=43200,Hk=1440,Fk=Symbol.for("constructDateFrom");function Hi(r,e){return typeof r=="function"?r(e):r&&typeof r=="object"&&Fk in r?r[Fk](e):r instanceof Date?new r.constructor(e):new Date(e)}function xr(r,e){return Hi(e||r,r)}let XK={};function Dg(){return XK}function Gp(r,e){var s,l,u,c;const t=Dg(),n=(e==null?void 0:e.weekStartsOn)??((l=(s=e==null?void 0:e.locale)==null?void 0:s.options)==null?void 0:l.weekStartsOn)??t.weekStartsOn??((c=(u=t.locale)==null?void 0:u.options)==null?void 0:c.weekStartsOn)??0,a=xr(r,e==null?void 0:e.in),i=a.getDay(),o=(i<n?7:0)+i-n;return a.setDate(a.getDate()-o),a.setHours(0,0,0,0),a}function fx(r,e){return Gp(r,{...e,weekStartsOn:1})}function _G(r,e){const t=xr(r,e==null?void 0:e.in),n=t.getFullYear(),a=Hi(t,0);a.setFullYear(n+1,0,4),a.setHours(0,0,0,0);const i=fx(a),o=Hi(t,0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);const s=fx(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function hx(r){const e=xr(r),t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),+r-+t}function R1(r,...e){const t=Hi.bind(null,r||e.find(n=>typeof n=="object"));return e.map(t)}function Uk(r,e){const t=xr(r,e==null?void 0:e.in);return t.setHours(0,0,0,0),t}function qK(r,e,t){const[n,a]=R1(t==null?void 0:t.in,r,e),i=Uk(n),o=Uk(a),s=+i-hx(i),l=+o-hx(o);return Math.round((s-l)/WK)}function ZK(r,e){const t=_G(r,e),n=Hi(r,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),fx(n)}function P0(r,e){const t=+xr(r)-+xr(e);return t<0?-1:t>0?1:t}function $K(r){return Hi(r,Date.now())}function KK(r){return r instanceof Date||typeof r=="object"&&Object.prototype.toString.call(r)==="[object Date]"}function QK(r){return!(!KK(r)&&typeof r!="number"||isNaN(+xr(r)))}function JK(r,e,t){const[n,a]=R1(t==null?void 0:t.in,r,e),i=n.getFullYear()-a.getFullYear(),o=n.getMonth()-a.getMonth();return i*12+o}function eQ(r){return e=>{const n=(r?Math[r]:Math.trunc)(e);return n===0?0:n}}function tQ(r,e){return+xr(r)-+xr(e)}function rQ(r,e){const t=xr(r,e==null?void 0:e.in);return t.setHours(23,59,59,999),t}function nQ(r,e){const t=xr(r,e==null?void 0:e.in),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function aQ(r,e){const t=xr(r,e==null?void 0:e.in);return+rQ(t,e)==+nQ(t,e)}function iQ(r,e,t){const[n,a,i]=R1(t==null?void 0:t.in,r,r,e),o=P0(a,i),s=Math.abs(JK(a,i));if(s<1)return 0;a.getMonth()===1&&a.getDate()>27&&a.setDate(30),a.setMonth(a.getMonth()-o*s);let l=P0(a,i)===-o;aQ(n)&&s===1&&P0(n,i)===1&&(l=!1);const u=o*(s-+l);return u===0?0:u}function oQ(r,e,t){const n=tQ(r,e)/1e3;return eQ(t==null?void 0:t.roundingMethod)(n)}function sQ(r,e){const t=xr(r,e==null?void 0:e.in);return t.setFullYear(t.getFullYear(),0,1),t.setHours(0,0,0,0),t}const lQ={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},uQ=(r,e,t)=>{let n;const a=lQ[r];return typeof a=="string"?n=a:e===1?n=a.one:n=a.other.replace("{{count}}",e.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"in "+n:n+" ago":n};function nh(r){return(e={})=>{const t=e.width?String(e.width):r.defaultWidth;return r.formats[t]||r.formats[r.defaultWidth]}}const cQ={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},fQ={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},hQ={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},dQ={date:nh({formats:cQ,defaultWidth:"full"}),time:nh({formats:fQ,defaultWidth:"full"}),dateTime:nh({formats:hQ,defaultWidth:"full"})},vQ={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},pQ=(r,e,t,n)=>vQ[r];function Mi(r){return(e,t)=>{const n=t!=null&&t.context?String(t.context):"standalone";let a;if(n==="formatting"&&r.formattingValues){const o=r.defaultFormattingWidth||r.defaultWidth,s=t!=null&&t.width?String(t.width):o;a=r.formattingValues[s]||r.formattingValues[o]}else{const o=r.defaultWidth,s=t!=null&&t.width?String(t.width):r.defaultWidth;a=r.values[s]||r.values[o]}const i=r.argumentCallback?r.argumentCallback(e):e;return a[i]}}const gQ={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},mQ={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},yQ={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},xQ={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},bQ={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},_Q={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},SQ=(r,e)=>{const t=Number(r),n=t%100;if(n>20||n<10)switch(n%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"},wQ={ordinalNumber:SQ,era:Mi({values:gQ,defaultWidth:"wide"}),quarter:Mi({values:mQ,defaultWidth:"wide",argumentCallback:r=>r-1}),month:Mi({values:yQ,defaultWidth:"wide"}),day:Mi({values:xQ,defaultWidth:"wide"}),dayPeriod:Mi({values:bQ,defaultWidth:"wide",formattingValues:_Q,defaultFormattingWidth:"wide"})};function Di(r){return(e,t={})=>{const n=t.width,a=n&&r.matchPatterns[n]||r.matchPatterns[r.defaultMatchWidth],i=e.match(a);if(!i)return null;const o=i[0],s=n&&r.parsePatterns[n]||r.parsePatterns[r.defaultParseWidth],l=Array.isArray(s)?CQ(s,f=>f.test(o)):TQ(s,f=>f.test(o));let u;u=r.valueCallback?r.valueCallback(l):l,u=t.valueCallback?t.valueCallback(u):u;const c=e.slice(o.length);return{value:u,rest:c}}}function TQ(r,e){for(const t in r)if(Object.prototype.hasOwnProperty.call(r,t)&&e(r[t]))return t}function CQ(r,e){for(let t=0;t<r.length;t++)if(e(r[t]))return t}function SG(r){return(e,t={})=>{const n=e.match(r.matchPattern);if(!n)return null;const a=n[0],i=e.match(r.parsePattern);if(!i)return null;let o=r.valueCallback?r.valueCallback(i[0]):i[0];o=t.valueCallback?t.valueCallback(o):o;const s=e.slice(a.length);return{value:o,rest:s}}}const AQ=/^(\d+)(th|st|nd|rd)?/i,MQ=/\d+/i,DQ={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},LQ={any:[/^b/i,/^(a|c)/i]},NQ={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},RQ={any:[/1/i,/2/i,/3/i,/4/i]},EQ={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},IQ={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},kQ={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},OQ={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},PQ={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},zQ={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},BQ={ordinalNumber:SG({matchPattern:AQ,parsePattern:MQ,valueCallback:r=>parseInt(r,10)}),era:Di({matchPatterns:DQ,defaultMatchWidth:"wide",parsePatterns:LQ,defaultParseWidth:"any"}),quarter:Di({matchPatterns:NQ,defaultMatchWidth:"wide",parsePatterns:RQ,defaultParseWidth:"any",valueCallback:r=>r+1}),month:Di({matchPatterns:EQ,defaultMatchWidth:"wide",parsePatterns:IQ,defaultParseWidth:"any"}),day:Di({matchPatterns:kQ,defaultMatchWidth:"wide",parsePatterns:OQ,defaultParseWidth:"any"}),dayPeriod:Di({matchPatterns:PQ,defaultMatchWidth:"any",parsePatterns:zQ,defaultParseWidth:"any"})},wG={code:"en-US",formatDistance:uQ,formatLong:dQ,formatRelative:pQ,localize:wQ,match:BQ,options:{weekStartsOn:0,firstWeekContainsDate:1}};function jQ(r,e){const t=xr(r,e==null?void 0:e.in);return qK(t,sQ(t))+1}function VQ(r,e){const t=xr(r,e==null?void 0:e.in),n=+fx(t)-+ZK(t);return Math.round(n/yG)+1}function TG(r,e){var c,f,d,v;const t=xr(r,e==null?void 0:e.in),n=t.getFullYear(),a=Dg(),i=(e==null?void 0:e.firstWeekContainsDate)??((f=(c=e==null?void 0:e.locale)==null?void 0:c.options)==null?void 0:f.firstWeekContainsDate)??a.firstWeekContainsDate??((v=(d=a.locale)==null?void 0:d.options)==null?void 0:v.firstWeekContainsDate)??1,o=Hi((e==null?void 0:e.in)||r,0);o.setFullYear(n+1,0,i),o.setHours(0,0,0,0);const s=Gp(o,e),l=Hi((e==null?void 0:e.in)||r,0);l.setFullYear(n,0,i),l.setHours(0,0,0,0);const u=Gp(l,e);return+t>=+s?n+1:+t>=+u?n:n-1}function GQ(r,e){var s,l,u,c;const t=Dg(),n=(e==null?void 0:e.firstWeekContainsDate)??((l=(s=e==null?void 0:e.locale)==null?void 0:s.options)==null?void 0:l.firstWeekContainsDate)??t.firstWeekContainsDate??((c=(u=t.locale)==null?void 0:u.options)==null?void 0:c.firstWeekContainsDate)??1,a=TG(r,e),i=Hi((e==null?void 0:e.in)||r,0);return i.setFullYear(a,0,n),i.setHours(0,0,0,0),Gp(i,e)}function HQ(r,e){const t=xr(r,e==null?void 0:e.in),n=+Gp(t,e)-+GQ(t,e);return Math.round(n/yG)+1}function Ot(r,e){const t=r<0?"-":"",n=Math.abs(r).toString().padStart(e,"0");return t+n}const Ns={y(r,e){const t=r.getFullYear(),n=t>0?t:1-t;return Ot(e==="yy"?n%100:n,e.length)},M(r,e){const t=r.getMonth();return e==="M"?String(t+1):Ot(t+1,2)},d(r,e){return Ot(r.getDate(),e.length)},a(r,e){const t=r.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return t.toUpperCase();case"aaa":return t;case"aaaaa":return t[0];case"aaaa":default:return t==="am"?"a.m.":"p.m."}},h(r,e){return Ot(r.getHours()%12||12,e.length)},H(r,e){return Ot(r.getHours(),e.length)},m(r,e){return Ot(r.getMinutes(),e.length)},s(r,e){return Ot(r.getSeconds(),e.length)},S(r,e){const t=e.length,n=r.getMilliseconds(),a=Math.trunc(n*Math.pow(10,t-3));return Ot(a,e.length)}},pf={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Yk={G:function(r,e,t){const n=r.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return t.era(n,{width:"abbreviated"});case"GGGGG":return t.era(n,{width:"narrow"});case"GGGG":default:return t.era(n,{width:"wide"})}},y:function(r,e,t){if(e==="yo"){const n=r.getFullYear(),a=n>0?n:1-n;return t.ordinalNumber(a,{unit:"year"})}return Ns.y(r,e)},Y:function(r,e,t,n){const a=TG(r,n),i=a>0?a:1-a;if(e==="YY"){const o=i%100;return Ot(o,2)}return e==="Yo"?t.ordinalNumber(i,{unit:"year"}):Ot(i,e.length)},R:function(r,e){const t=_G(r);return Ot(t,e.length)},u:function(r,e){const t=r.getFullYear();return Ot(t,e.length)},Q:function(r,e,t){const n=Math.ceil((r.getMonth()+1)/3);switch(e){case"Q":return String(n);case"QQ":return Ot(n,2);case"Qo":return t.ordinalNumber(n,{unit:"quarter"});case"QQQ":return t.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return t.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return t.quarter(n,{width:"wide",context:"formatting"})}},q:function(r,e,t){const n=Math.ceil((r.getMonth()+1)/3);switch(e){case"q":return String(n);case"qq":return Ot(n,2);case"qo":return t.ordinalNumber(n,{unit:"quarter"});case"qqq":return t.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return t.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return t.quarter(n,{width:"wide",context:"standalone"})}},M:function(r,e,t){const n=r.getMonth();switch(e){case"M":case"MM":return Ns.M(r,e);case"Mo":return t.ordinalNumber(n+1,{unit:"month"});case"MMM":return t.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return t.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return t.month(n,{width:"wide",context:"formatting"})}},L:function(r,e,t){const n=r.getMonth();switch(e){case"L":return String(n+1);case"LL":return Ot(n+1,2);case"Lo":return t.ordinalNumber(n+1,{unit:"month"});case"LLL":return t.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return t.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return t.month(n,{width:"wide",context:"standalone"})}},w:function(r,e,t,n){const a=HQ(r,n);return e==="wo"?t.ordinalNumber(a,{unit:"week"}):Ot(a,e.length)},I:function(r,e,t){const n=VQ(r);return e==="Io"?t.ordinalNumber(n,{unit:"week"}):Ot(n,e.length)},d:function(r,e,t){return e==="do"?t.ordinalNumber(r.getDate(),{unit:"date"}):Ns.d(r,e)},D:function(r,e,t){const n=jQ(r);return e==="Do"?t.ordinalNumber(n,{unit:"dayOfYear"}):Ot(n,e.length)},E:function(r,e,t){const n=r.getDay();switch(e){case"E":case"EE":case"EEE":return t.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return t.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(n,{width:"short",context:"formatting"});case"EEEE":default:return t.day(n,{width:"wide",context:"formatting"})}},e:function(r,e,t,n){const a=r.getDay(),i=(a-n.weekStartsOn+8)%7||7;switch(e){case"e":return String(i);case"ee":return Ot(i,2);case"eo":return t.ordinalNumber(i,{unit:"day"});case"eee":return t.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return t.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(a,{width:"short",context:"formatting"});case"eeee":default:return t.day(a,{width:"wide",context:"formatting"})}},c:function(r,e,t,n){const a=r.getDay(),i=(a-n.weekStartsOn+8)%7||7;switch(e){case"c":return String(i);case"cc":return Ot(i,e.length);case"co":return t.ordinalNumber(i,{unit:"day"});case"ccc":return t.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return t.day(a,{width:"narrow",context:"standalone"});case"cccccc":return t.day(a,{width:"short",context:"standalone"});case"cccc":default:return t.day(a,{width:"wide",context:"standalone"})}},i:function(r,e,t){const n=r.getDay(),a=n===0?7:n;switch(e){case"i":return String(a);case"ii":return Ot(a,e.length);case"io":return t.ordinalNumber(a,{unit:"day"});case"iii":return t.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return t.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return t.day(n,{width:"short",context:"formatting"});case"iiii":default:return t.day(n,{width:"wide",context:"formatting"})}},a:function(r,e,t){const a=r.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return t.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return t.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return t.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return t.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(r,e,t){const n=r.getHours();let a;switch(n===12?a=pf.noon:n===0?a=pf.midnight:a=n/12>=1?"pm":"am",e){case"b":case"bb":return t.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return t.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return t.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return t.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(r,e,t){const n=r.getHours();let a;switch(n>=17?a=pf.evening:n>=12?a=pf.afternoon:n>=4?a=pf.morning:a=pf.night,e){case"B":case"BB":case"BBB":return t.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return t.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return t.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(r,e,t){if(e==="ho"){let n=r.getHours()%12;return n===0&&(n=12),t.ordinalNumber(n,{unit:"hour"})}return Ns.h(r,e)},H:function(r,e,t){return e==="Ho"?t.ordinalNumber(r.getHours(),{unit:"hour"}):Ns.H(r,e)},K:function(r,e,t){const n=r.getHours()%12;return e==="Ko"?t.ordinalNumber(n,{unit:"hour"}):Ot(n,e.length)},k:function(r,e,t){let n=r.getHours();return n===0&&(n=24),e==="ko"?t.ordinalNumber(n,{unit:"hour"}):Ot(n,e.length)},m:function(r,e,t){return e==="mo"?t.ordinalNumber(r.getMinutes(),{unit:"minute"}):Ns.m(r,e)},s:function(r,e,t){return e==="so"?t.ordinalNumber(r.getSeconds(),{unit:"second"}):Ns.s(r,e)},S:function(r,e){return Ns.S(r,e)},X:function(r,e,t){const n=r.getTimezoneOffset();if(n===0)return"Z";switch(e){case"X":return Xk(n);case"XXXX":case"XX":return Su(n);case"XXXXX":case"XXX":default:return Su(n,":")}},x:function(r,e,t){const n=r.getTimezoneOffset();switch(e){case"x":return Xk(n);case"xxxx":case"xx":return Su(n);case"xxxxx":case"xxx":default:return Su(n,":")}},O:function(r,e,t){const n=r.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+Wk(n,":");case"OOOO":default:return"GMT"+Su(n,":")}},z:function(r,e,t){const n=r.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+Wk(n,":");case"zzzz":default:return"GMT"+Su(n,":")}},t:function(r,e,t){const n=Math.trunc(+r/1e3);return Ot(n,e.length)},T:function(r,e,t){return Ot(+r,e.length)}};function Wk(r,e=""){const t=r>0?"-":"+",n=Math.abs(r),a=Math.trunc(n/60),i=n%60;return i===0?t+String(a):t+String(a)+e+Ot(i,2)}function Xk(r,e){return r%60===0?(r>0?"-":"+")+Ot(Math.abs(r)/60,2):Su(r,e)}function Su(r,e=""){const t=r>0?"-":"+",n=Math.abs(r),a=Ot(Math.trunc(n/60),2),i=Ot(n%60,2);return t+a+e+i}const qk=(r,e)=>{switch(r){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},CG=(r,e)=>{switch(r){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},FQ=(r,e)=>{const t=r.match(/(P+)(p+)?/)||[],n=t[1],a=t[2];if(!a)return qk(r,e);let i;switch(n){case"P":i=e.dateTime({width:"short"});break;case"PP":i=e.dateTime({width:"medium"});break;case"PPP":i=e.dateTime({width:"long"});break;case"PPPP":default:i=e.dateTime({width:"full"});break}return i.replace("{{date}}",qk(n,e)).replace("{{time}}",CG(a,e))},UQ={p:CG,P:FQ},YQ=/^D+$/,WQ=/^Y+$/,XQ=["D","DD","YY","YYYY"];function qQ(r){return YQ.test(r)}function ZQ(r){return WQ.test(r)}function $Q(r,e,t){const n=KQ(r,e,t);if(console.warn(n),XQ.includes(r))throw new RangeError(n)}function KQ(r,e,t){const n=r[0]==="Y"?"years":"days of the month";return`Use \`${r.toLowerCase()}\` instead of \`${r}\` (in \`${e}\`) for formatting ${n} to the input \`${t}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const QQ=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,JQ=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,eJ=/^'([^]*?)'?$/,tJ=/''/g,rJ=/[a-zA-Z]/;function nJ(r,e,t){var c,f,d,v,g,x,y,b;const n=Dg(),a=(t==null?void 0:t.locale)??n.locale??wG,i=(t==null?void 0:t.firstWeekContainsDate)??((f=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:f.firstWeekContainsDate)??n.firstWeekContainsDate??((v=(d=n.locale)==null?void 0:d.options)==null?void 0:v.firstWeekContainsDate)??1,o=(t==null?void 0:t.weekStartsOn)??((x=(g=t==null?void 0:t.locale)==null?void 0:g.options)==null?void 0:x.weekStartsOn)??n.weekStartsOn??((b=(y=n.locale)==null?void 0:y.options)==null?void 0:b.weekStartsOn)??0,s=xr(r,t==null?void 0:t.in);if(!QK(s))throw new RangeError("Invalid time value");let l=e.match(JQ).map(S=>{const T=S[0];if(T==="p"||T==="P"){const C=UQ[T];return C(S,a.formatLong)}return S}).join("").match(QQ).map(S=>{if(S==="''")return{isToken:!1,value:"'"};const T=S[0];if(T==="'")return{isToken:!1,value:aJ(S)};if(Yk[T])return{isToken:!0,value:S};if(T.match(rJ))throw new RangeError("Format string contains an unescaped latin alphabet character `"+T+"`");return{isToken:!1,value:S}});a.localize.preprocessor&&(l=a.localize.preprocessor(s,l));const u={firstWeekContainsDate:i,weekStartsOn:o,locale:a};return l.map(S=>{if(!S.isToken)return S.value;const T=S.value;(!(t!=null&&t.useAdditionalWeekYearTokens)&&ZQ(T)||!(t!=null&&t.useAdditionalDayOfYearTokens)&&qQ(T))&&$Q(T,e,String(r));const C=Yk[T[0]];return C(s,T,a.localize,u)}).join("")}function aJ(r){const e=r.match(eJ);return e?e[1].replace(tJ,"'"):r}function iJ(r,e,t){const n=Dg(),a=(t==null?void 0:t.locale)??n.locale??wG,i=2520,o=P0(r,e);if(isNaN(o))throw new RangeError("Invalid time value");const s=Object.assign({},t,{addSuffix:t==null?void 0:t.addSuffix,comparison:o}),[l,u]=R1(t==null?void 0:t.in,...o>0?[e,r]:[r,e]),c=oQ(u,l),f=(hx(u)-hx(l))/1e3,d=Math.round((c-f)/60);let v;if(d<2)return t!=null&&t.includeSeconds?c<5?a.formatDistance("lessThanXSeconds",5,s):c<10?a.formatDistance("lessThanXSeconds",10,s):c<20?a.formatDistance("lessThanXSeconds",20,s):c<40?a.formatDistance("halfAMinute",0,s):c<60?a.formatDistance("lessThanXMinutes",1,s):a.formatDistance("xMinutes",1,s):d===0?a.formatDistance("lessThanXMinutes",1,s):a.formatDistance("xMinutes",d,s);if(d<45)return a.formatDistance("xMinutes",d,s);if(d<90)return a.formatDistance("aboutXHours",1,s);if(d<Hk){const g=Math.round(d/60);return a.formatDistance("aboutXHours",g,s)}else{if(d<i)return a.formatDistance("xDays",1,s);if(d<vy){const g=Math.round(d/Hk);return a.formatDistance("xDays",g,s)}else if(d<vy*2)return v=Math.round(d/vy),a.formatDistance("aboutXMonths",v,s)}if(v=iQ(u,l),v<12){const g=Math.round(d/vy);return a.formatDistance("xMonths",g,s)}else{const g=v%12,x=Math.trunc(v/12);return g<3?a.formatDistance("aboutXYears",x,s):g<9?a.formatDistance("overXYears",x,s):a.formatDistance("almostXYears",x+1,s)}}function TM(r,e){return iJ(r,$K(r),e)}function oJ(r,e){const t=()=>Hi(e==null?void 0:e.in,NaN),a=cJ(r);let i;if(a.date){const u=fJ(a.date,2);i=hJ(u.restDateString,u.year)}if(!i||isNaN(+i))return t();const o=+i;let s=0,l;if(a.time&&(s=dJ(a.time),isNaN(s)))return t();if(a.timezone){if(l=vJ(a.timezone),isNaN(l))return t()}else{const u=new Date(o+s),c=xr(0,e==null?void 0:e.in);return c.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),c.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),c}return xr(o+s+l,e==null?void 0:e.in)}const py={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},sJ=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,lJ=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,uJ=/^([+-])(\d{2})(?::?(\d{2}))?$/;function cJ(r){const e={},t=r.split(py.dateTimeDelimiter);let n;if(t.length>2)return e;if(/:/.test(t[0])?n=t[0]:(e.date=t[0],n=t[1],py.timeZoneDelimiter.test(e.date)&&(e.date=r.split(py.timeZoneDelimiter)[0],n=r.substr(e.date.length,r.length))),n){const a=py.timezone.exec(n);a?(e.time=n.replace(a[1],""),e.timezone=a[1]):e.time=n}return e}function fJ(r,e){const t=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),n=r.match(t);if(!n)return{year:NaN,restDateString:""};const a=n[1]?parseInt(n[1]):null,i=n[2]?parseInt(n[2]):null;return{year:i===null?a:i*100,restDateString:r.slice((n[1]||n[2]).length)}}function hJ(r,e){if(e===null)return new Date(NaN);const t=r.match(sJ);if(!t)return new Date(NaN);const n=!!t[4],a=mv(t[1]),i=mv(t[2])-1,o=mv(t[3]),s=mv(t[4]),l=mv(t[5])-1;if(n)return xJ(e,s,l)?pJ(e,s,l):new Date(NaN);{const u=new Date(0);return!mJ(e,i,o)||!yJ(e,a)?new Date(NaN):(u.setUTCFullYear(e,i,Math.max(a,o)),u)}}function mv(r){return r?parseInt(r):1}function dJ(r){const e=r.match(lJ);if(!e)return NaN;const t=VS(e[1]),n=VS(e[2]),a=VS(e[3]);return bJ(t,n,a)?t*bG+n*xG+a*1e3:NaN}function VS(r){return r&&parseFloat(r.replace(",","."))||0}function vJ(r){if(r==="Z")return 0;const e=r.match(uJ);if(!e)return 0;const t=e[1]==="+"?-1:1,n=parseInt(e[2]),a=e[3]&&parseInt(e[3])||0;return _J(n,a)?t*(n*bG+a*xG):NaN}function pJ(r,e,t){const n=new Date(0);n.setUTCFullYear(r,0,4);const a=n.getUTCDay()||7,i=(e-1)*7+t+1-a;return n.setUTCDate(n.getUTCDate()+i),n}const gJ=[31,null,31,30,31,30,31,31,30,31,30,31];function AG(r){return r%400===0||r%4===0&&r%100!==0}function mJ(r,e,t){return e>=0&&e<=11&&t>=1&&t<=(gJ[e]||(AG(r)?29:28))}function yJ(r,e){return e>=1&&e<=(AG(r)?366:365)}function xJ(r,e,t){return e>=1&&e<=53&&t>=0&&t<=6}function bJ(r,e,t){return r===24?e===0&&t===0:t>=0&&t<60&&e>=0&&e<60&&r>=0&&r<25}function _J(r,e){return e>=0&&e<=59}const SJ={lessThanXSeconds:{one:"1초 미만",other:"{{count}}초 미만"},xSeconds:{one:"1초",other:"{{count}}초"},halfAMinute:"30초",lessThanXMinutes:{one:"1분 미만",other:"{{count}}분 미만"},xMinutes:{one:"1분",other:"{{count}}분"},aboutXHours:{one:"약 1시간",other:"약 {{count}}시간"},xHours:{one:"1시간",other:"{{count}}시간"},xDays:{one:"1일",other:"{{count}}일"},aboutXWeeks:{one:"약 1주",other:"약 {{count}}주"},xWeeks:{one:"1주",other:"{{count}}주"},aboutXMonths:{one:"약 1개월",other:"약 {{count}}개월"},xMonths:{one:"1개월",other:"{{count}}개월"},aboutXYears:{one:"약 1년",other:"약 {{count}}년"},xYears:{one:"1년",other:"{{count}}년"},overXYears:{one:"1년 이상",other:"{{count}}년 이상"},almostXYears:{one:"거의 1년",other:"거의 {{count}}년"}},wJ=(r,e,t)=>{let n;const a=SJ[r];return typeof a=="string"?n=a:e===1?n=a.one:n=a.other.replace("{{count}}",e.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?n+" 후":n+" 전":n},TJ={full:"y년 M월 d일 EEEE",long:"y년 M월 d일",medium:"y.MM.dd",short:"y.MM.dd"},CJ={full:"a H시 mm분 ss초 zzzz",long:"a H:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},AJ={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},MJ={date:nh({formats:TJ,defaultWidth:"full"}),time:nh({formats:CJ,defaultWidth:"full"}),dateTime:nh({formats:AJ,defaultWidth:"full"})},DJ={lastWeek:"'지난' eeee p",yesterday:"'어제' p",today:"'오늘' p",tomorrow:"'내일' p",nextWeek:"'다음' eeee p",other:"P"},LJ=(r,e,t,n)=>DJ[r],NJ={narrow:["BC","AD"],abbreviated:["BC","AD"],wide:["기원전","서기"]},RJ={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1분기","2분기","3분기","4분기"]},EJ={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],wide:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]},IJ={narrow:["일","월","화","수","목","금","토"],short:["일","월","화","수","목","금","토"],abbreviated:["일","월","화","수","목","금","토"],wide:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},kJ={narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},OJ={narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},PJ=(r,e)=>{const t=Number(r);switch(String(e==null?void 0:e.unit)){case"minute":case"second":return String(t);case"date":return t+"일";default:return t+"번째"}},zJ={ordinalNumber:PJ,era:Mi({values:NJ,defaultWidth:"wide"}),quarter:Mi({values:RJ,defaultWidth:"wide",argumentCallback:r=>r-1}),month:Mi({values:EJ,defaultWidth:"wide"}),day:Mi({values:IJ,defaultWidth:"wide"}),dayPeriod:Mi({values:kJ,defaultWidth:"wide",formattingValues:OJ,defaultFormattingWidth:"wide"})},BJ=/^(\d+)(일|번째)?/i,jJ=/\d+/i,VJ={narrow:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(기원전|서기)/i},GJ={any:[/^(bc|기원전)/i,/^(ad|서기)/i]},HJ={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]사?분기/i},FJ={any:[/1/i,/2/i,/3/i,/4/i]},UJ={narrow:/^(1[012]|[123456789])/,abbreviated:/^(1[012]|[123456789])월/i,wide:/^(1[012]|[123456789])월/i},YJ={any:[/^1월?$/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},WJ={narrow:/^[일월화수목금토]/,short:/^[일월화수목금토]/,abbreviated:/^[일월화수목금토]/,wide:/^[일월화수목금토]요일/},XJ={any:[/^일/,/^월/,/^화/,/^수/,/^목/,/^금/,/^토/]},qJ={any:/^(am|pm|오전|오후|자정|정오|아침|저녁|밤)/i},ZJ={any:{am:/^(am|오전)/i,pm:/^(pm|오후)/i,midnight:/^자정/i,noon:/^정오/i,morning:/^아침/i,afternoon:/^오후/i,evening:/^저녁/i,night:/^밤/i}},$J={ordinalNumber:SG({matchPattern:BJ,parsePattern:jJ,valueCallback:r=>parseInt(r,10)}),era:Di({matchPatterns:VJ,defaultMatchWidth:"wide",parsePatterns:GJ,defaultParseWidth:"any"}),quarter:Di({matchPatterns:HJ,defaultMatchWidth:"wide",parsePatterns:FJ,defaultParseWidth:"any",valueCallback:r=>r+1}),month:Di({matchPatterns:UJ,defaultMatchWidth:"wide",parsePatterns:YJ,defaultParseWidth:"any"}),day:Di({matchPatterns:WJ,defaultMatchWidth:"wide",parsePatterns:XJ,defaultParseWidth:"any"}),dayPeriod:Di({matchPatterns:qJ,defaultMatchWidth:"any",parsePatterns:ZJ,defaultParseWidth:"any"})},E1={code:"ko",formatDistance:wJ,formatLong:MJ,formatRelative:LJ,localize:zJ,match:$J,options:{weekStartsOn:0,firstWeekContainsDate:1}};function KJ(){const r=window.location.hash.slice(1),e=r.includes("?")?r.split("?")[1]:"",n=new URLSearchParams(e).get("status");return n?new Set(n.split(",")):new Set}const QJ={pending:"결제대기",paid:"결제완료",confirmed:"구매확정",preparing:"발송준비",shipped:"배송중",delivered:"배송완료",cancelled:"취소",returned:"반품",unknown:"알수없음"},Zk={pending:"bg-amber-100 text-amber-700 dark:bg-amber-950/50 dark:text-amber-400",paid:"bg-blue-100 text-blue-700 dark:bg-blue-950/50 dark:text-blue-400",confirmed:"bg-emerald-100 text-emerald-700 dark:bg-emerald-950/50 dark:text-emerald-400",preparing:"bg-purple-100 text-purple-700 dark:bg-purple-950/50 dark:text-purple-400",shipped:"bg-sky-100 text-sky-700 dark:bg-sky-950/50 dark:text-sky-400",delivered:"bg-green-100 text-green-700 dark:bg-green-950/50 dark:text-green-400",cancelled:"bg-muted text-muted-foreground",returned:"bg-red-100 text-red-700 dark:bg-red-950/50 dark:text-red-400",unknown:"bg-muted text-muted-foreground"},$k={cafe24:"카페24",coupang:"쿠팡",smartstore:"스마트스토어",shopify:"Shopify","toss-shopping":"토스쇼핑","29cm":"29CM",musinsa:"무신사",kurly:"컬리",ssf:"SSF",bronte:"브론테",ezadmin:"이지어드민"};function Kk({status:r}){return w.jsx("span",{className:Ye("inline-block text-[10px] font-medium px-1.5 py-0.5 rounded-full",Zk[r]??Zk.unknown),children:QJ[r]??r})}function JJ(r){if(!r)return"-";try{return nJ(oJ(r),"MM.dd HH:mm",{locale:E1})}catch{return r.slice(0,10)}}function Qk({label:r,options:e,selected:t,onToggle:n,onClear:a,renderOption:i}){const[o,s]=Z.useState(!1),l=Z.useRef(null);return w.jsxs("div",{className:"relative",ref:l,children:[w.jsxs("button",{type:"button",onClick:()=>s(!o),className:Ye("flex items-center gap-1 text-[12px] px-2.5 py-1 rounded-md border cursor-pointer transition-colors",t.size>0?"border-primary/40 bg-primary/5 text-foreground":"border-border bg-card text-muted-foreground"),children:[r,t.size>0&&w.jsx("span",{className:"text-[10px] font-semibold bg-primary/10 text-primary px-1 rounded",children:t.size}),w.jsx(Ma,{size:12,className:Ye("transition-transform",o&&"rotate-180")})]}),o&&w.jsxs(w.Fragment,{children:[w.jsx("div",{className:"fixed inset-0 z-10",onClick:()=>s(!1)}),w.jsxs("div",{className:"absolute top-full left-0 mt-1 z-20 bg-card border border-border rounded-lg shadow-lg py-1 min-w-[160px]",children:[t.size>0&&w.jsxs("button",{type:"button",onClick:()=>{a(),s(!1)},className:"w-full text-left px-3 py-1.5 text-[11px] text-muted-foreground hover:bg-muted/50 flex items-center gap-1",children:[w.jsx(ic,{size:10})," 초기화"]}),e.map(u=>w.jsxs("label",{className:"flex items-center gap-2 px-3 py-1.5 text-[12px] hover:bg-muted/50 cursor-pointer",children:[w.jsx("input",{type:"checkbox",checked:t.has(u),onChange:()=>n(u),className:"rounded border-border"}),i?i(u):u]},u))]})]})]})}function eee({label:r,value:e,onChange:t}){return w.jsxs("div",{className:"relative",children:[w.jsx("input",{type:"text",placeholder:r,value:e,onChange:n=>t(n.target.value),className:Ye("text-[12px] px-2.5 py-1 rounded-md border bg-card w-[140px] outline-none transition-colors",e?"border-primary/40 text-foreground":"border-border text-muted-foreground placeholder:text-muted-foreground/60")}),e&&w.jsx("button",{type:"button",onClick:()=>t(""),className:"absolute right-1.5 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground",children:w.jsx(ic,{size:11})})]})}function tee(){const[r,e]=Z.useState(""),[t,n]=Z.useState(""),a=!!r||!!t,{data:i,isLoading:o,error:s}=uK(a?{from:r,to:t}:void 0),l=(i==null?void 0:i.orders)??[],[u,c]=Z.useState(new Set),[f,d]=Z.useState(KJ),[v,g]=Z.useState(""),x=Z.useMemo(()=>[...new Set(l.map(C=>C.channel))].sort(),[l]),y=Z.useMemo(()=>[...new Set(l.map(C=>C.status))].sort(),[l]),b=Z.useMemo(()=>l.filter(C=>!(u.size>0&&!u.has(C.channel)||f.size>0&&!f.has(C.status)||v&&!C.productName.toLowerCase().includes(v.toLowerCase()))),[l,u,f,v]),S=(C,M)=>{const D=new Set(C);return D.has(M)?D.delete(M):D.add(M),D},T=u.size>0||f.size>0||v;return w.jsxs("div",{children:[w.jsxs("div",{className:"flex items-center justify-between mb-4",children:[w.jsx("h2",{className:"text-xl font-medium",children:"주문 현황"}),w.jsx("span",{className:"text-[12px] text-muted-foreground",children:T?`${b.length.toLocaleString()} / ${((i==null?void 0:i.total)??0).toLocaleString()}건`:`총 ${((i==null?void 0:i.total)??0).toLocaleString()}건`})]}),w.jsx(wM,{from:r,to:t,onChange:(C,M)=>{e(C),n(M)},className:"mb-4"}),l.length>0&&w.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-4",children:[w.jsx(Qk,{label:"채널",options:x,selected:u,onToggle:C=>c(S(u,C)),onClear:()=>c(new Set),renderOption:C=>w.jsx("span",{children:$k[C]??C})}),w.jsx(Qk,{label:"상태",options:y,selected:f,onToggle:C=>d(S(f,C)),onClear:()=>d(new Set),renderOption:C=>w.jsx(Kk,{status:C})}),w.jsx(eee,{label:"상품 검색",value:v,onChange:g}),T&&w.jsxs("button",{type:"button",onClick:()=>{c(new Set),d(new Set),g("")},className:"text-[11px] text-muted-foreground hover:text-foreground flex items-center gap-0.5 cursor-pointer",children:[w.jsx(ic,{size:11})," 전체 초기화"]})]}),o?w.jsx("div",{className:"text-sm text-muted-foreground py-8 text-center",children:"불러오는 중..."}):s?w.jsx("div",{className:"text-sm text-destructive py-8 text-center",children:"주문 조회 실패"}):l.length===0?w.jsxs("div",{className:"border border-dashed border-border rounded-lg p-12 text-center text-muted-foreground text-sm",children:["주문 데이터가 없습니다.",w.jsx("div",{className:"text-[11px] mt-1",children:"판매 채널을 연결하거나 sppt import로 데이터를 가져오세요."})]}):w.jsx("div",{className:"border border-border rounded-lg overflow-hidden",children:w.jsxs("table",{className:"w-full text-[12px] border-collapse",children:[w.jsx("thead",{children:w.jsxs("tr",{className:"border-b border-border bg-muted/40 text-[11px] font-semibold text-muted-foreground",children:[w.jsx("th",{className:"px-3 py-2 text-left",children:"채널"}),w.jsx("th",{className:"px-3 py-2 text-left",children:"상품"}),w.jsx("th",{className:"px-3 py-2 text-left w-[90px]",children:"주문번호"}),w.jsx("th",{className:"px-3 py-2 text-center",children:"상태"}),w.jsx("th",{className:"px-3 py-2 text-right",children:"금액"}),w.jsx("th",{className:"px-3 py-2 text-right",children:"주문일"})]})}),w.jsxs("tbody",{className:"bg-card",children:[b.map((C,M)=>{const D=C.salePrice!=null?(C.salePrice*C.quantity).toLocaleString():null;return w.jsxs("tr",{className:Ye("border-b border-border/60",M%2!==0&&"bg-muted/5"),children:[w.jsx("td",{className:"px-3 py-2",children:$k[C.channel]??C.channel}),w.jsx("td",{className:"px-3 py-2 max-w-[280px] truncate",title:C.productName,children:C.productName}),w.jsx("td",{className:"px-3 py-2 text-muted-foreground font-mono text-[10px] w-[90px] max-w-[90px] truncate",title:C.channelOrderId,children:C.channelOrderId}),w.jsx("td",{className:"px-3 py-2 text-center",children:w.jsx(Kk,{status:C.status})}),w.jsx("td",{className:"px-3 py-2 text-right",children:D!=null?`${D}원`:"-"}),w.jsx("td",{className:"px-3 py-2 text-muted-foreground text-right",children:JJ(C.orderDate)})]},`${C.channelOrderId}-${M}`)}),b.length===0&&w.jsx("tr",{children:w.jsx("td",{colSpan:6,className:"px-3 py-8 text-center text-muted-foreground text-[13px]",children:"필터 조건에 맞는 주문이 없습니다."})})]})]})})]})}/*! *****************************************************************************
|
|
225
|
+
Copyright (c) Microsoft Corporation.
|
|
226
|
+
|
|
227
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
228
|
+
purpose with or without fee is hereby granted.
|
|
229
|
+
|
|
230
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
231
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
232
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
233
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
234
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
235
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
236
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
237
|
+
***************************************************************************** */var H2=function(r,e){return H2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])},H2(r,e)};function K(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");H2(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var yp=function(){return yp=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},yp.apply(this,arguments)};function ree(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(r);a<n.length;a++)e.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(r,n[a])&&(t[n[a]]=r[n[a]]);return t}function Jk(r,e,t,n){function a(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function s(c){try{u(n.next(c))}catch(f){o(f)}}function l(c){try{u(n.throw(c))}catch(f){o(f)}}function u(c){c.done?i(c.value):a(c.value).then(s,l)}u((n=n.apply(r,[])).next())})}function eO(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(u){return function(c){return l([u,c])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){t.label=u[1];break}if(u[0]===6&&t.label<i[1]){t.label=i[1],i=u;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(u);break}i[2]&&t.ops.pop(),t.trys.pop();continue}u=e.call(r,t)}catch(c){u=[6,c],a=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}var nee=(function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r})(),aee=(function(){function r(){this.browser=new nee,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 r})(),rt=new aee;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(rt.wxa=!0,rt.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?rt.worker=!0:!rt.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(rt.node=!0,rt.svgSupported=!0):iee(navigator.userAgent,rt);function iee(r,e){var t=e.browser,n=r.match(/Firefox\/([\d.]+)/),a=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);n&&(t.firefox=!0,t.version=n[1]),a&&(t.ie=!0,t.version=a[1]),i&&(t.edge=!0,t.version=i[1],t.newEdge=+i[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11);var s=e.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in l||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}}var CM=12,MG="sans-serif",Yo=CM+"px "+MG,oee=20,see=100,lee="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function uee(r){var e={};if(typeof JSON>"u")return e;for(var t=0;t<r.length;t++){var n=String.fromCharCode(t+32),a=(r.charCodeAt(t)-oee)/see;e[n]=a}return e}var cee=uee(lee),En={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var r,e;return function(t,n){if(!r){var a=En.createCanvas();r=a&&a.getContext("2d")}if(r)return e!==n&&(e=r.font=n||Yo),r.measureText(t);t=t||"",n=n||Yo;var i=/((?:\d+)?\.?\d*)px/.exec(n),o=i&&+i[1]||CM,s=0;if(n.indexOf("mono")>=0)s=o*t.length;else for(var l=0;l<t.length;l++){var u=cee[t[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(r,e,t){var n=new Image;return n.onload=e,n.onerror=t,n.src=r,n}};function DG(r){for(var e in En)r[e]&&(En[e]=r[e])}var LG=Ra(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,e){return r["[object "+e+"]"]=!0,r},{}),NG=Ra(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,e){return r["[object "+e+"Array]"]=!0,r},{}),Wh=Object.prototype.toString,I1=Array.prototype,fee=I1.forEach,hee=I1.filter,AM=I1.slice,dee=I1.map,tO=(function(){}).constructor,gy=tO?tO.prototype:null,MM="__proto__",vee=2311;function DM(){return vee++}function k1(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];typeof console<"u"&&console.error.apply(console,r)}function Me(r){if(r==null||typeof r!="object")return r;var e=r,t=Wh.call(r);if(t==="[object Array]"){if(!ah(r)){e=[];for(var n=0,a=r.length;n<a;n++)e[n]=Me(r[n])}}else if(NG[t]){if(!ah(r)){var i=r.constructor;if(i.from)e=i.from(r);else{e=new i(r.length);for(var n=0,a=r.length;n<a;n++)e[n]=r[n]}}}else if(!LG[t]&&!ah(r)&&!oc(r)){e={};for(var o in r)r.hasOwnProperty(o)&&o!==MM&&(e[o]=Me(r[o]))}return e}function Fe(r,e,t){if(!Re(e)||!Re(r))return t?Me(e):r;for(var n in e)if(e.hasOwnProperty(n)&&n!==MM){var a=r[n],i=e[n];Re(i)&&Re(a)&&!ue(i)&&!ue(a)&&!oc(i)&&!oc(a)&&!F2(i)&&!F2(a)&&!ah(i)&&!ah(a)?Fe(a,i,t):(t||!(n in r))&&(r[n]=Me(e[n]))}return r}function O1(r,e){for(var t=r[0],n=1,a=r.length;n<a;n++)t=Fe(t,r[n],e);return t}function ie(r,e){if(Object.assign)Object.assign(r,e);else for(var t in e)e.hasOwnProperty(t)&&t!==MM&&(r[t]=e[t]);return r}function Ne(r,e,t){for(var n=nt(e),a=0,i=n.length;a<i;a++){var o=n[a];(t?e[o]!=null:r[o]==null)&&(r[o]=e[o])}return r}var pee=En.createCanvas;function Ge(r,e){if(r){if(r.indexOf)return r.indexOf(e);for(var t=0,n=r.length;t<n;t++)if(r[t]===e)return t}return-1}function LM(r,e){var t=r.prototype;function n(){}n.prototype=e.prototype,r.prototype=new n;for(var a in t)t.hasOwnProperty(a)&&(r.prototype[a]=t[a]);r.prototype.constructor=r,r.superClass=e}function Qt(r,e,t){if(r="prototype"in r?r.prototype:r,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),a=0;a<n.length;a++){var i=n[a];i!=="constructor"&&(t?e[i]!=null:r[i]==null)&&(r[i]=e[i])}else Ne(r,e,t)}function $r(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function P(r,e,t){if(r&&e)if(r.forEach&&r.forEach===fee)r.forEach(e,t);else if(r.length===+r.length)for(var n=0,a=r.length;n<a;n++)e.call(t,r[n],n,r);else for(var i in r)r.hasOwnProperty(i)&&e.call(t,r[i],i,r)}function ce(r,e,t){if(!r)return[];if(!e)return P1(r);if(r.map&&r.map===dee)return r.map(e,t);for(var n=[],a=0,i=r.length;a<i;a++)n.push(e.call(t,r[a],a,r));return n}function Ra(r,e,t,n){if(r&&e){for(var a=0,i=r.length;a<i;a++)t=e.call(n,t,r[a],a,r);return t}}function ht(r,e,t){if(!r)return[];if(!e)return P1(r);if(r.filter&&r.filter===hee)return r.filter(e,t);for(var n=[],a=0,i=r.length;a<i;a++)e.call(t,r[a],a,r)&&n.push(r[a]);return n}function Cl(r,e,t){if(r&&e){for(var n=0,a=r.length;n<a;n++)if(e.call(t,r[n],n,r))return r[n]}}function nt(r){if(!r)return[];if(Object.keys)return Object.keys(r);var e=[];for(var t in r)r.hasOwnProperty(t)&&e.push(t);return e}function gee(r,e){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];return function(){return r.apply(e,t.concat(AM.call(arguments)))}}var xe=gy&&Ae(gy.bind)?gy.call.bind(gy.bind):gee;function Ve(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return function(){return r.apply(this,e.concat(AM.call(arguments)))}}function ue(r){return Array.isArray?Array.isArray(r):Wh.call(r)==="[object Array]"}function Ae(r){return typeof r=="function"}function ye(r){return typeof r=="string"}function dx(r){return Wh.call(r)==="[object String]"}function it(r){return typeof r=="number"}function Re(r){var e=typeof r;return e==="function"||!!r&&e==="object"}function F2(r){return!!LG[Wh.call(r)]}function yn(r){return!!NG[Wh.call(r)]}function oc(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function Lg(r){return r.colorStops!=null}function RG(r){return r.image!=null}function EG(r){return Wh.call(r)==="[object RegExp]"}function Zr(r){return r!==r}function jr(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];for(var t=0,n=r.length;t<n;t++)if(r[t]!=null)return r[t]}function Ce(r,e){return r??e}function Rn(r,e,t){return r??e??t}function P1(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return AM.apply(r,e)}function Ng(r){if(typeof r=="number")return[r,r,r,r];var e=r.length;return e===2?[r[0],r[1],r[0],r[1]]:e===3?[r[0],r[1],r[2],r[1]]:r}function Kr(r,e){if(!r)throw new Error(e)}function Qn(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var IG="__ec_primitive__";function Hp(r){r[IG]=!0}function ah(r){return r[IG]}var mee=(function(){function r(){this.data={}}return r.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},r.prototype.has=function(e){return this.data.hasOwnProperty(e)},r.prototype.get=function(e){return this.data[e]},r.prototype.set=function(e,t){return this.data[e]=t,this},r.prototype.keys=function(){return nt(this.data)},r.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},r})(),kG=typeof Map=="function";function yee(){return kG?new Map:new mee}var OG=(function(){function r(e){var t=ue(e);this.data=yee();var n=this;e instanceof r?e.each(a):e&&P(e,a);function a(i,o){t?n.set(i,o):n.set(o,i)}}return r.prototype.hasKey=function(e){return this.data.has(e)},r.prototype.get=function(e){return this.data.get(e)},r.prototype.set=function(e,t){return this.data.set(e,t),t},r.prototype.each=function(e,t){this.data.forEach(function(n,a){e.call(t,n,a)})},r.prototype.keys=function(){var e=this.data.keys();return kG?Array.from(e):e},r.prototype.removeKey=function(e){this.data.delete(e)},r})();function Te(r){return new OG(r)}function Ch(r,e){for(var t=new r.constructor(r.length+e.length),n=0;n<r.length;n++)t[n]=r[n];for(var a=r.length,n=0;n<e.length;n++)t[n+a]=e[n];return t}function Rg(r,e){var t;if(Object.create)t=Object.create(r);else{var n=function(){};n.prototype=r,t=new n}return e&&ie(t,e),t}function NM(r){var e=r.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function Se(r,e){return r.hasOwnProperty(e)}function $t(){}var xp=180/Math.PI,xee=Number.EPSILON||Math.pow(2,-52);const bee=Object.freeze(Object.defineProperty({__proto__:null,EPSILON:xee,HashMap:OG,RADIAN_TO_DEGREE:xp,assert:Kr,bind:xe,clone:Me,concatArray:Ch,createCanvas:pee,createHashMap:Te,createObject:Rg,curry:Ve,defaults:Ne,disableUserSelect:NM,each:P,eqNaN:Zr,extend:ie,filter:ht,find:Cl,guid:DM,hasOwn:Se,indexOf:Ge,inherits:LM,isArray:ue,isArrayLike:$r,isBuiltInObject:F2,isDom:oc,isFunction:Ae,isGradientObject:Lg,isImagePatternObject:RG,isNumber:it,isObject:Re,isPrimitive:ah,isRegExp:EG,isString:ye,isStringSafe:dx,isTypedArray:yn,keys:nt,logError:k1,map:ce,merge:Fe,mergeAll:O1,mixin:Qt,noop:$t,normalizeCssArray:Ng,reduce:Ra,retrieve:jr,retrieve2:Ce,retrieve3:Rn,setAsPrimitive:Hp,slice:P1,trim:Qn},Symbol.toStringTag,{value:"Module"}));function Al(r,e){return r==null&&(r=0),e==null&&(e=0),[r,e]}function on(r,e){return r[0]=e[0],r[1]=e[1],r}function ji(r){return[r[0],r[1]]}function z1(r,e,t){return r[0]=e,r[1]=t,r}function U2(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r}function vx(r,e,t,n){return r[0]=e[0]+t[0]*n,r[1]=e[1]+t[1]*n,r}function Qs(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r}function Fp(r){return Math.sqrt(RM(r))}var _ee=Fp;function RM(r){return r[0]*r[0]+r[1]*r[1]}var See=RM;function wee(r,e,t){return r[0]=e[0]*t[0],r[1]=e[1]*t[1],r}function Tee(r,e,t){return r[0]=e[0]/t[0],r[1]=e[1]/t[1],r}function Cee(r,e){return r[0]*e[0]+r[1]*e[1]}function bp(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r}function xc(r,e){var t=Fp(e);return t===0?(r[0]=0,r[1]=0):(r[0]=e[0]/t,r[1]=e[1]/t),r}function px(r,e){return Math.sqrt((r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1]))}var Eo=px;function PG(r,e){return(r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1])}var sl=PG;function Aee(r,e){return r[0]=-e[0],r[1]=-e[1],r}function _p(r,e,t,n){return r[0]=e[0]+n*(t[0]-e[0]),r[1]=e[1]+n*(t[1]-e[1]),r}function Kt(r,e,t){var n=e[0],a=e[1];return r[0]=t[0]*n+t[2]*a+t[4],r[1]=t[1]*n+t[3]*a+t[5],r}function Io(r,e,t){return r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r}function ko(r,e,t){return r[0]=Math.max(e[0],t[0]),r[1]=Math.max(e[1],t[1]),r}const Mee=Object.freeze(Object.defineProperty({__proto__:null,add:U2,applyTransform:Kt,clone:ji,copy:on,create:Al,dist:Eo,distSquare:sl,distance:px,distanceSquare:PG,div:Tee,dot:Cee,len:Fp,lenSquare:RM,length:_ee,lengthSquare:See,lerp:_p,max:ko,min:Io,mul:wee,negate:Aee,normalize:xc,scale:bp,scaleAndAdd:vx,set:z1,sub:Qs},Symbol.toStringTag,{value:"Module"}));var gf=(function(){function r(e,t){this.target=e,this.topTarget=t&&t.topTarget}return r})(),Dee=(function(){function r(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new gf(t,e),"dragstart",e.event))},r.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,a=e.offsetY,i=n-this._x,o=a-this._y;this._x=n,this._y=a,t.drift(i,o,e),this.handler.dispatchToElement(new gf(t,e),"drag",e.event);var s=this.handler.findHover(n,a,t).target,l=this._dropTarget;this._dropTarget=s,t!==s&&(l&&s!==l&&this.handler.dispatchToElement(new gf(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new gf(s,e),"dragenter",e.event))}},r.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new gf(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new gf(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},r})(),Oa=(function(){function r(e){e&&(this._$eventProcessor=e)}return r.prototype.on=function(e,t,n,a){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof t=="function"&&(a=n,n=t,t=null),!n||!e)return this;var o=this._$eventProcessor;t!=null&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),i[e]||(i[e]=[]);for(var s=0;s<i[e].length;s++)if(i[e][s].h===n)return this;var l={h:n,query:t,ctx:a||this,callAtLast:n.zrEventfulCallAtLast},u=i[e].length-1,c=i[e][u];return c&&c.callAtLast?i[e].splice(u,0,l):i[e].push(l),this},r.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},r.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var a=[],i=0,o=n[e].length;i<o;i++)n[e][i].h!==t&&a.push(n[e][i]);n[e]=a}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},r.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[e],i=this._$eventProcessor;if(a)for(var o=t.length,s=a.length,l=0;l<s;l++){var u=a[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,t[0]);break;case 2:u.h.call(u.ctx,t[0],t[1]);break;default:u.h.apply(u.ctx,t);break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},r.prototype.triggerWithContext=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[e],i=this._$eventProcessor;if(a)for(var o=t.length,s=t[o-1],l=a.length,u=0;u<l;u++){var c=a[u];if(!(i&&i.filter&&c.query!=null&&!i.filter(e,c.query)))switch(o){case 0:c.h.call(s);break;case 1:c.h.call(s,t[0]);break;case 2:c.h.call(s,t[0],t[1]);break;default:c.h.apply(s,t.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},r})(),Lee=Math.log(2);function Y2(r,e,t,n,a,i){var o=n+"-"+a,s=r.length;if(i.hasOwnProperty(o))return i[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~a)/Lee);return r[t][l]}for(var u=n|1<<t,c=t+1;n&1<<c;)c++;for(var f=0,d=0,v=0;d<s;d++){var g=1<<d;g&a||(f+=(v%2?-1:1)*r[t][d]*Y2(r,e-1,c,u,a|g,i),v++)}return i[o]=f,f}function rO(r,e){var t=[[r[0],r[1],1,0,0,0,-e[0]*r[0],-e[0]*r[1]],[0,0,0,r[0],r[1],1,-e[1]*r[0],-e[1]*r[1]],[r[2],r[3],1,0,0,0,-e[2]*r[2],-e[2]*r[3]],[0,0,0,r[2],r[3],1,-e[3]*r[2],-e[3]*r[3]],[r[4],r[5],1,0,0,0,-e[4]*r[4],-e[4]*r[5]],[0,0,0,r[4],r[5],1,-e[5]*r[4],-e[5]*r[5]],[r[6],r[7],1,0,0,0,-e[6]*r[6],-e[6]*r[7]],[0,0,0,r[6],r[7],1,-e[7]*r[6],-e[7]*r[7]]],n={},a=Y2(t,8,0,0,0,n);if(a!==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)*Y2(t,7,o===0?1:0,1<<o,1<<s,n)/a*e[o];return function(l,u,c){var f=u*i[6]+c*i[7]+1;l[0]=(u*i[0]+c*i[1]+i[2])/f,l[1]=(u*i[3]+c*i[4]+i[5])/f}}}var gx="___zrEVENTSAVED",GS=[];function Nee(r,e,t,n,a){return W2(GS,e,n,a,!0)&&W2(r,t,GS[0],GS[1])}function Ree(r,e){r&&t(r),e&&t(e);function t(n){var a=n[gx];a&&(a.clearMarkers&&a.clearMarkers(),delete n[gx])}}function W2(r,e,t,n,a){if(e.getBoundingClientRect&&rt.domSupported&&!zG(e)){var i=e[gx]||(e[gx]={}),o=Eee(e,i),s=Iee(o,i,a);if(s)return s(r,t,n),!0}return!1}function Eee(r,e){var t=e.markers;if(t)return t;t=e.markers=[];for(var n=["left","right"],a=["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",n[l]+":0",a[u]+":0",n[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),r.appendChild(o),t.push(o)}return e.clearMarkers=function(){P(t,function(c){c.parentNode&&c.parentNode.removeChild(c)})},t}function Iee(r,e,t){for(var n=t?"invTrans":"trans",a=e[n],i=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=r[u].getBoundingClientRect(),f=2*u,d=c.left,v=c.top;o.push(d,v),l=l&&i&&d===i[f]&&v===i[f+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&a?a:(e.srcCoords=o,e[n]=t?rO(s,o):rO(o,s))}function zG(r){return r.nodeName.toUpperCase()==="CANVAS"}var kee=/([&<>"'])/g,Oee={"&":"&","<":"<",">":">",'"':""","'":"'"};function ln(r){return r==null?"":(r+"").replace(kee,function(e,t){return Oee[t]})}var Pee=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,HS=[],zee=rt.browser.firefox&&+rt.browser.version.split(".")[0]<39;function X2(r,e,t,n){return t=t||{},n?nO(r,e,t):zee&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):nO(r,e,t),t}function nO(r,e,t){if(rt.domSupported&&r.getBoundingClientRect){var n=e.clientX,a=e.clientY;if(zG(r)){var i=r.getBoundingClientRect();t.zrX=n-i.left,t.zrY=a-i.top;return}else if(W2(HS,r,n,a)){t.zrX=HS[0],t.zrY=HS[1];return}}t.zrX=t.zrY=0}function EM(r){return r||window.event}function xa(r,e,t){if(e=EM(e),e.zrX!=null)return e;var n=e.type,a=n&&n.indexOf("touch")>=0;if(a){var o=n!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&X2(r,o,e,t)}else{X2(r,e,e,t);var i=Bee(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&Pee.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function Bee(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,n=r.deltaY;if(t==null||n==null)return e;var a=Math.abs(n!==0?n:t),i=n>0?-1:n<0?1:t>0?-1:1;return 3*a*i}function q2(r,e,t,n){r.addEventListener(e,t,n)}function jee(r,e,t,n){r.removeEventListener(e,t,n)}var Wo=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function aO(r){return r.which===2||r.which===3}var Vee=(function(){function r(){this._track=[]}return r.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(e,t,n){var a=e.touches;if(a){for(var i={points:[],touches:[],target:t,event:e},o=0,s=a.length;o<s;o++){var l=a[o],u=X2(n,l,{});i.points.push([u.zrX,u.zrY]),i.touches.push(l)}this._track.push(i)}},r.prototype._recognize=function(e){for(var t in FS)if(FS.hasOwnProperty(t)){var n=FS[t](this._track,e);if(n)return n}},r})();function iO(r){var e=r[1][0]-r[0][0],t=r[1][1]-r[0][1];return Math.sqrt(e*e+t*t)}function Gee(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var FS={pinch:function(r,e){var t=r.length;if(t){var n=(r[t-1]||{}).points,a=(r[t-2]||{}).points||n;if(a&&a.length>1&&n&&n.length>1){var i=iO(n)/iO(a);!isFinite(i)&&(i=1),e.pinchScale=i;var o=Gee(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};function Mr(){return[1,0,0,1,0,0]}function Eg(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Ig(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function Ka(r,e,t){var n=e[0]*t[0]+e[2]*t[1],a=e[1]*t[0]+e[3]*t[1],i=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return r[0]=n,r[1]=a,r[2]=i,r[3]=o,r[4]=s,r[5]=l,r}function ni(r,e,t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4]+t[0],r[5]=e[5]+t[1],r}function es(r,e,t,n){n===void 0&&(n=[0,0]);var a=e[0],i=e[2],o=e[4],s=e[1],l=e[3],u=e[5],c=Math.sin(t),f=Math.cos(t);return r[0]=a*f+s*c,r[1]=-a*c+s*f,r[2]=i*f+l*c,r[3]=-i*c+f*l,r[4]=f*(o-n[0])+c*(u-n[1])+n[0],r[5]=f*(u-n[1])-c*(o-n[0])+n[1],r}function B1(r,e,t){var n=t[0],a=t[1];return r[0]=e[0]*n,r[1]=e[1]*a,r[2]=e[2]*n,r[3]=e[3]*a,r[4]=e[4]*n,r[5]=e[5]*a,r}function Ea(r,e){var t=e[0],n=e[2],a=e[4],i=e[1],o=e[3],s=e[5],l=t*o-i*n;return l?(l=1/l,r[0]=o*l,r[1]=-i*l,r[2]=-n*l,r[3]=t*l,r[4]=(n*s-o*a)*l,r[5]=(i*a-t*s)*l,r):null}function BG(r){var e=Mr();return Ig(e,r),e}const Hee=Object.freeze(Object.defineProperty({__proto__:null,clone:BG,copy:Ig,create:Mr,identity:Eg,invert:Ea,mul:Ka,rotate:es,scale:B1,translate:ni},Symbol.toStringTag,{value:"Module"}));var Ie=(function(){function r(e,t){this.x=e||0,this.y=t||0}return r.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(e,t){return this.x=e,this.y=t,this},r.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},r.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},r.prototype.scale=function(e){this.x*=e,this.y*=e},r.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},r.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},r.prototype.dot=function(e){return this.x*e.x+this.y*e.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},r.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},r.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},r.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},r.set=function(e,t,n){e.x=t,e.y=n},r.copy=function(e,t){e.x=t.x,e.y=t.y},r.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},r.lenSquare=function(e){return e.x*e.x+e.y*e.y},r.dot=function(e,t){return e.x*t.x+e.y*t.y},r.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},r.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},r.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},r.scaleAndAdd=function(e,t,n,a){e.x=t.x+n.x*a,e.y=t.y+n.y*a},r.lerp=function(e,t,n,a){var i=1-a;e.x=i*t.x+a*n.x,e.y=i*t.y+a*n.y},r})(),ku=Math.min,qf=Math.max,Z2=Math.abs,oO=["x","y"],Fee=["width","height"],$l=new Ie,Kl=new Ie,Ql=new Ie,Jl=new Ie,qn=jG(),ap=qn.minTv,$2=qn.maxTv,Sp=[0,0],ke=(function(){function r(e,t,n,a){r.set(this,e,t,n,a)}return r.set=function(e,t,n,a,i){return a<0&&(t=t+a,a=-a),i<0&&(n=n+i,i=-i),e.x=t,e.y=n,e.width=a,e.height=i,e},r.prototype.union=function(e){var t=ku(e.x,this.x),n=ku(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=qf(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=qf(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){var t=this,n=e.width/t.width,a=e.height/t.height,i=Mr();return ni(i,i,[-t.x,-t.y]),B1(i,i,[n,a]),ni(i,i,[e.x,e.y]),i},r.prototype.intersect=function(e,t,n){return r.intersect(this,e,t,n)},r.intersect=function(e,t,n,a){n&&Ie.set(n,0,0);var i=a&&a.outIntersectRect||null,o=a&&a.clamp;if(i&&(i.x=i.y=i.width=i.height=NaN),!e||!t)return!1;e instanceof r||(e=r.set(Uee,e.x,e.y,e.width,e.height)),t instanceof r||(t=r.set(Yee,t.x,t.y,t.width,t.height));var s=!!n;qn.reset(a,s);var l=qn.touchThreshold,u=e.x+l,c=e.x+e.width-l,f=e.y+l,d=e.y+e.height-l,v=t.x+l,g=t.x+t.width-l,x=t.y+l,y=t.y+t.height-l;if(u>c||f>d||v>g||x>y)return!1;var b=!(c<v||g<u||d<x||y<f);return(s||i)&&(Sp[0]=1/0,Sp[1]=0,sO(u,c,v,g,0,s,i,o),sO(f,d,x,y,1,s,i,o),s&&Ie.copy(n,b?qn.useDir?qn.dirMinTv:ap:$2)),b},r.contain=function(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},r.prototype.contain=function(e,t){return r.contain(this,e,t)},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){r.copy(this,e)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(e){return new r(e.x,e.y,e.width,e.height)},r.copy=function(e,t){return e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e},r.applyTransform=function(e,t,n){if(!n){e!==t&&r.copy(e,t);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var a=n[0],i=n[3],o=n[4],s=n[5];e.x=t.x*a+o,e.y=t.y*i+s,e.width=t.width*a,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}$l.x=Ql.x=t.x,$l.y=Jl.y=t.y,Kl.x=Jl.x=t.x+t.width,Kl.y=Ql.y=t.y+t.height,$l.transform(n),Jl.transform(n),Kl.transform(n),Ql.transform(n),e.x=ku($l.x,Kl.x,Ql.x,Jl.x),e.y=ku($l.y,Kl.y,Ql.y,Jl.y);var l=qf($l.x,Kl.x,Ql.x,Jl.x),u=qf($l.y,Kl.y,Ql.y,Jl.y);e.width=l-e.x,e.height=u-e.y},r})(),Uee=new ke(0,0,0,0),Yee=new ke(0,0,0,0);function sO(r,e,t,n,a,i,o,s){var l=Z2(e-t),u=Z2(n-r),c=ku(l,u),f=oO[a],d=oO[1-a],v=Fee[a];e<t||n<r?l<u?(i&&($2[f]=-l),s&&(o[f]=e,o[v]=0)):(i&&($2[f]=u),s&&(o[f]=r,o[v]=0)):(o&&(o[f]=qf(r,t),o[v]=ku(e,n)-o[f]),i&&(c<Sp[0]||qn.useDir)&&(Sp[0]=ku(c,Sp[0]),(l<u||!qn.bidirectional)&&(ap[f]=l,ap[d]=0,qn.useDir&&qn.calcDirMTV()),(l>=u||!qn.bidirectional)&&(ap[f]=-u,ap[d]=0,qn.useDir&&qn.calcDirMTV())))}function jG(){var r=0,e=new Ie,t=new Ie,n={minTv:new Ie,maxTv:new Ie,useDir:!1,dirMinTv:new Ie,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,o){n.touchThreshold=0,i&&i.touchThreshold!=null&&(n.touchThreshold=qf(0,i.touchThreshold)),n.negativeSize=!1,o&&(n.minTv.set(1/0,1/0),n.maxTv.set(0,0),n.useDir=!1,i&&i.direction!=null&&(n.useDir=!0,n.dirMinTv.copy(n.minTv),t.copy(n.minTv),r=i.direction,n.bidirectional=i.bidirectional==null||!!i.bidirectional,n.bidirectional||e.set(Math.cos(r),Math.sin(r))))},calcDirMTV:function(){var i=n.minTv,o=n.dirMinTv,s=i.y*i.y+i.x*i.x,l=Math.sin(r),u=Math.cos(r),c=l*i.y+u*i.x;if(a(c)){a(i.x)&&a(i.y)&&o.set(0,0);return}if(t.x=s*u/c,t.y=s*l/c,a(t.x)&&a(t.y)){o.set(0,0);return}(n.bidirectional||e.dot(t)>0)&&t.len()<o.len()&&o.copy(t)}};function a(i){return Z2(i)<1e-10}return n}var VG="silent";function Wee(r,e,t){return{type:r,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:Xee}}function Xee(){Wo(this.event)}var qee=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e})(Oa),yv=(function(){function r(e,t){this.x=e,this.y=t}return r})(),Zee=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],US=new ke(0,0,0,0),GG=(function(r){K(e,r);function e(t,n,a,i,o){var s=r.call(this)||this;return s._hovered=new yv(0,0),s.storage=t,s.painter=n,s.painterRoot=i,s._pointerSize=o,a=a||new qee,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new Dee(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(P(Zee,function(n){t.on&&t.on(n,this[n],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var n=t.zrX,a=t.zrY,i=HG(this,n,a),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 yv(n,a):this.findHover(n,a),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var n=t.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new yv(0,0)},e.prototype.dispatch=function(t,n){var a=this[t];a&&a.call(this,n)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var n=this.proxy;n.setCursor&&n.setCursor(t)},e.prototype.dispatchToElement=function(t,n,a){t=t||{};var i=t.target;if(!(i&&i.silent)){for(var o="on"+n,s=Wee(n,t,a);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(n,s),i=i.__hostTarget?i.__hostTarget:i.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(t,n,a){var i=this.storage.getDisplayList(),o=new yv(t,n);if(lO(i,o,t,n,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new ke(t-u,n-u,l,l),f=i.length-1;f>=0;f--){var d=i[f];d!==a&&!d.ignore&&!d.ignoreCoarsePointer&&(!d.parent||!d.parent.ignoreCoarsePointer)&&(US.copy(d.getBoundingRect()),d.transform&&US.applyTransform(d.transform),US.intersect(c)&&s.push(d))}if(s.length)for(var v=4,g=Math.PI/12,x=Math.PI*2,y=0;y<u;y+=v)for(var b=0;b<x;b+=g){var S=t+y*Math.cos(b),T=n+y*Math.sin(b);if(lO(s,o,S,T,a),o.target)return o}}return o},e.prototype.processGesture=function(t,n){this._gestureMgr||(this._gestureMgr=new Vee);var a=this._gestureMgr;n==="start"&&a.clear();var i=a.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if(n==="end"&&a.clear(),i){var o=i.type;t.gestureEvent=o;var s=new yv;s.target=i.target,this.dispatchToElement(s,o,i.event)}},e})(Oa);P(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){GG.prototype[r]=function(e){var t=e.zrX,n=e.zrY,a=HG(this,t,n),i,o;if((r!=="mouseup"||!a)&&(i=this.findHover(t,n),o=i.target),r==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||Eo(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,r,e)}});function $ee(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var n=r,a=void 0,i=!1;n;){if(n.ignoreClip&&(i=!0),!i){var o=n.getClipPath();if(o&&!o.contain(e,t))return!1}n.silent&&(a=!0);var s=n.__hostTarget;n=s?n.ignoreHostSilent?null:s:n.parent}return a?VG:!0}return!1}function lO(r,e,t,n,a){for(var i=r.length-1;i>=0;i--){var o=r[i],s=void 0;if(o!==a&&!o.ignore&&(s=$ee(o,t,n))&&(!e.topTarget&&(e.topTarget=o),s!==VG)){e.target=o;break}}}function HG(r,e,t){var n=r.painter;return e<0||e>n.getWidth()||t<0||t>n.getHeight()}var FG=32,xv=7;function Kee(r){for(var e=0;r>=FG;)e|=r&1,r>>=1;return r+e}function uO(r,e,t,n){var a=e+1;if(a===t)return 1;if(n(r[a++],r[e])<0){for(;a<t&&n(r[a],r[a-1])<0;)a++;Qee(r,e,a)}else for(;a<t&&n(r[a],r[a-1])>=0;)a++;return a-e}function Qee(r,e,t){for(t--;e<t;){var n=r[e];r[e++]=r[t],r[t--]=n}}function cO(r,e,t,n,a){for(n===e&&n++;n<t;n++){for(var i=r[n],o=e,s=n,l;o<s;)l=o+s>>>1,a(i,r[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=i}}function YS(r,e,t,n,a,i){var o=0,s=0,l=1;if(i(r,e[t+a])>0){for(s=n-a;l<s&&i(r,e[t+a+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;l<s&&i(r,e[t+a-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o<l;){var c=o+(l-o>>>1);i(r,e[t+c])>0?o=c+1:l=c}return l}function WS(r,e,t,n,a,i){var o=0,s=0,l=1;if(i(r,e[t+a])<0){for(s=a+1;l<s&&i(r,e[t+a-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=n-a;l<s&&i(r,e[t+a+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o<l;){var c=o+(l-o>>>1);i(r,e[t+c])<0?l=c:o=c+1}return l}function Jee(r,e){var t=xv,n,a,i=0,o=[];n=[],a=[];function s(v,g){n[i]=v,a[i]=g,i+=1}function l(){for(;i>1;){var v=i-2;if(v>=1&&a[v-1]<=a[v]+a[v+1]||v>=2&&a[v-2]<=a[v]+a[v-1])a[v-1]<a[v+1]&&v--;else if(a[v]>a[v+1])break;c(v)}}function u(){for(;i>1;){var v=i-2;v>0&&a[v-1]<a[v+1]&&v--,c(v)}}function c(v){var g=n[v],x=a[v],y=n[v+1],b=a[v+1];a[v]=x+b,v===i-3&&(n[v+1]=n[v+2],a[v+1]=a[v+2]),i--;var S=WS(r[y],r,g,x,0,e);g+=S,x-=S,x!==0&&(b=YS(r[g+x-1],r,y,b,b-1,e),b!==0&&(x<=b?f(g,x,y,b):d(g,x,y,b)))}function f(v,g,x,y){var b=0;for(b=0;b<g;b++)o[b]=r[v+b];var S=0,T=x,C=v;if(r[C++]=r[T++],--y===0){for(b=0;b<g;b++)r[C+b]=o[S+b];return}if(g===1){for(b=0;b<y;b++)r[C+b]=r[T+b];r[C+y]=o[S];return}for(var M=t,D,L,E;;){D=0,L=0,E=!1;do if(e(r[T],o[S])<0){if(r[C++]=r[T++],L++,D=0,--y===0){E=!0;break}}else if(r[C++]=o[S++],D++,L=0,--g===1){E=!0;break}while((D|L)<M);if(E)break;do{if(D=WS(r[T],o,S,g,0,e),D!==0){for(b=0;b<D;b++)r[C+b]=o[S+b];if(C+=D,S+=D,g-=D,g<=1){E=!0;break}}if(r[C++]=r[T++],--y===0){E=!0;break}if(L=YS(o[S],r,T,y,0,e),L!==0){for(b=0;b<L;b++)r[C+b]=r[T+b];if(C+=L,T+=L,y-=L,y===0){E=!0;break}}if(r[C++]=o[S++],--g===1){E=!0;break}M--}while(D>=xv||L>=xv);if(E)break;M<0&&(M=0),M+=2}if(t=M,t<1&&(t=1),g===1){for(b=0;b<y;b++)r[C+b]=r[T+b];r[C+y]=o[S]}else{if(g===0)throw new Error;for(b=0;b<g;b++)r[C+b]=o[S+b]}}function d(v,g,x,y){var b=0;for(b=0;b<y;b++)o[b]=r[x+b];var S=v+g-1,T=y-1,C=x+y-1,M=0,D=0;if(r[C--]=r[S--],--g===0){for(M=C-(y-1),b=0;b<y;b++)r[M+b]=o[b];return}if(y===1){for(C-=g,S-=g,D=C+1,M=S+1,b=g-1;b>=0;b--)r[D+b]=r[M+b];r[C]=o[T];return}for(var L=t;;){var E=0,R=0,I=!1;do if(e(o[T],r[S])<0){if(r[C--]=r[S--],E++,R=0,--g===0){I=!0;break}}else if(r[C--]=o[T--],R++,E=0,--y===1){I=!0;break}while((E|R)<L);if(I)break;do{if(E=g-WS(o[T],r,v,g,g-1,e),E!==0){for(C-=E,S-=E,g-=E,D=C+1,M=S+1,b=E-1;b>=0;b--)r[D+b]=r[M+b];if(g===0){I=!0;break}}if(r[C--]=o[T--],--y===1){I=!0;break}if(R=y-YS(r[S],o,0,y,y-1,e),R!==0){for(C-=R,T-=R,y-=R,D=C+1,M=T+1,b=0;b<R;b++)r[D+b]=o[M+b];if(y<=1){I=!0;break}}if(r[C--]=r[S--],--g===0){I=!0;break}L--}while(E>=xv||R>=xv);if(I)break;L<0&&(L=0),L+=2}if(t=L,t<1&&(t=1),y===1){for(C-=g,S-=g,D=C+1,M=S+1,b=g-1;b>=0;b--)r[D+b]=r[M+b];r[C]=o[T]}else{if(y===0)throw new Error;for(M=C-(y-1),b=0;b<y;b++)r[M+b]=o[b]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function z0(r,e,t,n){t||(t=0),n||(n=r.length);var a=n-t;if(!(a<2)){var i=0;if(a<FG){i=uO(r,t,n,e),cO(r,t,n,t+i,e);return}var o=Jee(r,e),s=Kee(a);do{if(i=uO(r,t,n,e),i<s){var l=a;l>s&&(l=s),cO(r,t,t+l,t+i,e),i=l}o.pushRun(t,i),o.mergeRuns(),a-=i,t+=i}while(a!==0);o.forceMergeRuns()}}var $n=1,ip=2,Uf=4,fO=!1;function XS(){fO||(fO=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function hO(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var ete=(function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=hO}return r.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},r.prototype.getDisplayList=function(e,t){t=t||!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(t),n},r.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,a=0,i=t.length;a<i;a++)this._updateAndAddDisplayable(t[a],null,e);n.length=this._displayListLen,z0(n,hO)},r.prototype._updateAndAddDisplayable=function(e,t,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var a=e.getClipPath(),i=t&&t.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(i||a)){if(s||(s=e.__clipPaths=[]),i)for(var l=0;l<t.length;l++)s[o++]=t[l];for(var u=a,c=e;u;)u.parent=c,u.updateTransform(),s[o++]=u,c=u,u=u.getClipPath()}if(s&&(s.length=o),e.childrenRef){for(var f=e.childrenRef(),d=0;d<f.length;d++){var v=f[d];e.__dirty&&(v.__dirty|=$n),this._updateAndAddDisplayable(v,s,n)}e.__dirty=0}else{var g=e;isNaN(g.z)&&(XS(),g.z=0),isNaN(g.z2)&&(XS(),g.z2=0),isNaN(g.zlevel)&&(XS(),g.zlevel=0),this._displayList[this._displayListLen++]=g}var x=e.getDecalElement&&e.getDecalElement();x&&this._updateAndAddDisplayable(x,s,n);var y=e.getTextGuideLine();y&&this._updateAndAddDisplayable(y,s,n);var b=e.getTextContent();b&&this._updateAndAddDisplayable(b,s,n)}},r.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},r.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);return}var a=Ge(this._roots,e);a>=0&&this._roots.splice(a,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r})(),mx;mx=rt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var wp={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var e,t=.1,n=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=n/4):e=n*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/n)))},elasticOut:function(r){var e,t=.1,n=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=n/4):e=n*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/n)+1)},elasticInOut:function(r){var e,t=.1,n=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=n/4):e=n*Math.asin(1/t)/(2*Math.PI),(r*=2)<1?-.5*(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/n)):t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/n)*.5+1)},backIn:function(r){var e=1.70158;return r*r*((e+1)*r-e)},backOut:function(r){var e=1.70158;return--r*r*((e+1)*r+e)+1},backInOut:function(r){var e=2.5949095;return(r*=2)<1?.5*(r*r*((e+1)*r-e)):.5*((r-=2)*r*((e+1)*r+e)+2)},bounceIn:function(r){return 1-wp.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?wp.bounceIn(r*2)*.5:wp.bounceOut(r*2-1)*.5+.5}},my=Math.pow,ll=Math.sqrt,yx=1e-8,UG=1e-4,dO=ll(3),yy=1/3,Li=Al(),Ca=Al(),ih=Al();function Js(r){return r>-yx&&r<yx}function YG(r){return r>yx||r<-yx}function Cr(r,e,t,n,a){var i=1-a;return i*i*(i*r+3*a*e)+a*a*(a*n+3*i*t)}function vO(r,e,t,n,a){var i=1-a;return 3*(((e-r)*i+2*(t-e)*a)*i+(n-t)*a*a)}function xx(r,e,t,n,a,i){var o=n+3*(e-t)-r,s=3*(t-e*2+r),l=3*(e-r),u=r-a,c=s*s-3*o*l,f=s*l-9*o*u,d=l*l-3*s*u,v=0;if(Js(c)&&Js(f))if(Js(s))i[0]=0;else{var g=-l/s;g>=0&&g<=1&&(i[v++]=g)}else{var x=f*f-4*c*d;if(Js(x)){var y=f/c,g=-s/o+y,b=-y/2;g>=0&&g<=1&&(i[v++]=g),b>=0&&b<=1&&(i[v++]=b)}else if(x>0){var S=ll(x),T=c*s+1.5*o*(-f+S),C=c*s+1.5*o*(-f-S);T<0?T=-my(-T,yy):T=my(T,yy),C<0?C=-my(-C,yy):C=my(C,yy);var g=(-s-(T+C))/(3*o);g>=0&&g<=1&&(i[v++]=g)}else{var M=(2*c*s-3*o*f)/(2*ll(c*c*c)),D=Math.acos(M)/3,L=ll(c),E=Math.cos(D),g=(-s-2*L*E)/(3*o),b=(-s+L*(E+dO*Math.sin(D)))/(3*o),R=(-s+L*(E-dO*Math.sin(D)))/(3*o);g>=0&&g<=1&&(i[v++]=g),b>=0&&b<=1&&(i[v++]=b),R>=0&&R<=1&&(i[v++]=R)}}return v}function WG(r,e,t,n,a){var i=6*t-12*e+6*r,o=9*e+3*n-3*r-9*t,s=3*e-3*r,l=0;if(Js(o)){if(YG(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var c=i*i-4*o*s;if(Js(c))a[0]=-i/(2*o);else if(c>0){var f=ll(c),u=(-i+f)/(2*o),d=(-i-f)/(2*o);u>=0&&u<=1&&(a[l++]=u),d>=0&&d<=1&&(a[l++]=d)}}return l}function yl(r,e,t,n,a,i){var o=(e-r)*a+r,s=(t-e)*a+e,l=(n-t)*a+t,u=(s-o)*a+o,c=(l-s)*a+s,f=(c-u)*a+u;i[0]=r,i[1]=o,i[2]=u,i[3]=f,i[4]=f,i[5]=c,i[6]=l,i[7]=n}function XG(r,e,t,n,a,i,o,s,l,u,c){var f,d=.005,v=1/0,g,x,y,b;Li[0]=l,Li[1]=u;for(var S=0;S<1;S+=.05)Ca[0]=Cr(r,t,a,o,S),Ca[1]=Cr(e,n,i,s,S),y=sl(Li,Ca),y<v&&(f=S,v=y);v=1/0;for(var T=0;T<32&&!(d<UG);T++)g=f-d,x=f+d,Ca[0]=Cr(r,t,a,o,g),Ca[1]=Cr(e,n,i,s,g),y=sl(Ca,Li),g>=0&&y<v?(f=g,v=y):(ih[0]=Cr(r,t,a,o,x),ih[1]=Cr(e,n,i,s,x),b=sl(ih,Li),x<=1&&b<v?(f=x,v=b):d*=.5);return c&&(c[0]=Cr(r,t,a,o,f),c[1]=Cr(e,n,i,s,f)),ll(v)}function tte(r,e,t,n,a,i,o,s,l){for(var u=r,c=e,f=0,d=1/l,v=1;v<=l;v++){var g=v*d,x=Cr(r,t,a,o,g),y=Cr(e,n,i,s,g),b=x-u,S=y-c;f+=Math.sqrt(b*b+S*S),u=x,c=y}return f}function Br(r,e,t,n){var a=1-n;return a*(a*r+2*n*e)+n*n*t}function K2(r,e,t,n){return 2*((1-n)*(e-r)+n*(t-e))}function rte(r,e,t,n,a){var i=r-2*e+t,o=2*(e-r),s=r-n,l=0;if(Js(i)){if(YG(o)){var u=-s/o;u>=0&&u<=1&&(a[l++]=u)}}else{var c=o*o-4*i*s;if(Js(c)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(c>0){var f=ll(c),u=(-o+f)/(2*i),d=(-o-f)/(2*i);u>=0&&u<=1&&(a[l++]=u),d>=0&&d<=1&&(a[l++]=d)}}return l}function qG(r,e,t){var n=r+t-2*e;return n===0?.5:(r-e)/n}function Up(r,e,t,n,a){var i=(e-r)*n+r,o=(t-e)*n+e,s=(o-i)*n+i;a[0]=r,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=t}function ZG(r,e,t,n,a,i,o,s,l){var u,c=.005,f=1/0;Li[0]=o,Li[1]=s;for(var d=0;d<1;d+=.05){Ca[0]=Br(r,t,a,d),Ca[1]=Br(e,n,i,d);var v=sl(Li,Ca);v<f&&(u=d,f=v)}f=1/0;for(var g=0;g<32&&!(c<UG);g++){var x=u-c,y=u+c;Ca[0]=Br(r,t,a,x),Ca[1]=Br(e,n,i,x);var v=sl(Ca,Li);if(x>=0&&v<f)u=x,f=v;else{ih[0]=Br(r,t,a,y),ih[1]=Br(e,n,i,y);var b=sl(ih,Li);y<=1&&b<f?(u=y,f=b):c*=.5}}return l&&(l[0]=Br(r,t,a,u),l[1]=Br(e,n,i,u)),ll(f)}function nte(r,e,t,n,a,i,o){for(var s=r,l=e,u=0,c=1/o,f=1;f<=o;f++){var d=f*c,v=Br(r,t,a,d),g=Br(e,n,i,d),x=v-s,y=g-l;u+=Math.sqrt(x*x+y*y),s=v,l=g}return u}var ate=/cubic-bezier\(([0-9,\.e ]+)\)/;function IM(r){var e=r&&ate.exec(r);if(e){var t=e[1].split(","),n=+Qn(t[0]),a=+Qn(t[1]),i=+Qn(t[2]),o=+Qn(t[3]);if(isNaN(n+a+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:xx(0,n,i,1,l,s)&&Cr(0,a,o,1,s[0])}}}var ite=(function(){function r(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||$t,this.ondestroy=e.ondestroy||$t,this.onrestart=e.onrestart||$t,e.easing&&this.setEasing(e.easing)}return r.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var n=this._life,a=e-this._startTime-this._pausedTime,i=a/n;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=a%n;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(e){this.easing=e,this.easingFunc=Ae(e)?e:wp[e]||IM(e)},r})(),$G=(function(){function r(e){this.value=e}return r})(),ote=(function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new $G(e);return this.insertEntry(t),t},r.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++},r.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r})(),Ah=(function(){function r(e){this._list=new ote,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var n=this._list,a=this._map,i=null;if(a[e]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete a[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new $G(t),s.key=e,n.insertEntry(s),a[e]=s}return i},r.prototype.get=function(e){var t=this._map[e],n=this._list;if(t!=null)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r})(),pO={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 Qa(r){return r=Math.round(r),r<0?0:r>255?255:r}function ste(r){return r=Math.round(r),r<0?0:r>360?360:r}function Yp(r){return r<0?0:r>1?1:r}function B0(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Qa(parseFloat(e)/100*255):Qa(parseInt(e,10))}function zo(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Yp(parseFloat(e)/100):Yp(parseFloat(e))}function qS(r,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?r+(e-r)*t*6:t*2<1?e:t*3<2?r+(e-r)*(2/3-t)*6:r}function el(r,e,t){return r+(e-r)*t}function ya(r,e,t,n,a){return r[0]=e,r[1]=t,r[2]=n,r[3]=a,r}function Q2(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var KG=new Ah(20),xy=null;function mf(r,e){xy&&Q2(xy,e),xy=KG.put(r,xy||e.slice())}function un(r,e){if(r){e=e||[];var t=KG.get(r);if(t)return Q2(e,t);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in pO)return Q2(e,pO[n]),mf(r,e),e;var a=n.length;if(n.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(n.slice(1,4),16);if(!(i>=0&&i<=4095)){ya(e,0,0,0,1);return}return ya(e,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(n.slice(4),16)/15:1),mf(r,e),e}else if(a===7||a===9){var i=parseInt(n.slice(1,7),16);if(!(i>=0&&i<=16777215)){ya(e,0,0,0,1);return}return ya(e,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(n.slice(7),16)/255:1),mf(r,e),e}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===a){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?ya(e,+u[0],+u[1],+u[2],1):ya(e,0,0,0,1);c=zo(u.pop());case"rgb":if(u.length>=3)return ya(e,B0(u[0]),B0(u[1]),B0(u[2]),u.length===3?c:zo(u[3])),mf(r,e),e;ya(e,0,0,0,1);return;case"hsla":if(u.length!==4){ya(e,0,0,0,1);return}return u[3]=zo(u[3]),J2(u,e),mf(r,e),e;case"hsl":if(u.length!==3){ya(e,0,0,0,1);return}return J2(u,e),mf(r,e),e;default:return}}ya(e,0,0,0,1)}}function J2(r,e){var t=(parseFloat(r[0])%360+360)%360/360,n=zo(r[1]),a=zo(r[2]),i=a<=.5?a*(n+1):a+n-a*n,o=a*2-i;return e=e||[],ya(e,Qa(qS(o,i,t+1/3)*255),Qa(qS(o,i,t)*255),Qa(qS(o,i,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function lte(r){if(r){var e=r[0]/255,t=r[1]/255,n=r[2]/255,a=Math.min(e,t,n),i=Math.max(e,t,n),o=i-a,s=(i+a)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+a):u=o/(2-i-a);var c=((i-e)/6+o/2)/o,f=((i-t)/6+o/2)/o,d=((i-n)/6+o/2)/o;e===i?l=d-f:t===i?l=1/3+c-d:n===i&&(l=2/3+f-c),l<0&&(l+=1),l>1&&(l-=1)}var v=[l*360,u,s];return r[3]!=null&&v.push(r[3]),v}}function bx(r,e){var t=un(r);if(t){for(var n=0;n<3;n++)e<0?t[n]=t[n]*(1-e)|0:t[n]=(255-t[n])*e+t[n]|0,t[n]>255?t[n]=255:t[n]<0&&(t[n]=0);return La(t,t.length===4?"rgba":"rgb")}}function ute(r){var e=un(r);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function Tp(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){t=t||[];var n=r*(e.length-1),a=Math.floor(n),i=Math.ceil(n),o=e[a],s=e[i],l=n-a;return t[0]=Qa(el(o[0],s[0],l)),t[1]=Qa(el(o[1],s[1],l)),t[2]=Qa(el(o[2],s[2],l)),t[3]=Yp(el(o[3],s[3],l)),t}}var cte=Tp;function kM(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){var n=r*(e.length-1),a=Math.floor(n),i=Math.ceil(n),o=un(e[a]),s=un(e[i]),l=n-a,u=La([Qa(el(o[0],s[0],l)),Qa(el(o[1],s[1],l)),Qa(el(o[2],s[2],l)),Yp(el(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:a,rightIndex:i,value:n}:u}}var fte=kM;function Bo(r,e,t,n){var a=un(r);if(r)return a=lte(a),e!=null&&(a[0]=ste(Ae(e)?e(a[0]):e)),t!=null&&(a[1]=zo(Ae(t)?t(a[1]):t)),n!=null&&(a[2]=zo(Ae(n)?n(a[2]):n)),La(J2(a),"rgba")}function Wp(r,e){var t=un(r);if(t&&e!=null)return t[3]=Yp(e),La(t,"rgba")}function La(r,e){if(!(!r||!r.length)){var t=r[0]+","+r[1]+","+r[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+r[3]),e+"("+t+")"}}function Xp(r,e){var t=un(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}function hte(){return La([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var gO=new Ah(100);function _x(r){if(ye(r)){var e=gO.get(r);return e||(e=bx(r,-.1),gO.put(r,e)),e}else if(Lg(r)){var t=ie({},r);return t.colorStops=ce(r.colorStops,function(n){return{offset:n.offset,color:bx(n.color,-.1)}}),t}return r}const dte=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:Tp,fastMapToColor:cte,lerp:kM,lift:bx,liftColor:_x,lum:Xp,mapToColor:fte,modifyAlpha:Wp,modifyHSL:Bo,parse:un,parseCssFloat:zo,parseCssInt:B0,random:hte,stringify:La,toHex:ute},Symbol.toStringTag,{value:"Module"}));var Sx=Math.round;function qp(r){var e;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var t=un(r);t&&(r="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:r,opacity:e??1}}var mO=1e-4;function tl(r){return r<mO&&r>-mO}function by(r){return Sx(r*1e3)/1e3}function eC(r){return Sx(r*1e4)/1e4}function vte(r){return"matrix("+by(r[0])+","+by(r[1])+","+by(r[2])+","+by(r[3])+","+eC(r[4])+","+eC(r[5])+")"}var pte={left:"start",right:"end",center:"middle",middle:"middle"};function gte(r,e,t){return t==="top"?r+=e/2:t==="bottom"&&(r-=e/2),r}function mte(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function yte(r){var e=r.style,t=r.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function QG(r){return r&&!!r.image}function xte(r){return r&&!!r.svgElement}function OM(r){return QG(r)||xte(r)}function JG(r){return r.type==="linear"}function e6(r){return r.type==="radial"}function t6(r){return r&&(r.type==="linear"||r.type==="radial")}function j1(r){return"url(#"+r+")"}function r6(r){var e=r.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function n6(r){var e=r.x||0,t=r.y||0,n=(r.rotation||0)*xp,a=Ce(r.scaleX,1),i=Ce(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),n&&l.push("rotate("+n+")"),(a!==1||i!==1)&&l.push("scale("+a+","+i+")"),(o||s)&&l.push("skew("+Sx(o*xp)+"deg, "+Sx(s*xp)+"deg)"),l.join(" ")}var bte=(function(){return rt.hasGlobalWindow&&Ae(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}})(),tC=Array.prototype.slice;function Ao(r,e,t){return(e-r)*t+r}function ZS(r,e,t,n){for(var a=e.length,i=0;i<a;i++)r[i]=Ao(e[i],t[i],n);return r}function _te(r,e,t,n){for(var a=e.length,i=a&&e[0].length,o=0;o<a;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=Ao(e[o][s],t[o][s],n)}return r}function _y(r,e,t,n){for(var a=e.length,i=0;i<a;i++)r[i]=e[i]+t[i]*n;return r}function yO(r,e,t,n){for(var a=e.length,i=a&&e[0].length,o=0;o<a;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=e[o][s]+t[o][s]*n}return r}function Ste(r,e){for(var t=r.length,n=e.length,a=t>n?e:r,i=Math.min(t,n),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(t,n);s++)a.push({offset:o.offset,color:o.color.slice()})}function wte(r,e,t){var n=r,a=e;if(!(!n.push||!a.push)){var i=n.length,o=a.length;if(i!==o){var s=i>o;if(s)n.length=o;else for(var l=i;l<o;l++)n.push(t===1?a[l]:tC.call(a[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(t===1)isNaN(n[l])&&(n[l]=a[l]);else for(var c=0;c<u;c++)isNaN(n[l][c])&&(n[l][c]=a[l][c])}}function Cp(r){if($r(r)){var e=r.length;if($r(r[0])){for(var t=[],n=0;n<e;n++)t.push(tC.call(r[n]));return t}return tC.call(r)}return r}function j0(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function Tte(r){return $r(r&&r[0])?2:1}var Sy=0,V0=1,a6=2,op=3,rC=4,nC=5,xO=6;function bO(r){return r===rC||r===nC}function wy(r){return r===V0||r===a6}var bv=[0,0,0,0],Cte=(function(){function r(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var a=this.keyframes,i=a.length,o=!1,s=xO,l=t;if($r(t)){var u=Tte(t);s=u,(u===1&&!it(t[0])||u===2&&!it(t[0][0]))&&(o=!0)}else if(it(t)&&!Zr(t))s=Sy;else if(ye(t))if(!isNaN(+t))s=Sy;else{var c=un(t);c&&(l=c,s=op)}else if(Lg(t)){var f=ie({},l);f.colorStops=ce(t.colorStops,function(v){return{offset:v.offset,color:un(v.color)}}),JG(t)?s=rC:e6(t)&&(s=nC),l=f}i===0?this.valType=s:(s!==this.valType||s===xO)&&(o=!0),this.discrete=this.discrete||o;var d={time:e,value:l,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=Ae(n)?n:wp[n]||IM(n)),a.push(d),d},r.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(x,y){return x.time-y.time});for(var a=this.valType,i=n.length,o=n[i-1],s=this.discrete,l=wy(a),u=bO(a),c=0;c<i;c++){var f=n[c],d=f.value,v=o.value;f.percent=f.time/e,s||(l&&c!==i-1?wte(d,v,a):u&&Ste(d.colorStops,v.colorStops))}if(!s&&a!==nC&&t&&this.needsAnimate()&&t.needsAnimate()&&a===t.valType&&!t._finished){this._additiveTrack=t;for(var g=n[0].value,c=0;c<i;c++)a===Sy?n[c].additiveValue=n[c].value-g:a===op?n[c].additiveValue=_y([],n[c].value,g,-1):wy(a)&&(n[c].additiveValue=a===V0?_y([],n[c].value,g,-1):yO([],n[c].value,g,-1))}},r.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,a=n?"additiveValue":"value",i=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=i===op,c,f=this._lastFr,d=Math.min,v,g;if(s===1)v=g=o[0];else{if(t<0)c=0;else if(t<this._lastFrP){var x=d(f+1,s-1);for(c=x;c>=0&&!(o[c].percent<=t);c--);c=d(c,s-2)}else{for(c=f;c<s&&!(o[c].percent>t);c++);c=d(c-1,s-2)}g=o[c+1],v=o[c]}if(v&&g){this._lastFr=c,this._lastFrP=t;var y=g.percent-v.percent,b=y===0?1:d((t-v.percent)/y,1);g.easingFunc&&(b=g.easingFunc(b));var S=n?this._additiveValue:u?bv:e[l];if((wy(i)||u)&&!S&&(S=this._additiveValue=[]),this.discrete)e[l]=b<1?v.rawValue:g.rawValue;else if(wy(i))i===V0?ZS(S,v[a],g[a],b):_te(S,v[a],g[a],b);else if(bO(i)){var T=v[a],C=g[a],M=i===rC;e[l]={type:M?"linear":"radial",x:Ao(T.x,C.x,b),y:Ao(T.y,C.y,b),colorStops:ce(T.colorStops,function(L,E){var R=C.colorStops[E];return{offset:Ao(L.offset,R.offset,b),color:j0(ZS([],L.color,R.color,b))}}),global:C.global},M?(e[l].x2=Ao(T.x2,C.x2,b),e[l].y2=Ao(T.y2,C.y2,b)):e[l].r=Ao(T.r,C.r,b)}else if(u)ZS(S,v[a],g[a],b),n||(e[l]=j0(S));else{var D=Ao(v[a],g[a],b);n?this._additiveValue=D:e[l]=D}n&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,a=this._additiveValue;t===Sy?e[n]=e[n]+a:t===op?(un(e[n],bv),_y(bv,bv,a,1),e[n]=j0(bv)):t===V0?_y(e[n],e[n],a,1):t===a6&&yO(e[n],e[n],a,1)},r})(),PM=(function(){function r(e,t,n,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&a){k1("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=n}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(e){this._target=e},r.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,nt(t),n)},r.prototype.whenWithKeys=function(e,t,n,a){for(var i=this._tracks,o=0;o<n.length;o++){var s=n[o],l=i[s];if(!l){l=i[s]=new Cte(s);var u=void 0,c=this._getAdditiveTrack(s);if(c){var f=c.keyframes,d=f[f.length-1];u=d&&d.value,c.valType===op&&u&&(u=j0(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,Cp(u),a),this._trackKeys.push(s)}l.addKeyframe(e,Cp(t[s]),a)}return this._maxTime=Math.max(this._maxTime,e),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n<t;n++)e[n].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},r.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},r.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var a=0;a<n.length;a++){var i=n[a].getTrack(e);i&&(t=i)}return t},r.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],a=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,c=u.length;if(s.prepare(a,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var f=u[c-1];f&&(t._target[s.propName]=f.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var d=new ite({life:a,loop:this._loop,delay:this._delay||0,onframe:function(v){t._started=2;var g=t._additiveAnimators;if(g){for(var x=!1,y=0;y<g.length;y++)if(g[y]._clip){x=!0;break}x||(t._additiveAnimators=null)}for(var y=0;y<n.length;y++)n[y].step(t._target,v);var b=t._onframeCbs;if(b)for(var y=0;y<b.length;y++)b[y](t._target,v)},ondestroy:function(){t._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),e&&d.setEasing(e)}else this._doneCallback();return this}},r.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},r.prototype.delay=function(e){return this._delay=e,this},r.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},r.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},r.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(e){return this._tracks[e]},r.prototype.getTracks=function(){var e=this;return ce(this._trackKeys,function(t){return e._tracks[t]})},r.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,a=this._trackKeys,i=0;i<e.length;i++){var o=n[e[i]];o&&!o.isFinished()&&(t?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,i=0;i<a.length;i++)if(!n[a[i]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(e,t,n){if(e){t=t||this._trackKeys;for(var a=0;a<t.length;a++){var i=t[a],o=this._tracks[i];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(e[i]=Cp(l.rawValue))}}}},r.prototype.__changeFinalValue=function(e,t){t=t||nt(e);for(var n=0;n<t.length;n++){var a=t[n],i=this._tracks[a];if(i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,e[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r})();function Zf(){return new Date().getTime()}var Ate=(function(r){K(e,r);function e(t){var n=r.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t=t||{},n.stage=t.stage||{},n}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var n=t.getClip();n&&this.addClip(n)},e.prototype.removeClip=function(t){if(t.animation){var n=t.prev,a=t.next;n?n.next=a:this._head=a,a?a.prev=n:this._tail=n,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var n=t.getClip();n&&this.removeClip(n),t.animation=null},e.prototype.update=function(t){for(var n=Zf()-this._pausedTime,a=n-this._time,i=this._head;i;){var o=i.next,s=i.step(n,a);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=n,t||(this.trigger("frame",a),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function n(){t._running&&(mx(n),!t._paused&&t.update())}mx(n)},e.prototype.start=function(){this._running||(this._time=Zf(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Zf(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Zf()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var n=t.next;t.prev=t.next=t.animation=null,t=n}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,n){n=n||{},this.start();var a=new PM(t,n.loop);return this.addAnimator(a),a},e})(Oa),Mte=300,$S=rt.domSupported,KS=(function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=ce(r,function(a){var i=a.replace("mouse","pointer");return t.hasOwnProperty(i)?i:a});return{mouse:r,touch:e,pointer:n}})(),_O={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},SO=!1;function aC(r){var e=r.pointerType;return e==="pen"||e==="touch"}function Dte(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function QS(r){r&&(r.zrByTouch=!0)}function Lte(r,e){return xa(r.dom,new Nte(r,e),!0)}function i6(r,e){for(var t=e,n=!1;t&&t.nodeType!==9&&!(n=t.domBelongToZr||t!==e&&t===r.painterRoot);)t=t.parentNode;return n}var Nte=(function(){function r(e,t){this.stopPropagation=$t,this.stopImmediatePropagation=$t,this.preventDefault=$t,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r})(),Ua={mousedown:function(r){r=xa(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=xa(this.dom,r);var e=this.__mayPointerCapture;e&&(r.zrX!==e[0]||r.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=xa(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=xa(this.dom,r);var e=r.toElement||r.relatedTarget;i6(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){SO=!0,r=xa(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){SO||(r=xa(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=xa(this.dom,r),QS(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Ua.mousemove.call(this,r),Ua.mousedown.call(this,r)},touchmove:function(r){r=xa(this.dom,r),QS(r),this.handler.processGesture(r,"change"),Ua.mousemove.call(this,r)},touchend:function(r){r=xa(this.dom,r),QS(r),this.handler.processGesture(r,"end"),Ua.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<Mte&&Ua.click.call(this,r)},pointerdown:function(r){Ua.mousedown.call(this,r)},pointermove:function(r){aC(r)||Ua.mousemove.call(this,r)},pointerup:function(r){Ua.mouseup.call(this,r)},pointerout:function(r){aC(r)||Ua.mouseout.call(this,r)}};P(["click","dblclick","contextmenu"],function(r){Ua[r]=function(e){e=xa(this.dom,e),this.trigger(r,e)}});var iC={pointermove:function(r){aC(r)||iC.mousemove.call(this,r)},pointerup:function(r){iC.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),e&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function Rte(r,e){var t=e.domHandlers;rt.pointerEventsSupported?P(KS.pointer,function(n){G0(e,n,function(a){t[n].call(r,a)})}):(rt.touchEventsSupported&&P(KS.touch,function(n){G0(e,n,function(a){t[n].call(r,a),Dte(e)})}),P(KS.mouse,function(n){G0(e,n,function(a){a=EM(a),e.touching||t[n].call(r,a)})}))}function Ete(r,e){rt.pointerEventsSupported?P(_O.pointer,t):rt.touchEventsSupported||P(_O.mouse,t);function t(n){function a(i){i=EM(i),i6(r,i.target)||(i=Lte(r,i),e.domHandlers[n].call(r,i))}G0(e,n,a,{capture:!0})}}function G0(r,e,t,n){r.mounted[e]=t,r.listenerOpts[e]=n,q2(r.domTarget,e,t,n)}function JS(r){var e=r.mounted;for(var t in e)e.hasOwnProperty(t)&&jee(r.domTarget,t,e[t],r.listenerOpts[t]);r.mounted={}}var wO=(function(){function r(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return r})(),Ite=(function(r){K(e,r);function e(t,n){var a=r.call(this)||this;return a.__pointerCapturing=!1,a.dom=t,a.painterRoot=n,a._localHandlerScope=new wO(t,Ua),$S&&(a._globalHandlerScope=new wO(document,iC)),Rte(a,a._localHandlerScope),a}return e.prototype.dispose=function(){JS(this._localHandlerScope),$S&&JS(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,$S&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var n=this._globalHandlerScope;t?Ete(this,n):JS(n)}},e})(Oa),o6=1;rt.hasGlobalWindow&&(o6=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Tx=o6,oC=.4,sC="#333",lC="#ccc",kte="#eee",TO=Eg,CO=5e-5;function eu(r){return r>CO||r<-CO}var tu=[],yf=[],ew=Mr(),tw=Math.abs,Oo=(function(){function r(){}return r.prototype.getLocalTransform=function(e){return r.getLocalTransform(this,e)},r.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},r.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},r.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return eu(this.rotation)||eu(this.x)||eu(this.y)||eu(this.scaleX-1)||eu(this.scaleY-1)||eu(this.skewX)||eu(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&(TO(n),this.invTransform=null);return}n=n||Mr(),t?this.getLocalTransform(n):TO(n),e&&(t?Ka(n,e,n):Ig(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(tu);var n=tu[0]<0?-1:1,a=tu[1]<0?-1:1,i=((tu[0]-n)*t+n)/tu[0]||0,o=((tu[1]-a)*t+a)/tu[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||Mr(),Ea(this.invTransform,e)},r.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},r.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],a=Math.atan2(e[1],e[0]),i=Math.PI/2+a-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||Mr(),Ka(yf,e.invTransform,t),t=yf);var n=this.originX,a=this.originY;(n||a)&&(ew[4]=n,ew[5]=a,Ka(yf,t,ew),yf[4]-=n,yf[5]-=a,t=yf),this.setLocalTransform(t)}},r.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},r.prototype.transformCoordToLocal=function(e,t){var n=[e,t],a=this.invTransform;return a&&Kt(n,n,a),n},r.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],a=this.transform;return a&&Kt(n,n,a),n},r.prototype.getLineScale=function(){var e=this.transform;return e&&tw(e[0]-1)>1e-10&&tw(e[3]-1)>1e-10?Math.sqrt(tw(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){Cx(this,e)},r.getLocalTransform=function(e,t){t=t||[];var n=e.originX||0,a=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,c=e.x,f=e.y,d=e.skewX?Math.tan(e.skewX):0,v=e.skewY?Math.tan(-e.skewY):0;if(n||a||s||l){var g=n+s,x=a+l;t[4]=-g*i-d*x*o,t[5]=-x*o-v*g*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=v*i,t[2]=d*o,u&&es(t,t,u),t[4]+=n+c,t[5]+=a+f,t},r.initDefaultProps=(function(){var e=r.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})(),r})(),Fi=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Cx(r,e){for(var t=0;t<Fi.length;t++){var n=Fi[t];r[n]=e[n]}}function Vi(r){Ty||(Ty=new Ah(100)),r=r||Yo;var e=Ty.get(r);return e||(e={font:r,strWidthCache:new Ah(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:En.measureText("国",r).width,asciiCharWidth:En.measureText("a",r).width},Ty.put(r,e)),e}var Ty;function Ote(r){if(!(rw>=AO)){r=r||Yo;for(var e=[],t=+new Date,n=0;n<=127;n++)e[n]=En.measureText(String.fromCharCode(n),r).width;var a=+new Date-t;return a>16?rw=AO:a>2&&rw++,e}}var rw=0,AO=5;function s6(r,e){return r.asciiWidthMapTried||(r.asciiWidthMap=Ote(r.font),r.asciiWidthMapTried=!0),0<=e&&e<=127?r.asciiWidthMap!=null?r.asciiWidthMap[e]:r.asciiCharWidth:r.stWideCharWidth}function Gi(r,e){var t=r.strWidthCache,n=t.get(e);return n==null&&(n=En.measureText(e,r.font).width,t.put(e,n)),n}function MO(r,e,t,n){var a=Gi(Vi(e),r),i=kg(e),o=Mh(0,a,t),s=Ku(0,i,n),l=new ke(o,s,a,i);return l}function V1(r,e,t,n){var a=((r||"")+"").split(`
|
|
238
|
+
`),i=a.length;if(i===1)return MO(a[0],e,t,n);for(var o=new ke(0,0,0,0),s=0;s<a.length;s++){var l=MO(a[s],e,t,n);s===0?o.copy(l):o.union(l)}return o}function Mh(r,e,t,n){return t==="right"?n?r+=e:r-=e:t==="center"&&(n?r+=e/2:r-=e/2),r}function Ku(r,e,t,n){return t==="middle"?n?r+=e/2:r-=e/2:t==="bottom"&&(n?r+=e:r-=e),r}function kg(r){return Vi(r).stWideCharWidth}function ai(r,e){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*e:parseFloat(r):r}function Ax(r,e,t){var n=e.position||"inside",a=e.distance!=null?e.distance:5,i=t.height,o=t.width,s=i/2,l=t.x,u=t.y,c="left",f="top";if(n instanceof Array)l+=ai(n[0],t.width),u+=ai(n[1],t.height),c=null,f=null;else switch(n){case"left":l-=a,u+=s,c="right",f="middle";break;case"right":l+=a+o,u+=s,f="middle";break;case"top":l+=o/2,u-=a,c="center",f="bottom";break;case"bottom":l+=o/2,u+=i+a,c="center";break;case"inside":l+=o/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=a,u+=s,f="middle";break;case"insideRight":l+=o-a,u+=s,c="right",f="middle";break;case"insideTop":l+=o/2,u+=a,c="center";break;case"insideBottom":l+=o/2,u+=i-a,c="center",f="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=o-a,u+=a,c="right";break;case"insideBottomLeft":l+=a,u+=i-a,f="bottom";break;case"insideBottomRight":l+=o-a,u+=i-a,c="right",f="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=c,r.verticalAlign=f,r}var nw="__zr_normal__",aw=Fi.concat(["ignore"]),Pte=Ra(Fi,function(r,e){return r[e]=!0,r},{ignore:!1}),xf={},zte=new ke(0,0,0,0),Cy=[],G1=(function(){function r(e){this.id=DM(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return r.prototype._init=function(e){this.attr(e)},r.prototype.drift=function(e,t,n){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=e,a[5]+=t,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,a=n.local,i=t.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=a?this:null;var u=!1;i.copyTransform(t);var c=n.position!=null,f=n.autoOverflowArea,d=void 0;if((f||c)&&(d=zte,n.layoutRect?d.copy(n.layoutRect):d.copy(this.getBoundingRect()),a||d.applyTransform(this.transform)),c){this.calculateTextPosition?this.calculateTextPosition(xf,n,d):Ax(xf,n,d),i.x=xf.x,i.y=xf.y,o=xf.align,s=xf.verticalAlign;var v=n.origin;if(v&&n.rotation!=null){var g=void 0,x=void 0;v==="center"?(g=d.width*.5,x=d.height*.5):(g=ai(v[0],d.width),x=ai(v[1],d.height)),u=!0,i.originX=-i.x+g+(a?0:d.x),i.originY=-i.y+x+(a?0:d.y)}}n.rotation!=null&&(i.rotation=n.rotation);var y=n.offset;y&&(i.x+=y[0],i.y+=y[1],u||(i.originX=-y[0],i.originY=-y[1]));var b=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(f){var S=b.overflowRect=b.overflowRect||new ke(0,0,0,0);i.getLocalTransform(Cy),Ea(Cy,Cy),ke.copy(S,d),S.applyTransform(Cy)}else b.overflowRect=null;var T=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,C=void 0,M=void 0,D=void 0;T&&this.canBeInsideText()?(C=n.insideFill,M=n.insideStroke,(C==null||C==="auto")&&(C=this.getInsideTextFill()),(M==null||M==="auto")&&(M=this.getInsideTextStroke(C),D=!0)):(C=n.outsideFill,M=n.outsideStroke,(C==null||C==="auto")&&(C=this.getOutsideFill()),(M==null||M==="auto")&&(M=this.getOutsideStroke(C),D=!0)),C=C||"#000",(C!==b.fill||M!==b.stroke||D!==b.autoStroke||o!==b.align||s!==b.verticalAlign)&&(l=!0,b.fill=C,b.stroke=M,b.autoStroke=D,b.align=o,b.verticalAlign=s,t.setDefaultTextStyle(b)),t.__dirty|=$n,l&&t.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(e){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?lC:sC},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t=="string"&&un(t);n||(n=[255,255,255,1]);for(var a=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*a+(i?0:255)*(1-a);return n[3]=1,La(n,"rgba")},r.prototype.traverse=function(e,t){},r.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},ie(this.extra,t)):this[e]=t},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(Re(e))for(var n=e,a=nt(n),i=0;i<a.length;i++){var o=a[i];this.attrKV(o,e[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var a=this.animators[n],i=a.__fromStateTransition;if(!(a.getLoop()||i&&i!==nw)){var o=a.targetName,s=o?t[o]:t;a.saveTo(s)}}},r.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,aw)},r.prototype._savePrimaryToNormal=function(e,t,n){for(var a=0;a<n.length;a++){var i=n[a];e[i]!=null&&!(i in t)&&(t[i]=this[i])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(e){return this.states[e]},r.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},r.prototype.clearStates=function(e){this.useState(nw,!1,e)},r.prototype.useState=function(e,t,n,a){var i=e===nw,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(Ge(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!i){k1("State "+e+" not exists.");return}i||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||a);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!n&&!this.__inHover&&l&&l.duration>0,l);var f=this._textContent,d=this._textGuide;return f&&f.useState(e,t,n,c),d&&d.useState(e,t,n,c),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~$n),u}}},r.prototype.useStates=function(e,t,n){if(!e.length)this.clearStates();else{var a=[],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],c=void 0;this.stateProxy&&(c=this.stateProxy(u,e)),c||(c=this.states[u]),c&&a.push(c)}var f=a[o-1],d=!!(f&&f.hoverLayer||n);d&&this._toggleHoverLayerFlag(!0);var v=this._mergeStates(a),g=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(e.join(","),v,this._normalState,!1,!t&&!this.__inHover&&g&&g.duration>0,g);var x=this._textContent,y=this._textGuide;x&&x.useStates(e,t,d),y&&y.useStates(e,t,d),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~$n)}},r.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var t=e.__hostTarget;e=t?e.ignoreHostSilent?null:t:e.parent}return!1},r.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},r.prototype.removeState=function(e){var t=Ge(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},r.prototype.replaceState=function(e,t,n){var a=this.currentStates.slice(),i=Ge(a,e),o=Ge(a,t)>=0;i>=0?o?a.splice(i,1):a[i]=t:n&&!o&&a.push(t),this.useStates(a)},r.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},r.prototype._mergeStates=function(e){for(var t={},n,a=0;a<e.length;a++){var i=e[a];ie(t,i),i.textConfig&&(n=n||{},ie(n,i.textConfig))}return n&&(t.textConfig=n),t},r.prototype._applyStateObj=function(e,t,n,a,i,o){var s=!(t&&a);t&&t.textConfig?(this.textConfig=ie({},a?this.textConfig:n.textConfig),ie(this.textConfig,t.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,c=0;c<aw.length;c++){var f=aw[c],d=i&&Pte[f];t&&t[f]!=null?d?(u=!0,l[f]=t[f]):this[f]=t[f]:s&&n[f]!=null&&(d?(u=!0,l[f]=n[f]):this[f]=n[f])}if(!i)for(var c=0;c<this.animators.length;c++){var v=this.animators[c],g=v.targetName;v.getLoop()||v.__changeFinalValue(g?(t||n)[g]:t||n)}u&&this._transitionState(e,l,o)},r.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},r.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},r.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new Oo,this._attachComponent(e),this._textContent=e,this.markRedraw())},r.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),ie(this.textConfig,e),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=$n;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,n=this._textGuide;t&&(t.__inHover=e),n&&(n.__inHover=e)},r.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},r.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},r.prototype.animate=function(e,t,n){var a=e?this[e]:this,i=new PM(a,t,n);return e&&(i.targetName=e),this.addAnimator(i,e),i},r.prototype.addAnimator=function(e,t){var n=this.__zr,a=this;e.during(function(){a.updateDuringAnimation(t)}).done(function(){var i=a.animators,o=Ge(i,e);o>=0&&i.splice(o,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},r.prototype.updateDuringAnimation=function(e){this.markRedraw()},r.prototype.stopAnimation=function(e,t){for(var n=this.animators,a=n.length,i=[],o=0;o<a;o++){var s=n[o];!e||e===s.scope?s.stop(t):i.push(s)}return this.animators=i,this},r.prototype.animateTo=function(e,t,n){iw(this,e,t,n)},r.prototype.animateFrom=function(e,t,n){iw(this,e,t,n,!0)},r.prototype._transitionState=function(e,t,n,a){for(var i=iw(this,t,n,a),o=0;o<i.length;o++)i[o].__fromStateTransition=e},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=(function(){var e=r.prototype;e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=$n;function t(n,a,i,o){Object.defineProperty(e,n,{get:function(){if(!this[a]){var l=this[a]=[];s(this,l)}return this[a]},set:function(l){this[i]=l[0],this[o]=l[1],this[a]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[i]},set:function(c){l[i]=c}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(c){l[o]=c}})}}Object.defineProperty&&(t("position","_legacyPos","x","y"),t("scale","_legacyScale","scaleX","scaleY"),t("origin","_legacyOrigin","originX","originY"))})(),r})();Qt(G1,Oa);Qt(G1,Oo);function iw(r,e,t,n,a){t=t||{};var i=[];l6(r,"",r,e,t,n,i,a);var o=i.length,s=!1,l=t.done,u=t.aborted,c=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},f=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),i.length>0&&t.during&&i[0].during(function(g,x){t.during(x)});for(var d=0;d<i.length;d++){var v=i[d];c&&v.done(c),f&&v.aborted(f),t.force&&v.duration(t.duration),v.start(t.easing)}return i}function ow(r,e,t){for(var n=0;n<t;n++)r[n]=e[n]}function Bte(r){return $r(r[0])}function jte(r,e,t){if($r(e[t]))if($r(r[t])||(r[t]=[]),yn(e[t])){var n=e[t].length;r[t].length!==n&&(r[t]=new e[t].constructor(n),ow(r[t],e[t],n))}else{var a=e[t],i=r[t],o=a.length;if(Bte(a))for(var s=a[0].length,l=0;l<o;l++)i[l]?ow(i[l],a[l],s):i[l]=Array.prototype.slice.call(a[l]);else ow(i,a,o);i.length=a.length}else r[t]=e[t]}function Vte(r,e){return r===e||$r(r)&&$r(e)&&Gte(r,e)}function Gte(r,e){var t=r.length;if(t!==e.length)return!1;for(var n=0;n<t;n++)if(r[n]!==e[n])return!1;return!0}function l6(r,e,t,n,a,i,o,s){for(var l=nt(n),u=a.duration,c=a.delay,f=a.additive,d=a.setToFinal,v=!Re(i),g=r.animators,x=[],y=0;y<l.length;y++){var b=l[y],S=n[b];if(S!=null&&t[b]!=null&&(v||i[b]))if(Re(S)&&!$r(S)&&!Lg(S)){if(e){s||(t[b]=S,r.updateDuringAnimation(e));continue}l6(r,b,t[b],S,a,i&&i[b],o,s)}else x.push(b);else s||(t[b]=S,r.updateDuringAnimation(e),x.push(b))}var T=x.length;if(!f&&T)for(var C=0;C<g.length;C++){var M=g[C];if(M.targetName===e){var D=M.stopTracks(x);if(D){var L=Ge(g,M);g.splice(L,1)}}}if(a.force||(x=ht(x,function(k){return!Vte(n[k],t[k])}),T=x.length),T>0||a.force&&!o.length){var E=void 0,R=void 0,I=void 0;if(s){R={},d&&(E={});for(var C=0;C<T;C++){var b=x[C];R[b]=t[b],d?E[b]=n[b]:t[b]=n[b]}}else if(d){I={};for(var C=0;C<T;C++){var b=x[C];I[b]=Cp(t[b]),jte(t,n,b)}}var M=new PM(t,!1,!1,f?ht(g,function(z){return z.targetName===e}):null);M.targetName=e,a.scope&&(M.scope=a.scope),d&&E&&M.whenWithKeys(0,E,x),I&&M.whenWithKeys(0,I,x),M.whenWithKeys(u??500,s?R:n,x).delay(c||0),r.addAnimator(M,e),o.push(M)}}var De=(function(r){K(e,r);function e(t){var n=r.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var n=this._children,a=0;a<n.length;a++)if(n[a].name===t)return n[a]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,n){if(t&&t!==this&&t.parent!==this&&n&&n.parent===this){var a=this._children,i=a.indexOf(n);i>=0&&(a.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,n){var a=Ge(this._children,t);return a>=0&&this.replaceAt(n,a),this},e.prototype.replaceAt=function(t,n){var a=this._children,i=a[n];if(t&&t!==this&&t.parent!==this&&t!==i){a[n]=t,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var n=this.__zr;n&&n!==t.__zr&&t.addSelfToZr(n),n&&n.refresh()},e.prototype.remove=function(t){var n=this.__zr,a=this._children,i=Ge(a,t);return i<0?this:(a.splice(i,1),t.parent=null,n&&t.removeSelfFromZr(n),n&&n.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,n=this.__zr,a=0;a<t.length;a++){var i=t[a];n&&i.removeSelfFromZr(n),i.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,n){for(var a=this._children,i=0;i<a.length;i++){var o=a[i];t.call(n,o,i)}return this},e.prototype.traverse=function(t,n){for(var a=0;a<this._children.length;a++){var i=this._children[a],o=t.call(n,i);i.isGroup&&!o&&i.traverse(t,n)}return this},e.prototype.addSelfToZr=function(t){r.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.removeSelfFromZr(t)}},e.prototype.getBoundingRect=function(t){for(var n=new ke(0,0,0,0),a=t||this._children,i=[],o=null,s=0;s<a.length;s++){var l=a[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),c=l.getLocalTransform(i);c?(ke.applyTransform(n,u,c),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},e})(G1);De.prototype.type="group";/*!
|
|
239
|
+
* ZRender, a high performance 2d drawing library.
|
|
240
|
+
*
|
|
241
|
+
* Copyright (c) 2013, Baidu Inc.
|
|
242
|
+
* All rights reserved.
|
|
243
|
+
*
|
|
244
|
+
* LICENSE
|
|
245
|
+
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
|
|
246
|
+
*/var H0={},Ou={};function Hte(r){delete Ou[r]}function Fte(r){if(!r)return!1;if(typeof r=="string")return Xp(r,1)<oC;if(r.colorStops){for(var e=r.colorStops,t=0,n=e.length,a=0;a<n;a++)t+=Xp(e[a].color,1);return t/=n,t<oC}return!1}var Ute=(function(){function r(e,t,n){var a=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=t,this.id=e;var i=new ete,o=n.renderer||"canvas";H0[o]||(o=nt(H0)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new H0[o](t,i,n,e),l=n.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!rt.node&&!rt.worker&&!l?new Ite(s.getViewportRoot(),s.root):null,c=n.useCoarsePointer,f=c==null||c==="auto"?rt.touchEventsSupported:!!c,d=44,v;f&&(v=Ce(n.pointerSize,d)),this.handler=new GG(i,s,u,s.root,v),this.animation=new Ate({stage:{update:l?null:function(){return a._flush(!0)}}}),l||this.animation.start()}return r.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},r.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},r.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=Fte(e))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(e){this._darkMode=e},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!1)},r.prototype._flush=function(e){var t,n=Zf();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var a=Zf();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:a-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},r.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},r.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},r.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},r.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},r.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof De&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},r.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,Hte(this.id))},r})();function uC(r,e){var t=new Ute(DM(),r,e);return Ou[t.id]=t,t}function Yte(r){r.dispose()}function Wte(){for(var r in Ou)Ou.hasOwnProperty(r)&&Ou[r].dispose();Ou={}}function Xte(r){return Ou[r]}function u6(r,e){H0[r]=e}var cC;function c6(r){if(typeof cC=="function")return cC(r)}function f6(r){cC=r}var qte="6.0.0";const Zte=Object.freeze(Object.defineProperty({__proto__:null,dispose:Yte,disposeAll:Wte,getElementSSRData:c6,getInstance:Xte,init:uC,registerPainter:u6,registerSSRDataGetter:f6,version:qte},Symbol.toStringTag,{value:"Module"}));var DO=1e-4,h6=20;function $te(r){return r.replace(/^\s+|\s+$/g,"")}var na=Math.min,ir=Math.max,Ii=Math.abs;function vt(r,e,t,n){var a=e[0],i=e[1],o=t[0],s=t[1],l=i-a,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(r<=a)return o;if(r>=i)return s}else{if(r>=a)return o;if(r<=i)return s}else{if(r===a)return o;if(r===i)return s}return(r-a)/l*u+o}var me=Kte;function Kte(r,e,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return Mx(r,e,t)}function Mx(r,e,t){return ye(r)?$te(r).match(/%$/)?parseFloat(r)/100*e+(t||0):parseFloat(r):r==null?NaN:+r}function or(r,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),h6),r=(+r).toFixed(e),t?r:+r}function Jn(r){return r.sort(function(e,t){return e-t}),r}function Za(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(r*e)/e===r)return t}return d6(r)}function d6(r){var e=r.toString().toLowerCase(),t=e.indexOf("e"),n=t>0?+e.slice(t+1):0,a=t>0?t:e.length,i=e.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-n)}function zM(r,e){var t=Math.log,n=Math.LN10,a=Math.floor(t(r[1]-r[0])/n),i=Math.round(t(Ii(e[1]-e[0]))/n),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function Qte(r,e,t){if(!r[e])return 0;var n=v6(r,t);return n[e]||0}function v6(r,e){var t=Ra(r,function(v,g){return v+(isNaN(g)?0:g)},0);if(t===0)return[];for(var n=Math.pow(10,e),a=ce(r,function(v){return(isNaN(v)?0:v)/t*n*100}),i=n*100,o=ce(a,function(v){return Math.floor(v)}),s=Ra(o,function(v,g){return v+g},0),l=ce(a,function(v,g){return v-o[g]});s<i;){for(var u=Number.NEGATIVE_INFINITY,c=null,f=0,d=l.length;f<d;++f)l[f]>u&&(u=l[f],c=f);++o[c],l[c]=0,++s}return ce(o,function(v){return v/n})}function Jte(r,e){var t=Math.max(Za(r),Za(e)),n=r+e;return t>h6?n:or(n,t)}var fC=9007199254740991;function BM(r){var e=Math.PI*2;return(r%e+e)%e}function Dh(r){return r>-DO&&r<DO}var ere=/^(?:(\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 $i(r){if(r instanceof Date)return r;if(ye(r)){var e=ere.exec(r);if(!e)return new Date(NaN);if(e[8]){var t=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(t-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,t,+(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(r==null)return new Date(NaN);return new Date(Math.round(r))}function p6(r){return Math.pow(10,H1(r))}function H1(r){if(r===0)return 0;var e=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,e)>=10&&e++,e}function jM(r,e){var t=H1(r),n=Math.pow(10,t),a=r/n,i;return e?a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10:a<1?i=1:a<2?i=2:a<3?i=3:a<5?i=5:i=10,r=i*n,t>=-20?+r.toFixed(t<0?-t:0):r}function F0(r,e){var t=(r.length-1)*e+1,n=Math.floor(t),a=+r[n-1],i=t-n;return i?a+i*(r[n]-a):a}function hC(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,n=0;n<r.length;){for(var a=r[n].interval,i=r[n].close,o=0;o<2;o++)a[o]<=e&&(a[o]=e,i[o]=o?1:1-t),e=a[o],t=i[o];a[0]===a[1]&&i[0]*i[1]!==1?r.splice(n,1):n++}return r;function s(l,u,c){return l.interval[c]<u.interval[c]||l.interval[c]===u.interval[c]&&(l.close[c]-u.close[c]===(c?-1:1)||!c&&s(l,u,1))}}function Ui(r){var e=parseFloat(r);return e==r&&(e!==0||!ye(r)||r.indexOf("x")<=0)?e:NaN}function VM(r){return!isNaN(Ui(r))}function g6(){return Math.round(Math.random()*9)}function m6(r,e){return e===0?r:m6(e,r%e)}function LO(r,e){return r==null?e:e==null?r:r*e/m6(r,e)}var tre="[ECharts] ",rre=typeof console<"u"&&console.warn&&console.log;function nre(r,e,t){rre&&console[r](tre+e)}function y6(r,e){nre("error",r)}function pt(r){throw new Error(r)}function NO(r,e,t){return(e-r)*t+r}var x6="series\0",b6="\0_ec_\0";function Dt(r){return r instanceof Array?r:r==null?[]:[r]}function sc(r,e,t){if(r){r[e]=r[e]||{},r.emphasis=r.emphasis||{},r.emphasis[e]=r.emphasis[e]||{};for(var n=0,a=t.length;n<a;n++){var i=t[n];!r.emphasis[e].hasOwnProperty(i)&&r[e].hasOwnProperty(i)&&(r.emphasis[e][i]=r[e][i])}}}var RO=["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 Xh(r){return Re(r)&&!ue(r)&&!(r instanceof Date)?r.value:r}function are(r){return Re(r)&&!(r instanceof Array)}function _6(r,e,t){var n=t==="normalMerge",a=t==="replaceMerge",i=t==="replaceAll";r=r||[],e=(e||[]).slice();var o=Te();P(e,function(l,u){if(!Re(l)){e[u]=null;return}});var s=ire(r,o,t);return(n||a)&&ore(s,r,o,e),n&&sre(s,e),n||a?lre(s,e,a):i&&ure(s,e),cre(s),s}function ire(r,e,t){var n=[];if(t==="replaceAll")return n;for(var a=0;a<r.length;a++){var i=r[a];i&&i.id!=null&&e.set(i.id,a),n.push({existing:t==="replaceMerge"||Zp(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return n}function ore(r,e,t,n){P(n,function(a,i){if(!(!a||a.id==null)){var o=Ap(a.id),s=t.get(o);if(s!=null){var l=r[s];Kr(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=a,l.existing=e[s],n[i]=null}}})}function sre(r,e){P(e,function(t,n){if(!(!t||t.name==null))for(var a=0;a<r.length;a++){var i=r[a].existing;if(!r[a].newOption&&i&&(i.id==null||t.id==null)&&!Zp(t)&&!Zp(i)&&S6("name",i,t)){r[a].newOption=t,e[n]=null;return}}})}function lre(r,e,t){P(e,function(n){if(n){for(var a,i=0;(a=r[i])&&(a.newOption||Zp(a.existing)||a.existing&&n.id!=null&&!S6("id",n,a.existing));)i++;a?(a.newOption=n,a.brandNew=t):r.push({newOption:n,brandNew:t,existing:null,keyInfo:null}),i++}})}function ure(r,e){P(e,function(t){r.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function cre(r){var e=Te();P(r,function(t){var n=t.existing;n&&e.set(n.id,t)}),P(r,function(t){var n=t.newOption;Kr(!n||n.id==null||!e.get(n.id)||e.get(n.id)===t,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&e.set(n.id,t),!t.keyInfo&&(t.keyInfo={})}),P(r,function(t,n){var a=t.existing,i=t.newOption,o=t.keyInfo;if(Re(i)){if(o.name=i.name!=null?Ap(i.name):a?a.name:x6+n,a)o.id=Ap(a.id);else if(i.id!=null)o.id=Ap(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,t)}})}function S6(r,e,t){var n=yr(e[r],null),a=yr(t[r],null);return n!=null&&a!=null&&n===a}function Ap(r){return yr(r,"")}function yr(r,e){return r==null?e:ye(r)?r:it(r)||dx(r)?r+"":e}function GM(r){var e=r.name;return!!(e&&e.indexOf(x6))}function Zp(r){return r&&r.id!=null&&Ap(r.id).indexOf(b6)===0}function fre(r){return b6+r}function hre(r,e,t){P(r,function(n){var a=n.newOption;Re(a)&&(n.keyInfo.mainType=e,n.keyInfo.subType=dre(e,a,n.existing,t))})}function dre(r,e,t,n){var a=e.type?e.type:t?t.subType:n.determineSubType(r,e);return a}function vre(r,e){var t={},n={};return a(r||[],t),a(e||[],n,t),[i(t),i(n)];function a(o,s,l){for(var u=0,c=o.length;u<c;u++){var f=yr(o[u].seriesId,null);if(f==null)return;for(var d=Dt(o[u].dataIndex),v=l&&l[f],g=0,x=d.length;g<x;g++){var y=d[g];v&&v[y]?v[y]=null:(s[f]||(s[f]={}))[y]=1}}}function i(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var c=i(o[u],!0);c.length&&l.push({seriesId:u,dataIndex:c})}return l}}function lc(r,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return ue(e.dataIndex)?ce(e.dataIndex,function(t){return r.indexOfRawIndex(t)}):r.indexOfRawIndex(e.dataIndex);if(e.name!=null)return ue(e.name)?ce(e.name,function(t){return r.indexOfName(t)}):r.indexOfName(e.name)}function Ke(){var r="__ec_inner_"+pre++;return function(e){return e[r]||(e[r]={})}}var pre=g6();function oh(r,e,t){var n=HM(e,t),a=n.mainTypeSpecified,i=n.queryOptionMap,o=n.others,s=o,l=t?t.defaultMainType:null;return!a&&l&&i.set(l,{}),i.each(function(u,c){var f=qh(r,c,u,{useDefault:l===c,enableAll:t&&t.enableAll!=null?t.enableAll:!0,enableNone:t&&t.enableNone!=null?t.enableNone:!0});s[c+"Models"]=f.models,s[c+"Model"]=f.models[0]}),s}function HM(r,e){var t;if(ye(r)){var n={};n[r+"Index"]=0,t=n}else t=r;var a=Te(),i={},o=!1;return P(t,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],f=(u[2]||"").toLowerCase();if(!(!c||!f||e&&e.includeMainTypes&&Ge(e.includeMainTypes,c)<0)){o=o||!!c;var d=a.get(c)||a.set(c,{});d[f]=s}}),{mainTypeSpecified:o,queryOptionMap:a,others:i}}var qt={useDefault:!0,enableAll:!1,enableNone:!1},gre={useDefault:!1,enableAll:!0,enableNone:!0};function qh(r,e,t,n){n=n||qt;var a=t.index,i=t.id,o=t.name,s={models:null,specified:a!=null||i!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=r.getComponent(e))?[l]:[],s}if(a==="none"||a===!1){if(n.enableNone)return s.models=[],s;a=-1}return a==="all"&&(n.enableAll?a=i=o=null:a=-1),s.models=r.queryComponents({mainType:e,index:a,id:i,name:o}),s}function w6(r,e,t){r.setAttribute?r.setAttribute(e,t):r[e]=t}function mre(r,e){return r.getAttribute?r.getAttribute(e):r[e]}function yre(r){return r==="auto"?rt.domSupported?"html":"richText":r||"html"}function dC(r,e){var t=Te(),n=[];return P(r,function(a){var i=e(a);(t.get(i)||(n.push(i),t.set(i,[]))).push(a)}),{keys:n,buckets:t}}function T6(r,e,t,n,a){var i=e==null||e==="auto";if(n==null)return n;if(it(n)){var o=NO(t||0,n,a);return or(o,i?Math.max(Za(t||0),Za(n)):e)}else{if(ye(n))return a<1?t:n;for(var s=[],l=t,u=n,c=Math.max(l?l.length:0,u.length),f=0;f<c;++f){var d=r.getDimensionInfo(f);if(d&&d.type==="ordinal")s[f]=(a<1&&l?l:u)[f];else{var v=l&&l[f]?l[f]:0,g=u[f],o=NO(v,g,a);s[f]=or(o,i?Math.max(Za(v),Za(g)):e)}}return s}}var ul=(function(){function r(){}return r.prototype.reset=function(e,t,n,a){return this._list=e,this._step=a=a||1,this._idx=t,this._end=n??(a>0?e.length:0),this.item=null,this.key=NaN,this},r.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)?(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0):!1},r})();function sw(r){r.option=r.parentModel=r.ecModel=null}var xre=".",ru="___EC__COMPONENT__CONTAINER___",C6="___EC__EXTENDED_CLASS___";function ki(r){var e={main:"",sub:""};if(r){var t=r.split(xre);e.main=t[0]||"",e.sub=t[1]||""}return e}function bre(r){Kr(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function _re(r){return!!(r&&r[C6])}function FM(r,e){r.$constructor=r,r.extend=function(t){var n=this,a;return Sre(n)?a=(function(i){K(o,i);function o(){return i.apply(this,arguments)||this}return o})(n):(a=function(){(t.$constructor||n).apply(this,arguments)},LM(a,this)),ie(a.prototype,t),a[C6]=!0,a.extend=this.extend,a.superCall=Cre,a.superApply=Are,a.superClass=n,a}}function Sre(r){return Ae(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function A6(r,e){r.extend=e.extend}var wre=Math.round(Math.random()*10);function Tre(r){var e=["__\0is_clz",wre++].join("_");r.prototype[e]=!0,r.isInstance=function(t){return!!(t&&t[e])}}function Cre(r,e){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];return this.superClass.prototype[e].apply(r,t)}function Are(r,e,t){return this.superClass.prototype[e].apply(r,t)}function F1(r){var e={};r.registerClass=function(n){var a=n.type||n.prototype.type;if(a){bre(a),n.prototype.type=a;var i=ki(a);if(!i.sub)e[i.main]=n;else if(i.sub!==ru){var o=t(i);o[i.sub]=n}}return n},r.getClass=function(n,a,i){var o=e[n];if(o&&o[ru]&&(o=a?o[a]:null),i&&!o)throw new Error(a?"Component "+n+"."+(a||"")+" is used but not imported.":n+".type should be specified.");return o},r.getClassesByMainType=function(n){var a=ki(n),i=[],o=e[a.main];return o&&o[ru]?P(o,function(s,l){l!==ru&&i.push(s)}):i.push(o),i},r.hasClass=function(n){var a=ki(n);return!!e[a.main]},r.getAllClassMainTypes=function(){var n=[];return P(e,function(a,i){n.push(i)}),n},r.hasSubTypes=function(n){var a=ki(n),i=e[a.main];return i&&i[ru]};function t(n){var a=e[n.main];return(!a||!a[ru])&&(a=e[n.main]={},a[ru]=!0),a}}function uc(r,e){for(var t=0;t<r.length;t++)r[t][1]||(r[t][1]=r[t][0]);return e=e||!1,function(n,a,i){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(a&&Ge(a,l)>=0||i&&Ge(i,l)<0)){var u=n.getShallow(l,e);u!=null&&(o[r[s][0]]=u)}}return o}}var Mre=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Dre=uc(Mre),Lre=(function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return Dre(this,e,t)},r})(),vC=new Ah(50);function Nre(r){if(typeof r=="string"){var e=vC.get(r);return e&&e.image}else return r}function UM(r,e,t,n,a){if(r)if(typeof r=="string"){if(e&&e.__zrImageSrc===r||!t)return e;var i=vC.get(r),o={hostEl:t,cb:n,cbPayload:a};return i?(e=i.image,!U1(e)&&i.pending.push(o)):(e=En.loadImage(r,EO,EO),e.__zrImageSrc=r,vC.put(r,e.__cachedImgObj={image:e,pending:[o]})),e}else return r;else return e}function EO(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<r.pending.length;e++){var t=r.pending[e],n=t.cb;n&&n(this,t.cbPayload),t.hostEl.dirty()}r.pending.length=0}function U1(r){return r&&r.width&&r.height}var lw=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Rre(r,e,t,n,a){var i={};return M6(i,r,e,t,n,a),i.text}function M6(r,e,t,n,a,i){if(!t){r.text="",r.isTruncated=!1;return}var o=(e+"").split(`
|
|
247
|
+
`);i=D6(t,n,a,i);for(var s=!1,l={},u=0,c=o.length;u<c;u++)L6(l,o[u],i),o[u]=l.textLine,s=s||l.isTruncated;r.text=o.join(`
|
|
248
|
+
`),r.isTruncated=s}function D6(r,e,t,n){n=n||{};var a=ie({},n);t=Ce(t,"..."),a.maxIterations=Ce(n.maxIterations,2);var i=a.minChar=Ce(n.minChar,0),o=a.fontMeasureInfo=Vi(e),s=o.asciiCharWidth;a.placeholder=Ce(n.placeholder,"");for(var l=r=Math.max(0,r-1),u=0;u<i&&l>=s;u++)l-=s;var c=Gi(o,t);return c>l&&(t="",c=0),l=r-c,a.ellipsis=t,a.ellipsisWidth=c,a.contentWidth=l,a.containerWidth=r,a}function L6(r,e,t){var n=t.containerWidth,a=t.contentWidth,i=t.fontMeasureInfo;if(!n){r.textLine="",r.isTruncated=!1;return}var o=Gi(i,e);if(o<=n){r.textLine=e,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=a||s>=t.maxIterations){e+=t.ellipsis;break}var l=s===0?Ere(e,a,i):o>0?Math.floor(e.length*a/o):0;e=e.substr(0,l),o=Gi(i,e)}e===""&&(e=t.placeholder),r.textLine=e,r.isTruncated=!0}function Ere(r,e,t){for(var n=0,a=0,i=r.length;a<i&&n<e;a++)n+=s6(t,r.charCodeAt(a));return a}function Ire(r,e,t,n){var a=YM(r),i=e.overflow,o=e.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=e.font,c=i==="truncate",f=kg(u),d=Ce(e.lineHeight,f),v=e.lineOverflow==="truncate",g=!1,x=e.width;x==null&&t!=null&&(x=t-s);var y=e.height;y==null&&n!=null&&(y=n-l);var b;x!=null&&(i==="break"||i==="breakAll")?b=a?N6(a,e.font,x,i==="breakAll",0).lines:[]:b=a?a.split(`
|
|
249
|
+
`):[];var S=b.length*d;if(y==null&&(y=S),S>y&&v){var T=Math.floor(y/d);g=g||b.length>T,b=b.slice(0,T),S=b.length*d}if(a&&c&&x!=null)for(var C=D6(x,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),M={},D=0;D<b.length;D++)L6(M,b[D],C),b[D]=M.textLine,g=g||M.isTruncated;for(var L=y,E=0,R=Vi(u),D=0;D<b.length;D++)E=Math.max(Gi(R,b[D]),E);x==null&&(x=E);var I=x;return L+=l,I+=s,{lines:b,height:y,outerWidth:I,outerHeight:L,lineHeight:d,calculatedLineHeight:f,contentWidth:E,contentHeight:S,width:x,isTruncated:g}}var kre=(function(){function r(){}return r})(),IO=(function(){function r(e){this.tokens=[],e&&(this.tokens=e)}return r})(),Ore=(function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return r})();function Pre(r,e,t,n,a){var i=new Ore,o=YM(r);if(!o)return i;var s=e.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,c=e.width;c==null&&t!=null&&(c=t-l);var f=e.height;f==null&&n!=null&&(f=n-u);for(var d=e.overflow,v=(d==="break"||d==="breakAll")&&c!=null?{width:c,accumWidth:0,breakAll:d==="breakAll"}:null,g=lw.lastIndex=0,x;(x=lw.exec(o))!=null;){var y=x.index;y>g&&uw(i,o.substring(g,y),e,v),uw(i,x[2],e,v,x[1]),g=lw.lastIndex}g<o.length&&uw(i,o.substring(g,o.length),e,v);var b=[],S=0,T=0,C=d==="truncate",M=e.lineOverflow==="truncate",D={};function L(we,de,ve){we.width=de,we.lineHeight=ve,S+=ve,T=Math.max(T,de)}e:for(var E=0;E<i.lines.length;E++){for(var R=i.lines[E],I=0,k=0,z=0;z<R.tokens.length;z++){var O=R.tokens[z],G=O.styleName&&e.rich[O.styleName]||{},F=O.textPadding=G.padding,B=F?F[1]+F[3]:0,Y=O.font=G.font||e.font;O.contentHeight=kg(Y);var H=Ce(G.height,O.contentHeight);if(O.innerHeight=H,F&&(H+=F[0]+F[2]),O.height=H,O.lineHeight=Rn(G.lineHeight,e.lineHeight,H),O.align=G&&G.align||a,O.verticalAlign=G&&G.verticalAlign||"middle",M&&f!=null&&S+O.lineHeight>f){var X=i.lines.length;z>0?(R.tokens=R.tokens.slice(0,z),L(R,k,I),i.lines=i.lines.slice(0,E+1)):i.lines=i.lines.slice(0,E),i.isTruncated=i.isTruncated||i.lines.length<X;break e}var V=G.width,W=V==null||V==="auto";if(typeof V=="string"&&V.charAt(V.length-1)==="%")O.percentWidth=V,b.push(O),O.contentWidth=Gi(Vi(Y),O.text);else{if(W){var $=G.backgroundColor,te=$&&$.image;te&&(te=Nre(te),U1(te)&&(O.width=Math.max(O.width,te.width*H/te.height)))}var le=C&&c!=null?c-k:null;le!=null&&le<O.width?!W||le<B?(O.text="",O.width=O.contentWidth=0):(M6(D,O.text,le-B,Y,e.ellipsis,{minChar:e.truncateMinChar}),O.text=D.text,i.isTruncated=i.isTruncated||D.isTruncated,O.width=O.contentWidth=Gi(Vi(Y),O.text)):O.contentWidth=Gi(Vi(Y),O.text)}O.width+=B,k+=O.width,G&&(I=Math.max(I,O.lineHeight))}L(R,k,I)}i.outerWidth=i.width=Ce(c,T),i.outerHeight=i.height=Ce(f,S),i.contentHeight=S,i.contentWidth=T,i.outerWidth+=l,i.outerHeight+=u;for(var E=0;E<b.length;E++){var O=b[E],ge=O.percentWidth;O.width=parseInt(ge,10)/100*i.width}return i}function uw(r,e,t,n,a){var i=e==="",o=a&&t.rich[a]||{},s=r.lines,l=o.font||t.font,u=!1,c,f;if(n){var d=o.padding,v=d?d[1]+d[3]:0;if(o.width!=null&&o.width!=="auto"){var g=ai(o.width,n.width)+v;s.length>0&&g+n.accumWidth>n.width&&(c=e.split(`
|
|
250
|
+
`),u=!0),n.accumWidth=g}else{var x=N6(e,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=x.accumWidth+v,f=x.linesWidths,c=x.lines}}c||(c=e.split(`
|
|
251
|
+
`));for(var y=Vi(l),b=0;b<c.length;b++){var S=c[b],T=new kre;if(T.styleName=a,T.text=S,T.isLineHolder=!S&&!i,typeof o.width=="number"?T.width=o.width:T.width=f?f[b]:Gi(y,S),!b&&!u){var C=(s[s.length-1]||(s[0]=new IO)).tokens,M=C.length;M===1&&C[0].isLineHolder?C[0]=T:(S||!M||i)&&C.push(T)}else s.push(new IO([T]))}}function zre(r){var e=r.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var Bre=Ra(",&?/;] ".split(""),function(r,e){return r[e]=!0,r},{});function jre(r){return zre(r)?!!Bre[r]:!0}function N6(r,e,t,n,a){for(var i=[],o=[],s="",l="",u=0,c=0,f=Vi(e),d=0;d<r.length;d++){var v=r.charAt(d);if(v===`
|
|
252
|
+
`){l&&(s+=l,c+=u),i.push(s),o.push(c),s="",l="",u=0,c=0;continue}var g=s6(f,v.charCodeAt(0)),x=n?!1:!jre(v);if(i.length?c+g>t:a+c+g>t){c?(s||l)&&(x?(s||(s=l,l="",u=0,c=u),i.push(s),o.push(c-u),l+=v,u+=g,s="",c=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(c),s=v,c=g)):x?(i.push(l),o.push(u),l=v,u=g):(i.push(v),o.push(g));continue}c+=g,x?(l+=v,u+=g):(l&&(s+=l,l="",u=0),s+=v)}return l&&(s+=l),s&&(i.push(s),o.push(c)),i.length===1&&(c+=a),{accumWidth:c,lines:i,linesWidths:o}}function kO(r,e,t,n,a,i){if(r.baseX=t,r.baseY=n,r.outerWidth=r.outerHeight=null,!!e){var o=e.width*2,s=e.height*2;ke.set(OO,Mh(t,o,a),Ku(n,s,i),o,s),ke.intersect(e,OO,null,PO);var l=PO.outIntersectRect;r.outerWidth=l.width,r.outerHeight=l.height,r.baseX=Mh(l.x,l.width,a,!0),r.baseY=Ku(l.y,l.height,i,!0)}}var OO=new ke(0,0,0,0),PO={outIntersectRect:{},clamp:!0};function YM(r){return r!=null?r+="":r=""}function Vre(r){var e=YM(r.text),t=r.font,n=Gi(Vi(t),e),a=kg(t);return pC(r,n,a,null)}function pC(r,e,t,n){var a=new ke(Mh(r.x||0,e,r.textAlign),Ku(r.y||0,t,r.textBaseline),e,t),i=n??(R6(r)?r.lineWidth:0);return i>0&&(a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i),a}function R6(r){var e=r.stroke;return e!=null&&e!=="none"&&r.lineWidth>0}var gC="__zr_style_"+Math.round(Math.random()*10),Qu={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Y1={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Qu[gC]=!0;var zO=["z","z2","invisible"],Gre=["invisible"],Ia=(function(r){K(e,r);function e(t){return r.call(this,t)||this}return e.prototype._init=function(t){for(var n=nt(t),a=0;a<n.length;a++){var i=n[a];i==="style"?this.useStyle(t[i]):r.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,n,a,i){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&Hre(this,t,n)||o&&!o[0]&&!o[3])return!1;if(a&&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(t,n){return this.rectContain(t,n)},e.prototype.traverse=function(t,n){t.call(n,this)},e.prototype.rectContain=function(t,n){var a=this.transformCoordToLocal(t,n),i=this.getBoundingRect();return i.contain(a[0],a[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,a=this.getBoundingRect(),i=this.style,o=i.shadowBlur||0,s=i.shadowOffsetX||0,l=i.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new ke(0,0,0,0)),n?ke.applyTransform(t,a,n):t.copy(a),(o||s||l)&&(t.width+=o*2+Math.abs(s),t.height+=o*2+Math.abs(l),t.x=Math.min(t.x,t.x+s-o),t.y=Math.min(t.y,t.y+l-o));var u=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-u),t.y=Math.floor(t.y-u),t.width=Math.ceil(t.width+1+u*2),t.height=Math.ceil(t.height+1+u*2))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new ke(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(t,n){t!=="style"?r.prototype.attrKV.call(this,t,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(t,n){return typeof t=="string"?this.style[t]=n:ie(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=ip,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&ip)},e.prototype.styleUpdated=function(){this.__dirty&=~ip},e.prototype.createStyle=function(t){return Rg(Qu,t)},e.prototype.useStyle=function(t){t[gC]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[gC]},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,zO)},e.prototype._applyStateObj=function(t,n,a,i,o,s){r.prototype._applyStateObj.call(this,t,n,a,i,o,s);var l=!(n&&i),u;if(n&&n.style?o?i?u=n.style:(u=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),i?this.style:a.style),this._mergeStyle(u,n.style)):l&&(u=a.style),u)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var f=nt(c),d=0;d<f.length;d++){var v=f[d];v in u&&(u[v]=u[v],this.style[v]=c[v])}for(var g=nt(u),d=0;d<g.length;d++){var v=g[d];this.style[v]=this.style[v]}this._transitionState(t,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var x=this.__inHover?Gre:zO,d=0;d<x.length;d++){var v=x[d];n&&n[v]!=null?this[v]=n[v]:l&&a[v]!=null&&(this[v]=a[v])}},e.prototype._mergeStates=function(t){for(var n=r.prototype._mergeStates.call(this,t),a,i=0;i<t.length;i++){var o=t[i];o.style&&(a=a||{},this._mergeStyle(a,o.style))}return a&&(n.style=a),n},e.prototype._mergeStyle=function(t,n){return ie(t,n),t},e.prototype.getAnimationStyleProps=function(){return Y1},e.initDefaultProps=(function(){var t=e.prototype;t.type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=!1,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=$n|ip})(),e})(G1),cw=new ke(0,0,0,0),fw=new ke(0,0,0,0);function Hre(r,e,t){return cw.copy(r.getBoundingRect()),r.transform&&cw.applyTransform(r.transform),fw.width=e,fw.height=t,!cw.intersect(fw)}var Dn=Math.min,Ln=Math.max,hw=Math.sin,dw=Math.cos,nu=Math.PI*2,Ay=Al(),My=Al(),Dy=Al();function W1(r,e,t){if(r.length!==0){for(var n=r[0],a=n[0],i=n[0],o=n[1],s=n[1],l=1;l<r.length;l++)n=r[l],a=Dn(a,n[0]),i=Ln(i,n[0]),o=Dn(o,n[1]),s=Ln(s,n[1]);e[0]=a,e[1]=o,t[0]=i,t[1]=s}}function BO(r,e,t,n,a,i){a[0]=Dn(r,t),a[1]=Dn(e,n),i[0]=Ln(r,t),i[1]=Ln(e,n)}var jO=[],VO=[];function Fre(r,e,t,n,a,i,o,s,l,u){var c=WG,f=Cr,d=c(r,t,a,o,jO);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var v=0;v<d;v++){var g=f(r,t,a,o,jO[v]);l[0]=Dn(g,l[0]),u[0]=Ln(g,u[0])}d=c(e,n,i,s,VO);for(var v=0;v<d;v++){var x=f(e,n,i,s,VO[v]);l[1]=Dn(x,l[1]),u[1]=Ln(x,u[1])}l[0]=Dn(r,l[0]),u[0]=Ln(r,u[0]),l[0]=Dn(o,l[0]),u[0]=Ln(o,u[0]),l[1]=Dn(e,l[1]),u[1]=Ln(e,u[1]),l[1]=Dn(s,l[1]),u[1]=Ln(s,u[1])}function Ure(r,e,t,n,a,i,o,s){var l=qG,u=Br,c=Ln(Dn(l(r,t,a),1),0),f=Ln(Dn(l(e,n,i),1),0),d=u(r,t,a,c),v=u(e,n,i,f);o[0]=Dn(r,a,d),o[1]=Dn(e,i,v),s[0]=Ln(r,a,d),s[1]=Ln(e,i,v)}function Yre(r,e,t,n,a,i,o,s,l){var u=Io,c=ko,f=Math.abs(a-i);if(f%nu<1e-4&&f>1e-4){s[0]=r-t,s[1]=e-n,l[0]=r+t,l[1]=e+n;return}if(Ay[0]=dw(a)*t+r,Ay[1]=hw(a)*n+e,My[0]=dw(i)*t+r,My[1]=hw(i)*n+e,u(s,Ay,My),c(l,Ay,My),a=a%nu,a<0&&(a=a+nu),i=i%nu,i<0&&(i=i+nu),a>i&&!o?i+=nu:a<i&&o&&(a+=nu),o){var d=i;i=a,a=d}for(var v=0;v<i;v+=Math.PI/2)v>a&&(Dy[0]=dw(v)*t+r,Dy[1]=hw(v)*n+e,u(s,Dy,s),c(l,Dy,l))}var Rt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},au=[],iu=[],vi=[],Rs=[],pi=[],gi=[],vw=Math.min,pw=Math.max,ou=Math.cos,su=Math.sin,go=Math.abs,mC=Math.PI,Vs=mC*2,gw=typeof Float32Array<"u",_v=[];function mw(r){var e=Math.round(r/mC*1e8)/1e8;return e%2*mC}function X1(r,e){var t=mw(r[0]);t<0&&(t+=Vs);var n=t-r[0],a=r[1];a+=n,!e&&a-t>=Vs?a=t+Vs:e&&t-a>=Vs?a=t-Vs:!e&&t>a?a=t+(Vs-mw(t-a)):e&&t<a&&(a=t-(Vs-mw(a-t))),r[0]=t,r[1]=a}var Yi=(function(){function r(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 r.prototype.increaseVersion=function(){this._version++},r.prototype.getVersion=function(){return this._version},r.prototype.setScale=function(e,t,n){n=n||0,n>0&&(this._ux=go(n/Tx/e)||0,this._uy=go(n/Tx/t)||0)},r.prototype.setDPR=function(e){this.dpr=e},r.prototype.setContext=function(e){this._ctx=e},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(Rt.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},r.prototype.lineTo=function(e,t){var n=go(e-this._xi),a=go(t-this._yi),i=n>this._ux||a>this._uy;if(this.addData(Rt.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=n*n+a*a;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(e,t,n,a,i,o){return this._drawPendingPt(),this.addData(Rt.C,e,t,n,a,i,o),this._ctx&&this._ctx.bezierCurveTo(e,t,n,a,i,o),this._xi=i,this._yi=o,this},r.prototype.quadraticCurveTo=function(e,t,n,a){return this._drawPendingPt(),this.addData(Rt.Q,e,t,n,a),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,a),this._xi=n,this._yi=a,this},r.prototype.arc=function(e,t,n,a,i,o){this._drawPendingPt(),_v[0]=a,_v[1]=i,X1(_v,o),a=_v[0],i=_v[1];var s=i-a;return this.addData(Rt.A,e,t,n,n,a,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,n,a,i,o),this._xi=ou(i)*n+e,this._yi=su(i)*n+t,this},r.prototype.arcTo=function(e,t,n,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,a,i),this},r.prototype.rect=function(e,t,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,a),this.addData(Rt.R,e,t,n,a),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(Rt.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},r.prototype.fill=function(e){e&&e.fill(),this.toStatic()},r.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(e){if(this._saveData){var t=e.length;!(this.data&&this.data.length===t)&&gw&&(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t}},r.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var t=e.length,n=0,a=this._len,i=0;i<t;i++)n+=e[i].len();var o=this.data;if(gw&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(a+n),a>0&&o))for(var s=0;s<a;s++)this.data[s]=o[s];for(var i=0;i<t;i++)for(var l=e[i].data,s=0;s<l.length;s++)this.data[a++]=l[s];this._len=a}},r.prototype.addData=function(e,t,n,a,i,o,s,l,u){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var f=0;f<arguments.length;f++)c[this._len++]=arguments[f]}},r.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},r.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,gw&&this._len>11&&(this.data=new Float32Array(e)))}},r.prototype.getBoundingRect=function(){vi[0]=vi[1]=pi[0]=pi[1]=Number.MAX_VALUE,Rs[0]=Rs[1]=gi[0]=gi[1]=-Number.MAX_VALUE;var e=this.data,t=0,n=0,a=0,i=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(t=e[o],n=e[o+1],a=t,i=n),s){case Rt.M:t=a=e[o++],n=i=e[o++],pi[0]=a,pi[1]=i,gi[0]=a,gi[1]=i;break;case Rt.L:BO(t,n,e[o],e[o+1],pi,gi),t=e[o++],n=e[o++];break;case Rt.C:Fre(t,n,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],pi,gi),t=e[o++],n=e[o++];break;case Rt.Q:Ure(t,n,e[o++],e[o++],e[o],e[o+1],pi,gi),t=e[o++],n=e[o++];break;case Rt.A:var u=e[o++],c=e[o++],f=e[o++],d=e[o++],v=e[o++],g=e[o++]+v;o+=1;var x=!e[o++];l&&(a=ou(v)*f+u,i=su(v)*d+c),Yre(u,c,f,d,v,g,x,pi,gi),t=ou(g)*f+u,n=su(g)*d+c;break;case Rt.R:a=t=e[o++],i=n=e[o++];var y=e[o++],b=e[o++];BO(a,i,a+y,i+b,pi,gi);break;case Rt.Z:t=a,n=i;break}Io(vi,vi,pi),ko(Rs,Rs,gi)}return o===0&&(vi[0]=vi[1]=Rs[0]=Rs[1]=0),new ke(vi[0],vi[1],Rs[0]-vi[0],Rs[1]-vi[1])},r.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,a=this._uy,i=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,c=0,f=0,d=0;d<t;){var v=e[d++],g=d===1;g&&(i=e[d],o=e[d+1],s=i,l=o);var x=-1;switch(v){case Rt.M:i=s=e[d++],o=l=e[d++];break;case Rt.L:{var y=e[d++],b=e[d++],S=y-i,T=b-o;(go(S)>n||go(T)>a||d===t-1)&&(x=Math.sqrt(S*S+T*T),i=y,o=b);break}case Rt.C:{var C=e[d++],M=e[d++],y=e[d++],b=e[d++],D=e[d++],L=e[d++];x=tte(i,o,C,M,y,b,D,L,10),i=D,o=L;break}case Rt.Q:{var C=e[d++],M=e[d++],y=e[d++],b=e[d++];x=nte(i,o,C,M,y,b,10),i=y,o=b;break}case Rt.A:var E=e[d++],R=e[d++],I=e[d++],k=e[d++],z=e[d++],O=e[d++],G=O+z;d+=1,g&&(s=ou(z)*I+E,l=su(z)*k+R),x=pw(I,k)*vw(Vs,Math.abs(O)),i=ou(G)*I+E,o=su(G)*k+R;break;case Rt.R:{s=i=e[d++],l=o=e[d++];var F=e[d++],B=e[d++];x=F*2+B*2;break}case Rt.Z:{var S=s-i,T=l-o;x=Math.sqrt(S*S+T*T),i=s,o=l;break}}x>=0&&(u[f++]=x,c+=x)}return this._pathLen=c,c},r.prototype.rebuildPath=function(e,t){var n=this.data,a=this._ux,i=this._uy,o=this._len,s,l,u,c,f,d,v=t<1,g,x,y=0,b=0,S,T=0,C,M;if(!(v&&(this._pathSegLen||this._calculateLength(),g=this._pathSegLen,x=this._pathLen,S=t*x,!S)))e:for(var D=0;D<o;){var L=n[D++],E=D===1;switch(E&&(u=n[D],c=n[D+1],s=u,l=c),L!==Rt.L&&T>0&&(e.lineTo(C,M),T=0),L){case Rt.M:s=u=n[D++],l=c=n[D++],e.moveTo(u,c);break;case Rt.L:{f=n[D++],d=n[D++];var R=go(f-u),I=go(d-c);if(R>a||I>i){if(v){var k=g[b++];if(y+k>S){var z=(S-y)/k;e.lineTo(u*(1-z)+f*z,c*(1-z)+d*z);break e}y+=k}e.lineTo(f,d),u=f,c=d,T=0}else{var O=R*R+I*I;O>T&&(C=f,M=d,T=O)}break}case Rt.C:{var G=n[D++],F=n[D++],B=n[D++],Y=n[D++],H=n[D++],X=n[D++];if(v){var k=g[b++];if(y+k>S){var z=(S-y)/k;yl(u,G,B,H,z,au),yl(c,F,Y,X,z,iu),e.bezierCurveTo(au[1],iu[1],au[2],iu[2],au[3],iu[3]);break e}y+=k}e.bezierCurveTo(G,F,B,Y,H,X),u=H,c=X;break}case Rt.Q:{var G=n[D++],F=n[D++],B=n[D++],Y=n[D++];if(v){var k=g[b++];if(y+k>S){var z=(S-y)/k;Up(u,G,B,z,au),Up(c,F,Y,z,iu),e.quadraticCurveTo(au[1],iu[1],au[2],iu[2]);break e}y+=k}e.quadraticCurveTo(G,F,B,Y),u=B,c=Y;break}case Rt.A:var V=n[D++],W=n[D++],$=n[D++],te=n[D++],le=n[D++],ge=n[D++],we=n[D++],de=!n[D++],ve=$>te?$:te,be=go($-te)>.001,Oe=le+ge,_e=!1;if(v){var k=g[b++];y+k>S&&(Oe=le+ge*(S-y)/k,_e=!0),y+=k}if(be&&e.ellipse?e.ellipse(V,W,$,te,we,le,Oe,de):e.arc(V,W,ve,le,Oe,de),_e)break e;E&&(s=ou(le)*$+V,l=su(le)*te+W),u=ou(Oe)*$+V,c=su(Oe)*te+W;break;case Rt.R:s=u=n[D],l=c=n[D+1],f=n[D++],d=n[D++];var Le=n[D++],st=n[D++];if(v){var k=g[b++];if(y+k>S){var Qe=S-y;e.moveTo(f,d),e.lineTo(f+vw(Qe,Le),d),Qe-=Le,Qe>0&&e.lineTo(f+Le,d+vw(Qe,st)),Qe-=st,Qe>0&&e.lineTo(f+pw(Le-Qe,0),d+st),Qe-=Le,Qe>0&&e.lineTo(f,d+pw(st-Qe,0));break e}y+=k}e.rect(f,d,Le,st);break;case Rt.Z:if(v){var k=g[b++];if(y+k>S){var z=(S-y)/k;e.lineTo(u*(1-z)+s*z,c*(1-z)+l*z);break e}y+=k}e.closePath(),u=s,c=l}}},r.prototype.clone=function(){var e=new r,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},r.prototype.canSave=function(){return!!this._saveData},r.CMD=Rt,r.initDefaultProps=(function(){var e=r.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0})(),r})();function Hs(r,e,t,n,a,i,o){if(a===0)return!1;var s=a,l=0,u=r;if(o>e+s&&o>n+s||o<e-s&&o<n-s||i>r+s&&i>t+s||i<r-s&&i<t-s)return!1;if(r!==t)l=(e-n)/(r-t),u=(r*n-t*e)/(r-t);else return Math.abs(i-r)<=s/2;var c=l*i-o+u,f=c*c/(l*l+1);return f<=s/2*s/2}function Wre(r,e,t,n,a,i,o,s,l,u,c){if(l===0)return!1;var f=l;if(c>e+f&&c>n+f&&c>i+f&&c>s+f||c<e-f&&c<n-f&&c<i-f&&c<s-f||u>r+f&&u>t+f&&u>a+f&&u>o+f||u<r-f&&u<t-f&&u<a-f&&u<o-f)return!1;var d=XG(r,e,t,n,a,i,o,s,u,c,null);return d<=f/2}function E6(r,e,t,n,a,i,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>n+u&&l>i+u||l<e-u&&l<n-u&&l<i-u||s>r+u&&s>t+u&&s>a+u||s<r-u&&s<t-u&&s<a-u)return!1;var c=ZG(r,e,t,n,a,i,s,l,null);return c<=u/2}var GO=Math.PI*2;function ea(r){return r%=GO,r<0&&(r+=GO),r}var Sv=Math.PI*2;function Xre(r,e,t,n,a,i,o,s,l){if(o===0)return!1;var u=o;s-=r,l-=e;var c=Math.sqrt(s*s+l*l);if(c-u>t||c+u<t)return!1;if(Math.abs(n-a)%Sv<1e-4)return!0;if(i){var f=n;n=ea(a),a=ea(f)}else n=ea(n),a=ea(a);n>a&&(a+=Sv);var d=Math.atan2(l,s);return d<0&&(d+=Sv),d>=n&&d<=a||d+Sv>=n&&d+Sv<=a}function Mo(r,e,t,n,a,i){if(i>e&&i>n||i<e&&i<n||n===e)return 0;var o=(i-e)/(n-e),s=n<e?1:-1;(o===1||o===0)&&(s=n<e?.5:-.5);var l=o*(t-r)+r;return l===a?1/0:l>a?s:0}var Es=Yi.CMD,lu=Math.PI*2,qre=1e-4;function Zre(r,e){return Math.abs(r-e)<qre}var vn=[-1,-1,-1],Sa=[-1,-1];function $re(){var r=Sa[0];Sa[0]=Sa[1],Sa[1]=r}function Kre(r,e,t,n,a,i,o,s,l,u){if(u>e&&u>n&&u>i&&u>s||u<e&&u<n&&u<i&&u<s)return 0;var c=xx(e,n,i,s,u,vn);if(c===0)return 0;for(var f=0,d=-1,v=void 0,g=void 0,x=0;x<c;x++){var y=vn[x],b=y===0||y===1?.5:1,S=Cr(r,t,a,o,y);S<l||(d<0&&(d=WG(e,n,i,s,Sa),Sa[1]<Sa[0]&&d>1&&$re(),v=Cr(e,n,i,s,Sa[0]),d>1&&(g=Cr(e,n,i,s,Sa[1]))),d===2?y<Sa[0]?f+=v<e?b:-b:y<Sa[1]?f+=g<v?b:-b:f+=s<g?b:-b:y<Sa[0]?f+=v<e?b:-b:f+=s<v?b:-b)}return f}function Qre(r,e,t,n,a,i,o,s){if(s>e&&s>n&&s>i||s<e&&s<n&&s<i)return 0;var l=rte(e,n,i,s,vn);if(l===0)return 0;var u=qG(e,n,i);if(u>=0&&u<=1){for(var c=0,f=Br(e,n,i,u),d=0;d<l;d++){var v=vn[d]===0||vn[d]===1?.5:1,g=Br(r,t,a,vn[d]);g<o||(vn[d]<u?c+=f<e?v:-v:c+=i<f?v:-v)}return c}else{var v=vn[0]===0||vn[0]===1?.5:1,g=Br(r,t,a,vn[0]);return g<o?0:i<e?v:-v}}function Jre(r,e,t,n,a,i,o,s){if(s-=e,s>t||s<-t)return 0;var l=Math.sqrt(t*t-s*s);vn[0]=-l,vn[1]=l;var u=Math.abs(n-a);if(u<1e-4)return 0;if(u>=lu-1e-4){n=0,a=lu;var c=i?1:-1;return o>=vn[0]+r&&o<=vn[1]+r?c:0}if(n>a){var f=n;n=a,a=f}n<0&&(n+=lu,a+=lu);for(var d=0,v=0;v<2;v++){var g=vn[v];if(g+r>o){var x=Math.atan2(s,g),c=i?1:-1;x<0&&(x=lu+x),(x>=n&&x<=a||x+lu>=n&&x+lu<=a)&&(x>Math.PI/2&&x<Math.PI*1.5&&(c=-c),d+=c)}}return d}function I6(r,e,t,n,a){for(var i=r.data,o=r.len(),s=0,l=0,u=0,c=0,f=0,d,v,g=0;g<o;){var x=i[g++],y=g===1;switch(x===Es.M&&g>1&&(t||(s+=Mo(l,u,c,f,n,a))),y&&(l=i[g],u=i[g+1],c=l,f=u),x){case Es.M:c=i[g++],f=i[g++],l=c,u=f;break;case Es.L:if(t){if(Hs(l,u,i[g],i[g+1],e,n,a))return!0}else s+=Mo(l,u,i[g],i[g+1],n,a)||0;l=i[g++],u=i[g++];break;case Es.C:if(t){if(Wre(l,u,i[g++],i[g++],i[g++],i[g++],i[g],i[g+1],e,n,a))return!0}else s+=Kre(l,u,i[g++],i[g++],i[g++],i[g++],i[g],i[g+1],n,a)||0;l=i[g++],u=i[g++];break;case Es.Q:if(t){if(E6(l,u,i[g++],i[g++],i[g],i[g+1],e,n,a))return!0}else s+=Qre(l,u,i[g++],i[g++],i[g],i[g+1],n,a)||0;l=i[g++],u=i[g++];break;case Es.A:var b=i[g++],S=i[g++],T=i[g++],C=i[g++],M=i[g++],D=i[g++];g+=1;var L=!!(1-i[g++]);d=Math.cos(M)*T+b,v=Math.sin(M)*C+S,y?(c=d,f=v):s+=Mo(l,u,d,v,n,a);var E=(n-b)*C/T+b;if(t){if(Xre(b,S,C,M,M+D,L,e,E,a))return!0}else s+=Jre(b,S,C,M,M+D,L,E,a);l=Math.cos(M+D)*T+b,u=Math.sin(M+D)*C+S;break;case Es.R:c=l=i[g++],f=u=i[g++];var R=i[g++],I=i[g++];if(d=c+R,v=f+I,t){if(Hs(c,f,d,f,e,n,a)||Hs(d,f,d,v,e,n,a)||Hs(d,v,c,v,e,n,a)||Hs(c,v,c,f,e,n,a))return!0}else s+=Mo(d,f,d,v,n,a),s+=Mo(c,v,c,f,n,a);break;case Es.Z:if(t){if(Hs(l,u,c,f,e,n,a))return!0}else s+=Mo(l,u,c,f,n,a);l=c,u=f;break}}return!t&&!Zre(u,f)&&(s+=Mo(l,u,c,f,n,a)||0),s!==0}function ene(r,e,t){return I6(r,0,!1,e,t)}function tne(r,e,t,n){return I6(r,e,!0,t,n)}var Dx=Ne({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Qu),rne={style:Ne({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Y1.style)},yw=Fi.concat(["invisible","culling","z","z2","zlevel","parent"]),et=(function(r){K(e,r);function e(t){return r.call(this,t)||this}return e.prototype.update=function(){var t=this;r.prototype.update.call(this);var n=this.style;if(n.decal){var a=this._decalEl=this._decalEl||new e;a.buildPath===e.prototype.buildPath&&(a.buildPath=function(l){t.buildPath(l,t.shape)}),a.silent=!0;var i=a.style;for(var o in n)i[o]!==n[o]&&(i[o]=n[o]);i.fill=n.fill?n.decal:null,i.decal=null,i.shadowColor=null,n.strokeFirst&&(i.stroke=null);for(var s=0;s<yw.length;++s)a[yw[s]]=this[yw[s]];a.__dirty|=$n}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(t){var n=nt(t);this.shape=this.getDefaultShape();var a=this.getDefaultStyle();a&&this.useStyle(a);for(var i=0;i<n.length;i++){var o=n[i],s=t[o];o==="style"?this.style?ie(this.style,s):this.useStyle(s):o==="shape"?ie(this.shape,s):r.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 t=this.style.fill;if(t!=="none"){if(ye(t)){var n=Xp(t,0);return n>.5?sC:n>.2?kte:lC}else if(t)return lC}return sC},e.prototype.getInsideTextStroke=function(t){var n=this.style.fill;if(ye(n)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=Xp(t,0)<oC;if(i===o)return n}},e.prototype.buildPath=function(t,n,a){},e.prototype.pathUpdated=function(){this.__dirty&=~Uf},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new Yi(!1)},e.prototype.hasStroke=function(){var t=this.style,n=t.stroke;return!(n==null||n==="none"||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style,n=t.fill;return n!=null&&n!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,n=this.style,a=!t;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&Uf)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||a){s.copy(t);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return t},e.prototype.contain=function(t,n){var a=this.transformCoordToLocal(t,n),i=this.getBoundingRect(),o=this.style;if(t=a[0],n=a[1],i.contain(t,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)),tne(s,l/u,t,n)))return!0}if(this.hasFill())return ene(s,t,n)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Uf,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():t==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,n){t==="shape"?this.setShape(n):r.prototype.attrKV.call(this,t,n)},e.prototype.setShape=function(t,n){var a=this.shape;return a||(a=this.shape={}),typeof t=="string"?a[t]=n:ie(a,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Uf)},e.prototype.createStyle=function(t){return Rg(Dx,t)},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=ie({},this.shape))},e.prototype._applyStateObj=function(t,n,a,i,o,s){r.prototype._applyStateObj.call(this,t,n,a,i,o,s);var l=!(n&&i),u;if(n&&n.shape?o?i?u=n.shape:(u=ie({},a.shape),ie(u,n.shape)):(u=ie({},i?this.shape:a.shape),ie(u,n.shape)):l&&(u=a.shape),u)if(o){this.shape=ie({},this.shape);for(var c={},f=nt(u),d=0;d<f.length;d++){var v=f[d];typeof u[v]=="object"?this.shape[v]=u[v]:c[v]=u[v]}this._transitionState(t,{shape:c},s)}else this.shape=u,this.dirtyShape()},e.prototype._mergeStates=function(t){for(var n=r.prototype._mergeStates.call(this,t),a,i=0;i<t.length;i++){var o=t[i];o.shape&&(a=a||{},this._mergeStyle(a,o.shape))}return a&&(n.shape=a),n},e.prototype.getAnimationStyleProps=function(){return rne},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var n=(function(i){K(o,i);function o(s){var l=i.call(this,s)||this;return t.init&&t.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return Me(t.style)},o.prototype.getDefaultShape=function(){return Me(t.shape)},o})(e);for(var a in t)typeof t[a]=="function"&&(n.prototype[a]=t[a]);return n},e.initDefaultProps=(function(){var t=e.prototype;t.type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=$n|ip|Uf})(),e})(Ia),nne=Ne({strokeFirst:!0,font:Yo,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Dx),Lh=(function(r){K(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.hasStroke=function(){return R6(this.style)},e.prototype.hasFill=function(){var t=this.style,n=t.fill;return n!=null&&n!=="none"},e.prototype.createStyle=function(t){return Rg(nne,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=Vre(this.style)),this._rect},e.initDefaultProps=(function(){var t=e.prototype;t.dirtyRectTolerance=10})(),e})(Ia);Lh.prototype.type="tspan";var ane=Ne({x:0,y:0},Qu),ine={style:Ne({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Y1.style)};function one(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var Nr=(function(r){K(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return Rg(ane,t)},e.prototype._getSize=function(t){var n=this.style,a=n[t];if(a!=null)return a;var i=one(n.image)?n.image:this.__image;if(!i)return 0;var o=t==="width"?"height":"width",s=n[o];return s==null?i[t]:i[t]/i[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return ine},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new ke(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e})(Ia);Nr.prototype.type="image";function sne(r,e){var t=e.x,n=e.y,a=e.width,i=e.height,o=e.r,s,l,u,c;a<0&&(t=t+a,a=-a),i<0&&(n=n+i,i=-i),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var f;s+l>a&&(f=s+l,s*=a/f,l*=a/f),u+c>a&&(f=u+c,u*=a/f,c*=a/f),l+u>i&&(f=l+u,l*=i/f,u*=i/f),s+c>i&&(f=s+c,s*=i/f,c*=i/f),r.moveTo(t+s,n),r.lineTo(t+a-l,n),l!==0&&r.arc(t+a-l,n+l,l,-Math.PI/2,0),r.lineTo(t+a,n+i-u),u!==0&&r.arc(t+a-u,n+i-u,u,0,Math.PI/2),r.lineTo(t+c,n+i),c!==0&&r.arc(t+c,n+i-c,c,Math.PI/2,Math.PI),r.lineTo(t,n+s),s!==0&&r.arc(t+s,n+s,s,Math.PI,Math.PI*1.5)}var $f=Math.round;function q1(r,e,t){if(e){var n=e.x1,a=e.x2,i=e.y1,o=e.y2;r.x1=n,r.x2=a,r.y1=i,r.y2=o;var s=t&&t.lineWidth;return s&&($f(n*2)===$f(a*2)&&(r.x1=r.x2=ta(n,s,!0)),$f(i*2)===$f(o*2)&&(r.y1=r.y2=ta(i,s,!0))),r}}function k6(r,e,t){if(e){var n=e.x,a=e.y,i=e.width,o=e.height;r.x=n,r.y=a,r.width=i,r.height=o;var s=t&&t.lineWidth;return s&&(r.x=ta(n,s,!0),r.y=ta(a,s,!0),r.width=Math.max(ta(n+i,s,!1)-r.x,i===0?0:1),r.height=Math.max(ta(a+o,s,!1)-r.y,o===0?0:1)),r}}function ta(r,e,t){if(!e)return r;var n=$f(r*2);return(n+$f(e))%2===0?n/2:(n+(t?1:-1))/2}var lne=(function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r})(),une={},We=(function(r){K(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new lne},e.prototype.buildPath=function(t,n){var a,i,o,s;if(this.subPixelOptimize){var l=k6(une,n,this.style);a=l.x,i=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else a=n.x,i=n.y,o=n.width,s=n.height;n.r?sne(t,n):t.rect(a,i,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e})(et);We.prototype.type="rect";var HO={fill:"#000"},FO=2,mi={},cne={style:Ne({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},Y1.style)},at=(function(r){K(e,r);function e(t){var n=r.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=HO,n.attr(t),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var n=this._children[t];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):r.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.getLocalTransform(t):r.prototype.getLocalTransform.call(this,t)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),r.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,dne(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(t){r.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);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 t=new ke(0,0,0,0),n=this._children,a=[],i=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(a);u?(t.copy(l),t.applyTransform(u),i=i||t.clone(),i.union(t)):(i=i||l.clone(),i.union(l))}this._rect=i||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||HO},e.prototype.setTextContent=function(t){},e.prototype._mergeStyle=function(t,n){if(!n)return t;var a=n.rich,i=t.rich||a&&{};return ie(t,n),a&&i?(this._mergeRich(i,a),t.rich=i):i&&(t.rich=i),t},e.prototype._mergeRich=function(t,n){for(var a=nt(n),i=0;i<a.length;i++){var o=a[i];t[o]=t[o]||{},ie(t[o],n[o])}},e.prototype.getAnimationStyleProps=function(){return cne},e.prototype._getOrCreateChild=function(t){var n=this._children[this._childCursor];return(!n||!(n instanceof t))&&(n=new t),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},e.prototype._updatePlainTexts=function(){var t=this.style,n=t.font||Yo,a=t.padding,i=this._defaultStyle,o=t.x||0,s=t.y||0,l=t.align||i.align||"left",u=t.verticalAlign||i.verticalAlign||"top";kO(mi,i.overflowRect,o,s,l,u),o=mi.baseX,s=mi.baseY;var c=$O(t),f=Ire(c,t,mi.outerWidth,mi.outerHeight),d=xw(t),v=!!t.backgroundColor,g=f.outerHeight,x=f.outerWidth,y=f.lines,b=f.lineHeight;this.isTruncated=!!f.isTruncated;var S=o,T=Ku(s,f.contentHeight,u);if(d||a){var C=Mh(o,x,l),M=Ku(s,g,u);d&&this._renderBackground(t,t,C,M,x,g)}T+=b/2,a&&(S=ZO(o,l,a),u==="top"?T+=a[0]:u==="bottom"&&(T-=a[2]));for(var D=0,L=!1,E=!1,R=qO("fill"in t?t.fill:(E=!0,i.fill)),I=XO("stroke"in t?t.stroke:!v&&(!i.autoStroke||E)?(D=FO,L=!0,i.stroke):null),k=t.textShadowBlur>0,z=0;z<y.length;z++){var O=this._getOrCreateChild(Lh),G=O.createStyle();O.useStyle(G),G.text=y[z],G.x=S,G.y=T,G.textAlign=l,G.textBaseline="middle",G.opacity=t.opacity,G.strokeFirst=!0,k&&(G.shadowBlur=t.textShadowBlur||0,G.shadowColor=t.textShadowColor||"transparent",G.shadowOffsetX=t.textShadowOffsetX||0,G.shadowOffsetY=t.textShadowOffsetY||0),G.stroke=I,G.fill=R,I&&(G.lineWidth=t.lineWidth||D,G.lineDash=t.lineDash,G.lineDashOffset=t.lineDashOffset||0),G.font=n,YO(G,t),T+=b,O.setBoundingRect(pC(G,f.contentWidth,f.calculatedLineHeight,L?0:null))}},e.prototype._updateRichTexts=function(){var t=this.style,n=this._defaultStyle,a=t.align||n.align,i=t.verticalAlign||n.verticalAlign,o=t.x||0,s=t.y||0;kO(mi,n.overflowRect,o,s,a,i),o=mi.baseX,s=mi.baseY;var l=$O(t),u=Pre(l,t,mi.outerWidth,mi.outerHeight,a),c=u.width,f=u.outerWidth,d=u.outerHeight,v=t.padding;this.isTruncated=!!u.isTruncated;var g=Mh(o,f,a),x=Ku(s,d,i),y=g,b=x;v&&(y+=v[3],b+=v[0]);var S=y+c;xw(t)&&this._renderBackground(t,t,g,x,f,d);for(var T=!!t.backgroundColor,C=0;C<u.lines.length;C++){for(var M=u.lines[C],D=M.tokens,L=D.length,E=M.lineHeight,R=M.width,I=0,k=y,z=S,O=L-1,G=void 0;I<L&&(G=D[I],!G.align||G.align==="left");)this._placeToken(G,t,E,b,k,"left",T),R-=G.width,k+=G.width,I++;for(;O>=0&&(G=D[O],G.align==="right");)this._placeToken(G,t,E,b,z,"right",T),R-=G.width,z-=G.width,O--;for(k+=(c-(k-y)-(S-z)-R)/2;I<=O;)G=D[I],this._placeToken(G,t,E,b,k+G.width/2,"center",T),k+=G.width,I++;b+=E}},e.prototype._placeToken=function(t,n,a,i,o,s,l){var u=n.rich[t.styleName]||{};u.text=t.text;var c=t.verticalAlign,f=i+a/2;c==="top"?f=i+t.height/2:c==="bottom"&&(f=i+a-t.height/2);var d=!t.isLineHolder&&xw(u);d&&this._renderBackground(u,n,s==="right"?o-t.width:s==="center"?o-t.width/2:o,f-t.height/2,t.width,t.height);var v=!!u.backgroundColor,g=t.textPadding;g&&(o=ZO(o,s,g),f-=t.height/2-g[0]-t.innerHeight/2);var x=this._getOrCreateChild(Lh),y=x.createStyle();x.useStyle(y);var b=this._defaultStyle,S=!1,T=0,C=!1,M=qO("fill"in u?u.fill:"fill"in n?n.fill:(S=!0,b.fill)),D=XO("stroke"in u?u.stroke:"stroke"in n?n.stroke:!v&&!l&&(!b.autoStroke||S)?(T=FO,C=!0,b.stroke):null),L=u.textShadowBlur>0||n.textShadowBlur>0;y.text=t.text,y.x=o,y.y=f,L&&(y.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,y.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",y.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,y.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),y.textAlign=s,y.textBaseline="middle",y.font=t.font||Yo,y.opacity=Rn(u.opacity,n.opacity,1),YO(y,u),D&&(y.lineWidth=Rn(u.lineWidth,n.lineWidth,T),y.lineDash=Ce(u.lineDash,n.lineDash),y.lineDashOffset=n.lineDashOffset||0,y.stroke=D),M&&(y.fill=M),x.setBoundingRect(pC(y,t.contentWidth,t.contentHeight,C?0:null))},e.prototype._renderBackground=function(t,n,a,i,o,s){var l=t.backgroundColor,u=t.borderWidth,c=t.borderColor,f=l&&l.image,d=l&&!f,v=t.borderRadius,g=this,x,y;if(d||t.lineHeight||u&&c){x=this._getOrCreateChild(We),x.useStyle(x.createStyle()),x.style.fill=null;var b=x.shape;b.x=a,b.y=i,b.width=o,b.height=s,b.r=v,x.dirtyShape()}if(d){var S=x.style;S.fill=l||null,S.fillOpacity=Ce(t.fillOpacity,1)}else if(f){y=this._getOrCreateChild(Nr),y.onload=function(){g.dirtyStyle()};var T=y.style;T.image=l.image,T.x=a,T.y=i,T.width=o,T.height=s}if(u&&c){var S=x.style;S.lineWidth=u,S.stroke=c,S.strokeOpacity=Ce(t.strokeOpacity,1),S.lineDash=t.borderDash,S.lineDashOffset=t.borderDashOffset||0,x.strokeContainThreshold=0,x.hasFill()&&x.hasStroke()&&(S.strokeFirst=!0,S.lineWidth*=2)}var C=(x||y).style;C.shadowBlur=t.shadowBlur||0,C.shadowColor=t.shadowColor||"transparent",C.shadowOffsetX=t.shadowOffsetX||0,C.shadowOffsetY=t.shadowOffsetY||0,C.opacity=Rn(t.opacity,n.opacity,1)},e.makeFont=function(t){var n="";return P6(t)&&(n=[t.fontStyle,t.fontWeight,O6(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),n&&Qn(n)||t.textFont||t.font},e})(Ia),fne={left:!0,right:1,center:1},hne={top:1,bottom:1,middle:1},UO=["fontStyle","fontWeight","fontSize","fontFamily"];function O6(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?CM+"px":r+"px"}function YO(r,e){for(var t=0;t<UO.length;t++){var n=UO[t],a=e[n];a!=null&&(r[n]=a)}}function P6(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function dne(r){return WO(r),P(r.rich,WO),r}function WO(r){if(r){r.font=at.makeFont(r);var e=r.align;e==="middle"&&(e="center"),r.align=e==null||fne[e]?e:"left";var t=r.verticalAlign;t==="center"&&(t="middle"),r.verticalAlign=t==null||hne[t]?t:"top";var n=r.padding;n&&(r.padding=Ng(r.padding))}}function XO(r,e){return r==null||e<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function qO(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function ZO(r,e,t){return e==="right"?r-t[1]:e==="center"?r+t[3]/2-t[1]/2:r+t[3]}function $O(r){var e=r.text;return e!=null&&(e+=""),e}function xw(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var ze=Ke(),yC=function(r,e,t,n){if(n){var a=ze(n);a.dataIndex=t,a.dataType=e,a.seriesIndex=r,a.ssrType="chart",n.type==="group"&&n.traverse(function(i){var o=ze(i);o.seriesIndex=r,o.dataIndex=t,o.dataType=e,o.ssrType="chart"})}},KO=1,QO={},z6=Ke(),WM=Ke(),XM=0,Og=1,Z1=2,xn=["emphasis","blur","select"],$p=["normal","emphasis","blur","select"],Zh=10,vne=9,Ju="highlight",U0="downplay",Lx="select",xC="unselect",Nx="toggleSelect",qM="selectchanged";function bf(r){return r!=null&&r!=="none"}function $1(r,e,t){r.onHoverStateChange&&(r.hoverState||0)!==t&&r.onHoverStateChange(e),r.hoverState=t}function B6(r){$1(r,"emphasis",Z1)}function j6(r){r.hoverState===Z1&&$1(r,"normal",XM)}function ZM(r){$1(r,"blur",Og)}function V6(r){r.hoverState===Og&&$1(r,"normal",XM)}function pne(r){r.selected=!0}function gne(r){r.selected=!1}function JO(r,e,t){e(r,t)}function ts(r,e,t){JO(r,e,t),r.isGroup&&r.traverse(function(n){JO(n,e,t)})}function Rx(r,e){switch(e){case"emphasis":r.hoverState=Z1;break;case"normal":r.hoverState=XM;break;case"blur":r.hoverState=Og;break;case"select":r.selected=!0}}function mne(r,e,t,n){for(var a=r.style,i={},o=0;o<e.length;o++){var s=e[o],l=a[s];i[s]=l??(n&&n[s])}for(var o=0;o<r.animators.length;o++){var u=r.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(t)<0&&u.targetName==="style"&&u.saveTo(i,e)}return i}function yne(r,e,t,n){var a=t&&Ge(t,"select")>=0,i=!1;if(r instanceof et){var o=z6(r),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(bf(s)||bf(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(i=!0,n=ie({},n),u=ie({},u),u.fill=s):!bf(u.fill)&&bf(s)?(i=!0,n=ie({},n),u=ie({},u),u.fill=_x(s)):!bf(u.stroke)&&bf(l)&&(i||(n=ie({},n),u=ie({},u)),u.stroke=_x(l)),n.style=u}}if(n&&n.z2==null){i||(n=ie({},n));var c=r.z2EmphasisLift;n.z2=r.z2+(c??Zh)}return n}function xne(r,e,t){if(t&&t.z2==null){t=ie({},t);var n=r.z2SelectLift;t.z2=r.z2+(n??vne)}return t}function bne(r,e,t){var n=Ge(r.currentStates,e)>=0,a=r.style.opacity,i=n?null:mne(r,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=ie({},t),o=ie({opacity:n?a:i.opacity*.1},o),t.style=o),t}function bw(r,e){var t=this.states[r];if(this.style){if(r==="emphasis")return yne(this,r,e,t);if(r==="blur")return bne(this,r,t);if(r==="select")return xne(this,r,t)}return t}function cc(r){r.stateProxy=bw;var e=r.getTextContent(),t=r.getTextGuideLine();e&&(e.stateProxy=bw),t&&(t.stateProxy=bw)}function eP(r,e){!U6(r,e)&&!r.__highByOuter&&ts(r,B6)}function tP(r,e){!U6(r,e)&&!r.__highByOuter&&ts(r,j6)}function Xo(r,e){r.__highByOuter|=1<<(e||0),ts(r,B6)}function qo(r,e){!(r.__highByOuter&=~(1<<(e||0)))&&ts(r,j6)}function G6(r){ts(r,ZM)}function $M(r){ts(r,V6)}function H6(r){ts(r,pne)}function F6(r){ts(r,gne)}function U6(r,e){return r.__highDownSilentOnTouch&&e.zrByTouch}function Y6(r){var e=r.getModel(),t=[],n=[];e.eachComponent(function(a,i){var o=WM(i),s=a==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){V6(u)}),s&&t.push(i)),o.isBlured=!1}),P(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(t,!1,e)})}function bC(r,e,t,n){var a=n.getModel();t=t||"coordinateSystem";function i(u,c){for(var f=0;f<c.length;f++){var d=u.getItemGraphicEl(c[f]);d&&$M(d)}}if(r!=null&&!(!e||e==="none")){var o=a.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];a.eachSeries(function(u){var c=o===u,f=u.coordinateSystem;f&&f.master&&(f=f.master);var d=f&&s?f===s:c;if(!(t==="series"&&!c||t==="coordinateSystem"&&!d||e==="series"&&c)){var v=n.getViewOfSeriesModel(u);if(v.group.traverse(function(y){y.__highByOuter&&c&&e==="self"||ZM(y)}),$r(e))i(u.getData(),e);else if(Re(e))for(var g=nt(e),x=0;x<g.length;x++)i(u.getData(g[x]),e[g[x]]);l.push(u),WM(u).isBlured=!0}}),a.eachComponent(function(u,c){if(u!=="series"){var f=n.getViewOfComponentModel(c);f&&f.toggleBlurSeries&&f.toggleBlurSeries(l,!0,a)}})}}function _C(r,e,t){if(!(r==null||e==null)){var n=t.getModel().getComponent(r,e);if(n){WM(n).isBlured=!0;var a=t.getViewOfComponentModel(n);!a||!a.focusBlurEnabled||a.group.traverse(function(i){ZM(i)})}}}function _ne(r,e,t){var n=r.seriesIndex,a=r.getData(e.dataType);if(a){var i=lc(a,e);i=(ue(i)?i[0]:i)||0;var o=a.getItemGraphicEl(i);if(!o)for(var s=a.count(),l=0;!o&&l<s;)o=a.getItemGraphicEl(l++);if(o){var u=ze(o);bC(n,u.focus,u.blurScope,t)}else{var c=r.get(["emphasis","focus"]),f=r.get(["emphasis","blurScope"]);c!=null&&bC(n,c,f,t)}}}function KM(r,e,t,n){var a={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||e==null||t==null)return a;var i=n.getModel().getComponent(r,e);if(!i)return a;var o=n.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return a;for(var s=o.findHighDownDispatchers(t),l,u=0;u<s.length;u++)if(ze(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function Sne(r,e,t){var n=ze(r),a=KM(n.componentMainType,n.componentIndex,n.componentHighDownName,t),i=a.dispatchers,o=a.focusSelf;i?(o&&_C(n.componentMainType,n.componentIndex,t),P(i,function(s){return eP(s,e)})):(bC(n.seriesIndex,n.focus,n.blurScope,t),n.focus==="self"&&_C(n.componentMainType,n.componentIndex,t),eP(r,e))}function wne(r,e,t){Y6(t);var n=ze(r),a=KM(n.componentMainType,n.componentIndex,n.componentHighDownName,t).dispatchers;a?P(a,function(i){return tP(i,e)}):tP(r,e)}function Tne(r,e,t){if(wC(e)){var n=e.dataType,a=r.getData(n),i=lc(a,e);ue(i)||(i=[i]),r[e.type===Nx?"toggleSelect":e.type===Lx?"select":"unselect"](i,n)}}function rP(r){var e=r.getAllData();P(e,function(t){var n=t.data,a=t.type;n.eachItemGraphicEl(function(i,o){r.isSelected(o,a)?H6(i):F6(i)})})}function Cne(r){var e=[];return r.eachSeries(function(t){var n=t.getAllData();P(n,function(a){a.data;var i=a.type,o=t.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:t.seriesIndex};i!=null&&(s.dataType=i),e.push(s)}})}),e}function cl(r,e,t){Pu(r,!0),ts(r,cc),SC(r,e,t)}function Ane(r){Pu(r,!1)}function Ft(r,e,t,n){n?Ane(r):cl(r,e,t)}function SC(r,e,t){var n=ze(r);e!=null?(n.focus=e,n.blurScope=t):n.focus&&(n.focus=null)}var nP=["emphasis","blur","select"],Mne={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function br(r,e,t,n){t=t||"itemStyle";for(var a=0;a<nP.length;a++){var i=nP[a],o=e.getModel([i,t]),s=r.ensureState(i);s.style=n?n(o):o[Mne[t]]()}}function Pu(r,e){var t=e===!1,n=r;r.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!t||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!t)}function Kp(r){return!!(r&&r.__highDownDispatcher)}function Dne(r,e,t){var n=ze(r);n.componentMainType=e.mainType,n.componentIndex=e.componentIndex,n.componentHighDownName=t}function Lne(r){var e=QO[r];return e==null&&KO<=32&&(e=QO[r]=KO++),e}function wC(r){var e=r.type;return e===Lx||e===xC||e===Nx}function aP(r){var e=r.type;return e===Ju||e===U0}function Nne(r){var e=z6(r);e.normalFill=r.style.fill,e.normalStroke=r.style.stroke;var t=r.states.select||{};e.selectFill=t.style&&t.style.fill||null,e.selectStroke=t.style&&t.style.stroke||null}var _f=Yi.CMD,Rne=[[],[],[]],iP=Math.sqrt,Ene=Math.atan2;function W6(r,e){if(e){var t=r.data,n=r.len(),a,i,o,s,l,u,c=_f.M,f=_f.C,d=_f.L,v=_f.R,g=_f.A,x=_f.Q;for(o=0,s=0;o<n;){switch(a=t[o++],s=o,i=0,a){case c:i=1;break;case d:i=1;break;case f:i=3;break;case x:i=2;break;case g:var y=e[4],b=e[5],S=iP(e[0]*e[0]+e[1]*e[1]),T=iP(e[2]*e[2]+e[3]*e[3]),C=Ene(-e[1]/T,e[0]/S);t[o]*=S,t[o++]+=y,t[o]*=T,t[o++]+=b,t[o++]*=S,t[o++]*=T,t[o++]+=C,t[o++]+=C,o+=2,s=o;break;case v:u[0]=t[o++],u[1]=t[o++],Kt(u,u,e),t[s++]=u[0],t[s++]=u[1],u[0]+=t[o++],u[1]+=t[o++],Kt(u,u,e),t[s++]=u[0],t[s++]=u[1]}for(l=0;l<i;l++){var M=Rne[l];M[0]=t[o++],M[1]=t[o++],Kt(M,M,e),t[s++]=M[0],t[s++]=M[1]}}r.increaseVersion()}}var _w=Math.sqrt,Ly=Math.sin,Ny=Math.cos,wv=Math.PI;function oP(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function TC(r,e){return(r[0]*e[0]+r[1]*e[1])/(oP(r)*oP(e))}function sP(r,e){return(r[0]*e[1]<r[1]*e[0]?-1:1)*Math.acos(TC(r,e))}function lP(r,e,t,n,a,i,o,s,l,u,c){var f=l*(wv/180),d=Ny(f)*(r-t)/2+Ly(f)*(e-n)/2,v=-1*Ly(f)*(r-t)/2+Ny(f)*(e-n)/2,g=d*d/(o*o)+v*v/(s*s);g>1&&(o*=_w(g),s*=_w(g));var x=(a===i?-1:1)*_w((o*o*(s*s)-o*o*(v*v)-s*s*(d*d))/(o*o*(v*v)+s*s*(d*d)))||0,y=x*o*v/s,b=x*-s*d/o,S=(r+t)/2+Ny(f)*y-Ly(f)*b,T=(e+n)/2+Ly(f)*y+Ny(f)*b,C=sP([1,0],[(d-y)/o,(v-b)/s]),M=[(d-y)/o,(v-b)/s],D=[(-1*d-y)/o,(-1*v-b)/s],L=sP(M,D);if(TC(M,D)<=-1&&(L=wv),TC(M,D)>=1&&(L=0),L<0){var E=Math.round(L/wv*1e6)/1e6;L=wv*2+E%2*wv}c.addData(u,S,T,o,s,C,L,f,i)}var Ine=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,kne=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function One(r){var e=new Yi;if(!r)return e;var t=0,n=0,a=t,i=n,o,s=Yi.CMD,l=r.match(Ine);if(!l)return e;for(var u=0;u<l.length;u++){for(var c=l[u],f=c.charAt(0),d=void 0,v=c.match(kne)||[],g=v.length,x=0;x<g;x++)v[x]=parseFloat(v[x]);for(var y=0;y<g;){var b=void 0,S=void 0,T=void 0,C=void 0,M=void 0,D=void 0,L=void 0,E=t,R=n,I=void 0,k=void 0;switch(f){case"l":t+=v[y++],n+=v[y++],d=s.L,e.addData(d,t,n);break;case"L":t=v[y++],n=v[y++],d=s.L,e.addData(d,t,n);break;case"m":t+=v[y++],n+=v[y++],d=s.M,e.addData(d,t,n),a=t,i=n,f="l";break;case"M":t=v[y++],n=v[y++],d=s.M,e.addData(d,t,n),a=t,i=n,f="L";break;case"h":t+=v[y++],d=s.L,e.addData(d,t,n);break;case"H":t=v[y++],d=s.L,e.addData(d,t,n);break;case"v":n+=v[y++],d=s.L,e.addData(d,t,n);break;case"V":n=v[y++],d=s.L,e.addData(d,t,n);break;case"C":d=s.C,e.addData(d,v[y++],v[y++],v[y++],v[y++],v[y++],v[y++]),t=v[y-2],n=v[y-1];break;case"c":d=s.C,e.addData(d,v[y++]+t,v[y++]+n,v[y++]+t,v[y++]+n,v[y++]+t,v[y++]+n),t+=v[y-2],n+=v[y-1];break;case"S":b=t,S=n,I=e.len(),k=e.data,o===s.C&&(b+=t-k[I-4],S+=n-k[I-3]),d=s.C,E=v[y++],R=v[y++],t=v[y++],n=v[y++],e.addData(d,b,S,E,R,t,n);break;case"s":b=t,S=n,I=e.len(),k=e.data,o===s.C&&(b+=t-k[I-4],S+=n-k[I-3]),d=s.C,E=t+v[y++],R=n+v[y++],t+=v[y++],n+=v[y++],e.addData(d,b,S,E,R,t,n);break;case"Q":E=v[y++],R=v[y++],t=v[y++],n=v[y++],d=s.Q,e.addData(d,E,R,t,n);break;case"q":E=v[y++]+t,R=v[y++]+n,t+=v[y++],n+=v[y++],d=s.Q,e.addData(d,E,R,t,n);break;case"T":b=t,S=n,I=e.len(),k=e.data,o===s.Q&&(b+=t-k[I-4],S+=n-k[I-3]),t=v[y++],n=v[y++],d=s.Q,e.addData(d,b,S,t,n);break;case"t":b=t,S=n,I=e.len(),k=e.data,o===s.Q&&(b+=t-k[I-4],S+=n-k[I-3]),t+=v[y++],n+=v[y++],d=s.Q,e.addData(d,b,S,t,n);break;case"A":T=v[y++],C=v[y++],M=v[y++],D=v[y++],L=v[y++],E=t,R=n,t=v[y++],n=v[y++],d=s.A,lP(E,R,t,n,D,L,T,C,M,d,e);break;case"a":T=v[y++],C=v[y++],M=v[y++],D=v[y++],L=v[y++],E=t,R=n,t+=v[y++],n+=v[y++],d=s.A,lP(E,R,t,n,D,L,T,C,M,d,e);break}}(f==="z"||f==="Z")&&(d=s.Z,e.addData(d),t=a,n=i),o=d}return e.toStatic(),e}var X6=(function(r){K(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.applyTransform=function(t){},e})(et);function q6(r){return r.setData!=null}function Z6(r,e){var t=One(r),n=ie({},e);return n.buildPath=function(a){var i=q6(a);if(i&&a.canSave()){a.appendPath(t);var o=a.getContext();o&&a.rebuildPath(o,1)}else{var o=i?a.getContext():a;o&&t.rebuildPath(o,1)}},n.applyTransform=function(a){W6(t,a),this.dirtyShape()},n}function $6(r,e){return new X6(Z6(r,e))}function Pne(r,e){var t=Z6(r,e),n=(function(a){K(i,a);function i(o){var s=a.call(this,o)||this;return s.applyTransform=t.applyTransform,s.buildPath=t.buildPath,s}return i})(X6);return n}function zne(r,e){for(var t=[],n=r.length,a=0;a<n;a++){var i=r[a];t.push(i.getUpdatedPathProxy(!0))}var o=new et(e);return o.createPathProxy(),o.buildPath=function(s){if(q6(s)){s.appendPath(t);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function QM(r,e){e=e||{};var t=new et;return r.shape&&t.setShape(r.shape),t.setStyle(r.style),e.bakeTransform?W6(t.path,r.getComputedTransform()):e.toLocal?t.setLocalTransform(r.getComputedTransform()):t.copyTransform(r),t.buildPath=r.buildPath,t.applyTransform=t.applyTransform,t.z=r.z,t.z2=r.z2,t.zlevel=r.zlevel,t}var Bne=(function(){function r(){this.cx=0,this.cy=0,this.r=0}return r})(),Ki=(function(r){K(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new Bne},e.prototype.buildPath=function(t,n){t.moveTo(n.cx+n.r,n.cy),t.arc(n.cx,n.cy,n.r,0,Math.PI*2)},e})(et);Ki.prototype.type="circle";var jne=(function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r})(),Pg=(function(r){K(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new jne},e.prototype.buildPath=function(t,n){var a=.5522848,i=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*a,c=l*a;t.moveTo(i-s,o),t.bezierCurveTo(i-s,o-c,i-u,o-l,i,o-l),t.bezierCurveTo(i+u,o-l,i+s,o-c,i+s,o),t.bezierCurveTo(i+s,o+c,i+u,o+l,i,o+l),t.bezierCurveTo(i-u,o+l,i-s,o+c,i-s,o),t.closePath()},e})(et);Pg.prototype.type="ellipse";var K6=Math.PI,Sw=K6*2,uu=Math.sin,Sf=Math.cos,Vne=Math.acos,nn=Math.atan2,uP=Math.abs,Mp=Math.sqrt,sp=Math.max,yi=Math.min,Fa=1e-4;function Gne(r,e,t,n,a,i,o,s){var l=t-r,u=n-e,c=o-a,f=s-i,d=f*l-c*u;if(!(d*d<Fa))return d=(c*(e-i)-f*(r-a))/d,[r+d*l,e+d*u]}function Ry(r,e,t,n,a,i,o){var s=r-t,l=e-n,u=(o?i:-i)/Mp(s*s+l*l),c=u*l,f=-u*s,d=r+c,v=e+f,g=t+c,x=n+f,y=(d+g)/2,b=(v+x)/2,S=g-d,T=x-v,C=S*S+T*T,M=a-i,D=d*x-g*v,L=(T<0?-1:1)*Mp(sp(0,M*M*C-D*D)),E=(D*T-S*L)/C,R=(-D*S-T*L)/C,I=(D*T+S*L)/C,k=(-D*S+T*L)/C,z=E-y,O=R-b,G=I-y,F=k-b;return z*z+O*O>G*G+F*F&&(E=I,R=k),{cx:E,cy:R,x0:-c,y0:-f,x1:E*(a/M-1),y1:R*(a/M-1)}}function Hne(r){var e;if(ue(r)){var t=r.length;if(!t)return r;t===1?e=[r[0],r[0],0,0]:t===2?e=[r[0],r[0],r[1],r[1]]:t===3?e=r.concat(r[2]):e=r}else e=[r,r,r,r];return e}function Fne(r,e){var t,n=sp(e.r,0),a=sp(e.r0||0,0),i=n>0,o=a>0;if(!(!i&&!o)){if(i||(n=a,a=0),a>n){var s=n;n=a,a=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var c=e.cx,f=e.cy,d=!!e.clockwise,v=uP(u-l),g=v>Sw&&v%Sw;if(g>Fa&&(v=g),!(n>Fa))r.moveTo(c,f);else if(v>Sw-Fa)r.moveTo(c+n*Sf(l),f+n*uu(l)),r.arc(c,f,n,l,u,!d),a>Fa&&(r.moveTo(c+a*Sf(u),f+a*uu(u)),r.arc(c,f,a,u,l,d));else{var x=void 0,y=void 0,b=void 0,S=void 0,T=void 0,C=void 0,M=void 0,D=void 0,L=void 0,E=void 0,R=void 0,I=void 0,k=void 0,z=void 0,O=void 0,G=void 0,F=n*Sf(l),B=n*uu(l),Y=a*Sf(u),H=a*uu(u),X=v>Fa;if(X){var V=e.cornerRadius;V&&(t=Hne(V),x=t[0],y=t[1],b=t[2],S=t[3]);var W=uP(n-a)/2;if(T=yi(W,b),C=yi(W,S),M=yi(W,x),D=yi(W,y),R=L=sp(T,C),I=E=sp(M,D),(L>Fa||E>Fa)&&(k=n*Sf(u),z=n*uu(u),O=a*Sf(l),G=a*uu(l),v<K6)){var $=Gne(F,B,O,G,k,z,Y,H);if($){var te=F-$[0],le=B-$[1],ge=k-$[0],we=z-$[1],de=1/uu(Vne((te*ge+le*we)/(Mp(te*te+le*le)*Mp(ge*ge+we*we)))/2),ve=Mp($[0]*$[0]+$[1]*$[1]);R=yi(L,(n-ve)/(de+1)),I=yi(E,(a-ve)/(de-1))}}}if(!X)r.moveTo(c+F,f+B);else if(R>Fa){var be=yi(b,R),Oe=yi(S,R),_e=Ry(O,G,F,B,n,be,d),Le=Ry(k,z,Y,H,n,Oe,d);r.moveTo(c+_e.cx+_e.x0,f+_e.cy+_e.y0),R<L&&be===Oe?r.arc(c+_e.cx,f+_e.cy,R,nn(_e.y0,_e.x0),nn(Le.y0,Le.x0),!d):(be>0&&r.arc(c+_e.cx,f+_e.cy,be,nn(_e.y0,_e.x0),nn(_e.y1,_e.x1),!d),r.arc(c,f,n,nn(_e.cy+_e.y1,_e.cx+_e.x1),nn(Le.cy+Le.y1,Le.cx+Le.x1),!d),Oe>0&&r.arc(c+Le.cx,f+Le.cy,Oe,nn(Le.y1,Le.x1),nn(Le.y0,Le.x0),!d))}else r.moveTo(c+F,f+B),r.arc(c,f,n,l,u,!d);if(!(a>Fa)||!X)r.lineTo(c+Y,f+H);else if(I>Fa){var be=yi(x,I),Oe=yi(y,I),_e=Ry(Y,H,k,z,a,-Oe,d),Le=Ry(F,B,O,G,a,-be,d);r.lineTo(c+_e.cx+_e.x0,f+_e.cy+_e.y0),I<E&&be===Oe?r.arc(c+_e.cx,f+_e.cy,I,nn(_e.y0,_e.x0),nn(Le.y0,Le.x0),!d):(Oe>0&&r.arc(c+_e.cx,f+_e.cy,Oe,nn(_e.y0,_e.x0),nn(_e.y1,_e.x1),!d),r.arc(c,f,a,nn(_e.cy+_e.y1,_e.cx+_e.x1),nn(Le.cy+Le.y1,Le.cx+Le.x1),d),be>0&&r.arc(c+Le.cx,f+Le.cy,be,nn(Le.y1,Le.x1),nn(Le.y0,Le.x0),!d))}else r.lineTo(c+Y,f+H),r.arc(c,f,a,u,l,d)}r.closePath()}}}var Une=(function(){function r(){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 r})(),Qr=(function(r){K(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new Une},e.prototype.buildPath=function(t,n){Fne(t,n)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e})(et);Qr.prototype.type="sector";var Yne=(function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r})(),$h=(function(r){K(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new Yne},e.prototype.buildPath=function(t,n){var a=n.cx,i=n.cy,o=Math.PI*2;t.moveTo(a+n.r,i),t.arc(a,i,n.r,0,o,!1),t.moveTo(a+n.r0,i),t.arc(a,i,n.r0,0,o,!0)},e})(et);$h.prototype.type="ring";function Wne(r,e,t,n){var a=[],i=[],o=[],s=[],l,u,c,f;if(n){c=[1/0,1/0],f=[-1/0,-1/0];for(var d=0,v=r.length;d<v;d++)Io(c,c,r[d]),ko(f,f,r[d]);Io(c,c,n[0]),ko(f,f,n[1])}for(var d=0,v=r.length;d<v;d++){var g=r[d];if(t)l=r[d?d-1:v-1],u=r[(d+1)%v];else if(d===0||d===v-1){a.push(ji(r[d]));continue}else l=r[d-1],u=r[d+1];Qs(i,u,l),bp(i,i,e);var x=px(g,l),y=px(g,u),b=x+y;b!==0&&(x/=b,y/=b),bp(o,i,-x),bp(s,i,y);var S=U2([],g,o),T=U2([],g,s);n&&(ko(S,S,c),Io(S,S,f),ko(T,T,c),Io(T,T,f)),a.push(S),a.push(T)}return t&&a.push(a.shift()),a}function Q6(r,e,t){var n=e.smooth,a=e.points;if(a&&a.length>=2){if(n){var i=Wne(a,n,t,e.smoothConstraint);r.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(t?o:o-1);s++){var l=i[s*2],u=i[s*2+1],c=a[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{r.moveTo(a[0][0],a[0][1]);for(var s=1,f=a.length;s<f;s++)r.lineTo(a[s][0],a[s][1])}t&&r.closePath()}}var Xne=(function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r})(),Jr=(function(r){K(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new Xne},e.prototype.buildPath=function(t,n){Q6(t,n,!0)},e})(et);Jr.prototype.type="polygon";var qne=(function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r})(),Vr=(function(r){K(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new qne},e.prototype.buildPath=function(t,n){Q6(t,n,!1)},e})(et);Vr.prototype.type="polyline";var Zne={},$ne=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r})(),sr=(function(r){K(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new $ne},e.prototype.buildPath=function(t,n){var a,i,o,s;if(this.subPixelOptimize){var l=q1(Zne,n,this.style);a=l.x1,i=l.y1,o=l.x2,s=l.y2}else a=n.x1,i=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(t.moveTo(a,i),u<1&&(o=a*(1-u)+o*u,s=i*(1-u)+s*u),t.lineTo(o,s))},e.prototype.pointAt=function(t){var n=this.shape;return[n.x1*(1-t)+n.x2*t,n.y1*(1-t)+n.y2*t]},e})(et);sr.prototype.type="line";var Cn=[],Kne=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return r})();function cP(r,e,t){var n=r.cpx2,a=r.cpy2;return n!=null||a!=null?[(t?vO:Cr)(r.x1,r.cpx1,r.cpx2,r.x2,e),(t?vO:Cr)(r.y1,r.cpy1,r.cpy2,r.y2,e)]:[(t?K2:Br)(r.x1,r.cpx1,r.x2,e),(t?K2:Br)(r.y1,r.cpy1,r.y2,e)]}var Kh=(function(r){K(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Kne},e.prototype.buildPath=function(t,n){var a=n.x1,i=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,c=n.cpx2,f=n.cpy2,d=n.percent;d!==0&&(t.moveTo(a,i),c==null||f==null?(d<1&&(Up(a,l,o,d,Cn),l=Cn[1],o=Cn[2],Up(i,u,s,d,Cn),u=Cn[1],s=Cn[2]),t.quadraticCurveTo(l,u,o,s)):(d<1&&(yl(a,l,c,o,d,Cn),l=Cn[1],c=Cn[2],o=Cn[3],yl(i,u,f,s,d,Cn),u=Cn[1],f=Cn[2],s=Cn[3]),t.bezierCurveTo(l,u,c,f,o,s)))},e.prototype.pointAt=function(t){return cP(this.shape,t,!1)},e.prototype.tangentAt=function(t){var n=cP(this.shape,t,!0);return xc(n,n)},e})(et);Kh.prototype.type="bezier-curve";var Qne=(function(){function r(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r})(),zg=(function(r){K(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Qne},e.prototype.buildPath=function(t,n){var a=n.cx,i=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,c=Math.cos(s),f=Math.sin(s);t.moveTo(c*o+a,f*o+i),t.arc(a,i,o,s,l,!u)},e})(et);zg.prototype.type="arc";var Bg=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="compound",t}return e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,n=this.shapeChanged(),a=0;a<t.length;a++)n=n||t[a].shapeChanged();n&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],n=this.getGlobalScale(),a=0;a<t.length;a++)t[a].path||t[a].createPathProxy(),t[a].path.setScale(n[0],n[1],t[a].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,n){for(var a=n.paths||[],i=0;i<a.length;i++)a[i].buildPath(t,a[i].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],n=0;n<t.length;n++)t[n].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),et.prototype.getBoundingRect.call(this)},e})(et),J6=(function(){function r(e){this.colorStops=e||[]}return r.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},r})(),bc=(function(r){K(e,r);function e(t,n,a,i,o,s){var l=r.call(this,o)||this;return l.x=t??0,l.y=n??0,l.x2=a??1,l.y2=i??0,l.type="linear",l.global=s||!1,l}return e})(J6),JM=(function(r){K(e,r);function e(t,n,a,i,o){var s=r.call(this,i)||this;return s.x=t??.5,s.y=n??.5,s.r=a??.5,s.type="radial",s.global=o||!1,s}return e})(J6),ww=Math.min,Jne=Math.max,Ey=Math.abs,cu=[0,0],fu=[0,0],Pr=jG(),Iy=Pr.minTv,ky=Pr.maxTv,eH=(function(){function r(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Ie;for(var n=0;n<2;n++)this._axes[n]=new Ie;e&&this.fromBoundingRect(e,t)}return r.prototype.fromBoundingRect=function(e,t){var n=this._corners,a=this._axes,i=e.x,o=e.y,s=i+e.width,l=o+e.height;if(n[0].set(i,o),n[1].set(s,o),n[2].set(s,l),n[3].set(i,l),t)for(var u=0;u<4;u++)n[u].transform(t);Ie.sub(a[0],n[1],n[0]),Ie.sub(a[1],n[3],n[0]),a[0].normalize(),a[1].normalize();for(var u=0;u<2;u++)this._origin[u]=a[u].dot(n[0])},r.prototype.intersect=function(e,t,n){var a=!0,i=!t;return t&&Ie.set(t,0,0),Pr.reset(n,!i),!this._intersectCheckOneSide(this,e,i,1)&&(a=!1,i)||!this._intersectCheckOneSide(e,this,i,-1)&&(a=!1,i)||!i&&!Pr.negativeSize&&Ie.copy(t,a?Pr.useDir?Pr.dirMinTv:Iy:ky),a},r.prototype._intersectCheckOneSide=function(e,t,n,a){for(var i=!0,o=0;o<2;o++){var s=e._axes[o];if(e._getProjMinMaxOnAxis(o,e._corners,cu),e._getProjMinMaxOnAxis(o,t._corners,fu),Pr.negativeSize||cu[1]<fu[0]||cu[0]>fu[1]){if(i=!1,Pr.negativeSize||n)return i;var l=Ey(fu[0]-cu[1]),u=Ey(cu[0]-fu[1]);ww(l,u)>ky.len()&&(l<u?Ie.scale(ky,s,-l*a):Ie.scale(ky,s,u*a))}else if(!n){var l=Ey(fu[0]-cu[1]),u=Ey(cu[0]-fu[1]);(Pr.useDir||ww(l,u)<Iy.len())&&((l<u||!Pr.bidirectional)&&(Ie.scale(Iy,s,l*a),Pr.useDir&&Pr.calcDirMTV()),(l>=u||!Pr.bidirectional)&&(Ie.scale(Iy,s,-u*a),Pr.useDir&&Pr.calcDirMTV()))}}return i},r.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var a=this._axes[e],i=this._origin,o=t[0].dot(a)+i[e],s=o,l=o,u=1;u<t.length;u++){var c=t[u].dot(a)+i[e];s=ww(c,s),l=Jne(c,l)}n[0]=s+Pr.touchThreshold,n[1]=l-Pr.touchThreshold,Pr.negativeSize=n[1]<n[0]},r})(),eae=[],tH=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return e.prototype.traverse=function(t,n){t.call(n,this)},e.prototype.useStyle=function(){this.style={}},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(t,n){n?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,n){n=n||!1;for(var a=0;a<t.length;a++)this.addDisplayable(t[a],n)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var n=this._cursor;n<this._displayables.length;n++)t&&t(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)t&&t(this._temporaryDisplayables[n])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var n=this._displayables[t];n.parent=this,n.update(),n.parent=null}for(var t=0;t<this._temporaryDisplayables.length;t++){var n=this._temporaryDisplayables[t];n.parent=this,n.update(),n.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new ke(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var a=this._displayables[n],i=a.getBoundingRect().clone();a.needLocalTransform()&&i.applyTransform(a.getLocalTransform(eae)),t.union(i)}this._rect=t}return this._rect},e.prototype.contain=function(t,n){var a=this.transformCoordToLocal(t,n),i=this.getBoundingRect();if(i.contain(a[0],a[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(t,n))return!0}return!1},e})(Ia),rH=Ke();function Qh(r,e,t,n,a){var i;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();i=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,c=void 0,f=void 0;n?(u=Ce(n.duration,200),c=Ce(n.easing,"cubicOut"),f=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),c=e.getShallow(l?"animationEasingUpdate":"animationEasing"),f=e.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(u=i.duration),i.easing!=null&&(c=i.easing),i.delay!=null&&(f=i.delay)),Ae(f)&&(f=f(t,a)),Ae(u)&&(u=u(t));var d={duration:u||0,delay:f,easing:c};return d}else return null}function eD(r,e,t,n,a,i,o){var s=!1,l;Ae(a)?(o=i,i=a,a=null):Re(a)&&(i=a.cb,o=a.during,s=a.isFrom,l=a.removeOpt,a=a.dataIndex);var u=r==="leave";u||e.stopAnimation("leave");var c=Qh(r,n,a,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,a):null);if(c&&c.duration>0){var f=c.duration,d=c.delay,v=c.easing,g={duration:f,delay:d||0,easing:v,done:i,force:!!i||!!o,setToFinal:!u,scope:r,during:o};s?e.animateFrom(t,g):e.animateTo(t,g)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),i&&i()}function ot(r,e,t,n,a,i){eD("update",r,e,t,n,a,i)}function zt(r,e,t,n,a,i){eD("enter",r,e,t,n,a,i)}function sh(r){if(!r.__zr)return!0;for(var e=0;e<r.animators.length;e++){var t=r.animators[e];if(t.scope==="leave")return!0}return!1}function xl(r,e,t,n,a,i){sh(r)||eD("leave",r,e,t,n,a,i)}function fP(r,e,t,n){r.removeTextContent(),r.removeTextGuideLine(),xl(r,{style:{opacity:0}},e,t,n)}function jo(r,e,t){function n(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(a){a.isGroup||fP(a,e,t,n)}):fP(r,e,t,n)}function ka(r){rH(r).oldStyle=r.style}function tae(r){return rH(r).oldStyle}var CC={},je=["x","y"],dr=["width","height"];function nH(r){return et.extend(r)}var rae=Pne;function aH(r,e){return rae(r,e)}function Pa(r,e){CC[r]=e}function Qp(r){if(CC.hasOwnProperty(r))return CC[r]}function Nh(r,e,t,n){var a=$6(r,e);return t&&(n==="center"&&(t=iH(t,a.getBoundingRect())),rD(a,t)),a}function tD(r,e,t){var n=new Nr({style:{image:r,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(a){if(t==="center"){var i={width:a.width,height:a.height};n.setStyle(iH(e,i))}}});return n}function iH(r,e){var t=e.width/e.height,n=r.height*t,a;n<=r.width?a=r.height:(n=r.width,a=n/t);var i=r.x+r.width/2,o=r.y+r.height/2;return{x:i-n/2,y:o-a/2,width:n,height:a}}var Kn=zne;function rD(r,e){if(r.applyTransform){var t=r.getBoundingRect(),n=t.calculateTransform(e);r.applyTransform(n)}}function Rh(r,e){return q1(r,r,{lineWidth:e}),r}function nae(r,e){return k6(r,r,e),r}var Y0=ta;function fl(r,e){for(var t=Eg([]);r&&r!==e;)Ka(t,r.getLocalTransform(),t),r=r.parent;return t}function Ja(r,e,t){return e&&!$r(e)&&(e=Oo.getLocalTransform(e)),t&&(e=Ea([],e)),Kt([],r,e)}function K1(r,e,t){var n=e[4]===0||e[5]===0||e[0]===0?1:Ii(2*e[4]/e[0]),a=e[4]===0||e[5]===0||e[2]===0?1:Ii(2*e[4]/e[2]),i=[r==="left"?-n:r==="right"?n:0,r==="top"?-a:r==="bottom"?a:0];return i=Ja(i,e,t),Ii(i[0])>Ii(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function hP(r){return!r.isGroup}function aae(r){return r.shape!=null}function jg(r,e,t){if(!r||!e)return;function n(o){var s={};return o.traverse(function(l){hP(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return aae(o)&&(s.shape=Me(o.shape)),s}var i=n(r);e.traverse(function(o){if(hP(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),ot(o,l,t,ze(o).dataIndex)}}})}function nD(r,e){return ce(r,function(t){var n=t[0];n=ir(n,e.x),n=na(n,e.x+e.width);var a=t[1];return a=ir(a,e.y),a=na(a,e.y+e.height),[n,a]})}function oH(r,e){var t=ir(r.x,e.x),n=na(r.x+r.width,e.x+e.width),a=ir(r.y,e.y),i=na(r.y+r.height,e.y+e.height);if(n>=t&&i>=a)return{x:t,y:a,width:n-t,height:i-a}}function Jh(r,e,t){var n=ie({rectHover:!0},e),a=n.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(a.image=r.slice(8),Ne(a,t),new Nr(n)):Nh(r.replace("path://",""),n,t,"center")}function lp(r,e,t,n,a){for(var i=0,o=a[a.length-1];i<a.length;i++){var s=a[i];if(sH(r,e,t,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function sH(r,e,t,n,a,i,o,s){var l=t-r,u=n-e,c=o-a,f=s-i,d=Tw(c,f,l,u);if(iae(d))return!1;var v=r-a,g=e-i,x=Tw(v,g,l,u)/d;if(x<0||x>1)return!1;var y=Tw(v,g,c,f)/d;return!(y<0||y>1)}function Tw(r,e,t,n){return r*n-t*e}function iae(r){return r<=1e-6&&r>=-1e-6}function fc(r,e,t,n,a){return e==null||(it(e)?Yt[0]=Yt[1]=Yt[2]=Yt[3]=e:(Yt[0]=e[0],Yt[1]=e[1],Yt[2]=e[2],Yt[3]=e[3]),n&&(Yt[0]=ir(0,Yt[0]),Yt[1]=ir(0,Yt[1]),Yt[2]=ir(0,Yt[2]),Yt[3]=ir(0,Yt[3])),t&&(Yt[0]=-Yt[0],Yt[1]=-Yt[1],Yt[2]=-Yt[2],Yt[3]=-Yt[3]),dP(r,Yt,"x","width",3,1,a&&a[0]||0),dP(r,Yt,"y","height",0,2,a&&a[1]||0)),r}var Yt=[0,0,0,0];function dP(r,e,t,n,a,i,o){var s=e[i]+e[a],l=r[n];r[n]+=s,o=ir(0,na(o,l)),r[n]<o?(r[n]=o,r[t]+=e[a]>=0?-e[a]:e[i]>=0?l+e[i]:Ii(s)>1e-8?(l-o)*e[a]/s:0):r[t]-=e[a]}function rs(r){var e=r.itemTooltipOption,t=r.componentModel,n=r.itemName,a=ye(e)?{formatter:e}:e,i=t.mainType,o=t.componentIndex,s={componentType:i,name:n,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&P(nt(l),function(c){Se(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=ze(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:n,option:Ne({content:n,encodeHTMLContent:!0,formatterParams:s},a)}}function AC(r,e){var t;r.isGroup&&(t=e(r)),t||r.traverse(e)}function Ml(r,e){if(r)if(ue(r))for(var t=0;t<r.length;t++)AC(r[t],e);else AC(r,e)}function aD(r){return!r||Ii(r[1])<Oy&&Ii(r[2])<Oy||Ii(r[0])<Oy&&Ii(r[3])<Oy}var Oy=1e-5;function Jp(r,e){return r?ke.copy(r,e):e.clone()}function iD(r,e){return e?Ig(r||Mr(),e):void 0}function hc(r){return{z:r.get("z")||0,zlevel:r.get("zlevel")||0}}function lH(r){var e=-1/0,t=1/0;AC(r,function(i){n(i),n(i.getTextContent()),n(i.getTextGuideLine())});function n(i){if(!(!i||i.isGroup)){var o=i.currentStates;if(o.length)for(var s=0;s<o.length;s++)a(i.states[o[s]]);a(i)}}function a(i){if(i){var o=i.z2;o>e&&(e=o),o<t&&(t=o)}}return t>e&&(t=e=0),{min:t,max:e}}function Q1(r,e,t){uH(r,e,t,-1/0)}function uH(r,e,t,n){if(r.ignoreModelZ)return n;var a=r.getTextContent(),i=r.getTextGuideLine(),o=r.isGroup;if(o)for(var s=r.childrenRef(),l=0;l<s.length;l++)n=ir(uH(s[l],e,t,n),n);else r.z=e,r.zlevel=t,n=ir(r.z2||0,n);if(a&&(a.z=e,a.zlevel=t,isFinite(n)&&(a.z2=n+2)),i){var u=r.textGuideLineConfig;i.z=e,i.zlevel=t,isFinite(n)&&(i.z2=n+(u&&u.showAbove?1:-1))}return n}Pa("circle",Ki);Pa("ellipse",Pg);Pa("sector",Qr);Pa("ring",$h);Pa("polygon",Jr);Pa("polyline",Vr);Pa("rect",We);Pa("line",sr);Pa("bezierCurve",Kh);Pa("arc",zg);const _c=Object.freeze(Object.defineProperty({__proto__:null,Arc:zg,BezierCurve:Kh,BoundingRect:ke,Circle:Ki,CompoundPath:Bg,Ellipse:Pg,Group:De,Image:Nr,IncrementalDisplayable:tH,Line:sr,LinearGradient:bc,OrientedBoundingRect:eH,Path:et,Point:Ie,Polygon:Jr,Polyline:Vr,RadialGradient:JM,Rect:We,Ring:$h,Sector:Qr,Text:at,WH:dr,XY:je,applyTransform:Ja,calcZ2Range:lH,clipPointsByRect:nD,clipRectByRect:oH,createIcon:Jh,ensureCopyRect:Jp,ensureCopyTransform:iD,expandOrShrinkRect:fc,extendPath:aH,extendShape:nH,getShapeClass:Qp,getTransform:fl,groupTransition:jg,initProps:zt,isBoundingRectAxisAligned:aD,isElementRemoved:sh,lineLineIntersect:sH,linePolygonIntersect:lp,makeImage:tD,makePath:Nh,mergePath:Kn,registerShape:Pa,removeElement:xl,removeElementWithFadeOut:jo,resizePath:rD,retrieveZInfo:hc,setTooltipConfig:rs,subPixelOptimize:Y0,subPixelOptimizeLine:Rh,subPixelOptimizeRect:nae,transformDirection:K1,traverseElements:Ml,traverseUpdateZ:Q1,updateProps:ot},Symbol.toStringTag,{value:"Module"}));var J1={};function cH(r,e){for(var t=0;t<xn.length;t++){var n=xn[t],a=e[n],i=r.ensureState(n);i.style=i.style||{},i.style.text=a}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:e.normal}),r.useStates(o,!0)}function MC(r,e,t){var n=r.labelFetcher,a=r.labelDataIndex,i=r.labelDimIndex,o=e.normal,s;n&&(s=n.getFormattedLabel(a,"normal",null,i,o&&o.get("formatter"),t!=null?{interpolatedValue:t}:null)),s==null&&(s=Ae(r.defaultText)?r.defaultText(a,r,t):r.defaultText);for(var l={normal:s},u=0;u<xn.length;u++){var c=xn[u],f=e[c];l[c]=Ce(n?n.getFormattedLabel(a,c,null,i,f&&f.get("formatter")):null,s)}return l}function Lr(r,e,t,n){t=t||J1;for(var a=r instanceof at,i=!1,o=0;o<$p.length;o++){var s=e[$p[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=a?r:r.getTextContent();if(i){a||(l||(l=new at,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=MC(t,e),c=e.normal,f=!!c.getShallow("show"),d=Mt(c,n&&n.normal,t,!1,!a);d.text=u.normal,a||r.setTextConfig(Ex(c,t,!1));for(var o=0;o<xn.length;o++){var v=xn[o],s=e[v];if(s){var g=l.ensureState(v),x=!!Ce(s.getShallow("show"),f);if(x!==f&&(g.ignore=!x),g.style=Mt(s,n&&n[v],t,!0,!a),g.style.text=u[v],!a){var y=r.ensureState(v);y.textConfig=Ex(s,t,!0)}}}l.silent=!!c.getShallow("silent"),l.style.x!=null&&(d.x=l.style.x),l.style.y!=null&&(d.y=l.style.y),l.ignore=!f,l.useStyle(d),l.dirty(),t.enableTextSetter&&(ed(l).setLabelText=function(b){var S=MC(t,e,b);cH(l,S)})}else l&&(l.ignore=!0);r.dirty()}function _r(r,e){e=e||"label";for(var t={normal:r.getModel(e)},n=0;n<xn.length;n++){var a=xn[n];t[a]=r.getModel([a,e])}return t}function Mt(r,e,t,n,a){var i={};return oae(i,r,t,n,a),e&&ie(i,e),i}function Ex(r,e,t){e=e||{};var n={},a,i=r.getShallow("rotate"),o=Ce(r.getShallow("distance"),t?null:5),s=r.getShallow("offset");return a=r.getShallow("position")||(t?null:"inside"),a==="outside"&&(a=e.defaultOutsidePosition||"top"),a!=null&&(n.position=a),s!=null&&(n.offset=s),i!=null&&(i*=Math.PI/180,n.rotation=i),o!=null&&(n.distance=o),n.outsideFill=r.get("color")==="inherit"?e.inheritColor||null:"auto",e.autoOverflowArea!=null&&(n.autoOverflowArea=e.autoOverflowArea),e.layoutRect!=null&&(n.layoutRect=e.layoutRect),n}function oae(r,e,t,n,a){t=t||J1;var i=e.ecModel,o=i&&i.option.textStyle,s=sae(e),l;if(s){l={};var u="richInheritPlainLabel",c=Ce(e.get(u),i?i.get(u):void 0);for(var f in s)if(s.hasOwnProperty(f)){var d=e.getModel(["rich",f]);mP(l[f]={},d,o,e,c,t,n,a,!1,!0)}}l&&(r.rich=l);var v=e.get("overflow");v&&(r.overflow=v);var g=e.get("lineOverflow");g&&(r.lineOverflow=g);var x=r,y=e.get("minMargin");if(y!=null)y=it(y)?y/2:0,x.margin=[y,y,y,y],x.__marginType=Kf.minMargin;else{var b=e.get("textMargin");b!=null&&(x.margin=Ng(b),x.__marginType=Kf.textMargin)}mP(r,e,o,null,null,t,n,a,!0,!1)}function sae(r){for(var e;r&&r!==r.ecModel;){var t=(r.option||J1).rich;if(t){e=e||{};for(var n=nt(t),a=0;a<n.length;a++){var i=n[a];e[i]=1}}r=r.parentModel}return e}var vP=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],pP=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],gP=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function mP(r,e,t,n,a,i,o,s,l,u){t=!o&&t||J1;var c=i&&i.inheritColor,f=e.getShallow("color"),d=e.getShallow("textBorderColor"),v=Ce(e.getShallow("opacity"),t.opacity);(f==="inherit"||f==="auto")&&(c?f=c:f=null),(d==="inherit"||d==="auto")&&(c?d=c:d=null),s||(f=f||t.color,d=d||t.textBorderColor),f!=null&&(r.fill=f),d!=null&&(r.stroke=d);var g=Ce(e.getShallow("textBorderWidth"),t.textBorderWidth);g!=null&&(r.lineWidth=g);var x=Ce(e.getShallow("textBorderType"),t.textBorderType);x!=null&&(r.lineDash=x);var y=Ce(e.getShallow("textBorderDashOffset"),t.textBorderDashOffset);y!=null&&(r.lineDashOffset=y),!o&&v==null&&!u&&(v=i&&i.defaultOpacity),v!=null&&(r.opacity=v),!o&&!s&&r.fill==null&&i.inheritColor&&(r.fill=i.inheritColor);for(var b=0;b<vP.length;b++){var S=vP[b],T=a!==!1&&n?Rn(e.getShallow(S),n.getShallow(S),t[S]):Ce(e.getShallow(S),t[S]);T!=null&&(r[S]=T)}for(var b=0;b<pP.length;b++){var S=pP[b],T=e.getShallow(S);T!=null&&(r[S]=T)}if(r.verticalAlign==null){var C=e.getShallow("baseline");C!=null&&(r.verticalAlign=C)}if(!l||!i.disableBox){for(var b=0;b<gP.length;b++){var S=gP[b],T=e.getShallow(S);T!=null&&(r[S]=T)}var M=e.getShallow("borderType");M!=null&&(r.borderDash=M),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&c&&(r.backgroundColor=c),(r.borderColor==="auto"||r.borderColor==="inherit")&&c&&(r.borderColor=c)}}function oD(r,e){var t=e&&e.getModel("textStyle");return Qn([r.fontStyle||t&&t.getShallow("fontStyle")||"",r.fontWeight||t&&t.getShallow("fontWeight")||"",(r.fontSize||t&&t.getShallow("fontSize")||12)+"px",r.fontFamily||t&&t.getShallow("fontFamily")||"sans-serif"].join(" "))}var ed=Ke();function fH(r,e,t,n){if(r){var a=ed(r);a.prevValue=a.value,a.value=t;var i=e.normal;a.valueAnimation=i.get("valueAnimation"),a.valueAnimation&&(a.precision=i.get("precision"),a.defaultInterpolatedText=n,a.statesModels=e)}}function hH(r,e,t,n,a){var i=ed(r);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=Ce(i.interpolatedValue,i.prevValue),l=i.value;function u(c){var f=T6(t,i.precision,s,l,c);i.interpolatedValue=c===1?null:f;var d=MC({labelDataIndex:e,labelFetcher:a,defaultText:o?o(f):f+""},i.statesModels,f);cH(r,d)}r.percent=0,(i.prevValue==null?zt:ot)(r,{percent:1},n,e,null,u)}var Kf={minMargin:1,textMargin:2},lae=["textStyle","color"],Cw=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Aw=new at,uae=(function(){function r(){}return r.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(lae):null)},r.prototype.getFont=function(){return oD({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Cw.length;n++)t[Cw[n]]=this.getShallow(Cw[n]);return Aw.useStyle(t),Aw.update(),Aw.getBoundingRect()},r})(),dH=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],cae=uc(dH),fae=(function(){function r(){}return r.prototype.getLineStyle=function(e){return cae(this,e)},r})(),vH=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],hae=uc(vH),dae=(function(){function r(){}return r.prototype.getItemStyle=function(e,t){return hae(this,e,t)},r})(),Je=(function(){function r(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return r.prototype.init=function(e,t,n){},r.prototype.mergeOption=function(e,t){Fe(this.option,e,!0)},r.prototype.get=function(e,t){return e==null?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},r.prototype.getShallow=function(e,t){var n=this.option,a=n==null?n:n[e];if(a==null&&!t){var i=this.parentModel;i&&(a=i.getShallow(e))}return a},r.prototype.getModel=function(e,t){var n=e!=null,a=n?this.parsePath(e):null,i=n?this._doGet(a):this.option;return t=t||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),new r(i,t,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var e=this.constructor;return new e(Me(this.option))},r.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},r.prototype.resolveParentPath=function(e){return e},r.prototype.isAnimationEnabled=function(){if(!rt.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var a=0;a<e.length&&!(e[a]&&(n=n&&typeof n=="object"?n[e[a]]:null,n==null));a++);return n==null&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},r})();FM(Je);Tre(Je);Qt(Je,fae);Qt(Je,dae);Qt(Je,Lre);Qt(Je,uae);var vae=Math.round(Math.random()*10);function td(r){return[r||"",vae++].join("_")}function pae(r){var e={};r.registerSubTypeDefaulter=function(t,n){var a=ki(t);e[a.main]=n},r.determineSubType=function(t,n){var a=n.type;if(!a){var i=ki(t).main;r.hasSubTypes(t)&&e[i]&&(a=e[i](n))}return a}}function gae(r,e){r.topologicalTravel=function(i,o,s,l){if(!i.length)return;var u=t(o),c=u.graph,f=u.noEntryList,d={};for(P(i,function(S){d[S]=!0});f.length;){var v=f.pop(),g=c[v],x=!!d[v];x&&(s.call(l,v,g.originalDeps.slice()),delete d[v]),P(g.successor,x?b:y)}P(d,function(){var S="";throw new Error(S)});function y(S){c[S].entryCount--,c[S].entryCount===0&&f.push(S)}function b(S){d[S]=!0,y(S)}};function t(i){var o={},s=[];return P(i,function(l){var u=n(o,l),c=u.originalDeps=e(l),f=a(c,i);u.entryCount=f.length,u.entryCount===0&&s.push(l),P(f,function(d){Ge(u.predecessor,d)<0&&u.predecessor.push(d);var v=n(o,d);Ge(v.successor,d)<0&&v.successor.push(l)})}),{graph:o,noEntryList:s}}function n(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}function a(i,o){var s=[];return P(i,function(l){Ge(o,l)>=0&&s.push(l)}),s}}function Dl(r,e){return Fe(Fe({},r,!0),e,!0)}const mae={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:". "}}}},yae={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 Ix="ZH",sD="EN",lh=sD,W0={},lD={},pH=rt.domSupported?(function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||lh).toUpperCase();return r.indexOf(Ix)>-1?Ix:lh})():lh;function uD(r,e){r=r.toUpperCase(),lD[r]=new Je(e),W0[r]=e}function xae(r){if(ye(r)){var e=W0[r.toUpperCase()]||{};return r===Ix||r===sD?Me(e):Fe(Me(e),Me(W0[lh]),!1)}else return Fe(Me(r),Me(W0[lh]),!1)}function DC(r){return lD[r]}function bae(){return lD[lh]}uD(sD,mae);uD(Ix,yae);var LC=null;function _ae(r){LC||(LC=r)}function hr(){return LC}var cD=1e3,fD=cD*60,Dp=fD*60,Da=Dp*24,yP=Da*365,Sae={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})/},X0={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},wae="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",Py="{yyyy}-{MM}-{dd}",xP={year:"{yyyy}",month:"{yyyy}-{MM}",day:Py,hour:Py+" "+X0.hour,minute:Py+" "+X0.minute,second:Py+" "+X0.second,millisecond:wae},Wn=["year","month","day","hour","minute","second","millisecond"],Tae=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Cae(r){return!ye(r)&&!Ae(r)?Aae(r):r}function Aae(r){r=r||{};var e={},t=!0;return P(Wn,function(n){t&&(t=r[n]==null)}),P(Wn,function(n,a){var i=r[n];e[n]={};for(var o=null,s=a;s>=0;s--){var l=Wn[s],u=Re(i)&&!ue(i)?i[l]:i,c=void 0;ue(u)?(c=u.slice(),o=c[0]||""):ye(u)?(o=u,c=[o]):(o==null?o=X0[n]:Sae[l].test(o)||(o=e[l][l][0]+" "+o),c=[o],t&&(c[1]="{primary|"+o+"}")),e[n][l]=c}}),e}function pn(r,e){return r+="","0000".substr(0,e-r.length)+r}function Lp(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function Mae(r){return r===Lp(r)}function Dae(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Vg(r,e,t,n){var a=$i(r),i=a[gH(t)](),o=a[hD(t)]()+1,s=Math.floor((o-1)/3)+1,l=a[dD(t)](),u=a["get"+(t?"UTC":"")+"Day"](),c=a[vD(t)](),f=(c-1)%12+1,d=a[pD(t)](),v=a[gD(t)](),g=a[mD(t)](),x=c>=12?"pm":"am",y=x.toUpperCase(),b=n instanceof Je?n:DC(n||pH)||bae(),S=b.getModel("time"),T=S.get("month"),C=S.get("monthAbbr"),M=S.get("dayOfWeek"),D=S.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,x+"").replace(/{A}/g,y+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,pn(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,T[o-1]).replace(/{MMM}/g,C[o-1]).replace(/{MM}/g,pn(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,pn(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,M[u]).replace(/{ee}/g,D[u]).replace(/{e}/g,u+"").replace(/{HH}/g,pn(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,pn(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,pn(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,pn(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,pn(g,3)).replace(/{S}/g,g+"")}function Lae(r,e,t,n,a){var i=null;if(ye(t))i=t;else if(Ae(t)){var o={time:r.time,level:r.time.level},s=hr();s&&s.makeAxisLabelFormatterParamBreak(o,r.break),i=t(r.value,e,o)}else{var l=r.time;if(l){var u=t[l.lowerTimeUnit][l.upperTimeUnit];i=u[Math.min(l.level,u.length-1)]||""}else{var c=Qf(r.value,a);i=t[c][c][0]}}return Vg(new Date(r.value),i,a,n)}function Qf(r,e){var t=$i(r),n=t[hD(e)]()+1,a=t[dD(e)](),i=t[vD(e)](),o=t[pD(e)](),s=t[gD(e)](),l=t[mD(e)](),u=l===0,c=u&&s===0,f=c&&o===0,d=f&&i===0,v=d&&a===1,g=v&&n===1;return g?"year":v?"month":d?"day":f?"hour":c?"minute":u?"second":"millisecond"}function kx(r,e,t){switch(e){case"year":r[mH(t)](0);case"month":r[yH(t)](1);case"day":r[xH(t)](0);case"hour":r[bH(t)](0);case"minute":r[_H(t)](0);case"second":r[SH(t)](0)}return r}function gH(r){return r?"getUTCFullYear":"getFullYear"}function hD(r){return r?"getUTCMonth":"getMonth"}function dD(r){return r?"getUTCDate":"getDate"}function vD(r){return r?"getUTCHours":"getHours"}function pD(r){return r?"getUTCMinutes":"getMinutes"}function gD(r){return r?"getUTCSeconds":"getSeconds"}function mD(r){return r?"getUTCMilliseconds":"getMilliseconds"}function Nae(r){return r?"setUTCFullYear":"setFullYear"}function mH(r){return r?"setUTCMonth":"setMonth"}function yH(r){return r?"setUTCDate":"setDate"}function xH(r){return r?"setUTCHours":"setHours"}function bH(r){return r?"setUTCMinutes":"setMinutes"}function _H(r){return r?"setUTCSeconds":"setSeconds"}function SH(r){return r?"setUTCMilliseconds":"setMilliseconds"}function Rae(r,e,t,n,a,i,o,s){var l=new at({style:{text:r,font:e,align:t,verticalAlign:n,padding:a,rich:i,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function yD(r){if(!VM(r))return ye(r)?r:"-";var e=(r+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function xD(r,e){return r=(r||"").toLowerCase().replace(/-(.)/g,function(t,n){return n.toUpperCase()}),e&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var rd=Ng;function NC(r,e,t){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(c){return c&&Qn(c)?c:"-"}function i(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=e==="time",s=r instanceof Date;if(o||s){var l=o?$i(r):r;if(isNaN(+l)){if(s)return"-"}else return Vg(l,n,t)}if(e==="ordinal")return dx(r)?a(r):it(r)&&i(r)?r+"":"-";var u=Ui(r);return i(u)?yD(u):dx(r)?a(r):typeof r=="boolean"?r+"":"-"}var bP=["a","b","c","d","e","f","g"],Mw=function(r,e){return"{"+r+(e??"")+"}"};function bD(r,e,t){ue(e)||(e=[e]);var n=e.length;if(!n)return"";for(var a=e[0].$vars||[],i=0;i<a.length;i++){var o=bP[i];r=r.replace(Mw(o),Mw(o,0))}for(var s=0;s<n;s++)for(var l=0;l<a.length;l++){var u=e[s][a[l]];r=r.replace(Mw(bP[l],s),t?ln(u):u)}return r}function Eae(r,e,t){return P(e,function(n,a){r=r.replace("{"+a+"}",n)}),r}function wH(r,e){var t=ye(r)?{color:r,extraCssText:e}:r||{},n=t.color,a=t.type;e=t.extraCssText;var i=t.renderMode||"html";if(!n)return"";if(i==="html")return a==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+ln(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+ln(n)+";"+(e||"")+'"></span>';var o=t.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function Iae(r,e,t){(r==="week"||r==="month"||r==="quarter"||r==="half-year"||r==="year")&&(r=`MM-dd
|
|
253
|
+
yyyy`);var n=$i(e),a=t?"getUTC":"get",i=n[a+"FullYear"](),o=n[a+"Month"]()+1,s=n[a+"Date"](),l=n[a+"Hours"](),u=n[a+"Minutes"](),c=n[a+"Seconds"](),f=n[a+"Milliseconds"]();return r=r.replace("MM",pn(o,2)).replace("M",o).replace("yyyy",i).replace("yy",pn(i%100+"",2)).replace("dd",pn(s,2)).replace("d",s).replace("hh",pn(l,2)).replace("h",l).replace("mm",pn(u,2)).replace("m",u).replace("ss",pn(c,2)).replace("s",c).replace("SSS",pn(f,3)),r}function kae(r){return r&&r.charAt(0).toUpperCase()+r.substr(1)}function dc(r,e){return e=e||"transparent",ye(r)?r:Re(r)&&r.colorStops&&(r.colorStops[0]||{}).color||e}function Ox(r,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=r}else window.open(r,e)}var q0={},Dw={},nd=(function(){function r(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return r.prototype.create=function(e,t){this._nonSeriesBoxMasterList=n(q0),this._normalMasterList=n(Dw);function n(a,i){var o=[];return P(a,function(s,l){var u=s.create(e,t);o=o.concat(u||[])}),o}},r.prototype.update=function(e,t){P(this._normalMasterList,function(n){n.update&&n.update(e,t)})},r.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},r.register=function(e,t){if(e==="matrix"||e==="calendar"){q0[e]=t;return}Dw[e]=t},r.get=function(e){return Dw[e]||q0[e]},r})();function Oae(r){return!!q0[r]}var RC={coord:1,coord2:2};function Pae(r){TH.set(r.fullType,{getCoord2:void 0}).getCoord2=r.getCoord2}var TH=Te();function zae(r){var e=r.getShallow("coord",!0),t=RC.coord;if(e==null){var n=TH.get(r.type);n&&n.getCoord2&&(t=RC.coord2,e=n.getCoord2(r))}return{coord:e,from:t}}var Ni={none:0,dataCoordSys:1,boxCoordSys:2};function CH(r,e){var t=r.getShallow("coordinateSystem"),n=r.getShallow("coordinateSystemUsage",!0),a=Ni.none;if(t){var i=r.mainType==="series";n==null&&(n=i?"data":"box"),n==="data"?(a=Ni.dataCoordSys,i||(a=Ni.none)):n==="box"&&(a=Ni.boxCoordSys,!i&&!Oae(t)&&(a=Ni.none))}return{coordSysType:t,kind:a}}function Gg(r){var e=r.targetModel,t=r.coordSysType,n=r.coordSysProvider,a=r.isDefaultDataCoordSys;r.allowNotFound;var i=CH(e),o=i.kind,s=i.coordSysType;if(a&&o!==Ni.dataCoordSys&&(o=Ni.dataCoordSys,s=t),o===Ni.none||s!==t)return!1;var l=n(t,e);return l?(o===Ni.dataCoordSys?e.coordinateSystem=l:e.boxCoordinateSystem=l,!0):!1}var AH=function(r,e){var t=e.getReferringComponents(r,qt).models[0];return t&&t.coordinateSystem},Z0=P,MH=["left","right","top","bottom","width","height"],zu=[["width","left","right"],["height","top","bottom"]];function _D(r,e,t,n,a){var i=0,o=0;n==null&&(n=1/0),a==null&&(a=1/0);var s=0;e.eachChild(function(l,u){var c=l.getBoundingRect(),f=e.childAt(u+1),d=f&&f.getBoundingRect(),v,g;if(r==="horizontal"){var x=c.width+(d?-d.x+c.x:0);v=i+x,v>n||l.newline?(i=0,v=x,o+=s+t,s=c.height):s=Math.max(s,c.height)}else{var y=c.height+(d?-d.y+c.y:0);g=o+y,g>a||l.newline?(i+=s+t,o=0,g=y,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=v+t:o=g+t)})}var ec=_D;Ve(_D,"vertical");Ve(_D,"horizontal");function DH(r,e){return{left:r.getShallow("left",e),top:r.getShallow("top",e),right:r.getShallow("right",e),bottom:r.getShallow("bottom",e),width:r.getShallow("width",e),height:r.getShallow("height",e)}}function Bae(r,e){var t=Sr(r,e,{enableLayoutOnlyByCenter:!0}),n=r.getBoxLayoutParams(),a,i;if(t.type===up.point)i=t.refPoint,a=Gt(n,{width:e.getWidth(),height:e.getHeight()});else{var o=r.get("center"),s=ue(o)?o:[o,o];a=Gt(n,t.refContainer),i=t.boxCoordFrom===RC.coord2?t.refPoint:[me(s[0],a.width)+a.x,me(s[1],a.height)+a.y]}return{viewRect:a,center:i}}function LH(r,e){var t=Bae(r,e),n=t.viewRect,a=t.center,i=r.get("radius");ue(i)||(i=[0,i]);var o=me(n.width,e.getWidth()),s=me(n.height,e.getHeight()),l=Math.min(o,s),u=me(i[0],l/2),c=me(i[1],l/2);return{cx:a[0],cy:a[1],r0:u,r:c,viewRect:n}}function Gt(r,e,t){t=rd(t||0);var n=e.width,a=e.height,i=me(r.left,n),o=me(r.top,a),s=me(r.right,n),l=me(r.bottom,a),u=me(r.width,n),c=me(r.height,a),f=t[2]+t[0],d=t[1]+t[3],v=r.aspect;switch(isNaN(u)&&(u=n-s-d-i),isNaN(c)&&(c=a-l-f-o),v!=null&&(isNaN(u)&&isNaN(c)&&(v>n/a?u=n*.8:c=a*.8),isNaN(u)&&(u=v*c),isNaN(c)&&(c=u/v)),isNaN(i)&&(i=n-s-u-d),isNaN(o)&&(o=a-l-c-f),r.left||r.right){case"center":i=n/2-u/2-t[3];break;case"right":i=n-u-d;break}switch(r.top||r.bottom){case"middle":case"center":o=a/2-c/2-t[0];break;case"bottom":o=a-c-f;break}i=i||0,o=o||0,isNaN(u)&&(u=n-d-i-(s||0)),isNaN(c)&&(c=a-f-o-(l||0));var g=new ke((e.x||0)+i+t[3],(e.y||0)+o+t[0],u,c);return g.margin=t,g}function NH(r,e,t){var n=r.getShallow("preserveAspect",!0);if(!n)return e;var a=e.width/e.height;if(Math.abs(Math.atan(t)-Math.atan(a))<1e-9)return e;var i=r.getShallow("preserveAspectAlign",!0),o=r.getShallow("preserveAspectVerticalAlign",!0),s={width:e.width,height:e.height},l=n==="cover";return a>t&&!l||a<t&&l?(s.width=e.height*t,i==="left"?s.left=0:i==="right"?s.right=0:s.left="center"):(s.height=e.width/t,o==="top"?s.top=0:o==="bottom"?s.bottom=0:s.top="middle"),Gt(s,e)}var up={rect:1,point:2};function Sr(r,e,t){var n,a,i,o=r.boxCoordinateSystem,s;if(o){var l=zae(r),u=l.coord,c=l.from;if(o.dataToLayout){i=up.rect,s=c;var f=o.dataToLayout(u);n=f.contentRect||f.rect}else t&&t.enableLayoutOnlyByCenter&&o.dataToPoint&&(i=up.point,s=c,a=o.dataToPoint(u))}return i==null&&(i=up.rect),i===up.rect&&(n||(n={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),a=[n.x+n.width/2,n.y+n.height/2]),{type:i,refContainer:n,refPoint:a,boxCoordFrom:s}}function eb(r,e,t,n,a,i){var o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],l=a&&a.boundingMode||"all";if(i=i||r,i.x=r.x,i.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new ke(0,0,+e.width||0,+e.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var c=r.getLocalTransform();u=u.clone(),u.applyTransform(c)}var f=Gt(Ne({width:u.width,height:u.height},e),t,n),d=o?f.x-u.x:0,v=s?f.y-u.y:0;return l==="raw"?(i.x=d,i.y=v):(i.x+=d,i.y+=v),i===r&&r.markRedraw(),!0}function jae(r,e){return r[zu[e][0]]!=null||r[zu[e][1]]!=null&&r[zu[e][2]]!=null}function eg(r){var e=r.layoutMode||r.constructor.layoutMode;return Re(e)?e:e?{type:e}:null}function Wi(r,e,t){var n=t&&t.ignoreSize;!ue(n)&&(n=[n,n]);var a=o(zu[0],0),i=o(zu[1],1);l(zu[0],r,a),l(zu[1],r,i);function o(u,c){var f={},d=0,v={},g=0,x=2;if(Z0(u,function(S){v[S]=r[S]}),Z0(u,function(S){Se(e,S)&&(f[S]=v[S]=e[S]),s(f,S)&&d++,s(v,S)&&g++}),n[c])return s(e,u[1])?v[u[2]]=null:s(e,u[2])&&(v[u[1]]=null),v;if(g===x||!d)return v;if(d>=x)return f;for(var y=0;y<u.length;y++){var b=u[y];if(!Se(f,b)&&Se(r,b)){f[b]=r[b];break}}return f}function s(u,c){return u[c]!=null&&u[c]!=="auto"}function l(u,c,f){Z0(u,function(d){c[d]=f[d]})}}function Sc(r){return RH({},r)}function RH(r,e){return e&&r&&Z0(MH,function(t){Se(e,t)&&(r[t]=e[t])}),r}var Vae=Ke(),$e=(function(r){K(e,r);function e(t,n,a){var i=r.call(this,t,n,a)||this;return i.uid=td("ec_cpt_model"),i}return e.prototype.init=function(t,n,a){this.mergeDefaultAndTheme(t,a)},e.prototype.mergeDefaultAndTheme=function(t,n){var a=eg(this),i=a?Sc(t):{},o=n.getTheme();Fe(t,o.get(this.mainType)),Fe(t,this.getDefaultOption()),a&&Wi(t,i,a)},e.prototype.mergeOption=function(t,n){Fe(this.option,t,!0);var a=eg(this);a&&Wi(this.option,t,a)},e.prototype.optionUpdated=function(t,n){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!_re(t))return t.defaultOption;var n=Vae(this);if(!n.defaultOption){for(var a=[],i=t;i;){var o=i.prototype.defaultOption;o&&a.push(o),i=i.superClass}for(var s={},l=a.length-1;l>=0;l--)s=Fe(s,a[l],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(t,n){var a=t+"Index",i=t+"Id";return qh(this.ecModel,t,{index:this.get(a,!0),id:this.get(i,!0)},n)},e.prototype.getBoxLayoutParams=function(){return DH(this,!1)},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=(function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0})(),e})(Je);A6($e,Je);F1($e);pae($e);gae($e,Gae);function Gae(r){var e=[];return P($e.getClassesByMainType(r),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=ce(e,function(t){return ki(t).main}),r!=="dataset"&&Ge(e,"dataset")<=0&&e.unshift("dataset"),e}var ee={color:{},darkColor:{},size:{}},nr=ee.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)"};ie(nr,{primary:nr.neutral80,secondary:nr.neutral70,tertiary:nr.neutral60,quaternary:nr.neutral50,disabled:nr.neutral20,border:nr.neutral30,borderTint:nr.neutral20,borderShade:nr.neutral40,background:nr.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:nr.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:nr.neutral70,axisLineTint:nr.neutral40,axisTick:nr.neutral70,axisTickMinor:nr.neutral60,axisLabel:nr.neutral70,axisSplitLine:nr.neutral15,axisMinorSplitLine:nr.neutral05});for(var hu in nr)if(nr.hasOwnProperty(hu)){var _P=nr[hu];hu==="theme"?ee.darkColor.theme=nr.theme.slice():hu==="highlight"?ee.darkColor.highlight="rgba(255,231,130,0.4)":hu.indexOf("accent")===0?ee.darkColor[hu]=Bo(_P,null,function(r){return r*.5},function(r){return Math.min(1,1.3-r)}):ee.darkColor[hu]=Bo(_P,null,function(r){return r*.9},function(r){return 1-Math.pow(r,1.5)})}ee.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var EH="";typeof navigator<"u"&&(EH=navigator.platform||"");var wf="rgba(0, 0, 0, 0.2)",IH=ee.color.theme[0],Hae=Bo(IH,null,null,.9);const Fae={darkMode:"auto",colorBy:"series",color:ee.color.theme,gradientColor:[Hae,IH],aria:{decal:{decals:[{color:wf,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:wf,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:wf,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:wf,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:wf,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:wf,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:EH.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 kH=Te(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),aa="original",Gr="arrayRows",ia="objectRows",oi="keyedColumns",hl="typedArray",OH="unknown",ei="column",wc="row",Wr={Must:1,Might:2,Not:3},PH=Ke();function Uae(r){PH(r).datasetMap=Te()}function zH(r,e,t){var n={},a=wD(e);if(!a||!r)return n;var i=[],o=[],s=e.ecModel,l=PH(s).datasetMap,u=a.uid+"_"+t.seriesLayoutBy,c,f;r=r.slice(),P(r,function(x,y){var b=Re(x)?x:r[y]={name:x};b.type==="ordinal"&&c==null&&(c=y,f=g(b)),n[b.name]=[]});var d=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});P(r,function(x,y){var b=x.name,S=g(x);if(c==null){var T=d.valueWayDim;v(n[b],T,S),v(o,T,S),d.valueWayDim+=S}else if(c===y)v(n[b],0,S),v(i,0,S);else{var T=d.categoryWayDim;v(n[b],T,S),v(o,T,S),d.categoryWayDim+=S}});function v(x,y,b){for(var S=0;S<b;S++)x.push(y+S)}function g(x){var y=x.dimsDef;return y?y.length:1}return i.length&&(n.itemName=i),o.length&&(n.seriesName=o),n}function SD(r,e,t){var n={},a=wD(r);if(!a)return n;var i=e.sourceFormat,o=e.dimensionsDefine,s;(i===ia||i===oi)&&P(o,function(c,f){(Re(c)?c.name:c)==="name"&&(s=f)});var l=(function(){for(var c={},f={},d=[],v=0,g=Math.min(5,t);v<g;v++){var x=jH(e.data,i,e.seriesLayoutBy,o,e.startIndex,v);d.push(x);var y=x===Wr.Not;if(y&&c.v==null&&v!==s&&(c.v=v),(c.n==null||c.n===c.v||!y&&d[c.n]===Wr.Not)&&(c.n=v),b(c)&&d[c.n]!==Wr.Not)return c;y||(x===Wr.Might&&f.v==null&&v!==s&&(f.v=v),(f.n==null||f.n===f.v)&&(f.n=v))}function b(S){return S.v!=null&&S.n!=null}return b(c)?c:b(f)?f:null})();if(l){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function wD(r){var e=r.get("data",!0);if(!e)return qh(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},qt).models[0]}function Yae(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:qh(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},qt).models}function BH(r,e){return jH(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,e)}function jH(r,e,t,n,a,i){var o,s=5;if(yn(r))return Wr.Not;var l,u;if(n){var c=n[i];Re(c)?(l=c.name,u=c.type):ye(c)&&(l=c)}if(u!=null)return u==="ordinal"?Wr.Must:Wr.Not;if(e===Gr){var f=r;if(t===wc){for(var d=f[i],v=0;v<(d||[]).length&&v<s;v++)if((o=C(d[a+v]))!=null)return o}else for(var v=0;v<f.length&&v<s;v++){var g=f[a+v];if(g&&(o=C(g[i]))!=null)return o}}else if(e===ia){var x=r;if(!l)return Wr.Not;for(var v=0;v<x.length&&v<s;v++){var y=x[v];if(y&&(o=C(y[l]))!=null)return o}}else if(e===oi){var b=r;if(!l)return Wr.Not;var d=b[l];if(!d||yn(d))return Wr.Not;for(var v=0;v<d.length&&v<s;v++)if((o=C(d[v]))!=null)return o}else if(e===aa)for(var S=r,v=0;v<S.length&&v<s;v++){var y=S[v],T=Xh(y);if(!ue(T))return Wr.Not;if((o=C(T[i]))!=null)return o}function C(M){var D=ye(M);if(M!=null&&Number.isFinite(Number(M))&&M!=="")return D?Wr.Might:Wr.Not;if(D&&M!=="-")return Wr.Must}return Wr.Not}var EC=Te();function Wae(r,e){Kr(EC.get(r)==null&&e),EC.set(r,e)}function Xae(r,e,t){var n=EC.get(e);if(!n)return t;var a=n(r);return a?t.concat(a):t}var SP=Ke(),qae=Ke(),TD=(function(){function r(){}return r.prototype.getColorFromPalette=function(e,t,n){var a=Dt(this.get("color",!0)),i=this.get("colorLayer",!0);return VH(this,SP,a,i,e,t,n)},r.prototype.clearColorPalette=function(){$ae(this,SP)},r})();function IC(r,e,t,n){var a=Dt(r.get(["aria","decal","decals"]));return VH(r,qae,a,null,e,t,n)}function Zae(r,e){for(var t=r.length,n=0;n<t;n++)if(r[n].length>e)return r[n];return r[t-1]}function VH(r,e,t,n,a,i,o){i=i||r;var s=e(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var c=o==null||!n?t:Zae(n,o);if(c=c||t,!(!c||!c.length)){var f=c[l];return a&&(u[a]=f),s.paletteIdx=(l+1)%c.length,f}}function $ae(r,e){e(r).paletteIdx=0,e(r).paletteNameMap={}}var zy,Tv,wP,TP="\0_ec_inner",Kae=1,CD=(function(r){K(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t,n,a,i,o,s){i=i||{},this.option=null,this._theme=new Je(i),this._locale=new Je(o),this._optionManager=s},e.prototype.setOption=function(t,n,a){var i=MP(n);this._optionManager.setOption(t,a,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,n){return this._resetOption(t,MP(n))},e.prototype._resetOption=function(t,n){var a=!1,i=this._optionManager;if(!t||t==="recreate"){var o=i.mountOption(t==="recreate");!this.option||t==="recreate"?wP(this,o):(this.restoreData(),this._mergeOption(o,n)),a=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,n))}if(!t||t==="recreate"||t==="media"){var l=i.getMediaOption(this);l.length&&P(l,function(u){a=!0,this._mergeOption(u,n)},this)}return a},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,n){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=Te(),u=n&&n.replaceMergeMainTypeMap;Uae(this),P(t,function(f,d){f!=null&&($e.hasClass(d)?d&&(s.push(d),l.set(d,!0)):a[d]=a[d]==null?Me(f):Fe(a[d],f,!0))}),u&&u.each(function(f,d){$e.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),$e.topologicalTravel(s,$e.getAllClassMainTypes(),c,this);function c(f){var d=Xae(this,f,Dt(t[f])),v=i.get(f),g=v?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",x=_6(v,d,g);hre(x,f,$e),a[f]=null,i.set(f,null),o.set(f,0);var y=[],b=[],S=0,T;P(x,function(C,M){var D=C.existing,L=C.newOption;if(!L)D&&(D.mergeOption({},this),D.optionUpdated({},!1));else{var E=f==="series",R=$e.getClass(f,C.keyInfo.subType,!E);if(!R)return;if(f==="tooltip"){if(T)return;T=!0}if(D&&D.constructor===R)D.name=C.keyInfo.name,D.mergeOption(L,this),D.optionUpdated(L,!1);else{var I=ie({componentIndex:M},C.keyInfo);D=new R(L,this,this,I),ie(D,I),C.brandNew&&(D.__requireNewView=!0),D.init(L,this,this),D.optionUpdated(null,!0)}}D?(y.push(D.option),b.push(D),S++):(y.push(void 0),b.push(void 0))},this),a[f]=y,i.set(f,b),o.set(f,S),f==="series"&&zy(this)}this._seriesIndices||zy(this)},e.prototype.getOption=function(){var t=Me(this.option);return P(t,function(n,a){if($e.hasClass(a)){for(var i=Dt(n),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!Zp(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,t[a]=i}}),delete t[TP],t},e.prototype.setTheme=function(t){this._theme=new Je(t),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,n){var a=this._componentsMap.get(t);if(a){var i=a[n||0];if(i)return i;if(n==null){for(var o=0;o<a.length;o++)if(a[o])return a[o]}}},e.prototype.queryComponents=function(t){var n=t.mainType;if(!n)return[];var a=t.index,i=t.id,o=t.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return a!=null?(l=[],P(Dt(a),function(u){s[u]&&l.push(s[u])})):i!=null?l=CP("id",i,s):o!=null?l=CP("name",o,s):l=ht(s,function(u){return!!u}),AP(l,t)},e.prototype.findComponents=function(t){var n=t.query,a=t.mainType,i=s(n),o=i?this.queryComponents(i):ht(this._componentsMap.get(a),function(u){return!!u});return l(AP(o,t));function s(u){var c=a+"Index",f=a+"Id",d=a+"Name";return u&&(u[c]!=null||u[f]!=null||u[d]!=null)?{mainType:a,index:u[c],id:u[f],name:u[d]}:null}function l(u){return t.filter?ht(u,t.filter):u}},e.prototype.eachComponent=function(t,n,a){var i=this._componentsMap;if(Ae(t)){var o=n,s=t;i.each(function(f,d){for(var v=0;f&&v<f.length;v++){var g=f[v];g&&s.call(o,d,g,g.componentIndex)}})}else for(var l=ye(t)?i.get(t):Re(t)?this.findComponents(t):null,u=0;l&&u<l.length;u++){var c=l[u];c&&n.call(a,c,c.componentIndex)}},e.prototype.getSeriesByName=function(t){var n=yr(t,null);return ht(this._componentsMap.get("series"),function(a){return!!a&&n!=null&&a.name===n})},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return ht(this._componentsMap.get("series"),function(n){return!!n&&n.subType===t})},e.prototype.getSeries=function(){return ht(this._componentsMap.get("series"),function(t){return!!t})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,n){Tv(this),P(this._seriesIndices,function(a){var i=this._componentsMap.get("series")[a];t.call(n,i,a)},this)},e.prototype.eachRawSeries=function(t,n){P(this._componentsMap.get("series"),function(a){a&&t.call(n,a,a.componentIndex)})},e.prototype.eachSeriesByType=function(t,n,a){Tv(this),P(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===t&&n.call(a,o,i)},this)},e.prototype.eachRawSeriesByType=function(t,n,a){return P(this.getSeriesByType(t),n,a)},e.prototype.isSeriesFiltered=function(t){return Tv(this),this._seriesIndicesMap.get(t.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,n){Tv(this);var a=[];P(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];t.call(n,o,i)&&a.push(i)},this),this._seriesIndices=a,this._seriesIndicesMap=Te(a)},e.prototype.restoreData=function(t){zy(this);var n=this._componentsMap,a=[];n.each(function(i,o){$e.hasClass(o)&&a.push(o)}),$e.topologicalTravel(a,$e.getAllClassMainTypes(),function(i){P(n.get(i),function(o){o&&(i!=="series"||!Qae(o,t))&&o.restoreData()})})},e.internalField=(function(){zy=function(t){var n=t._seriesIndices=[];P(t._componentsMap.get("series"),function(a){a&&n.push(a.componentIndex)}),t._seriesIndicesMap=Te(n)},Tv=function(t){},wP=function(t,n){t.option={},t.option[TP]=Kae,t._componentsMap=Te({series:[]}),t._componentsCount=Te();var a=n.aria;Re(a)&&a.enabled==null&&(a.enabled=!0),Jae(n,t._theme.option),Fe(n,Fae,!1),t._mergeOption(n,null)}})(),e})(Je);function Qae(r,e){if(e){var t=e.seriesIndex,n=e.seriesId,a=e.seriesName;return t!=null&&r.componentIndex!==t||n!=null&&r.id!==n||a!=null&&r.name!==a}}function Jae(r,e){var t=r.color&&!r.colorLayer;P(e,function(n,a){a==="colorLayer"&&t||a==="color"&&r.color||$e.hasClass(a)||(typeof n=="object"?r[a]=r[a]?Fe(r[a],n,!1):Me(n):r[a]==null&&(r[a]=n))})}function CP(r,e,t){if(ue(e)){var n=Te();return P(e,function(i){if(i!=null){var o=yr(i,null);o!=null&&n.set(i,!0)}}),ht(t,function(i){return i&&n.get(i[r])})}else{var a=yr(e,null);return ht(t,function(i){return i&&a!=null&&i[r]===a})}}function AP(r,e){return e.hasOwnProperty("subType")?ht(r,function(t){return t&&t.subType===e.subType}):r}function MP(r){var e=Te();return r&&P(Dt(r.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}Qt(CD,TD);var eie=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],GH=(function(){function r(e){P(eie,function(t){this[t]=xe(e[t],e)},this)}return r})(),tie=/^(min|max)?(.+)$/,rie=(function(){function r(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return r.prototype.setOption=function(e,t,n){e&&(P(Dt(e.series),function(o){o&&o.data&&yn(o.data)&&Hp(o.data)}),P(Dt(e.dataset),function(o){o&&o.source&&yn(o.source)&&Hp(o.source)})),e=Me(e);var a=this._optionBackup,i=nie(e,t,!a);this._newBaseOption=i.baseOption,a?(i.timelineOptions.length&&(a.timelineOptions=i.timelineOptions),i.mediaList.length&&(a.mediaList=i.mediaList),i.mediaDefault&&(a.mediaDefault=i.mediaDefault)):this._optionBackup=i},r.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],Me(e?t.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var a=e.getComponent("timeline");a&&(t=Me(n[a.getCurrentIndex()]))}return t},r.prototype.getMediaOption=function(e){var t=this._api.getWidth(),n=this._api.getHeight(),a=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!a.length&&!i)return s;for(var l=0,u=a.length;l<u;l++)aie(a[l].query,t,n)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!oie(o,this._currentMediaIndices)&&(s=ce(o,function(c){return Me(c===-1?i.option:a[c].option)})),this._currentMediaIndices=o,s},r})();function nie(r,e,t){var n=[],a,i,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,c=!!r.media,f=!!(l||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((f||c)&&(r.options=r.media=null),i=r),c&&ue(u)&&P(u,function(v){v&&v.option&&(v.query?n.push(v):a||(a=v))}),d(i),P(l,function(v){return d(v)}),P(n,function(v){return d(v.option)});function d(v){P(e,function(g){g(v,t)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:a,mediaList:n}}function aie(r,e,t){var n={width:e,height:t,aspectratio:e/t},a=!0;return P(r,function(i,o){var s=o.match(tie);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();iie(n[u],i,l)||(a=!1)}}),a}function iie(r,e,t){return t==="min"?r>=e:t==="max"?r<=e:r===e}function oie(r,e){return r.join(",")===e.join(",")}var Ha=P,tg=Re,DP=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Lw(r){var e=r&&r.itemStyle;if(e)for(var t=0,n=DP.length;t<n;t++){var a=DP[t],i=e.normal,o=e.emphasis;i&&i[a]&&(r[a]=r[a]||{},r[a].normal?Fe(r[a].normal,i[a]):r[a].normal=i[a],i[a]=null),o&&o[a]&&(r[a]=r[a]||{},r[a].emphasis?Fe(r[a].emphasis,o[a]):r[a].emphasis=o[a],o[a]=null)}}function sn(r,e,t){if(r&&r[e]&&(r[e].normal||r[e].emphasis)){var n=r[e].normal,a=r[e].emphasis;n&&(t?(r[e].normal=r[e].emphasis=null,Ne(r[e],n)):r[e]=n),a&&(r.emphasis=r.emphasis||{},r.emphasis[e]=a,a.focus&&(r.emphasis.focus=a.focus),a.blurScope&&(r.emphasis.blurScope=a.blurScope))}}function cp(r){sn(r,"itemStyle"),sn(r,"lineStyle"),sn(r,"areaStyle"),sn(r,"label"),sn(r,"labelLine"),sn(r,"upperLabel"),sn(r,"edgeLabel")}function fr(r,e){var t=tg(r)&&r[e],n=tg(t)&&t.textStyle;if(n)for(var a=0,i=RO.length;a<i;a++){var o=RO[a];n.hasOwnProperty(o)&&(t[o]=n[o])}}function ba(r){r&&(cp(r),fr(r,"label"),r.emphasis&&fr(r.emphasis,"label"))}function sie(r){if(tg(r)){Lw(r),cp(r),fr(r,"label"),fr(r,"upperLabel"),fr(r,"edgeLabel"),r.emphasis&&(fr(r.emphasis,"label"),fr(r.emphasis,"upperLabel"),fr(r.emphasis,"edgeLabel"));var e=r.markPoint;e&&(Lw(e),ba(e));var t=r.markLine;t&&(Lw(t),ba(t));var n=r.markArea;n&&ba(n);var a=r.data;if(r.type==="graph"){a=a||r.nodes;var i=r.links||r.edges;if(i&&!yn(i))for(var o=0;o<i.length;o++)ba(i[o]);P(r.categories,function(u){cp(u)})}if(a&&!yn(a))for(var o=0;o<a.length;o++)ba(a[o]);if(e=r.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)ba(s[o]);if(t=r.markLine,t&&t.data)for(var l=t.data,o=0;o<l.length;o++)ue(l[o])?(ba(l[o][0]),ba(l[o][1])):ba(l[o]);r.type==="gauge"?(fr(r,"axisLabel"),fr(r,"title"),fr(r,"detail")):r.type==="treemap"?(sn(r.breadcrumb,"itemStyle"),P(r.levels,function(u){cp(u)})):r.type==="tree"&&cp(r.leaves)}}function mo(r){return ue(r)?r:r?[r]:[]}function LP(r){return(ue(r)?r[0]:r)||{}}function lie(r,e){Ha(mo(r.series),function(n){tg(n)&&sie(n)});var t=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&t.push("valueAxis","categoryAxis","logAxis","timeAxis"),Ha(t,function(n){Ha(mo(r[n]),function(a){a&&(fr(a,"axisLabel"),fr(a.axisPointer,"label"))})}),Ha(mo(r.parallel),function(n){var a=n&&n.parallelAxisDefault;fr(a,"axisLabel"),fr(a&&a.axisPointer,"label")}),Ha(mo(r.calendar),function(n){sn(n,"itemStyle"),fr(n,"dayLabel"),fr(n,"monthLabel"),fr(n,"yearLabel")}),Ha(mo(r.radar),function(n){fr(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)}),Ha(mo(r.geo),function(n){tg(n)&&(ba(n),Ha(mo(n.regions),function(a){ba(a)}))}),Ha(mo(r.timeline),function(n){ba(n),sn(n,"label"),sn(n,"itemStyle"),sn(n,"controlStyle",!0);var a=n.data;ue(a)&&P(a,function(i){Re(i)&&(sn(i,"label"),sn(i,"itemStyle"))})}),Ha(mo(r.toolbox),function(n){sn(n,"iconStyle"),Ha(n.feature,function(a){sn(a,"iconStyle")})}),fr(LP(r.axisPointer),"label"),fr(LP(r.tooltip).axisPointer,"label")}function uie(r,e){for(var t=e.split(","),n=r,a=0;a<t.length&&(n=n&&n[t[a]],n!=null);a++);return n}function cie(r,e,t,n){for(var a=e.split(","),i=r,o,s=0;s<a.length-1;s++)o=a[s],i[o]==null&&(i[o]={}),i=i[o];i[a[s]]==null&&(i[a[s]]=t)}function NP(r){r&&P(fie,function(e){e[0]in r&&!(e[1]in r)&&(r[e[1]]=r[e[0]])})}var fie=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],hie=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Nw=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Cv(r){var e=r&&r.itemStyle;if(e)for(var t=0;t<Nw.length;t++){var n=Nw[t][1],a=Nw[t][0];e[n]!=null&&(e[a]=e[n])}}function RP(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function EP(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function die(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function HH(r,e){if(r)for(var t=0;t<r.length;t++)e(r[t]),r[t]&&HH(r[t].children,e)}function FH(r,e){lie(r,e),r.series=Dt(r.series),P(r.series,function(t){if(Re(t)){var n=t.type;if(n==="line")t.clipOverflow!=null&&(t.clip=t.clipOverflow);else if(n==="pie"||n==="gauge"){t.clockWise!=null&&(t.clockwise=t.clockWise),RP(t.label);var a=t.data;if(a&&!yn(a))for(var i=0;i<a.length;i++)RP(a[i]);t.hoverOffset!=null&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if(n==="gauge"){var o=uie(t,"pointer.color");o!=null&&cie(t,"itemStyle.color",o)}else if(n==="bar"){Cv(t),Cv(t.backgroundStyle),Cv(t.emphasis);var a=t.data;if(a&&!yn(a))for(var i=0;i<a.length;i++)typeof a[i]=="object"&&(Cv(a[i]),Cv(a[i]&&a[i].emphasis))}else if(n==="sunburst"){var s=t.highlightPolicy;s&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=s)),EP(t),HH(t.data,EP)}else n==="graph"||n==="sankey"?die(t):n==="map"&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&Ne(t,t.mapLocation));t.hoverAnimation!=null&&(t.emphasis=t.emphasis||{},t.emphasis&&t.emphasis.scale==null&&(t.emphasis.scale=t.hoverAnimation)),NP(t)}}),r.dataRange&&(r.visualMap=r.dataRange),P(hie,function(t){var n=r[t];n&&(ue(n)||(n=[n]),P(n,function(a){NP(a)}))})}function vie(r){var e=Te();r.eachSeries(function(t){var n=t.get("stack");if(n){var a=e.get(n)||e.set(n,[]),i=t.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:t};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;a.push(o)}}),e.each(function(t){if(t.length!==0){var n=t[0].seriesModel,a=n.get("stackOrder")||"seriesAsc";a==="seriesDesc"&&t.reverse(),P(t,function(i,o){i.data.setCalculationInfo("stackedOnSeries",o>0?t[o-1].seriesModel:null)}),pie(t)}})}function pie(r){P(r,function(e,t){var n=[],a=[NaN,NaN],i=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,c,f){var d=o.get(e.stackedDimension,f);if(isNaN(d))return a;var v,g;s?g=o.getRawIndex(f):v=o.get(e.stackedByDimension,f);for(var x=NaN,y=t-1;y>=0;y--){var b=r[y];if(s||(g=b.data.rawIndexOf(b.stackedByDimension,v)),g>=0){var S=b.data.getByRawIndex(b.stackResultDimension,g);if(l==="all"||l==="positive"&&S>0||l==="negative"&&S<0||l==="samesign"&&d>=0&&S>0||l==="samesign"&&d<=0&&S<0){d=Jte(d,S),x=S;break}}}return n[0]=d,n[1]=x,n})})}var tb=(function(){function r(e){this.data=e.data||(e.sourceFormat===oi?{}:[]),this.sourceFormat=e.sourceFormat||OH,this.seriesLayoutBy=e.seriesLayoutBy||ei,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var a=t[n];a.type==null&&BH(this,n)===Wr.Must&&(a.type="ordinal")}}return r})();function AD(r){return r instanceof tb}function kC(r,e,t){t=t||UH(r);var n=e.seriesLayoutBy,a=mie(r,t,n,e.sourceHeader,e.dimensions),i=new tb({data:r,sourceFormat:t,seriesLayoutBy:n,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:Me(e)});return i}function MD(r){return new tb({data:r,sourceFormat:yn(r)?hl:aa})}function gie(r){return new tb({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:Me(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function UH(r){var e=OH;if(yn(r))e=hl;else if(ue(r)){r.length===0&&(e=Gr);for(var t=0,n=r.length;t<n;t++){var a=r[t];if(a!=null){if(ue(a)||yn(a)){e=Gr;break}else if(Re(a)){e=ia;break}}}}else if(Re(r)){for(var i in r)if(Se(r,i)&&$r(r[i])){e=oi;break}}return e}function mie(r,e,t,n,a){var i,o;if(!r)return{dimensionsDefine:IP(a),startIndex:o,dimensionsDetectedCount:i};if(e===Gr){var s=r;n==="auto"||n==null?kP(function(u){u!=null&&u!=="-"&&(ye(u)?o==null&&(o=1):o=0)},t,s,10):o=it(n)?n:n?1:0,!a&&o===1&&(a=[],kP(function(u,c){a[c]=u!=null?u+"":""},t,s,1/0)),i=a?a.length:t===wc?s.length:s[0]?s[0].length:null}else if(e===ia)a||(a=yie(r));else if(e===oi)a||(a=[],P(r,function(u,c){a.push(c)}));else if(e===aa){var l=Xh(r[0]);i=ue(l)&&l.length||1}return{startIndex:o,dimensionsDefine:IP(a),dimensionsDetectedCount:i}}function yie(r){for(var e=0,t;e<r.length&&!(t=r[e++]););if(t)return nt(t)}function IP(r){if(r){var e=Te();return ce(r,function(t,n){t=Re(t)?t:{name:t};var a={name:t.name,displayName:t.displayName,type:t.type};if(a.name==null)return a;a.name+="",a.displayName==null&&(a.displayName=a.name);var i=e.get(a.name);return i?a.name+="-"+i.count++:e.set(a.name,{count:1}),a})}}function kP(r,e,t,n){if(e===wc)for(var a=0;a<t.length&&a<n;a++)r(t[a]?t[a][0]:null,a);else for(var i=t[0]||[],a=0;a<i.length&&a<n;a++)r(i[a],a)}function YH(r){var e=r.sourceFormat;return e===ia||e===oi}var du,vu,pu,gu,OP,PP,WH=(function(){function r(e,t){var n=AD(e)?e:MD(e);this._source=n;var a=this._data=n.data,i=n.sourceFormat;n.seriesLayoutBy,i===hl&&(this._offset=0,this._dimSize=t,this._data=a),PP(this,a,n)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(e,t){},r.prototype.appendData=function(e){},r.prototype.clean=function(){},r.protoInitialize=(function(){var e=r.prototype;e.pure=!1,e.persistent=!0})(),r.internalField=(function(){var e;PP=function(o,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,f=l.startIndex,d=l.dimensionsDefine,v=OP[DD(u,c)];if(ie(o,v),u===hl)o.getItem=t,o.count=a,o.fillStorage=n;else{var g=XH(u,c);o.getItem=xe(g,null,s,f,d);var x=qH(u,c);o.count=xe(x,null,s,f,d)}};var t=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,c=u*o,f=0;f<u;f++)s[f]=l[c+f];return s},n=function(o,s,l,u){for(var c=this._data,f=this._dimSize,d=0;d<f;d++){for(var v=u[d],g=v[0]==null?1/0:v[0],x=v[1]==null?-1/0:v[1],y=s-o,b=l[d],S=0;S<y;S++){var T=c[S*f+d];b[o+S]=T,T<g&&(g=T),T>x&&(x=T)}v[0]=g,v[1]=x}},a=function(){return this._data?this._data.length/this._dimSize:0};OP=(e={},e[Gr+"_"+ei]={pure:!0,appendData:i},e[Gr+"_"+wc]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[ia]={pure:!0,appendData:i},e[oi]={pure:!0,appendData:function(o){var s=this._data;P(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},e[aa]={appendData:i},e[hl]={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])}})(),r})(),By=function(r){ue(r)||y6("series.data or dataset.source must be an array.")};du={},du[Gr+"_"+ei]=By,du[Gr+"_"+wc]=By,du[ia]=By,du[oi]=function(r,e){for(var t=0;t<e.length;t++){var n=e[t].name;n==null&&y6("dimension name must not be null/undefined.")}},du[aa]=By;var zP=function(r,e,t,n){return r[n]},xie=(vu={},vu[Gr+"_"+ei]=function(r,e,t,n){return r[n+e]},vu[Gr+"_"+wc]=function(r,e,t,n,a){n+=e;for(var i=a||[],o=r,s=0;s<o.length;s++){var l=o[s];i[s]=l?l[n]:null}return i},vu[ia]=zP,vu[oi]=function(r,e,t,n,a){for(var i=a||[],o=0;o<t.length;o++){var s=t[o].name,l=s!=null?r[s]:null;i[o]=l?l[n]:null}return i},vu[aa]=zP,vu);function XH(r,e){var t=xie[DD(r,e)];return t}var BP=function(r,e,t){return r.length},bie=(pu={},pu[Gr+"_"+ei]=function(r,e,t){return Math.max(0,r.length-e)},pu[Gr+"_"+wc]=function(r,e,t){var n=r[0];return n?Math.max(0,n.length-e):0},pu[ia]=BP,pu[oi]=function(r,e,t){var n=t[0].name,a=n!=null?r[n]:null;return a?a.length:0},pu[aa]=BP,pu);function qH(r,e){var t=bie[DD(r,e)];return t}var Rw=function(r,e,t){return r[e]},_ie=(gu={},gu[Gr]=Rw,gu[ia]=function(r,e,t){return r[t]},gu[oi]=Rw,gu[aa]=function(r,e,t){var n=Xh(r);return n instanceof Array?n[e]:n},gu[hl]=Rw,gu);function ZH(r){var e=_ie[r];return e}function DD(r,e){return r===Gr?r+"_"+e:r}function Eh(r,e,t){if(r){var n=r.getRawDataItem(e);if(n!=null){var a=r.getStore(),i=a.getSource().sourceFormat;if(t!=null){var o=r.getDimensionIndex(t),s=a.getDimensionProperty(o);return ZH(i)(n,o,s)}else{var l=n;return i===aa&&(l=Xh(n)),l}}}}var Sie=/\{@(.+?)\}/g,rb=(function(){function r(){}return r.prototype.getDataParams=function(e,t){var n=this.getData(t),a=this.getRawValue(e,t),i=n.getRawIndex(e),o=n.getName(e),s=n.getRawDataItem(e),l=n.getItemVisual(e,"style"),u=l&&l[n.getItemVisual(e,"drawType")||"fill"],c=l&&l.stroke,f=this.mainType,d=f==="series",v=n.userOutput&&n.userOutput.get();return{componentType:f,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:o,dataIndex:i,data:s,dataType:t,value:a,color:u,borderColor:c,dimensionNames:v?v.fullDimensions:null,encode:v?v.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(e,t,n,a,i,o){t=t||"normal";var s=this.getData(n),l=this.getDataParams(e,n);if(o&&(l.value=o.interpolatedValue),a!=null&&ue(l.value)&&(l.value=l.value[a]),!i){var u=s.getItemModel(e);i=u.get(t==="normal"?["label","formatter"]:[t,"label","formatter"])}if(Ae(i))return l.status=t,l.dimensionIndex=a,i(l);if(ye(i)){var c=bD(i,l);return c.replace(Sie,function(f,d){var v=d.length,g=d;g.charAt(0)==="["&&g.charAt(v-1)==="]"&&(g=+g.slice(1,v-1));var x=Eh(s,e,g);if(o&&ue(o.interpolatedValue)){var y=s.getDimensionIndex(g);y>=0&&(x=o.interpolatedValue[y])}return x!=null?x+"":""})}},r.prototype.getRawValue=function(e,t){return Eh(this.getData(t),e)},r.prototype.formatTooltip=function(e,t,n){},r})();function jP(r){var e,t;return Re(r)?r.type&&(t=r):e=r,{text:e,frag:t}}function Np(r){return new wie(r)}var wie=(function(){function r(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return r.prototype.perform=function(e){var t=this._upstream,n=e&&e.skip;if(this._dirty&&t){var a=this.context;a.data=a.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(i="reset");function c(S){return!(S>=1)&&(S=1),S}var f;(this._dirty||i==="reset")&&(this._dirty=!1,f=this._doReset(n)),this._modBy=l,this._modDataCount=u;var d=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,g=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!n&&(f||v<g)){var x=this._progress;if(ue(x))for(var y=0;y<x.length;y++)this._doProgress(x[y],v,g,l,u);else this._doProgress(x,v,g,l,u)}this._dueIndex=g;var b=this._settedOutputEnd!=null?this._settedOutputEnd:g;this._outputDueEnd=b}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},r.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},r.prototype._doProgress=function(e,t,n,a,i){VP.reset(t,n,a,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:VP.next},this.context)},r.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var t,n;!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(n=t.forceFirstProgress,t=t.progress),ue(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var a=this._downstream;return a&&a.dirty(),n},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},r.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},r.prototype.getUpstream=function(){return this._upstream},r.prototype.getDownstream=function(){return this._downstream},r.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},r})(),VP=(function(){var r,e,t,n,a,i={reset:function(l,u,c,f){e=l,r=u,t=c,n=f,a=Math.ceil(n/t),i.next=t>1&&n>0?s:o}};return i;function o(){return e<r?e++:null}function s(){var l=e%a*t+Math.ceil(e/a),u=e>=r?null:l<n?l:e;return e++,u}})();function dl(r,e){var t=e&&e.type;return t==="ordinal"?r:(t==="time"&&!it(r)&&r!=null&&r!=="-"&&(r=+$i(r)),r==null||r===""?NaN:Number(r))}var Tie=Te({number:function(r){return parseFloat(r)},time:function(r){return+$i(r)},trim:function(r){return ye(r)?Qn(r):r}});function $H(r){return Tie.get(r)}var KH={lt:function(r,e){return r<e},lte:function(r,e){return r<=e},gt:function(r,e){return r>e},gte:function(r,e){return r>=e}},Cie=(function(){function r(e,t){if(!it(t)){var n="";pt(n)}this._opFn=KH[e],this._rvalFloat=Ui(t)}return r.prototype.evaluate=function(e){return it(e)?this._opFn(e,this._rvalFloat):this._opFn(Ui(e),this._rvalFloat)},r})(),QH=(function(){function r(e,t){var n=e==="desc";this._resultLT=n?1:-1,t==null&&(t=n?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return r.prototype.evaluate=function(e,t){var n=it(e)?e:Ui(e),a=it(t)?t:Ui(t),i=isNaN(n),o=isNaN(a);if(i&&(n=this._incomparable),o&&(a=this._incomparable),i&&o){var s=ye(e),l=ye(t);s&&(n=l?e:0),l&&(a=s?t:0)}return n<a?this._resultLT:n>a?-this._resultLT:0},r})(),Aie=(function(){function r(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=Ui(t)}return r.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(t=Ui(e)===this._rvalFloat)}return this._isEQ?t:!t},r})();function Mie(r,e){return r==="eq"||r==="ne"?new Aie(r==="eq",e):Se(KH,r)?new Cie(r,e):null}var Die=(function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(e){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(e){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(e,t){},r.prototype.retrieveValueFromItem=function(e,t){},r.prototype.convertValue=function(e,t){return dl(e,t)},r})();function Lie(r,e){var t=new Die,n=r.data,a=t.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==ei&&pt(o);var s=[],l={},u=r.dimensionsDefine;if(u)P(u,function(x,y){var b=x.name,S={index:y,name:b,displayName:x.displayName};if(s.push(S),b!=null){var T="";Se(l,b)&&pt(T),l[b]=S}});else for(var c=0;c<r.dimensionsDetectedCount;c++)s.push({index:c});var f=XH(a,ei);e.__isBuiltIn&&(t.getRawDataItem=function(x){return f(n,i,s,x)},t.getRawData=xe(Nie,null,r)),t.cloneRawData=xe(Rie,null,r);var d=qH(a,ei);t.count=xe(d,null,n,i,s);var v=ZH(a);t.retrieveValue=function(x,y){var b=f(n,i,s,x);return g(b,y)};var g=t.retrieveValueFromItem=function(x,y){if(x!=null){var b=s[y];if(b)return v(x,y,b.name)}};return t.getDimensionInfo=xe(Eie,null,s,l),t.cloneAllDimensionInfo=xe(Iie,null,s),t}function Nie(r){var e=r.sourceFormat;if(!LD(e)){var t="";pt(t)}return r.data}function Rie(r){var e=r.sourceFormat,t=r.data;if(!LD(e)){var n="";pt(n)}if(e===Gr){for(var a=[],i=0,o=t.length;i<o;i++)a.push(t[i].slice());return a}else if(e===ia){for(var a=[],i=0,o=t.length;i<o;i++)a.push(ie({},t[i]));return a}}function Eie(r,e,t){if(t!=null){if(it(t)||!isNaN(t)&&!Se(e,t))return r[t];if(Se(e,t))return e[t]}}function Iie(r){return Me(r)}var JH=Te();function kie(r){r=Me(r);var e=r.type,t="";e||pt(t);var n=e.split(":");n.length!==2&&pt(t);var a=!1;n[0]==="echarts"&&(e=n[1],a=!0),r.__isBuiltIn=a,JH.set(e,r)}function Oie(r,e,t){var n=Dt(r),a=n.length,i="";a||pt(i);for(var o=0,s=a;o<s;o++){var l=n[o];e=Pie(l,e),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function Pie(r,e,t,n){var a="";e.length||pt(a),Re(r)||pt(a);var i=r.type,o=JH.get(i);o||pt(a);var s=ce(e,function(u){return Lie(u,o)}),l=Dt(o.transform({upstream:s[0],upstreamList:s,config:Me(r.config)}));return ce(l,function(u,c){var f="";Re(u)||pt(f),u.data||pt(f);var d=UH(u.data);LD(d)||pt(f);var v,g=e[0];if(g&&c===0&&!u.dimensions){var x=g.startIndex;x&&(u.data=g.data.slice(0,x).concat(u.data)),v={seriesLayoutBy:ei,sourceHeader:x,dimensions:g.metaRawOption.dimensions}}else v={seriesLayoutBy:ei,sourceHeader:0,dimensions:u.dimensions};return kC(u.data,v,null)})}function LD(r){return r===Gr||r===ia}var nb="undefined",zie=typeof Uint32Array===nb?Array:Uint32Array,Bie=typeof Uint16Array===nb?Array:Uint16Array,e8=typeof Int32Array===nb?Array:Int32Array,GP=typeof Float64Array===nb?Array:Float64Array,t8={float:GP,int:e8,ordinal:Array,number:Array,time:GP},Ew;function Tf(r){return r>65535?zie:Bie}function Cf(){return[1/0,-1/0]}function jie(r){var e=r.constructor;return e===Array?r.slice():new e(r)}function HP(r,e,t,n,a){var i=t8[t||"float"];if(a){var o=r[e],s=o&&o.length;if(s!==n){for(var l=new i(n),u=0;u<s;u++)l[u]=o[u];r[e]=l}}else r[e]=new i(n)}var OC=(function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Te()}return r.prototype.initData=function(e,t,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=e.getSource(),i=this.defaultDimValueGetter=Ew[a.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],YH(a),this._dimensions=ce(t,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,e.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,a=this._dimensions,i=n.get(e);if(i!=null){if(a[i].type===t)return i}else i=a.length;return a[i]={type:t},n.set(e,i),this._chunks[i]=new t8[t||"float"](this._rawCount),this._rawExtent[i]=Cf(),i},r.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],a=this._dimensions[e],i=this._rawExtent,o=a.ordinalOffset||0,s=n.length;o===0&&(i[e]=Cf());for(var l=i[e],u=o;u<s;u++){var c=n[u]=t.parseAndCollect(n[u]);isNaN(c)||(l[0]=Math.min(c,l[0]),l[1]=Math.max(c,l[1]))}a.ordinalMeta=t,a.ordinalOffset=s,a.type="ordinal"},r.prototype.getOrdinalMeta=function(e){var t=this._dimensions[e],n=t.ordinalMeta;return n},r.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},r.prototype.appendData=function(e){var t=this._provider,n=this.count();t.appendData(e);var a=t.count();return t.persistent||(a+=n),n<a&&this._initDataFromProvider(n,a,!0),[n,a]},r.prototype.appendValues=function(e,t){for(var n=this._chunks,a=this._dimensions,i=a.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,t||0),u=0;u<i;u++){var c=a[u];HP(n,u,c.type,l,!0)}for(var f=[],d=s;d<l;d++)for(var v=d-s,g=0;g<i;g++){var c=a[g],x=Ew.arrayRows.call(this,e[v]||f,c.property,v,g);n[g][d]=x;var y=o[g];x<y[0]&&(y[0]=x),x>y[1]&&(y[1]=x)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(e,t,n){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=ce(o,function(S){return S.property}),c=0;c<s;c++){var f=o[c];l[c]||(l[c]=Cf()),HP(i,c,f.type,t,n)}if(a.fillStorage)a.fillStorage(e,t,i,l);else for(var d=[],v=e;v<t;v++){d=a.getItem(v,d);for(var g=0;g<s;g++){var x=i[g],y=this._dimValueGetter(d,u[g],v,g);x[v]=y;var b=l[g];y<b[0]&&(b[0]=y),y>b[1]&&(b[1]=y)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=t,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},r.prototype.getValues=function(e,t){var n=[],a=[];if(t==null){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)a.push(i)}else a=e;for(var i=0,o=a.length;i<o;i++)n.push(this.get(a[i],t));return n},r.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},r.prototype.getSum=function(e){var t=this._chunks[e],n=0;if(t)for(var a=0,i=this.count();a<i;a++){var o=this.get(e,a);isNaN(o)||(n+=o)}return n},r.prototype.getMedian=function(e){var t=[];this.each([e],function(i){isNaN(i)||t.push(i)});var n=t.sort(function(i,o){return i-o}),a=this.count();return a===0?0:a%2===1?n[(a-1)/2]:(n[a/2]+n[a/2-1])/2},r.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(n!=null&&n<this._count&&n===e)return e;for(var a=0,i=this._count-1;a<=i;){var o=(a+i)/2|0;if(t[o]<e)a=o+1;else if(t[o]>e)i=o-1;else return o}return-1},r.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,a=this._count;if(n===Array){e=new n(a);for(var i=0;i<a;i++)e[i]=t[i]}else e=new n(t.buffer,0,a)}else{var n=Tf(this._rawCount);e=new n(this.count());for(var i=0;i<e.length;i++)e[i]=i}return e},r.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),a=n.count(),i=Tf(n._rawCount),o=new i(a),s=[],l=e.length,u=0,c=e[0],f=n._chunks,d=0;d<a;d++){var v=void 0,g=n.getRawIndex(d);if(l===0)v=t(d);else if(l===1){var x=f[c][g];v=t(x,d)}else{for(var y=0;y<l;y++)s[y]=f[e[y]][g];s[y]=d,v=t.apply(null,s)}v&&(o[u++]=g)}return u<a&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},r.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var a=nt(e),i=a.length;if(!i)return this;var o=t.count(),s=Tf(t._rawCount),l=new s(o),u=0,c=a[0],f=e[c][0],d=e[c][1],v=t._chunks,g=!1;if(!t._indices){var x=0;if(i===1){for(var y=v[a[0]],b=0;b<n;b++){var S=y[b];(S>=f&&S<=d||isNaN(S))&&(l[u++]=x),x++}g=!0}else if(i===2){for(var y=v[a[0]],T=v[a[1]],C=e[a[1]][0],M=e[a[1]][1],b=0;b<n;b++){var S=y[b],D=T[b];(S>=f&&S<=d||isNaN(S))&&(D>=C&&D<=M||isNaN(D))&&(l[u++]=x),x++}g=!0}}if(!g)if(i===1)for(var b=0;b<o;b++){var L=t.getRawIndex(b),S=v[a[0]][L];(S>=f&&S<=d||isNaN(S))&&(l[u++]=L)}else for(var b=0;b<o;b++){for(var E=!0,L=t.getRawIndex(b),R=0;R<i;R++){var I=a[R],S=v[I][L];(S<e[I][0]||S>e[I][1])&&(E=!1)}E&&(l[u++]=t.getRawIndex(b))}return u<o&&(t._indices=l),t._count=u,t._extent=[],t._updateGetRawIdx(),t},r.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},r.prototype.modify=function(e,t){this._updateDims(this,e,t)},r.prototype._updateDims=function(e,t,n){for(var a=e._chunks,i=[],o=t.length,s=e.count(),l=[],u=e._rawExtent,c=0;c<t.length;c++)u[t[c]]=Cf();for(var f=0;f<s;f++){for(var d=e.getRawIndex(f),v=0;v<o;v++)l[v]=a[t[v]][d];l[o]=f;var g=n&&n.apply(null,l);if(g!=null){typeof g!="object"&&(i[0]=g,g=i);for(var c=0;c<g.length;c++){var x=t[c],y=g[c],b=u[x],S=a[x];S&&(S[d]=y),y<b[0]&&(b[0]=y),y>b[1]&&(b[1]=y)}}}},r.prototype.lttbDownSample=function(e,t){var n=this.clone([e],!0),a=n._chunks,i=a[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),c,f,d,v=new(Tf(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var g=1;g<o-1;g+=l){for(var x=Math.min(g+l,o-1),y=Math.min(g+l*2,o),b=(y+x)/2,S=0,T=x;T<y;T++){var C=this.getRawIndex(T),M=i[C];isNaN(M)||(S+=M)}S/=y-x;var D=g,L=Math.min(g+l,o),E=g-1,R=i[u];c=-1,d=D;for(var I=-1,k=0,T=D;T<L;T++){var C=this.getRawIndex(T),M=i[C];if(isNaN(M)){k++,I<0&&(I=C);continue}f=Math.abs((E-b)*(M-R)-(E-T)*(S-R)),f>c&&(c=f,d=C)}k>0&&k<L-D&&(v[s++]=Math.min(I,d),d=Math.max(I,d)),v[s++]=d,u=d}return v[s++]=this.getRawIndex(o-1),n._count=s,n._indices=v,n.getRawIndex=this._getRawIdx,n},r.prototype.minmaxDownSample=function(e,t){for(var n=this.clone([e],!0),a=n._chunks,i=Math.floor(1/t),o=a[e],s=this.count(),l=new(Tf(this._rawCount))(Math.ceil(s/i)*2),u=0,c=0;c<s;c+=i){var f=c,d=o[this.getRawIndex(f)],v=c,g=o[this.getRawIndex(v)],x=i;c+i>s&&(x=s-c);for(var y=0;y<x;y++){var b=this.getRawIndex(c+y),S=o[b];S<d&&(d=S,f=c+y),S>g&&(g=S,v=c+y)}var T=this.getRawIndex(f),C=this.getRawIndex(v);f<v?(l[u++]=T,l[u++]=C):(l[u++]=C,l[u++]=T)}return n._count=u,n._indices=l,n._updateGetRawIdx(),n},r.prototype.downSample=function(e,t,n,a){for(var i=this.clone([e],!0),o=i._chunks,s=[],l=Math.floor(1/t),u=o[e],c=this.count(),f=i._rawExtent[e]=Cf(),d=new(Tf(this._rawCount))(Math.ceil(c/l)),v=0,g=0;g<c;g+=l){l>c-g&&(l=c-g,s.length=l);for(var x=0;x<l;x++){var y=this.getRawIndex(g+x);s[x]=u[y]}var b=n(s),S=this.getRawIndex(Math.min(g+a(s,b)||0,c-1));u[S]=b,b<f[0]&&(f[0]=b),b>f[1]&&(f[1]=b),d[v++]=S}return i._count=v,i._indices=d,i._updateGetRawIdx(),i},r.prototype.each=function(e,t){if(this._count)for(var n=e.length,a=this._chunks,i=0,o=this.count();i<o;i++){var s=this.getRawIndex(i);switch(n){case 0:t(i);break;case 1:t(a[e[0]][s],i);break;case 2:t(a[e[0]][s],a[e[1]][s],i);break;default:for(var l=0,u=[];l<n;l++)u[l]=a[e[l]][s];u[l]=i,t.apply(null,u)}}},r.prototype.getDataExtent=function(e){var t=this._chunks[e],n=Cf();if(!t)return n;var a=this.count(),i=!this._indices,o;if(i)return this._rawExtent[e].slice();if(o=this._extent[e],o)return o.slice();o=n;for(var s=o[0],l=o[1],u=0;u<a;u++){var c=this.getRawIndex(u),f=t[c];f<s&&(s=f),f>l&&(l=f)}return o=[s,l],this._extent[e]=o,o},r.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],a=this._chunks,i=0;i<a.length;i++)n.push(a[i][t]);return n},r.prototype.clone=function(e,t){var n=new r,a=this._chunks,i=e&&Ra(e,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<a.length;o++)n._chunks[o]=i[o]?jie(a[o]):a[o];else n._chunks=a;return this._copyCommonProps(n),t||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},r.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=Me(this._extent),e._rawExtent=Me(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var a=0;a<n;a++)t[a]=this._indices[a]}else t=new e(this._indices);return t}return null},r.prototype._getRawIdxIdentity=function(e){return e},r.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=(function(){function e(t,n,a,i){return dl(t[i],this._dimensions[i])}Ew={arrayRows:e,objectRows:function(t,n,a,i){return dl(t[n],this._dimensions[i])},keyedColumns:e,original:function(t,n,a,i){var o=t&&(t.value==null?t:t.value);return dl(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(t,n,a,i){return t[i]}}})(),r})(),r8=(function(){function r(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),n=!!t.length,a,i;if(jy(e)){var o=e,s=void 0,l=void 0,u=void 0;if(n){var c=t[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,i=[c._getVersionSign()]}else s=o.get("data",!0),l=yn(s)?hl:aa,i=[];var f=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},v=Ce(f.seriesLayoutBy,d.seriesLayoutBy)||null,g=Ce(f.sourceHeader,d.sourceHeader),x=Ce(f.dimensions,d.dimensions),y=v!==d.seriesLayoutBy||!!g!=!!d.sourceHeader||x;a=y?[kC(s,{seriesLayoutBy:v,sourceHeader:g,dimensions:x},l)]:[]}else{var b=e;if(n){var S=this._applyTransform(t);a=S.sourceList,i=S.upstreamSignList}else{var T=b.get("source",!0);a=[kC(T,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},r.prototype._applyTransform=function(e){var t=this._sourceHost,n=t.get("transform",!0),a=t.get("fromTransformResult",!0);if(a!=null){var i="";e.length!==1&&UP(i)}var o,s=[],l=[];return P(e,function(u){u.prepareSource();var c=u.getSource(a||0),f="";a!=null&&!c&&UP(f),s.push(c),l.push(u._getVersionSign())}),n?o=Oie(n,s,{datasetIndex:t.componentIndex}):a!=null&&(o=[gie(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},r.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},r.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},r.prototype._innerGetDataStore=function(e,t,n){var a=0,i=this._storeList,o=i[a];o||(o=i[a]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];jy(this._sourceHost)&&l?s=l._innerGetDataStore(e,t,n):(s=new OC,s.initData(new WH(t,e.length),e)),o[n]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(jy(e)){var t=wD(e);return t?[t.getSourceManager()]:[]}else return ce(Yae(e),function(n){return n.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,n,a;if(jy(e))t=e.get("seriesLayoutBy",!0),n=e.get("sourceHeader",!0),a=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=e;t=i.get("seriesLayoutBy",!0),n=i.get("sourceHeader",!0),a=i.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:n,dimensions:a}},r})();function FP(r){var e=r.option.transform;e&&Hp(r.option.transform)}function jy(r){return r.mainType==="series"}function UP(r){throw new Error(r)}var Vie="line-height:1";function n8(r){var e=r.lineHeight;return e==null?Vie:"line-height:"+ln(e+"")+"px"}function a8(r,e){var t=r.color||ee.color.tertiary,n=r.fontSize||12,a=r.fontWeight||"400",i=r.color||ee.color.secondary,o=r.fontSize||14,s=r.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+ln(n+"")+"px;color:"+ln(t)+";font-weight:"+ln(a+""),valueStyle:"font-size:"+ln(o+"")+"px;color:"+ln(i)+";font-weight:"+ln(s+"")}:{nameStyle:{fontSize:n,fill:t,fontWeight:a},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var Gie=[0,10,20,30],Hie=["",`
|
|
254
|
+
`,`
|
|
255
|
+
|
|
256
|
+
`,`
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
`];function vr(r,e){return e.type=r,e}function PC(r){return r.type==="section"}function i8(r){return PC(r)?Fie:Uie}function o8(r){if(PC(r)){var e=0,t=r.blocks.length,n=t>1||t>0&&!r.noHeader;return P(r.blocks,function(a){var i=o8(a);i>=e&&(e=i+ +(n&&(!i||PC(a)&&!a.noHeader)))}),e}return 0}function Fie(r,e,t,n){var a=e.noHeader,i=Yie(o8(e)),o=[],s=e.blocks||[];Kr(!s||ue(s)),s=s||[];var l=r.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Se(u,l)){var c=new QH(u[l],null);s.sort(function(x,y){return c.evaluate(x.sortParam,y.sortParam)})}else l==="seriesDesc"&&s.reverse()}P(s,function(x,y){var b=e.valueFormatter,S=i8(x)(b?ie(ie({},r),{valueFormatter:b}):r,x,y>0?i.html:0,n);S!=null&&o.push(S)});var f=r.renderMode==="richText"?o.join(i.richText):zC(n,o.join(""),a?t:i.html);if(a)return f;var d=NC(e.header,"ordinal",r.useUTC),v=a8(n,r.renderMode).nameStyle,g=n8(n);return r.renderMode==="richText"?s8(r,d,v)+i.richText+f:zC(n,'<div style="'+v+";"+g+';">'+ln(d)+"</div>"+f,t)}function Uie(r,e,t,n){var a=r.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=r.useUTC,c=e.valueFormatter||r.valueFormatter||function(C){return C=ue(C)?C:[C],ce(C,function(M,D){return NC(M,ue(v)?v[D]:v,u)})};if(!(i&&o)){var f=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||ee.color.secondary,a),d=i?"":NC(l,"ordinal",u),v=e.valueType,g=o?[]:c(e.value,e.dataIndex),x=!s||!i,y=!s&&i,b=a8(n,a),S=b.nameStyle,T=b.valueStyle;return a==="richText"?(s?"":f)+(i?"":s8(r,d,S))+(o?"":qie(r,g,x,y,T)):zC(n,(s?"":f)+(i?"":Wie(d,!s,S))+(o?"":Xie(g,x,y,T)),t)}}function YP(r,e,t,n,a,i){if(r){var o=i8(r),s={useUTC:a,renderMode:t,orderMode:n,markupStyleCreator:e,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function Yie(r){return{html:Gie[r],richText:Hie[r]}}function zC(r,e,t){var n='<div style="clear:both"></div>',a="margin: "+t+"px 0 0",i=n8(r);return'<div style="'+a+";"+i+';">'+e+n+"</div>"}function Wie(r,e,t){var n=e?"margin-left:2px":"";return'<span style="'+t+";"+n+'">'+ln(r)+"</span>"}function Xie(r,e,t,n){var a=t?"10px":"20px",i=e?"float:right;margin-left:"+a:"";return r=ue(r)?r:[r],'<span style="'+i+";"+n+'">'+ce(r,function(o){return ln(o)}).join(" ")+"</span>"}function s8(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function qie(r,e,t,n,a){var i=[a],o=n?10:20;return t&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(ue(e)?e.join(" "):e,i)}function l8(r,e){var t=r.getData().getItemVisual(e,"style"),n=t[r.visualDrawType];return dc(n)}function u8(r,e){var t=r.get("padding");return t??(e==="richText"?[8,10]:10)}var Iw=(function(){function r(){this.richTextStyles={},this._nextStyleNameId=g6()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,n){var a=n==="richText"?this._generateStyleName():null,i=wH({color:t,type:e,renderMode:n,markerId:a});return ye(i)?i:(this.richTextStyles[a]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(e,t){var n={};ue(t)?P(t,function(i){return ie(n,i)}):ie(n,t);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+e+"}"},r})();function c8(r){var e=r.series,t=r.dataIndex,n=r.multipleSeries,a=e.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(t),l=ue(s),u=l8(e,t),c,f,d,v;if(o>1||l&&!o){var g=Zie(s,e,t,i,u);c=g.inlineValues,f=g.inlineValueTypes,d=g.blocks,v=g.inlineValues[0]}else if(o){var x=a.getDimensionInfo(i[0]);v=c=Eh(a,t,i[0]),f=x.type}else v=c=l?s[0]:s;var y=GM(e),b=y&&e.name||"",S=a.getName(t),T=n?b:S;return vr("section",{header:b,noHeader:n||!y,sortParam:v,blocks:[vr("nameValue",{markerType:"item",markerColor:u,name:T,noName:!Qn(T),value:c,valueType:f,dataIndex:t})].concat(d||[])})}function Zie(r,e,t,n,a){var i=e.getData(),o=Ra(r,function(f,d,v){var g=i.getDimensionInfo(v);return f=f||g&&g.tooltip!==!1&&g.displayName!=null},!1),s=[],l=[],u=[];n.length?P(n,function(f){c(Eh(i,t,f),f)}):P(r,c);function c(f,d){var v=i.getDimensionInfo(d);!v||v.otherDims.tooltip===!1||(o?u.push(vr("nameValue",{markerType:"subItem",markerColor:a,name:v.displayName,value:f,valueType:v.type})):(s.push(f),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Is=Ke();function Vy(r,e){return r.getName(e)||r.getId(e)}var $0="__universalTransitionEnabled",wt=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,n,a){this.seriesIndex=this.componentIndex,this.dataTask=Np({count:Kie,reset:Qie}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,a);var i=Is(this).sourceManager=new r8(this);i.prepareSource();var o=this.getInitialData(t,a);XP(o,this),this.dataTask.context.data=o,Is(this).dataBeforeProcessed=o,WP(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,n){var a=eg(this),i=a?Sc(t):{},o=this.subType;$e.hasClass(o)&&(o+="Series"),Fe(t,n.getTheme().get(this.subType)),Fe(t,this.getDefaultOption()),sc(t,"label",["show"]),this.fillDataTextStyle(t.data),a&&Wi(t,i,a)},e.prototype.mergeOption=function(t,n){t=Fe(this.option,t,!0),this.fillDataTextStyle(t.data);var a=eg(this);a&&Wi(this.option,t,a);var i=Is(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(t,n);XP(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Is(this).dataBeforeProcessed=o,WP(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!yn(t))for(var n=["show"],a=0;a<t.length;a++)t[a]&&t[a].label&&sc(t[a],"label",n)},e.prototype.getInitialData=function(t,n){},e.prototype.appendData=function(t){var n=this.getRawData();n.appendData(t.data)},e.prototype.getData=function(t){var n=BC(this);if(n){var a=n.context.data;return t==null||!a.getLinkedData?a:a.getLinkedData(t)}else return Is(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var n=BC(this);if(n){var a=n.context;a.outputData=t,n!==this.dataTask&&(a.data=t)}Is(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return Te(t)},e.prototype.getSourceManager=function(){return Is(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Is(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var t=this.get("colorBy");return t||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.indicesOfNearest=function(t,n,a,i){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(t);if(!s||!l)return[];var u=l.dataToCoord(a);i==null&&(i=1/0);var c=[],f=1/0,d=-1,v=0;return o.each(n,function(g,x){var y=l.dataToCoord(g),b=u-y,S=Math.abs(b);S<=i&&((S<f||S===f&&b>=0&&d<0)&&(f=S,d=b,v=0),b===d&&(c[v++]=x))}),c.length=v,c},e.prototype.formatTooltip=function(t,n,a){return c8({series:this,dataIndex:t,multipleSeries:n})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(rt.node&&!(t&&t.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(t,n,a){var i=this.ecModel,o=TD.prototype.getColorFromPalette.call(this,t,n,a);return o||(o=i.getColorFromPalette(t,n,a)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,n){this._innerSelect(this.getData(n),t)},e.prototype.unselect=function(t,n){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(n);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<t.length;s++){var l=t[s],u=Vy(o,l);a[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(t,n){for(var a=[],i=0;i<t.length;i++)a[0]=t[i],this.isSelected(t[i],n)?this.unselect(a,n):this.select(a,n)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,n=nt(t),a=[],i=0;i<n.length;i++){var o=t[n[i]];o>=0&&a.push(o)}return a},e.prototype.isSelected=function(t,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return(a==="all"||a[Vy(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[$0])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,n){var a,i,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){Re(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c<l;c++){var f=n[c],d=Vy(t,f);u[d]=!0,this._selectedDataIndicesMap[d]=t.getRawIndex(f)}}else if(s==="single"||s===!0){var v=n[l-1],d=Vy(t,v);o.selectedMap=(a={},a[d]=!0,a),this._selectedDataIndicesMap=(i={},i[d]=t.getRawIndex(v),i)}}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var n=[];t.hasItemOption&&t.each(function(a){var i=t.getRawDataItem(a);i&&i.selected&&n.push(a)}),n.length>0&&this._innerSelect(t,n)}},e.registerClass=function(t){return $e.registerClass(t)},e.protoInitialize=(function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"})(),e})($e);Qt(wt,rb);Qt(wt,TD);A6(wt,$e);function WP(r){var e=r.name;GM(r)||(r.name=$ie(r)||e)}function $ie(r){var e=r.getRawData(),t=e.mapDimensionsAll("seriesName"),n=[];return P(t,function(a){var i=e.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function Kie(r){return r.model.getRawData().count()}function Qie(r){var e=r.model;return e.setData(e.getRawData().cloneShallow()),Jie}function Jie(r,e){e.outputData&&r.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function XP(r,e){P(Ch(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(t){r.wrapMethod(t,Ve(eoe,e))})}function eoe(r,e){var t=BC(r);return t&&t.setOutputEnd((e||this).count()),e}function BC(r){var e=(r.ecModel||{}).scheduler,t=e&&e.getPipeline(r.uid);if(t){var n=t.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(r.uid))}return n}}var Lt=(function(){function r(){this.group=new De,this.uid=td("viewComponent")}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,n,a){},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,n,a){},r.prototype.updateLayout=function(e,t,n,a){},r.prototype.updateVisual=function(e,t,n,a){},r.prototype.toggleBlurSeries=function(e,t,n){},r.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},r})();FM(Lt);F1(Lt);function ad(){var r=Ke();return function(e){var t=r(e),n=e.pipelineContext,a=!!t.large,i=!!t.progressiveRender,o=t.large=!!(n&&n.large),s=t.progressiveRender=!!(n&&n.progressiveRender);return(a!==o||i!==s)&&"reset"}}var f8=Ke(),toe=ad(),_t=(function(){function r(){this.group=new De,this.uid=td("viewChart"),this.renderTask=Np({plan:roe,reset:noe}),this.renderTask.context={view:this}}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,n,a){},r.prototype.highlight=function(e,t,n,a){var i=e.getData(a&&a.dataType);i&&ZP(i,a,"emphasis")},r.prototype.downplay=function(e,t,n,a){var i=e.getData(a&&a.dataType);i&&ZP(i,a,"normal")},r.prototype.remove=function(e,t){this.group.removeAll()},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,n,a){this.render(e,t,n,a)},r.prototype.updateLayout=function(e,t,n,a){this.render(e,t,n,a)},r.prototype.updateVisual=function(e,t,n,a){this.render(e,t,n,a)},r.prototype.eachRendered=function(e){Ml(this.group,e)},r.markUpdateMethod=function(e,t){f8(e).updateMethod=t},r.protoInitialize=(function(){var e=r.prototype;e.type="chart"})(),r})();function qP(r,e,t){r&&Kp(r)&&(e==="emphasis"?Xo:qo)(r,t)}function ZP(r,e,t){var n=lc(r,e),a=e&&e.highlightKey!=null?Lne(e.highlightKey):null;n!=null?P(Dt(n),function(i){qP(r.getItemGraphicEl(i),t,a)}):r.eachItemGraphicEl(function(i){qP(i,t,a)})}FM(_t);F1(_t);function roe(r){return toe(r.model)}function noe(r){var e=r.model,t=r.ecModel,n=r.api,a=r.payload,i=e.pipelineContext.progressiveRender,o=r.view,s=a&&f8(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,n,a),aoe[l]}var aoe={incrementalPrepareRender:{progress:function(r,e){e.view.incrementalRender(r,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(r,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},Px="\0__throttleOriginMethod",$P="\0__throttleRate",KP="\0__throttleType";function ab(r,e,t){var n,a=0,i=0,o=null,s,l,u,c;e=e||0;function f(){i=new Date().getTime(),o=null,r.apply(l,u||[])}var d=function(){for(var v=[],g=0;g<arguments.length;g++)v[g]=arguments[g];n=new Date().getTime(),l=this,u=v;var x=c||e,y=c||t;c=null,s=n-(y?a:i)-x,clearTimeout(o),y?o=setTimeout(f,x):s>=0?f():o=setTimeout(f,-s),a=n};return d.clear=function(){o&&(clearTimeout(o),o=null)},d.debounceNextCall=function(v){c=v},d}function id(r,e,t,n){var a=r[e];if(a){var i=a[Px]||a,o=a[KP],s=a[$P];if(s!==t||o!==n){if(t==null||!n)return r[e]=i;a=r[e]=ab(i,t,n==="debounce"),a[Px]=i,a[KP]=n,a[$P]=t}return a}}function rg(r,e){var t=r[e];t&&t[Px]&&(t.clear&&t.clear(),r[e]=t[Px])}var QP=Ke(),JP={itemStyle:uc(vH,!0),lineStyle:uc(dH,!0)},ioe={lineStyle:"stroke",itemStyle:"fill"};function h8(r,e){var t=r.visualStyleMapper||JP[e];return t||(console.warn("Unknown style type '"+e+"'."),JP.itemStyle)}function d8(r,e){var t=r.visualDrawType||ioe[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var ooe={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=r.getModel(n),i=h8(r,n),o=i(a),s=a.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=d8(r,n),u=o[l],c=Ae(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var d=r.getColorFromPalette(r.name,null,e.getSeriesCount());o[l]||(o[l]=d,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Ae(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||Ae(o.stroke)?d:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(r)&&c)return t.setVisual("colorFromPalette",!1),{dataEach:function(v,g){var x=r.getDataParams(g),y=ie({},o);y[l]=c(x),v.setItemVisual(g,"style",y)}}}},Av=new Je,soe={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!(r.ignoreStyleOnData||e.isSeriesFiltered(r))){var t=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=h8(r,n),i=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Av.option=l[n];var u=a(Av),c=o.ensureUniqueItemVisual(s,"style");ie(c,u),Av.option.decal&&(o.setItemVisual(s,"decal",Av.option.decal),Av.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},loe={performRawSeries:!0,overallReset:function(r){var e=Te();r.eachSeries(function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var a=t.type+"-"+n,i=e.get(a);i||(i={},e.set(a,i)),QP(t).scope=i}}),r.eachSeries(function(t){if(!(t.isColorBySeries()||r.isSeriesFiltered(t))){var n=t.getRawData(),a={},i=t.getData(),o=QP(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=d8(t,s);i.each(function(u){var c=i.getRawIndex(u);a[c]=u}),n.each(function(u){var c=a[u],f=i.getItemVisual(c,"colorFromPalette");if(f){var d=i.ensureUniqueItemVisual(c,"style"),v=n.getName(u)||u+"",g=n.count();d[l]=t.getColorFromPalette(v,o,g)}})}})}},Gy=Math.PI;function uoe(r,e){e=e||{},Ne(e,{text:"loading",textColor:ee.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:ee.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var t=new De,n=new We({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(n);var a=new at({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 We({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(i);var o;return e.showSpinner&&(o=new zg({shape:{startAngle:-Gy/2,endAngle:-Gy/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:Gy*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Gy*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=a.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(r.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),c=r.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:c}),i.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},t.resize(),t}var v8=(function(){function r(e,t,n,a){this._stageTaskMap=Te(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return r.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},r.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),a=n.context,i=!t&&n.progressiveEnabled&&(!a||a.progressiveRender)&&e.__idxInPipeline>n.blockIndex,o=i?n.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},r.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),a=e.getData(),i=a.count(),o=n.progressiveEnabled&&t.incrementalPrepareRender&&i>=n.threshold,s=e.get("large")&&i>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?i:null;e.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=Te();e.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;n.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),t._pipe(a,a.dataTask)})},r.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;P(this._allHandlers,function(a){var i=e.get(a.uid)||e.set(a.uid,{}),o="";Kr(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,t,n),a.overallReset&&this._createOverallStageTask(a,i,t,n)},this)},r.prototype.prepareView=function(e,t,n,a){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=n,o.api=a,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},r.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},r.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},r.prototype._performStageTasks=function(e,t,n,a){a=a||{};var i=!1,o=this;P(e,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,d=c.overallTask;if(d){var v,g=d.agentStubMap;g.each(function(y){s(a,y)&&(y.dirty(),v=!0)}),v&&d.dirty(),o.updatePayload(d,n);var x=o.getPerformArgs(d,a.block);g.each(function(y){y.perform(x)}),d.perform(x)&&(i=!0)}else f&&f.each(function(y,b){s(a,y)&&y.dirty();var S=o.getPerformArgs(y,a.block);S.skip=!l.performRawSeries&&t.isSeriesFiltered(y.context.model),o.updatePayload(y,n),y.perform(S)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(n){t=n.dataTask.perform()||t}),this.unfinished=t||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},r.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},r.prototype._createSeriesStageTask=function(e,t,n,a){var i=this,o=t.seriesTaskMap,s=t.seriesTaskMap=Te(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,a).each(c);function c(f){var d=f.uid,v=s.set(d,o&&o.get(d)||Np({plan:voe,reset:poe,count:moe}));v.context={model:f,ecModel:n,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(f,v)}},r.prototype._createOverallStageTask=function(e,t,n,a){var i=this,o=t.overallTask=t.overallTask||Np({reset:coe});o.context={ecModel:n,api:a,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=Te(),u=e.seriesType,c=e.getTargetSeries,f=!0,d=!1,v="";Kr(!e.createOnAllSeries,v),u?n.eachRawSeriesByType(u,g):c?c(n,a).each(g):(f=!1,P(n.getSeries(),g));function g(x){var y=x.uid,b=l.set(y,s&&s.get(y)||(d=!0,Np({reset:foe,onDirty:doe})));b.context={model:x,overallProgress:f},b.agent=o,b.__block=f,i._pipe(x,b)}d&&o.dirty()},r.prototype._pipe=function(e,t){var n=e.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=t),a.tail&&a.tail.pipe(t),a.tail=t,t.__idxInPipeline=a.count++,t.__pipeline=a},r.wrapStageHandler=function(e,t){return Ae(e)&&(e={overallReset:e,seriesType:yoe(e)}),e.uid=td("stageHandler"),t&&(e.visualType=t),e},r})();function coe(r){r.overallReset(r.ecModel,r.api,r.payload)}function foe(r){return r.overallProgress&&hoe}function hoe(){this.agent.dirty(),this.getDownstream().dirty()}function doe(){this.agent&&this.agent.dirty()}function voe(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function poe(r){r.useClearVisual&&r.data.clearAllVisual();var e=r.resetDefines=Dt(r.reset(r.model,r.ecModel,r.api,r.payload));return e.length>1?ce(e,function(t,n){return p8(n)}):goe}var goe=p8(0);function p8(r){return function(e,t){var n=t.data,a=t.resetDefines[r];if(a&&a.dataEach)for(var i=e.start;i<e.end;i++)a.dataEach(n,i);else a&&a.progress&&a.progress(e,n)}}function moe(r){return r.data.count()}function yoe(r){zx=null;try{r(ng,g8)}catch{}return zx}var ng={},g8={},zx;m8(ng,CD);m8(g8,GH);ng.eachSeriesByType=ng.eachRawSeriesByType=function(r){zx=r};ng.eachComponent=function(r){r.mainType==="series"&&r.subType&&(zx=r.subType)};function m8(r,e){for(var t in e.prototype)r[t]=$t}var Ee=ee.darkColor,xoe=Ee.background,Mv=function(){return{axisLine:{lineStyle:{color:Ee.axisLine}},splitLine:{lineStyle:{color:Ee.axisSplitLine}},splitArea:{areaStyle:{color:[Ee.backgroundTint,Ee.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:Ee.axisMinorSplitLine}},axisLabel:{color:Ee.axisLabel},axisName:{}}},e5={label:{color:Ee.secondary},itemStyle:{borderColor:Ee.borderTint},dividerLineStyle:{color:Ee.border}},y8={darkMode:!0,color:Ee.theme,backgroundColor:xoe,axisPointer:{lineStyle:{color:Ee.border},crossStyle:{color:Ee.borderShade},label:{color:Ee.tertiary}},legend:{textStyle:{color:Ee.secondary},pageTextStyle:{color:Ee.tertiary}},textStyle:{color:Ee.secondary},title:{textStyle:{color:Ee.primary},subtextStyle:{color:Ee.quaternary}},toolbox:{iconStyle:{borderColor:Ee.accent50}},tooltip:{backgroundColor:Ee.neutral20,defaultBorderColor:Ee.border,textStyle:{color:Ee.tertiary}},dataZoom:{borderColor:Ee.accent10,textStyle:{color:Ee.tertiary},brushStyle:{color:Ee.backgroundTint},handleStyle:{color:Ee.neutral00,borderColor:Ee.accent20},moveHandleStyle:{color:Ee.accent40},emphasis:{handleStyle:{borderColor:Ee.accent50}},dataBackground:{lineStyle:{color:Ee.accent30},areaStyle:{color:Ee.accent20}},selectedDataBackground:{lineStyle:{color:Ee.accent50},areaStyle:{color:Ee.accent30}}},visualMap:{textStyle:{color:Ee.secondary},handleStyle:{borderColor:Ee.neutral30}},timeline:{lineStyle:{color:Ee.accent10},label:{color:Ee.tertiary},controlStyle:{color:Ee.accent30,borderColor:Ee.accent30}},calendar:{itemStyle:{color:Ee.neutral00,borderColor:Ee.neutral20},dayLabel:{color:Ee.tertiary},monthLabel:{color:Ee.secondary},yearLabel:{color:Ee.secondary}},matrix:{x:e5,y:e5,backgroundColor:{borderColor:Ee.axisLine},body:{itemStyle:{borderColor:Ee.borderTint}}},timeAxis:Mv(),logAxis:Mv(),valueAxis:Mv(),categoryAxis:Mv(),line:{symbol:"circle"},graph:{color:Ee.theme},gauge:{title:{color:Ee.secondary},axisLine:{lineStyle:{color:[[1,Ee.neutral05]]}},axisLabel:{color:Ee.axisLabel},detail:{color:Ee.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:Ee.background}},radar:(function(){var r=Mv();return r.axisName={color:Ee.axisLabel},r.axisLine.lineStyle.color=Ee.neutral20,r})(),treemap:{breadcrumb:{itemStyle:{color:Ee.neutral20,textStyle:{color:Ee.secondary}},emphasis:{itemStyle:{color:Ee.neutral30}}}},sunburst:{itemStyle:{borderColor:Ee.background}},map:{itemStyle:{borderColor:Ee.border,areaColor:Ee.neutral10},label:{color:Ee.tertiary},emphasis:{label:{color:Ee.primary},itemStyle:{areaColor:Ee.highlight}},select:{label:{color:Ee.primary},itemStyle:{areaColor:Ee.highlight}}},geo:{itemStyle:{borderColor:Ee.border,areaColor:Ee.neutral10},emphasis:{label:{color:Ee.primary},itemStyle:{areaColor:Ee.highlight}},select:{label:{color:Ee.primary},itemStyle:{color:Ee.highlight}}}};y8.categoryAxis.splitLine.show=!1;var boe=(function(){function r(){}return r.prototype.normalizeQuery=function(e){var t={},n={},a={};if(ye(e)){var i=ki(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};P(e,function(l,u){for(var c=!1,f=0;f<o.length;f++){var d=o[f],v=u.lastIndexOf(d);if(v>0&&v===u.length-d.length){var g=u.slice(0,v);g!=="data"&&(t.mainType=g,t[d.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(n[u]=l,c=!0),c||(a[u]=l)})}return{cptQuery:t,dataQuery:n,otherQuery:a}},r.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,i=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,i,"name")&&c(u,i,"dataIndex")&&c(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,a,i));function c(f,d,v,g){return f[v]==null||d[g||v]===f[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r})(),jC=["symbol","symbolSize","symbolRotate","symbolOffset"],t5=jC.concat(["symbolKeepAspect"]),_oe={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData();if(r.legendIcon&&t.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var n={},a={},i=!1,o=0;o<jC.length;o++){var s=jC[o],l=r.get(s);Ae(l)?(i=!0,a[s]=l):n[s]=l}if(n.symbol=n.symbol||r.defaultSymbol,t.setVisual(ie({legendIcon:r.legendIcon||n.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},n)),e.isSeriesFiltered(r))return;var u=nt(a);function c(f,d){for(var v=r.getRawValue(d),g=r.getDataParams(d),x=0;x<u.length;x++){var y=u[x];f.setItemVisual(d,y,a[y](v,g))}}return{dataEach:i?c:null}}},Soe={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!r.hasSymbolVisual||e.isSeriesFiltered(r))return;var t=r.getData();function n(a,i){for(var o=a.getItemModel(i),s=0;s<t5.length;s++){var l=t5[s],u=o.getShallow(l,!0);u!=null&&a.setItemVisual(i,l,u)}}return{dataEach:t.hasItemOption?n:null}}};function ND(r,e,t){switch(t){case"color":var n=r.getItemVisual(e,"style");return n[r.getVisual("drawType")];case"opacity":return r.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(e,t)}}function Hg(r,e){switch(e){case"color":var t=r.getVisual("style");return t[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(e)}}function x8(r,e,t,n){switch(t){case"color":var a=r.ensureUniqueItemVisual(e,"style");a[r.getVisual("drawType")]=n,r.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":r.ensureUniqueItemVisual(e,"style").opacity=n;break;case"symbol":case"symbolSize":case"liftZ":r.setItemVisual(e,t,n);break}}function b8(r,e){function t(n,a){var i=[];return n.eachComponent({mainType:"series",subType:r,query:a},function(o){i.push(o.seriesIndex)}),i}P([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(n){e(n[0],function(a,i,o){a=ie({},a),o.dispatchAction(ie(a,{type:n[1],seriesIndex:t(i,a)}))})})}function Af(r,e,t,n,a){var i=r+e;t.isSilent(i)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=a.selected,c=0;c<u.length;c++)if(u[c].seriesIndex===s){var f=o.getData(),d=lc(f,a.fromActionPayload);t.trigger(i,{type:i,seriesId:o.id,name:ue(d)?f.getName(d[0]):f.getName(d),selected:ye(l)?l:ie({},l)})}})}function woe(r,e,t){r.on("selectchanged",function(n){var a=t.getModel();n.isFromClick?(Af("map","selectchanged",e,a,n),Af("pie","selectchanged",e,a,n)):n.fromAction==="select"?(Af("map","selected",e,a,n),Af("pie","selected",e,a,n)):n.fromAction==="unselect"&&(Af("map","unselected",e,a,n),Af("pie","unselected",e,a,n))})}function Bu(r,e,t){for(var n;r&&!(e(r)&&(n=r,t));)r=r.__hostTarget||r.parent;return n}var Toe=Math.round(Math.random()*9),Coe=typeof Object.defineProperty=="function",Aoe=(function(){function r(){this._id="__ec_inner_"+Toe++}return r.prototype.get=function(e){return this._guard(e)[this._id]},r.prototype.set=function(e,t){var n=this._guard(e);return Coe?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[this._id]=t,this},r.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},r.prototype.has=function(e){return!!this._guard(e)[this._id]},r.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},r})(),Moe=et.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,n=e.cy,a=e.width/2,i=e.height/2;r.moveTo(t,n-i),r.lineTo(t+a,n+i),r.lineTo(t-a,n+i),r.closePath()}}),Doe=et.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,n=e.cy,a=e.width/2,i=e.height/2;r.moveTo(t,n-i),r.lineTo(t+a,n),r.lineTo(t,n+i),r.lineTo(t-a,n),r.closePath()}}),Loe=et.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.x,n=e.y,a=e.width/5*3,i=Math.max(a,e.height),o=a/2,s=o*o/(i-o),l=n-i+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,f=Math.sin(u),d=Math.cos(u),v=o*.6,g=o*.7;r.moveTo(t-c,l+s),r.arc(t,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(t+c-f*v,l+s+d*v,t,n-g,t,n),r.bezierCurveTo(t,n-g,t-c+f*v,l+s+d*v,t-c,l+s),r.closePath()}}),Noe=et.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.height,n=e.width,a=e.x,i=e.y,o=n/3*2;r.moveTo(a,i),r.lineTo(a+o,i+t),r.lineTo(a,i+t/4*3),r.lineTo(a-o,i+t),r.lineTo(a,i),r.closePath()}}),Roe={line:sr,rect:We,roundRect:We,square:We,circle:Ki,diamond:Doe,pin:Loe,arrow:Noe,triangle:Moe},Eoe={line:function(r,e,t,n,a){a.x1=r,a.y1=e+n/2,a.x2=r+t,a.y2=e+n/2},rect:function(r,e,t,n,a){a.x=r,a.y=e,a.width=t,a.height=n},roundRect:function(r,e,t,n,a){a.x=r,a.y=e,a.width=t,a.height=n,a.r=Math.min(t,n)/4},square:function(r,e,t,n,a){var i=Math.min(t,n);a.x=r,a.y=e,a.width=i,a.height=i},circle:function(r,e,t,n,a){a.cx=r+t/2,a.cy=e+n/2,a.r=Math.min(t,n)/2},diamond:function(r,e,t,n,a){a.cx=r+t/2,a.cy=e+n/2,a.width=t,a.height=n},pin:function(r,e,t,n,a){a.x=r+t/2,a.y=e+n/2,a.width=t,a.height=n},arrow:function(r,e,t,n,a){a.x=r+t/2,a.y=e+n/2,a.width=t,a.height=n},triangle:function(r,e,t,n,a){a.cx=r+t/2,a.cy=e+n/2,a.width=t,a.height=n}},Bx={};P(Roe,function(r,e){Bx[e]=new r});var Ioe=et.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,e,t){var n=Ax(r,e,t),a=this.shape;return a&&a.symbolType==="pin"&&e.position==="inside"&&(n.y=t.y+t.height*.4),n},buildPath:function(r,e,t){var n=e.symbolType;if(n!=="none"){var a=Bx[n];a||(n="rect",a=Bx[n]),Eoe[n](e.x,e.y,e.width,e.height,a.shape),a.buildPath(r,a.shape,t)}}});function koe(r,e){if(this.type!=="image"){var t=this.style;this.__isEmptyBrush?(t.stroke=r,t.fill=e||ee.color.neutral00,t.lineWidth=2):this.shape.symbolType==="line"?t.stroke=r:t.fill=r,this.markRedraw()}}function lr(r,e,t,n,a,i,o){var s=r.indexOf("empty")===0;s&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var l;return r.indexOf("image://")===0?l=tD(r.slice(8),new ke(e,t,n,a),o?"center":"cover"):r.indexOf("path://")===0?l=Nh(r.slice(7),{},new ke(e,t,n,a),o?"center":"cover"):l=new Ioe({shape:{symbolType:r,x:e,y:t,width:n,height:a}}),l.__isEmptyBrush=s,l.setColor=koe,i&&l.setColor(i),l}function od(r){return ue(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function Tc(r,e){if(r!=null)return ue(r)||(r=[r,r]),[me(r[0],e[0])||0,me(Ce(r[1],r[0]),e[1])||0]}function ju(r){return isFinite(r)}function Ooe(r,e,t){var n=e.x==null?0:e.x,a=e.x2==null?1:e.x2,i=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(n=n*t.width+t.x,a=a*t.width+t.x,i=i*t.height+t.y,o=o*t.height+t.y),n=ju(n)?n:0,a=ju(a)?a:1,i=ju(i)?i:0,o=ju(o)?o:0;var s=r.createLinearGradient(n,i,a,o);return s}function Poe(r,e,t){var n=t.width,a=t.height,i=Math.min(n,a),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+t.x,s=s*a+t.y,l=l*i),o=ju(o)?o:.5,s=ju(s)?s:.5,l=l>=0&&ju(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function VC(r,e,t){for(var n=e.type==="radial"?Poe(r,e,t):Ooe(r,e,t),a=e.colorStops,i=0;i<a.length;i++)n.addColorStop(a[i].offset,a[i].color);return n}function zoe(r,e){if(r===e||!r&&!e)return!1;if(!r||!e||r.length!==e.length)return!0;for(var t=0;t<r.length;t++)if(r[t]!==e[t])return!0;return!1}function Hy(r){return parseInt(r,10)}function Jf(r,e,t){var n=["width","height"][e],a=["clientWidth","clientHeight"][e],i=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(t[n]!=null&&t[n]!=="auto")return parseFloat(t[n]);var s=document.defaultView.getComputedStyle(r);return(r[a]||Hy(s[n])||Hy(r.style[n]))-(Hy(s[i])||0)-(Hy(s[o])||0)|0}function Boe(r,e){return!r||r==="solid"||!(e>0)?null:r==="dashed"?[4*e,2*e]:r==="dotted"?[e]:it(r)?[r]:ue(r)?r:null}function RD(r){var e=r.style,t=e.lineDash&&e.lineWidth>0&&Boe(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(t){var a=e.strokeNoScale&&r.getLineScale?r.getLineScale():1;a&&a!==1&&(t=ce(t,function(i){return i/a}),n/=a)}return[t,n]}var joe=new Yi(!0);function jx(r){var e=r.stroke;return!(e==null||e==="none"||!(r.lineWidth>0))}function r5(r){return typeof r=="string"&&r!=="none"}function Vx(r){var e=r.fill;return e!=null&&e!=="none"}function n5(r,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.fillOpacity*e.opacity,r.fill(),r.globalAlpha=t}else r.fill()}function a5(r,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.strokeOpacity*e.opacity,r.stroke(),r.globalAlpha=t}else r.stroke()}function GC(r,e,t){var n=UM(e.image,e.__image,t);if(U1(n)){var a=r.createPattern(n,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*xp),i.scaleSelf(e.scaleX||1,e.scaleY||1),a.setTransform(i)}return a}}function Voe(r,e,t,n){var a,i=jx(t),o=Vx(t),s=t.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var c=e.path||joe,f=e.__dirty;if(!n){var d=t.fill,v=t.stroke,g=o&&!!d.colorStops,x=i&&!!v.colorStops,y=o&&!!d.image,b=i&&!!v.image,S=void 0,T=void 0,C=void 0,M=void 0,D=void 0;(g||x)&&(D=e.getBoundingRect()),g&&(S=f?VC(r,d,D):e.__canvasFillGradient,e.__canvasFillGradient=S),x&&(T=f?VC(r,v,D):e.__canvasStrokeGradient,e.__canvasStrokeGradient=T),y&&(C=f||!e.__canvasFillPattern?GC(r,d,e):e.__canvasFillPattern,e.__canvasFillPattern=C),b&&(M=f||!e.__canvasStrokePattern?GC(r,v,e):e.__canvasStrokePattern,e.__canvasStrokePattern=M),g?r.fillStyle=S:y&&(C?r.fillStyle=C:o=!1),x?r.strokeStyle=T:b&&(M?r.strokeStyle=M:i=!1)}var L=e.getGlobalScale();c.setScale(L[0],L[1],e.segmentIgnoreThreshold);var E,R;r.setLineDash&&t.lineDash&&(a=RD(e),E=a[0],R=a[1]);var I=!0;(u||f&Uf)&&(c.setDPR(r.dpr),l?c.setContext(null):(c.setContext(r),I=!1),c.reset(),e.buildPath(c,e.shape,n),c.toStatic(),e.pathUpdated()),I&&c.rebuildPath(r,l?s:1),E&&(r.setLineDash(E),r.lineDashOffset=R),n||(t.strokeFirst?(i&&a5(r,t),o&&n5(r,t)):(o&&n5(r,t),i&&a5(r,t))),E&&r.setLineDash([])}function Goe(r,e,t){var n=e.__image=UM(t.image,e.__image,e,e.onload);if(!(!n||!U1(n))){var a=t.x||0,i=t.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),t.sWidth&&t.sHeight){var u=t.sx||0,c=t.sy||0;r.drawImage(n,u,c,t.sWidth,t.sHeight,a,i,o,s)}else if(t.sx&&t.sy){var u=t.sx,c=t.sy,f=o-u,d=s-c;r.drawImage(n,u,c,f,d,a,i,o,s)}else r.drawImage(n,a,i,o,s)}}function Hoe(r,e,t){var n,a=t.text;if(a!=null&&(a+=""),a){r.font=t.font||Yo,r.textAlign=t.textAlign,r.textBaseline=t.textBaseline;var i=void 0,o=void 0;r.setLineDash&&t.lineDash&&(n=RD(e),i=n[0],o=n[1]),i&&(r.setLineDash(i),r.lineDashOffset=o),t.strokeFirst?(jx(t)&&r.strokeText(a,t.x,t.y),Vx(t)&&r.fillText(a,t.x,t.y)):(Vx(t)&&r.fillText(a,t.x,t.y),jx(t)&&r.strokeText(a,t.x,t.y)),i&&r.setLineDash([])}}var i5=["shadowBlur","shadowOffsetX","shadowOffsetY"],o5=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function _8(r,e,t,n,a){var i=!1;if(!n&&(t=t||{},e===t))return!1;if(n||e.opacity!==t.opacity){Nn(r,a),i=!0;var o=Math.max(Math.min(e.opacity,1),0);r.globalAlpha=isNaN(o)?Qu.opacity:o}(n||e.blend!==t.blend)&&(i||(Nn(r,a),i=!0),r.globalCompositeOperation=e.blend||Qu.blend);for(var s=0;s<i5.length;s++){var l=i5[s];(n||e[l]!==t[l])&&(i||(Nn(r,a),i=!0),r[l]=r.dpr*(e[l]||0))}return(n||e.shadowColor!==t.shadowColor)&&(i||(Nn(r,a),i=!0),r.shadowColor=e.shadowColor||Qu.shadowColor),i}function s5(r,e,t,n,a){var i=ag(e,a.inHover),o=n?null:t&&ag(t,a.inHover)||{};if(i===o)return!1;var s=_8(r,i,o,n,a);if((n||i.fill!==o.fill)&&(s||(Nn(r,a),s=!0),r5(i.fill)&&(r.fillStyle=i.fill)),(n||i.stroke!==o.stroke)&&(s||(Nn(r,a),s=!0),r5(i.stroke)&&(r.strokeStyle=i.stroke)),(n||i.opacity!==o.opacity)&&(s||(Nn(r,a),s=!0),r.globalAlpha=i.opacity==null?1:i.opacity),e.hasStroke()){var l=i.lineWidth,u=l/(i.strokeNoScale&&e.getLineScale?e.getLineScale():1);r.lineWidth!==u&&(s||(Nn(r,a),s=!0),r.lineWidth=u)}for(var c=0;c<o5.length;c++){var f=o5[c],d=f[0];(n||i[d]!==o[d])&&(s||(Nn(r,a),s=!0),r[d]=i[d]||f[1])}return s}function Foe(r,e,t,n,a){return _8(r,ag(e,a.inHover),t&&ag(t,a.inHover),n,a)}function S8(r,e){var t=e.transform,n=r.dpr||1;t?r.setTransform(n*t[0],n*t[1],n*t[2],n*t[3],n*t[4],n*t[5]):r.setTransform(n,0,0,n,0,0)}function Uoe(r,e,t){for(var n=!1,a=0;a<r.length;a++){var i=r[a];n=n||i.isZeroArea(),S8(e,i),e.beginPath(),i.buildPath(e,i.shape),e.clip()}t.allClipped=n}function Yoe(r,e){return r&&e?r[0]!==e[0]||r[1]!==e[1]||r[2]!==e[2]||r[3]!==e[3]||r[4]!==e[4]||r[5]!==e[5]:!(!r&&!e)}var l5=1,u5=2,c5=3,f5=4;function Woe(r){var e=Vx(r),t=jx(r);return!(r.lineDash||!(+e^+t)||e&&typeof r.fill!="string"||t&&typeof r.stroke!="string"||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1)}function Nn(r,e){e.batchFill&&r.fill(),e.batchStroke&&r.stroke(),e.batchFill="",e.batchStroke=""}function ag(r,e){return e&&r.__hoverStyle||r.style}function ED(r,e){Vu(r,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Vu(r,e,t,n){var a=e.transform;if(!e.shouldBePainted(t.viewWidth,t.viewHeight,!1,!1)){e.__dirty&=~$n,e.__isRendered=!1;return}var i=e.__clipPaths,o=t.prevElClipPaths,s=!1,l=!1;if((!o||zoe(i,o))&&(o&&o.length&&(Nn(r,t),r.restore(),l=s=!0,t.prevElClipPaths=null,t.allClipped=!1,t.prevEl=null),i&&i.length&&(Nn(r,t),r.save(),Uoe(i,r,t),s=!0),t.prevElClipPaths=i),t.allClipped){e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=t.prevEl;u||(l=s=!0);var c=e instanceof et&&e.autoBatch&&Woe(e.style);s||Yoe(a,u.transform)?(Nn(r,t),S8(r,e)):c||Nn(r,t);var f=ag(e,t.inHover);e instanceof et?(t.lastDrawType!==l5&&(l=!0,t.lastDrawType=l5),s5(r,e,u,l,t),(!c||!t.batchFill&&!t.batchStroke)&&r.beginPath(),Voe(r,e,f,c),c&&(t.batchFill=f.fill||"",t.batchStroke=f.stroke||"")):e instanceof Lh?(t.lastDrawType!==c5&&(l=!0,t.lastDrawType=c5),s5(r,e,u,l,t),Hoe(r,e,f)):e instanceof Nr?(t.lastDrawType!==u5&&(l=!0,t.lastDrawType=u5),Foe(r,e,u,l,t),Goe(r,e,f)):e.getTemporalDisplayables&&(t.lastDrawType!==f5&&(l=!0,t.lastDrawType=f5),Xoe(r,e,t)),c&&n&&Nn(r,t),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),t.prevEl=e,e.__dirty=0,e.__isRendered=!0}function Xoe(r,e,t){var n=e.getDisplayables(),a=e.getTemporalDisplayables();r.save();var i={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:t.viewWidth,viewHeight:t.viewHeight,inHover:t.inHover},o,s;for(o=e.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Vu(r,l,i,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}for(var u=0,c=a.length;u<c;u++){var l=a[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Vu(r,l,i,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,r.restore()}var kw=new Aoe,h5=new Ah(100),d5=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Ih(r,e){if(r==="none")return null;var t=e.getDevicePixelRatio(),n=e.getZr(),a=n.painter.type==="svg";r.dirty&&kw.delete(r);var i=kw.get(r);if(i)return i;var o=Ne(r,{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=a?1:1/t,kw.set(r,s),r.dirty=!1,s;function l(u){for(var c=[t],f=!0,d=0;d<d5.length;++d){var v=o[d5[d]];if(v!=null&&!ue(v)&&!ye(v)&&!it(v)&&typeof v!="boolean"){f=!1;break}c.push(v)}var g;if(f){g=c.join(",")+(a?"-svg":"");var x=h5.get(g);x&&(a?u.svgElement=x:u.image=x)}var y=T8(o.dashArrayX),b=qoe(o.dashArrayY),S=w8(o.symbol),T=Zoe(y),C=C8(b),M=!a&&En.createCanvas(),D=a&&{tag:"g",attrs:{},key:"dcl",children:[]},L=R(),E;M&&(M.width=L.width*t,M.height=L.height*t,E=M.getContext("2d")),I(),f&&h5.put(g,M||D),u.image=M,u.svgElement=D,u.svgWidth=L.width,u.svgHeight=L.height;function R(){for(var k=1,z=0,O=T.length;z<O;++z)k=LO(k,T[z]);for(var G=1,z=0,O=S.length;z<O;++z)G=LO(G,S[z].length);k*=G;var F=C*T.length*S.length;return{width:Math.max(1,Math.min(k,o.maxTileWidth)),height:Math.max(1,Math.min(F,o.maxTileHeight))}}function I(){E&&(E.clearRect(0,0,M.width,M.height),o.backgroundColor&&(E.fillStyle=o.backgroundColor,E.fillRect(0,0,M.width,M.height)));for(var k=0,z=0;z<b.length;++z)k+=b[z];if(k<=0)return;for(var O=-C,G=0,F=0,B=0;O<L.height;){if(G%2===0){for(var Y=F/2%S.length,H=0,X=0,V=0;H<L.width*2;){for(var W=0,z=0;z<y[B].length;++z)W+=y[B][z];if(W<=0)break;if(X%2===0){var $=(1-o.symbolSize)*.5,te=H+y[B][X]*$,le=O+b[G]*$,ge=y[B][X]*o.symbolSize,we=b[G]*o.symbolSize,de=V/2%S[Y].length;ve(te,le,ge,we,S[Y][de])}H+=y[B][X],++V,++X,X===y[B].length&&(X=0)}++B,B===y.length&&(B=0)}O+=b[G],++F,++G,G===b.length&&(G=0)}function ve(be,Oe,_e,Le,st){var Qe=a?1:t,ct=lr(st,be*Qe,Oe*Qe,_e*Qe,Le*Qe,o.color,o.symbolKeepAspect);if(a){var xt=n.painter.renderOneToVNode(ct);xt&&D.children.push(xt)}else ED(E,ct)}}}}function w8(r){if(!r||r.length===0)return[["rect"]];if(ye(r))return[[r]];for(var e=!0,t=0;t<r.length;++t)if(!ye(r[t])){e=!1;break}if(e)return w8([r]);for(var n=[],t=0;t<r.length;++t)ye(r[t])?n.push([r[t]]):n.push(r[t]);return n}function T8(r){if(!r||r.length===0)return[[0,0]];if(it(r)){var e=Math.ceil(r);return[[e,e]]}for(var t=!0,n=0;n<r.length;++n)if(!it(r[n])){t=!1;break}if(t)return T8([r]);for(var a=[],n=0;n<r.length;++n)if(it(r[n])){var e=Math.ceil(r[n]);a.push([e,e])}else{var e=ce(r[n],function(s){return Math.ceil(s)});e.length%2===1?a.push(e.concat(e)):a.push(e)}return a}function qoe(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(it(r)){var e=Math.ceil(r);return[e,e]}var t=ce(r,function(n){return Math.ceil(n)});return r.length%2?t.concat(t):t}function Zoe(r){return ce(r,function(e){return C8(e)})}function C8(r){for(var e=0,t=0;t<r.length;++t)e+=r[t];return r.length%2===1?e*2:e}function $oe(r,e){r.eachRawSeries(function(t){if(!r.isSeriesFiltered(t)){var n=t.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=Ih(s,e)}});var a=n.getVisual("decal");if(a){var i=n.getVisual("style");i.decal=Ih(a,e)}}})}var Ya=new Oa,A8={};function Koe(r,e){A8[r]=e}function M8(r){return A8[r]}var D8={};function L8(r,e){D8[r]=e}function Qoe(r){return D8[r]}var Joe="6.0.0",ese={zrender:"6.0.0"},tse=1,rse=800,nse=900,ase=1e3,ise=2e3,ose=5e3,N8=1e3,sse=1100,ID=2e3,R8=3e3,lse=4e3,ib=4500,use=4600,cse=5e3,fse=6e3,E8=7e3,I8={PROCESSOR:{FILTER:ase,SERIES_FILTER:rse,STATISTIC:ose},VISUAL:{LAYOUT:N8,PROGRESSIVE_LAYOUT:sse,GLOBAL:ID,CHART:R8,POST_CHART_LAYOUT:use,COMPONENT:lse,BRUSH:cse,CHART_ITEM:ib,ARIA:fse,DECAL:E8}},mr="__flagInMainProcess",Fy="__mainProcessVersion",Or="__pendingUpdate",Ow="__needsUpdateStatus",v5=/^[a-zA-Z0-9_]+$/,Pw="__connectUpdateStatus",p5=0,hse=1,dse=2;function k8(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(this.isDisposed()){this.id;return}return P8(this,r,e)}}function O8(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return P8(this,r,e)}}function P8(r,e,t){return t[0]=t[0]&&t[0].toLowerCase(),Oa.prototype[e].apply(r,t)}var z8=(function(r){K(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(Oa),B8=z8.prototype;B8.on=O8("on");B8.off=O8("off");var mu,zw,Uy,yo,Yy,Bw,jw,Mf,Df,g5,m5,Vw,y5,Wy,x5,j8,pa,b5,Lf,Gx=(function(r){K(e,r);function e(t,n,a){var i=r.call(this,new boe)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],a=a||{},i._dom=t;var o="canvas",s="auto",l=!1;i[Fy]=1,a.ssr&&f6(function(d){var v=ze(d),g=v.dataIndex;if(g!=null){var x=Te();return x.set("series_index",v.seriesIndex),x.set("data_index",g),v.ssrType&&x.set("ssr_type",v.ssrType),x}});var u=i._zr=uC(t,{renderer:a.renderer||o,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:Ce(a.useDirtyRect,l),useCoarsePointer:Ce(a.useCoarsePointer,s),pointerSize:a.pointerSize});i._ssr=a.ssr,i._throttledZrFlush=ab(xe(u.flush,u),17),i._updateTheme(n),i._locale=xae(a.locale||pH),i._coordSysMgr=new nd;var c=i._api=x5(i);function f(d,v){return d.__prio-v.__prio}return z0(Fx,f),z0(UC,f),i._scheduler=new v8(i,c,UC,Fx),i._messageCenter=new z8,i._initEvents(),i.resize=xe(i.resize,i),u.animation.on("frame",i._onframe,i),g5(u,i),m5(u,i),Hp(i),i}return e.prototype._onframe=function(){if(!this._disposed){b5(this);var t=this._scheduler;if(this[Or]){var n=this[Or].silent;this[mr]=!0,Lf(this);try{mu(this),yo.update.call(this,null,this[Or].updateParams)}catch(l){throw this[mr]=!1,this[Or]=null,l}this._zr.flush(),this[mr]=!1,this[Or]=null,Mf.call(this,n),Df.call(this,n)}else if(t.unfinished){var a=tse,i=this._model,o=this._api;t.unfinished=!1;do{var s=+new Date;t.performSeriesTasks(i),t.performDataProcessorTasks(i),Bw(this,i),t.performVisualTasks(i),Wy(this,this._model,o,"remain",{}),a-=+new Date-s}while(a>0&&t.unfinished);t.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(t,n,a){if(!this[mr]){if(this._disposed){this.id;return}var i,o,s;if(Re(n)&&(a=n.lazyUpdate,i=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[mr]=!0,Lf(this),!this._model||n){var l=new rie(this._api),u=this._theme,c=this._model=new CD;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},YC);var f={seriesTransition:s,optionChanged:!0};if(a)this[Or]={silent:i,updateParams:f},this[mr]=!1,this.getZr().wakeUp();else{try{mu(this),yo.update.call(this,null,f)}catch(d){throw this[Or]=null,this[mr]=!1,d}this._ssr||this._zr.flush(),this[Or]=null,this[mr]=!1,Mf.call(this,i),Df.call(this,i)}}},e.prototype.setTheme=function(t,n){if(!this[mr]){if(this._disposed){this.id;return}var a=this._model;if(a){var i=n&&n.silent,o=null;this[Or]&&(i==null&&(i=this[Or].silent),o=this[Or].updateParams,this[Or]=null),this[mr]=!0,Lf(this);try{this._updateTheme(t),a.setTheme(this._theme),mu(this),yo.update.call(this,{type:"setTheme"},o)}catch(s){throw this[mr]=!1,s}this[mr]=!1,Mf.call(this,i),Df.call(this,i)}}},e.prototype._updateTheme=function(t){ye(t)&&(t=V8[t]),t&&(t=Me(t),t&&FH(t,!0),this._theme=t)},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||rt.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var n=this._zr.painter;return n.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){var t=this._zr,n=t.storage.getDisplayList();return P(n,function(a){a.stopAnimation(null,!0)}),t.painter.toDataURL()},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var n=t.excludeComponents,a=this._model,i=[],o=this;P(n,function(l){a.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(i.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return P(i,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var n=t.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(Ux[a]){var l=s,u=s,c=-s,f=-s,d=[],v=t&&t.pixelRatio||this.getDevicePixelRatio();P(tc,function(T,C){if(T.group===a){var M=n?T.getZr().painter.getSvgDom().innerHTML:T.renderToCanvas(Me(t)),D=T.getDom().getBoundingClientRect();l=i(D.left,l),u=i(D.top,u),c=o(D.right,c),f=o(D.bottom,f),d.push({dom:M,left:D.left,top:D.top})}}),l*=v,u*=v,c*=v,f*=v;var g=c-l,x=f-u,y=En.createCanvas(),b=uC(y,{renderer:n?"svg":"canvas"});if(b.resize({width:g,height:x}),n){var S="";return P(d,function(T){var C=T.left-l,M=T.top-u;S+='<g transform="translate('+C+","+M+')">'+T.dom+"</g>"}),b.painter.getSvgRoot().innerHTML=S,t.connectedBackgroundColor&&b.painter.setBackgroundColor(t.connectedBackgroundColor),b.refreshImmediately(),b.painter.toDataURL()}else return t.connectedBackgroundColor&&b.add(new We({shape:{x:0,y:0,width:g,height:x},style:{fill:t.connectedBackgroundColor}})),P(d,function(T){var C=new Nr({style:{x:T.left*v-l,y:T.top*v-u,image:T.dom}});b.add(C)}),b.refreshImmediately(),y.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,n,a){return Yy(this,"convertToPixel",t,n,a)},e.prototype.convertToLayout=function(t,n,a){return Yy(this,"convertToLayout",t,n,a)},e.prototype.convertFromPixel=function(t,n,a){return Yy(this,"convertFromPixel",t,n,a)},e.prototype.containPixel=function(t,n){if(this._disposed){this.id;return}var a=this._model,i,o=oh(a,t);return P(o,function(s,l){l.indexOf("Models")>=0&&P(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)i=i||!!c.containPoint(n);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(i=i||f.containPoint(n,u))}},this)},this),!!i},e.prototype.getVisual=function(t,n){var a=this._model,i=oh(a,t,{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?ND(s,l,n):Hg(s,n)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;P(vse,function(a){var i=function(o){var s=t.getModel(),l=o.target,u,c=a==="globalout";if(c?u={}:l&&Bu(l,function(x){var y=ze(x);if(y&&y.dataIndex!=null){var b=y.dataModel||s.getSeriesByIndex(y.seriesIndex);return u=b&&b.getDataParams(y.dataIndex,y.dataType,l)||{},!0}else if(y.eventData)return u=ie({},y.eventData),!0},!0),u){var f=u.componentType,d=u.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",d=u.seriesIndex);var v=f&&d!=null&&s.getComponent(f,d),g=v&&t[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];u.event=o,u.type=a,t._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:v,view:g},t.trigger(a,u)}};i.zrEventfulCallAtLast=!0,t._zr.on(a,i,t)});var n=this._messageCenter;P(FC,function(a,i){n.on(i,function(o){t.trigger(i,o)})}),woe(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 t=this.getDom();t&&w6(this.getDom(),OD,"");var n=this,a=n._api,i=n._model;P(n._componentsViews,function(o){o.dispose(i,a)}),P(n._chartsViews,function(o){o.dispose(i,a)}),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 tc[n.id]},e.prototype.resize=function(t){if(!this[mr]){if(this._disposed){this.id;return}this._zr.resize(t);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),i=t&&t.silent;this[Or]&&(i==null&&(i=this[Or].silent),a=!0,this[Or]=null),this[mr]=!0,Lf(this);try{a&&mu(this),yo.update.call(this,{type:"resize",animation:ie({duration:0},t&&t.animation)})}catch(o){throw this[mr]=!1,o}this[mr]=!1,Mf.call(this,i),Df.call(this,i)}}},e.prototype.showLoading=function(t,n){if(this._disposed){this.id;return}if(Re(t)&&(n=t,t=""),t=t||"default",this.hideLoading(),!!WC[t]){var a=WC[t](this._api,n),i=this._zr;this._loadingFX=a,i.add(a)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var n=ie({},t);return n.type=HC[t.type],n},e.prototype.dispatchAction=function(t,n){if(this._disposed){this.id;return}if(Re(n)||(n={silent:!!n}),!!Hx[t.type]&&this._model){if(this[mr]){this._pendingActions.push(t);return}var a=n.silent;jw.call(this,t,a);var i=n.flush;i?this._zr.flush():i!==!1&&rt.browser.weChat&&this._throttledZrFlush(),Mf.call(this,a),Df.call(this,a)}},e.prototype.updateLabelLayout=function(){Ya.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var n=t.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);i.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=(function(){mu=function(f){var d=f._scheduler;d.restorePipelines(f._model),d.prepareStageTasks(),zw(f,!0),zw(f,!1),d.plan()},zw=function(f,d){for(var v=f._model,g=f._scheduler,x=d?f._componentsViews:f._chartsViews,y=d?f._componentsMap:f._chartsMap,b=f._zr,S=f._api,T=0;T<x.length;T++)x[T].__alive=!1;d?v.eachComponent(function(D,L){D!=="series"&&C(L)}):v.eachSeries(C);function C(D){var L=D.__requireNewView;D.__requireNewView=!1;var E="_ec_"+D.id+"_"+D.type,R=!L&&y[E];if(!R){var I=ki(D.type),k=d?Lt.getClass(I.main,I.sub):_t.getClass(I.sub);R=new k,R.init(v,S),y[E]=R,x.push(R),b.add(R.group)}D.__viewId=R.__id=E,R.__alive=!0,R.__model=D,R.group.__ecComponentInfo={mainType:D.mainType,index:D.componentIndex},!d&&g.prepareView(R,D,v,S)}for(var T=0;T<x.length;){var M=x[T];M.__alive?T++:(!d&&M.renderTask.dispose(),b.remove(M.group),M.dispose(v,S),x.splice(T,1),y[M.__id]===M&&delete y[M.__id],M.__id=M.group.__ecComponentInfo=null)}},Uy=function(f,d,v,g,x){var y=f._model;if(y.setUpdatePayload(v),!g){P([].concat(f._componentsViews).concat(f._chartsViews),M);return}var b={};b[g+"Id"]=v[g+"Id"],b[g+"Index"]=v[g+"Index"],b[g+"Name"]=v[g+"Name"];var S={mainType:g,query:b};x&&(S.subType=x);var T=v.excludeSeriesId,C;T!=null&&(C=Te(),P(Dt(T),function(D){var L=yr(D,null);L!=null&&C.set(L,!0)})),y&&y.eachComponent(S,function(D){var L=C&&C.get(D.id)!=null;if(!L)if(aP(v))if(D instanceof wt)v.type===Ju&&!v.notBlur&&!D.get(["emphasis","disabled"])&&_ne(D,v,f._api);else{var E=KM(D.mainType,D.componentIndex,v.name,f._api),R=E.focusSelf,I=E.dispatchers;v.type===Ju&&R&&!v.notBlur&&_C(D.mainType,D.componentIndex,f._api),I&&P(I,function(k){v.type===Ju?Xo(k):qo(k)})}else wC(v)&&D instanceof wt&&(Tne(D,v,f._api),rP(D),pa(f))},f),y&&y.eachComponent(S,function(D){var L=C&&C.get(D.id)!=null;L||M(f[g==="series"?"_chartsMap":"_componentsMap"][D.__viewId])},f);function M(D){D&&D.__alive&&D[d]&&D[d](D.__model,y,f._api,v)}},yo={prepareAndUpdate:function(f){mu(this),yo.update.call(this,f,f&&{optionChanged:f.newOption!=null})},update:function(f,d){var v=this._model,g=this._api,x=this._zr,y=this._coordSysMgr,b=this._scheduler;if(v){v.setUpdatePayload(f),b.restoreData(v,f),b.performSeriesTasks(v),y.create(v,g),b.performDataProcessorTasks(v,f),Bw(this,v),y.update(v,g),n(v),b.performVisualTasks(v,f);var S=v.get("backgroundColor")||"transparent";x.setBackgroundColor(S);var T=v.get("darkMode");T!=null&&T!=="auto"&&x.setDarkMode(T),Vw(this,v,g,f,d),Ya.trigger("afterupdate",v,g)}},updateTransform:function(f){var d=this,v=this._model,g=this._api;if(v){v.setUpdatePayload(f);var x=[];v.eachComponent(function(b,S){if(b!=="series"){var T=d.getViewOfComponentModel(S);if(T&&T.__alive)if(T.updateTransform){var C=T.updateTransform(S,v,g,f);C&&C.update&&x.push(T)}else x.push(T)}});var y=Te();v.eachSeries(function(b){var S=d._chartsMap[b.__viewId];if(S.updateTransform){var T=S.updateTransform(b,v,g,f);T&&T.update&&y.set(b.uid,1)}else y.set(b.uid,1)}),n(v),this._scheduler.performVisualTasks(v,f,{setDirty:!0,dirtyMap:y}),Wy(this,v,g,f,{},y),Ya.trigger("afterupdate",v,g)}},updateView:function(f){var d=this._model;d&&(d.setUpdatePayload(f),_t.markUpdateMethod(f,"updateView"),n(d),this._scheduler.performVisualTasks(d,f,{setDirty:!0}),Vw(this,d,this._api,f,{}),Ya.trigger("afterupdate",d,this._api))},updateVisual:function(f){var d=this,v=this._model;v&&(v.setUpdatePayload(f),v.eachSeries(function(g){g.getData().clearAllVisual()}),_t.markUpdateMethod(f,"updateVisual"),n(v),this._scheduler.performVisualTasks(v,f,{visualType:"visual",setDirty:!0}),v.eachComponent(function(g,x){if(g!=="series"){var y=d.getViewOfComponentModel(x);y&&y.__alive&&y.updateVisual(x,v,d._api,f)}}),v.eachSeries(function(g){var x=d._chartsMap[g.__viewId];x.updateVisual(g,v,d._api,f)}),Ya.trigger("afterupdate",v,this._api))},updateLayout:function(f){yo.update.call(this,f)}};function t(f,d,v,g,x){if(f._disposed){f.id;return}for(var y=f._model,b=f._coordSysMgr.getCoordinateSystems(),S,T=oh(y,v),C=0;C<b.length;C++){var M=b[C];if(M[d]&&(S=M[d](y,T,g,x))!=null)return S}}Yy=t,Bw=function(f,d){var v=f._chartsMap,g=f._scheduler;d.eachSeries(function(x){g.updateStreamModes(x,v[x.__viewId])})},jw=function(f,d){var v=this,g=this.getModel(),x=f.type,y=f.escapeConnect,b=Hx[x],S=(b.update||"update").split(":"),T=S.pop(),C=S[0]!=null&&ki(S[0]);this[mr]=!0,Lf(this);var M=[f],D=!1;f.batch&&(D=!0,M=ce(f.batch,function(B){return B=Ne(ie({},B),f),B.batch=null,B}));var L=[],E,R=[],I=b.nonRefinedEventType,k=wC(f),z=aP(f);if(z&&Y6(this._api),P(M,function(B){var Y=b.action(B,g,v._api);if(b.refineEvent?R.push(Y):E=Y,E=E||ie({},B),E.type=I,L.push(E),z){var H=HM(f),X=H.queryOptionMap,V=H.mainTypeSpecified,W=V?X.keys()[0]:"series";Uy(v,T,B,W),pa(v)}else k?(Uy(v,T,B,"series"),pa(v)):C&&Uy(v,T,B,C.main,C.sub)}),T!=="none"&&!z&&!k&&!C)try{this[Or]?(mu(this),yo.update.call(this,f),this[Or]=null):yo[T].call(this,f)}catch(B){throw this[mr]=!1,B}if(D?E={type:I,escapeConnect:y,batch:L}:E=L[0],this[mr]=!1,!d){var O=void 0;if(b.refineEvent){var G=b.refineEvent(R,f,g,this._api).eventContent;Kr(Re(G)),O=Ne({type:b.refinedEventType},G),O.fromAction=f.type,O.fromActionPayload=f,O.escapeConnect=!0}var F=this._messageCenter;F.trigger(E.type,E),O&&F.trigger(O.type,O)}},Mf=function(f){for(var d=this._pendingActions;d.length;){var v=d.shift();jw.call(this,v,f)}},Df=function(f){!f&&this.trigger("updated")},g5=function(f,d){f.on("rendered",function(v){d.trigger("rendered",v),f.animation.isFinished()&&!d[Or]&&!d._scheduler.unfinished&&!d._pendingActions.length&&d.trigger("finished")})},m5=function(f,d){f.on("mouseover",function(v){var g=v.target,x=Bu(g,Kp);x&&(Sne(x,v,d._api),pa(d))}).on("mouseout",function(v){var g=v.target,x=Bu(g,Kp);x&&(wne(x,v,d._api),pa(d))}).on("click",function(v){var g=v.target,x=Bu(g,function(S){return ze(S).dataIndex!=null},!0);if(x){var y=x.selected?"unselect":"select",b=ze(x);d._api.dispatchAction({type:y,dataType:b.dataType,dataIndexInside:b.dataIndex,seriesIndex:b.seriesIndex,isFromClick:!0})}})};function n(f){f.clearColorPalette(),f.eachSeries(function(d){d.clearColorPalette()})}function a(f){var d=[],v=[],g=!1;if(f.eachComponent(function(S,T){var C=T.get("zlevel")||0,M=T.get("z")||0,D=T.getZLevelKey();g=g||!!D,(S==="series"?v:d).push({zlevel:C,z:M,idx:T.componentIndex,type:S,key:D})}),g){var x=d.concat(v),y,b;z0(x,function(S,T){return S.zlevel===T.zlevel?S.z-T.z:S.zlevel-T.zlevel}),P(x,function(S){var T=f.getComponent(S.type,S.idx),C=S.zlevel,M=S.key;y!=null&&(C=Math.max(y,C)),M?(C===y&&M!==b&&C++,b=M):b&&(C===y&&C++,b=""),y=C,T.setZLevel(C)})}}Vw=function(f,d,v,g,x){a(d),y5(f,d,v,g,x),P(f._chartsViews,function(y){y.__alive=!1}),Wy(f,d,v,g,x),P(f._chartsViews,function(y){y.__alive||y.remove(d,v)})},y5=function(f,d,v,g,x,y){P(y||f._componentsViews,function(b){var S=b.__model;u(S,b),b.render(S,d,v,g),l(S,b),c(S,b)})},Wy=function(f,d,v,g,x,y){var b=f._scheduler;x=ie(x||{},{updatedSeries:d.getSeries()}),Ya.trigger("series:beforeupdate",d,v,x);var S=!1;d.eachSeries(function(T){var C=f._chartsMap[T.__viewId];C.__alive=!0;var M=C.renderTask;b.updatePayload(M,g),u(T,C),y&&y.get(T.uid)&&M.dirty(),M.perform(b.getPerformArgs(M))&&(S=!0),C.group.silent=!!T.get("silent"),s(T,C),rP(T)}),b.unfinished=S||b.unfinished,Ya.trigger("series:layoutlabels",d,v,x),Ya.trigger("series:transition",d,v,x),d.eachSeries(function(T){var C=f._chartsMap[T.__viewId];l(T,C),c(T,C)}),o(f,d),Ya.trigger("series:afterupdate",d,v,x)},pa=function(f){f[Ow]=!0,f.getZr().wakeUp()},Lf=function(f){f[Fy]=(f[Fy]+1)%1e3},b5=function(f){f[Ow]&&(f.getZr().storage.traverse(function(d){sh(d)||i(d)}),f[Ow]=!1)};function i(f){for(var d=[],v=f.currentStates,g=0;g<v.length;g++){var x=v[g];x==="emphasis"||x==="blur"||x==="select"||d.push(x)}f.selected&&f.states.select&&d.push("select"),f.hoverState===Z1&&f.states.emphasis?d.push("emphasis"):f.hoverState===Og&&f.states.blur&&d.push("blur"),f.useStates(d)}function o(f,d){var v=f._zr,g=v.storage,x=0;g.traverse(function(y){y.isGroup||x++}),x>d.get("hoverLayerThreshold")&&!rt.node&&!rt.worker&&d.eachSeries(function(y){if(!y.preventUsingHoverLayer){var b=f._chartsMap[y.__viewId];b.__alive&&b.eachRendered(function(S){S.states.emphasis&&(S.states.emphasis.hoverLayer=!0)})}})}function s(f,d){var v=f.get("blendMode")||null;d.eachRendered(function(g){g.isGroup||(g.style.blend=v)})}function l(f,d){if(!f.preventAutoZ){var v=hc(f);d.eachRendered(function(g){return Q1(g,v.z,v.zlevel),!0})}}function u(f,d){d.eachRendered(function(v){if(!sh(v)){var g=v.getTextContent(),x=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),g&&g.stateTransition&&(g.stateTransition=null),x&&x.stateTransition&&(x.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function c(f,d){var v=f.getModel("stateAnimation"),g=f.isAnimationEnabled(),x=v.get("duration"),y=x>0?{duration:x,delay:v.get("delay"),easing:v.get("easing")}:null;d.eachRendered(function(b){if(b.states&&b.states.emphasis){if(sh(b))return;if(b instanceof et&&Nne(b),b.__dirty){var S=b.prevStates;S&&b.useStates(S)}if(g){b.stateTransition=y;var T=b.getTextContent(),C=b.getTextGuideLine();T&&(T.stateTransition=y),C&&(C.stateTransition=y)}b.__dirty&&i(b)}})}x5=function(f){return new((function(d){K(v,d);function v(){return d!==null&&d.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(g){for(;g;){var x=g.__ecComponentInfo;if(x!=null)return f._model.getComponent(x.mainType,x.index);g=g.parent}},v.prototype.enterEmphasis=function(g,x){Xo(g,x),pa(f)},v.prototype.leaveEmphasis=function(g,x){qo(g,x),pa(f)},v.prototype.enterBlur=function(g){G6(g),pa(f)},v.prototype.leaveBlur=function(g){$M(g),pa(f)},v.prototype.enterSelect=function(g){H6(g),pa(f)},v.prototype.leaveSelect=function(g){F6(g),pa(f)},v.prototype.getModel=function(){return f.getModel()},v.prototype.getViewOfComponentModel=function(g){return f.getViewOfComponentModel(g)},v.prototype.getViewOfSeriesModel=function(g){return f.getViewOfSeriesModel(g)},v.prototype.getMainProcessVersion=function(){return f[Fy]},v})(GH))(f)},j8=function(f){function d(v,g){for(var x=0;x<v.length;x++){var y=v[x];y[Pw]=g}}P(HC,function(v,g){f._messageCenter.on(g,function(x){if(Ux[f.group]&&f[Pw]!==p5){if(x&&x.escapeConnect)return;var y=f.makeActionFromEvent(x),b=[];P(tc,function(S){S!==f&&S.group===f.group&&b.push(S)}),d(b,p5),P(b,function(S){S[Pw]!==hse&&S.dispatchAction(y)}),d(b,dse)}})})}})(),e})(Oa),kD=Gx.prototype;kD.on=k8("on");kD.off=k8("off");kD.one=function(r,e,t){var n=this;function a(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];e&&e.apply&&e.apply(this,i),n.off(r,a)}this.on.call(this,r,a,t)};var vse=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Hx={},HC={},FC={},UC=[],YC=[],Fx=[],V8={},WC={},tc={},Ux={},pse=+new Date-0,gse=+new Date-0,OD="_echarts_instance_";function mse(r,e,t){var n=!(t&&t.ssr);if(n){var a=PD(r);if(a)return a}var i=new Gx(r,e,t);return i.id="ec_"+pse++,tc[i.id]=i,n&&w6(r,OD,i.id),j8(i),Ya.trigger("afterinit",i),i}function yse(r){if(ue(r)){var e=r;r=null,P(e,function(t){t.group!=null&&(r=t.group)}),r=r||"g_"+gse++,P(e,function(t){t.group=r})}return Ux[r]=!0,r}function G8(r){Ux[r]=!1}var xse=G8;function bse(r){ye(r)?r=tc[r]:r instanceof Gx||(r=PD(r)),r instanceof Gx&&!r.isDisposed()&&r.dispose()}function PD(r){return tc[mre(r,OD)]}function _se(r){return tc[r]}function zD(r,e){V8[r]=e}function BD(r){Ge(YC,r)<0&&YC.push(r)}function jD(r,e){VD(UC,r,e,ise)}function H8(r){ob("afterinit",r)}function F8(r){ob("afterupdate",r)}function ob(r,e){Ya.on(r,e)}function si(r,e,t){var n,a,i,o,s;Ae(e)&&(t=e,e=""),Re(r)?(n=r.type,a=r.event,o=r.update,s=r.publishNonRefinedEvent,t||(t=r.action),i=r.refineEvent):(n=r,a=e);function l(c){return c.toLowerCase()}a=l(a||n);var u=i?l(n):a;Hx[n]||(Kr(v5.test(n)&&v5.test(a)),i&&Kr(a!==n),Hx[n]={actionType:n,refinedEventType:a,nonRefinedEventType:u,update:o,action:t,refineEvent:i},FC[a]=1,i&&s&&(FC[u]=1),HC[u]=n)}function U8(r,e){nd.register(r,e)}function Sse(r){var e=nd.get(r);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function wse(r,e){L8(r,e)}function Y8(r,e){VD(Fx,r,e,N8,"layout")}function Ll(r,e){VD(Fx,r,e,R8,"visual")}var _5=[];function VD(r,e,t,n,a){if((Ae(e)||Re(e))&&(t=e,e=n),!(Ge(_5,t)>=0)){_5.push(t);var i=v8.wrapStageHandler(t,a);i.__prio=e,i.__raw=t,r.push(i)}}function GD(r,e){WC[r]=e}function Tse(r){DG({createCanvas:r})}function W8(r,e,t){var n=M8("registerMap");n&&n(r,e,t)}function Cse(r){var e=M8("getMap");return e&&e(r)}var X8=kie;Ll(ID,ooe);Ll(ib,soe);Ll(ib,loe);Ll(ID,_oe);Ll(ib,Soe);Ll(E8,$oe);BD(FH);jD(nse,vie);GD("default",uoe);si({type:Ju,event:Ju,update:Ju},$t);si({type:U0,event:U0,update:U0},$t);si({type:Lx,event:qM,update:Lx,action:$t,refineEvent:HD,publishNonRefinedEvent:!0});si({type:xC,event:qM,update:xC,action:$t,refineEvent:HD,publishNonRefinedEvent:!0});si({type:Nx,event:qM,update:Nx,action:$t,refineEvent:HD,publishNonRefinedEvent:!0});function HD(r,e,t,n){return{eventContent:{selected:Cne(t),isFromClick:e.isFromClick||!1}}}zD("default",{});zD("dark",y8);var Ase={},S5=[],Mse={registerPreprocessor:BD,registerProcessor:jD,registerPostInit:H8,registerPostUpdate:F8,registerUpdateLifecycle:ob,registerAction:si,registerCoordinateSystem:U8,registerLayout:Y8,registerVisual:Ll,registerTransform:X8,registerLoading:GD,registerMap:W8,registerImpl:Koe,PRIORITY:I8,ComponentModel:$e,ComponentView:Lt,SeriesModel:wt,ChartView:_t,registerComponentModel:function(r){$e.registerClass(r)},registerComponentView:function(r){Lt.registerClass(r)},registerSeriesModel:function(r){wt.registerClass(r)},registerChartView:function(r){_t.registerClass(r)},registerCustomSeries:function(r,e){L8(r,e)},registerSubTypeDefaulter:function(r,e){$e.registerSubTypeDefaulter(r,e)},registerPainter:function(r,e){u6(r,e)}};function Ue(r){if(ue(r)){P(r,function(e){Ue(e)});return}Ge(S5,r)>=0||(S5.push(r),Ae(r)&&(r={install:r}),r.install(Mse))}function Dv(r){return r==null?0:r.length||1}function w5(r){return r}var Zo=(function(){function r(e,t,n,a,i,o){this._old=e,this._new=t,this._oldKeyGetter=n||w5,this._newKeyGetter=a||w5,this.context=i,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(e){return this._add=e,this},r.prototype.update=function(e){return this._update=e,this},r.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},r.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},r.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},r.prototype.remove=function(e){return this._remove=e,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},a=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,a,"_oldKeyGetter"),this._initIndexMap(t,n,i,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=a[o],l=n[s],u=Dv(l);if(u>1){var c=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(c,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},r.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},a={},i=[],o=[];this._initIndexMap(e,n,i,"_oldKeyGetter"),this._initIndexMap(t,a,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var l=i[s],u=n[l],c=a[l],f=Dv(u),d=Dv(c);if(f>1&&d===1)this._updateManyToOne&&this._updateManyToOne(c,u),a[l]=null;else if(f===1&&d>1)this._updateOneToMany&&this._updateOneToMany(c,u),a[l]=null;else if(f===1&&d===1)this._update&&this._update(c,u),a[l]=null;else if(f>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,u),a[l]=null;else if(f>1)for(var v=0;v<f;v++)this._remove&&this._remove(u[v]);else this._remove&&this._remove(u)}this._performRestAdd(o,a)},r.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var a=e[n],i=t[a],o=Dv(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);t[a]=null}},r.prototype._initIndexMap=function(e,t,n,a){for(var i=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[a](e[o],o);if(i||(n[o]=s),!!t){var l=t[s],u=Dv(l);u===0?(t[s]=o,i&&n.push(s)):u===1?t[s]=[l,o]:l.push(o)}}},r})(),Dse=(function(){function r(e,t){this._encode=e,this._schema=t}return r.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},r.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},r})();function Lse(r,e){var t={},n=t.encode={},a=Te(),i=[],o=[],s={};P(r.dimensions,function(d){var v=r.getDimensionInfo(d),g=v.coordDim;if(g){var x=v.coordDimIndex;Gw(n,g)[x]=d,v.isExtraCoord||(a.set(g,1),Nse(v.type)&&(i[0]=d),Gw(s,g)[x]=r.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(d)}kH.each(function(y,b){var S=Gw(n,b),T=v.otherDims[b];T!=null&&T!==!1&&(S[T]=v.name)})});var l=[],u={};a.each(function(d,v){var g=n[v];u[v]=g[0],l=l.concat(g)}),t.dataDimsOnCoord=l,t.dataDimIndicesOnCoord=ce(l,function(d){return r.getDimensionInfo(d).storeDimIndex}),t.encodeFirstDimNotExtra=u;var c=n.label;c&&c.length&&(i=c.slice());var f=n.tooltip;return f&&f.length?o=f.slice():o.length||(o=i.slice()),n.defaultedLabel=i,n.defaultedTooltip=o,t.userOutput=new Dse(s,e),t}function Gw(r,e){return r.hasOwnProperty(e)||(r[e]=[]),r[e]}function Yx(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function Nse(r){return!(r==="ordinal"||r==="time")}var K0=(function(){function r(e){this.otherDims={},e!=null&&ie(this,e)}return r})(),Rse=Ke(),Ese={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},q8=(function(){function r(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=K8(this.source)))},r.prototype.getSourceDimensionIndex=function(e){return Ce(this._dimNameMap.get(e),-1)},r.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},r.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=YH(this.source),n=!Q8(e),a="",i=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,c=void 0,f=this.dimensions[s];if(f&&f.storeDimIndex===o)l=t?f.name:null,u=f.type,c=f.ordinalMeta,s++;else{var d=this.getSourceDimension(o);d&&(l=t?d.name:null,u=d.type)}i.push({property:l,type:u,ordinalMeta:c}),t&&l!=null&&(!f||!f.isCalculationCoord)&&(a+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),a+="$",a+=Ese[u]||"f",c&&(a+=c.uid),a+="$"}var v=this.source,g=[v.seriesLayoutBy,v.startIndex,a].join("$$");return{dimensions:i,hash:g}},r.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var a=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===t)i.isCalculationCoord||(a=i.name),n++;else{var o=this.getSourceDimension(t);o&&(a=o.name)}e.push(a)}return e},r.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r})();function Z8(r){return r instanceof q8}function $8(r){for(var e=Te(),t=0;t<(r||[]).length;t++){var n=r[t],a=Re(n)?n.name:n;a!=null&&e.get(a)==null&&e.set(a,t)}return e}function K8(r){var e=Rse(r);return e.dimNameMap||(e.dimNameMap=$8(r.dimensionsDefine))}function Q8(r){return r>30}var Lv=Re,ks=ce,Ise=typeof Int32Array>"u"?Array:Int32Array,kse="e\0\0",T5=-1,Ose=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Pse=["_approximateExtent"],C5,Xy,Nv,Rv,Hw,Ev,Fw,cn=(function(){function r(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,a=!1;Z8(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(a=!0,n=e),n=n||["x","y"];for(var i={},o=[],s={},l=!1,u={},c=0;c<n.length;c++){var f=n[c],d=ye(f)?new K0({name:f}):f instanceof K0?f:new K0(f),v=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=v,d.coordDimIndex=0);var g=d.otherDims=d.otherDims||{};o.push(v),i[v]=d,u[v]!=null&&(l=!0),d.createInvertedIndices&&(s[v]=[]);var x=c;it(d.storeDimIndex)&&(x=d.storeDimIndex),g.itemName===0&&(this._nameDimIdx=x),g.itemId===0&&(this._idDimIdx=x),a&&(d.storeDimIndex=c)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=t,this._invertedIndicesMap=s,this._dimOmitted){var y=this._dimIdxToName=Te();P(o,function(b){y.set(i[b].storeDimIndex,b)})}}return r.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(t==null)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(n!=null)return n;var a=this._schema.getSourceDimension(t);if(a)return a.name},r.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(t!=null)return t;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},r.prototype._recognizeDimIndex=function(e){if(it(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},r.prototype._getStoreDimIndex=function(e){var t=this.getDimensionIndex(e);return t},r.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},r.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(n){return t.hasOwnProperty(n)?t[n]:void 0}:function(n){return t[n]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(t==null)return n.encodeFirstDimNotExtra[e];var a=n.encode[e];return a?a[t]:null},r.prototype.mapDimensionsAll=function(e){var t=this._dimSummary,n=t.encode[e];return(n||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(e,t,n){var a=this,i;if(e instanceof OC&&(i=e),!i){var o=this.dimensions,s=AD(e)||$r(e)?new WH(e,o.length):e;i=new OC;var l=ks(o,function(u){return{type:a._dimInfos[u].type,property:u}});i.initData(s,l,n)}this._store=i,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=Lse(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},r.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t&&t.length),a=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var s=a;s<i;s++){var l=s-a;this._nameList[s]=t[l],o&&Fw(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var a=this._dimInfos[t[n]];a.ordinalMeta&&e.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==hl&&!e.fillStorage},r.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===aa;if(l&&!a.pure)for(var u=[],c=e;c<t;c++){var f=a.getItem(c,u);if(!this.hasItemOption&&are(f)&&(this.hasItemOption=!0),f){var d=f.name;i[c]==null&&d!=null&&(i[c]=yr(d,null));var v=f.id;o[c]==null&&v!=null&&(o[c]=yr(v,null))}}if(this._shouldMakeIdFromName())for(var c=e;c<t;c++)Fw(this,c);C5(this)}},r.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},r.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},r.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},r.prototype.setCalculationInfo=function(e,t){Lv(e)?ie(this._calculationInfo,e):this._calculationInfo[e]=t},r.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return n==null&&this._nameDimIdx!=null&&(n=Nv(this,this._nameDimIdx,t)),n==null&&(n=""),n},r.prototype._getCategory=function(e,t){var n=this._store.get(e,t),a=this._store.getOrdinalMeta(e);return a?a.categories[n]:n},r.prototype.getId=function(e){return Xy(this,this.getRawIndex(e))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(e,t){var n=this._store,a=this._dimInfos[e];if(a)return n.get(a.storeDimIndex,t)},r.prototype.getByRawIndex=function(e,t){var n=this._store,a=this._dimInfos[e];if(a)return n.getByRawIndex(a.storeDimIndex,t)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},r.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},r.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},r.prototype.getValues=function(e,t){var n=this,a=this._store;return ue(e)?a.getValues(ks(e,function(i){return n._getStoreDimIndex(i)}),t):a.getValues(e)},r.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,a=t.length;n<a;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},r.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},r.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},r.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},r.prototype.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e],a=n&&n[t];return a==null||isNaN(a)?T5:a},r.prototype.each=function(e,t,n){Ae(e)&&(n=t,t=e,e=[]);var a=n||this,i=ks(Rv(e),this._getStoreDimIndex,this);this._store.each(i,a?xe(t,a):t)},r.prototype.filterSelf=function(e,t,n){Ae(e)&&(n=t,t=e,e=[]);var a=n||this,i=ks(Rv(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,a?xe(t,a):t),this},r.prototype.selectRange=function(e){var t=this,n={},a=nt(e);return P(a,function(i){var o=t._getStoreDimIndex(i);n[o]=e[i]}),this._store=this._store.selectRange(n),this},r.prototype.mapArray=function(e,t,n){Ae(e)&&(n=t,t=e,e=[]),n=n||this;var a=[];return this.each(e,function(){a.push(t&&t.apply(this,arguments))},n),a},r.prototype.map=function(e,t,n,a){var i=n||a||this,o=ks(Rv(e),this._getStoreDimIndex,this),s=Ev(this);return s._store=this._store.map(o,i?xe(t,i):t),s},r.prototype.modify=function(e,t,n,a){var i=n||a||this,o=ks(Rv(e),this._getStoreDimIndex,this);this._store.modify(o,i?xe(t,i):t)},r.prototype.downSample=function(e,t,n,a){var i=Ev(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,a),i},r.prototype.minmaxDownSample=function(e,t){var n=Ev(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},r.prototype.lttbDownSample=function(e,t){var n=Ev(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},r.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},r.prototype.getItemModel=function(e){var t=this.hostModel,n=this.getRawDataItem(e);return new Je(n,t,t&&t.ecModel)},r.prototype.diff=function(e){var t=this;return new Zo(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(n){return Xy(e,n)},function(n){return Xy(t,n)})},r.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},r.prototype.setVisual=function(e,t){this._visual=this._visual||{},Lv(e)?ie(this._visual,e):this._visual[e]=t},r.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e],a=n&&n[t];return a??this.getVisual(t)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,a=n[e];a||(a=n[e]={});var i=a[t];return i==null&&(i=this.getVisual(t),ue(i)?i=i.slice():Lv(i)&&(i=ie({},i)),a[t]=i),i},r.prototype.setItemVisual=function(e,t,n){var a=this._itemVisuals[e]||{};this._itemVisuals[e]=a,Lv(t)?ie(a,t):a[t]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(e,t){Lv(e)?ie(this._layout,e):this._layout[e]=t},r.prototype.getLayout=function(e){return this._layout[e]},r.prototype.getItemLayout=function(e){return this._itemLayouts[e]},r.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?ie(this._itemLayouts[e]||{},t):t},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(e,t){var n=this.hostModel&&this.hostModel.seriesIndex;yC(n,this.dataType,e,t),this._graphicEls[e]=t},r.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},r.prototype.eachItemGraphicEl=function(e,t){P(this._graphicEls,function(n,a){n&&e&&e.call(t,n,a)})},r.prototype.cloneShallow=function(e){return e||(e=new r(this._schema?this._schema:ks(this.dimensions,this._getDimInfo,this),this.hostModel)),Hw(e,this),e._store=this._store,e},r.prototype.wrapMethod=function(e,t){var n=this[e];Ae(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var a=n.apply(this,arguments);return t.apply(this,[a].concat(P1(arguments)))})},r.internalField=(function(){C5=function(e){var t=e._invertedIndicesMap;P(t,function(n,a){var i=e._dimInfos[a],o=i.ordinalMeta,s=e._store;if(o){n=t[a]=new Ise(o.categories.length);for(var l=0;l<n.length;l++)n[l]=T5;for(var l=0;l<s.count();l++)n[s.get(i.storeDimIndex,l)]=l}})},Nv=function(e,t,n){return yr(e._getCategory(t,n),null)},Xy=function(e,t){var n=e._idList[t];return n==null&&e._idDimIdx!=null&&(n=Nv(e,e._idDimIdx,t)),n==null&&(n=kse+t),n},Rv=function(e){return ue(e)||(e=e!=null?[e]:[]),e},Ev=function(e){var t=new r(e._schema?e._schema:ks(e.dimensions,e._getDimInfo,e),e.hostModel);return Hw(t,e),t},Hw=function(e,t){P(Ose.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,P(Pse,function(n){e[n]=Me(t[n])}),e._calculationInfo=ie({},t._calculationInfo)},Fw=function(e,t){var n=e._nameList,a=e._idList,i=e._nameDimIdx,o=e._idDimIdx,s=n[t],l=a[t];if(s==null&&i!=null&&(n[t]=s=Nv(e,i,t)),l==null&&o!=null&&(a[t]=l=Nv(e,o,t)),l==null&&s!=null){var u=e._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),a[t]=l}}})(),r})();function zse(r,e){return sd(r,e).dimensions}function sd(r,e){AD(r)||(r=MD(r)),e=e||{};var t=e.coordDimensions||[],n=e.dimensionsDefine||r.dimensionsDefine||[],a=Te(),i=[],o=jse(r,t,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&Q8(o),l=n===r.dimensionsDefine,u=l?K8(r):$8(n),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(r,o));for(var f=Te(c),d=new e8(o),v=0;v<d.length;v++)d[v]=-1;function g(R){var I=d[R];if(I<0){var k=n[R],z=Re(k)?k:{name:k},O=new K0,G=z.name;G!=null&&u.get(G)!=null&&(O.name=O.displayName=G),z.type!=null&&(O.type=z.type),z.displayName!=null&&(O.displayName=z.displayName);var F=i.length;return d[R]=F,O.storeDimIndex=R,i.push(O),O}return i[I]}if(!s)for(var v=0;v<o;v++)g(v);f.each(function(R,I){var k=Dt(R).slice();if(k.length===1&&!ye(k[0])&&k[0]<0){f.set(I,!1);return}var z=f.set(I,[]);P(k,function(O,G){var F=ye(O)?u.get(O):O;F!=null&&F<o&&(z[G]=F,y(g(F),I,G))})});var x=0;P(t,function(R){var I,k,z,O;if(ye(R))I=R,O={};else{O=R,I=O.name;var G=O.ordinalMeta;O.ordinalMeta=null,O=ie({},O),O.ordinalMeta=G,k=O.dimsDef,z=O.otherDims,O.name=O.coordDim=O.coordDimIndex=O.dimsDef=O.otherDims=null}var F=f.get(I);if(F!==!1){if(F=Dt(F),!F.length)for(var B=0;B<(k&&k.length||1);B++){for(;x<o&&g(x).coordDim!=null;)x++;x<o&&F.push(x++)}P(F,function(Y,H){var X=g(Y);if(l&&O.type!=null&&(X.type=O.type),y(Ne(X,O),I,H),X.name==null&&k){var V=k[H];!Re(V)&&(V={name:V}),X.name=X.displayName=V.name,X.defaultTooltip=V.defaultTooltip}z&&Ne(X.otherDims,z)})}});function y(R,I,k){kH.get(I)!=null?R.otherDims[I]=k:(R.coordDim=I,R.coordDimIndex=k,a.set(I,!0))}var b=e.generateCoord,S=e.generateCoordCount,T=S!=null;S=b?S||1:0;var C=b||"value";function M(R){R.name==null&&(R.name=R.coordDim)}if(s)P(i,function(R){M(R)}),i.sort(function(R,I){return R.storeDimIndex-I.storeDimIndex});else for(var D=0;D<o;D++){var L=g(D),E=L.coordDim;E==null&&(L.coordDim=Vse(C,a,T),L.coordDimIndex=0,(!b||S<=0)&&(L.isExtraCoord=!0),S--),M(L),L.type==null&&(BH(r,D)===Wr.Must||L.isExtraCoord&&(L.otherDims.itemName!=null||L.otherDims.seriesName!=null))&&(L.type="ordinal")}return Bse(i),new q8({source:r,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function Bse(r){for(var e=Te(),t=0;t<r.length;t++){var n=r[t],a=n.name,i=e.get(a)||0;i>0&&(n.name=a+(i-1)),i++,e.set(a,i)}}function jse(r,e,t,n){var a=Math.max(r.dimensionsDetectedCount||1,e.length,t.length,n||0);return P(e,function(i){var o;Re(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function Vse(r,e,t){if(t||e.hasKey(r)){for(var n=0;e.hasKey(r+n);)n++;r+=n}return e.set(r,!0),r}var Gse=(function(){function r(e){this.coordSysDims=[],this.axisMap=Te(),this.categoryAxisMap=Te(),this.coordSysName=e}return r})();function Hse(r){var e=r.get("coordinateSystem"),t=new Gse(e),n=Fse[e];if(n)return n(r,t,t.axisMap,t.categoryAxisMap),t}var Fse={cartesian2d:function(r,e,t,n){var a=r.getReferringComponents("xAxis",qt).models[0],i=r.getReferringComponents("yAxis",qt).models[0];e.coordSysDims=["x","y"],t.set("x",a),t.set("y",i),Nf(a)&&(n.set("x",a),e.firstCategoryDimIndex=0),Nf(i)&&(n.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(r,e,t,n){var a=r.getReferringComponents("singleAxis",qt).models[0];e.coordSysDims=["single"],t.set("single",a),Nf(a)&&(n.set("single",a),e.firstCategoryDimIndex=0)},polar:function(r,e,t,n){var a=r.getReferringComponents("polar",qt).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",i),t.set("angle",o),Nf(i)&&(n.set("radius",i),e.firstCategoryDimIndex=0),Nf(o)&&(n.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(r,e,t,n){e.coordSysDims=["lng","lat"]},parallel:function(r,e,t,n){var a=r.ecModel,i=a.getComponent("parallel",r.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();P(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),c=o[l];t.set(c,u),Nf(u)&&(n.set(c,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})},matrix:function(r,e,t,n){var a=r.getReferringComponents("matrix",qt).models[0];e.coordSysDims=["x","y"];var i=a.getDimensionModel("x"),o=a.getDimensionModel("y");t.set("x",i),t.set("y",o),n.set("x",i),n.set("y",o)}};function Nf(r){return r.get("type")==="category"}function J8(r,e,t){t=t||{};var n=t.byIndex,a=t.stackedCoordDimension,i,o,s;Use(e)?i=e:(o=e.schema,i=o.dimensions,s=e.store);var l=!!(r&&r.get("stack")),u,c,f,d;if(P(i,function(S,T){ye(S)&&(i[T]=S={name:S}),l&&!S.isExtraCoord&&(!n&&!u&&S.ordinalMeta&&(u=S),!c&&S.type!=="ordinal"&&S.type!=="time"&&(!a||a===S.coordDim)&&(c=S))}),c&&!n&&!u&&(n=!0),c){f="__\0ecstackresult_"+r.id,d="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var v=c.coordDim,g=c.type,x=0;P(i,function(S){S.coordDim===v&&x++});var y={name:f,coordDim:v,coordDimIndex:x,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},b={name:d,coordDim:d,coordDimIndex:x+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(y.storeDimIndex=s.ensureCalculationDimension(d,g),b.storeDimIndex=s.ensureCalculationDimension(f,g)),o.appendCalculationDimension(y),o.appendCalculationDimension(b)):(i.push(y),i.push(b))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:d,stackResultDimension:f}}function Use(r){return!Z8(r.schema)}function $o(r,e){return!!e&&e===r.getCalculationInfo("stackedDimension")}function FD(r,e){return $o(r,e)?r.getCalculationInfo("stackResultDimension"):e}function Yse(r,e){var t=r.get("coordinateSystem"),n=nd.get(t),a;return e&&e.coordSysDims&&(a=ce(e.coordSysDims,function(i){var o={name:i},s=e.axisMap.get(i);if(s){var l=s.get("type");o.type=Yx(l)}return o})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function Wse(r,e,t){var n,a;return t&&P(r,function(i,o){var s=i.coordDim,l=t.categoryAxisMap.get(s);l&&(n==null&&(n=o),i.ordinalMeta=l.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&n!=null&&(r[n].otherDims.itemName=0),n}function Qi(r,e,t){t=t||{};var n=e.getSourceManager(),a,i=!1;r?(i=!0,a=MD(r)):(a=n.getSource(),i=a.sourceFormat===aa);var o=Hse(e),s=Yse(e,o),l=t.useEncodeDefaulter,u=Ae(l)?l:l?Ve(zH,s,e):null,c={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},f=sd(a,c),d=Wse(f.dimensions,t.createInvertedIndices,o),v=i?null:n.getSharedDataStore(f),g=J8(e,{schema:f,store:v}),x=new cn(f,e);x.setCalculationInfo(g);var y=d!=null&&Xse(a)?function(b,S,T,C){return C===d?T:this.defaultDimValueGetter(b,S,T,C)}:null;return x.hasItemOption=!1,x.initData(i?a:v,null,y),x}function Xse(r){if(r.sourceFormat===aa){var e=qse(r.data||[]);return!ue(Xh(e))}}function qse(r){for(var e=0;e<r.length&&r[e]==null;)e++;return r[e]}function XC(r){return r.type==="interval"||r.type==="log"}function Zse(r,e,t,n,a){var i={},o=i.interval=jM(e/t,!0);n!=null&&o<n&&(o=i.interval=n),a!=null&&o>a&&(o=i.interval=a);var s=i.intervalPrecision=ig(o),l=i.niceTickExtent=[or(Math.ceil(r[0]/o)*o,s),or(Math.floor(r[1]/o)*o,s)];return $se(l,r),i}function Uw(r){var e=Math.pow(10,H1(r)),t=r/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,or(t*e)}function ig(r){return Za(r)+2}function A5(r,e,t){r[e]=Math.max(Math.min(r[e],t[1]),t[0])}function $se(r,e){!isFinite(r[0])&&(r[0]=e[0]),!isFinite(r[1])&&(r[1]=e[1]),A5(r,0,e),A5(r,1,e),r[0]>r[1]&&(r[0]=r[1])}function UD(r,e){return r>=e[0]&&r<=e[1]}var Kse=(function(){function r(){this.normalize=M5,this.scale=D5}return r.prototype.updateMethods=function(e){e.hasBreaks()?(this.normalize=xe(e.normalize,e),this.scale=xe(e.scale,e)):(this.normalize=M5,this.scale=D5)},r})();function M5(r,e){return e[1]===e[0]?.5:(r-e[0])/(e[1]-e[0])}function D5(r,e){return r*(e[1]-e[0])+e[0]}function qC(r,e,t){var n=Math.log(r);return[Math.log(t?e[0]:Math.max(0,e[0]))/n,Math.log(t?e[1]:Math.max(0,e[1]))/n]}var Nl=(function(){function r(e){this._calculator=new Kse,this._setting=e||{},this._extent=[1/0,-1/0];var t=hr();t&&(this._brkCtx=t.createScaleBreakContext(),this._brkCtx.update(this._extent))}return r.prototype.getSetting=function(e){return this._setting[e]},r.prototype._innerUnionExtent=function(e){var t=this._extent;this._innerSetExtent(e[0]<t[0]?e[0]:t[0],e[1]>t[1]?e[1]:t[1])},r.prototype.unionExtentFromData=function(e,t){this._innerUnionExtent(e.getApproximateExtent(t))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(e,t){this._innerSetExtent(e,t)},r.prototype._innerSetExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t),this._brkCtx&&this._brkCtx.update(n)},r.prototype.setBreaksFromOption=function(e){var t=hr();t&&this._innerSetBreak(t.parseAxisBreakOption(e,xe(this.parse,this)))},r.prototype._innerSetBreak=function(e){this._brkCtx&&(this._brkCtx.setBreaks(e),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},r.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},r.prototype.hasBreaks=function(){return this._brkCtx?this._brkCtx.hasBreaks():!1},r.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},r.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(e){this._isBlank=e},r})();F1(Nl);var Qse=0,og=(function(){function r(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++Qse,this._onCollect=e.onCollect}return r.createByAxisModel=function(e){var t=e.option,n=t.data,a=n&&ce(n,Jse);return new r({categories:a,needCollect:!a,deduplication:t.dedplication!==!1})},r.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},r.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!ye(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,this._onCollect&&this._onCollect(e,t),t;var a=this._getOrCreateMap();return t=a.get(e),t==null&&(n?(t=this.categories.length,this.categories[t]=e,a.set(e,t),this._onCollect&&this._onCollect(e,t)):t=NaN),t},r.prototype._getOrCreateMap=function(){return this._map||(this._map=Te(this.categories))},r})();function Jse(r){return Re(r)&&r.value!=null?r.value:r+""}var kh=(function(r){K(e,r);function e(t){var n=r.call(this,t)||this;n.type="ordinal";var a=n.getSetting("ordinalMeta");return a||(a=new og({})),ue(a)&&(a=new og({categories:ce(a,function(i){return Re(i)?i.value:i})})),n._ordinalMeta=a,n._extent=n.getSetting("extent")||[0,a.categories.length-1],n}return e.prototype.parse=function(t){return t==null?NaN:ye(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return UD(t,this._extent)&&t>=0&&t<this._ordinalMeta.categories.length},e.prototype.normalize=function(t){return t=this._getTickNumber(t),this._calculator.normalize(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(this._calculator.scale(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],n=this._extent,a=n[0];a<=n[1];)t.push({value:a}),a++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=t.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o<l;++o){var u=n[o];a[o]=u,i[u]=o}for(var c=0;o<s;++o){for(;i[c]!=null;)c++;a.push(c),i[c]=o}},e.prototype._getTickNumber=function(t){var n=this._ticksByOrdinalNumber;return n&&t>=0&&t<n.length?n[t]:t},e.prototype.getRawOrdinalNumber=function(t){var n=this._ordinalNumbersByTick;return n&&t>=0&&t<n.length?n[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var n=this.getRawOrdinalNumber(t.value),a=this._ordinalMeta.categories[n];return a==null?"":a+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e})(Nl);Nl.registerClass(kh);var Os=or,Ko=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t==null||t===""?NaN:Number(t)},e.prototype.contain=function(t){return UD(t,this._extent)},e.prototype.normalize=function(t){return this._calculator.normalize(t,this._extent)},e.prototype.scale=function(t){return this._calculator.scale(t,this._extent)},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=ig(t)},e.prototype.getTicks=function(t){t=t||{};var n=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=hr(),l=[];if(!n)return l;if(t.breakTicks==="only_break"&&s)return s.addBreaksToTicks(l,this._brkCtx.breaks,this._extent),l;var u=1e4;a[0]<i[0]&&(t.expandToNicedExtent?l.push({value:Os(i[0]-n,o)}):l.push({value:a[0]}));for(var c=function(g,x){return Math.round((x-g)/n)},f=i[0];f<=i[1];){if(l.push({value:f}),f=Os(f+n,o),this._brkCtx){var d=this._brkCtx.calcNiceTickMultiple(f,c);d>=0&&(f=Os(f+d*n,o))}if(l.length>0&&f===l[l.length-1].value)break;if(l.length>u)return[]}var v=l.length?l[l.length-1].value:i[1];return a[1]>v&&(t.expandToNicedExtent?l.push({value:Os(v+n,o)}):l.push({value:a[1]})),s&&s.pruneTicksByBreak(t.pruneByBreak,l,this._brkCtx.breaks,function(g){return g.value},this._interval,this._extent),t.breakTicks!=="none"&&s&&s.addBreaksToTicks(l,this._brkCtx.breaks,this._extent),l},e.prototype.getMinorTicks=function(t){for(var n=this.getTicks({expandToNicedExtent:!0}),a=[],i=this.getExtent(),o=1;o<n.length;o++){var s=n[o],l=n[o-1];if(!(l.break||s.break)){for(var u=0,c=[],f=s.value-l.value,d=f/t,v=ig(d);u<t-1;){var g=Os(l.value+(u+1)*d,v);g>i[0]&&g<i[1]&&c.push(g),u++}var x=hr();x&&x.pruneTicksByBreak("auto",c,this._getNonTransBreaks(),function(y){return y},this._interval,i),a.push(c)}}return a},e.prototype._getNonTransBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},e.prototype.getLabel=function(t,n){if(t==null)return"";var a=n&&n.precision;a==null?a=Za(t.value)||0:a==="auto"&&(a=this._intervalPrecision);var i=Os(t.value,a,!0);return yD(i)},e.prototype.calcNiceTicks=function(t,n,a){t=t||5;var i=this._extent.slice(),o=this._getExtentSpanWithBreaks();if(isFinite(o)){o<0&&(o=-o,i.reverse(),this._innerSetExtent(i[0],i[1]),i=this._extent.slice());var s=Zse(i,o,t,n,a);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var n=this._extent.slice();if(n[0]===n[1])if(n[0]!==0){var a=Math.abs(n[0]);t.fixMax||(n[1]+=a/2),n[0]-=a/2}else n[1]=1;var i=n[1]-n[0];isFinite(i)||(n[0]=0,n[1]=1),this._innerSetExtent(n[0],n[1]),n=this._extent.slice(),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var o=this._interval,s=this._intervalPrecision;t.fixMin||(n[0]=Os(Math.floor(n[0]/o)*o,s)),t.fixMax||(n[1]=Os(Math.ceil(n[1]/o)*o,s)),this._innerSetExtent(n[0],n[1])},e.prototype.setNiceExtent=function(t,n){this._niceExtent=[t,n]},e.type="interval",e})(Nl);Nl.registerClass(Ko);var eF=typeof Float32Array<"u",ele=eF?Float32Array:Array;function Oi(r){return ue(r)?eF?new Float32Array(r):r:new ele(r)}var ZC="__ec_stack_";function tF(r){return r.get("stack")||ZC+r.seriesIndex}function YD(r){return r.dim+r.index}function tle(r){var e=[],t=r.axis,n="axis0";if(t.type==="category"){for(var a=t.getBandWidth(),i=0;i<r.count;i++)e.push(Ne({bandWidth:a,axisKey:n,stackId:ZC+i},r));for(var o=aF(e),s=[],i=0;i<r.count;i++){var l=o[n][ZC+i];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function rF(r,e){var t=[];return e.eachSeriesByType(r,function(n){sF(n)&&t.push(n)}),t}function rle(r){var e={};P(r,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var f=l.getData(),d=c.dim+"_"+c.index,v=f.getDimensionIndex(f.mapDimension(c.dim)),g=f.getStore(),x=0,y=g.count();x<y;++x){var b=g.get(v,x);e[d]?e[d].push(b):e[d]=[b]}});var t={};for(var n in e)if(e.hasOwnProperty(n)){var a=e[n];if(a){a.sort(function(l,u){return l-u});for(var i=null,o=1;o<a.length;++o){var s=a[o]-a[o-1];s>0&&(i=i===null?s:Math.min(i,s))}t[n]=i}}return t}function nF(r){var e=rle(r),t=[];return P(r,function(n){var a=n.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=e[l],c=Math.abs(o[1]-o[0]),f=i.scale.getExtent(),d=Math.abs(f[1]-f[0]);s=u?c/d*u:c}else{var v=n.getData();s=Math.abs(o[1]-o[0])/v.count()}var g=me(n.get("barWidth"),s),x=me(n.get("barMaxWidth"),s),y=me(n.get("barMinWidth")||(lF(n)?.5:1),s),b=n.get("barGap"),S=n.get("barCategoryGap"),T=n.get("defaultBarGap");t.push({bandWidth:s,barWidth:g,barMaxWidth:x,barMinWidth:y,barGap:b,barCategoryGap:S,defaultBarGap:T,axisKey:YD(i),stackId:tF(n)})}),aF(t)}function aF(r){var e={};P(r,function(n,a){var i=n.axisKey,o=n.bandWidth,s=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:n.defaultBarGap||0,stacks:{}},l=s.stacks;e[i]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=n.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=n.barMaxWidth;f&&(l[u].maxWidth=f);var d=n.barMinWidth;d&&(l[u].minWidth=d);var v=n.barGap;v!=null&&(s.gap=v);var g=n.barCategoryGap;g!=null&&(s.categoryGap=g)});var t={};return P(e,function(n,a){t[a]={};var i=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=nt(i).length;s=Math.max(35-l*4,15)+"%"}var u=me(s,o),c=me(n.gap,1),f=n.remainedWidth,d=n.autoWidthCount,v=(f-u)/(d+(d-1)*c);v=Math.max(v,0),P(i,function(b){var S=b.maxWidth,T=b.minWidth;if(b.width){var C=b.width;S&&(C=Math.min(C,S)),T&&(C=Math.max(C,T)),b.width=C,f-=C+c*C,d--}else{var C=v;S&&S<C&&(C=Math.min(S,f)),T&&T>C&&(C=T),C!==v&&(b.width=C,f-=C+c*C,d--)}}),v=(f-u)/(d+(d-1)*c),v=Math.max(v,0);var g=0,x;P(i,function(b,S){b.width||(b.width=v),x=b,g+=b.width*(1+c)}),x&&(g-=x.width*c);var y=-g/2;P(i,function(b,S){t[a][S]=t[a][S]||{bandWidth:o,offset:y,width:b.width},y+=b.width*(1+c)})}),t}function nle(r,e,t){if(r&&e){var n=r[YD(e)];return n}}function iF(r,e){var t=rF(r,e),n=nF(t);P(t,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=tF(a),u=n[YD(s)][l],c=u.offset,f=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function oF(r){return{seriesType:r,plan:ad(),reset:function(e){if(sF(e)){var t=e.getData(),n=e.coordinateSystem,a=n.getBaseAxis(),i=n.getOtherAxis(a),o=t.getDimensionIndex(t.mapDimension(i.dim)),s=t.getDimensionIndex(t.mapDimension(a.dim)),l=e.get("showBackground",!0),u=t.mapDimension(i.dim),c=t.getCalculationInfo("stackResultDimension"),f=$o(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),d=i.isHorizontal(),v=ale(a,i),g=lF(e),x=e.get("barMinHeight")||0,y=c&&t.getDimensionIndex(c),b=t.getLayout("size"),S=t.getLayout("offset");return{progress:function(T,C){for(var M=T.count,D=g&&Oi(M*3),L=g&&l&&Oi(M*3),E=g&&Oi(M),R=n.master.getRect(),I=d?R.width:R.height,k,z=C.getStore(),O=0;(k=T.next())!=null;){var G=z.get(f?y:o,k),F=z.get(s,k),B=v,Y=void 0;f&&(Y=+G-z.get(o,k));var H=void 0,X=void 0,V=void 0,W=void 0;if(d){var $=n.dataToPoint([G,F]);if(f){var te=n.dataToPoint([Y,F]);B=te[0]}H=B,X=$[1]+S,V=$[0]-B,W=b,Math.abs(V)<x&&(V=(V<0?-1:1)*x)}else{var $=n.dataToPoint([F,G]);if(f){var te=n.dataToPoint([F,Y]);B=te[1]}H=$[0]+S,X=B,V=b,W=$[1]-B,Math.abs(W)<x&&(W=(W<=0?-1:1)*x)}g?(D[O]=H,D[O+1]=X,D[O+2]=d?V:W,L&&(L[O]=d?R.x:H,L[O+1]=d?X:R.y,L[O+2]=I),E[k]=k):C.setItemLayout(k,{x:H,y:X,width:V,height:W}),O+=3}g&&C.setLayout({largePoints:D,largeDataIndices:E,largeBackgroundPoints:L,valueAxisHorizontal:d})}}}}}}function sF(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function lF(r){return r.pipelineContext&&r.pipelineContext.large}function ale(r,e){var t=e.model.get("startValue");return t||(t=0),e.toGlobalCoord(e.dataToCoord(e.type==="log"?t>0?t:1:t))}var ile=function(r,e,t,n){for(;t<n;){var a=t+n>>>1;r[a][1]<e?t=a+1:n=a}return t},WD=(function(r){K(e,r);function e(t){var n=r.call(this,t)||this;return n.type="time",n}return e.prototype.getLabel=function(t){var n=this.getSetting("useUTC");return Vg(t.value,xP[Dae(Lp(this._minLevelUnit))]||xP.second,n,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,n,a){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return Lae(t,n,a,o,i)},e.prototype.getTicks=function(t){t=t||{};var n=this._interval,a=this._extent,i=hr(),o=[];if(!n)return o;var s=this.getSetting("useUTC");if(i&&t.breakTicks==="only_break")return hr().addBreaksToTicks(o,this._brkCtx.breaks,this._extent),o;var l=Qf(a[1],s);o.push({value:a[0],time:{level:0,upperTimeUnit:l,lowerTimeUnit:l}});var u=hle(this._minLevelUnit,this._approxInterval,s,a,this._getExtentSpanWithBreaks(),this._brkCtx);o=o.concat(u);var c=Qf(a[1],s);o.push({value:a[1],time:{level:0,upperTimeUnit:c,lowerTimeUnit:c}});var f=this.getSetting("useUTC"),d=Wn.length-1,v=0;return P(o,function(g){d=Math.min(d,Ge(Wn,g.time.upperTimeUnit)),v=Math.max(v,g.time.level)}),i&&hr().pruneTicksByBreak(t.pruneByBreak,o,this._brkCtx.breaks,function(g){return g.value},this._approxInterval,this._extent),i&&t.breakTicks!=="none"&&hr().addBreaksToTicks(o,this._brkCtx.breaks,this._extent,function(g){for(var x=Math.max(Ge(Wn,Qf(g.vmin,f)),Ge(Wn,Qf(g.vmax,f))),y=0,b=0;b<Wn.length;b++)if(!uF(Wn[b],g.vmin,g.vmax,f)){y=b;break}var S=Math.min(y,d),T=Math.max(S,x);return{level:v,lowerTimeUnit:Wn[T],upperTimeUnit:Wn[S]}}),o},e.prototype.calcNiceExtent=function(t){var n=this.getExtent();if(n[0]===n[1]&&(n[0]-=Da,n[1]+=Da),n[1]===-1/0&&n[0]===1/0){var a=new Date;n[1]=+new Date(a.getFullYear(),a.getMonth(),a.getDate()),n[0]=n[1]-Da}this._innerSetExtent(n[0],n[1]),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,n,a){t=t||10;var i=this._getExtentSpanWithBreaks();this._approxInterval=i/t,n!=null&&this._approxInterval<n&&(this._approxInterval=n),a!=null&&this._approxInterval>a&&(this._approxInterval=a);var o=qy.length,s=Math.min(ile(qy,this._approxInterval,0,o),o-1);this._interval=qy[s][1],this._intervalPrecision=ig(this._interval),this._minLevelUnit=qy[Math.max(s-1,0)][0]},e.prototype.parse=function(t){return it(t)?t:+$i(t)},e.prototype.contain=function(t){return UD(t,this._extent)},e.prototype.normalize=function(t){return this._calculator.normalize(t,this._extent)},e.prototype.scale=function(t){return this._calculator.scale(t,this._extent)},e.type="time",e})(Ko),qy=[["second",cD],["minute",fD],["hour",Dp],["quarter-day",Dp*6],["half-day",Dp*12],["day",Da*1.2],["half-week",Da*3.5],["week",Da*7],["month",Da*31],["quarter",Da*95],["half-year",yP/2],["year",yP]];function uF(r,e,t,n){return kx(new Date(e),r,n).getTime()===kx(new Date(t),r,n).getTime()}function ole(r,e){return r/=Da,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function sle(r){var e=30*Da;return r/=e,r>6?6:r>3?3:r>2?2:1}function lle(r){return r/=Dp,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function L5(r,e){return r/=e?fD:cD,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function ule(r){return jM(r,!0)}function cle(r,e,t){var n=Math.max(0,Ge(Wn,e)-1);return kx(new Date(r),Wn[n],t).getTime()}function fle(r,e){var t=new Date(0);t[r](1);var n=t.getTime();t[r](1+e);var a=t.getTime()-n;return function(i,o){return Math.max(0,Math.round((o-i)/a))}}function hle(r,e,t,n,a,i){var o=1e4,s=Tae,l=0;function u(O,G,F,B,Y,H,X){for(var V=fle(Y,O),W=G,$=new Date(W);W<F&&W<=n[1]&&(X.push({value:W}),!(l++>o));)if($[Y]($[B]()+O),W=$.getTime(),i){var te=i.calcNiceTickMultiple(W,V);te>0&&($[Y]($[B]()+te*O),W=$.getTime())}X.push({value:W,notAdd:!0})}function c(O,G,F){var B=[],Y=!G.length;if(!uF(Lp(O),n[0],n[1],t)){Y&&(G=[{value:cle(n[0],O,t)},{value:n[1]}]);for(var H=0;H<G.length-1;H++){var X=G[H].value,V=G[H+1].value;if(X!==V){var W=void 0,$=void 0,te=void 0,le=!1;switch(O){case"year":W=Math.max(1,Math.round(e/Da/365)),$=gH(t),te=Nae(t);break;case"half-year":case"quarter":case"month":W=sle(e),$=hD(t),te=mH(t);break;case"week":case"half-week":case"day":W=ole(e),$=dD(t),te=yH(t),le=!0;break;case"half-day":case"quarter-day":case"hour":W=lle(e),$=vD(t),te=xH(t);break;case"minute":W=L5(e,!0),$=pD(t),te=bH(t);break;case"second":W=L5(e,!1),$=gD(t),te=_H(t);break;case"millisecond":W=ule(e),$=mD(t),te=SH(t);break}V>=n[0]&&X<=n[1]&&u(W,X,V,$,te,le,B),O==="year"&&F.length>1&&H===0&&F.unshift({value:F[0].value-W})}}for(var H=0;H<B.length;H++)F.push(B[H])}}for(var f=[],d=[],v=0,g=0,x=0;x<s.length;++x){var y=Lp(s[x]);if(Mae(s[x])){c(s[x],f[f.length-1]||[],d);var b=s[x+1]?Lp(s[x+1]):null;if(y!==b){if(d.length){g=v,d.sort(function(O,G){return O.value-G.value});for(var S=[],T=0;T<d.length;++T){var C=d[T].value;(T===0||d[T-1].value!==C)&&(S.push(d[T]),C>=n[0]&&C<=n[1]&&v++)}var M=a/e;if(v>M*1.5&&g>M/1.5||(f.push(S),v>M||r===s[x]))break}d=[]}}}for(var D=ht(ce(f,function(O){return ht(O,function(G){return G.value>=n[0]&&G.value<=n[1]&&!G.notAdd})}),function(O){return O.length>0}),L=[],E=D.length-1,x=0;x<D.length;++x)for(var R=D[x],I=0;I<R.length;++I){var k=Qf(R[I].value,t);L.push({value:R[I].value,time:{level:E-x,upperTimeUnit:k,lowerTimeUnit:k}})}L.sort(function(O,G){return O.value-G.value});for(var z=[],x=0;x<L.length;++x)(x===0||L[x].value!==L[x-1].value)&&z.push(L[x]);return z}Nl.registerClass(WD);var $C=or,dle=Math.floor,vle=Math.ceil,Zy=Math.pow,$y=Math.log,cF=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new Ko,t}return e.prototype.getTicks=function(t){t=t||{};var n=this._extent.slice(),a=this._originalScale.getExtent(),i=r.prototype.getTicks.call(this,t),o=this.base,s=this._originalScale._innerGetBreaks(),l=hr();return ce(i,function(u){var c=u.value,f=null,d=Zy(o,c);c===n[0]&&this._fixMin?f=a[0]:c===n[1]&&this._fixMax&&(f=a[1]);var v;if(l){var g=l.getTicksLogTransformBreak(u,o,s,Ky);v=g.vBreak,f==null&&(f=g.brkRoundingCriterion)}return f!=null&&(d=Ky(d,f)),{value:d,break:v}},this)},e.prototype._getNonTransBreaks=function(){return this._originalScale._innerGetBreaks()},e.prototype.setExtent=function(t,n){this._originalScale.setExtent(t,n);var a=qC(this.base,[t,n]);r.prototype.setExtent.call(this,a[0],a[1])},e.prototype.getExtent=function(){var t=this.base,n=r.prototype.getExtent.call(this);n[0]=Zy(t,n[0]),n[1]=Zy(t,n[1]);var a=this._originalScale.getExtent();return this._fixMin&&(n[0]=Ky(n[0],a[0])),this._fixMax&&(n[1]=Ky(n[1],a[1])),n},e.prototype.unionExtentFromData=function(t,n){this._originalScale.unionExtentFromData(t,n);var a=qC(this.base,t.getApproximateExtent(n),!0);this._innerUnionExtent(a)},e.prototype.calcNiceTicks=function(t){t=t||10;var n=this._extent.slice(),a=this._getExtentSpanWithBreaks();if(!(!isFinite(a)||a<=0)){var i=p6(a),o=t/a*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[$C(vle(n[0]/i)*i),$C(dle(n[1]/i)*i)];this._interval=i,this._intervalPrecision=ig(i),this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){r.prototype.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.contain=function(t){return t=$y(t)/$y(this.base),r.prototype.contain.call(this,t)},e.prototype.normalize=function(t){return t=$y(t)/$y(this.base),r.prototype.normalize.call(this,t)},e.prototype.scale=function(t){return t=r.prototype.scale.call(this,t),Zy(this.base,t)},e.prototype.setBreaksFromOption=function(t){var n=hr();if(n){var a=n.logarithmicParseBreaksFromOption(t,this.base,xe(this.parse,this)),i=a.parsedOriginal,o=a.parsedLogged;this._originalScale._innerSetBreak(i),this._innerSetBreak(o)}},e.type="log",e})(Ko);function Ky(r,e){return $C(r,Za(e))}Nl.registerClass(cF);var ple=(function(){function r(e,t,n){this._prepareParams(e,t,n)}return r.prototype._prepareParams=function(e,t,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var a=this._isOrdinal=e.type==="ordinal";this._needCrossZero=e.type==="interval"&&t.getNeedCrossZero&&t.getNeedCrossZero();var i=t.get("min",!0);i==null&&(i=t.get("startValue",!0));var o=this._modelMinRaw=i;Ae(o)?this._modelMinNum=Qy(e,o({min:n[0],max:n[1]})):o!=="dataMin"&&(this._modelMinNum=Qy(e,o));var s=this._modelMaxRaw=t.get("max",!0);if(Ae(s)?this._modelMaxNum=Qy(e,s({min:n[0],max:n[1]})):s!=="dataMax"&&(this._modelMaxNum=Qy(e,s)),a)this._axisDataLen=t.getCategories().length;else{var l=t.get("boundaryGap"),u=ue(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[ai(u[0],1),ai(u[1],1)]}},r.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,n=this._dataMax,a=this._axisDataLen,i=this._boundaryGapInner,o=e?null:n-t||Math.abs(t),s=this._modelMinRaw==="dataMin"?t:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,u=s!=null,c=l!=null;s==null&&(s=e?a?0:NaN:t-i[0]*o),l==null&&(l=e?a?a-1:NaN:n+i[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var f=Zr(s)||Zr(l)||e&&!a;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var d=this._determinedMin,v=this._determinedMax;return d!=null&&(s=d,u=!0),v!=null&&(l=v,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},r.prototype.modifyDataMinMax=function(e,t){this[mle[e]]=t},r.prototype.setDeterminedMinMax=function(e,t){var n=gle[e];this[n]=t},r.prototype.freeze=function(){this.frozen=!0},r})(),gle={min:"_determinedMin",max:"_determinedMax"},mle={min:"_dataMin",max:"_dataMax"};function fF(r,e,t){var n=r.rawExtentInfo;return n||(n=new ple(r,e,t),r.rawExtentInfo=n,n)}function Qy(r,e){return e==null?null:Zr(e)?NaN:r.parse(e)}function hF(r,e){var t=r.type,n=fF(r,e,r.getExtent()).calculate();r.setBlank(n.isBlank);var a=n.min,i=n.max,o=e.ecModel;if(o&&t==="time"){var s=rF("bar",o),l=!1;if(P(s,function(f){l=l||f.getBaseAxis()===e.axis}),l){var u=nF(s),c=yle(a,i,e,u);a=c.min,i=c.max}}return{extent:[a,i],fixMin:n.minFixed,fixMax:n.maxFixed}}function yle(r,e,t,n){var a=t.axis.getExtent(),i=Math.abs(a[1]-a[0]),o=nle(n,t.axis);if(o===void 0)return{min:r,max:e};var s=1/0;P(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;P(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-r,f=1-(s+l)/i,d=c/f-c;return e+=d*(l/u),r-=d*(s/u),{min:r,max:e}}function vc(r,e){var t=e,n=hF(r,t),a=n.extent,i=t.get("splitNumber");r instanceof cF&&(r.base=t.get("logBase"));var o=r.type,s=t.get("interval"),l=o==="interval"||o==="time";r.setBreaksFromOption(vF(t)),r.setExtent(a[0],a[1]),r.calcNiceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?t.get("minInterval"):null,maxInterval:l?t.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function Fg(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new kh({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new WD({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(Nl.getClass(e)||Ko)}}function xle(r){var e=r.scale.getExtent(),t=e[0],n=e[1];return!(t>0&&n>0||t<0&&n<0)}function ld(r){var e=r.getLabelModel().get("formatter");if(r.type==="time"){var t=Cae(e);return function(a,i){return r.scale.getFormattedLabel(a,i,t)}}else{if(ye(e))return function(a){var i=r.scale.getLabel(a),o=e.replace("{value}",i??"");return o};if(Ae(e)){if(r.type==="category")return function(a,i){return e(Wx(r,a),a.value-r.scale.getExtent()[0],null)};var n=hr();return function(a,i){var o=null;return n&&(o=n.makeAxisLabelFormatterParamBreak(o,a.break)),e(Wx(r,a),i,o)}}else return function(a){return r.scale.getLabel(a)}}}function Wx(r,e){return r.type==="category"?r.scale.getLabel(e):e.value}function XD(r){var e=r.get("interval");return e??"auto"}function dF(r){return r.type==="category"&&XD(r.getLabelModel())===0}function Xx(r,e){var t={};return P(r.mapDimensionsAll(e),function(n){t[FD(r,n)]=!0}),nt(t)}function ble(r,e,t){e&&P(Xx(e,t),function(n){var a=e.getApproximateExtent(n);a[0]<r[0]&&(r[0]=a[0]),a[1]>r[1]&&(r[1]=a[1])})}function Oh(r){return r==="middle"||r==="center"}function sg(r){return r.getShallow("show")}function vF(r){var e=r.get("breaks",!0);if(e!=null)return!hr()||!_le(r.axis)?void 0:e}function _le(r){return(r.dim==="x"||r.dim==="y"||r.dim==="z"||r.dim==="single")&&r.type!=="category"}var ud=(function(){function r(){}return r.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},r.prototype.getCoordSysModel=function(){},r})();function Sle(r){return Qi(null,r)}var wle={isDimensionStacked:$o,enableDataStack:J8,getStackedDimension:FD};function Tle(r,e){var t=e;e instanceof Je||(t=new Je(e));var n=Fg(t);return n.setExtent(r[0],r[1]),vc(n,t),n}function Cle(r){Qt(r,ud)}function Ale(r,e){return e=e||{},Mt(r,null,null,e.state!=="normal")}const Mle=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:zse,createList:Sle,createScale:Tle,createSymbol:lr,createTextStyle:Ale,dataStack:wle,enableHoverEmphasis:cl,getECData:ze,getLayoutRect:Gt,mixinAxisModelCommonMethods:Cle},Symbol.toStringTag,{value:"Module"}));var Dle=1e-8;function N5(r,e){return Math.abs(r-e)<Dle}function Lu(r,e,t){var n=0,a=r[0];if(!a)return!1;for(var i=1;i<r.length;i++){var o=r[i];n+=Mo(a[0],a[1],o[0],o[1],e,t),a=o}var s=r[0];return(!N5(a[0],s[0])||!N5(a[1],s[1]))&&(n+=Mo(a[0],a[1],s[0],s[1],e,t)),n!==0}var Lle=[];function Yw(r,e){for(var t=0;t<r.length;t++)Kt(r[t],r[t],e)}function R5(r,e,t,n){for(var a=0;a<r.length;a++){var i=r[a];n&&(i=n.project(i)),i&&isFinite(i[0])&&isFinite(i[1])&&(Io(e,e,i),ko(t,t,i))}}function Nle(r){for(var e=0,t=0,n=0,a=r.length,i=r[a-1][0],o=r[a-1][1],s=0;s<a;s++){var l=r[s][0],u=r[s][1],c=i*u-l*o;e+=c,t+=(i+l)*c,n+=(o+u)*c,i=l,o=u}return e?[t/e/3,n/e/3,e]:[r[0][0]||0,r[0][1]||0]}var pF=(function(){function r(e){this.name=e}return r.prototype.setCenter=function(e){this._center=e},r.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},r})(),E5=(function(){function r(e,t){this.type="polygon",this.exterior=e,this.interiors=t}return r})(),I5=(function(){function r(e){this.type="linestring",this.points=e}return r})(),gF=(function(r){K(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.type="geoJSON",i.geometries=n,i._center=a&&[a[0],a[1]],i}return e.prototype.calcCenter=function(){for(var t=this.geometries,n,a=0,i=0;i<t.length;i++){var o=t[i],s=o.exterior,l=s&&s.length;l>a&&(n=o,a=l)}if(n)return Nle(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var n=this._rect;if(n&&!t)return n;var a=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return P(o,function(s){s.type==="polygon"?R5(s.exterior,a,i,t):P(s.points,function(l){R5(l,a,i,t)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])||(a[0]=a[1]=i[0]=i[1]=0),n=new ke(a[0],a[1],i[0]-a[0],i[1]-a[1]),t||(this._rect=n),n},e.prototype.contain=function(t){var n=this.getBoundingRect(),a=this.geometries;if(!n.contain(t[0],t[1]))return!1;e:for(var i=0,o=a.length;i<o;i++){var s=a[i];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(Lu(l,t[0],t[1])){for(var c=0;c<(u?u.length:0);c++)if(Lu(u[c],t[0],t[1]))continue e;return!0}}}return!1},e.prototype.transformTo=function(t,n,a,i){var o=this.getBoundingRect(),s=o.width/o.height;a?i||(i=a/s):a=s*i;for(var l=new ke(t,n,a,i),u=o.calculateTransform(l),c=this.geometries,f=0;f<c.length;f++){var d=c[f];d.type==="polygon"?(Yw(d.exterior,u),P(d.interiors,function(v){Yw(v,u)})):P(d.points,function(v){Yw(v,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},e.prototype.cloneShallow=function(t){t==null&&(t=this.name);var n=new e(t,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},e})(pF),Rle=(function(r){K(e,r);function e(t,n){var a=r.call(this,t)||this;return a.type="geoSVG",a._elOnlyForCalculate=n,a}return e.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,n=t.getBoundingRect(),a=[n.x+n.width/2,n.y+n.height/2],i=Eg(Lle),o=t;o&&!o.isGeoSVGGraphicRoot;)Ka(i,o.getLocalTransform(),i),o=o.parent;return Ea(i,i),Kt(a,a,i),a},e})(pF);function Ele(r){if(!r.UTF8Encoding)return r;var e=r,t=e.UTF8Scale;t==null&&(t=1024);var n=e.features;return P(n,function(a){var i=a.geometry,o=i.encodeOffsets,s=i.coordinates;if(o)switch(i.type){case"LineString":i.coordinates=mF(s,o,t);break;case"Polygon":Ww(s,o,t);break;case"MultiLineString":Ww(s,o,t);break;case"MultiPolygon":P(s,function(l,u){return Ww(l,o[u],t)})}}),e.UTF8Encoding=!1,e}function Ww(r,e,t){for(var n=0;n<r.length;n++)r[n]=mF(r[n],e[n],t)}function mF(r,e,t){for(var n=[],a=e[0],i=e[1],o=0;o<r.length;o+=2){var s=r.charCodeAt(o)-64,l=r.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=a,l+=i,a=s,i=l,n.push([s/t,l/t])}return n}function KC(r,e){return r=Ele(r),ce(ht(r.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var n=t.properties,a=t.geometry,i=[];switch(a.type){case"Polygon":var o=a.coordinates;i.push(new E5(o[0],o.slice(1)));break;case"MultiPolygon":P(a.coordinates,function(l){l[0]&&i.push(new E5(l[0],l.slice(1)))});break;case"LineString":i.push(new I5([a.coordinates]));break;case"MultiLineString":i.push(new I5(a.coordinates))}var s=new gF(n[e||"name"],i,n.cp);return s.properties=n,s})}const Ile=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:fC,asc:Jn,getPercentWithPrecision:Qte,getPixelPrecision:zM,getPrecision:Za,getPrecisionSafe:d6,isNumeric:VM,isRadianAroundZero:Dh,linearMap:vt,nice:jM,numericToNumber:Ui,parseDate:$i,parsePercent:me,quantile:F0,quantity:p6,quantityExponent:H1,reformIntervals:hC,remRadian:BM,round:or},Symbol.toStringTag,{value:"Module"})),kle=Object.freeze(Object.defineProperty({__proto__:null,format:Vg,parse:$i,roundTime:kx},Symbol.toStringTag,{value:"Module"})),Ole=Object.freeze(Object.defineProperty({__proto__:null,Arc:zg,BezierCurve:Kh,BoundingRect:ke,Circle:Ki,CompoundPath:Bg,Ellipse:Pg,Group:De,Image:Nr,IncrementalDisplayable:tH,Line:sr,LinearGradient:bc,Polygon:Jr,Polyline:Vr,RadialGradient:JM,Rect:We,Ring:$h,Sector:Qr,Text:at,clipPointsByRect:nD,clipRectByRect:oH,createIcon:Jh,extendPath:aH,extendShape:nH,getShapeClass:Qp,getTransform:fl,initProps:zt,makeImage:tD,makePath:Nh,mergePath:Kn,registerShape:Pa,resizePath:rD,updateProps:ot},Symbol.toStringTag,{value:"Module"})),Ple=Object.freeze(Object.defineProperty({__proto__:null,addCommas:yD,capitalFirst:kae,encodeHTML:ln,formatTime:Iae,formatTpl:bD,getTextRect:Rae,getTooltipMarker:wH,normalizeCssArray:rd,toCamelCase:xD,truncateText:Rre},Symbol.toStringTag,{value:"Module"})),zle=Object.freeze(Object.defineProperty({__proto__:null,bind:xe,clone:Me,curry:Ve,defaults:Ne,each:P,extend:ie,filter:ht,indexOf:Ge,inherits:LM,isArray:ue,isFunction:Ae,isObject:Re,isString:ye,map:ce,merge:Fe,reduce:Ra},Symbol.toStringTag,{value:"Module"}));var Ble=Ke(),Rp=Ke(),ii={estimate:1,determine:2};function qx(r){return{out:{noPxChangeTryDetermine:[]},kind:r}}function yF(r,e){var t=ce(e,function(n){return r.scale.parse(n)});return r.type==="time"&&t.length>0&&(t.sort(),t.unshift(t[0]),t.push(t[t.length-1])),t}function jle(r,e){var t=r.getLabelModel().get("customValues");if(t){var n=ld(r),a=r.scale.getExtent(),i=yF(r,t),o=ht(i,function(s){return s>=a[0]&&s<=a[1]});return{labels:ce(o,function(s){var l={value:s};return{formattedLabel:n(l),rawLabel:r.scale.getLabel(l),tickValue:s,time:void 0,break:void 0}})}}return r.type==="category"?Gle(r,e):Fle(r)}function Vle(r,e,t){var n=r.getTickModel().get("customValues");if(n){var a=r.scale.getExtent(),i=yF(r,n);return{ticks:ht(i,function(o){return o>=a[0]&&o<=a[1]})}}return r.type==="category"?Hle(r,e):{ticks:ce(r.scale.getTicks(t),function(o){return o.value})}}function Gle(r,e){var t=r.getLabelModel(),n=xF(r,t,e);return!t.get("show")||r.scale.isBlank()?{labels:[]}:n}function xF(r,e,t){var n=Yle(r),a=XD(e),i=t.kind===ii.estimate;if(!i){var o=_F(n,a);if(o)return o}var s,l;Ae(a)?s=TF(r,a):(l=a==="auto"?Wle(r,t):a,s=wF(r,l));var u={labels:s,labelCategoryInterval:l};return i?t.out.noPxChangeTryDetermine.push(function(){return QC(n,a,u),!0}):QC(n,a,u),u}function Hle(r,e){var t=Ule(r),n=XD(e),a=_F(t,n);if(a)return a;var i,o;if((!e.get("show")||r.scale.isBlank())&&(i=[]),Ae(n))i=TF(r,n,!0);else if(n==="auto"){var s=xF(r,r.getLabelModel(),qx(ii.determine));o=s.labelCategoryInterval,i=ce(s.labels,function(l){return l.tickValue})}else o=n,i=wF(r,o,!0);return QC(t,n,{ticks:i,tickCategoryInterval:o})}function Fle(r){var e=r.scale.getTicks(),t=ld(r);return{labels:ce(e,function(n,a){return{formattedLabel:t(n,a),rawLabel:r.scale.getLabel(n),tickValue:n.value,time:n.time,break:n.break}})}}var Ule=bF("axisTick"),Yle=bF("axisLabel");function bF(r){return function(t){return Rp(t)[r]||(Rp(t)[r]={list:[]})}}function _F(r,e){for(var t=0;t<r.list.length;t++)if(r.list[t].key===e)return r.list[t].value}function QC(r,e,t){return r.list.push({key:e,value:t}),t}function Wle(r,e){if(e.kind===ii.estimate){var t=r.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return Rp(r).autoInterval=t,!0}),t}var n=Rp(r).autoInterval;return n??(Rp(r).autoInterval=r.calculateCategoryInterval(e))}function Xle(r,e){var t=e.kind,n=Zle(r),a=ld(r),i=(n.axisRotate-n.labelRotate)/180*Math.PI,o=r.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1,c=40;l>c&&(u=Math.max(1,Math.floor(l/c)));for(var f=s[0],d=r.dataToCoord(f+1)-r.dataToCoord(f),v=Math.abs(d*Math.cos(i)),g=Math.abs(d*Math.sin(i)),x=0,y=0;f<=s[1];f+=u){var b=0,S=0,T=V1(a({value:f}),n.font,"center","top");b=T.width*1.3,S=T.height*1.3,x=Math.max(x,b,7),y=Math.max(y,S,7)}var C=x/v,M=y/g;isNaN(C)&&(C=1/0),isNaN(M)&&(M=1/0);var D=Math.max(0,Math.floor(Math.min(C,M)));if(t===ii.estimate)return e.out.noPxChangeTryDetermine.push(xe(qle,null,r,D,l)),D;var L=SF(r,D,l);return L??D}function qle(r,e,t){return SF(r,e,t)==null}function SF(r,e,t){var n=Ble(r.model),a=r.getExtent(),i=n.lastAutoInterval,o=n.lastTickCount;if(i!=null&&o!=null&&Math.abs(i-e)<=1&&Math.abs(o-t)<=1&&i>e&&n.axisExtent0===a[0]&&n.axisExtent1===a[1])return i;n.lastTickCount=t,n.lastAutoInterval=e,n.axisExtent0=a[0],n.axisExtent1=a[1]}function Zle(r){var e=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function wF(r,e,t){var n=ld(r),a=r.scale,i=a.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=i[0],c=a.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=dF(r),d=o.get("showMinLabel")||f,v=o.get("showMaxLabel")||f;d&&u!==i[0]&&x(i[0]);for(var g=u;g<=i[1];g+=l)x(g);v&&g-l!==i[1]&&x(i[1]);function x(y){var b={value:y};s.push(t?y:{formattedLabel:n(b),rawLabel:a.getLabel(b),tickValue:y,time:void 0,break:void 0})}return s}function TF(r,e,t){var n=r.scale,a=ld(r),i=[];return P(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;e(o.value,s)&&i.push(t?l:{formattedLabel:a(o),rawLabel:s,tickValue:l,time:void 0,break:void 0})}),i}var k5=[0,1],za=(function(){function r(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return r.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),a=Math.max(t[0],t[1]);return e>=n&&e<=a},r.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(e){return zM(e||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},r.prototype.dataToCoord=function(e,t){var n=this._extent,a=this.scale;return e=a.normalize(a.parse(e)),this.onBand&&a.type==="ordinal"&&(n=n.slice(),O5(n,a.count())),vt(e,k5,n,t)},r.prototype.coordToData=function(e,t){var n=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(n=n.slice(),O5(n,a.count()));var i=vt(e,n,k5,t);return this.scale.scale(i)},r.prototype.pointToData=function(e,t){},r.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),n=Vle(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),a=n.ticks,i=ce(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=t.get("alignWithLabel");return $le(this,i,o,e.clamp),i},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var n=this.scale.getMinorTicks(t),a=ce(n,function(i){return ce(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},r.prototype.getViewLabels=function(e){return e=e||qx(ii.determine),jle(this,e).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+(this.onBand?1:0);n===0&&(n=1);var a=Math.abs(e[1]-e[0]);return Math.abs(a)/n},r.prototype.calculateCategoryInterval=function(e){return e=e||qx(ii.determine),Xle(this,e)},r})();function O5(r,e){var t=r[1]-r[0],n=e,a=t/n/2;r[0]+=a,r[1]-=a}function $le(r,e,t,n){var a=e.length;if(!r.onBand||t||!a)return;var i=r.getExtent(),o,s;if(a===1)e[0].coord=i[0],e[0].onBand=!0,o=e[1]={coord:i[1],tickValue:e[0].tickValue,onBand:!0};else{var l=e[a-1].tickValue-e[0].tickValue,u=(e[a-1].coord-e[0].coord)/l;P(e,function(v){v.coord-=u/2,v.onBand=!0});var c=r.scale.getExtent();s=1+c[1]-e[a-1].tickValue,o={coord:e[a-1].coord+u*s,tickValue:c[1]+1,onBand:!0},e.push(o)}var f=i[0]>i[1];d(e[0].coord,i[0])&&(n?e[0].coord=i[0]:e.shift()),n&&d(i[0],e[0].coord)&&e.unshift({coord:i[0],onBand:!0}),d(i[1],o.coord)&&(n?o.coord=i[1]:e.pop()),n&&d(o.coord,i[1])&&e.push({coord:i[1],onBand:!0});function d(v,g){return v=or(v),g=or(g),f?v>g:v<g}}function Kle(r){var e=$e.extend(r);return $e.registerClass(e),e}function Qle(r){var e=Lt.extend(r);return Lt.registerClass(e),e}function Jle(r){var e=wt.extend(r);return wt.registerClass(e),e}function eue(r){var e=_t.extend(r);return _t.registerClass(e),e}var Iv=Math.PI*2,yu=Yi.CMD,tue=["top","right","bottom","left"];function rue(r,e,t,n,a){var i=t.width,o=t.height;switch(r){case"top":n.set(t.x+i/2,t.y-e),a.set(0,-1);break;case"bottom":n.set(t.x+i/2,t.y+o+e),a.set(0,1);break;case"left":n.set(t.x-e,t.y+o/2),a.set(-1,0);break;case"right":n.set(t.x+i+e,t.y+o/2),a.set(1,0);break}}function nue(r,e,t,n,a,i,o,s,l){o-=r,s-=e;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var c=o*t+r,f=s*t+e;if(Math.abs(n-a)%Iv<1e-4)return l[0]=c,l[1]=f,u-t;if(i){var d=n;n=ea(a),a=ea(d)}else n=ea(n),a=ea(a);n>a&&(a+=Iv);var v=Math.atan2(s,o);if(v<0&&(v+=Iv),v>=n&&v<=a||v+Iv>=n&&v+Iv<=a)return l[0]=c,l[1]=f,u-t;var g=t*Math.cos(n)+r,x=t*Math.sin(n)+e,y=t*Math.cos(a)+r,b=t*Math.sin(a)+e,S=(g-o)*(g-o)+(x-s)*(x-s),T=(y-o)*(y-o)+(b-s)*(b-s);return S<T?(l[0]=g,l[1]=x,Math.sqrt(S)):(l[0]=y,l[1]=b,Math.sqrt(T))}function Zx(r,e,t,n,a,i,o,s){var l=a-r,u=i-e,c=t-r,f=n-e,d=Math.sqrt(c*c+f*f);c/=d,f/=d;var v=l*c+u*f,g=v/d;s&&(g=Math.min(Math.max(g,0),1)),g*=d;var x=o[0]=r+g*c,y=o[1]=e+g*f;return Math.sqrt((x-a)*(x-a)+(y-i)*(y-i))}function CF(r,e,t,n,a,i,o){t<0&&(r=r+t,t=-t),n<0&&(e=e+n,n=-n);var s=r+t,l=e+n,u=o[0]=Math.min(Math.max(a,r),s),c=o[1]=Math.min(Math.max(i,e),l);return Math.sqrt((u-a)*(u-a)+(c-i)*(c-i))}var Wa=[];function aue(r,e,t){var n=CF(e.x,e.y,e.width,e.height,r.x,r.y,Wa);return t.set(Wa[0],Wa[1]),n}function iue(r,e,t){for(var n=0,a=0,i=0,o=0,s,l,u=1/0,c=e.data,f=r.x,d=r.y,v=0;v<c.length;){var g=c[v++];v===1&&(n=c[v],a=c[v+1],i=n,o=a);var x=u;switch(g){case yu.M:i=c[v++],o=c[v++],n=i,a=o;break;case yu.L:x=Zx(n,a,c[v],c[v+1],f,d,Wa,!0),n=c[v++],a=c[v++];break;case yu.C:x=XG(n,a,c[v++],c[v++],c[v++],c[v++],c[v],c[v+1],f,d,Wa),n=c[v++],a=c[v++];break;case yu.Q:x=ZG(n,a,c[v++],c[v++],c[v],c[v+1],f,d,Wa),n=c[v++],a=c[v++];break;case yu.A:var y=c[v++],b=c[v++],S=c[v++],T=c[v++],C=c[v++],M=c[v++];v+=1;var D=!!(1-c[v++]);s=Math.cos(C)*S+y,l=Math.sin(C)*T+b,v<=1&&(i=s,o=l);var L=(f-y)*T/S+y;x=nue(y,b,T,C,C+M,D,L,d,Wa),n=Math.cos(C+M)*S+y,a=Math.sin(C+M)*T+b;break;case yu.R:i=n=c[v++],o=a=c[v++];var E=c[v++],R=c[v++];x=CF(i,o,E,R,f,d,Wa);break;case yu.Z:x=Zx(n,a,i,o,f,d,Wa,!0),n=i,a=o;break}x<u&&(u=x,t.set(Wa[0],Wa[1]))}return u}var $a=new Ie,Pt=new Ie,ar=new Ie,Pi=new Ie,Ri=new Ie;function P5(r,e){if(r){var t=r.getTextGuideLine(),n=r.getTextContent();if(n&&t){var a=r.textGuideLineConfig||{},i=[[0,0],[0,0],[0,0]],o=a.candidates||tue,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var l=1/0,u=a.anchor,c=r.getComputedTransform(),f=c&&Ea([],c),d=e.get("length2")||0;u&&ar.copy(u);for(var v=0;v<o.length;v++){var g=o[v];rue(g,0,s,$a,Pi),Ie.scaleAndAdd(Pt,$a,Pi,d),Pt.transform(f);var x=r.getBoundingRect(),y=u?u.distance(Pt):r instanceof et?iue(Pt,r.path,ar):aue(Pt,x,ar);y<l&&(l=y,Pt.transform(c),ar.transform(c),ar.toArray(i[0]),Pt.toArray(i[1]),$a.toArray(i[2]))}AF(i,e.get("minTurnAngle")),t.setShape({points:i})}}}var $x=[],gn=new Ie;function AF(r,e){if(e<=180&&e>0){e=e/180*Math.PI,$a.fromArray(r[0]),Pt.fromArray(r[1]),ar.fromArray(r[2]),Ie.sub(Pi,$a,Pt),Ie.sub(Ri,ar,Pt);var t=Pi.len(),n=Ri.len();if(!(t<.001||n<.001)){Pi.scale(1/t),Ri.scale(1/n);var a=Pi.dot(Ri),i=Math.cos(e);if(i<a){var o=Zx(Pt.x,Pt.y,ar.x,ar.y,$a.x,$a.y,$x,!1);gn.fromArray($x),gn.scaleAndAdd(Ri,o/Math.tan(Math.PI-e));var s=ar.x!==Pt.x?(gn.x-Pt.x)/(ar.x-Pt.x):(gn.y-Pt.y)/(ar.y-Pt.y);if(isNaN(s))return;s<0?Ie.copy(gn,Pt):s>1&&Ie.copy(gn,ar),gn.toArray(r[1])}}}}function oue(r,e,t){if(t<=180&&t>0){t=t/180*Math.PI,$a.fromArray(r[0]),Pt.fromArray(r[1]),ar.fromArray(r[2]),Ie.sub(Pi,Pt,$a),Ie.sub(Ri,ar,Pt);var n=Pi.len(),a=Ri.len();if(!(n<.001||a<.001)){Pi.scale(1/n),Ri.scale(1/a);var i=Pi.dot(e),o=Math.cos(t);if(i<o){var s=Zx(Pt.x,Pt.y,ar.x,ar.y,$a.x,$a.y,$x,!1);gn.fromArray($x);var l=Math.PI/2,u=Math.acos(Ri.dot(e)),c=l+u-t;if(c>=l)Ie.copy(gn,ar);else{gn.scaleAndAdd(Ri,s/Math.tan(Math.PI/2-c));var f=ar.x!==Pt.x?(gn.x-Pt.x)/(ar.x-Pt.x):(gn.y-Pt.y)/(ar.y-Pt.y);if(isNaN(f))return;f<0?Ie.copy(gn,Pt):f>1&&Ie.copy(gn,ar)}gn.toArray(r[1])}}}}function Xw(r,e,t,n){var a=t==="normal",i=a?r:r.ensureState(t);i.ignore=e;var o=n.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();a?r.useStyle(s):i.style=s}function sue(r,e){var t=e.smooth,n=e.points;if(n)if(r.moveTo(n[0][0],n[0][1]),t>0&&n.length>=3){var a=Eo(n[0],n[1]),i=Eo(n[1],n[2]);if(!a||!i){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var o=Math.min(a,i)*t,s=_p([],n[1],n[0],o/a),l=_p([],n[1],n[2],o/i),u=_p([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var c=1;c<n.length;c++)r.lineTo(n[c][0],n[c][1])}function qD(r,e,t){var n=r.getTextGuideLine(),a=r.getTextContent();if(!a){n&&r.removeTextGuideLine();return}for(var i=e.normal,o=i.get("show"),s=a.ignore,l=0;l<$p.length;l++){var u=$p[l],c=e[u],f=u==="normal";if(c){var d=c.get("show"),v=f?s:Ce(a.states[u]&&a.states[u].ignore,s);if(v||!Ce(d,o)){var g=f?n:n&&n.states[u];g&&(g.ignore=!0),n&&Xw(n,!0,u,c);continue}n||(n=new Vr,r.setTextGuideLine(n),!f&&(s||!o)&&Xw(n,!0,"normal",e.normal),r.stateProxy&&(n.stateProxy=r.stateProxy)),Xw(n,!1,u,c)}}if(n){Ne(n.style,t),n.style.fill=null;var x=i.get("showAbove"),y=r.textGuideLineConfig=r.textGuideLineConfig||{};y.showAbove=x||!1,n.buildPath=sue}}function ZD(r,e){e=e||"labelLine";for(var t={normal:r.getModel(e)},n=0;n<xn.length;n++){var a=xn[n];t[a]=r.getModel([a,e])}return t}var z5=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],lue=1,Kx=2,MF=lue|Kx;function Qx(r,e,t){t=t||MF,e?r.dirty|=t:r.dirty&=~t}function DF(r,e){return e=e||MF,r.dirty==null||!!(r.dirty&e)}function Xi(r){if(r)return DF(r)&&LF(r,r.label,r),r}function LF(r,e,t){var n=e.getComputedTransform();r.transform=iD(r.transform,n);var a=r.localRect=Jp(r.localRect,e.getBoundingRect()),i=e.style,o=i.margin,s=t&&t.marginForce,l=t&&t.minMarginForce,u=t&&t.marginDefault,c=i.__marginType;c==null&&u&&(o=u,c=Kf.textMargin);for(var f=0;f<4;f++)qw[f]=c===Kf.minMargin&&l&&l[f]!=null?l[f]:s&&s[f]!=null?s[f]:o?o[f]:0;c===Kf.textMargin&&fc(a,qw,!1,!1);var d=r.rect=Jp(r.rect,a);return n&&d.applyTransform(n),c===Kf.minMargin&&fc(d,qw,!1,!1),r.axisAligned=aD(n),(r.label=r.label||{}).ignore=e.ignore,Qx(r,!1),Qx(r,!0,Kx),r}var qw=[0,0,0,0];function uue(r,e,t){return r.transform=iD(r.transform,t),r.localRect=Jp(r.localRect,e),r.rect=Jp(r.rect,e),t&&r.rect.applyTransform(t),r.axisAligned=aD(t),r.obb=void 0,(r.label=r.label||{}).ignore=!1,r}function JC(r,e){if(r){r.label.x+=e.x,r.label.y+=e.y,r.label.markRedraw();var t=r.transform;t&&(t[4]+=e.x,t[5]+=e.y);var n=r.rect;n&&(n.x+=e.x,n.y+=e.y);var a=r.obb;a&&a.fromBoundingRect(r.localRect,t)}}function eA(r,e){for(var t=0;t<z5.length;t++){var n=z5[t];r[n]==null&&(r[n]=e[n])}return Xi(r)}function B5(r){var e=r.obb;return(!e||DF(r,Kx))&&(r.obb=e=e||new eH,e.fromBoundingRect(r.localRect,r.transform),Qx(r,!1,Kx)),e}function tA(r,e,t,n,a){var i=r.length,o=je[e],s=dr[e];if(i<2)return!1;r.sort(function(L,E){return L.rect[o]-E.rect[o]});for(var l=0,u,c=!1,f=0;f<i;f++){var d=r[f],v=d.rect;u=v[o]-l,u<0&&(v[o]-=u,d.label[o]-=u,c=!0),l=v[o]+v[s]}var g=r[0],x=r[i-1],y,b;S(),y<0&&M(-y,.8),b<0&&M(b,.8),S(),T(y,b,1),T(b,y,-1),S(),y<0&&D(-y),b<0&&D(b);function S(){y=g.rect[o]-t,b=n-x.rect[o]-x.rect[s]}function T(L,E,R){if(L<0){var I=Math.min(E,-L);if(I>0){C(I*R,0,i);var k=I+L;k<0&&M(-k*R,1)}else M(-L*R,1)}}function C(L,E,R){L!==0&&(c=!0);for(var I=E;I<R;I++){var k=r[I],z=k.rect;z[o]+=L,k.label[o]+=L}}function M(L,E){for(var R=[],I=0,k=1;k<i;k++){var z=r[k-1].rect,O=Math.max(r[k].rect[o]-z[o]-z[s],0);R.push(O),I+=O}if(I){var G=Math.min(Math.abs(L)/I,E);if(L>0)for(var k=0;k<i-1;k++){var F=R[k]*G;C(F,0,k+1)}else for(var k=i-1;k>0;k--){var F=R[k-1]*G;C(-F,k,i)}}}function D(L){var E=L<0?-1:1;L=Math.abs(L);for(var R=Math.ceil(L/(i-1)),I=0;I<i-1;I++)if(E>0?C(R,0,I+1):C(-R,i-I-1,i),L-=R,L<=0)return}return c}function cue(r){for(var e=0;e<r.length;e++){var t=r[e],n=t.defaultAttr,a=t.labelLine;t.label.attr("ignore",n.ignore),a&&a.attr("ignore",n.labelGuideIgnore)}}function NF(r){var e=[];r.sort(function(u,c){return(c.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||c.priority-u.priority});function t(u){if(!u.ignore){var c=u.ensureState("emphasis");c.ignore==null&&(c.ignore=!1)}u.ignore=!0}for(var n=0;n<r.length;n++){var a=Xi(r[n]);if(!a.label.ignore){for(var i=a.label,o=a.labelLine,s=!1,l=0;l<e.length;l++)if(sb(a,e[l],null,{touchThreshold:.05})){s=!0;break}s?(t(i),o&&t(o)):e.push(a)}}}function sb(r,e,t,n){return!r||!e||r.label&&r.label.ignore||e.label&&e.label.ignore||!r.rect.intersect(e.rect,t,n)?!1:r.axisAligned&&e.axisAligned?!0:B5(r).intersect(B5(e),t,n)}function fue(r){if(r){for(var e=[],t=0;t<r.length;t++)e.push(r[t].slice());return e}}function hue(r,e){var t=r.label,n=e&&e.getTextGuideLine();return{dataIndex:r.dataIndex,dataType:r.dataType,seriesIndex:r.seriesModel.seriesIndex,text:r.label.style.text,rect:r.hostRect,labelRect:r.rect,align:t.style.align,verticalAlign:t.style.verticalAlign,labelLinePoints:fue(n&&n.shape.points)}}var j5=["align","verticalAlign","width","height","fontSize"],hn=new Oo,Zw=Ke(),due=Ke();function Jy(r,e,t){for(var n=0;n<t.length;n++){var a=t[n];e[a]!=null&&(r[a]=e[a])}}var e0=["x","y","rotation"],vue=(function(){function r(){this._labelList=[],this._chartViewList=[]}return r.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},r.prototype._addLabel=function(e,t,n,a,i){var o=a.style,s=a.__hostTarget,l=s.textConfig||{},u=a.getComputedTransform(),c=a.getBoundingRect().plain();ke.applyTransform(c,c,u),u?hn.setLocalTransform(u):(hn.x=hn.y=hn.rotation=hn.originX=hn.originY=0,hn.scaleX=hn.scaleY=1),hn.rotation=ea(hn.rotation);var f=a.__hostTarget,d;if(f){d=f.getBoundingRect().plain();var v=f.getComputedTransform();ke.applyTransform(d,d,v)}var g=d&&f.getTextGuideLine();this._labelList.push({label:a,labelLine:g,seriesModel:n,dataIndex:e,dataType:t,layoutOptionOrCb:i,layoutOption:null,rect:c,hostRect:d,priority:d?d.width*d.height:0,defaultAttr:{ignore:a.ignore,labelGuideIgnore:g&&g.ignore,x:hn.x,y:hn.y,scaleX:hn.scaleX,scaleY:hn.scaleY,rotation:hn.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:a.cursor,attachedPos:l.position,attachedRot:l.rotation}})},r.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var n=e.__model,a=n.get("labelLayout");(Ae(a)||nt(a).length)&&e.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=ze(i);o&&!o.disableLabelLayout&&t._addLabel(s.dataIndex,s.dataType,n,o,a)})},r.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),n=e.getHeight();function a(T,C){return function(){P5(T,C)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],s=o.label,l=s.__hostTarget,u=o.defaultAttr,c=void 0;Ae(o.layoutOptionOrCb)?c=o.layoutOptionOrCb(hue(o,l)):c=o.layoutOptionOrCb,c=c||{},o.layoutOption=c;var f=Math.PI/180;l&&l.setTextConfig({local:!1,position:c.x!=null||c.y!=null?null:u.attachedPos,rotation:c.rotate!=null?c.rotate*f:u.attachedRot,offset:[c.dx||0,c.dy||0]});var d=!1;if(c.x!=null?(s.x=me(c.x,t),s.setStyle("x",0),d=!0):(s.x=u.x,s.setStyle("x",u.style.x)),c.y!=null?(s.y=me(c.y,n),s.setStyle("y",0),d=!0):(s.y=u.y,s.setStyle("y",u.style.y)),c.labelLinePoints){var v=l.getTextGuideLine();v&&(v.setShape({points:c.labelLinePoints}),d=!1)}var g=Zw(s);g.needsUpdateLabelLine=d,s.rotation=c.rotate!=null?c.rotate*f:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var x=0;x<j5.length;x++){var y=j5[x];s.setStyle(y,c[y]!=null?c[y]:u.style[y])}if(c.draggable){if(s.draggable=!0,s.cursor="move",l){var b=o.seriesModel;if(o.dataIndex!=null){var S=o.seriesModel.getData(o.dataType);b=S.getItemModel(o.dataIndex)}s.on("drag",a(l,b.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},r.prototype.layout=function(e){var t=e.getWidth(),n=e.getHeight(),a=[];P(this._labelList,function(l){l.defaultAttr.ignore||a.push(eA({},l))});var i=ht(a,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=ht(a,function(l){return l.layoutOption.moveOverlap==="shiftY"});tA(i,0,0,t),tA(o,1,0,n);var s=ht(a,function(l){return l.layoutOption.hideOverlap});cue(s),NF(s)},r.prototype.processLabelsOverall=function(){var e=this;P(this._chartViewList,function(t){var n=t.__model,a=t.ignoreLabelLineUpdate,i=n.isAnimationEnabled();t.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!a,l=o.getTextContent();!s&&l&&(s=Zw(l).needsUpdateLabelLine),s&&e._updateLabelLine(o,n),i&&e._animateLabels(o,n)})})},r.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),a=ze(e),i=a.dataIndex;if(n&&i!=null){var o=t.getData(a.dataType),s=o.getItemModel(i),l={},u=o.getItemVisual(i,"style");if(u){var c=o.getVisual("drawType");l.stroke=u[c]}var f=s.getModel("labelLine");qD(e,ZD(s),l),P5(e,f)}},r.prototype._animateLabels=function(e,t){var n=e.getTextContent(),a=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!sh(e))){var i=Zw(n),o=i.oldLayout,s=ze(e),l=s.dataIndex,u={x:n.x,y:n.y,rotation:n.rotation},c=t.getData(s.dataType);if(o){n.attr(o);var d=e.prevStates;d&&(Ge(d,"select")>=0&&n.attr(i.oldLayoutSelect),Ge(d,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),ot(n,u,t,l)}else if(n.attr(u),!ed(n).valueAnimation){var f=Ce(n.style.opacity,1);n.style.opacity=0,zt(n,{style:{opacity:f}},t,l)}if(i.oldLayout=u,n.states.select){var v=i.oldLayoutSelect={};Jy(v,u,e0),Jy(v,n.states.select,e0)}if(n.states.emphasis){var g=i.oldLayoutEmphasis={};Jy(g,u,e0),Jy(g,n.states.emphasis,e0)}hH(n,l,c,t,t)}if(a&&!a.ignore&&!a.invisible){var i=due(a),o=i.oldLayout,x={points:a.shape.points};o?(a.attr({shape:o}),ot(a,{shape:x},t)):(a.setShape(x),a.style.strokePercent=0,zt(a,{style:{strokePercent:1}},t)),i.oldLayout=x}},r})(),$w=Ke();function pue(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,n){var a=$w(t).labelManager;a||(a=$w(t).labelManager=new vue),a.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(e,t,n){var a=$w(t).labelManager;n.updatedSeries.forEach(function(i){a.addLabelsOfSeries(t.getViewOfSeriesModel(i))}),a.updateLayoutConfig(t),a.layout(t),a.processLabelsOverall()})}var Kw=Math.sin,Qw=Math.cos,RF=Math.PI,xu=Math.PI*2,gue=180/RF,EF=(function(){function r(){}return r.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},r.prototype.moveTo=function(e,t){this._add("M",e,t)},r.prototype.lineTo=function(e,t){this._add("L",e,t)},r.prototype.bezierCurveTo=function(e,t,n,a,i,o){this._add("C",e,t,n,a,i,o)},r.prototype.quadraticCurveTo=function(e,t,n,a){this._add("Q",e,t,n,a)},r.prototype.arc=function(e,t,n,a,i,o){this.ellipse(e,t,n,n,0,a,i,o)},r.prototype.ellipse=function(e,t,n,a,i,o,s,l){var u=s-o,c=!l,f=Math.abs(u),d=tl(f-xu)||(c?u>=xu:-u>=xu),v=u>0?u%xu:u%xu+xu,g=!1;d?g=!0:tl(f)?g=!1:g=v>=RF==!!c;var x=e+n*Qw(o),y=t+a*Kw(o);this._start&&this._add("M",x,y);var b=Math.round(i*gue);if(d){var S=1/this._p,T=(c?1:-1)*(xu-S);this._add("A",n,a,b,1,+c,e+n*Qw(o+T),t+a*Kw(o+T)),S>.01&&this._add("A",n,a,b,0,+c,x,y)}else{var C=e+n*Qw(s),M=t+a*Kw(s);this._add("A",n,a,b,+g,+c,C,M)}},r.prototype.rect=function(e,t,n,a){this._add("M",e,t),this._add("l",n,0),this._add("l",0,a),this._add("l",-n,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(e,t,n,a,i,o,s,l,u){for(var c=[],f=this._p,d=1;d<arguments.length;d++){var v=arguments[d];if(isNaN(v)){this._invalid=!0;return}c.push(Math.round(v*f)/f)}this._d.push(e+c.join(" ")),this._start=e==="Z"},r.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},r.prototype.getStr=function(){return this._str},r})(),$D="none",mue=Math.round;function yue(r){var e=r.fill;return e!=null&&e!==$D}function xue(r){var e=r.stroke;return e!=null&&e!==$D}var rA=["lineCap","miterLimit","lineJoin"],bue=ce(rA,function(r){return"stroke-"+r.toLowerCase()});function _ue(r,e,t,n){var a=e.opacity==null?1:e.opacity;if(t instanceof Nr){r("opacity",a);return}if(yue(e)){var i=qp(e.fill);r("fill",i.color);var o=e.fillOpacity!=null?e.fillOpacity*i.opacity*a:i.opacity*a;o<1&&r("fill-opacity",o)}else r("fill",$D);if(xue(e)){var s=qp(e.stroke);r("stroke",s.color);var l=e.strokeNoScale?t.getLineScale():1,u=l?(e.lineWidth||0)/l:0,c=e.strokeOpacity!=null?e.strokeOpacity*s.opacity*a:s.opacity*a,f=e.strokeFirst;if(u!==1&&r("stroke-width",u),f&&r("paint-order",f?"stroke":"fill"),c<1&&r("stroke-opacity",c),e.lineDash){var d=RD(t),v=d[0],g=d[1];v&&(g=mue(g||0),r("stroke-dasharray",v.join(",")),(g||n)&&r("stroke-dashoffset",g))}for(var x=0;x<rA.length;x++){var y=rA[x];if(e[y]!==Dx[y]){var b=e[y]||Dx[y];b&&r(bue[x],b)}}}}var IF="http://www.w3.org/2000/svg",kF="http://www.w3.org/1999/xlink",Sue="http://www.w3.org/2000/xmlns/",wue="http://www.w3.org/XML/1998/namespace",V5="ecmeta_";function OF(r){return document.createElementNS(IF,r)}function Ar(r,e,t,n,a){return{tag:r,attrs:t||{},children:n,text:a,key:e}}function Tue(r,e){var t=[];if(e)for(var n in e){var a=e[n],i=n;a!==!1&&(a!==!0&&a!=null&&(i+='="'+a+'"'),t.push(i))}return"<"+r+" "+t.join(" ")+">"}function Cue(r){return"</"+r+">"}function KD(r,e){e=e||{};var t=e.newline?`
|
|
260
|
+
`:"";function n(a){var i=a.children,o=a.tag,s=a.attrs,l=a.text;return Tue(o,s)+(o!=="style"?ln(l):l||"")+(i?""+t+ce(i,function(u){return n(u)}).join(t)+t:"")+Cue(o)}return n(r)}function Aue(r,e,t){t=t||{};var n=t.newline?`
|
|
261
|
+
`:"",a=" {"+n,i=n+"}",o=ce(nt(r),function(l){return l+a+ce(nt(r[l]),function(u){return u+":"+r[l][u]+";"}).join(n)+i}).join(n),s=ce(nt(e),function(l){return"@keyframes "+l+a+ce(nt(e[l]),function(u){return u+a+ce(nt(e[l][u]),function(c){var f=e[l][u][c];return c==="d"&&(f='path("'+f+'")'),c+":"+f+";"}).join(n)+i}).join(n)+i}).join(n);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(n)}function nA(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function G5(r,e,t,n){return Ar("svg","root",{width:r,height:e,xmlns:IF,"xmlns:xlink":kF,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+r+" "+e:!1},t)}var Mue=0;function PF(){return Mue++}var H5={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"},wu="transform-origin";function Due(r,e,t){var n=ie({},r.shape);ie(n,e),r.buildPath(t,n);var a=new EF;return a.reset(r6(r)),t.rebuildPath(a,1),a.generateStr(),a.getStr()}function Lue(r,e){var t=e.originX,n=e.originY;(t||n)&&(r[wu]=t+"px "+n+"px")}var Nue={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function zF(r,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=r,t}function Rue(r,e,t){var n=r.shape.paths,a={},i,o;if(P(n,function(l){var u=nA(t.zrId);u.animation=!0,lb(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,d=nt(c),v=d.length;if(v){o=d[v-1];var g=c[o];for(var x in g){var y=g[x];a[x]=a[x]||{d:""},a[x].d+=y.d||""}for(var b in f){var S=f[b].animation;S.indexOf(o)>=0&&(i=S)}}}),!!i){e.d=!1;var s=zF(a,t);return i.replace(o,s)}}function F5(r){return ye(r)?H5[r]?"cubic-bezier("+H5[r]+")":IM(r)?r:"":""}function lb(r,e,t,n){var a=r.animators,i=a.length,o=[];if(r instanceof Bg){var s=Rue(r,e,t);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u<i;u++){var c=a[u],f=[c.getMaxTime()/1e3+"s"],d=F5(c.getClip().easing),v=c.getDelay();d?f.push(d):f.push("linear"),v&&f.push(v/1e3+"s"),c.getLoop()&&f.push("infinite");var g=f.join(" ");l[g]=l[g]||[g,[]],l[g][1].push(c)}function x(S){var T=S[1],C=T.length,M={},D={},L={},E="animation-timing-function";function R(ve,be,Oe){for(var _e=ve.getTracks(),Le=ve.getMaxTime(),st=0;st<_e.length;st++){var Qe=_e[st];if(Qe.needsAnimate()){var ct=Qe.keyframes,xt=Qe.propName;if(Oe&&(xt=Oe(xt)),xt)for(var Tt=0;Tt<ct.length;Tt++){var Hr=ct[Tt],Jt=Math.round(Hr.time/Le*100)+"%",li=F5(Hr.easing),Ba=Hr.rawValue;(ye(Ba)||it(Ba))&&(be[Jt]=be[Jt]||{},be[Jt][xt]=Hr.rawValue,li&&(be[Jt][E]=li))}}}}for(var I=0;I<C;I++){var k=T[I],z=k.targetName;z?z==="shape"&&R(k,D):!n&&R(k,M)}for(var O in M){var G={};Cx(G,r),ie(G,M[O]);var F=n6(G),B=M[O][E];L[O]=F?{transform:F}:{},Lue(L[O],G),B&&(L[O][E]=B)}var Y,H=!0;for(var O in D){L[O]=L[O]||{};var X=!Y,B=D[O][E];X&&(Y=new Yi);var V=Y.len();Y.reset(),L[O].d=Due(r,D[O],Y);var W=Y.len();if(!X&&V!==W){H=!1;break}B&&(L[O][E]=B)}if(!H)for(var O in L)delete L[O].d;if(!n)for(var I=0;I<C;I++){var k=T[I],z=k.targetName;z==="style"&&R(k,L,function(_e){return Nue[_e]})}for(var $=nt(L),te=!0,le,I=1;I<$.length;I++){var ge=$[I-1],we=$[I];if(L[ge][wu]!==L[we][wu]){te=!1;break}le=L[ge][wu]}if(te&&le){for(var O in L)L[O][wu]&&delete L[O][wu];e[wu]=le}if(ht($,function(ve){return nt(L[ve]).length>0}).length){var de=zF(L,t);return de+" "+S[0]+" both"}}for(var y in l){var s=x(l[y]);s&&o.push(s)}if(o.length){var b=t.zrId+"-cls-"+PF();t.cssNodes["."+b]={animation:o.join(",")},e.class=b}}function Eue(r,e,t){if(!r.ignore)if(r.isSilent()){var n={"pointer-events":"none"};U5(n,e,t)}else{var a=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},i=a.fill;if(!i){var o=r.style&&r.style.fill,s=r.states.select&&r.states.select.style&&r.states.select.style.fill,l=r.currentStates.indexOf("select")>=0&&s||o;l&&(i=_x(l))}var u=a.lineWidth;if(u){var c=!a.strokeNoScale&&r.transform?r.transform[0]:1;u=u/c}var n={cursor:"pointer"};i&&(n.fill=i),a.stroke&&(n.stroke=a.stroke),u&&(n["stroke-width"]=u),U5(n,e,t)}}function U5(r,e,t,n){var a=JSON.stringify(r),i=t.cssStyleCache[a];i||(i=t.zrId+"-cls-"+PF(),t.cssStyleCache[a]=i,t.cssNodes["."+i+":hover"]=r),e.class=e.class?e.class+" "+i:i}var lg=Math.round;function BF(r){return r&&ye(r.src)}function jF(r){return r&&Ae(r.toDataURL)}function QD(r,e,t,n){_ue(function(a,i){var o=a==="fill"||a==="stroke";o&&t6(i)?GF(e,r,a,n):o&&OM(i)?HF(t,r,a,n):r[a]=i,o&&n.ssr&&i==="none"&&(r["pointer-events"]="visible")},e,t,!1),jue(t,r,n)}function JD(r,e){var t=c6(e);t&&(t.each(function(n,a){n!=null&&(r[(V5+a).toLowerCase()]=n+"")}),e.isSilent()&&(r[V5+"silent"]="true"))}function Y5(r){return tl(r[0]-1)&&tl(r[1])&&tl(r[2])&&tl(r[3]-1)}function Iue(r){return tl(r[4])&&tl(r[5])}function eL(r,e,t){if(e&&!(Iue(e)&&Y5(e))){var n=1e4;r.transform=Y5(e)?"translate("+lg(e[4]*n)/n+" "+lg(e[5]*n)/n+")":vte(e)}}function W5(r,e,t){for(var n=r.points,a=[],i=0;i<n.length;i++)a.push(lg(n[i][0]*t)/t),a.push(lg(n[i][1]*t)/t);e.points=a.join(" ")}function X5(r){return!r.smooth}function kue(r){var e=ce(r,function(t){return typeof t=="string"?[t,t]:t});return function(t,n,a){for(var i=0;i<e.length;i++){var o=e[i],s=t[o[0]];s!=null&&(n[o[1]]=lg(s*a)/a)}}}var Oue={circle:[kue(["cx","cy","r"])],polyline:[W5,X5],polygon:[W5,X5]};function Pue(r){for(var e=r.animators,t=0;t<e.length;t++)if(e[t].targetName==="shape")return!0;return!1}function VF(r,e){var t=r.style,n=r.shape,a=Oue[r.type],i={},o=e.animation,s="path",l=r.style.strokePercent,u=e.compress&&r6(r)||4;if(a&&!e.willUpdate&&!(a[1]&&!a[1](n))&&!(o&&Pue(r))&&!(l<1)){s=r.type;var c=Math.pow(10,u);a[0](n,i,c)}else{var f=!r.path||r.shapeChanged();r.path||r.createPathProxy();var d=r.path;f&&(d.beginPath(),r.buildPath(d,r.shape),r.pathUpdated());var v=d.getVersion(),g=r,x=g.__svgPathBuilder;(g.__svgPathVersion!==v||!x||l!==g.__svgPathStrokePercent)&&(x||(x=g.__svgPathBuilder=new EF),x.reset(u),d.rebuildPath(x,l),x.generateStr(),g.__svgPathVersion=v,g.__svgPathStrokePercent=l),i.d=x.getStr()}return eL(i,r.transform),QD(i,t,r,e),JD(i,r),e.animation&&lb(r,i,e),e.emphasis&&Eue(r,i,e),Ar(s,r.id+"",i)}function zue(r,e){var t=r.style,n=t.image;if(n&&!ye(n)&&(BF(n)?n=n.src:jF(n)&&(n=n.toDataURL())),!!n){var a=t.x||0,i=t.y||0,o=t.width,s=t.height,l={href:n,width:o,height:s};return a&&(l.x=a),i&&(l.y=i),eL(l,r.transform),QD(l,t,r,e),JD(l,r),e.animation&&lb(r,l,e),Ar("image",r.id+"",l)}}function Bue(r,e){var t=r.style,n=t.text;if(n!=null&&(n+=""),!(!n||isNaN(t.x)||isNaN(t.y))){var a=t.font||Yo,i=t.x||0,o=gte(t.y||0,kg(a),t.textBaseline),s=pte[t.textAlign]||t.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(P6(t)){var u="",c=t.fontStyle,f=O6(t.fontSize);if(!parseFloat(f))return;var d=t.fontFamily||MG,v=t.fontWeight;u+="font-size:"+f+";font-family:"+d+";",c&&c!=="normal"&&(u+="font-style:"+c+";"),v&&v!=="normal"&&(u+="font-weight:"+v+";"),l.style=u}else l.style="font: "+a;return n.match(/\s/)&&(l["xml:space"]="preserve"),i&&(l.x=i),o&&(l.y=o),eL(l,r.transform),QD(l,t,r,e),JD(l,r),e.animation&&lb(r,l,e),Ar("text",r.id+"",l,void 0,n)}}function q5(r,e){if(r instanceof et)return VF(r,e);if(r instanceof Nr)return zue(r,e);if(r instanceof Lh)return Bue(r,e)}function jue(r,e,t){var n=r.style;if(mte(n)){var a=yte(r),i=t.shadowCache,o=i[a];if(!o){var s=r.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=n.shadowOffsetX||0,f=n.shadowOffsetY||0,d=n.shadowBlur,v=qp(n.shadowColor),g=v.opacity,x=v.color,y=d/2/l,b=d/2/u,S=y+" "+b;o=t.zrId+"-s"+t.shadowIdx++,t.defs[o]=Ar("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Ar("feDropShadow","",{dx:c/l,dy:f/u,stdDeviation:S,"flood-color":x,"flood-opacity":g})]),i[a]=o}e.filter=j1(o)}}function GF(r,e,t,n){var a=r[t],i,o={gradientUnits:a.global?"userSpaceOnUse":"objectBoundingBox"};if(JG(a))i="linearGradient",o.x1=a.x,o.y1=a.y,o.x2=a.x2,o.y2=a.y2;else if(e6(a))i="radialGradient",o.cx=Ce(a.x,.5),o.cy=Ce(a.y,.5),o.r=Ce(a.r,.5);else return;for(var s=a.colorStops,l=[],u=0,c=s.length;u<c;++u){var f=eC(s[u].offset)*100+"%",d=s[u].color,v=qp(d),g=v.color,x=v.opacity,y={offset:f};y["stop-color"]=g,x<1&&(y["stop-opacity"]=x),l.push(Ar("stop",u+"",y))}var b=Ar(i,"",o,l),S=KD(b),T=n.gradientCache,C=T[S];C||(C=n.zrId+"-g"+n.gradientIdx++,T[S]=C,o.id=C,n.defs[C]=Ar(i,C,o,l)),e[t]=j1(C)}function HF(r,e,t,n){var a=r.style[t],i=r.getBoundingRect(),o={},s=a.repeat,l=s==="no-repeat",u=s==="repeat-x",c=s==="repeat-y",f;if(QG(a)){var d=a.imageWidth,v=a.imageHeight,g=void 0,x=a.image;if(ye(x)?g=x:BF(x)?g=x.src:jF(x)&&(g=x.toDataURL()),typeof Image>"u"){var y="Image width/height must been given explictly in svg-ssr renderer.";Kr(d,y),Kr(v,y)}else if(d==null||v==null){var b=function(I,k){if(I){var z=I.elm,O=d||k.width,G=v||k.height;I.tag==="pattern"&&(u?(G=1,O/=i.width):c&&(O=1,G/=i.height)),I.attrs.width=O,I.attrs.height=G,z&&(z.setAttribute("width",O),z.setAttribute("height",G))}},S=UM(g,null,r,function(I){l||b(D,I),b(f,I)});S&&S.width&&S.height&&(d=d||S.width,v=v||S.height)}f=Ar("image","img",{href:g,width:d,height:v}),o.width=d,o.height=v}else a.svgElement&&(f=Me(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(f){var T,C;l?T=C=1:u?(C=1,T=o.width/i.width):c?(T=1,C=o.height/i.height):o.patternUnits="userSpaceOnUse",T!=null&&!isNaN(T)&&(o.width=T),C!=null&&!isNaN(C)&&(o.height=C);var M=n6(a);M&&(o.patternTransform=M);var D=Ar("pattern","",o,[f]),L=KD(D),E=n.patternCache,R=E[L];R||(R=n.zrId+"-p"+n.patternIdx++,E[L]=R,o.id=R,D=n.defs[R]=Ar("pattern",R,o,[f])),e[t]=j1(R)}}function Vue(r,e,t){var n=t.clipPathCache,a=t.defs,i=n[r.id];if(!i){i=t.zrId+"-c"+t.clipPathIdx++;var o={id:i};n[r.id]=i,a[i]=Ar("clipPath",i,o,[VF(r,t)])}e["clip-path"]=j1(i)}function Z5(r){return document.createTextNode(r)}function Nu(r,e,t){r.insertBefore(e,t)}function $5(r,e){r.removeChild(e)}function K5(r,e){r.appendChild(e)}function FF(r){return r.parentNode}function UF(r){return r.nextSibling}function Jw(r,e){r.textContent=e}var Q5=58,Gue=120,Hue=Ar("","");function aA(r){return r===void 0}function wi(r){return r!==void 0}function Fue(r,e,t){for(var n={},a=e;a<=t;++a){var i=r[a].key;i!==void 0&&(n[i]=a)}return n}function fp(r,e){var t=r.key===e.key,n=r.tag===e.tag;return n&&t}function ug(r){var e,t=r.children,n=r.tag;if(wi(n)){var a=r.elm=OF(n);if(tL(Hue,r),ue(t))for(e=0;e<t.length;++e){var i=t[e];i!=null&&K5(a,ug(i))}else wi(r.text)&&!Re(r.text)&&K5(a,Z5(r.text))}else r.elm=Z5(r.text);return r.elm}function YF(r,e,t,n,a){for(;n<=a;++n){var i=t[n];i!=null&&Nu(r,ug(i),e)}}function Jx(r,e,t,n){for(;t<=n;++t){var a=e[t];if(a!=null)if(wi(a.tag)){var i=FF(a.elm);$5(i,a.elm)}else $5(r,a.elm)}}function tL(r,e){var t,n=e.elm,a=r&&r.attrs||{},i=e.attrs||{};if(a!==i){for(t in i){var o=i[t],s=a[t];s!==o&&(o===!0?n.setAttribute(t,""):o===!1?n.removeAttribute(t):t==="style"?n.style.cssText=o:t.charCodeAt(0)!==Gue?n.setAttribute(t,o):t==="xmlns:xlink"||t==="xmlns"?n.setAttributeNS(Sue,t,o):t.charCodeAt(3)===Q5?n.setAttributeNS(wue,t,o):t.charCodeAt(5)===Q5?n.setAttributeNS(kF,t,o):n.setAttribute(t,o))}for(t in a)t in i||n.removeAttribute(t)}}function Uue(r,e,t){for(var n=0,a=0,i=e.length-1,o=e[0],s=e[i],l=t.length-1,u=t[0],c=t[l],f,d,v,g;n<=i&&a<=l;)o==null?o=e[++n]:s==null?s=e[--i]:u==null?u=t[++a]:c==null?c=t[--l]:fp(o,u)?(Yf(o,u),o=e[++n],u=t[++a]):fp(s,c)?(Yf(s,c),s=e[--i],c=t[--l]):fp(o,c)?(Yf(o,c),Nu(r,o.elm,UF(s.elm)),o=e[++n],c=t[--l]):fp(s,u)?(Yf(s,u),Nu(r,s.elm,o.elm),s=e[--i],u=t[++a]):(aA(f)&&(f=Fue(e,n,i)),d=f[u.key],aA(d)?Nu(r,ug(u),o.elm):(v=e[d],v.tag!==u.tag?Nu(r,ug(u),o.elm):(Yf(v,u),e[d]=void 0,Nu(r,v.elm,o.elm))),u=t[++a]);(n<=i||a<=l)&&(n>i?(g=t[l+1]==null?null:t[l+1].elm,YF(r,g,t,a,l)):Jx(r,e,n,i))}function Yf(r,e){var t=e.elm=r.elm,n=r.children,a=e.children;r!==e&&(tL(r,e),aA(e.text)?wi(n)&&wi(a)?n!==a&&Uue(t,n,a):wi(a)?(wi(r.text)&&Jw(t,""),YF(t,null,a,0,a.length-1)):wi(n)?Jx(t,n,0,n.length-1):wi(r.text)&&Jw(t,""):r.text!==e.text&&(wi(n)&&Jx(t,n,0,n.length-1),Jw(t,e.text)))}function Yue(r,e){if(fp(r,e))Yf(r,e);else{var t=r.elm,n=FF(t);ug(e),n!==null&&(Nu(n,e.elm,UF(t)),Jx(n,[r],0,0))}return e}var Wue=0,Xue=(function(){function r(e,t,n){if(this.type="svg",this.refreshHover=J5(),this.configLayer=J5(),this.storage=t,this._opts=n=ie({},n),this.root=e,this._id="zr"+Wue++,this._oldVNode=G5(n.width,n.height),e&&!n.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=OF("svg");tL(null,this._oldVNode),a.appendChild(i),e.appendChild(a)}this.resize(n.width,n.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",Yue(this._oldVNode,e),this._oldVNode=e}},r.prototype.renderOneToVNode=function(e){return q5(e,nA(this._id))},r.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),n=this._width,a=this._height,i=nA(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=que(n,a,this._backgroundColor,i);s&&o.push(s);var l=e.compress?null:this._mainVNode=Ar("g","main",{},[]);this._paintList(t,i,l?l.children:o),l&&o.push(l);var u=ce(nt(i.defs),function(d){return i.defs[d]});if(u.length&&o.push(Ar("defs","defs",{},u)),e.animation){var c=Aue(i.cssNodes,i.cssAnims,{newline:!0});if(c){var f=Ar("style","stl",{},[],c);o.push(f)}}return G5(n,a,o,e.useViewBox)},r.prototype.renderToString=function(e){return e=e||{},KD(this.renderToVNode({animation:Ce(e.cssAnimation,!0),emphasis:Ce(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Ce(e.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(e,t,n){for(var a=e.length,i=[],o=0,s,l,u=0,c=0;c<a;c++){var f=e[c];if(!f.invisible){var d=f.__clipPaths,v=d&&d.length||0,g=l&&l.length||0,x=void 0;for(x=Math.max(v-1,g-1);x>=0&&!(d&&l&&d[x]===l[x]);x--);for(var y=g-1;y>x;y--)o--,s=i[o-1];for(var b=x+1;b<v;b++){var S={};Vue(d[b],S,t);var T=Ar("g","clip-g-"+u++,S,[]);(s?s.children:n).push(T),i[o++]=T,s=T}l=d;var C=q5(f,t);C&&(s?s.children:n).push(C)}}},r.prototype.resize=function(e,t){var n=this._opts,a=this.root,i=this._viewport;if(e!=null&&(n.width=e),t!=null&&(n.height=t),a&&i&&(i.style.display="none",e=Jf(a,0,n),t=Jf(a,1,n),i.style.display=""),this._width!==e||this._height!==t){if(this._width=e,this._height=t,i){var o=i.style;o.width=e+"px",o.height=t+"px"}if(OM(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",e),s.setAttribute("height",t));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",e),l.setAttribute("height",t))}}},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},r.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},r.prototype.toDataURL=function(e){var t=this.renderToString(),n="data:image/svg+xml;";return e?(t=bte(t),t&&n+"base64,"+t):n+"charset=UTF-8,"+encodeURIComponent(t)},r})();function J5(r){return function(){}}function que(r,e,t,n){var a;if(t&&t!=="none")if(a=Ar("rect","bg",{width:r,height:e,x:"0",y:"0"}),t6(t))GF({fill:t},a.attrs,"fill",n);else if(OM(t))HF({style:{fill:t},dirty:$t,getBoundingRect:function(){return{width:r,height:e}}},a.attrs,"fill",n);else{var i=qp(t),o=i.color,s=i.opacity;a.attrs.fill=o,s<1&&(a.attrs["fill-opacity"]=s)}return a}function Zue(r){r.registerPainter("svg",Xue)}function e3(r,e,t){var n=En.createCanvas(),a=e.getWidth(),i=e.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=a+"px",o.height=i+"px",n.setAttribute("data-zr-dom-id",r)),n.width=a*t,n.height=i*t,n}var eT=(function(r){K(e,r);function e(t,n,a){var i=r.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.incremental=!1,i.zlevel=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__used=!1,i.__drawIndex=0,i.__startIndex=0,i.__endIndex=0,i.__prevStartIndex=null,i.__prevEndIndex=null;var o;a=a||Tx,typeof t=="string"?o=e3(t,n,a):Re(t)&&(o=t,t=o.id),i.id=t,i.dom=o;var s=o.style;return s&&(NM(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),i.painter=n,i.dpr=a,i}return e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=e3("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),t!==1&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,n,a,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new ke(0,0,0,0);function c(S){if(!(!S.isFinite()||S.isZero()))if(o.length===0){var T=new ke(0,0,0,0);T.copy(S),o.push(T)}else{for(var C=!1,M=1/0,D=0,L=0;L<o.length;++L){var E=o[L];if(E.intersect(S)){var R=new ke(0,0,0,0);R.copy(E),R.union(S),o[L]=R,C=!0;break}else if(l){u.copy(S),u.union(E);var I=S.width*S.height,k=E.width*E.height,z=u.width*u.height,O=z-I-k;O<M&&(M=O,D=L)}}if(l&&(o[D].union(S),C=!0),!C){var T=new ke(0,0,0,0);T.copy(S),o.push(T)}l||(l=o.length>=s)}}for(var f=this.__startIndex;f<this.__endIndex;++f){var d=t[f];if(d){var v=d.shouldBePainted(a,i,!0,!0),g=d.__isRendered&&(d.__dirty&$n||!v)?d.getPrevPaintRect():null;g&&c(g);var x=v&&(d.__dirty&$n||!d.__isRendered)?d.getPaintRect():null;x&&c(x)}}for(var f=this.__prevStartIndex;f<this.__prevEndIndex;++f){var d=n[f],v=d&&d.shouldBePainted(a,i,!0,!0);if(d&&(!v||!d.__zr)&&d.__isRendered){var g=d.getPrevPaintRect();g&&c(g)}}var y;do{y=!1;for(var f=0;f<o.length;){if(o[f].isZero()){o.splice(f,1);continue}for(var b=f+1;b<o.length;)o[f].intersect(o[b])?(y=!0,o[f].union(o[b]),o.splice(b,1)):b++;f++}}while(y);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,n){var a=this.dpr,i=this.dom,o=i.style,s=this.domBack;o&&(o.width=t+"px",o.height=n+"px"),i.width=t*a,i.height=n*a,s&&(s.width=t*a,s.height=n*a,a!==1&&this.ctxBack.scale(a,a))},e.prototype.clear=function(t,n,a){var i=this.dom,o=this.ctx,s=i.width,l=i.height;n=n||this.clearColor;var u=this.motionBlur&&!t,c=this.lastFrameAlpha,f=this.dpr,d=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,s/f,l/f));var v=this.domBack;function g(x,y,b,S){if(o.clearRect(x,y,b,S),n&&n!=="transparent"){var T=void 0;if(Lg(n)){var C=n.global||n.__width===b&&n.__height===S;T=C&&n.__canvasGradient||VC(o,n,{x:0,y:0,width:b,height:S}),n.__canvasGradient=T,n.__width=b,n.__height=S}else RG(n)&&(n.scaleX=n.scaleX||f,n.scaleY=n.scaleY||f,T=GC(o,n,{dirty:function(){d.setUnpainted(),d.painter.refresh()}}));o.save(),o.fillStyle=T||n,o.fillRect(x,y,b,S),o.restore()}u&&(o.save(),o.globalAlpha=c,o.drawImage(v,x,y,b,S),o.restore())}!a||u?g(0,0,s,l):a.length&&P(a,function(x){g(x.x*f,x.y*f,x.width*f,x.height*f)})},e})(Oa),t3=1e5,bu=314159,t0=.01,$ue=.001;function Kue(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function Que(r,e){var t=document.createElement("div");return t.style.cssText=["position:relative","width:"+r+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",t}var Jue=(function(){function r(e,t,n,a){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=n=ie({},n||{}),this.dpr=n.devicePixelRatio||Tx,this._singleCanvas=i,this.root=e;var o=e.style;o&&(NM(e),e.innerHTML=""),this.storage=t;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(i){var c=e,f=c.width,d=c.height;n.width!=null&&(f=n.width),n.height!=null&&(d=n.height),this.dpr=n.devicePixelRatio||1,c.width=f*this.dpr,c.height=d*this.dpr,this._width=f,this._height=d;var v=new eT(c,this,this.dpr);v.__builtin__=!0,v.initContext(),l[bu]=v,v.zlevel=bu,s.push(bu),this._domRoot=e}else{this._width=Jf(e,0,n),this._height=Jf(e,1,n);var u=this._domRoot=Que(this._width,this._height);e.appendChild(u)}}return r.prototype.getType=function(){return"canvas"},r.prototype.isSingleCanvas=function(){return this._singleCanvas},r.prototype.getViewportRoot=function(){return this._domRoot},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.refresh=function(e){var t=this.storage.getDisplayList(!0),n=this._prevDisplayList,a=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,n,e,this._redrawId);for(var i=0;i<a.length;i++){var o=a[i],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=i===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=t.slice()),this},r.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},r.prototype._paintHoverList=function(e){var t=e.length,n=this._hoverlayer;if(n&&n.clear(),!!t){for(var a={inHover:!0,viewWidth:this._width,viewHeight:this._height},i,o=0;o<t;o++){var s=e[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(t3)),i||(i=n.ctx,i.save()),Vu(i,s,a,o===t-1))}i&&i.restore()}},r.prototype.getHoverLayer=function(){return this.getLayer(t3)},r.prototype.paintOne=function(e,t){ED(e,t)},r.prototype._paintList=function(e,t,n,a){if(this._redrawId===a){n=n||!1,this._updateLayerStatus(e);var i=this._doPaintList(e,t,n),o=i.finished,s=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(e),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;mx(function(){l._paintList(e,t,n,a)})}}},r.prototype._compositeManually=function(){var e=this.getLayer(bu).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),this.eachBuiltinLayer(function(a){a.virtual&&e.drawImage(a.dom,0,0,t,n)})},r.prototype._doPaintList=function(e,t,n){for(var a=this,i=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&i.push(u)}for(var c=!0,f=!1,d=function(x){var y=i[x],b=y.ctx,S=o&&y.createRepaintRects(e,t,v._width,v._height),T=n?y.__startIndex:y.__drawIndex,C=!n&&y.incremental&&Date.now,M=C&&Date.now(),D=y.zlevel===v._zlevelList[0]?v._backgroundColor:null;if(y.__startIndex===y.__endIndex)y.clear(!1,D,S);else if(T===y.__startIndex){var L=e[T];(!L.incremental||!L.notClear||n)&&y.clear(!1,D,S)}T===-1&&(console.error("For some unknown reason. drawIndex is -1"),T=y.__startIndex);var E,R=function(O){var G={inHover:!1,allClipped:!1,prevEl:null,viewWidth:a._width,viewHeight:a._height};for(E=T;E<y.__endIndex;E++){var F=e[E];if(F.__inHover&&(f=!0),a._doPaintEl(F,y,o,O,G,E===y.__endIndex-1),C){var B=Date.now()-M;if(B>15)break}}G.prevElClipPaths&&b.restore()};if(S)if(S.length===0)E=y.__endIndex;else for(var I=v.dpr,k=0;k<S.length;++k){var z=S[k];b.save(),b.beginPath(),b.rect(z.x*I,z.y*I,z.width*I,z.height*I),b.clip(),R(z),b.restore()}else b.save(),R(),b.restore();y.__drawIndex=E,y.__drawIndex<y.__endIndex&&(c=!1)},v=this,g=0;g<i.length;g++)d(g);return rt.wxa&&P(this._layers,function(x){x&&x.ctx&&x.ctx.draw&&x.ctx.draw()}),{finished:c,needsRefreshHover:f}},r.prototype._doPaintEl=function(e,t,n,a,i,o){var s=t.ctx;if(n){var l=e.getPaintRect();(!a||l&&l.intersect(a))&&(Vu(s,e,i,o),e.setPrevPaintRect(l))}else Vu(s,e,i,o)},r.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=bu);var n=this._layers[e];return n||(n=new eT("zr_"+e,this,this.dpr),n.zlevel=e,n.__builtin__=!0,this._layerConfig[e]?Fe(n,this._layerConfig[e],!0):this._layerConfig[e-t0]&&Fe(n,this._layerConfig[e-t0],!0),t&&(n.virtual=t),this.insertLayer(e,n),n.initContext()),n},r.prototype.insertLayer=function(e,t){var n=this._layers,a=this._zlevelList,i=a.length,o=this._domRoot,s=null,l=-1;if(!n[e]&&Kue(t)){if(i>0&&e>a[0]){for(l=0;l<i-1&&!(a[l]<e&&a[l+1]>e);l++);s=n[a[l]]}if(a.splice(l+1,0,e),n[e]=t,!t.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(t.dom,u.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.painter||(t.painter=this)}},r.prototype.eachLayer=function(e,t){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a];e.call(t,this._layers[i],i)}},r.prototype.eachBuiltinLayer=function(e,t){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a],o=this._layers[i];o.__builtin__&&e.call(t,o,i)}},r.prototype.eachOtherLayer=function(e,t){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a],o=this._layers[i];o.__builtin__||e.call(t,o,i)}},r.prototype.getLayers=function(){return this._layers},r.prototype._updateLayerStatus=function(e){this.eachBuiltinLayer(function(f,d){f.__dirty=f.__used=!1});function t(f){i&&(i.__endIndex!==f&&(i.__dirty=!0),i.__endIndex=f)}if(this._singleCanvas)for(var n=1;n<e.length;n++){var a=e[n];if(a.zlevel!==e[n-1].zlevel||a.incremental){this._needsManuallyCompositing=!0;break}}var i=null,o=0,s,l;for(l=0;l<e.length;l++){var a=e[l],u=a.zlevel,c=void 0;s!==u&&(s=u,o=0),a.incremental?(c=this.getLayer(u+$ue,this._needsManuallyCompositing),c.incremental=!0,o=1):c=this.getLayer(u+(o>0?t0:0),this._needsManuallyCompositing),c.__builtin__||k1("ZLevel "+u+" has been used by unkown layer "+c.id),c!==i&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,t(l),i=c),a.__dirty&$n&&!a.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}t(l),this.eachBuiltinLayer(function(f,d){!f.__used&&f.getElementCount()>0&&(f.__dirty=!0,f.__startIndex=f.__endIndex=f.__drawIndex=0),f.__dirty&&f.__drawIndex<0&&(f.__drawIndex=f.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(e){e.clear()},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e,P(this._layers,function(t){t.setUnpainted()})},r.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?Fe(n[e],t,!0):n[e]=t;for(var a=0;a<this._zlevelList.length;a++){var i=this._zlevelList[a];if(i===e||i===e+t0){var o=this._layers[i];Fe(o,n[e],!0)}}}},r.prototype.delLayer=function(e){var t=this._layers,n=this._zlevelList,a=t[e];a&&(a.dom.parentNode.removeChild(a.dom),delete t[e],n.splice(Ge(n,e),1))},r.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var a=this._opts,i=this.root;if(e!=null&&(a.width=e),t!=null&&(a.height=t),e=Jf(i,0,a),t=Jf(i,1,a),n.style.display="",this._width!==e||t!==this._height){n.style.width=e+"px",n.style.height=t+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(e,t);this.refresh(!0)}this._width=e,this._height=t}else{if(e==null||t==null)return;this._width=e,this._height=t,this.getLayer(bu).resize(e,t)}return this},r.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},r.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[bu].dom;var t=new eT("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var a=t.dom.width,i=t.dom.height;this.eachLayer(function(f){f.__builtin__?n.drawImage(f.dom,0,0,a,i):f.renderToCanvas&&(n.save(),f.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var c=s[l];Vu(n,c,o,l===u-1)}return t.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r})();function ece(r){r.registerPainter("canvas",Jue)}var tce=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t){return Qi(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var n=new De,a=lr("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);n.add(a),a.setStyle(t.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,l=t.itemHeight*.8,u=lr(s,(t.itemWidth-l)/2,(t.itemHeight-l)/2,l,l,t.itemStyle.fill);n.add(u),u.setStyle(t.itemStyle);var c=t.iconRotate==="inherit"?o:t.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([t.itemWidth/2,t.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill=ee.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},e})(wt);function Ph(r,e){var t=r.mapDimensionsAll("defaultedLabel"),n=t.length;if(n===1){var a=Eh(r,e,t[0]);return a!=null?a+"":null}else if(n){for(var i=[],o=0;o<t.length;o++)i.push(Eh(r,e,t[o]));return i.join(" ")}}function WF(r,e){var t=r.mapDimensionsAll("defaultedLabel");if(!ue(e))return e+"";for(var n=[],a=0;a<t.length;a++){var i=r.getDimensionIndex(t[a]);i>=0&&n.push(e[i])}return n.join(" ")}var Ug=(function(r){K(e,r);function e(t,n,a,i){var o=r.call(this)||this;return o.updateData(t,n,a,i),o}return e.prototype._createSymbol=function(t,n,a,i,o,s){this.removeAll();var l=lr(t,-1,-1,2,2,null,s);l.attr({z2:Ce(o,100),culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),l.drift=rce,this._symbolType=t,this.add(l)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){Xo(this.childAt(0))},e.prototype.downplay=function(){qo(this.childAt(0))},e.prototype.setZ=function(t,n){var a=this.childAt(0);a.zlevel=t,a.z=n},e.prototype.setDraggable=function(t,n){var a=this.childAt(0);a.draggable=t,a.cursor=!n&&t?"move":a.cursor},e.prototype.updateData=function(t,n,a,i){this.silent=!1;var o=t.getItemVisual(n,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,n),u=e.getSymbolZ2(t,n),c=o!==this._symbolType,f=i&&i.disableAnimation;if(c){var d=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,l,u,d)}else{var v=this.childAt(0);v.silent=!1;var g={scaleX:l[0]/2,scaleY:l[1]/2};f?v.attr(g):ot(v,g,s,n),ka(v)}if(this._updateCommon(t,n,l,a,i),c){var v=this.childAt(0);if(!f){var g={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,zt(v,g,s,n)}}f&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,n,a,i,o){var s=this.childAt(0),l=t.hostModel,u,c,f,d,v,g,x,y,b;if(i&&(u=i.emphasisItemStyle,c=i.blurItemStyle,f=i.selectItemStyle,d=i.focus,v=i.blurScope,x=i.labelStatesModels,y=i.hoverScale,b=i.cursorStyle,g=i.emphasisDisabled),!i||t.hasItemOption){var S=i&&i.itemModel?i.itemModel:t.getItemModel(n),T=S.getModel("emphasis");u=T.getModel("itemStyle").getItemStyle(),f=S.getModel(["select","itemStyle"]).getItemStyle(),c=S.getModel(["blur","itemStyle"]).getItemStyle(),d=T.get("focus"),v=T.get("blurScope"),g=T.get("disabled"),x=_r(S),y=T.getShallow("scale"),b=S.getShallow("cursor")}var C=t.getItemVisual(n,"symbolRotate");s.attr("rotation",(C||0)*Math.PI/180||0);var M=Tc(t.getItemVisual(n,"symbolOffset"),a);M&&(s.x=M[0],s.y=M[1]),b&&s.attr("cursor",b);var D=t.getItemVisual(n,"style"),L=D.fill;if(s instanceof Nr){var E=s.style;s.useStyle(ie({image:E.image,x:E.x,y:E.y,width:E.width,height:E.height},D))}else s.__isEmptyBrush?s.useStyle(ie({},D)):s.useStyle(D),s.style.decal=null,s.setColor(L,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var R=t.getItemVisual(n,"liftZ"),I=this._z2;R!=null?I==null&&(this._z2=s.z2,s.z2+=R):I!=null&&(s.z2=I,this._z2=null);var k=o&&o.useNameLabel;Lr(s,x,{labelFetcher:l,labelDataIndex:n,defaultText:z,inheritColor:L,defaultOpacity:D.opacity});function z(F){return k?t.getName(F):Ph(t,F)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var O=s.ensureState("emphasis");O.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var G=y==null||y===!0?Math.max(1.1,3/this._sizeY):isFinite(y)&&y>0?+y:1;O.scaleX=this._sizeX*G,O.scaleY=this._sizeY*G,this.setSymbolScale(1),Ft(this,d,v,g)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,n,a){var i=this.childAt(0),o=ze(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&xl(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();xl(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,n){return od(t.getItemVisual(n,"symbolSize"))},e.getSymbolZ2=function(t,n){return t.getItemVisual(n,"z2")},e})(De);function rce(r,e){this.parent.drift(r,e)}function tT(r,e,t,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n.isIgnore&&n.isIgnore(t))&&!(n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&r.getItemVisual(t,"symbol")!=="none"}function r3(r){return r!=null&&!Re(r)&&(r={isIgnore:r}),r||{}}function n3(r){var e=r.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:_r(e),cursorStyle:e.get("cursor")}}var Yg=(function(){function r(e){this.group=new De,this._SymbolCtor=e||Ug}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=r3(t);var n=this.group,a=e.hostModel,i=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=n3(e),u={disableAnimation:s},c=t.getSymbolPoint||function(f){return e.getItemLayout(f)};i||n.removeAll(),e.diff(i).add(function(f){var d=c(f);if(tT(e,d,f,t)){var v=new o(e,f,l,u);v.setPosition(d),e.setItemGraphicEl(f,v),n.add(v)}}).update(function(f,d){var v=i.getItemGraphicEl(d),g=c(f);if(!tT(e,g,f,t)){n.remove(v);return}var x=e.getItemVisual(f,"symbol")||"circle",y=v&&v.getSymbolType&&v.getSymbolType();if(!v||y&&y!==x)n.remove(v),v=new o(e,f,l,u),v.setPosition(g);else{v.updateData(e,f,l,u);var b={x:g[0],y:g[1]};s?v.attr(b):ot(v,b,a)}n.add(v),e.setItemGraphicEl(f,v)}).remove(function(f){var d=i.getItemGraphicEl(f);d&&d.fadeOut(function(){n.remove(d)},a)}).execute(),this._getSymbolPoint=c,this._data=e},r.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(n,a){var i=e._getSymbolPoint(a);n.setPosition(i),n.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=n3(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,n){this._progressiveEls=[],n=r3(n);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i<e.end;i++){var o=t.getItemLayout(i);if(tT(t,o,i,n)){var s=new this._SymbolCtor(t,i,this._seriesScope);s.traverse(a),s.setPosition(o),this.group.add(s),t.setItemGraphicEl(i,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(e){Ml(this._progressiveEls||this.group,e)},r.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(a){a.fadeOut(function(){t.remove(a)},n.hostModel)}):t.removeAll()},r})();function XF(r,e,t){var n=r.getBaseAxis(),a=r.getOtherAxis(n),i=nce(a,t),o=n.dim,s=a.dim,l=e.mapDimension(s),u=e.mapDimension(o),c=s==="x"||s==="radius"?1:0,f=ce(r.dimensions,function(g){return e.mapDimension(g)}),d=!1,v=e.getCalculationInfo("stackResultDimension");return $o(e,f[0])&&(d=!0,f[0]=v),$o(e,f[1])&&(d=!0,f[1]=v),{dataDimsForPoint:f,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function nce(r,e){var t=0,n=r.scale.getExtent();return e==="start"?t=n[0]:e==="end"?t=n[1]:it(e)&&!isNaN(e)?t=e:n[0]>0?t=n[0]:n[1]<0&&(t=n[1]),t}function qF(r,e,t,n){var a=NaN;r.stacked&&(a=t.get(t.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=t.get(r.baseDim,n),o[1-i]=a,e.dataToPoint(o)}function ace(r,e){var t=[];return e.diff(r).add(function(n){t.push({cmd:"+",idx:n})}).update(function(n,a){t.push({cmd:"=",idx:a,idx1:n})}).remove(function(n){t.push({cmd:"-",idx:n})}).execute(),t}function ice(r,e,t,n,a,i,o,s){for(var l=ace(r,e),u=[],c=[],f=[],d=[],v=[],g=[],x=[],y=XF(a,e,o),b=r.getLayout("points")||[],S=e.getLayout("points")||[],T=0;T<l.length;T++){var C=l[T],M=!0,D=void 0,L=void 0;switch(C.cmd){case"=":D=C.idx*2,L=C.idx1*2;var E=b[D],R=b[D+1],I=S[L],k=S[L+1];(isNaN(E)||isNaN(R))&&(E=I,R=k),u.push(E,R),c.push(I,k),f.push(t[D],t[D+1]),d.push(n[L],n[L+1]),x.push(e.getRawIndex(C.idx1));break;case"+":var z=C.idx,O=y.dataDimsForPoint,G=a.dataToPoint([e.get(O[0],z),e.get(O[1],z)]);L=z*2,u.push(G[0],G[1]),c.push(S[L],S[L+1]);var F=qF(y,a,e,z);f.push(F[0],F[1]),d.push(n[L],n[L+1]),x.push(e.getRawIndex(z));break;case"-":M=!1}M&&(v.push(C),g.push(g.length))}g.sort(function(ge,we){return x[ge]-x[we]});for(var B=u.length,Y=Oi(B),H=Oi(B),X=Oi(B),V=Oi(B),W=[],T=0;T<g.length;T++){var $=g[T],te=T*2,le=$*2;Y[te]=u[le],Y[te+1]=u[le+1],H[te]=c[le],H[te+1]=c[le+1],X[te]=f[le],X[te+1]=f[le+1],V[te]=d[le],V[te+1]=d[le+1],W[T]=v[$]}return{current:Y,next:H,stackedOnCurrent:X,stackedOnNext:V,status:W}}var Ps=Math.min,zs=Math.max;function rc(r,e){return isNaN(r)||isNaN(e)}function iA(r,e,t,n,a,i,o,s,l){for(var u,c,f,d,v,g,x=t,y=0;y<n;y++){var b=e[x*2],S=e[x*2+1];if(x>=a||x<0)break;if(rc(b,S)){if(l){x+=i;continue}break}if(x===t)r[i>0?"moveTo":"lineTo"](b,S),f=b,d=S;else{var T=b-u,C=S-c;if(T*T+C*C<.5){x+=i;continue}if(o>0){for(var M=x+i,D=e[M*2],L=e[M*2+1];D===b&&L===S&&y<n;)y++,M+=i,x+=i,D=e[M*2],L=e[M*2+1],b=e[x*2],S=e[x*2+1],T=b-u,C=S-c;var E=y+1;if(l)for(;rc(D,L)&&E<n;)E++,M+=i,D=e[M*2],L=e[M*2+1];var R=.5,I=0,k=0,z=void 0,O=void 0;if(E>=n||rc(D,L))v=b,g=S;else{I=D-u,k=L-c;var G=b-u,F=D-b,B=S-c,Y=L-S,H=void 0,X=void 0;if(s==="x"){H=Math.abs(G),X=Math.abs(F);var V=I>0?1:-1;v=b-V*H*o,g=S,z=b+V*X*o,O=S}else if(s==="y"){H=Math.abs(B),X=Math.abs(Y);var W=k>0?1:-1;v=b,g=S-W*H*o,z=b,O=S+W*X*o}else H=Math.sqrt(G*G+B*B),X=Math.sqrt(F*F+Y*Y),R=X/(X+H),v=b-I*o*(1-R),g=S-k*o*(1-R),z=b+I*o*R,O=S+k*o*R,z=Ps(z,zs(D,b)),O=Ps(O,zs(L,S)),z=zs(z,Ps(D,b)),O=zs(O,Ps(L,S)),I=z-b,k=O-S,v=b-I*H/X,g=S-k*H/X,v=Ps(v,zs(u,b)),g=Ps(g,zs(c,S)),v=zs(v,Ps(u,b)),g=zs(g,Ps(c,S)),I=b-v,k=S-g,z=b+I*X/H,O=S+k*X/H}r.bezierCurveTo(f,d,v,g,b,S),f=z,d=O}else r.lineTo(b,S)}u=b,c=S,x+=i}return y}var ZF=(function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r})(),oce=(function(r){K(e,r);function e(t){var n=r.call(this,t)||this;return n.type="ec-polyline",n}return e.prototype.getDefaultStyle=function(){return{stroke:ee.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new ZF},e.prototype.buildPath=function(t,n){var a=n.points,i=0,o=a.length/2;if(n.connectNulls){for(;o>0&&rc(a[o*2-2],a[o*2-1]);o--);for(;i<o&&rc(a[i*2],a[i*2+1]);i++);}for(;i<o;)i+=iA(t,a,i,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},e.prototype.getPointOn=function(t,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var a=this.path,i=a.data,o=Yi.CMD,s,l,u=n==="x",c=[],f=0;f<i.length;){var d=i[f++],v=void 0,g=void 0,x=void 0,y=void 0,b=void 0,S=void 0,T=void 0;switch(d){case o.M:s=i[f++],l=i[f++];break;case o.L:if(v=i[f++],g=i[f++],T=u?(t-s)/(v-s):(t-l)/(g-l),T<=1&&T>=0){var C=u?(g-l)*T+l:(v-s)*T+s;return u?[t,C]:[C,t]}s=v,l=g;break;case o.C:v=i[f++],g=i[f++],x=i[f++],y=i[f++],b=i[f++],S=i[f++];var M=u?xx(s,v,x,b,t,c):xx(l,g,y,S,t,c);if(M>0)for(var D=0;D<M;D++){var L=c[D];if(L<=1&&L>=0){var C=u?Cr(l,g,y,S,L):Cr(s,v,x,b,L);return u?[t,C]:[C,t]}}s=b,l=S;break}}},e})(et),sce=(function(r){K(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(ZF),$F=(function(r){K(e,r);function e(t){var n=r.call(this,t)||this;return n.type="ec-polygon",n}return e.prototype.getDefaultShape=function(){return new sce},e.prototype.buildPath=function(t,n){var a=n.points,i=n.stackedOnPoints,o=0,s=a.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&rc(a[s*2-2],a[s*2-1]);s--);for(;o<s&&rc(a[o*2],a[o*2+1]);o++);}for(;o<s;){var u=iA(t,a,o,s,s,1,n.smooth,l,n.connectNulls);iA(t,i,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,t.closePath()}},e})(et);function KF(r,e,t,n,a){var i=r.getArea(),o=i.x,s=i.y,l=i.width,u=i.height,c=t.get(["lineStyle","width"])||0;o-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var f=new We({shape:{x:o,y:s,width:l,height:u}});if(e){var d=r.getBaseAxis(),v=d.isHorizontal(),g=d.inverse;v?(g&&(f.shape.x+=l),f.shape.width=0):(g||(f.shape.y+=u),f.shape.height=0);var x=Ae(a)?function(y){a(y,f)}:null;zt(f,{shape:{width:l,height:u,x:o,y:s}},t,null,n,x)}return f}function QF(r,e,t){var n=r.getArea(),a=or(n.r0,1),i=or(n.r,1),o=new Qr({shape:{cx:or(r.cx,1),cy:or(r.cy,1),r0:a,r:i,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(e){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=a,zt(o,{shape:{endAngle:n.endAngle,r:i}},t)}return o}function Wg(r,e,t,n,a){if(r){if(r.type==="polar")return QF(r,e,t);if(r.type==="cartesian2d")return KF(r,e,t,n,a)}else return null;return null}function bl(r,e){return r.type===e}function a3(r,e){if(r.length===e.length){for(var t=0;t<r.length;t++)if(r[t]!==e[t])return;return!0}}function i3(r){for(var e=1/0,t=1/0,n=-1/0,a=-1/0,i=0;i<r.length;){var o=r[i++],s=r[i++];isNaN(o)||(e=Math.min(o,e),n=Math.max(o,n)),isNaN(s)||(t=Math.min(s,t),a=Math.max(s,a))}return[[e,t],[n,a]]}function o3(r,e){var t=i3(r),n=t[0],a=t[1],i=i3(e),o=i[0],s=i[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(n[1]-o[1]),Math.abs(a[0]-s[0]),Math.abs(a[1]-s[1]))}function s3(r){return it(r)?r:r?.5:0}function lce(r,e,t){if(!t.valueDim)return[];for(var n=e.count(),a=Oi(n*2),i=0;i<n;i++){var o=qF(t,r,e,i);a[i*2]=o[0],a[i*2+1]=o[1]}return a}function Bs(r,e,t,n,a){var i=t.getBaseAxis(),o=i.dim==="x"||i.dim==="radius"?0:1,s=[],l=0,u=[],c=[],f=[],d=[];if(a){for(l=0;l<r.length;l+=2){var v=e||r;!isNaN(v[l])&&!isNaN(v[l+1])&&d.push(r[l],r[l+1])}r=d}for(l=0;l<r.length-2;l+=2)switch(f[0]=r[l+2],f[1]=r[l+3],c[0]=r[l],c[1]=r[l+1],s.push(c[0],c[1]),n){case"end":u[o]=f[o],u[1-o]=c[1-o],s.push(u[0],u[1]);break;case"middle":var g=(c[o]+f[o])/2,x=[];u[o]=x[o]=g,u[1-o]=c[1-o],x[1-o]=f[1-o],s.push(u[0],u[1]),s.push(x[0],x[1]);break;default:u[o]=c[o],u[1-o]=f[1-o],s.push(u[0],u[1])}return s.push(r[l++],r[l++]),s}function uce(r,e){var t=[],n=r.length,a,i;function o(c,f,d){var v=c.coord,g=(d-v)/(f.coord-v),x=kM(g,[c.color,f.color]);return{coord:d,color:x}}for(var s=0;s<n;s++){var l=r[s],u=l.coord;if(u<0)a=l;else if(u>e){i?t.push(o(i,l,e)):a&&t.push(o(a,l,0),o(a,l,e));break}else a&&(t.push(o(a,l,0)),a=null),t.push(l),i=l}return t}function cce(r,e,t){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())&&e.type==="cartesian2d"){for(var a,i,o=n.length-1;o>=0;o--){var s=r.getDimensionInfo(n[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=n[o];break}}if(i){var l=e.getAxis(a),u=ce(i.stops,function(T){return{coord:l.toGlobalCoord(l.dataToCoord(T.value)),color:T.color}}),c=u.length,f=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var d=uce(u,a==="x"?t.getWidth():t.getHeight()),v=d.length;if(!v&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var g=10,x=d[0].coord-g,y=d[v-1].coord+g,b=y-x;if(b<.001)return"transparent";P(d,function(T){T.offset=(T.coord-x)/b}),d.push({offset:v?d[v-1].offset:.5,color:f[1]||"transparent"}),d.unshift({offset:v?d[0].offset:.5,color:f[0]||"transparent"});var S=new bc(0,0,0,0,d,!0);return S[a]=x,S[a+"2"]=y,S}}}function fce(r,e,t){var n=r.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var i=t.getAxesByScale("ordinal")[0];if(i&&!(a&&hce(i,e))){var o=e.mapDimension(i.dim),s={};return P(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function hce(r,e){var t=r.getExtent(),n=Math.abs(t[1]-t[0])/r.scale.count();isNaN(n)&&(n=0);for(var a=e.count(),i=Math.max(1,Math.round(a/5)),o=0;o<a;o+=i)if(Ug.getSymbolSize(e,o)[r.isHorizontal()?1:0]*1.5>n)return!1;return!0}function dce(r,e){return isNaN(r)||isNaN(e)}function vce(r){for(var e=r.length/2;e>0&&dce(r[e*2-2],r[e*2-1]);e--);return e-1}function l3(r,e){return[r[e*2],r[e*2+1]]}function pce(r,e,t){for(var n=r.length/2,a=t==="x"?0:1,i,o,s=0,l=-1,u=0;u<n;u++)if(o=r[u*2+a],!(isNaN(o)||isNaN(r[u*2+1-a]))){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 JF(r){if(r.get(["endLabel","show"]))return!0;for(var e=0;e<xn.length;e++)if(r.get([xn[e],"endLabel","show"]))return!0;return!1}function rT(r,e,t,n){if(bl(e,"cartesian2d")){var a=n.getModel("endLabel"),i=a.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=JF(n)?function(v,g){r._endLabelOnDuring(v,g,o,s,i,a,e)}:null,u=e.getBaseAxis().isHorizontal(),c=KF(e,t,n,function(){var v=r._endLabel;v&&t&&s.originalX!=null&&v.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var f=c.shape,d=Math.max(f.width,f.height);u?(f.y-=d,f.height+=d*2):(f.x-=d,f.width+=d*2)}return l&&l(1,c),c}else return QF(e,t,n)}function gce(r,e){var t=e.getBaseAxis(),n=t.isHorizontal(),a=t.inverse,i=n?a?"right":"left":"center",o=n?"middle":a?"top":"bottom";return{normal:{align:r.get("align")||i,verticalAlign:r.get("verticalAlign")||o}}}var mce=(function(r){K(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(){var t=new De,n=new Yg;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=t,this._changePolyState=xe(this._changePolyState,this)},e.prototype.render=function(t,n,a){var i=t.coordinateSystem,o=this.group,s=t.getData(),l=t.getModel("lineStyle"),u=t.getModel("areaStyle"),c=s.getLayout("points")||[],f=i.type==="polar",d=this._coordSys,v=this._symbolDraw,g=this._polyline,x=this._polygon,y=this._lineGroup,b=!n.ssr&&t.get("animation"),S=!u.isEmpty(),T=u.get("origin"),C=XF(i,s,T),M=S&&lce(i,s,C),D=t.get("showSymbol"),L=t.get("connectNulls"),E=D&&!f&&fce(t,s,i),R=this._data;R&&R.eachItemGraphicEl(function(ge,we){ge.__temp&&(o.remove(ge),R.setItemGraphicEl(we,null))}),D||v.remove(),o.add(y);var I=f?!1:t.get("step"),k;i&&i.getArea&&t.get("clip",!0)&&(k=i.getArea(),k.width!=null?(k.x-=.1,k.y-=.1,k.width+=.2,k.height+=.2):k.r0&&(k.r0-=.5,k.r+=.5)),this._clipShapeForSymbol=k;var z=cce(s,i,a)||s.getVisual("style")[s.getVisual("drawType")];if(!(g&&d.type===i.type&&I===this._step))D&&v.updateData(s,{isIgnore:E,clipShape:k,disableAnimation:!0,getSymbolPoint:function(ge){return[c[ge*2],c[ge*2+1]]}}),b&&this._initSymbolLabelAnimation(s,i,k),I&&(M&&(M=Bs(M,c,i,I,L)),c=Bs(c,null,i,I,L)),g=this._newPolyline(c),S?x=this._newPolygon(c,M):x&&(y.remove(x),x=this._polygon=null),f||this._initOrUpdateEndLabel(t,i,dc(z)),y.setClipPath(rT(this,i,!0,t));else{S&&!x?x=this._newPolygon(c,M):x&&!S&&(y.remove(x),x=this._polygon=null),f||this._initOrUpdateEndLabel(t,i,dc(z));var O=y.getClipPath();if(O){var G=rT(this,i,!1,t);zt(O,{shape:G.shape},t)}else y.setClipPath(rT(this,i,!0,t));D&&v.updateData(s,{isIgnore:E,clipShape:k,disableAnimation:!0,getSymbolPoint:function(ge){return[c[ge*2],c[ge*2+1]]}}),(!a3(this._stackedOnPoints,M)||!a3(this._points,c))&&(b?this._doUpdateAnimation(s,M,i,a,I,T,L):(I&&(M&&(M=Bs(M,c,i,I,L)),c=Bs(c,null,i,I,L)),g.setShape({points:c}),x&&x.setShape({points:c,stackedOnPoints:M})))}var F=t.getModel("emphasis"),B=F.get("focus"),Y=F.get("blurScope"),H=F.get("disabled");if(g.useStyle(Ne(l.getLineStyle(),{fill:"none",stroke:z,lineJoin:"bevel"})),br(g,t,"lineStyle"),g.style.lineWidth>0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var X=g.getState("emphasis").style;X.lineWidth=+g.style.lineWidth+1}ze(g).seriesIndex=t.seriesIndex,Ft(g,B,Y,H);var V=s3(t.get("smooth")),W=t.get("smoothMonotone");if(g.setShape({smooth:V,smoothMonotone:W,connectNulls:L}),x){var $=s.getCalculationInfo("stackedOnSeries"),te=0;x.useStyle(Ne(u.getAreaStyle(),{fill:z,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),$&&(te=s3($.get("smooth"))),x.setShape({smooth:V,stackedOnSmooth:te,smoothMonotone:W,connectNulls:L}),br(x,t,"areaStyle"),ze(x).seriesIndex=t.seriesIndex,Ft(x,B,Y,H)}var le=this._changePolyState;s.eachItemGraphicEl(function(ge){ge&&(ge.onHoverStateChange=le)}),this._polyline.onHoverStateChange=le,this._data=s,this._coordSys=i,this._stackedOnPoints=M,this._points=c,this._step=I,this._valueOrigin=T,t.get("triggerLineEvent")&&(this.packEventData(t,g),x&&this.packEventData(t,x))},e.prototype.packEventData=function(t,n){ze(n).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,n,a,i){var o=t.getData(),s=lc(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 c=l[s*2],f=l[s*2+1];if(isNaN(c)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var d=t.get("zlevel")||0,v=t.get("z")||0;u=new Ug(o,s),u.x=c,u.y=f,u.setZ(d,v);var g=u.getSymbolPath().getTextContent();g&&(g.zlevel=d,g.z=v,g.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else _t.prototype.highlight.call(this,t,n,a,i)},e.prototype.downplay=function(t,n,a,i){var o=t.getData(),s=lc(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 _t.prototype.downplay.call(this,t,n,a,i)},e.prototype._changePolyState=function(t){var n=this._polygon;Rx(this._polyline,t),n&&Rx(n,t)},e.prototype._newPolyline=function(t){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new oce({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},e.prototype._newPolygon=function(t,n){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new $F({shape:{points:t,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},e.prototype._initSymbolLabelAnimation=function(t,n,a){var i,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):n.type==="polar"&&(i=s.dim==="angle",o=!0);var u=t.hostModel,c=u.get("animationDuration");Ae(c)&&(c=c(null));var f=u.get("animationDelay")||0,d=Ae(f)?f(null):f;t.eachItemGraphicEl(function(v,g){var x=v;if(x){var y=[v.x,v.y],b=void 0,S=void 0,T=void 0;if(a)if(o){var C=a,M=n.pointToCoord(y);i?(b=C.startAngle,S=C.endAngle,T=-M[1]/180*Math.PI):(b=C.r0,S=C.r,T=M[0])}else{var D=a;i?(b=D.x,S=D.x+D.width,T=v.x):(b=D.y+D.height,S=D.y,T=v.y)}var L=S===b?0:(T-b)/(S-b);l&&(L=1-L);var E=Ae(f)?f(g):c*L+d,R=x.getSymbolPath(),I=R.getTextContent();x.attr({scaleX:0,scaleY:0}),x.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:E}),I&&I.animateFrom({style:{opacity:0}},{duration:300,delay:E}),R.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,n,a){var i=t.getModel("endLabel");if(JF(t)){var o=t.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 at({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=vce(l);c>=0&&(Lr(s,_r(t,"endLabel"),{inheritColor:a,labelFetcher:t,labelDataIndex:c,defaultText:function(f,d,v){return v!=null?WF(o,v):Ph(o,f)},enableTextSetter:!0},gce(i,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,n,a,i,o,s,l){var u=this._endLabel,c=this._polyline;if(u){t<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var f=a.getLayout("points"),d=a.hostModel,v=d.get("connectNulls"),g=s.get("precision"),x=s.get("distance")||0,y=l.getBaseAxis(),b=y.isHorizontal(),S=y.inverse,T=n.shape,C=S?b?T.x:T.y+T.height:b?T.x+T.width:T.y,M=(b?x:0)*(S?-1:1),D=(b?0:-x)*(S?-1:1),L=b?"x":"y",E=pce(f,C,L),R=E.range,I=R[1]-R[0],k=void 0;if(I>=1){if(I>1&&!v){var z=l3(f,R[0]);u.attr({x:z[0]+M,y:z[1]+D}),o&&(k=d.getRawValue(R[0]))}else{var z=c.getPointOn(C,L);z&&u.attr({x:z[0]+M,y:z[1]+D});var O=d.getRawValue(R[0]),G=d.getRawValue(R[1]);o&&(k=T6(a,g,O,G,E.t))}i.lastFrameIndex=R[0]}else{var F=t===1||i.lastFrameIndex>0?R[0]:0,z=l3(f,F);o&&(k=d.getRawValue(F)),u.attr({x:z[0]+M,y:z[1]+D})}if(o){var B=ed(u);typeof B.setLabelText=="function"&&B.setLabelText(k)}}},e.prototype._doUpdateAnimation=function(t,n,a,i,o,s,l){var u=this._polyline,c=this._polygon,f=t.hostModel,d=ice(this._data,t,this._stackedOnPoints,n,this._coordSys,a,this._valueOrigin),v=d.current,g=d.stackedOnCurrent,x=d.next,y=d.stackedOnNext;if(o&&(g=Bs(d.stackedOnCurrent,d.current,a,o,l),v=Bs(d.current,null,a,o,l),y=Bs(d.stackedOnNext,d.next,a,o,l),x=Bs(d.next,null,a,o,l)),o3(v,x)>3e3||c&&o3(g,y)>3e3){u.stopAnimation(),u.setShape({points:x}),c&&(c.stopAnimation(),c.setShape({points:x,stackedOnPoints:y}));return}u.shape.__points=d.current,u.shape.points=v;var b={shape:{points:x}};d.current!==v&&(b.shape.__points=d.next),u.stopAnimation(),ot(u,b,f),c&&(c.setShape({points:v,stackedOnPoints:g}),c.stopAnimation(),ot(c,{shape:{stackedOnPoints:y}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var S=[],T=d.status,C=0;C<T.length;C++){var M=T[C].cmd;if(M==="="){var D=t.getItemGraphicEl(T[C].idx1);D&&S.push({el:D,ptIdx:C})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var L=u.shape.__points,E=0;E<S.length;E++){var R=S[E].el,I=S[E].ptIdx*2;R.x=L[I],R.y=L[I+1],R.markRedraw()}})},e.prototype.remove=function(t){var n=this.group,a=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),a&&a.eachItemGraphicEl(function(i,o){i.__temp&&(n.remove(i),a.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e})(_t);function Xg(r,e){return{seriesType:r,plan:ad(),reset:function(t){var n=t.getData(),a=t.coordinateSystem,i=t.pipelineContext,o=e||i.large;if(a){var s=ce(a.dimensions,function(v){return n.mapDimension(v)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");$o(n,s[0])&&(s[0]=u),$o(n,s[1])&&(s[1]=u);var c=n.getStore(),f=n.getDimensionIndex(s[0]),d=n.getDimensionIndex(s[1]);return l&&{progress:function(v,g){for(var x=v.end-v.start,y=o&&Oi(x*l),b=[],S=[],T=v.start,C=0;T<v.end;T++){var M=void 0;if(l===1){var D=c.get(f,T);M=a.dataToPoint(D,null,S)}else b[0]=c.get(f,T),b[1]=c.get(d,T),M=a.dataToPoint(b,null,S);o?(y[C++]=M[0],y[C++]=M[1]):g.setItemLayout(T,M.slice())}o&&g.setLayout("points",y)}}}}}}var yce={average:function(r){for(var e=0,t=0,n=0;n<r.length;n++)isNaN(r[n])||(e+=r[n],t++);return t===0?NaN:e/t},sum:function(r){for(var e=0,t=0;t<r.length;t++)e+=r[t]||0;return e},max:function(r){for(var e=-1/0,t=0;t<r.length;t++)r[t]>e&&(e=r[t]);return isFinite(e)?e:NaN},min:function(r){for(var e=1/0,t=0;t<r.length;t++)r[t]<e&&(e=r[t]);return isFinite(e)?e:NaN},nearest:function(r){return r[0]}},xce=function(r){return Math.round(r.length/2)};function e7(r){return{seriesType:r,reset:function(e,t,n){var a=e.getData(),i=e.get("sampling"),o=e.coordinateSystem,s=a.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),f=n.getDevicePixelRatio(),d=Math.abs(c[1]-c[0])*(f||1),v=Math.round(s/d);if(isFinite(v)&&v>1){i==="lttb"?e.setData(a.lttbDownSample(a.mapDimension(u.dim),1/v)):i==="minmax"&&e.setData(a.minmaxDownSample(a.mapDimension(u.dim),1/v));var g=void 0;ye(i)?g=yce[i]:Ae(i)&&(g=i),g&&e.setData(a.downSample(a.mapDimension(u.dim),1/v,g,xce))}}}}}function bce(r){r.registerChartView(mce),r.registerSeriesModel(tce),r.registerLayout(Xg("line",!0)),r.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",n)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,e7("line"))}var cg=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,n){return Qi(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,n,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(t),s=i.dataToPoint(o);if(a)P(i.getAxes(),function(d,v){if(d.type==="category"&&n!=null){var g=d.getTicksCoords(),x=d.getTickModel().get("alignWithLabel"),y=o[v],b=n[v]==="x1"||n[v]==="y1";if(b&&!x&&(y+=1),g.length<2)return;if(g.length===2){s[v]=d.toGlobalCoord(d.getExtent()[b?1:0]);return}for(var S=void 0,T=void 0,C=1,M=0;M<g.length;M++){var D=g[M].coord,L=M===g.length-1?g[M-1].tickValue+C:g[M].tickValue;if(L===y){T=D;break}else if(L<y)S=D;else if(S!=null&&L>y){T=(D+S)/2;break}M===1&&(C=L-g[0].tickValue)}T==null&&(S?S&&(T=g[g.length-1].coord):T=g[0].coord),s[v]=d.toGlobalCoord(T)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=i.getBaseAxis().isHorizontal()?0:1;s[f]+=u+c/2}return s}return[NaN,NaN]},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})(wt);wt.registerClass(cg);var _ce=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return Qi(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>t&&(t=n),t},e.prototype.brushSelector=function(t,n,a){return a.rect(n.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=Dl(cg.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:ee.color.primary,borderWidth:2}},realtimeSort:!1}),e})(cg),Sce=(function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r})(),e1=(function(r){K(e,r);function e(t){var n=r.call(this,t)||this;return n.type="sausage",n}return e.prototype.getDefaultShape=function(){return new Sce},e.prototype.buildPath=function(t,n){var a=n.cx,i=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,c=n.startAngle,f=n.endAngle,d=n.clockwise,v=Math.PI*2,g=d?f-c<v:c-f<v;g||(c=f-(d?v:-v));var x=Math.cos(c),y=Math.sin(c),b=Math.cos(f),S=Math.sin(f);g?(t.moveTo(x*o+a,y*o+i),t.arc(x*u+a,y*u+i,l,-Math.PI+c,c,!d)):t.moveTo(x*s+a,y*s+i),t.arc(a,i,s,c,f,!d),t.arc(b*u+a,S*u+i,l,f-Math.PI*2,f-Math.PI,!d),o!==0&&t.arc(a,i,o,f,c,d)},e})(et);function wce(r,e){e=e||{};var t=e.isRoundCap;return function(n,a,i){var o=a.position;if(!o||o instanceof Array)return Ax(n,a,i);var s=r(o),l=a.distance!=null?a.distance:5,u=this.shape,c=u.cx,f=u.cy,d=u.r,v=u.r0,g=(d+v)/2,x=u.startAngle,y=u.endAngle,b=(x+y)/2,S=t?Math.abs(d-v)/2:0,T=Math.cos,C=Math.sin,M=c+d*T(x),D=f+d*C(x),L="left",E="top";switch(s){case"startArc":M=c+(v-l)*T(b),D=f+(v-l)*C(b),L="center",E="top";break;case"insideStartArc":M=c+(v+l)*T(b),D=f+(v+l)*C(b),L="center",E="bottom";break;case"startAngle":M=c+g*T(x)+r0(x,l+S,!1),D=f+g*C(x)+n0(x,l+S,!1),L="right",E="middle";break;case"insideStartAngle":M=c+g*T(x)+r0(x,-l+S,!1),D=f+g*C(x)+n0(x,-l+S,!1),L="left",E="middle";break;case"middle":M=c+g*T(b),D=f+g*C(b),L="center",E="middle";break;case"endArc":M=c+(d+l)*T(b),D=f+(d+l)*C(b),L="center",E="bottom";break;case"insideEndArc":M=c+(d-l)*T(b),D=f+(d-l)*C(b),L="center",E="top";break;case"endAngle":M=c+g*T(y)+r0(y,l+S,!0),D=f+g*C(y)+n0(y,l+S,!0),L="left",E="middle";break;case"insideEndAngle":M=c+g*T(y)+r0(y,-l+S,!0),D=f+g*C(y)+n0(y,-l+S,!0),L="right",E="middle";break;default:return Ax(n,a,i)}return n=n||{},n.x=M,n.y=D,n.align=L,n.verticalAlign=E,n}}function Tce(r,e,t,n){if(it(n)){r.setTextConfig({rotation:n});return}else if(ue(e)){r.setTextConfig({rotation:0});return}var a=r.shape,i=a.clockwise?a.startAngle:a.endAngle,o=a.clockwise?a.endAngle:a.startAngle,s=(i+o)/2,l,u=t(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:r.setTextConfig({rotation:0});return}var c=Math.PI*1.5-l;u==="middle"&&c>Math.PI/2&&c<Math.PI*1.5&&(c-=Math.PI),r.setTextConfig({rotation:c})}function r0(r,e,t){return e*Math.sin(r)*(t?-1:1)}function n0(r,e,t){return e*Math.cos(r)*(t?1:-1)}function zi(r,e,t){var n=r.get("borderRadius");if(n==null)return t?{cornerRadius:0}:null;ue(n)||(n=[n,n,n,n]);var a=Math.abs(e.r||0-e.r0||0);return{cornerRadius:ce(n,function(i){return ai(i,a)})}}var nT=Math.max,aT=Math.min;function Cce(r,e){var t=r.getArea&&r.getArea();if(bl(r,"cartesian2d")){var n=r.getBaseAxis();if(n.type!=="category"||!n.onBand){var a=e.getLayout("bandWidth");n.isHorizontal()?(t.x-=a,t.width+=a*2):(t.y-=a,t.height+=a*2)}}return t}var Ace=(function(r){K(e,r);function e(){var t=r.call(this)||this;return t.type=e.type,t._isFirstFrame=!0,t}return e.prototype.render=function(t,n,a,i){this._model=t,this._removeOnRenderedListener(a),this._updateDrawMode(t);var o=t.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,n,a):this._renderNormal(t,n,a,i))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,n){this._progressiveEls=[],this._incrementalRenderLarge(t,n)},e.prototype.eachRendered=function(t){Ml(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var n=t.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},e.prototype._renderNormal=function(t,n,a,i){var o=this.group,s=t.getData(),l=this._data,u=t.coordinateSystem,c=u.getBaseAxis(),f;u.type==="cartesian2d"?f=c.isHorizontal():u.type==="polar"&&(f=c.dim==="angle");var d=t.isAnimationEnabled()?t:null,v=Mce(t,u);v&&this._enableRealtimeSort(v,s,a);var g=t.get("clip",!0)||v,x=Cce(u,s);o.removeClipPath();var y=t.get("roundCap",!0),b=t.get("showBackground",!0),S=t.getModel("backgroundStyle"),T=S.get("borderRadius")||0,C=[],M=this._backgroundEls,D=i&&i.isInitSort,L=i&&i.type==="changeAxisOrder";function E(k){var z=a0[u.type](s,k);if(!z)return null;var O=kce(u,f,z);return O.useStyle(S.getItemStyle()),u.type==="cartesian2d"?O.setShape("r",T):O.setShape("cornerRadius",T),C[k]=O,O}s.diff(l).add(function(k){var z=s.getItemModel(k),O=a0[u.type](s,k,z);if(O&&(b&&E(k),!(!s.hasValue(k)||!d3[u.type](O)))){var G=!1;g&&(G=u3[u.type](x,O));var F=c3[u.type](t,s,k,O,f,d,c.model,!1,y);v&&(F.forceLabelAnimation=!0),v3(F,s,k,z,O,t,f,u.type==="polar"),D?F.attr({shape:O}):v?f3(v,d,F,O,k,f,!1,!1):zt(F,{shape:O},t,k),s.setItemGraphicEl(k,F),o.add(F),F.ignore=G}}).update(function(k,z){var O=s.getItemModel(k),G=a0[u.type](s,k,O);if(G){if(b){var F=void 0;M.length===0?F=E(z):(F=M[z],F.useStyle(S.getItemStyle()),u.type==="cartesian2d"?F.setShape("r",T):F.setShape("cornerRadius",T),C[k]=F);var B=a0[u.type](s,k),Y=r7(f,B,u);ot(F,{shape:Y},d,k)}var H=l.getItemGraphicEl(z);if(!s.hasValue(k)||!d3[u.type](G)){o.remove(H);return}var X=!1;g&&(X=u3[u.type](x,G),X&&o.remove(H));var V=H&&(H.type==="sector"&&y||H.type==="sausage"&&!y);if(V&&(H&&jo(H,t,z),H=null),H?ka(H):H=c3[u.type](t,s,k,G,f,d,c.model,!0,y),v&&(H.forceLabelAnimation=!0),L){var W=H.getTextContent();if(W){var $=ed(W);$.prevValue!=null&&($.prevValue=$.value)}}else v3(H,s,k,O,G,t,f,u.type==="polar");D?H.attr({shape:G}):v?f3(v,d,H,G,k,f,!0,L):ot(H,{shape:G},t,k,null),s.setItemGraphicEl(k,H),H.ignore=X,o.add(H)}}).remove(function(k){var z=l.getItemGraphicEl(k);z&&jo(z,t,k)}).execute();var R=this._backgroundGroup||(this._backgroundGroup=new De);R.removeAll();for(var I=0;I<C.length;++I)R.add(C[I]);o.add(R),this._backgroundEls=C,this._data=s},e.prototype._renderLarge=function(t,n,a){this._clear(),g3(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,n){this._removeBackground(),g3(n,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var n=t.get("clip",!0)&&Wg(t.coordinateSystem,!1,t),a=this.group;n?a.setClipPath(n):a.removeClipPath()},e.prototype._enableRealtimeSort=function(t,n,a){var i=this;if(n.count()){var o=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,t,a),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),c=u&&u.shape;return c&&Math.abs(o.isHorizontal()?c.height:c.width)||0};this._onRendered=function(){i._updateSortWithinSameData(n,s,o,a)},a.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,n,a){var i=[];return t.each(t.mapDimension(n.dim),function(o,s){var l=a(s);l=l??NaN,i.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),i.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:ce(i,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(t,n,a){for(var i=a.scale,o=t.mapDimension(a.dim),s=Number.MAX_VALUE,l=0,u=i.getOrdinalMeta().categories.length;l<u;++l){var c=t.rawIndexOf(o,i.getRawOrdinalNumber(l)),f=c<0?Number.MIN_VALUE:n(t.indexOfRawIndex(c));if(f>s)return!0;s=f}return!1},e.prototype._isOrderDifferentInView=function(t,n){for(var a=n.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,n,a,i){if(this._isOrderChangedWithinSameData(t,n,a)){var o=this._dataSort(t,a,n);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,n,a){var i=n.baseAxis,o=this._dataSort(t,i,function(s){return t.get(t.mapDimension(n.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(t,n){this._clear(this._model),this._removeOnRenderedListener(n)},e.prototype.dispose=function(t,n){this._removeOnRenderedListener(n)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var n=this.group,a=this._data;t&&t.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){jo(i,t,ze(i).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e})(_t),u3={cartesian2d:function(r,e){var t=e.width<0?-1:1,n=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height);var a=r.x+r.width,i=r.y+r.height,o=nT(e.x,r.x),s=aT(e.x+e.width,a),l=nT(e.y,r.y),u=aT(e.y+e.height,i),c=s<o,f=u<l;return e.x=c&&o>a?s:o,e.y=f&&l>i?u:l,e.width=c?0:s-o,e.height=f?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height),c||f},polar:function(r,e){var t=e.r0<=e.r?1:-1;if(t<0){var n=e.r;e.r=e.r0,e.r0=n}var a=aT(e.r,r.r),i=nT(e.r0,r.r0);e.r=a,e.r0=i;var o=a-i<0;if(t<0){var n=e.r;e.r=e.r0,e.r0=n}return o}},c3={cartesian2d:function(r,e,t,n,a,i,o,s,l){var u=new We({shape:ie({},n),z2:1});if(u.__dataIndex=t,u.name="item",i){var c=u.shape,f=a?"height":"width";c[f]=0}return u},polar:function(r,e,t,n,a,i,o,s,l){var u=!a&&l?e1:Qr,c=new u({shape:n,z2:1});c.name="item";var f=t7(a);if(c.calculateTextPosition=wce(f,{isRoundCap:u===e1}),i){var d=c.shape,v=a?"r":"endAngle",g={};d[v]=a?n.r0:n.startAngle,g[v]=n[v],(s?ot:zt)(c,{shape:g},i)}return c}};function Mce(r,e){var t=r.get("realtimeSort",!0),n=e.getBaseAxis();if(t&&n.type==="category"&&e.type==="cartesian2d")return{baseAxis:n,otherAxis:e.getOtherAxis(n)}}function f3(r,e,t,n,a,i,o,s){var l,u;i?(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?ot:zt)(t,{shape:l},e,a,null);var c=e?r.baseAxis.model:null;(o?ot:zt)(t,{shape:u},c,a)}function h3(r,e){for(var t=0;t<e.length;t++)if(!isFinite(r[e[t]]))return!0;return!1}var Dce=["x","y","width","height"],Lce=["cx","cy","r","startAngle","endAngle"],d3={cartesian2d:function(r){return!h3(r,Dce)},polar:function(r){return!h3(r,Lce)}},a0={cartesian2d:function(r,e,t){var n=r.getItemLayout(e);if(!n)return null;var a=t?Rce(t,n):0,i=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+i*a/2,y:n.y+o*a/2,width:n.width-i*a,height:n.height-o*a}},polar:function(r,e,t){var n=r.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 Nce(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function t7(r){return(function(e){var t=e?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+t;default:return n}}})(r)}function v3(r,e,t,n,a,i,o,s){var l=e.getItemVisual(t,"style");if(s){if(!i.get("roundCap")){var c=r.shape,f=zi(n.getModel("itemStyle"),c,!0);ie(c,f),r.setShape(c)}}else{var u=n.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var d=n.getShallow("cursor");d&&r.attr("cursor",d);var v=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",g=_r(n);Lr(r,g,{labelFetcher:i,labelDataIndex:t,defaultText:Ph(i.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:v});var x=r.getTextContent();if(s&&x){var y=n.get(["label","position"]);r.textConfig.inside=y==="middle"?!0:null,Tce(r,y==="outside"?v:y,t7(o),n.get(["label","rotate"]))}fH(x,g,i.getRawValue(t),function(S){return WF(e,S)});var b=n.getModel(["emphasis"]);Ft(r,b.get("focus"),b.get("blurScope"),b.get("disabled")),br(r,n),Nce(a)&&(r.style.fill="none",r.style.stroke="none",P(r.states,function(S){S.style&&(S.style.fill=S.style.stroke="none")}))}function Rce(r,e){var t=r.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var n=r.get(["itemStyle","borderWidth"])||0,a=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),i=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(n,a,i)}var Ece=(function(){function r(){}return r})(),p3=(function(r){K(e,r);function e(t){var n=r.call(this,t)||this;return n.type="largeBar",n}return e.prototype.getDefaultShape=function(){return new Ece},e.prototype.buildPath=function(t,n){for(var a=n.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c<a.length;c+=3)l[i]=u,l[o]=a[c+2],s[i]=a[c+i],s[o]=a[c+o],t.rect(s[0],s[1],l[0],l[1])},e})(et);function g3(r,e,t,n){var a=r.getData(),i=a.getLayout("valueAxisHorizontal")?1:0,o=a.getLayout("largeDataIndices"),s=a.getLayout("size"),l=r.getModel("backgroundStyle"),u=a.getLayout("largeBackgroundPoints");if(u){var c=new p3({shape:{points:u},incremental:!!n,silent:!0,z2:0});c.baseDimIdx=i,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),t&&t.push(c)}var f=new p3({shape:{points:a.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=i,f.largeDataIndices=o,f.barWidth=s,e.add(f),f.useStyle(a.getVisual("style")),f.style.stroke=null,ze(f).seriesIndex=r.seriesIndex,r.get("silent")||(f.on("mousedown",m3),f.on("mousemove",m3)),t&&t.push(f)}var m3=ab(function(r){var e=this,t=Ice(e,r.offsetX,r.offsetY);ze(e).dataIndex=t>=0?t:null},30,!1);function Ice(r,e,t){for(var n=r.baseDimIdx,a=1-n,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,c=0,f=i.length/3;c<f;c++){var d=c*3;if(l[n]=u,l[a]=i[d+2],s[n]=i[d+n],s[a]=i[d+a],l[a]<0&&(s[a]+=l[a],l[a]=-l[a]),e>=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[c]}return-1}function r7(r,e,t){if(bl(t,"cartesian2d")){var n=e,a=t.getArea();return{x:r?n.x:a.x,y:r?a.y:n.y,width:r?n.width:a.width,height:r?a.height:n.height}}else{var a=t.getArea(),i=e;return{cx:a.cx,cy:a.cy,r0:r?a.r0:i.r0,r:r?a.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function kce(r,e,t){var n=r.type==="polar"?Qr:We;return new n({shape:r7(e,t,r),silent:!0,z2:0})}function Oce(r){r.registerChartView(Ace),r.registerSeriesModel(_ce),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,Ve(iF,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,oF("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,e7("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},function(a){e.sortInfo&&a.axis.setCategorySortInfo(e.sortInfo)})})}var y3=Math.PI*2,i0=Math.PI/180;function Pce(r,e,t){e.eachSeriesByType(r,function(n){var a=n.getData(),i=a.mapDimension("value"),o=LH(n,t),s=o.cx,l=o.cy,u=o.r,c=o.r0,f=o.viewRect,d=-n.get("startAngle")*i0,v=n.get("endAngle"),g=n.get("padAngle")*i0;v=v==="auto"?d-y3:-v*i0;var x=n.get("minAngle")*i0,y=x+g,b=0;a.each(i,function(Y){!isNaN(Y)&&b++});var S=a.getSum(i),T=Math.PI/(S||b)*2,C=n.get("clockwise"),M=n.get("roseType"),D=n.get("stillShowZeroSum"),L=a.getDataExtent(i);L[0]=0;var E=C?1:-1,R=[d,v],I=E*g/2;X1(R,!C),d=R[0],v=R[1];var k=n7(n);k.startAngle=d,k.endAngle=v,k.clockwise=C,k.cx=s,k.cy=l,k.r=u,k.r0=c;var z=Math.abs(v-d),O=z,G=0,F=d;if(a.setLayout({viewRect:f,r:u}),a.each(i,function(Y,H){var X;if(isNaN(Y)){a.setItemLayout(H,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:C,cx:s,cy:l,r0:c,r:M?NaN:u});return}M!=="area"?X=S===0&&D?T:Y*T:X=z/b,X<y?(X=y,O-=y):G+=Y;var V=F+E*X,W=0,$=0;g>X?(W=F+E*X/2,$=W):(W=F+I,$=V-I),a.setItemLayout(H,{angle:X,startAngle:W,endAngle:$,clockwise:C,cx:s,cy:l,r0:c,r:M?vt(Y,L,[c,u]):u}),F=V}),O<y3&&b)if(O<=.001){var B=z/b;a.each(i,function(Y,H){if(!isNaN(Y)){var X=a.getItemLayout(H);X.angle=B;var V=0,W=0;B<g?(V=d+E*(H+1/2)*B,W=V):(V=d+E*H*B+I,W=d+E*(H+1)*B-I),X.startAngle=V,X.endAngle=W}})}else T=O/G,F=d,a.each(i,function(Y,H){if(!isNaN(Y)){var X=a.getItemLayout(H),V=X.angle===y?y:Y*T,W=0,$=0;V<g?(W=F+E*V/2,$=W):(W=F+I,$=F+E*V-I),X.startAngle=W,X.endAngle=$,F+=E*V}})})}var n7=Ke();function cd(r){return{seriesType:r,reset:function(e,t){var n=t.findComponents({mainType:"legend"});if(!(!n||!n.length)){var a=e.getData();a.filterSelf(function(i){for(var o=a.getName(i),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}var zce=Math.PI/180;function x3(r,e,t,n,a,i,o,s,l,u){if(r.length<2)return;function c(x){for(var y=x.rB,b=y*y,S=0;S<x.list.length;S++){var T=x.list[S],C=Math.abs(T.label.y-t),M=n+T.len,D=M*M,L=Math.sqrt(Math.abs((1-C*C/b)*D)),E=e+(L+T.len2)*a,R=E-T.label.x,I=T.targetTextWidth-R*a;a7(T,I,!0),T.label.x=E}}function f(x){for(var y={list:[],maxY:0},b={list:[],maxY:0},S=0;S<x.length;S++)if(x[S].labelAlignTo==="none"){var T=x[S],C=T.label.y>t?b:y,M=Math.abs(T.label.y-t);if(M>=C.maxY){var D=T.label.x-e-T.len2*a,L=n+T.len,E=Math.abs(D)<L?Math.sqrt(M*M/(1-D*D/L/L)):L;C.rB=E,C.maxY=M}C.list.push(T)}c(y),c(b)}for(var d=r.length,v=0;v<d;v++)if(r[v].position==="outer"&&r[v].labelAlignTo==="labelLine"){var g=r[v].label.x-u;r[v].linePoints[1][0]+=g,r[v].label.x=u}tA(r,1,l,l+o)&&f(r)}function Bce(r,e,t,n,a,i,o,s){for(var l=[],u=[],c=Number.MAX_VALUE,f=-Number.MAX_VALUE,d=0;d<r.length;d++){var v=r[d].label;iT(r[d])||(v.x<e?(c=Math.min(c,v.x),l.push(r[d])):(f=Math.max(f,v.x),u.push(r[d])))}for(var d=0;d<r.length;d++){var g=r[d];if(!iT(g)&&g.linePoints){if(g.labelStyleWidth!=null)continue;var v=g.label,x=g.linePoints,y=void 0;g.labelAlignTo==="edge"?v.x<e?y=x[2][0]-g.labelDistance-o-g.edgeDistance:y=o+a-g.edgeDistance-x[2][0]-g.labelDistance:g.labelAlignTo==="labelLine"?v.x<e?y=c-o-g.bleedMargin:y=o+a-f-g.bleedMargin:v.x<e?y=v.x-o-g.bleedMargin:y=o+a-v.x-g.bleedMargin,g.targetTextWidth=y,a7(g,y,!1)}}x3(u,e,t,n,1,a,i,o,s,f),x3(l,e,t,n,-1,a,i,o,s,c);for(var d=0;d<r.length;d++){var g=r[d];if(!iT(g)&&g.linePoints){var v=g.label,x=g.linePoints,b=g.labelAlignTo==="edge",S=v.style.padding,T=S?S[1]+S[3]:0,C=v.style.backgroundColor?0:T,M=g.rect.width+C,D=x[1][0]-x[2][0];b?v.x<e?x[2][0]=o+g.edgeDistance+M+g.labelDistance:x[2][0]=o+a-g.edgeDistance-M-g.labelDistance:(v.x<e?x[2][0]=v.x+g.labelDistance:x[2][0]=v.x-g.labelDistance,x[1][0]=x[2][0]+D),x[1][1]=x[2][1]=v.y}}}function a7(r,e,t){if(r.labelStyleWidth==null){var n=r.label,a=n.style,i=r.rect,o=a.backgroundColor,s=a.padding,l=s?s[1]+s[3]:0,u=a.overflow,c=i.width+(o?0:l);if(e<c||t){if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",e-l);var f=n.getBoundingRect();n.setStyle("width",Math.ceil(f.width)),n.setStyle("backgroundColor",o)}else{var d=e-l,v=e<c?d:t?d>r.unconstrainedWidth?null:d:null;n.setStyle("width",v)}i7(i,n)}}}function i7(r,e){b3.rect=r,LF(b3,e,jce)}var jce={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},b3={};function iT(r){return r.position==="center"}function Vce(r){var e=r.getData(),t=[],n,a,i=!1,o=(r.get("minShowLabelAngle")||0)*zce,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,c=s.x,f=s.y,d=s.height;function v(D){D.ignore=!0}function g(D){if(!D.ignore)return!0;for(var L in D.states)if(D.states[L].ignore===!1)return!0;return!1}e.each(function(D){var L=e.getItemGraphicEl(D),E=L.shape,R=L.getTextContent(),I=L.getTextGuideLine(),k=e.getItemModel(D),z=k.getModel("label"),O=z.get("position")||k.get(["emphasis","label","position"]),G=z.get("distanceToLabelLine"),F=z.get("alignTo"),B=me(z.get("edgeDistance"),u),Y=z.get("bleedMargin");Y==null&&(Y=Math.min(u,d)>200?10:2);var H=k.getModel("labelLine"),X=H.get("length");X=me(X,u);var V=H.get("length2");if(V=me(V,u),Math.abs(E.endAngle-E.startAngle)<o){P(R.states,v),R.ignore=!0,I&&(P(I.states,v),I.ignore=!0);return}if(g(R)){var W=(E.startAngle+E.endAngle)/2,$=Math.cos(W),te=Math.sin(W),le,ge,we,de;n=E.cx,a=E.cy;var ve=O==="inside"||O==="inner";if(O==="center")le=E.cx,ge=E.cy,de="center";else{var be=(ve?(E.r+E.r0)/2*$:E.r*$)+n,Oe=(ve?(E.r+E.r0)/2*te:E.r*te)+a;if(le=be+$*3,ge=Oe+te*3,!ve){var _e=be+$*(X+l-E.r),Le=Oe+te*(X+l-E.r),st=_e+($<0?-1:1)*V,Qe=Le;F==="edge"?le=$<0?c+B:c+u-B:le=st+($<0?-G:G),ge=Qe,we=[[be,Oe],[_e,Le],[st,Qe]]}de=ve?"center":F==="edge"?$>0?"right":"left":$>0?"left":"right"}var ct=Math.PI,xt=0,Tt=z.get("rotate");if(it(Tt))xt=Tt*(ct/180);else if(O==="center")xt=0;else if(Tt==="radial"||Tt===!0){var Hr=$<0?-W+ct:-W;xt=Hr}else if(Tt==="tangential"&&O!=="outside"&&O!=="outer"){var Jt=Math.atan2($,te);Jt<0&&(Jt=ct*2+Jt);var li=te>0;li&&(Jt=ct+Jt),xt=Jt-ct}if(i=!!xt,R.x=le,R.y=ge,R.rotation=xt,R.setStyle({verticalAlign:"middle"}),ve){R.setStyle({align:de});var dd=R.states.select;dd&&(dd.x+=R.x,dd.y+=R.y)}else{var Ba=new ke(0,0,0,0);i7(Ba,R),t.push({label:R,labelLine:I,position:O,len:X,len2:V,minTurnAngle:H.get("minTurnAngle"),maxSurfaceAngle:H.get("maxSurfaceAngle"),surfaceNormal:new Ie($,te),linePoints:we,textAlign:de,labelDistance:G,labelAlignTo:F,edgeDistance:B,bleedMargin:Y,rect:Ba,unconstrainedWidth:Ba.width,labelStyleWidth:R.style.width})}L.setTextConfig({inside:ve})}}),!i&&r.get("avoidLabelOverlap")&&Bce(t,n,a,l,u,d,c,f);for(var x=0;x<t.length;x++){var y=t[x],b=y.label,S=y.labelLine,T=isNaN(b.x)||isNaN(b.y);if(b){b.setStyle({align:y.textAlign}),T&&(P(b.states,v),b.ignore=!0);var C=b.states.select;C&&(C.x+=b.x,C.y+=b.y)}if(S){var M=y.linePoints;T||!M?(P(S.states,v),S.ignore=!0):(AF(M,y.minTurnAngle),oue(M,y.surfaceNormal,y.maxSurfaceAngle),S.setShape({points:M}),b.__hostTarget.textGuideLineConfig={anchor:new Ie(M[0][0],M[0][1])})}}}var Gce=(function(r){K(e,r);function e(t,n,a){var i=r.call(this)||this;i.z2=2;var o=new at;return i.setTextContent(o),i.updateData(t,n,a,!0),i}return e.prototype.updateData=function(t,n,a,i){var o=this,s=t.hostModel,l=t.getItemModel(n),u=l.getModel("emphasis"),c=t.getItemLayout(n),f=ie(zi(l.getModel("itemStyle"),c,!0),c);if(isNaN(f.startAngle)){o.setShape(f);return}if(i){o.setShape(f);var d=s.getShallow("animationType");s.ecModel.ssr?(zt(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=f.cx,o.originY=f.cy):d==="scale"?(o.shape.r=c.r0,zt(o,{shape:{r:c.r}},s,n)):a!=null?(o.setShape({startAngle:a,endAngle:a}),zt(o,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,n)):(o.shape.endAngle=c.startAngle,ot(o,{shape:{endAngle:c.endAngle}},s,n))}else ka(o),ot(o,{shape:f},s,n);o.useStyle(t.getItemVisual(n,"style")),br(o,l);var v=(c.startAngle+c.endAngle)/2,g=s.get("selectedOffset"),x=Math.cos(v)*g,y=Math.sin(v)*g,b=l.getShallow("cursor");b&&o.attr("cursor",b),this._updateLabel(s,t,n),o.ensureState("emphasis").shape=ie({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},zi(u.getModel("itemStyle"),c)),ie(o.ensureState("select"),{x,y,shape:zi(l.getModel(["select","itemStyle"]),c)}),ie(o.ensureState("blur"),{shape:zi(l.getModel(["blur","itemStyle"]),c)});var S=o.getTextGuideLine(),T=o.getTextContent();S&&ie(S.ensureState("select"),{x,y}),ie(T.ensureState("select"),{x,y}),Ft(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,n,a){var i=this,o=n.getItemModel(a),s=o.getModel("labelLine"),l=n.getItemVisual(a,"style"),u=l&&l.fill,c=l&&l.opacity;Lr(i,_r(o),{labelFetcher:n.hostModel,labelDataIndex:a,inheritColor:u,defaultOpacity:c,defaultText:t.getFormattedLabel(a,"normal")||n.getName(a)});var f=i.getTextContent();i.setTextConfig({position:null,rotation:null}),f.attr({z2:10});var d=o.get(["label","position"]);if(d!=="outside"&&d!=="outer")i.removeTextGuideLine();else{var v=this.getTextGuideLine();v||(v=new Vr,this.setTextGuideLine(v)),qD(this,ZD(o),{stroke:u,opacity:Rn(s.get(["lineStyle","opacity"]),c,1)})}},e})(Qr),Hce=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,n,a,i){var o=t.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f<o.count();++f)c=o.getItemLayout(f);c&&(u=c.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&t.get("showEmptyCircle")){var d=n7(t),v=new Qr({shape:Me(d)});v.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=v,l.add(v)}o.diff(s).add(function(g){var x=new Gce(o,g,u);o.setItemGraphicEl(g,x),l.add(x)}).update(function(g,x){var y=s.getItemGraphicEl(x);y.updateData(o,g,u),y.off("click"),l.add(y),o.setItemGraphicEl(g,y)}).remove(function(g){var x=s.getItemGraphicEl(g);jo(x,t,g)}).execute(),Vce(t),t.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,n){var a=n.getData(),i=a.getItemLayout(0);if(i){var o=t[0]-i.cx,s=t[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type="pie",e})(_t);function fd(r,e,t){e=ue(e)&&{coordDimensions:e}||ie({encodeDefine:r.getEncode()},e);var n=r.getSource(),a=sd(n,e).dimensions,i=new cn(a,r);return i.initData(n,t),i}var hd=(function(){function r(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return r.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},r.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},r.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},r.prototype.getItemVisual=function(e,t){var n=this._getDataWithEncodedVisual();return n.getItemVisual(e,t)},r})(),Fce=Ke(),o7=(function(r){K(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new hd(xe(this.getData,this),xe(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return fd(this,{coordDimensions:["value"],encodeDefaulter:Ve(SD,this)})},e.prototype.getDataParams=function(t){var n=this.getData(),a=Fce(n),i=a.seats;if(!i){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),i=a.seats=v6(o,n.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,t);return s.percent=i[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){sc(t,"labelLine",["show"]);var n=t.labelLine,a=t.emphasis.labelLine;n.show=n.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.type="series.pie",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})(wt);Pae({fullType:o7.type,getCoord2:function(r){return r.getShallow("center")}});function Uce(r){return{seriesType:r,reset:function(e,t){var n=e.getData();n.filterSelf(function(a){var i=n.mapDimension("value"),o=n.get(i,a);return!(it(o)&&!isNaN(o)&&o<0)})}}}function Yce(r){r.registerChartView(Hce),r.registerSeriesModel(o7),b8("pie",r.registerAction),r.registerLayout(Ve(Pce,"pie")),r.registerProcessor(cd("pie")),r.registerProcessor(Uce("pie"))}var Wce=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,n){return Qi(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(t,n,a){return a.point(n.getItemLayout(t))},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:ee.color.primary}},universalTransition:{divideShape:"clone"}},e})(wt),s7=4,Xce=(function(){function r(){}return r})(),qce=(function(r){K(e,r);function e(t){var n=r.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return e.prototype.getDefaultShape=function(){return new Xce},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,n){var a=n.points,i=n.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,u=l&&i[0]<s7,c=this.softClipShape,f;if(u){this._ctx=l;return}for(this._ctx=null,f=this._off;f<a.length;){var d=a[f++],v=a[f++];isNaN(d)||isNaN(v)||c&&!c.contain(d,v)||(s.x=d-i[0]/2,s.y=v-i[1]/2,s.width=i[0],s.height=i[1],o.buildPath(t,s,!0))}this.incremental&&(this._off=f,this.notClear=!0)},e.prototype.afterBrush=function(){var t=this.shape,n=t.points,a=t.size,i=this._ctx,o=this.softClipShape,s;if(i){for(s=this._off;s<n.length;){var l=n[s++],u=n[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||i.fillRect(l-a[0]/2,u-a[1]/2,a[0],a[1])}this.incremental&&(this._off=s,this.notClear=!0)}},e.prototype.findDataIndex=function(t,n){for(var a=this.shape,i=a.points,o=a.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=i.length/2-1;u>=0;u--){var c=u*2,f=i[c]-s/2,d=i[c+1]-l/2;if(t>=f&&n>=d&&t<=f+s&&n<=d+l)return u}return-1},e.prototype.contain=function(t,n){var a=this.transformCoordToLocal(t,n),i=this.getBoundingRect();if(t=a[0],n=a[1],i.contain(t,n)){var o=this.hoverDataIdx=this.findDataIndex(t,n);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var n=this.shape,a=n.points,i=n.size,o=i[0],s=i[1],l=1/0,u=1/0,c=-1/0,f=-1/0,d=0;d<a.length;){var v=a[d++],g=a[d++];l=Math.min(v,l),c=Math.max(v,c),u=Math.min(g,u),f=Math.max(g,f)}t=this._rect=new ke(l-o/2,u-s/2,c-l+o,f-u+s)}return t},e})(et),Zce=(function(){function r(){this.group=new De}return r.prototype.updateData=function(e,t){this._clear();var n=this._create();n.setShape({points:e.getLayout("points")}),this._setCommon(n,e,t)},r.prototype.updateLayout=function(e){var t=e.getLayout("points");this.group.eachChild(function(n){if(n.startIndex!=null){var a=(n.endIndex-n.startIndex)*2,i=n.startIndex*4*2;t=new Float32Array(t.buffer,i,a)}n.setShape("points",t),n.reset()})},r.prototype.incrementalPrepareUpdate=function(e){this._clear()},r.prototype.incrementalUpdate=function(e,t,n){var a=this._newAdded[0],i=t.getLayout("points"),o=a&&a.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+i.length);l.set(o),l.set(i,s),a.endIndex=e.end,a.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=e.start,u.endIndex=e.end,u.incremental=!0,u.setShape({points:i}),this._setCommon(u,t,n)}},r.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},r.prototype._create=function(){var e=new qce({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},r.prototype._setCommon=function(e,t,n){var a=t.hostModel;n=n||{};var i=t.getVisual("symbolSize");e.setShape("size",i instanceof Array?i:[i,i]),e.softClipShape=n.clipShape||null,e.symbolProxy=lr(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<s7;e.useStyle(a.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=t.getVisual("style"),l=s&&s.fill;l&&e.setColor(l);var u=ze(e);u.seriesIndex=a.seriesIndex,e.on("mousemove",function(c){u.dataIndex=null;var f=e.hoverDataIdx;f>=0&&(u.dataIndex=f+(e.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r})(),$ce=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,n,a){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,n,a){this._symbolDraw.incrementalUpdate(t,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=t.end===n.getData().count()},e.prototype.updateTransform=function(t,n,a){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=Xg("").reset(t,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){if(t.get("clip",!0)){var n=t.coordinateSystem;return n&&n.getArea&&n.getArea(.1)}},e.prototype._updateSymbolDraw=function(t,n){var a=this._symbolDraw,i=n.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new Zce:new Yg,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},e.prototype.remove=function(t,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e})(_t),l7={left:0,right:0,top:0,bottom:0},t1=["25%","25%"],Kce=(function(r){K(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(t,n){var a=Sc(t.outerBounds);r.prototype.mergeDefaultAndTheme.apply(this,arguments),a&&t.outerBounds&&Wi(t.outerBounds,a)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&Wi(this.option.outerBounds,t.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:l7,outerBoundsContain:"all",outerBoundsClampWidth:t1[0],outerBoundsClampHeight:t1[1],backgroundColor:ee.color.transparent,borderWidth:1,borderColor:ee.color.neutral30},e})($e),oA=(function(r){K(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",qt).models[0]},e.type="cartesian2dAxis",e})($e);Qt(oA,ud);var u7={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:!0,onZeroAxisIndex:null,lineStyle:{color:ee.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:ee.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:ee.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[ee.color.backgroundTint,ee.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:ee.color.neutral00,borderColor:ee.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},Qce=Fe({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},u7),rL=Fe({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:ee.color.axisMinorSplitLine,width:1}}},u7),Jce=Fe({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},rL),efe=Ne({logBase:10},rL);const c7={category:Qce,value:rL,time:Jce,log:efe};var tfe={value:1,category:1,time:1,log:1},sA=null;function rfe(r){sA||(sA=r)}function qg(){return sA}function zh(r,e,t,n){P(tfe,function(a,i){var o=Fe(Fe({},c7[i],!0),n,!0),s=(function(l){K(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=e+"Axis."+i,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var d=eg(this),v=d?Sc(c):{},g=f.getTheme();Fe(c,g.get(i+"Axis")),Fe(c,this.getDefaultOption()),c.type=_3(c),d&&Wi(c,v,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=og.createByAxisModel(this))},u.prototype.getCategories=function(c){var f=this.option;if(f.type==="category")return c?f.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(c){var f=qg();return f?f.updateModelAxisBreak(this,c):{breaks:[]}},u.type=e+"Axis."+i,u.defaultOption=o,u})(t);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(e+"Axis",_3)}function _3(r){return r.type||(r.data?"category":"value")}var nfe=(function(){function r(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return r.prototype.getAxis=function(e){return this._axes[e]},r.prototype.getAxes=function(){return ce(this._dimList,function(e){return this._axes[e]},this)},r.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),ht(this.getAxes(),function(t){return t.scale.type===e})},r.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},r})(),lA=["x","y"];function S3(r){return(r.type==="interval"||r.type==="time")&&!r.hasBreaks()}var afe=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=lA,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!S3(t)||!S3(n))){var a=t.getExtent(),i=n.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],u=i[1]-i[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,f=(s[1]-o[1])/u,d=o[0]-a[0]*c,v=o[1]-i[0]*f,g=this._transform=[c,0,0,f,d,v];this._invTransform=Ea([],g)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var n=this.getAxis("x"),a=this.getAxis("y");return n.contain(n.toLocalCoord(t[0]))&&a.contain(a.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,n){var a=this.dataToPoint(t),i=this.dataToPoint(n),o=this.getArea(),s=new ke(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,n,a){a=a||[];var i=t[0],o=t[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return Kt(a,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,n)),a[1]=l.toGlobalCoord(l.dataToCoord(o,n)),a},e.prototype.clampData=function(t,n){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(t[0]),u=i.parse(t[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(t,n,a){if(a=a||[],this._invTransform)return Kt(a,t,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(t[0]),n),a[1]=o.coordToData(o.toLocalCoord(t[1]),n),a},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(t){t=t||0;var n=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),i=Math.min(n[0],n[1])-t,o=Math.min(a[0],a[1])-t,s=Math.max(n[0],n[1])-i+t,l=Math.max(a[0],a[1])-o+t;return new ke(i,o,s,l)},e})(nfe),f7=(function(r){K(e,r);function e(t,n,a,i,o){var s=r.call(this,t,n,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),t&&n[0]>n[1]&&n.reverse(),n},e.prototype.pointToData=function(t,n){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),n)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e})(za),ub="expandAxisBreak",h7="collapseAxisBreak",d7="toggleAxisBreak",nL="axisbreakchanged",ife={type:ub,event:nL,update:"update",refineEvent:aL},ofe={type:h7,event:nL,update:"update",refineEvent:aL},sfe={type:d7,event:nL,update:"update",refineEvent:aL};function aL(r,e,t,n){var a=[];return P(r,function(i){a=a.concat(i.eventBreaks)}),{eventContent:{breaks:a}}}function lfe(r){r.registerAction(ife,e),r.registerAction(ofe,e),r.registerAction(sfe,e);function e(t,n){var a=[],i=oh(n,t);function o(s,l){P(i[s],function(u){var c=u.updateAxisBreaks(t);P(c.breaks,function(f){var d;a.push(Ne((d={},d[l]=u.componentIndex,d),f))})})}return o("xAxisModels","xAxisIndex"),o("yAxisModels","yAxisIndex"),o("singleAxisModels","singleAxisIndex"),{eventBreaks:a}}}var rl=Math.PI,ufe=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],cfe=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Bh=Ke(),v7=Ke(),p7=(function(){function r(e){this.recordMap={},this.resolveAxisNameOverlap=e}return r.prototype.ensureRecord=function(e){var t=e.axis.dim,n=e.componentIndex,a=this.recordMap,i=a[t]||(a[t]=[]);return i[n]||(i[n]={ready:{}})},r})();function ffe(r,e,t,n){var a=t.axis,i=e.ensureRecord(t),o=[],s,l=iL(r.axisName)&&Oh(r.nameLocation);P(n,function(g){var x=Xi(g);if(!(!x||x.label.ignore)){o.push(x);var y=i.transGroup;l&&(y.transform?Ea(kv,y.transform):Eg(kv),x.transform&&Ka(kv,kv,x.transform),ke.copy(o0,x.localRect),o0.applyTransform(kv),s?s.union(o0):ke.copy(s=new ke(0,0,0,0),o0))}});var u=Math.abs(i.dirVec.x)>.1?"x":"y",c=i.transGroup[u];if(o.sort(function(g,x){return Math.abs(g.label[u]-c)-Math.abs(x.label[u]-c)}),l&&s){var f=a.getExtent(),d=Math.min(f[0],f[1]),v=Math.max(f[0],f[1])-d;s.union(new ke(d,0,v,1))}i.stOccupiedRect=s,i.labelInfoList=o}var kv=Mr(),o0=new ke(0,0,0,0),g7=function(r,e,t,n,a,i){if(Oh(r.nameLocation)){var o=i.stOccupiedRect;o&&m7(uue({},o,i.transGroup.transform),n,a)}else y7(i.labelInfoList,i.dirVec,n,a)};function m7(r,e,t){var n=new Ie;sb(r,e,n,{direction:Math.atan2(t.y,t.x),bidirectional:!1,touchThreshold:.05})&&JC(e,n)}function y7(r,e,t,n){for(var a=Ie.dot(n,e)>=0,i=0,o=r.length;i<o;i++){var s=r[a?i:o-1-i];s.label.ignore||m7(s,t,n)}}var mn=(function(){function r(e,t,n,a){this.group=new De,this._axisModel=e,this._api=t,this._local={},this._shared=a||new p7(g7),this._resetCfgDetermined(n)}return r.prototype.updateCfg=function(e){var t=this._cfg.raw;t.position=e.position,t.labelOffset=e.labelOffset,this._resetCfgDetermined(t)},r.prototype.__getRawCfg=function(){return this._cfg.raw},r.prototype._resetCfgDetermined=function(e){var t=this._axisModel,n=t.getDefaultOption?t.getDefaultOption():{},a=Ce(e.axisName,t.get("name")),i=t.get("nameMoveOverlap");(i==null||i==="auto")&&(i=Ce(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:Ce(e.nameDirection,1),tickDirection:Ce(e.tickDirection,1),labelDirection:Ce(e.labelDirection,1),labelOffset:Ce(e.labelOffset,0),silent:Ce(e.silent,!0),axisName:a,nameLocation:Rn(t.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:iL(a)&&i,optionHideOverlap:t.get(["axisLabel","hideOverlap"]),showMinorTicks:t.get(["minorTick","show"])};this._cfg=o;var s=new De({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(t);l.transGroup=this._transformGroup,l.dirVec=new Ie(Math.cos(-o.rotation),Math.sin(-o.rotation))},r.prototype.build=function(e,t){var n=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),P(hfe,function(a){e[a]&&dfe[a](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,t||{})}),this},r.innerTextLayout=function(e,t,n){var a=BM(t-e),i,o;return Dh(a)?(o=n>0?"top":"bottom",i="center"):Dh(a-rl)?(o=n>0?"bottom":"top",i="center"):(o="middle",a>0&&a<rl?i=n>0?"right":"left":i=n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},r.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},r})(),hfe=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],dfe={axisLine:function(r,e,t,n,a,i,o){var s=n.get(["axisLine","show"]);if(s==="auto"&&(s=!0,r.raw.axisLineAutoShow!=null&&(s=!!r.raw.axisLineAutoShow)),!!s){var l=n.axis.getExtent(),u=i.transform,c=[l[0],0],f=[l[1],0],d=c[0]>f[0];u&&(Kt(c,c,u),Kt(f,f,u));var v=ie({lineCap:"round"},n.getModel(["axisLine","lineStyle"]).getLineStyle()),g={strokeContainThreshold:r.raw.strokeContainThreshold||5,silent:!0,z2:1,style:v};if(n.get(["axisLine","breakLine"])&&n.axis.scale.hasBreaks())qg().buildAxisBreakLine(n,a,i,g);else{var x=new sr(ie({shape:{x1:c[0],y1:c[1],x2:f[0],y2:f[1]}},g));Rh(x.shape,x.style.lineWidth),x.anid="line",a.add(x)}var y=n.get(["axisLine","symbol"]);if(y!=null){var b=n.get(["axisLine","symbolSize"]);ye(y)&&(y=[y,y]),(ye(b)||it(b))&&(b=[b,b]);var S=Tc(n.get(["axisLine","symbolOffset"])||0,b),T=b[0],C=b[1];P([{rotate:r.rotation+Math.PI/2,offset:S[0],r:0},{rotate:r.rotation-Math.PI/2,offset:S[1],r:Math.sqrt((c[0]-f[0])*(c[0]-f[0])+(c[1]-f[1])*(c[1]-f[1]))}],function(M,D){if(y[D]!=="none"&&y[D]!=null){var L=lr(y[D],-T/2,-C/2,T,C,v.stroke,!0),E=M.r+M.offset,R=d?f:c;L.attr({rotation:M.rotate,x:R[0]+E*Math.cos(r.rotation),y:R[1]-E*Math.sin(r.rotation),silent:!0,z2:11}),a.add(L)}})}}},axisTickLabelEstimate:function(r,e,t,n,a,i,o,s){var l=T3(e,a,s);l&&w3(r,e,t,n,a,i,o,ii.estimate)},axisTickLabelDetermine:function(r,e,t,n,a,i,o,s){var l=T3(e,a,s);l&&w3(r,e,t,n,a,i,o,ii.determine);var u=mfe(r,a,i,n);gfe(r,e.labelLayoutList,u),yfe(r,a,i,n,r.tickDirection)},axisName:function(r,e,t,n,a,i,o,s){var l=t.ensureRecord(n);e.nameEl&&(a.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var u=r.axisName;if(iL(u)){var c=r.nameLocation,f=r.nameDirection,d=n.getModel("nameTextStyle"),v=n.get("nameGap")||0,g=n.axis.getExtent(),x=n.axis.inverse?-1:1,y=new Ie(0,0),b=new Ie(0,0);c==="start"?(y.x=g[0]-x*v,b.x=-x):c==="end"?(y.x=g[1]+x*v,b.x=x):(y.x=(g[0]+g[1])/2,y.y=r.labelOffset+f*v,b.y=f);var S=Mr();b.transform(es(S,S,r.rotation));var T=n.get("nameRotate");T!=null&&(T=T*rl/180);var C,M;Oh(c)?C=mn.innerTextLayout(r.rotation,T??r.rotation,f):(C=vfe(r.rotation,c,T||0,g),M=r.raw.axisNameAvailableWidth,M!=null&&(M=Math.abs(M/Math.sin(C.rotation)),!isFinite(M)&&(M=null)));var D=d.getFont(),L=n.get("nameTruncate",!0)||{},E=L.ellipsis,R=jr(r.raw.nameTruncateMaxWidth,L.maxWidth,M),I=s.nameMarginLevel||0,k=new at({x:y.x,y:y.y,rotation:C.rotation,silent:mn.isLabelSilent(n),style:Mt(d,{text:u,font:D,overflow:"truncate",width:R,ellipsis:E,fill:d.getTextColor()||n.get(["axisLine","lineStyle","color"]),align:d.get("align")||C.textAlign,verticalAlign:d.get("verticalAlign")||C.textVerticalAlign}),z2:1});if(rs({el:k,componentModel:n,itemName:u}),k.__fullText=u,k.anid="name",n.get("triggerEvent")){var z=mn.makeAxisEventDataBase(n);z.targetType="axisName",z.name=u,ze(k).eventData=z}i.add(k),k.updateTransform(),e.nameEl=k;var O=l.nameLayout=Xi({label:k,priority:k.z2,defaultAttr:{ignore:k.ignore},marginDefault:Oh(c)?ufe[I]:cfe[I]});if(l.nameLocation=c,a.add(k),k.decomposeTransform(),r.shouldNameMoveOverlap&&O){var G=t.ensureRecord(n);t.resolveAxisNameOverlap(r,t,n,O,b,G)}}}};function w3(r,e,t,n,a,i,o,s){b7(e)||xfe(r,e,a,s,n,o);var l=e.labelLayoutList;bfe(r,n,l,i),wfe(n,r.rotation,l);var u=r.optionHideOverlap;pfe(n,l,u),u&&NF(ht(l,function(c){return c&&!c.label.ignore})),ffe(r,t,n,l)}function vfe(r,e,t,n){var a=BM(t-r),i,o,s=n[0]>n[1],l=e==="start"&&!s||e!=="start"&&s;return Dh(a-rl/2)?(o=l?"bottom":"top",i="center"):Dh(a-rl*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",a<rl*1.5&&a>rl/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function pfe(r,e,t){if(dF(r.axis))return;function n(s,l,u){var c=Xi(e[l]),f=Xi(e[u]);if(!(!c||!f)){if(s===!1||c.suggestIgnore){hp(c.label);return}if(f.suggestIgnore){hp(f.label);return}var d=.1;if(!t){var v=[0,0,0,0];c=eA({marginForce:v},c),f=eA({marginForce:v},f)}sb(c,f,null,{touchThreshold:d})&&hp(s?f.label:c.label)}}var a=r.get(["axisLabel","showMinLabel"]),i=r.get(["axisLabel","showMaxLabel"]),o=e.length;n(a,0,1),n(i,o-1,o-2)}function gfe(r,e,t){r.showMinorTicks||P(e,function(n){if(n&&n.label.ignore)for(var a=0;a<t.length;a++){var i=t[a],o=v7(i),s=Bh(n.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.tickValue){hp(i);return}}})}function hp(r){r&&(r.ignore=!0)}function x7(r,e,t,n,a){for(var i=[],o=[],s=[],l=0;l<r.length;l++){var u=r[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=t,e&&(Kt(o,o,e),Kt(s,s,e));var c=new sr({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});Rh(c.shape,c.style.lineWidth),c.anid=a+"_"+r[l].tickValue,i.push(c);var f=v7(c);f.onBand=!!r[l].onBand,f.tickValue=r[l].tickValue}return i}function mfe(r,e,t,n){var a=n.axis,i=n.getModel("axisTick"),o=i.get("show");if(o==="auto"&&(o=!0,r.raw.axisTickAutoShow!=null&&(o=!!r.raw.axisTickAutoShow)),!o||a.scale.isBlank())return[];for(var s=i.getModel("lineStyle"),l=r.tickDirection*i.get("length"),u=a.getTicksCoords(),c=x7(u,t.transform,l,Ne(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),f=0;f<c.length;f++)e.add(c[f]);return c}function yfe(r,e,t,n,a){var i=n.axis,o=n.getModel("minorTick");if(!(!r.showMinorTicks||i.scale.isBlank())){var s=i.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=a*o.get("length"),c=Ne(l.getLineStyle(),Ne(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),f=0;f<s.length;f++)for(var d=x7(s[f],t.transform,u,c,"minorticks_"+f),v=0;v<d.length;v++)e.add(d[v])}}function T3(r,e,t){if(b7(r)){var n=r.axisLabelsCreationContext,a=n.out.noPxChangeTryDetermine;if(t.noPxChange){for(var i=!0,o=0;o<a.length;o++)i=i&&a[o]();if(i)return!1}a.length&&(e.remove(r.labelGroup),uA(r,null,null,null))}return!0}function xfe(r,e,t,n,a,i){var o=a.axis,s=jr(r.raw.axisLabelShow,a.get(["axisLabel","show"])),l=new De;t.add(l);var u=qx(n);if(!s||o.scale.isBlank()){uA(e,[],l,u);return}var c=a.getModel("axisLabel"),f=o.getViewLabels(u),d=(jr(r.raw.labelRotate,c.get("rotate"))||0)*rl/180,v=mn.innerTextLayout(r.rotation,d,r.labelDirection),g=a.getCategories&&a.getCategories(!0),x=[],y=a.get("triggerEvent"),b=1/0,S=-1/0;P(f,function(C,M){var D,L=o.scale.type==="ordinal"?o.scale.getRawOrdinalNumber(C.tickValue):C.tickValue,E=C.formattedLabel,R=C.rawLabel,I=c;if(g&&g[L]){var k=g[L];Re(k)&&k.textStyle&&(I=new Je(k.textStyle,c,a.ecModel))}var z=I.getTextColor()||a.get(["axisLine","lineStyle","color"]),O=I.getShallow("align",!0)||v.textAlign,G=Ce(I.getShallow("alignMinLabel",!0),O),F=Ce(I.getShallow("alignMaxLabel",!0),O),B=I.getShallow("verticalAlign",!0)||I.getShallow("baseline",!0)||v.textVerticalAlign,Y=Ce(I.getShallow("verticalAlignMinLabel",!0),B),H=Ce(I.getShallow("verticalAlignMaxLabel",!0),B),X=10+(((D=C.time)===null||D===void 0?void 0:D.level)||0);b=Math.min(b,X),S=Math.max(S,X);var V=new at({x:0,y:0,rotation:0,silent:mn.isLabelSilent(a),z2:X,style:Mt(I,{text:E,align:M===0?G:M===f.length-1?F:O,verticalAlign:M===0?Y:M===f.length-1?H:B,fill:Ae(z)?z(o.type==="category"?R:o.type==="value"?L+"":L,M):z})});V.anid="label_"+L;var W=Bh(V);if(W.break=C.break,W.tickValue=L,W.layoutRotation=v.rotation,rs({el:V,componentModel:a,itemName:E,formatterParamsExtra:{isTruncated:function(){return V.isTruncated},value:R,tickIndex:M}}),y){var $=mn.makeAxisEventDataBase(a);$.targetType="axisLabel",$.value=R,$.tickIndex=M,C.break&&($.break={start:C.break.parsedBreak.vmin,end:C.break.parsedBreak.vmax}),o.type==="category"&&($.dataIndex=L),ze(V).eventData=$,C.break&&Sfe(a,i,V,C.break)}x.push(V),l.add(V)});var T=ce(x,function(C){return{label:C,priority:Bh(C).break?C.z2+(S-b+1):C.z2,defaultAttr:{ignore:C.ignore}}});uA(e,T,l,u)}function b7(r){return!!r.labelLayoutList}function uA(r,e,t,n){r.labelLayoutList=e,r.labelGroup=t,r.axisLabelsCreationContext=n}function bfe(r,e,t,n){var a=e.get(["axisLabel","margin"]);P(t,function(i,o){var s=Xi(i);if(s){var l=s.label,u=Bh(l);s.suggestIgnore=l.ignore,l.ignore=!1,Cx(xo,_fe),xo.x=e.axis.dataToCoord(u.tickValue),xo.y=r.labelOffset+r.labelDirection*a,xo.rotation=u.layoutRotation,n.add(xo),xo.updateTransform(),n.remove(xo),xo.decomposeTransform(),Cx(l,xo),l.markRedraw(),Qx(s,!0),Xi(s)}})}var xo=new We,_fe=new We;function iL(r){return!!r}function Sfe(r,e,t,n){t.on("click",function(a){var i={type:ub,breaks:[{start:n.parsedBreak.breakOption.start,end:n.parsedBreak.breakOption.end}]};i[r.axis.dim+"AxisIndex"]=r.componentIndex,e.dispatchAction(i)})}function wfe(r,e,t){var n=hr();if(n){var a=n.retrieveAxisBreakPairs(t,function(o){return o&&Bh(o.label).break},!0),i=r.get(["breakLabelLayout","moveOverlap"],!0);(i===!0||i==="auto")&&P(a,function(o){qg().adjustBreakLabelPair(r.axis.inverse,e,[Xi(t[o[0]]),Xi(t[o[1]])])})}}function r1(r,e,t){t=t||{};var n=e.axis,a={},i=n.getAxesOnZeroOf()[0],o=n.position,s=i?"onZero":o,l=n.dim,u=[r.x,r.x+r.width,r.y,r.y+r.height],c={left:0,right:1,top:0,bottom:1,onZero:2},f=e.get("offset")||0,d=l==="x"?[u[2]-f,u[3]+f]:[u[0]-f,u[1]+f];if(i){var v=i.toGlobalCoord(i.dataToCoord(0));d[c.onZero]=Math.max(Math.min(v,d[1]),d[0])}a.position=[l==="y"?d[c[s]]:u[0],l==="x"?d[c[s]]:u[3]],a.rotation=Math.PI/2*(l==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=g[o],a.labelOffset=i?d[c[o]]-d[c.onZero]:0,e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),jr(t.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var x=e.get(["axisLabel","rotate"]);return a.labelRotate=s==="top"?-x:x,a.z2=1,a}function Tfe(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function C3(r){var e={xAxisModel:null,yAxisModel:null};return P(e,function(t,n){var a=n.replace(/Model$/,""),i=r.getReferringComponents(a,qt).models[0];e[n]=i}),e}function Cfe(r,e,t,n,a,i){for(var o=r1(r,t),s=!1,l=!1,u=0;u<e.length;u++)XC(e[u].getOtherAxis(t.axis).scale)&&(s=l=!0,t.axis.type==="category"&&t.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=i,new mn(t,n,o,a)}function Afe(r,e,t){var n=r1(e,t);r.updateCfg(n)}function _7(r,e,t){var n=Ko.prototype,a=n.getTicks.call(t),i=n.getTicks.call(t,{expandToNicedExtent:!0}),o=a.length-1,s=n.getInterval.call(t),l=hF(r,e),u=l.extent,c=l.fixMin,f=l.fixMax;r.type==="log"&&(u=qC(r.base,u,!0)),r.setBreaksFromOption(vF(e)),r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:f});var d=n.getExtent.call(r);c&&(u[0]=d[0]),f&&(u[1]=d[1]);var v=n.getInterval.call(r),g=u[0],x=u[1];if(c&&f)v=(x-g)/o;else if(c)for(x=u[0]+v*o;x<u[1]&&isFinite(x)&&isFinite(u[1]);)v=Uw(v),x=u[0]+v*o;else if(f)for(g=u[1]-v*o;g>u[0]&&isFinite(g)&&isFinite(u[0]);)v=Uw(v),g=u[1]-v*o;else{var y=r.getTicks().length-1;y>o&&(v=Uw(v));var b=v*o;x=Math.ceil(u[1]/v)*v,g=or(x-b),g<0&&u[0]>=0?(g=0,x=or(b)):x>0&&u[1]<=0&&(x=0,g=-or(b))}var S=(a[0].value-i[0].value)/s,T=(a[o].value-i[o].value)/s;n.setExtent.call(r,g+v*S,x+v*T),n.setInterval.call(r,v),(S||T)&&n.setNiceExtent.call(r,g+v,x-v)}var A3=[[3,1],[0,2]],Mfe=(function(){function r(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=lA,this._initCartesian(e,t,n),this.model=e}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(e,t){var n=this._axesMap;this._updateScale(e,this.model);function a(o){var s,l=nt(o),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var d=+l[f],v=o[d],g=v.model,x=v.scale;XC(x)&&g.get("alignTicks")&&g.get("interval")==null?c.push(v):(vc(x,g),XC(x)&&(s=v))}c.length&&(s||(s=c.pop(),vc(s.scale,s.model)),P(c,function(y){_7(y.scale,y.model,s.scale)}))}}a(n.x),a(n.y);var i={};P(n.x,function(o){M3(n,"y",o,i)}),P(n.y,function(o){M3(n,"x",o,i)}),this.resize(this.model,t)},r.prototype.resize=function(e,t,n){var a=Sr(e,t),i=this._rect=Gt(e.getBoxLayoutParams(),a.refContainer),o=this._axesMap,s=this._coordsList,l=e.get("containLabel");if(cA(o,i),!n){var u=Nfe(i,s,o,l,t),c=void 0;if(l)fA?(fA(this._axesList,i),cA(o,i)):c=N3(i.clone(),"axisLabel",null,i,o,u,a);else{var f=Rfe(e,i,a),d=f.outerBoundsRect,v=f.parsedOuterBoundsContain,g=f.outerBoundsClamp;d&&(c=N3(d,v,g,i,o,u,a))}S7(i,o,ii.determine,null,c,a)}P(this._coordsList,function(x){x.calcAffineTransform()})},r.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(n!=null)return n[t||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var n="x"+e+"y"+t;return this._coordsMap[n]}Re(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var a=0,i=this._coordsList;a<i.length;a++)if(i[a].getAxis("x").index===e||i[a].getAxis("y").index===t)return i[a]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(e,t,n){var a=this._findConvertTarget(t);return a.cartesian?a.cartesian.dataToPoint(n):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(n)):null},r.prototype.convertFromPixel=function(e,t,n){var a=this._findConvertTarget(t);return a.cartesian?a.cartesian.pointToData(n):a.axis?a.axis.coordToData(a.axis.toLocalCoord(n)):null},r.prototype._findConvertTarget=function(e){var t=e.seriesModel,n=e.xAxisModel||t&&t.getReferringComponents("xAxis",qt).models[0],a=e.yAxisModel||t&&t.getReferringComponents("yAxis",qt).models[0],i=e.gridModel,o=this._coordsList,s,l;if(t)s=t.coordinateSystem,Ge(o,s)<0&&(s=null);else if(n&&a)s=this.getCartesian(n.componentIndex,a.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(a)l=this.getAxis("y",a.componentIndex);else if(i){var u=i.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},r.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},r.prototype._initCartesian=function(e,t,n){var a=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(t.eachComponent("xAxis",u("x"),this),t.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,P(s.x,function(c,f){P(s.y,function(d,v){var g="x"+f+"y"+v,x=new afe(g);x.master=a,x.model=e,a._coordsMap[g]=x,a._coordsList.push(x),x.addAxis(c),x.addAxis(d)})});function u(c){return function(f,d){if(oT(f,e)){var v=f.get("position");c==="x"?v!=="top"&&v!=="bottom"&&(v=o.bottom?"top":"bottom"):v!=="left"&&v!=="right"&&(v=o.left?"right":"left"),o[v]=!0;var g=new f7(c,Fg(f),[0,0],f.get("type"),v),x=g.type==="category";g.onBand=x&&f.get("boundaryGap"),g.inverse=f.get("inverse"),f.axis=g,g.model=f,g.grid=i,g.index=d,i._axesList.push(g),s[c][d]=g,l[c]++}}}},r.prototype._updateScale=function(e,t){P(this._axesList,function(a){if(a.scale.setExtent(1/0,-1/0),a.type==="category"){var i=a.model.get("categorySortInfo");a.scale.setSortInfo(i)}}),e.eachSeries(function(a){if(Tfe(a)){var i=C3(a),o=i.xAxisModel,s=i.yAxisModel;if(!oT(o,t)||!oT(s,t))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=a.getData(),c=l.getAxis("x"),f=l.getAxis("y");n(u,c),n(u,f)}},this);function n(a,i){P(Xx(a,i.dim),function(o){i.scale.unionExtentFromData(a,o)})}},r.prototype.getTooltipAxes=function(e){var t=[],n=[];return P(this.getCartesians(),function(a){var i=e!=null&&e!=="auto"?a.getAxis(e):a.getBaseAxis(),o=a.getOtherAxis(i);Ge(t,i)<0&&t.push(i),Ge(n,o)<0&&n.push(o)}),{baseAxes:t,otherAxes:n}},r.create=function(e,t){var n=[];return e.eachComponent("grid",function(a,i){var o=new r(a,e,t);o.name="grid_"+i,o.resize(a,t,!0),a.coordinateSystem=o,n.push(o)}),e.eachSeries(function(a){Gg({targetModel:a,coordSysType:"cartesian2d",coordSysProvider:i});function i(){var o=C3(a),s=o.xAxisModel,l=o.yAxisModel,u=s.getCoordSysModel(),c=u.coordinateSystem;return c.getCartesian(s.componentIndex,l.componentIndex)}}),n},r.dimensions=lA,r})();function oT(r,e){return r.getCoordSysModel()===e}function M3(r,e,t,n){t.getAxesOnZeroOf=function(){return i?[i]:[]};var a=r[e],i,o=t.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)D3(a[l])&&(i=a[l]);else for(var u in a)if(a.hasOwnProperty(u)&&D3(a[u])&&!n[c(a[u])]){i=a[u];break}i&&(n[c(i)]=!0);function c(f){return f.dim+"_"+f.index}}function D3(r){return r&&r.type!=="category"&&r.type!=="time"&&xle(r)}function Dfe(r,e){var t=r.getExtent(),n=t[0]+t[1];r.toGlobalCoord=r.dim==="x"?function(a){return a+e}:function(a){return n-a+e},r.toLocalCoord=r.dim==="x"?function(a){return a-e}:function(a){return n-a+e}}function cA(r,e){P(r.x,function(t){return L3(t,e.x,e.width)}),P(r.y,function(t){return L3(t,e.y,e.height)})}function L3(r,e,t){var n=[0,t],a=r.inverse?1:0;r.setExtent(n[a],n[1-a]),Dfe(r,e)}var fA;function Lfe(r){fA=r}function N3(r,e,t,n,a,i,o){S7(n,a,ii.estimate,e,!1,o);var s=[0,0,0,0];u(0),u(1),c(n,0,NaN),c(n,1,NaN);var l=Cl(s,function(d){return d>0})==null;return fc(n,s,!0,!0,t),cA(a,n),l;function u(d){P(a[je[d]],function(v){if(sg(v.model)){var g=i.ensureRecord(v.model),x=g.labelInfoList;if(x)for(var y=0;y<x.length;y++){var b=x[y],S=v.scale.normalize(Bh(b.label).tickValue);S=d===1?1-S:S,c(b.rect,d,S),c(b.rect,1-d,NaN)}var T=g.nameLayout;if(T){var S=Oh(g.nameLocation)?.5:NaN;c(T.rect,d,S),c(T.rect,1-d,NaN)}}})}function c(d,v,g){var x=r[je[v]]-d[je[v]],y=d[dr[v]]+d[je[v]]-(r[dr[v]]+r[je[v]]);x=f(x,1-g),y=f(y,g);var b=A3[v][0],S=A3[v][1];s[b]=ir(s[b],x),s[S]=ir(s[S],y)}function f(d,v){return d>0&&!Zr(v)&&v>1e-4&&(d/=v),d}}function Nfe(r,e,t,n,a){var i=new p7(Efe);return P(t,function(o){return P(o,function(s){if(sg(s.model)){var l=!n;s.axisBuilder=Cfe(r,e,s.model,a,i,l)}})}),i}function S7(r,e,t,n,a,i){var o=t===ii.determine;P(e,function(u){return P(u,function(c){sg(c.model)&&(Afe(c.axisBuilder,r,c.model),c.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:a}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[je[1-u]]=r[dr[u]]<=i.refContainer[dr[u]]*.5?0:1-u===1?2:1}P(e,function(u,c){return P(u,function(f){sg(f.model)&&((n==="all"||o)&&f.axisBuilder.build({axisName:!0},{nameMarginLevel:s[c]}),o&&f.axisBuilder.build({axisLine:!0}))})})}function Rfe(r,e,t){var n,a=r.get("outerBoundsMode",!0);a==="same"?n=e.clone():(a==null||a==="auto")&&(n=Gt(r.get("outerBounds",!0)||l7,t.refContainer));var i=r.get("outerBoundsContain",!0),o;i==null||i==="auto"||Ge(["all","axisLabel"],i)<0?o="all":o=i;var s=[Mx(Ce(r.get("outerBoundsClampWidth",!0),t1[0]),e.width),Mx(Ce(r.get("outerBoundsClampHeight",!0),t1[1]),e.height)];return{outerBoundsRect:n,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var Efe=function(r,e,t,n,a,i){var o=t.axis.dim==="x"?"y":"x";g7(r,e,t,n,a,i),Oh(r.nameLocation)||P(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&y7(s.labelInfoList,s.dirVec,n,a)})};function Ife(r,e){var t={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return kfe(t,r,e),t.seriesInvolved&&Pfe(t,r),t}function kfe(r,e,t){var n=e.getComponent("tooltip"),a=e.getComponent("axisPointer"),i=a.get("link",!0)||[],o=[];P(t.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=fg(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var c=s.model,f=c.getModel("tooltip",n);if(P(s.getAxes(),Ve(x,!1,null)),s.getTooltipAxes&&n&&f.get("show")){var d=f.get("trigger")==="axis",v=f.get(["axisPointer","type"])==="cross",g=s.getTooltipAxes(f.get(["axisPointer","axis"]));(d||v)&&P(g.baseAxes,Ve(x,v?"cross":!0,d)),v&&P(g.otherAxes,Ve(x,"cross",!1))}function x(y,b,S){var T=S.model.getModel("axisPointer",a),C=T.get("show");if(!(!C||C==="auto"&&!y&&!hA(T))){b==null&&(b=T.get("triggerTooltip")),T=y?Ofe(S,f,a,e,y,b):T;var M=T.get("snap"),D=T.get("triggerEmphasis"),L=fg(S.model),E=b||M||S.type==="category",R=r.axesInfo[L]={key:L,axis:S,coordSys:s,axisPointerModel:T,triggerTooltip:b,triggerEmphasis:D,involveSeries:E,snap:M,useHandle:hA(T),seriesModels:[],linkGroup:null};u[L]=R,r.seriesInvolved=r.seriesInvolved||E;var I=zfe(i,S);if(I!=null){var k=o[I]||(o[I]={axesInfo:{}});k.axesInfo[L]=R,k.mapper=i[I].mapper,R.linkGroup=k}}}})}function Ofe(r,e,t,n,a,i){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};P(s,function(d){l[d]=Me(o.get(d))}),l.snap=r.type!=="category"&&!!i,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),a==="cross"){var c=o.get(["label","show"]);if(u.show=c??!0,!i){var f=l.lineStyle=o.get("crossStyle");f&&Ne(u,f.textStyle)}}return r.model.getModel("axisPointer",new Je(l,t,n))}function Pfe(r,e){e.eachSeries(function(t){var n=t.coordinateSystem,a=t.get(["tooltip","trigger"],!0),i=t.get(["tooltip","show"],!0);!n||!n.model||a==="none"||a===!1||a==="item"||i===!1||t.get(["axisPointer","show"],!0)===!1||P(r.coordSysAxesInfo[fg(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(t),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=t.getData().count())})})}function zfe(r,e){for(var t=e.model,n=e.dim,a=0;a<r.length;a++){var i=r[a]||{};if(sT(i[n+"AxisId"],t.id)||sT(i[n+"AxisIndex"],t.componentIndex)||sT(i[n+"AxisName"],t.name))return a}}function sT(r,e){return r==="all"||ue(r)&&Ge(r,e)>=0||r===e}function Bfe(r){var e=oL(r);if(e){var t=e.axisPointerModel,n=e.axis.scale,a=t.option,i=t.get("status"),o=t.get("value");o!=null&&(o=n.parse(o));var s=hA(t);i==null&&(a.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),a.value=o,s&&(a.status=e.axis.scale.isBlank()?"hide":"show")}}function oL(r){var e=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[fg(r)]}function jfe(r){var e=oL(r);return e&&e.axisPointerModel}function hA(r){return!!r.get(["handle","show"])}function fg(r){return r.type+"||"+r.id}var R3={},Cc=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a,i){this.axisPointerClass&&Bfe(t),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,a,!0)},e.prototype.updateAxisPointer=function(t,n,a,i){this._doUpdateAxisPointerClass(t,a,!1)},e.prototype.remove=function(t,n){var a=this._axisPointer;a&&a.remove(n)},e.prototype.dispose=function(t,n){this._disposeAxisPointer(n),r.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,n,a){var i=e.getAxisPointerClass(this.axisPointerClass);if(i){var o=jfe(t);o?(this._axisPointer||(this._axisPointer=new i)).render(t,o,n,a):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,n){R3[t]=n},e.getAxisPointerClass=function(t){return t&&R3[t]},e.type="axis",e})(Lt),dA=Ke();function w7(r,e,t,n){var a=t.axis;if(!a.scale.isBlank()){var i=t.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=a.getTicksCoords({tickModel:i,clamp:!0,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var c=s.length,f=dA(r).splitAreaColors,d=Te(),v=0;if(f)for(var g=0;g<u.length;g++){var x=f.get(u[g].tickValue);if(x!=null){v=(x+(c-1)*g)%c;break}}var y=a.toGlobalCoord(u[0].coord),b=o.getAreaStyle();s=ue(s)?s:[s];for(var g=1;g<u.length;g++){var S=a.toGlobalCoord(u[g].coord),T=void 0,C=void 0,M=void 0,D=void 0;a.isHorizontal()?(T=y,C=l.y,M=S-T,D=l.height,y=T+M):(T=l.x,C=y,M=l.width,D=S-C,y=C+D);var L=u[g-1].tickValue;L!=null&&d.set(L,v),e.add(new We({anid:L!=null?"area_"+L:null,shape:{x:T,y:C,width:M,height:D},style:Ne({fill:s[v]},b),autoBatch:!0,silent:!0})),v=(v+1)%c}dA(r).splitAreaColors=d}}}function T7(r){dA(r).splitAreaColors=null}var Vfe=["splitArea","splitLine","minorSplitLine","breakArea"],C7=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="CartesianAxisPointer",t}return e.prototype.render=function(t,n,a,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new De,this.group.add(this._axisGroup),!!sg(t)){this._axisGroup.add(t.axis.axisBuilder.group),P(Vfe,function(l){t.get([l,"show"])&&Gfe[l](this,this._axisGroup,t,t.getCoordSysModel(),a)},this);var s=i&&i.type==="changeAxisOrder"&&i.isInitSort;s||jg(o,this._axisGroup,t),r.prototype.render.call(this,t,n,a,i)}},e.prototype.remove=function(){T7(this)},e.type="cartesianAxis",e})(Cc),Gfe={splitLine:function(r,e,t,n,a){var i=t.axis;if(!i.scale.isBlank()){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,c=o.get("showMaxLine")!==!1;l=ue(l)?l:[l];for(var f=n.coordinateSystem.getRect(),d=i.isHorizontal(),v=0,g=i.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),x=[],y=[],b=s.getLineStyle(),S=0;S<g.length;S++){var T=i.toGlobalCoord(g[S].coord);if(!(S===0&&!u||S===g.length-1&&!c)){var C=g[S].tickValue;d?(x[0]=T,x[1]=f.y,y[0]=T,y[1]=f.y+f.height):(x[0]=f.x,x[1]=T,y[0]=f.x+f.width,y[1]=T);var M=v++%l.length,D=new sr({anid:C!=null?"line_"+C:null,autoBatch:!0,shape:{x1:x[0],y1:x[1],x2:y[0],y2:y[1]},style:Ne({stroke:l[M]},b),silent:!0});Rh(D.shape,b.lineWidth),e.add(D)}}}},minorSplitLine:function(r,e,t,n,a){var i=t.axis,o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=n.coordinateSystem.getRect(),u=i.isHorizontal(),c=i.getMinorTicksCoords();if(c.length)for(var f=[],d=[],v=s.getLineStyle(),g=0;g<c.length;g++)for(var x=0;x<c[g].length;x++){var y=i.toGlobalCoord(c[g][x].coord);u?(f[0]=y,f[1]=l.y,d[0]=y,d[1]=l.y+l.height):(f[0]=l.x,f[1]=y,d[0]=l.x+l.width,d[1]=y);var b=new sr({anid:"minor_line_"+c[g][x].tickValue,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:d[0],y2:d[1]},style:v,silent:!0});Rh(b.shape,v.lineWidth),e.add(b)}},splitArea:function(r,e,t,n,a){w7(r,e,t,n)},breakArea:function(r,e,t,n,a){var i=qg(),o=t.axis.scale;i&&o.type!=="ordinal"&&i.rectCoordBuildBreakAxis(e,r,t,n.coordinateSystem.getRect(),a)}},A7=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="xAxis",e})(C7),Hfe=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=A7.type,t}return e.type="yAxis",e})(C7),Ffe=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="grid",t}return e.prototype.render=function(t,n){this.group.removeAll(),t.get("show")&&this.group.add(new We({shape:t.coordinateSystem.getRect(),style:Ne({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e})(Lt),E3={offset:0};function M7(r){r.registerComponentView(Ffe),r.registerComponentModel(Kce),r.registerCoordinateSystem("cartesian2d",Mfe),zh(r,"x",oA,E3),zh(r,"y",oA,E3),r.registerComponentView(A7),r.registerComponentView(Hfe),r.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function Ufe(r,e){var t=r.coordinateSystem,n=t&&t.type,a=t&&t.getBaseAxis&&t.getBaseAxis(),i=a&&a.scale&&a.scale.type,o=n==="cartesian2d"&&i==="ordinal"||n==="single",s=e.model.get("jitter")>0;return o&&s}var Yfe=Ke();function I3(r,e,t,n){if(r instanceof f7){var a=r.scale.type;if(a!=="category"&&a!=="ordinal")return t}var i=r.model,o=i.get("jitter"),s=i.get("jitterOverlap"),l=i.get("jitterMargin")||0,u=r.scale.type==="ordinal"?r.getBandWidth():null;return o>0?s?D7(t,o,u,n):Wfe(r,e,t,n,o,l):t}function D7(r,e,t,n){if(t===null)return r+(Math.random()-.5)*e;var a=t-n*2,i=Math.min(Math.max(0,e),a);return r+(Math.random()-.5)*i}function Wfe(r,e,t,n,a,i){var o=Yfe(r);o.items||(o.items=[]);var s=o.items,l=k3(s,e,t,n,a,i,1),u=k3(s,e,t,n,a,i,-1),c=Math.abs(l-t)<Math.abs(u-t)?l:u,f=r.scale.type==="ordinal"?r.getBandWidth():null,d=Math.abs(c-t);return d>a/2||f&&d>f/2-n?D7(t,a,f,n):(s.push({fixedCoord:e,floatCoord:c,r:n}),c)}function k3(r,e,t,n,a,i,o){for(var s=t,l=0;l<r.length;l++){var u=r[l],c=e-u.fixedCoord,f=s-u.floatCoord,d=c*c+f*f,v=n+u.r+i;if(d<v*v){var g=u.floatCoord+Math.sqrt(v*v-c*c)*o;if(Math.abs(g-t)>a/2)return Number.MAX_VALUE;if(o===1&&g>s||o===-1&&g<s){s=g,l=-1;continue}}}return s}function Xfe(r){r.eachSeriesByType("scatter",function(e){var t=e.coordinateSystem;if(t&&(t.type==="cartesian2d"||t.type==="single")){var n=t.getBaseAxis?t.getBaseAxis():null,a=n&&Ufe(e,n);if(a){var i=e.getData();i.each(function(o){var s=n.dim,l=n.orient,u=l==="horizontal"&&n.type!=="category"||l==="vertical"&&n.type==="category",c=i.getItemLayout(o),f=i.getItemVisual(o,"symbolSize"),d=f instanceof Array?(f[1]+f[0])/2:f;if(s==="y"||s==="single"&&u){var v=I3(n,c[0],c[1],d/2);i.setItemLayout(o,[c[0],v])}else if(s==="x"||s==="single"&&!u){var v=I3(n,c[1],c[0],d/2);i.setItemLayout(o,[v,c[1]])}})}}})}function qfe(r){Ue(M7),r.registerSeriesModel(Wce),r.registerChartView($ce),r.registerLayout(Xg("scatter"))}function Zfe(r){r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,Xfe)}function $fe(r){r.eachSeriesByType("radar",function(e){var t=e.getData(),n=[],a=e.coordinateSystem;if(a){var i=a.getIndicatorAxes();P(i,function(o,s){t.each(t.mapDimension(i[s].dim),function(l,u){n[u]=n[u]||[];var c=a.dataToPoint(l,s);n[u][s]=O3(c)?c:P3(a)})}),t.each(function(o){var s=Cl(n[o],function(l){return O3(l)})||P3(a);n[o].push(s.slice()),t.setItemLayout(o,n[o])})}})}function O3(r){return!isNaN(r[0])&&!isNaN(r[1])}function P3(r){return[r.cx,r.cy]}function Kfe(r){var e=r.polar;if(e){ue(e)||(e=[e]);var t=[];P(e,function(n,a){n.indicator?(n.type&&!n.shape&&(n.shape=n.type),r.radar=r.radar||[],ue(r.radar)||(r.radar=[r.radar]),r.radar.push(n)):t.push(n)}),r.polar=t}P(r.series,function(n){n&&n.type==="radar"&&n.polarIndex&&(n.radarIndex=n.polarIndex)})}var Qfe=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=t.coordinateSystem,o=this.group,s=t.getData(),l=this._data;function u(d,v){var g=d.getItemVisual(v,"symbol")||"circle";if(g!=="none"){var x=od(d.getItemVisual(v,"symbolSize")),y=lr(g,-1,-1,2,2),b=d.getItemVisual(v,"symbolRotate")||0;return y.attr({style:{strokeNoScale:!0},z2:100,scaleX:x[0]/2,scaleY:x[1]/2,rotation:b*Math.PI/180||0}),y}}function c(d,v,g,x,y,b){g.removeAll();for(var S=0;S<v.length-1;S++){var T=u(x,y);T&&(T.__dimIdx=S,d[S]?(T.setPosition(d[S]),_c[b?"initProps":"updateProps"](T,{x:v[S][0],y:v[S][1]},t,y)):T.setPosition(v[S]),g.add(T))}}function f(d){return ce(d,function(v){return[i.cx,i.cy]})}s.diff(l).add(function(d){var v=s.getItemLayout(d);if(v){var g=new Jr,x=new Vr,y={shape:{points:v}};g.shape.points=f(v),x.shape.points=f(v),zt(g,y,t,d),zt(x,y,t,d);var b=new De,S=new De;b.add(x),b.add(g),b.add(S),c(x.shape.points,v,S,s,d,!0),s.setItemGraphicEl(d,b)}}).update(function(d,v){var g=l.getItemGraphicEl(v),x=g.childAt(0),y=g.childAt(1),b=g.childAt(2),S={shape:{points:s.getItemLayout(d)}};S.shape.points&&(c(x.shape.points,S.shape.points,b,s,d,!1),ka(y),ka(x),ot(x,S,t),ot(y,S,t),s.setItemGraphicEl(d,g))}).remove(function(d){o.remove(l.getItemGraphicEl(d))}).execute(),s.eachItemGraphicEl(function(d,v){var g=s.getItemModel(v),x=d.childAt(0),y=d.childAt(1),b=d.childAt(2),S=s.getItemVisual(v,"style"),T=S.fill;o.add(d),x.useStyle(Ne(g.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:T})),br(x,g,"lineStyle"),br(y,g,"areaStyle");var C=g.getModel("areaStyle"),M=C.isEmpty()&&C.parentModel.isEmpty();y.ignore=M,P(["emphasis","select","blur"],function(L){var E=g.getModel([L,"areaStyle"]),R=E.isEmpty()&&E.parentModel.isEmpty();y.ensureState(L).ignore=R&&M;var I=g.getModel([L,"lineStyle"]).getLineStyle();x.ensureState(L).style=I;var k=E.getAreaStyle();y.ensureState(L).style=k;var z=g.getModel([L,"itemStyle"]).getItemStyle();b.eachChild(function(O){O.ensureState(L).style=Me(z)})}),y.useStyle(Ne(g.getModel("areaStyle").getAreaStyle(),{fill:T,opacity:.7,decal:S.decal}));var D=g.getModel("emphasis");b.eachChild(function(L){if(L instanceof Nr){var E=L.style;L.useStyle(ie({image:E.image,x:E.x,y:E.y,width:E.width,height:E.height},S))}else L.useStyle(S),L.setColor(T),L.style.strokeNoScale=!0;var R=s.getStore().get(s.getDimensionIndex(L.__dimIdx),v);(R==null||isNaN(R))&&(R=""),Lr(L,_r(g),{labelFetcher:s.hostModel,labelDataIndex:v,labelDimIndex:L.__dimIdx,defaultText:R,inheritColor:T,defaultOpacity:S.opacity})}),Ft(d,D.get("focus"),D.get("blurScope"),D.get("disabled"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e})(_t),Jfe=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new hd(xe(this.getData,this),xe(this.getRawData,this))},e.prototype.getInitialData=function(t,n){return fd(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,n,a){var i=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(t),u=l===""?this.name:l,c=l8(this,t);return vr("section",{header:u,sortBlocks:!0,blocks:ce(s,function(f){var d=i.get(i.mapDimension(f.dim),t);return vr("nameValue",{markerType:"subItem",markerColor:c,name:f.name,value:d,sortParam:d})})})},e.prototype.getTooltipPosition=function(t){if(t!=null){for(var n=this.getData(),a=this.coordinateSystem,i=n.getValues(ce(a.dimensions,function(u){return n.mapDimension(u)}),t),o=0,s=i.length;o<s;o++)if(!isNaN(i[o])){var l=a.getIndicatorAxes();return a.coordToPoint(l[o].dataToCoord(i[o]),o)}}},e.type="series.radar",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})(wt),Ov=c7.value;function s0(r,e){return Ne({show:e},r)}var ehe=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),n=this.get("splitNumber"),a=this.get("scale"),i=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),c=this.get(["axisName","formatter"]),f=this.get("axisNameGap"),d=this.get("triggerEvent"),v=ce(this.get("indicator")||[],function(g){g.max!=null&&g.max>0&&!g.min?g.min=0:g.min!=null&&g.min<0&&!g.max&&(g.max=0);var x=l;g.color!=null&&(x=Ne({color:g.color},l));var y=Fe(Me(g),{boundaryGap:t,splitNumber:n,scale:a,axisLine:i,axisTick:o,axisLabel:s,name:g.text,showName:u,nameLocation:"end",nameGap:f,nameTextStyle:x,triggerEvent:d},!1);if(ye(c)){var b=y.name;y.name=c.replace("{value}",b??"")}else Ae(c)&&(y.name=c(y.name,y));var S=new Je(y,null,this.ecModel);return Qt(S,ud.prototype),S.mainType="radar",S.componentIndex=this.componentIndex,S},this);this._indicatorModels=v},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"50%",startAngle:90,axisName:{show:!0,color:ee.color.axisLabel},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Fe({lineStyle:{color:ee.color.neutral20}},Ov.axisLine),axisLabel:s0(Ov.axisLabel,!1),axisTick:s0(Ov.axisTick,!1),splitLine:s0(Ov.splitLine,!0),splitArea:s0(Ov.splitArea,!0),indicator:[]},e})($e),the=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=this.group;i.removeAll(),this._buildAxes(t,a),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t,n){var a=t.coordinateSystem,i=a.getIndicatorAxes(),o=ce(i,function(s){var l=s.model.get("showName")?s.name:"",u=new mn(s.model,n,{axisName:l,position:[a.cx,a.cy],rotation:s.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return u});P(o,function(s){s.build(),this.group.add(s.group)},this)},e.prototype._buildSplitLineAndArea=function(t){var n=t.coordinateSystem,a=n.getIndicatorAxes();if(!a.length)return;var i=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),f=s.get("show"),d=l.get("color"),v=u.get("color"),g=ue(d)?d:[d],x=ue(v)?v:[v],y=[],b=[];function S(F,B,Y){var H=Y%B.length;return F[H]=F[H]||[],H}if(i==="circle")for(var T=a[0].getTicksCoords(),C=n.cx,M=n.cy,D=0;D<T.length;D++){if(c){var L=S(y,g,D);y[L].push(new Ki({shape:{cx:C,cy:M,r:T[D].coord}}))}if(f&&D<T.length-1){var L=S(b,x,D);b[L].push(new $h({shape:{cx:C,cy:M,r0:T[D].coord,r:T[D+1].coord}}))}}else for(var E,R=ce(a,function(F,B){var Y=F.getTicksCoords();return E=E==null?Y.length-1:Math.min(Y.length-1,E),ce(Y,function(H){return n.coordToPoint(H.coord,B)})}),I=[],D=0;D<=E;D++){for(var k=[],z=0;z<a.length;z++)k.push(R[z][D]);if(k[0]&&k.push(k[0].slice()),c){var L=S(y,g,D);y[L].push(new Vr({shape:{points:k}}))}if(f&&I){var L=S(b,x,D-1);b[L].push(new Jr({shape:{points:k.concat(I)}}))}I=k.slice().reverse()}var O=l.getLineStyle(),G=u.getAreaStyle();P(b,function(F,B){this.group.add(Kn(F,{style:Ne({stroke:"none",fill:x[B%x.length]},G),silent:!0}))},this),P(y,function(F,B){this.group.add(Kn(F,{style:Ne({fill:"none",stroke:g[B%g.length]},O),silent:!0}))},this)},e.type="radar",e})(Lt),rhe=(function(r){K(e,r);function e(t,n,a){var i=r.call(this,t,n,a)||this;return i.type="value",i.angle=0,i.name="",i}return e})(za),nhe=(function(){function r(e,t,n){this.dimensions=[],this._model=e,this._indicatorAxes=ce(e.getIndicatorModels(),function(a,i){var o="indicator_"+i,s=new rhe(o,new Ko);return s.name=a.get("name"),s.model=a,a.axis=s,this.dimensions.push(o),s},this),this.resize(e,n)}return r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(e,t){var n=this._indicatorAxes[t];return this.coordToPoint(n.dataToCoord(e),t)},r.prototype.coordToPoint=function(e,t){var n=this._indicatorAxes[t],a=n.angle,i=this.cx+e*Math.cos(a),o=this.cy-e*Math.sin(a);return[i,o]},r.prototype.pointToData=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,a=Math.sqrt(t*t+n*n);t/=a,n/=a;for(var i=Math.atan2(-n,t),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var c=this._indicatorAxes[u],f=Math.abs(i-c.angle);f<o&&(s=c,l=u,o=f)}return[l,+(s&&s.coordToData(a))]},r.prototype.resize=function(e,t){var n=Sr(e,t).refContainer,a=e.get("center"),i=Math.min(n.width,n.height)/2;this.cx=me(a[0],n.width)+n.x,this.cy=me(a[1],n.height)+n.y,this.startAngle=e.get("startAngle")*Math.PI/180;var o=e.get("radius");(ye(o)||it(o))&&(o=[0,o]),this.r0=me(o[0],i),this.r=me(o[1],i),P(this._indicatorAxes,function(s,l){s.setExtent(this.r0,this.r);var u=this.startAngle+l*Math.PI*2/this._indicatorAxes.length;u=Math.atan2(Math.sin(u),Math.cos(u)),s.angle=u},this)},r.prototype.update=function(e,t){var n=this._indicatorAxes,a=this._model;P(n,function(s){s.scale.setExtent(1/0,-1/0)}),e.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||e.getComponent("radar",s.get("radarIndex"))!==a)){var u=s.getData();P(n,function(c){c.scale.unionExtentFromData(u,u.mapDimension(c.dim))})}},this);var i=a.get("splitNumber"),o=new Ko;o.setExtent(0,i),o.setInterval(1),P(n,function(s,l){_7(s.scale,s.model,o)})},r.prototype.convertToPixel=function(e,t,n){return console.warn("Not implemented."),null},r.prototype.convertFromPixel=function(e,t,n){return console.warn("Not implemented."),null},r.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},r.create=function(e,t){var n=[];return e.eachComponent("radar",function(a){var i=new r(a,e,t);n.push(i),a.coordinateSystem=i}),e.eachSeriesByType("radar",function(a){a.get("coordinateSystem")==="radar"&&(a.coordinateSystem=n[a.get("radarIndex")||0])}),n},r.dimensions=[],r})();function ahe(r){r.registerCoordinateSystem("radar",nhe),r.registerComponentModel(ehe),r.registerComponentView(the),r.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each(function(n){t.setItemVisual(n,"legendIcon","roundRect")}),t.setVisual("legendIcon","roundRect")}})}function ihe(r){Ue(ahe),r.registerChartView(Qfe),r.registerSeriesModel(Jfe),r.registerLayout($fe),r.registerProcessor(cd("radar")),r.registerPreprocessor(Kfe)}var sL=Ke();function ohe(r,e,t){sL(r)[e]=t}function she(r,e,t){var n=sL(r),a=n[e];a===t&&(n[e]=null)}function z3(r,e){return!!sL(r)[e]}si({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},$t);var lhe={axisPointer:1,tooltip:1,brush:1};function L7(r,e,t){var n=e.getComponentByElement(r.topTarget);if(!n||n===t||lhe.hasOwnProperty(n.mainType))return!1;var a=n.coordinateSystem;if(!a||a.model===t)return!1;var i=hc(n),o=hc(t);return!((i.zlevel-o.zlevel||i.z-o.z)<=0)}var Ac=(function(r){K(e,r);function e(t){var n=r.call(this)||this;n._zr=t;var a=xe(n._mousedownHandler,n),i=xe(n._mousemoveHandler,n),o=xe(n._mouseupHandler,n),s=xe(n._mousewheelHandler,n),l=xe(n._pinchHandler,n);return n.enable=function(u,c){var f=c.zInfo,d=hc(f.component),v=d.z,g=d.zlevel,x={component:f.component,z:v,zlevel:g,z2:Ce(f.z2,-1/0)},y=ie({},c.triggerInfo);this._opt=Ne(ie({},c),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:x,triggerInfo:y}),u==null&&(u=!0),(!this._enabled||this._controlType!==u)&&(this._enabled=!0,this.disable(),(u===!0||u==="move"||u==="pan")&&(zv(t,"mousedown",a,x),zv(t,"mousemove",i,x),zv(t,"mouseup",o,x)),(u===!0||u==="scale"||u==="zoom")&&(zv(t,"mousewheel",s,x),zv(t,"pinch",l,x)))},n.disable=function(){this._enabled=!1,Bv(t,"mousedown",a),Bv(t,"mousemove",i),Bv(t,"mouseup",o),Bv(t,"mousewheel",s),Bv(t,"pinch",l)},n}return e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype._checkPointer=function(t,n,a){var i=this._opt,o=i.zInfoParsed;if(L7(t,i.api,o.component))return!1;var s=i.triggerInfo,l=s.roamTrigger,u=!1;return l==="global"&&(u=!0),u||(u=s.isInSelf(t,n,a)),u&&s.isInClip&&!s.isInClip(t,n,a)&&(u=!1),u},e.prototype._decideCursorStyle=function(t,n,a,i){var o=t.target;if(!o&&this._checkPointer(t,n,a))return"grab";if(i)return o&&o.cursor||"default"},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!(aO(t)||Pv(t))){for(var n=t.target;n;){if(n.draggable)return;n=n.__hostTarget||n.parent}var a=t.offsetX,i=t.offsetY;this._checkPointer(t,a,i)&&(this._x=a,this._y=i,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){var n=this._zr;if(!(t.gestureEvent==="pinch"||z3(n,"globalPan")||Pv(t))){var a=t.offsetX,i=t.offsetY;if(!this._dragging||!Q0("moveOnMouseMove",t,this._opt)){var o=this._decideCursorStyle(t,a,i,!1);o&&n.setCursorStyle(o);return}n.setCursorStyle("grabbing");var s=this._x,l=this._y,u=a-s,c=i-l;this._x=a,this._y=i,this._opt.preventDefaultMouseMove&&Wo(t.event),t.__ecRoamConsumed=!0,B3(this,"pan","moveOnMouseMove",t,{dx:u,dy:c,oldX:s,oldY:l,newX:a,newY:i,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){if(!Pv(t)){var n=this._zr;if(!aO(t)){this._dragging=!1;var a=this._decideCursorStyle(t,t.offsetX,t.offsetY,!0);a&&n.setCursorStyle(a)}}},e.prototype._mousewheelHandler=function(t){if(!Pv(t)){var n=Q0("zoomOnMouseWheel",t,this._opt),a=Q0("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,o=Math.abs(i),s=t.offsetX,l=t.offsetY;if(!(i===0||!n&&!a)){if(n){var u=o>3?1.4:o>1?1.2:1.1,c=i>0?u:1/u;this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",t,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(a){var f=Math.abs(i),d=(i>0?1:-1)*(f>3?.4:f>1?.15:.05);this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:d,originX:s,originY:l,isAvailableBehavior:null})}}}},e.prototype._pinchHandler=function(t){if(!(z3(this._zr,"globalPan")||Pv(t))){var n=t.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,"zoom",null,t,{scale:n,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e.prototype._checkTriggerMoveZoom=function(t,n,a,i,o){t._checkPointer(i,o.originX,o.originY)&&(Wo(i.event),i.__ecRoamConsumed=!0,B3(t,n,a,i,o))},e})(Oa);function Pv(r){return r.__ecRoamConsumed}var uhe=Ke();function cb(r){var e=uhe(r);return e.roam=e.roam||{},e.uniform=e.uniform||{},e}function zv(r,e,t,n){for(var a=cb(r),i=a.roam,o=i[e]=i[e]||[],s=0;s<o.length;s++){var l=o[s].zInfoParsed;if((l.zlevel-n.zlevel||l.z-n.z||l.z2-n.z2)<=0)break}o.splice(s,0,{listener:t,zInfoParsed:n}),che(r,e)}function Bv(r,e,t){for(var n=cb(r),a=n.roam[e]||[],i=0;i<a.length;i++)if(a[i].listener===t){a.splice(i,1),a.length||fhe(r,e);return}}function che(r,e){var t=cb(r);t.uniform[e]||r.on(e,t.uniform[e]=function(n){var a=t.roam[e];if(a)for(var i=0;i<a.length;i++)a[i].listener(n)})}function fhe(r,e){var t=cb(r),n=t.uniform;n[e]&&(r.off(e,n[e]),n[e]=null)}function B3(r,e,t,n,a){a.isAvailableBehavior=xe(Q0,null,t,n),r.trigger(e,a)}function Q0(r,e,t){var n=t[r];return!r||n&&(!ye(n)||e.event[n+"Key"])}function lL(r,e,t){var n=r.target;n.x+=e,n.y+=t,n.dirty()}function uL(r,e,t,n){var a=r.target,i=r.zoomLimit,o=r.zoom=r.zoom||1;o*=e,o=cL(o,i);var s=o/r.zoom;r.zoom=o,R7(a,t,n,s),a.dirty()}function N7(r,e,t,n,a,i){var o=new ke(0,0,0,0);n.enable(r.get("roam"),{api:e,zInfo:{component:r},triggerInfo:{roamTrigger:r.get("roamTrigger"),isInSelf:function(u,c,f){return o.copy(t.getBoundingRect()),o.applyTransform(t.getComputedTransform()),o.contain(c,f)},isInClip:function(u,c,f){return!i||i.contain(c,f)}}}),a.zoomLimit=r.get("scaleLimit");var s=r.coordinateSystem;a.zoom=s?s.getZoom():1;var l=r.subType+"Roam";n.off("pan").off("zoom").on("pan",function(u){lL(a,u.dx,u.dy),e.dispatchAction({seriesId:r.id,type:l,dx:u.dx,dy:u.dy})}).on("zoom",function(u){uL(a,u.scale,u.originX,u.originY),e.dispatchAction({seriesId:r.id,type:l,zoom:u.scale,originX:u.originX,originY:u.originY}),e.updateLabelLayout()})}function j3(r,e){return r.pointToProjected?r.pointToProjected(e):r.pointToData(e)}function fb(r,e,t){var n=r.getZoom(),a=r.getCenter(),i=e.zoom,o=r.projectedToPoint?r.projectedToPoint(a):r.dataToPoint(a);return e.dx!=null&&e.dy!=null&&(o[0]-=e.dx,o[1]-=e.dy,r.setCenter(j3(r,o))),i!=null&&(i=cL(n*i,t)/n,R7(r,e.originX,e.originY,i),r.updateTransform(),r.setCenter(j3(r,o)),r.setZoom(i*n)),{center:r.getCenter(),zoom:r.getZoom()}}function R7(r,e,t,n){r.x-=(e-r.x)*(n-1),r.y-=(t-r.y)*(n-1),r.scaleX*=n,r.scaleY*=n}function cL(r,e){if(e){var t=e.min||0,n=e.max||1/0;r=Math.max(Math.min(n,r),t)}return r}function E7(r){if(ye(r)){var e=new DOMParser;r=e.parseFromString(r,"text/xml")}var t=r;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var lT,n1={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},V3=nt(n1),a1={"alignment-baseline":"textBaseline","stop-color":"stopColor"},G3=nt(a1),hhe=(function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(e,t){t=t||{};var n=E7(e);this._defsUsePending=[];var a=new De;this._root=a;var i=[],o=n.getAttribute("viewBox")||"",s=parseFloat(n.getAttribute("width")||t.width),l=parseFloat(n.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),Un(n,a,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,a,i,null,!1,!1),u=u.nextSibling;phe(this._defs,this._defsUsePending),this._defsUsePending=[];var c,f;if(o){var d=hb(o);d.length>=4&&(c={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(c&&s!=null&&l!=null&&(f=k7(c,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var v=a;a=new De,a.add(v),v.scaleX=v.scaleY=f.scale,v.x=f.x,v.y=f.y}return!t.ignoreRootClip&&s!=null&&l!=null&&a.setClipPath(new We({shape:{x:0,y:0,width:s,height:l}})),{root:a,width:s,height:l,viewBoxRect:c,viewBoxTransform:f,named:i}},r.prototype._parseNode=function(e,t,n,a,i,o){var s=e.nodeName.toLowerCase(),l,u=a;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!i){var c=lT[s];if(c&&Se(lT,s)){l=c.call(this,e,t);var f=e.getAttribute("name");if(f){var d={name:f,namedFrom:null,svgNodeTagLower:s,el:l};n.push(d),s==="g"&&(u=d)}else a&&n.push({name:a.name,namedFrom:a,svgNodeTagLower:s,el:l});t.add(l)}}var v=H3[s];if(v&&Se(H3,s)){var g=v.call(this,e),x=e.getAttribute("id");x&&(this._defs[x]=g)}}if(l&&l.isGroup)for(var y=e.firstChild;y;)y.nodeType===1?this._parseNode(y,l,n,u,i,o):y.nodeType===3&&o&&this._parseText(y,l),y=y.nextSibling},r.prototype._parseText=function(e,t){var n=new Lh({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});ga(t,n),Un(e,n,this._defsUsePending,!1,!1),dhe(n,t);var a=n.style,i=a.fontSize;i&&i<9&&(a.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9);var o=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=o;var s=n.getBoundingRect();return this._textX+=s.width,t.add(n),n},r.internalField=(function(){lT={g:function(e,t){var n=new De;return ga(t,n),Un(e,n,this._defsUsePending,!1,!1),n},rect:function(e,t){var n=new We;return ga(t,n),Un(e,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(e,t){var n=new Ki;return ga(t,n),Un(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),n.silent=!0,n},line:function(e,t){var n=new sr;return ga(t,n),Un(e,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(e,t){var n=new Pg;return ga(t,n),Un(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(e,t){var n=e.getAttribute("points"),a;n&&(a=Y3(n));var i=new Jr({shape:{points:a||[]},silent:!0});return ga(t,i),Un(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var n=e.getAttribute("points"),a;n&&(a=Y3(n));var i=new Vr({shape:{points:a||[]},silent:!0});return ga(t,i),Un(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var n=new Nr;return ga(t,n),Un(e,n,this._defsUsePending,!1,!1),n.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),n.silent=!0,n},text:function(e,t){var n=e.getAttribute("x")||"0",a=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(a)+parseFloat(o);var s=new De;return ga(t,s),Un(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var n=e.getAttribute("x"),a=e.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),a!=null&&(this._textY=parseFloat(a));var i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new De;return ga(t,s),Un(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(e,t){var n=e.getAttribute("d")||"",a=$6(n);return ga(t,a),Un(e,a,this._defsUsePending,!1,!1),a.silent=!0,a}}})(),r})(),H3={lineargradient:function(r){var e=parseInt(r.getAttribute("x1")||"0",10),t=parseInt(r.getAttribute("y1")||"0",10),n=parseInt(r.getAttribute("x2")||"10",10),a=parseInt(r.getAttribute("y2")||"0",10),i=new bc(e,t,n,a);return F3(r,i),U3(r,i),i},radialgradient:function(r){var e=parseInt(r.getAttribute("cx")||"0",10),t=parseInt(r.getAttribute("cy")||"0",10),n=parseInt(r.getAttribute("r")||"0",10),a=new JM(e,t,n);return F3(r,a),U3(r,a),a}};function F3(r,e){var t=r.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function U3(r,e){for(var t=r.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var n=t.getAttribute("offset"),a=void 0;n&&n.indexOf("%")>0?a=parseInt(n,10)/100:n?a=parseFloat(n):a=0;var i={};I7(t,i,i);var o=i.stopColor||t.getAttribute("stop-color")||"#000000",s=i.stopOpacity||t.getAttribute("stop-opacity");if(s){var l=un(o),u=l&&l[3];u&&(l[3]*=zo(s),o=La(l,"rgba"))}e.colorStops.push({offset:a,color:o})}t=t.nextSibling}}function ga(r,e){r&&r.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),Ne(e.__inheritedStyle,r.__inheritedStyle))}function Y3(r){for(var e=hb(r),t=[],n=0;n<e.length;n+=2){var a=parseFloat(e[n]),i=parseFloat(e[n+1]);t.push([a,i])}return t}function Un(r,e,t,n,a){var i=e,o=i.__inheritedStyle=i.__inheritedStyle||{},s={};r.nodeType===1&&(yhe(r,e),I7(r,o,s),n||xhe(r,o,s)),i.style=i.style||{},o.fill!=null&&(i.style.fill=W3(i,"fill",o.fill,t)),o.stroke!=null&&(i.style.stroke=W3(i,"stroke",o.stroke,t)),P(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(i.style[l]=parseFloat(o[l]))}),P(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(i.style[l]=o[l])}),a&&(i.__selfStyle=s),o.lineDash&&(i.style.lineDash=ce(hb(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(i.invisible=!0),o.display==="none"&&(i.ignore=!0)}function dhe(r,e){var t=e.__selfStyle;if(t){var n=t.textBaseline,a=n;!n||n==="auto"||n==="baseline"?a="alphabetic":n==="before-edge"||n==="text-before-edge"?a="top":n==="after-edge"||n==="text-after-edge"?a="bottom":(n==="central"||n==="mathematical")&&(a="middle"),r.style.textBaseline=a}var i=e.__inheritedStyle;if(i){var o=i.textAlign,s=o;o&&(o==="middle"&&(s="center"),r.style.textAlign=s)}}var vhe=/^url\(\s*#(.*?)\)/;function W3(r,e,t,n){var a=t&&t.match(vhe);if(a){var i=Qn(a[1]);n.push([r,e,i]);return}return t==="none"&&(t=null),t}function phe(r,e){for(var t=0;t<e.length;t++){var n=e[t];n[0].style[n[1]]=r[n[2]]}}var ghe=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function hb(r){return r.match(ghe)||[]}var mhe=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,uT=Math.PI/180;function yhe(r,e){var t=r.getAttribute("transform");if(t){t=t.replace(/,/g," ");var n=[],a=null;t.replace(mhe,function(f,d,v){return n.push(d,v),""});for(var i=n.length-1;i>0;i-=2){var o=n[i],s=n[i-1],l=hb(o);switch(a=a||Mr(),s){case"translate":ni(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":B1(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":es(a,a,-parseFloat(l[0])*uT,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*uT);Ka(a,[1,0,u,1,0,0],a);break;case"skewY":var c=Math.tan(parseFloat(l[0])*uT);Ka(a,[1,c,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(l[0]),a[1]=parseFloat(l[1]),a[2]=parseFloat(l[2]),a[3]=parseFloat(l[3]),a[4]=parseFloat(l[4]),a[5]=parseFloat(l[5]);break}}e.setLocalTransform(a)}}var X3=/([^\s:;]+)\s*:\s*([^:;]+)/g;function I7(r,e,t){var n=r.getAttribute("style");if(n){X3.lastIndex=0;for(var a;(a=X3.exec(n))!=null;){var i=a[1],o=Se(n1,i)?n1[i]:null;o&&(e[o]=a[2]);var s=Se(a1,i)?a1[i]:null;s&&(t[s]=a[2])}}}function xhe(r,e,t){for(var n=0;n<V3.length;n++){var a=V3[n],i=r.getAttribute(a);i!=null&&(e[n1[a]]=i)}for(var n=0;n<G3.length;n++){var a=G3[n],i=r.getAttribute(a);i!=null&&(t[a1[a]]=i)}}function k7(r,e){var t=e.width/r.width,n=e.height/r.height,a=Math.min(t,n);return{scale:a,x:-(r.x+r.width/2)*a+(e.x+e.width/2),y:-(r.y+r.height/2)*a+(e.y+e.height/2)}}function bhe(r,e){var t=new hhe;return t.parse(r,e)}var _he=Te(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),She=(function(){function r(e,t){this.type="geoSVG",this._usedGraphicMap=Te(),this._freedGraphics=[],this._mapName=e,this._parsedXML=E7(t)}return r.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=The(e.named),n=t.regions,a=t.regionsMap;this._regions=n,this._regionsMap=a}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},r.prototype._buildGraphic=function(e){var t,n;try{t=e&&bhe(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=t.root,Kr(n!=null)}catch(y){throw new Error(`Invalid svg format
|
|
262
|
+
`+y.message)}var a=new De;a.add(n),a.isGeoSVGGraphicRoot=!0;var i=t.width,o=t.height,s=t.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,c=void 0,f=void 0,d=void 0;if(i!=null?(u=0,f=i):s&&(u=s.x,f=s.width),o!=null?(c=0,d=o):s&&(c=s.y,d=s.height),u==null||c==null){var v=n.getBoundingRect();u==null&&(u=v.x,f=v.width),c==null&&(c=v.y,d=v.height)}l=this._boundingRect=new ke(u,c,f,d)}if(s){var g=k7(s,l);n.scaleX=n.scaleY=g.scale,n.x=g.x,n.y=g.y}a.setClipPath(new We({shape:l.plain()}));var x=[];return P(t.named,function(y){_he.get(y.svgNodeTagLower)!=null&&(x.push(y),whe(y.el))}),{root:a,boundingRect:l,named:x}},r.prototype.useGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,n),n)},r.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);n&&(t.removeKey(e),this._freedGraphics.push(n))},r})();function whe(r){r.silent=!1,r.isGroup&&r.traverse(function(e){e.silent=!1})}function The(r){var e=[],t=Te();return P(r,function(n){if(n.namedFrom==null){var a=new Rle(n.name,n.el);e.push(a),t.set(n.name,a)}}),{regions:e,regionsMap:t}}var vA=[126,25],q3="南海诸岛",Tu=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(var _u=0;_u<Tu.length;_u++)for(var Rf=0;Rf<Tu[_u].length;Rf++)Tu[_u][Rf][0]/=10.5,Tu[_u][Rf][1]/=-10.5/.75,Tu[_u][Rf][0]+=vA[0],Tu[_u][Rf][1]+=vA[1];function Che(r,e){if(r==="china"){for(var t=0;t<e.length;t++)if(e[t].name===q3)return;e.push(new gF(q3,ce(Tu,function(n){return{type:"polygon",exterior:n}}),vA))}}var Ahe={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function Mhe(r,e){if(r==="china"){var t=Ahe[e.name];if(t){var n=e.getCenter();n[0]+=t[0]/10.5,n[1]+=-t[1]/(10.5/.75),e.setCenter(n)}}}var Dhe=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function Lhe(r,e){r==="china"&&e.name==="台湾"&&e.geometries.push({type:"polygon",exterior:Dhe[0]})}var Nhe="name",Rhe=(function(){function r(e,t,n){this.type="geoJSON",this._parsedMap=Te(),this._mapName=e,this._specialAreas=n,this._geoJSON=Ihe(t)}return r.prototype.load=function(e,t){t=t||Nhe;var n=this._parsedMap.get(t);if(!n){var a=this._parseToRegions(t);n=this._parsedMap.set(t,{regions:a,boundingRect:Ehe(a)})}var i=Te(),o=[];return P(n.regions,function(s){var l=s.name;e&&Se(e,l)&&(s=s.cloneShallow(l=e[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:n.boundingRect||new ke(0,0,0,0),regionsMap:i}},r.prototype._parseToRegions=function(e){var t=this._mapName,n=this._geoJSON,a;try{a=n?KC(n,e):[]}catch(i){throw new Error(`Invalid geoJson format
|
|
263
|
+
`+i.message)}return Che(t,a),P(a,function(i){var o=i.name;Mhe(t,i),Lhe(t,i);var s=this._specialAreas&&this._specialAreas[o];s&&i.transformTo(s.left,s.top,s.width,s.height)},this),a},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r})();function Ehe(r){for(var e,t=0;t<r.length;t++){var n=r[t].getBoundingRect();e=e||n.clone(),e.union(n)}return e}function Ihe(r){return ye(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var jv=Te();const Qo={registerMap:function(r,e,t){if(e.svg){var n=new She(r,e.svg);jv.set(r,n)}else{var a=e.geoJson||e.geoJSON;a&&!e.features?t=e.specialAreas:a=e;var n=new Rhe(r,a,t);jv.set(r,n)}},getGeoResource:function(r){return jv.get(r)},getMapForUser:function(r){var e=jv.get(r);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(r,e,t){var n=jv.get(r);if(n)return n.load(e,t)}};var fL=["rect","circle","line","ellipse","polygon","polyline","path"],khe=Te(fL),Ohe=Te(fL.concat(["g"])),Phe=Te(fL.concat(["g"])),O7=Ke();function l0(r){var e=r.getItemStyle(),t=r.get("areaColor");return t!=null&&(e.fill=t),e}function Z3(r){var e=r.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var P7=(function(){function r(e){var t=this.group=new De,n=this._transformGroup=new De;t.add(n),this.uid=td("ec_map_draw"),this._controller=new Ac(e.getZr()),this._controllerHost={target:n},n.add(this._regionsGroup=new De),n.add(this._svgGroup=new De)}return r.prototype.draw=function(e,t,n,a,i){var o=e.mainType==="geo",s=e.getData&&e.getData();o&&t.eachComponent({mainType:"series",subType:"map"},function(T){!s&&T.getHostGeoModel()===e&&(s=T.getData())});var l=e.coordinateSystem,u=this._regionsGroup,c=this._transformGroup,f=l.getTransformInfo(),d=f.raw,v=f.roam,g=!u.childAt(0)||i,x=e.getShallow("clip",!0),y;x?(y=l.getViewRect().clone(),this.group.setClipPath(new We({shape:y.clone()}))):this.group.removeClipPath(),g?(c.x=v.x,c.y=v.y,c.scaleX=v.scaleX,c.scaleY=v.scaleY,c.dirty()):ot(c,v,e);var b=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,S={api:n,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:b,isGeo:o,transformInfoRaw:d};l.resourceType==="geoJSON"?this._buildGeoJSON(S):l.resourceType==="geoSVG"&&this._buildSVG(S),this._updateController(e,y,t,n),this._updateMapSelectHandler(e,u,n,a)},r.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=Te(),n=Te(),a=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function c(v,g){return g&&(v=g(v)),v&&[v[0]*i.scaleX+i.x,v[1]*i.scaleY+i.y]}function f(v){for(var g=[],x=!u&&l&&l.project,y=0;y<v.length;++y){var b=c(v[y],x);b&&g.push(b)}return g}function d(v){return{shape:{points:f(v)}}}a.removeAll(),P(e.geo.regions,function(v){var g=v.name,x=t.get(g),y=n.get(g)||{},b=y.dataIdx,S=y.regionModel;if(!x){x=t.set(g,new De),a.add(x),b=s?s.indexOfName(g):null,S=e.isGeo?o.getRegionModel(g):s?s.getItemModel(b):null;var T=S.get("silent",!0);T!=null&&(x.silent=T),n.set(g,{dataIdx:b,regionModel:S})}var C=[],M=[];P(v.geometries,function(E){if(E.type==="polygon"){var R=[E.exterior].concat(E.interiors||[]);u&&(R=tz(R,u)),P(R,function(k){C.push(new Jr(d(k)))})}else{var I=E.points;u&&(I=tz(I,u,!0)),P(I,function(k){M.push(new Vr(d(k)))})}});var D=c(v.getCenter(),l&&l.project);function L(E,R){if(E.length){var I=new Bg({culling:!0,segmentIgnoreThreshold:1,shape:{paths:E}});x.add(I),$3(e,I,b,S),K3(e,I,g,S,o,b,D),R&&(Z3(I),P(I.states,Z3))}}L(C),L(M,!0)}),t.each(function(v,g){var x=n.get(g),y=x.dataIdx,b=x.regionModel;Q3(e,v,g,b,o,y),J3(e,v,g,b,o),ez(e,v,g,b,o)},this)},r.prototype._buildSVG=function(e){var t=e.geo.map,n=e.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var a=this._svgDispatcherMap=Te(),i=!1;P(this._svgGraphicRecord.named,function(o){var s=o.name,l=e.mapOrGeoModel,u=e.data,c=o.svgNodeTagLower,f=o.el,d=u?u.indexOfName(s):null,v=l.getRegionModel(s);khe.get(c)!=null&&f instanceof Ia&&$3(e,f,d,v),f instanceof Ia&&(f.culling=!0);var g=v.get("silent",!0);if(g!=null&&(f.silent=g),f.z2EmphasisLift=0,!o.namedFrom&&(Phe.get(c)!=null&&K3(e,f,s,v,l,d,null),Q3(e,f,s,v,l,d),J3(e,f,s,v,l),Ohe.get(c)!=null)){var x=ez(e,f,s,v,l);x==="self"&&(i=!0);var y=a.get(s)||a.set(s,[]);y.push(f)}},this),this._enableBlurEntireSVG(i,e)},r.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var n=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),a=n.opacity;this._svgGraphicRecord.root.traverse(function(i){if(!i.isGroup){cc(i);var o=i.ensureState("blur").style||{};o.opacity==null&&a!=null&&(o.opacity=a),i.ensureState("emphasis")}})}},r.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},r.prototype.findHighDownDispatchers=function(e,t){if(e==null)return[];var n=t.coordinateSystem;if(n.resourceType==="geoJSON"){var a=this._regionsGroupByName;if(a){var i=a.get(e);return i?[i]:[]}}else if(n.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},r.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},r.prototype._useSVG=function(e){var t=Qo.getGeoResource(e);if(t&&t.type==="geoSVG"){var n=t.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=e}},r.prototype._freeSVG=function(){var e=this._svgMapName;if(e!=null){var t=Qo.getGeoResource(e);t&&t.type==="geoSVG"&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},r.prototype._updateController=function(e,t,n,a){var i=e.coordinateSystem,o=this._controller,s=this._controllerHost;s.zoomLimit=e.get("scaleLimit"),s.zoom=i.getZoom(),o.enable(e.get("roam")||!1,{api:a,zInfo:{component:e},triggerInfo:{roamTrigger:e.get("roamTrigger"),isInSelf:function(c,f,d){return i.containPoint([f,d])},isInClip:function(c,f,d){return!t||t.contain(f,d)}}});var l=e.mainType;function u(){var c={type:"geoRoam",componentType:l};return c[l+"Id"]=e.id,c}o.off("pan").on("pan",function(c){this._mouseDownFlag=!1,lL(s,c.dx,c.dy),a.dispatchAction(ie(u(),{dx:c.dx,dy:c.dy,animation:{duration:0}}))},this),o.off("zoom").on("zoom",function(c){this._mouseDownFlag=!1,uL(s,c.scale,c.originX,c.originY),a.dispatchAction(ie(u(),{totalZoom:s.zoom,zoom:c.scale,originX:c.originX,originY:c.originY,animation:{duration:0}}))},this)},r.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var t=e.getTextContent();t&&(t.ignore=O7(t).ignore)})},r.prototype._updateMapSelectHandler=function(e,t,n,a){var i=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",function(){i._mouseDownFlag=!0}),t.on("click",function(o){i._mouseDownFlag&&(i._mouseDownFlag=!1)}))},r})();function $3(r,e,t,n){var a=n.getModel("itemStyle"),i=n.getModel(["emphasis","itemStyle"]),o=n.getModel(["blur","itemStyle"]),s=n.getModel(["select","itemStyle"]),l=l0(a),u=l0(i),c=l0(s),f=l0(o),d=r.data;if(d){var v=d.getItemVisual(t,"style"),g=d.getItemVisual(t,"decal");r.isVisualEncodedByVisualMap&&v.fill&&(l.fill=v.fill),g&&(l.decal=Ih(g,r.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=c,e.ensureState("blur").style=f,cc(e)}function K3(r,e,t,n,a,i,o){var s=r.data,l=r.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),i)),c=s&&s.getItemLayout(i);if(l||u||c&&c.showLabel){var f=l?t:i,d=void 0;(!s||i>=0)&&(d=a);var v=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Lr(e,_r(n),{labelFetcher:d,labelDataIndex:f,defaultText:t},v);var g=e.getTextContent();if(g&&(O7(g).ignore=g.ignore,e.textConfig&&o)){var x=e.getBoundingRect().clone();e.textConfig.layoutRect=x,e.textConfig.position=[(o[0]-x.x)/x.width*100+"%",(o[1]-x.y)/x.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function Q3(r,e,t,n,a,i){r.data?r.data.setItemGraphicEl(i,e):ze(e).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:t,region:n&&n.option||{}}}function J3(r,e,t,n,a){r.data||rs({el:e,componentModel:a,itemName:t,itemTooltipOption:n.get("tooltip")})}function ez(r,e,t,n,a){e.highDownSilentOnTouch=!!a.get("selectedMode");var i=n.getModel("emphasis"),o=i.get("focus");return Ft(e,o,i.get("blurScope"),i.get("disabled")),r.isGeo&&Dne(e,a,t),o}function tz(r,e,t){var n=[],a;function i(){a=[]}function o(){a.length&&(n.push(a),a=[])}var s=e({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&a.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),P(r,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!t&&s.polygonEnd(),n}var zhe=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a,i){if(!(i&&i.type==="mapToggleSelect"&&i.from===this.uid)){var o=this.group;if(o.removeAll(),!t.getHostGeoModel()){if(this._mapDraw&&i&&i.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),i&&i.type==="geoRoam"&&i.componentType==="series"&&i.seriesId===t.id){var s=this._mapDraw;s&&o.add(s.group)}else if(t.needsDrawMap){var s=this._mapDraw||new P7(a);o.add(s.group),s.draw(t,n,a,this,i),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&n.getComponent("legend")&&this._renderSymbols(t,n,a)}}},e.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(t,n,a){var i=t.originalData,o=this.group;i.each(i.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=i.getItemLayout(l);if(!(!u||!u.point)){var c=u.point,f=u.offset,d=new Ki({style:{fill:t.getData().getVisual("style").fill},shape:{cx:c[0]+f*9,cy:c[1],r:3},silent:!0,z2:8+(f?0:Zh+1)});if(!f){var v=t.mainSeries.getData(),g=i.getName(l),x=v.indexOfName(g),y=i.getItemModel(l),b=y.getModel("label"),S=v.getItemGraphicEl(x);Lr(d,_r(y),{labelFetcher:{getFormattedLabel:function(T,C){return t.getFormattedLabel(x,C)}},defaultText:g}),d.disableLabelAnimation=!0,b.get("position")||d.setTextConfig({position:"bottom"}),S.onHoverStateChange=function(T){Rx(d,T)}}o.add(d)}}})},e.type="map",e})(_t),Bhe=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.needsDrawMap=!1,t.seriesGroup=[],t.getTooltipPosition=function(n){if(n!=null){var a=this.getData().getName(n),i=this.coordinateSystem,o=i.getRegion(a);return o&&i.dataToPoint(o.getCenter())}},t}return e.prototype.getInitialData=function(t){for(var n=fd(this,{coordDimensions:["value"],encodeDefaulter:Ve(SD,this)}),a=Te(),i=[],o=0,s=n.count();o<s;o++){var l=n.getName(o);a.set(l,o)}var u=Qo.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return P(u.regions,function(c){var f=c.name,d=a.get(f),v=c.properties&&c.properties.echartsStyle,g;d==null?(g={name:f},i.push(g)):g=n.getRawDataItem(d),v&&Fe(g,v)}),n.appendData(i),n},e.prototype.getHostGeoModel=function(){if(CH(this).kind!==Ni.boxCoordSys)return this.getReferringComponents("geo",{useDefault:!1,enableAll:!1,enableNone:!1}).models[0]},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var n=this.getData();return n.get(n.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var n=this.getData();return n.getItemModel(n.indexOfName(t))},e.prototype.formatTooltip=function(t,n,a){for(var i=this.getData(),o=this.getRawValue(t),s=i.getName(t),l=this.seriesGroup,u=[],c=0;c<l.length;c++){var f=l[c].originalData.indexOfName(s),d=i.mapDimension("value");isNaN(l[c].originalData.get(d,f))||u.push(l[c].name)}return vr("section",{header:u.join(", "),noHeader:!u.length,blocks:[vr("nameValue",{name:s,value:o})]})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.getLegendIcon=function(t){var n=t.icon||"roundRect",a=lr(n,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return a.setStyle(t.itemStyle),a.style.stroke="none",n.indexOf("empty")>-1&&(a.style.stroke=a.style.fill,a.style.fill=ee.color.neutral00,a.style.lineWidth=2),a},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:ee.color.tertiary},itemStyle:{borderWidth:.5,borderColor:ee.color.border,areaColor:ee.color.background},emphasis:{label:{show:!0,color:ee.color.primary},itemStyle:{areaColor:ee.color.highlight}},select:{label:{show:!0,color:ee.color.primary},itemStyle:{color:ee.color.highlight}},nameProperty:"name"},e})(wt);function jhe(r,e){var t={};return P(r,function(n){n.each(n.mapDimension("value"),function(a,i){var o="ec-"+n.getName(i);t[o]=t[o]||[],isNaN(a)||t[o].push(a)})}),r[0].map(r[0].mapDimension("value"),function(n,a){for(var i="ec-"+r[0].getName(a),o=0,s=1/0,l=-1/0,u=t[i].length,c=0;c<u;c++)s=Math.min(s,t[i][c]),l=Math.max(l,t[i][c]),o+=t[i][c];var f;return e==="min"?f=s:e==="max"?f=l:e==="average"?f=o/u:f=o,u===0?NaN:f})}function Vhe(r){var e={};r.eachSeriesByType("map",function(t){var n=t.getHostGeoModel(),a=n?"o"+n.id:"i"+t.getMapType();(e[a]=e[a]||[]).push(t)}),P(e,function(t,n){for(var a=jhe(ce(t,function(o){return o.getData()}),t[0].get("mapValueCalculation")),i=0;i<t.length;i++)t[i].originalData=t[i].getData();for(var i=0;i<t.length;i++)t[i].seriesGroup=t,t[i].needsDrawMap=i===0&&!t[i].getHostGeoModel(),t[i].setData(a.cloneShallow()),t[i].mainSeries=t[0]})}function Ghe(r){var e={};r.eachSeriesByType("map",function(t){var n=t.getMapType();if(!(t.getHostGeoModel()||e[n])){var a={};P(t.seriesGroup,function(o){var s=o.coordinateSystem,l=o.originalData;o.get("showLegendSymbol")&&r.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,c){var f=l.getName(c),d=s.getRegion(f);if(!(!d||isNaN(u))){var v=a[f]||0,g=s.dataToPoint(d.getCenter());a[f]=v+1,l.setItemLayout(c,{point:g,offset:v})}})});var i=t.getData();i.each(function(o){var s=i.getName(o),l=i.getItemLayout(o)||{};l.showLabel=!a[s],i.setItemLayout(o,l)}),e[n]=!0}})}var rz=Kt,Mc=(function(r){K(e,r);function e(t,n){var a=r.call(this)||this;return a.type="view",a.dimensions=["x","y"],a._roamTransformable=new Oo,a._rawTransformable=new Oo,a.name=t,a._opt=n,a}return e.prototype.setBoundingRect=function(t,n,a,i){return this._rect=new ke(t,n,a,i),this._updateCenterAndZoom(),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(t,n,a,i){this._transformTo(t,n,a,i),this._viewRect=new ke(t,n,a,i)},e.prototype._transformTo=function(t,n,a,i){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new ke(t,n,a,i));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},e.prototype.setCenter=function(t){var n=this._opt;n&&n.api&&n.ecModel&&n.ecModel.getShallow("legacyViewCoordSysCenterBase")&&t&&(t=[me(t[0],n.api.getWidth()),me(t[1],n.api.getWidth())]),this._centerOption=Me(t),this._updateCenterAndZoom()},e.prototype.setZoom=function(t){this._zoom=cL(t||1,this.zoomLimit),this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var t=this.getBoundingRect(),n=t.x+t.width/2,a=t.y+t.height/2;return[n,a]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var t=this._centerOption,n=this._rect;t&&n&&(this._center=[me(t[0],n.width,n.x),me(t[1],n.height,n.y)]);var a=this._rawTransformable.getLocalTransform(),i=this._roamTransformable,o=this.getDefaultCenter(),s=this.getCenter(),l=this.getZoom();s=Kt([],s,a),o=Kt([],o,a),i.originX=s[0],i.originY=s[1],i.x=o[0]-s[0],i.y=o[1]-s[1],i.scaleX=i.scaleY=l,this._updateTransform()},e.prototype._updateTransform=function(){var t=this._roamTransformable,n=this._rawTransformable;n.parent=t,t.updateTransform(),n.updateTransform(),Ig(this.transform||(this.transform=[]),n.transform||Mr()),this._rawTransform=n.getLocalTransform(),this.invTransform=this.invTransform||[],Ea(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,n=this._roamTransformable,a=new Oo;return a.transform=n.transform,a.decomposeTransform(),{roam:{x:a.x,y:a.y,scaleX:a.scaleX,scaleY:a.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},e.prototype.dataToPoint=function(t,n,a){var i=n?this._rawTransform:this.transform;return a=a||[],i?rz(a,t,i):on(a,t)},e.prototype.pointToData=function(t,n,a){a=a||[];var i=this.invTransform;return i?rz(a,t,i):(a[0]=t[0],a[1]=t[1],a)},e.prototype.convertToPixel=function(t,n,a){var i=nz(n);return i===this?i.dataToPoint(a):null},e.prototype.convertFromPixel=function(t,n,a){var i=nz(n);return i===this?i.pointToData(a):null},e.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},e.dimensions=["x","y"],e})(Oo);function nz(r){var e=r.seriesModel;return e?e.coordinateSystem:null}var Hhe={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},z7=["lng","lat"],pA=(function(r){K(e,r);function e(t,n,a){var i=r.call(this,t,{api:a.api,ecModel:a.ecModel})||this;i.dimensions=z7,i.type="geo",i._nameCoordMap=Te(),i.map=n;var o=a.projection,s=Qo.load(n,a.nameMap,a.nameProperty),l=Qo.getGeoResource(n);i.resourceType=l?l.type:null;var u=i.regions=s.regions,c=Hhe[l.type];i._regionsMap=s.regionsMap,i.regions=s.regions,i.projection=o;var f;if(o)for(var d=0;d<u.length;d++){var v=u[d].getBoundingRect(o);f=f||v.clone(),f.union(v)}else f=s.boundingRect;return i.setBoundingRect(f.x,f.y,f.width,f.height),i.aspectScale=o?1:Ce(a.aspectScale,c.aspectScale),i._invertLongitute=o?!1:c.invertLongitute,i}return e.prototype._transformTo=function(t,n,a,i){var o=this.getBoundingRect(),s=this._invertLongitute;o=o.clone(),s&&(o.y=-o.y-o.height);var l=this._rawTransformable;l.transform=o.calculateTransform(new ke(t,n,a,i));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var n=this.regions,a=0;a<n.length;a++){var i=n[a];if(i.type==="geoJSON"&&i.contain(t))return n[a]}},e.prototype.addGeoCoord=function(t,n){this._nameCoordMap.set(t,n)},e.prototype.getGeoCoord=function(t){var n=this._regionsMap.get(t);return this._nameCoordMap.get(t)||n&&n.getCenter()},e.prototype.dataToPoint=function(t,n,a){if(ye(t)&&(t=this.getGeoCoord(t)),t){var i=this.projection;return i&&(t=i.project(t)),t&&this.projectedToPoint(t,n,a)}},e.prototype.pointToData=function(t,n,a){var i=this.projection;return i&&(t=i.unproject(t)),t&&this.pointToProjected(t,a)},e.prototype.pointToProjected=function(t,n){return r.prototype.pointToData.call(this,t,0,n)},e.prototype.projectedToPoint=function(t,n,a){return r.prototype.dataToPoint.call(this,t,n,a)},e.prototype.convertToPixel=function(t,n,a){var i=az(n);return i===this?i.dataToPoint(a):null},e.prototype.convertFromPixel=function(t,n,a){var i=az(n);return i===this?i.pointToData(a):null},e})(Mc);Qt(pA,Mc);function az(r){var e=r.geoModel,t=r.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem||(t.getReferringComponents("geo",qt).models[0]||{}).coordinateSystem:null}function iz(r,e){var t=r.get("boundingCoords");if(t!=null){var n=t[0],a=t[1];if(isFinite(n[0])&&isFinite(n[1])&&isFinite(a[0])&&isFinite(a[1])){var i=this.projection;if(i){var o=n[0],s=n[1],l=a[0],u=a[1];n=[1/0,1/0],a=[-1/0,-1/0];var c=function(M,D,L,E){for(var R=L-M,I=E-D,k=0;k<=100;k++){var z=k/100,O=i.project([M+R*z,D+I*z]);Io(n,n,O),ko(a,a,O)}};c(o,s,l,s),c(l,s,l,u),c(l,u,o,u),c(o,u,l,s)}this.setBoundingRect(n[0],n[1],a[0]-n[0],a[1]-n[1])}}var f=this.getBoundingRect(),d=r.get("layoutCenter"),v=r.get("layoutSize"),g=Sr(r,e).refContainer,x=f.width/f.height*this.aspectScale,y=!1,b,S;d&&v&&(b=[me(d[0],g.width)+g.x,me(d[1],g.height)+g.y],S=me(v,Math.min(g.width,g.height)),!isNaN(b[0])&&!isNaN(b[1])&&!isNaN(S)&&(y=!0));var T;if(y)T={},x>1?(T.width=S,T.height=S/x):(T.height=S,T.width=S*x),T.y=b[1]-T.height/2,T.x=b[0]-T.width/2;else{var C=r.getBoxLayoutParams();C.aspect=x,T=Gt(C,g),T=NH(r,T,x)}this.setViewRect(T.x,T.y,T.width,T.height),this.setCenter(r.get("center")),this.setZoom(r.get("zoom"))}function Fhe(r,e){P(e.get("geoCoord"),function(t,n){r.addGeoCoord(n,t)})}var Uhe=(function(){function r(){this.dimensions=z7}return r.prototype.create=function(e,t){var n=[];function a(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new pA(l+s,l,ie({nameMap:o.get("nameMap"),api:t,ecModel:e},a(o)));u.zoomLimit=o.get("scaleLimit"),n.push(u),o.coordinateSystem=u,u.model=o,u.resize=iz,u.resize(o,t)}),e.eachSeries(function(o){Gg({targetModel:o,coordSysType:"geo",coordSysProvider:function(){var s=o.subType==="map"?o.getHostGeoModel():o.getReferringComponents("geo",qt).models[0];return s&&s.coordinateSystem},allowNotFound:!0})});var i={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),P(i,function(o,s){var l=ce(o,function(c){return c.get("nameMap")}),u=new pA(s,s,ie({nameMap:O1(l),api:t,ecModel:e},a(o[0])));u.zoomLimit=jr.apply(null,ce(o,function(c){return c.get("scaleLimit")})),n.push(u),u.resize=iz,u.resize(o[0],t),P(o,function(c){c.coordinateSystem=u,Fhe(u,c)})}),n},r.prototype.getFilledRegions=function(e,t,n,a){for(var i=(e||[]).slice(),o=Te(),s=0;s<i.length;s++)o.set(i[s].name,i[s]);var l=Qo.load(t,n,a);return P(l.regions,function(u){var c=u.name,f=o.get(c),d=u.properties&&u.properties.echartsStyle;f||(f={name:c},i.push(f)),d&&Fe(f,d)}),i},r})(),B7=new Uhe,Yhe=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n,a){this.mergeDefaultAndTheme(t,a);var i=Qo.getGeoResource(t.map);if(i&&i.type==="geoJSON"){var o=t.itemStyle=t.itemStyle||{};"color"in o||(o.color=t.defaultItemStyleColor||ee.color.backgroundTint)}sc(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,n=this.option;n.regions=B7.getFilledRegions(n.regions,n.map,n.nameMap,n.nameProperty);var a={};this._optionModelMap=Ra(n.regions||[],function(i,o){var s=o.name;return s&&(i.set(s,new Je(o,t,t.ecModel)),o.selected&&(a[s]=!0)),i},Te()),n.selectedMap||(n.selectedMap=a)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new Je(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,n){var a=this.getRegionModel(t),i=n==="normal"?a.get(["label","formatter"]):a.get(["emphasis","label","formatter"]),o={name:t};if(Ae(i))return o.status=n,i(o);if(ye(i))return i.replace("{a}",t??"")},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.select=function(t){var n=this.option,a=n.selectedMode;if(a){a!=="multiple"&&(n.selectedMap=null);var i=n.selectedMap||(n.selectedMap={});i[t]=!0}},e.prototype.unSelect=function(t){var n=this.option.selectedMap;n&&(n[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var n=this.option.selectedMap;return!!(n&&n[t])},e.type="geo",e.layoutMode="box",e.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:ee.color.tertiary},itemStyle:{borderWidth:.5,borderColor:ee.color.border},emphasis:{label:{show:!0,color:ee.color.primary},itemStyle:{color:ee.color.highlight}},select:{label:{show:!0,color:ee.color.primary},itemStyle:{color:ee.color.highlight}},regions:[]},e})($e),Whe=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.focusBlurEnabled=!0,t}return e.prototype.init=function(t,n){this._api=n},e.prototype.render=function(t,n,a,i){if(this._model=t,!t.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new P7(a));var o=this._mapDraw;o.draw(t,n,a,this,i),o.group.on("click",this._handleRegionClick,this),o.group.silent=t.get("silent"),this.group.add(o.group),this.updateSelectStatus(t,n,a)},e.prototype._handleRegionClick=function(t){var n;Bu(t.target,function(a){return(n=ze(a).eventData)!=null},!0),n&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:n.name})},e.prototype.updateSelectStatus=function(t,n,a){var i=this;this._mapDraw.group.traverse(function(o){var s=ze(o).eventData;if(s)return i._model.isSelected(s.name)?a.enterSelect(o):a.leaveSelect(o),!0})},e.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e})(Lt);function Xhe(r,e,t){Qo.registerMap(r,e,t)}function j7(r){r.registerCoordinateSystem("geo",B7),r.registerComponentModel(Yhe),r.registerComponentView(Whe),r.registerImpl("registerMap",Xhe),r.registerImpl("getMap",function(t){return Qo.getMapForUser(t)});function e(t,n){n.update="geo:updateSelectStatus",r.registerAction(n,function(a,i){var o={},s=[];return i.eachComponent({mainType:"geo",query:a},function(l){l[t](a.name);var u=l.coordinateSystem;P(u.regions,function(f){o[f.name]=l.isSelected(f.name)||!1});var c=[];P(o,function(f,d){o[d]&&c.push(d)}),s.push({geoIndex:l.componentIndex,name:c})}),{selected:o,allSelected:s,name:a.name}})}e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),r.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(t,n,a){var i=t.componentType;i||(t.geoId!=null?i="geo":t.seriesId!=null&&(i="series")),i||(i="series"),n.eachComponent({mainType:i,query:t},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=fb(s,t,o.get("scaleLimit"));o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),i==="series"&&P(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function qhe(r){Ue(j7),r.registerChartView(zhe),r.registerSeriesModel(Bhe),r.registerLayout(Ghe),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Vhe),b8("map",r.registerAction)}function Zhe(r){var e=r;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var t=[e],n,a;n=t.pop();)if(a=n.children,n.isExpand&&a.length)for(var i=a.length,o=i-1;o>=0;o--){var s=a[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}}function $he(r,e){var t=r.isExpand?r.children:[],n=r.parentNode.children,a=r.hierNode.i?n[r.hierNode.i-1]:null;if(t.length){Qhe(r);var i=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;a?(r.hierNode.prelim=a.hierNode.prelim+e(r,a),r.hierNode.modifier=r.hierNode.prelim-i):r.hierNode.prelim=i}else a&&(r.hierNode.prelim=a.hierNode.prelim+e(r,a));r.parentNode.hierNode.defaultAncestor=Jhe(r,a,r.parentNode.hierNode.defaultAncestor||n[0],e)}function Khe(r){var e=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:e},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function oz(r){return arguments.length?r:rde}function dp(r,e){return r-=Math.PI/2,{x:e*Math.cos(r),y:e*Math.sin(r)}}function Qhe(r){for(var e=r.children,t=e.length,n=0,a=0;--t>=0;){var i=e[t];i.hierNode.prelim+=n,i.hierNode.modifier+=n,a+=i.hierNode.change,n+=i.hierNode.shift+a}}function Jhe(r,e,t,n){if(e){for(var a=r,i=r,o=i.parentNode.children[0],s=e,l=a.hierNode.modifier,u=i.hierNode.modifier,c=o.hierNode.modifier,f=s.hierNode.modifier;s=cT(s),i=fT(i),s&&i;){a=cT(a),o=fT(o),a.hierNode.ancestor=r;var d=s.hierNode.prelim+f-i.hierNode.prelim-u+n(s,i);d>0&&(tde(ede(s,r,t),r,d),u+=d,l+=d),f+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=a.hierNode.modifier,c+=o.hierNode.modifier}s&&!cT(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=f-l),i&&!fT(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-c,t=r)}return t}function cT(r){var e=r.children;return e.length&&r.isExpand?e[e.length-1]:r.hierNode.thread}function fT(r){var e=r.children;return e.length&&r.isExpand?e[0]:r.hierNode.thread}function ede(r,e,t){return r.hierNode.ancestor.parentNode===e.parentNode?r.hierNode.ancestor:t}function tde(r,e,t){var n=t/(e.hierNode.i-r.hierNode.i);e.hierNode.change-=n,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,r.hierNode.change+=n}function rde(r,e){return r.parentNode===e.parentNode?1:2}var nde=(function(){function r(){this.parentPoint=[],this.childPoints=[]}return r})(),ade=(function(r){K(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:ee.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new nde},e.prototype.buildPath=function(t,n){var a=n.childPoints,i=a.length,o=n.parentPoint,s=a[0],l=a[i-1];if(i===1){t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]);return}var u=n.orient,c=u==="TB"||u==="BT"?0:1,f=1-c,d=me(n.forkPosition,1),v=[];v[c]=o[c],v[f]=o[f]+(l[f]-o[f])*d,t.moveTo(o[0],o[1]),t.lineTo(v[0],v[1]),t.moveTo(s[0],s[1]),v[c]=s[c],t.lineTo(v[0],v[1]),v[c]=l[c],t.lineTo(v[0],v[1]),t.lineTo(l[0],l[1]);for(var g=1;g<i-1;g++){var x=a[g];t.moveTo(x[0],x[1]),v[c]=x[c],t.lineTo(v[0],v[1])}},e})(et),ide=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._mainGroup=new De,t}return e.prototype.init=function(t,n){this._controller=new Ac(n.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(t,n,a){var i=t.getData(),o=t.layoutInfo,s=this._mainGroup,l=t.get("layout");l==="radial"?(s.x=o.x+o.width/2,s.y=o.y+o.height/2):(s.x=o.x,s.y=o.y),this._updateViewCoordSys(t,a),this._updateController(t,null,n,a);var u=this._data;i.diff(u).add(function(c){sz(i,c)&&lz(i,c,null,s,t)}).update(function(c,f){var d=u.getItemGraphicEl(f);if(!sz(i,c)){d&&cz(u,f,d,s,t);return}lz(i,c,d,s,t)}).remove(function(c){var f=u.getItemGraphicEl(c);f&&cz(u,c,f,s,t)}).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),t.get("expandAndCollapse")===!0&&i.eachItemGraphicEl(function(c,f){c.off("click").on("click",function(){a.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:f})})}),this._data=i},e.prototype._updateViewCoordSys=function(t,n){var a=t.getData(),i=[];a.each(function(f){var d=a.getItemLayout(f);d&&!isNaN(d.x)&&!isNaN(d.y)&&i.push([+d.x,+d.y])});var o=[],s=[];W1(i,o,s);var l=this._min,u=this._max;s[0]-o[0]===0&&(o[0]=l?l[0]:o[0]-1,s[0]=u?u[0]:s[0]+1),s[1]-o[1]===0&&(o[1]=l?l[1]:o[1]-1,s[1]=u?u[1]:s[1]+1);var c=t.coordinateSystem=new Mc(null,{api:n,ecModel:t.ecModel});c.zoomLimit=t.get("scaleLimit"),c.setBoundingRect(o[0],o[1],s[0]-o[0],s[1]-o[1]),c.setCenter(t.get("center")),c.setZoom(t.get("zoom")),this.group.attr({x:c.x,y:c.y,scaleX:c.scaleX,scaleY:c.scaleY}),this._min=o,this._max=s},e.prototype._updateController=function(t,n,a,i){var o=this;N7(t,i,this.group,this._controller,this._controllerHost,n),this._controller.on("zoom",function(s){o._updateNodeAndLinkScale(t)})},e.prototype._updateNodeAndLinkScale=function(t){var n=t.getData(),a=this._getNodeGlobalScale(t);n.eachItemGraphicEl(function(i,o){i.setSymbolScale(a)})},e.prototype._getNodeGlobalScale=function(t){var n=t.coordinateSystem;if(n.type!=="view")return 1;var a=this._nodeScaleRatio,i=n.scaleX||1,o=n.getZoom(),s=(o-1)*a+1;return s/i},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type="tree",e})(_t);function sz(r,e){var t=r.getItemLayout(e);return t&&!isNaN(t.x)&&!isNaN(t.y)}function lz(r,e,t,n,a){var i=!t,o=r.tree.getNodeByDataIndex(e),s=o.getModel(),l=o.getVisual("style").fill,u=o.isExpand===!1&&o.children.length!==0?l:ee.color.neutral00,c=r.tree.root,f=o.parentNode===c?o:o.parentNode||o,d=r.getItemGraphicEl(f.dataIndex),v=f.getLayout(),g=d?{x:d.__oldX,y:d.__oldY,rawX:d.__radialOldRawX,rawY:d.__radialOldRawY}:v,x=o.getLayout();i?(t=new Ug(r,e,null,{symbolInnerColor:u,useNameLabel:!0}),t.x=g.x,t.y=g.y):t.updateData(r,e,null,{symbolInnerColor:u,useNameLabel:!0}),t.__radialOldRawX=t.__radialRawX,t.__radialOldRawY=t.__radialRawY,t.__radialRawX=x.rawX,t.__radialRawY=x.rawY,n.add(t),r.setItemGraphicEl(e,t),t.__oldX=t.x,t.__oldY=t.y,ot(t,{x:x.x,y:x.y},a);var y=t.getSymbolPath();if(a.get("layout")==="radial"){var b=c.children[0],S=b.getLayout(),T=b.children.length,C=void 0,M=void 0;if(x.x===S.x&&o.isExpand===!0&&b.children.length){var D={x:(b.children[0].getLayout().x+b.children[T-1].getLayout().x)/2,y:(b.children[0].getLayout().y+b.children[T-1].getLayout().y)/2};C=Math.atan2(D.y-S.y,D.x-S.x),C<0&&(C=Math.PI*2+C),M=D.x<S.x,M&&(C=C-Math.PI)}else C=Math.atan2(x.y-S.y,x.x-S.x),C<0&&(C=Math.PI*2+C),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(M=x.x<S.x,M&&(C=C-Math.PI)):(M=x.x>S.x,M||(C=C-Math.PI));var L=M?"left":"right",E=s.getModel("label"),R=E.get("rotate"),I=R*(Math.PI/180),k=y.getTextContent();k&&(y.setTextConfig({position:E.get("position")||L,rotation:R==null?-C:I,origin:"center"}),k.setStyle("verticalAlign","middle"))}var z=s.get(["emphasis","focus"]),O=z==="relative"?Ch(o.getAncestorsIndices(),o.getDescendantIndices()):z==="ancestor"?o.getAncestorsIndices():z==="descendant"?o.getDescendantIndices():null;O&&(ze(t).focus=O),ode(a,o,c,t,g,v,x,n),t.__edge&&(t.onHoverStateChange=function(G){if(G!=="blur"){var F=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);F&&F.hoverState===Og||Rx(t.__edge,G)}})}function ode(r,e,t,n,a,i,o,s){var l=e.getModel(),u=r.get("edgeShape"),c=r.get("layout"),f=r.getOrient(),d=r.get(["lineStyle","curveness"]),v=r.get("edgeForkPosition"),g=l.getModel("lineStyle").getLineStyle(),x=n.__edge;if(u==="curve")e.parentNode&&e.parentNode!==t&&(x||(x=n.__edge=new Kh({shape:gA(c,f,d,a,a)})),ot(x,{shape:gA(c,f,d,i,o)},r));else if(u==="polyline"&&c==="orthogonal"&&e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var y=e.children,b=[],S=0;S<y.length;S++){var T=y[S].getLayout();b.push([T.x,T.y])}x||(x=n.__edge=new ade({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:f,forkPosition:v}})),ot(x,{shape:{parentPoint:[o.x,o.y],childPoints:b}},r)}x&&!(u==="polyline"&&!e.isExpand)&&(x.useStyle(Ne({strokeNoScale:!0,fill:null},g)),br(x,l,"lineStyle"),cc(x),s.add(x))}function uz(r,e,t,n,a){var i=e.tree.root,o=V7(i,r),s=o.source,l=o.sourceLayout,u=e.getItemGraphicEl(r.dataIndex);if(u){var c=e.getItemGraphicEl(s.dataIndex),f=c.__edge,d=u.__edge||(s.isExpand===!1||s.children.length===1?f:void 0),v=n.get("edgeShape"),g=n.get("layout"),x=n.get("orient"),y=n.get(["lineStyle","curveness"]);d&&(v==="curve"?xl(d,{shape:gA(g,x,y,l,l),style:{opacity:0}},n,{cb:function(){t.remove(d)},removeOpt:a}):v==="polyline"&&n.get("layout")==="orthogonal"&&xl(d,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},n,{cb:function(){t.remove(d)},removeOpt:a}))}}function V7(r,e){for(var t=e.parentNode===r?e:e.parentNode||e,n;n=t.getLayout(),n==null;)t=t.parentNode===r?t:t.parentNode||t;return{source:t,sourceLayout:n}}function cz(r,e,t,n,a){var i=r.tree.getNodeByDataIndex(e),o=r.tree.root,s=V7(o,i).sourceLayout,l={duration:a.get("animationDurationUpdate"),easing:a.get("animationEasingUpdate")};xl(t,{x:s.x+1,y:s.y+1},a,{cb:function(){n.remove(t),r.setItemGraphicEl(e,null)},removeOpt:l}),t.fadeOut(null,r.hostModel,{fadeLabel:!0,animation:l}),i.children.forEach(function(u){uz(u,r,n,a,l)}),uz(i,r,n,a,l)}function gA(r,e,t,n,a){var i,o,s,l,u,c,f,d;if(r==="radial"){u=n.rawX,f=n.rawY,c=a.rawX,d=a.rawY;var v=dp(u,f),g=dp(u,f+(d-f)*t),x=dp(c,d+(f-d)*t),y=dp(c,d);return{x1:v.x||0,y1:v.y||0,x2:y.x||0,y2:y.y||0,cpx1:g.x||0,cpy1:g.y||0,cpx2:x.x||0,cpy2:x.y||0}}else u=n.x,f=n.y,c=a.x,d=a.y,(e==="LR"||e==="RL")&&(i=u+(c-u)*t,o=f,s=c+(u-c)*t,l=d),(e==="TB"||e==="BT")&&(i=u,o=f+(d-f)*t,s=c,l=d+(f-d)*t);return{x1:u,y1:f,x2:c,y2:d,cpx1:i,cpy1:o,cpx2:s,cpy2:l}}var Na=Ke();function G7(r){var e=r.mainData,t=r.datas;t||(t={main:e},r.datasAttr={main:"data"}),r.datas=r.mainData=null,H7(e,t,r),P(t,function(n){P(e.TRANSFERABLE_METHODS,function(a){n.wrapMethod(a,Ve(sde,r))})}),e.wrapMethod("cloneShallow",Ve(ude,r)),P(e.CHANGABLE_METHODS,function(n){e.wrapMethod(n,Ve(lde,r))}),Kr(t[e.dataType]===e)}function sde(r,e){if(hde(this)){var t=ie({},Na(this).datas);t[this.dataType]=e,H7(e,t,r)}else hL(e,this.dataType,Na(this).mainData,r);return e}function lde(r,e){return r.struct&&r.struct.update(),e}function ude(r,e){return P(Na(e).datas,function(t,n){t!==e&&hL(t.cloneShallow(),n,e,r)}),e}function cde(r){var e=Na(this).mainData;return r==null||e==null?e:Na(e).datas[r]}function fde(){var r=Na(this).mainData;return r==null?[{data:r}]:ce(nt(Na(r).datas),function(e){return{type:e,data:Na(r).datas[e]}})}function hde(r){return Na(r).mainData===r}function H7(r,e,t){Na(r).datas={},P(e,function(n,a){hL(n,a,r,t)})}function hL(r,e,t,n){Na(t).datas[e]=r,Na(r).mainData=t,r.dataType=e,n.struct&&(r[n.structAttr]=n.struct,n.struct[n.datasAttr[e]]=r),r.getLinkedData=cde,r.getLinkedDataAll=fde}var dde=(function(){function r(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=t}return r.prototype.isRemoved=function(){return this.dataIndex<0},r.prototype.eachNode=function(e,t,n){Ae(e)&&(n=t,t=e,e=null),e=e||{},ye(e)&&(e={order:e});var a=e.order||"preorder",i=this[e.attr||"children"],o;a==="preorder"&&(o=t.call(n,this));for(var s=0;!o&&s<i.length;s++)i[s].eachNode(e,t,n);a==="postorder"&&t.call(n,this)},r.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var n=0;n<this.children.length;n++){var a=this.children[n];a.updateDepthAndHeight(e+1),a.height>t&&(t=a.height)}this.height=t+1},r.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,a=n.length;t<a;t++){var i=n[t].getNodeById(e);if(i)return i}},r.prototype.contains=function(e){if(e===this)return!0;for(var t=0,n=this.children,a=n.length;t<a;t++){var i=n[t].contains(e);if(i)return i}},r.prototype.getAncestors=function(e){for(var t=[],n=e?this:this.parentNode;n;)t.push(n),n=n.parentNode;return t.reverse(),t},r.prototype.getAncestorsIndices=function(){for(var e=[],t=this;t;)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},r.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(t){e.push(t.dataIndex)}),e},r.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||"value"),this.dataIndex)},r.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},r.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t<e.length;++t)if(e[t]===this)return t;return-1}return-1},r.prototype.isAncestorOf=function(e){for(var t=e.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},r.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},r})(),dL=(function(){function r(e){this.type="tree",this._nodes=[],this.hostModel=e}return r.prototype.eachNode=function(e,t,n){this.root.eachNode(e,t,n)},r.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},r.prototype.getNodeById=function(e){return this.root.getNodeById(e)},r.prototype.update=function(){for(var e=this.data,t=this._nodes,n=0,a=t.length;n<a;n++)t[n].dataIndex=-1;for(var n=0,a=e.count();n<a;n++)t[e.getRawIndex(n)].dataIndex=n},r.prototype.clearLayouts=function(){this.data.clearItemLayouts()},r.createTree=function(e,t,n){var a=new r(t),i=[],o=1;s(e);function s(c,f){var d=c.value;o=Math.max(o,ue(d)?d.length:1),i.push(c);var v=new dde(yr(c.name,""),a);f?vde(v,f):a.root=v,a._nodes.push(v);var g=c.children;if(g)for(var x=0;x<g.length;x++)s(g[x],v)}a.root.updateDepthAndHeight(0);var l=sd(i,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new cn(l,t);return u.initData(i),n&&n(u),G7({mainData:u,struct:a,structAttr:"tree"}),a.update(),a},r})();function vde(r,e){var t=e.children;r.parentNode!==e&&(t.push(r),r.parentNode=e)}function hg(r,e,t){if(r&&Ge(e,r.type)>=0){var n=t.getData().tree.root,a=r.targetNode;if(ye(a)&&(a=n.getNodeById(a)),a&&n.contains(a))return{node:a};var i=r.targetNodeId;if(i!=null&&(a=n.getNodeById(i)))return{node:a}}}function F7(r){for(var e=[];r;)r=r.parentNode,r&&e.push(r);return e.reverse()}function vL(r,e){var t=F7(r);return Ge(t,e)>=0}function db(r,e){for(var t=[];r;){var n=r.dataIndex;t.push({name:r.name,dataIndex:n,value:e.getRawValue(n)}),r=r.parentNode}return t.reverse(),t}var pde=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var n={name:t.name,children:t.data},a=t.leaves||{},i=new Je(a,this,this.ecModel),o=dL.createTree(n,this,s);function s(f){f.wrapMethod("getItemModel",function(d,v){var g=o.getNodeByDataIndex(v);return g&&g.children.length&&g.isExpand||(d.parentModel=i),d})}var l=0;o.eachNode("preorder",function(f){f.depth>l&&(l=f.depth)});var u=t.expandAndCollapse,c=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode("preorder",function(f){var d=f.hostTree.data.getRawDataItem(f.dataIndex);f.isExpand=d&&d.collapsed!=null?!d.collapsed:f.depth<=c}),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,n,a){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return vr("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(t){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=db(a,this),n.collapsed=!a.isExpand,n},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystemUsage:"box",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,roamTrigger:"global",nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:ee.color.borderTint,width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e})(wt);function gde(r,e,t){for(var n=[r],a=[],i;i=n.pop();)if(a.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s<o.length;s++)n.push(o[s])}for(;i=a.pop();)e(i,t)}function Vv(r,e){for(var t=[r],n;n=t.pop();)if(e(n),n.isExpand){var a=n.children;if(a.length)for(var i=a.length-1;i>=0;i--)t.push(a[i])}}function mde(r,e){r.eachSeriesByType("tree",function(t){yde(t,e)})}function yde(r,e){var t=Sr(r,e).refContainer,n=Gt(r.getBoxLayoutParams(),t);r.layoutInfo=n;var a=r.get("layout"),i=0,o=0,s=null;a==="radial"?(i=2*Math.PI,o=Math.min(n.height,n.width)/2,s=oz(function(C,M){return(C.parentNode===M.parentNode?1:2)/C.depth})):(i=n.width,o=n.height,s=oz());var l=r.getData().tree.root,u=l.children[0];if(u){Zhe(l),gde(u,$he,s),l.hierNode.modifier=-u.hierNode.prelim,Vv(u,Khe);var c=u,f=u,d=u;Vv(u,function(C){var M=C.getLayout().x;M<c.getLayout().x&&(c=C),M>f.getLayout().x&&(f=C),C.depth>d.depth&&(d=C)});var v=c===f?1:s(c,f)/2,g=v-c.getLayout().x,x=0,y=0,b=0,S=0;if(a==="radial")x=i/(f.getLayout().x+v+g),y=o/(d.depth-1||1),Vv(u,function(C){b=(C.getLayout().x+g)*x,S=(C.depth-1)*y;var M=dp(b,S);C.setLayout({x:M.x,y:M.y,rawX:b,rawY:S},!0)});else{var T=r.getOrient();T==="RL"||T==="LR"?(y=o/(f.getLayout().x+v+g),x=i/(d.depth-1||1),Vv(u,function(C){S=(C.getLayout().x+g)*y,b=T==="LR"?(C.depth-1)*x:i-(C.depth-1)*x,C.setLayout({x:b,y:S},!0)})):(T==="TB"||T==="BT")&&(x=i/(f.getLayout().x+v+g),y=o/(d.depth-1||1),Vv(u,function(C){b=(C.getLayout().x+g)*x,S=T==="TB"?(C.depth-1)*y:o-(C.depth-1)*y,C.setLayout({x:b,y:S},!0)}))}}}function xde(r){r.eachSeriesByType("tree",function(e){var t=e.getData(),n=t.tree;n.eachNode(function(a){var i=a.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(a.dataIndex,"style");ie(s,o)})})}function bde(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(n){var a=e.dataIndex,i=n.getData().tree,o=i.getNodeByDataIndex(a);o.isExpand=!o.isExpand})}),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t,n){t.eachComponent({mainType:"series",subType:"tree",query:e},function(a){var i=a.coordinateSystem,o=fb(i,e,a.get("scaleLimit"));a.setCenter(o.center),a.setZoom(o.zoom)})})}function _de(r){r.registerChartView(ide),r.registerSeriesModel(pde),r.registerLayout(mde),r.registerVisual(xde),bde(r)}var fz=["treemapZoomToNode","treemapRender","treemapMove"];function Sde(r){for(var e=0;e<fz.length;e++)r.registerAction({type:fz[e],update:"updateView"},$t);r.registerAction({type:"treemapRootToNode",update:"updateView"},function(t,n){n.eachComponent({mainType:"series",subType:"treemap",query:t},a);function a(i,o){var s=["treemapZoomToNode","treemapRootToNode"],l=hg(t,s,i);if(l){var u=i.getViewRoot();u&&(t.direction=vL(u,l.node)?"rollUp":"drillDown"),i.resetViewRoot(l.node)}}})}function U7(r){var e=r.getData(),t=e.tree,n={};t.eachNode(function(a){for(var i=a;i&&i.depth>1;)i=i.parentNode;var o=IC(r.ecModel,i.name||i.dataIndex+"",n);a.setVisual("decal",o)})}var wde=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,n){var a={name:t.name,children:t.data};Y7(a);var i=t.levels||[],o=this.designatedVisualItemStyle={},s=new Je({itemStyle:o},this,n);i=t.levels=Tde(i,n);var l=ce(i||[],function(f){return new Je(f,s,n)},this),u=dL.createTree(a,this,c);function c(f){f.wrapMethod("getItemModel",function(d,v){var g=u.getNodeByDataIndex(v),x=g?l[g.depth]:null;return d.parentModel=x||s,d})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,n,a){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return vr("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(t){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=db(a,this),n.treePathInfo=n.treeAncestors,n},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},ie(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var n=this._idIndexMap;n||(n=this._idIndexMap=Te(),this._idIndexMapCount=0);var a=n.get(t);return a==null&&n.set(t,a=this._idIndexMapCount++),a},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var n=this.getRawData().tree.root;(!t||t!==n&&!n.contains(t))&&(this._viewRoot=n)},e.prototype.enableAriaDecal=function(){U7(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,coordinateSystemUsage:"box",left:ee.size.l,top:ee.size.xxxl,right:ee.size.l,bottom:ee.size.xxxl,sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:{max:5,min:.2},roam:!0,roamTrigger:"global",nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",bottom:ee.size.m,emptyItemWidth:25,itemStyle:{color:ee.color.backgroundShade,textStyle:{color:ee.color.secondary}},emphasis:{itemStyle:{color:ee.color.background}}},label:{show:!0,distance:0,padding:5,position:"inside",color:ee.color.neutral00,overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:ee.color.neutral00,borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e})(wt);function Y7(r){var e=0;P(r.children,function(n){Y7(n);var a=n.value;ue(a)&&(a=a[0]),e+=a});var t=r.value;ue(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),ue(r.value)?r.value[0]=t:r.value=t}function Tde(r,e){var t=Dt(e.get("color")),n=Dt(e.get(["aria","decal","decals"]));if(t){r=r||[];var a,i;P(r,function(s){var l=new Je(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(a=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(i=!0)});var o=r[0]||(r[0]={});return a||(o.color=t.slice()),!i&&n&&(o.decal=n.slice()),r}}var Cde=8,hz=8,hT=5,Ade=(function(){function r(e){this.group=new De,e.add(this.group)}return r.prototype.render=function(e,t,n,a){var i=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!n)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),f=Sr(e,t).refContainer,d={left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},v={emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]},g=Gt(d,f);this._prepare(n,v,u),this._renderContent(e,v,g,s,l,u,c,a),eb(o,d,f)}},r.prototype._prepare=function(e,t,n){for(var a=e;a;a=a.parentNode){var i=yr(a.getModel().get("name"),""),o=n.getTextRect(i),s=Math.max(o.width+Cde*2,t.emptyItemWidth);t.totalWidth+=s+hz,t.renderList.push({node:a,text:i,width:s})}},r.prototype._renderContent=function(e,t,n,a,i,o,s,l){for(var u=0,c=t.emptyItemWidth,f=e.get(["breadcrumb","height"]),d=t.totalWidth,v=t.renderList,g=i.getModel("itemStyle").getItemStyle(),x=v.length-1;x>=0;x--){var y=v[x],b=y.node,S=y.width,T=y.text;d>n.width&&(d-=S-c,S=c,T=null);var C=new Jr({shape:{points:Mde(u,0,S,f,x===v.length-1,x===0)},style:Ne(a.getItemStyle(),{lineJoin:"bevel"}),textContent:new at({style:Mt(o,{text:T})}),textConfig:{position:"inside"},z2:Zh*1e4,onclick:Ve(l,b)});C.disableLabelAnimation=!0,C.getTextContent().ensureState("emphasis").style=Mt(s,{text:T}),C.ensureState("emphasis").style=g,Ft(C,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(C),Dde(C,e,b),u+=S+hz}},r.prototype.remove=function(){this.group.removeAll()},r})();function Mde(r,e,t,n,a,i){var o=[[a?r:r-hT,e],[r+t,e],[r+t,e+n],[a?r:r-hT,e+n]];return!i&&o.splice(2,0,[r+t+hT,e+n/2]),!a&&o.push([r,e+n/2]),o}function Dde(r,e,t){ze(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&db(t,e)}}var Lde=(function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(e,t,n,a,i){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:a,easing:i}),!0)},r.prototype.finished=function(e){return this._finishedCallback=e,this},r.prototype.start=function(){for(var e=this,t=this._storage.length,n=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},a=0,i=this._storage.length;a<i;a++){var o=this._storage[a];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},r})();function Nde(){return new Lde}var mA=De,dz=We,vz=3,pz="label",gz="upperLabel",Rde=Zh*10,Ede=Zh*2,Ide=Zh*3,Cu=uc([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),mz=function(r){var e=Cu(r);return e.stroke=e.fill=e.lineWidth=null,e},i1=Ke(),kde=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._state="ready",t._storage=Gv(),t}return e.prototype.render=function(t,n,a,i){var o=n.findComponents({mainType:"series",subType:"treemap",query:i});if(!(Ge(o,t)<0)){this.seriesModel=t,this.api=a,this.ecModel=n;var s=["treemapZoomToNode","treemapRootToNode"],l=hg(i,s,t),u=i&&i.type,c=t.layoutInfo,f=!this._oldTree,d=this._storage,v=u==="treemapRootToNode"&&l&&d?{rootNodeGroup:d.nodeGroup[l.node.getRawIndex()],direction:i.direction}:null,g=this._giveContainerGroup(c),x=t.get("animation"),y=this._doRender(g,t,v);x&&!f&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(g,y,t,v):y.renderFinally(),this._resetController(a),this._renderBreadcrumb(t,a,l)}},e.prototype._giveContainerGroup=function(t){var n=this._containerGroup;return n||(n=this._containerGroup=new mA,this._initEvents(n),this.group.add(n)),n.x=t.x,n.y=t.y,n},e.prototype._doRender=function(t,n,a){var i=n.getData().tree,o=this._oldTree,s=Gv(),l=Gv(),u=this._storage,c=[];function f(S,T,C,M){return Ode(n,l,u,a,s,c,S,T,C,M)}x(i.root?[i.root]:[],o&&o.root?[o.root]:[],t,i===o||!o,0);var d=y(u);if(this._oldTree=i,this._storage=l,this._controllerHost){var v=this.seriesModel.layoutInfo,g=i.root.getLayout();g.width===v.width&&g.height===v.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:s,willDeleteEls:d,renderFinally:b};function x(S,T,C,M,D){M?(T=S,P(S,function(R,I){!R.isRemoved()&&E(I,I)})):new Zo(T,S,L,L).add(E).update(E).remove(Ve(E,null)).execute();function L(R){return R.getId()}function E(R,I){var k=R!=null?S[R]:null,z=I!=null?T[I]:null,O=f(k,z,C,D);O&&x(k&&k.viewChildren||[],z&&z.viewChildren||[],O,M,D+1)}}function y(S){var T=Gv();return S&&P(S,function(C,M){var D=T[M];P(C,function(L){L&&(D.push(L),i1(L).willDelete=!0)})}),T}function b(){P(d,function(S){P(S,function(T){T.parent&&T.parent.remove(T)})}),P(c,function(S){S.invisible=!0,S.dirty()})}},e.prototype._doAnimation=function(t,n,a,i){var o=a.get("animationDurationUpdate"),s=a.get("animationEasing"),l=(Ae(o)?0:o)||0,u=(Ae(s)?null:s)||"cubicOut",c=Nde();P(n.willDeleteEls,function(f,d){P(f,function(v,g){if(!v.invisible){var x=v.parent,y,b=i1(x);if(i&&i.direction==="drillDown")y=x===i.rootNodeGroup?{shape:{x:0,y:0,width:b.nodeWidth,height:b.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var S=0,T=0;b.willDelete||(S=b.nodeWidth/2,T=b.nodeHeight/2),y=d==="nodeGroup"?{x:S,y:T,style:{opacity:0}}:{shape:{x:S,y:T,width:0,height:0},style:{opacity:0}}}y&&c.add(v,y,l,0,u)}})}),P(this._storage,function(f,d){P(f,function(v,g){var x=n.lastsForAnimation[d][g],y={};x&&(v instanceof De?x.oldX!=null&&(y.x=v.x,y.y=v.y,v.x=x.oldX,v.y=x.oldY):(x.oldShape&&(y.shape=ie({},v.shape),v.setShape(x.oldShape)),x.fadein?(v.setStyle("opacity",0),y.style={opacity:1}):v.style.opacity!==1&&(y.style={opacity:1})),c.add(v,y,l,0,u))})},this),this._state="animating",c.finished(xe(function(){this._state="ready",n.renderFinally()},this)).start()},e.prototype._resetController=function(t){var n=this,a=this._controller,i=this._controllerHost;i||(this._controllerHost={target:this.group},i=this._controllerHost);var o=this.seriesModel;a||(a=this._controller=new Ac(t.getZr()),a.on("pan",xe(this._onPan,this)),a.on("zoom",xe(this._onZoom,this))),a.enable(o.get("roam"),{api:t,zInfo:{component:o},triggerInfo:{roamTrigger:o.get("roamTrigger"),isInSelf:function(s,l,u){var c=n._containerGroup;return c?c.getBoundingRect().contain(l-c.x,u-c.y):!1}}}),i.zoomLimit=o.get("scaleLimit"),i.zoom=o.get("zoom")},e.prototype._clearController=function(){var t=this._controller;this._controllerHost=null,t&&(t.dispose(),t=null)},e.prototype._onPan=function(t){if(this._state!=="animating"&&(Math.abs(t.dx)>vz||Math.abs(t.dy)>vz)){var n=this.seriesModel.getData().tree.root;if(!n)return;var a=n.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+t.dx,y:a.y+t.dy,width:a.width,height:a.height}})}},e.prototype._onZoom=function(t){var n=t.originX,a=t.originY,i=t.scale;if(this._state!=="animating"){var o=this.seriesModel.getData().tree.root;if(!o)return;var s=o.getLayout();if(!s)return;var l=new ke(s.x,s.y,s.width,s.height),u=null,c=this._controllerHost;u=c.zoomLimit;var f=c.zoom=c.zoom||1;if(f*=i,u){var d=u.min||0,v=u.max||1/0;f=Math.max(Math.min(v,f),d)}var g=f/c.zoom;c.zoom=f;var x=this.seriesModel.layoutInfo;n-=x.x,a-=x.y;var y=Mr();ni(y,y,[-n,-a]),B1(y,y,[g,g]),ni(y,y,[n,a]),l.applyTransform(y),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:l.x,y:l.y,width:l.width,height:l.height}})}},e.prototype._initEvents=function(t){var n=this;t.on("click",function(a){if(n._state==="ready"){var i=n.seriesModel.get("nodeClick",!0);if(i){var o=n.findTarget(a.offsetX,a.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)n._rootToNode(o);else if(i==="zoomToNode")n._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&Ox(u,c)}}}}},this)},e.prototype._renderBreadcrumb=function(t,n,a){var i=this;a||(a=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),a||(a={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new Ade(this.group))).render(t,n,a.node,function(o){i._state!=="animating"&&(vL(t.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Gv(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,n){var a,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(t,n),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)a={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),a},e.type="treemap",e})(_t);function Gv(){return{nodeGroup:[],background:[],content:[]}}function Ode(r,e,t,n,a,i,o,s,l,u){if(!o)return;var c=o.getLayout(),f=r.getData(),d=o.getModel();if(f.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var v=c.width,g=c.height,x=c.borderWidth,y=c.invisible,b=o.getRawIndex(),S=s&&s.getRawIndex(),T=o.viewChildren,C=c.upperHeight,M=T&&T.length,D=d.getModel("itemStyle"),L=d.getModel(["emphasis","itemStyle"]),E=d.getModel(["blur","itemStyle"]),R=d.getModel(["select","itemStyle"]),I=D.get("borderRadius")||0,k=ge("nodeGroup",mA);if(!k)return;if(l.add(k),k.x=c.x||0,k.y=c.y||0,k.markRedraw(),i1(k).nodeWidth=v,i1(k).nodeHeight=g,c.isAboveViewRoot)return k;var z=ge("background",dz,u,Ede);z&&V(k,z,M&&c.upperLabelHeight);var O=d.getModel("emphasis"),G=O.get("focus"),F=O.get("blurScope"),B=O.get("disabled"),Y=G==="ancestor"?o.getAncestorsIndices():G==="descendant"?o.getDescendantIndices():G;if(M)Kp(k)&&Pu(k,!1),z&&(Pu(z,!B),f.setItemGraphicEl(o.dataIndex,z),SC(z,Y,F));else{var H=ge("content",dz,u,Ide);H&&W(k,H),z.disableMorphing=!0,z&&Kp(z)&&Pu(z,!1),Pu(k,!B),f.setItemGraphicEl(o.dataIndex,k);var X=d.getShallow("cursor");X&&H.attr("cursor",X),SC(k,Y,F)}return k;function V(ve,be,Oe){var _e=ze(be);if(_e.dataIndex=o.dataIndex,_e.seriesIndex=r.seriesIndex,be.setShape({x:0,y:0,width:v,height:g,r:I}),y)$(be);else{be.invisible=!1;var Le=o.getVisual("style"),st=Le.stroke,Qe=mz(D);Qe.fill=st;var ct=Cu(L);ct.fill=L.get("borderColor");var xt=Cu(E);xt.fill=E.get("borderColor");var Tt=Cu(R);if(Tt.fill=R.get("borderColor"),Oe){var Hr=v-2*x;te(be,st,Le.opacity,{x,y:0,width:Hr,height:C})}else be.removeTextContent();be.setStyle(Qe),be.ensureState("emphasis").style=ct,be.ensureState("blur").style=xt,be.ensureState("select").style=Tt,cc(be)}ve.add(be)}function W(ve,be){var Oe=ze(be);Oe.dataIndex=o.dataIndex,Oe.seriesIndex=r.seriesIndex;var _e=Math.max(v-2*x,0),Le=Math.max(g-2*x,0);if(be.culling=!0,be.setShape({x,y:x,width:_e,height:Le,r:I}),y)$(be);else{be.invisible=!1;var st=o.getVisual("style"),Qe=st.fill,ct=mz(D);ct.fill=Qe,ct.decal=st.decal;var xt=Cu(L),Tt=Cu(E),Hr=Cu(R);te(be,Qe,st.opacity,null),be.setStyle(ct),be.ensureState("emphasis").style=xt,be.ensureState("blur").style=Tt,be.ensureState("select").style=Hr,cc(be)}ve.add(be)}function $(ve){!ve.invisible&&i.push(ve)}function te(ve,be,Oe,_e){var Le=d.getModel(_e?gz:pz),st=yr(d.get("name"),null),Qe=Le.getShallow("show");Lr(ve,_r(d,_e?gz:pz),{defaultText:Qe?st:null,inheritColor:be,defaultOpacity:Oe,labelFetcher:r,labelDataIndex:o.dataIndex});var ct=ve.getTextContent();if(ct){var xt=ct.style,Tt=Ng(xt.padding||0);_e&&(ve.setTextConfig({layoutRect:_e}),ct.disableLabelLayout=!0),ct.beforeUpdate=function(){var Jt=Math.max((_e?_e.width:ve.shape.width)-Tt[1]-Tt[3],0),li=Math.max((_e?_e.height:ve.shape.height)-Tt[0]-Tt[2],0);(xt.width!==Jt||xt.height!==li)&&ct.setStyle({width:Jt,height:li})},xt.truncateMinChar=2,xt.lineOverflow="truncate",le(xt,_e,c);var Hr=ct.getState("emphasis");le(Hr?Hr.style:null,_e,c)}}function le(ve,be,Oe){var _e=ve?ve.text:null;if(!be&&Oe.isLeafRoot&&_e!=null){var Le=r.get("drillDownIcon",!0);ve.text=Le?Le+" "+_e:_e}}function ge(ve,be,Oe,_e){var Le=S!=null&&t[ve][S],st=a[ve];return Le?(t[ve][S]=null,we(st,Le)):y||(Le=new be,Le instanceof Ia&&(Le.z2=Pde(Oe,_e)),de(st,Le)),e[ve][b]=Le}function we(ve,be){var Oe=ve[b]={};be instanceof mA?(Oe.oldX=be.x,Oe.oldY=be.y):Oe.oldShape=ie({},be.shape)}function de(ve,be){var Oe=ve[b]={},_e=o.parentNode,Le=be instanceof De;if(_e&&(!n||n.direction==="drillDown")){var st=0,Qe=0,ct=a.background[_e.getRawIndex()];!n&&ct&&ct.oldShape&&(st=ct.oldShape.width,Qe=ct.oldShape.height),Le?(Oe.oldX=0,Oe.oldY=Qe):Oe.oldShape={x:st,y:Qe,width:0,height:0}}Oe.fadein=!Le}}function Pde(r,e){return r*Rde+e}var dg=P,zde=Re,o1=-1,Dr=(function(){function r(e){var t=e.mappingMethod,n=e.type,a=this.option=Me(e);this.type=n,this.mappingMethod=t,this._normalizeData=Vde[t];var i=r.visualHandlers[n];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[t],t==="piecewise"?(dT(a),Bde(a)):t==="category"?a.categories?jde(a):dT(a,!0):(Kr(t!=="linear"||a.dataExtent),dT(a))}return r.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},r.prototype.getNormalizer=function(){return xe(this._normalizeData,this)},r.listVisualTypes=function(){return nt(r.visualHandlers)},r.isValidType=function(e){return r.visualHandlers.hasOwnProperty(e)},r.eachVisual=function(e,t,n){Re(e)?P(e,t,n):t.call(n,e)},r.mapVisual=function(e,t,n){var a,i=ue(e)?[]:Re(e)?{}:(a=!0,null);return r.eachVisual(e,function(o,s){var l=t.call(n,o,s);a?i=l:i[s]=l}),i},r.retrieveVisuals=function(e){var t={},n;return e&&dg(r.visualHandlers,function(a,i){e.hasOwnProperty(i)&&(t[i]=e[i],n=!0)}),n?t:null},r.prepareVisualTypes=function(e){if(ue(e))e=e.slice();else if(zde(e)){var t=[];dg(e,function(n,a){t.push(a)}),e=t}else return[];return e.sort(function(n,a){return a==="color"&&n!=="color"&&n.indexOf("color")===0?1:-1}),e},r.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},r.findPieceIndex=function(e,t,n){for(var a,i=1/0,o=0,s=t.length;o<s;o++){var l=t[o].value;if(l!=null){if(l===e||ye(l)&&l===e+"")return o;n&&d(l,o)}}for(var o=0,s=t.length;o<s;o++){var u=t[o],c=u.interval,f=u.close;if(c){if(c[0]===-1/0){if(c0(f[1],e,c[1]))return o}else if(c[1]===1/0){if(c0(f[0],c[0],e))return o}else if(c0(f[0],c[0],e)&&c0(f[1],e,c[1]))return o;n&&d(c[0],o),n&&d(c[1],o)}}if(n)return e===1/0?t.length-1:e===-1/0?0:a;function d(v,g){var x=Math.abs(v-e);x<i&&(i=x,a=g)}},r.visualHandlers={color:{applyVisual:Hv("color"),getColorMapper:function(){var e=this.option;return xe(e.mappingMethod==="category"?function(t,n){return!n&&(t=this._normalizeData(t)),vp.call(this,t)}:function(t,n,a){var i=!!a;return!n&&(t=this._normalizeData(t)),a=Tp(t,e.parsedVisual,a),i?a:La(a,"rgba")},this)},_normalizedToVisual:{linear:function(e){return La(Tp(e,this.option.parsedVisual),"rgba")},category:vp,piecewise:function(e,t){var n=xA.call(this,t);return n==null&&(n=La(Tp(e,this.option.parsedVisual),"rgba")),n},fixed:Au}},colorHue:u0(function(e,t){return Bo(e,t)}),colorSaturation:u0(function(e,t){return Bo(e,null,t)}),colorLightness:u0(function(e,t){return Bo(e,null,null,t)}),colorAlpha:u0(function(e,t){return Wp(e,t)}),decal:{applyVisual:Hv("decal"),_normalizedToVisual:{linear:null,category:vp,piecewise:null,fixed:null}},opacity:{applyVisual:Hv("opacity"),_normalizedToVisual:yA([0,1])},liftZ:{applyVisual:Hv("liftZ"),_normalizedToVisual:{linear:Au,category:Au,piecewise:Au,fixed:Au}},symbol:{applyVisual:function(e,t,n){var a=this.mapValueToVisual(e);n("symbol",a)},_normalizedToVisual:{linear:yz,category:vp,piecewise:function(e,t){var n=xA.call(this,t);return n==null&&(n=yz.call(this,e)),n},fixed:Au}},symbolSize:{applyVisual:Hv("symbolSize"),_normalizedToVisual:yA([0,1])}},r})();function Bde(r){var e=r.pieceList;r.hasSpecialVisual=!1,P(e,function(t,n){t.originIndex=n,t.visual!=null&&(r.hasSpecialVisual=!0)})}function jde(r){var e=r.categories,t=r.categoryMap={},n=r.visual;if(dg(e,function(o,s){t[o]=s}),!ue(n)){var a=[];Re(n)?dg(n,function(o,s){var l=t[s];a[l??o1]=o}):a[o1]=n,n=W7(r,a)}for(var i=e.length-1;i>=0;i--)n[i]==null&&(delete t[e[i]],e.pop())}function dT(r,e){var t=r.visual,n=[];Re(t)?dg(t,function(i){n.push(i)}):t!=null&&n.push(t);var a={color:1,symbol:1};!e&&n.length===1&&!a.hasOwnProperty(r.type)&&(n[1]=n[0]),W7(r,n)}function u0(r){return{applyVisual:function(e,t,n){var a=this.mapValueToVisual(e);n("color",r(t("color"),a))},_normalizedToVisual:yA([0,1])}}function yz(r){var e=this.option.visual;return e[Math.round(vt(r,[0,1],[0,e.length-1],!0))]||{}}function Hv(r){return function(e,t,n){n(r,this.mapValueToVisual(e))}}function vp(r){var e=this.option.visual;return e[this.option.loop&&r!==o1?r%e.length:r]}function Au(){return this.option.visual[0]}function yA(r){return{linear:function(e){return vt(e,r,this.option.visual,!0)},category:vp,piecewise:function(e,t){var n=xA.call(this,t);return n==null&&(n=vt(e,r,this.option.visual,!0)),n},fixed:Au}}function xA(r){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var n=Dr.findPieceIndex(r,t),a=t[n];if(a&&a.visual)return a.visual[this.type]}}function W7(r,e){return r.visual=e,r.type==="color"&&(r.parsedVisual=ce(e,function(t){var n=un(t);return n||[0,0,0,1]})),e}var Vde={linear:function(r){return vt(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var e=this.option.pieceList,t=Dr.findPieceIndex(r,e,!0);if(t!=null)return vt(t,[0,e.length-1],[0,1],!0)},category:function(r){var e=this.option.categories?this.option.categoryMap[r]:r;return e??o1},fixed:$t};function c0(r,e,t){return r?e<=t:e<t}var Gde="itemStyle",X7=Ke();const Hde={seriesType:"treemap",reset:function(r){var e=r.getData().tree,t=e.root;t.isRemoved()||q7(t,{},r.getViewRoot().getAncestors(),r)}};function q7(r,e,t,n){var a=r.getModel(),i=r.getLayout(),o=r.hostTree.data;if(!(!i||i.invisible||!i.isInView)){var s=a.getModel(Gde),l=Fde(s,e,n),u=o.ensureUniqueItemVisual(r.dataIndex,"style"),c=s.get("borderColor"),f=s.get("borderColorSaturation"),d;f!=null&&(d=xz(l),c=Ude(f,d)),u.stroke=c;var v=r.viewChildren;if(!v||!v.length)d=xz(l),u.fill=d;else{var g=Yde(r,a,i,s,l,v);P(v,function(x,y){if(x.depth>=t.length||x===t[x.depth]){var b=Wde(a,l,x,y,g,n);q7(x,b,t,n)}})}}}function Fde(r,e,t){var n=ie({},e),a=t.designatedVisualItemStyle;return P(["color","colorAlpha","colorSaturation"],function(i){a[i]=e[i];var o=r.get(i);a[i]=null,o!=null&&(n[i]=o)}),n}function xz(r){var e=vT(r,"color");if(e){var t=vT(r,"colorAlpha"),n=vT(r,"colorSaturation");return n&&(e=Bo(e,null,null,n)),t&&(e=Wp(e,t)),e}}function Ude(r,e){return e!=null?Bo(e,null,null,r):null}function vT(r,e){var t=r[e];if(t!=null&&t!=="none")return t}function Yde(r,e,t,n,a,i){if(!(!i||!i.length)){var o=pT(e,"color")||a.color!=null&&a.color!=="none"&&(pT(e,"colorAlpha")||pT(e,"colorSaturation"));if(o){var s=e.get("visualMin"),l=e.get("visualMax"),u=t.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var c=e.get("colorMappingBy"),f={type:o.name,dataExtent:u,visual:o.range};f.type==="color"&&(c==="index"||c==="id")?(f.mappingMethod="category",f.loop=!0):f.mappingMethod="linear";var d=new Dr(f);return X7(d).drColorMappingBy=c,d}}}function pT(r,e){var t=r.get(e);return ue(t)&&t.length?{name:e,range:t}:null}function Wde(r,e,t,n,a,i){var o=ie({},e);if(a){var s=a.type,l=s==="color"&&X7(a).drColorMappingBy,u=l==="index"?n:l==="id"?i.mapIdToIndex(t.getId()):t.getValue(r.get("visualDimension"));o[s]=a.mapValueToVisual(u)}return o}var vg=Math.max,s1=Math.min,bz=jr,pL=P,Z7=["itemStyle","borderWidth"],Xde=["itemStyle","gapWidth"],qde=["upperLabel","show"],Zde=["upperLabel","height"];const $de={seriesType:"treemap",reset:function(r,e,t,n){var a=r.option,i=Sr(r,t).refContainer,o=Gt(r.getBoxLayoutParams(),i),s=a.size||[],l=me(bz(o.width,s[0]),i.width),u=me(bz(o.height,s[1]),i.height),c=n&&n.type,f=["treemapZoomToNode","treemapRootToNode"],d=hg(n,f,r),v=c==="treemapRender"||c==="treemapMove"?n.rootRect:null,g=r.getViewRoot(),x=F7(g);if(c!=="treemapMove"){var y=c==="treemapZoomToNode"?rve(r,d,g,l,u):v?[v.width,v.height]:[l,u],b=a.sort;b&&b!=="asc"&&b!=="desc"&&(b="desc");var S={squareRatio:a.squareRatio,sort:b,leafDepth:a.leafDepth};g.hostTree.clearLayouts();var T={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};g.setLayout(T),$7(g,S,!1,0),T=g.getLayout(),pL(x,function(M,D){var L=(x[D+1]||g).getValue();M.setLayout(ie({dataExtent:[L,L],borderWidth:0,upperHeight:0},T))})}var C=r.getData().tree.root;C.setLayout(nve(o,v,d),!0),r.setLayoutInfo(o),K7(C,new ke(-o.x,-o.y,t.getWidth(),t.getHeight()),x,g,0)}};function $7(r,e,t,n){var a,i;if(!r.isRemoved()){var o=r.getLayout();a=o.width,i=o.height;var s=r.getModel(),l=s.get(Z7),u=s.get(Xde)/2,c=Q7(s),f=Math.max(l,c),d=l-u,v=f-u;r.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:c},!0),a=vg(a-2*d,0),i=vg(i-d-v,0);var g=a*i,x=Kde(r,s,g,e,t,n);if(x.length){var y={x:d,y:v,width:a,height:i},b=s1(a,i),S=1/0,T=[];T.area=0;for(var C=0,M=x.length;C<M;){var D=x[C];T.push(D),T.area+=D.getLayout().area;var L=tve(T,b,e.squareRatio);L<=S?(C++,S=L):(T.area-=T.pop().getLayout().area,_z(T,b,y,u,!1),b=s1(y.width,y.height),T.length=T.area=0,S=1/0)}if(T.length&&_z(T,b,y,u,!0),!t){var E=s.get("childrenVisibleMin");E!=null&&g<E&&(t=!0)}for(var C=0,M=x.length;C<M;C++)$7(x[C],e,t,n+1)}}}function Kde(r,e,t,n,a,i){var o=r.children||[],s=n.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=n.leafDepth!=null&&n.leafDepth<=i;if(a&&!l)return r.viewChildren=[];o=ht(o,function(v){return!v.isRemoved()}),Jde(o,s);var u=eve(e,o,s);if(u.sum===0)return r.viewChildren=[];if(u.sum=Qde(e,t,u.sum,s,o),u.sum===0)return r.viewChildren=[];for(var c=0,f=o.length;c<f;c++){var d=o[c].getValue()/u.sum*t;o[c].setLayout({area:d})}return l&&(o.length&&r.setLayout({isLeafRoot:!0},!0),o.length=0),r.viewChildren=o,r.setLayout({dataExtent:u.dataExtent},!0),o}function Qde(r,e,t,n,a){if(!n)return t;for(var i=r.get("visibleMin"),o=a.length,s=o,l=o-1;l>=0;l--){var u=a[n==="asc"?o-l-1:l].getValue();u/t*e<i&&(s=l,t-=u)}return n==="asc"?a.splice(0,o-s):a.splice(s,o-s),t}function Jde(r,e){return e&&r.sort(function(t,n){var a=e==="asc"?t.getValue()-n.getValue():n.getValue()-t.getValue();return a===0?e==="asc"?t.dataIndex-n.dataIndex:n.dataIndex-t.dataIndex:a}),r}function eve(r,e,t){for(var n=0,a=0,i=e.length;a<i;a++)n+=e[a].getValue();var o=r.get("visualDimension"),s;return!e||!e.length?s=[NaN,NaN]:o==="value"&&t?(s=[e[e.length-1].getValue(),e[0].getValue()],t==="asc"&&s.reverse()):(s=[1/0,-1/0],pL(e,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:n,dataExtent:s}}function tve(r,e,t){for(var n=0,a=1/0,i=0,o=void 0,s=r.length;i<s;i++)o=r[i].getLayout().area,o&&(o<a&&(a=o),o>n&&(n=o));var l=r.area*r.area,u=e*e*t;return l?vg(u*n/l,l/(u*a)):1/0}function _z(r,e,t,n,a){var i=e===t.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=t[s[i]],c=e?r.area/e:0;(a||c>t[l[o]])&&(c=t[l[o]]);for(var f=0,d=r.length;f<d;f++){var v=r[f],g={},x=c?v.getLayout().area/c:0,y=g[l[o]]=vg(c-2*n,0),b=t[s[i]]+t[l[i]]-u,S=f===d-1||b<x?b:x,T=g[l[i]]=vg(S-2*n,0);g[s[o]]=t[s[o]]+s1(n,y/2),g[s[i]]=u+s1(n,T/2),u+=S,v.setLayout(g,!0)}t[s[o]]+=c,t[l[o]]-=c}function rve(r,e,t,n,a){var i=(e||{}).node,o=[n,a];if(!i||i===t)return o;for(var s,l=n*a,u=l*r.option.zoomToNodeRatio;s=i.parentNode;){for(var c=0,f=s.children,d=0,v=f.length;d<v;d++)c+=f[d].getValue();var g=i.getValue();if(g===0)return o;u*=c/g;var x=s.getModel(),y=x.get(Z7),b=Math.max(y,Q7(x));u+=4*y*y+(3*y+b)*Math.pow(u,.5),u>fC&&(u=fC),i=s}u<l&&(u=l);var S=Math.pow(u/l,.5);return[n*S,a*S]}function nve(r,e,t){if(e)return{x:e.x,y:e.y};var n={x:0,y:0};if(!t)return n;var a=t.node,i=a.getLayout();if(!i)return n;for(var o=[i.width/2,i.height/2],s=a;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:r.width/2-o[0],y:r.height/2-o[1]}}function K7(r,e,t,n,a){var i=r.getLayout(),o=t[a],s=o&&o===r;if(!(o&&!s||a===t.length&&r!==n)){r.setLayout({isInView:!0,invisible:!s&&!e.intersect(i),isAboveViewRoot:s},!0);var l=new ke(e.x-i.x,e.y-i.y,e.width,e.height);pL(r.viewChildren||[],function(u){K7(u,l,t,n,a+1)})}}function Q7(r){return r.get(qde)?r.get(Zde):0}function ave(r){r.registerSeriesModel(wde),r.registerChartView(kde),r.registerVisual(Hde),r.registerLayout($de),Sde(r)}function ive(r){var e=r.findComponents({mainType:"legend"});!e||!e.length||r.eachSeriesByType("graph",function(t){var n=t.getCategoriesData(),a=t.getGraph(),i=a.data,o=n.mapArray(n.getName);i.filterSelf(function(s){var l=i.getItemModel(s),u=l.getShallow("category");if(u!=null){it(u)&&(u=o[u]);for(var c=0;c<e.length;c++)if(!e[c].isSelected(u))return!1}return!0})})}function ove(r){var e={};r.eachSeriesByType("graph",function(t){var n=t.getCategoriesData(),a=t.getData(),i={};n.each(function(o){var s=n.getName(o);i["ec-"+s]=o;var l=n.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=t.getColorFromPalette(s,e)),n.setItemVisual(o,"style",u);for(var c=["symbol","symbolSize","symbolKeepAspect"],f=0;f<c.length;f++){var d=l.getShallow(c[f],!0);d!=null&&n.setItemVisual(o,c[f],d)}}),n.count()&&a.each(function(o){var s=a.getItemModel(o),l=s.getShallow("category");if(l!=null){ye(l)&&(l=i["ec-"+l]);var u=n.getItemVisual(l,"style"),c=a.ensureUniqueItemVisual(o,"style");ie(c,u);for(var f=["symbol","symbolSize","symbolKeepAspect"],d=0;d<f.length;d++)a.setItemVisual(o,f[d],n.getItemVisual(l,f[d]))}})})}function f0(r){return r instanceof Array||(r=[r,r]),r}function sve(r){r.eachSeriesByType("graph",function(e){var t=e.getGraph(),n=e.getEdgeData(),a=f0(e.get("edgeSymbol")),i=f0(e.get("edgeSymbolSize"));n.setVisual("fromSymbol",a&&a[0]),n.setVisual("toSymbol",a&&a[1]),n.setVisual("fromSymbolSize",i&&i[0]),n.setVisual("toSymbolSize",i&&i[1]),n.setVisual("style",e.getModel("lineStyle").getLineStyle()),n.each(function(o){var s=n.getItemModel(o),l=t.getEdgeByIndex(o),u=f0(s.getShallow("symbol",!0)),c=f0(s.getShallow("symbolSize",!0)),f=s.getModel("lineStyle").getLineStyle(),d=n.ensureUniqueItemVisual(o,"style");switch(ie(d,f),d.stroke){case"source":{var v=l.node1.getVisual("style");d.stroke=v&&v.fill;break}case"target":{var v=l.node2.getVisual("style");d.stroke=v&&v.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),c[0]&&l.setVisual("fromSymbolSize",c[0]),c[1]&&l.setVisual("toSymbolSize",c[1])})})}var bA="-->",vb=function(r){return r.get("autoCurveness")||null},J7=function(r,e){var t=vb(r),n=20,a=[];if(it(t))n=t;else if(ue(t)){r.__curvenessList=t;return}e>n&&(n=e);var i=n%2?n+2:n+3;a=[];for(var o=0;o<i;o++)a.push((o%2?o+1:o)/10*(o%2?-1:1));r.__curvenessList=a},pg=function(r,e,t){var n=[r.id,r.dataIndex].join("."),a=[e.id,e.dataIndex].join(".");return[t.uid,n,a].join(bA)},eU=function(r){var e=r.split(bA);return[e[0],e[2],e[1]].join(bA)},lve=function(r,e){var t=pg(r.node1,r.node2,e);return e.__edgeMap[t]},uve=function(r,e){var t=_A(pg(r.node1,r.node2,e),e),n=_A(pg(r.node2,r.node1,e),e);return t+n},_A=function(r,e){var t=e.__edgeMap;return t[r]?t[r].length:0};function cve(r){vb(r)&&(r.__curvenessList=[],r.__edgeMap={},J7(r))}function fve(r,e,t,n){if(vb(t)){var a=pg(r,e,t),i=t.__edgeMap,o=i[eU(a)];i[a]&&!o?i[a].isForward=!0:o&&i[a]&&(o.isForward=!0,i[a].isForward=!1),i[a]=i[a]||[],i[a].push(n)}}function gL(r,e,t,n){var a=vb(e),i=ue(a);if(!a)return null;var o=lve(r,e);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===t){s=l;break}var u=uve(r,e);J7(e,u),r.lineStyle=r.lineStyle||{};var c=pg(r.node1,r.node2,e),f=e.__curvenessList,d=i||u%2?0:1;if(o.isForward)return f[d+s];var v=eU(c),g=_A(v,e),x=f[s+g+d];return n?i?a&&a[0]===0?(g+d)%2?x:-x:((g%2?0:1)+d)%2?x:-x:(g+d)%2?x:-x:f[s+g+d]}function tU(r){var e=r.coordinateSystem;if(!(e&&e.type!=="view")){var t=r.getGraph();t.eachNode(function(n){var a=n.getModel();n.setLayout([+a.get("x"),+a.get("y")])}),mL(t,r)}}function mL(r,e){r.eachEdge(function(t,n){var a=Rn(t.getModel().get(["lineStyle","curveness"]),-gL(t,e,n,!0),0),i=ji(t.node1.getLayout()),o=ji(t.node2.getLayout()),s=[i,o];+a&&s.push([(i[0]+o[0])/2-(i[1]-o[1])*a,(i[1]+o[1])/2-(o[0]-i[0])*a]),t.setLayout(s)})}function hve(r,e){r.eachSeriesByType("graph",function(t){var n=t.get("layout"),a=t.coordinateSystem;if(a&&a.type!=="view"){var i=t.getData(),o=[];P(a.dimensions,function(d){o=o.concat(i.mapDimensionsAll(d))});for(var s=0;s<i.count();s++){for(var l=[],u=!1,c=0;c<o.length;c++){var f=i.get(o[c],s);isNaN(f)||(u=!0),l.push(f)}u?i.setItemLayout(s,a.dataToPoint(l)):i.setItemLayout(s,[NaN,NaN])}mL(i.graph,t)}else(!n||n==="none")&&tU(t)})}function pp(r){var e=r.coordinateSystem;if(e.type!=="view")return 1;var t=r.option.nodeScaleRatio,n=e.scaleX,a=e.getZoom(),i=(a-1)*t+1;return i/n}function gp(r){var e=r.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var Sz=Math.PI,gT=[];function yL(r,e,t,n){var a=r.coordinateSystem;if(!(a&&a.type!=="view")){var i=a.getBoundingRect(),o=r.getData(),s=o.graph,l=i.width/2+i.x,u=i.height/2+i.y,c=Math.min(i.width,i.height)/2,f=o.count();if(o.setLayout({cx:l,cy:u}),!!f){if(t){var d=a.pointToData(n),v=d[0],g=d[1],x=[v-l,g-u];xc(x,x),bp(x,x,c),t.setLayout([l+x[0],u+x[1]],!0);var y=r.get(["circular","rotateLabel"]);rU(t,y,l,u)}dve[e](r,s,o,c,l,u,f),s.eachEdge(function(b,S){var T=Rn(b.getModel().get(["lineStyle","curveness"]),gL(b,r,S),0),C=ji(b.node1.getLayout()),M=ji(b.node2.getLayout()),D,L=(C[0]+M[0])/2,E=(C[1]+M[1])/2;+T&&(T*=3,D=[l*T+L*(1-T),u*T+E*(1-T)]),b.setLayout([C,M,D])})}}}var dve={value:function(r,e,t,n,a,i,o){var s=0,l=t.getSum("value"),u=Math.PI*2/(l||o);e.eachNode(function(c){var f=c.getValue("value"),d=u*(l?f:1)/2;s+=d,c.setLayout([n*Math.cos(s)+a,n*Math.sin(s)+i]),s+=d})},symbolSize:function(r,e,t,n,a,i,o){var s=0;gT.length=o;var l=pp(r);e.eachNode(function(f){var d=gp(f);isNaN(d)&&(d=2),d<0&&(d=0),d*=l;var v=Math.asin(d/2/n);isNaN(v)&&(v=Sz/2),gT[f.dataIndex]=v,s+=v*2});var u=(2*Sz-s)/o/2,c=0;e.eachNode(function(f){var d=u+gT[f.dataIndex];c+=d,(!f.getLayout()||!f.getLayout().fixed)&&f.setLayout([n*Math.cos(c)+a,n*Math.sin(c)+i]),c+=d})}};function rU(r,e,t,n){var a=r.getGraphicEl();if(a){var i=r.getModel(),o=i.get(["label","rotate"])||0,s=a.getSymbolPath();if(e){var l=r.getLayout(),u=Math.atan2(l[1]-n,l[0]-t);u<0&&(u=Math.PI*2+u);var c=l[0]<t;c&&(u=u-Math.PI);var f=c?"left":"right";s.setTextConfig({rotation:-u,position:f,origin:"center"});var d=s.ensureState("emphasis");ie(d.textConfig||(d.textConfig={}),{position:f})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function vve(r){r.eachSeriesByType("graph",function(e){e.get("layout")==="circular"&&yL(e,"symbolSize")})}var Ef=vx;function pve(r,e,t){for(var n=r,a=e,i=t.rect,o=i.width,s=i.height,l=[i.x+o/2,i.y+s/2],u=t.gravity==null?.1:t.gravity,c=0;c<n.length;c++){var f=n[c];f.p||(f.p=Al(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),f.pp=ji(f.p),f.edges=null}var d=t.friction==null?.6:t.friction,v=d,g,x;return{warmUp:function(){v=d*.8},setFixed:function(y){n[y].fixed=!0},setUnfixed:function(y){n[y].fixed=!1},beforeStep:function(y){g=y},afterStep:function(y){x=y},step:function(y){g&&g(n,a);for(var b=[],S=n.length,T=0;T<a.length;T++){var C=a[T];if(!C.ignoreForceLayout){var M=C.n1,D=C.n2;Qs(b,D.p,M.p);var L=Fp(b)-C.d,E=D.w/(M.w+D.w);isNaN(E)&&(E=0),xc(b,b),!M.fixed&&Ef(M.p,M.p,b,E*L*v),!D.fixed&&Ef(D.p,D.p,b,-(1-E)*L*v)}}for(var T=0;T<S;T++){var R=n[T];R.fixed||(Qs(b,l,R.p),Ef(R.p,R.p,b,u*v))}for(var T=0;T<S;T++)for(var M=n[T],I=T+1;I<S;I++){var D=n[I];Qs(b,D.p,M.p);var L=Fp(b);L===0&&(z1(b,Math.random()-.5,Math.random()-.5),L=1);var k=(M.rep+D.rep)/L/L;!M.fixed&&Ef(M.pp,M.pp,b,k),!D.fixed&&Ef(D.pp,D.pp,b,-k)}for(var z=[],T=0;T<S;T++){var R=n[T];R.fixed||(Qs(z,R.p,R.pp),Ef(R.p,R.p,z,v),on(R.pp,R.p))}v=v*.992;var O=v<.01;x&&x(n,a,O),y&&y(O)}}}function gve(r){r.eachSeriesByType("graph",function(e){var t=e.coordinateSystem;if(!(t&&t.type!=="view"))if(e.get("layout")==="force"){var n=e.preservedPoints||{},a=e.getGraph(),i=a.data,o=a.edgeData,s=e.getModel("force"),l=s.get("initLayout");e.preservedPoints?i.each(function(T){var C=i.getId(T);i.setItemLayout(T,n[C]||[NaN,NaN])}):!l||l==="none"?tU(e):l==="circular"&&yL(e,"value");var u=i.getDataExtent("value"),c=o.getDataExtent("value"),f=s.get("repulsion"),d=s.get("edgeLength"),v=ue(f)?f:[f,f],g=ue(d)?d:[d,d];g=[g[1],g[0]];var x=i.mapArray("value",function(T,C){var M=i.getItemLayout(C),D=vt(T,u,v);return isNaN(D)&&(D=(v[0]+v[1])/2),{w:D,rep:D,fixed:i.getItemModel(C).get("fixed"),p:!M||isNaN(M[0])||isNaN(M[1])?null:M}}),y=o.mapArray("value",function(T,C){var M=a.getEdgeByIndex(C),D=vt(T,c,g);isNaN(D)&&(D=(g[0]+g[1])/2);var L=M.getModel(),E=Rn(M.getModel().get(["lineStyle","curveness"]),-gL(M,e,C,!0),0);return{n1:x[M.node1.dataIndex],n2:x[M.node2.dataIndex],d:D,curveness:E,ignoreForceLayout:L.get("ignoreForceLayout")}}),b=t.getBoundingRect(),S=pve(x,y,{rect:b,gravity:s.get("gravity"),friction:s.get("friction")});S.beforeStep(function(T,C){for(var M=0,D=T.length;M<D;M++)T[M].fixed&&on(T[M].p,a.getNodeByIndex(M).getLayout())}),S.afterStep(function(T,C,M){for(var D=0,L=T.length;D<L;D++)T[D].fixed||a.getNodeByIndex(D).setLayout(T[D].p),n[i.getId(D)]=T[D].p;for(var D=0,L=C.length;D<L;D++){var E=C[D],R=a.getEdgeByIndex(D),I=E.n1.p,k=E.n2.p,z=R.getLayout();z=z?z.slice():[],z[0]=z[0]||[],z[1]=z[1]||[],on(z[0],I),on(z[1],k),+E.curveness&&(z[2]=[(I[0]+k[0])/2-(I[1]-k[1])*E.curveness,(I[1]+k[1])/2-(k[0]-I[0])*E.curveness]),R.setLayout(z)}}),e.forceLayout=S,e.preservedPoints=n,S.step()}else e.forceLayout=null})}function mve(r,e,t){var n=Sr(r,e),a=ie(r.getBoxLayoutParams(),{aspect:t}),i=Gt(a,n.refContainer);return NH(r,i,t)}function yve(r,e){var t=[];return r.eachSeriesByType("graph",function(n){Gg({targetModel:n,coordSysType:"view",coordSysProvider:a,isDefaultDataCoordSys:!0});function a(){var i=n.getData(),o=i.mapArray(function(g){var x=i.getItemModel(g);return[+x.get("x"),+x.get("y")]}),s=[],l=[];W1(o,s,l),l[0]-s[0]===0&&(l[0]+=1,s[0]-=1),l[1]-s[1]===0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),c=mve(n,e,u);isNaN(u)&&(s=[c.x,c.y],l=[c.x+c.width,c.y+c.height]);var f=l[0]-s[0],d=l[1]-s[1],v=new Mc(null,{api:e,ecModel:r});return v.zoomLimit=n.get("scaleLimit"),v.setBoundingRect(s[0],s[1],f,d),v.setViewRect(c.x,c.y,c.width,c.height),v.setCenter(n.get("center")),v.setZoom(n.get("zoom")),t.push(v),v}}),t}var wz=sr.prototype,mT=Kh.prototype,nU=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r})();(function(r){K(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(nU);function yT(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}var aU=(function(r){K(e,r);function e(t){var n=r.call(this,t)||this;return n.type="ec-line",n}return e.prototype.getDefaultStyle=function(){return{stroke:ee.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new nU},e.prototype.buildPath=function(t,n){yT(n)?wz.buildPath.call(this,t,n):mT.buildPath.call(this,t,n)},e.prototype.pointAt=function(t){return yT(this.shape)?wz.pointAt.call(this,t):mT.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var n=this.shape,a=yT(n)?[n.x2-n.x1,n.y2-n.y1]:mT.tangentAt.call(this,t);return xc(a,a)},e})(et),xT=["fromSymbol","toSymbol"];function Tz(r){return"_"+r+"Type"}function Cz(r,e,t){var n=e.getItemVisual(t,r);if(!n||n==="none")return n;var a=e.getItemVisual(t,r+"Size"),i=e.getItemVisual(t,r+"Rotate"),o=e.getItemVisual(t,r+"Offset"),s=e.getItemVisual(t,r+"KeepAspect"),l=od(a),u=Tc(o||0,l);return n+l+u+(i||"")+(s||"")}function Az(r,e,t){var n=e.getItemVisual(t,r);if(!(!n||n==="none")){var a=e.getItemVisual(t,r+"Size"),i=e.getItemVisual(t,r+"Rotate"),o=e.getItemVisual(t,r+"Offset"),s=e.getItemVisual(t,r+"KeepAspect"),l=od(a),u=Tc(o||0,l),c=lr(n,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=i==null||isNaN(i)?void 0:+i*Math.PI/180||0,c.name=r,c}}function xve(r){var e=new aU({name:"line",subPixelOptimize:!0});return SA(e.shape,r),e}function SA(r,e){r.x1=e[0][0],r.y1=e[0][1],r.x2=e[1][0],r.y2=e[1][1],r.percent=1;var t=e[2];t?(r.cpx1=t[0],r.cpy1=t[1]):(r.cpx1=NaN,r.cpy1=NaN)}var xL=(function(r){K(e,r);function e(t,n,a){var i=r.call(this)||this;return i._createLine(t,n,a),i}return e.prototype._createLine=function(t,n,a){var i=t.hostModel,o=t.getItemLayout(n),s=t.getItemVisual(n,"z2"),l=xve(o);l.shape.percent=0,zt(l,{z2:Ce(s,0),shape:{percent:1}},i,n),this.add(l),P(xT,function(u){var c=Az(u,t,n);this.add(c),this[Tz(u)]=Cz(u,t,n)},this),this._updateCommonStl(t,n,a)},e.prototype.updateData=function(t,n,a){var i=t.hostModel,o=this.childOfName("line"),s=t.getItemLayout(n),l={shape:{}};SA(l.shape,s),ot(o,l,i,n),P(xT,function(u){var c=Cz(u,t,n),f=Tz(u);if(this[f]!==c){this.remove(this.childOfName(u));var d=Az(u,t,n);this.add(d)}this[f]=c},this),this._updateCommonStl(t,n,a)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,n,a){var i=t.hostModel,o=this.childOfName("line"),s=a&&a.emphasisLineStyle,l=a&&a.blurLineStyle,u=a&&a.selectLineStyle,c=a&&a.labelStatesModels,f=a&&a.emphasisDisabled,d=a&&a.focus,v=a&&a.blurScope;if(!a||t.hasItemOption){var g=t.getItemModel(n),x=g.getModel("emphasis");s=x.getModel("lineStyle").getLineStyle(),l=g.getModel(["blur","lineStyle"]).getLineStyle(),u=g.getModel(["select","lineStyle"]).getLineStyle(),f=x.get("disabled"),d=x.get("focus"),v=x.get("blurScope"),c=_r(g)}var y=t.getItemVisual(n,"style"),b=y.stroke;o.useStyle(y),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,P(xT,function(D){var L=this.childOfName(D);if(L){L.setColor(b),L.style.opacity=y.opacity;for(var E=0;E<xn.length;E++){var R=xn[E],I=o.getState(R);if(I){var k=I.style||{},z=L.ensureState(R),O=z.style||(z.style={});k.stroke!=null&&(O[L.__isEmptyBrush?"stroke":"fill"]=k.stroke),k.opacity!=null&&(O.opacity=k.opacity)}}L.markRedraw()}},this);var S=i.getRawValue(n);Lr(this,c,{labelDataIndex:n,labelFetcher:{getFormattedLabel:function(D,L){return i.getFormattedLabel(D,L,t.dataType)}},inheritColor:b||ee.color.neutral99,defaultOpacity:y.opacity,defaultText:(S==null?t.getName(n):isFinite(S)?or(S):S)+""});var T=this.getTextContent();if(T){var C=c.normal;T.__align=T.style.align,T.__verticalAlign=T.style.verticalAlign,T.__position=C.get("position")||"middle";var M=C.get("distance");ue(M)||(M=[M,M]),T.__labelDistance=M}this.setTextConfig({position:null,local:!0,inside:!1}),Ft(this,d,v,f)},e.prototype.highlight=function(){Xo(this)},e.prototype.downplay=function(){qo(this)},e.prototype.updateLayout=function(t,n){this.setLinePoints(t.getItemLayout(n))},e.prototype.setLinePoints=function(t){var n=this.childOfName("line");SA(n.shape,t),n.dirty()},e.prototype.beforeUpdate=function(){var t=this,n=t.childOfName("fromSymbol"),a=t.childOfName("toSymbol"),i=t.getTextContent();if(!n&&!a&&(!i||i.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=t.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,c=l.pointAt(0),f=l.pointAt(u),d=Qs([],f,c);xc(d,d);function v(I,k){var z=I.__specifiedRotation;if(z==null){var O=l.tangentAt(k);I.attr("rotation",(k===1?-1:1)*Math.PI/2-Math.atan2(O[1],O[0]))}else I.attr("rotation",z)}if(n&&(n.setPosition(c),v(n,0),n.scaleX=n.scaleY=o*u,n.markRedraw()),a&&(a.setPosition(f),v(a,1),a.scaleX=a.scaleY=o*u,a.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var g=void 0,x=void 0,y=i.__labelDistance,b=y[0]*o,S=y[1]*o,T=u/2,C=l.tangentAt(T),M=[C[1],-C[0]],D=l.pointAt(T);M[1]>0&&(M[0]=-M[0],M[1]=-M[1]);var L=C[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var E=-Math.atan2(C[1],C[0]);f[0]<c[0]&&(E=Math.PI+E),i.rotation=E}var R=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":R=-S,x="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":R=S,x="top";break;default:R=0,x="middle"}switch(i.__position){case"end":i.x=d[0]*b+f[0],i.y=d[1]*S+f[1],g=d[0]>.8?"left":d[0]<-.8?"right":"center",x=d[1]>.8?"top":d[1]<-.8?"bottom":"middle";break;case"start":i.x=-d[0]*b+c[0],i.y=-d[1]*S+c[1],g=d[0]>.8?"right":d[0]<-.8?"left":"center",x=d[1]>.8?"bottom":d[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=b*L+c[0],i.y=c[1]+R,g=C[0]<0?"right":"left",i.originX=-b*L,i.originY=-R;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=D[0],i.y=D[1]+R,g="center",i.originY=-R;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-b*L+f[0],i.y=f[1]+R,g=C[0]>=0?"right":"left",i.originX=b*L,i.originY=-R;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||x,align:i.__align||g})}},e})(De),bL=(function(){function r(e){this.group=new De,this._LineCtor=e||xL}return r.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var n=this,a=n.group,i=n._lineData;n._lineData=e,i||a.removeAll();var o=Mz(e);e.diff(i).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(i,e,l,s,o)}).remove(function(s){a.remove(i.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,n){t.updateLayout(e,n)},this)},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Mz(e),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function n(s){!s.isGroup&&!bve(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a<e.end;a++){var i=t.getItemLayout(a);if(bT(i)){var o=new this._LineCtor(t,a,this._seriesScope);o.traverse(n),this.group.add(o),t.setItemGraphicEl(a,o),this._progressiveEls.push(o)}}},r.prototype.remove=function(){this.group.removeAll()},r.prototype.eachRendered=function(e){Ml(this._progressiveEls||this.group,e)},r.prototype._doAdd=function(e,t,n){var a=e.getItemLayout(t);if(bT(a)){var i=new this._LineCtor(e,t,n);e.setItemGraphicEl(t,i),this.group.add(i)}},r.prototype._doUpdate=function(e,t,n,a,i){var o=e.getItemGraphicEl(n);if(!bT(t.getItemLayout(a))){this.group.remove(o);return}o?o.updateData(t,a,i):o=new this._LineCtor(t,a,i),t.setItemGraphicEl(a,o),this.group.add(o)},r})();function bve(r){return r.animators&&r.animators.length>0}function Mz(r){var e=r.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:_r(e)}}function Dz(r){return isNaN(r[0])||isNaN(r[1])}function bT(r){return r&&!Dz(r[0])&&!Dz(r[1])}var _T=[],ST=[],wT=[],If=Br,TT=sl,Lz=Math.abs;function Nz(r,e,t){for(var n=r[0],a=r[1],i=r[2],o=1/0,s,l=t*t,u=.1,c=.1;c<=.9;c+=.1){_T[0]=If(n[0],a[0],i[0],c),_T[1]=If(n[1],a[1],i[1],c);var f=Lz(TT(_T,e)-l);f<o&&(o=f,s=c)}for(var d=0;d<32;d++){var v=s+u;ST[0]=If(n[0],a[0],i[0],s),ST[1]=If(n[1],a[1],i[1],s),wT[0]=If(n[0],a[0],i[0],v),wT[1]=If(n[1],a[1],i[1],v);var f=TT(ST,e)-l;if(Lz(f)<.01)break;var g=TT(wT,e)-l;u/=2,f<0?g>=0?s=s+u:s=s-u:g>=0?s=s-u:s=s+u}return s}function CT(r,e){var t=[],n=Up,a=[[],[],[]],i=[[],[]],o=[];e/=2,r.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),f=s.getVisual("toSymbol");u.__original||(u.__original=[ji(u[0]),ji(u[1])],u[2]&&u.__original.push(ji(u[2])));var d=u.__original;if(u[2]!=null){if(on(a[0],d[0]),on(a[1],d[2]),on(a[2],d[1]),c&&c!=="none"){var v=gp(s.node1),g=Nz(a,d[0],v*e);n(a[0][0],a[1][0],a[2][0],g,t),a[0][0]=t[3],a[1][0]=t[4],n(a[0][1],a[1][1],a[2][1],g,t),a[0][1]=t[3],a[1][1]=t[4]}if(f&&f!=="none"){var v=gp(s.node2),g=Nz(a,d[1],v*e);n(a[0][0],a[1][0],a[2][0],g,t),a[1][0]=t[1],a[2][0]=t[2],n(a[0][1],a[1][1],a[2][1],g,t),a[1][1]=t[1],a[2][1]=t[2]}on(u[0],a[0]),on(u[1],a[2]),on(u[2],a[1])}else{if(on(i[0],d[0]),on(i[1],d[1]),Qs(o,i[1],i[0]),xc(o,o),c&&c!=="none"){var v=gp(s.node1);vx(i[0],i[0],o,v*e)}if(f&&f!=="none"){var v=gp(s.node2);vx(i[1],i[1],o,-v*e)}on(u[0],i[0]),on(u[1],i[1])}})}var iU=Ke();function _ve(r){if(r)return iU(r).bridge}function Rz(r,e){r&&(iU(r).bridge=e)}function Ez(r){return r.type==="view"}var Sve=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n){var a=new Yg,i=new bL,o=this.group,s=new De;this._controller=new Ac(n.getZr()),this._controllerHost={target:s},s.add(a.group),s.add(i.group),o.add(s),this._symbolDraw=a,this._lineDraw=i,this._mainGroup=s,this._firstRender=!0},e.prototype.render=function(t,n,a){var i=this,o=t.coordinateSystem,s=!1;this._model=t,this._api=a,this._active=!0;var l=this._getThumbnailInfo();l&&l.bridge.reset(a);var u=this._symbolDraw,c=this._lineDraw;if(Ez(o)){var f={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?this._mainGroup.attr(f):ot(this._mainGroup,f,t)}CT(t.getGraph(),pp(t));var d=t.getData();u.updateData(d);var v=t.getEdgeData();c.updateData(v),this._updateNodeAndLinkScale(),this._updateController(null,t,a),clearTimeout(this._layoutTimeout);var g=t.forceLayout,x=t.get(["force","layoutAnimation"]);g&&(s=!0,this._startForceLayoutIteration(g,a,x));var y=t.get("layout");d.graph.eachNode(function(C){var M=C.dataIndex,D=C.getGraphicEl(),L=C.getModel();if(D){D.off("drag").off("dragend");var E=L.get("draggable");E&&D.on("drag",function(I){switch(y){case"force":g.warmUp(),!i._layouting&&i._startForceLayoutIteration(g,a,x),g.setFixed(M),d.setItemLayout(M,[D.x,D.y]);break;case"circular":d.setItemLayout(M,[D.x,D.y]),C.setLayout({fixed:!0},!0),yL(t,"symbolSize",C,[I.offsetX,I.offsetY]),i.updateLayout(t);break;case"none":default:d.setItemLayout(M,[D.x,D.y]),mL(t.getGraph(),t),i.updateLayout(t);break}}).on("dragend",function(){g&&g.setUnfixed(M)}),D.setDraggable(E,!!L.get("cursor"));var R=L.get(["emphasis","focus"]);R==="adjacency"&&(ze(D).focus=C.getAdjacentDataIndices())}}),d.graph.eachEdge(function(C){var M=C.getGraphicEl(),D=C.getModel().get(["emphasis","focus"]);M&&D==="adjacency"&&(ze(M).focus={edge:[C.dataIndex],node:[C.node1.dataIndex,C.node2.dataIndex]})});var b=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),S=d.getLayout("cx"),T=d.getLayout("cy");d.graph.eachNode(function(C){rU(C,b,S,T)}),this._firstRender=!1,s||this._renderThumbnail(t,a,this._symbolDraw,this._lineDraw)},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,n,a){var i=this,o=!1;(function s(){t.step(function(l){i.updateLayout(i._model),(l||!o)&&(o=!0,i._renderThumbnail(i._model,n,i._symbolDraw,i._lineDraw)),(i._layouting=!l)&&(a?i._layoutTimeout=setTimeout(s,16):s())})})()},e.prototype._updateController=function(t,n,a){var i=this._controller,o=this._controllerHost,s=n.coordinateSystem;if(!Ez(s)){i.disable();return}i.enable(n.get("roam"),{api:a,zInfo:{component:n},triggerInfo:{roamTrigger:n.get("roamTrigger"),isInSelf:function(l,u,c){return s.containPoint([u,c])},isInClip:function(l,u,c){return!t||t.contain(u,c)}}}),o.zoomLimit=n.get("scaleLimit"),o.zoom=s.getZoom(),i.off("pan").off("zoom").on("pan",function(l){a.dispatchAction({seriesId:n.id,type:"graphRoam",dx:l.dx,dy:l.dy})}).on("zoom",function(l){a.dispatchAction({seriesId:n.id,type:"graphRoam",zoom:l.scale,originX:l.originX,originY:l.originY})})},e.prototype.updateViewOnPan=function(t,n,a){this._active&&(lL(this._controllerHost,a.dx,a.dy),this._updateThumbnailWindow())},e.prototype.updateViewOnZoom=function(t,n,a){this._active&&(uL(this._controllerHost,a.zoom,a.originX,a.originY),this._updateNodeAndLinkScale(),CT(t.getGraph(),pp(t)),this._lineDraw.updateLayout(),n.updateLabelLayout(),this._updateThumbnailWindow())},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,n=t.getData(),a=pp(t);n.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(a)})},e.prototype.updateLayout=function(t){this._active&&(CT(t.getGraph(),pp(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout())},e.prototype.remove=function(){this._active=!1,clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove(),this._controller&&this._controller.disable()},e.prototype._getThumbnailInfo=function(){var t=this._model,n=t.coordinateSystem;if(n.type==="view"){var a=_ve(t);if(a)return{bridge:a,coordSys:n}}},e.prototype._updateThumbnailWindow=function(){var t=this._getThumbnailInfo();t&&t.bridge.updateWindow(t.coordSys.transform,this._api)},e.prototype._renderThumbnail=function(t,n,a,i){var o=this._getThumbnailInfo();if(o){var s=new De,l=a.group.children(),u=i.group.children(),c=new De,f=new De;s.add(f),s.add(c);for(var d=0;d<l.length;d++){var v=l[d],g=v.children()[0],x=v.x,y=v.y,b=Me(g.shape),S=ie(b,{width:g.scaleX,height:g.scaleY,x:x-g.scaleX/2,y:y-g.scaleY/2}),T=Me(g.style),C=new g.constructor({shape:S,style:T,z2:151});f.add(C)}for(var d=0;d<u.length;d++){var v=u[d],M=v.children()[0],T=Me(M.style),S=Me(M.shape),D=new aU({style:T,shape:S,z2:151});c.add(D)}o.bridge.renderContent({api:n,roamType:t.get("roam"),viewportRect:null,group:s,targetTrans:o.coordSys.transform})}},e.type="graph",e})(_t);function kf(r){return"_EC_"+r}var wve=(function(){function r(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return r.prototype.isDirected=function(){return this._directed},r.prototype.addNode=function(e,t){e=e==null?""+t:""+e;var n=this._nodesMap;if(!n[kf(e)]){var a=new Mu(e,t);return a.hostGraph=this,this.nodes.push(a),n[kf(e)]=a,a}},r.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},r.prototype.getNodeById=function(e){return this._nodesMap[kf(e)]},r.prototype.addEdge=function(e,t,n){var a=this._nodesMap,i=this._edgesMap;if(it(e)&&(e=this.nodes[e]),it(t)&&(t=this.nodes[t]),e instanceof Mu||(e=a[kf(e)]),t instanceof Mu||(t=a[kf(t)]),!(!e||!t)){var o=e.id+"-"+t.id,s=new oU(e,t,n);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),i[o]=s,s}},r.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},r.prototype.getEdge=function(e,t){e instanceof Mu&&(e=e.id),t instanceof Mu&&(t=t.id);var n=this._edgesMap;return this._directed?n[e+"-"+t]:n[e+"-"+t]||n[t+"-"+e]},r.prototype.eachNode=function(e,t){for(var n=this.nodes,a=n.length,i=0;i<a;i++)n[i].dataIndex>=0&&e.call(t,n[i],i)},r.prototype.eachEdge=function(e,t){for(var n=this.edges,a=n.length,i=0;i<a;i++)n[i].dataIndex>=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&e.call(t,n[i],i)},r.prototype.breadthFirstTraverse=function(e,t,n,a){if(t instanceof Mu||(t=this._nodesMap[kf(t)]),!!t){for(var i=n==="out"?"outEdges":n==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!e.call(a,t,null))for(var s=[t];s.length;)for(var l=s.shift(),u=l[i],o=0;o<u.length;o++){var c=u[o],f=c.node1===l?c.node2:c.node1;if(!f.__visited){if(e.call(a,f,l))return;s.push(f),f.__visited=!0}}}},r.prototype.update=function(){for(var e=this.data,t=this.edgeData,n=this.nodes,a=this.edges,i=0,o=n.length;i<o;i++)n[i].dataIndex=-1;for(var i=0,o=e.count();i<o;i++)n[e.getRawIndex(i)].dataIndex=i;t.filterSelf(function(s){var l=a[t.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var i=0,o=a.length;i<o;i++)a[i].dataIndex=-1;for(var i=0,o=t.count();i<o;i++)a[t.getRawIndex(i)].dataIndex=i},r.prototype.clone=function(){for(var e=new r(this._directed),t=this.nodes,n=this.edges,a=0;a<t.length;a++)e.addNode(t[a].id,t[a].dataIndex);for(var a=0;a<n.length;a++){var i=n[a];e.addEdge(i.node1.id,i.node2.id,i.dataIndex)}return e},r})(),Mu=(function(){function r(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=e??"",this.dataIndex=t??-1}return r.prototype.degree=function(){return this.edges.length},r.prototype.inDegree=function(){return this.inEdges.length},r.prototype.outDegree=function(){return this.outEdges.length},r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}},r.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var n=this.edges[t];n.dataIndex<0||(e.edge.push(n.dataIndex),e.node.push(n.node1.dataIndex,n.node2.dataIndex))}return e},r.prototype.getTrajectoryDataIndices=function(){for(var e=Te(),t=Te(),n=0,a=this.edges.length;n<a;n++){var i=this.edges[n];if(!(i.dataIndex<0)){e.set(i.dataIndex,!0);for(var o=[i.node1],s=[i.node2],l=0;l<o.length;){var u=o[l];l++,t.set(u.dataIndex,!0);for(var c=u.inEdges,f=0,d=c.length,v=void 0,g=void 0;f<d;f++)v=c[f],g=v.dataIndex,g>=0&&!e.hasKey(g)&&(e.set(g,!0),o.push(v.node1))}for(l=0;l<s.length;){var x=s[l];l++,t.set(x.dataIndex,!0);for(var y=x.outEdges,f=0,b=y.length,S=void 0,T=void 0;f<b;f++)S=y[f],T=S.dataIndex,T>=0&&!e.hasKey(T)&&(e.set(T,!0),s.push(S.node2))}}}return{edge:e.keys(),node:t.keys()}},r})(),oU=(function(){function r(e,t,n){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=n??-1}return r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,n=t.edgeData.getItemModel(this.dataIndex);return n.getModel(e)}},r.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},r.prototype.getTrajectoryDataIndices=function(){var e=Te(),t=Te();e.set(this.dataIndex,!0);for(var n=[this.node1],a=[this.node2],i=0;i<n.length;){var o=n[i];i++,t.set(o.dataIndex,!0);for(var s=o.inEdges,l=0,u=s.length,c=void 0,f=void 0;l<u;l++)c=o.inEdges[l],f=c.dataIndex,f>=0&&!e.hasKey(f)&&(e.set(f,!0),n.push(c.node1))}for(i=0;i<a.length;){var d=a[i];i++,t.set(d.dataIndex,!0);for(var v=d.outEdges,l=0,u=v.length,g=void 0,x=void 0;l<u;l++)g=d.outEdges[l],x=g.dataIndex,x>=0&&!e.hasKey(x)&&(e.set(x,!0),a.push(g.node2))}return{edge:e.keys(),node:t.keys()}},r})();function sU(r,e){return{getValue:function(t){var n=this[r][e];return n.getStore().get(n.getDimensionIndex(t||"value"),this.dataIndex)},setVisual:function(t,n){this.dataIndex>=0&&this[r][e].setItemVisual(this.dataIndex,t,n)},getVisual:function(t){return this[r][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,n){this.dataIndex>=0&&this[r][e].setItemLayout(this.dataIndex,t,n)},getLayout:function(){return this[r][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][e].getRawIndex(this.dataIndex)}}}Qt(Mu,sU("hostGraph","data"));Qt(oU,sU("hostGraph","edgeData"));function _L(r,e,t,n,a){for(var i=new wve(n),o=0;o<r.length;o++)i.addNode(jr(r[o].id,r[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<e.length;o++){var c=e[o],f=c.source,d=c.target;i.addEdge(f,d,u)&&(l.push(c),s.push(jr(yr(c.id,null),f+" > "+d)),u++)}var v=t.get("coordinateSystem"),g;if(v==="cartesian2d"||v==="polar"||v==="matrix")g=Qi(r,t);else{var x=nd.get(v),y=x?x.dimensions||[]:[];Ge(y,"value")<0&&y.concat(["value"]);var b=sd(r,{coordDimensions:y,encodeDefine:t.getEncode()}).dimensions;g=new cn(b,t),g.initData(r)}var S=new cn(["value"],t);return S.initData(l,s),a&&a(g,S),G7({mainData:g,struct:i,structAttr:"graph",datas:{node:g,edge:S},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var Tve=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments);var n=this;function a(){return n._categoriesData}this.legendVisualProvider=new hd(a,a),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){r.prototype.mergeDefaultAndTheme.apply(this,arguments),sc(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,n){var a=t.edges||t.links||[],i=t.data||t.nodes||[],o=this;if(i&&a){cve(this);var s=_L(i,a,this,!0,l);return P(s.edges,function(u){fve(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(g){var x=o._categoriesModels,y=g.getShallow("category"),b=x[y];return b&&(b.parentModel=g.parentModel,g.parentModel=b),g});var f=Je.prototype.getModel;function d(g,x){var y=f.call(this,g,x);return y.resolveParentPath=v,y}c.wrapMethod("getItemModel",function(g){return g.resolveParentPath=v,g.getModel=d,g});function v(g){if(g&&(g[0]==="label"||g[1]==="label")){var x=g.slice();return g[0]==="label"?x[0]="edgeLabel":g[1]==="label"&&(x[1]="edgeLabel"),x}return g}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,n,a){if(a==="edge"){var i=this.getData(),o=this.getDataParams(t,a),s=i.graph.getEdgeByIndex(t),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),vr("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var f=c8({series:this,dataIndex:t,multipleSeries:n});return f},e.prototype._updateCategoriesData=function(){var t=ce(this.option.categories||[],function(a){return a.value!=null?a:ie({value:0},a)}),n=new cn(["value"],this);n.initData(t),this._categoriesData=n,this._categoriesModels=n.mapArray(function(a){return n.getItemModel(a)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:ee.color.neutral50,width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:ee.color.primary}}},e})(wt);function Cve(r){r.registerChartView(Sve),r.registerSeriesModel(Tve),r.registerProcessor(ive),r.registerVisual(ove),r.registerVisual(sve),r.registerLayout(hve),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,vve),r.registerLayout(gve),r.registerCoordinateSystem("graphView",{dimensions:Mc.dimensions,create:yve}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},$t),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},$t),r.registerAction({type:"graphRoam",event:"graphRoam",update:"none"},function(e,t,n){t.eachComponent({mainType:"series",query:e},function(a){var i=n.getViewOfSeriesModel(a);i&&(e.dx!=null&&e.dy!=null&&i.updateViewOnPan(a,n,e),e.zoom!=null&&e.originX!=null&&e.originY!=null&&i.updateViewOnZoom(a,n,e));var o=a.coordinateSystem,s=fb(o,e,a.get("scaleLimit"));a.setCenter&&a.setCenter(s.center),a.setZoom&&a.setZoom(s.zoom)})})}var Iz=(function(r){K(e,r);function e(t,n,a){var i=r.call(this)||this;ze(i).dataType="node",i.z2=2;var o=new at;return i.setTextContent(o),i.updateData(t,n,a,!0),i}return e.prototype.updateData=function(t,n,a,i){var o=this,s=t.graph.getNodeByIndex(n),l=t.hostModel,u=s.getModel(),c=u.getModel("emphasis"),f=t.getItemLayout(n),d=ie(zi(u.getModel("itemStyle"),f,!0),f),v=this;if(isNaN(d.startAngle)){v.setShape(d);return}i?v.setShape(d):ot(v,{shape:d},l,n);var g=ie(zi(u.getModel("itemStyle"),f,!0),f);o.setShape(g),o.useStyle(t.getItemVisual(n,"style")),br(o,u),this._updateLabel(l,u,s),t.setItemGraphicEl(n,v),br(v,u,"itemStyle");var x=c.get("focus");Ft(this,x==="adjacency"?s.getAdjacentDataIndices():x,c.get("blurScope"),c.get("disabled"))},e.prototype._updateLabel=function(t,n,a){var i=this.getTextContent(),o=a.getLayout(),s=(o.startAngle+o.endAngle)/2,l=Math.cos(s),u=Math.sin(s),c=n.getModel("label");i.ignore=!c.get("show");var f=_r(n),d=a.getVisual("style");Lr(i,f,{labelFetcher:{getFormattedLabel:function(S,T,C,M,D,L){return t.getFormattedLabel(S,T,"node",M,Rn(D,f.normal&&f.normal.get("formatter"),n.get("name")),L)}},labelDataIndex:a.dataIndex,defaultText:a.dataIndex+"",inheritColor:d.fill,defaultOpacity:d.opacity,defaultOutsidePosition:"startArc"});var v=c.get("position")||"outside",g=c.get("distance")||0,x;v==="outside"?x=o.r+g:x=(o.r+o.r0)/2,this.textConfig={inside:v!=="outside"};var y=v!=="outside"?c.get("align")||"center":l>0?"left":"right",b=v!=="outside"?c.get("verticalAlign")||"middle":u>0?"top":"bottom";i.attr({x:l*x+o.cx,y:u*x+o.cy,rotation:0,style:{align:y,verticalAlign:b}})},e})(Qr),Ave=(function(r){K(e,r);function e(t,n,a,i){var o=r.call(this)||this;return ze(o).dataType="edge",o.updateData(t,n,a,i,!0),o}return e.prototype.buildPath=function(t,n){t.moveTo(n.s1[0],n.s1[1]);var a=.7,i=n.clockwise;t.arc(n.cx,n.cy,n.r,n.sStartAngle,n.sEndAngle,!i),t.bezierCurveTo((n.cx-n.s2[0])*a+n.s2[0],(n.cy-n.s2[1])*a+n.s2[1],(n.cx-n.t1[0])*a+n.t1[0],(n.cy-n.t1[1])*a+n.t1[1],n.t1[0],n.t1[1]),t.arc(n.cx,n.cy,n.r,n.tStartAngle,n.tEndAngle,!i),t.bezierCurveTo((n.cx-n.t2[0])*a+n.t2[0],(n.cy-n.t2[1])*a+n.t2[1],(n.cx-n.s1[0])*a+n.s1[0],(n.cy-n.s1[1])*a+n.s1[1],n.s1[0],n.s1[1]),t.closePath()},e.prototype.updateData=function(t,n,a,i,o){var s=t.hostModel,l=n.graph.getEdgeByIndex(a),u=l.getLayout(),c=l.node1.getModel(),f=n.getItemModel(l.dataIndex),d=f.getModel("lineStyle"),v=f.getModel("emphasis"),g=v.get("focus"),x=ie(zi(c.getModel("itemStyle"),u,!0),u),y=this;if(isNaN(x.sStartAngle)||isNaN(x.tStartAngle)){y.setShape(x);return}o?(y.setShape(x),kz(y,l,t,d)):(ka(y),kz(y,l,t,d),ot(y,{shape:x},s,a)),Ft(this,g==="adjacency"?l.getAdjacentDataIndices():g,v.get("blurScope"),v.get("disabled")),br(y,f,"lineStyle"),n.setItemGraphicEl(l.dataIndex,y)},e})(et);function kz(r,e,t,n){var a=e.node1,i=e.node2,o=r.style;r.setStyle(n.getLineStyle());var s=n.get("color");switch(s){case"source":o.fill=t.getItemVisual(a.dataIndex,"style").fill,o.decal=a.getVisual("style").decal;break;case"target":o.fill=t.getItemVisual(i.dataIndex,"style").fill,o.decal=i.getVisual("style").decal;break;case"gradient":var l=t.getItemVisual(a.dataIndex,"style").fill,u=t.getItemVisual(i.dataIndex,"style").fill;if(ye(l)&&ye(u)){var c=r.shape,f=(c.s1[0]+c.s2[0])/2,d=(c.s1[1]+c.s2[1])/2,v=(c.t1[0]+c.t2[0])/2,g=(c.t1[1]+c.t2[1])/2;o.fill=new bc(f,d,v,g,[{offset:0,color:l},{offset:1,color:u}],!0)}break}}var Mve=Math.PI/180,Dve=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n){},e.prototype.render=function(t,n,a){var i=t.getData(),o=this._data,s=this.group,l=-t.get("startAngle")*Mve;if(i.diff(o).add(function(c){var f=i.getItemLayout(c);if(f){var d=new Iz(i,c,l);ze(d).dataIndex=c,s.add(d)}}).update(function(c,f){var d=o.getItemGraphicEl(f),v=i.getItemLayout(c);if(!v){d&&jo(d,t,f);return}d?d.updateData(i,c,l):d=new Iz(i,c,l),s.add(d)}).remove(function(c){var f=o.getItemGraphicEl(c);f&&jo(f,t,c)}).execute(),!o){var u=t.get("center");this.group.scaleX=.01,this.group.scaleY=.01,this.group.originX=me(u[0],a.getWidth()),this.group.originY=me(u[1],a.getHeight()),zt(this.group,{scaleX:1,scaleY:1},t)}this._data=i,this.renderEdges(t,l)},e.prototype.renderEdges=function(t,n){var a=t.getData(),i=t.getEdgeData(),o=this._edgeData,s=this.group;i.diff(o).add(function(l){var u=new Ave(a,i,l,n);ze(u).dataIndex=l,s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(a,i,l,n),s.add(c)}).remove(function(l){var u=o.getItemGraphicEl(l);u&&jo(u,t,l)}).execute(),this._edgeData=i},e.prototype.dispose=function(){},e.type="chord",e})(_t),Lve=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this.legendVisualProvider=new hd(xe(this.getData,this),xe(this.getRawData,this))},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links)},e.prototype.getInitialData=function(t,n){var a=t.edges||t.links||[],i=t.data||t.nodes||[];if(i&&a){var o=_L(i,a,this,!0,s);return o.data}function s(l,u){var c=Je.prototype.getModel;function f(v,g){var x=c.call(this,v,g);return x.resolveParentPath=d,x}u.wrapMethod("getItemModel",function(v){return v.resolveParentPath=d,v.getModel=f,v});function d(v){if(v&&(v[0]==="label"||v[1]==="label")){var g=v.slice();return v[0]==="label"?g[0]="edgeLabel":v[1]==="label"&&(g[1]="edgeLabel"),g}return v}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,n,a){var i=this.getDataParams(t,a);if(a==="edge"){var o=this.getData(),s=o.graph.getEdgeByIndex(t),l=o.getName(s.node1.dataIndex),u=o.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),vr("nameValue",{name:c.join(" > "),value:i.value,noValue:i.value==null})}return vr("nameValue",{name:i.name,value:i.value,noValue:i.value==null})},e.prototype.getDataParams=function(t,n){var a=r.prototype.getDataParams.call(this,t,n);if(n==="node"){var i=this.getData(),o=this.getGraph().getNodeByIndex(t);if(a.name==null&&(a.name=i.getName(t)),a.value==null){var s=o.getLayout().value;a.value=s}}return a},e.type="series.chord",e.defaultOption={z:2,coordinateSystem:"none",legendHoverLink:!0,colorBy:"data",left:0,top:0,right:0,bottom:0,width:null,height:null,center:["50%","50%"],radius:["70%","80%"],clockwise:!0,startAngle:90,endAngle:"auto",minAngle:0,padAngle:3,itemStyle:{borderRadius:[0,0,5,5]},lineStyle:{width:0,color:"source",opacity:.2},label:{show:!0,position:"outside",distance:5},emphasis:{focus:"adjacency",lineStyle:{opacity:.5}}},e})(wt),AT=Math.PI/180;function Nve(r,e){r.eachSeriesByType("chord",function(t){Rve(t,e)})}function Rve(r,e){var t=r.getData(),n=t.graph,a=r.getEdgeData(),i=a.count();if(i){var o=LH(r,e),s=o.cx,l=o.cy,u=o.r,c=o.r0,f=Math.max((r.get("padAngle")||0)*AT,0),d=Math.max((r.get("minAngle")||0)*AT,0),v=-r.get("startAngle")*AT,g=v+Math.PI*2,x=r.get("clockwise"),y=x?1:-1,b=[v,g];X1(b,!x);var S=b[0],T=b[1],C=T-S,M=t.getSum("value")===0&&a.getSum("value")===0,D=[],L=0;n.eachEdge(function(H){var X=M?1:H.getValue("value");M&&(X>0||d)&&(L+=2);var V=H.node1.dataIndex,W=H.node2.dataIndex;D[V]=(D[V]||0)+X,D[W]=(D[W]||0)+X});var E=0;if(n.eachNode(function(H){var X=H.getValue("value");isNaN(X)||(D[H.dataIndex]=Math.max(X,D[H.dataIndex]||0)),!M&&(D[H.dataIndex]>0||d)&&L++,E+=D[H.dataIndex]||0}),!(L===0||E===0)){f*L>=Math.abs(C)&&(f=Math.max(0,(Math.abs(C)-d*L)/L)),(f+d)*L>=Math.abs(C)&&(d=(Math.abs(C)-f*L)/L);var R=(C-f*L*y)/E,I=0,k=0,z=0;n.eachNode(function(H){var X=D[H.dataIndex]||0,V=R*(E?X:1)*y;Math.abs(V)<d?I+=d-Math.abs(V):(k+=Math.abs(V)-d,z+=Math.abs(V)),H.setLayout({angle:V,value:X})});var O=!1;if(I>k){var G=I/k;n.eachNode(function(H){var X=H.getLayout().angle;Math.abs(X)>=d?H.setLayout({angle:X*G,ratio:G},!0):H.setLayout({angle:d,ratio:d===0?1:X/d},!0)})}else n.eachNode(function(H){if(!O){var X=H.getLayout().angle,V=Math.min(X/z,1),W=V*I;X-W<d&&(O=!0)}});var F=I;n.eachNode(function(H){if(!(F<=0)){var X=H.getLayout().angle;if(X>d&&d>0){var V=O?1:Math.min(X/z,1),W=X-d,$=Math.min(W,Math.min(F,I*V));F-=$,H.setLayout({angle:X-$,ratio:(X-$)/X},!0)}else d>0&&H.setLayout({angle:d,ratio:X===0?1:d/X},!0)}});var B=S,Y=[];n.eachNode(function(H){var X=Math.max(H.getLayout().angle,d);H.setLayout({cx:s,cy:l,r0:c,r:u,startAngle:B,endAngle:B+X*y,clockwise:x},!0),Y[H.dataIndex]=B,B+=(X+f)*y}),n.eachEdge(function(H){var X=M?1:H.getValue("value"),V=R*(E?X:1)*y,W=H.node1.dataIndex,$=Y[W]||0,te=Math.abs((H.node1.getLayout().ratio||1)*V),le=$+te*y,ge=[s+c*Math.cos($),l+c*Math.sin($)],we=[s+c*Math.cos(le),l+c*Math.sin(le)],de=H.node2.dataIndex,ve=Y[de]||0,be=Math.abs((H.node2.getLayout().ratio||1)*V),Oe=ve+be*y,_e=[s+c*Math.cos(ve),l+c*Math.sin(ve)],Le=[s+c*Math.cos(Oe),l+c*Math.sin(Oe)];H.setLayout({s1:ge,s2:we,sStartAngle:$,sEndAngle:le,t1:_e,t2:Le,tStartAngle:ve,tEndAngle:Oe,cx:s,cy:l,r:c,value:X,clockwise:x}),Y[W]=le,Y[de]=Oe})}}}function Eve(r){r.registerChartView(Dve),r.registerSeriesModel(Lve),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,Nve),r.registerProcessor(cd("chord"))}var Ive=(function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r})(),kve=(function(r){K(e,r);function e(t){var n=r.call(this,t)||this;return n.type="pointer",n}return e.prototype.getDefaultShape=function(){return new Ive},e.prototype.buildPath=function(t,n){var a=Math.cos,i=Math.sin,o=n.r,s=n.width,l=n.angle,u=n.x-a(l)*s*(s>=o/3?1:2),c=n.y-i(l)*s*(s>=o/3?1:2);l=n.angle-Math.PI/2,t.moveTo(u,c),t.lineTo(n.x+a(l)*s,n.y+i(l)*s),t.lineTo(n.x+a(n.angle)*o,n.y+i(n.angle)*o),t.lineTo(n.x-a(l)*s,n.y-i(l)*s),t.lineTo(u,c)},e})(et);function Ove(r,e){var t=r.get("center"),n=e.getWidth(),a=e.getHeight(),i=Math.min(n,a),o=me(t[0],e.getWidth()),s=me(t[1],e.getHeight()),l=me(r.get("radius"),i/2);return{cx:o,cy:s,r:l}}function h0(r,e){var t=r==null?"":r+"";return e&&(ye(e)?t=e.replace("{value}",t):Ae(e)&&(t=e(r))),t}var Pve=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),o=Ove(t,a);this._renderMain(t,n,a,i,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,n,a,i,o){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,c=-t.get("endAngle")/180*Math.PI,f=t.getModel("axisLine"),d=f.get("roundCap"),v=d?e1:Qr,g=f.get("show"),x=f.getModel("lineStyle"),y=x.get("width"),b=[u,c];X1(b,!l),u=b[0],c=b[1];for(var S=c-u,T=u,C=[],M=0;g&&M<i.length;M++){var D=Math.min(Math.max(i[M][0],0),1);c=u+S*D;var L=new v({shape:{startAngle:T,endAngle:c,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-y,r:o.r},silent:!0});L.setStyle({fill:i[M][1]}),L.setStyle(x.getLineStyle(["color","width"])),C.push(L),T=c}C.reverse(),P(C,function(R){return s.add(R)});var E=function(R){if(R<=0)return i[0][1];var I;for(I=0;I<i.length;I++)if(i[I][0]>=R&&(I===0?0:i[I-1][0])<R)return i[I][1];return i[I-1][1]};this._renderTicks(t,n,a,E,o,u,c,l,y),this._renderTitleAndDetail(t,n,a,E,o),this._renderAnchor(t,o),this._renderPointer(t,n,a,E,o,u,c,l,y)},e.prototype._renderTicks=function(t,n,a,i,o,s,l,u,c){for(var f=this.group,d=o.cx,v=o.cy,g=o.r,x=+t.get("min"),y=+t.get("max"),b=t.getModel("splitLine"),S=t.getModel("axisTick"),T=t.getModel("axisLabel"),C=t.get("splitNumber"),M=S.get("splitNumber"),D=me(b.get("length"),g),L=me(S.get("length"),g),E=s,R=(l-s)/C,I=R/M,k=b.getModel("lineStyle").getLineStyle(),z=S.getModel("lineStyle").getLineStyle(),O=b.get("distance"),G,F,B=0;B<=C;B++){if(G=Math.cos(E),F=Math.sin(E),b.get("show")){var Y=O?O+c:c,H=new sr({shape:{x1:G*(g-Y)+d,y1:F*(g-Y)+v,x2:G*(g-D-Y)+d,y2:F*(g-D-Y)+v},style:k,silent:!0});k.stroke==="auto"&&H.setStyle({stroke:i(B/C)}),f.add(H)}if(T.get("show")){var Y=T.get("distance")+O,X=h0(or(B/C*(y-x)+x),T.get("formatter")),V=i(B/C),W=G*(g-D-Y)+d,$=F*(g-D-Y)+v,te=T.get("rotate"),le=0;te==="radial"?(le=-E+2*Math.PI,le>Math.PI/2&&(le+=Math.PI)):te==="tangential"?le=-E-Math.PI/2:it(te)&&(le=te*Math.PI/180),le===0?f.add(new at({style:Mt(T,{text:X,x:W,y:$,verticalAlign:F<-.8?"top":F>.8?"bottom":"middle",align:G<-.4?"left":G>.4?"right":"center"},{inheritColor:V}),silent:!0})):f.add(new at({style:Mt(T,{text:X,x:W,y:$,verticalAlign:"middle",align:"center"},{inheritColor:V}),silent:!0,originX:W,originY:$,rotation:le}))}if(S.get("show")&&B!==C){var Y=S.get("distance");Y=Y?Y+c:c;for(var ge=0;ge<=M;ge++){G=Math.cos(E),F=Math.sin(E);var we=new sr({shape:{x1:G*(g-Y)+d,y1:F*(g-Y)+v,x2:G*(g-L-Y)+d,y2:F*(g-L-Y)+v},silent:!0,style:z});z.stroke==="auto"&&we.setStyle({stroke:i((B+ge/M)/C)}),f.add(we),E+=I}E-=I}else E+=R}},e.prototype._renderPointer=function(t,n,a,i,o,s,l,u,c){var f=this.group,d=this._data,v=this._progressEls,g=[],x=t.get(["pointer","show"]),y=t.getModel("progress"),b=y.get("show"),S=t.getData(),T=S.mapDimension("value"),C=+t.get("min"),M=+t.get("max"),D=[C,M],L=[s,l];function E(I,k){var z=S.getItemModel(I),O=z.getModel("pointer"),G=me(O.get("width"),o.r),F=me(O.get("length"),o.r),B=t.get(["pointer","icon"]),Y=O.get("offsetCenter"),H=me(Y[0],o.r),X=me(Y[1],o.r),V=O.get("keepAspect"),W;return B?W=lr(B,H-G/2,X-F,G,F,null,V):W=new kve({shape:{angle:-Math.PI/2,width:G,r:F,x:H,y:X}}),W.rotation=-(k+Math.PI/2),W.x=o.cx,W.y=o.cy,W}function R(I,k){var z=y.get("roundCap"),O=z?e1:Qr,G=y.get("overlap"),F=G?y.get("width"):c/S.count(),B=G?o.r-F:o.r-(I+1)*F,Y=G?o.r:o.r-I*F,H=new O({shape:{startAngle:s,endAngle:k,cx:o.cx,cy:o.cy,clockwise:u,r0:B,r:Y}});return G&&(H.z2=vt(S.get(T,I),[C,M],[100,0],!0)),H}(b||x)&&(S.diff(d).add(function(I){var k=S.get(T,I);if(x){var z=E(I,s);zt(z,{rotation:-((isNaN(+k)?L[0]:vt(k,D,L,!0))+Math.PI/2)},t),f.add(z),S.setItemGraphicEl(I,z)}if(b){var O=R(I,s),G=y.get("clip");zt(O,{shape:{endAngle:vt(k,D,L,G)}},t),f.add(O),yC(t.seriesIndex,S.dataType,I,O),g[I]=O}}).update(function(I,k){var z=S.get(T,I);if(x){var O=d.getItemGraphicEl(k),G=O?O.rotation:s,F=E(I,G);F.rotation=G,ot(F,{rotation:-((isNaN(+z)?L[0]:vt(z,D,L,!0))+Math.PI/2)},t),f.add(F),S.setItemGraphicEl(I,F)}if(b){var B=v[k],Y=B?B.shape.endAngle:s,H=R(I,Y),X=y.get("clip");ot(H,{shape:{endAngle:vt(z,D,L,X)}},t),f.add(H),yC(t.seriesIndex,S.dataType,I,H),g[I]=H}}).execute(),S.each(function(I){var k=S.getItemModel(I),z=k.getModel("emphasis"),O=z.get("focus"),G=z.get("blurScope"),F=z.get("disabled");if(x){var B=S.getItemGraphicEl(I),Y=S.getItemVisual(I,"style"),H=Y.fill;if(B instanceof Nr){var X=B.style;B.useStyle(ie({image:X.image,x:X.x,y:X.y,width:X.width,height:X.height},Y))}else B.useStyle(Y),B.type!=="pointer"&&B.setColor(H);B.setStyle(k.getModel(["pointer","itemStyle"]).getItemStyle()),B.style.fill==="auto"&&B.setStyle("fill",i(vt(S.get(T,I),D,[0,1],!0))),B.z2EmphasisLift=0,br(B,k),Ft(B,O,G,F)}if(b){var V=g[I];V.useStyle(S.getItemVisual(I,"style")),V.setStyle(k.getModel(["progress","itemStyle"]).getItemStyle()),V.z2EmphasisLift=0,br(V,k),Ft(V,O,G,F)}}),this._progressEls=g)},e.prototype._renderAnchor=function(t,n){var a=t.getModel("anchor"),i=a.get("show");if(i){var o=a.get("size"),s=a.get("icon"),l=a.get("offsetCenter"),u=a.get("keepAspect"),c=lr(s,n.cx-o/2+me(l[0],n.r),n.cy-o/2+me(l[1],n.r),o,o,null,u);c.z2=a.get("showAbove")?1:0,c.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(c)}},e.prototype._renderTitleAndDetail=function(t,n,a,i,o){var s=this,l=t.getData(),u=l.mapDimension("value"),c=+t.get("min"),f=+t.get("max"),d=new De,v=[],g=[],x=t.isAnimationEnabled(),y=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(b){v[b]=new at({silent:!0}),g[b]=new at({silent:!0})}).update(function(b,S){v[b]=s._titleEls[S],g[b]=s._detailEls[S]}).execute(),l.each(function(b){var S=l.getItemModel(b),T=l.get(u,b),C=new De,M=i(vt(T,[c,f],[0,1],!0)),D=S.getModel("title");if(D.get("show")){var L=D.get("offsetCenter"),E=o.cx+me(L[0],o.r),R=o.cy+me(L[1],o.r),I=v[b];I.attr({z2:y?0:2,style:Mt(D,{x:E,y:R,text:l.getName(b),align:"center",verticalAlign:"middle"},{inheritColor:M})}),C.add(I)}var k=S.getModel("detail");if(k.get("show")){var z=k.get("offsetCenter"),O=o.cx+me(z[0],o.r),G=o.cy+me(z[1],o.r),F=me(k.get("width"),o.r),B=me(k.get("height"),o.r),Y=t.get(["progress","show"])?l.getItemVisual(b,"style").fill:M,I=g[b],H=k.get("formatter");I.attr({z2:y?0:2,style:Mt(k,{x:O,y:G,text:h0(T,H),width:isNaN(F)?null:F,height:isNaN(B)?null:B,align:"center",verticalAlign:"middle"},{inheritColor:Y})}),fH(I,{normal:k},T,function(V){return h0(V,H)}),x&&hH(I,b,l,t,{getFormattedLabel:function(V,W,$,te,le,ge){return h0(ge?ge.interpolatedValue:T,H)}}),C.add(I)}d.add(C)}),this.group.add(d),this._titleEls=v,this._detailEls=g},e.type="gauge",e})(_t),zve=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,n){return fd(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,ee.color.neutral10]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:ee.color.axisTick,width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:ee.color.axisTickMinor,width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:ee.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:ee.color.neutral00,borderWidth:0,borderColor:ee.color.theme[0]}},title:{show:!0,offsetCenter:[0,"20%"],color:ee.color.secondary,fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:ee.color.transparent,borderWidth:0,borderColor:ee.color.neutral40,width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:ee.color.primary,fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e})(wt);function Bve(r){r.registerChartView(Pve),r.registerSeriesModel(zve)}var jve=["itemStyle","opacity"],Vve=(function(r){K(e,r);function e(t,n){var a=r.call(this)||this,i=a,o=new Vr,s=new at;return i.setTextContent(s),a.setTextGuideLine(o),a.updateData(t,n,!0),a}return e.prototype.updateData=function(t,n,a){var i=this,o=t.hostModel,s=t.getItemModel(n),l=t.getItemLayout(n),u=s.getModel("emphasis"),c=s.get(jve);c=c??1,a||ka(i),i.useStyle(t.getItemVisual(n,"style")),i.style.lineJoin="round",a?(i.setShape({points:l.points}),i.style.opacity=0,zt(i,{style:{opacity:c}},o,n)):ot(i,{style:{opacity:c},shape:{points:l.points}},o,n),br(i,s),this._updateLabel(t,n),Ft(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,n){var a=this,i=this.getTextGuideLine(),o=a.getTextContent(),s=t.hostModel,l=t.getItemModel(n),u=t.getItemLayout(n),c=u.label,f=t.getItemVisual(n,"style"),d=f.fill;Lr(o,_r(l),{labelFetcher:t.hostModel,labelDataIndex:n,defaultOpacity:f.opacity,defaultText:t.getName(n)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}});var v=l.getModel("label"),g=v.get("color"),x=g==="inherit"?d:null;a.setTextConfig({local:!0,inside:!!c.inside,insideStroke:x,outsideFill:x});var y=c.linePoints;i.setShape({points:y}),a.textGuideLineConfig={anchor:y?new Ie(y[0][0],y[0][1]):null},ot(o,{style:{x:c.x,y:c.y}},s,n),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),qD(a,ZD(l),{stroke:d})},e})(Jr),Gve=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,n,a){var i=t.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new Vve(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(i,l),s.add(c),i.setItemGraphicEl(l,c)}).remove(function(l){var u=o.getItemGraphicEl(l);jo(u,t,l)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e})(_t),Hve=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new hd(xe(this.getData,this),xe(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,n){return fd(this,{coordDimensions:["value"],encodeDefaulter:Ve(SD,this)})},e.prototype._defaultLabelLine=function(t){sc(t,"labelLine",["show"]);var n=t.labelLine,a=t.emphasis.labelLine;n.show=n.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var n=this.getData(),a=r.prototype.getDataParams.call(this,t),i=n.mapDimension("value"),o=n.getSum(i);return a.percent=o?+(n.get(i,t)/o*100).toFixed(2):0,a.$vars.push("percent"),a},e.type="series.funnel",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:ee.color.neutral00,borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:ee.color.primary}}},e})(wt);function Fve(r,e){for(var t=r.mapDimension("value"),n=r.mapArray(t,function(l){return l}),a=[],i=e==="ascending",o=0,s=r.count();o<s;o++)a[o]=o;return Ae(e)?a.sort(e):e!=="none"&&a.sort(function(l,u){return i?n[l]-n[u]:n[u]-n[l]}),a}function Uve(r){var e=r.hostModel,t=e.get("orient");r.each(function(n){var a=r.getItemModel(n),i=a.getModel("label"),o=i.get("position"),s=a.getModel("labelLine"),l=r.getItemLayout(n),u=l.points,c=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",f,d,v,g;if(c)o==="insideLeft"?(d=(u[0][0]+u[3][0])/2+5,v=(u[0][1]+u[3][1])/2,f="left"):o==="insideRight"?(d=(u[1][0]+u[2][0])/2-5,v=(u[1][1]+u[2][1])/2,f="right"):(d=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,v=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,f="center"),g=[[d,v],[d,v]];else{var x=void 0,y=void 0,b=void 0,S=void 0,T=s.get("length");o==="left"?(x=(u[3][0]+u[0][0])/2,y=(u[3][1]+u[0][1])/2,b=x-T,d=b-5,f="right"):o==="right"?(x=(u[1][0]+u[2][0])/2,y=(u[1][1]+u[2][1])/2,b=x+T,d=b+5,f="left"):o==="top"?(x=(u[3][0]+u[0][0])/2,y=(u[3][1]+u[0][1])/2,S=y-T,v=S-5,f="center"):o==="bottom"?(x=(u[1][0]+u[2][0])/2,y=(u[1][1]+u[2][1])/2,S=y+T,v=S+5,f="center"):o==="rightTop"?(x=t==="horizontal"?u[3][0]:u[1][0],y=t==="horizontal"?u[3][1]:u[1][1],t==="horizontal"?(S=y-T,v=S-5,f="center"):(b=x+T,d=b+5,f="top")):o==="rightBottom"?(x=u[2][0],y=u[2][1],t==="horizontal"?(S=y+T,v=S+5,f="center"):(b=x+T,d=b+5,f="bottom")):o==="leftTop"?(x=u[0][0],y=t==="horizontal"?u[0][1]:u[1][1],t==="horizontal"?(S=y-T,v=S-5,f="center"):(b=x-T,d=b-5,f="right")):o==="leftBottom"?(x=t==="horizontal"?u[1][0]:u[3][0],y=t==="horizontal"?u[1][1]:u[2][1],t==="horizontal"?(S=y+T,v=S+5,f="center"):(b=x-T,d=b-5,f="right")):(x=(u[1][0]+u[2][0])/2,y=(u[1][1]+u[2][1])/2,t==="horizontal"?(S=y+T,v=S+5,f="center"):(b=x+T,d=b+5,f="left")),t==="horizontal"?(b=x,d=b):(S=y,v=S),g=[[x,y],[b,S]]}l.label={linePoints:g,x:d,y:v,verticalAlign:"middle",textAlign:f,inside:c}})}function Yve(r,e){r.eachSeriesByType("funnel",function(t){var n=t.getData(),a=n.mapDimension("value"),i=t.get("sort"),o=Sr(t,e),s=Gt(t.getBoxLayoutParams(),o.refContainer),l=t.get("orient"),u=s.width,c=s.height,f=Fve(n,i),d=s.x,v=s.y,g=l==="horizontal"?[me(t.get("minSize"),c),me(t.get("maxSize"),c)]:[me(t.get("minSize"),u),me(t.get("maxSize"),u)],x=n.getDataExtent(a),y=t.get("min"),b=t.get("max");y==null&&(y=Math.min(x[0],0)),b==null&&(b=x[1]);var S=t.get("funnelAlign"),T=t.get("gap"),C=l==="horizontal"?u:c,M=(C-T*(n.count()-1))/n.count(),D=function(F,B){if(l==="horizontal"){var Y=n.get(a,F)||0,H=vt(Y,[y,b],g,!0),X=void 0;switch(S){case"top":X=v;break;case"center":X=v+(c-H)/2;break;case"bottom":X=v+(c-H);break}return[[B,X],[B,X+H]]}var V=n.get(a,F)||0,W=vt(V,[y,b],g,!0),$;switch(S){case"left":$=d;break;case"center":$=d+(u-W)/2;break;case"right":$=d+u-W;break}return[[$,B],[$+W,B]]};i==="ascending"&&(M=-M,T=-T,l==="horizontal"?d+=u:v+=c,f=f.reverse());for(var L=0;L<f.length;L++){var E=f[L],R=f[L+1],I=n.getItemModel(E);if(l==="horizontal"){var k=I.get(["itemStyle","width"]);k==null?k=M:(k=me(k,u),i==="ascending"&&(k=-k));var z=D(E,d),O=D(R,d+k);d+=k+T,n.setItemLayout(E,{points:z.concat(O.slice().reverse())})}else{var G=I.get(["itemStyle","height"]);G==null?G=M:(G=me(G,c),i==="ascending"&&(G=-G));var z=D(E,v),O=D(R,v+G);v+=G+T,n.setItemLayout(E,{points:z.concat(O.slice().reverse())})}}Uve(n)})}function Wve(r){r.registerChartView(Gve),r.registerSeriesModel(Hve),r.registerLayout(Yve),r.registerProcessor(cd("funnel"))}var Xve=.3,qve=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._dataGroup=new De,t._initialized=!1,t}return e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(t,n,a,i){this._progressiveEls=null;var o=this._dataGroup,s=t.getData(),l=this._data,u=t.coordinateSystem,c=u.dimensions,f=Pz(t);s.diff(l).add(d).update(v).remove(g).execute();function d(y){var b=Oz(s,o,y,c,u);MT(b,s,y,f)}function v(y,b){var S=l.getItemGraphicEl(b),T=lU(s,y,c,u);s.setItemGraphicEl(y,S),ot(S,{shape:{points:T}},t,y),ka(S),MT(S,s,y,f)}function g(y){var b=l.getItemGraphicEl(y);o.remove(b)}if(!this._initialized){this._initialized=!0;var x=Zve(u,t,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(x)}this._data=s},e.prototype.incrementalPrepareRender=function(t,n,a){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(t,n,a){for(var i=n.getData(),o=n.coordinateSystem,s=o.dimensions,l=Pz(n),u=this._progressiveEls=[],c=t.start;c<t.end;c++){var f=Oz(i,this._dataGroup,c,s,o);f.incremental=!0,MT(f,i,c,l),u.push(f)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e})(_t);function Zve(r,e,t){var n=r.model,a=r.getRect(),i=new We({shape:{x:a.x,y:a.y,width:a.width,height:a.height}}),o=n.get("layout")==="horizontal"?"width":"height";return i.setShape(o,0),zt(i,{shape:{width:a.width,height:a.height}},e,t),i}function lU(r,e,t,n){for(var a=[],i=0;i<t.length;i++){var o=t[i],s=r.get(r.mapDimension(o),e);$ve(s,n.getAxis(o).type)||a.push(n.dataToPoint(s,o))}return a}function Oz(r,e,t,n,a){var i=lU(r,t,n,a),o=new Vr({shape:{points:i},z2:10});return e.add(o),r.setItemGraphicEl(t,o),o}function Pz(r){var e=r.get("smooth",!0);return e===!0&&(e=Xve),e=Ui(e),Zr(e)&&(e=0),{smooth:e}}function MT(r,e,t,n){r.useStyle(e.getItemVisual(t,"style")),r.style.fill=null,r.setShape("smooth",n.smooth);var a=e.getItemModel(t),i=a.getModel("emphasis");br(r,a,"lineStyle"),Ft(r,i.get("focus"),i.get("blurScope"),i.get("disabled"))}function $ve(r,e){return e==="category"?r==null:r==null||isNaN(r)}var Kve=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.getInitialData=function(t,n){return Qi(null,this,{useEncodeDefaulter:xe(Qve,null,this)})},e.prototype.getRawIndicesByActiveState=function(t){var n=this.coordinateSystem,a=this.getData(),i=[];return n.eachActiveState(a,function(o,s){t===o&&i.push(a.getRawIndex(s))}),i},e.type="series.parallel",e.dependencies=["parallel"],e.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},e})(wt);function Qve(r){var e=r.ecModel.getComponent("parallel",r.get("parallelIndex"));if(e){var t={};return P(e.dimensions,function(n){var a=Jve(n);t[n]=a}),t}}function Jve(r){return+r.replace("dim","")}var epe=["lineStyle","opacity"],tpe={seriesType:"parallel",reset:function(r,e){var t=r.coordinateSystem,n={normal:r.get(["lineStyle","opacity"]),active:r.get("activeOpacity"),inactive:r.get("inactiveOpacity")};return{progress:function(a,i){t.eachActiveState(i,function(o,s){var l=n[o];if(o==="normal"&&i.hasItemOption){var u=i.getItemModel(s).get(epe,!0);u!=null&&(l=u)}var c=i.ensureUniqueItemVisual(s,"style");c.opacity=l},a.start,a.end)}}}};function rpe(r){npe(r),ape(r)}function npe(r){if(!r.parallel){var e=!1;P(r.series,function(t){t&&t.type==="parallel"&&(e=!0)}),e&&(r.parallel=[{}])}}function ape(r){var e=Dt(r.parallelAxis);P(e,function(t){if(Re(t)){var n=t.parallelIndex||0,a=Dt(r.parallel)[n];a&&a.parallelAxisDefault&&Fe(t,a.parallelAxisDefault,!1)}})}var ipe=5,ope=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){this._model=t,this._api=a,this._handlers||(this._handlers={},P(spe,function(i,o){a.getZr().on(o,this._handlers[o]=xe(i,this))},this)),id(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,n){rg(this,"_throttledDispatchExpand"),P(this._handlers,function(a,i){n.getZr().off(i,a)}),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(ie({type:"parallelAxisExpand"},t))},e.type="parallel",e})(Lt),spe={mousedown:function(r){DT(this,"click")&&(this._mouseDownPoint=[r.offsetX,r.offsetY])},mouseup:function(r){var e=this._mouseDownPoint;if(DT(this,"click")&&e){var t=[r.offsetX,r.offsetY],n=Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2);if(n>ipe)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!DT(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),n=t.behavior;n==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(n==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:n==="jump"?null:{duration:0}})}}};function DT(r,e){var t=r._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}var lpe=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var n=this.option;t&&Fe(n,t,!0),this._initDimensions()},e.prototype.contains=function(t,n){var a=t.get("parallelIndex");return a!=null&&n.getComponent("parallel",a)===this},e.prototype.setAxisExpand=function(t){P(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){t.hasOwnProperty(n)&&(this.option[n]=t[n])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],n=this.parallelAxisIndex=[],a=ht(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);P(a,function(i){t.push("dim"+i.get("dim")),n.push(i.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e})($e),upe=(function(r){K(e,r);function e(t,n,a,i,o){var s=r.call(this,t,n,a)||this;return s.type=i||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e})(za);function _l(r,e,t,n,a,i){r=r||0;var o=t[1]-t[0];if(a!=null&&(a=Of(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),n==="all"){var s=Math.abs(e[1]-e[0]);s=Of(s,[0,o]),a=i=Of(s,[a,i]),n=0}e[0]=Of(e[0],t),e[1]=Of(e[1],t);var l=LT(e,n);e[n]+=r;var u=a||0,c=t.slice();l.sign<0?c[0]+=u:c[1]-=u,e[n]=Of(e[n],c);var f;return f=LT(e,n),a!=null&&(f.sign!==l.sign||f.span<a)&&(e[1-n]=e[n]+l.sign*a),f=LT(e,n),i!=null&&f.span>i&&(e[1-n]=e[n]+f.sign*i),e}function LT(r,e){var t=r[e]-r[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function Of(r,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,r))}var NT=P,uU=Math.min,cU=Math.max,zz=Math.floor,cpe=Math.ceil,Bz=or,fpe=Math.PI,hpe=(function(){function r(e,t,n){this.type="parallel",this._axesMap=Te(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,n)}return r.prototype._init=function(e,t,n){var a=e.dimensions,i=e.parallelAxisIndex;NT(a,function(o,s){var l=i[s],u=t.getComponent("parallelAxis",l),c=this._axesMap.set(o,new upe(o,Fg(u),[0,0],u.get("type"),l)),f=c.type==="category";c.onBand=f&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},r.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),n=t.axisBase,a=t.layoutBase,i=t.pixelDimIndex,o=e[1-i],s=e[i];return o>=n&&o<=n+t.axisLength&&s>=a&&s<=a+t.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(n){if(e.contains(n,t)){var a=n.getData();NT(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(a,a.mapDimension(i)),vc(o.scale,o.model)},this)}},this)},r.prototype.resize=function(e,t){var n=Sr(e,t).refContainer;this._rect=Gt(e.getBoxLayoutParams(),n),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,n=["x","y"],a=["width","height"],i=e.get("layout"),o=i==="horizontal"?0:1,s=t[a[o]],l=[0,s],u=this.dimensions.length,c=d0(e.get("axisExpandWidth"),l),f=d0(e.get("axisExpandCount")||0,[0,u]),d=e.get("axisExpandable")&&u>3&&u>f&&f>1&&c>0&&s>0,v=e.get("axisExpandWindow"),g;if(v)g=d0(v[1]-v[0],l),v[1]=v[0]+g;else{g=d0(c*(f-1),l);var x=e.get("axisExpandCenter")||zz(u/2);v=[c*x-g/2],v[1]=v[0]+g}var y=(s-g)/(u-f);y<3&&(y=0);var b=[zz(Bz(v[0]/c,1))+1,cpe(Bz(v[1]/c,1))-1],S=y/c*v[0];return{layout:i,pixelDimIndex:o,layoutBase:t[n[o]],layoutLength:s,axisBase:t[n[1-o]],axisLength:t[a[1-o]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:y,axisExpandWindow:v,axisCount:u,winInnerIndices:b,axisExpandWindow0Pos:S}},r.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,n=this.dimensions,a=this._makeLayoutInfo(),i=a.layout;t.each(function(o){var s=[0,a.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),NT(n,function(o,s){var l=(a.axisExpandable?vpe:dpe)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},c={horizontal:fpe/2,vertical:0},f=[u[i].x+e.x,u[i].y+e.y],d=c[i],v=Mr();es(v,v,d),ni(v,v,f),this._axesLayout[o]={position:f,rotation:d,transform:v,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(e){return this._axesMap.get(e)},r.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},r.prototype.eachActiveState=function(e,t,n,a){n==null&&(n=0),a==null&&(a=e.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];P(o,function(y){s.push(e.mapDimension(y)),l.push(i.get(y).model)});for(var u=this.hasAxisBrushed(),c=n;c<a;c++){var f=void 0;if(!u)f="normal";else{f="active";for(var d=e.getValues(s,c),v=0,g=o.length;v<g;v++){var x=l[v].getActiveState(d[v]);if(x==="inactive"){f="inactive";break}}}t(f,c)}},r.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,n=!1,a=0,i=e.length;a<i;a++)t.get(e[a]).model.getActiveState()!=="normal"&&(n=!0);return n},r.prototype.axisCoordToPoint=function(e,t){var n=this._axesLayout[t];return Ja([e,0],n.transform)},r.prototype.getAxisLayout=function(e){return Me(this._axesLayout[e])},r.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),n=t.pixelDimIndex,a=t.axisExpandWindow.slice(),i=a[1]-a[0],o=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:a};var s=e[n]-t.layoutBase-t.axisExpandWindow0Pos,l,u="slide",c=t.axisCollapseWidth,f=this._model.get("axisExpandSlideTriggerArea"),d=f[0]!=null;if(c)d&&c&&s<i*f[0]?(u="jump",l=s-i*f[2]):d&&c&&s>i*(1-f[0])?(u="jump",l=s-i*(1-f[2])):(l=s-i*f[1])>=0&&(l=s-i*(1-f[1]))<=0&&(l=0),l*=t.axisExpandWidth/c,l?_l(l,a,o,"all"):u="none";else{var v=a[1]-a[0],g=o[1]*s/v;a=[cU(0,g-v/2)],a[1]=uU(o[1],a[0]+v),a[0]=a[1]-v}return{axisExpandWindow:a,behavior:u}},r})();function d0(r,e){return uU(cU(r,e[0]),e[1])}function dpe(r,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*r,axisNameAvailableWidth:t,axisLabelShow:!0}}function vpe(r,e){var t=e.layoutLength,n=e.axisExpandWidth,a=e.axisCount,i=e.axisCollapseWidth,o=e.winInnerIndices,s,l=i,u=!1,c;return r<o[0]?(s=r*i,c=i):r<=o[1]?(s=e.axisExpandWindow0Pos+r*n-e.axisExpandWindow[0],l=n,u=!0):(s=t-(a-1-r)*i,c=i),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:c}}function ppe(r,e){var t=[];return r.eachComponent("parallel",function(n,a){var i=new hpe(n,r,e);i.name="parallel_"+a,i.resize(n,e),n.coordinateSystem=i,i.model=n,t.push(i)}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="parallel"){var a=n.getReferringComponents("parallel",qt).models[0];n.coordinateSystem=a.coordinateSystem}}),t}var gpe={create:ppe},wA=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.activeIntervals=[],t}return e.prototype.getAreaSelectStyle=function(){return uc([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var n=this.activeIntervals=Me(t);if(n)for(var a=n.length-1;a>=0;a--)Jn(n[a])},e.prototype.getActiveState=function(t){var n=this.activeIntervals;if(!n.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(n.length===1){var a=n[0];if(a[0]<=t&&t<=a[1])return"active"}else for(var i=0,o=n.length;i<o;i++)if(n[i][0]<=t&&t<=n[i][1])return"active";return"inactive"},e})($e);Qt(wA,ud);var pc=!0,gg=Math.min,jh=Math.max,mpe=Math.pow,ype=1e4,xpe=6,bpe=6,jz="globalPan",_pe={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},Spe={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},Vz={brushStyle:{lineWidth:2,stroke:ee.color.backgroundTint,fill:ee.color.borderTint},transformable:!0,brushMode:"single",removeOnClick:!1},wpe=0,SL=(function(r){K(e,r);function e(t){var n=r.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=t,n.group=new De,n._uid="brushController_"+wpe++,P(Npe,function(a,i){this._handlers[i]=xe(a,this)},n),n}return e.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var n=this._zr;this._enableGlobalPan||ohe(n,jz,this._uid),P(this._handlers,function(a,i){n.on(i,a)}),this._brushType=t.brushType,this._brushOption=Fe(Me(Vz),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;she(t,jz,this._uid),P(this._handlers,function(n,a){t.off(a,n)}),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var n=this._panels={};P(t,function(a){n[a.panelId]=Me(a)})}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=n.getLocalTransform(),this},e.prototype.updateCovers=function(t){t=ce(t,function(d){return Fe(Me(Vz),d,!0)});var n="\0-brush-index-",a=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new Zo(a,t,u,l).add(c).update(c).remove(f).execute(),this;function l(d,v){return(d.id!=null?d.id:n+v)+"-"+d.brushType}function u(d,v){return l(d.__brushOption,v)}function c(d,v){var g=t[d];if(v!=null&&a[v]===s)i[d]=a[v];else{var x=i[d]=v!=null?(a[v].__brushOption=g,a[v]):hU(o,fU(o,g));wL(o,x)}}function f(d){a[d]!==s&&o.group.remove(a[d])}},e.prototype.unmount=function(){return this.enableBrush(!1),TA(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e})(Oa);function fU(r,e){var t=pb[e.brushType].createCover(r,e);return t.__brushOption=e,vU(t,e),r.group.add(t),t}function hU(r,e){var t=TL(e);return t.endCreating&&(t.endCreating(r,e),vU(e,e.__brushOption)),e}function dU(r,e){var t=e.__brushOption;TL(e).updateCoverShape(r,e,t.range,t)}function vU(r,e){var t=e.z;t==null&&(t=ype),r.traverse(function(n){n.z=t,n.z2=t})}function wL(r,e){TL(e).updateCommon(r,e),dU(r,e)}function TL(r){return pb[r.__brushOption.brushType]}function CL(r,e,t){var n=r._panels;if(!n)return pc;var a,i=r._transform;return P(n,function(o){o.isTargetByCursor(e,t,i)&&(a=o)}),a}function pU(r,e){var t=r._panels;if(!t)return pc;var n=e.__brushOption.panelId;return n!=null?t[n]:pc}function TA(r){var e=r._covers,t=e.length;return P(e,function(n){r.group.remove(n)},r),e.length=0,!!t}function gc(r,e){var t=ce(r._covers,function(n){var a=n.__brushOption,i=Me(a.range);return{brushType:a.brushType,panelId:a.panelId,range:i}});r.trigger("brush",{areas:t,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function Tpe(r){var e=r._track;if(!e.length)return!1;var t=e[e.length-1],n=e[0],a=t[0]-n[0],i=t[1]-n[1],o=mpe(a*a+i*i,.5);return o>xpe}function gU(r){var e=r.length-1;return e<0&&(e=0),[r[0],r[e]]}function mU(r,e,t,n){var a=new De;return a.add(new We({name:"main",style:AL(t),silent:!0,draggable:!0,cursor:"move",drift:Ve(Gz,r,e,a,["n","s","w","e"]),ondragend:Ve(gc,e,{isEnd:!0})})),P(n,function(i){a.add(new We({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Ve(Gz,r,e,a,i),ondragend:Ve(gc,e,{isEnd:!0})}))}),a}function yU(r,e,t,n){var a=n.brushStyle.lineWidth||0,i=jh(a,bpe),o=t[0][0],s=t[1][0],l=o-a/2,u=s-a/2,c=t[0][1],f=t[1][1],d=c-i+a/2,v=f-i+a/2,g=c-o,x=f-s,y=g+a,b=x+a;bo(r,e,"main",o,s,g,x),n.transformable&&(bo(r,e,"w",l,u,i,b),bo(r,e,"e",d,u,i,b),bo(r,e,"n",l,u,y,i),bo(r,e,"s",l,v,y,i),bo(r,e,"nw",l,u,i,i),bo(r,e,"ne",d,u,i,i),bo(r,e,"sw",l,v,i,i),bo(r,e,"se",d,v,i,i))}function CA(r,e){var t=e.__brushOption,n=t.transformable,a=e.childAt(0);a.useStyle(AL(t)),a.attr({silent:!n,cursor:n?"move":"default"}),P([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=e.childOfName(i.join("")),s=i.length===1?AA(r,i[0]):Ape(r,i);o&&o.attr({silent:!n,invisible:!n,cursor:n?Spe[s]+"-resize":null})})}function bo(r,e,t,n,a,i,o){var s=e.childOfName(t);s&&s.setShape(Dpe(ML(r,e,[[n,a],[n+i,a+o]])))}function AL(r){return Ne({strokeNoScale:!0},r.brushStyle)}function xU(r,e,t,n){var a=[gg(r,t),gg(e,n)],i=[jh(r,t),jh(e,n)];return[[a[0],i[0]],[a[1],i[1]]]}function Cpe(r){return fl(r.group)}function AA(r,e){var t={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},a=K1(t[e],Cpe(r));return n[a]}function Ape(r,e){var t=[AA(r,e[0]),AA(r,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function Gz(r,e,t,n,a,i){var o=t.__brushOption,s=r.toRectRange(o.range),l=bU(e,a,i);P(n,function(u){var c=_pe[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=r.fromRectRange(xU(s[0][0],s[1][0],s[0][1],s[1][1])),wL(e,t),gc(e,{isEnd:!1})}function Mpe(r,e,t,n){var a=e.__brushOption.range,i=bU(r,t,n);P(a,function(o){o[0]+=i[0],o[1]+=i[1]}),wL(r,e),gc(r,{isEnd:!1})}function bU(r,e,t){var n=r.group,a=n.transformCoordToLocal(e,t),i=n.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function ML(r,e,t){var n=pU(r,e);return n&&n!==pc?n.clipPath(t,r._transform):Me(t)}function Dpe(r){var e=gg(r[0][0],r[1][0]),t=gg(r[0][1],r[1][1]),n=jh(r[0][0],r[1][0]),a=jh(r[0][1],r[1][1]);return{x:e,y:t,width:n-e,height:a-t}}function Lpe(r,e,t){if(!(!r._brushType||Rpe(r,e.offsetX,e.offsetY))){var n=r._zr,a=r._covers,i=CL(r,e,t);if(!r._dragging)for(var o=0;o<a.length;o++){var s=a[o].__brushOption;if(i&&(i===pc||s.panelId===i.panelId)&&pb[s.brushType].contain(a[o],t[0],t[1]))return}i&&n.setCursorStyle("crosshair")}}function MA(r){var e=r.event;e.preventDefault&&e.preventDefault()}function DA(r,e,t){return r.childOfName("main").contain(e,t)}function _U(r,e,t,n){var a=r._creatingCover,i=r._creatingPanel,o=r._brushOption,s;if(r._track.push(t.slice()),Tpe(r)||a){if(i&&!a){o.brushMode==="single"&&TA(r);var l=Me(o);l.brushType=Hz(l.brushType,i),l.panelId=i===pc?null:i.panelId,a=r._creatingCover=fU(r,l),r._covers.push(a)}if(a){var u=pb[Hz(r._brushType,i)],c=a.__brushOption;c.range=u.getCreatingRange(ML(r,a,r._track)),n&&(hU(r,a),u.updateCommon(r,a)),dU(r,a),s={isEnd:n}}}else n&&o.brushMode==="single"&&o.removeOnClick&&CL(r,e,t)&&TA(r)&&(s={isEnd:n,removeOnClick:!0});return s}function Hz(r,e){return r==="auto"?e.defaultBrushType:r}var Npe={mousedown:function(r){if(this._dragging)Fz(this,r);else if(!r.target||!r.target.draggable){MA(r);var e=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var t=this._creatingPanel=CL(this,r,e);t&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(r){var e=r.offsetX,t=r.offsetY,n=this.group.transformCoordToLocal(e,t);if(Lpe(this,r,n),this._dragging){MA(r);var a=_U(this,r,n,!1);a&&gc(this,a)}},mouseup:function(r){Fz(this,r)}};function Fz(r,e){if(r._dragging){MA(e);var t=e.offsetX,n=e.offsetY,a=r.group.transformCoordToLocal(t,n),i=_U(r,e,a,!0);r._dragging=!1,r._track=[],r._creatingCover=null,i&&gc(r,i)}}function Rpe(r,e,t){var n=r._zr;return e<0||e>n.getWidth()||t<0||t>n.getHeight()}var pb={lineX:Uz(0),lineY:Uz(1),rect:{createCover:function(r,e){function t(n){return n}return mU({toRectRange:t,fromRectRange:t},r,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var e=gU(r);return xU(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(r,e,t,n){yU(r,e,t,n)},updateCommon:CA,contain:DA},polygon:{createCover:function(r,e){var t=new De;return t.add(new Vr({name:"main",style:AL(e),silent:!0})),t},getCreatingRange:function(r){return r},endCreating:function(r,e){e.remove(e.childAt(0)),e.add(new Jr({name:"main",draggable:!0,drift:Ve(Mpe,r,e),ondragend:Ve(gc,r,{isEnd:!0})}))},updateCoverShape:function(r,e,t,n){e.childAt(0).setShape({points:ML(r,e,t)})},updateCommon:CA,contain:DA}};function Uz(r){return{createCover:function(e,t){return mU({toRectRange:function(n){var a=[n,[0,100]];return r&&a.reverse(),a},fromRectRange:function(n){return n[r]}},e,t,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(e){var t=gU(e),n=gg(t[0][r],t[1][r]),a=jh(t[0][r],t[1][r]);return[n,a]},updateCoverShape:function(e,t,n,a){var i,o=pU(e,t);if(o!==pc&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=e._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[n,i];r&&l.reverse(),yU(e,t,l,a)},updateCommon:CA,contain:DA}}function SU(r){return r=DL(r),function(e){return nD(e,r)}}function wU(r,e){return r=DL(r),function(t){var n=e??t,a=n?r.width:r.height,i=n?r.x:r.y;return[i,i+(a||0)]}}function TU(r,e,t){var n=DL(r);return function(a,i){return n.contain(i[0],i[1])&&!L7(a,e,t)}}function DL(r){return ke.create(r)}var Epe=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n){r.prototype.init.apply(this,arguments),(this._brushController=new SL(n.getZr())).on("brush",xe(this._onBrush,this))},e.prototype.render=function(t,n,a,i){if(!Ipe(t,n,i)){this.axisModel=t,this.api=a,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new De,this.group.add(this._axisGroup),!!t.get("show")){var s=Ope(t,n),l=s.coordinateSystem,u=t.getAreaSelectStyle(),c=u.width,f=t.axis.dim,d=l.getAxisLayout(f),v=ie({strokeContainThreshold:c},d),g=new mn(t,a,v);g.build(),this._axisGroup.add(g.group),this._refreshBrushController(v,u,t,s,c,a),jg(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,n,a,i,o,s){var l=a.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),f=ke.create({x:l[0],y:-o/2,width:u,height:o});f.x-=c,f.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:SU(f),isTargetByCursor:TU(f,s,i),getLinearBrushOtherExtent:wU(f,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(kpe(a))},e.prototype._onBrush=function(t){var n=t.areas,a=this.axisModel,i=a.axis,o=ce(n,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!a.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e})(Lt);function Ipe(r,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===r}function kpe(r){var e=r.axis;return ce(r.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function Ope(r,e){return e.getComponent("parallel",r.get("parallelIndex"))}var Ppe={type:"axisAreaSelect",event:"axisAreaSelected"};function zpe(r){r.registerAction(Ppe,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(n){n.axis.model.setActiveIntervals(e.intervals)})}),r.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(n){n.setAxisExpand(e)})})}var Bpe={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function CU(r){r.registerComponentView(ope),r.registerComponentModel(lpe),r.registerCoordinateSystem("parallel",gpe),r.registerPreprocessor(rpe),r.registerComponentModel(wA),r.registerComponentView(Epe),zh(r,"parallel",wA,Bpe),zpe(r)}function jpe(r){Ue(CU),r.registerChartView(qve),r.registerSeriesModel(Kve),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,tpe)}var Vpe=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return r})(),Gpe=(function(r){K(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new Vpe},e.prototype.buildPath=function(t,n){var a=n.extent;t.moveTo(n.x1,n.y1),t.bezierCurveTo(n.cpx1,n.cpy1,n.cpx2,n.cpy2,n.x2,n.y2),n.orient==="vertical"?(t.lineTo(n.x2+a,n.y2),t.bezierCurveTo(n.cpx2+a,n.cpy2,n.cpx1+a,n.cpy1,n.x1+a,n.y1)):(t.lineTo(n.x2,n.y2+a),t.bezierCurveTo(n.cpx2,n.cpy2+a,n.cpx1,n.cpy1+a,n.x1,n.y1+a)),t.closePath()},e.prototype.highlight=function(){Xo(this)},e.prototype.downplay=function(){qo(this)},e})(et),Hpe=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._mainGroup=new De,t._focusAdjacencyDisabled=!1,t}return e.prototype.init=function(t,n){this._controller=new Ac(n.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(t,n,a){var i=this,o=t.getGraph(),s=this._mainGroup,l=t.layoutInfo,u=l.width,c=l.height,f=t.getData(),d=t.getData("edge"),v=t.get("orient");this._model=t,s.removeAll(),s.x=l.x,s.y=l.y,this._updateViewCoordSys(t,a),N7(t,a,s,this._controller,this._controllerHost,null),o.eachEdge(function(g){var x=new Gpe,y=ze(x);y.dataIndex=g.dataIndex,y.seriesIndex=t.seriesIndex,y.dataType="edge";var b=g.getModel(),S=b.getModel("lineStyle"),T=S.get("curveness"),C=g.node1.getLayout(),M=g.node1.getModel(),D=M.get("localX"),L=M.get("localY"),E=g.node2.getLayout(),R=g.node2.getModel(),I=R.get("localX"),k=R.get("localY"),z=g.getLayout(),O,G,F,B,Y,H,X,V;x.shape.extent=Math.max(1,z.dy),x.shape.orient=v,v==="vertical"?(O=(D!=null?D*u:C.x)+z.sy,G=(L!=null?L*c:C.y)+C.dy,F=(I!=null?I*u:E.x)+z.ty,B=k!=null?k*c:E.y,Y=O,H=G*(1-T)+B*T,X=F,V=G*T+B*(1-T)):(O=(D!=null?D*u:C.x)+C.dx,G=(L!=null?L*c:C.y)+z.sy,F=I!=null?I*u:E.x,B=(k!=null?k*c:E.y)+z.ty,Y=O*(1-T)+F*T,H=G,X=O*T+F*(1-T),V=B),x.setShape({x1:O,y1:G,x2:F,y2:B,cpx1:Y,cpy1:H,cpx2:X,cpy2:V}),x.useStyle(S.getItemStyle()),Yz(x.style,v,g);var W=""+b.get("value"),$=_r(b,"edgeLabel");Lr(x,$,{labelFetcher:{getFormattedLabel:function(ge,we,de,ve,be,Oe){return t.getFormattedLabel(ge,we,"edge",ve,Rn(be,$.normal&&$.normal.get("formatter"),W),Oe)}},labelDataIndex:g.dataIndex,defaultText:W}),x.setTextConfig({position:"inside"});var te=b.getModel("emphasis");br(x,b,"lineStyle",function(ge){var we=ge.getItemStyle();return Yz(we,v,g),we}),s.add(x),d.setItemGraphicEl(g.dataIndex,x);var le=te.get("focus");Ft(x,le==="adjacency"?g.getAdjacentDataIndices():le==="trajectory"?g.getTrajectoryDataIndices():le,te.get("blurScope"),te.get("disabled"))}),o.eachNode(function(g){var x=g.getLayout(),y=g.getModel(),b=y.get("localX"),S=y.get("localY"),T=y.getModel("emphasis"),C=y.get(["itemStyle","borderRadius"])||0,M=new We({shape:{x:b!=null?b*u:x.x,y:S!=null?S*c:x.y,width:x.dx,height:x.dy,r:C},style:y.getModel("itemStyle").getItemStyle(),z2:10});Lr(M,_r(y),{labelFetcher:{getFormattedLabel:function(L,E){return t.getFormattedLabel(L,E,"node")}},labelDataIndex:g.dataIndex,defaultText:g.id}),M.disableLabelAnimation=!0,M.setStyle("fill",g.getVisual("color")),M.setStyle("decal",g.getVisual("style").decal),br(M,y),s.add(M),f.setItemGraphicEl(g.dataIndex,M),ze(M).dataType="node";var D=T.get("focus");Ft(M,D==="adjacency"?g.getAdjacentDataIndices():D==="trajectory"?g.getTrajectoryDataIndices():D,T.get("blurScope"),T.get("disabled"))}),f.eachItemGraphicEl(function(g,x){var y=f.getItemModel(x);y.get("draggable")&&(g.drift=function(b,S){i._focusAdjacencyDisabled=!0,this.shape.x+=b,this.shape.y+=S,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:f.getRawIndex(x),localX:this.shape.x/u,localY:this.shape.y/c})},g.ondragend=function(){i._focusAdjacencyDisabled=!1},g.draggable=!0,g.cursor="move")}),!this._data&&t.isAnimationEnabled()&&s.setClipPath(Fpe(s.getBoundingRect(),t,function(){s.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._updateViewCoordSys=function(t,n){var a=t.layoutInfo,i=a.width,o=a.height,s=t.coordinateSystem=new Mc(null,{api:n,ecModel:t.ecModel});s.zoomLimit=t.get("scaleLimit"),s.setBoundingRect(0,0,i,o),s.setCenter(t.get("center")),s.setZoom(t.get("zoom")),this._controllerHost.target.attr({x:s.x,y:s.y,scaleX:s.scaleX,scaleY:s.scaleY})},e.type="sankey",e})(_t);function Yz(r,e,t){switch(r.fill){case"source":r.fill=t.node1.getVisual("color"),r.decal=t.node1.getVisual("style").decal;break;case"target":r.fill=t.node2.getVisual("color"),r.decal=t.node2.getVisual("style").decal;break;case"gradient":var n=t.node1.getVisual("color"),a=t.node2.getVisual("color");ye(n)&&ye(a)&&(r.fill=new bc(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:n,offset:0},{color:a,offset:1}]))}}function Fpe(r,e,t){var n=new We({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return zt(n,{shape:{width:r.width+20}},e,t),n}var Upe=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,n){var a=t.edges||t.links||[],i=t.data||t.nodes||[],o=t.levels||[];this.levelModels=[];for(var s=this.levelModels,l=0;l<o.length;l++)o[l].depth!=null&&o[l].depth>=0&&(s[o[l].depth]=new Je(o[l],this,n));var u=_L(i,a,this,!0,c);return u.data;function c(f,d){f.wrapMethod("getItemModel",function(v,g){var x=v.parentModel,y=x.getData().getItemLayout(g);if(y){var b=y.depth,S=x.levelModels[b];S&&(v.parentModel=S)}return v}),d.wrapMethod("getItemModel",function(v,g){var x=v.parentModel,y=x.getGraph().getEdgeByIndex(g),b=y.node1.getLayout();if(b){var S=b.depth,T=x.levelModels[S];T&&(v.parentModel=T)}return v})}},e.prototype.setNodePosition=function(t,n){var a=this.option.data||this.option.nodes,i=a[t];i.localX=n[0],i.localY=n[1]},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,n,a){function i(v){return isNaN(v)||v==null}if(a==="edge"){var o=this.getDataParams(t,a),s=o.data,l=o.value,u=s.source+" -- "+s.target;return vr("nameValue",{name:u,value:l,noValue:i(l)})}else{var c=this.getGraph().getNodeByIndex(t),f=c.getLayout().value,d=this.getDataParams(t,a).data.name;return vr("nameValue",{name:d!=null?d+"":null,value:f,noValue:i(f)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,n){var a=r.prototype.getDataParams.call(this,t,n);if(a.value==null&&n==="node"){var i=this.getGraph().getNodeByIndex(t),o=i.getLayout().value;a.value=o}return a},e.type="series.sankey",e.layoutMode="box",e.defaultOption={z:2,coordinateSystemUsage:"box",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,roam:!1,roamTrigger:"global",center:null,zoom:1,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:ee.color.neutral50,opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:ee.color.primary}},animationEasing:"linear",animationDuration:1e3},e})(wt);function Ype(r,e){r.eachSeriesByType("sankey",function(t){var n=t.get("nodeWidth"),a=t.get("nodeGap"),i=Sr(t,e).refContainer,o=Gt(t.getBoxLayoutParams(),i);t.layoutInfo=o;var s=o.width,l=o.height,u=t.getGraph(),c=u.nodes,f=u.edges;Xpe(c);var d=ht(c,function(y){return y.getLayout().value===0}),v=d.length!==0?0:t.get("layoutIterations"),g=t.get("orient"),x=t.get("nodeAlign");Wpe(c,f,n,a,s,l,v,g,x)})}function Wpe(r,e,t,n,a,i,o,s,l){qpe(r,e,t,a,i,s,l),Qpe(r,e,i,a,n,o,s),sge(r,s)}function Xpe(r){P(r,function(e){var t=vl(e.outEdges,l1),n=vl(e.inEdges,l1),a=e.getValue()||0,i=Math.max(t,n,a);e.setLayout({value:i},!0)})}function qpe(r,e,t,n,a,i,o){for(var s=[],l=[],u=[],c=[],f=0,d=0;d<e.length;d++)s[d]=1;for(var d=0;d<r.length;d++)l[d]=r[d].inEdges.length,l[d]===0&&u.push(r[d]);for(var v=-1;u.length;){for(var g=0;g<u.length;g++){var x=u[g],y=x.hostGraph.data.getRawDataItem(x.dataIndex),b=y.depth!=null&&y.depth>=0;b&&y.depth>v&&(v=y.depth),x.setLayout({depth:b?y.depth:f},!0),i==="vertical"?x.setLayout({dy:t},!0):x.setLayout({dx:t},!0);for(var S=0;S<x.outEdges.length;S++){var T=x.outEdges[S],C=e.indexOf(T);s[C]=0;var M=T.node2,D=r.indexOf(M);--l[D]===0&&c.indexOf(M)<0&&c.push(M)}}++f,u=c,c=[]}for(var d=0;d<s.length;d++)if(s[d]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var L=v>f-1?v:f-1;o&&o!=="left"&&Zpe(r,o,i,L);var E=i==="vertical"?(a-t)/L:(n-t)/L;Kpe(r,E,i)}function AU(r){var e=r.hostGraph.data.getRawDataItem(r.dataIndex);return e.depth!=null&&e.depth>=0}function Zpe(r,e,t,n){if(e==="right"){for(var a=[],i=r,o=0;i.length;){for(var s=0;s<i.length;s++){var l=i[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];a.indexOf(c.node1)<0&&a.push(c.node1)}}i=a,a=[],++o}P(r,function(f){AU(f)||f.setLayout({depth:Math.max(0,n-f.getLayout().skNodeHeight)},!0)})}else e==="justify"&&$pe(r,n)}function $pe(r,e){P(r,function(t){!AU(t)&&!t.outEdges.length&&t.setLayout({depth:e},!0)})}function Kpe(r,e,t){P(r,function(n){var a=n.getLayout().depth*e;t==="vertical"?n.setLayout({y:a},!0):n.setLayout({x:a},!0)})}function Qpe(r,e,t,n,a,i,o){var s=Jpe(r,o);ege(s,e,t,n,a,o),RT(s,a,t,n,o);for(var l=1;i>0;i--)l*=.99,tge(s,l,o),RT(s,a,t,n,o),oge(s,l,o),RT(s,a,t,n,o)}function Jpe(r,e){var t=[],n=e==="vertical"?"y":"x",a=dC(r,function(i){return i.getLayout()[n]});return a.keys.sort(function(i,o){return i-o}),P(a.keys,function(i){t.push(a.buckets.get(i))}),t}function ege(r,e,t,n,a,i){var o=1/0;P(r,function(s){var l=s.length,u=0;P(s,function(f){u+=f.getLayout().value});var c=i==="vertical"?(n-(l-1)*a)/u:(t-(l-1)*a)/u;c<o&&(o=c)}),P(r,function(s){P(s,function(l,u){var c=l.getLayout().value*o;i==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:c},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:c},!0))})}),P(e,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function RT(r,e,t,n,a){var i=a==="vertical"?"x":"y";P(r,function(o){o.sort(function(x,y){return x.getLayout()[i]-y.getLayout()[i]});for(var s,l,u,c=0,f=o.length,d=a==="vertical"?"dx":"dy",v=0;v<f;v++)l=o[v],u=c-l.getLayout()[i],u>0&&(s=l.getLayout()[i]+u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]+l.getLayout()[d]+e;var g=a==="vertical"?n:t;if(u=c-e-g,u>0){s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var v=f-2;v>=0;--v)l=o[v],u=l.getLayout()[i]+l.getLayout()[d]+e-c,u>0&&(s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]}})}function tge(r,e,t){P(r.slice().reverse(),function(n){P(n,function(a){if(a.outEdges.length){var i=vl(a.outEdges,rge,t)/vl(a.outEdges,l1);if(isNaN(i)){var o=a.outEdges.length;i=o?vl(a.outEdges,nge,t)/o:0}if(t==="vertical"){var s=a.getLayout().x+(i-Sl(a,t))*e;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-Sl(a,t))*e;a.setLayout({y:l},!0)}}})})}function rge(r,e){return Sl(r.node2,e)*r.getValue()}function nge(r,e){return Sl(r.node2,e)}function age(r,e){return Sl(r.node1,e)*r.getValue()}function ige(r,e){return Sl(r.node1,e)}function Sl(r,e){return e==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function l1(r){return r.getValue()}function vl(r,e,t){for(var n=0,a=r.length,i=-1;++i<a;){var o=+e(r[i],t);isNaN(o)||(n+=o)}return n}function oge(r,e,t){P(r,function(n){P(n,function(a){if(a.inEdges.length){var i=vl(a.inEdges,age,t)/vl(a.inEdges,l1);if(isNaN(i)){var o=a.inEdges.length;i=o?vl(a.inEdges,ige,t)/o:0}if(t==="vertical"){var s=a.getLayout().x+(i-Sl(a,t))*e;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-Sl(a,t))*e;a.setLayout({y:l},!0)}}})})}function sge(r,e){var t=e==="vertical"?"x":"y";P(r,function(n){n.outEdges.sort(function(a,i){return a.node2.getLayout()[t]-i.node2.getLayout()[t]}),n.inEdges.sort(function(a,i){return a.node1.getLayout()[t]-i.node1.getLayout()[t]})}),P(r,function(n){var a=0,i=0;P(n.outEdges,function(o){o.setLayout({sy:a},!0),a+=o.getLayout().dy}),P(n.inEdges,function(o){o.setLayout({ty:i},!0),i+=o.getLayout().dy})})}function lge(r){r.eachSeriesByType("sankey",function(e){var t=e.getGraph(),n=t.nodes,a=t.edges;if(n.length){var i=1/0,o=-1/0;P(n,function(s){var l=s.getLayout().value;l<i&&(i=l),l>o&&(o=l)}),P(n,function(s){var l=new Dr({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:e.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}a.length&&P(a,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function uge(r){r.registerChartView(Hpe),r.registerSeriesModel(Upe),r.registerLayout(Ype),r.registerVisual(lge),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(n){n.setNodePosition(e.dataIndex,[e.localX,e.localY])})}),r.registerAction({type:"sankeyRoam",event:"sankeyRoam",update:"none"},function(e,t,n){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(a){var i=a.coordinateSystem,o=fb(i,e,a.get("scaleLimit"));a.setCenter(o.center),a.setZoom(o.zoom)})})}var MU=(function(){function r(){}return r.prototype._hasEncodeRule=function(e){var t=this.getEncode();return t&&t.get(e)!=null},r.prototype.getInitialData=function(e,t){var n,a=t.getComponent("xAxis",this.get("xAxisIndex")),i=t.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),l;o==="category"?(e.layout="horizontal",n=a.getOrdinalMeta(),l=!this._hasEncodeRule("x")):s==="category"?(e.layout="vertical",n=i.getOrdinalMeta(),l=!this._hasEncodeRule("y")):e.layout=e.layout||"horizontal";var u=["x","y"],c=e.layout==="horizontal"?0:1,f=this._baseAxisDim=u[c],d=u[1-c],v=[a,i],g=v[c].get("type"),x=v[1-c].get("type"),y=e.data;if(y&&l){var b=[];P(y,function(C,M){var D;ue(C)?(D=C.slice(),C.unshift(M)):ue(C.value)?(D=ie({},C),D.value=D.value.slice(),C.value.unshift(M)):D=C,b.push(D)}),e.data=b}var S=this.defaultValueDimensions,T=[{name:f,type:Yx(g),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:Yx(x),dimsDef:S.slice()}];return fd(this,{coordDimensions:T,dimensionsCount:S.length+1,encodeDefaulter:Ve(zH,T,this)})},r.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},r})(),DU=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:ee.color.neutral00,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:ee.color.shadow}},animationDuration:800},e})(wt);Qt(DU,MU,!0);var cge=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=t.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=t.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var c=i.getItemLayout(u),f=Wz(c,i,u,l,!0);i.setItemGraphicEl(u,f),o.add(f)}}).update(function(u,c){var f=s.getItemGraphicEl(c);if(!i.hasValue(u)){o.remove(f);return}var d=i.getItemLayout(u);f?(ka(f),LU(d,f,i,u)):f=Wz(d,i,u,l),o.add(f),i.setItemGraphicEl(u,f)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=i},e.prototype.remove=function(t){var n=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(i){i&&n.remove(i)})},e.type="boxplot",e})(_t),fge=(function(){function r(){}return r})(),hge=(function(r){K(e,r);function e(t){var n=r.call(this,t)||this;return n.type="boxplotBoxPath",n}return e.prototype.getDefaultShape=function(){return new fge},e.prototype.buildPath=function(t,n){var a=n.points,i=0;for(t.moveTo(a[i][0],a[i][1]),i++;i<4;i++)t.lineTo(a[i][0],a[i][1]);for(t.closePath();i<a.length;i++)t.moveTo(a[i][0],a[i][1]),i++,t.lineTo(a[i][0],a[i][1])},e})(et);function Wz(r,e,t,n,a){var i=r.ends,o=new hge({shape:{points:a?dge(i,n,r):i}});return LU(r,o,e,t,a),o}function LU(r,e,t,n,a){var i=t.hostModel,o=_c[a?"initProps":"updateProps"];o(e,{shape:{points:r.ends}},i,n),e.useStyle(t.getItemVisual(n,"style")),e.style.strokeNoScale=!0,e.z2=100;var s=t.getItemModel(n),l=s.getModel("emphasis");br(e,s),Ft(e,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function dge(r,e,t){return ce(r,function(n){return n=n.slice(),n[e]=t.initBaseline,n})}var Ep=P;function vge(r){var e=pge(r);Ep(e,function(t){var n=t.seriesModels;n.length&&(gge(t),Ep(n,function(a,i){mge(a,t.boxOffsetList[i],t.boxWidthList[i])}))})}function pge(r){var e=[],t=[];return r.eachSeriesByType("boxplot",function(n){var a=n.getBaseAxis(),i=Ge(t,a);i<0&&(i=t.length,t[i]=a,e[i]={axis:a,seriesModels:[]}),e[i].seriesModels.push(n)}),e}function gge(r){var e=r.axis,t=r.seriesModels,n=t.length,a=r.boxWidthList=[],i=r.boxOffsetList=[],o=[],s;if(e.type==="category")s=e.getBandWidth();else{var l=0;Ep(t,function(g){l=Math.max(l,g.getData().count())});var u=e.getExtent();s=Math.abs(u[1]-u[0])/l}Ep(t,function(g){var x=g.get("boxWidth");ue(x)||(x=[x,x]),o.push([me(x[0],s)||0,me(x[1],s)||0])});var c=s*.8-2,f=c/n*.3,d=(c-f*(n-1))/n,v=d/2-c/2;Ep(t,function(g,x){i.push(v),v+=f+d,a.push(Math.min(Math.max(d,o[x][0]),o[x][1]))})}function mge(r,e,t){var n=r.coordinateSystem,a=r.getData(),i=t/2,o=r.get("layout")==="horizontal"?0:1,s=1-o,l=["x","y"],u=a.mapDimension(l[o]),c=a.mapDimensionsAll(l[s]);if(u==null||c.length<5)return;for(var f=0;f<a.count();f++){var d=a.get(u,f),v=T(d,c[2],f),g=T(d,c[0],f),x=T(d,c[1],f),y=T(d,c[3],f),b=T(d,c[4],f),S=[];C(S,x,!1),C(S,y,!0),S.push(g,x,b,y),M(S,g),M(S,b),M(S,v),a.setItemLayout(f,{initBaseline:v[s],ends:S})}function T(D,L,E){var R=a.get(L,E),I=[];I[o]=D,I[s]=R;var k;return isNaN(D)||isNaN(R)?k=[NaN,NaN]:(k=n.dataToPoint(I),k[o]+=e),k}function C(D,L,E){var R=L.slice(),I=L.slice();R[o]+=i,I[o]-=i,E?D.push(R,I):D.push(I,R)}function M(D,L){var E=L.slice(),R=L.slice();E[o]-=i,R[o]+=i,D.push(E,R)}}function yge(r,e){e=e||{};for(var t=[],n=[],a=e.boundIQR,i=a==="none"||a===0,o=0;o<r.length;o++){var s=Jn(r[o].slice()),l=F0(s,.25),u=F0(s,.5),c=F0(s,.75),f=s[0],d=s[s.length-1],v=(a??1.5)*(c-l),g=i?f:Math.max(f,l-v),x=i?d:Math.min(d,c+v),y=e.itemNameFormatter,b=Ae(y)?y({value:o}):ye(y)?y.replace("{value}",o+""):o+"";t.push([b,g,l,u,c,x]);for(var S=0;S<s.length;S++){var T=s[S];if(T<g||T>x){var C=[b,T];n.push(C)}}}return{boxData:t,outliers:n}}var xge={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==Gr){var n="";pt(n)}var a=yge(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function bge(r){r.registerSeriesModel(DU),r.registerChartView(cge),r.registerLayout(vge),r.registerTransform(xge)}var _ge=["itemStyle","borderColor"],Sge=["itemStyle","borderColor0"],wge=["itemStyle","borderColorDoji"],Tge=["itemStyle","color"],Cge=["itemStyle","color0"];function LL(r,e){return e.get(r>0?Tge:Cge)}function NL(r,e){return e.get(r===0?wge:r>0?_ge:Sge)}var Age={seriesType:"candlestick",plan:ad(),performRawSeries:!0,reset:function(r,e){if(!e.isSeriesFiltered(r)){var t=r.pipelineContext.large;return!t&&{progress:function(n,a){for(var i;(i=n.next())!=null;){var o=a.getItemModel(i),s=a.getItemLayout(i).sign,l=o.getItemStyle();l.fill=LL(s,o),l.stroke=NL(s,o)||l.fill;var u=a.ensureUniqueItemVisual(i,"style");ie(u,l)}}}}}},Mge=["color","borderColor"],Dge=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,n,a){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,n,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,n):this._incrementalRenderNormal(t,n)},e.prototype.eachRendered=function(t){Ml(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var n=t.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},e.prototype._renderNormal=function(t){var n=t.getData(),a=this._data,i=this.group,o=n.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),n.diff(a).add(function(c){if(n.hasValue(c)){var f=n.getItemLayout(c);if(s&&Xz(u,f))return;var d=ET(f,c,!0);zt(d,{shape:{points:f.ends}},t,c),IT(d,n,c,o),i.add(d),n.setItemGraphicEl(c,d)}}).update(function(c,f){var d=a.getItemGraphicEl(f);if(!n.hasValue(c)){i.remove(d);return}var v=n.getItemLayout(c);if(s&&Xz(u,v)){i.remove(d);return}d?(ot(d,{shape:{points:v.ends}},t,c),ka(d)):d=ET(v),IT(d,n,c,o),i.add(d),n.setItemGraphicEl(c,d)}).remove(function(c){var f=a.getItemGraphicEl(c);f&&i.remove(f)}).execute(),this._data=n},e.prototype._renderLarge=function(t){this._clear(),qz(t,this.group);var n=t.get("clip",!0)?Wg(t.coordinateSystem,!1,t):null;n?this.group.setClipPath(n):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,n){for(var a=n.getData(),i=a.getLayout("isSimpleBox"),o;(o=t.next())!=null;){var s=a.getItemLayout(o),l=ET(s);IT(l,a,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(t,n){qz(n,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e})(_t),Lge=(function(){function r(){}return r})(),Nge=(function(r){K(e,r);function e(t){var n=r.call(this,t)||this;return n.type="normalCandlestickBox",n}return e.prototype.getDefaultShape=function(){return new Lge},e.prototype.buildPath=function(t,n){var a=n.points;this.__simpleBox?(t.moveTo(a[4][0],a[4][1]),t.lineTo(a[6][0],a[6][1])):(t.moveTo(a[0][0],a[0][1]),t.lineTo(a[1][0],a[1][1]),t.lineTo(a[2][0],a[2][1]),t.lineTo(a[3][0],a[3][1]),t.closePath(),t.moveTo(a[4][0],a[4][1]),t.lineTo(a[5][0],a[5][1]),t.moveTo(a[6][0],a[6][1]),t.lineTo(a[7][0],a[7][1]))},e})(et);function ET(r,e,t){var n=r.ends;return new Nge({shape:{points:t?Rge(n,r):n},z2:100})}function Xz(r,e){for(var t=!0,n=0;n<e.ends.length;n++)if(r.contain(e.ends[n][0],e.ends[n][1])){t=!1;break}return t}function IT(r,e,t,n){var a=e.getItemModel(t);r.useStyle(e.getItemVisual(t,"style")),r.style.strokeNoScale=!0,r.__simpleBox=n,br(r,a);var i=e.getItemLayout(t).sign;P(r.states,function(s,l){var u=a.getModel(l),c=LL(i,u),f=NL(i,u)||c,d=s.style||(s.style={});c&&(d.fill=c),f&&(d.stroke=f)});var o=a.getModel("emphasis");Ft(r,o.get("focus"),o.get("blurScope"),o.get("disabled"))}function Rge(r,e){return ce(r,function(t){return t=t.slice(),t[1]=e.initBaseline,t})}var Ege=(function(){function r(){}return r})(),kT=(function(r){K(e,r);function e(t){var n=r.call(this,t)||this;return n.type="largeCandlestickBox",n}return e.prototype.getDefaultShape=function(){return new Ege},e.prototype.buildPath=function(t,n){for(var a=n.points,i=0;i<a.length;)if(this.__sign===a[i++]){var o=a[i++];t.moveTo(o,a[i++]),t.lineTo(o,a[i++])}else i+=3},e})(et);function qz(r,e,t,n){var a=r.getData(),i=a.getLayout("largePoints"),o=new kT({shape:{points:i},__sign:1,ignoreCoarsePointer:!0});e.add(o);var s=new kT({shape:{points:i},__sign:-1,ignoreCoarsePointer:!0});e.add(s);var l=new kT({shape:{points:i},__sign:0,ignoreCoarsePointer:!0});e.add(l),OT(1,o,r),OT(-1,s,r),OT(0,l,r),n&&(o.incremental=!0,s.incremental=!0),t&&t.push(o,s)}function OT(r,e,t,n){var a=NL(r,t)||LL(r,t),i=t.getModel("itemStyle").getItemStyle(Mge);e.useStyle(i),e.style.fill=null,e.style.stroke=a}var NU=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,n,a){var i=n.getItemLayout(t);return i&&a.rect(i.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e})(wt);Qt(NU,MU,!0);function Ige(r){!r||!ue(r.series)||P(r.series,function(e){Re(e)&&e.type==="k"&&(e.type="candlestick")})}var kge={seriesType:"candlestick",plan:ad(),reset:function(r){var e=r.coordinateSystem,t=r.getData(),n=Oge(r,t),a=0,i=1,o=["x","y"],s=t.getDimensionIndex(t.mapDimension(o[a])),l=ce(t.mapDimensionsAll(o[i]),t.getDimensionIndex,t),u=l[0],c=l[1],f=l[2],d=l[3];if(t.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),s<0||l.length<4)return;return{progress:r.pipelineContext.large?g:v};function v(x,y){for(var b,S=y.getStore();(b=x.next())!=null;){var T=S.get(s,b),C=S.get(u,b),M=S.get(c,b),D=S.get(f,b),L=S.get(d,b),E=Math.min(C,M),R=Math.max(C,M),I=Y(E,T),k=Y(R,T),z=Y(D,T),O=Y(L,T),G=[];H(G,k,0),H(G,I,1),G.push(V(O),V(k),V(z),V(I));var F=y.getItemModel(b),B=!!F.get(["itemStyle","borderColorDoji"]);y.setItemLayout(b,{sign:Zz(S,b,C,M,c,B),initBaseline:C>M?k[i]:I[i],ends:G,brushRect:X(D,L,T)})}function Y(W,$){var te=[];return te[a]=$,te[i]=W,isNaN($)||isNaN(W)?[NaN,NaN]:e.dataToPoint(te)}function H(W,$,te){var le=$.slice(),ge=$.slice();le[a]=Y0(le[a]+n/2,1,!1),ge[a]=Y0(ge[a]-n/2,1,!0),te?W.push(le,ge):W.push(ge,le)}function X(W,$,te){var le=Y(W,te),ge=Y($,te);return le[a]-=n/2,ge[a]-=n/2,{x:le[0],y:le[1],width:n,height:ge[1]-le[1]}}function V(W){return W[a]=Y0(W[a],1),W}}function g(x,y){for(var b=Oi(x.count*4),S=0,T,C=[],M=[],D,L=y.getStore(),E=!!r.get(["itemStyle","borderColorDoji"]);(D=x.next())!=null;){var R=L.get(s,D),I=L.get(u,D),k=L.get(c,D),z=L.get(f,D),O=L.get(d,D);if(isNaN(R)||isNaN(z)||isNaN(O)){b[S++]=NaN,S+=3;continue}b[S++]=Zz(L,D,I,k,c,E),C[a]=R,C[i]=z,T=e.dataToPoint(C,null,M),b[S++]=T?T[0]:NaN,b[S++]=T?T[1]:NaN,C[i]=O,T=e.dataToPoint(C,null,M),b[S++]=T?T[1]:NaN}y.setLayout("largePoints",b)}}};function Zz(r,e,t,n,a,i){var o;return t>n?o=-1:t<n?o=1:o=i?0:e>0?r.get(a,e-1)<=n?1:-1:1,o}function Oge(r,e){var t=r.getBaseAxis(),n,a=t.type==="category"?t.getBandWidth():(n=t.getExtent(),Math.abs(n[1]-n[0])/e.count()),i=me(Ce(r.get("barMaxWidth"),a),a),o=me(Ce(r.get("barMinWidth"),1),a),s=r.get("barWidth");return s!=null?me(s,a):Math.max(Math.min(a/2,i),o)}function Pge(r){r.registerChartView(Dge),r.registerSeriesModel(NU),r.registerPreprocessor(Ige),r.registerVisual(Age),r.registerLayout(kge)}function $z(r,e){var t=e.rippleEffectColor||e.color;r.eachChild(function(n){n.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var zge=(function(r){K(e,r);function e(t,n){var a=r.call(this)||this,i=new Ug(t,n),o=new De;return a.add(i),a.add(o),a.updateData(t,n),a}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var n=t.symbolType,a=t.color,i=t.rippleNumber,o=this.childAt(1),s=0;s<i;s++){var l=lr(n,-1,-1,2,2,a);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/i*t.period+t.effectOffset;l.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(t.period,{opacity:0}).delay(u).start(),o.add(l)}$z(o,t)},e.prototype.updateEffectAnimation=function(t){for(var n=this._effectCfg,a=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],o=0;o<i.length;o++){var s=i[o];if(n[s]!==t[s]){this.stopEffectAnimation(),this.startEffectAnimation(t);return}}$z(a,t)},e.prototype.highlight=function(){Xo(this)},e.prototype.downplay=function(){qo(this)},e.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},e.prototype.updateData=function(t,n){var a=this,i=t.hostModel;this.childAt(0).updateData(t,n);var o=this.childAt(1),s=t.getItemModel(n),l=t.getItemVisual(n,"symbol"),u=od(t.getItemVisual(n,"symbolSize")),c=t.getItemVisual(n,"style"),f=c&&c.fill,d=s.getModel("emphasis");o.setScale(u),o.traverse(function(y){y.setStyle("fill",f)});var v=Tc(t.getItemVisual(n,"symbolOffset"),u);v&&(o.x=v[0],o.y=v[1]);var g=t.getItemVisual(n,"symbolRotate");o.rotation=(g||0)*Math.PI/180||0;var x={};x.showEffectOn=i.get("showEffectOn"),x.rippleScale=s.get(["rippleEffect","scale"]),x.brushType=s.get(["rippleEffect","brushType"]),x.period=s.get(["rippleEffect","period"])*1e3,x.effectOffset=n/t.count(),x.z=i.getShallow("z")||0,x.zlevel=i.getShallow("zlevel")||0,x.symbolType=l,x.color=f,x.rippleEffectColor=s.get(["rippleEffect","color"]),x.rippleNumber=s.get(["rippleEffect","number"]),x.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(x):this.startEffectAnimation(x),this._effectCfg=x):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(y){y==="emphasis"?x.showEffectOn!=="render"&&a.startEffectAnimation(x):y==="normal"&&x.showEffectOn!=="render"&&a.stopEffectAnimation()}),this._effectCfg=x,Ft(this,d.get("focus"),d.get("blurScope"),d.get("disabled"))},e.prototype.fadeOut=function(t){t&&t()},e})(De),Bge=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this._symbolDraw=new Yg(zge)},e.prototype.render=function(t,n,a){var i=t.getData(),o=this._symbolDraw;o.updateData(i,{clipShape:this._getClipShape(t)}),this.group.add(o.group)},e.prototype._getClipShape=function(t){var n=t.coordinateSystem,a=n&&n.getArea&&n.getArea();return t.get("clip",!0)?a:null},e.prototype.updateTransform=function(t,n,a){var i=t.getData();this.group.dirty();var o=Xg("").reset(t,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},e.prototype._updateGroupTransform=function(t){var n=t.coordinateSystem;n&&n.getRoamTransform&&(this.group.transform=BG(n.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(t,n){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e})(_t),jge=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,n){return Qi(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(t,n,a){return a.point(n.getItemLayout(t))},e.type="series.effectScatter",e.dependencies=["grid","polar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},e})(wt);function Vge(r){r.registerChartView(Bge),r.registerSeriesModel(jge),r.registerLayout(Xg("effectScatter"))}var RU=(function(r){K(e,r);function e(t,n,a){var i=r.call(this)||this;return i.add(i.createLine(t,n,a)),i._updateEffectSymbol(t,n),i}return e.prototype.createLine=function(t,n,a){return new xL(t,n,a)},e.prototype._updateEffectSymbol=function(t,n){var a=t.getItemModel(n),i=a.getModel("effect"),o=i.get("symbolSize"),s=i.get("symbol");ue(o)||(o=[o,o]);var l=t.getItemVisual(n,"style"),u=i.get("color")||l&&l.stroke,c=this.childAt(1);this._symbolType!==s&&(this.remove(c),c=lr(s,-.5,-.5,1,1,u),c.z2=100,c.culling=!0,this.add(c)),c&&(c.setStyle("shadowColor",u),c.setStyle(i.getItemStyle(["color"])),c.scaleX=o[0],c.scaleY=o[1],c.setColor(u),this._symbolType=s,this._symbolScale=o,this._updateEffectAnimation(t,i,n))},e.prototype._updateEffectAnimation=function(t,n,a){var i=this.childAt(1);if(i){var o=t.getItemLayout(a),s=n.get("period")*1e3,l=n.get("loop"),u=n.get("roundTrip"),c=n.get("constantSpeed"),f=jr(n.get("delay"),function(v){return v/t.count()*s/3});if(i.ignore=!0,this._updateAnimationPoints(i,o),c>0&&(s=this._getLineLength(i)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var d=void 0;Ae(f)?d=f(a):d=f,i.__t>0&&(d=-s*i.__t),this._animateSymbol(i,s,d,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(t,n,a,i,o){if(n>0){t.__t=0;var s=this,l=t.animate("",i).when(o?n*2:n,{__t:o?2:1}).delay(a).during(function(){s._updateSymbolPosition(t)});i||l.done(function(){s.remove(t)}),l.start()}},e.prototype._getLineLength=function(t){return Eo(t.__p1,t.__cp1)+Eo(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,n){t.__p1=n[0],t.__p2=n[1],t.__cp1=n[2]||[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]},e.prototype.updateData=function(t,n,a){this.childAt(0).updateData(t,n,a),this._updateEffectSymbol(t,n)},e.prototype._updateSymbolPosition=function(t){var n=t.__p1,a=t.__p2,i=t.__cp1,o=t.__t<1?t.__t:2-t.__t,s=[t.x,t.y],l=s.slice(),u=Br,c=K2;s[0]=u(n[0],i[0],a[0],o),s[1]=u(n[1],i[1],a[1],o);var f=t.__t<1?c(n[0],i[0],a[0],o):c(a[0],i[0],n[0],1-o),d=t.__t<1?c(n[1],i[1],a[1],o):c(a[1],i[1],n[1],1-o);t.rotation=-Math.atan2(d,f)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT<t.__t?(t.scaleY=Eo(l,s)*1.05,o===1&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):t.__lastT===1?t.scaleY=2*Eo(n,s):t.scaleY=this._symbolScale[1]),t.__lastT=t.__t,t.ignore=!1,t.x=s[0],t.y=s[1]},e.prototype.updateLayout=function(t,n){this.childAt(0).updateLayout(t,n);var a=t.getItemModel(n).getModel("effect");this._updateEffectAnimation(t,a,n)},e})(De),EU=(function(r){K(e,r);function e(t,n,a){var i=r.call(this)||this;return i._createPolyline(t,n,a),i}return e.prototype._createPolyline=function(t,n,a){var i=t.getItemLayout(n),o=new Vr({shape:{points:i}});this.add(o),this._updateCommonStl(t,n,a)},e.prototype.updateData=function(t,n,a){var i=t.hostModel,o=this.childAt(0),s={shape:{points:t.getItemLayout(n)}};ot(o,s,i,n),this._updateCommonStl(t,n,a)},e.prototype._updateCommonStl=function(t,n,a){var i=this.childAt(0),o=t.getItemModel(n),s=a&&a.emphasisLineStyle,l=a&&a.focus,u=a&&a.blurScope,c=a&&a.emphasisDisabled;if(!a||t.hasItemOption){var f=o.getModel("emphasis");s=f.getModel("lineStyle").getLineStyle(),c=f.get("disabled"),l=f.get("focus"),u=f.get("blurScope")}i.useStyle(t.getItemVisual(n,"style")),i.style.fill=null,i.style.strokeNoScale=!0;var d=i.ensureState("emphasis");d.style=s,Ft(this,l,u,c)},e.prototype.updateLayout=function(t,n){var a=this.childAt(0);a.setShape("points",t.getItemLayout(n))},e})(De),Gge=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return e.prototype.createLine=function(t,n,a){return new EU(t,n,a)},e.prototype._updateAnimationPoints=function(t,n){this._points=n;for(var a=[0],i=0,o=1;o<n.length;o++){var s=n[o-1],l=n[o];i+=Eo(s,l),a.push(i)}if(i===0){this._length=0;return}for(var o=0;o<a.length;o++)a[o]/=i;this._offsets=a,this._length=i},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(t){var n=t.__t<1?t.__t:2-t.__t,a=this._points,i=this._offsets,o=a.length;if(i){var s=this._lastFrame,l;if(n<this._lastFramePercent){var u=Math.min(s+1,o-1);for(l=u;l>=0&&!(i[l]<=n);l--);l=Math.min(l,o-2)}else{for(l=s;l<o&&!(i[l]>n);l++);l=Math.min(l-1,o-2)}var c=(n-i[l])/(i[l+1]-i[l]),f=a[l],d=a[l+1];t.x=f[0]*(1-c)+c*d[0],t.y=f[1]*(1-c)+c*d[1];var v=t.__t<1?d[0]-f[0]:f[0]-d[0],g=t.__t<1?d[1]-f[1]:f[1]-d[1];t.rotation=-Math.atan2(g,v)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=n,t.ignore=!1}},e})(RU),Hge=(function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r})(),Fge=(function(r){K(e,r);function e(t){var n=r.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:ee.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new Hge},e.prototype.buildPath=function(t,n){var a=n.segs,i=n.curveness,o;if(n.polyline)for(o=this._off;o<a.length;){var s=a[o++];if(s>0){t.moveTo(a[o++],a[o++]);for(var l=1;l<s;l++)t.lineTo(a[o++],a[o++])}}else for(o=this._off;o<a.length;){var u=a[o++],c=a[o++],f=a[o++],d=a[o++];if(t.moveTo(u,c),i>0){var v=(u+f)/2-(c-d)*i,g=(c+d)/2-(f-u)*i;t.quadraticCurveTo(v,g,f,d)}else t.lineTo(f,d)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,n){var a=this.shape,i=a.segs,o=a.curveness,s=this.style.lineWidth;if(a.polyline)for(var l=0,u=0;u<i.length;){var c=i[u++];if(c>0)for(var f=i[u++],d=i[u++],v=1;v<c;v++){var g=i[u++],x=i[u++];if(Hs(f,d,g,x,s,t,n))return l}l++}else for(var l=0,u=0;u<i.length;){var f=i[u++],d=i[u++],g=i[u++],x=i[u++];if(o>0){var y=(f+g)/2-(d-x)*o,b=(d+x)/2-(g-f)*o;if(E6(f,d,y,b,g,x,s,t,n))return l}else if(Hs(f,d,g,x,s,t,n))return l;l++}return-1},e.prototype.contain=function(t,n){var a=this.transformCoordToLocal(t,n),i=this.getBoundingRect();if(t=a[0],n=a[1],i.contain(t,n)){var o=this.hoverDataIdx=this.findDataIndex(t,n);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var n=this.shape,a=n.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u<a.length;){var c=a[u++],f=a[u++];i=Math.min(c,i),s=Math.max(c,s),o=Math.min(f,o),l=Math.max(f,l)}t=this._rect=new ke(i,o,s,l)}return t},e})(et),Uge=(function(){function r(){this.group=new De}return r.prototype.updateData=function(e){this._clear();var t=this._create();t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e)},r.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},r.prototype.incrementalUpdate=function(e,t){var n=this._newAdded[0],a=t.getLayout("linesPoints"),i=n&&n.shape.segs;if(i&&i.length<2e4){var o=i.length,s=new Float32Array(o+a.length);s.set(i),s.set(a,o),n.setShape({segs:s})}else{this._newAdded=[];var l=this._create();l.incremental=!0,l.setShape({segs:a}),this._setCommon(l,t),l.__startIndex=e.start}},r.prototype.remove=function(){this._clear()},r.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},r.prototype._create=function(){var e=new Fge({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},r.prototype._setCommon=function(e,t,n){var a=t.hostModel;e.setShape({polyline:a.get("polyline"),curveness:a.get(["lineStyle","curveness"])}),e.useStyle(a.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var i=t.getVisual("style");i&&i.stroke&&e.setStyle("stroke",i.stroke),e.setStyle("fill",null);var o=ze(e);o.seriesIndex=a.seriesIndex,e.on("mousemove",function(s){o.dataIndex=null;var l=e.hoverDataIdx;l>0&&(o.dataIndex=l+e.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r})(),IU={seriesType:"lines",plan:ad(),reset:function(r){var e=r.coordinateSystem;if(e){var t=r.get("polyline"),n=r.pipelineContext.large;return{progress:function(a,i){var o=[];if(n){var s=void 0,l=a.end-a.start;if(t){for(var u=0,c=a.start;c<a.end;c++)u+=r.getLineCoordsCount(c);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var f=0,d=[],c=a.start;c<a.end;c++){var v=r.getLineCoords(c,o);t&&(s[f++]=v);for(var g=0;g<v;g++)d=e.dataToPoint(o[g],!1,d),s[f++]=d[0],s[f++]=d[1]}i.setLayout("linesPoints",s)}else for(var c=a.start;c<a.end;c++){var x=i.getItemModel(c),v=r.getLineCoords(c,o),y=[];if(t)for(var b=0;b<v;b++)y.push(e.dataToPoint(o[b]));else{y[0]=e.dataToPoint(o[0]),y[1]=e.dataToPoint(o[1]);var S=x.get(["lineStyle","curveness"]);+S&&(y[2]=[(y[0][0]+y[1][0])/2-(y[0][1]-y[1][1])*S,(y[0][1]+y[1][1])/2-(y[1][0]-y[0][0])*S])}i.setItemLayout(c,y)}}}}}},Yge=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=t.getData(),o=this._updateLineDraw(i,t),s=t.get("zlevel"),l=t.get(["effect","trailLength"]),u=a.getZr(),c=u.painter.getType()==="svg";c||u.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&!c&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&l>0&&(c||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var f=t.get("clip",!0)&&Wg(t.coordinateSystem,!1,t);f?this.group.setClipPath(f):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,n,a){var i=t.getData(),o=this._updateLineDraw(i,t);o.incrementalPrepareUpdate(i),this._clearLayer(a),this._finished=!1},e.prototype.incrementalRender=function(t,n,a){this._lineDraw.incrementalUpdate(t,n.getData()),this._finished=t.end===n.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,n,a){var i=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=IU.reset(t,n,a);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(a)},e.prototype._updateLineDraw=function(t,n){var a=this._lineDraw,i=this._showEffect(n),o=!!n.get("polyline"),s=n.pipelineContext,l=s.large;return(!a||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=l?new Uge:new bL(o?i?Gge:EU:i?RU:xL),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(a.group),a},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var n=t.getZr(),a=n.painter.getType()==="svg";!a&&this._lastZlevel!=null&&n.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,n){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(n)},e.prototype.dispose=function(t,n){this.remove(t,n)},e.type="lines",e})(_t),Wge=typeof Uint32Array>"u"?Array:Uint32Array,Xge=typeof Float64Array>"u"?Array:Float64Array;function Kz(r){var e=r.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(r.data=ce(e,function(t){var n=[t[0].coord,t[1].coord],a={coords:n};return t[0].name&&(a.fromName=t[0].name),t[1].name&&(a.toName=t[1].name),O1([a,t[0],t[1]])}))}var qge=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.init=function(t){t.data=t.data||[],Kz(t);var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count)),r.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(Kz(t),t.data){var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count))}r.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var n=this._processFlatCoordsArray(t.data);n.flatCoords&&(this._flatCoords?(this._flatCoords=Ch(this._flatCoords,n.flatCoords),this._flatCoordsOffset=Ch(this._flatCoordsOffset,n.flatCoordsOffset)):(this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset),t.data=new Float32Array(n.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var n=this.getData().getItemModel(t),a=n.option instanceof Array?n.option:n.getShallow("coords");return a},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[t*2+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,n){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[t*2],i=this._flatCoordsOffset[t*2+1],o=0;o<i;o++)n[o]=n[o]||[],n[o][0]=this._flatCoords[a+o*2],n[o][1]=this._flatCoords[a+o*2+1];return i}else{for(var s=this._getCoordsFromItemModel(t),o=0;o<s.length;o++)n[o]=n[o]||[],n[o][0]=s[o][0],n[o][1]=s[o][1];return s.length}},e.prototype._processFlatCoordsArray=function(t){var n=0;if(this._flatCoords&&(n=this._flatCoords.length),it(t[0])){for(var a=t.length,i=new Wge(a),o=new Xge(a),s=0,l=0,u=0,c=0;c<a;){u++;var f=t[c++];i[l++]=s+n,i[l++]=f;for(var d=0;d<f;d++){var v=t[c++],g=t[c++];o[s++]=v,o[s++]=g}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,n){var a=new cn(["value"],this);return a.hasItemOption=!1,a.initData(t.data,[],function(i,o,s,l){if(i instanceof Array)return NaN;a.hasItemOption=!0;var u=i.value;if(u!=null)return u instanceof Array?u[l]:u}),a},e.prototype.formatTooltip=function(t,n,a){var i=this.getData(),o=i.getItemModel(t),s=o.get("name");if(s)return s;var l=o.get("fromName"),u=o.get("toName"),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),vr("nameValue",{name:c.join(" > ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?1e4:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?2e4:this.get("progressiveThreshold"))},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),n=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&n>0?n+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e})(wt);function v0(r){return r instanceof Array||(r=[r,r]),r}var Zge={seriesType:"lines",reset:function(r){var e=v0(r.get("symbol")),t=v0(r.get("symbolSize")),n=r.getData();n.setVisual("fromSymbol",e&&e[0]),n.setVisual("toSymbol",e&&e[1]),n.setVisual("fromSymbolSize",t&&t[0]),n.setVisual("toSymbolSize",t&&t[1]);function a(i,o){var s=i.getItemModel(o),l=v0(s.getShallow("symbol",!0)),u=v0(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:n.hasItemOption?a:null}}};function $ge(r){r.registerChartView(Yge),r.registerSeriesModel(qge),r.registerLayout(IU),r.registerVisual(Zge)}var Kge=256,Qge=(function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=En.createCanvas();this.canvas=e}return r.prototype.update=function(e,t,n,a,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),c=this.pointSize+this.blurSize,f=this.canvas,d=f.getContext("2d"),v=e.length;f.width=t,f.height=n;for(var g=0;g<v;++g){var x=e[g],y=x[0],b=x[1],S=x[2],T=a(S);d.globalAlpha=T,d.drawImage(s,y-c,b-c)}if(!f.width||!f.height)return f;for(var C=d.getImageData(0,0,f.width,f.height),M=C.data,D=0,L=M.length,E=this.minOpacity,R=this.maxOpacity,I=R-E;D<L;){var T=M[D+3]/256,k=Math.floor(T*(Kge-1))*4;if(T>0){var z=o(T)?l:u;T>0&&(T=T*I+E),M[D++]=z[k],M[D++]=z[k+1],M[D++]=z[k+2],M[D++]=z[k+3]*T*256}else D+=4}return d.putImageData(C,0,0),f},r.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=En.createCanvas()),t=this.pointSize+this.blurSize,n=t*2;e.width=n,e.height=n;var a=e.getContext("2d");return a.clearRect(0,0,n,n),a.shadowOffsetX=n,a.shadowBlur=this.blurSize,a.shadowColor=ee.color.neutral99,a.beginPath(),a.arc(-t,t,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),e},r.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,a=n[t]||(n[t]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,i),a[o++]=i[0],a[o++]=i[1],a[o++]=i[2],a[o++]=i[3];return a},r})();function Jge(r,e,t){var n=r[1]-r[0];e=ce(e,function(o){return{interval:[(o.interval[0]-r[0])/n,(o.interval[1]-r[0])/n]}});var a=e.length,i=0;return function(o){var s;for(s=i;s<a;s++){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}if(s===a)for(s=i-1;s>=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s<a&&t[s]}}function eme(r,e){var t=r[1]-r[0];return e=[(e[0]-r[0])/t,(e[1]-r[0])/t],function(n){return n>=e[0]&&n<=e[1]}}function Qz(r){var e=r.dimensions;return e[0]==="lng"&&e[1]==="lat"}var tme=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i;n.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"||o.type==="matrix"?this._renderOnGridLike(t,a,0,t.getData().count()):Qz(o)&&this._renderOnGeo(o,t,i,a)},e.prototype.incrementalPrepareRender=function(t,n,a){this.group.removeAll()},e.prototype.incrementalRender=function(t,n,a,i){var o=n.coordinateSystem;o&&(Qz(o)?this.render(n,a,i):(this._progressiveEls=[],this._renderOnGridLike(n,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){Ml(this._progressiveEls||this.group,t)},e.prototype._renderOnGridLike=function(t,n,a,i,o){var s=t.coordinateSystem,l=bl(s,"cartesian2d"),u=bl(s,"matrix"),c,f,d,v;if(l){var g=s.getAxis("x"),x=s.getAxis("y");c=g.getBandWidth()+.5,f=x.getBandWidth()+.5,d=g.scale.getExtent(),v=x.scale.getExtent()}for(var y=this.group,b=t.getData(),S=t.getModel(["emphasis","itemStyle"]).getItemStyle(),T=t.getModel(["blur","itemStyle"]).getItemStyle(),C=t.getModel(["select","itemStyle"]).getItemStyle(),M=t.get(["itemStyle","borderRadius"]),D=_r(t),L=t.getModel("emphasis"),E=L.get("focus"),R=L.get("blurScope"),I=L.get("disabled"),k=l||u?[b.mapDimension("x"),b.mapDimension("y"),b.mapDimension("value")]:[b.mapDimension("time"),b.mapDimension("value")],z=a;z<i;z++){var O=void 0,G=b.getItemVisual(z,"style");if(l){var F=b.get(k[0],z),B=b.get(k[1],z);if(isNaN(b.get(k[2],z))||isNaN(F)||isNaN(B)||F<d[0]||F>d[1]||B<v[0]||B>v[1])continue;var Y=s.dataToPoint([F,B]);O=new We({shape:{x:Y[0]-c/2,y:Y[1]-f/2,width:c,height:f},style:G})}else if(u){var H=s.dataToLayout([b.get(k[0],z),b.get(k[1],z)]).rect;if(Zr(H.x))continue;O=new We({z2:1,shape:H,style:G})}else{if(isNaN(b.get(k[1],z)))continue;var X=s.dataToLayout([b.get(k[0],z)]),H=X.contentRect||X.rect;if(Zr(H.x)||Zr(H.y))continue;O=new We({z2:1,shape:H,style:G})}if(b.hasItemOption){var V=b.getItemModel(z),W=V.getModel("emphasis");S=W.getModel("itemStyle").getItemStyle(),T=V.getModel(["blur","itemStyle"]).getItemStyle(),C=V.getModel(["select","itemStyle"]).getItemStyle(),M=V.get(["itemStyle","borderRadius"]),E=W.get("focus"),R=W.get("blurScope"),I=W.get("disabled"),D=_r(V)}O.shape.r=M;var $=t.getRawValue(z),te="-";$&&$[2]!=null&&(te=$[2]+""),Lr(O,D,{labelFetcher:t,labelDataIndex:z,defaultOpacity:G.opacity,defaultText:te}),O.ensureState("emphasis").style=S,O.ensureState("blur").style=T,O.ensureState("select").style=C,Ft(O,E,R,I),O.incremental=o,o&&(O.states.emphasis.hoverLayer=!0),y.add(O),b.setItemGraphicEl(z,O),this._progressiveEls&&this._progressiveEls.push(O)}},e.prototype._renderOnGeo=function(t,n,a,i){var o=a.targetVisuals.inRange,s=a.targetVisuals.outOfRange,l=n.getData(),u=this._hmLayer||this._hmLayer||new Qge;u.blurSize=n.get("blurSize"),u.pointSize=n.get("pointSize"),u.minOpacity=n.get("minOpacity"),u.maxOpacity=n.get("maxOpacity");var c=t.getViewRect().clone(),f=t.getRoamTransform();c.applyTransform(f);var d=Math.max(c.x,0),v=Math.max(c.y,0),g=Math.min(c.width+c.x,i.getWidth()),x=Math.min(c.height+c.y,i.getHeight()),y=g-d,b=x-v,S=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],T=l.mapArray(S,function(L,E,R){var I=t.dataToPoint([L,E]);return I[0]-=d,I[1]-=v,I.push(R),I}),C=a.getExtent(),M=a.type==="visualMap.continuous"?eme(C,a.option.range):Jge(C,a.getPieceList(),a.option.selected);u.update(T,y,b,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},M);var D=new Nr({style:{width:y,height:b,x:d,y:v,image:u.canvas},silent:!0});this.group.add(D)},e.type="heatmap",e})(_t),rme=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,n){return Qi(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=nd.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:ee.color.primary}}},e})(wt);function nme(r){r.registerChartView(tme),r.registerSeriesModel(rme)}var ame=["itemStyle","borderWidth"],Jz=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],PT=new Ki,ime=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),f=l.master.getRect(),d={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[f.x,f.x+f.width],[f.y,f.y+f.height]],isHorizontal:c,valueDim:Jz[+c],categoryDim:Jz[1-+c]};o.diff(s).add(function(g){if(o.hasValue(g)){var x=tB(o,g),y=eB(o,g,x,d),b=rB(o,d,y);o.setItemGraphicEl(g,b),i.add(b),aB(b,d,y)}}).update(function(g,x){var y=s.getItemGraphicEl(x);if(!o.hasValue(g)){i.remove(y);return}var b=tB(o,g),S=eB(o,g,b,d),T=jU(o,S);y&&T!==y.__pictorialShapeStr&&(i.remove(y),o.setItemGraphicEl(g,null),y=null),y?hme(y,d,S):y=rB(o,d,S,!0),o.setItemGraphicEl(g,y),y.__pictorialSymbolMeta=S,i.add(y),aB(y,d,S)}).remove(function(g){var x=s.getItemGraphicEl(g);x&&nB(s,g,x.__pictorialSymbolMeta.animationModel,x)}).execute();var v=t.get("clip",!0)?Wg(t.coordinateSystem,!1,t):null;return v?i.setClipPath(v):i.removeClipPath(),this._data=o,this.group},e.prototype.remove=function(t,n){var a=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl(function(o){nB(i,ze(o).dataIndex,t,o)}):a.removeAll()},e.type="pictorialBar",e})(_t);function eB(r,e,t,n){var a=r.getItemLayout(e),i=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=t.get("symbolPatternSize")||2,f=t.isAnimationEnabled(),d={dataIndex:e,layout:a,itemModel:t,symbolType:r.getItemVisual(e,"symbol")||"circle",style:r.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:f?t:null,hoverScale:f&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};ome(t,i,a,n,d),sme(r,e,a,i,o,d.boundingLength,d.pxSign,c,n,d),lme(t,d.symbolScale,u,n,d);var v=d.symbolSize,g=Tc(t.get("symbolOffset"),v);return ume(t,v,a,i,o,g,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,n,d),d}function ome(r,e,t,n,a){var i=n.valueDim,o=r.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[i.wh]<=0),c;if(ue(o)){var f=[zT(s,o[0])-l,zT(s,o[1])-l];f[1]<f[0]&&f.reverse(),c=f[u]}else o!=null?c=zT(s,o)-l:e?c=n.coordSysExtent[i.index][u]-l:c=t[i.wh];a.boundingLength=c,e&&(a.repeatCutLength=t[i.wh]);var d=i.xy==="x",v=s.inverse;a.pxSign=d&&!v||!d&&v?c>=0?1:-1:c>0?1:-1}function zT(r,e){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(e)))}function sme(r,e,t,n,a,i,o,s,l,u){var c=l.valueDim,f=l.categoryDim,d=Math.abs(t[f.wh]),v=r.getItemVisual(e,"symbolSize"),g;ue(v)?g=v.slice():v==null?g=["100%","100%"]:g=[v,v],g[f.index]=me(g[f.index],d),g[c.index]=me(g[c.index],n?d:Math.abs(i)),u.symbolSize=g;var x=u.symbolScale=[g[0]/s,g[1]/s];x[c.index]*=(l.isHorizontal?-1:1)*o}function lme(r,e,t,n,a){var i=r.get(ame)||0;i&&(PT.attr({scaleX:e[0],scaleY:e[1],rotation:t}),PT.updateTransform(),i/=PT.getLineScale(),i*=e[n.valueDim.index]),a.valueLineWidth=i||0}function ume(r,e,t,n,a,i,o,s,l,u,c,f){var d=c.categoryDim,v=c.valueDim,g=f.pxSign,x=Math.max(e[v.index]+s,0),y=x;if(n){var b=Math.abs(l),S=jr(r.get("symbolMargin"),"15%")+"",T=!1;S.lastIndexOf("!")===S.length-1&&(T=!0,S=S.slice(0,S.length-1));var C=me(S,e[v.index]),M=Math.max(x+C*2,0),D=T?0:C*2,L=VM(n),E=L?n:iB((b+D)/M),R=b-E*x;C=R/2/(T?E:Math.max(E-1,1)),M=x+C*2,D=T?0:C*2,!L&&n!=="fixed"&&(E=u?iB((Math.abs(u)+D)/M):0),y=E*M-D,f.repeatTimes=E,f.symbolMargin=C}var I=g*(y/2),k=f.pathPosition=[];k[d.index]=t[d.wh]/2,k[v.index]=o==="start"?I:o==="end"?l-I:l/2,i&&(k[0]+=i[0],k[1]+=i[1]);var z=f.bundlePosition=[];z[d.index]=t[d.xy],z[v.index]=t[v.xy];var O=f.barRectShape=ie({},t);O[v.wh]=g*Math.max(Math.abs(t[v.wh]),Math.abs(k[v.index]+I)),O[d.wh]=t[d.wh];var G=f.clipShape={};G[d.xy]=-t[d.xy],G[d.wh]=c.ecSize[d.wh],G[v.xy]=0,G[v.wh]=t[v.wh]}function kU(r){var e=r.symbolPatternSize,t=lr(r.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function OU(r,e,t,n){var a=r.__pictorialBundle,i=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,c=0,f=i[e.valueDim.index]+o+t.symbolMargin*2;for(RL(r,function(x){x.__pictorialAnimationIndex=c,x.__pictorialRepeatTimes=u,c<u?uh(x,null,g(c),t,n):uh(x,null,{scaleX:0,scaleY:0},t,n,function(){a.remove(x)}),c++});c<u;c++){var d=kU(t);d.__pictorialAnimationIndex=c,d.__pictorialRepeatTimes=u,a.add(d);var v=g(c);uh(d,{x:v.x,y:v.y,scaleX:0,scaleY:0},{scaleX:v.scaleX,scaleY:v.scaleY,rotation:v.rotation},t,n)}function g(x){var y=s.slice(),b=t.pxSign,S=x;return(t.symbolRepeatDirection==="start"?b>0:b<0)&&(S=u-1-x),y[l.index]=f*(S-u/2+.5)+s[l.index],{x:y[0],y:y[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function PU(r,e,t,n){var a=r.__pictorialBundle,i=r.__pictorialMainPath;i?uh(i,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,n):(i=r.__pictorialMainPath=kU(t),a.add(i),uh(i,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,n))}function zU(r,e,t){var n=ie({},e.barRectShape),a=r.__pictorialBarRect;a?uh(a,null,{shape:n},e,t):(a=r.__pictorialBarRect=new We({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,r.add(a))}function BU(r,e,t,n){if(t.symbolClip){var a=r.__pictorialClipPath,i=ie({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(a)ot(a,{shape:i},s,l);else{i[o.wh]=0,a=new We({shape:i}),r.__pictorialBundle.setClipPath(a),r.__pictorialClipPath=a;var u={};u[o.wh]=t.clipShape[o.wh],_c[n?"updateProps":"initProps"](a,{shape:u},s,l)}}}function tB(r,e){var t=r.getItemModel(e);return t.getAnimationDelayParams=cme,t.isAnimationEnabled=fme,t}function cme(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function fme(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function rB(r,e,t,n){var a=new De,i=new De;return a.add(i),a.__pictorialBundle=i,i.x=t.bundlePosition[0],i.y=t.bundlePosition[1],t.symbolRepeat?OU(a,e,t):PU(a,e,t),zU(a,t,n),BU(a,e,t,n),a.__pictorialShapeStr=jU(r,t),a.__pictorialSymbolMeta=t,a}function hme(r,e,t){var n=t.animationModel,a=t.dataIndex,i=r.__pictorialBundle;ot(i,{x:t.bundlePosition[0],y:t.bundlePosition[1]},n,a),t.symbolRepeat?OU(r,e,t,!0):PU(r,e,t,!0),zU(r,t,!0),BU(r,e,t,!0)}function nB(r,e,t,n){var a=n.__pictorialBarRect;a&&a.removeTextContent();var i=[];RL(n,function(o){i.push(o)}),n.__pictorialMainPath&&i.push(n.__pictorialMainPath),n.__pictorialClipPath&&(t=null),P(i,function(o){xl(o,{scaleX:0,scaleY:0},t,e,function(){n.parent&&n.parent.remove(n)})}),r.setItemGraphicEl(e,null)}function jU(r,e){return[r.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function RL(r,e,t){P(r.__pictorialBundle.children(),function(n){n!==r.__pictorialBarRect&&e.call(t,n)})}function uh(r,e,t,n,a,i){e&&r.attr(e),n.symbolClip&&!a?t&&r.attr(t):t&&_c[a?"updateProps":"initProps"](r,t,n.animationModel,n.dataIndex,i)}function aB(r,e,t){var n=t.dataIndex,a=t.itemModel,i=a.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),c=i.get("focus"),f=i.get("blurScope"),d=i.get("scale");RL(r,function(x){if(x instanceof Nr){var y=x.style;x.useStyle(ie({image:y.image,x:y.x,y:y.y,width:y.width,height:y.height},t.style))}else x.useStyle(t.style);var b=x.ensureState("emphasis");b.style=o,d&&(b.scaleX=x.scaleX*1.1,b.scaleY=x.scaleY*1.1),x.ensureState("blur").style=s,x.ensureState("select").style=l,u&&(x.cursor=u),x.z2=t.z2});var v=e.valueDim.posDesc[+(t.boundingLength>0)],g=r.__pictorialBarRect;g.ignoreClip=!0,Lr(g,_r(a),{labelFetcher:e.seriesModel,labelDataIndex:n,defaultText:Ph(e.seriesModel.getData(),n),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:v}),Ft(r,c,f,i.get("disabled"))}function iB(r){var e=Math.round(r);return Math.abs(r-e)<1e-4?e:Math.ceil(r)}var dme=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,r.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=Dl(cg.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:ee.color.primary}}}),e})(cg);function vme(r){r.registerChartView(ime),r.registerSeriesModel(dme),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,Ve(iF,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,oF("pictorialBar"))}var pme=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._layers=[],t}return e.prototype.render=function(t,n,a){var i=t.getData(),o=this,s=this.group,l=t.getLayerSeries(),u=i.getLayout("layoutInfo"),c=u.rect,f=u.boundaryGap;s.x=0,s.y=c.y+f[0];function d(y){return y.name}var v=new Zo(this._layersSeries||[],l,d,d),g=[];v.add(xe(x,this,"add")).update(xe(x,this,"update")).remove(xe(x,this,"remove")).execute();function x(y,b,S){var T=o._layers;if(y==="remove"){s.remove(T[b]);return}for(var C=[],M=[],D,L=l[b].indices,E=0;E<L.length;E++){var R=i.getItemLayout(L[E]),I=R.x,k=R.y0,z=R.y;C.push(I,k),M.push(I,k+z),D=i.getItemVisual(L[E],"style")}var O,G=i.getItemLayout(L[0]),F=t.getModel("label"),B=F.get("margin"),Y=t.getModel("emphasis");if(y==="add"){var H=g[b]=new De;O=new $F({shape:{points:C,stackedOnPoints:M,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),H.add(O),s.add(H),t.isAnimationEnabled()&&O.setClipPath(gme(O.getBoundingRect(),t,function(){O.removeClipPath()}))}else{var H=T[S];O=H.childAt(0),s.add(H),g[b]=H,ot(O,{shape:{points:C,stackedOnPoints:M}},t),ka(O)}Lr(O,_r(t),{labelDataIndex:L[E-1],defaultText:i.getName(L[E-1]),inheritColor:D.fill},{normal:{verticalAlign:"middle"}}),O.setTextConfig({position:null,local:!0});var X=O.getTextContent();X&&(X.x=G.x-B,X.y=G.y0+G.y/2),O.useStyle(D),i.setItemGraphicEl(b,O),br(O,t),Ft(O,Y.get("focus"),Y.get("blurScope"),Y.get("disabled"))}this._layersSeries=l,this._layers=g},e.type="themeRiver",e})(_t);function gme(r,e,t){var n=new We({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return zt(n,{shape:{x:r.x-50,width:r.width+100,height:r.height+20}},e,t),n}var BT=2,mme=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new hd(xe(this.getData,this),xe(this.getRawData,this))},e.prototype.fixData=function(t){var n=t.length,a={},i=dC(t,function(d){return a.hasOwnProperty(d[0]+"")||(a[d[0]+""]=-1),d[2]}),o=[];i.buckets.each(function(d,v){o.push({name:v,dataList:d})});for(var s=o.length,l=0;l<s;++l){for(var u=o[l].name,c=0;c<o[l].dataList.length;++c){var f=o[l].dataList[c][0]+"";a[f]=l}for(var f in a)a.hasOwnProperty(f)&&a[f]!==l&&(a[f]=l,t[n]=[f,0,u],n++)}return t},e.prototype.getInitialData=function(t,n){for(var a=this.getReferringComponents("singleAxis",qt).models[0],i=a.get("type"),o=ht(t.data,function(g){return g[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=Te(),c=0,f=0;f<s.length;++f)l.push(s[f][BT]),u.get(s[f][BT])||(u.set(s[f][BT],c),c++);var d=sd(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:Yx(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,v=new cn(d,this);return v.initData(s),v},e.prototype.getLayerSeries=function(){for(var t=this.getData(),n=t.count(),a=[],i=0;i<n;++i)a[i]=i;var o=t.mapDimension("single"),s=dC(a,function(u){return t.get("name",u)}),l=[];return s.buckets.each(function(u,c){u.sort(function(f,d){return t.get(o,f)-t.get(o,d)}),l.push({name:c,indices:u})}),l},e.prototype.getAxisTooltipData=function(t,n,a){ue(t)||(t=t?[t]:[]);for(var i=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,u,c=0;c<l;++c){for(var f=Number.MAX_VALUE,d=-1,v=o[c].indices.length,g=0;g<v;++g){var x=i.get(t[0],o[c].indices[g]),y=Math.abs(x-n);y<=f&&(u=x,f=y,d=o[c].indices[g])}s.push(d)}return{dataIndices:s,nestestValue:u}},e.prototype.formatTooltip=function(t,n,a){var i=this.getData(),o=i.getName(t),s=i.get(i.mapDimension("value"),t);return vr("nameValue",{name:o,value:s})},e.type="series.themeRiver",e.dependencies=["singleAxis"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},e})(wt);function yme(r,e){r.eachSeriesByType("themeRiver",function(t){var n=t.getData(),a=t.coordinateSystem,i={},o=a.getRect();i.rect=o;var s=t.get("boundaryGap"),l=a.getAxis();if(i.boundaryGap=s,l.orient==="horizontal"){s[0]=me(s[0],o.height),s[1]=me(s[1],o.height);var u=o.height-s[0]-s[1];oB(n,t,u)}else{s[0]=me(s[0],o.width),s[1]=me(s[1],o.width);var c=o.width-s[0]-s[1];oB(n,t,c)}n.setLayout("layoutInfo",i)})}function oB(r,e,t){if(r.count())for(var n=e.coordinateSystem,a=e.getLayerSeries(),i=r.mapDimension("single"),o=r.mapDimension("value"),s=ce(a,function(y){return ce(y.indices,function(b){var S=n.dataToPoint(r.get(i,b));return S[1]=r.get(o,b),S})}),l=xme(s),u=l.y0,c=t/l.max,f=a.length,d=a[0].indices.length,v,g=0;g<d;++g){v=u[g]*c,r.setItemLayout(a[0].indices[g],{layerIndex:0,x:s[0][g][0],y0:v,y:s[0][g][1]*c});for(var x=1;x<f;++x)v+=s[x-1][g][1]*c,r.setItemLayout(a[x].indices[g],{layerIndex:x,x:s[x][g][0],y0:v,y:s[x][g][1]*c})}}function xme(r){for(var e=r.length,t=r[0].length,n=[],a=[],i=0,o=0;o<t;++o){for(var s=0,l=0;l<e;++l)s+=r[l][o][1];s>i&&(i=s),n.push(s)}for(var u=0;u<t;++u)a[u]=(i-n[u])/2;i=0;for(var c=0;c<t;++c){var f=n[c]+a[c];f>i&&(i=f)}return{y0:a,max:i}}function bme(r){r.registerChartView(pme),r.registerSeriesModel(mme),r.registerLayout(yme),r.registerProcessor(cd("themeRiver"))}var _me=2,Sme=4,sB=(function(r){K(e,r);function e(t,n,a,i){var o=r.call(this)||this;o.z2=_me,o.textConfig={inside:!0},ze(o).seriesIndex=n.seriesIndex;var s=new at({z2:Sme,silent:t.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,t,n,a,i),o}return e.prototype.updateData=function(t,n,a,i,o){this.node=n,n.piece=this,a=a||this._seriesModel,i=i||this._ecModel;var s=this;ze(s).dataIndex=n.dataIndex;var l=n.getModel(),u=l.getModel("emphasis"),c=n.getLayout(),f=ie({},c);f.label=null;var d=n.getVisual("style");d.lineJoin="bevel";var v=n.getVisual("decal");v&&(d.decal=Ih(v,o));var g=zi(l.getModel("itemStyle"),f,!0);ie(f,g),P(xn,function(S){var T=s.ensureState(S),C=l.getModel([S,"itemStyle"]);T.style=C.getItemStyle();var M=zi(C,f);M&&(T.shape=M)}),t?(s.setShape(f),s.shape.r=c.r0,zt(s,{shape:{r:c.r}},a,n.dataIndex)):(ot(s,{shape:f},a),ka(s)),s.useStyle(d),this._updateLabel(a);var x=l.getShallow("cursor");x&&s.attr("cursor",x),this._seriesModel=a||this._seriesModel,this._ecModel=i||this._ecModel;var y=u.get("focus"),b=y==="relative"?Ch(n.getAncestorsIndices(),n.getDescendantIndices()):y==="ancestor"?n.getAncestorsIndices():y==="descendant"?n.getDescendantIndices():y;Ft(this,b,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){var n=this,a=this.node.getModel(),i=a.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),f=this,d=f.getTextContent(),v=this.node.dataIndex,g=i.get("minAngle")/180*Math.PI,x=i.get("show")&&!(g!=null&&Math.abs(s)<g);d.ignore=!x,P($p,function(b){var S=b==="normal"?a.getModel("label"):a.getModel([b,"label"]),T=b==="normal",C=T?d:d.ensureState(b),M=t.getFormattedLabel(v,b);T&&(M=M||n.node.name),C.style=Mt(S,{},null,b!=="normal",!0),M&&(C.style.text=M);var D=S.get("show");D!=null&&!T&&(C.ignore=!D);var L=y(S,"position"),E=T?f:f.states[b],R=E.style.fill;E.textConfig={outsideFill:S.get("color")==="inherit"?R:null,inside:L!=="outside"};var I,k=y(S,"distance")||0,z=y(S,"align"),O=y(S,"rotate"),G=Math.PI*.5,F=Math.PI*1.5,B=ea(O==="tangential"?Math.PI/2-l:l),Y=B>G&&!Dh(B-G)&&B<F;L==="outside"?(I=o.r+k,z=Y?"right":"left"):!z||z==="center"?(s===2*Math.PI&&o.r0===0?I=0:I=(o.r+o.r0)/2,z="center"):z==="left"?(I=o.r0+k,z=Y?"right":"left"):z==="right"&&(I=o.r-k,z=Y?"left":"right"),C.style.align=z,C.style.verticalAlign=y(S,"verticalAlign")||"middle",C.x=I*u+o.cx,C.y=I*c+o.cy;var H=0;O==="radial"?H=ea(-l)+(Y?Math.PI:0):O==="tangential"?H=ea(Math.PI/2-l)+(Y?Math.PI:0):it(O)&&(H=O*Math.PI/180),C.rotation=ea(H)});function y(b,S){var T=b.get(S);return T??i.get(S)}d.dirtyStyle()},e})(Qr),LA="sunburstRootToNode",lB="sunburstHighlight",wme="sunburstUnhighlight";function Tme(r){r.registerAction({type:LA,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},n);function n(a,i){var o=hg(e,[LA],a);if(o){var s=a.getViewRoot();s&&(e.direction=vL(s,o.node)?"rollUp":"drillDown"),a.resetViewRoot(o.node)}}}),r.registerAction({type:lB,update:"none"},function(e,t,n){e=ie({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},a);function a(i){var o=hg(e,[lB],i);o&&(e.dataIndex=o.node.dataIndex)}n.dispatchAction(ie(e,{type:"highlight"}))}),r.registerAction({type:wme,update:"updateView"},function(e,t,n){e=ie({},e),n.dispatchAction(ie(e,{type:"downplay"}))})}var Cme=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a,i){var o=this;this.seriesModel=t,this.api=a,this.ecModel=n;var s=t.getData(),l=s.tree.root,u=t.getViewRoot(),c=this.group,f=t.get("renderLabelForZeroData"),d=[];u.eachNode(function(S){d.push(S)});var v=this._oldChildren||[];g(d,v),b(l,u),this._initEvents(),this._oldChildren=d;function g(S,T){if(S.length===0&&T.length===0)return;new Zo(T,S,C,C).add(M).update(M).remove(Ve(M,null)).execute();function C(D){return D.getId()}function M(D,L){var E=D==null?null:S[D],R=L==null?null:T[L];x(E,R)}}function x(S,T){if(!f&&S&&!S.getValue()&&(S=null),S!==l&&T!==l){if(T&&T.piece)S?(T.piece.updateData(!1,S,t,n,a),s.setItemGraphicEl(S.dataIndex,T.piece)):y(T);else if(S){var C=new sB(S,t,n,a);c.add(C),s.setItemGraphicEl(S.dataIndex,C)}}}function y(S){S&&S.piece&&(c.remove(S.piece),S.piece=null)}function b(S,T){T.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,S,t,n,a):(o.virtualPiece=new sB(S,t,n,a),c.add(o.virtualPiece)),T.piece.off("click"),o.virtualPiece.on("click",function(C){o._rootToNode(T.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(n){var a=!1,i=t.seriesModel.getViewRoot();i.eachNode(function(o){if(!a&&o.piece&&o.piece===n.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")t._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";Ox(u,c)}}a=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:LA,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,n){var a=n.getData(),i=a.getItemLayout(0);if(i){var o=t[0]-i.cx,s=t[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type="sunburst",e})(_t),Ame=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t,n){var a={name:t.name,children:t.data};VU(a);var i=this._levelModels=ce(t.levels||[],function(l){return new Je(l,this,n)},this),o=dL.createTree(a,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var f=o.getNodeByDataIndex(c),d=i[f.depth];return d&&(u.parentModel=d),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return n.treePathInfo=db(a,this),n},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var n=this.getRawData().tree.root;(!t||t!==n&&!n.contains(t))&&(this._viewRoot=n)},e.prototype.enableAriaDecal=function(){U7(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e})(wt);function VU(r){var e=0;P(r.children,function(n){VU(n);var a=n.value;ue(a)&&(a=a[0]),e+=a});var t=r.value;ue(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),ue(r.value)?r.value[0]=t:r.value=t}var uB=Math.PI/180;function Mme(r,e,t){e.eachSeriesByType(r,function(n){var a=n.get("center"),i=n.get("radius");ue(i)||(i=[0,i]),ue(a)||(a=[a,a]);var o=t.getWidth(),s=t.getHeight(),l=Math.min(o,s),u=me(a[0],o),c=me(a[1],s),f=me(i[0],l/2),d=me(i[1],l/2),v=-n.get("startAngle")*uB,g=n.get("minAngle")*uB,x=n.getData().tree.root,y=n.getViewRoot(),b=y.depth,S=n.get("sort");S!=null&&GU(y,S);var T=0;P(y.children,function(B){!isNaN(B.getValue())&&T++});var C=y.getValue(),M=Math.PI/(C||T)*2,D=y.depth>0,L=y.height-(D?-1:1),E=(d-f)/(L||1),R=n.get("clockwise"),I=n.get("stillShowZeroSum"),k=R?1:-1,z=function(B,Y){if(B){var H=Y;if(B!==x){var X=B.getValue(),V=C===0&&I?M:X*M;V<g&&(V=g),H=Y+k*V;var W=B.depth-b-(D?-1:1),$=f+E*W,te=f+E*(W+1),le=n.getLevelModel(B);if(le){var ge=le.get("r0",!0),we=le.get("r",!0),de=le.get("radius",!0);de!=null&&(ge=de[0],we=de[1]),ge!=null&&($=me(ge,l/2)),we!=null&&(te=me(we,l/2))}B.setLayout({angle:V,startAngle:Y,endAngle:H,clockwise:R,cx:u,cy:c,r0:$,r:te})}if(B.children&&B.children.length){var ve=0;P(B.children,function(be){ve+=z(be,Y+ve)})}return H-Y}};if(D){var O=f,G=f+E,F=Math.PI*2;x.setLayout({angle:F,startAngle:v,endAngle:v+F,clockwise:R,cx:u,cy:c,r0:O,r:G})}z(y,v)})}function GU(r,e){var t=r.children||[];r.children=Dme(t,e),t.length&&P(r.children,function(n){GU(n,e)})}function Dme(r,e){if(Ae(e)){var t=ce(r,function(a,i){var o=a.getValue();return{params:{depth:a.depth,height:a.height,dataIndex:a.dataIndex,getValue:function(){return o}},index:i}});return t.sort(function(a,i){return e(a.params,i.params)}),ce(t,function(a){return r[a.index]})}else{var n=e==="asc";return r.sort(function(a,i){var o=(a.getValue()-i.getValue())*(n?1:-1);return o===0?(a.dataIndex-i.dataIndex)*(n?-1:1):o})}}function Lme(r){var e={};function t(n,a,i){if(n.depth===0)return ee.color.neutral50;for(var o=n;o&&o.depth>1;)o=o.parentNode;var s=a.getColorFromPalette(o.name||o.dataIndex+"",e);return n.depth>1&&ye(s)&&(s=bx(s,(n.depth-1)/(i-1)*.5)),s}r.eachSeriesByType("sunburst",function(n){var a=n.getData(),i=a.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=t(o,n,i.root.height));var u=a.ensureUniqueItemVisual(o.dataIndex,"style");ie(u,l)})})}function Nme(r){r.registerChartView(Cme),r.registerSeriesModel(Ame),r.registerLayout(Ve(Mme,"sunburst")),r.registerProcessor(Ve(cd,"sunburst")),r.registerVisual(Lme),Tme(r)}var cB={color:"fill",borderColor:"stroke"},Rme={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Vo=Ke(),Eme=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,n){return Qi(null,this)},e.prototype.getDataParams=function(t,n,a){var i=r.prototype.getDataParams.call(this,t,n);return a&&(i.info=Vo(a).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e})(wt);function Ime(r,e){return e=e||[0,0],ce(["x","y"],function(t,n){var a=this.getAxis(t),i=e[n],o=r[n]/2;return a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(i-o)-a.dataToCoord(i+o))},this)}function kme(r){var e=r.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:xe(Ime,r)}}}function Ome(r,e){return e=e||[0,0],ce([0,1],function(t){var n=e[t],a=r[t]/2,i=[],o=[];return i[t]=n-a,o[t]=n+a,i[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(i)[t]-this.dataToPoint(o)[t])},this)}function Pme(r){var e=r.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:r.getZoom()},api:{coord:function(t){return r.dataToPoint(t)},size:xe(Ome,r)}}}function zme(r,e){var t=this.getAxis(),n=e instanceof Array?e[0]:e,a=(r instanceof Array?r[0]:r)/2;return t.type==="category"?t.getBandWidth():Math.abs(t.dataToCoord(n-a)-t.dataToCoord(n+a))}function Bme(r){var e=r.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:xe(zme,r)}}}function jme(r,e){return e=e||[0,0],ce(["Radius","Angle"],function(t,n){var a="get"+t+"Axis",i=this[a](),o=e[n],s=r[n]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return t==="Angle"&&(l=l*Math.PI/180),l},this)}function Vme(r){var e=r.getRadiusAxis(),t=r.getAngleAxis(),n=e.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:n[1],r0:n[0]},api:{coord:function(a){var i=e.dataToRadius(a[0]),o=t.dataToAngle(a[1]),s=r.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:xe(jme,r)}}}function Gme(r){var e=r.getRect(),t=r.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(n,a){return r.dataToPoint(n,a)},layout:function(n,a){return r.dataToLayout(n,a)}}}}function Hme(r){var e=r.getRect();return{coordSys:{type:"matrix",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t,n){return r.dataToPoint(t,n)},layout:function(t,n){return r.dataToLayout(t,n)}}}}function HU(r,e,t,n){return r&&(r.legacy||r.legacy!==!1&&!t&&!n&&e!=="tspan"&&(e==="text"||Se(r,"text")))}function FU(r,e,t){var n=r,a,i,o;if(e==="text")o=n;else{o={},Se(n,"text")&&(o.text=n.text),Se(n,"rich")&&(o.rich=n.rich),Se(n,"textFill")&&(o.fill=n.textFill),Se(n,"textStroke")&&(o.stroke=n.textStroke),Se(n,"fontFamily")&&(o.fontFamily=n.fontFamily),Se(n,"fontSize")&&(o.fontSize=n.fontSize),Se(n,"fontStyle")&&(o.fontStyle=n.fontStyle),Se(n,"fontWeight")&&(o.fontWeight=n.fontWeight),i={type:"text",style:o,silent:!0},a={};var s=Se(n,"textPosition");t?a.position=s?n.textPosition:"inside":s&&(a.position=n.textPosition),Se(n,"textPosition")&&(a.position=n.textPosition),Se(n,"textOffset")&&(a.offset=n.textOffset),Se(n,"textRotation")&&(a.rotation=n.textRotation),Se(n,"textDistance")&&(a.distance=n.textDistance)}return fB(o,r),P(o.rich,function(l){fB(l,l)}),{textConfig:a,textContent:i}}function fB(r,e){e&&(e.font=e.textFont||e.font,Se(e,"textStrokeWidth")&&(r.lineWidth=e.textStrokeWidth),Se(e,"textAlign")&&(r.align=e.textAlign),Se(e,"textVerticalAlign")&&(r.verticalAlign=e.textVerticalAlign),Se(e,"textLineHeight")&&(r.lineHeight=e.textLineHeight),Se(e,"textWidth")&&(r.width=e.textWidth),Se(e,"textHeight")&&(r.height=e.textHeight),Se(e,"textBackgroundColor")&&(r.backgroundColor=e.textBackgroundColor),Se(e,"textPadding")&&(r.padding=e.textPadding),Se(e,"textBorderColor")&&(r.borderColor=e.textBorderColor),Se(e,"textBorderWidth")&&(r.borderWidth=e.textBorderWidth),Se(e,"textBorderRadius")&&(r.borderRadius=e.textBorderRadius),Se(e,"textBoxShadowColor")&&(r.shadowColor=e.textBoxShadowColor),Se(e,"textBoxShadowBlur")&&(r.shadowBlur=e.textBoxShadowBlur),Se(e,"textBoxShadowOffsetX")&&(r.shadowOffsetX=e.textBoxShadowOffsetX),Se(e,"textBoxShadowOffsetY")&&(r.shadowOffsetY=e.textBoxShadowOffsetY))}function hB(r,e,t){var n=r;n.textPosition=n.textPosition||t.position||"inside",t.offset!=null&&(n.textOffset=t.offset),t.rotation!=null&&(n.textRotation=t.rotation),t.distance!=null&&(n.textDistance=t.distance);var a=n.textPosition.indexOf("inside")>=0,i=r.fill||ee.color.neutral99;dB(n,e);var o=n.textFill==null;return a?o&&(n.textFill=t.insideFill||ee.color.neutral00,!n.textStroke&&t.insideStroke&&(n.textStroke=t.insideStroke),!n.textStroke&&(n.textStroke=i),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(o&&(n.textFill=r.fill||t.outsideFill||ee.color.neutral00),!n.textStroke&&t.outsideStroke&&(n.textStroke=t.outsideStroke)),n.text=e.text,n.rich=e.rich,P(e.rich,function(s){dB(s,s)}),n}function dB(r,e){e&&(Se(e,"fill")&&(r.textFill=e.fill),Se(e,"stroke")&&(r.textStroke=e.fill),Se(e,"lineWidth")&&(r.textStrokeWidth=e.lineWidth),Se(e,"font")&&(r.font=e.font),Se(e,"fontStyle")&&(r.fontStyle=e.fontStyle),Se(e,"fontWeight")&&(r.fontWeight=e.fontWeight),Se(e,"fontSize")&&(r.fontSize=e.fontSize),Se(e,"fontFamily")&&(r.fontFamily=e.fontFamily),Se(e,"align")&&(r.textAlign=e.align),Se(e,"verticalAlign")&&(r.textVerticalAlign=e.verticalAlign),Se(e,"lineHeight")&&(r.textLineHeight=e.lineHeight),Se(e,"width")&&(r.textWidth=e.width),Se(e,"height")&&(r.textHeight=e.height),Se(e,"backgroundColor")&&(r.textBackgroundColor=e.backgroundColor),Se(e,"padding")&&(r.textPadding=e.padding),Se(e,"borderColor")&&(r.textBorderColor=e.borderColor),Se(e,"borderWidth")&&(r.textBorderWidth=e.borderWidth),Se(e,"borderRadius")&&(r.textBorderRadius=e.borderRadius),Se(e,"shadowColor")&&(r.textBoxShadowColor=e.shadowColor),Se(e,"shadowBlur")&&(r.textBoxShadowBlur=e.shadowBlur),Se(e,"shadowOffsetX")&&(r.textBoxShadowOffsetX=e.shadowOffsetX),Se(e,"shadowOffsetY")&&(r.textBoxShadowOffsetY=e.shadowOffsetY),Se(e,"textShadowColor")&&(r.textShadowColor=e.textShadowColor),Se(e,"textShadowBlur")&&(r.textShadowBlur=e.textShadowBlur),Se(e,"textShadowOffsetX")&&(r.textShadowOffsetX=e.textShadowOffsetX),Se(e,"textShadowOffsetY")&&(r.textShadowOffsetY=e.textShadowOffsetY))}var UU={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},vB=nt(UU);Ra(Fi,function(r,e){return r[e]=1,r},{});Fi.join(", ");var u1=["","style","shape","extra"],Vh=Ke();function EL(r,e,t,n,a){var i=r+"Animation",o=Qh(r,n,a)||{},s=Vh(e).userDuring;return o.duration>0&&(o.during=s?xe(Xme,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=r),ie(o,t[i]),o}function J0(r,e,t,n){n=n||{};var a=n.dataIndex,i=n.isInit,o=n.clearStyle,s=t.isAnimationEnabled(),l=Vh(r),u=e.style;l.userDuring=e.during;var c={},f={};if(Zme(r,e,f),r.type==="compound")for(var d=r.shape.paths,v=e.shape.paths,g=0;g<v.length;g++){var x=v[g];jT("shape",x,d[g])}else jT("shape",e,f),jT("extra",e,f);if(!i&&s&&(qme(r,e,c),pB("shape",r,e,c),pB("extra",r,e,c),$me(r,e,u,c)),f.style=u,Fme(r,f,o),Yme(r,e),s)if(i){var y={};P(u1,function(S){var T=S?e[S]:e;T&&T.enterFrom&&(S&&(y[S]=y[S]||{}),ie(S?y[S]:y,T.enterFrom))});var b=EL("enter",r,e,t,a);b.duration>0&&r.animateFrom(y,b)}else Ume(r,e,a||0,t,c);YU(r,e),u?r.dirty():r.markRedraw()}function YU(r,e){for(var t=Vh(r).leaveToProps,n=0;n<u1.length;n++){var a=u1[n],i=a?e[a]:e;i&&i.leaveTo&&(t||(t=Vh(r).leaveToProps={}),a&&(t[a]=t[a]||{}),ie(a?t[a]:t,i.leaveTo))}}function gb(r,e,t,n){if(r){var a=r.parent,i=Vh(r).leaveToProps;if(i){var o=EL("update",r,e,t,0);o.done=function(){a&&a.remove(r)},r.animateTo(i,o)}else a&&a.remove(r)}}function nc(r){return r==="all"}function Fme(r,e,t){var n=e.style;if(!r.isGroup&&n){if(t){r.useStyle({});for(var a=r.animators,i=0;i<a.length;i++){var o=a[i];o.targetName==="style"&&o.changeTarget(r.style)}}r.setStyle(n)}e&&(e.style=null,e&&r.attr(e),e.style=n)}function Ume(r,e,t,n,a){if(a){var i=EL("update",r,e,n,t);i.duration>0&&r.animateFrom(a,i)}}function Yme(r,e){Se(e,"silent")&&(r.silent=e.silent),Se(e,"ignore")&&(r.ignore=e.ignore),r instanceof Ia&&Se(e,"invisible")&&(r.invisible=e.invisible),r instanceof et&&Se(e,"autoBatch")&&(r.autoBatch=e.autoBatch)}var _i={},Wme={setTransform:function(r,e){return _i.el[r]=e,this},getTransform:function(r){return _i.el[r]},setShape:function(r,e){var t=_i.el,n=t.shape||(t.shape={});return n[r]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(r){var e=_i.el.shape;if(e)return e[r]},setStyle:function(r,e){var t=_i.el,n=t.style;return n&&(n[r]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(r){var e=_i.el.style;if(e)return e[r]},setExtra:function(r,e){var t=_i.el.extra||(_i.el.extra={});return t[r]=e,this},getExtra:function(r){var e=_i.el.extra;if(e)return e[r]}};function Xme(){var r=this,e=r.el;if(e){var t=Vh(e).userDuring,n=r.userDuring;if(t!==n){r.el=r.userDuring=null;return}_i.el=e,n(Wme)}}function pB(r,e,t,n){var a=t[r];if(a){var i=e[r],o;if(i){var s=t.transition,l=a.transition;if(l)if(!o&&(o=n[r]={}),nc(l))ie(o,i);else for(var u=Dt(l),c=0;c<u.length;c++){var f=u[c],d=i[f];o[f]=d}else if(nc(s)||Ge(s,r)>=0){!o&&(o=n[r]={});for(var v=nt(i),c=0;c<v.length;c++){var f=v[c],d=i[f];Kme(a[f],d)&&(o[f]=d)}}}}}function jT(r,e,t){var n=e[r];if(n)for(var a=t[r]={},i=nt(n),o=0;o<i.length;o++){var s=i[o];a[s]=Cp(n[s])}}function qme(r,e,t){for(var n=e.transition,a=nc(n)?Fi:Dt(n||[]),i=0;i<a.length;i++){var o=a[i];if(!(o==="style"||o==="shape"||o==="extra")){var s=r[o];t[o]=s}}}function Zme(r,e,t){for(var n=0;n<vB.length;n++){var a=vB[n],i=UU[a],o=e[a];o&&(t[i[0]]=o[0],t[i[1]]=o[1])}for(var n=0;n<Fi.length;n++){var s=Fi[n];e[s]!=null&&(t[s]=e[s])}}function $me(r,e,t,n){if(t){var a=r.style,i;if(a){var o=t.transition,s=e.transition;if(o&&!nc(o)){var l=Dt(o);!i&&(i=n.style={});for(var u=0;u<l.length;u++){var c=l[u],f=a[c];i[c]=f}}else if(r.getAnimationStyleProps&&(nc(s)||nc(o)||Ge(s,"style")>=0)){var d=r.getAnimationStyleProps(),v=d?d.style:null;if(v){!i&&(i=n.style={});for(var g=nt(t),u=0;u<g.length;u++){var c=g[u];if(v[c]){var f=a[c];i[c]=f}}}}}}}function Kme(r,e){return $r(r)?r!==e:r!=null&&isFinite(r)}var WU=Ke(),Qme=["percent","easing","shape","style","extra"];function XU(r){r.stopAnimation("keyframe"),r.attr(WU(r))}function c1(r,e,t){if(!(!t.isAnimationEnabled()||!e)){if(ue(e)){P(e,function(s){c1(r,s,t)});return}var n=e.keyframes,a=e.duration;if(t&&a==null){var i=Qh("enter",t,0);a=i&&i.duration}if(!(!n||!a)){var o=WU(r);P(u1,function(s){if(!(s&&!r[s])){var l;n.sort(function(u,c){return u.percent-c.percent}),P(n,function(u){var c=r.animators,f=s?u[s]:u;if(f){var d=nt(f);if(s||(d=ht(d,function(x){return Ge(Qme,x)<0})),!!d.length){l||(l=r.animate(s,e.loop,!0),l.scope="keyframe");for(var v=0;v<c.length;v++)c[v]!==l&&c[v].targetName===l.targetName&&c[v].stopTracks(d);s&&(o[s]=o[s]||{});var g=s?o[s]:o;P(d,function(x){g[x]=((s?r[s]:r)||{})[x]}),l.whenWithKeys(a*u.percent,f,d,u.easing)}}}),l&&l.delay(e.delay||0).duration(a).start(e.easing)}})}}}var Go="emphasis",nl="normal",IL="blur",kL="select",wl=[nl,Go,IL,kL],VT={normal:["itemStyle"],emphasis:[Go,"itemStyle"],blur:[IL,"itemStyle"],select:[kL,"itemStyle"]},GT={normal:["label"],emphasis:[Go,"label"],blur:[IL,"label"],select:[kL,"label"]},Jme=["x","y"],eye="e\0\0",ma={normal:{},emphasis:{},blur:{},select:{}},tye={cartesian2d:kme,geo:Pme,single:Bme,polar:Vme,calendar:Gme,matrix:Hme};function NA(r){return r instanceof et}function RA(r){return r instanceof Ia}function rye(r,e){e.copyTransform(r),RA(e)&&RA(r)&&(e.setStyle(r.style),e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel,e.invisible=r.invisible,e.ignore=r.ignore,NA(e)&&NA(r)&&e.setShape(r.shape))}var nye=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a,i){this._progressiveEls=null;var o=this._data,s=t.getData(),l=this.group,u=gB(t,s,n,a);o||l.removeAll(),s.diff(o).add(function(f){HT(a,null,f,u(f,i),t,l,s)}).remove(function(f){var d=o.getItemGraphicEl(f);d&&gb(d,Vo(d).option,t)}).update(function(f,d){var v=o.getItemGraphicEl(d);HT(a,v,f,u(f,i),t,l,s)}).execute();var c=t.get("clip",!0)?Wg(t.coordinateSystem,!1,t):null;c?l.setClipPath(c):l.removeClipPath(),this._data=s},e.prototype.incrementalPrepareRender=function(t,n,a){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,n,a,i,o){var s=n.getData(),l=gB(n,s,a,i),u=this._progressiveEls=[];function c(v){v.isGroup||(v.incremental=!0,v.ensureState("emphasis").hoverLayer=!0)}for(var f=t.start;f<t.end;f++){var d=HT(null,null,f,l(f,o),n,this.group,s);d&&(d.traverse(c),u.push(d))}},e.prototype.eachRendered=function(t){Ml(this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,n,a,i){var o=n.element;if(o==null||a.name===o)return!0;for(;(a=a.__hostTarget||a.parent)&&a!==this.group;)if(a.name===o)return!0;return!1},e.type="custom",e})(_t);function OL(r){var e=r.type,t;if(e==="path"){var n=r.shape,a=n.width!=null&&n.height!=null?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,i=$U(n);t=Nh(i,null,a,n.layout||"center"),Vo(t).customPathData=i}else if(e==="image")t=new Nr({}),Vo(t).customImagePath=r.style.image;else if(e==="text")t=new at({});else if(e==="group")t=new De;else if(e==="compoundPath"){var n=r.shape;if(!n||!n.paths){var o="";pt(o)}var s=ce(n.paths,function(c){if(c.type==="path")return Nh(c.shape.pathData,c,null);var f=Qp(c.type);if(!f){var d="";pt(d)}return new f});t=new Bg({shape:{paths:s}})}else{var l=Qp(e);if(!l){var o="";pt(o)}t=new l}return Vo(t).customGraphicType=e,t.name=r.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function PL(r,e,t,n,a,i,o){XU(e);var s=a&&a.normal.cfg;s&&e.setTextConfig(s),n&&n.transition==null&&(n.transition=Jme);var l=n&&n.style;if(l){if(e.type==="text"){var u=l;Se(u,"textFill")&&(u.fill=u.textFill),Se(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,f=NA(e)?l.decal:null;r&&f&&(f.dirty=!0,c=Ih(f,r)),l.__decalPattern=c}if(RA(e)&&l){var c=l.__decalPattern;c&&(l.decal=c)}J0(e,n,i,{dataIndex:t,isInit:o,clearStyle:!0}),c1(e,n.keyframeAnimation,i)}function qU(r,e,t,n,a){var i=e.isGroup?null:e,o=a&&a[r].cfg;if(i){var s=i.ensureState(r);if(n===!1){var l=i.getState(r);l&&(l.style=null)}else s.style=n||null;o&&(s.textConfig=o),cc(i)}}function aye(r,e,t){if(!r.isGroup){var n=r,a=t.currentZ,i=t.currentZLevel;n.z=a,n.zlevel=i;var o=e.z2;o!=null&&(n.z2=o||0);for(var s=0;s<wl.length;s++)iye(n,e,wl[s])}}function iye(r,e,t){var n=t===nl,a=n?e:f1(e,t),i=a?a.z2:null,o;i!=null&&(o=n?r:r.ensureState(t),o.z2=i||0)}function gB(r,e,t,n){var a=r.get("renderItem");if(typeof a=="string"){var i=Qoe(a);i&&(a=i)}var o=r.coordinateSystem,s={};o&&(s=o.prepareCustoms?o.prepareCustoms(o):tye[o.type](o));for(var l=Ne({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:M,style:L,ordinalRawValue:D,styleEmphasis:E,visual:k,barLayout:z,currentSeriesIndices:O,font:G},s.api||{}),u={context:{},seriesId:r.id,seriesName:r.name,seriesIndex:r.seriesIndex,coordSys:s.coordSys,dataInsideLength:e.count(),encode:oye(r.getData()),itemPayload:r.get("itemPayload")||{}},c,f,d={},v={},g={},x={},y=0;y<wl.length;y++){var b=wl[y];g[b]=r.getModel(VT[b]),x[b]=r.getModel(GT[b])}function S(F){return F===c?f||(f=e.getItemModel(F)):e.getItemModel(F)}function T(F,B){return e.hasItemOption?F===c?d[B]||(d[B]=S(F).getModel(VT[B])):S(F).getModel(VT[B]):g[B]}function C(F,B){return e.hasItemOption?F===c?v[B]||(v[B]=S(F).getModel(GT[B])):S(F).getModel(GT[B]):x[B]}return function(F,B){return c=F,f=null,d={},v={},a&&a(Ne({dataIndexInside:F,dataIndex:e.getRawIndex(F),actionType:B?B.type:null},u),l)};function M(F,B){return B==null&&(B=c),e.getStore().get(e.getDimensionIndex(F||0),B)}function D(F,B){B==null&&(B=c),F=F||0;var Y=e.getDimensionInfo(F);if(!Y){var H=e.getDimensionIndex(F);return H>=0?e.getStore().get(H,B):void 0}var X=e.get(Y.name,B),V=Y&&Y.ordinalMeta;return V?V.categories[X]:X}function L(F,B){B==null&&(B=c);var Y=e.getItemVisual(B,"style"),H=Y&&Y.fill,X=Y&&Y.opacity,V=T(B,nl).getItemStyle();H!=null&&(V.fill=H),X!=null&&(V.opacity=X);var W={inheritColor:ye(H)?H:ee.color.neutral99},$=C(B,nl),te=Mt($,null,W,!1,!0);te.text=$.getShallow("show")?Ce(r.getFormattedLabel(B,nl),Ph(e,B)):null;var le=Ex($,W,!1);return I(F,V),V=hB(V,te,le),F&&R(V,F),V.legacy=!0,V}function E(F,B){B==null&&(B=c);var Y=T(B,Go).getItemStyle(),H=C(B,Go),X=Mt(H,null,null,!0,!0);X.text=H.getShallow("show")?Rn(r.getFormattedLabel(B,Go),r.getFormattedLabel(B,nl),Ph(e,B)):null;var V=Ex(H,null,!0);return I(F,Y),Y=hB(Y,X,V),F&&R(Y,F),Y.legacy=!0,Y}function R(F,B){for(var Y in B)Se(B,Y)&&(F[Y]=B[Y])}function I(F,B){F&&(F.textFill&&(B.textFill=F.textFill),F.textPosition&&(B.textPosition=F.textPosition))}function k(F,B){if(B==null&&(B=c),Se(cB,F)){var Y=e.getItemVisual(B,"style");return Y?Y[cB[F]]:null}if(Se(Rme,F))return e.getItemVisual(B,F)}function z(F){if(o.type==="cartesian2d"){var B=o.getBaseAxis();return tle(Ne({axis:B},F))}}function O(){return t.getCurrentSeriesIndices()}function G(F){return oD(F,t)}}function oye(r){var e={};return P(r.dimensions,function(t){var n=r.getDimensionInfo(t);if(!n.isExtraCoord){var a=n.coordDim,i=e[a]=e[a]||[];i[n.coordDimIndex]=r.getDimensionIndex(t)}}),e}function HT(r,e,t,n,a,i,o){if(!n){i.remove(e);return}var s=zL(r,e,t,n,a,i);return s&&o.setItemGraphicEl(t,s),s&&Ft(s,n.focus,n.blurScope,n.emphasisDisabled),s}function zL(r,e,t,n,a,i){var o=-1,s=e;e&&ZU(e,n,a)&&(o=Ge(i.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=OL(n),s&&rye(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),n.tooltipDisabled&&(u.tooltipDisabled=!0),ma.normal.cfg=ma.normal.conOpt=ma.emphasis.cfg=ma.emphasis.conOpt=ma.blur.cfg=ma.blur.conOpt=ma.select.cfg=ma.select.conOpt=null,ma.isLegacy=!1,lye(u,t,n,a,l,ma),sye(u,t,n,a,l),PL(r,u,t,n,ma,a,l),Se(n,"info")&&(Vo(u).info=n.info);for(var c=0;c<wl.length;c++){var f=wl[c];if(f!==nl){var d=f1(n,f),v=BL(n,d,f);qU(f,u,d,v,ma)}}return aye(u,n,a),n.type==="group"&&uye(r,u,t,n,a),o>=0?i.replaceAt(u,o):i.add(u),u}function ZU(r,e,t){var n=Vo(r),a=e.type,i=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||a!=null&&a!==n.customGraphicType||a==="path"&&dye(i)&&$U(i)!==n.customPathData||a==="image"&&Se(o,"image")&&o.image!==n.customImagePath}function sye(r,e,t,n,a){var i=t.clipPath;if(i===!1)r&&r.getClipPath()&&r.removeClipPath();else if(i){var o=r.getClipPath();o&&ZU(o,i,n)&&(o=null),o||(o=OL(i),r.setClipPath(o)),PL(null,o,e,i,null,n,a)}}function lye(r,e,t,n,a,i){if(!(r.isGroup||r.type==="compoundPath")){mB(t,null,i),mB(t,Go,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=r.getTextContent();if(o===!1)c&&r.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=OL(o),r.setTextContent(c)),PL(null,c,e,o,null,n,a);for(var f=o&&o.style,d=0;d<wl.length;d++){var v=wl[d];if(v!==nl){var g=i[v].conOpt;qU(v,c,g,BL(o,g,v),null)}}f?c.dirty():c.markRedraw()}}}}function mB(r,e,t){var n=e?f1(r,e):r,a=e?BL(r,n,Go):r.style,i=r.type,o=n?n.textConfig:null,s=r.textContent,l=s?e?f1(s,e):s:null;if(a&&(t.isLegacy||HU(a,i,!!o,!!l))){t.isLegacy=!0;var u=FU(a,i,!e);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var c=l;!c.type&&(c.type="text")}var f=e?t[e]:t.normal;f.cfg=o,f.conOpt=l}function f1(r,e){return e?r?r[e]:null:r}function BL(r,e,t){var n=e&&e.style;return n==null&&t===Go&&r&&(n=r.styleEmphasis),n}function uye(r,e,t,n,a){var i=n.children,o=i?i.length:0,s=n.$mergeChildren,l=s==="byName"||n.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){fye({api:r,oldChildren:e.children()||[],newChildren:i||[],dataIndex:t,seriesModel:a,group:e});return}u&&e.removeAll();for(var c=0;c<o;c++){var f=i[c],d=e.childAt(c);f?(f.ignore==null&&(f.ignore=!1),zL(r,d,t,f,a,e)):d.ignore=!0}for(var v=e.childCount()-1;v>=c;v--){var g=e.childAt(v);cye(e,g,a)}}}function cye(r,e,t){e&&gb(e,Vo(r).option,t)}function fye(r){new Zo(r.oldChildren,r.newChildren,yB,yB,r).add(xB).update(xB).remove(hye).execute()}function yB(r,e){var t=r&&r.name;return t??eye+e}function xB(r,e){var t=this.context,n=r!=null?t.newChildren[r]:null,a=e!=null?t.oldChildren[e]:null;zL(t.api,a,t.dataIndex,n,t.seriesModel,t.group)}function hye(r){var e=this.context,t=e.oldChildren[r];t&&gb(t,Vo(t).option,e.seriesModel)}function $U(r){return r&&(r.pathData||r.d)}function dye(r){return r&&(Se(r,"pathData")||Se(r,"d"))}function vye(r){r.registerChartView(nye),r.registerSeriesModel(Eme)}var Ru=Ke(),bB=Me,FT=xe,jL=(function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(e,t,n,a){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,!(!a&&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,t,n);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new De,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),n.getZr().add(s);else{var d=Ve(_B,t,f);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,t)}wB(s,t,!0),this._renderHandle(i)}},r.prototype.remove=function(e){this.clear(e)},r.prototype.dispose=function(e){this.clear(e)},r.prototype.determineAnimation=function(e,t){var n=t.get("animation"),a=e.axis,i=a.type==="category",o=t.get("snap");if(!o&&!i)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(i&&a.getBandWidth()>s)return!0;if(o){var l=oL(e).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},r.prototype.makeElOption=function(e,t,n,a,i){},r.prototype.createPointerEl=function(e,t,n,a){var i=t.pointer;if(i){var o=Ru(e).pointerEl=new _c[i.type](bB(t.pointer));e.add(o)}},r.prototype.createLabelEl=function(e,t,n,a){if(t.label){var i=Ru(e).labelEl=new at(bB(t.label));e.add(i),SB(i,a)}},r.prototype.updatePointerEl=function(e,t,n){var a=Ru(e).pointerEl;a&&t.pointer&&(a.setStyle(t.pointer.style),n(a,{shape:t.pointer.shape}))},r.prototype.updateLabelEl=function(e,t,n,a){var i=Ru(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),SB(i,a))},r.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,n=this._api.getZr(),a=this._handle,i=t.getModel("handle"),o=t.get("status");if(!i.get("show")||!o||o==="hide"){a&&n.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=Jh(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Wo(u.event)},onmousedown:FT(this._onHandleDragMove,this,0,0),drift:FT(this._onHandleDragMove,this),ondragend:FT(this._onHandleDragEnd,this)}),n.add(a)),wB(a,t,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");ue(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,id(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},r.prototype._moveHandleToValue=function(e,t){_B(this._axisPointerModel,!t&&this._moveAnimation,this._handle,UT(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var a=this.updateHandleTransform(UT(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(UT(a)),Ru(n).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,a=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),a&&t.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),rg(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},r})();function _B(r,e,t,n){KU(Ru(t).lastProp,n)||(Ru(t).lastProp=n,e?ot(t,n,r):(t.stopAnimation(),t.attr(n)))}function KU(r,e){if(Re(r)&&Re(e)){var t=!0;return P(e,function(n,a){t=t&&KU(r[a],n)}),!!t}else return r===e}function SB(r,e){r[e.get(["label","show"])?"show":"hide"]()}function UT(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function wB(r,e,t){var n=e.get("z"),a=e.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(n!=null&&(i.z=n),a!=null&&(i.zlevel=a),i.silent=t)})}function VL(r){var e=r.get("type"),t=r.getModel(e+"Style"),n;return e==="line"?(n=t.getLineStyle(),n.fill=null):e==="shadow"&&(n=t.getAreaStyle(),n.stroke=null),n}function QU(r,e,t,n,a){var i=t.get("value"),o=JU(i,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=rd(s.get("padding")||0),u=s.getFont(),c=V1(o,u),f=a.position,d=c.width+l[1]+l[3],v=c.height+l[0]+l[2],g=a.align;g==="right"&&(f[0]-=d),g==="center"&&(f[0]-=d/2);var x=a.verticalAlign;x==="bottom"&&(f[1]-=v),x==="middle"&&(f[1]-=v/2),pye(f,d,v,n);var y=s.get("backgroundColor");(!y||y==="auto")&&(y=e.get(["axisLine","lineStyle","color"])),r.label={x:f[0],y:f[1],style:Mt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:y}),z2:10}}function pye(r,e,t,n){var a=n.getWidth(),i=n.getHeight();r[0]=Math.min(r[0]+e,a)-e,r[1]=Math.min(r[1]+t,i)-t,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function JU(r,e,t,n,a){r=e.scale.parse(r);var i=e.scale.getLabel({value:r},{precision:a.precision}),o=a.formatter;if(o){var s={value:Wx(e,{value:r}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};P(n,function(l){var u=t.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),ye(o)?i=o.replace("{value}",i):Ae(o)&&(i=o(s))}return i}function GL(r,e,t){var n=Mr();return es(n,n,t.rotation),ni(n,n,t.position),Ja([r.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],n)}function e9(r,e,t,n,a,i){var o=mn.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=a.get(["label","margin"]),QU(e,n,a,i,{position:GL(n.axis,r,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function HL(r,e,t){return t=t||0,{x1:r[t],y1:r[1-t],x2:e[t],y2:e[1-t]}}function t9(r,e,t){return t=t||0,{x:r[t],y:r[1-t],width:e[t],height:e[1-t]}}function TB(r,e,t,n,a,i){return{cx:r,cy:e,r0:t,r:n,startAngle:a,endAngle:i,clockwise:!0}}var gye=(function(r){K(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,n,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),c=CB(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var d=VL(i),v=mye[u](s,f,c);v.style=d,t.graphicKey=v.type,t.pointer=v}var g=r1(l.getRect(),a);e9(n,t,g,a,i,o)},e.prototype.getHandleTransform=function(t,n,a){var i=r1(n.axis.grid.getRect(),n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=GL(n.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,n,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=CB(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,f=[t.x,t.y];f[c]+=n[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var d=(u[1]+u[0])/2,v=[d,d];v[c]=f[c];var g=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:t.rotation,cursorPoint:v,tooltipOption:g[c]}},e})(jL);function CB(r,e){var t={};return t[e.dim+"AxisIndex"]=e.index,r.getCartesian(t)}var mye={line:function(r,e,t){var n=HL([e,t[0]],[e,t[1]],AB(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,e,t){var n=Math.max(1,r.getBandWidth()),a=t[1]-t[0];return{type:"Rect",shape:t9([e-n/2,t[0]],[n,a],AB(r))}}};function AB(r){return r.dim==="x"?0:1}var yye=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}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:ee.color.border,width:1,type:"dashed"},shadowStyle:{color:ee.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:ee.color.neutral00,padding:[5,7,5,7],backgroundColor:ee.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:ee.color.accent40,throttle:40}},e})($e),Po=Ke(),xye=P;function r9(r,e,t){if(!rt.node){var n=e.getZr();Po(n).records||(Po(n).records={}),bye(n,e);var a=Po(n).records[r]||(Po(n).records[r]={});a.handler=t}}function bye(r,e){if(Po(r).initialized)return;Po(r).initialized=!0,t("click",Ve(MB,"click")),t("mousemove",Ve(MB,"mousemove")),t("globalout",Sye);function t(n,a){r.on(n,function(i){var o=wye(e);xye(Po(r).records,function(s){s&&a(s,i,o.dispatchAction)}),_ye(o.pendings,e)})}}function _ye(r,e){var t=r.showTip.length,n=r.hideTip.length,a;t?a=r.showTip[t-1]:n&&(a=r.hideTip[n-1]),a&&(a.dispatchAction=null,e.dispatchAction(a))}function Sye(r,e,t){r.handler("leave",null,t)}function MB(r,e,t,n){e.handler(r,t,n)}function wye(r){var e={showTip:[],hideTip:[]},t=function(n){var a=e[n.type];a?a.push(n):(n.dispatchAction=t,r.dispatchAction(n))};return{dispatchAction:t,pendings:e}}function EA(r,e){if(!rt.node){var t=e.getZr(),n=(Po(t).records||{})[r];n&&(Po(t).records[r]=null)}}var Tye=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=n.getComponent("tooltip"),o=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";r9("axisPointer",a,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(t,n){EA("axisPointer",n)},e.prototype.dispose=function(t,n){EA("axisPointer",n)},e.type="axisPointer",e})(Lt);function n9(r,e){var t=[],n=r.seriesIndex,a;if(n==null||!(a=e.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),o=lc(i,r);if(o==null||o<0||ue(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)t=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,d=u.dim,v=f==="x"||f==="radius"?1:0,g=i.mapDimension(d),x=[];x[v]=i.get(g,o),x[1-v]=i.get(i.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(x)||[]}else t=l.dataToPoint(i.getValues(ce(l.dimensions,function(b){return i.mapDimension(b)}),o))||[];else if(s){var y=s.getBoundingRect().clone();y.applyTransform(s.transform),t=[y.x+y.width/2,y.y+y.height/2]}return{point:t,el:s}}var DB=Ke();function Cye(r,e,t){var n=r.currTrigger,a=[r.x,r.y],i=r,o=r.dispatchAction||xe(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){ex(a)&&(a=n9({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var l=ex(a),u=i.axesInfo,c=s.axesInfo,f=n==="leave"||ex(a),d={},v={},g={list:[],map:{}},x={showPointer:Ve(Mye,v),showTooltip:Ve(Dye,g)};P(s.coordSysMap,function(b,S){var T=l||b.containPoint(a);P(s.coordSysAxesInfo[S],function(C,M){var D=C.axis,L=Eye(u,C);if(!f&&T&&(!u||L)){var E=L&&L.value;E==null&&!l&&(E=D.pointToData(a)),E!=null&&LB(C,E,x,!1,d)}})});var y={};return P(c,function(b,S){var T=b.linkGroup;T&&!v[S]&&P(T.axesInfo,function(C,M){var D=v[M];if(C!==b&&D){var L=D.value;T.mapper&&(L=b.axis.scale.parse(T.mapper(L,NB(C),NB(b)))),y[b.key]=L}})}),P(y,function(b,S){LB(c[S],b,x,!0,d)}),Lye(v,c,d),Nye(g,a,r,o),Rye(c,o,t),d}}function LB(r,e,t,n,a){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(e))){if(!r.involveSeries){t.showPointer(r,e);return}var o=Aye(e,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&ie(a,s[0]),!n&&r.snap&&i.containData(l)&&l!=null&&(e=l),t.showPointer(r,e,s),t.showTooltip(r,o,l)}}function Aye(r,e){var t=e.axis,n=t.dim,a=r,i=[],o=Number.MAX_VALUE,s=-1;return P(e.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(n),f,d;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(c,r,t);d=v.dataIndices,f=v.nestestValue}else{if(d=l.indicesOfNearest(n,c[0],r,t.type==="category"?.5:null),!d.length)return;f=l.getData().get(c[0],d[0])}if(!(f==null||!isFinite(f))){var g=r-f,x=Math.abs(g);x<=o&&((x<o||g>=0&&s<0)&&(o=x,s=g,a=f,i.length=0),P(d,function(y){i.push({seriesIndex:l.seriesIndex,dataIndexInside:y,dataIndex:l.getData().getRawIndex(y)})}))}}),{payloadBatch:i,snapToValue:a}}function Mye(r,e,t,n){r[e.key]={value:t,payloadBatch:n}}function Dye(r,e,t,n){var a=t.payloadBatch,i=e.axis,o=i.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!a.length)){var l=e.coordSys.model,u=fg(l),c=r.map[u];c||(c=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(c)),c.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function Lye(r,e,t){var n=t.axesInfo=[];P(e,function(a,i){var o=a.axisPointerModel.option,s=r[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function Nye(r,e,t,n){if(ex(e)||!r.list.length){n({type:"hideTip"});return}var a=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:r.list})}function Rye(r,e,t){var n=t.getZr(),a="axisPointerLastHighlights",i=DB(n)[a]||{},o=DB(n)[a]={};P(r,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&P(f.seriesDataIndices,function(d){var v=d.seriesIndex+" | "+d.dataIndex;o[v]=d})});var s=[],l=[];P(i,function(u,c){!o[c]&&l.push(u)}),P(o,function(u,c){!i[c]&&s.push(u)}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Eye(r,e){for(var t=0;t<(r||[]).length;t++){var n=r[t];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function NB(r){var e=r.axis.model,t={},n=t.axisDim=r.axis.dim;return t.axisIndex=t[n+"AxisIndex"]=e.componentIndex,t.axisName=t[n+"AxisName"]=e.name,t.axisId=t[n+"AxisId"]=e.id,t}function ex(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Zg(r){Cc.registerAxisPointerClass("CartesianAxisPointer",gye),r.registerComponentModel(yye),r.registerComponentView(Tye),r.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!ue(t)&&(e.axisPointer.link=[t])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=Ife(e,t)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Cye)}function Iye(r){Ue(M7),Ue(Zg)}var kye=(function(r){K(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,n,a,i,o){var s=a.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),f=s.dataToCoord(n),d=i.get("type");if(d&&d!=="none"){var v=VL(i),g=Pye[d](s,l,f,c);g.style=v,t.graphicKey=g.type,t.pointer=g}var x=i.get(["label","margin"]),y=Oye(n,a,i,l,x);QU(t,a,i,o,y)},e})(jL);function Oye(r,e,t,n,a){var i=e.axis,o=i.dataToCoord(r),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=n.getRadiusAxis().getExtent(),u,c,f;if(i.dim==="radius"){var d=Mr();es(d,d,s),ni(d,d,[n.cx,n.cy]),u=Ja([o,-a],d);var v=e.getModel("axisLabel").get("rotate")||0,g=mn.innerTextLayout(s,v*Math.PI/180,-1);c=g.textAlign,f=g.textVerticalAlign}else{var x=l[1];u=n.coordToPoint([x+a,o]);var y=n.cx,b=n.cy;c=Math.abs(u[0]-y)/x<.3?"center":u[0]>y?"left":"right",f=Math.abs(u[1]-b)/x<.3?"middle":u[1]>b?"top":"bottom"}return{position:u,align:c,verticalAlign:f}}var Pye={line:function(r,e,t,n){return r.dim==="angle"?{type:"Line",shape:HL(e.coordToPoint([n[0],t]),e.coordToPoint([n[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(r,e,t,n){var a=Math.max(1,r.getBandWidth()),i=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:TB(e.cx,e.cy,n[0],n[1],(-t-a/2)*i,(-t+a/2)*i)}:{type:"Sector",shape:TB(e.cx,e.cy,t-a/2,t+a/2,0,Math.PI*2)}}},zye=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var n,a=this.ecModel;return a.eachComponent(t,function(i){i.getCoordSysModel()===this&&(n=i)},this),n},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e})($e),FL=(function(r){K(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",qt).models[0]},e.type="polarAxis",e})($e);Qt(FL,ud);var Bye=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e})(FL),jye=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e})(FL),UL=(function(r){K(e,r);function e(t,n){return r.call(this,"radius",t,n)||this}return e.prototype.pointToData=function(t,n){return this.polar.pointToData(t,n)[this.dim==="radius"?0:1]},e})(za);UL.prototype.dataToRadius=za.prototype.dataToCoord;UL.prototype.radiusToData=za.prototype.coordToData;var Vye=Ke(),YL=(function(r){K(e,r);function e(t,n){return r.call(this,"angle",t,n||[0,360])||this}return e.prototype.pointToData=function(t,n){return this.polar.pointToData(t,n)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,n=t.getLabelModel(),a=t.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),c=V1(s==null?"":s+"",n.getFont(),"center","top"),f=Math.max(c.height,7),d=f/u;isNaN(d)&&(d=1/0);var v=Math.max(0,Math.floor(d)),g=Vye(t.model),x=g.lastAutoInterval,y=g.lastTickCount;return x!=null&&y!=null&&Math.abs(x-v)<=1&&Math.abs(y-o)<=1&&x>v?v=x:(g.lastTickCount=o,g.lastAutoInterval=v),v},e})(za);YL.prototype.dataToAngle=za.prototype.dataToCoord;YL.prototype.angleToData=za.prototype.coordToData;var a9=["radius","angle"],Gye=(function(){function r(e){this.dimensions=a9,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new UL,this._angleAxis=new YL,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},r.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},r.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(e){var t=[],n=this._angleAxis,a=this._radiusAxis;return n.scale.type===e&&t.push(n),a.scale.type===e&&t.push(a),t},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},r.prototype.dataToPoint=function(e,t,n){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)],n)},r.prototype.pointToData=function(e,t,n){n=n||[];var a=this.pointToCoord(e);return n[0]=this._radiusAxis.radiusToData(a[0],t),n[1]=this._angleAxis.angleToData(a[1],t),n},r.prototype.pointToCoord=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,a=this.getAngleAxis(),i=a.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);a.inverse?o=s-360:s=o+360;var l=Math.sqrt(t*t+n*n);t/=l,n/=l;for(var u=Math.atan2(-n,t)/Math.PI*180,c=u<o?1:-1;u<o||u>s;)u+=c*360;return[l,u]},r.prototype.coordToPoint=function(e,t){t=t||[];var n=e[0],a=e[1]/180*Math.PI;return t[0]=Math.cos(a)*n+this.cx,t[1]=-Math.sin(a)*n+this.cy,t},r.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),n=t.getExtent().slice();n[0]>n[1]&&n.reverse();var a=e.getExtent(),i=Math.PI/180,o=1e-4;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-a[0]*i,endAngle:-a[1]*i,clockwise:e.inverse,contain:function(s,l){var u=s-this.cx,c=l-this.cy,f=u*u+c*c,d=this.r,v=this.r0;return d!==v&&f-o<=d*d&&f+o>=v*v},x:this.cx-n[1],y:this.cy-n[1],width:n[1]*2,height:n[1]*2}},r.prototype.convertToPixel=function(e,t,n){var a=RB(t);return a===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(e,t,n){var a=RB(t);return a===this?this.pointToData(n):null},r})();function RB(r){var e=r.seriesModel,t=r.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function Hye(r,e,t){var n=e.get("center"),a=Sr(e,t).refContainer;r.cx=me(n[0],a.width)+a.x,r.cy=me(n[1],a.height)+a.y;var i=r.getRadiusAxis(),o=Math.min(a.width,a.height)/2,s=e.get("radius");s==null?s=[0,"100%"]:ue(s)||(s=[0,s]);var l=[me(s[0],o),me(s[1],o)];i.inverse?i.setExtent(l[1],l[0]):i.setExtent(l[0],l[1])}function Fye(r,e){var t=this,n=t.getAngleAxis(),a=t.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),r.eachSeries(function(s){if(s.coordinateSystem===t){var l=s.getData();P(Xx(l,"radius"),function(u){a.scale.unionExtentFromData(l,u)}),P(Xx(l,"angle"),function(u){n.scale.unionExtentFromData(l,u)})}}),vc(n.scale,n.model),vc(a.scale,a.model),n.type==="category"&&!n.onBand){var i=n.getExtent(),o=360/n.scale.count();n.inverse?i[1]+=o:i[1]-=o,n.setExtent(i[0],i[1])}}function Uye(r){return r.mainType==="angleAxis"}function EB(r,e){var t;if(r.type=e.get("type"),r.scale=Fg(e),r.onBand=e.get("boundaryGap")&&r.type==="category",r.inverse=e.get("inverse"),Uye(e)){r.inverse=r.inverse!==e.get("clockwise");var n=e.get("startAngle"),a=(t=e.get("endAngle"))!==null&&t!==void 0?t:n+(r.inverse?-360:360);r.setExtent(n,a)}e.axis=r,r.model=e}var Yye={dimensions:a9,create:function(r,e){var t=[];return r.eachComponent("polar",function(n,a){var i=new Gye(a+"");i.update=Fye;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");EB(o,l),EB(s,u),Hye(i,n,e),t.push(i),n.coordinateSystem=i,i.model=n}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="polar"){var a=n.getReferringComponents("polar",qt).models[0];n.coordinateSystem=a.coordinateSystem}}),t}},Wye=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function p0(r,e,t){e[1]>e[0]&&(e=e.slice().reverse());var n=r.coordToPoint([e[0],t]),a=r.coordToPoint([e[1],t]);return{x1:n[0],y1:n[1],x2:a[0],y2:a[1]}}function g0(r){var e=r.getRadiusAxis();return e.inverse?0:1}function IB(r){var e=r[0],t=r[r.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&r.pop()}var Xye=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,n){if(this.group.removeAll(),!!t.get("show")){var a=t.axis,i=a.polar,o=i.getRadiusAxis().getExtent(),s=a.getTicksCoords({breakTicks:"none"}),l=a.getMinorTicksCoords(),u=ce(a.getViewLabels(),function(c){c=Me(c);var f=a.scale,d=f.type==="ordinal"?f.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=a.dataToCoord(d),c});IB(u),IB(s),P(Wye,function(c){t.get([c,"show"])&&(!a.scale.isBlank()||c==="axisLine")&&qye[c](this.group,t,i,s,l,o,u)},this)}},e.type="angleAxis",e})(Cc),qye={axisLine:function(r,e,t,n,a,i){var o=e.getModel(["axisLine","lineStyle"]),s=t.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),c=g0(t),f=c?0:1,d,v=Math.abs(u[1]-u[0])===360?"Circle":"Arc";i[f]===0?d=new _c[v]({shape:{cx:t.cx,cy:t.cy,r:i[c],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):d=new $h({shape:{cx:t.cx,cy:t.cy,r:i[c],r0:i[f]},style:o.getLineStyle(),z2:1,silent:!0}),d.style.fill=null,r.add(d)},axisTick:function(r,e,t,n,a,i){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[g0(t)],u=ce(n,function(c){return new sr({shape:p0(t,[l,l+s],c.coord)})});r.add(Kn(u,{style:Ne(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,e,t,n,a,i){if(a.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[g0(t)],c=[],f=0;f<a.length;f++)for(var d=0;d<a[f].length;d++)c.push(new sr({shape:p0(t,[u,u+l],a[f][d].coord)}));r.add(Kn(c,{style:Ne(s.getModel("lineStyle").getLineStyle(),Ne(o.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(r,e,t,n,a,i,o){var s=e.getCategories(!0),l=e.getModel("axisLabel"),u=l.get("margin"),c=e.get("triggerEvent");P(o,function(f,d){var v=l,g=f.tickValue,x=i[g0(t)],y=t.coordToPoint([x+u,f.coord]),b=t.cx,S=t.cy,T=Math.abs(y[0]-b)/x<.3?"center":y[0]>b?"left":"right",C=Math.abs(y[1]-S)/x<.3?"middle":y[1]>S?"top":"bottom";if(s&&s[g]){var M=s[g];Re(M)&&M.textStyle&&(v=new Je(M.textStyle,l,l.ecModel))}var D=new at({silent:mn.isLabelSilent(e),style:Mt(v,{x:y[0],y:y[1],fill:v.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:T,verticalAlign:C})});if(r.add(D),rs({el:D,componentModel:e,itemName:f.formattedLabel,formatterParamsExtra:{isTruncated:function(){return D.isTruncated},value:f.rawLabel,tickIndex:d}}),c){var L=mn.makeAxisEventDataBase(e);L.targetType="axisLabel",L.value=f.rawLabel,ze(D).eventData=L}},this)},splitLine:function(r,e,t,n,a,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=0;f<n.length;f++){var d=u++%l.length;c[d]=c[d]||[],c[d].push(new sr({shape:p0(t,i,n[f].coord)}))}for(var f=0;f<c.length;f++)r.add(Kn(c[f],{style:Ne({stroke:l[f%l.length]},s.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(r,e,t,n,a,i){if(a.length){for(var o=e.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<a.length;u++)for(var c=0;c<a[u].length;c++)l.push(new sr({shape:p0(t,i,a[u][c].coord)}));r.add(Kn(l,{style:s.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(r,e,t,n,a,i){if(n.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=Math.PI/180,d=-n[0].coord*f,v=Math.min(i[0],i[1]),g=Math.max(i[0],i[1]),x=e.get("clockwise"),y=1,b=n.length;y<=b;y++){var S=y===b?n[0].coord:n[y].coord,T=u++%l.length;c[T]=c[T]||[],c[T].push(new Qr({shape:{cx:t.cx,cy:t.cy,r0:v,r:g,startAngle:d,endAngle:-S*f,clockwise:x},silent:!0})),d=-S*f}for(var y=0;y<c.length;y++)r.add(Kn(c[y],{style:Ne({fill:l[y%l.length]},s.getAreaStyle()),silent:!0}))}}},Zye=["splitLine","splitArea","minorSplitLine"],$ye=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,n,a){if(this.group.removeAll(),!!t.get("show")){var i=this._axisGroup,o=this._axisGroup=new De;this.group.add(o);var s=t.axis,l=s.polar,u=l.getAngleAxis(),c=s.getTicksCoords(),f=s.getMinorTicksCoords(),d=u.getExtent()[0],v=s.getExtent(),g=Qye(l,t,d),x=new mn(t,a,g);x.build(),o.add(x.group),jg(i,o,t),P(Zye,function(y){t.get([y,"show"])&&!s.scale.isBlank()&&Kye[y](this.group,t,l,d,v,c,f)},this)}},e.type="radiusAxis",e})(Cc),Kye={splitLine:function(r,e,t,n,a,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0,c=t.getAngleAxis(),f=Math.PI/180,d=c.getExtent(),v=Math.abs(d[1]-d[0])===360?"Circle":"Arc";l=l instanceof Array?l:[l];for(var g=[],x=0;x<i.length;x++){var y=u++%l.length;g[y]=g[y]||[],g[y].push(new _c[v]({shape:{cx:t.cx,cy:t.cy,r:Math.max(i[x].coord,0),startAngle:-d[0]*f,endAngle:-d[1]*f,clockwise:c.inverse}}))}for(var x=0;x<g.length;x++)r.add(Kn(g[x],{style:Ne({stroke:l[x%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(r,e,t,n,a,i,o){if(o.length){for(var s=e.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],c=0;c<o.length;c++)for(var f=0;f<o[c].length;f++)u.push(new Ki({shape:{cx:t.cx,cy:t.cy,r:o[c][f].coord}}));r.add(Kn(u,{style:Ne({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(r,e,t,n,a,i){if(i.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=i[0].coord,d=1;d<i.length;d++){var v=u++%l.length;c[v]=c[v]||[],c[v].push(new Qr({shape:{cx:t.cx,cy:t.cy,r0:f,r:i[d].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),f=i[d].coord}for(var d=0;d<c.length;d++)r.add(Kn(c[d],{style:Ne({fill:l[d%l.length]},s.getAreaStyle()),silent:!0}))}}};function Qye(r,e,t){return{position:[r.cx,r.cy],rotation:t/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}function i9(r){return r.get("stack")||"__ec_stack_"+r.seriesIndex}function o9(r,e){return e.dim+r.model.componentIndex}function Jye(r,e,t){var n={},a=e0e(ht(e.getSeriesByType(r),function(i){return!e.isSeriesFiltered(i)&&i.coordinateSystem&&i.coordinateSystem.type==="polar"}));e.eachSeriesByType(r,function(i){if(i.coordinateSystem.type==="polar"){var o=i.getData(),s=i.coordinateSystem,l=s.getBaseAxis(),u=o9(s,l),c=i9(i),f=a[u][c],d=f.offset,v=f.width,g=s.getOtherAxis(l),x=i.coordinateSystem.cx,y=i.coordinateSystem.cy,b=i.get("barMinHeight")||0,S=i.get("barMinAngle")||0;n[c]=n[c]||[];for(var T=o.mapDimension(g.dim),C=o.mapDimension(l.dim),M=$o(o,T),D=l.dim!=="radius"||!i.get("roundCap",!0),L=g.model,E=L.get("startValue"),R=g.dataToCoord(E||0),I=0,k=o.count();I<k;I++){var z=o.get(T,I),O=o.get(C,I),G=z>=0?"p":"n",F=R;M&&(n[c][O]||(n[c][O]={p:R,n:R}),F=n[c][O][G]);var B=void 0,Y=void 0,H=void 0,X=void 0;if(g.dim==="radius"){var V=g.dataToCoord(z)-R,W=l.dataToCoord(O);Math.abs(V)<b&&(V=(V<0?-1:1)*b),B=F,Y=F+V,H=W-d,X=H-v,M&&(n[c][O][G]=Y)}else{var $=g.dataToCoord(z,D)-R,te=l.dataToCoord(O);Math.abs($)<S&&($=($<0?-1:1)*S),B=te+d,Y=B+v,H=F,X=F+$,M&&(n[c][O][G]=X)}o.setItemLayout(I,{cx:x,cy:y,r0:B,r:Y,startAngle:-H*Math.PI/180,endAngle:-X*Math.PI/180,clockwise:H>=X})}}})}function e0e(r){var e={};P(r,function(n,a){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=o9(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),f=e[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},d=f.stacks;e[l]=f;var v=i9(n);d[v]||f.autoWidthCount++,d[v]=d[v]||{width:0,maxWidth:0};var g=me(n.get("barWidth"),c),x=me(n.get("barMaxWidth"),c),y=n.get("barGap"),b=n.get("barCategoryGap");g&&!d[v].width&&(g=Math.min(f.remainedWidth,g),d[v].width=g,f.remainedWidth-=g),x&&(d[v].maxWidth=x),y!=null&&(f.gap=y),b!=null&&(f.categoryGap=b)});var t={};return P(e,function(n,a){t[a]={};var i=n.stacks,o=n.bandWidth,s=me(n.categoryGap,o),l=me(n.gap,1),u=n.remainedWidth,c=n.autoWidthCount,f=(u-s)/(c+(c-1)*l);f=Math.max(f,0),P(i,function(x,y){var b=x.maxWidth;b&&b<f&&(b=Math.min(b,u),x.width&&(b=Math.min(b,x.width)),u-=b,x.width=b,c--)}),f=(u-s)/(c+(c-1)*l),f=Math.max(f,0);var d=0,v;P(i,function(x,y){x.width||(x.width=f),v=x,d+=x.width*(1+l)}),v&&(d-=v.width*l);var g=-d/2;P(i,function(x,y){t[a][y]=t[a][y]||{offset:g,width:x.width},g+=x.width*(1+l)})}),t}var t0e={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},r0e={splitNumber:5},n0e=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="polar",e})(Lt);function a0e(r){Ue(Zg),Cc.registerAxisPointerClass("PolarAxisPointer",kye),r.registerCoordinateSystem("polar",Yye),r.registerComponentModel(zye),r.registerComponentView(n0e),zh(r,"angle",Bye,t0e),zh(r,"radius",jye,r0e),r.registerComponentView(Xye),r.registerComponentView($ye),r.registerLayout(Ve(Jye,"bar"))}function IA(r,e){e=e||{};var t=r.coordinateSystem,n=r.axis,a={},i=n.position,o=n.orient,s=t.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};a.position=[o==="vertical"?u.vertical[i]:l[0],o==="horizontal"?u.horizontal[i]:l[3]];var c={horizontal:0,vertical:1};a.rotation=Math.PI/2*c[o];var f={top:-1,bottom:1,right:1,left:-1};a.labelDirection=a.tickDirection=a.nameDirection=f[i],r.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),jr(e.labelInside,r.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var d=r.get(["axisLabel","rotate"]);return a.labelRotate=i==="top"?-d:d,a.z2=1,a}var i0e=["splitArea","splitLine","breakArea"],o0e=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="SingleAxisPointer",t}return e.prototype.render=function(t,n,a,i){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new De;var l=IA(t),u=new mn(t,a,l);u.build(),o.add(this._axisGroup),o.add(u.group),P(i0e,function(c){t.get([c,"show"])&&s0e[c](this,this.group,this._axisGroup,t,a)},this),jg(s,this._axisGroup,t),r.prototype.render.call(this,t,n,a,i)},e.prototype.remove=function(){T7(this)},e.type="singleAxis",e})(Cc),s0e={splitLine:function(r,e,t,n,a){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color");l=l instanceof Array?l:[l];for(var u=s.get("width"),c=n.coordinateSystem.getRect(),f=i.isHorizontal(),d=[],v=0,g=i.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),x=[],y=[],b=0;b<g.length;++b){var S=i.toGlobalCoord(g[b].coord);f?(x[0]=S,x[1]=c.y,y[0]=S,y[1]=c.y+c.height):(x[0]=c.x,x[1]=S,y[0]=c.x+c.width,y[1]=S);var T=new sr({shape:{x1:x[0],y1:x[1],x2:y[0],y2:y[1]},silent:!0});Rh(T.shape,u);var C=v++%l.length;d[C]=d[C]||[],d[C].push(T)}for(var M=s.getLineStyle(["color"]),b=0;b<d.length;++b)e.add(Kn(d[b],{style:Ne({stroke:l[b%l.length]},M),silent:!0}))}},splitArea:function(r,e,t,n,a){w7(r,t,n,n)},breakArea:function(r,e,t,n,a){var i=qg(),o=n.axis.scale;i&&o.type!=="ordinal"&&i.rectCoordBuildBreakAxis(e,r,n,n.coordinateSystem.getRect(),a)}},tx=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getCoordSysModel=function(){return this},e.type="singleAxis",e.layoutMode="box",e.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}},jitter:0,jitterOverlap:!0,jitterMargin:2},e})($e);Qt(tx,ud.prototype);var l0e=(function(r){K(e,r);function e(t,n,a,i,o){var s=r.call(this,t,n,a)||this;return s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.pointToData=function(t,n){return this.coordinateSystem.pointToData(t)[0]},e})(za),s9=["single"],u0e=(function(){function r(e,t,n){this.type="single",this.dimension="single",this.dimensions=s9,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,n)}return r.prototype._init=function(e,t,n){var a=this.dimension,i=new l0e(a,Fg(e),[0,0],e.get("type"),e.get("position")),o=i.type==="category";i.onBand=o&&e.get("boundaryGap"),i.inverse=e.get("inverse"),i.orient=e.get("orient"),e.axis=i,i.model=e,i.coordinateSystem=this,this._axis=i},r.prototype.update=function(e,t){e.eachSeries(function(n){if(n.coordinateSystem===this){var a=n.getData();P(a.mapDimensionsAll(this.dimension),function(i){this._axis.scale.unionExtentFromData(a,i)},this),vc(this._axis.scale,this._axis.model)}},this)},r.prototype.resize=function(e,t){var n=Sr(e,t).refContainer;this._rect=Gt(e.getBoxLayoutParams(),n),this._adjustAxis()},r.prototype.getRect=function(){return this._rect},r.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,n=t.isHorizontal(),a=n?[0,e.width]:[0,e.height],i=t.inverse?1:0;t.setExtent(a[i],a[1-i]),this._updateAxisTransform(t,n?e.x:e.y)},r.prototype._updateAxisTransform=function(e,t){var n=e.getExtent(),a=n[0]+n[1],i=e.isHorizontal();e.toGlobalCoord=i?function(o){return o+t}:function(o){return a-o+t},e.toLocalCoord=i?function(o){return o-t}:function(o){return a-o+t}},r.prototype.getAxis=function(){return this._axis},r.prototype.getBaseAxis=function(){return this._axis},r.prototype.getAxes=function(){return[this._axis]},r.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},r.prototype.containPoint=function(e){var t=this.getRect(),n=this.getAxis(),a=n.orient;return a==="horizontal"?n.contain(n.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},r.prototype.pointToData=function(e,t,n){n=n||[];var a=this.getAxis();return n[0]=a.coordToData(a.toLocalCoord(e[a.orient==="horizontal"?0:1])),n},r.prototype.dataToPoint=function(e,t,n){var a=this.getAxis(),i=this.getRect();n=n||[];var o=a.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),n[o]=a.toGlobalCoord(a.dataToCoord(+e)),n[1-o]=o===0?i.y+i.height/2:i.x+i.width/2,n},r.prototype.convertToPixel=function(e,t,n){var a=kB(t);return a===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(e,t,n){var a=kB(t);return a===this?this.pointToData(n):null},r})();function kB(r){var e=r.seriesModel,t=r.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function c0e(r,e){var t=[];return r.eachComponent("singleAxis",function(n,a){var i=new u0e(n,r,e);i.name="single_"+a,i.resize(n,e),n.coordinateSystem=i,t.push(i)}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="singleAxis"){var a=n.getReferringComponents("singleAxis",qt).models[0];n.coordinateSystem=a&&a.coordinateSystem}}),t}var f0e={create:c0e,dimensions:s9},OB=["x","y"],h0e=["width","height"],d0e=(function(r){K(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,n,a,i,o){var s=a.axis,l=s.coordinateSystem,u=YT(l,1-h1(s)),c=l.dataToPoint(n)[0],f=i.get("type");if(f&&f!=="none"){var d=VL(i),v=v0e[f](s,c,u);v.style=d,t.graphicKey=v.type,t.pointer=v}var g=IA(a);e9(n,t,g,a,i,o)},e.prototype.getHandleTransform=function(t,n,a){var i=IA(n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=GL(n.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,n,a,i){var o=a.axis,s=o.coordinateSystem,l=h1(o),u=YT(s,l),c=[t.x,t.y];c[l]+=n[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var f=YT(s,1-l),d=(f[1]+f[0])/2,v=[d,d];return v[l]=c[l],{x:c[0],y:c[1],rotation:t.rotation,cursorPoint:v,tooltipOption:{verticalAlign:"middle"}}},e})(jL),v0e={line:function(r,e,t){var n=HL([e,t[0]],[e,t[1]],h1(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,e,t){var n=r.getBandWidth(),a=t[1]-t[0];return{type:"Rect",shape:t9([e-n/2,t[0]],[n,a],h1(r))}}};function h1(r){return r.isHorizontal()?0:1}function YT(r,e){var t=r.getRect();return[t[OB[e]],t[OB[e]]+t[h0e[e]]]}var p0e=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e})(Lt);function g0e(r){Ue(Zg),Cc.registerAxisPointerClass("SingleAxisPointer",d0e),r.registerComponentView(p0e),r.registerComponentView(o0e),r.registerComponentModel(tx),zh(r,"single",tx,tx.defaultOption),r.registerCoordinateSystem("single",f0e)}var m0e=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n,a){var i=Sc(t);r.prototype.init.apply(this,arguments),PB(t,i)},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),PB(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.layoutMode="box",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:ee.color.axisLine,width:1,type:"solid"}},itemStyle:{color:ee.color.neutral00,borderWidth:1,borderColor:ee.color.neutral10},dayLabel:{show:!0,firstDay:0,position:"start",margin:ee.size.s,color:ee.color.secondary},monthLabel:{show:!0,position:"start",margin:ee.size.s,align:"center",formatter:null,color:ee.color.secondary},yearLabel:{show:!0,position:null,margin:ee.size.xl,formatter:null,color:ee.color.quaternary,fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e})($e);function PB(r,e){var t=r.cellSize,n;ue(t)?n=t:n=r.cellSize=[t,t],n.length===1&&(n[1]=n[0]);var a=ce([0,1],function(i){return jae(e,i)&&(n[i]="auto"),n[i]!=null&&n[i]!=="auto"});Wi(r,e,{type:"box",ignoreSize:a})}var y0e=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=this.group;i.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=n.getLocaleModel();this._renderDayRect(t,s,i),this._renderLines(t,s,l,i),this._renderYearText(t,s,l,i),this._renderMonthText(t,u,l,i),this._renderWeekText(t,u,s,l,i)},e.prototype._renderDayRect=function(t,n,a){for(var i=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=n.start.time;u<=n.end.time;u=i.getNextNDay(u,1).time){var c=i.dataToCalendarLayout([u],!1).tl,f=new We({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});a.add(f)}},e.prototype._renderLines=function(t,n,a,i){var o=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var f=n.start,d=0;f.time<=n.end.time;d++){g(f.formatedDate),d===0&&(f=s.getDateInfo(n.start.y+"-"+n.start.m));var v=f.date;v.setMonth(v.getMonth()+1),f=s.getDateInfo(v)}g(s.getNextNDay(n.end.time,1).formatedDate);function g(x){o._firstDayOfMonth.push(s.getDateInfo(x)),o._firstDayPoints.push(s.dataToCalendarLayout([x],!1).tl);var y=o._getLinePointsOfOneWeek(t,x,a);o._tlpoints.push(y[0]),o._blpoints.push(y[y.length-1]),u&&o._drawSplitline(y,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,a),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,a),l,i)},e.prototype._getEdgesPoints=function(t,n,a){var i=[t[0].slice(),t[t.length-1].slice()],o=a==="horizontal"?0:1;return i[0][o]=i[0][o]-n/2,i[1][o]=i[1][o]+n/2,i},e.prototype._drawSplitline=function(t,n,a){var i=new Vr({z2:20,shape:{points:t},style:n});a.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,n,a){for(var i=t.coordinateSystem,o=i.getDateInfo(n),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),c=i.dataToCalendarLayout([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[a==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,n){return ye(t)&&t?Eae(t,n):Ae(t)?t(n):n.nameMap},e.prototype._yearTextPositionControl=function(t,n,a,i,o){var s=n[0],l=n[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var c=0;return(i==="left"||i==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,n,a,i){var o=t.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=a!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,f=(u[0][1]+u[1][1])/2,d=a==="horizontal"?0:1,v={top:[c,u[d][1]],bottom:[c,u[1-d][1]],left:[u[1-d][0],f],right:[u[d][0],f]},g=n.start.y;+n.end.y>+n.start.y&&(g=g+"-"+n.end.y);var x=o.get("formatter"),y={start:n.start.y,end:n.end.y,nameMap:g},b=this._formatterLabel(x,y),S=new at({z2:30,style:Mt(o,{text:b}),silent:o.get("silent")});S.attr(this._yearTextPositionControl(S,v[l],a,l,s)),i.add(S)}},e.prototype._monthTextPositionControl=function(t,n,a,i,o){var s="left",l="top",u=t[0],c=t[1];return a==="horizontal"?(c=c+o,n&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,n&&(l="middle"),i==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,n,a,i){var o=t.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),f=[this._tlpoints,this._blpoints];(!s||ye(s))&&(s&&(n=DC(s)||n),s=n.get(["time","monthAbbr"])||[]);var d=u==="start"?0:1,v=a==="horizontal"?0:1;l=u==="start"?-l:l;for(var g=c==="center",x=o.get("silent"),y=0;y<f[d].length-1;y++){var b=f[d][y].slice(),S=this._firstDayOfMonth[y];if(g){var T=this._firstDayPoints[y];b[v]=(T[v]+f[0][y+1][v])/2}var C=o.get("formatter"),M=s[+S.m-1],D={yyyy:S.y,yy:(S.y+"").slice(2),MM:S.m,M:+S.m,nameMap:M},L=this._formatterLabel(C,D),E=new at({z2:30,style:ie(Mt(o,{text:L}),this._monthTextPositionControl(b,g,a,u,l)),silent:x});i.add(E)}}},e.prototype._weekTextPositionControl=function(t,n,a,i,o){var s="center",l="middle",u=t[0],c=t[1],f=a==="start";return n==="horizontal"?(u=u+i+(f?1:-1)*o[0]/2,s=f?"right":"left"):(c=c+i+(f?1:-1)*o[1]/2,l=f?"bottom":"top"),{x:u,y:c,align:s,verticalAlign:l}},e.prototype._renderWeekText=function(t,n,a,i,o){var s=t.getModel("dayLabel");if(s.get("show")){var l=t.coordinateSystem,u=s.get("position"),c=s.get("nameMap"),f=s.get("margin"),d=l.getFirstDayOfWeek();if(!c||ye(c)){c&&(n=DC(c)||n);var v=n.get(["time","dayOfWeekShort"]);c=v||ce(n.get(["time","dayOfWeekAbbr"]),function(D){return D[0]})}var g=l.getNextNDay(a.end.time,7-a.lweek).time,x=[l.getCellWidth(),l.getCellHeight()];f=me(f,Math.min(x[1],x[0])),u==="start"&&(g=l.getNextNDay(a.start.time,-(7+a.fweek)).time,f=-f);for(var y=s.get("silent"),b=0;b<7;b++){var S=l.getNextNDay(g,b),T=l.dataToCalendarLayout([S.time],!1).center,C=b;C=Math.abs((b+d)%7);var M=new at({z2:30,style:ie(Mt(s,{text:c[C]}),this._weekTextPositionControl(T,i,u,f,x)),silent:y});o.add(M)}}},e.type="calendar",e})(Lt),WT=864e5,x0e=(function(){function r(e,t,n){this.type="calendar",this.dimensions=r.dimensions,this.getDimensionsInfo=r.getDimensionsInfo,this._model=e,this._update(t,n)}return r.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},r.prototype.getRangeInfo=function(){return this._rangeInfo},r.prototype.getModel=function(){return this._model},r.prototype.getRect=function(){return this._rect},r.prototype.getCellWidth=function(){return this._sw},r.prototype.getCellHeight=function(){return this._sh},r.prototype.getOrient=function(){return this._orient},r.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},r.prototype.getDateInfo=function(e){e=$i(e);var t=e.getFullYear(),n=e.getMonth()+1,a=n<10?"0"+n:""+n,i=e.getDate(),o=i<10?"0"+i:""+i,s=e.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:t+"",m:a,d:o,day:s,time:e.getTime(),formatedDate:t+"-"+a+"-"+o,date:e}},r.prototype.getNextNDay=function(e,t){return t=t||0,t===0?this.getDateInfo(e):(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+t),this.getDateInfo(e))},r.prototype._update=function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,a=["width","height"],i=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[n,7]:[7,n];P([0,1],function(f){c(i,f)&&(o[a[f]]=i[f]*s[f])});var l={width:t.getWidth(),height:t.getHeight()},u=this._rect=Gt(o,l);P([0,1],function(f){c(i,f)||(i[f]=u[a[f]]/s[f])});function c(f,d){return f[d]!=null&&f[d]!=="auto"}this._sw=i[0],this._sh=i[1]},r.prototype.dataToPoint=function(e,t,n){n=n||[],ue(e)&&(e=e[0]),t==null&&(t=!0);var a=this.getDateInfo(e),i=this._rangeInfo,o=a.formatedDate;if(t&&!(a.time>=i.start.time&&a.time<i.end.time+WT))return n[0]=n[1]=NaN,n;var s=a.day,l=this._getRangeInfo([i.start.time,o]).nthWeek;return this._orient==="vertical"?(n[0]=this._rect.x+s*this._sw+this._sw/2,n[1]=this._rect.y+l*this._sh+this._sh/2):(n[0]=this._rect.x+l*this._sw+this._sw/2,n[1]=this._rect.y+s*this._sh+this._sh/2),n},r.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},r.prototype.dataToLayout=function(e,t,n){n=n||{};var a=n.rect=n.rect||{},i=n.contentRect=n.contentRect||{},o=this.dataToPoint(e,t);return a.x=o[0]-this._sw/2,a.y=o[1]-this._sh/2,a.width=this._sw,a.height=this._sh,ke.copy(i,a),fc(i,this._lineWidth/2,!0,!0),n},r.prototype.dataToCalendarLayout=function(e,t){var n=this.dataToPoint(e,t);return{center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},r.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,n=Math.floor((e[1]-this._rect.y)/this._sh)+1,a=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(n,t-1,a):this._getDateByWeeksAndDay(t,n-1,a)},r.prototype.convertToPixel=function(e,t,n){var a=XT(t);return a===this?a.dataToPoint(n):null},r.prototype.convertToLayout=function(e,t,n){var a=XT(t);return a===this?a.dataToLayout(n):null},r.prototype.convertFromPixel=function(e,t,n){var a=XT(t);return a===this?a.pointToData(n):null},r.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},r.prototype._initRangeOption=function(){var e=this._model.get("range"),t;if(ue(e)&&e.length===1&&(e=e[0]),ue(e))t=e;else{var n=e.toString();if(/^\d{4}$/.test(n)&&(t=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var a=this.getDateInfo(n),i=a.date;i.setMonth(i.getMonth()+1);var o=this.getNextNDay(i,-1);t=[a.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(t=[n,n])}if(!t)return e;var s=this._getRangeInfo(t);return s.start.time>s.end.time&&t.reverse(),t},r.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],n;t[0].time>t[1].time&&(n=!0,t.reverse());var a=Math.floor(t[1].time/WT)-Math.floor(t[0].time/WT)+1,i=new Date(t[0].time),o=i.getDate(),s=t[1].date.getDate();i.setDate(o+a-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-t[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-t[1].time)*u>0;)a-=u,i.setDate(l-u);var c=Math.floor((a+t[0].day+6)/7),f=n?-c+1:c-1;return n&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:a,weeks:c,nthWeek:f,fweek:t[0].day,lweek:t[1].day}},r.prototype._getDateByWeeksAndDay=function(e,t,n){var a=this._getRangeInfo(n);if(e>a.weeks||e===0&&t<a.fweek||e===a.weeks&&t>a.lweek)return null;var i=(e-1)*7-a.fweek+t,o=new Date(a.start.time);return o.setDate(+a.start.d+i),this.getDateInfo(o)},r.create=function(e,t){var n=[];return e.eachComponent("calendar",function(a){var i=new r(a,e,t);n.push(i),a.coordinateSystem=i}),e.eachComponent(function(a,i){Gg({targetModel:i,coordSysType:"calendar",coordSysProvider:AH})}),n},r.dimensions=["time","value"],r})();function XT(r){var e=r.calendarModel,t=r.seriesModel,n=e?e.coordinateSystem:t?t.coordinateSystem:null;return n}function b0e(r){r.registerComponentModel(m0e),r.registerComponentView(y0e),r.registerCoordinateSystem("calendar",x0e)}var Ro={level:1,leaf:2,nonLeaf:3},Ho={none:0,all:1,body:2,corner:3};function kA(r,e,t){var n=e[je[t]].getCell(r);return!n&&it(r)&&r<0&&(n=e[je[1-t]].getUnitLayoutInfo(t,Math.round(r))),n}function l9(r){var e=r||[];return e[0]=e[0]||[],e[1]=e[1]||[],e[0][0]=e[0][1]=e[1][0]=e[1][1]=NaN,e}function u9(r,e,t,n,a){zB(r[0],e,a,t,n,0),zB(r[1],e,a,t,n,1)}function zB(r,e,t,n,a,i){r[0]=1/0,r[1]=-1/0;var o=n[i],s=ue(o)?o:[o],l=s.length,u=!!t;if(l>=1?(BB(r,e,s,u,a,i,0),l>1&&BB(r,e,s,u,a,i,l-1)):r[0]=r[1]=NaN,u){var c=-a[je[1-i]].getLocatorCount(i),f=a[je[i]].getLocatorCount(i)-1;t===Ho.body?c=ir(0,c):t===Ho.corner&&(f=na(-1,f)),f<c&&(c=f=NaN),Zr(r[0])&&(r[0]=c),Zr(r[1])&&(r[1]=f),r[0]=ir(na(r[0],f),c),r[1]=ir(na(r[1],f),c)}}function BB(r,e,t,n,a,i,o){var s=kA(t[o],a,i);if(!s){r[0]=r[1]=NaN;return}var l=s.id[je[i]],u=l,c=T0e(s);c&&(u+=c.span[je[i]]-1),r[0]=na(r[0],l,u),r[1]=ir(r[1],l,u)}function m0(r,e){return Zr(r[e][0])||Zr(r[e][1])}function jB(r,e,t,n){e=e||_0e;for(var a=0;a<n;a++)e[a]=!1;for(;;){for(var i=!1,a=0;a<n;a++){var o=t[a];!e[a]&&o.cellMergeOwner&&S0e(r,o.locatorRange)&&(e[a]=!0,i=!0)}if(!i)break}}var _0e=[];function S0e(r,e){return!VB(r[0],e[0])||!VB(r[1],e[1])?!1:(r[0][0]=na(r[0][0],e[0][0]),r[0][1]=ir(r[0][1],e[0][1]),r[1][0]=na(r[1][0],e[1][0]),r[1][1]=ir(r[1][1],e[1][1]),!0)}function VB(r,e){return r[1]>=e[0]&&r[0]<=e[1]}function GB(r,e){r.id.set(e[0][0],e[1][0]),r.span.set(e[0][1]-r.id.x+1,e[1][1]-r.id.y+1)}function w0e(r,e){r[0][0]=e[0][0],r[0][1]=e[0][1],r[1][0]=e[1][0],r[1][1]=e[1][1]}function HB(r,e,t,n){var a=kA(e[n][0],t,n),i=kA(e[n][1],t,n);r[je[n]]=r[dr[n]]=NaN,a&&i&&(r[je[n]]=a.xy,r[dr[n]]=i.xy+i.wh-a.xy)}function Fv(r,e,t,n){return r[je[e]]=t,r[je[1-e]]=n,r}function T0e(r){return r&&(r.type===Ro.leaf||r.type===Ro.nonLeaf)?r:null}function d1(){return{x:NaN,y:NaN,width:NaN,height:NaN}}var FB=(function(){function r(e,t){this._cells=[],this._levels=[],this.dim=e,this.dimIdx=e==="x"?0:1,this._model=t,this._uniqueValueGen=C0e(e);var n=t.get("data",!0);n!=null&&!ue(n)&&(n=[]),n?this._initByDimModelData(n):this._initBySeriesData()}return r.prototype._initByDimModelData=function(e){var t=this,n=t._cells,a=t._levels,i=[],o=0;t._leavesCount=s(e,0,0),l();return;function s(u,c,f){var d=0;return u&&P(u,function(v,g){var x;ye(v)?x={value:v}:Re(v)?(x=v,v.value!=null&&!ye(v.value)&&(x={value:null})):x={value:null};var y={type:Ro.nonLeaf,ordinal:NaN,level:f,firstLeafLocator:c,id:new Ie,span:Fv(new Ie,t.dimIdx,1,1),option:x,xy:NaN,wh:NaN,dim:t,rect:d1()};o++,(i[c]||(i[c]=[])).push(y),a[f]||(a[f]={type:Ro.level,xy:NaN,wh:NaN,option:null,id:new Ie,dim:t});var b=s(x.children,c,f+1),S=Math.max(1,b);y.span[je[t.dimIdx]]=S,d+=S,c+=S}),d}function l(){for(var u=[];n.length<o;)for(var c=0;c<i.length;c++){var f=i[c].pop();if(f){f.ordinal=u.length;var d=f.option.value;u.push(d),n.push(f),t._uniqueValueGen.calcDupBase(d)}}t._uniqueValueGen.ensureValueUnique(u,n);var v=t._ordinalMeta=new og({categories:u,needCollect:!1,deduplication:!1});t._scale=new kh({ordinalMeta:v});for(var g=0;g<t._leavesCount;g++){var x=t._cells[g];x.type=Ro.leaf,x.span[je[1-t.dimIdx]]=t._levels.length-x.level}t._initCellsId(),t._initLevelIdOptions()}},r.prototype._initBySeriesData=function(){var e=this;e._leavesCount=0,e._levels=[{type:Ro.level,xy:NaN,wh:NaN,option:null,id:new Ie,dim:e}],e._initLevelIdOptions();var t=e._ordinalMeta=new og({needCollect:!0,deduplication:!0,onCollect:function(n,a){var i=e._cells[a]={type:Ro.leaf,ordinal:a,level:0,firstLeafLocator:a,id:new Ie,span:Fv(new Ie,e.dimIdx,1,1),option:{value:n+""},xy:NaN,wh:NaN,dim:e,rect:d1()};e._leavesCount++,e._setCellId(i)}});e._scale=new kh({ordinalMeta:t})},r.prototype._setCellId=function(e){var t=this._levels.length,n=this.dimIdx;Fv(e.id,n,e.firstLeafLocator,e.level-t)},r.prototype._initCellsId=function(){var e=this._levels.length,t=this.dimIdx;P(this._cells,function(n){Fv(n.id,t,n.firstLeafLocator,n.level-e)})},r.prototype._initLevelIdOptions=function(){var e=this._levels.length,t=this.dimIdx,n=this._model.get("levels",!0);n=ue(n)?n:[],P(this._levels,function(a,i){Fv(a.id,t,0,i-e),a.option=n[i]})},r.prototype.shouldShow=function(){return!!this._model.getShallow("show",!0)},r.prototype.resetLayoutIterator=function(e,t,n,a){if(e=e||new ul,t===this.dimIdx){var i=this._leavesCount,o=n!=null?Math.max(0,n):0;a=a!=null?Math.min(a,i):i,e.reset(this._cells,o,o+a)}else{var i=this._levels.length,o=n!=null?Math.max(0,n+i):0;a=a!=null?Math.min(a,i):i,e.reset(this._levels,o,o+a)}return e},r.prototype.resetCellIterator=function(e){return(e||new ul).reset(this._cells,0)},r.prototype.resetLevelIterator=function(e){return(e||new ul).reset(this._levels,0)},r.prototype.getLayout=function(e,t,n){var a=this.getUnitLayoutInfo(t,n);e[je[t]]=a?a.xy:NaN,e[dr[t]]=a?a.wh:NaN},r.prototype.getUnitLayoutInfo=function(e,t){return e===this.dimIdx?t<this._leavesCount?this._cells[t]:void 0:this._levels[t+this._levels.length]},r.prototype.getCell=function(e){var t=this._scale.parse(e);return Zr(t)?void 0:this._cells[t]},r.prototype.getLocatorCount=function(e){return e===this.dimIdx?this._leavesCount:this._levels.length},r.prototype.getOrdinalMeta=function(){return this._ordinalMeta},r})();function C0e(r){var e=r.toUpperCase(),t=new RegExp("^"+e+"([0-9]+)$"),n=0;function a(s){var l;s!=null&&(l=s.match(t))&&(n=ir(n,+l[1]+1))}function i(){return""+e+n++}function o(s,l){for(var u=Te(),c=0;c<s.length;c++){var f=s[c];(f==null||u.get(f)!=null)&&(s[c]=f=i(),l[c].option=Ne({value:f},l[c].option)),u.set(f,!0)}}return{calcDupBase:a,ensureValueUnique:o}}var UB=(function(){function r(e,t,n){this._model=t,this._dims=n,this._kind=e,this._cellMergeOwnerList=[]}return r.prototype._ensureCellMap=function(){var e=this,t=e._cellMap;return t||(t=e._cellMap=Te(),n()),t;function n(){var i=[],o=e._model.getShallow("data");o&&!ue(o)&&(o=null),P(o,function(g,x){if(!(!Re(g)||!ue(g.coord))){var y=l9([]),b=null;if(u9(y,b,g.coord,e._dims,g.coordClamp?Ho[e._kind]:Ho.none),!(m0(y,0)||m0(y,1))){var S=g&&g.mergeCells,T={id:new Ie,span:new Ie,locatorRange:y,option:g,cellMergeOwner:S};GB(T,y),i.push(T)}}});for(var s=[],l=0;l<i.length;l++){var u=i[l];if(u.cellMergeOwner){var c=u.locatorRange;jB(c,s,i,l);for(var f=0;f<l;f++)s[f]&&(i[f].cellMergeOwner=!1);if(c[0][0]!==u.id.x||c[1][0]!==u.id.y){u.cellMergeOwner=!1;var d=ie({},u.option);d.coord=null;var v={id:new Ie,span:new Ie,locatorRange:c,option:d,cellMergeOwner:!0};GB(v,c),i.push(v)}}}P(i,function(g){var x=a(g.id.x,g.id.y);if(g.cellMergeOwner&&(x.cellMergeOwner=!0,x.span=g.span,x.locatorRange=g.locatorRange,x.spanRect=d1(),e._cellMergeOwnerList.push(x)),!(!g.cellMergeOwner&&!g.option))for(var y=0;y<g.span.y;y++)for(var b=0;b<g.span.x;b++){var S=a(g.id.x+b,g.id.y+y);S.option=g.option,g.cellMergeOwner&&(S.inSpanOf=x)}})}function a(i,o){var s=YB(i,o),l=t.get(s);return l||(l=t.set(s,{id:new Ie(i,o),option:null,inSpanOf:null,span:null,spanRect:null,locatorRange:null,cellMergeOwner:!1})),l}},r.prototype.getCell=function(e){return this._ensureCellMap().get(YB(e[0],e[1]))},r.prototype.travelExistingCells=function(e){this._ensureCellMap().each(e)},r.prototype.expandRangeByCellMerge=function(e){if(!m0(e,0)&&!m0(e,1)&&e[0][0]===e[0][1]&&e[1][0]===e[1][1]){qT[0]=e[0][0],qT[1]=e[1][0];var t=this.getCell(qT),n=t&&t.inSpanOf;if(n){w0e(e,n.locatorRange);return}}var a=this._cellMergeOwnerList;jB(e,null,a,a.length)},r})(),qT=[];function YB(r,e){return r+"|"+e}var WL={show:!0,color:ee.color.secondary,overflow:"break",lineOverflow:"truncate",padding:[2,3,2,3],distance:0};function XL(r){return{color:"none",borderWidth:1,borderColor:r?"none":ee.color.borderTint}}var WB={show:!0,label:WL,itemStyle:XL(!1),silent:void 0,dividerLineStyle:{width:1,color:ee.color.border}},A0e={label:WL,itemStyle:XL(!1),silent:void 0},M0e={label:WL,itemStyle:XL(!0),silent:void 0},D0e={z:-50,left:"10%",top:"10%",right:"10%",bottom:"10%",x:WB,y:WB,body:A0e,corner:M0e,backgroundStyle:{color:"none",borderColor:ee.color.axisLine,borderWidth:1}},L0e=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){var t=this._dimModels={x:new XB(this.get("x",!0)||{}),y:new XB(this.get("y",!0)||{})};t.x.option.type=t.y.option.type="category";var n=t.x.dim=new FB("x",t.x),a=t.y.dim=new FB("y",t.y),i={x:n,y:a};this._body=new UB("body",new Je(this.getShallow("body")),i),this._corner=new UB("corner",new Je(this.getShallow("corner")),i)},e.prototype.getDimensionModel=function(t){return this._dimModels[t]},e.prototype.getBody=function(){return this._body},e.prototype.getCorner=function(){return this._corner},e.type="matrix",e.layoutMode="box",e.defaultOption=D0e,e})($e),XB=(function(r){K(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getOrdinalMeta=function(){return this.dim.getOrdinalMeta()},e})(Je),y0=Math.round,N0e=0,R0e=99,E0e={normal:25,special:100},I0e={normal:50,special:125},k0e=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n){this.group.removeAll();var a=this.group,i=t.coordinateSystem,o=i.getRect(),s=t.getDimensionModel("x"),l=t.getDimensionModel("y"),u=s.dim,c=l.dim;O0e(a,t,n),P0e(a,t,u,c,n);var f=t.getShallow("borderZ2",!0),d=Ce(f,R0e),v=d-1,g=t.getModel("backgroundStyle").getItemStyle(["borderWidth"]);g.lineWidth=0;var x=t.getModel("backgroundStyle").getItemStyle(["color","decal","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]);x.fill="none";var y=OA(o.clone(),g,N0e),b=OA(o.clone(),x,d);y.silent=!0,b.silent=!0,a.add(y),a.add(b);var S=u.getUnitLayoutInfo(0,0),T=c.getUnitLayoutInfo(1,0);S&&T&&(u.shouldShow()&&a.add(qB({x1:o.x,y1:T.xy,x2:o.x+o.width,y2:T.xy},s.getModel("dividerLineStyle").getLineStyle(),v)),c.shouldShow()&&a.add(qB({x1:S.xy,y1:o.y,x2:S.xy,y2:o.y+o.height},l.getModel("dividerLineStyle").getLineStyle(),v)))},e.type="matrix",e})(Lt);function O0e(r,e,t){n(0),n(1);function n(a){var i=e.getDimensionModel(je[a]),o=i.dim;if(o.shouldShow())for(var s=i.getModel("itemStyle"),l=i.getModel("label"),u=e.getShallow("tooltip",!0),c=[],f=o.resetCellIterator();f.next();){var d=f.item,v={};ke.copy(v,d.rect),z1(c,d.id.x,d.id.y),c9(c,e,r,t,d.option,s,l,i,v,d.option.value,I0e,u)}}}function P0e(r,e,t,n,a){i("body",e.getBody(),t,n),t.shouldShow()&&n.shouldShow()&&i("corner",e.getCorner(),n,t);function i(o,s,l,u){var c=new Je(e.getShallow(o,!0)),f=c.getModel("itemStyle"),d=c.getModel("label"),v=new ul,g=new ul,x=[],y=e.getShallow("tooltip",!0);for(u.resetLayoutIterator(g,1);g.next();)for(l.resetLayoutIterator(v,0);v.next();){var b=v.item,S=g.item;z1(x,b.id.x,S.id.y);var T=s.getCell(x);if(!(T&&T.inSpanOf&&T.inSpanOf!==T)){var C={};T&&T.span?ke.copy(C,T.spanRect):(b.dim.getLayout(C,0,x[0]),S.dim.getLayout(C,1,x[1]));var M=T?T.option:null;c9(x,e,r,a,M,f,d,c,C,M?M.value:null,E0e,y)}}}}function c9(r,e,t,n,a,i,o,s,l,u,c,f){var d;x0.option=a?a.itemStyle:null,x0.parentModel=i,Pf.option=a,Pf.parentModel=s;var v=Ce(Pf.getShallow("z2"),a&&a.itemStyle?c.special:c.normal),g=f&&f.show,x=OA(l,x0.getItemStyle(),v);t.add(x);var y=Pf.get("cursor");y!=null&&x.attr("cursor",y);var b;if(u!=null){var S=u+"";if(zf.option=a?a.label:null,zf.parentModel=o,zf.ecModel=n,Lr(x,{normal:zf},{defaultText:S,autoOverflowArea:!0,layoutRect:Me(x.shape)}),b=x.getTextContent(),b){b.z2=v+1;var T=b.style;if(T&&T.overflow&&T.overflow!=="none"&&T.lineOverflow){var C={};ke.copy(C,l),fc(C,(((d=x.style)===null||d===void 0?void 0:d.lineWidth)||0)/2,!0,!0),x.updateInnerText(),b.getLocalTransform(b0),Ea(b0,b0),ke.applyTransform(C,C,b0),b.setClipPath(new We({shape:C}))}}rs({el:x,componentModel:e,itemName:S,itemTooltipOption:f,formatterParamsExtra:{xyLocator:r.slice()}})}if(b){var M=zf.get("silent");M==null&&(M=!g),b.silent=M,b.ignoreHostSilent=!0}var D=Pf.get("silent");D==null&&(D=!x.style||x.style.fill==="none"||!x.style.fill),x.silent=D,sw(Pf),sw(x0),sw(zf)}var Pf=new Je,x0=new Je,zf=new Je,b0=[];function OA(r,e,t){var n=e.lineWidth;if(n){var a=r.x+r.width,i=r.y+r.height;r.x=ta(r.x,n,!0),r.y=ta(r.y,n,!0),r.width=ta(a,n,!0)-r.x,r.height=ta(i,n,!0)-r.y}return new We({shape:r,style:e,z2:t})}function qB(r,e,t){var n=e.lineWidth;return n&&(y0(r.x1*2)===y0(r.x2*2)&&(r.x1=r.x2=ta(r.x1,n,!0)),y0(r.y1*2)===y0(r.y2*2)&&(r.y1=r.y2=ta(r.y1,n,!0))),new sr({shape:r,style:e,silent:!0,z2:t})}var z0e=(function(){function r(e,t,n){this.dimensions=r.dimensions,this.type="matrix",this._model=e;var a=this._dimModels={x:e.getDimensionModel("x"),y:e.getDimensionModel("y")};this._dims={x:a.x.dim,y:a.y.dim},this._resize(e,n)}return r.getDimensionsInfo=function(){return[{name:"x",type:"ordinal"},{name:"y",type:"ordinal"},{name:"value"}]},r.create=function(e,t){var n=[];return e.eachComponent("matrix",function(a){var i=new r(a,e,t);n.push(i),a.coordinateSystem=i}),e.eachComponent(function(a,i){Gg({targetModel:i,coordSysType:"matrix",coordSysProvider:AH})}),n},r.prototype.getRect=function(){return this._rect},r.prototype._resize=function(e,t){var n=this._dims,a=this._dimModels,i=this._rect=Gt(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()});ZB(a,n,i,0),ZB(a,n,i,1),$B(0,n),$B(1,n),KB(this._model.getBody(),n),KB(this._model.getCorner(),n)},r.prototype.dataToPoint=function(e,t,n){return n=n||[],this.dataToLayout(e,t,Uv),n[0]=Uv.rect.x+Uv.rect.width/2,n[1]=Uv.rect.y+Uv.rect.height/2,n},r.prototype.dataToLayout=function(e,t,n){var a=this._dims;n=n||{};var i=n.rect=n.rect||{};i.x=i.y=i.width=i.height=NaN;var o=n.matrixXYLocatorRange=l9(n.matrixXYLocatorRange);return ue(e)&&(u9(o,null,e,a,Ce(t&&t.clamp,Ho.none)),(!t||!t.ignoreMergeCells)&&((!t||t.clamp!==Ho.corner)&&this._model.getBody().expandRangeByCellMerge(o),(!t||t.clamp!==Ho.body)&&this._model.getCorner().expandRangeByCellMerge(o)),HB(i,o,a,0),HB(i,o,a,1)),n},r.prototype.pointToData=function(e,t,n){var a=this._dims;return QB(xi,0,a,e,t&&t.clamp),QB(xi,1,a,e,t&&t.clamp),n=n||[],n[0]=n[1]=NaN,xi.y===Xr.inCorner&&xi.x===Xr.inBody?JB(xi,n,0,a):xi.x===Xr.inCorner&&xi.y===Xr.inBody?JB(xi,n,1,a):(ej(xi,n,0,a),ej(xi,n,1,a)),n},r.prototype.convertToPixel=function(e,t,n,a){var i=$T(t);return i===this?i.dataToPoint(n,a):void 0},r.prototype.convertToLayout=function(e,t,n,a){var i=$T(t);return i===this?i.dataToLayout(n,a):void 0},r.prototype.convertFromPixel=function(e,t,n,a){var i=$T(t);return i===this?i.pointToData(n,a):void 0},r.prototype.containPoint=function(e){return this._rect.contain(e[0],e[1])},r.dimensions=["x","y","value"],r})(),Uv={rect:d1()},_0=new ul,ZT=new ul;function ZB(r,e,t,n){for(var a=1-n,i=e[je[n]],o=e[je[a]],s=o.shouldShow(),l=i.resetCellIterator();l.next();)l.item.wh=l.item.xy=NaN;for(var u=o.resetLayoutIterator(null,n);u.next();)u.item.wh=u.item.xy=NaN;for(var c=t[dr[n]],f=i.getLocatorCount(n)+o.getLocatorCount(n),d=new Je,v=o.resetLevelIterator();v.next();)d.option=v.item.option,d.parentModel=r[je[a]],y(v.item,s?d.get("levelSize"):0);for(var g=new Je,x=i.resetCellIterator();x.next();)x.item.type===Ro.leaf&&(g.option=x.item.option,g.parentModel=void 0,y(x.item,g.get("size")));function y(L,E){var R=B0e(E,n,t);Zr(R)||(L.wh=PA(R,c),c=PA(c-L.wh),f--)}var b=f?c/f:0,S=!f&&c>=1,T=t[je[n]],C=i.getLocatorCount(n)-1,M=new ul;for(o.resetLayoutIterator(M,n);M.next();)D(M.item);for(i.resetLayoutIterator(M,n);M.next();)D(M.item);function D(L){Zr(L.wh)&&(L.wh=b),L.xy=T,L.id[je[n]]===C&&!S&&(L.wh=t[je[n]]+t[dr[n]]-L.xy),T+=L.wh}}function $B(r,e){for(var t=e[je[r]].resetCellIterator();t.next();){var n=t.item;v1(n.rect,r,n.id,n.span,e),v1(n.rect,1-r,n.id,n.span,e),n.type===Ro.nonLeaf&&(n.xy=n.rect[je[r]],n.wh=n.rect[dr[r]])}}function KB(r,e){r.travelExistingCells(function(t){var n=t.span;if(n){var a=t.spanRect,i=t.id;v1(a,0,i,n,e),v1(a,1,i,n,e)}})}function v1(r,e,t,n,a){r[dr[e]]=0;var i=t[je[e]],o=i<0?a[je[1-e]]:a[je[e]],s=o.getUnitLayoutInfo(e,t[je[e]]);if(r[je[e]]=s.xy,r[dr[e]]=s.wh,n[je[e]]>1){var l=o.getUnitLayoutInfo(e,t[je[e]]+n[je[e]]-1);r[dr[e]]=l.xy+l.wh-s.xy}}function B0e(r,e,t){var n=Mx(r,t[dr[e]]);return PA(n,t[dr[e]])}function PA(r,e){return Math.max(Math.min(r,Ce(e,1/0)),0)}function $T(r){var e=r.matrixModel,t=r.seriesModel,n=e?e.coordinateSystem:t?t.coordinateSystem:null;return n}var Xr={inBody:1,inCorner:2,outside:3},xi={x:null,y:null,point:[]};function QB(r,e,t,n,a){var i=t[je[e]],o=t[je[1-e]],s=i.getUnitLayoutInfo(e,i.getLocatorCount(e)-1),l=i.getUnitLayoutInfo(e,0),u=o.getUnitLayoutInfo(e,-o.getLocatorCount(e)),c=o.shouldShow()?o.getUnitLayoutInfo(e,-1):null,f=r.point[e]=n[e];if(!l&&!c){r[je[e]]=Xr.outside;return}if(a===Ho.body){l?(r[je[e]]=Xr.inBody,f=na(s.xy+s.wh,ir(l.xy,f)),r.point[e]=f):r[je[e]]=Xr.outside;return}else if(a===Ho.corner){c?(r[je[e]]=Xr.inCorner,f=na(c.xy+c.wh,ir(u.xy,f)),r.point[e]=f):r[je[e]]=Xr.outside;return}var d=l?l.xy:c?c.xy+c.wh:NaN,v=u?u.xy:d,g=s?s.xy+s.wh:d;if(f<v){if(!a){r[je[e]]=Xr.outside;return}f=v}else if(f>g){if(!a){r[je[e]]=Xr.outside;return}f=g}r.point[e]=f,r[je[e]]=d<=f&&f<=g?Xr.inBody:v<=f&&f<=d?Xr.inCorner:Xr.outside}function JB(r,e,t,n){var a=1-t;if(r[je[t]]!==Xr.outside)for(n[je[t]].resetCellIterator(ZT);ZT.next();){var i=ZT.item;if(tj(r.point[t],i.rect,t)&&tj(r.point[a],i.rect,a)){e[t]=i.ordinal,e[a]=i.id[je[a]];return}}}function ej(r,e,t,n){if(r[je[t]]!==Xr.outside){var a=r[je[t]]===Xr.inCorner?n[je[1-t]]:n[je[t]];for(a.resetLayoutIterator(_0,t);_0.next();)if(j0e(r.point[t],_0.item)){e[t]=_0.item.id[je[t]];return}}}function j0e(r,e){return e.xy<=r&&r<=e.xy+e.wh}function tj(r,e,t){return e[je[t]]<=r&&r<=e[je[t]]+e[dr[t]]}function V0e(r){r.registerComponentModel(L0e),r.registerComponentView(k0e),r.registerCoordinateSystem("matrix",z0e)}function G0e(r,e){var t=r.existing;if(e.id=r.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var n=e.parentOption;n?e.parentId=n.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function rj(r,e){var t;return P(e,function(n){r[n]!=null&&r[n]!=="auto"&&(t=!0)}),t}function H0e(r,e,t){var n=ie({},t),a=r[e],i=t.$action||"merge";i==="merge"?a?(Fe(a,n,!0),Wi(a,n,{ignoreSize:!0}),RH(t,a),S0(t,a),S0(t,a,"shape"),S0(t,a,"style"),S0(t,a,"extra"),t.clipPath=a.clipPath):r[e]=n:i==="replace"?r[e]=n:i==="remove"&&a&&(r[e]=null)}var f9=["transition","enterFrom","leaveTo"],F0e=f9.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function S0(r,e,t){if(t&&(!r[t]&&e[t]&&(r[t]={}),r=r[t],e=e[t]),!(!r||!e))for(var n=t?f9:F0e,a=0;a<n.length;a++){var i=n[a];r[i]==null&&e[i]!=null&&(r[i]=e[i])}}function U0e(r,e){if(r&&(r.hv=e.hv=[rj(e,["left","right"]),rj(e,["top","bottom"])],r.type==="group")){var t=r,n=e;t.width==null&&(t.width=n.width=0),t.height==null&&(t.height=n.height=0)}}var Y0e=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventAutoZ=!0,t}return e.prototype.mergeOption=function(t,n){var a=this.option.elements;this.option.elements=null,r.prototype.mergeOption.call(this,t,n),this.option.elements=a},e.prototype.optionUpdated=function(t,n){var a=this.option,i=(n?a:t).elements,o=a.elements=n?[]:a.elements,s=[];this._flatten(i,s,null);var l=_6(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];P(l,function(c,f){var d=c.newOption;d&&(u.push(d),G0e(c,d),H0e(o,f,d),U0e(o[f],d))},this),a.elements=ht(o,function(c){return c&&delete c.$action,c!=null})},e.prototype._flatten=function(t,n,a){P(t,function(i){if(i){a&&(i.parentOption=a),n.push(i);var o=i.children;o&&o.length&&this._flatten(o,n,i),delete i.children}},this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e})($e),nj={path:null,compoundPath:null,group:De,image:Nr,text:at},wa=Ke(),W0e=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this._elMap=Te()},e.prototype.render=function(t,n,a){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,a)},e.prototype._updateElements=function(t){var n=t.useElOptionsToUpdate();if(n){var a=this._elMap,i=this.group,o=t.get("z"),s=t.get("zlevel");P(n,function(l){var u=yr(l.id,null),c=u!=null?a.get(u):null,f=yr(l.parentId,null),d=f!=null?a.get(f):i,v=l.type,g=l.style;v==="text"&&g&&l.hv&&l.hv[1]&&(g.textVerticalAlign=g.textBaseline=g.verticalAlign=g.align=null);var x=l.textContent,y=l.textConfig;if(g&&HU(g,v,!!y,!!x)){var b=FU(g,v,!0);!y&&b.textConfig&&(y=l.textConfig=b.textConfig),!x&&b.textContent&&(x=b.textContent)}var S=X0e(l),T=l.$action||"merge",C=T==="merge",M=T==="replace";if(C){var D=!c,L=c;D?L=aj(u,d,l.type,a):(L&&(wa(L).isNew=!1),XU(L)),L&&(J0(L,S,t,{isInit:D}),ij(L,l,o,s))}else if(M){rx(c,l,a,t);var E=aj(u,d,l.type,a);E&&(J0(E,S,t,{isInit:!0}),ij(E,l,o,s))}else T==="remove"&&(YU(c,l),rx(c,l,a,t));var R=a.get(u);if(R&&x)if(C){var I=R.getTextContent();I?I.attr(x):R.setTextContent(new at(x))}else M&&R.setTextContent(new at(x));if(R){var k=l.clipPath;if(k){var z=k.type,O=void 0,D=!1;if(C){var G=R.getClipPath();D=!G||wa(G).type!==z,O=D?zA(z):G}else M&&(D=!0,O=zA(z));R.setClipPath(O),J0(O,k,t,{isInit:D}),c1(O,k.keyframeAnimation,t)}var F=wa(R);R.setTextConfig(y),F.option=l,q0e(R,t,l),rs({el:R,componentModel:t,itemName:R.name,itemTooltipOption:l.tooltip}),c1(R,l.keyframeAnimation,t)}})}},e.prototype._relocate=function(t,n){for(var a=t.option.elements,i=this.group,o=this._elMap,s=n.getWidth(),l=n.getHeight(),u=["x","y"],c=0;c<a.length;c++){var f=a[c],d=yr(f.id,null),v=d!=null?o.get(d):null;if(!(!v||!v.isGroup)){var g=v.parent,x=g===i,y=wa(v),b=wa(g);y.width=me(y.option.width,x?s:b.width)||0,y.height=me(y.option.height,x?l:b.height)||0}}for(var c=a.length-1;c>=0;c--){var f=a[c],d=yr(f.id,null),v=d!=null?o.get(d):null;if(v){var g=v.parent,b=wa(g),S=g===i?{width:s,height:l}:{width:b.width,height:b.height},T={},C=eb(v,f,S,null,{hv:f.hv,boundingMode:f.bounding},T);if(!wa(v).isNew&&C){for(var M=f.transition,D={},L=0;L<u.length;L++){var E=u[L],R=T[E];M&&(nc(M)||Ge(M,E)>=0)?D[E]=R:v[E]=R}ot(v,D,t,0)}else v.attr(T)}}},e.prototype._clear=function(){var t=this,n=this._elMap;n.each(function(a){rx(a,wa(a).option,n,t._lastGraphicModel)}),this._elMap=Te()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e})(Lt);function zA(r){var e=Se(nj,r)?nj[r]:Qp(r),t=new e({});return wa(t).type=r,t}function aj(r,e,t,n){var a=zA(t);return e.add(a),n.set(r,a),wa(a).id=r,wa(a).isNew=!0,a}function rx(r,e,t,n){var a=r&&r.parent;a&&(r.type==="group"&&r.traverse(function(i){rx(i,e,t,n)}),gb(r,e,n),t.removeKey(wa(r).id))}function ij(r,e,t,n){r.isGroup||P([["cursor",Ia.prototype.cursor],["zlevel",n||0],["z",t||0],["z2",0]],function(a){var i=a[0];Se(e,i)?r[i]=Ce(e[i],a[1]):r[i]==null&&(r[i]=a[1])}),P(nt(e),function(a){if(a.indexOf("on")===0){var i=e[a];r[a]=Ae(i)?i:null}}),Se(e,"draggable")&&(r.draggable=e.draggable),e.name!=null&&(r.name=e.name),e.id!=null&&(r.id=e.id)}function X0e(r){return r=ie({},r),P(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(MH),function(e){delete r[e]}),r}function q0e(r,e,t){var n=ze(r).eventData;!r.silent&&!r.ignore&&!n&&(n=ze(r).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:r.name}),n&&(n.info=t.info)}function Z0e(r){r.registerComponentModel(Y0e),r.registerComponentView(W0e),r.registerPreprocessor(function(e){var t=e.graphic;ue(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var oj=["x","y","radius","angle","single"],$0e=["cartesian2d","polar","singleAxis"];function K0e(r){var e=r.get("coordinateSystem");return Ge($0e,e)>=0}function al(r){return r+"Axis"}function Q0e(r,e){var t=Te(),n=[],a=Te();r.eachComponent({mainType:"dataZoom",query:e},function(c){a.get(c.uid)||s(c)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(c){!a.get(c.uid)&&l(c)&&(s(c),i=!0)}function s(c){a.set(c.uid,!0),n.push(c),u(c)}function l(c){var f=!1;return c.eachTargetAxis(function(d,v){var g=t.get(d);g&&g[v]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,d){(t.get(f)||t.set(f,[]))[d]=!0})}return n}function h9(r){var e=r.ecModel,t={infoList:[],infoMap:Te()};return r.eachTargetAxis(function(n,a){var i=e.getComponent(al(n),a);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=t.infoMap.get(s);l||(l={model:o,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(i)}}}),t}var KT=(function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},r})(),mg=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,n,a){var i=sj(t);this.settledOption=i,this.mergeDefaultAndTheme(t,a),this._doInit(i)},e.prototype.mergeOption=function(t){var n=sj(t);Fe(this.option,t,!0),Fe(this.settledOption,n,!0),this._doInit(n)},e.prototype._doInit=function(t){var n=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var a=this.settledOption;P([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(n[i[0]]=a[i[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),n=this._targetAxisInfoMap=Te(),a=this._fillSpecifiedTargetAxis(n);a?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var n=!1;return P(oj,function(a){var i=this.getReferringComponents(al(a),gre);if(i.specified){n=!0;var o=new KT;P(i.models,function(s){o.add(s.componentIndex)}),t.set(a,o)}},this),n},e.prototype._fillAutoTargetAxisByOrient=function(t,n){var a=this.ecModel,i=!0;if(i){var o=n==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===n}});l(s,"single")}function l(u,c){var f=u[0];if(f){var d=new KT;if(d.add(f.componentIndex),t.set(c,d),i=!1,c==="x"||c==="y"){var v=f.getReferringComponents("grid",qt).models[0];v&&P(u,function(g){f.componentIndex!==g.componentIndex&&v===g.getReferringComponents("grid",qt).models[0]&&d.add(g.componentIndex)})}}}i&&P(oj,function(u){if(i){var c=a.findComponents({mainType:al(u),filter:function(d){return d.get("type",!0)==="category"}});if(c[0]){var f=new KT;f.add(c[0].componentIndex),t.set(u,f),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(n){!t&&(t=n)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var n=this._rangePropMode,a=this.get("rangeMode");P([["start","startValue"],["end","endValue"]],function(i,o){var s=t[i[0]]!=null,l=t[i[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":a?n[o]=a[o]:s&&(n[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(n,a){t==null&&(t=this.ecModel.getComponent(al(n),a))},this),t},e.prototype.eachTargetAxis=function(t,n){this._targetAxisInfoMap.each(function(a,i){P(a.indexList,function(o){t.call(n,i,o)})})},e.prototype.getAxisProxy=function(t,n){var a=this.getAxisModel(t,n);if(a)return a.__dzAxisProxy},e.prototype.getAxisModel=function(t,n){var a=this._targetAxisInfoMap.get(t);if(a&&a.indexMap[n])return this.ecModel.getComponent(al(t),n)},e.prototype.setRawRange=function(t){var n=this.option,a=this.settledOption;P([["start","startValue"],["end","endValue"]],function(i){(t[i[0]]!=null||t[i[1]]!=null)&&(n[i[0]]=a[i[0]]=t[i[0]],n[i[1]]=a[i[1]]=t[i[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var n=this.option;P(["start","startValue","end","endValue"],function(a){n[a]=t[a]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,n){if(t==null&&n==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(t,n).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var n,a=this._targetAxisInfoMap.keys(),i=0;i<a.length;i++)for(var o=a[i],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;n||(n=u)}return n},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e})($e);function sj(r){var e={};return P(["start","end","startValue","endValue","throttle"],function(t){r.hasOwnProperty(t)&&(e[t]=r[t])}),e}var J0e=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e})(mg),qL=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a,i){this.dataZoomModel=t,this.ecModel=n,this.api=a},e.type="dataZoom",e})(Lt),exe=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e})(qL),Wf=P,lj=Jn,txe=(function(){function r(e,t,n,a){this._dimName=e,this._axisIndex=t,this.ecModel=a,this._dataZoomModel=n}return r.prototype.hostedBy=function(e){return this._dataZoomModel===e},r.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},r.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},r.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(K0e(t)){var n=al(this._dimName),a=t.getReferringComponents(n,qt).models[0];a&&this._axisIndex===a.componentIndex&&e.push(t)}},this),e},r.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},r.prototype.getMinMaxSpan=function(){return Me(this._minMaxSpan)},r.prototype.calculateDataWindow=function(e){var t=this._dataExtent,n=this.getAxisModel(),a=n.axis.scale,i=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;Wf(["start","end"],function(d,v){var g=e[d],x=e[d+"Value"];i[v]==="percent"?(g==null&&(g=o[v]),x=a.parse(vt(g,o,t))):(u=!0,x=x==null?t[v]:a.parse(x),g=vt(x,t,o)),l[v]=x==null||isNaN(x)?t[v]:x,s[v]=g==null||isNaN(g)?o[v]:g}),lj(l),lj(s);var c=this._minMaxSpan;u?f(l,s,t,o,!1):f(s,l,o,t,!0);function f(d,v,g,x,y){var b=y?"Span":"ValueSpan";_l(0,d,g,"all",c["min"+b],c["max"+b]);for(var S=0;S<2;S++)v[S]=vt(d[S],g,x,!0),y&&(v[S]=a.parse(v[S]))}return{valueWindow:l,percentWindow:s}},r.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=rxe(this,this._dimName,t),this._updateMinMaxSpan();var n=this.calculateDataWindow(e.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},r.prototype.filterData=function(e,t){if(e!==this._dataZoomModel)return;var n=this._dimName,a=this.getTargetSeriesModels(),i=e.get("filterMode"),o=this._valueWindow;if(i==="none")return;Wf(a,function(l){var u=l.getData(),c=u.mapDimensionsAll(n);if(c.length){if(i==="weakFilter"){var f=u.getStore(),d=ce(c,function(v){return u.getDimensionIndex(v)},u);u.filterSelf(function(v){for(var g,x,y,b=0;b<c.length;b++){var S=f.get(d[b],v),T=!isNaN(S),C=S<o[0],M=S>o[1];if(T&&!C&&!M)return!0;T&&(y=!0),C&&(g=!0),M&&(x=!0)}return y&&g&&x})}else Wf(c,function(v){if(i==="empty")l.setData(u=u.map(v,function(x){return s(x)?x:NaN}));else{var g={};g[v]=o,u.selectRange(g)}});Wf(c,function(v){u.setApproximateExtent(o,v)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._dataExtent;Wf(["min","max"],function(a){var i=t.get(a+"Span"),o=t.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=vt(n[0]+o,n,[0,100],!0):i!=null&&(o=vt(i,[0,100],n,!0)-n[0]),e[a+"Span"]=i,e[a+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,n=this._valueWindow;if(t){var a=zM(n,[0,500]);a=Math.min(a,20);var i=e.axis.scale.rawExtentInfo;t[0]!==0&&i.setDeterminedMinMax("min",+n[0].toFixed(a)),t[1]!==100&&i.setDeterminedMinMax("max",+n[1].toFixed(a)),i.freeze()}},r})();function rxe(r,e,t){var n=[1/0,-1/0];Wf(t,function(o){ble(n,o.getData(),e)});var a=r.getAxisModel(),i=fF(a.axis.scale,a,n).calculate();return[i.min,i.max]}var nxe={getTargetSeries:function(r){function e(a){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(al(o),s);a(o,s,l,i)})})}e(function(a,i,o,s){o.__dzAxisProxy=null});var t=[];e(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new txe(a,i,s,r),t.push(o.__dzAxisProxy))});var n=Te();return P(t,function(a){P(a.getTargetSeriesModels(),function(i){n.set(i.uid,i)})}),n},overallReset:function(r,e){r.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(n,a){t.getAxisProxy(n,a).reset(t)}),t.eachTargetAxis(function(n,a){t.getAxisProxy(n,a).filterData(t,e)})}),r.eachComponent("dataZoom",function(t){var n=t.findRepresentativeAxisProxy();if(n){var a=n.getDataPercentWindow(),i=n.getDataValueWindow();t.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};function axe(r){r.registerAction("dataZoom",function(e,t){var n=Q0e(t,e);P(n,function(a){a.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var uj=!1;function ZL(r){uj||(uj=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,nxe),axe(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function ixe(r){r.registerComponentModel(J0e),r.registerComponentView(exe),ZL(r)}var Aa=(function(){function r(){}return r})(),d9={};function Xf(r,e){d9[r]=e}function v9(r){return d9[r]}var oxe=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;P(this.option.feature,function(n,a){var i=v9(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),Fe(n,i.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:ee.color.border,borderRadius:0,borderWidth:0,padding:ee.size.m,itemSize:15,itemGap:ee.size.s,showTitle:!0,iconStyle:{borderColor:ee.color.accent50,color:"none"},emphasis:{iconStyle:{borderColor:ee.color.accent50}},tooltip:{show:!1,position:"bottom"}},e})($e);function p9(r,e){var t=rd(e.get("padding")),n=e.getItemStyle(["color","opacity"]);n.fill=e.get("backgroundColor");var a=new We({shape:{x:r.x-t[3],y:r.y-t[0],width:r.width+t[1]+t[3],height:r.height+t[0]+t[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1});return a}var sxe=(function(r){K(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,n,a,i){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},c=this._features||(this._features={}),f=[];P(u,function(S,T){f.push(T)}),new Zo(this._featureNames||[],f).add(d).update(d).remove(Ve(d,null)).execute(),this._featureNames=f;function d(S,T){var C=f[S],M=f[T],D=u[C],L=new Je(D,t,t.ecModel),E;if(i&&i.newTitle!=null&&i.featureName===C&&(D.title=i.newTitle),C&&!M){if(lxe(C))E={onclick:L.option.onclick,featureName:C};else{var R=v9(C);if(!R)return;E=new R}c[C]=E}else if(E=c[M],!E)return;E.uid=td("toolbox-feature"),E.model=L,E.ecModel=n,E.api=a;var I=E instanceof Aa;if(!C&&M){I&&E.dispose&&E.dispose(n,a);return}if(!L.get("show")||I&&E.unusable){I&&E.remove&&E.remove(n,a);return}v(L,E,C),L.setIconStatus=function(k,z){var O=this.option,G=this.iconPaths;O.iconStatus=O.iconStatus||{},O.iconStatus[k]=z,G[k]&&(z==="emphasis"?Xo:qo)(G[k])},E instanceof Aa&&E.render&&E.render(L,n,a,i)}function v(S,T,C){var M=S.getModel("iconStyle"),D=S.getModel(["emphasis","iconStyle"]),L=T instanceof Aa&&T.getIcons?T.getIcons():S.get("icon"),E=S.get("title")||{},R,I;ye(L)?(R={},R[C]=L):R=L,ye(E)?(I={},I[C]=E):I=E;var k=S.iconPaths={};P(R,function(z,O){var G=Jh(z,{},{x:-s/2,y:-s/2,width:s,height:s});G.setStyle(M.getItemStyle());var F=G.ensureState("emphasis");F.style=D.getItemStyle();var B=new at({style:{text:I[O],align:D.get("textAlign"),borderRadius:D.get("textBorderRadius"),padding:D.get("textPadding"),fill:null,font:oD({fontStyle:D.get("textFontStyle"),fontFamily:D.get("textFontFamily"),fontSize:D.get("textFontSize"),fontWeight:D.get("textFontWeight")},n)},ignore:!0});G.setTextContent(B),rs({el:G,componentModel:t,itemName:O,formatterParamsExtra:{title:I[O]}}),G.__title=I[O],G.on("mouseover",function(){var Y=D.getItemStyle(),H=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";B.setStyle({fill:D.get("textFill")||Y.fill||Y.stroke||ee.color.neutral99,backgroundColor:D.get("textBackgroundColor")}),G.setTextConfig({position:D.get("textPosition")||H}),B.ignore=!t.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){S.get(["iconStatus",O])!=="emphasis"&&a.leaveEmphasis(this),B.hide()}),(S.get(["iconStatus",O])==="emphasis"?Xo:qo)(G),o.add(G),G.on("click",xe(T.onclick,T,n,a,O)),k[O]=G})}var g=Sr(t,a).refContainer,x=t.getBoxLayoutParams(),y=t.get("padding"),b=Gt(x,g,y);ec(t.get("orient"),o,t.get("itemGap"),b.width,b.height),eb(o,x,g,y),o.add(p9(o.getBoundingRect(),t)),l||o.eachChild(function(S){var T=S.__title,C=S.ensureState("emphasis"),M=C.textConfig||(C.textConfig={}),D=S.getTextContent(),L=D&&D.ensureState("emphasis");if(L&&!Ae(L)&&T){var E=L.style||(L.style={}),R=V1(T,at.makeFont(E)),I=S.x+o.x,k=S.y+o.y+s,z=!1;k+R.height>a.getHeight()&&(M.position="top",z=!0);var O=z?-5-R.height:s+10;I+R.width/2>a.getWidth()?(M.position=["100%",O],E.align="right"):I-R.width/2<0&&(M.position=[0,O],E.align="left")}})},e.prototype.updateView=function(t,n,a,i){P(this._features,function(o){o instanceof Aa&&o.updateView&&o.updateView(o.model,n,a,i)})},e.prototype.remove=function(t,n){P(this._features,function(a){a instanceof Aa&&a.remove&&a.remove(t,n)}),this.group.removeAll()},e.prototype.dispose=function(t,n){P(this._features,function(a){a instanceof Aa&&a.dispose&&a.dispose(t,n)})},e.type="toolbox",e})(Lt);function lxe(r){return r.indexOf("my")===0}var uxe=(function(r){K(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,n){var a=this.model,i=a.get("name")||t.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||t.get("backgroundColor")||ee.color.neutral00,connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=rt.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=i+"."+s,c.target="_blank",c.href=l;var f=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(f)}else if(window.navigator.msSaveOrOpenBlob||o){var d=l.split(","),v=d[0].indexOf("base64")>-1,g=o?decodeURIComponent(d[1]):d[1];v&&(g=window.atob(g));var x=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var y=g.length,b=new Uint8Array(y);y--;)b[y]=g.charCodeAt(y);var S=new Blob([b]);window.navigator.msSaveOrOpenBlob(S,x)}else{var T=document.createElement("iframe");document.body.appendChild(T);var C=T.contentWindow,M=C.document;M.open("image/svg+xml","replace"),M.write(g),M.close(),C.focus(),M.execCommand("SaveAs",!0,x),document.body.removeChild(T)}}else{var D=a.get("lang"),L='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(D&&D[0]||"")+'" /></body>',E=window.open();E.document.write(L),E.document.title=i}},e.getDefaultOption=function(t){var n={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:ee.color.neutral00,name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},e})(Aa),cj="__ec_magicType_stack__",cxe=[["line","bar"],["stack"]],fxe=(function(r){K(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,n=t.get("icon"),a={};return P(t.get("type"),function(i){n[i]&&(a[i]=n[i])}),a},e.getDefaultOption=function(t){var n={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},e.prototype.onclick=function(t,n,a){var i=this.model,o=i.get(["seriesIndex",a]);if(fj[a]){var s={series:[]},l=function(f){var d=f.subType,v=f.id,g=fj[a](d,v,f,i);g&&(Ne(g,f.option),s.series.push(g));var x=f.coordinateSystem;if(x&&x.type==="cartesian2d"&&(a==="line"||a==="bar")){var y=x.getAxesByScale("ordinal")[0];if(y){var b=y.dim,S=b+"Axis",T=f.getReferringComponents(S,qt).models[0],C=T.componentIndex;s[S]=s[S]||[];for(var M=0;M<=C;M++)s[S][C]=s[S][C]||{};s[S][C].boundaryGap=a==="bar"}}};P(cxe,function(f){Ge(f,a)>=0&&P(f,function(d){i.setIconStatus(d,"normal")})}),i.setIconStatus(a,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=a;a==="stack"&&(u=Fe({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(c="tiled")),n.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},e})(Aa),fj={line:function(r,e,t,n){if(r==="bar")return Fe({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(r,e,t,n){if(r==="line")return Fe({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(r,e,t,n){var a=t.get("stack")===cj;if(r==="line"||r==="bar")return n.setIconStatus("stack",a?"normal":"emphasis"),Fe({id:e,stack:a?"":cj},n.get(["option","stack"])||{},!0)}};si({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,e){e.mergeOption(r.newOption)});var mb=new Array(60).join("-"),Gh=" ";function hxe(r){var e={},t=[],n=[];return r.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(a)}else t.push(a)}else t.push(a)}),{seriesGroupByCategoryAxis:e,other:t,meta:n}}function dxe(r){var e=[];return P(r,function(t,n){var a=t.categoryAxis,i=t.valueAxis,o=i.dim,s=[" "].concat(ce(t.series,function(v){return v.name})),l=[a.model.getCategories()];P(t.series,function(v){var g=v.getRawData();l.push(v.getRawData().mapArray(g.mapDimension(o),function(x){return x}))});for(var u=[s.join(Gh)],c=0;c<l[0].length;c++){for(var f=[],d=0;d<l.length;d++)f.push(l[d][c]);u.push(f.join(Gh))}e.push(u.join(`
|
|
264
|
+
`))}),e.join(`
|
|
265
|
+
|
|
266
|
+
`+mb+`
|
|
267
|
+
|
|
268
|
+
`)}function vxe(r){return ce(r,function(e){var t=e.getRawData(),n=[e.name],a=[];return t.each(t.dimensions,function(){for(var i=arguments.length,o=arguments[i-1],s=t.getName(o),l=0;l<i-1;l++)a[l]=arguments[l];n.push((s?s+Gh:"")+a.join(Gh))}),n.join(`
|
|
269
|
+
`)}).join(`
|
|
270
|
+
|
|
271
|
+
`+mb+`
|
|
272
|
+
|
|
273
|
+
`)}function pxe(r){var e=hxe(r);return{value:ht([dxe(e.seriesGroupByCategoryAxis),vxe(e.other)],function(t){return!!t.replace(/[\n\t\s]/g,"")}).join(`
|
|
274
|
+
|
|
275
|
+
`+mb+`
|
|
276
|
+
|
|
277
|
+
`),meta:e.meta}}function p1(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function gxe(r){var e=r.slice(0,r.indexOf(`
|
|
278
|
+
`));if(e.indexOf(Gh)>=0)return!0}var BA=new RegExp("["+Gh+"]+","g");function mxe(r){for(var e=r.split(/\n+/g),t=p1(e.shift()).split(BA),n=[],a=ce(t,function(l){return{name:l,data:[]}}),i=0;i<e.length;i++){var o=p1(e[i]).split(BA);n.push(o.shift());for(var s=0;s<o.length;s++)a[s]&&(a[s].data[i]=o[s])}return{series:a,categories:n}}function yxe(r){for(var e=r.split(/\n+/g),t=p1(e.shift()),n=[],a=0;a<e.length;a++){var i=p1(e[a]);if(i){var o=i.split(BA),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),n[a]={name:s,value:[]},l=n[a].value):l=n[a]=[];for(var c=0;c<o.length;c++)l.push(+o[c]);l.length===1&&(u?n[a].value=l[0]:n[a]=l[0])}}return{name:t,data:n}}function xxe(r,e){var t=r.split(new RegExp(`
|
|
279
|
+
*`+mb+`
|
|
280
|
+
*`,"g")),n={series:[]};return P(t,function(a,i){if(gxe(a)){var o=mxe(a),s=e[i],l=s.axisDim+"Axis";s&&(n[l]=n[l]||[],n[l][s.axisIndex]={data:o.categories},n.series=n.series.concat(o.series))}else{var o=yxe(a);n.series.push(o)}}),n}var bxe=(function(r){K(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,n){setTimeout(function(){n.dispatchAction({type:"hideTip"})});var a=n.getDom(),i=this.model;this._dom&&a.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=i.get("backgroundColor")||ee.color.neutral00;var s=document.createElement("h4"),l=i.get("lang")||[];s.innerHTML=l[0]||i.get("title"),s.style.cssText="margin:10px 20px",s.style.color=i.get("textColor");var u=document.createElement("div"),c=document.createElement("textarea");u.style.cssText="overflow:auto";var f=i.get("optionToContent"),d=i.get("contentToOption"),v=pxe(t);if(Ae(f)){var g=f(n.getOption());ye(g)?u.innerHTML=g:oc(g)&&u.appendChild(g)}else{c.readOnly=i.get("readOnly");var x=c.style;x.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",x.color=i.get("textColor"),x.borderColor=i.get("textareaBorderColor"),x.backgroundColor=i.get("textareaColor"),c.value=v.value,u.appendChild(c)}var y=v.meta,b=document.createElement("div");b.style.cssText="position:absolute;bottom:5px;left:0;right:0";var S="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",T=document.createElement("div"),C=document.createElement("div");S+=";background-color:"+i.get("buttonColor"),S+=";color:"+i.get("buttonTextColor");var M=this;function D(){a.removeChild(o),M._dom=null}q2(T,"click",D),q2(C,"click",function(){if(d==null&&f!=null||d!=null&&f==null){D();return}var L;try{Ae(d)?L=d(u,n.getOption()):L=xxe(c.value,y)}catch(E){throw D(),new Error("Data view format error "+E)}L&&n.dispatchAction({type:"changeDataView",newOption:L}),D()}),T.innerHTML=l[1],C.innerHTML=l[2],C.style.cssText=T.style.cssText=S,!i.get("readOnly")&&b.appendChild(C),b.appendChild(T),o.appendChild(s),o.appendChild(u),o.appendChild(b),u.style.height=a.clientHeight-80+"px",a.appendChild(o),this._dom=o},e.prototype.remove=function(t,n){this._dom&&n.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,n){this.remove(t,n)},e.getDefaultOption=function(t){var n={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:ee.color.background,textColor:ee.color.primary,textareaColor:ee.color.background,textareaBorderColor:ee.color.border,buttonColor:ee.color.accent50,buttonTextColor:ee.color.neutral00};return n},e})(Aa);function _xe(r,e){return ce(r,function(t,n){var a=e&&e[n];if(Re(a)&&!ue(a)){var i=Re(t)&&!ue(t);i||(t={value:t});var o=a.name!=null&&t.name==null;return t=Ne(t,a),o&&delete t.name,t}else return t})}si({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,e){var t=[];P(r.newOption.series,function(n){var a=e.getSeriesByName(n.name)[0];if(!a)t.push(ie({type:"scatter"},n));else{var i=a.get("data");t.push({name:n.name,data:_xe(n.data,i)})}}),e.mergeOption(Ne({series:t},r.newOption))});var g9=P,m9=Ke();function Sxe(r,e){var t=$L(r);g9(e,function(n,a){for(var i=t.length-1;i>=0;i--){var o=t[i];if(o[a])break}if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();t[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),t.push(e)}function wxe(r){var e=$L(r),t=e[e.length-1];e.length>1&&e.pop();var n={};return g9(t,function(a,i){for(var o=e.length-1;o>=0;o--)if(a=e[o][i],a){n[i]=a;break}}),n}function Txe(r){m9(r).snapshots=null}function Cxe(r){return $L(r).length}function $L(r){var e=m9(r);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var Axe=(function(r){K(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,n){Txe(t),n.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var n={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return n},e})(Aa);si({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,e){e.resetOption("recreate")});var Mxe=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],KL=(function(){function r(e,t,n){var a=this;this._targetInfoList=[];var i=hj(t,e);P(Dxe,function(o,s){(!n||!n.include||Ge(n.include,s)>=0)&&o(i,a._targetInfoList)})}return r.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(n,a,i){if((n.coordRanges||(n.coordRanges=[])).push(a),!n.coordRange){n.coordRange=a;var o=QT[n.brushType](0,i,a);n.__rangeOffset={offset:gj[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},r.prototype.matchOutputRanges=function(e,t,n){P(e,function(a){var i=this.findTargetInfo(a,t);i&&i!==!0&&P(i.coordSyses,function(o){var s=QT[a.brushType](1,o,a.range,!0);n(a,s.values,o,t)})},this)},r.prototype.setInputRanges=function(e,t){P(e,function(n){var a=this.findTargetInfo(n,t);if(n.range=n.range||[],a&&a!==!0){n.panelId=a.panelId;var i=QT[n.brushType](0,a.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?gj[n.brushType](i.values,o.offset,Lxe(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(e,t){return ce(this._targetInfoList,function(n){var a=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:SU(a),isTargetByCursor:TU(a,e,n.coordSysModel),getLinearBrushOtherExtent:wU(a)}})},r.prototype.controlSeries=function(e,t,n){var a=this.findTargetInfo(e,n);return a===!0||a&&Ge(a.coordSyses,t.coordinateSystem)>=0},r.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,a=hj(t,e),i=0;i<n.length;i++){var o=n[i],s=e.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<dj.length;l++)if(dj[l](a,o))return o}return!0},r})();function jA(r){return r[0]>r[1]&&r.reverse(),r}function hj(r,e){return oh(r,e,{includeMainTypes:Mxe})}var Dxe={grid:function(r,e){var t=r.xAxisModels,n=r.yAxisModels,a=r.gridModels,i=Te(),o={},s={};!t&&!n&&!a||(P(t,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),P(n,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),P(a,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,c=[];P(u.getCartesians(),function(f,d){(Ge(t,f.getAxis("x").model)>=0||Ge(n,f.getAxis("y").model)>=0)&&c.push(f)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:vj.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,e){P(r.geoModels,function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:vj.geo})})}},dj=[function(r,e){var t=r.xAxisModel,n=r.yAxisModel,a=r.gridModel;return!a&&t&&(a=t.axis.grid.model),!a&&n&&(a=n.axis.grid.model),a&&a===e.gridModel},function(r,e){var t=r.geoModel;return t&&t===e.geoModel}],vj={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,e=r.getBoundingRect().clone();return e.applyTransform(fl(r)),e}},QT={lineX:Ve(pj,0),lineY:Ve(pj,1),rect:function(r,e,t,n){var a=r?e.pointToData([t[0][0],t[1][0]],n):e.dataToPoint([t[0][0],t[1][0]],n),i=r?e.pointToData([t[0][1],t[1][1]],n):e.dataToPoint([t[0][1],t[1][1]],n),o=[jA([a[0],i[0]]),jA([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(r,e,t,n){var a=[[1/0,-1/0],[1/0,-1/0]],i=ce(t,function(o){var s=r?e.pointToData(o,n):e.dataToPoint(o,n);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:i,xyMinMax:a}}};function pj(r,e,t,n){var a=t.getAxis(["x","y"][r]),i=jA(ce([0,1],function(s){return e?a.coordToData(a.toLocalCoord(n[s]),!0):a.toGlobalCoord(a.dataToCoord(n[s]))})),o=[];return o[r]=i,o[1-r]=[NaN,NaN],{values:i,xyMinMax:o}}var gj={lineX:Ve(mj,0),lineY:Ve(mj,1),rect:function(r,e,t){return[[r[0][0]-t[0]*e[0][0],r[0][1]-t[0]*e[0][1]],[r[1][0]-t[1]*e[1][0],r[1][1]-t[1]*e[1][1]]]},polygon:function(r,e,t){return ce(r,function(n,a){return[n[0]-t[0]*e[a][0],n[1]-t[1]*e[a][1]]})}};function mj(r,e,t,n){return[e[0]-n[r]*t[0],e[1]-n[r]*t[1]]}function Lxe(r,e){var t=yj(r),n=yj(e),a=[t[0]/n[0],t[1]/n[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function yj(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var VA=P,Nxe=fre("toolbox-dataZoom_"),Rxe=(function(r){K(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,n,a,i){this._brushController||(this._brushController=new SL(a.getZr()),this._brushController.on("brush",xe(this._onBrush,this)).mount()),kxe(t,n,this,i,a),Ixe(t,n)},e.prototype.onclick=function(t,n,a){Exe[a].call(this)},e.prototype.remove=function(t,n){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,n){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var n=t.areas;if(!t.isEnd||!n.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new KL(QL(this.model),i,{include:["grid"]});o.matchOutputRanges(n,i,function(u,c,f){if(f.type==="cartesian2d"){var d=u.brushType;d==="rect"?(s("x",f,c[0]),s("y",f,c[1])):s({lineX:"x",lineY:"y"}[d],f,c)}}),Sxe(i,a),this._dispatchZoomAction(a);function s(u,c,f){var d=c.getAxis(u),v=d.model,g=l(u,v,i),x=g.findRepresentativeAxisProxy(v).getMinMaxSpan();(x.minValueSpan!=null||x.maxValueSpan!=null)&&(f=_l(0,f.slice(),d.scale.getExtent(),0,x.minValueSpan,x.maxValueSpan)),g&&(a[g.id]={dataZoomId:g.id,startValue:f[0],endValue:f[1]})}function l(u,c,f){var d;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(v){var g=v.getAxisModel(u,c.componentIndex);g&&(d=v)}),d}},e.prototype._dispatchZoomAction=function(t){var n=[];VA(t,function(a,i){n.push(Me(a))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},e.getDefaultOption=function(t){var n={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:ee.color.backgroundTint}};return n},e})(Aa),Exe={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(wxe(this.ecModel))}};function QL(r){var e={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function Ixe(r,e){r.setIconStatus("back",Cxe(e)>1?"emphasis":"normal")}function kxe(r,e,t,n,a){var i=t._isZoomActive;n&&n.type==="takeGlobalCursor"&&(i=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),t._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var o=new KL(QL(r),e,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}Wae("dataZoom",function(r){var e=r.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var n=e.getModel(t),a=[],i=QL(n),o=oh(r,i);VA(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),VA(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var f=l.componentIndex,d={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:Nxe+u+f};d[c]=f,a.push(d)}return a});function Oxe(r){r.registerComponentModel(oxe),r.registerComponentView(sxe),Xf("saveAsImage",uxe),Xf("magicType",fxe),Xf("dataView",bxe),Xf("dataZoom",Rxe),Xf("restore",Axe),Ue(ixe)}var Pxe=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:ee.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:ee.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:ee.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:ee.color.tertiary,fontSize:14}},e})($e);function y9(r){var e=r.get("confine");return e!=null?!!e:r.get("renderMode")==="richText"}function x9(r){if(rt.domSupported){for(var e=document.documentElement.style,t=0,n=r.length;t<n;t++)if(r[t]in e)return r[t]}}var b9=x9(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),zxe=x9(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function _9(r,e){if(!r)return e;e=xD(e,!0);var t=r.indexOf(e);return r=t===-1?e:"-"+r.slice(0,t)+"-"+e,r.toLowerCase()}function Bxe(r,e){var t=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return t?t[e]:null}var jxe=_9(zxe,"transition"),JL=_9(b9,"transform"),Vxe="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(rt.transform3dSupported?"will-change:transform;":"");function Gxe(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function Hxe(r,e,t){if(!ye(t)||t==="inside")return"";var n=r.get("backgroundColor"),a=r.get("borderWidth");e=dc(e);var i=Gxe(t),o=Math.max(Math.round(a)*1.5,6),s="",l=JL+":",u;Ge(["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 c=u*Math.PI/180,f=o+a,d=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),v=Math.round(((d-Math.SQRT2*a)/2+Math.SQRT2*a-(d-f)/2)*100)/100;s+=";"+i+":-"+v+"px";var g=e+" solid "+a+"px;",x=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+g,"border-right:"+g,"background-color:"+n+";"];return'<div style="'+x.join("")+'"></div>'}function Fxe(r,e,t){var n="cubic-bezier(0.23,1,0.32,1)",a="",i="";return t&&(a=" "+r/2+"s "+n,i="opacity"+a+",visibility"+a),e||(a=" "+r+"s "+n,i+=(i.length?",":"")+(rt.transformSupported?""+JL+a:",left"+a+",top"+a)),jxe+":"+i}function xj(r,e,t){var n=r.toFixed(0)+"px",a=e.toFixed(0)+"px";if(!rt.transformSupported)return t?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=rt.transform3dSupported,o="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return t?"top:0;left:0;"+JL+":"+o+";":[["top",0],["left",0],[b9,o]]}function Uxe(r){var e=[],t=r.get("fontSize"),n=r.getTextColor();n&&e.push("color:"+n),e.push("font:"+r.getFont());var a=Ce(r.get("lineHeight"),Math.round(t*3/2));t&&e.push("line-height:"+a+"px");var i=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,l=r.get("textShadowOffsetY")||0;return i&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+i),P(["decoration","align"],function(u){var c=r.get(u);c&&e.push("text-"+u+":"+c)}),e.join(";")}function Yxe(r,e,t,n){var a=[],i=r.get("transitionDuration"),o=r.get("backgroundColor"),s=r.get("shadowBlur"),l=r.get("shadowColor"),u=r.get("shadowOffsetX"),c=r.get("shadowOffsetY"),f=r.getModel("textStyle"),d=u8(r,"html"),v=u+"px "+c+"px "+s+"px "+l;return a.push("box-shadow:"+v),e&&i>0&&a.push(Fxe(i,t,n)),o&&a.push("background-color:"+o),P(["width","color","radius"],function(g){var x="border-"+g,y=xD(x),b=r.get(y);b!=null&&a.push(x+":"+b+(g==="color"?"":"px"))}),a.push(Uxe(f)),d!=null&&a.push("padding:"+rd(d).join("px ")+"px"),a.join(";")+";"}function bj(r,e,t,n,a){var i=e&&e.painter;if(t){var o=i&&i.getViewportRoot();o&&Nee(r,o,t,n,a)}else{r[0]=n,r[1]=a;var s=i&&i.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var Wxe=(function(){function r(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,rt.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var a=this._zr=e.getZr(),i=t.appendTo,o=i&&(ye(i)?document.querySelector(i):oc(i)?i:Ae(i)&&i(e.getDom()));bj(this._styleCoord,a,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=a.handler,c=a.painter.getViewportRoot();xa(c,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=Bxe(t,"position"),a=t.style;a.position!=="absolute"&&n!=="absolute"&&(a.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")||""},r.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,i=this._styleCoord;n.innerHTML?a.cssText=Vxe+Yxe(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+xj(i[0],i[1],!0)+("border-color:"+dc(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(e,t,n,a,i){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(ye(i)&&n.get("trigger")==="item"&&!y9(n)&&(s=Hxe(n,a,i)),ye(e))o.innerHTML=e+s;else if(e){o.innerHTML="",ue(e)||(e=[e]);for(var l=0;l<e.length;l++)oc(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)}}},r.prototype.setEnterable=function(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},r.prototype.moveTo=function(e,t){if(this.el){var n=this._styleCoord;if(bj(n,this._zr,this._container,e,t),n[0]!=null&&n[1]!=null){var a=this.el.style,i=xj(n[0],n[1]);P(i,function(o){a[o[0]]=o[1]})}}},r.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){var e=this,t=this.el.style;this._enableDisplayTransition?(t.visibility="hidden",t.opacity="0"):t.display="none",rt.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},r.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(xe(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;Ree(e&&e.painter&&e.painter.getViewportRoot(),this._container);var t=this.el;if(t){t.onmouseenter=t.onmousemove=t.onmouseleave=null;var n=t.parentNode;n&&n.removeChild(t)}this.el=this._container=null},r})(),Xxe=(function(){function r(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),Sj(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return r.prototype.update=function(e){var t=e.get("alwaysShowContent");t&&this._moveIfResized(),this._alwaysShowContent=t},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(e,t,n,a,i){var o=this;Re(e)&&pt(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new at({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:u8(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),P(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),P(["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})},r.prototype.setEnterable=function(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=_j(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},r.prototype.moveTo=function(e,t){var n=this.el;if(n){var a=this._styleCoord;Sj(a,this._zr,e,t),e=a[0],t=a[1];var i=n.style,o=Gs(i.borderWidth||0),s=_j(i);n.x=e+o+s.left,n.y=t+o+s.top,n.markRedraw()}},r.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(xe(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r})();function Gs(r){return Math.max(0,r)}function _j(r){var e=Gs(r.shadowBlur||0),t=Gs(r.shadowOffsetX||0),n=Gs(r.shadowOffsetY||0);return{left:Gs(e-t),right:Gs(e+t),top:Gs(e-n),bottom:Gs(e+n)}}function Sj(r,e,t,n){r[0]=t,r[1]=n,r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var qxe=new We({shape:{x:-1,y:-1,width:2,height:2}}),Zxe=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n){if(!(rt.node||!n.getDom())){var a=t.getComponent("tooltip"),i=this._renderMode=yre(a.get("renderMode"));this._tooltipContent=i==="richText"?new Xxe(n):new Wxe(n,{appendTo:a.get("appendToBody",!0)?"body":a.get("appendTo",!0)})}},e.prototype.render=function(t,n,a){if(!(rt.node||!a.getDom())){this.group.removeAll(),this._tooltipModel=t,this._ecModel=n,this._api=a;var i=this._tooltipContent;i.update(t),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&t.get("transitionDuration")?id(this,"_updatePosition",50,"fixRate"):rg(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,n=t.get("triggerOn");r9("itemTooltip",this._api,xe(function(a,i,o){n!=="none"&&(n.indexOf(a)>=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,n=this._ecModel,a=this._api,i=t.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(t,n,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,n,a,i){if(!(i.from===this.uid||rt.node||!a.getDom())){var o=wj(i,a);this._ticket="";var s=i.dataByCoordSys,l=Jxe(i,n,a);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 c=qxe;c.x=i.x,c.y=i.y,c.update(),ze(c).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:c},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(t,n,a,i))return;var f=n9(i,n),d=f.point[0],v=f.point[1];d!=null&&v!=null&&this._tryShow({offsetX:d,offsetY:v,target:f.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},e.prototype.manuallyHideTip=function(t,n,a,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(wj(i,a))},e.prototype._manuallyAxisShowTip=function(t,n,a,i){var o=i.seriesIndex,s=i.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var c=u.getData(),f=Yv([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},e.prototype._tryShow=function(t,n){var a=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(a){var s=ze(a);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Bu(a,function(c){if(c.tooltipDisabled)return l=u=null,!0;l||u||(ze(c).dataIndex!=null?l=c:ze(c).tooltipConfig!=null&&(u=c))},!0),l?this._showSeriesItemTooltip(t,l,n):u?this._showComponentItemTooltip(t,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},e.prototype._showOrMove=function(t,n){var a=t.get("showDelay");n=xe(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},e.prototype._showAxisTooltip=function(t,n){var a=this._ecModel,i=this._tooltipModel,o=[n.offsetX,n.offsetY],s=Yv([n.tooltipOption],i),l=this._renderMode,u=[],c=vr("section",{blocks:[],noHeader:!0}),f=[],d=new Iw;P(t,function(S){P(S.dataByAxis,function(T){var C=a.getComponent(T.axisDim+"Axis",T.axisIndex),M=T.value;if(!(!C||M==null)){var D=JU(M,C.axis,a,T.seriesDataIndices,T.valueLabelOpt),L=vr("section",{header:D,noHeader:!Qn(D),sortBlocks:!0,blocks:[]});c.blocks.push(L),P(T.seriesDataIndices,function(E){var R=a.getSeriesByIndex(E.seriesIndex),I=E.dataIndexInside,k=R.getDataParams(I);if(!(k.dataIndex<0)){k.axisDim=T.axisDim,k.axisIndex=T.axisIndex,k.axisType=T.axisType,k.axisId=T.axisId,k.axisValue=Wx(C.axis,{value:M}),k.axisValueLabel=D,k.marker=d.makeTooltipMarker("item",dc(k.color),l);var z=jP(R.formatTooltip(I,!0,null)),O=z.frag;if(O){var G=Yv([R],i).get("valueFormatter");L.blocks.push(G?ie({valueFormatter:G},O):O)}z.text&&f.push(z.text),u.push(k)}})}})}),c.blocks.reverse(),f.reverse();var v=n.position,g=s.get("order"),x=YP(c,d,l,g,a.get("useUTC"),s.get("textStyle"));x&&f.unshift(x);var y=l==="richText"?`
|
|
281
|
+
|
|
282
|
+
`:"<br/>",b=f.join(y);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,b,u,Math.random()+"",o[0],o[1],v,null,d)})},e.prototype._showSeriesItemTooltip=function(t,n,a){var i=this._ecModel,o=ze(n),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,d=u.getData(f),v=this._renderMode,g=t.positionDefault,x=Yv([d.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,g?{position:g}:null),y=x.get("trigger");if(!(y!=null&&y!=="item")){var b=u.getDataParams(c,f),S=new Iw;b.marker=S.makeTooltipMarker("item",dc(b.color),v);var T=jP(u.formatTooltip(c,!1,f)),C=x.get("order"),M=x.get("valueFormatter"),D=T.frag,L=D?YP(M?ie({valueFormatter:M},D):D,S,v,C,i.get("useUTC"),x.get("textStyle")):T.text,E="item_"+u.name+"_"+c;this._showOrMove(x,function(){this._showTooltipContent(x,L,b,E,t.offsetX,t.offsetY,t.position,t.target,S)}),a({type:"showTip",dataIndexInside:c,dataIndex:d.getRawIndex(c),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,n,a){var i=this._renderMode==="html",o=ze(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(ye(l)){var c=l;l={content:c,formatter:c},u=!0}u&&i&&l.content&&(l=Me(l),l.content=ln(l.content));var f=[l],d=this._ecModel.getComponent(o.componentMainType,o.componentIndex);d&&f.push(d),f.push({formatter:l.content});var v=t.positionDefault,g=Yv(f,this._tooltipModel,v?{position:v}:null),x=g.get("content"),y=Math.random()+"",b=new Iw;this._showOrMove(g,function(){var S=Me(g.get("formatterParams")||{});this._showTooltipContent(g,x,S,y,t.offsetX,t.offsetY,t.position,n,b)}),a({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,n,a,i,o,s,l,u,c){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var f=this._tooltipContent;f.setEnterable(t.get("enterable"));var d=t.get("formatter");l=l||t.get("position");var v=n,g=this._getNearestPoint([o,s],a,t.get("trigger"),t.get("borderColor"),t.get("defaultBorderColor",!0)),x=g.color;if(d)if(ye(d)){var y=t.ecModel.get("useUTC"),b=ue(a)?a[0]:a,S=b&&b.axisType&&b.axisType.indexOf("time")>=0;v=d,S&&(v=Vg(b.axisValue,v,y)),v=bD(v,a,!0)}else if(Ae(d)){var T=xe(function(C,M){C===this._ticket&&(f.setContent(M,c,t,x,l),this._updatePosition(t,l,o,s,f,a,u))},this);this._ticket=i,v=d(a,i,T)}else v=d;f.setContent(v,c,t,x,l),f.show(t,x),this._updatePosition(t,l,o,s,f,a,u)}},e.prototype._getNearestPoint=function(t,n,a,i,o){if(a==="axis"||ue(n))return{color:i||o};if(!ue(n))return{color:i||n.color||n.borderColor}},e.prototype._updatePosition=function(t,n,a,i,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();n=n||t.get("position");var f=o.getSize(),d=t.get("align"),v=t.get("verticalAlign"),g=l&&l.getBoundingRect().clone();if(l&&g.applyTransform(l.transform),Ae(n)&&(n=n([a,i],s,o.el,g,{viewSize:[u,c],contentSize:f.slice()})),ue(n))a=me(n[0],u),i=me(n[1],c);else if(Re(n)){var x=n;x.width=f[0],x.height=f[1];var y=Gt(x,{width:u,height:c});a=y.x,i=y.y,d=null,v=null}else if(ye(n)&&l){var b=Qxe(n,g,f,t.get("borderWidth"));a=b[0],i=b[1]}else{var b=$xe(a,i,o,u,c,d?null:20,v?null:20);a=b[0],i=b[1]}if(d&&(a-=Tj(d)?f[0]/2:d==="right"?f[0]:0),v&&(i-=Tj(v)?f[1]/2:v==="bottom"?f[1]:0),y9(t)){var b=Kxe(a,i,o,u,c);a=b[0],i=b[1]}o.moveTo(a,i)},e.prototype._updateContentNotChangedOnAxis=function(t,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===t.length;return o&&P(a,function(s,l){var u=s.dataByAxis||[],c=t[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&P(u,function(d,v){var g=f[v]||{},x=d.seriesDataIndices||[],y=g.seriesDataIndices||[];o=o&&d.value===g.value&&d.axisType===g.axisType&&d.axisId===g.axisId&&x.length===y.length,o&&P(x,function(b,S){var T=y[S];o=o&&b.seriesIndex===T.seriesIndex&&b.dataIndex===T.dataIndex}),i&&P(d.seriesDataIndices,function(b){var S=b.seriesIndex,T=n[S],C=i[S];T&&C&&C.data!==T.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=n,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,n){rt.node||!n.getDom()||(rg(this,"_updatePosition"),this._tooltipContent.dispose(),EA("itemTooltip",n))},e.type="tooltip",e})(Lt);function Yv(r,e,t){var n=e.ecModel,a;t?(a=new Je(t,n,n),a=new Je(e.option,a,n)):a=e;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof Je&&(o=o.get("tooltip",!0)),ye(o)&&(o={formatter:o}),o&&(a=new Je(o,a,n)))}return a}function wj(r,e){return r.dispatchAction||xe(e.dispatchAction,e)}function $xe(r,e,t,n,a,i,o){var s=t.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>n?r-=l+i:r+=i),o!=null&&(e+u+o>a?e-=u+o:e+=o),[r,e]}function Kxe(r,e,t,n,a){var i=t.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,n)-o,e=Math.min(e+s,a)-s,r=Math.max(r,0),e=Math.max(e,0),[r,e]}function Qxe(r,e,t,n){var a=t[0],i=t[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=e.width,c=e.height;switch(r){case"inside":s=e.x+u/2-a/2,l=e.y+c/2-i/2;break;case"top":s=e.x+u/2-a/2,l=e.y-i-o;break;case"bottom":s=e.x+u/2-a/2,l=e.y+c+o;break;case"left":s=e.x-a-o,l=e.y+c/2-i/2;break;case"right":s=e.x+u+o,l=e.y+c/2-i/2}return[s,l]}function Tj(r){return r==="center"||r==="middle"}function Jxe(r,e,t){var n=HM(r).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=qh(e,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=ze(u).tooltipConfig;if(c&&c.name===r.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}function e1e(r){Ue(Zg),r.registerComponentModel(Pxe),r.registerComponentView(Zxe),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},$t),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},$t)}var t1e=["rect","polygon","keep","clear"];function r1e(r,e){var t=Dt(r?r.brush:[]);if(t.length){var n=[];P(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(n=n.concat(u))});var a=r&&r.toolbox;ue(a)&&(a=a[0]),a||(a={feature:{}},r.toolbox=[a]);var i=a.feature||(a.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,n),n1e(s),e&&!s.length&&s.push.apply(s,t1e)}}function n1e(r){var e={};P(r,function(t){e[t]=1}),r.length=0,P(e,function(t,n){r.push(n)})}var Cj=P;function Aj(r){if(r){for(var e in r)if(r.hasOwnProperty(e))return!0}}function GA(r,e,t){var n={};return Cj(e,function(i){var o=n[i]=a();Cj(r[i],function(s,l){if(Dr.isValidType(l)){var u={type:l,visual:s};t&&t(u,i),o[l]=new Dr(u),l==="opacity"&&(u=Me(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Dr(u))}})}),n;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function S9(r,e,t){var n;P(t,function(a){e.hasOwnProperty(a)&&Aj(e[a])&&(n=!0)}),n&&P(t,function(a){e.hasOwnProperty(a)&&Aj(e[a])?r[a]=Me(e[a]):delete r[a]})}function a1e(r,e,t,n,a,i){var o={};P(r,function(f){var d=Dr.prepareVisualTypes(e[f]);o[f]=d});var s;function l(f){return ND(t,s,f)}function u(f,d){x8(t,s,f,d)}t.each(c);function c(f,d){s=f;var v=t.getRawDataItem(s);if(!(v&&v.visualMap===!1))for(var g=n.call(a,f),x=e[g],y=o[g],b=0,S=y.length;b<S;b++){var T=y[b];x[T]&&x[T].applyVisual(f,l,u)}}}function i1e(r,e,t,n){var a={};return P(r,function(i){var o=Dr.prepareVisualTypes(e[i]);a[i]=o}),{progress:function(o,s){var l;n!=null&&(l=s.getDimensionIndex(n));function u(M){return ND(s,f,M)}function c(M,D){x8(s,f,M,D)}for(var f,d=s.getStore();(f=o.next())!=null;){var v=s.getRawDataItem(f);if(!(v&&v.visualMap===!1))for(var g=n!=null?d.get(l,f):f,x=t(g),y=e[x],b=a[x],S=0,T=b.length;S<T;S++){var C=b[S];y[C]&&y[C].applyVisual(g,u,c)}}}}}function o1e(r){var e=r.brushType,t={point:function(n){return Mj[e].point(n,t,r)},rect:function(n){return Mj[e].rect(n,t,r)}};return t}var Mj={lineX:Dj(0),lineY:Dj(1),rect:{point:function(r,e,t){return r&&t.boundingRect.contain(r[0],r[1])},rect:function(r,e,t){return r&&t.boundingRect.intersect(r)}},polygon:{point:function(r,e,t){return r&&t.boundingRect.contain(r[0],r[1])&&Lu(t.range,r[0],r[1])},rect:function(r,e,t){var n=t.range;if(!r||n.length<=1)return!1;var a=r.x,i=r.y,o=r.width,s=r.height,l=n[0];if(Lu(n,a,i)||Lu(n,a+o,i)||Lu(n,a,i+s)||Lu(n,a+o,i+s)||ke.create(r).contain(l[0],l[1])||lp(a,i,a+o,i,n)||lp(a,i,a,i+s,n)||lp(a+o,i,a+o,i+s,n)||lp(a,i+s,a+o,i+s,n))return!0}}};function Dj(r){var e=["x","y"],t=["width","height"];return{point:function(n,a,i){if(n){var o=i.range,s=n[r];return Wv(s,o)}},rect:function(n,a,i){if(n){var o=i.range,s=[n[e[r]],n[e[r]]+n[t[r]]];return s[1]<s[0]&&s.reverse(),Wv(s[0],o)||Wv(s[1],o)||Wv(o[0],s)||Wv(o[1],s)}}}}function Wv(r,e){return e[0]<=r&&r<=e[1]}var Lj=["inBrush","outOfBrush"],JT="__ecBrushSelect",HA="__ecInBrushSelectEvent";function w9(r){r.eachComponent({mainType:"brush"},function(e){var t=e.brushTargetManager=new KL(e.option,r);t.setInputRanges(e.areas,r)})}function s1e(r,e,t){var n=[],a,i;r.eachComponent({mainType:"brush"},function(o){t&&t.type==="takeGlobalCursor"&&o.setBrushOption(t.key==="brush"?t.brushOption:{brushType:!1})}),w9(r),r.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:Me(o.areas),selected:[]};n.push(l);var u=o.option,c=u.brushLink,f=[],d=[],v=[],g=!1;s||(a=u.throttleType,i=u.throttleDelay);var x=ce(o.areas,function(M){var D=f1e[M.brushType],L=Ne({boundingRect:D?D(M):void 0},M);return L.selectors=o1e(L),L}),y=GA(o.option,Lj,function(M){M.mappingMethod="fixed"});ue(c)&&P(c,function(M){f[M]=1});function b(M){return c==="all"||!!f[M]}function S(M){return!!M.length}r.eachSeries(function(M,D){var L=v[D]=[];M.subType==="parallel"?T(M,D):C(M,D,L)});function T(M,D){var L=M.coordinateSystem;g=g||L.hasAxisBrushed(),b(D)&&L.eachActiveState(M.getData(),function(E,R){E==="active"&&(d[R]=1)})}function C(M,D,L){if(!(!M.brushSelector||c1e(o,D))&&(P(x,function(R){o.brushTargetManager.controlSeries(R,M,r)&&L.push(R),g=g||S(L)}),b(D)&&S(L))){var E=M.getData();E.each(function(R){Nj(M,L,E,R)&&(d[R]=1)})}}r.eachSeries(function(M,D){var L={seriesId:M.id,seriesIndex:D,seriesName:M.name,dataIndex:[]};l.selected.push(L);var E=v[D],R=M.getData(),I=b(D)?function(k){return d[k]?(L.dataIndex.push(R.getRawIndex(k)),"inBrush"):"outOfBrush"}:function(k){return Nj(M,E,R,k)?(L.dataIndex.push(R.getRawIndex(k)),"inBrush"):"outOfBrush"};(b(D)?g:S(E))&&a1e(Lj,y,R,I)})}),l1e(e,a,i,n,t)}function l1e(r,e,t,n,a){if(a){var i=r.getZr();if(!i[HA]){i[JT]||(i[JT]=u1e);var o=id(i,JT,t,e);o(r,n)}}}function u1e(r,e){if(!r.isDisposed()){var t=r.getZr();t[HA]=!0,r.dispatchAction({type:"brushSelect",batch:e}),t[HA]=!1}}function Nj(r,e,t,n){for(var a=0,i=e.length;a<i;a++){var o=e[a];if(r.brushSelector(n,t,o.selectors,o))return!0}}function c1e(r,e){var t=r.option.seriesIndex;return t!=null&&t!=="all"&&(ue(t)?Ge(t,e)<0:e!==t)}var f1e={rect:function(r){return Rj(r.range)},polygon:function(r){for(var e,t=r.range,n=0,a=t.length;n<a;n++){e=e||[[1/0,-1/0],[1/0,-1/0]];var i=t[n];i[0]<e[0][0]&&(e[0][0]=i[0]),i[0]>e[0][1]&&(e[0][1]=i[0]),i[1]<e[1][0]&&(e[1][0]=i[1]),i[1]>e[1][1]&&(e[1][1]=i[1])}return e&&Rj(e)}};function Rj(r){return new ke(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var h1e=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n){this.ecModel=t,this.api=n,this.model,(this._brushController=new SL(n.getZr())).on("brush",xe(this._onBrush,this)).mount()},e.prototype.render=function(t,n,a,i){this.model=t,this._updateController(t,n,a,i)},e.prototype.updateTransform=function(t,n,a,i){w9(n),this._updateController(t,n,a,i)},e.prototype.updateVisual=function(t,n,a,i){this.updateTransform(t,n,a,i)},e.prototype.updateView=function(t,n,a,i){this._updateController(t,n,a,i)},e.prototype._updateController=function(t,n,a,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(a)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var n=this.model.id,a=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:Me(a),$from:n}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:Me(a),$from:n})},e.type="brush",e})(Lt),d1e=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,n){var a=this.option;!n&&S9(a,t,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:this.option.defaultOutOfBrushColor},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=ce(t,function(n){return Ej(this.option,n)},this))},e.prototype.setBrushOption=function(t){this.brushOption=Ej(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:ee.color.backgroundTint,borderColor:ee.color.borderTint},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4,defaultOutOfBrushColor:ee.color.disabled},e})($e);function Ej(r,e){return Fe({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new Je(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},e,!0)}var v1e=["rect","polygon","lineX","lineY","keep","clear"],p1e=(function(r){K(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,n,a){var i,o,s;n.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,P(t.get("type",!0),function(l){t.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},e.prototype.updateView=function(t,n,a){this.render(t,n,a)},e.prototype.getIcons=function(){var t=this.model,n=t.get("icon",!0),a={};return P(t.get("type",!0),function(i){n[i]&&(a[i]=n[i])}),a},e.prototype.onclick=function(t,n,a){var i=this._brushType,o=this._brushMode;a==="clear"?(n.dispatchAction({type:"axisAreaSelect",intervals:[]}),n.dispatchAction({type:"brush",command:"clear",areas:[]})):n.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:a==="keep"?i:i===a?!1:a,brushMode:a==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(t){var n={show:!0,type:v1e.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return n},e})(Aa);function g1e(r){r.registerComponentView(h1e),r.registerComponentModel(d1e),r.registerPreprocessor(r1e),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,s1e),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(n){n.setAreas(e.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},$t),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},$t),Xf("brush",p1e)}var m1e=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:ee.size.m,backgroundColor:ee.color.transparent,borderColor:ee.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:ee.color.primary},subtextStyle:{fontSize:12,color:ee.color.quaternary}},e})($e),y1e=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){if(this.group.removeAll(),!!t.get("show")){var i=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=Ce(t.get("textBaseline"),t.get("textVerticalAlign")),c=new at({style:Mt(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),d=t.get("subtext"),v=new at({style:Mt(s,{text:d,fill:s.getTextColor(),y:f.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),g=t.get("link"),x=t.get("sublink"),y=t.get("triggerEvent",!0);c.silent=!g&&!y,v.silent=!x&&!y,g&&c.on("click",function(){Ox(g,"_"+t.get("target"))}),x&&v.on("click",function(){Ox(x,"_"+t.get("subtarget"))}),ze(c).eventData=ze(v).eventData=y?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(c),d&&i.add(v);var b=i.getBoundingRect(),S=t.getBoxLayoutParams();S.width=b.width,S.height=b.height;var T=Sr(t,a),C=Gt(S,T.refContainer,t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?C.x+=C.width:l==="center"&&(C.x+=C.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?C.y+=C.height:u==="middle"&&(C.y+=C.height/2),u=u||"top"),i.x=C.x,i.y=C.y,i.markRedraw();var M={align:l,verticalAlign:u};c.setStyle(M),v.setStyle(M),b=i.getBoundingRect();var D=C.margin,L=t.getItemStyle(["color","opacity"]);L.fill=t.get("backgroundColor");var E=new We({shape:{x:b.x-D[3],y:b.y-D[0],width:b.width+D[1]+D[3],height:b.height+D[0]+D[2],r:t.get("borderRadius")},style:L,subPixelOptimize:!0,silent:!0});i.add(E)}},e.type="title",e})(Lt);function x1e(r){r.registerComponentModel(m1e),r.registerComponentView(y1e)}var Ij=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,n,a){this.mergeDefaultAndTheme(t,a),this._initData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var n=this._data.count();this.option.loop?t=(t%n+n)%n:(t>=n&&(t=n-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t=this.option,n=t.data||[],a=t.axisType,i=this._names=[],o;a==="category"?(o=[],P(n,function(u,c){var f=yr(Xh(u),""),d;Re(u)?(d=Me(u),d.value=c):d=c,o.push(d),i.push(f)})):o=n;var s={category:"ordinal",time:"time",value:"number"}[a]||"number",l=this._data=new cn([{name:"value",type:s}],this);l.initData(o,i)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:ee.size.m,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:ee.color.secondary},data:[]},e})($e),T9=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=Dl(Ij.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:ee.color.border,borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:ee.color.accent10},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:ee.color.tertiary},itemStyle:{color:ee.color.accent20,borderWidth:0},checkpointStyle:{symbol:"circle",symbolSize:15,color:ee.color.accent50,borderColor:ee.color.accent50,borderWidth:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0, 0, 0, 0)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10.6699C11.5 9.90014 12.3333 9.41887 13 9.80371L20.5 14.1338C21.1667 14.5187 21.1667 15.4813 20.5 15.8662L13 20.1963C12.3333 20.5811 11.5 20.0999 11.5 19.3301V10.6699Z",stopIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10C12.3284 10 13 10.6716 13 11.5V18.5C13 19.3284 12.3284 20 11.5 20C10.6716 20 10 19.3284 10 18.5V11.5C10 10.6716 10.6716 10 11.5 10ZM18.5 10C19.3284 10 20 10.6716 20 11.5V18.5C20 19.3284 19.3284 20 18.5 20C17.6716 20 17 19.3284 17 18.5V11.5C17 10.6716 17.6716 10 18.5 10Z",nextIcon:"path://M0.838834 18.7383C0.253048 18.1525 0.253048 17.2028 0.838834 16.617L7.55635 9.89949L0.838834 3.18198C0.253048 2.59619 0.253048 1.64645 0.838834 1.06066C1.42462 0.474874 2.37437 0.474874 2.96015 1.06066L10.7383 8.83883L10.8412 8.95277C11.2897 9.50267 11.2897 10.2963 10.8412 10.8462L10.7383 10.9602L2.96015 18.7383C2.37437 19.3241 1.42462 19.3241 0.838834 18.7383Z",prevIcon:"path://M10.9602 1.06066C11.5459 1.64645 11.5459 2.59619 10.9602 3.18198L4.24264 9.89949L10.9602 16.617C11.5459 17.2028 11.5459 18.1525 10.9602 18.7383C10.3744 19.3241 9.42462 19.3241 8.83883 18.7383L1.06066 10.9602L0.957771 10.8462C0.509245 10.2963 0.509245 9.50267 0.957771 8.95277L1.06066 8.83883L8.83883 1.06066C9.42462 0.474874 10.3744 0.474874 10.9602 1.06066Z",prevBtnSize:18,nextBtnSize:18,color:ee.color.accent50,borderColor:ee.color.accent50,borderWidth:0},emphasis:{label:{show:!0,color:ee.color.accent60},itemStyle:{color:ee.color.accent60,borderColor:ee.color.accent60},controlStyle:{color:ee.color.accent70,borderColor:ee.color.accent70}},progress:{lineStyle:{color:ee.color.accent30},itemStyle:{color:ee.color.accent40}},data:[]}),e})(Ij);Qt(T9,rb.prototype);var b1e=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e})(Lt),_1e=(function(r){K(e,r);function e(t,n,a,i){var o=r.call(this,t,n,a)||this;return o.type=i||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e})(za),e2=Math.PI,kj=Ke(),S1e=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n){this.api=n},e.prototype.render=function(t,n,a){if(this.model=t,this.api=a,this.ecModel=n,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,a),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,t);t.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return vr("nameValue",{noName:!0,value:c})},P(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,t)},this),this._renderAxisLabel(i,s,l,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,n){var a=t.get(["label","position"]),i=t.get("orient"),o=T1e(t,n),s;a==null||a==="auto"?s=i==="horizontal"?o.y+o.height/2<n.getHeight()/2?"-":"+":o.x+o.width/2<n.getWidth()/2?"+":"-":ye(a)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][a]:s=a;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:e2/2},f=i==="vertical"?o.height:o.width,d=t.getModel("controlStyle"),v=d.get("show",!0),g=v?d.get("itemSize"):0,x=v?d.get("itemGap"):0,y=g+x,b=t.get(["label","rotate"])||0;b=b*e2/180;var S,T,C,M=d.get("position",!0),D=v&&d.get("showPlayBtn",!0),L=v&&d.get("showPrevBtn",!0),E=v&&d.get("showNextBtn",!0),R=0,I=f;M==="left"||M==="bottom"?(D&&(S=[0,0],R+=y),L&&(T=[R,0],R+=y),E&&(C=[I-g,0],I-=y)):(D&&(S=[I-g,0],I-=y),L&&(T=[0,0],R+=y),E&&(C=[I-g,0],I-=y));var k=[R,I];return t.get("inverse")&&k.reverse(),{viewRect:o,mainLength:f,orient:i,rotation:c[i],labelRotation:b,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[i],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[i],playPosition:S,prevBtnPosition:T,nextBtnPosition:C,axisExtent:k,controlSize:g,controlGap:x}},e.prototype._position=function(t,n){var a=this._mainGroup,i=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=Mr(),l=o.x,u=o.y+o.height;ni(s,s,[-l,-u]),es(s,s,-e2/2),ni(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=S(o),f=S(a.getBoundingRect()),d=S(i.getBoundingRect()),v=[a.x,a.y],g=[i.x,i.y];g[0]=v[0]=c[0][0];var x=t.labelPosOpt;if(x==null||ye(x)){var y=x==="+"?0:1;T(v,f,c,1,y),T(g,d,c,1,1-y)}else{var y=x>=0?0:1;T(v,f,c,1,y),g[1]=v[1]+x}a.setPosition(v),i.setPosition(g),a.rotation=i.rotation=t.rotation,b(a),b(i);function b(C){C.originX=c[0][0]-C.x,C.originY=c[1][0]-C.y}function S(C){return[[C.x,C.x+C.width],[C.y,C.y+C.height]]}function T(C,M,D,L,E){C[L]+=D[L][E]-M[L][E]}},e.prototype._createAxis=function(t,n){var a=n.getData(),i=n.get("axisType"),o=w1e(n,i);o.getTicks=function(){return a.mapArray(["value"],function(u){return{value:u}})};var s=a.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new _1e("value",o,t.axisExtent,i);return l.model=n,l},e.prototype._createGroup=function(t){var n=this[t]=new De;return this.group.add(n),n},e.prototype._renderAxisLine=function(t,n,a,i){var o=a.getExtent();if(i.get(["lineStyle","show"])){var s=new sr({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:ie({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(s);var l=this._progressLine=new sr({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:Ne({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(l)}},e.prototype._renderAxisTick=function(t,n,a,i){var o=this,s=i.getData(),l=a.scale.getTicks();this._tickSymbols=[],P(l,function(u){var c=a.dataToCoord(u.value),f=s.getItemModel(u.value),d=f.getModel("itemStyle"),v=f.getModel(["emphasis","itemStyle"]),g=f.getModel(["progress","itemStyle"]),x={x:c,y:0,onclick:xe(o._changeTimeline,o,u.value)},y=Oj(f,d,n,x);y.ensureState("emphasis").style=v.getItemStyle(),y.ensureState("progress").style=g.getItemStyle(),cl(y);var b=ze(y);f.get("tooltip")?(b.dataIndex=u.value,b.dataModel=i):b.dataIndex=b.dataModel=null,o._tickSymbols.push(y)})},e.prototype._renderAxisLabel=function(t,n,a,i){var o=this,s=a.getLabelModel();if(s.get("show")){var l=i.getData(),u=a.getViewLabels();this._tickLabels=[],P(u,function(c){var f=c.tickValue,d=l.getItemModel(f),v=d.getModel("label"),g=d.getModel(["emphasis","label"]),x=d.getModel(["progress","label"]),y=a.dataToCoord(c.tickValue),b=new at({x:y,y:0,rotation:t.labelRotation-t.rotation,onclick:xe(o._changeTimeline,o,f),silent:!1,style:Mt(v,{text:c.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});b.ensureState("emphasis").style=Mt(g),b.ensureState("progress").style=Mt(x),n.add(b),cl(b),kj(b).dataIndex=f,o._tickLabels.push(b)})}},e.prototype._renderControl=function(t,n,a,i){var o=t.controlSize,s=t.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),c=i.getPlayState(),f=i.get("inverse",!0);d(t.nextBtnPosition,"next",xe(this._changeTimeline,this,f?"-":"+")),d(t.prevBtnPosition,"prev",xe(this._changeTimeline,this,f?"+":"-")),d(t.playPosition,c?"stop":"play",xe(this._handlePlayClick,this,!c),!0);function d(v,g,x,y){if(v){var b=ai(Ce(i.get(["controlStyle",g+"BtnSize"]),o),o),S=[0,-b/2,b,b],T=C1e(i,g+"Icon",S,{x:v[0],y:v[1],originX:o/2,originY:0,rotation:y?-s:0,rectHover:!0,style:l,onclick:x});T.ensureState("emphasis").style=u,n.add(T),cl(T)}}},e.prototype._renderCurrentPointer=function(t,n,a,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(f){f.draggable=!0,f.drift=xe(u._handlePointerDrag,u),f.ondragend=xe(u._handlePointerDragend,u),Pj(f,u._progressLine,s,a,i,!0)},onUpdate:function(f){Pj(f,u._progressLine,s,a,i)}};this._currentPointer=Oj(l,l,this._mainGroup,{},this._currentPointer,c)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,n,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,n){var a=this._toAxisCoord(t)[0],i=this._axis,o=Jn(i.getExtent().slice());a>o[1]&&(a=o[1]),a<o[0]&&(a=o[0]),this._currentPointer.x=a,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=a,s.dirty());var l=this._findNearestTick(a),u=this.model;(n||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},e.prototype._doPlayStop=function(){var t=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var n=t.model;t._changeTimeline(n.getCurrentIndex()+(n.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){var n=this._mainGroup.getLocalTransform();return Ja(t,n,!0)},e.prototype._findNearestTick=function(t){var n=this.model.getData(),a=1/0,i,o=this._axis;return n.each(["value"],function(s,l){var u=o.dataToCoord(s),c=Math.abs(u-t);c<a&&(a=c,i=l)}),i},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var n=this.model.getCurrentIndex();t==="+"?t=n+1:t==="-"&&(t=n-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),n=this._tickSymbols,a=this._tickLabels;if(n)for(var i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",i<t);if(a)for(var i=0;i<a.length;i++)a&&a[i]&&a[i].toggleState("progress",kj(a[i]).dataIndex<=t)},e.type="timeline.slider",e})(b1e);function w1e(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new kh({ordinalMeta:r.getCategories(),extent:[1/0,-1/0]});case"time":return new WD({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new Ko}}function T1e(r,e){return Gt(r.getBoxLayoutParams(),Sr(r,e).refContainer,r.get("padding"))}function C1e(r,e,t,n){var a=n.style,i=Jh(r.get(["controlStyle",e]),n||{},new ke(t[0],t[1],t[2],t[3]));return a&&i.setStyle(a),i}function Oj(r,e,t,n,a,i){var o=e.get("color");if(a)a.setColor(o),t.add(a),i&&i.onUpdate(a);else{var s=r.get("symbol");a=lr(s,-1,-1,2,2,o),a.setStyle("strokeNoScale",!0),t.add(a),i&&i.onCreate(a)}var l=e.getItemStyle(["color"]);a.setStyle(l),n=Fe({rectHover:!0,z2:100},n,!0);var u=od(r.get("symbolSize"));n.scaleX=u[0]/2,n.scaleY=u[1]/2;var c=Tc(r.get("symbolOffset"),u);c&&(n.x=(n.x||0)+c[0],n.y=(n.y||0)+c[1]);var f=r.get("symbolRotate");return n.rotation=(f||0)*Math.PI/180||0,a.attr(n),a.updateTransform(),a}function Pj(r,e,t,n,a,i){if(!r.dragging){var o=a.getModel("checkpointStyle"),s=n.dataToCoord(a.getData().get("value",t));if(i||!o.get("animation",!0))r.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};r.stopAnimation(null,!0),r.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}function A1e(r){r.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,t,n){var a=t.getComponent("timeline");return a&&e.currentIndex!=null&&(a.setCurrentIndex(e.currentIndex),!a.get("loop",!0)&&a.isIndexMax()&&a.getPlayState()&&(a.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),t.resetOption("timeline",{replaceMerge:a.get("replaceMerge",!0)}),Ne({currentIndex:a.option.currentIndex},e)}),r.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(e,t){var n=t.getComponent("timeline");n&&e.playState!=null&&n.setPlayState(e.playState)})}function M1e(r){var e=r&&r.timeline;ue(e)||(e=e?[e]:[]),P(e,function(t){t&&D1e(t)})}function D1e(r){var e=r.type,t={number:"value",time:"time"};if(t[e]&&(r.axisType=t[e],delete r.type),zj(r),Eu(r,"controlPosition")){var n=r.controlStyle||(r.controlStyle={});Eu(n,"position")||(n.position=r.controlPosition),n.position==="none"&&!Eu(n,"show")&&(n.show=!1,delete n.position),delete r.controlPosition}P(r.data||[],function(a){Re(a)&&!ue(a)&&(!Eu(a,"value")&&Eu(a,"name")&&(a.value=a.name),zj(a))})}function zj(r){var e=r.itemStyle||(r.itemStyle={}),t=e.emphasis||(e.emphasis={}),n=r.label||r.label||{},a=n.normal||(n.normal={}),i={normal:1,emphasis:1};P(n,function(o,s){!i[s]&&!Eu(a,s)&&(a[s]=o)}),t.label&&!Eu(n,"emphasis")&&(n.emphasis=t.label,delete t.label)}function Eu(r,e){return r.hasOwnProperty(e)}function L1e(r){r.registerComponentModel(T9),r.registerComponentView(S1e),r.registerSubTypeDefaulter("timeline",function(){return"slider"}),A1e(r),r.registerPreprocessor(M1e)}function eN(r,e){if(!r)return!1;for(var t=ue(r)?r:[r],n=0;n<t.length;n++)if(t[n]&&t[n][e])return!0;return!1}function w0(r){sc(r,"label",["show"])}var T0=Ke(),qi=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.createdBySelf=!1,t.preventAutoZ=!0,t}return e.prototype.init=function(t,n,a){this.mergeDefaultAndTheme(t,a),this._mergeOption(t,a,!1,!0)},e.prototype.isAnimationEnabled=function(){if(rt.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,n){this._mergeOption(t,n,!1,!1)},e.prototype._mergeOption=function(t,n,a,i){var o=this.mainType;a||n.eachSeries(function(s){var l=s.get(this.mainType,!0),u=T0(s)[o];if(!l||!l.data){T0(s)[o]=null;return}u?u._mergeOption(l,n,!0):(i&&w0(l),P(l.data,function(c){c instanceof Array?(w0(c[0]),w0(c[1])):w0(c)}),u=this.createMarkerModelFromSeries(l,this,n),ie(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),T0(s)[o]=u},this)},e.prototype.formatTooltip=function(t,n,a){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return vr("section",{header:this.name,blocks:[vr("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.prototype.getDataParams=function(t,n){var a=rb.prototype.getDataParams.call(this,t,n),i=this.__hostSeries;return i&&(a.seriesId=i.id,a.seriesName=i.name,a.seriesType=i.subType),a},e.getMarkerModelFromSeries=function(t,n){return T0(t)[n]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e})($e);Qt(qi,rb.prototype);var N1e=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,n,a){return new e(t,n,a)},e.type="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e})(qi);function FA(r){return!(isNaN(parseFloat(r.x))&&isNaN(parseFloat(r.y)))}function R1e(r){return!isNaN(parseFloat(r.x))&&!isNaN(parseFloat(r.y))}function C0(r,e,t,n,a,i,o){var s=[],l=$o(e,a),u=l?e.getCalculationInfo("stackResultDimension"):a,c=g1(e,u,r),f=e.hostModel,d=f.indicesOfNearest(t,u,c)[0];s[i]=e.get(n,d),s[o]=e.get(u,d);var v=e.get(a,d),g=Za(e.get(a,d));return g=Math.min(g,20),g>=0&&(s[o]=+s[o].toFixed(g)),[s,v]}var A0={min:Ve(C0,"min"),max:Ve(C0,"max"),average:Ve(C0,"average"),median:Ve(C0,"median")};function yg(r,e){if(e){var t=r.getData(),n=r.coordinateSystem,a=n&&n.dimensions;if(!R1e(e)&&!ue(e.coord)&&ue(a)){var i=C9(e,t,n,r);if(e=Me(e),e.type&&A0[e.type]&&i.baseAxis&&i.valueAxis){var o=Ge(a,i.baseAxis.dim),s=Ge(a,i.valueAxis.dim),l=A0[e.type](t,i.valueAxis.dim,i.baseDataDim,i.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!ue(a)){e.coord=[];var u=r.getBaseAxis();if(u&&e.type&&A0[e.type]){var c=n.getOtherAxis(u);c&&(e.value=g1(t,t.mapDimension(c.dim),e.type))}}else for(var f=e.coord,d=0;d<2;d++)A0[f[d]]&&(f[d]=g1(t,t.mapDimension(a[d]),f[d]));return e}}function C9(r,e,t,n){var a={};return r.valueIndex!=null||r.valueDim!=null?(a.valueDataDim=r.valueIndex!=null?e.getDimension(r.valueIndex):r.valueDim,a.valueAxis=t.getAxis(E1e(n,a.valueDataDim)),a.baseAxis=t.getOtherAxis(a.valueAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim)):(a.baseAxis=n.getBaseAxis(),a.valueAxis=t.getOtherAxis(a.baseAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim),a.valueDataDim=e.mapDimension(a.valueAxis.dim)),a}function E1e(r,e){var t=r.getData().getDimensionInfo(e);return t&&t.coordDim}function xg(r,e){return r&&r.containData&&e.coord&&!FA(e)?r.containData(e.coord):!0}function I1e(r,e,t){return r&&r.containZone&&e.coord&&t.coord&&!FA(e)&&!FA(t)?r.containZone(e.coord,t.coord):!0}function A9(r,e){return r?function(t,n,a,i){var o=i<2?t.coord&&t.coord[i]:t.value;return dl(o,e[i])}:function(t,n,a,i){return dl(t.value,e[i])}}function g1(r,e,t){if(t==="average"){var n=0,a=0;return r.each(e,function(i,o){isNaN(i)||(n+=i,a++)}),n/a}else return t==="median"?r.getMedian(e):r.getDataExtent(e)[t==="max"?1:0]}var t2=Ke(),tN=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=Te()},e.prototype.render=function(t,n,a){var i=this,o=this.markerGroupMap;o.each(function(s){t2(s).keep=!1}),n.eachSeries(function(s){var l=qi.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,n,a)}),o.each(function(s){!t2(s).keep&&i.group.remove(s.group)}),k1e(n,o,this.type)},e.prototype.markKeep=function(t){t2(t).keep=!0},e.prototype.toggleBlurSeries=function(t,n){var a=this;P(t,function(i){var o=qi.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?G6(l):$M(l))})}})},e.type="marker",e})(Lt);function k1e(r,e,t){r.eachSeries(function(n){var a=qi.getMarkerModelFromSeries(n,t),i=e.get(n.id);if(a&&i&&i.group){var o=hc(a),s=o.z,l=o.zlevel;Q1(i.group,s,l)}})}function Bj(r,e,t){var n=e.coordinateSystem,a=t.getWidth(),i=t.getHeight(),o=n&&n.getArea&&n.getArea();r.each(function(s){var l=r.getItemModel(s),u=l.get("relativeTo")==="coordinate",c=u?o?o.width:0:a,f=u?o?o.height:0:i,d=u&&o?o.x:0,v=u&&o?o.y:0,g,x=me(l.get("x"),c)+d,y=me(l.get("y"),f)+v;if(!isNaN(x)&&!isNaN(y))g=[x,y];else if(e.getMarkerPosition)g=e.getMarkerPosition(r.getValues(r.dimensions,s));else if(n){var b=r.get(n.dimensions[0],s),S=r.get(n.dimensions[1],s);g=n.dataToPoint([b,S])}isNaN(x)||(g[0]=x),isNaN(y)||(g[1]=y),r.setItemLayout(s,g)})}var O1e=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,n,a){n.eachSeries(function(i){var o=qi.getMarkerModelFromSeries(i,"markPoint");o&&(Bj(o.getData(),i,a),this.markerGroupMap.get(i.id).updateLayout())},this)},e.prototype.renderSeries=function(t,n,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new Yg),f=P1e(o,t,n);n.setData(f),Bj(n.getData(),t,i),f.each(function(d){var v=f.getItemModel(d),g=v.getShallow("symbol"),x=v.getShallow("symbolSize"),y=v.getShallow("symbolRotate"),b=v.getShallow("symbolOffset"),S=v.getShallow("symbolKeepAspect");if(Ae(g)||Ae(x)||Ae(y)||Ae(b)){var T=n.getRawValue(d),C=n.getDataParams(d);Ae(g)&&(g=g(T,C)),Ae(x)&&(x=x(T,C)),Ae(y)&&(y=y(T,C)),Ae(b)&&(b=b(T,C))}var M=v.getModel("itemStyle").getItemStyle(),D=v.get("z2"),L=Hg(l,"color");M.fill||(M.fill=L),f.setItemVisual(d,{z2:Ce(D,0),symbol:g,symbolSize:x,symbolRotate:y,symbolOffset:b,symbolKeepAspect:S,style:M})}),c.updateData(f),this.group.add(c.group),f.eachItemGraphicEl(function(d){d.traverse(function(v){ze(v).dataModel=n})}),this.markKeep(c),c.group.silent=n.get("silent")||t.get("silent")},e.type="markPoint",e})(tN);function P1e(r,e,t){var n;r?n=ce(r&&r.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return ie(ie({},l),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new cn(n,t),i=ce(t.get("data"),Ve(yg,e));r&&(i=ht(i,Ve(xg,r)));var o=A9(!!r,n);return a.initData(i,null,o),a}function z1e(r){r.registerComponentModel(N1e),r.registerComponentView(O1e),r.registerPreprocessor(function(e){eN(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var B1e=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,n,a){return new e(t,n,a)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e})(qi),M0=Ke(),j1e=function(r,e,t,n){var a=r.getData(),i;if(ue(n))i=n;else{var o=n.type;if(o==="min"||o==="max"||o==="average"||o==="median"||n.xAxis!=null||n.yAxis!=null){var s=void 0,l=void 0;if(n.yAxis!=null||n.xAxis!=null)s=e.getAxis(n.yAxis!=null?"y":"x"),l=jr(n.yAxis,n.xAxis);else{var u=C9(n,a,e,r);s=u.valueAxis;var c=FD(a,u.valueDataDim);l=g1(a,c,o)}var f=s.dim==="x"?0:1,d=1-f,v=Me(n),g={coord:[]};v.type=null,v.coord=[],v.coord[d]=-1/0,g.coord[d]=1/0;var x=t.get("precision");x>=0&&it(l)&&(l=+l.toFixed(Math.min(x,20))),v.coord[f]=g.coord[f]=l,i=[v,g,{type:o,valueIndex:n.valueIndex,value:l}]}else i=[]}var y=[yg(r,i[0]),yg(r,i[1]),ie({},i[2])];return y[2].type=y[2].type||null,Fe(y[2],y[0]),Fe(y[2],y[1]),y};function m1(r){return!isNaN(r)&&!isFinite(r)}function jj(r,e,t,n){var a=1-r,i=n.dimensions[r];return m1(e[a])&&m1(t[a])&&e[r]===t[r]&&n.getAxis(i).containData(e[r])}function V1e(r,e){if(r.type==="cartesian2d"){var t=e[0].coord,n=e[1].coord;if(t&&n&&(jj(1,t,n,r)||jj(0,t,n,r)))return!0}return xg(r,e[0])&&xg(r,e[1])}function r2(r,e,t,n,a){var i=n.coordinateSystem,o=r.getItemModel(e),s,l=me(o.get("x"),a.getWidth()),u=me(o.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(r.getValues(r.dimensions,e));else{var c=i.dimensions,f=r.get(c[0],e),d=r.get(c[1],e);s=i.dataToPoint([f,d])}if(bl(i,"cartesian2d")){var v=i.getAxis("x"),g=i.getAxis("y"),c=i.dimensions;m1(r.get(c[0],e))?s[0]=v.toGlobalCoord(v.getExtent()[t?0:1]):m1(r.get(c[1],e))&&(s[1]=g.toGlobalCoord(g.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}r.setItemLayout(e,s)}var G1e=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,n,a){n.eachSeries(function(i){var o=qi.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=M0(o).from,u=M0(o).to;l.each(function(c){r2(l,c,!0,i,a),r2(u,c,!1,i,a)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,n,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new bL);this.group.add(c.group);var f=H1e(o,t,n),d=f.from,v=f.to,g=f.line;M0(n).from=d,M0(n).to=v,n.setData(g);var x=n.get("symbol"),y=n.get("symbolSize"),b=n.get("symbolRotate"),S=n.get("symbolOffset");ue(x)||(x=[x,x]),ue(y)||(y=[y,y]),ue(b)||(b=[b,b]),ue(S)||(S=[S,S]),f.from.each(function(C){T(d,C,!0),T(v,C,!1)}),g.each(function(C){var M=g.getItemModel(C),D=M.getModel("lineStyle").getLineStyle();g.setItemLayout(C,[d.getItemLayout(C),v.getItemLayout(C)]);var L=M.get("z2");D.stroke==null&&(D.stroke=d.getItemVisual(C,"style").fill),g.setItemVisual(C,{z2:Ce(L,0),fromSymbolKeepAspect:d.getItemVisual(C,"symbolKeepAspect"),fromSymbolOffset:d.getItemVisual(C,"symbolOffset"),fromSymbolRotate:d.getItemVisual(C,"symbolRotate"),fromSymbolSize:d.getItemVisual(C,"symbolSize"),fromSymbol:d.getItemVisual(C,"symbol"),toSymbolKeepAspect:v.getItemVisual(C,"symbolKeepAspect"),toSymbolOffset:v.getItemVisual(C,"symbolOffset"),toSymbolRotate:v.getItemVisual(C,"symbolRotate"),toSymbolSize:v.getItemVisual(C,"symbolSize"),toSymbol:v.getItemVisual(C,"symbol"),style:D})}),c.updateData(g),f.line.eachItemGraphicEl(function(C){ze(C).dataModel=n,C.traverse(function(M){ze(M).dataModel=n})});function T(C,M,D){var L=C.getItemModel(M);r2(C,M,D,t,i);var E=L.getModel("itemStyle").getItemStyle();E.fill==null&&(E.fill=Hg(l,"color")),C.setItemVisual(M,{symbolKeepAspect:L.get("symbolKeepAspect"),symbolOffset:Ce(L.get("symbolOffset",!0),S[D?0:1]),symbolRotate:Ce(L.get("symbolRotate",!0),b[D?0:1]),symbolSize:Ce(L.get("symbolSize"),y[D?0:1]),symbol:Ce(L.get("symbol",!0),x[D?0:1]),style:E})}this.markKeep(c),c.group.silent=n.get("silent")||t.get("silent")},e.type="markLine",e})(tN);function H1e(r,e,t){var n;r?n=ce(r&&r.dimensions,function(u){var c=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return ie(ie({},c),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new cn(n,t),i=new cn(n,t),o=new cn([],t),s=ce(t.get("data"),Ve(j1e,e,r,t));r&&(s=ht(s,Ve(V1e,r)));var l=A9(!!r,n);return a.initData(ce(s,function(u){return u[0]}),null,l),i.initData(ce(s,function(u){return u[1]}),null,l),o.initData(ce(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:i,line:o}}function F1e(r){r.registerComponentModel(B1e),r.registerComponentView(G1e),r.registerPreprocessor(function(e){eN(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var U1e=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,n,a){return new e(t,n,a)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e})(qi),D0=Ke(),Y1e=function(r,e,t,n){var a=n[0],i=n[1];if(!(!a||!i)){var o=yg(r,a),s=yg(r,i),l=o.coord,u=s.coord;l[0]=jr(l[0],-1/0),l[1]=jr(l[1],-1/0),u[0]=jr(u[0],1/0),u[1]=jr(u[1],1/0);var c=O1([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c}};function y1(r){return!isNaN(r)&&!isFinite(r)}function Vj(r,e,t,n){var a=1-r;return y1(e[a])&&y1(t[a])}function W1e(r,e){var t=e.coord[0],n=e.coord[1],a={coord:t,x:e.x0,y:e.y0},i={coord:n,x:e.x1,y:e.y1};return bl(r,"cartesian2d")?t&&n&&(Vj(1,t,n)||Vj(0,t,n))?!0:I1e(r,a,i):xg(r,a)||xg(r,i)}function Gj(r,e,t,n,a){var i=n.coordinateSystem,o=r.getItemModel(e),s,l=me(o.get(t[0]),a.getWidth()),u=me(o.get(t[1]),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition){var c=r.getValues(["x0","y0"],e),f=r.getValues(["x1","y1"],e),d=i.clampData(c),v=i.clampData(f),g=[];t[0]==="x0"?g[0]=d[0]>v[0]?f[0]:c[0]:g[0]=d[0]>v[0]?c[0]:f[0],t[1]==="y0"?g[1]=d[1]>v[1]?f[1]:c[1]:g[1]=d[1]>v[1]?c[1]:f[1],s=n.getMarkerPosition(g,t,!0)}else{var x=r.get(t[0],e),y=r.get(t[1],e),b=[x,y];i.clampData&&i.clampData(b,b),s=i.dataToPoint(b,!0)}if(bl(i,"cartesian2d")){var S=i.getAxis("x"),T=i.getAxis("y"),x=r.get(t[0],e),y=r.get(t[1],e);y1(x)?s[0]=S.toGlobalCoord(S.getExtent()[t[0]==="x0"?0:1]):y1(y)&&(s[1]=T.toGlobalCoord(T.getExtent()[t[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var Hj=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],X1e=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,n,a){n.eachSeries(function(i){var o=qi.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=ce(Hj,function(f){return Gj(s,l,f,i,a)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,n,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new De});this.group.add(c.group),this.markKeep(c);var f=q1e(o,t,n);n.setData(f),f.each(function(d){var v=ce(Hj,function(I){return Gj(f,d,I,t,i)}),g=o.getAxis("x").scale,x=o.getAxis("y").scale,y=g.getExtent(),b=x.getExtent(),S=[g.parse(f.get("x0",d)),g.parse(f.get("x1",d))],T=[x.parse(f.get("y0",d)),x.parse(f.get("y1",d))];Jn(S),Jn(T);var C=!(y[0]>S[1]||y[1]<S[0]||b[0]>T[1]||b[1]<T[0]),M=!C;f.setItemLayout(d,{points:v,allClipped:M});var D=f.getItemModel(d),L=D.getModel("itemStyle").getItemStyle(),E=D.get("z2"),R=Hg(l,"color");L.fill||(L.fill=R,ye(L.fill)&&(L.fill=Wp(L.fill,.4))),L.stroke||(L.stroke=R),f.setItemVisual(d,"style",L),f.setItemVisual(d,"z2",Ce(E,0))}),f.diff(D0(c).data).add(function(d){var v=f.getItemLayout(d),g=f.getItemVisual(d,"z2");if(!v.allClipped){var x=new Jr({z2:Ce(g,0),shape:{points:v.points}});f.setItemGraphicEl(d,x),c.group.add(x)}}).update(function(d,v){var g=D0(c).data.getItemGraphicEl(v),x=f.getItemLayout(d),y=f.getItemVisual(d,"z2");x.allClipped?g&&c.group.remove(g):(g?ot(g,{z2:Ce(y,0),shape:{points:x.points}},n,d):g=new Jr({shape:{points:x.points}}),f.setItemGraphicEl(d,g),c.group.add(g))}).remove(function(d){var v=D0(c).data.getItemGraphicEl(d);c.group.remove(v)}).execute(),f.eachItemGraphicEl(function(d,v){var g=f.getItemModel(v),x=f.getItemVisual(v,"style");d.useStyle(f.getItemVisual(v,"style")),Lr(d,_r(g),{labelFetcher:n,labelDataIndex:v,defaultText:f.getName(v)||"",inheritColor:ye(x.fill)?Wp(x.fill,1):ee.color.neutral99}),br(d,g),Ft(d,null,null,g.get(["emphasis","disabled"])),ze(d).dataModel=n}),D0(c).data=f,c.group.silent=n.get("silent")||t.get("silent")},e.type="markArea",e})(tN);function q1e(r,e,t){var n,a,i=["x0","y0","x1","y1"];if(r){var o=ce(r&&r.dimensions,function(u){var c=e.getData(),f=c.getDimensionInfo(c.mapDimension(u))||{};return ie(ie({},f),{name:u,ordinalMeta:null})});a=ce(i,function(u,c){return{name:u,type:o[c%2].type}}),n=new cn(a,t)}else a=[{name:"value",type:"float"}],n=new cn(a,t);var s=ce(t.get("data"),Ve(Y1e,e,r,t));r&&(s=ht(s,Ve(W1e,r)));var l=r?function(u,c,f,d){var v=u.coord[Math.floor(d/2)][d%2];return dl(v,a[d])}:function(u,c,f,d){return dl(u.value,a[d])};return n.initData(s,null,l),n.hasItemOption=!0,n}function Z1e(r){r.registerComponentModel(U1e),r.registerComponentView(X1e),r.registerPreprocessor(function(e){eN(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var $1e=function(r,e){if(e==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},UA=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,n,a){this.mergeDefaultAndTheme(t,a),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},e.prototype._updateSelector=function(t){var n=t.selector,a=this.ecModel;n===!0&&(n=t.selector=["all","inverse"]),ue(n)&&P(n,function(i,o){ye(i)&&(i={type:i}),n[o]=Fe(i,$1e(a,i.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var n=!1,a=0;a<t.length;a++){var i=t[a].get("name");if(this.isSelected(i)){this.select(i),n=!0;break}}!n&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var n=[],a=[];t.eachRawSeries(function(l){var u=l.name;a.push(u);var c;if(l.legendVisualProvider){var f=l.legendVisualProvider,d=f.getAllNames();t.isSeriesFiltered(l)||(a=a.concat(d)),d.length?n=n.concat(d):c=!0}else c=!0;c&&GM(l)&&n.push(l.name)}),this._availableNames=a;var i=this.get("data")||n,o=Te(),s=ce(i,function(l){return(ye(l)||it(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Je(l,this,this.ecModel))},this);this._data=ht(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var n=this.option.selected,a=this.get("selectedMode");if(a==="single"){var i=this._data;P(i,function(o){n[o.get("name")]=!1})}n[t]=!0},e.prototype.unSelect=function(t){this.get("selectedMode")!=="single"&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var n=this.option.selected;n.hasOwnProperty(t)||(n[t]=!0),this[n[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,n=this.option.selected;P(t,function(a){n[a.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var t=this._data,n=this.option.selected;P(t,function(a){var i=a.get("name",!0);n.hasOwnProperty(i)||(n[i]=!0),n[i]=!n[i]})},e.prototype.isSelected=function(t){var n=this.option.selected;return!(n.hasOwnProperty(t)&&!n[t])&&Ge(this._availableNames,t)>=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:ee.size.m,align:"auto",backgroundColor:ee.color.transparent,borderColor:ee.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:ee.color.disabled,inactiveBorderColor:ee.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:ee.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:ee.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:ee.color.tertiary,borderWidth:1,borderColor:ee.color.border},emphasis:{selectorLabel:{show:!0,color:ee.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e})($e),Bf=Ve,YA=P,L0=De,M9=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new L0),this.group.add(this._selectorGroup=new L0),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,n,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,t,n,a,l,s,u);var c=Sr(t,a).refContainer,f=t.getBoxLayoutParams(),d=t.get("padding"),v=Gt(f,c,d),g=this.layoutInner(t,o,v,i,l,u),x=Gt(Ne({width:g.width,height:g.height},f),c,d);this.group.x=x.x-g.x,this.group.y=x.y-g.y,this.group.markRedraw(),this.group.add(this._backgroundEl=p9(g,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,n,a,i,o,s,l){var u=this.getContentGroup(),c=Te(),f=n.get("selectedMode"),d=n.get("triggerEvent"),v=[];a.eachRawSeries(function(g){!g.get("legendHoverLink")&&v.push(g.id)}),YA(n.getData(),function(g,x){var y=this,b=g.get("name");if(!this.newlineDisabled&&(b===""||b===`
|
|
283
|
+
`)){var S=new L0;S.newline=!0,u.add(S);return}var T=a.getSeriesByName(b)[0];if(!c.get(b))if(T){var C=T.getData(),M=C.getVisual("legendLineStyle")||{},D=C.getVisual("legendIcon"),L=C.getVisual("style"),E=this._createItem(T,b,x,g,n,t,M,L,D,f,i);E.on("click",Bf(Fj,b,null,i,v)).on("mouseover",Bf(WA,T.name,null,i,v)).on("mouseout",Bf(XA,T.name,null,i,v)),a.ssr&&E.eachChild(function(R){var I=ze(R);I.seriesIndex=T.seriesIndex,I.dataIndex=x,I.ssrType="legend"}),d&&E.eachChild(function(R){y.packEventData(R,n,T,x,b)}),c.set(b,!0)}else a.eachRawSeries(function(R){var I=this;if(!c.get(b)&&R.legendVisualProvider){var k=R.legendVisualProvider;if(!k.containName(b))return;var z=k.indexOfName(b),O=k.getItemVisual(z,"style"),G=k.getItemVisual(z,"legendIcon"),F=un(O.fill);F&&F[3]===0&&(F[3]=.2,O=ie(ie({},O),{fill:La(F,"rgba")}));var B=this._createItem(R,b,x,g,n,t,{},O,G,f,i);B.on("click",Bf(Fj,null,b,i,v)).on("mouseover",Bf(WA,null,b,i,v)).on("mouseout",Bf(XA,null,b,i,v)),a.ssr&&B.eachChild(function(Y){var H=ze(Y);H.seriesIndex=R.seriesIndex,H.dataIndex=x,H.ssrType="legend"}),d&&B.eachChild(function(Y){I.packEventData(Y,n,R,x,b)}),c.set(b,!0)}},this)},this),o&&this._createSelector(o,n,i,s,l)},e.prototype.packEventData=function(t,n,a,i,o){var s={componentType:"legend",componentIndex:n.componentIndex,dataIndex:i,value:o,seriesIndex:a.seriesIndex};ze(t).eventData=s},e.prototype._createSelector=function(t,n,a,i,o){var s=this.getSelectorGroup();YA(t,function(u){var c=u.type,f=new at({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(f);var d=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);Lr(f,{normal:d,emphasis:v},{defaultText:u.title}),cl(f)})},e.prototype._createItem=function(t,n,a,i,o,s,l,u,c,f,d){var v=t.visualDrawType,g=o.get("itemWidth"),x=o.get("itemHeight"),y=o.isSelected(n),b=i.get("symbolRotate"),S=i.get("symbolKeepAspect"),T=i.get("icon");c=T||c||"roundRect";var C=K1e(c,i,l,u,v,y,d),M=new L0,D=i.getModel("textStyle");if(Ae(t.getLegendIcon)&&(!T||T==="inherit"))M.add(t.getLegendIcon({itemWidth:g,itemHeight:x,icon:c,iconRotate:b,itemStyle:C.itemStyle,lineStyle:C.lineStyle,symbolKeepAspect:S}));else{var L=T==="inherit"&&t.getData().getVisual("symbol")?b==="inherit"?t.getData().getVisual("symbolRotate"):b:0;M.add(Q1e({itemWidth:g,itemHeight:x,icon:c,iconRotate:L,itemStyle:C.itemStyle,symbolKeepAspect:S}))}var E=s==="left"?g+5:-5,R=s,I=o.get("formatter"),k=n;ye(I)&&I?k=I.replace("{name}",n??""):Ae(I)&&(k=I(n));var z=y?D.getTextColor():i.get("inactiveColor");M.add(new at({style:Mt(D,{text:k,x:E,y:x/2,fill:z,align:R,verticalAlign:"middle"},{inheritColor:z})}));var O=new We({shape:M.getBoundingRect(),style:{fill:"transparent"}}),G=i.getModel("tooltip");return G.get("show")&&rs({el:O,componentModel:o,itemName:n,itemTooltipOption:G.option}),M.add(O),M.eachChild(function(F){F.silent=!0}),O.silent=!f,this.getContentGroup().add(M),cl(M),M.__legendDataIndex=a,M},e.prototype.layoutInner=function(t,n,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();ec(t.get("orient"),l,t.get("itemGap"),a.width,a.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){ec("horizontal",u,t.get("selectorItemGap",!0));var d=u.getBoundingRect(),v=[-d.x,-d.y],g=t.get("selectorButtonGap",!0),x=t.getOrient().index,y=x===0?"width":"height",b=x===0?"height":"width",S=x===0?"y":"x";s==="end"?v[x]+=c[y]+g:f[x]+=d[y]+g,v[1-x]+=c[b]/2-d[b]/2,u.x=v[0],u.y=v[1],l.x=f[0],l.y=f[1];var T={x:0,y:0};return T[y]=c[y]+g+d[y],T[b]=Math.max(c[b],d[b]),T[S]=Math.min(0,d[S]+v[1-x]),T}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e})(Lt);function K1e(r,e,t,n,a,i,o){function s(y,b){y.lineWidth==="auto"&&(y.lineWidth=b.lineWidth>0?2:0),YA(y,function(S,T){y[T]==="inherit"&&(y[T]=b[T])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=r.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?n.decal:Ih(f,o),u.fill==="inherit"&&(u.fill=n[a]),u.stroke==="inherit"&&(u.stroke=n[c]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?n:t).opacity),s(u,n);var d=e.getModel("lineStyle"),v=d.getLineStyle();if(s(v,t),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),v.stroke==="auto"&&(v.stroke=n.fill),!i){var g=e.get("inactiveBorderWidth"),x=u[c];u.lineWidth=g==="auto"?n.lineWidth>0&&x?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),v.stroke=d.get("inactiveColor"),v.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function Q1e(r){var e=r.icon||"roundRect",t=lr(e,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return t.setStyle(r.itemStyle),t.rotation=(r.iconRotate||0)*Math.PI/180,t.setOrigin([r.itemWidth/2,r.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill=ee.color.neutral00,t.style.lineWidth=2),t}function Fj(r,e,t,n){XA(r,e,t,n),t.dispatchAction({type:"legendToggleSelect",name:r??e}),WA(r,e,t,n)}function D9(r){for(var e=r.getZr().storage.getDisplayList(),t,n=0,a=e.length;n<a&&!(t=e[n].states.emphasis);)n++;return t&&t.hoverLayer}function WA(r,e,t,n){D9(t)||t.dispatchAction({type:"highlight",seriesName:r,name:e,excludeSeriesId:n})}function XA(r,e,t,n){D9(t)||t.dispatchAction({type:"downplay",seriesName:r,name:e,excludeSeriesId:n})}function J1e(r){var e=r.findComponents({mainType:"legend"});e&&e.length&&r.filterSeries(function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0})}function Xv(r,e,t){var n=r==="allSelect"||r==="inverseSelect",a={},i=[];t.eachComponent({mainType:"legend",query:e},function(s){n?s[r]():s[r](e.name),Uj(s,a),i.push(s.componentIndex)});var o={};return t.eachComponent("legend",function(s){P(a,function(l,u){s[l?"select":"unSelect"](u)}),Uj(s,o)}),n?{selected:o,legendIndex:i}:{name:e.name,selected:o}}function Uj(r,e){var t=e||{};return P(r.getData(),function(n){var a=n.get("name");if(!(a===`
|
|
284
|
+
`||a==="")){var i=r.isSelected(a);Se(t,a)?t[a]=t[a]&&i:t[a]=i}}),t}function ebe(r){r.registerAction("legendToggleSelect","legendselectchanged",Ve(Xv,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",Ve(Xv,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",Ve(Xv,"inverseSelect")),r.registerAction("legendSelect","legendselected",Ve(Xv,"select")),r.registerAction("legendUnSelect","legendunselected",Ve(Xv,"unSelect"))}function L9(r){r.registerComponentModel(UA),r.registerComponentView(M9),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,J1e),r.registerSubTypeDefaulter("legend",function(){return"plain"}),ebe(r)}var tbe=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(t,n,a){var i=Sc(t);r.prototype.init.call(this,t,n,a),Yj(this,t,i)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.call(this,t,n),Yj(this,this.option,t)},e.type="legend.scroll",e.defaultOption=Dl(UA.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:ee.color.accent50,pageIconInactiveColor:ee.color.accent10,pageIconSize:15,pageTextStyle:{color:ee.color.tertiary},animationDurationUpdate:800}),e})(UA);function Yj(r,e,t){var n=r.getOrient(),a=[1,1];a[n.index]=0,Wi(e,t,{type:"box",ignoreSize:!!a})}var Wj=De,n2=["width","height"],a2=["x","y"],rbe=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!0,t._currentIndex=0,t}return e.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new Wj),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Wj)},e.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(t,n,a,i,o,s,l){var u=this;r.prototype.renderInner.call(this,t,n,a,i,o,s,l);var c=this._controllerGroup,f=n.get("pageIconSize",!0),d=ue(f)?f:[f,f];g("pagePrev",0);var v=n.getModel("pageTextStyle");c.add(new at({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),g("pageNext",1);function g(x,y){var b=x+"DataIndex",S=Jh(n.get("pageIcons",!0)[n.getOrient().name][y],{onclick:xe(u._pageGo,u,b,n,i)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});S.name=x,c.add(S)}},e.prototype.layoutInner=function(t,n,a,i,o,s){var l=this.getSelectorGroup(),u=t.getOrient().index,c=n2[u],f=a2[u],d=n2[1-u],v=a2[1-u];o&&ec("horizontal",l,t.get("selectorItemGap",!0));var g=t.get("selectorButtonGap",!0),x=l.getBoundingRect(),y=[-x.x,-x.y],b=Me(a);o&&(b[c]=a[c]-x[c]-g);var S=this._layoutContentAndController(t,i,b,u,c,d,v,f);if(o){if(s==="end")y[u]+=S[c]+g;else{var T=x[c]+g;y[u]-=T,S[f]-=T}S[c]+=x[c]+g,y[1-u]+=S[v]+S[d]/2-x[d]/2,S[d]=Math.max(S[d],x[d]),S[v]=Math.min(S[v],x[v]+y[1-u]),l.x=y[0],l.y=y[1],l.markRedraw()}return S},e.prototype._layoutContentAndController=function(t,n,a,i,o,s,l,u){var c=this.getContentGroup(),f=this._containerGroup,d=this._controllerGroup;ec(t.get("orient"),c,t.get("itemGap"),i?a.width:null,i?null:a.height),ec("horizontal",d,t.get("pageButtonItemGap",!0));var v=c.getBoundingRect(),g=d.getBoundingRect(),x=this._showController=v[o]>a[o],y=[-v.x,-v.y];n||(y[i]=c[u]);var b=[0,0],S=[-g.x,-g.y],T=Ce(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(x){var C=t.get("pageButtonPosition",!0);C==="end"?S[i]+=a[o]-g[o]:b[i]+=g[o]+T}S[1-i]+=v[s]/2-g[s]/2,c.setPosition(y),f.setPosition(b),d.setPosition(S);var M={x:0,y:0};if(M[o]=x?a[o]:v[o],M[s]=Math.max(v[s],g[s]),M[l]=Math.min(0,g[l]+S[1-i]),f.__rectSize=a[o],x){var D={x:0,y:0};D[o]=Math.max(a[o]-g[o]-T,0),D[s]=M[s],f.setClipPath(new We({shape:D})),f.__rectSize=D[o]}else d.eachChild(function(E){E.attr({invisible:!0,silent:!0})});var L=this._getPageInfo(t);return L.pageIndex!=null&&ot(c,{x:L.contentPosition[0],y:L.contentPosition[1]},x?t:null),this._updatePageInfoView(t,L),M},e.prototype._pageGo=function(t,n,a){var i=this._getPageInfo(n)[t];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},e.prototype._updatePageInfoView=function(t,n){var a=this._controllerGroup;P(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",d=n[f]!=null,v=a.childOfName(c);v&&(v.setStyle("fill",d?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),v.cursor=d?"pointer":"default")});var i=a.childOfName("pageText"),o=t.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;i&&o&&i.setStyle("text",ye(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var n=t.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=t.getOrient().index,s=n2[o],l=a2[o],u=this._findTargetItemIndex(n),c=a.children(),f=c[u],d=c.length,v=d?1:0,g={contentPosition:[a.x,a.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return g;var x=C(f);g.contentPosition[o]=-x.s;for(var y=u+1,b=x,S=x,T=null;y<=d;++y)T=C(c[y]),(!T&&S.e>b.s+i||T&&!M(T,b.s))&&(S.i>b.i?b=S:b=T,b&&(g.pageNextDataIndex==null&&(g.pageNextDataIndex=b.i),++g.pageCount)),S=T;for(var y=u-1,b=x,S=x,T=null;y>=-1;--y)T=C(c[y]),(!T||!M(S,T.s))&&b.i<S.i&&(S=b,g.pagePrevDataIndex==null&&(g.pagePrevDataIndex=b.i),++g.pageCount,++g.pageIndex),b=T;return g;function C(D){if(D){var L=D.getBoundingRect(),E=L[l]+D[l];return{s:E,e:E+L[s],i:D.__legendDataIndex}}}function M(D,L){return D.e>=L&&D.s<=L+i}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var n,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===t&&(n=s)}),n??i},e.type="legend.scroll",e})(M9);function nbe(r){r.registerAction("legendScroll","legendscroll",function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(a){a.setScrollDataIndex(n)})})}function abe(r){Ue(L9),r.registerComponentModel(tbe),r.registerComponentView(rbe),nbe(r)}function ibe(r){Ue(L9),Ue(abe)}var obe=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=Dl(mg.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e})(mg),rN=Ke();function sbe(r,e,t){rN(r).coordSysRecordMap.each(function(n){var a=n.dataZoomInfoMap.get(e.uid);a&&(a.getRange=t)})}function lbe(r,e){for(var t=rN(r).coordSysRecordMap,n=t.keys(),a=0;a<n.length;a++){var i=n[a],o=t.get(i),s=o.dataZoomInfoMap;if(s){var l=e.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||N9(t,o))}}}function N9(r,e){if(e){r.removeKey(e.model.uid);var t=e.controller;t&&t.dispose()}}function ube(r,e){var t={model:e,containsPoint:Ve(fbe,e),dispatchAction:Ve(cbe,r),dataZoomInfoMap:null,controller:null},n=t.controller=new Ac(r.getZr());return P(["pan","zoom","scrollMove"],function(a){n.on(a,function(i){var o=[];t.dataZoomInfoMap.each(function(s){if(i.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[a],u=l&&l(s.dzReferCoordSysInfo,t.model.mainType,t.controller,i);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&t.dispatchAction(o)})}),t}function cbe(r,e){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function fbe(r,e,t,n){return r.coordinateSystem.containPoint([t,n])}function hbe(r,e,t){var n,a="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0;return r.each(function(s){var l=s.model,u=l.get("disabled",!0)?!1:l.get("zoomLock",!0)?"move":!0;i[a+u]>i[a+n]&&(n=u),o=o&&l.get("preventDefaultMouseMove",!0)}),{controlType:n,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o,api:t,zInfo:{component:e.model},triggerInfo:{roamTrigger:null,isInSelf:e.containsPoint}}}}function dbe(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(e,t){var n=rN(t),a=n.coordSysRecordMap||(n.coordSysRecordMap=Te());a.each(function(i){i.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=h9(i);P(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,ube(t,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=Te());c.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),a.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){N9(a,i);return}var c=hbe(l,i,t);o.enable(c.controlType,c.opt),id(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var vbe=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,n,a){if(r.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),sbe(a,t,{pan:xe(i2.pan,this),zoom:xe(i2.zoom,this),scrollMove:xe(i2.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){lbe(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e})(qL),i2={zoom:function(r,e,t,n){var a=this.range,i=a.slice(),o=r.axisModels[0];if(o){var s=o2[e](null,[n.originX,n.originY],o,t,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/n.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(_l(0,i,[0,100],0,c.minSpan,c.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:Xj(function(r,e,t,n,a,i){var o=o2[n]([i.oldX,i.oldY],[i.newX,i.newY],e,a,t);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:Xj(function(r,e,t,n,a,i){var o=o2[n]([0,0],[i.scrollDelta,i.scrollDelta],e,a,t);return o.signal*(r[1]-r[0])*i.scrollDelta})};function Xj(r){return function(e,t,n,a){var i=this.range,o=i.slice(),s=e.axisModels[0];if(s){var l=r(o,s,e,t,n,a);if(_l(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var o2={grid:function(r,e,t,n,a){var i=t.axis,o={},s=a.model.coordinateSystem.getRect();return r=r||[0,0],i.dim==="x"?(o.pixel=e[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(r,e,t,n,a){var i=t.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(r,e,t,n,a){var i=t.axis,o=a.model.coordinateSystem.getRect(),s={};return r=r||[0,0],i.orient==="horizontal"?(s.pixel=e[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=e[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};function R9(r){ZL(r),r.registerComponentModel(obe),r.registerComponentView(vbe),dbe(r)}var pbe=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=Dl(mg.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:ee.color.accent10,borderRadius:0,backgroundColor:ee.color.transparent,dataBackground:{lineStyle:{color:ee.color.accent30,width:.5},areaStyle:{color:ee.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:ee.color.accent40,width:.5},areaStyle:{color:ee.color.accent20,opacity:.3}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:ee.color.neutral00,borderColor:ee.color.accent20},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:ee.color.accent40,opacity:.5},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:ee.color.tertiary},brushSelect:!0,brushStyle:{color:ee.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:ee.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),e})(mg),qv=We,gbe=1,s2=30,mbe=7,Zv="horizontal",qj="vertical",ybe=5,xbe=["line","bar","candlestick","scatter"],bbe={easing:"cubicOut",duration:100,delay:0},_be=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,n){this.api=n,this._onBrush=xe(this._onBrush,this),this._onBrushEnd=xe(this._onBrushEnd,this)},e.prototype.render=function(t,n,a,i){if(r.prototype.render.apply(this,arguments),id(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){rg(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new De;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(n),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,n=this.api,a=t.get("brushSelect"),i=a?mbe:0,o=Sr(t,n).refContainer,s=this._findCoordRect(),l=t.get("defaultLocationEdgeGap",!0)||0,u=this._orient===Zv?{right:o.width-s.x-s.width,top:o.height-s2-l-i,width:s.width,height:s2}:{right:l,top:s.y,width:s2,height:s.height},c=Sc(t.option);P(["right","top","width","height"],function(d){c[d]==="ph"&&(c[d]=u[d])});var f=Gt(c,o);this._location={x:f.x,y:f.y},this._size=[f.width,f.height],this._orient===qj&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,n=this._location,a=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===Zv&&!o?{scaleY:l?1:-1,scaleX:1}:a===Zv&&o?{scaleY:l?1:-1,scaleX:-1}:a===qj&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]);t.x=n.x-u.x,t.y=n.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,n=this._size,a=this._displayables.sliderGroup,i=t.get("brushSelect");a.add(new qv({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new qv({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:xe(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),a.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var n=this._size,a=this._shadowSize||[],i=t.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==a[0]||n[1]!==a[1]){var f=o.getDataExtent(t.thisDim),d=o.getDataExtent(l),v=(d[1]-d[0])*.3;d=[d[0]-v,d[1]+v];var g=[0,n[1]],x=[0,n[0]],y=[[n[0],0],[0,0]],b=[],S=x[1]/Math.max(1,o.count()-1),T=n[0]/(f[1]-f[0]),C=t.thisAxis.type==="time",M=-S,D=Math.round(o.count()/n[0]),L;o.each([t.thisDim,l],function(z,O,G){if(D>0&&G%D){C||(M+=S);return}M=C?(+z-f[0])*T:M+S;var F=O==null||isNaN(O)||O==="",B=F?0:vt(O,d,g,!0);F&&!L&&G?(y.push([y[y.length-1][0],0]),b.push([b[b.length-1][0],0])):!F&&L&&(y.push([M,0]),b.push([M,0])),F||(y.push([M,B]),b.push([M,B])),L=F}),u=this._shadowPolygonPts=y,c=this._shadowPolylinePts=b}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var E=this.dataZoomModel;function R(z){var O=E.getModel(z?"selectedDataBackground":"dataBackground"),G=new De,F=new Jr({shape:{points:u},segmentIgnoreThreshold:1,style:O.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),B=new Vr({shape:{points:c},segmentIgnoreThreshold:1,style:O.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return G.add(F),G.add(B),G}for(var I=0;I<3;I++){var k=R(I===1);this._displayables.sliderGroup.add(k),this._displayables.dataShadowSegs.push(k)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,n=t.get("showDataShadow");if(n!==!1){var a,i=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();P(l,function(u){if(!a&&!(n!==!0&&Ge(xbe,u.get("type"))<0)){var c=i.getComponent(al(o),s).axis,f=Sbe(o),d,v=u.coordinateSystem;f!=null&&v.getOtherAxis&&(d=v.getOtherAxis(c).inverse),f=u.getData().mapDimension(f);var g=u.getData().mapDimension(o);a={thisAxis:c,series:u,thisDim:g,otherDim:f,otherAxisInverse:d}}},this)},this),a}},e.prototype._renderHandle=function(){var t=this.group,n=this._displayables,a=n.handles=[null,null],i=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,f=l.get("brushSelect"),d=n.filler=new qv({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(d),o.add(new qv({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:gbe,fill:ee.color.transparent}})),P([0,1],function(T){var C=l.get("handleIcon");!Bx[C]&&C.indexOf("path://")<0&&C.indexOf("image://")<0&&(C="path://"+C);var M=lr(C,-1,0,2,2,null,!0);M.attr({cursor:wbe(this._orient),draggable:!0,drift:xe(this._onDragMove,this,T),ondragend:xe(this._onDragEnd,this),onmouseover:xe(this._showDataInfo,this,!0),onmouseout:xe(this._showDataInfo,this,!1),z2:5});var D=M.getBoundingRect(),L=l.get("handleSize");this._handleHeight=me(L,this._size[1]),this._handleWidth=D.width/D.height*this._handleHeight,M.setStyle(l.getModel("handleStyle").getItemStyle()),M.style.strokeNoScale=!0,M.rectHover=!0,M.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),cl(M);var E=l.get("handleColor");E!=null&&(M.style.fill=E),o.add(a[T]=M);var R=l.getModel("textStyle"),I=l.get("handleLabel")||{},k=I.show||!1;t.add(i[T]=new at({silent:!0,invisible:!k,style:Mt(R,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:R.getTextColor(),font:R.getFont()}),z2:10}))},this);var v=d;if(f){var g=me(l.get("moveHandleSize"),s[1]),x=n.moveHandle=new We({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:g}}),y=g*.8,b=n.moveHandleIcon=lr(l.get("moveHandleIcon"),-y/2,-y/2,y,y,ee.color.neutral00,!0);b.silent=!0,b.y=s[1]+g/2-.5,x.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var S=Math.min(s[1]/2,Math.max(g,10));v=n.moveZone=new We({invisible:!0,shape:{y:s[1]-S,height:g+S}}),v.on("mouseover",function(){u.enterEmphasis(x)}).on("mouseout",function(){u.leaveEmphasis(x)}),o.add(x),o.add(b),o.add(v)}v.attr({draggable:!0,cursor:"default",drift:xe(this._onDragMove,this,"all"),ondragstart:xe(this._showDataInfo,this,!0),ondragend:xe(this._onDragEnd,this),onmouseover:xe(this._showDataInfo,this,!0),onmouseout:xe(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[vt(t[0],[0,100],n,!0),vt(t[1],[0,100],n,!0)]},e.prototype._updateInterval=function(t,n){var a=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];_l(n,i,o,a.get("zoomLock")?"all":t,s.minSpan!=null?vt(s.minSpan,l,o,!0):null,s.maxSpan!=null?vt(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=Jn([vt(i[0],o,l,!0),vt(i[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},e.prototype._updateView=function(t){var n=this._displayables,a=this._handleEnds,i=Jn(a.slice()),o=this._size;P([0,1],function(v){var g=n.handles[v],x=this._handleHeight;g.attr({scaleX:x/2,scaleY:x/2,x:a[v]+(v?-1:1),y:o[1]/2-x/2})},this),n.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.dataShadowSegs,u=[0,i[0],i[1],o[0]],c=0;c<l.length;c++){var f=l[c],d=f.getClipPath();d||(d=new We,f.setClipPath(d)),d.setShape({x:u[c],y:0,width:u[c+1]-u[c],height:o[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var n=this.dataZoomModel,a=this._displayables,i=a.handleLabels,o=this._orient,s=["",""];if(n.get("showDetail")){var l=n.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,c=this._range,f=t?l.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(f[0],u),this._formatLabel(f[1],u)]}}var d=Jn(this._handleEnds.slice());v.call(this,0),v.call(this,1);function v(g){var x=fl(a.handles[g].parent,this.group),y=K1(g===0?"right":"left",x),b=this._handleWidth/2+ybe,S=Ja([d[g]+(g===0?-b:b),this._size[1]/2],x);i[g].setStyle({x:S[0],y:S[1],verticalAlign:o===Zv?"middle":y,align:o===Zv?y:"center",text:s[g]})}},e.prototype._formatLabel=function(t,n){var a=this.dataZoomModel,i=a.get("labelFormatter"),o=a.get("labelPrecision");(o==null||o==="auto")&&(o=n.getPixelPrecision());var s=t==null||isNaN(t)?"":n.type==="category"||n.type==="time"?n.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(o,20));return Ae(i)?i(t,s):ye(i)?i.replace("{value}",s):s},e.prototype._showDataInfo=function(t){var n=this.dataZoomModel.get("handleLabel")||{},a=n.show||!1,i=this.dataZoomModel.getModel(["emphasis","handleLabel"]),o=i.get("show")||!1,s=t||this._dragging?o:a,l=this._displayables,u=l.handleLabels;u[0].attr("invisible",!s),u[1].attr("invisible",!s),l.moveHandle&&this.api[s?"enterEmphasis":"leaveEmphasis"](l.moveHandle,1)},e.prototype._onDragMove=function(t,n,a,i){this._dragging=!0,Wo(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=Ja([n,a],o,!0),l=this._updateInterval(t,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var t=this.dataZoomModel.get("realtime");!t&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var n=this._size,a=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(a[0]<0||a[0]>n[0]||a[1]<0||a[1]>n[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var n=t.offsetX,a=t.offsetY;this._brushStart=new Ie(n,a),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var a=n.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),s=[0,100],l=this._handleEnds=[a.x,a.x+a.width],u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();_l(0,l,o,0,u.minSpan!=null?vt(u.minSpan,s,o,!0):null,u.maxSpan!=null?vt(u.maxSpan,s,o,!0):null),this._range=Jn([vt(l[0],o,s,!0),vt(l[1],o,s,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(Wo(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,n){var a=this._displayables,i=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new qv({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,n),c=l.transformCoordToLocal(s.x,s.y),f=this._size;u[0]=Math.max(Math.min(f[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:f[1]})},e.prototype._dispatchZoomAction=function(t){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?bbe:null,start:n[0],end:n[1]})},e.prototype._findCoordRect=function(){var t,n=h9(this.dataZoomModel).infoList;if(!t&&n.length){var a=n[0].model.coordinateSystem;t=a.getRect&&a.getRect()}if(!t){var i=this.api.getWidth(),o=this.api.getHeight();t={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return t},e.type="dataZoom.slider",e})(qL);function Sbe(r){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[r]}function wbe(r){return r==="vertical"?"ns-resize":"ew-resize"}function E9(r){r.registerComponentModel(pbe),r.registerComponentView(_be),ZL(r)}function Tbe(r){Ue(R9),Ue(E9)}var I9={get:function(r,e,t){var n=Me((Cbe[r]||{})[e]);return t&&ue(n)?n[n.length-1]:n}},Cbe={color:{active:["#006edd","#e0ffff"],inactive:[ee.color.transparent]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},Zj=Dr.mapVisual,Abe=Dr.eachVisual,Mbe=ue,$j=P,Dbe=Jn,Lbe=vt,x1=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,n,a){this.mergeDefaultAndTheme(t,a)},e.prototype.optionUpdated=function(t,n){var a=this.option;!n&&S9(a,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var n=this.stateList;t=xe(t,this),this.controllerVisuals=GA(this.option.controller,n,t),this.targetVisuals=GA(this.option.target,n,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesId,n=this.option.seriesIndex;n==null&&t==null&&(n="all");var a=qh(this.ecModel,"series",{index:n,id:t},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return ce(a,function(i){return i.componentIndex})},e.prototype.eachTargetSeries=function(t,n){P(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&t.call(n,i)},this)},e.prototype.isTargetSeries=function(t){var n=!1;return this.eachTargetSeries(function(a){a===t&&(n=!0)}),n},e.prototype.formatValueText=function(t,n,a){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;a=a||["<",">"],ue(t)&&(t=t.slice(),u=!0);var c=n?t:u?[f(t[0]),f(t[1])]:f(t);if(ye(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(Ae(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?a[0]+" "+c[1]:t[1]===s[1]?a[1]+" "+c[0]:c[0]+" - "+c[1];return c;function f(d){return d===s[0]?"min":d===s[1]?"max":(+d).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,n=Dbe([t.min,t.max]);this._dataExtent=n},e.prototype.getDataDimensionIndex=function(t){var n=this.option.dimension;if(n!=null)return t.getDimensionIndex(n);for(var a=t.dimensions,i=a.length-1;i>=0;i--){var o=a[i],s=t.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,n=this.option,a={inRange:n.inRange,outOfRange:n.outOfRange},i=n.target||(n.target={}),o=n.controller||(n.controller={});Fe(i,a),Fe(o,a);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),c.call(this,o);function l(f){Mbe(n.color)&&!f.inRange&&(f.inRange={color:n.color.slice().reverse()}),f.inRange=f.inRange||{color:t.get("gradientColor")}}function u(f,d,v){var g=f[d],x=f[v];g&&!x&&(x=f[v]={},$j(g,function(y,b){if(Dr.isValidType(b)){var S=I9.get(b,"inactive",s);S!=null&&(x[b]=S,b==="color"&&!x.hasOwnProperty("opacity")&&!x.hasOwnProperty("colorAlpha")&&(x.opacity=[0,0]))}}))}function c(f){var d=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,v=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,g=this.get("inactiveColor"),x=this.getItemSymbol(),y=x||"roundRect";$j(this.stateList,function(b){var S=this.itemSize,T=f[b];T||(T=f[b]={color:s?g:[g]}),T.symbol==null&&(T.symbol=d&&Me(d)||(s?y:[y])),T.symbolSize==null&&(T.symbolSize=v&&Me(v)||(s?S[0]:[S[0],S[0]])),T.symbol=Zj(T.symbol,function(D){return D==="none"?y:D});var C=T.symbolSize;if(C!=null){var M=-1/0;Abe(C,function(D){D>M&&(M=D)}),T.symbolSize=Zj(C,function(D){return Lbe(D,[0,M],[0,S[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:ee.color.transparent,borderColor:ee.color.borderTint,contentColor:ee.color.theme[0],inactiveColor:ee.color.disabled,borderWidth:0,padding:ee.size.m,textGap:10,precision:0,textStyle:{color:ee.color.secondary}},e})($e),Kj=[20,140],Nbe=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=Kj[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=Kj[1])},e.prototype._resetRange=function(){var t=this.getExtent(),n=this.option.range;!n||n.auto?(t.auto=1,this.option.range=t):ue(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],t[0]),n[1]=Math.min(n[1],t[1]))},e.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),P(this.stateList,function(t){var n=this.option.controller[t].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),n=Jn((this.get("range")||[]).slice());return n[0]>t[1]&&(n[0]=t[1]),n[1]>t[1]&&(n[1]=t[1]),n[0]<t[0]&&(n[0]=t[0]),n[1]<t[0]&&(n[1]=t[0]),n},e.prototype.getValueState=function(t){var n=this.option.range,a=this.getExtent(),i=Ce(this.option.unboundedRange,!0);return(i&&n[0]<=a[0]||n[0]<=t)&&(i&&n[1]>=a[1]||t<=n[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var n=[];return this.eachTargetSeries(function(a){var i=[],o=a.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&i.push(l)},this),n.push({seriesId:a.id,dataIndex:i})},this),n},e.prototype.getVisualMeta=function(t){var n=Qj(this,"outOfRange",this.getExtent()),a=Qj(this,"inRange",this.option.range.slice()),i=[];function o(v,g){i.push({value:v,color:t(v,g)})}for(var s=0,l=0,u=a.length,c=n.length;l<c&&(!a.length||n[l]<=a[0]);l++)n[l]<a[s]&&o(n[l],"outOfRange");for(var f=1;s<u;s++,f=0)f&&i.length&&o(a[s],"outOfRange"),o(a[s],"inRange");for(var f=1;l<c;l++)(!a.length||a[a.length-1]<n[l])&&(f&&(i.length&&o(i[i.length-1].value,"outOfRange"),f=0),o(n[l],"outOfRange"));var d=i.length;return{stops:i,outerColors:[d?i[0].color:"transparent",d?i[d-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=Dl(x1.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:ee.color.neutral00,borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:ee.color.neutral00,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:ee.color.shadow}}),e})(x1);function Qj(r,e,t){if(t[0]===t[1])return t.slice();for(var n=200,a=(t[1]-t[0])/n,i=t[0],o=[],s=0;s<=n&&i<t[1];s++)o.push(i),i+=a;return o.push(t[1]),o}var k9=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.autoPositionValues={left:1,right:1,top:1,bottom:1},t}return e.prototype.init=function(t,n){this.ecModel=t,this.api=n},e.prototype.render=function(t,n,a,i){if(this.visualMapModel=t,t.get("show")===!1){this.group.removeAll();return}this.doRender(t,n,a,i)},e.prototype.renderBackground=function(t){var n=this.visualMapModel,a=rd(n.get("padding")||0),i=t.getBoundingRect();t.add(new We({z2:-1,silent:!0,shape:{x:i.x-a[3],y:i.y-a[0],width:i.width+a[3]+a[1],height:i.height+a[0]+a[2]},style:{fill:n.get("backgroundColor"),stroke:n.get("borderColor"),lineWidth:n.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,n,a){a=a||{};var i=a.forceState,o=this.visualMapModel,s={};if(n==="color"){var l=o.get("contentColor");s.color=l}function u(v){return s[v]}function c(v,g){s[v]=g}var f=o.controllerVisuals[i||o.getValueState(t)],d=Dr.prepareVisualTypes(f);return P(d,function(v){var g=f[v];a.convertOpacityToAlpha&&v==="opacity"&&(v="colorAlpha",g=f.__alphaForOpacity),Dr.dependsOn(v,n)&&g&&g.applyVisual(t,u,c)}),s[n]},e.prototype.positionGroup=function(t){var n=this.visualMapModel,a=this.api,i=Sr(n,a).refContainer;eb(t,n.getBoxLayoutParams(),i)},e.prototype.doRender=function(t,n,a,i){},e.type="visualMap",e})(Lt),Jj=[["left","right","width"],["top","bottom","height"]];function O9(r,e,t){var n=r.option,a=n.align;if(a!=null&&a!=="auto")return a;for(var i={width:e.getWidth(),height:e.getHeight()},o=n.orient==="horizontal"?1:0,s=Jj[o],l=[0,null,10],u={},c=0;c<3;c++)u[Jj[1-o][c]]=l[c],u[s[c]]=c===2?t[0]:n[s[c]];var f=[["x","width",3],["y","height",0]][o],d=Gt(u,i,n.padding);return s[(d.margin[f[2]]||0)+d[f[0]]+d[f[1]]*.5<i[f[1]]*.5?0:1]}function nx(r,e){return P(r||[],function(t){t.dataIndex!=null&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")}),r}var Si=vt,Rbe=P,e4=Math.min,l2=Math.max,Ebe=12,Ibe=6,kbe=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._shapes={},t._dataInterval=[],t._handleEnds=[],t._hoverLinkDataIndices=[],t}return e.prototype.init=function(t,n){r.prototype.init.call(this,t,n),this._hoverLinkFromSeriesMouseOver=xe(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=xe(this._hideIndicator,this)},e.prototype.doRender=function(t,n,a,i){(!i||i.type!=="selectDataRange"||i.from!==this.uid)&&this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,n=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(n);var a=t.get("text");this._renderEndsText(n,a,0),this._renderEndsText(n,a,1),this._updateView(!0),this.renderBackground(n),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(n)},e.prototype._renderEndsText=function(t,n,a){if(n){var i=n[1-a];i=i!=null?i+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,c=this._applyTransform([l[0]/2,a===0?-s:l[1]+s],u),f=this._applyTransform(a===0?"bottom":"top",u),d=this._orient,v=this.visualMapModel.textStyleModel;this.group.add(new at({style:Mt(v,{x:c[0],y:c[1],verticalAlign:v.get("verticalAlign")||(d==="horizontal"?"middle":f),align:v.get("align")||(d==="horizontal"?f:"center"),text:i})}))}},e.prototype._renderBar=function(t){var n=this.visualMapModel,a=this._shapes,i=n.itemSize,o=this._orient,s=this._useHandle,l=O9(n,this.api,i),u=a.mainGroup=this._createBarGroup(l),c=new De;u.add(c),c.add(a.outOfRange=t4()),c.add(a.inRange=t4(null,s?n4(this._orient):null,xe(this._dragHandle,this,"all",!1),xe(this._dragHandle,this,"all",!0))),c.setClipPath(new We({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var f=n.textStyleModel.getTextRect("国"),d=l2(f.width,f.height);s&&(a.handleThumbs=[],a.handleLabels=[],a.handleLabelPoints=[],this._createHandle(n,u,0,i,d,o),this._createHandle(n,u,1,i,d,o)),this._createIndicator(n,u,i,d,o),t.add(u)},e.prototype._createHandle=function(t,n,a,i,o,s){var l=xe(this._dragHandle,this,a,!1),u=xe(this._dragHandle,this,a,!0),c=ai(t.get("handleSize"),i[0]),f=lr(t.get("handleIcon"),-c/2,-c/2,c,c,null,!0),d=n4(this._orient);f.attr({cursor:d,draggable:!0,drift:l,ondragend:u,onmousemove:function(b){Wo(b.event)}}),f.x=i[0]/2,f.useStyle(t.getModel("handleStyle").getItemStyle()),f.setStyle({strokeNoScale:!0,strokeFirst:!0}),f.style.lineWidth*=2,f.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),Pu(f,!0),n.add(f);var v=this.visualMapModel.textStyleModel,g=new at({cursor:d,draggable:!0,drift:l,onmousemove:function(b){Wo(b.event)},ondragend:u,style:Mt(v,{x:0,y:0,text:""})});g.ensureState("blur").style={opacity:.1},g.stateTransition={duration:200},this.group.add(g);var x=[c,0],y=this._shapes;y.handleThumbs[a]=f,y.handleLabelPoints[a]=x,y.handleLabels[a]=g},e.prototype._createIndicator=function(t,n,a,i,o){var s=ai(t.get("indicatorSize"),a[0]),l=lr(t.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:a[0]/2});var u=t.getModel("indicatorStyle").getItemStyle();if(l instanceof Nr){var c=l.style;l.useStyle(ie({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},u))}else l.useStyle(u);n.add(l);var f=this.visualMapModel.textStyleModel,d=new at({silent:!0,invisible:!0,style:Mt(f,{x:0,y:0,text:""})});this.group.add(d);var v=[(o==="horizontal"?i/2:Ibe)+a[0]/2,0],g=this._shapes;g.indicator=l,g.indicatorLabel=d,g.indicatorLabelPoint=v,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,n,a,i){if(this._useHandle){if(this._dragging=!n,!n){var o=this._applyTransform([a,i],this._shapes.mainGroup,!0);this._updateInterval(t,o[1]),this._hideIndicator(),this._updateView()}n===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),n?!this._hovering&&this._clearHoverLinkToSeries():r4(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,n=this._dataInterval=t.getSelected(),a=t.getExtent(),i=[0,t.itemSize[1]];this._handleEnds=[Si(n[0],a,i,!0),Si(n[1],a,i,!0)]},e.prototype._updateInterval=function(t,n){n=n||0;var a=this.visualMapModel,i=this._handleEnds,o=[0,a.itemSize[1]];_l(n,i,o,t,0);var s=a.getExtent();this._dataInterval=[Si(i[0],o,s,!0),Si(i[1],o,s,!0)]},e.prototype._updateView=function(t){var n=this.visualMapModel,a=n.getExtent(),i=this._shapes,o=[0,n.itemSize[1]],s=t?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,a,s,"inRange"),u=this._createBarVisual(a,a,o,"outOfRange");i.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),i.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},e.prototype._createBarVisual=function(t,n,a,i){var o={forceState:i,convertOpacityToAlpha:!0},s=this._makeColorGradient(t,o),l=[this.getControllerVisual(t[0],"symbolSize",o),this.getControllerVisual(t[1],"symbolSize",o)],u=this._createBarPoints(a,l);return{barColor:new bc(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},e.prototype._makeColorGradient=function(t,n){var a=100,i=[],o=(t[1]-t[0])/a;i.push({color:this.getControllerVisual(t[0],"color",n),offset:0});for(var s=1;s<a;s++){var l=t[0]+o*s;if(l>t[1])break;i.push({color:this.getControllerVisual(l,"color",n),offset:s/a})}return i.push({color:this.getControllerVisual(t[1],"color",n),offset:1}),i},e.prototype._createBarPoints=function(t,n){var a=this.visualMapModel.itemSize;return[[a[0]-n[0],t[0]],[a[0],t[0]],[a[0],t[1]],[a[0]-n[1],t[1]]]},e.prototype._createBarGroup=function(t){var n=this._orient,a=this.visualMapModel.get("inverse");return new De(n==="horizontal"&&!a?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&a?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!a?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,n){if(this._useHandle){var a=this._shapes,i=this.visualMapModel,o=a.handleThumbs,s=a.handleLabels,l=i.itemSize,u=i.getExtent(),c=this._applyTransform("left",a.mainGroup);Rbe([0,1],function(f){var d=o[f];d.setStyle("fill",n.handlesColor[f]),d.y=t[f];var v=Si(t[f],[0,l[1]],u,!0),g=this.getControllerVisual(v,"symbolSize");d.scaleX=d.scaleY=g/l[0],d.x=l[0]-g/2;var x=Ja(a.handleLabelPoints[f],fl(d,this.group));if(this._orient==="horizontal"){var y=c==="left"||c==="top"?(l[0]-g)/2:(l[0]-g)/-2;x[1]+=y}s[f].setStyle({x:x[0],y:x[1],text:i.formatValueText(this._dataInterval[f]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,n,a,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,f=c.indicator;if(f){f.attr("invisible",!1);var d={convertOpacityToAlpha:!0},v=this.getControllerVisual(t,"color",d),g=this.getControllerVisual(t,"symbolSize"),x=Si(t,s,u,!0),y=l[0]-g/2,b={x:f.x,y:f.y};f.y=x,f.x=y;var S=Ja(c.indicatorLabelPoint,fl(f,this.group)),T=c.indicatorLabel;T.attr("invisible",!1);var C=this._applyTransform("left",c.mainGroup),M=this._orient,D=M==="horizontal";T.setStyle({text:(a||"")+o.formatValueText(n),verticalAlign:D?C:"middle",align:D?"center":C});var L={x:y,y:x,style:{fill:v}},E={style:{x:S[0],y:S[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var R={duration:100,easing:"cubicInOut",additive:!0};f.x=b.x,f.y=b.y,f.animateTo(L,R),T.animateTo(E,R)}else f.attr(L),T.attr(E);this._firstShowIndicator=!1;var I=this._shapes.handleLabels;if(I)for(var k=0;k<I.length;k++)this.api.enterBlur(I[k])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",function(n){if(t._hovering=!0,!t._dragging){var a=t.visualMapModel.itemSize,i=t._applyTransform([n.offsetX,n.offsetY],t._shapes.mainGroup,!0,!0);i[1]=e4(l2(0,i[1]),a[1]),t._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=a[0])}}).on("mouseout",function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()})},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,n){var a=this.visualMapModel,i=a.itemSize;if(a.option.hoverLink){var o=[0,i[1]],s=a.getExtent();t=e4(l2(o[0],t),o[1]);var l=Obe(a,s,o),u=[t-l,t+l],c=Si(t,o,s,!0),f=[Si(u[0],o,s,!0),Si(u[1],o,s,!0)];u[0]<o[0]&&(f[0]=-1/0),u[1]>o[1]&&(f[1]=1/0),n&&(f[0]===-1/0?this._showIndicator(c,f[1],"< ",l):f[1]===1/0?this._showIndicator(c,f[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var d=this._hoverLinkDataIndices,v=[];(n||r4(a))&&(v=this._hoverLinkDataIndices=a.findTargetDataIndices(f));var g=vre(d,v);this._dispatchHighDown("downplay",nx(g[0],a)),this._dispatchHighDown("highlight",nx(g[1],a))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var n;if(Bu(t.target,function(l){var u=ze(l);if(u.dataIndex!=null)return n=u,!0},!0),!!n){var a=this.ecModel.getSeriesByIndex(n.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(a)){var o=a.getData(n.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),n.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var a=0;a<n.length;a++)this.api.leaveBlur(n[a])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",nx(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,n,a,i){var o=fl(n,i?null:this.group);return ue(t)?Ja(t,o,a):K1(t,o,a)},e.prototype._dispatchHighDown=function(t,n){n&&n.length&&this.api.dispatchAction({type:t,batch:n})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e})(k9);function t4(r,e,t,n){return new Jr({shape:{points:r},draggable:!!t,cursor:e,drift:t,onmousemove:function(a){Wo(a.event)},ondragend:n})}function Obe(r,e,t){var n=Ebe/2,a=r.get("hoverLinkDataSize");return a&&(n=Si(a,e,t,!0)/2),n}function r4(r){var e=r.get("hoverLinkOnHandle");return!!(e??r.get("realtime"))}function n4(r){return r==="vertical"?"ns-resize":"ew-resize"}var Pbe={type:"selectDataRange",event:"dataRangeSelected",update:"update"},zbe=function(r,e){e.eachComponent({mainType:"visualMap",query:r},function(t){t.setSelected(r.selected)})},Bbe=[{createOnAllSeries:!0,reset:function(r,e){var t=[];return e.eachComponent("visualMap",function(n){var a=r.pipelineContext;!n.isTargetSeries(r)||a&&a.large||t.push(i1e(n.stateList,n.targetVisuals,xe(n.getValueState,n),n.getDataDimensionIndex(r.getData())))}),t}},{createOnAllSeries:!0,reset:function(r,e){var t=r.getData(),n=[];e.eachComponent("visualMap",function(a){if(a.isTargetSeries(r)){var i=a.getVisualMeta(xe(jbe,null,r,a))||{stops:[],outerColors:[]},o=a.getDataDimensionIndex(t);o>=0&&(i.dimension=o,n.push(i))}}),r.getData().setVisual("visualMeta",n)}}];function jbe(r,e,t,n){for(var a=e.targetVisuals[n],i=Dr.prepareVisualTypes(a),o={color:Hg(r.getData(),"color")},s=0,l=i.length;s<l;s++){var u=i[s],c=a[u==="opacity"?"__alphaForOpacity":u];c&&c.applyVisual(t,f,d)}return o.color;function f(v){return o[v]}function d(v,g){o[v]=g}}var a4=P;function Vbe(r){var e=r&&r.visualMap;ue(e)||(e=e?[e]:[]),a4(e,function(t){if(t){jf(t,"splitList")&&!jf(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var n=t.pieces;n&&ue(n)&&a4(n,function(a){Re(a)&&(jf(a,"start")&&!jf(a,"min")&&(a.min=a.start),jf(a,"end")&&!jf(a,"max")&&(a.max=a.end))})}})}function jf(r,e){return r&&r.hasOwnProperty&&r.hasOwnProperty(e)}var i4=!1;function P9(r){i4||(i4=!0,r.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),r.registerAction(Pbe,zbe),P(Bbe,function(e){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,e)}),r.registerPreprocessor(Vbe))}function z9(r){r.registerComponentModel(Nbe),r.registerComponentView(kbe),P9(r)}var Gbe=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],Hbe[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var i=this.option.categories;this.resetVisual(function(o,s){a==="categories"?(o.mappingMethod="category",o.categories=Me(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=ce(this._pieceList,function(l){return l=Me(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,n={},a=Dr.listVisualTypes(),i=this.isCategory();P(t.pieces,function(s){P(a,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),P(n,function(s,l){var u=!1;P(this.stateList,function(c){u=u||o(t,c,l)||o(t.target,c,l)},this),!u&&P(this.stateList,function(c){(t[c]||(t[c]={}))[l]=I9.get(l,c==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,n){var a=this.option,i=this._pieceList,o=(n?a:t).selected||{};if(a.selected=o,P(i,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),a.selectedMode==="single"){var s=!1;P(i,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=Me(t)},e.prototype.getValueState=function(t){var n=Dr.findPieceIndex(t,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var n=[],a=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=Dr.findPieceIndex(l,a);c===t&&o.push(u)},this),n.push({seriesId:i.id,dataIndex:o})},this),n},e.prototype.getRepresentValue=function(t){var n;if(this.isCategory())n=t.value;else if(t.value!=null)n=t.value;else{var a=t.interval||[];n=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return n},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var n=[],a=["",""],i=this;function o(c,f){var d=i.getRepresentValue({interval:c});f||(f=i.getValueState(d));var v=t(d,f);c[0]===-1/0?a[0]=v:c[1]===1/0?a[1]=v:n.push({value:c[0],color:v},{value:c[1],color:v})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return P(s,function(c){var f=c.interval;f&&(f[0]>u&&o([u,f[0]],"outOfRange"),o(f.slice()),u=f[1])},this),{stops:n,outerColors:a}},e.type="visualMap.piecewise",e.defaultOption=Dl(x1.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e})(x1),Hbe={splitNumber:function(r){var e=this.option,t=Math.min(e.precision,20),n=this.getExtent(),a=e.splitNumber;a=Math.max(parseInt(a,10),1),e.splitNumber=a;for(var i=(n[1]-n[0])/a;+i.toFixed(t)!==i&&t<5;)t++;e.precision=t,i=+i.toFixed(t),e.minOpen&&r.push({interval:[-1/0,n[0]],close:[0,0]});for(var o=0,s=n[0];o<a;s+=i,o++){var l=o===a-1?n[1]:s+i;r.push({interval:[s,l],close:[1,1]})}e.maxOpen&&r.push({interval:[n[1],1/0],close:[0,0]}),hC(r),P(r,function(u,c){u.index=c,u.text=this.formatValueText(u.interval)},this)},categories:function(r){var e=this.option;P(e.categories,function(t){r.push({text:this.formatValueText(t,!0),value:t})},this),o4(e,r)},pieces:function(r){var e=this.option;P(e.pieces,function(t,n){Re(t)||(t={value:t});var a={text:"",index:n};if(t.label!=null&&(a.text=t.label),t.hasOwnProperty("value")){var i=a.value=t.value;a.interval=[i,i],a.close=[1,1]}else{for(var o=a.interval=[],s=a.close=[0,0],l=[1,0,1],u=[-1/0,1/0],c=[],f=0;f<2;f++){for(var d=[["gte","gt","min"],["lte","lt","max"]][f],v=0;v<3&&o[f]==null;v++)o[f]=t[d[v]],s[f]=l[v],c[f]=v===2;o[f]==null&&(o[f]=u[f])}c[0]&&o[1]===1/0&&(s[0]=0),c[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(a.value=o[0])}a.visual=Dr.retrieveVisuals(t),r.push(a)},this),o4(e,r),hC(r),P(r,function(t){var n=t.close,a=[["<","≤"][n[1]],[">","≥"][n[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,a)},this)}};function o4(r,e){var t=r.inverse;(r.orient==="vertical"?!t:t)&&e.reverse()}var Fbe=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var n=this.visualMapModel,a=n.get("textGap"),i=n.textStyleModel,o=this._getItemAlign(),s=n.itemSize,l=this._getViewData(),u=l.endsText,c=jr(n.get("showLabel",!0),!u),f=!n.get("selectedMode");u&&this._renderEndsText(t,u[0],s,c,o),P(l.viewPieceList,function(d){var v=d.piece,g=new De;g.onclick=xe(this._onItemClick,this,v),this._enableHoverLink(g,d.indexInModelPieceList);var x=n.getRepresentValue(v);if(this._createItemSymbol(g,x,[0,0,s[0],s[1]],f),c){var y=this.visualMapModel.getValueState(x),b=i.get("align")||o;g.add(new at({style:Mt(i,{x:b==="right"?-a:s[0]+a,y:s[1]/2,text:v.text,verticalAlign:i.get("verticalAlign")||"middle",align:b,opacity:Ce(i.get("opacity"),y==="outOfRange"?.5:1)}),silent:f}))}t.add(g)},this),u&&this._renderEndsText(t,u[1],s,c,o),ec(n.get("orient"),t,n.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,n){var a=this;t.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=a.visualMapModel;s.option.hoverLink&&a.api.dispatchAction({type:o,batch:nx(s.findTargetDataIndices(n),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,n=t.option;if(n.orient==="vertical")return O9(t,this.api,t.itemSize);var a=n.align;return(!a||a==="auto")&&(a="left"),a},e.prototype._renderEndsText=function(t,n,a,i,o){if(n){var s=new De,l=this.visualMapModel.textStyleModel;s.add(new at({style:Mt(l,{x:i?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:i?o:"center",text:n})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,n=ce(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),a=t.get("text"),i=t.get("orient"),o=t.get("inverse");return(i==="horizontal"?o:!o)?n.reverse():a&&(a=a.slice().reverse()),{viewPieceList:n,endsText:a}},e.prototype._createItemSymbol=function(t,n,a,i){var o=lr(this.getControllerVisual(n,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(n,"color"));o.silent=i,t.add(o)},e.prototype._onItemClick=function(t){var n=this.visualMapModel,a=n.option,i=a.selectedMode;if(i){var o=Me(a.selected),s=n.getSelectedMapKey(t);i==="single"||i===!0?(o[s]=!0,P(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e})(k9);function B9(r){r.registerComponentModel(Gbe),r.registerComponentView(Fbe),P9(r)}function Ube(r){Ue(z9),Ue(B9)}var Ybe=(function(){function r(e){this._thumbnailModel=e}return r.prototype.reset=function(e){this._renderVersion=e.getMainProcessVersion()},r.prototype.renderContent=function(e){var t=e.api.getViewOfComponentModel(this._thumbnailModel);t&&(e.group.silent=!0,t.renderContent({group:e.group,targetTrans:e.targetTrans,z2Range:lH(e.group),roamType:e.roamType,viewportRect:e.viewportRect,renderVersion:this._renderVersion}))},r.prototype.updateWindow=function(e,t){var n=t.getViewOfComponentModel(this._thumbnailModel);n&&n.updateWindow({targetTrans:e,renderVersion:this._renderVersion})},r})(),Wbe=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventAutoZ=!0,t}return e.prototype.optionUpdated=function(t,n){this._updateBridge()},e.prototype._updateBridge=function(){var t=this._birdge=this._birdge||new Ybe(this);if(this._target=null,this.ecModel.eachSeries(function(a){Rz(a,null)}),this.shouldShow()){var n=this.getTarget();Rz(n.baseMapProvider,t)}},e.prototype.shouldShow=function(){return this.getShallow("show",!0)},e.prototype.getBridge=function(){return this._birdge},e.prototype.getTarget=function(){if(this._target)return this._target;var t=this.getReferringComponents("series",{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];return t?t.subType!=="graph"&&(t=null):t=this.ecModel.queryComponents({mainType:"series",subType:"graph"})[0],this._target={baseMapProvider:t},this._target},e.type="thumbnail",e.layoutMode="box",e.dependencies=["series","geo"],e.defaultOption={show:!0,right:1,bottom:1,height:"25%",width:"25%",itemStyle:{borderColor:ee.color.border,borderWidth:2},windowStyle:{borderWidth:1,color:ee.color.neutral30,borderColor:ee.color.neutral40,opacity:.3},z:10},e})($e),Xbe=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){if(this._api=a,this._model=t,this._coordSys||(this._coordSys=new Mc),!this._isEnabled()){this._clear();return}this._renderVersion=a.getMainProcessVersion();var i=this.group;i.removeAll();var o=t.getModel("itemStyle"),s=o.getItemStyle();s.fill==null&&(s.fill=n.get("backgroundColor")||ee.color.neutral00);var l=Sr(t,a).refContainer,u=Gt(DH(t,!0),l),c=s.lineWidth||0,f=this._contentRect=fc(u.clone(),c/2,!0,!0),d=new De;i.add(d),d.setClipPath(new We({shape:f.plain()}));var v=this._targetGroup=new De;d.add(v);var g=u.plain();g.r=o.getShallow("borderRadius",!0),i.add(this._bgRect=new We({style:s,shape:g,silent:!1,cursor:"grab"}));var x=t.getModel("windowStyle"),y=x.getShallow("borderRadius",!0);d.add(this._windowRect=new We({shape:{x:0,y:0,width:0,height:0,r:y},style:x.getItemStyle(),silent:!1,cursor:"grab"})),this._dealRenderContent(),this._dealUpdateWindow(),l4(t,this)},e.prototype.renderContent=function(t){this._bridgeRendered=t,this._isEnabled()&&(this._dealRenderContent(),this._dealUpdateWindow(),l4(this._model,this))},e.prototype._dealRenderContent=function(){var t=this._bridgeRendered;if(!(!t||t.renderVersion!==this._renderVersion)){var n=this._targetGroup,a=this._coordSys,i=this._contentRect;if(n.removeAll(),!!t){var o=t.group,s=o.getBoundingRect();n.add(o),this._bgRect.z2=t.z2Range.min-10,a.setBoundingRect(s.x,s.y,s.width,s.height);var l=Gt({left:"center",top:"center",aspect:s.width/s.height},i);a.setViewRect(l.x,l.y,l.width,l.height),o.attr(a.getTransformInfo().raw),this._windowRect.z2=t.z2Range.max+10,this._resetRoamController(t.roamType)}}},e.prototype.updateWindow=function(t){var n=this._bridgeRendered;n&&n.renderVersion===t.renderVersion&&(n.targetTrans=t.targetTrans),this._isEnabled()&&this._dealUpdateWindow()},e.prototype._dealUpdateWindow=function(){var t=this._bridgeRendered;if(!(!t||t.renderVersion!==this._renderVersion)){var n=Ea([],t.targetTrans),a=Ka([],this._coordSys.transform,n);this._transThisToTarget=Ea([],a);var i=t.viewportRect;i?i=i.clone():i=new ke(0,0,this._api.getWidth(),this._api.getHeight()),i.applyTransform(a);var o=this._windowRect,s=o.shape.r;o.setShape(Ne({r:s},i))}},e.prototype._resetRoamController=function(t){var n=this,a=this._api,i=this._roamController;if(i||(i=this._roamController=new Ac(a.getZr())),!t||!this._isEnabled()){i.disable();return}i.enable(t,{api:a,zInfo:{component:this._model},triggerInfo:{roamTrigger:null,isInSelf:function(o,s,l){return n._contentRect.contain(s,l)}}}),i.off("pan").off("zoom").on("pan",xe(this._onPan,this)).on("zoom",xe(this._onZoom,this))},e.prototype._onPan=function(t){var n=this._transThisToTarget;if(!(!this._isEnabled()||!n)){var a=Kt([],[t.oldX,t.oldY],n),i=Kt([],[t.oldX-t.dx,t.oldY-t.dy],n);this._api.dispatchAction(s4(this._model.getTarget().baseMapProvider,{dx:i[0]-a[0],dy:i[1]-a[1]}))}},e.prototype._onZoom=function(t){var n=this._transThisToTarget;if(!(!this._isEnabled()||!n)){var a=Kt([],[t.originX,t.originY],n);this._api.dispatchAction(s4(this._model.getTarget().baseMapProvider,{zoom:1/t.scale,originX:a[0],originY:a[1]}))}},e.prototype._isEnabled=function(){var t=this._model;if(!t||!t.shouldShow())return!1;var n=t.getTarget().baseMapProvider;return!!n},e.prototype._clear=function(){this.group.removeAll(),this._bridgeRendered=null,this._roamController&&this._roamController.disable()},e.prototype.remove=function(){this._clear()},e.prototype.dispose=function(){this._clear()},e.type="thumbnail",e})(Lt);function s4(r,e){var t=r.mainType==="series"?r.subType+"Roam":r.mainType+"Roam",n={type:t};return n[r.mainType+"Id"]=r.id,ie(n,e),n}function l4(r,e){var t=hc(r);Q1(e.group,t.z,t.zlevel)}function qbe(r){r.registerComponentModel(Wbe),r.registerComponentView(Xbe)}var Zbe={label:{enabled:!0},decal:{show:!1}},u4=Ke(),$be={};function Kbe(r,e){var t=r.getModel("aria");if(!t.get("enabled"))return;var n=Me(Zbe);Fe(n.label,r.getLocaleModel().get("aria"),!1),Fe(t.option,n,!1),a(),i();function a(){var u=t.getModel("decal"),c=u.get("show");if(c){var f=Te();r.eachSeries(function(d){if(!d.isColorBySeries()){var v=f.get(d.type);v||(v={},f.set(d.type,v)),u4(d).scope=v}}),r.eachRawSeries(function(d){if(r.isSeriesFiltered(d))return;if(Ae(d.enableAriaDecal)){d.enableAriaDecal();return}var v=d.getData();if(d.isColorBySeries()){var S=IC(d.ecModel,d.name,$be,r.getSeriesCount()),T=v.getVisual("decal");v.setVisual("decal",C(T,S))}else{var g=d.getRawData(),x={},y=u4(d).scope;v.each(function(M){var D=v.getRawIndex(M);x[D]=M});var b=g.count();g.each(function(M){var D=x[M],L=g.getName(M)||M+"",E=IC(d.ecModel,L,y,b),R=v.getItemVisual(D,"decal");v.setItemVisual(D,"decal",C(R,E))})}function C(M,D){var L=M?ie(ie({},D),M):D;return L.dirty=!0,L}})}}function i(){var u=e.getZr().dom;if(u){var c=r.getLocaleModel().get("aria"),f=t.getModel("label");if(f.option=Ne(f.option,c),!!f.get("enabled")){if(u.setAttribute("role","img"),f.get("description")){u.setAttribute("aria-label",f.get("description"));return}var d=r.getSeriesCount(),v=f.get(["data","maxCount"])||10,g=f.get(["series","maxCount"])||10,x=Math.min(d,g),y;if(!(d<1)){var b=s();if(b){var S=f.get(["general","withTitle"]);y=o(S,{title:b})}else y=f.get(["general","withoutTitle"]);var T=[],C=d>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);y+=o(C,{seriesCount:d}),r.eachSeries(function(E,R){if(R<x){var I=void 0,k=E.get("name"),z=k?"withName":"withoutName";I=d>1?f.get(["series","multiple",z]):f.get(["series","single",z]),I=o(I,{seriesId:E.seriesIndex,seriesName:E.get("name"),seriesType:l(E.subType)});var O=E.getData();if(O.count()>v){var G=f.get(["data","partialData"]);I+=o(G,{displayCnt:v})}else I+=f.get(["data","allData"]);for(var F=f.get(["data","separator","middle"]),B=f.get(["data","separator","end"]),Y=f.get(["data","excludeDimensionId"]),H=[],X=0;X<O.count();X++)if(X<v){var V=O.getName(X),W=Y?ht(O.getValues(X),function(te,le){return Ge(Y,le)===-1}):O.getValues(X),$=f.get(["data",V?"withName":"withoutName"]);H.push(o($,{name:V,value:W.join(F)}))}I+=H.join(F)+B,T.push(I)}});var M=f.getModel(["series","multiple","separator"]),D=M.get("middle"),L=M.get("end");y+=T.join(D)+L,u.setAttribute("aria-label",y)}}}}function o(u,c){if(!ye(u))return u;var f=u;return P(c,function(d,v){f=f.replace(new RegExp("\\{\\s*"+v+"\\s*\\}","g"),d)}),f}function s(){var u=r.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){var c=r.getLocaleModel().get(["series","typeNames"]);return c[u]||c.chart}}function Qbe(r){if(!(!r||!r.aria)){var e=r.aria;e.show!=null&&(e.enabled=e.show),e.label=e.label||{},P(["description","general","series","data"],function(t){e[t]!=null&&(e.label[t]=e[t])})}}function Jbe(r){r.registerPreprocessor(Qbe),r.registerVisual(r.PRIORITY.VISUAL.ARIA,Kbe)}var c4={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},e_e=(function(){function r(e){var t=this._condVal=ye(e)?new RegExp(e):EG(e)?e:null;if(t==null){var n="";pt(n)}}return r.prototype.evaluate=function(e){var t=typeof e;return ye(t)?this._condVal.test(e):it(t)?this._condVal.test(e+""):!1},r})(),t_e=(function(){function r(){}return r.prototype.evaluate=function(){return this.value},r})(),r_e=(function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},r})(),n_e=(function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},r})(),a_e=(function(){function r(){}return r.prototype.evaluate=function(){return!this.child.evaluate()},r})(),i_e=(function(){function r(){}return r.prototype.evaluate=function(){for(var e=!!this.valueParser,t=this.getValue,n=t(this.valueGetterParam),a=e?this.valueParser(n):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(e?a:n))return!1;return!0},r})();function nN(r,e){if(r===!0||r===!1){var t=new t_e;return t.value=r,t}var n="";return j9(r)||pt(n),r.and?f4("and",r,e):r.or?f4("or",r,e):r.not?o_e(r,e):s_e(r,e)}function f4(r,e,t){var n=e[r],a="";ue(n)||pt(a),n.length||pt(a);var i=r==="and"?new r_e:new n_e;return i.children=ce(n,function(o){return nN(o,t)}),i.children.length||pt(a),i}function o_e(r,e){var t=r.not,n="";j9(t)||pt(n);var a=new a_e;return a.child=nN(t,e),a.child||pt(n),a}function s_e(r,e){for(var t="",n=e.prepareGetValue(r),a=[],i=nt(r),o=r.parser,s=o?$H(o):null,l=0;l<i.length;l++){var u=i[l];if(!(u==="parser"||e.valueGetterAttrMap.get(u))){var c=Se(c4,u)?c4[u]:u,f=r[u],d=s?s(f):f,v=Mie(c,d)||c==="reg"&&new e_e(d);v||pt(t),a.push(v)}}a.length||pt(t);var g=new i_e;return g.valueGetterParam=n,g.valueParser=s,g.getValue=e.getValue,g.subCondList=a,g}function j9(r){return Re(r)&&!$r(r)}var l_e=(function(){function r(e,t){this._cond=nN(e,t)}return r.prototype.evaluate=function(){return this._cond.evaluate()},r})();function u_e(r,e){return new l_e(r,e)}var c_e={type:"echarts:filter",transform:function(r){for(var e=r.upstream,t,n=u_e(r.config,{valueGetterAttrMap:Te({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;Se(s,"dimension")||pt(l);var c=e.getDimensionInfo(u);return c||pt(l),{dimIdx:c.index}},getValue:function(s){return e.retrieveValueFromItem(t,s.dimIdx)}}),a=[],i=0,o=e.count();i<o;i++)t=e.getRawDataItem(i),n.evaluate()&&a.push(t);return{data:a}}},f_e={type:"echarts:sort",transform:function(r){var e=r.upstream,t=r.config,n="",a=Dt(t);a.length||pt(n);var i=[];P(a,function(c){var f=c.dimension,d=c.order,v=c.parser,g=c.incomparable;if(f==null&&pt(n),d!=="asc"&&d!=="desc"&&pt(n),g&&g!=="min"&&g!=="max"){var x="";pt(x)}if(d!=="asc"&&d!=="desc"){var y="";pt(y)}var b=e.getDimensionInfo(f);b||pt(n);var S=v?$H(v):null;v&&!S&&pt(n),i.push({dimIdx:b.index,parser:S,comparator:new QH(d,g)})});var o=e.sourceFormat;o!==Gr&&o!==ia&&pt(n);for(var s=[],l=0,u=e.count();l<u;l++)s.push(e.getRawDataItem(l));return s.sort(function(c,f){for(var d=0;d<i.length;d++){var v=i[d],g=e.retrieveValueFromItem(c,v.dimIdx),x=e.retrieveValueFromItem(f,v.dimIdx);v.parser&&(g=v.parser(g),x=v.parser(x));var y=v.comparator.evaluate(g,x);if(y!==0)return y}return 0}),{data:s}}};function h_e(r){r.registerTransform(c_e),r.registerTransform(f_e)}var d_e=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.prototype.init=function(t,n,a){r.prototype.init.call(this,t,n,a),this._sourceManager=new r8(this),FP(this)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.call(this,t,n),FP(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:ei},e})($e),v_e=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.type="dataset",e})(Lt);function p_e(r){r.registerComponentModel(d_e),r.registerComponentView(v_e)}var bi=Yi.CMD;function eh(r,e){return Math.abs(r-e)<1e-5}function qA(r){var e=r.data,t=r.len(),n=[],a,i=0,o=0,s=0,l=0;function u(O,G){a&&a.length>2&&n.push(a),a=[O,G]}function c(O,G,F,B){eh(O,F)&&eh(G,B)||a.push(O,G,F,B,F,B)}function f(O,G,F,B,Y,H){var X=Math.abs(G-O),V=Math.tan(X/4)*4/3,W=G<O?-1:1,$=Math.cos(O),te=Math.sin(O),le=Math.cos(G),ge=Math.sin(G),we=$*Y+F,de=te*H+B,ve=le*Y+F,be=ge*H+B,Oe=Y*V*W,_e=H*V*W;a.push(we-Oe*te,de+_e*$,ve+Oe*ge,be-_e*le,ve,be)}for(var d,v,g,x,y=0;y<t;){var b=e[y++],S=y===1;switch(S&&(i=e[y],o=e[y+1],s=i,l=o,(b===bi.L||b===bi.C||b===bi.Q)&&(a=[s,l])),b){case bi.M:i=s=e[y++],o=l=e[y++],u(s,l);break;case bi.L:d=e[y++],v=e[y++],c(i,o,d,v),i=d,o=v;break;case bi.C:a.push(e[y++],e[y++],e[y++],e[y++],i=e[y++],o=e[y++]);break;case bi.Q:d=e[y++],v=e[y++],g=e[y++],x=e[y++],a.push(i+2/3*(d-i),o+2/3*(v-o),g+2/3*(d-g),x+2/3*(v-x),g,x),i=g,o=x;break;case bi.A:var T=e[y++],C=e[y++],M=e[y++],D=e[y++],L=e[y++],E=e[y++]+L;y+=1;var R=!e[y++];d=Math.cos(L)*M+T,v=Math.sin(L)*D+C,S?(s=d,l=v,u(s,l)):c(i,o,d,v),i=Math.cos(E)*M+T,o=Math.sin(E)*D+C;for(var I=(R?-1:1)*Math.PI/2,k=L;R?k>E:k<E;k+=I){var z=R?Math.max(k+I,E):Math.min(k+I,E);f(k,z,T,C,M,D)}break;case bi.R:s=i=e[y++],l=o=e[y++],d=s+e[y++],v=l+e[y++],u(d,l),c(d,l,d,v),c(d,v,s,v),c(s,v,s,l),c(s,l,d,l);break;case bi.Z:a&&c(i,o,s,l),i=s,o=l;break}}return a&&a.length>2&&n.push(a),n}function ZA(r,e,t,n,a,i,o,s,l,u){if(eh(r,t)&&eh(e,n)&&eh(a,o)&&eh(i,s)){l.push(o,s);return}var c=2/u,f=c*c,d=o-r,v=s-e,g=Math.sqrt(d*d+v*v);d/=g,v/=g;var x=t-r,y=n-e,b=a-o,S=i-s,T=x*x+y*y,C=b*b+S*S;if(T<f&&C<f){l.push(o,s);return}var M=d*x+v*y,D=-d*b-v*S,L=T-M*M,E=C-D*D;if(L<f&&M>=0&&E<f&&D>=0){l.push(o,s);return}var R=[],I=[];yl(r,t,a,o,.5,R),yl(e,n,i,s,.5,I),ZA(R[0],I[0],R[1],I[1],R[2],I[2],R[3],I[3],l,u),ZA(R[4],I[4],R[5],I[5],R[6],I[6],R[7],I[7],l,u)}function g_e(r,e){var t=qA(r),n=[];e=e||1;for(var a=0;a<t.length;a++){var i=t[a],o=[],s=i[0],l=i[1];o.push(s,l);for(var u=2;u<i.length;){var c=i[u++],f=i[u++],d=i[u++],v=i[u++],g=i[u++],x=i[u++];ZA(s,l,c,f,d,v,g,x,o,e),s=g,l=x}n.push(o)}return n}function V9(r,e,t){var n=r[e],a=r[1-e],i=Math.abs(n/a),o=Math.ceil(Math.sqrt(i*t)),s=Math.floor(t/o);s===0&&(s=1,o=t);for(var l=[],u=0;u<o;u++)l.push(s);var c=o*s,f=t-c;if(f>0)for(var u=0;u<f;u++)l[u%o]+=1;return l}function h4(r,e,t){for(var n=r.r0,a=r.r,i=r.startAngle,o=r.endAngle,s=Math.abs(o-i),l=s*a,u=a-n,c=l>Math.abs(u),f=V9([l,u],c?0:1,e),d=(c?s:u)/f.length,v=0;v<f.length;v++)for(var g=(c?u:s)/f[v],x=0;x<f[v];x++){var y={};c?(y.startAngle=i+d*v,y.endAngle=i+d*(v+1),y.r0=n+g*x,y.r=n+g*(x+1)):(y.startAngle=i+g*x,y.endAngle=i+g*(x+1),y.r0=n+d*v,y.r=n+d*(v+1)),y.clockwise=r.clockwise,y.cx=r.cx,y.cy=r.cy,t.push(y)}}function m_e(r,e,t){for(var n=r.width,a=r.height,i=n>a,o=V9([n,a],i?0:1,e),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",c=i?"y":"x",f=r[s]/o.length,d=0;d<o.length;d++)for(var v=r[l]/o[d],g=0;g<o[d];g++){var x={};x[u]=d*f,x[c]=g*v,x[s]=f,x[l]=v,x.x+=r.x,x.y+=r.y,t.push(x)}}function d4(r,e,t,n){return r*n-t*e}function y_e(r,e,t,n,a,i,o,s){var l=t-r,u=n-e,c=o-a,f=s-i,d=d4(c,f,l,u);if(Math.abs(d)<1e-6)return null;var v=r-a,g=e-i,x=d4(v,g,c,f)/d;return x<0||x>1?null:new Ie(x*l+r,x*u+e)}function x_e(r,e,t){var n=new Ie;Ie.sub(n,t,e),n.normalize();var a=new Ie;Ie.sub(a,r,e);var i=a.dot(n);return i}function Vf(r,e){var t=r[r.length-1];t&&t[0]===e[0]&&t[1]===e[1]||r.push(e)}function b_e(r,e,t){for(var n=r.length,a=[],i=0;i<n;i++){var o=r[i],s=r[(i+1)%n],l=y_e(o[0],o[1],s[0],s[1],e.x,e.y,t.x,t.y);l&&a.push({projPt:x_e(l,e,t),pt:l,idx:i})}if(a.length<2)return[{points:r},{points:r}];a.sort(function(y,b){return y.projPt-b.projPt});var u=a[0],c=a[a.length-1];if(c.idx<u.idx){var f=u;u=c,c=f}for(var d=[u.pt.x,u.pt.y],v=[c.pt.x,c.pt.y],g=[d],x=[v],i=u.idx+1;i<=c.idx;i++)Vf(g,r[i].slice());Vf(g,v),Vf(g,d);for(var i=c.idx+1;i<=u.idx+n;i++)Vf(x,r[i%n].slice());return Vf(x,d),Vf(x,v),[{points:g},{points:x}]}function v4(r){var e=r.points,t=[],n=[];W1(e,t,n);var a=new ke(t[0],t[1],n[0]-t[0],n[1]-t[1]),i=a.width,o=a.height,s=a.x,l=a.y,u=new Ie,c=new Ie;return i>o?(u.x=c.x=s+i/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+i),b_e(e,u,c)}function b1(r,e,t,n){if(t===1)n.push(e);else{var a=Math.floor(t/2),i=r(e);b1(r,i[0],a,n),b1(r,i[1],t-a,n)}return n}function __e(r,e){for(var t=[],n=0;n<e;n++)t.push(QM(r));return t}function S_e(r,e){e.setStyle(r.style),e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel}function w_e(r){for(var e=[],t=0;t<r.length;)e.push([r[t++],r[t++]]);return e}function T_e(r,e){var t=[],n=r.shape,a;switch(r.type){case"rect":m_e(n,e,t),a=We;break;case"sector":h4(n,e,t),a=Qr;break;case"circle":h4({r0:0,r:n.r,startAngle:0,endAngle:Math.PI*2,cx:n.cx,cy:n.cy},e,t),a=Qr;break;default:var i=r.getComputedTransform(),o=i?Math.sqrt(Math.max(i[0]*i[0]+i[1]*i[1],i[2]*i[2]+i[3]*i[3])):1,s=ce(g_e(r.getUpdatedPathProxy(),o),function(b){return w_e(b)}),l=s.length;if(l===0)b1(v4,{points:s[0]},e,t);else if(l===e)for(var u=0;u<l;u++)t.push({points:s[u]});else{var c=0,f=ce(s,function(b){var S=[],T=[];W1(b,S,T);var C=(T[1]-S[1])*(T[0]-S[0]);return c+=C,{poly:b,area:C}});f.sort(function(b,S){return S.area-b.area});for(var d=e,u=0;u<l;u++){var v=f[u];if(d<=0)break;var g=u===l-1?d:Math.ceil(v.area/c*e);g<0||(b1(v4,{points:v.poly},g,t),d-=g)}}a=Jr;break}if(!a)return __e(r,e);for(var x=[],u=0;u<t.length;u++){var y=new a;y.setShape(t[u]),S_e(r,y),x.push(y)}return x}function C_e(r,e){var t=r.length,n=e.length;if(t===n)return[r,e];for(var a=[],i=[],o=t<n?r:e,s=Math.min(t,n),l=Math.abs(n-t)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,f=[o[0],o[1]],d=l,v=2;v<s;){var g=o[v-2],x=o[v-1],y=o[v++],b=o[v++],S=o[v++],T=o[v++],C=o[v++],M=o[v++];if(d<=0){f.push(y,b,S,T,C,M);continue}for(var D=Math.min(d,c-1)+1,L=1;L<=D;L++){var E=L/D;yl(g,y,S,C,E,a),yl(x,b,T,M,E,i),g=a[3],x=i[3],f.push(a[1],i[1],a[2],i[2],g,x),y=a[5],b=i[5],S=a[6],T=i[6]}d-=D-1}return o===r?[f,e]:[r,f]}function p4(r,e){for(var t=r.length,n=r[t-2],a=r[t-1],i=[],o=0;o<e.length;)i[o++]=n,i[o++]=a;return i}function A_e(r,e){for(var t,n,a,i=[],o=[],s=0;s<Math.max(r.length,e.length);s++){var l=r[s],u=e[s],c=void 0,f=void 0;l?u?(t=C_e(l,u),c=t[0],f=t[1],n=c,a=f):(f=p4(a||l,l),c=l):(c=p4(n||u,u),f=u),i.push(c),o.push(f)}return[i,o]}function g4(r){for(var e=0,t=0,n=0,a=r.length,i=0,o=a-2;i<a;o=i,i+=2){var s=r[o],l=r[o+1],u=r[i],c=r[i+1],f=s*c-u*l;e+=f,t+=(s+u)*f,n+=(l+c)*f}return e===0?[r[0]||0,r[1]||0]:[t/e/3,n/e/3,e]}function M_e(r,e,t,n){for(var a=(r.length-2)/6,i=1/0,o=0,s=r.length,l=s-2,u=0;u<a;u++){for(var c=u*6,f=0,d=0;d<s;d+=2){var v=d===0?c:(c+d-2)%l+2,g=r[v]-t[0],x=r[v+1]-t[1],y=e[d]-n[0],b=e[d+1]-n[1],S=y-g,T=b-x;f+=S*S+T*T}f<i&&(i=f,o=u)}return o}function D_e(r){for(var e=[],t=r.length,n=0;n<t;n+=2)e[n]=r[t-n-2],e[n+1]=r[t-n-1];return e}function L_e(r,e,t,n){for(var a=[],i,o=0;o<r.length;o++){var s=r[o],l=e[o],u=g4(s),c=g4(l);i==null&&(i=u[2]<0!=c[2]<0);var f=[],d=[],v=0,g=1/0,x=[],y=s.length;i&&(s=D_e(s));for(var b=M_e(s,l,u,c)*6,S=y-2,T=0;T<S;T+=2){var C=(b+T)%S+2;f[T+2]=s[C]-u[0],f[T+3]=s[C+1]-u[1]}f[0]=s[b]-u[0],f[1]=s[b+1]-u[1];for(var M=n/t,D=-n/2;D<=n/2;D+=M){for(var L=Math.sin(D),E=Math.cos(D),R=0,T=0;T<s.length;T+=2){var I=f[T],k=f[T+1],z=l[T]-c[0],O=l[T+1]-c[1],G=z*E-O*L,F=z*L+O*E;x[T]=G,x[T+1]=F;var B=G-I,Y=F-k;R+=B*B+Y*Y}if(R<g){g=R,v=D;for(var H=0;H<x.length;H++)d[H]=x[H]}}a.push({from:f,to:d,fromCp:u,toCp:c,rotation:-v})}return a}function _1(r){return r.__isCombineMorphing}var G9="__mOriginal_";function S1(r,e,t){var n=G9+e,a=r[n]||r[e];r[n]||(r[n]=r[e]);var i=t.replace,o=t.after,s=t.before;r[e]=function(){var l=arguments,u;return s&&s.apply(this,l),i?u=i.apply(this,l):u=a.apply(this,l),o&&o.apply(this,l),u}}function Ip(r,e){var t=G9+e;r[t]&&(r[e]=r[t],r[t]=null)}function m4(r,e){for(var t=0;t<r.length;t++)for(var n=r[t],a=0;a<n.length;){var i=n[a],o=n[a+1];n[a++]=e[0]*i+e[2]*o+e[4],n[a++]=e[1]*i+e[3]*o+e[5]}}function H9(r,e){var t=r.getUpdatedPathProxy(),n=e.getUpdatedPathProxy(),a=A_e(qA(t),qA(n)),i=a[0],o=a[1],s=r.getComputedTransform(),l=e.getComputedTransform();function u(){this.transform=null}s&&m4(i,s),l&&m4(o,l),S1(e,"updateTransform",{replace:u}),e.transform=null;var c=L_e(i,o,10,Math.PI),f=[];S1(e,"buildPath",{replace:function(d){for(var v=e.__morphT,g=1-v,x=[],y=0;y<c.length;y++){var b=c[y],S=b.from,T=b.to,C=b.rotation*v,M=b.fromCp,D=b.toCp,L=Math.sin(C),E=Math.cos(C);_p(x,M,D,v);for(var R=0;R<S.length;R+=2){var I=S[R],k=S[R+1],z=T[R],O=T[R+1],G=I*g+z*v,F=k*g+O*v;f[R]=G*E-F*L+x[0],f[R+1]=G*L+F*E+x[1]}var B=f[0],Y=f[1];d.moveTo(B,Y);for(var R=2;R<S.length;){var z=f[R++],O=f[R++],H=f[R++],X=f[R++],V=f[R++],W=f[R++];B===z&&Y===O&&H===V&&X===W?d.lineTo(V,W):d.bezierCurveTo(z,O,H,X,V,W),B=V,Y=W}}}})}function aN(r,e,t){if(!r||!e)return e;var n=t.done,a=t.during;H9(r,e),e.__morphT=0;function i(){Ip(e,"buildPath"),Ip(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return e.animateTo({__morphT:1},Ne({during:function(o){e.dirtyShape(),a&&a(o)},done:function(){i(),n&&n()}},t)),e}function N_e(r,e,t,n,a,i){var o=16;r=a===t?0:Math.round(32767*(r-t)/(a-t)),e=i===n?0:Math.round(32767*(e-n)/(i-n));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var c=0,f=0;(r&u)>0&&(c=1),(e&u)>0&&(f=1),s+=u*u*(3*c^f),f===0&&(c===1&&(r=u-1-r,e=u-1-e),l=r,r=e,e=l)}return s}function w1(r){var e=1/0,t=1/0,n=-1/0,a=-1/0,i=ce(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),f=l.y+l.height/2+(u?u[5]:0);return e=Math.min(c,e),t=Math.min(f,t),n=Math.max(c,n),a=Math.max(f,a),[c,f]}),o=ce(i,function(s,l){return{cp:s,z:N_e(s[0],s[1],e,t,n,a),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function F9(r){return T_e(r.path,r.count)}function $A(){return{fromIndividuals:[],toIndividuals:[],count:0}}function R_e(r,e,t){var n=[];function a(M){for(var D=0;D<M.length;D++){var L=M[D];_1(L)?a(L.childrenRef()):L instanceof et&&n.push(L)}}a(r);var i=n.length;if(!i)return $A();var o=t.dividePath||F9,s=o({path:e,count:i});if(s.length!==i)return console.error("Invalid morphing: unmatched splitted path"),$A();n=w1(n),s=w1(s);for(var l=t.done,u=t.during,c=t.individualDelay,f=new Oo,d=0;d<i;d++){var v=n[d],g=s[d];g.parent=e,g.copyTransform(f),c||H9(v,g)}e.__isCombineMorphing=!0,e.childrenRef=function(){return s};function x(M){for(var D=0;D<s.length;D++)s[D].addSelfToZr(M)}S1(e,"addSelfToZr",{after:function(M){x(M)}}),S1(e,"removeSelfFromZr",{after:function(M){for(var D=0;D<s.length;D++)s[D].removeSelfFromZr(M)}});function y(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,Ip(e,"addSelfToZr"),Ip(e,"removeSelfFromZr")}var b=s.length;if(c)for(var S=b,T=function(){S--,S===0&&(y(),l&&l())},d=0;d<b;d++){var C=c?Ne({delay:(t.delay||0)+c(d,b,n[d],s[d]),done:T},t):t;aN(n[d],s[d],C)}else e.__morphT=0,e.animateTo({__morphT:1},Ne({during:function(M){for(var D=0;D<b;D++){var L=s[D];L.__morphT=e.__morphT,L.dirtyShape()}u&&u(M)},done:function(){y();for(var M=0;M<r.length;M++)Ip(r[M],"updateTransform");l&&l()}},t));return e.__zr&&x(e.__zr),{fromIndividuals:n,toIndividuals:s,count:b}}function E_e(r,e,t){var n=e.length,a=[],i=t.dividePath||F9;function o(v){for(var g=0;g<v.length;g++){var x=v[g];_1(x)?o(x.childrenRef()):x instanceof et&&a.push(x)}}if(_1(r)){o(r.childrenRef());var s=a.length;if(s<n)for(var l=0,u=s;u<n;u++)a.push(QM(a[l++%s]));a.length=n}else{a=i({path:r,count:n});for(var c=r.getComputedTransform(),u=0;u<a.length;u++)a[u].setLocalTransform(c);if(a.length!==n)return console.error("Invalid morphing: unmatched splitted path"),$A()}a=w1(a),e=w1(e);for(var f=t.individualDelay,u=0;u<n;u++){var d=f?Ne({delay:(t.delay||0)+f(u,n,a[u],e[u])},t):t;aN(a[u],e[u],d)}return{fromIndividuals:a,toIndividuals:e,count:e.length}}function y4(r){return ue(r[0])}function x4(r,e){for(var t=[],n=r.length,a=0;a<n;a++)t.push({one:r[a],many:[]});for(var a=0;a<e.length;a++){var i=e[a].length,o=void 0;for(o=0;o<i;o++)t[o%n].many.push(e[a][o])}for(var s=0,a=n-1;a>=0;a--)if(!t[a].many.length){var l=t[s].many;if(l.length<=1)if(s)s=0;else return t;var i=l.length,u=Math.ceil(i/2);t[a].many=l.slice(u,i),t[s].many=l.slice(0,u),s++}return t}var I_e={clone:function(r){for(var e=[],t=1-Math.pow(1-r.path.style.opacity,1/r.count),n=0;n<r.count;n++){var a=QM(r.path);a.setStyle("opacity",t),e.push(a)}return e},split:null};function u2(r,e,t,n,a,i){if(!r.length||!e.length)return;var o=Qh("update",n,a);if(!(o&&o.duration>0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;y4(r)&&(u=r,c=e),y4(e)&&(u=e,c=r);function f(b,S,T,C,M){var D=b.many,L=b.one;if(D.length===1&&!M){var E=S?D[0]:L,R=S?L:D[0];if(_1(E))f({many:[E],one:R},!0,T,C,!0);else{var I=s?Ne({delay:s(T,C)},l):l;aN(E,R,I),i(E,R,E,R,I)}}else for(var k=Ne({dividePath:I_e[t],individualDelay:s&&function(Y,H,X,V){return s(Y+T,C)}},l),z=S?R_e(D,L,k):E_e(L,D,k),O=z.fromIndividuals,G=z.toIndividuals,F=O.length,B=0;B<F;B++){var I=s?Ne({delay:s(B,F)},l):l;i(O[B],G[B],S?D[B]:b.one,S?b.one:D[B],I)}}for(var d=u?u===r:r.length>e.length,v=u?x4(c,u):x4(d?e:r,[d?r:e]),g=0,x=0;x<v.length;x++)g+=v[x].many.length;for(var y=0,x=0;x<v.length;x++)f(v[x],d,y,g),y+=v[x].many.length}function Du(r){if(!r)return[];if(ue(r)){for(var e=[],t=0;t<r.length;t++)e.push(Du(r[t]));return e}var n=[];return r.traverse(function(a){a instanceof et&&!a.disableMorphing&&!a.invisible&&!a.ignore&&n.push(a)}),n}var U9=1e4,k_e=0,b4=1,_4=2,O_e=Ke();function P_e(r,e){for(var t=r.dimensions,n=0;n<t.length;n++){var a=r.getDimensionInfo(t[n]);if(a&&a.otherDims[e]===0)return t[n]}}function z_e(r,e,t){var n=r.getDimensionInfo(t),a=n&&n.ordinalMeta;if(n){var i=r.get(n.name,e);return a&&a.categories[i]||i+""}}function S4(r,e,t,n){var a=n?"itemChildGroupId":"itemGroupId",i=P_e(r,a);if(i){var o=z_e(r,e,i);return o}var s=r.getRawDataItem(e),l=n?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!n)return t||r.getId(e)}function w4(r){var e=[];return P(r,function(t){var n=t.data,a=t.dataGroupId;if(!(n.count()>U9))for(var i=n.getIndices(),o=0;o<i.length;o++)e.push({data:n,groupId:S4(n,o,a,!1),childGroupId:S4(n,o,a,!0),divide:t.divide,dataIndex:o})}),e}function c2(r,e,t){r.traverse(function(n){n instanceof et&&zt(n,{style:{opacity:0}},e,{dataIndex:t,isFrom:!0})})}function f2(r){if(r.parent){var e=r.getComputedTransform();r.setLocalTransform(e),r.parent.remove(r)}}function Gf(r){r.stopAnimation(),r.isGroup&&r.traverse(function(e){e.stopAnimation()})}function B_e(r,e,t){var n=Qh("update",t,e);n&&r.traverse(function(a){if(a instanceof Ia){var i=tae(a);i&&a.animateFrom({style:i},n)}})}function j_e(r,e){var t=r.length;if(t!==e.length)return!1;for(var n=0;n<t;n++){var a=r[n],i=e[n];if(a.data.getId(a.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function Y9(r,e,t){var n=w4(r),a=w4(e);function i(T,C,M,D,L){(M||T)&&C.animateFrom({style:M&&M!==T?ie(ie({},M.style),T.style):T.style},L)}var o=!1,s=k_e,l=Te(),u=Te();n.forEach(function(T){T.groupId&&l.set(T.groupId,!0),T.childGroupId&&u.set(T.childGroupId,!0)});for(var c=0;c<a.length;c++){var f=a[c].groupId;if(u.get(f)){s=b4;break}var d=a[c].childGroupId;if(d&&l.get(d)){s=_4;break}}function v(T,C){return function(M){var D=M.data,L=M.dataIndex;return C?D.getId(L):T?s===b4?M.childGroupId:M.groupId:s===_4?M.childGroupId:M.groupId}}var g=j_e(n,a),x={};if(!g)for(var c=0;c<a.length;c++){var y=a[c],b=y.data.getItemGraphicEl(y.dataIndex);b&&(x[b.id]=!0)}function S(T,C){var M=n[C],D=a[T],L=D.data.hostModel,E=M.data.getItemGraphicEl(M.dataIndex),R=D.data.getItemGraphicEl(D.dataIndex);if(E===R){R&&B_e(R,D.dataIndex,L);return}E&&x[E.id]||R&&(Gf(R),E?(Gf(E),f2(E),o=!0,u2(Du(E),Du(R),D.divide,L,T,i)):c2(R,L,T))}new Zo(n,a,v(!0,g),v(!1,g),null,"multiple").update(S).updateManyToOne(function(T,C){var M=a[T],D=M.data,L=D.hostModel,E=D.getItemGraphicEl(M.dataIndex),R=ht(ce(C,function(I){return n[I].data.getItemGraphicEl(n[I].dataIndex)}),function(I){return I&&I!==E&&!x[I.id]});E&&(Gf(E),R.length?(P(R,function(I){Gf(I),f2(I)}),o=!0,u2(Du(R),Du(E),M.divide,L,T,i)):c2(E,L,M.dataIndex))}).updateOneToMany(function(T,C){var M=n[C],D=M.data.getItemGraphicEl(M.dataIndex);if(!(D&&x[D.id])){var L=ht(ce(T,function(R){return a[R].data.getItemGraphicEl(a[R].dataIndex)}),function(R){return R&&R!==D}),E=a[T[0]].data.hostModel;L.length&&(P(L,function(R){return Gf(R)}),D?(Gf(D),f2(D),o=!0,u2(Du(D),Du(L),M.divide,E,T[0],i)):P(L,function(R){return c2(R,E,T[0])}))}}).updateManyToMany(function(T,C){new Zo(C,T,function(M){return n[M].data.getId(n[M].dataIndex)},function(M){return a[M].data.getId(a[M].dataIndex)}).update(function(M,D){S(T[M],C[D])}).execute()}).execute(),o&&P(e,function(T){var C=T.data,M=C.hostModel,D=M&&t.getViewOfSeriesModel(M),L=Qh("update",M,0);D&&M.isAnimationEnabled()&&L&&L.duration>0&&D.group.traverse(function(E){E instanceof et&&!E.animators.length&&E.animateFrom({style:{opacity:0}},L)})})}function T4(r){var e=r.getModel("universalTransition").get("seriesKey");return e||r.id}function C4(r){return ue(r)?r.sort().join(","):r}function Fs(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function V_e(r,e){var t=Te(),n=Te(),a=Te();return P(r.oldSeries,function(i,o){var s=r.oldDataGroupIds[o],l=r.oldData[o],u=T4(i),c=C4(u);n.set(c,{dataGroupId:s,data:l}),ue(u)&&P(u,function(f){a.set(f,{key:c,dataGroupId:s,data:l})})}),P(e.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=T4(i),u=C4(l),c=n.get(u);if(c)t.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:Fs(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:Fs(s),data:s}]});else if(ue(l)){var f=[];P(l,function(g){var x=n.get(g);x.data&&f.push({dataGroupId:x.dataGroupId,divide:Fs(x.data),data:x.data})}),f.length&&t.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:Fs(s)}]})}else{var d=a.get(l);if(d){var v=t.get(d.key);v||(v={oldSeries:[{dataGroupId:d.dataGroupId,data:d.data,divide:Fs(d.data)}],newSeries:[]},t.set(d.key,v)),v.newSeries.push({dataGroupId:o,data:s,divide:Fs(s)})}}}}),t}function A4(r,e){for(var t=0;t<r.length;t++){var n=e.seriesIndex!=null&&e.seriesIndex===r[t].seriesIndex||e.seriesId!=null&&e.seriesId===r[t].id;if(n)return t}}function G_e(r,e,t,n){var a=[],i=[];P(Dt(r.from),function(o){var s=A4(e.oldSeries,o);s>=0&&a.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:Fs(e.oldData[s]),groupIdDim:o.dimension})}),P(Dt(r.to),function(o){var s=A4(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();i.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:Fs(l),groupIdDim:o.dimension})}}),a.length>0&&i.length>0&&Y9(a,i,n)}function H_e(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,n){P(Dt(n.seriesTransition),function(a){P(Dt(a.to),function(i){for(var o=n.updatedSeries,s=0;s<o.length;s++)(i.seriesIndex!=null&&i.seriesIndex===o[s].seriesIndex||i.seriesId!=null&&i.seriesId===o[s].id)&&(o[s][$0]=!0)})})}),r.registerUpdateLifecycle("series:transition",function(e,t,n){var a=O_e(t);if(a.oldSeries&&n.updatedSeries&&n.optionChanged){var i=n.seriesTransition;if(i)P(Dt(i),function(v){G_e(v,a,n,t)});else{var o=V_e(a,n);P(o.keys(),function(v){var g=o.get(v);Y9(g.oldSeries,g.newSeries,t)})}P(n.updatedSeries,function(v){v[$0]&&(v[$0]=!1)})}for(var s=e.getSeries(),l=a.oldSeries=[],u=a.oldDataGroupIds=[],c=a.oldData=[],f=0;f<s.length;f++){var d=s[f].getData();d.count()<U9&&(l.push(s[f]),u.push(s[f].get("dataGroupId")),c.push(d))}})}var F_e=(function(){function r(){this.breaks=[],this._elapsedExtent=[1/0,-1/0]}return r.prototype.setBreaks=function(e){this.breaks=e.breaks},r.prototype.update=function(e){Y_e(this,e);var t=this._elapsedExtent;t[0]=this.elapse(e[0]),t[1]=this.elapse(e[1])},r.prototype.hasBreaks=function(){return!!this.breaks.length},r.prototype.calcNiceTickMultiple=function(e,t){for(var n=0;n<this.breaks.length;n++){var a=this.breaks[n];if(a.vmin<e&&e<a.vmax){var i=t(e,a.vmax);return i}}return 0},r.prototype.getExtentSpan=function(){return this._elapsedExtent[1]-this._elapsedExtent[0]},r.prototype.normalize=function(e){var t=this._elapsedExtent[1]-this._elapsedExtent[0];return t===0?.5:(this.elapse(e)-this._elapsedExtent[0])/t},r.prototype.scale=function(e){return this.unelapse(e*(this._elapsedExtent[1]-this._elapsedExtent[0])+this._elapsedExtent[0])},r.prototype.elapse=function(e){for(var t=M4,n=D4,a=!0,i=0;i<this.breaks.length;i++){var o=this.breaks[i];if(e<=o.vmax){e>o.vmin?t+=o.vmin-n+(e-o.vmin)/(o.vmax-o.vmin)*o.gapReal:t+=e-n,n=o.vmax,a=!1;break}t+=o.vmin-n+o.gapReal,n=o.vmax}return a&&(t+=e-n),t},r.prototype.unelapse=function(e){for(var t=M4,n=D4,a=!0,i=0,o=0;o<this.breaks.length;o++){var s=this.breaks[o],l=t+s.vmin-n,u=l+s.gapReal;if(e<=u){e>l?i=s.vmin+(e-l)/(u-l)*(s.vmax-s.vmin):i=n+e-t,n=s.vmax,a=!1;break}t=u,n=s.vmax}return a&&(i=n+e-t),i},r})();function U_e(){return new F_e}var M4=0,D4=0;function Y_e(r,e){var t=0,n={tpAbs:{span:0,val:0},tpPrct:{span:0,val:0}},a=function(){return{has:!1,span:NaN,inExtFrac:NaN,val:NaN}},i={S:{tpAbs:a(),tpPrct:a()},E:{tpAbs:a(),tpPrct:a()}};P(r.breaks,function(s){var l=s.gapParsed;l.type==="tpPrct"&&(t+=l.val);var u=iN(s,e);if(u){var c=u.vmin!==s.vmin,f=u.vmax!==s.vmax,d=u.vmax-u.vmin;if(!(c&&f))if(c||f){var v=c?"S":"E";i[v][l.type].has=!0,i[v][l.type].span=d,i[v][l.type].inExtFrac=d/(s.vmax-s.vmin),i[v][l.type].val=l.val}else n[l.type].span+=d,n[l.type].val+=l.val}});var o=t*(0+(e[1]-e[0])+(n.tpAbs.val-n.tpAbs.span)+(i.S.tpAbs.has?(i.S.tpAbs.val-i.S.tpAbs.span)*i.S.tpAbs.inExtFrac:0)+(i.E.tpAbs.has?(i.E.tpAbs.val-i.E.tpAbs.span)*i.E.tpAbs.inExtFrac:0)-n.tpPrct.span-(i.S.tpPrct.has?i.S.tpPrct.span*i.S.tpPrct.inExtFrac:0)-(i.E.tpPrct.has?i.E.tpPrct.span*i.E.tpPrct.inExtFrac:0))/(1-n.tpPrct.val-(i.S.tpPrct.has?i.S.tpPrct.val*i.S.tpPrct.inExtFrac:0)-(i.E.tpPrct.has?i.E.tpPrct.val*i.E.tpPrct.inExtFrac:0));P(r.breaks,function(s){var l=s.gapParsed;l.type==="tpPrct"&&(s.gapReal=t!==0?Math.max(o,0)*l.val/t:0),l.type==="tpAbs"&&(s.gapReal=l.val),s.gapReal==null&&(s.gapReal=0)})}function W_e(r,e,t,n,a,i){r!=="no"&&P(t,function(o){var s=iN(o,i);if(s)for(var l=e.length-1;l>=0;l--){var u=e[l],c=n(u),f=a*3/4;c>s.vmin-f&&c<s.vmax+f&&(r!=="preserve_extent_bound"||c!==i[0]&&c!==i[1])&&e.splice(l,1)}})}function X_e(r,e,t,n){P(e,function(a){var i=iN(a,t);i&&(r.push({value:i.vmin,break:{type:"vmin",parsedBreak:i},time:n?n(i):void 0}),r.push({value:i.vmax,break:{type:"vmax",parsedBreak:i},time:n?n(i):void 0}))}),e.length&&r.sort(function(a,i){return a.value-i.value})}function iN(r,e){var t=Math.max(r.vmin,e[0]),n=Math.min(r.vmax,e[1]);return t<n||t===n&&t>e[0]&&t<e[1]?{vmin:t,vmax:n,breakOption:r.breakOption,gapParsed:r.gapParsed,gapReal:r.gapReal}:null}function KA(r,e,t){var n=[];if(!r)return{breaks:n};function a(o,s){return o>=0&&o<1-1e-5}P(r,function(o){if(!(!o||o.start==null||o.end==null)&&!o.isExpanded){var s={breakOption:Me(o),vmin:e(o.start),vmax:e(o.end),gapParsed:{type:"tpAbs",val:0},gapReal:null};if(o.gap!=null){var l=!1;if(ye(o.gap)){var u=Qn(o.gap);if(u.match(/%$/)){var c=parseFloat(u)/100;a(c)||(c=0),s.gapParsed.type="tpPrct",s.gapParsed.val=c,l=!0}}if(!l){var f=e(o.gap);(!isFinite(f)||f<0)&&(f=0),s.gapParsed.type="tpAbs",s.gapParsed.val=f}}if(s.vmin===s.vmax&&(s.gapParsed.type="tpAbs",s.gapParsed.val=0),t&&t.noNegative&&P(["vmin","vmax"],function(v){s[v]<0&&(s[v]=0)}),s.vmin>s.vmax){var d=s.vmax;s.vmax=s.vmin,s.vmin=d}n.push(s)}}),n.sort(function(o,s){return o.vmin-s.vmin});var i=-1/0;return P(n,function(o,s){i>o.vmin&&(n[s]=null),i=o.vmax}),{breaks:n.filter(function(o){return!!o})}}function oN(r,e){return QA(e)===QA(r)}function QA(r){return r.start+"_\0_"+r.end}function q_e(r,e,t){var n=[];P(r,function(i,o){var s=e(i);s&&s.type==="vmin"&&n.push([o])}),P(r,function(i,o){var s=e(i);if(s&&s.type==="vmax"){var l=Cl(n,function(u){return oN(e(r[u[0]]).parsedBreak.breakOption,s.parsedBreak.breakOption)});l&&l.push(o)}});var a=[];return P(n,function(i){i.length===2&&a.push(t?i:[r[i[0]],r[i[1]]])}),a}function Z_e(r,e,t,n){var a,i;if(r.break){var o=r.break.parsedBreak,s=Cl(t,function(f){return oN(f.breakOption,r.break.parsedBreak.breakOption)}),l=n(Math.pow(e,o.vmin),s.vmin),u=n(Math.pow(e,o.vmax),s.vmax),c={type:o.gapParsed.type,val:o.gapParsed.type==="tpAbs"?or(Math.pow(e,o.vmin+o.gapParsed.val))-l:o.gapParsed.val};a={type:r.break.type,parsedBreak:{breakOption:o.breakOption,vmin:l,vmax:u,gapParsed:c,gapReal:o.gapReal}},i=s[r.break.type]}return{brkRoundingCriterion:i,vBreak:a}}function $_e(r,e,t){var n={noNegative:!0},a=KA(r,t,n),i=KA(r,t,n),o=Math.log(e);return i.breaks=ce(i.breaks,function(s){var l=Math.log(s.vmin)/o,u=Math.log(s.vmax)/o,c={type:s.gapParsed.type,val:s.gapParsed.type==="tpAbs"?Math.log(s.vmin+s.gapParsed.val)/o-l:s.gapParsed.val};return{vmin:l,vmax:u,gapParsed:c,gapReal:s.gapReal,breakOption:s.breakOption}}),{parsedOriginal:a,parsedLogged:i}}var K_e={vmin:"start",vmax:"end"};function Q_e(r,e){return e&&(r=r||{},r.break={type:K_e[e.type],start:e.parsedBreak.vmin,end:e.parsedBreak.vmax}),r}function J_e(){_ae({createScaleBreakContext:U_e,pruneTicksByBreak:W_e,addBreaksToTicks:X_e,parseAxisBreakOption:KA,identifyAxisBreak:oN,serializeAxisBreakIdentifier:QA,retrieveAxisBreakPairs:q_e,getTicksLogTransformBreak:Z_e,logarithmicParseBreaksFromOption:$_e,makeAxisLabelFormatterParamBreak:Q_e})}var L4=Ke();function eSe(r,e){var t=Cl(r,function(n){return hr().identifyAxisBreak(n.parsedBreak.breakOption,e.breakOption)});return t||r.push(t={zigzagRandomList:[],parsedBreak:e,shouldRemove:!1}),t}function tSe(r){P(r,function(e){return e.shouldRemove=!0})}function rSe(r){for(var e=r.length-1;e>=0;e--)r[e].shouldRemove&&r.splice(e,1)}function nSe(r,e,t,n,a){var i=t.axis;if(i.scale.isBlank()||!hr())return;var o=hr().retrieveAxisBreakPairs(i.scale.getTicks({breakTicks:"only_break"}),function(R){return R.break},!1);if(!o.length)return;var s=t.getModel("breakArea"),l=s.get("zigzagAmplitude"),u=s.get("zigzagMinSpan"),c=s.get("zigzagMaxSpan");u=Math.max(2,u||0),c=Math.max(u,c||0);var f=s.get("expandOnClick"),d=s.get("zigzagZ"),v=s.getModel("itemStyle"),g=v.getItemStyle(),x=g.stroke,y=g.lineWidth,b=g.lineDash,S=g.fill,T=new De({ignoreModelZ:!0}),C=i.isHorizontal(),M=L4(e).visualList||(L4(e).visualList=[]);tSe(M);for(var D=function(R){var I=o[R][0].break.parsedBreak,k=[];k[0]=i.toGlobalCoord(i.dataToCoord(I.vmin,!0)),k[1]=i.toGlobalCoord(i.dataToCoord(I.vmax,!0)),k[1]<k[0]&&k.reverse();var z=eSe(M,I);z.shouldRemove=!1;var O=new De;E(z.zigzagRandomList,O,k[0],k[1],C,I),f&&O.on("click",function(){var G={type:ub,breaks:[{start:I.breakOption.start,end:I.breakOption.end}]};G[i.dim+"AxisIndex"]=t.componentIndex,a.dispatchAction(G)}),O.silent=!f,T.add(O)},L=0;L<o.length;L++)D(L);r.add(T),rSe(M);function E(R,I,k,z,O,G){var F={stroke:x,lineWidth:y,lineDash:b,fill:"none"},B=O?0:1,Y=1-B,H=n[je[Y]]+n[dr[Y]];function X(st){var Qe=[],ct=[];Qe[B]=ct[B]=st,Qe[Y]=n[je[Y]],ct[Y]=H;var xt={x1:Qe[0],y1:Qe[1],x2:ct[0],y2:ct[1]};return q1(xt,xt,{lineWidth:1}),Qe[0]=xt.x1,Qe[1]=xt.y1,Qe[B]}k=X(k),z=X(z);for(var V=[],W=[],$=!0,te=n[je[Y]],le=0;;le++){var ge=te===n[je[Y]],we=te>=H;we&&(te=H);var de=[],ve=[];de[B]=k,ve[B]=z,!ge&&!we&&(de[B]+=$?-l:l,ve[B]-=$?l:-l),de[Y]=te,ve[Y]=te,V.push(de),W.push(ve);var be=void 0;if(le<R.length?be=R[le]:(be=Math.random(),R.push(be)),te+=be*(c-u)+u,$=!$,we)break}var Oe=hr().serializeAxisBreakIdentifier(G.breakOption);if(I.add(new Vr({anid:"break_a_"+Oe,shape:{points:V},style:F,z:d})),G.gapReal!==0){I.add(new Vr({anid:"break_b_"+Oe,shape:{points:W},style:F,z:d}));var _e=W.slice();_e.reverse();var Le=V.concat(_e);I.add(new Jr({anid:"break_c_"+Oe,shape:{points:Le},style:{fill:S,opacity:g.opacity},z:d}))}}}function aSe(r,e,t,n){var a=r.axis,i=t.transform;Kr(n.style);var o=a.getExtent();a.inverse&&(o=o.slice(),o.reverse());var s=hr().retrieveAxisBreakPairs(a.scale.getTicks({breakTicks:"only_break"}),function(y){return y.break},!1),l=ce(s,function(y){var b=y[0].break.parsedBreak,S=[a.dataToCoord(b.vmin,!0),a.dataToCoord(b.vmax,!0)];return S[0]>S[1]&&S.reverse(),{coordPair:S,brkId:hr().serializeAxisBreakIdentifier(b.breakOption)}});l.sort(function(y,b){return y.coordPair[0]-b.coordPair[0]});for(var u=o[0],c=null,f=0;f<l.length;f++){var d=l[f],v=Math.max(d.coordPair[0],o[0]),g=Math.min(d.coordPair[1],o[1]);u<=v&&x(u,v,c,d),u=g,c=d}u<=o[1]&&x(u,o[1],c,null);function x(y,b,S,T){function C(k,z){i&&(Kt(k,k,i),Kt(z,z,i))}function M(k,z){var O={x1:k[0],y1:k[1],x2:z[0],y2:z[1]};q1(O,O,n.style),k[0]=O.x1,k[1]=O.y1,z[0]=O.x2,z[1]=O.y2}var D=[y,0],L=[b,0],E=[y,5],R=[b,5];C(D,E),M(D,E),C(L,R),M(L,R),M(D,L);var I=new sr(ie({shape:{x1:D[0],y1:D[1],x2:L[0],y2:L[1]}},n));e.add(I),I.anid="breakLine_"+(S?S.brkId:"\0")+"_\0_"+(T?T.brkId:"\0")}}function iSe(r,e,t){if(Cl(t,function(S){return!S}))return;var n=new Ie;if(!sb(t[0],t[1],n,{direction:-(r?e+Math.PI:e),touchThreshold:0,bidirectional:!1}))return;var a=Mr();es(a,a,-e);var i=ce(t,function(S){return S.transform?Ka(Mr(),a,S.transform):a});function o(S){var T=t[0].localRect,C=new Ie(T[dr[S]]*i[0][0],T[dr[S]]*i[0][1]);return Math.abs(C.y)<1e-5}var s=.5;if(o(0)||o(1)){var l=ce(t,function(S,T){var C=S.localRect.clone();return C.applyTransform(i[T]),C}),u=new Ie;u.copy(t[0].label).add(t[1].label).scale(.5),u.transform(a);var c=n.clone().transform(a),f=l[0].x+l[1].x+(c.x>=0?l[0].width:l[1].width),d=(f+c.x)/2-u.x,v=Math.min(d,d-c.x),g=Math.max(d,d-c.x),x=g<0?g:v>0?v:0;s=(d-x)/c.x}var y=new Ie,b=new Ie;Ie.scale(y,n,-s),Ie.scale(b,n,1-s),JC(t[0],y),JC(t[1],b)}function oSe(r,e){var t={breaks:[]};return P(e.breaks,function(n){if(n){var a=Cl(r.get("breaks",!0),function(s){return hr().identifyAxisBreak(s,n)});if(a){var i=e.type,o={isExpanded:!!a.isExpanded};a.isExpanded=i===ub?!0:i===h7?!1:i===d7?!a.isExpanded:a.isExpanded,t.breaks.push({start:a.start,end:a.end,isExpanded:!!a.isExpanded,old:o})}}}),t}function sSe(){rfe({adjustBreakLabelPair:iSe,buildAxisBreakLine:aSe,rectCoordBuildBreakAxis:nSe,updateModelAxisBreak:oSe})}function lSe(r){lfe(r),J_e(),sSe()}function uSe(){Lfe(cSe)}function cSe(r,e){P(r,function(t){if(!t.model.get(["axisLabel","inside"])){var n=fSe(t);if(n){var a=t.isHorizontal()?"height":"width",i=t.model.get(["axisLabel","margin"]);e[a]-=n[a]+i,t.position==="top"?e.y+=n.height+i:t.position==="left"&&(e.x+=n.width+i)}}})}function fSe(r){var e=r.model,t=r.scale;if(!e.get(["axisLabel","show"])||t.isBlank())return;var n,a,i=t.getExtent();t instanceof kh?a=t.count():(n=t.getTicks(),a=n.length);var o=r.getLabelModel(),s=ld(r),l,u=1;a>40&&(u=Math.ceil(a/40));for(var c=0;c<a;c+=u){var f=n?n[c]:{value:i[0]+c},d=s(f,c),v=o.getTextRect(d),g=x(v,o.get("rotate")||0);l?l.union(g):l=g}return l;function x(y,b){var S=b*Math.PI/180,T=y.width,C=y.height,M=T*Math.abs(Math.cos(S))+Math.abs(C*Math.sin(S)),D=T*Math.abs(Math.sin(S))+Math.abs(C*Math.cos(S)),L=new ke(y.x,y.y,M,D);return L}}Ue([ece]);Ue([Zue]);Ue([bce,Oce,Yce,qfe,ihe,qhe,_de,ave,Cve,Eve,Bve,Wve,jpe,uge,bge,Pge,Vge,$ge,nme,vme,bme,Nme,vye]);Ue(Iye);Ue(a0e);Ue(j7);Ue(g0e);Ue(CU);Ue(b0e);Ue(V0e);Ue(Z0e);Ue(Oxe);Ue(e1e);Ue(Zg);Ue(g1e);Ue(x1e);Ue(L1e);Ue(z1e);Ue(F1e);Ue(Z1e);Ue(ibe);Ue(Tbe);Ue(R9);Ue(E9);Ue(Ube);Ue(z9);Ue(B9);Ue(qbe);Ue(Jbe);Ue(h_e);Ue(p_e);Ue(H_e);Ue(pue);Ue(lSe);Ue(uSe);Ue(Zfe);const hSe=Object.freeze(Object.defineProperty({__proto__:null,Axis:za,ChartView:_t,ComponentModel:$e,ComponentView:Lt,List:cn,Model:Je,PRIORITY:I8,SeriesModel:wt,color:dte,connect:yse,dataTool:Ase,dependencies:ese,disConnect:xse,disconnect:G8,dispose:bse,env:rt,extendChartView:eue,extendComponentModel:Kle,extendComponentView:Qle,extendSeriesModel:Jle,format:Ple,getCoordinateSystemDimensions:Sse,getInstanceByDom:PD,getInstanceById:_se,getMap:Cse,graphic:Ole,helper:Mle,init:mse,innerDrawElementOnCanvas:ED,matrix:Hee,number:Ile,parseGeoJSON:KC,parseGeoJson:KC,registerAction:si,registerCoordinateSystem:U8,registerCustomSeries:wse,registerLayout:Y8,registerLoading:GD,registerLocale:uD,registerMap:W8,registerPostInit:H8,registerPostUpdate:F8,registerPreprocessor:BD,registerProcessor:jD,registerTheme:zD,registerTransform:X8,registerUpdateLifecycle:ob,registerVisual:Ll,setCanvasCreator:Tse,setPlatformAPI:DG,throttle:ab,time:kle,use:Ue,util:zle,vector:Mee,version:Joe,zrUtil:bee,zrender:Zte},Symbol.toStringTag,{value:"Module"}));var _o={},So={},h2={},N4;function dSe(){return N4||(N4=1,(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var e=1;r.default=function(){return"".concat(e++)}})(h2)),h2}var $v={},Kv={},d2={},R4;function W9(){return R4||(R4=1,(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,r.default=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,a=null;return function(){for(var i=this,o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];clearTimeout(a),a=setTimeout(function(){t.apply(i,s)},n)}}})(d2)),d2}var wo={},E4;function sN(){return E4||(E4=1,Object.defineProperty(wo,"__esModule",{value:!0}),wo.SizeSensorId=wo.SensorTabIndex=wo.SensorClassName=void 0,wo.SizeSensorId="size-sensor-id",wo.SensorClassName="size-sensor-object",wo.SensorTabIndex="-1"),wo}var I4;function vSe(){if(I4)return Kv;I4=1,Object.defineProperty(Kv,"__esModule",{value:!0}),Kv.createSensor=void 0;var r=t(W9()),e=sN();function t(n){return n&&n.__esModule?n:{default:n}}return Kv.createSensor=function(a,i){var o=void 0,s=[],l=function(){getComputedStyle(a).position==="static"&&(a.style.position="relative");var g=document.createElement("object");return g.onload=function(){g.contentDocument.defaultView.addEventListener("resize",u),u()},g.style.display="block",g.style.position="absolute",g.style.top="0",g.style.left="0",g.style.height="100%",g.style.width="100%",g.style.overflow="hidden",g.style.pointerEvents="none",g.style.zIndex="-1",g.style.opacity="0",g.setAttribute("class",e.SensorClassName),g.setAttribute("tabindex",e.SensorTabIndex),g.type="text/html",a.appendChild(g),g.data="about:blank",g},u=(0,r.default)(function(){s.forEach(function(v){v(a)})}),c=function(g){o||(o=l()),s.indexOf(g)===-1&&s.push(g)},f=function(){o&&o.parentNode&&(o.contentDocument&&o.contentDocument.defaultView.removeEventListener("resize",u),o.parentNode.removeChild(o),a.removeAttribute(e.SizeSensorId),o=void 0,s=[],i&&i())},d=function(g){var x=s.indexOf(g);x!==-1&&s.splice(x,1),s.length===0&&o&&f()};return{element:a,bind:c,destroy:f,unbind:d}},Kv}var Qv={},k4;function pSe(){if(k4)return Qv;k4=1,Object.defineProperty(Qv,"__esModule",{value:!0}),Qv.createSensor=void 0;var r=sN(),e=t(W9());function t(n){return n&&n.__esModule?n:{default:n}}return Qv.createSensor=function(a,i){var o=void 0,s=[],l=(0,e.default)(function(){s.forEach(function(v){v(a)})}),u=function(){var g=new ResizeObserver(l);return g.observe(a),l(),g},c=function(g){o||(o=u()),s.indexOf(g)===-1&&s.push(g)},f=function(){o&&o.disconnect(),s=[],o=void 0,a.removeAttribute(r.SizeSensorId),i&&i()},d=function(g){var x=s.indexOf(g);x!==-1&&s.splice(x,1),s.length===0&&o&&f()};return{element:a,bind:c,destroy:f,unbind:d}},Qv}var O4;function gSe(){if(O4)return $v;O4=1,Object.defineProperty($v,"__esModule",{value:!0}),$v.createSensor=void 0;var r=vSe(),e=pSe();return $v.createSensor=typeof ResizeObserver<"u"?e.createSensor:r.createSensor,$v}var P4;function mSe(){if(P4)return So;P4=1,Object.defineProperty(So,"__esModule",{value:!0}),So.removeSensor=So.getSensor=So.Sensors=void 0;var r=n(dSe()),e=gSe(),t=sN();function n(o){return o&&o.__esModule?o:{default:o}}var a=So.Sensors={};function i(o){o&&a[o]&&delete a[o]}return So.getSensor=function(s){var l=s.getAttribute(t.SizeSensorId);if(l&&a[l])return a[l];var u=(0,r.default)();s.setAttribute(t.SizeSensorId,u);var c=(0,e.createSensor)(s,function(){return i(u)});return a[u]=c,c},So.removeSensor=function(s){var l=s.element.getAttribute(t.SizeSensorId);s.destroy(),i(l)},So}var z4;function ySe(){if(z4)return _o;z4=1,Object.defineProperty(_o,"__esModule",{value:!0}),_o.ver=_o.clear=_o.bind=void 0;var r=mSe();return _o.bind=function(t,n){var a=(0,r.getSensor)(t);return a.bind(n),function(){a.unbind(n)}},_o.clear=function(t){var n=(0,r.getSensor)(t);(0,r.removeSensor)(n)},_o.ver="1.0.3",_o}var B4=ySe();function j4(r,e){var t={};return e.forEach(function(n){t[n]=r[n]}),t}function v2(r){return typeof r=="function"}function xSe(r){return typeof r=="string"}var p2,V4;function bSe(){return V4||(V4=1,p2=function r(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,a,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(a=n;a--!==0;)if(!r(e[a],t[a]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(a=n;a--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[a]))return!1;for(a=n;a--!==0;){var o=i[a];if(!r(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}),p2}var _Se=bSe();const Hf=tM(_Se);var SSe=(function(r){K(e,r);function e(t){var n=r.call(this,t)||this;return n.echarts=t.echarts,n.ele=null,n.isInitialResize=!0,n.eventHandlerRefs={},n}return e.prototype.componentDidMount=function(){this.renderNewEcharts()},e.prototype.componentDidUpdate=function(t){var n=this.props.shouldSetOption;if(!(v2(n)&&!n(t,this.props))){if(!Hf(t.theme,this.props.theme)||!Hf(t.opts,this.props.opts)){this.dispose(),this.renderNewEcharts();return}var a=this.getEchartsInstance();Hf(t.onEvents,this.props.onEvents)||(this.unbindEvents(a),this.bindEvents(a,this.props.onEvents));var i=["option","notMerge","replaceMerge","lazyUpdate","showLoading","loadingOption"];Hf(j4(this.props,i),j4(t,i))||this.updateEChartsOption(),(!Hf(t.style,this.props.style)||!Hf(t.className,this.props.className))&&this.resize()}},e.prototype.componentWillUnmount=function(){this.dispose()},e.prototype.initEchartsInstance=function(){return Jk(this,void 0,void 0,function(){var t=this;return eO(this,function(n){return[2,new Promise(function(a){t.echarts.init(t.ele,t.props.theme,t.props.opts);var i=t.getEchartsInstance();i.on("finished",function(){var o=t.ele.clientWidth,s=t.ele.clientHeight;t.echarts.dispose(t.ele);var l=yp({width:o,height:s},t.props.opts);a(t.echarts.init(t.ele,t.props.theme,l))})})]})})},e.prototype.getEchartsInstance=function(){return this.echarts.getInstanceByDom(this.ele)},e.prototype.dispose=function(){if(this.ele){try{B4.clear(this.ele)}catch(t){console.warn(t)}this.echarts.dispose(this.ele)}},e.prototype.renderNewEcharts=function(){return Jk(this,void 0,void 0,function(){var t,n,a,i,o,s,l=this;return eO(this,function(u){switch(u.label){case 0:return t=this.props,n=t.onEvents,a=t.onChartReady,i=t.autoResize,o=i===void 0?!0:i,[4,this.initEchartsInstance()];case 1:return u.sent(),s=this.updateEChartsOption(),this.bindEvents(s,n||{}),v2(a)&&a(s),this.ele&&o&&B4.bind(this.ele,function(){l.resize()}),[2]}})})},e.prototype.bindEvents=function(t,n){var a=this,i=function(s,l){if(xSe(s)&&v2(l)){var u=function(c){l(c,t)};t.on(s,u),a.eventHandlerRefs[s]=u}};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&i(o,n[o])},e.prototype.unbindEvents=function(t){for(var n=0,a=Object.entries(this.eventHandlerRefs);n<a.length;n++){var i=a[n],o=i[0],s=i[1];t.off(o,s)}this.eventHandlerRefs={}},e.prototype.updateEChartsOption=function(){var t=this.props,n=t.option,a=t.notMerge,i=a===void 0?!1:a,o=t.replaceMerge,s=o===void 0?null:o,l=t.lazyUpdate,u=l===void 0?!1:l,c=t.showLoading,f=t.loadingOption,d=f===void 0?null:f,v=this.getEchartsInstance();return v.setOption(n,{notMerge:i,replaceMerge:s,lazyUpdate:u}),c?v.showLoading(d):v.hideLoading(),v},e.prototype.resize=function(){var t=this.getEchartsInstance();if(!this.isInitialResize)try{t.resize({width:"auto",height:"auto"})}catch(n){console.warn(n)}this.isInitialResize=!1},e.prototype.render=function(){var t=this,n=this.props,a=n.style,i=n.className,o=i===void 0?"":i;n.echarts,n.option,n.theme,n.notMerge,n.replaceMerge,n.lazyUpdate,n.showLoading,n.loadingOption,n.opts,n.onChartReady,n.onEvents,n.shouldSetOption,n.autoResize;var s=ree(n,["style","className","echarts","option","theme","notMerge","replaceMerge","lazyUpdate","showLoading","loadingOption","opts","onChartReady","onEvents","shouldSetOption","autoResize"]),l=yp({height:300},a);return fV.createElement("div",yp({ref:function(u){t.ele=u},style:l,className:"echarts-for-react ".concat(o)},s))},e})(Z.PureComponent),wSe=(function(r){K(e,r);function e(t){var n=r.call(this,t)||this;return n.echarts=hSe,n}return e})(SSe);const g2={cafe24:"카페24",coupang:"쿠팡",smartstore:"스마트스토어",shopify:"Shopify","toss-shopping":"토스쇼핑","29cm":"29CM",musinsa:"무신사",kurly:"컬리",ssf:"SSF",bronte:"브론테",ezadmin:"이지어드민"};function Ff({label:r,value:e,sub:t,highlight:n,onClick:a}){const i=Ye("border border-border rounded-lg p-4 bg-card text-left w-full",n&&"border-primary/50 bg-primary/5",a&&"cursor-pointer hover:border-primary/70 transition-colors"),o=w.jsxs(w.Fragment,{children:[w.jsx("div",{className:"text-[11px] text-muted-foreground mb-1",children:r}),w.jsx("div",{className:Ye("text-2xl font-semibold",n&&"text-primary"),children:e}),t&&w.jsx("div",{className:"text-[11px] text-muted-foreground mt-0.5",children:t})]});return a?w.jsx("button",{type:"button",className:i,onClick:a,children:o}):w.jsx("div",{className:i,children:o})}function TSe({connected:r}){return w.jsx("span",{className:Ye("inline-block w-2 h-2 rounded-full shrink-0",r?"bg-green-500":"bg-muted-foreground/40")})}function CSe({log:r}){return w.jsxs("div",{className:"flex items-start gap-3 py-1.5 border-b border-border/50 last:border-0",children:[w.jsx("span",{className:"text-[11px] text-muted-foreground font-mono shrink-0 pt-px",children:r.time}),w.jsx("span",{className:"text-[11px] text-muted-foreground/70 shrink-0 w-[88px] truncate",children:r.channel}),w.jsx("span",{className:"text-[12px] text-foreground",children:r.message})]})}function ASe({thisYear:r,lastYear:e}){const t=Array.from({length:52},(o,s)=>{const l=r.find(u=>u.week===s+1);return(l==null?void 0:l.count)??null}),n=Array.from({length:52},(o,s)=>{const l=e.find(u=>u.week===s+1);return(l==null?void 0:l.count)??null}),a=Array.from({length:52},(o,s)=>`${s+1}주`),i={animation:!0,grid:{top:8,right:8,bottom:24,left:36},xAxis:{type:"category",data:a,axisLabel:{interval:3,formatter:(o,s)=>{const u=[0,4,8,13,17,21,26,30,34,39,43,47].indexOf(s);return u>=0?`${u+1}월`:""},fontSize:10,color:"#999"},axisTick:{show:!1},axisLine:{show:!1},splitLine:{show:!0,interval:(o,s)=>["1주","5주","9주","14주","18주","22주","27주","31주","35주","40주","44주","48주"].includes(s),lineStyle:{color:"#e5e7eb",width:1}}},yAxis:{type:"value",axisLabel:{fontSize:10,color:"#999"},splitLine:{lineStyle:{color:"#f3f4f6"}},minInterval:1},series:[{name:"올해",type:"line",data:t,smooth:!0,symbol:"none",connectNulls:!1,lineStyle:{width:2.5,color:"hsl(var(--primary))"},itemStyle:{color:"hsl(var(--primary))"},emphasis:{focus:"none",lineStyle:{width:2.5,opacity:1}},blur:{lineStyle:{opacity:1,width:2.5}}},{name:"작년",type:"line",data:n,smooth:!0,symbol:"none",connectNulls:!1,lineStyle:{width:1.5,color:"#999",type:"dashed"},itemStyle:{color:"#999"},emphasis:{focus:"none",lineStyle:{width:1.5,opacity:1}},blur:{lineStyle:{opacity:1,width:1.5}}}],tooltip:{trigger:"axis",formatter:o=>{var u;const s=((u=o[0])==null?void 0:u.dataIndex)+1,l=o.filter(c=>c.value!=null).map(c=>`${c.seriesName}: ${c.value}건`).join("<br/>");return`${s}주차<br/>${l}`}},legend:{show:!1}};return w.jsx(wSe,{option:i,style:{height:160}})}function MSe(){const{data:r,isLoading:e}=nK(),{data:t}=bM(),{data:n}=cG(),{data:a}=gK(),{data:i}=pK(),{data:o,isLoading:s}=fG(),l=vV(),[u,c]=Z.useState(!1),[f,d]=Z.useState(null),[v,g]=Z.useState("product");async function x(){c(!0),d(null);try{const R=await dK();d(`${R.synced}건 동기화 완료`),l.invalidateQueries()}catch{d("동기화 실패")}finally{c(!1)}}t==null||t.channels.filter(R=>R.connected).length;const y=(r==null?void 0:r.operations.actionNeeded)??0;function b(R,I){return I?Math.round((R-I)/I*100):null}function S(R){return R===null?"-":R>=0?`+${R}%`:`${R}%`}const T=b((a==null?void 0:a.thisMonth.revenue)??0,(a==null?void 0:a.lastMonth.revenue)??0),C=b((a==null?void 0:a.thisMonth.revenue)??0,(a==null?void 0:a.lastYearSameMonth.revenue)??0),M=b((a==null?void 0:a.thisWeek.count)??0,(a==null?void 0:a.lastWeek.count)??0),D={pending:"결제대기",paid:"결제완료",preparing:"발송준비",shipped:"배송중",delivered:"배송완료",cancelled:"취소"},L=(n==null?void 0:n.settlement)??[],E=Math.max(...L.map(R=>R.netRevenue??0),1);return e?w.jsxs("div",{children:[w.jsx("h2",{className:"text-xl font-medium mb-6",children:"Overview"}),w.jsx("div",{className:"text-sm text-muted-foreground",children:"로딩 중..."})]}):w.jsxs("div",{children:[w.jsxs("div",{className:"flex items-center justify-between mb-6",children:[w.jsx("h2",{className:"text-xl font-medium",children:"Overview"}),w.jsxs("div",{className:"flex items-center gap-2",children:[y>0&&w.jsxs("div",{className:"flex items-center gap-1.5 text-[12px] text-amber-600 bg-amber-50 dark:bg-amber-950/30 dark:text-amber-400 border border-amber-200 dark:border-amber-800 rounded px-2.5 py-1",children:[w.jsx(Vp,{size:12}),"처리 필요 주문 ",y,"건"]}),f&&w.jsx("span",{className:"text-[11px] text-muted-foreground",children:f}),w.jsxs("button",{type:"button",onClick:x,disabled:u,className:"flex items-center gap-1.5 text-[12px] text-muted-foreground hover:text-foreground border border-border rounded px-2.5 py-1 transition-colors disabled:opacity-50",children:[w.jsx(NK,{size:12,className:u?"animate-spin":""}),u?"동기화 중...":"주문 동기화"]})]})]}),w.jsxs("div",{className:"grid grid-cols-6 gap-3 mb-6",children:[w.jsx(Ff,{label:"오늘 주문",value:(a==null?void 0:a.today.count)??"-",sub:"건"}),w.jsx(Ff,{label:"처리 필요 주문",value:y,sub:"결제대기 + 결제완료",highlight:y>0,onClick:()=>{window.location.hash="orders?status=pending,paid"}}),w.jsx(Ff,{label:"이번 달 매출",value:a?`${Math.round(a.thisMonth.revenue/1e4).toLocaleString()}만`:"-",sub:T!==null?`전월比 ${S(T)}`:"전월 데이터 없음",highlight:T!==null&&T>0}),w.jsx(Ff,{label:"이번 달 주문",value:(a==null?void 0:a.thisMonth.count)??"-",sub:"건"}),w.jsx(Ff,{label:"누적 주문",value:(n==null?void 0:n.totalOrders.toLocaleString())??"-"}),w.jsx(Ff,{label:"누적 매출",value:`${Math.round(((n==null?void 0:n.totalRevenue)??0)/1e4).toLocaleString()}만원`})]}),w.jsxs("div",{className:"grid grid-cols-3 gap-4 mb-6",children:[w.jsxs("div",{className:"border border-border rounded-lg bg-card p-4",children:[w.jsxs("div",{className:"flex items-center gap-1.5 text-[12px] font-medium",children:[w.jsx(vG,{size:13}),"판매채널"]}),w.jsx("div",{className:"text-[10px] text-muted-foreground opacity-60 mb-3",children:"API 연결 상태"}),w.jsx("div",{className:"space-y-1.5 mb-3",children:((r==null?void 0:r.listing.channels)??(t==null?void 0:t.channels)??[]).map(R=>w.jsxs("div",{className:"flex items-center gap-2 text-[12px]",children:[w.jsx(TSe,{connected:R.connected}),w.jsx("span",{className:"text-foreground",children:R.channel}),R.connected?w.jsx("span",{className:"ml-auto text-[11px] text-muted-foreground",children:R.storeId}):w.jsx("span",{className:"ml-auto text-[11px] text-muted-foreground",children:"미연결"})]},R.channel))}),((r==null?void 0:r.listing.recentLogs)??[]).length>0&&w.jsx("div",{className:"pt-2 border-t border-border/50",children:r==null?void 0:r.listing.recentLogs.map((R,I)=>w.jsx("div",{className:"text-[11px] text-muted-foreground py-0.5 truncate",children:R.message},`${I}-${R.message}`))})]}),w.jsxs("div",{className:"border border-border rounded-lg bg-card p-4",children:[w.jsxs("div",{className:"flex items-center gap-1.5 text-[12px] font-medium",children:[w.jsx(cx,{size:13}),"채널별 주문"]}),w.jsx("div",{className:"text-[10px] text-muted-foreground opacity-60 mb-3",children:"임포트 데이터 기준 (API+CSV 포함)"}),L.length>0?(()=>{const R=Math.max(...L.map(I=>I.orderCount),1);return w.jsx("div",{className:"space-y-2",children:[...L].sort((I,k)=>k.orderCount-I.orderCount).map(I=>w.jsxs("div",{className:"flex items-center gap-2",children:[w.jsx("span",{className:"text-[11px] w-[72px] shrink-0 truncate",children:g2[I.channel]??I.channel}),w.jsx("div",{className:"flex-1 min-w-0",children:w.jsx("div",{className:"w-full bg-muted rounded-full h-1.5",children:w.jsx("div",{className:"h-full bg-primary/50 rounded-full",style:{width:`${I.orderCount/R*100}%`}})})}),w.jsx("span",{className:"text-[11px] text-muted-foreground shrink-0 w-8 text-right",children:I.orderCount.toLocaleString()})]},I.channel))})})():w.jsx("div",{className:"text-[12px] text-muted-foreground",children:"데이터 없음"})]}),w.jsxs("div",{className:"border border-border rounded-lg bg-card p-4",children:[w.jsxs("div",{className:"flex items-center gap-1.5 mb-3 text-[12px] font-medium",children:[w.jsx(gG,{size:13}),"주문상태"]}),r!=null&&r.operations.orderSummary&&Object.keys(r.operations.orderSummary).length>0?w.jsx("div",{className:"space-y-1 mb-3",children:Object.entries(r.operations.orderSummary).map(([R,I])=>w.jsxs("div",{className:"flex items-center justify-between text-[12px]",children:[w.jsx("span",{className:"text-muted-foreground",children:D[R]??R}),w.jsxs("span",{className:"font-medium",children:[I,"건"]})]},R))}):w.jsx("div",{className:"text-[12px] text-muted-foreground mb-3",children:"주문 데이터 없음"}),(r==null?void 0:r.operations.orderCacheAge)!==null&&(r==null?void 0:r.operations.orderCacheAge)!==void 0&&w.jsxs("div",{className:"text-[10px] text-muted-foreground/60 pt-2 border-t border-border/50",children:[Math.floor(r.operations.orderCacheAge/60),"분 전 갱신"]})]})]}),w.jsxs("div",{className:"grid grid-cols-[1fr_2fr_1fr] gap-4 mb-6",children:[w.jsxs("div",{className:"border border-border rounded-lg bg-card p-4",children:[w.jsxs("div",{className:"flex items-center justify-between mb-3",children:[w.jsxs("div",{className:"flex items-center gap-1.5 text-[12px] font-medium",children:[w.jsx(cx,{size:13}),"매출 랭킹"]}),w.jsx("div",{className:"flex gap-0.5",children:["product","sku","category","line"].map(R=>w.jsx("button",{type:"button",onClick:()=>g(R),className:Ye("text-[10px] px-1.5 py-0.5 rounded transition-colors",v===R?"bg-primary text-primary-foreground":"text-muted-foreground hover:text-foreground"),children:R==="product"?"상품":R==="sku"?"SKU":R==="category"?"카테고리":"제품라인"},R))})]}),s?w.jsx("div",{className:"text-[11px] text-muted-foreground",children:"로딩 중..."}):(()=>{var k;let R=[];if(v==="product"?R=[...(o==null?void 0:o.catalog)??[]].sort((z,O)=>O.totalRevenue-z.totalRevenue).slice(0,8).map(z=>({key:z.productName,label:z.productName,totalRevenue:z.totalRevenue})):v==="sku"?R=[...(o==null?void 0:o.catalog)??[]].sort((z,O)=>O.totalRevenue-z.totalRevenue).slice(0,8).map(z=>({key:z.sku,label:z.sku||z.productName,totalRevenue:z.totalRevenue})):v==="category"?R=[...(o==null?void 0:o.byCategory)??[]].sort((z,O)=>O.totalRevenue-z.totalRevenue).slice(0,8).map(z=>({key:z.category,label:z.category||"미분류",totalRevenue:z.totalRevenue})):R=[...(o==null?void 0:o.byLine)??[]].sort((z,O)=>O.totalRevenue-z.totalRevenue).slice(0,8).map(z=>({key:z.productLine,label:z.productLine||"미분류",totalRevenue:z.totalRevenue})),R.length===0)return w.jsx("div",{className:"text-[11px] text-muted-foreground",children:"데이터 없음"});const I=((k=R[0])==null?void 0:k.totalRevenue)??1;return w.jsx("div",{className:"space-y-2",children:R.map((z,O)=>w.jsxs("div",{className:"flex items-center gap-2",children:[w.jsx("span",{className:"text-[10px] text-muted-foreground w-3 text-right shrink-0",children:O+1}),w.jsxs("div",{className:"flex-1 min-w-0",children:[w.jsxs("div",{className:"flex items-center justify-between mb-0.5",children:[w.jsx("span",{className:"text-[11px] truncate",children:z.label}),w.jsxs("span",{className:"text-[10px] text-muted-foreground ml-1 shrink-0",children:[Math.round(z.totalRevenue/1e4).toLocaleString(),"만"]})]}),w.jsx("div",{className:"w-full bg-muted rounded-full h-1",children:w.jsx("div",{className:"h-full bg-primary/50 rounded-full",style:{width:`${z.totalRevenue/I*100}%`}})})]})]},z.key||O))})})(),(v==="category"||v==="line")&&((o==null?void 0:o.unmappedCount)??0)>0&&w.jsxs("div",{className:"mt-2 text-[10px] text-muted-foreground/60 border-t border-border/50 pt-1.5",children:["미매핑 ",o==null?void 0:o.unmappedCount,"건 제외"]})]}),L.length>0?w.jsxs("div",{className:"border border-border rounded-lg bg-card p-4",children:[w.jsx("div",{className:"text-[12px] font-medium mb-3",children:"채널별 정산 현황"}),w.jsxs("table",{className:"w-full text-[12px]",style:{borderCollapse:"collapse"},children:[w.jsx("thead",{children:w.jsxs("tr",{className:"border-b border-border",children:[w.jsx("th",{className:"py-1.5 text-left text-[11px] font-semibold text-muted-foreground",children:"채널"}),w.jsx("th",{className:"py-1.5 text-right text-[11px] font-semibold text-muted-foreground",children:"주문"}),w.jsx("th",{className:"py-1.5 text-right text-[11px] font-semibold text-muted-foreground",children:"매출"}),w.jsx("th",{className:"py-1.5 text-right text-[11px] font-semibold text-muted-foreground",children:"수수료율"}),w.jsx("th",{className:"py-1.5 text-right text-[11px] font-semibold text-muted-foreground",children:"순수익"})]})}),w.jsx("tbody",{children:L.map(R=>w.jsxs("tr",{className:"border-b border-border/50",children:[w.jsx("td",{className:"py-1.5",children:g2[R.channel]??R.channel}),w.jsx("td",{className:"py-1.5 text-right text-muted-foreground",children:R.orderCount.toLocaleString()}),w.jsxs("td",{className:"py-1.5 text-right font-medium",children:[Math.round(R.totalRevenue/1e4).toLocaleString(),"만"]}),w.jsx("td",{className:"py-1.5 text-right text-muted-foreground",children:R.avgCommissionRate!=null?`${(R.avgCommissionRate*100).toFixed(1)}%`:"-"}),w.jsx("td",{className:"py-1.5 text-right text-emerald-600 dark:text-emerald-400 font-medium",children:R.netRevenue!=null?`${Math.round(R.netRevenue/1e4).toLocaleString()}만`:"-"})]},R.channel))})]})]}):w.jsx("div",{className:"border border-border rounded-lg bg-card p-4 flex items-center justify-center text-[12px] text-muted-foreground",children:"정산 데이터 없음"}),w.jsxs("div",{className:"border border-border rounded-lg bg-card p-4",children:[w.jsxs("div",{className:"flex items-center gap-1.5 mb-3 text-[12px] font-medium",children:[w.jsx(_K,{size:13}),"공헌이익 순위"]}),L.length>0?w.jsxs(w.Fragment,{children:[w.jsx("div",{className:"space-y-2",children:[...L].filter(R=>R.netRevenue!=null).sort((R,I)=>(I.netRevenue??0)-(R.netRevenue??0)).slice(0,8).map((R,I)=>{const k=(R.netRevenue??0)/E*100;return w.jsxs("div",{className:"flex items-center gap-2",children:[w.jsx("span",{className:"text-[10px] text-muted-foreground w-3 text-right shrink-0",children:I+1}),w.jsxs("div",{className:"flex-1 min-w-0",children:[w.jsxs("div",{className:"flex items-center justify-between mb-0.5",children:[w.jsx("span",{className:"text-[11px] truncate",children:g2[R.channel]??R.channel}),w.jsxs("span",{className:"text-[10px] text-emerald-600 dark:text-emerald-400 ml-1 shrink-0",children:[Math.round((R.netRevenue??0)/1e4).toLocaleString(),"만"]})]}),w.jsx("div",{className:"w-full bg-muted rounded-full h-1",children:w.jsx("div",{className:"h-full bg-emerald-500/50 rounded-full",style:{width:`${k}%`}})})]})]},R.channel)})}),w.jsx("div",{className:"mt-2 text-[10px] text-muted-foreground/60 border-t border-border/50 pt-1.5",children:"채널별 순수익 기준 · 채널×카테고리 조합 추후 지원"})]}):w.jsx("div",{className:"text-[12px] text-muted-foreground",children:"데이터 없음"})]})]}),(a||i)&&w.jsxs("div",{className:"border border-border rounded-lg bg-card p-4 mb-6",children:[w.jsxs("div",{className:"flex items-center gap-1.5 mb-4 text-[12px] font-medium",children:[w.jsx($u,{size:13}),"성장 트렌드"]}),w.jsxs("div",{className:"grid grid-cols-[200px_1fr] gap-6",children:[w.jsx("div",{className:"space-y-3",children:[{label:"전월比 MoM",pct:T,sub:"이번달 매출 기준"},{label:"전년동월比 YoY",pct:C,sub:"이번달 매출 기준"},{label:"전주比 WoW",pct:M,sub:"이번주 주문 기준"}].map(({label:R,pct:I,sub:k})=>w.jsxs("div",{children:[w.jsx("div",{className:"text-[10px] text-muted-foreground opacity-60",children:R}),w.jsxs("div",{className:Ye("text-[18px] font-semibold flex items-center gap-1",I===null?"text-muted-foreground":I>=0?"text-emerald-600 dark:text-emerald-400":"text-red-500"),children:[I!==null&&(I>=0?w.jsx($u,{size:14}):w.jsx(mG,{size:14})),S(I)]}),w.jsx("div",{className:"text-[10px] text-muted-foreground opacity-60",children:k})]},R))}),w.jsxs("div",{children:[w.jsxs("div",{className:"flex items-center gap-3 mb-2 text-[10px] text-muted-foreground",children:[w.jsxs("span",{className:"flex items-center gap-1",children:[w.jsx("span",{className:"inline-block w-4 h-0.5 bg-primary rounded"}),"올해"]}),w.jsxs("span",{className:"flex items-center gap-1 opacity-40",children:[w.jsx("span",{className:"inline-block w-4 h-0.5 bg-muted-foreground rounded"}),"작년"]}),w.jsx("span",{className:"ml-auto opacity-60",children:"주간 주문 건수"})]}),i?w.jsx(ASe,{thisYear:i.thisYear,lastYear:i.lastYear}):w.jsx("div",{className:"h-[72px] flex items-center justify-center text-[11px] text-muted-foreground",children:"로딩 중..."})]})]})]}),w.jsxs("div",{className:"border border-border rounded-lg bg-card p-4",children:[w.jsxs("div",{className:"text-[12px] font-medium mb-3 flex items-center gap-1.5",children:[w.jsx(kK,{size:12}),"최근 활동"]}),((r==null?void 0:r.logs)??[]).length===0?w.jsx("div",{className:"text-[12px] text-muted-foreground py-3 text-center",children:"활동 없음"}):w.jsx("div",{children:((r==null?void 0:r.logs)??[]).slice(0,10).map((R,I)=>w.jsx(CSe,{log:R},I))})]})]})}function m2({text:r}){const[e,t]=Z.useState(!1);return w.jsxs("span",{className:"relative inline-flex items-center",children:[w.jsx("button",{type:"button",onMouseEnter:()=>t(!0),onMouseLeave:()=>t(!1),className:"text-muted-foreground/50 hover:text-muted-foreground ml-0.5 cursor-default",children:w.jsx(SM,{size:10})}),e&&w.jsx("span",{className:"absolute bottom-full left-1/2 -translate-x-1/2 mb-1.5 z-50 w-48 text-[10px] leading-relaxed bg-popover border border-border text-foreground rounded-md px-2.5 py-1.5 shadow-md whitespace-normal pointer-events-none",children:r})]})}function N0({label:r,value:e,sub:t,warn:n}){return w.jsxs("div",{className:Ye("border border-border rounded-lg p-4 bg-card",n&&"border-amber-500/50"),children:[w.jsx("div",{className:"text-[11px] text-muted-foreground mb-1",children:r}),w.jsx("div",{className:Ye("text-2xl font-semibold",n&&"text-amber-500"),children:e}),t&&w.jsx("div",{className:"text-[11px] text-muted-foreground mt-0.5",children:t})]})}function y2(r){return`${Math.round(r/1e4).toLocaleString()}만원`}function G4({label:r,options:e,selected:t,onToggle:n,onClear:a}){const[i,o]=Z.useState(!1);return w.jsxs("div",{className:"relative",children:[w.jsxs("button",{type:"button",onClick:()=>o(!i),className:Ye("flex items-center gap-1 text-[12px] px-2.5 py-1 rounded-md border cursor-pointer transition-colors",t.size>0?"border-primary/40 bg-primary/5 text-foreground":"border-border bg-card text-muted-foreground"),children:[r,t.size>0&&w.jsx("span",{className:"text-[10px] font-semibold bg-primary/10 text-primary px-1 rounded",children:t.size}),w.jsx(Ma,{size:12,className:Ye("transition-transform",i&&"rotate-180")})]}),i&&w.jsxs(w.Fragment,{children:[w.jsx("div",{className:"fixed inset-0 z-10",onClick:()=>o(!1)}),w.jsxs("div",{className:"absolute top-full left-0 mt-1 z-20 bg-card border border-border rounded-lg shadow-lg py-1 min-w-[160px] max-h-[280px] overflow-y-auto",children:[t.size>0&&w.jsxs("button",{type:"button",onClick:()=>{a(),o(!1)},className:"w-full text-left px-3 py-1.5 text-[11px] text-muted-foreground hover:bg-muted/50 flex items-center gap-1",children:[w.jsx(ic,{size:10})," 초기화"]}),e.map(s=>w.jsxs("label",{className:"flex items-center gap-2 px-3 py-1.5 text-[12px] hover:bg-muted/50 cursor-pointer",children:[w.jsx("input",{type:"checkbox",checked:t.has(s),onChange:()=>n(s),className:"rounded border-border"}),s||"(미분류)"]},s))]})]})]})}function DSe(){const[r,e]=Z.useState(""),[t,n]=Z.useState(""),a=Z.useMemo(()=>{const de={};return r&&(de.from=r),t&&(de.to=t),Object.keys(de).length>0?de:void 0},[r,t]),{data:i,isLoading:o,error:s}=fG(a),[l,u]=Z.useState("category"),[c,f]=Z.useState(new Set),[d,v]=Z.useState(new Set),[g,x]=Z.useState(!1),[y,b]=Z.useState(null),[S,T]=Z.useState(""),[C,M]=Z.useState(!1),[D,L]=Z.useState(""),[E,R]=Z.useState(!1),I=Z.useCallback(async()=>{if(g){x(!1),M(!1);return}try{const ve=await(await fetch("/api/product-rules")).json();b(ve.content),T(ve.path),x(!0)}catch{x(!0)}},[g]),k=Z.useCallback(()=>{L(y??""),M(!0)},[y]),z=Z.useCallback(async()=>{R(!0);try{await fetch("/api/product-rules",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:D})}),b(D),M(!1)}finally{R(!1)}},[D]),O=(i==null?void 0:i.catalog)??[],G=(i==null?void 0:i.byCategory)??[],F=(i==null?void 0:i.byLine)??[],B=Z.useMemo(()=>O.filter(de=>!(c.size>0&&!c.has(de.category??"")||d.size>0&&!d.has(de.productLine??""))),[O,c,d]),Y=Z.useMemo(()=>[...B].sort((de,ve)=>ve.totalRevenue-de.totalRevenue),[B]),H=Z.useMemo(()=>O.reduce((de,ve)=>de+ve.totalQuantity,0),[O]),X=Z.useMemo(()=>O.reduce((de,ve)=>de+ve.totalRevenue,0),[O]),V=Z.useMemo(()=>[...new Set(O.map(de=>de.category??""))].sort(),[O]),W=Z.useMemo(()=>[...new Set(O.map(de=>de.productLine??""))].sort(),[O]),$=Z.useMemo(()=>Math.max(...G.map(de=>de.totalRevenue),1),[G]),te=Z.useMemo(()=>Math.max(...F.map(de=>de.totalRevenue),1),[F]),le=(de,ve)=>{const be=new Set(de);return be.has(ve)?be.delete(ve):be.add(ve),be},ge=c.size>0||d.size>0,we=!!r||!!t;return o?w.jsxs("div",{children:[w.jsx("h2",{className:"text-xl font-medium mb-6",children:"상품"}),w.jsx("div",{className:"text-sm text-muted-foreground py-8 text-center",children:"불러오는 중..."})]}):s?w.jsxs("div",{children:[w.jsx("h2",{className:"text-xl font-medium mb-6",children:"상품"}),w.jsx("div",{className:"text-sm text-destructive py-8 text-center",children:"카탈로그 조회 실패"})]}):O.length===0&&!we?w.jsxs("div",{children:[w.jsx("h2",{className:"text-xl font-medium mb-6",children:"상품"}),w.jsxs("div",{className:"border border-dashed border-border rounded-lg p-12 text-center text-muted-foreground text-sm",children:["상품 카탈로그가 비어있습니다.",w.jsx("div",{className:"text-[11px] mt-1",children:"sppt product parse 스킬로 상품명을 해체하세요."})]})]}):w.jsxs("div",{children:[w.jsxs("div",{className:"flex items-center justify-between mb-4",children:[w.jsx("h2",{className:"text-xl font-medium",children:"상품"}),w.jsxs("div",{className:"flex items-center gap-3",children:[w.jsxs("button",{type:"button",onClick:I,className:Ye("flex items-center gap-1.5 text-[12px] px-2.5 py-1 rounded-md border cursor-pointer transition-colors",g?"border-primary bg-primary text-primary-foreground":"border-primary bg-primary text-primary-foreground hover:opacity-90"),children:[w.jsx(jk,{size:12}),"분류 규칙"]}),w.jsxs("span",{className:"text-[12px] text-muted-foreground",children:["총 ",O.length.toLocaleString(),"개 SKU"]})]})]}),w.jsx(wM,{from:r,to:t,onChange:(de,ve)=>{e(de),n(ve)},className:"mb-5"}),g&&w.jsxs("div",{className:"border border-border rounded-lg bg-card mb-6 overflow-hidden",children:[w.jsxs("div",{className:"flex items-center justify-between px-4 py-2 border-b border-border bg-muted/40",children:[w.jsxs("div",{className:"flex items-center gap-2",children:[w.jsx(jk,{size:13,className:"text-muted-foreground"}),w.jsx("span",{className:"text-[12px] font-medium",children:"분류 규칙"}),S&&w.jsx("span",{className:"text-[10px] text-muted-foreground font-mono",children:S})]}),w.jsxs("div",{className:"flex items-center gap-2",children:[C?w.jsxs(w.Fragment,{children:[w.jsx("button",{type:"button",onClick:()=>M(!1),className:"text-[11px] px-2 py-0.5 rounded border border-border text-muted-foreground hover:text-foreground cursor-pointer",children:"취소"}),w.jsx("button",{type:"button",onClick:z,disabled:E,className:"text-[11px] px-2.5 py-0.5 rounded bg-primary text-primary-foreground cursor-pointer disabled:opacity-50",children:E?"저장 중...":"저장"})]}):w.jsx("button",{type:"button",onClick:k,className:"text-[11px] px-2.5 py-0.5 rounded border border-border bg-secondary text-foreground hover:bg-muted cursor-pointer",children:"편집"}),w.jsx("button",{type:"button",onClick:()=>{x(!1),M(!1)},className:"text-muted-foreground hover:text-foreground cursor-pointer",children:w.jsx(ic,{size:14})})]})]}),w.jsx("div",{className:"px-4 py-2 text-[11px] text-muted-foreground border-b border-border/50 bg-muted/20",children:"AI가 이 규칙을 바탕으로 주문 데이터의 상품명을 SKU, 카테고리, 제품라인 단위로 자동 분류합니다."}),w.jsx("div",{className:"px-4 py-3 max-h-[400px] overflow-y-auto",children:C?w.jsx("textarea",{value:D,onChange:de=>L(de.target.value),className:"w-full h-[350px] text-[11px] leading-relaxed bg-transparent outline-none resize-none font-sans text-foreground/90",placeholder:`예시:
|
|
285
|
+
|
|
286
|
+
## 카테고리 분류
|
|
287
|
+
- 프라이팬/웍: '팬', '웍' 류
|
|
288
|
+
- 냄비: '냄비', '쿠커' 포함
|
|
289
|
+
|
|
290
|
+
## 제품 라인
|
|
291
|
+
- 디피니티, 엑스클립스 ...`}):y?w.jsx("pre",{className:"text-[11px] leading-relaxed text-foreground/80 whitespace-pre-wrap font-sans",children:y}):w.jsxs("div",{className:"text-[12px] text-muted-foreground py-4 text-center",children:["분류 규칙이 등록되지 않았습니다.",w.jsxs("div",{className:"text-[11px] mt-1",children:[w.jsx("button",{type:"button",onClick:k,className:"underline cursor-pointer",children:"여기서 직접 작성"}),"하거나 AI(e.g. Claude Code 등)에서 알려주세요."]})]})}),w.jsxs("div",{className:"px-4 py-2.5 border-t border-border bg-muted/20 text-[11px] text-muted-foreground",children:[w.jsx("span",{className:"font-medium text-foreground/70",children:"Tip"})," 분류 규칙은 자연어로 자유롭게 작성하세요. AI(e.g. Claude Code 등)에서"," ",w.jsx("span",{className:"font-mono bg-muted/40 px-1 rounded text-[10px]",children:"우리 상품 분류 규칙 이렇게 바꿔줘"})," ","라고 하면 AI가 이 파일을 직접 수정합니다. 규칙 작성 후"," ",w.jsx("span",{className:"font-mono bg-muted/40 px-1 rounded text-[10px]",children:"상품명 분석해줘"})," ","로 카탈로그를 자동 구축할 수 있습니다."]})]}),w.jsxs("div",{className:"grid grid-cols-4 gap-3 mb-4",children:[w.jsx(N0,{label:"카탈로그 SKU",value:O.length.toLocaleString()}),w.jsx(N0,{label:"미매핑 상품",value:(i==null?void 0:i.unmappedCount)??0,warn:((i==null?void 0:i.unmappedCount)??0)>0}),w.jsx(N0,{label:"총 판매 수량",value:H.toLocaleString(),sub:"개"}),w.jsx(N0,{label:"총 매출",value:y2(X)})]}),w.jsxs("div",{className:"border border-border/50 rounded-lg bg-muted/10 px-4 py-3 mb-6 text-[11px] text-muted-foreground space-y-1.5",children:[w.jsxs("div",{className:"flex gap-6",children:[w.jsx("span",{className:"shrink-0 font-medium text-foreground/50 w-16",children:"SKU 분류"}),w.jsxs("span",{children:["위 ",w.jsx("span",{className:"text-foreground/70 font-medium",children:"분류 규칙"})," 버튼에서 규칙을 작성해두면, AI(e.g. Claude Code 등)에서"," ",w.jsx("span",{className:"font-mono bg-muted/60 px-1 rounded",children:"상품명 분석해줘"})," 한마디로 카탈로그가 자동으로 구축됩니다."]})]}),w.jsxs("div",{className:"flex gap-6",children:[w.jsx("span",{className:"shrink-0 font-medium text-foreground/50 w-16",children:"원가 등록"}),w.jsxs("span",{children:["매입단가·택배비 등이 담긴 엑셀 파일을 AI(e.g. Claude Code 등)에 붙여넣고 입력해달라고 하면, ",w.jsx("span",{className:"font-mono bg-muted/60 px-1 rounded",children:"sppt cost set"})," ","커맨드로 알아서 처리해줍니다. 등록하면 공헌이익이 자동 계산됩니다."]})]})]}),w.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[w.jsx("button",{type:"button",onClick:()=>u("category"),className:Ye("text-[12px] px-3 py-1.5 rounded-md border transition-colors cursor-pointer",l==="category"?"border-primary/40 bg-primary/5 text-foreground font-medium":"border-border bg-card text-muted-foreground"),children:"카테고리별"}),w.jsx("button",{type:"button",onClick:()=>u("line"),className:Ye("text-[12px] px-3 py-1.5 rounded-md border transition-colors cursor-pointer",l==="line"?"border-primary/40 bg-primary/5 text-foreground font-medium":"border-border bg-card text-muted-foreground"),children:"제품라인별"})]}),w.jsx("div",{className:"border border-border rounded-lg overflow-hidden mb-6",children:w.jsxs("table",{className:"w-full text-[12px] border-collapse",children:[w.jsx("thead",{children:w.jsxs("tr",{className:"border-b border-border bg-muted/40 text-[11px] font-semibold text-muted-foreground",children:[w.jsx("th",{className:"px-3 py-2 text-left",children:l==="category"?"카테고리":"제품라인"}),w.jsx("th",{className:"px-3 py-2 text-right",children:"주문수"}),w.jsx("th",{className:"px-3 py-2 text-right",children:"판매 수량"}),w.jsx("th",{className:"px-3 py-2 text-right",children:"매출"}),w.jsx("th",{className:"px-3 py-2 text-right w-[60px]",children:"비중(%)"}),w.jsx("th",{className:"px-3 py-2 w-[120px]"})]})}),w.jsx("tbody",{className:"bg-card",children:(l==="category"?G:F).map((de,ve)=>{const be=l==="category"?de.category:de.productLine,Oe=l==="category"?$:te,_e=X>0?de.totalRevenue/X*100:0,Le=Oe>0?de.totalRevenue/Oe*100:0;return w.jsxs("tr",{className:Ye("border-b border-border/60",ve%2!==0&&"bg-muted/5"),children:[w.jsx("td",{className:"px-3 py-2",children:be||"(미분류)"}),w.jsx("td",{className:"px-3 py-2 text-right",children:de.orderCount.toLocaleString()}),w.jsx("td",{className:"px-3 py-2 text-right",children:de.totalQuantity.toLocaleString()}),w.jsx("td",{className:"px-3 py-2 text-right",children:y2(de.totalRevenue)}),w.jsx("td",{className:"px-3 py-2 text-right",children:_e.toFixed(1)}),w.jsx("td",{className:"px-3 py-2",children:w.jsx("div",{className:"h-2 rounded-full bg-muted/30 overflow-hidden",children:w.jsx("div",{className:"h-full rounded-full bg-primary/60",style:{width:`${Le}%`}})})})]},be)})})]})}),w.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[w.jsx("span",{className:"text-[12px] font-medium",children:"SKU 상세"}),w.jsx(G4,{label:"카테고리",options:V,selected:c,onToggle:de=>f(le(c,de)),onClear:()=>f(new Set)}),w.jsx(G4,{label:"제품라인",options:W,selected:d,onToggle:de=>v(le(d,de)),onClear:()=>v(new Set)}),ge&&w.jsxs(w.Fragment,{children:[w.jsxs("span",{className:"text-[11px] text-muted-foreground",children:[Y.length," / ",O.length,"건"]}),w.jsxs("button",{type:"button",onClick:()=>{f(new Set),v(new Set)},className:"text-[11px] text-muted-foreground hover:text-foreground flex items-center gap-0.5 cursor-pointer",children:[w.jsx(ic,{size:11})," 초기화"]})]})]}),w.jsx("div",{className:"border border-border rounded-lg overflow-hidden",children:w.jsxs("table",{className:"w-full text-[12px] border-collapse",children:[w.jsx("thead",{children:w.jsxs("tr",{className:"border-b border-border bg-muted/40 text-[11px] font-semibold text-muted-foreground",children:[w.jsx("th",{className:"px-3 py-2 text-left w-[80px]",children:"SKU ID"}),w.jsx("th",{className:"px-3 py-2 text-left",children:"브랜드"}),w.jsx("th",{className:"px-3 py-2 text-left",children:"라인"}),w.jsx("th",{className:"px-3 py-2 text-left",children:"카테고리"}),w.jsx("th",{className:"px-3 py-2 text-left",children:"SKU 이름"}),w.jsx("th",{className:"px-3 py-2 text-left",children:"옵션"}),w.jsx("th",{className:"px-3 py-2 text-right",children:"수량"}),w.jsx("th",{className:"px-3 py-2 text-right",children:"매출"}),w.jsx("th",{className:"px-3 py-2 text-right",children:"판매단가"}),w.jsx("th",{className:"px-3 py-2 text-right",children:w.jsxs("span",{className:"inline-flex items-center justify-end gap-0.5",children:["매입단가",w.jsx(m2,{text:"sppt cost set으로 등록한 매입단가(원가)입니다."})]})}),w.jsx("th",{className:"px-3 py-2 text-right",children:w.jsxs("span",{className:"inline-flex items-center justify-end gap-0.5",children:["매입단가+변동비",w.jsx(m2,{text:"매입단가 + 포장재비 + 택배비 + 풀필먼트비 + 기타 변동비 합산입니다."})]})}),w.jsx("th",{className:"px-3 py-2 text-right",children:w.jsxs("span",{className:"inline-flex items-center justify-end gap-0.5",children:["공헌이익/개",w.jsx(m2,{text:"판매단가(평균) - 매입단가+변동비. 채널 수수료 차감 전 기준입니다."})]})})]})}),w.jsxs("tbody",{className:"bg-card",children:[Y.map((de,ve)=>{const be=de.contributionMargin,Oe=be===null?"text-muted-foreground/40":be>=0?"text-emerald-600 dark:text-emerald-400":"text-red-500";return w.jsxs("tr",{className:Ye("border-b border-border/60",ve%2!==0&&"bg-muted/5"),children:[w.jsx("td",{className:"px-3 py-2 w-[80px] max-w-[80px]",children:w.jsx("span",{className:"font-mono text-[10px] text-muted-foreground block truncate cursor-text select-all",title:de.sku,children:de.sku})}),w.jsx("td",{className:"px-3 py-2",children:de.brand??"-"}),w.jsx("td",{className:"px-3 py-2",children:de.productLine||"(미분류)"}),w.jsx("td",{className:"px-3 py-2",children:de.category||"(미분류)"}),w.jsx("td",{className:"px-3 py-2 max-w-[220px] truncate",title:de.productName,children:de.productName}),w.jsx("td",{className:"px-3 py-2 text-muted-foreground max-w-[120px] truncate",title:de.option,children:de.option??"-"}),w.jsx("td",{className:"px-3 py-2 text-right",children:de.totalQuantity.toLocaleString()}),w.jsx("td",{className:"px-3 py-2 text-right",children:y2(de.totalRevenue)}),w.jsx("td",{className:"px-3 py-2 text-right text-muted-foreground",children:de.totalQuantity>0?`${Math.round(de.totalRevenue/de.totalQuantity).toLocaleString()}원`:"-"}),w.jsx("td",{className:"px-3 py-2 text-right text-muted-foreground",children:de.purchaseCost!==null?`${de.purchaseCost.toLocaleString()}원`:"-"}),w.jsx("td",{className:"px-3 py-2 text-right text-muted-foreground",children:de.totalVariableCost!==null?`${Math.round(de.totalVariableCost).toLocaleString()}원`:"-"}),w.jsx("td",{className:Ye("px-3 py-2 text-right font-medium",Oe),children:be!==null?`${Math.round(be).toLocaleString()}원`:"-"})]},`${de.sku}-${ve}`)}),Y.length===0&&w.jsx("tr",{children:w.jsx("td",{colSpan:12,className:"px-3 py-8 text-center text-muted-foreground text-[13px]",children:"필터 조건에 맞는 SKU가 없습니다."})})]})]})})]})}function LSe(r){if(!r.startedAt)return"";const t=(r.endedAt??Date.now())-r.startedAt;return t<1e3?`${t}ms`:`${(t/1e3).toFixed(1)}s`}function NSe({status:r}){return r==="pending"?w.jsx("span",{className:"w-4 h-4 rounded-full border-2 border-muted-foreground/40 flex-shrink-0"}):r==="running"?w.jsx("span",{className:"w-4 h-4 flex-shrink-0 flex items-center justify-center",children:w.jsx("span",{className:"w-3.5 h-3.5 border-2 border-blue-500 border-t-transparent rounded-full animate-spin"})}):r==="completed"?w.jsx("span",{className:"w-4 h-4 rounded-full bg-green-500/15 flex-shrink-0 flex items-center justify-center",children:w.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none","aria-hidden":"true",children:w.jsx("path",{d:"M2 5l2.5 2.5L8 3",stroke:"#22c55e",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}):w.jsx("span",{className:"w-4 h-4 rounded-full bg-red-500/15 flex-shrink-0 flex items-center justify-center",children:w.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none","aria-hidden":"true",children:w.jsx("path",{d:"M3 3l4 4M7 3l-4 4",stroke:"#ef4444",strokeWidth:"1.5",strokeLinecap:"round"})})})}function RSe({session:r}){if(!r)return w.jsx("div",{className:"bg-card border border-border rounded-xl flex items-center justify-center min-h-[120px]",children:w.jsx("p",{className:"text-[13px] text-muted-foreground",children:"세션을 선택하세요"})});const e=r.tasks.length>0?"태스크":"출력";return w.jsxs("div",{className:"bg-card border border-border rounded-xl overflow-hidden",children:[w.jsxs("div",{className:"px-4 py-2.5 border-b border-border flex items-center gap-2",children:[w.jsx("span",{className:"text-[11px] font-semibold text-muted-foreground uppercase tracking-wide",children:e}),w.jsx("span",{className:"font-mono text-[11px] text-foreground/70 truncate",children:r.command.replace(/^sppt\s+/,"")})]}),r.tasks.length>0?w.jsx("ul",{className:"divide-y divide-border",children:r.tasks.map(t=>w.jsxs("li",{className:"flex items-center gap-3 px-4 py-2.5",children:[w.jsx(NSe,{status:t.status}),w.jsx("span",{className:"text-[12px] flex-1 truncate",children:t.name}),t.detail&&w.jsx("span",{className:"text-[11px] text-muted-foreground truncate max-w-[120px]",children:t.detail}),t.startedAt&&w.jsx("span",{className:"text-[10px] text-muted-foreground flex-shrink-0",children:LSe(t)})]},t.id))}):r.output?w.jsx("pre",{className:"px-4 py-3 text-[12px] leading-relaxed text-foreground/80 whitespace-pre-wrap font-mono overflow-x-auto",children:r.output}):w.jsx("div",{className:"flex items-center justify-center py-8",children:w.jsx("p",{className:"text-[12px] text-muted-foreground",children:"출력 없음"})})]})}function ESe({sessions:r,selectedId:e,onSelect:t}){return r.length===0?w.jsx("div",{className:"bg-card border border-border rounded-xl flex items-center justify-center p-4",children:w.jsxs("p",{className:"text-[12px] text-muted-foreground text-center",children:["CLI 커맨드를 실행하면",w.jsx("br",{}),"여기에 표시됩니다"]})}):w.jsxs("div",{className:"bg-card border border-border rounded-xl overflow-hidden flex flex-col max-h-[70vh]",children:[w.jsx("div",{className:"px-3 py-2 border-b border-border flex-shrink-0",children:w.jsx("span",{className:"text-[11px] font-semibold text-muted-foreground uppercase tracking-wide",children:"세션"})}),w.jsx("ul",{className:"overflow-y-auto flex-1",children:r.map(n=>{const a=n.tasks.filter(u=>u.status==="completed").length,i=n.tasks.length,o=n.tasks.some(u=>u.status==="running"),s=n.id===e,l=TM(new Date(n.createdAt),{addSuffix:!0,locale:E1});return w.jsx("li",{children:w.jsxs("button",{type:"button",onClick:()=>t(n.id),className:["w-full text-left pl-2 pr-3 py-2.5 hover:bg-muted/60 transition-colors border-b border-border last:border-b-0",s?"bg-muted":""].join(" "),children:[w.jsxs("div",{className:"flex items-center gap-1.5 mb-1",children:[w.jsx("span",{className:["w-1.5 h-1.5 rounded-full flex-shrink-0",o?"bg-green-500 animate-pulse":"bg-muted-foreground/40"].join(" ")}),w.jsx("span",{className:"text-[12px] font-medium truncate flex-1 font-mono",children:n.command.replace(/^sppt\s+/,"")})]}),w.jsxs("div",{className:"flex items-center justify-between pl-2",children:[w.jsx("span",{className:"text-[11px] text-muted-foreground",children:i>0?`${a}/${i} 완료`:"태스크 없음"}),w.jsx("span",{className:"text-[10px] text-muted-foreground",children:l})]})]})},n.id)})})]})}function ISe(){const r=window.location.hash.slice(1),e=r.includes("?")?r.split("?")[1]:"";return new URLSearchParams(e).get("id")}function kSe(){const{data:r=[]}=aK(),[e,t]=Z.useState(ISe),n=Z.useCallback(i=>{t(i);const o=window.location.hash.split("?")[0];window.history.replaceState(null,"",`${o}?id=${i}`)},[]);Z.useEffect(()=>{r.length>0&&!e&&n(r[0].id)},[r,e,n]);const a=r.find(i=>i.id===e)??null;return w.jsxs("div",{children:[w.jsx("div",{className:"flex items-center justify-between mb-6",children:w.jsx("h2",{className:"text-xl font-medium",children:"Session"})}),w.jsxs("div",{className:"grid grid-cols-[260px_1fr] gap-4 mb-8",children:[w.jsx(ESe,{sessions:r,selectedId:e,onSelect:n}),w.jsx(RSe,{session:a})]})]})}function To({content:r,size:e=10,side:t,contentClassName:n}){return w.jsx(ol,{content:r,side:t,contentClassName:n,children:w.jsx("span",{className:"cursor-help text-muted-foreground inline-flex items-center",children:w.jsx(SM,{size:e})})})}const OSe=/^\d{4}-\d{2}-\d{2}$/,PSe=["일","월","화","수","목","금","토"];function mp(r,e){const t=new Date(`${r}T00:00:00Z`);return Number.isNaN(t.getTime())?r:(t.setUTCDate(t.getUTCDate()+e),t.toISOString().slice(0,10))}function H4(r){if(!OSe.test(r))return null;const e=new Date(`${r}T00:00:00Z`);if(Number.isNaN(e.getTime()))return null;const t=e.getUTCDay();return e.setUTCDate(e.getUTCDate()+(t===0?-6:1-t)),e.toISOString().slice(0,10)}function lN(r){const e=new Date(`${r}T00:00:00Z`);return PSe[e.getUTCDay()]??""}function X9(r){return r>=1e8?`${(r/1e8).toFixed(1)}억`:r>=1e4?`${Math.round(r/1e4)}만`:r>=1e3?`${Math.round(r/1e3)}천`:r.toLocaleString()}function mc(r){return`${Math.round(r).toLocaleString()}원`}function ch(r){return r.slice(5).replace("-","/")}const uN={cafe24:"카페24",coupang:"쿠팡",smartstore:"스마트스토어",shopify:"Shopify","toss-shopping":"토스쇼핑","29cm":"29CM",musinsa:"무신사",kurly:"컬리",ssf:"SSF",bronte:"브론테"},cN={cafe24:"#3b82f6",coupang:"#f97316",smartstore:"#22c55e",shopify:"#10b981","toss-shopping":"#38bdf8","29cm":"#64748b",musinsa:"#a1a1aa",kurly:"#a855f7",ssf:"#38bdf8",bronte:"#f43f5e"};function zSe({dateStr:r,channels:e,total:t}){return w.jsxs("div",{className:"min-w-[180px] space-y-1",children:[w.jsxs("div",{className:"text-[10px] text-muted-foreground font-medium mb-0.5",children:[ch(r)," (",lN(r),")"]}),e.map(n=>w.jsxs("div",{className:"flex items-center justify-between gap-4 text-[11px]",children:[w.jsxs("div",{className:"flex items-center gap-1.5",children:[w.jsx("span",{className:"w-1.5 h-1.5 rounded-full shrink-0",style:{backgroundColor:cN[n.channel]??"#888"}}),w.jsx("span",{className:"text-muted-foreground",children:uN[n.channel]??n.channel})]}),w.jsx("span",{className:"font-medium tabular-nums",children:mc(n.amount)})]},n.channel)),w.jsxs("div",{className:"flex justify-between gap-4 text-[11px] font-semibold pt-1 border-t border-border/40",children:[w.jsx("span",{children:"합계"}),w.jsx("span",{className:"tabular-nums text-emerald-500",children:mc(t)})]})]})}function BSe({wk:r,days:e,total:t}){const n=mp(r,6);return w.jsxs("div",{className:"min-w-[200px] space-y-2",children:[w.jsxs("div",{className:"text-[10px] text-muted-foreground font-medium",children:[ch(r)," ~ ",ch(n)]}),e.length===0?w.jsx("p",{className:"text-[11px] text-muted-foreground",children:"입금 없음"}):w.jsxs(w.Fragment,{children:[e.map(a=>w.jsxs("div",{children:[w.jsxs("div",{className:"text-[10px] text-muted-foreground/70 mb-0.5",children:[ch(a.date)," (",lN(a.date),")"]}),a.channels.map(i=>w.jsxs("div",{className:"flex items-center justify-between gap-4 text-[11px]",children:[w.jsxs("div",{className:"flex items-center gap-1.5",children:[w.jsx("span",{className:"w-1.5 h-1.5 rounded-full shrink-0",style:{backgroundColor:cN[i.channel]??"#888"}}),w.jsx("span",{className:"text-muted-foreground",children:uN[i.channel]??i.channel})]}),w.jsx("span",{className:"font-medium tabular-nums",children:mc(i.amount)})]},i.channel))]},a.date)),w.jsxs("div",{className:"flex justify-between gap-4 text-[11px] font-semibold pt-1 border-t border-border/40",children:[w.jsx("span",{children:"주간 합계"}),w.jsx("span",{className:"tabular-nums text-emerald-500",children:mc(t)})]})]})]})}const Jv=64,x2=20;function jSe({schedule:r,today:e,maxAmount:t}){const n=new Map;for(const c of r){const f=H4(c.depositDate);if(!f)continue;const d=c.byChannel.reduce((g,x)=>x.amount>g.amount?x:g,c.byChannel[0]),v=n.get(f);n.set(f,{amount:((v==null?void 0:v.amount)??0)+c.totalAmount,topChannel:(v==null?void 0:v.topChannel)??(d==null?void 0:d.channel)??"",days:[...(v==null?void 0:v.days)??[],{date:c.depositDate,amount:c.totalAmount,channels:c.byChannel}].sort((g,x)=>g.date.localeCompare(x.date))})}const a=H4(e)??e,i=[...n.keys()].sort(),o=[mp(a,-28),i[0]??a].sort()[0],s=[mp(a,56),i[i.length-1]??a].sort().at(-1),l=[];let u=o;for(;u<=s;)l.push(u),u=mp(u,7);for(;l.length<20;)l.push(mp(l[l.length-1],7));return w.jsxs("div",{className:"relative flex",style:{height:`${Jv+x2}px`},children:[w.jsx("div",{className:"absolute bottom-[20px] left-0 right-0 border-b border-border/40 pointer-events-none"}),l.map(c=>{const f=n.get(c),d=(f==null?void 0:f.amount)??0,v=d>0?Math.max(5,Math.round(d/t*Jv)):0,g=c===a,x=d>0?.2+d/t*.72:0;return w.jsx(ol,{content:w.jsx(BSe,{wk:c,days:(f==null?void 0:f.days)??[],total:(f==null?void 0:f.amount)??0}),side:"top",contentClassName:"max-w-[260px]",children:w.jsxs("div",{className:"relative flex flex-col flex-1 min-w-0 cursor-default px-0.5",style:{height:`${Jv+x2}px`},children:[g&&w.jsx("div",{className:"absolute left-1/2 -translate-x-1/2 w-px bg-primary/50 pointer-events-none",style:{top:0,height:`${Jv}px`}}),g&&w.jsx("span",{className:"absolute top-0 left-0 right-0 text-center text-[7px] text-primary font-semibold leading-none bg-card/80 pointer-events-none",children:"이번주"}),w.jsx("div",{style:{height:`${Jv-v}px`,flexShrink:0}}),v>0&&w.jsx("div",{className:"w-full rounded-t",style:{height:`${v}px`,backgroundColor:`hsl(var(--primary) / ${x})`,flexShrink:0}}),w.jsx("div",{className:Ye("text-center mt-1 leading-none truncate text-[7px]",g?"text-primary font-semibold":"text-muted-foreground/50"),children:ch(c)}),v>=20&&w.jsx("div",{className:"absolute left-0 right-0 text-center text-[7px] font-medium text-white/90 pointer-events-none",style:{bottom:`${x2+2}px`},children:X9(d)})]})},c)})]})}function VSe({year:r,month:e,depositMap:t,today:n,maxAmount:a}){const i=new Date(`${r}-${String(e).padStart(2,"0")}-01T00:00:00Z`).getUTCDay(),o=new Date(r,e,0).getDate(),s=[...Array(i).fill(null),...Array.from({length:o},(l,u)=>u+1)];return w.jsxs("div",{children:[w.jsxs("div",{className:"text-[11px] font-medium text-muted-foreground mb-2",children:[r,"년 ",e,"월"]}),w.jsxs("div",{className:"grid grid-cols-7 gap-[2px]",children:[["일","월","화","수","목","금","토"].map(l=>w.jsx("div",{className:"text-center text-[9px] text-muted-foreground/50 py-0.5 font-medium",children:l},l)),s.map((l,u)=>{if(!l)return w.jsx("div",{className:"h-[40px]"},`e-${u}`);const c=`${r}-${String(e).padStart(2,"0")}-${String(l).padStart(2,"0")}`,f=t.get(c),d=c===n,v=f?.07+f.totalAmount/a*.28:0,g=w.jsxs("div",{className:Ye("h-[40px] flex flex-col items-center justify-center gap-0.5 rounded cursor-default",d&&"ring-1 ring-inset ring-primary/50"),style:f?{backgroundColor:`hsl(var(--primary) / ${v})`}:void 0,children:[w.jsx("span",{className:Ye("text-[10px] leading-none",d?"font-bold text-primary":f?"font-medium text-foreground":"text-muted-foreground/60"),children:l}),f&&w.jsx("span",{className:"text-[8px] font-semibold leading-none text-foreground/80",children:X9(f.totalAmount)})]});return f?w.jsx(ol,{content:w.jsx(zSe,{dateStr:c,channels:f.byChannel,total:f.totalAmount}),side:"top",contentClassName:"max-w-[240px]",children:g},c):w.jsx("div",{children:g},c)})]})]})}function GSe({schedule:r,today:e}){const t=r.filter(n=>n.depositDate>=e).sort((n,a)=>n.depositDate.localeCompare(a.depositDate));return w.jsxs("div",{className:"border border-border rounded-lg bg-card overflow-y-auto h-full",children:[w.jsx("div",{className:"px-3 pt-3 pb-2 text-[11px] font-medium text-muted-foreground border-b border-border/50",children:"예정 입금"}),t.length===0?w.jsx("p",{className:"text-[12px] text-muted-foreground px-3 py-3",children:"향후 예정 없음"}):w.jsx("div",{className:"divide-y divide-border/50",children:t.map(n=>w.jsxs("div",{className:"px-3 py-2.5",children:[w.jsxs("div",{className:"text-[10px] font-semibold text-foreground/70 mb-1.5",children:[ch(n.depositDate)," ",w.jsxs("span",{className:"font-normal text-muted-foreground/60",children:["(",lN(n.depositDate),")"]})]}),w.jsxs("div",{className:"space-y-1",children:[n.byChannel.map(a=>w.jsxs("div",{className:"flex items-center justify-between gap-2 text-[11px]",children:[w.jsxs("div",{className:"flex items-center gap-1.5 min-w-0",children:[w.jsx("span",{className:"w-1.5 h-1.5 rounded-full shrink-0",style:{backgroundColor:cN[a.channel]??"#888"}}),w.jsx("span",{className:"text-muted-foreground truncate",children:uN[a.channel]??a.channel})]}),w.jsx("span",{className:"font-medium tabular-nums text-foreground shrink-0",children:mc(a.amount)})]},a.channel)),n.byChannel.length>1&&w.jsxs("div",{className:"flex justify-between text-[10px] font-semibold pt-1 border-t border-border/30",children:[w.jsx("span",{className:"text-muted-foreground/60",children:"합계"}),w.jsx("span",{className:"text-emerald-600 dark:text-emerald-400 tabular-nums",children:mc(n.totalAmount)})]})]})]},n.depositDate))})]})}function HSe({schedule:r,isLoading:e}){const t=new Date().toISOString().slice(0,10),n=new Map(r.map(f=>[f.depositDate,f])),[a,i]=t.split("-").map(Number),o=[{year:a,month:i},{year:i===12?a+1:a,month:i===12?1:i+1}],s=Math.max(...r.map(f=>f.totalAmount),1),l=r.filter(f=>f.depositDate>=t),u=l.reduce((f,d)=>f+d.totalAmount,0),c=l.reduce((f,d)=>f+d.orderCount,0);return w.jsx(lG,{delayDuration:80,children:w.jsxs("div",{className:"mt-6",children:[w.jsxs("div",{className:"flex items-center justify-between mb-3",children:[w.jsx("h3",{className:"text-[13px] font-medium",children:"입금 스케줄"}),u>0&&w.jsxs("span",{className:"text-[11px] text-muted-foreground",children:["향후"," ",w.jsx("span",{className:"text-emerald-600 dark:text-emerald-400 font-medium",children:mc(u)})," ","예정 · ",c,"건"]})]}),e?w.jsx("div",{className:"text-sm text-muted-foreground py-4 text-center",children:"불러오는 중..."}):r.length===0?w.jsx("div",{className:"border border-dashed border-border rounded-lg px-4 py-5 text-[12px] text-muted-foreground text-center",children:"정산 데이터가 없어 입금 스케줄을 계산할 수 없습니다."}):w.jsxs("div",{className:"flex gap-3 items-start",children:[w.jsxs("div",{className:"flex-[2] min-w-0",children:[w.jsx("div",{className:"border border-border rounded-lg bg-card px-3 pt-7 pb-2 mb-3",children:w.jsx(jSe,{schedule:r,today:t,maxAmount:s})}),w.jsx("div",{className:"border border-border rounded-lg bg-card p-4",children:w.jsx("div",{className:"grid grid-cols-2 gap-6",children:o.map(({year:f,month:d})=>w.jsx(VSe,{year:f,month:d,depositMap:n,today:t,maxAmount:s},`${f}-${d}`))})})]}),w.jsx("div",{className:"flex-[1] min-w-0 self-stretch",children:w.jsx(GSe,{schedule:r,today:t})})]})]})})}const ax={cafe24:"카페24",coupang:"쿠팡",smartstore:"스마트스토어",shopify:"Shopify","toss-shopping":"토스쇼핑","29cm":"29CM",musinsa:"무신사",kurly:"컬리",ssf:"SSF",bronte:"브론테",기타:"기타"},FSe={ordered:"주문일",paid:"결제일",confirmed:"구매확정일"};function R0({label:r,value:e,sub:t,accent:n}){return w.jsxs("div",{className:"border border-border rounded-lg p-4 bg-card",children:[w.jsx("div",{className:"text-[11px] text-muted-foreground mb-1",children:r}),w.jsx("div",{className:Ye("text-[22px] font-semibold tracking-tight",n&&"text-emerald-600 dark:text-emerald-400"),children:e}),t&&w.jsx("div",{className:"text-[11px] text-muted-foreground mt-0.5",children:t})]})}function Yn(r){return r==null?"-":`${Math.round(r).toLocaleString()}원`}function USe(r){return r==null?"-":`${(r>1?r:r*100).toFixed(1)}%`}function JA({channel:r}){const e={cafe24:"bg-blue-500",coupang:"bg-orange-500",smartstore:"bg-green-500",shopify:"bg-emerald-500","toss-shopping":"bg-blue-400","29cm":"bg-slate-700 dark:bg-slate-400",musinsa:"bg-zinc-800 dark:bg-zinc-200",kurly:"bg-purple-500",ssf:"bg-sky-500",bronte:"bg-rose-500",ezadmin:"bg-gray-500"};return w.jsx("span",{className:Ye("inline-block w-2 h-2 rounded-full shrink-0",e[r]??"bg-muted-foreground")})}function YSe(r,e,t,n){var S,T,C;const a=r.avgCommissionRate;if(a==null)return null;const i=a>1?a:a*100,o=t[r.channel],s=o?o.commissionRate+o.pgRate:null,l=e.filter(M=>M.channel===r.channel),u=(o==null?void 0:o.discrepancyHints)??[],c=M=>({k:"text",v:M}),f=(M,D,L)=>({k:"row",label:M,value:D,accent:L}),d={k:"divider"},v=M=>({k:"section",v:M}),g=M=>({k:"bullet",v:M}),x=l.find(M=>{const D=(M.commissionRate??0)+(M.pgRate??0);return Math.abs(D-i)<.5});if(r.netRevenue!=null&&r.netRevenue>0&&r.netRevenue<r.totalRevenue){const M=(r.totalRevenue-r.netRevenue)/r.totalRevenue*100;if(Math.abs(M-i)<.5){const D=Hh(o==null?void 0:o.revenueTiers,n),L=D!=null?(S=o==null?void 0:o.revenueTiers)==null?void 0:S[D]:null,E=L?o.commissionRate+(L.pgRate??o.pgRate):s,R=E!=null?M-E:null,I=x!=null&&Math.abs(R??0)>.5,k=!I&&R!=null&&Math.abs(R)>.5,z=R!=null&&R>0?"+":"";return{method:"net_reverse",label:"정산금액 역산",lines:[c("실제 정산금액 기반"),f("매출",Yn(r.totalRevenue)),f("정산",Yn(r.netRevenue),"muted"),f("수수료",`${Yn(r.totalRevenue-r.netRevenue)}`,"red"),f("실효 수수료율",`${M.toFixed(2)}%`),...E!=null?[d,...I?[f("채널 기본",`${E.toFixed(2)}%`,"muted"),f("커스텀 규칙",`${i.toFixed(2)}%${x.note?` (${x.note})`:""}`,"green"),c("직접 설정한 수수료 규칙이 적용되어 기본값과 차이가 있습니다.")]:[f(`채널 기준${L?` (${L.label})`:""}`,`${E.toFixed(2)}%`,"muted"),...R!=null?[f("차이",`${z}${R.toFixed(2)}%p`,R>.5?"warn":R<-.5?"green":"muted")]:[]]]:[],...k&&u.length>0?[d,v("차이 원인 가능성"),...u.slice(0,4).map(O=>g(O))]:[]]}}}if(s!=null&&Math.abs(s-i)<.1){const M=Hh(o.revenueTiers,n),D=M!=null?(T=o.revenueTiers)==null?void 0:T[M]:null,L=(D==null?void 0:D.pgRate)??o.pgRate,E=o.commissionRate+L;return{method:"default",label:"채널 기본 요율 적용",lines:[c("실 정산 데이터 없음 — 추정값"),...o.commissionRate>0?[f("판매수수료",`${o.commissionRate}%`,"muted")]:[],...L>0?[f(`PG${D?` (${D.label})`:""}`,`${L}%`,"muted")]:[],f("합계",`${E.toFixed(2)}%`),...n==null&&((C=o.revenueTiers)!=null&&C.length)?[c("⚠ 연매출 미설정 — 일반 등급 기준")]:[]]}}for(const M of l){const D=(M.commissionRate??0)+(M.pgRate??0);if(Math.abs(D-i)<.5)return{method:"custom_rule",label:"커스텀 규칙 적용",lines:[f("규칙 ID",M.id,"muted"),...M.commissionRate!=null?[f("판매수수료",`${M.commissionRate}%`)]:[],...M.pgRate!=null?[f("PG수수료",`${M.pgRate}%`)]:[],...M.note?[f("메모",M.note,"muted")]:[]]}}const y=s!=null&&Math.abs(s-i)>1&&!x,b=s!=null?i-s:null;return{method:"order_data",label:"주문 데이터 평균",lines:[c("주문별 수수료율의 평균값"),f("적용 요율",`${i.toFixed(2)}%`),...s!=null?[f("채널 기준",`${s.toFixed(2)}%`,"muted"),...b!=null&&Math.abs(b)>=.1?[f("차이",`${b>0?"+":""}${b.toFixed(2)}%p`,b>.5?"warn":b<-.5?"green":"muted")]:[],...x?[c(`커스텀 규칙 적용 중${x.note?` (${x.note})`:""}`)]:[]]:[],...y&&u.length>0?[d,v("차이 발생 가능 원인"),...u.slice(0,3).map(M=>g(M))]:[]]}}function WSe(r){return r==null?"무제한":r>=1e8?`${(r/1e8).toFixed(0)}억원 미만`:r>=1e7?`${(r/1e7).toFixed(0)}천만원 미만`:`${r.toLocaleString()}원 미만`}function ep({children:r}){return w.jsx("span",{className:"inline-flex items-center text-[10px] font-medium bg-muted text-muted-foreground px-1.5 py-0.5 rounded-full",children:r})}function Hh(r,e){if(!(r!=null&&r.length)||e==null)return null;const t=r.findIndex(n=>n.maxAnnualRevenue==null||e<=n.maxAnnualRevenue);return t>=0?t:r.length-1}function XSe({ch:r,d:e,annualRevenue:t}){var T,C,M,D,L,E,R;const[n,a]=Z.useState(!1),[i,o]=Z.useState(!1),[s,l]=Z.useState(!1),[u,c]=Z.useState(!1),[f,d]=Z.useState(!1),v=e.categoryRates&&Object.keys(e.categoryRates).length>0,g=e.pgRateByPayment&&Object.keys(e.pgRateByPayment).length>0,x=e.revenueTiers&&e.revenueTiers.length>0,y=e.verticalRates&&Object.keys(e.verticalRates).length>0,b=e.discrepancyHints&&e.discrepancyHints.length>0,S=e.sources&&e.sources.length>0;return!v&&!g&&!x&&!y&&!b&&!S?null:w.jsx("tr",{className:"border-b border-border/40 bg-muted/5",children:w.jsx("td",{colSpan:7,className:"px-3 pb-3 pt-0",children:w.jsxs("div",{className:"flex flex-wrap gap-3 mt-2",children:[v&&w.jsxs("div",{className:"w-full",children:[w.jsxs("button",{type:"button",onClick:()=>a(I=>!I),className:"flex items-center gap-1 text-[11px] text-muted-foreground hover:text-foreground transition-colors",children:[n?w.jsx(Ma,{size:11}):w.jsx(qa,{size:11}),w.jsx("span",{className:"font-medium text-foreground/70",children:"카테고리별 수수료"}),w.jsxs(ep,{children:[Object.keys(e.categoryRates??{}).length,"개"]})]}),n&&w.jsx("div",{className:"mt-1.5 ml-4 border border-border/60 rounded overflow-hidden",children:w.jsxs("table",{className:"w-full text-[11px]",children:[w.jsx("thead",{children:w.jsxs("tr",{className:"bg-muted/50 text-muted-foreground",children:[w.jsx("th",{className:"px-2 py-1 text-left font-medium",children:"카테고리"}),w.jsx("th",{className:"px-2 py-1 text-right font-medium",children:"수수료율"})]})}),w.jsx("tbody",{children:Object.entries(e.categoryRates??{}).sort((I,k)=>I[1]-k[1]).map(([I,k])=>w.jsxs("tr",{className:"border-t border-border/40",children:[w.jsx("td",{className:"px-2 py-1",children:I}),w.jsxs("td",{className:"px-2 py-1 text-right font-medium",children:[k,"%"]})]},I))})]})})]}),g&&w.jsxs("div",{className:"w-full",children:[w.jsxs("button",{type:"button",onClick:()=>o(I=>!I),className:"flex items-center gap-1 text-[11px] text-muted-foreground hover:text-foreground transition-colors",children:[i?w.jsx(Ma,{size:11}):w.jsx(qa,{size:11}),w.jsx("span",{className:"font-medium text-foreground/70",children:"결제수단별 PG 수수료"}),w.jsxs(ep,{children:[Object.keys(e.pgRateByPayment??{}).length,"종"]})]}),i&&w.jsx("div",{className:"mt-1.5 ml-4 border border-border/60 rounded overflow-hidden",children:w.jsxs("table",{className:"w-full text-[11px]",children:[w.jsx("thead",{children:w.jsxs("tr",{className:"bg-muted/50 text-muted-foreground",children:[w.jsx("th",{className:"px-2 py-1 text-left font-medium",children:"결제수단"}),w.jsx("th",{className:"px-2 py-1 text-right font-medium",children:"수수료율"})]})}),w.jsx("tbody",{children:Object.entries(e.pgRateByPayment??{}).map(([I,k])=>w.jsxs("tr",{className:"border-t border-border/40",children:[w.jsx("td",{className:"px-2 py-1",children:k.label}),w.jsxs("td",{className:"px-2 py-1 text-right font-medium",children:[k.rate,"%"]})]},I))})]})})]}),x&&w.jsxs("div",{className:"w-full",children:[w.jsxs("button",{type:"button",onClick:()=>l(I=>!I),className:"flex items-center gap-1 text-[11px] text-muted-foreground hover:text-foreground transition-colors",children:[s?w.jsx(Ma,{size:11}):w.jsx(qa,{size:11}),w.jsx("span",{className:"font-medium text-foreground/70",children:"매출 등급별 수수료"}),w.jsxs(ep,{children:[(T=e.revenueTiers)==null?void 0:T.length,"구간"]}),(()=>{var z;const I=Hh(e.revenueTiers,t),k=I!=null?(z=e.revenueTiers)==null?void 0:z[I]:null;return k?w.jsxs("span",{className:"inline-flex items-center text-[10px] font-medium bg-emerald-100 text-emerald-700 dark:bg-emerald-950/50 dark:text-emerald-400 px-1.5 py-0.5 rounded-full ml-1",children:["현재 ",k.label]}):w.jsx("span",{className:"inline-flex items-center text-[10px] text-amber-500 px-1 ml-1",children:"연매출 미설정"})})()]}),s&&w.jsxs("div",{className:"mt-1.5 ml-4 border border-border/60 rounded overflow-hidden",children:[w.jsxs("table",{className:"w-full text-[11px]",children:[w.jsx("thead",{children:w.jsxs("tr",{className:"bg-muted/50 text-muted-foreground",children:[w.jsx("th",{className:"px-2 py-1 text-left font-medium",children:"등급"}),w.jsx("th",{className:"px-2 py-1 text-left font-medium",children:"연매출 기준"}),((C=e.revenueTiers)==null?void 0:C.some(I=>I.pgRate!=null))&&w.jsx("th",{className:"px-2 py-1 text-right font-medium",children:"PG수수료"}),((M=e.revenueTiers)==null?void 0:M.some(I=>I.commissionRate!=null))&&w.jsx("th",{className:"px-2 py-1 text-right font-medium",children:"판매수수료"}),w.jsx("th",{className:"px-2 py-1 text-right font-medium",children:"적용"})]})}),w.jsx("tbody",{children:(D=e.revenueTiers)==null?void 0:D.map((I,k)=>{var G,F;const O=Hh(e.revenueTiers,t)===k;return w.jsxs("tr",{className:Ye("border-t border-border/40",O&&"bg-emerald-50 dark:bg-emerald-950/30"),children:[w.jsx("td",{className:Ye("px-2 py-1 font-medium",O&&"text-emerald-700 dark:text-emerald-400"),children:I.label}),w.jsx("td",{className:"px-2 py-1 text-muted-foreground",children:WSe(I.maxAnnualRevenue)}),((G=e.revenueTiers)==null?void 0:G.some(B=>B.pgRate!=null))&&w.jsx("td",{className:Ye("px-2 py-1 text-right",O&&"font-semibold text-emerald-700 dark:text-emerald-400"),children:I.pgRate!=null?`${I.pgRate}%`:"-"}),((F=e.revenueTiers)==null?void 0:F.some(B=>B.commissionRate!=null))&&w.jsx("td",{className:Ye("px-2 py-1 text-right",O&&"font-semibold text-emerald-700 dark:text-emerald-400"),children:I.commissionRate!=null?`${I.commissionRate}%`:"-"}),w.jsx("td",{className:"px-2 py-1 text-right",children:O?w.jsx("span",{className:"text-emerald-600 dark:text-emerald-400 font-medium",children:"◀ 현재"}):null})]},I.label)})})]}),t==null&&w.jsxs("div",{className:"px-2 py-1.5 bg-amber-50/50 dark:bg-amber-950/20 border-t border-amber-200/50 dark:border-amber-900/50 text-[10px] text-amber-700 dark:text-amber-400",children:["연매출을 설정하면 현재 적용 등급을 확인할 수 있습니다."," ",w.jsx("code",{className:"bg-amber-100 dark:bg-amber-950 px-1 rounded",children:"~/.shopport/config.json → settlement.annualRevenue"})]})]})]}),y&&w.jsxs("div",{className:"w-full",children:[w.jsxs("button",{type:"button",onClick:()=>c(I=>!I),className:"flex items-center gap-1 text-[11px] text-muted-foreground hover:text-foreground transition-colors",children:[u?w.jsx(Ma,{size:11}):w.jsx(qa,{size:11}),w.jsx("span",{className:"font-medium text-foreground/70",children:"버티컬/솔루션 추가 수수료"}),w.jsxs(ep,{children:[Object.keys(e.verticalRates??{}).length,"종"]})]}),u&&w.jsxs("div",{className:"mt-1.5 ml-4 border border-border/60 rounded overflow-hidden",children:[w.jsxs("table",{className:"w-full text-[11px]",children:[w.jsx("thead",{children:w.jsxs("tr",{className:"bg-muted/50 text-muted-foreground",children:[w.jsx("th",{className:"px-2 py-1 text-left font-medium",children:"서비스"}),w.jsx("th",{className:"px-2 py-1 text-right font-medium",children:"추가 수수료율"}),w.jsx("th",{className:"px-2 py-1 text-left font-medium",children:"비고"})]})}),w.jsx("tbody",{children:Object.entries(e.verticalRates??{}).map(([I,k])=>w.jsxs("tr",{className:"border-t border-border/40",children:[w.jsx("td",{className:"px-2 py-1 font-medium",children:I}),w.jsxs("td",{className:"px-2 py-1 text-right text-red-500",children:["+",k.rate,"%"]}),w.jsx("td",{className:"px-2 py-1 text-muted-foreground",children:k.label})]},I))})]}),w.jsx("div",{className:"px-2 py-1.5 bg-muted/30 text-[10px] text-muted-foreground border-t border-border/40",children:"판매수수료에 중복 부과됩니다. 쇼핑라이브·렌탈 등 해당 서비스 이용 시만 적용."})]})]}),b&&w.jsxs("div",{className:"w-full",children:[w.jsxs("button",{type:"button",onClick:()=>d(I=>!I),className:"flex items-center gap-1 text-[11px] text-amber-600 dark:text-amber-400 hover:text-foreground transition-colors",children:[f?w.jsx(Ma,{size:11}):w.jsx(qa,{size:11}),w.jsx("span",{className:"font-medium",children:"실정산 차이 발생 가능 원인"}),w.jsxs(ep,{children:[(L=e.discrepancyHints)==null?void 0:L.length,"가지"]})]}),f&&w.jsx("div",{className:"mt-1.5 ml-4 border border-amber-200 dark:border-amber-900/60 rounded bg-amber-50/50 dark:bg-amber-950/20 p-2",children:w.jsx("ul",{className:"space-y-1",children:(E=e.discrepancyHints)==null?void 0:E.map(I=>w.jsxs("li",{className:"text-[10px] text-amber-700 dark:text-amber-400 flex gap-1.5",children:[w.jsx("span",{className:"shrink-0 mt-0.5",children:"·"}),w.jsx("span",{children:I})]},I))})})]}),S&&w.jsxs("div",{className:"flex flex-wrap gap-2 pt-0.5 border-t border-border/30 w-full",children:[w.jsx("span",{className:"text-[10px] text-muted-foreground/50 self-center",children:"출처"}),(R=e.sources)==null?void 0:R.map(I=>{const k=new URL(I).hostname.replace(/^www\./,"");return w.jsxs("a",{href:I,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-0.5 text-[10px] text-muted-foreground/70 hover:text-foreground transition-colors underline underline-offset-2",children:[w.jsx(_M,{size:9}),k]},I)})]})]})})})}function qSe({rule:r}){const e=r.from||r.to;return w.jsxs("tr",{className:"border-b border-border/60 text-[12px]",children:[w.jsx("td",{className:"px-3 py-2.5 font-mono text-[10px] text-muted-foreground",children:r.id}),w.jsx("td",{className:"px-3 py-2.5",children:w.jsxs("div",{className:"flex items-center gap-1.5",children:[w.jsx(JA,{channel:r.channel}),ax[r.channel]??r.channel]})}),w.jsx("td",{className:"px-3 py-2.5 text-right",children:r.commissionRate!=null?w.jsxs("span",{className:"font-medium",children:[r.commissionRate,"%"]}):w.jsx("span",{className:"text-muted-foreground text-[11px]",children:"기본값"})}),w.jsx("td",{className:"px-3 py-2.5 text-right",children:r.pgRate!=null?w.jsxs("span",{className:"font-medium",children:[r.pgRate,"%"]}):w.jsx("span",{className:"text-muted-foreground text-[11px]",children:"기본값"})}),w.jsx("td",{className:"px-3 py-2.5 text-muted-foreground",children:e?w.jsxs("span",{children:[r.from??"~"," ~ ",r.to??""]}):w.jsx("span",{className:"text-[11px]",children:"상시"})}),w.jsx("td",{className:"px-3 py-2.5 text-muted-foreground",children:r.paymentMethod??w.jsx("span",{className:"text-[11px]",children:"전체"})}),w.jsx("td",{className:"px-3 py-2.5 text-muted-foreground max-w-[160px] truncate",title:r.note,children:r.note??"-"})]})}function ZSe(){const[r,e]=Z.useState(""),[t,n]=Z.useState(""),a=!!r||!!t,{data:i,isLoading:o}=cG(a?{from:r,to:t}:void 0),{data:s,isLoading:l}=sK(),{data:u=[],isLoading:c}=lK(),[f,d]=Z.useState(!1),[v,g]=Z.useState(!1),x=(i==null?void 0:i.settlement)??[],y=(i==null?void 0:i.totalRevenue)??0,b=(i==null?void 0:i.netRevenue)??0,S=(i==null?void 0:i.totalOrders)??0,T=y-b,C=y>0?T/y*100:0,M=(s==null?void 0:s.rules)??[],D=(s==null?void 0:s.defaults)??{},L=(s==null?void 0:s.annualRevenue)??null;return w.jsxs("div",{children:[w.jsxs("div",{className:"flex items-center justify-between mb-4",children:[w.jsx("h2",{className:"text-xl font-medium",children:"정산"}),w.jsxs("div",{className:"flex items-center gap-1.5 text-[11px] text-muted-foreground",children:[w.jsx(SM,{size:12}),"orders.jsonl 기반 추정값 · 실제 정산과 차이 있을 수 있음"]})]}),w.jsx(wM,{from:r,to:t,onChange:(E,R)=>{e(E),n(R)},className:"mb-6"}),w.jsxs("div",{className:"grid grid-cols-4 gap-3 mb-6",children:[w.jsx(R0,{label:"총 매출",value:Yn(y),sub:`주문 ${S.toLocaleString()}건`}),w.jsx(R0,{label:"수수료 · PG 합계",value:Yn(T),sub:`평균 ${C.toFixed(1)}%`}),w.jsx(R0,{label:"실수령 예상",value:Yn(b),accent:!0}),w.jsx(R0,{label:"수수료 규칙",value:`${M.length}개`,sub:M.length===0?"기본값 적용 중":"커스텀 규칙 적용"})]}),w.jsxs("div",{className:"mb-6",children:[w.jsx("h3",{className:"text-[13px] font-medium mb-3",children:"채널별 정산 현황"}),o?w.jsx("div",{className:"text-sm text-muted-foreground py-6 text-center",children:"불러오는 중..."}):x.length===0?w.jsxs("div",{className:"border border-dashed border-border rounded-lg p-10 text-center text-muted-foreground text-sm",children:["정산 데이터가 없습니다.",w.jsxs("div",{className:"text-[11px] mt-1",children:[w.jsx("code",{className:"bg-muted px-1 rounded",children:"sppt import"}),"로 주문 데이터를 가져오거나 채널을 동기화하세요."]})]}):w.jsx("div",{className:"border border-border rounded-lg overflow-hidden",children:w.jsxs("table",{className:"w-full text-[12px] border-collapse",children:[w.jsx("thead",{children:w.jsxs("tr",{className:"border-b border-border bg-muted/40 text-[11px] font-semibold text-muted-foreground",children:[w.jsx("th",{className:"px-3 py-2 text-left",children:"채널"}),w.jsx("th",{className:"px-3 py-2 text-right",children:"주문수"}),w.jsx("th",{className:"px-3 py-2 text-right",children:"총 매출"}),w.jsx("th",{className:"px-3 py-2 text-right",children:w.jsxs("span",{className:"inline-flex items-center gap-1 justify-end",children:["수수료",w.jsx(To,{side:"top",content:w.jsxs("div",{className:"space-y-1",children:[w.jsx("p",{className:"font-medium",children:"수수료 계산 기준"}),w.jsx("p",{children:"정산금액 데이터가 있으면"}),w.jsx("p",{className:"pl-2 text-muted-foreground",children:"매출 − 정산금액"}),w.jsx("p",{children:"없으면 채널 기본 수수료율로 추정"})]})})]})}),w.jsx("th",{className:"px-3 py-2 text-right",children:w.jsxs("span",{className:"inline-flex items-center gap-1 justify-end",children:["평균 수수료율",w.jsx(To,{side:"top",contentClassName:"max-w-[340px]",content:w.jsxs("div",{className:"space-y-2",children:[w.jsx("p",{className:"font-medium",children:"수수료율 결정 우선순위"}),w.jsxs("div",{className:"space-y-0.5 text-muted-foreground",children:[w.jsx("p",{children:"① 주문별 수수료율 데이터 평균"}),w.jsx("p",{className:"pl-3 text-[10px]",children:"채널 CSV에 수수료율 컬럼이 있을 때"}),w.jsx("p",{children:"② 커스텀 fee rule"}),w.jsx("p",{className:"pl-3 text-[10px]",children:"직접 설정한 규칙이 있을 때"}),w.jsx("p",{children:"③ 정산금액 역산"}),w.jsx("p",{className:"pl-3 text-[10px]",children:"(매출 − 정산금액) ÷ 매출"}),w.jsx("p",{children:"④ 채널 기본 요율"}),w.jsx("p",{className:"pl-3 text-[10px]",children:"공식 자료 기반 기본값 (추정)"})]}),Object.keys(D).length>0&&w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:"border-t border-border/40 pt-1.5",children:[w.jsxs("p",{className:"font-medium mb-0.5",children:["채널별 기본 수수료",L!=null?` (연매출 ${(L/1e8).toFixed(1)}억 기준)`:" (일반 등급 기준, 추정)"]}),L==null&&w.jsx("p",{className:"text-[10px] text-amber-500 mb-1",children:"연매출 미설정 — 등급별 실제 요율과 다를 수 있음"}),w.jsx("div",{className:"space-y-0.5",children:Object.entries(D).map(([E,R])=>{var Y;const I=Hh(R.revenueTiers,L),k=I!=null?(Y=R.revenueTiers)==null?void 0:Y[I]:null,z=(k==null?void 0:k.pgRate)??R.pgRate,O=R.commissionRate+z,G=M.some(H=>H.channel===E),F=M.find(H=>H.channel===E&&!H.from&&!H.to&&!H.paymentMethod&&!H.category),B=F?(F.commissionRate??0)+(F.pgRate??0):null;return w.jsxs("div",{className:"flex justify-between gap-4 text-[10px]",children:[w.jsx("span",{className:"text-muted-foreground",children:ax[E]??E}),w.jsx("span",{children:F&&B!=null?w.jsxs("span",{className:"text-amber-400",children:[B.toFixed(1),"%"," ",w.jsxs("span",{className:"text-muted-foreground/50",children:["(기본 ",O.toFixed(1),"% ✎)"]})]}):G?w.jsxs("span",{className:Ye(k?"text-emerald-400":""),children:[O.toFixed(1),"%"," ",w.jsx("span",{className:"text-amber-400/70",children:"✎"})]}):w.jsxs("span",{className:k?"text-emerald-400":"",children:[O.toFixed(1),"%",k?` (${k.label})`:""]})})]},E)})}),w.jsx("p",{className:"text-[10px] text-muted-foreground/60 mt-1",children:"✎ 커스텀 규칙 · 초록 = 등급 적용"})]}),w.jsx("p",{className:"text-[10px] text-muted-foreground/60 border-t border-border/40 pt-1.5",children:"정확한 등급 요율 → 아래 '채널 기본 수수료 규칙' 펼치기"})]})]})})]})}),w.jsx("th",{className:"px-3 py-2 text-right",children:"실수령 예상"}),w.jsx("th",{className:"px-3 py-2 text-right",children:"매출 비중"})]})}),w.jsx("tbody",{className:"bg-card",children:x.map((E,R)=>{const I=E.totalRevenue-(E.netRevenue??0),k=y>0?(E.totalRevenue/y*100).toFixed(1):"0",z=YSe(E,M,D,L);return w.jsxs("tr",{className:Ye("border-b border-border/60",R%2!==0&&"bg-muted/30"),children:[w.jsx("td",{className:"px-3 py-2.5",children:w.jsxs("div",{className:"flex items-center gap-1.5",children:[w.jsx(JA,{channel:E.channel}),ax[E.channel]??E.channel]})}),w.jsxs("td",{className:"px-3 py-2.5 text-right text-muted-foreground",children:[E.orderCount.toLocaleString(),"건"]}),w.jsx("td",{className:"px-3 py-2.5 text-right font-medium",children:Yn(E.totalRevenue)}),w.jsx("td",{className:"px-3 py-2.5 text-right text-red-600 dark:text-red-400",children:E.totalCommission!=null?Yn(E.totalCommission):Yn(I)}),w.jsx("td",{className:"px-3 py-2.5 text-right text-muted-foreground",children:w.jsxs("span",{className:"inline-flex items-center gap-1 justify-end",children:[USe(E.avgCommissionRate),z&&w.jsx(To,{side:"left",contentClassName:"max-w-[300px]",content:w.jsxs("div",{className:"space-y-1.5",children:[w.jsx("p",{className:"font-medium text-[11px]",children:z.label}),w.jsx("div",{className:"space-y-0.5",children:z.lines.map((O,G)=>{const F=`${O.k}-${G}`;if(O.k==="divider")return w.jsx("div",{className:"border-t border-border/40 my-1"},F);if(O.k==="section")return w.jsx("p",{className:"text-[9px] font-medium text-foreground/50 uppercase tracking-wide pt-0.5",children:O.v},F);if(O.k==="bullet")return w.jsxs("div",{className:"flex gap-1.5 text-muted-foreground text-[10px] leading-snug",children:[w.jsx("span",{className:"text-foreground/40 shrink-0 mt-px",children:"•"}),w.jsx("span",{children:O.v})]},F);if(O.k==="row"){const B=O.accent==="muted"?"text-muted-foreground":O.accent==="green"?"text-emerald-500 tabular-nums":O.accent==="red"?"text-red-500 tabular-nums":O.accent==="warn"?"text-amber-500 tabular-nums":"tabular-nums";return w.jsxs("div",{className:"flex justify-between gap-4 text-[11px]",children:[w.jsx("span",{className:"text-muted-foreground shrink-0",children:O.label}),w.jsx("span",{className:B,children:O.value})]},F)}return w.jsx("p",{className:"text-muted-foreground text-[11px]",children:O.v},F)})})]})})]})}),w.jsx("td",{className:"px-3 py-2.5 text-right text-emerald-600 dark:text-emerald-400 font-medium",children:Yn(E.netRevenue)}),w.jsx("td",{className:"px-3 py-2.5 text-right",children:w.jsxs("div",{className:"flex items-center justify-end gap-2",children:[w.jsx("div",{className:"w-[60px] bg-muted rounded-full h-1.5 overflow-hidden",children:w.jsx("div",{className:"h-full bg-primary/60 rounded-full",style:{width:`${k}%`}})}),w.jsxs("span",{className:"text-muted-foreground text-[11px] w-[32px] text-right",children:[k,"%"]})]})})]},E.channel)})}),x.length>1&&w.jsx("tfoot",{children:w.jsxs("tr",{className:"border-t border-border bg-muted/30 text-[12px] font-semibold",children:[w.jsx("td",{className:"px-3 py-2.5",children:"합계"}),w.jsxs("td",{className:"px-3 py-2.5 text-right text-muted-foreground",children:[S.toLocaleString(),"건"]}),w.jsx("td",{className:"px-3 py-2.5 text-right",children:Yn(y)}),w.jsx("td",{className:"px-3 py-2.5 text-right text-red-600 dark:text-red-400",children:Yn(T)}),w.jsxs("td",{className:"px-3 py-2.5 text-right text-muted-foreground",children:[C.toFixed(1),"%"]}),w.jsx("td",{className:"px-3 py-2.5 text-right text-emerald-600 dark:text-emerald-400",children:Yn(b)}),w.jsx("td",{})]})})]})})]}),w.jsxs("div",{className:"mb-4",children:[w.jsxs("button",{type:"button",onClick:()=>d(E=>!E),className:"flex items-center gap-2 w-full text-left group mb-0",children:[f?w.jsx(Ma,{size:13,className:"shrink-0 text-muted-foreground"}):w.jsx(qa,{size:13,className:"shrink-0 text-muted-foreground"}),w.jsx("span",{className:"text-[13px] font-medium group-hover:text-foreground/80 transition-colors",children:"채널 기본 수수료 규칙"}),w.jsx(To,{size:12,contentClassName:"max-w-[300px]",content:w.jsxs("div",{className:"space-y-1.5",children:[w.jsx("p",{className:"font-medium",children:"채널 기본 수수료 규칙이란?"}),w.jsxs("div",{className:"space-y-1 text-muted-foreground",children:[w.jsx("p",{children:"공식 자료·실데이터 기반 채널별 표준 요율입니다."}),w.jsx("p",{children:"커스텀 규칙이 없을 때 정산 추정에 사용됩니다."}),w.jsx("p",{children:"실제 계약 조건이 다르면 커스텀 규칙으로 오버라이드하세요."})]})]})})]}),f&&w.jsx("div",{className:"mt-3",children:l?w.jsx("div",{className:"text-sm text-muted-foreground py-4 text-center",children:"불러오는 중..."}):w.jsx("div",{className:"border border-border rounded-lg overflow-hidden",children:w.jsxs("table",{className:"w-full text-[12px] border-collapse",children:[w.jsx("thead",{children:w.jsxs("tr",{className:"border-b border-border bg-muted/40 text-[11px] font-semibold text-muted-foreground",children:[w.jsx("th",{className:"px-3 py-2 text-left",children:"채널"}),w.jsx("th",{className:"px-3 py-2 text-right",children:w.jsxs("span",{className:"inline-flex items-center gap-1 justify-end",children:["판매수수료",w.jsx(To,{side:"top",content:w.jsx("p",{children:"마케팅 링크 유입 시 이 요율 적용 (일반 판매수수료와 택1)"})})]})}),w.jsx("th",{className:"px-3 py-2 text-right",children:"PG수수료"}),w.jsx("th",{className:"px-3 py-2 text-right",children:"합계"}),w.jsx("th",{className:"px-3 py-2 text-left",children:"정산 기준"}),w.jsx("th",{className:"px-3 py-2 text-right",children:"정산 주기"}),w.jsx("th",{className:"px-3 py-2 text-left",children:"커스텀 규칙"})]})}),w.jsx("tbody",{className:"bg-card",children:Object.entries(D).map(([E,R],I)=>{const k=M.filter(O=>O.channel===E).length,z=R.commissionRate+R.pgRate;return w.jsxs(w.Fragment,{children:[w.jsxs("tr",{className:Ye("border-b border-border/60",I%2!==0&&"bg-muted/30"),children:[w.jsx("td",{className:"px-3 py-2.5",children:w.jsxs("div",{className:"flex items-center gap-1.5",children:[w.jsx(JA,{channel:E}),ax[E]??E]})}),w.jsx("td",{className:"px-3 py-2.5 text-right",children:R.commissionRate>0?w.jsxs("span",{className:"inline-flex items-center gap-1 justify-end",children:[w.jsxs("span",{className:"font-medium",children:[R.commissionRate,"%"]}),R.marketingLinkCommissionRate!=null&&w.jsx(To,{side:"top",content:w.jsxs("div",{className:"space-y-0.5",children:[w.jsx("p",{className:"font-medium",children:"판매수수료 2종 (택1)"}),w.jsxs("p",{children:["일반 유입: ",R.commissionRate,"%"]}),w.jsxs("p",{children:["마케팅 링크 유입: ",R.marketingLinkCommissionRate,"%"]})]})})]}):w.jsx("span",{className:"text-muted-foreground",children:"-"})}),w.jsx("td",{className:"px-3 py-2.5 text-right",children:R.pgRate>0?w.jsxs("span",{className:"inline-flex items-center gap-1 justify-end",children:[(()=>{var B;const O=Hh(R.revenueTiers,L),G=O!=null?(B=R.revenueTiers)==null?void 0:B[O]:null,F=(G==null?void 0:G.pgRate)??null;return F!=null&&F!==R.pgRate?w.jsxs("span",{className:"inline-flex items-center gap-1",children:[w.jsxs("span",{className:"font-semibold text-emerald-600 dark:text-emerald-400",children:[F,"%"]}),w.jsx(To,{side:"top",content:w.jsxs("div",{className:"space-y-0.5",children:[w.jsxs("p",{className:"font-medium text-emerald-400",children:["현재 적용: ",F,"% (",G==null?void 0:G.label,")"]}),w.jsxs("p",{className:"text-muted-foreground",children:["기본(일반): ",R.pgRate,"%"]}),L!=null&&w.jsxs("p",{className:"text-muted-foreground text-[10px]",children:["연매출 ",(L/1e8).toFixed(1),"억 기준"]})]})})]}):w.jsxs("span",{className:"font-medium",children:[R.pgRate,"%"]})})(),R.pgRateAppliesToShipping&&w.jsx(To,{side:"top",content:w.jsx("p",{children:"배송비 포함 금액에도 적용 (스마트스토어 Npay 수수료)"})})]}):w.jsx("span",{className:"text-muted-foreground",children:"-"})}),w.jsx("td",{className:"px-3 py-2.5 text-right text-muted-foreground",children:z>0?w.jsxs("span",{children:[z.toFixed(2),"%",R.shippingCommissionRate!=null&&R.shippingCommissionRate>0&&w.jsx(To,{side:"top",content:w.jsxs("p",{children:["배송비 수수료 ",R.shippingCommissionRate,"% 별도"]})})]}):"-"}),w.jsx("td",{className:"px-3 py-2.5 text-muted-foreground",children:FSe[R.settlementDayBasis]??R.settlementDayBasis}),w.jsxs("td",{className:"px-3 py-2.5 text-right text-muted-foreground",children:[R.settlementCycleDays,"일"]}),w.jsx("td",{className:"px-3 py-2.5",children:k>0?w.jsxs("span",{className:"inline-flex items-center gap-1 text-[10px] font-medium bg-amber-100 text-amber-700 dark:bg-amber-950/50 dark:text-amber-400 px-1.5 py-0.5 rounded-full",children:[k,"개 규칙 적용"]}):w.jsx("span",{className:"text-[11px] text-muted-foreground",children:"기본값"})})]},E),w.jsx(XSe,{ch:E,d:R,annualRevenue:L},`${E}-detail`)]})})})]})})})]}),w.jsxs("div",{children:[w.jsxs("button",{type:"button",onClick:()=>g(E=>!E),className:"flex items-center gap-2 w-full text-left group mb-0",children:[v?w.jsx(Ma,{size:13,className:"shrink-0 text-muted-foreground"}):w.jsx(qa,{size:13,className:"shrink-0 text-muted-foreground"}),w.jsx("span",{className:"text-[13px] font-medium group-hover:text-foreground/80 transition-colors",children:"커스텀 수수료 규칙"}),M.length>0&&w.jsxs("span",{className:"inline-flex items-center text-[10px] font-medium bg-amber-100 text-amber-700 dark:bg-amber-950/50 dark:text-amber-400 px-1.5 py-0.5 rounded-full",children:[M.length,"개"]}),w.jsx("span",{className:"ml-auto text-[11px] text-muted-foreground flex items-center gap-1",children:w.jsx("code",{className:"bg-muted px-1 rounded text-[10px] mr-2",children:"sppt settlement fee set <channel>"})})]}),v&&w.jsx("div",{className:"mt-3",children:l?w.jsx("div",{className:"text-sm text-muted-foreground py-4 text-center",children:"불러오는 중..."}):M.length===0?w.jsxs("div",{className:"border border-dashed border-border rounded-lg px-4 py-5 text-[12px] text-muted-foreground flex items-center gap-2",children:[w.jsx(Vp,{size:13,className:"shrink-0"}),"등록된 커스텀 규칙 없음 — 채널 기본 수수료 규칙이 적용됩니다."]}):w.jsxs("div",{className:"border border-border rounded-lg overflow-hidden",children:[w.jsxs("table",{className:"w-full text-[12px] border-collapse",children:[w.jsx("thead",{children:w.jsxs("tr",{className:"border-b border-border bg-muted/40 text-[11px] font-semibold text-muted-foreground",children:[w.jsx("th",{className:"px-3 py-2 text-left w-[72px]",children:"ID"}),w.jsx("th",{className:"px-3 py-2 text-left",children:"채널"}),w.jsx("th",{className:"px-3 py-2 text-right",children:"판매수수료"}),w.jsx("th",{className:"px-3 py-2 text-right",children:"PG수수료"}),w.jsx("th",{className:"px-3 py-2 text-left",children:"적용 기간"}),w.jsx("th",{className:"px-3 py-2 text-left",children:"결제수단"}),w.jsx("th",{className:"px-3 py-2 text-left",children:"메모"})]})}),w.jsx("tbody",{className:"bg-card",children:M.map(E=>w.jsx(qSe,{rule:E},E.id))})]}),w.jsxs("div",{className:"px-3 py-2 border-t border-border bg-muted/20 flex items-center gap-1.5 text-[11px] text-muted-foreground",children:[w.jsx(mG,{size:11}),"조건이 많이 맞는 규칙이 우선 적용 (기간 > 결제수단 > 카테고리 순)"]})]})})]}),w.jsx(HSe,{schedule:u,isLoading:c})]})}function $Se({trendPoints:r,direction:e}){const[t,n]=Z.useState(null);if(!r||r.length<2)return w.jsx("span",{className:"inline-block w-[50px] h-[24px]"});const a=50,i=24,o=2,s=r.map(y=>y.ratio),l=Math.min(...s),c=Math.max(...s)-l||1,f=r.map((y,b)=>({x:o+b/(r.length-1)*(a-o*2),y:i-o-(y.ratio-l)/c*(i-o*2),period:y.period,ratio:y.ratio})),d=f.map(y=>`${y.x},${y.y}`).join(" "),v=e==="상승"?"#22c55e":e==="하락"?"#ef4444":"#94a3b8",g=f.map((y,b)=>{const S=b>0?(f[b-1].x+y.x)/2:0,T=b<f.length-1?(y.x+f[b+1].x)/2:a;return{x:S,width:T-S}}),x=t!==null?f[t]:null;return w.jsxs("svg",{width:a,height:i,viewBox:`0 0 ${a} ${i}`,className:"inline-block overflow-visible","aria-hidden":"true",children:[w.jsx("polyline",{points:d,fill:"none",stroke:v,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),x&&w.jsxs(w.Fragment,{children:[w.jsx("line",{x1:x.x,y1:0,x2:x.x,y2:i,stroke:v,strokeWidth:1,strokeDasharray:"2 2",strokeOpacity:.5}),w.jsx("circle",{cx:x.x,cy:x.y,r:2.5,fill:v,stroke:"white",strokeWidth:1})]}),g.map((y,b)=>w.jsx(ol,{side:"top",content:w.jsxs("span",{children:[w.jsx("span",{className:"font-medium",children:f[b].period}),w.jsx("br",{}),"상대 검색량 ",w.jsx("span",{className:"font-semibold",children:Math.round(f[b].ratio)}),w.jsx("span",{className:"opacity-60",children:" / 100"})]}),children:w.jsx("rect",{x:y.x,y:0,width:y.width,height:i,fill:"transparent",stroke:"none",className:"cursor-default",onMouseEnter:()=>n(b),onMouseLeave:()=>n(null)})},f[b].period))]})}const KSe={낮음:"bg-green-500/15 text-green-600",보통:"bg-yellow-500/15 text-yellow-600",높음:"bg-orange-500/15 text-orange-600",매우높음:"bg-red-500/15 text-red-600"},QSe={상승:{icon:"↑",cls:"text-green-500"},하락:{icon:"↓",cls:"text-red-500"},보합:{icon:"→",cls:"text-muted-foreground"}};function F4(r){return r==null?"—":r.toLocaleString("ko-KR")}function E0(r){return r==null?"—":`${r.toLocaleString("ko-KR")}원`}function JSe(r,e,t,n){const a=(e+t)/2,i=Math.max(n,t);return r<=a?{dot:"🟢",label:"신규진입 가능 — 하위 ~20%, 리뷰 없어도 경쟁 가능",cls:"text-green-600 font-semibold"}:r<=i?{dot:"🟡",label:"판매 가능 — 시장 평균 이하, 경쟁력 있음",cls:"text-yellow-600 font-medium"}:{dot:"🔴",label:"판매 어려움 — 시장가 초과",cls:"text-red-500"}}function ewe(r){var n;const e=new Set,t=[];for(const a of r)for(const i of((n=a.analysis.marginAnalysis)==null?void 0:n.platforms)??[])e.has(i.platform)||(e.add(i.platform),t.push(i.platform));return t}function twe({entries:r}){const e=ewe(r),t=e.length>0;return w.jsx("div",{className:"overflow-x-auto rounded-xl border border-border",children:w.jsxs("table",{className:"w-full text-[12px] border-collapse",children:[w.jsxs("thead",{children:[w.jsxs("tr",{className:"border-b border-border bg-muted/40",children:[w.jsx(I0,{align:"left",children:"키워드"}),w.jsx(I0,{align:"left",children:"소싱 채널"}),w.jsx(tp,{tip:"도매 소싱가",children:"소싱가"}),w.jsxs(tp,{tip:"네이버쇼핑 검색결과 기준. 중앙값은 저가 잡상품에 왜곡될 수 있어, avg가 중앙값보다 높으면 avg를 함께 표시합니다.",children:["시장판매가",w.jsx("br",{}),w.jsx("span",{className:"font-normal text-[10px] opacity-60",children:"(중앙값 / avg)"})]}),w.jsxs(tp,{tip:"네이버쇼핑 기준 해당 키워드 검색 시 노출되는 경쟁 상품 수",children:["경쟁상품수",w.jsx("br",{}),w.jsx("span",{className:"font-normal text-[10px] opacity-60",children:"(네이버쇼핑)"})]}),w.jsxs(tp,{tip:"최근 1개월 네이버 검색량 (PC+모바일)",children:["월검색량",w.jsx("br",{}),w.jsx("span",{className:"font-normal text-[10px] opacity-60",children:"(트렌드)"})]}),w.jsx(I0,{children:"경쟁도"}),t&&w.jsxs(tp,{colSpan:e.length,tip:"소싱가 기준 플랫폼 수수료 포함, 각 마진율 달성 최소판매가. 30% * = 세전 최소기준선(≈×1.7). 🟢 신규진입 가능(하위~20%) 🟡 판매 가능(시장 평균↓) 🔴 판매 어려움(시장가 초과)",children:["채널별 최소판매가",w.jsx("br",{}),w.jsx("span",{className:"font-normal text-[10px] opacity-60",children:"(수수료 포함, 5·10·20·30% * 기준)"})]}),w.jsx(I0,{children:"검토"})]}),t&&w.jsxs("tr",{className:"border-b border-border bg-muted/20",children:[Array.from({length:7}).map((n,a)=>w.jsx("td",{},a)),e.map(n=>w.jsx("td",{className:"px-3 py-1 text-center text-[10px] text-muted-foreground font-medium border-l border-border",children:n},n)),w.jsx("td",{})]})]}),w.jsx("tbody",{className:"bg-white dark:bg-card",children:r.map((n,a)=>{const{analysis:i,keyword:o,productName:s,sourceChannel:l,sourcingPrice:u,savedAt:c}=n,{demand:f,marginAnalysis:d,price:v,competitionLevel:g,totalListings:x}=i,y=TM(new Date(c),{addSuffix:!0,locale:E1}),b=(f==null?void 0:f.trendDirection)??null,S=b?QSe[b]:null,T=f==null?void 0:f.monthlyTotal,C=u&&v.median>0?Math.round((v.median-u)/u*100):null,M=new Map((d==null?void 0:d.platforms.map(L=>[L.platform,L]))??[]),D=v.avg>v.median*1.5;return w.jsxs("tr",{className:["border-b border-border/60 hover:bg-blue-50/40 dark:hover:bg-muted/20 transition-colors",a%2!==0?"bg-gray-50/60 dark:bg-muted/5":""].join(" "),children:[w.jsxs("td",{className:"px-3 py-2.5 max-w-[140px]",children:[w.jsx("div",{className:"font-semibold truncate",children:o}),s&&w.jsx("div",{className:"text-[10px] text-muted-foreground truncate mt-0.5",children:s})]}),w.jsx("td",{className:"px-3 py-2.5 text-center whitespace-nowrap",children:l??"—"}),w.jsx("td",{className:"px-3 py-2.5 text-right whitespace-nowrap",children:u?w.jsx("span",{className:"font-medium",children:E0(u)}):w.jsx("span",{className:"text-muted-foreground",children:"—"})}),w.jsxs("td",{className:"px-3 py-2.5 text-right whitespace-nowrap",children:[w.jsxs("div",{className:"flex items-baseline justify-end gap-1",children:[w.jsx("span",{className:"font-medium",children:E0(v.median)}),C!=null&&w.jsx(ol,{content:`소싱가 대비 ${C>=0?"+":""}${C}%`,children:w.jsxs("span",{className:["text-[10px] cursor-default",C>=0?"text-green-500":"text-red-500"].join(" "),children:[C>=0?"+":"",C,"%"]})})]}),D&&w.jsx(ol,{content:"평균가 — 중앙값이 저가 잡상품에 왜곡된 경우 이 값이 실거래 기준이 됩니다. 티어 판정(🟢🟡🔴)에 사용됩니다.",children:w.jsxs("div",{className:"text-[10px] text-blue-500 mt-0.5 cursor-default",children:["avg ",E0(v.avg)]})})]}),w.jsxs("td",{className:"px-3 py-2.5 text-right whitespace-nowrap",children:[F4(x),"개"]}),w.jsx("td",{className:"px-3 py-2.5 whitespace-nowrap",children:T!=null?w.jsxs("div",{className:"flex items-center justify-end gap-1.5",children:[w.jsxs("span",{children:[F4(T),"회"]}),S&&w.jsx("span",{className:["font-medium text-[10px]",S.cls].join(" "),children:S.icon}),f&&f.trendPoints.length>=2&&w.jsx($Se,{trendPoints:f.trendPoints,direction:b})]}):w.jsx("span",{className:"text-muted-foreground float-right",children:"—"})}),w.jsx("td",{className:"px-3 py-2.5 text-center",children:w.jsx("span",{className:["text-[10px] font-semibold px-2 py-0.5 rounded-full whitespace-nowrap",KSe[g]??"bg-muted text-muted-foreground"].join(" "),children:g})}),e.map(L=>{const E=M.get(L),R=E&&(E.sell5||E.sell10||E.sell20||E.sell30),I=R?[{label:"5%",sell:E.sell5||null,isMin:!1},{label:"10%",sell:E.sell10||null,isMin:!1},{label:"20%",sell:E.sell20||null,isMin:!1},{label:"30% *",sell:E.sell30||null,isMin:!0}]:[];return w.jsx("td",{className:"px-3 py-2 border-l border-border/40 align-top",children:R?w.jsx("div",{className:"flex flex-col gap-0.5",children:I.map(({label:k,sell:z,isMin:O})=>{if(z==null)return null;const G=JSe(z,v.min,v.median,v.avg);return w.jsx(ol,{content:O?`[최소기준선] ${G.label}`:G.label,children:w.jsxs("div",{className:["flex items-center justify-between gap-1.5 text-[11px] cursor-default",O?"font-semibold":""].join(" "),children:[w.jsx("span",{className:["w-10 shrink-0 whitespace-nowrap",O?"text-foreground/70":"text-muted-foreground"].join(" "),children:k}),w.jsx("span",{className:[G.cls,"whitespace-nowrap"].join(" "),children:E0(z)}),w.jsx("span",{children:G.dot})]})},k)})}):w.jsx("span",{className:"text-muted-foreground",children:"—"})},L)}),w.jsx("td",{className:"px-3 py-2.5 text-right whitespace-nowrap text-muted-foreground",children:y})]},n.id)})})]})})}function I0({children:r,align:e="center",colSpan:t}){return w.jsx("th",{colSpan:t,className:["px-3 py-2 text-[11px] font-semibold text-muted-foreground leading-tight whitespace-nowrap",e==="left"?"text-left":e==="right"?"text-right":"text-center"].join(" "),children:r})}function tp({children:r,tip:e,align:t="center",colSpan:n}){return w.jsx("th",{colSpan:n,className:["px-3 py-2 text-[11px] font-semibold text-muted-foreground leading-tight whitespace-nowrap",t==="left"?"text-left":t==="right"?"text-right":"text-center"].join(" "),children:w.jsx(ol,{content:e,children:w.jsx("span",{className:"cursor-help underline decoration-dotted decoration-muted-foreground/40",children:r})})})}const rp=20;function rwe(r){var l;const e=(l=r.analysis.marginAnalysis)==null?void 0:l.platforms;if(!(e!=null&&e.length))return"🔴";const{min:t,median:n,avg:a}=r.analysis.price,i=(t+n)/2,o=Math.max(a,n);let s="🔴";for(const u of e){const c=u.sell30;if(c){if(c<=i)return"🟢";c<=o&&s!=="🟢"&&(s="🟡")}}return s}function nwe(r,e){return e?r.filter(t=>rwe(t)===e):r}const awe={domeggook:"도매꾹",specialoffer:"특가몰",cjdropshipping:"CJ Dropshipping"};function iwe({channel:r,connected:e,rateLimit:t,dailyLimit:n}){const a=awe[r]??r;return w.jsxs("div",{className:"flex items-center gap-3 py-3 border-b border-border/60 last:border-0",children:[w.jsx("span",{className:Ye("w-2 h-2 rounded-full shrink-0",e?"bg-green-500":"bg-muted-foreground/30")}),w.jsx("span",{className:"text-[13px] font-medium",children:a}),e?w.jsxs("div",{className:"ml-auto flex gap-3 text-[11px] text-muted-foreground",children:[w.jsxs("span",{children:[t," rps"]}),n&&w.jsxs("span",{children:["일 ",n.toLocaleString(),"회"]}),w.jsx("span",{className:"text-green-600 font-medium",children:"연결됨"})]}):w.jsxs("div",{className:"ml-auto text-[11px] text-muted-foreground",children:["미연결 · ",w.jsx("code",{className:"font-mono",children:"sppt init"})]})]})}function owe(){const{data:r}=bM(),{data:e=[],refetch:t,isFetching:n}=iK(),{data:a=[]}=oK(),[i,o]=Z.useState(1),[s,l]=Z.useState(null),u=(r==null?void 0:r.sourceChannels)??[],c=u.filter(y=>y.connected).length,f=nwe(e,s),d=Math.max(1,Math.ceil(f.length/rp)),v=Math.min(i,d),g=f.slice((v-1)*rp,v*rp);function x(y){l(b=>b===y?null:y),o(1)}return w.jsxs("div",{children:[w.jsxs("div",{className:"flex items-center justify-between mb-6",children:[w.jsx("h2",{className:"text-xl font-medium",children:"소싱 채널"}),w.jsxs("div",{className:"text-[12px] text-muted-foreground",children:[c,"/",u.length," 연결됨"]})]}),w.jsxs("div",{className:"border border-border rounded-lg px-4 py-1 mb-8",children:[u.map(y=>w.jsx(iwe,{channel:y.channel,connected:y.connected,rateLimit:y.rateLimit,dailyLimit:y.dailyLimit},y.channel)),u.length===0&&w.jsx("div",{className:"py-4 text-center text-[12px] text-muted-foreground",children:"로딩 중..."})]}),w.jsxs("div",{children:[w.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[w.jsx(cx,{size:13,className:"text-muted-foreground"}),w.jsx("span",{className:"text-[13px] font-semibold text-muted-foreground",children:"소싱 검토 이력"}),e.length>0&&w.jsxs("span",{className:"text-[11px] text-muted-foreground",children:[s?`${f.length} / `:"",e.length,"건"]}),e.length>0&&w.jsx("div",{className:"flex items-center gap-1 ml-2",children:["🟢","🟡","🔴"].map(y=>w.jsx("button",{type:"button",onClick:()=>x(y),className:Ye("px-2 py-0.5 rounded-full text-[11px] border transition-colors",s===y?"border-foreground/50 bg-muted text-foreground font-medium":"border-border text-muted-foreground hover:border-foreground/30"),children:y},y))}),w.jsxs("button",{type:"button",onClick:()=>t(),className:Ye("ml-auto flex items-center gap-1 text-[11px] border border-border rounded px-2 py-1 hover:border-foreground/40 transition-colors",n&&"opacity-50 pointer-events-none"),children:[w.jsx(O0,{size:10,className:Ye(n&&"animate-spin")}),"새로고침"]})]}),e.length===0||f.length===0?w.jsxs("div",{className:"border border-dashed border-border rounded-lg p-10 text-center text-muted-foreground text-sm",children:[w.jsx($u,{size:24,className:"mx-auto mb-3 opacity-30"}),e.length===0?"소싱 상품 시장 분석 이력이 없습니다.":`${s} 해당 항목이 없습니다.`,w.jsxs("div",{className:"mt-3 space-y-1",children:[w.jsx("code",{className:"block bg-muted rounded px-2 py-1 text-[11px] text-foreground font-mono",children:"sppt source market-check <keyword>"}),w.jsx("code",{className:"block bg-muted rounded px-2 py-1 text-[11px] text-foreground font-mono",children:"sppt source detail <id> --market-check"})]})]}):w.jsxs(w.Fragment,{children:[w.jsx(twe,{entries:g}),d>1&&w.jsxs("div",{className:"flex items-center justify-between mt-3 text-[12px] text-muted-foreground",children:[w.jsxs("span",{children:[(v-1)*rp+1,"–",Math.min(v*rp,f.length)," ","/ ",f.length,"건"]}),w.jsxs("div",{className:"flex items-center gap-1",children:[w.jsx("button",{type:"button",onClick:()=>o(y=>Math.max(1,y-1)),disabled:v===1,className:"p-1 rounded hover:bg-muted disabled:opacity-30 disabled:pointer-events-none",children:w.jsx(SK,{size:14})}),Array.from({length:d},(y,b)=>b+1).map(y=>w.jsx("button",{type:"button",onClick:()=>o(y),className:Ye("w-6 h-6 rounded text-[11px] hover:bg-muted",y===v&&"bg-muted font-semibold text-foreground"),children:y},y)),w.jsx("button",{type:"button",onClick:()=>o(y=>Math.min(d,y+1)),disabled:v===d,className:"p-1 rounded hover:bg-muted disabled:opacity-30 disabled:pointer-events-none",children:w.jsx(qa,{size:14})})]})]})]})]}),a.length>0&&w.jsxs("div",{className:"mt-8",children:[w.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[w.jsx(EK,{size:13,className:"text-muted-foreground"}),w.jsx("span",{className:"text-[13px] font-semibold text-muted-foreground",children:"공급처 검증 이력"}),w.jsxs("span",{className:"text-[11px] text-muted-foreground",children:[a.length,"건"]})]}),w.jsx("div",{className:"border border-border rounded-lg overflow-hidden",children:w.jsxs("table",{className:"w-full text-[12px] border-collapse",children:[w.jsx("thead",{children:w.jsxs("tr",{className:"border-b border-border bg-muted/40 text-[11px] font-semibold text-muted-foreground",children:[w.jsx("th",{className:"px-3 py-2 text-left",children:"공급처"}),w.jsx("th",{className:"px-3 py-2 text-center",children:"채널"}),w.jsx("th",{className:"px-3 py-2 text-center",children:"판정"}),w.jsx("th",{className:"px-3 py-2 text-center",children:"재고(평균)"}),w.jsx("th",{className:"px-3 py-2 text-center",children:"품절율"}),w.jsx("th",{className:"px-3 py-2 text-center",children:"즉시출고"}),w.jsx("th",{className:"px-3 py-2 text-center",children:"자동검증"}),w.jsx("th",{className:"px-3 py-2 text-right",children:"검토"})]})}),w.jsx("tbody",{children:a.map((y,b)=>w.jsxs("tr",{className:Ye("border-b border-border/60",b%2!==0&&"bg-muted/5"),children:[w.jsxs("td",{className:"px-3 py-2",children:[w.jsx("div",{className:"font-medium",children:y.supplierNick??y.productId}),y.isPowerSeller&&w.jsx("span",{className:"text-[10px] text-blue-500",children:"파워셀러"}),y.isGoodSeller&&w.jsx("span",{className:"text-[10px] text-green-500 ml-1",children:"우수셀러"})]}),w.jsx("td",{className:"px-3 py-2 text-center text-muted-foreground",children:y.channel}),w.jsx("td",{className:"px-3 py-2 text-center text-base",children:y.tier}),w.jsx("td",{className:"px-3 py-2 text-center",children:y.avgStock!==void 0?w.jsxs("span",{className:y.avgStock>=30?"text-green-600":"text-red-500",children:[y.avgStock,"개"]}):"—"}),w.jsx("td",{className:"px-3 py-2 text-center",children:y.outOfStockRatioPct!==void 0?w.jsxs("span",{className:y.outOfStockRatioPct<30?"text-green-600":"text-red-500",children:[y.outOfStockRatioPct,"%"]}):"—"}),w.jsx("td",{className:"px-3 py-2 text-center",children:y.immediateShipPct!==void 0?w.jsxs("span",{className:y.immediateShipPct>=50?"text-green-600":"text-yellow-600",children:[y.immediateShipPct,"%"]}):"—"}),w.jsxs("td",{className:"px-3 py-2 text-center text-muted-foreground",children:[y.autoPassCount,"/",y.autoTotalCount]}),w.jsx("td",{className:"px-3 py-2 text-right text-muted-foreground whitespace-nowrap",children:TM(new Date(y.savedAt),{addSuffix:!0,locale:E1})})]},y.id))})]})})]})]})}const swe=[{id:"musinsa",label:"무신사"},{id:"oliveyoung",label:"올리브영"},{id:"hwahae",label:"화해"},{id:"zigzag",label:"지그재그"},{id:"coupang",label:"쿠팡"},{id:"amazon",label:"Amazon"},{id:"aliexpress",label:"AliExpress"}];function kp(r){return r==null?"-":r==="<10"?"<10":typeof r=="number"?r.toLocaleString():String(r)}function q9(r){return r==="낮음"?"text-green-600":r==="보통"?"text-yellow-600":"text-red-500"}function lwe({data:r}){const e=Math.max(...r.map(t=>t.ratio),1);return w.jsx("div",{className:"flex items-end gap-0.5 h-12",children:r.map(t=>w.jsxs("div",{className:"flex flex-col items-center flex-1 gap-0.5 group relative",children:[w.jsx("div",{className:"w-full bg-primary/70 rounded-sm transition-all",style:{height:`${Math.round(t.ratio/e*100)}%`}}),w.jsxs("div",{className:"absolute -top-6 left-1/2 -translate-x-1/2 hidden group-hover:block text-[10px] bg-popover border border-border rounded px-1 py-0.5 whitespace-nowrap z-10",children:[t.period,": ",t.ratio]})]},t.period))})}function uwe({kw:r,highlight:e}){const t=typeof r.monthlyPcQcCnt=="number"?r.monthlyPcQcCnt:0,n=typeof r.monthlyMobileQcCnt=="number"?r.monthlyMobileQcCnt:0,a=t+n;return w.jsxs("tr",{className:Ye("border-b border-border/50 text-[12px]",e&&"bg-muted/50"),children:[w.jsx("td",{className:"py-2 px-3 font-medium text-foreground",children:r.relKeyword}),w.jsx("td",{className:"py-2 px-3 text-right tabular-nums text-muted-foreground",children:kp(r.monthlyPcQcCnt)}),w.jsx("td",{className:"py-2 px-3 text-right tabular-nums text-muted-foreground",children:kp(r.monthlyMobileQcCnt)}),w.jsx("td",{className:"py-2 px-3 text-right tabular-nums font-medium",children:a>0?a.toLocaleString():kp(r.monthlyPcQcCnt)}),w.jsx("td",{className:Ye("py-2 px-3 text-center font-medium",q9(r.compIdx)),children:r.compIdx})]})}function cwe({ranking:r}){return r?w.jsxs("div",{children:[w.jsx("div",{className:"flex items-center gap-2 mb-3",children:w.jsxs("span",{className:"text-[12px] text-muted-foreground",children:[r.platformLabel," · ",r.items.length,"개 ·"," ",new Date(r.fetchedAt).toLocaleTimeString("ko-KR",{hour:"2-digit",minute:"2-digit"})," ","기준"]})}),w.jsx("div",{className:"border border-border rounded-lg overflow-hidden",children:w.jsxs("table",{className:"w-full",children:[w.jsx("thead",{children:w.jsxs("tr",{className:"border-b border-border bg-muted/40",children:[w.jsx("th",{className:"py-2 px-3 text-left text-[11px] text-muted-foreground font-medium w-8",children:"순위"}),w.jsx("th",{className:"py-2 px-3 text-left text-[11px] text-muted-foreground font-medium",children:"상품명"}),w.jsx("th",{className:"py-2 px-3 text-left text-[11px] text-muted-foreground font-medium",children:"브랜드"}),w.jsx("th",{className:"py-2 px-3 text-right text-[11px] text-muted-foreground font-medium",children:"가격"}),w.jsx("th",{className:"py-2 px-3 text-right text-[11px] text-muted-foreground font-medium",children:"리뷰"}),w.jsx("th",{className:"py-2 px-3 text-center text-[11px] text-muted-foreground font-medium w-8",children:"링크"})]})}),w.jsx("tbody",{children:r.items.map(e=>w.jsxs("tr",{className:"border-b border-border/50 hover:bg-muted/30 transition-colors text-[12px]",children:[w.jsx("td",{className:"py-2 px-3 text-muted-foreground tabular-nums text-center",children:e.rank}),w.jsx("td",{className:"py-2 px-3 font-medium max-w-[220px] truncate",children:e.name||"-"}),w.jsx("td",{className:"py-2 px-3 text-muted-foreground",children:e.brand||"-"}),w.jsx("td",{className:"py-2 px-3 text-right tabular-nums",children:e.price?w.jsxs("span",{children:[e.price.toLocaleString(),e.discountRate?w.jsxs("span",{className:"ml-1 text-[10px] text-red-500",children:["-",e.discountRate,"%"]}):null]}):"-"}),w.jsx("td",{className:"py-2 px-3 text-right tabular-nums text-muted-foreground",children:e.reviewCount?e.reviewCount.toLocaleString():"-"}),w.jsx("td",{className:"py-2 px-3 text-center",children:e.url?w.jsx("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex text-muted-foreground hover:text-foreground transition-colors",children:w.jsx(_M,{size:12})}):"-"})]},e.rank))})]})})]}):null}function fwe({missing:r}){return w.jsxs("div",{className:"flex items-start gap-3 border border-amber-200 bg-amber-50 dark:border-amber-900/50 dark:bg-amber-950/20 rounded-lg p-4 text-[12px]",children:[w.jsx(Vp,{size:14,className:"text-amber-600 shrink-0 mt-0.5"}),w.jsxs("div",{children:[w.jsx("p",{className:"font-medium text-amber-800 dark:text-amber-400 mb-1",children:"일부 채널이 연결되지 않았습니다"}),w.jsxs("p",{className:"text-amber-700 dark:text-amber-500 mb-2",children:["미설정 채널: ",r.join(", ")]}),w.jsx("code",{className:"block bg-amber-100 dark:bg-amber-900/30 rounded px-2 py-1 font-mono text-[11px] text-amber-900 dark:text-amber-300",children:"sppt init"})]})]})}function hwe(){var I,k,z,O,G,F;const{data:r}=cK(),[e,t]=Z.useState(""),[n,a]=Z.useState(null),[i,o]=Z.useState(!1),[s,l]=Z.useState(null),[u,c]=Z.useState(null),[f,d]=Z.useState(null),[v,g]=Z.useState(!1),[x,y]=Z.useState(null),b=Z.useRef(new Map),S=[];r&&!r.searchad&&S.push("naver-searchad"),r&&!r.datalab&&S.push("naver-datalab"),r&&!r.apify&&S.push("apify"),S.length;async function T(){const B=e.trim();if(B){o(!0),l(null),a(null);try{const Y=await fK(B);Y.error==="not_configured"?l(Y.message??"채널이 설정되지 않았습니다"):Y.error?l(Y.message??Y.error):a(Y)}catch(Y){l(Y instanceof Error?Y.message:String(Y))}finally{o(!1)}}}async function C(B,Y=!1){if(c(B),y(null),!Y&&b.current.has(B)){d(b.current.get(B));return}g(!0),d(null);try{const H=await hK(B,20);H.error==="not_configured"?y(H.message??"Apify가 설정되지 않았습니다"):H.error?y(H.message??H.error):(b.current.set(B,H),d(H))}catch(H){y(H instanceof Error?H.message:String(H))}finally{g(!1)}}function M(B){if(u===B&&f){c(null),d(null);return}C(B)}function D(){u&&C(u,!0)}const L=((z=(k=(I=n==null?void 0:n.trend)==null?void 0:I.results)==null?void 0:k[0])==null?void 0:z.data)??[],E=((O=n==null?void 0:n.volume)==null?void 0:O.results)??[],R=E[0]??null;return w.jsxs("div",{children:[w.jsxs("div",{className:"flex items-center justify-between mb-6",children:[w.jsx("h2",{className:"text-xl font-medium",children:"트렌드"}),r&&w.jsxs("div",{className:"flex items-center gap-2 text-[11px] text-muted-foreground",children:[w.jsx("span",{className:Ye("w-1.5 h-1.5 rounded-full",r.searchad?"bg-green-500":"bg-muted-foreground/30")}),"검색광고",w.jsx("span",{className:Ye("w-1.5 h-1.5 rounded-full",r.datalab?"bg-green-500":"bg-muted-foreground/30")}),"데이터랩",w.jsx("span",{className:Ye("w-1.5 h-1.5 rounded-full",r.apify?"bg-green-500":"bg-muted-foreground/30")}),"Apify"]})]}),r&&S.length>0&&w.jsx("div",{className:"mb-6",children:w.jsx(fwe,{missing:S})}),w.jsxs("section",{className:"mb-8",children:[w.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[w.jsx(G2,{size:13,className:"text-muted-foreground"}),w.jsx("span",{className:"text-[13px] font-semibold text-muted-foreground",children:"키워드 검색량"})]}),w.jsxs("div",{className:"flex gap-2 mb-4",children:[w.jsx("input",{type:"text",value:e,onChange:B=>t(B.target.value),onKeyDown:B=>B.key==="Enter"&&!i&&T(),placeholder:"키워드 입력 (예: 여름 원피스)",disabled:!!(r&&!r.searchad&&!r.datalab),className:"flex-1 h-9 px-3 text-[13px] border border-border rounded-md bg-background focus:outline-none focus:ring-1 focus:ring-ring disabled:opacity-50 disabled:cursor-not-allowed"}),w.jsx("button",{type:"button",onClick:T,disabled:i||!e.trim()||!!(r&&!r.searchad&&!r.datalab),className:"h-9 px-4 text-[13px] font-medium bg-primary text-primary-foreground rounded-md hover:bg-primary/90 transition-colors disabled:opacity-50 disabled:cursor-not-allowed flex items-center gap-1.5",children:i?w.jsxs(w.Fragment,{children:[w.jsx(O0,{size:12,className:"animate-spin"}),"조회 중"]}):w.jsxs(w.Fragment,{children:[w.jsx(G2,{size:12}),"검색"]})})]}),s&&w.jsxs("div",{className:"flex items-center gap-2 text-[12px] text-red-600 bg-red-50 dark:bg-red-950/20 border border-red-200 dark:border-red-900/50 rounded-lg px-4 py-3 mb-4",children:[w.jsx(Vp,{size:13}),s]}),n&&!s&&w.jsxs("div",{className:"border border-border rounded-lg overflow-hidden",children:[R&&w.jsx("div",{className:"px-5 py-4 border-b border-border bg-muted/30",children:w.jsxs("div",{className:"flex items-center gap-6",children:[w.jsxs("div",{children:[w.jsx("div",{className:"text-[11px] text-muted-foreground mb-0.5",children:"키워드"}),w.jsx("div",{className:"text-[14px] font-semibold",children:R.relKeyword})]}),w.jsxs("div",{children:[w.jsx("div",{className:"text-[11px] text-muted-foreground mb-0.5",children:"PC 검색량"}),w.jsx("div",{className:"text-[14px] font-semibold tabular-nums",children:kp(R.monthlyPcQcCnt)})]}),w.jsxs("div",{children:[w.jsx("div",{className:"text-[11px] text-muted-foreground mb-0.5",children:"모바일 검색량"}),w.jsx("div",{className:"text-[14px] font-semibold tabular-nums",children:kp(R.monthlyMobileQcCnt)})]}),w.jsxs("div",{children:[w.jsx("div",{className:"text-[11px] text-muted-foreground mb-0.5",children:"합계"}),w.jsx("div",{className:"text-[14px] font-semibold tabular-nums",children:(()=>{const B=typeof R.monthlyPcQcCnt=="number"?R.monthlyPcQcCnt:0,Y=typeof R.monthlyMobileQcCnt=="number"?R.monthlyMobileQcCnt:0;return(B+Y).toLocaleString()})()})]}),w.jsxs("div",{children:[w.jsx("div",{className:"text-[11px] text-muted-foreground mb-0.5",children:"경쟁강도"}),w.jsx("div",{className:Ye("text-[14px] font-semibold",q9(R.compIdx)),children:R.compIdx})]})]})}),L.length>0&&w.jsxs("div",{className:"px-5 py-4 border-b border-border",children:[w.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[w.jsx($u,{size:12,className:"text-muted-foreground"}),w.jsx("span",{className:"text-[11px] text-muted-foreground font-medium",children:"최근 3개월 트렌드 (월별 상대지수)"})]}),w.jsx(lwe,{data:L}),w.jsxs("div",{className:"flex justify-between text-[10px] text-muted-foreground mt-1",children:[w.jsx("span",{children:(G=L[0])==null?void 0:G.period}),w.jsx("span",{children:(F=L[L.length-1])==null?void 0:F.period})]})]}),E.length>1&&w.jsx("div",{className:"overflow-x-auto",children:w.jsxs("table",{className:"w-full",children:[w.jsx("thead",{children:w.jsxs("tr",{className:"border-b border-border bg-muted/30",children:[w.jsx("th",{className:"py-2 px-3 text-left text-[11px] text-muted-foreground font-medium",children:"연관 키워드"}),w.jsx("th",{className:"py-2 px-3 text-right text-[11px] text-muted-foreground font-medium",children:"PC"}),w.jsx("th",{className:"py-2 px-3 text-right text-[11px] text-muted-foreground font-medium",children:"모바일"}),w.jsx("th",{className:"py-2 px-3 text-right text-[11px] text-muted-foreground font-medium",children:"합계"}),w.jsx("th",{className:"py-2 px-3 text-center text-[11px] text-muted-foreground font-medium",children:"경쟁강도"})]})}),w.jsx("tbody",{children:E.map((B,Y)=>w.jsx(uwe,{kw:B,highlight:Y%2===1},B.relKeyword))})]})})]}),!n&&!i&&!s&&w.jsxs("div",{className:"border border-dashed border-border rounded-lg p-8 text-center text-muted-foreground text-sm",children:[w.jsx(cx,{size:24,className:"mx-auto mb-3 opacity-30"}),w.jsx("p",{className:"text-[13px]",children:"키워드를 입력하면 검색량과 트렌드를 조회합니다"})]})]}),w.jsxs("section",{children:[w.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[w.jsx($u,{size:13,className:"text-muted-foreground"}),w.jsx("span",{className:"text-[13px] font-semibold text-muted-foreground",children:"전문몰 랭킹"}),r&&!r.apify&&w.jsx("span",{className:"text-[11px] text-muted-foreground",children:"· Apify 미설정"})]}),w.jsxs("div",{className:"flex flex-wrap gap-1.5 mb-4",children:[swe.map(B=>w.jsx("button",{type:"button",onClick:()=>M(B.id),disabled:!!(r&&!r.apify),className:Ye("px-3 py-1.5 text-[12px] rounded-md border transition-colors disabled:opacity-40 disabled:cursor-not-allowed",u===B.id?"border-foreground/50 bg-muted text-foreground font-medium":"border-border text-muted-foreground hover:border-foreground/30 hover:text-foreground"),children:B.label},B.id)),f&&u&&!v&&w.jsxs("button",{type:"button",onClick:D,className:"ml-auto flex items-center gap-1 px-2.5 py-1.5 text-[11px] border border-border rounded-md text-muted-foreground hover:border-foreground/30 hover:text-foreground transition-colors",title:"Apify 재조회 (비용 발생)",children:[w.jsx(O0,{size:11}),"새로고침"]})]}),v&&w.jsxs("div",{className:"flex items-center gap-2 py-8 justify-center text-[12px] text-muted-foreground",children:[w.jsx(O0,{size:13,className:"animate-spin"}),"랭킹 수집 중... (최대 2분 소요)"]}),x&&!v&&w.jsxs("div",{className:"flex items-center gap-2 text-[12px] text-red-600 bg-red-50 dark:bg-red-950/20 border border-red-200 dark:border-red-900/50 rounded-lg px-4 py-3",children:[w.jsx(Vp,{size:13}),x]}),(f==null?void 0:f.ranking)&&!v&&w.jsx(cwe,{ranking:f.ranking}),!u&&!v&&w.jsxs("div",{className:"border border-dashed border-border rounded-lg p-8 text-center text-muted-foreground text-sm",children:[w.jsx($u,{size:24,className:"mx-auto mb-3 opacity-30"}),w.jsx("p",{className:"text-[13px]",children:"플랫폼을 선택하면 실시간 랭킹을 수집합니다"}),w.jsx("p",{className:"text-[11px] mt-1 opacity-70",children:"Apify 기반 · 수집에 1-2분 소요"})]})]})]})}const dwe=["overview","session","config","orders","products","channels","sourcing","trend","settlement"];function U4(){const r=window.location.hash.slice(1).split("?")[0];return dwe.includes(r)?r:"overview"}const vwe=[{type:"item",id:"overview",label:"Overview",icon:AK},{type:"item",id:"session",label:"Session",icon:CK},{type:"item",id:"config",label:"Settings",icon:RK},{type:"section",label:"상품전략"},{type:"item",id:"trend",label:"트렌드",icon:$u},{type:"item",id:"sourcing",label:"소싱",icon:G2},{type:"item",id:"products",label:"상품",icon:vG},{type:"section",label:"판매채널"},{type:"item",id:"channels",label:"채널",icon:MK},{type:"item",id:"orders",label:"주문",icon:gG},{type:"item",id:"settlement",label:"정산",icon:LK}];function pwe(){const[r,e]=Z.useState(U4);Z.useEffect(()=>{const n=()=>e(U4());return window.addEventListener("hashchange",n),()=>window.removeEventListener("hashchange",n)},[]);const t=n=>{window.location.hash=n};return w.jsx(lG,{delayDuration:200,children:w.jsxs("div",{className:"flex min-h-screen",children:[w.jsxs("nav",{className:"w-[220px] border-r border-border flex flex-col shrink-0 sticky top-0 h-screen overflow-y-auto",children:[w.jsx("div",{className:"px-4 py-4 border-b border-border",children:w.jsxs("h1",{className:"text-[15px] font-semibold flex items-center gap-2",children:[w.jsxs("svg",{width:"17",height:"17",viewBox:"0 0 24 24",fill:"none",stroke:"hsl(var(--primary))",strokeWidth:"2","aria-hidden":"true",children:[w.jsx("path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"}),w.jsx("polyline",{points:"3.27 6.96 12 12.01 20.73 6.96"}),w.jsx("line",{x1:"12",y1:"22.08",x2:"12",y2:"12"})]}),"shopport",w.jsx("span",{className:"text-[11px] text-muted-foreground font-normal",children:"v0.1.0"})]})}),w.jsx("div",{className:"flex-1 py-2",children:vwe.map(n=>n.type==="section"?w.jsx("div",{className:"px-4 pt-4 pb-1 text-[11px] font-medium text-muted-foreground/60 uppercase tracking-wider",children:n.label},n.label):w.jsxs("button",{type:"button",onClick:()=>t(n.id),className:Ye("flex items-center gap-2.5 w-full px-4 py-2 text-[13px] text-muted-foreground hover:bg-muted hover:text-foreground transition-colors",r===n.id&&"bg-muted text-foreground font-medium"),children:[w.jsx(n.icon,{size:14}),n.label]},n.id))})]}),w.jsx("main",{className:"flex-1 overflow-y-auto",children:w.jsxs("div",{className:"max-w-[1280px] mx-auto p-7",children:[r==="overview"&&w.jsx(MSe,{}),r==="session"&&w.jsx(kSe,{}),r==="config"&&w.jsx(YK,{}),r==="orders"&&w.jsx(tee,{}),r==="products"&&w.jsx(DSe,{}),r==="channels"&&w.jsx(BK,{}),r==="sourcing"&&w.jsx(owe,{}),r==="trend"&&w.jsx(hwe,{}),r==="settlement"&&w.jsx(ZSe,{})]})})]})})}const gwe=new GX({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1,staleTime:1e4}}}),Z9=document.getElementById("root");if(!Z9)throw new Error("Root element not found");oq.createRoot(Z9).render(w.jsx(Z.StrictMode,{children:w.jsx(FX,{client:gwe,children:w.jsx(pwe,{})})}));
|